openspecui 0.0.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.
- package/.gitmodules +3 -0
- package/CHAT.md +3 -0
- package/package.json +12 -0
- package/references/openspec/.changeset/README.md +6 -0
- package/references/openspec/.changeset/config.json +12 -0
- package/references/openspec/.coderabbit.yaml +11 -0
- package/references/openspec/.devcontainer/README.md +92 -0
- package/references/openspec/.devcontainer/devcontainer.json +68 -0
- package/references/openspec/.github/CODEOWNERS +2 -0
- package/references/openspec/.github/workflows/ci.yml +222 -0
- package/references/openspec/.github/workflows/release-prepare.yml +50 -0
- package/references/openspec/AGENTS.md +18 -0
- package/references/openspec/CHANGELOG.md +205 -0
- package/references/openspec/LICENSE +22 -0
- package/references/openspec/README.md +374 -0
- package/references/openspec/assets/openspec_dashboard.png +0 -0
- package/references/openspec/assets/openspec_pixel_dark.svg +89 -0
- package/references/openspec/assets/openspec_pixel_light.svg +89 -0
- package/references/openspec/bin/openspec.js +3 -0
- package/references/openspec/build.js +31 -0
- package/references/openspec/openspec/AGENTS.md +454 -0
- package/references/openspec/openspec/changes/IMPLEMENTATION_ORDER.md +68 -0
- package/references/openspec/openspec/changes/add-antigravity-support/proposal.md +11 -0
- package/references/openspec/openspec/changes/add-antigravity-support/specs/cli-init/spec.md +9 -0
- package/references/openspec/openspec/changes/add-antigravity-support/specs/cli-update/spec.md +8 -0
- package/references/openspec/openspec/changes/add-antigravity-support/tasks.md +12 -0
- package/references/openspec/openspec/changes/add-scaffold-command/proposal.md +11 -0
- package/references/openspec/openspec/changes/add-scaffold-command/specs/cli-scaffold/spec.md +36 -0
- package/references/openspec/openspec/changes/add-scaffold-command/tasks.md +12 -0
- package/references/openspec/openspec/changes/archive/2025-01-11-add-update-command/design.md +86 -0
- package/references/openspec/openspec/changes/archive/2025-01-11-add-update-command/proposal.md +29 -0
- package/references/openspec/openspec/changes/archive/2025-01-11-add-update-command/specs/cli-update/spec.md +59 -0
- package/references/openspec/openspec/changes/archive/2025-01-11-add-update-command/tasks.md +20 -0
- package/references/openspec/openspec/changes/archive/2025-01-13-add-list-command/proposal.md +20 -0
- package/references/openspec/openspec/changes/archive/2025-01-13-add-list-command/specs/cli-list/spec.md +69 -0
- package/references/openspec/openspec/changes/archive/2025-01-13-add-list-command/tasks.md +26 -0
- package/references/openspec/openspec/changes/archive/2025-08-05-initialize-typescript-project/design.md +64 -0
- package/references/openspec/openspec/changes/archive/2025-08-05-initialize-typescript-project/proposal.md +18 -0
- package/references/openspec/openspec/changes/archive/2025-08-05-initialize-typescript-project/tasks.md +25 -0
- package/references/openspec/openspec/changes/archive/2025-08-06-add-init-command/design.md +104 -0
- package/references/openspec/openspec/changes/archive/2025-08-06-add-init-command/proposal.md +30 -0
- package/references/openspec/openspec/changes/archive/2025-08-06-add-init-command/specs/cli-init/spec.md +148 -0
- package/references/openspec/openspec/changes/archive/2025-08-06-add-init-command/tasks.md +38 -0
- package/references/openspec/openspec/changes/archive/2025-08-06-adopt-future-state-storage/proposal.md +24 -0
- package/references/openspec/openspec/changes/archive/2025-08-06-adopt-future-state-storage/specs/openspec-conventions/spec.md +120 -0
- package/references/openspec/openspec/changes/archive/2025-08-06-adopt-future-state-storage/tasks.md +38 -0
- package/references/openspec/openspec/changes/archive/2025-08-11-add-complexity-guidelines/proposal.md +13 -0
- package/references/openspec/openspec/changes/archive/2025-08-11-add-complexity-guidelines/specs/openspec-docs/README.md +472 -0
- package/references/openspec/openspec/changes/archive/2025-08-11-add-complexity-guidelines/tasks.md +9 -0
- package/references/openspec/openspec/changes/archive/2025-08-13-add-archive-command/proposal.md +15 -0
- package/references/openspec/openspec/changes/archive/2025-08-13-add-archive-command/specs/cli-archive/spec.md +111 -0
- package/references/openspec/openspec/changes/archive/2025-08-13-add-archive-command/tasks.md +44 -0
- package/references/openspec/openspec/changes/archive/2025-08-13-add-diff-command/proposal.md +19 -0
- package/references/openspec/openspec/changes/archive/2025-08-13-add-diff-command/specs/cli-diff/spec.md +77 -0
- package/references/openspec/openspec/changes/archive/2025-08-13-add-diff-command/tasks.md +23 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-add-change-commands/design.md +56 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-add-change-commands/proposal.md +17 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-add-change-commands/specs/cli-change/spec.md +48 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-add-change-commands/specs/cli-list/spec.md +12 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-add-change-commands/tasks.md +34 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-add-interactive-show-command/proposal.md +20 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-add-interactive-show-command/specs/cli-change/spec.md +23 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-add-interactive-show-command/specs/cli-show/spec.md +83 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-add-interactive-show-command/specs/cli-spec/spec.md +23 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-add-interactive-show-command/tasks.md +142 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-add-skip-specs-archive-option/proposal.md +13 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-add-skip-specs-archive-option/specs/cli-archive/spec.md +191 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-add-skip-specs-archive-option/tasks.md +57 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-add-spec-commands/design.md +45 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-add-spec-commands/proposal.md +19 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-add-spec-commands/specs/cli-spec/spec.md +43 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-add-spec-commands/tasks.md +22 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-add-zod-validation/design.md +104 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-add-zod-validation/proposal.md +22 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-add-zod-validation/specs/cli-archive/spec.md +18 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-add-zod-validation/specs/cli-diff/spec.md +12 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-add-zod-validation/tasks.md +59 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-adopt-delta-based-changes/proposal.md +93 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-adopt-delta-based-changes/specs/cli-archive/spec.md +48 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-adopt-delta-based-changes/specs/cli-diff/spec.md +45 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-adopt-delta-based-changes/specs/openspec-conventions/spec.md +101 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-adopt-delta-based-changes/tasks.md +55 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-adopt-verb-noun-cli-structure/design.md +19 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-adopt-verb-noun-cli-structure/proposal.md +67 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-adopt-verb-noun-cli-structure/specs/cli-list/spec.md +57 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-adopt-verb-noun-cli-structure/specs/openspec-conventions/spec.md +23 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-adopt-verb-noun-cli-structure/tasks.md +27 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-bulk-validation-interactive-selection/proposal.md +20 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-bulk-validation-interactive-selection/specs/cli-change/spec.md +22 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-bulk-validation-interactive-selection/specs/cli-spec/spec.md +23 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-bulk-validation-interactive-selection/specs/cli-validate/spec.md +149 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-bulk-validation-interactive-selection/tasks.md +81 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-fix-update-tool-selection/proposal.md +40 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-fix-update-tool-selection/specs/cli-update/spec.md +23 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-fix-update-tool-selection/tasks.md +21 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-improve-validate-error-messages/proposal.md +25 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-improve-validate-error-messages/specs/cli-validate/spec.md +55 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-improve-validate-error-messages/tasks.md +21 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-structured-spec-format/proposal.md +36 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-structured-spec-format/specs/openspec-conventions/spec.md +192 -0
- package/references/openspec/openspec/changes/archive/2025-08-19-structured-spec-format/tasks.md +19 -0
- package/references/openspec/openspec/changes/archive/2025-09-12-add-view-dashboard-command/proposal.md +38 -0
- package/references/openspec/openspec/changes/archive/2025-09-12-add-view-dashboard-command/specs/cli-view/spec.md +109 -0
- package/references/openspec/openspec/changes/archive/2025-09-12-add-view-dashboard-command/tasks.md +47 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-add-agents-md-config/proposal.md +28 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-add-agents-md-config/specs/cli-init/spec.md +71 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-add-agents-md-config/specs/cli-update/spec.md +41 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-add-agents-md-config/tasks.md +17 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-add-multi-agent-init/proposal.md +35 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-add-multi-agent-init/specs/cli-init/spec.md +45 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-add-multi-agent-init/tasks.md +16 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-add-slash-command-support/proposal.md +119 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-add-slash-command-support/specs/cli-init/spec.md +21 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-add-slash-command-support/specs/cli-update/spec.md +22 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-add-slash-command-support/tasks.md +20 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-improve-cli-e2e-plan/proposal.md +19 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-improve-cli-e2e-plan/tasks.md +9 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-improve-deterministic-tests/proposal.md +78 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-improve-deterministic-tests/tasks.md +25 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-improve-init-onboarding/proposal.md +13 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-improve-init-onboarding/specs/cli-init/spec.md +92 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-improve-init-onboarding/tasks.md +12 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-remove-diff-command/proposal.md +81 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-remove-diff-command/tasks.md +37 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-sort-active-changes-by-progress/proposal.md +25 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-sort-active-changes-by-progress/specs/cli-view/spec.md +9 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-sort-active-changes-by-progress/tasks.md +8 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-update-agent-file-name/proposal.md +29 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-update-agent-file-name/specs/cli-init/spec.md +40 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-update-agent-file-name/specs/cli-update/spec.md +22 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-update-agent-file-name/specs/openspec-conventions/spec.md +27 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-update-agent-file-name/tasks.md +22 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-update-agent-instructions/design.md +130 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-update-agent-instructions/proposal.md +117 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-update-agent-instructions/tasks.md +69 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-update-markdown-parser-crlf/proposal.md +19 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-update-markdown-parser-crlf/specs/cli-validate/spec.md +9 -0
- package/references/openspec/openspec/changes/archive/2025-09-29-update-markdown-parser-crlf/tasks.md +11 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-add-codex-slash-command-support/proposal.md +25 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-add-codex-slash-command-support/specs/cli-init/spec.md +56 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-add-codex-slash-command-support/specs/cli-update/spec.md +41 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-add-codex-slash-command-support/tasks.md +19 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-add-github-copilot-prompts/proposal.md +25 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-add-github-copilot-prompts/specs/cli-init/spec.md +48 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-add-github-copilot-prompts/specs/cli-update/spec.md +48 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-add-github-copilot-prompts/tasks.md +30 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-add-kilocode-workflows/proposal.md +17 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-add-kilocode-workflows/specs/cli-init/spec.md +43 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-add-kilocode-workflows/specs/cli-update/spec.md +27 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-add-kilocode-workflows/tasks.md +15 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-add-non-interactive-init-options/proposal.md +12 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-add-non-interactive-init-options/specs/cli-init/spec.md +39 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-add-non-interactive-init-options/tasks.md +17 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-add-windsurf-workflows/proposal.md +17 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-add-windsurf-workflows/specs/cli-init/spec.md +42 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-add-windsurf-workflows/specs/cli-update/spec.md +27 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-add-windsurf-workflows/tasks.md +17 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-enhance-validation-error-messages/proposal.md +12 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-enhance-validation-error-messages/specs/cli-validate/spec.md +39 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-enhance-validation-error-messages/tasks.md +12 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-improve-agent-instruction-usability/proposal.md +12 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-improve-agent-instruction-usability/specs/docs-agent-instructions/spec.md +33 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-improve-agent-instruction-usability/tasks.md +11 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-slim-root-agents-file/proposal.md +13 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-slim-root-agents-file/tasks.md +15 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-update-cli-init-enter-selection/proposal.md +14 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-update-cli-init-enter-selection/specs/cli-init/spec.md +10 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-update-cli-init-enter-selection/tasks.md +8 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-update-cli-init-root-agents/proposal.md +15 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-update-cli-init-root-agents/specs/cli-init/spec.md +32 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-update-cli-init-root-agents/specs/cli-update/spec.md +10 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-update-cli-init-root-agents/tasks.md +11 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-update-release-automation/proposal.md +49 -0
- package/references/openspec/openspec/changes/archive/2025-10-14-update-release-automation/tasks.md +12 -0
- package/references/openspec/openspec/changes/archive/2025-10-22-add-archive-command-arguments/proposal.md +17 -0
- package/references/openspec/openspec/changes/archive/2025-10-22-add-archive-command-arguments/specs/cli-update/spec.md +32 -0
- package/references/openspec/openspec/changes/archive/2025-10-22-add-archive-command-arguments/tasks.md +15 -0
- package/references/openspec/openspec/changes/archive/2025-10-22-add-cline-support/proposal.md +15 -0
- package/references/openspec/openspec/changes/archive/2025-10-22-add-cline-support/specs/cli-init/spec.md +97 -0
- package/references/openspec/openspec/changes/archive/2025-10-22-add-cline-support/tasks.md +19 -0
- package/references/openspec/openspec/changes/archive/2025-10-22-add-crush-support/proposal.md +13 -0
- package/references/openspec/openspec/changes/archive/2025-10-22-add-crush-support/specs/cli-init/spec.md +67 -0
- package/references/openspec/openspec/changes/archive/2025-10-22-add-crush-support/tasks.md +7 -0
- package/references/openspec/openspec/changes/archive/2025-10-22-add-factory-slash-commands/proposal.md +12 -0
- package/references/openspec/openspec/changes/archive/2025-10-22-add-factory-slash-commands/specs/cli-init/spec.md +54 -0
- package/references/openspec/openspec/changes/archive/2025-10-22-add-factory-slash-commands/specs/cli-update/spec.md +54 -0
- package/references/openspec/openspec/changes/archive/2025-10-22-add-factory-slash-commands/tasks.md +11 -0
- package/references/openspec/openspec/changes/fix-cline-workflows-implementation/proposal.md +13 -0
- package/references/openspec/openspec/changes/fix-cline-workflows-implementation/specs/cli-init/spec.md +11 -0
- package/references/openspec/openspec/changes/fix-cline-workflows-implementation/tasks.md +13 -0
- package/references/openspec/openspec/changes/make-validation-scope-aware/proposal.md +12 -0
- package/references/openspec/openspec/changes/make-validation-scope-aware/specs/cli-validate/spec.md +25 -0
- package/references/openspec/openspec/changes/make-validation-scope-aware/tasks.md +16 -0
- package/references/openspec/openspec/project.md +53 -0
- package/references/openspec/openspec/specs/cli-archive/spec.md +210 -0
- package/references/openspec/openspec/specs/cli-change/spec.md +91 -0
- package/references/openspec/openspec/specs/cli-init/spec.md +311 -0
- package/references/openspec/openspec/specs/cli-list/spec.md +103 -0
- package/references/openspec/openspec/specs/cli-show/spec.md +85 -0
- package/references/openspec/openspec/specs/cli-spec/spec.md +87 -0
- package/references/openspec/openspec/specs/cli-update/spec.md +190 -0
- package/references/openspec/openspec/specs/cli-validate/spec.md +218 -0
- package/references/openspec/openspec/specs/cli-view/spec.md +105 -0
- package/references/openspec/openspec/specs/docs-agent-instructions/spec.md +38 -0
- package/references/openspec/openspec/specs/openspec-conventions/spec.md +474 -0
- package/references/openspec/openspec-parallel-merge-plan.md +98 -0
- package/references/openspec/package.json +73 -0
- package/references/openspec/pnpm-lock.yaml +2324 -0
- package/references/openspec/scripts/pack-version-check.mjs +111 -0
- package/references/openspec/src/cli/index.ts +253 -0
- package/references/openspec/src/commands/change.ts +291 -0
- package/references/openspec/src/commands/show.ts +139 -0
- package/references/openspec/src/commands/spec.ts +250 -0
- package/references/openspec/src/commands/validate.ts +305 -0
- package/references/openspec/src/core/archive.ts +606 -0
- package/references/openspec/src/core/config.ts +41 -0
- package/references/openspec/src/core/configurators/agents.ts +23 -0
- package/references/openspec/src/core/configurators/base.ts +6 -0
- package/references/openspec/src/core/configurators/claude.ts +23 -0
- package/references/openspec/src/core/configurators/cline.ts +23 -0
- package/references/openspec/src/core/configurators/codebuddy.ts +24 -0
- package/references/openspec/src/core/configurators/costrict.ts +23 -0
- package/references/openspec/src/core/configurators/iflow.ts +23 -0
- package/references/openspec/src/core/configurators/qoder.ts +53 -0
- package/references/openspec/src/core/configurators/qwen.ts +47 -0
- package/references/openspec/src/core/configurators/registry.ts +49 -0
- package/references/openspec/src/core/configurators/slash/amazon-q.ts +51 -0
- package/references/openspec/src/core/configurators/slash/antigravity.ts +28 -0
- package/references/openspec/src/core/configurators/slash/auggie.ts +37 -0
- package/references/openspec/src/core/configurators/slash/base.ts +95 -0
- package/references/openspec/src/core/configurators/slash/claude.ts +42 -0
- package/references/openspec/src/core/configurators/slash/cline.ts +27 -0
- package/references/openspec/src/core/configurators/slash/codebuddy.ts +43 -0
- package/references/openspec/src/core/configurators/slash/codex.ts +126 -0
- package/references/openspec/src/core/configurators/slash/costrict.ts +36 -0
- package/references/openspec/src/core/configurators/slash/crush.ts +42 -0
- package/references/openspec/src/core/configurators/slash/cursor.ts +42 -0
- package/references/openspec/src/core/configurators/slash/factory.ts +41 -0
- package/references/openspec/src/core/configurators/slash/gemini.ts +27 -0
- package/references/openspec/src/core/configurators/slash/github-copilot.ts +39 -0
- package/references/openspec/src/core/configurators/slash/iflow.ts +42 -0
- package/references/openspec/src/core/configurators/slash/kilocode.ts +21 -0
- package/references/openspec/src/core/configurators/slash/opencode.ts +83 -0
- package/references/openspec/src/core/configurators/slash/qoder.ts +84 -0
- package/references/openspec/src/core/configurators/slash/qwen.ts +55 -0
- package/references/openspec/src/core/configurators/slash/registry.ts +81 -0
- package/references/openspec/src/core/configurators/slash/roocode.ts +27 -0
- package/references/openspec/src/core/configurators/slash/toml-base.ts +66 -0
- package/references/openspec/src/core/configurators/slash/windsurf.ts +27 -0
- package/references/openspec/src/core/converters/json-converter.ts +61 -0
- package/references/openspec/src/core/index.ts +2 -0
- package/references/openspec/src/core/init.ts +986 -0
- package/references/openspec/src/core/list.ts +104 -0
- package/references/openspec/src/core/parsers/change-parser.ts +234 -0
- package/references/openspec/src/core/parsers/markdown-parser.ts +237 -0
- package/references/openspec/src/core/parsers/requirement-blocks.ts +234 -0
- package/references/openspec/src/core/schemas/base.schema.ts +20 -0
- package/references/openspec/src/core/schemas/change.schema.ts +42 -0
- package/references/openspec/src/core/schemas/index.ts +20 -0
- package/references/openspec/src/core/schemas/spec.schema.ts +17 -0
- package/references/openspec/src/core/styles/palette.ts +8 -0
- package/references/openspec/src/core/templates/agents-root-stub.ts +16 -0
- package/references/openspec/src/core/templates/agents-template.ts +457 -0
- package/references/openspec/src/core/templates/claude-template.ts +1 -0
- package/references/openspec/src/core/templates/cline-template.ts +1 -0
- package/references/openspec/src/core/templates/costrict-template.ts +1 -0
- package/references/openspec/src/core/templates/index.ts +50 -0
- package/references/openspec/src/core/templates/project-template.ts +38 -0
- package/references/openspec/src/core/templates/slash-command-templates.ts +60 -0
- package/references/openspec/src/core/update.ts +129 -0
- package/references/openspec/src/core/validation/constants.ts +48 -0
- package/references/openspec/src/core/validation/types.ts +19 -0
- package/references/openspec/src/core/validation/validator.ts +448 -0
- package/references/openspec/src/core/view.ts +189 -0
- package/references/openspec/src/index.ts +2 -0
- package/references/openspec/src/utils/file-system.ts +187 -0
- package/references/openspec/src/utils/index.ts +2 -0
- package/references/openspec/src/utils/interactive.ts +7 -0
- package/references/openspec/src/utils/item-discovery.ts +45 -0
- package/references/openspec/src/utils/match.ts +26 -0
- package/references/openspec/src/utils/task-progress.ts +43 -0
- package/references/openspec/test/cli-e2e/basic.test.ts +156 -0
- package/references/openspec/test/commands/change.interactive-show.test.ts +45 -0
- package/references/openspec/test/commands/change.interactive-validate.test.ts +48 -0
- package/references/openspec/test/commands/show.test.ts +123 -0
- package/references/openspec/test/commands/spec.interactive-show.test.ts +44 -0
- package/references/openspec/test/commands/spec.interactive-validate.test.ts +44 -0
- package/references/openspec/test/commands/spec.test.ts +324 -0
- package/references/openspec/test/commands/validate.enriched-output.test.ts +49 -0
- package/references/openspec/test/commands/validate.test.ts +133 -0
- package/references/openspec/test/core/archive.test.ts +680 -0
- package/references/openspec/test/core/commands/change-command.list.test.ts +76 -0
- package/references/openspec/test/core/commands/change-command.show-validate.test.ts +111 -0
- package/references/openspec/test/core/converters/json-converter.test.ts +184 -0
- package/references/openspec/test/core/init.test.ts +1710 -0
- package/references/openspec/test/core/list.test.ts +165 -0
- package/references/openspec/test/core/parsers/change-parser.test.ts +52 -0
- package/references/openspec/test/core/parsers/markdown-parser.test.ts +291 -0
- package/references/openspec/test/core/update.test.ts +1642 -0
- package/references/openspec/test/core/validation.enriched-messages.test.ts +74 -0
- package/references/openspec/test/core/validation.test.ts +489 -0
- package/references/openspec/test/core/view.test.ts +79 -0
- package/references/openspec/test/fixtures/tmp-init/openspec/changes/c1/proposal.md +7 -0
- package/references/openspec/test/fixtures/tmp-init/openspec/changes/c1/specs/alpha/spec.md +8 -0
- package/references/openspec/test/fixtures/tmp-init/openspec/specs/alpha/spec.md +12 -0
- package/references/openspec/test/helpers/run-cli.ts +139 -0
- package/references/openspec/test/utils/file-system.test.ts +211 -0
- package/references/openspec/test/utils/marker-updates.test.ts +287 -0
- package/references/openspec/tsconfig.json +21 -0
- package/references/openspec/vitest.config.ts +25 -0
- package/references/openspec/vitest.setup.ts +6 -0
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
}
|