@ai-atomic-framework/cli 0.1.0-beta.0 → 0.1.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_vendor/agent-pack-claude-code/dist/index.js +40 -0
- package/dist/_vendor/agent-pack-claude-code/templates/atm-bootstrap.md.tmpl +9 -0
- package/dist/_vendor/agent-pack-claude-code/templates/atm-evidence.md.tmpl +10 -0
- package/dist/_vendor/agent-pack-claude-code/templates/atm-handoff.md.tmpl +9 -0
- package/dist/_vendor/agent-pack-claude-code/templates/atm-lock.md.tmpl +10 -0
- package/dist/_vendor/agent-pack-claude-code/templates/atm-next.md.tmpl +12 -0
- package/dist/_vendor/agent-pack-claude-code/templates/atm-verify.md.tmpl +8 -0
- package/dist/_vendor/agent-pack-copilot/dist/index.js +30 -0
- package/dist/_vendor/agent-pack-cursor/dist/index.js +30 -0
- package/dist/_vendor/agent-pack-gemini/dist/index.js +30 -0
- package/dist/_vendor/agent-pack-sdk/dist/experimental/index.js +54 -0
- package/dist/_vendor/agent-pack-sdk/dist/index.js +40 -0
- package/dist/_vendor/agent-pack-sdk/dist/install-manifest.js +49 -0
- package/dist/_vendor/agent-pack-windsurf/dist/index.js +54 -0
- package/dist/_vendor/atm-markdown-task-source/dist/index.js +87 -0
- package/dist/_vendor/atm-markdown-task-source/dist/task-card-parser.js +1 -0
- package/dist/_vendor/atm-markdown-task-source/dist/templates.js +48 -0
- package/dist/_vendor/atm-markdown-task-source/templates/aao-l2-split-template.md +47 -0
- package/dist/_vendor/core/dist/agent-execute/execute-agent-task.js +295 -0
- package/dist/_vendor/core/dist/agent-execute/execution-constants.js +16 -0
- package/dist/_vendor/core/dist/agent-execute/execution-documents.js +83 -0
- package/dist/_vendor/core/dist/agent-execute/execution-validation.js +97 -0
- package/dist/_vendor/core/dist/agent-prompt/build-agent-prompt.js +191 -0
- package/dist/_vendor/core/dist/architecture/index.js +1 -0
- package/dist/_vendor/core/dist/architecture/module-boundary.js +167 -0
- package/dist/_vendor/core/dist/batch/plan-run-journal.js +181 -0
- package/dist/_vendor/core/dist/broker/adapters/atom-map.js +205 -0
- package/dist/_vendor/core/dist/broker/adapters/batch-planner.js +121 -0
- package/dist/_vendor/core/dist/broker/adapters/cas.js +26 -0
- package/dist/_vendor/core/dist/broker/adapters/fallback-file-lock.js +64 -0
- package/dist/_vendor/core/dist/broker/adapters/index.js +8 -0
- package/dist/_vendor/core/dist/broker/adapters/json-record.js +170 -0
- package/dist/_vendor/core/dist/broker/adapters/numeric-scalar.js +155 -0
- package/dist/_vendor/core/dist/broker/adapters/registry.js +79 -0
- package/dist/_vendor/core/dist/broker/adapters/text-range.js +143 -0
- package/dist/_vendor/core/dist/broker/admission/contracts.js +1 -0
- package/dist/_vendor/core/dist/broker/admission/evaluate-broker-admission.js +127 -0
- package/dist/_vendor/core/dist/broker/agr.js +22 -0
- package/dist/_vendor/core/dist/broker/apply-evidence.js +32 -0
- package/dist/_vendor/core/dist/broker/atm-core-scope.js +139 -0
- package/dist/_vendor/core/dist/broker/boundaries/content-anchor.js +60 -0
- package/dist/_vendor/core/dist/broker/boundaries/index.js +2 -0
- package/dist/_vendor/core/dist/broker/boundaries/resolver.js +76 -0
- package/dist/_vendor/core/dist/broker/candidate-bridge.js +76 -0
- package/dist/_vendor/core/dist/broker/census/index.js +40 -0
- package/dist/_vendor/core/dist/broker/compose.js +187 -0
- package/dist/_vendor/core/dist/broker/conflict-key-overlap.js +59 -0
- package/dist/_vendor/core/dist/broker/conflict-matrix.js +350 -0
- package/dist/_vendor/core/dist/broker/cross-task-mutation-guard.js +507 -0
- package/dist/_vendor/core/dist/broker/decision/admission.js +58 -0
- package/dist/_vendor/core/dist/broker/decision/decomposition.js +188 -0
- package/dist/_vendor/core/dist/broker/decision/failure.js +5 -0
- package/dist/_vendor/core/dist/broker/decision/physical-overlap.js +78 -0
- package/dist/_vendor/core/dist/broker/decision/proposal-overlap.js +173 -0
- package/dist/_vendor/core/dist/broker/decision/surfaces.js +12 -0
- package/dist/_vendor/core/dist/broker/decision.js +213 -0
- package/dist/_vendor/core/dist/broker/failure-reason.js +79 -0
- package/dist/_vendor/core/dist/broker/foreign-generated-residue-disposition.js +66 -0
- package/dist/_vendor/core/dist/broker/freeze.js +126 -0
- package/dist/_vendor/core/dist/broker/generated-projection-steward.js +213 -0
- package/dist/_vendor/core/dist/broker/global-resource-projection.js +116 -0
- package/dist/_vendor/core/dist/broker/historical-work-admission-attestation.js +173 -0
- package/dist/_vendor/core/dist/broker/index.js +44 -0
- package/dist/_vendor/core/dist/broker/intent-enrichment.js +10 -0
- package/dist/_vendor/core/dist/broker/lifecycle/index.js +149 -0
- package/dist/_vendor/core/dist/broker/lifecycle.js +242 -0
- package/dist/_vendor/core/dist/broker/merge-plan.js +83 -0
- package/dist/_vendor/core/dist/broker/orphan-cleanup.js +108 -0
- package/dist/_vendor/core/dist/broker/parallel-admission-policy.js +229 -0
- package/dist/_vendor/core/dist/broker/patch-candidate-materializer.js +126 -0
- package/dist/_vendor/core/dist/broker/patch-envelope-atm-core.js +45 -0
- package/dist/_vendor/core/dist/broker/patch-envelope.js +97 -0
- package/dist/_vendor/core/dist/broker/policy.js +89 -0
- package/dist/_vendor/core/dist/broker/post-compose-semantic-validation-policy.js +199 -0
- package/dist/_vendor/core/dist/broker/projections/atomic-broker-projection.js +142 -0
- package/dist/_vendor/core/dist/broker/proposal.js +203 -0
- package/dist/_vendor/core/dist/broker/reconcile/broker-projection-reconcile.js +57 -0
- package/dist/_vendor/core/dist/broker/recovery.js +182 -0
- package/dist/_vendor/core/dist/broker/registry-store.js +176 -0
- package/dist/_vendor/core/dist/broker/registry.js +365 -0
- package/dist/_vendor/core/dist/broker/related-task-batching.js +34 -0
- package/dist/_vendor/core/dist/broker/replay/dashboard.js +130 -0
- package/dist/_vendor/core/dist/broker/replay/index.js +164 -0
- package/dist/_vendor/core/dist/broker/replay/lifecycle-receipt-observability.js +133 -0
- package/dist/_vendor/core/dist/broker/replay/lifecycle-receipt-types.js +47 -0
- package/dist/_vendor/core/dist/broker/replay/lifecycle-receipt-validation.js +13 -0
- package/dist/_vendor/core/dist/broker/replay/lifecycle-receipts.js +261 -0
- package/dist/_vendor/core/dist/broker/replay/runner-discrimination.js +311 -0
- package/dist/_vendor/core/dist/broker/resource-overlap.js +203 -0
- package/dist/_vendor/core/dist/broker/runner-bootstrap.js +65 -0
- package/dist/_vendor/core/dist/broker/runner-build-output-inventory.js +359 -0
- package/dist/_vendor/core/dist/broker/runner-execution-attestation.js +24 -0
- package/dist/_vendor/core/dist/broker/runner-ref-store.js +65 -0
- package/dist/_vendor/core/dist/broker/runner-registry-snapshot.js +58 -0
- package/dist/_vendor/core/dist/broker/runner-selection-verification-ports.js +1 -0
- package/dist/_vendor/core/dist/broker/runner-shadow-feedback-sink.js +12 -0
- package/dist/_vendor/core/dist/broker/runner-submit-pipeline.js +67 -0
- package/dist/_vendor/core/dist/broker/runner-sync-session.js +302 -0
- package/dist/_vendor/core/dist/broker/runner-sync-steward-queue.js +436 -0
- package/dist/_vendor/core/dist/broker/runner-version-contract.js +188 -0
- package/dist/_vendor/core/dist/broker/runner-version-registry.js +163 -0
- package/dist/_vendor/core/dist/broker/runner-version-selection-verifier.js +182 -0
- package/dist/_vendor/core/dist/broker/runner-version-state.js +63 -0
- package/dist/_vendor/core/dist/broker/semantic-adjudication/index.js +1 -0
- package/dist/_vendor/core/dist/broker/semantic-adjudication/policy.js +122 -0
- package/dist/_vendor/core/dist/broker/semantic-contract.js +1 -0
- package/dist/_vendor/core/dist/broker/shared-delivery-commit.js +177 -0
- package/dist/_vendor/core/dist/broker/shared-delivery-saga.js +187 -0
- package/dist/_vendor/core/dist/broker/shared-surface-queue.js +185 -0
- package/dist/_vendor/core/dist/broker/shared-write-provenance-policy.js +252 -0
- package/dist/_vendor/core/dist/broker/steward-transactional-apply.js +369 -0
- package/dist/_vendor/core/dist/broker/steward.js +464 -0
- package/dist/_vendor/core/dist/broker/team-lane/support.js +186 -0
- package/dist/_vendor/core/dist/broker/team-lane.js +357 -0
- package/dist/_vendor/core/dist/broker/team-wave-admission.js +111 -0
- package/dist/_vendor/core/dist/broker/team-wave-checkpoint.js +52 -0
- package/dist/_vendor/core/dist/broker/team-wave-envelope.js +59 -0
- package/dist/_vendor/core/dist/broker/team-wave-evidence.js +56 -0
- package/dist/_vendor/core/dist/broker/team-wave-planner.js +142 -0
- package/dist/_vendor/core/dist/broker/team-worker-report.js +63 -0
- package/dist/_vendor/core/dist/broker/terminal-history-entitlement.js +79 -0
- package/dist/_vendor/core/dist/broker/test-case-contribution.js +142 -0
- package/dist/_vendor/core/dist/broker/ticket-authority/index.js +114 -0
- package/dist/_vendor/core/dist/broker/ticket-policy.js +65 -0
- package/dist/_vendor/core/dist/broker/ticket-state.js +106 -0
- package/dist/_vendor/core/dist/broker/ticket-store.js +476 -0
- package/dist/_vendor/core/dist/broker/transaction-authority.js +125 -0
- package/dist/_vendor/core/dist/broker/transactional-composer.js +205 -0
- package/dist/_vendor/core/dist/broker/types.js +27 -0
- package/dist/_vendor/core/dist/broker/unified-patch.js +116 -0
- package/dist/_vendor/core/dist/broker/wave-broker-scheduler.js +190 -0
- package/dist/_vendor/core/dist/broker/wave-generated-executor.js +194 -0
- package/dist/_vendor/core/dist/broker/wave-manifest.js +138 -0
- package/dist/_vendor/core/dist/broker/work-admission-ticket.js +301 -0
- package/dist/_vendor/core/dist/broker/workspace-topology-policy.js +46 -0
- package/dist/_vendor/core/dist/broker/write-scope-policy.js +220 -0
- package/dist/_vendor/core/dist/broker/write-ticket.js +61 -0
- package/dist/_vendor/core/dist/cache/guide-cache.js +234 -0
- package/dist/_vendor/core/dist/commit-attribution/sealed-commit-bundle.js +209 -0
- package/dist/_vendor/core/dist/commit-candidate/commit-candidate-store.js +96 -0
- package/dist/_vendor/core/dist/commit-candidate/commit-candidate.js +134 -0
- package/dist/_vendor/core/dist/daemon/daemon-config.js +143 -0
- package/dist/_vendor/core/dist/daemon/daemon-watcher.js +150 -0
- package/dist/_vendor/core/dist/equivalence/run-map-equivalence.js +358 -0
- package/dist/_vendor/core/dist/error-code-registry.generated.js +3 -0
- package/dist/_vendor/core/dist/evidence/acceptance-predicate.js +109 -0
- package/dist/_vendor/core/dist/evidence/acceptance-spec-mutation.js +22 -0
- package/dist/_vendor/core/dist/evidence/adapter-parity.js +91 -0
- package/dist/_vendor/core/dist/evidence/anti-gaming-control.js +20 -0
- package/dist/_vendor/core/dist/evidence/causal-neighborhood.js +17 -0
- package/dist/_vendor/core/dist/evidence/closure-assurance-machine.js +248 -0
- package/dist/_vendor/core/dist/evidence/complexity-interface-size.js +17 -0
- package/dist/_vendor/core/dist/evidence/concurrency-fuzz-generators.js +22 -0
- package/dist/_vendor/core/dist/evidence/concurrency-schedule-obligations.js +67 -0
- package/dist/_vendor/core/dist/evidence/constraint-solver.js +137 -0
- package/dist/_vendor/core/dist/evidence/coverage-certificate.js +24 -0
- package/dist/_vendor/core/dist/evidence/coverage-ratchet-baseline.js +47 -0
- package/dist/_vendor/core/dist/evidence/coverage-semantics.js +94 -0
- package/dist/_vendor/core/dist/evidence/coverage-universe-compiler.js +204 -0
- package/dist/_vendor/core/dist/evidence/dependency-graph-bypass-gate.js +98 -0
- package/dist/_vendor/core/dist/evidence/diagnostic-loop.js +145 -0
- package/dist/_vendor/core/dist/evidence/diff-evidence.js +200 -0
- package/dist/_vendor/core/dist/evidence/evidence-freshness-certificate.js +39 -0
- package/dist/_vendor/core/dist/evidence/evidence-ledger.js +49 -0
- package/dist/_vendor/core/dist/evidence/example-branch-generators.js +27 -0
- package/dist/_vendor/core/dist/evidence/fault-fingerprint.js +56 -0
- package/dist/_vendor/core/dist/evidence/four-plan-independent-certificate.js +291 -0
- package/dist/_vendor/core/dist/evidence/gap-planning.js +105 -0
- package/dist/_vendor/core/dist/evidence/git-boundary-evidence.js +61 -0
- package/dist/_vendor/core/dist/evidence/governance-model-adapters.js +43 -0
- package/dist/_vendor/core/dist/evidence/hostile-dogfood.js +136 -0
- package/dist/_vendor/core/dist/evidence/index.js +50 -0
- package/dist/_vendor/core/dist/evidence/legal-recovery-checkpoints.js +46 -0
- package/dist/_vendor/core/dist/evidence/mutation-lineage.js +321 -0
- package/dist/_vendor/core/dist/evidence/obligation-inventory.js +144 -0
- package/dist/_vendor/core/dist/evidence/observed-source-adapters.js +9 -0
- package/dist/_vendor/core/dist/evidence/observed-source.js +68 -0
- package/dist/_vendor/core/dist/evidence/oracle-adjudication.js +18 -0
- package/dist/_vendor/core/dist/evidence/performance-resilience-ratchet.js +62 -0
- package/dist/_vendor/core/dist/evidence/phase-suite.js +128 -0
- package/dist/_vendor/core/dist/evidence/plan-closeout-dashboard.js +124 -0
- package/dist/_vendor/core/dist/evidence/property-metamorphic-generators.js +103 -0
- package/dist/_vendor/core/dist/evidence/quality-authority.js +16 -0
- package/dist/_vendor/core/dist/evidence/quality-gauntlet.js +162 -0
- package/dist/_vendor/core/dist/evidence/quality-vector.js +12 -0
- package/dist/_vendor/core/dist/evidence/realness.js +116 -0
- package/dist/_vendor/core/dist/evidence/regression-family.js +69 -0
- package/dist/_vendor/core/dist/evidence/sandboxed-test-patch.js +65 -0
- package/dist/_vendor/core/dist/evidence/security-quality-receipts.js +53 -0
- package/dist/_vendor/core/dist/evidence/shadow-comparison.js +147 -0
- package/dist/_vendor/core/dist/evidence/state-replay.js +109 -0
- package/dist/_vendor/core/dist/evidence/structural-coverage.js +106 -0
- package/dist/_vendor/core/dist/evidence/tdd-cycle.js +285 -0
- package/dist/_vendor/core/dist/evidence/test-case-catalog.js +427 -0
- package/dist/_vendor/core/dist/evidence/validation-contract.js +350 -0
- package/dist/_vendor/core/dist/evidence/validation-receipt.js +315 -0
- package/dist/_vendor/core/dist/evidence/validator-catalog-selection.js +221 -0
- package/dist/_vendor/core/dist/evidence/validator-lifecycle.js +160 -0
- package/dist/_vendor/core/dist/evidence/wave-exit-observer-input-digest.js +107 -0
- package/dist/_vendor/core/dist/evidence/wave-exit-observer-receipt-writer.js +288 -0
- package/dist/_vendor/core/dist/evidence/wave-exit-observer-receipt.js +445 -0
- package/dist/_vendor/core/dist/git/admission.js +376 -0
- package/dist/_vendor/core/dist/git/diff-mutation-request.js +161 -0
- package/dist/_vendor/core/dist/git/format-adapter-bridge.js +370 -0
- package/dist/_vendor/core/dist/git/index.js +4 -0
- package/dist/_vendor/core/dist/git/publication-delivery-slice.js +180 -0
- package/dist/_vendor/core/dist/governance/operation-cleanup-contract.js +47 -0
- package/dist/_vendor/core/dist/governance/scope-lock.js +284 -0
- package/dist/_vendor/core/dist/guidance/first-layer-command-contracts.js +172 -0
- package/dist/_vendor/core/dist/guidance/guidance-packet.js +73 -0
- package/dist/_vendor/core/dist/guidance/index.js +8 -0
- package/dist/_vendor/core/dist/guidance/intent-classifier.js +495 -0
- package/dist/_vendor/core/dist/guidance/legacy-route-plan.js +317 -0
- package/dist/_vendor/core/dist/guidance/mutation-gate.js +120 -0
- package/dist/_vendor/core/dist/guidance/project-probe.js +370 -0
- package/dist/_vendor/core/dist/guidance/route-engine.js +253 -0
- package/dist/_vendor/core/dist/guidance/session-store.js +104 -0
- package/dist/_vendor/core/dist/hash-lock/hash-lock.js +89 -0
- package/dist/_vendor/core/dist/index.js +26 -0
- package/dist/_vendor/core/dist/lane/lane-capability-provider.js +242 -0
- package/dist/_vendor/core/dist/lane/lifecycle.js +62 -0
- package/dist/_vendor/core/dist/lane/wip-ownership-transition.js +134 -0
- package/dist/_vendor/core/dist/manager/atom-generator.js +455 -0
- package/dist/_vendor/core/dist/manager/atom-space.js +41 -0
- package/dist/_vendor/core/dist/manager/id-allocator.js +80 -0
- package/dist/_vendor/core/dist/manager/map-generator/errors.js +15 -0
- package/dist/_vendor/core/dist/manager/map-generator/normalize-fields.js +70 -0
- package/dist/_vendor/core/dist/manager/map-generator/normalize-lineage.js +76 -0
- package/dist/_vendor/core/dist/manager/map-generator/runtime-support.js +194 -0
- package/dist/_vendor/core/dist/manager/map-generator/spec-support.js +164 -0
- package/dist/_vendor/core/dist/manager/map-generator/types.js +1 -0
- package/dist/_vendor/core/dist/manager/map-generator.js +151 -0
- package/dist/_vendor/core/dist/manager/map-id-allocator.js +68 -0
- package/dist/_vendor/core/dist/manager/scaffold.js +144 -0
- package/dist/_vendor/core/dist/manager/test-runner/report-support.js +212 -0
- package/dist/_vendor/core/dist/manager/test-runner.js +417 -0
- package/dist/_vendor/core/dist/maps/atom-memo-cache.js +102 -0
- package/dist/_vendor/core/dist/maps/edge-contract-runner.js +133 -0
- package/dist/_vendor/core/dist/maps/fingerprint-checker.js +81 -0
- package/dist/_vendor/core/dist/maps/map-health-report.js +137 -0
- package/dist/_vendor/core/dist/maps/mermaid-gen.js +55 -0
- package/dist/_vendor/core/dist/maps/shadow-comparator.js +127 -0
- package/dist/_vendor/core/dist/police/constants.js +2 -0
- package/dist/_vendor/core/dist/police/dependency-graph.js +109 -0
- package/dist/_vendor/core/dist/police/family.js +295 -0
- package/dist/_vendor/core/dist/police/forbidden-import-scanner.js +72 -0
- package/dist/_vendor/core/dist/police/index.js +41 -0
- package/dist/_vendor/core/dist/police/layer-boundary.js +94 -0
- package/dist/_vendor/core/dist/police/registry-consistency.js +52 -0
- package/dist/_vendor/core/dist/police/regression-compare.js +197 -0
- package/dist/_vendor/core/dist/police/rescue-family.js +299 -0
- package/dist/_vendor/core/dist/police/role-registry.js +29 -0
- package/dist/_vendor/core/dist/police/roles/adopter-neutrality.js +44 -0
- package/dist/_vendor/core/dist/police/roles/atomization.js +81 -0
- package/dist/_vendor/core/dist/police/roles/decomposition.js +115 -0
- package/dist/_vendor/core/dist/police/roles/dedup.js +84 -0
- package/dist/_vendor/core/dist/police/roles/demand.js +40 -0
- package/dist/_vendor/core/dist/police/roles/evidence-integrity.js +107 -0
- package/dist/_vendor/core/dist/police/roles/evolution.js +115 -0
- package/dist/_vendor/core/dist/police/roles/map-integration.js +77 -0
- package/dist/_vendor/core/dist/police/roles/noise-control.js +45 -0
- package/dist/_vendor/core/dist/police/roles/polymorph.js +143 -0
- package/dist/_vendor/core/dist/police/roles/quality.js +85 -0
- package/dist/_vendor/core/dist/police/roles/reversibility.js +48 -0
- package/dist/_vendor/core/dist/police/roles/rollback.js +98 -0
- package/dist/_vendor/core/dist/police/schema-validator.js +84 -0
- package/dist/_vendor/core/dist/police/shared.js +103 -0
- package/dist/_vendor/core/dist/police/suppression-keys.js +22 -0
- package/dist/_vendor/core/dist/police/types.js +1 -0
- package/dist/_vendor/core/dist/polymorph/dimension-detector.js +41 -0
- package/dist/_vendor/core/dist/polymorph/impact.js +226 -0
- package/dist/_vendor/core/dist/polymorph/template.js +60 -0
- package/dist/_vendor/core/dist/registry/atom-capsule.js +147 -0
- package/dist/_vendor/core/dist/registry/atom-ref-readability/callsites.js +131 -0
- package/dist/_vendor/core/dist/registry/atom-ref-readability/catalog.js +201 -0
- package/dist/_vendor/core/dist/registry/atom-ref-readability/files.js +51 -0
- package/dist/_vendor/core/dist/registry/atom-ref-readability/render.js +84 -0
- package/dist/_vendor/core/dist/registry/atom-ref-readability/reports.js +46 -0
- package/dist/_vendor/core/dist/registry/atom-ref-readability/types.js +32 -0
- package/dist/_vendor/core/dist/registry/atom-ref-readability.js +95 -0
- package/dist/_vendor/core/dist/registry/atom-runtime.generated.js +48 -0
- package/dist/_vendor/core/dist/registry/atom-runtime.js +42 -0
- package/dist/_vendor/core/dist/registry/capsule-registry.js +119 -0
- package/dist/_vendor/core/dist/registry/catalog-category-deriver.js +60 -0
- package/dist/_vendor/core/dist/registry/decomposition-plan.js +332 -0
- package/dist/_vendor/core/dist/registry/diff.js +275 -0
- package/dist/_vendor/core/dist/registry/map-capsule-registry.js +75 -0
- package/dist/_vendor/core/dist/registry/map-capsule.js +116 -0
- package/dist/_vendor/core/dist/registry/map-hash.js +53 -0
- package/dist/_vendor/core/dist/registry/map-registry.js +81 -0
- package/dist/_vendor/core/dist/registry/progression-policy.js +229 -0
- package/dist/_vendor/core/dist/registry/registry/document.js +53 -0
- package/dist/_vendor/core/dist/registry/registry/drift.js +61 -0
- package/dist/_vendor/core/dist/registry/registry/entry.js +150 -0
- package/dist/_vendor/core/dist/registry/registry/paths.js +67 -0
- package/dist/_vendor/core/dist/registry/registry/types.js +1 -0
- package/dist/_vendor/core/dist/registry/registry/validation.js +400 -0
- package/dist/_vendor/core/dist/registry/registry-catalog.js +171 -0
- package/dist/_vendor/core/dist/registry/registry-index.js +183 -0
- package/dist/_vendor/core/dist/registry/registry-migration.js +71 -0
- package/dist/_vendor/core/dist/registry/registry.js +6 -0
- package/dist/_vendor/core/dist/registry/replacement-lane/constants.js +20 -0
- package/dist/_vendor/core/dist/registry/replacement-lane/evidence.js +162 -0
- package/dist/_vendor/core/dist/registry/replacement-lane/support.js +88 -0
- package/dist/_vendor/core/dist/registry/replacement-lane/target.js +62 -0
- package/dist/_vendor/core/dist/registry/replacement-lane/transition.js +102 -0
- package/dist/_vendor/core/dist/registry/replacement-lane/types.js +5 -0
- package/dist/_vendor/core/dist/registry/replacement-lane/validation.js +128 -0
- package/dist/_vendor/core/dist/registry/replacement-lane.js +2 -0
- package/dist/_vendor/core/dist/registry/retirement-proof.js +71 -0
- package/dist/_vendor/core/dist/registry/rollback-map.js +91 -0
- package/dist/_vendor/core/dist/registry/rollback-proof.js +66 -0
- package/dist/_vendor/core/dist/registry/rollback-registry-helpers.js +18 -0
- package/dist/_vendor/core/dist/registry/rollback-types.js +6 -0
- package/dist/_vendor/core/dist/registry/rollback.js +156 -0
- package/dist/_vendor/core/dist/registry/semantic-fingerprint.js +93 -0
- package/dist/_vendor/core/dist/registry/status-machine.js +293 -0
- package/dist/_vendor/core/dist/registry/status-migration.js +33 -0
- package/dist/_vendor/core/dist/registry/urn.js +179 -0
- package/dist/_vendor/core/dist/rescue/atom-reloader.js +96 -0
- package/dist/_vendor/core/dist/rescue/disaster-recovery.js +156 -0
- package/dist/_vendor/core/dist/rescue/lineage-replayer.js +81 -0
- package/dist/_vendor/core/dist/rescue/registry-rebuilder.js +176 -0
- package/dist/_vendor/core/dist/routing/index.js +1 -0
- package/dist/_vendor/core/dist/routing/route-context.js +150 -0
- package/dist/_vendor/core/dist/schemas/broker-ticket.js +1 -0
- package/dist/_vendor/core/dist/schemas/command-manifest.js +1 -0
- package/dist/_vendor/core/dist/schemas/linked-surface-closure.js +1 -0
- package/dist/_vendor/core/dist/schemas/parallel-replay-scenario.js +1 -0
- package/dist/_vendor/core/dist/scope/linked-surface/index.js +125 -0
- package/dist/_vendor/core/dist/skills/engineering-change-method.js +106 -0
- package/dist/_vendor/core/dist/skills/incident-learning-candidate.js +150 -0
- package/dist/_vendor/core/dist/skills/index.js +2 -0
- package/dist/_vendor/core/dist/source-inventory/source-inventory.js +64 -0
- package/dist/_vendor/core/dist/spec/parse-spec/types.js +1 -0
- package/dist/_vendor/core/dist/spec/parse-spec.js +404 -0
- package/dist/_vendor/core/dist/team-agents/index.js +1 -0
- package/dist/_vendor/core/dist/team-agents/restricted-execution-gateway.js +413 -0
- package/dist/_vendor/core/dist/team-agents/worker-executor.js +158 -0
- package/dist/_vendor/core/dist/team-runtime/context-manifest.js +27 -0
- package/dist/_vendor/core/dist/team-runtime/contribution-manifest.js +31 -0
- package/dist/_vendor/core/dist/team-runtime/execution-orchestrator.js +55 -0
- package/dist/_vendor/core/dist/team-runtime/handoff-ledger.js +153 -0
- package/dist/_vendor/core/dist/team-runtime/nodejs-worker-adapter.js +78 -0
- package/dist/_vendor/core/dist/team-runtime/observability.js +148 -0
- package/dist/_vendor/core/dist/team-runtime/permission-broker.js +247 -0
- package/dist/_vendor/core/dist/team-runtime/pricing/cost-accounting.js +97 -0
- package/dist/_vendor/core/dist/team-runtime/provider-contract.js +59 -0
- package/dist/_vendor/core/dist/team-runtime/provider-registry.js +48 -0
- package/dist/_vendor/core/dist/team-runtime/provider-selection.js +122 -0
- package/dist/_vendor/core/dist/team-runtime/providers/anthropic.js +184 -0
- package/dist/_vendor/core/dist/team-runtime/providers/azure-openai.js +235 -0
- package/dist/_vendor/core/dist/team-runtime/providers/claude-code.js +307 -0
- package/dist/_vendor/core/dist/team-runtime/providers/gemini-direct.js +107 -0
- package/dist/_vendor/core/dist/team-runtime/providers/gemini.js +154 -0
- package/dist/_vendor/core/dist/team-runtime/providers/microsoft-foundry.js +254 -0
- package/dist/_vendor/core/dist/team-runtime/providers/openai.js +394 -0
- package/dist/_vendor/core/dist/telemetry/broker/decision-outcome.js +350 -0
- package/dist/_vendor/core/dist/telemetry/broker/index.js +1 -0
- package/dist/_vendor/core/dist/telemetry/compact-receipts.js +105 -0
- package/dist/_vendor/core/dist/telemetry/index.js +353 -0
- package/dist/_vendor/core/dist/telemetry/observation.js +123 -0
- package/dist/_vendor/core/dist/telemetry/parallel-replay/index.js +61 -0
- package/dist/_vendor/core/dist/telemetry/shared-write-coverage.js +52 -0
- package/dist/_vendor/core/dist/test-runner/map-integration.js +197 -0
- package/dist/_vendor/core/dist/test-runner/metrics-collector.js +33 -0
- package/dist/_vendor/core/dist/test-runner/propagation.js +217 -0
- package/dist/_vendor/core/dist/upgrade/behaviors/reshape.js +248 -0
- package/dist/_vendor/core/dist/upgrade/behaviors/retire.js +170 -0
- package/dist/_vendor/core/dist/upgrade/decomposition-decision.js +54 -0
- package/dist/_vendor/core/dist/upgrade/evolution-draft.js +208 -0
- package/dist/_vendor/core/dist/upgrade/map-curator/types.js +1 -0
- package/dist/_vendor/core/dist/upgrade/map-curator.js +458 -0
- package/dist/_vendor/core/dist/upgrade/map-propose.js +94 -0
- package/dist/_vendor/core/dist/upgrade/metrics-to-proposal.js +126 -0
- package/dist/_vendor/core/dist/upgrade/propose/failure-reason.js +33 -0
- package/dist/_vendor/core/dist/upgrade/propose/gates.js +392 -0
- package/dist/_vendor/core/dist/upgrade/propose/normalize-input.js +183 -0
- package/dist/_vendor/core/dist/upgrade/propose.js +363 -0
- package/dist/_vendor/core/dist/validation/ajv-factory.js +38 -0
- package/dist/_vendor/integration-claude-code/dist/index.js +20 -0
- package/dist/_vendor/integration-codex/dist/index.js +20 -0
- package/dist/_vendor/integration-copilot/dist/index.js +20 -0
- package/dist/_vendor/integration-cursor/dist/index.js +20 -0
- package/dist/_vendor/integration-gemini/dist/index.js +96 -0
- package/dist/_vendor/integrations-core/dist/compiler/charter-block.js +138 -0
- package/dist/_vendor/integrations-core/dist/compiler/compile.js +285 -0
- package/dist/_vendor/integrations-core/dist/compiler/skill-projection-parity.js +148 -0
- package/dist/_vendor/integrations-core/dist/compiler/skill-source-universe.js +104 -0
- package/dist/_vendor/integrations-core/dist/compiler/skill-templates.js +354 -0
- package/dist/_vendor/integrations-core/dist/distribution/editor-global-overlay.js +230 -0
- package/dist/_vendor/integrations-core/dist/distribution/external-skill-catalog.js +332 -0
- package/dist/_vendor/integrations-core/dist/distribution/install-profile.js +71 -0
- package/dist/_vendor/integrations-core/dist/distribution/skill-catalog.js +39 -0
- package/dist/_vendor/integrations-core/dist/distribution/skill-distribution-manager.js +102 -0
- package/dist/_vendor/integrations-core/dist/index.js +30 -0
- package/dist/_vendor/integrations-core/dist/manifest/construct.js +157 -0
- package/dist/_vendor/integrations-core/dist/manifest/schema.js +43 -0
- package/dist/_vendor/integrations-core/dist/manifest/types.js +1 -0
- package/dist/_vendor/integrations-core/dist/verify/types.js +9 -0
- package/dist/_vendor/integrations-core/dist/verify/uninstall-safety.js +63 -0
- package/dist/_vendor/integrations-core/dist/verify/verify-installed.js +45 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-atom-map-refactor.skill.md +145 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-bug-backlog.skill.md +101 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-create.skill.md +50 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-deep-module-refactor.files/references/deepening.md +28 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-deep-module-refactor.files/references/design-it-twice.md +21 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-deep-module-refactor.skill.md +124 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-diagnostic-loop.skill.md +92 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-dispatch.skill.md +456 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-error-code-resolver.skill.md +117 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-evidence.skill.md +121 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-framework-quickfix.skill.md +83 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-framework-temp-claim.skill.md +275 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-git-pathspec-emergency-commit.skill.md +172 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-governance-router.files/references/boundary-confusion.md +42 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-governance-router.files/references/entry-friction.md +29 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-governance-router.files/references/fallback-design.md +23 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-governance-router.files/references/index.md +84 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-governance-router.files/references/learning-loop.md +22 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-governance-router.files/references/route-interpretation.md +19 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-governance-router.files/references/tooling-mismatch.md +97 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-governance-router.skill.md +482 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-handoff.skill.md +100 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-internal-build-sync.skill.md +72 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-lock.skill.md +57 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-memory-consolidate.skill.md +75 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-minimal-patch-rebuilder.skill.md +103 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-next.skill.md +309 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-orient.skill.md +59 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-plan-authoring.skill.md +147 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-residue-cleanup.skill.md +35 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-task-card-authoring.skill.md +433 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-task-intent-resolver.skill.md +112 -0
- package/dist/_vendor/integrations-core/templates/skills/atm-upgrade-scan.skill.md +50 -0
- package/dist/_vendor/integrations-core/templates/skills/mailbox-worker-execution.skill.md +93 -0
- package/dist/_vendor/integrations-core/templates/skills/skill.schema.json +172 -0
- package/dist/_vendor/language-csharp/dist/index.js +16 -0
- package/dist/_vendor/language-csharp/dist/language-csharp-adapter.js +240 -0
- package/dist/_vendor/language-js/dist/index.js +16 -0
- package/dist/_vendor/language-js/dist/language-js-adapter.js +423 -0
- package/dist/_vendor/language-python/dist/index.js +19 -0
- package/dist/_vendor/language-python/dist/language-python-adapter/planning.js +197 -0
- package/dist/_vendor/language-python/dist/language-python-adapter/profile.js +199 -0
- package/dist/_vendor/language-python/dist/language-python-adapter/scanner.js +77 -0
- package/dist/_vendor/language-python/dist/language-python-adapter/shared.js +37 -0
- package/dist/_vendor/language-python/dist/language-python-adapter/validation.js +42 -0
- package/dist/_vendor/language-python/dist/language-python-adapter.js +37 -0
- package/dist/_vendor/plugin-experience-loop/dist/index.js +411 -0
- package/dist/_vendor/plugin-experience-loop/schemas/memory-nudge.schema.json +29 -0
- package/dist/_vendor/plugin-experience-loop/schemas/skill-amendment.schema.json +49 -0
- package/dist/_vendor/plugin-experience-loop/schemas/skill-candidate.schema.json +69 -0
- package/dist/_vendor/plugin-governance-local/dist/bootstrap/bootstrap/bootstrap-support.js +462 -0
- package/dist/_vendor/plugin-governance-local/dist/bootstrap/bootstrap/implementation.js +483 -0
- package/dist/_vendor/plugin-governance-local/dist/bootstrap/bootstrap/root-entry-patching.js +129 -0
- package/dist/_vendor/plugin-governance-local/dist/bootstrap/bootstrap.js +1 -0
- package/dist/_vendor/plugin-governance-local/dist/bootstrap/budget.js +75 -0
- package/dist/_vendor/plugin-governance-local/dist/bootstrap/prompt.js +101 -0
- package/dist/_vendor/plugin-governance-local/dist/bootstrap/types.js +1 -0
- package/dist/_vendor/plugin-governance-local/dist/default-guards.js +51 -0
- package/dist/_vendor/plugin-governance-local/dist/index.js +23 -0
- package/dist/_vendor/plugin-governance-local/dist/layout.js +22 -0
- package/dist/_vendor/plugin-governance-local/dist/stores/helpers.js +293 -0
- package/dist/_vendor/plugin-governance-local/dist/stores.js +484 -0
- package/dist/_vendor/plugin-governance-local/dist/versioning.js +68 -0
- package/dist/_vendor/plugin-human-review/dist/decision-log.js +130 -0
- package/dist/_vendor/plugin-human-review/dist/index.js +8 -0
- package/dist/_vendor/plugin-human-review/dist/map-curator-bridge.js +67 -0
- package/dist/_vendor/plugin-human-review/dist/queue.js +196 -0
- package/dist/_vendor/plugin-review-advisory/dist/conversation-machine-findings.js +191 -0
- package/dist/_vendor/plugin-review-advisory/dist/deep-module-provider.js +99 -0
- package/dist/_vendor/plugin-review-advisory/dist/index.js +306 -0
- package/dist/_vendor/plugin-review-advisory/dist/promotion-gates.js +145 -0
- package/dist/_vendor/plugin-rule-guard/dist/index.js +8 -0
- package/dist/_vendor/plugin-rule-guard/dist/lifecycle-police.js +116 -0
- package/dist/_vendor/plugin-rule-guard/dist/neutrality-scanner.js +188 -0
- package/dist/_vendor/plugin-rule-guard/dist/rule-justification.js +27 -0
- package/dist/_vendor/plugin-sdk/dist/atomization-planning.js +157 -0
- package/dist/_vendor/plugin-sdk/dist/behavior-registry.js +145 -0
- package/dist/_vendor/plugin-sdk/dist/behavior.js +6 -0
- package/dist/_vendor/plugin-sdk/dist/capability.js +1 -0
- package/dist/_vendor/plugin-sdk/dist/conversation/conversation-evidence-extractor.js +130 -0
- package/dist/_vendor/plugin-sdk/dist/conversation/conversation-feedback-loop.js +178 -0
- package/dist/_vendor/plugin-sdk/dist/conversation/conversation-patch-draft-bridge.js +246 -0
- package/dist/_vendor/plugin-sdk/dist/conversation/conversation-review-finding.js +6 -0
- package/dist/_vendor/plugin-sdk/dist/conversation/conversation-transcript-reviewer.js +177 -0
- package/dist/_vendor/plugin-sdk/dist/conversation/index.js +5 -0
- package/dist/_vendor/plugin-sdk/dist/detector/evidence-pattern-detector.js +184 -0
- package/dist/_vendor/plugin-sdk/dist/detector/index.js +1 -0
- package/dist/_vendor/plugin-sdk/dist/effect-node.js +1 -0
- package/dist/_vendor/plugin-sdk/dist/external-task-source.js +1 -0
- package/dist/_vendor/plugin-sdk/dist/governance/index.js +1 -0
- package/dist/_vendor/plugin-sdk/dist/governance/layout.js +17 -0
- package/dist/_vendor/plugin-sdk/dist/governance/stores.js +1 -0
- package/dist/_vendor/plugin-sdk/dist/index.js +12 -0
- package/dist/_vendor/plugin-sdk/dist/injector-plugin.js +1 -0
- package/dist/_vendor/plugin-sdk/dist/language-adapter.js +1 -0
- package/dist/_vendor/plugin-sdk/dist/lifecycle.js +5 -0
- package/dist/_vendor/plugin-sdk/dist/police.js +1 -0
- package/dist/_vendor/plugin-sdk/dist/project-adapter.js +1 -0
- package/dist/_vendor/plugin-sdk/dist/test-runner.js +1 -0
- package/dist/commands/agent-pack.js +6 -6
- package/dist/commands/atm-chart/constants.js +2 -2
- package/dist/commands/atm-chart/render-verify.js +1 -1
- package/dist/commands/atm-chart.js +1 -1
- package/dist/commands/atom-capsule.js +2 -2
- package/dist/commands/atom-ref.js +1 -1
- package/dist/commands/batch/implementation.js +3 -3
- package/dist/commands/batch/plan-executor.js +3 -3
- package/dist/commands/bootstrap.js +1 -1
- package/dist/commands/broker/batch-execute-actions.js +5 -5
- package/dist/commands/broker/broker-decision-observation.js +1 -1
- package/dist/commands/broker/census/index.js +1 -1
- package/dist/commands/broker/migrate/implementation.js +2 -2
- package/dist/commands/broker/parallel-admission/final-verdict.js +1 -1
- package/dist/commands/broker/parser.js +1 -1
- package/dist/commands/broker/persistence.js +2 -2
- package/dist/commands/broker/plan-batch-action.js +4 -4
- package/dist/commands/broker/policy-actions.js +1 -1
- package/dist/commands/broker/post-compose-semantic-validation.js +1 -1
- package/dist/commands/broker/proposal-actions.js +1 -1
- package/dist/commands/broker/reconcile/implementation.js +3 -3
- package/dist/commands/broker/registry-actions.js +8 -8
- package/dist/commands/broker/replay/dashboard-view-model.js +1 -1
- package/dist/commands/broker/replay/dashboard.js +1 -1
- package/dist/commands/broker/replay/implementation.js +1 -1
- package/dist/commands/broker/runner-sync-supersession.js +1 -1
- package/dist/commands/broker/shared-delivery-commit-transaction.js +1 -1
- package/dist/commands/broker/shared-surface.js +3 -3
- package/dist/commands/broker/steward-queues.js +2 -2
- package/dist/commands/broker/steward-runtime-actions.js +5 -5
- package/dist/commands/broker/wave-scheduler-actions.js +1 -1
- package/dist/commands/broker-conflict-resolution.js +1 -1
- package/dist/commands/budget.js +1 -1
- package/dist/commands/cache.js +1 -1
- package/dist/commands/candidates.js +4 -4
- package/dist/commands/create-map.js +2 -2
- package/dist/commands/create.js +1 -1
- package/dist/commands/daemon.js +4 -4
- package/dist/commands/doctor/lifecycle.js +18 -1
- package/dist/commands/doctor/run-doctor.js +1 -1
- package/dist/commands/doctor/utilities.js +1 -1
- package/dist/commands/evidence/bundle-io/implementation.js +1 -1
- package/dist/commands/evidence/command-runs.js +1 -1
- package/dist/commands/evidence/observed-source-loader.js +1 -1
- package/dist/commands/evidence/verbs/diagnose.js +1 -1
- package/dist/commands/evidence/verbs/run.js +2 -2
- package/dist/commands/evidence/verbs/wave-exit-observer.js +2 -2
- package/dist/commands/experience.js +4 -4
- package/dist/commands/explain.js +1 -1
- package/dist/commands/framework-development/closure-packet-schema/implementation.js +2 -2
- package/dist/commands/framework-development/framework-temp-lock-projection.js +1 -1
- package/dist/commands/framework-development/framework-temp-publication-capability.js +10 -3
- package/dist/commands/framework-development/runner-publication-close-handoff.js +1 -1
- package/dist/commands/framework-development/runner-publication-lifecycle.js +1 -1
- package/dist/commands/framework-development/runner-sync-admission.js +1 -1
- package/dist/commands/git-governance/implementation/admission-command.js +5 -5
- package/dist/commands/git-governance/implementation/broker-hook-bypass-preflight.js +1 -1
- package/dist/commands/git-governance/implementation/commit-attempt-boundary.js +9 -1
- package/dist/commands/git-governance/implementation/commit-authority-scopes.js +21 -7
- package/dist/commands/git-governance/implementation/commit-bundle-resolution.js +1 -1
- package/dist/commands/git-governance/implementation/commit-command.js +12 -1
- package/dist/commands/git-governance/implementation/git-head-evidence-transaction.js +1 -1
- package/dist/commands/git-governance/implementation/identity-check-command.js +1 -1
- package/dist/commands/git-governance/implementation/push-command.js +2 -2
- package/dist/commands/git-governance/implementation/sealed-commit-attribution.js +1 -1
- package/dist/commands/git-governance/implementation/task-scope-staging.js +13 -1
- package/dist/commands/git-governance/protected-governance-state.js +1 -1
- package/dist/commands/git-governance/work-admission-check.js +37 -8
- package/dist/commands/git-governance.js +2 -2
- package/dist/commands/git.js +1 -1
- package/dist/commands/guard.js +1 -1
- package/dist/commands/guide.js +1 -1
- package/dist/commands/handoff.js +1 -1
- package/dist/commands/health-report.js +1 -1
- package/dist/commands/hook/commit-range-guard/implementation.js +1 -1
- package/dist/commands/hook/pre-commit/implementation.js +2 -2
- package/dist/commands/hook/pre-commit/scope-ownership.js +2 -2
- package/dist/commands/hook/pre-commit/support.js +21 -1
- package/dist/commands/integration/adapter-parity.js +1 -1
- package/dist/commands/integration/adapters.js +5 -5
- package/dist/commands/integration/health.js +1 -1
- package/dist/commands/integration-hooks/implementation.js +1 -1
- package/dist/commands/lane-session/mutation-authority-adapter.js +1 -1
- package/dist/commands/lock.js +1 -1
- package/dist/commands/map-capsule.js +3 -3
- package/dist/commands/next/claim-admission.js +1 -1
- package/dist/commands/next/claim-helpers.js +1 -1
- package/dist/commands/next/claim-orchestration.js +1 -1
- package/dist/commands/next/plan-scoped-preflight.js +1 -1
- package/dist/commands/next/playbook-projection/legacy-guidance.js +1 -1
- package/dist/commands/next/result-compaction.js +1 -1
- package/dist/commands/next/route-resolution/pending-worktree.js +2 -2
- package/dist/commands/next.js +2 -2
- package/dist/commands/orient.js +1 -1
- package/dist/commands/police.js +1 -1
- package/dist/commands/registry-diff.js +1 -1
- package/dist/commands/registry-shared.js +2 -2
- package/dist/commands/registry.js +4 -4
- package/dist/commands/replacement-lane.js +1 -1
- package/dist/commands/rescue.js +2 -2
- package/dist/commands/review-advisory.js +2 -2
- package/dist/commands/review.js +4 -4
- package/dist/commands/rollback.js +2 -2
- package/dist/commands/route/freeze-patch.js +3 -3
- package/dist/commands/route/lifecycle.js +1 -1
- package/dist/commands/route/takeover.js +1 -1
- package/dist/commands/runtime-adapter-readiness.js +4 -4
- package/dist/commands/self-host-alpha.js +1 -1
- package/dist/commands/shared/result-core.js +24 -1
- package/dist/commands/spec-shared.js +1 -1
- package/dist/commands/start.js +1 -1
- package/dist/commands/taskflow/auto-evidence-mapper.js +1 -1
- package/dist/commands/taskflow/broker-gate.js +2 -2
- package/dist/commands/taskflow/close-owned-delivery-dirty-admission.js +1 -1
- package/dist/commands/taskflow/close-preflight.js +3 -3
- package/dist/commands/taskflow/implementation.js +4 -4
- package/dist/commands/taskflow/runner-publication-close-queue.js +1 -1
- package/dist/commands/taskflow/runner-selection-evidence.js +2 -2
- package/dist/commands/taskflow/write-readiness.js +1 -1
- package/dist/commands/tasks/acceptance-evidence-import.js +1 -1
- package/dist/commands/tasks/claim-orchestrator.js +2 -2
- package/dist/commands/tasks/claim-repair-diagnostics.js +3 -3
- package/dist/commands/tasks/claim-work-admission.js +4 -4
- package/dist/commands/tasks/close-orchestrator/acceptance-evidence-gate.js +1 -1
- package/dist/commands/tasks/close-orchestrator.js +1 -1
- package/dist/commands/tasks/dependency-gate.js +1 -1
- package/dist/commands/tasks/import-orchestrator.js +9 -0
- package/dist/commands/tasks/legacy/implementation.js +2 -2
- package/dist/commands/tasks/planning-mirror-reconcile.js +82 -0
- package/dist/commands/tasks/reconcile-orchestrator.js +12 -1
- package/dist/commands/tasks/release-wip-transaction.js +1 -1
- package/dist/commands/tasks/scope-amendment/implementation.js +2 -2
- package/dist/commands/tasks/scope-preflight/implementation.js +1 -1
- package/dist/commands/tasks/task-card-contract-import.js +1 -1
- package/dist/commands/tasks/task-work-admission-import.js +1 -1
- package/dist/commands/tasks.js +1 -1
- package/dist/commands/team/legacy/broker-observability.js +3 -3
- package/dist/commands/team/legacy/handoff-handler.js +2 -2
- package/dist/commands/team/legacy/patrol-handler.js +1 -1
- package/dist/commands/team/legacy/plan-orchestration.js +2 -2
- package/dist/commands/team/legacy/planning-context.js +1 -1
- package/dist/commands/team/legacy/provider-execution.js +7 -7
- package/dist/commands/team/legacy/runtime-governance.js +1 -1
- package/dist/commands/team/legacy/team-run-runtime.js +1 -1
- package/dist/commands/team/role-provider-resolution.js +1 -1
- package/dist/commands/team/role-skill-packs.js +2 -2
- package/dist/commands/team/runtime-bridges.js +7 -7
- package/dist/commands/team/scheduler.js +2 -2
- package/dist/commands/team-runtime-gates.js +1 -1
- package/dist/commands/team-wave.js +5 -5
- package/dist/commands/telemetry.js +2 -2
- package/dist/commands/test-catalog.js +2 -2
- package/dist/commands/test.js +7 -7
- package/dist/commands/upgrade/experimental.js +1 -1
- package/dist/commands/upgrade/proposal/context-budget.js +2 -2
- package/dist/commands/upgrade/proposal/guided-legacy.js +1 -1
- package/dist/commands/upgrade/scan.js +1 -1
- package/dist/commands/upgrade-map-propose.js +1 -1
- package/dist/commands/upgrade.js +1 -1
- package/dist/commands/validate.js +1 -1
- package/dist/commands/verify.js +2 -2
- package/dist/commands/welcome.js +1 -1
- package/dist/commands/write-ticket.js +2 -2
- package/dist/compatibility-matrix.json +30 -0
- package/dist/compatibility-matrix.legacy.json +17 -0
- package/dist/known-bad-versions.json +4 -0
- package/dist/release/integrity.json +23 -0
- package/dist/schemas/governance/default-guards.schema.json +121 -0
- package/dist/templates/root-drop/.atm/charter/atm-first-principles.template.md +33 -0
- package/dist/templates/root-drop/.atm/charter/atomic-charter.template.md +104 -0
- package/dist/templates/root-drop/.atm/charter/charter-invariants.template.json +215 -0
- package/dist/templates/root-drop/.atm/context/INITIAL_SUMMARY.md +11 -0
- package/dist/templates/root-drop/.atm/profile/default.md +21 -0
- package/dist/templates/root-drop/.atm/scripts/WRAPPER_DEDUP_PLAN.md +169 -0
- package/dist/templates/root-drop/.atm/scripts/ps/atm-create.ps1 +5 -0
- package/dist/templates/root-drop/.atm/scripts/ps/atm-evidence.ps1 +5 -0
- package/dist/templates/root-drop/.atm/scripts/ps/atm-handoff.ps1 +5 -0
- package/dist/templates/root-drop/.atm/scripts/ps/atm-lock.ps1 +5 -0
- package/dist/templates/root-drop/.atm/scripts/ps/atm-next.ps1 +5 -0
- package/dist/templates/root-drop/.atm/scripts/ps/atm-orient.ps1 +5 -0
- package/dist/templates/root-drop/.atm/scripts/ps/atm-upgrade-scan.ps1 +5 -0
- package/dist/templates/root-drop/.atm/scripts/sh/atm-create.sh +5 -0
- package/dist/templates/root-drop/.atm/scripts/sh/atm-evidence.sh +5 -0
- package/dist/templates/root-drop/.atm/scripts/sh/atm-handoff.sh +5 -0
- package/dist/templates/root-drop/.atm/scripts/sh/atm-lock.sh +5 -0
- package/dist/templates/root-drop/.atm/scripts/sh/atm-next.sh +5 -0
- package/dist/templates/root-drop/.atm/scripts/sh/atm-orient.sh +5 -0
- package/dist/templates/root-drop/.atm/scripts/sh/atm-upgrade-scan.sh +5 -0
- package/dist/templates/root-drop/.atm/scripts/wrappers.json +55 -0
- package/dist/templates/root-drop/AGENTS.md +56 -0
- package/package.json +26 -14
|
@@ -48,7 +48,30 @@ if (fieldsIdx !== -1 && fieldsIdx + 1 < process.argv.length) {
|
|
|
48
48
|
}
|
|
49
49
|
export const configRelativePath = path.join('.atm', 'config.json');
|
|
50
50
|
export const frameworkVersion = '0.0.0';
|
|
51
|
-
|
|
51
|
+
export function resolveFrameworkRoot(moduleUrl = import.meta.url) {
|
|
52
|
+
let cursor = path.dirname(fileURLToPath(moduleUrl));
|
|
53
|
+
let bundledCliRoot = null;
|
|
54
|
+
while (true) {
|
|
55
|
+
const packagePath = path.join(cursor, 'package.json');
|
|
56
|
+
if (existsSync(packagePath)) {
|
|
57
|
+
try {
|
|
58
|
+
const manifest = JSON.parse(readFileSync(packagePath, 'utf8'));
|
|
59
|
+
if (manifest.name === 'ai-atomic-framework')
|
|
60
|
+
return cursor;
|
|
61
|
+
if (manifest.name === '@ai-atomic-framework/cli')
|
|
62
|
+
bundledCliRoot ??= cursor;
|
|
63
|
+
}
|
|
64
|
+
catch {
|
|
65
|
+
// Keep walking; a malformed ancestor manifest is not an authority root.
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
const parent = path.dirname(cursor);
|
|
69
|
+
if (parent === cursor)
|
|
70
|
+
return bundledCliRoot ?? path.resolve(path.dirname(fileURLToPath(moduleUrl)), '../../../../../');
|
|
71
|
+
cursor = parent;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
const defaultFrameworkRoot = resolveFrameworkRoot();
|
|
52
75
|
export function readFrameworkVersion(root = defaultFrameworkRoot) {
|
|
53
76
|
const packagePath = path.join(root, 'package.json');
|
|
54
77
|
if (!existsSync(packagePath)) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { makeResult, message, readJsonFile, relativePathFrom } from './shared.js';
|
|
4
|
-
import { defaultAtomicSpecSchemaPath, parseAtomicSpecFile } from '
|
|
4
|
+
import { defaultAtomicSpecSchemaPath, parseAtomicSpecFile } from '../_vendor/core/dist/spec/parse-spec.js';
|
|
5
5
|
const atomicSpecSchemaPath = defaultAtomicSpecSchemaPath;
|
|
6
6
|
const frameworkRoot = path.resolve(path.dirname(atomicSpecSchemaPath), '..');
|
|
7
7
|
const requireFromSpecShared = createRequire(import.meta.url);
|
package/dist/commands/start.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { existsSync, readFileSync } from 'node:fs';
|
|
2
2
|
import path from 'node:path';
|
|
3
|
-
import { buildLegacyRoutePlan, createGuidanceSession, decideGuidanceRoute, probeProject } from '
|
|
3
|
+
import { buildLegacyRoutePlan, createGuidanceSession, decideGuidanceRoute, probeProject } from '../_vendor/core/dist/guidance/index.js';
|
|
4
4
|
import { getCommandSpec } from './command-specs.js';
|
|
5
5
|
import { CliError, makeResult, message, parseArgsForCommand } from './shared.js';
|
|
6
6
|
export async function runStart(argv = []) {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* touch the filesystem. `taskflow.ts` wires it to the current package.json
|
|
26
26
|
* before calling `executeAutoEvidencePlan`.
|
|
27
27
|
*/
|
|
28
|
-
import { evaluateValidationContract } from '
|
|
28
|
+
import { evaluateValidationContract } from '../../_vendor/core/dist/evidence/validation-contract.js';
|
|
29
29
|
// TASK-SKL-0029 — auto-evidence lifecycle adapter.
|
|
30
30
|
//
|
|
31
31
|
// Auto-evidence must map only the cases the validation contract selected; it
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync } from 'node:fs';
|
|
2
2
|
import path from 'node:path';
|
|
3
|
-
import { loadRegistry } from '
|
|
4
|
-
import { calculateBrokerDecision } from '
|
|
3
|
+
import { loadRegistry } from '../../_vendor/core/dist/broker/registry.js';
|
|
4
|
+
import { calculateBrokerDecision } from '../../_vendor/core/dist/broker/decision.js';
|
|
5
5
|
import { resolveCanonicalDecisionClass } from '../broker/replay/closure-policy.js';
|
|
6
6
|
import { quoteCliValue } from '../shared.js';
|
|
7
7
|
function uniqueTaskIds(values) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { classifyRunnerAffectingPaths } from '
|
|
1
|
+
import { classifyRunnerAffectingPaths } from '../../_vendor/core/dist/broker/runner-version-contract.js';
|
|
2
2
|
function uniqueSorted(values) {
|
|
3
3
|
return [...new Set(values.map((value) => value.replace(/\\/g, '/')).filter(Boolean))].sort((left, right) => left.localeCompare(right));
|
|
4
4
|
}
|
|
@@ -2,9 +2,9 @@ import { createHash } from 'node:crypto';
|
|
|
2
2
|
import { execFileSync } from 'node:child_process';
|
|
3
3
|
import { existsSync, readFileSync } from 'node:fs';
|
|
4
4
|
import path from 'node:path';
|
|
5
|
-
import { evaluateValidationContract } from '
|
|
6
|
-
import { evaluatePhaseSuitePromotion } from '
|
|
7
|
-
import { inspectStandardsSpecReviewReceipt } from '
|
|
5
|
+
import { evaluateValidationContract } from '../../_vendor/core/dist/evidence/validation-contract.js';
|
|
6
|
+
import { evaluatePhaseSuitePromotion } from '../../_vendor/core/dist/evidence/phase-suite.js';
|
|
7
|
+
import { inspectStandardsSpecReviewReceipt } from '../../_vendor/plugin-review-advisory/dist/index.js';
|
|
8
8
|
import { ATM_INDEX_FOREIGN_ACTIVE_STAGED } from '../git-index-ownership.js';
|
|
9
9
|
import { buildHistoricalClosePreflight, preflightBlockersToWriteReadinessBlockers } from './historical-close-preflight.js';
|
|
10
10
|
import { applyCloseOwnedNonRunnerDeliveryDirtyAdmission, extractCloseOwnedDeliveryFiles } from './close-owned-delivery-dirty-admission.js';
|
|
@@ -17,15 +17,15 @@ import { isRunnerSyncRequired } from '../framework-development.js';
|
|
|
17
17
|
import { inspectRunnerSyncAdmission } from '../framework-development/runner-sync-admission.js';
|
|
18
18
|
import { buildTaskflowCloseWriteReadinessHint, prioritizeSharedHistoricalDeliveryBlockers } from './write-readiness.js';
|
|
19
19
|
import { resolveTaskflowDeclaredFiles } from './task-scope.js';
|
|
20
|
-
import { deriveAtmScopeClass } from '
|
|
20
|
+
import { deriveAtmScopeClass } from '../../_vendor/core/dist/broker/atm-core-scope.js';
|
|
21
21
|
import { assertCommitBundleReady, buildTaskflowCommitBundle, commitTaskflowDeliveryFiles, deferGovernanceDirtyFiles, finalizeTaskflowCommitBundle, readStagedFiles, restoreDeferredGovernanceDirtyFiles } from './commit-bundle-assembly.js';
|
|
22
22
|
import { acquireCloseWindowStagedIndexLock, releaseCloseWindowStagedIndexLock } from '../tasks/close-window-lock.js';
|
|
23
23
|
import { resolveRunnerPublicationCloseHandoff } from '../framework-development/runner-publication-close-handoff.js';
|
|
24
24
|
import { buildTaskflowRunnerRecoveryArgs } from './runner-recovery-forwarding.js';
|
|
25
25
|
import { enqueueTaskflowClosePublication } from './runner-publication-close-queue.js';
|
|
26
|
-
import { promoteTeamHandoffArchive, teamHandoffRuntimeDirectory } from '
|
|
27
|
-
import { clearBrokerRuntimeStateForTask } from '
|
|
28
|
-
import { classifyRunnerAffectingPaths, filterRunnerInputTreeListing, RUNNER_INPUT_TREE_PATHS } from '
|
|
26
|
+
import { promoteTeamHandoffArchive, teamHandoffRuntimeDirectory } from '../../_vendor/core/dist/team-runtime/handoff-ledger.js';
|
|
27
|
+
import { clearBrokerRuntimeStateForTask } from '../../_vendor/core/dist/broker/lifecycle.js';
|
|
28
|
+
import { classifyRunnerAffectingPaths, filterRunnerInputTreeListing, RUNNER_INPUT_TREE_PATHS } from '../../_vendor/core/dist/broker/runner-version-contract.js';
|
|
29
29
|
function buildTasksNewCommand(input) {
|
|
30
30
|
const parts = ['node atm.mjs tasks new'];
|
|
31
31
|
if (input.template) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
|
-
import { enqueueRunnerSyncStewardRequest } from '
|
|
2
|
+
import { enqueueRunnerSyncStewardRequest } from '../../_vendor/core/dist/broker/runner-sync-steward-queue.js';
|
|
3
3
|
import { resolveRunnerSyncLeaseHealth } from '../framework-development/runner-sync-lease-health.js';
|
|
4
4
|
import { readRunnerSyncStewardQueue, writeRunnerSyncStewardQueue } from '../broker/persistence.js';
|
|
5
5
|
const CLOSE_PUBLICATION_SURFACES = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createRunnerVersionRegistry, selectRunnerVersionWithReceipt } from '
|
|
2
|
-
import { RUNNER_SYNC_ERROR_CODES } from '
|
|
1
|
+
import { createRunnerVersionRegistry, selectRunnerVersionWithReceipt } from '../../_vendor/core/dist/broker/runner-version-registry.js';
|
|
2
|
+
import { RUNNER_SYNC_ERROR_CODES } from '../../_vendor/core/dist/broker/runner-version-contract.js';
|
|
3
3
|
export function buildRunnerSelectionEvidence(input) {
|
|
4
4
|
const registry = createRunnerVersionRegistry(input.registrySnapshot?.versions ?? input.publishedVersions);
|
|
5
5
|
const receipt = selectRunnerVersionWithReceipt(registry, input.requirement, input.issuedAt, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { evaluateValidationContract } from '
|
|
1
|
+
import { evaluateValidationContract } from '../../_vendor/core/dist/evidence/validation-contract.js';
|
|
2
2
|
import { resolveActorWorkSession } from '../actor-session.js';
|
|
3
3
|
import { evaluateTaskDoneCloseAdmission } from '../tasks/lifecycle-state.js';
|
|
4
4
|
import { detectHistoricalDeliveryCommit, inspectHistoricalDelivery } from '../tasks/historical-delivery.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isEvidenceRealness } from '
|
|
1
|
+
import { isEvidenceRealness } from '../../_vendor/core/dist/evidence/index.js';
|
|
2
2
|
/** Preserve an authored acceptance-evidence contract without inferring stronger evidence. */
|
|
3
3
|
export function parseAcceptanceEvidenceMap(value) {
|
|
4
4
|
if (value === undefined || value === null || value === '')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { existsSync, readFileSync } from 'node:fs';
|
|
2
|
-
import { createLocalGovernanceAdapter } from '
|
|
3
|
-
import { clearBrokerRuntimeStateForTask, removeBrokerRegistryIfEmpty } from '
|
|
2
|
+
import { createLocalGovernanceAdapter } from '../../_vendor/plugin-governance-local/dist/index.js';
|
|
3
|
+
import { clearBrokerRuntimeStateForTask, removeBrokerRegistryIfEmpty } from '../../_vendor/core/dist/broker/lifecycle.js';
|
|
4
4
|
import { resolveActorId } from '../actor-registry.js';
|
|
5
5
|
import { updateActorWorkSessionState } from '../actor-session.js';
|
|
6
6
|
import { buildDependencyCloseoutRecoveryCommand, formatDependencyCloseoutBlockedMessage, assessCloseoutProvenanceGap } from './closeout-provenance.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
|
|
2
2
|
import { spawnSync } from 'node:child_process';
|
|
3
3
|
import path from 'node:path';
|
|
4
|
-
import { planWipTransition, retainReleasedWipOwnership } from '
|
|
5
|
-
import { createLocalGovernanceAdapter } from '
|
|
4
|
+
import { planWipTransition, retainReleasedWipOwnership } from '../../_vendor/core/dist/lane/wip-ownership-transition.js';
|
|
5
|
+
import { createLocalGovernanceAdapter } from '../../_vendor/plugin-governance-local/dist/index.js';
|
|
6
6
|
import { resolveActorWorkSession, updateActorWorkSessionState } from '../actor-session.js';
|
|
7
7
|
import { CliError, resolveValue } from '../shared.js';
|
|
8
8
|
import { diagnoseTaskDirectionLockAllowedFiles } from '../task-direction.js';
|
|
9
9
|
import { isClaimExpired, parseClaimRecord } from './task-ledger-readers.js';
|
|
10
10
|
import { compareClaimLifecycleOwners } from '../next/claim-admission.js';
|
|
11
11
|
import { pathMatchesTaskScope, uniqueSorted } from '../git-governance/commit-scope-policy.js';
|
|
12
|
-
import { classifyTerminalLifecycleOwnership } from '
|
|
12
|
+
import { classifyTerminalLifecycleOwnership } from '../../_vendor/core/dist/broker/historical-work-admission-attestation.js';
|
|
13
13
|
import { inspectReferencedLaneSession } from '../lane-session/resolve.js';
|
|
14
14
|
const CLOSEOUT_OWNER_RULE = 'Only the active lifecycle owner may mutate deliverables or run taskflow close --write. During lane migration, compare lane ids when both lifecycle records have them; otherwise fall back to claim.actorId with a valid lease and work session.';
|
|
15
15
|
function normalizeTaskStatus(value) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { createLocalGovernanceAdapter } from '
|
|
2
|
-
import { classifyForeignGeneratedResidue } from '
|
|
3
|
-
import { isRunnerBuildOutputPath } from '
|
|
4
|
-
import { issueWorkAdmissionTicket } from '
|
|
1
|
+
import { createLocalGovernanceAdapter } from '../../_vendor/plugin-governance-local/dist/index.js';
|
|
2
|
+
import { classifyForeignGeneratedResidue } from '../../_vendor/core/dist/broker/foreign-generated-residue-disposition.js';
|
|
3
|
+
import { isRunnerBuildOutputPath } from '../../_vendor/core/dist/broker/runner-build-output-inventory.js';
|
|
4
|
+
import { issueWorkAdmissionTicket } from '../../_vendor/core/dist/broker/work-admission-ticket.js';
|
|
5
5
|
import { existsSync, readFileSync } from 'node:fs';
|
|
6
6
|
import { spawnSync } from 'node:child_process';
|
|
7
7
|
import path from 'node:path';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { evaluateAcceptanceEvidenceMap } from '
|
|
1
|
+
import { evaluateAcceptanceEvidenceMap } from '../../../_vendor/core/dist/evidence/index.js';
|
|
2
2
|
import { CliError } from '../../shared.js';
|
|
3
3
|
import { parseAcceptanceEvidenceMap } from '../acceptance-evidence-import.js';
|
|
4
4
|
/** CLI adapter for the core acceptance predicate evaluator; it owns no second acceptance algorithm. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { existsSync, readFileSync } from 'node:fs';
|
|
2
2
|
import { CliError, relativePathFrom, resolveValue } from '../shared.js';
|
|
3
|
-
import { createLocalGovernanceAdapter } from '
|
|
3
|
+
import { createLocalGovernanceAdapter } from '../../_vendor/plugin-governance-local/dist/index.js';
|
|
4
4
|
import { resolveActorId } from '../actor-registry.js';
|
|
5
5
|
import { resolveActorWorkSession, updateActorWorkSessionState } from '../actor-session.js';
|
|
6
6
|
import { computeMissingValidatorReport, verifyTaskEvidence } from '../evidence.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { existsSync, readFileSync } from 'node:fs';
|
|
2
2
|
import path from 'node:path';
|
|
3
|
-
import { deriveAtmScopeClass } from '
|
|
3
|
+
import { deriveAtmScopeClass } from '../../_vendor/core/dist/broker/atm-core-scope.js';
|
|
4
4
|
import { taskPathFor } from './task-file-io-helpers.js';
|
|
5
5
|
import { parseYamlList } from './task-import-validators.js';
|
|
6
6
|
import { normalizeWorkItemStatus } from './task-transition-helpers.js';
|
|
@@ -14,6 +14,7 @@ import { attachPlanningSourceSeal, buildPlanningSourceSeal } from './import-task
|
|
|
14
14
|
import { classifyForceImportAdmission } from './import-validation.js';
|
|
15
15
|
import { normalizeImportedTasksForTargetLedger } from './task-import-status-normalization.js';
|
|
16
16
|
import { issueTaskImportAdmissionTicket, validateWorkAdmissionImport } from './task-work-admission-import.js';
|
|
17
|
+
import { preparePlanningMirrorReconcile } from './planning-mirror-reconcile.js';
|
|
17
18
|
import { classifyResetOpenImportForOptions, collectActiveClaimImportSkips, detectPlanHeadings, enrichParsedTasksFromSiblingTaskCards, parseImportOptions, parseSingleCardFromPlugin, parsePlanMarkdown, writeImportEvidence, writeTaskFiles, assertLocalTaskLedgerEnabled, recordStaleRunnerOverride } from '../tasks.js';
|
|
18
19
|
export async function runTasksImport(argv) {
|
|
19
20
|
const options = parseImportOptions(argv);
|
|
@@ -365,6 +366,9 @@ export async function runTasksImport(argv) {
|
|
|
365
366
|
}
|
|
366
367
|
if (options.write) {
|
|
367
368
|
assertLocalTaskLedgerEnabled(options.cwd, 'import --write');
|
|
369
|
+
const planningMirrorReconcile = options.reconcileMirror
|
|
370
|
+
? preparePlanningMirrorReconcile({ cwd: options.cwd, planAbsolute, tasks: parsed.tasks })
|
|
371
|
+
: null;
|
|
368
372
|
const result = writeTaskFiles({
|
|
369
373
|
cwd: options.cwd,
|
|
370
374
|
tasks: parsed.tasks,
|
|
@@ -385,6 +389,11 @@ export async function runTasksImport(argv) {
|
|
|
385
389
|
}
|
|
386
390
|
});
|
|
387
391
|
}
|
|
392
|
+
if (planningMirrorReconcile) {
|
|
393
|
+
const planningMirrorPath = planningMirrorReconcile.apply();
|
|
394
|
+
if (planningMirrorPath)
|
|
395
|
+
writtenPaths.push(planningMirrorPath);
|
|
396
|
+
}
|
|
388
397
|
attachTaskImportAdmissionTickets({
|
|
389
398
|
cwd: options.cwd,
|
|
390
399
|
tasks: parsed.tasks,
|
|
@@ -4,7 +4,7 @@ import { createHash } from 'node:crypto';
|
|
|
4
4
|
import { execFileSync } from 'node:child_process';
|
|
5
5
|
import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from 'node:fs';
|
|
6
6
|
import path from 'node:path';
|
|
7
|
-
import { createLocalGovernanceAdapter } from '
|
|
7
|
+
import { createLocalGovernanceAdapter } from '../../../_vendor/plugin-governance-local/dist/index.js';
|
|
8
8
|
import { resolveActorId } from '../../actor-registry.js';
|
|
9
9
|
import { auditTasks, assertRunnerFreshForWriteAction, isRunnerSyncRequired, runnerStaleWarningMessage } from '../../framework-development.js';
|
|
10
10
|
import { CliError, makeResult, message, parseOptions, parseArgsForCommand, relativePathFrom, resolveValue } from '../../shared.js';
|
|
@@ -1163,7 +1163,7 @@ export async function runTasksRosterUpdate(argv) { let cwd = process.cwd(); let
|
|
|
1163
1163
|
async function runTasksRoster(argv) { const subAction = (argv[0] ?? '').toLowerCase(); if (subAction !== 'update') {
|
|
1164
1164
|
throw new CliError('ATM_CLI_USAGE', 'tasks roster requires update.', { exitCode: 2 });
|
|
1165
1165
|
} return runTasksRosterUpdate(argv.slice(1)); }
|
|
1166
|
-
export async function generateTaskCard(input) { const template = input.templateKey || 'aao-l2-split'; const intent = { cwd: input.cwd, templateKey: template, fields: { task_id: input.taskId, title: input.title || 'New Task', depends_on_yaml: input.dependsOn?.trim() ? ` - ${input.dependsOn.trim()}` : '[]', scope_path: input.scopePath || 'src/main.ts', test_path: input.testPath || 'tests/main.test.ts', atom_id: input.atomId || 'atm.unowned', capability: input.capability || 'Implementation details', goal: input.goal || 'Goal description placeholder', sourcePath: input.outputPath } }; const plugins = await readPluginRegistry(input.cwd); const generatorPlugin = plugins.find(p => p.mode !== 'disabled' && typeof p.plugin.generate === 'function'); const resultCard = generatorPlugin ? await generatorPlugin.plugin.generate(intent) : await (await import('
|
|
1166
|
+
export async function generateTaskCard(input) { const template = input.templateKey || 'aao-l2-split'; const intent = { cwd: input.cwd, templateKey: template, fields: { task_id: input.taskId, title: input.title || 'New Task', depends_on_yaml: input.dependsOn?.trim() ? ` - ${input.dependsOn.trim()}` : '[]', scope_path: input.scopePath || 'src/main.ts', test_path: input.testPath || 'tests/main.test.ts', atom_id: input.atomId || 'atm.unowned', capability: input.capability || 'Implementation details', goal: input.goal || 'Goal description placeholder', sourcePath: input.outputPath } }; const plugins = await readPluginRegistry(input.cwd); const generatorPlugin = plugins.find(p => p.mode !== 'disabled' && typeof p.plugin.generate === 'function'); const resultCard = generatorPlugin ? await generatorPlugin.plugin.generate(intent) : await (await import('../../../_vendor/atm-markdown-task-source/dist/index.js')).default.generate(intent); return { taskId: resultCard.taskId, content: resultCard.content, sourcePath: input.outputPath, templateUsed: template }; }
|
|
1167
1167
|
function assertTaskCardOutputPathIsNested(cwd, outputPath) { const absoluteCwd = path.resolve(cwd); const absoluteOutput = path.resolve(absoluteCwd, outputPath); const relativeOutput = path.relative(absoluteCwd, absoluteOutput).replace(/\\/g, '/'); if (relativeOutput === '..' || relativeOutput.startsWith('../')) {
|
|
1168
1168
|
throw new CliError('ATM_CLI_USAGE', 'tasks new must write task cards inside the repository; use docs/tasks/<name>.task.md or another nested task directory.', { exitCode: 2, details: { outputPath } });
|
|
1169
1169
|
} if (path.posix.dirname(relativeOutput) === '.' && relativeOutput.endsWith('.task.md')) {
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { spawnSync } from 'node:child_process';
|
|
2
|
+
import { readFileSync, writeFileSync } from 'node:fs';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import { CliError, relativePathFrom } from '../shared.js';
|
|
5
|
+
import { readTaskLedgerPolicy } from '../task-ledger.js';
|
|
6
|
+
import { extractFrontMatter } from './task-import-validators.js';
|
|
7
|
+
export function preparePlanningMirrorReconcile(input) {
|
|
8
|
+
if (input.tasks.length !== 1) {
|
|
9
|
+
throw new CliError('ATM_TASKS_IMPORT_RECONCILE_MIRROR_SINGLE_CARD_REQUIRED', 'tasks import --reconcile-mirror only accepts a single planning task card.', {
|
|
10
|
+
exitCode: 1,
|
|
11
|
+
details: { taskCount: input.tasks.length, planPath: input.planAbsolute }
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
const taskId = input.tasks[0].workItemId;
|
|
15
|
+
const taskLedger = readTaskLedgerPolicy(input.cwd);
|
|
16
|
+
const ledgerPath = path.join(input.cwd, taskLedger.taskRoot, `${taskId}.json`);
|
|
17
|
+
let ledger;
|
|
18
|
+
try {
|
|
19
|
+
ledger = JSON.parse(readFileSync(ledgerPath, 'utf8'));
|
|
20
|
+
}
|
|
21
|
+
catch {
|
|
22
|
+
throw new CliError('ATM_TASKS_IMPORT_RECONCILE_MIRROR_LEDGER_UNREADABLE', `Cannot read live ledger for ${taskId}; planning mirror was not changed.`, {
|
|
23
|
+
exitCode: 1,
|
|
24
|
+
details: { taskId, ledgerPath }
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
if (String(ledger.status ?? '').trim().toLowerCase() !== 'done') {
|
|
28
|
+
throw new CliError('ATM_TASKS_IMPORT_RECONCILE_MIRROR_LEDGER_NOT_DONE', `Live ledger ${taskId} is not done; planning mirror was not changed.`, {
|
|
29
|
+
exitCode: 1,
|
|
30
|
+
details: { taskId, ledgerStatus: ledger.status ?? null }
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
const original = readFileSync(input.planAbsolute, 'utf8');
|
|
34
|
+
const frontmatterMatch = /^---\r?\n([\s\S]*?)\r?\n---/.exec(original);
|
|
35
|
+
const frontmatter = extractFrontMatter(original);
|
|
36
|
+
const sourceTaskId = String(frontmatter?.data.task_id ?? frontmatter?.data.id ?? '').trim().toUpperCase();
|
|
37
|
+
if (!frontmatterMatch || sourceTaskId !== taskId.toUpperCase()) {
|
|
38
|
+
throw new CliError('ATM_TASKS_IMPORT_RECONCILE_MIRROR_SOURCE_INVALID', `Planning source must be a single task card for ${taskId}; planning mirror was not changed.`, {
|
|
39
|
+
exitCode: 1,
|
|
40
|
+
details: { taskId, planPath: input.planAbsolute, sourceTaskId: sourceTaskId || null }
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
const currentStatus = String(frontmatter?.data.status ?? '').trim().toLowerCase();
|
|
44
|
+
if (currentStatus === 'done')
|
|
45
|
+
return { apply: () => null };
|
|
46
|
+
if (currentStatus !== 'planned') {
|
|
47
|
+
throw new CliError('ATM_TASKS_IMPORT_RECONCILE_MIRROR_STATUS_UNSAFE', `Planning card ${taskId} has status ${currentStatus || 'missing'}; refusing to overwrite it with done.`, {
|
|
48
|
+
exitCode: 1,
|
|
49
|
+
details: { taskId, planPath: input.planAbsolute, planningStatus: currentStatus || null }
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
assertPlanningMirrorSourceClean(input.planAbsolute);
|
|
53
|
+
const updatedFrontmatter = frontmatterMatch[1].replace(/^(\s*status\s*:\s*)planned\s*$/mi, '$1done');
|
|
54
|
+
if (updatedFrontmatter === frontmatterMatch[1]) {
|
|
55
|
+
throw new CliError('ATM_TASKS_IMPORT_RECONCILE_MIRROR_STATUS_UNSAFE', `Planning card ${taskId} has no writable status field; planning mirror was not changed.`, {
|
|
56
|
+
exitCode: 1,
|
|
57
|
+
details: { taskId, planPath: input.planAbsolute }
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
const newline = original.includes('\r\n') ? '\r\n' : '\n';
|
|
61
|
+
const updated = `${original.slice(0, frontmatterMatch.index)}---${newline}${updatedFrontmatter}${newline}---${original.slice(frontmatterMatch.index + frontmatterMatch[0].length)}`;
|
|
62
|
+
return {
|
|
63
|
+
apply: () => {
|
|
64
|
+
writeFileSync(input.planAbsolute, updated, 'utf8');
|
|
65
|
+
return relativePathFrom(input.cwd, input.planAbsolute);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function assertPlanningMirrorSourceClean(planAbsolute) {
|
|
70
|
+
const repository = spawnSync('git', ['-C', path.dirname(planAbsolute), 'rev-parse', '--show-toplevel'], { encoding: 'utf8' });
|
|
71
|
+
if (repository.status !== 0)
|
|
72
|
+
return;
|
|
73
|
+
const root = repository.stdout.trim();
|
|
74
|
+
const relativePath = path.relative(root, planAbsolute);
|
|
75
|
+
const status = spawnSync('git', ['-C', root, 'status', '--porcelain', '--', relativePath], { encoding: 'utf8' });
|
|
76
|
+
if (status.status === 0 && status.stdout.trim()) {
|
|
77
|
+
throw new CliError('ATM_TASKS_IMPORT_RECONCILE_MIRROR_SOURCE_DIRTY', 'Planning mirror source has uncommitted changes; refusing to overwrite it.', {
|
|
78
|
+
exitCode: 1,
|
|
79
|
+
details: { planPath: planAbsolute }
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { createHash } from 'node:crypto';
|
|
2
2
|
import { existsSync, mkdirSync, readFileSync, readdirSync, writeFileSync } from 'node:fs';
|
|
3
3
|
import path from 'node:path';
|
|
4
|
-
import { createLocalGovernanceAdapter } from '
|
|
4
|
+
import { createLocalGovernanceAdapter } from '../../_vendor/plugin-governance-local/dist/index.js';
|
|
5
5
|
import { assertRunnerFreshForWriteAction, createClosurePacket, createFrameworkModeStatus, executeTaskCloseTransaction, normalizeSha256FieldsDeep, registerCloseCommitWindow, validateClosurePacket, writeClosurePacket } from '../framework-development.js';
|
|
6
6
|
import { assertEmergencyApproval } from '../emergency/gate.js';
|
|
7
7
|
import { resolveActorId } from '../actor-registry.js';
|
|
8
8
|
import { computeMissingValidatorReport } from '../evidence.js';
|
|
9
9
|
import { CliError, makeResult, message, relativePathFrom, resolveValue } from '../shared.js';
|
|
10
10
|
import { recordStaleRunnerOverride } from './close-governance.js';
|
|
11
|
+
import { issueRepairClosureAdmissionTicket } from '../git-governance/work-admission-check.js';
|
|
11
12
|
import { parseReconcileOptions } from './task-option-parsers.js';
|
|
12
13
|
import { readGitScalar } from './task-git-helpers.js';
|
|
13
14
|
import { parseClaimRecord } from './task-ledger-readers.js';
|
|
@@ -256,6 +257,15 @@ export async function runTasksReconcile(argv) {
|
|
|
256
257
|
taskDocument.closedByActor = actorId;
|
|
257
258
|
taskDocument.closedBySessionId = null;
|
|
258
259
|
taskDocument.closeReason = reconcileReason;
|
|
260
|
+
// Reconcile writes a terminal closeback bundle which must be committed after
|
|
261
|
+
// the active claim is released. Persist the same bounded bridge used by the
|
|
262
|
+
// closure-repair lane so the ordinary governed commit facade can admit this
|
|
263
|
+
// exact task-scoped bundle without resurrecting a claim.
|
|
264
|
+
taskDocument.workAdmissionTicket = issueRepairClosureAdmissionTicket({
|
|
265
|
+
cwd: options.cwd,
|
|
266
|
+
taskId: options.taskId,
|
|
267
|
+
actorId
|
|
268
|
+
});
|
|
259
269
|
const reconcileCommand = `node atm.mjs tasks reconcile --task ${options.taskId} --actor ${actorId} --delivery-commit ${options.deliveryCommit} --json`;
|
|
260
270
|
const reconcileWriteResult = await executeTaskCloseTransaction({
|
|
261
271
|
cwd: options.cwd,
|
|
@@ -332,6 +342,7 @@ export async function runTasksReconcile(argv) {
|
|
|
332
342
|
transitionPath,
|
|
333
343
|
closeCommitWindowPath: closeCommitWindowPathReconcile,
|
|
334
344
|
closeCommitWindowAllowedFiles,
|
|
345
|
+
workAdmissionTicket: taskDocument.workAdmissionTicket,
|
|
335
346
|
emergencyUse,
|
|
336
347
|
deliverableGate: deliverableGate
|
|
337
348
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { execFileSync } from 'node:child_process';
|
|
2
2
|
import { mkdirSync, rmSync, writeFileSync } from 'node:fs';
|
|
3
3
|
import path from 'node:path';
|
|
4
|
-
import { planWipTransition, retainReleasedWipOwnership } from '
|
|
4
|
+
import { planWipTransition, retainReleasedWipOwnership } from '../../_vendor/core/dist/lane/wip-ownership-transition.js';
|
|
5
5
|
import { CliError } from '../shared.js';
|
|
6
6
|
import { readClaimLaneSessionId } from './claim-ownership.js';
|
|
7
7
|
import { runAtmGit } from '../git-governance.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { rearbitrateLinkedSurfaceScope } from '
|
|
2
|
-
import { pathMatchesWriteScope } from '
|
|
1
|
+
import { rearbitrateLinkedSurfaceScope } from '../../../_vendor/core/dist/scope/linked-surface/index.js';
|
|
2
|
+
import { pathMatchesWriteScope } from '../../../_vendor/core/dist/broker/write-scope-policy.js';
|
|
3
3
|
import { CliError } from '../../shared.js';
|
|
4
4
|
export function buildScopeAmendmentRearbitration(input) {
|
|
5
5
|
const current = new Set(input.currentScope.map((surface) => surface.replace(/\\/g, '/')));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inferLinkedSurfaceClosure } from '
|
|
1
|
+
import { inferLinkedSurfaceClosure } from '../../../_vendor/core/dist/scope/linked-surface/index.js';
|
|
2
2
|
export function buildLinkedSurfaceScopePreflight(input) {
|
|
3
3
|
const closure = inferLinkedSurfaceClosure({
|
|
4
4
|
rootScope: input.existingScope,
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* The public surface is unchanged: task-import-validators.ts re-exports every
|
|
12
12
|
* symbol below, so existing importers keep their import path.
|
|
13
13
|
*/
|
|
14
|
-
import { isTddMode, parseTddMode } from '
|
|
14
|
+
import { isTddMode, parseTddMode } from '../../_vendor/core/dist/evidence/tdd-cycle.js';
|
|
15
15
|
import { isBroadSuiteCommandOrKey, projectLegacyCommandValidators } from '../test-catalog.js';
|
|
16
16
|
import { normalizeOptionalString, normalizeTaskCausalGraphContract, parseYamlList } from './task-import-validators.js';
|
|
17
17
|
export function parseCausalValidatorCardFields(input) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { issueWorkAdmissionTicket } from '
|
|
1
|
+
import { issueWorkAdmissionTicket } from '../../_vendor/core/dist/broker/work-admission-ticket.js';
|
|
2
2
|
/**
|
|
3
3
|
* Import gets a deliberately tiny ticket: one imported ledger and its matching
|
|
4
4
|
* transition. A later task claim replaces it with the normal write ticket.
|
package/dist/commands/tasks.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { runTasks, runTasksClose, runTasksImport, runTasksVerify, runTasksClaimLifecycle, recordStaleRunnerOverride, isCliErrorWithCode, recordFailedEmergencyUseAttempt, loadTaskDocumentOrThrow, buildResidueDiagnosisEvidence, prepareTaskForClaim, readDeferredForeignStagedFilesForActiveCloseWindow, evaluateFrameworkDeliveryWindow, evaluateTaskDeliverableGate, taskDeliveryPrincipleText, loadHistoricalBatchCloseSlice, extractTaskCloseDeclaredFiles, extractTaskDeliverableFiles, assertLocalTaskLedgerEnabled, writeTaskDocumentWithTransition, stageTaskCloseArtifacts, existingTaskCloseArtifacts, createClosureTransitionMetadata, inspectTaskVerifyStatus, inspectTaskSourceTrace, classifyResetOpenImportForOptions, parseImportOptions, parseVerifyOptions, uniqueStrings, parseSingleCardFromPlugin, runTasksRosterUpdate, generateTaskCard, collectActiveClaimImportSkips, enrichParsedTasksFromSiblingTaskCards, findTaskClaimDependencyBlockers, validStatuses } from './tasks/legacy-impl.js';
|
|
2
|
-
export { parsePlanMarkdown, detectPlanHeadings } from '
|
|
2
|
+
export { parsePlanMarkdown, detectPlanHeadings } from '../_vendor/atm-markdown-task-source/dist/task-card-parser.js';
|
|
3
3
|
export { writeTaskFiles, writeImportEvidence } from './tasks/task-card-writer.js';
|
|
4
4
|
export { parseReconcileOptions, parseDeliverAndCloseOptions, parseCreateOptions, parseMirrorOptions, parseCloseOptions, parseStatusOptions, parseFinalizeDiagnoseOptions, parseResetOptions, parseLockCleanupOptions, parseClaimLifecycleOptions, parseHistoricalDeliveryRefs, parseScopeAddOptions, parseScopeRepairOptions, parseQueueOptions, parseAuditOptions, parseLegacyLedgerMigrationOptions, parseAllowStaleRunnerFlag } from './tasks/task-option-parsers.js';
|
|
5
5
|
export { safeTaskFileReadDir, safeTaskFileStat, readJsonRecord, taskPathFor, collectTaskFileValues, normalizeRelativePath, legacyTaskRequiresBaseline } from './tasks/task-file-io-helpers.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
2
2
|
import path from 'node:path';
|
|
3
|
-
import { TEAM_PROVIDER_IDS } from '
|
|
4
|
-
import { createBrokerConflictResolutionArtifact } from '
|
|
5
|
-
import { buildTeamObservabilityContract, createBrokerConflictObservabilityEvents, queryTeamObservabilityEvents } from '
|
|
3
|
+
import { TEAM_PROVIDER_IDS } from '../../../_vendor/core/dist/team-runtime/provider-contract.js';
|
|
4
|
+
import { createBrokerConflictResolutionArtifact } from '../../../_vendor/core/dist/team-runtime/permission-broker.js';
|
|
5
|
+
import { buildTeamObservabilityContract, createBrokerConflictObservabilityEvents, queryTeamObservabilityEvents } from '../../../_vendor/core/dist/team-runtime/observability.js';
|
|
6
6
|
import { CliError, makeResult, message } from '../../shared.js';
|
|
7
7
|
import { runtimeBackendAdmissionForTeam } from '../team-execution-lane.js';
|
|
8
8
|
import { listTeamRuns, readTeamRun, teamRunsDirectory } from './team-run-store.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CliError, makeResult, message } from '../../shared.js';
|
|
2
|
-
import { createTeamObservabilityEvent } from '
|
|
3
|
-
import { readTeamHandoffArtifacts, teamHandoffHistoryDirectory, teamHandoffRuntimeDirectory, verifyTeamHandoffHistory, verifyTeamHandoffLedger } from '
|
|
2
|
+
import { createTeamObservabilityEvent } from '../../../_vendor/core/dist/team-runtime/observability.js';
|
|
3
|
+
import { readTeamHandoffArtifacts, teamHandoffHistoryDirectory, teamHandoffRuntimeDirectory, verifyTeamHandoffHistory, verifyTeamHandoffLedger } from '../../../_vendor/core/dist/team-runtime/handoff-ledger.js';
|
|
4
4
|
import { teamPermissionCatalog } from './types.js';
|
|
5
5
|
import { appendTeamRuntimeObservabilityEvents, buildDirectTeamRoleInstructions, TEAM_HANDOFF_CONTEXT_MAX_ARTIFACTS } from './provider-execution.js';
|
|
6
6
|
import { normalizePermissionLeaseRecords, readTeamRun } from './team-run-store.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync, readFileSync } from 'node:fs';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import { CliError, makeResult, message, quoteCliValue, readJsonFile } from '../../shared.js';
|
|
4
|
-
import { readTeamHandoffArtifacts, renderTeamHandoffIndex, teamHandoffRuntimeDirectory, verifyTeamHandoffLedger } from '
|
|
4
|
+
import { readTeamHandoffArtifacts, renderTeamHandoffIndex, teamHandoffRuntimeDirectory, verifyTeamHandoffLedger } from '../../../_vendor/core/dist/team-runtime/handoff-ledger.js';
|
|
5
5
|
import { normalizeOptionalRuntimeString } from './runtime-governance.js';
|
|
6
6
|
import { buildTeamPatrolFollowUp, buildTeamRunPatrolFindings, summarizePatrolSeverity, suggestedPatrolCommand, teamPatrolFinding } from './patrol-contracts.js';
|
|
7
7
|
import { evaluateLargeScriptRisk } from './crew-decision-policy.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
|
-
import { buildTeamBrokerEvidence, brokerLaneToFindings, evaluateTeamBrokerLane } from '
|
|
3
|
-
import { buildTeamObservabilityContract } from '
|
|
2
|
+
import { buildTeamBrokerEvidence, brokerLaneToFindings, evaluateTeamBrokerLane } from '../../../_vendor/core/dist/broker/team-lane.js';
|
|
3
|
+
import { buildTeamObservabilityContract } from '../../../_vendor/core/dist/team-runtime/observability.js';
|
|
4
4
|
import { readJsonFile } from '../../shared.js';
|
|
5
5
|
import { buildTeamGrowthContract, buildTeamRoleGrowthObservabilityContract } from '../growth-contract.js';
|
|
6
6
|
import { buildProviderNeutralRoleSkillPackManifest, buildTeamRoleRoutingMatrix, buildTeamRoleSkillPackContract } from '../role-skill-packs.js';
|
|
@@ -5,7 +5,7 @@ import { runTasks } from '../../tasks.js';
|
|
|
5
5
|
import { evaluateBrokerQueueAdmission, restrictTeamWriteScopeForQueueAdmission } from '../../next/broker-queue-admission.js';
|
|
6
6
|
import { findTaskClaimDependencyBlockers } from '../../tasks/dependency-gates.js';
|
|
7
7
|
import { buildTeamKnowledgeSummary } from '../../team-knowledge.js';
|
|
8
|
-
import { readBrokerProposalFile, validateBrokerProposal } from '
|
|
8
|
+
import { readBrokerProposalFile, validateBrokerProposal } from '../../../_vendor/core/dist/broker/proposal.js';
|
|
9
9
|
import { inspectGitIndexOwnership } from '../../git-index-ownership.js';
|
|
10
10
|
import { buildPermissionFinding, deriveAllowedWriteScope, mergeValidation, validateTeamPermissionModel } from './permission-lease-policy.js';
|
|
11
11
|
import { buildTeamPlan, planTeamBrokerLane } from './plan-orchestration.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { appendFileSync, existsSync, mkdirSync } from 'node:fs';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import { CliError, readJsonFile } from '../../shared.js';
|
|
4
|
-
import { createAnthropicTeamProviderBridge, launchAnthropicTeamProviderRun } from '
|
|
5
|
-
import { createGeminiDirectTeamProviderBridge, launchGeminiDirectTeamProviderRun } from '
|
|
6
|
-
import { createOpenAITeamProviderBridge, launchOpenAITeamProviderRun } from '
|
|
7
|
-
import { TEAM_PROVIDER_IDS } from '
|
|
8
|
-
import { createDefaultTeamPermissionPolicy } from '
|
|
9
|
-
import { materializeTeamRoleHandoff, verifyTeamHandoffLedger } from '
|
|
10
|
-
import { createTeamObservabilityEvent } from '
|
|
4
|
+
import { createAnthropicTeamProviderBridge, launchAnthropicTeamProviderRun } from '../../../_vendor/core/dist/team-runtime/providers/anthropic.js';
|
|
5
|
+
import { createGeminiDirectTeamProviderBridge, launchGeminiDirectTeamProviderRun } from '../../../_vendor/core/dist/team-runtime/providers/gemini-direct.js';
|
|
6
|
+
import { createOpenAITeamProviderBridge, launchOpenAITeamProviderRun } from '../../../_vendor/core/dist/team-runtime/providers/openai.js';
|
|
7
|
+
import { TEAM_PROVIDER_IDS } from '../../../_vendor/core/dist/team-runtime/provider-contract.js';
|
|
8
|
+
import { createDefaultTeamPermissionPolicy } from '../../../_vendor/core/dist/team-runtime/permission-broker.js';
|
|
9
|
+
import { materializeTeamRoleHandoff, verifyTeamHandoffLedger } from '../../../_vendor/core/dist/team-runtime/handoff-ledger.js';
|
|
10
|
+
import { createTeamObservabilityEvent } from '../../../_vendor/core/dist/team-runtime/observability.js';
|
|
11
11
|
import { teamRunsDirectory } from './team-run-store.js';
|
|
12
12
|
export const TEAM_HANDOFF_CONTEXT_PER_ARTIFACT_TOKENS = 256;
|
|
13
13
|
export const TEAM_HANDOFF_CONTEXT_MAX_ARTIFACTS = 4;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createHash } from 'node:crypto';
|
|
2
2
|
import { TEAM_CLOSURE_ATTESTATION_SCHEMA_ID } from '../../evidence.js';
|
|
3
3
|
import { CliError } from '../../shared.js';
|
|
4
|
-
import { resolveNodejsTeamWorkerAdapter } from '
|
|
4
|
+
import { resolveNodejsTeamWorkerAdapter } from '../../../_vendor/core/dist/team-runtime/nodejs-worker-adapter.js';
|
|
5
5
|
import { resolveTeamRuntimeProviderSelection } from '../role-provider-resolution.js';
|
|
6
6
|
import { buildTeamArtifactHandoffContract, buildTeamRetryBudgetContract, buildTeamRoleArtifactContract } from './runtime-contracts.js';
|
|
7
7
|
export function buildTeamRuntimeContract(input) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync, mkdirSync } from 'node:fs';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import { makeResult, message, readJsonFile, writeJsonFile } from '../../shared.js';
|
|
4
|
-
import { planSharedSurfaceAcquisition } from '
|
|
4
|
+
import { planSharedSurfaceAcquisition } from '../../../_vendor/core/dist/broker/shared-surface-queue.js';
|
|
5
5
|
import { composeTeamContributionManifests } from '../../team/composer.js';
|
|
6
6
|
import { buildTeamReworkRouteStateMachine } from './runtime-contracts.js';
|
|
7
7
|
import { compactTeamRun, createTeamRunId, listTeamRuns, readTeamRun, teamRunsDirectory } from './team-run-store.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
2
|
import { existsSync } from 'node:fs';
|
|
3
3
|
import { readJsonFile } from '../shared.js';
|
|
4
|
-
import { mergeTeamProviderSelectionConfig, resolveTeamProviderSelection } from '
|
|
4
|
+
import { mergeTeamProviderSelectionConfig, resolveTeamProviderSelection } from '../../_vendor/core/dist/team-runtime/provider-selection.js';
|
|
5
5
|
export function loadTeamProviderSelectionConfigFromRepo(cwd, cliRoleOverrides, cliGlobalDefault) {
|
|
6
6
|
const configPath = path.join(cwd, '.atm', 'config', 'team-provider-selection.json');
|
|
7
7
|
const loaded = existsSync(configPath);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TEAM_PROVIDER_IDS } from '
|
|
2
|
-
import { resolveTeamProviderSelection } from '
|
|
1
|
+
import { TEAM_PROVIDER_IDS } from '../../_vendor/core/dist/team-runtime/provider-contract.js';
|
|
2
|
+
import { resolveTeamProviderSelection } from '../../_vendor/core/dist/team-runtime/provider-selection.js';
|
|
3
3
|
export function buildTeamRoleSkillPackContract(recipe) {
|
|
4
4
|
const rolePackDefaults = {
|
|
5
5
|
coordinator: {
|