create-yss-spec 2.1.15 → 2.2.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 +6 -2
- package/package.json +1 -1
- package/src/cli.js +276 -15
- package/template/.agents/rules/yss-ai-skills.md +59 -0
- package/template/.agents/skills/.yss-skills-manifest.json +28 -0
- package/template/.agents/skills/component-selection-imports/SKILL.md +64 -0
- package/template/.agents/skills/cross-repo-implementation-routing/SKILL.md +2 -2
- package/template/.agents/skills/file-export-download/SKILL.md +160 -0
- package/template/.agents/skills/file-export-download/agents/openai.yaml +4 -0
- package/template/.agents/skills/formily-foundation/SKILL.md +176 -0
- package/template/.agents/skills/formily-foundation/references/examples.md +486 -0
- package/template/.agents/skills/formily-linkage-effects/SKILL.md +167 -0
- package/template/.agents/skills/formily-mode-slot-detail/SKILL.md +137 -0
- package/template/.agents/skills/formily-step-flow/SKILL.md +194 -0
- package/template/.agents/skills/frontend-commit/SKILL.md +118 -0
- package/template/.agents/skills/frontend-commit/agents/openai.yaml +7 -0
- package/template/.agents/skills/frontend-commit/references/scope-and-examples.md +111 -0
- package/template/.agents/skills/implementation-repo-onboarding/SKILL.md +5 -5
- package/template/.agents/skills/java-backend-commit/SKILL.md +121 -0
- package/template/.agents/skills/java-backend-commit/agents/openai.yaml +7 -0
- package/template/.agents/skills/java-backend-commit/references/scope-and-examples.md +118 -0
- package/template/.agents/skills/llm-wiki/SKILL.md +1 -1
- package/template/.agents/skills/llm-wiki/references/discover.md +1 -0
- package/template/.agents/skills/page-form-module/SKILL.md +168 -0
- package/template/.agents/skills/page-list-module/SKILL.md +137 -0
- package/template/.agents/skills/page-skeleton/SKILL.md +76 -0
- package/template/.agents/skills/page-skeleton/examples/AdvancedFormPage/constant.ts +34 -0
- package/template/.agents/skills/page-skeleton/examples/AdvancedFormPage/hooks/useRuleConfig.ts +75 -0
- package/template/.agents/skills/page-skeleton/examples/AdvancedFormPage/index.vue +107 -0
- package/template/.agents/skills/page-skeleton/examples/AdvancedFormPage/schemas/ruleConfigSchema.ts +256 -0
- package/template/.agents/skills/page-skeleton/examples/AdvancedFormPage/style.less +30 -0
- package/template/.agents/skills/page-skeleton/examples/StandardListPage/constant.ts +28 -0
- package/template/.agents/skills/page-skeleton/examples/StandardListPage/hooks/useQualityRuleList.ts +58 -0
- package/template/.agents/skills/page-skeleton/examples/StandardListPage/hooks/useRuleActions.ts +65 -0
- package/template/.agents/skills/page-skeleton/examples/StandardListPage/index.vue +91 -0
- package/template/.agents/skills/page-skeleton/examples/StandardListPage/style.less +49 -0
- package/template/.agents/skills/prototype-page-acceptance/SKILL.md +62 -0
- package/template/.agents/skills/theme-token-usage/SKILL.md +123 -0
- package/template/.agents/skills/theme-token-usage/agents/openai.yaml +4 -0
- package/template/.agents/skills/vue3-best-practices/SKILL.md +68 -0
- package/template/.agents/skills/yedit-table-usage/SKILL.md +227 -0
- package/template/.agents/skills/yss-api-integration/SKILL.md +12 -2
- package/template/.agents/skills/yss-components/SKILL.md +1 -1
- package/template/.agents/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
- package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +30 -3
- package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +52 -0
- package/template/.agents/skills/yss-design-system/SKILL.md +1 -1
- package/template/.agents/skills/yss-formily/SKILL.md +233 -265
- package/template/.agents/skills/yss-frontend-scaffold-generator/SKILL.md +2 -2
- package/template/.agents/skills/yss-hook/SKILL.md +1 -1
- package/template/.agents/skills/yss-openapi-governance/SKILL.md +2 -2
- package/template/.agents/skills/yss-page-module-development/SKILL.md +12 -2
- package/template/.agents/skills/yss-page-module-development/references/component-map.md +34 -0
- package/template/.agents/skills/yss-page-module-development/references/hooks-map.md +11 -0
- package/template/.agents/skills/yss-page-module-development/references/utils-map.md +14 -0
- package/template/.agents/skills/yss-product-lifecycle/references/matt-yss-adapter.md +1 -1
- package/template/.agents/skills/yss-product-lifecycle/references/orchestration-contract.yaml +86 -1
- package/template/.agents/skills/yss-product-lifecycle/references/orchestration.md +2 -0
- package/template/.agents/skills/yss-product-lifecycle/references/state-model.md +1 -1
- package/template/.agents/skills/yss-router/SKILL.md +1 -1
- package/template/.agents/skills/yss-router/references/boundaries.md +1 -1
- package/template/.agents/skills/yss-router/references/router-contract.yaml +26 -2
- package/template/.agents/skills/yss-router/references/slice-implementation-contract.md +1 -1
- package/template/.agents/skills/yss-ui/SKILL.md +1 -1
- package/template/.agents/skills/yss-use-table-height/SKILL.md +9 -0
- package/template/.agents/skills/yss-use-tree-height/SKILL.md +9 -0
- package/template/.agents/skills/ytable-usage/SKILL.md +251 -0
- package/template/.agents/skills/ytree-usage/SKILL.md +132 -0
- package/template/.claude/skills/.yss-skills-manifest.json +29 -0
- package/template/.claude/skills/component-selection-imports/SKILL.md +64 -0
- package/template/.claude/skills/cross-repo-implementation-routing/SKILL.md +2 -2
- package/template/.claude/skills/file-export-download/SKILL.md +160 -0
- package/template/.claude/skills/file-export-download/agents/openai.yaml +4 -0
- package/template/.claude/skills/formily-foundation/SKILL.md +176 -0
- package/template/.claude/skills/formily-foundation/references/examples.md +486 -0
- package/template/.claude/skills/formily-linkage-effects/SKILL.md +167 -0
- package/template/.claude/skills/formily-mode-slot-detail/SKILL.md +137 -0
- package/template/.claude/skills/formily-step-flow/SKILL.md +194 -0
- package/template/.claude/skills/frontend-commit/SKILL.md +118 -0
- package/template/.claude/skills/frontend-commit/agents/openai.yaml +7 -0
- package/template/.claude/skills/frontend-commit/references/scope-and-examples.md +111 -0
- package/template/.claude/skills/implementation-repo-onboarding/SKILL.md +5 -5
- package/template/.claude/skills/java-backend-commit/SKILL.md +121 -0
- package/template/.claude/skills/java-backend-commit/agents/openai.yaml +7 -0
- package/template/.claude/skills/java-backend-commit/references/scope-and-examples.md +118 -0
- package/template/.claude/skills/llm-wiki/SKILL.md +1 -1
- package/template/.claude/skills/llm-wiki/references/discover.md +1 -0
- package/template/.claude/skills/page-form-module/SKILL.md +168 -0
- package/template/.claude/skills/page-list-module/SKILL.md +137 -0
- package/template/.claude/skills/page-skeleton/SKILL.md +76 -0
- package/template/.claude/skills/page-skeleton/examples/AdvancedFormPage/constant.ts +34 -0
- package/template/.claude/skills/page-skeleton/examples/AdvancedFormPage/hooks/useRuleConfig.ts +75 -0
- package/template/.claude/skills/page-skeleton/examples/AdvancedFormPage/index.vue +107 -0
- package/template/.claude/skills/page-skeleton/examples/AdvancedFormPage/schemas/ruleConfigSchema.ts +256 -0
- package/template/.claude/skills/page-skeleton/examples/AdvancedFormPage/style.less +30 -0
- package/template/.claude/skills/page-skeleton/examples/StandardListPage/constant.ts +28 -0
- package/template/.claude/skills/page-skeleton/examples/StandardListPage/hooks/useQualityRuleList.ts +58 -0
- package/template/.claude/skills/page-skeleton/examples/StandardListPage/hooks/useRuleActions.ts +65 -0
- package/template/.claude/skills/page-skeleton/examples/StandardListPage/index.vue +91 -0
- package/template/.claude/skills/page-skeleton/examples/StandardListPage/style.less +49 -0
- package/template/.claude/skills/prototype-page-acceptance/SKILL.md +62 -0
- package/template/.claude/skills/theme-token-usage/SKILL.md +123 -0
- package/template/.claude/skills/theme-token-usage/agents/openai.yaml +4 -0
- package/template/.claude/skills/vue3-best-practices/SKILL.md +68 -0
- package/template/.claude/skills/yedit-table-usage/SKILL.md +227 -0
- package/template/.claude/skills/yss-api-integration/SKILL.md +12 -2
- package/template/.claude/skills/yss-components/SKILL.md +1 -1
- package/template/.claude/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
- package/template/.claude/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +30 -3
- package/template/.claude/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +52 -0
- package/template/.claude/skills/yss-design-system/SKILL.md +1 -1
- package/template/.claude/skills/yss-formily/SKILL.md +233 -265
- package/template/.claude/skills/yss-frontend-scaffold-generator/SKILL.md +2 -2
- package/template/.claude/skills/yss-hook/SKILL.md +1 -1
- package/template/.claude/skills/yss-openapi-governance/SKILL.md +2 -2
- package/template/.claude/skills/yss-page-module-development/SKILL.md +12 -2
- package/template/.claude/skills/yss-page-module-development/references/component-map.md +34 -0
- package/template/.claude/skills/yss-page-module-development/references/hooks-map.md +11 -0
- package/template/.claude/skills/yss-page-module-development/references/utils-map.md +14 -0
- package/template/.claude/skills/yss-product-lifecycle/references/matt-yss-adapter.md +1 -1
- package/template/.claude/skills/yss-product-lifecycle/references/orchestration-contract.yaml +86 -1
- package/template/.claude/skills/yss-product-lifecycle/references/orchestration.md +2 -0
- package/template/.claude/skills/yss-product-lifecycle/references/state-model.md +1 -1
- package/template/.claude/skills/yss-router/SKILL.md +1 -1
- package/template/.claude/skills/yss-router/references/boundaries.md +1 -1
- package/template/.claude/skills/yss-router/references/router-contract.yaml +26 -2
- package/template/.claude/skills/yss-router/references/slice-implementation-contract.md +1 -1
- package/template/.claude/skills/yss-ui/SKILL.md +1 -1
- package/template/.claude/skills/yss-use-table-height/SKILL.md +9 -0
- package/template/.claude/skills/yss-use-tree-height/SKILL.md +9 -0
- package/template/.claude/skills/ytable-usage/SKILL.md +251 -0
- package/template/.claude/skills/ytree-usage/SKILL.md +132 -0
- package/template/.codex/skills/component-selection-imports/SKILL.md +64 -0
- package/template/.codex/skills/cross-repo-implementation-routing/SKILL.md +2 -2
- package/template/.codex/skills/file-export-download/SKILL.md +160 -0
- package/template/.codex/skills/file-export-download/agents/openai.yaml +4 -0
- package/template/.codex/skills/formily-foundation/SKILL.md +176 -0
- package/template/.codex/skills/formily-foundation/references/examples.md +486 -0
- package/template/.codex/skills/formily-linkage-effects/SKILL.md +167 -0
- package/template/.codex/skills/formily-mode-slot-detail/SKILL.md +137 -0
- package/template/.codex/skills/formily-step-flow/SKILL.md +194 -0
- package/template/.codex/skills/frontend-commit/SKILL.md +118 -0
- package/template/.codex/skills/frontend-commit/agents/openai.yaml +7 -0
- package/template/.codex/skills/frontend-commit/references/scope-and-examples.md +111 -0
- package/template/.codex/skills/implementation-repo-onboarding/SKILL.md +5 -5
- package/template/.codex/skills/java-backend-commit/SKILL.md +121 -0
- package/template/.codex/skills/java-backend-commit/agents/openai.yaml +7 -0
- package/template/.codex/skills/java-backend-commit/references/scope-and-examples.md +118 -0
- package/template/.codex/skills/llm-wiki/SKILL.md +1 -1
- package/template/.codex/skills/llm-wiki/references/discover.md +1 -0
- package/template/.codex/skills/page-form-module/SKILL.md +168 -0
- package/template/.codex/skills/page-list-module/SKILL.md +137 -0
- package/template/.codex/skills/page-skeleton/SKILL.md +76 -0
- package/template/.codex/skills/page-skeleton/examples/AdvancedFormPage/constant.ts +34 -0
- package/template/.codex/skills/page-skeleton/examples/AdvancedFormPage/hooks/useRuleConfig.ts +75 -0
- package/template/.codex/skills/page-skeleton/examples/AdvancedFormPage/index.vue +107 -0
- package/template/.codex/skills/page-skeleton/examples/AdvancedFormPage/schemas/ruleConfigSchema.ts +256 -0
- package/template/.codex/skills/page-skeleton/examples/AdvancedFormPage/style.less +30 -0
- package/template/.codex/skills/page-skeleton/examples/StandardListPage/constant.ts +28 -0
- package/template/.codex/skills/page-skeleton/examples/StandardListPage/hooks/useQualityRuleList.ts +58 -0
- package/template/.codex/skills/page-skeleton/examples/StandardListPage/hooks/useRuleActions.ts +65 -0
- package/template/.codex/skills/page-skeleton/examples/StandardListPage/index.vue +91 -0
- package/template/.codex/skills/page-skeleton/examples/StandardListPage/style.less +49 -0
- package/template/.codex/skills/prototype-page-acceptance/SKILL.md +62 -0
- package/template/.codex/skills/theme-token-usage/SKILL.md +123 -0
- package/template/.codex/skills/theme-token-usage/agents/openai.yaml +4 -0
- package/template/.codex/skills/vue3-best-practices/SKILL.md +68 -0
- package/template/.codex/skills/yedit-table-usage/SKILL.md +227 -0
- package/template/.codex/skills/yss-api-integration/SKILL.md +12 -2
- package/template/.codex/skills/yss-components/SKILL.md +1 -1
- package/template/.codex/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
- package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +30 -3
- package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +52 -0
- package/template/.codex/skills/yss-design-system/SKILL.md +1 -1
- package/template/.codex/skills/yss-formily/SKILL.md +233 -265
- package/template/.codex/skills/yss-frontend-scaffold-generator/SKILL.md +2 -2
- package/template/.codex/skills/yss-hook/SKILL.md +1 -1
- package/template/.codex/skills/yss-openapi-governance/SKILL.md +2 -2
- package/template/.codex/skills/yss-page-module-development/SKILL.md +12 -2
- package/template/.codex/skills/yss-page-module-development/references/component-map.md +34 -0
- package/template/.codex/skills/yss-page-module-development/references/hooks-map.md +11 -0
- package/template/.codex/skills/yss-page-module-development/references/utils-map.md +14 -0
- package/template/.codex/skills/yss-product-lifecycle/references/matt-yss-adapter.md +1 -1
- package/template/.codex/skills/yss-product-lifecycle/references/orchestration-contract.yaml +86 -1
- package/template/.codex/skills/yss-product-lifecycle/references/orchestration.md +2 -0
- package/template/.codex/skills/yss-product-lifecycle/references/state-model.md +1 -1
- package/template/.codex/skills/yss-router/SKILL.md +1 -1
- package/template/.codex/skills/yss-router/references/boundaries.md +1 -1
- package/template/.codex/skills/yss-router/references/router-contract.yaml +26 -2
- package/template/.codex/skills/yss-router/references/slice-implementation-contract.md +1 -1
- package/template/.codex/skills/yss-ui/SKILL.md +1 -1
- package/template/.codex/skills/yss-use-table-height/SKILL.md +9 -0
- package/template/.codex/skills/yss-use-tree-height/SKILL.md +9 -0
- package/template/.codex/skills/ytable-usage/SKILL.md +251 -0
- package/template/.codex/skills/ytree-usage/SKILL.md +132 -0
- package/template/.cursor/skills/.yss-skills-manifest.json +29 -0
- package/template/.cursor/skills/component-selection-imports/SKILL.md +64 -0
- package/template/.cursor/skills/cross-repo-implementation-routing/SKILL.md +2 -2
- package/template/.cursor/skills/file-export-download/SKILL.md +160 -0
- package/template/.cursor/skills/file-export-download/agents/openai.yaml +4 -0
- package/template/.cursor/skills/formily-foundation/SKILL.md +176 -0
- package/template/.cursor/skills/formily-foundation/references/examples.md +486 -0
- package/template/.cursor/skills/formily-linkage-effects/SKILL.md +167 -0
- package/template/.cursor/skills/formily-mode-slot-detail/SKILL.md +137 -0
- package/template/.cursor/skills/formily-step-flow/SKILL.md +194 -0
- package/template/.cursor/skills/frontend-commit/SKILL.md +118 -0
- package/template/.cursor/skills/frontend-commit/agents/openai.yaml +7 -0
- package/template/.cursor/skills/frontend-commit/references/scope-and-examples.md +111 -0
- package/template/.cursor/skills/implementation-repo-onboarding/SKILL.md +5 -5
- package/template/.cursor/skills/java-backend-commit/SKILL.md +121 -0
- package/template/.cursor/skills/java-backend-commit/agents/openai.yaml +7 -0
- package/template/.cursor/skills/java-backend-commit/references/scope-and-examples.md +118 -0
- package/template/.cursor/skills/llm-wiki/SKILL.md +1 -1
- package/template/.cursor/skills/llm-wiki/references/discover.md +1 -0
- package/template/.cursor/skills/page-form-module/SKILL.md +168 -0
- package/template/.cursor/skills/page-list-module/SKILL.md +137 -0
- package/template/.cursor/skills/page-skeleton/SKILL.md +76 -0
- package/template/.cursor/skills/page-skeleton/examples/AdvancedFormPage/constant.ts +34 -0
- package/template/.cursor/skills/page-skeleton/examples/AdvancedFormPage/hooks/useRuleConfig.ts +75 -0
- package/template/.cursor/skills/page-skeleton/examples/AdvancedFormPage/index.vue +107 -0
- package/template/.cursor/skills/page-skeleton/examples/AdvancedFormPage/schemas/ruleConfigSchema.ts +256 -0
- package/template/.cursor/skills/page-skeleton/examples/AdvancedFormPage/style.less +30 -0
- package/template/.cursor/skills/page-skeleton/examples/StandardListPage/constant.ts +28 -0
- package/template/.cursor/skills/page-skeleton/examples/StandardListPage/hooks/useQualityRuleList.ts +58 -0
- package/template/.cursor/skills/page-skeleton/examples/StandardListPage/hooks/useRuleActions.ts +65 -0
- package/template/.cursor/skills/page-skeleton/examples/StandardListPage/index.vue +91 -0
- package/template/.cursor/skills/page-skeleton/examples/StandardListPage/style.less +49 -0
- package/template/.cursor/skills/prototype-page-acceptance/SKILL.md +62 -0
- package/template/.cursor/skills/theme-token-usage/SKILL.md +123 -0
- package/template/.cursor/skills/theme-token-usage/agents/openai.yaml +4 -0
- package/template/.cursor/skills/vue3-best-practices/SKILL.md +68 -0
- package/template/.cursor/skills/yedit-table-usage/SKILL.md +227 -0
- package/template/.cursor/skills/yss-api-integration/SKILL.md +12 -2
- package/template/.cursor/skills/yss-components/SKILL.md +1 -1
- package/template/.cursor/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
- package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +30 -3
- package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +52 -0
- package/template/.cursor/skills/yss-design-system/SKILL.md +1 -1
- package/template/.cursor/skills/yss-formily/SKILL.md +233 -265
- package/template/.cursor/skills/yss-frontend-scaffold-generator/SKILL.md +2 -2
- package/template/.cursor/skills/yss-hook/SKILL.md +1 -1
- package/template/.cursor/skills/yss-openapi-governance/SKILL.md +2 -2
- package/template/.cursor/skills/yss-page-module-development/SKILL.md +12 -2
- package/template/.cursor/skills/yss-page-module-development/references/component-map.md +34 -0
- package/template/.cursor/skills/yss-page-module-development/references/hooks-map.md +11 -0
- package/template/.cursor/skills/yss-page-module-development/references/utils-map.md +14 -0
- package/template/.cursor/skills/yss-product-lifecycle/references/matt-yss-adapter.md +1 -1
- package/template/.cursor/skills/yss-product-lifecycle/references/orchestration-contract.yaml +86 -1
- package/template/.cursor/skills/yss-product-lifecycle/references/orchestration.md +2 -0
- package/template/.cursor/skills/yss-product-lifecycle/references/state-model.md +1 -1
- package/template/.cursor/skills/yss-router/SKILL.md +1 -1
- package/template/.cursor/skills/yss-router/references/boundaries.md +1 -1
- package/template/.cursor/skills/yss-router/references/router-contract.yaml +26 -2
- package/template/.cursor/skills/yss-router/references/slice-implementation-contract.md +1 -1
- package/template/.cursor/skills/yss-ui/SKILL.md +1 -1
- package/template/.cursor/skills/yss-use-table-height/SKILL.md +9 -0
- package/template/.cursor/skills/yss-use-tree-height/SKILL.md +9 -0
- package/template/.cursor/skills/ytable-usage/SKILL.md +251 -0
- package/template/.cursor/skills/ytree-usage/SKILL.md +132 -0
- package/template/.cursorrules +32 -0
- package/template/.hermes/skills/component-selection-imports/SKILL.md +64 -0
- package/template/.hermes/skills/cross-repo-implementation-routing/SKILL.md +2 -2
- package/template/.hermes/skills/file-export-download/SKILL.md +160 -0
- package/template/.hermes/skills/file-export-download/agents/openai.yaml +4 -0
- package/template/.hermes/skills/formily-foundation/SKILL.md +176 -0
- package/template/.hermes/skills/formily-foundation/references/examples.md +486 -0
- package/template/.hermes/skills/formily-linkage-effects/SKILL.md +167 -0
- package/template/.hermes/skills/formily-mode-slot-detail/SKILL.md +137 -0
- package/template/.hermes/skills/formily-step-flow/SKILL.md +194 -0
- package/template/.hermes/skills/frontend-commit/SKILL.md +118 -0
- package/template/.hermes/skills/frontend-commit/agents/openai.yaml +7 -0
- package/template/.hermes/skills/frontend-commit/references/scope-and-examples.md +111 -0
- package/template/.hermes/skills/implementation-repo-onboarding/SKILL.md +5 -5
- package/template/.hermes/skills/java-backend-commit/SKILL.md +121 -0
- package/template/.hermes/skills/java-backend-commit/agents/openai.yaml +7 -0
- package/template/.hermes/skills/java-backend-commit/references/scope-and-examples.md +118 -0
- package/template/.hermes/skills/llm-wiki/SKILL.md +1 -1
- package/template/.hermes/skills/llm-wiki/references/discover.md +1 -0
- package/template/.hermes/skills/page-form-module/SKILL.md +168 -0
- package/template/.hermes/skills/page-list-module/SKILL.md +137 -0
- package/template/.hermes/skills/page-skeleton/SKILL.md +76 -0
- package/template/.hermes/skills/page-skeleton/examples/AdvancedFormPage/constant.ts +34 -0
- package/template/.hermes/skills/page-skeleton/examples/AdvancedFormPage/hooks/useRuleConfig.ts +75 -0
- package/template/.hermes/skills/page-skeleton/examples/AdvancedFormPage/index.vue +107 -0
- package/template/.hermes/skills/page-skeleton/examples/AdvancedFormPage/schemas/ruleConfigSchema.ts +256 -0
- package/template/.hermes/skills/page-skeleton/examples/AdvancedFormPage/style.less +30 -0
- package/template/.hermes/skills/page-skeleton/examples/StandardListPage/constant.ts +28 -0
- package/template/.hermes/skills/page-skeleton/examples/StandardListPage/hooks/useQualityRuleList.ts +58 -0
- package/template/.hermes/skills/page-skeleton/examples/StandardListPage/hooks/useRuleActions.ts +65 -0
- package/template/.hermes/skills/page-skeleton/examples/StandardListPage/index.vue +91 -0
- package/template/.hermes/skills/page-skeleton/examples/StandardListPage/style.less +49 -0
- package/template/.hermes/skills/prototype-page-acceptance/SKILL.md +62 -0
- package/template/.hermes/skills/theme-token-usage/SKILL.md +123 -0
- package/template/.hermes/skills/theme-token-usage/agents/openai.yaml +4 -0
- package/template/.hermes/skills/vue3-best-practices/SKILL.md +68 -0
- package/template/.hermes/skills/yedit-table-usage/SKILL.md +227 -0
- package/template/.hermes/skills/yss-api-integration/SKILL.md +12 -2
- package/template/.hermes/skills/yss-components/SKILL.md +1 -1
- package/template/.hermes/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
- package/template/.hermes/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +30 -3
- package/template/.hermes/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +52 -0
- package/template/.hermes/skills/yss-design-system/SKILL.md +1 -1
- package/template/.hermes/skills/yss-formily/SKILL.md +233 -265
- package/template/.hermes/skills/yss-frontend-scaffold-generator/SKILL.md +2 -2
- package/template/.hermes/skills/yss-hook/SKILL.md +1 -1
- package/template/.hermes/skills/yss-openapi-governance/SKILL.md +2 -2
- package/template/.hermes/skills/yss-page-module-development/SKILL.md +12 -2
- package/template/.hermes/skills/yss-page-module-development/references/component-map.md +34 -0
- package/template/.hermes/skills/yss-page-module-development/references/hooks-map.md +11 -0
- package/template/.hermes/skills/yss-page-module-development/references/utils-map.md +14 -0
- package/template/.hermes/skills/yss-product-lifecycle/references/matt-yss-adapter.md +1 -1
- package/template/.hermes/skills/yss-product-lifecycle/references/orchestration-contract.yaml +86 -1
- package/template/.hermes/skills/yss-product-lifecycle/references/orchestration.md +2 -0
- package/template/.hermes/skills/yss-product-lifecycle/references/state-model.md +1 -1
- package/template/.hermes/skills/yss-router/SKILL.md +1 -1
- package/template/.hermes/skills/yss-router/references/boundaries.md +1 -1
- package/template/.hermes/skills/yss-router/references/router-contract.yaml +26 -2
- package/template/.hermes/skills/yss-router/references/slice-implementation-contract.md +1 -1
- package/template/.hermes/skills/yss-ui/SKILL.md +1 -1
- package/template/.hermes/skills/yss-use-table-height/SKILL.md +9 -0
- package/template/.hermes/skills/yss-use-tree-height/SKILL.md +9 -0
- package/template/.hermes/skills/ytable-usage/SKILL.md +251 -0
- package/template/.hermes/skills/ytree-usage/SKILL.md +132 -0
- package/template/.pi/skills/component-selection-imports/SKILL.md +64 -0
- package/template/.pi/skills/cross-repo-implementation-routing/SKILL.md +2 -2
- package/template/.pi/skills/file-export-download/SKILL.md +160 -0
- package/template/.pi/skills/file-export-download/agents/openai.yaml +4 -0
- package/template/.pi/skills/formily-foundation/SKILL.md +176 -0
- package/template/.pi/skills/formily-foundation/references/examples.md +486 -0
- package/template/.pi/skills/formily-linkage-effects/SKILL.md +167 -0
- package/template/.pi/skills/formily-mode-slot-detail/SKILL.md +137 -0
- package/template/.pi/skills/formily-step-flow/SKILL.md +194 -0
- package/template/.pi/skills/frontend-commit/SKILL.md +118 -0
- package/template/.pi/skills/frontend-commit/agents/openai.yaml +7 -0
- package/template/.pi/skills/frontend-commit/references/scope-and-examples.md +111 -0
- package/template/.pi/skills/implementation-repo-onboarding/SKILL.md +5 -5
- package/template/.pi/skills/java-backend-commit/SKILL.md +121 -0
- package/template/.pi/skills/java-backend-commit/agents/openai.yaml +7 -0
- package/template/.pi/skills/java-backend-commit/references/scope-and-examples.md +118 -0
- package/template/.pi/skills/llm-wiki/SKILL.md +1 -1
- package/template/.pi/skills/llm-wiki/references/discover.md +1 -0
- package/template/.pi/skills/page-form-module/SKILL.md +168 -0
- package/template/.pi/skills/page-list-module/SKILL.md +137 -0
- package/template/.pi/skills/page-skeleton/SKILL.md +76 -0
- package/template/.pi/skills/page-skeleton/examples/AdvancedFormPage/constant.ts +34 -0
- package/template/.pi/skills/page-skeleton/examples/AdvancedFormPage/hooks/useRuleConfig.ts +75 -0
- package/template/.pi/skills/page-skeleton/examples/AdvancedFormPage/index.vue +107 -0
- package/template/.pi/skills/page-skeleton/examples/AdvancedFormPage/schemas/ruleConfigSchema.ts +256 -0
- package/template/.pi/skills/page-skeleton/examples/AdvancedFormPage/style.less +30 -0
- package/template/.pi/skills/page-skeleton/examples/StandardListPage/constant.ts +28 -0
- package/template/.pi/skills/page-skeleton/examples/StandardListPage/hooks/useQualityRuleList.ts +58 -0
- package/template/.pi/skills/page-skeleton/examples/StandardListPage/hooks/useRuleActions.ts +65 -0
- package/template/.pi/skills/page-skeleton/examples/StandardListPage/index.vue +91 -0
- package/template/.pi/skills/page-skeleton/examples/StandardListPage/style.less +49 -0
- package/template/.pi/skills/prototype-page-acceptance/SKILL.md +62 -0
- package/template/.pi/skills/theme-token-usage/SKILL.md +123 -0
- package/template/.pi/skills/theme-token-usage/agents/openai.yaml +4 -0
- package/template/.pi/skills/vue3-best-practices/SKILL.md +68 -0
- package/template/.pi/skills/yedit-table-usage/SKILL.md +227 -0
- package/template/.pi/skills/yss-api-integration/SKILL.md +12 -2
- package/template/.pi/skills/yss-components/SKILL.md +1 -1
- package/template/.pi/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
- package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +30 -3
- package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +52 -0
- package/template/.pi/skills/yss-design-system/SKILL.md +1 -1
- package/template/.pi/skills/yss-formily/SKILL.md +233 -265
- package/template/.pi/skills/yss-frontend-scaffold-generator/SKILL.md +2 -2
- package/template/.pi/skills/yss-hook/SKILL.md +1 -1
- package/template/.pi/skills/yss-openapi-governance/SKILL.md +2 -2
- package/template/.pi/skills/yss-page-module-development/SKILL.md +12 -2
- package/template/.pi/skills/yss-page-module-development/references/component-map.md +34 -0
- package/template/.pi/skills/yss-page-module-development/references/hooks-map.md +11 -0
- package/template/.pi/skills/yss-page-module-development/references/utils-map.md +14 -0
- package/template/.pi/skills/yss-product-lifecycle/references/matt-yss-adapter.md +1 -1
- package/template/.pi/skills/yss-product-lifecycle/references/orchestration-contract.yaml +86 -1
- package/template/.pi/skills/yss-product-lifecycle/references/orchestration.md +2 -0
- package/template/.pi/skills/yss-product-lifecycle/references/state-model.md +1 -1
- package/template/.pi/skills/yss-router/SKILL.md +1 -1
- package/template/.pi/skills/yss-router/references/boundaries.md +1 -1
- package/template/.pi/skills/yss-router/references/router-contract.yaml +26 -2
- package/template/.pi/skills/yss-router/references/slice-implementation-contract.md +1 -1
- package/template/.pi/skills/yss-ui/SKILL.md +1 -1
- package/template/.pi/skills/yss-use-table-height/SKILL.md +9 -0
- package/template/.pi/skills/yss-use-tree-height/SKILL.md +9 -0
- package/template/.pi/skills/ytable-usage/SKILL.md +251 -0
- package/template/.pi/skills/ytree-usage/SKILL.md +132 -0
- package/template/.qoder/skills/component-selection-imports/SKILL.md +64 -0
- package/template/.qoder/skills/cross-repo-implementation-routing/SKILL.md +2 -2
- package/template/.qoder/skills/file-export-download/SKILL.md +160 -0
- package/template/.qoder/skills/file-export-download/agents/openai.yaml +4 -0
- package/template/.qoder/skills/formily-foundation/SKILL.md +176 -0
- package/template/.qoder/skills/formily-foundation/references/examples.md +486 -0
- package/template/.qoder/skills/formily-linkage-effects/SKILL.md +167 -0
- package/template/.qoder/skills/formily-mode-slot-detail/SKILL.md +137 -0
- package/template/.qoder/skills/formily-step-flow/SKILL.md +194 -0
- package/template/.qoder/skills/frontend-commit/SKILL.md +118 -0
- package/template/.qoder/skills/frontend-commit/agents/openai.yaml +7 -0
- package/template/.qoder/skills/frontend-commit/references/scope-and-examples.md +111 -0
- package/template/.qoder/skills/implementation-repo-onboarding/SKILL.md +5 -5
- package/template/.qoder/skills/java-backend-commit/SKILL.md +121 -0
- package/template/.qoder/skills/java-backend-commit/agents/openai.yaml +7 -0
- package/template/.qoder/skills/java-backend-commit/references/scope-and-examples.md +118 -0
- package/template/.qoder/skills/llm-wiki/SKILL.md +1 -1
- package/template/.qoder/skills/llm-wiki/references/discover.md +1 -0
- package/template/.qoder/skills/page-form-module/SKILL.md +168 -0
- package/template/.qoder/skills/page-list-module/SKILL.md +137 -0
- package/template/.qoder/skills/page-skeleton/SKILL.md +76 -0
- package/template/.qoder/skills/page-skeleton/examples/AdvancedFormPage/constant.ts +34 -0
- package/template/.qoder/skills/page-skeleton/examples/AdvancedFormPage/hooks/useRuleConfig.ts +75 -0
- package/template/.qoder/skills/page-skeleton/examples/AdvancedFormPage/index.vue +107 -0
- package/template/.qoder/skills/page-skeleton/examples/AdvancedFormPage/schemas/ruleConfigSchema.ts +256 -0
- package/template/.qoder/skills/page-skeleton/examples/AdvancedFormPage/style.less +30 -0
- package/template/.qoder/skills/page-skeleton/examples/StandardListPage/constant.ts +28 -0
- package/template/.qoder/skills/page-skeleton/examples/StandardListPage/hooks/useQualityRuleList.ts +58 -0
- package/template/.qoder/skills/page-skeleton/examples/StandardListPage/hooks/useRuleActions.ts +65 -0
- package/template/.qoder/skills/page-skeleton/examples/StandardListPage/index.vue +91 -0
- package/template/.qoder/skills/page-skeleton/examples/StandardListPage/style.less +49 -0
- package/template/.qoder/skills/prototype-page-acceptance/SKILL.md +62 -0
- package/template/.qoder/skills/theme-token-usage/SKILL.md +123 -0
- package/template/.qoder/skills/theme-token-usage/agents/openai.yaml +4 -0
- package/template/.qoder/skills/vue3-best-practices/SKILL.md +68 -0
- package/template/.qoder/skills/yedit-table-usage/SKILL.md +227 -0
- package/template/.qoder/skills/yss-api-integration/SKILL.md +12 -2
- package/template/.qoder/skills/yss-components/SKILL.md +1 -1
- package/template/.qoder/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
- package/template/.qoder/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +30 -3
- package/template/.qoder/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +52 -0
- package/template/.qoder/skills/yss-design-system/SKILL.md +1 -1
- package/template/.qoder/skills/yss-formily/SKILL.md +233 -265
- package/template/.qoder/skills/yss-frontend-scaffold-generator/SKILL.md +2 -2
- package/template/.qoder/skills/yss-hook/SKILL.md +1 -1
- package/template/.qoder/skills/yss-openapi-governance/SKILL.md +2 -2
- package/template/.qoder/skills/yss-page-module-development/SKILL.md +12 -2
- package/template/.qoder/skills/yss-page-module-development/references/component-map.md +34 -0
- package/template/.qoder/skills/yss-page-module-development/references/hooks-map.md +11 -0
- package/template/.qoder/skills/yss-page-module-development/references/utils-map.md +14 -0
- package/template/.qoder/skills/yss-product-lifecycle/references/matt-yss-adapter.md +1 -1
- package/template/.qoder/skills/yss-product-lifecycle/references/orchestration-contract.yaml +86 -1
- package/template/.qoder/skills/yss-product-lifecycle/references/orchestration.md +2 -0
- package/template/.qoder/skills/yss-product-lifecycle/references/state-model.md +1 -1
- package/template/.qoder/skills/yss-router/SKILL.md +1 -1
- package/template/.qoder/skills/yss-router/references/boundaries.md +1 -1
- package/template/.qoder/skills/yss-router/references/router-contract.yaml +26 -2
- package/template/.qoder/skills/yss-router/references/slice-implementation-contract.md +1 -1
- package/template/.qoder/skills/yss-ui/SKILL.md +1 -1
- package/template/.qoder/skills/yss-use-table-height/SKILL.md +9 -0
- package/template/.qoder/skills/yss-use-tree-height/SKILL.md +9 -0
- package/template/.qoder/skills/ytable-usage/SKILL.md +251 -0
- package/template/.qoder/skills/ytree-usage/SKILL.md +132 -0
- package/template/.trae/skills/.yss-skills-manifest.json +29 -0
- package/template/.trae/skills/component-selection-imports/SKILL.md +64 -0
- package/template/.trae/skills/cross-repo-implementation-routing/SKILL.md +2 -2
- package/template/.trae/skills/file-export-download/SKILL.md +160 -0
- package/template/.trae/skills/file-export-download/agents/openai.yaml +4 -0
- package/template/.trae/skills/formily-foundation/SKILL.md +176 -0
- package/template/.trae/skills/formily-foundation/references/examples.md +486 -0
- package/template/.trae/skills/formily-linkage-effects/SKILL.md +167 -0
- package/template/.trae/skills/formily-mode-slot-detail/SKILL.md +137 -0
- package/template/.trae/skills/formily-step-flow/SKILL.md +194 -0
- package/template/.trae/skills/frontend-commit/SKILL.md +118 -0
- package/template/.trae/skills/frontend-commit/agents/openai.yaml +7 -0
- package/template/.trae/skills/frontend-commit/references/scope-and-examples.md +111 -0
- package/template/.trae/skills/implementation-repo-onboarding/SKILL.md +5 -5
- package/template/.trae/skills/java-backend-commit/SKILL.md +121 -0
- package/template/.trae/skills/java-backend-commit/agents/openai.yaml +7 -0
- package/template/.trae/skills/java-backend-commit/references/scope-and-examples.md +118 -0
- package/template/.trae/skills/llm-wiki/SKILL.md +1 -1
- package/template/.trae/skills/llm-wiki/references/discover.md +1 -0
- package/template/.trae/skills/page-form-module/SKILL.md +168 -0
- package/template/.trae/skills/page-list-module/SKILL.md +137 -0
- package/template/.trae/skills/page-skeleton/SKILL.md +76 -0
- package/template/.trae/skills/page-skeleton/examples/AdvancedFormPage/constant.ts +34 -0
- package/template/.trae/skills/page-skeleton/examples/AdvancedFormPage/hooks/useRuleConfig.ts +75 -0
- package/template/.trae/skills/page-skeleton/examples/AdvancedFormPage/index.vue +107 -0
- package/template/.trae/skills/page-skeleton/examples/AdvancedFormPage/schemas/ruleConfigSchema.ts +256 -0
- package/template/.trae/skills/page-skeleton/examples/AdvancedFormPage/style.less +30 -0
- package/template/.trae/skills/page-skeleton/examples/StandardListPage/constant.ts +28 -0
- package/template/.trae/skills/page-skeleton/examples/StandardListPage/hooks/useQualityRuleList.ts +58 -0
- package/template/.trae/skills/page-skeleton/examples/StandardListPage/hooks/useRuleActions.ts +65 -0
- package/template/.trae/skills/page-skeleton/examples/StandardListPage/index.vue +91 -0
- package/template/.trae/skills/page-skeleton/examples/StandardListPage/style.less +49 -0
- package/template/.trae/skills/prototype-page-acceptance/SKILL.md +62 -0
- package/template/.trae/skills/theme-token-usage/SKILL.md +123 -0
- package/template/.trae/skills/theme-token-usage/agents/openai.yaml +4 -0
- package/template/.trae/skills/vue3-best-practices/SKILL.md +68 -0
- package/template/.trae/skills/yedit-table-usage/SKILL.md +227 -0
- package/template/.trae/skills/yss-api-integration/SKILL.md +12 -2
- package/template/.trae/skills/yss-components/SKILL.md +1 -1
- package/template/.trae/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
- package/template/.trae/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +30 -3
- package/template/.trae/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +52 -0
- package/template/.trae/skills/yss-design-system/SKILL.md +1 -1
- package/template/.trae/skills/yss-formily/SKILL.md +233 -265
- package/template/.trae/skills/yss-frontend-scaffold-generator/SKILL.md +2 -2
- package/template/.trae/skills/yss-hook/SKILL.md +1 -1
- package/template/.trae/skills/yss-openapi-governance/SKILL.md +2 -2
- package/template/.trae/skills/yss-page-module-development/SKILL.md +12 -2
- package/template/.trae/skills/yss-page-module-development/references/component-map.md +34 -0
- package/template/.trae/skills/yss-page-module-development/references/hooks-map.md +11 -0
- package/template/.trae/skills/yss-page-module-development/references/utils-map.md +14 -0
- package/template/.trae/skills/yss-product-lifecycle/references/matt-yss-adapter.md +1 -1
- package/template/.trae/skills/yss-product-lifecycle/references/orchestration-contract.yaml +86 -1
- package/template/.trae/skills/yss-product-lifecycle/references/orchestration.md +2 -0
- package/template/.trae/skills/yss-product-lifecycle/references/state-model.md +1 -1
- package/template/.trae/skills/yss-router/SKILL.md +1 -1
- package/template/.trae/skills/yss-router/references/boundaries.md +1 -1
- package/template/.trae/skills/yss-router/references/router-contract.yaml +26 -2
- package/template/.trae/skills/yss-router/references/slice-implementation-contract.md +1 -1
- package/template/.trae/skills/yss-ui/SKILL.md +1 -1
- package/template/.trae/skills/yss-use-table-height/SKILL.md +9 -0
- package/template/.trae/skills/yss-use-tree-height/SKILL.md +9 -0
- package/template/.trae/skills/ytable-usage/SKILL.md +251 -0
- package/template/.trae/skills/ytree-usage/SKILL.md +132 -0
- package/template/AGENTS.md +5 -5
- package/template/CONTEXT.md +3 -2
- package/template/docs/agents/skill-migrations.md +16 -0
- package/template/docs/agents/skills-maintenance.md +1 -1
- package/template/docs/agents/yss-skill-registry.yaml +125 -25
- package/template/docs/process/implementation-repo-integration.md +24 -2
- package/template/docs/templates/cross-repo-slice-template.md +15 -0
- package/template/docs/templates/implementation-repo-registry-template.md +8 -3
- package/template/docs/templates/implementation-routing-template.md +3 -3
- package/template/docs/user-guide//344/272/247/345/223/201/347/224/237/345/221/275/345/221/250/346/234/237/345/267/245/344/275/234/346/265/201.md +2 -2
- package/template/docs/user-guide//344/272/247/345/223/201/347/240/224/345/217/221/345/205/250/347/224/237/345/221/275/345/221/250/346/234/237/346/234/200/344/275/263/345/256/236/350/267/265.md +4 -4
- package/template/docs/user-guide//347/224/237/345/221/275/345/221/250/346/234/237/346/234/200/344/275/263/345/256/236/350/267/265.md +1 -1
- package/template/scripts/lib/git-submodule-fixtures.mjs +58 -0
- package/template/scripts/lib/repository-scope-policy.mjs +456 -0
- package/template/scripts/lib/scenario-checks.mjs +32 -1
- package/template/scripts/lib/skill-governance.mjs +50 -0
- package/template/scripts/lib/skill-registry.mjs +82 -5
- package/template/scripts/lib/skill-supply-chain.mjs +5 -1
- package/template/scripts/repository-scope-policy +16 -0
- package/template/scripts/verify-repository-scope-scenarios +239 -0
- package/template/scripts/verify-scaffold-generator-scenarios +54 -0
- package/template/scripts/verify-skill-governance +10 -0
- package/template/scripts/verify-template +4 -2
- package/template/skills-lock.json +289 -33
- package/template.manifest.json +6 -5
- package/template.snapshot.json +4 -4
- package/template/.agents/skills/high-fidelity-html-prototype/SKILL.md +0 -89
- package/template/.agents/skills/high-fidelity-html-prototype/agents/openai.yaml +0 -5
- package/template/.agents/skills/yss-formily/agents/openai.yaml +0 -5
- package/template/.agents/skills/yss-formily/references/examples.md +0 -65
- package/template/.claude/skills/high-fidelity-html-prototype/SKILL.md +0 -89
- package/template/.claude/skills/high-fidelity-html-prototype/agents/openai.yaml +0 -5
- package/template/.claude/skills/yss-formily/agents/openai.yaml +0 -5
- package/template/.claude/skills/yss-formily/references/examples.md +0 -65
- package/template/.codex/skills/high-fidelity-html-prototype/SKILL.md +0 -89
- package/template/.codex/skills/high-fidelity-html-prototype/agents/openai.yaml +0 -5
- package/template/.codex/skills/yss-formily/agents/openai.yaml +0 -5
- package/template/.codex/skills/yss-formily/references/examples.md +0 -65
- package/template/.cursor/environment.json +0 -5
- package/template/.cursor/skills/high-fidelity-html-prototype/SKILL.md +0 -89
- package/template/.cursor/skills/high-fidelity-html-prototype/agents/openai.yaml +0 -5
- package/template/.cursor/skills/yss-formily/agents/openai.yaml +0 -5
- package/template/.cursor/skills/yss-formily/references/examples.md +0 -65
- package/template/.github/workflows/template-node-tooling.yml +0 -61
- package/template/.hermes/skills/high-fidelity-html-prototype/SKILL.md +0 -89
- package/template/.hermes/skills/high-fidelity-html-prototype/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-formily/agents/openai.yaml +0 -5
- package/template/.hermes/skills/yss-formily/references/examples.md +0 -65
- package/template/.pi/skills/high-fidelity-html-prototype/SKILL.md +0 -89
- package/template/.pi/skills/high-fidelity-html-prototype/agents/openai.yaml +0 -5
- package/template/.pi/skills/yss-formily/agents/openai.yaml +0 -5
- package/template/.pi/skills/yss-formily/references/examples.md +0 -65
- package/template/.qoder/skills/high-fidelity-html-prototype/SKILL.md +0 -89
- package/template/.qoder/skills/high-fidelity-html-prototype/agents/openai.yaml +0 -5
- package/template/.qoder/skills/yss-formily/agents/openai.yaml +0 -5
- package/template/.qoder/skills/yss-formily/references/examples.md +0 -65
- package/template/.trae/skills/high-fidelity-html-prototype/SKILL.md +0 -89
- package/template/.trae/skills/high-fidelity-html-prototype/agents/openai.yaml +0 -5
- package/template/.trae/skills/yss-formily/agents/openai.yaml +0 -5
- package/template/.trae/skills/yss-formily/references/examples.md +0 -65
- package/template/wiki/.wiki-manifest.json +0 -390
- package/template/wiki/raw/AGENTS.md +0 -122
- package/template/wiki/raw/CONTEXT.md +0 -80
- package/template/wiki/raw/README.md +0 -130
- package/template/wiki/raw/adr-0002-repository-mode.md +0 -3
- package/template/wiki/raw/create-yss-spec-repository-mode-contract.md +0 -95
- package/template/wiki/raw/harness-process-tailoring.md +0 -64
- package/template/wiki/raw/implementation-repo-integration.md +0 -62
- package/template/wiki/raw/issue-tracker.md +0 -135
- package/template/wiki/raw/lifecycle-registry.yaml +0 -369
- package/template/wiki/raw/maintenance-intensity.yaml +0 -25
- package/template/wiki/raw/skills-lock-names.md +0 -93
- package/template/wiki/raw/skills-maintenance.md +0 -90
- package/template/wiki/raw/spec-template.md +0 -102
- package/template/wiki/raw/triage-labels.md +0 -15
- package/template/wiki/raw/vertical-slice-ticket-template.md +0 -132
- package/template/wiki/raw/yss-project.yaml +0 -2
- package/template/wiki/raw/yss-skill-registry.yaml +0 -510
- package/template/wiki/wiki/Agent/345/205/245/345/217/243/350/247/204/345/210/231.md +0 -21
- package/template/wiki/wiki/CLAUDE.md +0 -28
- package/template/wiki/wiki/Fresh/351/252/214/350/257/201/344/270/216/347/213/254/347/253/213/345/256/241/346/237/245.md +0 -19
- package/template/wiki/wiki/LLM Wiki.md +0 -30
- package/template/wiki/wiki/Matt/346/212/200/350/203/275/344/275/223/347/263/273.md +0 -21
- package/template/wiki/wiki/OpenAPI/345/245/221/347/272/246.md +0 -20
- package/template/wiki/wiki/SpecDelta.md +0 -19
- package/template/wiki/wiki/Spec/345/237/272/347/272/277.md +0 -22
- package/template/wiki/wiki/Ticket/344/270/216/346/265/201/347/250/213/347/212/266/346/200/201.md +0 -21
- package/template/wiki/wiki/YSS/345/267/245/347/250/213/346/212/200/350/203/275/344/275/223/347/263/273.md +0 -23
- package/template/wiki/wiki/YSS/350/267/257/347/224/261/344/270/216/345/220/210/345/220/214/347/274/226/350/257/221.md +0 -20
- package/template/wiki/wiki/concept-table.md +0 -9
- package/template/wiki/wiki/index.md +0 -41
- package/template/wiki/wiki/log.md +0 -51
- package/template/wiki/wiki//344/272/247/345/223/201/347/240/224/345/217/221/347/224/237/345/221/275/345/221/250/346/234/237.md +0 -20
- package/template/wiki/wiki//344/272/247/345/223/201/350/256/276/350/256/241/345/275/261/345/223/215/344/270/216/345/216/237/345/236/213.md +0 -19
- package/template/wiki/wiki//344/273/223/345/272/223/350/272/253/344/273/275/344/270/216/350/267/257/347/224/261.md +0 -20
- package/template/wiki/wiki//345/210/207/347/211/207/345/256/236/347/216/260/345/220/210/345/220/214.md +0 -21
- package/template/wiki/wiki//345/236/202/347/233/264/345/210/207/347/211/207Ticket.md +0 -23
- package/template/wiki/wiki//345/244/215/347/233/230/344/270/216/346/235/203/345/250/201/350/265/204/344/272/247/344/277/256/350/256/242.md +0 -20
- package/template/wiki/wiki//345/256/236/347/216/260/344/273/223/345/272/223/344/270/216/350/267/250/344/273/223/345/272/223/345/245/221/347/272/246.md +0 -22
- package/template/wiki/wiki//345/275/261/345/223/215/351/235/242/345/210/206/350/257/212/344/270/216/346/265/201/347/250/213/350/243/201/345/211/252.md +0 -20
- package/template/wiki/wiki//346/212/200/350/203/275/346/212/225/345/275/261/344/270/216/351/224/201/345/256/232.md +0 -23
- package/template/wiki/wiki//346/235/241/344/273/266/345/274/272/345/210/266/351/227/250/347/246/201.md +0 -18
- package/template/wiki/wiki//346/250/241/346/235/277/345/217/221/345/270/203/351/227/250/347/246/201/344/270/216/351/252/214/350/257/201.md +0 -22
- package/template/wiki/wiki//346/250/241/346/235/277/346/200/273/350/247/210.md +0 -20
- package/template/wiki/wiki//346/250/241/346/235/277/347/273/264/346/212/244/346/265/201/347/250/213.md +0 -19
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# YSS UI Hooks 速查
|
|
2
|
+
|
|
3
|
+
业务页面生成时优先从 `@yss-ui/hooks` 复用 hooks。
|
|
4
|
+
|
|
5
|
+
## 高度与异步
|
|
6
|
+
|
|
7
|
+
- `useTableHeight` 和 `useTreeHeight` 必须绑定真实容器 `ref`,并按页面的分页、工具栏、搜索区选择扣除项。
|
|
8
|
+
- `useLoading` 负责异步 loading 和错误边界;Orval mutator 已提示的错误不得在 `onError` 重复提示。
|
|
9
|
+
- `usePollingTask` 只负责轮询调度,不接管页面的 `loading/data/error`。
|
|
10
|
+
- `useUrlState` 用于把查询条件、分页和 Tab 状态同步到 URL。
|
|
11
|
+
- `useFullscreen` 用于容器、图表或编辑器全屏。
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# YSS UI Utils 速查
|
|
2
|
+
|
|
3
|
+
业务页面生成时优先从 `@yss-ui/utils` 复用工具函数,避免重复实现。
|
|
4
|
+
|
|
5
|
+
## 常用工具
|
|
6
|
+
|
|
7
|
+
- 权限:`getAuthBtns`、`hasAuth`、`getBtnInfo`、`clearAuthInfo`。
|
|
8
|
+
- 复制:`copyToClipboard(text)`。
|
|
9
|
+
- 下载:`downloadFileStream`、`getFileNameFromContentDisposition`、`handleBlobResponse`、`downloadFileFromUrl`。
|
|
10
|
+
- 格式化:`formatMoney`、`formatDate`、`formatFileSize`、`formatDateRelative`。
|
|
11
|
+
- 主题:`applyYssTheme`、`lightenColor`、`darkenColor`。
|
|
12
|
+
- URL:`getUrlData`。
|
|
13
|
+
|
|
14
|
+
接口导出下载必须读取 `file-export-download` 专项技能,优先复用统一的 Blob 响应处理,不在页面 Hook 重复解析文件名和创建下载链接。
|
|
@@ -78,7 +78,7 @@ Router 状态映射为:`draft → completed`、`blocked → blocked`、`ready-
|
|
|
78
78
|
|
|
79
79
|
YSS 调用 `code-review` 前必须形成 review input,至少包含 `review_mode`、`review_base_ref`、`implementation_candidate_ref`、`candidate_snapshot_ref`、`candidate_digest`、`spec_ref`、`ticket_ref`、`slice_contract_ref`、`build_architecture_checklist_ref` 和 `yss_execution_result_refs`,并满足 `orchestration-contract.yaml.review_input.manifest_required_by_mode`。`committed` 审查 merge-base 到不可变 `HEAD`;`worktree` 一次捕获 merge-base 到 working tree 的 committed、staged、unstaged 和 untracked 内容,使用 `yss-worktree-candidate-v1` 规定的 raw path、uint64 big-endian 长度、tracked/untracked record 和不支持条目阻断规则计算 SHA-256,让两个 Reviewer 消费同一不可变快照,并在返回和完成 checkpoint 复核摘要未变化。缺少输入、候选为空或摘要变化时返回 `blocked`,不能缩小审查范围或合并不同候选的结论。
|
|
80
80
|
|
|
81
|
-
Matt `implement` 的通用提交指令不构成 YSS Git 授权。只有用户明确给出 `commit_authorized` 为 `true`、非空 `commit_scope` 和 `commit_authorization_ref` 时才能 commit;只有明确给出 `push_authorized` 为 `true`、非空 `push_scope` 和 `push_authorization_ref` 时才能 push。缺少任一字段时保持工作区不变,只输出 checkpoint 判断;不得把 `orchestrate
|
|
81
|
+
Matt `implement` 的通用提交指令不构成 YSS Git 授权。只有用户明确给出 `commit_authorized` 为 `true`、非空 `commit_scope` 和 `commit_authorization_ref` 时才能 commit;只有明确给出 `push_authorized` 为 `true`、非空 `push_scope` 和 `push_authorization_ref` 时才能 push。缺少任一字段时保持工作区不变,只输出 checkpoint 判断;不得把 `orchestrate`、实现授权、当前分支、测试通过或负责人要求解释为隐含授权。`git-submodule` 还必须按仓授权、禁止 detached HEAD 提交,并先推子仓再更新父仓 gitlink。
|
|
82
82
|
|
|
83
83
|
“然后 commit”“做完提交”“可以帮我提交”等自然语言意向本身不是结构化授权。编排器必须取得上述三个 commit 字段;不能先把意向解释成授权,再在完成时补 scope 或引用。
|
|
84
84
|
|
package/template/.claude/skills/yss-product-lifecycle/references/orchestration-contract.yaml
CHANGED
|
@@ -9,6 +9,10 @@ implementation_path_policy:
|
|
|
9
9
|
forbidden_roots: [app/backend/, app/frontend/]
|
|
10
10
|
container_roots_are_projects: false
|
|
11
11
|
external_repository_uses_native_root: true
|
|
12
|
+
policies: [harness-apps-multi-project, external-repository-native, git-submodule-harness-apps]
|
|
13
|
+
git_submodule:
|
|
14
|
+
repository_scope: git-submodule
|
|
15
|
+
layout_policy: git-submodule-harness-apps
|
|
12
16
|
|
|
13
17
|
review_verification:
|
|
14
18
|
low_medium_combined_independent_executor: true
|
|
@@ -84,6 +88,9 @@ workflow_execution_result:
|
|
|
84
88
|
removal_target: schema_version_2
|
|
85
89
|
result_values: [completed, blocked, needs-human, failed]
|
|
86
90
|
required: [result_schema, work_unit, workflow_reference, result, evidence_refs, changed_artifacts, new_impacts, stale_candidates, next_route, blocking_signals]
|
|
91
|
+
unavailable_skill:
|
|
92
|
+
required: [skill, provider, fallback, resolution]
|
|
93
|
+
blocking_result: blocked
|
|
87
94
|
blocking_signals: [drift, new_impacts, violation, missing_evidence, stale_candidates]
|
|
88
95
|
completed_requires_empty: [new_impacts, stale_candidates]
|
|
89
96
|
completed_requires_non_empty: [evidence_refs]
|
|
@@ -126,43 +133,101 @@ lifecycle_native_entries:
|
|
|
126
133
|
work_unit_routes:
|
|
127
134
|
work-unit.discovery-opportunity:
|
|
128
135
|
native: {source: yss-product-lifecycle, skill: yss-product-lifecycle, invocation_mode: model-invoked}
|
|
136
|
+
primary_skill: yss-product-lifecycle
|
|
137
|
+
supporting_skills: [competitive-intelligence, research]
|
|
129
138
|
skills: [competitive-intelligence, research]
|
|
130
139
|
route_by: {market_or_competitor_fact: competitive-intelligence, technical_or_standard_fact: research, no_external_fact: yss-product-lifecycle}
|
|
140
|
+
applies_when: opportunity_or_external_fact_requires_validation
|
|
141
|
+
not_applicable_reason: no_external_fact
|
|
131
142
|
work-unit.discovery-requirements:
|
|
132
143
|
native: {source: yss-product-lifecycle, skill: yss-product-lifecycle, invocation_mode: model-invoked}
|
|
144
|
+
primary_skill: yss-product-lifecycle
|
|
145
|
+
supporting_skills: [grilling, domain-modeling]
|
|
133
146
|
skills: [grilling, domain-modeling]
|
|
147
|
+
applies_when: requirements_or_domain_boundary_unclear
|
|
148
|
+
not_applicable_reason: requirements_already_confirmed
|
|
134
149
|
work-unit.spec-synthesis:
|
|
135
150
|
native: {source: yss-product-lifecycle, skill: yss-product-lifecycle, invocation_mode: model-invoked}
|
|
151
|
+
primary_skill: yss-product-lifecycle
|
|
152
|
+
supporting_skills: [domain-modeling]
|
|
136
153
|
compatibility: {source: mattpocock/skills, skill: to-spec, invocation_mode: reference, formal_artifact_owner: explicit-user-entry}
|
|
137
154
|
skills: [domain-modeling]
|
|
138
155
|
human_gate: spec-baseline
|
|
156
|
+
applies_when: new_feature_or_behavior_change
|
|
157
|
+
not_applicable_reason: existing_frozen_spec_is_current
|
|
139
158
|
work-unit.prototype-design:
|
|
140
159
|
native: {source: yss-product-lifecycle, skill: yss-product-lifecycle, invocation_mode: model-invoked}
|
|
141
|
-
|
|
160
|
+
primary_skill: yss-prototype-stage
|
|
161
|
+
supporting_skills: [prototype-review, yss-design-system, yss-antd-design, product-design:index]
|
|
162
|
+
skills: [prototype-review, yss-design-system, yss-prototype-stage, yss-antd-design, product-design:index]
|
|
142
163
|
human_gate: prototype-confirmation
|
|
164
|
+
applies_when: product_design_impact
|
|
165
|
+
not_applicable_reason: no_ui_or_product_design_impact
|
|
143
166
|
work-unit.technical-analysis:
|
|
144
167
|
native: {source: yss-product-lifecycle, skill: yss-product-lifecycle, invocation_mode: model-invoked}
|
|
168
|
+
primary_skill: yss-router
|
|
169
|
+
supporting_skills: [yss-openapi-governance, yss-openapi-draft-review, codebase-design, implementation-repo-onboarding]
|
|
145
170
|
skills: [yss-openapi-governance, yss-openapi-draft-review, codebase-design, implementation-repo-onboarding, yss-router]
|
|
146
171
|
human_gate: openapi-freeze_if_api_impact
|
|
172
|
+
applies_when: technical_or_contract_impact
|
|
173
|
+
not_applicable_reason: no_technical_or_contract_impact
|
|
147
174
|
work-unit.ticket-decomposition:
|
|
148
175
|
native: {source: yss-product-lifecycle, skill: yss-product-lifecycle, invocation_mode: model-invoked}
|
|
176
|
+
primary_skill: yss-product-lifecycle
|
|
177
|
+
supporting_skills: [yss-router]
|
|
149
178
|
compatibility: {source: mattpocock/skills, skill: to-tickets, invocation_mode: reference, formal_artifact_owner: explicit-user-entry}
|
|
150
179
|
skills: [yss-router]
|
|
180
|
+
applies_when: frozen_scope_ready_for_slicing
|
|
181
|
+
not_applicable_reason: contract_or_scope_not_frozen
|
|
151
182
|
work-unit.slice-implementation:
|
|
152
183
|
native: {source: yss-product-lifecycle, skill: yss-product-lifecycle, invocation_mode: model-invoked}
|
|
184
|
+
primary_skill: yss-router
|
|
185
|
+
supporting_skills: [tdd, yss-ui, yss-page-module-development]
|
|
153
186
|
compatibility: {source: mattpocock/skills, skill: implement, invocation_mode: reference, formal_artifact_owner: explicit-user-entry}
|
|
154
187
|
skills: [tdd, yss-router, yss-ui, yss-page-module-development]
|
|
188
|
+
frontend_route:
|
|
189
|
+
primary_skill: yss-ui
|
|
190
|
+
page_orchestration_skill: yss-page-module-development
|
|
191
|
+
conditional_skills:
|
|
192
|
+
api_impact: [yss-api-integration]
|
|
193
|
+
formily_impact: [yss-formily, formily-foundation, formily-linkage-effects, formily-mode-slot-detail, formily-step-flow]
|
|
194
|
+
table_impact: [ytable-usage, yedit-table-usage]
|
|
195
|
+
tree_impact: [ytree-usage]
|
|
196
|
+
height_impact: [yss-use-table-height, yss-use-tree-height]
|
|
197
|
+
export_impact: [file-export-download]
|
|
198
|
+
theme_impact: [theme-token-usage]
|
|
199
|
+
not_applicable_reasons:
|
|
200
|
+
api_impact: no_api_impact
|
|
201
|
+
formily_impact: no_formily_impact
|
|
202
|
+
table_impact: no_table_impact
|
|
203
|
+
tree_impact: no_tree_impact
|
|
204
|
+
height_impact: no_height_impact
|
|
205
|
+
export_impact: no_export_impact
|
|
206
|
+
theme_impact: no_theme_impact
|
|
207
|
+
applies_when: ready_for_agent
|
|
208
|
+
not_applicable_reason: slice_contract_not_approved
|
|
155
209
|
work-unit.frontend-implementation-verification:
|
|
156
210
|
native: {source: yss-product-lifecycle, skill: yss-product-lifecycle, invocation_mode: model-invoked}
|
|
211
|
+
primary_skill: yss-ui
|
|
212
|
+
supporting_skills: [yss-design-system, code-review]
|
|
157
213
|
skills: [yss-ui, yss-design-system, code-review]
|
|
158
214
|
applies_when: ui_impact
|
|
215
|
+
not_applicable_reason: no_ui_impact
|
|
159
216
|
work-unit.code-review:
|
|
160
217
|
native: {source: yss-product-lifecycle, skill: code-review, invocation_mode: model-invoked}
|
|
218
|
+
primary_skill: code-review
|
|
219
|
+
supporting_skills: []
|
|
161
220
|
skills: [code-review]
|
|
221
|
+
applies_when: implementation_candidate_exists
|
|
222
|
+
not_applicable_reason: no_implementation_candidate
|
|
162
223
|
work-unit.release-and-retrospective:
|
|
163
224
|
native: {source: yss-product-lifecycle, skill: yss-product-lifecycle, invocation_mode: model-invoked}
|
|
225
|
+
primary_skill: yss-product-lifecycle
|
|
226
|
+
supporting_skills: []
|
|
164
227
|
skills: [yss-product-lifecycle]
|
|
165
228
|
human_gate: merge_or_release
|
|
229
|
+
applies_when: release_or_stage_completion
|
|
230
|
+
not_applicable_reason: work_not_ready_for_release
|
|
166
231
|
|
|
167
232
|
compatibility_flow_preconditions:
|
|
168
233
|
to-spec:
|
|
@@ -260,6 +325,26 @@ git_authorization:
|
|
|
260
325
|
authorized_value: true
|
|
261
326
|
non_empty: [push_scope, push_authorization_ref]
|
|
262
327
|
unauthorized_action: checkpoint-only
|
|
328
|
+
git_submodule:
|
|
329
|
+
applies_when: repository_scope=git-submodule
|
|
330
|
+
forbid_commit_on_detached_head: true
|
|
331
|
+
commit_order: [submodule-repositories, superproject-gitlink]
|
|
332
|
+
push_order: [submodule-repositories, superproject-gitlink]
|
|
333
|
+
push_recurse_submodules: check
|
|
334
|
+
empty_gitlink_scaffold: blocked
|
|
335
|
+
treat_empty_gitlink_as_regular_dir: blocked
|
|
336
|
+
treat_detached_head_as_regular_dir: blocked
|
|
337
|
+
force_overlay_mount: blocked
|
|
338
|
+
write_inside_detached_head: blocked
|
|
339
|
+
require_git_entry_mode: "160000"
|
|
340
|
+
working_tree_declared_scope_must_match: true
|
|
341
|
+
copy_source_into_harness: forbidden
|
|
342
|
+
clone_requires_recurse_submodules: true
|
|
343
|
+
delivery_order_must_include: superproject-gitlink-update
|
|
344
|
+
nested_authorization: per-repository
|
|
345
|
+
inspect_working_tree_writable: explicit-boolean
|
|
346
|
+
empty_gitlink_writable: false
|
|
347
|
+
force_overlay_regular_dir_path: blocked
|
|
263
348
|
|
|
264
349
|
seam_deferred_required: [risk, owner, follow_up_ticket, verification_plan, target_version_or_release_date]
|
|
265
350
|
|
|
@@ -69,6 +69,8 @@ tracker 选择和冲突按 `docs/agents/issue-tracker.md` 裁决:已持久化
|
|
|
69
69
|
|
|
70
70
|
实现授权、`orchestrate`/`resume` 的有界写入、当前分支和 Git checkpoint 都不蕴含 commit 或 push 授权。执行 commit 前必须同时取得 `commit_authorized=true`、非空 `commit_scope` 和 `commit_authorization_ref`;执行 push 前必须同时取得 `push_authorized=true`、非空 `push_scope` 和 `push_authorization_ref`。任一缺失时只记录 checkpoint 判断并保持 Git 状态不变;负责人要求、时间压力、测试通过或“本地 commit 可逆”都不能补足用户授权。
|
|
71
71
|
|
|
72
|
+
`repository_scope: git-submodule` 时授权按仓分别计算:禁止在 detached HEAD 提交;commit / push 顺序必须先子仓、再父仓 gitlink(`superproject-gitlink-update`);父仓 push 使用 `git push --recurse-submodules=check`。空 gitlink、detached HEAD、`--force` 覆盖挂载点不得当成普通目录脚手架,也不得把实现源码复制进 Harness。登记字段必须能与 `harness-apps` / `external-repository` 区分,并对照工作树 gitlink。
|
|
73
|
+
|
|
72
74
|
## 必须暂停
|
|
73
75
|
|
|
74
76
|
- Spec baseline、需求冻结、原型确认、OpenAPI Freeze 或 Architecture Review 等普通门禁等待人工裁决。
|
|
@@ -59,7 +59,7 @@ AND UI 影响切片的前端实现还原计划已通过 schema 校验、`templat
|
|
|
59
59
|
|
|
60
60
|
进入代码审查时保存 `review_mode`、`review_base_ref`、`implementation_candidate_ref`、`candidate_snapshot_ref`、`candidate_digest` 及 Spec、Ticket、合同、Checklist、YSS Execution Result 引用。`worktree` 候选必须一次捕获 committed、staged、unstaged 和 untracked 文件;manifest 的按模式必填字段以及 `yss-worktree-candidate-v1`(raw path、uint64 big-endian 长度、tracked/untracked record、symlink 和不支持条目)以 `orchestration-contract.yaml.review_input` 为唯一执行定义。两个 Reviewer 消费同一不可变快照;返回后或完成 checkpoint 摘要变化则返回 `blocked` 并重新审查。不新增生命周期状态,只把该清单作为审查证据。
|
|
61
61
|
|
|
62
|
-
Git 动作分别保存 `commit_authorized`、`commit_scope`、`commit_authorization_ref`、`push_authorized`、`push_scope`、`push_authorization_ref`。只有授权值严格为 `true`、范围和用户授权引用均非空时才执行相应动作;缺失授权时保持工作区不变并记录 checkpoint
|
|
62
|
+
Git 动作分别保存 `commit_authorized`、`commit_scope`、`commit_authorization_ref`、`push_authorized`、`push_scope`、`push_authorization_ref`。只有授权值严格为 `true`、范围和用户授权引用均非空时才执行相应动作;缺失授权时保持工作区不变并记录 checkpoint 判断。`git-submodule` 另保存每仓授权、`checkout_state` 和先子后父顺序;空 gitlink、detached HEAD 或 `--force` 覆盖挂载点时不得当成普通目录 commit / 脚手架。
|
|
63
63
|
|
|
64
64
|
## 状态块
|
|
65
65
|
|
|
@@ -29,7 +29,7 @@ description: Use when a YSS vertical slice is entering implementation, spans mul
|
|
|
29
29
|
- Repository/数据模型影响缺少数据架构时,不得路由持久化实现。
|
|
30
30
|
- API 变化必须回到生命周期 Draft/Review/Freeze;半成品 backend 不得冒充稳定 source of truth。
|
|
31
31
|
- 后端端到端切片必须包含 Application;对象/POJO 影响按契约自动补 `mapstruct`、`lombok`、`alibaba-java-code-style`。
|
|
32
|
-
- Harness 内实现路径必须落在 `apps/backend/<project>/` 或 `apps/frontend/<project>/` 的具体项目目录;`apps/backend/`、`apps/frontend/` 只能作为容器,`app/backend/`、`app/frontend/`
|
|
32
|
+
- Harness 内实现路径必须落在 `apps/backend/<project>/` 或 `apps/frontend/<project>/` 的具体项目目录;`apps/backend/`、`apps/frontend/` 只能作为容器,`app/backend/`、`app/frontend/` 及其子路径一律阻断。外部实现仓库使用其登记的真实项目根路径。`git-submodule` 使用 `implementation_path_policy: git-submodule-harness-apps`,空 gitlink、detached HEAD 或 `--force` 覆盖挂载点不得脚手架;`inspectWorkingTreeScope.writable` 必须为显式布尔值。
|
|
33
33
|
- 当前用户、审计事件、普通技术日志、请求校验、错误映射或加解密命中时,必须按 `router-contract.yaml` 的 `component_impact_routing` 补齐长尾 skill;不能只在 `boundaries.md` 中提及。仅复用已经验证的平台认证 / 授权能力不算 component impact,不自动增加权限专项 skill。
|
|
34
34
|
- 业务行为使用 `behavior-tdd`;只有机械脚手架/生成物可用 `controlled-generation`,并记录例外和验证。
|
|
35
35
|
- 原型确认后若 backend `scaffold_status=required`,先由本 Router 按 `scaffold_contract_schema` 编译 `yss-ddd-scaffold-generator` 的 `controlled-generation` 工作单元合同 draft;合同必须带 `contract_id`、`contract_version`、Router draft、生命周期批准、持久化引用、允许写路径、预期证据和验证命令。经生命周期编排器批准并持久化后才能运行生成器,再由受控工作单元实际执行固定的 `./mvnw validate`、`./mvnw test`、`./mvnw package` 并记录逐条结果,随后加载 `yss-backend-scaffold-parent` 并重新编译业务合同;脚手架不承载业务行为。
|
|
@@ -9,7 +9,7 @@ Use this reference when multiple YSS skills seem applicable.
|
|
|
9
9
|
- `yss-page-module-development`: Page/module workflow. Use for creating or reorganizing a page folder, deciding structure, and assembling page, hooks, schemas, and blocks.
|
|
10
10
|
- `yss-components`: Component layout and visual/page composition rules. Use for YTable/YTree/YssFormily/YSplitPane usage details.
|
|
11
11
|
- `yss-hook`: Request, pagination, parameter, tree-selection, and response-mapping logic in `views/**/hooks/useXxx.ts`.
|
|
12
|
-
- `api-integration`: Orval-generated API client imports, request/response mapping, `useRequest` calling patterns, submit/list/detail flows.
|
|
12
|
+
- `yss-api-integration`: Orval-generated API client imports, request/response mapping, `useRequest` calling patterns, submit/list/detail flows.
|
|
13
13
|
- `yss-formily`: Hand-written YssFormily schema implementation and form behavior.
|
|
14
14
|
- `yss-formily-schema-generator`: Generate YssFormily schema from requirements, screenshots, mockups, Figma, or natural-language field descriptions.
|
|
15
15
|
- `yss-use-table-height`: Only table available-height calculation and required container/pagination/toolbar wiring.
|
|
@@ -4,6 +4,10 @@ forbidden_statuses: [approved, ready-for-agent, completed]
|
|
|
4
4
|
skill_aliases:
|
|
5
5
|
api-integration: yss-api-integration
|
|
6
6
|
microapp-commit: yss-microapp-commit
|
|
7
|
+
page-module-development: yss-page-module-development
|
|
8
|
+
yss-ui-business-page-generation: yss-page-module-development
|
|
9
|
+
use-table-height: yss-use-table-height
|
|
10
|
+
use-tree-height: yss-use-tree-height
|
|
7
11
|
implementation_path_policy:
|
|
8
12
|
applies_to: harness-resident-runtime-code
|
|
9
13
|
project_roots:
|
|
@@ -15,10 +19,30 @@ implementation_path_policy:
|
|
|
15
19
|
forbidden_roots:
|
|
16
20
|
- app/backend/
|
|
17
21
|
- app/frontend/
|
|
22
|
+
policies:
|
|
23
|
+
- harness-apps-multi-project
|
|
24
|
+
- external-repository-native
|
|
25
|
+
- git-submodule-harness-apps
|
|
26
|
+
git_submodule:
|
|
27
|
+
repository_scope: git-submodule
|
|
28
|
+
layout_policy: git-submodule-harness-apps
|
|
29
|
+
git_entry_mode: "160000"
|
|
30
|
+
empty_gitlink_scaffold: blocked
|
|
31
|
+
treat_empty_gitlink_as_regular_dir: blocked
|
|
32
|
+
treat_detached_head_as_regular_dir: blocked
|
|
33
|
+
force_overlay_mount: blocked
|
|
34
|
+
write_inside_detached_head: blocked
|
|
35
|
+
copy_source_into_harness: forbidden
|
|
36
|
+
inspect_working_tree_writable: explicit-boolean
|
|
37
|
+
empty_gitlink_writable: false
|
|
38
|
+
force_overlay_regular_dir_path: blocked
|
|
18
39
|
rules:
|
|
19
40
|
- "Harness 内每个运行时工程必须位于具体 project 目录,不能直接写入 apps/backend/ 或 apps/frontend/。"
|
|
20
41
|
- "app/backend/、app/frontend/ 及其子路径不是兼容别名,必须阻断。"
|
|
21
42
|
- "外部实现仓库使用登记的真实项目根路径,不用 Harness 容器路径冒充。"
|
|
43
|
+
- "git-submodule 挂载路径使用 git-submodule-harness-apps,必须是 gitlink 且分别登记;不得登记为 harness-apps。"
|
|
44
|
+
- "空 gitlink、detached HEAD、--force 覆盖挂载点不得当成普通目录;也不得在 detached HEAD 工作树内当普通目录写入。"
|
|
45
|
+
- "inspectWorkingTreeScope 必须返回 { writable };空 gitlink / detached HEAD 的 writable 必为 false;--force 覆盖 gitlink 不得走普通目录覆盖路径。"
|
|
22
46
|
subcontract_statuses: [required, not-applicable]
|
|
23
47
|
|
|
24
48
|
readiness:
|
|
@@ -149,8 +173,8 @@ dependency_closure:
|
|
|
149
173
|
when_components: [yss-components]
|
|
150
174
|
when_hooks: [yss-hook]
|
|
151
175
|
when_form: [yss-formily]
|
|
152
|
-
when_api: [api-integration]
|
|
153
|
-
api-integration:
|
|
176
|
+
when_api: [yss-api-integration]
|
|
177
|
+
yss-api-integration:
|
|
154
178
|
when_regeneration: [yss-openapi-governance]
|
|
155
179
|
|
|
156
180
|
component_impact_values:
|
|
@@ -37,7 +37,7 @@ slice_contract:
|
|
|
37
37
|
reason:
|
|
38
38
|
common:
|
|
39
39
|
impacted_areas: []
|
|
40
|
-
implementation_path_policy: harness-apps-multi-project # or external-repository-native
|
|
40
|
+
implementation_path_policy: harness-apps-multi-project # or external-repository-native | git-submodule-harness-apps
|
|
41
41
|
project_roots: []
|
|
42
42
|
required_skills: []
|
|
43
43
|
optional_skills: []
|
|
@@ -59,7 +59,7 @@ pnpm why vue @yss-ui/components @yss-ui/hooks ant-design-vue vxe-table
|
|
|
59
59
|
| Formily schema、联动、校验、详情态 | `yss-formily` |
|
|
60
60
|
| 表格高度 | `yss-use-table-height` |
|
|
61
61
|
| 树高度 | `yss-use-tree-height` |
|
|
62
|
-
| Orval、API、useRequest 接入 | `api-integration` |
|
|
62
|
+
| Orval、API、useRequest 接入 | `yss-api-integration` |
|
|
63
63
|
| 视觉、token、响应式体验 | `yss-design-system` |
|
|
64
64
|
|
|
65
65
|
不得引用不存在的复数 Hook skill 名称。
|
|
@@ -5,6 +5,15 @@ description: Use when working with YTable that needs responsive height, paginati
|
|
|
5
5
|
|
|
6
6
|
# useTableHeight 表格高度计算 Hook
|
|
7
7
|
|
|
8
|
+
本目录是表格高度的 canonical 技能;历史名称 `use-table-height` 仅通过注册表和 Router alias 解析。
|
|
9
|
+
|
|
10
|
+
## YSS canonical execution rules
|
|
11
|
+
|
|
12
|
+
- 使用真实签名 `useTableHeight(containerRef, options)`,结果解构为 `tableHeight`、`isReady` 和 `recalculateHeight`。
|
|
13
|
+
- `YTable` 必须绑定 `:height="tableHeight"`;不要只绑定 `max-height`,也不要用固定魔法高度替代 Hook。
|
|
14
|
+
- `pageable`、工具栏和 `YEditTable` 添加按钮分别对应 `withPagination`、`withToolbar` 和 `withAddButton`。
|
|
15
|
+
- 容器使用 `flex: 1; min-height: 0; overflow: hidden`,避免观察由表格内容反向撑开的直属容器。
|
|
16
|
+
|
|
8
17
|
## Authoritative Docs And Boundary
|
|
9
18
|
|
|
10
19
|
- YSS UI hooks documentation: `http://192.168.164.27:3200/hooks`
|
|
@@ -5,6 +5,15 @@ description: Use when working with YTree that needs responsive height, virtual s
|
|
|
5
5
|
|
|
6
6
|
# useTreeHeight 树组件高度计算 Hook
|
|
7
7
|
|
|
8
|
+
本目录是树高度的 canonical 技能;历史名称 `use-tree-height` 仅通过注册表和 Router alias 解析。
|
|
9
|
+
|
|
10
|
+
## YSS canonical execution rules
|
|
11
|
+
|
|
12
|
+
- 使用真实签名 `useTreeHeight(containerRef, options)`,结果绑定到 `YTree` 的 `:height`。
|
|
13
|
+
- `filterable` 时配置 `extraOffset: YTREE_SEARCH_HEIGHT`;不得重复扣减或添加无依据偏移。
|
|
14
|
+
- 容器使用 `flex: 1; min-height: 0; overflow: hidden`,隐藏态切换后在可见的 `nextTick` 中调用 `recalculateHeight()`。
|
|
15
|
+
- 不因节点数量少而强制开启虚拟滚动;按实际可见节点阈值决定是否裁剪 DOM。
|
|
16
|
+
|
|
8
17
|
## Authoritative Docs And Boundary
|
|
9
18
|
|
|
10
19
|
- YSS UI hooks documentation: `http://192.168.164.27:3200/hooks`
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ytable-usage
|
|
3
|
+
description: 指导 YSS UI 业务列表页、CRUD 表格、远程分页、操作列、气泡确认、列筛选、字典翻译、行拖拽、工具栏和自定义插槽正确使用 @yss-ui/components 的 YTable;当需要配置 YTableColumn、YTableActionConfig、pagination、filter-change 或表格实例方法时使用。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# YTable 使用
|
|
7
|
+
|
|
8
|
+
## 触发条件
|
|
9
|
+
|
|
10
|
+
- 生成或修改业务列表、CRUD 表格、远程分页、操作列、列筛选、工具栏或行拖拽。
|
|
11
|
+
- 需要配置 `YTableColumn`、`YTableActionConfig`、分页状态或表格实例方法。
|
|
12
|
+
|
|
13
|
+
## 不适用场景
|
|
14
|
+
|
|
15
|
+
- 可编辑表格是核心需求:使用 `../yedit-table-usage/SKILL.md`。
|
|
16
|
+
- 页面只有短小静态数据且不需要表格交互。
|
|
17
|
+
|
|
18
|
+
## 实施流程
|
|
19
|
+
|
|
20
|
+
1. 当前会话可用 yss-ui MCP 时,先用 `get_component_docs` 查询 `YTable` 的 Props、Events、Slots、Types 与实例方法;需要远程分页、筛选、操作列、拖拽或工具栏时,再用 `get_demo` 获取对应官方 Demo。
|
|
21
|
+
2. MCP 工具不可用、调用失败或用 `search_docs/list_components` 校正后仍无结果时,才读取最新 `llms-full.txt`;若文档与当前项目依赖版本不一致,用当前源码和导出核验。
|
|
22
|
+
3. 把远程数据、`loading`、分页映射、API 调用和事件处理放入 Hook;把列定义和纯配置放入 `constant.ts`。
|
|
23
|
+
4. 在模板中组合 `data/columns/loading/pagination`,并根据真实开启的工具栏和分页配置高度 Hook。
|
|
24
|
+
5. 完成后核对删除确认、远程筛选、分页字段映射和 API 错误处理边界。
|
|
25
|
+
|
|
26
|
+
## 硬约束(禁止/必须)
|
|
27
|
+
|
|
28
|
+
- 必须从 `@yss-ui/components` 导入 `YTable`、`YTableColumn`、`YTableActionConfig` 等真实导出,不使用 `a-table` 实现业务主表格。
|
|
29
|
+
- 远程分页状态使用 `current/pageSize/total/remote`,显式设置 `remote: true`;后端 `pageIndex/pageSize/totalCount` 只在 Hook 中映射。
|
|
30
|
+
- 开启内置分页时传 `pageable`,受控更新使用 `v-model:pagination`,请求时机使用 `@page-change="handlePageChange"`。
|
|
31
|
+
- `page-change` 事件参数固定为 `{ current: number, pageSize: number }`;回调必须读取 `current`,禁止写成组件不会派发的 `currentPage`。
|
|
32
|
+
- YTable 没有 `request` 或 `searchParams` Props;远程查询由业务 Hook 管理。`refresh()` 是真实实例方法,内部调用 vxe-table `updateData()` 刷新当前表格数据,不等于重新调用后端接口。
|
|
33
|
+
- 行键使用 `:row-config="{ keyField: 'id', useKey: true }"`,不臆造 `row-key` Prop。
|
|
34
|
+
- 新增、导入、批量操作等主按钮直接放入 `#toolbar-right` 或 `#toolbar-left` 插槽即可自动渲染工具栏;**无需配置 `:toolbar-config="{ custom: true }"`**,避免无端展示列设置图标;**仅在业务明确需要列设置时才传入 `:toolbar-config="{ custom: true }"`**。
|
|
35
|
+
- 删除、启停、发布等危险操作使用 `actionConfig.buttons[].isConfirm = true`,不默认使用 `Modal.confirm`。
|
|
36
|
+
- 列配置超过 10 行时放入 `constant.ts`;需要调用组件 Hook 的操作配置使用工厂函数注入回调,禁止在 `constant.ts` 直接引用组件局部的 `openEdit/deleteItem`。
|
|
37
|
+
- 远程筛选必须提供稳定 `filters`,设置 `filterMethod: () => true` 禁用本地二次过滤,并监听 `filter-change`。
|
|
38
|
+
- 自适应滚动列表绑定 `:height="tableHeight"`;`pageable`、工具栏分别对应 `withPagination: true`、`withToolbar: true`。纯短表不强制引入高度 Hook。
|
|
39
|
+
- `mutator.ts` 已对网络错误和 `success === false` 统一 `message.error` 并 reject。API Hook 不再检查 `success === false`,不在 `else/catch` 重复 `message.error`;用 `finally` 恢复 loading,让异常继续中断流程。
|
|
40
|
+
|
|
41
|
+
## 标准代码骨架
|
|
42
|
+
|
|
43
|
+
```typescript
|
|
44
|
+
import type { YTableActionConfig, YTableColumn } from '@yss-ui/components';
|
|
45
|
+
|
|
46
|
+
/** 列表行数据。 */
|
|
47
|
+
export interface ItemRow {
|
|
48
|
+
id: string;
|
|
49
|
+
name: string;
|
|
50
|
+
status: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** 状态字典。 */
|
|
54
|
+
export const STATUS_OPTIONS = [
|
|
55
|
+
{ label: '启用', value: '1' },
|
|
56
|
+
{ label: '停用', value: '0' },
|
|
57
|
+
];
|
|
58
|
+
|
|
59
|
+
/** 列表固定列配置。 */
|
|
60
|
+
export const TABLE_COLUMNS: YTableColumn[] = [
|
|
61
|
+
{ type: 'seq', title: '序号', width: 70 },
|
|
62
|
+
{ field: 'name', title: '名称', minWidth: 180 },
|
|
63
|
+
{ field: 'status', title: '状态', width: 120, isTransform: true },
|
|
64
|
+
{ type: 'action', title: '操作', width: 180 },
|
|
65
|
+
];
|
|
66
|
+
|
|
67
|
+
/** 按组件 Hook 提供的回调创建操作列配置。 */
|
|
68
|
+
export const createActionConfig = (handlers: {
|
|
69
|
+
onEdit: (row: ItemRow) => void;
|
|
70
|
+
onDelete: (row: ItemRow) => Promise<void>;
|
|
71
|
+
}): YTableActionConfig => ({
|
|
72
|
+
width: 180,
|
|
73
|
+
fixed: 'right',
|
|
74
|
+
buttons: [
|
|
75
|
+
{ value: 'edit', label: '编辑', type: 'link', click: ({ row }) => handlers.onEdit(row) },
|
|
76
|
+
{
|
|
77
|
+
value: 'delete',
|
|
78
|
+
label: '删除',
|
|
79
|
+
type: 'link',
|
|
80
|
+
isConfirm: true,
|
|
81
|
+
confirmProps: { title: '确认删除该数据吗?', okText: '确定', cancelText: '取消' },
|
|
82
|
+
click: ({ row }) => handlers.onDelete(row),
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
});
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## 远程分页 Hook 关键模式
|
|
89
|
+
|
|
90
|
+
```typescript
|
|
91
|
+
import { ref } from 'vue';
|
|
92
|
+
import type { YTablePagination } from '@yss-ui/components';
|
|
93
|
+
import type { ItemRow } from '../constant';
|
|
94
|
+
|
|
95
|
+
/** 列表 API 依赖,由当前项目的 Orval 函数适配。 */
|
|
96
|
+
export interface ItemListApi {
|
|
97
|
+
queryPage: (params: { pageIndex: number; pageSize: number }) => Promise<{
|
|
98
|
+
list?: ItemRow[];
|
|
99
|
+
totalCount?: number;
|
|
100
|
+
}>;
|
|
101
|
+
deleteItem: (params: { id: string }) => Promise<unknown>;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** 管理 YTable 远程分页和删除刷新。 */
|
|
105
|
+
export const useItemList = (api: ItemListApi) => {
|
|
106
|
+
const dataList = ref<ItemRow[]>([]);
|
|
107
|
+
const loading = ref(false);
|
|
108
|
+
const pagination = ref<YTablePagination>({ current: 1, pageSize: 20, total: 0, remote: true });
|
|
109
|
+
|
|
110
|
+
/** 查询当前页;错误提示由 mutator 统一处理。 */
|
|
111
|
+
const loadList = async () => {
|
|
112
|
+
loading.value = true;
|
|
113
|
+
try {
|
|
114
|
+
const result = await api.queryPage({
|
|
115
|
+
pageIndex: pagination.value.current,
|
|
116
|
+
pageSize: pagination.value.pageSize,
|
|
117
|
+
});
|
|
118
|
+
dataList.value = result.list ?? [];
|
|
119
|
+
pagination.value = { ...pagination.value, total: result.totalCount ?? 0 };
|
|
120
|
+
} finally {
|
|
121
|
+
loading.value = false;
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
/** 同步 YTable 分页状态并重新查询。 */
|
|
126
|
+
const handlePageChange = async ({ current, pageSize }: { current: number; pageSize: number }) => {
|
|
127
|
+
pagination.value = { ...pagination.value, current, pageSize };
|
|
128
|
+
await loadList();
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
/** 删除后刷新列表;不重复弹出 API 错误。 */
|
|
132
|
+
const handleDelete = async (row: ItemRow) => {
|
|
133
|
+
await api.deleteItem({ id: row.id });
|
|
134
|
+
await loadList();
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
return { dataList, loading, pagination, loadList, handlePageChange, handleDelete };
|
|
138
|
+
};
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
```vue
|
|
142
|
+
<script setup lang="ts">
|
|
143
|
+
import { onMounted, ref } from 'vue';
|
|
144
|
+
import { YButton, YTable } from '@yss-ui/components';
|
|
145
|
+
import { useTableHeight } from '@yss-ui/hooks';
|
|
146
|
+
import { createActionConfig, STATUS_OPTIONS, TABLE_COLUMNS, type ItemRow } from './constant';
|
|
147
|
+
import { useItemList, type ItemListApi } from './hooks/useItemList';
|
|
148
|
+
|
|
149
|
+
/** 列表实例的 API 依赖。 */
|
|
150
|
+
interface Props {
|
|
151
|
+
api: ItemListApi;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
const props = defineProps<Props>();
|
|
155
|
+
const emit = defineEmits<{
|
|
156
|
+
create: [];
|
|
157
|
+
edit: [row: ItemRow];
|
|
158
|
+
}>();
|
|
159
|
+
const tableAreaRef = ref<HTMLDivElement>();
|
|
160
|
+
const { tableHeight } = useTableHeight(tableAreaRef, { withPagination: true, withToolbar: true });
|
|
161
|
+
const { dataList, loading, pagination, loadList, handlePageChange, handleDelete } = useItemList(props.api);
|
|
162
|
+
const actionConfig = createActionConfig({
|
|
163
|
+
onEdit: row => emit('edit', row),
|
|
164
|
+
onDelete: handleDelete,
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
onMounted(loadList);
|
|
168
|
+
</script>
|
|
169
|
+
|
|
170
|
+
<template>
|
|
171
|
+
<div ref="tableAreaRef" class="table-area">
|
|
172
|
+
<YTable
|
|
173
|
+
:data="dataList"
|
|
174
|
+
:columns="TABLE_COLUMNS"
|
|
175
|
+
:action-config="actionConfig"
|
|
176
|
+
:loading="loading"
|
|
177
|
+
:options-map="{ status: STATUS_OPTIONS }"
|
|
178
|
+
:row-config="{ keyField: 'id', useKey: true }"
|
|
179
|
+
:height="tableHeight"
|
|
180
|
+
pageable
|
|
181
|
+
v-model:pagination="pagination"
|
|
182
|
+
@page-change="handlePageChange"
|
|
183
|
+
>
|
|
184
|
+
<template #toolbar-right>
|
|
185
|
+
<YButton type="primary" @click="emit('create')">新增</YButton>
|
|
186
|
+
</template>
|
|
187
|
+
</YTable>
|
|
188
|
+
</div>
|
|
189
|
+
</template>
|
|
190
|
+
|
|
191
|
+
<style scoped lang="less">
|
|
192
|
+
@import './style.less';
|
|
193
|
+
</style>
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
```less
|
|
197
|
+
/* style.less */
|
|
198
|
+
.table-area {
|
|
199
|
+
height: 100%;
|
|
200
|
+
min-height: 0;
|
|
201
|
+
overflow: hidden;
|
|
202
|
+
}
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
## 表格多选与批量操作标准模式
|
|
206
|
+
|
|
207
|
+
当业务需要 Checkbox 多选与批量操作(如批量删除、批量导出、批量启用)时,遵循以下规范:
|
|
208
|
+
|
|
209
|
+
1. **列配置**:首列必须声明 `{ type: 'checkbox', width: 50, fixed: 'left', align: 'center' }`。
|
|
210
|
+
2. **行唯一键**:必须显式指定 `:row-config="{ keyField: 'id', useKey: true }"`(`keyField` 与业务主键如 `userCode` 对齐)。
|
|
211
|
+
3. **受控双向绑定**:推荐优先使用 `v-model:selected-row-keys="selectedRowKeys"` 或 `v-model:selected-rows="selectedRows"`,或者统一监听 `@selection-change`。
|
|
212
|
+
4. **批量操作按钮**:放在 `#toolbar-right`,并配置 `:disabled="selectedRowKeys.length === 0"`。
|
|
213
|
+
5. **清空选中态**:批量操作成功后,直接重置 `selectedRowKeys.value = []` 或调用 `tableRef.value.clearSelection()`。
|
|
214
|
+
|
|
215
|
+
```vue
|
|
216
|
+
<YTable
|
|
217
|
+
ref="tableRef"
|
|
218
|
+
v-model:selected-row-keys="selectedRowKeys"
|
|
219
|
+
:row-config="{ keyField: 'id', useKey: true }"
|
|
220
|
+
:data="dataList"
|
|
221
|
+
:columns="TABLE_COLUMNS"
|
|
222
|
+
pageable
|
|
223
|
+
v-model:pagination="pagination"
|
|
224
|
+
@page-change="handlePageChange"
|
|
225
|
+
>
|
|
226
|
+
<template #toolbar-right>
|
|
227
|
+
<YButton :disabled="selectedRowKeys.length === 0" @click="handleBatchDelete">批量删除</YButton>
|
|
228
|
+
</template>
|
|
229
|
+
</YTable>
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
## 插槽与实例边界
|
|
233
|
+
|
|
234
|
+
- 优先使用 kebab-case:单元格 `#<field>`、表头 `#<field>-header`、筛选 `#<field>-filter`、工具栏 `#toolbar-left/#toolbar-right`、展开行 `#expand-row`、分组表头 `#group-header`、更多图标 `#action-more-icon`。
|
|
235
|
+
- `getTableInstance()`、`refresh()`、`recalculate()`、`clearSelection()`、`getSelectedRows()`、`getSelectedRowKeys()`、`setSelection()`、`getPaginationInstance()` 是真实暴露方法;只在对应语义下使用。
|
|
236
|
+
|
|
237
|
+
## 交付检查清单
|
|
238
|
+
|
|
239
|
+
- [ ] 分页状态和 `page-change` 参数均使用 `current/pageSize`,未使用 `currentPage`;`filter-change` 与 YTable 真实 API 一致。
|
|
240
|
+
- [ ] 多选列已配置 `type: 'checkbox'`,已设置 `:row-config="{ keyField: 'xxx', useKey: true }"`,批量按钮绑定了 `selectedRowKeys.length === 0` 禁用。
|
|
241
|
+
- [ ] 批量操作成功后已重置 `selectedRowKeys` 并调用 `tableRef.clearSelection()`。
|
|
242
|
+
- [ ] 未使用虚构 `request/searchParams/row-key` Props,也未把 `refresh()` 当成远程请求。
|
|
243
|
+
- [ ] 工具栏、字典翻译、操作确认与高度偏移均与实际开关一致。
|
|
244
|
+
- [ ] API Hook 没有 `success === false` 分支或重复 `message.error`。
|
|
245
|
+
|
|
246
|
+
## 失败兜底策略
|
|
247
|
+
|
|
248
|
+
- 分页字段混乱时,在 Hook 中分离 YTable 状态和后端参数,不直接把 `pageIndex/totalCount` 绑到组件。
|
|
249
|
+
- 操作过多时使用 `displayLimit` 和更多菜单;远程刷新失效时回到业务 `loadList()`,不把实例 `refresh()` 当成接口请求。
|
|
250
|
+
- API 失败后只在 `finally` 恢复本地 loading,让 mutator 的 reject 继续中断删除后刷新等后续流程。
|
|
251
|
+
|