@aurorajs.dev/catalyst-cli 3.1.2 → 3.1.3
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/dist/ai/domain/skills-scanner.js +7 -2
- package/dist/deploy/domain/curl-config.js +1 -1
- package/dist/deploy/domain/playbook-vars.js +1 -1
- package/dist/generator/domain/frontend-composition.js +4 -4
- package/dist/generator/domain/property-filters.d.ts +8 -0
- package/dist/generator/domain/property-filters.js +17 -6
- package/dist/generator/handlers/front.handler.js +10 -1
- package/dist/sheets/domain/auth.js +10 -5
- package/dist/sheets/sync/sheet-to-yaml.d.ts +1 -0
- package/dist/sheets/sync/sheet-to-yaml.js +19 -3
- package/dist/templates/backend/application/.claude/skills/catalyst-tools/SKILL.md +5 -3
- package/dist/templates/backend/application/src/@aurora/modules/manual/application/manual-catalog-section-reader.spec.ts +4 -0
- package/dist/templates/backend/application/src/@aurora/modules/manual/application/manual-find-index.handler.spec.ts +2 -0
- package/dist/templates/backend/application/src/@aurora/modules/manual/application/manual-find-index.handler.ts +2 -1
- package/dist/templates/backend/application/src/@aurora/modules/manual/domain/manual-section-reader.port.ts +2 -0
- package/dist/templates/backend/application/src/@aurora/modules/manual/domain/manual.types.ts +2 -0
- package/dist/templates/backend/application/src/@aurora/modules/manual/graphql/manual-graphql-schema.spec.ts +10 -2
- package/dist/templates/backend/application/src/@aurora/modules/manual/graphql/manual.graphql +4 -0
- package/dist/templates/backend/business-rules/business-partner-portal/supplier-document.md +96 -6
- package/dist/templates/backend/business-rules/tools/assistant-usage.md +60 -0
- package/dist/templates/backend/manual/business-partner-portal/CONTEXT.md +5 -5
- package/dist/templates/backend/manual/business-partner-portal/en/purchase-invoice-header.md +5 -1
- package/dist/templates/backend/manual/business-partner-portal/es/purchase-invoice-header.md +5 -1
- package/dist/templates/backend/manual/production-planning/en/planner.md +1 -1
- package/dist/templates/backend/manual/production-planning/en/production-order-position-event.md +8 -5
- package/dist/templates/backend/manual/production-planning/es/planner.md +1 -1
- package/dist/templates/backend/manual/production-planning/es/production-order-position-event.md +8 -5
- package/dist/templates/backend/manual/reporting/en/report.md +40 -0
- package/dist/templates/backend/manual/reporting/es/report.md +40 -0
- package/dist/templates/backend/manual/tools/CONTEXT.md +1 -0
- package/dist/templates/backend/manual/tools/actions.yaml +11 -0
- package/dist/templates/backend/manual/tools/en/assistant-conversation.md +38 -0
- package/dist/templates/backend/manual/tools/en/assistant-usage-policy.md +46 -0
- package/dist/templates/backend/manual/tools/en/assistant-usage.md +28 -0
- package/dist/templates/backend/manual/tools/en/file-storage.md +83 -0
- package/dist/templates/backend/manual/tools/es/assistant-conversation.md +38 -0
- package/dist/templates/backend/manual/tools/es/assistant-usage-policy.md +46 -0
- package/dist/templates/backend/manual/tools/es/assistant-usage.md +28 -0
- package/dist/templates/backend/manual/tools/es/file-storage.md +83 -0
- package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/anthropic/infrastructure/business-partner-portal-anthropic-extraction-step-two.service.spec.ts +2 -1
- package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/anthropic/shared/functions/business-partner-portal-anthropic-build-step-one-request.function.spec.ts +9 -2
- package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/anthropic/shared/functions/business-partner-portal-anthropic-build-step-one-request.function.ts +6 -3
- package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/anthropic/shared/functions/business-partner-portal-anthropic-build-step-two-request.function.spec.ts +19 -2
- package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/anthropic/shared/functions/business-partner-portal-anthropic-build-step-two-request.function.ts +15 -2
- package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/anthropic/shared/functions/business-partner-portal-anthropic-map-step-one-answer.function.ts +1 -1
- package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/anthropic/shared/types/business-partner-portal-anthropic-step-one-answer.types.ts +1 -1
- package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-extraction-step-two-context.service.spec.ts +63 -0
- package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-extraction-step-two-context.service.ts +25 -3
- package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-extraction-step-two-empty.service.spec.ts +1 -0
- package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-extraction-step-two.types.ts +5 -0
- package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/purchase-invoice-extraction/business-partner-portal-map-invoice-ocr-result-to-purchase-invoice.function.spec.ts +1 -1
- package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/purchase-invoice-extraction/business-partner-portal-map-invoice-ocr-result-to-purchase-invoice.function.ts +1 -1
- package/dist/templates/backend/packages/production-planning/src/@app/production-planning/production-order-position/application/get-processes/production-planning-get-processes-production-order-position.handler.spec.ts +5 -2
- package/dist/templates/backend/packages/production-planning/src/@app/production-planning/production-order-position/application/get-processes/production-planning-get-processes-production-order-position.handler.ts +4 -0
- package/dist/templates/backend/packages/reporting/src/@api/reporting/report/dto/reporting-create-report.dto.ts +0 -21
- package/dist/templates/backend/packages/reporting/src/@api/reporting/report/dto/reporting-report.dto.ts +3 -3
- package/dist/templates/backend/packages/reporting/src/@api/reporting/report/dto/reporting-update-report-by-id.dto.ts +0 -48
- package/dist/templates/backend/packages/reporting/src/@api/reporting/report/dto/reporting-update-reports.dto.ts +0 -48
- package/dist/templates/backend/packages/reporting/src/@api/reporting/report/graphql/reporting-report.graphql +3 -20
- package/dist/templates/backend/packages/reporting/src/@app/reporting/report/application/create/reporting-create-report.service.ts +2 -2
- package/dist/templates/backend/packages/reporting/src/@app/reporting/report/application/reporting-report.payload-types.ts +33 -0
- package/dist/templates/backend/packages/reporting/src/@app/reporting/report/application/update/reporting-update-report-by-id.handler.spec.ts +77 -0
- package/dist/templates/backend/packages/reporting/src/@app/reporting/report/application/update/reporting-update-report-by-id.service.ts +2 -2
- package/dist/templates/backend/packages/reporting/src/@app/reporting/report/application/update/reporting-update-reports.service.ts +2 -2
- package/dist/templates/backend/packages/reporting/src/@app/reporting/report/application/update-execution-cache/reporting-update-report-execution-cache.handler.spec.ts +35 -0
- package/dist/templates/backend/packages/reporting/src/@app/reporting/report/domain/reporting-report.field-schema.ts +7 -0
- package/dist/templates/backend/packages/reporting/src/@app/reporting/report/index.ts +5 -0
- package/dist/templates/backend/packages/tools/src/@api/tools/assistant-conversation/dto/tools-assistant-conversation.dto.ts +8 -1
- package/dist/templates/backend/packages/tools/src/@api/tools/assistant-conversation/dto/tools-update-assistant-conversation-by-id.dto.ts +8 -1
- package/dist/templates/backend/packages/tools/src/@api/tools/assistant-conversation/dto/tools-update-assistant-conversations.dto.ts +8 -1
- package/dist/templates/backend/packages/tools/src/@api/tools/assistant-conversation/graphql/tools-assistant-conversation.graphql +8 -1
- package/dist/templates/backend/packages/tools/src/@api/tools/assistant-usage/controllers/tools-ask-assistant-assistant-usage.controller.ts +1 -0
- package/dist/templates/backend/packages/tools/src/@api/tools/assistant-usage/dto/tools-ask-assistant.dto.ts +47 -0
- package/dist/templates/backend/packages/tools/src/@api/tools/assistant-usage/dto/tools-assistant-answer.dto.ts +1 -0
- package/dist/templates/backend/packages/tools/src/@api/tools/assistant-usage/dto/tools-assistant-usage.dto.ts +8 -1
- package/dist/templates/backend/packages/tools/src/@api/tools/assistant-usage/dto/tools-update-assistant-usage-by-id.dto.ts +8 -1
- package/dist/templates/backend/packages/tools/src/@api/tools/assistant-usage/dto/tools-update-assistant-usages.dto.ts +8 -1
- package/dist/templates/backend/packages/tools/src/@api/tools/assistant-usage/graphql/tools-assistant-usage.graphql +45 -1
- package/dist/templates/backend/packages/tools/src/@api/tools/assistant-usage/resolvers/tools-ask-assistant-assistant-usage.resolver.ts +1 -0
- package/dist/templates/backend/packages/tools/src/@app/tools/anthropic/infrastructure/tools-anthropic-assistant-model.service.spec.ts +1 -0
- package/dist/templates/backend/packages/tools/src/@app/tools/anthropic/shared/functions/tools-anthropic-build-assistant-request.function.spec.ts +145 -0
- package/dist/templates/backend/packages/tools/src/@app/tools/anthropic/shared/functions/tools-anthropic-build-assistant-request.function.ts +44 -2
- package/dist/templates/backend/packages/tools/src/@app/tools/anthropic/shared/types/tools-anthropic-assistant-answer.types.ts +3 -2
- package/dist/templates/backend/packages/tools/src/@app/tools/assistant-conversation/domain/tools-assistant-conversation.field-schema.ts +6 -0
- package/dist/templates/backend/packages/tools/src/@app/tools/assistant-conversation/infrastructure/drizzle/tools-drizzle-assistant-conversation.schema.ts +1 -0
- package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/application/ask-assistant/tools-ask-assistant-assistant-usage.handler.spec.ts +105 -5
- package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/application/ask-assistant/tools-ask-assistant-assistant-usage.handler.ts +40 -23
- package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/application/ask-assistant/tools-assistant-errors.function.ts +8 -0
- package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/application/ask-assistant/tools-assistant-read-screen.function.spec.ts +257 -0
- package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/application/ask-assistant/tools-assistant-read-screen.function.ts +200 -0
- package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/application/quota/tools-assistant-quota.service.spec.ts +7 -2
- package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/application/quota/tools-assistant-quota.service.ts +7 -2
- package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/domain/tools-assistant-model.port.ts +44 -0
- package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/domain/tools-assistant-usage.field-schema.ts +6 -0
- package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/infrastructure/drizzle/tools-drizzle-assistant-usage.repository.spec.ts +25 -0
- package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/infrastructure/drizzle/tools-drizzle-assistant-usage.repository.ts +3 -0
- package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/infrastructure/drizzle/tools-drizzle-assistant-usage.schema.ts +1 -0
- package/dist/templates/backend/packages/tools/test/acceptance/tools/assistant-ask.e2e-spec.ts +16 -1
- package/dist/templates/backend/packages/tools/test/acceptance/tools/assistant-usage-increment.e2e-spec.ts +52 -5
- package/dist/templates/codegen/frontend/module/__module_name__/features/__module_name__-list.component.ts.eta +7 -1
- package/dist/templates/codegen/frontend/module/__module_name__/features/index.ts.eta +1 -1
- package/dist/templates/frontend/application/.claude/skills/catalyst-project-structure/SKILL.md +3 -0
- package/dist/templates/frontend/application/libs/ui/command/src/lib/hlm-command-item.ts +1 -1
- package/dist/templates/frontend/application/src/@aurora/modules/assisted-form/README.md +2 -0
- package/dist/templates/frontend/application/src/@aurora/modules/command-palette/command-palette-trigger.component.ts +1 -0
- package/dist/templates/frontend/application/src/@aurora/modules/guided-action/README.md +4 -0
- package/dist/templates/frontend/application/src/@aurora/modules/guided-action/guided-action-runner.service.spec.ts +69 -0
- package/dist/templates/frontend/application/src/@aurora/modules/guided-action/guided-action-runner.service.ts +13 -4
- package/dist/templates/frontend/application/src/@aurora/modules/index.ts +1 -0
- package/dist/templates/frontend/application/src/@aurora/modules/manual/manual.graphql.ts +1 -0
- package/dist/templates/frontend/application/src/@aurora/modules/screen-context/README.md +36 -0
- package/dist/templates/frontend/application/src/@aurora/modules/screen-context/index.ts +2 -0
- package/dist/templates/frontend/application/src/@aurora/modules/screen-context/screen-context.service.spec.ts +137 -0
- package/dist/templates/frontend/application/src/@aurora/modules/screen-context/screen-context.service.ts +60 -0
- package/dist/templates/frontend/application/src/@aurora/modules/screen-context/screen-context.types.ts +47 -0
- package/dist/templates/frontend/application/src/app/domains/admin/layout/site-header.ts +1 -1
- package/dist/templates/frontend/application/tsconfig.json +1 -0
- package/dist/templates/frontend/navigation-i18n/reporting/en.json +1 -1
- package/dist/templates/frontend/navigation-i18n/reporting/es.json +1 -1
- package/dist/templates/frontend/packages/automation/src/app/domains/admin/apps/automation/state-machine-history/features/index.ts +0 -1
- package/dist/templates/frontend/packages/automation/src/app/domains/admin/apps/automation/state-machine-history/features/state-machine-history-list.component.ts +0 -13
- package/dist/templates/frontend/packages/business-partner-portal/public/i18n/business-partner-portal/en.json +11 -0
- package/dist/templates/frontend/packages/business-partner-portal/public/i18n/business-partner-portal/es.json +11 -0
- package/dist/templates/frontend/packages/business-partner-portal/src/app/domains/admin/apps/business-partner-portal/purchase-invoice-header/data-access/purchase-invoice-review-context.derive.spec.ts +420 -0
- package/dist/templates/frontend/packages/business-partner-portal/src/app/domains/admin/apps/business-partner-portal/purchase-invoice-header/data-access/purchase-invoice-review-context.derive.ts +237 -0
- package/dist/templates/frontend/packages/business-partner-portal/src/app/domains/admin/apps/business-partner-portal/purchase-invoice-header/data-access/purchase-invoice-review.derive.spec.ts +181 -26
- package/dist/templates/frontend/packages/business-partner-portal/src/app/domains/admin/apps/business-partner-portal/purchase-invoice-header/data-access/purchase-invoice-review.derive.ts +143 -25
- package/dist/templates/frontend/packages/business-partner-portal/src/app/domains/admin/apps/business-partner-portal/purchase-invoice-header/features/purchase-invoice-header-detail.component.spec.ts +42 -0
- package/dist/templates/frontend/packages/business-partner-portal/src/app/domains/admin/apps/business-partner-portal/purchase-invoice-header/features/purchase-invoice-header-detail.component.ts +32 -8
- package/dist/templates/frontend/packages/business-partner-portal/src/app/domains/admin/apps/business-partner-portal/purchase-invoice-header/features/purchase-invoice-header-form.component.ts +32 -1
- package/dist/templates/frontend/packages/business-partner-portal/src/app/domains/admin/apps/business-partner-portal/purchase-invoice-header/features/purchase-invoice-header-list-actions-cell.component.ts +4 -1
- package/dist/templates/frontend/packages/business-partner-portal/src/app/domains/admin/apps/business-partner-portal/purchase-invoice-header/ui/purchase-invoice-breakdown.component.ts +7 -32
- package/dist/templates/frontend/packages/business-partner-portal/src/app/domains/admin/apps/business-partner-portal/purchase-invoice-header/ui/purchase-invoice-lines-grid.component.ts +12 -8
- package/dist/templates/frontend/packages/business-partner-portal/src/app/domains/admin/apps/business-partner-portal/purchase-invoice-trace/features/index.ts +0 -1
- package/dist/templates/frontend/packages/business-partner-portal/src/app/domains/admin/apps/business-partner-portal/purchase-invoice-trace/features/purchase-invoice-trace-list.component.ts +0 -13
- package/dist/templates/frontend/packages/identity/src/app/domains/admin/apps/iam/account/features/account-form.component.spec.ts +26 -1
- package/dist/templates/frontend/packages/identity/src/app/domains/admin/apps/iam/account/features/account-form.component.ts +45 -0
- package/dist/templates/frontend/packages/production-planning/public/i18n/production-planning/en.json +15 -4
- package/dist/templates/frontend/packages/production-planning/public/i18n/production-planning/es.json +15 -4
- package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/planner/data-access/index.ts +1 -0
- package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/planner/data-access/planner-process-weights.derive.spec.ts +57 -0
- package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/planner/data-access/planner-process-weights.derive.ts +39 -0
- package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/planner/data-access/planner.derive.spec.ts +15 -0
- package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/planner/data-access/planner.derive.ts +7 -3
- package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/planner/data-access/planner.graphql.ts +23 -0
- package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/planner/features/planner-process-weights-dialog.component.ts +137 -0
- package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/planner/features/planner.component.ts +41 -4
- package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/production-dashboard/data-access/production-dashboard.derive.spec.ts +0 -30
- package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/production-dashboard/data-access/production-dashboard.derive.ts +0 -21
- package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/production-dashboard/data-access/production-dashboard.resolvers.spec.ts +24 -0
- package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/production-dashboard/data-access/production-dashboard.resolvers.ts +3 -1
- package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/production-dashboard/features/batch-detail-sheet.component.ts +22 -10
- package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/production-dashboard/features/event-form-sheet.component.spec.ts +142 -0
- package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/production-dashboard/features/event-form-sheet.component.ts +95 -59
- package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/production-dashboard/features/event-list.component.ts +121 -123
- package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/production-dashboard/features/production-dashboard.component.ts +52 -19
- package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/production-order-position/features/production-order-position-list.component.ts +8 -2
- package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/production-order-position-event/features/production-order-position-event-list.component.ts +4 -0
- package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/production-order-position-event/production-order-position-event.columns.spec.ts +104 -4
- package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/production-order-position-event/production-order-position-event.columns.ts +121 -69
- package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/shared/dialogs/finish-event-dialog.component.ts +3 -3
- package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/shared/dialogs/weight-input-dialog.component.ts +3 -3
- package/dist/templates/frontend/packages/reporting/public/i18n/reporting/en.json +1 -1
- package/dist/templates/frontend/packages/reporting/public/i18n/reporting/es.json +1 -1
- package/dist/templates/frontend/packages/reporting/src/app/domains/admin/apps/reporting/report/data-access/report.detail-config.ts +1 -2
- package/dist/templates/frontend/packages/reporting/src/app/domains/admin/apps/reporting/report/data-access/report.graphql.ts +0 -14
- package/dist/templates/frontend/packages/reporting/src/app/domains/admin/apps/reporting/report/features/report-form.component.spec.ts +96 -0
- package/dist/templates/frontend/packages/reporting/src/app/domains/admin/apps/reporting/report/features/report-form.component.ts +46 -69
- package/dist/templates/frontend/packages/reporting/src/app/domains/admin/apps/reporting/report/features/report-list.component.ts +2 -22
- package/dist/templates/frontend/packages/reporting/src/app/domains/admin/apps/reporting/report/report.columns.ts +0 -1
- package/dist/templates/frontend/packages/reporting/src/app/domains/admin/apps/reporting/reporting-icons.providers.ts +2 -1
- package/dist/templates/frontend/packages/reporting/src/app/domains/admin/apps/reporting/reporting.navigation.ts +7 -0
- package/dist/templates/frontend/packages/tools/public/i18n/tools/en.json +4 -2
- package/dist/templates/frontend/packages/tools/public/i18n/tools/es.json +4 -2
- package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant/tools-assistant.service.spec.ts +82 -7
- package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant/tools-assistant.service.ts +12 -2
- package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-conversation/assistant-conversation.columns.ts +13 -0
- package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-conversation/data-access/assistant-conversation.graphql.ts +1 -0
- package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-conversation/features/assistant-conversation-form.component.ts +18 -0
- package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-conversation/features/assistant-conversation-list.component.ts +0 -13
- package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-conversation/features/index.ts +0 -1
- package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-usage/assistant-usage.columns.ts +13 -0
- package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-usage/data-access/assistant-usage.graphql.ts +2 -0
- package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-usage/features/assistant-usage-form.component.ts +18 -0
- package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-usage/features/assistant-usage-list.component.ts +0 -13
- package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-usage/features/index.ts +0 -1
- package/dist/templates/monorepo/.claude/commands/business-rules/promote.md +5 -1
- package/dist/templates/monorepo/.claude/hooks/__fixtures__/br-hr-regression-baseline.txt +2 -2
- package/dist/templates/monorepo/.claude/hooks/check-required-setup.ts +4 -4
- package/dist/templates/monorepo/.claude/hooks/inject-prompt-context.ts +1 -1
- package/dist/templates/monorepo/.claude/scripts/generate-skills-index.test.ts +29 -1
- package/dist/templates/monorepo/.claude/scripts/generate-skills-index.ts +7 -1
- package/dist/templates/monorepo/.claude/skills/REGISTRY.md +2 -2
- package/dist/templates/monorepo/.claude/skills/catalyst-backlog/SKILL.md +19 -4
- package/dist/templates/monorepo/.claude/skills/catalyst-backlog/frontier-worker-addendum.md +3 -3
- package/dist/templates/monorepo/.claude/skills/catalyst-business-rules-guard/SKILL.md +8 -5
- package/dist/templates/monorepo/.claude/skills/catalyst-business-rules-guard/references/workflow.md +10 -6
- package/dist/templates/monorepo/.claude/skills/catalyst-delegation/SKILL.md +1 -1
- package/dist/templates/monorepo/.claude/skills/catalyst-harness-rules-guard/SKILL.md +6 -6
- package/dist/templates/monorepo/.claude/skills/catalyst-harness-rules-guard/references/enforcement.md +3 -3
- package/dist/templates/monorepo/.claude/skills/catalyst-harness-rules-guard/references/format.md +3 -3
- package/dist/templates/monorepo/.claude/skills/catalyst-update-skill-registry/SKILL.md +4 -4
- package/dist/templates/monorepo/.claude/skills/catalyst-user-manual/SKILL.md +48 -2
- package/dist/templates/monorepo/.claude/skills/openspec-apply-change/SKILL.md +28 -10
- package/dist/templates/monorepo/.claude/skills/openspec-archive-change/SKILL.md +52 -13
- package/dist/templates/monorepo/.claude/skills/openspec-explore/SKILL.md +59 -14
- package/dist/templates/monorepo/.claude/skills/openspec-propose/SKILL.md +38 -12
- package/dist/templates/monorepo/.claude/skills/openspec-sync-specs/SKILL.md +31 -3
- package/dist/templates/monorepo/CLAUDE.md +14 -14
- package/dist/templates/monorepo/docs/business-rules/ARCHITECTURE.md +16 -13
- package/dist/templates/monorepo/docs/business-rules/MIGRATION.md +5 -5
- package/dist/templates/monorepo/docs/manual/en/04-asistente.md +71 -0
- package/dist/templates/monorepo/docs/manual/es/04-asistente.md +71 -0
- package/dist/templates/monorepo/openspec/config.yaml +25 -5
- package/dist/templates/monorepo/package.json +3 -1
- package/dist/templates/monorepo/scripts/backlog/prompt.test.ts +5 -5
- package/dist/templates/monorepo/scripts/backlog/prompt.ts +1 -1
- package/dist/templates/monorepo/scripts/business-rules/audit.ts +1 -1
- package/dist/templates/monorepo/scripts/manual/compile.test.ts +78 -0
- package/dist/templates/monorepo/scripts/manual/compile.ts +36 -9
- package/dist/templates/monorepo/scripts/worktree/prune.test.ts +517 -0
- package/dist/templates/monorepo/scripts/worktree/prune.ts +331 -0
- package/oclif.manifest.json +85 -85
- package/package.json +15 -17
- package/dist/templates/frontend/packages/automation/src/app/domains/admin/apps/automation/state-machine-history/features/state-machine-history-list-actions-cell.component.ts +0 -44
- package/dist/templates/frontend/packages/business-partner-portal/src/app/domains/admin/apps/business-partner-portal/purchase-invoice-trace/features/purchase-invoice-trace-list-actions-cell.component.ts +0 -44
- package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-conversation/features/assistant-conversation-list-actions-cell.component.ts +0 -44
- package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-usage/features/assistant-usage-list-actions-cell.component.ts +0 -43
- package/dist/templates/monorepo/.claude/commands/opsx/apply.md +0 -184
- package/dist/templates/monorepo/.claude/commands/opsx/archive.md +0 -225
- package/dist/templates/monorepo/.claude/commands/opsx/explore.md +0 -196
- package/dist/templates/monorepo/.claude/commands/opsx/propose.md +0 -145
- package/dist/templates/monorepo/.claude/commands/opsx/sync.md +0 -258
|
@@ -22,6 +22,21 @@ import { type ToolsAssistantUsage } from '@src/src/app/aurora.types';
|
|
|
22
22
|
novalidate
|
|
23
23
|
(submit)="$event.preventDefault(); submit()"
|
|
24
24
|
>
|
|
25
|
+
<hlm-field class="col-span-12 md:col-span-12">
|
|
26
|
+
<label hlmFieldLabel>
|
|
27
|
+
{{ t('tools.assistant-usage.AccountUsername') }}
|
|
28
|
+
</label>
|
|
29
|
+
<input
|
|
30
|
+
id="accountUsername"
|
|
31
|
+
[formField]="signalForm.accountUsername"
|
|
32
|
+
hlmInput
|
|
33
|
+
/>
|
|
34
|
+
@for (error of signalForm.accountUsername().errors(); track error.kind) {
|
|
35
|
+
<hlm-field-error [validator]="error.kind">
|
|
36
|
+
{{ error | validationMessage }}
|
|
37
|
+
</hlm-field-error>
|
|
38
|
+
}
|
|
39
|
+
</hlm-field>
|
|
25
40
|
<hlm-field class="col-span-12 md:col-span-4">
|
|
26
41
|
<label hlmFieldLabel>
|
|
27
42
|
{{ t('tools.assistant-usage.Period') }}
|
|
@@ -121,6 +136,7 @@ export class AssistantUsageFormComponent {
|
|
|
121
136
|
protected readonly model = linkedSignal<{
|
|
122
137
|
id: string | null;
|
|
123
138
|
accountId: string | null;
|
|
139
|
+
accountUsername: string;
|
|
124
140
|
period: string;
|
|
125
141
|
inputTokens: number | null;
|
|
126
142
|
outputTokens: number | null;
|
|
@@ -129,6 +145,7 @@ export class AssistantUsageFormComponent {
|
|
|
129
145
|
return {
|
|
130
146
|
id: init?.id ?? null,
|
|
131
147
|
accountId: init?.accountId ?? null,
|
|
148
|
+
accountUsername: init?.accountUsername ?? '',
|
|
132
149
|
period: init?.period ?? '',
|
|
133
150
|
inputTokens: init?.inputTokens ?? 0,
|
|
134
151
|
outputTokens: init?.outputTokens ?? 0,
|
|
@@ -136,6 +153,7 @@ export class AssistantUsageFormComponent {
|
|
|
136
153
|
});
|
|
137
154
|
|
|
138
155
|
readonly signalForm = form(this.model, (path) => {
|
|
156
|
+
maxLength(path.accountUsername, 128);
|
|
139
157
|
required(path.period);
|
|
140
158
|
maxLength(path.period, 7);
|
|
141
159
|
required(path.inputTokens);
|
|
@@ -33,7 +33,6 @@ import { type ToolsAssistantUsage } from '@src/src/app/aurora.types';
|
|
|
33
33
|
import { flexRenderComponent } from '@tanstack/angular-table';
|
|
34
34
|
import { getAssistantUsageStandaloneColumns } from '../assistant-usage.columns';
|
|
35
35
|
import { ASSISTANT_USAGE_LIST_CONFIG } from '../data-access/assistant-usage.list-config';
|
|
36
|
-
import { AssistantUsageListActionsCell } from './assistant-usage-list-actions-cell.component';
|
|
37
36
|
|
|
38
37
|
@Component({
|
|
39
38
|
imports: [
|
|
@@ -119,18 +118,6 @@ export default class AssistantUsageListComponent {
|
|
|
119
118
|
protected readonly toggleableColumns = () => getToggleableColumns(this.baseColumns);
|
|
120
119
|
private readonly searchColumns = getSearchableColumnIds(this.baseColumns);
|
|
121
120
|
protected readonly columns: DataTableColumnDef<ToolsAssistantUsage>[] = [
|
|
122
|
-
{
|
|
123
|
-
id: 'actions',
|
|
124
|
-
sticky: 'left',
|
|
125
|
-
size: 50,
|
|
126
|
-
enableHiding: false,
|
|
127
|
-
enableSorting: false,
|
|
128
|
-
header: '',
|
|
129
|
-
cell: () =>
|
|
130
|
-
flexRenderComponent(AssistantUsageListActionsCell, {
|
|
131
|
-
inputs: {},
|
|
132
|
-
}),
|
|
133
|
-
},
|
|
134
121
|
{
|
|
135
122
|
id: 'select',
|
|
136
123
|
sticky: 'left',
|
|
@@ -4,5 +4,4 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export { default as AssistantUsageDetailComponent } from './assistant-usage-detail.component';
|
|
6
6
|
export * from './assistant-usage-form.component';
|
|
7
|
-
export * from './assistant-usage-list-actions-cell.component';
|
|
8
7
|
export { default as AssistantUsageListComponent } from './assistant-usage-list.component';
|
|
@@ -9,7 +9,7 @@ Skill: `.claude/skills/catalyst-business-rules-guard/SKILL.md` — read it befor
|
|
|
9
9
|
|
|
10
10
|
Promote rules declared in an archived OpenSpec change into the business-rules catalog.
|
|
11
11
|
|
|
12
|
-
This is the bridge between OpenSpec (where the change describes what rules are touched) and the catalog (where the rules live as reference material). Run it AFTER `/
|
|
12
|
+
This is the bridge between OpenSpec (where the change describes what rules are touched) and the catalog (where the rules live as reference material). Run it AFTER `/openspec-archive-change` for any change whose `proposal.md` includes a `## Business rules affected` section with declared actions.
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
|
@@ -75,6 +75,10 @@ This is the bridge between OpenSpec (where the change describes what rules are t
|
|
|
75
75
|
|
|
76
76
|
The changes to the catalog and the regenerated index belong in the same commit, ideally with a `chore(business-rules):` or `feat(business-rules):` prefix referencing the archive name.
|
|
77
77
|
|
|
78
|
+
Before that commit, two more files follow the catalog, or CI fails on the pull request:
|
|
79
|
+
- `pnpm test:hooks` compares the hook output for a fixed prompt against `.claude/hooks/__fixtures__/br-hr-regression-baseline.txt`, built from the real catalog. When a new or changed rule shifts that output, regenerate the fixture from `buildBusinessRulesBlock` + `buildHarnessRulesBlock` with the test's `BR_HR_PROMPT` (see `.claude/hooks/inject-prompt-context.test.ts`), then run `pnpm test:hooks`.
|
|
80
|
+
- The catalog and that fixture have copies in the CLI scaffold mirror: run `node scripts/packager/publish.mjs` and commit what it changes under `packages/cli/src/templates/`.
|
|
81
|
+
|
|
78
82
|
**Guardrails**
|
|
79
83
|
|
|
80
84
|
- Always run `--dry-run` first when the archive declares multiple rules or any derogation.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
# Business rules potencialmente relevantes para este prompt
|
|
3
3
|
|
|
4
|
-
Detectadas
|
|
4
|
+
Detectadas 7 reglas activas/propuestas con relación al prompt; mostrando las 3 más relevantes. El catálogo completo vive en `cliter/<bc>/business-rules/<aggregate>.md`.
|
|
5
5
|
|
|
6
6
|
## BR-BPP-001 — Provisión atómica del IamTenant hijo al crear un business-partner
|
|
7
7
|
|
|
@@ -149,7 +149,7 @@ Toda llamada al proveedor consume los tokens que reporta y los registra en el li
|
|
|
149
149
|
... (truncated)
|
|
150
150
|
|
|
151
151
|
---
|
|
152
|
-
Recordatorio: las reglas anteriores son **memoria + detector**, no enforcement. El código sigue siendo la verdad ejecutable. Si el cambio toca alguna de estas reglas, declara las acciones en `proposal.md` (sección "Business rules affected") y ejecuta `/business-rules:promote` tras `/
|
|
152
|
+
Recordatorio: las reglas anteriores son **memoria + detector**, no enforcement. El código sigue siendo la verdad ejecutable. Si el cambio toca alguna de estas reglas, declara las acciones en `proposal.md` (sección "Business rules affected") y ejecuta `/business-rules:promote` tras `/openspec-archive-change`.
|
|
153
153
|
---
|
|
154
154
|
# Harness rules que gobiernan este trabajo — constraints arquitectónicos, no solo memoria
|
|
155
155
|
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
* activate it.
|
|
30
30
|
*
|
|
31
31
|
* Required CLI: `openspec` (`@fission-ai/openspec`, global install) — backs the
|
|
32
|
-
* /
|
|
32
|
+
* /openspec-* skills. Like the plugins, it is per-user and cannot travel with the
|
|
33
33
|
* repo.
|
|
34
34
|
*
|
|
35
35
|
* NON-BLOCKING by design. It NEVER stops the session:
|
|
@@ -69,12 +69,12 @@ export const REQUIRED: RequiredPlugin[] = [
|
|
|
69
69
|
export const REQUIRED_OUTPUT_STYLE = 'ste100:ASD-STE100';
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
|
-
* The `openspec` CLI backs the /
|
|
72
|
+
* The `openspec` CLI backs the /openspec-* workflow. Same defect shape as the plugins:
|
|
73
73
|
* it is a global per-user install, so the repo cannot carry it.
|
|
74
74
|
*/
|
|
75
75
|
export const REQUIRED_CLI = {
|
|
76
76
|
command: 'openspec',
|
|
77
|
-
why: 'workflow SDD (/
|
|
77
|
+
why: 'workflow SDD (/openspec-*)',
|
|
78
78
|
install: 'pnpm add -g @fission-ai/openspec',
|
|
79
79
|
} as const;
|
|
80
80
|
|
|
@@ -178,7 +178,7 @@ export function buildReport(
|
|
|
178
178
|
);
|
|
179
179
|
modelParts.push(
|
|
180
180
|
`REQUIRED CLI MISSING: the \`${REQUIRED_CLI.command}\` CLI (${REQUIRED_CLI.why}) is not on PATH. ` +
|
|
181
|
-
`Tell the user (in their language) that this project's /
|
|
181
|
+
`Tell the user (in their language) that this project's /openspec-* skills need it, ` +
|
|
182
182
|
`and give the install command: ${REQUIRED_CLI.install}.`,
|
|
183
183
|
);
|
|
184
184
|
}
|
|
@@ -335,7 +335,7 @@ export function buildBusinessRulesBlock(repoRoot: string, promptLower: string):
|
|
|
335
335
|
}
|
|
336
336
|
lines.push('---');
|
|
337
337
|
lines.push(
|
|
338
|
-
'Recordatorio: las reglas anteriores son **memoria + detector**, no enforcement. El código sigue siendo la verdad ejecutable. Si el cambio toca alguna de estas reglas, declara las acciones en `proposal.md` (sección "Business rules affected") y ejecuta `/business-rules:promote` tras `/
|
|
338
|
+
'Recordatorio: las reglas anteriores son **memoria + detector**, no enforcement. El código sigue siendo la verdad ejecutable. Si el cambio toca alguna de estas reglas, declara las acciones en `proposal.md` (sección "Business rules affected") y ejecuta `/business-rules:promote` tras `/openspec-archive-change`.',
|
|
339
339
|
);
|
|
340
340
|
|
|
341
341
|
return lines.join('\n') + '\n';
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* `packages/cli/CLAUDE.md` carried no injected index.
|
|
16
16
|
*/
|
|
17
17
|
import assert from 'node:assert/strict';
|
|
18
|
-
import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
|
|
18
|
+
import { mkdirSync, mkdtempSync, readFileSync, rmSync, symlinkSync, writeFileSync } from 'node:fs';
|
|
19
19
|
import { tmpdir } from 'node:os';
|
|
20
20
|
import { join } from 'node:path';
|
|
21
21
|
import { after, before, describe, it } from 'node:test';
|
|
@@ -395,3 +395,31 @@ describe('writeSkillTriggerIndex — determinism (D3)', () => {
|
|
|
395
395
|
assert.deepEqual(parsed.skills, expected);
|
|
396
396
|
});
|
|
397
397
|
});
|
|
398
|
+
|
|
399
|
+
describe('collectSkillTriggerEntries — symlinked skill directory (OpenSpec 2.0 layout)', () => {
|
|
400
|
+
it('discovers a skill whose directory is a symlink to another directory, like a real one', () => {
|
|
401
|
+
const linkRoot = mkdtempSync(join(tmpdir(), 'skills-symlink-'));
|
|
402
|
+
try {
|
|
403
|
+
mkdirSync(join(linkRoot, '.claude', 'skills'), { recursive: true });
|
|
404
|
+
writeFileSync(join(linkRoot, 'CLAUDE.md'), '# root scope\n');
|
|
405
|
+
// The real skill lives outside `.claude/skills`; `writeSkillMd` nests it under `.claude/skills`.
|
|
406
|
+
writeSkillMd(join(linkRoot, 'store'), 'linked-fixture', {
|
|
407
|
+
name: 'linked-fixture',
|
|
408
|
+
triggers: ['linked term'],
|
|
409
|
+
});
|
|
410
|
+
symlinkSync(
|
|
411
|
+
join(linkRoot, 'store', '.claude', 'skills', 'linked-fixture'),
|
|
412
|
+
join(linkRoot, '.claude', 'skills', 'linked-fixture'),
|
|
413
|
+
'dir',
|
|
414
|
+
);
|
|
415
|
+
|
|
416
|
+
const entries = collectSkillTriggerEntries(linkRoot);
|
|
417
|
+
assert.ok(
|
|
418
|
+
entries.some((e) => e.name === 'linked-fixture' && e.path === '.claude/skills/linked-fixture/SKILL.md'),
|
|
419
|
+
`symlinked skill dropped from ${JSON.stringify(entries)}`,
|
|
420
|
+
);
|
|
421
|
+
} finally {
|
|
422
|
+
rmSync(linkRoot, { recursive: true, force: true });
|
|
423
|
+
}
|
|
424
|
+
});
|
|
425
|
+
});
|
|
@@ -150,7 +150,13 @@ function scanMdFiles(dir: string, baseDir: string): string[] {
|
|
|
150
150
|
continue;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
|
|
153
|
+
// OpenSpec 2.0 installs its skills as directory symlinks into `.agents/skills/`,
|
|
154
|
+
// and `Dirent.isDirectory()` is false for a symlink: stat the target instead.
|
|
155
|
+
const isDir = entry.isSymbolicLink()
|
|
156
|
+
? fs.statSync(fullPath, { throwIfNoEntry: false })?.isDirectory() === true
|
|
157
|
+
: entry.isDirectory();
|
|
158
|
+
|
|
159
|
+
if (isDir) {
|
|
154
160
|
results.push(...scanMdFiles(fullPath, baseDir));
|
|
155
161
|
} else if (entry.isFile() && entry.name.endsWith('.md')) {
|
|
156
162
|
results.push(rel);
|
|
@@ -26,7 +26,7 @@ Apply to the whole project, stack-agnostic.
|
|
|
26
26
|
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------- |
|
|
27
27
|
| `catalyst-business-rules-guard` | Adding, modifying, or derogating business rules; rule cited or asked about by `BR-<BC>-<AGGREGATE>-<NNN>`; about to touch code of an aggregate with active rules; any `/business-rules:*` command run | `.claude/skills/catalyst-business-rules-guard/SKILL.md` |
|
|
28
28
|
| `catalyst-cli` | Running `catalyst …` commands, regenerating a module, reconciling `.origin` files, adding or upgrading a package (`catalyst add`/`upgrade`), wiring custom code into generated composition files, deciding whether a change belongs in YAML or in code | `.claude/skills/catalyst-cli/SKILL.md` |
|
|
29
|
-
| `catalyst-harness-rules-guard` | An HR rule cited or asked about by `HR-<TOPIC>-<NNN>`; about to touch paths governed by an active harness rule; during `/
|
|
29
|
+
| `catalyst-harness-rules-guard` | An HR rule cited or asked about by `HR-<TOPIC>-<NNN>`; about to touch paths governed by an active harness rule; during `/openspec-propose` (declaring `## Harness rules applicable`); files under `cliter/harness-rules/` | `.claude/skills/catalyst-harness-rules-guard/SKILL.md` |
|
|
30
30
|
| `catalyst-langs` | Idiomas, lang, i18n de datos, traducciones, `CommonLang`, `environment.lang`, `coreGetLangs`, selector/switcher de idioma, swap de adaptador de idiomas; el mecanismo puerto + dos adaptadores (JSON/tabla), el composition point `@config/lang`, y la separación panel-vs-datos | `.claude/skills/catalyst-langs/SKILL.md` |
|
|
31
31
|
| `catalyst-processes-guard` | Adding, changing or retiring a business process («proceso»); opening or editing `cliter/<bc>/processes.yaml`; judging whether a diff changes a process; the process-review criterion of a `bc:<bc>` task; a `## Processes affected` proposal section; any `/processes:*` command | `.claude/skills/catalyst-processes-guard/SKILL.md` |
|
|
32
32
|
| `catalyst-query-dsl` | Composing/reading ANY `QueryStatement` (`where`/`relations`/`order`/`aggregation`/`limit`/`offset`); a GraphQL `query`/`constraint` arg; importing `WHERE_OPERATOR`/`LOGICAL_OPERATOR` from `@aurorajs.dev/core-back` or `@aurora/query-dsl`; filtering/sorting/paginating on EITHER stack — even if "DSL"/"QueryStatement" never appear. NOT frontend wiring (→ `catalyst-data-layer`), backend Drizzle/`FieldSchema` internals (→ `catalyst-field-schema`), or YAML authoring (→ `catalyst-schema`) | `.claude/skills/catalyst-query-dsl/SKILL.md` |
|
|
@@ -61,7 +61,7 @@ Apply to the whole project, stack-agnostic.
|
|
|
61
61
|
|
|
62
62
|
| Skill | Trigger | Path |
|
|
63
63
|
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------ |
|
|
64
|
-
| `catalyst-delegation` | BEFORE the FIRST Agent/Task call of every session; again after compaction or whenever a sub-agent report returns a `fallback-*` or missing contract field. Applies to ALL code-touching delegations, including SDD phases (`/
|
|
64
|
+
| `catalyst-delegation` | BEFORE the FIRST Agent/Task call of every session; again after compaction or whenever a sub-agent report returns a `fallback-*` or missing contract field. Applies to ALL code-touching delegations, including SDD phases (`/openspec-explore`, `/openspec-apply-change`) and ad-hoc reviews | `.claude/skills/catalyst-delegation/SKILL.md` |
|
|
65
65
|
| `catalyst-skill-creator` | Create new skills following the Agent Skills spec, document AI patterns | `.claude/skills/catalyst-skill-creator/SKILL.md` |
|
|
66
66
|
| `catalyst-update-skill-registry` | Regenerate this `REGISTRY.md` after creating/editing/deleting/renaming any skill | `.claude/skills/catalyst-update-skill-registry/SKILL.md` |
|
|
67
67
|
|
|
@@ -274,6 +274,21 @@ and `bc:tools` carry two). It is ticked with its outcome before the pull request
|
|
|
274
274
|
the dispatched close refuses the PR while it is unticked (`evaluateAcceptanceGate`). The process half
|
|
275
275
|
is owned by the `catalyst-processes-guard` skill.
|
|
276
276
|
|
|
277
|
+
**One technical-documentation criterion.** Only in the aurora-catalyst repository: a `tier:medium` or `tier:complex`
|
|
278
|
+
task, on either path, whose work touches the framework, the harness, the CLI or core
|
|
279
|
+
(the paths listed in the docs step of `operations.archive.guidance` in `openspec/config.yaml`) is
|
|
280
|
+
created with the acceptance criterion «Documentación técnica revisada con `catalyst-docs-from-spec`
|
|
281
|
+
(tarea y diff) — sin cambios | actualizada <PR de docs>». On the SDD path the archive skill reads that
|
|
282
|
+
docs step from `operations.archive.guidance` and the outcome is recorded in this criterion, never in
|
|
283
|
+
`tasks.md`; on the direct path there is no archived change, so the skill reads the task and the diff
|
|
284
|
+
of its pull request instead.
|
|
285
|
+
|
|
286
|
+
**One manual criterion per `bc:` label with screens.** A task labelled `bc:<bc>`, where `<bc>` has
|
|
287
|
+
screens (a folder `frontend/src/app/domains/admin/apps/<bc>/`), is also created with the acceptance
|
|
288
|
+
criterion «Manual de `<bc>` revisado con `catalyst-user-manual` (tarea, diff y capítulo) — sin cambios
|
|
289
|
+
| actualizado <capítulos>». It is ticked with its outcome before the pull request opens, on every
|
|
290
|
+
path; the table «Judging whether a diff changes a chapter» of that skill decides the outcome.
|
|
291
|
+
|
|
277
292
|
A **Complex task queued on `lane:local` is a dispatcher guard failure** (`Blocked`, not a silent
|
|
278
293
|
downgrade) — never label a Complex task `lane:local` to "make it fit."
|
|
279
294
|
|
|
@@ -456,7 +471,7 @@ three fails, it goes to the task's notes, and it becomes a task only with an inc
|
|
|
456
471
|
|
|
457
472
|
| Path | Creation point |
|
|
458
473
|
| --- | --- |
|
|
459
|
-
| SDD (`path:sdd`) | At `/
|
|
474
|
+
| SDD (`path:sdd`) | At `/openspec-propose` — the change references the task, and the proposal carries the task id |
|
|
460
475
|
| Direct (`path:direct`), Medium | Before the first code change |
|
|
461
476
|
|
|
462
477
|
A subtask (SDD decomposition, or a PRD piece) follows the same rule as its own path once
|
|
@@ -570,7 +585,7 @@ label with the user directly instead.
|
|
|
570
585
|
`Blocked` asking a person to review the split before queueing; **in an interactive session**,
|
|
571
586
|
the parent returns straight to `To Do` — the human already approved the split in conversation.
|
|
572
587
|
- **The automated parent close (the bullet above) stops at the merged PR.** It runs the
|
|
573
|
-
verification gates and opens `task/<parentId>` -> `main`; it never runs `/
|
|
588
|
+
verification gates and opens `task/<parentId>` -> `main`; it never runs `/openspec-archive-change`, syncs
|
|
574
589
|
specs, or runs `/business-rules:promote` — those are a PERSON's step after the merge. This is the
|
|
575
590
|
sixth manual responsibility on this board, beside: creating the task with its triage, moving it
|
|
576
591
|
to `Queued`, reviewing and merging its PR, answering a `Blocked` question, and applying a pending
|
|
@@ -628,8 +643,8 @@ this wrapper reports.
|
|
|
628
643
|
|
|
629
644
|
If the task's `References:` or description names an EXISTING OpenSpec change under
|
|
630
645
|
`openspec/changes/<name>` — the usual case for a subtask of a split Complex task — `path:sdd` on
|
|
631
|
-
that subtask means `/
|
|
632
|
-
`/
|
|
646
|
+
that subtask means `/openspec-apply-change <name>` on its slice of that change's `tasks.md`, never a second
|
|
647
|
+
`/openspec-propose`: the change already exists, and re-proposing it would fork the design the split
|
|
633
648
|
already agreed on.
|
|
634
649
|
|
|
635
650
|
After creating the subtasks this way, the worker reports `status: needs-guidance` with the split
|
|
@@ -42,16 +42,16 @@ permission; the close runs the same command afterwards, so filtering its output
|
|
|
42
42
|
## The `path:` label is binding, not a recommendation
|
|
43
43
|
|
|
44
44
|
The task's `path:` label decides the workflow — it is not yours to reinterpret. `path:sdd` means
|
|
45
|
-
run the SDD flow (`/
|
|
45
|
+
run the SDD flow (`/openspec-propose` then `/openspec-apply-change`, execution mode Automatic) before any code
|
|
46
46
|
change; `path:direct` means the direct path with the tier's usual gates. `CLAUDE.md`'s Medium-tier
|
|
47
|
-
rule ("RECOMMEND SDD via `/
|
|
47
|
+
rule ("RECOMMEND SDD via `/openspec-explore` and let the user choose") does not apply here: there is no
|
|
48
48
|
person to choose, so the label is the decision. Budget or turn pressure is never a reason to skip a
|
|
49
49
|
gate — stop and report `status: needs-guidance` instead of shortcutting one.
|
|
50
50
|
|
|
51
51
|
**Check for an existing change before proposing a new one.** If the task's `References:` line or its
|
|
52
52
|
description names an existing OpenSpec change under `openspec/changes/<name>` (a subtask of a split
|
|
53
53
|
Complex task usually does — check both before assuming there is none), `path:sdd` means
|
|
54
|
-
`/
|
|
54
|
+
`/openspec-apply-change <name>` on your slice of that change's `tasks.md`, never a second `/openspec-propose` on top
|
|
55
55
|
of a change that already exists.
|
|
56
56
|
|
|
57
57
|
## Security surface still gets a review
|
|
@@ -36,7 +36,7 @@ Invoke this skill when:
|
|
|
36
36
|
(look up `cliter/business-rules-index.json` by path or aggregate).
|
|
37
37
|
- The user invokes `/business-rules:promote`, `/business-rules:document`,
|
|
38
38
|
`/business-rules:audit`, or `/business-rules:check`.
|
|
39
|
-
- During `/
|
|
39
|
+
- During `/openspec-propose`, you detect the change affects an aggregate
|
|
40
40
|
with rules and need to consult the "Business rules affected" section
|
|
41
41
|
declared in `proposal.md`.
|
|
42
42
|
|
|
@@ -77,7 +77,7 @@ entry point (see "Anti-patterns" below).
|
|
|
77
77
|
JSDoc of that function, in the same change, on every path. No lint or gate
|
|
78
78
|
enforces it, and untouched code is not back-filled.
|
|
79
79
|
10. **Modifying `openspec/`**: only `openspec/config.yaml` (where the
|
|
80
|
-
extension that injects business rules into `/
|
|
80
|
+
extension that injects business rules into `/openspec-propose` lives).
|
|
81
81
|
Nothing else under `openspec/`.
|
|
82
82
|
|
|
83
83
|
## How to work with each route
|
|
@@ -119,9 +119,12 @@ detail (every component, every file, every flow), read
|
|
|
119
119
|
8. **Treating the catalog as executable truth**. Executable truth is
|
|
120
120
|
the code and the tests. The catalog is **memory** and **incoherence
|
|
121
121
|
detector**.
|
|
122
|
-
9. **Skipping `/business-rules:promote` after `/
|
|
123
|
-
`proposal.md` declared rule actions.
|
|
124
|
-
|
|
122
|
+
9. **Skipping `/business-rules:promote` after `/openspec-archive-change`** when the
|
|
123
|
+
`proposal.md` declared rule actions. The archive guidance in
|
|
124
|
+
`openspec/config.yaml` (`operations.archive.guidance`) asks for it, and the
|
|
125
|
+
outcome (promoted rule ids or `sin cambios`) goes in the change's Backlog
|
|
126
|
+
task, never in `tasks.md`. If you don't promote, the catalog goes out of
|
|
127
|
+
sync with the spec just archived.
|
|
125
128
|
10. **Auto-filling the body of new rules in `promote`**. The script
|
|
126
129
|
automatically applies derogations, but new rules require human input
|
|
127
130
|
(statement, exhaustive cases). The promote report indicates which
|
package/dist/templates/monorepo/.claude/skills/catalyst-business-rules-guard/references/workflow.md
CHANGED
|
@@ -10,21 +10,25 @@ Cómo crear, derogar y modificar reglas. Para el formato exacto del `.md`, ver `
|
|
|
10
10
|
|
|
11
11
|
## Workflow A — Vía OpenSpec (recomendado para cambios planificados)
|
|
12
12
|
|
|
13
|
-
Aplicable cuando el cambio pasa por OpenSpec (`propose → apply → archive
|
|
13
|
+
Aplicable cuando el cambio pasa por OpenSpec (`propose → apply → archive`, y después `promote`). El
|
|
14
|
+
paso `promote` no es una tarea de `tasks.md`: lo declara `operations.archive.guidance` de
|
|
15
|
+
`openspec/config.yaml` y lo ejecuta quien archiva, que anota el resultado (ids promovidos o
|
|
16
|
+
`sin cambios`) en la tarea de Backlog del cambio. El
|
|
14
17
|
comando `/business-rules:promote` maneja **todas las acciones** declaradas en el `proposal.md`
|
|
15
18
|
en una sola pasada.
|
|
16
19
|
|
|
17
20
|
```
|
|
18
21
|
┌───────────────────────────────────────────────────────────────────────────┐
|
|
19
|
-
│ 1. /
|
|
20
|
-
│ - El config.yaml inyecta instrucciones de business-rules.
|
|
22
|
+
│ 1. /openspec-propose <descripción> │
|
|
23
|
+
│ - El config.yaml inyecta instrucciones de business-rules. │
|
|
21
24
|
│ - Claude consulta cliter/<bc>/business-rules/* relevantes. │
|
|
22
25
|
│ - Si detecta conflicto, presenta opciones al user (a/b/c). │
|
|
23
26
|
│ - Genera proposal.md con sección "Business rules affected". │
|
|
24
27
|
│ 2. (Si hay conflicto) Tú resuelves; Claude registra la decisión. │
|
|
25
|
-
│ 3. /
|
|
26
|
-
│ 4. /
|
|
27
|
-
│ 5.
|
|
28
|
+
│ 3. /openspec-apply-change — Claude implementa el código. │
|
|
29
|
+
│ 4. /openspec-archive-change <name> — cierra el ciclo, mueve a archive/. │
|
|
30
|
+
│ 5. Tras archivar, la guía de archive (config.yaml) pide ejecutar │
|
|
31
|
+
│ /business-rules:promote — coordina dos sub-pasos: │
|
|
28
32
|
│ 5.a Script :promote (Node): │
|
|
29
33
|
│ - Para `mantiene BR-X`: no-op. │
|
|
30
34
|
│ - Para `deroga BR-Y`: state→derogated + sección ###Derogación. │
|
|
@@ -6,7 +6,7 @@ description: >
|
|
|
6
6
|
table for Agent calls. Trigger: BEFORE the FIRST Agent/Task call of every session, and
|
|
7
7
|
again whenever a sub-agent report returns a fallback-* or missing contract field, or after
|
|
8
8
|
a compaction. Applies to ALL code-touching delegations, including SDD phases
|
|
9
|
-
(/
|
|
9
|
+
(/openspec-explore, /openspec-apply-change) and ad-hoc reviews.
|
|
10
10
|
license: MIT
|
|
11
11
|
metadata:
|
|
12
12
|
author: aurora
|
|
@@ -4,7 +4,7 @@ description:
|
|
|
4
4
|
'Guards and guides the harness rules catalog — the project''s
|
|
5
5
|
architectural/framework constraints. Triggers when an HR rule is cited or
|
|
6
6
|
asked about by ID; when about to touch paths governed by an active HR rule;
|
|
7
|
-
during /
|
|
7
|
+
during /openspec-propose (declaring `## Harness rules applicable`); or when
|
|
8
8
|
editing files under cliter/harness-rules/.'
|
|
9
9
|
license: MIT
|
|
10
10
|
metadata:
|
|
@@ -14,7 +14,7 @@ metadata:
|
|
|
14
14
|
'Mentioning harness rules, HR-XXX-NNN, an architectural/framework
|
|
15
15
|
constraint (shadow module, cross-BC, ports/adapters, generated code, dev
|
|
16
16
|
modes, double cast); about to touch paths governed by an active HR rule;
|
|
17
|
-
during /
|
|
17
|
+
during /openspec-propose; files under cliter/harness-rules/.'
|
|
18
18
|
---
|
|
19
19
|
|
|
20
20
|
## When to Use
|
|
@@ -25,7 +25,7 @@ Invoke this skill when:
|
|
|
25
25
|
`HR-BRIDGES-001`, `HR-ACL-001`, etc.).
|
|
26
26
|
- You are about to modify code under paths governed by an active HR rule (look
|
|
27
27
|
up `cliter/harness-rules-index.json` by `byPath`, `byKeyword`, or `byId`).
|
|
28
|
-
- During `/
|
|
28
|
+
- During `/openspec-propose`, you need to declare the `## Harness rules applicable`
|
|
29
29
|
section in `proposal.md` (COMPLY / VIOLATE / DEROGATE per governing rule).
|
|
30
30
|
- You are editing a rule file under `cliter/harness-rules/<topic>.md` (or the
|
|
31
31
|
bc-bound location).
|
|
@@ -57,7 +57,7 @@ First identify which **route** applies.
|
|
|
57
57
|
| Route | When it applies | What to do |
|
|
58
58
|
| ---------------------------------- | ------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------- |
|
|
59
59
|
| **Consult before/while coding** | About to touch a path an active HR governs, or a write was blocked citing an HR id | Look up the index (`byPath`/`byKeyword`/`byId`), read the rule, COMPLY |
|
|
60
|
-
| **Declare at propose time** | During `/
|
|
60
|
+
| **Declare at propose time** | During `/openspec-propose` — record `## Harness rules applicable` in `proposal.md` | Run the propose-time conflict detection (`enforcement.md`), declare per rule |
|
|
61
61
|
| **Edit the catalog** | A convention genuinely changed and the rule must be derogated/replaced | Derogate + create a new rule with a NEW id; `pnpm hr:generate && hr:validate` |
|
|
62
62
|
|
|
63
63
|
There IS a `/harness-rules:audit` command (read-only health/drift: script
|
|
@@ -109,7 +109,7 @@ When a rule governs the work, the change does exactly ONE of:
|
|
|
109
109
|
outcome. Record it so the analysis is auditable (e.g. in `## Harness rules
|
|
110
110
|
applicable`).
|
|
111
111
|
- **VIOLATE** — the approach breaks the rule as written. For a `blocking` rule
|
|
112
|
-
this HALTS `/
|
|
112
|
+
this HALTS `/openspec-propose` and requires a user decision (derogate / exception /
|
|
113
113
|
justify no-conflict). For an `informational` rule it is surfaced but does not
|
|
114
114
|
halt.
|
|
115
115
|
- **DEROGATE** — a deliberate architectural decision to retire or replace the
|
|
@@ -169,7 +169,7 @@ HR are NOT enforced uniformly. Know which level a rule sits at — full detail i
|
|
|
169
169
|
generated.** Never edit them by hand — run `pnpm hr:generate`.
|
|
170
170
|
10. **Modifying `openspec/`**: only `openspec/config.yaml` (the Harness Rules
|
|
171
171
|
guidance folded into its `context:` block and `rules.proposal` list — the
|
|
172
|
-
keys OpenSpec injects into `/
|
|
172
|
+
keys OpenSpec injects into `/openspec-propose`). Nothing else under `openspec/`.
|
|
173
173
|
|
|
174
174
|
## How to work with each route
|
|
175
175
|
|
|
@@ -15,7 +15,7 @@ nature of HR (constraints, not crystallized invariants).
|
|
|
15
15
|
|
|
16
16
|
```
|
|
17
17
|
PROMPT-TIME PROPOSE-TIME WRITE-TIME
|
|
18
|
-
(UserPromptSubmit) (/
|
|
18
|
+
(UserPromptSubmit) (/openspec-propose) (PreToolUse)
|
|
19
19
|
│ │ │
|
|
20
20
|
inject-prompt-context.ts openspec/config.yaml architecture-checkpoint.ts
|
|
21
21
|
(loads HR index, top-N, (HR guidance folded into (existing structural gate —
|
|
@@ -42,13 +42,13 @@ keyword), and injects the most relevant ones as a **SEPARATE labeled block** wit
|
|
|
42
42
|
- If the HR index is absent or empty, the hook degrades cleanly to pure BR
|
|
43
43
|
behavior (BR injection is byte-identical to before this change).
|
|
44
44
|
|
|
45
|
-
### Layer 2 — Propose-time conflict detection (`/
|
|
45
|
+
### Layer 2 — Propose-time conflict detection (`/openspec-propose`)
|
|
46
46
|
|
|
47
47
|
`openspec/config.yaml` carries the Harness Rules guidance **folded into the
|
|
48
48
|
`context:` block and the `rules.proposal` list** (the only keys OpenSpec injects
|
|
49
49
|
into `openspec instructions`; an unknown top-level `harness_rules:` key would be
|
|
50
50
|
silently ignored). The Business Rules `context`/`rules` are preserved verbatim.
|
|
51
|
-
During `/
|
|
51
|
+
During `/openspec-propose` the agent:
|
|
52
52
|
|
|
53
53
|
1. Loads `cliter/harness-rules-index.json`.
|
|
54
54
|
2. Uses `byPath` to find active rules whose glob `pattern` matches the change's
|
package/dist/templates/monorepo/.claude/skills/catalyst-harness-rules-guard/references/format.md
CHANGED
|
@@ -248,7 +248,7 @@ Solo las reglas `active` gobiernan (inject, propose, content-guard las filtran).
|
|
|
248
248
|
|
|
249
249
|
Solo dos niveles, sin "warning" intermedio — por ejemplo, `HR-ARTIFACTS-001` es `informational`. La
|
|
250
250
|
severidad gobierna el HALT del propose: solo un VIOLATE de una regla `blocking` detiene
|
|
251
|
-
`/
|
|
251
|
+
`/openspec-propose`.
|
|
252
252
|
|
|
253
253
|
---
|
|
254
254
|
|
|
@@ -279,7 +279,7 @@ catálogo se opera a mano, por decisión deliberada. Hay tres rutas de interacci
|
|
|
279
279
|
| Ruta | Cuándo aplica | Qué haces |
|
|
280
280
|
| ----------------------------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
|
|
281
281
|
| **Consultar antes/durante codear** | Vas a tocar un path que gobierna una HR activa, o un write fue bloqueado citando un `HR-*` id | Busca en `harness-rules-index.json` (`byPath` / `byKeyword` / `byId`), lee, COMPLY |
|
|
282
|
-
| **Declarar en `/
|
|
282
|
+
| **Declarar en `/openspec-propose`** | El cambio toca paths gobernados; registras `## Harness rules applicable` en `proposal.md` | Por cada regla que gobierna: **COMPLY** / **VIOLATE** / **DEROGATE** |
|
|
283
283
|
| **Editar el catálogo** | Una convención cambió de verdad y la regla debe retirarse o reemplazarse | Derogar + crear nueva con ID nuevo; `pnpm hr:generate && pnpm hr:validate` |
|
|
284
284
|
|
|
285
285
|
> **Crear, editar o borrar una HR es siempre la tercera ruta (edición directa).** No busques un
|
|
@@ -340,7 +340,7 @@ En la sección `## Harness rules applicable` de un `proposal.md`, cada regla que
|
|
|
340
340
|
tocado se resuelve con exactamente UNA de:
|
|
341
341
|
|
|
342
342
|
- **COMPLY** — el enfoque honra la regla. Es el default y el resultado deseado.
|
|
343
|
-
- **VIOLATE** — el enfoque la rompe. Para una regla `blocking` esto **detiene** `/
|
|
343
|
+
- **VIOLATE** — el enfoque la rompe. Para una regla `blocking` esto **detiene** `/openspec-propose` y
|
|
344
344
|
exige decisión del usuario; para `informational` se reporta sin detener.
|
|
345
345
|
- **DEROGATE** — decisión deliberada de retirar/reemplazar la regla (su propio cambio arquitectónico).
|
|
346
346
|
|
|
@@ -90,7 +90,7 @@ Discover the scopes first, then read every `SKILL.md` inside them — never a ha
|
|
|
90
90
|
# Step 5 verification sends you investigating a mismatch that is not one.
|
|
91
91
|
# */.claude/skills/* restricts to Claude scopes; skills installed for other tools
|
|
92
92
|
# (an `.agents/skills/` directory) are not in this registry.
|
|
93
|
-
for f in $(find . -name node_modules -prune -o -path './packages/cli/src/templates' -prune -o -path './packages/cli/dist' -prune \
|
|
93
|
+
for f in $(find -L . -name node_modules -prune -o -path './packages/cli/src/templates' -prune -o -path './packages/cli/dist' -prune \
|
|
94
94
|
-o -path '*/.claude/skills/*/SKILL.md' -print | sort); do
|
|
95
95
|
echo "=== $f ==="
|
|
96
96
|
awk '/^---$/{c++; next} c==1{print}' "$f"
|
|
@@ -199,7 +199,7 @@ After writing the REGISTRY:
|
|
|
199
199
|
|
|
200
200
|
1. Count the `SKILL.md` files the Step 1 scan found, per scope:
|
|
201
201
|
```bash
|
|
202
|
-
find . -name node_modules -prune -o -path './packages/cli/src/templates' -prune -o -path './packages/cli/dist' -prune \
|
|
202
|
+
find -L . -name node_modules -prune -o -path './packages/cli/src/templates' -prune -o -path './packages/cli/dist' -prune \
|
|
203
203
|
-o -path '*/.claude/skills/*/SKILL.md' -print | sed -E 's|/\.claude/skills/.*||' | sort | uniq -c
|
|
204
204
|
```
|
|
205
205
|
2. Count entries in the generated REGISTRY
|
|
@@ -225,11 +225,11 @@ After writing the REGISTRY:
|
|
|
225
225
|
|
|
226
226
|
```bash
|
|
227
227
|
# List every skill across every scope, grouped by scope
|
|
228
|
-
find . -name node_modules -prune -o -path './packages/cli/src/templates' -prune -o -path './packages/cli/dist' -prune \
|
|
228
|
+
find -L . -name node_modules -prune -o -path './packages/cli/src/templates' -prune -o -path './packages/cli/dist' -prune \
|
|
229
229
|
-o -path '*/.claude/skills/*/SKILL.md' -print | sed -E 's|/\.claude/skills/.*||' | sort | uniq -c
|
|
230
230
|
|
|
231
231
|
# Extract frontmatter from every SKILL.md (same scan as Step 1)
|
|
232
|
-
for f in $(find . -name node_modules -prune -o -path './packages/cli/src/templates' -prune -o -path './packages/cli/dist' -prune \
|
|
232
|
+
for f in $(find -L . -name node_modules -prune -o -path './packages/cli/src/templates' -prune -o -path './packages/cli/dist' -prune \
|
|
233
233
|
-o -path '*/.claude/skills/*/SKILL.md' -print | sort); do
|
|
234
234
|
echo "=== $f ==="
|
|
235
235
|
awk '/^---$/{c++; next} c==1{print}' "$f"
|
|
@@ -319,7 +319,7 @@ only by the manual. A screen without declaration offers nothing; nothing is infe
|
|
|
319
319
|
- Each action reaches the sections of the chapter whose `route` equals the action's `route`.
|
|
320
320
|
- A declared action also appears in the command palette (groups Actions and "On this screen"), not only in the assistant. The palette is described in `frontend/src/@aurora/modules/command-palette/README.md`: four groups (actions, go to, manual, assistant) and two ports (`CommandPaletteNavigation`, `CommandPaletteAssistant`).
|
|
321
321
|
- Belongs: actions that open a screen or its creation form, and the tour to start.
|
|
322
|
-
- Does not belong: prefill values, actions that write, delete or approve, free-text values, record
|
|
322
|
+
- Does not belong: prefill values, the detail mode, actions that write, delete or approve, free-text values, record
|
|
323
323
|
ids. A `prefill` key in the catalog fails the compile.
|
|
324
324
|
|
|
325
325
|
### What the CLI generates
|
|
@@ -339,6 +339,15 @@ screen does not wait for a person to write it:
|
|
|
339
339
|
untouched. It does not remove the entry of a deleted module: the compile then fails naming the
|
|
340
340
|
action and the route, and the fix is deleting that entry.
|
|
341
341
|
|
|
342
|
+
### `detailMode`
|
|
343
|
+
|
|
344
|
+
The compile also writes `detailMode` on a `create` action whose route has a module YAML: `dialog`
|
|
345
|
+
when the module declares `front.detailMode: dialog`, `view` otherwise (the generator's default, a
|
|
346
|
+
form in its own page at `<route>/new`). A person never declares it, and a `detailMode` key in the
|
|
347
|
+
catalog fails the compile. It is absent for an `open` action and for a route with no module YAML.
|
|
348
|
+
The runner goes straight to `<route>/new` for `view`; for `dialog` or no value it opens the list and
|
|
349
|
+
activates its create control.
|
|
350
|
+
|
|
342
351
|
### `prefill`
|
|
343
352
|
|
|
344
353
|
The compile writes `prefill` on every compiled action: a list of `{ field, options }`, one per field
|
|
@@ -360,7 +369,7 @@ dossier and this skill's path. Sub-agents write files; stage 2 ends with the cov
|
|
|
360
369
|
| --- | --- | --- |
|
|
361
370
|
| 1. Align the PRD | `/manual:reconcile-prd <prd-path>` | The PRD: what was built, what changed, what was not built |
|
|
362
371
|
| 2. First manual | `/manual:write <bc> [lang]` | `cliter/<bc>/manual/<lang>/<module>.md`, plus its tour and video steps files, and `cliter/<bc>/actions.yaml` (the CLI may have seeded it) |
|
|
363
|
-
| 3. Later changes | no command | The chapter, edited in the pull request of the feature (see "Keeping a chapter current") |
|
|
372
|
+
| 3. Later changes | no command | The chapter, edited in the pull request of the feature from the task, the diff and the current chapter (see "Keeping a chapter current") |
|
|
364
373
|
|
|
365
374
|
## Keeping a chapter current
|
|
366
375
|
|
|
@@ -372,6 +381,43 @@ the change:
|
|
|
372
381
|
- A project's own bounded context edits its chapter, with AI assistance, in the same pull request as
|
|
373
382
|
the feature.
|
|
374
383
|
|
|
384
|
+
### Sources of a later change
|
|
385
|
+
|
|
386
|
+
Stage 3 does not use the dossier: it covers the whole bounded context, not what changed. It reads three
|
|
387
|
+
sources, and the same trust order applies (the code wins):
|
|
388
|
+
|
|
389
|
+
1. **The task** — description and acceptance criteria: the intent and what was decided. The criteria
|
|
390
|
+
are raw material for steps.
|
|
391
|
+
2. **The diff of the branch** (`git diff origin/main...HEAD`) — what changed in fact. When it
|
|
392
|
+
disagrees with the task, the diff wins.
|
|
393
|
+
3. **The current chapter** of each touched module — the target. Edit it; never rewrite it from zero.
|
|
394
|
+
|
|
395
|
+
A change with no task (a Minor) has only the diff. A Minor does not change behavior, so its outcome is
|
|
396
|
+
normally `sin cambios`.
|
|
397
|
+
|
|
398
|
+
### Judging whether a diff changes a chapter
|
|
399
|
+
|
|
400
|
+
Read the diff of the touched screens (the frontend module folder, its i18n files, the YAML `front:`
|
|
401
|
+
block, `actions.yaml`) and ask, in this order:
|
|
402
|
+
|
|
403
|
+
| The diff... | Changes the manual? |
|
|
404
|
+
| --- | --- |
|
|
405
|
+
| Adds or removes a screen, a menu entry or a user task (a button, a row action, a bulk action) | Yes: add or remove the chapter or its H2 |
|
|
406
|
+
| Changes the steps of a task: a new mandatory field, a new confirmation, a different order | Yes: edit the steps |
|
|
407
|
+
| Changes a visible outcome: a toast, a status a user sees, what the list shows after an action | Yes: edit the outcome |
|
|
408
|
+
| Introduces a rule a user can trip over (a blocked action, a validation with its own message) | Yes: say it in the task where it happens |
|
|
409
|
+
| Renames a label that the chapter quotes | Yes: update the quoted label |
|
|
410
|
+
| Adds, removes or changes a guided action (`actions.yaml`, `prefill`, `detailMode`) | Yes: update `actions.yaml` beside the chapter |
|
|
411
|
+
| Changes a step that a recorded video or a guided tour shows (`data-tour`, a moved control) | Yes: update the steps file or the tour, then run `pnpm manual:record` again |
|
|
412
|
+
| Changes styling, spacing, colors, or a label the chapter does not quote | No |
|
|
413
|
+
| Changes only internals: backend logic with no visible effect, performance, refactor, tests | No |
|
|
414
|
+
|
|
415
|
+
When in doubt, the question is: «would a person who follows the chapter today fail, or miss a thing
|
|
416
|
+
they can now do?». Yes → the chapter changes. Write the outcome on the task's criterion «Manual de
|
|
417
|
+
`<bc>` revisado» (see `catalyst-backlog`) as `sin cambios | actualizado <chapters>`.
|
|
418
|
+
|
|
419
|
+
### After the edit
|
|
420
|
+
|
|
375
421
|
The edit follows the same rules as a first chapter: if a video steps file changes, run
|
|
376
422
|
`pnpm manual:record` again for that bounded context; then run `pnpm manual:compile`, so the process
|
|
377
423
|
coverage check runs before the pull request.
|