raptor-aios 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.
- package/CHANGELOG.md +26 -0
- package/LICENSE +21 -0
- package/README.md +315 -0
- package/bin/raptor.js +5 -0
- package/dist/_core/dist/agents/adapters/antigravity.d.ts +9 -0
- package/dist/_core/dist/agents/adapters/antigravity.d.ts.map +1 -0
- package/dist/_core/dist/agents/adapters/antigravity.js +72 -0
- package/dist/_core/dist/agents/adapters/antigravity.js.map +1 -0
- package/dist/_core/dist/agents/adapters/claude-code.d.ts +9 -0
- package/dist/_core/dist/agents/adapters/claude-code.d.ts.map +1 -0
- package/dist/_core/dist/agents/adapters/claude-code.js +71 -0
- package/dist/_core/dist/agents/adapters/claude-code.js.map +1 -0
- package/dist/_core/dist/agents/adapters/codex.d.ts +12 -0
- package/dist/_core/dist/agents/adapters/codex.d.ts.map +1 -0
- package/dist/_core/dist/agents/adapters/codex.js +69 -0
- package/dist/_core/dist/agents/adapters/codex.js.map +1 -0
- package/dist/_core/dist/agents/adapters/copilot.d.ts +12 -0
- package/dist/_core/dist/agents/adapters/copilot.d.ts.map +1 -0
- package/dist/_core/dist/agents/adapters/copilot.js +71 -0
- package/dist/_core/dist/agents/adapters/copilot.js.map +1 -0
- package/dist/_core/dist/agents/adapters/cursor.d.ts +9 -0
- package/dist/_core/dist/agents/adapters/cursor.d.ts.map +1 -0
- package/dist/_core/dist/agents/adapters/cursor.js +62 -0
- package/dist/_core/dist/agents/adapters/cursor.js.map +1 -0
- package/dist/_core/dist/agents/adapters/gemini.d.ts +11 -0
- package/dist/_core/dist/agents/adapters/gemini.d.ts.map +1 -0
- package/dist/_core/dist/agents/adapters/gemini.js +68 -0
- package/dist/_core/dist/agents/adapters/gemini.js.map +1 -0
- package/dist/_core/dist/agents/adapters/human.d.ts +10 -0
- package/dist/_core/dist/agents/adapters/human.d.ts.map +1 -0
- package/dist/_core/dist/agents/adapters/human.js +48 -0
- package/dist/_core/dist/agents/adapters/human.js.map +1 -0
- package/dist/_core/dist/agents/artifact-watcher.d.ts +86 -0
- package/dist/_core/dist/agents/artifact-watcher.d.ts.map +1 -0
- package/dist/_core/dist/agents/artifact-watcher.js +214 -0
- package/dist/_core/dist/agents/artifact-watcher.js.map +1 -0
- package/dist/_core/dist/agents/backup.d.ts +69 -0
- package/dist/_core/dist/agents/backup.d.ts.map +1 -0
- package/dist/_core/dist/agents/backup.js +107 -0
- package/dist/_core/dist/agents/backup.js.map +1 -0
- package/dist/_core/dist/agents/config.d.ts +36 -0
- package/dist/_core/dist/agents/config.d.ts.map +1 -0
- package/dist/_core/dist/agents/config.js +270 -0
- package/dist/_core/dist/agents/config.js.map +1 -0
- package/dist/_core/dist/agents/context-file.d.ts +35 -0
- package/dist/_core/dist/agents/context-file.d.ts.map +1 -0
- package/dist/_core/dist/agents/context-file.js +106 -0
- package/dist/_core/dist/agents/context-file.js.map +1 -0
- package/dist/_core/dist/agents/handoff.d.ts +57 -0
- package/dist/_core/dist/agents/handoff.d.ts.map +1 -0
- package/dist/_core/dist/agents/handoff.js +71 -0
- package/dist/_core/dist/agents/handoff.js.map +1 -0
- package/dist/_core/dist/agents/index.d.ts +32 -0
- package/dist/_core/dist/agents/index.d.ts.map +1 -0
- package/dist/_core/dist/agents/index.js +37 -0
- package/dist/_core/dist/agents/index.js.map +1 -0
- package/dist/_core/dist/agents/keys.d.ts +50 -0
- package/dist/_core/dist/agents/keys.d.ts.map +1 -0
- package/dist/_core/dist/agents/keys.js +91 -0
- package/dist/_core/dist/agents/keys.js.map +1 -0
- package/dist/_core/dist/agents/materialize.d.ts +37 -0
- package/dist/_core/dist/agents/materialize.d.ts.map +1 -0
- package/dist/_core/dist/agents/materialize.js +157 -0
- package/dist/_core/dist/agents/materialize.js.map +1 -0
- package/dist/_core/dist/agents/prompt-builder.d.ts +35 -0
- package/dist/_core/dist/agents/prompt-builder.d.ts.map +1 -0
- package/dist/_core/dist/agents/prompt-builder.js +261 -0
- package/dist/_core/dist/agents/prompt-builder.js.map +1 -0
- package/dist/_core/dist/agents/prompt-markers.d.ts +69 -0
- package/dist/_core/dist/agents/prompt-markers.d.ts.map +1 -0
- package/dist/_core/dist/agents/prompt-markers.js +111 -0
- package/dist/_core/dist/agents/prompt-markers.js.map +1 -0
- package/dist/_core/dist/agents/registry.d.ts +35 -0
- package/dist/_core/dist/agents/registry.d.ts.map +1 -0
- package/dist/_core/dist/agents/registry.js +102 -0
- package/dist/_core/dist/agents/registry.js.map +1 -0
- package/dist/_core/dist/agents/selector.d.ts +33 -0
- package/dist/_core/dist/agents/selector.d.ts.map +1 -0
- package/dist/_core/dist/agents/selector.js +120 -0
- package/dist/_core/dist/agents/selector.js.map +1 -0
- package/dist/_core/dist/agents/slash-materializer.d.ts +63 -0
- package/dist/_core/dist/agents/slash-materializer.d.ts.map +1 -0
- package/dist/_core/dist/agents/slash-materializer.js +131 -0
- package/dist/_core/dist/agents/slash-materializer.js.map +1 -0
- package/dist/_core/dist/agents/types.d.ts +121 -0
- package/dist/_core/dist/agents/types.d.ts.map +1 -0
- package/dist/_core/dist/agents/types.js +10 -0
- package/dist/_core/dist/agents/types.js.map +1 -0
- package/dist/_core/dist/audit/hash.d.ts +4 -0
- package/dist/_core/dist/audit/hash.d.ts.map +1 -0
- package/dist/_core/dist/audit/hash.js +12 -0
- package/dist/_core/dist/audit/hash.js.map +1 -0
- package/dist/_core/dist/audit/index.d.ts +6 -0
- package/dist/_core/dist/audit/index.d.ts.map +1 -0
- package/dist/_core/dist/audit/index.js +6 -0
- package/dist/_core/dist/audit/index.js.map +1 -0
- package/dist/_core/dist/audit/logger.d.ts +77 -0
- package/dist/_core/dist/audit/logger.d.ts.map +1 -0
- package/dist/_core/dist/audit/logger.js +93 -0
- package/dist/_core/dist/audit/logger.js.map +1 -0
- package/dist/_core/dist/audit/query.d.ts +13 -0
- package/dist/_core/dist/audit/query.d.ts.map +1 -0
- package/dist/_core/dist/audit/query.js +57 -0
- package/dist/_core/dist/audit/query.js.map +1 -0
- package/dist/_core/dist/audit/schema.d.ts +455 -0
- package/dist/_core/dist/audit/schema.d.ts.map +1 -0
- package/dist/_core/dist/audit/schema.js +341 -0
- package/dist/_core/dist/audit/schema.js.map +1 -0
- package/dist/_core/dist/audit/validate.d.ts +21 -0
- package/dist/_core/dist/audit/validate.d.ts.map +1 -0
- package/dist/_core/dist/audit/validate.js +139 -0
- package/dist/_core/dist/audit/validate.js.map +1 -0
- package/dist/_core/dist/constitution/core.d.ts +22 -0
- package/dist/_core/dist/constitution/core.d.ts.map +1 -0
- package/dist/_core/dist/constitution/core.js +102 -0
- package/dist/_core/dist/constitution/core.js.map +1 -0
- package/dist/_core/dist/constitution/index.d.ts +2 -0
- package/dist/_core/dist/constitution/index.d.ts.map +1 -0
- package/dist/_core/dist/constitution/index.js +2 -0
- package/dist/_core/dist/constitution/index.js.map +1 -0
- package/dist/_core/dist/extensions/index.d.ts +12 -0
- package/dist/_core/dist/extensions/index.d.ts.map +1 -0
- package/dist/_core/dist/extensions/index.js +12 -0
- package/dist/_core/dist/extensions/index.js.map +1 -0
- package/dist/_core/dist/extensions/integrate.d.ts +69 -0
- package/dist/_core/dist/extensions/integrate.d.ts.map +1 -0
- package/dist/_core/dist/extensions/integrate.js +181 -0
- package/dist/_core/dist/extensions/integrate.js.map +1 -0
- package/dist/_core/dist/extensions/loader.d.ts +24 -0
- package/dist/_core/dist/extensions/loader.d.ts.map +1 -0
- package/dist/_core/dist/extensions/loader.js +73 -0
- package/dist/_core/dist/extensions/loader.js.map +1 -0
- package/dist/_core/dist/extensions/manifest.d.ts +23 -0
- package/dist/_core/dist/extensions/manifest.d.ts.map +1 -0
- package/dist/_core/dist/extensions/manifest.js +176 -0
- package/dist/_core/dist/extensions/manifest.js.map +1 -0
- package/dist/_core/dist/extensions/registry.d.ts +32 -0
- package/dist/_core/dist/extensions/registry.d.ts.map +1 -0
- package/dist/_core/dist/extensions/registry.js +57 -0
- package/dist/_core/dist/extensions/registry.js.map +1 -0
- package/dist/_core/dist/extensions/resolver.d.ts +55 -0
- package/dist/_core/dist/extensions/resolver.d.ts.map +1 -0
- package/dist/_core/dist/extensions/resolver.js +143 -0
- package/dist/_core/dist/extensions/resolver.js.map +1 -0
- package/dist/_core/dist/extensions/types.d.ts +173 -0
- package/dist/_core/dist/extensions/types.d.ts.map +1 -0
- package/dist/_core/dist/extensions/types.js +83 -0
- package/dist/_core/dist/extensions/types.js.map +1 -0
- package/dist/_core/dist/frontmatter/index.d.ts +10 -0
- package/dist/_core/dist/frontmatter/index.d.ts.map +1 -0
- package/dist/_core/dist/frontmatter/index.js +24 -0
- package/dist/_core/dist/frontmatter/index.js.map +1 -0
- package/dist/_core/dist/gates/agent-gates.d.ts +16 -0
- package/dist/_core/dist/gates/agent-gates.d.ts.map +1 -0
- package/dist/_core/dist/gates/agent-gates.js +205 -0
- package/dist/_core/dist/gates/agent-gates.js.map +1 -0
- package/dist/_core/dist/gates/builtin.d.ts +18 -0
- package/dist/_core/dist/gates/builtin.d.ts.map +1 -0
- package/dist/_core/dist/gates/builtin.js +860 -0
- package/dist/_core/dist/gates/builtin.js.map +1 -0
- package/dist/_core/dist/gates/index.d.ts +7 -0
- package/dist/_core/dist/gates/index.d.ts.map +1 -0
- package/dist/_core/dist/gates/index.js +7 -0
- package/dist/_core/dist/gates/index.js.map +1 -0
- package/dist/_core/dist/gates/m7-gates.d.ts +17 -0
- package/dist/_core/dist/gates/m7-gates.d.ts.map +1 -0
- package/dist/_core/dist/gates/m7-gates.js +309 -0
- package/dist/_core/dist/gates/m7-gates.js.map +1 -0
- package/dist/_core/dist/gates/phase-gates.d.ts +18 -0
- package/dist/_core/dist/gates/phase-gates.d.ts.map +1 -0
- package/dist/_core/dist/gates/phase-gates.js +275 -0
- package/dist/_core/dist/gates/phase-gates.js.map +1 -0
- package/dist/_core/dist/gates/runner.d.ts +4 -0
- package/dist/_core/dist/gates/runner.d.ts.map +1 -0
- package/dist/_core/dist/gates/runner.js +64 -0
- package/dist/_core/dist/gates/runner.js.map +1 -0
- package/dist/_core/dist/gates/types.d.ts +36 -0
- package/dist/_core/dist/gates/types.d.ts.map +1 -0
- package/dist/_core/dist/gates/types.js +2 -0
- package/dist/_core/dist/gates/types.js.map +1 -0
- package/dist/_core/dist/hooks/index.d.ts +4 -0
- package/dist/_core/dist/hooks/index.d.ts.map +1 -0
- package/dist/_core/dist/hooks/index.js +4 -0
- package/dist/_core/dist/hooks/index.js.map +1 -0
- package/dist/_core/dist/hooks/runner.d.ts +28 -0
- package/dist/_core/dist/hooks/runner.d.ts.map +1 -0
- package/dist/_core/dist/hooks/runner.js +294 -0
- package/dist/_core/dist/hooks/runner.js.map +1 -0
- package/dist/_core/dist/hooks/runtime.d.ts +65 -0
- package/dist/_core/dist/hooks/runtime.d.ts.map +1 -0
- package/dist/_core/dist/hooks/runtime.js +212 -0
- package/dist/_core/dist/hooks/runtime.js.map +1 -0
- package/dist/_core/dist/hooks/types.d.ts +36 -0
- package/dist/_core/dist/hooks/types.d.ts.map +1 -0
- package/dist/_core/dist/hooks/types.js +23 -0
- package/dist/_core/dist/hooks/types.js.map +1 -0
- package/dist/_core/dist/index.d.ts +21 -0
- package/dist/_core/dist/index.d.ts.map +1 -0
- package/dist/_core/dist/index.js +20 -0
- package/dist/_core/dist/index.js.map +1 -0
- package/dist/_core/dist/manifest/index.d.ts +119 -0
- package/dist/_core/dist/manifest/index.d.ts.map +1 -0
- package/dist/_core/dist/manifest/index.js +125 -0
- package/dist/_core/dist/manifest/index.js.map +1 -0
- package/dist/_core/dist/markers/index.d.ts +47 -0
- package/dist/_core/dist/markers/index.d.ts.map +1 -0
- package/dist/_core/dist/markers/index.js +97 -0
- package/dist/_core/dist/markers/index.js.map +1 -0
- package/dist/_core/dist/mcp/config.d.ts +19 -0
- package/dist/_core/dist/mcp/config.d.ts.map +1 -0
- package/dist/_core/dist/mcp/config.js +114 -0
- package/dist/_core/dist/mcp/config.js.map +1 -0
- package/dist/_core/dist/mcp/index.d.ts +9 -0
- package/dist/_core/dist/mcp/index.d.ts.map +1 -0
- package/dist/_core/dist/mcp/index.js +8 -0
- package/dist/_core/dist/mcp/index.js.map +1 -0
- package/dist/_core/dist/mcp/materializer.d.ts +40 -0
- package/dist/_core/dist/mcp/materializer.d.ts.map +1 -0
- package/dist/_core/dist/mcp/materializer.js +161 -0
- package/dist/_core/dist/mcp/materializer.js.map +1 -0
- package/dist/_core/dist/mcp/targets.d.ts +37 -0
- package/dist/_core/dist/mcp/targets.d.ts.map +1 -0
- package/dist/_core/dist/mcp/targets.js +56 -0
- package/dist/_core/dist/mcp/targets.js.map +1 -0
- package/dist/_core/dist/mcp/types.d.ts +34 -0
- package/dist/_core/dist/mcp/types.d.ts.map +1 -0
- package/dist/_core/dist/mcp/types.js +8 -0
- package/dist/_core/dist/mcp/types.js.map +1 -0
- package/dist/_core/dist/models/analyze.d.ts +131 -0
- package/dist/_core/dist/models/analyze.d.ts.map +1 -0
- package/dist/_core/dist/models/analyze.js +301 -0
- package/dist/_core/dist/models/analyze.js.map +1 -0
- package/dist/_core/dist/models/checklist.d.ts +113 -0
- package/dist/_core/dist/models/checklist.d.ts.map +1 -0
- package/dist/_core/dist/models/checklist.js +159 -0
- package/dist/_core/dist/models/checklist.js.map +1 -0
- package/dist/_core/dist/models/clarify.d.ts +116 -0
- package/dist/_core/dist/models/clarify.d.ts.map +1 -0
- package/dist/_core/dist/models/clarify.js +166 -0
- package/dist/_core/dist/models/clarify.js.map +1 -0
- package/dist/_core/dist/models/impl-log.d.ts +64 -0
- package/dist/_core/dist/models/impl-log.d.ts.map +1 -0
- package/dist/_core/dist/models/impl-log.js +137 -0
- package/dist/_core/dist/models/impl-log.js.map +1 -0
- package/dist/_core/dist/models/index.d.ts +8 -0
- package/dist/_core/dist/models/index.d.ts.map +1 -0
- package/dist/_core/dist/models/index.js +8 -0
- package/dist/_core/dist/models/index.js.map +1 -0
- package/dist/_core/dist/models/plan.d.ts +24 -0
- package/dist/_core/dist/models/plan.d.ts.map +1 -0
- package/dist/_core/dist/models/plan.js +15 -0
- package/dist/_core/dist/models/plan.js.map +1 -0
- package/dist/_core/dist/models/spec.d.ts +23 -0
- package/dist/_core/dist/models/spec.d.ts.map +1 -0
- package/dist/_core/dist/models/spec.js +22 -0
- package/dist/_core/dist/models/spec.js.map +1 -0
- package/dist/_core/dist/models/tasks.d.ts +33 -0
- package/dist/_core/dist/models/tasks.d.ts.map +1 -0
- package/dist/_core/dist/models/tasks.js +78 -0
- package/dist/_core/dist/models/tasks.js.map +1 -0
- package/dist/_core/dist/presets/gates.d.ts +9 -0
- package/dist/_core/dist/presets/gates.d.ts.map +1 -0
- package/dist/_core/dist/presets/gates.js +173 -0
- package/dist/_core/dist/presets/gates.js.map +1 -0
- package/dist/_core/dist/presets/index.d.ts +10 -0
- package/dist/_core/dist/presets/index.d.ts.map +1 -0
- package/dist/_core/dist/presets/index.js +7 -0
- package/dist/_core/dist/presets/index.js.map +1 -0
- package/dist/_core/dist/presets/loader.d.ts +56 -0
- package/dist/_core/dist/presets/loader.d.ts.map +1 -0
- package/dist/_core/dist/presets/loader.js +216 -0
- package/dist/_core/dist/presets/loader.js.map +1 -0
- package/dist/_core/dist/presets/mobile-opinionated.d.ts +3 -0
- package/dist/_core/dist/presets/mobile-opinionated.d.ts.map +1 -0
- package/dist/_core/dist/presets/mobile-opinionated.js +78 -0
- package/dist/_core/dist/presets/mobile-opinionated.js.map +1 -0
- package/dist/_core/dist/presets/registry.d.ts +5 -0
- package/dist/_core/dist/presets/registry.d.ts.map +1 -0
- package/dist/_core/dist/presets/registry.js +14 -0
- package/dist/_core/dist/presets/registry.js.map +1 -0
- package/dist/_core/dist/presets/renderer.d.ts +5 -0
- package/dist/_core/dist/presets/renderer.d.ts.map +1 -0
- package/dist/_core/dist/presets/renderer.js +37 -0
- package/dist/_core/dist/presets/renderer.js.map +1 -0
- package/dist/_core/dist/presets/stacking.d.ts +29 -0
- package/dist/_core/dist/presets/stacking.d.ts.map +1 -0
- package/dist/_core/dist/presets/stacking.js +91 -0
- package/dist/_core/dist/presets/stacking.js.map +1 -0
- package/dist/_core/dist/presets/types.d.ts +22 -0
- package/dist/_core/dist/presets/types.d.ts.map +1 -0
- package/dist/_core/dist/presets/types.js +2 -0
- package/dist/_core/dist/presets/types.js.map +1 -0
- package/dist/_core/dist/prompts/audit-log.d.ts +73 -0
- package/dist/_core/dist/prompts/audit-log.d.ts.map +1 -0
- package/dist/_core/dist/prompts/audit-log.js +73 -0
- package/dist/_core/dist/prompts/audit-log.js.map +1 -0
- package/dist/_core/dist/prompts/index.d.ts +9 -0
- package/dist/_core/dist/prompts/index.d.ts.map +1 -0
- package/dist/_core/dist/prompts/index.js +7 -0
- package/dist/_core/dist/prompts/index.js.map +1 -0
- package/dist/_core/dist/prompts/renderer.d.ts +73 -0
- package/dist/_core/dist/prompts/renderer.d.ts.map +1 -0
- package/dist/_core/dist/prompts/renderer.js +179 -0
- package/dist/_core/dist/prompts/renderer.js.map +1 -0
- package/dist/_core/dist/prompts/resumption.d.ts +59 -0
- package/dist/_core/dist/prompts/resumption.d.ts.map +1 -0
- package/dist/_core/dist/prompts/resumption.js +149 -0
- package/dist/_core/dist/prompts/resumption.js.map +1 -0
- package/dist/_core/dist/skills/config.d.ts +27 -0
- package/dist/_core/dist/skills/config.d.ts.map +1 -0
- package/dist/_core/dist/skills/config.js +102 -0
- package/dist/_core/dist/skills/config.js.map +1 -0
- package/dist/_core/dist/skills/index.d.ts +9 -0
- package/dist/_core/dist/skills/index.d.ts.map +1 -0
- package/dist/_core/dist/skills/index.js +8 -0
- package/dist/_core/dist/skills/index.js.map +1 -0
- package/dist/_core/dist/skills/materializer.d.ts +45 -0
- package/dist/_core/dist/skills/materializer.d.ts.map +1 -0
- package/dist/_core/dist/skills/materializer.js +97 -0
- package/dist/_core/dist/skills/materializer.js.map +1 -0
- package/dist/_core/dist/skills/registry.d.ts +18 -0
- package/dist/_core/dist/skills/registry.d.ts.map +1 -0
- package/dist/_core/dist/skills/registry.js +36 -0
- package/dist/_core/dist/skills/registry.js.map +1 -0
- package/dist/_core/dist/skills/types.d.ts +39 -0
- package/dist/_core/dist/skills/types.d.ts.map +1 -0
- package/dist/_core/dist/skills/types.js +13 -0
- package/dist/_core/dist/skills/types.js.map +1 -0
- package/dist/_core/dist/state/feature.d.ts +58 -0
- package/dist/_core/dist/state/feature.d.ts.map +1 -0
- package/dist/_core/dist/state/feature.js +81 -0
- package/dist/_core/dist/state/feature.js.map +1 -0
- package/dist/_core/dist/state/index.d.ts +8 -0
- package/dist/_core/dist/state/index.d.ts.map +1 -0
- package/dist/_core/dist/state/index.js +6 -0
- package/dist/_core/dist/state/index.js.map +1 -0
- package/dist/_core/dist/state/init-options.d.ts +60 -0
- package/dist/_core/dist/state/init-options.d.ts.map +1 -0
- package/dist/_core/dist/state/init-options.js +74 -0
- package/dist/_core/dist/state/init-options.js.map +1 -0
- package/dist/_core/dist/template/engine.d.ts +7 -0
- package/dist/_core/dist/template/engine.d.ts.map +1 -0
- package/dist/_core/dist/template/engine.js +86 -0
- package/dist/_core/dist/template/engine.js.map +1 -0
- package/dist/_core/dist/template/helpers.d.ts +5 -0
- package/dist/_core/dist/template/helpers.d.ts.map +1 -0
- package/dist/_core/dist/template/helpers.js +59 -0
- package/dist/_core/dist/template/helpers.js.map +1 -0
- package/dist/_core/dist/template/index.d.ts +6 -0
- package/dist/_core/dist/template/index.d.ts.map +1 -0
- package/dist/_core/dist/template/index.js +6 -0
- package/dist/_core/dist/template/index.js.map +1 -0
- package/dist/_core/dist/template/loader.d.ts +36 -0
- package/dist/_core/dist/template/loader.d.ts.map +1 -0
- package/dist/_core/dist/template/loader.js +62 -0
- package/dist/_core/dist/template/loader.js.map +1 -0
- package/dist/_core/dist/template/parser.d.ts +3 -0
- package/dist/_core/dist/template/parser.d.ts.map +1 -0
- package/dist/_core/dist/template/parser.js +234 -0
- package/dist/_core/dist/template/parser.js.map +1 -0
- package/dist/_core/dist/template/types.d.ts +40 -0
- package/dist/_core/dist/template/types.d.ts.map +1 -0
- package/dist/_core/dist/template/types.js +14 -0
- package/dist/_core/dist/template/types.js.map +1 -0
- package/dist/_core/dist/verify/a11y.d.ts +36 -0
- package/dist/_core/dist/verify/a11y.d.ts.map +1 -0
- package/dist/_core/dist/verify/a11y.js +153 -0
- package/dist/_core/dist/verify/a11y.js.map +1 -0
- package/dist/_core/dist/verify/architecture.d.ts +37 -0
- package/dist/_core/dist/verify/architecture.d.ts.map +1 -0
- package/dist/_core/dist/verify/architecture.js +113 -0
- package/dist/_core/dist/verify/architecture.js.map +1 -0
- package/dist/_core/dist/verify/index.d.ts +10 -0
- package/dist/_core/dist/verify/index.d.ts.map +1 -0
- package/dist/_core/dist/verify/index.js +10 -0
- package/dist/_core/dist/verify/index.js.map +1 -0
- package/dist/_core/dist/verify/os-matrix.d.ts +35 -0
- package/dist/_core/dist/verify/os-matrix.d.ts.map +1 -0
- package/dist/_core/dist/verify/os-matrix.js +104 -0
- package/dist/_core/dist/verify/os-matrix.js.map +1 -0
- package/dist/_core/dist/verify/perf.d.ts +43 -0
- package/dist/_core/dist/verify/perf.d.ts.map +1 -0
- package/dist/_core/dist/verify/perf.js +69 -0
- package/dist/_core/dist/verify/perf.js.map +1 -0
- package/dist/_core/dist/verify/stores.d.ts +38 -0
- package/dist/_core/dist/verify/stores.d.ts.map +1 -0
- package/dist/_core/dist/verify/stores.js +57 -0
- package/dist/_core/dist/verify/stores.js.map +1 -0
- package/dist/_core/dist/version.d.ts +8 -0
- package/dist/_core/dist/version.d.ts.map +1 -0
- package/dist/_core/dist/version.js +11 -0
- package/dist/_core/dist/version.js.map +1 -0
- package/dist/_core/dist/workflows/bundled.d.ts +32 -0
- package/dist/_core/dist/workflows/bundled.d.ts.map +1 -0
- package/dist/_core/dist/workflows/bundled.js +254 -0
- package/dist/_core/dist/workflows/bundled.js.map +1 -0
- package/dist/_core/dist/workflows/engine.d.ts +74 -0
- package/dist/_core/dist/workflows/engine.d.ts.map +1 -0
- package/dist/_core/dist/workflows/engine.js +574 -0
- package/dist/_core/dist/workflows/engine.js.map +1 -0
- package/dist/_core/dist/workflows/expressions.d.ts +48 -0
- package/dist/_core/dist/workflows/expressions.d.ts.map +1 -0
- package/dist/_core/dist/workflows/expressions.js +336 -0
- package/dist/_core/dist/workflows/expressions.js.map +1 -0
- package/dist/_core/dist/workflows/index.d.ts +16 -0
- package/dist/_core/dist/workflows/index.d.ts.map +1 -0
- package/dist/_core/dist/workflows/index.js +15 -0
- package/dist/_core/dist/workflows/index.js.map +1 -0
- package/dist/_core/dist/workflows/parser.d.ts +38 -0
- package/dist/_core/dist/workflows/parser.d.ts.map +1 -0
- package/dist/_core/dist/workflows/parser.js +386 -0
- package/dist/_core/dist/workflows/parser.js.map +1 -0
- package/dist/_core/dist/workflows/sdd-flow.d.ts +85 -0
- package/dist/_core/dist/workflows/sdd-flow.d.ts.map +1 -0
- package/dist/_core/dist/workflows/sdd-flow.js +269 -0
- package/dist/_core/dist/workflows/sdd-flow.js.map +1 -0
- package/dist/_core/dist/workflows/types.d.ts +285 -0
- package/dist/_core/dist/workflows/types.d.ts.map +1 -0
- package/dist/_core/dist/workflows/types.js +13 -0
- package/dist/_core/dist/workflows/types.js.map +1 -0
- package/dist/_core/package.json +6 -0
- package/dist/_core/templates/constitution.md.hbs +46 -0
- package/dist/_core/templates/ghaWorkflow.yml.hbs +58 -0
- package/dist/_core/templates/hotfix.md.hbs +39 -0
- package/dist/_core/templates/plan.md.hbs +212 -0
- package/dist/_core/templates/preCommitHook.sh.hbs +30 -0
- package/dist/_core/templates/prePushHook.sh.hbs +45 -0
- package/dist/_core/templates/raptor.yml.hbs +24 -0
- package/dist/_core/templates/spec.md.hbs +127 -0
- package/dist/_core/templates/tasks.md.hbs +71 -0
- package/dist/commands/add-agent.d.ts +22 -0
- package/dist/commands/add-agent.d.ts.map +1 -0
- package/dist/commands/add-agent.js +121 -0
- package/dist/commands/add-agent.js.map +1 -0
- package/dist/commands/add-extension.d.ts +18 -0
- package/dist/commands/add-extension.d.ts.map +1 -0
- package/dist/commands/add-extension.js +83 -0
- package/dist/commands/add-extension.js.map +1 -0
- package/dist/commands/analyze.d.ts +18 -0
- package/dist/commands/analyze.d.ts.map +1 -0
- package/dist/commands/analyze.js +323 -0
- package/dist/commands/analyze.js.map +1 -0
- package/dist/commands/approve.d.ts +14 -0
- package/dist/commands/approve.d.ts.map +1 -0
- package/dist/commands/approve.js +116 -0
- package/dist/commands/approve.js.map +1 -0
- package/dist/commands/audit/query.d.ts +23 -0
- package/dist/commands/audit/query.d.ts.map +1 -0
- package/dist/commands/audit/query.js +118 -0
- package/dist/commands/audit/query.js.map +1 -0
- package/dist/commands/audit/show.d.ts +17 -0
- package/dist/commands/audit/show.d.ts.map +1 -0
- package/dist/commands/audit/show.js +53 -0
- package/dist/commands/audit/show.js.map +1 -0
- package/dist/commands/checklist.d.ts +17 -0
- package/dist/commands/checklist.d.ts.map +1 -0
- package/dist/commands/checklist.js +255 -0
- package/dist/commands/checklist.js.map +1 -0
- package/dist/commands/clarify.d.ts +17 -0
- package/dist/commands/clarify.d.ts.map +1 -0
- package/dist/commands/clarify.js +254 -0
- package/dist/commands/clarify.js.map +1 -0
- package/dist/commands/doctor.d.ts +8 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/doctor.js +435 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/extension/add.d.ts +15 -0
- package/dist/commands/extension/add.d.ts.map +1 -0
- package/dist/commands/extension/add.js +93 -0
- package/dist/commands/extension/add.js.map +1 -0
- package/dist/commands/extension/info.d.ts +13 -0
- package/dist/commands/extension/info.d.ts.map +1 -0
- package/dist/commands/extension/info.js +75 -0
- package/dist/commands/extension/info.js.map +1 -0
- package/dist/commands/extension/list.d.ts +10 -0
- package/dist/commands/extension/list.d.ts.map +1 -0
- package/dist/commands/extension/list.js +71 -0
- package/dist/commands/extension/list.js.map +1 -0
- package/dist/commands/extension/remove.d.ts +14 -0
- package/dist/commands/extension/remove.d.ts.map +1 -0
- package/dist/commands/extension/remove.js +49 -0
- package/dist/commands/extension/remove.js.map +1 -0
- package/dist/commands/gate/approve.d.ts +15 -0
- package/dist/commands/gate/approve.d.ts.map +1 -0
- package/dist/commands/gate/approve.js +106 -0
- package/dist/commands/gate/approve.js.map +1 -0
- package/dist/commands/gate/list.d.ts +6 -0
- package/dist/commands/gate/list.d.ts.map +1 -0
- package/dist/commands/gate/list.js +38 -0
- package/dist/commands/gate/list.js.map +1 -0
- package/dist/commands/gate/skip.d.ts +14 -0
- package/dist/commands/gate/skip.d.ts.map +1 -0
- package/dist/commands/gate/skip.js +95 -0
- package/dist/commands/gate/skip.js.map +1 -0
- package/dist/commands/hook/list.d.ts +11 -0
- package/dist/commands/hook/list.d.ts.map +1 -0
- package/dist/commands/hook/list.js +152 -0
- package/dist/commands/hook/list.js.map +1 -0
- package/dist/commands/hook/run.d.ts +16 -0
- package/dist/commands/hook/run.d.ts.map +1 -0
- package/dist/commands/hook/run.js +74 -0
- package/dist/commands/hook/run.js.map +1 -0
- package/dist/commands/hotfix.d.ts +21 -0
- package/dist/commands/hotfix.d.ts.map +1 -0
- package/dist/commands/hotfix.js +216 -0
- package/dist/commands/hotfix.js.map +1 -0
- package/dist/commands/implement.d.ts +19 -0
- package/dist/commands/implement.d.ts.map +1 -0
- package/dist/commands/implement.js +282 -0
- package/dist/commands/implement.js.map +1 -0
- package/dist/commands/init.d.ts +43 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +465 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/list-agents.d.ts +12 -0
- package/dist/commands/list-agents.d.ts.map +1 -0
- package/dist/commands/list-agents.js +55 -0
- package/dist/commands/list-agents.js.map +1 -0
- package/dist/commands/mcp/add.d.ts +21 -0
- package/dist/commands/mcp/add.d.ts.map +1 -0
- package/dist/commands/mcp/add.js +119 -0
- package/dist/commands/mcp/add.js.map +1 -0
- package/dist/commands/mcp/list.d.ts +10 -0
- package/dist/commands/mcp/list.d.ts.map +1 -0
- package/dist/commands/mcp/list.js +54 -0
- package/dist/commands/mcp/list.js.map +1 -0
- package/dist/commands/mcp/remove.d.ts +10 -0
- package/dist/commands/mcp/remove.d.ts.map +1 -0
- package/dist/commands/mcp/remove.js +53 -0
- package/dist/commands/mcp/remove.js.map +1 -0
- package/dist/commands/mcp/sync.d.ts +7 -0
- package/dist/commands/mcp/sync.d.ts.map +1 -0
- package/dist/commands/mcp/sync.js +31 -0
- package/dist/commands/mcp/sync.js.map +1 -0
- package/dist/commands/new.d.ts +19 -0
- package/dist/commands/new.d.ts.map +1 -0
- package/dist/commands/new.js +306 -0
- package/dist/commands/new.js.map +1 -0
- package/dist/commands/plan.d.ts +17 -0
- package/dist/commands/plan.d.ts.map +1 -0
- package/dist/commands/plan.js +200 -0
- package/dist/commands/plan.js.map +1 -0
- package/dist/commands/preset/add.d.ts +13 -0
- package/dist/commands/preset/add.d.ts.map +1 -0
- package/dist/commands/preset/add.js +66 -0
- package/dist/commands/preset/add.js.map +1 -0
- package/dist/commands/preset/info.d.ts +13 -0
- package/dist/commands/preset/info.d.ts.map +1 -0
- package/dist/commands/preset/info.js +80 -0
- package/dist/commands/preset/info.js.map +1 -0
- package/dist/commands/preset/list.d.ts +10 -0
- package/dist/commands/preset/list.d.ts.map +1 -0
- package/dist/commands/preset/list.js +63 -0
- package/dist/commands/preset/list.js.map +1 -0
- package/dist/commands/preset/remove.d.ts +14 -0
- package/dist/commands/preset/remove.d.ts.map +1 -0
- package/dist/commands/preset/remove.js +60 -0
- package/dist/commands/preset/remove.js.map +1 -0
- package/dist/commands/repair/constitution.d.ts +11 -0
- package/dist/commands/repair/constitution.d.ts.map +1 -0
- package/dist/commands/repair/constitution.js +117 -0
- package/dist/commands/repair/constitution.js.map +1 -0
- package/dist/commands/resync.d.ts +22 -0
- package/dist/commands/resync.d.ts.map +1 -0
- package/dist/commands/resync.js +103 -0
- package/dist/commands/resync.js.map +1 -0
- package/dist/commands/skill/add.d.ts +19 -0
- package/dist/commands/skill/add.d.ts.map +1 -0
- package/dist/commands/skill/add.js +107 -0
- package/dist/commands/skill/add.js.map +1 -0
- package/dist/commands/skill/list.d.ts +10 -0
- package/dist/commands/skill/list.d.ts.map +1 -0
- package/dist/commands/skill/list.js +56 -0
- package/dist/commands/skill/list.js.map +1 -0
- package/dist/commands/skill/remove.d.ts +10 -0
- package/dist/commands/skill/remove.d.ts.map +1 -0
- package/dist/commands/skill/remove.js +47 -0
- package/dist/commands/skill/remove.js.map +1 -0
- package/dist/commands/skill/sync.d.ts +7 -0
- package/dist/commands/skill/sync.d.ts.map +1 -0
- package/dist/commands/skill/sync.js +30 -0
- package/dist/commands/skill/sync.js.map +1 -0
- package/dist/commands/status.d.ts +17 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +265 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/commands/tasks.d.ts +16 -0
- package/dist/commands/tasks.d.ts.map +1 -0
- package/dist/commands/tasks.js +176 -0
- package/dist/commands/tasks.js.map +1 -0
- package/dist/commands/trace.d.ts +16 -0
- package/dist/commands/trace.d.ts.map +1 -0
- package/dist/commands/trace.js +113 -0
- package/dist/commands/trace.js.map +1 -0
- package/dist/commands/upgrade.d.ts +20 -0
- package/dist/commands/upgrade.d.ts.map +1 -0
- package/dist/commands/upgrade.js +178 -0
- package/dist/commands/upgrade.js.map +1 -0
- package/dist/commands/verify/a11y.d.ts +15 -0
- package/dist/commands/verify/a11y.d.ts.map +1 -0
- package/dist/commands/verify/a11y.js +121 -0
- package/dist/commands/verify/a11y.js.map +1 -0
- package/dist/commands/verify/architecture.d.ts +11 -0
- package/dist/commands/verify/architecture.d.ts.map +1 -0
- package/dist/commands/verify/architecture.js +71 -0
- package/dist/commands/verify/architecture.js.map +1 -0
- package/dist/commands/verify/audit.d.ts +18 -0
- package/dist/commands/verify/audit.d.ts.map +1 -0
- package/dist/commands/verify/audit.js +108 -0
- package/dist/commands/verify/audit.js.map +1 -0
- package/dist/commands/verify/constitution.d.ts +10 -0
- package/dist/commands/verify/constitution.d.ts.map +1 -0
- package/dist/commands/verify/constitution.js +91 -0
- package/dist/commands/verify/constitution.js.map +1 -0
- package/dist/commands/verify/os-matrix.d.ts +14 -0
- package/dist/commands/verify/os-matrix.d.ts.map +1 -0
- package/dist/commands/verify/os-matrix.js +108 -0
- package/dist/commands/verify/os-matrix.js.map +1 -0
- package/dist/commands/verify/perf.d.ts +17 -0
- package/dist/commands/verify/perf.d.ts.map +1 -0
- package/dist/commands/verify/perf.js +106 -0
- package/dist/commands/verify/perf.js.map +1 -0
- package/dist/commands/verify/stores.d.ts +14 -0
- package/dist/commands/verify/stores.d.ts.map +1 -0
- package/dist/commands/verify/stores.js +98 -0
- package/dist/commands/verify/stores.js.map +1 -0
- package/dist/commands/verify.d.ts +14 -0
- package/dist/commands/verify.d.ts.map +1 -0
- package/dist/commands/verify.js +97 -0
- package/dist/commands/verify.js.map +1 -0
- package/dist/commands/workflow/catalog.d.ts +11 -0
- package/dist/commands/workflow/catalog.d.ts.map +1 -0
- package/dist/commands/workflow/catalog.js +164 -0
- package/dist/commands/workflow/catalog.js.map +1 -0
- package/dist/commands/workflow/list.d.ts +7 -0
- package/dist/commands/workflow/list.d.ts.map +1 -0
- package/dist/commands/workflow/list.js +50 -0
- package/dist/commands/workflow/list.js.map +1 -0
- package/dist/commands/workflow/resume.d.ts +13 -0
- package/dist/commands/workflow/resume.d.ts.map +1 -0
- package/dist/commands/workflow/resume.js +126 -0
- package/dist/commands/workflow/resume.js.map +1 -0
- package/dist/commands/workflow/run.d.ts +14 -0
- package/dist/commands/workflow/run.d.ts.map +1 -0
- package/dist/commands/workflow/run.js +139 -0
- package/dist/commands/workflow/run.js.map +1 -0
- package/dist/commands/workflow/status.d.ts +10 -0
- package/dist/commands/workflow/status.d.ts.map +1 -0
- package/dist/commands/workflow/status.js +86 -0
- package/dist/commands/workflow/status.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/shared/agents.d.ts +12 -0
- package/dist/shared/agents.d.ts.map +1 -0
- package/dist/shared/agents.js +31 -0
- package/dist/shared/agents.js.map +1 -0
- package/dist/shared/artifact-io.d.ts +54 -0
- package/dist/shared/artifact-io.d.ts.map +1 -0
- package/dist/shared/artifact-io.js +71 -0
- package/dist/shared/artifact-io.js.map +1 -0
- package/dist/shared/feature-prompt.d.ts +18 -0
- package/dist/shared/feature-prompt.d.ts.map +1 -0
- package/dist/shared/feature-prompt.js +21 -0
- package/dist/shared/feature-prompt.js.map +1 -0
- package/dist/shared/hooks.d.ts +7 -0
- package/dist/shared/hooks.d.ts.map +1 -0
- package/dist/shared/hooks.js +52 -0
- package/dist/shared/hooks.js.map +1 -0
- package/dist/shared/mcp.d.ts +9 -0
- package/dist/shared/mcp.d.ts.map +1 -0
- package/dist/shared/mcp.js +15 -0
- package/dist/shared/mcp.js.map +1 -0
- package/dist/shared/project.d.ts +42 -0
- package/dist/shared/project.d.ts.map +1 -0
- package/dist/shared/project.js +98 -0
- package/dist/shared/project.js.map +1 -0
- package/dist/shared/workflow-resolver.d.ts +19 -0
- package/dist/shared/workflow-resolver.d.ts.map +1 -0
- package/dist/shared/workflow-resolver.js +71 -0
- package/dist/shared/workflow-resolver.js.map +1 -0
- package/dist/workflow/args-builder.d.ts +31 -0
- package/dist/workflow/args-builder.d.ts.map +1 -0
- package/dist/workflow/args-builder.js +110 -0
- package/dist/workflow/args-builder.js.map +1 -0
- package/dist/workflow/executor.d.ts +18 -0
- package/dist/workflow/executor.d.ts.map +1 -0
- package/dist/workflow/executor.js +112 -0
- package/dist/workflow/executor.js.map +1 -0
- package/extensions/git/commands/rpt.git.feature.md +85 -0
- package/extensions/git/extension.yml +47 -0
- package/package.json +58 -0
- package/scripts/bash/check-prerequisites.sh +149 -0
- package/scripts/bash/common.sh +389 -0
- package/scripts/bash/create-new-feature.sh +164 -0
- package/scripts/bash/setup-plan.sh +113 -0
- package/scripts/check-naming.sh +138 -0
- package/scripts/check-prompts.sh +165 -0
- package/scripts/check-tasks.sh +166 -0
- package/scripts/powershell/check-prerequisites.ps1 +117 -0
- package/scripts/powershell/common.ps1 +328 -0
- package/scripts/powershell/create-new-feature.ps1 +138 -0
- package/scripts/powershell/setup-plan.ps1 +96 -0
- package/scripts/prepare-npm.mjs +157 -0
- package/templates/checklist-template.md +103 -0
- package/templates/commands/analyze.md +103 -0
- package/templates/commands/checklist.md +87 -0
- package/templates/commands/clarify.md +85 -0
- package/templates/commands/constitution.md +126 -0
- package/templates/commands/implement.md +117 -0
- package/templates/commands/plan.md +125 -0
- package/templates/commands/specify.md +127 -0
- package/templates/commands/tasks.md +98 -0
- package/templates/commands/taskstoissues.md +81 -0
- package/templates/constitution-template.md +48 -0
- package/templates/plan-template.md +150 -0
- package/templates/spec-template.md +116 -0
- package/templates/tasks-template.md +77 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Execute tasks from tasks.md and write implementation code
|
|
3
|
+
handoffs:
|
|
4
|
+
- label: Generate checklist
|
|
5
|
+
agent: rpt.checklist
|
|
6
|
+
prompt: "Generate quality checklist post-implementation"
|
|
7
|
+
send: false
|
|
8
|
+
- label: Analyze consistency
|
|
9
|
+
agent: rpt.analyze
|
|
10
|
+
prompt: "Verify implementation matches spec"
|
|
11
|
+
send: false
|
|
12
|
+
scripts:
|
|
13
|
+
sh: scripts/bash/check-prerequisites.sh --json --require-tasks --include-tasks
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
<!-- prompt-version: 1.0.0 -->
|
|
17
|
+
|
|
18
|
+
# /rpt.implement
|
|
19
|
+
|
|
20
|
+
## User Input
|
|
21
|
+
|
|
22
|
+
```text
|
|
23
|
+
$ARGUMENTS
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Pre-Execution Checks
|
|
27
|
+
|
|
28
|
+
1. Read `.raptor/extensions.yml` (if present).
|
|
29
|
+
2. For each hook registered under `before_implement`:
|
|
30
|
+
- If `optional: false` → execute `EXECUTE_COMMAND: <command>` and wait.
|
|
31
|
+
- If `optional: true` → suggest `/<command>` to the user.
|
|
32
|
+
3. If `.raptor/extensions.yml` is absent or invalid, proceed silently.
|
|
33
|
+
|
|
34
|
+
## Outline
|
|
35
|
+
|
|
36
|
+
1. **Setup**: Run `{SCRIPT}` from repo root. Parse JSON for `FEATURE_DIR`, `AVAILABLE_DOCS`.
|
|
37
|
+
2. **Load context**: Read spec.md, plan.md, data-model.md, contracts/, tasks.md.
|
|
38
|
+
3. **Verify checklists**: If `checklists/requirements.md` is incomplete, ask before proceeding.
|
|
39
|
+
4. **Create ignore files**: Generate `.gitignore`, `.dockerignore`, etc. based on stack in plan.md.
|
|
40
|
+
5. **Execute tasks**: Loop through tasks.md, respecting phase order and parallelization.
|
|
41
|
+
6. **Validate**: Compare implementation against spec success criteria.
|
|
42
|
+
|
|
43
|
+
## Execution Rules (NON-NEGOTIABLE)
|
|
44
|
+
|
|
45
|
+
### Phase Order
|
|
46
|
+
|
|
47
|
+
Complete ALL tasks in Phase N before starting Phase N+1. Verify completion before advancing.
|
|
48
|
+
|
|
49
|
+
### Parallelization
|
|
50
|
+
|
|
51
|
+
Tasks marked `[P]` that operate on DIFFERENT files with NO dependencies may be executed simultaneously.
|
|
52
|
+
Tasks on the SAME file MUST be sequential.
|
|
53
|
+
|
|
54
|
+
### TDD Mode
|
|
55
|
+
|
|
56
|
+
If the spec or plan specifies TDD:
|
|
57
|
+
|
|
58
|
+
1. Write the test FIRST
|
|
59
|
+
2. Run the test (it should fail)
|
|
60
|
+
3. Write the implementation
|
|
61
|
+
4. Run the test (it should pass)
|
|
62
|
+
|
|
63
|
+
### Progress Tracking
|
|
64
|
+
|
|
65
|
+
After completing each task:
|
|
66
|
+
|
|
67
|
+
1. Change `- [ ]` to `- [X]` in `tasks.md`
|
|
68
|
+
2. Save the file immediately
|
|
69
|
+
3. Continue to next task
|
|
70
|
+
|
|
71
|
+
### Resumption
|
|
72
|
+
|
|
73
|
+
When re-executing `/rpt.implement`:
|
|
74
|
+
|
|
75
|
+
1. Read `tasks.md`
|
|
76
|
+
2. Skip all `[X]` (completed) tasks
|
|
77
|
+
3. Resume from the first `[ ]` (uncompleted) task
|
|
78
|
+
4. Do NOT re-execute completed tasks
|
|
79
|
+
|
|
80
|
+
### Ignore Files
|
|
81
|
+
|
|
82
|
+
Based on the tech stack detected in `plan.md`, create/verify:
|
|
83
|
+
|
|
84
|
+
- `.gitignore` — standard patterns for the stack
|
|
85
|
+
- `.dockerignore` — if Docker is used
|
|
86
|
+
- `.eslintignore` — if ESLint is used
|
|
87
|
+
- `.prettierignore` — if Prettier is used
|
|
88
|
+
|
|
89
|
+
Only create files that don't already exist. Append patterns to existing files if needed.
|
|
90
|
+
|
|
91
|
+
## Validation
|
|
92
|
+
|
|
93
|
+
After all tasks are complete:
|
|
94
|
+
|
|
95
|
+
1. **Spec compliance**: Read `spec.md` acceptance criteria. For each criterion:
|
|
96
|
+
- Mark as ✅ (met) or ❌ (gap).
|
|
97
|
+
- For gaps, explain what's missing and what task would fix it.
|
|
98
|
+
|
|
99
|
+
2. **Test execution**: If tests are defined, run them and report results.
|
|
100
|
+
|
|
101
|
+
3. **Implementation report**: Generate a summary in the conversation:
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
Implementation Complete:
|
|
105
|
+
- Tasks: X/Y completed
|
|
106
|
+
- Spec criteria: A/B met
|
|
107
|
+
- Tests: P passed, F failed
|
|
108
|
+
- Gaps: [list if any]
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## Final Hook Check
|
|
112
|
+
|
|
113
|
+
1. Read `.raptor/extensions.yml` (if present).
|
|
114
|
+
2. For each hook registered under `after_implement`:
|
|
115
|
+
- If `optional: false` → execute `EXECUTE_COMMAND: <command>` and wait.
|
|
116
|
+
- If `optional: true` → suggest `/<command>` to the user.
|
|
117
|
+
3. If `.raptor/extensions.yml` is absent or invalid, proceed silently.
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Generate implementation plan with research, data model, contracts, and quickstart
|
|
3
|
+
handoffs:
|
|
4
|
+
- label: Generate tasks
|
|
5
|
+
agent: rpt.tasks
|
|
6
|
+
prompt: "Break the plan into implementable tasks"
|
|
7
|
+
send: false
|
|
8
|
+
- label: Analyze consistency
|
|
9
|
+
agent: rpt.analyze
|
|
10
|
+
prompt: "Analyze consistency between spec and plan"
|
|
11
|
+
send: false
|
|
12
|
+
scripts:
|
|
13
|
+
sh: scripts/bash/setup-plan.sh --json
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
<!-- prompt-version: 1.0.0 -->
|
|
17
|
+
|
|
18
|
+
# /rpt.plan
|
|
19
|
+
|
|
20
|
+
## User Input
|
|
21
|
+
|
|
22
|
+
```text
|
|
23
|
+
$ARGUMENTS
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Pre-Execution Checks
|
|
27
|
+
|
|
28
|
+
1. Read `.raptor/extensions.yml` (if present).
|
|
29
|
+
2. For each hook registered under `before_plan`:
|
|
30
|
+
- If `optional: false` → execute `EXECUTE_COMMAND: <command>` and wait.
|
|
31
|
+
- If `optional: true` → suggest `/<command>` to the user.
|
|
32
|
+
3. If `.raptor/extensions.yml` is absent or invalid, proceed silently.
|
|
33
|
+
|
|
34
|
+
## Outline
|
|
35
|
+
|
|
36
|
+
1. **Setup**: Run `{SCRIPT}` from repo root. Parse JSON for `FEATURE_SPEC`, `IMPL_PLAN`, `SPECS_DIR`, `BRANCH`, `HAS_GIT`.
|
|
37
|
+
2. **Load context**: Read `FEATURE_SPEC` (spec.md) and `.raptor/memory/constitution.md`.
|
|
38
|
+
3. **Fill plan**: Write `plan.md` with Technical Context + Constitution Check (initial).
|
|
39
|
+
4. **Phase 0**: Generate `research.md` resolving unknowns from the spec.
|
|
40
|
+
5. **Phase 1**: Generate `data-model.md`, `contracts/`, `quickstart.md`.
|
|
41
|
+
6. **Update context file**: Write between `<!-- RAPTOR START -->` / `<!-- RAPTOR END -->` markers in `__CONTEXT_FILE__`.
|
|
42
|
+
7. **Post-design Constitution Check**: Re-evaluate all principles after design.
|
|
43
|
+
|
|
44
|
+
## Phases
|
|
45
|
+
|
|
46
|
+
### Phase 0 — Research
|
|
47
|
+
|
|
48
|
+
Read `spec.md` and identify technical unknowns (libraries, APIs, patterns, constraints).
|
|
49
|
+
|
|
50
|
+
Generate `<FEATURE_DIR>/research.md`:
|
|
51
|
+
|
|
52
|
+
- External dependencies to evaluate
|
|
53
|
+
- API documentation summaries
|
|
54
|
+
- Pattern recommendations
|
|
55
|
+
- Performance considerations
|
|
56
|
+
- Security implications
|
|
57
|
+
|
|
58
|
+
### Phase 1 — Technical Design
|
|
59
|
+
|
|
60
|
+
Generate the following artifacts:
|
|
61
|
+
|
|
62
|
+
**`<FEATURE_DIR>/data-model.md`**:
|
|
63
|
+
|
|
64
|
+
- Entity definitions (fields, types, constraints)
|
|
65
|
+
- Relationships (1:1, 1:N, N:N)
|
|
66
|
+
- Lifecycle (creation, mutation, deletion)
|
|
67
|
+
- Indexes and performance considerations
|
|
68
|
+
|
|
69
|
+
**`<FEATURE_DIR>/contracts/`**:
|
|
70
|
+
|
|
71
|
+
- API endpoint definitions (REST/GraphQL/gRPC)
|
|
72
|
+
- Event schemas
|
|
73
|
+
- Deep link definitions
|
|
74
|
+
- External service contracts
|
|
75
|
+
|
|
76
|
+
**`<FEATURE_DIR>/quickstart.md`**:
|
|
77
|
+
|
|
78
|
+
- Step-by-step setup guide
|
|
79
|
+
- Development environment requirements
|
|
80
|
+
- Configuration needed
|
|
81
|
+
- First-run instructions
|
|
82
|
+
|
|
83
|
+
### Phase 2 — Plan Authoring
|
|
84
|
+
|
|
85
|
+
Fill `plan.md` sections:
|
|
86
|
+
|
|
87
|
+
1. Context & Constraints
|
|
88
|
+
2. Architecture Overview (include mermaid diagram)
|
|
89
|
+
3. Data Model (reference `data-model.md`)
|
|
90
|
+
4. Contracts (reference `contracts/`)
|
|
91
|
+
5. Decisions (numbered, with rationale)
|
|
92
|
+
6. Alternatives considered
|
|
93
|
+
7. Risks & Mitigations
|
|
94
|
+
8. Rollout & Reversibility
|
|
95
|
+
9. Observability
|
|
96
|
+
|
|
97
|
+
### Phase 3 — Constitution Check
|
|
98
|
+
|
|
99
|
+
**Initial Check**: Read `.raptor/memory/constitution.md`. For each principle, evaluate compatibility with the design. Fill the "Initial Check" table in `plan.md`.
|
|
100
|
+
|
|
101
|
+
**Post-Design Check**: After all design artifacts are generated, re-evaluate each principle. Fill the "Post-Design Check" table. Flag any newly introduced violations.
|
|
102
|
+
|
|
103
|
+
### Phase 4 — Context File Update
|
|
104
|
+
|
|
105
|
+
Update `__CONTEXT_FILE__` between markers:
|
|
106
|
+
|
|
107
|
+
```markdown
|
|
108
|
+
<!-- RAPTOR START -->
|
|
109
|
+
## Active Feature: <feature-name>
|
|
110
|
+
|
|
111
|
+
- Spec: specs/<feature>/spec.md
|
|
112
|
+
- Plan: specs/<feature>/plan.md
|
|
113
|
+
- Status: planning
|
|
114
|
+
<!-- RAPTOR END -->
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
Insertion must be **idempotent** — replace existing block if markers already exist.
|
|
118
|
+
|
|
119
|
+
## Final Hook Check
|
|
120
|
+
|
|
121
|
+
1. Read `.raptor/extensions.yml` (if present).
|
|
122
|
+
2. For each hook registered under `after_plan`:
|
|
123
|
+
- If `optional: false` → execute `EXECUTE_COMMAND: <command>` and wait.
|
|
124
|
+
- If `optional: true` → suggest `/<command>` to the user.
|
|
125
|
+
3. If `.raptor/extensions.yml` is absent or invalid, proceed silently.
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Create or update a feature specification from a natural language description
|
|
3
|
+
handoffs:
|
|
4
|
+
- label: Clarify ambiguities
|
|
5
|
+
agent: rpt.clarify
|
|
6
|
+
prompt: "Clarify the open questions in the spec"
|
|
7
|
+
send: false
|
|
8
|
+
- label: Plan the implementation
|
|
9
|
+
agent: rpt.plan
|
|
10
|
+
prompt: "Create an implementation plan based on the spec"
|
|
11
|
+
send: false
|
|
12
|
+
scripts:
|
|
13
|
+
sh: scripts/bash/create-new-feature.sh --json
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
<!-- prompt-version: 1.0.0 -->
|
|
17
|
+
|
|
18
|
+
# /rpt.specify
|
|
19
|
+
|
|
20
|
+
## User Input
|
|
21
|
+
|
|
22
|
+
```text
|
|
23
|
+
$ARGUMENTS
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Pre-Execution Checks
|
|
27
|
+
|
|
28
|
+
1. Read `.raptor/extensions.yml` (if present).
|
|
29
|
+
2. For each hook registered under `before_specify`:
|
|
30
|
+
- If `optional: false` → execute `EXECUTE_COMMAND: <command>` and wait for completion.
|
|
31
|
+
- If `optional: true` → render suggestion button `/<command>`.
|
|
32
|
+
- If `enabled: false` → skip silently.
|
|
33
|
+
3. If `.raptor/extensions.yml` is absent or invalid, proceed silently.
|
|
34
|
+
|
|
35
|
+
## Outline
|
|
36
|
+
|
|
37
|
+
1. **Setup**: Run `{SCRIPT}` from repo root and parse JSON for `BRANCH_NAME`, `FEATURE_NUM`, `FEATURE_DIR`.
|
|
38
|
+
2. **Resolve directory**: Set `RAPTOR_FEATURE_DIRECTORY` to the resolved `FEATURE_DIR`.
|
|
39
|
+
3. **Create spec directory**: Ensure `specs/<FEATURE_DIR>/` exists.
|
|
40
|
+
4. **Copy template**: Resolve `spec-template.md` via priority stack and copy to `<FEATURE_DIR>/spec.md`.
|
|
41
|
+
5. **Parse description**: Transform user's natural language description (`$ARGUMENTS`) into structured spec sections.
|
|
42
|
+
6. **Auto-validate**: Up to 3 self-validation iterations. Mark `[NEEDS CLARIFICATION]` for genuinely ambiguous items (max 3).
|
|
43
|
+
7. **Generate checklist**: Create `<FEATURE_DIR>/checklists/requirements.md` with quality gates.
|
|
44
|
+
8. **Persist state**: Write/update `.raptor/feature.json` with `{"feature_directory": "<FEATURE_DIR>"}`.
|
|
45
|
+
|
|
46
|
+
## Phases
|
|
47
|
+
|
|
48
|
+
### Phase 0 — Feature Branch & Directory
|
|
49
|
+
|
|
50
|
+
Run `{SCRIPT}` with `{ARGS}` from the repository root. Parse the JSON output:
|
|
51
|
+
|
|
52
|
+
```json
|
|
53
|
+
{
|
|
54
|
+
"BRANCH_NAME": "003-user-auth",
|
|
55
|
+
"FEATURE_NUM": "003",
|
|
56
|
+
"FEATURE_DIR": "specs/003-user-auth"
|
|
57
|
+
}
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Create the spec directory if it doesn't exist.
|
|
61
|
+
|
|
62
|
+
### Phase 1 — Spec Template Resolution
|
|
63
|
+
|
|
64
|
+
Resolve `spec-template.md` using the priority stack:
|
|
65
|
+
|
|
66
|
+
1. `.raptor/templates/overrides/spec-template.md`
|
|
67
|
+
2. `.raptor/presets/<id>/templates/spec-template.md`
|
|
68
|
+
3. `.raptor/extensions/<id>/templates/spec-template.md`
|
|
69
|
+
4. `.raptor/templates/spec-template.md`
|
|
70
|
+
|
|
71
|
+
Copy the resolved template to `<FEATURE_DIR>/spec.md`.
|
|
72
|
+
|
|
73
|
+
### Phase 2 — Specification Authoring
|
|
74
|
+
|
|
75
|
+
Transform `$ARGUMENTS` into structured spec sections:
|
|
76
|
+
|
|
77
|
+
- **Summary**: One-paragraph description of the feature.
|
|
78
|
+
- **User Stories**: Formatted as `As a <role>, I want to <action>, so that <benefit>`.
|
|
79
|
+
- **Acceptance Criteria**: Given/When/Then format.
|
|
80
|
+
- **Technical Constraints**: Architecture boundaries, dependencies, non-functional requirements.
|
|
81
|
+
- **Out of Scope**: Explicit exclusions.
|
|
82
|
+
|
|
83
|
+
Rules:
|
|
84
|
+
|
|
85
|
+
- Mark genuinely ambiguous items as `[NEEDS CLARIFICATION: <question>]` (max 3 total).
|
|
86
|
+
- Do NOT invent requirements — only capture what is in `$ARGUMENTS` and reasonable inferences.
|
|
87
|
+
- Prefer concrete, testable criteria over vague descriptions.
|
|
88
|
+
|
|
89
|
+
### Phase 3 — Self-Validation
|
|
90
|
+
|
|
91
|
+
Perform up to 3 iterations:
|
|
92
|
+
|
|
93
|
+
1. Re-read the generated spec.
|
|
94
|
+
2. Check for internal contradictions, missing acceptance criteria, and unclear scope.
|
|
95
|
+
3. Fix any issues found.
|
|
96
|
+
4. If `[NEEDS CLARIFICATION]` items remain after 3 iterations, present a Q&A table to the user.
|
|
97
|
+
|
|
98
|
+
### Phase 4 — Quality Gate Checklist
|
|
99
|
+
|
|
100
|
+
Create `<FEATURE_DIR>/checklists/requirements.md`:
|
|
101
|
+
|
|
102
|
+
```markdown
|
|
103
|
+
# Requirements Checklist — <feature-name>
|
|
104
|
+
|
|
105
|
+
- [ ] All user stories have acceptance criteria
|
|
106
|
+
- [ ] Non-functional requirements are specified (performance, security, accessibility)
|
|
107
|
+
- [ ] Dependencies are listed
|
|
108
|
+
- [ ] Out-of-scope is explicit
|
|
109
|
+
- [ ] No more than 3 [NEEDS CLARIFICATION] items
|
|
110
|
+
- [ ] Spec is self-consistent (no contradictions)
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Phase 5 — State Persistence
|
|
114
|
+
|
|
115
|
+
Write `.raptor/feature.json`:
|
|
116
|
+
|
|
117
|
+
```json
|
|
118
|
+
{ "feature_directory": "<FEATURE_DIR>" }
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## Final Hook Check
|
|
122
|
+
|
|
123
|
+
1. Read `.raptor/extensions.yml` (if present).
|
|
124
|
+
2. For each hook registered under `after_specify`:
|
|
125
|
+
- If `optional: false` → execute `EXECUTE_COMMAND: <command>` and wait.
|
|
126
|
+
- If `optional: true` → suggest `/<command>` to the user.
|
|
127
|
+
3. If `.raptor/extensions.yml` is absent or invalid, proceed silently.
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Break implementation plan into strict checklist tasks
|
|
3
|
+
handoffs:
|
|
4
|
+
- label: Implement tasks
|
|
5
|
+
agent: rpt.implement
|
|
6
|
+
prompt: "Execute the tasks and write code"
|
|
7
|
+
send: false
|
|
8
|
+
- label: Analyze consistency
|
|
9
|
+
agent: rpt.analyze
|
|
10
|
+
prompt: "Verify tasks align with spec and plan"
|
|
11
|
+
send: false
|
|
12
|
+
scripts:
|
|
13
|
+
sh: scripts/bash/check-prerequisites.sh --json
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
<!-- prompt-version: 1.0.0 -->
|
|
17
|
+
|
|
18
|
+
# /rpt.tasks
|
|
19
|
+
|
|
20
|
+
## User Input
|
|
21
|
+
|
|
22
|
+
```text
|
|
23
|
+
$ARGUMENTS
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Pre-Execution Checks
|
|
27
|
+
|
|
28
|
+
1. Read `.raptor/extensions.yml` (if present).
|
|
29
|
+
2. For each hook registered under `before_tasks`:
|
|
30
|
+
- If `optional: false` → execute `EXECUTE_COMMAND: <command>` and wait.
|
|
31
|
+
- If `optional: true` → suggest `/<command>` to the user.
|
|
32
|
+
3. If `.raptor/extensions.yml` is absent or invalid, proceed silently.
|
|
33
|
+
|
|
34
|
+
## Outline
|
|
35
|
+
|
|
36
|
+
1. **Setup**: Run `{SCRIPT}` from repo root. Parse JSON for `FEATURE_DIR`, `AVAILABLE_DOCS`.
|
|
37
|
+
2. **Load all artifacts**: Read spec.md, plan.md, research.md, data-model.md, contracts/, quickstart.md.
|
|
38
|
+
3. **Map user stories**: Extract user stories from spec.md and classify as P1/P2/P3.
|
|
39
|
+
4. **Generate tasks**: Create `tasks.md` in strict checklist format.
|
|
40
|
+
|
|
41
|
+
## Task Format (NON-NEGOTIABLE)
|
|
42
|
+
|
|
43
|
+
Each task line MUST follow this format:
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
- [ ] T<NNN> <Description with explicit file path>
|
|
47
|
+
- [ ] T<NNN> [P] <Description in src/path/file.ts>
|
|
48
|
+
- [ ] T<NNN> [P] [US<N>] <Description in src/path/file.ts>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Components:
|
|
52
|
+
|
|
53
|
+
- `[ ]` / `[X]` — checkbox (unchecked / completed)
|
|
54
|
+
- `T<NNN>` — sequential ID (T001, T002, ...)
|
|
55
|
+
- `[P]` — parallelizable (optional): task can run alongside other `[P]` tasks in same phase
|
|
56
|
+
- `[US<N>]` — user story reference (optional): links to spec user story
|
|
57
|
+
- Description MUST include explicit file path
|
|
58
|
+
|
|
59
|
+
## Phase Structure
|
|
60
|
+
|
|
61
|
+
Tasks MUST be organized in phases:
|
|
62
|
+
|
|
63
|
+
```markdown
|
|
64
|
+
## Phase 1: Setup
|
|
65
|
+
- [ ] T001 Initialize project structure in src/
|
|
66
|
+
- [ ] T002 [P] Install dependencies in package.json
|
|
67
|
+
|
|
68
|
+
## Phase 2: Foundational
|
|
69
|
+
- [ ] T003 Create base types in src/types/index.ts
|
|
70
|
+
- [ ] T004 [P] Create database schema in src/db/schema.ts
|
|
71
|
+
|
|
72
|
+
## Phase 3: User Stories (P1)
|
|
73
|
+
- [ ] T005 [US1] Implement user registration in src/auth/register.ts
|
|
74
|
+
- [ ] T006 [P] [US1] Create registration form in src/ui/RegisterForm.tsx
|
|
75
|
+
|
|
76
|
+
## Phase 4: User Stories (P2)
|
|
77
|
+
- [ ] T010 [US3] Add profile editing in src/profile/edit.ts
|
|
78
|
+
|
|
79
|
+
## Phase N: Polish & Cross-cutting
|
|
80
|
+
- [ ] T020 Add error handling across src/
|
|
81
|
+
- [ ] T021 [P] Add logging in src/utils/logger.ts
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Rules
|
|
85
|
+
|
|
86
|
+
1. **Each task must be self-sufficient** for an LLM to implement in isolation.
|
|
87
|
+
2. **Description + path**: every task references a concrete file.
|
|
88
|
+
3. **Order matters**: Phase N depends on Phase N-1 being complete.
|
|
89
|
+
4. **Parallel `[P]`**: only between tasks that touch DIFFERENT files with no deps.
|
|
90
|
+
5. **Granularity**: one task = one prompt = one coherent change.
|
|
91
|
+
|
|
92
|
+
## Final Hook Check
|
|
93
|
+
|
|
94
|
+
1. Read `.raptor/extensions.yml` (if present).
|
|
95
|
+
2. For each hook registered under `after_tasks`:
|
|
96
|
+
- If `optional: false` → execute `EXECUTE_COMMAND: <command>` and wait.
|
|
97
|
+
- If `optional: true` → suggest `/<command>` to the user.
|
|
98
|
+
3. If `.raptor/extensions.yml` is absent or invalid, proceed silently.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Convert the generated task list into tracker issues (GitHub by default) for execution and tracking
|
|
3
|
+
handoffs:
|
|
4
|
+
- label: Implement the tasks
|
|
5
|
+
agent: rpt.implement
|
|
6
|
+
prompt: "Execute the tasks from tasks.md"
|
|
7
|
+
send: false
|
|
8
|
+
scripts:
|
|
9
|
+
sh: scripts/bash/check-prerequisites.sh --json
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<!-- prompt-version: 1.0.0 -->
|
|
13
|
+
|
|
14
|
+
# /rpt.taskstoissues
|
|
15
|
+
|
|
16
|
+
## User Input
|
|
17
|
+
|
|
18
|
+
```text
|
|
19
|
+
$ARGUMENTS
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Pre-Execution Checks
|
|
23
|
+
|
|
24
|
+
1. Read `.raptor/extensions.yml` (if present).
|
|
25
|
+
2. For each hook registered under `before_taskstoissues`:
|
|
26
|
+
- If `optional: false` → execute `EXECUTE_COMMAND: <command>` and wait for completion.
|
|
27
|
+
- If `optional: true` → render suggestion button `/<command>`.
|
|
28
|
+
- If `enabled: false` → skip silently.
|
|
29
|
+
3. If `.raptor/extensions.yml` is absent or invalid, proceed silently.
|
|
30
|
+
|
|
31
|
+
## Outline
|
|
32
|
+
|
|
33
|
+
1. **Setup**: Run `{SCRIPT}` and parse JSON for `FEATURE_DIR` and the available docs.
|
|
34
|
+
2. **Locate tasks**: Read `<FEATURE_DIR>/tasks.md`; require `status: approved` in its frontmatter.
|
|
35
|
+
3. **Detect tracker**: Resolve the remote (`git config --get remote.origin.url`). If no remote, STOP and tell the user to add one or choose a tracker.
|
|
36
|
+
4. **Create one issue per task**: Preserve task order and dependencies; carry the `[US#]`/`[P]` tags into labels.
|
|
37
|
+
5. **Link back**: Record the created issue ids/URLs next to each task in `tasks.md` (or an `issues.md` map).
|
|
38
|
+
|
|
39
|
+
## Phases
|
|
40
|
+
|
|
41
|
+
### Phase 0 — Prerequisites
|
|
42
|
+
|
|
43
|
+
Run `{SCRIPT}` from the repository root and parse the JSON. Resolve `FEATURE_DIR`
|
|
44
|
+
and confirm `tasks.md` exists and is approved.
|
|
45
|
+
|
|
46
|
+
### Phase 1 — Tracker Resolution
|
|
47
|
+
|
|
48
|
+
Determine the target tracker:
|
|
49
|
+
|
|
50
|
+
- **GitHub (default)**: confirm `git config --get remote.origin.url` points to a
|
|
51
|
+
GitHub repository. Use the available GitHub MCP server / `gh` CLI to create issues.
|
|
52
|
+
- **Jira (optional)**: only if a Jira extension is configured in `.raptor/extensions.yml`.
|
|
53
|
+
- If neither is available, STOP with a clear message — do NOT fabricate issue ids.
|
|
54
|
+
|
|
55
|
+
### Phase 2 — Issue Creation
|
|
56
|
+
|
|
57
|
+
For each task `T###` in `tasks.md`, in dependency order:
|
|
58
|
+
|
|
59
|
+
1. Title: `T### — <task description>`.
|
|
60
|
+
2. Body: the task's acceptance intent + a back-link to `<FEATURE_DIR>/tasks.md` and the spec.
|
|
61
|
+
3. Labels: the user story tag(s) (`US#`), `parallel` when `[P]`, and the feature slug.
|
|
62
|
+
4. Create the issue via the resolved tracker.
|
|
63
|
+
|
|
64
|
+
Rules:
|
|
65
|
+
|
|
66
|
+
- One issue per task — do NOT batch.
|
|
67
|
+
- Preserve order; if task B depends on A, note the dependency in B's body.
|
|
68
|
+
- Be idempotent: if an issue for a task already exists (recorded in the map), skip it.
|
|
69
|
+
|
|
70
|
+
### Phase 3 — Back-Reference
|
|
71
|
+
|
|
72
|
+
Write `<FEATURE_DIR>/issues.md` mapping each `T###` to its created issue id/URL,
|
|
73
|
+
so re-runs are idempotent and `implement` can reference them.
|
|
74
|
+
|
|
75
|
+
## Final Hook Check
|
|
76
|
+
|
|
77
|
+
1. Read `.raptor/extensions.yml` (if present).
|
|
78
|
+
2. For each hook registered under `after_taskstoissues`:
|
|
79
|
+
- If `optional: false` → execute `EXECUTE_COMMAND: <command>` and wait.
|
|
80
|
+
- If `optional: true` → suggest `/<command>` to the user.
|
|
81
|
+
3. If `.raptor/extensions.yml` is absent or invalid, proceed silently.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Constitution — {{ projectName }}
|
|
2
|
+
|
|
3
|
+
> **Version**: 1.0.0
|
|
4
|
+
> **Created**: {{ createdAt }}
|
|
5
|
+
> **Last Updated**: {{ createdAt }}
|
|
6
|
+
> **Preset**: {{ preset }}
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Core Principles
|
|
11
|
+
|
|
12
|
+
These principles are non-negotiable. Violating any principle without explicit justification is an ERROR that blocks the pipeline.
|
|
13
|
+
|
|
14
|
+
### [PRINCIPLE_1_NAME]
|
|
15
|
+
|
|
16
|
+
[PRINCIPLE_1_DESCRIPTION]
|
|
17
|
+
|
|
18
|
+
### [PRINCIPLE_2_NAME]
|
|
19
|
+
|
|
20
|
+
[PRINCIPLE_2_DESCRIPTION]
|
|
21
|
+
|
|
22
|
+
### [PRINCIPLE_3_NAME]
|
|
23
|
+
|
|
24
|
+
[PRINCIPLE_3_DESCRIPTION]
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## [SECTION_NAME]
|
|
29
|
+
|
|
30
|
+
> Add project-specific sections below. Each section codifies a class of
|
|
31
|
+
> architectural decisions that the team considers immutable.
|
|
32
|
+
|
|
33
|
+
### [SECTION_PRINCIPLE_1_NAME]
|
|
34
|
+
|
|
35
|
+
[SECTION_PRINCIPLE_1_DESCRIPTION]
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Ratification History
|
|
40
|
+
|
|
41
|
+
| Version | Date | Author | Change |
|
|
42
|
+
|---------|------|--------|--------|
|
|
43
|
+
| 1.0.0 | {{ createdAt }} | System | Initial constitution created via `raptor init` |
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
<!-- RAPTOR-CONSTITUTION-FOOTER -->
|
|
48
|
+
<!-- Do not edit below this line. Managed by /rpt.constitution -->
|