hivemind-pipeline 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/LICENSE +63 -0
- package/README.md +352 -0
- package/dist/bin/swarm.d.ts +3 -0
- package/dist/bin/swarm.d.ts.map +1 -0
- package/dist/bin/swarm.js +293 -0
- package/dist/bin/swarm.js.map +1 -0
- package/dist/dashboard/assets/index-Cf_KwDES.js +359 -0
- package/dist/dashboard/assets/index-SatEQz0u.css +1 -0
- package/dist/dashboard/index.html +16 -0
- package/dist/prompts/Architect-Go.md +455 -0
- package/dist/prompts/Architect-Node.md +379 -0
- package/dist/prompts/Architect-Python.md +63 -0
- package/dist/prompts/Architect-React.md +352 -0
- package/dist/prompts/Architect-Rust.md +63 -0
- package/dist/prompts/Architect-Swift.md +61 -0
- package/dist/prompts/Software-engineer-go.md +254 -0
- package/dist/prompts/Software-engineer-node.md +241 -0
- package/dist/prompts/Software-engineer-python.md +70 -0
- package/dist/prompts/Software-engineer-react.md +167 -0
- package/dist/prompts/Software-engineer-rust.md +69 -0
- package/dist/prompts/Software-engineer-swift.md +69 -0
- package/dist/prompts/Software-lead-go.md +247 -0
- package/dist/prompts/Software-lead-node.md +238 -0
- package/dist/prompts/Software-lead-python.md +53 -0
- package/dist/prompts/Software-lead-react.md +229 -0
- package/dist/prompts/Software-lead-rust.md +53 -0
- package/dist/prompts/Software-lead-swift.md +53 -0
- package/dist/prompts/analyst-go.md +351 -0
- package/dist/prompts/analyst-node.md +317 -0
- package/dist/prompts/analyst-python.md +139 -0
- package/dist/prompts/analyst-react.md +428 -0
- package/dist/prompts/analyst-rust.md +125 -0
- package/dist/prompts/analyst-swift.md +125 -0
- package/dist/prompts/test-engineer-go.md +99 -0
- package/dist/prompts/test-engineer-node.md +97 -0
- package/dist/prompts/test-engineer-python.md +61 -0
- package/dist/prompts/test-engineer-react.md +104 -0
- package/dist/prompts/test-engineer-rust.md +62 -0
- package/dist/prompts/test-engineer-swift.md +66 -0
- package/dist/src/__tests__/commands/analyze.test.d.ts +2 -0
- package/dist/src/__tests__/commands/analyze.test.d.ts.map +1 -0
- package/dist/src/__tests__/commands/analyze.test.js +61 -0
- package/dist/src/__tests__/commands/analyze.test.js.map +1 -0
- package/dist/src/__tests__/commands/architect.test.d.ts +2 -0
- package/dist/src/__tests__/commands/architect.test.d.ts.map +1 -0
- package/dist/src/__tests__/commands/architect.test.js +46 -0
- package/dist/src/__tests__/commands/architect.test.js.map +1 -0
- package/dist/src/__tests__/commands/build.test.d.ts +2 -0
- package/dist/src/__tests__/commands/build.test.d.ts.map +1 -0
- package/dist/src/__tests__/commands/build.test.js +69 -0
- package/dist/src/__tests__/commands/build.test.js.map +1 -0
- package/dist/src/__tests__/commands/dashboard.test.d.ts +2 -0
- package/dist/src/__tests__/commands/dashboard.test.d.ts.map +1 -0
- package/dist/src/__tests__/commands/dashboard.test.js +95 -0
- package/dist/src/__tests__/commands/dashboard.test.js.map +1 -0
- package/dist/src/__tests__/commands/doctor.test.d.ts +2 -0
- package/dist/src/__tests__/commands/doctor.test.d.ts.map +1 -0
- package/dist/src/__tests__/commands/doctor.test.js +69 -0
- package/dist/src/__tests__/commands/doctor.test.js.map +1 -0
- package/dist/src/__tests__/commands/fix.test.d.ts +2 -0
- package/dist/src/__tests__/commands/fix.test.d.ts.map +1 -0
- package/dist/src/__tests__/commands/fix.test.js +147 -0
- package/dist/src/__tests__/commands/fix.test.js.map +1 -0
- package/dist/src/__tests__/commands/init.test.d.ts +2 -0
- package/dist/src/__tests__/commands/init.test.d.ts.map +1 -0
- package/dist/src/__tests__/commands/init.test.js +79 -0
- package/dist/src/__tests__/commands/init.test.js.map +1 -0
- package/dist/src/__tests__/commands/learn.test.d.ts +2 -0
- package/dist/src/__tests__/commands/learn.test.d.ts.map +1 -0
- package/dist/src/__tests__/commands/learn.test.js +64 -0
- package/dist/src/__tests__/commands/learn.test.js.map +1 -0
- package/dist/src/__tests__/commands/mayday.test.d.ts +2 -0
- package/dist/src/__tests__/commands/mayday.test.d.ts.map +1 -0
- package/dist/src/__tests__/commands/mayday.test.js +115 -0
- package/dist/src/__tests__/commands/mayday.test.js.map +1 -0
- package/dist/src/__tests__/commands/memory.test.d.ts +2 -0
- package/dist/src/__tests__/commands/memory.test.d.ts.map +1 -0
- package/dist/src/__tests__/commands/memory.test.js +80 -0
- package/dist/src/__tests__/commands/memory.test.js.map +1 -0
- package/dist/src/__tests__/commands/plan.test.d.ts +2 -0
- package/dist/src/__tests__/commands/plan.test.d.ts.map +1 -0
- package/dist/src/__tests__/commands/plan.test.js +46 -0
- package/dist/src/__tests__/commands/plan.test.js.map +1 -0
- package/dist/src/__tests__/commands/pr.test.d.ts +2 -0
- package/dist/src/__tests__/commands/pr.test.d.ts.map +1 -0
- package/dist/src/__tests__/commands/pr.test.js +170 -0
- package/dist/src/__tests__/commands/pr.test.js.map +1 -0
- package/dist/src/__tests__/commands/refactor.test.d.ts +2 -0
- package/dist/src/__tests__/commands/refactor.test.d.ts.map +1 -0
- package/dist/src/__tests__/commands/refactor.test.js +107 -0
- package/dist/src/__tests__/commands/refactor.test.js.map +1 -0
- package/dist/src/__tests__/commands/review.test.d.ts +2 -0
- package/dist/src/__tests__/commands/review.test.d.ts.map +1 -0
- package/dist/src/__tests__/commands/review.test.js +125 -0
- package/dist/src/__tests__/commands/review.test.js.map +1 -0
- package/dist/src/__tests__/commands/shared.test.d.ts +2 -0
- package/dist/src/__tests__/commands/shared.test.d.ts.map +1 -0
- package/dist/src/__tests__/commands/shared.test.js +112 -0
- package/dist/src/__tests__/commands/shared.test.js.map +1 -0
- package/dist/src/__tests__/commands/spike.test.d.ts +2 -0
- package/dist/src/__tests__/commands/spike.test.d.ts.map +1 -0
- package/dist/src/__tests__/commands/spike.test.js +75 -0
- package/dist/src/__tests__/commands/spike.test.js.map +1 -0
- package/dist/src/__tests__/commands/stats.test.d.ts +2 -0
- package/dist/src/__tests__/commands/stats.test.d.ts.map +1 -0
- package/dist/src/__tests__/commands/stats.test.js +82 -0
- package/dist/src/__tests__/commands/stats.test.js.map +1 -0
- package/dist/src/__tests__/commands/status.test.d.ts +2 -0
- package/dist/src/__tests__/commands/status.test.d.ts.map +1 -0
- package/dist/src/__tests__/commands/status.test.js +60 -0
- package/dist/src/__tests__/commands/status.test.js.map +1 -0
- package/dist/src/__tests__/commands/test-cmd.test.d.ts +2 -0
- package/dist/src/__tests__/commands/test-cmd.test.d.ts.map +1 -0
- package/dist/src/__tests__/commands/test-cmd.test.js +76 -0
- package/dist/src/__tests__/commands/test-cmd.test.js.map +1 -0
- package/dist/src/__tests__/commands/test-gen.test.d.ts +2 -0
- package/dist/src/__tests__/commands/test-gen.test.d.ts.map +1 -0
- package/dist/src/__tests__/commands/test-gen.test.js +151 -0
- package/dist/src/__tests__/commands/test-gen.test.js.map +1 -0
- package/dist/src/__tests__/core/agent-manager.test.d.ts +2 -0
- package/dist/src/__tests__/core/agent-manager.test.d.ts.map +1 -0
- package/dist/src/__tests__/core/agent-manager.test.js +167 -0
- package/dist/src/__tests__/core/agent-manager.test.js.map +1 -0
- package/dist/src/__tests__/core/agent-process.test.d.ts +2 -0
- package/dist/src/__tests__/core/agent-process.test.d.ts.map +1 -0
- package/dist/src/__tests__/core/agent-process.test.js +178 -0
- package/dist/src/__tests__/core/agent-process.test.js.map +1 -0
- package/dist/src/__tests__/core/guardrails.test.d.ts +2 -0
- package/dist/src/__tests__/core/guardrails.test.d.ts.map +1 -0
- package/dist/src/__tests__/core/guardrails.test.js +249 -0
- package/dist/src/__tests__/core/guardrails.test.js.map +1 -0
- package/dist/src/__tests__/core/pipeline.test.d.ts +2 -0
- package/dist/src/__tests__/core/pipeline.test.d.ts.map +1 -0
- package/dist/src/__tests__/core/pipeline.test.js +331 -0
- package/dist/src/__tests__/core/pipeline.test.js.map +1 -0
- package/dist/src/__tests__/core/state.test.d.ts +2 -0
- package/dist/src/__tests__/core/state.test.d.ts.map +1 -0
- package/dist/src/__tests__/core/state.test.js +132 -0
- package/dist/src/__tests__/core/state.test.js.map +1 -0
- package/dist/src/__tests__/core/ws-server.test.d.ts +2 -0
- package/dist/src/__tests__/core/ws-server.test.d.ts.map +1 -0
- package/dist/src/__tests__/core/ws-server.test.js +177 -0
- package/dist/src/__tests__/core/ws-server.test.js.map +1 -0
- package/dist/src/__tests__/helpers/temp-dir.d.ts +8 -0
- package/dist/src/__tests__/helpers/temp-dir.d.ts.map +1 -0
- package/dist/src/__tests__/helpers/temp-dir.js +25 -0
- package/dist/src/__tests__/helpers/temp-dir.js.map +1 -0
- package/dist/src/commands/agent.d.ts +3 -0
- package/dist/src/commands/agent.d.ts.map +1 -0
- package/dist/src/commands/agent.js +103 -0
- package/dist/src/commands/agent.js.map +1 -0
- package/dist/src/commands/allocate.d.ts +3 -0
- package/dist/src/commands/allocate.d.ts.map +1 -0
- package/dist/src/commands/allocate.js +229 -0
- package/dist/src/commands/allocate.js.map +1 -0
- package/dist/src/commands/analyze.d.ts +3 -0
- package/dist/src/commands/analyze.d.ts.map +1 -0
- package/dist/src/commands/analyze.js +63 -0
- package/dist/src/commands/analyze.js.map +1 -0
- package/dist/src/commands/architect-review.d.ts +3 -0
- package/dist/src/commands/architect-review.d.ts.map +1 -0
- package/dist/src/commands/architect-review.js +695 -0
- package/dist/src/commands/architect-review.js.map +1 -0
- package/dist/src/commands/architect.d.ts +3 -0
- package/dist/src/commands/architect.d.ts.map +1 -0
- package/dist/src/commands/architect.js +49 -0
- package/dist/src/commands/architect.js.map +1 -0
- package/dist/src/commands/audit.d.ts +3 -0
- package/dist/src/commands/audit.d.ts.map +1 -0
- package/dist/src/commands/audit.js +55 -0
- package/dist/src/commands/audit.js.map +1 -0
- package/dist/src/commands/autopilot.d.ts +7 -0
- package/dist/src/commands/autopilot.d.ts.map +1 -0
- package/dist/src/commands/autopilot.js +377 -0
- package/dist/src/commands/autopilot.js.map +1 -0
- package/dist/src/commands/babysit-prs.d.ts +13 -0
- package/dist/src/commands/babysit-prs.d.ts.map +1 -0
- package/dist/src/commands/babysit-prs.js +283 -0
- package/dist/src/commands/babysit-prs.js.map +1 -0
- package/dist/src/commands/benchmark.d.ts +34 -0
- package/dist/src/commands/benchmark.d.ts.map +1 -0
- package/dist/src/commands/benchmark.js +534 -0
- package/dist/src/commands/benchmark.js.map +1 -0
- package/dist/src/commands/build.d.ts +3 -0
- package/dist/src/commands/build.d.ts.map +1 -0
- package/dist/src/commands/build.js +63 -0
- package/dist/src/commands/build.js.map +1 -0
- package/dist/src/commands/check.d.ts +3 -0
- package/dist/src/commands/check.d.ts.map +1 -0
- package/dist/src/commands/check.js +102 -0
- package/dist/src/commands/check.js.map +1 -0
- package/dist/src/commands/ci.d.ts +3 -0
- package/dist/src/commands/ci.d.ts.map +1 -0
- package/dist/src/commands/ci.js +124 -0
- package/dist/src/commands/ci.js.map +1 -0
- package/dist/src/commands/compete.d.ts +3 -0
- package/dist/src/commands/compete.d.ts.map +1 -0
- package/dist/src/commands/compete.js +164 -0
- package/dist/src/commands/compete.js.map +1 -0
- package/dist/src/commands/compliance.d.ts +3 -0
- package/dist/src/commands/compliance.d.ts.map +1 -0
- package/dist/src/commands/compliance.js +722 -0
- package/dist/src/commands/compliance.js.map +1 -0
- package/dist/src/commands/context.d.ts +3 -0
- package/dist/src/commands/context.d.ts.map +1 -0
- package/dist/src/commands/context.js +171 -0
- package/dist/src/commands/context.js.map +1 -0
- package/dist/src/commands/contract.d.ts +3 -0
- package/dist/src/commands/contract.d.ts.map +1 -0
- package/dist/src/commands/contract.js +384 -0
- package/dist/src/commands/contract.js.map +1 -0
- package/dist/src/commands/dashboard.d.ts +3 -0
- package/dist/src/commands/dashboard.d.ts.map +1 -0
- package/dist/src/commands/dashboard.js +114 -0
- package/dist/src/commands/dashboard.js.map +1 -0
- package/dist/src/commands/delegate.d.ts +3 -0
- package/dist/src/commands/delegate.d.ts.map +1 -0
- package/dist/src/commands/delegate.js +474 -0
- package/dist/src/commands/delegate.js.map +1 -0
- package/dist/src/commands/deploy.d.ts +17 -0
- package/dist/src/commands/deploy.d.ts.map +1 -0
- package/dist/src/commands/deploy.js +163 -0
- package/dist/src/commands/deploy.js.map +1 -0
- package/dist/src/commands/deps.d.ts +3 -0
- package/dist/src/commands/deps.d.ts.map +1 -0
- package/dist/src/commands/deps.js +548 -0
- package/dist/src/commands/deps.js.map +1 -0
- package/dist/src/commands/doctor.d.ts +3 -0
- package/dist/src/commands/doctor.d.ts.map +1 -0
- package/dist/src/commands/doctor.js +120 -0
- package/dist/src/commands/doctor.js.map +1 -0
- package/dist/src/commands/empathize.d.ts +3 -0
- package/dist/src/commands/empathize.d.ts.map +1 -0
- package/dist/src/commands/empathize.js +253 -0
- package/dist/src/commands/empathize.js.map +1 -0
- package/dist/src/commands/evaluate.d.ts +3 -0
- package/dist/src/commands/evaluate.d.ts.map +1 -0
- package/dist/src/commands/evaluate.js +49 -0
- package/dist/src/commands/evaluate.js.map +1 -0
- package/dist/src/commands/evolve.d.ts +3 -0
- package/dist/src/commands/evolve.d.ts.map +1 -0
- package/dist/src/commands/evolve.js +841 -0
- package/dist/src/commands/evolve.js.map +1 -0
- package/dist/src/commands/experiment.d.ts +3 -0
- package/dist/src/commands/experiment.d.ts.map +1 -0
- package/dist/src/commands/experiment.js +286 -0
- package/dist/src/commands/experiment.js.map +1 -0
- package/dist/src/commands/explain.d.ts +3 -0
- package/dist/src/commands/explain.d.ts.map +1 -0
- package/dist/src/commands/explain.js +159 -0
- package/dist/src/commands/explain.js.map +1 -0
- package/dist/src/commands/federate.d.ts +3 -0
- package/dist/src/commands/federate.d.ts.map +1 -0
- package/dist/src/commands/federate.js +148 -0
- package/dist/src/commands/federate.js.map +1 -0
- package/dist/src/commands/fingerprint.d.ts +3 -0
- package/dist/src/commands/fingerprint.d.ts.map +1 -0
- package/dist/src/commands/fingerprint.js +65 -0
- package/dist/src/commands/fingerprint.js.map +1 -0
- package/dist/src/commands/fix.d.ts +3 -0
- package/dist/src/commands/fix.d.ts.map +1 -0
- package/dist/src/commands/fix.js +160 -0
- package/dist/src/commands/fix.js.map +1 -0
- package/dist/src/commands/fleet.d.ts +3 -0
- package/dist/src/commands/fleet.d.ts.map +1 -0
- package/dist/src/commands/fleet.js +311 -0
- package/dist/src/commands/fleet.js.map +1 -0
- package/dist/src/commands/forecast.d.ts +3 -0
- package/dist/src/commands/forecast.d.ts.map +1 -0
- package/dist/src/commands/forecast.js +522 -0
- package/dist/src/commands/forecast.js.map +1 -0
- package/dist/src/commands/govern.d.ts +3 -0
- package/dist/src/commands/govern.d.ts.map +1 -0
- package/dist/src/commands/govern.js +280 -0
- package/dist/src/commands/govern.js.map +1 -0
- package/dist/src/commands/health.d.ts +17 -0
- package/dist/src/commands/health.d.ts.map +1 -0
- package/dist/src/commands/health.js +491 -0
- package/dist/src/commands/health.js.map +1 -0
- package/dist/src/commands/impact.d.ts +3 -0
- package/dist/src/commands/impact.d.ts.map +1 -0
- package/dist/src/commands/impact.js +186 -0
- package/dist/src/commands/impact.js.map +1 -0
- package/dist/src/commands/improve.d.ts +3 -0
- package/dist/src/commands/improve.d.ts.map +1 -0
- package/dist/src/commands/improve.js +240 -0
- package/dist/src/commands/improve.js.map +1 -0
- package/dist/src/commands/inbox.d.ts +29 -0
- package/dist/src/commands/inbox.d.ts.map +1 -0
- package/dist/src/commands/inbox.js +538 -0
- package/dist/src/commands/inbox.js.map +1 -0
- package/dist/src/commands/incident.d.ts +15 -0
- package/dist/src/commands/incident.d.ts.map +1 -0
- package/dist/src/commands/incident.js +318 -0
- package/dist/src/commands/incident.js.map +1 -0
- package/dist/src/commands/init.d.ts +3 -0
- package/dist/src/commands/init.d.ts.map +1 -0
- package/dist/src/commands/init.js +97 -0
- package/dist/src/commands/init.js.map +1 -0
- package/dist/src/commands/journal.d.ts +3 -0
- package/dist/src/commands/journal.d.ts.map +1 -0
- package/dist/src/commands/journal.js +146 -0
- package/dist/src/commands/journal.js.map +1 -0
- package/dist/src/commands/learn.d.ts +9 -0
- package/dist/src/commands/learn.d.ts.map +1 -0
- package/dist/src/commands/learn.js +107 -0
- package/dist/src/commands/learn.js.map +1 -0
- package/dist/src/commands/mayday.d.ts +3 -0
- package/dist/src/commands/mayday.d.ts.map +1 -0
- package/dist/src/commands/mayday.js +145 -0
- package/dist/src/commands/mayday.js.map +1 -0
- package/dist/src/commands/memory.d.ts +3 -0
- package/dist/src/commands/memory.d.ts.map +1 -0
- package/dist/src/commands/memory.js +113 -0
- package/dist/src/commands/memory.js.map +1 -0
- package/dist/src/commands/mentor.d.ts +3 -0
- package/dist/src/commands/mentor.d.ts.map +1 -0
- package/dist/src/commands/mentor.js +225 -0
- package/dist/src/commands/mentor.js.map +1 -0
- package/dist/src/commands/migrate.d.ts +3 -0
- package/dist/src/commands/migrate.d.ts.map +1 -0
- package/dist/src/commands/migrate.js +169 -0
- package/dist/src/commands/migrate.js.map +1 -0
- package/dist/src/commands/models.d.ts +3 -0
- package/dist/src/commands/models.d.ts.map +1 -0
- package/dist/src/commands/models.js +396 -0
- package/dist/src/commands/models.js.map +1 -0
- package/dist/src/commands/multi-repo.d.ts +18 -0
- package/dist/src/commands/multi-repo.d.ts.map +1 -0
- package/dist/src/commands/multi-repo.js +423 -0
- package/dist/src/commands/multi-repo.js.map +1 -0
- package/dist/src/commands/negotiate.d.ts +3 -0
- package/dist/src/commands/negotiate.d.ts.map +1 -0
- package/dist/src/commands/negotiate.js +239 -0
- package/dist/src/commands/negotiate.js.map +1 -0
- package/dist/src/commands/observe.d.ts +3 -0
- package/dist/src/commands/observe.d.ts.map +1 -0
- package/dist/src/commands/observe.js +445 -0
- package/dist/src/commands/observe.js.map +1 -0
- package/dist/src/commands/onboard.d.ts +3 -0
- package/dist/src/commands/onboard.d.ts.map +1 -0
- package/dist/src/commands/onboard.js +263 -0
- package/dist/src/commands/onboard.js.map +1 -0
- package/dist/src/commands/optimize.d.ts +3 -0
- package/dist/src/commands/optimize.d.ts.map +1 -0
- package/dist/src/commands/optimize.js +340 -0
- package/dist/src/commands/optimize.js.map +1 -0
- package/dist/src/commands/own.d.ts +3 -0
- package/dist/src/commands/own.d.ts.map +1 -0
- package/dist/src/commands/own.js +499 -0
- package/dist/src/commands/own.js.map +1 -0
- package/dist/src/commands/pair.d.ts +3 -0
- package/dist/src/commands/pair.d.ts.map +1 -0
- package/dist/src/commands/pair.js +206 -0
- package/dist/src/commands/pair.js.map +1 -0
- package/dist/src/commands/pipeline.d.ts +3 -0
- package/dist/src/commands/pipeline.d.ts.map +1 -0
- package/dist/src/commands/pipeline.js +143 -0
- package/dist/src/commands/pipeline.js.map +1 -0
- package/dist/src/commands/plan.d.ts +3 -0
- package/dist/src/commands/plan.d.ts.map +1 -0
- package/dist/src/commands/plan.js +49 -0
- package/dist/src/commands/plan.js.map +1 -0
- package/dist/src/commands/plugin.d.ts +3 -0
- package/dist/src/commands/plugin.d.ts.map +1 -0
- package/dist/src/commands/plugin.js +114 -0
- package/dist/src/commands/plugin.js.map +1 -0
- package/dist/src/commands/pm.d.ts +38 -0
- package/dist/src/commands/pm.d.ts.map +1 -0
- package/dist/src/commands/pm.js +664 -0
- package/dist/src/commands/pm.js.map +1 -0
- package/dist/src/commands/pr.d.ts +3 -0
- package/dist/src/commands/pr.d.ts.map +1 -0
- package/dist/src/commands/pr.js +225 -0
- package/dist/src/commands/pr.js.map +1 -0
- package/dist/src/commands/prompt-guard.d.ts +3 -0
- package/dist/src/commands/prompt-guard.d.ts.map +1 -0
- package/dist/src/commands/prompt-guard.js +54 -0
- package/dist/src/commands/prompt-guard.js.map +1 -0
- package/dist/src/commands/provenance.d.ts +3 -0
- package/dist/src/commands/provenance.d.ts.map +1 -0
- package/dist/src/commands/provenance.js +96 -0
- package/dist/src/commands/provenance.js.map +1 -0
- package/dist/src/commands/recover.d.ts +3 -0
- package/dist/src/commands/recover.d.ts.map +1 -0
- package/dist/src/commands/recover.js +32 -0
- package/dist/src/commands/recover.js.map +1 -0
- package/dist/src/commands/refactor.d.ts +3 -0
- package/dist/src/commands/refactor.d.ts.map +1 -0
- package/dist/src/commands/refactor.js +143 -0
- package/dist/src/commands/refactor.js.map +1 -0
- package/dist/src/commands/report.d.ts +66 -0
- package/dist/src/commands/report.d.ts.map +1 -0
- package/dist/src/commands/report.js +493 -0
- package/dist/src/commands/report.js.map +1 -0
- package/dist/src/commands/retro.d.ts +71 -0
- package/dist/src/commands/retro.d.ts.map +1 -0
- package/dist/src/commands/retro.js +449 -0
- package/dist/src/commands/retro.js.map +1 -0
- package/dist/src/commands/review.d.ts +3 -0
- package/dist/src/commands/review.d.ts.map +1 -0
- package/dist/src/commands/review.js +202 -0
- package/dist/src/commands/review.js.map +1 -0
- package/dist/src/commands/risk.d.ts +3 -0
- package/dist/src/commands/risk.d.ts.map +1 -0
- package/dist/src/commands/risk.js +110 -0
- package/dist/src/commands/risk.js.map +1 -0
- package/dist/src/commands/roadmap.d.ts +3 -0
- package/dist/src/commands/roadmap.d.ts.map +1 -0
- package/dist/src/commands/roadmap.js +506 -0
- package/dist/src/commands/roadmap.js.map +1 -0
- package/dist/src/commands/runtime-monitor.d.ts +3 -0
- package/dist/src/commands/runtime-monitor.d.ts.map +1 -0
- package/dist/src/commands/runtime-monitor.js +154 -0
- package/dist/src/commands/runtime-monitor.js.map +1 -0
- package/dist/src/commands/sandbox.d.ts +3 -0
- package/dist/src/commands/sandbox.d.ts.map +1 -0
- package/dist/src/commands/sandbox.js +201 -0
- package/dist/src/commands/sandbox.js.map +1 -0
- package/dist/src/commands/scope.d.ts +3 -0
- package/dist/src/commands/scope.d.ts.map +1 -0
- package/dist/src/commands/scope.js +192 -0
- package/dist/src/commands/scope.js.map +1 -0
- package/dist/src/commands/secrets.d.ts +3 -0
- package/dist/src/commands/secrets.d.ts.map +1 -0
- package/dist/src/commands/secrets.js +99 -0
- package/dist/src/commands/secrets.js.map +1 -0
- package/dist/src/commands/secure.d.ts +3 -0
- package/dist/src/commands/secure.d.ts.map +1 -0
- package/dist/src/commands/secure.js +215 -0
- package/dist/src/commands/secure.js.map +1 -0
- package/dist/src/commands/server.d.ts +3 -0
- package/dist/src/commands/server.d.ts.map +1 -0
- package/dist/src/commands/server.js +228 -0
- package/dist/src/commands/server.js.map +1 -0
- package/dist/src/commands/shared.d.ts +18 -0
- package/dist/src/commands/shared.d.ts.map +1 -0
- package/dist/src/commands/shared.js +61 -0
- package/dist/src/commands/shared.js.map +1 -0
- package/dist/src/commands/simplify.d.ts +3 -0
- package/dist/src/commands/simplify.d.ts.map +1 -0
- package/dist/src/commands/simplify.js +194 -0
- package/dist/src/commands/simplify.js.map +1 -0
- package/dist/src/commands/simulate.d.ts +3 -0
- package/dist/src/commands/simulate.d.ts.map +1 -0
- package/dist/src/commands/simulate.js +275 -0
- package/dist/src/commands/simulate.js.map +1 -0
- package/dist/src/commands/slo.d.ts +3 -0
- package/dist/src/commands/slo.d.ts.map +1 -0
- package/dist/src/commands/slo.js +341 -0
- package/dist/src/commands/slo.js.map +1 -0
- package/dist/src/commands/spawn-capability.d.ts +3 -0
- package/dist/src/commands/spawn-capability.d.ts.map +1 -0
- package/dist/src/commands/spawn-capability.js +153 -0
- package/dist/src/commands/spawn-capability.js.map +1 -0
- package/dist/src/commands/specialize.d.ts +3 -0
- package/dist/src/commands/specialize.d.ts.map +1 -0
- package/dist/src/commands/specialize.js +266 -0
- package/dist/src/commands/specialize.js.map +1 -0
- package/dist/src/commands/spike.d.ts +3 -0
- package/dist/src/commands/spike.d.ts.map +1 -0
- package/dist/src/commands/spike.js +109 -0
- package/dist/src/commands/spike.js.map +1 -0
- package/dist/src/commands/standup.d.ts +3 -0
- package/dist/src/commands/standup.d.ts.map +1 -0
- package/dist/src/commands/standup.js +76 -0
- package/dist/src/commands/standup.js.map +1 -0
- package/dist/src/commands/stats.d.ts +39 -0
- package/dist/src/commands/stats.d.ts.map +1 -0
- package/dist/src/commands/stats.js +185 -0
- package/dist/src/commands/stats.js.map +1 -0
- package/dist/src/commands/status.d.ts +3 -0
- package/dist/src/commands/status.d.ts.map +1 -0
- package/dist/src/commands/status.js +65 -0
- package/dist/src/commands/status.js.map +1 -0
- package/dist/src/commands/supply-chain.d.ts +3 -0
- package/dist/src/commands/supply-chain.d.ts.map +1 -0
- package/dist/src/commands/supply-chain.js +110 -0
- package/dist/src/commands/supply-chain.js.map +1 -0
- package/dist/src/commands/system.d.ts +3 -0
- package/dist/src/commands/system.d.ts.map +1 -0
- package/dist/src/commands/system.js +582 -0
- package/dist/src/commands/system.js.map +1 -0
- package/dist/src/commands/teach.d.ts +3 -0
- package/dist/src/commands/teach.d.ts.map +1 -0
- package/dist/src/commands/teach.js +420 -0
- package/dist/src/commands/teach.js.map +1 -0
- package/dist/src/commands/team.d.ts +44 -0
- package/dist/src/commands/team.d.ts.map +1 -0
- package/dist/src/commands/team.js +355 -0
- package/dist/src/commands/team.js.map +1 -0
- package/dist/src/commands/telemetry.d.ts +3 -0
- package/dist/src/commands/telemetry.d.ts.map +1 -0
- package/dist/src/commands/telemetry.js +87 -0
- package/dist/src/commands/telemetry.js.map +1 -0
- package/dist/src/commands/test-gen.d.ts +3 -0
- package/dist/src/commands/test-gen.d.ts.map +1 -0
- package/dist/src/commands/test-gen.js +541 -0
- package/dist/src/commands/test-gen.js.map +1 -0
- package/dist/src/commands/test.d.ts +3 -0
- package/dist/src/commands/test.d.ts.map +1 -0
- package/dist/src/commands/test.js +84 -0
- package/dist/src/commands/test.js.map +1 -0
- package/dist/src/commands/watch.d.ts +11 -0
- package/dist/src/commands/watch.d.ts.map +1 -0
- package/dist/src/commands/watch.js +317 -0
- package/dist/src/commands/watch.js.map +1 -0
- package/dist/src/core/activity-tracker.d.ts +70 -0
- package/dist/src/core/activity-tracker.d.ts.map +1 -0
- package/dist/src/core/activity-tracker.js +294 -0
- package/dist/src/core/activity-tracker.js.map +1 -0
- package/dist/src/core/agent-bus.d.ts +38 -0
- package/dist/src/core/agent-bus.d.ts.map +1 -0
- package/dist/src/core/agent-bus.js +128 -0
- package/dist/src/core/agent-bus.js.map +1 -0
- package/dist/src/core/agent-loop.d.ts +79 -0
- package/dist/src/core/agent-loop.d.ts.map +1 -0
- package/dist/src/core/agent-loop.js +225 -0
- package/dist/src/core/agent-loop.js.map +1 -0
- package/dist/src/core/agent-manager.d.ts +90 -0
- package/dist/src/core/agent-manager.d.ts.map +1 -0
- package/dist/src/core/agent-manager.js +549 -0
- package/dist/src/core/agent-manager.js.map +1 -0
- package/dist/src/core/agent-process.d.ts +95 -0
- package/dist/src/core/agent-process.d.ts.map +1 -0
- package/dist/src/core/agent-process.js +428 -0
- package/dist/src/core/agent-process.js.map +1 -0
- package/dist/src/core/ambiguity-detector.d.ts +31 -0
- package/dist/src/core/ambiguity-detector.d.ts.map +1 -0
- package/dist/src/core/ambiguity-detector.js +286 -0
- package/dist/src/core/ambiguity-detector.js.map +1 -0
- package/dist/src/core/anomaly-detector.d.ts +30 -0
- package/dist/src/core/anomaly-detector.d.ts.map +1 -0
- package/dist/src/core/anomaly-detector.js +300 -0
- package/dist/src/core/anomaly-detector.js.map +1 -0
- package/dist/src/core/api-lifecycle.d.ts +11 -0
- package/dist/src/core/api-lifecycle.d.ts.map +1 -0
- package/dist/src/core/api-lifecycle.js +178 -0
- package/dist/src/core/api-lifecycle.js.map +1 -0
- package/dist/src/core/audit.d.ts +36 -0
- package/dist/src/core/audit.d.ts.map +1 -0
- package/dist/src/core/audit.js +88 -0
- package/dist/src/core/audit.js.map +1 -0
- package/dist/src/core/capability-spawner.d.ts +17 -0
- package/dist/src/core/capability-spawner.d.ts.map +1 -0
- package/dist/src/core/capability-spawner.js +170 -0
- package/dist/src/core/capability-spawner.js.map +1 -0
- package/dist/src/core/codebase-index.d.ts +53 -0
- package/dist/src/core/codebase-index.d.ts.map +1 -0
- package/dist/src/core/codebase-index.js +540 -0
- package/dist/src/core/codebase-index.js.map +1 -0
- package/dist/src/core/codebase-scanner.d.ts +3 -0
- package/dist/src/core/codebase-scanner.d.ts.map +1 -0
- package/dist/src/core/codebase-scanner.js +179 -0
- package/dist/src/core/codebase-scanner.js.map +1 -0
- package/dist/src/core/competitive-intel.d.ts +18 -0
- package/dist/src/core/competitive-intel.d.ts.map +1 -0
- package/dist/src/core/competitive-intel.js +167 -0
- package/dist/src/core/competitive-intel.js.map +1 -0
- package/dist/src/core/config.d.ts +14 -0
- package/dist/src/core/config.d.ts.map +1 -0
- package/dist/src/core/config.js +116 -0
- package/dist/src/core/config.js.map +1 -0
- package/dist/src/core/convention-extractor.d.ts +8 -0
- package/dist/src/core/convention-extractor.d.ts.map +1 -0
- package/dist/src/core/convention-extractor.js +382 -0
- package/dist/src/core/convention-extractor.js.map +1 -0
- package/dist/src/core/cost-tracker.d.ts +23 -0
- package/dist/src/core/cost-tracker.d.ts.map +1 -0
- package/dist/src/core/cost-tracker.js +83 -0
- package/dist/src/core/cost-tracker.js.map +1 -0
- package/dist/src/core/decision-journal.d.ts +41 -0
- package/dist/src/core/decision-journal.d.ts.map +1 -0
- package/dist/src/core/decision-journal.js +204 -0
- package/dist/src/core/decision-journal.js.map +1 -0
- package/dist/src/core/experiment-engine.d.ts +31 -0
- package/dist/src/core/experiment-engine.d.ts.map +1 -0
- package/dist/src/core/experiment-engine.js +248 -0
- package/dist/src/core/experiment-engine.js.map +1 -0
- package/dist/src/core/federation.d.ts +18 -0
- package/dist/src/core/federation.d.ts.map +1 -0
- package/dist/src/core/federation.js +202 -0
- package/dist/src/core/federation.js.map +1 -0
- package/dist/src/core/fingerprint.d.ts +42 -0
- package/dist/src/core/fingerprint.d.ts.map +1 -0
- package/dist/src/core/fingerprint.js +316 -0
- package/dist/src/core/fingerprint.js.map +1 -0
- package/dist/src/core/git.d.ts +50 -0
- package/dist/src/core/git.d.ts.map +1 -0
- package/dist/src/core/git.js +342 -0
- package/dist/src/core/git.js.map +1 -0
- package/dist/src/core/governance.d.ts +53 -0
- package/dist/src/core/governance.d.ts.map +1 -0
- package/dist/src/core/governance.js +276 -0
- package/dist/src/core/governance.js.map +1 -0
- package/dist/src/core/guardrails.d.ts +34 -0
- package/dist/src/core/guardrails.d.ts.map +1 -0
- package/dist/src/core/guardrails.js +575 -0
- package/dist/src/core/guardrails.js.map +1 -0
- package/dist/src/core/impact-analyzer.d.ts +56 -0
- package/dist/src/core/impact-analyzer.d.ts.map +1 -0
- package/dist/src/core/impact-analyzer.js +309 -0
- package/dist/src/core/impact-analyzer.js.map +1 -0
- package/dist/src/core/input-listener.d.ts +45 -0
- package/dist/src/core/input-listener.d.ts.map +1 -0
- package/dist/src/core/input-listener.js +116 -0
- package/dist/src/core/input-listener.js.map +1 -0
- package/dist/src/core/memory-store.d.ts +61 -0
- package/dist/src/core/memory-store.d.ts.map +1 -0
- package/dist/src/core/memory-store.js +195 -0
- package/dist/src/core/memory-store.js.map +1 -0
- package/dist/src/core/observability.d.ts +56 -0
- package/dist/src/core/observability.d.ts.map +1 -0
- package/dist/src/core/observability.js +305 -0
- package/dist/src/core/observability.js.map +1 -0
- package/dist/src/core/pair-engine.d.ts +47 -0
- package/dist/src/core/pair-engine.d.ts.map +1 -0
- package/dist/src/core/pair-engine.js +355 -0
- package/dist/src/core/pair-engine.js.map +1 -0
- package/dist/src/core/perf-analyzer.d.ts +35 -0
- package/dist/src/core/perf-analyzer.d.ts.map +1 -0
- package/dist/src/core/perf-analyzer.js +598 -0
- package/dist/src/core/perf-analyzer.js.map +1 -0
- package/dist/src/core/pipeline-loader.d.ts +46 -0
- package/dist/src/core/pipeline-loader.d.ts.map +1 -0
- package/dist/src/core/pipeline-loader.js +182 -0
- package/dist/src/core/pipeline-loader.js.map +1 -0
- package/dist/src/core/pipeline.d.ts +183 -0
- package/dist/src/core/pipeline.d.ts.map +1 -0
- package/dist/src/core/pipeline.js +2264 -0
- package/dist/src/core/pipeline.js.map +1 -0
- package/dist/src/core/plugins.d.ts +61 -0
- package/dist/src/core/plugins.d.ts.map +1 -0
- package/dist/src/core/plugins.js +114 -0
- package/dist/src/core/plugins.js.map +1 -0
- package/dist/src/core/preflight.d.ts +7 -0
- package/dist/src/core/preflight.d.ts.map +1 -0
- package/dist/src/core/preflight.js +35 -0
- package/dist/src/core/preflight.js.map +1 -0
- package/dist/src/core/prompt-guard.d.ts +44 -0
- package/dist/src/core/prompt-guard.d.ts.map +1 -0
- package/dist/src/core/prompt-guard.js +274 -0
- package/dist/src/core/prompt-guard.js.map +1 -0
- package/dist/src/core/provenance.d.ts +39 -0
- package/dist/src/core/provenance.d.ts.map +1 -0
- package/dist/src/core/provenance.js +115 -0
- package/dist/src/core/provenance.js.map +1 -0
- package/dist/src/core/providers/anthropic-api.d.ts +34 -0
- package/dist/src/core/providers/anthropic-api.d.ts.map +1 -0
- package/dist/src/core/providers/anthropic-api.js +522 -0
- package/dist/src/core/providers/anthropic-api.js.map +1 -0
- package/dist/src/core/providers/api-agent-backend.d.ts +31 -0
- package/dist/src/core/providers/api-agent-backend.d.ts.map +1 -0
- package/dist/src/core/providers/api-agent-backend.js +127 -0
- package/dist/src/core/providers/api-agent-backend.js.map +1 -0
- package/dist/src/core/providers/api-text-backend.d.ts +35 -0
- package/dist/src/core/providers/api-text-backend.d.ts.map +1 -0
- package/dist/src/core/providers/api-text-backend.js +145 -0
- package/dist/src/core/providers/api-text-backend.js.map +1 -0
- package/dist/src/core/providers/claude-cli.d.ts +80 -0
- package/dist/src/core/providers/claude-cli.d.ts.map +1 -0
- package/dist/src/core/providers/claude-cli.js +489 -0
- package/dist/src/core/providers/claude-cli.js.map +1 -0
- package/dist/src/core/providers/cost-table.d.ts +46 -0
- package/dist/src/core/providers/cost-table.d.ts.map +1 -0
- package/dist/src/core/providers/cost-table.js +136 -0
- package/dist/src/core/providers/cost-table.js.map +1 -0
- package/dist/src/core/providers/google.d.ts +26 -0
- package/dist/src/core/providers/google.d.ts.map +1 -0
- package/dist/src/core/providers/google.js +165 -0
- package/dist/src/core/providers/google.js.map +1 -0
- package/dist/src/core/providers/model-catalog.d.ts +72 -0
- package/dist/src/core/providers/model-catalog.d.ts.map +1 -0
- package/dist/src/core/providers/model-catalog.js +290 -0
- package/dist/src/core/providers/model-catalog.js.map +1 -0
- package/dist/src/core/providers/openai-compat.d.ts +35 -0
- package/dist/src/core/providers/openai-compat.d.ts.map +1 -0
- package/dist/src/core/providers/openai-compat.js +479 -0
- package/dist/src/core/providers/openai-compat.js.map +1 -0
- package/dist/src/core/providers/prompt-adapter.d.ts +42 -0
- package/dist/src/core/providers/prompt-adapter.d.ts.map +1 -0
- package/dist/src/core/providers/prompt-adapter.js +282 -0
- package/dist/src/core/providers/prompt-adapter.js.map +1 -0
- package/dist/src/core/providers/registry.d.ts +93 -0
- package/dist/src/core/providers/registry.d.ts.map +1 -0
- package/dist/src/core/providers/registry.js +191 -0
- package/dist/src/core/providers/registry.js.map +1 -0
- package/dist/src/core/providers/types.d.ts +165 -0
- package/dist/src/core/providers/types.d.ts.map +1 -0
- package/dist/src/core/providers/types.js +13 -0
- package/dist/src/core/providers/types.js.map +1 -0
- package/dist/src/core/quality.d.ts +22 -0
- package/dist/src/core/quality.d.ts.map +1 -0
- package/dist/src/core/quality.js +209 -0
- package/dist/src/core/quality.js.map +1 -0
- package/dist/src/core/resource-allocator.d.ts +37 -0
- package/dist/src/core/resource-allocator.d.ts.map +1 -0
- package/dist/src/core/resource-allocator.js +480 -0
- package/dist/src/core/resource-allocator.js.map +1 -0
- package/dist/src/core/risk-scorer.d.ts +35 -0
- package/dist/src/core/risk-scorer.d.ts.map +1 -0
- package/dist/src/core/risk-scorer.js +226 -0
- package/dist/src/core/risk-scorer.js.map +1 -0
- package/dist/src/core/runtime-monitor.d.ts +49 -0
- package/dist/src/core/runtime-monitor.d.ts.map +1 -0
- package/dist/src/core/runtime-monitor.js +235 -0
- package/dist/src/core/runtime-monitor.js.map +1 -0
- package/dist/src/core/sandbox.d.ts +47 -0
- package/dist/src/core/sandbox.d.ts.map +1 -0
- package/dist/src/core/sandbox.js +277 -0
- package/dist/src/core/sandbox.js.map +1 -0
- package/dist/src/core/secret-detector.d.ts +25 -0
- package/dist/src/core/secret-detector.d.ts.map +1 -0
- package/dist/src/core/secret-detector.js +307 -0
- package/dist/src/core/secret-detector.js.map +1 -0
- package/dist/src/core/security-scanner.d.ts +36 -0
- package/dist/src/core/security-scanner.d.ts.map +1 -0
- package/dist/src/core/security-scanner.js +366 -0
- package/dist/src/core/security-scanner.js.map +1 -0
- package/dist/src/core/self-improvement.d.ts +26 -0
- package/dist/src/core/self-improvement.d.ts.map +1 -0
- package/dist/src/core/self-improvement.js +356 -0
- package/dist/src/core/self-improvement.js.map +1 -0
- package/dist/src/core/simulator.d.ts +28 -0
- package/dist/src/core/simulator.d.ts.map +1 -0
- package/dist/src/core/simulator.js +334 -0
- package/dist/src/core/simulator.js.map +1 -0
- package/dist/src/core/specialization.d.ts +47 -0
- package/dist/src/core/specialization.d.ts.map +1 -0
- package/dist/src/core/specialization.js +239 -0
- package/dist/src/core/specialization.js.map +1 -0
- package/dist/src/core/stakeholder-engine.d.ts +47 -0
- package/dist/src/core/stakeholder-engine.d.ts.map +1 -0
- package/dist/src/core/stakeholder-engine.js +380 -0
- package/dist/src/core/stakeholder-engine.js.map +1 -0
- package/dist/src/core/state.d.ts +99 -0
- package/dist/src/core/state.d.ts.map +1 -0
- package/dist/src/core/state.js +545 -0
- package/dist/src/core/state.js.map +1 -0
- package/dist/src/core/supply-chain.d.ts +26 -0
- package/dist/src/core/supply-chain.d.ts.map +1 -0
- package/dist/src/core/supply-chain.js +332 -0
- package/dist/src/core/supply-chain.js.map +1 -0
- package/dist/src/core/telemetry.d.ts +110 -0
- package/dist/src/core/telemetry.d.ts.map +1 -0
- package/dist/src/core/telemetry.js +276 -0
- package/dist/src/core/telemetry.js.map +1 -0
- package/dist/src/core/tools/definitions.d.ts +10 -0
- package/dist/src/core/tools/definitions.d.ts.map +1 -0
- package/dist/src/core/tools/definitions.js +165 -0
- package/dist/src/core/tools/definitions.js.map +1 -0
- package/dist/src/core/tools/executor.d.ts +27 -0
- package/dist/src/core/tools/executor.d.ts.map +1 -0
- package/dist/src/core/tools/executor.js +306 -0
- package/dist/src/core/tools/executor.js.map +1 -0
- package/dist/src/core/tools/sandbox.d.ts +41 -0
- package/dist/src/core/tools/sandbox.d.ts.map +1 -0
- package/dist/src/core/tools/sandbox.js +106 -0
- package/dist/src/core/tools/sandbox.js.map +1 -0
- package/dist/src/core/training-pipeline.d.ts +66 -0
- package/dist/src/core/training-pipeline.d.ts.map +1 -0
- package/dist/src/core/training-pipeline.js +267 -0
- package/dist/src/core/training-pipeline.js.map +1 -0
- package/dist/src/core/triage.d.ts +56 -0
- package/dist/src/core/triage.d.ts.map +1 -0
- package/dist/src/core/triage.js +227 -0
- package/dist/src/core/triage.js.map +1 -0
- package/dist/src/core/user-intelligence.d.ts +29 -0
- package/dist/src/core/user-intelligence.d.ts.map +1 -0
- package/dist/src/core/user-intelligence.js +172 -0
- package/dist/src/core/user-intelligence.js.map +1 -0
- package/dist/src/core/webhooks.d.ts +32 -0
- package/dist/src/core/webhooks.d.ts.map +1 -0
- package/dist/src/core/webhooks.js +126 -0
- package/dist/src/core/webhooks.js.map +1 -0
- package/dist/src/core/ws-server.d.ts +43 -0
- package/dist/src/core/ws-server.d.ts.map +1 -0
- package/dist/src/core/ws-server.js +3278 -0
- package/dist/src/core/ws-server.js.map +1 -0
- package/dist/src/prompts/loader.d.ts +36 -0
- package/dist/src/prompts/loader.d.ts.map +1 -0
- package/dist/src/prompts/loader.js +156 -0
- package/dist/src/prompts/loader.js.map +1 -0
- package/dist/src/types.d.ts +2539 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +62 -0
- package/dist/src/types.js.map +1 -0
- package/package.json +66 -0
|
@@ -0,0 +1,2539 @@
|
|
|
1
|
+
export type AgentStatus = 'pending' | 'running' | 'done' | 'error' | 'killed';
|
|
2
|
+
export type PermissionMode = 'default' | 'acceptEdits' | 'bypassPermissions' | 'plan' | 'auto';
|
|
3
|
+
export type Persona = 'analyst' | 'architect' | 'lead' | 'engineer' | 'tester';
|
|
4
|
+
export type TechStack = 'react' | 'node' | 'go' | 'python' | 'rust' | 'swift' | 'custom';
|
|
5
|
+
export type StageName = 'analyze' | 'architect' | 'plan' | 'build' | 'test' | 'evaluate';
|
|
6
|
+
export interface CostInfo {
|
|
7
|
+
totalUsd: number;
|
|
8
|
+
inputTokens: number;
|
|
9
|
+
outputTokens: number;
|
|
10
|
+
cacheReadTokens: number;
|
|
11
|
+
cacheWriteTokens: number;
|
|
12
|
+
durationMs: number;
|
|
13
|
+
}
|
|
14
|
+
export declare function emptyCost(): CostInfo;
|
|
15
|
+
export declare function addCosts(a: CostInfo, b: CostInfo): CostInfo;
|
|
16
|
+
export interface Agent {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
persona: Persona;
|
|
20
|
+
stack: TechStack;
|
|
21
|
+
status: AgentStatus;
|
|
22
|
+
pid: number | null;
|
|
23
|
+
sessionId: string;
|
|
24
|
+
model: string;
|
|
25
|
+
permissionMode: PermissionMode;
|
|
26
|
+
startedAt: number | null;
|
|
27
|
+
finishedAt: number | null;
|
|
28
|
+
cost: CostInfo;
|
|
29
|
+
output: string;
|
|
30
|
+
error: string | null;
|
|
31
|
+
/** ID of parent orchestrator agent (for sub-engineers) */
|
|
32
|
+
parentId: string | null;
|
|
33
|
+
/** IDs of child sub-engineer agents (for orchestrator) */
|
|
34
|
+
childIds: string[];
|
|
35
|
+
/** Tool restrictions (persisted so resumes carry them) */
|
|
36
|
+
allowedTools?: string[];
|
|
37
|
+
disallowedTools?: string[];
|
|
38
|
+
/** System enforcement prompt (persisted so resumes carry it) */
|
|
39
|
+
appendSystemPrompt?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface StageState {
|
|
42
|
+
status: 'pending' | 'running' | 'done' | 'error' | 'skipped';
|
|
43
|
+
agentIds: string[];
|
|
44
|
+
artifact: string | null;
|
|
45
|
+
startedAt?: number;
|
|
46
|
+
/** Claude session ID for --resume (persists across restarts) */
|
|
47
|
+
sessionId?: string;
|
|
48
|
+
/** Short summary of stage output (~500 chars) for context feeding */
|
|
49
|
+
contextSummary?: string;
|
|
50
|
+
/** When stage completed */
|
|
51
|
+
finishedAt?: number;
|
|
52
|
+
/** Cost of this stage (tracked from pipeline totalCost delta) */
|
|
53
|
+
stageCost?: number;
|
|
54
|
+
}
|
|
55
|
+
export interface FixHistoryEntry {
|
|
56
|
+
iteration: number;
|
|
57
|
+
failedTests: string[];
|
|
58
|
+
fixedTests: string[];
|
|
59
|
+
newFailures: string[];
|
|
60
|
+
approach: string;
|
|
61
|
+
agentId: string;
|
|
62
|
+
cost: number;
|
|
63
|
+
timestamp: number;
|
|
64
|
+
}
|
|
65
|
+
export interface MaydayState {
|
|
66
|
+
active: boolean;
|
|
67
|
+
featureRequest: string;
|
|
68
|
+
currentStage: StageName | 'fix-loop' | 'complete';
|
|
69
|
+
fixIteration: number;
|
|
70
|
+
maxFixIterations: number;
|
|
71
|
+
lastTestOutput: string | null;
|
|
72
|
+
lastTestPassed: boolean | null;
|
|
73
|
+
failureCount: number | null;
|
|
74
|
+
fixAgentIds: string[];
|
|
75
|
+
userMessages: string[];
|
|
76
|
+
startedAt: number;
|
|
77
|
+
pausedAt: number | null;
|
|
78
|
+
error: string | null;
|
|
79
|
+
figmaUrl?: string;
|
|
80
|
+
/** Maximum total USD to spend on fix iterations before aborting */
|
|
81
|
+
maxFixBudgetUsd: number | null;
|
|
82
|
+
approvalRequired: boolean;
|
|
83
|
+
pendingApproval?: {
|
|
84
|
+
stage: StageName;
|
|
85
|
+
requestedAt: number;
|
|
86
|
+
} | null;
|
|
87
|
+
prUrl?: string;
|
|
88
|
+
/** Fix loop history — tracks what was tried and what happened */
|
|
89
|
+
fixHistory?: FixHistoryEntry[];
|
|
90
|
+
}
|
|
91
|
+
export interface QualityScoreInfo {
|
|
92
|
+
stage: StageName;
|
|
93
|
+
artifact: string;
|
|
94
|
+
overall: number;
|
|
95
|
+
dimensions: Array<{
|
|
96
|
+
name: string;
|
|
97
|
+
score: number;
|
|
98
|
+
detail: string;
|
|
99
|
+
}>;
|
|
100
|
+
timestamp: number;
|
|
101
|
+
}
|
|
102
|
+
export interface PipelineState {
|
|
103
|
+
projectName: string;
|
|
104
|
+
stack: TechStack;
|
|
105
|
+
stages: Record<StageName, StageState>;
|
|
106
|
+
agents: Agent[];
|
|
107
|
+
totalCost: CostInfo;
|
|
108
|
+
violations: GuardrailViolation[];
|
|
109
|
+
qualityScores?: QualityScoreInfo[];
|
|
110
|
+
updatedAt: number;
|
|
111
|
+
mayday?: MaydayState;
|
|
112
|
+
/** Absolute path to git worktree for this pipeline (non-default pipelines only) */
|
|
113
|
+
worktreePath?: string;
|
|
114
|
+
}
|
|
115
|
+
export interface StageBreakdown {
|
|
116
|
+
name: string;
|
|
117
|
+
cost: number;
|
|
118
|
+
durationMs: number;
|
|
119
|
+
model?: string;
|
|
120
|
+
status: 'done' | 'error' | 'skipped' | 'pending';
|
|
121
|
+
}
|
|
122
|
+
export type ActivityType = 'pipeline' | 'fix' | 'review' | 'spike' | 'refactor' | 'simplify' | 'test-gen' | 'learn' | 'pr' | 'check';
|
|
123
|
+
export interface HistoryEntry {
|
|
124
|
+
runId: string;
|
|
125
|
+
timestamp: number;
|
|
126
|
+
projectName: string;
|
|
127
|
+
stack: TechStack;
|
|
128
|
+
totalCost: CostInfo;
|
|
129
|
+
stagesSummary: Record<StageName, 'done' | 'error' | 'skipped' | 'pending'>;
|
|
130
|
+
featureRequest?: string;
|
|
131
|
+
durationMs: number;
|
|
132
|
+
/** Per-stage cost and timing breakdowns (added in v2) */
|
|
133
|
+
stageBreakdowns?: StageBreakdown[];
|
|
134
|
+
/** Number of fix iterations in this run */
|
|
135
|
+
fixIterations?: number;
|
|
136
|
+
/** Default model used for this run */
|
|
137
|
+
model?: string;
|
|
138
|
+
/** Type of activity — pipeline run, quick workflow, etc. Defaults to 'pipeline' for backward compat. */
|
|
139
|
+
activityType?: ActivityType;
|
|
140
|
+
/** Short summary of what was done (for quick workflows) */
|
|
141
|
+
summary?: string;
|
|
142
|
+
/** Status of the activity */
|
|
143
|
+
activityStatus?: 'success' | 'error' | 'partial';
|
|
144
|
+
/** Agent IDs involved in this activity (for retrieving logs) */
|
|
145
|
+
agentIds?: string[];
|
|
146
|
+
}
|
|
147
|
+
export declare function createEmptyPipeline(projectName: string, stack: TechStack): PipelineState;
|
|
148
|
+
export type ActivityKind = 'tool_use' | 'tool_result' | 'thinking' | 'text';
|
|
149
|
+
export interface AgentActivity {
|
|
150
|
+
id: string;
|
|
151
|
+
agentId: string;
|
|
152
|
+
kind: ActivityKind;
|
|
153
|
+
/** Tool name (Read, Edit, Bash, Grep, Glob, Write, etc.) */
|
|
154
|
+
tool?: string;
|
|
155
|
+
/** Short summary — file path, command, or first ~200 chars */
|
|
156
|
+
summary: string;
|
|
157
|
+
/** Full content (tool input JSON, result text, thinking text) */
|
|
158
|
+
content?: string;
|
|
159
|
+
timestamp: number;
|
|
160
|
+
}
|
|
161
|
+
export type WsMessage = {
|
|
162
|
+
type: 'state';
|
|
163
|
+
payload: PipelineState;
|
|
164
|
+
} | {
|
|
165
|
+
type: 'agent-update';
|
|
166
|
+
payload: Agent;
|
|
167
|
+
} | {
|
|
168
|
+
type: 'agent-output';
|
|
169
|
+
payload: {
|
|
170
|
+
agentId: string;
|
|
171
|
+
chunk: string;
|
|
172
|
+
};
|
|
173
|
+
} | {
|
|
174
|
+
type: 'agent-activity';
|
|
175
|
+
payload: AgentActivity;
|
|
176
|
+
} | {
|
|
177
|
+
type: 'agent-logs';
|
|
178
|
+
payload: {
|
|
179
|
+
agentId: string;
|
|
180
|
+
output: string;
|
|
181
|
+
activities: AgentActivity[];
|
|
182
|
+
};
|
|
183
|
+
} | {
|
|
184
|
+
type: 'guardrail-alert';
|
|
185
|
+
payload: GuardrailViolation;
|
|
186
|
+
} | {
|
|
187
|
+
type: 'cost-update';
|
|
188
|
+
payload: CostInfo;
|
|
189
|
+
} | {
|
|
190
|
+
type: 'budget-exceeded';
|
|
191
|
+
payload: {
|
|
192
|
+
spent: number;
|
|
193
|
+
budget: number;
|
|
194
|
+
message: string;
|
|
195
|
+
};
|
|
196
|
+
} | {
|
|
197
|
+
type: 'history-list';
|
|
198
|
+
payload: HistoryEntry[];
|
|
199
|
+
} | {
|
|
200
|
+
type: 'agent-log';
|
|
201
|
+
payload: {
|
|
202
|
+
agentId: string;
|
|
203
|
+
log: string;
|
|
204
|
+
};
|
|
205
|
+
} | {
|
|
206
|
+
type: 'approval-request';
|
|
207
|
+
payload: {
|
|
208
|
+
stage: StageName;
|
|
209
|
+
summary: string;
|
|
210
|
+
};
|
|
211
|
+
} | {
|
|
212
|
+
type: 'artifact-content';
|
|
213
|
+
payload: {
|
|
214
|
+
stage: StageName;
|
|
215
|
+
artifact: string;
|
|
216
|
+
content: string | null;
|
|
217
|
+
};
|
|
218
|
+
} | {
|
|
219
|
+
type: 'pipeline-list';
|
|
220
|
+
payload: {
|
|
221
|
+
pipelines: PipelineInfo[];
|
|
222
|
+
active: string;
|
|
223
|
+
};
|
|
224
|
+
} | {
|
|
225
|
+
type: 'conventions';
|
|
226
|
+
payload: {
|
|
227
|
+
content: string | null;
|
|
228
|
+
loading: boolean;
|
|
229
|
+
};
|
|
230
|
+
} | {
|
|
231
|
+
type: 'memories';
|
|
232
|
+
payload: {
|
|
233
|
+
entries: Array<{
|
|
234
|
+
id: string;
|
|
235
|
+
kind: string;
|
|
236
|
+
content: string;
|
|
237
|
+
createdAt: string;
|
|
238
|
+
expiresAt: string;
|
|
239
|
+
confidence: number;
|
|
240
|
+
source: string;
|
|
241
|
+
tags: string[];
|
|
242
|
+
}>;
|
|
243
|
+
};
|
|
244
|
+
} | {
|
|
245
|
+
type: 'pr-reviews';
|
|
246
|
+
payload: {
|
|
247
|
+
reviews: Array<{
|
|
248
|
+
number: number;
|
|
249
|
+
sha: string;
|
|
250
|
+
reviewedAt: string;
|
|
251
|
+
verdict: string;
|
|
252
|
+
cost: number;
|
|
253
|
+
}>;
|
|
254
|
+
};
|
|
255
|
+
} | {
|
|
256
|
+
type: 'watch-result';
|
|
257
|
+
payload: {
|
|
258
|
+
passed: boolean;
|
|
259
|
+
output: string;
|
|
260
|
+
testCmd: string;
|
|
261
|
+
timestamp: number;
|
|
262
|
+
};
|
|
263
|
+
} | {
|
|
264
|
+
type: 'bus-messages';
|
|
265
|
+
payload: {
|
|
266
|
+
messages: Array<{
|
|
267
|
+
id: string;
|
|
268
|
+
fromAgentId: string;
|
|
269
|
+
fromPersona: string;
|
|
270
|
+
toAgentId: string;
|
|
271
|
+
toPersona: string;
|
|
272
|
+
kind: string;
|
|
273
|
+
content: string;
|
|
274
|
+
timestamp: number;
|
|
275
|
+
delivered: boolean;
|
|
276
|
+
}>;
|
|
277
|
+
};
|
|
278
|
+
} | {
|
|
279
|
+
type: 'deploy-result';
|
|
280
|
+
payload: {
|
|
281
|
+
environment: string;
|
|
282
|
+
steps: Array<{
|
|
283
|
+
name: string;
|
|
284
|
+
cmd: string;
|
|
285
|
+
status: 'pass' | 'fail' | 'skip' | 'pending';
|
|
286
|
+
output?: string;
|
|
287
|
+
durationMs: number;
|
|
288
|
+
}>;
|
|
289
|
+
success: boolean;
|
|
290
|
+
rolledBack: boolean;
|
|
291
|
+
timestamp: number;
|
|
292
|
+
};
|
|
293
|
+
} | {
|
|
294
|
+
type: 'stats';
|
|
295
|
+
payload: {
|
|
296
|
+
totalRuns: number;
|
|
297
|
+
passed: number;
|
|
298
|
+
failed: number;
|
|
299
|
+
successRate: number;
|
|
300
|
+
totalCost: number;
|
|
301
|
+
avgCostPerRun: number;
|
|
302
|
+
avgDurationMs: number;
|
|
303
|
+
avgFixIterations: number;
|
|
304
|
+
stageCosts: Array<{
|
|
305
|
+
stage: string;
|
|
306
|
+
totalCost: number;
|
|
307
|
+
avgCost: number;
|
|
308
|
+
avgDurationMs: number;
|
|
309
|
+
count: number;
|
|
310
|
+
}>;
|
|
311
|
+
weeklySpend: Array<{
|
|
312
|
+
week: string;
|
|
313
|
+
cost: number;
|
|
314
|
+
runs: number;
|
|
315
|
+
}>;
|
|
316
|
+
recommendations: string[];
|
|
317
|
+
};
|
|
318
|
+
} | {
|
|
319
|
+
type: 'autopilot-state';
|
|
320
|
+
payload: AutopilotState;
|
|
321
|
+
} | {
|
|
322
|
+
type: 'risk-scores';
|
|
323
|
+
payload: {
|
|
324
|
+
scores: Array<{
|
|
325
|
+
file: string;
|
|
326
|
+
overall: number;
|
|
327
|
+
level: string;
|
|
328
|
+
dimensions: Array<{
|
|
329
|
+
name: string;
|
|
330
|
+
score: number;
|
|
331
|
+
weight: number;
|
|
332
|
+
detail: string;
|
|
333
|
+
}>;
|
|
334
|
+
}>;
|
|
335
|
+
};
|
|
336
|
+
} | {
|
|
337
|
+
type: 'incidents';
|
|
338
|
+
payload: {
|
|
339
|
+
incidents: Array<{
|
|
340
|
+
id: string;
|
|
341
|
+
description: string;
|
|
342
|
+
severity: string;
|
|
343
|
+
status: string;
|
|
344
|
+
startedAt: number;
|
|
345
|
+
resolvedAt?: number;
|
|
346
|
+
rootCause?: string;
|
|
347
|
+
cost: number;
|
|
348
|
+
}>;
|
|
349
|
+
};
|
|
350
|
+
} | {
|
|
351
|
+
type: 'benchmark-report';
|
|
352
|
+
payload: {
|
|
353
|
+
results: Array<{
|
|
354
|
+
name: string;
|
|
355
|
+
opsPerSec?: number;
|
|
356
|
+
avgMs?: number;
|
|
357
|
+
}>;
|
|
358
|
+
regressions: Array<{
|
|
359
|
+
name: string;
|
|
360
|
+
changePercent: number;
|
|
361
|
+
}>;
|
|
362
|
+
bundleSize?: {
|
|
363
|
+
totalBytes: number;
|
|
364
|
+
};
|
|
365
|
+
timestamp: number;
|
|
366
|
+
};
|
|
367
|
+
} | {
|
|
368
|
+
type: 'health-report';
|
|
369
|
+
payload: {
|
|
370
|
+
overall: number;
|
|
371
|
+
metrics: Array<{
|
|
372
|
+
name: string;
|
|
373
|
+
score: number;
|
|
374
|
+
status: string;
|
|
375
|
+
detail: string;
|
|
376
|
+
suggestion?: string;
|
|
377
|
+
}>;
|
|
378
|
+
timestamp: number;
|
|
379
|
+
};
|
|
380
|
+
} | {
|
|
381
|
+
type: 'security-report';
|
|
382
|
+
payload: {
|
|
383
|
+
findings: Array<{
|
|
384
|
+
id: string;
|
|
385
|
+
category: string;
|
|
386
|
+
severity: string;
|
|
387
|
+
file: string;
|
|
388
|
+
line: number;
|
|
389
|
+
message: string;
|
|
390
|
+
suggestion: string;
|
|
391
|
+
}>;
|
|
392
|
+
summary: {
|
|
393
|
+
critical: number;
|
|
394
|
+
high: number;
|
|
395
|
+
medium: number;
|
|
396
|
+
low: number;
|
|
397
|
+
};
|
|
398
|
+
scannedFiles: number;
|
|
399
|
+
};
|
|
400
|
+
} | {
|
|
401
|
+
type: 'provenance';
|
|
402
|
+
payload: {
|
|
403
|
+
records: Array<{
|
|
404
|
+
runId: string;
|
|
405
|
+
timestamp: number;
|
|
406
|
+
model: string;
|
|
407
|
+
files: Array<{
|
|
408
|
+
path: string;
|
|
409
|
+
action: string;
|
|
410
|
+
}>;
|
|
411
|
+
cost: number;
|
|
412
|
+
}>;
|
|
413
|
+
};
|
|
414
|
+
} | {
|
|
415
|
+
type: 'runtime-events';
|
|
416
|
+
payload: {
|
|
417
|
+
events: Array<{
|
|
418
|
+
type: string;
|
|
419
|
+
detail: string;
|
|
420
|
+
timestamp: number;
|
|
421
|
+
severity: string;
|
|
422
|
+
source: string;
|
|
423
|
+
}>;
|
|
424
|
+
anomalyCount: number;
|
|
425
|
+
};
|
|
426
|
+
} | {
|
|
427
|
+
type: 'secrets-report';
|
|
428
|
+
payload: {
|
|
429
|
+
findings: Array<{
|
|
430
|
+
type: string;
|
|
431
|
+
file: string;
|
|
432
|
+
line: number;
|
|
433
|
+
severity: string;
|
|
434
|
+
message: string;
|
|
435
|
+
}>;
|
|
436
|
+
gitignoreIssues: string[];
|
|
437
|
+
};
|
|
438
|
+
} | {
|
|
439
|
+
type: 'fingerprint-report';
|
|
440
|
+
payload: {
|
|
441
|
+
files: Array<{
|
|
442
|
+
file: string;
|
|
443
|
+
origin: string;
|
|
444
|
+
confidence: number;
|
|
445
|
+
aiPercentage: number;
|
|
446
|
+
model?: string;
|
|
447
|
+
}>;
|
|
448
|
+
summary: {
|
|
449
|
+
totalFiles: number;
|
|
450
|
+
aiFiles: number;
|
|
451
|
+
humanFiles: number;
|
|
452
|
+
mixedFiles: number;
|
|
453
|
+
aiLinesEstimate: number;
|
|
454
|
+
totalLines: number;
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
} | {
|
|
458
|
+
type: 'inbox-state';
|
|
459
|
+
payload: InboxState;
|
|
460
|
+
} | {
|
|
461
|
+
type: 'standup-report';
|
|
462
|
+
payload: StandupReport;
|
|
463
|
+
} | {
|
|
464
|
+
type: 'journal-data';
|
|
465
|
+
payload: JournalData;
|
|
466
|
+
} | {
|
|
467
|
+
type: 'scope-analysis';
|
|
468
|
+
payload: ScopeAnalysis;
|
|
469
|
+
} | {
|
|
470
|
+
type: 'context-index';
|
|
471
|
+
payload: ContextIndex;
|
|
472
|
+
} | {
|
|
473
|
+
type: 'pair-session';
|
|
474
|
+
payload: PairSessionState;
|
|
475
|
+
} | {
|
|
476
|
+
type: 'delegate-state';
|
|
477
|
+
payload: DelegateState;
|
|
478
|
+
} | {
|
|
479
|
+
type: 'report-data';
|
|
480
|
+
payload: ReportData;
|
|
481
|
+
} | {
|
|
482
|
+
type: 'team-activity';
|
|
483
|
+
payload: TeamActivity;
|
|
484
|
+
} | {
|
|
485
|
+
type: 'retro-report';
|
|
486
|
+
payload: RetroReport;
|
|
487
|
+
} | {
|
|
488
|
+
type: 'surfaces-state';
|
|
489
|
+
payload: SurfacesState;
|
|
490
|
+
} | {
|
|
491
|
+
type: 'arch-review';
|
|
492
|
+
payload: ArchReviewData;
|
|
493
|
+
} | {
|
|
494
|
+
type: 'onboard-data';
|
|
495
|
+
payload: OnboardData;
|
|
496
|
+
} | {
|
|
497
|
+
type: 'roadmap-data';
|
|
498
|
+
payload: RoadmapData;
|
|
499
|
+
} | {
|
|
500
|
+
type: 'system-graph';
|
|
501
|
+
payload: SystemGraphData;
|
|
502
|
+
} | {
|
|
503
|
+
type: 'slo-data';
|
|
504
|
+
payload: SloData;
|
|
505
|
+
} | {
|
|
506
|
+
type: 'debt-data';
|
|
507
|
+
payload: DebtData;
|
|
508
|
+
} | {
|
|
509
|
+
type: 'forecast-data';
|
|
510
|
+
payload: ForecastData;
|
|
511
|
+
} | {
|
|
512
|
+
type: 'compliance-data';
|
|
513
|
+
payload: ComplianceData;
|
|
514
|
+
} | {
|
|
515
|
+
type: 'plugin-registry';
|
|
516
|
+
payload: PluginRegistryData;
|
|
517
|
+
} | {
|
|
518
|
+
type: 'observe-state';
|
|
519
|
+
payload: ObserveState;
|
|
520
|
+
} | {
|
|
521
|
+
type: 'experiment-state';
|
|
522
|
+
payload: ExperimentState;
|
|
523
|
+
} | {
|
|
524
|
+
type: 'self-improvement';
|
|
525
|
+
payload: SelfImprovementData;
|
|
526
|
+
} | {
|
|
527
|
+
type: 'optimize-report';
|
|
528
|
+
payload: OptimizeReport;
|
|
529
|
+
} | {
|
|
530
|
+
type: 'impact-report';
|
|
531
|
+
payload: ImpactReport;
|
|
532
|
+
} | {
|
|
533
|
+
type: 'fleet-state';
|
|
534
|
+
payload: FleetState;
|
|
535
|
+
} | {
|
|
536
|
+
type: 'contract-data';
|
|
537
|
+
payload: ContractData;
|
|
538
|
+
} | {
|
|
539
|
+
type: 'simulation-report';
|
|
540
|
+
payload: SimulationReport;
|
|
541
|
+
} | {
|
|
542
|
+
type: 'teach-state';
|
|
543
|
+
payload: TeachState;
|
|
544
|
+
} | {
|
|
545
|
+
type: 'negotiate-state';
|
|
546
|
+
payload: NegotiateState;
|
|
547
|
+
} | {
|
|
548
|
+
type: 'specialize-state';
|
|
549
|
+
payload: SpecializeState;
|
|
550
|
+
} | {
|
|
551
|
+
type: 'govern-state';
|
|
552
|
+
payload: GovernState;
|
|
553
|
+
} | {
|
|
554
|
+
type: 'empathize-state';
|
|
555
|
+
payload: EmpathizeState;
|
|
556
|
+
} | {
|
|
557
|
+
type: 'allocate-state';
|
|
558
|
+
payload: AllocateState;
|
|
559
|
+
} | {
|
|
560
|
+
type: 'compete-state';
|
|
561
|
+
payload: CompeteState;
|
|
562
|
+
} | {
|
|
563
|
+
type: 'spawn-state';
|
|
564
|
+
payload: SpawnState;
|
|
565
|
+
} | {
|
|
566
|
+
type: 'federate-state';
|
|
567
|
+
payload: FederateState;
|
|
568
|
+
} | {
|
|
569
|
+
type: 'error';
|
|
570
|
+
payload: {
|
|
571
|
+
message: string;
|
|
572
|
+
};
|
|
573
|
+
};
|
|
574
|
+
export interface PipelineInfo {
|
|
575
|
+
namespace: string;
|
|
576
|
+
projectName: string;
|
|
577
|
+
currentStage: string;
|
|
578
|
+
status: 'running' | 'complete' | 'error' | 'idle';
|
|
579
|
+
updatedAt: number;
|
|
580
|
+
totalCost: CostInfo;
|
|
581
|
+
worktreePath?: string;
|
|
582
|
+
}
|
|
583
|
+
export type WsCommand = {
|
|
584
|
+
action: 'spawn';
|
|
585
|
+
name: string;
|
|
586
|
+
persona: Persona;
|
|
587
|
+
stack: TechStack;
|
|
588
|
+
model?: string;
|
|
589
|
+
prompt?: string;
|
|
590
|
+
permissionMode?: PermissionMode;
|
|
591
|
+
} | {
|
|
592
|
+
action: 'kill';
|
|
593
|
+
agentId: string;
|
|
594
|
+
} | {
|
|
595
|
+
action: 'send-input';
|
|
596
|
+
agentId: string;
|
|
597
|
+
text: string;
|
|
598
|
+
} | {
|
|
599
|
+
action: 'get-state';
|
|
600
|
+
} | {
|
|
601
|
+
action: 'run-stage';
|
|
602
|
+
stage: 'analyze' | 'architect' | 'plan' | 'build' | 'test';
|
|
603
|
+
prompt?: string;
|
|
604
|
+
parallel?: number;
|
|
605
|
+
taskId?: string;
|
|
606
|
+
figmaUrl?: string;
|
|
607
|
+
baseUrl?: string;
|
|
608
|
+
authStorageState?: string;
|
|
609
|
+
} | {
|
|
610
|
+
action: 'run-mayday';
|
|
611
|
+
prompt: string;
|
|
612
|
+
maxIterations?: number;
|
|
613
|
+
figmaUrl?: string;
|
|
614
|
+
parallel?: number;
|
|
615
|
+
resume?: boolean;
|
|
616
|
+
model?: string;
|
|
617
|
+
maxFixBudgetUsd?: number | null;
|
|
618
|
+
fromStage?: StageName;
|
|
619
|
+
approvalRequired?: boolean;
|
|
620
|
+
lean?: boolean;
|
|
621
|
+
} | {
|
|
622
|
+
action: 'mayday-input';
|
|
623
|
+
text: string;
|
|
624
|
+
} | {
|
|
625
|
+
action: 'mayday-stop';
|
|
626
|
+
} | {
|
|
627
|
+
action: 'mayday-approve';
|
|
628
|
+
stage: StageName;
|
|
629
|
+
} | {
|
|
630
|
+
action: 'mayday-reject';
|
|
631
|
+
stage: StageName;
|
|
632
|
+
reason?: string;
|
|
633
|
+
} | {
|
|
634
|
+
action: 'increase-budget';
|
|
635
|
+
amount?: number;
|
|
636
|
+
} | {
|
|
637
|
+
action: 'decline-budget';
|
|
638
|
+
} | {
|
|
639
|
+
action: 'get-history';
|
|
640
|
+
} | {
|
|
641
|
+
action: 'get-agent-log';
|
|
642
|
+
agentId: string;
|
|
643
|
+
} | {
|
|
644
|
+
action: 'get-artifact';
|
|
645
|
+
stage: StageName;
|
|
646
|
+
} | {
|
|
647
|
+
action: 'list-pipelines';
|
|
648
|
+
} | {
|
|
649
|
+
action: 'switch-pipeline';
|
|
650
|
+
namespace: string;
|
|
651
|
+
} | {
|
|
652
|
+
action: 'delete-pipeline';
|
|
653
|
+
namespace: string;
|
|
654
|
+
} | {
|
|
655
|
+
action: 'create-pipeline';
|
|
656
|
+
namespace: string;
|
|
657
|
+
} | {
|
|
658
|
+
action: 'run-fix';
|
|
659
|
+
prompt?: string;
|
|
660
|
+
issue?: string;
|
|
661
|
+
model?: string;
|
|
662
|
+
} | {
|
|
663
|
+
action: 'run-spike';
|
|
664
|
+
prompt: string;
|
|
665
|
+
model?: string;
|
|
666
|
+
} | {
|
|
667
|
+
action: 'run-review';
|
|
668
|
+
target?: string;
|
|
669
|
+
model?: string;
|
|
670
|
+
} | {
|
|
671
|
+
action: 'run-refactor';
|
|
672
|
+
prompt: string;
|
|
673
|
+
scope?: string;
|
|
674
|
+
model?: string;
|
|
675
|
+
} | {
|
|
676
|
+
action: 'run-simplify';
|
|
677
|
+
scope?: string;
|
|
678
|
+
dryRun?: boolean;
|
|
679
|
+
model?: string;
|
|
680
|
+
} | {
|
|
681
|
+
action: 'run-learn';
|
|
682
|
+
refresh?: boolean;
|
|
683
|
+
} | {
|
|
684
|
+
action: 'get-conventions';
|
|
685
|
+
} | {
|
|
686
|
+
action: 'save-conventions';
|
|
687
|
+
content: string;
|
|
688
|
+
} | {
|
|
689
|
+
action: 'get-memories';
|
|
690
|
+
} | {
|
|
691
|
+
action: 'add-memory';
|
|
692
|
+
content: string;
|
|
693
|
+
kind?: string;
|
|
694
|
+
tags?: string[];
|
|
695
|
+
} | {
|
|
696
|
+
action: 'remove-memory';
|
|
697
|
+
id: string;
|
|
698
|
+
} | {
|
|
699
|
+
action: 'clear-memories';
|
|
700
|
+
} | {
|
|
701
|
+
action: 'run-babysit-prs';
|
|
702
|
+
label?: string;
|
|
703
|
+
autoApprove?: boolean;
|
|
704
|
+
model?: string;
|
|
705
|
+
} | {
|
|
706
|
+
action: 'get-pr-reviews';
|
|
707
|
+
} | {
|
|
708
|
+
action: 'run-watch-test';
|
|
709
|
+
scope?: string;
|
|
710
|
+
} | {
|
|
711
|
+
action: 'run-watch-fix';
|
|
712
|
+
testOutput: string;
|
|
713
|
+
changedFiles: string[];
|
|
714
|
+
model?: string;
|
|
715
|
+
} | {
|
|
716
|
+
action: 'run-explain';
|
|
717
|
+
target?: string;
|
|
718
|
+
depth?: string;
|
|
719
|
+
diagram?: boolean;
|
|
720
|
+
model?: string;
|
|
721
|
+
} | {
|
|
722
|
+
action: 'agent-message';
|
|
723
|
+
fromAgentId: string;
|
|
724
|
+
toAgentId: string;
|
|
725
|
+
kind: string;
|
|
726
|
+
content: string;
|
|
727
|
+
} | {
|
|
728
|
+
action: 'get-bus-messages';
|
|
729
|
+
} | {
|
|
730
|
+
action: 'get-stats';
|
|
731
|
+
period?: number;
|
|
732
|
+
} | {
|
|
733
|
+
action: 'run-deploy';
|
|
734
|
+
environment: string;
|
|
735
|
+
dryRun?: boolean;
|
|
736
|
+
} | {
|
|
737
|
+
action: 'run-migrate';
|
|
738
|
+
description: string;
|
|
739
|
+
dryRun?: boolean;
|
|
740
|
+
model?: string;
|
|
741
|
+
} | {
|
|
742
|
+
action: 'autopilot-start';
|
|
743
|
+
label?: string;
|
|
744
|
+
interval?: number;
|
|
745
|
+
maxConcurrent?: number;
|
|
746
|
+
budget?: number;
|
|
747
|
+
stack?: TechStack;
|
|
748
|
+
dryRun?: boolean;
|
|
749
|
+
} | {
|
|
750
|
+
action: 'autopilot-stop';
|
|
751
|
+
} | {
|
|
752
|
+
action: 'autopilot-status';
|
|
753
|
+
} | {
|
|
754
|
+
action: 'run-deps-check';
|
|
755
|
+
} | {
|
|
756
|
+
action: 'run-deps-update';
|
|
757
|
+
level?: string;
|
|
758
|
+
model?: string;
|
|
759
|
+
verify?: boolean;
|
|
760
|
+
budget?: number;
|
|
761
|
+
} | {
|
|
762
|
+
action: 'run-deps-audit';
|
|
763
|
+
} | {
|
|
764
|
+
action: 'run-test-gen';
|
|
765
|
+
scope?: string;
|
|
766
|
+
model?: string;
|
|
767
|
+
framework?: string;
|
|
768
|
+
coverage?: boolean;
|
|
769
|
+
verify?: boolean;
|
|
770
|
+
budget?: number;
|
|
771
|
+
} | {
|
|
772
|
+
action: 'run-risk';
|
|
773
|
+
files?: string[];
|
|
774
|
+
} | {
|
|
775
|
+
action: 'run-incident';
|
|
776
|
+
description: string;
|
|
777
|
+
severity?: string;
|
|
778
|
+
logs?: string;
|
|
779
|
+
model?: string;
|
|
780
|
+
fix?: boolean;
|
|
781
|
+
} | {
|
|
782
|
+
action: 'get-incidents';
|
|
783
|
+
} | {
|
|
784
|
+
action: 'run-pm-sync';
|
|
785
|
+
provider?: string;
|
|
786
|
+
project?: string;
|
|
787
|
+
} | {
|
|
788
|
+
action: 'run-pm-import';
|
|
789
|
+
ticketId: string;
|
|
790
|
+
provider?: string;
|
|
791
|
+
model?: string;
|
|
792
|
+
} | {
|
|
793
|
+
action: 'run-benchmark';
|
|
794
|
+
cmd?: string;
|
|
795
|
+
threshold?: number;
|
|
796
|
+
} | {
|
|
797
|
+
action: 'run-multi-repo';
|
|
798
|
+
feature: string;
|
|
799
|
+
repos?: string[];
|
|
800
|
+
model?: string;
|
|
801
|
+
budget?: number;
|
|
802
|
+
parallel?: boolean;
|
|
803
|
+
} | {
|
|
804
|
+
action: 'get-multi-repo-status';
|
|
805
|
+
} | {
|
|
806
|
+
action: 'run-health';
|
|
807
|
+
} | {
|
|
808
|
+
action: 'run-secure';
|
|
809
|
+
full?: boolean;
|
|
810
|
+
fix?: boolean;
|
|
811
|
+
scope?: string;
|
|
812
|
+
model?: string;
|
|
813
|
+
} | {
|
|
814
|
+
action: 'run-supply-chain-check';
|
|
815
|
+
package?: string;
|
|
816
|
+
} | {
|
|
817
|
+
action: 'get-sandbox-status';
|
|
818
|
+
} | {
|
|
819
|
+
action: 'set-sandbox-mode';
|
|
820
|
+
mode: string;
|
|
821
|
+
} | {
|
|
822
|
+
action: 'get-provenance';
|
|
823
|
+
file?: string;
|
|
824
|
+
runId?: string;
|
|
825
|
+
limit?: number;
|
|
826
|
+
} | {
|
|
827
|
+
action: 'run-prompt-guard-scan';
|
|
828
|
+
text: string;
|
|
829
|
+
} | {
|
|
830
|
+
action: 'get-runtime-events';
|
|
831
|
+
since?: number;
|
|
832
|
+
severity?: string;
|
|
833
|
+
} | {
|
|
834
|
+
action: 'save-runtime-baseline';
|
|
835
|
+
} | {
|
|
836
|
+
action: 'run-fingerprint';
|
|
837
|
+
scope?: string;
|
|
838
|
+
} | {
|
|
839
|
+
action: 'run-secrets-scan';
|
|
840
|
+
scope?: string;
|
|
841
|
+
includeTests?: boolean;
|
|
842
|
+
} | {
|
|
843
|
+
action: 'inbox-start';
|
|
844
|
+
label?: string;
|
|
845
|
+
interval?: number;
|
|
846
|
+
maxConcurrent?: number;
|
|
847
|
+
budget?: number;
|
|
848
|
+
} | {
|
|
849
|
+
action: 'inbox-stop';
|
|
850
|
+
} | {
|
|
851
|
+
action: 'inbox-pause';
|
|
852
|
+
} | {
|
|
853
|
+
action: 'inbox-status';
|
|
854
|
+
} | {
|
|
855
|
+
action: 'inbox-add';
|
|
856
|
+
task: string;
|
|
857
|
+
} | {
|
|
858
|
+
action: 'inbox-skip';
|
|
859
|
+
itemId: string;
|
|
860
|
+
} | {
|
|
861
|
+
action: 'inbox-prioritize';
|
|
862
|
+
itemId: string;
|
|
863
|
+
} | {
|
|
864
|
+
action: 'get-standup';
|
|
865
|
+
weekly?: boolean;
|
|
866
|
+
} | {
|
|
867
|
+
action: 'post-standup';
|
|
868
|
+
weekly?: boolean;
|
|
869
|
+
} | {
|
|
870
|
+
action: 'get-journal';
|
|
871
|
+
} | {
|
|
872
|
+
action: 'run-journal-analyze';
|
|
873
|
+
} | {
|
|
874
|
+
action: 'run-journal-calibrate';
|
|
875
|
+
} | {
|
|
876
|
+
action: 'run-scope';
|
|
877
|
+
request: string;
|
|
878
|
+
} | {
|
|
879
|
+
action: 'get-context-index';
|
|
880
|
+
} | {
|
|
881
|
+
action: 'run-context-build';
|
|
882
|
+
} | {
|
|
883
|
+
action: 'run-context-query';
|
|
884
|
+
query: string;
|
|
885
|
+
} | {
|
|
886
|
+
action: 'pair-start';
|
|
887
|
+
mode?: string;
|
|
888
|
+
focusDir?: string;
|
|
889
|
+
} | {
|
|
890
|
+
action: 'pair-stop';
|
|
891
|
+
} | {
|
|
892
|
+
action: 'get-pair-session';
|
|
893
|
+
} | {
|
|
894
|
+
action: 'run-delegate';
|
|
895
|
+
feature: string;
|
|
896
|
+
maxParallel?: number;
|
|
897
|
+
budget?: number;
|
|
898
|
+
dryRun?: boolean;
|
|
899
|
+
} | {
|
|
900
|
+
action: 'get-delegate-status';
|
|
901
|
+
} | {
|
|
902
|
+
action: 'run-delegate-merge';
|
|
903
|
+
} | {
|
|
904
|
+
action: 'get-report';
|
|
905
|
+
period?: string;
|
|
906
|
+
} | {
|
|
907
|
+
action: 'get-team-activity';
|
|
908
|
+
} | {
|
|
909
|
+
action: 'team-notify';
|
|
910
|
+
message: string;
|
|
911
|
+
} | {
|
|
912
|
+
action: 'get-retro';
|
|
913
|
+
period?: string;
|
|
914
|
+
} | {
|
|
915
|
+
action: 'run-retro';
|
|
916
|
+
period?: string;
|
|
917
|
+
autoApply?: boolean;
|
|
918
|
+
} | {
|
|
919
|
+
action: 'get-surfaces';
|
|
920
|
+
} | {
|
|
921
|
+
action: 'own-surface';
|
|
922
|
+
name: string;
|
|
923
|
+
slos?: Record<string, string>;
|
|
924
|
+
} | {
|
|
925
|
+
action: 'release-surface';
|
|
926
|
+
name: string;
|
|
927
|
+
} | {
|
|
928
|
+
action: 'run-arch-review';
|
|
929
|
+
focus?: string;
|
|
930
|
+
} | {
|
|
931
|
+
action: 'get-arch-review';
|
|
932
|
+
} | {
|
|
933
|
+
action: 'run-onboard';
|
|
934
|
+
role?: string;
|
|
935
|
+
area?: string;
|
|
936
|
+
} | {
|
|
937
|
+
action: 'run-mentor';
|
|
938
|
+
question: string;
|
|
939
|
+
} | {
|
|
940
|
+
action: 'get-onboard-data';
|
|
941
|
+
} | {
|
|
942
|
+
action: 'get-roadmap';
|
|
943
|
+
} | {
|
|
944
|
+
action: 'run-roadmap';
|
|
945
|
+
goal: string;
|
|
946
|
+
} | {
|
|
947
|
+
action: 'run-roadmap-execute';
|
|
948
|
+
phase: string;
|
|
949
|
+
} | {
|
|
950
|
+
action: 'get-system-graph';
|
|
951
|
+
} | {
|
|
952
|
+
action: 'run-system-map';
|
|
953
|
+
} | {
|
|
954
|
+
action: 'run-system-check';
|
|
955
|
+
} | {
|
|
956
|
+
action: 'get-slos';
|
|
957
|
+
} | {
|
|
958
|
+
action: 'add-slo';
|
|
959
|
+
name: string;
|
|
960
|
+
target: string;
|
|
961
|
+
source?: string;
|
|
962
|
+
} | {
|
|
963
|
+
action: 'run-slo-check';
|
|
964
|
+
} | {
|
|
965
|
+
action: 'get-debt';
|
|
966
|
+
} | {
|
|
967
|
+
action: 'run-debt-scan';
|
|
968
|
+
} | {
|
|
969
|
+
action: 'run-debt-fix';
|
|
970
|
+
itemId: string;
|
|
971
|
+
} | {
|
|
972
|
+
action: 'get-forecast';
|
|
973
|
+
type?: string;
|
|
974
|
+
} | {
|
|
975
|
+
action: 'run-forecast';
|
|
976
|
+
feature?: string;
|
|
977
|
+
} | {
|
|
978
|
+
action: 'get-compliance';
|
|
979
|
+
framework?: string;
|
|
980
|
+
} | {
|
|
981
|
+
action: 'run-compliance-check';
|
|
982
|
+
framework?: string;
|
|
983
|
+
} | {
|
|
984
|
+
action: 'get-plugins';
|
|
985
|
+
} | {
|
|
986
|
+
action: 'install-plugin';
|
|
987
|
+
name: string;
|
|
988
|
+
} | {
|
|
989
|
+
action: 'remove-plugin';
|
|
990
|
+
name: string;
|
|
991
|
+
} | {
|
|
992
|
+
action: 'observe-status';
|
|
993
|
+
} | {
|
|
994
|
+
action: 'observe-query';
|
|
995
|
+
query: string;
|
|
996
|
+
} | {
|
|
997
|
+
action: 'observe-correlate';
|
|
998
|
+
sha: string;
|
|
999
|
+
} | {
|
|
1000
|
+
action: 'observe-anomalies';
|
|
1001
|
+
} | {
|
|
1002
|
+
action: 'observe-predict';
|
|
1003
|
+
} | {
|
|
1004
|
+
action: 'observe-watch-start';
|
|
1005
|
+
} | {
|
|
1006
|
+
action: 'observe-watch-stop';
|
|
1007
|
+
} | {
|
|
1008
|
+
action: 'experiment-create';
|
|
1009
|
+
name: string;
|
|
1010
|
+
hypothesis: string;
|
|
1011
|
+
flag: string;
|
|
1012
|
+
primaryMetric: string;
|
|
1013
|
+
duration?: number;
|
|
1014
|
+
} | {
|
|
1015
|
+
action: 'experiment-start';
|
|
1016
|
+
name: string;
|
|
1017
|
+
} | {
|
|
1018
|
+
action: 'experiment-status';
|
|
1019
|
+
} | {
|
|
1020
|
+
action: 'experiment-analyze';
|
|
1021
|
+
name: string;
|
|
1022
|
+
} | {
|
|
1023
|
+
action: 'experiment-ship';
|
|
1024
|
+
name: string;
|
|
1025
|
+
} | {
|
|
1026
|
+
action: 'experiment-kill';
|
|
1027
|
+
name: string;
|
|
1028
|
+
} | {
|
|
1029
|
+
action: 'experiment-history';
|
|
1030
|
+
} | {
|
|
1031
|
+
action: 'improve-analyze';
|
|
1032
|
+
count?: number;
|
|
1033
|
+
} | {
|
|
1034
|
+
action: 'improve-report';
|
|
1035
|
+
} | {
|
|
1036
|
+
action: 'improve-apply';
|
|
1037
|
+
} | {
|
|
1038
|
+
action: 'improve-reset';
|
|
1039
|
+
} | {
|
|
1040
|
+
action: 'run-optimize';
|
|
1041
|
+
goal?: string;
|
|
1042
|
+
type?: string;
|
|
1043
|
+
} | {
|
|
1044
|
+
action: 'get-optimize-report';
|
|
1045
|
+
} | {
|
|
1046
|
+
action: 'run-impact';
|
|
1047
|
+
period?: string;
|
|
1048
|
+
} | {
|
|
1049
|
+
action: 'run-impact-estimate';
|
|
1050
|
+
feature: string;
|
|
1051
|
+
} | {
|
|
1052
|
+
action: 'run-impact-roi';
|
|
1053
|
+
} | {
|
|
1054
|
+
action: 'fleet-register';
|
|
1055
|
+
team: string;
|
|
1056
|
+
} | {
|
|
1057
|
+
action: 'fleet-status';
|
|
1058
|
+
} | {
|
|
1059
|
+
action: 'fleet-budget';
|
|
1060
|
+
team?: string;
|
|
1061
|
+
amount?: number;
|
|
1062
|
+
} | {
|
|
1063
|
+
action: 'fleet-sync';
|
|
1064
|
+
} | {
|
|
1065
|
+
action: 'contract-generate';
|
|
1066
|
+
scope?: string;
|
|
1067
|
+
} | {
|
|
1068
|
+
action: 'contract-check';
|
|
1069
|
+
} | {
|
|
1070
|
+
action: 'contract-publish';
|
|
1071
|
+
version?: string;
|
|
1072
|
+
} | {
|
|
1073
|
+
action: 'contract-sdk';
|
|
1074
|
+
language?: string;
|
|
1075
|
+
} | {
|
|
1076
|
+
action: 'get-contracts';
|
|
1077
|
+
} | {
|
|
1078
|
+
action: 'run-simulate';
|
|
1079
|
+
scale?: string;
|
|
1080
|
+
chaos?: string;
|
|
1081
|
+
} | {
|
|
1082
|
+
action: 'get-simulation-report';
|
|
1083
|
+
} | {
|
|
1084
|
+
action: 'teach-collect';
|
|
1085
|
+
} | {
|
|
1086
|
+
action: 'teach-train';
|
|
1087
|
+
model?: string;
|
|
1088
|
+
} | {
|
|
1089
|
+
action: 'teach-evaluate';
|
|
1090
|
+
} | {
|
|
1091
|
+
action: 'teach-deploy';
|
|
1092
|
+
} | {
|
|
1093
|
+
action: 'get-teach-state';
|
|
1094
|
+
} | {
|
|
1095
|
+
action: 'negotiate-feasibility';
|
|
1096
|
+
request: string;
|
|
1097
|
+
deadline?: string;
|
|
1098
|
+
} | {
|
|
1099
|
+
action: 'negotiate-status';
|
|
1100
|
+
audience?: string;
|
|
1101
|
+
} | {
|
|
1102
|
+
action: 'negotiate-report';
|
|
1103
|
+
period?: string;
|
|
1104
|
+
audience?: string;
|
|
1105
|
+
} | {
|
|
1106
|
+
action: 'get-negotiate-state';
|
|
1107
|
+
} | {
|
|
1108
|
+
action: 'specialize-list';
|
|
1109
|
+
} | {
|
|
1110
|
+
action: 'specialize-create';
|
|
1111
|
+
domain: string;
|
|
1112
|
+
name?: string;
|
|
1113
|
+
} | {
|
|
1114
|
+
action: 'specialize-route';
|
|
1115
|
+
task: string;
|
|
1116
|
+
} | {
|
|
1117
|
+
action: 'specialize-stats';
|
|
1118
|
+
} | {
|
|
1119
|
+
action: 'govern-status';
|
|
1120
|
+
} | {
|
|
1121
|
+
action: 'govern-policy';
|
|
1122
|
+
domain?: string;
|
|
1123
|
+
level?: number;
|
|
1124
|
+
} | {
|
|
1125
|
+
action: 'govern-audit';
|
|
1126
|
+
limit?: number;
|
|
1127
|
+
} | {
|
|
1128
|
+
action: 'govern-trust';
|
|
1129
|
+
domain?: string;
|
|
1130
|
+
} | {
|
|
1131
|
+
action: 'govern-override';
|
|
1132
|
+
decisionId: string;
|
|
1133
|
+
verdict: string;
|
|
1134
|
+
} | {
|
|
1135
|
+
action: 'empathize-journey';
|
|
1136
|
+
name: string;
|
|
1137
|
+
} | {
|
|
1138
|
+
action: 'empathize-feedback';
|
|
1139
|
+
} | {
|
|
1140
|
+
action: 'empathize-impact';
|
|
1141
|
+
feature: string;
|
|
1142
|
+
} | {
|
|
1143
|
+
action: 'empathize-suggest';
|
|
1144
|
+
} | {
|
|
1145
|
+
action: 'allocate-plan';
|
|
1146
|
+
} | {
|
|
1147
|
+
action: 'allocate-scenario';
|
|
1148
|
+
scenario: string;
|
|
1149
|
+
} | {
|
|
1150
|
+
action: 'allocate-okrs';
|
|
1151
|
+
goals?: string;
|
|
1152
|
+
} | {
|
|
1153
|
+
action: 'compete-scan';
|
|
1154
|
+
} | {
|
|
1155
|
+
action: 'compete-gaps';
|
|
1156
|
+
} | {
|
|
1157
|
+
action: 'compete-radar';
|
|
1158
|
+
} | {
|
|
1159
|
+
action: 'spawn-capability';
|
|
1160
|
+
domain: string;
|
|
1161
|
+
} | {
|
|
1162
|
+
action: 'spawn-list';
|
|
1163
|
+
} | {
|
|
1164
|
+
action: 'spawn-evaluate';
|
|
1165
|
+
} | {
|
|
1166
|
+
action: 'federate-opt-in';
|
|
1167
|
+
} | {
|
|
1168
|
+
action: 'federate-opt-out';
|
|
1169
|
+
} | {
|
|
1170
|
+
action: 'federate-share';
|
|
1171
|
+
} | {
|
|
1172
|
+
action: 'federate-benchmarks';
|
|
1173
|
+
} | {
|
|
1174
|
+
action: 'get-federate-state';
|
|
1175
|
+
} | {
|
|
1176
|
+
action: 'list-models';
|
|
1177
|
+
} | {
|
|
1178
|
+
action: 'test-model';
|
|
1179
|
+
model: string;
|
|
1180
|
+
} | {
|
|
1181
|
+
action: 'get-model-config';
|
|
1182
|
+
} | {
|
|
1183
|
+
action: 'set-model-config';
|
|
1184
|
+
stage: string;
|
|
1185
|
+
model: string;
|
|
1186
|
+
} | {
|
|
1187
|
+
action: 'add-provider';
|
|
1188
|
+
provider: string;
|
|
1189
|
+
config: Record<string, string>;
|
|
1190
|
+
} | {
|
|
1191
|
+
action: 'list-providers';
|
|
1192
|
+
} | {
|
|
1193
|
+
action: 'test-provider';
|
|
1194
|
+
provider: string;
|
|
1195
|
+
} | {
|
|
1196
|
+
action: 'save-provider-key';
|
|
1197
|
+
provider: string;
|
|
1198
|
+
apiKey: string;
|
|
1199
|
+
} | {
|
|
1200
|
+
action: 'save-provider-url';
|
|
1201
|
+
provider: string;
|
|
1202
|
+
baseUrl: string;
|
|
1203
|
+
};
|
|
1204
|
+
export interface GuardrailFix {
|
|
1205
|
+
type: 'insert-section' | 'insert-pattern' | 'extend-content';
|
|
1206
|
+
description: string;
|
|
1207
|
+
patch: string;
|
|
1208
|
+
location: 'append' | 'after-section';
|
|
1209
|
+
afterSection?: string;
|
|
1210
|
+
}
|
|
1211
|
+
export type GuardrailPreset = 'strict' | 'standard' | 'lenient' | 'off';
|
|
1212
|
+
export interface GuardrailRule {
|
|
1213
|
+
name: string;
|
|
1214
|
+
target: string;
|
|
1215
|
+
checks: GuardrailCheck[];
|
|
1216
|
+
}
|
|
1217
|
+
export interface GuardrailCheck {
|
|
1218
|
+
type: 'section-exists' | 'pattern-match' | 'command' | 'min-length' | 'word-count' | 'required-patterns';
|
|
1219
|
+
value: string;
|
|
1220
|
+
message: string;
|
|
1221
|
+
severity?: 'error' | 'warning';
|
|
1222
|
+
fix?: GuardrailFix;
|
|
1223
|
+
}
|
|
1224
|
+
export interface GuardrailViolation {
|
|
1225
|
+
rule: string;
|
|
1226
|
+
check: string;
|
|
1227
|
+
file: string;
|
|
1228
|
+
message: string;
|
|
1229
|
+
severity: 'error' | 'warning';
|
|
1230
|
+
fix?: GuardrailFix;
|
|
1231
|
+
}
|
|
1232
|
+
export interface PipelineStageDefinition {
|
|
1233
|
+
name: string;
|
|
1234
|
+
persona: Persona;
|
|
1235
|
+
artifact?: string;
|
|
1236
|
+
dependsOn?: string[];
|
|
1237
|
+
parallel?: boolean;
|
|
1238
|
+
condition?: string;
|
|
1239
|
+
prompt?: string;
|
|
1240
|
+
}
|
|
1241
|
+
export interface PipelineDefinition {
|
|
1242
|
+
stages: PipelineStageDefinition[];
|
|
1243
|
+
}
|
|
1244
|
+
export type TestFrameworkKind = 'playwright' | 'vitest' | 'jest' | 'go-test' | 'pytest' | 'swift-test' | 'cargo-test';
|
|
1245
|
+
export interface TestFrameworkConfig {
|
|
1246
|
+
kind: TestFrameworkKind;
|
|
1247
|
+
/** Human-readable name */
|
|
1248
|
+
name: string;
|
|
1249
|
+
/** Directory for test files */
|
|
1250
|
+
testDir: string;
|
|
1251
|
+
/** File extension for test files */
|
|
1252
|
+
testFilePattern: string;
|
|
1253
|
+
/** Command to install the framework */
|
|
1254
|
+
installCmd: string;
|
|
1255
|
+
/** Command to run tests with JSON output to .swarm/test-results.json */
|
|
1256
|
+
runCmd: string;
|
|
1257
|
+
/** Command to run tests normally (human-readable output) */
|
|
1258
|
+
runCmdHuman: string;
|
|
1259
|
+
/** Whether this framework tests UI (browser-based) or backend (API/unit) */
|
|
1260
|
+
category: 'e2e' | 'unit' | 'integration' | 'api';
|
|
1261
|
+
}
|
|
1262
|
+
export interface PlaywrightConfig {
|
|
1263
|
+
baseUrl?: string;
|
|
1264
|
+
authStorageState?: string;
|
|
1265
|
+
globalSetupScript?: string;
|
|
1266
|
+
testDir?: string;
|
|
1267
|
+
}
|
|
1268
|
+
export interface SwarmConfig {
|
|
1269
|
+
projectName: string;
|
|
1270
|
+
stack: TechStack;
|
|
1271
|
+
model: string;
|
|
1272
|
+
/** Per-persona model overrides. E.g., { analyst: 'haiku', architect: 'sonnet', engineer: 'opus' } */
|
|
1273
|
+
models?: Partial<Record<Persona, string>>;
|
|
1274
|
+
maxBudgetUsd: number | null;
|
|
1275
|
+
promptsDir: string;
|
|
1276
|
+
wsPort: number;
|
|
1277
|
+
dashboardPort: number;
|
|
1278
|
+
permissions: {
|
|
1279
|
+
allowedTools?: string[];
|
|
1280
|
+
disallowedTools?: string[];
|
|
1281
|
+
permissionMode?: string;
|
|
1282
|
+
};
|
|
1283
|
+
playwright?: PlaywrightConfig;
|
|
1284
|
+
/** Path to custom pipeline YAML (relative to .swarm/ or absolute). Defaults to .swarm/pipeline.yaml */
|
|
1285
|
+
customPipeline?: string;
|
|
1286
|
+
/** Active pipeline namespace (for multi-pipeline support). Default: 'default' */
|
|
1287
|
+
activePipeline?: string;
|
|
1288
|
+
/** Additional repos for multi-repo mode. Each entry maps a label to an absolute path. */
|
|
1289
|
+
repos?: Record<string, string>;
|
|
1290
|
+
/** Monorepo package paths to scope agent work (e.g., ["packages/api", "packages/web"]) */
|
|
1291
|
+
packages?: string[];
|
|
1292
|
+
/** Plugin package names or local paths for custom stages/personas */
|
|
1293
|
+
plugins?: string[];
|
|
1294
|
+
/** Enable LLM-powered quality gate (uses haiku to evaluate artifacts). Cost: ~$0.01/artifact */
|
|
1295
|
+
llmQualityGate?: boolean;
|
|
1296
|
+
/** Minimum quality score (0-100) to pass LLM quality gate. Default: 60 */
|
|
1297
|
+
llmQualityThreshold?: number;
|
|
1298
|
+
/** Webhook configurations for event notifications */
|
|
1299
|
+
webhooks?: Array<{
|
|
1300
|
+
url: string;
|
|
1301
|
+
events?: string[];
|
|
1302
|
+
secret?: string;
|
|
1303
|
+
format?: 'slack' | 'discord' | 'generic';
|
|
1304
|
+
}>;
|
|
1305
|
+
/** Multi-LLM provider configurations (Wave 8) */
|
|
1306
|
+
providers?: Record<string, import('./core/providers/types.js').ProviderConfig>;
|
|
1307
|
+
/** Custom model aliases, e.g. { 'fast': 'openai/gpt-4o-mini' } */
|
|
1308
|
+
aliases?: Record<string, string>;
|
|
1309
|
+
/** Custom model registry entries for models not auto-discovered */
|
|
1310
|
+
modelRegistry?: Record<string, {
|
|
1311
|
+
provider: string;
|
|
1312
|
+
modelId: string;
|
|
1313
|
+
contextWindow?: number;
|
|
1314
|
+
supportsTools?: boolean;
|
|
1315
|
+
supportsStreaming?: boolean;
|
|
1316
|
+
costPer1kInput?: number;
|
|
1317
|
+
costPer1kOutput?: number;
|
|
1318
|
+
}>;
|
|
1319
|
+
}
|
|
1320
|
+
export declare const DEFAULT_CONFIG: SwarmConfig;
|
|
1321
|
+
export interface ClaudeStreamMessage {
|
|
1322
|
+
type: string;
|
|
1323
|
+
subtype?: string;
|
|
1324
|
+
result?: string;
|
|
1325
|
+
total_cost_usd?: number;
|
|
1326
|
+
duration_ms?: number;
|
|
1327
|
+
duration_api_ms?: number;
|
|
1328
|
+
session_id?: string;
|
|
1329
|
+
usage?: {
|
|
1330
|
+
input_tokens: number;
|
|
1331
|
+
output_tokens: number;
|
|
1332
|
+
cache_creation_input_tokens?: number;
|
|
1333
|
+
cache_read_input_tokens?: number;
|
|
1334
|
+
};
|
|
1335
|
+
is_error?: boolean;
|
|
1336
|
+
message?: {
|
|
1337
|
+
content?: Array<{
|
|
1338
|
+
type: string;
|
|
1339
|
+
text?: string;
|
|
1340
|
+
id?: string;
|
|
1341
|
+
name?: string;
|
|
1342
|
+
input?: Record<string, unknown>;
|
|
1343
|
+
}>;
|
|
1344
|
+
role?: string;
|
|
1345
|
+
stop_reason?: string | null;
|
|
1346
|
+
};
|
|
1347
|
+
content?: string | Array<{
|
|
1348
|
+
type: string;
|
|
1349
|
+
text?: string;
|
|
1350
|
+
}>;
|
|
1351
|
+
tool_use_id?: string;
|
|
1352
|
+
}
|
|
1353
|
+
export interface AutopilotIssue {
|
|
1354
|
+
number: number;
|
|
1355
|
+
title: string;
|
|
1356
|
+
body: string;
|
|
1357
|
+
labels: string[];
|
|
1358
|
+
author: string;
|
|
1359
|
+
url: string;
|
|
1360
|
+
updatedAt: string;
|
|
1361
|
+
status: 'pending' | 'running' | 'done' | 'failed';
|
|
1362
|
+
prUrl?: string;
|
|
1363
|
+
cost?: number;
|
|
1364
|
+
duration?: number;
|
|
1365
|
+
error?: string;
|
|
1366
|
+
startedAt?: number;
|
|
1367
|
+
completedAt?: number;
|
|
1368
|
+
}
|
|
1369
|
+
export interface AutopilotState {
|
|
1370
|
+
running: boolean;
|
|
1371
|
+
label: string;
|
|
1372
|
+
pollInterval: number;
|
|
1373
|
+
maxConcurrent: number;
|
|
1374
|
+
budgetPerIssue: number;
|
|
1375
|
+
processedIssues: AutopilotIssue[];
|
|
1376
|
+
queue: AutopilotIssue[];
|
|
1377
|
+
stats: {
|
|
1378
|
+
totalProcessed: number;
|
|
1379
|
+
successful: number;
|
|
1380
|
+
failed: number;
|
|
1381
|
+
totalCost: number;
|
|
1382
|
+
};
|
|
1383
|
+
}
|
|
1384
|
+
export interface WorkItem {
|
|
1385
|
+
id: string;
|
|
1386
|
+
source: 'github-issue' | 'github-pr' | 'ci-failure' | 'stale-pr' | 'slack' | 'scheduled' | 'manual';
|
|
1387
|
+
title: string;
|
|
1388
|
+
body: string;
|
|
1389
|
+
url?: string;
|
|
1390
|
+
labels: string[];
|
|
1391
|
+
author?: string;
|
|
1392
|
+
createdAt: string;
|
|
1393
|
+
priority: number;
|
|
1394
|
+
type: 'bug-fix' | 'feature' | 'maintenance' | 'incident' | 'review';
|
|
1395
|
+
status: 'queued' | 'triaging' | 'running' | 'done' | 'failed' | 'skipped' | 'needs-human';
|
|
1396
|
+
confidence: number;
|
|
1397
|
+
estimatedCost: number;
|
|
1398
|
+
estimatedMinutes: number;
|
|
1399
|
+
result?: {
|
|
1400
|
+
prUrl?: string;
|
|
1401
|
+
cost?: number;
|
|
1402
|
+
duration?: number;
|
|
1403
|
+
error?: string;
|
|
1404
|
+
};
|
|
1405
|
+
startedAt?: number;
|
|
1406
|
+
completedAt?: number;
|
|
1407
|
+
}
|
|
1408
|
+
export interface InboxState {
|
|
1409
|
+
running: boolean;
|
|
1410
|
+
paused: boolean;
|
|
1411
|
+
label: string;
|
|
1412
|
+
pollInterval: number;
|
|
1413
|
+
maxConcurrent: number;
|
|
1414
|
+
queue: WorkItem[];
|
|
1415
|
+
processed: WorkItem[];
|
|
1416
|
+
stats: {
|
|
1417
|
+
totalProcessed: number;
|
|
1418
|
+
successful: number;
|
|
1419
|
+
failed: number;
|
|
1420
|
+
skipped: number;
|
|
1421
|
+
totalCost: number;
|
|
1422
|
+
dailyBudget: number;
|
|
1423
|
+
dailySpent: number;
|
|
1424
|
+
};
|
|
1425
|
+
workHours?: {
|
|
1426
|
+
start: string;
|
|
1427
|
+
end: string;
|
|
1428
|
+
timezone: string;
|
|
1429
|
+
};
|
|
1430
|
+
}
|
|
1431
|
+
export interface StandupReport {
|
|
1432
|
+
date: string;
|
|
1433
|
+
completed: Array<{
|
|
1434
|
+
summary: string;
|
|
1435
|
+
type: string;
|
|
1436
|
+
cost: number;
|
|
1437
|
+
prUrl?: string;
|
|
1438
|
+
}>;
|
|
1439
|
+
impact: {
|
|
1440
|
+
prsCreated: number;
|
|
1441
|
+
prsMerged: number;
|
|
1442
|
+
issuesClosed: number;
|
|
1443
|
+
testsGenerated: number;
|
|
1444
|
+
linesGenerated: number;
|
|
1445
|
+
};
|
|
1446
|
+
cost: {
|
|
1447
|
+
total: number;
|
|
1448
|
+
byType: Array<{
|
|
1449
|
+
type: string;
|
|
1450
|
+
cost: number;
|
|
1451
|
+
}>;
|
|
1452
|
+
};
|
|
1453
|
+
blockers: Array<{
|
|
1454
|
+
summary: string;
|
|
1455
|
+
reason: string;
|
|
1456
|
+
}>;
|
|
1457
|
+
upcoming: Array<{
|
|
1458
|
+
title: string;
|
|
1459
|
+
estimatedCost: number;
|
|
1460
|
+
}>;
|
|
1461
|
+
velocity: {
|
|
1462
|
+
thisWeek: number;
|
|
1463
|
+
lastWeek: number;
|
|
1464
|
+
trend: 'up' | 'down' | 'stable';
|
|
1465
|
+
};
|
|
1466
|
+
}
|
|
1467
|
+
export interface JournalData {
|
|
1468
|
+
decisions: Array<{
|
|
1469
|
+
id: string;
|
|
1470
|
+
timestamp: number;
|
|
1471
|
+
type: string;
|
|
1472
|
+
context: string;
|
|
1473
|
+
decision: string;
|
|
1474
|
+
reasoning: string;
|
|
1475
|
+
confidence: number;
|
|
1476
|
+
outcome?: string;
|
|
1477
|
+
outcomeDetail?: string;
|
|
1478
|
+
}>;
|
|
1479
|
+
rules: Array<{
|
|
1480
|
+
id: string;
|
|
1481
|
+
rule: string;
|
|
1482
|
+
enabled: boolean;
|
|
1483
|
+
appliesTo: string[];
|
|
1484
|
+
}>;
|
|
1485
|
+
calibration?: {
|
|
1486
|
+
totalDecisions: number;
|
|
1487
|
+
accuracyByType: Array<{
|
|
1488
|
+
type: string;
|
|
1489
|
+
accuracy: number;
|
|
1490
|
+
total: number;
|
|
1491
|
+
}>;
|
|
1492
|
+
recommendations: string[];
|
|
1493
|
+
};
|
|
1494
|
+
}
|
|
1495
|
+
export interface ScopeAnalysis {
|
|
1496
|
+
request: string;
|
|
1497
|
+
vaguenessScore: number;
|
|
1498
|
+
classification: string;
|
|
1499
|
+
riskFactors: string[];
|
|
1500
|
+
missingContext: string[];
|
|
1501
|
+
questions: string[];
|
|
1502
|
+
options: Array<{
|
|
1503
|
+
name: string;
|
|
1504
|
+
description: string;
|
|
1505
|
+
estimatedCost: number;
|
|
1506
|
+
estimatedTime: string;
|
|
1507
|
+
risk: string;
|
|
1508
|
+
tradeoffs: string[];
|
|
1509
|
+
recommended: boolean;
|
|
1510
|
+
}>;
|
|
1511
|
+
}
|
|
1512
|
+
export interface ContextIndex {
|
|
1513
|
+
totalFiles: number;
|
|
1514
|
+
totalSymbols: number;
|
|
1515
|
+
modules: Array<{
|
|
1516
|
+
path: string;
|
|
1517
|
+
purpose: string;
|
|
1518
|
+
fileCount: number;
|
|
1519
|
+
}>;
|
|
1520
|
+
fragileFiles: Array<{
|
|
1521
|
+
path: string;
|
|
1522
|
+
failureRate: number;
|
|
1523
|
+
reason: string;
|
|
1524
|
+
}>;
|
|
1525
|
+
coChangePatterns: Array<{
|
|
1526
|
+
fileA: string;
|
|
1527
|
+
fileB: string;
|
|
1528
|
+
frequency: number;
|
|
1529
|
+
}>;
|
|
1530
|
+
builtAt: number;
|
|
1531
|
+
queryResult?: string;
|
|
1532
|
+
}
|
|
1533
|
+
export interface PairSessionState {
|
|
1534
|
+
id: string;
|
|
1535
|
+
startedAt: number;
|
|
1536
|
+
mode: string;
|
|
1537
|
+
focusDir?: string;
|
|
1538
|
+
filesWatched: number;
|
|
1539
|
+
suggestions: Array<{
|
|
1540
|
+
id: string;
|
|
1541
|
+
type: string;
|
|
1542
|
+
file: string;
|
|
1543
|
+
line?: number;
|
|
1544
|
+
message: string;
|
|
1545
|
+
severity: string;
|
|
1546
|
+
timestamp: number;
|
|
1547
|
+
accepted?: boolean;
|
|
1548
|
+
}>;
|
|
1549
|
+
changedFiles: string[];
|
|
1550
|
+
}
|
|
1551
|
+
export interface DelegateState {
|
|
1552
|
+
featureRequest: string;
|
|
1553
|
+
workstreams: Array<{
|
|
1554
|
+
id: string;
|
|
1555
|
+
name: string;
|
|
1556
|
+
tasks: string[];
|
|
1557
|
+
branch: string;
|
|
1558
|
+
status: string;
|
|
1559
|
+
cost: number;
|
|
1560
|
+
startedAt?: number;
|
|
1561
|
+
completedAt?: number;
|
|
1562
|
+
error?: string;
|
|
1563
|
+
prUrl?: string;
|
|
1564
|
+
dependsOn: string[];
|
|
1565
|
+
}>;
|
|
1566
|
+
totalBudget: number;
|
|
1567
|
+
totalCost: number;
|
|
1568
|
+
status: string;
|
|
1569
|
+
startedAt: number;
|
|
1570
|
+
}
|
|
1571
|
+
export interface ReportData {
|
|
1572
|
+
period: {
|
|
1573
|
+
start: string;
|
|
1574
|
+
end: string;
|
|
1575
|
+
label: string;
|
|
1576
|
+
};
|
|
1577
|
+
output: {
|
|
1578
|
+
issuesResolved: number;
|
|
1579
|
+
prsCreated: number;
|
|
1580
|
+
prsMerged: number;
|
|
1581
|
+
linesGenerated: number;
|
|
1582
|
+
testsGenerated: number;
|
|
1583
|
+
};
|
|
1584
|
+
quality: {
|
|
1585
|
+
mergeRate: number;
|
|
1586
|
+
revertRate: number;
|
|
1587
|
+
fixLoopSuccessRate: number;
|
|
1588
|
+
};
|
|
1589
|
+
cost: {
|
|
1590
|
+
total: number;
|
|
1591
|
+
byCommand: Array<{
|
|
1592
|
+
command: string;
|
|
1593
|
+
cost: number;
|
|
1594
|
+
}>;
|
|
1595
|
+
perIssue: number;
|
|
1596
|
+
perPr: number;
|
|
1597
|
+
};
|
|
1598
|
+
roi: {
|
|
1599
|
+
estimatedHoursSaved: number;
|
|
1600
|
+
estimatedValueSaved: number;
|
|
1601
|
+
roiMultiple: number;
|
|
1602
|
+
};
|
|
1603
|
+
trends: {
|
|
1604
|
+
velocity: Array<{
|
|
1605
|
+
period: string;
|
|
1606
|
+
items: number;
|
|
1607
|
+
}>;
|
|
1608
|
+
costEfficiency: Array<{
|
|
1609
|
+
period: string;
|
|
1610
|
+
costPerItem: number;
|
|
1611
|
+
}>;
|
|
1612
|
+
};
|
|
1613
|
+
}
|
|
1614
|
+
export interface TeamActivity {
|
|
1615
|
+
members: Array<{
|
|
1616
|
+
github: string;
|
|
1617
|
+
areas: string[];
|
|
1618
|
+
activeBranches: string[];
|
|
1619
|
+
recentPrs: Array<{
|
|
1620
|
+
number: number;
|
|
1621
|
+
title: string;
|
|
1622
|
+
state: string;
|
|
1623
|
+
}>;
|
|
1624
|
+
}>;
|
|
1625
|
+
swarmActivity: Array<{
|
|
1626
|
+
task: string;
|
|
1627
|
+
status: string;
|
|
1628
|
+
startedAt: number;
|
|
1629
|
+
cost: number;
|
|
1630
|
+
}>;
|
|
1631
|
+
conflicts: Array<{
|
|
1632
|
+
file: string;
|
|
1633
|
+
humanDeveloper: string;
|
|
1634
|
+
swarmTask: string;
|
|
1635
|
+
}>;
|
|
1636
|
+
}
|
|
1637
|
+
export interface RetroReport {
|
|
1638
|
+
period: {
|
|
1639
|
+
start: string;
|
|
1640
|
+
end: string;
|
|
1641
|
+
};
|
|
1642
|
+
wentWell: Array<{
|
|
1643
|
+
summary: string;
|
|
1644
|
+
evidence: string;
|
|
1645
|
+
}>;
|
|
1646
|
+
wentPoorly: Array<{
|
|
1647
|
+
summary: string;
|
|
1648
|
+
evidence: string;
|
|
1649
|
+
impact: string;
|
|
1650
|
+
}>;
|
|
1651
|
+
actionItems: Array<{
|
|
1652
|
+
description: string;
|
|
1653
|
+
configChange?: {
|
|
1654
|
+
key: string;
|
|
1655
|
+
oldValue: unknown;
|
|
1656
|
+
newValue: unknown;
|
|
1657
|
+
};
|
|
1658
|
+
priority: string;
|
|
1659
|
+
}>;
|
|
1660
|
+
metrics: {
|
|
1661
|
+
totalRuns: number;
|
|
1662
|
+
successRate: number;
|
|
1663
|
+
avgCost: number;
|
|
1664
|
+
revertRate: number;
|
|
1665
|
+
fixIterationAvg: number;
|
|
1666
|
+
};
|
|
1667
|
+
}
|
|
1668
|
+
export interface SurfaceDefinition {
|
|
1669
|
+
name: string;
|
|
1670
|
+
description: string;
|
|
1671
|
+
paths: string[];
|
|
1672
|
+
slos: Record<string, string>;
|
|
1673
|
+
monitoring?: Record<string, string>;
|
|
1674
|
+
owners?: {
|
|
1675
|
+
human: string[];
|
|
1676
|
+
swarm: boolean;
|
|
1677
|
+
};
|
|
1678
|
+
budget?: {
|
|
1679
|
+
monthly: number;
|
|
1680
|
+
};
|
|
1681
|
+
}
|
|
1682
|
+
export interface SurfaceStatus {
|
|
1683
|
+
name: string;
|
|
1684
|
+
description: string;
|
|
1685
|
+
paths: string[];
|
|
1686
|
+
slos: Array<{
|
|
1687
|
+
name: string;
|
|
1688
|
+
target: string;
|
|
1689
|
+
current: string;
|
|
1690
|
+
status: 'ok' | 'warning' | 'breach';
|
|
1691
|
+
}>;
|
|
1692
|
+
healthScore: number;
|
|
1693
|
+
lastChecked: number;
|
|
1694
|
+
maintenanceHistory: Array<{
|
|
1695
|
+
action: string;
|
|
1696
|
+
timestamp: number;
|
|
1697
|
+
cost: number;
|
|
1698
|
+
}>;
|
|
1699
|
+
budgetUsed: number;
|
|
1700
|
+
budgetTotal: number;
|
|
1701
|
+
}
|
|
1702
|
+
export interface SurfacesState {
|
|
1703
|
+
surfaces: SurfaceStatus[];
|
|
1704
|
+
totalBudget: number;
|
|
1705
|
+
totalSpent: number;
|
|
1706
|
+
}
|
|
1707
|
+
export interface ArchReviewData {
|
|
1708
|
+
summary: string;
|
|
1709
|
+
issues: Array<{
|
|
1710
|
+
id: string;
|
|
1711
|
+
title: string;
|
|
1712
|
+
severity: 'critical' | 'high' | 'medium' | 'low';
|
|
1713
|
+
category: string;
|
|
1714
|
+
evidence: string;
|
|
1715
|
+
impact: string;
|
|
1716
|
+
solutions: Array<{
|
|
1717
|
+
name: string;
|
|
1718
|
+
description: string;
|
|
1719
|
+
effort: string;
|
|
1720
|
+
risk: string;
|
|
1721
|
+
recommended: boolean;
|
|
1722
|
+
}>;
|
|
1723
|
+
}>;
|
|
1724
|
+
couplingScore: number;
|
|
1725
|
+
complexityScore: number;
|
|
1726
|
+
trends: Array<{
|
|
1727
|
+
metric: string;
|
|
1728
|
+
direction: 'improving' | 'degrading' | 'stable';
|
|
1729
|
+
detail: string;
|
|
1730
|
+
}>;
|
|
1731
|
+
actionPlan: Array<{
|
|
1732
|
+
priority: number;
|
|
1733
|
+
action: string;
|
|
1734
|
+
effort: string;
|
|
1735
|
+
impact: string;
|
|
1736
|
+
}>;
|
|
1737
|
+
timestamp: number;
|
|
1738
|
+
}
|
|
1739
|
+
export interface OnboardData {
|
|
1740
|
+
step: number;
|
|
1741
|
+
totalSteps: number;
|
|
1742
|
+
currentTopic: string;
|
|
1743
|
+
content: string;
|
|
1744
|
+
completed: string[];
|
|
1745
|
+
remaining: string[];
|
|
1746
|
+
mentorHistory: Array<{
|
|
1747
|
+
question: string;
|
|
1748
|
+
answer: string;
|
|
1749
|
+
timestamp: number;
|
|
1750
|
+
}>;
|
|
1751
|
+
}
|
|
1752
|
+
export interface RoadmapData {
|
|
1753
|
+
goal: string;
|
|
1754
|
+
phases: Array<{
|
|
1755
|
+
id: string;
|
|
1756
|
+
name: string;
|
|
1757
|
+
description: string;
|
|
1758
|
+
status: 'pending' | 'in-progress' | 'done' | 'blocked';
|
|
1759
|
+
progress: number;
|
|
1760
|
+
estimatedWeeks: number;
|
|
1761
|
+
actualWeeks?: number;
|
|
1762
|
+
dependencies: string[];
|
|
1763
|
+
riskLevel: 'low' | 'medium' | 'high';
|
|
1764
|
+
rollbackStrategy: string;
|
|
1765
|
+
successMetrics: string[];
|
|
1766
|
+
}>;
|
|
1767
|
+
criticalPath: string[];
|
|
1768
|
+
estimatedTotalWeeks: number;
|
|
1769
|
+
estimatedTotalCost: number;
|
|
1770
|
+
startedAt?: number;
|
|
1771
|
+
status: 'planning' | 'executing' | 'complete' | 'paused';
|
|
1772
|
+
}
|
|
1773
|
+
export interface SystemGraphData {
|
|
1774
|
+
services: Array<{
|
|
1775
|
+
name: string;
|
|
1776
|
+
repo: string;
|
|
1777
|
+
type: string;
|
|
1778
|
+
apis: Array<{
|
|
1779
|
+
path: string;
|
|
1780
|
+
method: string;
|
|
1781
|
+
description: string;
|
|
1782
|
+
}>;
|
|
1783
|
+
dependencies: string[];
|
|
1784
|
+
healthStatus: 'healthy' | 'degraded' | 'unknown';
|
|
1785
|
+
}>;
|
|
1786
|
+
contracts: Array<{
|
|
1787
|
+
provider: string;
|
|
1788
|
+
consumer: string;
|
|
1789
|
+
type: string;
|
|
1790
|
+
version: string;
|
|
1791
|
+
status: 'compatible' | 'breaking' | 'unknown';
|
|
1792
|
+
}>;
|
|
1793
|
+
crossRepoPrs: Array<{
|
|
1794
|
+
repo: string;
|
|
1795
|
+
prNumber: number;
|
|
1796
|
+
title: string;
|
|
1797
|
+
status: string;
|
|
1798
|
+
}>;
|
|
1799
|
+
}
|
|
1800
|
+
export interface SloData {
|
|
1801
|
+
slos: Array<{
|
|
1802
|
+
id: string;
|
|
1803
|
+
name: string;
|
|
1804
|
+
target: string;
|
|
1805
|
+
current: string;
|
|
1806
|
+
status: 'ok' | 'warning' | 'breach';
|
|
1807
|
+
trend: 'improving' | 'degrading' | 'stable';
|
|
1808
|
+
errorBudget: {
|
|
1809
|
+
total: number;
|
|
1810
|
+
remaining: number;
|
|
1811
|
+
burnRate: number;
|
|
1812
|
+
};
|
|
1813
|
+
source: string;
|
|
1814
|
+
lastChecked: number;
|
|
1815
|
+
}>;
|
|
1816
|
+
alerts: Array<{
|
|
1817
|
+
sloId: string;
|
|
1818
|
+
message: string;
|
|
1819
|
+
severity: string;
|
|
1820
|
+
timestamp: number;
|
|
1821
|
+
}>;
|
|
1822
|
+
}
|
|
1823
|
+
export interface DebtData {
|
|
1824
|
+
score: number;
|
|
1825
|
+
trend: 'improving' | 'degrading' | 'stable';
|
|
1826
|
+
items: Array<{
|
|
1827
|
+
id: string;
|
|
1828
|
+
type: 'code-quality' | 'architecture' | 'dependency' | 'test' | 'documentation';
|
|
1829
|
+
severity: number;
|
|
1830
|
+
file: string;
|
|
1831
|
+
description: string;
|
|
1832
|
+
estimatedEffort: string;
|
|
1833
|
+
autoFixable: boolean;
|
|
1834
|
+
age: number;
|
|
1835
|
+
}>;
|
|
1836
|
+
burndown: Array<{
|
|
1837
|
+
date: string;
|
|
1838
|
+
score: number;
|
|
1839
|
+
}>;
|
|
1840
|
+
byType: Array<{
|
|
1841
|
+
type: string;
|
|
1842
|
+
count: number;
|
|
1843
|
+
totalSeverity: number;
|
|
1844
|
+
}>;
|
|
1845
|
+
}
|
|
1846
|
+
export interface ForecastData {
|
|
1847
|
+
velocity: {
|
|
1848
|
+
current: number;
|
|
1849
|
+
predicted: number;
|
|
1850
|
+
confidence: number;
|
|
1851
|
+
history: Array<{
|
|
1852
|
+
week: string;
|
|
1853
|
+
items: number;
|
|
1854
|
+
}>;
|
|
1855
|
+
};
|
|
1856
|
+
costEstimates: Array<{
|
|
1857
|
+
feature: string;
|
|
1858
|
+
estimatedCost: number;
|
|
1859
|
+
confidence: number;
|
|
1860
|
+
basis: string;
|
|
1861
|
+
}>;
|
|
1862
|
+
risks: Array<{
|
|
1863
|
+
name: string;
|
|
1864
|
+
probability: number;
|
|
1865
|
+
impact: string;
|
|
1866
|
+
mitigation: string;
|
|
1867
|
+
}>;
|
|
1868
|
+
healthProjection: Array<{
|
|
1869
|
+
metric: string;
|
|
1870
|
+
current: number;
|
|
1871
|
+
projected: number;
|
|
1872
|
+
timeframe: string;
|
|
1873
|
+
warning?: string;
|
|
1874
|
+
}>;
|
|
1875
|
+
}
|
|
1876
|
+
export interface ComplianceData {
|
|
1877
|
+
framework: string;
|
|
1878
|
+
overallScore: number;
|
|
1879
|
+
checks: Array<{
|
|
1880
|
+
id: string;
|
|
1881
|
+
requirement: string;
|
|
1882
|
+
category: string;
|
|
1883
|
+
status: 'pass' | 'fail' | 'partial' | 'not-applicable';
|
|
1884
|
+
evidence?: string;
|
|
1885
|
+
remediation?: string;
|
|
1886
|
+
}>;
|
|
1887
|
+
gaps: Array<{
|
|
1888
|
+
requirement: string;
|
|
1889
|
+
severity: string;
|
|
1890
|
+
remediation: string;
|
|
1891
|
+
}>;
|
|
1892
|
+
lastAudit: number;
|
|
1893
|
+
}
|
|
1894
|
+
export interface PluginRegistryData {
|
|
1895
|
+
installed: Array<{
|
|
1896
|
+
name: string;
|
|
1897
|
+
type: string;
|
|
1898
|
+
version: string;
|
|
1899
|
+
enabled: boolean;
|
|
1900
|
+
description: string;
|
|
1901
|
+
}>;
|
|
1902
|
+
available: Array<{
|
|
1903
|
+
name: string;
|
|
1904
|
+
type: string;
|
|
1905
|
+
version: string;
|
|
1906
|
+
description: string;
|
|
1907
|
+
downloads: number;
|
|
1908
|
+
}>;
|
|
1909
|
+
}
|
|
1910
|
+
export interface ObservabilitySource {
|
|
1911
|
+
type: 'grafana' | 'datadog' | 'cloudwatch' | 'prometheus' | 'opentelemetry' | 'custom';
|
|
1912
|
+
url: string;
|
|
1913
|
+
apiKeyEnv?: string;
|
|
1914
|
+
metrics: string[];
|
|
1915
|
+
dashboards?: Array<{
|
|
1916
|
+
uid: string;
|
|
1917
|
+
metrics: string[];
|
|
1918
|
+
}>;
|
|
1919
|
+
}
|
|
1920
|
+
export interface ObservabilityConfig {
|
|
1921
|
+
sources: Record<string, ObservabilitySource>;
|
|
1922
|
+
alerting: {
|
|
1923
|
+
sigma: number;
|
|
1924
|
+
cooldown: number;
|
|
1925
|
+
channels: Array<{
|
|
1926
|
+
type: string;
|
|
1927
|
+
url: string;
|
|
1928
|
+
}>;
|
|
1929
|
+
};
|
|
1930
|
+
}
|
|
1931
|
+
export interface MetricDataPoint {
|
|
1932
|
+
name: string;
|
|
1933
|
+
value: number;
|
|
1934
|
+
timestamp: number;
|
|
1935
|
+
source: string;
|
|
1936
|
+
tags?: Record<string, string>;
|
|
1937
|
+
}
|
|
1938
|
+
export interface DeployMarker {
|
|
1939
|
+
sha: string;
|
|
1940
|
+
timestamp: number;
|
|
1941
|
+
author: string;
|
|
1942
|
+
message: string;
|
|
1943
|
+
filesChanged: string[];
|
|
1944
|
+
}
|
|
1945
|
+
export interface AnomalyAlert {
|
|
1946
|
+
id: string;
|
|
1947
|
+
metric: string;
|
|
1948
|
+
type: 'spike' | 'drop' | 'trend' | 'correlation';
|
|
1949
|
+
severity: 'info' | 'warning' | 'critical';
|
|
1950
|
+
value: number;
|
|
1951
|
+
baseline: number;
|
|
1952
|
+
deviation: number;
|
|
1953
|
+
deployCorrelation?: {
|
|
1954
|
+
sha: string;
|
|
1955
|
+
confidence: number;
|
|
1956
|
+
filesChanged: string[];
|
|
1957
|
+
};
|
|
1958
|
+
timestamp: number;
|
|
1959
|
+
resolved: boolean;
|
|
1960
|
+
}
|
|
1961
|
+
export interface PredictiveAlert {
|
|
1962
|
+
metric: string;
|
|
1963
|
+
type: 'capacity' | 'trend' | 'pattern';
|
|
1964
|
+
message: string;
|
|
1965
|
+
predictedAt: number;
|
|
1966
|
+
confidence: number;
|
|
1967
|
+
timeToImpact: string;
|
|
1968
|
+
}
|
|
1969
|
+
export interface ObserveState {
|
|
1970
|
+
sources: Array<{
|
|
1971
|
+
name: string;
|
|
1972
|
+
type: string;
|
|
1973
|
+
status: 'connected' | 'error' | 'pending';
|
|
1974
|
+
metricCount: number;
|
|
1975
|
+
lastSync: number;
|
|
1976
|
+
}>;
|
|
1977
|
+
anomalies: AnomalyAlert[];
|
|
1978
|
+
predictions: PredictiveAlert[];
|
|
1979
|
+
deployMarkers: DeployMarker[];
|
|
1980
|
+
metricCount: number;
|
|
1981
|
+
lastUpdated: number;
|
|
1982
|
+
}
|
|
1983
|
+
export interface ExperimentDefinition {
|
|
1984
|
+
name: string;
|
|
1985
|
+
hypothesis: string;
|
|
1986
|
+
flag: string;
|
|
1987
|
+
metrics: {
|
|
1988
|
+
primary: string;
|
|
1989
|
+
secondary: string[];
|
|
1990
|
+
guardrail: string[];
|
|
1991
|
+
};
|
|
1992
|
+
targeting: {
|
|
1993
|
+
percentage: number;
|
|
1994
|
+
rampSchedule: number[];
|
|
1995
|
+
};
|
|
1996
|
+
duration: number;
|
|
1997
|
+
minSampleSize: number;
|
|
1998
|
+
significanceLevel: number;
|
|
1999
|
+
}
|
|
2000
|
+
export interface ExperimentResult {
|
|
2001
|
+
metric: string;
|
|
2002
|
+
control: {
|
|
2003
|
+
mean: number;
|
|
2004
|
+
stddev: number;
|
|
2005
|
+
sampleSize: number;
|
|
2006
|
+
};
|
|
2007
|
+
treatment: {
|
|
2008
|
+
mean: number;
|
|
2009
|
+
stddev: number;
|
|
2010
|
+
sampleSize: number;
|
|
2011
|
+
};
|
|
2012
|
+
pValue: number;
|
|
2013
|
+
significant: boolean;
|
|
2014
|
+
liftPercent: number;
|
|
2015
|
+
}
|
|
2016
|
+
export interface ExperimentState {
|
|
2017
|
+
experiments: Array<{
|
|
2018
|
+
id: string;
|
|
2019
|
+
name: string;
|
|
2020
|
+
hypothesis: string;
|
|
2021
|
+
flag: string;
|
|
2022
|
+
status: 'draft' | 'running' | 'analyzing' | 'shipped' | 'killed';
|
|
2023
|
+
currentPercentage: number;
|
|
2024
|
+
rampSchedule: number[];
|
|
2025
|
+
startedAt?: number;
|
|
2026
|
+
endedAt?: number;
|
|
2027
|
+
duration: number;
|
|
2028
|
+
results: ExperimentResult[];
|
|
2029
|
+
guardrailStatus: 'ok' | 'warning' | 'breached';
|
|
2030
|
+
recommendation?: 'ship' | 'kill' | 'extend' | 'ramp';
|
|
2031
|
+
sampleSize: number;
|
|
2032
|
+
}>;
|
|
2033
|
+
flagProvider: string;
|
|
2034
|
+
totalExperiments: number;
|
|
2035
|
+
activeCount: number;
|
|
2036
|
+
}
|
|
2037
|
+
export interface PerformanceRecord {
|
|
2038
|
+
runId: string;
|
|
2039
|
+
timestamp: number;
|
|
2040
|
+
taskType: string;
|
|
2041
|
+
predictedCost: number;
|
|
2042
|
+
actualCost: number;
|
|
2043
|
+
predictedDuration: number;
|
|
2044
|
+
actualDuration: number;
|
|
2045
|
+
testPassFirstAttempt: boolean;
|
|
2046
|
+
fixIterations: number;
|
|
2047
|
+
humanEditRate: number;
|
|
2048
|
+
reverted: boolean;
|
|
2049
|
+
postMergeIncident: boolean;
|
|
2050
|
+
model: string;
|
|
2051
|
+
strategy: string;
|
|
2052
|
+
}
|
|
2053
|
+
export interface StrategyAnalysis {
|
|
2054
|
+
strategy: string;
|
|
2055
|
+
taskType: string;
|
|
2056
|
+
successRate: number;
|
|
2057
|
+
avgCost: number;
|
|
2058
|
+
avgDuration: number;
|
|
2059
|
+
sampleSize: number;
|
|
2060
|
+
recommendation: string;
|
|
2061
|
+
}
|
|
2062
|
+
export interface SelfImprovementData {
|
|
2063
|
+
records: PerformanceRecord[];
|
|
2064
|
+
strategies: StrategyAnalysis[];
|
|
2065
|
+
tuning: {
|
|
2066
|
+
modelOverrides: Record<string, string>;
|
|
2067
|
+
strategyOverrides: Record<string, string>;
|
|
2068
|
+
promptVariants: Array<{
|
|
2069
|
+
persona: string;
|
|
2070
|
+
variant: string;
|
|
2071
|
+
effectivenessScore: number;
|
|
2072
|
+
}>;
|
|
2073
|
+
};
|
|
2074
|
+
report?: {
|
|
2075
|
+
period: string;
|
|
2076
|
+
accuracyTrend: Array<{
|
|
2077
|
+
metric: string;
|
|
2078
|
+
current: number;
|
|
2079
|
+
previous: number;
|
|
2080
|
+
change: number;
|
|
2081
|
+
}>;
|
|
2082
|
+
qualityTrend: Array<{
|
|
2083
|
+
metric: string;
|
|
2084
|
+
current: number;
|
|
2085
|
+
previous: number;
|
|
2086
|
+
change: number;
|
|
2087
|
+
}>;
|
|
2088
|
+
efficiencyTrend: Array<{
|
|
2089
|
+
metric: string;
|
|
2090
|
+
current: number;
|
|
2091
|
+
previous: number;
|
|
2092
|
+
change: number;
|
|
2093
|
+
}>;
|
|
2094
|
+
recommendations: string[];
|
|
2095
|
+
generatedAt: number;
|
|
2096
|
+
};
|
|
2097
|
+
}
|
|
2098
|
+
export interface HotPath {
|
|
2099
|
+
function: string;
|
|
2100
|
+
file: string;
|
|
2101
|
+
line: number;
|
|
2102
|
+
cpuPercent: number;
|
|
2103
|
+
memoryMb?: number;
|
|
2104
|
+
callCount: number;
|
|
2105
|
+
}
|
|
2106
|
+
export interface QueryIssue {
|
|
2107
|
+
query: string;
|
|
2108
|
+
file: string;
|
|
2109
|
+
line: number;
|
|
2110
|
+
type: 'n-plus-one' | 'missing-index' | 'full-scan' | 'slow';
|
|
2111
|
+
estimatedImpactMs: number;
|
|
2112
|
+
suggestion: string;
|
|
2113
|
+
}
|
|
2114
|
+
export interface OptimizeReport {
|
|
2115
|
+
type: 'profile' | 'bundle' | 'queries' | 'memory' | 'goal';
|
|
2116
|
+
hotPaths: HotPath[];
|
|
2117
|
+
queryIssues: QueryIssue[];
|
|
2118
|
+
bundleSize?: {
|
|
2119
|
+
totalBytes: number;
|
|
2120
|
+
largestModules: Array<{
|
|
2121
|
+
name: string;
|
|
2122
|
+
bytes: number;
|
|
2123
|
+
}>;
|
|
2124
|
+
};
|
|
2125
|
+
memoryLeaks?: Array<{
|
|
2126
|
+
location: string;
|
|
2127
|
+
growthRateMbPerHour: number;
|
|
2128
|
+
description: string;
|
|
2129
|
+
}>;
|
|
2130
|
+
improvements: Array<{
|
|
2131
|
+
description: string;
|
|
2132
|
+
beforeMetric: string;
|
|
2133
|
+
afterMetric: string;
|
|
2134
|
+
improvementPercent: number;
|
|
2135
|
+
}>;
|
|
2136
|
+
recommendations: string[];
|
|
2137
|
+
timestamp: number;
|
|
2138
|
+
}
|
|
2139
|
+
export interface ImpactMetric {
|
|
2140
|
+
name: string;
|
|
2141
|
+
source: string;
|
|
2142
|
+
before: number;
|
|
2143
|
+
after: number;
|
|
2144
|
+
changePercent: number;
|
|
2145
|
+
monetaryValue?: number;
|
|
2146
|
+
confidence: number;
|
|
2147
|
+
}
|
|
2148
|
+
export interface ImpactReport {
|
|
2149
|
+
period: string;
|
|
2150
|
+
features: Array<{
|
|
2151
|
+
name: string;
|
|
2152
|
+
prUrl?: string;
|
|
2153
|
+
metrics: ImpactMetric[];
|
|
2154
|
+
totalValue: number;
|
|
2155
|
+
cost: number;
|
|
2156
|
+
}>;
|
|
2157
|
+
roi: {
|
|
2158
|
+
swarmCost: number;
|
|
2159
|
+
estimatedValue: number;
|
|
2160
|
+
multiple: number;
|
|
2161
|
+
};
|
|
2162
|
+
highlights: string[];
|
|
2163
|
+
timestamp: number;
|
|
2164
|
+
}
|
|
2165
|
+
export interface FleetInstance {
|
|
2166
|
+
id: string;
|
|
2167
|
+
team: string;
|
|
2168
|
+
repo: string;
|
|
2169
|
+
status: 'active' | 'idle' | 'offline';
|
|
2170
|
+
version: string;
|
|
2171
|
+
lastHeartbeat: number;
|
|
2172
|
+
stats: {
|
|
2173
|
+
totalRuns: number;
|
|
2174
|
+
successRate: number;
|
|
2175
|
+
totalCost: number;
|
|
2176
|
+
};
|
|
2177
|
+
}
|
|
2178
|
+
export interface FleetState {
|
|
2179
|
+
instances: FleetInstance[];
|
|
2180
|
+
budget: {
|
|
2181
|
+
total: number;
|
|
2182
|
+
allocated: Record<string, number>;
|
|
2183
|
+
spent: Record<string, number>;
|
|
2184
|
+
};
|
|
2185
|
+
knowledgeItems: number;
|
|
2186
|
+
crossTeamAlerts: Array<{
|
|
2187
|
+
from: string;
|
|
2188
|
+
to: string[];
|
|
2189
|
+
type: string;
|
|
2190
|
+
message: string;
|
|
2191
|
+
timestamp: number;
|
|
2192
|
+
}>;
|
|
2193
|
+
lastSync: number;
|
|
2194
|
+
}
|
|
2195
|
+
export interface ApiEndpoint {
|
|
2196
|
+
path: string;
|
|
2197
|
+
method: string;
|
|
2198
|
+
version: string;
|
|
2199
|
+
requestSchema?: string;
|
|
2200
|
+
responseSchema?: string;
|
|
2201
|
+
consumers: string[];
|
|
2202
|
+
}
|
|
2203
|
+
export interface BreakingChange {
|
|
2204
|
+
endpoint: string;
|
|
2205
|
+
type: 'removed' | 'type-change' | 'required-field' | 'response-change';
|
|
2206
|
+
description: string;
|
|
2207
|
+
affectedConsumers: string[];
|
|
2208
|
+
severity: 'breaking' | 'deprecation' | 'compatible';
|
|
2209
|
+
}
|
|
2210
|
+
export interface ContractData {
|
|
2211
|
+
endpoints: ApiEndpoint[];
|
|
2212
|
+
breakingChanges: BreakingChange[];
|
|
2213
|
+
versions: Array<{
|
|
2214
|
+
version: string;
|
|
2215
|
+
endpoints: number;
|
|
2216
|
+
publishedAt: number;
|
|
2217
|
+
}>;
|
|
2218
|
+
consumers: Array<{
|
|
2219
|
+
name: string;
|
|
2220
|
+
endpoints: string[];
|
|
2221
|
+
sdkVersion?: string;
|
|
2222
|
+
}>;
|
|
2223
|
+
lastGenerated: number;
|
|
2224
|
+
}
|
|
2225
|
+
export interface SimulationScenario {
|
|
2226
|
+
name: string;
|
|
2227
|
+
type: 'traffic-replay' | 'scale' | 'chaos';
|
|
2228
|
+
config: Record<string, unknown>;
|
|
2229
|
+
}
|
|
2230
|
+
export interface SimulationResult {
|
|
2231
|
+
scenario: string;
|
|
2232
|
+
passed: boolean;
|
|
2233
|
+
metrics: Array<{
|
|
2234
|
+
name: string;
|
|
2235
|
+
value: number;
|
|
2236
|
+
threshold: number;
|
|
2237
|
+
status: 'pass' | 'fail' | 'warn';
|
|
2238
|
+
}>;
|
|
2239
|
+
issues: Array<{
|
|
2240
|
+
severity: string;
|
|
2241
|
+
description: string;
|
|
2242
|
+
location?: string;
|
|
2243
|
+
}>;
|
|
2244
|
+
duration: number;
|
|
2245
|
+
}
|
|
2246
|
+
export interface SimulationReport {
|
|
2247
|
+
scenarios: SimulationResult[];
|
|
2248
|
+
overallPass: boolean;
|
|
2249
|
+
riskLevel: 'low' | 'medium' | 'high' | 'critical';
|
|
2250
|
+
recommendations: string[];
|
|
2251
|
+
timestamp: number;
|
|
2252
|
+
}
|
|
2253
|
+
export interface TrainingExample {
|
|
2254
|
+
id: string;
|
|
2255
|
+
taskType: string;
|
|
2256
|
+
input: string;
|
|
2257
|
+
output: string;
|
|
2258
|
+
quality: number;
|
|
2259
|
+
source: 'approved-pr' | 'human-edited' | 'high-quality';
|
|
2260
|
+
collectedAt: number;
|
|
2261
|
+
}
|
|
2262
|
+
export interface TeachState {
|
|
2263
|
+
examples: number;
|
|
2264
|
+
byTaskType: Record<string, number>;
|
|
2265
|
+
trainingJobs: Array<{
|
|
2266
|
+
id: string;
|
|
2267
|
+
model: string;
|
|
2268
|
+
status: 'pending' | 'training' | 'complete' | 'failed';
|
|
2269
|
+
startedAt: number;
|
|
2270
|
+
completedAt?: number;
|
|
2271
|
+
metrics?: {
|
|
2272
|
+
loss: number;
|
|
2273
|
+
accuracy: number;
|
|
2274
|
+
};
|
|
2275
|
+
}>;
|
|
2276
|
+
deployedModels: Array<{
|
|
2277
|
+
id: string;
|
|
2278
|
+
taskTypes: string[];
|
|
2279
|
+
costReduction: number;
|
|
2280
|
+
qualityDelta: number;
|
|
2281
|
+
deployedAt: number;
|
|
2282
|
+
}>;
|
|
2283
|
+
lastCollected: number;
|
|
2284
|
+
}
|
|
2285
|
+
export interface ScopeOption {
|
|
2286
|
+
name: string;
|
|
2287
|
+
description: string;
|
|
2288
|
+
timeline: string;
|
|
2289
|
+
cost: number;
|
|
2290
|
+
coverage: number;
|
|
2291
|
+
deferred: string[];
|
|
2292
|
+
risk: string;
|
|
2293
|
+
recommended: boolean;
|
|
2294
|
+
}
|
|
2295
|
+
export interface NegotiateState {
|
|
2296
|
+
negotiations: Array<{
|
|
2297
|
+
id: string;
|
|
2298
|
+
request: string;
|
|
2299
|
+
feasible: boolean;
|
|
2300
|
+
options: ScopeOption[];
|
|
2301
|
+
selectedOption?: string;
|
|
2302
|
+
audience: 'engineer' | 'pm' | 'executive' | 'customer';
|
|
2303
|
+
status: 'analyzing' | 'proposed' | 'accepted' | 'rejected';
|
|
2304
|
+
createdAt: number;
|
|
2305
|
+
}>;
|
|
2306
|
+
reports: Array<{
|
|
2307
|
+
id: string;
|
|
2308
|
+
period: string;
|
|
2309
|
+
audience: string;
|
|
2310
|
+
content: string;
|
|
2311
|
+
generatedAt: number;
|
|
2312
|
+
}>;
|
|
2313
|
+
channels: Array<{
|
|
2314
|
+
type: 'slack' | 'email' | 'github' | 'linear';
|
|
2315
|
+
configured: boolean;
|
|
2316
|
+
lastUsed?: number;
|
|
2317
|
+
}>;
|
|
2318
|
+
}
|
|
2319
|
+
export interface SpecialistAgent {
|
|
2320
|
+
id: string;
|
|
2321
|
+
domain: 'security' | 'performance' | 'database' | 'frontend' | 'infrastructure' | 'testing' | 'custom';
|
|
2322
|
+
name: string;
|
|
2323
|
+
expertiseScore: number;
|
|
2324
|
+
tasksCompleted: number;
|
|
2325
|
+
successRate: number;
|
|
2326
|
+
memoryItems: number;
|
|
2327
|
+
status: 'active' | 'idle' | 'disabled';
|
|
2328
|
+
createdAt: number;
|
|
2329
|
+
lastUsed: number;
|
|
2330
|
+
}
|
|
2331
|
+
export interface SpecializeState {
|
|
2332
|
+
specialists: SpecialistAgent[];
|
|
2333
|
+
routingHistory: Array<{
|
|
2334
|
+
taskDescription: string;
|
|
2335
|
+
routed: string;
|
|
2336
|
+
confidence: number;
|
|
2337
|
+
outcome?: 'success' | 'failure';
|
|
2338
|
+
timestamp: number;
|
|
2339
|
+
}>;
|
|
2340
|
+
collaborations: Array<{
|
|
2341
|
+
from: string;
|
|
2342
|
+
to: string;
|
|
2343
|
+
type: string;
|
|
2344
|
+
timestamp: number;
|
|
2345
|
+
}>;
|
|
2346
|
+
}
|
|
2347
|
+
export type GovernanceLevel = 1 | 2 | 3 | 4 | 5;
|
|
2348
|
+
export interface GovernancePolicy {
|
|
2349
|
+
domain: string;
|
|
2350
|
+
level: GovernanceLevel;
|
|
2351
|
+
trustScore: number;
|
|
2352
|
+
autoPromoteThreshold: number;
|
|
2353
|
+
autoDemoteOnRevert: boolean;
|
|
2354
|
+
}
|
|
2355
|
+
export interface GovernanceDecision {
|
|
2356
|
+
id: string;
|
|
2357
|
+
action: string;
|
|
2358
|
+
domain: string;
|
|
2359
|
+
level: GovernanceLevel;
|
|
2360
|
+
confidence: number;
|
|
2361
|
+
reasoning: string;
|
|
2362
|
+
alternatives: string[];
|
|
2363
|
+
status: 'auto-approved' | 'pending' | 'approved' | 'rejected' | 'overridden';
|
|
2364
|
+
outcome?: 'success' | 'failure' | 'reverted';
|
|
2365
|
+
timestamp: number;
|
|
2366
|
+
resolvedAt?: number;
|
|
2367
|
+
resolvedBy?: string;
|
|
2368
|
+
}
|
|
2369
|
+
export interface GovernState {
|
|
2370
|
+
policies: GovernancePolicy[];
|
|
2371
|
+
decisions: GovernanceDecision[];
|
|
2372
|
+
trustScores: Record<string, number>;
|
|
2373
|
+
overrides: number;
|
|
2374
|
+
totalDecisions: number;
|
|
2375
|
+
autonomousRate: number;
|
|
2376
|
+
budgetAllocation: Record<string, {
|
|
2377
|
+
allocated: number;
|
|
2378
|
+
spent: number;
|
|
2379
|
+
}>;
|
|
2380
|
+
}
|
|
2381
|
+
export interface UserJourney {
|
|
2382
|
+
id: string;
|
|
2383
|
+
name: string;
|
|
2384
|
+
touchpoints: Array<{
|
|
2385
|
+
stage: string;
|
|
2386
|
+
timestamp: number;
|
|
2387
|
+
status: 'completed' | 'failed' | 'in-progress';
|
|
2388
|
+
durationMs: number;
|
|
2389
|
+
sentiment: 'positive' | 'negative' | 'neutral';
|
|
2390
|
+
}>;
|
|
2391
|
+
satisfaction: number;
|
|
2392
|
+
painPoints: string[];
|
|
2393
|
+
dropOffPoints: string[];
|
|
2394
|
+
analyzedAt: number;
|
|
2395
|
+
}
|
|
2396
|
+
export interface FeedbackTheme {
|
|
2397
|
+
id: string;
|
|
2398
|
+
theme: string;
|
|
2399
|
+
occurrences: number;
|
|
2400
|
+
sentiment: 'positive' | 'negative' | 'neutral';
|
|
2401
|
+
sources: string[];
|
|
2402
|
+
firstSeen: number;
|
|
2403
|
+
lastSeen: number;
|
|
2404
|
+
impact: 'high' | 'medium' | 'low';
|
|
2405
|
+
}
|
|
2406
|
+
export interface EmpathizeState {
|
|
2407
|
+
journeys: UserJourney[];
|
|
2408
|
+
themes: FeedbackTheme[];
|
|
2409
|
+
improvements: string[];
|
|
2410
|
+
lastAnalyzed: number;
|
|
2411
|
+
}
|
|
2412
|
+
export interface AllocationRecommendation {
|
|
2413
|
+
id: string;
|
|
2414
|
+
generatedAt: number;
|
|
2415
|
+
compositeScore: number;
|
|
2416
|
+
scores: {
|
|
2417
|
+
businessImpact: number;
|
|
2418
|
+
techRisk: number;
|
|
2419
|
+
userImpact: number;
|
|
2420
|
+
};
|
|
2421
|
+
allocations: Array<{
|
|
2422
|
+
category: string;
|
|
2423
|
+
percentage: number;
|
|
2424
|
+
rationale: string;
|
|
2425
|
+
}>;
|
|
2426
|
+
insights: string[];
|
|
2427
|
+
totalBudgetContext: {
|
|
2428
|
+
historicalCost: number;
|
|
2429
|
+
runsAnalyzed: number;
|
|
2430
|
+
};
|
|
2431
|
+
}
|
|
2432
|
+
export interface WhatIfScenario {
|
|
2433
|
+
id: string;
|
|
2434
|
+
description: string;
|
|
2435
|
+
type: 'increase-features' | 'increase-reliability' | 'reduce-budget' | 'scale-up' | 'custom';
|
|
2436
|
+
adjustments: Array<{
|
|
2437
|
+
category: string;
|
|
2438
|
+
currentPct: number;
|
|
2439
|
+
proposedPct: number;
|
|
2440
|
+
}>;
|
|
2441
|
+
predictedOutcome: {
|
|
2442
|
+
velocityChange: string;
|
|
2443
|
+
riskChange: string;
|
|
2444
|
+
costChange: string;
|
|
2445
|
+
recommendation: string;
|
|
2446
|
+
};
|
|
2447
|
+
runAt: number;
|
|
2448
|
+
confidence: number;
|
|
2449
|
+
}
|
|
2450
|
+
export interface AllocateState {
|
|
2451
|
+
currentPlan: AllocationRecommendation | null;
|
|
2452
|
+
scenarios: WhatIfScenario[];
|
|
2453
|
+
okrs: Array<{
|
|
2454
|
+
objective: string;
|
|
2455
|
+
keyResults: Array<{
|
|
2456
|
+
metric: string;
|
|
2457
|
+
current: number;
|
|
2458
|
+
target: number;
|
|
2459
|
+
unit: string;
|
|
2460
|
+
}>;
|
|
2461
|
+
category: string;
|
|
2462
|
+
confidence: number;
|
|
2463
|
+
}>;
|
|
2464
|
+
lastGenerated: number;
|
|
2465
|
+
}
|
|
2466
|
+
export interface CompetitorInfo {
|
|
2467
|
+
name: string;
|
|
2468
|
+
repo?: string;
|
|
2469
|
+
stars?: number;
|
|
2470
|
+
lastRelease?: string;
|
|
2471
|
+
recentFeatures: string[];
|
|
2472
|
+
trend: 'growing' | 'stable' | 'declining';
|
|
2473
|
+
}
|
|
2474
|
+
export interface TechRadarEntry {
|
|
2475
|
+
name: string;
|
|
2476
|
+
category: 'language' | 'framework' | 'tool' | 'platform';
|
|
2477
|
+
ring: 'adopt' | 'trial' | 'assess' | 'hold';
|
|
2478
|
+
relevance: string;
|
|
2479
|
+
}
|
|
2480
|
+
export interface CompeteState {
|
|
2481
|
+
competitors: CompetitorInfo[];
|
|
2482
|
+
featureGaps: Array<{
|
|
2483
|
+
feature: string;
|
|
2484
|
+
competitor: string;
|
|
2485
|
+
priority: string;
|
|
2486
|
+
effort: string;
|
|
2487
|
+
}>;
|
|
2488
|
+
radar: TechRadarEntry[];
|
|
2489
|
+
lastScanned: number;
|
|
2490
|
+
}
|
|
2491
|
+
export interface AcquiredCapability {
|
|
2492
|
+
id: string;
|
|
2493
|
+
name: string;
|
|
2494
|
+
type: 'mcp-tool' | 'custom-persona' | 'plugin';
|
|
2495
|
+
source: string;
|
|
2496
|
+
effectiveness: number;
|
|
2497
|
+
tasksUsed: number;
|
|
2498
|
+
status: 'testing' | 'active' | 'disabled' | 'discarded';
|
|
2499
|
+
acquiredAt: number;
|
|
2500
|
+
}
|
|
2501
|
+
export interface SpawnState {
|
|
2502
|
+
capabilities: AcquiredCapability[];
|
|
2503
|
+
gaps: Array<{
|
|
2504
|
+
domain: string;
|
|
2505
|
+
failureCount: number;
|
|
2506
|
+
lastFailed: number;
|
|
2507
|
+
attemptedAcquisitions: number;
|
|
2508
|
+
}>;
|
|
2509
|
+
evaluations: Array<{
|
|
2510
|
+
capabilityId: string;
|
|
2511
|
+
tasksRun: number;
|
|
2512
|
+
successRate: number;
|
|
2513
|
+
verdict: string;
|
|
2514
|
+
}>;
|
|
2515
|
+
}
|
|
2516
|
+
export interface SharedPattern {
|
|
2517
|
+
id: string;
|
|
2518
|
+
type: 'strategy' | 'guardrail' | 'prompt' | 'pipeline-config';
|
|
2519
|
+
description: string;
|
|
2520
|
+
stack: string;
|
|
2521
|
+
effectiveness: number;
|
|
2522
|
+
adoptions: number;
|
|
2523
|
+
sharedAt: number;
|
|
2524
|
+
}
|
|
2525
|
+
export interface FederateState {
|
|
2526
|
+
optedIn: boolean;
|
|
2527
|
+
sharedPatterns: SharedPattern[];
|
|
2528
|
+
receivedPatterns: SharedPattern[];
|
|
2529
|
+
benchmarks: Array<{
|
|
2530
|
+
metric: string;
|
|
2531
|
+
myValue: number;
|
|
2532
|
+
communityAvg: number;
|
|
2533
|
+
percentile: number;
|
|
2534
|
+
}>;
|
|
2535
|
+
lastSync: number;
|
|
2536
|
+
}
|
|
2537
|
+
export declare const PERSONA_STAGE_MAP: Record<Persona, StageName>;
|
|
2538
|
+
export declare const STAGE_ARTIFACT_MAP: Record<StageName, string | null>;
|
|
2539
|
+
//# sourceMappingURL=types.d.ts.map
|