create-yss-spec 3.4.5 → 3.4.7
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/template/.agents/skills/.strategic-design-skills-manifest.json +1 -1
- package/template/.agents/skills/.yss-skills-manifest.json +1 -8
- package/template/.agents/skills/formily-mode-slot-detail/SKILL.md +3 -4
- package/template/.agents/skills/yedit-table-usage/SKILL.md +2 -0
- package/template/.agents/skills/yss-application/SKILL.md +8 -6
- package/template/.agents/skills/yss-audit-log/SKILL.md +12 -7
- package/template/.agents/skills/yss-audit-log/references/source-index.boot2-java8.md +57 -0
- package/template/.agents/skills/yss-audit-log/references/source-index.boot3-java17.md +58 -0
- package/template/.agents/skills/yss-audit-log/references/source-index.md +6 -39
- package/template/.agents/skills/yss-cache/SKILL.md +5 -1
- package/template/.agents/skills/yss-cache/references/source-index.boot2-java8.md +81 -0
- package/template/.agents/skills/yss-cache/references/source-index.boot3-java17.md +83 -0
- package/template/.agents/skills/yss-cache/references/source-index.md +6 -63
- package/template/.agents/skills/yss-cache/scripts/check-skill-freshness.sh +20 -15
- package/template/.agents/skills/yss-ddd-scaffold-generator/SKILL.md +2 -2
- package/template/{.cursor/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/SKILL.md → .agents/skills/yss-ddd-scaffold-generator/references/engineering-baseline.md} +0 -5
- package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/first-slice-verification.test.mjs +1 -1
- package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +2 -2
- package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/run_first_slice_verification.mjs +1 -3
- 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 +1 -1
- package/template/.agents/skills/yss-design-system/SKILL.md +2 -2
- package/template/.agents/skills/yss-distributed-id/SKILL.md +4 -0
- package/template/.agents/skills/yss-distributed-id/references/source-index.boot2-java8.md +102 -0
- package/template/.agents/skills/yss-distributed-id/references/source-index.boot3-java17.md +90 -0
- package/template/.agents/skills/yss-distributed-id/references/source-index.md +6 -82
- package/template/.agents/skills/yss-dto/SKILL.md +2 -2
- package/template/.agents/skills/yss-dto/references/source-index.boot2-java8.md +67 -0
- package/template/.agents/skills/yss-dto/references/source-index.boot3-java17.md +70 -0
- package/template/.agents/skills/yss-dto/references/source-index.md +6 -51
- package/template/.agents/skills/yss-excel-mvc/SKILL.md +4 -0
- package/template/.agents/skills/yss-excel-mvc/references/source-index.boot2-java8.md +90 -0
- package/template/.agents/skills/yss-excel-mvc/references/source-index.boot3-java17.md +58 -0
- package/template/.agents/skills/yss-excel-mvc/references/source-index.md +6 -70
- package/template/.agents/skills/yss-exception/SKILL.md +12 -9
- package/template/.agents/skills/yss-exception/references/source-index.boot2-java8.md +50 -0
- package/template/.agents/skills/yss-exception/references/source-index.boot3-java17.md +50 -0
- package/template/.agents/skills/yss-exception/references/source-index.md +6 -31
- package/template/.agents/skills/yss-formily/SKILL.md +2 -2
- package/template/.agents/skills/yss-frontend-scaffold-generator/SKILL.md +1 -1
- package/template/.agents/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/README.md +1 -1
- package/template/.agents/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/package.json +2 -2
- package/template/.agents/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/pnpm-lock.yaml +158 -0
- package/template/.agents/skills/yss-frontend-scaffold-generator/references/data-quality-v1.manifest.json +3 -3
- package/template/.agents/skills/yss-frontend-scaffold-generator/scripts/scaffold-generator.test.mjs +5 -0
- package/template/.agents/skills/yss-hook/SKILL.md +3 -2
- package/template/.agents/skills/yss-implementation-contract-compiler/SKILL.md +2 -0
- package/template/.agents/skills/yss-implementation-contract-compiler/references/boundaries.md +4 -6
- package/template/.agents/skills/yss-implementation-contract-compiler/references/compiler-contract.yaml +27 -2
- package/template/.agents/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +2 -1
- package/template/.agents/skills/yss-implementation-contract-compiler/tests/compiler-scenarios.test.mjs +60 -14
- package/template/.agents/skills/yss-layered-mvc-scaffold-generator/SKILL.md +6 -5
- package/template/.agents/skills/yss-layered-mvc-scaffold-generator/agents/openai.yaml +2 -2
- package/template/.agents/skills/yss-layered-mvc-scaffold-generator/references/architecture.md +2 -0
- package/template/.agents/skills/yss-layered-mvc-scaffold-generator/scripts/data-analysis-profile.mjs +82 -0
- package/template/.agents/skills/yss-layered-mvc-scaffold-generator/scripts/generate_scaffold.mjs +23 -9
- package/template/.agents/skills/yss-layered-mvc-scaffold-generator/scripts/scaffold-generator.test.mjs +23 -6
- package/template/.agents/skills/yss-layered-mvc-scaffold-generator/tests/scaffold-generator.test.mjs +2 -0
- package/template/.agents/skills/yss-mybatis/SKILL.md +2 -2
- package/template/.agents/skills/yss-mybatis/references/source-index.boot2-java8.md +126 -0
- package/template/.agents/skills/yss-mybatis/references/source-index.boot3-java17.md +126 -0
- package/template/.agents/skills/yss-mybatis/references/source-index.md +6 -109
- package/template/.agents/skills/yss-product-lifecycle/references/orchestration-contract.yaml +11 -11
- package/template/.agents/skills/yss-product-lifecycle/references/orchestration.md +2 -2
- package/template/.agents/skills/yss-repository/SKILL.md +1 -1
- package/template/.agents/skills/yss-resilience4j/SKILL.md +4 -0
- package/template/.agents/skills/yss-resilience4j/references/source-index.boot2-java8.md +48 -0
- package/template/.agents/skills/yss-resilience4j/references/source-index.boot3-java17.md +48 -0
- package/template/.agents/skills/yss-resilience4j/references/source-index.md +6 -29
- package/template/.agents/skills/yss-security-algorithm/SKILL.md +34 -10
- package/template/.agents/skills/yss-security-algorithm/references/source-index.boot2-java8.md +50 -0
- package/template/.agents/skills/yss-security-algorithm/references/source-index.boot3-java17.md +51 -0
- package/template/.agents/skills/yss-security-algorithm/references/source-index.md +6 -31
- package/template/.agents/skills/yss-skill-source-index-refresh/SKILL.md +12 -6
- package/template/.agents/skills/yss-skill-source-index-refresh/references/backend-component-platform-compatibility.md +27 -0
- package/template/.agents/skills/yss-skill-source-index-refresh/references/source-location.md +4 -4
- package/template/.agents/skills/yss-skill-source-index-refresh/references/source-map-config.md +13 -5
- package/template/.agents/skills/yss-skill-source-index-refresh/scripts/check-backend-skill-source-index.mjs +60 -0
- package/template/.agents/skills/yss-skill-source-index-refresh/scripts/refresh-yss-skill-index.mjs +250 -56
- package/template/.agents/skills/yss-skill-source-index-refresh/scripts/refresh-yss-skill-index.test.mjs +74 -7
- package/template/.agents/skills/yss-tactical-design/SKILL.md +1 -1
- package/template/.agents/skills/yss-tactical-design/references/output-template.md +1 -1
- package/template/.agents/skills/yss-technical-design/SKILL.md +3 -1
- package/template/.agents/skills/yss-technical-design/references/technical-design-contract.md +1 -1
- package/template/.agents/skills/yss-technical-design/scripts/generate-schema.mjs +1 -1
- package/template/.agents/skills/yss-technical-design/tests/run-scenarios.mjs +3 -1
- package/template/.agents/skills/yss-ui/SKILL.md +9 -6
- package/template/.agents/skills/yss-ui/references/component-routing.md +11 -4
- package/template/.agents/skills/yss-ui-business-page-generation/SKILL.md +5 -1
- package/template/.agents/skills/yss-ui-business-page-generation/references/hooks-map.md +3 -2
- package/template/.agents/skills/yss-up-springboot3/SKILL.md +23 -9
- package/template/.agents/skills/yss-userinfo/SKILL.md +21 -14
- package/template/.agents/skills/yss-userinfo/references/source-index.boot2-java8.md +49 -0
- package/template/.agents/skills/yss-userinfo/references/source-index.boot3-java17.md +54 -0
- package/template/.agents/skills/yss-userinfo/references/source-index.md +6 -30
- package/template/.agents/skills/yss-validation/SKILL.md +12 -17
- package/template/.agents/skills/yss-validation/references/source-index.boot2-java8.md +47 -0
- package/template/.agents/skills/yss-validation/references/source-index.boot3-java17.md +47 -0
- package/template/.agents/skills/yss-validation/references/source-index.md +6 -29
- package/template/.agents/skills/yss-web-controller/SKILL.md +4 -4
- package/template/.agents/skills/yss-web-controller/scripts/generate_controller.test.mjs +1 -1
- package/template/.agents/skills/ytable-usage/SKILL.md +14 -7
- package/template/.agents/skills/ytree-usage/SKILL.md +1 -0
- package/template/.codex/skills/formily-mode-slot-detail/SKILL.md +3 -4
- package/template/.codex/skills/yedit-table-usage/SKILL.md +2 -0
- package/template/.codex/skills/yss-application/SKILL.md +8 -6
- package/template/.codex/skills/yss-audit-log/SKILL.md +12 -7
- package/template/.codex/skills/yss-audit-log/references/source-index.boot2-java8.md +57 -0
- package/template/.codex/skills/yss-audit-log/references/source-index.boot3-java17.md +58 -0
- package/template/.codex/skills/yss-audit-log/references/source-index.md +6 -39
- package/template/.codex/skills/yss-cache/SKILL.md +5 -1
- package/template/.codex/skills/yss-cache/references/source-index.boot2-java8.md +81 -0
- package/template/.codex/skills/yss-cache/references/source-index.boot3-java17.md +83 -0
- package/template/.codex/skills/yss-cache/references/source-index.md +6 -63
- package/template/.codex/skills/yss-cache/scripts/check-skill-freshness.sh +20 -15
- package/template/.codex/skills/yss-ddd-scaffold-generator/SKILL.md +2 -2
- package/template/{.agents/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/SKILL.md → .codex/skills/yss-ddd-scaffold-generator/references/engineering-baseline.md} +0 -5
- package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/first-slice-verification.test.mjs +1 -1
- package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +2 -2
- package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/run_first_slice_verification.mjs +1 -3
- 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 +1 -1
- package/template/.codex/skills/yss-design-system/SKILL.md +2 -2
- package/template/.codex/skills/yss-distributed-id/SKILL.md +4 -0
- package/template/.codex/skills/yss-distributed-id/references/source-index.boot2-java8.md +102 -0
- package/template/.codex/skills/yss-distributed-id/references/source-index.boot3-java17.md +90 -0
- package/template/.codex/skills/yss-distributed-id/references/source-index.md +6 -82
- package/template/.codex/skills/yss-dto/SKILL.md +2 -2
- package/template/.codex/skills/yss-dto/references/source-index.boot2-java8.md +67 -0
- package/template/.codex/skills/yss-dto/references/source-index.boot3-java17.md +70 -0
- package/template/.codex/skills/yss-dto/references/source-index.md +6 -51
- package/template/.codex/skills/yss-excel-mvc/SKILL.md +4 -0
- package/template/.codex/skills/yss-excel-mvc/references/source-index.boot2-java8.md +90 -0
- package/template/.codex/skills/yss-excel-mvc/references/source-index.boot3-java17.md +58 -0
- package/template/.codex/skills/yss-excel-mvc/references/source-index.md +6 -70
- package/template/.codex/skills/yss-exception/SKILL.md +12 -9
- package/template/.codex/skills/yss-exception/references/source-index.boot2-java8.md +50 -0
- package/template/.codex/skills/yss-exception/references/source-index.boot3-java17.md +50 -0
- package/template/.codex/skills/yss-exception/references/source-index.md +6 -31
- package/template/.codex/skills/yss-formily/SKILL.md +2 -2
- package/template/.codex/skills/yss-frontend-scaffold-generator/SKILL.md +1 -1
- package/template/.codex/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/README.md +1 -1
- package/template/.codex/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/package.json +2 -2
- package/template/.codex/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/pnpm-lock.yaml +158 -0
- package/template/.codex/skills/yss-frontend-scaffold-generator/references/data-quality-v1.manifest.json +3 -3
- package/template/.codex/skills/yss-frontend-scaffold-generator/scripts/scaffold-generator.test.mjs +5 -0
- package/template/.codex/skills/yss-hook/SKILL.md +3 -2
- package/template/.codex/skills/yss-implementation-contract-compiler/SKILL.md +2 -0
- package/template/.codex/skills/yss-implementation-contract-compiler/references/boundaries.md +4 -6
- package/template/.codex/skills/yss-implementation-contract-compiler/references/compiler-contract.yaml +27 -2
- package/template/.codex/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +2 -1
- package/template/.codex/skills/yss-implementation-contract-compiler/tests/compiler-scenarios.test.mjs +60 -14
- package/template/.codex/skills/yss-layered-mvc-scaffold-generator/SKILL.md +6 -5
- package/template/.codex/skills/yss-layered-mvc-scaffold-generator/agents/openai.yaml +2 -2
- package/template/.codex/skills/yss-layered-mvc-scaffold-generator/references/architecture.md +2 -0
- package/template/.codex/skills/yss-layered-mvc-scaffold-generator/scripts/data-analysis-profile.mjs +82 -0
- package/template/.codex/skills/yss-layered-mvc-scaffold-generator/scripts/generate_scaffold.mjs +23 -9
- package/template/.codex/skills/yss-layered-mvc-scaffold-generator/scripts/scaffold-generator.test.mjs +23 -6
- package/template/.codex/skills/yss-layered-mvc-scaffold-generator/tests/scaffold-generator.test.mjs +2 -0
- package/template/.codex/skills/yss-mybatis/SKILL.md +2 -2
- package/template/.codex/skills/yss-mybatis/references/source-index.boot2-java8.md +126 -0
- package/template/.codex/skills/yss-mybatis/references/source-index.boot3-java17.md +126 -0
- package/template/.codex/skills/yss-mybatis/references/source-index.md +6 -109
- package/template/.codex/skills/yss-product-lifecycle/references/orchestration-contract.yaml +11 -11
- package/template/.codex/skills/yss-product-lifecycle/references/orchestration.md +2 -2
- package/template/.codex/skills/yss-repository/SKILL.md +1 -1
- package/template/.codex/skills/yss-resilience4j/SKILL.md +4 -0
- package/template/.codex/skills/yss-resilience4j/references/source-index.boot2-java8.md +48 -0
- package/template/.codex/skills/yss-resilience4j/references/source-index.boot3-java17.md +48 -0
- package/template/.codex/skills/yss-resilience4j/references/source-index.md +6 -29
- package/template/.codex/skills/yss-security-algorithm/SKILL.md +34 -10
- package/template/.codex/skills/yss-security-algorithm/references/source-index.boot2-java8.md +50 -0
- package/template/.codex/skills/yss-security-algorithm/references/source-index.boot3-java17.md +51 -0
- package/template/.codex/skills/yss-security-algorithm/references/source-index.md +6 -31
- package/template/.codex/skills/yss-skill-source-index-refresh/SKILL.md +12 -6
- package/template/.codex/skills/yss-skill-source-index-refresh/references/backend-component-platform-compatibility.md +27 -0
- package/template/.codex/skills/yss-skill-source-index-refresh/references/source-location.md +4 -4
- package/template/.codex/skills/yss-skill-source-index-refresh/references/source-map-config.md +13 -5
- package/template/.codex/skills/yss-skill-source-index-refresh/scripts/check-backend-skill-source-index.mjs +60 -0
- package/template/.codex/skills/yss-skill-source-index-refresh/scripts/refresh-yss-skill-index.mjs +250 -56
- package/template/.codex/skills/yss-skill-source-index-refresh/scripts/refresh-yss-skill-index.test.mjs +74 -7
- package/template/.codex/skills/yss-tactical-design/SKILL.md +1 -1
- package/template/.codex/skills/yss-tactical-design/references/output-template.md +1 -1
- package/template/.codex/skills/yss-technical-design/SKILL.md +3 -1
- package/template/.codex/skills/yss-technical-design/references/technical-design-contract.md +1 -1
- package/template/.codex/skills/yss-technical-design/scripts/generate-schema.mjs +1 -1
- package/template/.codex/skills/yss-technical-design/tests/run-scenarios.mjs +3 -1
- package/template/.codex/skills/yss-ui/SKILL.md +9 -6
- package/template/.codex/skills/yss-ui/references/component-routing.md +11 -4
- package/template/.codex/skills/yss-ui-business-page-generation/SKILL.md +5 -1
- package/template/.codex/skills/yss-ui-business-page-generation/references/hooks-map.md +3 -2
- package/template/.codex/skills/yss-up-springboot3/SKILL.md +23 -9
- package/template/.codex/skills/yss-userinfo/SKILL.md +21 -14
- package/template/.codex/skills/yss-userinfo/references/source-index.boot2-java8.md +49 -0
- package/template/.codex/skills/yss-userinfo/references/source-index.boot3-java17.md +54 -0
- package/template/.codex/skills/yss-userinfo/references/source-index.md +6 -30
- package/template/.codex/skills/yss-validation/SKILL.md +12 -17
- package/template/.codex/skills/yss-validation/references/source-index.boot2-java8.md +47 -0
- package/template/.codex/skills/yss-validation/references/source-index.boot3-java17.md +47 -0
- package/template/.codex/skills/yss-validation/references/source-index.md +6 -29
- package/template/.codex/skills/yss-web-controller/SKILL.md +4 -4
- package/template/.codex/skills/yss-web-controller/scripts/generate_controller.test.mjs +1 -1
- package/template/.codex/skills/ytable-usage/SKILL.md +14 -7
- package/template/.codex/skills/ytree-usage/SKILL.md +1 -0
- package/template/.cursor/skills/formily-mode-slot-detail/SKILL.md +3 -4
- package/template/.cursor/skills/yedit-table-usage/SKILL.md +2 -0
- package/template/.cursor/skills/yss-application/SKILL.md +8 -6
- package/template/.cursor/skills/yss-audit-log/SKILL.md +12 -7
- package/template/.cursor/skills/yss-audit-log/references/source-index.boot2-java8.md +57 -0
- package/template/.cursor/skills/yss-audit-log/references/source-index.boot3-java17.md +58 -0
- package/template/.cursor/skills/yss-audit-log/references/source-index.md +6 -39
- package/template/.cursor/skills/yss-cache/SKILL.md +5 -1
- package/template/.cursor/skills/yss-cache/references/source-index.boot2-java8.md +81 -0
- package/template/.cursor/skills/yss-cache/references/source-index.boot3-java17.md +83 -0
- package/template/.cursor/skills/yss-cache/references/source-index.md +6 -63
- package/template/.cursor/skills/yss-cache/scripts/check-skill-freshness.sh +20 -15
- package/template/.cursor/skills/yss-ddd-scaffold-generator/SKILL.md +2 -2
- package/template/{.codex/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/SKILL.md → .cursor/skills/yss-ddd-scaffold-generator/references/engineering-baseline.md} +0 -5
- package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/first-slice-verification.test.mjs +1 -1
- package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +2 -2
- package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/run_first_slice_verification.mjs +1 -3
- 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 +1 -1
- package/template/.cursor/skills/yss-design-system/SKILL.md +2 -2
- package/template/.cursor/skills/yss-distributed-id/SKILL.md +4 -0
- package/template/.cursor/skills/yss-distributed-id/references/source-index.boot2-java8.md +102 -0
- package/template/.cursor/skills/yss-distributed-id/references/source-index.boot3-java17.md +90 -0
- package/template/.cursor/skills/yss-distributed-id/references/source-index.md +6 -82
- package/template/.cursor/skills/yss-dto/SKILL.md +2 -2
- package/template/.cursor/skills/yss-dto/references/source-index.boot2-java8.md +67 -0
- package/template/.cursor/skills/yss-dto/references/source-index.boot3-java17.md +70 -0
- package/template/.cursor/skills/yss-dto/references/source-index.md +6 -51
- package/template/.cursor/skills/yss-excel-mvc/SKILL.md +4 -0
- package/template/.cursor/skills/yss-excel-mvc/references/source-index.boot2-java8.md +90 -0
- package/template/.cursor/skills/yss-excel-mvc/references/source-index.boot3-java17.md +58 -0
- package/template/.cursor/skills/yss-excel-mvc/references/source-index.md +6 -70
- package/template/.cursor/skills/yss-exception/SKILL.md +12 -9
- package/template/.cursor/skills/yss-exception/references/source-index.boot2-java8.md +50 -0
- package/template/.cursor/skills/yss-exception/references/source-index.boot3-java17.md +50 -0
- package/template/.cursor/skills/yss-exception/references/source-index.md +6 -31
- package/template/.cursor/skills/yss-formily/SKILL.md +2 -2
- package/template/.cursor/skills/yss-frontend-scaffold-generator/SKILL.md +1 -1
- package/template/.cursor/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/README.md +1 -1
- package/template/.cursor/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/package.json +2 -2
- package/template/.cursor/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/pnpm-lock.yaml +158 -0
- package/template/.cursor/skills/yss-frontend-scaffold-generator/references/data-quality-v1.manifest.json +3 -3
- package/template/.cursor/skills/yss-frontend-scaffold-generator/scripts/scaffold-generator.test.mjs +5 -0
- package/template/.cursor/skills/yss-hook/SKILL.md +3 -2
- package/template/.cursor/skills/yss-implementation-contract-compiler/SKILL.md +2 -0
- package/template/.cursor/skills/yss-implementation-contract-compiler/references/boundaries.md +4 -6
- package/template/.cursor/skills/yss-implementation-contract-compiler/references/compiler-contract.yaml +27 -2
- package/template/.cursor/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +2 -1
- package/template/.cursor/skills/yss-implementation-contract-compiler/tests/compiler-scenarios.test.mjs +60 -14
- package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/SKILL.md +6 -5
- package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/agents/openai.yaml +2 -2
- package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/references/architecture.md +2 -0
- package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/scripts/data-analysis-profile.mjs +82 -0
- package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/scripts/generate_scaffold.mjs +23 -9
- package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/scripts/scaffold-generator.test.mjs +23 -6
- package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/tests/scaffold-generator.test.mjs +2 -0
- package/template/.cursor/skills/yss-mybatis/SKILL.md +2 -2
- package/template/.cursor/skills/yss-mybatis/references/source-index.boot2-java8.md +126 -0
- package/template/.cursor/skills/yss-mybatis/references/source-index.boot3-java17.md +126 -0
- package/template/.cursor/skills/yss-mybatis/references/source-index.md +6 -109
- package/template/.cursor/skills/yss-product-lifecycle/references/orchestration-contract.yaml +11 -11
- package/template/.cursor/skills/yss-product-lifecycle/references/orchestration.md +2 -2
- package/template/.cursor/skills/yss-repository/SKILL.md +1 -1
- package/template/.cursor/skills/yss-resilience4j/SKILL.md +4 -0
- package/template/.cursor/skills/yss-resilience4j/references/source-index.boot2-java8.md +48 -0
- package/template/.cursor/skills/yss-resilience4j/references/source-index.boot3-java17.md +48 -0
- package/template/.cursor/skills/yss-resilience4j/references/source-index.md +6 -29
- package/template/.cursor/skills/yss-security-algorithm/SKILL.md +34 -10
- package/template/.cursor/skills/yss-security-algorithm/references/source-index.boot2-java8.md +50 -0
- package/template/.cursor/skills/yss-security-algorithm/references/source-index.boot3-java17.md +51 -0
- package/template/.cursor/skills/yss-security-algorithm/references/source-index.md +6 -31
- package/template/.cursor/skills/yss-skill-source-index-refresh/SKILL.md +12 -6
- package/template/.cursor/skills/yss-skill-source-index-refresh/references/backend-component-platform-compatibility.md +27 -0
- package/template/.cursor/skills/yss-skill-source-index-refresh/references/source-location.md +4 -4
- package/template/.cursor/skills/yss-skill-source-index-refresh/references/source-map-config.md +13 -5
- package/template/.cursor/skills/yss-skill-source-index-refresh/scripts/check-backend-skill-source-index.mjs +60 -0
- package/template/.cursor/skills/yss-skill-source-index-refresh/scripts/refresh-yss-skill-index.mjs +250 -56
- package/template/.cursor/skills/yss-skill-source-index-refresh/scripts/refresh-yss-skill-index.test.mjs +74 -7
- package/template/.cursor/skills/yss-tactical-design/SKILL.md +1 -1
- package/template/.cursor/skills/yss-tactical-design/references/output-template.md +1 -1
- package/template/.cursor/skills/yss-technical-design/SKILL.md +3 -1
- package/template/.cursor/skills/yss-technical-design/references/technical-design-contract.md +1 -1
- package/template/.cursor/skills/yss-technical-design/scripts/generate-schema.mjs +1 -1
- package/template/.cursor/skills/yss-technical-design/tests/run-scenarios.mjs +3 -1
- package/template/.cursor/skills/yss-ui/SKILL.md +9 -6
- package/template/.cursor/skills/yss-ui/references/component-routing.md +11 -4
- package/template/.cursor/skills/yss-ui-business-page-generation/SKILL.md +5 -1
- package/template/.cursor/skills/yss-ui-business-page-generation/references/hooks-map.md +3 -2
- package/template/.cursor/skills/yss-up-springboot3/SKILL.md +23 -9
- package/template/.cursor/skills/yss-userinfo/SKILL.md +21 -14
- package/template/.cursor/skills/yss-userinfo/references/source-index.boot2-java8.md +49 -0
- package/template/.cursor/skills/yss-userinfo/references/source-index.boot3-java17.md +54 -0
- package/template/.cursor/skills/yss-userinfo/references/source-index.md +6 -30
- package/template/.cursor/skills/yss-validation/SKILL.md +12 -17
- package/template/.cursor/skills/yss-validation/references/source-index.boot2-java8.md +47 -0
- package/template/.cursor/skills/yss-validation/references/source-index.boot3-java17.md +47 -0
- package/template/.cursor/skills/yss-validation/references/source-index.md +6 -29
- package/template/.cursor/skills/yss-web-controller/SKILL.md +4 -4
- package/template/.cursor/skills/yss-web-controller/scripts/generate_controller.test.mjs +1 -1
- package/template/.cursor/skills/ytable-usage/SKILL.md +14 -7
- package/template/.cursor/skills/ytree-usage/SKILL.md +1 -0
- package/template/.pi/skills/formily-mode-slot-detail/SKILL.md +3 -4
- package/template/.pi/skills/yedit-table-usage/SKILL.md +2 -0
- package/template/.pi/skills/yss-application/SKILL.md +8 -6
- package/template/.pi/skills/yss-audit-log/SKILL.md +12 -7
- package/template/.pi/skills/yss-audit-log/references/source-index.boot2-java8.md +57 -0
- package/template/.pi/skills/yss-audit-log/references/source-index.boot3-java17.md +58 -0
- package/template/.pi/skills/yss-audit-log/references/source-index.md +6 -39
- package/template/.pi/skills/yss-cache/SKILL.md +5 -1
- package/template/.pi/skills/yss-cache/references/source-index.boot2-java8.md +81 -0
- package/template/.pi/skills/yss-cache/references/source-index.boot3-java17.md +83 -0
- package/template/.pi/skills/yss-cache/references/source-index.md +6 -63
- package/template/.pi/skills/yss-cache/scripts/check-skill-freshness.sh +20 -15
- package/template/.pi/skills/yss-ddd-scaffold-generator/SKILL.md +2 -2
- package/template/.pi/skills/yss-ddd-scaffold-generator/references/{yss-backend-scaffold-parent/SKILL.md → engineering-baseline.md} +0 -5
- package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/first-slice-verification.test.mjs +1 -1
- package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +2 -2
- package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/run_first_slice_verification.mjs +1 -3
- 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 +1 -1
- package/template/.pi/skills/yss-design-system/SKILL.md +2 -2
- package/template/.pi/skills/yss-distributed-id/SKILL.md +4 -0
- package/template/.pi/skills/yss-distributed-id/references/source-index.boot2-java8.md +102 -0
- package/template/.pi/skills/yss-distributed-id/references/source-index.boot3-java17.md +90 -0
- package/template/.pi/skills/yss-distributed-id/references/source-index.md +6 -82
- package/template/.pi/skills/yss-dto/SKILL.md +2 -2
- package/template/.pi/skills/yss-dto/references/source-index.boot2-java8.md +67 -0
- package/template/.pi/skills/yss-dto/references/source-index.boot3-java17.md +70 -0
- package/template/.pi/skills/yss-dto/references/source-index.md +6 -51
- package/template/.pi/skills/yss-excel-mvc/SKILL.md +4 -0
- package/template/.pi/skills/yss-excel-mvc/references/source-index.boot2-java8.md +90 -0
- package/template/.pi/skills/yss-excel-mvc/references/source-index.boot3-java17.md +58 -0
- package/template/.pi/skills/yss-excel-mvc/references/source-index.md +6 -70
- package/template/.pi/skills/yss-exception/SKILL.md +12 -9
- package/template/.pi/skills/yss-exception/references/source-index.boot2-java8.md +50 -0
- package/template/.pi/skills/yss-exception/references/source-index.boot3-java17.md +50 -0
- package/template/.pi/skills/yss-exception/references/source-index.md +6 -31
- package/template/.pi/skills/yss-formily/SKILL.md +2 -2
- package/template/.pi/skills/yss-frontend-scaffold-generator/SKILL.md +1 -1
- package/template/.pi/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/README.md +1 -1
- package/template/.pi/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/package.json +2 -2
- package/template/.pi/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/pnpm-lock.yaml +158 -0
- package/template/.pi/skills/yss-frontend-scaffold-generator/references/data-quality-v1.manifest.json +3 -3
- package/template/.pi/skills/yss-frontend-scaffold-generator/scripts/scaffold-generator.test.mjs +5 -0
- package/template/.pi/skills/yss-hook/SKILL.md +3 -2
- package/template/.pi/skills/yss-implementation-contract-compiler/SKILL.md +2 -0
- package/template/.pi/skills/yss-implementation-contract-compiler/references/boundaries.md +4 -6
- package/template/.pi/skills/yss-implementation-contract-compiler/references/compiler-contract.yaml +27 -2
- package/template/.pi/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +2 -1
- package/template/.pi/skills/yss-implementation-contract-compiler/tests/compiler-scenarios.test.mjs +60 -14
- package/template/.pi/skills/yss-layered-mvc-scaffold-generator/SKILL.md +6 -5
- package/template/.pi/skills/yss-layered-mvc-scaffold-generator/agents/openai.yaml +2 -2
- package/template/.pi/skills/yss-layered-mvc-scaffold-generator/references/architecture.md +2 -0
- package/template/.pi/skills/yss-layered-mvc-scaffold-generator/scripts/data-analysis-profile.mjs +82 -0
- package/template/.pi/skills/yss-layered-mvc-scaffold-generator/scripts/generate_scaffold.mjs +23 -9
- package/template/.pi/skills/yss-layered-mvc-scaffold-generator/scripts/scaffold-generator.test.mjs +23 -6
- package/template/.pi/skills/yss-layered-mvc-scaffold-generator/tests/scaffold-generator.test.mjs +2 -0
- package/template/.pi/skills/yss-mybatis/SKILL.md +2 -2
- package/template/.pi/skills/yss-mybatis/references/source-index.boot2-java8.md +126 -0
- package/template/.pi/skills/yss-mybatis/references/source-index.boot3-java17.md +126 -0
- package/template/.pi/skills/yss-mybatis/references/source-index.md +6 -109
- package/template/.pi/skills/yss-product-lifecycle/references/orchestration-contract.yaml +11 -11
- package/template/.pi/skills/yss-product-lifecycle/references/orchestration.md +2 -2
- package/template/.pi/skills/yss-repository/SKILL.md +1 -1
- package/template/.pi/skills/yss-resilience4j/SKILL.md +4 -0
- package/template/.pi/skills/yss-resilience4j/references/source-index.boot2-java8.md +48 -0
- package/template/.pi/skills/yss-resilience4j/references/source-index.boot3-java17.md +48 -0
- package/template/.pi/skills/yss-resilience4j/references/source-index.md +6 -29
- package/template/.pi/skills/yss-security-algorithm/SKILL.md +34 -10
- package/template/.pi/skills/yss-security-algorithm/references/source-index.boot2-java8.md +50 -0
- package/template/.pi/skills/yss-security-algorithm/references/source-index.boot3-java17.md +51 -0
- package/template/.pi/skills/yss-security-algorithm/references/source-index.md +6 -31
- package/template/.pi/skills/yss-skill-source-index-refresh/SKILL.md +12 -6
- package/template/.pi/skills/yss-skill-source-index-refresh/references/backend-component-platform-compatibility.md +27 -0
- package/template/.pi/skills/yss-skill-source-index-refresh/references/source-location.md +4 -4
- package/template/.pi/skills/yss-skill-source-index-refresh/references/source-map-config.md +13 -5
- package/template/.pi/skills/yss-skill-source-index-refresh/scripts/check-backend-skill-source-index.mjs +60 -0
- package/template/.pi/skills/yss-skill-source-index-refresh/scripts/refresh-yss-skill-index.mjs +250 -56
- package/template/.pi/skills/yss-skill-source-index-refresh/scripts/refresh-yss-skill-index.test.mjs +74 -7
- package/template/.pi/skills/yss-tactical-design/SKILL.md +1 -1
- package/template/.pi/skills/yss-tactical-design/references/output-template.md +1 -1
- package/template/.pi/skills/yss-technical-design/SKILL.md +3 -1
- package/template/.pi/skills/yss-technical-design/references/technical-design-contract.md +1 -1
- package/template/.pi/skills/yss-technical-design/scripts/generate-schema.mjs +1 -1
- package/template/.pi/skills/yss-technical-design/tests/run-scenarios.mjs +3 -1
- package/template/.pi/skills/yss-ui/SKILL.md +9 -6
- package/template/.pi/skills/yss-ui/references/component-routing.md +11 -4
- package/template/.pi/skills/yss-ui-business-page-generation/SKILL.md +5 -1
- package/template/.pi/skills/yss-ui-business-page-generation/references/hooks-map.md +3 -2
- package/template/.pi/skills/yss-up-springboot3/SKILL.md +23 -9
- package/template/.pi/skills/yss-userinfo/SKILL.md +21 -14
- package/template/.pi/skills/yss-userinfo/references/source-index.boot2-java8.md +49 -0
- package/template/.pi/skills/yss-userinfo/references/source-index.boot3-java17.md +54 -0
- package/template/.pi/skills/yss-userinfo/references/source-index.md +6 -30
- package/template/.pi/skills/yss-validation/SKILL.md +12 -17
- package/template/.pi/skills/yss-validation/references/source-index.boot2-java8.md +47 -0
- package/template/.pi/skills/yss-validation/references/source-index.boot3-java17.md +47 -0
- package/template/.pi/skills/yss-validation/references/source-index.md +6 -29
- package/template/.pi/skills/yss-web-controller/SKILL.md +4 -4
- package/template/.pi/skills/yss-web-controller/scripts/generate_controller.test.mjs +1 -1
- package/template/.pi/skills/ytable-usage/SKILL.md +14 -7
- package/template/.pi/skills/ytree-usage/SKILL.md +1 -0
- package/template/docs/agents/backend-architecture-profiles.md +1 -1
- package/template/docs/agents/digital-human-roles.yaml +3 -3
- package/template/docs/agents/skill-migrations.md +39 -3
- package/template/docs/agents/yss-skill-registry.yaml +93 -96
- package/template/docs/api/templates/openapi-draft-review-checklist.md +1 -1
- package/template/docs/architecture/templates/engineering-baseline-review-template.md +3 -3
- package/template/docs/architecture/templates/system-overview-design-template.md +1 -1
- package/template/docs/engineering/backend-platforms.json +662 -9
- package/template/docs/engineering/backend-platforms.md +33 -7
- package/template/docs/process/schemas/backend-architecture-identity.schema.json +102 -0
- package/template/docs/process/schemas/project-scaffold-contract.schema.json +16 -4
- package/template/docs/process/schemas/scaffold-architecture-decisions.schema.json +7 -0
- package/template/docs/process/schemas/slice-implementation-contract-v3.schema.json +143 -0
- package/template/docs/process/strategic-handoff-package.md +1 -1
- package/template/docs/templates/implementation-routing-template.md +1 -1
- package/template/docs/user-guide//346/212/200/346/234/257/350/256/276/350/256/241/347/224/250/346/210/267/346/214/207/345/215/227.md +2 -2
- package/template/scripts/backend-platforms +77 -8
- package/template/scripts/lib/backend-platform.mjs +232 -5
- package/template/scripts/lib/existing-backend-architecture.mjs +3 -2
- package/template/scripts/lib/implementation-contract-compiler.mjs +93 -9
- package/template/scripts/lib/skill-registry.mjs +170 -13
- package/template/scripts/lib/skill-supply-chain.mjs +1 -1
- package/template/scripts/lib/slice-contract-preparation.mjs +6 -5
- package/template/scripts/verify-backend-platform-matrix +1 -1
- package/template/skills-lock.json +38 -165
- package/template/yss-public-skills.json +1 -5
- package/template.snapshot.json +4 -4
- package/template/.agents/skills/component-selection-imports/SKILL.md +0 -64
- package/template/.agents/skills/page-form-module/SKILL.md +0 -168
- package/template/.agents/skills/page-list-module/SKILL.md +0 -137
- package/template/.agents/skills/page-skeleton/SKILL.md +0 -76
- package/template/.agents/skills/page-skeleton/examples/AdvancedFormPage/constant.ts +0 -34
- package/template/.agents/skills/page-skeleton/examples/AdvancedFormPage/hooks/useRuleConfig.ts +0 -75
- package/template/.agents/skills/page-skeleton/examples/AdvancedFormPage/index.vue +0 -107
- package/template/.agents/skills/page-skeleton/examples/AdvancedFormPage/schemas/ruleConfigSchema.ts +0 -256
- package/template/.agents/skills/page-skeleton/examples/AdvancedFormPage/style.less +0 -30
- package/template/.agents/skills/page-skeleton/examples/StandardListPage/constant.ts +0 -28
- package/template/.agents/skills/page-skeleton/examples/StandardListPage/hooks/useQualityRuleList.ts +0 -58
- package/template/.agents/skills/page-skeleton/examples/StandardListPage/hooks/useRuleActions.ts +0 -65
- package/template/.agents/skills/page-skeleton/examples/StandardListPage/index.vue +0 -91
- package/template/.agents/skills/page-skeleton/examples/StandardListPage/style.less +0 -49
- package/template/.agents/skills/vue3-best-practices/SKILL.md +0 -68
- package/template/.agents/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/agents/openai.yaml +0 -5
- package/template/.agents/skills/yss-mvc-data-analysis-project-initializer/SKILL.md +0 -22
- package/template/.agents/skills/yss-mvc-data-analysis-project-initializer/scripts/generate_project.mjs +0 -77
- package/template/.agents/skills/yss-mvc-data-analysis-project-initializer/scripts/run_scaffold_verification.mjs +0 -9
- package/template/.agents/skills/yss-mvc-design/SKILL.md +0 -16
- package/template/.agents/skills/yss-mvc-design/agents/openai.yaml +0 -4
- package/template/.agents/skills/yss-use-table-height/SKILL.md +0 -130
- package/template/.agents/skills/yss-use-table-height/agents/openai.yaml +0 -5
- package/template/.agents/skills/yss-use-table-height/references/frontend-docs.md +0 -9
- package/template/.agents/skills/yss-use-tree-height/SKILL.md +0 -98
- package/template/.agents/skills/yss-use-tree-height/agents/openai.yaml +0 -5
- package/template/.agents/skills/yss-use-tree-height/references/frontend-docs.md +0 -9
- package/template/.codex/skills/component-selection-imports/SKILL.md +0 -64
- package/template/.codex/skills/page-form-module/SKILL.md +0 -168
- package/template/.codex/skills/page-list-module/SKILL.md +0 -137
- package/template/.codex/skills/page-skeleton/SKILL.md +0 -76
- package/template/.codex/skills/page-skeleton/examples/AdvancedFormPage/constant.ts +0 -34
- package/template/.codex/skills/page-skeleton/examples/AdvancedFormPage/hooks/useRuleConfig.ts +0 -75
- package/template/.codex/skills/page-skeleton/examples/AdvancedFormPage/index.vue +0 -107
- package/template/.codex/skills/page-skeleton/examples/AdvancedFormPage/schemas/ruleConfigSchema.ts +0 -256
- package/template/.codex/skills/page-skeleton/examples/AdvancedFormPage/style.less +0 -30
- package/template/.codex/skills/page-skeleton/examples/StandardListPage/constant.ts +0 -28
- package/template/.codex/skills/page-skeleton/examples/StandardListPage/hooks/useQualityRuleList.ts +0 -58
- package/template/.codex/skills/page-skeleton/examples/StandardListPage/hooks/useRuleActions.ts +0 -65
- package/template/.codex/skills/page-skeleton/examples/StandardListPage/index.vue +0 -91
- package/template/.codex/skills/page-skeleton/examples/StandardListPage/style.less +0 -49
- package/template/.codex/skills/vue3-best-practices/SKILL.md +0 -68
- package/template/.codex/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/agents/openai.yaml +0 -5
- package/template/.codex/skills/yss-mvc-data-analysis-project-initializer/SKILL.md +0 -22
- package/template/.codex/skills/yss-mvc-data-analysis-project-initializer/scripts/generate_project.mjs +0 -77
- package/template/.codex/skills/yss-mvc-data-analysis-project-initializer/scripts/run_scaffold_verification.mjs +0 -9
- package/template/.codex/skills/yss-mvc-design/SKILL.md +0 -16
- package/template/.codex/skills/yss-mvc-design/agents/openai.yaml +0 -4
- package/template/.codex/skills/yss-use-table-height/SKILL.md +0 -130
- package/template/.codex/skills/yss-use-table-height/agents/openai.yaml +0 -5
- package/template/.codex/skills/yss-use-table-height/references/frontend-docs.md +0 -9
- package/template/.codex/skills/yss-use-tree-height/SKILL.md +0 -98
- package/template/.codex/skills/yss-use-tree-height/agents/openai.yaml +0 -5
- package/template/.codex/skills/yss-use-tree-height/references/frontend-docs.md +0 -9
- package/template/.cursor/skills/component-selection-imports/SKILL.md +0 -64
- package/template/.cursor/skills/page-form-module/SKILL.md +0 -168
- package/template/.cursor/skills/page-list-module/SKILL.md +0 -137
- package/template/.cursor/skills/page-skeleton/SKILL.md +0 -76
- package/template/.cursor/skills/page-skeleton/examples/AdvancedFormPage/constant.ts +0 -34
- package/template/.cursor/skills/page-skeleton/examples/AdvancedFormPage/hooks/useRuleConfig.ts +0 -75
- package/template/.cursor/skills/page-skeleton/examples/AdvancedFormPage/index.vue +0 -107
- package/template/.cursor/skills/page-skeleton/examples/AdvancedFormPage/schemas/ruleConfigSchema.ts +0 -256
- package/template/.cursor/skills/page-skeleton/examples/AdvancedFormPage/style.less +0 -30
- package/template/.cursor/skills/page-skeleton/examples/StandardListPage/constant.ts +0 -28
- package/template/.cursor/skills/page-skeleton/examples/StandardListPage/hooks/useQualityRuleList.ts +0 -58
- package/template/.cursor/skills/page-skeleton/examples/StandardListPage/hooks/useRuleActions.ts +0 -65
- package/template/.cursor/skills/page-skeleton/examples/StandardListPage/index.vue +0 -91
- package/template/.cursor/skills/page-skeleton/examples/StandardListPage/style.less +0 -49
- package/template/.cursor/skills/vue3-best-practices/SKILL.md +0 -68
- package/template/.cursor/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/agents/openai.yaml +0 -5
- package/template/.cursor/skills/yss-mvc-data-analysis-project-initializer/SKILL.md +0 -22
- package/template/.cursor/skills/yss-mvc-data-analysis-project-initializer/scripts/generate_project.mjs +0 -77
- package/template/.cursor/skills/yss-mvc-data-analysis-project-initializer/scripts/run_scaffold_verification.mjs +0 -9
- package/template/.cursor/skills/yss-mvc-design/SKILL.md +0 -16
- package/template/.cursor/skills/yss-mvc-design/agents/openai.yaml +0 -4
- package/template/.cursor/skills/yss-use-table-height/SKILL.md +0 -130
- package/template/.cursor/skills/yss-use-table-height/agents/openai.yaml +0 -5
- package/template/.cursor/skills/yss-use-table-height/references/frontend-docs.md +0 -9
- package/template/.cursor/skills/yss-use-tree-height/SKILL.md +0 -98
- package/template/.cursor/skills/yss-use-tree-height/agents/openai.yaml +0 -5
- package/template/.cursor/skills/yss-use-tree-height/references/frontend-docs.md +0 -9
- package/template/.pi/skills/component-selection-imports/SKILL.md +0 -64
- package/template/.pi/skills/page-form-module/SKILL.md +0 -168
- package/template/.pi/skills/page-list-module/SKILL.md +0 -137
- package/template/.pi/skills/page-skeleton/SKILL.md +0 -76
- package/template/.pi/skills/page-skeleton/examples/AdvancedFormPage/constant.ts +0 -34
- package/template/.pi/skills/page-skeleton/examples/AdvancedFormPage/hooks/useRuleConfig.ts +0 -75
- package/template/.pi/skills/page-skeleton/examples/AdvancedFormPage/index.vue +0 -107
- package/template/.pi/skills/page-skeleton/examples/AdvancedFormPage/schemas/ruleConfigSchema.ts +0 -256
- package/template/.pi/skills/page-skeleton/examples/AdvancedFormPage/style.less +0 -30
- package/template/.pi/skills/page-skeleton/examples/StandardListPage/constant.ts +0 -28
- package/template/.pi/skills/page-skeleton/examples/StandardListPage/hooks/useQualityRuleList.ts +0 -58
- package/template/.pi/skills/page-skeleton/examples/StandardListPage/hooks/useRuleActions.ts +0 -65
- package/template/.pi/skills/page-skeleton/examples/StandardListPage/index.vue +0 -91
- package/template/.pi/skills/page-skeleton/examples/StandardListPage/style.less +0 -49
- package/template/.pi/skills/vue3-best-practices/SKILL.md +0 -68
- package/template/.pi/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/agents/openai.yaml +0 -5
- package/template/.pi/skills/yss-mvc-data-analysis-project-initializer/SKILL.md +0 -22
- package/template/.pi/skills/yss-mvc-data-analysis-project-initializer/scripts/generate_project.mjs +0 -77
- package/template/.pi/skills/yss-mvc-data-analysis-project-initializer/scripts/run_scaffold_verification.mjs +0 -9
- package/template/.pi/skills/yss-mvc-design/SKILL.md +0 -16
- package/template/.pi/skills/yss-mvc-design/agents/openai.yaml +0 -4
- package/template/.pi/skills/yss-use-table-height/SKILL.md +0 -130
- package/template/.pi/skills/yss-use-table-height/agents/openai.yaml +0 -5
- package/template/.pi/skills/yss-use-table-height/references/frontend-docs.md +0 -9
- package/template/.pi/skills/yss-use-tree-height/SKILL.md +0 -98
- package/template/.pi/skills/yss-use-tree-height/agents/openai.yaml +0 -5
- package/template/.pi/skills/yss-use-tree-height/references/frontend-docs.md +0 -9
- /package/template/.agents/skills/{yss-mvc-design → yss-technical-design}/references/mvc-design.schema.json +0 -0
- /package/template/.codex/skills/{yss-mvc-design → yss-technical-design}/references/mvc-design.schema.json +0 -0
- /package/template/.cursor/skills/{yss-mvc-design → yss-technical-design}/references/mvc-design.schema.json +0 -0
- /package/template/.pi/skills/{yss-mvc-design → yss-technical-design}/references/mvc-design.schema.json +0 -0
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: page-list-module
|
|
3
|
-
description: 指导实现 YSS UI 标准列表、远程分页、查询重置、YTable 工具栏、行操作、批量操作和左树右表模块;当页面需要查询、表格、分页或 CRUD 列表闭环时使用。
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Page List Module Skill
|
|
7
|
-
|
|
8
|
-
## 触发条件
|
|
9
|
-
|
|
10
|
-
- 实现查询、表格、分页、行操作或批量操作组合的业务列表。
|
|
11
|
-
- 实现左树右表、远程分页、工具栏或列设置。
|
|
12
|
-
|
|
13
|
-
## 不适用场景
|
|
14
|
-
|
|
15
|
-
- 仅实现表单提交,没有列表或分页。
|
|
16
|
-
- 仅展示本地静态数据,不涉及业务查询与列表操作。
|
|
17
|
-
|
|
18
|
-
## 必读依赖
|
|
19
|
-
|
|
20
|
-
- 组件选型:`../component-selection-imports/SKILL.md`
|
|
21
|
-
- 表格 API:`../ytable-usage/SKILL.md`
|
|
22
|
-
- 查询表单:`../yss-formily/SKILL.md`
|
|
23
|
-
- 接口、错误链路和长整型:`../yss-api-integration/SKILL.md`
|
|
24
|
-
- 左树右表高度:`../ytree-usage/SKILL.md`、`../yss-use-tree-height/SKILL.md`、`../yss-use-table-height/SKILL.md`
|
|
25
|
-
|
|
26
|
-
## 文档检索
|
|
27
|
-
|
|
28
|
-
1. MCP 可用时,按当前页面实际使用的能力调用 `get_component_docs` 查询 `YTable`、`YFormily`、`useTableHeight` 或 `useTreeHeight`,再用 `get_demo` 获取对应官方示例;不要只凭 Skill 内的静态片段推断 API。
|
|
29
|
-
2. 精确查询无结果时,先用 `search_docs` 或 `list_components` 校正名称;仅在 MCP 不可用、调用失败或校正后仍无结果时,回退读取最新 `llms-full.txt`。文档版本与当前依赖不一致时,再核对当前源码、CodeGraph 和真实导出。
|
|
30
|
-
3. 当前会话已经加载上述本地 Skill 时,不要再通过 MCP 重复查询同一 Skill;仅在依赖 Skill 缺失时使用 `list_skills`、`get_skill` 补齐规则。
|
|
31
|
-
|
|
32
|
-
## 硬约束(禁止/必须)
|
|
33
|
-
|
|
34
|
-
- 列表请求必须收敛在 `useXxxList`,模板不直接请求。
|
|
35
|
-
- 后端查询参数可用 `pageIndex/pageSize`;YTable 分页状态必须使用 `current/pageSize/total`。
|
|
36
|
-
- 远程分页必须配置 `pageable`、`pagination.remote = true`、`v-model:pagination` 和 `@page-change`;事件参数固定为 `{ current, pageSize }`,禁止读取 `currentPage`。
|
|
37
|
-
- 禁止臆造 `request`/`search-params` 等 Prop,也禁止把实例 `refresh()` 当成远程重新查询;该方法只调用 vxe `updateData()` 刷新当前表格数据,远程查询/重置/刷新必须调用业务 Hook。
|
|
38
|
-
- 查询区使用纵向 `search-content`:`YFormily` 仅渲染字段,查询/重置按钮在外部 `.xxx__search-actions` 独占下一行并右对齐。
|
|
39
|
-
- 新增、导入、批量操作等主操作直接放入 `#toolbar-right` 插槽即可自动渲染;**无需配置 `:toolbar-config="{ custom: true }"`**,避免无端展示列设置图标;**仅在业务明确需要列设置时才传入 `:toolbar-config="{ custom: true }"`**。
|
|
40
|
-
- 删除等危险操作默认使用 `actionConfig.buttons[].isConfirm` 按钮项气泡确认,禁止默认使用居中 `Modal.confirm`。
|
|
41
|
-
- 列定义、状态映射和筛选配置放入 `constant.ts`;超过 10 行的列不得内联在 `index.vue`。
|
|
42
|
-
- 长整型 ID 保持字符串透传,禁止 `Number()`/`parseInt()` 等会丢失精度的转换;页码、状态值等普通 number 按真实生成类型使用。
|
|
43
|
-
- 禁止使用 `if (res?.success)` 包裹成功逻辑,也禁止在 `else`/`catch` 重复调用 `message.error`;mutator 已对 `success === false` 提示并 reject。
|
|
44
|
-
|
|
45
|
-
## 标准代码骨架
|
|
46
|
-
|
|
47
|
-
```typescript
|
|
48
|
-
import { reactive, ref } from 'vue';
|
|
49
|
-
|
|
50
|
-
/** 管理规则列表数据、查询条件和远程分页。 */
|
|
51
|
-
export const useRuleList = () => {
|
|
52
|
-
const loading = ref(false);
|
|
53
|
-
const dataList = ref<RuleItem[]>([]);
|
|
54
|
-
const query = reactive<RuleQuery>({ pageIndex: 1, pageSize: 20, keyword: '' });
|
|
55
|
-
const pagination = reactive({ current: 1, pageSize: 20, total: 0, remote: true });
|
|
56
|
-
|
|
57
|
-
/** 请求规则列表;错误 Toast 由 mutator 处理。 */
|
|
58
|
-
const fetchData = async (): Promise<void> => {
|
|
59
|
-
loading.value = true;
|
|
60
|
-
try {
|
|
61
|
-
query.pageIndex = pagination.current;
|
|
62
|
-
query.pageSize = pagination.pageSize;
|
|
63
|
-
const res = await queryRuleList(query);
|
|
64
|
-
dataList.value = res.data ?? [];
|
|
65
|
-
pagination.total = res.totalCount ?? 0;
|
|
66
|
-
} catch {
|
|
67
|
-
dataList.value = [];
|
|
68
|
-
pagination.total = 0;
|
|
69
|
-
} finally {
|
|
70
|
-
loading.value = false;
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
/** 处理页码或每页数量变化。 */
|
|
75
|
-
const handlePageChange = ({ current, pageSize }: { current: number; pageSize: number }): void => {
|
|
76
|
-
pagination.current = current;
|
|
77
|
-
pagination.pageSize = pageSize;
|
|
78
|
-
void fetchData();
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
/** 从第一页执行查询。 */
|
|
82
|
-
const handleSearch = (): void => {
|
|
83
|
-
pagination.current = 1;
|
|
84
|
-
void fetchData();
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
/** 重置查询条件并回到第一页。 */
|
|
88
|
-
const handleReset = (): void => {
|
|
89
|
-
Object.assign(query, { pageIndex: 1, pageSize: pagination.pageSize, keyword: '' });
|
|
90
|
-
pagination.current = 1;
|
|
91
|
-
void fetchData();
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
return { loading, dataList, query, pagination, fetchData, handlePageChange, handleSearch, handleReset };
|
|
95
|
-
};
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
`RuleItem`、`RuleQuery`、`queryRuleList` 必须替换为当前 Orval 生成类型和真实方法,禁止照抄占位名。
|
|
99
|
-
|
|
100
|
-
```vue
|
|
101
|
-
<YTable
|
|
102
|
-
v-if="isReady"
|
|
103
|
-
ref="tableRef"
|
|
104
|
-
v-model:selected-row-keys="selectedRowKeys"
|
|
105
|
-
:row-config="{ keyField: 'id', useKey: true }"
|
|
106
|
-
:data="dataList"
|
|
107
|
-
:columns="TABLE_COLUMNS"
|
|
108
|
-
:loading="loading"
|
|
109
|
-
:height="tableHeight"
|
|
110
|
-
pageable
|
|
111
|
-
v-model:pagination="pagination"
|
|
112
|
-
@page-change="handlePageChange"
|
|
113
|
-
>
|
|
114
|
-
<template #toolbar-right>
|
|
115
|
-
<YButton :disabled="selectedRowKeys.length === 0" @click="handleBatchDelete">批量删除</YButton>
|
|
116
|
-
<YButton type="primary" @click="openCreate">新增</YButton>
|
|
117
|
-
</template>
|
|
118
|
-
</YTable>
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
## 交付检查清单
|
|
122
|
-
|
|
123
|
-
- [ ] 已确认真实 Orval 导出、查询 DTO 和响应字段。
|
|
124
|
-
- [ ] 查询参数与 YTable 分页字段已映射,`page-change` 回调读取 `current/pageSize` 而非 `currentPage`。
|
|
125
|
-
- [ ] 若包含批量操作,首列已配置 `type: 'checkbox'`,设置了 `:row-config="{ keyField: 'xxx', useKey: true }"`,批量按钮配置了 `:disabled="selectedRowKeys.length === 0"`,操作成功后已清空选中态。
|
|
126
|
-
- [ ] 查询/重置会回到第一页,远程分页配置完整。
|
|
127
|
-
- [ ] 主操作在 `#toolbar-right`,列设置已开启。
|
|
128
|
-
- [ ] 删除使用气泡确认,操作按钮的 loading/close 在成功与失败后都会恢复。
|
|
129
|
-
- [ ] 长整型 ID 未转 number,普通 number 仍符合真实类型。
|
|
130
|
-
- [ ] 没有 `if (res?.success)` 和重复错误 Toast。
|
|
131
|
-
- [ ] loading、空态和失败后数据状态可预期。
|
|
132
|
-
|
|
133
|
-
## 失败兜底策略
|
|
134
|
-
|
|
135
|
-
- 分页字段混乱时,在 Hook 中分离 YTable 状态和后端参数,不直接把 `pageIndex/totalCount` 绑到组件。
|
|
136
|
-
- 列表逻辑过大时,拆分 `useListData` 和 `useListActions`,不得回填到 `index.vue`。
|
|
137
|
-
- 响应字段不稳定时,在 Hook API 边界做最小映射,禁止在模板散落兼容分支。
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: page-skeleton
|
|
3
|
-
description: "创建或拆分 Vue3 YSS UI 页面模块骨架,明确页面、配置、hooks 与私有组件职责。"
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Page Skeleton Skill
|
|
7
|
-
|
|
8
|
-
## 触发条件
|
|
9
|
-
|
|
10
|
-
- 新建业务页面模块(列表、表单、详情、弹窗任意组合)。
|
|
11
|
-
- 需要快速搭建目录结构、类型文件、hooks、组件分层。
|
|
12
|
-
- 需要把页面代码控制在可维护结构,而不是单文件堆叠。
|
|
13
|
-
|
|
14
|
-
## 不适用场景
|
|
15
|
-
|
|
16
|
-
- 仅补一个局部交互逻辑,不涉及页面骨架重建。
|
|
17
|
-
- 仅改 API 请求细节:使用 `../yss-api-integration/SKILL.md`。
|
|
18
|
-
- 仅做 Formily 细节:使用 `../formily-*` 系列 skill。
|
|
19
|
-
|
|
20
|
-
## 硬约束(禁止/必须)
|
|
21
|
-
|
|
22
|
-
- 开发前必须先执行组件选型:`../component-selection-imports/SKILL.md`。
|
|
23
|
-
- 页面目录默认拆分:`index.vue + constant.ts + style.less + hooks/`;存在多个私有视图或大量独立类型时再增加 `components/` 和 `type.ts`。
|
|
24
|
-
- `index.vue` 只做 hooks 组合和视图编排,原则上控制在 150 行以内;超过 150 行或包含多个独立职责时必须拆分。
|
|
25
|
-
- 表格列超过 10 行时放入 `constant.ts`;状态、API 调用、副作用和事件处理放入 `hooks/useXxx.ts`。
|
|
26
|
-
- 所有样式放入 `style.less`,SFC 只保留 `<style scoped lang="less">@import './style.less';</style>`。
|
|
27
|
-
- 所有导出函数、hooks、类型和静态配置必须有中文 JSDoc。
|
|
28
|
-
- 表单方案默认用 `YFormily`;分步场景默认用 `formily-step-flow`。
|
|
29
|
-
- 不得导入 `@formily/antdv` 作为业务 UI 方案。
|
|
30
|
-
|
|
31
|
-
## 标准代码骨架
|
|
32
|
-
|
|
33
|
-
```text
|
|
34
|
-
packages/src/views/{ModuleName}/
|
|
35
|
-
├── index.vue
|
|
36
|
-
├── constant.ts
|
|
37
|
-
├── style.less
|
|
38
|
-
├── hooks/
|
|
39
|
-
│ ├── use{Module}List.ts
|
|
40
|
-
│ └── use{Module}Form.ts
|
|
41
|
-
├── type.ts # 独立类型较多时增加
|
|
42
|
-
└── components/ # 存在多个私有视图时增加
|
|
43
|
-
├── {Module}Table.vue
|
|
44
|
-
└── {Module}Modal.vue
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
```vue
|
|
48
|
-
<script setup lang="ts">
|
|
49
|
-
import { useModuleList } from './hooks/useModuleList';
|
|
50
|
-
import { useModuleForm } from './hooks/useModuleForm';
|
|
51
|
-
|
|
52
|
-
const list = useModuleList();
|
|
53
|
-
const form = useModuleForm({ onSuccess: list.fetchData });
|
|
54
|
-
</script>
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
## 交付检查清单
|
|
58
|
-
|
|
59
|
-
- [ ] 目录拆分完整,职责清晰。
|
|
60
|
-
- [ ] `index.vue` 不超过 150 行,且仅负责组合和渲染。
|
|
61
|
-
- [ ] 类型定义与常量已抽离,不在页面内硬编码。
|
|
62
|
-
- [ ] hooks 可复用且命名清晰(`useXxx`)。
|
|
63
|
-
- [ ] 样式已抽离到 `style.less`,SFC 样式块已 scoped。
|
|
64
|
-
- [ ] 页面导入组件来源符合组件选型规则。
|
|
65
|
-
- [ ] 若包含表单,已选择对应 Formily skill。
|
|
66
|
-
|
|
67
|
-
## 失败兜底策略
|
|
68
|
-
|
|
69
|
-
- 当需求不清晰时,先落地最小骨架(列表区 + 操作区 + 弹窗占位),再增量填充。
|
|
70
|
-
- 当页面复杂度超预期时,优先继续拆 hooks 和私有组件,而不是在 `index.vue` 堆逻辑。
|
|
71
|
-
- 若组件是否封装存在歧义,回退到 `component-selection-imports` 先判定导入来源。
|
|
72
|
-
|
|
73
|
-
## 示例
|
|
74
|
-
|
|
75
|
-
- `./examples/StandardListPage/`
|
|
76
|
-
- `./examples/AdvancedFormPage/`
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { OperatorOption, OptionItem } from '@yss-ui/components';
|
|
2
|
-
|
|
3
|
-
/** 表单字典选项。 */
|
|
4
|
-
export interface FormOptions {
|
|
5
|
-
intensity: Array<{ label: string; value: string }>;
|
|
6
|
-
errorStorageType: Array<{ label: string; value: string }>;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
/** 规则配置表单字典。 */
|
|
10
|
-
export const FORM_OPTIONS: FormOptions = {
|
|
11
|
-
intensity: [
|
|
12
|
-
{ label: '弱规则', value: 'WEAK' },
|
|
13
|
-
{ label: '强规则', value: 'STRONG' },
|
|
14
|
-
],
|
|
15
|
-
errorStorageType: [
|
|
16
|
-
{ label: '文件服务', value: 'FILE_SYSTEM' },
|
|
17
|
-
{ label: '数据落地表', value: 'DATATABLE_SYSTEM' },
|
|
18
|
-
],
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
/** 条件构建器可选字段。 */
|
|
22
|
-
export const FIELD_OPTIONS: OptionItem[] = [
|
|
23
|
-
{ label: '用户编号', value: 'userId' },
|
|
24
|
-
{ label: '金额', value: 'amount' },
|
|
25
|
-
{ label: '状态', value: 'status' },
|
|
26
|
-
];
|
|
27
|
-
|
|
28
|
-
/** 条件构建器操作符。 */
|
|
29
|
-
export const RULE_OPERATOR_OPTIONS: OperatorOption[] = [
|
|
30
|
-
{ label: '等于', value: '=', kind: 'single' },
|
|
31
|
-
{ label: '大于', value: '>', kind: 'single' },
|
|
32
|
-
{ label: '介于', value: 'between', kind: 'between' },
|
|
33
|
-
{ label: '包含于', value: 'in', kind: 'multiple' },
|
|
34
|
-
];
|
package/template/.codex/skills/page-skeleton/examples/AdvancedFormPage/hooks/useRuleConfig.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { reactive, ref } from 'vue';
|
|
2
|
-
import { message } from 'ant-design-vue';
|
|
3
|
-
import type { ConditionGroup, OptionItem } from '@yss-ui/components';
|
|
4
|
-
import { FIELD_OPTIONS, RULE_OPERATOR_OPTIONS } from '../constant';
|
|
5
|
-
|
|
6
|
-
/** 创建空条件组。 */
|
|
7
|
-
const createEmptyGroup = (id: string): ConditionGroup => ({
|
|
8
|
-
id,
|
|
9
|
-
type: 'GROUP',
|
|
10
|
-
logicalOp: 'AND',
|
|
11
|
-
children: [],
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
/** 按关键词筛选条件字段。 */
|
|
15
|
-
const filterFields = (keyword: string): OptionItem[] => {
|
|
16
|
-
const normalizedKeyword = keyword.trim().toLowerCase();
|
|
17
|
-
if (!normalizedKeyword) return FIELD_OPTIONS;
|
|
18
|
-
return FIELD_OPTIONS.filter(item =>
|
|
19
|
-
[item.label, item.value].some(value =>
|
|
20
|
-
String(value ?? '')
|
|
21
|
-
.toLowerCase()
|
|
22
|
-
.includes(normalizedKeyword)
|
|
23
|
-
)
|
|
24
|
-
);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
/** 管理条件构建器与预览状态。 */
|
|
28
|
-
export const useRuleConfig = () => {
|
|
29
|
-
const filterCondition = ref<ConditionGroup>(createEmptyGroup('filter-root'));
|
|
30
|
-
const checkCondition = ref<ConditionGroup>(createEmptyGroup('check-root'));
|
|
31
|
-
const filterPreview = ref('');
|
|
32
|
-
const checkPreview = ref('');
|
|
33
|
-
const loading = reactive({ filterPreview: false, checkPreview: false });
|
|
34
|
-
|
|
35
|
-
/** 为 YConditionBuilder 加载可搜索字段。 */
|
|
36
|
-
const loadFields = async (keyword: string): Promise<OptionItem[]> => filterFields(keyword);
|
|
37
|
-
|
|
38
|
-
/** 生成条件 JSON 预览。 */
|
|
39
|
-
const generatePreview = async (
|
|
40
|
-
condition: ConditionGroup,
|
|
41
|
-
target: 'filterPreview' | 'checkPreview'
|
|
42
|
-
): Promise<void> => {
|
|
43
|
-
if (!condition.children.length) {
|
|
44
|
-
message.warning('请先配置完整条件');
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
loading[target] = true;
|
|
49
|
-
try {
|
|
50
|
-
const preview = JSON.stringify(condition, null, 2);
|
|
51
|
-
if (target === 'filterPreview') filterPreview.value = preview;
|
|
52
|
-
else checkPreview.value = preview;
|
|
53
|
-
} finally {
|
|
54
|
-
loading[target] = false;
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
/** 生成校验范围预览。 */
|
|
59
|
-
const generateFilterPreview = (): Promise<void> => generatePreview(filterCondition.value, 'filterPreview');
|
|
60
|
-
|
|
61
|
-
/** 生成校验表达式预览。 */
|
|
62
|
-
const generateCheckPreview = (): Promise<void> => generatePreview(checkCondition.value, 'checkPreview');
|
|
63
|
-
|
|
64
|
-
return {
|
|
65
|
-
filterCondition,
|
|
66
|
-
checkCondition,
|
|
67
|
-
filterPreview,
|
|
68
|
-
checkPreview,
|
|
69
|
-
loading,
|
|
70
|
-
operatorOptions: RULE_OPERATOR_OPTIONS,
|
|
71
|
-
loadFields,
|
|
72
|
-
generateFilterPreview,
|
|
73
|
-
generateCheckPreview,
|
|
74
|
-
};
|
|
75
|
-
};
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { computed, ref } from 'vue';
|
|
3
|
-
import { YButton, YCard, YConditionBuilder, YFormily } from '@yss-ui/components';
|
|
4
|
-
import { FORM_OPTIONS } from './constant';
|
|
5
|
-
import { useRuleConfig } from './hooks/useRuleConfig';
|
|
6
|
-
import { ruleConfigSchema } from './schemas/ruleConfigSchema';
|
|
7
|
-
|
|
8
|
-
defineOptions({ name: 'AdvancedFormPage' });
|
|
9
|
-
|
|
10
|
-
/** YFormily 校验实例。 */
|
|
11
|
-
interface FormilyRef {
|
|
12
|
-
submit: () => Promise<Record<string, unknown>>;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/** YConditionBuilder 校验实例。 */
|
|
16
|
-
interface ConditionBuilderRef {
|
|
17
|
-
validate: () => boolean;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
const formData = ref<Record<string, unknown>>({
|
|
21
|
-
intensity: 'WEAK',
|
|
22
|
-
errorStorage: true,
|
|
23
|
-
errorStorageLimit: 1000,
|
|
24
|
-
errorStorageType: 'FILE_SYSTEM',
|
|
25
|
-
});
|
|
26
|
-
const schema = computed(() => ruleConfigSchema(FORM_OPTIONS));
|
|
27
|
-
const formRef = ref<FormilyRef>();
|
|
28
|
-
const filterBuilderRef = ref<ConditionBuilderRef>();
|
|
29
|
-
const checkBuilderRef = ref<ConditionBuilderRef>();
|
|
30
|
-
const {
|
|
31
|
-
filterCondition,
|
|
32
|
-
checkCondition,
|
|
33
|
-
filterPreview,
|
|
34
|
-
checkPreview,
|
|
35
|
-
loading,
|
|
36
|
-
operatorOptions,
|
|
37
|
-
loadFields,
|
|
38
|
-
generateFilterPreview,
|
|
39
|
-
generateCheckPreview,
|
|
40
|
-
} = useRuleConfig();
|
|
41
|
-
|
|
42
|
-
/** 校验表单与指定条件构建器。 */
|
|
43
|
-
const validateBeforeGenerate = async (builder?: ConditionBuilderRef): Promise<boolean> => {
|
|
44
|
-
if (!formRef.value || !builder) return false;
|
|
45
|
-
try {
|
|
46
|
-
await formRef.value.submit();
|
|
47
|
-
} catch {
|
|
48
|
-
return false;
|
|
49
|
-
}
|
|
50
|
-
return builder.validate();
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
/** 校验后生成校验范围预览。 */
|
|
54
|
-
const handleGenerateFilterPreview = async (): Promise<void> => {
|
|
55
|
-
if (await validateBeforeGenerate(filterBuilderRef.value)) await generateFilterPreview();
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
/** 校验后生成校验表达式预览。 */
|
|
59
|
-
const handleGenerateCheckPreview = async (): Promise<void> => {
|
|
60
|
-
if (await validateBeforeGenerate(checkBuilderRef.value)) await generateCheckPreview();
|
|
61
|
-
};
|
|
62
|
-
</script>
|
|
63
|
-
|
|
64
|
-
<template>
|
|
65
|
-
<div class="rule-config-page">
|
|
66
|
-
<YCard class="rule-config-page__content">
|
|
67
|
-
<YFormily ref="formRef" v-model="formData" :schema="schema">
|
|
68
|
-
<template #conditionFilter>
|
|
69
|
-
<YConditionBuilder
|
|
70
|
-
ref="filterBuilderRef"
|
|
71
|
-
v-model="filterCondition"
|
|
72
|
-
:load-fields="loadFields"
|
|
73
|
-
:operator-options="operatorOptions"
|
|
74
|
-
/>
|
|
75
|
-
</template>
|
|
76
|
-
<template #filterPreview>
|
|
77
|
-
<div class="rule-config-page__preview">
|
|
78
|
-
<pre>{{ filterPreview || '配置校验范围后生成预览' }}</pre>
|
|
79
|
-
<YButton type="primary" :loading="loading.filterPreview" @click="handleGenerateFilterPreview">
|
|
80
|
-
生成校验范围
|
|
81
|
-
</YButton>
|
|
82
|
-
</div>
|
|
83
|
-
</template>
|
|
84
|
-
<template #checkCondition>
|
|
85
|
-
<YConditionBuilder
|
|
86
|
-
ref="checkBuilderRef"
|
|
87
|
-
v-model="checkCondition"
|
|
88
|
-
:load-fields="loadFields"
|
|
89
|
-
:operator-options="operatorOptions"
|
|
90
|
-
/>
|
|
91
|
-
</template>
|
|
92
|
-
<template #checkPreview>
|
|
93
|
-
<div class="rule-config-page__preview">
|
|
94
|
-
<pre>{{ checkPreview || '配置校验表达式后生成预览' }}</pre>
|
|
95
|
-
<YButton type="primary" :loading="loading.checkPreview" @click="handleGenerateCheckPreview">
|
|
96
|
-
生成校验表达式
|
|
97
|
-
</YButton>
|
|
98
|
-
</div>
|
|
99
|
-
</template>
|
|
100
|
-
</YFormily>
|
|
101
|
-
</YCard>
|
|
102
|
-
</div>
|
|
103
|
-
</template>
|
|
104
|
-
|
|
105
|
-
<style scoped lang="less">
|
|
106
|
-
@import url('./style.less');
|
|
107
|
-
</style>
|
package/template/.codex/skills/page-skeleton/examples/AdvancedFormPage/schemas/ruleConfigSchema.ts
DELETED
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 规则配置表单Schema
|
|
3
|
-
* 包含:Grid布局、表单分组、字段联动 (Reactions)、Slot插槽
|
|
4
|
-
*/
|
|
5
|
-
import type { FormOptions } from '../constant';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* 规则配置Schema
|
|
9
|
-
* @param formOptions 表单选项数据
|
|
10
|
-
*/
|
|
11
|
-
export const ruleConfigSchema = (formOptions: FormOptions): Record<string, any> => ({
|
|
12
|
-
type: 'object',
|
|
13
|
-
properties: {
|
|
14
|
-
layout: {
|
|
15
|
-
type: 'void',
|
|
16
|
-
'x-component': 'FormLayout',
|
|
17
|
-
'x-component-props': {
|
|
18
|
-
layout: 'horizontal',
|
|
19
|
-
labelWidth: 110, // ← 根据最长 label 确定(一般 5 个字约 100px,这里稍大)
|
|
20
|
-
labelAlign: 'right', // ← 必须右对齐
|
|
21
|
-
},
|
|
22
|
-
properties: {
|
|
23
|
-
grid: {
|
|
24
|
-
type: 'void',
|
|
25
|
-
'x-component': 'FormGrid',
|
|
26
|
-
'x-component-props': {
|
|
27
|
-
maxColumns: 3,
|
|
28
|
-
minColumns: 1,
|
|
29
|
-
columnGap: 16,
|
|
30
|
-
rowGap: 0,
|
|
31
|
-
},
|
|
32
|
-
properties: {
|
|
33
|
-
// -------------------------------------------------------------
|
|
34
|
-
// 分组1:规则配置
|
|
35
|
-
// -------------------------------------------------------------
|
|
36
|
-
ruleConfigHeader: {
|
|
37
|
-
type: 'void',
|
|
38
|
-
title: '规则配置',
|
|
39
|
-
'x-decorator': 'FormItem',
|
|
40
|
-
'x-decorator-props': {
|
|
41
|
-
feedbackLayout: 'none',
|
|
42
|
-
colon: false,
|
|
43
|
-
gridSpan: 3,
|
|
44
|
-
labelWidth: 0,
|
|
45
|
-
wrapperCol: { span: 24 },
|
|
46
|
-
},
|
|
47
|
-
'x-component': 'GroupHeader', // 自定义组件 or 标题组件
|
|
48
|
-
},
|
|
49
|
-
intensity: {
|
|
50
|
-
type: 'string',
|
|
51
|
-
title: '规则强度',
|
|
52
|
-
required: true,
|
|
53
|
-
'x-decorator': 'FormItem',
|
|
54
|
-
'x-component': 'Radio.Group',
|
|
55
|
-
enum: formOptions.intensity,
|
|
56
|
-
},
|
|
57
|
-
// 开关字段,控制其他字段显示
|
|
58
|
-
errorStorage: {
|
|
59
|
-
type: 'boolean',
|
|
60
|
-
title: '异常存储',
|
|
61
|
-
required: true,
|
|
62
|
-
'x-decorator': 'FormItem',
|
|
63
|
-
'x-component': 'Switch',
|
|
64
|
-
'x-component-props': {
|
|
65
|
-
checkedChildren: '开',
|
|
66
|
-
unCheckedChildren: '关',
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
// 受控字段:异常限制 (当 errorStorage=true 时显示)
|
|
70
|
-
errorStorageLimit: {
|
|
71
|
-
type: 'number',
|
|
72
|
-
title: '异常限制',
|
|
73
|
-
'x-decorator': 'FormItem',
|
|
74
|
-
'x-component': 'NumberPicker',
|
|
75
|
-
'x-component-props': {
|
|
76
|
-
placeholder: '请输入异常限制',
|
|
77
|
-
style: { width: '100%' },
|
|
78
|
-
},
|
|
79
|
-
'x-reactions': {
|
|
80
|
-
dependencies: ['errorStorage'],
|
|
81
|
-
fulfill: {
|
|
82
|
-
state: {
|
|
83
|
-
visible: '{{$deps[0]}}',
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
// -------------------------------------------------------------
|
|
90
|
-
// 分组2:异常数据存储
|
|
91
|
-
// 这里的 GroupHeader 本身也受 errorStorage 控制显示
|
|
92
|
-
// -------------------------------------------------------------
|
|
93
|
-
exceptionDataHeader: {
|
|
94
|
-
type: 'void',
|
|
95
|
-
title: '异常数据存储',
|
|
96
|
-
'x-decorator': 'FormItem',
|
|
97
|
-
'x-decorator-props': {
|
|
98
|
-
feedbackLayout: 'none',
|
|
99
|
-
colon: false,
|
|
100
|
-
gridSpan: 3,
|
|
101
|
-
labelWidth: 0,
|
|
102
|
-
wrapperCol: { span: 24 },
|
|
103
|
-
},
|
|
104
|
-
'x-component': 'GroupHeader',
|
|
105
|
-
'x-reactions': {
|
|
106
|
-
dependencies: ['errorStorage'],
|
|
107
|
-
fulfill: {
|
|
108
|
-
state: {
|
|
109
|
-
visible: '{{$deps[0]}}',
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
},
|
|
114
|
-
errorStorageType: {
|
|
115
|
-
type: 'string',
|
|
116
|
-
title: '存储方式',
|
|
117
|
-
required: true,
|
|
118
|
-
'x-decorator': 'FormItem',
|
|
119
|
-
'x-component': 'Select',
|
|
120
|
-
'x-component-props': {
|
|
121
|
-
placeholder: '请选择存储方式',
|
|
122
|
-
},
|
|
123
|
-
enum: formOptions.errorStorageType,
|
|
124
|
-
'x-reactions': {
|
|
125
|
-
dependencies: ['errorStorage'],
|
|
126
|
-
fulfill: {
|
|
127
|
-
state: {
|
|
128
|
-
visible: '{{$deps[0]}}',
|
|
129
|
-
},
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
errorStorageName: {
|
|
134
|
-
type: 'string',
|
|
135
|
-
title: '存储名称',
|
|
136
|
-
required: true,
|
|
137
|
-
'x-decorator': 'FormItem',
|
|
138
|
-
'x-decorator-props': {
|
|
139
|
-
gridSpan: 1,
|
|
140
|
-
},
|
|
141
|
-
'x-component': 'Input',
|
|
142
|
-
'x-component-props': {
|
|
143
|
-
placeholder: '请选择异常数据存储名称',
|
|
144
|
-
},
|
|
145
|
-
'x-reactions': {
|
|
146
|
-
dependencies: ['errorStorage'],
|
|
147
|
-
fulfill: {
|
|
148
|
-
state: {
|
|
149
|
-
visible: '{{$deps[0]}}',
|
|
150
|
-
},
|
|
151
|
-
},
|
|
152
|
-
},
|
|
153
|
-
},
|
|
154
|
-
errorStoragePath: {
|
|
155
|
-
type: 'string',
|
|
156
|
-
title: '存储地址',
|
|
157
|
-
'x-decorator': 'FormItem',
|
|
158
|
-
'x-decorator-props': {
|
|
159
|
-
gridSpan: 1,
|
|
160
|
-
},
|
|
161
|
-
'x-component': 'Input',
|
|
162
|
-
'x-component-props': {
|
|
163
|
-
placeholder: '请输入异常数据存储地址',
|
|
164
|
-
},
|
|
165
|
-
// 也可以配置 reactions
|
|
166
|
-
},
|
|
167
|
-
|
|
168
|
-
// -------------------------------------------------------------
|
|
169
|
-
// 分组3:校验规则 (使用 Slot 自定义渲染)
|
|
170
|
-
// -------------------------------------------------------------
|
|
171
|
-
filterHeader: {
|
|
172
|
-
type: 'void',
|
|
173
|
-
title: '校验规则',
|
|
174
|
-
'x-decorator': 'FormItem',
|
|
175
|
-
'x-decorator-props': {
|
|
176
|
-
feedbackLayout: 'none',
|
|
177
|
-
colon: false,
|
|
178
|
-
gridSpan: 3,
|
|
179
|
-
labelWidth: 0,
|
|
180
|
-
wrapperCol: { span: 24 },
|
|
181
|
-
},
|
|
182
|
-
'x-component': 'GroupHeader',
|
|
183
|
-
},
|
|
184
|
-
// Slot:校验范围构建器
|
|
185
|
-
conditionFilter: {
|
|
186
|
-
type: 'object',
|
|
187
|
-
title: '校验范围',
|
|
188
|
-
'x-decorator': 'FormItem',
|
|
189
|
-
'x-decorator-props': {
|
|
190
|
-
gridSpan: 3, // 占满一行
|
|
191
|
-
},
|
|
192
|
-
'x-component': 'Slot', // 关键:使用 Slot 组件
|
|
193
|
-
'x-component-props': {
|
|
194
|
-
name: 'conditionFilter', // 对应 <template #conditionFilter>
|
|
195
|
-
},
|
|
196
|
-
},
|
|
197
|
-
// Slot:条件结构预览
|
|
198
|
-
filterPreview: {
|
|
199
|
-
type: 'string',
|
|
200
|
-
title: '预览',
|
|
201
|
-
'x-decorator': 'FormItem',
|
|
202
|
-
'x-decorator-props': {
|
|
203
|
-
gridSpan: 3,
|
|
204
|
-
},
|
|
205
|
-
'x-component': 'Slot',
|
|
206
|
-
'x-component-props': {
|
|
207
|
-
name: 'filterPreview',
|
|
208
|
-
},
|
|
209
|
-
},
|
|
210
|
-
|
|
211
|
-
// -------------------------------------------------------------
|
|
212
|
-
// 分组4:校验设置
|
|
213
|
-
// -------------------------------------------------------------
|
|
214
|
-
checkHeader: {
|
|
215
|
-
type: 'void',
|
|
216
|
-
title: '校验设置',
|
|
217
|
-
'x-decorator': 'FormItem',
|
|
218
|
-
'x-decorator-props': {
|
|
219
|
-
feedbackLayout: 'none',
|
|
220
|
-
colon: false,
|
|
221
|
-
gridSpan: 3,
|
|
222
|
-
labelWidth: 0,
|
|
223
|
-
wrapperCol: { span: 24 },
|
|
224
|
-
},
|
|
225
|
-
'x-component': 'GroupHeader',
|
|
226
|
-
},
|
|
227
|
-
checkCondition: {
|
|
228
|
-
type: 'object',
|
|
229
|
-
title: '校验配置',
|
|
230
|
-
'x-decorator': 'FormItem',
|
|
231
|
-
'x-decorator-props': {
|
|
232
|
-
gridSpan: 3,
|
|
233
|
-
},
|
|
234
|
-
'x-component': 'Slot',
|
|
235
|
-
'x-component-props': {
|
|
236
|
-
name: 'checkCondition',
|
|
237
|
-
},
|
|
238
|
-
},
|
|
239
|
-
checkPreview: {
|
|
240
|
-
type: 'string',
|
|
241
|
-
title: '预览',
|
|
242
|
-
'x-decorator': 'FormItem',
|
|
243
|
-
'x-decorator-props': {
|
|
244
|
-
gridSpan: 3,
|
|
245
|
-
},
|
|
246
|
-
'x-component': 'Slot',
|
|
247
|
-
'x-component-props': {
|
|
248
|
-
name: 'checkPreview',
|
|
249
|
-
},
|
|
250
|
-
},
|
|
251
|
-
},
|
|
252
|
-
},
|
|
253
|
-
},
|
|
254
|
-
},
|
|
255
|
-
},
|
|
256
|
-
});
|