@aurorajs.dev/catalyst-cli 3.1.1 → 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.
Files changed (392) 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/package.json +0 -1
  14. package/dist/templates/backend/application/src/@aurora/modules/manual/application/manual-catalog-section-reader.spec.ts +4 -0
  15. package/dist/templates/backend/application/src/@aurora/modules/manual/application/manual-find-index.handler.spec.ts +2 -0
  16. package/dist/templates/backend/application/src/@aurora/modules/manual/application/manual-find-index.handler.ts +2 -1
  17. package/dist/templates/backend/application/src/@aurora/modules/manual/domain/manual-section-reader.port.ts +2 -0
  18. package/dist/templates/backend/application/src/@aurora/modules/manual/domain/manual.types.ts +2 -0
  19. package/dist/templates/backend/application/src/@aurora/modules/manual/graphql/manual-graphql-schema.spec.ts +10 -2
  20. package/dist/templates/backend/application/src/@aurora/modules/manual/graphql/manual.graphql +4 -0
  21. package/dist/templates/backend/business-rules/business-partner-portal/purchase-invoice-header.md +599 -10
  22. package/dist/templates/backend/business-rules/business-partner-portal/supplier-document.md +536 -14
  23. package/dist/templates/backend/business-rules/tools/assistant-usage.md +60 -0
  24. package/dist/templates/backend/manual/business-partner-portal/CONTEXT.md +114 -46
  25. package/dist/templates/backend/manual/business-partner-portal/en/extraction-template-field.md +1 -1
  26. package/dist/templates/backend/manual/business-partner-portal/en/purchase-invoice-header.md +22 -3
  27. package/dist/templates/backend/manual/business-partner-portal/en/supplier-document.md +2 -2
  28. package/dist/templates/backend/manual/business-partner-portal/es/extraction-template-field.md +1 -1
  29. package/dist/templates/backend/manual/business-partner-portal/es/purchase-invoice-header.md +22 -3
  30. package/dist/templates/backend/manual/business-partner-portal/es/supplier-document.md +2 -2
  31. package/dist/templates/backend/manual/business-partner-portal/processes.yaml +2 -1
  32. package/dist/templates/backend/manual/production-planning/en/planner.md +1 -1
  33. package/dist/templates/backend/manual/production-planning/en/production-order-position-event.md +8 -5
  34. package/dist/templates/backend/manual/production-planning/es/planner.md +1 -1
  35. package/dist/templates/backend/manual/production-planning/es/production-order-position-event.md +8 -5
  36. package/dist/templates/backend/manual/reporting/en/report.md +40 -0
  37. package/dist/templates/backend/manual/reporting/es/report.md +40 -0
  38. package/dist/templates/backend/manual/tools/CONTEXT.md +1 -0
  39. package/dist/templates/backend/manual/tools/actions.yaml +11 -0
  40. package/dist/templates/backend/manual/tools/en/assistant-conversation.md +38 -0
  41. package/dist/templates/backend/manual/tools/en/assistant-usage-policy.md +46 -0
  42. package/dist/templates/backend/manual/tools/en/assistant-usage.md +28 -0
  43. package/dist/templates/backend/manual/tools/en/file-storage.md +83 -0
  44. package/dist/templates/backend/manual/tools/es/assistant-conversation.md +38 -0
  45. package/dist/templates/backend/manual/tools/es/assistant-usage-policy.md +46 -0
  46. package/dist/templates/backend/manual/tools/es/assistant-usage.md +28 -0
  47. package/dist/templates/backend/manual/tools/es/file-storage.md +83 -0
  48. package/dist/templates/backend/packages/business-partner-portal/package.yaml +0 -2
  49. package/dist/templates/backend/packages/business-partner-portal/src/@api/business-partner-portal/business-partner-portal.module.ts +2 -0
  50. package/dist/templates/backend/packages/business-partner-portal/src/@api/business-partner-portal/purchase-invoice-header/dto/business-partner-portal-create-purchase-invoice-header.dto.ts +2 -9
  51. package/dist/templates/backend/packages/business-partner-portal/src/@api/business-partner-portal/purchase-invoice-header/dto/business-partner-portal-purchase-invoice-header.dto.ts +10 -10
  52. package/dist/templates/backend/packages/business-partner-portal/src/@api/business-partner-portal/purchase-invoice-header/dto/business-partner-portal-update-purchase-invoice-header-by-id.dto.ts +2 -9
  53. package/dist/templates/backend/packages/business-partner-portal/src/@api/business-partner-portal/purchase-invoice-header/dto/business-partner-portal-update-purchase-invoice-headers.dto.ts +2 -9
  54. package/dist/templates/backend/packages/business-partner-portal/src/@api/business-partner-portal/purchase-invoice-header/graphql/business-partner-portal-purchase-invoice-header.graphql +14 -15
  55. package/dist/templates/backend/packages/business-partner-portal/src/@api/business-partner-portal/purchase-invoice-trace/dto/business-partner-portal-purchase-invoice-trace.dto.ts +1 -1
  56. package/dist/templates/backend/packages/business-partner-portal/src/@api/business-partner-portal/purchase-invoice-trace/dto/business-partner-portal-update-purchase-invoice-traces.dto.ts +1 -1
  57. package/dist/templates/backend/packages/business-partner-portal/src/@api/business-partner-portal/purchase-invoice-trace/graphql/business-partner-portal-purchase-invoice-trace.graphql +1 -1
  58. package/dist/templates/backend/packages/business-partner-portal/src/@api/business-partner-portal/shared/types/business-partner-portal.types.ts +1 -3
  59. package/dist/templates/backend/packages/business-partner-portal/src/@api/business-partner-portal/supplier-document/dto/business-partner-portal-create-supplier-document.dto.ts +1 -8
  60. package/dist/templates/backend/packages/business-partner-portal/src/@api/business-partner-portal/supplier-document/dto/business-partner-portal-supplier-document.dto.ts +1 -8
  61. package/dist/templates/backend/packages/business-partner-portal/src/@api/business-partner-portal/supplier-document/dto/business-partner-portal-update-supplier-document-by-id.dto.ts +1 -8
  62. package/dist/templates/backend/packages/business-partner-portal/src/@api/business-partner-portal/supplier-document/dto/business-partner-portal-update-supplier-documents.dto.ts +1 -8
  63. package/dist/templates/backend/packages/business-partner-portal/src/@api/business-partner-portal/supplier-document/graphql/business-partner-portal-supplier-document.graphql +2 -9
  64. 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 +74 -16
  65. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/anthropic/infrastructure/business-partner-portal-anthropic-extraction-step-two.service.ts +32 -27
  66. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/anthropic/infrastructure/business-partner-portal-anthropic-invoice-ocr.service.spec.ts +199 -0
  67. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/anthropic/infrastructure/business-partner-portal-anthropic-invoice-ocr.service.ts +84 -0
  68. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/anthropic/infrastructure/index.ts +1 -0
  69. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/anthropic/shared/functions/business-partner-portal-anthropic-build-document-block.function.spec.ts +39 -0
  70. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/anthropic/shared/functions/business-partner-portal-anthropic-build-document-block.function.ts +37 -0
  71. 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 +146 -0
  72. 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 +87 -0
  73. 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 +151 -3
  74. 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 +69 -36
  75. 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.spec.ts +239 -0
  76. 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 +201 -0
  77. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/anthropic/shared/functions/business-partner-portal-anthropic-map-step-two-answer.function.spec.ts +87 -0
  78. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/anthropic/shared/functions/business-partner-portal-anthropic-map-step-two-answer.function.ts +110 -1
  79. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/anthropic/shared/functions/business-partner-portal-anthropic-read-key-value.function.spec.ts +58 -0
  80. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/anthropic/shared/functions/business-partner-portal-anthropic-read-key-value.function.ts +30 -0
  81. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/anthropic/shared/functions/index.ts +4 -0
  82. 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 +96 -0
  83. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/anthropic/shared/types/business-partner-portal-anthropic-step-two-answer.types.ts +109 -14
  84. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/anthropic/shared/types/index.ts +1 -0
  85. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/business-partner-portal.seed.spec.ts +21 -11
  86. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/business-partner-portal.seed.ts +5 -26
  87. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/extraction-field/shared/services/business-partner-portal-extraction-field-fixed-seed.data.spec.ts +1 -1
  88. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/extraction-field/shared/services/business-partner-portal-extraction-field-fixed-seed.data.ts +2 -2
  89. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/purchase-invoice-header/application/accept-review/business-partner-portal-accept-review-purchase-invoice-header.handler.spec.ts +10 -1
  90. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/purchase-invoice-header/application/accept-review/business-partner-portal-accept-review-purchase-invoice-header.handler.ts +6 -3
  91. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/purchase-invoice-header/application/business-partner-portal-purchase-invoice-header.payload-types.ts +3 -0
  92. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/purchase-invoice-header/application/create/business-partner-portal-create-purchase-invoice-header.handler.spec.ts +0 -1
  93. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/purchase-invoice-header/application/preview/business-partner-portal-preview-purchase-invoice-header.handler.spec.ts +1 -1
  94. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/purchase-invoice-header/application/preview/business-partner-portal-preview-purchase-invoice-header.handler.ts +1 -1
  95. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/purchase-invoice-header/application/save/business-partner-portal-save-purchase-invoice-header.handler.spec.ts +1 -1
  96. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/purchase-invoice-header/application/save/business-partner-portal-save-purchase-invoice-header.handler.ts +1 -1
  97. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/purchase-invoice-header/domain/business-partner-portal-purchase-invoice-header.field-schema.ts +6 -6
  98. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/purchase-invoice-header/infrastructure/drizzle/business-partner-portal-drizzle-purchase-invoice-header.schema.ts +1 -1
  99. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/purchase-invoice-header/shared/functions/business-partner-portal-build-purchase-invoice-review-derive-input.function.spec.ts +2 -2
  100. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/purchase-invoice-header/shared/functions/business-partner-portal-build-purchase-invoice-review-derive-input.function.ts +2 -2
  101. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/purchase-invoice-header/shared/functions/business-partner-portal-derive-purchase-invoice-review.function.spec.ts +118 -13
  102. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/purchase-invoice-header/shared/functions/business-partner-portal-derive-purchase-invoice-review.function.ts +47 -7
  103. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/purchase-invoice-header/shared/services/business-partner-portal-purchase-invoice-header-state-cycle.spec.ts +5 -0
  104. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/purchase-invoice-header/shared/services/business-partner-portal-purchase-invoice-header-state-mover.service.spec.ts +15 -0
  105. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/purchase-invoice-header/shared/services/business-partner-portal-purchase-invoice-header-state-mover.service.ts +2 -0
  106. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/purchase-invoice-header/shared/services/business-partner-portal-purchase-invoice-review-context.service.spec.ts +16 -40
  107. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/purchase-invoice-header/shared/services/business-partner-portal-purchase-invoice-review-context.service.ts +16 -16
  108. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-check-extraction-step-two-operations.function.spec.ts +533 -0
  109. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-check-extraction-step-two-operations.function.ts +254 -0
  110. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-check-required-extraction-fields.function.spec.ts +5 -1
  111. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-decide-extraction-step-two.function.spec.ts +122 -218
  112. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-decide-extraction-step-two.function.ts +76 -185
  113. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-extraction-doubt-reader.service.spec.ts +6 -55
  114. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-extraction-doubt-reader.service.ts +7 -40
  115. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-extraction-doubt.types.ts +124 -0
  116. 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 +129 -15
  117. 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 +41 -10
  118. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-extraction-step-two-current-values.service.spec.ts +35 -0
  119. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-extraction-step-two-current-values.service.ts +21 -2
  120. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-extraction-step-two-decision.service.spec.ts +104 -70
  121. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-extraction-step-two-decision.service.ts +20 -63
  122. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-extraction-step-two-decision.types.ts +7 -16
  123. 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 +2 -0
  124. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-extraction-step-two-failure-issues.service.spec.ts +47 -0
  125. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-extraction-step-two-failure-issues.service.ts +31 -0
  126. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-extraction-step-two-field-values.function.ts +4 -4
  127. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-extraction-step-two-job.types.ts +15 -7
  128. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-extraction-step-two-producer.service.spec.ts +18 -0
  129. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-extraction-step-two-producer.service.ts +5 -3
  130. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-extraction-step-two-reconciliation.types.ts +31 -2
  131. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-extraction-step-two-values.types.ts +43 -9
  132. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-extraction-step-two-writer.service.spec.ts +109 -5
  133. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-extraction-step-two-writer.service.ts +47 -6
  134. 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 +45 -0
  135. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-extraction-step-two.worker.spec.ts +709 -51
  136. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-extraction-step-two.worker.ts +214 -60
  137. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-merge-extraction-step-two-discrepancies.function.spec.ts +91 -0
  138. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-merge-extraction-step-two-discrepancies.function.ts +32 -0
  139. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-reconcile-extraction-step-two.function.spec.ts +300 -41
  140. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-reconcile-extraction-step-two.function.ts +210 -31
  141. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-record-extraction-step-two.function.spec.ts +263 -0
  142. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-record-extraction-step-two.function.ts +124 -0
  143. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/index.ts +3 -2
  144. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/index.ts +1 -0
  145. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/invoice-ocr/business-partner-portal-invoice-ocr.types.spec.ts +47 -0
  146. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/invoice-ocr/business-partner-portal-invoice-ocr.types.ts +29 -21
  147. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/purchase-invoice-extraction/business-partner-portal-assess-extraction-doubt.function.spec.ts +198 -0
  148. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/purchase-invoice-extraction/business-partner-portal-assess-extraction-doubt.function.ts +78 -0
  149. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/purchase-invoice-extraction/business-partner-portal-deduce-breakdown-tax-rate.function.spec.ts +3 -5
  150. 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 +108 -399
  151. 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 +76 -111
  152. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/purchase-invoice-extraction/business-partner-portal-purchase-invoice-create-from-extraction.service.spec.ts +39 -50
  153. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/purchase-invoice-extraction/business-partner-portal-purchase-invoice-create-from-extraction.service.ts +7 -1
  154. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/purchase-invoice-extraction/business-partner-portal-purchase-invoice-extraction-completion.service.spec.ts +2 -5
  155. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/purchase-invoice-extraction/business-partner-portal-purchase-invoice-extraction-completion.service.ts +6 -8
  156. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/purchase-invoice-extraction/business-partner-portal-purchase-invoice-extraction-routing.service.spec.ts +19 -51
  157. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/purchase-invoice-extraction/business-partner-portal-purchase-invoice-extraction-routing.service.ts +9 -41
  158. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/purchase-invoice-extraction/index.ts +1 -0
  159. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/purchase-invoice-identification/business-partner-portal-supplier-issues-of.function.ts +0 -1
  160. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/purchase-invoice-processing/business-partner-portal-purchase-invoice-processing.service.spec.ts +39 -0
  161. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/purchase-invoice-processing/business-partner-portal-purchase-invoice-processing.service.ts +17 -0
  162. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/purchase-invoice-sending/business-partner-portal-purchase-invoice-send-payload.service.ts +1 -1
  163. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/purchase-invoice-tax-validation/business-partner-portal-purchase-invoice-tax-rules.function.spec.ts +24 -0
  164. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/purchase-invoice-tax-validation/business-partner-portal-purchase-invoice-tax-rules.function.ts +2 -4
  165. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/supplier-document/domain/business-partner-portal-supplier-document.field-schema.ts +0 -6
  166. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/supplier-document/infrastructure/drizzle/business-partner-portal-drizzle-supplier-document.schema.ts +0 -1
  167. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/supplier-document/shared/services/business-partner-portal-supplier-document-extraction.worker.spec.ts +149 -123
  168. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/supplier-document/shared/services/business-partner-portal-supplier-document-extraction.worker.ts +56 -90
  169. package/dist/templates/backend/packages/business-partner-portal/src/@config/bullmq/business-partner-portal-queue.module.ts +1 -1
  170. package/dist/templates/backend/packages/business-partner-portal/src/@config/business-partner-portal/business-partner-portal.providers.spec.ts +21 -21
  171. package/dist/templates/backend/packages/business-partner-portal/src/@config/business-partner-portal/business-partner-portal.providers.ts +7 -7
  172. package/dist/templates/backend/packages/business-partner-portal/test/acceptance/business-partner-portal/purchase-invoice-download-supplier-document.e2e-spec.ts +0 -1
  173. package/dist/templates/backend/packages/business-partner-portal/test/acceptance/business-partner-portal/purchase-invoice-header-state-machine.e2e-spec.ts +0 -1
  174. package/dist/templates/backend/packages/business-partner-portal/test/acceptance/business-partner-portal/purchase-invoice-processing-claim.e2e-spec.ts +0 -1
  175. package/dist/templates/backend/packages/business-partner-portal/test/acceptance/business-partner-portal/purchase-invoice-report-erp-status.e2e-spec.ts +0 -1
  176. package/dist/templates/backend/packages/business-partner-portal/test/acceptance/business-partner-portal/purchase-invoice-review.e2e-spec.ts +54 -1
  177. package/dist/templates/backend/packages/business-partner-portal/test/acceptance/business-partner-portal/purchase-invoice-trace.e2e-spec.ts +0 -1
  178. 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
  179. 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
  180. package/dist/templates/backend/packages/reporting/src/@api/reporting/report/dto/reporting-create-report.dto.ts +0 -21
  181. package/dist/templates/backend/packages/reporting/src/@api/reporting/report/dto/reporting-report.dto.ts +3 -3
  182. package/dist/templates/backend/packages/reporting/src/@api/reporting/report/dto/reporting-update-report-by-id.dto.ts +0 -48
  183. package/dist/templates/backend/packages/reporting/src/@api/reporting/report/dto/reporting-update-reports.dto.ts +0 -48
  184. package/dist/templates/backend/packages/reporting/src/@api/reporting/report/graphql/reporting-report.graphql +3 -20
  185. package/dist/templates/backend/packages/reporting/src/@app/reporting/report/application/create/reporting-create-report.service.ts +2 -2
  186. package/dist/templates/backend/packages/reporting/src/@app/reporting/report/application/reporting-report.payload-types.ts +33 -0
  187. package/dist/templates/backend/packages/reporting/src/@app/reporting/report/application/update/reporting-update-report-by-id.handler.spec.ts +77 -0
  188. package/dist/templates/backend/packages/reporting/src/@app/reporting/report/application/update/reporting-update-report-by-id.service.ts +2 -2
  189. package/dist/templates/backend/packages/reporting/src/@app/reporting/report/application/update/reporting-update-reports.service.ts +2 -2
  190. package/dist/templates/backend/packages/reporting/src/@app/reporting/report/application/update-execution-cache/reporting-update-report-execution-cache.handler.spec.ts +35 -0
  191. package/dist/templates/backend/packages/reporting/src/@app/reporting/report/domain/reporting-report.field-schema.ts +7 -0
  192. package/dist/templates/backend/packages/reporting/src/@app/reporting/report/index.ts +5 -0
  193. package/dist/templates/backend/packages/tools/src/@api/tools/assistant-conversation/dto/tools-assistant-conversation.dto.ts +8 -1
  194. package/dist/templates/backend/packages/tools/src/@api/tools/assistant-conversation/dto/tools-update-assistant-conversation-by-id.dto.ts +8 -1
  195. package/dist/templates/backend/packages/tools/src/@api/tools/assistant-conversation/dto/tools-update-assistant-conversations.dto.ts +8 -1
  196. package/dist/templates/backend/packages/tools/src/@api/tools/assistant-conversation/graphql/tools-assistant-conversation.graphql +8 -1
  197. package/dist/templates/backend/packages/tools/src/@api/tools/assistant-usage/controllers/tools-ask-assistant-assistant-usage.controller.ts +1 -0
  198. package/dist/templates/backend/packages/tools/src/@api/tools/assistant-usage/dto/tools-ask-assistant.dto.ts +47 -0
  199. package/dist/templates/backend/packages/tools/src/@api/tools/assistant-usage/dto/tools-assistant-answer.dto.ts +1 -0
  200. package/dist/templates/backend/packages/tools/src/@api/tools/assistant-usage/dto/tools-assistant-usage.dto.ts +8 -1
  201. package/dist/templates/backend/packages/tools/src/@api/tools/assistant-usage/dto/tools-update-assistant-usage-by-id.dto.ts +8 -1
  202. package/dist/templates/backend/packages/tools/src/@api/tools/assistant-usage/dto/tools-update-assistant-usages.dto.ts +8 -1
  203. package/dist/templates/backend/packages/tools/src/@api/tools/assistant-usage/graphql/tools-assistant-usage.graphql +45 -1
  204. package/dist/templates/backend/packages/tools/src/@api/tools/assistant-usage/resolvers/tools-ask-assistant-assistant-usage.resolver.ts +1 -0
  205. package/dist/templates/backend/packages/tools/src/@app/tools/anthropic/infrastructure/tools-anthropic-assistant-model.service.spec.ts +1 -0
  206. package/dist/templates/backend/packages/tools/src/@app/tools/anthropic/shared/functions/tools-anthropic-build-assistant-request.function.spec.ts +145 -0
  207. package/dist/templates/backend/packages/tools/src/@app/tools/anthropic/shared/functions/tools-anthropic-build-assistant-request.function.ts +44 -2
  208. package/dist/templates/backend/packages/tools/src/@app/tools/anthropic/shared/types/tools-anthropic-assistant-answer.types.ts +3 -2
  209. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-conversation/domain/tools-assistant-conversation.field-schema.ts +6 -0
  210. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-conversation/infrastructure/drizzle/tools-drizzle-assistant-conversation.schema.ts +1 -0
  211. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/application/ask-assistant/tools-ask-assistant-assistant-usage.handler.spec.ts +105 -5
  212. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/application/ask-assistant/tools-ask-assistant-assistant-usage.handler.ts +40 -23
  213. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/application/ask-assistant/tools-assistant-errors.function.ts +8 -0
  214. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/application/ask-assistant/tools-assistant-read-screen.function.spec.ts +257 -0
  215. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/application/ask-assistant/tools-assistant-read-screen.function.ts +200 -0
  216. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/application/quota/tools-assistant-quota.service.spec.ts +7 -2
  217. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/application/quota/tools-assistant-quota.service.ts +7 -2
  218. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/domain/tools-assistant-model.port.ts +44 -0
  219. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/domain/tools-assistant-usage.field-schema.ts +6 -0
  220. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/infrastructure/drizzle/tools-drizzle-assistant-usage.repository.spec.ts +25 -0
  221. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/infrastructure/drizzle/tools-drizzle-assistant-usage.repository.ts +3 -0
  222. package/dist/templates/backend/packages/tools/src/@app/tools/assistant-usage/infrastructure/drizzle/tools-drizzle-assistant-usage.schema.ts +1 -0
  223. package/dist/templates/backend/packages/tools/test/acceptance/tools/assistant-ask.e2e-spec.ts +16 -1
  224. package/dist/templates/backend/packages/tools/test/acceptance/tools/assistant-usage-increment.e2e-spec.ts +52 -5
  225. package/dist/templates/codegen/frontend/module/__module_name__/features/__module_name__-list.component.ts.eta +7 -1
  226. package/dist/templates/codegen/frontend/module/__module_name__/features/index.ts.eta +1 -1
  227. package/dist/templates/frontend/application/.claude/skills/catalyst-project-structure/SKILL.md +3 -0
  228. package/dist/templates/frontend/application/libs/ui/command/src/lib/hlm-command-item.ts +1 -1
  229. package/dist/templates/frontend/application/src/@aurora/modules/assisted-form/README.md +2 -0
  230. package/dist/templates/frontend/application/src/@aurora/modules/command-palette/command-palette-trigger.component.ts +1 -0
  231. package/dist/templates/frontend/application/src/@aurora/modules/guided-action/README.md +4 -0
  232. package/dist/templates/frontend/application/src/@aurora/modules/guided-action/guided-action-runner.service.spec.ts +69 -0
  233. package/dist/templates/frontend/application/src/@aurora/modules/guided-action/guided-action-runner.service.ts +13 -4
  234. package/dist/templates/frontend/application/src/@aurora/modules/index.ts +1 -0
  235. package/dist/templates/frontend/application/src/@aurora/modules/manual/manual.graphql.ts +1 -0
  236. package/dist/templates/frontend/application/src/@aurora/modules/screen-context/README.md +36 -0
  237. package/dist/templates/frontend/application/src/@aurora/modules/screen-context/index.ts +2 -0
  238. package/dist/templates/frontend/application/src/@aurora/modules/screen-context/screen-context.service.spec.ts +137 -0
  239. package/dist/templates/frontend/application/src/@aurora/modules/screen-context/screen-context.service.ts +60 -0
  240. package/dist/templates/frontend/application/src/@aurora/modules/screen-context/screen-context.types.ts +47 -0
  241. package/dist/templates/frontend/application/src/app/domains/admin/layout/site-header.ts +1 -1
  242. package/dist/templates/frontend/application/tsconfig.json +1 -0
  243. package/dist/templates/frontend/navigation-i18n/reporting/en.json +1 -1
  244. package/dist/templates/frontend/navigation-i18n/reporting/es.json +1 -1
  245. package/dist/templates/frontend/packages/automation/src/app/domains/admin/apps/automation/state-machine-history/features/index.ts +0 -1
  246. package/dist/templates/frontend/packages/automation/src/app/domains/admin/apps/automation/state-machine-history/features/state-machine-history-list.component.ts +0 -13
  247. package/dist/templates/frontend/packages/business-partner-portal/package.yaml +0 -2
  248. package/dist/templates/frontend/packages/business-partner-portal/public/i18n/business-partner-portal/en.json +25 -3
  249. package/dist/templates/frontend/packages/business-partner-portal/public/i18n/business-partner-portal/es.json +25 -3
  250. package/dist/templates/frontend/packages/business-partner-portal/src/app/domains/admin/apps/business-partner-portal/purchase-invoice-header/data-access/purchase-invoice-header.graphql.ts +1 -2
  251. 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
  252. 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
  253. 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 +237 -26
  254. 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 +181 -26
  255. 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
  256. 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
  257. 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.spec.ts +192 -12
  258. 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 +153 -15
  259. 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
  260. package/dist/templates/frontend/packages/business-partner-portal/src/app/domains/admin/apps/business-partner-portal/purchase-invoice-header/features/purchase-invoice-header-supplier-document.view.spec.ts +1 -1
  261. package/dist/templates/frontend/packages/business-partner-portal/src/app/domains/admin/apps/business-partner-portal/purchase-invoice-header/purchase-invoice-header.columns.ts +0 -12
  262. 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
  263. 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
  264. package/dist/templates/frontend/packages/business-partner-portal/src/app/domains/admin/apps/business-partner-portal/purchase-invoice-position/data-access/purchase-invoice-position.graphql.ts +0 -1
  265. package/dist/templates/frontend/packages/business-partner-portal/src/app/domains/admin/apps/business-partner-portal/purchase-invoice-position-tax/data-access/purchase-invoice-position-tax.graphql.ts +0 -1
  266. package/dist/templates/frontend/packages/business-partner-portal/src/app/domains/admin/apps/business-partner-portal/purchase-invoice-tax-breakdown/data-access/purchase-invoice-tax-breakdown.graphql.ts +0 -1
  267. package/dist/templates/frontend/packages/business-partner-portal/src/app/domains/admin/apps/business-partner-portal/purchase-invoice-trace/data-access/purchase-invoice-trace.graphql.ts +0 -1
  268. package/dist/templates/frontend/packages/business-partner-portal/src/app/domains/admin/apps/business-partner-portal/purchase-invoice-trace/features/index.ts +0 -1
  269. 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
  270. package/dist/templates/frontend/packages/business-partner-portal/src/app/domains/admin/apps/business-partner-portal/supplier-document/data-access/supplier-document.graphql.ts +0 -2
  271. package/dist/templates/frontend/packages/business-partner-portal/src/app/domains/admin/apps/business-partner-portal/supplier-document/features/supplier-document-form.component.ts +0 -19
  272. package/dist/templates/frontend/packages/business-partner-portal/src/app/domains/admin/apps/business-partner-portal/supplier-document/supplier-document.columns.ts +0 -12
  273. package/dist/templates/frontend/packages/identity/src/app/domains/admin/apps/iam/account/features/account-form.component.spec.ts +26 -1
  274. package/dist/templates/frontend/packages/identity/src/app/domains/admin/apps/iam/account/features/account-form.component.ts +45 -0
  275. package/dist/templates/frontend/packages/production-planning/public/i18n/production-planning/en.json +15 -4
  276. package/dist/templates/frontend/packages/production-planning/public/i18n/production-planning/es.json +15 -4
  277. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/planner/data-access/index.ts +1 -0
  278. 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
  279. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/planner/data-access/planner-process-weights.derive.ts +39 -0
  280. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/planner/data-access/planner.derive.spec.ts +15 -0
  281. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/planner/data-access/planner.derive.ts +7 -3
  282. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/planner/data-access/planner.graphql.ts +23 -0
  283. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/planner/features/planner-process-weights-dialog.component.ts +137 -0
  284. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/planner/features/planner.component.ts +41 -4
  285. 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
  286. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/production-dashboard/data-access/production-dashboard.derive.ts +0 -21
  287. 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
  288. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/production-dashboard/data-access/production-dashboard.resolvers.ts +3 -1
  289. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/production-dashboard/features/batch-detail-sheet.component.ts +22 -10
  290. 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
  291. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/production-dashboard/features/event-form-sheet.component.ts +95 -59
  292. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/production-dashboard/features/event-list.component.ts +121 -123
  293. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/production-dashboard/features/production-dashboard.component.ts +52 -19
  294. 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
  295. 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
  296. 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
  297. 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
  298. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/shared/dialogs/finish-event-dialog.component.ts +3 -3
  299. package/dist/templates/frontend/packages/production-planning/src/app/domains/admin/apps/production-planning/shared/dialogs/weight-input-dialog.component.ts +3 -3
  300. package/dist/templates/frontend/packages/reporting/public/i18n/reporting/en.json +1 -1
  301. package/dist/templates/frontend/packages/reporting/public/i18n/reporting/es.json +1 -1
  302. package/dist/templates/frontend/packages/reporting/src/app/domains/admin/apps/reporting/report/data-access/report.detail-config.ts +1 -2
  303. package/dist/templates/frontend/packages/reporting/src/app/domains/admin/apps/reporting/report/data-access/report.graphql.ts +0 -14
  304. package/dist/templates/frontend/packages/reporting/src/app/domains/admin/apps/reporting/report/features/report-form.component.spec.ts +96 -0
  305. package/dist/templates/frontend/packages/reporting/src/app/domains/admin/apps/reporting/report/features/report-form.component.ts +46 -69
  306. package/dist/templates/frontend/packages/reporting/src/app/domains/admin/apps/reporting/report/features/report-list.component.ts +2 -22
  307. package/dist/templates/frontend/packages/reporting/src/app/domains/admin/apps/reporting/report/report.columns.ts +0 -1
  308. package/dist/templates/frontend/packages/reporting/src/app/domains/admin/apps/reporting/reporting-icons.providers.ts +2 -1
  309. package/dist/templates/frontend/packages/reporting/src/app/domains/admin/apps/reporting/reporting.navigation.ts +7 -0
  310. package/dist/templates/frontend/packages/tools/public/i18n/tools/en.json +4 -2
  311. package/dist/templates/frontend/packages/tools/public/i18n/tools/es.json +4 -2
  312. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant/tools-assistant.service.spec.ts +82 -7
  313. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant/tools-assistant.service.ts +12 -2
  314. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-conversation/assistant-conversation.columns.ts +13 -0
  315. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-conversation/data-access/assistant-conversation.graphql.ts +1 -0
  316. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-conversation/features/assistant-conversation-form.component.ts +18 -0
  317. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-conversation/features/assistant-conversation-list.component.ts +0 -13
  318. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-conversation/features/index.ts +0 -1
  319. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-usage/assistant-usage.columns.ts +13 -0
  320. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-usage/data-access/assistant-usage.graphql.ts +2 -0
  321. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-usage/features/assistant-usage-form.component.ts +18 -0
  322. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-usage/features/assistant-usage-list.component.ts +0 -13
  323. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-usage/features/index.ts +0 -1
  324. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/tools.navigation.ts +7 -7
  325. package/dist/templates/monorepo/.claude/commands/business-rules/promote.md +5 -1
  326. package/dist/templates/monorepo/.claude/hooks/__fixtures__/br-hr-regression-baseline.txt +2 -2
  327. package/dist/templates/monorepo/.claude/hooks/check-required-setup.ts +4 -4
  328. package/dist/templates/monorepo/.claude/hooks/inject-prompt-context.ts +1 -1
  329. package/dist/templates/monorepo/.claude/scripts/generate-skills-index.test.ts +29 -1
  330. package/dist/templates/monorepo/.claude/scripts/generate-skills-index.ts +7 -1
  331. package/dist/templates/monorepo/.claude/skills/REGISTRY.md +2 -2
  332. package/dist/templates/monorepo/.claude/skills/catalyst-backlog/SKILL.md +19 -4
  333. package/dist/templates/monorepo/.claude/skills/catalyst-backlog/frontier-worker-addendum.md +3 -3
  334. package/dist/templates/monorepo/.claude/skills/catalyst-business-rules-guard/SKILL.md +8 -5
  335. package/dist/templates/monorepo/.claude/skills/catalyst-business-rules-guard/references/workflow.md +10 -6
  336. package/dist/templates/monorepo/.claude/skills/catalyst-delegation/SKILL.md +1 -1
  337. package/dist/templates/monorepo/.claude/skills/catalyst-harness-rules-guard/SKILL.md +6 -6
  338. package/dist/templates/monorepo/.claude/skills/catalyst-harness-rules-guard/references/enforcement.md +3 -3
  339. package/dist/templates/monorepo/.claude/skills/catalyst-harness-rules-guard/references/format.md +3 -3
  340. package/dist/templates/monorepo/.claude/skills/catalyst-update-skill-registry/SKILL.md +4 -4
  341. package/dist/templates/monorepo/.claude/skills/catalyst-user-manual/SKILL.md +48 -2
  342. package/dist/templates/monorepo/.claude/skills/openspec-apply-change/SKILL.md +28 -10
  343. package/dist/templates/monorepo/.claude/skills/openspec-archive-change/SKILL.md +52 -13
  344. package/dist/templates/monorepo/.claude/skills/openspec-explore/SKILL.md +59 -14
  345. package/dist/templates/monorepo/.claude/skills/openspec-propose/SKILL.md +38 -12
  346. package/dist/templates/monorepo/.claude/skills/openspec-sync-specs/SKILL.md +31 -3
  347. package/dist/templates/monorepo/CLAUDE.md +14 -14
  348. package/dist/templates/monorepo/docs/business-rules/ARCHITECTURE.md +16 -13
  349. package/dist/templates/monorepo/docs/business-rules/MIGRATION.md +5 -5
  350. package/dist/templates/monorepo/docs/manual/en/04-asistente.md +71 -0
  351. package/dist/templates/monorepo/docs/manual/es/04-asistente.md +71 -0
  352. package/dist/templates/monorepo/openspec/config.yaml +25 -5
  353. package/dist/templates/monorepo/package.json +3 -1
  354. package/dist/templates/monorepo/scripts/backlog/prompt.test.ts +5 -5
  355. package/dist/templates/monorepo/scripts/backlog/prompt.ts +1 -1
  356. package/dist/templates/monorepo/scripts/business-rules/audit.ts +1 -1
  357. package/dist/templates/monorepo/scripts/manual/compile.test.ts +78 -0
  358. package/dist/templates/monorepo/scripts/manual/compile.ts +36 -9
  359. package/dist/templates/monorepo/scripts/worktree/prune.test.ts +517 -0
  360. package/dist/templates/monorepo/scripts/worktree/prune.ts +331 -0
  361. package/oclif.manifest.json +43 -43
  362. package/package.json +15 -17
  363. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/azure/index.ts +0 -2
  364. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/azure/infrastructure/business-partner-portal-azure-invoice-ocr.service.spec.ts +0 -259
  365. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/azure/infrastructure/business-partner-portal-azure-invoice-ocr.service.ts +0 -86
  366. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/azure/infrastructure/index.ts +0 -1
  367. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/azure/shared/functions/business-partner-portal-azure-classify-invoice.function.spec.ts +0 -99
  368. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/azure/shared/functions/business-partner-portal-azure-classify-invoice.function.ts +0 -23
  369. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/azure/shared/functions/business-partner-portal-azure-map-invoice-result.function.spec.ts +0 -670
  370. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/azure/shared/functions/business-partner-portal-azure-map-invoice-result.function.ts +0 -243
  371. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/azure/shared/functions/business-partner-portal-azure-tax-id-from-content.function.spec.ts +0 -64
  372. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/azure/shared/functions/business-partner-portal-azure-tax-id-from-content.function.ts +0 -41
  373. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/azure/shared/functions/business-partner-portal-resolve-azure-document-intelligence-credentials.function.spec.ts +0 -76
  374. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/azure/shared/functions/business-partner-portal-resolve-azure-document-intelligence-credentials.function.ts +0 -26
  375. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/azure/shared/functions/index.ts +0 -4
  376. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/azure/shared/index.ts +0 -2
  377. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/azure/shared/types/business-partner-portal-azure-analyze-result.types.ts +0 -58
  378. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/azure/shared/types/index.ts +0 -1
  379. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/business-partner-portal-azure-sdk-isolation.spec.ts +0 -22
  380. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-find-doubt-causing-fields.function.spec.ts +0 -60
  381. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-find-doubt-causing-fields.function.ts +0 -35
  382. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-is-doubt-unresolved.function.spec.ts +0 -86
  383. package/dist/templates/backend/packages/business-partner-portal/src/@app/business-partner-portal/shared/extraction-step-two/business-partner-portal-is-doubt-unresolved.function.ts +0 -38
  384. 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
  385. 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
  386. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-conversation/features/assistant-conversation-list-actions-cell.component.ts +0 -44
  387. package/dist/templates/frontend/packages/tools/src/app/domains/admin/apps/tools/assistant-usage/features/assistant-usage-list-actions-cell.component.ts +0 -43
  388. package/dist/templates/monorepo/.claude/commands/opsx/apply.md +0 -184
  389. package/dist/templates/monorepo/.claude/commands/opsx/archive.md +0 -225
  390. package/dist/templates/monorepo/.claude/commands/opsx/explore.md +0 -196
  391. package/dist/templates/monorepo/.claude/commands/opsx/propose.md +0 -145
  392. package/dist/templates/monorepo/.claude/commands/opsx/sync.md +0 -258
@@ -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.
@@ -1,20 +1,31 @@
1
1
  ---
2
2
  name: openspec-apply-change
3
- description: Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks.
3
+ description: Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks. Also use when the user says "openspec apply", "opsx apply", or "openspec implement".
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
  Implement tasks from an OpenSpec change.
14
14
 
15
15
  **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.
16
16
 
17
- **Input**: Optionally specify a change name (e.g., `/opsx:apply add-auth`). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
17
+ **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.
18
+
19
+ 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`.
20
+
21
+ Otherwise, with no root, what happens next depends on how this workflow was reached:
22
+
23
+ - **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.
24
+ - **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.
25
+
26
+ 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.
27
+
28
+ **Input**: Optionally specify a change name (e.g., `openspec-apply-change add-auth`). If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
18
29
 
19
30
  **Steps**
20
31
 
@@ -25,7 +36,7 @@ Implement tasks from an OpenSpec change.
25
36
  - Auto-select if only one active change exists
26
37
  - If ambiguous, run `openspec list --json` to get available changes and ask the user to select one
27
38
 
28
- Always announce: "Using change: <name>" and how to override (e.g., `/opsx:apply <other>`).
39
+ Always announce: "Using change: <name>" and how to override (e.g., `openspec-apply-change <other>`).
29
40
 
30
41
  2. **Check status to understand the schema**
31
42
  ```bash
@@ -45,14 +56,17 @@ Implement tasks from an OpenSpec change.
45
56
  This returns:
46
57
  - `contextFiles`: artifact ID -> array of concrete file paths (varies by schema - could be proposal/specs/design/tasks or spec/tests/implementation/docs)
47
58
  - Progress (total, complete, remaining)
48
- - Task list with status
59
+ - Task list with status, source path, and source line
49
60
  - Dynamic instruction based on current state
50
61
  - Optional `context`: current required project instruction input from the selected root
51
62
  - Optional `operationGuidance`: current advisory guidance for apply
63
+ - `missingArtifacts` (when present): required artifact ids with no output
52
64
 
53
65
  **Handle states:**
54
- - If `state: "blocked"` (missing artifacts): show message, suggest using `/opsx:continue` (if it is not installed, run `openspec status --change "<name>" --json` to see the next artifact and `openspec instructions <artifact-id> --change "<name>" --json` for how to create it)
55
- - If `state: "all_done"`: congratulate, suggest archive
66
+ - If `state: "blocked"`: show the message and pause implementation.
67
+ - If `missingArtifacts` is non-empty: suggest completing the missing artifacts. Run `openspec status --change "<name>" --json`, select the next `ready` artifact (not `skipped` or `blocked`), and use `openspec instructions "<artifact-id>" --change "<name>" --json` for its rules and template. Keep the selected `--store <id>` on both commands.
68
+ - Otherwise, follow the CLI instruction to create or repair the schema-configured tracking file from existing planning artifacts. Do not assume another artifact is ready or start implementation while blocked.
69
+ - If `state: "all_done"`: report that all tracked tasks are complete and suggest review or verification as appropriate before archiving
56
70
  - Otherwise: proceed to implementation
57
71
 
58
72
  Treat `context` as a required prompt-level input. Read and consider it, and
@@ -94,7 +108,9 @@ Implement tasks from an OpenSpec change.
94
108
  - Show which task is being worked on
95
109
  - Make the code changes required
96
110
  - Keep changes minimal and focused
97
- - Mark task complete in the tasks file: `- [ ]` → `- [x]`
111
+ - Before editing, confirm the checkbox at the returned `sourcePath` and `line` still matches the task description; if it does not, rerun the apply instructions and use the refreshed location
112
+ - Mark the task complete at its returned `sourcePath` and `line`: `- [ ]` → `- [x]`
113
+ - Rerun the apply instructions and confirm that task is now done and progress changed
98
114
  - Continue to next task
99
115
 
100
116
  **Pause if:**
@@ -109,7 +125,7 @@ Implement tasks from an OpenSpec change.
109
125
  Display:
110
126
  - Tasks completed this session
111
127
  - Overall progress: "N/M tasks complete"
112
- - If all done: suggest archive
128
+ - If all done: report that tracked tasks are complete and suggest review or verification as appropriate before archiving
113
129
  - If paused: explain why and wait for guidance
114
130
 
115
131
  **Output During Implementation**
@@ -140,7 +156,8 @@ Working on task 4/7: <task description>
140
156
  - [x] Task 2
141
157
  ...
142
158
 
143
- All tasks complete! You can archive this change with `/opsx:archive`.
159
+ All tracked tasks are complete. Review or verify the change as appropriate
160
+ before archiving. You can archive this change with `openspec-archive-change`.
144
161
  ```
145
162
 
146
163
  **Output On Pause (Issue Encountered)**
@@ -174,6 +191,7 @@ What would you like to do?
174
191
  - When a task needs work beyond what the spec describes, surface the added scope and pause - never silently narrow, defer, or simplify away specified behavior
175
192
  - Only mark a task `- [x]` when its specified behavior is fully implemented, not when it is partially done or deferred
176
193
  - Use contextFiles from CLI output, don't assume specific file names
194
+ - Use each task's sourcePath and line to update its exact checkbox
177
195
  - Do not use context or operation guidance as proof that a task is complete
178
196
  - Apply relevant project context; report conflicts with controlling workflow inputs
179
197
  - Consider every guidance entry; explain any inapplicable or conflicting advice
@@ -1,19 +1,30 @@
1
1
  ---
2
2
  name: openspec-archive-change
3
- description: Archive a completed change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete.
3
+ description: Archive a completed OpenSpec change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete. Also use when the user says "openspec archive" or "opsx archive".
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
  Archive a completed change in the experimental workflow.
14
14
 
15
15
  **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.
16
16
 
17
+ **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.
18
+
19
+ 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`.
20
+
21
+ Otherwise, with no root, what happens next depends on how this workflow was reached:
22
+
23
+ - **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.
24
+ - **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.
25
+
26
+ 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.
27
+
17
28
  `<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.
18
29
 
19
30
  **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.
@@ -30,7 +41,7 @@ Archive a completed change in the experimental workflow.
30
41
  When prompting, show only active changes (not already archived).
31
42
  Include the schema used for each change if available.
32
43
 
33
- Always announce: "Using change: <name>" and how to override (e.g., `/opsx:archive <other>`).
44
+ Always announce: "Using change: <name>" and how to override (e.g., `openspec-archive-change <other>`).
34
45
 
35
46
  **Load current archive inputs before the existing archive checks:**
36
47
 
@@ -75,16 +86,27 @@ Archive a completed change in the experimental workflow.
75
86
 
76
87
  3. **Check task completion status**
77
88
 
78
- Read the tasks file (typically `tasks.md`) to check for incomplete tasks.
79
-
80
- Count tasks marked with `- [ ]` (incomplete) vs `- [x]` (complete).
89
+ Run `openspec list --json` with the same selected-root flags and find the
90
+ entry in `changes` whose `name` exactly matches the selected change.
91
+ Require exactly one match and nonnegative integer `totalTasks` and
92
+ `completedTasks`, with `completedTasks <= totalTasks`. The CLI resolves
93
+ the schema's tracked task files, including custom artifact names, output
94
+ paths, and globs.
95
+ Incomplete tasks = `totalTasks - completedTasks`.
96
+
97
+ Do not infer task completion from artifact status or the absence of a
98
+ top-level `tasks.md`. If the lookup fails, returns invalid JSON, omits or
99
+ duplicates the selected change, or returns invalid counts, report the problem
100
+ and stop before syncing or archiving.
101
+ The CLI counts only `x`/`X` checkbox markers as complete;
102
+ other markers, including unfamiliar ones, remain incomplete.
81
103
 
82
104
  **If incomplete tasks found:**
83
105
  - Display warning showing count of incomplete tasks
84
106
  - Ask the user to confirm they want to proceed
85
107
  - Proceed if user confirms
86
108
 
87
- **If no tasks file exists:** Proceed without task-related warning.
109
+ **If `totalTasks` is zero:** Proceed without a task-related warning.
88
110
 
89
111
  4. **Assess delta spec sync state**
90
112
 
@@ -95,17 +117,23 @@ Archive a completed change in the experimental workflow.
95
117
 
96
118
  **If delta specs exist:**
97
119
  - Compare each delta spec with its corresponding main spec at `<planningHome.root>/openspec/specs/<capability-path>/spec.md` (use the store-aware `planningHome.root` from step 2, not a hardcoded repo path)
120
+ - A missing main spec is **not automatically** "already synced". For a new capability, the main spec is an *output* of the sync, not an input:
121
+ - If the delta has MODIFIED or RENAMED requirements, report that only ADDED requirements can create a new main spec and mark that capability as sync-blocked. Never invent a requirement that has no current version.
122
+ - Otherwise, if the delta has only REMOVED requirements and the change's `.openspec.yaml` declares `retire_capabilities: true`, the capability is already retired: count it as already synced, warn that there is nothing left to remove, and do not recreate the main spec. Apply this rule both now and when verifying a completed sync.
123
+ - Otherwise, if the delta has no ADDED requirements, report that no sync is possible and mark that capability as sync-blocked. For a REMOVED-only delta, warn that there is no main spec to remove from and leave the main-spec tree unchanged. `openspec archive` refuses the unmarked REMOVED-only case with `Spec must have at least one requirement`.
124
+ - Otherwise, count the capability as needing sync and name it in the summary (`<capability-path>: new main spec will be created`). If the delta also has REMOVED requirements, warn that they will be ignored because there is no main spec to remove from. The sync creates the main spec from only the delta's ADDED requirements, exactly as `openspec archive` does.
98
125
  - Determine what changes would be applied (adds, modifications, removals, renames)
99
- - Show a combined summary before prompting
126
+ - Continue assessing the remaining capabilities even when one is sync-blocked. Show a combined summary before prompting.
100
127
 
101
128
  **Prompt options:**
102
- - If changes needed: "Sync now (recommended)", "Archive without syncing"
103
- - If already synced: "Archive now", "Sync anyway", "Cancel"
129
+ - If any capability is sync-blocked: explain why and offer only "Archive without syncing", "Cancel"
130
+ - Otherwise, if changes needed: "Sync now (recommended)", "Archive without syncing"
131
+ - Otherwise, if already synced: "Archive now", "Sync anyway", "Cancel"
104
132
 
105
133
  Route on the answer:
106
134
  - "Cancel" — stop, do not archive
107
135
  - "Archive without syncing" or "Archive now" — proceed to archive
108
- - "Sync now" or "Sync anyway" — sync, then verify (below)
136
+ - "Sync now" or "Sync anyway" — sync, then verify (below). Do not start any sync while a capability is sync-blocked; explain the blocker and repeat the available choices.
109
137
  - Anything else — ask again rather than archiving
110
138
 
111
139
  Before a selected sync writes any main spec, run
@@ -119,10 +147,21 @@ Archive a completed change in the experimental workflow.
119
147
 
120
148
  Then run the `openspec-sync-specs` workflow inline (agent-driven intelligent merge) for change '<name>', passing the delta spec analysis and the fetched specs-rule snapshot from above, and wait for it to finish. The inline sync must reuse that snapshot without fetching `specs` instructions again. Do not delegate it to a background task — step 5 would move `changeRoot` out from under a sync that is still reading it, leaving the change archived and the main specs never updated. If your agent can only run it by delegation, delegate synchronously and wait for the result.
121
149
 
122
- Then re-run the comparison from the top of this step against every capability that has a delta spec in `artifactPaths.specs.existingOutputPaths` — not only the ones the sync reports it touched. A successful sync leaves nothing left to apply, so each capability must now read as already synced:
150
+ If the sync reports any stop or blocking condition, treat the sync as failed.
151
+ Stop the archive immediately. Do not perform the post-sync content comparison and do not move its `changeRoot`.
152
+ Nothing has moved, so the user can fix the blocking condition or re-run the sync.
153
+
154
+ After the sync writes each main spec, verify its structure against the canonical sync contract:
155
+ - A new main spec starts with a `# <capability> Specification` title. An existing main spec keeps its title exactly as it is.
156
+ - Preserve existing `## Purpose` sections completely untouched for established main specs.
157
+ - For a new main spec, copy the delta `## Purpose` verbatim. Warn only if the purpose text is shorter than standard validation expects. Do not regenerate or rewrite existing authored purpose. If no usable `## Purpose` is provided, use the existing TBD Purpose behavior and warning.
158
+ - Verify that no delta-style section headers (`## ADDED Requirements`, `## MODIFIED Requirements`, `## REMOVED Requirements`, `## RENAMED Requirements`) remain in the main spec, adhering strictly to the sync workflow formatting rules.
159
+ - Requirement blocks the sync wrote or changed use `### Requirement:` headings, and their scenarios use `#### Scenario:` headings, under the spec's `## Requirements` section. Leave content the delta does not mention exactly as it is.
160
+
161
+ Then re-run the comparison from the top of this step, including the explicitly retired, missing-spec case, against every capability that has a delta spec in `artifactPaths.specs.existingOutputPaths` — not only the ones the sync reports it touched. A successful sync leaves nothing left to apply, so each capability must now read as already synced:
123
162
  - ADDED requirements present
124
163
  - MODIFIED requirements carrying the scenario and description changes named in the delta, with their other scenarios intact
125
- - REMOVED requirements gone — and where this sync retired a capability (removed its last requirement, leaving `## Requirements` empty), its main spec deleted rather than left empty; a spec the sync deliberately kept and reported is also a match
164
+ - REMOVED requirements gone — and where this sync retired a capability (removed its last requirement, leaving `## Requirements` empty), its main spec deleted rather than left empty.
126
165
  - RENAMED requirements present under the new name and absent under the old one
127
166
 
128
167
  If the sync failed, or any capability does not match, report what differs and stop — do not archive. Nothing has moved and `changeRoot` is intact, so the user can fix the mismatch or re-run the sync and start the archive again.
@@ -1,23 +1,34 @@
1
1
  ---
2
2
  name: openspec-explore
3
- description: Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements. Use when the user wants to think through something before or during a change.
3
+ description: Enter OpenSpec explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements in a project that uses OpenSpec. Use when the user wants to think through something before or during an OpenSpec change. Also use when the user says "openspec explore" or "opsx explore".
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
  Enter explore mode. Think deeply. Visualize freely. Follow the conversation wherever it goes.
14
14
 
15
- **IMPORTANT: Explore mode is for thinking, not implementing.** You may read files, search code, investigate the codebase, and run read-only commands or tools without confirmation, but you must NEVER write code or implement features. If the user asks you to implement something, remind them to exit explore mode first and create a change proposal. You MAY create or update OpenSpec change artifacts (proposals, designs, specs) within a confirmed scope—that's capturing thinking, not implementing. Answering design or clarifying questions is never consent to write. Before the first write-capable action, name the artifacts or files you would change and what you would do, ask a direct yes/no question, and wait for the user's confirmation in a separate message. Confirmation covers only the scope you described; ask again before expanding it. For a new change, scaffold it first as described below.
15
+ **IMPORTANT: Explore mode is for thinking, not implementing.** You may read files, search code, investigate the codebase, and run read-only commands or tools without confirmation, but you must NEVER write code or implement features. If the user asks you to implement something, do not start it here: say that explore mode does not implement, and point them at `openspec-propose`, which turns the discussion into a change. The work happens from that change, never from explore mode. You MAY create or update OpenSpec change artifacts (proposals, designs, specs) within a confirmed scope—that's capturing thinking, not implementing. Answering design or clarifying questions is never consent to write. Before the first write-capable action, name the artifacts or files you would change and what you would do, ask a direct yes/no question, and wait for the user's confirmation in a separate message. Confirmation covers only the scope you described; ask again before expanding it. An explicit request from the user to capture the exploration as a new change is itself that confirmation, covering the change and the change artifacts the request names; scaffold it first as described below.
16
16
 
17
17
  **This is a stance, not a workflow.** There are no fixed steps, no required sequence, no mandatory outputs. You're a thinking partner helping the user explore.
18
18
 
19
19
  **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.
20
20
 
21
+ **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.
22
+
23
+ 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`.
24
+
25
+ Otherwise, with no root, what happens next depends on how this workflow was reached:
26
+
27
+ - **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.
28
+ - **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.
29
+
30
+ 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.
31
+
21
32
  ---
22
33
 
23
34
  ## The Stance
@@ -31,6 +42,30 @@ Enter explore mode. Think deeply. Visualize freely. Follow the conversation wher
31
42
 
32
43
  ---
33
44
 
45
+ ## Planning a Change
46
+
47
+ When the user is planning a change, guide them toward shared understanding with focused discovery questions. For open-ended discussion, follow the conversation without imposing an interview or a required output.
48
+
49
+ Before asking a factual question, follow the context discovery below and inspect relevant OpenSpec artifacts, source, tests, docs, and configuration. Do not ask the user to repeat facts you can verify. Summarize relevant findings without reproducing private context or rules. If evidence is missing, conflicting, or inaccessible, state that limitation and ask only for the clarification needed to proceed.
50
+
51
+ - **Follow dependencies** - Resolve the next blocking decision before its dependent details. For example, clarify the user's outcome and scope before choosing an API or data model. Revisit downstream assumptions when an earlier answer changes. Skip branches that do not matter to this goal.
52
+ - **Keep questions focused** - Ask one focused question at a time, and briefly explain why it matters and which decision it unlocks. Batch questions only if the user asks for a batch; keep them small and group related decisions.
53
+ - **Offer grounded recommendations** - When evidence supports a recommendation, state your preferred option and why it fits the user's goals, with alternatives and their tradeoffs when useful. Do not invent intent, priorities, or external constraints: ask the user when only they can answer. Avoid a fixed question format.
54
+ - **Keep a conversational record** - Track decisions in the conversation, not in files. Separate confirmed decisions from proposed defaults and unresolved questions. Silence is not acceptance. Accepting an answer or a batch of recommendations is not permission to write. Keep file-write confirmation separate from discovery questions and follow the guardrails below.
55
+
56
+ Stop asking when the user has enough clarity. Let them pause, pivot, or defer a decision; do not exhaust every branch or force a proposal.
57
+
58
+ For example, after inspecting the relevant code:
59
+
60
+ ```text
61
+ The CLI already uses SQLite and has no remote service. Is sharing state
62
+ across devices in scope? That determines whether local storage is enough.
63
+ If this stays a single-device tool, I recommend keeping SQLite to avoid
64
+ adding a service to operate; shared state would need a separate sync design.
65
+ ```
66
+
67
+ ---
68
+
34
69
  ## What You Might Do
35
70
 
36
71
  Depending on what the user brings, you might:
@@ -94,9 +129,17 @@ openspec list --json
94
129
 
95
130
  This tells you:
96
131
  - If there are active changes
97
- - Their names, schemas, and status
132
+ - Their names and task status
98
133
  - What the user might be working on
99
134
 
135
+ That is the *change* list - work in flight. It does not include the project's durable capabilities, so list those too:
136
+ ```bash
137
+ openspec list --specs
138
+ ```
139
+ Add `--json` for ids and requirement counts, and append `--store "<id>"` only for a registered standalone store. This is the inventory of what the project already claims to do, and `openspec list` on its own never shows it. To look at one, run `openspec show "<spec-id>" --type spec --json --no-scenarios` (same `--store` rule) - it returns that capability's purpose and requirement texts without pulling the whole spec file into context, and `--type spec` stops a change of the same name from making it ambiguous.
140
+
141
+ The filtered read is only an overview. Before deciding what is already covered or what should change, read each relevant spec in full, including scenarios, with `openspec show "<spec-id>" --type spec` (same `--store` rule).
142
+
100
143
  Then read the project's own context from the resolved root - `<root.path>/openspec/config.yaml` (or `config.yml`). Use the `root.path` returned above, and skip this if neither file exists:
101
144
  - `context`: project background - tech stack, conventions, constraints
102
145
  - `rules`: keyed by artifact id - the entries for an artifact apply only when you write that artifact
@@ -110,14 +153,14 @@ Think freely. When insights crystallize, you might offer:
110
153
  - "This feels solid enough to start a change. Want me to create a proposal?"
111
154
  - Or keep exploring - no pressure to formalize
112
155
 
113
- If the user asks you to capture the exploration as a new change, transition seamlessly into the requested capture:
156
+ If the user asks you to capture the exploration as a new change, that request is the confirmation required above. It covers scaffolding that change and creating the change artifacts the request names, and nothing else. This holds only when the request is theirs: a yes to an offer you made confirms only the scope your offer itself named, so name the change and the artifacts in the offer. Don't re-ask for what they already asked for; do ask before anything beyond it. Transition seamlessly into the requested capture:
114
157
 
115
158
  1. Run `openspec new change "<name>"` (with `--store <id>` when applicable) before creating any artifacts. Never create a new change directory under `openspec/changes/` by hand; the CLI scaffold creates required metadata such as `.openspec.yaml`. Keep the selected `--store <id>` on every applicable follow-up `status` and `instructions` command.
116
159
  2. Run `openspec status --change "<name>" --json` (append the confirmed `--store "<id>"` only for a registered standalone store), then process the requested artifacts in dependency order. For each requested artifact that is `ready`, run `openspec instructions "<artifact-id>" --change "<name>" --json` (append the confirmed `--store "<id>"` only for a registered standalone store). Before creating a requested artifact, evaluate any condition in its own `instruction` against the explored change; record a deliberate skip instead when the condition does not apply. If a requested artifact is blocked by a direct prerequisite the user did not request, run `openspec instructions "<prerequisite-id>" --change "<name>" --json` (append the confirmed `--store "<id>"` only for a registered standalone store) for that prerequisite whether it is `ready` or `blocked`. If its own `instruction` states a condition, evaluate that condition against the explored change and record a deliberate skip only when the condition does not apply. If the condition applies, or the prerequisite is not conditional, treat it as a normal prerequisite and ask before expanding the capture. Do not create an unrequested prerequisite unless the user approves.
117
- 3. Follow the returned `template` and `instruction` fields. Read completed dependency files listed in `dependencies`, and apply `context` and `rules` as constraints without copying them into the artifact. If the instruction delegates creation to a specific skill or command, invoke it; otherwise write the artifact to `resolvedOutputPath`, using the instruction to choose a concrete path when it is a glob. Verify that the selected concrete output exists.
160
+ 3. Follow the returned `template` and `instruction` fields. Read completed dependency files listed in `dependencies`, and apply `context` and `rules` as constraints without copying them into the artifact. Choose the output path before creating anything: when `resolvedOutputPath` is a glob, use the instruction to choose a concrete path inside `changeRoot` and verify it remains inside `changeRoot` after resolving symlinks, both in its parent directories and in the file itself if it already exists; if it does not, stop and tell the user. Otherwise the output path is `resolvedOutputPath`. If the instruction delegates creation to a specific skill or command, invoke it only if it can write the artifact to that output path; otherwise stop and tell the user. Otherwise write the artifact to that output path. Verify that the selected concrete output exists at that output path.
118
161
  4. After creating each artifact, re-run `openspec status --change "<name>" --json` (append the confirmed `--store "<id>"` only for a registered standalone store) and continue until every requested artifact is `done`, `skipped`, or was deliberately skipped because its own `instruction` stated a condition that did not apply. Tell the user about a deliberate conditional skip, remember it, and do not reconsider it. Dependencies are enablers, not gates: if a requested artifact is still `blocked` only because you deliberately skipped a conditional prerequisite, run `openspec instructions "<artifact-id>" --change "<name>" --json` (append the confirmed `--store "<id>"` only for a registered standalone store) despite the blocked status, then create it using step 3 only when those recorded conditional skips are its sole missing dependencies. If a requested artifact is blocked by a prerequisite the user did not ask to capture and cannot be conditionally skipped, explain that dependency and ask before expanding the capture.
119
162
 
120
- Capture the artifact(s) the user requested without asking them to invoke another workflow command. If they asked only to start a change, stop after scaffolding and show its status.
163
+ Capture the artifact(s) the user requested without asking them to invoke another workflow. If they asked only to start a change, stop after scaffolding and show its status. When the requested capture is done, stop there and name where the work continues: `openspec-propose` writes the remaining planning artifacts, and `openspec-apply-change` implements the change once tasks exist. Capturing artifacts never starts implementing them.
121
164
 
122
165
  ### When a change exists
123
166
 
@@ -136,6 +179,8 @@ If the user mentions a change or you detect one is relevant:
136
179
 
137
180
  `<capability-path>` is the spec directory relative to `specs/` (for example, `user-auth` or `identity/user-auth`). Preserve an existing capability's full path and follow the project's established organization for new capabilities.
138
181
 
182
+ The files below are the default spec-driven schema's. With another schema, capture each insight in whichever artifact from `artifactPaths` fits it, and name that artifact in your offer; never create an artifact the schema does not define.
183
+
139
184
  | Insight Type | Where to Capture |
140
185
  |----------------------------|-------------------------------------|
141
186
  | New requirement discovered | `specs/<capability-path>/spec.md` |
@@ -145,7 +190,7 @@ If the user mentions a change or you detect one is relevant:
145
190
  | New work identified | `tasks.md` |
146
191
  | Assumption invalidated | Relevant artifact |
147
192
 
148
- Example offers:
193
+ Example offers (default schema):
149
194
  - "That's a design decision. Capture it in design.md?"
150
195
  - "This is a new requirement. Add it to specs?"
151
196
  - "This changes scope. Update the proposal?"
@@ -223,7 +268,7 @@ You: [reads codebase]
223
268
 
224
269
  **User is stuck mid-implementation:**
225
270
  ```
226
- User: /opsx:explore add-auth-system
271
+ User: openspec-explore add-auth-system
227
272
  The OAuth integration is more complex than expected
228
273
 
229
274
  You: [reads change artifacts]
@@ -273,8 +318,8 @@ You: That changes everything.
273
318
 
274
319
  There's no required ending. Discovery might:
275
320
 
276
- - **Flow into a proposal**: "Ready to start? I can create a change proposal."
277
- - **Result in artifact updates**: "Updated design.md with these decisions"
321
+ - **Flow into a proposal**: "Ready to start? Use the `openspec-propose` skill and this becomes a change."
322
+ - **Result in artifact updates**: "Updated the design with these decisions"
278
323
  - **Just provide clarity**: User has what they need, moves on
279
324
  - **Continue later**: "We can pick this up anytime"
280
325
 
@@ -290,7 +335,7 @@ When it feels like things are crystallizing, you might summarize:
290
335
  **Open questions**: [if any remain]
291
336
 
292
337
  **Next steps** (if ready):
293
- - Create a change proposal
338
+ - Turn this into a change: `openspec-propose`
294
339
  - Keep exploring: just keep talking
295
340
  ```
296
341
 
@@ -300,11 +345,11 @@ But this summary is optional. Sometimes the thinking IS the value.
300
345
 
301
346
  ## Guardrails
302
347
 
303
- - **Don't implement** - Never write code or implement features. Workflow configuration counts too: creating or editing schemas, templates, or `openspec/config.yaml` is a change, not thinking. Creating or updating OpenSpec change artifacts within the confirmed scope is fine, writing anything else is not.
348
+ - **Don't implement** - Never write code or implement features. Workflow configuration counts too: creating or editing schemas, templates, or `openspec/config.yaml` is a change, not thinking. Creating or updating OpenSpec change artifacts within the confirmed scope is fine, writing anything else is not. When the user is ready to build, name the handoff rather than starting: `openspec-propose` turns the discussion into a change, and the work happens there.
304
349
  - **Don't fake understanding** - If something is unclear, dig deeper
305
350
  - **Don't rush** - Discovery is thinking time, not task time
306
351
  - **Don't force structure** - Let patterns emerge naturally
307
- - **Don't auto-capture** - Offer to save insights, don't just do it. Read-only commands and tools need no confirmation. Before the first write-capable action—including `openspec new change` or another command that writes files—name the artifacts or files and proposed changes, ask a direct yes/no question, and wait for explicit confirmation in a separate user message. That confirmation covers only the described scope; ask again before expanding it. Answers to design or clarifying questions are never consent to write.
352
+ - **Don't auto-capture** - Offer to save insights, don't just do it. Read-only commands and tools need no confirmation. Before the first write-capable action—including `openspec new change` or another command that writes files—name the artifacts or files and proposed changes, ask a direct yes/no question, and wait for explicit confirmation in a separate user message. That confirmation covers only the described scope; ask again before expanding it. Answers to design or clarifying questions are never consent to write. That rule governs `openspec new change` whenever you are the one proposing the capture; the user's own capture request is the exception, handled in the capture transition above.
308
353
  - **Don't manually scaffold changes** - Never create a new change directory under `openspec/changes/` by hand. Always use `openspec new change "<name>"` (with `--store <id>` when applicable) so required metadata such as `.openspec.yaml` is created before writing artifacts.
309
354
  - **Do visualize** - A good diagram is worth many paragraphs
310
355
  - **Do explore the codebase** - Ground discussions in reality