raptor-aios 0.5.0 → 0.6.1
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/dist/_core/dist/agents/adapters/antigravity.js +0 -7
- package/dist/_core/dist/agents/adapters/claude-code.js +0 -8
- package/dist/_core/dist/agents/adapters/codex.js +0 -10
- package/dist/_core/dist/agents/adapters/copilot.js +0 -10
- package/dist/_core/dist/agents/adapters/cursor.js +0 -7
- package/dist/_core/dist/agents/adapters/gemini.js +0 -9
- package/dist/_core/dist/agents/adapters/human.js +0 -8
- package/dist/_core/dist/agents/artifact-watcher.js +0 -64
- package/dist/_core/dist/agents/backup.js +0 -40
- package/dist/_core/dist/agents/config.js +1 -45
- package/dist/_core/dist/agents/context-file.js +0 -29
- package/dist/_core/dist/agents/handoff.js +0 -32
- package/dist/_core/dist/agents/index.js +0 -19
- package/dist/_core/dist/agents/keys.js +0 -28
- package/dist/_core/dist/agents/materialize.js +0 -1
- package/dist/_core/dist/agents/prompt-builder.js +8 -23
- package/dist/_core/dist/agents/prompt-markers.js +0 -56
- package/dist/_core/dist/agents/registry.js +1 -34
- package/dist/_core/dist/agents/selector.js +1 -32
- package/dist/_core/dist/agents/slash-materializer.js +0 -48
- package/dist/_core/dist/agents/types.js +0 -9
- package/dist/_core/dist/audit/hash.js +0 -1
- package/dist/_core/dist/audit/index.js +0 -1
- package/dist/_core/dist/audit/logger.js +0 -2
- package/dist/_core/dist/audit/query.js +0 -1
- package/dist/_core/dist/audit/schema.js +3 -3
- package/dist/_core/dist/audit/validate.js +0 -1
- package/dist/_core/dist/constitution/core.js +0 -1
- package/dist/_core/dist/constitution/index.js +0 -1
- package/dist/_core/dist/design/detect.js +40 -0
- package/dist/_core/dist/design/index.js +6 -0
- package/dist/_core/dist/design/manifest.js +68 -0
- package/dist/_core/dist/design/mapper.js +16 -0
- package/dist/_core/dist/design/scaffold.js +77 -0
- package/dist/_core/dist/design/tokens.js +48 -0
- package/dist/_core/dist/design/types.js +8 -0
- package/dist/_core/dist/extensions/index.js +0 -6
- package/dist/_core/dist/extensions/integrate.js +0 -49
- package/dist/_core/dist/extensions/loader.js +0 -17
- package/dist/_core/dist/extensions/manifest.js +0 -25
- package/dist/_core/dist/extensions/registry.js +0 -15
- package/dist/_core/dist/extensions/resolver.js +0 -21
- package/dist/_core/dist/extensions/types.js +0 -26
- package/dist/_core/dist/frontmatter/index.js +0 -1
- package/dist/_core/dist/gates/agent-gates.js +4 -43
- package/dist/_core/dist/gates/branch-gate.js +0 -10
- package/dist/_core/dist/gates/builtin.js +2 -30
- package/dist/_core/dist/gates/design-gates.js +156 -0
- package/dist/_core/dist/gates/index.js +1 -1
- package/dist/_core/dist/gates/m7-gates.js +1 -28
- package/dist/_core/dist/gates/phase-gates.js +0 -38
- package/dist/_core/dist/gates/runner.js +0 -1
- package/dist/_core/dist/gates/types.js +0 -1
- package/dist/_core/dist/git/commit-guard.js +0 -45
- package/dist/_core/dist/git/commit-policy.js +0 -30
- package/dist/_core/dist/git/executor.js +0 -17
- package/dist/_core/dist/git/index.js +0 -8
- package/dist/_core/dist/git/naming.js +2 -35
- package/dist/_core/dist/git/repo.js +0 -33
- package/dist/_core/dist/hooks/index.js +0 -1
- package/dist/_core/dist/hooks/runner.js +0 -24
- package/dist/_core/dist/hooks/runtime.js +1 -66
- package/dist/_core/dist/hooks/types.js +0 -1
- package/dist/_core/dist/index.js +1 -1
- package/dist/_core/dist/jira/credentials.js +0 -19
- package/dist/_core/dist/jira/dialects.js +1 -30
- package/dist/_core/dist/jira/index.js +0 -5
- package/dist/_core/dist/jira/mapper.js +0 -39
- package/dist/_core/dist/jira/mcp-client.js +0 -51
- package/dist/_core/dist/jira/oauth.js +0 -26
- package/dist/_core/dist/jira/types.js +0 -19
- package/dist/_core/dist/manifest/index.js +0 -23
- package/dist/_core/dist/markers/index.js +0 -51
- package/dist/_core/dist/mcp/config.js +0 -9
- package/dist/_core/dist/mcp/index.js +0 -4
- package/dist/_core/dist/mcp/materializer.js +0 -23
- package/dist/_core/dist/mcp/targets.js +0 -15
- package/dist/_core/dist/mcp/types.js +0 -7
- package/dist/_core/dist/models/analyze.js +0 -55
- package/dist/_core/dist/models/checklist.js +0 -43
- package/dist/_core/dist/models/clarify.js +0 -60
- package/dist/_core/dist/models/impl-log.js +1 -44
- package/dist/_core/dist/models/index.js +0 -1
- package/dist/_core/dist/models/plan.js +0 -1
- package/dist/_core/dist/models/spec.js +0 -5
- package/dist/_core/dist/models/tasks.js +0 -4
- package/dist/_core/dist/presets/gates.js +0 -1
- package/dist/_core/dist/presets/index.js +0 -1
- package/dist/_core/dist/presets/loader.js +0 -29
- package/dist/_core/dist/presets/mobile-opinionated.js +0 -1
- package/dist/_core/dist/presets/registry.js +0 -1
- package/dist/_core/dist/presets/renderer.js +0 -1
- package/dist/_core/dist/presets/stacking.js +0 -15
- package/dist/_core/dist/presets/types.js +0 -1
- package/dist/_core/dist/prompts/audit-log.js +0 -29
- package/dist/_core/dist/prompts/index.js +0 -4
- package/dist/_core/dist/prompts/renderer.js +0 -69
- package/dist/_core/dist/prompts/resumption.js +1 -46
- package/dist/_core/dist/skills/config.js +0 -16
- package/dist/_core/dist/skills/index.js +0 -4
- package/dist/_core/dist/skills/materializer.js +0 -27
- package/dist/_core/dist/skills/registry.js +0 -14
- package/dist/_core/dist/skills/types.js +0 -12
- package/dist/_core/dist/state/feature.js +0 -18
- package/dist/_core/dist/state/index.js +0 -4
- package/dist/_core/dist/state/init-options.js +0 -15
- package/dist/_core/dist/template/engine.js +0 -1
- package/dist/_core/dist/template/helpers.js +0 -1
- package/dist/_core/dist/template/index.js +0 -1
- package/dist/_core/dist/template/loader.js +0 -7
- package/dist/_core/dist/template/parser.js +0 -1
- package/dist/_core/dist/template/types.js +0 -1
- package/dist/_core/dist/verify/a11y.js +1 -29
- package/dist/_core/dist/verify/architecture.js +0 -19
- package/dist/_core/dist/verify/index.js +0 -5
- package/dist/_core/dist/verify/os-matrix.js +1 -18
- package/dist/_core/dist/verify/perf.js +0 -26
- package/dist/_core/dist/verify/stores.js +0 -14
- package/dist/_core/dist/version.js +0 -7
- package/dist/_core/dist/workflows/bundled.js +0 -39
- package/dist/_core/dist/workflows/engine.js +0 -59
- package/dist/_core/dist/workflows/expressions.js +0 -53
- package/dist/_core/dist/workflows/index.js +0 -9
- package/dist/_core/dist/workflows/parser.js +0 -47
- package/dist/_core/dist/workflows/sdd-flow.js +2 -56
- package/dist/_core/dist/workflows/types.js +0 -12
- package/dist/_core/package.json +1 -1
- package/dist/_core/templates/spec.md.hbs +27 -0
- package/dist/base-command.js +0 -9
- package/dist/commands/add-agent.js +0 -22
- package/dist/commands/add-extension.js +0 -11
- package/dist/commands/analyze.js +1 -31
- package/dist/commands/approve.js +0 -1
- package/dist/commands/audit/query.js +0 -1
- package/dist/commands/audit/show.js +0 -1
- package/dist/commands/checklist.js +0 -10
- package/dist/commands/clarify.js +0 -13
- package/dist/commands/commit.js +0 -23
- package/dist/commands/doctor.js +0 -19
- package/dist/commands/extension/add.js +0 -1
- package/dist/commands/extension/info.js +0 -1
- package/dist/commands/extension/list.js +0 -1
- package/dist/commands/extension/remove.js +0 -1
- package/dist/commands/gate/approve.js +0 -1
- package/dist/commands/gate/list.js +0 -1
- package/dist/commands/gate/skip.js +0 -1
- package/dist/commands/hook/list.js +0 -5
- package/dist/commands/hook/run.js +0 -1
- package/dist/commands/hotfix.js +0 -1
- package/dist/commands/implement.js +0 -13
- package/dist/commands/init.js +1 -65
- package/dist/commands/jira/connect.js +0 -7
- package/dist/commands/jira/disconnect.js +0 -1
- package/dist/commands/jira/pull.js +0 -1
- package/dist/commands/jira/status.js +0 -1
- package/dist/commands/list-agents.js +0 -10
- package/dist/commands/mcp/add.js +0 -2
- package/dist/commands/mcp/list.js +0 -1
- package/dist/commands/mcp/remove.js +0 -6
- package/dist/commands/mcp/sync.js +0 -1
- package/dist/commands/new.js +53 -58
- package/dist/commands/plan.js +0 -5
- package/dist/commands/preset/add.js +1 -3
- package/dist/commands/preset/info.js +0 -1
- package/dist/commands/preset/list.js +0 -1
- package/dist/commands/preset/remove.js +0 -1
- package/dist/commands/repair/constitution.js +0 -1
- package/dist/commands/resync.js +0 -12
- package/dist/commands/scan.js +0 -11
- package/dist/commands/skill/add.js +0 -5
- package/dist/commands/skill/list.js +0 -1
- package/dist/commands/skill/remove.js +0 -5
- package/dist/commands/skill/sync.js +0 -1
- package/dist/commands/status.js +0 -11
- package/dist/commands/tasks.js +0 -5
- package/dist/commands/taskstoissues.js +0 -9
- package/dist/commands/trace.js +0 -1
- package/dist/commands/upgrade.js +0 -36
- package/dist/commands/verify/a11y.js +0 -4
- package/dist/commands/verify/architecture.js +0 -1
- package/dist/commands/verify/audit.js +0 -1
- package/dist/commands/verify/constitution.js +0 -1
- package/dist/commands/verify/os-matrix.js +0 -2
- package/dist/commands/verify/perf.js +0 -6
- package/dist/commands/verify/stores.js +0 -5
- package/dist/commands/verify.js +0 -1
- package/dist/commands/workflow/catalog.js +0 -4
- package/dist/commands/workflow/list.js +0 -3
- package/dist/commands/workflow/resume.js +0 -10
- package/dist/commands/workflow/run.js +0 -5
- package/dist/commands/workflow/status.js +0 -2
- package/dist/hooks/command_not_found.js +0 -7
- package/dist/index.js +0 -1
- package/dist/shared/agents.js +0 -10
- package/dist/shared/artifact-io.js +0 -27
- package/dist/shared/feature-prompt.js +0 -10
- package/dist/shared/feature-scope.js +1 -23
- package/dist/shared/git-prompt.js +1 -30
- package/dist/shared/hooks.js +0 -1
- package/dist/shared/jira.js +0 -36
- package/dist/shared/mcp.js +0 -8
- package/dist/shared/project.js +0 -14
- package/dist/shared/suggest.js +3 -20
- package/dist/shared/ui.js +0 -15
- package/dist/shared/workflow-resolver.js +0 -12
- package/dist/workflow/args-builder.js +0 -22
- package/dist/workflow/executor.js +0 -19
- package/package.json +2 -2
- package/scripts/prepare-npm.mjs +31 -2
- package/templates/commands/plan.md +15 -0
- package/templates/commands/specify.md +16 -0
- package/templates/commands/tasks.md +18 -0
- package/dist/_core/dist/agents/adapters/antigravity.d.ts +0 -9
- package/dist/_core/dist/agents/adapters/antigravity.d.ts.map +0 -1
- package/dist/_core/dist/agents/adapters/antigravity.js.map +0 -1
- package/dist/_core/dist/agents/adapters/claude-code.d.ts +0 -9
- package/dist/_core/dist/agents/adapters/claude-code.d.ts.map +0 -1
- package/dist/_core/dist/agents/adapters/claude-code.js.map +0 -1
- package/dist/_core/dist/agents/adapters/codex.d.ts +0 -12
- package/dist/_core/dist/agents/adapters/codex.d.ts.map +0 -1
- package/dist/_core/dist/agents/adapters/codex.js.map +0 -1
- package/dist/_core/dist/agents/adapters/copilot.d.ts +0 -12
- package/dist/_core/dist/agents/adapters/copilot.d.ts.map +0 -1
- package/dist/_core/dist/agents/adapters/copilot.js.map +0 -1
- package/dist/_core/dist/agents/adapters/cursor.d.ts +0 -9
- package/dist/_core/dist/agents/adapters/cursor.d.ts.map +0 -1
- package/dist/_core/dist/agents/adapters/cursor.js.map +0 -1
- package/dist/_core/dist/agents/adapters/gemini.d.ts +0 -11
- package/dist/_core/dist/agents/adapters/gemini.d.ts.map +0 -1
- package/dist/_core/dist/agents/adapters/gemini.js.map +0 -1
- package/dist/_core/dist/agents/adapters/human.d.ts +0 -10
- package/dist/_core/dist/agents/adapters/human.d.ts.map +0 -1
- package/dist/_core/dist/agents/adapters/human.js.map +0 -1
- package/dist/_core/dist/agents/artifact-watcher.d.ts +0 -86
- package/dist/_core/dist/agents/artifact-watcher.d.ts.map +0 -1
- package/dist/_core/dist/agents/artifact-watcher.js.map +0 -1
- package/dist/_core/dist/agents/backup.d.ts +0 -69
- package/dist/_core/dist/agents/backup.d.ts.map +0 -1
- package/dist/_core/dist/agents/backup.js.map +0 -1
- package/dist/_core/dist/agents/config.d.ts +0 -36
- package/dist/_core/dist/agents/config.d.ts.map +0 -1
- package/dist/_core/dist/agents/config.js.map +0 -1
- package/dist/_core/dist/agents/context-file.d.ts +0 -35
- package/dist/_core/dist/agents/context-file.d.ts.map +0 -1
- package/dist/_core/dist/agents/context-file.js.map +0 -1
- package/dist/_core/dist/agents/handoff.d.ts +0 -57
- package/dist/_core/dist/agents/handoff.d.ts.map +0 -1
- package/dist/_core/dist/agents/handoff.js.map +0 -1
- package/dist/_core/dist/agents/index.d.ts +0 -32
- package/dist/_core/dist/agents/index.d.ts.map +0 -1
- package/dist/_core/dist/agents/index.js.map +0 -1
- package/dist/_core/dist/agents/keys.d.ts +0 -50
- package/dist/_core/dist/agents/keys.d.ts.map +0 -1
- package/dist/_core/dist/agents/keys.js.map +0 -1
- package/dist/_core/dist/agents/materialize.d.ts +0 -37
- package/dist/_core/dist/agents/materialize.d.ts.map +0 -1
- package/dist/_core/dist/agents/materialize.js.map +0 -1
- package/dist/_core/dist/agents/prompt-builder.d.ts +0 -35
- package/dist/_core/dist/agents/prompt-builder.d.ts.map +0 -1
- package/dist/_core/dist/agents/prompt-builder.js.map +0 -1
- package/dist/_core/dist/agents/prompt-markers.d.ts +0 -69
- package/dist/_core/dist/agents/prompt-markers.d.ts.map +0 -1
- package/dist/_core/dist/agents/prompt-markers.js.map +0 -1
- package/dist/_core/dist/agents/registry.d.ts +0 -35
- package/dist/_core/dist/agents/registry.d.ts.map +0 -1
- package/dist/_core/dist/agents/registry.js.map +0 -1
- package/dist/_core/dist/agents/selector.d.ts +0 -33
- package/dist/_core/dist/agents/selector.d.ts.map +0 -1
- package/dist/_core/dist/agents/selector.js.map +0 -1
- package/dist/_core/dist/agents/slash-materializer.d.ts +0 -63
- package/dist/_core/dist/agents/slash-materializer.d.ts.map +0 -1
- package/dist/_core/dist/agents/slash-materializer.js.map +0 -1
- package/dist/_core/dist/agents/types.d.ts +0 -121
- package/dist/_core/dist/agents/types.d.ts.map +0 -1
- package/dist/_core/dist/agents/types.js.map +0 -1
- package/dist/_core/dist/audit/hash.d.ts +0 -4
- package/dist/_core/dist/audit/hash.d.ts.map +0 -1
- package/dist/_core/dist/audit/hash.js.map +0 -1
- package/dist/_core/dist/audit/index.d.ts +0 -6
- package/dist/_core/dist/audit/index.d.ts.map +0 -1
- package/dist/_core/dist/audit/index.js.map +0 -1
- package/dist/_core/dist/audit/logger.d.ts +0 -77
- package/dist/_core/dist/audit/logger.d.ts.map +0 -1
- package/dist/_core/dist/audit/logger.js.map +0 -1
- package/dist/_core/dist/audit/query.d.ts +0 -13
- package/dist/_core/dist/audit/query.d.ts.map +0 -1
- package/dist/_core/dist/audit/query.js.map +0 -1
- package/dist/_core/dist/audit/schema.d.ts +0 -455
- package/dist/_core/dist/audit/schema.d.ts.map +0 -1
- package/dist/_core/dist/audit/schema.js.map +0 -1
- package/dist/_core/dist/audit/validate.d.ts +0 -21
- package/dist/_core/dist/audit/validate.d.ts.map +0 -1
- package/dist/_core/dist/audit/validate.js.map +0 -1
- package/dist/_core/dist/constitution/core.d.ts +0 -22
- package/dist/_core/dist/constitution/core.d.ts.map +0 -1
- package/dist/_core/dist/constitution/core.js.map +0 -1
- package/dist/_core/dist/constitution/index.d.ts +0 -2
- package/dist/_core/dist/constitution/index.d.ts.map +0 -1
- package/dist/_core/dist/constitution/index.js.map +0 -1
- package/dist/_core/dist/extensions/index.d.ts +0 -12
- package/dist/_core/dist/extensions/index.d.ts.map +0 -1
- package/dist/_core/dist/extensions/index.js.map +0 -1
- package/dist/_core/dist/extensions/integrate.d.ts +0 -69
- package/dist/_core/dist/extensions/integrate.d.ts.map +0 -1
- package/dist/_core/dist/extensions/integrate.js.map +0 -1
- package/dist/_core/dist/extensions/loader.d.ts +0 -24
- package/dist/_core/dist/extensions/loader.d.ts.map +0 -1
- package/dist/_core/dist/extensions/loader.js.map +0 -1
- package/dist/_core/dist/extensions/manifest.d.ts +0 -23
- package/dist/_core/dist/extensions/manifest.d.ts.map +0 -1
- package/dist/_core/dist/extensions/manifest.js.map +0 -1
- package/dist/_core/dist/extensions/registry.d.ts +0 -32
- package/dist/_core/dist/extensions/registry.d.ts.map +0 -1
- package/dist/_core/dist/extensions/registry.js.map +0 -1
- package/dist/_core/dist/extensions/resolver.d.ts +0 -55
- package/dist/_core/dist/extensions/resolver.d.ts.map +0 -1
- package/dist/_core/dist/extensions/resolver.js.map +0 -1
- package/dist/_core/dist/extensions/types.d.ts +0 -173
- package/dist/_core/dist/extensions/types.d.ts.map +0 -1
- package/dist/_core/dist/extensions/types.js.map +0 -1
- package/dist/_core/dist/frontmatter/index.d.ts +0 -10
- package/dist/_core/dist/frontmatter/index.d.ts.map +0 -1
- package/dist/_core/dist/frontmatter/index.js.map +0 -1
- package/dist/_core/dist/gates/agent-gates.d.ts +0 -16
- package/dist/_core/dist/gates/agent-gates.d.ts.map +0 -1
- package/dist/_core/dist/gates/agent-gates.js.map +0 -1
- package/dist/_core/dist/gates/branch-gate.d.ts +0 -10
- package/dist/_core/dist/gates/branch-gate.d.ts.map +0 -1
- package/dist/_core/dist/gates/branch-gate.js.map +0 -1
- package/dist/_core/dist/gates/builtin.d.ts +0 -21
- package/dist/_core/dist/gates/builtin.d.ts.map +0 -1
- package/dist/_core/dist/gates/builtin.js.map +0 -1
- package/dist/_core/dist/gates/index.d.ts +0 -8
- package/dist/_core/dist/gates/index.d.ts.map +0 -1
- package/dist/_core/dist/gates/index.js.map +0 -1
- package/dist/_core/dist/gates/m7-gates.d.ts +0 -17
- package/dist/_core/dist/gates/m7-gates.d.ts.map +0 -1
- package/dist/_core/dist/gates/m7-gates.js.map +0 -1
- package/dist/_core/dist/gates/phase-gates.d.ts +0 -18
- package/dist/_core/dist/gates/phase-gates.d.ts.map +0 -1
- package/dist/_core/dist/gates/phase-gates.js.map +0 -1
- package/dist/_core/dist/gates/runner.d.ts +0 -4
- package/dist/_core/dist/gates/runner.d.ts.map +0 -1
- package/dist/_core/dist/gates/runner.js.map +0 -1
- package/dist/_core/dist/gates/types.d.ts +0 -36
- package/dist/_core/dist/gates/types.d.ts.map +0 -1
- package/dist/_core/dist/gates/types.js.map +0 -1
- package/dist/_core/dist/git/commit-guard.d.ts +0 -75
- package/dist/_core/dist/git/commit-guard.d.ts.map +0 -1
- package/dist/_core/dist/git/commit-guard.js.map +0 -1
- package/dist/_core/dist/git/commit-policy.d.ts +0 -32
- package/dist/_core/dist/git/commit-policy.d.ts.map +0 -1
- package/dist/_core/dist/git/commit-policy.js.map +0 -1
- package/dist/_core/dist/git/executor.d.ts +0 -32
- package/dist/_core/dist/git/executor.d.ts.map +0 -1
- package/dist/_core/dist/git/executor.js.map +0 -1
- package/dist/_core/dist/git/index.d.ts +0 -13
- package/dist/_core/dist/git/index.d.ts.map +0 -1
- package/dist/_core/dist/git/index.js.map +0 -1
- package/dist/_core/dist/git/naming.d.ts +0 -56
- package/dist/_core/dist/git/naming.d.ts.map +0 -1
- package/dist/_core/dist/git/naming.js.map +0 -1
- package/dist/_core/dist/git/repo.d.ts +0 -43
- package/dist/_core/dist/git/repo.d.ts.map +0 -1
- package/dist/_core/dist/git/repo.js.map +0 -1
- package/dist/_core/dist/hooks/index.d.ts +0 -4
- package/dist/_core/dist/hooks/index.d.ts.map +0 -1
- package/dist/_core/dist/hooks/index.js.map +0 -1
- package/dist/_core/dist/hooks/runner.d.ts +0 -28
- package/dist/_core/dist/hooks/runner.d.ts.map +0 -1
- package/dist/_core/dist/hooks/runner.js.map +0 -1
- package/dist/_core/dist/hooks/runtime.d.ts +0 -65
- package/dist/_core/dist/hooks/runtime.d.ts.map +0 -1
- package/dist/_core/dist/hooks/runtime.js.map +0 -1
- package/dist/_core/dist/hooks/types.d.ts +0 -36
- package/dist/_core/dist/hooks/types.d.ts.map +0 -1
- package/dist/_core/dist/hooks/types.js.map +0 -1
- package/dist/_core/dist/index.d.ts +0 -23
- package/dist/_core/dist/index.d.ts.map +0 -1
- package/dist/_core/dist/index.js.map +0 -1
- package/dist/_core/dist/jira/credentials.d.ts +0 -22
- package/dist/_core/dist/jira/credentials.d.ts.map +0 -1
- package/dist/_core/dist/jira/credentials.js.map +0 -1
- package/dist/_core/dist/jira/dialects.d.ts +0 -62
- package/dist/_core/dist/jira/dialects.d.ts.map +0 -1
- package/dist/_core/dist/jira/dialects.js.map +0 -1
- package/dist/_core/dist/jira/index.d.ts +0 -11
- package/dist/_core/dist/jira/index.d.ts.map +0 -1
- package/dist/_core/dist/jira/index.js.map +0 -1
- package/dist/_core/dist/jira/mapper.d.ts +0 -63
- package/dist/_core/dist/jira/mapper.d.ts.map +0 -1
- package/dist/_core/dist/jira/mapper.js.map +0 -1
- package/dist/_core/dist/jira/mcp-client.d.ts +0 -110
- package/dist/_core/dist/jira/mcp-client.d.ts.map +0 -1
- package/dist/_core/dist/jira/mcp-client.js.map +0 -1
- package/dist/_core/dist/jira/oauth.d.ts +0 -57
- package/dist/_core/dist/jira/oauth.d.ts.map +0 -1
- package/dist/_core/dist/jira/oauth.js.map +0 -1
- package/dist/_core/dist/jira/types.d.ts +0 -102
- package/dist/_core/dist/jira/types.d.ts.map +0 -1
- package/dist/_core/dist/jira/types.js.map +0 -1
- package/dist/_core/dist/manifest/index.d.ts +0 -119
- package/dist/_core/dist/manifest/index.d.ts.map +0 -1
- package/dist/_core/dist/manifest/index.js.map +0 -1
- package/dist/_core/dist/markers/index.d.ts +0 -47
- package/dist/_core/dist/markers/index.d.ts.map +0 -1
- package/dist/_core/dist/markers/index.js.map +0 -1
- package/dist/_core/dist/mcp/config.d.ts +0 -19
- package/dist/_core/dist/mcp/config.d.ts.map +0 -1
- package/dist/_core/dist/mcp/config.js.map +0 -1
- package/dist/_core/dist/mcp/index.d.ts +0 -9
- package/dist/_core/dist/mcp/index.d.ts.map +0 -1
- package/dist/_core/dist/mcp/index.js.map +0 -1
- package/dist/_core/dist/mcp/materializer.d.ts +0 -40
- package/dist/_core/dist/mcp/materializer.d.ts.map +0 -1
- package/dist/_core/dist/mcp/materializer.js.map +0 -1
- package/dist/_core/dist/mcp/targets.d.ts +0 -37
- package/dist/_core/dist/mcp/targets.d.ts.map +0 -1
- package/dist/_core/dist/mcp/targets.js.map +0 -1
- package/dist/_core/dist/mcp/types.d.ts +0 -34
- package/dist/_core/dist/mcp/types.d.ts.map +0 -1
- package/dist/_core/dist/mcp/types.js.map +0 -1
- package/dist/_core/dist/models/analyze.d.ts +0 -131
- package/dist/_core/dist/models/analyze.d.ts.map +0 -1
- package/dist/_core/dist/models/analyze.js.map +0 -1
- package/dist/_core/dist/models/checklist.d.ts +0 -113
- package/dist/_core/dist/models/checklist.d.ts.map +0 -1
- package/dist/_core/dist/models/checklist.js.map +0 -1
- package/dist/_core/dist/models/clarify.d.ts +0 -116
- package/dist/_core/dist/models/clarify.d.ts.map +0 -1
- package/dist/_core/dist/models/clarify.js.map +0 -1
- package/dist/_core/dist/models/impl-log.d.ts +0 -64
- package/dist/_core/dist/models/impl-log.d.ts.map +0 -1
- package/dist/_core/dist/models/impl-log.js.map +0 -1
- package/dist/_core/dist/models/index.d.ts +0 -8
- package/dist/_core/dist/models/index.d.ts.map +0 -1
- package/dist/_core/dist/models/index.js.map +0 -1
- package/dist/_core/dist/models/plan.d.ts +0 -24
- package/dist/_core/dist/models/plan.d.ts.map +0 -1
- package/dist/_core/dist/models/plan.js.map +0 -1
- package/dist/_core/dist/models/spec.d.ts +0 -23
- package/dist/_core/dist/models/spec.d.ts.map +0 -1
- package/dist/_core/dist/models/spec.js.map +0 -1
- package/dist/_core/dist/models/tasks.d.ts +0 -33
- package/dist/_core/dist/models/tasks.d.ts.map +0 -1
- package/dist/_core/dist/models/tasks.js.map +0 -1
- package/dist/_core/dist/presets/gates.d.ts +0 -9
- package/dist/_core/dist/presets/gates.d.ts.map +0 -1
- package/dist/_core/dist/presets/gates.js.map +0 -1
- package/dist/_core/dist/presets/index.d.ts +0 -10
- package/dist/_core/dist/presets/index.d.ts.map +0 -1
- package/dist/_core/dist/presets/index.js.map +0 -1
- package/dist/_core/dist/presets/loader.d.ts +0 -56
- package/dist/_core/dist/presets/loader.d.ts.map +0 -1
- package/dist/_core/dist/presets/loader.js.map +0 -1
- package/dist/_core/dist/presets/mobile-opinionated.d.ts +0 -3
- package/dist/_core/dist/presets/mobile-opinionated.d.ts.map +0 -1
- package/dist/_core/dist/presets/mobile-opinionated.js.map +0 -1
- package/dist/_core/dist/presets/registry.d.ts +0 -5
- package/dist/_core/dist/presets/registry.d.ts.map +0 -1
- package/dist/_core/dist/presets/registry.js.map +0 -1
- package/dist/_core/dist/presets/renderer.d.ts +0 -5
- package/dist/_core/dist/presets/renderer.d.ts.map +0 -1
- package/dist/_core/dist/presets/renderer.js.map +0 -1
- package/dist/_core/dist/presets/stacking.d.ts +0 -29
- package/dist/_core/dist/presets/stacking.d.ts.map +0 -1
- package/dist/_core/dist/presets/stacking.js.map +0 -1
- package/dist/_core/dist/presets/types.d.ts +0 -22
- package/dist/_core/dist/presets/types.d.ts.map +0 -1
- package/dist/_core/dist/presets/types.js.map +0 -1
- package/dist/_core/dist/prompts/audit-log.d.ts +0 -73
- package/dist/_core/dist/prompts/audit-log.d.ts.map +0 -1
- package/dist/_core/dist/prompts/audit-log.js.map +0 -1
- package/dist/_core/dist/prompts/index.d.ts +0 -9
- package/dist/_core/dist/prompts/index.d.ts.map +0 -1
- package/dist/_core/dist/prompts/index.js.map +0 -1
- package/dist/_core/dist/prompts/renderer.d.ts +0 -73
- package/dist/_core/dist/prompts/renderer.d.ts.map +0 -1
- package/dist/_core/dist/prompts/renderer.js.map +0 -1
- package/dist/_core/dist/prompts/resumption.d.ts +0 -59
- package/dist/_core/dist/prompts/resumption.d.ts.map +0 -1
- package/dist/_core/dist/prompts/resumption.js.map +0 -1
- package/dist/_core/dist/skills/config.d.ts +0 -27
- package/dist/_core/dist/skills/config.d.ts.map +0 -1
- package/dist/_core/dist/skills/config.js.map +0 -1
- package/dist/_core/dist/skills/index.d.ts +0 -9
- package/dist/_core/dist/skills/index.d.ts.map +0 -1
- package/dist/_core/dist/skills/index.js.map +0 -1
- package/dist/_core/dist/skills/materializer.d.ts +0 -45
- package/dist/_core/dist/skills/materializer.d.ts.map +0 -1
- package/dist/_core/dist/skills/materializer.js.map +0 -1
- package/dist/_core/dist/skills/registry.d.ts +0 -18
- package/dist/_core/dist/skills/registry.d.ts.map +0 -1
- package/dist/_core/dist/skills/registry.js.map +0 -1
- package/dist/_core/dist/skills/types.d.ts +0 -39
- package/dist/_core/dist/skills/types.d.ts.map +0 -1
- package/dist/_core/dist/skills/types.js.map +0 -1
- package/dist/_core/dist/state/feature.d.ts +0 -58
- package/dist/_core/dist/state/feature.d.ts.map +0 -1
- package/dist/_core/dist/state/feature.js.map +0 -1
- package/dist/_core/dist/state/index.d.ts +0 -8
- package/dist/_core/dist/state/index.d.ts.map +0 -1
- package/dist/_core/dist/state/index.js.map +0 -1
- package/dist/_core/dist/state/init-options.d.ts +0 -60
- package/dist/_core/dist/state/init-options.d.ts.map +0 -1
- package/dist/_core/dist/state/init-options.js.map +0 -1
- package/dist/_core/dist/template/engine.d.ts +0 -7
- package/dist/_core/dist/template/engine.d.ts.map +0 -1
- package/dist/_core/dist/template/engine.js.map +0 -1
- package/dist/_core/dist/template/helpers.d.ts +0 -5
- package/dist/_core/dist/template/helpers.d.ts.map +0 -1
- package/dist/_core/dist/template/helpers.js.map +0 -1
- package/dist/_core/dist/template/index.d.ts +0 -6
- package/dist/_core/dist/template/index.d.ts.map +0 -1
- package/dist/_core/dist/template/index.js.map +0 -1
- package/dist/_core/dist/template/loader.d.ts +0 -37
- package/dist/_core/dist/template/loader.d.ts.map +0 -1
- package/dist/_core/dist/template/loader.js.map +0 -1
- package/dist/_core/dist/template/parser.d.ts +0 -3
- package/dist/_core/dist/template/parser.d.ts.map +0 -1
- package/dist/_core/dist/template/parser.js.map +0 -1
- package/dist/_core/dist/template/types.d.ts +0 -40
- package/dist/_core/dist/template/types.d.ts.map +0 -1
- package/dist/_core/dist/template/types.js.map +0 -1
- package/dist/_core/dist/verify/a11y.d.ts +0 -36
- package/dist/_core/dist/verify/a11y.d.ts.map +0 -1
- package/dist/_core/dist/verify/a11y.js.map +0 -1
- package/dist/_core/dist/verify/architecture.d.ts +0 -37
- package/dist/_core/dist/verify/architecture.d.ts.map +0 -1
- package/dist/_core/dist/verify/architecture.js.map +0 -1
- package/dist/_core/dist/verify/index.d.ts +0 -10
- package/dist/_core/dist/verify/index.d.ts.map +0 -1
- package/dist/_core/dist/verify/index.js.map +0 -1
- package/dist/_core/dist/verify/os-matrix.d.ts +0 -35
- package/dist/_core/dist/verify/os-matrix.d.ts.map +0 -1
- package/dist/_core/dist/verify/os-matrix.js.map +0 -1
- package/dist/_core/dist/verify/perf.d.ts +0 -43
- package/dist/_core/dist/verify/perf.d.ts.map +0 -1
- package/dist/_core/dist/verify/perf.js.map +0 -1
- package/dist/_core/dist/verify/stores.d.ts +0 -38
- package/dist/_core/dist/verify/stores.d.ts.map +0 -1
- package/dist/_core/dist/verify/stores.js.map +0 -1
- package/dist/_core/dist/version.d.ts +0 -8
- package/dist/_core/dist/version.d.ts.map +0 -1
- package/dist/_core/dist/version.js.map +0 -1
- package/dist/_core/dist/workflows/bundled.d.ts +0 -32
- package/dist/_core/dist/workflows/bundled.d.ts.map +0 -1
- package/dist/_core/dist/workflows/bundled.js.map +0 -1
- package/dist/_core/dist/workflows/engine.d.ts +0 -74
- package/dist/_core/dist/workflows/engine.d.ts.map +0 -1
- package/dist/_core/dist/workflows/engine.js.map +0 -1
- package/dist/_core/dist/workflows/expressions.d.ts +0 -48
- package/dist/_core/dist/workflows/expressions.d.ts.map +0 -1
- package/dist/_core/dist/workflows/expressions.js.map +0 -1
- package/dist/_core/dist/workflows/index.d.ts +0 -16
- package/dist/_core/dist/workflows/index.d.ts.map +0 -1
- package/dist/_core/dist/workflows/index.js.map +0 -1
- package/dist/_core/dist/workflows/parser.d.ts +0 -38
- package/dist/_core/dist/workflows/parser.d.ts.map +0 -1
- package/dist/_core/dist/workflows/parser.js.map +0 -1
- package/dist/_core/dist/workflows/sdd-flow.d.ts +0 -85
- package/dist/_core/dist/workflows/sdd-flow.d.ts.map +0 -1
- package/dist/_core/dist/workflows/sdd-flow.js.map +0 -1
- package/dist/_core/dist/workflows/types.d.ts +0 -285
- package/dist/_core/dist/workflows/types.d.ts.map +0 -1
- package/dist/_core/dist/workflows/types.js.map +0 -1
- package/dist/base-command.d.ts +0 -18
- package/dist/base-command.d.ts.map +0 -1
- package/dist/base-command.js.map +0 -1
- package/dist/commands/add-agent.d.ts +0 -22
- package/dist/commands/add-agent.d.ts.map +0 -1
- package/dist/commands/add-agent.js.map +0 -1
- package/dist/commands/add-extension.d.ts +0 -18
- package/dist/commands/add-extension.d.ts.map +0 -1
- package/dist/commands/add-extension.js.map +0 -1
- package/dist/commands/analyze.d.ts +0 -18
- package/dist/commands/analyze.d.ts.map +0 -1
- package/dist/commands/analyze.js.map +0 -1
- package/dist/commands/approve.d.ts +0 -14
- package/dist/commands/approve.d.ts.map +0 -1
- package/dist/commands/approve.js.map +0 -1
- package/dist/commands/audit/query.d.ts +0 -23
- package/dist/commands/audit/query.d.ts.map +0 -1
- package/dist/commands/audit/query.js.map +0 -1
- package/dist/commands/audit/show.d.ts +0 -17
- package/dist/commands/audit/show.d.ts.map +0 -1
- package/dist/commands/audit/show.js.map +0 -1
- package/dist/commands/checklist.d.ts +0 -17
- package/dist/commands/checklist.d.ts.map +0 -1
- package/dist/commands/checklist.js.map +0 -1
- package/dist/commands/clarify.d.ts +0 -17
- package/dist/commands/clarify.d.ts.map +0 -1
- package/dist/commands/clarify.js.map +0 -1
- package/dist/commands/commit.d.ts +0 -22
- package/dist/commands/commit.d.ts.map +0 -1
- package/dist/commands/commit.js.map +0 -1
- package/dist/commands/doctor.d.ts +0 -8
- package/dist/commands/doctor.d.ts.map +0 -1
- package/dist/commands/doctor.js.map +0 -1
- package/dist/commands/extension/add.d.ts +0 -15
- package/dist/commands/extension/add.d.ts.map +0 -1
- package/dist/commands/extension/add.js.map +0 -1
- package/dist/commands/extension/info.d.ts +0 -13
- package/dist/commands/extension/info.d.ts.map +0 -1
- package/dist/commands/extension/info.js.map +0 -1
- package/dist/commands/extension/list.d.ts +0 -10
- package/dist/commands/extension/list.d.ts.map +0 -1
- package/dist/commands/extension/list.js.map +0 -1
- package/dist/commands/extension/remove.d.ts +0 -14
- package/dist/commands/extension/remove.d.ts.map +0 -1
- package/dist/commands/extension/remove.js.map +0 -1
- package/dist/commands/gate/approve.d.ts +0 -15
- package/dist/commands/gate/approve.d.ts.map +0 -1
- package/dist/commands/gate/approve.js.map +0 -1
- package/dist/commands/gate/list.d.ts +0 -6
- package/dist/commands/gate/list.d.ts.map +0 -1
- package/dist/commands/gate/list.js.map +0 -1
- package/dist/commands/gate/skip.d.ts +0 -14
- package/dist/commands/gate/skip.d.ts.map +0 -1
- package/dist/commands/gate/skip.js.map +0 -1
- package/dist/commands/hook/list.d.ts +0 -11
- package/dist/commands/hook/list.d.ts.map +0 -1
- package/dist/commands/hook/list.js.map +0 -1
- package/dist/commands/hook/run.d.ts +0 -16
- package/dist/commands/hook/run.d.ts.map +0 -1
- package/dist/commands/hook/run.js.map +0 -1
- package/dist/commands/hotfix.d.ts +0 -21
- package/dist/commands/hotfix.d.ts.map +0 -1
- package/dist/commands/hotfix.js.map +0 -1
- package/dist/commands/implement.d.ts +0 -19
- package/dist/commands/implement.d.ts.map +0 -1
- package/dist/commands/implement.js.map +0 -1
- package/dist/commands/init.d.ts +0 -43
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/jira/connect.d.ts +0 -21
- package/dist/commands/jira/connect.d.ts.map +0 -1
- package/dist/commands/jira/connect.js.map +0 -1
- package/dist/commands/jira/disconnect.d.ts +0 -7
- package/dist/commands/jira/disconnect.d.ts.map +0 -1
- package/dist/commands/jira/disconnect.js.map +0 -1
- package/dist/commands/jira/pull.d.ts +0 -13
- package/dist/commands/jira/pull.d.ts.map +0 -1
- package/dist/commands/jira/pull.js.map +0 -1
- package/dist/commands/jira/status.d.ts +0 -10
- package/dist/commands/jira/status.d.ts.map +0 -1
- package/dist/commands/jira/status.js.map +0 -1
- package/dist/commands/list-agents.d.ts +0 -12
- package/dist/commands/list-agents.d.ts.map +0 -1
- package/dist/commands/list-agents.js.map +0 -1
- package/dist/commands/mcp/add.d.ts +0 -21
- package/dist/commands/mcp/add.d.ts.map +0 -1
- package/dist/commands/mcp/add.js.map +0 -1
- package/dist/commands/mcp/list.d.ts +0 -10
- package/dist/commands/mcp/list.d.ts.map +0 -1
- package/dist/commands/mcp/list.js.map +0 -1
- package/dist/commands/mcp/remove.d.ts +0 -10
- package/dist/commands/mcp/remove.d.ts.map +0 -1
- package/dist/commands/mcp/remove.js.map +0 -1
- package/dist/commands/mcp/sync.d.ts +0 -7
- package/dist/commands/mcp/sync.d.ts.map +0 -1
- package/dist/commands/mcp/sync.js.map +0 -1
- package/dist/commands/new.d.ts +0 -47
- package/dist/commands/new.d.ts.map +0 -1
- package/dist/commands/new.js.map +0 -1
- package/dist/commands/plan.d.ts +0 -17
- package/dist/commands/plan.d.ts.map +0 -1
- package/dist/commands/plan.js.map +0 -1
- package/dist/commands/preset/add.d.ts +0 -13
- package/dist/commands/preset/add.d.ts.map +0 -1
- package/dist/commands/preset/add.js.map +0 -1
- package/dist/commands/preset/info.d.ts +0 -13
- package/dist/commands/preset/info.d.ts.map +0 -1
- package/dist/commands/preset/info.js.map +0 -1
- package/dist/commands/preset/list.d.ts +0 -10
- package/dist/commands/preset/list.d.ts.map +0 -1
- package/dist/commands/preset/list.js.map +0 -1
- package/dist/commands/preset/remove.d.ts +0 -14
- package/dist/commands/preset/remove.d.ts.map +0 -1
- package/dist/commands/preset/remove.js.map +0 -1
- package/dist/commands/repair/constitution.d.ts +0 -11
- package/dist/commands/repair/constitution.d.ts.map +0 -1
- package/dist/commands/repair/constitution.js.map +0 -1
- package/dist/commands/resync.d.ts +0 -22
- package/dist/commands/resync.d.ts.map +0 -1
- package/dist/commands/resync.js.map +0 -1
- package/dist/commands/scan.d.ts +0 -14
- package/dist/commands/scan.d.ts.map +0 -1
- package/dist/commands/scan.js.map +0 -1
- package/dist/commands/skill/add.d.ts +0 -19
- package/dist/commands/skill/add.d.ts.map +0 -1
- package/dist/commands/skill/add.js.map +0 -1
- package/dist/commands/skill/list.d.ts +0 -10
- package/dist/commands/skill/list.d.ts.map +0 -1
- package/dist/commands/skill/list.js.map +0 -1
- package/dist/commands/skill/remove.d.ts +0 -10
- package/dist/commands/skill/remove.d.ts.map +0 -1
- package/dist/commands/skill/remove.js.map +0 -1
- package/dist/commands/skill/sync.d.ts +0 -7
- package/dist/commands/skill/sync.d.ts.map +0 -1
- package/dist/commands/skill/sync.js.map +0 -1
- package/dist/commands/status.d.ts +0 -17
- package/dist/commands/status.d.ts.map +0 -1
- package/dist/commands/status.js.map +0 -1
- package/dist/commands/tasks.d.ts +0 -16
- package/dist/commands/tasks.d.ts.map +0 -1
- package/dist/commands/tasks.js.map +0 -1
- package/dist/commands/taskstoissues.d.ts +0 -15
- package/dist/commands/taskstoissues.d.ts.map +0 -1
- package/dist/commands/taskstoissues.js.map +0 -1
- package/dist/commands/trace.d.ts +0 -16
- package/dist/commands/trace.d.ts.map +0 -1
- package/dist/commands/trace.js.map +0 -1
- package/dist/commands/upgrade.d.ts +0 -20
- package/dist/commands/upgrade.d.ts.map +0 -1
- package/dist/commands/upgrade.js.map +0 -1
- package/dist/commands/verify/a11y.d.ts +0 -15
- package/dist/commands/verify/a11y.d.ts.map +0 -1
- package/dist/commands/verify/a11y.js.map +0 -1
- package/dist/commands/verify/architecture.d.ts +0 -11
- package/dist/commands/verify/architecture.d.ts.map +0 -1
- package/dist/commands/verify/architecture.js.map +0 -1
- package/dist/commands/verify/audit.d.ts +0 -18
- package/dist/commands/verify/audit.d.ts.map +0 -1
- package/dist/commands/verify/audit.js.map +0 -1
- package/dist/commands/verify/constitution.d.ts +0 -10
- package/dist/commands/verify/constitution.d.ts.map +0 -1
- package/dist/commands/verify/constitution.js.map +0 -1
- package/dist/commands/verify/os-matrix.d.ts +0 -14
- package/dist/commands/verify/os-matrix.d.ts.map +0 -1
- package/dist/commands/verify/os-matrix.js.map +0 -1
- package/dist/commands/verify/perf.d.ts +0 -17
- package/dist/commands/verify/perf.d.ts.map +0 -1
- package/dist/commands/verify/perf.js.map +0 -1
- package/dist/commands/verify/stores.d.ts +0 -14
- package/dist/commands/verify/stores.d.ts.map +0 -1
- package/dist/commands/verify/stores.js.map +0 -1
- package/dist/commands/verify.d.ts +0 -14
- package/dist/commands/verify.d.ts.map +0 -1
- package/dist/commands/verify.js.map +0 -1
- package/dist/commands/workflow/catalog.d.ts +0 -11
- package/dist/commands/workflow/catalog.d.ts.map +0 -1
- package/dist/commands/workflow/catalog.js.map +0 -1
- package/dist/commands/workflow/list.d.ts +0 -7
- package/dist/commands/workflow/list.d.ts.map +0 -1
- package/dist/commands/workflow/list.js.map +0 -1
- package/dist/commands/workflow/resume.d.ts +0 -13
- package/dist/commands/workflow/resume.d.ts.map +0 -1
- package/dist/commands/workflow/resume.js.map +0 -1
- package/dist/commands/workflow/run.d.ts +0 -14
- package/dist/commands/workflow/run.d.ts.map +0 -1
- package/dist/commands/workflow/run.js.map +0 -1
- package/dist/commands/workflow/status.d.ts +0 -10
- package/dist/commands/workflow/status.d.ts.map +0 -1
- package/dist/commands/workflow/status.js.map +0 -1
- package/dist/hooks/command_not_found.d.ts +0 -8
- package/dist/hooks/command_not_found.d.ts.map +0 -1
- package/dist/hooks/command_not_found.js.map +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/shared/agents.d.ts +0 -12
- package/dist/shared/agents.d.ts.map +0 -1
- package/dist/shared/agents.js.map +0 -1
- package/dist/shared/artifact-io.d.ts +0 -54
- package/dist/shared/artifact-io.d.ts.map +0 -1
- package/dist/shared/artifact-io.js.map +0 -1
- package/dist/shared/feature-prompt.d.ts +0 -18
- package/dist/shared/feature-prompt.d.ts.map +0 -1
- package/dist/shared/feature-prompt.js.map +0 -1
- package/dist/shared/feature-scope.d.ts +0 -14
- package/dist/shared/feature-scope.d.ts.map +0 -1
- package/dist/shared/feature-scope.js.map +0 -1
- package/dist/shared/git-prompt.d.ts +0 -47
- package/dist/shared/git-prompt.d.ts.map +0 -1
- package/dist/shared/git-prompt.js.map +0 -1
- package/dist/shared/hooks.d.ts +0 -7
- package/dist/shared/hooks.d.ts.map +0 -1
- package/dist/shared/hooks.js.map +0 -1
- package/dist/shared/jira.d.ts +0 -65
- package/dist/shared/jira.d.ts.map +0 -1
- package/dist/shared/jira.js.map +0 -1
- package/dist/shared/mcp.d.ts +0 -9
- package/dist/shared/mcp.d.ts.map +0 -1
- package/dist/shared/mcp.js.map +0 -1
- package/dist/shared/project.d.ts +0 -72
- package/dist/shared/project.d.ts.map +0 -1
- package/dist/shared/project.js.map +0 -1
- package/dist/shared/suggest.d.ts +0 -14
- package/dist/shared/suggest.d.ts.map +0 -1
- package/dist/shared/suggest.js.map +0 -1
- package/dist/shared/ui.d.ts +0 -42
- package/dist/shared/ui.d.ts.map +0 -1
- package/dist/shared/ui.js.map +0 -1
- package/dist/shared/workflow-resolver.d.ts +0 -19
- package/dist/shared/workflow-resolver.d.ts.map +0 -1
- package/dist/shared/workflow-resolver.js.map +0 -1
- package/dist/workflow/args-builder.d.ts +0 -31
- package/dist/workflow/args-builder.d.ts.map +0 -1
- package/dist/workflow/args-builder.js.map +0 -1
- package/dist/workflow/executor.d.ts +0 -18
- package/dist/workflow/executor.d.ts.map +0 -1
- package/dist/workflow/executor.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,32 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
5
5
|
|
|
6
|
+
## [0.6.1] - 2026-06-05
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
|
|
10
|
+
- Package `author` set to **Lucas Pedro <lucaspedrolbg@gmail.com> (https://github.com/lucaspedronet)** on the publishable package and the workspace `package.json` files (previously the bare npm handle). Metadata-only; no code changes.
|
|
11
|
+
|
|
12
|
+
## [0.6.0] - 2026-06-05
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- **Figma design gate — the design enriches `spec → plan → tasks` and is enforced.** A Figma link in `raptor new --desc` (or in a seeded Jira ticket) is now detected, normalized (`node-id` → canonical `1:23`) and recorded as a first-class artifact. `raptor new` scaffolds a traceable `design/` layer (`tokens.json`, `screens/`, `assets-manifest.json`, `README.md`) plus the standardized `assets/{images,icons,fonts}/` directories, and seeds a `## Design Reference` section into the spec. The agent "sees" the design through **its own Figma MCP tools** (`get_design_context`, `get_variable_defs`, `get_screenshot`, `get_metadata`, `get_libraries`, `search_design_system`) — RAPTOR holds no Figma credentials; it owns detection, scaffolding, the canonical prompts, and the gate.
|
|
17
|
+
- **`gate.design.ready`** (required, article M3) — readiness-conditional like `gate.spec.ready`: it passes when no design is attached or while the spec is a draft, and blocks `raptor verify` once the spec is **approved** unless `design/tokens.json` is non-empty, every `[screen: X]` has a matching `design/screens/*.md`, the assets manifest is valid, every catalogued asset exists on disk, every referenced asset/screen is catalogued, and the plan declares its libraries/design-system. A catalogued-but-unused asset is a warning, not a failure.
|
|
18
|
+
- **Design instructions in the canonical prompts** (`/raptor-specify`, `/raptor-plan`, `/raptor-tasks`) telling the agent which Figma MCP tools to use per phase — see the screens, extract the tokens, declare the libraries, download and catalogue the assets to `assets/*`, and reference them by `[screen: X]` / `[asset: X]` tags and concrete paths.
|
|
19
|
+
- **`design.imported` audit event** (provider, ref count, file keys), plus `design_enriched` / `design_refs` / `design_scaffolded` on `feature.created`.
|
|
20
|
+
- **[docs/design-gate.md](docs/design-gate.md)** — full pt-BR guide (flows, tables, schemas, examples) and an index entry.
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- Reference matching in the design gate is **tolerant**: screen/asset names compare by slug (`Order Details` ≡ `order-details`), asset paths by normalized POSIX path (`./assets/…` ≡ `assets/…`), and asset-path detection is scoped to the standardized `assets/{images,icons,fonts}` directories — avoiding false orphan/missing failures on incidental prose. The plan library check accepts any plausible heading (Tech Stack, Packages, Dependencies, UI Kit, …), not a single wording.
|
|
25
|
+
|
|
26
|
+
### Reliability
|
|
27
|
+
|
|
28
|
+
- The design scaffold in `raptor new` is **best-effort**: a filesystem failure (read-only `assets/`, a file where a dir is expected, ENOSPC) degrades gracefully (warns, records `design_scaffolded: false`) and never breaks feature creation — the same invariant the Jira seeding upholds. Asset-name matching no longer builds a `RegExp` from author-controlled data, so a name with regex metacharacters can never crash `verify`.
|
|
29
|
+
|
|
30
|
+
> The design gate **complements** the existing readiness/coverage gates: coverage proves nothing is missing, readiness proves what's there is well-formed — now extended to screens, tokens and assets. It is enforced at `raptor verify` and stays silent while the spec is a draft or no design is attached.
|
|
31
|
+
|
|
6
32
|
## [0.5.0] - 2026-06-04
|
|
7
33
|
|
|
8
34
|
### Added
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Antigravity adapter.
|
|
3
|
-
*
|
|
4
|
-
* Generates `.antigravity/playbooks/<command>.md` with playbook header.
|
|
5
|
-
* Blueprint ref: 17.5.3.
|
|
6
|
-
*/
|
|
7
1
|
export const antigravityAdapter = {
|
|
8
2
|
id: "antigravity",
|
|
9
3
|
displayName: "Antigravity",
|
|
@@ -69,4 +63,3 @@ function buildAntigravityBody(canonical) {
|
|
|
69
63
|
}
|
|
70
64
|
return sections.join("\n");
|
|
71
65
|
}
|
|
72
|
-
//# sourceMappingURL=antigravity.js.map
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Claude Code adapter.
|
|
3
|
-
*
|
|
4
|
-
* Generates `.claude/commands/<command>.md` with YAML frontmatter.
|
|
5
|
-
* Blueprint ref: 17.5.1.
|
|
6
|
-
*/
|
|
7
1
|
export const claudeCodeAdapter = {
|
|
8
2
|
id: "claude-code",
|
|
9
3
|
displayName: "Claude Code",
|
|
@@ -30,7 +24,6 @@ export const claudeCodeAdapter = {
|
|
|
30
24
|
commandFileName(command) {
|
|
31
25
|
return `raptor-${command}.md`;
|
|
32
26
|
},
|
|
33
|
-
// Claude Code discovers skills under `.claude/skills/<name>/SKILL.md`.
|
|
34
27
|
skillDir: ".claude/skills",
|
|
35
28
|
skillFileName(skillId) {
|
|
36
29
|
return `raptor-${skillId}/SKILL.md`;
|
|
@@ -68,4 +61,3 @@ function buildContractSection(canonical) {
|
|
|
68
61
|
sections.push("\n## Forma de assinatura\n", "Ao finalizar, grave o arquivo diretamente. O Raptor detectará via hash.", "NÃO adicione comentários como `// gerado por Claude`.");
|
|
69
62
|
return sections.join("\n");
|
|
70
63
|
}
|
|
71
|
-
//# sourceMappingURL=claude-code.js.map
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* OpenAI Codex CLI adapter.
|
|
3
|
-
*
|
|
4
|
-
* Materializes Raptor commands into `.codex/commands/<command>.md`
|
|
5
|
-
* and uses `AGENTS.md` as the agent-neutral context file (the convention
|
|
6
|
-
* adopted by the Codex CLI and other AGENTS.md-aware tools).
|
|
7
|
-
*
|
|
8
|
-
* Spec Kit ref: E11 — "Adaptador Codex".
|
|
9
|
-
*/
|
|
10
1
|
export const codexAdapter = {
|
|
11
2
|
id: "codex",
|
|
12
3
|
displayName: "OpenAI Codex",
|
|
@@ -66,4 +57,3 @@ function buildContractSection(canonical) {
|
|
|
66
57
|
sections.push("\n## Forma de assinatura\n", "Ao finalizar, grave o arquivo diretamente. O Raptor detectará via hash.", "NÃO adicione comentários como `// gerado por Codex`.");
|
|
67
58
|
return sections.join("\n");
|
|
68
59
|
}
|
|
69
|
-
//# sourceMappingURL=codex.js.map
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GitHub Copilot adapter.
|
|
3
|
-
*
|
|
4
|
-
* Materializes Raptor commands into `.github/prompts/<command>.prompt.md`
|
|
5
|
-
* (the GitHub Copilot prompt-library convention) and uses
|
|
6
|
-
* `.github/copilot-instructions.md` as the persistent context file.
|
|
7
|
-
*
|
|
8
|
-
* Spec Kit ref: E11 — "Adaptador Copilot".
|
|
9
|
-
*/
|
|
10
1
|
export const copilotAdapter = {
|
|
11
2
|
id: "copilot",
|
|
12
3
|
displayName: "GitHub Copilot",
|
|
@@ -68,4 +59,3 @@ function buildContractSection(canonical) {
|
|
|
68
59
|
sections.push("\n## Forma de assinatura\n", "Ao finalizar, grave o arquivo diretamente. O Raptor detectará via hash.", "NÃO adicione comentários como `// gerado por Copilot`.");
|
|
69
60
|
return sections.join("\n");
|
|
70
61
|
}
|
|
71
|
-
//# sourceMappingURL=copilot.js.map
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cursor adapter.
|
|
3
|
-
*
|
|
4
|
-
* Generates `.cursor/rules/raptor-<command>.mdc` with Cursor MDC format.
|
|
5
|
-
* Blueprint ref: 17.5.2.
|
|
6
|
-
*/
|
|
7
1
|
export const cursorAdapter = {
|
|
8
2
|
id: "cursor",
|
|
9
3
|
displayName: "Cursor",
|
|
@@ -59,4 +53,3 @@ function buildCursorBody(canonical) {
|
|
|
59
53
|
}
|
|
60
54
|
return sections.join("\n");
|
|
61
55
|
}
|
|
62
|
-
//# sourceMappingURL=cursor.js.map
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Gemini adapter.
|
|
3
|
-
*
|
|
4
|
-
* Generates `.gemini/commands/<command>.md` with YAML frontmatter.
|
|
5
|
-
* Gemini uses GEMINI.md as its context file.
|
|
6
|
-
*
|
|
7
|
-
* Spec Kit ref: E11 — "Adaptador Gemini"
|
|
8
|
-
*/
|
|
9
1
|
export const geminiAdapter = {
|
|
10
2
|
id: "gemini",
|
|
11
3
|
displayName: "Gemini (Antigravity)",
|
|
@@ -65,4 +57,3 @@ function buildContractSection(canonical) {
|
|
|
65
57
|
sections.push("\n## Forma de assinatura\n", "Ao finalizar, grave o arquivo diretamente. O Raptor detectará via hash.", "NÃO adicione comentários como `// gerado por Gemini`.");
|
|
66
58
|
return sections.join("\n");
|
|
67
59
|
}
|
|
68
|
-
//# sourceMappingURL=gemini.js.map
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Human fallback adapter.
|
|
3
|
-
*
|
|
4
|
-
* Renders the canonical prompt to stdout for manual copy-paste.
|
|
5
|
-
* Always available — used when no AI agent is installed.
|
|
6
|
-
* Blueprint ref: 17.2 (Humano — fallback).
|
|
7
|
-
*/
|
|
8
1
|
export const humanAdapter = {
|
|
9
2
|
id: "human",
|
|
10
3
|
displayName: "Human (manual)",
|
|
@@ -45,4 +38,3 @@ export const humanAdapter = {
|
|
|
45
38
|
return `raptor-${command}.md`;
|
|
46
39
|
},
|
|
47
40
|
};
|
|
48
|
-
//# sourceMappingURL=human.js.map
|
|
@@ -1,27 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Artifact Watcher — polling-based file detection.
|
|
3
|
-
*
|
|
4
|
-
* Watches an expected artifact path (e.g. `specs/<feature>/plan.md`) and
|
|
5
|
-
* resolves when the agent has produced/updated the file. Used by the
|
|
6
|
-
* `--wait-artifact` flag in phase commands to allow the CLI to block
|
|
7
|
-
* until an external agent (Claude Code, Cursor, Antigravity) finishes
|
|
8
|
-
* producing the canonical output.
|
|
9
|
-
*
|
|
10
|
-
* Design choices:
|
|
11
|
-
* - Polls with `fs.stat` at a configurable interval (default 500ms).
|
|
12
|
-
* - Watches for either (a) new file creation after the baseline snapshot,
|
|
13
|
-
* or (b) mtime change on an existing file.
|
|
14
|
-
* - Supports glob patterns (`specs/<f>/code/**`) via minimal base-dir
|
|
15
|
-
* directory scan — for our use case we only need to detect "something
|
|
16
|
-
* new appeared under this directory".
|
|
17
|
-
* - Returns { path, hash, detectedAt } mirroring `ArtifactDetection`.
|
|
18
|
-
*
|
|
19
|
-
* Not goals:
|
|
20
|
-
* - Recursive/native fs watching (avoided for cross-platform determinism).
|
|
21
|
-
* - Debouncing writes larger than one tick (caller reads stable mtime).
|
|
22
|
-
*
|
|
23
|
-
* Blueprint ref: 17.7 — "Captura de artefatos".
|
|
24
|
-
*/
|
|
25
1
|
import { readdirSync, statSync, existsSync } from "node:fs";
|
|
26
2
|
import { dirname, isAbsolute, join, relative } from "node:path";
|
|
27
3
|
import { hashFile } from "../audit/hash.js";
|
|
@@ -43,10 +19,6 @@ export class ArtifactWaitAbortedError extends Error {
|
|
|
43
19
|
this.name = "ArtifactWaitAbortedError";
|
|
44
20
|
}
|
|
45
21
|
}
|
|
46
|
-
/**
|
|
47
|
-
* Snapshot of a single path's mtime — `null` when the file does not exist.
|
|
48
|
-
* The caller compares against a later snapshot to detect change.
|
|
49
|
-
*/
|
|
50
22
|
export function snapshotMtime(path) {
|
|
51
23
|
try {
|
|
52
24
|
return statSync(path).mtimeMs;
|
|
@@ -55,10 +27,6 @@ export function snapshotMtime(path) {
|
|
|
55
27
|
return null;
|
|
56
28
|
}
|
|
57
29
|
}
|
|
58
|
-
/**
|
|
59
|
-
* Snapshot a directory (non-recursive): returns a map of filename → mtime.
|
|
60
|
-
* Used to detect when a new file appears under a directory (e.g. `code/**`).
|
|
61
|
-
*/
|
|
62
30
|
export function snapshotDir(dir) {
|
|
63
31
|
const out = new Map();
|
|
64
32
|
if (!existsSync(dir))
|
|
@@ -79,16 +47,10 @@ export function snapshotDir(dir) {
|
|
|
79
47
|
}
|
|
80
48
|
}
|
|
81
49
|
catch {
|
|
82
|
-
// ignore
|
|
83
50
|
}
|
|
84
51
|
}
|
|
85
52
|
return out;
|
|
86
53
|
}
|
|
87
|
-
/**
|
|
88
|
-
* Parse an expected path: either a concrete file (`specs/x/plan.md`) or a
|
|
89
|
-
* glob-dir pattern ending in `/**` (`specs/x/code/**`). Returns the mode
|
|
90
|
-
* and the effective directory/file path.
|
|
91
|
-
*/
|
|
92
54
|
function parseExpected(expectedPath) {
|
|
93
55
|
if (!isAbsolute(expectedPath)) {
|
|
94
56
|
throw new Error(`Artifact path must be absolute: "${expectedPath}"`);
|
|
@@ -98,17 +60,6 @@ function parseExpected(expectedPath) {
|
|
|
98
60
|
}
|
|
99
61
|
return { mode: "file", watchTarget: expectedPath };
|
|
100
62
|
}
|
|
101
|
-
/**
|
|
102
|
-
* Wait for an artifact to appear or change (by mtime) at `expectedPath`.
|
|
103
|
-
*
|
|
104
|
-
* - File mode: resolves when `expectedPath` exists AND (a) didn't exist
|
|
105
|
-
* at the baseline OR (b) its mtime differs from the baseline.
|
|
106
|
-
* - Dir mode (trailing `/**`): resolves when any new file appears in the
|
|
107
|
-
* target directory OR an existing file's mtime changes.
|
|
108
|
-
*
|
|
109
|
-
* Returns the detected file path (in dir mode, the first changed/new file
|
|
110
|
-
* encountered) along with its SHA-256 hash and detection timestamp.
|
|
111
|
-
*/
|
|
112
63
|
export async function waitForArtifact(opts) {
|
|
113
64
|
const pollIntervalMs = opts.pollIntervalMs ?? 500;
|
|
114
65
|
const timeoutMs = opts.timeoutMs ?? 300_000;
|
|
@@ -185,30 +136,15 @@ export async function waitForArtifact(opts) {
|
|
|
185
136
|
timer = setTimeout(poll, pollIntervalMs);
|
|
186
137
|
});
|
|
187
138
|
}
|
|
188
|
-
/**
|
|
189
|
-
* Resolve an artifact path relative to a project root.
|
|
190
|
-
*
|
|
191
|
-
* Exported as a helper for CLI commands that know the feature slug and
|
|
192
|
-
* the expected output pattern from `CanonicalPrompt.expectedOutput`.
|
|
193
|
-
*/
|
|
194
139
|
export function resolveArtifactPath(projectRoot, expectedOutput) {
|
|
195
140
|
return isAbsolute(expectedOutput)
|
|
196
141
|
? expectedOutput
|
|
197
142
|
: join(projectRoot, expectedOutput);
|
|
198
143
|
}
|
|
199
|
-
/**
|
|
200
|
-
* Determine the "watch target directory" for a given expected path.
|
|
201
|
-
* Useful for callers that want to show the user what they are waiting on.
|
|
202
|
-
*/
|
|
203
144
|
export function watchTargetOf(expectedPath) {
|
|
204
145
|
const { mode, watchTarget } = parseExpected(expectedPath);
|
|
205
146
|
return mode === "dir" ? watchTarget : dirname(watchTarget);
|
|
206
147
|
}
|
|
207
|
-
/**
|
|
208
|
-
* Returns the relative path of `absolute` from `root`, using forward slashes
|
|
209
|
-
* so messages look uniform across platforms.
|
|
210
|
-
*/
|
|
211
148
|
export function relPath(root, absolute) {
|
|
212
149
|
return relative(root, absolute).replace(/\\/g, "/");
|
|
213
150
|
}
|
|
214
|
-
//# sourceMappingURL=artifact-watcher.js.map
|
|
@@ -1,32 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Artifact Backup — preserve previous versions before overwriting.
|
|
3
|
-
*
|
|
4
|
-
* Before a phase command (re-)generates a slash-command prompt file or
|
|
5
|
-
* writes a new canonical artifact, we copy the previous file (if any)
|
|
6
|
-
* into `.raptor/backup/<ISO>/<relative-path>`. This gives the user a
|
|
7
|
-
* cheap "undo" and lets audit trails reference the pre-state.
|
|
8
|
-
*
|
|
9
|
-
* Design notes:
|
|
10
|
-
* - Backups are timestamped per call — multiple files backed up in the
|
|
11
|
-
* same instant share a directory (we expose `createBackupSession` for
|
|
12
|
-
* that), otherwise each call gets its own unique directory.
|
|
13
|
-
* - We intentionally do NOT rotate/prune; cleanup is the user's call.
|
|
14
|
-
* - Missing source files are a no-op (returns `null`) — not an error,
|
|
15
|
-
* because "first write" is the common case.
|
|
16
|
-
*
|
|
17
|
-
* Blueprint ref: 17.4 — "Idempotência e versionamento de prompts".
|
|
18
|
-
*/
|
|
19
1
|
import { existsSync, mkdirSync, copyFileSync, rmSync } from "node:fs";
|
|
20
2
|
import { dirname, isAbsolute, join, relative } from "node:path";
|
|
21
|
-
/**
|
|
22
|
-
* Default relative location inside a project root where backups live.
|
|
23
|
-
* Exported so callers can construct informational messages.
|
|
24
|
-
*/
|
|
25
3
|
export const DEFAULT_BACKUP_SUBDIR = ".raptor/backup";
|
|
26
|
-
/**
|
|
27
|
-
* Build an ISO timestamp safe for a directory name (colons replaced).
|
|
28
|
-
* Example: `2026-04-23T18-42-13-021Z`.
|
|
29
|
-
*/
|
|
30
4
|
export function backupTimestamp(date = new Date()) {
|
|
31
5
|
return date.toISOString().replace(/:/g, "-").replace(/\./g, "-");
|
|
32
6
|
}
|
|
@@ -36,13 +10,6 @@ function resolveBackupRoot(projectRoot) {
|
|
|
36
10
|
}
|
|
37
11
|
return join(projectRoot, DEFAULT_BACKUP_SUBDIR);
|
|
38
12
|
}
|
|
39
|
-
/**
|
|
40
|
-
* Back up a single file into a freshly-created session directory.
|
|
41
|
-
*
|
|
42
|
-
* If the source file does not exist, this is a no-op and returns `null`.
|
|
43
|
-
* Otherwise the file is copied under `<root>/.raptor/backup/<ts>/<rel>`
|
|
44
|
-
* where `<rel>` is the source path relative to `projectRoot`.
|
|
45
|
-
*/
|
|
46
13
|
export function backupIfExists(projectRoot, absoluteSource) {
|
|
47
14
|
if (!existsSync(absoluteSource))
|
|
48
15
|
return null;
|
|
@@ -51,11 +18,6 @@ export function backupIfExists(projectRoot, absoluteSource) {
|
|
|
51
18
|
session.discardIfEmpty();
|
|
52
19
|
return result;
|
|
53
20
|
}
|
|
54
|
-
/**
|
|
55
|
-
* Start a backup session. Useful when a command is about to overwrite
|
|
56
|
-
* several files (e.g. one prompt per adapter) and we want them grouped
|
|
57
|
-
* under a single timestamp directory.
|
|
58
|
-
*/
|
|
59
21
|
export function createBackupSession(projectRoot, timestamp = backupTimestamp()) {
|
|
60
22
|
const backupRoot = resolveBackupRoot(projectRoot);
|
|
61
23
|
const dir = join(backupRoot, timestamp);
|
|
@@ -99,9 +61,7 @@ export function createBackupSession(projectRoot, timestamp = backupTimestamp())
|
|
|
99
61
|
rmSync(dir, { recursive: true, force: true });
|
|
100
62
|
}
|
|
101
63
|
catch {
|
|
102
|
-
// ignore — best effort cleanup
|
|
103
64
|
}
|
|
104
65
|
},
|
|
105
66
|
};
|
|
106
67
|
}
|
|
107
|
-
//# sourceMappingURL=backup.js.map
|
|
@@ -1,21 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agent Configuration — agents.yml parser and validator.
|
|
3
|
-
*
|
|
4
|
-
* Parses, validates, and serializes the `.raptor/agents.yml` configuration.
|
|
5
|
-
* Schema: raptor.agents/v1.
|
|
6
|
-
*
|
|
7
|
-
* Blueprint ref: 17.3 — "Manifesto de orquestração".
|
|
8
|
-
*/
|
|
9
1
|
import { existsSync, readFileSync } from "node:fs";
|
|
10
2
|
import { join } from "node:path";
|
|
11
3
|
import { getAgentByKind } from "./registry.js";
|
|
12
|
-
// ---------------------------------------------------------------------------
|
|
13
|
-
// YAML-like parser (minimal, no external dep)
|
|
14
|
-
// ---------------------------------------------------------------------------
|
|
15
|
-
/**
|
|
16
|
-
* Parse agents.yml from a project root.
|
|
17
|
-
* Returns null if the file doesn't exist.
|
|
18
|
-
*/
|
|
19
4
|
export function loadAgentsConfig(projectRoot) {
|
|
20
5
|
const configPath = join(projectRoot, ".raptor", "agents.yml");
|
|
21
6
|
if (!existsSync(configPath))
|
|
@@ -23,13 +8,7 @@ export function loadAgentsConfig(projectRoot) {
|
|
|
23
8
|
const raw = readFileSync(configPath, "utf8");
|
|
24
9
|
return parseAgentsYaml(raw);
|
|
25
10
|
}
|
|
26
|
-
/**
|
|
27
|
-
* Parse an agents.yml content string into an AgentsConfig.
|
|
28
|
-
* Uses a simplified YAML parser since agents.yml has a predictable schema.
|
|
29
|
-
*/
|
|
30
11
|
export function parseAgentsYaml(raw) {
|
|
31
|
-
// We use JSON as the canonical internal format. The YAML is parsed line-by-line
|
|
32
|
-
// into a structured object. This avoids a dependency on a full YAML parser.
|
|
33
12
|
const config = {
|
|
34
13
|
schema: "raptor.agents/v1",
|
|
35
14
|
agents: [],
|
|
@@ -47,7 +26,6 @@ export function parseAgentsYaml(raw) {
|
|
|
47
26
|
const trimmed = line.trim();
|
|
48
27
|
if (trimmed === "" || trimmed.startsWith("#"))
|
|
49
28
|
continue;
|
|
50
|
-
// Schema
|
|
51
29
|
if (trimmed.startsWith("schema:")) {
|
|
52
30
|
config.schema = trimmed
|
|
53
31
|
.split(":")
|
|
@@ -57,7 +35,6 @@ export function parseAgentsYaml(raw) {
|
|
|
57
35
|
.replace(/['"]/g, "");
|
|
58
36
|
continue;
|
|
59
37
|
}
|
|
60
|
-
// Section detection
|
|
61
38
|
if (trimmed === "agents:") {
|
|
62
39
|
currentSection = "agents";
|
|
63
40
|
continue;
|
|
@@ -66,7 +43,6 @@ export function parseAgentsYaml(raw) {
|
|
|
66
43
|
currentSection = "policy";
|
|
67
44
|
continue;
|
|
68
45
|
}
|
|
69
|
-
// Agent entries
|
|
70
46
|
if (currentSection === "agents" || currentSection === "agent") {
|
|
71
47
|
if (trimmed.startsWith("- id:")) {
|
|
72
48
|
if (currentAgent?.id) {
|
|
@@ -103,7 +79,6 @@ export function parseAgentsYaml(raw) {
|
|
|
103
79
|
}
|
|
104
80
|
}
|
|
105
81
|
}
|
|
106
|
-
// Policy section
|
|
107
82
|
if (currentSection === "policy" ||
|
|
108
83
|
currentSection === "byCommand" ||
|
|
109
84
|
currentSection === "fallback") {
|
|
@@ -120,7 +95,7 @@ export function parseAgentsYaml(raw) {
|
|
|
120
95
|
else if (trimmed === "fallback_chain:" ||
|
|
121
96
|
trimmed === "fallbackChain:") {
|
|
122
97
|
currentSection = "fallback";
|
|
123
|
-
config.policy.fallbackChain = [];
|
|
98
|
+
config.policy.fallbackChain = [];
|
|
124
99
|
}
|
|
125
100
|
else if (currentSection === "byCommand" && trimmed.match(/^\w+:/)) {
|
|
126
101
|
const [key, ...rest] = trimmed.split(":");
|
|
@@ -139,7 +114,6 @@ export function parseAgentsYaml(raw) {
|
|
|
139
114
|
}
|
|
140
115
|
}
|
|
141
116
|
}
|
|
142
|
-
// Flush last agent
|
|
143
117
|
if (currentAgent?.id) {
|
|
144
118
|
config.agents.push(finalizeAgent(currentAgent));
|
|
145
119
|
}
|
|
@@ -163,27 +137,21 @@ function finalizeAgent(partial) {
|
|
|
163
137
|
capabilities: partial.capabilities ?? [],
|
|
164
138
|
};
|
|
165
139
|
}
|
|
166
|
-
/**
|
|
167
|
-
* Validate an AgentsConfig for semantic correctness.
|
|
168
|
-
*/
|
|
169
140
|
export function validateAgentsConfig(config) {
|
|
170
141
|
const errors = [];
|
|
171
142
|
const agentIds = new Set(config.agents.map((a) => a.id));
|
|
172
|
-
// Schema version
|
|
173
143
|
if (config.schema !== "raptor.agents/v1") {
|
|
174
144
|
errors.push({
|
|
175
145
|
field: "schema",
|
|
176
146
|
message: `Unknown schema "${config.schema}", expected "raptor.agents/v1".`,
|
|
177
147
|
});
|
|
178
148
|
}
|
|
179
|
-
// At least one agent
|
|
180
149
|
if (config.agents.length === 0) {
|
|
181
150
|
errors.push({
|
|
182
151
|
field: "agents",
|
|
183
152
|
message: "At least one agent must be configured.",
|
|
184
153
|
});
|
|
185
154
|
}
|
|
186
|
-
// Unique IDs
|
|
187
155
|
const seen = new Set();
|
|
188
156
|
for (const agent of config.agents) {
|
|
189
157
|
if (seen.has(agent.id)) {
|
|
@@ -193,7 +161,6 @@ export function validateAgentsConfig(config) {
|
|
|
193
161
|
});
|
|
194
162
|
}
|
|
195
163
|
seen.add(agent.id);
|
|
196
|
-
// Kind maps to a known adapter
|
|
197
164
|
if (!getAgentByKind(agent.kind)) {
|
|
198
165
|
errors.push({
|
|
199
166
|
field: `agents.${agent.id}.kind`,
|
|
@@ -201,14 +168,12 @@ export function validateAgentsConfig(config) {
|
|
|
201
168
|
});
|
|
202
169
|
}
|
|
203
170
|
}
|
|
204
|
-
// Policy default references a valid agent
|
|
205
171
|
if (!agentIds.has(config.policy.default)) {
|
|
206
172
|
errors.push({
|
|
207
173
|
field: "policy.default",
|
|
208
174
|
message: `Default agent "${config.policy.default}" is not in agents[].`,
|
|
209
175
|
});
|
|
210
176
|
}
|
|
211
|
-
// by_command values reference valid agents
|
|
212
177
|
for (const [cmd, agentId] of Object.entries(config.policy.byCommand)) {
|
|
213
178
|
if (!agentIds.has(agentId)) {
|
|
214
179
|
errors.push({
|
|
@@ -217,7 +182,6 @@ export function validateAgentsConfig(config) {
|
|
|
217
182
|
});
|
|
218
183
|
}
|
|
219
184
|
}
|
|
220
|
-
// fallback_chain values reference valid agents
|
|
221
185
|
for (const agentId of config.policy.fallbackChain) {
|
|
222
186
|
if (!agentIds.has(agentId)) {
|
|
223
187
|
errors.push({
|
|
@@ -228,12 +192,6 @@ export function validateAgentsConfig(config) {
|
|
|
228
192
|
}
|
|
229
193
|
return errors;
|
|
230
194
|
}
|
|
231
|
-
// ---------------------------------------------------------------------------
|
|
232
|
-
// Generator — produce agents.yml from detected agents
|
|
233
|
-
// ---------------------------------------------------------------------------
|
|
234
|
-
/**
|
|
235
|
-
* Generate default agents.yml content for detected agents.
|
|
236
|
-
*/
|
|
237
195
|
export function generateAgentsYaml(agents) {
|
|
238
196
|
const lines = [];
|
|
239
197
|
lines.push("# Raptor — Agent Configuration");
|
|
@@ -260,11 +218,9 @@ export function generateAgentsYaml(agents) {
|
|
|
260
218
|
for (const agent of agents) {
|
|
261
219
|
lines.push(` - ${agent.id}`);
|
|
262
220
|
}
|
|
263
|
-
// Always ensure human is the ultimate fallback
|
|
264
221
|
if (!agents.some((a) => a.id === "human")) {
|
|
265
222
|
lines.push(" - human");
|
|
266
223
|
}
|
|
267
224
|
lines.push("");
|
|
268
225
|
return lines.join("\n");
|
|
269
226
|
}
|
|
270
|
-
//# sourceMappingURL=config.js.map
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Context File Manager.
|
|
3
|
-
*
|
|
4
|
-
* Manages delimited blocks in agent context files (CLAUDE.md, AGENTS.md, etc.).
|
|
5
|
-
* Uses idempotent upsert with RAPTOR START/END markers to coexist safely
|
|
6
|
-
* with user-authored content.
|
|
7
|
-
*
|
|
8
|
-
* Blueprint ref: 03§6 — "upsert idempotente delimitado por marcadores".
|
|
9
|
-
*/
|
|
10
1
|
import { existsSync, readFileSync, writeFileSync } from "node:fs";
|
|
11
2
|
import { dirname } from "node:path";
|
|
12
3
|
import { mkdirSync } from "node:fs";
|
|
13
4
|
const MARKER_START = "<!-- RAPTOR START -->";
|
|
14
5
|
const MARKER_END = "<!-- RAPTOR END -->";
|
|
15
|
-
/**
|
|
16
|
-
* Generate the standard Raptor context block content.
|
|
17
|
-
*/
|
|
18
6
|
export function buildContextBlock(opts) {
|
|
19
7
|
const lines = [];
|
|
20
8
|
lines.push("# Raptor — Spec-Driven Development Context\n");
|
|
@@ -48,13 +36,6 @@ export function buildContextBlock(opts) {
|
|
|
48
36
|
lines.push('- **USE** `[NEEDS CLARIFICATION]` markers when information is missing.');
|
|
49
37
|
return lines.join("\n");
|
|
50
38
|
}
|
|
51
|
-
/**
|
|
52
|
-
* Insert or update the Raptor block in an agent context file.
|
|
53
|
-
*
|
|
54
|
-
* - If file doesn't exist: create with block only.
|
|
55
|
-
* - If file exists without block: append block at end.
|
|
56
|
-
* - If file exists with block: replace block content, preserve everything else.
|
|
57
|
-
*/
|
|
58
39
|
export function upsertContextFile(filePath, content) {
|
|
59
40
|
const block = `${MARKER_START}\n${content}\n${MARKER_END}`;
|
|
60
41
|
if (!existsSync(filePath)) {
|
|
@@ -66,20 +47,14 @@ export function upsertContextFile(filePath, content) {
|
|
|
66
47
|
const startIdx = existing.indexOf(MARKER_START);
|
|
67
48
|
const endIdx = existing.indexOf(MARKER_END);
|
|
68
49
|
if (startIdx === -1 || endIdx === -1) {
|
|
69
|
-
// Block doesn't exist — append
|
|
70
50
|
const sep = existing.endsWith("\n") ? "\n" : "\n\n";
|
|
71
51
|
writeFileSync(filePath, existing + sep + block + "\n");
|
|
72
52
|
return;
|
|
73
53
|
}
|
|
74
|
-
// Block exists — replace
|
|
75
54
|
const before = existing.slice(0, startIdx);
|
|
76
55
|
const after = existing.slice(endIdx + MARKER_END.length);
|
|
77
56
|
writeFileSync(filePath, before + block + after);
|
|
78
57
|
}
|
|
79
|
-
/**
|
|
80
|
-
* Remove the Raptor block from a context file.
|
|
81
|
-
* Preserves all content outside the markers.
|
|
82
|
-
*/
|
|
83
58
|
export function removeContextBlock(filePath) {
|
|
84
59
|
if (!existsSync(filePath))
|
|
85
60
|
return false;
|
|
@@ -94,13 +69,9 @@ export function removeContextBlock(filePath) {
|
|
|
94
69
|
writeFileSync(filePath, cleaned ? cleaned + "\n" : "");
|
|
95
70
|
return true;
|
|
96
71
|
}
|
|
97
|
-
/**
|
|
98
|
-
* Check if a context file contains the Raptor block.
|
|
99
|
-
*/
|
|
100
72
|
export function hasContextBlock(filePath) {
|
|
101
73
|
if (!existsSync(filePath))
|
|
102
74
|
return false;
|
|
103
75
|
const content = readFileSync(filePath, "utf8");
|
|
104
76
|
return content.includes(MARKER_START) && content.includes(MARKER_END);
|
|
105
77
|
}
|
|
106
|
-
//# sourceMappingURL=context-file.js.map
|
|
@@ -1,26 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agent Handoff Manager.
|
|
3
|
-
*
|
|
4
|
-
* Manages cross-agent transitions between SDD phases.
|
|
5
|
-
* Enforces HD-1: previous phase must be "approved" before handoff.
|
|
6
|
-
*
|
|
7
|
-
* Blueprint ref: 17.8 — "Handoff cross-agent".
|
|
8
|
-
*/
|
|
9
|
-
// ---------------------------------------------------------------------------
|
|
10
|
-
// Phase ordering
|
|
11
|
-
// ---------------------------------------------------------------------------
|
|
12
1
|
const PHASE_ORDER = ["new", "plan", "tasks", "implement"];
|
|
13
|
-
// ---------------------------------------------------------------------------
|
|
14
|
-
// Validation
|
|
15
|
-
// ---------------------------------------------------------------------------
|
|
16
|
-
/**
|
|
17
|
-
* Validate that a handoff is semantically correct.
|
|
18
|
-
*
|
|
19
|
-
* Rules enforced:
|
|
20
|
-
* - HD-1: Phase ordering must be respected (new → plan → tasks → implement).
|
|
21
|
-
* - HD-2: Cannot hand off to the same phase (no self-loop).
|
|
22
|
-
* - HD-3: Source and target can be the same agent (same-agent phase transition).
|
|
23
|
-
*/
|
|
24
2
|
export function validateHandoff(request) {
|
|
25
3
|
const summary = {
|
|
26
4
|
feature: request.feature,
|
|
@@ -29,7 +7,6 @@ export function validateHandoff(request) {
|
|
|
29
7
|
phaseFrom: request.phaseFrom,
|
|
30
8
|
phaseTo: request.phaseTo,
|
|
31
9
|
};
|
|
32
|
-
// HD-2: No self-loop
|
|
33
10
|
if (request.phaseFrom === request.phaseTo) {
|
|
34
11
|
return {
|
|
35
12
|
allowed: false,
|
|
@@ -37,11 +14,9 @@ export function validateHandoff(request) {
|
|
|
37
14
|
summary,
|
|
38
15
|
};
|
|
39
16
|
}
|
|
40
|
-
// HD-1: Phase ordering
|
|
41
17
|
const fromIdx = PHASE_ORDER.indexOf(request.phaseFrom);
|
|
42
18
|
const toIdx = PHASE_ORDER.indexOf(request.phaseTo);
|
|
43
19
|
if (fromIdx === -1 || toIdx === -1) {
|
|
44
|
-
// Unknown phase — allow (could be custom workflow step)
|
|
45
20
|
return { allowed: true, summary };
|
|
46
21
|
}
|
|
47
22
|
if (toIdx <= fromIdx) {
|
|
@@ -53,19 +28,12 @@ export function validateHandoff(request) {
|
|
|
53
28
|
}
|
|
54
29
|
return { allowed: true, summary };
|
|
55
30
|
}
|
|
56
|
-
/**
|
|
57
|
-
* Get the next phase in the canonical SDD cycle.
|
|
58
|
-
*/
|
|
59
31
|
export function nextPhase(current) {
|
|
60
32
|
const idx = PHASE_ORDER.indexOf(current);
|
|
61
33
|
if (idx === -1 || idx >= PHASE_ORDER.length - 1)
|
|
62
34
|
return null;
|
|
63
35
|
return PHASE_ORDER[idx + 1];
|
|
64
36
|
}
|
|
65
|
-
/**
|
|
66
|
-
* Check if a phase is the terminal phase (implement).
|
|
67
|
-
*/
|
|
68
37
|
export function isTerminalPhase(phase) {
|
|
69
38
|
return phase === PHASE_ORDER[PHASE_ORDER.length - 1];
|
|
70
39
|
}
|
|
71
|
-
//# sourceMappingURL=handoff.js.map
|