vgxness 1.20.4 → 1.20.6
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/dist/adapters/claude/agent-renderer.js +82 -0
- package/dist/{mcp → adapters/claude/install}/claude-code-agent-config.js +64 -9
- package/dist/{mcp → adapters/claude/install}/claude-code-config.js +28 -6
- package/dist/{mcp → adapters/claude/install}/claude-code-project-memory.js +35 -5
- package/dist/{mcp → adapters/claude/install}/claude-code-scope.js +12 -3
- package/dist/{mcp → adapters/claude/install}/claude-code-user-config.js +26 -5
- package/dist/{mcp → adapters/claude/install}/claude-code-user-memory.js +47 -7
- package/dist/{mcp → adapters/claude/install}/client-install-claude-code-contract.js +45 -8
- package/dist/{mcp → adapters/claude/install}/client-install-claude-code.js +98 -14
- package/dist/adapters/json/agent-renderer.js +104 -0
- package/dist/adapters/opencode/agent-renderer.js +113 -0
- package/dist/{mcp → adapters/opencode/install}/client-install-opencode-contract.js +2 -2
- package/dist/{mcp → adapters/opencode/install}/client-install-opencode.js +1 -1
- package/dist/{mcp → adapters/opencode/install}/opencode-default-agent-config.js +2 -2
- package/dist/{mcp → adapters/opencode/install}/opencode-handoff-preview.js +60 -7
- package/dist/{mcp → adapters/opencode/install}/opencode-visibility.js +1 -1
- package/dist/adapters/provider-renderer.js +6 -0
- package/dist/agents/agent-activation-service.js +1 -263
- package/dist/agents/agent-lookup-contexts.js +1 -28
- package/dist/agents/agent-registry-service.js +1 -81
- package/dist/agents/agent-resolver.js +1 -287
- package/dist/agents/agent-seed-service.js +1 -157
- package/dist/agents/agent-seed-upgrade-service.js +1 -231
- package/dist/agents/agent-selector-resolver.js +1 -28
- package/dist/agents/boot-upgrade.js +1 -59
- package/dist/agents/canonical-agent-manifest.js +1 -245
- package/dist/agents/canonical-agent-projection.js +1 -236
- package/dist/agents/manager-profile-overlay-service.js +1 -60
- package/dist/agents/profile-model-routing.js +1 -30
- package/dist/agents/renderers/claude-renderer.js +1 -82
- package/dist/agents/renderers/index.js +1 -14
- package/dist/agents/renderers/json-renderer.js +1 -104
- package/dist/agents/renderers/opencode-renderer.js +1 -113
- package/dist/agents/renderers/provider-adapter.js +1 -6
- package/dist/agents/repositories/agent-seed-history.js +1 -128
- package/dist/agents/repositories/agents.js +1 -200
- package/dist/agents/repositories/manager-profile-overlays.js +1 -90
- package/dist/agents/schema.js +1 -1
- package/dist/application/agents/agent-activation-service.js +261 -0
- package/dist/application/agents/agent-lookup-contexts.js +28 -0
- package/dist/application/agents/agent-registry-service.js +81 -0
- package/dist/application/agents/agent-resolver.js +287 -0
- package/dist/application/agents/agent-seed-service.js +157 -0
- package/dist/application/agents/agent-seed-upgrade-service.js +231 -0
- package/dist/application/agents/agent-selector-resolver.js +28 -0
- package/dist/application/agents/boot-upgrade.js +59 -0
- package/dist/application/agents/canonical-agent-projection.js +236 -0
- package/dist/application/agents/manager-profile-overlay-service.js +68 -0
- package/dist/application/agents/profile-model-routing.js +30 -0
- package/dist/application/agents/renderers/claude-renderer.js +1 -0
- package/dist/application/agents/renderers/index.js +14 -0
- package/dist/application/agents/renderers/json-renderer.js +1 -0
- package/dist/application/agents/renderers/opencode-renderer.js +1 -0
- package/dist/application/agents/renderers/provider-adapter.js +1 -0
- package/dist/application/memory/active-work-preview.js +75 -0
- package/dist/application/memory/agent-memory-capture-service.js +498 -0
- package/dist/application/memory/import/dry-run-planner.js +58 -0
- package/dist/application/memory/import/index.js +3 -0
- package/dist/application/memory/import/observation-writer.js +226 -0
- package/dist/application/memory/import/package.js +179 -0
- package/dist/application/memory/memory-service.js +202 -0
- package/dist/application/memory/search.js +11 -0
- package/dist/{mcp → application/provider-setup}/provider-change-plan.js +74 -13
- package/dist/{mcp → application/provider-setup}/provider-doctor.js +201 -31
- package/dist/{mcp → application/provider-setup}/provider-health-types.js +1 -1
- package/dist/{mcp → application/provider-setup}/provider-status.js +170 -33
- package/dist/application/runs/execution-planning.js +180 -0
- package/dist/application/runs/operation-execution.js +1 -0
- package/dist/application/runs/operation-retry.js +129 -0
- package/dist/application/runs/resume-after-approval-result.js +88 -0
- package/dist/application/runs/run-insights.js +270 -0
- package/dist/application/runs/run-service.js +1480 -0
- package/dist/application/runs/run-snapshot-export-service.js +31 -0
- package/dist/application/runs/sandbox-process-execution.js +244 -0
- package/dist/application/runs/sandbox-worktree-planning.js +59 -0
- package/dist/application/runs/task-scoped-command-grant-service.js +224 -0
- package/dist/application/sdd/artifact-portability-service.js +137 -0
- package/dist/application/sdd/cockpit-read-model.js +195 -0
- package/dist/application/sdd/sdd-continuation-plan.js +265 -0
- package/dist/application/sdd/sdd-workflow-service.js +892 -0
- package/dist/application/skills/boot-seed.js +42 -0
- package/dist/application/skills/personal-skills.js +41 -0
- package/dist/application/skills/skill-export-service.js +34 -0
- package/dist/application/skills/skill-index-service.js +126 -0
- package/dist/application/skills/skill-payload.js +186 -0
- package/dist/application/skills/skill-registry-service.js +648 -0
- package/dist/application/skills/skill-resolver.js +368 -0
- package/dist/application/skills/skill-seed-service.js +242 -0
- package/dist/application/skills/skill-status-service.js +147 -0
- package/dist/cli/bun-bin.js +0 -0
- package/dist/cli/cli-flags.js +1 -387
- package/dist/cli/cli-help.js +1 -173
- package/dist/cli/cli-helpers.js +1 -77
- package/dist/cli/cli-types.js +1 -1
- package/dist/cli/commands/agent-skill-dispatcher.js +1 -700
- package/dist/cli/commands/index.js +1 -9
- package/dist/cli/commands/interactive-entrypoint-dispatcher.js +1 -14
- package/dist/cli/commands/mcp-dispatcher.js +1 -232
- package/dist/cli/commands/memory-sdd-dispatcher.js +1 -367
- package/dist/cli/commands/run-permission-dispatcher.js +1 -455
- package/dist/cli/commands/setup-dispatcher.js +1 -496
- package/dist/cli/commands/status-dispatcher.js +1 -130
- package/dist/cli/commands/verification-dispatcher.js +1 -47
- package/dist/cli/commands/workflow-dispatcher.js +1 -566
- package/dist/cli/dispatcher.js +1 -247
- package/dist/cli/doctor-renderer.js +1 -26
- package/dist/cli/home-tui-app.js +1 -411
- package/dist/cli/home-tui-controller.js +1 -314
- package/dist/cli/mcp-start-path.js +1 -21
- package/dist/cli/product-resume-renderer.js +1 -32
- package/dist/cli/product-status-renderer.js +1 -81
- package/dist/cli/sdd-renderer.js +1 -247
- package/dist/cli/setup-plan-renderer.js +1 -79
- package/dist/cli/setup-status-renderer.js +1 -50
- package/dist/cli/setup-tui-app.js +1 -130
- package/dist/cli/setup-tui-controller.js +1 -89
- package/dist/cli/tui/focus-reducer.js +1 -0
- package/dist/cli/tui/focus-types.js +1 -0
- package/dist/cli/tui/ink/app-shell.js +1 -0
- package/dist/cli/tui/ink/components.js +1 -38
- package/dist/cli/tui/ink/help-overlay.js +1 -0
- package/dist/cli/tui/ink/state-components.js +1 -0
- package/dist/cli/tui/ink/theme.js +1 -36
- package/dist/cli/tui/key-intents.js +1 -0
- package/dist/cli/tui/keymap.js +1 -20
- package/dist/cli/tui/navigation.js +1 -10
- package/dist/cli/tui/screen-registry.js +1 -0
- package/dist/cli/tui/terminal-capabilities.js +1 -12
- package/dist/cli/tui/tui-types.js +1 -1
- package/dist/cli/tui/visual/badges.js +1 -19
- package/dist/cli/tui/visual/footer.js +1 -27
- package/dist/cli/tui/visual/index.js +1 -3
- package/dist/cli/tui/visual/viewport.js +1 -11
- package/dist/cli/tui-render-helpers.js +1 -200
- package/dist/cli/verification-plan-renderer.js +1 -25
- package/dist/cli/verification-report-renderer.js +1 -19
- package/dist/domain/agents/canonical-agent-manifest.js +355 -0
- package/dist/domain/agents/schema.js +1 -0
- package/dist/domain/memory/active-work-topics.js +64 -0
- package/dist/domain/memory/memory-capture-schema.js +1 -0
- package/dist/domain/memory/schema.js +1 -0
- package/dist/domain/runs/schema.js +5 -0
- package/dist/domain/sdd/cockpit-types.js +1 -0
- package/dist/domain/sdd/schema.js +111 -0
- package/dist/domain/skills/schema.js +1 -0
- package/dist/governance/risk-classifier.js +2 -0
- package/dist/interfaces/cli/bun-bin.js +46 -0
- package/dist/interfaces/cli/cli-flags.js +391 -0
- package/dist/interfaces/cli/cli-help.js +173 -0
- package/dist/interfaces/cli/cli-helpers.js +77 -0
- package/dist/interfaces/cli/cli-types.js +1 -0
- package/dist/interfaces/cli/commands/agent-skill-dispatcher.js +700 -0
- package/dist/interfaces/cli/commands/index.js +9 -0
- package/dist/interfaces/cli/commands/interactive-entrypoint-dispatcher.js +14 -0
- package/dist/interfaces/cli/commands/mcp-dispatcher.js +252 -0
- package/dist/interfaces/cli/commands/memory-sdd-dispatcher.js +367 -0
- package/dist/interfaces/cli/commands/run-permission-dispatcher.js +460 -0
- package/dist/interfaces/cli/commands/setup-dispatcher.js +496 -0
- package/dist/interfaces/cli/commands/status-dispatcher.js +130 -0
- package/dist/interfaces/cli/commands/verification-dispatcher.js +47 -0
- package/dist/interfaces/cli/commands/workflow-dispatcher.js +566 -0
- package/dist/interfaces/cli/dispatcher.js +247 -0
- package/dist/interfaces/cli/doctor-renderer.js +26 -0
- package/dist/interfaces/cli/home-tui-app.js +462 -0
- package/dist/interfaces/cli/home-tui-controller.js +341 -0
- package/dist/interfaces/cli/index.js +27 -0
- package/dist/interfaces/cli/mcp-start-path.js +21 -0
- package/dist/interfaces/cli/product-resume-renderer.js +32 -0
- package/dist/interfaces/cli/product-status-renderer.js +81 -0
- package/dist/interfaces/cli/sdd-renderer.js +247 -0
- package/dist/interfaces/cli/setup-plan-renderer.js +79 -0
- package/dist/interfaces/cli/setup-status-renderer.js +50 -0
- package/dist/interfaces/cli/setup-tui-app.js +135 -0
- package/dist/interfaces/cli/setup-tui-controller.js +89 -0
- package/dist/interfaces/cli/tui/focus-reducer.js +60 -0
- package/dist/interfaces/cli/tui/focus-types.js +10 -0
- package/dist/interfaces/cli/tui/ink/app-shell.js +16 -0
- package/dist/interfaces/cli/tui/ink/components.js +38 -0
- package/dist/interfaces/cli/tui/ink/help-overlay.js +6 -0
- package/dist/interfaces/cli/tui/ink/state-components.js +22 -0
- package/dist/interfaces/cli/tui/ink/theme.js +36 -0
- package/dist/interfaces/cli/tui/key-intents.js +33 -0
- package/dist/interfaces/cli/tui/keymap.js +20 -0
- package/dist/interfaces/cli/tui/navigation.js +10 -0
- package/dist/interfaces/cli/tui/screen-registry.js +43 -0
- package/dist/interfaces/cli/tui/terminal-capabilities.js +12 -0
- package/dist/interfaces/cli/tui/tui-types.js +1 -0
- package/dist/interfaces/cli/tui/visual/badges.js +19 -0
- package/dist/interfaces/cli/tui/visual/footer.js +27 -0
- package/dist/interfaces/cli/tui/visual/index.js +3 -0
- package/dist/interfaces/cli/tui/visual/viewport.js +11 -0
- package/dist/interfaces/cli/tui-render-helpers.js +200 -0
- package/dist/interfaces/cli/verification-plan-renderer.js +25 -0
- package/dist/interfaces/cli/verification-report-renderer.js +19 -0
- package/dist/interfaces/mcp/contracts/agents.js +1 -0
- package/dist/interfaces/mcp/contracts/context.js +1 -0
- package/dist/interfaces/mcp/contracts/governance.js +1 -0
- package/dist/interfaces/mcp/contracts/index.js +1 -0
- package/dist/interfaces/mcp/contracts/memory.js +1 -0
- package/dist/interfaces/mcp/contracts/providers.js +1 -0
- package/dist/interfaces/mcp/contracts/runs.js +1 -0
- package/dist/interfaces/mcp/contracts/sdd.js +1 -0
- package/dist/interfaces/mcp/contracts/sessions.js +1 -0
- package/dist/interfaces/mcp/contracts/skills.js +1 -0
- package/dist/interfaces/mcp/contracts/verification.js +1 -0
- package/dist/interfaces/mcp/control-plane/handlers/agents.js +38 -0
- package/dist/interfaces/mcp/control-plane/handlers/context.js +12 -0
- package/dist/interfaces/mcp/control-plane/handlers/memory.js +95 -0
- package/dist/interfaces/mcp/control-plane/handlers/providers.js +19 -0
- package/dist/interfaces/mcp/control-plane/handlers/runs.js +134 -0
- package/dist/interfaces/mcp/control-plane/handlers/sdd.js +225 -0
- package/dist/interfaces/mcp/control-plane/handlers/sessions.js +39 -0
- package/dist/interfaces/mcp/control-plane/handlers/skills.js +82 -0
- package/dist/interfaces/mcp/control-plane/handlers/verification.js +11 -0
- package/dist/interfaces/mcp/control-plane/types.js +1 -0
- package/dist/interfaces/mcp/control-plane.js +235 -0
- package/dist/interfaces/mcp/schema.js +174 -0
- package/dist/interfaces/mcp/schemas/common.js +121 -0
- package/dist/interfaces/mcp/schemas/inputs/agents.js +69 -0
- package/dist/interfaces/mcp/schemas/inputs/context.js +32 -0
- package/dist/interfaces/mcp/schemas/inputs/governance.js +23 -0
- package/dist/interfaces/mcp/schemas/inputs/index.js +10 -0
- package/dist/interfaces/mcp/schemas/inputs/memory.js +50 -0
- package/dist/interfaces/mcp/schemas/inputs/providers.js +35 -0
- package/dist/interfaces/mcp/schemas/inputs/runs.js +146 -0
- package/dist/interfaces/mcp/schemas/inputs/sdd.js +102 -0
- package/dist/interfaces/mcp/schemas/inputs/sessions.js +32 -0
- package/dist/interfaces/mcp/schemas/inputs/skills.js +231 -0
- package/dist/interfaces/mcp/schemas/inputs/verification.js +9 -0
- package/dist/interfaces/mcp/schemas/outputs/index.js +2 -0
- package/dist/interfaces/mcp/schemas/outputs/providers.js +28 -0
- package/dist/interfaces/mcp/schemas/outputs/sdd.js +166 -0
- package/dist/interfaces/mcp/stdio-server.js +116 -0
- package/dist/interfaces/mcp/validation/agents.js +189 -0
- package/dist/interfaces/mcp/validation/common.js +415 -0
- package/dist/interfaces/mcp/validation/governance.js +50 -0
- package/dist/interfaces/mcp/validation/memory.js +133 -0
- package/dist/interfaces/mcp/validation/providers.js +94 -0
- package/dist/interfaces/mcp/validation/runs.js +514 -0
- package/dist/interfaces/mcp/validation/sdd.js +247 -0
- package/dist/interfaces/mcp/validation/sessions.js +51 -0
- package/dist/interfaces/mcp/validation/skills.js +685 -0
- package/dist/interfaces/mcp/validation/verification.js +24 -0
- package/dist/interfaces/mcp/validation.js +149 -0
- package/dist/mcp/control-plane-snapshot-service.js +65 -2
- package/dist/mcp/control-plane.js +1 -646
- package/dist/mcp/doctor.js +1 -1
- package/dist/mcp/index.js +17 -17
- package/dist/mcp/schema.js +1 -1072
- package/dist/mcp/stdio-server.js +1 -116
- package/dist/mcp/validation.js +1 -2239
- package/dist/memory/active-work-preview.js +1 -75
- package/dist/memory/active-work-topics.js +1 -64
- package/dist/memory/agent-memory-capture-service.js +1 -497
- package/dist/memory/import/dry-run-planner.js +1 -58
- package/dist/memory/import/index.js +1 -3
- package/dist/memory/import/observation-writer.js +1 -226
- package/dist/memory/import/package.js +1 -179
- package/dist/memory/memory-capture-schema.js +1 -1
- package/dist/memory/memory-service.js +1 -201
- package/dist/memory/repositories/artifacts.js +1 -67
- package/dist/memory/repositories/observations.js +1 -217
- package/dist/memory/repositories/sessions.js +1 -125
- package/dist/memory/repositories/traces.js +1 -78
- package/dist/memory/schema.js +1 -1
- package/dist/memory/search.js +1 -11
- package/dist/memory/sqlite/database.js +1 -228
- package/dist/memory/storage-paths.js +1 -72
- package/dist/payload/context-budget-policy.js +10 -0
- package/dist/payload/context-budget-service.js +26 -0
- package/dist/payload/payload-diagnostics.js +50 -0
- package/dist/permissions/explicit-request-authorization.js +126 -0
- package/dist/permissions/policy-evaluator.js +54 -14
- package/dist/runs/execution-planning.js +1 -178
- package/dist/runs/operation-execution.js +1 -1
- package/dist/runs/operation-retry.js +1 -129
- package/dist/runs/repositories/runs.js +1 -676
- package/dist/runs/repositories/task-scoped-command-grants.js +1 -462
- package/dist/runs/resume-after-approval-result.js +1 -84
- package/dist/runs/run-insights.js +1 -270
- package/dist/runs/run-service.js +1 -1439
- package/dist/runs/run-snapshot-export-service.js +1 -31
- package/dist/runs/sandbox-process-execution.js +1 -240
- package/dist/runs/sandbox-worktree-planning.js +1 -59
- package/dist/runs/schema.js +1 -5
- package/dist/runs/task-scoped-command-grant-service.js +1 -216
- package/dist/sdd/artifact-portability-service.js +1 -137
- package/dist/sdd/cockpit-read-model.js +1 -195
- package/dist/sdd/cockpit-types.js +1 -1
- package/dist/sdd/schema.js +1 -111
- package/dist/sdd/sdd-continuation-plan.js +1 -265
- package/dist/sdd/sdd-workflow-service.js +1 -822
- package/dist/setup/providers/claude-setup-adapter.js +11 -4
- package/dist/setup/providers/opencode-setup-adapter.js +10 -7
- package/dist/setup/setup-plan.js +20 -7
- package/dist/skills/boot-seed.js +1 -42
- package/dist/skills/personal-skills.js +1 -41
- package/dist/skills/repositories/skill-evaluation-requests.js +1 -190
- package/dist/skills/repositories/skill-evaluation-scenarios.js +1 -305
- package/dist/skills/repositories/skill-improvement-proposals.js +1 -355
- package/dist/skills/repositories/skills.js +1 -1077
- package/dist/skills/schema.js +1 -1
- package/dist/skills/skill-export-service.js +1 -34
- package/dist/skills/skill-index-service.js +1 -126
- package/dist/skills/skill-payload.js +1 -186
- package/dist/skills/skill-registry-service.js +1 -644
- package/dist/skills/skill-resolver.js +1 -368
- package/dist/skills/skill-seed-service.js +1 -242
- package/dist/skills/skill-status-service.js +1 -147
- package/dist/storage/agents/repositories/agent-seed-history.js +128 -0
- package/dist/storage/agents/repositories/agents.js +200 -0
- package/dist/storage/agents/repositories/manager-profile-overlays.js +90 -0
- package/dist/storage/memory/repositories/artifacts.js +67 -0
- package/dist/storage/memory/repositories/observations.js +217 -0
- package/dist/storage/memory/repositories/sessions.js +125 -0
- package/dist/storage/memory/repositories/traces.js +78 -0
- package/dist/storage/memory/sqlite/database.js +228 -0
- package/dist/storage/memory/storage-paths.js +72 -0
- package/dist/storage/runs/repositories/runs.js +676 -0
- package/dist/storage/runs/repositories/task-scoped-command-grants.js +464 -0
- package/dist/storage/skills/repositories/skill-evaluation-requests.js +190 -0
- package/dist/storage/skills/repositories/skill-evaluation-scenarios.js +305 -0
- package/dist/storage/skills/repositories/skill-improvement-proposals.js +355 -0
- package/dist/storage/skills/repositories/skills.js +1084 -0
- package/docs/architecture.md +2 -2
- package/docs/glossary.md +1 -1
- package/docs/mcp.md +1 -1
- package/docs/module-boundaries.md +114 -0
- package/docs/prd.md +1 -1
- package/docs/project-health-audit-v1.10.x.md +1 -1
- package/docs/providers.md +2 -2
- package/docs/safety.md +3 -3
- package/docs/sdd/archive/2026-06-26-ambitious-structure-reorganization/apply-progress.md +122 -0
- package/docs/sdd/archive/2026-06-26-ambitious-structure-reorganization/archive-report.md +61 -0
- package/docs/sdd/archive/2026-06-26-ambitious-structure-reorganization/design.md +66 -0
- package/docs/sdd/archive/2026-06-26-ambitious-structure-reorganization/proposal.md +79 -0
- package/docs/sdd/archive/2026-06-26-ambitious-structure-reorganization/spec.md +67 -0
- package/docs/sdd/archive/2026-06-26-ambitious-structure-reorganization/tasks.md +63 -0
- package/docs/sdd/archive/2026-06-26-ambitious-structure-reorganization/verify-report.md +71 -0
- package/docs/sdd/archive/2026-06-26-legacy-facade-cleanup/apply-progress.md +68 -0
- package/docs/sdd/archive/2026-06-26-legacy-facade-cleanup/archive-report.md +61 -0
- package/docs/sdd/archive/2026-06-26-legacy-facade-cleanup/design.md +43 -0
- package/docs/sdd/archive/2026-06-26-legacy-facade-cleanup/proposal.md +61 -0
- package/docs/sdd/archive/2026-06-26-legacy-facade-cleanup/spec.md +31 -0
- package/docs/sdd/archive/2026-06-26-legacy-facade-cleanup/tasks.md +27 -0
- package/docs/sdd/archive/2026-06-26-legacy-facade-cleanup/verify-report.md +58 -0
- package/docs/sdd/archive/2026-06-26-provider-install-adapter-boundary/apply-progress.md +65 -0
- package/docs/sdd/archive/2026-06-26-provider-install-adapter-boundary/archive-report.md +53 -0
- package/docs/sdd/archive/2026-06-26-provider-install-adapter-boundary/design.md +64 -0
- package/docs/sdd/archive/2026-06-26-provider-install-adapter-boundary/proposal.md +62 -0
- package/docs/sdd/archive/2026-06-26-provider-install-adapter-boundary/spec.md +51 -0
- package/docs/sdd/archive/2026-06-26-provider-install-adapter-boundary/tasks.md +50 -0
- package/docs/sdd/archive/2026-06-26-provider-install-adapter-boundary/verify-report.md +66 -0
- package/docs/storage.md +2 -2
- package/package.json +2 -2
- /package/dist/{mcp → adapters/claude/install}/claude-code-cli.js +0 -0
- /package/dist/{memory → storage/memory}/sqlite/migrations/001_initial.sql +0 -0
- /package/dist/{memory → storage/memory}/sqlite/migrations/002_observation_revisions.sql +0 -0
- /package/dist/{memory → storage/memory}/sqlite/migrations/003_agent_registry.sql +0 -0
- /package/dist/{memory → storage/memory}/sqlite/migrations/004_run_runtime.sql +0 -0
- /package/dist/{memory → storage/memory}/sqlite/migrations/005_run_approvals.sql +0 -0
- /package/dist/{memory → storage/memory}/sqlite/migrations/006_run_operation_attempts.sql +0 -0
- /package/dist/{memory → storage/memory}/sqlite/migrations/007_abandoned_operation_attempts.sql +0 -0
- /package/dist/{memory → storage/memory}/sqlite/migrations/008_run_execution_plan_events.sql +0 -0
- /package/dist/{memory → storage/memory}/sqlite/migrations/009_multiple_operation_attempts.sql +0 -0
- /package/dist/{memory → storage/memory}/sqlite/migrations/010_skill_registry.sql +0 -0
- /package/dist/{memory → storage/memory}/sqlite/migrations/011_skill_usage_resolution_outcomes.sql +0 -0
- /package/dist/{memory → storage/memory}/sqlite/migrations/012_skill_improvement_proposals.sql +0 -0
- /package/dist/{memory → storage/memory}/sqlite/migrations/013_skill_evaluation_scenarios.sql +0 -0
- /package/dist/{memory → storage/memory}/sqlite/migrations/014_manager_profile_overlays.sql +0 -0
- /package/dist/{memory → storage/memory}/sqlite/migrations/015_artifact_metadata.sql +0 -0
- /package/dist/{memory → storage/memory}/sqlite/migrations/016_agent_seed_history.sql +0 -0
- /package/dist/{memory → storage/memory}/sqlite/migrations/017_intent_signal_skill_targets.sql +0 -0
- /package/dist/{memory → storage/memory}/sqlite/migrations/018_skill_system_v2.sql +0 -0
- /package/dist/{memory → storage/memory}/sqlite/migrations/019_task_scoped_command_grants.sql +0 -0
|
@@ -1,265 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
const nextPhase = input.next.nextPhase;
|
|
3
|
-
const dbFlag = continuationDbFlag(input.explicitDatabasePath);
|
|
4
|
-
const inspectCommand = `vgxness sdd cockpit --project ${input.project} --change ${input.next.change} --json${dbFlag}`;
|
|
5
|
-
const suggestedCommand = suggestedContinuationCommand(input.project, input.next, inspectCommand, dbFlag);
|
|
6
|
-
const blockerGuidance = input.next.blockerGuidance ?? [];
|
|
7
|
-
const blockerActions = blockerGuidance.map((blocker) => continuationBlockerAction(input.project, input.next.change, blocker, dbFlag));
|
|
8
|
-
const recommendedActions = continuationRecommendedActions(input.project, input.next, blockerGuidance);
|
|
9
|
-
const advice = continuationAdvice(input.next, blockerGuidance);
|
|
10
|
-
const relatedRunContext = relatedRunContextView(input.project, input.relatedRunContext, dbFlag);
|
|
11
|
-
return {
|
|
12
|
-
kind: 'sdd-continuation-plan',
|
|
13
|
-
project: input.project,
|
|
14
|
-
change: input.next.change,
|
|
15
|
-
status: input.next.status,
|
|
16
|
-
...(nextPhase === undefined ? {} : { nextPhase }),
|
|
17
|
-
...(input.cockpit.actionablePhase === undefined ? {} : { actionablePhase: input.cockpit.actionablePhase }),
|
|
18
|
-
recommendedAction: input.cockpit.recommendedAction,
|
|
19
|
-
reason: input.next.reason,
|
|
20
|
-
suggestedCommand,
|
|
21
|
-
inspectCommand,
|
|
22
|
-
advice,
|
|
23
|
-
blockerActions,
|
|
24
|
-
recommendedActions,
|
|
25
|
-
...(relatedRunContext === undefined ? {} : { relatedRunContext }),
|
|
26
|
-
...(input.explicitDatabasePath === undefined ? {} : { explicitDatabasePath: input.explicitDatabasePath }),
|
|
27
|
-
safety: [
|
|
28
|
-
'Read-only planner: this command does not execute providers or mutate SDD artifacts, runs, provider config, or openspec/ files.',
|
|
29
|
-
'Human acceptance remains explicit; artifact presence is not treated as acceptance.',
|
|
30
|
-
'Continue SDD phases in OpenCode conversation through VGXNESS MCP and hidden SDD subagents; the removed code runtime is not a CLI fallback.',
|
|
31
|
-
'No openspec/ files are created or written.',
|
|
32
|
-
],
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
function continuationAdvice(next, blockerGuidance) {
|
|
36
|
-
const advice = [];
|
|
37
|
-
if (next.nextPhase === 'proposal' || hasProposalMissingBlocker(next, blockerGuidance))
|
|
38
|
-
advice.push(proposalQuestionRoundAdvice(next.change));
|
|
39
|
-
if (next.nextPhase === 'apply-progress')
|
|
40
|
-
advice.push(reviewWorkloadGuardAdvice(next.change));
|
|
41
|
-
return advice;
|
|
42
|
-
}
|
|
43
|
-
function hasProposalMissingBlocker(next, blockerGuidance) {
|
|
44
|
-
return (blockerGuidance.some((blocker) => blocker.phase === 'proposal' && blocker.reason === 'missing') ||
|
|
45
|
-
next.missingArtifactTopicKeys.some((topicKey) => topicKey.endsWith('/proposal')));
|
|
46
|
-
}
|
|
47
|
-
function proposalQuestionRoundAdvice(change) {
|
|
48
|
-
return {
|
|
49
|
-
id: `sdd.${change}.advice.proposal-question-round`,
|
|
50
|
-
kind: 'proposal-question-round',
|
|
51
|
-
title: 'Run proposal question round when product clarity is missing',
|
|
52
|
-
message: 'Before drafting or accepting the proposal, run a product/business question round if clarity is still missing; this advice does not claim low clarity from metadata alone.',
|
|
53
|
-
readOnly: true,
|
|
54
|
-
advisoryOnly: true,
|
|
55
|
-
mutating: false,
|
|
56
|
-
providerExecution: false,
|
|
57
|
-
artifactMutation: false,
|
|
58
|
-
runCreation: false,
|
|
59
|
-
openspecWrite: false,
|
|
60
|
-
reason: 'Proposal work benefits from explicit business rules, product outcomes, edge cases, non-goals, and tradeoff decisions before proposal drafting or acceptance.',
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
function reviewWorkloadGuardAdvice(change) {
|
|
64
|
-
return {
|
|
65
|
-
id: `sdd.${change}.advice.review-workload-guard`,
|
|
66
|
-
kind: 'review-workload-guard',
|
|
67
|
-
title: 'Inspect Review Workload Forecast before apply',
|
|
68
|
-
message: 'Before apply, inspect tasks/Review Workload Forecast and ask for a delivery decision if risk is high, estimated changes exceed 400 lines, chained PRs are recommended, or a decision is pending.',
|
|
69
|
-
readOnly: true,
|
|
70
|
-
advisoryOnly: true,
|
|
71
|
-
mutating: false,
|
|
72
|
-
providerExecution: false,
|
|
73
|
-
artifactMutation: false,
|
|
74
|
-
runCreation: false,
|
|
75
|
-
openspecWrite: false,
|
|
76
|
-
reason: 'Apply work can exceed review budget; continuation advice must surface the guard without executing providers, mutating artifacts, creating runs, or writing openspec files.',
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
function continuationRecommendedActions(project, next, blockerGuidance) {
|
|
80
|
-
const actions = [inspectCockpitAction(project, next.change)];
|
|
81
|
-
if (next.status === 'runnable' && next.nextPhase !== undefined)
|
|
82
|
-
actions.push(draftPhaseAction(project, next.change, next.nextPhase, next.reason));
|
|
83
|
-
for (const blocker of blockerGuidance) {
|
|
84
|
-
const action = recommendedActionForBlocker(project, next.change, blocker);
|
|
85
|
-
if (action !== undefined)
|
|
86
|
-
actions.push(action);
|
|
87
|
-
}
|
|
88
|
-
return actions;
|
|
89
|
-
}
|
|
90
|
-
function inspectCockpitAction(project, change) {
|
|
91
|
-
return {
|
|
92
|
-
id: `sdd.${change}.inspect-cockpit`,
|
|
93
|
-
label: 'Inspect SDD cockpit',
|
|
94
|
-
title: 'Inspect SDD cockpit',
|
|
95
|
-
description: 'Read the current SDD cockpit/read model before choosing the next action.',
|
|
96
|
-
kind: 'inspect',
|
|
97
|
-
category: 'inspection',
|
|
98
|
-
targetTool: 'vgxness_sdd_cockpit',
|
|
99
|
-
suggestedArgs: { project, change },
|
|
100
|
-
readOnly: true,
|
|
101
|
-
mutating: false,
|
|
102
|
-
agentCallable: true,
|
|
103
|
-
humanOnly: false,
|
|
104
|
-
requiresHumanApproval: false,
|
|
105
|
-
requiresHumanConfirmation: false,
|
|
106
|
-
requiresPreflight: false,
|
|
107
|
-
requiresProviderWriteConsent: false,
|
|
108
|
-
reason: 'Continuation plans are advisory; cockpit inspection is a safe MCP-native way to refresh state.',
|
|
109
|
-
rationale: 'Keeps agents grounded in current artifact states without mutating SDD state or provider configuration.',
|
|
110
|
-
blockingPrerequisites: [],
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
function draftPhaseAction(project, change, phase, reason) {
|
|
114
|
-
return {
|
|
115
|
-
id: `sdd.${change}.${phase}.draft`,
|
|
116
|
-
label: `Prepare ${phase} draft through normal SDD phase flow`,
|
|
117
|
-
title: `Prepare ${phase} draft`,
|
|
118
|
-
description: 'The next SDD phase appears runnable; draft generation must still use the normal phase workflow and any required preflight gates. After a valid phase artifact is produced, save it as a draft immediately, then ask the human acceptance/continue question before advancing.',
|
|
119
|
-
kind: 'draft-phase',
|
|
120
|
-
category: 'sdd-phase',
|
|
121
|
-
phase,
|
|
122
|
-
targetTool: 'vgxness_sdd_get_readiness',
|
|
123
|
-
suggestedArgs: { project, change, phase },
|
|
124
|
-
readOnly: false,
|
|
125
|
-
mutating: true,
|
|
126
|
-
agentCallable: true,
|
|
127
|
-
humanOnly: false,
|
|
128
|
-
requiresHumanApproval: false,
|
|
129
|
-
requiresHumanConfirmation: false,
|
|
130
|
-
requiresPreflight: true,
|
|
131
|
-
requiresProviderWriteConsent: false,
|
|
132
|
-
reason,
|
|
133
|
-
rationale: 'This continuation tool is read-only, so it can recommend the next phase but cannot execute providers or save artifacts itself.',
|
|
134
|
-
blockingPrerequisites: [],
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
function recommendedActionForBlocker(project, change, blocker) {
|
|
138
|
-
if (blocker.reason === 'draft' || blocker.reason === 'legacy')
|
|
139
|
-
return humanAcceptAction(project, change, blocker);
|
|
140
|
-
if (blocker.reason === 'rejected')
|
|
141
|
-
return humanReopenAction(project, change, blocker);
|
|
142
|
-
if (blocker.reason === 'missing')
|
|
143
|
-
return draftPhaseAction(project, change, blocker.phase, blocker.action);
|
|
144
|
-
return inspectArtifactAction(project, change, blocker);
|
|
145
|
-
}
|
|
146
|
-
function humanAcceptAction(project, change, blocker) {
|
|
147
|
-
return {
|
|
148
|
-
id: `sdd.${change}.${blocker.phase}.accept-human`,
|
|
149
|
-
label: `Human review and acceptance required for ${blocker.phase}`,
|
|
150
|
-
title: `Accept ${blocker.phase} artifact as a human`,
|
|
151
|
-
description: 'A human must explicitly accept this artifact before it counts as accepted; agents must not accept on the human’s behalf.',
|
|
152
|
-
kind: 'accept-human',
|
|
153
|
-
category: 'human-governance',
|
|
154
|
-
phase: blocker.phase,
|
|
155
|
-
targetTool: 'vgxness_sdd_accept_artifact',
|
|
156
|
-
suggestedArgs: { project, change, phase: blocker.phase },
|
|
157
|
-
readOnly: false,
|
|
158
|
-
mutating: true,
|
|
159
|
-
agentCallable: false,
|
|
160
|
-
humanOnly: true,
|
|
161
|
-
requiresHumanApproval: true,
|
|
162
|
-
requiresHumanConfirmation: true,
|
|
163
|
-
requiresPreflight: true,
|
|
164
|
-
requiresProviderWriteConsent: false,
|
|
165
|
-
reason: blocker.action,
|
|
166
|
-
rationale: 'Human-only acceptance is an explicit governance event and cannot be inferred from draft content, readiness, or artifact presence.',
|
|
167
|
-
blockingPrerequisites: [blockingPrerequisite(blocker)],
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
function humanReopenAction(project, change, blocker) {
|
|
171
|
-
return {
|
|
172
|
-
id: `sdd.${change}.${blocker.phase}.reopen-human`,
|
|
173
|
-
label: `Human reopen required for rejected ${blocker.phase}`,
|
|
174
|
-
title: `Reopen ${blocker.phase} artifact as a human`,
|
|
175
|
-
description: 'A human may reopen the rejected artifact to draft; agents must not perform this governance action on the human’s behalf.',
|
|
176
|
-
kind: 'reopen-human',
|
|
177
|
-
category: 'human-governance',
|
|
178
|
-
phase: blocker.phase,
|
|
179
|
-
targetTool: 'vgxness_sdd_reopen_artifact',
|
|
180
|
-
suggestedArgs: { project, change, phase: blocker.phase },
|
|
181
|
-
readOnly: false,
|
|
182
|
-
mutating: true,
|
|
183
|
-
agentCallable: false,
|
|
184
|
-
humanOnly: true,
|
|
185
|
-
requiresHumanApproval: true,
|
|
186
|
-
requiresHumanConfirmation: true,
|
|
187
|
-
requiresPreflight: true,
|
|
188
|
-
requiresProviderWriteConsent: false,
|
|
189
|
-
reason: blocker.action,
|
|
190
|
-
rationale: 'Reopen is a human governance transition from rejected back to draft and remains outside this read-only planner.',
|
|
191
|
-
blockingPrerequisites: [blockingPrerequisite(blocker)],
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
function inspectArtifactAction(project, change, blocker) {
|
|
195
|
-
return {
|
|
196
|
-
id: `sdd.${change}.${blocker.phase}.inspect`,
|
|
197
|
-
label: `Inspect ${blocker.phase} artifact`,
|
|
198
|
-
title: `Inspect ${blocker.phase} artifact`,
|
|
199
|
-
description: 'Inspect the blocking artifact before deciding whether human governance or phase work is needed.',
|
|
200
|
-
kind: 'inspect',
|
|
201
|
-
category: 'inspection',
|
|
202
|
-
phase: blocker.phase,
|
|
203
|
-
targetTool: 'vgxness_sdd_get_artifact',
|
|
204
|
-
suggestedArgs: { project, change, phase: blocker.phase, payloadMode: 'compact' },
|
|
205
|
-
readOnly: true,
|
|
206
|
-
mutating: false,
|
|
207
|
-
agentCallable: true,
|
|
208
|
-
humanOnly: false,
|
|
209
|
-
requiresHumanApproval: false,
|
|
210
|
-
requiresHumanConfirmation: false,
|
|
211
|
-
requiresPreflight: false,
|
|
212
|
-
requiresProviderWriteConsent: false,
|
|
213
|
-
reason: blocker.action,
|
|
214
|
-
rationale: 'Artifact inspection is read-only and helps agents understand the blocker without changing SDD state.',
|
|
215
|
-
blockingPrerequisites: [blockingPrerequisite(blocker)],
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
function blockingPrerequisite(blocker) {
|
|
219
|
-
return {
|
|
220
|
-
phase: blocker.phase,
|
|
221
|
-
topicKey: blocker.topicKey,
|
|
222
|
-
reason: blocker.reason,
|
|
223
|
-
...(blocker.artifactId === undefined ? {} : { artifactId: blocker.artifactId }),
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
function relatedRunContextView(project, relatedRunContext, dbFlag) {
|
|
227
|
-
if (relatedRunContext === undefined)
|
|
228
|
-
return undefined;
|
|
229
|
-
return {
|
|
230
|
-
...relatedRunContext,
|
|
231
|
-
recommendation: 'Related interrupted run found by checkpoint changeId; inspect or resume it before starting duplicate SDD work. Advisory only.',
|
|
232
|
-
resumeCommand: `vgxness resume --project ${project} --run-id ${relatedRunContext.runId}${dbFlag}`,
|
|
233
|
-
};
|
|
234
|
-
}
|
|
235
|
-
function suggestedContinuationCommand(project, next, fallbackInspectCommand, dbFlag) {
|
|
236
|
-
if (next.status === 'runnable' && next.nextPhase !== undefined)
|
|
237
|
-
return runPhaseCommand(project, next.change, next.nextPhase, dbFlag);
|
|
238
|
-
return fallbackInspectCommand;
|
|
239
|
-
}
|
|
240
|
-
function continuationBlockerAction(project, change, blocker, dbFlag) {
|
|
241
|
-
return {
|
|
242
|
-
phase: blocker.phase,
|
|
243
|
-
topicKey: blocker.topicKey,
|
|
244
|
-
reason: blocker.reason,
|
|
245
|
-
action: blocker.action,
|
|
246
|
-
command: blockerCommand(project, change, blocker, dbFlag),
|
|
247
|
-
...(blocker.artifactId === undefined ? {} : { artifactId: blocker.artifactId }),
|
|
248
|
-
};
|
|
249
|
-
}
|
|
250
|
-
function blockerCommand(project, change, blocker, dbFlag) {
|
|
251
|
-
if (blocker.reason === 'missing')
|
|
252
|
-
return runPhaseCommand(project, change, blocker.phase, dbFlag);
|
|
253
|
-
if (blocker.reason === 'draft' || blocker.reason === 'legacy')
|
|
254
|
-
return `vgxness sdd accept-artifact --project ${project} --change ${change} --phase ${blocker.phase} --actor <human-id>${dbFlag}`;
|
|
255
|
-
if (blocker.reason === 'rejected')
|
|
256
|
-
return `vgxness sdd reopen-artifact --project ${project} --change ${change} --phase ${blocker.phase} --actor <human-id>${dbFlag}`;
|
|
257
|
-
return `vgxness sdd get-artifact --project ${project} --change ${change} --phase ${blocker.phase} --json${dbFlag}`;
|
|
258
|
-
}
|
|
259
|
-
function runPhaseCommand(project, change, phase, dbFlag) {
|
|
260
|
-
void phase;
|
|
261
|
-
return `vgxness sdd continue --project ${project} --change ${change}${dbFlag}`;
|
|
262
|
-
}
|
|
263
|
-
function continuationDbFlag(explicitDatabasePath) {
|
|
264
|
-
return explicitDatabasePath === undefined ? '' : ` --db ${explicitDatabasePath}`;
|
|
265
|
-
}
|
|
1
|
+
export * from '../application/sdd/sdd-continuation-plan.js';
|