openspecui 0.0.0 → 0.1.0

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 (323) hide show
  1. package/dist/cli.mjs +91 -0
  2. package/dist/index.mjs +3 -0
  3. package/dist/open-CmiqsyCQ.mjs +473 -0
  4. package/dist/src-CNuprcB-.mjs +13604 -0
  5. package/package.json +35 -7
  6. package/web/assets/index-BhzIZ_eQ.js +150 -0
  7. package/web/assets/index-D6x5Q1lW.css +1 -0
  8. package/web/dist/assets/index-BhzIZ_eQ.js +150 -0
  9. package/web/dist/assets/index-CqKOZnDE.css +1 -0
  10. package/web/dist/assets/index-D6x5Q1lW.css +1 -0
  11. package/web/dist/assets/index-Om_P2_SF.js +155 -0
  12. package/web/dist/index.html +14 -0
  13. package/web/index.html +14 -0
  14. package/.gitmodules +0 -3
  15. package/CHAT.md +0 -3
  16. package/references/openspec/.changeset/README.md +0 -6
  17. package/references/openspec/.changeset/config.json +0 -12
  18. package/references/openspec/.coderabbit.yaml +0 -11
  19. package/references/openspec/.devcontainer/README.md +0 -92
  20. package/references/openspec/.devcontainer/devcontainer.json +0 -68
  21. package/references/openspec/.github/CODEOWNERS +0 -2
  22. package/references/openspec/.github/workflows/ci.yml +0 -222
  23. package/references/openspec/.github/workflows/release-prepare.yml +0 -50
  24. package/references/openspec/AGENTS.md +0 -18
  25. package/references/openspec/CHANGELOG.md +0 -205
  26. package/references/openspec/LICENSE +0 -22
  27. package/references/openspec/README.md +0 -374
  28. package/references/openspec/assets/openspec_dashboard.png +0 -0
  29. package/references/openspec/assets/openspec_pixel_dark.svg +0 -89
  30. package/references/openspec/assets/openspec_pixel_light.svg +0 -89
  31. package/references/openspec/bin/openspec.js +0 -3
  32. package/references/openspec/build.js +0 -31
  33. package/references/openspec/openspec/AGENTS.md +0 -454
  34. package/references/openspec/openspec/changes/IMPLEMENTATION_ORDER.md +0 -68
  35. package/references/openspec/openspec/changes/add-antigravity-support/proposal.md +0 -11
  36. package/references/openspec/openspec/changes/add-antigravity-support/specs/cli-init/spec.md +0 -9
  37. package/references/openspec/openspec/changes/add-antigravity-support/specs/cli-update/spec.md +0 -8
  38. package/references/openspec/openspec/changes/add-antigravity-support/tasks.md +0 -12
  39. package/references/openspec/openspec/changes/add-scaffold-command/proposal.md +0 -11
  40. package/references/openspec/openspec/changes/add-scaffold-command/specs/cli-scaffold/spec.md +0 -36
  41. package/references/openspec/openspec/changes/add-scaffold-command/tasks.md +0 -12
  42. package/references/openspec/openspec/changes/archive/2025-01-11-add-update-command/design.md +0 -86
  43. package/references/openspec/openspec/changes/archive/2025-01-11-add-update-command/proposal.md +0 -29
  44. package/references/openspec/openspec/changes/archive/2025-01-11-add-update-command/specs/cli-update/spec.md +0 -59
  45. package/references/openspec/openspec/changes/archive/2025-01-11-add-update-command/tasks.md +0 -20
  46. package/references/openspec/openspec/changes/archive/2025-01-13-add-list-command/proposal.md +0 -20
  47. package/references/openspec/openspec/changes/archive/2025-01-13-add-list-command/specs/cli-list/spec.md +0 -69
  48. package/references/openspec/openspec/changes/archive/2025-01-13-add-list-command/tasks.md +0 -26
  49. package/references/openspec/openspec/changes/archive/2025-08-05-initialize-typescript-project/design.md +0 -64
  50. package/references/openspec/openspec/changes/archive/2025-08-05-initialize-typescript-project/proposal.md +0 -18
  51. package/references/openspec/openspec/changes/archive/2025-08-05-initialize-typescript-project/tasks.md +0 -25
  52. package/references/openspec/openspec/changes/archive/2025-08-06-add-init-command/design.md +0 -104
  53. package/references/openspec/openspec/changes/archive/2025-08-06-add-init-command/proposal.md +0 -30
  54. package/references/openspec/openspec/changes/archive/2025-08-06-add-init-command/specs/cli-init/spec.md +0 -148
  55. package/references/openspec/openspec/changes/archive/2025-08-06-add-init-command/tasks.md +0 -38
  56. package/references/openspec/openspec/changes/archive/2025-08-06-adopt-future-state-storage/proposal.md +0 -24
  57. package/references/openspec/openspec/changes/archive/2025-08-06-adopt-future-state-storage/specs/openspec-conventions/spec.md +0 -120
  58. package/references/openspec/openspec/changes/archive/2025-08-06-adopt-future-state-storage/tasks.md +0 -38
  59. package/references/openspec/openspec/changes/archive/2025-08-11-add-complexity-guidelines/proposal.md +0 -13
  60. package/references/openspec/openspec/changes/archive/2025-08-11-add-complexity-guidelines/specs/openspec-docs/README.md +0 -472
  61. package/references/openspec/openspec/changes/archive/2025-08-11-add-complexity-guidelines/tasks.md +0 -9
  62. package/references/openspec/openspec/changes/archive/2025-08-13-add-archive-command/proposal.md +0 -15
  63. package/references/openspec/openspec/changes/archive/2025-08-13-add-archive-command/specs/cli-archive/spec.md +0 -111
  64. package/references/openspec/openspec/changes/archive/2025-08-13-add-archive-command/tasks.md +0 -44
  65. package/references/openspec/openspec/changes/archive/2025-08-13-add-diff-command/proposal.md +0 -19
  66. package/references/openspec/openspec/changes/archive/2025-08-13-add-diff-command/specs/cli-diff/spec.md +0 -77
  67. package/references/openspec/openspec/changes/archive/2025-08-13-add-diff-command/tasks.md +0 -23
  68. package/references/openspec/openspec/changes/archive/2025-08-19-add-change-commands/design.md +0 -56
  69. package/references/openspec/openspec/changes/archive/2025-08-19-add-change-commands/proposal.md +0 -17
  70. package/references/openspec/openspec/changes/archive/2025-08-19-add-change-commands/specs/cli-change/spec.md +0 -48
  71. package/references/openspec/openspec/changes/archive/2025-08-19-add-change-commands/specs/cli-list/spec.md +0 -12
  72. package/references/openspec/openspec/changes/archive/2025-08-19-add-change-commands/tasks.md +0 -34
  73. package/references/openspec/openspec/changes/archive/2025-08-19-add-interactive-show-command/proposal.md +0 -20
  74. package/references/openspec/openspec/changes/archive/2025-08-19-add-interactive-show-command/specs/cli-change/spec.md +0 -23
  75. package/references/openspec/openspec/changes/archive/2025-08-19-add-interactive-show-command/specs/cli-show/spec.md +0 -83
  76. package/references/openspec/openspec/changes/archive/2025-08-19-add-interactive-show-command/specs/cli-spec/spec.md +0 -23
  77. package/references/openspec/openspec/changes/archive/2025-08-19-add-interactive-show-command/tasks.md +0 -142
  78. package/references/openspec/openspec/changes/archive/2025-08-19-add-skip-specs-archive-option/proposal.md +0 -13
  79. package/references/openspec/openspec/changes/archive/2025-08-19-add-skip-specs-archive-option/specs/cli-archive/spec.md +0 -191
  80. package/references/openspec/openspec/changes/archive/2025-08-19-add-skip-specs-archive-option/tasks.md +0 -57
  81. package/references/openspec/openspec/changes/archive/2025-08-19-add-spec-commands/design.md +0 -45
  82. package/references/openspec/openspec/changes/archive/2025-08-19-add-spec-commands/proposal.md +0 -19
  83. package/references/openspec/openspec/changes/archive/2025-08-19-add-spec-commands/specs/cli-spec/spec.md +0 -43
  84. package/references/openspec/openspec/changes/archive/2025-08-19-add-spec-commands/tasks.md +0 -22
  85. package/references/openspec/openspec/changes/archive/2025-08-19-add-zod-validation/design.md +0 -104
  86. package/references/openspec/openspec/changes/archive/2025-08-19-add-zod-validation/proposal.md +0 -22
  87. package/references/openspec/openspec/changes/archive/2025-08-19-add-zod-validation/specs/cli-archive/spec.md +0 -18
  88. package/references/openspec/openspec/changes/archive/2025-08-19-add-zod-validation/specs/cli-diff/spec.md +0 -12
  89. package/references/openspec/openspec/changes/archive/2025-08-19-add-zod-validation/tasks.md +0 -59
  90. package/references/openspec/openspec/changes/archive/2025-08-19-adopt-delta-based-changes/proposal.md +0 -93
  91. package/references/openspec/openspec/changes/archive/2025-08-19-adopt-delta-based-changes/specs/cli-archive/spec.md +0 -48
  92. package/references/openspec/openspec/changes/archive/2025-08-19-adopt-delta-based-changes/specs/cli-diff/spec.md +0 -45
  93. package/references/openspec/openspec/changes/archive/2025-08-19-adopt-delta-based-changes/specs/openspec-conventions/spec.md +0 -101
  94. package/references/openspec/openspec/changes/archive/2025-08-19-adopt-delta-based-changes/tasks.md +0 -55
  95. package/references/openspec/openspec/changes/archive/2025-08-19-adopt-verb-noun-cli-structure/design.md +0 -19
  96. package/references/openspec/openspec/changes/archive/2025-08-19-adopt-verb-noun-cli-structure/proposal.md +0 -67
  97. package/references/openspec/openspec/changes/archive/2025-08-19-adopt-verb-noun-cli-structure/specs/cli-list/spec.md +0 -57
  98. package/references/openspec/openspec/changes/archive/2025-08-19-adopt-verb-noun-cli-structure/specs/openspec-conventions/spec.md +0 -23
  99. package/references/openspec/openspec/changes/archive/2025-08-19-adopt-verb-noun-cli-structure/tasks.md +0 -27
  100. package/references/openspec/openspec/changes/archive/2025-08-19-bulk-validation-interactive-selection/proposal.md +0 -20
  101. package/references/openspec/openspec/changes/archive/2025-08-19-bulk-validation-interactive-selection/specs/cli-change/spec.md +0 -22
  102. package/references/openspec/openspec/changes/archive/2025-08-19-bulk-validation-interactive-selection/specs/cli-spec/spec.md +0 -23
  103. package/references/openspec/openspec/changes/archive/2025-08-19-bulk-validation-interactive-selection/specs/cli-validate/spec.md +0 -149
  104. package/references/openspec/openspec/changes/archive/2025-08-19-bulk-validation-interactive-selection/tasks.md +0 -81
  105. package/references/openspec/openspec/changes/archive/2025-08-19-fix-update-tool-selection/proposal.md +0 -40
  106. package/references/openspec/openspec/changes/archive/2025-08-19-fix-update-tool-selection/specs/cli-update/spec.md +0 -23
  107. package/references/openspec/openspec/changes/archive/2025-08-19-fix-update-tool-selection/tasks.md +0 -21
  108. package/references/openspec/openspec/changes/archive/2025-08-19-improve-validate-error-messages/proposal.md +0 -25
  109. package/references/openspec/openspec/changes/archive/2025-08-19-improve-validate-error-messages/specs/cli-validate/spec.md +0 -55
  110. package/references/openspec/openspec/changes/archive/2025-08-19-improve-validate-error-messages/tasks.md +0 -21
  111. package/references/openspec/openspec/changes/archive/2025-08-19-structured-spec-format/proposal.md +0 -36
  112. package/references/openspec/openspec/changes/archive/2025-08-19-structured-spec-format/specs/openspec-conventions/spec.md +0 -192
  113. package/references/openspec/openspec/changes/archive/2025-08-19-structured-spec-format/tasks.md +0 -19
  114. package/references/openspec/openspec/changes/archive/2025-09-12-add-view-dashboard-command/proposal.md +0 -38
  115. package/references/openspec/openspec/changes/archive/2025-09-12-add-view-dashboard-command/specs/cli-view/spec.md +0 -109
  116. package/references/openspec/openspec/changes/archive/2025-09-12-add-view-dashboard-command/tasks.md +0 -47
  117. package/references/openspec/openspec/changes/archive/2025-09-29-add-agents-md-config/proposal.md +0 -28
  118. package/references/openspec/openspec/changes/archive/2025-09-29-add-agents-md-config/specs/cli-init/spec.md +0 -71
  119. package/references/openspec/openspec/changes/archive/2025-09-29-add-agents-md-config/specs/cli-update/spec.md +0 -41
  120. package/references/openspec/openspec/changes/archive/2025-09-29-add-agents-md-config/tasks.md +0 -17
  121. package/references/openspec/openspec/changes/archive/2025-09-29-add-multi-agent-init/proposal.md +0 -35
  122. package/references/openspec/openspec/changes/archive/2025-09-29-add-multi-agent-init/specs/cli-init/spec.md +0 -45
  123. package/references/openspec/openspec/changes/archive/2025-09-29-add-multi-agent-init/tasks.md +0 -16
  124. package/references/openspec/openspec/changes/archive/2025-09-29-add-slash-command-support/proposal.md +0 -119
  125. package/references/openspec/openspec/changes/archive/2025-09-29-add-slash-command-support/specs/cli-init/spec.md +0 -21
  126. package/references/openspec/openspec/changes/archive/2025-09-29-add-slash-command-support/specs/cli-update/spec.md +0 -22
  127. package/references/openspec/openspec/changes/archive/2025-09-29-add-slash-command-support/tasks.md +0 -20
  128. package/references/openspec/openspec/changes/archive/2025-09-29-improve-cli-e2e-plan/proposal.md +0 -19
  129. package/references/openspec/openspec/changes/archive/2025-09-29-improve-cli-e2e-plan/tasks.md +0 -9
  130. package/references/openspec/openspec/changes/archive/2025-09-29-improve-deterministic-tests/proposal.md +0 -78
  131. package/references/openspec/openspec/changes/archive/2025-09-29-improve-deterministic-tests/tasks.md +0 -25
  132. package/references/openspec/openspec/changes/archive/2025-09-29-improve-init-onboarding/proposal.md +0 -13
  133. package/references/openspec/openspec/changes/archive/2025-09-29-improve-init-onboarding/specs/cli-init/spec.md +0 -92
  134. package/references/openspec/openspec/changes/archive/2025-09-29-improve-init-onboarding/tasks.md +0 -12
  135. package/references/openspec/openspec/changes/archive/2025-09-29-remove-diff-command/proposal.md +0 -81
  136. package/references/openspec/openspec/changes/archive/2025-09-29-remove-diff-command/tasks.md +0 -37
  137. package/references/openspec/openspec/changes/archive/2025-09-29-sort-active-changes-by-progress/proposal.md +0 -25
  138. package/references/openspec/openspec/changes/archive/2025-09-29-sort-active-changes-by-progress/specs/cli-view/spec.md +0 -9
  139. package/references/openspec/openspec/changes/archive/2025-09-29-sort-active-changes-by-progress/tasks.md +0 -8
  140. package/references/openspec/openspec/changes/archive/2025-09-29-update-agent-file-name/proposal.md +0 -29
  141. package/references/openspec/openspec/changes/archive/2025-09-29-update-agent-file-name/specs/cli-init/spec.md +0 -40
  142. package/references/openspec/openspec/changes/archive/2025-09-29-update-agent-file-name/specs/cli-update/spec.md +0 -22
  143. package/references/openspec/openspec/changes/archive/2025-09-29-update-agent-file-name/specs/openspec-conventions/spec.md +0 -27
  144. package/references/openspec/openspec/changes/archive/2025-09-29-update-agent-file-name/tasks.md +0 -22
  145. package/references/openspec/openspec/changes/archive/2025-09-29-update-agent-instructions/design.md +0 -130
  146. package/references/openspec/openspec/changes/archive/2025-09-29-update-agent-instructions/proposal.md +0 -117
  147. package/references/openspec/openspec/changes/archive/2025-09-29-update-agent-instructions/tasks.md +0 -69
  148. package/references/openspec/openspec/changes/archive/2025-09-29-update-markdown-parser-crlf/proposal.md +0 -19
  149. package/references/openspec/openspec/changes/archive/2025-09-29-update-markdown-parser-crlf/specs/cli-validate/spec.md +0 -9
  150. package/references/openspec/openspec/changes/archive/2025-09-29-update-markdown-parser-crlf/tasks.md +0 -11
  151. package/references/openspec/openspec/changes/archive/2025-10-14-add-codex-slash-command-support/proposal.md +0 -25
  152. package/references/openspec/openspec/changes/archive/2025-10-14-add-codex-slash-command-support/specs/cli-init/spec.md +0 -56
  153. package/references/openspec/openspec/changes/archive/2025-10-14-add-codex-slash-command-support/specs/cli-update/spec.md +0 -41
  154. package/references/openspec/openspec/changes/archive/2025-10-14-add-codex-slash-command-support/tasks.md +0 -19
  155. package/references/openspec/openspec/changes/archive/2025-10-14-add-github-copilot-prompts/proposal.md +0 -25
  156. package/references/openspec/openspec/changes/archive/2025-10-14-add-github-copilot-prompts/specs/cli-init/spec.md +0 -48
  157. package/references/openspec/openspec/changes/archive/2025-10-14-add-github-copilot-prompts/specs/cli-update/spec.md +0 -48
  158. package/references/openspec/openspec/changes/archive/2025-10-14-add-github-copilot-prompts/tasks.md +0 -30
  159. package/references/openspec/openspec/changes/archive/2025-10-14-add-kilocode-workflows/proposal.md +0 -17
  160. package/references/openspec/openspec/changes/archive/2025-10-14-add-kilocode-workflows/specs/cli-init/spec.md +0 -43
  161. package/references/openspec/openspec/changes/archive/2025-10-14-add-kilocode-workflows/specs/cli-update/spec.md +0 -27
  162. package/references/openspec/openspec/changes/archive/2025-10-14-add-kilocode-workflows/tasks.md +0 -15
  163. package/references/openspec/openspec/changes/archive/2025-10-14-add-non-interactive-init-options/proposal.md +0 -12
  164. package/references/openspec/openspec/changes/archive/2025-10-14-add-non-interactive-init-options/specs/cli-init/spec.md +0 -39
  165. package/references/openspec/openspec/changes/archive/2025-10-14-add-non-interactive-init-options/tasks.md +0 -17
  166. package/references/openspec/openspec/changes/archive/2025-10-14-add-windsurf-workflows/proposal.md +0 -17
  167. package/references/openspec/openspec/changes/archive/2025-10-14-add-windsurf-workflows/specs/cli-init/spec.md +0 -42
  168. package/references/openspec/openspec/changes/archive/2025-10-14-add-windsurf-workflows/specs/cli-update/spec.md +0 -27
  169. package/references/openspec/openspec/changes/archive/2025-10-14-add-windsurf-workflows/tasks.md +0 -17
  170. package/references/openspec/openspec/changes/archive/2025-10-14-enhance-validation-error-messages/proposal.md +0 -12
  171. package/references/openspec/openspec/changes/archive/2025-10-14-enhance-validation-error-messages/specs/cli-validate/spec.md +0 -39
  172. package/references/openspec/openspec/changes/archive/2025-10-14-enhance-validation-error-messages/tasks.md +0 -12
  173. package/references/openspec/openspec/changes/archive/2025-10-14-improve-agent-instruction-usability/proposal.md +0 -12
  174. package/references/openspec/openspec/changes/archive/2025-10-14-improve-agent-instruction-usability/specs/docs-agent-instructions/spec.md +0 -33
  175. package/references/openspec/openspec/changes/archive/2025-10-14-improve-agent-instruction-usability/tasks.md +0 -11
  176. package/references/openspec/openspec/changes/archive/2025-10-14-slim-root-agents-file/proposal.md +0 -13
  177. package/references/openspec/openspec/changes/archive/2025-10-14-slim-root-agents-file/tasks.md +0 -15
  178. package/references/openspec/openspec/changes/archive/2025-10-14-update-cli-init-enter-selection/proposal.md +0 -14
  179. package/references/openspec/openspec/changes/archive/2025-10-14-update-cli-init-enter-selection/specs/cli-init/spec.md +0 -10
  180. package/references/openspec/openspec/changes/archive/2025-10-14-update-cli-init-enter-selection/tasks.md +0 -8
  181. package/references/openspec/openspec/changes/archive/2025-10-14-update-cli-init-root-agents/proposal.md +0 -15
  182. package/references/openspec/openspec/changes/archive/2025-10-14-update-cli-init-root-agents/specs/cli-init/spec.md +0 -32
  183. package/references/openspec/openspec/changes/archive/2025-10-14-update-cli-init-root-agents/specs/cli-update/spec.md +0 -10
  184. package/references/openspec/openspec/changes/archive/2025-10-14-update-cli-init-root-agents/tasks.md +0 -11
  185. package/references/openspec/openspec/changes/archive/2025-10-14-update-release-automation/proposal.md +0 -49
  186. package/references/openspec/openspec/changes/archive/2025-10-14-update-release-automation/tasks.md +0 -12
  187. package/references/openspec/openspec/changes/archive/2025-10-22-add-archive-command-arguments/proposal.md +0 -17
  188. package/references/openspec/openspec/changes/archive/2025-10-22-add-archive-command-arguments/specs/cli-update/spec.md +0 -32
  189. package/references/openspec/openspec/changes/archive/2025-10-22-add-archive-command-arguments/tasks.md +0 -15
  190. package/references/openspec/openspec/changes/archive/2025-10-22-add-cline-support/proposal.md +0 -15
  191. package/references/openspec/openspec/changes/archive/2025-10-22-add-cline-support/specs/cli-init/spec.md +0 -97
  192. package/references/openspec/openspec/changes/archive/2025-10-22-add-cline-support/tasks.md +0 -19
  193. package/references/openspec/openspec/changes/archive/2025-10-22-add-crush-support/proposal.md +0 -13
  194. package/references/openspec/openspec/changes/archive/2025-10-22-add-crush-support/specs/cli-init/spec.md +0 -67
  195. package/references/openspec/openspec/changes/archive/2025-10-22-add-crush-support/tasks.md +0 -7
  196. package/references/openspec/openspec/changes/archive/2025-10-22-add-factory-slash-commands/proposal.md +0 -12
  197. package/references/openspec/openspec/changes/archive/2025-10-22-add-factory-slash-commands/specs/cli-init/spec.md +0 -54
  198. package/references/openspec/openspec/changes/archive/2025-10-22-add-factory-slash-commands/specs/cli-update/spec.md +0 -54
  199. package/references/openspec/openspec/changes/archive/2025-10-22-add-factory-slash-commands/tasks.md +0 -11
  200. package/references/openspec/openspec/changes/fix-cline-workflows-implementation/proposal.md +0 -13
  201. package/references/openspec/openspec/changes/fix-cline-workflows-implementation/specs/cli-init/spec.md +0 -11
  202. package/references/openspec/openspec/changes/fix-cline-workflows-implementation/tasks.md +0 -13
  203. package/references/openspec/openspec/changes/make-validation-scope-aware/proposal.md +0 -12
  204. package/references/openspec/openspec/changes/make-validation-scope-aware/specs/cli-validate/spec.md +0 -25
  205. package/references/openspec/openspec/changes/make-validation-scope-aware/tasks.md +0 -16
  206. package/references/openspec/openspec/project.md +0 -53
  207. package/references/openspec/openspec/specs/cli-archive/spec.md +0 -210
  208. package/references/openspec/openspec/specs/cli-change/spec.md +0 -91
  209. package/references/openspec/openspec/specs/cli-init/spec.md +0 -311
  210. package/references/openspec/openspec/specs/cli-list/spec.md +0 -103
  211. package/references/openspec/openspec/specs/cli-show/spec.md +0 -85
  212. package/references/openspec/openspec/specs/cli-spec/spec.md +0 -87
  213. package/references/openspec/openspec/specs/cli-update/spec.md +0 -190
  214. package/references/openspec/openspec/specs/cli-validate/spec.md +0 -218
  215. package/references/openspec/openspec/specs/cli-view/spec.md +0 -105
  216. package/references/openspec/openspec/specs/docs-agent-instructions/spec.md +0 -38
  217. package/references/openspec/openspec/specs/openspec-conventions/spec.md +0 -474
  218. package/references/openspec/openspec-parallel-merge-plan.md +0 -98
  219. package/references/openspec/package.json +0 -73
  220. package/references/openspec/pnpm-lock.yaml +0 -2324
  221. package/references/openspec/scripts/pack-version-check.mjs +0 -111
  222. package/references/openspec/src/cli/index.ts +0 -253
  223. package/references/openspec/src/commands/change.ts +0 -291
  224. package/references/openspec/src/commands/show.ts +0 -139
  225. package/references/openspec/src/commands/spec.ts +0 -250
  226. package/references/openspec/src/commands/validate.ts +0 -305
  227. package/references/openspec/src/core/archive.ts +0 -606
  228. package/references/openspec/src/core/config.ts +0 -41
  229. package/references/openspec/src/core/configurators/agents.ts +0 -23
  230. package/references/openspec/src/core/configurators/base.ts +0 -6
  231. package/references/openspec/src/core/configurators/claude.ts +0 -23
  232. package/references/openspec/src/core/configurators/cline.ts +0 -23
  233. package/references/openspec/src/core/configurators/codebuddy.ts +0 -24
  234. package/references/openspec/src/core/configurators/costrict.ts +0 -23
  235. package/references/openspec/src/core/configurators/iflow.ts +0 -23
  236. package/references/openspec/src/core/configurators/qoder.ts +0 -53
  237. package/references/openspec/src/core/configurators/qwen.ts +0 -47
  238. package/references/openspec/src/core/configurators/registry.ts +0 -49
  239. package/references/openspec/src/core/configurators/slash/amazon-q.ts +0 -51
  240. package/references/openspec/src/core/configurators/slash/antigravity.ts +0 -28
  241. package/references/openspec/src/core/configurators/slash/auggie.ts +0 -37
  242. package/references/openspec/src/core/configurators/slash/base.ts +0 -95
  243. package/references/openspec/src/core/configurators/slash/claude.ts +0 -42
  244. package/references/openspec/src/core/configurators/slash/cline.ts +0 -27
  245. package/references/openspec/src/core/configurators/slash/codebuddy.ts +0 -43
  246. package/references/openspec/src/core/configurators/slash/codex.ts +0 -126
  247. package/references/openspec/src/core/configurators/slash/costrict.ts +0 -36
  248. package/references/openspec/src/core/configurators/slash/crush.ts +0 -42
  249. package/references/openspec/src/core/configurators/slash/cursor.ts +0 -42
  250. package/references/openspec/src/core/configurators/slash/factory.ts +0 -41
  251. package/references/openspec/src/core/configurators/slash/gemini.ts +0 -27
  252. package/references/openspec/src/core/configurators/slash/github-copilot.ts +0 -39
  253. package/references/openspec/src/core/configurators/slash/iflow.ts +0 -42
  254. package/references/openspec/src/core/configurators/slash/kilocode.ts +0 -21
  255. package/references/openspec/src/core/configurators/slash/opencode.ts +0 -83
  256. package/references/openspec/src/core/configurators/slash/qoder.ts +0 -84
  257. package/references/openspec/src/core/configurators/slash/qwen.ts +0 -55
  258. package/references/openspec/src/core/configurators/slash/registry.ts +0 -81
  259. package/references/openspec/src/core/configurators/slash/roocode.ts +0 -27
  260. package/references/openspec/src/core/configurators/slash/toml-base.ts +0 -66
  261. package/references/openspec/src/core/configurators/slash/windsurf.ts +0 -27
  262. package/references/openspec/src/core/converters/json-converter.ts +0 -61
  263. package/references/openspec/src/core/index.ts +0 -2
  264. package/references/openspec/src/core/init.ts +0 -986
  265. package/references/openspec/src/core/list.ts +0 -104
  266. package/references/openspec/src/core/parsers/change-parser.ts +0 -234
  267. package/references/openspec/src/core/parsers/markdown-parser.ts +0 -237
  268. package/references/openspec/src/core/parsers/requirement-blocks.ts +0 -234
  269. package/references/openspec/src/core/schemas/base.schema.ts +0 -20
  270. package/references/openspec/src/core/schemas/change.schema.ts +0 -42
  271. package/references/openspec/src/core/schemas/index.ts +0 -20
  272. package/references/openspec/src/core/schemas/spec.schema.ts +0 -17
  273. package/references/openspec/src/core/styles/palette.ts +0 -8
  274. package/references/openspec/src/core/templates/agents-root-stub.ts +0 -16
  275. package/references/openspec/src/core/templates/agents-template.ts +0 -457
  276. package/references/openspec/src/core/templates/claude-template.ts +0 -1
  277. package/references/openspec/src/core/templates/cline-template.ts +0 -1
  278. package/references/openspec/src/core/templates/costrict-template.ts +0 -1
  279. package/references/openspec/src/core/templates/index.ts +0 -50
  280. package/references/openspec/src/core/templates/project-template.ts +0 -38
  281. package/references/openspec/src/core/templates/slash-command-templates.ts +0 -60
  282. package/references/openspec/src/core/update.ts +0 -129
  283. package/references/openspec/src/core/validation/constants.ts +0 -48
  284. package/references/openspec/src/core/validation/types.ts +0 -19
  285. package/references/openspec/src/core/validation/validator.ts +0 -448
  286. package/references/openspec/src/core/view.ts +0 -189
  287. package/references/openspec/src/index.ts +0 -2
  288. package/references/openspec/src/utils/file-system.ts +0 -187
  289. package/references/openspec/src/utils/index.ts +0 -2
  290. package/references/openspec/src/utils/interactive.ts +0 -7
  291. package/references/openspec/src/utils/item-discovery.ts +0 -45
  292. package/references/openspec/src/utils/match.ts +0 -26
  293. package/references/openspec/src/utils/task-progress.ts +0 -43
  294. package/references/openspec/test/cli-e2e/basic.test.ts +0 -156
  295. package/references/openspec/test/commands/change.interactive-show.test.ts +0 -45
  296. package/references/openspec/test/commands/change.interactive-validate.test.ts +0 -48
  297. package/references/openspec/test/commands/show.test.ts +0 -123
  298. package/references/openspec/test/commands/spec.interactive-show.test.ts +0 -44
  299. package/references/openspec/test/commands/spec.interactive-validate.test.ts +0 -44
  300. package/references/openspec/test/commands/spec.test.ts +0 -324
  301. package/references/openspec/test/commands/validate.enriched-output.test.ts +0 -49
  302. package/references/openspec/test/commands/validate.test.ts +0 -133
  303. package/references/openspec/test/core/archive.test.ts +0 -680
  304. package/references/openspec/test/core/commands/change-command.list.test.ts +0 -76
  305. package/references/openspec/test/core/commands/change-command.show-validate.test.ts +0 -111
  306. package/references/openspec/test/core/converters/json-converter.test.ts +0 -184
  307. package/references/openspec/test/core/init.test.ts +0 -1710
  308. package/references/openspec/test/core/list.test.ts +0 -165
  309. package/references/openspec/test/core/parsers/change-parser.test.ts +0 -52
  310. package/references/openspec/test/core/parsers/markdown-parser.test.ts +0 -291
  311. package/references/openspec/test/core/update.test.ts +0 -1642
  312. package/references/openspec/test/core/validation.enriched-messages.test.ts +0 -74
  313. package/references/openspec/test/core/validation.test.ts +0 -489
  314. package/references/openspec/test/core/view.test.ts +0 -79
  315. package/references/openspec/test/fixtures/tmp-init/openspec/changes/c1/proposal.md +0 -7
  316. package/references/openspec/test/fixtures/tmp-init/openspec/changes/c1/specs/alpha/spec.md +0 -8
  317. package/references/openspec/test/fixtures/tmp-init/openspec/specs/alpha/spec.md +0 -12
  318. package/references/openspec/test/helpers/run-cli.ts +0 -139
  319. package/references/openspec/test/utils/file-system.test.ts +0 -211
  320. package/references/openspec/test/utils/marker-updates.test.ts +0 -287
  321. package/references/openspec/tsconfig.json +0 -21
  322. package/references/openspec/vitest.config.ts +0 -25
  323. package/references/openspec/vitest.setup.ts +0 -6
@@ -1,81 +0,0 @@
1
- import { SlashCommandConfigurator } from './base.js';
2
- import { ClaudeSlashCommandConfigurator } from './claude.js';
3
- import { CodeBuddySlashCommandConfigurator } from './codebuddy.js';
4
- import { QoderSlashCommandConfigurator } from './qoder.js';
5
- import { CursorSlashCommandConfigurator } from './cursor.js';
6
- import { WindsurfSlashCommandConfigurator } from './windsurf.js';
7
- import { KiloCodeSlashCommandConfigurator } from './kilocode.js';
8
- import { OpenCodeSlashCommandConfigurator } from './opencode.js';
9
- import { CodexSlashCommandConfigurator } from './codex.js';
10
- import { GitHubCopilotSlashCommandConfigurator } from './github-copilot.js';
11
- import { AmazonQSlashCommandConfigurator } from './amazon-q.js';
12
- import { FactorySlashCommandConfigurator } from './factory.js';
13
- import { GeminiSlashCommandConfigurator } from './gemini.js';
14
- import { AuggieSlashCommandConfigurator } from './auggie.js';
15
- import { ClineSlashCommandConfigurator } from './cline.js';
16
- import { CrushSlashCommandConfigurator } from './crush.js';
17
- import { CostrictSlashCommandConfigurator } from './costrict.js';
18
- import { QwenSlashCommandConfigurator } from './qwen.js';
19
- import { RooCodeSlashCommandConfigurator } from './roocode.js';
20
- import { AntigravitySlashCommandConfigurator } from './antigravity.js';
21
- import { IflowSlashCommandConfigurator } from './iflow.js';
22
-
23
- export class SlashCommandRegistry {
24
- private static configurators: Map<string, SlashCommandConfigurator> = new Map();
25
-
26
- static {
27
- const claude = new ClaudeSlashCommandConfigurator();
28
- const codeBuddy = new CodeBuddySlashCommandConfigurator();
29
- const qoder = new QoderSlashCommandConfigurator();
30
- const cursor = new CursorSlashCommandConfigurator();
31
- const windsurf = new WindsurfSlashCommandConfigurator();
32
- const kilocode = new KiloCodeSlashCommandConfigurator();
33
- const opencode = new OpenCodeSlashCommandConfigurator();
34
- const codex = new CodexSlashCommandConfigurator();
35
- const githubCopilot = new GitHubCopilotSlashCommandConfigurator();
36
- const amazonQ = new AmazonQSlashCommandConfigurator();
37
- const factory = new FactorySlashCommandConfigurator();
38
- const gemini = new GeminiSlashCommandConfigurator();
39
- const auggie = new AuggieSlashCommandConfigurator();
40
- const cline = new ClineSlashCommandConfigurator();
41
- const crush = new CrushSlashCommandConfigurator();
42
- const costrict = new CostrictSlashCommandConfigurator();
43
- const qwen = new QwenSlashCommandConfigurator();
44
- const roocode = new RooCodeSlashCommandConfigurator();
45
- const antigravity = new AntigravitySlashCommandConfigurator();
46
- const iflow = new IflowSlashCommandConfigurator();
47
-
48
- this.configurators.set(claude.toolId, claude);
49
- this.configurators.set(codeBuddy.toolId, codeBuddy);
50
- this.configurators.set(qoder.toolId, qoder);
51
- this.configurators.set(cursor.toolId, cursor);
52
- this.configurators.set(windsurf.toolId, windsurf);
53
- this.configurators.set(kilocode.toolId, kilocode);
54
- this.configurators.set(opencode.toolId, opencode);
55
- this.configurators.set(codex.toolId, codex);
56
- this.configurators.set(githubCopilot.toolId, githubCopilot);
57
- this.configurators.set(amazonQ.toolId, amazonQ);
58
- this.configurators.set(factory.toolId, factory);
59
- this.configurators.set(gemini.toolId, gemini);
60
- this.configurators.set(auggie.toolId, auggie);
61
- this.configurators.set(cline.toolId, cline);
62
- this.configurators.set(crush.toolId, crush);
63
- this.configurators.set(costrict.toolId, costrict);
64
- this.configurators.set(qwen.toolId, qwen);
65
- this.configurators.set(roocode.toolId, roocode);
66
- this.configurators.set(antigravity.toolId, antigravity);
67
- this.configurators.set(iflow.toolId, iflow);
68
- }
69
-
70
- static register(configurator: SlashCommandConfigurator): void {
71
- this.configurators.set(configurator.toolId, configurator);
72
- }
73
-
74
- static get(toolId: string): SlashCommandConfigurator | undefined {
75
- return this.configurators.get(toolId);
76
- }
77
-
78
- static getAll(): SlashCommandConfigurator[] {
79
- return Array.from(this.configurators.values());
80
- }
81
- }
@@ -1,27 +0,0 @@
1
- import { SlashCommandConfigurator } from './base.js';
2
- import { SlashCommandId } from '../../templates/index.js';
3
-
4
- const NEW_FILE_PATHS: Record<SlashCommandId, string> = {
5
- proposal: '.roo/commands/openspec-proposal.md',
6
- apply: '.roo/commands/openspec-apply.md',
7
- archive: '.roo/commands/openspec-archive.md'
8
- };
9
-
10
- export class RooCodeSlashCommandConfigurator extends SlashCommandConfigurator {
11
- readonly toolId = 'roocode';
12
- readonly isAvailable = true;
13
-
14
- protected getRelativePath(id: SlashCommandId): string {
15
- return NEW_FILE_PATHS[id];
16
- }
17
-
18
- protected getFrontmatter(id: SlashCommandId): string | undefined {
19
- const descriptions: Record<SlashCommandId, string> = {
20
- proposal: 'Scaffold a new OpenSpec change and validate strictly.',
21
- apply: 'Implement an approved OpenSpec change and keep tasks in sync.',
22
- archive: 'Archive a deployed OpenSpec change and update specs.'
23
- };
24
- const description = descriptions[id];
25
- return `# OpenSpec: ${id.charAt(0).toUpperCase() + id.slice(1)}\n\n${description}`;
26
- }
27
- }
@@ -1,66 +0,0 @@
1
- import { FileSystemUtils } from '../../../utils/file-system.js';
2
- import { SlashCommandConfigurator } from './base.js';
3
- import { SlashCommandId } from '../../templates/index.js';
4
- import { OPENSPEC_MARKERS } from '../../config.js';
5
-
6
- export abstract class TomlSlashCommandConfigurator extends SlashCommandConfigurator {
7
- protected getFrontmatter(_id: SlashCommandId): string | undefined {
8
- // TOML doesn't use separate frontmatter - it's all in one structure
9
- return undefined;
10
- }
11
-
12
- protected abstract getDescription(id: SlashCommandId): string;
13
-
14
- // Override to generate TOML format with markers inside the prompt field
15
- async generateAll(projectPath: string, _openspecDir: string): Promise<string[]> {
16
- const createdOrUpdated: string[] = [];
17
-
18
- for (const target of this.getTargets()) {
19
- const body = this.getBody(target.id);
20
- const filePath = FileSystemUtils.joinPath(projectPath, target.path);
21
-
22
- if (await FileSystemUtils.fileExists(filePath)) {
23
- await this.updateBody(filePath, body);
24
- } else {
25
- const tomlContent = this.generateTOML(target.id, body);
26
- await FileSystemUtils.writeFile(filePath, tomlContent);
27
- }
28
-
29
- createdOrUpdated.push(target.path);
30
- }
31
-
32
- return createdOrUpdated;
33
- }
34
-
35
- private generateTOML(id: SlashCommandId, body: string): string {
36
- const description = this.getDescription(id);
37
-
38
- // TOML format with triple-quoted string for multi-line prompt
39
- // Markers are inside the prompt value
40
- return `description = "${description}"
41
-
42
- prompt = """
43
- ${OPENSPEC_MARKERS.start}
44
- ${body}
45
- ${OPENSPEC_MARKERS.end}
46
- """
47
- `;
48
- }
49
-
50
- // Override updateBody to handle TOML format
51
- protected async updateBody(filePath: string, body: string): Promise<void> {
52
- const content = await FileSystemUtils.readFile(filePath);
53
- const startIndex = content.indexOf(OPENSPEC_MARKERS.start);
54
- const endIndex = content.indexOf(OPENSPEC_MARKERS.end);
55
-
56
- if (startIndex === -1 || endIndex === -1 || endIndex <= startIndex) {
57
- throw new Error(`Missing OpenSpec markers in ${filePath}`);
58
- }
59
-
60
- const before = content.slice(0, startIndex + OPENSPEC_MARKERS.start.length);
61
- const after = content.slice(endIndex);
62
- const updatedContent = `${before}\n${body}\n${after}`;
63
-
64
- await FileSystemUtils.writeFile(filePath, updatedContent);
65
- }
66
- }
@@ -1,27 +0,0 @@
1
- import { SlashCommandConfigurator } from './base.js';
2
- import { SlashCommandId } from '../../templates/index.js';
3
-
4
- const FILE_PATHS: Record<SlashCommandId, string> = {
5
- proposal: '.windsurf/workflows/openspec-proposal.md',
6
- apply: '.windsurf/workflows/openspec-apply.md',
7
- archive: '.windsurf/workflows/openspec-archive.md'
8
- };
9
-
10
- export class WindsurfSlashCommandConfigurator extends SlashCommandConfigurator {
11
- readonly toolId = 'windsurf';
12
- readonly isAvailable = true;
13
-
14
- protected getRelativePath(id: SlashCommandId): string {
15
- return FILE_PATHS[id];
16
- }
17
-
18
- protected getFrontmatter(id: SlashCommandId): string | undefined {
19
- const descriptions: Record<SlashCommandId, string> = {
20
- proposal: 'Scaffold a new OpenSpec change and validate strictly.',
21
- apply: 'Implement an approved OpenSpec change and keep tasks in sync.',
22
- archive: 'Archive a deployed OpenSpec change and update specs.'
23
- };
24
- const description = descriptions[id];
25
- return `---\ndescription: ${description}\nauto_execution_mode: 3\n---`;
26
- }
27
- }
@@ -1,61 +0,0 @@
1
- import { readFileSync } from 'fs';
2
- import path from 'path';
3
- import { MarkdownParser } from '../parsers/markdown-parser.js';
4
- import { ChangeParser } from '../parsers/change-parser.js';
5
- import { Spec, Change } from '../schemas/index.js';
6
-
7
- export class JsonConverter {
8
- convertSpecToJson(filePath: string): string {
9
- const content = readFileSync(filePath, 'utf-8');
10
- const parser = new MarkdownParser(content);
11
- const specName = this.extractNameFromPath(filePath);
12
-
13
- const spec = parser.parseSpec(specName);
14
-
15
- const jsonSpec = {
16
- ...spec,
17
- metadata: {
18
- ...spec.metadata,
19
- sourcePath: filePath,
20
- },
21
- };
22
-
23
- return JSON.stringify(jsonSpec, null, 2);
24
- }
25
-
26
- async convertChangeToJson(filePath: string): Promise<string> {
27
- const content = readFileSync(filePath, 'utf-8');
28
- const changeName = this.extractNameFromPath(filePath);
29
- const changeDir = path.dirname(filePath);
30
- const parser = new ChangeParser(content, changeDir);
31
-
32
- const change = await parser.parseChangeWithDeltas(changeName);
33
-
34
- const jsonChange = {
35
- ...change,
36
- metadata: {
37
- ...change.metadata,
38
- sourcePath: filePath,
39
- },
40
- };
41
-
42
- return JSON.stringify(jsonChange, null, 2);
43
- }
44
-
45
- private extractNameFromPath(filePath: string): string {
46
- const normalizedPath = filePath.replaceAll('\\', '/');
47
- const parts = normalizedPath.split('/');
48
-
49
- for (let i = parts.length - 1; i >= 0; i--) {
50
- if (parts[i] === 'specs' || parts[i] === 'changes') {
51
- if (i < parts.length - 1) {
52
- return parts[i + 1];
53
- }
54
- }
55
- }
56
-
57
- const fileName = parts[parts.length - 1] ?? '';
58
- const dotIndex = fileName.lastIndexOf('.');
59
- return dotIndex > 0 ? fileName.slice(0, dotIndex) : fileName;
60
- }
61
- }
@@ -1,2 +0,0 @@
1
- // Core OpenSpec logic will be implemented here
2
- export {};