create-agdf 0.14.4 → 0.20.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 +201 -0
- package/README.md +474 -11
- package/bin/create-agdf.js +2 -1
- package/generated/.agdf/control/README.md +29 -2
- package/generated/.agdf/control/templates/MASTER_BACKLOG.md +4 -2
- package/generated/.agdf/control/templates/RUN_STATE.md +1 -0
- package/generated/.agdf/control/templates/artefacts/BROWNFIELD_REVIEW.md +31 -0
- package/generated/.agdf/control/templates/artefacts/PRD.md +44 -5
- package/generated/.agdf/control/templates/artefacts/QA_REPORT.md +6 -0
- package/generated/.agdf/control/templates/artefacts/SD.md +31 -3
- package/generated/.agdf/control/templates/artefacts/TP.md +43 -8
- package/generated/.agdf/control/templates/artefacts/UR.md +17 -0
- package/generated/.agdf/control/templates/artefacts/UX_INTENT_DEFINITION.md +10 -0
- package/generated/.opencode/AGDF.md +17 -121
- package/generated/.opencode/README.md +7 -2
- package/generated/.opencode/agdf-agent-router.md +174 -0
- package/generated/.opencode/agdf-interaction-locales.json +2682 -495
- package/generated/.opencode/agdf-runtime-contract.md +17 -9
- package/generated/.opencode/contracts/closeout.md +7 -3
- package/generated/.opencode/contracts/control-scaffold.md +19 -6
- package/generated/.opencode/contracts/gate-artifact-preparation.md +132 -0
- package/generated/.opencode/contracts/gate-transition.md +56 -12
- package/generated/.opencode/contracts/interaction.md +331 -41
- package/generated/.opencode/contracts/modes.md +23 -11
- package/generated/.opencode/contracts/prd-definition.md +130 -0
- package/generated/.opencode/contracts/quality.md +85 -14
- package/generated/.opencode/contracts/request-activation.md +252 -0
- package/generated/.opencode/contracts/sd-definition.md +69 -0
- package/generated/.opencode/contracts/task-target-resolution.md +63 -9
- package/generated/.opencode/contracts/tp-definition.md +81 -0
- package/generated/.opencode/contracts/ur-definition.md +94 -0
- package/generated/.opencode/skills/agdf-brownfield-analysis/SKILL.md +70 -8
- package/generated/.opencode/skills/agdf-clean-implementation-review/SKILL.md +35 -3
- package/generated/.opencode/skills/agdf-code-review/SKILL.md +36 -2
- package/generated/.opencode/skills/agdf-delivery-closeout/SKILL.md +36 -4
- package/generated/.opencode/skills/agdf-delivery-path-search/SKILL.md +36 -4
- package/generated/.opencode/skills/agdf-gate-check/SKILL.md +68 -222
- package/generated/.opencode/skills/agdf-prd-definition/SKILL.md +51 -0
- package/generated/.opencode/skills/agdf-qa-gate/SKILL.md +78 -10
- package/generated/.opencode/skills/agdf-release-or/SKILL.md +44 -11
- package/generated/.opencode/skills/agdf-sd-definition/SKILL.md +51 -0
- package/generated/.opencode/skills/agdf-task-plan-review/SKILL.md +35 -3
- package/generated/.opencode/skills/agdf-tp-definition/SKILL.md +51 -0
- package/generated/.opencode/skills/agdf-ur-definition/SKILL.md +54 -0
- package/generated/.opencode/skills/agdf-ux-intent-definition/SKILL.md +100 -6
- package/generated/plugins/agdf/.claude-plugin/plugin.json +3 -2
- package/generated/plugins/agdf/.codex-plugin/plugin.json +3 -1
- package/generated/plugins/agdf/control/README.md +29 -2
- package/generated/plugins/agdf/control/templates/MASTER_BACKLOG.md +4 -2
- package/generated/plugins/agdf/control/templates/RUN_STATE.md +1 -0
- package/generated/plugins/agdf/control/templates/artefacts/BROWNFIELD_REVIEW.md +31 -0
- package/generated/plugins/agdf/control/templates/artefacts/PRD.md +44 -5
- package/generated/plugins/agdf/control/templates/artefacts/QA_REPORT.md +6 -0
- package/generated/plugins/agdf/control/templates/artefacts/SD.md +31 -3
- package/generated/plugins/agdf/control/templates/artefacts/TP.md +43 -8
- package/generated/plugins/agdf/control/templates/artefacts/UR.md +17 -0
- package/generated/plugins/agdf/control/templates/artefacts/UX_INTENT_DEFINITION.md +10 -0
- package/generated/plugins/agdf/hooks/hooks.json +2 -2
- package/generated/plugins/agdf/hooks/session-start.sh +5 -70
- package/generated/plugins/agdf/mcp/agdf-mcp-launch.js +7 -0
- package/generated/plugins/agdf/mcp/claude.mcp.json +11 -0
- package/generated/plugins/agdf/mcp/sdk/expected-sdk.json +21 -0
- package/generated/plugins/agdf/mcp/sdk/package-lock.json +47 -0
- package/generated/plugins/agdf/mcp/sdk/package.json +7 -0
- package/generated/plugins/agdf/mcp/server/NOTICE +10 -0
- package/generated/plugins/agdf/mcp/server/README.md +136 -0
- package/generated/plugins/agdf/mcp/server/bin/agdf-mcp.js +24 -0
- package/generated/plugins/agdf/mcp/server/package.json +59 -0
- package/generated/plugins/agdf/mcp/server/src/cockpit-resource.js +20 -0
- package/generated/plugins/agdf/mcp/server/src/generation-entry.js +86 -0
- package/generated/plugins/agdf/mcp/server/src/generation-protocol.js +44 -0
- package/generated/plugins/agdf/mcp/server/src/generation.js +211 -0
- package/generated/plugins/agdf/mcp/server/src/main.js +56 -0
- package/generated/plugins/agdf/mcp/server/src/server.js +187 -0
- package/generated/plugins/agdf/mcp/server/src/ui-capability.js +17 -0
- package/generated/plugins/agdf/mcp/server/src/worker-entry.js +39 -0
- package/generated/plugins/agdf/mcp/server/src/worker.js +134 -0
- package/generated/plugins/agdf/mcp/server/ui/cockpit.html +109 -0
- package/generated/plugins/agdf/mcp/server/ui/decision-manifest.json +8 -0
- package/generated/plugins/agdf/mcp/server/ui/decision.html +108 -0
- package/generated/plugins/agdf/mcp/server/ui/manifest.json +8 -0
- package/generated/plugins/agdf/mcp.json +28 -0
- package/generated/plugins/agdf/meta/agdf-agent-router.md +50 -8
- package/generated/plugins/agdf/meta/agdf-interaction-locales.json +2682 -495
- package/generated/plugins/agdf/meta/agdf-mcp-capability.json +158 -0
- package/generated/plugins/agdf/meta/agdf-plugin.definition.json +288 -42
- package/generated/plugins/agdf/meta/agdf-runtime-contract.md +17 -9
- package/generated/plugins/agdf/meta/contracts/closeout.md +6 -2
- package/generated/plugins/agdf/meta/contracts/control-scaffold.md +17 -4
- package/generated/plugins/agdf/meta/contracts/gate-artifact-preparation.md +132 -0
- package/generated/plugins/agdf/meta/contracts/gate-transition.md +48 -4
- package/generated/plugins/agdf/meta/contracts/interaction.md +328 -38
- package/generated/plugins/agdf/meta/contracts/modes.md +23 -11
- package/generated/plugins/agdf/meta/contracts/prd-definition.md +130 -0
- package/generated/plugins/agdf/meta/contracts/quality.md +77 -6
- package/generated/plugins/agdf/meta/contracts/request-activation.md +252 -0
- package/generated/plugins/agdf/meta/contracts/sd-definition.md +69 -0
- package/generated/plugins/agdf/meta/contracts/task-target-resolution.md +63 -9
- package/generated/plugins/agdf/meta/contracts/tp-definition.md +81 -0
- package/generated/plugins/agdf/meta/contracts/ur-definition.md +94 -0
- package/generated/plugins/agdf/meta/copilot-payload-baseline.json +3 -3
- package/generated/plugins/agdf/meta/distribution-profile-history.json +14 -0
- package/generated/plugins/agdf/meta/schemas/agent-plugins/1.0.0/mcp.schema.json +120 -0
- package/generated/plugins/agdf/meta/schemas/agent-plugins/1.0.0/plugin.schema.json +65 -0
- package/generated/plugins/agdf/meta/schemas/agent-plugins/1.0.0/provenance.json +19 -0
- package/generated/plugins/agdf/runtime/agdf-local.js +5 -4
- package/generated/plugins/agdf/runtime/agdf-session-check.js +127 -50
- package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/agdf-interaction-locales.json +2682 -495
- package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/agdf-plugin.definition.json +288 -42
- package/generated/plugins/{copilot/agdf/copilot-skills → agdf/runtime/create-agdf/generated/plugins/agdf/meta}/contracts/closeout.md +7 -3
- package/generated/plugins/{copilot/agdf/copilot-skills → agdf/runtime/create-agdf/generated/plugins/agdf/meta}/contracts/control-scaffold.md +19 -6
- package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/gate-artifact-preparation.md +132 -0
- package/generated/plugins/{copilot/agdf/copilot-skills → agdf/runtime/create-agdf/generated/plugins/agdf/meta}/contracts/gate-transition.md +56 -12
- package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/interaction.md +777 -0
- package/generated/plugins/{copilot/agdf/copilot-skills → agdf/runtime/create-agdf/generated/plugins/agdf/meta}/contracts/modes.md +23 -11
- package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/prd-definition.md +130 -0
- package/generated/plugins/{copilot/agdf/copilot-skills → agdf/runtime/create-agdf/generated/plugins/agdf/meta}/contracts/quality.md +85 -14
- package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/request-activation.md +252 -0
- package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/sd-definition.md +69 -0
- package/generated/plugins/{copilot/agdf/copilot-skills → agdf/runtime/create-agdf/generated/plugins/agdf/meta}/contracts/task-target-resolution.md +63 -9
- package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/tp-definition.md +81 -0
- package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/ur-definition.md +94 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/cli/command-registry.js +251 -16
- package/generated/plugins/agdf/runtime/create-agdf/lib/cli/contract-command.js +24 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/cli/control-maintenance-command.js +44 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/cli/delivery-path-search-command.js +11 -11
- package/generated/plugins/agdf/runtime/create-agdf/lib/cli/parse-args.js +254 -5
- package/generated/plugins/agdf/runtime/create-agdf/lib/cli/runtime-context.js +14 -37
- package/generated/plugins/agdf/runtime/create-agdf/lib/cli/validation-handlers.js +205 -7
- package/generated/plugins/agdf/runtime/create-agdf/lib/control-command.js +4 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/control-evaluation/git-observation.js +22 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/control-maintenance/interaction.js +28 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/control-maintenance/repair.js +4 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/control-maintenance/service.js +3 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/control-maintenance/startup.js +25 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/control-state/run-recovery.js +5 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/delivery-path-search/evaluators/claude.js +3 -3
- package/generated/plugins/agdf/runtime/create-agdf/lib/delivery-path-search/evaluators/codex.js +3 -3
- package/generated/plugins/agdf/runtime/create-agdf/lib/delivery-path-search/evaluators/opencode.js +4 -4
- package/generated/plugins/agdf/runtime/create-agdf/lib/delivery-path-search/evaluators/protocol.js +1 -1
- package/generated/plugins/agdf/runtime/create-agdf/lib/delivery-path-search/generators/claude.js +3 -3
- package/generated/plugins/agdf/runtime/create-agdf/lib/delivery-path-search/generators/codex.js +3 -3
- package/generated/plugins/agdf/runtime/create-agdf/lib/delivery-path-search/generators/protocol.js +1 -1
- package/generated/plugins/agdf/runtime/create-agdf/lib/delivery-path-search/surfaces/capabilities.js +1 -1
- package/generated/plugins/agdf/runtime/create-agdf/lib/delivery-path-search/transports/read-only-guard.js +2 -1
- package/generated/plugins/agdf/runtime/create-agdf/lib/host-adapters/claude/session-command.js +2 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/host-adapters/codex/session-command.js +7 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/host-adapters/copilot/session-command.js +1 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/host-adapters/opencode/session-command.js +1 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/host-adapters/session-command.js +11 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/host-command.js +112 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/mcp-dispatch-runtime.js +360 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/mcp-lifecycle/facade-entry.js +26 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/mcp-lifecycle/facade-owner-entry.js +34 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/mcp-lifecycle/package.js +527 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/mcp-lifecycle/plugin-runtime.js +420 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/npm-invocation.js +27 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/repository-context.js +87 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/runtime/control-command-service.js +12 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/runtime/control-context.js +11 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/runtime/git-history.js +7 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/runtime/git-originals.js +36 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/runtime/local-validator.js +39 -5
- package/generated/plugins/agdf/runtime/create-agdf/lib/runtime/plugin-provenance.js +1 -298
- package/generated/plugins/agdf/runtime/create-agdf/lib/runtime/runtime-probe.js +61 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/runtime/validator-application.js +3 -3
- package/generated/plugins/agdf/runtime/create-agdf/lib/runtime-check-consent/contract.js +9 -8
- package/generated/plugins/agdf/runtime/create-agdf/lib/skill-dispatch/binding.js +9 -0
- package/generated/plugins/agdf/runtime/create-agdf/package.json +6 -2
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/acceptance-criteria.js +61 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/backlog-vocabulary.d.ts +3 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/backlog-vocabulary.js +15 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/closeout-readiness.js +103 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/decision-content-readiness.js +131 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/definition-sources.js +46 -0
- package/generated/plugins/agdf/runtime/create-agdf/{lib → runtime/core/lib}/control-evaluation/delivery-map.js +31 -37
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/delivery-relationships.js +21 -0
- package/{lib → generated/plugins/agdf/runtime/create-agdf/runtime/core/lib}/control-evaluation/doctor.js +85 -17
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/gate-check.js +827 -0
- package/generated/plugins/{copilot/agdf/runtime/create-agdf → agdf/runtime/create-agdf/runtime/core}/lib/control-evaluation/gate-policy.js +141 -10
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/markdown-table.js +40 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/next-action.js +32 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/normalized-gaps.js +105 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/prd-readiness.js +51 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/qa-follow-up.js +83 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/report-decision.js +237 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/run-state-policy.js +51 -0
- package/{lib → generated/plugins/agdf/runtime/create-agdf/runtime/core/lib}/control-evaluation/run-state.js +108 -74
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/run-step-policy.js +20 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/run-work-summary.js +109 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/sd-readiness.js +56 -0
- package/generated/plugins/{copilot/agdf/runtime/create-agdf → agdf/runtime/create-agdf/runtime/core}/lib/control-evaluation/shared.js +5 -2
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/tp-planning.js +118 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/traceability-readiness.js +212 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/ur-readiness.js +47 -0
- package/{lib → generated/plugins/agdf/runtime/create-agdf/runtime/core/lib}/control-evaluation/verified-change.js +10 -30
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/artifact-readiness.js +122 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/cockpit-backlog.js +135 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/cockpit-context.js +97 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/cockpit-contract.js +86 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/cockpit-list.d.ts +17 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/cockpit-list.js +45 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/cockpit-session.js +217 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/cockpit.js +388 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/contract.js +299 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/decision-session.js +243 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/selection.js +35 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/service.js +319 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-maintenance/compatibility.js +149 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-maintenance/contract.js +41 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-maintenance/interaction.js +57 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-maintenance/migration.js +85 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-maintenance/presentation.js +122 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-maintenance/repair.js +226 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-maintenance/service.js +38 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-read/cockpit-pool.js +105 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-read/cockpit-worker.js +33 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-read/control-changes.js +33 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-read/fs.js +55 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-read/snapshot.js +378 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-read-boundary.js +22 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/approval-command-contract.js +73 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/approval-command.js +137 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/approval-operations.js +95 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/artefact-binding-proof.js +90 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/artefact-bindings.js +94 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/backlog-summary-shape.d.ts +4 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/backlog-summary-shape.js +40 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/backlog-summary.js +67 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/contained-file.js +56 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/control-configuration.js +19 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/decision-action-contract.js +32 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/decision-action-service.js +55 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/decision-material-contract.js +12 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/evidence-bindings.js +132 -0
- package/generated/plugins/agdf/runtime/create-agdf/{lib → runtime/core/lib}/control-state/index.js +2 -0
- package/generated/plugins/{copilot/agdf/runtime/create-agdf → agdf/runtime/create-agdf/runtime/core}/lib/control-state/legacy-migration.js +5 -31
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/legacy-projection-reader.js +38 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/presentation-decision.js +138 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/preview-render.js +130 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/preview-review.js +136 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/preview-snapshot.js +108 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/qa-deviation-acceptance.js +82 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/recording-formats.js +29 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-artefact-recording.js +81 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-backlog-writer.js +80 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-backlog.js +90 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-command-contract.js +143 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-command-service.js +174 -0
- package/{lib → generated/plugins/agdf/runtime/create-agdf/runtime/core/lib}/control-state/run-identity.js +1 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-operation-identity.js +31 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-operation-proof.js +103 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-operation-status.js +59 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-operations.js +80 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-owned-outputs.js +59 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-presentation-envelope.js +36 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-presentation-render.js +443 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-presentation.js +348 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-recording.js +273 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-recovery.js +296 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-relationship-correction.js +74 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-revision-boundary.js +44 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-revision-history.js +184 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-revision.js +458 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-seal-compute.js +141 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-seal.js +26 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-source-revisions.js +221 -0
- package/generated/plugins/{copilot/agdf/runtime/create-agdf/lib/control-state/run-state-parser.js → agdf/runtime/create-agdf/runtime/core/lib/control-state/run-state-document.js} +17 -47
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-state-edits.js +170 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-state-parser.js +106 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-state-reader.js +57 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-state-repository.js +201 -0
- package/generated/plugins/{copilot/agdf/runtime/create-agdf → agdf/runtime/create-agdf/runtime/core}/lib/control-state/run-state-resolver.js +1 -1
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-state-writer.js +484 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-step-pending.js +15 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-step-transaction.js +359 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-steps.js +571 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-store-inspection.js +65 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-text.js +8 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/delivery-continuation/service.js +67 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/index.js +14 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/interaction-catalog-validation.js +26 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/interaction-catalog.d.ts +2 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/interaction-catalog.js +98 -0
- package/generated/plugins/agdf/runtime/create-agdf/{lib → runtime/core/lib}/interaction-presentation.js +437 -33
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/mcp-resource-contract.js +4 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/mcp-tool-errors.js +176 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/repository-context-reader.js +87 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/resources/artefact-templates.js +72 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/resources/binding.js +26 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/resources/context.js +70 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/resources/contracts.js +23 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/runtime/host-installation.js +200 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/runtime/plugin-provenance.js +496 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/binding.js +66 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/compact-continuation.js +76 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/contract.js +430 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/delivery-intake.js +80 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/delivery-run-assignment.js +74 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/prd-definition.js +39 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/sd-definition.js +39 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/service.js +833 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/tp-definition.js +41 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/lib/task-target-resolution.js +202 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/entities/LICENSE +11 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/entities/decode.js +3 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/commonjs/decode.js +511 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/commonjs/encode.js +73 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/commonjs/escape.js +121 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/commonjs/generated/decode-data-html.js +10 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +10 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/commonjs/generated/encode-html.js +13 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/commonjs/index.js +131 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/commonjs/package.json +3 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/esm/decode-codepoint.js +72 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/esm/decode.js +497 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/esm/encode.js +69 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/esm/escape.js +117 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/esm/generated/decode-data-html.js +7 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/esm/generated/decode-data-xml.js +7 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/esm/generated/encode-html.js +10 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/esm/index.js +107 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/esm/package.json +3 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/entities/escape.js +3 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/entities/package.json +118 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/entities/src/generated/.eslintrc.json +10 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/LICENSE +20 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/async/index.browser.cjs +43 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/async/index.browser.js +43 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/async/index.cjs +47 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/async/index.js +47 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/async/index.native.js +38 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/async/package.json +12 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/bin/nanoid.cjs +55 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/index.browser.cjs +45 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/index.browser.js +45 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/index.cjs +63 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/index.js +63 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/nanoid.js +1 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/non-secure/index.cjs +24 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/non-secure/index.js +24 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/non-secure/package.json +6 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/package.json +89 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/url-alphabet/index.cjs +4 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/url-alphabet/index.js +4 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/url-alphabet/package.json +6 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/LICENSE +19 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/common/doctype.js +118 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/common/error-codes.js +66 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/common/foreign-content.js +237 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/common/html.js +528 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/common/token.js +24 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/common/unicode.js +70 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/index.js +54 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/package.json +1 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/parser/formatting-element-list.js +114 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/parser/index.js +3240 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/parser/open-element-stack.js +328 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/serializer/index.js +172 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/tokenizer/index.js +2714 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/tokenizer/preprocessor.js +200 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/tree-adapters/default.js +176 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/tree-adapters/interface.js +2 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/common/doctype.js +114 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/common/error-codes.js +63 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/common/foreign-content.js +228 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/common/html.js +523 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/common/token.js +20 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/common/unicode.js +62 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/index.js +42 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/parser/formatting-element-list.js +110 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/parser/index.js +3245 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/parser/open-element-stack.js +324 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/serializer/index.js +168 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/tokenizer/index.js +2710 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/tokenizer/preprocessor.js +196 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/tree-adapters/default.js +173 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/tree-adapters/interface.js +1 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/package.json +50 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/picocolors/LICENSE +15 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/picocolors/package.json +25 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/picocolors/picocolors.browser.js +4 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/picocolors/picocolors.js +75 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/LICENSE +20 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/at-rule.js +25 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/comment.js +13 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/container.js +494 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/css-syntax-error.js +133 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/declaration.js +24 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/document.js +33 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/fromJSON.js +107 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/input.js +282 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/lazy-result.js +626 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/list.js +79 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/map-generator.js +383 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/no-work-result.js +137 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/node.js +494 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/parse.js +42 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/parser.js +626 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/postcss.js +101 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/postcss.mjs +30 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/previous-map.js +176 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/processor.js +67 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/result.js +42 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/root.js +76 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/rule.js +27 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/stringifier.js +457 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/stringify.js +69 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/symbols.js +5 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/terminal-highlight.js +70 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/tokenize.js +270 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/warn-once.js +13 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/warning.js +47 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/package.json +88 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/source-map-js/LICENSE +28 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/source-map-js/lib/array-set.js +121 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/source-map-js/lib/base64.js +67 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/source-map-js/lib/quick-sort.js +141 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/source-map-js/lib/source-map-consumer.js +1236 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/source-map-js/lib/source-map-generator.js +446 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/source-map-js/lib/source-node.js +420 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/source-map-js/lib/util.js +594 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/source-map-js/package.json +71 -0
- package/generated/plugins/agdf/runtime/create-agdf/runtime/core/node_modules/source-map-js/source-map.js +8 -0
- package/generated/plugins/agdf/runtime/runtime-manifest.json +2 -2
- package/generated/plugins/agdf/scripts/agent-skills-conformance.mjs +9 -5
- package/generated/plugins/agdf/scripts/check-runtime-integrity.mjs +1123 -182
- package/generated/plugins/agdf/scripts/instruction-footprint.mjs +945 -0
- package/generated/plugins/agdf/skills/brownfield-analysis/SKILL.md +67 -5
- package/generated/plugins/agdf/skills/clean-implementation-review/SKILL.md +34 -2
- package/generated/plugins/agdf/skills/code-review/SKILL.md +36 -2
- package/generated/plugins/agdf/skills/delivery-closeout/SKILL.md +34 -2
- package/generated/plugins/agdf/skills/delivery-path-search/SKILL.md +34 -2
- package/generated/plugins/agdf/skills/gate-check/SKILL.md +68 -222
- package/generated/plugins/agdf/skills/prd-definition/SKILL.md +51 -0
- package/generated/plugins/agdf/skills/prd-definition/help.md +23 -0
- package/generated/plugins/agdf/skills/qa-gate/SKILL.md +73 -5
- package/generated/plugins/agdf/skills/release-or/SKILL.md +36 -3
- package/generated/plugins/agdf/skills/sd-definition/SKILL.md +51 -0
- package/generated/plugins/agdf/skills/sd-definition/help.md +17 -0
- package/generated/plugins/agdf/skills/task-plan-review/SKILL.md +34 -2
- package/generated/plugins/agdf/skills/tp-definition/SKILL.md +51 -0
- package/generated/plugins/agdf/skills/tp-definition/help.md +17 -0
- package/generated/plugins/agdf/skills/ur-definition/SKILL.md +54 -0
- package/generated/plugins/agdf/skills/ur-definition/help.md +19 -0
- package/generated/plugins/agdf/skills/ux-intent-definition/SKILL.md +100 -6
- package/generated/plugins/agdf/skills/ux-intent-definition/help.md +3 -0
- package/generated/plugins/agdf/submission/openai/availability.md +1 -1
- package/generated/plugins/agdf/submission/openai/capability-matrix.json +1 -1
- package/generated/plugins/agdf/submission/openai/release-notes.md +1 -1
- package/generated/plugins/agdf/submission/openai/reviewer-cases.json +1 -1
- package/generated/plugins/copilot/agdf/.agdf-payload-inventory.json +3314 -409
- package/generated/plugins/copilot/agdf/control/README.md +125 -0
- package/generated/plugins/copilot/agdf/control/templates/AGDF_RUN.md +139 -0
- package/generated/plugins/copilot/agdf/control/templates/AGENT_QUALITY_CONTRACTS.json +126 -0
- package/generated/plugins/copilot/agdf/control/templates/CONTEXT_GRAPH.md +51 -0
- package/generated/plugins/copilot/agdf/control/templates/MASTER_BACKLOG.md +39 -0
- package/generated/plugins/copilot/agdf/control/templates/RUN_STATE.md +93 -0
- package/generated/plugins/copilot/agdf/control/templates/SOT_REGISTRY.md +25 -0
- package/generated/plugins/copilot/agdf/control/templates/artefacts/BROWNFIELD_REVIEW.md +135 -0
- package/generated/plugins/copilot/agdf/control/templates/artefacts/OR.md +125 -0
- package/generated/plugins/copilot/agdf/control/templates/artefacts/PRD.md +113 -0
- package/generated/plugins/copilot/agdf/control/templates/artefacts/QA_REPORT.md +44 -0
- package/generated/plugins/copilot/agdf/control/templates/artefacts/SD.md +70 -0
- package/generated/plugins/copilot/agdf/control/templates/artefacts/TP.md +71 -0
- package/generated/plugins/copilot/agdf/control/templates/artefacts/UR.md +58 -0
- package/generated/plugins/copilot/agdf/control/templates/artefacts/UX_INTENT_DEFINITION.md +61 -0
- package/generated/plugins/copilot/agdf/control/templates/artefacts/VERIFIED_CHANGE.md +58 -0
- package/generated/plugins/copilot/agdf/mcp/agdf-mcp-launch.js +7 -0
- package/generated/plugins/copilot/agdf/mcp/sdk/expected-sdk.json +21 -0
- package/generated/plugins/copilot/agdf/mcp/sdk/package-lock.json +47 -0
- package/generated/plugins/copilot/agdf/mcp/sdk/package.json +7 -0
- package/generated/plugins/copilot/agdf/mcp/server/NOTICE +10 -0
- package/generated/plugins/copilot/agdf/mcp/server/README.md +136 -0
- package/generated/plugins/copilot/agdf/mcp/server/bin/agdf-mcp.js +24 -0
- package/generated/plugins/copilot/agdf/mcp/server/package.json +59 -0
- package/generated/plugins/copilot/agdf/mcp/server/src/cockpit-resource.js +20 -0
- package/generated/plugins/copilot/agdf/mcp/server/src/generation-entry.js +86 -0
- package/generated/plugins/copilot/agdf/mcp/server/src/generation-protocol.js +44 -0
- package/generated/plugins/copilot/agdf/mcp/server/src/generation.js +211 -0
- package/generated/plugins/copilot/agdf/mcp/server/src/main.js +56 -0
- package/generated/plugins/copilot/agdf/mcp/server/src/server.js +187 -0
- package/generated/plugins/copilot/agdf/mcp/server/src/ui-capability.js +17 -0
- package/generated/plugins/copilot/agdf/mcp/server/src/worker-entry.js +39 -0
- package/generated/plugins/copilot/agdf/mcp/server/src/worker.js +134 -0
- package/generated/plugins/copilot/agdf/mcp.json +16 -0
- package/generated/plugins/copilot/agdf/meta/agdf-agent-router.md +50 -8
- package/generated/plugins/copilot/agdf/meta/agdf-plugin.definition.json +288 -42
- package/generated/plugins/copilot/agdf/meta/agdf-runtime-contract.md +17 -9
- package/generated/plugins/copilot/agdf/meta/distribution-profile-history.json +14 -0
- package/generated/plugins/copilot/agdf/plugin.json +3 -5
- package/generated/plugins/copilot/agdf/runtime/agdf-local.js +5 -4
- package/generated/plugins/copilot/agdf/runtime/agdf-session-check.js +110 -47
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/agdf-interaction-locales.json +2682 -495
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/agdf-plugin.definition.json +288 -42
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/closeout.md +82 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/context-graph.md +48 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/control-scaffold.md +145 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/gate-artifact-preparation.md +132 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/gate-transition.md +209 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/interaction.md +777 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/modes.md +195 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/prd-definition.md +130 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/quality.md +228 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/request-activation.md +252 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/sd-definition.md +69 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/task-target-resolution.md +156 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/tp-definition.md +81 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/contracts/ur-definition.md +94 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/cli/command-registry.js +251 -16
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/cli/contract-command.js +24 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/cli/control-maintenance-command.js +44 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/cli/delivery-path-search-command.js +11 -11
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/cli/parse-args.js +254 -5
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/cli/runtime-context.js +14 -37
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/cli/validation-handlers.js +205 -7
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-command.js +4 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/git-observation.js +22 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-maintenance/interaction.js +28 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-maintenance/repair.js +4 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-maintenance/service.js +3 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-maintenance/startup.js +25 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/run-recovery.js +5 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/evaluators/claude.js +3 -3
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/evaluators/codex.js +3 -3
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/evaluators/opencode.js +4 -4
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/evaluators/protocol.js +1 -1
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/generators/claude.js +3 -3
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/generators/codex.js +3 -3
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/generators/protocol.js +1 -1
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/surfaces/capabilities.js +1 -1
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/transports/read-only-guard.js +2 -1
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/host-adapters/claude/session-command.js +2 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/host-adapters/codex/session-command.js +7 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/host-adapters/copilot/session-command.js +1 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/host-adapters/opencode/session-command.js +1 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/host-adapters/session-command.js +11 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/host-command.js +112 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/mcp-dispatch-runtime.js +360 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/mcp-lifecycle/facade-entry.js +26 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/mcp-lifecycle/facade-owner-entry.js +34 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/mcp-lifecycle/package.js +527 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/mcp-lifecycle/plugin-runtime.js +420 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/npm-invocation.js +27 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/repository-context.js +87 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/runtime/control-command-service.js +12 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/runtime/control-context.js +11 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/runtime/git-history.js +7 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/runtime/git-originals.js +36 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/runtime/local-validator.js +39 -5
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/runtime/plugin-provenance.js +1 -298
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/runtime/runtime-probe.js +61 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/runtime/validator-application.js +3 -3
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/runtime-check-consent/contract.js +9 -8
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/skill-dispatch/binding.js +9 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/package.json +6 -2
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/acceptance-criteria.js +61 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/backlog-vocabulary.d.ts +3 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/backlog-vocabulary.js +15 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/closeout-readiness.js +103 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/decision-content-readiness.js +131 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/definition-sources.js +46 -0
- package/{lib → generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib}/control-evaluation/delivery-map.js +31 -37
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/delivery-relationships.js +21 -0
- package/generated/plugins/{agdf/runtime/create-agdf → copilot/agdf/runtime/create-agdf/runtime/core}/lib/control-evaluation/doctor.js +85 -17
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/gate-check.js +827 -0
- package/{lib → generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib}/control-evaluation/gate-policy.js +141 -10
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/markdown-table.js +40 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/next-action.js +32 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/normalized-gaps.js +105 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/prd-readiness.js +51 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/qa-follow-up.js +83 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/report-decision.js +237 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/run-state-policy.js +51 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/{lib → runtime/core/lib}/control-evaluation/run-state.js +108 -74
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/run-step-policy.js +20 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/run-work-summary.js +109 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/sd-readiness.js +56 -0
- package/{lib → generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib}/control-evaluation/shared.js +5 -2
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/tp-planning.js +118 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/traceability-readiness.js +212 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-evaluation/ur-readiness.js +47 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/{lib → runtime/core/lib}/control-evaluation/verified-change.js +10 -30
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/artifact-readiness.js +122 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/contract.js +299 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/selection.js +35 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-inspect/service.js +319 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-maintenance/compatibility.js +149 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-maintenance/contract.js +41 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-maintenance/interaction.js +57 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-maintenance/migration.js +85 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-maintenance/presentation.js +122 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-maintenance/repair.js +226 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-maintenance/service.js +38 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-read/fs.js +55 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-read/snapshot.js +378 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-read-boundary.js +22 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/approval-command-contract.js +73 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/approval-command.js +137 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/approval-operations.js +95 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/artefact-binding-proof.js +90 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/artefact-bindings.js +94 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/backlog-summary-shape.d.ts +4 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/backlog-summary-shape.js +40 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/backlog-summary.js +67 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/contained-file.js +56 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/control-configuration.js +19 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/decision-material-contract.js +12 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/evidence-bindings.js +132 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/{lib → runtime/core/lib}/control-state/index.js +2 -0
- package/generated/plugins/{agdf/runtime/create-agdf → copilot/agdf/runtime/create-agdf/runtime/core}/lib/control-state/legacy-migration.js +5 -31
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/legacy-projection-reader.js +38 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/presentation-decision.js +138 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/preview-render.js +130 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/preview-review.js +136 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/preview-snapshot.js +108 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/qa-deviation-acceptance.js +82 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/recording-formats.js +29 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-artefact-recording.js +81 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-backlog-writer.js +80 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-backlog.js +90 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-command-contract.js +143 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-command-service.js +174 -0
- package/generated/plugins/{agdf/runtime/create-agdf → copilot/agdf/runtime/create-agdf/runtime/core}/lib/control-state/run-identity.js +1 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-operation-identity.js +31 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-operation-proof.js +103 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-operation-status.js +59 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-operations.js +80 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-owned-outputs.js +59 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-presentation-envelope.js +36 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-presentation-render.js +443 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-presentation.js +348 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-recording.js +273 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-recovery.js +296 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-relationship-correction.js +74 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-revision-boundary.js +44 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-revision-history.js +184 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-revision.js +458 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-seal-compute.js +141 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-seal.js +26 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-source-revisions.js +221 -0
- package/{lib/control-state/run-state-parser.js → generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-state-document.js} +17 -47
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-state-edits.js +170 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-state-parser.js +106 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-state-reader.js +57 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-state-repository.js +201 -0
- package/generated/plugins/{agdf/runtime/create-agdf → copilot/agdf/runtime/create-agdf/runtime/core}/lib/control-state/run-state-resolver.js +1 -1
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-state-writer.js +484 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-step-pending.js +15 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-step-transaction.js +359 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-steps.js +571 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-store-inspection.js +65 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/control-state/run-text.js +8 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/delivery-continuation/service.js +67 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/fs-swap.js +26 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/index.js +14 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/interaction-catalog-validation.js +26 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/interaction-catalog.js +98 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/{lib → runtime/core/lib}/interaction-presentation.js +437 -33
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/mcp-resource-contract.js +4 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/mcp-tool-errors.js +176 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/repository-context-reader.js +87 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/resources/artefact-templates.js +72 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/resources/binding.js +27 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/resources/context.js +70 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/resources/contracts.js +23 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/runtime/distribution-profile-history.js +173 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/runtime/plugin-provenance.js +496 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/binding.js +66 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/compact-continuation.js +76 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/contract.js +430 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/delivery-intake.js +80 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/delivery-run-assignment.js +74 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/prd-definition.js +39 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/sd-definition.js +39 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/service.js +833 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/skill-dispatch/tp-definition.js +41 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/lib/task-target-resolution.js +202 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/entities/LICENSE +11 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/entities/decode.js +3 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/commonjs/decode.js +511 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/commonjs/encode.js +73 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/commonjs/escape.js +121 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/commonjs/generated/decode-data-html.js +10 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +10 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/commonjs/generated/encode-html.js +13 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/commonjs/index.js +131 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/commonjs/package.json +3 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/esm/decode-codepoint.js +72 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/esm/decode.js +497 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/esm/encode.js +69 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/esm/escape.js +117 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/esm/generated/decode-data-html.js +7 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/esm/generated/decode-data-xml.js +7 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/esm/generated/encode-html.js +10 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/esm/index.js +107 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/entities/dist/esm/package.json +3 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/entities/escape.js +3 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/entities/package.json +118 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/entities/src/generated/.eslintrc.json +10 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/LICENSE +20 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/async/index.browser.cjs +43 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/async/index.browser.js +43 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/async/index.cjs +47 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/async/index.js +47 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/async/index.native.js +38 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/async/package.json +12 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/bin/nanoid.cjs +55 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/index.browser.cjs +45 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/index.browser.js +45 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/index.cjs +63 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/index.js +63 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/nanoid.js +1 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/non-secure/index.cjs +24 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/non-secure/index.js +24 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/non-secure/package.json +6 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/package.json +89 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/url-alphabet/index.cjs +4 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/url-alphabet/index.js +4 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/nanoid/url-alphabet/package.json +6 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/LICENSE +19 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/common/doctype.js +118 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/common/error-codes.js +66 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/common/foreign-content.js +237 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/common/html.js +528 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/common/token.js +24 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/common/unicode.js +70 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/index.js +54 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/package.json +1 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/parser/formatting-element-list.js +114 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/parser/index.js +3240 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/parser/open-element-stack.js +328 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/serializer/index.js +172 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/tokenizer/index.js +2714 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/tokenizer/preprocessor.js +200 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/tree-adapters/default.js +176 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/cjs/tree-adapters/interface.js +2 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/common/doctype.js +114 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/common/error-codes.js +63 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/common/foreign-content.js +228 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/common/html.js +523 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/common/token.js +20 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/common/unicode.js +62 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/index.js +42 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/parser/formatting-element-list.js +110 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/parser/index.js +3245 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/parser/open-element-stack.js +324 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/serializer/index.js +168 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/tokenizer/index.js +2710 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/tokenizer/preprocessor.js +196 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/tree-adapters/default.js +173 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/dist/tree-adapters/interface.js +1 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/parse5/package.json +50 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/picocolors/LICENSE +15 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/picocolors/package.json +25 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/picocolors/picocolors.browser.js +4 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/picocolors/picocolors.js +75 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/LICENSE +20 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/at-rule.js +25 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/comment.js +13 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/container.js +494 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/css-syntax-error.js +133 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/declaration.js +24 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/document.js +33 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/fromJSON.js +107 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/input.js +282 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/lazy-result.js +626 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/list.js +79 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/map-generator.js +383 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/no-work-result.js +137 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/node.js +494 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/parse.js +42 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/parser.js +626 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/postcss.js +101 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/postcss.mjs +30 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/previous-map.js +176 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/processor.js +67 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/result.js +42 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/root.js +76 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/rule.js +27 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/stringifier.js +457 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/stringify.js +69 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/symbols.js +5 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/terminal-highlight.js +70 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/tokenize.js +270 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/warn-once.js +13 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/lib/warning.js +47 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/postcss/package.json +88 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/source-map-js/LICENSE +28 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/source-map-js/lib/array-set.js +121 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/source-map-js/lib/base64.js +67 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/source-map-js/lib/quick-sort.js +141 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/source-map-js/lib/source-map-consumer.js +1236 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/source-map-js/lib/source-map-generator.js +446 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/source-map-js/lib/source-node.js +420 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/source-map-js/lib/util.js +594 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/source-map-js/package.json +71 -0
- package/generated/plugins/copilot/agdf/runtime/create-agdf/runtime/core/node_modules/source-map-js/source-map.js +8 -0
- package/generated/plugins/copilot/agdf/runtime/runtime-manifest.json +2 -2
- package/generated/plugins/copilot/agdf/{copilot-skills → skills}/agdf-brownfield-analysis/SKILL.md +70 -8
- package/generated/plugins/copilot/agdf/{copilot-skills → skills}/agdf-clean-implementation-review/SKILL.md +35 -3
- package/generated/plugins/copilot/agdf/{copilot-skills → skills}/agdf-code-review/SKILL.md +36 -2
- package/generated/plugins/copilot/agdf/{copilot-skills → skills}/agdf-delivery-closeout/SKILL.md +36 -4
- package/generated/plugins/copilot/agdf/{copilot-skills → skills}/agdf-delivery-path-search/SKILL.md +36 -4
- package/generated/plugins/copilot/agdf/skills/agdf-gate-check/SKILL.md +86 -0
- package/generated/plugins/copilot/agdf/skills/agdf-interaction-locales.json +1 -0
- package/generated/plugins/copilot/agdf/skills/agdf-prd-definition/SKILL.md +51 -0
- package/generated/plugins/copilot/agdf/skills/agdf-qa-gate/SKILL.md +205 -0
- package/generated/plugins/copilot/agdf/{copilot-skills → skills}/agdf-release-or/SKILL.md +44 -11
- package/generated/plugins/copilot/agdf/skills/agdf-runtime-contract.md +24 -0
- package/generated/plugins/copilot/agdf/skills/agdf-sd-definition/SKILL.md +51 -0
- package/generated/plugins/copilot/agdf/{copilot-skills → skills}/agdf-task-plan-review/SKILL.md +35 -3
- package/generated/plugins/copilot/agdf/skills/agdf-tp-definition/SKILL.md +51 -0
- package/generated/plugins/copilot/agdf/skills/agdf-ur-definition/SKILL.md +54 -0
- package/generated/plugins/copilot/agdf/skills/agdf-ux-intent-definition/SKILL.md +188 -0
- package/generated/plugins/copilot/agdf/skills/contracts/closeout.md +82 -0
- package/generated/plugins/copilot/agdf/skills/contracts/context-graph.md +48 -0
- package/generated/plugins/copilot/agdf/skills/contracts/control-scaffold.md +145 -0
- package/generated/plugins/copilot/agdf/skills/contracts/gate-artifact-preparation.md +132 -0
- package/generated/plugins/copilot/agdf/skills/contracts/gate-transition.md +209 -0
- package/generated/plugins/copilot/agdf/skills/contracts/interaction.md +777 -0
- package/generated/plugins/copilot/agdf/skills/contracts/modes.md +195 -0
- package/generated/plugins/copilot/agdf/skills/contracts/prd-definition.md +130 -0
- package/generated/plugins/copilot/agdf/skills/contracts/quality.md +228 -0
- package/generated/plugins/copilot/agdf/skills/contracts/request-activation.md +252 -0
- package/generated/plugins/copilot/agdf/skills/contracts/sd-definition.md +69 -0
- package/generated/plugins/copilot/agdf/skills/contracts/task-target-resolution.md +156 -0
- package/generated/plugins/copilot/agdf/skills/contracts/tp-definition.md +81 -0
- package/generated/plugins/copilot/agdf/skills/contracts/ur-definition.md +94 -0
- package/generated/submissions/openai/agdf/.codex-plugin/plugin.json +1 -1
- package/generated/submissions/openai/agdf/meta/agdf-agent-router.md +50 -8
- package/generated/submissions/openai/agdf/meta/agdf-interaction-locales.json +2682 -495
- package/generated/submissions/openai/agdf/meta/agdf-plugin.definition.json +288 -42
- package/generated/submissions/openai/agdf/meta/agdf-runtime-contract.md +17 -9
- package/generated/submissions/openai/agdf/meta/contracts/closeout.md +6 -2
- package/generated/submissions/openai/agdf/meta/contracts/control-scaffold.md +17 -4
- package/generated/submissions/openai/agdf/meta/contracts/gate-artifact-preparation.md +132 -0
- package/generated/submissions/openai/agdf/meta/contracts/gate-transition.md +48 -4
- package/generated/submissions/openai/agdf/meta/contracts/interaction.md +328 -38
- package/generated/submissions/openai/agdf/meta/contracts/modes.md +23 -11
- package/generated/submissions/openai/agdf/meta/contracts/prd-definition.md +130 -0
- package/generated/submissions/openai/agdf/meta/contracts/quality.md +77 -6
- package/generated/submissions/openai/agdf/meta/contracts/request-activation.md +252 -0
- package/generated/submissions/openai/agdf/meta/contracts/sd-definition.md +69 -0
- package/generated/submissions/openai/agdf/meta/contracts/task-target-resolution.md +63 -9
- package/generated/submissions/openai/agdf/meta/contracts/tp-definition.md +81 -0
- package/generated/submissions/openai/agdf/meta/contracts/ur-definition.md +94 -0
- package/generated/submissions/openai/agdf/meta/copilot-payload-baseline.json +3 -3
- package/generated/submissions/openai/agdf/meta/distribution-profile-history.json +14 -0
- package/generated/submissions/openai/agdf/meta/schemas/agent-plugins/1.0.0/mcp.schema.json +120 -0
- package/generated/submissions/openai/agdf/meta/schemas/agent-plugins/1.0.0/plugin.schema.json +65 -0
- package/generated/submissions/openai/agdf/meta/schemas/agent-plugins/1.0.0/provenance.json +19 -0
- package/generated/submissions/openai/agdf/plugin.json +47 -0
- package/generated/submissions/openai/agdf/skills/brownfield-analysis/SKILL.md +67 -5
- package/generated/submissions/openai/agdf/skills/clean-implementation-review/SKILL.md +34 -2
- package/generated/submissions/openai/agdf/skills/code-review/SKILL.md +36 -2
- package/generated/submissions/openai/agdf/skills/delivery-closeout/SKILL.md +34 -2
- package/generated/submissions/openai/agdf/skills/delivery-path-search/SKILL.md +34 -2
- package/generated/submissions/openai/agdf/skills/gate-check/SKILL.md +68 -222
- package/generated/submissions/openai/agdf/skills/prd-definition/SKILL.md +51 -0
- package/generated/submissions/openai/agdf/skills/prd-definition/help.md +23 -0
- package/generated/submissions/openai/agdf/skills/qa-gate/SKILL.md +73 -5
- package/generated/submissions/openai/agdf/skills/release-or/SKILL.md +36 -3
- package/generated/submissions/openai/agdf/skills/sd-definition/SKILL.md +51 -0
- package/generated/submissions/openai/agdf/skills/sd-definition/help.md +17 -0
- package/generated/submissions/openai/agdf/skills/task-plan-review/SKILL.md +34 -2
- package/generated/submissions/openai/agdf/skills/tp-definition/SKILL.md +51 -0
- package/generated/submissions/openai/agdf/skills/tp-definition/help.md +17 -0
- package/generated/submissions/openai/agdf/skills/ur-definition/SKILL.md +54 -0
- package/generated/submissions/openai/agdf/skills/ur-definition/help.md +19 -0
- package/generated/submissions/openai/agdf/skills/ux-intent-definition/SKILL.md +100 -6
- package/generated/submissions/openai/agdf/skills/ux-intent-definition/help.md +3 -0
- package/generated/submissions/openai/agdf/submission/openai/availability.md +1 -1
- package/generated/submissions/openai/agdf/submission/openai/capability-matrix.json +1 -1
- package/generated/submissions/openai/agdf/submission/openai/inventory.json +104 -32
- package/generated/submissions/openai/agdf/submission/openai/listing.json +1 -1
- package/generated/submissions/openai/agdf/submission/openai/readiness.json +2 -2
- package/generated/submissions/openai/agdf/submission/openai/readiness.md +2 -2
- package/generated/submissions/openai/agdf/submission/openai/release-notes.md +1 -1
- package/generated/submissions/openai/agdf/submission/openai/reviewer-cases.json +1 -1
- package/lib/cli/application.js +726 -271
- package/lib/cli/command-registry.js +251 -16
- package/lib/cli/contract-command.js +24 -0
- package/lib/cli/control-maintenance-command.js +44 -0
- package/lib/cli/delivery-path-search-command.js +11 -11
- package/lib/cli/parse-args.js +254 -5
- package/lib/cli/runtime-context.js +14 -37
- package/lib/cli/validation-handlers.js +205 -7
- package/lib/control-command.js +4 -0
- package/lib/control-evaluation/git-observation.js +22 -0
- package/lib/control-maintenance/interaction.js +28 -0
- package/lib/control-maintenance/repair.js +4 -0
- package/lib/control-maintenance/service.js +3 -0
- package/lib/control-maintenance/startup.js +25 -0
- package/lib/control-state/run-recovery.js +5 -0
- package/lib/delivery-path-search/evaluators/claude.js +3 -3
- package/lib/delivery-path-search/evaluators/codex.js +3 -3
- package/lib/delivery-path-search/evaluators/opencode.js +4 -4
- package/lib/delivery-path-search/evaluators/protocol.js +1 -1
- package/lib/delivery-path-search/generators/claude.js +3 -3
- package/lib/delivery-path-search/generators/codex.js +3 -3
- package/lib/delivery-path-search/generators/protocol.js +1 -1
- package/lib/delivery-path-search/surfaces/capabilities.js +1 -1
- package/lib/delivery-path-search/transports/read-only-guard.js +2 -1
- package/lib/host-adapters/claude/loaded-sessions.js +45 -0
- package/lib/host-adapters/claude/marketplace.js +2 -0
- package/lib/host-adapters/claude/permission-rules.js +20 -0
- package/lib/host-adapters/claude/plugin-mcp.js +40 -0
- package/lib/host-adapters/claude/plugin.js +285 -0
- package/lib/host-adapters/claude/runtime-check.js +39 -0
- package/lib/host-adapters/claude/session-command.js +2 -0
- package/lib/host-adapters/claude/uninstall.js +80 -0
- package/lib/host-adapters/codex/identity.js +19 -0
- package/lib/host-adapters/codex/mcp-startup.js +14 -0
- package/lib/host-adapters/codex/plugin-mcp.js +39 -0
- package/lib/host-adapters/codex/plugin.js +243 -0
- package/lib/host-adapters/codex/runtime-check.js +27 -0
- package/lib/host-adapters/codex/session-command.js +7 -0
- package/lib/host-adapters/copilot/plugin.js +220 -0
- package/lib/host-adapters/copilot/session-command.js +1 -0
- package/lib/host-adapters/opencode/runtime-check.js +39 -0
- package/lib/host-adapters/opencode/session-command.js +1 -0
- package/lib/host-adapters/opencode/status.js +43 -0
- package/lib/host-adapters/session-command.js +11 -0
- package/lib/host-command.js +112 -0
- package/lib/install-setup/contract.js +319 -0
- package/lib/install-setup/control-migration.js +10 -0
- package/lib/install-setup/control-repair.js +1 -0
- package/lib/install-setup/interaction.js +157 -0
- package/lib/install-setup/presentation.js +337 -0
- package/lib/install-setup/service.js +441 -0
- package/lib/installers/copilot-marketplace-transport.js +74 -0
- package/lib/installers/copilot-settings.js +34 -3
- package/lib/installers/copilot-skill-discovery.js +27 -0
- package/lib/installers/local-development.js +107 -11
- package/lib/installers/local-marketplace.js +313 -37
- package/lib/installers/npm-invocation.js +2 -0
- package/lib/installers/opencode-activation.js +5 -31
- package/lib/installers/opencode.js +286 -89
- package/lib/installers/packaged-app-marketplace.js +67 -0
- package/lib/installers/plugin-command.js +115 -0
- package/lib/installers/plugin-installers.js +21 -521
- package/lib/lifecycle/operations.js +78 -137
- package/lib/lifecycle/owned-mutation.js +64 -0
- package/lib/lifecycle/presentation.js +47 -4
- package/lib/lifecycle/result.js +183 -2
- package/lib/lifecycle/status.js +150 -66
- package/lib/mcp-dispatch-runtime.js +360 -0
- package/lib/mcp-lifecycle/adapter-contract.js +54 -0
- package/lib/mcp-lifecycle/adapters/claude.js +123 -0
- package/lib/mcp-lifecycle/adapters/codex-origin-probe.js +87 -0
- package/lib/mcp-lifecycle/adapters/codex.js +502 -0
- package/lib/mcp-lifecycle/adapters/copilot.js +106 -0
- package/lib/mcp-lifecycle/adapters/file-utils.js +90 -0
- package/lib/mcp-lifecycle/adapters/opencode.js +148 -0
- package/lib/mcp-lifecycle/evidence.js +122 -0
- package/lib/mcp-lifecycle/facade-entry.js +26 -0
- package/lib/mcp-lifecycle/facade-owner-entry.js +34 -0
- package/lib/mcp-lifecycle/host-config.js +60 -0
- package/lib/mcp-lifecycle/package.js +527 -0
- package/lib/mcp-lifecycle/plugin-runtime.js +420 -0
- package/lib/mcp-lifecycle/presentation.js +61 -0
- package/lib/mcp-lifecycle/profile-context.js +11 -0
- package/lib/mcp-lifecycle/profile.js +63 -0
- package/lib/mcp-lifecycle/result.js +92 -0
- package/lib/mcp-lifecycle/service.js +533 -0
- package/lib/npm-invocation.js +27 -0
- package/lib/repository-context.js +87 -0
- package/lib/runtime/control-command-service.js +12 -0
- package/lib/runtime/control-context.js +11 -0
- package/lib/runtime/git-history.js +7 -0
- package/lib/runtime/git-originals.js +36 -0
- package/lib/runtime/local-validator.js +39 -5
- package/lib/runtime/plugin-provenance.js +1 -298
- package/lib/runtime/runtime-probe.js +61 -0
- package/lib/runtime/validator-application.js +3 -3
- package/lib/runtime-check-consent/adapters.js +3 -42
- package/lib/runtime-check-consent/claude-settings.js +2 -23
- package/lib/runtime-check-consent/codex-hooks.js +96 -0
- package/lib/runtime-check-consent/codex-plugin-consent.js +118 -0
- package/lib/runtime-check-consent/contract.js +9 -8
- package/lib/runtime-check-consent/coordinator.js +3 -3
- package/lib/runtime-check-consent/service.js +29 -53
- package/lib/runtime-check-consent/state.js +1 -1
- package/lib/scaffold/canonical-init.js +691 -0
- package/lib/scaffold/plan.js +8 -14
- package/lib/scaffold/presentation.js +53 -3
- package/lib/skill-dispatch/binding.js +9 -0
- package/opencode-plugin.js +99 -26
- package/package.json +22 -51
- package/runtime/core/lib/control-evaluation/acceptance-criteria.js +61 -0
- package/runtime/core/lib/control-evaluation/backlog-vocabulary.d.ts +3 -0
- package/runtime/core/lib/control-evaluation/backlog-vocabulary.js +15 -0
- package/runtime/core/lib/control-evaluation/closeout-readiness.js +103 -0
- package/runtime/core/lib/control-evaluation/decision-content-readiness.js +131 -0
- package/runtime/core/lib/control-evaluation/definition-sources.js +46 -0
- package/{generated/plugins/copilot/agdf/runtime/create-agdf → runtime/core}/lib/control-evaluation/delivery-map.js +31 -37
- package/runtime/core/lib/control-evaluation/delivery-relationships.js +21 -0
- package/{generated/plugins/copilot/agdf/runtime/create-agdf → runtime/core}/lib/control-evaluation/doctor.js +85 -17
- package/runtime/core/lib/control-evaluation/gate-check.js +827 -0
- package/{generated/plugins/agdf/runtime/create-agdf → runtime/core}/lib/control-evaluation/gate-policy.js +141 -10
- package/runtime/core/lib/control-evaluation/markdown-table.js +40 -0
- package/runtime/core/lib/control-evaluation/next-action.js +32 -0
- package/runtime/core/lib/control-evaluation/normalized-gaps.js +105 -0
- package/runtime/core/lib/control-evaluation/prd-readiness.js +51 -0
- package/runtime/core/lib/control-evaluation/qa-follow-up.js +83 -0
- package/runtime/core/lib/control-evaluation/report-decision.js +237 -0
- package/runtime/core/lib/control-evaluation/run-state-policy.js +51 -0
- package/{generated/plugins/agdf/runtime/create-agdf → runtime/core}/lib/control-evaluation/run-state.js +108 -74
- package/runtime/core/lib/control-evaluation/run-step-policy.js +20 -0
- package/runtime/core/lib/control-evaluation/run-work-summary.js +109 -0
- package/runtime/core/lib/control-evaluation/sd-readiness.js +56 -0
- package/{generated/plugins/agdf/runtime/create-agdf → runtime/core}/lib/control-evaluation/shared.js +5 -2
- package/runtime/core/lib/control-evaluation/tp-planning.js +118 -0
- package/runtime/core/lib/control-evaluation/traceability-readiness.js +212 -0
- package/runtime/core/lib/control-evaluation/ur-readiness.js +47 -0
- package/{generated/plugins/agdf/runtime/create-agdf → runtime/core}/lib/control-evaluation/verified-change.js +10 -30
- package/runtime/core/lib/control-inspect/artifact-readiness.js +122 -0
- package/runtime/core/lib/control-inspect/cockpit-backlog.js +135 -0
- package/runtime/core/lib/control-inspect/cockpit-context.js +97 -0
- package/runtime/core/lib/control-inspect/cockpit-contract.js +86 -0
- package/runtime/core/lib/control-inspect/cockpit-list.d.ts +17 -0
- package/runtime/core/lib/control-inspect/cockpit-list.js +45 -0
- package/runtime/core/lib/control-inspect/cockpit-session.js +217 -0
- package/runtime/core/lib/control-inspect/cockpit.js +388 -0
- package/runtime/core/lib/control-inspect/contract.js +299 -0
- package/runtime/core/lib/control-inspect/decision-session.js +243 -0
- package/runtime/core/lib/control-inspect/selection.js +35 -0
- package/runtime/core/lib/control-inspect/service.js +319 -0
- package/runtime/core/lib/control-maintenance/compatibility.js +149 -0
- package/runtime/core/lib/control-maintenance/contract.js +41 -0
- package/runtime/core/lib/control-maintenance/interaction.js +57 -0
- package/runtime/core/lib/control-maintenance/migration.js +85 -0
- package/runtime/core/lib/control-maintenance/presentation.js +122 -0
- package/runtime/core/lib/control-maintenance/repair.js +226 -0
- package/runtime/core/lib/control-maintenance/service.js +38 -0
- package/runtime/core/lib/control-read/cockpit-pool.js +105 -0
- package/runtime/core/lib/control-read/cockpit-worker.js +33 -0
- package/runtime/core/lib/control-read/control-changes.js +33 -0
- package/runtime/core/lib/control-read/fs.js +55 -0
- package/runtime/core/lib/control-read/snapshot.js +378 -0
- package/runtime/core/lib/control-read-boundary.js +22 -0
- package/runtime/core/lib/control-state/approval-command-contract.js +73 -0
- package/runtime/core/lib/control-state/approval-command.js +137 -0
- package/runtime/core/lib/control-state/approval-operations.js +95 -0
- package/runtime/core/lib/control-state/artefact-binding-proof.js +90 -0
- package/runtime/core/lib/control-state/artefact-bindings.js +94 -0
- package/runtime/core/lib/control-state/backlog-summary-shape.d.ts +4 -0
- package/runtime/core/lib/control-state/backlog-summary-shape.js +40 -0
- package/runtime/core/lib/control-state/backlog-summary.js +67 -0
- package/runtime/core/lib/control-state/contained-file.js +56 -0
- package/runtime/core/lib/control-state/control-configuration.js +19 -0
- package/runtime/core/lib/control-state/decision-action-contract.js +32 -0
- package/runtime/core/lib/control-state/decision-action-service.js +55 -0
- package/runtime/core/lib/control-state/decision-material-contract.js +12 -0
- package/runtime/core/lib/control-state/evidence-bindings.js +132 -0
- package/{lib → runtime/core/lib}/control-state/index.js +2 -0
- package/{lib → runtime/core/lib}/control-state/legacy-migration.js +5 -31
- package/runtime/core/lib/control-state/legacy-projection-reader.js +38 -0
- package/runtime/core/lib/control-state/presentation-decision.js +138 -0
- package/runtime/core/lib/control-state/preview-render.js +130 -0
- package/runtime/core/lib/control-state/preview-review.js +136 -0
- package/runtime/core/lib/control-state/preview-snapshot.js +108 -0
- package/runtime/core/lib/control-state/qa-deviation-acceptance.js +82 -0
- package/runtime/core/lib/control-state/recording-formats.js +29 -0
- package/runtime/core/lib/control-state/run-artefact-recording.js +81 -0
- package/runtime/core/lib/control-state/run-backlog-writer.js +80 -0
- package/runtime/core/lib/control-state/run-backlog.js +90 -0
- package/runtime/core/lib/control-state/run-command-contract.js +143 -0
- package/runtime/core/lib/control-state/run-command-service.js +174 -0
- package/{generated/plugins/copilot/agdf/runtime/create-agdf → runtime/core}/lib/control-state/run-identity.js +1 -0
- package/runtime/core/lib/control-state/run-operation-identity.js +31 -0
- package/runtime/core/lib/control-state/run-operation-proof.js +103 -0
- package/runtime/core/lib/control-state/run-operation-status.js +59 -0
- package/runtime/core/lib/control-state/run-operations.js +80 -0
- package/runtime/core/lib/control-state/run-owned-outputs.js +59 -0
- package/runtime/core/lib/control-state/run-presentation-envelope.js +36 -0
- package/runtime/core/lib/control-state/run-presentation-render.js +443 -0
- package/runtime/core/lib/control-state/run-presentation.js +348 -0
- package/runtime/core/lib/control-state/run-recording.js +273 -0
- package/runtime/core/lib/control-state/run-recovery.js +296 -0
- package/runtime/core/lib/control-state/run-relationship-correction.js +74 -0
- package/runtime/core/lib/control-state/run-revision-boundary.js +44 -0
- package/runtime/core/lib/control-state/run-revision-history.js +184 -0
- package/runtime/core/lib/control-state/run-revision.js +458 -0
- package/runtime/core/lib/control-state/run-seal-compute.js +141 -0
- package/runtime/core/lib/control-state/run-seal.js +26 -0
- package/runtime/core/lib/control-state/run-source-revisions.js +221 -0
- package/{generated/plugins/agdf/runtime/create-agdf/lib/control-state/run-state-parser.js → runtime/core/lib/control-state/run-state-document.js} +17 -47
- package/runtime/core/lib/control-state/run-state-edits.js +170 -0
- package/runtime/core/lib/control-state/run-state-parser.js +106 -0
- package/runtime/core/lib/control-state/run-state-reader.js +57 -0
- package/runtime/core/lib/control-state/run-state-repository.js +201 -0
- package/{lib → runtime/core/lib}/control-state/run-state-resolver.js +1 -1
- package/runtime/core/lib/control-state/run-state-writer.js +484 -0
- package/runtime/core/lib/control-state/run-step-pending.js +15 -0
- package/runtime/core/lib/control-state/run-step-transaction.js +359 -0
- package/runtime/core/lib/control-state/run-steps.js +571 -0
- package/runtime/core/lib/control-state/run-store-inspection.js +65 -0
- package/runtime/core/lib/control-state/run-text.js +8 -0
- package/runtime/core/lib/delivery-continuation/service.js +67 -0
- package/runtime/core/lib/fs-swap.js +26 -0
- package/runtime/core/lib/index.js +14 -0
- package/runtime/core/lib/interaction-catalog-validation.js +26 -0
- package/runtime/core/lib/interaction-catalog.d.ts +2 -0
- package/runtime/core/lib/interaction-catalog.js +98 -0
- package/{lib → runtime/core/lib}/interaction-presentation.js +437 -33
- package/runtime/core/lib/mcp-resource-contract.js +4 -0
- package/runtime/core/lib/mcp-tool-errors.js +176 -0
- package/runtime/core/lib/repository-context-reader.js +87 -0
- package/runtime/core/lib/resources/artefact-templates.js +72 -0
- package/runtime/core/lib/resources/binding.js +26 -0
- package/runtime/core/lib/resources/context.js +70 -0
- package/runtime/core/lib/resources/contracts.js +23 -0
- package/runtime/core/lib/runtime/distribution-profile-history.js +173 -0
- package/runtime/core/lib/runtime/host-installation.js +200 -0
- package/runtime/core/lib/runtime/plugin-provenance.js +496 -0
- package/runtime/core/lib/skill-dispatch/binding.js +66 -0
- package/runtime/core/lib/skill-dispatch/compact-continuation.js +76 -0
- package/runtime/core/lib/skill-dispatch/contract.js +430 -0
- package/runtime/core/lib/skill-dispatch/delivery-intake.js +80 -0
- package/runtime/core/lib/skill-dispatch/delivery-run-assignment.js +74 -0
- package/runtime/core/lib/skill-dispatch/prd-definition.js +39 -0
- package/runtime/core/lib/skill-dispatch/sd-definition.js +39 -0
- package/runtime/core/lib/skill-dispatch/service.js +833 -0
- package/runtime/core/lib/skill-dispatch/tp-definition.js +41 -0
- package/runtime/core/lib/task-target-resolution.js +202 -0
- package/runtime/core/node_modules/entities/LICENSE +11 -0
- package/runtime/core/node_modules/entities/decode.js +3 -0
- package/runtime/core/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/runtime/core/node_modules/entities/dist/commonjs/decode.js +511 -0
- package/runtime/core/node_modules/entities/dist/commonjs/encode.js +73 -0
- package/runtime/core/node_modules/entities/dist/commonjs/escape.js +121 -0
- package/runtime/core/node_modules/entities/dist/commonjs/generated/decode-data-html.js +10 -0
- package/runtime/core/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +10 -0
- package/runtime/core/node_modules/entities/dist/commonjs/generated/encode-html.js +13 -0
- package/runtime/core/node_modules/entities/dist/commonjs/index.js +131 -0
- package/runtime/core/node_modules/entities/dist/commonjs/package.json +3 -0
- package/runtime/core/node_modules/entities/dist/esm/decode-codepoint.js +72 -0
- package/runtime/core/node_modules/entities/dist/esm/decode.js +497 -0
- package/runtime/core/node_modules/entities/dist/esm/encode.js +69 -0
- package/runtime/core/node_modules/entities/dist/esm/escape.js +117 -0
- package/runtime/core/node_modules/entities/dist/esm/generated/decode-data-html.js +7 -0
- package/runtime/core/node_modules/entities/dist/esm/generated/decode-data-xml.js +7 -0
- package/runtime/core/node_modules/entities/dist/esm/generated/encode-html.js +10 -0
- package/runtime/core/node_modules/entities/dist/esm/index.js +107 -0
- package/runtime/core/node_modules/entities/dist/esm/package.json +3 -0
- package/runtime/core/node_modules/entities/escape.js +3 -0
- package/runtime/core/node_modules/entities/package.json +118 -0
- package/runtime/core/node_modules/entities/src/generated/.eslintrc.json +10 -0
- package/runtime/core/node_modules/nanoid/LICENSE +20 -0
- package/runtime/core/node_modules/nanoid/async/index.browser.cjs +43 -0
- package/runtime/core/node_modules/nanoid/async/index.browser.js +43 -0
- package/runtime/core/node_modules/nanoid/async/index.cjs +47 -0
- package/runtime/core/node_modules/nanoid/async/index.js +47 -0
- package/runtime/core/node_modules/nanoid/async/index.native.js +38 -0
- package/runtime/core/node_modules/nanoid/async/package.json +12 -0
- package/runtime/core/node_modules/nanoid/bin/nanoid.cjs +55 -0
- package/runtime/core/node_modules/nanoid/index.browser.cjs +45 -0
- package/runtime/core/node_modules/nanoid/index.browser.js +45 -0
- package/runtime/core/node_modules/nanoid/index.cjs +63 -0
- package/runtime/core/node_modules/nanoid/index.js +63 -0
- package/runtime/core/node_modules/nanoid/nanoid.js +1 -0
- package/runtime/core/node_modules/nanoid/non-secure/index.cjs +24 -0
- package/runtime/core/node_modules/nanoid/non-secure/index.js +24 -0
- package/runtime/core/node_modules/nanoid/non-secure/package.json +6 -0
- package/runtime/core/node_modules/nanoid/package.json +89 -0
- package/runtime/core/node_modules/nanoid/url-alphabet/index.cjs +4 -0
- package/runtime/core/node_modules/nanoid/url-alphabet/index.js +4 -0
- package/runtime/core/node_modules/nanoid/url-alphabet/package.json +6 -0
- package/runtime/core/node_modules/parse5/LICENSE +19 -0
- package/runtime/core/node_modules/parse5/dist/cjs/common/doctype.js +118 -0
- package/runtime/core/node_modules/parse5/dist/cjs/common/error-codes.js +66 -0
- package/runtime/core/node_modules/parse5/dist/cjs/common/foreign-content.js +237 -0
- package/runtime/core/node_modules/parse5/dist/cjs/common/html.js +528 -0
- package/runtime/core/node_modules/parse5/dist/cjs/common/token.js +24 -0
- package/runtime/core/node_modules/parse5/dist/cjs/common/unicode.js +70 -0
- package/runtime/core/node_modules/parse5/dist/cjs/index.js +54 -0
- package/runtime/core/node_modules/parse5/dist/cjs/package.json +1 -0
- package/runtime/core/node_modules/parse5/dist/cjs/parser/formatting-element-list.js +114 -0
- package/runtime/core/node_modules/parse5/dist/cjs/parser/index.js +3240 -0
- package/runtime/core/node_modules/parse5/dist/cjs/parser/open-element-stack.js +328 -0
- package/runtime/core/node_modules/parse5/dist/cjs/serializer/index.js +172 -0
- package/runtime/core/node_modules/parse5/dist/cjs/tokenizer/index.js +2714 -0
- package/runtime/core/node_modules/parse5/dist/cjs/tokenizer/preprocessor.js +200 -0
- package/runtime/core/node_modules/parse5/dist/cjs/tree-adapters/default.js +176 -0
- package/runtime/core/node_modules/parse5/dist/cjs/tree-adapters/interface.js +2 -0
- package/runtime/core/node_modules/parse5/dist/common/doctype.js +114 -0
- package/runtime/core/node_modules/parse5/dist/common/error-codes.js +63 -0
- package/runtime/core/node_modules/parse5/dist/common/foreign-content.js +228 -0
- package/runtime/core/node_modules/parse5/dist/common/html.js +523 -0
- package/runtime/core/node_modules/parse5/dist/common/token.js +20 -0
- package/runtime/core/node_modules/parse5/dist/common/unicode.js +62 -0
- package/runtime/core/node_modules/parse5/dist/index.js +42 -0
- package/runtime/core/node_modules/parse5/dist/parser/formatting-element-list.js +110 -0
- package/runtime/core/node_modules/parse5/dist/parser/index.js +3245 -0
- package/runtime/core/node_modules/parse5/dist/parser/open-element-stack.js +324 -0
- package/runtime/core/node_modules/parse5/dist/serializer/index.js +168 -0
- package/runtime/core/node_modules/parse5/dist/tokenizer/index.js +2710 -0
- package/runtime/core/node_modules/parse5/dist/tokenizer/preprocessor.js +196 -0
- package/runtime/core/node_modules/parse5/dist/tree-adapters/default.js +173 -0
- package/runtime/core/node_modules/parse5/dist/tree-adapters/interface.js +1 -0
- package/runtime/core/node_modules/parse5/package.json +50 -0
- package/runtime/core/node_modules/picocolors/LICENSE +15 -0
- package/runtime/core/node_modules/picocolors/package.json +25 -0
- package/runtime/core/node_modules/picocolors/picocolors.browser.js +4 -0
- package/runtime/core/node_modules/picocolors/picocolors.js +75 -0
- package/runtime/core/node_modules/postcss/LICENSE +20 -0
- package/runtime/core/node_modules/postcss/lib/at-rule.js +25 -0
- package/runtime/core/node_modules/postcss/lib/comment.js +13 -0
- package/runtime/core/node_modules/postcss/lib/container.js +494 -0
- package/runtime/core/node_modules/postcss/lib/css-syntax-error.js +133 -0
- package/runtime/core/node_modules/postcss/lib/declaration.js +24 -0
- package/runtime/core/node_modules/postcss/lib/document.js +33 -0
- package/runtime/core/node_modules/postcss/lib/fromJSON.js +107 -0
- package/runtime/core/node_modules/postcss/lib/input.js +282 -0
- package/runtime/core/node_modules/postcss/lib/lazy-result.js +626 -0
- package/runtime/core/node_modules/postcss/lib/list.js +79 -0
- package/runtime/core/node_modules/postcss/lib/map-generator.js +383 -0
- package/runtime/core/node_modules/postcss/lib/no-work-result.js +137 -0
- package/runtime/core/node_modules/postcss/lib/node.js +494 -0
- package/runtime/core/node_modules/postcss/lib/parse.js +42 -0
- package/runtime/core/node_modules/postcss/lib/parser.js +626 -0
- package/runtime/core/node_modules/postcss/lib/postcss.js +101 -0
- package/runtime/core/node_modules/postcss/lib/postcss.mjs +30 -0
- package/runtime/core/node_modules/postcss/lib/previous-map.js +176 -0
- package/runtime/core/node_modules/postcss/lib/processor.js +67 -0
- package/runtime/core/node_modules/postcss/lib/result.js +42 -0
- package/runtime/core/node_modules/postcss/lib/root.js +76 -0
- package/runtime/core/node_modules/postcss/lib/rule.js +27 -0
- package/runtime/core/node_modules/postcss/lib/stringifier.js +457 -0
- package/runtime/core/node_modules/postcss/lib/stringify.js +69 -0
- package/runtime/core/node_modules/postcss/lib/symbols.js +5 -0
- package/runtime/core/node_modules/postcss/lib/terminal-highlight.js +70 -0
- package/runtime/core/node_modules/postcss/lib/tokenize.js +270 -0
- package/runtime/core/node_modules/postcss/lib/warn-once.js +13 -0
- package/runtime/core/node_modules/postcss/lib/warning.js +47 -0
- package/runtime/core/node_modules/postcss/package.json +88 -0
- package/runtime/core/node_modules/source-map-js/LICENSE +28 -0
- package/runtime/core/node_modules/source-map-js/lib/array-set.js +121 -0
- package/runtime/core/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/runtime/core/node_modules/source-map-js/lib/base64.js +67 -0
- package/runtime/core/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/runtime/core/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/runtime/core/node_modules/source-map-js/lib/quick-sort.js +141 -0
- package/runtime/core/node_modules/source-map-js/lib/source-map-consumer.js +1236 -0
- package/runtime/core/node_modules/source-map-js/lib/source-map-generator.js +446 -0
- package/runtime/core/node_modules/source-map-js/lib/source-node.js +420 -0
- package/runtime/core/node_modules/source-map-js/lib/util.js +594 -0
- package/runtime/core/node_modules/source-map-js/package.json +71 -0
- package/runtime/core/node_modules/source-map-js/source-map.js +8 -0
- package/generated/plugins/agdf/runtime/create-agdf/lib/control-evaluation/gate-check.js +0 -506
- package/generated/plugins/agdf/runtime/create-agdf/lib/control-state/run-state-repository.js +0 -68
- package/generated/plugins/agdf/runtime/create-agdf/lib/control-state/run-state-writer.js +0 -97
- package/generated/plugins/copilot/agdf/copilot-skills/agdf-gate-check/SKILL.md +0 -240
- package/generated/plugins/copilot/agdf/copilot-skills/agdf-interaction-locales.json +0 -512
- package/generated/plugins/copilot/agdf/copilot-skills/agdf-qa-gate/SKILL.md +0 -137
- package/generated/plugins/copilot/agdf/copilot-skills/agdf-runtime-contract.md +0 -16
- package/generated/plugins/copilot/agdf/copilot-skills/agdf-ux-intent-definition/SKILL.md +0 -94
- package/generated/plugins/copilot/agdf/copilot-skills/contracts/interaction.md +0 -487
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/gate-check.js +0 -506
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/run-state-repository.js +0 -68
- package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/run-state-writer.js +0 -97
- package/lib/control-evaluation/gate-check.js +0 -506
- package/lib/control-state/run-state-repository.js +0 -68
- package/lib/control-state/run-state-writer.js +0 -97
- package/lib/proportionality-benchmark/blind-prompt.js +0 -38
- package/lib/proportionality-benchmark/contracts.js +0 -129
- package/lib/proportionality-benchmark/corpus-loader.js +0 -221
- package/lib/proportionality-benchmark/evaluator.js +0 -260
- package/lib/proportionality-benchmark/index.js +0 -8
- package/lib/proportionality-benchmark/live-recorder.js +0 -122
- package/lib/proportionality-benchmark/profiles.js +0 -102
- package/lib/proportionality-benchmark/report.js +0 -60
- package/lib/proportionality-benchmark/source-fingerprint.js +0 -34
- package/lib/public-plugin/builder.js +0 -83
- package/lib/public-plugin/contract.js +0 -102
- package/lib/public-plugin/copilot-profile.js +0 -126
- package/lib/public-plugin/manifest.js +0 -104
- package/lib/public-plugin/report.js +0 -33
- package/lib/public-plugin/validator.js +0 -101
- package/lib/release/profile-history.js +0 -222
- package/lib/release/version-bump.js +0 -527
- package/lib/release/version-coherence.js +0 -137
- package/lib/skill-evals/artefact-quality.js +0 -36
- package/lib/skill-evals/index.js +0 -105
- package/lib/skill-evals/live-recorder.js +0 -85
- package/lib/skill-evals/workspace.js +0 -97
- /package/generated/plugins/{copilot/agdf/copilot-skills → agdf/runtime/create-agdf/generated/plugins/agdf/meta}/contracts/context-graph.md +0 -0
- /package/generated/plugins/agdf/runtime/create-agdf/{lib → runtime/core/lib}/control-evaluation/parent-reconciliation.js +0 -0
- /package/generated/plugins/agdf/runtime/create-agdf/{lib → runtime/core/lib}/control-evaluation/required-files.js +0 -0
- /package/generated/plugins/agdf/runtime/create-agdf/{lib → runtime/core/lib}/control-state/aggregate.js +0 -0
- /package/generated/plugins/agdf/runtime/create-agdf/{lib → runtime/core/lib}/control-state/gate-approval-validator.js +0 -0
- /package/generated/plugins/agdf/runtime/create-agdf/{lib → runtime/core/lib}/delivery-path-search/candidate-policy.js +0 -0
- /package/generated/plugins/agdf/runtime/create-agdf/{lib → runtime/core/lib}/delivery-path-search/contracts.js +0 -0
- /package/generated/plugins/agdf/runtime/create-agdf/{lib → runtime/core/lib}/delivery-path-search/persistence.js +0 -0
- /package/generated/plugins/agdf/runtime/create-agdf/{lib → runtime/core/lib}/delivery-path-search/scoring.js +0 -0
- /package/generated/plugins/agdf/runtime/create-agdf/{lib → runtime/core/lib}/delivery-path-search/search-engine.js +0 -0
- /package/generated/plugins/agdf/runtime/create-agdf/{lib → runtime/core/lib}/delivery-path-search/state-adapter.js +0 -0
- /package/{lib → generated/plugins/agdf/runtime/create-agdf/runtime/core/lib}/fs-swap.js +0 -0
- /package/{lib → generated/plugins/agdf/runtime/create-agdf/runtime/core/lib}/runtime/distribution-profile-history.js +0 -0
- /package/generated/plugins/copilot/agdf/{hooks/copilot-hooks.json → com.github.copilot/hooks/hooks.json} +0 -0
- /package/generated/plugins/copilot/agdf/runtime/create-agdf/{lib → runtime/core/lib}/control-evaluation/parent-reconciliation.js +0 -0
- /package/generated/plugins/copilot/agdf/runtime/create-agdf/{lib → runtime/core/lib}/control-evaluation/required-files.js +0 -0
- /package/generated/plugins/copilot/agdf/runtime/create-agdf/{lib → runtime/core/lib}/control-state/aggregate.js +0 -0
- /package/generated/plugins/copilot/agdf/runtime/create-agdf/{lib → runtime/core/lib}/control-state/gate-approval-validator.js +0 -0
- /package/generated/plugins/copilot/agdf/runtime/create-agdf/{lib → runtime/core/lib}/delivery-path-search/candidate-policy.js +0 -0
- /package/generated/plugins/copilot/agdf/runtime/create-agdf/{lib → runtime/core/lib}/delivery-path-search/contracts.js +0 -0
- /package/generated/plugins/copilot/agdf/runtime/create-agdf/{lib → runtime/core/lib}/delivery-path-search/persistence.js +0 -0
- /package/generated/plugins/copilot/agdf/runtime/create-agdf/{lib → runtime/core/lib}/delivery-path-search/scoring.js +0 -0
- /package/generated/plugins/copilot/agdf/runtime/create-agdf/{lib → runtime/core/lib}/delivery-path-search/search-engine.js +0 -0
- /package/generated/plugins/copilot/agdf/runtime/create-agdf/{lib → runtime/core/lib}/delivery-path-search/state-adapter.js +0 -0
- /package/{lib → runtime/core/lib}/control-evaluation/parent-reconciliation.js +0 -0
- /package/{lib → runtime/core/lib}/control-evaluation/required-files.js +0 -0
- /package/{lib → runtime/core/lib}/control-state/aggregate.js +0 -0
- /package/{lib → runtime/core/lib}/control-state/gate-approval-validator.js +0 -0
- /package/{lib → runtime/core/lib}/delivery-path-search/candidate-policy.js +0 -0
- /package/{lib → runtime/core/lib}/delivery-path-search/contracts.js +0 -0
- /package/{lib → runtime/core/lib}/delivery-path-search/persistence.js +0 -0
- /package/{lib → runtime/core/lib}/delivery-path-search/scoring.js +0 -0
- /package/{lib → runtime/core/lib}/delivery-path-search/search-engine.js +0 -0
- /package/{lib → runtime/core/lib}/delivery-path-search/state-adapter.js +0 -0
package/lib/cli/application.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { join } from "node:path";
|
|
1
|
+
import { isAbsolute, join } from "node:path";
|
|
2
2
|
import { emitKeypressEvents } from "node:readline";
|
|
3
3
|
import { createInterface } from "node:readline/promises";
|
|
4
4
|
import process from "node:process";
|
|
5
5
|
import {
|
|
6
|
-
createRun,
|
|
7
6
|
migrateLegacy,
|
|
8
7
|
resolveRuns,
|
|
9
8
|
writeLegacyProjection,
|
|
10
|
-
} from "
|
|
9
|
+
} from "#agdf-core/control-state/index.js";
|
|
11
10
|
import {
|
|
12
11
|
defaultOpenCodeConfigDir,
|
|
12
|
+
evaluateOpenCodeGlobalStatus,
|
|
13
13
|
evaluateOpenCodeStatus,
|
|
14
14
|
installOpenCodeGlobalPlugin,
|
|
15
15
|
installOpenCodeGlobalSurface,
|
|
@@ -19,7 +19,9 @@ import {
|
|
|
19
19
|
installClaudeGlobalPlugin,
|
|
20
20
|
installCopilotGlobalPlugin,
|
|
21
21
|
installCodexGlobalPlugin,
|
|
22
|
+
preflightClaudeInstall,
|
|
22
23
|
} from "../installers/plugin-installers.js";
|
|
24
|
+
import { defaultCopilotSettingsPath } from "../installers/copilot-settings.js";
|
|
23
25
|
import {
|
|
24
26
|
applyLifecyclePlan,
|
|
25
27
|
planGlobalUninstall,
|
|
@@ -28,36 +30,102 @@ import {
|
|
|
28
30
|
verifyRepositoryDisabled,
|
|
29
31
|
} from "../lifecycle/operations.js";
|
|
30
32
|
import { printGeneralStatus, printLifecycleResult } from "../lifecycle/presentation.js";
|
|
31
|
-
import { createLifecycleResult, globalInstallRestartAction, lifecycleFailure } from "../lifecycle/result.js";
|
|
33
|
+
import { createLifecycleResult, createOperationStatus, globalInstallRestartAction, lifecycleFailure } from "../lifecycle/result.js";
|
|
34
|
+
import { defaultClaudeSettingsPath } from "../runtime-check-consent/claude-settings.js";
|
|
32
35
|
import { prepareInstallConsent, persistInstallConsent, retainCurrentInstallConsent, runtimeCheckStatus, setRuntimeChecksManual } from "../runtime-check-consent/service.js";
|
|
33
|
-
import {
|
|
36
|
+
import { observeCodexHooks } from "../runtime-check-consent/codex-hooks.js";
|
|
37
|
+
import { approveCodexDispatcher, revokeCodexDispatcher } from "../runtime-check-consent/codex-plugin-consent.js";
|
|
38
|
+
import { projectCodexHookObservation } from "../runtime-check-consent/adapters.js";
|
|
39
|
+
import { evaluateStatusOverview, inspectGlobalInstallationStatus } from "../lifecycle/status.js";
|
|
34
40
|
import { generatedFilesForTarget } from "../scaffold/plan.js";
|
|
41
|
+
import { initializeCanonicalControl } from "../scaffold/canonical-init.js";
|
|
35
42
|
import { printNextSteps } from "../scaffold/presentation.js";
|
|
36
43
|
import { assertGeneratedWritePlan, writeGeneratedFile } from "../scaffold/write.js";
|
|
37
44
|
import { renderUsage, resolveCommand, validateCommandOptions } from "./command-registry.js";
|
|
38
45
|
import { CliUsageError, parseArgs } from "./parse-args.js";
|
|
39
46
|
import { pluginDefinition } from "./runtime-context.js";
|
|
40
47
|
import { createValidationHandlers } from "./validation-handlers.js";
|
|
48
|
+
import { printMcpLifecycleResult, runMcpLifecycle } from "../mcp-lifecycle/service.js";
|
|
49
|
+
import { promptControlMigration, promptControlRepair, promptInstallScope, promptInstallSetup } from "../install-setup/interaction.js";
|
|
50
|
+
import {
|
|
51
|
+
printInstallSetupResult,
|
|
52
|
+
renderInstallProgress,
|
|
53
|
+
renderLoadedSessionsNotice,
|
|
54
|
+
renderRuntimeCheckConsentDetails,
|
|
55
|
+
renderRuntimeCheckConsentDisclosure,
|
|
56
|
+
runtimeCheckInteractionCopy,
|
|
57
|
+
} from "../install-setup/presentation.js";
|
|
58
|
+
import { runInstallSetup } from "../install-setup/service.js";
|
|
41
59
|
|
|
42
|
-
function createHandlers({
|
|
60
|
+
function createHandlers({
|
|
61
|
+
io,
|
|
62
|
+
env,
|
|
63
|
+
exec,
|
|
64
|
+
packagedCopilotExec,
|
|
65
|
+
prepare,
|
|
66
|
+
preflightClaudeInstall: preflightClaude,
|
|
67
|
+
openCodePackageSource,
|
|
68
|
+
copilotSettingsPath,
|
|
69
|
+
askInstallSetupDecision,
|
|
70
|
+
askInstallSetupScope,
|
|
71
|
+
askRuntimeCheckDecision,
|
|
72
|
+
askControlMigration,
|
|
73
|
+
askControlRepair,
|
|
74
|
+
askControlRepairConfirmation,
|
|
75
|
+
inspectPluginInstallation,
|
|
76
|
+
interactive,
|
|
77
|
+
observeCodexHookTrust = observeCodexHooks,
|
|
78
|
+
approveCodexPluginDispatcher = approveCodexDispatcher,
|
|
79
|
+
revokeCodexPluginDispatcher = revokeCodexDispatcher,
|
|
80
|
+
evaluateStatus = evaluateStatusOverview,
|
|
81
|
+
evaluateOpenCodeGlobal = evaluateOpenCodeGlobalStatus,
|
|
82
|
+
evaluateOpenCodeRepository = evaluateOpenCodeStatus,
|
|
83
|
+
installOpenCodePackage = installOpenCodeGlobalPlugin,
|
|
84
|
+
installOpenCodeSurface = installOpenCodeGlobalSurface,
|
|
85
|
+
mcpLifecycle = runMcpLifecycle,
|
|
86
|
+
}) {
|
|
43
87
|
const installerAdapters = {
|
|
44
88
|
...(exec ? { exec } : {}),
|
|
45
89
|
...(packagedCopilotExec ? { packagedCopilotExec } : {}),
|
|
46
90
|
...(prepare ? { prepare } : {}),
|
|
47
|
-
...(
|
|
91
|
+
...(preflightClaude ? { preflight: preflightClaude } : {}),
|
|
92
|
+
copilotSettingsPath: copilotSettingsPath ?? defaultCopilotSettingsPath({ env }),
|
|
93
|
+
env,
|
|
48
94
|
...(env.AGDF_DATA_DIR ? { dataRoot: env.AGDF_DATA_DIR } : {}),
|
|
49
95
|
};
|
|
50
96
|
const scaffoldHandler = (options) => runScaffold(options, io);
|
|
97
|
+
const observeRuntimeChecks = async (surface, state, cwd) => {
|
|
98
|
+
if (surface !== "codex" || state.requested !== "enabled" || state.effective !== "decision_required") return state;
|
|
99
|
+
const observation = await observeCodexHookTrust({ cwd, env });
|
|
100
|
+
return projectCodexHookObservation(state, observation);
|
|
101
|
+
};
|
|
102
|
+
const guidedInstall = (options) => runGuidedInstall(options, {
|
|
103
|
+
io,
|
|
104
|
+
env,
|
|
105
|
+
interactive,
|
|
106
|
+
installerAdapters,
|
|
107
|
+
openCodePackageSource,
|
|
108
|
+
askInstallSetupDecision,
|
|
109
|
+
askInstallSetupScope,
|
|
110
|
+
askRuntimeCheckDecision,
|
|
111
|
+
askControlMigration,
|
|
112
|
+
askControlRepair,
|
|
113
|
+
askControlRepairConfirmation,
|
|
114
|
+
observeRuntimeChecks,
|
|
115
|
+
approveCodexPluginDispatcher,
|
|
116
|
+
evaluateOpenCodeGlobal,
|
|
117
|
+
installOpenCodePackage,
|
|
118
|
+
installOpenCodeSurface,
|
|
119
|
+
mcpLifecycle,
|
|
120
|
+
exec,
|
|
121
|
+
inspectPluginInstallation,
|
|
122
|
+
});
|
|
51
123
|
return new Map([
|
|
52
124
|
...createValidationHandlers(io),
|
|
53
125
|
["codex-repo", scaffoldHandler],
|
|
54
126
|
["opencode-repo", scaffoldHandler],
|
|
55
127
|
["init", scaffoldHandler],
|
|
56
128
|
["config", scaffoldHandler],
|
|
57
|
-
["run-create", (options) => {
|
|
58
|
-
io.log(createRun(options.dir, options.runId));
|
|
59
|
-
return 0;
|
|
60
|
-
}],
|
|
61
129
|
["run-migrate", (options) => {
|
|
62
130
|
io.log(JSON.stringify(migrateLegacy(options.dir, options.runId), null, 2));
|
|
63
131
|
return 0;
|
|
@@ -71,200 +139,320 @@ function createHandlers({ io, env, exec, packagedCopilotExec, prepare, openCodeP
|
|
|
71
139
|
}],
|
|
72
140
|
["opencode-status", (options) => {
|
|
73
141
|
const configDir = env.OPENCODE_CONFIG_DIR || defaultOpenCodeConfigDir();
|
|
74
|
-
const
|
|
142
|
+
const rawReport = options.dirExplicit
|
|
143
|
+
? evaluateOpenCodeRepository(options.dir, configDir)
|
|
144
|
+
: evaluateOpenCodeGlobal(configDir);
|
|
145
|
+
const installationEnvelope = installationEnvelopeForOpenCode(rawReport, configDir);
|
|
146
|
+
const report = options.dirExplicit
|
|
147
|
+
? {
|
|
148
|
+
...withOpenCodeRepositoryStatusEnvelope(rawReport, options.dir),
|
|
149
|
+
installation_status: installationEnvelope.installation_status,
|
|
150
|
+
}
|
|
151
|
+
: {
|
|
152
|
+
...rawReport,
|
|
153
|
+
...installationEnvelope,
|
|
154
|
+
};
|
|
75
155
|
printOpenCodeStatus(report, options.json, io);
|
|
76
|
-
return report.
|
|
156
|
+
return report.installation_status === "healthy" ? 0 : 1;
|
|
77
157
|
}],
|
|
78
|
-
["status", (options) => {
|
|
79
|
-
|
|
158
|
+
["status", async (options) => {
|
|
159
|
+
let report = evaluateStatus({
|
|
80
160
|
...options,
|
|
161
|
+
targetDir: options.dirExplicit ? options.dir : null,
|
|
81
162
|
configDir: env.OPENCODE_CONFIG_DIR || defaultOpenCodeConfigDir(),
|
|
82
163
|
dataRoot: env.AGDF_DATA_DIR,
|
|
83
164
|
}, { exec });
|
|
165
|
+
const runtimeChecks = await observeRuntimeChecks(report.installation.surface, report.runtime_checks, options.dir);
|
|
166
|
+
let mcp = { status: "not_checked", authorizes: false };
|
|
167
|
+
if (options.dirExplicit && ["codex", "claude", "copilot", "opencode"].includes(options.surface)) {
|
|
168
|
+
mcp = mcpLifecycle({
|
|
169
|
+
action: "status",
|
|
170
|
+
surface: options.surface,
|
|
171
|
+
scope: options.scope ?? "project",
|
|
172
|
+
target: options.dir,
|
|
173
|
+
env,
|
|
174
|
+
exec,
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
report = { ...report, runtime_checks: runtimeChecks, mcp };
|
|
84
178
|
printGeneralStatus(report, { json: options.json, io });
|
|
85
179
|
return report.installation.status === "healthy" ? 0 : 1;
|
|
86
180
|
}],
|
|
87
|
-
["runtime-checks", (options) => {
|
|
88
|
-
|
|
89
|
-
? setRuntimeChecksManual({ dataRoot: env.AGDF_DATA_DIR, surface: options.surface })
|
|
181
|
+
["runtime-checks", async (options) => {
|
|
182
|
+
let runtimeState = options.runtimeChecksAction === "manual"
|
|
183
|
+
? setRuntimeChecksManual({ dataRoot: env.AGDF_DATA_DIR, surface: options.surface, claudeSettingsPath: defaultClaudeSettingsPath({ env }) })
|
|
90
184
|
: runtimeCheckStatus(env.AGDF_DATA_DIR, options.surface);
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
185
|
+
runtimeState = await observeRuntimeChecks(options.surface, runtimeState, options.dir);
|
|
186
|
+
const nextActionText = options.runtimeChecksAction === "enable"
|
|
187
|
+
? `Rerun npx --yes @agdf/cli@latest ${options.surface} --runtime-checks ${options.runtimeChecksAction}; installation ownership and capability identity are revalidated before consent is persisted.`
|
|
188
|
+
: runtimeState.next_action || (runtimeState.effective === "manual" || runtimeState.effective === "enabled"
|
|
189
|
+
? "No further runtime-check action is required."
|
|
190
|
+
: `Review the runtime-check state, then rerun runtime-checks for ${options.surface}.`);
|
|
191
|
+
const report = {
|
|
192
|
+
schema_version: 1,
|
|
193
|
+
...runtimeState,
|
|
194
|
+
operation_status: createOperationStatus({
|
|
195
|
+
operationId: "runtime.checks",
|
|
196
|
+
outcome: options.runtimeChecksAction === "manual" ? "succeeded" : "reported",
|
|
197
|
+
targetScope: "global",
|
|
198
|
+
plannedEffect: options.runtimeChecksAction === "manual" ? "set_runtime_checks_manual" : "read_only_status",
|
|
199
|
+
excludedAuthority: ["target_inference", "run_creation", "gate_approval", "delivery_mutation"],
|
|
200
|
+
}),
|
|
201
|
+
next_action: { kind: "runtime_checks", text: nextActionText },
|
|
202
|
+
};
|
|
94
203
|
io.log(options.json ? JSON.stringify(report, null, 2) : [
|
|
95
204
|
"AGDF automatic runtime checks",
|
|
205
|
+
`Operation: ${report.operation_status.operation_id}`,
|
|
206
|
+
`Outcome: ${report.operation_status.outcome}`,
|
|
96
207
|
`Requested: ${report.requested}`,
|
|
97
208
|
`Effective: ${report.effective}`,
|
|
98
209
|
`Reason: ${report.reason}`,
|
|
99
|
-
|
|
210
|
+
`Next action: ${report.next_action.text}`,
|
|
100
211
|
].join("\n"));
|
|
101
212
|
return report.effective === "enabled" || report.effective === "manual" ? 0 : 1;
|
|
102
213
|
}],
|
|
103
|
-
["
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}), { json: options.json, compact: !options.verbose, io });
|
|
118
|
-
printVerboseHostOutput(installed, options, io);
|
|
119
|
-
return 0;
|
|
120
|
-
} catch (error) {
|
|
121
|
-
printInstallFailure(options.target, error, options, io);
|
|
122
|
-
return 1;
|
|
123
|
-
}
|
|
124
|
-
}],
|
|
125
|
-
["claude", async (options) => {
|
|
126
|
-
try {
|
|
127
|
-
const consent = await installConsentDecision("claude", options, { io, askRuntimeCheckDecision, interactive, dataRoot: installerAdapters.dataRoot });
|
|
128
|
-
if (consent.decision === "cancel") return printCancelledConsent("claude", options, io);
|
|
129
|
-
printInstallProgress("claude", options, io, interactive);
|
|
130
|
-
const installed = installClaudeGlobalPlugin(installerAdapters);
|
|
131
|
-
const finalizedConsent = finalizeInstallConsent(consent, { surface: "claude", installed, dataRoot: installerAdapters.dataRoot });
|
|
132
|
-
printLifecycleResult(installResult(installed, {
|
|
133
|
-
restartRequired: true,
|
|
134
|
-
nextAction: globalInstallRestartAction(options.target).text,
|
|
135
|
-
runtimeChecks: finalizedConsent.state,
|
|
136
|
-
consentFailure: finalizedConsent.failure,
|
|
137
|
-
}), { json: options.json, compact: !options.verbose, io });
|
|
138
|
-
printVerboseHostOutput(installed, options, io);
|
|
139
|
-
return 0;
|
|
140
|
-
} catch (error) {
|
|
141
|
-
printInstallFailure(options.target, error, options, io);
|
|
142
|
-
return 1;
|
|
143
|
-
}
|
|
144
|
-
}],
|
|
145
|
-
["copilot", async (options) => {
|
|
146
|
-
const surface = "copilot";
|
|
147
|
-
try {
|
|
148
|
-
const consent = await installConsentDecision(surface, options, { io, askRuntimeCheckDecision, interactive, dataRoot: installerAdapters.dataRoot });
|
|
149
|
-
if (consent.decision === "cancel") return printCancelledConsent(surface, options, io);
|
|
150
|
-
printInstallProgress(surface, options, io, interactive);
|
|
151
|
-
const installed = installCopilotGlobalPlugin({
|
|
152
|
-
...installerAdapters,
|
|
153
|
-
});
|
|
154
|
-
const finalizedConsent = finalizeInstallConsent(consent, { surface, installed, dataRoot: installerAdapters.dataRoot });
|
|
155
|
-
if (installed.declarativeConfigured) {
|
|
156
|
-
printLifecycleResult(createLifecycleResult({
|
|
157
|
-
operation: "install", result: "partial", surface, scope: "global",
|
|
158
|
-
version: { expected: installed.expectedVersion, installed: null, status: "unknown" },
|
|
159
|
-
verification: { status: "configured_pending_restart", evidence: installed.evidence },
|
|
160
|
-
installation: { status: "configured_pending_restart" },
|
|
161
|
-
activation: { status: "pending_restart" },
|
|
162
|
-
runtime_checks: finalizedConsent.state,
|
|
163
|
-
restart: { required: true, reason: "host_reload" },
|
|
164
|
-
next_action: { kind: "restart", text: "Restart GitHub Copilot. Then verify AGDF in Plugins and the agdf- skills in a fresh session." },
|
|
165
|
-
}), { json: options.json, compact: !options.verbose, io });
|
|
166
|
-
return 0;
|
|
167
|
-
}
|
|
168
|
-
if (installed.manualHandoff) {
|
|
169
|
-
printLifecycleResult(createLifecycleResult({
|
|
170
|
-
operation: "install", result: "partial", surface, scope: "global",
|
|
171
|
-
version: { expected: installed.expectedVersion, installed: null, status: "unknown" },
|
|
172
|
-
verification: { status: "unavailable", evidence: installed.evidence },
|
|
173
|
-
installation: { status: "not_verified" },
|
|
174
|
-
activation: { status: "not_verified" },
|
|
175
|
-
runtime_checks: finalizedConsent.state,
|
|
176
|
-
restart: { required: false, reason: "none" },
|
|
177
|
-
next_action: { kind: "manual_install", text: `In GitHub Copilot, run /plugins install ${installed.pluginRoot}. Then run /restart and verify /plugins list and /skills list.` },
|
|
178
|
-
failure: { phase: "executable", message: "Copilot CLI was not available; no plugin installation was performed." },
|
|
179
|
-
}), { json: options.json, compact: !options.verbose, io });
|
|
180
|
-
return 1;
|
|
181
|
-
}
|
|
182
|
-
printLifecycleResult(installResult(installed, {
|
|
183
|
-
restartRequired: true,
|
|
184
|
-
nextAction: installNextAction(surface, finalizedConsent.state, globalInstallRestartAction(surface).text),
|
|
185
|
-
runtimeChecks: finalizedConsent.state,
|
|
186
|
-
consentFailure: finalizedConsent.failure,
|
|
187
|
-
}), { json: options.json, compact: !options.verbose, io });
|
|
188
|
-
printVerboseHostOutput(installed, options, io);
|
|
189
|
-
return installed.verificationStatus === "healthy" ? 0 : 1;
|
|
190
|
-
} catch (error) {
|
|
191
|
-
printInstallFailure(surface, error, options, io, "copilot");
|
|
192
|
-
return 1;
|
|
193
|
-
}
|
|
214
|
+
["mcp", (options) => {
|
|
215
|
+
const report = mcpLifecycle({
|
|
216
|
+
action: options.mcpAction,
|
|
217
|
+
surface: options.surface,
|
|
218
|
+
scope: options.scope ?? "project",
|
|
219
|
+
target: options.dir,
|
|
220
|
+
...(options.retireCockpit || options.restoreCockpit ? { retireCockpit: options.retireCockpit,
|
|
221
|
+
restoreCockpit: options.restoreCockpit, cockpitEvidence: options.stepFields.evidence } : {}),
|
|
222
|
+
env,
|
|
223
|
+
exec,
|
|
224
|
+
});
|
|
225
|
+
printMcpLifecycleResult(report, { json: options.json, io, language: options.language?.chat_language ?? "en" });
|
|
226
|
+
return ["failed", "degraded"].includes(report.result)
|
|
227
|
+
|| ["manual_compatible", "unavailable", "unsupported"].includes(report.capability) ? 1 : 0;
|
|
194
228
|
}],
|
|
195
|
-
["
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
+
["disable", (options) => options.setupRequest === "full"
|
|
230
|
+
? runCoupledDisable(options, { io, env, exec, mcpLifecycle })
|
|
231
|
+
: runDisable(options, { io, exec })],
|
|
232
|
+
["uninstall", (options) => options.setupRequest === "full"
|
|
233
|
+
? runCoupledUninstall(options, { io, env, exec, mcpLifecycle, revokeCodexPolicy: revokeCodexPluginDispatcher })
|
|
234
|
+
: runUninstall(options, { io, env, exec, revokeCodexPolicy: revokeCodexPluginDispatcher })],
|
|
235
|
+
["codex", guidedInstall],
|
|
236
|
+
["claude", guidedInstall],
|
|
237
|
+
["copilot", guidedInstall],
|
|
238
|
+
["opencode", guidedInstall],
|
|
239
|
+
]);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
function pluginInstallFailure(surface, error) {
|
|
243
|
+
return lifecycleFailure({
|
|
244
|
+
operation: "install",
|
|
245
|
+
surface,
|
|
246
|
+
scope: "global",
|
|
247
|
+
phase: error.phase || "plugin_operation",
|
|
248
|
+
message: error.message,
|
|
249
|
+
evidence: failureEvidenceEntries(error.evidence),
|
|
250
|
+
nextAction: `Resolve the ${error.phase || "plugin operation"} failure and retry the same installation command.`,
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
function copilotInstallReport(installed, runtimeChecks) {
|
|
255
|
+
if (installed.declarativeConfigured) {
|
|
256
|
+
return createLifecycleResult({
|
|
257
|
+
operation: "install", result: "partial", surface: "copilot", scope: "global",
|
|
258
|
+
version: { expected: installed.expectedVersion, installed: null, status: "unknown" },
|
|
259
|
+
verification: { status: "configured_pending_restart", evidence: installed.evidence },
|
|
260
|
+
installation: { status: "configured_pending_restart" },
|
|
261
|
+
activation: { status: "pending_restart" },
|
|
262
|
+
runtime_checks: runtimeChecks,
|
|
263
|
+
restart: { required: true, reason: "host_reload" },
|
|
264
|
+
next_action: { kind: "restart", text: "Restart GitHub Copilot. Then verify AGDF in Plugins and the agdf- skills in a fresh session." },
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
if (installed.manualHandoff) {
|
|
268
|
+
return createLifecycleResult({
|
|
269
|
+
operation: "install", result: "partial", surface: "copilot", scope: "global",
|
|
270
|
+
version: { expected: installed.expectedVersion, installed: null, status: "unknown" },
|
|
271
|
+
verification: { status: "unavailable", evidence: installed.evidence },
|
|
272
|
+
installation: { status: "not_verified" },
|
|
273
|
+
activation: { status: "not_verified" },
|
|
274
|
+
runtime_checks: runtimeChecks,
|
|
275
|
+
restart: { required: false, reason: "none" },
|
|
276
|
+
next_action: { kind: "manual_install", text: "Install the Copilot CLI, then retry the AGDF Copilot installer. The prepared package is retained." },
|
|
277
|
+
failure: { phase: "executable", message: "Copilot CLI was not available; no plugin installation was performed." },
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
return installResult(installed, {
|
|
281
|
+
restartRequired: true,
|
|
282
|
+
nextAction: globalInstallRestartAction("copilot").text,
|
|
283
|
+
runtimeChecks,
|
|
284
|
+
consentFailure: null,
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
function installOpenCodePluginPayload(configDir, consent, {
|
|
289
|
+
openCodePackageSource,
|
|
290
|
+
installOpenCodePackage,
|
|
291
|
+
installOpenCodeSurface,
|
|
292
|
+
evaluateOpenCodeGlobal,
|
|
293
|
+
}) {
|
|
294
|
+
const installedPackage = runLifecyclePhase("plugin_operation", () => installOpenCodePackage(configDir, { packageSource: openCodePackageSource }));
|
|
295
|
+
runLifecyclePhase("global_surface", () => installOpenCodeSurface(configDir));
|
|
296
|
+
const globalReport = runLifecyclePhase("verification", () => evaluateOpenCodeGlobal(configDir));
|
|
297
|
+
const report = {
|
|
298
|
+
...globalReport,
|
|
299
|
+
package: { ...globalReport.package, transition: installedPackage.transition },
|
|
300
|
+
};
|
|
301
|
+
const alignmentHealthy = ["already_matching", "aligned"].includes(installedPackage.sdk_alignment.status);
|
|
302
|
+
const verificationHealthy = report.status === "configured"
|
|
303
|
+
&& report.package.version_status === "current"
|
|
304
|
+
&& report.global_native_surface.complete
|
|
305
|
+
&& report.experimental_hooks.aggregate === "declared_supported"
|
|
306
|
+
&& report.host_sdk_version.status === "matching"
|
|
307
|
+
&& alignmentHealthy;
|
|
308
|
+
const nextAction = verificationHealthy
|
|
309
|
+
? globalInstallRestartAction("opencode")
|
|
310
|
+
: {
|
|
311
|
+
kind: "recovery",
|
|
312
|
+
text: `Retry the OpenCode installation to align @opencode-ai/plugin to ${installedPackage.sdk_alignment.target_version || "the exact host version"}; observed SDK: ${installedPackage.sdk_alignment.installed_version || "unknown"}.`,
|
|
313
|
+
};
|
|
314
|
+
const lifecycleReport = createLifecycleResult({
|
|
315
|
+
operation: installedPackage.transition.status === "updated" ? "update" : "install",
|
|
316
|
+
result: verificationHealthy ? "success" : "partial",
|
|
317
|
+
surface: "opencode",
|
|
318
|
+
scope: "global",
|
|
319
|
+
version: {
|
|
320
|
+
expected: report.package.expected_version,
|
|
321
|
+
installed: report.package.installed_version,
|
|
322
|
+
previous: installedPackage.transition.previous_version,
|
|
323
|
+
status: report.package.version_status === "current" ? "verified" : "unknown",
|
|
324
|
+
transition: installedPackage.transition.status,
|
|
325
|
+
},
|
|
326
|
+
verification: {
|
|
327
|
+
status: verificationHealthy ? "healthy" : "degraded",
|
|
328
|
+
evidence: [
|
|
329
|
+
report.global_config.path,
|
|
330
|
+
report.global_native_surface.path,
|
|
331
|
+
`opencode_host=${report.host.installed_version || "unknown"}`,
|
|
332
|
+
`plugin_sdk=${report.plugin_sdk.installed_version || "unknown"}`,
|
|
333
|
+
`experimental_hooks=${report.experimental_hooks.aggregate}`,
|
|
334
|
+
`host_sdk_version=${report.host_sdk_version.status};policy=${report.host_sdk_version.policy}`,
|
|
335
|
+
`sdk_alignment=${installedPackage.sdk_alignment.status};target=${installedPackage.sdk_alignment.target_version || "unknown"};installed=${installedPackage.sdk_alignment.installed_version || "unknown"}`,
|
|
336
|
+
`package_source=${installedPackage.package_source.kind}${installedPackage.package_source.digest ? `;digest=${installedPackage.package_source.digest}` : ""}`,
|
|
337
|
+
],
|
|
338
|
+
},
|
|
339
|
+
restart: { required: true, reason: "host_reload" },
|
|
340
|
+
runtime_checks: consent.state,
|
|
341
|
+
next_action: nextAction,
|
|
342
|
+
});
|
|
343
|
+
return {
|
|
344
|
+
report: lifecycleReport,
|
|
345
|
+
installed: {
|
|
346
|
+
pluginRoot: installedPackage.installed_package.root,
|
|
347
|
+
digest: installedPackage.installed_package.digest,
|
|
348
|
+
sourceDigest: installedPackage.package_source.digest || installedPackage.installed_package.digest,
|
|
349
|
+
},
|
|
350
|
+
native: installedPackage,
|
|
351
|
+
openCodeReport: report,
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
function installPluginPayload(surface, options, consent, pluginConfiguration, dependencies) {
|
|
356
|
+
printInstallProgress(surface, options, dependencies.io, dependencies.interactive);
|
|
357
|
+
if (surface === "opencode") {
|
|
358
|
+
return installOpenCodePluginPayload(pluginConfiguration, consent, dependencies);
|
|
359
|
+
}
|
|
360
|
+
const installed = surface === "codex"
|
|
361
|
+
? installCodexGlobalPlugin({ ...dependencies.installerAdapters, target: options.dir })
|
|
362
|
+
: surface === "claude"
|
|
363
|
+
? installClaudeGlobalPlugin(dependencies.installerAdapters)
|
|
364
|
+
: installCopilotGlobalPlugin(dependencies.installerAdapters);
|
|
365
|
+
const report = surface === "copilot"
|
|
366
|
+
? copilotInstallReport(installed, consent.state)
|
|
367
|
+
: installResult(installed, {
|
|
368
|
+
restartRequired: true,
|
|
369
|
+
nextAction: globalInstallRestartAction(surface).text,
|
|
370
|
+
runtimeChecks: consent.state,
|
|
371
|
+
consentFailure: null,
|
|
372
|
+
});
|
|
373
|
+
return { report, installed };
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
function printOpenCodeVerbose(payload, options, io) {
|
|
377
|
+
if (!options.verbose || options.json || !payload?.openCodeReport) return;
|
|
378
|
+
const report = payload.openCodeReport;
|
|
379
|
+
const installed = payload.native;
|
|
380
|
+
io.log(`OpenCode host / plugin SDK: ${report.host.installed_version || "unknown"} / ${report.plugin_sdk.installed_version || "unknown"} (${report.host_sdk_version.status}; ${report.host_sdk_version.policy})`);
|
|
381
|
+
io.log(`Plugin SDK alignment: ${installed.sdk_alignment.status} (target ${installed.sdk_alignment.target_version || "unknown"}; installed ${installed.sdk_alignment.installed_version || "unknown"})`);
|
|
382
|
+
io.log(`Experimental hook declarations: ${report.experimental_hooks.aggregate} (SDK declaration evidence; live invocation not observed)`);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
async function runGuidedInstall(options, dependencies) {
|
|
386
|
+
const language = options.language?.chat_language ?? "en";
|
|
387
|
+
try {
|
|
388
|
+
// Inside a packaged app every following write would stay private to that app, so the Claude check
|
|
389
|
+
// runs before setup, consent, control or marketplace work can change anything.
|
|
390
|
+
if (options.target === "claude") {
|
|
391
|
+
(dependencies.installerAdapters.preflight ?? preflightClaudeInstall)({ env: dependencies.env });
|
|
392
|
+
}
|
|
393
|
+
const outcome = await runInstallSetup({ options, interactive: dependencies.interactive, env: dependencies.env }, {
|
|
394
|
+
exec: dependencies.exec,
|
|
395
|
+
inspectPlugin: dependencies.inspectPluginInstallation,
|
|
396
|
+
mcpLifecycle: dependencies.mcpLifecycle,
|
|
397
|
+
chooseSetup: dependencies.askInstallSetupDecision
|
|
398
|
+
? (preflight) => dependencies.askInstallSetupDecision(preflight)
|
|
399
|
+
: (preflight) => promptInstallSetup(preflight, { language }),
|
|
400
|
+
chooseScope: dependencies.askInstallSetupScope
|
|
401
|
+
? (preflight) => dependencies.askInstallSetupScope(preflight)
|
|
402
|
+
: (preflight) => promptInstallScope(preflight, { language }),
|
|
403
|
+
prepareRuntimeChecks: (surface, currentOptions) => installConsentDecision(surface, currentOptions, {
|
|
404
|
+
io: dependencies.io,
|
|
405
|
+
askRuntimeCheckDecision: dependencies.askRuntimeCheckDecision,
|
|
406
|
+
interactive: dependencies.interactive,
|
|
407
|
+
dataRoot: dependencies.installerAdapters.dataRoot,
|
|
408
|
+
language,
|
|
409
|
+
}),
|
|
410
|
+
installPlugin: ({ surface, options: currentOptions, plugin_configuration: pluginConfiguration, consent }) =>
|
|
411
|
+
installPluginPayload(surface, currentOptions, consent, pluginConfiguration, dependencies),
|
|
412
|
+
createPluginFailure: (error) => pluginInstallFailure(options.target, error),
|
|
413
|
+
finalizeRuntimeChecks: async (consent, payload) => {
|
|
414
|
+
const finalized = finalizeInstallConsent(consent, {
|
|
229
415
|
surface: options.target,
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
`sdk_alignment=${result.sdk_alignment.status};target=${result.sdk_alignment.target_version || "unknown"};installed=${result.sdk_alignment.installed_version || "unknown"}`,
|
|
248
|
-
`package_source=${result.package_source.kind}${result.package_source.digest ? `;digest=${result.package_source.digest}` : ""}`,
|
|
249
|
-
],
|
|
250
|
-
},
|
|
251
|
-
restart: { required: true, reason: "host_reload" },
|
|
252
|
-
runtime_checks: finalizedConsent.state,
|
|
253
|
-
next_action: nextAction,
|
|
254
|
-
failure: finalizedConsent.failure,
|
|
255
|
-
}), { json: options.json, compact: !options.verbose, io });
|
|
256
|
-
if (options.verbose && !options.json) {
|
|
257
|
-
io.log(`OpenCode host / plugin SDK: ${report.host.installed_version || "unknown"} / ${report.plugin_sdk.installed_version || "unknown"} (${report.host_sdk_version.status}; ${report.host_sdk_version.policy})`);
|
|
258
|
-
io.log(`Plugin SDK alignment: ${result.sdk_alignment.status} (target ${result.sdk_alignment.target_version || "unknown"}; installed ${result.sdk_alignment.installed_version || "unknown"})`);
|
|
259
|
-
io.log(`Experimental hook declarations: ${report.experimental_hooks.aggregate} (SDK declaration evidence; live invocation not observed)`);
|
|
416
|
+
installed: payload.installed,
|
|
417
|
+
dataRoot: dependencies.installerAdapters.dataRoot,
|
|
418
|
+
claudeSettingsPath: defaultClaudeSettingsPath({ env: dependencies.env }),
|
|
419
|
+
});
|
|
420
|
+
if (options.target === "codex") {
|
|
421
|
+
finalized.state = await dependencies.observeRuntimeChecks("codex", finalized.state, options.dir);
|
|
422
|
+
if (options.acceptPluginCapabilities && !finalized.failure) {
|
|
423
|
+
if (finalized.state.requested !== "enabled" || !finalized.state.capability_identity) {
|
|
424
|
+
finalized.failure = { phase: "runtime_check_permission", message: "AGDF_PLUGIN_CONSENT_IDENTITY_UNVERIFIED" };
|
|
425
|
+
} else {
|
|
426
|
+
const approval = await dependencies.approveCodexPluginDispatcher({ env: dependencies.env, cwd: options.workingDirectory });
|
|
427
|
+
finalized.state = { ...finalized.state, mcp_approval: approval };
|
|
428
|
+
if (approval.status !== "configured") finalized.failure = {
|
|
429
|
+
phase: "runtime_check_permission", message: `AGDF_MCP_APPROVAL_${approval.reason}`,
|
|
430
|
+
};
|
|
431
|
+
}
|
|
432
|
+
}
|
|
260
433
|
}
|
|
261
|
-
return
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
434
|
+
return finalized;
|
|
435
|
+
},
|
|
436
|
+
confirmControlMigration: dependencies.askControlMigration
|
|
437
|
+
? (plan) => dependencies.askControlMigration(plan)
|
|
438
|
+
: (plan) => promptControlMigration(plan, { language }),
|
|
439
|
+
chooseControlRepair: dependencies.askControlRepair
|
|
440
|
+
? (control) => dependencies.askControlRepair(control)
|
|
441
|
+
: (control) => promptControlRepair(control, { language }),
|
|
442
|
+
confirmControlRepair: dependencies.askControlRepairConfirmation
|
|
443
|
+
? (plan) => dependencies.askControlRepairConfirmation(plan)
|
|
444
|
+
: (plan) => promptControlRepair(plan, { language, phase: "plan" }),
|
|
445
|
+
});
|
|
446
|
+
printInstallSetupResult(outcome.report, { json: options.json, verbose: options.verbose, io: dependencies.io, language });
|
|
447
|
+
printLoadedSessionsNotice(outcome.plugin_payload?.installed ?? {}, options, dependencies.io, language);
|
|
448
|
+
printVerboseHostOutput(outcome.plugin_payload?.installed ?? {}, options, dependencies.io);
|
|
449
|
+
printVerboseFailure(outcome.report, options, dependencies.io);
|
|
450
|
+
printOpenCodeVerbose(outcome.plugin_payload, options, dependencies.io);
|
|
451
|
+
return ["failed", "partial"].includes(outcome.report.result) ? 1 : 0;
|
|
452
|
+
} catch (error) {
|
|
453
|
+
dependencies.io.error(error instanceof Error ? error.message : String(error));
|
|
454
|
+
return 1;
|
|
455
|
+
}
|
|
268
456
|
}
|
|
269
457
|
|
|
270
458
|
function runLifecyclePhase(phase, operation) {
|
|
@@ -277,9 +465,39 @@ function runLifecyclePhase(phase, operation) {
|
|
|
277
465
|
}
|
|
278
466
|
}
|
|
279
467
|
|
|
468
|
+
function withOpenCodeRepositoryStatusEnvelope(report, target) {
|
|
469
|
+
return Object.freeze({
|
|
470
|
+
...report,
|
|
471
|
+
operation_status: createOperationStatus({
|
|
472
|
+
operationId: "status.opencode_repository",
|
|
473
|
+
outcome: "reported",
|
|
474
|
+
targetScope: "repository",
|
|
475
|
+
target,
|
|
476
|
+
plannedEffect: "read_only_status",
|
|
477
|
+
excludedAuthority: ["target_inference", "run_creation", "gate_approval", "mutation"],
|
|
478
|
+
}),
|
|
479
|
+
next_action: {
|
|
480
|
+
kind: "action",
|
|
481
|
+
text: report.next_step || "Review the reported OpenCode status.",
|
|
482
|
+
},
|
|
483
|
+
});
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
function installationEnvelopeForOpenCode(report, configDir) {
|
|
487
|
+
const canonical = inspectGlobalInstallationStatus(
|
|
488
|
+
{ surface: "opencode", configDir },
|
|
489
|
+
{ evaluateOpenCodeGlobalStatus: () => report },
|
|
490
|
+
);
|
|
491
|
+
return {
|
|
492
|
+
installation_status: canonical.status,
|
|
493
|
+
operation_status: canonical.operation_status,
|
|
494
|
+
next_action: canonical.next_action,
|
|
495
|
+
};
|
|
496
|
+
}
|
|
497
|
+
|
|
280
498
|
function installNextAction(surface, runtimeChecks, fallback) {
|
|
281
499
|
if (surface === "codex" && runtimeChecks.requested === "enabled" && runtimeChecks.effective === "decision_required") {
|
|
282
|
-
return `${fallback}
|
|
500
|
+
return `${fallback} ${runtimeChecks.next_action}`;
|
|
283
501
|
}
|
|
284
502
|
if (surface === "copilot" && runtimeChecks.requested === "enabled" && runtimeChecks.effective === "decision_required") {
|
|
285
503
|
return `${fallback} Review the AGDF session hook when the fresh Copilot session asks.`;
|
|
@@ -290,7 +508,7 @@ function installNextAction(surface, runtimeChecks, fallback) {
|
|
|
290
508
|
function installResult(installed, { restartRequired, nextAction, runtimeChecks, consentFailure }) {
|
|
291
509
|
return createLifecycleResult({
|
|
292
510
|
operation: installed.operation ?? "install",
|
|
293
|
-
result: consentFailure ? "partial" : "success",
|
|
511
|
+
result: consentFailure || installed.cockpitTransition?.state === 'qualification_pending' ? "partial" : "success",
|
|
294
512
|
surface: installed.surface,
|
|
295
513
|
scope: "global",
|
|
296
514
|
version: { expected: installed.expectedVersion, installed: installed.installedVersion, status: installed.installedVersion ? "verified" : "unknown" },
|
|
@@ -322,47 +540,27 @@ function finalizeInstallConsent(consent, input) {
|
|
|
322
540
|
}
|
|
323
541
|
}
|
|
324
542
|
|
|
325
|
-
async function installConsentDecision(surface, options, { io, askRuntimeCheckDecision, interactive, dataRoot }) {
|
|
543
|
+
async function installConsentDecision(surface, options, { io, askRuntimeCheckDecision, interactive, dataRoot, language = "en" }) {
|
|
544
|
+
if (options.acceptPluginCapabilities) return prepareInstallConsent(surface, { ...options, runtimeChecksDecision: "enable" });
|
|
326
545
|
if (options.runtimeChecksDecision !== undefined) return prepareInstallConsent(surface, options);
|
|
546
|
+
// Claude Code runs the session check whenever the plugin is enabled, so installing it is the consent.
|
|
547
|
+
if (surface === "claude") return prepareInstallConsent(surface, { ...options, runtimeChecksDecision: "enable" });
|
|
327
548
|
if (!interactive || options.json || typeof askRuntimeCheckDecision !== "function") {
|
|
328
549
|
return prepareInstallConsent(surface, options);
|
|
329
550
|
}
|
|
330
551
|
const retained = retainCurrentInstallConsent(surface, dataRoot);
|
|
331
552
|
const disclosure = prepareInstallConsent(surface, { ...options, runtimeChecksDecision: "manual" }).disclosure;
|
|
332
|
-
printInstallConsentDisclosure(disclosure, retained, io);
|
|
333
|
-
const answer = await askRuntimeCheckDecision(disclosure);
|
|
553
|
+
printInstallConsentDisclosure(disclosure, retained, io, language);
|
|
554
|
+
const answer = await askRuntimeCheckDecision(disclosure, { language });
|
|
334
555
|
return prepareInstallConsent(surface, { ...options, runtimeChecksDecision: answer });
|
|
335
556
|
}
|
|
336
557
|
|
|
337
|
-
function printInstallConsentDisclosure(disclosure, retained, io) {
|
|
338
|
-
const
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
io.log(
|
|
343
|
-
io.log(`Let AGDF check your project status automatically ${disclosure.when}?`);
|
|
344
|
-
if (retained) {
|
|
345
|
-
io.log(retained.decision === "enable"
|
|
346
|
-
? "Your previous choice: automatic checks requested"
|
|
347
|
-
: "Your previous choice: manual checks");
|
|
348
|
-
if (retained.decision === "enable") io.log(`${host} permission: checked after installation`);
|
|
349
|
-
}
|
|
350
|
-
io.log("");
|
|
351
|
-
io.log("Safe by design");
|
|
352
|
-
io.log(" Reads only AGDF runtime information and .agdf/control in this project");
|
|
353
|
-
io.log(" Changes no project files and uses no network");
|
|
354
|
-
io.log(" Never approves AGDF work");
|
|
355
|
-
io.log("");
|
|
356
|
-
io.log(`AGDF saves your choice. ${host} remains in control of permission.`);
|
|
357
|
-
io.log("You choose again for every install or update and whenever the check changes.");
|
|
358
|
-
io.log(`Turn it off anytime: ${disclosure.revocation}`);
|
|
359
|
-
io.log("");
|
|
360
|
-
io.log("Choose");
|
|
361
|
-
io.log(" [1] Yes, check automatically");
|
|
362
|
-
io.log(" [2] No automatic checks");
|
|
363
|
-
io.log(" AGDF still works. Checks run when you request them.");
|
|
364
|
-
io.log(" [D] Show technical details");
|
|
365
|
-
io.log(" [Esc] Cancel installation");
|
|
558
|
+
function printInstallConsentDisclosure(disclosure, retained, io, language = "en") {
|
|
559
|
+
for (const line of renderRuntimeCheckConsentDisclosure(disclosure, {
|
|
560
|
+
retained,
|
|
561
|
+
version: pluginDefinition.version,
|
|
562
|
+
language,
|
|
563
|
+
})) io.log(line);
|
|
366
564
|
}
|
|
367
565
|
|
|
368
566
|
function installSurfaceLabel(surface) {
|
|
@@ -375,22 +573,11 @@ function installSurfaceLabel(surface) {
|
|
|
375
573
|
function printInstallProgress(surface, options, io, interactive) {
|
|
376
574
|
if (!interactive || options.json) return;
|
|
377
575
|
io.log("");
|
|
378
|
-
io.log(
|
|
576
|
+
io.log(renderInstallProgress(surface, pluginDefinition.version, { language: options.language?.chat_language ?? "en" }));
|
|
379
577
|
}
|
|
380
578
|
|
|
381
|
-
function installConsentTechnicalDetails(disclosure) {
|
|
382
|
-
return
|
|
383
|
-
"",
|
|
384
|
-
"Technical details",
|
|
385
|
-
` Applies to: ${disclosure.installation_scope}`,
|
|
386
|
-
` Runs: ${disclosure.runs} ${disclosure.when}`,
|
|
387
|
-
` Reads: ${disclosure.reads}`,
|
|
388
|
-
` Saves: ${disclosure.writes}`,
|
|
389
|
-
` Permission control: ${disclosure.permission_owner}`,
|
|
390
|
-
` Command: ${disclosure.executable}`,
|
|
391
|
-
` Renewal: ${disclosure.renewal}`,
|
|
392
|
-
"",
|
|
393
|
-
];
|
|
579
|
+
function installConsentTechnicalDetails(disclosure, language = "en") {
|
|
580
|
+
return renderRuntimeCheckConsentDetails(disclosure, { language });
|
|
394
581
|
}
|
|
395
582
|
|
|
396
583
|
function printCancelledConsent(surface, options, io) {
|
|
@@ -405,6 +592,30 @@ function printCancelledConsent(surface, options, io) {
|
|
|
405
592
|
return 0;
|
|
406
593
|
}
|
|
407
594
|
|
|
595
|
+
// Structured adapter evidence becomes readable "key:value" entries; String() on the object printed
|
|
596
|
+
// "[object Object]" and hid the cause of a failed plugin operation.
|
|
597
|
+
export function failureEvidenceEntries(evidence) {
|
|
598
|
+
if (evidence === undefined || evidence === null) return [];
|
|
599
|
+
if (Array.isArray(evidence)) return evidence.map((entry) => (typeof entry === "string" ? entry : JSON.stringify(entry)));
|
|
600
|
+
if (typeof evidence !== "object") return [String(evidence)];
|
|
601
|
+
return Object.entries(evidence).map(([key, value]) => `${key}:${typeof value === "string" ? value : JSON.stringify(value)}`);
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
function printVerboseFailure(report, options, io) {
|
|
605
|
+
if (!options.verbose || options.json || !report?.failure) return;
|
|
606
|
+
io.log("Technical failure detail:");
|
|
607
|
+
if (report.failure.message) io.log(` ${report.failure.message}`);
|
|
608
|
+
for (const entry of report.failure.evidence ?? []) io.log(` ${entry}`);
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
function printLoadedSessionsNotice(installed, options, io, language) {
|
|
612
|
+
if (options.json) return;
|
|
613
|
+
const entry = (installed.evidence ?? []).find((item) => String(item).startsWith("claude_sessions_with_agdf:"));
|
|
614
|
+
if (!entry) return;
|
|
615
|
+
const count = entry.slice("claude_sessions_with_agdf:".length).split(",").length;
|
|
616
|
+
io.log(renderLoadedSessionsNotice(count, installed.expectedVersion ?? pluginDefinition.version, { language }));
|
|
617
|
+
}
|
|
618
|
+
|
|
408
619
|
function printVerboseHostOutput(installed, options, io) {
|
|
409
620
|
if (!options.verbose || options.json || !installed.nativeOutput?.length) return;
|
|
410
621
|
io.log("Host command output:");
|
|
@@ -418,7 +629,7 @@ function printInstallFailure(surface, error, options, io, command = surface) {
|
|
|
418
629
|
scope: "global",
|
|
419
630
|
phase: error.phase || "plugin_operation",
|
|
420
631
|
message: error.message,
|
|
421
|
-
evidence:
|
|
632
|
+
evidence: failureEvidenceEntries(error.evidence),
|
|
422
633
|
nextAction: `Resolve the ${error.phase || "plugin operation"} failure and rerun npx --yes @agdf/cli@latest ${command}.`,
|
|
423
634
|
});
|
|
424
635
|
if (options.json) printLifecycleResult(report, { json: true, io });
|
|
@@ -428,7 +639,171 @@ function printInstallFailure(surface, error, options, io, command = surface) {
|
|
|
428
639
|
}
|
|
429
640
|
}
|
|
430
641
|
|
|
431
|
-
function
|
|
642
|
+
function createCoupledLifecycleResult({ operation, result, surface, target, mcpScope, plugin, mcp, nextAction }) {
|
|
643
|
+
if (!new Set(["coupled_disable", "coupled_uninstall"]).has(operation)
|
|
644
|
+
|| !new Set(["success", "partial", "failed", "preview"]).has(result)
|
|
645
|
+
|| !["codex", "claude", "copilot", "opencode"].includes(surface)
|
|
646
|
+
|| !["project", "user"].includes(mcpScope)
|
|
647
|
+
|| typeof target !== "string" || !isAbsolute(target)
|
|
648
|
+
|| !plugin || !mcp || typeof nextAction?.code !== "string" || typeof nextAction?.text !== "string") {
|
|
649
|
+
throw new Error("AGDF_COUPLED_LIFECYCLE_RESULT_INVALID");
|
|
650
|
+
}
|
|
651
|
+
return Object.freeze({
|
|
652
|
+
schema_version: 1,
|
|
653
|
+
contract_version: 1,
|
|
654
|
+
operation,
|
|
655
|
+
result,
|
|
656
|
+
surface,
|
|
657
|
+
target,
|
|
658
|
+
plugin_scope: operation === "coupled_disable" ? "repository" : "global",
|
|
659
|
+
mcp_scope: mcpScope,
|
|
660
|
+
plugin,
|
|
661
|
+
mcp,
|
|
662
|
+
next_action: Object.freeze({ code: nextAction.code, text: nextAction.text }),
|
|
663
|
+
authorizes: false,
|
|
664
|
+
});
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
function printCoupledLifecycleResult(report, { json, io }) {
|
|
668
|
+
if (json) {
|
|
669
|
+
io.log(JSON.stringify(report, null, 2));
|
|
670
|
+
return;
|
|
671
|
+
}
|
|
672
|
+
io.log(report.operation === "coupled_disable" ? "AGDF plugin and MCP disable" : "AGDF plugin and MCP uninstall");
|
|
673
|
+
io.log(`Result: ${report.result}`);
|
|
674
|
+
io.log(`Surface: ${report.surface}`);
|
|
675
|
+
io.log(`Target: ${report.target}`);
|
|
676
|
+
io.log(`MCP scope: ${report.mcp_scope}`);
|
|
677
|
+
io.log(`MCP: ${report.mcp.result ?? report.mcp.status}`);
|
|
678
|
+
io.log(`Plugin: ${report.plugin.result ?? report.plugin.status}`);
|
|
679
|
+
io.log(`Authorizes: ${report.authorizes}`);
|
|
680
|
+
io.log(`Next action: ${report.next_action.text}`);
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
function inspectCoupledMcp(options, { env, exec, mcpLifecycle }, scope) {
|
|
684
|
+
return mcpLifecycle({ action: "status", surface: options.surface, scope, target: options.dir, env, exec });
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
function mcpPreflightBlocked(report) {
|
|
688
|
+
return report.result === "failed"
|
|
689
|
+
|| ["foreign", "precedence_conflict", "invalid"].includes(report.registration?.status);
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
function mcpDisableSucceeded(report) {
|
|
693
|
+
return ["disabled", "unchanged"].includes(report.result);
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
function coupledPreflightFailure(operation, options, scope, mcp) {
|
|
697
|
+
return createCoupledLifecycleResult({
|
|
698
|
+
operation,
|
|
699
|
+
result: "failed",
|
|
700
|
+
surface: options.surface,
|
|
701
|
+
target: options.dir,
|
|
702
|
+
mcpScope: scope,
|
|
703
|
+
plugin: { status: "not_run" },
|
|
704
|
+
mcp,
|
|
705
|
+
nextAction: {
|
|
706
|
+
code: "resolve_mcp_registration",
|
|
707
|
+
text: "Resolve the reported MCP ownership or precedence conflict before retrying.",
|
|
708
|
+
},
|
|
709
|
+
});
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
function runCoupledDisable(options, dependencies) {
|
|
713
|
+
const scope = "project";
|
|
714
|
+
try {
|
|
715
|
+
const before = inspectCoupledMcp(options, dependencies, scope);
|
|
716
|
+
if (mcpPreflightBlocked(before)) {
|
|
717
|
+
const report = coupledPreflightFailure("coupled_disable", options, scope, before);
|
|
718
|
+
printCoupledLifecycleResult(report, { json: options.json, io: dependencies.io });
|
|
719
|
+
return 1;
|
|
720
|
+
}
|
|
721
|
+
const mcp = dependencies.mcpLifecycle({
|
|
722
|
+
action: "disable", surface: options.surface, scope, target: options.dir,
|
|
723
|
+
env: dependencies.env, exec: dependencies.exec,
|
|
724
|
+
});
|
|
725
|
+
if (!mcpDisableSucceeded(mcp)) {
|
|
726
|
+
const report = createCoupledLifecycleResult({
|
|
727
|
+
operation: "coupled_disable", result: "failed", surface: options.surface, target: options.dir,
|
|
728
|
+
mcpScope: scope, plugin: { status: "not_run" }, mcp,
|
|
729
|
+
nextAction: { code: "retry_mcp_disable", text: "Resolve the MCP disable failure before changing the repository plugin state." },
|
|
730
|
+
});
|
|
731
|
+
printCoupledLifecycleResult(report, { json: options.json, io: dependencies.io });
|
|
732
|
+
return 1;
|
|
733
|
+
}
|
|
734
|
+
const plugin = executeDisable(options, dependencies);
|
|
735
|
+
const result = plugin.code === 0 ? "success" : "partial";
|
|
736
|
+
const report = createCoupledLifecycleResult({
|
|
737
|
+
operation: "coupled_disable", result, surface: options.surface, target: options.dir,
|
|
738
|
+
mcpScope: scope, plugin: plugin.report, mcp,
|
|
739
|
+
nextAction: result === "success"
|
|
740
|
+
? { code: "restart_host", text: "Restart the host and verify that the repository plugin and project MCP registration are disabled." }
|
|
741
|
+
: { code: "retry_plugin_disable", text: "MCP is disabled. Resolve the repository plugin disable failure without re-enabling MCP." },
|
|
742
|
+
});
|
|
743
|
+
printCoupledLifecycleResult(report, { json: options.json, io: dependencies.io });
|
|
744
|
+
return result === "success" ? 0 : 1;
|
|
745
|
+
} catch (error) {
|
|
746
|
+
dependencies.io.error(error instanceof Error ? error.message : String(error));
|
|
747
|
+
return 1;
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
async function runCoupledUninstall(options, dependencies) {
|
|
752
|
+
const scope = options.mcpScope;
|
|
753
|
+
try {
|
|
754
|
+
const before = inspectCoupledMcp(options, dependencies, scope);
|
|
755
|
+
if (mcpPreflightBlocked(before)) {
|
|
756
|
+
const report = coupledPreflightFailure("coupled_uninstall", options, scope, before);
|
|
757
|
+
printCoupledLifecycleResult(report, { json: options.json, io: dependencies.io });
|
|
758
|
+
return 1;
|
|
759
|
+
}
|
|
760
|
+
if (!options.confirm) {
|
|
761
|
+
const plugin = await executeUninstall(options, dependencies);
|
|
762
|
+
const report = createCoupledLifecycleResult({
|
|
763
|
+
operation: "coupled_uninstall", result: "preview", surface: options.surface, target: options.dir,
|
|
764
|
+
mcpScope: scope, plugin: plugin.report, mcp: before,
|
|
765
|
+
nextAction: { code: "confirm", text: "Review both plans, then rerun the same command with --confirm. Both owners revalidate before mutation." },
|
|
766
|
+
});
|
|
767
|
+
printCoupledLifecycleResult(report, { json: options.json, io: dependencies.io });
|
|
768
|
+
return 0;
|
|
769
|
+
}
|
|
770
|
+
const revalidated = inspectCoupledMcp(options, dependencies, scope);
|
|
771
|
+
if (mcpPreflightBlocked(revalidated)) {
|
|
772
|
+
const report = coupledPreflightFailure("coupled_uninstall", options, scope, revalidated);
|
|
773
|
+
printCoupledLifecycleResult(report, { json: options.json, io: dependencies.io });
|
|
774
|
+
return 1;
|
|
775
|
+
}
|
|
776
|
+
const mcp = dependencies.mcpLifecycle({
|
|
777
|
+
action: "disable", surface: options.surface, scope, target: options.dir,
|
|
778
|
+
env: dependencies.env, exec: dependencies.exec,
|
|
779
|
+
});
|
|
780
|
+
if (!mcpDisableSucceeded(mcp)) {
|
|
781
|
+
const report = createCoupledLifecycleResult({
|
|
782
|
+
operation: "coupled_uninstall", result: "failed", surface: options.surface, target: options.dir,
|
|
783
|
+
mcpScope: scope, plugin: { status: "not_run" }, mcp,
|
|
784
|
+
nextAction: { code: "retry_mcp_disable", text: "Resolve the MCP disable failure before uninstalling the plugin." },
|
|
785
|
+
});
|
|
786
|
+
printCoupledLifecycleResult(report, { json: options.json, io: dependencies.io });
|
|
787
|
+
return 1;
|
|
788
|
+
}
|
|
789
|
+
const plugin = await executeUninstall(options, dependencies);
|
|
790
|
+
const result = plugin.code === 0 ? "success" : "partial";
|
|
791
|
+
const report = createCoupledLifecycleResult({
|
|
792
|
+
operation: "coupled_uninstall", result, surface: options.surface, target: options.dir,
|
|
793
|
+
mcpScope: scope, plugin: plugin.report, mcp,
|
|
794
|
+
nextAction: result === "success"
|
|
795
|
+
? { code: "restart_host", text: "Restart the host and verify that AGDF plugin and selected MCP registration are absent." }
|
|
796
|
+
: { code: "retry_plugin_uninstall", text: "MCP is disabled. Resolve the plugin uninstall failure without recreating the MCP registration." },
|
|
797
|
+
});
|
|
798
|
+
printCoupledLifecycleResult(report, { json: options.json, io: dependencies.io });
|
|
799
|
+
return result === "success" ? 0 : 1;
|
|
800
|
+
} catch (error) {
|
|
801
|
+
dependencies.io.error(error instanceof Error ? error.message : String(error));
|
|
802
|
+
return 1;
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
function executeDisable(options, { exec }) {
|
|
432
807
|
try {
|
|
433
808
|
const plan = planRepositoryDisable(options.dir, options.surface, { shared: options.shared, exec });
|
|
434
809
|
const applied = applyLifecyclePlan(plan, exec ? { exec } : {});
|
|
@@ -441,6 +816,7 @@ function runDisable(options, { io, exec }) {
|
|
|
441
816
|
result,
|
|
442
817
|
surface: options.surface,
|
|
443
818
|
scope: "repository",
|
|
819
|
+
target: options.dir,
|
|
444
820
|
verification: { status: verified.status === "healthy" ? "healthy" : "degraded", evidence: [...applied.completed.map((item) => item.path || item.executable), ...verified.evidence] },
|
|
445
821
|
activation: { status: result === "success" ? "pending_restart" : "unknown" },
|
|
446
822
|
restart: { required: result === "success", reason: result === "success" ? "host_reload" : "none" },
|
|
@@ -455,31 +831,33 @@ function runDisable(options, { io, exec }) {
|
|
|
455
831
|
? { phase: "repository_configuration", message: applied.error.message }
|
|
456
832
|
: result === "failed" ? { phase: "verification", message: "Repository disable postcondition was not observed." } : null,
|
|
457
833
|
});
|
|
458
|
-
|
|
459
|
-
return result === "success" ? 0 : 1;
|
|
834
|
+
return { report, code: result === "success" ? 0 : 1 };
|
|
460
835
|
} catch (error) {
|
|
461
836
|
const report = lifecycleFailure({
|
|
462
837
|
operation: "disable",
|
|
463
838
|
surface: options.surface,
|
|
464
839
|
scope: "repository",
|
|
840
|
+
target: options.dir,
|
|
465
841
|
phase: "repository_preflight",
|
|
466
842
|
message: error.message,
|
|
467
843
|
evidence: [error.message],
|
|
468
844
|
nextAction: "Resolve the reported repository configuration or ignore precondition, then retry disable without changing unrelated files.",
|
|
469
845
|
});
|
|
470
|
-
|
|
471
|
-
else {
|
|
472
|
-
io.error(error.message);
|
|
473
|
-
printLifecycleResult(report, { io });
|
|
474
|
-
}
|
|
475
|
-
return 1;
|
|
846
|
+
return { report, code: 1, error };
|
|
476
847
|
}
|
|
477
848
|
}
|
|
478
849
|
|
|
479
|
-
function
|
|
850
|
+
function runDisable(options, { io, exec }) {
|
|
851
|
+
const outcome = executeDisable(options, { exec });
|
|
852
|
+
if (outcome.error && !options.json) io.error(outcome.error.message);
|
|
853
|
+
printLifecycleResult(outcome.report, { json: options.json, io });
|
|
854
|
+
return outcome.code;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
async function executeUninstall(options, { env, exec, revokeCodexPolicy = revokeCodexDispatcher }) {
|
|
480
858
|
try {
|
|
481
859
|
const configDir = env.OPENCODE_CONFIG_DIR || defaultOpenCodeConfigDir();
|
|
482
|
-
const plan = planGlobalUninstall(options.surface, { configDir });
|
|
860
|
+
const plan = planGlobalUninstall(options.surface, { configDir, env, ...(exec ? { exec } : {}) });
|
|
483
861
|
if (!options.confirm) {
|
|
484
862
|
const preview = createLifecycleResult({
|
|
485
863
|
operation: "uninstall", result: "preview", surface: options.surface, scope: "global",
|
|
@@ -488,51 +866,110 @@ function runUninstall(options, { io, env, exec }) {
|
|
|
488
866
|
next_action: { kind: "confirm", text: `Review this preview, then rerun with --surface ${options.surface} --scope global --confirm; ownership is revalidated before apply.` },
|
|
489
867
|
changes: plan.mutations, retained: plan.retained,
|
|
490
868
|
});
|
|
491
|
-
|
|
492
|
-
return 0;
|
|
869
|
+
return { report: preview, code: 0 };
|
|
493
870
|
}
|
|
494
871
|
const applied = applyLifecyclePlan(plan, exec ? { exec } : {});
|
|
495
872
|
const verified = applied.status === "success"
|
|
496
873
|
? verifyGlobalUninstall(plan, options.dir, { configDir, exec })
|
|
497
874
|
: { status: "failed", evidence: [] };
|
|
498
|
-
|
|
875
|
+
// The Codex tool approval is config, not plugin content: revoke it natively and report what remains.
|
|
876
|
+
const policyMutation = plan.mutations.find((mutation) => mutation.kind === "codex_tool_policy");
|
|
877
|
+
const policy = policyMutation && applied.status === "success"
|
|
878
|
+
? await revokeCodexPolicy({ env, cwd: options.dir })
|
|
879
|
+
: null;
|
|
880
|
+
const policyClean = !policy || ["removed", "absent"].includes(policy.status);
|
|
881
|
+
const completed = policy?.status === "removed" ? [...applied.completed, policyMutation] : applied.completed;
|
|
882
|
+
const retained = policyClean ? applied.retained
|
|
883
|
+
: [...(applied.retained ?? []), `Codex tool approval ${policyMutation.key} (${policy.status}: ${policy.reason})`];
|
|
884
|
+
const result = applied.status === "success" && verified.status !== "healthy" ? "failed"
|
|
885
|
+
: applied.status === "success" && !policyClean ? "partial" : applied.status;
|
|
499
886
|
const report = createLifecycleResult({
|
|
500
887
|
operation: "uninstall", result, surface: options.surface, scope: "global",
|
|
501
|
-
verification: { status: verified.status === "healthy" ? "healthy" : "degraded", evidence: [
|
|
888
|
+
verification: { status: verified.status === "healthy" && policyClean ? "healthy" : "degraded", evidence: [
|
|
889
|
+
...applied.completed.map((item) => item.path || item.executable), ...verified.evidence,
|
|
890
|
+
...(policy ? [`codex_tool_policy:${policy.status}`] : []),
|
|
891
|
+
] },
|
|
502
892
|
restart: { required: result === "success", reason: result === "success" ? "host_reload" : "none" },
|
|
503
893
|
next_action: result === "success"
|
|
504
894
|
? { kind: "restart", text: "Restart the host; the uninstall postcondition has already been verified." }
|
|
505
|
-
:
|
|
506
|
-
|
|
895
|
+
: !policyClean
|
|
896
|
+
? { kind: "verify", text: `The plugin is removed, but Codex kept ${policyMutation.key} in ${policy?.config_file || "the active Codex config.toml"}; remove or change that setting there, then retry uninstall.` }
|
|
897
|
+
: { kind: "verify", text: "Inspect the reported uninstall or verification failure before retrying." },
|
|
898
|
+
changes: completed, retained,
|
|
507
899
|
failure: applied.error
|
|
508
900
|
? { phase: "plugin_operation", message: applied.error.message }
|
|
509
901
|
: result === "failed" ? { phase: "verification", message: "Global uninstall postcondition was not observed." } : null,
|
|
510
902
|
});
|
|
511
|
-
|
|
512
|
-
return result === "success" ? 0 : 1;
|
|
903
|
+
return { report, code: result === "success" ? 0 : 1 };
|
|
513
904
|
} catch (error) {
|
|
514
|
-
|
|
515
|
-
|
|
905
|
+
const report = lifecycleFailure({
|
|
906
|
+
operation: "uninstall",
|
|
907
|
+
surface: options.surface,
|
|
908
|
+
scope: "global",
|
|
909
|
+
phase: error.phase || "uninstall_preflight",
|
|
910
|
+
message: error.message,
|
|
911
|
+
evidence: [error.evidence ?? error.message],
|
|
912
|
+
nextAction: "Resolve the reported global uninstall precondition, then rerun the uninstall preview before applying changes.",
|
|
913
|
+
});
|
|
914
|
+
return { report, code: 1, error };
|
|
516
915
|
}
|
|
517
916
|
}
|
|
518
917
|
|
|
918
|
+
async function runUninstall(options, { io, env, exec, revokeCodexPolicy }) {
|
|
919
|
+
const outcome = await executeUninstall(options, { env, exec, revokeCodexPolicy });
|
|
920
|
+
if (outcome.error && !options.json) io.error(outcome.error.message);
|
|
921
|
+
printLifecycleResult(outcome.report, { json: options.json, io });
|
|
922
|
+
return outcome.code;
|
|
923
|
+
}
|
|
924
|
+
|
|
519
925
|
function runScaffold(options, io) {
|
|
520
|
-
|
|
926
|
+
let files = [];
|
|
521
927
|
let removedOpenCodeAgents = [];
|
|
928
|
+
let initialization = null;
|
|
522
929
|
|
|
523
930
|
try {
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
931
|
+
files = generatedFilesForTarget(options.target, options.dir, options.force, options.language);
|
|
932
|
+
if (options.target === "init") {
|
|
933
|
+
initialization = initializeCanonicalControl(options.dir, files, { force: options.force });
|
|
934
|
+
files = [...initialization.files];
|
|
935
|
+
} else {
|
|
936
|
+
assertGeneratedWritePlan(options.dir, files, options.force);
|
|
937
|
+
for (const file of files) {
|
|
938
|
+
writeGeneratedFile(options.dir, file.path, file.content, options.force, file.allowOverwrite);
|
|
939
|
+
}
|
|
527
940
|
}
|
|
528
941
|
// Legacy OpenCode assets are intentionally preserved. A future explicit migration command
|
|
529
942
|
// may remove only ownership-proven files after its precedence behavior is verified.
|
|
530
943
|
} catch (error) {
|
|
531
|
-
|
|
944
|
+
const repositorySurface = { "codex-repo": "codex", "opencode-repo": "opencode" }[options.target];
|
|
945
|
+
if (options.target === "init" || repositorySurface) {
|
|
946
|
+
const report = lifecycleFailure({
|
|
947
|
+
operation: options.target === "init" ? "control_init" : "repository_setup",
|
|
948
|
+
surface: repositorySurface ?? "generic",
|
|
949
|
+
scope: "repository",
|
|
950
|
+
target: options.dir,
|
|
951
|
+
phase: options.target === "init" ? "canonical_control_setup" : "repository_setup",
|
|
952
|
+
message: error.message,
|
|
953
|
+
evidence: [error.message],
|
|
954
|
+
nextAction: "Resolve the reported repository setup conflict, then retry with the same explicit target.",
|
|
955
|
+
});
|
|
956
|
+
if (options.json) printLifecycleResult(report, { json: true, io });
|
|
957
|
+
else {
|
|
958
|
+
io.error(error.message);
|
|
959
|
+
printLifecycleResult(report, { io });
|
|
960
|
+
}
|
|
961
|
+
} else {
|
|
962
|
+
io.error(error.message);
|
|
963
|
+
}
|
|
532
964
|
return 1;
|
|
533
965
|
}
|
|
534
966
|
|
|
535
|
-
printNextSteps(options.target, options.dir, files, removedOpenCodeAgents, {
|
|
967
|
+
printNextSteps(options.target, options.dir, files, removedOpenCodeAgents, {
|
|
968
|
+
verbose: options.verbose,
|
|
969
|
+
json: options.json,
|
|
970
|
+
io,
|
|
971
|
+
initialization,
|
|
972
|
+
});
|
|
536
973
|
return 0;
|
|
537
974
|
}
|
|
538
975
|
|
|
@@ -574,10 +1011,26 @@ export async function runCli(argv = process.argv.slice(2), adapters = {}) {
|
|
|
574
1011
|
exec: adapters.exec,
|
|
575
1012
|
packagedCopilotExec: adapters.packagedCopilotExec,
|
|
576
1013
|
prepare: adapters.prepare,
|
|
1014
|
+
preflightClaudeInstall: adapters.preflightClaudeInstall,
|
|
577
1015
|
openCodePackageSource: adapters.openCodePackageSource,
|
|
578
1016
|
copilotSettingsPath: adapters.copilotSettingsPath,
|
|
579
1017
|
askRuntimeCheckDecision: adapters.askRuntimeCheckDecision ?? defaultAskRuntimeCheckDecision,
|
|
1018
|
+
askInstallSetupDecision: adapters.askInstallSetupDecision,
|
|
1019
|
+
askInstallSetupScope: adapters.askInstallSetupScope,
|
|
1020
|
+
askControlMigration: adapters.askControlMigration,
|
|
1021
|
+
askControlRepair: adapters.askControlRepair,
|
|
1022
|
+
askControlRepairConfirmation: adapters.askControlRepairConfirmation,
|
|
1023
|
+
inspectPluginInstallation: adapters.inspectPluginInstallation,
|
|
580
1024
|
interactive: adapters.interactive ?? (Boolean(process.stdin.isTTY) && Boolean(process.stdout.isTTY)),
|
|
1025
|
+
observeCodexHookTrust: adapters.observeCodexHookTrust,
|
|
1026
|
+
approveCodexPluginDispatcher: adapters.approveCodexPluginDispatcher,
|
|
1027
|
+
revokeCodexPluginDispatcher: adapters.revokeCodexPluginDispatcher,
|
|
1028
|
+
evaluateStatus: adapters.evaluateStatusOverview,
|
|
1029
|
+
evaluateOpenCodeGlobal: adapters.evaluateOpenCodeGlobalStatus,
|
|
1030
|
+
evaluateOpenCodeRepository: adapters.evaluateOpenCodeStatus,
|
|
1031
|
+
installOpenCodePackage: adapters.installOpenCodeGlobalPlugin,
|
|
1032
|
+
installOpenCodeSurface: adapters.installOpenCodeGlobalSurface,
|
|
1033
|
+
mcpLifecycle: adapters.mcpLifecycle,
|
|
581
1034
|
}).get(command.handler);
|
|
582
1035
|
if (!handler) throw new Error(`No implementation is registered for ${command.name}.`);
|
|
583
1036
|
return await handler(options);
|
|
@@ -585,32 +1038,34 @@ export async function runCli(argv = process.argv.slice(2), adapters = {}) {
|
|
|
585
1038
|
|
|
586
1039
|
export const main = runCli;
|
|
587
1040
|
|
|
588
|
-
async function defaultAskRuntimeCheckDecision(disclosure) {
|
|
1041
|
+
async function defaultAskRuntimeCheckDecision(disclosure, { language = "en" } = {}) {
|
|
589
1042
|
if (process.stdin.isTTY && typeof process.stdin.setRawMode === "function") {
|
|
590
|
-
return askRuntimeCheckDecisionByKey(process.stdin, process.stdout, disclosure);
|
|
1043
|
+
return askRuntimeCheckDecisionByKey(process.stdin, process.stdout, disclosure, { language });
|
|
591
1044
|
}
|
|
1045
|
+
const copy = runtimeCheckInteractionCopy({ language });
|
|
592
1046
|
const prompt = createInterface({ input: process.stdin, output: process.stdout });
|
|
593
1047
|
try {
|
|
594
1048
|
while (true) {
|
|
595
|
-
const answer = (await prompt.question(
|
|
1049
|
+
const answer = (await prompt.question(copy.linePrompt)).trim().toLowerCase();
|
|
596
1050
|
if (["1", "e", "enable"].includes(answer)) return "enable";
|
|
597
1051
|
if (["2", "m", "manual"].includes(answer)) return "manual";
|
|
598
1052
|
if (["d", "details"].includes(answer)) {
|
|
599
|
-
for (const line of installConsentTechnicalDetails(disclosure)) process.stdout.write(`${line}\n`);
|
|
1053
|
+
for (const line of installConsentTechnicalDetails(disclosure, language)) process.stdout.write(`${line}\n`);
|
|
600
1054
|
continue;
|
|
601
1055
|
}
|
|
602
|
-
if (["c", "cancel"].includes(answer)) return "cancel";
|
|
603
|
-
process.stdout.write(
|
|
1056
|
+
if (["c", "cancel", "abbrechen"].includes(answer)) return "cancel";
|
|
1057
|
+
process.stdout.write(`${copy.lineInvalid}\n`);
|
|
604
1058
|
}
|
|
605
1059
|
} finally {
|
|
606
1060
|
prompt.close();
|
|
607
1061
|
}
|
|
608
1062
|
}
|
|
609
1063
|
|
|
610
|
-
export async function askRuntimeCheckDecisionByKey(input, output, disclosure) {
|
|
1064
|
+
export async function askRuntimeCheckDecisionByKey(input, output, disclosure, { language = "en" } = {}) {
|
|
1065
|
+
const copy = runtimeCheckInteractionCopy({ language });
|
|
611
1066
|
const wasRaw = Boolean(input.isRaw);
|
|
612
1067
|
emitKeypressEvents(input);
|
|
613
|
-
output.write(
|
|
1068
|
+
output.write(copy.keyPrompt);
|
|
614
1069
|
if (!wasRaw) input.setRawMode(true);
|
|
615
1070
|
input.resume();
|
|
616
1071
|
|
|
@@ -619,7 +1074,7 @@ export async function askRuntimeCheckDecisionByKey(input, output, disclosure) {
|
|
|
619
1074
|
input.off("keypress", onKeypress);
|
|
620
1075
|
if (!wasRaw) input.setRawMode(false);
|
|
621
1076
|
input.pause();
|
|
622
|
-
output.write(`${decision}\n`);
|
|
1077
|
+
output.write(`${copy.decisionEcho[decision]}\n`);
|
|
623
1078
|
resolve(decision);
|
|
624
1079
|
};
|
|
625
1080
|
const onKeypress = (character, key = {}) => {
|
|
@@ -629,10 +1084,10 @@ export async function askRuntimeCheckDecisionByKey(input, output, disclosure) {
|
|
|
629
1084
|
if (["2", "m"].includes(choice)) return finish("manual");
|
|
630
1085
|
if (choice === "c") return finish("cancel");
|
|
631
1086
|
if (choice === "d" && disclosure) {
|
|
632
|
-
output.write(
|
|
1087
|
+
output.write(`${copy.detailsEcho}\n${installConsentTechnicalDetails(disclosure, language).join("\n")}${copy.keyPrompt}`);
|
|
633
1088
|
return;
|
|
634
1089
|
}
|
|
635
|
-
output.write(
|
|
1090
|
+
output.write(`\n${copy.keyInvalid}\n${copy.keyPrompt}`);
|
|
636
1091
|
};
|
|
637
1092
|
input.on("keypress", onKeypress);
|
|
638
1093
|
});
|