- src: phase_z2 composition/mapper/pipeline/placement_planner/retry, ai_fallback(prompts/schema/validate), mdx_text_atoms 신규 - Front: PipelineTracePanel 신규, FramePanel/SlideCanvas/Home/designAgentApi 등 갱신 + 테스트 4종 추가 - templates/phase_z2: catalog(component_expansion_registry, node_slot_mapping 신규), frames, families, slide_base 갱신 - tests/matching: phase2~26 매칭 실험 스크립트·리포트·온톨로지 전체 (미커밋 진행분) - tests: b4_v4 evidence, task5~28.5 시리즈, regression(imp95 baseline) 등 신규 테스트 대량 추가 - docs/reference: MDX 구조 인벤토리, MDX→Frame 구조 계약 문서 - scripts: mdx 계약/parity/coverage/viewport 체크, gitea comment, run sync 유틸 - .gitignore: tmp*.json, chromedriver, .orchestrator, *.pkl, Front_test* 등 임시/스냅샷 제외 미완성 작업의 보존용 스냅샷 커밋 (2026-07-02) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
67 lines
2.5 KiB
Python
67 lines
2.5 KiB
Python
"""structure_ontology.yaml 의 11 문제 frame 에 structure_intent list 추가 (1회용).
|
|
|
|
대상 매핑:
|
|
13 three_parallel_requirements → [requirement_list]
|
|
14 three_persona_benefits → [persona_benefit]
|
|
17 bim_current_problems_paired → [problem_diagnosis]
|
|
18 bim_dx_comparison_table → [concept_comparison, multi_attribute_comparison]
|
|
20 dx_sw_necessity_three_perspectives → [requirement_or_pillar]
|
|
23 app_sw_package_vs_solution → [concept_comparison, multi_attribute_comparison]
|
|
24 engn_sw_three_types → [category_comparison, multi_attribute_comparison]
|
|
28 sw_reality_three_emphasis → [problem_diagnosis]
|
|
29 process_product_two_way → [process_product_split, transformation_story]
|
|
30 industry_current_status_three_col → [industry_comparison, multi_attribute_comparison]
|
|
31 industry_characteristics_three_col → [industry_comparison, multi_attribute_comparison]
|
|
|
|
나머지 21 frames: intent 없음 (neutral 0.5 처리 예정).
|
|
"""
|
|
import sys
|
|
import shutil
|
|
from pathlib import Path
|
|
import yaml
|
|
|
|
sys.path.insert(0, str(Path(__file__).parent))
|
|
HERE = Path(__file__).parent
|
|
|
|
INTENT_MAP = {
|
|
'13': ['requirement_list'],
|
|
'14': ['persona_benefit'],
|
|
'17': ['problem_diagnosis'],
|
|
'18': ['concept_comparison', 'multi_attribute_comparison'],
|
|
'20': ['requirement_or_pillar'],
|
|
'23': ['concept_comparison', 'multi_attribute_comparison'],
|
|
'24': ['category_comparison', 'multi_attribute_comparison'],
|
|
'28': ['problem_diagnosis'],
|
|
'29': ['process_product_split', 'transformation_story'],
|
|
'30': ['industry_comparison', 'multi_attribute_comparison'],
|
|
'31': ['industry_comparison', 'multi_attribute_comparison'],
|
|
}
|
|
|
|
|
|
def main():
|
|
path = HERE / "structure_ontology.yaml"
|
|
bak = HERE / "structure_ontology.yaml.pre_intent.bak"
|
|
shutil.copy(path, bak)
|
|
print(f"[1] 백업: {bak}")
|
|
|
|
with open(path, encoding='utf-8') as f:
|
|
data = yaml.safe_load(f)
|
|
|
|
updated = 0
|
|
for fid, tpl in data.get('templates_v1', {}).items():
|
|
sid = tpl.get('short_id', '?')
|
|
if sid in INTENT_MAP:
|
|
vp = tpl.setdefault('visual_pattern', {})
|
|
vp['structure_intent'] = INTENT_MAP[sid]
|
|
updated += 1
|
|
print(f" {sid} {tpl['template_id']}: {INTENT_MAP[sid]}")
|
|
|
|
with open(path, 'w', encoding='utf-8') as f:
|
|
yaml.safe_dump(data, f, allow_unicode=True, sort_keys=False, width=120)
|
|
|
|
print(f"[2] 저장 완료: {updated} frame 갱신")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|