@aurorajs.dev/catalyst-cli 3.1.2 → 3.1.4

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.
Files changed (235) hide show
  1. package/README.md +1 -1
  2. package/dist/ai/domain/skills-scanner.js +7 -2
  3. package/dist/deploy/domain/curl-config.js +1 -1
  4. package/dist/deploy/domain/playbook-vars.js +1 -1
  5. package/dist/generator/domain/frontend-composition.js +4 -4
  6. package/dist/generator/domain/property-filters.d.ts +8 -0
  7. package/dist/generator/domain/property-filters.js +17 -6
  8. package/dist/generator/handlers/front.handler.js +10 -1
  9. package/dist/sheets/domain/auth.js +10 -5
  10. package/dist/sheets/sync/sheet-to-yaml.d.ts +1 -0
  11. package/dist/sheets/sync/sheet-to-yaml.js +19 -3
  12. package/dist/templates/backend/application/.claude/skills/catalyst-tools/SKILL.md +5 -3
  13. package/dist/templates/backend/application/src/@aurora/modules/manual/application/manual-catalog-section-reader.spec.ts +4 -0
  14. package/dist/templates/backend/application/src/@aurora/modules/manual/application/manual-find-index.handler.spec.ts +2 -0
  15. package/dist/templates/backend/application/src/@aurora/modules/manual/application/manual-find-index.handler.ts +2 -1
  16. package/dist/templates/backend/application/src/@aurora/modules/manual/domain/manual-section-reader.port.ts +2 -0
  17. package/dist/templates/backend/application/src/@aurora/modules/manual/domain/manual.types.ts +2 -0
  18. package/dist/templates/backend/application/src/@aurora/modules/manual/graphql/manual-graphql-schema.spec.ts +10 -2
  19. package/dist/templates/backend/application/src/@aurora/modules/manual/graphql/manual.graphql +4 -0
  20. package/dist/templates/backend/business-rules/business-partner-portal/supplier-document.md +96 -6
  21. package/dist/templates/backend/business-rules/tools/assistant-usage.md +60 -0
  22. package/dist/templates/backend/manual/business-partner-portal/CONTEXT.md +5 -5
  23. package/dist/templates/backend/manual/business-partner-portal/en/purchase-invoice-header.md +5 -1
  24. package/dist/templates/backend/manual/business-partner-portal/es/purchase-invoice-header.md +5 -1
  25. package/dist/templates/backend/manual/production-planning/en/planner.md +1 -1
  26. package/dist/templates/backend/manual/production-planning/en/production-order-position-event.md +8 -5
  27. package/dist/templates/backend/manual/production-planning/es/planner.md +1 -1
  28. package/dist/templates/backend/manual/production-planning/es/production-order-position-event.md +8 -5
  29. package/dist/templates/backend/manual/reporting/en/report.md +40 -0
  30. package/dist/templates/backend/manual/reporting/es/report.md +40 -0
  31. package/dist/templates/backend/manual/tools/CONTEXT.md +1 -0
  32. package/dist/templates/backend/manual/tools/actions.yaml +11 -0
  33. package/dist/templates/backend/manual/tools/en/assistant-conversation.md +38 -0
  34. package/dist/templates/backend/manual/tools/en/assistant-usage-policy.md +46 -0
  35. package/dist/templates/backend/manual/tools/en/assistant-usage.md +28 -0
  36. package/dist/templates/backend/manual/tools/en/file-storage.md +83 -0
  37. package/dist/templates/backend/manual/tools/es/assistant-conversation.md +38 -0
  38. package/dist/templates/backend/manual/tools/es/assistant-usage-policy.md +46 -0
  39. package/dist/templates/backend/manual/tools/es/assistant-usage.md +28 -0
  40. package/dist/templates/backend/manual/tools/es/file-storage.md +83 -0
  41. 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
  42. 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
  43. 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
  44. 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
  45. 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
  46. 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
  47. 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
  48. 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
  49. 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
  50. 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
  51. 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
  52. 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
  53. 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
  54. 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
  55. 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
  56. package/dist/templates/backend/packages/reporting/src/@api/reporting/report/dto/reporting-create-report.dto.ts +0 -21
  57. package/dist/templates/backend/packages/reporting/src/@api/reporting/report/dto/reporting-report.dto.ts +3 -3
  58. package/dist/templates/backend/packages/reporting/src/@api/reporting/report/dto/reporting-update-report-by-id.dto.ts +0 -48
  59. package/dist/templates/backend/packages/reporting/src/@api/reporting/report/dto/reporting-update-reports.dto.ts +0 -48
  60. package/dist/templates/backend/packages/reporting/src/@api/reporting/report/graphql/reporting-report.graphql +3 -20
  61. package/dist/templates/backend/packages/reporting/src/@app/reporting/report/application/create/reporting-create-report.service.ts +2 -2
  62. package/dist/templates/backend/packages/reporting/src/@app/reporting/report/application/reporting-report.payload-types.ts +33 -0
  63. package/dist/templates/backend/packages/reporting/src/@app/reporting/report/application/update/reporting-update-report-by-id.handler.spec.ts +77 -0
  64. package/dist/templates/backend/packages/reporting/src/@app/reporting/report/application/update/reporting-update-report-by-id.service.ts +2 -2
  65. package/dist/templates/backend/packages/reporting/src/@app/reporting/report/application/update/reporting-update-reports.service.ts +2 -2
  66. package/dist/templates/backend/packages/reporting/src/@app/reporting/report/application/update-execution-cache/reporting-update-report-execution-cache.handler.spec.ts +35 -0
  67. package/dist/templates/backend/packages/reporting/src/@app/reporting/report/domain/reporting-report.field-schema.ts +7 -0
  68. package/dist/templates/backend/packages/reporting/src/@app/reporting/report/index.ts +5 -0
  69. package/dist/templates/backend/packages/tools/src/@api/tools/assistant-conversation/dto/tools-assistant-conversation.dto.ts +8 -1
  70. package/dist/templates/backend/packages/tools/src/@api/tools/assistant-conversation/dto/tools-update-assistant-conversation-by-id.dto.ts +8 -1
  71. package/dist/templates/backend/packages/tools/src/@api/tools/assistant-conversation/dto/tools-update-assistant-conversations.dto.ts +8 -1
  72. package/dist/templates/backend/packages/tools/src/@api/tools/assistant-conversation/graphql/tools-assistant-conversation.graphql +8 -1
  73. package/dist/templates/backend/packages/tools/src/@api/tools/assistant-usage/controllers/tools-ask-assistant-assistant-usage.controller.ts +1 -0
  74. package/dist/templates/backend/packages/tools/src/@api/tools/assistant-usage/dto/tools-ask-assistant.dto.ts +47 -0
  75. package/dist/templates/backend/packages/tools/src/@api/tools/assistant-usage/dto/tools-assistant-answer.dto.ts +1 -0
  76. package/dist/templates/backend/packages/tools/src/@api/tools/assistant-usage/dto/tools-assistant-usage.dto.ts +8 -1
  77. package/dist/templates/backend/packages/tools/src/@api/tools/assistant-usage/dto/tools-update-assistant-usage-by-id.dto.ts +8 -1
  78. package/dist/templates/backend/packages/tools/src/@api/tools/assistant-usage/dto/tools-update-assistant-usages.dto.ts +8 -1
  79. package/dist/templates/backend/packages/tools/src/@api/tools/assistant-usage/graphql/tools-assistant-usage.graphql +45 -1
  80. package/dist/templates/backend/packages/tools/src/@api/tools/assistant-usage/resolvers/tools-ask-assistant-assistant-usage.resolver.ts +1 -0
  81. package/dist/templates/backend/packages/tools/src/@app/tools/anthropic/infrastructure/tools-anthropic-assistant-model.service.spec.ts +1 -0
  82. package/dist/templates/backend/packages/tools/src/@app/tools/anthropic/shared/functions/tools-anthropic-build-assistant-request.function.spec.ts +145 -0
  83. package/dist/templates/backend/packages/tools/src/@app/tools/anthropic/shared/functions/tools-anthropic-build-assistant-request.function.ts +44 -2
  84. package/dist/templates/backend/packages/tools/src/@app/tools/anthropic/shared/types/tools-anthropic-assistant-answer.types.ts +3 -2
  85. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-conversation/domain/tools-assistant-conversation.field-schema.ts +6 -0
  86. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-conversation/infrastructure/drizzle/tools-drizzle-assistant-conversation.schema.ts +1 -0
  87. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/application/ask-assistant/tools-ask-assistant-assistant-usage.handler.spec.ts +105 -5
  88. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/application/ask-assistant/tools-ask-assistant-assistant-usage.handler.ts +40 -23
  89. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/application/ask-assistant/tools-assistant-errors.function.ts +8 -0
  90. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/application/ask-assistant/tools-assistant-read-screen.function.spec.ts +257 -0
  91. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/application/ask-assistant/tools-assistant-read-screen.function.ts +200 -0
  92. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/application/quota/tools-assistant-quota.service.spec.ts +7 -2
  93. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/application/quota/tools-assistant-quota.service.ts +7 -2
  94. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/domain/tools-assistant-model.port.ts +44 -0
  95. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/domain/tools-assistant-usage.field-schema.ts +6 -0
  96. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/infrastructure/drizzle/tools-drizzle-assistant-usage.repository.spec.ts +25 -0
  97. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/infrastructure/drizzle/tools-drizzle-assistant-usage.repository.ts +3 -0
  98. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/infrastructure/drizzle/tools-drizzle-assistant-usage.schema.ts +1 -0
  99. package/dist/templates/backend/packages/tools/test/acceptance/tools/assistant-ask.e2e-spec.ts +16 -1
  100. package/dist/templates/backend/packages/tools/test/acceptance/tools/assistant-usage-increment.e2e-spec.ts +52 -5
  101. package/dist/templates/codegen/frontend/module/__module_name__/features/__module_name__-list.component.ts.eta +7 -1
  102. package/dist/templates/codegen/frontend/module/__module_name__/features/index.ts.eta +1 -1
  103. package/dist/templates/frontend/application/.claude/skills/catalyst-project-structure/SKILL.md +3 -0
  104. package/dist/templates/frontend/application/angular.json +2 -0
  105. package/dist/templates/frontend/application/libs/ui/command/src/lib/hlm-command-item.ts +1 -1
  106. package/dist/templates/frontend/application/src/@aurora/modules/assisted-form/README.md +2 -0
  107. package/dist/templates/frontend/application/src/@aurora/modules/command-palette/command-palette-trigger.component.ts +1 -0
  108. package/dist/templates/frontend/application/src/@aurora/modules/guided-action/README.md +4 -0
  109. package/dist/templates/frontend/application/src/@aurora/modules/guided-action/guided-action-runner.service.spec.ts +69 -0
  110. package/dist/templates/frontend/application/src/@aurora/modules/guided-action/guided-action-runner.service.ts +13 -4
  111. package/dist/templates/frontend/application/src/@aurora/modules/index.ts +1 -0
  112. package/dist/templates/frontend/application/src/@aurora/modules/manual/manual.graphql.ts +1 -0
  113. package/dist/templates/frontend/application/src/@aurora/modules/screen-context/README.md +36 -0
  114. package/dist/templates/frontend/application/src/@aurora/modules/screen-context/index.ts +2 -0
  115. package/dist/templates/frontend/application/src/@aurora/modules/screen-context/screen-context.service.spec.ts +137 -0
  116. package/dist/templates/frontend/application/src/@aurora/modules/screen-context/screen-context.service.ts +60 -0
  117. package/dist/templates/frontend/application/src/@aurora/modules/screen-context/screen-context.types.ts +47 -0
  118. package/dist/templates/frontend/application/src/app/domains/admin/layout/site-header.ts +1 -1
  119. package/dist/templates/frontend/application/tsconfig.json +1 -0
  120. package/dist/templates/frontend/navigation-i18n/reporting/en.json +1 -1
  121. package/dist/templates/frontend/navigation-i18n/reporting/es.json +1 -1
  122. package/dist/templates/frontend/packages/automation/src/app/domains/admin/apps/automation/state-machine-history/features/index.ts +0 -1
  123. package/dist/templates/frontend/packages/automation/src/app/domains/admin/apps/automation/state-machine-history/features/state-machine-history-list.component.ts +0 -13
  124. package/dist/templates/frontend/packages/business-partner-portal/public/i18n/business-partner-portal/en.json +11 -0
  125. package/dist/templates/frontend/packages/business-partner-portal/public/i18n/business-partner-portal/es.json +11 -0
  126. 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
  127. 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
  128. 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
  129. 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
  130. 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
  131. 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
  132. 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
  133. 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
  134. 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
  135. 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
  136. package/dist/templates/frontend/packages/business-partner-portal/src/app/domains/admin/apps/business-partner-portal/purchase-invoice-trace/features/index.ts +0 -1
  137. 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
  138. package/dist/templates/frontend/packages/identity/src/app/domains/admin/apps/iam/account/features/account-form.component.spec.ts +26 -1
  139. package/dist/templates/frontend/packages/identity/src/app/domains/admin/apps/iam/account/features/account-form.component.ts +45 -0
  140. package/dist/templates/frontend/packages/production-planning/public/i18n/production-planning/en.json +16 -4
  141. package/dist/templates/frontend/packages/production-planning/public/i18n/production-planning/es.json +16 -4
  142. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/planner/data-access/index.ts +1 -0
  143. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/planner/data-access/planner-process-weights.derive.spec.ts +76 -0
  144. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/planner/data-access/planner-process-weights.derive.ts +49 -0
  145. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/planner/data-access/planner.derive.spec.ts +15 -0
  146. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/planner/data-access/planner.derive.ts +7 -3
  147. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/planner/data-access/planner.graphql.ts +23 -0
  148. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/planner/features/planner-process-weights-dialog.component.ts +139 -0
  149. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/planner/features/planner.component.ts +41 -4
  150. 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
  151. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/production-dashboard/data-access/production-dashboard.derive.ts +0 -21
  152. 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
  153. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/production-dashboard/data-access/production-dashboard.resolvers.ts +3 -1
  154. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/production-dashboard/features/batch-detail-sheet.component.ts +22 -10
  155. 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
  156. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/production-dashboard/features/event-form-sheet.component.ts +95 -59
  157. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/production-dashboard/features/event-list.component.ts +121 -123
  158. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/production-dashboard/features/production-dashboard.component.ts +52 -19
  159. 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
  160. 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
  161. 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
  162. 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
  163. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/shared/dialogs/finish-event-dialog.component.ts +3 -3
  164. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/shared/dialogs/weight-input-dialog.component.ts +3 -3
  165. package/dist/templates/frontend/packages/reporting/public/i18n/reporting/en.json +1 -1
  166. package/dist/templates/frontend/packages/reporting/public/i18n/reporting/es.json +1 -1
  167. package/dist/templates/frontend/packages/reporting/src/app/domains/admin/apps/reporting/report/data-access/report.detail-config.ts +1 -2
  168. package/dist/templates/frontend/packages/reporting/src/app/domains/admin/apps/reporting/report/data-access/report.graphql.ts +0 -14
  169. package/dist/templates/frontend/packages/reporting/src/app/domains/admin/apps/reporting/report/features/report-form.component.spec.ts +96 -0
  170. package/dist/templates/frontend/packages/reporting/src/app/domains/admin/apps/reporting/report/features/report-form.component.ts +46 -69
  171. package/dist/templates/frontend/packages/reporting/src/app/domains/admin/apps/reporting/report/features/report-list.component.ts +2 -22
  172. package/dist/templates/frontend/packages/reporting/src/app/domains/admin/apps/reporting/report/report.columns.ts +0 -1
  173. package/dist/templates/frontend/packages/reporting/src/app/domains/admin/apps/reporting/reporting-icons.providers.ts +2 -1
  174. package/dist/templates/frontend/packages/reporting/src/app/domains/admin/apps/reporting/reporting.navigation.ts +7 -0
  175. package/dist/templates/frontend/packages/tools/public/i18n/tools/en.json +4 -2
  176. package/dist/templates/frontend/packages/tools/public/i18n/tools/es.json +4 -2
  177. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant/tools-assistant.service.spec.ts +82 -7
  178. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant/tools-assistant.service.ts +12 -2
  179. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-conversation/assistant-conversation.columns.ts +13 -0
  180. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-conversation/data-access/assistant-conversation.graphql.ts +1 -0
  181. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-conversation/features/assistant-conversation-form.component.ts +18 -0
  182. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-conversation/features/assistant-conversation-list.component.ts +0 -13
  183. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-conversation/features/index.ts +0 -1
  184. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-usage/assistant-usage.columns.ts +13 -0
  185. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-usage/data-access/assistant-usage.graphql.ts +2 -0
  186. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-usage/features/assistant-usage-form.component.ts +18 -0
  187. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-usage/features/assistant-usage-list.component.ts +0 -13
  188. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-usage/features/index.ts +0 -1
  189. package/dist/templates/monorepo/.claude/commands/business-rules/promote.md +5 -1
  190. package/dist/templates/monorepo/.claude/hooks/__fixtures__/br-hr-regression-baseline.txt +2 -2
  191. package/dist/templates/monorepo/.claude/hooks/check-required-setup.ts +4 -4
  192. package/dist/templates/monorepo/.claude/hooks/inject-prompt-context.ts +1 -1
  193. package/dist/templates/monorepo/.claude/scripts/generate-skills-index.test.ts +29 -1
  194. package/dist/templates/monorepo/.claude/scripts/generate-skills-index.ts +7 -1
  195. package/dist/templates/monorepo/.claude/skills/REGISTRY.md +2 -2
  196. package/dist/templates/monorepo/.claude/skills/catalyst-backlog/SKILL.md +19 -4
  197. package/dist/templates/monorepo/.claude/skills/catalyst-backlog/frontier-worker-addendum.md +3 -3
  198. package/dist/templates/monorepo/.claude/skills/catalyst-business-rules-guard/SKILL.md +8 -5
  199. package/dist/templates/monorepo/.claude/skills/catalyst-business-rules-guard/references/workflow.md +10 -6
  200. package/dist/templates/monorepo/.claude/skills/catalyst-delegation/SKILL.md +1 -1
  201. package/dist/templates/monorepo/.claude/skills/catalyst-harness-rules-guard/SKILL.md +6 -6
  202. package/dist/templates/monorepo/.claude/skills/catalyst-harness-rules-guard/references/enforcement.md +3 -3
  203. package/dist/templates/monorepo/.claude/skills/catalyst-harness-rules-guard/references/format.md +3 -3
  204. package/dist/templates/monorepo/.claude/skills/catalyst-update-skill-registry/SKILL.md +4 -4
  205. package/dist/templates/monorepo/.claude/skills/catalyst-user-manual/SKILL.md +48 -2
  206. package/dist/templates/monorepo/.claude/skills/openspec-apply-change/SKILL.md +28 -10
  207. package/dist/templates/monorepo/.claude/skills/openspec-archive-change/SKILL.md +52 -13
  208. package/dist/templates/monorepo/.claude/skills/openspec-explore/SKILL.md +59 -14
  209. package/dist/templates/monorepo/.claude/skills/openspec-propose/SKILL.md +38 -12
  210. package/dist/templates/monorepo/.claude/skills/openspec-sync-specs/SKILL.md +31 -3
  211. package/dist/templates/monorepo/CLAUDE.md +14 -14
  212. package/dist/templates/monorepo/docs/business-rules/ARCHITECTURE.md +16 -13
  213. package/dist/templates/monorepo/docs/business-rules/MIGRATION.md +5 -5
  214. package/dist/templates/monorepo/docs/manual/en/04-asistente.md +71 -0
  215. package/dist/templates/monorepo/docs/manual/es/04-asistente.md +71 -0
  216. package/dist/templates/monorepo/openspec/config.yaml +25 -5
  217. package/dist/templates/monorepo/package.json +3 -1
  218. package/dist/templates/monorepo/scripts/backlog/prompt.test.ts +5 -5
  219. package/dist/templates/monorepo/scripts/backlog/prompt.ts +1 -1
  220. package/dist/templates/monorepo/scripts/business-rules/audit.ts +1 -1
  221. package/dist/templates/monorepo/scripts/manual/compile.test.ts +78 -0
  222. package/dist/templates/monorepo/scripts/manual/compile.ts +36 -9
  223. package/dist/templates/monorepo/scripts/worktree/prune.test.ts +517 -0
  224. package/dist/templates/monorepo/scripts/worktree/prune.ts +331 -0
  225. package/oclif.manifest.json +408 -408
  226. package/package.json +15 -17
  227. 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
  228. 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
  229. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-conversation/features/assistant-conversation-list-actions-cell.component.ts +0 -44
  230. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-usage/features/assistant-usage-list-actions-cell.component.ts +0 -43
  231. package/dist/templates/monorepo/.claude/commands/opsx/apply.md +0 -184
  232. package/dist/templates/monorepo/.claude/commands/opsx/archive.md +0 -225
  233. package/dist/templates/monorepo/.claude/commands/opsx/explore.md +0 -196
  234. package/dist/templates/monorepo/.claude/commands/opsx/propose.md +0 -145
  235. package/dist/templates/monorepo/.claude/commands/opsx/sync.md +0 -258
@@ -1,13 +1,13 @@
1
1
  ---
2
2
  name: openspec-sync-specs
3
- description: Sync delta specs from a change to main specs. Use when the user wants to update main specs with changes from a delta spec, without archiving the change.
3
+ description: Sync delta specs from an OpenSpec change to main specs. Use when the user wants to update main specs with changes from a delta spec, without archiving the change. Also use when the user says "openspec sync" or "opsx sync".
4
4
  allowed-tools: Bash(openspec:*)
5
5
  license: MIT
6
6
  compatibility: Requires openspec CLI.
7
7
  metadata:
8
8
  author: openspec
9
9
  version: "1.0"
10
- generatedBy: "1.11.0"
10
+ generatedBy: "2.0.0"
11
11
  ---
12
12
 
13
13
  Sync delta specs from a change to main specs.
@@ -16,6 +16,17 @@ This is an **agent-driven** operation - you will read delta specs and directly e
16
16
 
17
17
  **Store selection:** If the user names a store (a store is a standalone OpenSpec repo registered on this machine) or the work lives in one, run `openspec store list --json` to discover registered store ids, then pass `--store <id>` on the commands that read or write specs and changes (`new change`, `status`, `instructions`, `list`, `show`, `validate`, `archive`, `doctor`, `context`, `schemas`, `view`). Once selected, treat `--store <id>` as sticky for the rest of the workflow. Every unscoped example of those commands below is shorthand: before running it, append the flag. For example, run `openspec status --change "<name>" --json --store "<id>"`, not the unscoped form shown below. Other commands do not take the flag. Hints printed by commands already carry the flag; keep it on follow-ups. Without a store, commands act on the nearest local `openspec/` root.
18
18
 
19
+ **Project check:** These steps expect a project that already uses OpenSpec. Before the first step that writes anything (`new change`, `archive`, `sync specs`, or authoring an artifact file), confirm the project has a root: run `openspec list --json` (with `--store <id>` when a store is selected, since the store is then the root) and read `root`. A root object means the project is set up. `"root": null` means it is not - there is no `openspec/` directory here, and a write such as `openspec new change` would create one as a side effect. The command also exits non-zero, which is that answer rather than a broken CLI, so read the JSON instead of retrying or working around it.
20
+
21
+ One `"root": null` is not about setup: when a `status` error message starts with `Declared in` or `Invalid store declaration in` and names this project's `openspec/config.yaml` (or `config.yml`), the project does use OpenSpec through a store it declares, which this machine cannot resolve (the store is not registered, or the `store:` line is malformed). Do not treat it as uninitialized and skip the branches below: stop before writing and show the user that error's `message` and `fix`.
22
+
23
+ Otherwise, with no root, what happens next depends on how this workflow was reached:
24
+
25
+ - **Auto-selected**: you chose this workflow yourself, without the user naming OpenSpec, naming this skill, or invoking this skill by name. Stop using OpenSpec and answer the request normally, as you would with no OpenSpec installed. Do not ask them to set anything up and do not mention OpenSpec setup.
26
+ - **Explicit OpenSpec request**: the user named OpenSpec, named this skill, or invoked this skill by name. Stop before writing and ask how to proceed: set this project up (`openspec init`), target a store they already have (`--store <id>`), or continue without OpenSpec for this request. Wait for their answer.
27
+
28
+ In both branches, never create the root as a side effect: do not run `openspec init` until the user asks for it, do not hand-create `openspec/` files, and do not let a command create it.
29
+
19
30
  `<capability-path>` is the spec directory relative to `specs/` (for example, `user-auth` or `identity/user-auth`). Preserve the full path from each delta spec when resolving its main spec.
20
31
 
21
32
  **Input**: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
@@ -31,7 +42,7 @@ This is an **agent-driven** operation - you will read delta specs and directly e
31
42
 
32
43
  When prompting, show changes that have delta specs (under `specs/` directory).
33
44
 
34
- Always announce: "Using change: <name>" and how to override (e.g., `/opsx:sync <other>`).
45
+ Always announce: "Using change: <name>" and how to override (e.g., `openspec-sync-specs <other>`).
35
46
 
36
47
  2. **Resolve change context**
37
48
 
@@ -96,6 +107,13 @@ This is an **agent-driven** operation - you will read delta specs and directly e
96
107
 
97
108
  b. **Read the main spec** at `<planningHome.root>/openspec/specs/<capability-path>/spec.md` (may not exist yet)
98
109
 
110
+ **If it does not exist yet** (a new capability), match what `openspec archive` does:
111
+ only ADDED requirements may be applied - step d creates the spec from them.
112
+ MODIFIED and RENAMED have no requirement to act on, so stop the sync for that
113
+ capability and report that its main spec does not exist and only ADDED is allowed
114
+ for a new spec; never invent the missing requirement. REMOVED has nothing to
115
+ remove - skip it and warn.
116
+
99
117
  c. **Apply changes intelligently**:
100
118
 
101
119
  **ADDED Requirements:**
@@ -143,6 +161,14 @@ This is an **agent-driven** operation - you will read delta specs and directly e
143
161
  (this is what `openspec archive` does; it warns and moves on)
144
162
 
145
163
  d. **Create new main spec** if capability doesn't exist yet:
164
+ - Only when the delta has ADDED requirements to put in it and no MODIFIED or
165
+ RENAMED requirements blocked this capability in step b. Otherwise create nothing
166
+ and leave the specs directory untouched. For a REMOVED-only delta, if the change's
167
+ `.openspec.yaml` declares `retire_capabilities: true`, report it as already retired
168
+ and continue without recreating the spec. Without that marker, report the sync as blocked:
169
+ `openspec archive` rejects it with `Spec must have at least one requirement`.
170
+ An empty delta has no operations to sync; report it as blocked too.
171
+ Never write an empty `## Requirements` section.
146
172
  - Create `<planningHome.root>/openspec/specs/<capability-path>/spec.md`
147
173
  - Add Purpose section: copy the delta's `## Purpose` body verbatim when it has one
148
174
  (this is what `openspec archive` does); only write a brief TBD placeholder when it does not
@@ -167,6 +193,8 @@ This is an **agent-driven** operation - you will read delta specs and directly e
167
193
  **Delta Spec Format Reference**
168
194
 
169
195
  ```markdown
196
+ # Spec Delta
197
+
170
198
  ## Purpose
171
199
 
172
200
  Only on a delta that introduces a brand-new capability. Seeds the new main spec.
@@ -155,16 +155,16 @@ Classify every request BEFORE delegating or touching code; re-run the triage if
155
155
  | Tier | Signals | Action |
156
156
  | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------- |
157
157
  | **Minor** | Localized fix (single field, i18n/copy tweak, isolated bug); 1–2 files; NO catalyst CLI run; NO new custom code; stays inside an existing module | Execute directly, NO SDD. Inline only the mechanical actions the Delegation Rules allow; delegate any real work. |
158
- | **Medium** | Catalyst CLI run (`catalyst generate`) AND/OR custom code on top of the standard module shape (list + detail); several files within the established architecture | RECOMMEND SDD via `/opsx:explore` and let the user choose. Never silently skip the recommendation; never force it. |
159
- | **Complex** | Large volume of custom code; OR outside the standard module shape — new flows/transports, cross-BC wiring, new aggregates with non-trivial logic, architectural changes | SDD MANDATORY via `/opsx:explore`. Bypass only if the user explicitly orders it AFTER the warning — never assume the override. |
158
+ | **Medium** | Catalyst CLI run (`catalyst generate`) AND/OR custom code on top of the standard module shape (list + detail); several files within the established architecture | RECOMMEND SDD via `/openspec-explore` and let the user choose. Never silently skip the recommendation; never force it. Weigh whether the change alters the technical documentation (framework, harness, CLI, core): if it does, recommend SDD — the archived change is the input that documentation is written from. |
159
+ | **Complex** | Large volume of custom code; OR outside the standard module shape — new flows/transports, cross-BC wiring, new aggregates with non-trivial logic, architectural changes | SDD MANDATORY via `/openspec-explore`. Bypass only if the user explicitly orders it AFTER the warning — never assume the override. |
160
160
 
161
- **Every Medium and Complex request gets a Backlog task**, created by the orchestrator with `.claude/skills/catalyst-backlog/SKILL.md` — at `/opsx:propose` on the SDD path, before the first code change on the direct path. Minor is executed on the spot with no task; create one only if the user defers it.
161
+ **Every Medium and Complex request gets a Backlog task**, created by the orchestrator with `.claude/skills/catalyst-backlog/SKILL.md` — at `/openspec-propose` on the SDD path, before the first code change on the direct path. Minor is executed on the spot with no task; create one only if the user defers it.
162
162
 
163
163
  **Exception — dispatched Minor:** a Minor executed headlessly on the local lane carries TDD and a reviewer pass anyway. The tier exempts a human writing two lines, not a weak model writing them unattended.
164
164
 
165
165
  ### Worktree Gate (THIRD gate — after triage, before touching code)
166
166
 
167
- **EVERY change to a tracked file goes through a git worktree with its own branch, and closes with a PR to `main`.** Every tier — Minor included — on ANY execution path (superpowers, OpenSpec `/opsx:*`, or direct), whatever the size of the diff. This is a mandate, not an offer: create the worktree BEFORE the first change and never ask. There is no size threshold and no exception for a docs-only edit.
167
+ **EVERY change to a tracked file goes through a git worktree with its own branch, and closes with a PR to `main`.** Every tier — Minor included — on ANY execution path (superpowers, OpenSpec `/openspec-*`, or direct), whatever the size of the diff. This is a mandate, not an offer: create the worktree BEFORE the first change and never ask. There is no size threshold and no exception for a docs-only edit.
168
168
 
169
169
  **Why even a two-line change needs it.** The main checkout is shared with other execution threads: `scripts/backlog/dispatch.ts` commits to whatever branch that checkout has active, and parallel sessions read its working tree to decide what is happening. An edit left there is indistinguishable from their own work, so it corrupts what they measure and what they commit. The isolation protects the OTHER threads, not the quality of your diff — that is why the size of the change is irrelevant and why it is never a question: their protection cannot depend on your answer.
170
170
 
@@ -176,7 +176,7 @@ Classify every request BEFORE delegating or touching code; re-run the triage if
176
176
  - **After creating the worktree:** run `bash scripts/worktree-link.sh` from the worktree root, then `pnpm install` — both are needed before ANY command that resolves dependencies (tests, build, the app, the packager). A change that runs none of them may skip the install, never the worktree — the mandate is about isolation, not about setup cost. The script only links the gitignored artifacts a worktree does not inherit (`backend/.keys`, `backend/.env`) — without them the backend cannot boot. The worktree installs its OWN dependencies: `core-back` and `core-front` are workspace members (`packages/core-back`, `packages/core-front`), so a per-worktree install is consistent with itself, and the worktree location is unconstrained because no external sibling-repo path dependency needs resolving.
177
177
  - **Running the app in a worktree:** `pnpm dev` runs the link script itself before starting the three processes, so it is safe from any checkout — the script links nothing and exits 0 when it is already in the main repo. `pnpm dev:wt` adds the `pnpm install` in front, for a worktree whose dependencies are not installed yet. `pnpm dev` also assigns the worktree its own backend+frontend port pair (`scripts/dev-ports.ts`): the main checkout gets 9080/4200, a worktree gets `9080+N`/`4200+N` for a deterministic offset `N` derived from its own path, and prints both URLs on startup. To see a change of the worktree in the browser, start `pnpm dev` from the worktree root yourself and open the frontend URL it prints — never a lone `ng serve`/`front:dev` (it points at the wrong backend and the login fails), never the main checkout's servers, never a request to free `:4200`.
178
178
  - **Working on `packages/cli`:** it is deliberately NOT a workspace member (D8), so the root `pnpm install` does not install its dependencies and `pnpm --filter` over it prints "No projects matched the filters" and exits 0 having run nothing. Run `pnpm --dir packages/cli install` once per worktree, then `pnpm cli:test`/`pnpm cli:build` from the root, `pnpm --dir packages/cli <script>` for any other script, or plain `pnpm test`/`pnpm build` from inside `packages/cli`.
179
- - On completion: finish with a PR to `main` (follow `superpowers:finishing-a-development-branch`); the verification/security gates below run BEFORE that PR as usual.
179
+ - On completion: finish with a PR to `main` (follow `superpowers:finishing-a-development-branch`); the verification/security gates below run BEFORE that PR as usual. When the user confirms the PR merged, leave the worktree (`ExitWorktree`), run `pnpm worktree:prune` from the main checkout, show the list, and run it with `--yes` only after the user confirms.
180
180
  - **Tick every acceptance criterion, with its evidence, BEFORE opening that PR.** A dispatched attempt cannot skip this — `close.ts`'s `evaluateAcceptanceGate` refuses to open a PR while one is unticked — and no such gate stands on the interactive path, so here the tick is yours to make.
181
181
  - Headless: the dispatched slot already satisfies this gate — see **Headless execution** below.
182
182
 
@@ -234,7 +234,7 @@ A task dispatched by `scripts/backlog/dispatch.ts` runs with no human present. F
234
234
 
235
235
  ### Quality Gates by Task Weight
236
236
 
237
- Gates live in the ORCHESTRATOR, not in hooks — judging a change needs judgment; a script cannot tell a typo from a new function. They apply to any non-trivial **hand-written** code, inside opsx (`opsx:apply`) AND on the direct path — gated by the change, not by whether a formal opsx flow ran.
237
+ Gates live in the ORCHESTRATOR, not in hooks — judging a change needs judgment; a script cannot tell a typo from a new function. They apply to any non-trivial **hand-written** code, inside the OpenSpec apply step (`/openspec-apply-change`) AND on the direct path — gated by the change, not by whether a formal OpenSpec flow ran.
238
238
 
239
239
  | Tier | TDD | Verification gate (fresh context) |
240
240
  | ------- | --- | --------------------------------- |
@@ -242,7 +242,7 @@ Gates live in the ORCHESTRATOR, not in hooks — judging a change needs judgment
242
242
  | Medium | Yes | ONE blind judge (`judgment-day`, single-judge mode) with the request's acceptance criteria as checklist; on the DIRECT path add `/code-review medium` for quality. Two judges if the diff touches an authorization or data boundary |
243
243
  | Complex | Yes | `judgment-day` (two blind judges, orchestrator-verified findings, single scoped re-judge). Add `/code-review high` when the diff touches `packages/` |
244
244
 
245
- **TDD forwarding (Medium/Complex — MANDATORY, no opt-out).** When delegating implementation (via `opsx:apply` or a direct writer), inject into the writer's prompt:
245
+ **TDD forwarding (Medium/Complex — MANDATORY, no opt-out).** When delegating implementation (via `/openspec-apply-change` or a direct writer), inject into the writer's prompt:
246
246
 
247
247
  > "TDD IS ACTIVE for this change. Follow `superpowers:test-driven-development` (red → green → refactor): write the FAILING test first, see it fail, THEN the implementation. Test runner: `<test_command>` — scope it (`--filter <pkg>` / the file under test, not the whole suite). Do NOT write implementation before a failing test."
248
248
 
@@ -250,9 +250,9 @@ Resolve `<test_command>` from the touched workspace's `test` script (`pnpm --fil
250
250
 
251
251
  **Verification gate (after implementation, before commit/PR).** Run the tier's review in FRESH context (independent judgment) and fix verified findings. The review MUST judge TEST QUALITY, not just presence: for each new test, ask "would this test FAIL if I broke the logic it covers?". A tautological test (passes regardless, asserts the mock) is a finding to fix — TDD theater grants false confidence. `/code-review` levels are quality gates: `low` is a single unverified pass (never a gate), `medium` finds quality and data-semantics issues, `high` also finds correctness and spec-conformity issues at roughly five times the judges' cost. Adversarial correctness comes from the judges; use `/code-review` for what the path leaves uncovered.
252
252
 
253
- **Conformity addendum (DIRECT path, Medium only).** On the direct path there is no delta spec, so nobody independent confirms the request was FULLY implemented — the implementer's self-check (`superpowers:verification-before-completion`) proves "what I did works", not "I did everything asked". Close it inside the judge pass: the single `judgment-day` judge for a Medium direct task receives the user's original request as its acceptance checklist and returns a DUAL verdict — defects (as usual) AND conformity: each requested item marked present or absent with evidence (file:line). An absent item goes back to implementation before commit. `/code-review medium` runs alongside for quality (reuse, simplification, efficiency) but does not carry the conformity verdict. Not applicable to Minor (the diff is small enough to eyeball), to Complex (SDD is mandatory there), or to the opsx flow (the SPEC CONFORMITY task from `openspec/config.yaml` already covers it against the delta spec).
253
+ **Conformity addendum (DIRECT path, Medium only).** On the direct path there is no delta spec, so nobody independent confirms the request was FULLY implemented — the implementer's self-check (`superpowers:verification-before-completion`) proves "what I did works", not "I did everything asked". Close it inside the judge pass: the single `judgment-day` judge for a Medium direct task receives the user's original request as its acceptance checklist and returns a DUAL verdict — defects (as usual) AND conformity: each requested item marked present or absent with evidence (file:line). An absent item goes back to implementation before commit. `/code-review medium` runs alongside for quality (reuse, simplification, efficiency) but does not carry the conformity verdict. Not applicable to Minor (the diff is small enough to eyeball), to Complex (SDD is mandatory there), or to the OpenSpec flow (the SPEC CONFORMITY task from `openspec/config.yaml` already covers it against the delta spec).
254
254
 
255
- **Security gate (surface-based, orthogonal to tier).** If the diff touches the security surface — authentication/authorization (`o-auth/`, `iam/`, guards, `@Auth`/permissions wiring), secrets or sensitive config (SOPS, env), new public endpoints, file uploads, raw queries, crypto/token/session handling — run `/security-review` in fresh context and fix confirmed findings BEFORE the tier's verification gate, whatever the tier: a one-line Minor change in a guard outranks a Complex UI module. Also fires from debugging: if the bug turns out to BE a vulnerability, its fix passes `/security-review` even if trivial — where there was one hole there are usually two. If the surface is untouched, the gate does not run (an alarm that always fires alerts nobody). In the opsx flow this gate is materialized as a task by `openspec/config.yaml`.
255
+ **Security gate (surface-based, orthogonal to tier).** If the diff touches the security surface — authentication/authorization (`o-auth/`, `iam/`, guards, `@Auth`/permissions wiring), secrets or sensitive config (SOPS, env), new public endpoints, file uploads, raw queries, crypto/token/session handling — run `/security-review` in fresh context and fix confirmed findings BEFORE the tier's verification gate, whatever the tier: a one-line Minor change in a guard outranks a Complex UI module. Also fires from debugging: if the bug turns out to BE a vulnerability, its fix passes `/security-review` even if trivial — where there was one hole there are usually two. If the surface is untouched, the gate does not run (an alarm that always fires alerts nobody). In the OpenSpec flow this gate is materialized as a task by `openspec/config.yaml`.
256
256
 
257
257
  ### Delegation Rules
258
258
 
@@ -308,7 +308,7 @@ Hard rules (valid even before reading the skill):
308
308
  <!-- catalyst-ai:business-rules -->
309
309
  ## Business rules
310
310
 
311
- Per-BC catalog at `cliter/<bounded-context>/business-rules/<aggregate>.md` — complementary memory, NOT a precondition for code changes (code is the executable truth). Consult it to answer "why does the system behave this way" and to detect contradictions during `/opsx:propose`. Manage it with the `catalyst-business-rules-guard` skill and the `/business-rules:*` commands; after `/opsx:archive` of a change that declared rule actions in its proposal, run `/business-rules:promote`. Code that implements or changes behavior covered by an active rule cites it with `@rule BR-<BC>-<AGGREGATE>-<NNN>` in the JSDoc of that function, in the same change — on every path (SDD, direct, dispatched); no lint or gate enforces it, and code nobody touches is not back-filled. Rule content is **Spanish**; identifiers, keys, and citations are **English** — the mix is intentional, do NOT "harmonize" it. Index: `cliter/business-rules-index.json`; orientation map: `docs/business-rules/README.md`; rule format: `.claude/skills/catalyst-business-rules-guard/references/format.md`.
311
+ Per-BC catalog at `cliter/<bounded-context>/business-rules/<aggregate>.md` — complementary memory, NOT a precondition for code changes (code is the executable truth). Consult it to answer "why does the system behave this way" and to detect contradictions during `/openspec-propose`. Manage it with the `catalyst-business-rules-guard` skill and the `/business-rules:*` commands; after `/openspec-archive-change` of a change that declared rule actions in its proposal, run `/business-rules:promote` — the archive skill reads that step from `operations.archive.guidance` in `openspec/config.yaml` (it is never a `tasks.md` checkbox), and the outcome (promoted rule ids or `sin cambios`) is recorded in the change's Backlog task. Code that implements or changes behavior covered by an active rule cites it with `@rule BR-<BC>-<AGGREGATE>-<NNN>` in the JSDoc of that function, in the same change — on every path (SDD, direct, dispatched); no lint or gate enforces it, and code nobody touches is not back-filled. Rule content is **Spanish**; identifiers, keys, and citations are **English** — the mix is intentional, do NOT "harmonize" it. Index: `cliter/business-rules-index.json`; orientation map: `docs/business-rules/README.md`; rule format: `.claude/skills/catalyst-business-rules-guard/references/format.md`.
312
312
  <!-- /catalyst-ai:business-rules -->
313
313
 
314
314
  <!-- catalyst-ai:platform-tools -->
@@ -331,11 +331,11 @@ Detail (API, firmas, workflow, gotchas) lives in the backend skill `catalyst-too
331
331
  <!-- catalyst-ai:sdd -->
332
332
  ## SDD Workflow (Spec-Driven Development)
333
333
 
334
- The structured planning layer for substantial changes, driven by the OpenSpec experimental commands: `opsx:explore` (think through) → `opsx:propose` (create change + all artifacts) → `opsx:apply` (implement) → `opsx:archive` (close).
334
+ The structured planning layer for substantial changes, driven by the OpenSpec workflow skills: `/openspec-explore` (think through) → `/openspec-propose` (create change + all artifacts) → `/openspec-apply-change` (implement) → `/openspec-archive-change` (close).
335
335
 
336
- On the FIRST opsx invocation of a session (command or equivalent natural-language request), ASK which execution mode the user prefers and cache it for the session: **Automatic** (phases back-to-back via sub-agents, show final result only) or **Interactive** (after each delegation returns: concise summary of what the phase produced, what the next phase will do, then "¿Continuamos? / Continue?" — incorporate any feedback before proceeding). Default to **Interactive** if unspecified.
336
+ On the FIRST OpenSpec skill invocation of a session (skill or equivalent natural-language request), ASK which execution mode the user prefers and cache it for the session: **Automatic** (phases back-to-back via sub-agents, show final result only) or **Interactive** (after each delegation returns: concise summary of what the phase produced, what the next phase will do, then "¿Continuamos? / Continue?" — incorporate any feedback before proceeding). Default to **Interactive** if unspecified.
337
337
 
338
- **Explore discipline.** When `/opsx:explore` runs and the approach is genuinely open (more than one reasonable design — typical of Complex changes), shape the solution before converging: restate the real goal, list the load-bearing assumptions, and lay ≥2 approaches on the table with tradeoffs, then recommend one with the reason. Shape it with the user in the coordinator thread; delegate the grounding investigation per the Delegation Rules. If the approach is predetermined (standard module shape, one obvious design), say so in one line and skip — never manufacture alternatives.
338
+ **Explore discipline.** When `/openspec-explore` runs and the approach is genuinely open (more than one reasonable design — typical of Complex changes), shape the solution before converging: restate the real goal, list the load-bearing assumptions, and lay ≥2 approaches on the table with tradeoffs, then recommend one with the reason. Shape it with the user in the coordinator thread; delegate the grounding investigation per the Delegation Rules. If the approach is predetermined (standard module shape, one obvious design), say so in one line and skip — never manufacture alternatives.
339
339
  <!-- /catalyst-ai:sdd -->
340
340
 
341
341
  ## Technology Stack
@@ -390,7 +390,7 @@ it encapsulates the full regeneration procedure for `REGISTRY.md` (scan, classif
390
390
  duplicates, format).
391
391
 
392
392
  <!-- catalyst-ai:skills-index -->
393
- [Project Skills Index]|root:.claude|IMPORTANT:Prefer retrieval-led reasoning over pre-training.Read SKILL.md first,then related files.|skills/catalyst-backlog:{SKILL.md,frontier-worker-addendum.md,worker-system-prompt.md}|skills/catalyst-business-rules-guard:{SKILL.md,audit.md,format.md,workflow.md}|skills/catalyst-cli:{SKILL.md,origin-conciliation.md,schema-versioning.md}|skills/catalyst-delegation:{SKILL.md}|skills/catalyst-harness-rules-guard:{SKILL.md,audit.md,enforcement.md,format.md}|skills/catalyst-langs:{SKILL.md}|skills/catalyst-processes-guard:{SKILL.md}|skills/catalyst-query-dsl:{SKILL.md,query-language.md}|skills/catalyst-report-creator:{SKILL.md,cube-authoring.md}|skills/catalyst-schema:{SKILL.md,front-presentation.md,patterns-workflow.md,types-reference.md}|skills/catalyst-skill-creator:{SKILL.md,SKILL-TEMPLATE.md}|skills/catalyst-update-skill-registry:{SKILL.md}|skills/catalyst-user-manual:{SKILL.md}|skills/judgment-day:{SKILL.md,prompts-and-formats.md}|skills/openspec-apply-change:{SKILL.md}|skills/openspec-archive-change:{SKILL.md}|skills/openspec-explore:{SKILL.md}|skills/openspec-propose:{SKILL.md}|skills/openspec-sync-specs:{SKILL.md}|skills/typescript:{SKILL.md}|commands:{annotate.md,apply.md,archive.md,audit.md,check.md,create-schema.md,document.md,explore.md,load-skill.md,polish.md,promote.md,propose.md,reconcile-prd.md,review-module.md,sync.md,task.md,write.md}|agents:{catalyst-schema-manager.md,jd-fix-agent.md,jd-judge-a.md,jd-judge-b.md}|rules:{route-aurora-components.md,route-backend-test.md,route-drizzle-schema.md,route-eta.md,route-module-yaml.md,route-processes.md,route-skill-md.md,scope-backend.md,scope-cli.md,scope-frontend.md}|skills:{REGISTRY.md}
393
+ [Project Skills Index]|root:.claude|IMPORTANT:Prefer retrieval-led reasoning over pre-training.Read SKILL.md first,then related files.|skills/catalyst-backlog:{SKILL.md,frontier-worker-addendum.md,worker-system-prompt.md}|skills/catalyst-business-rules-guard:{SKILL.md,audit.md,format.md,workflow.md}|skills/catalyst-cli:{SKILL.md,origin-conciliation.md,schema-versioning.md}|skills/catalyst-delegation:{SKILL.md}|skills/catalyst-harness-rules-guard:{SKILL.md,audit.md,enforcement.md,format.md}|skills/catalyst-langs:{SKILL.md}|skills/catalyst-processes-guard:{SKILL.md}|skills/catalyst-query-dsl:{SKILL.md,query-language.md}|skills/catalyst-report-creator:{SKILL.md,cube-authoring.md}|skills/catalyst-schema:{SKILL.md,front-presentation.md,patterns-workflow.md,types-reference.md}|skills/catalyst-skill-creator:{SKILL.md,SKILL-TEMPLATE.md}|skills/catalyst-update-skill-registry:{SKILL.md}|skills/catalyst-user-manual:{SKILL.md}|skills/judgment-day:{SKILL.md,prompts-and-formats.md}|skills/openspec-apply-change:{SKILL.md}|skills/openspec-archive-change:{SKILL.md}|skills/openspec-explore:{SKILL.md}|skills/openspec-propose:{SKILL.md}|skills/openspec-sync-specs:{SKILL.md}|skills/typescript:{SKILL.md}|commands:{annotate.md,audit.md,check.md,create-schema.md,document.md,load-skill.md,polish.md,promote.md,reconcile-prd.md,review-module.md,task.md,write.md}|agents:{catalyst-schema-manager.md,jd-fix-agent.md,jd-judge-a.md,jd-judge-b.md}|rules:{route-aurora-components.md,route-backend-test.md,route-drizzle-schema.md,route-eta.md,route-module-yaml.md,route-processes.md,route-skill-md.md,scope-backend.md,scope-cli.md,scope-frontend.md}|skills:{REGISTRY.md}
394
394
  <!-- /catalyst-ai:skills-index -->
395
395
 
396
396
  <!-- BACKLOG.MD MCP GUIDELINES START -->
@@ -17,7 +17,7 @@
17
17
  ├─────────────────────────────────────────────────────────────────────────────┤
18
18
  │ │
19
19
  │ Developer/IA edita .md ─┐ │
20
- │ /opsx:propose ├──► Catálogo (cliter/<bc>/business-rules/) │
20
+ │ /openspec-propose ├──► Catálogo (cliter/<bc>/business-rules/) │
21
21
  │ /business-rules:document ─┘ │
22
22
  │ │
23
23
  └─────────────────────────────────────────────────────────────────────────────┘
@@ -394,7 +394,7 @@ workflow.
394
394
  (no bloquea el job).
395
395
 
396
396
  **Naturaleza**: estructural-only. La detección de contradicciones semánticas
397
- queda fuera del CI: se hace **preventivamente** en `/opsx:propose` (vía
397
+ queda fuera del CI: se hace **preventivamente** en `/openspec-propose` (vía
398
398
  `openspec/config.yaml`) cuando se proponen cambios, y **on-demand** pidiendo
399
399
  a Claude Code que razone sobre el catálogo cuando proceda.
400
400
 
@@ -406,7 +406,7 @@ El sistema **no incluye un componente automatizado** (cron, routine,
406
406
  GHA con SDK) para detección de contradicciones latentes entre reglas.
407
407
  La cobertura se hace en dos planos sin infraestructura externa:
408
408
 
409
- 1. **Detección preventiva** (en `/opsx:propose` vía `openspec/config.yaml`):
409
+ 1. **Detección preventiva** (en `/openspec-propose` vía `openspec/config.yaml`):
410
410
  Claude consulta el catálogo y detecta conflictos ANTES de archivar el
411
411
  cambio. Es la red principal.
412
412
 
@@ -464,11 +464,14 @@ gestionado por OpenSpec CLI y `openspec update` puede regenerarlo.
464
464
  halt en conflictos, etc.
465
465
  - **`rules.design`** (2): referencias por ID en cambios no triviales.
466
466
  - **`rules.specs`** (2): citar IDs cuando spec codifica regla conocida.
467
- - **`rules.tasks`** (2): incluir `/business-rules:promote` final si hay
468
- cambios; la tarea de implementación que toca una regla incluye su cita
469
- `@rule` (nunca una tarea aparte).
470
-
471
- **Cómo se materializa**: cuando Claude ejecuta `/opsx:propose`, llama a
467
+ - **`rules.tasks`**: la tarea de implementación que toca una regla incluye su cita
468
+ `@rule` (nunca una tarea aparte). El promote no es una tarea: va en
469
+ `operations.archive.guidance`.
470
+ - **`operations.archive.guidance`**: tras archivar, ejecutar
471
+ `/business-rules:promote` si el proposal declara cambios de reglas, y anotar
472
+ el resultado (ids promovidos o `sin cambios`) en la tarea de Backlog del cambio.
473
+
474
+ **Cómo se materializa**: cuando Claude ejecuta `/openspec-propose`, llama a
472
475
  `openspec instructions <artifact> --json`. La respuesta incluye nuestro
473
476
  `context` y `rules` mezclados con los del schema de OpenSpec. Claude los
474
477
  trata como constraints al escribir el artefacto.
@@ -491,7 +494,7 @@ generado por `.claude/scripts/generate-skills-index.ts`.
491
494
  - Dónde vive el catálogo y para qué sirve.
492
495
  - Que las reglas son **memoria + detector**, no enforcement.
493
496
  - Que el código que implementa o cambia una regla la cita con `@rule`.
494
- - Que tras `/opsx:archive` debe sugerir `/business-rules:promote`.
497
+ - Que tras `/openspec-archive-change` se ejecuta `/business-rules:promote` (lo pide `operations.archive.guidance`, no una tarea de `tasks.md`).
495
498
  - Que la mezcla de idiomas es deliberada — **do NOT harmonize**.
496
499
 
497
500
  **Por qué importa**: CLAUDE.md se carga en cada sesión. Es la primera línea
@@ -513,7 +516,7 @@ de defensa contra que Claude se invente convenciones distintas o
513
516
  ```
514
517
  Developer/IA
515
518
  │
516
- │ /opsx:propose "soporte puede borrar cualquier evento"
519
+ │ /openspec-propose "soporte puede borrar cualquier evento"
517
520
  ▼
518
521
  openspec/config.yaml inyecta context + rules
519
522
  │
@@ -526,8 +529,8 @@ openspec/config.yaml inyecta context + rules
526
529
  ▼
527
530
  proposal.md generado con sección rule actions
528
531
  │
529
- │ /opsx:apply (implementa código)
530
- │ /opsx:archive <name> (mueve a archive/)
532
+ │ /openspec-apply-change (implementa código)
533
+ │ /openspec-archive-change <name> (mueve a archive/)
531
534
  ▼
532
535
  Developer ejecuta /business-rules:promote
533
536
  │
@@ -772,7 +775,7 @@ Todos los archivos creados por el sistema (excluyendo las reglas en sí):
772
775
  | Mezcla deliberada de idiomas (no harmonize) | Decision 5 |
773
776
  | Detección de conflictos por IA semántica, no tests negativos | Decision 6 |
774
777
  | Integración OpenSpec via `config.yaml`, no wrappers | Decision 7 |
775
- | `:promote` separado de `/opsx:archive`, no wrapper | Decision 8 |
778
+ | `:promote` separado de `/openspec-archive-change`, no wrapper | Decision 8 |
776
779
  | Reglas POST-implementación, no precondición | Decision 9 |
777
780
  | Detección semántica integrada en `/business-rules:audit` (script + LLM continuation), sin componente automatizado | Decision 12 |
778
781
 
@@ -39,7 +39,7 @@ Si falta cualquiera, el sistema NO aplica tal cual; necesitarías adaptarlo.
39
39
  Tiempo estimado: **15-20 minutos**.
40
40
 
41
41
  > El sistema NO incluye job nocturno automatizado para detección semántica.
42
- > Esa dimensión se cubre preventivamente en `/opsx:propose` (vía
42
+ > Esa dimensión se cubre preventivamente en `/openspec-propose` (vía
43
43
  > `openspec/config.yaml`) e integrada en `/business-rules:audit` siguiendo
44
44
  > el patrón **script + LLM continuation** (script estructural + Claude
45
45
  > continúa la sesión con análisis pairwise).
@@ -271,7 +271,7 @@ pnpm br:validate
271
271
  Si todo verde, el sistema está instalado correctamente.
272
272
 
273
273
  > **No hay configuración externa adicional**. La detección de tensiones
274
- > semánticas se hace preventivamente en `/opsx:propose` y a demanda
274
+ > semánticas se hace preventivamente en `/openspec-propose` y a demanda
275
275
  > invocando `/business-rules:audit` (script + Claude continúa la sesión
276
276
  > dentro de Claude Code).
277
277
 
@@ -283,7 +283,7 @@ El sistema NO incluye un job nocturno automatizado para detectar
283
283
  contradicciones semánticas entre reglas. La cobertura se hace en dos
284
284
  planos sin infraestructura externa:
285
285
 
286
- - **Preventivo (en cada cambio)**: `/opsx:propose` está extendido vía
286
+ - **Preventivo (en cada cambio)**: `/openspec-propose` está extendido vía
287
287
  `openspec/config.yaml` para que Claude consulte el catálogo y detecte
288
288
  conflictos antes de archivar el cambio. Es la principal red de
289
289
  seguridad.
@@ -397,7 +397,7 @@ Para un repo que NO usa OpenSpec:
397
397
 
398
398
  - Salta el paso 6 (`openspec/config.yaml`).
399
399
  - Pierdes la inyección automática de business rules awareness en
400
- `/opsx:propose`.
400
+ `/openspec-propose`.
401
401
  - El resto del sistema funciona igual: `:document`, `:promote` (lee
402
402
  `proposal.md` por path explícito o de un sistema equivalente),
403
403
  `:audit`, `:check`, hook UserPromptSubmit.
@@ -409,7 +409,7 @@ Para un repo en GitLab CI o equivalente:
409
409
  - Adapta `business-rules-check.yml` al CI tool del destino. Es un YAML
410
410
  simple (3 pasos: validate, generate+diff, validate-citations).
411
411
  - La detección de tensiones semánticas no depende del CI: se hace
412
- preventivamente en `/opsx:propose` y on-demand vía Claude Code (ver
412
+ preventivamente en `/openspec-propose` y on-demand vía Claude Code (ver
413
413
  sección "Detección de tensiones semánticas on-demand" arriba).
414
414
 
415
415
  ---
@@ -0,0 +1,71 @@
1
+ # Assistant
2
+
3
+ The assistant answers your questions about the application from the user manual and can take you to the screen where what you ask about is done. It appears on every screen when your account has access to it.
4
+
5
+ ## Open the assistant
6
+
7
+ Press the round button in the bottom right corner (**Open the assistant**). A floating chat opens: the screen behind it stays available, so you can read and work at the same time.
8
+
9
+ - Press **Minimize the assistant** to reduce it to the button. The conversation is kept.
10
+ - Press **New conversation** to start over.
11
+ - While a guided tour runs, the chat is hidden and comes back when the tour ends.
12
+
13
+ If you do not see the button, your account has no access to the assistant or it is not enabled in your application.
14
+
15
+ ## Ask a question
16
+
17
+ 1. Type your question in **Ask a question**. `Shift + Enter` adds a line break.
18
+ 2. Press **Send question** or `Enter`.
19
+
20
+ While it prepares the answer, the chat shows what it is doing: **Reading the manual**, **Writing the answer**. When the chat is empty, you can also press one of the example questions, such as **What can I do on this screen?**.
21
+
22
+ The answer is based on the manual and, on screens that allow it, on the data the open screen shows at that moment, never on other records. Below it, **In the manual:** lists the sections it relies on: press them to read them in the help panel. An answer based only on what the screen shows cites no sections. If neither the manual nor the screen covers what you ask, the assistant tells you so instead of making up an answer.
23
+
24
+ To rate an answer, press **Useful** or **Not useful**. With **Not useful** you are asked **What went wrong?** and you choose **Missing information**, **Incorrect** or **Unclear**.
25
+
26
+ Each account has a monthly usage limit for the assistant. If you reach it, the application tells you and you can ask again next month.
27
+
28
+ ## Use the actions it offers
29
+
30
+ When your question is solved by going to a screen, the answer includes an action, with its title and a button:
31
+
32
+ - **Go to the screen** takes you to that screen. If the action is to create something, it also opens the empty creation form.
33
+ - **With a guide**, when shown, does the same and starts the guided tour of the screen. It is optional: the main button never starts it.
34
+
35
+ The assistant only offers screens your account can open. Nothing runs by itself: the action is carried out when you press the button.
36
+
37
+ ### Preselected options
38
+
39
+ If you ask, for example, how to create something of a specific type, the assistant can open the form with that type already chosen. Below the answer, one line appears for each field filled in, in the format **Field: value**. Only fixed-option fields are preselected (a list of values or a yes/no); texts and related records are filled in by you. You can change any preselected value.
40
+
41
+ The assistant never saves for you. Review the form and press **Create** or **Save** yourself, as explained in [Forms](/manual/general.03-formularios).
42
+
43
+ ## Ask with a form open
44
+
45
+ With a form open, the assistant sees how it looks and can:
46
+
47
+ - **Explain a field**: what it means, which values it accepts and why the form does not let you save. The field is highlighted or receives the focus.
48
+ - **Choose a fixed-option value** when you ask for it, for example "set the type to Text". The field is highlighted and the chat announces the field and the value chosen. The highlight goes away when you change the value, ask another question or close the form.
49
+
50
+ It does not type text or pick related records: you do that. It also cannot see what you typed in password or encrypted fields. And, as always, it does not save the form.
51
+
52
+ ## Ask about what the screen shows
53
+
54
+ On some screens, such as the review of a purchase invoice, the assistant also sees what the screen shows: the state, the issues, which buttons are available and why one is missing, and the rows with warnings. You can ask, for example, "why can I not accept the review?" or "which line has a warning?".
55
+
56
+ It only knows the open record, not others. A button shown as available means the screen displays it, not that the operation will be accepted. The assistant never presses screen buttons: you do.
57
+
58
+ ## Search with the command palette
59
+
60
+ The command palette is another way in. Open it with `Cmd K` (Mac) or `Ctrl K`, or with the **Search…** button in the header, and type what you want to do:
61
+
62
+ | Group | What it offers |
63
+ | --- | --- |
64
+ | **Actions** | The same guided actions as the assistant: open a screen or its creation form |
65
+ | **Go to** | The menu screens your account can access |
66
+ | **Manual** | Manual sections that match what you typed |
67
+ | **Assistant** | **Ask the assistant** with the text you typed |
68
+
69
+ With no text, the palette shows **On this screen**: the manual chapter of the current screen and its actions. The palette actions open the screen or the empty form, with no guided tour and no preselected options.
70
+
71
+ In short: the assistant answers from the manual and from what the screen shows, takes you to the screen and, if you want, preselects options; the rest, saving included, is yours to do.
@@ -0,0 +1,71 @@
1
+ # Asistente
2
+
3
+ El asistente responde tus preguntas sobre la aplicación con el manual de usuario y puede llevarte a la pantalla donde se hace lo que preguntas. Aparece en todas las pantallas si tu cuenta tiene acceso a él.
4
+
5
+ ## Abrir el asistente
6
+
7
+ Pulsa el botón redondo de la esquina inferior derecha (**Abrir el asistente**). Se abre un chat flotante: la pantalla de detrás sigue disponible, así que puedes consultar y trabajar a la vez.
8
+
9
+ - Pulsa **Minimizar el asistente** para dejarlo reducido al botón. La conversación se conserva.
10
+ - Pulsa **Nueva conversación** para empezar de cero.
11
+ - Mientras se ejecuta un recorrido guiado, el chat se oculta y vuelve al terminar.
12
+
13
+ Si no ves el botón, tu cuenta no tiene acceso al asistente o este no está activado en tu aplicación.
14
+
15
+ ## Hacer una pregunta
16
+
17
+ 1. Escribe tu pregunta en **Haz una pregunta**. Con `Mayús + Intro` añades un salto de línea.
18
+ 2. Pulsa **Enviar pregunta** o `Intro`.
19
+
20
+ Mientras prepara la respuesta, el chat muestra lo que hace: **Leyendo el manual**, **Redactando la respuesta**. Cuando el chat está vacío, también puedes pulsar una de las preguntas de ejemplo, como **¿Qué puedo hacer en esta pantalla?**.
21
+
22
+ La respuesta se basa en el manual y, en las pantallas que lo permiten, en los datos que la pantalla abierta muestra en ese momento, nunca en otros registros. Debajo de ella, **En el manual:** lista los apartados en los que se apoya: púlsalos para leerlos en el panel de ayuda. Si una respuesta se apoya solo en lo que muestra la pantalla, no cita apartados. Si ni el manual ni la pantalla cubren lo que preguntas, el asistente te lo dice en lugar de inventar la respuesta.
23
+
24
+ Para valorar una respuesta, pulsa **Útil** o **No útil**. Con **No útil** se te pregunta **¿Qué ha fallado?** y eliges **Falta información**, **Incorrecta** o **Poco clara**.
25
+
26
+ Cada cuenta tiene un límite mensual de uso del asistente. Si lo alcanzas, la aplicación te avisa y puedes volver a preguntar el mes siguiente.
27
+
28
+ ## Usar las acciones que propone
29
+
30
+ Cuando tu pregunta se resuelve yendo a una pantalla, la respuesta incluye una acción, con su título y un botón:
31
+
32
+ - **Ir a la pantalla** te lleva a esa pantalla. Si la acción es crear algo, abre además el formulario de alta vacío.
33
+ - **Con guía**, si aparece, hace lo mismo y arranca el recorrido guiado de la pantalla. Es opcional: el botón principal nunca lo inicia.
34
+
35
+ El asistente solo ofrece pantallas que tu cuenta puede abrir. Nada se ejecuta por sí solo: la acción se lleva a cabo cuando pulsas el botón.
36
+
37
+ ### Opciones preseleccionadas
38
+
39
+ Si preguntas, por ejemplo, cómo crear algo de un tipo concreto, el asistente puede abrir el formulario con ese tipo ya elegido. Debajo de la respuesta aparece una línea por cada campo rellenado, con el formato **Campo: valor**. Solo se preseleccionan campos de opciones fijas (una lista de valores o un sí/no); los textos y los registros relacionados los rellenas tú. Puedes cambiar cualquier valor preseleccionado.
40
+
41
+ El asistente nunca guarda por ti. Revisa el formulario y pulsa tú **Crear** o **Guardar**, como se explica en [Formularios](/manual/general.03-formularios).
42
+
43
+ ## Preguntar con un formulario abierto
44
+
45
+ Con un formulario abierto, el asistente ve cómo está y puede:
46
+
47
+ - **Explicar un campo**: cuál es su significado, qué valores admite y por qué el formulario no te deja guardar. El campo se resalta o recibe el foco.
48
+ - **Elegir un valor de opciones fijas** cuando se lo pides, por ejemplo «pon el tipo en Texto». El campo se resalta y el chat anuncia el campo y el valor elegidos. El resaltado desaparece cuando cambias el valor, haces otra pregunta o cierras el formulario.
49
+
50
+ No escribe textos ni elige registros relacionados: eso lo haces tú. Tampoco ve lo que has escrito en las contraseñas ni en los campos cifrados. Y, como siempre, no guarda el formulario.
51
+
52
+ ## Preguntar sobre lo que muestra la pantalla
53
+
54
+ En algunas pantallas, como la revisión de una factura de compra, el asistente también ve lo que la pantalla muestra: el estado, las incidencias, qué botones están disponibles y por qué falta alguno, y las filas con avisos. Puedes preguntar, por ejemplo, «¿por qué no puedo aceptar la revisión?» o «¿qué línea tiene un aviso?».
55
+
56
+ Solo conoce el registro abierto, no otros. Que un botón aparezca como disponible significa que la pantalla lo muestra, no que la operación vaya a aceptarse. El asistente nunca pulsa botones de la pantalla: lo haces tú.
57
+
58
+ ## Buscar con la paleta de comandos
59
+
60
+ La paleta de comandos es otro punto de entrada. Ábrela con `Cmd K` (Mac) o `Ctrl K`, o con el botón **Buscar…** de la cabecera, y escribe lo que quieres hacer:
61
+
62
+ | Grupo | Qué ofrece |
63
+ | --- | --- |
64
+ | **Acciones** | Las mismas acciones guiadas del asistente: abrir una pantalla o su formulario de alta |
65
+ | **Ir a** | Las pantallas del menú a las que tienes acceso |
66
+ | **Manual** | Apartados del manual que coinciden con lo escrito |
67
+ | **Asistente** | **Preguntar al asistente** con el texto escrito |
68
+
69
+ Sin texto, la paleta muestra **En esta pantalla**: el capítulo del manual de la pantalla actual y sus acciones. Las acciones de la paleta abren la pantalla o el formulario vacío, sin recorrido guiado y sin opciones preseleccionadas.
70
+
71
+ En resumen: el asistente responde con el manual y con lo que muestra la pantalla, te lleva a la pantalla y, si quieres, preselecciona opciones; el resto, incluido guardar, lo haces tú.
@@ -78,7 +78,7 @@ context: |
78
78
 
79
79
  ## How to consult the harness catalog when proposing a change
80
80
 
81
- During `/opsx:propose`, in addition to the Business Rules procedure above, you
81
+ During `/openspec-propose`, in addition to the Business Rules procedure above, you
82
82
  MUST consult the harness catalog. Procedure:
83
83
 
84
84
  1. Identify the file paths this change is expected to touch (under
@@ -213,10 +213,6 @@ rules:
213
213
  ID and add only the spec-level acceptance scenarios.
214
214
 
215
215
  tasks:
216
- - If the proposal's "Business rules affected" section declares any rule
217
- change (deroga, extiende, or Nuevas), include a final task to invoke
218
- `/business-rules:promote` after `/opsx:archive` to crystallize the changes
219
- into the catalog.
220
216
  - When an implementation task writes or changes code that implements an
221
217
  active rule (per the index's `byPath` lookup), that same task names the
222
218
  rule and adds its `@rule` JSDoc citation. Never schedule citations as a
@@ -235,6 +231,9 @@ rules:
235
231
  tasks that only touch CLI-generated code (`@aurora-catalyst-generated`) —
236
232
  those are tested at the `.eta` template level, never over
237
233
  the regenerable output.
234
+ # SPEC CONFORMITY and FINAL verification are integration checks across groups, so
235
+ # they belong in the last group; the tasks guidance keeps each group's own tests
236
+ # and docs inside that group.
238
237
  - Include a SPEC CONFORMITY verification task placed AFTER the last
239
238
  implementation task and BEFORE the security-review task (when present) and
240
239
  the final verification task. Run it in FRESH context, NOT by the
@@ -264,3 +263,24 @@ rules:
264
263
  of tier; confirmed findings are fixed before that gate runs. If the
265
264
  security surface is NOT touched, do NOT add this task — the gate is
266
265
  surface-based, not per-change.
266
+
267
+ # Post-archive steps: advisory guidance read by the archive skill, because the
268
+ # tasks artifact tracks only work completable before archive.
269
+ operations:
270
+ archive:
271
+ guidance:
272
+ - If the archived proposal's "Business rules affected" section declares any
273
+ rule change (deroga, extiende, or Nuevas), run `/business-rules:promote`
274
+ after archive to crystallize the changes into the catalog, and record the
275
+ promoted rule ids (or `sin cambios`) in the change's Backlog task, not in
276
+ `tasks.md`.
277
+ - Only in the aurora-catalyst repository (the framework source, where the
278
+ sibling docs project `aurora-catalyst-docs` exists), when the change
279
+ touches the framework, the harness, the CLI or core (`packages/core-back/`,
280
+ `packages/core-front/`, `packages/cli/`, `backend/src/@aurora/`,
281
+ `frontend/src/@aurora/`, `.claude/`, `scripts/`, a `CLAUDE.md` or
282
+ `openspec/config.yaml`), document the archived change with the
283
+ `catalyst-docs-from-spec` skill of the docs project and record the docs
284
+ pull request number (or `sin cambios`) in the change's Backlog task, not
285
+ in `tasks.md`. A change that touches only bounded-context code gets no
286
+ such step, because its documentation is the user manual.
@@ -43,7 +43,9 @@
43
43
  "test:processes": "node --import tsx --test \"scripts/processes/**/*.test.ts\"",
44
44
  "manual:compile": "tsx scripts/manual/compile.ts",
45
45
  "manual:dossier": "tsx scripts/manual/dossier.ts",
46
- "manual:record": "tsx scripts/manual/record.ts"
46
+ "manual:record": "tsx scripts/manual/record.ts",
47
+ "test:worktree": "node --import tsx --test \"scripts/worktree/**/*.test.ts\"",
48
+ "worktree:prune": "tsx scripts/worktree/prune.ts"
47
49
  },
48
50
  "devDependencies": {
49
51
  "@commitlint/cli": "^21.0.2",
@@ -875,7 +875,7 @@ describe('the shipped frontier addendum template', () => {
875
875
  it('says the path: label is binding and names both branches', () => {
876
876
  const flat = rendered.replace(/\s+/g, ' ');
877
877
  assert.match(flat, /`path:`.*binding/i);
878
- assert.match(flat, /path:sdd.*opsx:propose.*opsx:apply/i);
878
+ assert.match(flat, /path:sdd.*openspec-propose.*openspec-apply-change/i);
879
879
  assert.match(flat, /path:direct.*direct path/i);
880
880
  assert.match(flat, /needs-guidance/);
881
881
  });
@@ -902,12 +902,12 @@ describe('the shipped frontier addendum template', () => {
902
902
  });
903
903
 
904
904
  // T-6: the split subtasks of a Complex task's SDD design phase implement an EXISTING OpenSpec
905
- // change — a subtask labelled path:sdd must run /opsx:apply on it, never re-propose it.
906
- it('says path:sdd on an existing OpenSpec change means /opsx:apply, never a second /opsx:propose', () => {
905
+ // change — a subtask labelled path:sdd must run /openspec-apply-change on it, never re-propose it.
906
+ it('says path:sdd on an existing OpenSpec change means /openspec-apply-change, never a second /openspec-propose', () => {
907
907
  const flat = rendered.replace(/\s+/g, ' ');
908
908
  assert.match(flat, /openspec\/changes\/<name>/);
909
- assert.match(flat, /opsx:apply <name>/);
910
- assert.match(flat, /never a second `?\/opsx:propose/i);
909
+ assert.match(flat, /openspec-apply-change <name>/);
910
+ assert.match(flat, /never a second `?\/openspec-propose/i);
911
911
  });
912
912
 
913
913
  // T-25: `CLAUDE.md`'s generated Backlog block orders EVERY reader to reach the board through the
@@ -534,7 +534,7 @@ export function buildParentCloseAttemptPrompt(taskId: string, retry?: RetryConte
534
534
  ' si el diff toca la superficie de seguridad, y la verificación FINAL (`judgment-day` para',
535
535
  ' un change Complex) — sobre ese diff acumulado, no sobre un archivo aislado.',
536
536
  '4. Marca en `tasks.md` cada puerta con su evidencia (fichero:línea, el test que la cubre).',
537
- ' Checked boxes sin evidencia no cuentan — igual que en `/opsx:apply`.',
537
+ ' Checked boxes sin evidencia no cuentan — igual que en `/openspec-apply-change`.',
538
538
  '',
539
539
  '**No hay implementación nueva, bajo ninguna circunstancia.** Si `judgment-day` o cualquier',
540
540
  'otra puerta encuentra un hallazgo confirmado, no lo arregles — arreglarlo ES implementación',
@@ -12,7 +12,7 @@
12
12
  * It is added by Claude continuing the session when the audit is invoked
13
13
  * via the slash command /business-rules:audit (script + LLM continuation
14
14
  * pattern, same as /business-rules:promote). Detection of contradictions
15
- * is also covered preventively in /opsx:propose via openspec/config.yaml.
15
+ * is also covered preventively in /openspec-propose via openspec/config.yaml.
16
16
  *
17
17
  * Usage:
18
18
  * The script is invoked from the slash command /business-rules:audit