create-yss-spec 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/cli.js +0 -1
- package/template/.agents/skills/.strategic-design-skills-manifest.json +35 -0
- package/template/.agents/skills/.yss-skills-manifest.json +0 -2
- package/template/.agents/skills/code-review/SKILL.md +1 -1
- package/template/.agents/skills/code-review/references/yss-review-standards.md +1 -1
- package/template/.agents/skills/lombok/SKILL.md +1 -1
- package/template/.agents/skills/mapstruct/SKILL.md +1 -1
- package/template/.agents/skills/prototype-review/SKILL.md +7 -6
- package/template/.agents/skills/yss-antd-design/SKILL.md +8 -7
- package/template/.agents/skills/yss-antd-design/references/evidence.md +11 -6
- package/template/.agents/skills/yss-api-integration/SKILL.md +2 -2
- package/template/.agents/skills/yss-application/SKILL.md +2 -2
- package/template/.agents/skills/yss-audit-log/SKILL.md +2 -2
- package/template/.agents/skills/yss-audit-log/references/source-index.md +1 -1
- package/template/.agents/skills/yss-cache/SKILL.md +2 -2
- package/template/.agents/skills/yss-cache/references/source-index.md +1 -1
- package/template/.agents/skills/yss-cache/scripts/check-skill-freshness.sh +1 -1
- package/template/.agents/skills/yss-ddd-scaffold-generator/SKILL.md +6 -6
- package/template/.agents/skills/yss-ddd-scaffold-generator/agents/openai.yaml +1 -1
- package/template/.agents/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +1 -1
- package/template/.agents/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +3 -3
- package/template/.agents/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/SKILL.md +1 -1
- package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/first-slice-compatibility.test.mjs +3 -3
- package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/first-slice-verification.test.mjs +3 -3
- package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +8 -8
- package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/run_first_slice_verification.mjs +1 -1
- package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.mjs +1 -1
- package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +8 -8
- package/template/.agents/skills/yss-design-system/SKILL.md +6 -6
- package/template/.agents/skills/yss-distributed-id/SKILL.md +2 -2
- package/template/.agents/skills/yss-distributed-id/references/source-index.md +1 -1
- package/template/.agents/skills/yss-domain/SKILL.md +1 -1
- package/template/.agents/skills/yss-dto/SKILL.md +2 -2
- package/template/.agents/skills/yss-dto/references/source-index.md +1 -1
- package/template/.agents/skills/yss-excel-mvc/SKILL.md +2 -2
- package/template/.agents/skills/yss-excel-mvc/references/source-index.md +1 -1
- package/template/.agents/skills/yss-exception/SKILL.md +1 -1
- package/template/.agents/skills/yss-exception/references/source-index.md +1 -1
- package/template/.agents/skills/{yss-router → yss-implementation-contract-compiler}/SKILL.md +22 -18
- package/template/.agents/skills/yss-implementation-contract-compiler/agents/openai.yaml +4 -0
- package/template/.agents/skills/yss-implementation-contract-compiler/references/boundaries.md +134 -0
- package/template/{.codex/skills/yss-router/references/router-contract.yaml → .agents/skills/yss-implementation-contract-compiler/references/compiler-contract.yaml} +59 -94
- package/template/{.codex/skills/yss-router → .agents/skills/yss-implementation-contract-compiler}/references/slice-implementation-contract.md +20 -8
- package/template/.agents/skills/{yss-router → yss-implementation-contract-compiler}/references/yss-skill-execution-result.md +5 -3
- package/template/.agents/skills/yss-implementation-contract-compiler/tests/compiler-scenarios.test.mjs +89 -0
- package/template/.agents/skills/yss-mvc-scaffold-generator/SKILL.md +87 -0
- package/template/.agents/skills/yss-mvc-scaffold-generator/agents/openai.yaml +4 -0
- package/template/.agents/skills/yss-mvc-scaffold-generator/assets/logback-spring.xml.template +50 -0
- package/template/.agents/skills/yss-mvc-scaffold-generator/assets/smart-doc.json.template +42 -0
- package/template/.agents/skills/yss-mvc-scaffold-generator/references/architecture.md +28 -0
- package/template/.agents/skills/yss-mvc-scaffold-generator/scripts/generate_project.mjs +136 -0
- package/template/.agents/skills/yss-mvc-scaffold-generator/scripts/generate_project.test.mjs +337 -0
- package/template/.agents/skills/yss-mvc-scaffold-generator/scripts/lib/envelope.mjs +66 -0
- package/template/.agents/skills/yss-mvc-scaffold-generator/scripts/lib/runtime.mjs +115 -0
- package/template/.agents/skills/yss-mvc-scaffold-generator/scripts/lib/storage.mjs +90 -0
- package/template/.agents/skills/yss-mvc-scaffold-generator/scripts/lib/templates.mjs +54 -0
- package/template/.agents/skills/yss-mvc-scaffold-generator/scripts/verify_project.mjs +103 -0
- package/template/.agents/skills/yss-mybatis/SKILL.md +2 -2
- package/template/.agents/skills/yss-mybatis/references/source-index.md +1 -1
- package/template/.agents/skills/yss-page-module-development/SKILL.md +1 -1
- package/template/.agents/skills/yss-product-lifecycle/SKILL.md +6 -6
- package/template/.agents/skills/yss-product-lifecycle/references/matt-yss-adapter.md +5 -5
- package/template/.agents/skills/yss-product-lifecycle/references/orchestration-contract.yaml +25 -17
- package/template/.agents/skills/yss-product-lifecycle/references/orchestration.md +5 -5
- package/template/.agents/skills/yss-product-lifecycle/references/state-model.md +1 -1
- package/template/.agents/skills/yss-prototype-stage/SKILL.md +34 -24
- package/template/.agents/skills/yss-prototype-stage/references/product-design-adapter.md +43 -38
- package/template/.agents/skills/yss-prototype-stage/references/prototype-profile-routing.md +67 -0
- package/template/.agents/skills/yss-prototype-stage/scripts/prototype-contract.mjs +192 -103
- package/template/.agents/skills/yss-prototype-stage/tests/run-scenarios.mjs +87 -134
- package/template/.agents/skills/yss-repository/SKILL.md +2 -2
- package/template/.agents/skills/yss-resilience4j/SKILL.md +1 -1
- package/template/.agents/skills/yss-resilience4j/references/source-index.md +1 -1
- package/template/.agents/skills/yss-security-algorithm/SKILL.md +1 -1
- package/template/.agents/skills/yss-security-algorithm/references/source-index.md +1 -1
- package/template/.agents/skills/{yss-source-index → yss-skill-source-index-refresh}/SKILL.md +4 -4
- package/template/.agents/skills/yss-skill-source-index-refresh/agents/openai.yaml +4 -0
- package/template/{.claude/skills/yss-source-index → .agents/skills/yss-skill-source-index-refresh}/scripts/refresh-yss-skill-index.mjs +1 -1
- package/template/.agents/skills/yss-ui/SKILL.md +2 -1
- package/template/.agents/skills/yss-ui/assets/docs/guide/llms.md +0 -61
- package/template/.agents/skills/yss-up-springboot3/SKILL.md +1 -1
- package/template/.agents/skills/yss-userinfo/SKILL.md +1 -1
- package/template/.agents/skills/yss-userinfo/references/source-index.md +1 -1
- package/template/.agents/skills/yss-validation/SKILL.md +1 -1
- package/template/.agents/skills/yss-validation/references/source-index.md +1 -1
- package/template/.agents/skills/yss-web-controller/SKILL.md +2 -2
- package/template/.claude/skills/code-review/SKILL.md +1 -1
- package/template/.claude/skills/code-review/references/yss-review-standards.md +1 -1
- package/template/.claude/skills/lombok/SKILL.md +1 -1
- package/template/.claude/skills/mapstruct/SKILL.md +1 -1
- package/template/.claude/skills/prototype-review/SKILL.md +7 -6
- package/template/.claude/skills/yss-antd-design/SKILL.md +8 -7
- package/template/.claude/skills/yss-antd-design/references/evidence.md +11 -6
- package/template/.claude/skills/yss-api-integration/SKILL.md +2 -2
- package/template/.claude/skills/yss-application/SKILL.md +2 -2
- package/template/.claude/skills/yss-audit-log/SKILL.md +2 -2
- package/template/.claude/skills/yss-audit-log/references/source-index.md +1 -1
- package/template/.claude/skills/yss-cache/SKILL.md +2 -2
- package/template/.claude/skills/yss-cache/references/source-index.md +1 -1
- package/template/.claude/skills/yss-cache/scripts/check-skill-freshness.sh +1 -1
- package/template/.claude/skills/yss-ddd-scaffold-generator/SKILL.md +6 -6
- package/template/.claude/skills/yss-ddd-scaffold-generator/agents/openai.yaml +1 -1
- package/template/.claude/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +1 -1
- package/template/.claude/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +3 -3
- package/template/.claude/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/SKILL.md +1 -1
- package/template/.claude/skills/yss-ddd-scaffold-generator/scripts/first-slice-compatibility.test.mjs +3 -3
- package/template/.claude/skills/yss-ddd-scaffold-generator/scripts/first-slice-verification.test.mjs +3 -3
- package/template/.claude/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +8 -8
- package/template/.claude/skills/yss-ddd-scaffold-generator/scripts/run_first_slice_verification.mjs +1 -1
- package/template/.claude/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.mjs +1 -1
- package/template/.claude/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +8 -8
- package/template/.claude/skills/yss-design-system/SKILL.md +6 -6
- package/template/.claude/skills/yss-distributed-id/SKILL.md +2 -2
- package/template/.claude/skills/yss-distributed-id/references/source-index.md +1 -1
- package/template/.claude/skills/yss-domain/SKILL.md +1 -1
- package/template/.claude/skills/yss-dto/SKILL.md +2 -2
- package/template/.claude/skills/yss-dto/references/source-index.md +1 -1
- package/template/.claude/skills/yss-excel-mvc/SKILL.md +2 -2
- package/template/.claude/skills/yss-excel-mvc/references/source-index.md +1 -1
- package/template/.claude/skills/yss-exception/SKILL.md +1 -1
- package/template/.claude/skills/yss-exception/references/source-index.md +1 -1
- package/template/{.codex/skills/yss-router → .claude/skills/yss-implementation-contract-compiler}/SKILL.md +22 -18
- package/template/.claude/skills/yss-implementation-contract-compiler/agents/openai.yaml +4 -0
- package/template/.claude/skills/yss-implementation-contract-compiler/references/boundaries.md +134 -0
- package/template/.claude/skills/{yss-router/references/router-contract.yaml → yss-implementation-contract-compiler/references/compiler-contract.yaml} +59 -94
- package/template/{.agents/skills/yss-router → .claude/skills/yss-implementation-contract-compiler}/references/slice-implementation-contract.md +20 -8
- package/template/{.codex/skills/yss-router → .claude/skills/yss-implementation-contract-compiler}/references/yss-skill-execution-result.md +5 -3
- package/template/.claude/skills/yss-implementation-contract-compiler/tests/compiler-scenarios.test.mjs +89 -0
- package/template/.claude/skills/yss-mvc-scaffold-generator/SKILL.md +87 -0
- package/template/.claude/skills/yss-mvc-scaffold-generator/agents/openai.yaml +4 -0
- package/template/.claude/skills/yss-mvc-scaffold-generator/assets/logback-spring.xml.template +50 -0
- package/template/.claude/skills/yss-mvc-scaffold-generator/assets/smart-doc.json.template +42 -0
- package/template/.claude/skills/yss-mvc-scaffold-generator/references/architecture.md +28 -0
- package/template/.claude/skills/yss-mvc-scaffold-generator/scripts/generate_project.mjs +136 -0
- package/template/.claude/skills/yss-mvc-scaffold-generator/scripts/generate_project.test.mjs +337 -0
- package/template/.claude/skills/yss-mvc-scaffold-generator/scripts/lib/envelope.mjs +66 -0
- package/template/.claude/skills/yss-mvc-scaffold-generator/scripts/lib/runtime.mjs +115 -0
- package/template/.claude/skills/yss-mvc-scaffold-generator/scripts/lib/storage.mjs +90 -0
- package/template/.claude/skills/yss-mvc-scaffold-generator/scripts/lib/templates.mjs +54 -0
- package/template/.claude/skills/yss-mvc-scaffold-generator/scripts/verify_project.mjs +103 -0
- package/template/.claude/skills/yss-mybatis/SKILL.md +2 -2
- package/template/.claude/skills/yss-mybatis/references/source-index.md +1 -1
- package/template/.claude/skills/yss-page-module-development/SKILL.md +1 -1
- package/template/.claude/skills/yss-product-lifecycle/SKILL.md +6 -6
- package/template/.claude/skills/yss-product-lifecycle/references/matt-yss-adapter.md +5 -5
- package/template/.claude/skills/yss-product-lifecycle/references/orchestration-contract.yaml +25 -17
- package/template/.claude/skills/yss-product-lifecycle/references/orchestration.md +5 -5
- package/template/.claude/skills/yss-product-lifecycle/references/state-model.md +1 -1
- package/template/.claude/skills/yss-prototype-stage/SKILL.md +34 -24
- package/template/.claude/skills/yss-prototype-stage/references/product-design-adapter.md +43 -38
- package/template/.claude/skills/yss-prototype-stage/references/prototype-profile-routing.md +67 -0
- package/template/.claude/skills/yss-prototype-stage/scripts/prototype-contract.mjs +192 -103
- package/template/.claude/skills/yss-prototype-stage/tests/run-scenarios.mjs +87 -134
- package/template/.claude/skills/yss-repository/SKILL.md +2 -2
- package/template/.claude/skills/yss-resilience4j/SKILL.md +1 -1
- package/template/.claude/skills/yss-resilience4j/references/source-index.md +1 -1
- package/template/.claude/skills/yss-security-algorithm/SKILL.md +1 -1
- package/template/.claude/skills/yss-security-algorithm/references/source-index.md +1 -1
- package/template/.claude/skills/{yss-source-index → yss-skill-source-index-refresh}/SKILL.md +4 -4
- package/template/.claude/skills/yss-skill-source-index-refresh/agents/openai.yaml +4 -0
- package/template/{.codex/skills/yss-source-index → .claude/skills/yss-skill-source-index-refresh}/scripts/refresh-yss-skill-index.mjs +1 -1
- package/template/.claude/skills/yss-ui/SKILL.md +2 -1
- package/template/.claude/skills/yss-ui/assets/docs/guide/llms.md +0 -61
- package/template/.claude/skills/yss-up-springboot3/SKILL.md +1 -1
- package/template/.claude/skills/yss-userinfo/SKILL.md +1 -1
- package/template/.claude/skills/yss-userinfo/references/source-index.md +1 -1
- package/template/.claude/skills/yss-validation/SKILL.md +1 -1
- package/template/.claude/skills/yss-validation/references/source-index.md +1 -1
- package/template/.claude/skills/yss-web-controller/SKILL.md +2 -2
- package/template/.codex/skills/code-review/SKILL.md +1 -1
- package/template/.codex/skills/code-review/references/yss-review-standards.md +1 -1
- package/template/.codex/skills/lombok/SKILL.md +1 -1
- package/template/.codex/skills/mapstruct/SKILL.md +1 -1
- package/template/.codex/skills/prototype-review/SKILL.md +7 -6
- package/template/.codex/skills/yss-antd-design/SKILL.md +8 -7
- package/template/.codex/skills/yss-antd-design/references/evidence.md +11 -6
- package/template/.codex/skills/yss-api-integration/SKILL.md +2 -2
- package/template/.codex/skills/yss-application/SKILL.md +2 -2
- package/template/.codex/skills/yss-audit-log/SKILL.md +2 -2
- package/template/.codex/skills/yss-audit-log/references/source-index.md +1 -1
- package/template/.codex/skills/yss-cache/SKILL.md +2 -2
- package/template/.codex/skills/yss-cache/references/source-index.md +1 -1
- package/template/.codex/skills/yss-cache/scripts/check-skill-freshness.sh +1 -1
- package/template/.codex/skills/yss-ddd-scaffold-generator/SKILL.md +6 -6
- package/template/.codex/skills/yss-ddd-scaffold-generator/agents/openai.yaml +1 -1
- package/template/.codex/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +1 -1
- package/template/.codex/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +3 -3
- package/template/.codex/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/SKILL.md +1 -1
- package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/first-slice-compatibility.test.mjs +3 -3
- package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/first-slice-verification.test.mjs +3 -3
- package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +8 -8
- package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/run_first_slice_verification.mjs +1 -1
- package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.mjs +1 -1
- package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +8 -8
- package/template/.codex/skills/yss-design-system/SKILL.md +6 -6
- package/template/.codex/skills/yss-distributed-id/SKILL.md +2 -2
- package/template/.codex/skills/yss-distributed-id/references/source-index.md +1 -1
- package/template/.codex/skills/yss-domain/SKILL.md +1 -1
- package/template/.codex/skills/yss-dto/SKILL.md +2 -2
- package/template/.codex/skills/yss-dto/references/source-index.md +1 -1
- package/template/.codex/skills/yss-excel-mvc/SKILL.md +2 -2
- package/template/.codex/skills/yss-excel-mvc/references/source-index.md +1 -1
- package/template/.codex/skills/yss-exception/SKILL.md +1 -1
- package/template/.codex/skills/yss-exception/references/source-index.md +1 -1
- package/template/{.cursor/skills/yss-router → .codex/skills/yss-implementation-contract-compiler}/SKILL.md +22 -18
- package/template/.codex/skills/yss-implementation-contract-compiler/agents/openai.yaml +4 -0
- package/template/.codex/skills/yss-implementation-contract-compiler/references/boundaries.md +134 -0
- package/template/{.cursor/skills/yss-router/references/router-contract.yaml → .codex/skills/yss-implementation-contract-compiler/references/compiler-contract.yaml} +59 -94
- package/template/{.cursor/skills/yss-router → .codex/skills/yss-implementation-contract-compiler}/references/slice-implementation-contract.md +20 -8
- package/template/{.claude/skills/yss-router → .codex/skills/yss-implementation-contract-compiler}/references/yss-skill-execution-result.md +5 -3
- package/template/.codex/skills/yss-implementation-contract-compiler/tests/compiler-scenarios.test.mjs +89 -0
- package/template/.codex/skills/yss-mvc-scaffold-generator/SKILL.md +87 -0
- package/template/.codex/skills/yss-mvc-scaffold-generator/agents/openai.yaml +4 -0
- package/template/.codex/skills/yss-mvc-scaffold-generator/assets/logback-spring.xml.template +50 -0
- package/template/.codex/skills/yss-mvc-scaffold-generator/assets/smart-doc.json.template +42 -0
- package/template/.codex/skills/yss-mvc-scaffold-generator/references/architecture.md +28 -0
- package/template/.codex/skills/yss-mvc-scaffold-generator/scripts/generate_project.mjs +136 -0
- package/template/.codex/skills/yss-mvc-scaffold-generator/scripts/generate_project.test.mjs +337 -0
- package/template/.codex/skills/yss-mvc-scaffold-generator/scripts/lib/envelope.mjs +66 -0
- package/template/.codex/skills/yss-mvc-scaffold-generator/scripts/lib/runtime.mjs +115 -0
- package/template/.codex/skills/yss-mvc-scaffold-generator/scripts/lib/storage.mjs +90 -0
- package/template/.codex/skills/yss-mvc-scaffold-generator/scripts/lib/templates.mjs +54 -0
- package/template/.codex/skills/yss-mvc-scaffold-generator/scripts/verify_project.mjs +103 -0
- package/template/.codex/skills/yss-mybatis/SKILL.md +2 -2
- package/template/.codex/skills/yss-mybatis/references/source-index.md +1 -1
- package/template/.codex/skills/yss-page-module-development/SKILL.md +1 -1
- package/template/.codex/skills/yss-product-lifecycle/SKILL.md +6 -6
- package/template/.codex/skills/yss-product-lifecycle/references/matt-yss-adapter.md +5 -5
- package/template/.codex/skills/yss-product-lifecycle/references/orchestration-contract.yaml +25 -17
- package/template/.codex/skills/yss-product-lifecycle/references/orchestration.md +5 -5
- package/template/.codex/skills/yss-product-lifecycle/references/state-model.md +1 -1
- package/template/.codex/skills/yss-prototype-stage/SKILL.md +34 -24
- package/template/.codex/skills/yss-prototype-stage/references/product-design-adapter.md +43 -38
- package/template/.codex/skills/yss-prototype-stage/references/prototype-profile-routing.md +67 -0
- package/template/.codex/skills/yss-prototype-stage/scripts/prototype-contract.mjs +192 -103
- package/template/.codex/skills/yss-prototype-stage/tests/run-scenarios.mjs +87 -134
- package/template/.codex/skills/yss-repository/SKILL.md +2 -2
- package/template/.codex/skills/yss-resilience4j/SKILL.md +1 -1
- package/template/.codex/skills/yss-resilience4j/references/source-index.md +1 -1
- package/template/.codex/skills/yss-security-algorithm/SKILL.md +1 -1
- package/template/.codex/skills/yss-security-algorithm/references/source-index.md +1 -1
- package/template/.codex/skills/{yss-source-index → yss-skill-source-index-refresh}/SKILL.md +4 -4
- package/template/.codex/skills/yss-skill-source-index-refresh/agents/openai.yaml +4 -0
- package/template/{.agents/skills/yss-source-index → .codex/skills/yss-skill-source-index-refresh}/scripts/refresh-yss-skill-index.mjs +1 -1
- package/template/.codex/skills/yss-ui/SKILL.md +2 -1
- package/template/.codex/skills/yss-ui/assets/docs/guide/llms.md +0 -61
- package/template/.codex/skills/yss-up-springboot3/SKILL.md +1 -1
- package/template/.codex/skills/yss-userinfo/SKILL.md +1 -1
- package/template/.codex/skills/yss-userinfo/references/source-index.md +1 -1
- package/template/.codex/skills/yss-validation/SKILL.md +1 -1
- package/template/.codex/skills/yss-validation/references/source-index.md +1 -1
- package/template/.codex/skills/yss-web-controller/SKILL.md +2 -2
- package/template/.cursor/skills/code-review/SKILL.md +1 -1
- package/template/.cursor/skills/code-review/references/yss-review-standards.md +1 -1
- package/template/.cursor/skills/lombok/SKILL.md +1 -1
- package/template/.cursor/skills/mapstruct/SKILL.md +1 -1
- package/template/.cursor/skills/prototype-review/SKILL.md +7 -6
- package/template/.cursor/skills/yss-antd-design/SKILL.md +8 -7
- package/template/.cursor/skills/yss-antd-design/references/evidence.md +11 -6
- package/template/.cursor/skills/yss-api-integration/SKILL.md +2 -2
- package/template/.cursor/skills/yss-application/SKILL.md +2 -2
- package/template/.cursor/skills/yss-audit-log/SKILL.md +2 -2
- package/template/.cursor/skills/yss-audit-log/references/source-index.md +1 -1
- package/template/.cursor/skills/yss-cache/SKILL.md +2 -2
- package/template/.cursor/skills/yss-cache/references/source-index.md +1 -1
- package/template/.cursor/skills/yss-cache/scripts/check-skill-freshness.sh +1 -1
- package/template/.cursor/skills/yss-ddd-scaffold-generator/SKILL.md +6 -6
- package/template/.cursor/skills/yss-ddd-scaffold-generator/agents/openai.yaml +1 -1
- package/template/.cursor/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +1 -1
- package/template/.cursor/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +3 -3
- package/template/.cursor/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/SKILL.md +1 -1
- package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/first-slice-compatibility.test.mjs +3 -3
- package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/first-slice-verification.test.mjs +3 -3
- package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +8 -8
- package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/run_first_slice_verification.mjs +1 -1
- package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.mjs +1 -1
- package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +8 -8
- package/template/.cursor/skills/yss-design-system/SKILL.md +6 -6
- package/template/.cursor/skills/yss-distributed-id/SKILL.md +2 -2
- package/template/.cursor/skills/yss-distributed-id/references/source-index.md +1 -1
- package/template/.cursor/skills/yss-domain/SKILL.md +1 -1
- package/template/.cursor/skills/yss-dto/SKILL.md +2 -2
- package/template/.cursor/skills/yss-dto/references/source-index.md +1 -1
- package/template/.cursor/skills/yss-excel-mvc/SKILL.md +2 -2
- package/template/.cursor/skills/yss-excel-mvc/references/source-index.md +1 -1
- package/template/.cursor/skills/yss-exception/SKILL.md +1 -1
- package/template/.cursor/skills/yss-exception/references/source-index.md +1 -1
- package/template/{.claude/skills/yss-router → .cursor/skills/yss-implementation-contract-compiler}/SKILL.md +22 -18
- package/template/.cursor/skills/yss-implementation-contract-compiler/agents/openai.yaml +4 -0
- package/template/.cursor/skills/yss-implementation-contract-compiler/references/boundaries.md +134 -0
- package/template/{.agents/skills/yss-router/references/router-contract.yaml → .cursor/skills/yss-implementation-contract-compiler/references/compiler-contract.yaml} +59 -94
- package/template/{.claude/skills/yss-router → .cursor/skills/yss-implementation-contract-compiler}/references/slice-implementation-contract.md +20 -8
- package/template/.cursor/skills/{yss-router → yss-implementation-contract-compiler}/references/yss-skill-execution-result.md +5 -3
- package/template/.cursor/skills/yss-implementation-contract-compiler/tests/compiler-scenarios.test.mjs +89 -0
- package/template/.cursor/skills/yss-mvc-scaffold-generator/SKILL.md +87 -0
- package/template/.cursor/skills/yss-mvc-scaffold-generator/agents/openai.yaml +4 -0
- package/template/.cursor/skills/yss-mvc-scaffold-generator/assets/logback-spring.xml.template +50 -0
- package/template/.cursor/skills/yss-mvc-scaffold-generator/assets/smart-doc.json.template +42 -0
- package/template/.cursor/skills/yss-mvc-scaffold-generator/references/architecture.md +28 -0
- package/template/.cursor/skills/yss-mvc-scaffold-generator/scripts/generate_project.mjs +136 -0
- package/template/.cursor/skills/yss-mvc-scaffold-generator/scripts/generate_project.test.mjs +337 -0
- package/template/.cursor/skills/yss-mvc-scaffold-generator/scripts/lib/envelope.mjs +66 -0
- package/template/.cursor/skills/yss-mvc-scaffold-generator/scripts/lib/runtime.mjs +115 -0
- package/template/.cursor/skills/yss-mvc-scaffold-generator/scripts/lib/storage.mjs +90 -0
- package/template/.cursor/skills/yss-mvc-scaffold-generator/scripts/lib/templates.mjs +54 -0
- package/template/.cursor/skills/yss-mvc-scaffold-generator/scripts/verify_project.mjs +103 -0
- package/template/.cursor/skills/yss-mybatis/SKILL.md +2 -2
- package/template/.cursor/skills/yss-mybatis/references/source-index.md +1 -1
- package/template/.cursor/skills/yss-page-module-development/SKILL.md +1 -1
- package/template/.cursor/skills/yss-product-lifecycle/SKILL.md +6 -6
- package/template/.cursor/skills/yss-product-lifecycle/references/matt-yss-adapter.md +5 -5
- package/template/.cursor/skills/yss-product-lifecycle/references/orchestration-contract.yaml +25 -17
- package/template/.cursor/skills/yss-product-lifecycle/references/orchestration.md +5 -5
- package/template/.cursor/skills/yss-product-lifecycle/references/state-model.md +1 -1
- package/template/.cursor/skills/yss-prototype-stage/SKILL.md +34 -24
- package/template/.cursor/skills/yss-prototype-stage/references/product-design-adapter.md +43 -38
- package/template/.cursor/skills/yss-prototype-stage/references/prototype-profile-routing.md +67 -0
- package/template/.cursor/skills/yss-prototype-stage/scripts/prototype-contract.mjs +192 -103
- package/template/.cursor/skills/yss-prototype-stage/tests/run-scenarios.mjs +87 -134
- package/template/.cursor/skills/yss-repository/SKILL.md +2 -2
- package/template/.cursor/skills/yss-resilience4j/SKILL.md +1 -1
- package/template/.cursor/skills/yss-resilience4j/references/source-index.md +1 -1
- package/template/.cursor/skills/yss-security-algorithm/SKILL.md +1 -1
- package/template/.cursor/skills/yss-security-algorithm/references/source-index.md +1 -1
- package/template/.cursor/skills/{yss-source-index → yss-skill-source-index-refresh}/SKILL.md +4 -4
- package/template/.cursor/skills/yss-skill-source-index-refresh/agents/openai.yaml +4 -0
- package/template/.cursor/skills/{yss-source-index → yss-skill-source-index-refresh}/scripts/refresh-yss-skill-index.mjs +1 -1
- package/template/.cursor/skills/yss-ui/SKILL.md +2 -1
- package/template/.cursor/skills/yss-ui/assets/docs/guide/llms.md +0 -61
- package/template/.cursor/skills/yss-up-springboot3/SKILL.md +1 -1
- package/template/.cursor/skills/yss-userinfo/SKILL.md +1 -1
- package/template/.cursor/skills/yss-userinfo/references/source-index.md +1 -1
- package/template/.cursor/skills/yss-validation/SKILL.md +1 -1
- package/template/.cursor/skills/yss-validation/references/source-index.md +1 -1
- package/template/.cursor/skills/yss-web-controller/SKILL.md +2 -2
- package/template/.pi/skills/code-review/SKILL.md +1 -1
- package/template/.pi/skills/code-review/references/yss-review-standards.md +1 -1
- package/template/.pi/skills/lombok/SKILL.md +1 -1
- package/template/.pi/skills/mapstruct/SKILL.md +1 -1
- package/template/.pi/skills/prototype-review/SKILL.md +7 -6
- package/template/.pi/skills/yss-antd-design/SKILL.md +8 -7
- package/template/.pi/skills/yss-antd-design/references/evidence.md +11 -6
- package/template/.pi/skills/yss-api-integration/SKILL.md +2 -2
- package/template/.pi/skills/yss-application/SKILL.md +2 -2
- package/template/.pi/skills/yss-audit-log/SKILL.md +2 -2
- package/template/.pi/skills/yss-audit-log/references/source-index.md +1 -1
- package/template/.pi/skills/yss-cache/SKILL.md +2 -2
- package/template/.pi/skills/yss-cache/references/source-index.md +1 -1
- package/template/.pi/skills/yss-cache/scripts/check-skill-freshness.sh +1 -1
- package/template/.pi/skills/yss-ddd-scaffold-generator/SKILL.md +6 -6
- package/template/.pi/skills/yss-ddd-scaffold-generator/agents/openai.yaml +1 -1
- package/template/.pi/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +1 -1
- package/template/.pi/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +3 -3
- package/template/.pi/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/SKILL.md +1 -1
- package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/first-slice-compatibility.test.mjs +3 -3
- package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/first-slice-verification.test.mjs +3 -3
- package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +8 -8
- package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/run_first_slice_verification.mjs +1 -1
- package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.mjs +1 -1
- package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +8 -8
- package/template/.pi/skills/yss-design-system/SKILL.md +6 -6
- package/template/.pi/skills/yss-distributed-id/SKILL.md +2 -2
- package/template/.pi/skills/yss-distributed-id/references/source-index.md +1 -1
- package/template/.pi/skills/yss-domain/SKILL.md +1 -1
- package/template/.pi/skills/yss-dto/SKILL.md +2 -2
- package/template/.pi/skills/yss-dto/references/source-index.md +1 -1
- package/template/.pi/skills/yss-excel-mvc/SKILL.md +2 -2
- package/template/.pi/skills/yss-excel-mvc/references/source-index.md +1 -1
- package/template/.pi/skills/yss-exception/SKILL.md +1 -1
- package/template/.pi/skills/yss-exception/references/source-index.md +1 -1
- package/template/.pi/skills/yss-implementation-contract-compiler/SKILL.md +55 -0
- package/template/.pi/skills/yss-implementation-contract-compiler/agents/openai.yaml +4 -0
- package/template/.pi/skills/yss-implementation-contract-compiler/references/boundaries.md +134 -0
- package/template/.pi/skills/yss-implementation-contract-compiler/references/compiler-contract.yaml +314 -0
- package/template/.pi/skills/yss-implementation-contract-compiler/references/slice-implementation-contract.md +197 -0
- package/template/.pi/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +69 -0
- package/template/.pi/skills/yss-implementation-contract-compiler/tests/compiler-scenarios.test.mjs +89 -0
- package/template/.pi/skills/yss-mvc-scaffold-generator/SKILL.md +87 -0
- package/template/.pi/skills/yss-mvc-scaffold-generator/agents/openai.yaml +4 -0
- package/template/.pi/skills/yss-mvc-scaffold-generator/assets/logback-spring.xml.template +50 -0
- package/template/.pi/skills/yss-mvc-scaffold-generator/assets/smart-doc.json.template +42 -0
- package/template/.pi/skills/yss-mvc-scaffold-generator/references/architecture.md +28 -0
- package/template/.pi/skills/yss-mvc-scaffold-generator/scripts/generate_project.mjs +136 -0
- package/template/.pi/skills/yss-mvc-scaffold-generator/scripts/generate_project.test.mjs +337 -0
- package/template/.pi/skills/yss-mvc-scaffold-generator/scripts/lib/envelope.mjs +66 -0
- package/template/.pi/skills/yss-mvc-scaffold-generator/scripts/lib/runtime.mjs +115 -0
- package/template/.pi/skills/yss-mvc-scaffold-generator/scripts/lib/storage.mjs +90 -0
- package/template/.pi/skills/yss-mvc-scaffold-generator/scripts/lib/templates.mjs +54 -0
- package/template/.pi/skills/yss-mvc-scaffold-generator/scripts/verify_project.mjs +103 -0
- package/template/.pi/skills/yss-mybatis/SKILL.md +2 -2
- package/template/.pi/skills/yss-mybatis/references/source-index.md +1 -1
- package/template/.pi/skills/yss-page-module-development/SKILL.md +1 -1
- package/template/.pi/skills/yss-product-lifecycle/SKILL.md +6 -6
- package/template/.pi/skills/yss-product-lifecycle/references/matt-yss-adapter.md +5 -5
- package/template/.pi/skills/yss-product-lifecycle/references/orchestration-contract.yaml +25 -17
- package/template/.pi/skills/yss-product-lifecycle/references/orchestration.md +5 -5
- package/template/.pi/skills/yss-product-lifecycle/references/state-model.md +1 -1
- package/template/.pi/skills/yss-prototype-stage/SKILL.md +34 -24
- package/template/.pi/skills/yss-prototype-stage/references/product-design-adapter.md +43 -38
- package/template/.pi/skills/yss-prototype-stage/references/prototype-profile-routing.md +67 -0
- package/template/.pi/skills/yss-prototype-stage/scripts/prototype-contract.mjs +192 -103
- package/template/.pi/skills/yss-prototype-stage/tests/run-scenarios.mjs +87 -134
- package/template/.pi/skills/yss-repository/SKILL.md +2 -2
- package/template/.pi/skills/yss-resilience4j/SKILL.md +1 -1
- package/template/.pi/skills/yss-resilience4j/references/source-index.md +1 -1
- package/template/.pi/skills/yss-security-algorithm/SKILL.md +1 -1
- package/template/.pi/skills/yss-security-algorithm/references/source-index.md +1 -1
- package/template/.pi/skills/yss-skill-source-index-refresh/SKILL.md +63 -0
- package/template/.pi/skills/yss-skill-source-index-refresh/agents/openai.yaml +4 -0
- package/template/.pi/skills/yss-skill-source-index-refresh/scripts/refresh-yss-skill-index.mjs +24 -0
- package/template/.pi/skills/yss-ui/SKILL.md +2 -1
- package/template/.pi/skills/yss-ui/assets/docs/guide/llms.md +0 -61
- package/template/.pi/skills/yss-up-springboot3/SKILL.md +1 -1
- package/template/.pi/skills/yss-userinfo/SKILL.md +1 -1
- package/template/.pi/skills/yss-userinfo/references/source-index.md +1 -1
- package/template/.pi/skills/yss-validation/SKILL.md +1 -1
- package/template/.pi/skills/yss-validation/references/source-index.md +1 -1
- package/template/.pi/skills/yss-web-controller/SKILL.md +2 -2
- package/template/.qoder/skills/code-review/SKILL.md +1 -1
- package/template/.qoder/skills/code-review/references/yss-review-standards.md +1 -1
- package/template/.qoder/skills/lombok/SKILL.md +1 -1
- package/template/.qoder/skills/mapstruct/SKILL.md +1 -1
- package/template/.qoder/skills/prototype-review/SKILL.md +7 -6
- package/template/.qoder/skills/yss-antd-design/SKILL.md +8 -7
- package/template/.qoder/skills/yss-antd-design/references/evidence.md +11 -6
- package/template/.qoder/skills/yss-api-integration/SKILL.md +2 -2
- package/template/.qoder/skills/yss-application/SKILL.md +2 -2
- package/template/.qoder/skills/yss-audit-log/SKILL.md +2 -2
- package/template/.qoder/skills/yss-audit-log/references/source-index.md +1 -1
- package/template/.qoder/skills/yss-cache/SKILL.md +2 -2
- package/template/.qoder/skills/yss-cache/references/source-index.md +1 -1
- package/template/.qoder/skills/yss-cache/scripts/check-skill-freshness.sh +1 -1
- package/template/.qoder/skills/yss-ddd-scaffold-generator/SKILL.md +6 -6
- package/template/.qoder/skills/yss-ddd-scaffold-generator/agents/openai.yaml +1 -1
- package/template/.qoder/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +1 -1
- package/template/.qoder/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +3 -3
- package/template/.qoder/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/SKILL.md +1 -1
- package/template/.qoder/skills/yss-ddd-scaffold-generator/scripts/first-slice-compatibility.test.mjs +3 -3
- package/template/.qoder/skills/yss-ddd-scaffold-generator/scripts/first-slice-verification.test.mjs +3 -3
- package/template/.qoder/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +8 -8
- package/template/.qoder/skills/yss-ddd-scaffold-generator/scripts/run_first_slice_verification.mjs +1 -1
- package/template/.qoder/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.mjs +1 -1
- package/template/.qoder/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +8 -8
- package/template/.qoder/skills/yss-design-system/SKILL.md +6 -6
- package/template/.qoder/skills/yss-distributed-id/SKILL.md +2 -2
- package/template/.qoder/skills/yss-distributed-id/references/source-index.md +1 -1
- package/template/.qoder/skills/yss-domain/SKILL.md +1 -1
- package/template/.qoder/skills/yss-dto/SKILL.md +2 -2
- package/template/.qoder/skills/yss-dto/references/source-index.md +1 -1
- package/template/.qoder/skills/yss-excel-mvc/SKILL.md +2 -2
- package/template/.qoder/skills/yss-excel-mvc/references/source-index.md +1 -1
- package/template/.qoder/skills/yss-exception/SKILL.md +1 -1
- package/template/.qoder/skills/yss-exception/references/source-index.md +1 -1
- package/template/.qoder/skills/yss-implementation-contract-compiler/SKILL.md +55 -0
- package/template/.qoder/skills/yss-implementation-contract-compiler/agents/openai.yaml +4 -0
- package/template/.qoder/skills/yss-implementation-contract-compiler/references/boundaries.md +134 -0
- package/template/.qoder/skills/yss-implementation-contract-compiler/references/compiler-contract.yaml +314 -0
- package/template/.qoder/skills/yss-implementation-contract-compiler/references/slice-implementation-contract.md +197 -0
- package/template/.qoder/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +69 -0
- package/template/.qoder/skills/yss-implementation-contract-compiler/tests/compiler-scenarios.test.mjs +89 -0
- package/template/.qoder/skills/yss-mvc-scaffold-generator/SKILL.md +87 -0
- package/template/.qoder/skills/yss-mvc-scaffold-generator/agents/openai.yaml +4 -0
- package/template/.qoder/skills/yss-mvc-scaffold-generator/assets/logback-spring.xml.template +50 -0
- package/template/.qoder/skills/yss-mvc-scaffold-generator/assets/smart-doc.json.template +42 -0
- package/template/.qoder/skills/yss-mvc-scaffold-generator/references/architecture.md +28 -0
- package/template/.qoder/skills/yss-mvc-scaffold-generator/scripts/generate_project.mjs +136 -0
- package/template/.qoder/skills/yss-mvc-scaffold-generator/scripts/generate_project.test.mjs +337 -0
- package/template/.qoder/skills/yss-mvc-scaffold-generator/scripts/lib/envelope.mjs +66 -0
- package/template/.qoder/skills/yss-mvc-scaffold-generator/scripts/lib/runtime.mjs +115 -0
- package/template/.qoder/skills/yss-mvc-scaffold-generator/scripts/lib/storage.mjs +90 -0
- package/template/.qoder/skills/yss-mvc-scaffold-generator/scripts/lib/templates.mjs +54 -0
- package/template/.qoder/skills/yss-mvc-scaffold-generator/scripts/verify_project.mjs +103 -0
- package/template/.qoder/skills/yss-mybatis/SKILL.md +2 -2
- package/template/.qoder/skills/yss-mybatis/references/source-index.md +1 -1
- package/template/.qoder/skills/yss-page-module-development/SKILL.md +1 -1
- package/template/.qoder/skills/yss-product-lifecycle/SKILL.md +6 -6
- package/template/.qoder/skills/yss-product-lifecycle/references/matt-yss-adapter.md +5 -5
- package/template/.qoder/skills/yss-product-lifecycle/references/orchestration-contract.yaml +25 -17
- package/template/.qoder/skills/yss-product-lifecycle/references/orchestration.md +5 -5
- package/template/.qoder/skills/yss-product-lifecycle/references/state-model.md +1 -1
- package/template/.qoder/skills/yss-prototype-stage/SKILL.md +34 -24
- package/template/.qoder/skills/yss-prototype-stage/references/product-design-adapter.md +43 -38
- package/template/.qoder/skills/yss-prototype-stage/references/prototype-profile-routing.md +67 -0
- package/template/.qoder/skills/yss-prototype-stage/scripts/prototype-contract.mjs +192 -103
- package/template/.qoder/skills/yss-prototype-stage/tests/run-scenarios.mjs +87 -134
- package/template/.qoder/skills/yss-repository/SKILL.md +2 -2
- package/template/.qoder/skills/yss-resilience4j/SKILL.md +1 -1
- package/template/.qoder/skills/yss-resilience4j/references/source-index.md +1 -1
- package/template/.qoder/skills/yss-security-algorithm/SKILL.md +1 -1
- package/template/.qoder/skills/yss-security-algorithm/references/source-index.md +1 -1
- package/template/.qoder/skills/yss-skill-source-index-refresh/SKILL.md +63 -0
- package/template/.qoder/skills/yss-skill-source-index-refresh/agents/openai.yaml +4 -0
- package/template/.qoder/skills/yss-skill-source-index-refresh/scripts/refresh-yss-skill-index.mjs +24 -0
- package/template/.qoder/skills/yss-ui/SKILL.md +2 -1
- package/template/.qoder/skills/yss-ui/assets/docs/guide/llms.md +0 -61
- package/template/.qoder/skills/yss-up-springboot3/SKILL.md +1 -1
- package/template/.qoder/skills/yss-userinfo/SKILL.md +1 -1
- package/template/.qoder/skills/yss-userinfo/references/source-index.md +1 -1
- package/template/.qoder/skills/yss-validation/SKILL.md +1 -1
- package/template/.qoder/skills/yss-validation/references/source-index.md +1 -1
- package/template/.qoder/skills/yss-web-controller/SKILL.md +2 -2
- package/template/.trae/skills/code-review/SKILL.md +1 -1
- package/template/.trae/skills/code-review/references/yss-review-standards.md +1 -1
- package/template/.trae/skills/lombok/SKILL.md +1 -1
- package/template/.trae/skills/mapstruct/SKILL.md +1 -1
- package/template/.trae/skills/prototype-review/SKILL.md +7 -6
- package/template/.trae/skills/yss-antd-design/SKILL.md +8 -7
- package/template/.trae/skills/yss-antd-design/references/evidence.md +11 -6
- package/template/.trae/skills/yss-api-integration/SKILL.md +2 -2
- package/template/.trae/skills/yss-application/SKILL.md +2 -2
- package/template/.trae/skills/yss-audit-log/SKILL.md +2 -2
- package/template/.trae/skills/yss-audit-log/references/source-index.md +1 -1
- package/template/.trae/skills/yss-cache/SKILL.md +2 -2
- package/template/.trae/skills/yss-cache/references/source-index.md +1 -1
- package/template/.trae/skills/yss-cache/scripts/check-skill-freshness.sh +1 -1
- package/template/.trae/skills/yss-ddd-scaffold-generator/SKILL.md +6 -6
- package/template/.trae/skills/yss-ddd-scaffold-generator/agents/openai.yaml +1 -1
- package/template/.trae/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +1 -1
- package/template/.trae/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +3 -3
- package/template/.trae/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/SKILL.md +1 -1
- package/template/.trae/skills/yss-ddd-scaffold-generator/scripts/first-slice-compatibility.test.mjs +3 -3
- package/template/.trae/skills/yss-ddd-scaffold-generator/scripts/first-slice-verification.test.mjs +3 -3
- package/template/.trae/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +8 -8
- package/template/.trae/skills/yss-ddd-scaffold-generator/scripts/run_first_slice_verification.mjs +1 -1
- package/template/.trae/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.mjs +1 -1
- package/template/.trae/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +8 -8
- package/template/.trae/skills/yss-design-system/SKILL.md +6 -6
- package/template/.trae/skills/yss-distributed-id/SKILL.md +2 -2
- package/template/.trae/skills/yss-distributed-id/references/source-index.md +1 -1
- package/template/.trae/skills/yss-domain/SKILL.md +1 -1
- package/template/.trae/skills/yss-dto/SKILL.md +2 -2
- package/template/.trae/skills/yss-dto/references/source-index.md +1 -1
- package/template/.trae/skills/yss-excel-mvc/SKILL.md +2 -2
- package/template/.trae/skills/yss-excel-mvc/references/source-index.md +1 -1
- package/template/.trae/skills/yss-exception/SKILL.md +1 -1
- package/template/.trae/skills/yss-exception/references/source-index.md +1 -1
- package/template/.trae/skills/yss-implementation-contract-compiler/SKILL.md +55 -0
- package/template/.trae/skills/yss-implementation-contract-compiler/agents/openai.yaml +4 -0
- package/template/.trae/skills/yss-implementation-contract-compiler/references/boundaries.md +134 -0
- package/template/.trae/skills/yss-implementation-contract-compiler/references/compiler-contract.yaml +314 -0
- package/template/.trae/skills/yss-implementation-contract-compiler/references/slice-implementation-contract.md +197 -0
- package/template/.trae/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +69 -0
- package/template/.trae/skills/yss-implementation-contract-compiler/tests/compiler-scenarios.test.mjs +89 -0
- package/template/.trae/skills/yss-mvc-scaffold-generator/SKILL.md +87 -0
- package/template/.trae/skills/yss-mvc-scaffold-generator/agents/openai.yaml +4 -0
- package/template/.trae/skills/yss-mvc-scaffold-generator/assets/logback-spring.xml.template +50 -0
- package/template/.trae/skills/yss-mvc-scaffold-generator/assets/smart-doc.json.template +42 -0
- package/template/.trae/skills/yss-mvc-scaffold-generator/references/architecture.md +28 -0
- package/template/.trae/skills/yss-mvc-scaffold-generator/scripts/generate_project.mjs +136 -0
- package/template/.trae/skills/yss-mvc-scaffold-generator/scripts/generate_project.test.mjs +337 -0
- package/template/.trae/skills/yss-mvc-scaffold-generator/scripts/lib/envelope.mjs +66 -0
- package/template/.trae/skills/yss-mvc-scaffold-generator/scripts/lib/runtime.mjs +115 -0
- package/template/.trae/skills/yss-mvc-scaffold-generator/scripts/lib/storage.mjs +90 -0
- package/template/.trae/skills/yss-mvc-scaffold-generator/scripts/lib/templates.mjs +54 -0
- package/template/.trae/skills/yss-mvc-scaffold-generator/scripts/verify_project.mjs +103 -0
- package/template/.trae/skills/yss-mybatis/SKILL.md +2 -2
- package/template/.trae/skills/yss-mybatis/references/source-index.md +1 -1
- package/template/.trae/skills/yss-page-module-development/SKILL.md +1 -1
- package/template/.trae/skills/yss-product-lifecycle/SKILL.md +6 -6
- package/template/.trae/skills/yss-product-lifecycle/references/matt-yss-adapter.md +5 -5
- package/template/.trae/skills/yss-product-lifecycle/references/orchestration-contract.yaml +25 -17
- package/template/.trae/skills/yss-product-lifecycle/references/orchestration.md +5 -5
- package/template/.trae/skills/yss-product-lifecycle/references/state-model.md +1 -1
- package/template/.trae/skills/yss-prototype-stage/SKILL.md +34 -24
- package/template/.trae/skills/yss-prototype-stage/references/product-design-adapter.md +43 -38
- package/template/.trae/skills/yss-prototype-stage/references/prototype-profile-routing.md +67 -0
- package/template/.trae/skills/yss-prototype-stage/scripts/prototype-contract.mjs +192 -103
- package/template/.trae/skills/yss-prototype-stage/tests/run-scenarios.mjs +87 -134
- package/template/.trae/skills/yss-repository/SKILL.md +2 -2
- package/template/.trae/skills/yss-resilience4j/SKILL.md +1 -1
- package/template/.trae/skills/yss-resilience4j/references/source-index.md +1 -1
- package/template/.trae/skills/yss-security-algorithm/SKILL.md +1 -1
- package/template/.trae/skills/yss-security-algorithm/references/source-index.md +1 -1
- package/template/.trae/skills/yss-skill-source-index-refresh/SKILL.md +63 -0
- package/template/.trae/skills/yss-skill-source-index-refresh/agents/openai.yaml +4 -0
- package/template/.trae/skills/yss-skill-source-index-refresh/scripts/refresh-yss-skill-index.mjs +24 -0
- package/template/.trae/skills/yss-ui/SKILL.md +2 -1
- package/template/.trae/skills/yss-ui/assets/docs/guide/llms.md +0 -61
- package/template/.trae/skills/yss-up-springboot3/SKILL.md +1 -1
- package/template/.trae/skills/yss-userinfo/SKILL.md +1 -1
- package/template/.trae/skills/yss-userinfo/references/source-index.md +1 -1
- package/template/.trae/skills/yss-validation/SKILL.md +1 -1
- package/template/.trae/skills/yss-validation/references/source-index.md +1 -1
- package/template/.trae/skills/yss-web-controller/SKILL.md +2 -2
- package/template/AGENTS.md +11 -11
- package/template/CONTEXT.md +8 -7
- package/template/README.md +0 -1
- package/template/docs/agents/digital-human-roles.md +3 -3
- package/template/docs/agents/digital-human-roles.yaml +3 -3
- package/template/docs/agents/skill-migrations.md +18 -5
- package/template/docs/agents/skills-maintenance.md +3 -3
- package/template/docs/agents/strategic-design-skills-integration.md +41 -0
- package/template/docs/agents/yss-skill-registry.yaml +134 -28
- package/template/docs/api/templates/openapi-draft-review-checklist.md +3 -3
- package/template/docs/architecture/templates/engineering-baseline-review-template.md +3 -3
- package/template/docs/design/README.md +7 -7
- package/template/docs/design/design.md +25 -17
- package/template/docs/design/templates/interaction-spec-template.md +4 -4
- package/template/docs/design/templates/prototype-confirmation-template.md +13 -15
- package/template/docs/design/templates/prototype-evidence-template.yaml +99 -75
- package/template/docs/design/templates/prototype-review-checklist.md +5 -4
- package/template/docs/design/templates/state-matrix-template.md +11 -0
- package/template/docs/discovery/reports/agent-governance-options.md +8 -8
- package/template/docs/process/MATT-POCOCK-ENGINEERING-SKILLS.md +1 -1
- package/template/docs/process/implementation-repo-integration.md +1 -1
- package/template/docs/process/lifecycle-artifact-map.md +4 -2
- package/template/docs/process/lifecycle-registry-baseline.json +4 -1
- package/template/docs/process/lifecycle-registry.yaml +15 -9
- package/template/docs/process/template-engineering-overview.md +2 -2
- package/template/docs/process/template-verification-profiles.yaml +27 -6
- package/template/docs/templates/build-architecture-checklist-template.md +6 -6
- package/template/docs/templates/implementation-routing-template.md +8 -8
- package/template/docs/templates/requirement-freeze-template.md +2 -2
- package/template/docs/templates/review-report-template.md +4 -4
- package/template/docs/templates/spec-template.md +1 -1
- package/template/docs/templates/vertical-slice-ticket-template.md +4 -4
- package/template/docs/user-guide/yss-ui-mcp.md +0 -2
- package/template/docs/user-guide//346/210/230/346/234/257/350/256/276/350/256/241/345/255/220/351/241/271/347/233/256/347/224/250/346/210/267/346/211/213/345/206/214.md +2 -2
- package/template/docs/user-guide//347/224/250/346/210/267/346/211/213/345/206/214.md +4 -4
- package/template/docs/user-guide//347/224/250/346/210/267/346/211/213/345/206/214/347/264/242/345/274/225.md +4 -4
- package/template/scripts/audit-yss-backend-skills +56 -0
- package/template/scripts/generate-yss-skill-boundaries +67 -0
- package/template/scripts/lib/export-skills.mjs +4 -4
- package/template/scripts/lib/implementation-contract-compiler.mjs +194 -0
- package/template/scripts/lib/scenario-checks.mjs +9 -6
- package/template/scripts/lib/skill-governance.mjs +27 -5
- package/template/scripts/lib/skill-registry.mjs +107 -63
- package/template/scripts/lib/skill-supply-chain.mjs +45 -5
- package/template/scripts/verify-repository-scope-scenarios +2 -2
- package/template/scripts/verify-retired-skill-ids +37 -0
- package/template/scripts/verify-scaffold-generator-scenarios +18 -18
- package/template/scripts/verify-template-verification-scenarios +4 -1
- package/template/scripts/verify-yss-implementation-contract-compiler-scenarios +14 -0
- package/template/skills-lock.json +87 -157
- package/template/yss-public-skills.json +4 -4
- package/template.manifest.json +0 -3
- package/template.snapshot.json +5 -5
- package/template/.agents/skills/yss-router/agents/openai.yaml +0 -4
- package/template/.agents/skills/yss-router/references/boundaries.md +0 -50
- package/template/.agents/skills/yss-source-index/agents/openai.yaml +0 -4
- package/template/.claude/skills/yss-router/agents/openai.yaml +0 -4
- package/template/.claude/skills/yss-router/references/boundaries.md +0 -50
- package/template/.claude/skills/yss-source-index/agents/openai.yaml +0 -4
- package/template/.codex/skills/yss-router/agents/openai.yaml +0 -4
- package/template/.codex/skills/yss-router/references/boundaries.md +0 -50
- package/template/.codex/skills/yss-source-index/agents/openai.yaml +0 -4
- package/template/.cursor/skills/yss-router/agents/openai.yaml +0 -4
- package/template/.cursor/skills/yss-router/references/boundaries.md +0 -50
- package/template/.cursor/skills/yss-source-index/agents/openai.yaml +0 -4
- package/template/.gemini/settings.json +0 -8
- package/template/.hermes/skills/alibaba-java-code-style/SKILL.md +0 -51
- package/template/.hermes/skills/alibaba-java-code-style/agents/openai.yaml +0 -4
- package/template/.hermes/skills/alibaba-java-code-style/references/database-engineering-design.md +0 -147
- package/template/.hermes/skills/alibaba-java-code-style/references/java-programming.md +0 -178
- package/template/.hermes/skills/alibaba-java-code-style/references/reliability-test-security.md +0 -89
- package/template/.hermes/skills/archify/LICENSE +0 -22
- package/template/.hermes/skills/archify/SKILL.md +0 -156
- package/template/.hermes/skills/archify/assets/template.html +0 -14787
- package/template/.hermes/skills/archify/bin/archify.mjs +0 -1990
- package/template/.hermes/skills/archify/bin/open-artifact.mjs +0 -86
- package/template/.hermes/skills/archify/bin/preview.mjs +0 -648
- package/template/.hermes/skills/archify/bin/visual-check.mjs +0 -829
- package/template/.hermes/skills/archify/brand-marks/README.md +0 -31
- package/template/.hermes/skills/archify/brand-marks/catalog.json +0 -131
- package/template/.hermes/skills/archify/delta/architecture-delta.mjs +0 -1214
- package/template/.hermes/skills/archify/examples/agent-run.lifecycle.json +0 -71
- package/template/.hermes/skills/archify/examples/agent-tool-call.workflow.json +0 -94
- package/template/.hermes/skills/archify/examples/async-job-roundtrip.sequence.json +0 -61
- package/template/.hermes/skills/archify/examples/brand-aware-delivery.architecture.json +0 -47
- package/template/.hermes/skills/archify/examples/cache-miss-request.sequence.json +0 -81
- package/template/.hermes/skills/archify/examples/checkout-platform.base.architecture.json +0 -31
- package/template/.hermes/skills/archify/examples/checkout-platform.head.architecture.json +0 -31
- package/template/.hermes/skills/archify/examples/dataflow-product-analytics.html +0 -14898
- package/template/.hermes/skills/archify/examples/deployment-release.lifecycle.json +0 -49
- package/template/.hermes/skills/archify/examples/event-stream.dataflow.json +0 -57
- package/template/.hermes/skills/archify/examples/incident-response.workflow.json +0 -64
- package/template/.hermes/skills/archify/examples/lifecycle-agent-run.html +0 -14847
- package/template/.hermes/skills/archify/examples/product-analytics.dataflow.json +0 -76
- package/template/.hermes/skills/archify/examples/production-deployment.architecture.json +0 -71
- package/template/.hermes/skills/archify/examples/release-delivery.workflow.json +0 -62
- package/template/.hermes/skills/archify/examples/sequence-cache-miss-request.html +0 -14913
- package/template/.hermes/skills/archify/examples/web-app-rendered.html +0 -14862
- package/template/.hermes/skills/archify/examples/web-app.architecture.json +0 -46
- package/template/.hermes/skills/archify/examples/workflow-agent-tool-call-rendered.html +0 -14904
- package/template/.hermes/skills/archify/migrations/workflow-v2.mjs +0 -279
- package/template/.hermes/skills/archify/package-lock.json +0 -149
- package/template/.hermes/skills/archify/package.json +0 -37
- package/template/.hermes/skills/archify/recipes/scenarios.mjs +0 -391
- package/template/.hermes/skills/archify/references/authoring-contract.md +0 -191
- package/template/.hermes/skills/archify/references/brand-marks.md +0 -65
- package/template/.hermes/skills/archify/references/delivery-contract.md +0 -112
- package/template/.hermes/skills/archify/references/viewer-runtime.md +0 -45
- package/template/.hermes/skills/archify/renderers/architecture/grid.mjs +0 -62
- package/template/.hermes/skills/archify/renderers/architecture/render-architecture.mjs +0 -1078
- package/template/.hermes/skills/archify/renderers/dataflow/README.md +0 -104
- package/template/.hermes/skills/archify/renderers/dataflow/render-dataflow.mjs +0 -483
- package/template/.hermes/skills/archify/renderers/lifecycle/README.md +0 -115
- package/template/.hermes/skills/archify/renderers/lifecycle/render-lifecycle.mjs +0 -561
- package/template/.hermes/skills/archify/renderers/sequence/README.md +0 -114
- package/template/.hermes/skills/archify/renderers/sequence/render-sequence.mjs +0 -453
- package/template/.hermes/skills/archify/renderers/shared/brand-marks.mjs +0 -563
- package/template/.hermes/skills/archify/renderers/shared/cli.mjs +0 -218
- package/template/.hermes/skills/archify/renderers/shared/desktop-readability.mjs +0 -26
- package/template/.hermes/skills/archify/renderers/shared/diagnostics.mjs +0 -127
- package/template/.hermes/skills/archify/renderers/shared/engineering-profiles.mjs +0 -157
- package/template/.hermes/skills/archify/renderers/shared/generated-brand-marks.mjs +0 -2003
- package/template/.hermes/skills/archify/renderers/shared/generated-validators.mjs +0 -13
- package/template/.hermes/skills/archify/renderers/shared/geometry.mjs +0 -1423
- package/template/.hermes/skills/archify/renderers/shared/i18n.mjs +0 -594
- package/template/.hermes/skills/archify/renderers/shared/layout-report.mjs +0 -40
- package/template/.hermes/skills/archify/renderers/shared/legend.mjs +0 -217
- package/template/.hermes/skills/archify/renderers/shared/output-path.mjs +0 -321
- package/template/.hermes/skills/archify/renderers/shared/repository-evidence.mjs +0 -235
- package/template/.hermes/skills/archify/renderers/shared/text-fit.mjs +0 -49
- package/template/.hermes/skills/archify/renderers/shared/utils.mjs +0 -232
- package/template/.hermes/skills/archify/renderers/shared/validator.mjs +0 -86
- package/template/.hermes/skills/archify/renderers/workflow/README.md +0 -223
- package/template/.hermes/skills/archify/renderers/workflow/render-workflow.mjs +0 -35
- package/template/.hermes/skills/archify/renderers/workflow/workflow-compiler.mjs +0 -4400
- package/template/.hermes/skills/archify/renderers/workflow/workflow-migration-geometry.mjs +0 -144
- package/template/.hermes/skills/archify/schemas/README.md +0 -211
- package/template/.hermes/skills/archify/schemas/architecture.schema.json +0 -176
- package/template/.hermes/skills/archify/schemas/common.schema.json +0 -115
- package/template/.hermes/skills/archify/schemas/dataflow.schema.json +0 -243
- package/template/.hermes/skills/archify/schemas/lifecycle.schema.json +0 -266
- package/template/.hermes/skills/archify/schemas/sequence.schema.json +0 -223
- package/template/.hermes/skills/archify/schemas/workflow.schema.json +0 -428
- package/template/.hermes/skills/archify/scripts/check-render-output.mjs +0 -835
- package/template/.hermes/skills/archify/scripts/check-update.mjs +0 -1667
- package/template/.hermes/skills/archify/scripts/generate-brand-marks.mjs +0 -141
- package/template/.hermes/skills/archify/scripts/generate-validators.mjs +0 -66
- package/template/.hermes/skills/archify/scripts/render-examples.mjs +0 -26
- package/template/.hermes/skills/archify/scripts/update-contract.mjs +0 -182
- package/template/.hermes/skills/archify/scripts/yss-safe-deliver.mjs +0 -214
- package/template/.hermes/skills/archify/skill-release.json +0 -10
- package/template/.hermes/skills/archify/test/adaptive-reader-layout.test.mjs +0 -86
- package/template/.hermes/skills/archify/test/animation.test.mjs +0 -179
- package/template/.hermes/skills/archify/test/architecture-delta.test.mjs +0 -518
- package/template/.hermes/skills/archify/test/authored-reachability.test.mjs +0 -95
- package/template/.hermes/skills/archify/test/authoring-safety-contract.test.mjs +0 -54
- package/template/.hermes/skills/archify/test/automatic-port-spread.test.mjs +0 -376
- package/template/.hermes/skills/archify/test/base-input-compatibility.test.mjs +0 -42
- package/template/.hermes/skills/archify/test/brand-marks.test.mjs +0 -654
- package/template/.hermes/skills/archify/test/chapter-delta-preview.test.mjs +0 -157
- package/template/.hermes/skills/archify/test/chapter-handoff.test.mjs +0 -97
- package/template/.hermes/skills/archify/test/chapter-rail.test.mjs +0 -86
- package/template/.hermes/skills/archify/test/checkout-line-endings.test.mjs +0 -72
- package/template/.hermes/skills/archify/test/clean-skill-staging.test.mjs +0 -244
- package/template/.hermes/skills/archify/test/cli.test.mjs +0 -809
- package/template/.hermes/skills/archify/test/community-proof-intake.test.mjs +0 -104
- package/template/.hermes/skills/archify/test/cursor-onboarding.test.mjs +0 -74
- package/template/.hermes/skills/archify/test/degraded.test.mjs +0 -161
- package/template/.hermes/skills/archify/test/delivery-contract.test.mjs +0 -52
- package/template/.hermes/skills/archify/test/desktop-reader-browser.test.mjs +0 -58
- package/template/.hermes/skills/archify/test/diagram-guide.test.mjs +0 -92
- package/template/.hermes/skills/archify/test/engineering-profile.test.mjs +0 -209
- package/template/.hermes/skills/archify/test/finder.test.mjs +0 -104
- package/template/.hermes/skills/archify/test/fixtures/automatic-routing-node-border-clearance.workflow.json +0 -40
- package/template/.hermes/skills/archify/test/fixtures/fail-migration-cleanup.mjs +0 -17
- package/template/.hermes/skills/archify/test/fixtures/issue-126/custom-widths.workflow.json +0 -18
- package/template/.hermes/skills/archify/test/fixtures/issue-126/explicit-route.workflow.json +0 -28
- package/template/.hermes/skills/archify/test/fixtures/issue-126/explicit-viewbox.workflow.json +0 -19
- package/template/.hermes/skills/archify/test/fixtures/issue-126/labels.workflow.json +0 -18
- package/template/.hermes/skills/archify/test/fixtures/v1-baseline/agent-run.lifecycle.json +0 -64
- package/template/.hermes/skills/archify/test/fixtures/v1-baseline/agent-tool-call.workflow.json +0 -88
- package/template/.hermes/skills/archify/test/fixtures/v1-baseline/cache-miss-request.sequence.json +0 -75
- package/template/.hermes/skills/archify/test/fixtures/v1-baseline/event-stream.dataflow.json +0 -57
- package/template/.hermes/skills/archify/test/fixtures/v1-baseline/product-analytics.dataflow.json +0 -70
- package/template/.hermes/skills/archify/test/fixtures/v1-baseline/production-deployment.architecture.json +0 -71
- package/template/.hermes/skills/archify/test/fixtures/v1-baseline/web-app.architecture.json +0 -41
- package/template/.hermes/skills/archify/test/fixtures/v1-workflow-700x400.workflow.json +0 -22
- package/template/.hermes/skills/archify/test/fixtures/v1-workflow-explicit-coordinates.workflow.json +0 -47
- package/template/.hermes/skills/archify/test/gallery.test.mjs +0 -130
- package/template/.hermes/skills/archify/test/generate-validators.test.mjs +0 -59
- package/template/.hermes/skills/archify/test/generated-artifact-xml.test.mjs +0 -88
- package/template/.hermes/skills/archify/test/geometry.test.mjs +0 -739
- package/template/.hermes/skills/archify/test/golden.mjs +0 -207
- package/template/.hermes/skills/archify/test/grid.test.mjs +0 -47
- package/template/.hermes/skills/archify/test/guide-page.test.mjs +0 -59
- package/template/.hermes/skills/archify/test/guide.test.mjs +0 -81
- package/template/.hermes/skills/archify/test/guided-views.test.mjs +0 -144
- package/template/.hermes/skills/archify/test/helpers/xml.mjs +0 -37
- package/template/.hermes/skills/archify/test/i18n.test.mjs +0 -422
- package/template/.hermes/skills/archify/test/intent-trace.test.mjs +0 -111
- package/template/.hermes/skills/archify/test/landing.test.mjs +0 -97
- package/template/.hermes/skills/archify/test/layout-rules.test.mjs +0 -1449
- package/template/.hermes/skills/archify/test/legend-contract.test.mjs +0 -404
- package/template/.hermes/skills/archify/test/motion-governor.test.mjs +0 -111
- package/template/.hermes/skills/archify/test/open-artifact.test.mjs +0 -118
- package/template/.hermes/skills/archify/test/ordinary-model-floor.test.mjs +0 -1024
- package/template/.hermes/skills/archify/test/output-path.test.mjs +0 -587
- package/template/.hermes/skills/archify/test/presentation.test.mjs +0 -71
- package/template/.hermes/skills/archify/test/preset-tryon.test.mjs +0 -113
- package/template/.hermes/skills/archify/test/preview-contract.test.mjs +0 -40
- package/template/.hermes/skills/archify/test/preview.test.mjs +0 -499
- package/template/.hermes/skills/archify/test/proof-aperture.test.mjs +0 -78
- package/template/.hermes/skills/archify/test/reach-share-card.test.mjs +0 -149
- package/template/.hermes/skills/archify/test/readme-showcase.test.mjs +0 -318
- package/template/.hermes/skills/archify/test/real-repository-proof.test.mjs +0 -209
- package/template/.hermes/skills/archify/test/relationship-direct-explorer.test.mjs +0 -115
- package/template/.hermes/skills/archify/test/relationship-lens.test.mjs +0 -128
- package/template/.hermes/skills/archify/test/relationship-permalink.test.mjs +0 -130
- package/template/.hermes/skills/archify/test/relationship-pulse.test.mjs +0 -122
- package/template/.hermes/skills/archify/test/release-identity.test.mjs +0 -504
- package/template/.hermes/skills/archify/test/release-package-gates.test.mjs +0 -508
- package/template/.hermes/skills/archify/test/render-output-checks.test.mjs +0 -435
- package/template/.hermes/skills/archify/test/repair-receipt.test.mjs +0 -181
- package/template/.hermes/skills/archify/test/repository-evidence.test.mjs +0 -217
- package/template/.hermes/skills/archify/test/repository-language-metadata.test.mjs +0 -52
- package/template/.hermes/skills/archify/test/route-journey.test.mjs +0 -123
- package/template/.hermes/skills/archify/test/route-probe.test.mjs +0 -114
- package/template/.hermes/skills/archify/test/route-share-card.test.mjs +0 -163
- package/template/.hermes/skills/archify/test/semantic-camera.test.mjs +0 -88
- package/template/.hermes/skills/archify/test/semantic-flow.test.mjs +0 -90
- package/template/.hermes/skills/archify/test/semantic-legend-gateway.test.mjs +0 -156
- package/template/.hermes/skills/archify/test/semantic-lens.test.mjs +0 -103
- package/template/.hermes/skills/archify/test/semantic-passport.test.mjs +0 -99
- package/template/.hermes/skills/archify/test/semantic-radar.test.mjs +0 -575
- package/template/.hermes/skills/archify/test/semantic-zoom.test.mjs +0 -86
- package/template/.hermes/skills/archify/test/sequence-column-fit.test.mjs +0 -137
- package/template/.hermes/skills/archify/test/settled-flow.test.mjs +0 -97
- package/template/.hermes/skills/archify/test/share-card-export.test.mjs +0 -132
- package/template/.hermes/skills/archify/test/site-language-continuity.test.mjs +0 -562
- package/template/.hermes/skills/archify/test/site-language-integration.mjs +0 -9
- package/template/.hermes/skills/archify/test/skill-metadata.test.mjs +0 -84
- package/template/.hermes/skills/archify/test/stable-update-manifest.test.mjs +0 -167
- package/template/.hermes/skills/archify/test/start-page.test.mjs +0 -312
- package/template/.hermes/skills/archify/test/story-beat-navigator.test.mjs +0 -103
- package/template/.hermes/skills/archify/test/story-carrier.test.mjs +0 -90
- package/template/.hermes/skills/archify/test/story-director-strip.test.mjs +0 -91
- package/template/.hermes/skills/archify/test/story-follow-camera.test.mjs +0 -103
- package/template/.hermes/skills/archify/test/story-horizon.test.mjs +0 -89
- package/template/.hermes/skills/archify/test/story-moment-link.test.mjs +0 -93
- package/template/.hermes/skills/archify/test/story-shelf.test.mjs +0 -84
- package/template/.hermes/skills/archify/test/story-trail.test.mjs +0 -81
- package/template/.hermes/skills/archify/test/toolbar-polish.test.mjs +0 -57
- package/template/.hermes/skills/archify/test/update-contract.test.mjs +0 -133
- package/template/.hermes/skills/archify/test/update-notifier.test.mjs +0 -3317
- package/template/.hermes/skills/archify/test/v1-compatibility.test.mjs +0 -329
- package/template/.hermes/skills/archify/test/vertical-edge.test.mjs +0 -68
- package/template/.hermes/skills/archify/test/viewer-chrome-layout.test.mjs +0 -872
- package/template/.hermes/skills/archify/test/visual-check.test.mjs +0 -400
- package/template/.hermes/skills/archify/test/webm-artifact.smoke.mjs +0 -1840
- package/template/.hermes/skills/archify/test/workflow-compiler-hard-contract.test.mjs +0 -2135
- package/template/.hermes/skills/archify/test/workflow-compiler.test.mjs +0 -1163
- package/template/.hermes/skills/archify/test/workflow-migration.test.mjs +0 -620
- package/template/.hermes/skills/archify/test/workflow-semantic-contract.test.mjs +0 -131
- package/template/.hermes/skills/archify/test/yss-safe-deliver.test.mjs +0 -153
- package/template/.hermes/skills/ask-matt/PHASE-BOUNDARIES.md +0 -55
- package/template/.hermes/skills/ask-matt/SKILL.md +0 -95
- package/template/.hermes/skills/ask-matt/agents/openai.yaml +0 -5
- package/template/.hermes/skills/code-review/SKILL.md +0 -122
- package/template/.hermes/skills/code-review/agents/openai.yaml +0 -3
- package/template/.hermes/skills/code-review/references/yss-review-standards.md +0 -54
- package/template/.hermes/skills/codebase-design/DEEPENING.md +0 -37
- package/template/.hermes/skills/codebase-design/DESIGN-IT-TWICE.md +0 -44
- package/template/.hermes/skills/codebase-design/SKILL.md +0 -118
- package/template/.hermes/skills/codebase-design/agents/openai.yaml +0 -3
- package/template/.hermes/skills/competitive-intelligence/SKILL.md +0 -94
- package/template/.hermes/skills/component-selection-imports/SKILL.md +0 -64
- package/template/.hermes/skills/cross-repo-implementation-routing/SKILL.md +0 -51
- package/template/.hermes/skills/diagnosing-bugs/SKILL.md +0 -138
- package/template/.hermes/skills/diagnosing-bugs/agents/openai.yaml +0 -3
- package/template/.hermes/skills/diagnosing-bugs/scripts/hitl-loop.template.sh +0 -44
- package/template/.hermes/skills/dispatching-parallel-agents/SKILL.md +0 -185
- package/template/.hermes/skills/domain-modeling/ADR-FORMAT.md +0 -47
- package/template/.hermes/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
- package/template/.hermes/skills/domain-modeling/SKILL.md +0 -74
- package/template/.hermes/skills/domain-modeling/agents/openai.yaml +0 -3
- package/template/.hermes/skills/file-export-download/SKILL.md +0 -160
- package/template/.hermes/skills/file-export-download/agents/openai.yaml +0 -4
- package/template/.hermes/skills/formily-foundation/SKILL.md +0 -176
- package/template/.hermes/skills/formily-foundation/references/examples.md +0 -486
- package/template/.hermes/skills/formily-linkage-effects/SKILL.md +0 -167
- package/template/.hermes/skills/formily-mode-slot-detail/SKILL.md +0 -137
- package/template/.hermes/skills/formily-step-flow/SKILL.md +0 -194
- package/template/.hermes/skills/frontend-commit/SKILL.md +0 -118
- package/template/.hermes/skills/frontend-commit/agents/openai.yaml +0 -7
- package/template/.hermes/skills/frontend-commit/references/scope-and-examples.md +0 -111
- package/template/.hermes/skills/grill-me/SKILL.md +0 -7
- package/template/.hermes/skills/grill-me/agents/openai.yaml +0 -5
- package/template/.hermes/skills/grill-with-docs/SKILL.md +0 -19
- package/template/.hermes/skills/grill-with-docs/agents/openai.yaml +0 -5
- package/template/.hermes/skills/grilling/SKILL.md +0 -28
- package/template/.hermes/skills/grilling/agents/openai.yaml +0 -3
- package/template/.hermes/skills/handoff/SKILL.md +0 -16
- package/template/.hermes/skills/handoff/agents/openai.yaml +0 -5
- package/template/.hermes/skills/implement/SKILL.md +0 -15
- package/template/.hermes/skills/implement/agents/openai.yaml +0 -5
- package/template/.hermes/skills/implementation-repo-onboarding/SKILL.md +0 -50
- package/template/.hermes/skills/improve-codebase-architecture/HTML-REPORT.md +0 -123
- package/template/.hermes/skills/improve-codebase-architecture/SKILL.md +0 -71
- package/template/.hermes/skills/improve-codebase-architecture/agents/openai.yaml +0 -5
- package/template/.hermes/skills/java-backend-commit/SKILL.md +0 -121
- package/template/.hermes/skills/java-backend-commit/agents/openai.yaml +0 -7
- package/template/.hermes/skills/java-backend-commit/references/scope-and-examples.md +0 -118
- package/template/.hermes/skills/llm-wiki/SKILL.md +0 -60
- package/template/.hermes/skills/llm-wiki/assets/CLAUDE.md.template +0 -26
- package/template/.hermes/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/CLAUDE.md +0 -3
- package/template/.hermes/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/index.md +0 -5
- package/template/.hermes/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/log.md +0 -1
- package/template/.hermes/skills/llm-wiki/assets/fixtures/broken-wiki/wiki//345/255/230/345/234/250/347/232/204/351/241/265.md +0 -7
- package/template/.hermes/skills/llm-wiki/references/compile.md +0 -126
- package/template/.hermes/skills/llm-wiki/references/discover.md +0 -42
- package/template/.hermes/skills/llm-wiki/references/ingest.md +0 -36
- package/template/.hermes/skills/llm-wiki/references/lint.md +0 -54
- package/template/.hermes/skills/llm-wiki/references/query.md +0 -21
- package/template/.hermes/skills/llm-wiki/references/schema.md +0 -45
- package/template/.hermes/skills/llm-wiki/references/writing.md +0 -35
- package/template/.hermes/skills/llm-wiki/scripts/advise.mjs +0 -196
- package/template/.hermes/skills/llm-wiki/scripts/advise.test.mjs +0 -91
- package/template/.hermes/skills/llm-wiki/scripts/extract.mjs +0 -55
- package/template/.hermes/skills/llm-wiki/scripts/extract.test.mjs +0 -34
- package/template/.hermes/skills/llm-wiki/scripts/inventory.mjs +0 -174
- package/template/.hermes/skills/llm-wiki/scripts/inventory.test.mjs +0 -98
- package/template/.hermes/skills/llm-wiki/scripts/lint-wikilinks.mjs +0 -177
- package/template/.hermes/skills/llm-wiki/scripts/lint-wikilinks.test.mjs +0 -212
- package/template/.hermes/skills/lombok/SKILL.md +0 -351
- package/template/.hermes/skills/loop-me/SKILL.md +0 -32
- package/template/.hermes/skills/loop-me/agents/openai.yaml +0 -5
- package/template/.hermes/skills/maintaining-skills/SKILL.md +0 -27
- package/template/.hermes/skills/mapstruct/SKILL.md +0 -334
- package/template/.hermes/skills/migrate-to-shoehorn/SKILL.md +0 -118
- package/template/.hermes/skills/migrate-to-shoehorn/agents/openai.yaml +0 -3
- package/template/.hermes/skills/page-form-module/SKILL.md +0 -168
- package/template/.hermes/skills/page-list-module/SKILL.md +0 -137
- package/template/.hermes/skills/page-skeleton/SKILL.md +0 -76
- package/template/.hermes/skills/page-skeleton/examples/AdvancedFormPage/constant.ts +0 -34
- package/template/.hermes/skills/page-skeleton/examples/AdvancedFormPage/hooks/useRuleConfig.ts +0 -75
- package/template/.hermes/skills/page-skeleton/examples/AdvancedFormPage/index.vue +0 -107
- package/template/.hermes/skills/page-skeleton/examples/AdvancedFormPage/schemas/ruleConfigSchema.ts +0 -256
- package/template/.hermes/skills/page-skeleton/examples/AdvancedFormPage/style.less +0 -30
- package/template/.hermes/skills/page-skeleton/examples/StandardListPage/constant.ts +0 -28
- package/template/.hermes/skills/page-skeleton/examples/StandardListPage/hooks/useQualityRuleList.ts +0 -58
- package/template/.hermes/skills/page-skeleton/examples/StandardListPage/hooks/useRuleActions.ts +0 -65
- package/template/.hermes/skills/page-skeleton/examples/StandardListPage/index.vue +0 -91
- package/template/.hermes/skills/page-skeleton/examples/StandardListPage/style.less +0 -49
- package/template/.hermes/skills/prototype/LOGIC.md +0 -67
- package/template/.hermes/skills/prototype/SKILL.md +0 -26
- package/template/.hermes/skills/prototype/UI.md +0 -112
- package/template/.hermes/skills/prototype/agents/openai.yaml +0 -3
- package/template/.hermes/skills/prototype-page-acceptance/SKILL.md +0 -62
- package/template/.hermes/skills/prototype-review/SKILL.md +0 -74
- package/template/.hermes/skills/prototype-review/agents/openai.yaml +0 -4
- package/template/.hermes/skills/resolving-merge-conflicts/SKILL.md +0 -14
- package/template/.hermes/skills/resolving-merge-conflicts/agents/openai.yaml +0 -3
- package/template/.hermes/skills/scaffold-exercises/SKILL.md +0 -106
- package/template/.hermes/skills/scaffold-exercises/agents/openai.yaml +0 -3
- package/template/.hermes/skills/setup-matt-pocock-skills/SKILL.md +0 -125
- package/template/.hermes/skills/setup-matt-pocock-skills/agents/openai.yaml +0 -5
- package/template/.hermes/skills/setup-matt-pocock-skills/domain.md +0 -51
- package/template/.hermes/skills/setup-matt-pocock-skills/issue-tracker-github.md +0 -45
- package/template/.hermes/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +0 -46
- package/template/.hermes/skills/setup-matt-pocock-skills/issue-tracker-local.md +0 -66
- package/template/.hermes/skills/setup-matt-pocock-skills/triage-labels.md +0 -15
- package/template/.hermes/skills/setup-pre-commit/SKILL.md +0 -91
- package/template/.hermes/skills/setup-pre-commit/agents/openai.yaml +0 -3
- package/template/.hermes/skills/setup-ts-deep-modules/SKILL.md +0 -102
- package/template/.hermes/skills/setup-ts-deep-modules/agents/openai.yaml +0 -5
- package/template/.hermes/skills/setup-ts-deep-modules/dependency-cruiser.config.cjs +0 -95
- package/template/.hermes/skills/tdd/SKILL.md +0 -38
- package/template/.hermes/skills/tdd/agents/openai.yaml +0 -3
- package/template/.hermes/skills/tdd/mocking.md +0 -59
- package/template/.hermes/skills/tdd/tests.md +0 -77
- package/template/.hermes/skills/teach/GLOSSARY-FORMAT.md +0 -35
- package/template/.hermes/skills/teach/LEARNING-RECORD-FORMAT.md +0 -46
- package/template/.hermes/skills/teach/MISSION-FORMAT.md +0 -31
- package/template/.hermes/skills/teach/RESOURCES-FORMAT.md +0 -32
- package/template/.hermes/skills/teach/SKILL.md +0 -140
- package/template/.hermes/skills/teach/agents/openai.yaml +0 -5
- package/template/.hermes/skills/theme-token-usage/SKILL.md +0 -123
- package/template/.hermes/skills/theme-token-usage/agents/openai.yaml +0 -4
- package/template/.hermes/skills/to-questionnaire/SKILL.md +0 -53
- package/template/.hermes/skills/to-questionnaire/agents/openai.yaml +0 -5
- package/template/.hermes/skills/to-spec/SKILL.md +0 -75
- package/template/.hermes/skills/to-spec/agents/openai.yaml +0 -5
- package/template/.hermes/skills/to-tickets/SKILL.md +0 -105
- package/template/.hermes/skills/to-tickets/agents/openai.yaml +0 -5
- package/template/.hermes/skills/triage/AGENT-BRIEF.md +0 -207
- package/template/.hermes/skills/triage/OUT-OF-SCOPE.md +0 -105
- package/template/.hermes/skills/triage/SKILL.md +0 -112
- package/template/.hermes/skills/triage/agents/openai.yaml +0 -5
- package/template/.hermes/skills/using-git-worktrees/SKILL.md +0 -202
- package/template/.hermes/skills/vue3-best-practices/SKILL.md +0 -68
- package/template/.hermes/skills/wait-what/SKILL.md +0 -7
- package/template/.hermes/skills/wait-what/agents/openai.yaml +0 -5
- package/template/.hermes/skills/wayfinder/SKILL.md +0 -128
- package/template/.hermes/skills/wayfinder/agents/openai.yaml +0 -5
- package/template/.hermes/skills/writing-beats/SKILL.md +0 -67
- package/template/.hermes/skills/writing-beats/agents/openai.yaml +0 -5
- package/template/.hermes/skills/writing-for-agents/SKILL-MECHANICS.md +0 -22
- package/template/.hermes/skills/writing-for-agents/SKILL.md +0 -81
- package/template/.hermes/skills/writing-for-agents/agents/openai.yaml +0 -3
- package/template/.hermes/skills/writing-fragments/SKILL.md +0 -79
- package/template/.hermes/skills/writing-fragments/agents/openai.yaml +0 -5
- package/template/.hermes/skills/writing-shape/SKILL.md +0 -79
- package/template/.hermes/skills/writing-shape/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yedit-table-usage/SKILL.md +0 -227
- package/template/.hermes/skills/yss-antd-design/SKILL.md +0 -34
- package/template/.hermes/skills/yss-antd-design/references/boundaries.md +0 -30
- package/template/.hermes/skills/yss-antd-design/references/cli-matrix.md +0 -38
- package/template/.hermes/skills/yss-antd-design/references/evidence.md +0 -30
- package/template/.hermes/skills/yss-antd-design/scripts/validate-frontmatter.mjs +0 -46
- package/template/.hermes/skills/yss-antd-design/scripts/validate-frontmatter.test.mjs +0 -27
- package/template/.hermes/skills/yss-api-integration/SKILL.md +0 -185
- package/template/.hermes/skills/yss-api-integration/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-application/SKILL.md +0 -54
- package/template/.hermes/skills/yss-application/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-application/references/application-layer-guide.md +0 -87
- package/template/.hermes/skills/yss-audit-log/SKILL.md +0 -67
- package/template/.hermes/skills/yss-audit-log/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-audit-log/assets/AuditLogAspect.java +0 -262
- package/template/.hermes/skills/yss-audit-log/assets/YssAuditLogPrintSubscriberImpl.java +0 -37
- package/template/.hermes/skills/yss-audit-log/assets/YssAuditLogSysManagerSubscriberImpl.java +0 -18
- package/template/.hermes/skills/yss-audit-log/assets/YssAuditPublishService.java +0 -69
- package/template/.hermes/skills/yss-audit-log/references/README.md +0 -69
- package/template/.hermes/skills/yss-audit-log/references/source-index.md +0 -43
- package/template/.hermes/skills/yss-cache/SKILL.md +0 -44
- package/template/.hermes/skills/yss-cache/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-cache/references/annotations.md +0 -39
- package/template/.hermes/skills/yss-cache/references/architecture.md +0 -25
- package/template/.hermes/skills/yss-cache/references/configuration.md +0 -34
- package/template/.hermes/skills/yss-cache/references/redis-fallback.md +0 -23
- package/template/.hermes/skills/yss-cache/references/redis-topology.md +0 -62
- package/template/.hermes/skills/yss-cache/references/serialization.md +0 -17
- package/template/.hermes/skills/yss-cache/references/source-index.md +0 -67
- package/template/.hermes/skills/yss-cache/references/troubleshooting.md +0 -33
- package/template/.hermes/skills/yss-cache/references/verification.md +0 -34
- package/template/.hermes/skills/yss-cache/scripts/check-skill-freshness.sh +0 -84
- package/template/.hermes/skills/yss-cache/scripts/inspect-cache-usage.sh +0 -96
- package/template/.hermes/skills/yss-cache/scripts/verify-cache-component.sh +0 -101
- package/template/.hermes/skills/yss-components/SKILL.md +0 -386
- package/template/.hermes/skills/yss-components/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-components/references/frontend-docs.md +0 -9
- package/template/.hermes/skills/yss-ddd-scaffold-generator/SKILL.md +0 -121
- package/template/.hermes/skills/yss-ddd-scaffold-generator/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-ddd-scaffold-generator/assets/templates/config/application-local.yml.template +0 -8
- package/template/.hermes/skills/yss-ddd-scaffold-generator/assets/templates/config/application.yml.template +0 -36
- package/template/.hermes/skills/yss-ddd-scaffold-generator/assets/templates/config/logback-spring.xml.template +0 -15
- package/template/.hermes/skills/yss-ddd-scaffold-generator/assets/templates/java/architecture-rules-test.java.template +0 -36
- package/template/.hermes/skills/yss-ddd-scaffold-generator/assets/templates/java/bootstrap-application.java.template +0 -15
- package/template/.hermes/skills/yss-ddd-scaffold-generator/assets/templates/pom/adapter-pom.xml.template +0 -19
- package/template/.hermes/skills/yss-ddd-scaffold-generator/assets/templates/pom/application-pom.xml.template +0 -52
- package/template/.hermes/skills/yss-ddd-scaffold-generator/assets/templates/pom/bootstrap-pom.xml.template +0 -70
- package/template/.hermes/skills/yss-ddd-scaffold-generator/assets/templates/pom/domain-pom.xml.template +0 -22
- package/template/.hermes/skills/yss-ddd-scaffold-generator/assets/templates/pom/infrastructure-pom.xml.template +0 -54
- package/template/.hermes/skills/yss-ddd-scaffold-generator/assets/templates/pom/parent-pom.xml.template +0 -155
- package/template/.hermes/skills/yss-ddd-scaffold-generator/assets/templates/pom/web-pom.xml.template +0 -58
- package/template/.hermes/skills/yss-ddd-scaffold-generator/assets/wrapper/.mvn/jvm.config +0 -1
- package/template/.hermes/skills/yss-ddd-scaffold-generator/assets/wrapper/.mvn/maven.config +0 -2
- package/template/.hermes/skills/yss-ddd-scaffold-generator/assets/wrapper/.mvn/settings.xml +0 -41
- package/template/.hermes/skills/yss-ddd-scaffold-generator/assets/wrapper/.mvn/wrapper/MavenWrapperDownloader.java +0 -117
- package/template/.hermes/skills/yss-ddd-scaffold-generator/assets/wrapper/.mvn/wrapper/maven-wrapper.jar +0 -0
- package/template/.hermes/skills/yss-ddd-scaffold-generator/assets/wrapper/.mvn/wrapper/maven-wrapper.properties +0 -20
- package/template/.hermes/skills/yss-ddd-scaffold-generator/assets/wrapper/mvnw +0 -316
- package/template/.hermes/skills/yss-ddd-scaffold-generator/assets/wrapper/mvnw.cmd +0 -188
- package/template/.hermes/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +0 -116
- package/template/.hermes/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +0 -125
- package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-adapter/SKILL.md +0 -31
- package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-adapter/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/SKILL.md +0 -8
- package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/SKILL.md +0 -8
- package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/SKILL.md +0 -8
- package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/SKILL.md +0 -58
- package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/SKILL.md +0 -8
- package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-ddd-scaffold-generator/scripts/first-slice-compatibility.test.mjs +0 -225
- package/template/.hermes/skills/yss-ddd-scaffold-generator/scripts/first-slice-verification.test.mjs +0 -164
- package/template/.hermes/skills/yss-ddd-scaffold-generator/scripts/generate_and_verify_scaffold.mjs +0 -126
- package/template/.hermes/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +0 -363
- package/template/.hermes/skills/yss-ddd-scaffold-generator/scripts/run_first_slice_verification.mjs +0 -172
- package/template/.hermes/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.mjs +0 -112
- package/template/.hermes/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +0 -401
- package/template/.hermes/skills/yss-design-system/SKILL.md +0 -105
- package/template/.hermes/skills/yss-design-system/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-design-system/references/design-qa-theme.md +0 -64
- package/template/.hermes/skills/yss-design-system/references/design-system.md +0 -245
- package/template/.hermes/skills/yss-design-system/scripts/validate-frontmatter.mjs +0 -36
- package/template/.hermes/skills/yss-design-system/scripts/validate-frontmatter.test.mjs +0 -12
- package/template/.hermes/skills/yss-distributed-id/SKILL.md +0 -69
- package/template/.hermes/skills/yss-distributed-id/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-distributed-id/assets/AutoIdInterceptor.java +0 -246
- package/template/.hermes/skills/yss-distributed-id/assets/EnableDistributedId.java +0 -25
- package/template/.hermes/skills/yss-distributed-id/assets/LeafConf.java +0 -36
- package/template/.hermes/skills/yss-distributed-id/references/README.md +0 -51
- package/template/.hermes/skills/yss-distributed-id/references/source-index.md +0 -86
- package/template/.hermes/skills/yss-domain/SKILL.md +0 -70
- package/template/.hermes/skills/yss-domain/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-domain/references/domain-layer-guide.md +0 -101
- package/template/.hermes/skills/yss-dto/SKILL.md +0 -92
- package/template/.hermes/skills/yss-dto/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-dto/assets/CommandDTO.java +0 -8
- package/template/.hermes/skills/yss-dto/assets/PageQuery.java +0 -133
- package/template/.hermes/skills/yss-dto/assets/QueryDTO.java +0 -6
- package/template/.hermes/skills/yss-dto/assets/Result.java +0 -105
- package/template/.hermes/skills/yss-dto/references/README.md +0 -67
- package/template/.hermes/skills/yss-dto/references/openapi-wire-profile.yaml +0 -187
- package/template/.hermes/skills/yss-dto/references/source-index.md +0 -55
- package/template/.hermes/skills/yss-excel-mvc/SKILL.md +0 -66
- package/template/.hermes/skills/yss-excel-mvc/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-excel-mvc/assets/ExcelDynamicData.java +0 -66
- package/template/.hermes/skills/yss-excel-mvc/assets/RequestExcel.java +0 -33
- package/template/.hermes/skills/yss-excel-mvc/assets/RequestFastExcelArgumentResolver.java +0 -272
- package/template/.hermes/skills/yss-excel-mvc/assets/ResponseExcel.java +0 -46
- package/template/.hermes/skills/yss-excel-mvc/assets/ResponseFastExcelReturnValueHandler.java +0 -154
- package/template/.hermes/skills/yss-excel-mvc/references/README.md +0 -5
- package/template/.hermes/skills/yss-excel-mvc/references/source-index.md +0 -74
- package/template/.hermes/skills/yss-exception/SKILL.md +0 -57
- package/template/.hermes/skills/yss-exception/agents/openai.yaml +0 -4
- package/template/.hermes/skills/yss-exception/references/source-index.md +0 -35
- package/template/.hermes/skills/yss-formily/SKILL.md +0 -272
- package/template/.hermes/skills/yss-formily-schema-generator/SKILL.md +0 -189
- package/template/.hermes/skills/yss-formily-schema-generator/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-formily-schema-generator/assets/java-sdk/ExampleUsage.java +0 -111
- package/template/.hermes/skills/yss-formily-schema-generator/assets/java-sdk/YssFormilyDsl.java +0 -1219
- package/template/.hermes/skills/yss-formily-schema-generator/references/workflow.md +0 -240
- package/template/.hermes/skills/yss-frontend-scaffold-generator/SKILL.md +0 -76
- package/template/.hermes/skills/yss-hook/SKILL.md +0 -200
- package/template/.hermes/skills/yss-hook/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-hook/references/frontend-docs.md +0 -10
- package/template/.hermes/skills/yss-microapp-commit/SKILL.md +0 -201
- package/template/.hermes/skills/yss-microapp-commit/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-microapp-commit/references/scope-mapping.md +0 -204
- package/template/.hermes/skills/yss-mybatis/SKILL.md +0 -77
- package/template/.hermes/skills/yss-mybatis/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-mybatis/assets/BaseRepository.java +0 -112
- package/template/.hermes/skills/yss-mybatis/assets/EntityQueryAspect.java +0 -37
- package/template/.hermes/skills/yss-mybatis/assets/MybatisBaseConfiguration.java +0 -18
- package/template/.hermes/skills/yss-mybatis/assets/PageQueryEntityConfigration.java +0 -18
- package/template/.hermes/skills/yss-mybatis/references/README.md +0 -57
- package/template/.hermes/skills/yss-mybatis/references/source-index.md +0 -93
- package/template/.hermes/skills/yss-openapi-draft-review/SKILL.md +0 -82
- package/template/.hermes/skills/yss-openapi-governance/SKILL.md +0 -130
- package/template/.hermes/skills/yss-openapi-governance/agents/openai.yaml +0 -4
- package/template/.hermes/skills/yss-page-module-development/SKILL.md +0 -165
- package/template/.hermes/skills/yss-page-module-development/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-page-module-development/examples/AdvancedFormPage/constant.ts +0 -32
- package/template/.hermes/skills/yss-page-module-development/examples/AdvancedFormPage/hooks/useRuleConfig.ts +0 -158
- package/template/.hermes/skills/yss-page-module-development/examples/AdvancedFormPage/index.vue +0 -188
- package/template/.hermes/skills/yss-page-module-development/examples/AdvancedFormPage/schemas/ruleConfigSchema.ts +0 -256
- package/template/.hermes/skills/yss-page-module-development/examples/AdvancedFormPage/style.less +0 -76
- package/template/.hermes/skills/yss-page-module-development/examples/StandardListPage/constant.ts +0 -128
- package/template/.hermes/skills/yss-page-module-development/examples/StandardListPage/hooks/useQualityRuleList.ts +0 -144
- package/template/.hermes/skills/yss-page-module-development/examples/StandardListPage/hooks/useRuleActions.ts +0 -141
- package/template/.hermes/skills/yss-page-module-development/examples/StandardListPage/index.vue +0 -175
- package/template/.hermes/skills/yss-page-module-development/examples/StandardListPage/style.less +0 -83
- package/template/.hermes/skills/yss-page-module-development/references/component-map.md +0 -34
- package/template/.hermes/skills/yss-page-module-development/references/frontend-docs.md +0 -11
- package/template/.hermes/skills/yss-page-module-development/references/hooks-map.md +0 -11
- package/template/.hermes/skills/yss-page-module-development/references/utils-map.md +0 -14
- package/template/.hermes/skills/yss-product-lifecycle/SKILL.md +0 -52
- package/template/.hermes/skills/yss-product-lifecycle/agents/openai.yaml +0 -4
- package/template/.hermes/skills/yss-product-lifecycle/references/artifact-dependencies.md +0 -36
- package/template/.hermes/skills/yss-product-lifecycle/references/matt-yss-adapter.md +0 -122
- package/template/.hermes/skills/yss-product-lifecycle/references/orchestration-contract.yaml +0 -865
- package/template/.hermes/skills/yss-product-lifecycle/references/orchestration.md +0 -116
- package/template/.hermes/skills/yss-product-lifecycle/references/state-model.md +0 -112
- package/template/.hermes/skills/yss-prototype-stage/SKILL.md +0 -47
- package/template/.hermes/skills/yss-prototype-stage/references/product-design-adapter.md +0 -54
- package/template/.hermes/skills/yss-prototype-stage/scripts/prototype-contract.mjs +0 -207
- package/template/.hermes/skills/yss-prototype-stage/tests/run-scenarios.mjs +0 -154
- package/template/.hermes/skills/yss-repository/SKILL.md +0 -80
- package/template/.hermes/skills/yss-repository/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-repository/references/infrastructure-layer-guide.md +0 -107
- package/template/.hermes/skills/yss-research/SKILL.md +0 -73
- package/template/.hermes/skills/yss-research/agents/openai.yaml +0 -3
- package/template/.hermes/skills/yss-research/assets/evidence-template.yaml +0 -68
- package/template/.hermes/skills/yss-research/assets/research-brief-template.md +0 -36
- package/template/.hermes/skills/yss-research/references/evidence-contract.md +0 -42
- package/template/.hermes/skills/yss-research/scripts/validate-research-package.mjs +0 -128
- package/template/.hermes/skills/yss-research/tests/run-scenarios.mjs +0 -81
- package/template/.hermes/skills/yss-resilience4j/SKILL.md +0 -46
- package/template/.hermes/skills/yss-resilience4j/agents/openai.yaml +0 -4
- package/template/.hermes/skills/yss-resilience4j/references/source-index.md +0 -33
- package/template/.hermes/skills/yss-router/SKILL.md +0 -51
- package/template/.hermes/skills/yss-router/agents/openai.yaml +0 -4
- package/template/.hermes/skills/yss-router/references/boundaries.md +0 -50
- package/template/.hermes/skills/yss-router/references/router-contract.yaml +0 -349
- package/template/.hermes/skills/yss-router/references/slice-implementation-contract.md +0 -185
- package/template/.hermes/skills/yss-router/references/yss-skill-execution-result.md +0 -67
- package/template/.hermes/skills/yss-security-algorithm/SKILL.md +0 -52
- package/template/.hermes/skills/yss-security-algorithm/agents/openai.yaml +0 -4
- package/template/.hermes/skills/yss-security-algorithm/references/source-index.md +0 -35
- package/template/.hermes/skills/yss-source-index/SKILL.md +0 -63
- package/template/.hermes/skills/yss-source-index/agents/openai.yaml +0 -4
- package/template/.hermes/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +0 -24
- package/template/.hermes/skills/yss-stage-decision/SKILL.md +0 -51
- package/template/.hermes/skills/yss-stage-decision/references/domain-strategy-contract.md +0 -26
- package/template/.hermes/skills/yss-stage-decision/references/domain-strategy.schema.json +0 -128
- package/template/.hermes/skills/yss-stage-decision/references/stage-decision-package-contract.md +0 -19
- package/template/.hermes/skills/yss-stage-decision/references/stage-decision-package.schema.json +0 -86
- package/template/.hermes/skills/yss-stage-decision/references/validation-rules.md +0 -18
- package/template/.hermes/skills/yss-stage-decision/scripts/validate-domain-strategy.mjs +0 -169
- package/template/.hermes/skills/yss-stage-decision/scripts/validate-stage-decision-package.mjs +0 -100
- package/template/.hermes/skills/yss-stage-decision/tests/fixtures/domain-strategy-approval.yaml +0 -15
- package/template/.hermes/skills/yss-stage-decision/tests/fixtures/invalid-direction.yaml +0 -58
- package/template/.hermes/skills/yss-stage-decision/tests/fixtures/invalid-stage-decision-blocker.yaml +0 -44
- package/template/.hermes/skills/yss-stage-decision/tests/fixtures/stage-decision-approval.yaml +0 -15
- package/template/.hermes/skills/yss-stage-decision/tests/fixtures/valid-stage-decision-package.yaml +0 -49
- package/template/.hermes/skills/yss-stage-decision/tests/fixtures/valid-supplier-domain.yaml +0 -108
- package/template/.hermes/skills/yss-stage-decision/tests/run-scenarios.mjs +0 -68
- package/template/.hermes/skills/yss-tactical-design/SKILL.md +0 -35
- package/template/.hermes/skills/yss-tactical-design/agents/openai.yaml +0 -4
- package/template/.hermes/skills/yss-tactical-design/references/output-template.md +0 -28
- package/template/.hermes/skills/yss-tactical-design/references/tactical-design-contract.md +0 -41
- package/template/.hermes/skills/yss-tactical-design/references/tactical-design.schema.json +0 -31
- package/template/.hermes/skills/yss-tactical-design/references/validation-rules.md +0 -13
- package/template/.hermes/skills/yss-tactical-design/scripts/validate-tactical-design.mjs +0 -213
- package/template/.hermes/skills/yss-tactical-design/tests/fixtures/invalid-api-leaks-aggregate.yaml +0 -21
- package/template/.hermes/skills/yss-tactical-design/tests/fixtures/invalid-missing-consistency-policy.yaml +0 -21
- package/template/.hermes/skills/yss-tactical-design/tests/fixtures/invalid-missing-invariant.yaml +0 -21
- package/template/.hermes/skills/yss-tactical-design/tests/fixtures/invalid-stale-upstream-ref.yaml +0 -21
- package/template/.hermes/skills/yss-tactical-design/tests/fixtures/invalid-strategic-as-tactical.yaml +0 -21
- package/template/.hermes/skills/yss-tactical-design/tests/fixtures/valid-tactical-design.yaml +0 -80
- package/template/.hermes/skills/yss-tactical-design/tests/run-scenarios.mjs +0 -47
- package/template/.hermes/skills/yss-ui/SKILL.md +0 -170
- package/template/.hermes/skills/yss-ui/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-ui/assets/demos/button/auth-basic.vue +0 -24
- package/template/.hermes/skills/yss-ui/assets/demos/button/auth-dropdown.vue +0 -29
- package/template/.hermes/skills/yss-ui/assets/demos/button/permission.vue +0 -10
- package/template/.hermes/skills/yss-ui/assets/demos/button/size.vue +0 -12
- package/template/.hermes/skills/yss-ui/assets/demos/button/states.vue +0 -12
- package/template/.hermes/skills/yss-ui/assets/demos/card/basic/index.vue +0 -54
- package/template/.hermes/skills/yss-ui/assets/demos/card/basic/style.less +0 -41
- package/template/.hermes/skills/yss-ui/assets/demos/card/cover/index.vue +0 -25
- package/template/.hermes/skills/yss-ui/assets/demos/card/flexible-layout/index.vue +0 -122
- package/template/.hermes/skills/yss-ui/assets/demos/card/flexible-layout/style.less +0 -191
- package/template/.hermes/skills/yss-ui/assets/demos/card/header-extra/index.vue +0 -260
- package/template/.hermes/skills/yss-ui/assets/demos/card/header-extra/style.less +0 -124
- package/template/.hermes/skills/yss-ui/assets/demos/card/layout-metrics/constants.ts +0 -61
- package/template/.hermes/skills/yss-ui/assets/demos/card/layout-metrics/index.vue +0 -72
- package/template/.hermes/skills/yss-ui/assets/demos/card/layout-metrics/metrics-cards.vue +0 -70
- package/template/.hermes/skills/yss-ui/assets/demos/card/layout-metrics/style.less +0 -232
- package/template/.hermes/skills/yss-ui/assets/demos/card/loading/index.vue +0 -19
- package/template/.hermes/skills/yss-ui/assets/demos/card/meta/index.vue +0 -19
- package/template/.hermes/skills/yss-ui/assets/demos/condition-builder/basic/constants.ts +0 -44
- package/template/.hermes/skills/yss-ui/assets/demos/condition-builder/basic/hooks/useConditionBasic.ts +0 -18
- package/template/.hermes/skills/yss-ui/assets/demos/condition-builder/basic/index.vue +0 -100
- package/template/.hermes/skills/yss-ui/assets/demos/condition-builder/linked/constants.ts +0 -51
- package/template/.hermes/skills/yss-ui/assets/demos/condition-builder/linked/hooks/useConditionLinked.ts +0 -29
- package/template/.hermes/skills/yss-ui/assets/demos/condition-builder/linked/index.vue +0 -23
- package/template/.hermes/skills/yss-ui/assets/demos/condition-builder/nesting-between/constants.ts +0 -35
- package/template/.hermes/skills/yss-ui/assets/demos/condition-builder/nesting-between/hooks/useConditionNesting.ts +0 -25
- package/template/.hermes/skills/yss-ui/assets/demos/condition-builder/nesting-between/index.vue +0 -24
- package/template/.hermes/skills/yss-ui/assets/demos/condition-builder/remote/constants.ts +0 -7
- package/template/.hermes/skills/yss-ui/assets/demos/condition-builder/remote/hooks/useConditionRemote.ts +0 -75
- package/template/.hermes/skills/yss-ui/assets/demos/condition-builder/remote/index.vue +0 -23
- package/template/.hermes/skills/yss-ui/assets/demos/condition-builder/validation/constants.ts +0 -42
- package/template/.hermes/skills/yss-ui/assets/demos/condition-builder/validation/hooks/useConditionBasic.ts +0 -22
- package/template/.hermes/skills/yss-ui/assets/demos/condition-builder/validation/index.vue +0 -138
- package/template/.hermes/skills/yss-ui/assets/demos/condition-builder/validation-custom/constants.ts +0 -42
- package/template/.hermes/skills/yss-ui/assets/demos/condition-builder/validation-custom/hooks/useConditionBasic.ts +0 -22
- package/template/.hermes/skills/yss-ui/assets/demos/condition-builder/validation-custom/index.vue +0 -134
- package/template/.hermes/skills/yss-ui/assets/demos/cron/basic/index.vue +0 -54
- package/template/.hermes/skills/yss-ui/assets/demos/cron/select/index.vue +0 -145
- package/template/.hermes/skills/yss-ui/assets/demos/echarts/basic.vue +0 -30
- package/template/.hermes/skills/yss-ui/assets/demos/echarts/calendar-heatmap.vue +0 -49
- package/template/.hermes/skills/yss-ui/assets/demos/echarts/candlestick.vue +0 -30
- package/template/.hermes/skills/yss-ui/assets/demos/echarts/dark.vue +0 -40
- package/template/.hermes/skills/yss-ui/assets/demos/echarts/expose-methods.vue +0 -97
- package/template/.hermes/skills/yss-ui/assets/demos/echarts/funnel.vue +0 -42
- package/template/.hermes/skills/yss-ui/assets/demos/echarts/gauge.vue +0 -25
- package/template/.hermes/skills/yss-ui/assets/demos/echarts/line.vue +0 -24
- package/template/.hermes/skills/yss-ui/assets/demos/echarts/mix.vue +0 -33
- package/template/.hermes/skills/yss-ui/assets/demos/echarts/pie.vue +0 -34
- package/template/.hermes/skills/yss-ui/assets/demos/echarts/radar.vue +0 -38
- package/template/.hermes/skills/yss-ui/assets/demos/echarts/ring-segment.vue +0 -77
- package/template/.hermes/skills/yss-ui/assets/demos/echarts/scatter.vue +0 -23
- package/template/.hermes/skills/yss-ui/assets/demos/echarts/stacked-area.vue +0 -55
- package/template/.hermes/skills/yss-ui/assets/demos/echarts/stacked-bar.vue +0 -52
- package/template/.hermes/skills/yss-ui/assets/demos/echarts/treemap.vue +0 -30
- package/template/.hermes/skills/yss-ui/assets/demos/edit-table/all-types/hooks/useAllTypes.ts +0 -259
- package/template/.hermes/skills/yss-ui/assets/demos/edit-table/all-types/index.vue +0 -33
- package/template/.hermes/skills/yss-ui/assets/demos/edit-table/async-remote/hooks/useAsyncRemote.ts +0 -201
- package/template/.hermes/skills/yss-ui/assets/demos/edit-table/async-remote/index.vue +0 -45
- package/template/.hermes/skills/yss-ui/assets/demos/edit-table/basic/index.vue +0 -104
- package/template/.hermes/skills/yss-ui/assets/demos/edit-table/big-data/index.vue +0 -82
- package/template/.hermes/skills/yss-ui/assets/demos/edit-table/custom-rule/index.vue +0 -114
- package/template/.hermes/skills/yss-ui/assets/demos/edit-table/direct-editable/index.vue +0 -94
- package/template/.hermes/skills/yss-ui/assets/demos/edit-table/drag/index.vue +0 -125
- package/template/.hermes/skills/yss-ui/assets/demos/edit-table/filter/index.vue +0 -107
- package/template/.hermes/skills/yss-ui/assets/demos/edit-table/linkage/index.vue +0 -181
- package/template/.hermes/skills/yss-ui/assets/demos/edit-table/pagination-action/index.vue +0 -131
- package/template/.hermes/skills/yss-ui/assets/demos/edit-table/required/index.vue +0 -95
- package/template/.hermes/skills/yss-ui/assets/demos/edit-table/row-edit/index.vue +0 -220
- package/template/.hermes/skills/yss-ui/assets/demos/edit-table/row-options/index.vue +0 -165
- package/template/.hermes/skills/yss-ui/assets/demos/edit-table/slot-linkage/index.vue +0 -184
- package/template/.hermes/skills/yss-ui/assets/demos/edit-table/submit-view/index.vue +0 -107
- package/template/.hermes/skills/yss-ui/assets/demos/file-import/basic.vue +0 -54
- package/template/.hermes/skills/yss-ui/assets/demos/file-import/formily.vue +0 -42
- package/template/.hermes/skills/yss-ui/assets/demos/file-import/multiple.vue +0 -33
- package/template/.hermes/skills/yss-ui/assets/demos/file-import/result-slot.vue +0 -30
- package/template/.hermes/skills/yss-ui/assets/demos/formily/actions.vue +0 -61
- package/template/.hermes/skills/yss-ui/assets/demos/formily/align.vue +0 -56
- package/template/.hermes/skills/yss-ui/assets/demos/formily/async-validate.vue +0 -69
- package/template/.hermes/skills/yss-ui/assets/demos/formily/basic.vue +0 -317
- package/template/.hermes/skills/yss-ui/assets/demos/formily/collapse.vue +0 -104
- package/template/.hermes/skills/yss-ui/assets/demos/formily/custom-component.vue +0 -75
- package/template/.hermes/skills/yss-ui/assets/demos/formily/disabled.vue +0 -71
- package/template/.hermes/skills/yss-ui/assets/demos/formily/dynamic-array.vue +0 -74
- package/template/.hermes/skills/yss-ui/assets/demos/formily/dynamic.vue +0 -59
- package/template/.hermes/skills/yss-ui/assets/demos/formily/effects.vue +0 -117
- package/template/.hermes/skills/yss-ui/assets/demos/formily/events-inline.vue +0 -82
- package/template/.hermes/skills/yss-ui/assets/demos/formily/events-scope.vue +0 -101
- package/template/.hermes/skills/yss-ui/assets/demos/formily/grid.vue +0 -71
- package/template/.hermes/skills/yss-ui/assets/demos/formily/group.vue +0 -102
- package/template/.hermes/skills/yss-ui/assets/demos/formily/helper-slot.vue +0 -50
- package/template/.hermes/skills/yss-ui/assets/demos/formily/label-tip.vue +0 -42
- package/template/.hermes/skills/yss-ui/assets/demos/formily/linkage-multi.vue +0 -127
- package/template/.hermes/skills/yss-ui/assets/demos/formily/linkage.vue +0 -78
- package/template/.hermes/skills/yss-ui/assets/demos/formily/modes.vue +0 -72
- package/template/.hermes/skills/yss-ui/assets/demos/formily/remote-enum.vue +0 -88
- package/template/.hermes/skills/yss-ui/assets/demos/formily/slot.vue +0 -54
- package/template/.hermes/skills/yss-ui/assets/demos/formily/steps.vue +0 -135
- package/template/.hermes/skills/yss-ui/assets/demos/formily/submit-failed.vue +0 -72
- package/template/.hermes/skills/yss-ui/assets/demos/monaco/basic.vue +0 -40
- package/template/.hermes/skills/yss-ui/assets/demos/monaco/diff-basic.vue +0 -143
- package/template/.hermes/skills/yss-ui/assets/demos/monaco/fullscreen.vue +0 -84
- package/template/.hermes/skills/yss-ui/assets/demos/monaco/history-log-viewer.vue +0 -586
- package/template/.hermes/skills/yss-ui/assets/demos/monaco/log-viewer.vue +0 -260
- package/template/.hermes/skills/yss-ui/assets/demos/monaco/mock/mockLogApi.ts +0 -199
- package/template/.hermes/skills/yss-ui/assets/demos/monaco/monaco.vue +0 -66
- package/template/.hermes/skills/yss-ui/assets/demos/monaco/readonly.vue +0 -20
- package/template/.hermes/skills/yss-ui/assets/demos/monaco/resizable.vue +0 -22
- package/template/.hermes/skills/yss-ui/assets/demos/monaco/sql-schema.vue +0 -20
- package/template/.hermes/skills/yss-ui/assets/demos/monaco/switch-lang-theme.vue +0 -48
- package/template/.hermes/skills/yss-ui/assets/demos/split-pane/tree-table/constant.ts +0 -18
- package/template/.hermes/skills/yss-ui/assets/demos/split-pane/tree-table/index.vue +0 -60
- package/template/.hermes/skills/yss-ui/assets/demos/split-pane/tree-table/style.less +0 -39
- package/template/.hermes/skills/yss-ui/assets/demos/split-pane/tree-table-layout/hooks/useTreeTable.ts +0 -158
- package/template/.hermes/skills/yss-ui/assets/demos/split-pane/tree-table-layout/index.vue +0 -88
- package/template/.hermes/skills/yss-ui/assets/demos/split-pane/tree-table-layout/style.less +0 -73
- package/template/.hermes/skills/yss-ui/assets/demos/table/action/index.vue +0 -83
- package/template/.hermes/skills/yss-ui/assets/demos/table/action/style.less +0 -3
- package/template/.hermes/skills/yss-ui/assets/demos/table/action-auth/index.vue +0 -41
- package/template/.hermes/skills/yss-ui/assets/demos/table/action-slot/index.vue +0 -62
- package/template/.hermes/skills/yss-ui/assets/demos/table/action-slot/style.less +0 -36
- package/template/.hermes/skills/yss-ui/assets/demos/table/basic/hooks/useBasicTable.ts +0 -205
- package/template/.hermes/skills/yss-ui/assets/demos/table/basic/index.vue +0 -89
- package/template/.hermes/skills/yss-ui/assets/demos/table/basic/style.less +0 -28
- package/template/.hermes/skills/yss-ui/assets/demos/table/column-custom-search/hooks/useColumnCustomSearch.ts +0 -236
- package/template/.hermes/skills/yss-ui/assets/demos/table/column-custom-search/index.vue +0 -141
- package/template/.hermes/skills/yss-ui/assets/demos/table/column-custom-search/style.less +0 -48
- package/template/.hermes/skills/yss-ui/assets/demos/table/drag/index.vue +0 -42
- package/template/.hermes/skills/yss-ui/assets/demos/table/expand/action-expand.vue +0 -142
- package/template/.hermes/skills/yss-ui/assets/demos/table/expand/index.vue +0 -35
- package/template/.hermes/skills/yss-ui/assets/demos/table/filter-async/index.vue +0 -93
- package/template/.hermes/skills/yss-ui/assets/demos/table/filter-auto/index.vue +0 -99
- package/template/.hermes/skills/yss-ui/assets/demos/table/filter-custom/index.vue +0 -72
- package/template/.hermes/skills/yss-ui/assets/demos/table/filter-local/index.vue +0 -112
- package/template/.hermes/skills/yss-ui/assets/demos/table/filter-mixed/index.vue +0 -142
- package/template/.hermes/skills/yss-ui/assets/demos/table/filter-remote/constant.ts +0 -129
- package/template/.hermes/skills/yss-ui/assets/demos/table/filter-remote/hooks/useTableData.ts +0 -186
- package/template/.hermes/skills/yss-ui/assets/demos/table/filter-remote/index.vue +0 -73
- package/template/.hermes/skills/yss-ui/assets/demos/table/group-header/index.vue +0 -86
- package/template/.hermes/skills/yss-ui/assets/demos/table/group-header/style.less +0 -3
- package/template/.hermes/skills/yss-ui/assets/demos/table/header-height/index.vue +0 -29
- package/template/.hermes/skills/yss-ui/assets/demos/table/header-height/style.less +0 -9
- package/template/.hermes/skills/yss-ui/assets/demos/table/merge-cells/hooks/useMergeCells.ts +0 -183
- package/template/.hermes/skills/yss-ui/assets/demos/table/merge-cells/index.vue +0 -17
- package/template/.hermes/skills/yss-ui/assets/demos/table/merge-cells/style.less +0 -3
- package/template/.hermes/skills/yss-ui/assets/demos/table/pagination-remote/hooks/usePaginationRemote.ts +0 -106
- package/template/.hermes/skills/yss-ui/assets/demos/table/pagination-remote/index.vue +0 -24
- package/template/.hermes/skills/yss-ui/assets/demos/table/renderers/index.vue +0 -64
- package/template/.hermes/skills/yss-ui/assets/demos/table/selection-checkbox/index.vue +0 -88
- package/template/.hermes/skills/yss-ui/assets/demos/table/selection-checkbox/style.less +0 -9
- package/template/.hermes/skills/yss-ui/assets/demos/table/selection-radio/index.vue +0 -57
- package/template/.hermes/skills/yss-ui/assets/demos/table/selection-radio/style.less +0 -9
- package/template/.hermes/skills/yss-ui/assets/demos/table/transform/index.vue +0 -32
- package/template/.hermes/skills/yss-ui/assets/demos/tree/basic-left/index.vue +0 -124
- package/template/.hermes/skills/yss-ui/assets/demos/tree/datasource-group/index.vue +0 -31
- package/template/.hermes/skills/yss-ui/assets/demos/tree/multi-checkable/index.vue +0 -86
- package/template/.hermes/skills/yss-ui/assets/demos/tree/multiple-select/index.vue +0 -76
- package/template/.hermes/skills/yss-ui/assets/demos/tree/resource-list/index.vue +0 -41
- package/template/.hermes/skills/yss-ui/assets/demos/tree/search-toolbar/index.vue +0 -156
- package/template/.hermes/skills/yss-ui/assets/demos/tree/slot-icon/index.vue +0 -36
- package/template/.hermes/skills/yss-ui/assets/demos/tree/slot-switcher-icon/index.vue +0 -34
- package/template/.hermes/skills/yss-ui/assets/docs/components/button.md +0 -79
- package/template/.hermes/skills/yss-ui/assets/docs/components/card.md +0 -162
- package/template/.hermes/skills/yss-ui/assets/docs/components/conditionBuilder.md +0 -114
- package/template/.hermes/skills/yss-ui/assets/docs/components/cron.md +0 -77
- package/template/.hermes/skills/yss-ui/assets/docs/components/echarts.md +0 -110
- package/template/.hermes/skills/yss-ui/assets/docs/components/editTable.md +0 -212
- package/template/.hermes/skills/yss-ui/assets/docs/components/fileImport.md +0 -85
- package/template/.hermes/skills/yss-ui/assets/docs/components/formily.md +0 -370
- package/template/.hermes/skills/yss-ui/assets/docs/components/monaco.md +0 -369
- package/template/.hermes/skills/yss-ui/assets/docs/components/sheet.md +0 -169
- package/template/.hermes/skills/yss-ui/assets/docs/components/split-pane.md +0 -45
- package/template/.hermes/skills/yss-ui/assets/docs/components/table.md +0 -398
- package/template/.hermes/skills/yss-ui/assets/docs/components/tree.md +0 -102
- package/template/.hermes/skills/yss-ui/assets/docs/guide/gitlab-ci-integration.md +0 -166
- package/template/.hermes/skills/yss-ui/assets/docs/guide/index.md +0 -132
- package/template/.hermes/skills/yss-ui/assets/docs/guide/installation.md +0 -97
- package/template/.hermes/skills/yss-ui/assets/docs/guide/jsp.md +0 -227
- package/template/.hermes/skills/yss-ui/assets/docs/guide/llms.md +0 -295
- package/template/.hermes/skills/yss-ui/assets/docs/guide/monorepo-versioning.md +0 -149
- package/template/.hermes/skills/yss-ui/assets/docs/guide/release-workflow.md +0 -251
- package/template/.hermes/skills/yss-ui/assets/docs/hooks/use-table-height.md +0 -101
- package/template/.hermes/skills/yss-ui/assets/docs/hooks/use-tree-height.md +0 -115
- package/template/.hermes/skills/yss-ui/assets/docs/hooks/useFullscreen.md +0 -130
- package/template/.hermes/skills/yss-ui/assets/docs/hooks/useLoading.md +0 -97
- package/template/.hermes/skills/yss-ui/assets/docs/root/resources.md +0 -18
- package/template/.hermes/skills/yss-ui/assets/keyword-index.json +0 -53
- package/template/.hermes/skills/yss-ui/assets/keyword-index.md +0 -47
- package/template/.hermes/skills/yss-ui/assets/reference-index.json +0 -55
- package/template/.hermes/skills/yss-ui/assets/reference-index.md +0 -74
- package/template/.hermes/skills/yss-ui/assets/scenario-index.json +0 -50
- package/template/.hermes/skills/yss-ui/assets/scenario-index.md +0 -41
- package/template/.hermes/skills/yss-ui/references/accessibility.md +0 -23
- package/template/.hermes/skills/yss-ui/references/antdv-compatibility.md +0 -39
- package/template/.hermes/skills/yss-ui/references/checklist.md +0 -110
- package/template/.hermes/skills/yss-ui/references/component-routing.md +0 -31
- package/template/.hermes/skills/yss-ui/references/frontend-docs.md +0 -11
- package/template/.hermes/skills/yss-ui/references/migration-antdv-to-yss.md +0 -20
- package/template/.hermes/skills/yss-ui/references/quick-recipes.md +0 -280
- package/template/.hermes/skills/yss-ui/references/theme-locale-overlay.md +0 -25
- package/template/.hermes/skills/yss-ui/references/verification.md +0 -20
- package/template/.hermes/skills/yss-ui-business-page-generation/SKILL.md +0 -159
- package/template/.hermes/skills/yss-ui-business-page-generation/references/component-map.md +0 -39
- package/template/.hermes/skills/yss-ui-business-page-generation/references/hooks-map.md +0 -70
- package/template/.hermes/skills/yss-ui-business-page-generation/references/utils-map.md +0 -51
- package/template/.hermes/skills/yss-up-springboot3/SKILL.md +0 -40
- package/template/.hermes/skills/yss-up-springboot3/agents/openai.yaml +0 -4
- package/template/.hermes/skills/yss-use-table-height/SKILL.md +0 -130
- package/template/.hermes/skills/yss-use-table-height/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-use-table-height/references/frontend-docs.md +0 -9
- package/template/.hermes/skills/yss-use-tree-height/SKILL.md +0 -98
- package/template/.hermes/skills/yss-use-tree-height/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-use-tree-height/references/frontend-docs.md +0 -9
- package/template/.hermes/skills/yss-userinfo/SKILL.md +0 -49
- package/template/.hermes/skills/yss-userinfo/agents/openai.yaml +0 -4
- package/template/.hermes/skills/yss-userinfo/references/source-index.md +0 -34
- package/template/.hermes/skills/yss-validation/SKILL.md +0 -56
- package/template/.hermes/skills/yss-validation/agents/openai.yaml +0 -4
- package/template/.hermes/skills/yss-validation/references/source-index.md +0 -33
- package/template/.hermes/skills/yss-web-controller/SKILL.md +0 -85
- package/template/.hermes/skills/yss-web-controller/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-web-controller/assets/templates/Controller.java.template +0 -72
- package/template/.hermes/skills/yss-web-controller/assets/templates/WebConvertor.java.template +0 -30
- package/template/.hermes/skills/yss-web-controller/assets/templates/web/dto/CreateRequest.java.template +0 -19
- package/template/.hermes/skills/yss-web-controller/assets/templates/web/dto/PageRequest.java.template +0 -21
- package/template/.hermes/skills/yss-web-controller/assets/templates/web/dto/Response.java.template +0 -18
- package/template/.hermes/skills/yss-web-controller/assets/templates/web/dto/UpdateRequest.java.template +0 -19
- package/template/.hermes/skills/yss-web-controller/references/web-adapter-layer-guide.md +0 -86
- package/template/.hermes/skills/yss-web-controller/references/web-generation-contract.schema.json +0 -97
- package/template/.hermes/skills/yss-web-controller/scripts/generate_controller.mjs +0 -226
- package/template/.hermes/skills/yss-web-controller/scripts/generate_controller.test.mjs +0 -156
- package/template/.hermes/skills/ytable-usage/SKILL.md +0 -251
- package/template/.hermes/skills/ytree-usage/SKILL.md +0 -132
- package/template/.kiro/settings/mcp.json +0 -8
- package/template/.pi/skills/yss-router/SKILL.md +0 -51
- package/template/.pi/skills/yss-router/agents/openai.yaml +0 -4
- package/template/.pi/skills/yss-router/references/boundaries.md +0 -50
- package/template/.pi/skills/yss-router/references/router-contract.yaml +0 -349
- package/template/.pi/skills/yss-router/references/slice-implementation-contract.md +0 -185
- package/template/.pi/skills/yss-router/references/yss-skill-execution-result.md +0 -67
- package/template/.pi/skills/yss-source-index/SKILL.md +0 -63
- package/template/.pi/skills/yss-source-index/agents/openai.yaml +0 -4
- package/template/.pi/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +0 -24
- package/template/.qoder/skills/yss-router/SKILL.md +0 -51
- package/template/.qoder/skills/yss-router/agents/openai.yaml +0 -4
- package/template/.qoder/skills/yss-router/references/boundaries.md +0 -50
- package/template/.qoder/skills/yss-router/references/router-contract.yaml +0 -349
- package/template/.qoder/skills/yss-router/references/slice-implementation-contract.md +0 -185
- package/template/.qoder/skills/yss-router/references/yss-skill-execution-result.md +0 -67
- package/template/.qoder/skills/yss-source-index/SKILL.md +0 -63
- package/template/.qoder/skills/yss-source-index/agents/openai.yaml +0 -4
- package/template/.qoder/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +0 -24
- package/template/.trae/skills/yss-router/SKILL.md +0 -51
- package/template/.trae/skills/yss-router/agents/openai.yaml +0 -4
- package/template/.trae/skills/yss-router/references/boundaries.md +0 -50
- package/template/.trae/skills/yss-router/references/router-contract.yaml +0 -349
- package/template/.trae/skills/yss-router/references/slice-implementation-contract.md +0 -185
- package/template/.trae/skills/yss-router/references/yss-skill-execution-result.md +0 -67
- package/template/.trae/skills/yss-source-index/SKILL.md +0 -63
- package/template/.trae/skills/yss-source-index/agents/openai.yaml +0 -4
- package/template/.trae/skills/yss-source-index/references/source-location.md +0 -18
- package/template/.trae/skills/yss-source-index/references/source-map-config.md +0 -30
- package/template/.trae/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +0 -24
- package/template/.trae/skills/yss-source-index/scripts/refresh-yss-skill-index.test.mjs +0 -15
- package/template/scripts/verify-yss-router-scenarios +0 -3
- /package/template/.agents/skills/{yss-source-index → yss-skill-source-index-refresh}/references/source-location.md +0 -0
- /package/template/.agents/skills/{yss-source-index → yss-skill-source-index-refresh}/references/source-map-config.md +0 -0
- /package/template/.agents/skills/{yss-source-index → yss-skill-source-index-refresh}/scripts/refresh-yss-skill-index.test.mjs +0 -0
- /package/template/.claude/skills/{yss-source-index → yss-skill-source-index-refresh}/references/source-location.md +0 -0
- /package/template/.claude/skills/{yss-source-index → yss-skill-source-index-refresh}/references/source-map-config.md +0 -0
- /package/template/.claude/skills/{yss-source-index → yss-skill-source-index-refresh}/scripts/refresh-yss-skill-index.test.mjs +0 -0
- /package/template/.codex/skills/{yss-source-index → yss-skill-source-index-refresh}/references/source-location.md +0 -0
- /package/template/.codex/skills/{yss-source-index → yss-skill-source-index-refresh}/references/source-map-config.md +0 -0
- /package/template/.codex/skills/{yss-source-index → yss-skill-source-index-refresh}/scripts/refresh-yss-skill-index.test.mjs +0 -0
- /package/template/.cursor/skills/{yss-source-index → yss-skill-source-index-refresh}/references/source-location.md +0 -0
- /package/template/.cursor/skills/{yss-source-index → yss-skill-source-index-refresh}/references/source-map-config.md +0 -0
- /package/template/.cursor/skills/{yss-source-index → yss-skill-source-index-refresh}/scripts/refresh-yss-skill-index.test.mjs +0 -0
- /package/template/{.hermes/skills/yss-source-index → .pi/skills/yss-skill-source-index-refresh}/references/source-location.md +0 -0
- /package/template/{.hermes/skills/yss-source-index → .pi/skills/yss-skill-source-index-refresh}/references/source-map-config.md +0 -0
- /package/template/{.hermes/skills/yss-source-index → .pi/skills/yss-skill-source-index-refresh}/scripts/refresh-yss-skill-index.test.mjs +0 -0
- /package/template/{.pi/skills/yss-source-index → .qoder/skills/yss-skill-source-index-refresh}/references/source-location.md +0 -0
- /package/template/{.pi/skills/yss-source-index → .qoder/skills/yss-skill-source-index-refresh}/references/source-map-config.md +0 -0
- /package/template/{.pi/skills/yss-source-index → .qoder/skills/yss-skill-source-index-refresh}/scripts/refresh-yss-skill-index.test.mjs +0 -0
- /package/template/{.qoder/skills/yss-source-index → .trae/skills/yss-skill-source-index-refresh}/references/source-location.md +0 -0
- /package/template/{.qoder/skills/yss-source-index → .trae/skills/yss-skill-source-index-refresh}/references/source-map-config.md +0 -0
- /package/template/{.qoder/skills/yss-source-index → .trae/skills/yss-skill-source-index-refresh}/scripts/refresh-yss-skill-index.test.mjs +0 -0
|
@@ -1,1163 +0,0 @@
|
|
|
1
|
-
import { test } from 'node:test';
|
|
2
|
-
import assert from 'node:assert/strict';
|
|
3
|
-
import { spawnSync } from 'node:child_process';
|
|
4
|
-
import { createHash } from 'node:crypto';
|
|
5
|
-
import fs from 'node:fs';
|
|
6
|
-
import os from 'node:os';
|
|
7
|
-
import path from 'node:path';
|
|
8
|
-
import { fileURLToPath } from 'node:url';
|
|
9
|
-
|
|
10
|
-
import { compileWorkflow } from '../renderers/workflow/workflow-compiler.mjs';
|
|
11
|
-
|
|
12
|
-
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
13
|
-
const skillRoot = path.resolve(__dirname, '..');
|
|
14
|
-
const cli = path.join(skillRoot, 'bin', 'archify.mjs');
|
|
15
|
-
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-workflow-compiler-'));
|
|
16
|
-
|
|
17
|
-
function readJson(file) {
|
|
18
|
-
return JSON.parse(fs.readFileSync(file, 'utf8'));
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function clone(value) {
|
|
22
|
-
return JSON.parse(JSON.stringify(value));
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function sha256(value) {
|
|
26
|
-
return createHash('sha256').update(value).digest('hex');
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function attribute(tag, name) {
|
|
30
|
-
const value = tag.match(new RegExp(`\\b${name}="([^"]*)"`))?.[1];
|
|
31
|
-
assert.notEqual(value, undefined, `expected ${name} in ${tag}`);
|
|
32
|
-
return value;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function numericRect(attributes) {
|
|
36
|
-
return Object.fromEntries(['x', 'y', 'width', 'height'].map((name) => [
|
|
37
|
-
name,
|
|
38
|
-
Number(attribute(attributes, name)),
|
|
39
|
-
]));
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function nodeRect(svg, id) {
|
|
43
|
-
const escapedId = id.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
44
|
-
const attributes = svg.match(new RegExp(
|
|
45
|
-
`<g\\b[^>]*id="node-${escapedId}"[^>]*>[\\s\\S]*?<rect\\b([^>]*)>`,
|
|
46
|
-
))?.[1];
|
|
47
|
-
assert.ok(attributes, `expected rendered node ${id}`);
|
|
48
|
-
return numericRect(attributes);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function edgePoints(svg, id) {
|
|
52
|
-
const tag = (svg.match(/<path\b[^>]*>/g) || []).find((candidate) => (
|
|
53
|
-
attributeOrUndefined(candidate, 'data-edge-id') === id
|
|
54
|
-
));
|
|
55
|
-
assert.ok(tag, `expected rendered edge ${id}`);
|
|
56
|
-
return attribute(tag, 'data-composition-points')
|
|
57
|
-
.split(';')
|
|
58
|
-
.map((point) => point.split(',').map(Number));
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
function edgeLabelRect(svg, id) {
|
|
62
|
-
const escapedId = id.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
63
|
-
const attributes = svg.match(new RegExp(
|
|
64
|
-
`<g\\b(?=[^>]*data-edge-id="${escapedId}")(?=[^>]*data-edge-label=)[^>]*>[\\s\\S]*?<rect\\b([^>]*)>`,
|
|
65
|
-
))?.[1];
|
|
66
|
-
assert.ok(attributes, `expected rendered label mask for edge ${id}`);
|
|
67
|
-
return numericRect(attributes);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
function attributeOrUndefined(tag, name) {
|
|
71
|
-
return tag.match(new RegExp(`\\b${name}="([^"]*)"`))?.[1];
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
function svgViewBox(svg) {
|
|
75
|
-
const tag = svg.match(/<svg\b[^>]*>/)?.[0];
|
|
76
|
-
assert.ok(tag, 'expected an SVG root');
|
|
77
|
-
return attribute(tag, 'viewBox').split(/\s+/).map(Number);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
function legendGeometry(svg) {
|
|
81
|
-
return svg.match(/<g data-legend-semantic-kind="[^"]+"[^>]*>/g) || [];
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
function assertRectInsideViewBox(rect, viewBox, message) {
|
|
85
|
-
const [minX, minY, width, height] = viewBox;
|
|
86
|
-
assert.ok(rect.x >= minX, `${message}: left edge ${rect.x} is outside ${minX}`);
|
|
87
|
-
assert.ok(rect.y >= minY, `${message}: top edge ${rect.y} is outside ${minY}`);
|
|
88
|
-
assert.ok(
|
|
89
|
-
rect.x + rect.width <= minX + width,
|
|
90
|
-
`${message}: right edge ${rect.x + rect.width} is outside ${minX + width}`,
|
|
91
|
-
);
|
|
92
|
-
assert.ok(
|
|
93
|
-
rect.y + rect.height <= minY + height,
|
|
94
|
-
`${message}: bottom edge ${rect.y + rect.height} is outside ${minY + height}`,
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
function assertRectInsideRect(rect, container, message) {
|
|
99
|
-
assert.ok(rect.x >= container.x, `${message}: left edge ${rect.x} is outside ${container.x}`);
|
|
100
|
-
assert.ok(rect.y >= container.y, `${message}: top edge ${rect.y} is outside ${container.y}`);
|
|
101
|
-
assert.ok(
|
|
102
|
-
rect.x + rect.width <= container.x + container.width,
|
|
103
|
-
`${message}: right edge ${rect.x + rect.width} is outside ${container.x + container.width}`,
|
|
104
|
-
);
|
|
105
|
-
assert.ok(
|
|
106
|
-
rect.y + rect.height <= container.y + container.height,
|
|
107
|
-
`${message}: bottom edge ${rect.y + rect.height} is outside ${container.y + container.height}`,
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
function groupFrameRect(svg, index = 0) {
|
|
112
|
-
const attributes = svg.match(new RegExp(
|
|
113
|
-
`<rect\\b(?=[^>]*data-composition-frame-kind="group")(?=[^>]*data-composition-frame-id="group-${index}")([^>]*)/>`,
|
|
114
|
-
))?.[1];
|
|
115
|
-
assert.ok(attributes, `expected rendered group frame ${index}`);
|
|
116
|
-
return numericRect(attributes);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
function asciiGroupLabelTextRect(svg, label) {
|
|
120
|
-
const escapedLabel = label.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
121
|
-
const attributes = svg.match(new RegExp(`<text\\b([^>]*)>${escapedLabel}</text>`))?.[1];
|
|
122
|
-
assert.ok(attributes, `expected rendered group label ${label}`);
|
|
123
|
-
return {
|
|
124
|
-
x: Number(attribute(attributes, 'x')),
|
|
125
|
-
y: Number(attribute(attributes, 'y')) - 10,
|
|
126
|
-
width: Array.from(label).length * 5.6,
|
|
127
|
-
height: 14,
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
function rectsOverlap(left, right) {
|
|
132
|
-
return !(
|
|
133
|
-
left.x + left.width <= right.x
|
|
134
|
-
|| right.x + right.width <= left.x
|
|
135
|
-
|| left.y + left.height <= right.y
|
|
136
|
-
|| right.y + right.height <= left.y
|
|
137
|
-
);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
function orthogonalSegmentIntersectsRect(start, end, rect) {
|
|
141
|
-
const left = rect.x;
|
|
142
|
-
const right = rect.x + rect.width;
|
|
143
|
-
const top = rect.y;
|
|
144
|
-
const bottom = rect.y + rect.height;
|
|
145
|
-
if (start[1] === end[1]) {
|
|
146
|
-
return start[1] >= top && start[1] <= bottom
|
|
147
|
-
&& Math.max(start[0], end[0]) >= left
|
|
148
|
-
&& Math.min(start[0], end[0]) <= right;
|
|
149
|
-
}
|
|
150
|
-
if (start[0] === end[0]) {
|
|
151
|
-
return start[0] >= left && start[0] <= right
|
|
152
|
-
&& Math.max(start[1], end[1]) >= top
|
|
153
|
-
&& Math.min(start[1], end[1]) <= bottom;
|
|
154
|
-
}
|
|
155
|
-
throw new Error(`expected an orthogonal route segment: ${JSON.stringify([start, end])}`);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
function asciiLaneHeaderTextRect(label, { laneTop = 52, laneIndex = 0 } = {}) {
|
|
159
|
-
const prefix = String(laneIndex + 1).padStart(2, '0');
|
|
160
|
-
return {
|
|
161
|
-
x: 54,
|
|
162
|
-
y: laneTop + 12,
|
|
163
|
-
width: Array.from(`${prefix} / ${label}`).length * 6.2,
|
|
164
|
-
height: 14,
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
function compileSuccessfully(workflow, qualityProfile) {
|
|
169
|
-
const request = qualityProfile === undefined
|
|
170
|
-
? { workflow }
|
|
171
|
-
: { workflow, qualityProfile };
|
|
172
|
-
const result = compileWorkflow(request);
|
|
173
|
-
assert.equal(
|
|
174
|
-
result.ok,
|
|
175
|
-
true,
|
|
176
|
-
`expected workflow compilation to succeed:\n${JSON.stringify(result.diagnostics, null, 2)}`,
|
|
177
|
-
);
|
|
178
|
-
assert.equal(typeof result.svg, 'string');
|
|
179
|
-
assert.match(result.svg, /^\s*<svg\b/, 'compiler should return one canonical renderer SVG');
|
|
180
|
-
assert.ok(result.receipt);
|
|
181
|
-
assert.deepEqual(result.receipt.diagnostics, []);
|
|
182
|
-
return result;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
function adjacentWorkflow({
|
|
186
|
-
fromCol = 1,
|
|
187
|
-
toCol = fromCol + 1,
|
|
188
|
-
label,
|
|
189
|
-
widths = [92, 92],
|
|
190
|
-
nodeLabels = ['A', 'B'],
|
|
191
|
-
viewBox,
|
|
192
|
-
frames = false,
|
|
193
|
-
} = {}) {
|
|
194
|
-
const workflow = {
|
|
195
|
-
schema_version: 2,
|
|
196
|
-
diagram_type: 'workflow',
|
|
197
|
-
meta: {
|
|
198
|
-
title: `Adjacent ranks ${fromCol} to ${toCol}`,
|
|
199
|
-
legend: { mode: 'hidden' },
|
|
200
|
-
...(viewBox ? { viewBox } : {}),
|
|
201
|
-
},
|
|
202
|
-
lanes: [{ id: 'main', label: 'Main' }],
|
|
203
|
-
nodes: [
|
|
204
|
-
{
|
|
205
|
-
id: 'a', lane: 'main', col: fromCol, type: 'backend', label: nodeLabels[0], width: widths[0],
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
id: 'b', lane: 'main', col: toCol, type: 'backend', label: nodeLabels[1], width: widths[1],
|
|
209
|
-
},
|
|
210
|
-
],
|
|
211
|
-
edges: [{ id: 'ab', from: 'a', to: 'b', ...(label ? { label } : {}) }],
|
|
212
|
-
};
|
|
213
|
-
if (frames) {
|
|
214
|
-
workflow.phases = [{
|
|
215
|
-
id: 'phase', label: 'P', fromCol, toCol,
|
|
216
|
-
}];
|
|
217
|
-
workflow.groups = [{
|
|
218
|
-
id: 'group', label: 'G', lane: 'main', fromCol, toCol,
|
|
219
|
-
}];
|
|
220
|
-
}
|
|
221
|
-
return workflow;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
function assertReadableAdjacentResult(result, { label, widths = [92, 92] } = {}) {
|
|
225
|
-
assert.equal(result.receipt.contract, 'readable-v2');
|
|
226
|
-
assert.deepEqual(result.receipt.viewBox, svgViewBox(result.svg).slice(2));
|
|
227
|
-
assert.ok(Array.isArray(result.receipt.requiredViewBox));
|
|
228
|
-
assert.equal(result.receipt.columns.length, 6);
|
|
229
|
-
assert.ok(result.receipt.columns.every(Number.isFinite));
|
|
230
|
-
for (let index = 1; index < result.receipt.columns.length; index += 1) {
|
|
231
|
-
assert.ok(
|
|
232
|
-
result.receipt.columns[index] > result.receipt.columns[index - 1],
|
|
233
|
-
`column ${index} must be strictly after column ${index - 1}`,
|
|
234
|
-
);
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
const source = nodeRect(result.svg, 'a');
|
|
238
|
-
const target = nodeRect(result.svg, 'b');
|
|
239
|
-
assert.equal(source.width, widths[0]);
|
|
240
|
-
assert.equal(target.width, widths[1]);
|
|
241
|
-
assert.ok(source.x + source.width <= target.x, 'same-lane nodes must not overlap');
|
|
242
|
-
|
|
243
|
-
const points = edgePoints(result.svg, 'ab');
|
|
244
|
-
assert.deepEqual(points.length, 2, `adjacent facing nodes should use a direct route: ${JSON.stringify(points)}`);
|
|
245
|
-
assert.equal(points[0][0], source.x + source.width, 'edge must leave the source right side');
|
|
246
|
-
assert.equal(points[1][0], target.x, 'edge must enter the target left side');
|
|
247
|
-
assert.equal(points[0][1], points[1][1], 'direct route must be horizontal');
|
|
248
|
-
const directClearance = points[1][0] - points[0][0];
|
|
249
|
-
assert.ok(directClearance >= 28, `direct clearance ${directClearance}px must be at least 28px`);
|
|
250
|
-
|
|
251
|
-
if (label) {
|
|
252
|
-
const mask = edgeLabelRect(result.svg, 'ab');
|
|
253
|
-
assert.ok(
|
|
254
|
-
directClearance + 1e-9 >= mask.width + 8,
|
|
255
|
-
`labeled direct clearance ${directClearance}px must fit ${mask.width}px mask plus 8px breathing room`,
|
|
256
|
-
);
|
|
257
|
-
assertRectInsideViewBox(mask, svgViewBox(result.svg), 'edge label mask');
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
test('fixed-v1 compiler preserves the official workflow baseline SVG byte-for-byte', () => {
|
|
262
|
-
const workflow = readJson(path.join(__dirname, 'fixtures', 'v1-baseline', 'agent-tool-call.workflow.json'));
|
|
263
|
-
const result = compileSuccessfully(workflow);
|
|
264
|
-
assert.equal(result.receipt.contract, 'fixed-v1');
|
|
265
|
-
assert.equal(
|
|
266
|
-
sha256(result.svg),
|
|
267
|
-
'4e493db1977889675ce7b04bf9ba60fb97cb50f01fc0fd9e8446861282c65645',
|
|
268
|
-
);
|
|
269
|
-
});
|
|
270
|
-
|
|
271
|
-
test('fixed-v1 compiler preserves the exact 700x400 compatibility geometry', () => {
|
|
272
|
-
const workflow = readJson(path.join(
|
|
273
|
-
__dirname,
|
|
274
|
-
'fixtures',
|
|
275
|
-
'v1-workflow-700x400.workflow.json',
|
|
276
|
-
));
|
|
277
|
-
|
|
278
|
-
const result = compileSuccessfully(workflow);
|
|
279
|
-
assert.equal(result.receipt.contract, 'fixed-v1');
|
|
280
|
-
assert.deepEqual(result.receipt.viewBox, [700, 400]);
|
|
281
|
-
assert.deepEqual(svgViewBox(result.svg), [0, 0, 700, 400]);
|
|
282
|
-
assert.equal(
|
|
283
|
-
sha256(result.svg),
|
|
284
|
-
'28b0167460d16c55ae6bf38bde41368248671a78b3a49133da05ed1efb4354af',
|
|
285
|
-
'the v1 compiler extraction must not move or reserialize legacy geometry',
|
|
286
|
-
);
|
|
287
|
-
});
|
|
288
|
-
|
|
289
|
-
test('fixed-v1 keeps valid phase and group spans independent of label measurement', () => {
|
|
290
|
-
const workflow = {
|
|
291
|
-
schema_version: 1,
|
|
292
|
-
diagram_type: 'workflow',
|
|
293
|
-
meta: { title: 'Fixed v1 frame geometry', legend: { mode: 'hidden' } },
|
|
294
|
-
lanes: [{ id: 'main', label: 'Main' }],
|
|
295
|
-
phases: [{ id: 'phase', label: 'P'.repeat(17), fromCol: 0, toCol: 0 }],
|
|
296
|
-
groups: [{
|
|
297
|
-
id: 'group', label: 'G'.repeat(30), lane: 'main', fromCol: 0, toCol: 0,
|
|
298
|
-
}],
|
|
299
|
-
nodes: [{ id: 'a', lane: 'main', col: 0, type: 'backend', label: 'A' }],
|
|
300
|
-
edges: [],
|
|
301
|
-
};
|
|
302
|
-
|
|
303
|
-
const result = compileSuccessfully(workflow);
|
|
304
|
-
assert.match(
|
|
305
|
-
result.svg,
|
|
306
|
-
/<line x1="42" y1="35" x2="134" y2="35"/,
|
|
307
|
-
'v1 phase spans must retain the legacy fixed 46px padding',
|
|
308
|
-
);
|
|
309
|
-
assert.match(
|
|
310
|
-
result.svg,
|
|
311
|
-
/data-composition-frame-kind="group"[^>]* x="38" y="90" width="100"/,
|
|
312
|
-
'v1 group spans must retain the legacy fixed 50px padding',
|
|
313
|
-
);
|
|
314
|
-
});
|
|
315
|
-
|
|
316
|
-
test('fixed-v1 reports one causal column-capacity diagnostic for issue #126', () => {
|
|
317
|
-
const workflow = {
|
|
318
|
-
schema_version: 1,
|
|
319
|
-
diagram_type: 'workflow',
|
|
320
|
-
meta: { title: 'Issue 126 causal diagnostic', legend: { mode: 'hidden' } },
|
|
321
|
-
lanes: [{ id: 'main', label: 'Main' }],
|
|
322
|
-
nodes: [
|
|
323
|
-
{ id: 'a', lane: 'main', col: 1, type: 'backend', label: 'A' },
|
|
324
|
-
{ id: 'b', lane: 'main', col: 2, type: 'backend', label: 'B' },
|
|
325
|
-
],
|
|
326
|
-
edges: [{ id: 'ab', from: 'a', to: 'b', label: 'liga' }],
|
|
327
|
-
};
|
|
328
|
-
|
|
329
|
-
const result = compileWorkflow({ workflow, qualityProfile: 'showcase' });
|
|
330
|
-
assert.equal(result.ok, false);
|
|
331
|
-
assert.equal(result.diagnostics.length, 1, JSON.stringify(result.diagnostics, null, 2));
|
|
332
|
-
assert.deepEqual(result.receipt.diagnostics, result.diagnostics);
|
|
333
|
-
|
|
334
|
-
const [diagnostic] = result.diagnostics;
|
|
335
|
-
assert.equal(diagnostic.code, 'workflow/column-capacity');
|
|
336
|
-
assert.equal(diagnostic.subject.edge, 'ab');
|
|
337
|
-
assert.equal(diagnostic.subject.from, 'a');
|
|
338
|
-
assert.equal(diagnostic.subject.to, 'b');
|
|
339
|
-
assert.equal(diagnostic.subject.fromCol, 1);
|
|
340
|
-
assert.equal(diagnostic.subject.toCol, 2);
|
|
341
|
-
assert.deepEqual(diagnostic.evidence, {
|
|
342
|
-
centerDistancePx: 80,
|
|
343
|
-
nodeWidthsPx: [92, 92],
|
|
344
|
-
actualSignedClearancePx: -12,
|
|
345
|
-
requiredDirectClearancePx: 28,
|
|
346
|
-
});
|
|
347
|
-
assert.deepEqual(diagnostic.suppresses, [
|
|
348
|
-
'workflow/short-edge',
|
|
349
|
-
'clean-flow/endpoint-side-direction',
|
|
350
|
-
'workflow/label-node-overlap',
|
|
351
|
-
]);
|
|
352
|
-
assert.ok(diagnostic.supportedFixes.some((fix) => /schema_version 2/.test(fix)));
|
|
353
|
-
assert.ok(diagnostic.supportedFixes.some((fix) => /column 3/.test(fix)));
|
|
354
|
-
assert.ok(diagnostic.supportedFixes.some((fix) => /width/i.test(fix)));
|
|
355
|
-
assert.doesNotMatch(
|
|
356
|
-
diagnostic.supportedFixes.join('\n'),
|
|
357
|
-
/drop|remove|omit|unlabel|channel/i,
|
|
358
|
-
'a causal overlap diagnostic must not propose a label or routing non-fix',
|
|
359
|
-
);
|
|
360
|
-
});
|
|
361
|
-
|
|
362
|
-
test('fixed-v1 verifies the real coordinate migration before advertising it', () => {
|
|
363
|
-
const workflow = {
|
|
364
|
-
schema_version: 1,
|
|
365
|
-
diagram_type: 'workflow',
|
|
366
|
-
meta: {
|
|
367
|
-
title: 'Pinned issue 126 migration',
|
|
368
|
-
viewBox: [720, 400],
|
|
369
|
-
legend: { mode: 'hidden' },
|
|
370
|
-
},
|
|
371
|
-
lanes: [{ id: 'main', label: 'Main' }],
|
|
372
|
-
nodes: [
|
|
373
|
-
{ id: 'a', lane: 'main', col: 1, type: 'backend', label: 'A' },
|
|
374
|
-
{ id: 'b', lane: 'main', col: 2, type: 'backend', label: 'B' },
|
|
375
|
-
],
|
|
376
|
-
edges: [{
|
|
377
|
-
id: 'ab',
|
|
378
|
-
from: 'a',
|
|
379
|
-
to: 'b',
|
|
380
|
-
fromSide: 'top',
|
|
381
|
-
toSide: 'top',
|
|
382
|
-
via: [[220, 60], [300, 60]],
|
|
383
|
-
}],
|
|
384
|
-
};
|
|
385
|
-
|
|
386
|
-
const result = compileWorkflow({ workflow, qualityProfile: 'showcase' });
|
|
387
|
-
assert.equal(result.ok, false);
|
|
388
|
-
assert.equal(result.diagnostics[0].code, 'workflow/column-capacity');
|
|
389
|
-
assert.ok(
|
|
390
|
-
result.diagnostics[0].supportedFixes.includes('migrate this workflow to schema_version 2'),
|
|
391
|
-
JSON.stringify(result.diagnostics[0], null, 2),
|
|
392
|
-
);
|
|
393
|
-
});
|
|
394
|
-
|
|
395
|
-
test('readable-v2 supports every adjacent rank with and without a semantic label', () => {
|
|
396
|
-
for (const qualityProfile of ['standard', 'showcase']) {
|
|
397
|
-
for (let fromCol = 0; fromCol < 5; fromCol += 1) {
|
|
398
|
-
for (const label of [undefined, 'liga']) {
|
|
399
|
-
const result = compileSuccessfully(adjacentWorkflow({ fromCol, label }), qualityProfile);
|
|
400
|
-
assertReadableAdjacentResult(result, { label });
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
});
|
|
405
|
-
|
|
406
|
-
test('readable-v2 satisfies the complete adjacent-rank acceptance matrix', () => {
|
|
407
|
-
let cases = 0;
|
|
408
|
-
for (const qualityProfile of ['standard', 'showcase']) {
|
|
409
|
-
for (let fromCol = 0; fromCol < 5; fromCol += 1) {
|
|
410
|
-
for (const label of [undefined, 'liga']) {
|
|
411
|
-
for (const frames of [false, true]) {
|
|
412
|
-
for (const width of [900, 1080, 1400, 1600]) {
|
|
413
|
-
const result = compileSuccessfully(adjacentWorkflow({
|
|
414
|
-
fromCol,
|
|
415
|
-
label,
|
|
416
|
-
frames,
|
|
417
|
-
viewBox: [width, 420],
|
|
418
|
-
}), qualityProfile);
|
|
419
|
-
assert.deepEqual(result.receipt.viewBox, [width, 420]);
|
|
420
|
-
assertReadableAdjacentResult(result, { label });
|
|
421
|
-
if (frames) assert.match(result.svg, /data-composition-frame-kind="group"/);
|
|
422
|
-
cases += 1;
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
assert.equal(cases, 160);
|
|
429
|
-
});
|
|
430
|
-
|
|
431
|
-
test('readable-v2 phase and group frames derive from solved ranks without moving the core geometry', () => {
|
|
432
|
-
for (const qualityProfile of ['standard', 'showcase']) {
|
|
433
|
-
for (let fromCol = 0; fromCol < 5; fromCol += 1) {
|
|
434
|
-
const plain = compileSuccessfully(adjacentWorkflow({ fromCol, label: 'liga' }), qualityProfile);
|
|
435
|
-
const framed = compileSuccessfully(
|
|
436
|
-
adjacentWorkflow({ fromCol, label: 'liga', frames: true }),
|
|
437
|
-
qualityProfile,
|
|
438
|
-
);
|
|
439
|
-
|
|
440
|
-
assert.deepEqual(framed.receipt.columns, plain.receipt.columns);
|
|
441
|
-
assert.deepEqual(nodeRect(framed.svg, 'a'), nodeRect(plain.svg, 'a'));
|
|
442
|
-
assert.deepEqual(nodeRect(framed.svg, 'b'), nodeRect(plain.svg, 'b'));
|
|
443
|
-
assert.deepEqual(edgePoints(framed.svg, 'ab'), edgePoints(plain.svg, 'ab'));
|
|
444
|
-
assert.match(framed.svg, /data-composition-frame-kind="group"/);
|
|
445
|
-
assertReadableAdjacentResult(framed, { label: 'liga' });
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
});
|
|
449
|
-
|
|
450
|
-
test('readable-v2 treats the phase header mask as a routing obstacle', () => {
|
|
451
|
-
const document = {
|
|
452
|
-
schema_version: 2,
|
|
453
|
-
diagram_type: 'workflow',
|
|
454
|
-
meta: { title: 'Phase route obstacle', legend: { mode: 'hidden' } },
|
|
455
|
-
lanes: [{ id: 'top', label: 'Top' }, { id: 'bottom', label: 'Bottom' }],
|
|
456
|
-
nodes: [
|
|
457
|
-
{ id: 'a', lane: 'top', col: 0, type: 'backend', label: 'A' },
|
|
458
|
-
{ id: 'b', lane: 'bottom', col: 4, type: 'backend', label: 'B' },
|
|
459
|
-
],
|
|
460
|
-
edges: [{
|
|
461
|
-
id: 'ab', from: 'a', to: 'b', fromSide: 'top', toSide: 'top',
|
|
462
|
-
}],
|
|
463
|
-
};
|
|
464
|
-
|
|
465
|
-
const withoutPhase = compileSuccessfully(clone(document), 'showcase');
|
|
466
|
-
assert.ok(withoutPhase.receipt.edges.find(({ id }) => id === 'ab'));
|
|
467
|
-
|
|
468
|
-
const withPhaseDocument = clone(document);
|
|
469
|
-
withPhaseDocument.phases = [{ id: 'p', label: 'Phase', fromCol: 0, toCol: 5 }];
|
|
470
|
-
const withPhase = compileSuccessfully(withPhaseDocument, 'showcase');
|
|
471
|
-
const columns = withPhase.receipt.columns;
|
|
472
|
-
const phaseMask = {
|
|
473
|
-
x: columns[0] - 46,
|
|
474
|
-
y: 27,
|
|
475
|
-
width: (columns[5] + 46) - (columns[0] - 46),
|
|
476
|
-
height: 16,
|
|
477
|
-
};
|
|
478
|
-
const points = withPhase.receipt.edges.find(({ id }) => id === 'ab').points;
|
|
479
|
-
for (let index = 0; index < points.length - 1; index += 1) {
|
|
480
|
-
assert.equal(
|
|
481
|
-
orthogonalSegmentIntersectsRect(points[index], points[index + 1], phaseMask),
|
|
482
|
-
false,
|
|
483
|
-
`edge ab segment ${index} must clear the phase mask: ${JSON.stringify(points)}`,
|
|
484
|
-
);
|
|
485
|
-
}
|
|
486
|
-
});
|
|
487
|
-
|
|
488
|
-
test('readable-v2 never routes through a single-rank group label', () => {
|
|
489
|
-
const groupLabel = 'Very long group label';
|
|
490
|
-
const document = {
|
|
491
|
-
schema_version: 2,
|
|
492
|
-
diagram_type: 'workflow',
|
|
493
|
-
meta: { title: 'Group label route obstacle', legend: { mode: 'hidden' } },
|
|
494
|
-
lanes: [{ id: 'top', label: 'Top' }, { id: 'bottom', label: 'Bottom' }],
|
|
495
|
-
groups: [{ id: 'g', label: groupLabel, lane: 'top', fromCol: 2, toCol: 2 }],
|
|
496
|
-
nodes: [
|
|
497
|
-
{ id: 'a', lane: 'top', col: 2, type: 'backend', label: 'A' },
|
|
498
|
-
{ id: 'b', lane: 'bottom', col: 4, type: 'database', label: 'B' },
|
|
499
|
-
],
|
|
500
|
-
edges: [{
|
|
501
|
-
id: 'ab', from: 'a', to: 'b', fromSide: 'top', toSide: 'top',
|
|
502
|
-
}],
|
|
503
|
-
};
|
|
504
|
-
|
|
505
|
-
const first = compileWorkflow({ workflow: document, qualityProfile: 'showcase' });
|
|
506
|
-
const second = compileWorkflow({ workflow: clone(document), qualityProfile: 'showcase' });
|
|
507
|
-
assert.deepEqual(second, first, 'repeated compilation must be deterministic');
|
|
508
|
-
|
|
509
|
-
assert.equal(first.ok, false);
|
|
510
|
-
assert.equal(first.svg, undefined);
|
|
511
|
-
assert.equal(first.diagnostics.length, 1, JSON.stringify(first.diagnostics, null, 2));
|
|
512
|
-
const [diagnostic] = first.diagnostics;
|
|
513
|
-
assert.equal(diagnostic.code, 'workflow/explicit-pin-conflict');
|
|
514
|
-
assert.equal(diagnostic.subject.path, '/edges/0/fromSide');
|
|
515
|
-
assert.equal(
|
|
516
|
-
diagnostic.evidence.invariant,
|
|
517
|
-
'readable route feasibility with authored endpoint sides',
|
|
518
|
-
);
|
|
519
|
-
assert.deepEqual(diagnostic.evidence.conflictingPins, [{
|
|
520
|
-
edge: 'ab',
|
|
521
|
-
field: 'fromSide',
|
|
522
|
-
path: '/edges/0/fromSide',
|
|
523
|
-
value: 'top',
|
|
524
|
-
}]);
|
|
525
|
-
assert.ok(diagnostic.supportedFixes.length > 0);
|
|
526
|
-
assert.deepEqual(first.receipt.diagnostics, first.diagnostics);
|
|
527
|
-
|
|
528
|
-
const repaired = clone(document);
|
|
529
|
-
delete repaired.edges[0].fromSide;
|
|
530
|
-
const rendered = compileWorkflow({ workflow: repaired, qualityProfile: 'showcase' });
|
|
531
|
-
assert.equal(rendered.ok, true, JSON.stringify(rendered.diagnostics, null, 2));
|
|
532
|
-
|
|
533
|
-
const escapedLabel = groupLabel.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
534
|
-
const attributes = rendered.svg.match(new RegExp(
|
|
535
|
-
`<text\\b([^>]*)>${escapedLabel}</text>`,
|
|
536
|
-
))?.[1];
|
|
537
|
-
assert.ok(attributes, 'expected the rendered group label');
|
|
538
|
-
const groupLabelRect = {
|
|
539
|
-
x: Number(attribute(attributes, 'x')),
|
|
540
|
-
y: Number(attribute(attributes, 'y')) - 10,
|
|
541
|
-
width: Array.from(groupLabel).length * 5.6,
|
|
542
|
-
height: 14,
|
|
543
|
-
};
|
|
544
|
-
const points = rendered.receipt.edges.find(({ id }) => id === 'ab').points;
|
|
545
|
-
for (let index = 0; index < points.length - 1; index += 1) {
|
|
546
|
-
assert.equal(
|
|
547
|
-
orthogonalSegmentIntersectsRect(points[index], points[index + 1], groupLabelRect),
|
|
548
|
-
false,
|
|
549
|
-
`edge ab segment ${index} must clear the group label: ${JSON.stringify(points)}`,
|
|
550
|
-
);
|
|
551
|
-
}
|
|
552
|
-
});
|
|
553
|
-
|
|
554
|
-
test('readable-v2 shifts top-side routes beyond lane header text deterministically', () => {
|
|
555
|
-
const makeDocument = (topLaneLabel) => ({
|
|
556
|
-
schema_version: 2,
|
|
557
|
-
diagram_type: 'workflow',
|
|
558
|
-
meta: { title: 'Lane header route obstacle', legend: { mode: 'hidden' } },
|
|
559
|
-
lanes: [
|
|
560
|
-
{ id: 'top', label: topLaneLabel },
|
|
561
|
-
{ id: 'bottom', label: 'Bottom' },
|
|
562
|
-
],
|
|
563
|
-
nodes: [
|
|
564
|
-
{ id: 'a', lane: 'top', col: 0, type: 'backend', label: 'A' },
|
|
565
|
-
{ id: 'b', lane: 'bottom', col: 4, type: 'database', label: 'B' },
|
|
566
|
-
],
|
|
567
|
-
edges: [{
|
|
568
|
-
id: 'ab', from: 'a', to: 'b', fromSide: 'top', toSide: 'top',
|
|
569
|
-
}],
|
|
570
|
-
});
|
|
571
|
-
|
|
572
|
-
const compiled = new Map();
|
|
573
|
-
for (const label of ['Responsibility owner', 'R']) {
|
|
574
|
-
const first = compileSuccessfully(makeDocument(label), 'showcase');
|
|
575
|
-
const second = compileSuccessfully(makeDocument(label), 'showcase');
|
|
576
|
-
assert.deepEqual(second, first, `${label}: repeated compilation must be deterministic`);
|
|
577
|
-
|
|
578
|
-
const points = first.receipt.edges.find(({ id }) => id === 'ab').points;
|
|
579
|
-
const headerRect = asciiLaneHeaderTextRect(label);
|
|
580
|
-
for (let index = 0; index < points.length - 1; index += 1) {
|
|
581
|
-
assert.equal(
|
|
582
|
-
orthogonalSegmentIntersectsRect(points[index], points[index + 1], headerRect),
|
|
583
|
-
false,
|
|
584
|
-
`${label}: edge ab segment ${index} must clear the top lane header: ${JSON.stringify(points)}`,
|
|
585
|
-
);
|
|
586
|
-
}
|
|
587
|
-
compiled.set(label, first);
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
assert.ok(
|
|
591
|
-
compiled.get('Responsibility owner').receipt.columns[0]
|
|
592
|
-
> compiled.get('R').receipt.columns[0],
|
|
593
|
-
'the wider lane header must move the col-0 top-side corridor farther right',
|
|
594
|
-
);
|
|
595
|
-
});
|
|
596
|
-
|
|
597
|
-
test('explicit viewBox width is containment capacity and never stretches readable-v2 geometry', () => {
|
|
598
|
-
for (const qualityProfile of ['standard', 'showcase']) {
|
|
599
|
-
for (let fromCol = 0; fromCol < 5; fromCol += 1) {
|
|
600
|
-
const intrinsic = compileSuccessfully(adjacentWorkflow({
|
|
601
|
-
fromCol,
|
|
602
|
-
label: 'liga',
|
|
603
|
-
}), qualityProfile);
|
|
604
|
-
const expectedGeometry = {
|
|
605
|
-
columns: intrinsic.receipt.columns,
|
|
606
|
-
source: nodeRect(intrinsic.svg, 'a'),
|
|
607
|
-
target: nodeRect(intrinsic.svg, 'b'),
|
|
608
|
-
edge: edgePoints(intrinsic.svg, 'ab'),
|
|
609
|
-
};
|
|
610
|
-
|
|
611
|
-
for (const width of [900, 1080, 1400, 1600]) {
|
|
612
|
-
const result = compileSuccessfully(adjacentWorkflow({
|
|
613
|
-
fromCol,
|
|
614
|
-
label: 'liga',
|
|
615
|
-
viewBox: [width, 420],
|
|
616
|
-
}), qualityProfile);
|
|
617
|
-
assert.deepEqual(result.receipt.viewBox, [width, 420]);
|
|
618
|
-
assert.deepEqual(svgViewBox(result.svg), [0, 0, width, 420]);
|
|
619
|
-
assert.deepEqual(result.receipt.requiredViewBox, intrinsic.receipt.requiredViewBox);
|
|
620
|
-
assert.deepEqual(result.receipt.columns, expectedGeometry.columns);
|
|
621
|
-
assert.deepEqual(nodeRect(result.svg, 'a'), expectedGeometry.source);
|
|
622
|
-
assert.deepEqual(nodeRect(result.svg, 'b'), expectedGeometry.target);
|
|
623
|
-
assert.deepEqual(edgePoints(result.svg, 'ab'), expectedGeometry.edge);
|
|
624
|
-
assertReadableAdjacentResult(result, { label: 'liga' });
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
});
|
|
629
|
-
|
|
630
|
-
test('capacity-only viewBox failures preserve the intrinsic routes, labels, and requirement', () => {
|
|
631
|
-
const document = {
|
|
632
|
-
schema_version: 2,
|
|
633
|
-
diagram_type: 'workflow',
|
|
634
|
-
meta: { title: 'capacity', legend: { mode: 'hidden' } },
|
|
635
|
-
lanes: [{ id: 'top', label: 'Top' }, { id: 'bottom', label: 'Bottom' }],
|
|
636
|
-
nodes: [
|
|
637
|
-
{ id: 'n0', lane: 'top', col: 0, type: 'backend', label: 'N0' },
|
|
638
|
-
{ id: 'n1', lane: 'bottom', col: 1, type: 'backend', label: 'N1' },
|
|
639
|
-
{ id: 'n2', lane: 'top', col: 1, type: 'database', label: 'N2' },
|
|
640
|
-
{ id: 'n3', lane: 'bottom', col: 3, type: 'database', label: 'N3' },
|
|
641
|
-
],
|
|
642
|
-
edges: [
|
|
643
|
-
{ id: 'e0', from: 'n3', to: 'n0' },
|
|
644
|
-
{
|
|
645
|
-
id: 'e1',
|
|
646
|
-
from: 'n1',
|
|
647
|
-
to: 'n2',
|
|
648
|
-
label: 'ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ',
|
|
649
|
-
},
|
|
650
|
-
],
|
|
651
|
-
};
|
|
652
|
-
const intrinsic = compileSuccessfully(clone(document), 'showcase');
|
|
653
|
-
|
|
654
|
-
const insufficientDocument = clone(document);
|
|
655
|
-
insufficientDocument.meta.viewBox = [900, 1000];
|
|
656
|
-
const insufficient = compileWorkflow({
|
|
657
|
-
workflow: insufficientDocument,
|
|
658
|
-
qualityProfile: 'showcase',
|
|
659
|
-
});
|
|
660
|
-
assert.equal(insufficient.ok, false);
|
|
661
|
-
assert.equal(insufficient.svg, undefined);
|
|
662
|
-
assert.equal(insufficient.diagnostics.length, 1, JSON.stringify(insufficient.diagnostics, null, 2));
|
|
663
|
-
const [capacity] = insufficient.diagnostics;
|
|
664
|
-
assert.equal(capacity.code, 'workflow/viewbox-capacity');
|
|
665
|
-
assert.deepEqual(capacity.evidence.actualViewBox, [900, 1000]);
|
|
666
|
-
assert.deepEqual(capacity.evidence.requiredViewBox, intrinsic.receipt.requiredViewBox);
|
|
667
|
-
|
|
668
|
-
const sufficientDocument = clone(document);
|
|
669
|
-
sufficientDocument.meta.viewBox = [intrinsic.receipt.requiredViewBox[0], 1000];
|
|
670
|
-
const sufficient = compileSuccessfully(sufficientDocument, 'showcase');
|
|
671
|
-
assert.deepEqual(sufficient.receipt.requiredViewBox, intrinsic.receipt.requiredViewBox);
|
|
672
|
-
assert.deepEqual(sufficient.receipt.edges, intrinsic.receipt.edges);
|
|
673
|
-
assert.deepEqual(sufficient.receipt.labels, intrinsic.receipt.labels);
|
|
674
|
-
});
|
|
675
|
-
|
|
676
|
-
test('explicit viewBox capacity names the rank and label constraints that require more width', () => {
|
|
677
|
-
const result = compileWorkflow({
|
|
678
|
-
workflow: adjacentWorkflow({ fromCol: 1, label: 'liga', viewBox: [700, 420] }),
|
|
679
|
-
qualityProfile: 'showcase',
|
|
680
|
-
});
|
|
681
|
-
assert.equal(result.ok, false);
|
|
682
|
-
const diagnostic = result.diagnostics.find(({ code }) => code === 'workflow/viewbox-capacity');
|
|
683
|
-
assert.ok(diagnostic, JSON.stringify(result.diagnostics, null, 2));
|
|
684
|
-
assert.ok(diagnostic.evidence.contributors.includes('rank 1→2 direct clearance'));
|
|
685
|
-
assert.ok(diagnostic.evidence.contributors.includes('edge ab label mask'));
|
|
686
|
-
});
|
|
687
|
-
|
|
688
|
-
test('explicit viewBox capacity names the rank and authored node widths that require more width', () => {
|
|
689
|
-
const result = compileWorkflow({
|
|
690
|
-
workflow: adjacentWorkflow({
|
|
691
|
-
fromCol: 1,
|
|
692
|
-
widths: [240, 240],
|
|
693
|
-
viewBox: [700, 420],
|
|
694
|
-
}),
|
|
695
|
-
qualityProfile: 'showcase',
|
|
696
|
-
});
|
|
697
|
-
assert.equal(result.ok, false);
|
|
698
|
-
const diagnostic = result.diagnostics.find(({ code }) => code === 'workflow/viewbox-capacity');
|
|
699
|
-
assert.ok(diagnostic, JSON.stringify(result.diagnostics, null, 2));
|
|
700
|
-
const contributors = diagnostic.evidence.contributors;
|
|
701
|
-
assert.ok(
|
|
702
|
-
contributors.some((contributor) => /rank 1→2/i.test(contributor) && /clearance/i.test(contributor)),
|
|
703
|
-
`contributors must name the rank 1→2 width constraint: ${JSON.stringify(contributors)}`,
|
|
704
|
-
);
|
|
705
|
-
for (const nodeId of ['a', 'b']) {
|
|
706
|
-
assert.ok(
|
|
707
|
-
contributors.some((contributor) => (
|
|
708
|
-
new RegExp(`node ${nodeId}\\b`, 'i').test(contributor) && /width/i.test(contributor)
|
|
709
|
-
)),
|
|
710
|
-
`contributors must name node ${nodeId}'s authored width: ${JSON.stringify(contributors)}`,
|
|
711
|
-
);
|
|
712
|
-
}
|
|
713
|
-
});
|
|
714
|
-
|
|
715
|
-
test('explicit viewBox height capacity names the authored tall node without naming a hidden legend', () => {
|
|
716
|
-
const result = compileWorkflow({
|
|
717
|
-
workflow: {
|
|
718
|
-
schema_version: 2,
|
|
719
|
-
diagram_type: 'workflow',
|
|
720
|
-
meta: {
|
|
721
|
-
title: 'Tall node height capacity',
|
|
722
|
-
legend: { mode: 'hidden' },
|
|
723
|
-
viewBox: [1200, 280],
|
|
724
|
-
},
|
|
725
|
-
lanes: [{ id: 'main', label: 'M' }],
|
|
726
|
-
nodes: [{
|
|
727
|
-
id: 'tall', lane: 'main', col: 0, type: 'backend', label: 'Tall', height: 160,
|
|
728
|
-
}],
|
|
729
|
-
edges: [],
|
|
730
|
-
},
|
|
731
|
-
qualityProfile: 'showcase',
|
|
732
|
-
});
|
|
733
|
-
|
|
734
|
-
assert.equal(result.ok, false);
|
|
735
|
-
assert.equal(result.svg, undefined);
|
|
736
|
-
assert.equal(result.diagnostics.length, 1, JSON.stringify(result.diagnostics, null, 2));
|
|
737
|
-
const [diagnostic] = result.diagnostics;
|
|
738
|
-
assert.equal(diagnostic.code, 'workflow/viewbox-capacity');
|
|
739
|
-
assert.deepEqual(diagnostic.evidence.actualViewBox, [1200, 280]);
|
|
740
|
-
assert.equal(diagnostic.evidence.requiredViewBox[1], 374);
|
|
741
|
-
const contributors = diagnostic.evidence.contributors;
|
|
742
|
-
assert.ok(
|
|
743
|
-
contributors.some((contributor) => (
|
|
744
|
-
/node tall\b/i.test(contributor)
|
|
745
|
-
&& /height/i.test(contributor)
|
|
746
|
-
&& /160px/i.test(contributor)
|
|
747
|
-
)),
|
|
748
|
-
`contributors must name tall's authored 160px height: ${JSON.stringify(contributors)}`,
|
|
749
|
-
);
|
|
750
|
-
assert.equal(
|
|
751
|
-
contributors.some((contributor) => /legend/i.test(contributor)),
|
|
752
|
-
false,
|
|
753
|
-
`a hidden legend must not be named as a height contributor: ${JSON.stringify(contributors)}`,
|
|
754
|
-
);
|
|
755
|
-
});
|
|
756
|
-
|
|
757
|
-
test('readable-v2 measures asymmetric custom widths and CJK edge labels', () => {
|
|
758
|
-
const cases = [
|
|
759
|
-
{ widths: [32, 92], label: '同步', nodeLabels: ['甲', '乙'] },
|
|
760
|
-
{ widths: [102, 124], label: '資料 ready', nodeLabels: ['入口', '出口'] },
|
|
761
|
-
{ widths: [132, 160], label: '审批通过', nodeLabels: ['请求', '执行'] },
|
|
762
|
-
{ widths: [92, 240], label: '结果 ✅ 回传', nodeLabels: ['工具', '外部服务'] },
|
|
763
|
-
];
|
|
764
|
-
|
|
765
|
-
for (const current of cases) {
|
|
766
|
-
const result = compileSuccessfully(adjacentWorkflow({
|
|
767
|
-
fromCol: 1,
|
|
768
|
-
label: current.label,
|
|
769
|
-
widths: current.widths,
|
|
770
|
-
nodeLabels: current.nodeLabels,
|
|
771
|
-
viewBox: [1600, 420],
|
|
772
|
-
}), 'showcase');
|
|
773
|
-
assertReadableAdjacentResult(result, current);
|
|
774
|
-
}
|
|
775
|
-
});
|
|
776
|
-
|
|
777
|
-
test('readable-v2 compares long-label gutter growth with a legal automatic channel', () => {
|
|
778
|
-
const automaticDocument = adjacentWorkflow({
|
|
779
|
-
fromCol: 3,
|
|
780
|
-
label: 'L'.repeat(80),
|
|
781
|
-
});
|
|
782
|
-
const automatic = compileSuccessfully(automaticDocument, 'showcase');
|
|
783
|
-
const forcedStraightDocument = clone(automaticDocument);
|
|
784
|
-
forcedStraightDocument.edges[0].route = 'straight';
|
|
785
|
-
const forcedStraight = compileSuccessfully(forcedStraightDocument, 'showcase');
|
|
786
|
-
|
|
787
|
-
assert.ok(edgePoints(automatic.svg, 'ab').length > 2, 'the compact plan must use a legal channel');
|
|
788
|
-
assert.ok(
|
|
789
|
-
automatic.receipt.requiredViewBox[0] < forcedStraight.receipt.requiredViewBox[0],
|
|
790
|
-
'the selected channel must require less canvas than forcing the direct gutter',
|
|
791
|
-
);
|
|
792
|
-
assertRectInsideViewBox(
|
|
793
|
-
edgeLabelRect(automatic.svg, 'ab'),
|
|
794
|
-
svgViewBox(automatic.svg),
|
|
795
|
-
'long automatic edge label',
|
|
796
|
-
);
|
|
797
|
-
|
|
798
|
-
const leftRankDocument = adjacentWorkflow({ fromCol: 0, label: 'X'.repeat(100) });
|
|
799
|
-
const leftRank = compileSuccessfully(leftRankDocument, 'showcase');
|
|
800
|
-
assertRectInsideViewBox(
|
|
801
|
-
edgeLabelRect(leftRank.svg, 'ab'),
|
|
802
|
-
svgViewBox(leftRank.svg),
|
|
803
|
-
'left-rank long automatic edge label',
|
|
804
|
-
);
|
|
805
|
-
});
|
|
806
|
-
|
|
807
|
-
test('readable-v2 property matrix satisfies every adjacent rank across supported representative widths', () => {
|
|
808
|
-
const widths = [32, 92, 102, 124, 132, 160, 240];
|
|
809
|
-
for (let fromCol = 0; fromCol < 5; fromCol += 1) {
|
|
810
|
-
for (const sourceWidth of widths) {
|
|
811
|
-
for (const targetWidth of widths) {
|
|
812
|
-
const result = compileSuccessfully(adjacentWorkflow({
|
|
813
|
-
fromCol,
|
|
814
|
-
label: '同步 ✅',
|
|
815
|
-
widths: [sourceWidth, targetWidth],
|
|
816
|
-
}), 'showcase');
|
|
817
|
-
assertReadableAdjacentResult(result, {
|
|
818
|
-
label: '同步 ✅',
|
|
819
|
-
widths: [sourceWidth, targetWidth],
|
|
820
|
-
});
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
}
|
|
824
|
-
});
|
|
825
|
-
|
|
826
|
-
test('readable-v2 expands rank spans for measured phase and group label capacity', () => {
|
|
827
|
-
const workflow = adjacentWorkflow({ fromCol: 0, frames: true });
|
|
828
|
-
workflow.phases[0].label = 'P'.repeat(50);
|
|
829
|
-
workflow.groups[0].label = 'G'.repeat(50);
|
|
830
|
-
|
|
831
|
-
const result = compileSuccessfully(workflow, 'showcase');
|
|
832
|
-
assert.ok(result.receipt.columns[1] - result.receipt.columns[0] > 120);
|
|
833
|
-
assertReadableAdjacentResult(result);
|
|
834
|
-
});
|
|
835
|
-
|
|
836
|
-
test('readable-v2 contains a long single-rank group label in its frame and intrinsic canvas', () => {
|
|
837
|
-
const workflow = {
|
|
838
|
-
schema_version: 2,
|
|
839
|
-
diagram_type: 'workflow',
|
|
840
|
-
meta: { title: 'Single-rank group capacity', legend: { mode: 'hidden' } },
|
|
841
|
-
lanes: [{ id: 'main', label: 'Main' }],
|
|
842
|
-
groups: [{
|
|
843
|
-
id: 'long-group',
|
|
844
|
-
label: 'X'.repeat(120),
|
|
845
|
-
lane: 'main',
|
|
846
|
-
fromCol: 5,
|
|
847
|
-
toCol: 5,
|
|
848
|
-
}],
|
|
849
|
-
nodes: [
|
|
850
|
-
{ id: 'outside', lane: 'main', col: 2, type: 'database', label: 'Outside' },
|
|
851
|
-
{ id: 'node', lane: 'main', col: 5, type: 'backend', label: 'Node' },
|
|
852
|
-
],
|
|
853
|
-
edges: [],
|
|
854
|
-
};
|
|
855
|
-
|
|
856
|
-
const result = compileSuccessfully(workflow, 'showcase');
|
|
857
|
-
assert.ok(result.receipt.requiredViewBox[0] > 768);
|
|
858
|
-
const groupAttributes = result.svg.match(
|
|
859
|
-
/<rect\b(?=[^>]*data-composition-frame-id="group-0")[^>]*\b(x="[^"]+"[^>]*)\/>/,
|
|
860
|
-
)?.[1];
|
|
861
|
-
assert.ok(groupAttributes);
|
|
862
|
-
const group = numericRect(groupAttributes);
|
|
863
|
-
assert.ok(group.width >= 120 * 5.6 + 20, `group width ${group.width} must contain its label`);
|
|
864
|
-
const outside = nodeRect(result.svg, 'outside');
|
|
865
|
-
assert.ok(group.x >= outside.x + outside.width, 'single-rank group must not cover an unrelated rank');
|
|
866
|
-
const labelBaseline = Number(result.svg.match(/<text\b[^>]*\by="([^"]+)"[^>]*>X{120}<\/text>/)?.[1]);
|
|
867
|
-
assert.ok(labelBaseline <= nodeRect(result.svg, 'node').y - 4, 'group label must remain above its node');
|
|
868
|
-
});
|
|
869
|
-
|
|
870
|
-
test('readable-v2 group frames contain custom-width member rectangles on every side', () => {
|
|
871
|
-
const workflow = {
|
|
872
|
-
schema_version: 2,
|
|
873
|
-
diagram_type: 'workflow',
|
|
874
|
-
meta: { title: 'Wide group member', legend: { mode: 'hidden' } },
|
|
875
|
-
lanes: [{ id: 'main', label: 'Main' }],
|
|
876
|
-
groups: [{ id: 'group', label: 'G', lane: 'main', fromCol: 2, toCol: 2 }],
|
|
877
|
-
nodes: [{
|
|
878
|
-
id: 'wide', lane: 'main', col: 2, type: 'backend', label: 'Wide', width: 240,
|
|
879
|
-
}],
|
|
880
|
-
edges: [],
|
|
881
|
-
};
|
|
882
|
-
|
|
883
|
-
const result = compileSuccessfully(workflow, 'showcase');
|
|
884
|
-
assertRectInsideRect(
|
|
885
|
-
nodeRect(result.svg, 'wide'),
|
|
886
|
-
groupFrameRect(result.svg),
|
|
887
|
-
'custom-width group member',
|
|
888
|
-
);
|
|
889
|
-
});
|
|
890
|
-
|
|
891
|
-
test('readable-v2 group frames contain tagged and tall members away from the label rail', () => {
|
|
892
|
-
const cases = [
|
|
893
|
-
['tagged member', { tag: 'TAG' }],
|
|
894
|
-
['120px-tall member', { height: 120 }],
|
|
895
|
-
];
|
|
896
|
-
|
|
897
|
-
for (const [description, authoredGeometry] of cases) {
|
|
898
|
-
const workflow = {
|
|
899
|
-
schema_version: 2,
|
|
900
|
-
diagram_type: 'workflow',
|
|
901
|
-
meta: { title: description, legend: { mode: 'hidden' } },
|
|
902
|
-
lanes: [{ id: 'main', label: 'Main' }],
|
|
903
|
-
groups: [{ id: 'group', label: 'G', lane: 'main', fromCol: 0, toCol: 1 }],
|
|
904
|
-
nodes: [{
|
|
905
|
-
id: 'member',
|
|
906
|
-
lane: 'main',
|
|
907
|
-
col: 1,
|
|
908
|
-
type: 'backend',
|
|
909
|
-
label: 'Member',
|
|
910
|
-
...authoredGeometry,
|
|
911
|
-
}],
|
|
912
|
-
edges: [],
|
|
913
|
-
};
|
|
914
|
-
|
|
915
|
-
const result = compileSuccessfully(workflow, 'showcase');
|
|
916
|
-
const member = nodeRect(result.svg, 'member');
|
|
917
|
-
const groupLabel = asciiGroupLabelTextRect(result.svg, 'G');
|
|
918
|
-
assert.ok(
|
|
919
|
-
member.x >= groupLabel.x + groupLabel.width,
|
|
920
|
-
`${description}: fixture must keep the member horizontally clear of its group label`,
|
|
921
|
-
);
|
|
922
|
-
assertRectInsideRect(member, groupFrameRect(result.svg), description);
|
|
923
|
-
}
|
|
924
|
-
});
|
|
925
|
-
|
|
926
|
-
test('readable-v2 keeps a first-rank group label mask clear of its lane header mask', () => {
|
|
927
|
-
const workflow = {
|
|
928
|
-
schema_version: 2,
|
|
929
|
-
diagram_type: 'workflow',
|
|
930
|
-
meta: { title: 'First-rank group labels', legend: { mode: 'hidden' } },
|
|
931
|
-
lanes: [{ id: 'main', label: 'Main' }],
|
|
932
|
-
groups: [{ id: 'group', label: 'G', lane: 'main', fromCol: 0, toCol: 0 }],
|
|
933
|
-
nodes: [{ id: 'member', lane: 'main', col: 0, type: 'backend', label: 'Member' }],
|
|
934
|
-
edges: [],
|
|
935
|
-
};
|
|
936
|
-
|
|
937
|
-
const result = compileSuccessfully(workflow, 'showcase');
|
|
938
|
-
const laneHeader = asciiLaneHeaderTextRect('Main');
|
|
939
|
-
const groupLabel = asciiGroupLabelTextRect(result.svg, 'G');
|
|
940
|
-
assert.equal(
|
|
941
|
-
rectsOverlap(laneHeader, groupLabel),
|
|
942
|
-
false,
|
|
943
|
-
`lane header ${JSON.stringify(laneHeader)} must not overlap group label ${JSON.stringify(groupLabel)}`,
|
|
944
|
-
);
|
|
945
|
-
});
|
|
946
|
-
|
|
947
|
-
test('readable-v2 measures multi-row legends into intrinsic and explicit viewBox capacity', () => {
|
|
948
|
-
const workflow = adjacentWorkflow({ fromCol: 0 });
|
|
949
|
-
workflow.meta.legend = {
|
|
950
|
-
mode: 'all',
|
|
951
|
-
entries: Object.fromEntries([
|
|
952
|
-
'frontend', 'backend', 'security', 'messagebus', 'database', 'cloud', 'external',
|
|
953
|
-
].map((kind) => [kind, { label: `${kind} contract evidence` }])),
|
|
954
|
-
};
|
|
955
|
-
const hiddenDocument = clone(workflow);
|
|
956
|
-
hiddenDocument.meta.legend = { mode: 'hidden' };
|
|
957
|
-
const hidden = compileSuccessfully(hiddenDocument, 'showcase');
|
|
958
|
-
const intrinsic = compileSuccessfully(workflow, 'showcase');
|
|
959
|
-
assert.ok(intrinsic.receipt.requiredViewBox[1] > hidden.receipt.requiredViewBox[1]);
|
|
960
|
-
|
|
961
|
-
const tooShortDocument = clone(workflow);
|
|
962
|
-
tooShortDocument.meta.viewBox = [
|
|
963
|
-
intrinsic.receipt.requiredViewBox[0],
|
|
964
|
-
hidden.receipt.requiredViewBox[1],
|
|
965
|
-
];
|
|
966
|
-
const tooShort = compileWorkflow({ workflow: tooShortDocument, qualityProfile: 'showcase' });
|
|
967
|
-
assert.equal(tooShort.ok, false);
|
|
968
|
-
assert.ok(tooShort.diagnostics.some(({ code }) => code === 'workflow/viewbox-capacity'));
|
|
969
|
-
|
|
970
|
-
const sufficientDocument = clone(workflow);
|
|
971
|
-
sufficientDocument.meta.viewBox = [...intrinsic.receipt.requiredViewBox];
|
|
972
|
-
const sufficient = compileSuccessfully(sufficientDocument, 'showcase');
|
|
973
|
-
assert.deepEqual(sufficient.receipt.viewBox, intrinsic.receipt.requiredViewBox);
|
|
974
|
-
|
|
975
|
-
const expectedGeometry = {
|
|
976
|
-
requiredViewBox: intrinsic.receipt.requiredViewBox,
|
|
977
|
-
columns: intrinsic.receipt.columns,
|
|
978
|
-
nodes: intrinsic.receipt.nodes,
|
|
979
|
-
edges: intrinsic.receipt.edges,
|
|
980
|
-
labels: intrinsic.receipt.labels,
|
|
981
|
-
legend: legendGeometry(intrinsic.svg),
|
|
982
|
-
};
|
|
983
|
-
for (const width of [900, 1400]) {
|
|
984
|
-
const explicitDocument = clone(workflow);
|
|
985
|
-
explicitDocument.meta.viewBox = [width, 1000];
|
|
986
|
-
const explicit = compileSuccessfully(explicitDocument, 'showcase');
|
|
987
|
-
assert.deepEqual(explicit.receipt.requiredViewBox, expectedGeometry.requiredViewBox);
|
|
988
|
-
assert.deepEqual(explicit.receipt.columns, expectedGeometry.columns);
|
|
989
|
-
assert.deepEqual(explicit.receipt.nodes, expectedGeometry.nodes);
|
|
990
|
-
assert.deepEqual(explicit.receipt.edges, expectedGeometry.edges);
|
|
991
|
-
assert.deepEqual(explicit.receipt.labels, expectedGeometry.labels);
|
|
992
|
-
assert.deepEqual(legendGeometry(explicit.svg), expectedGeometry.legend);
|
|
993
|
-
}
|
|
994
|
-
});
|
|
995
|
-
|
|
996
|
-
test('a wide node in an unrelated lane does not expand the adjacent-rank gap', () => {
|
|
997
|
-
const baselineDocument = adjacentWorkflow({
|
|
998
|
-
fromCol: 1,
|
|
999
|
-
label: 'liga',
|
|
1000
|
-
viewBox: [1600, 520],
|
|
1001
|
-
});
|
|
1002
|
-
baselineDocument.lanes.push({ id: 'other', label: 'Other' });
|
|
1003
|
-
const baseline = compileSuccessfully(baselineDocument, 'showcase');
|
|
1004
|
-
|
|
1005
|
-
const withUnrelatedWideNode = clone(baselineDocument);
|
|
1006
|
-
withUnrelatedWideNode.nodes.push({
|
|
1007
|
-
id: 'wide', lane: 'other', col: 1, type: 'database', label: 'Wide', width: 240,
|
|
1008
|
-
});
|
|
1009
|
-
const widened = compileSuccessfully(withUnrelatedWideNode, 'showcase');
|
|
1010
|
-
|
|
1011
|
-
assert.equal(
|
|
1012
|
-
widened.receipt.columns[2] - widened.receipt.columns[1],
|
|
1013
|
-
baseline.receipt.columns[2] - baseline.receipt.columns[1],
|
|
1014
|
-
);
|
|
1015
|
-
});
|
|
1016
|
-
|
|
1017
|
-
test('explicit labelAt participates in readable-v2 viewBox containment', () => {
|
|
1018
|
-
const workflow = adjacentWorkflow({
|
|
1019
|
-
fromCol: 0,
|
|
1020
|
-
label: 'outside',
|
|
1021
|
-
viewBox: [900, 420],
|
|
1022
|
-
});
|
|
1023
|
-
workflow.nodes[1].col = 5;
|
|
1024
|
-
workflow.edges[0].labelAt = [563, 539];
|
|
1025
|
-
|
|
1026
|
-
const result = compileWorkflow({ workflow, qualityProfile: 'showcase' });
|
|
1027
|
-
assert.equal(result.ok, false);
|
|
1028
|
-
assert.equal(result.diagnostics.length, 1, JSON.stringify(result.diagnostics, null, 2));
|
|
1029
|
-
const [diagnostic] = result.diagnostics;
|
|
1030
|
-
assert.equal(diagnostic.code, 'workflow/viewbox-capacity');
|
|
1031
|
-
assert.deepEqual(diagnostic.evidence.actualViewBox, [900, 420]);
|
|
1032
|
-
assert.ok(diagnostic.evidence.requiredViewBox[1] > 420);
|
|
1033
|
-
assert.ok(
|
|
1034
|
-
diagnostic.evidence.contributors.some((contributor) => /edge ab label/i.test(contributor)),
|
|
1035
|
-
JSON.stringify(diagnostic.evidence.contributors),
|
|
1036
|
-
);
|
|
1037
|
-
assert.doesNotMatch(diagnostic.supportedFixes.join('\n'), /drop|remove (?:the )?label|unlabel/i);
|
|
1038
|
-
});
|
|
1039
|
-
|
|
1040
|
-
test('sanitized downstream fixtures cover labels, explicit routes, custom widths, and explicit viewBoxes', () => {
|
|
1041
|
-
const fixtureRoot = path.join(__dirname, 'fixtures', 'issue-126');
|
|
1042
|
-
|
|
1043
|
-
const labels = compileSuccessfully(readJson(path.join(fixtureRoot, 'labels.workflow.json')), 'showcase');
|
|
1044
|
-
assertRectInsideViewBox(
|
|
1045
|
-
edgeLabelRect(labels.svg, 'request-result'),
|
|
1046
|
-
svgViewBox(labels.svg),
|
|
1047
|
-
'sanitized semantic label',
|
|
1048
|
-
);
|
|
1049
|
-
|
|
1050
|
-
const explicitRoute = compileSuccessfully(
|
|
1051
|
-
readJson(path.join(fixtureRoot, 'explicit-route.workflow.json')),
|
|
1052
|
-
'showcase',
|
|
1053
|
-
);
|
|
1054
|
-
assert.ok(
|
|
1055
|
-
edgePoints(explicitRoute.svg, 'producer-consumer').some(([x]) => x === 720),
|
|
1056
|
-
'the authored channelX pin must remain exact',
|
|
1057
|
-
);
|
|
1058
|
-
|
|
1059
|
-
const customWidths = compileSuccessfully(
|
|
1060
|
-
readJson(path.join(fixtureRoot, 'custom-widths.workflow.json')),
|
|
1061
|
-
'showcase',
|
|
1062
|
-
);
|
|
1063
|
-
assert.equal(nodeRect(customWidths.svg, 'compact').width, 32);
|
|
1064
|
-
assert.equal(nodeRect(customWidths.svg, 'wide').width, 240);
|
|
1065
|
-
|
|
1066
|
-
const explicitViewBox = compileSuccessfully(
|
|
1067
|
-
readJson(path.join(fixtureRoot, 'explicit-viewbox.workflow.json')),
|
|
1068
|
-
'showcase',
|
|
1069
|
-
);
|
|
1070
|
-
assert.deepEqual(explicitViewBox.receipt.viewBox, [1600, 520]);
|
|
1071
|
-
});
|
|
1072
|
-
|
|
1073
|
-
test('readable-v2 SVG and receipt bytes are deterministic across repeated and reordered input', () => {
|
|
1074
|
-
const workflow = {
|
|
1075
|
-
schema_version: 2,
|
|
1076
|
-
diagram_type: 'workflow',
|
|
1077
|
-
meta: { title: 'Deterministic workflow', legend: { mode: 'hidden' } },
|
|
1078
|
-
lanes: [{ id: 'main', label: 'Main' }],
|
|
1079
|
-
nodes: [
|
|
1080
|
-
{ id: 'a', lane: 'main', col: 0, type: 'frontend', label: 'A' },
|
|
1081
|
-
{ id: 'b', lane: 'main', col: 2, type: 'backend', label: 'B' },
|
|
1082
|
-
{ id: 'c', lane: 'main', col: 4, type: 'database', label: 'C' },
|
|
1083
|
-
],
|
|
1084
|
-
edges: [
|
|
1085
|
-
{ id: 'ab', from: 'a', to: 'b', label: 'one' },
|
|
1086
|
-
{ id: 'bc', from: 'b', to: 'c', label: 'two' },
|
|
1087
|
-
],
|
|
1088
|
-
};
|
|
1089
|
-
|
|
1090
|
-
const first = compileSuccessfully(clone(workflow), 'showcase');
|
|
1091
|
-
for (let iteration = 0; iteration < 3; iteration += 1) {
|
|
1092
|
-
const repeated = compileSuccessfully(clone(workflow), 'showcase');
|
|
1093
|
-
assert.equal(repeated.svg, first.svg);
|
|
1094
|
-
assert.equal(JSON.stringify(repeated.receipt), JSON.stringify(first.receipt));
|
|
1095
|
-
}
|
|
1096
|
-
|
|
1097
|
-
const reordered = clone(workflow);
|
|
1098
|
-
reordered.nodes.reverse();
|
|
1099
|
-
reordered.edges.reverse();
|
|
1100
|
-
const reorderedResult = compileSuccessfully(reordered, 'showcase');
|
|
1101
|
-
assert.equal(reorderedResult.svg, first.svg);
|
|
1102
|
-
assert.equal(JSON.stringify(reorderedResult.receipt), JSON.stringify(first.receipt));
|
|
1103
|
-
});
|
|
1104
|
-
|
|
1105
|
-
test('CLI validate workflow --layout-json prints the stable compiler receipt', () => {
|
|
1106
|
-
const input = path.join(tmp, 'layout-json.workflow.json');
|
|
1107
|
-
fs.writeFileSync(input, JSON.stringify(adjacentWorkflow({
|
|
1108
|
-
fromCol: 3,
|
|
1109
|
-
label: 'liga',
|
|
1110
|
-
viewBox: [1080, 420],
|
|
1111
|
-
})));
|
|
1112
|
-
|
|
1113
|
-
const result = spawnSync(process.execPath, [
|
|
1114
|
-
cli,
|
|
1115
|
-
'validate',
|
|
1116
|
-
'workflow',
|
|
1117
|
-
input,
|
|
1118
|
-
'--layout-json',
|
|
1119
|
-
'--quality',
|
|
1120
|
-
'standard',
|
|
1121
|
-
], { encoding: 'utf8' });
|
|
1122
|
-
|
|
1123
|
-
assert.equal(result.status, 0, result.stderr);
|
|
1124
|
-
const receipt = JSON.parse(result.stdout);
|
|
1125
|
-
assert.equal(receipt.contract, 'readable-v2');
|
|
1126
|
-
assert.deepEqual(receipt.viewBox, [1080, 420]);
|
|
1127
|
-
assert.ok(Array.isArray(receipt.requiredViewBox));
|
|
1128
|
-
assert.equal(receipt.columns.length, 6);
|
|
1129
|
-
assert.deepEqual(receipt.diagnostics, []);
|
|
1130
|
-
});
|
|
1131
|
-
|
|
1132
|
-
test('CLI validate workflow --layout-json returns only the causal compiler failure receipt', () => {
|
|
1133
|
-
const input = path.join(tmp, 'layout-json-failure.workflow.json');
|
|
1134
|
-
fs.writeFileSync(input, JSON.stringify({
|
|
1135
|
-
schema_version: 1,
|
|
1136
|
-
diagram_type: 'workflow',
|
|
1137
|
-
meta: { title: 'Issue 126 failure receipt', legend: { mode: 'hidden' } },
|
|
1138
|
-
lanes: [{ id: 'main', label: 'Main' }],
|
|
1139
|
-
nodes: [
|
|
1140
|
-
{ id: 'a', lane: 'main', col: 1, type: 'backend', label: 'A' },
|
|
1141
|
-
{ id: 'b', lane: 'main', col: 2, type: 'backend', label: 'B' },
|
|
1142
|
-
],
|
|
1143
|
-
edges: [{ id: 'ab', from: 'a', to: 'b' }],
|
|
1144
|
-
}));
|
|
1145
|
-
|
|
1146
|
-
const result = spawnSync(process.execPath, [
|
|
1147
|
-
cli,
|
|
1148
|
-
'validate',
|
|
1149
|
-
'workflow',
|
|
1150
|
-
input,
|
|
1151
|
-
'--layout-json',
|
|
1152
|
-
'--json',
|
|
1153
|
-
], { encoding: 'utf8' });
|
|
1154
|
-
|
|
1155
|
-
assert.equal(result.status, 1);
|
|
1156
|
-
assert.equal(result.stderr, '');
|
|
1157
|
-
const receipt = JSON.parse(result.stdout);
|
|
1158
|
-
assert.equal(receipt.contract, 'fixed-v1');
|
|
1159
|
-
assert.equal(receipt.diagnostics.length, 1, JSON.stringify(receipt.diagnostics, null, 2));
|
|
1160
|
-
assert.equal(receipt.diagnostics[0].code, 'workflow/column-capacity');
|
|
1161
|
-
});
|
|
1162
|
-
|
|
1163
|
-
process.on('exit', () => fs.rmSync(tmp, { recursive: true, force: true }));
|