설계 개편

This commit is contained in:
DongHyeonka
2026-07-24 16:31:12 +09:00
parent f43e909162
commit 8daa568746
70 changed files with 6554 additions and 956 deletions
+5
View File
@@ -10,6 +10,7 @@ from techviz import __version__
from techviz.document import build_context
from techviz.layout import build_layout
from techviz.prompt import build_agent_prompt
from techviz.reference_catalog import selection_payload
from techviz.renderers import render_formats
from techviz.spec import load_spec, stable_hash
from techviz.validate import has_errors, validate_spec
@@ -35,6 +36,9 @@ def _manifest(spec: object, files: list[Path]) -> str:
"lint_issue_count": 0,
"assumption_count": 0,
"assumptions_allowed": False,
"composition_profile": spec.profile,
"reference_ids": spec.composition.reference_ids if spec.composition else [],
"diagram_only": bool(spec.composition.diagram_only) if spec.composition else True,
}
return json.dumps(payload, ensure_ascii=False, indent=2) + "\n"
@@ -58,6 +62,7 @@ def main() -> int:
# Keep the path stored in context relative and portable.
relative_document = DOCUMENT.relative_to(ROOT)
generated_context = build_context(relative_document, marker_id="payment-request")
generated_context["visual_reference_candidates"] = selection_payload(generated_context, limit=5)
context_text = json.dumps(generated_context, ensure_ascii=False, indent=2) + "\n"
spec = load_spec(SPEC)