@cleocode/core 2026.10.27 → 2026.11.1-canary.10
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/README.md +3 -1
- package/binaries/README.md +30 -10
- package/dist/.source-stamp.json +4 -0
- package/dist/adapters/adapter-registry.d.ts +0 -1
- package/dist/adapters/adapter-registry.js +2 -1
- package/dist/adapters/adapter-registry.js.map +1 -1
- package/dist/adapters/discovery.d.ts +9 -4
- package/dist/adapters/discovery.js +20 -6
- package/dist/adapters/discovery.js.map +1 -1
- package/dist/adapters/index.d.ts +0 -1
- package/dist/adapters/manager.d.ts +1 -2
- package/dist/adapters/manager.js +3 -3
- package/dist/adapters/manager.js.map +1 -1
- package/dist/admin/export-tasks.d.ts +0 -1
- package/dist/admin/export.d.ts +0 -1
- package/dist/admin/help.d.ts +0 -1
- package/dist/admin/import-tasks.d.ts +0 -1
- package/dist/admin/import.d.ts +0 -1
- package/dist/admin/index.d.ts +0 -1
- package/dist/admin/ops.d.ts +0 -1
- package/dist/adrs/find.d.ts +0 -1
- package/dist/adrs/index.d.ts +0 -1
- package/dist/adrs/link-pipeline.d.ts +0 -1
- package/dist/adrs/list.d.ts +0 -1
- package/dist/adrs/parse.d.ts +0 -1
- package/dist/adrs/show.d.ts +0 -1
- package/dist/adrs/sync.d.ts +0 -1
- package/dist/adrs/types.d.ts +0 -1
- package/dist/adrs/validate.d.ts +0 -1
- package/dist/agents/agent-capacity-tracker.d.ts +4 -5
- package/dist/agents/agent-capacity-tracker.js +6 -4
- package/dist/agents/agent-capacity-tracker.js.map +1 -1
- package/dist/agents/capacity.d.ts +1 -2
- package/dist/agents/capacity.js +3 -1
- package/dist/agents/capacity.js.map +1 -1
- package/dist/agents/ensure-agent-definitions.d.ts +106 -0
- package/dist/agents/ensure-agent-definitions.js +212 -0
- package/dist/agents/ensure-agent-definitions.js.map +1 -0
- package/dist/agents/execution-learning.d.ts +2 -2
- package/dist/agents/execution-learning.js +2 -1
- package/dist/agents/execution-learning.js.map +1 -1
- package/dist/agents/health-monitor.d.ts +1 -2
- package/dist/agents/health-monitor.js +1 -1
- package/dist/agents/index.d.ts +1 -2
- package/dist/agents/index.js +5 -3
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/install-pipeline.d.ts +0 -1
- package/dist/agents/invoke-meta-agent.d.ts +0 -1
- package/dist/agents/public-api.d.ts +0 -1
- package/dist/agents/registry.d.ts +3 -4
- package/dist/agents/registry.js +6 -3
- package/dist/agents/registry.js.map +1 -1
- package/dist/agents/resolveAgentTemplates.d.ts +10 -1
- package/dist/agents/resolveAgentTemplates.js +23 -7
- package/dist/agents/resolveAgentTemplates.js.map +1 -1
- package/dist/agents/retry.d.ts +0 -1
- package/dist/agents/scaffold.d.ts +0 -1
- package/dist/agents/seed-install.d.ts +0 -1
- package/dist/agents/variable-substitution.d.ts +0 -1
- package/dist/agents/work-loop.d.ts +0 -1
- package/dist/audit/reconstruct.d.ts +0 -1
- package/dist/audit/reconstruct.js +3 -13
- package/dist/audit/reconstruct.js.map +1 -1
- package/dist/audit-prune.d.ts +0 -1
- package/dist/audit.d.ts +0 -1
- package/dist/backfill/index.d.ts +0 -1
- package/dist/bootstrap.d.ts +0 -1
- package/dist/brain-tools/brain-fetch.d.ts +0 -1
- package/dist/brain-tools/brain-observe.d.ts +0 -1
- package/dist/brain-tools/brain-search.d.ts +0 -1
- package/dist/brain-tools/brain-timeline.d.ts +0 -1
- package/dist/brain-tools/build-retrieval-bundle.d.ts +0 -1
- package/dist/brain-tools/index.d.ts +0 -1
- package/dist/build-provenance.json +2 -2
- package/dist/caamp/adapter.d.ts +0 -1
- package/dist/caamp/capability-check.d.ts +0 -1
- package/dist/caamp/index.d.ts +0 -1
- package/dist/caamp-export.d.ts +0 -1
- package/dist/caamp-init.d.ts +0 -1
- package/dist/changesets/index.d.ts +0 -1
- package/dist/changesets/parse-frontmatter.d.ts +0 -1
- package/dist/changesets/parser.d.ts +0 -1
- package/dist/changesets/writer.d.ts +0 -1
- package/dist/check/index.d.ts +0 -1
- package/dist/check/pr-gate.d.ts +1 -2
- package/dist/check/pr-gate.js +6 -6
- package/dist/check/pr-gate.js.map +1 -1
- package/dist/cleo.d.ts +0 -1
- package/dist/cleo.js +2 -1
- package/dist/cleo.js.map +1 -1
- package/dist/cloud/auto-sync-command-entry.d.ts +0 -1
- package/dist/cloud/auto-sync-command.d.ts +0 -1
- package/dist/cloud/auto-sync.d.ts +0 -1
- package/dist/cloud/crypto.d.ts +0 -1
- package/dist/cloud/doc-bytes.d.ts +0 -1
- package/dist/cloud/http.d.ts +0 -1
- package/dist/cloud/index.d.ts +0 -1
- package/dist/cloud/journal-tallies.d.ts +0 -1
- package/dist/cloud/journal.d.ts +0 -1
- package/dist/cloud/keys.d.ts +0 -1
- package/dist/cloud/manifest-check.d.ts +0 -1
- package/dist/cloud/nexus-attach.d.ts +2 -1
- package/dist/cloud/nexus-attach.js +4 -1
- package/dist/cloud/nexus-attach.js.map +1 -1
- package/dist/cloud/nexus-auth.d.ts +0 -1
- package/dist/cloud/nexus-cloud-activity.d.ts +0 -1
- package/dist/cloud/nexus-cloud-conflicts.d.ts +0 -1
- package/dist/cloud/nexus-cloud-device-overview.d.ts +0 -1
- package/dist/cloud/nexus-cloud-journal-activity.d.ts +0 -1
- package/dist/cloud/nexus-cloud-status.d.ts +0 -1
- package/dist/cloud/nexus-cloud.d.ts +0 -1
- package/dist/cloud/nexus-cloud.js +3 -3
- package/dist/cloud/nexus-cloud.js.map +1 -1
- package/dist/cloud/nexus-credentials.d.ts +0 -1
- package/dist/cloud/nexus-device.d.ts +1 -2
- package/dist/cloud/nexus-enrol.d.ts +0 -1
- package/dist/cloud/nexus-first-run.d.ts +0 -1
- package/dist/cloud/nexus-home.d.ts +0 -1
- package/dist/cloud/nexus-link.d.ts +18 -3
- package/dist/cloud/nexus-link.js +26 -6
- package/dist/cloud/nexus-link.js.map +1 -1
- package/dist/cloud/nexus-logout.d.ts +0 -1
- package/dist/cloud/nexus-presence-refresh.d.ts +5 -4
- package/dist/cloud/nexus-presence-refresh.js +7 -4
- package/dist/cloud/nexus-presence-refresh.js.map +1 -1
- package/dist/cloud/nexus-project-history.d.ts +0 -1
- package/dist/cloud/nexus-project-names.d.ts +0 -1
- package/dist/cloud/nexus-vault-keys.d.ts +0 -1
- package/dist/cloud/nexus-vault-state.d.ts +0 -1
- package/dist/cloud/nexus-vault.d.ts +0 -1
- package/dist/cloud/nexus-vault.js +3 -9
- package/dist/cloud/nexus-vault.js.map +1 -1
- package/dist/cloud/presence.d.ts +0 -1
- package/dist/cloud/projects.d.ts +0 -1
- package/dist/cloud/replica-rebind.d.ts +0 -1
- package/dist/cloud/secret-seal.d.ts +0 -1
- package/dist/cloud/signing.d.ts +0 -1
- package/dist/cloud/streams.d.ts +0 -1
- package/dist/cloud/uuidv7.d.ts +0 -1
- package/dist/code/engine-ops.d.ts +0 -1
- package/dist/code/index.d.ts +0 -1
- package/dist/code/outline.d.ts +0 -1
- package/dist/code/parser.d.ts +0 -1
- package/dist/code/search.d.ts +0 -1
- package/dist/code/unfold.d.ts +0 -1
- package/dist/codebase-map/analyzers/architecture.d.ts +0 -1
- package/dist/codebase-map/analyzers/concerns.d.ts +0 -1
- package/dist/codebase-map/analyzers/conventions.d.ts +0 -1
- package/dist/codebase-map/analyzers/integrations.d.ts +0 -1
- package/dist/codebase-map/analyzers/stack.d.ts +0 -1
- package/dist/codebase-map/analyzers/structure.d.ts +0 -1
- package/dist/codebase-map/analyzers/testing.d.ts +0 -1
- package/dist/codebase-map/index.d.ts +0 -1
- package/dist/codebase-map/store.d.ts +0 -1
- package/dist/codebase-map/summary.d.ts +0 -1
- package/dist/compliance/index.d.ts +0 -1
- package/dist/compliance/protocol-enforcement.d.ts +0 -1
- package/dist/compliance/protocol-rules.d.ts +0 -1
- package/dist/compliance/protocol-types.d.ts +0 -1
- package/dist/compliance/store.d.ts +0 -1
- package/dist/conduit/cloud-endpoint.d.ts +0 -1
- package/dist/conduit/conduit-client.d.ts +0 -1
- package/dist/conduit/delivery-router.d.ts +0 -1
- package/dist/conduit/factory.d.ts +0 -1
- package/dist/conduit/http-transport.d.ts +0 -1
- package/dist/conduit/index.d.ts +0 -2
- package/dist/conduit/index.js.map +1 -1
- package/dist/conduit/local-transport.d.ts +0 -1
- package/dist/conduit/local-tui-adapter.d.ts +0 -1
- package/dist/conduit/sse-transport.d.ts +0 -1
- package/dist/config/build-config.d.ts +0 -1
- package/dist/config/config-repair.d.ts +0 -1
- package/dist/config/engine-ops.d.ts +0 -1
- package/dist/config/legacy-keys.d.ts +62 -0
- package/dist/config/legacy-keys.js +117 -0
- package/dist/config/legacy-keys.js.map +1 -0
- package/dist/config/registry.d.ts +0 -1
- package/dist/config/registry.js +29 -7
- package/dist/config/registry.js.map +1 -1
- package/dist/config.d.ts +0 -1
- package/dist/config.js +42 -9
- package/dist/config.js.map +1 -1
- package/dist/constants.d.ts +0 -1
- package/dist/context/index.d.ts +0 -1
- package/dist/contracts.d.ts +0 -1
- package/dist/core-paths.d.ts +0 -1
- package/dist/crypto/credentials.d.ts +0 -1
- package/dist/db/index.d.ts +0 -1
- package/dist/decide/audit.d.ts +0 -1
- package/dist/decide/bench/dataset.d.ts +0 -1
- package/dist/decide/bench/index.d.ts +0 -1
- package/dist/decide/bench/metrics.d.ts +0 -1
- package/dist/decide/bench/operation.d.ts +0 -1
- package/dist/decide/bench/profiles.d.ts +0 -1
- package/dist/decide/bench/questions.d.ts +0 -1
- package/dist/decide/bench/report.d.ts +0 -1
- package/dist/decide/bench/runner.d.ts +0 -1
- package/dist/decide/bench/source.d.ts +0 -1
- package/dist/decide/bench/spot-check.d.ts +0 -1
- package/dist/decide/bench/stats.d.ts +0 -1
- package/dist/decide/bench/types.d.ts +0 -1
- package/dist/decide/budget.d.ts +0 -1
- package/dist/decide/cache.d.ts +0 -1
- package/dist/decide/client.d.ts +0 -1
- package/dist/decide/credentials.d.ts +0 -1
- package/dist/decide/index.d.ts +0 -1
- package/dist/decide/jev-wire.d.ts +0 -1
- package/dist/decide/operations.d.ts +0 -1
- package/dist/decide/provider-state.d.ts +0 -1
- package/dist/decide/provider.d.ts +0 -1
- package/dist/decide/providers.d.ts +0 -1
- package/dist/decide/site.d.ts +0 -1
- package/dist/decide/sites/list.d.ts +0 -1
- package/dist/decide/sites/registry.d.ts +40 -1
- package/dist/decide/sites/registry.js +38 -0
- package/dist/decide/sites/registry.js.map +1 -1
- package/dist/decide/spend.d.ts +0 -1
- package/dist/decide/transport.d.ts +0 -1
- package/dist/decide/wizard.d.ts +0 -1
- package/dist/deriver/consumer.d.ts +0 -1
- package/dist/deriver/deriver.d.ts +0 -1
- package/dist/deriver/enqueue.d.ts +0 -1
- package/dist/deriver/index.d.ts +0 -1
- package/dist/deriver/queue-manager.d.ts +0 -1
- package/dist/deriver/status.d.ts +0 -1
- package/dist/diagnostics/engine-ops.d.ts +0 -1
- package/dist/diagnostics/index.d.ts +0 -1
- package/dist/discovery.d.ts +0 -1
- package/dist/dispatch/config-domain-handler.d.ts +0 -1
- package/dist/dispatch/contracts/derive-output-contract.d.ts +1 -2
- package/dist/dispatch/contracts/derive-output-contract.js +3 -3
- package/dist/dispatch/contracts/ensures-schema.d.ts +0 -1
- package/dist/dispatch/contracts/input-contracts.d.ts +0 -1
- package/dist/dispatch/contracts/output-contracts.d.ts +0 -1
- package/dist/dispatch/describe-operation.d.ts +0 -1
- package/dist/dispatch/mutate-projection.d.ts +1 -2
- package/dist/dispatch/mutate-projection.js +45 -1
- package/dist/dispatch/mutate-projection.js.map +1 -1
- package/dist/dispatch/mvi-projection.d.ts +0 -1
- package/dist/dispatch/projection.d.ts +0 -1
- package/dist/dispatch/suggested-next.d.ts +0 -1
- package/dist/dispatch/validation.d.ts +0 -1
- package/dist/docs/adr-allocator.d.ts +3 -4
- package/dist/docs/adr-allocator.js +8 -5
- package/dist/docs/adr-allocator.js.map +1 -1
- package/dist/docs/blob-consolidation.d.ts +0 -1
- package/dist/docs/blob-consolidation.js +3 -2
- package/dist/docs/blob-consolidation.js.map +1 -1
- package/dist/docs/build-provenance-graph.d.ts +0 -1
- package/dist/docs/build-provenance-graph.js +6 -4
- package/dist/docs/build-provenance-graph.js.map +1 -1
- package/dist/docs/conduit-history-backfill.d.ts +0 -1
- package/dist/docs/conduit-history-backfill.js +2 -35
- package/dist/docs/conduit-history-backfill.js.map +1 -1
- package/dist/docs/derive-links.d.ts +12 -1
- package/dist/docs/derive-links.js +19 -0
- package/dist/docs/derive-links.js.map +1 -1
- package/dist/docs/display-alias.d.ts +0 -1
- package/dist/docs/display-alias.js +3 -0
- package/dist/docs/display-alias.js.map +1 -1
- package/dist/docs/doc-name-rule.d.ts +104 -0
- package/dist/docs/doc-name-rule.js +212 -0
- package/dist/docs/doc-name-rule.js.map +1 -0
- package/dist/docs/docs-audit.d.ts +0 -1
- package/dist/docs/docs-fts.d.ts +101 -0
- package/dist/docs/docs-fts.js +267 -0
- package/dist/docs/docs-fts.js.map +1 -0
- package/dist/docs/docs-generator.d.ts +0 -1
- package/dist/docs/docs-inconsistency-detector.d.ts +0 -1
- package/dist/docs/docs-inconsistency-detector.js +20 -16
- package/dist/docs/docs-inconsistency-detector.js.map +1 -1
- package/dist/docs/docs-ops.d.ts +40 -6
- package/dist/docs/docs-ops.js +176 -20
- package/dist/docs/docs-ops.js.map +1 -1
- package/dist/docs/docs-read-model.d.ts +53 -16
- package/dist/docs/docs-read-model.js +80 -118
- package/dist/docs/docs-read-model.js.map +1 -1
- package/dist/docs/docs-update.d.ts +21 -1
- package/dist/docs/docs-update.js +183 -146
- package/dist/docs/docs-update.js.map +1 -1
- package/dist/docs/doctor.d.ts +81 -5
- package/dist/docs/doctor.js +352 -26
- package/dist/docs/doctor.js.map +1 -1
- package/dist/docs/document-edges.d.ts +0 -1
- package/dist/docs/duplicate-check.d.ts +137 -0
- package/dist/docs/duplicate-check.js +286 -0
- package/dist/docs/duplicate-check.js.map +1 -0
- package/dist/docs/export-document.d.ts +0 -1
- package/dist/docs/fetch-result.d.ts +0 -1
- package/dist/docs/fetch-result.js +27 -0
- package/dist/docs/fetch-result.js.map +1 -1
- package/dist/docs/import/attachment-store-accessor.d.ts +0 -1
- package/dist/docs/import/audit.d.ts +0 -1
- package/dist/docs/import/dedup.d.ts +0 -1
- package/dist/docs/import/import-orchestrator.d.ts +0 -1
- package/dist/docs/import/scanner.d.ts +2 -1
- package/dist/docs/import/scanner.js +3 -1
- package/dist/docs/import/scanner.js.map +1 -1
- package/dist/docs/import/slug.d.ts +0 -1
- package/dist/docs/index.d.ts +0 -1
- package/dist/docs/legacy-doc-migration.d.ts +37 -5
- package/dist/docs/legacy-doc-migration.js +108 -48
- package/dist/docs/legacy-doc-migration.js.map +1 -1
- package/dist/docs/lineage.d.ts +80 -0
- package/dist/docs/lineage.js +246 -0
- package/dist/docs/lineage.js.map +1 -0
- package/dist/docs/migrate-agent-outputs.d.ts +0 -1
- package/dist/docs/modernize/apply.d.ts +138 -0
- package/dist/docs/modernize/apply.js +814 -0
- package/dist/docs/modernize/apply.js.map +1 -0
- package/dist/docs/modernize/guard.d.ts +93 -0
- package/dist/docs/modernize/guard.js +272 -0
- package/dist/docs/modernize/guard.js.map +1 -0
- package/dist/docs/modernize/index.d.ts +67 -0
- package/dist/docs/modernize/index.js +97 -0
- package/dist/docs/modernize/index.js.map +1 -0
- package/dist/docs/modernize/judge.d.ts +84 -0
- package/dist/docs/modernize/judge.js +186 -0
- package/dist/docs/modernize/judge.js.map +1 -0
- package/dist/docs/modernize/plan.d.ts +76 -0
- package/dist/docs/modernize/plan.js +606 -0
- package/dist/docs/modernize/plan.js.map +1 -0
- package/dist/docs/modernize/restore.d.ts +54 -0
- package/dist/docs/modernize/restore.js +129 -0
- package/dist/docs/modernize/restore.js.map +1 -0
- package/dist/docs/modernize/rules.d.ts +206 -0
- package/dist/docs/modernize/rules.js +539 -0
- package/dist/docs/modernize/rules.js.map +1 -0
- package/dist/docs/modernize/store.d.ts +63 -0
- package/dist/docs/modernize/store.js +390 -0
- package/dist/docs/modernize/store.js.map +1 -0
- package/dist/docs/numbering.d.ts +0 -1
- package/dist/docs/numbering.js +20 -5
- package/dist/docs/numbering.js.map +1 -1
- package/dist/docs/projection.d.ts +0 -1
- package/dist/docs/publications-store.d.ts +16 -3
- package/dist/docs/publications-store.js +23 -2
- package/dist/docs/publications-store.js.map +1 -1
- package/dist/docs/publish-pr.d.ts +0 -1
- package/dist/docs/publish-pr.js +12 -1
- package/dist/docs/publish-pr.js.map +1 -1
- package/dist/docs/read-doc.d.ts +0 -1
- package/dist/docs/read-doc.js +21 -46
- package/dist/docs/read-doc.js.map +1 -1
- package/dist/docs/rot.d.ts +93 -0
- package/dist/docs/rot.js +298 -0
- package/dist/docs/rot.js.map +1 -0
- package/dist/docs/section-leases.d.ts +0 -1
- package/dist/docs/section-merge.d.ts +0 -1
- package/dist/docs/section-write-path.d.ts +35 -1
- package/dist/docs/section-write-path.js +76 -13
- package/dist/docs/section-write-path.js.map +1 -1
- package/dist/docs/similarity-check.d.ts +2 -1
- package/dist/docs/similarity-check.js +6 -49
- package/dist/docs/similarity-check.js.map +1 -1
- package/dist/docs/slug-allocator.d.ts +0 -1
- package/dist/docs/slug-allocator.js +3 -1
- package/dist/docs/slug-allocator.js.map +1 -1
- package/dist/docs/slug-normalize.d.ts +0 -1
- package/dist/docs/slug-rename.d.ts +188 -0
- package/dist/docs/slug-rename.js +428 -0
- package/dist/docs/slug-rename.js.map +1 -0
- package/dist/docs/slug-similarity.d.ts +23 -0
- package/dist/docs/slug-similarity.js +63 -0
- package/dist/docs/slug-similarity.js.map +1 -0
- package/dist/docs/stats.d.ts +0 -1
- package/dist/docs/supersede.d.ts +0 -1
- package/dist/docs/supersede.js +9 -1
- package/dist/docs/supersede.js.map +1 -1
- package/dist/docs/triage.d.ts +0 -1
- package/dist/docs/triage.js +26 -35
- package/dist/docs/triage.js.map +1 -1
- package/dist/docs/validate-body.d.ts +0 -1
- package/dist/docs/version-ssot.d.ts +0 -1
- package/dist/docs/wikilinks.d.ts +20 -5
- package/dist/docs/wikilinks.js +65 -35
- package/dist/docs/wikilinks.js.map +1 -1
- package/dist/docs/writer-registry.d.ts +0 -1
- package/dist/docs/writer-registry.js +33 -0
- package/dist/docs/writer-registry.js.map +1 -1
- package/dist/doctor/acceptance-drift.d.ts +0 -1
- package/dist/doctor/container-reaper.d.ts +0 -1
- package/dist/doctor/db-substrate.d.ts +0 -1
- package/dist/doctor/db-substrate.js +15 -7
- package/dist/doctor/db-substrate.js.map +1 -1
- package/dist/doctor/dependency-cycles.d.ts +0 -1
- package/dist/doctor/doctor-project.d.ts +0 -1
- package/dist/doctor/index.d.ts +0 -1
- package/dist/doctor/invariant-audit-render.d.ts +0 -1
- package/dist/doctor/invariant-audit.d.ts +0 -1
- package/dist/doctor/knowledge-summary.d.ts +11 -2
- package/dist/doctor/knowledge-summary.js +7 -4
- package/dist/doctor/knowledge-summary.js.map +1 -1
- package/dist/doctor/knowledge.d.ts +0 -1
- package/dist/doctor/legacy-backups.d.ts +0 -1
- package/dist/doctor/legacy-reaper.d.ts +0 -1
- package/dist/doctor/malformed-id-rekey.d.ts +64 -0
- package/dist/doctor/malformed-id-rekey.js +153 -0
- package/dist/doctor/malformed-id-rekey.js.map +1 -0
- package/dist/doctor/malformed-task-ids.d.ts +16 -8
- package/dist/doctor/malformed-task-ids.js +19 -11
- package/dist/doctor/malformed-task-ids.js.map +1 -1
- package/dist/doctor/migrations.d.ts +0 -1
- package/dist/doctor/nexus-schema-residency.d.ts +0 -1
- package/dist/doctor/orphan-ac-bindings.d.ts +0 -1
- package/dist/doctor/pragma-ssot.d.ts +0 -1
- package/dist/doctor/project-identity.d.ts +0 -1
- package/dist/doctor/projects.d.ts +0 -1
- package/dist/doctor/row-identity-refill.d.ts +0 -1
- package/dist/doctor/row-identity.d.ts +0 -1
- package/dist/doctor/saga-audit.d.ts +0 -1
- package/dist/doctor/superseded-store.d.ts +0 -1
- package/dist/doctor/sync-repair.d.ts +0 -1
- package/dist/doctor/sync-sealer.d.ts +0 -1
- package/dist/doctor/sync-triggers.d.ts +0 -1
- package/dist/doctor/system-health.d.ts +0 -1
- package/dist/doctor/twin-collapse.d.ts +0 -1
- package/dist/doctor/type-matrix-repair.d.ts +224 -0
- package/dist/doctor/type-matrix-repair.js +780 -0
- package/dist/doctor/type-matrix-repair.js.map +1 -0
- package/dist/doctor/worktree-orphans.d.ts +0 -1
- package/dist/doctor/worktree-stores.d.ts +0 -1
- package/dist/engine/engine-ops.d.ts +0 -1
- package/dist/engine/gate-validators.d.ts +0 -1
- package/dist/engine-result.d.ts +0 -1
- package/dist/error-catalog.d.ts +0 -1
- package/dist/error-catalog.js +6 -0
- package/dist/error-catalog.js.map +1 -1
- package/dist/error-registry.d.ts +0 -1
- package/dist/error-registry.js +8 -0
- package/dist/error-registry.js.map +1 -1
- package/dist/errors-to-engine.d.ts +8 -5
- package/dist/errors-to-engine.js +9 -5
- package/dist/errors-to-engine.js.map +1 -1
- package/dist/errors.d.ts +14 -1
- package/dist/errors.js +10 -0
- package/dist/errors.js.map +1 -1
- package/dist/events/event-bus.d.ts +0 -1
- package/dist/formatters/index.d.ts +0 -1
- package/dist/formatters/tree.d.ts +0 -1
- package/dist/formatters/waves.d.ts +0 -1
- package/dist/gateway-client/client.d.ts +0 -1
- package/dist/gateway-client/generated/client/client.gen.d.ts +0 -1
- package/dist/gateway-client/generated/client/index.d.ts +0 -1
- package/dist/gateway-client/generated/client/types.gen.d.ts +0 -1
- package/dist/gateway-client/generated/client/utils.gen.d.ts +0 -1
- package/dist/gateway-client/generated/client.gen.d.ts +0 -1
- package/dist/gateway-client/generated/core/auth.gen.d.ts +0 -1
- package/dist/gateway-client/generated/core/bodySerializer.gen.d.ts +0 -1
- package/dist/gateway-client/generated/core/params.gen.d.ts +0 -1
- package/dist/gateway-client/generated/core/pathSerializer.gen.d.ts +0 -1
- package/dist/gateway-client/generated/core/queryKeySerializer.gen.d.ts +0 -1
- package/dist/gateway-client/generated/core/serverSentEvents.gen.d.ts +0 -1
- package/dist/gateway-client/generated/core/types.gen.d.ts +0 -1
- package/dist/gateway-client/generated/core/utils.gen.d.ts +0 -1
- package/dist/gateway-client/generated/index.d.ts +2 -3
- package/dist/gateway-client/generated/index.js +1 -1
- package/dist/gateway-client/generated/index.js.map +1 -1
- package/dist/gateway-client/generated/namespaces.gen.d.ts +6 -21
- package/dist/gateway-client/generated/namespaces.gen.js +7 -21
- package/dist/gateway-client/generated/namespaces.gen.js.map +1 -1
- package/dist/gateway-client/generated/sdk.gen.d.ts +26 -75
- package/dist/gateway-client/generated/sdk.gen.js +60 -171
- package/dist/gateway-client/generated/sdk.gen.js.map +1 -1
- package/dist/gateway-client/generated/types.gen.d.ts +323 -609
- package/dist/gateway-client/index.d.ts +0 -1
- package/dist/gc/cleanup.d.ts +9 -10
- package/dist/gc/cleanup.js +22 -224
- package/dist/gc/cleanup.js.map +1 -1
- package/dist/gc/daemon-entry.d.ts +0 -1
- package/dist/gc/daemon.d.ts +0 -1
- package/dist/gc/gc-subsystem.d.ts +4 -1
- package/dist/gc/gc-subsystem.js +16 -0
- package/dist/gc/gc-subsystem.js.map +1 -1
- package/dist/gc/index.d.ts +0 -1
- package/dist/gc/janitor.d.ts +0 -1
- package/dist/gc/runner.d.ts +2 -3
- package/dist/gc/runner.js +2 -2
- package/dist/gc/state.d.ts +0 -1
- package/dist/gc/transcript.d.ts +1 -2
- package/dist/gc/transcript.js +1 -1
- package/dist/git/base-ref.d.ts +0 -1
- package/dist/git/bounded-git.d.ts +0 -1
- package/dist/git/hooks-install.d.ts +37 -2
- package/dist/git/hooks-install.js +120 -16
- package/dist/git/hooks-install.js.map +1 -1
- package/dist/git/work-tree.d.ts +48 -1
- package/dist/git/work-tree.js +63 -1
- package/dist/git/work-tree.js.map +1 -1
- package/dist/git-shim-export.d.ts +0 -1
- package/dist/go/driver.d.ts +0 -1
- package/dist/go/index.d.ts +0 -1
- package/dist/goal/close.d.ts +0 -1
- package/dist/goal/draft.d.ts +0 -1
- package/dist/goal/index.d.ts +0 -1
- package/dist/goal/runtime.d.ts +0 -1
- package/dist/goal/status.d.ts +0 -1
- package/dist/goal/store.d.ts +0 -1
- package/dist/harness/ask-enforce.d.ts +0 -1
- package/dist/harness/index.d.ts +0 -1
- package/dist/harness/spawn-provider-selection.d.ts +0 -1
- package/dist/harness/spawn-provider-selection.js +6 -5
- package/dist/harness/spawn-provider-selection.js.map +1 -1
- package/dist/harness/types.d.ts +0 -1
- package/dist/hooks/engine-ops.d.ts +0 -1
- package/dist/hooks/handlers/agent-hooks.d.ts +0 -1
- package/dist/hooks/handlers/conduit-hooks.d.ts +0 -1
- package/dist/hooks/handlers/context-hooks.d.ts +0 -1
- package/dist/hooks/handlers/error-hooks.d.ts +0 -1
- package/dist/hooks/handlers/file-hooks.d.ts +0 -1
- package/dist/hooks/handlers/handler-helpers.d.ts +0 -1
- package/dist/hooks/handlers/index.d.ts +0 -1
- package/dist/hooks/handlers/intelligence-hooks.d.ts +0 -1
- package/dist/hooks/handlers/memory-bridge-refresh.d.ts +0 -1
- package/dist/hooks/handlers/notification-hooks.d.ts +0 -1
- package/dist/hooks/handlers/precompact.d.ts +0 -1
- package/dist/hooks/handlers/session-hooks.d.ts +5 -5
- package/dist/hooks/handlers/session-hooks.js +5 -21
- package/dist/hooks/handlers/session-hooks.js.map +1 -1
- package/dist/hooks/handlers/task-hooks.d.ts +0 -1
- package/dist/hooks/handlers/watchdog-hooks.d.ts +0 -1
- package/dist/hooks/handlers/work-capture-hooks.d.ts +0 -1
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/payload-schemas.d.ts +0 -1
- package/dist/hooks/project-runner.d.ts +0 -1
- package/dist/hooks/project-state.d.ts +0 -1
- package/dist/hooks/provider-hooks.d.ts +0 -1
- package/dist/hooks/registry.d.ts +0 -1
- package/dist/hooks/release-gate.d.ts +0 -1
- package/dist/hooks/types.d.ts +0 -1
- package/dist/hooks.d.ts +6 -4
- package/dist/hooks.js +11 -3
- package/dist/hooks.js.map +1 -1
- package/dist/hygiene/census.d.ts +239 -0
- package/dist/hygiene/census.js +557 -0
- package/dist/hygiene/census.js.map +1 -0
- package/dist/hygiene/validate-spawn-readiness.d.ts +0 -1
- package/dist/identity/cleo-identity.d.ts +0 -1
- package/dist/identity/index.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/init/engine-ops.d.ts +0 -1
- package/dist/init/index.d.ts +0 -1
- package/dist/init/scaffold-workflows.d.ts +0 -1
- package/dist/init/upgrade-workflows.d.ts +0 -1
- package/dist/init.d.ts +7 -8
- package/dist/init.js +40 -91
- package/dist/init.js.map +1 -1
- package/dist/inject/index.d.ts +0 -1
- package/dist/injection.d.ts +0 -1
- package/dist/intelligence/adaptive-validation.d.ts +0 -1
- package/dist/intelligence/impact.d.ts +0 -1
- package/dist/intelligence/index.d.ts +0 -1
- package/dist/intelligence/patterns.d.ts +0 -1
- package/dist/intelligence/prediction.d.ts +0 -1
- package/dist/intelligence/types.d.ts +0 -1
- package/dist/internal.d.ts +11 -8
- package/dist/internal.js +10 -6
- package/dist/internal.js.map +1 -1
- package/dist/issue/create.d.ts +0 -1
- package/dist/issue/diagnostics.d.ts +0 -1
- package/dist/issue/index.d.ts +0 -1
- package/dist/issue/template-parser.d.ts +0 -1
- package/dist/json-schema-validator.d.ts +0 -1
- package/dist/lafs-export.d.ts +0 -1
- package/dist/lib/concurrency.d.ts +0 -1
- package/dist/lib/error-message.d.ts +0 -1
- package/dist/lib/index.d.ts +0 -1
- package/dist/lib/retry.d.ts +0 -1
- package/dist/lib/suppress-sqlite-warning.d.ts +0 -1
- package/dist/lib/tree-sitter-languages.d.ts +0 -1
- package/dist/lifecycle/consolidate-rcasd.d.ts +0 -1
- package/dist/lifecycle/effective-stage.d.ts +0 -1
- package/dist/lifecycle/engine-ops.d.ts +0 -1
- package/dist/lifecycle/engine-ops.js +12 -1
- package/dist/lifecycle/engine-ops.js.map +1 -1
- package/dist/lifecycle/evidence.d.ts +0 -1
- package/dist/lifecycle/frontmatter.d.ts +0 -1
- package/dist/lifecycle/index.d.ts +5 -6
- package/dist/lifecycle/index.js +3 -3
- package/dist/lifecycle/index.js.map +1 -1
- package/dist/lifecycle/kind-requirements.d.ts +0 -1
- package/dist/lifecycle/lead-authorship.d.ts +44 -0
- package/dist/lifecycle/lead-authorship.js +64 -0
- package/dist/lifecycle/lead-authorship.js.map +1 -0
- package/dist/lifecycle/pipeline.d.ts +0 -1
- package/dist/lifecycle/rcasd-index.d.ts +0 -1
- package/dist/lifecycle/rcasd-paths.d.ts +0 -1
- package/dist/lifecycle/resume.d.ts +0 -1
- package/dist/lifecycle/rollup.d.ts +0 -1
- package/dist/lifecycle/stage-artifacts.d.ts +13 -4
- package/dist/lifecycle/stage-artifacts.js +16 -21
- package/dist/lifecycle/stage-artifacts.js.map +1 -1
- package/dist/lifecycle/stage-guidance.d.ts +2 -1
- package/dist/lifecycle/stage-guidance.js +3 -1
- package/dist/lifecycle/stage-guidance.js.map +1 -1
- package/dist/lifecycle/stages.d.ts +0 -1
- package/dist/lifecycle/state-machine.d.ts +0 -1
- package/dist/lifecycle/status.d.ts +0 -1
- package/dist/lifecycle/validator/index.d.ts +0 -1
- package/dist/lifecycle/validator/runtime.d.ts +0 -1
- package/dist/lifecycle/verification/explain.d.ts +0 -1
- package/dist/lifecycle/verification/satisfies-validator.d.ts +0 -1
- package/dist/llm/ai-sdk-warnings.d.ts +0 -1
- package/dist/llm/api-mode.d.ts +0 -1
- package/dist/llm/api.d.ts +0 -1
- package/dist/llm/auxiliary-fallback.d.ts +0 -1
- package/dist/llm/backend.d.ts +0 -1
- package/dist/llm/caching.d.ts +0 -1
- package/dist/llm/catalog-cache.d.ts +0 -1
- package/dist/llm/catalog-model-resolver.d.ts +0 -1
- package/dist/llm/catalog-resolver.d.ts +0 -1
- package/dist/llm/catalog-seeder.d.ts +0 -1
- package/dist/llm/cli-ops.d.ts +0 -1
- package/dist/llm/complexity-classifier.d.ts +0 -1
- package/dist/llm/concrete-executor.d.ts +0 -1
- package/dist/llm/concrete-session.d.ts +0 -1
- package/dist/llm/context-engines/index.d.ts +0 -1
- package/dist/llm/context-engines/rule-based-truncation.d.ts +0 -1
- package/dist/llm/conversation.d.ts +0 -1
- package/dist/llm/credential-pool.d.ts +0 -1
- package/dist/llm/credential-removal.d.ts +0 -1
- package/dist/llm/credential-remove-entry.d.ts +0 -1
- package/dist/llm/credential-seeders/claude-code-seeder.d.ts +0 -1
- package/dist/llm/credential-seeders/cleo-pkce-seeder.d.ts +0 -1
- package/dist/llm/credential-seeders/codex-cli-seeder.d.ts +0 -1
- package/dist/llm/credential-seeders/env-seeder.d.ts +0 -1
- package/dist/llm/credential-seeders/gemini-cli-seeder.d.ts +0 -1
- package/dist/llm/credential-seeders/gh-cli-seeder.d.ts +0 -1
- package/dist/llm/credential-seeders/index.d.ts +0 -1
- package/dist/llm/credential-seeders/register.d.ts +0 -1
- package/dist/llm/credential-writeback.d.ts +1 -2
- package/dist/llm/credential-writeback.js +1 -1
- package/dist/llm/credentials-store.d.ts +0 -1
- package/dist/llm/credentials.d.ts +0 -1
- package/dist/llm/cross-provider-selector.d.ts +0 -1
- package/dist/llm/entity-ops.d.ts +0 -1
- package/dist/llm/error-classifier.d.ts +0 -1
- package/dist/llm/executor-factory.d.ts +0 -1
- package/dist/llm/fallback-model.d.ts +0 -1
- package/dist/llm/generated/provider-profiles.d.ts +0 -1
- package/dist/llm/global-config-migration.d.ts +33 -1
- package/dist/llm/global-config-migration.js +44 -2
- package/dist/llm/global-config-migration.js.map +1 -1
- package/dist/llm/history-adapters.d.ts +0 -1
- package/dist/llm/image-routing.d.ts +0 -1
- package/dist/llm/index.d.ts +0 -1
- package/dist/llm/legacy-flat-key-import.d.ts +0 -1
- package/dist/llm/llm-queue-admit.d.ts +0 -1
- package/dist/llm/local-inference-probe.d.ts +0 -1
- package/dist/llm/local-model-fit.d.ts +0 -1
- package/dist/llm/message-utils.d.ts +0 -1
- package/dist/llm/model-metadata.d.ts +0 -1
- package/dist/llm/model-runner.d.ts +0 -1
- package/dist/llm/oauth/device-code.d.ts +0 -1
- package/dist/llm/oauth/google-pkce.d.ts +0 -1
- package/dist/llm/oauth/pkce.d.ts +0 -1
- package/dist/llm/onboarding/front-door.d.ts +0 -1
- package/dist/llm/onboarding/login-engine.d.ts +0 -1
- package/dist/llm/pi/gondolin-loader.d.ts +0 -1
- package/dist/llm/pi/index.d.ts +0 -1
- package/dist/llm/pi/pi-agent-adapter.d.ts +0 -1
- package/dist/llm/pi/pi-errors.d.ts +0 -1
- package/dist/llm/pi/pi-execution-env.d.ts +0 -1
- package/dist/llm/pi/pi-gondolin-env.d.ts +0 -1
- package/dist/llm/pi/pi-session-storage.d.ts +0 -1
- package/dist/llm/pi/pi-stream-fn.d.ts +0 -1
- package/dist/llm/pi/pi-tool-bridge.d.ts +0 -1
- package/dist/llm/pi/pi-types.d.ts +0 -1
- package/dist/llm/pi/resolve-execution-env.d.ts +0 -1
- package/dist/llm/plugin-facade.d.ts +0 -1
- package/dist/llm/prompt-caching.d.ts +0 -1
- package/dist/llm/provider-registry/builtin/anthropic.d.ts +0 -1
- package/dist/llm/provider-registry/builtin/bedrock.d.ts +0 -1
- package/dist/llm/provider-registry/builtin/gemini.d.ts +0 -1
- package/dist/llm/provider-registry/builtin/kimi-code.d.ts +0 -1
- package/dist/llm/provider-registry/builtin/moonshot.d.ts +0 -1
- package/dist/llm/provider-registry/builtin/ollama.d.ts +0 -1
- package/dist/llm/provider-registry/builtin/openai.d.ts +0 -1
- package/dist/llm/provider-registry/builtin/openrouter.d.ts +0 -1
- package/dist/llm/provider-registry/builtin/xai.d.ts +0 -1
- package/dist/llm/provider-registry/index.d.ts +0 -1
- package/dist/llm/provider-registry/loader.d.ts +0 -1
- package/dist/llm/provider-registry/provider-alias.d.ts +0 -1
- package/dist/llm/provider-registry/provider-defs.d.ts +0 -1
- package/dist/llm/provider-registry/provider-seed.d.ts +0 -1
- package/dist/llm/rate-limit-guard.d.ts +0 -1
- package/dist/llm/registry.d.ts +0 -1
- package/dist/llm/request-builder.d.ts +0 -1
- package/dist/llm/role-executor.d.ts +0 -1
- package/dist/llm/role-resolver.d.ts +0 -1
- package/dist/llm/runtime.d.ts +0 -1
- package/dist/llm/sealed-credential.d.ts +0 -1
- package/dist/llm/session-factory.d.ts +0 -1
- package/dist/llm/stable-device-id.d.ts +0 -1
- package/dist/llm/structured-output.d.ts +0 -1
- package/dist/llm/system-key.d.ts +0 -1
- package/dist/llm/system-of-use-registry.d.ts +0 -1
- package/dist/llm/system-resolver.d.ts +0 -1
- package/dist/llm/think-scrubber.d.ts +0 -1
- package/dist/llm/thinking-budget.d.ts +0 -1
- package/dist/llm/tool-loop.d.ts +0 -1
- package/dist/llm/transports/anthropic-client-factory.d.ts +0 -1
- package/dist/llm/transports/anthropic.d.ts +0 -1
- package/dist/llm/transports/bedrock.d.ts +0 -1
- package/dist/llm/transports/chat-completions.d.ts +0 -1
- package/dist/llm/transports/codex-oauth-headers.d.ts +0 -1
- package/dist/llm/transports/codex-responses.d.ts +0 -1
- package/dist/llm/transports/gemini.d.ts +0 -1
- package/dist/llm/transports/index.d.ts +0 -1
- package/dist/llm/transports/ollama.d.ts +0 -1
- package/dist/llm/types-config.d.ts +0 -1
- package/dist/llm/types.d.ts +0 -1
- package/dist/llm/usage-pricing.d.ts +0 -1
- package/dist/logger.d.ts +0 -1
- package/dist/memory/attention-consolidate.d.ts +0 -1
- package/dist/memory/attention.d.ts +0 -1
- package/dist/memory/auto-extract.d.ts +0 -1
- package/dist/memory/auto-research.d.ts +0 -1
- package/dist/memory/auto-row-quarantine.d.ts +0 -1
- package/dist/memory/auto-row-rules.d.ts +0 -1
- package/dist/memory/brain-backfill.d.ts +0 -1
- package/dist/memory/brain-consolidator.d.ts +0 -1
- package/dist/memory/brain-doctor.d.ts +0 -1
- package/dist/memory/brain-doctor.js +6 -1
- package/dist/memory/brain-doctor.js.map +1 -1
- package/dist/memory/brain-embedding.d.ts +0 -1
- package/dist/memory/brain-export.d.ts +0 -1
- package/dist/memory/brain-health-dashboard.d.ts +0 -1
- package/dist/memory/brain-health-dashboard.js +1 -1
- package/dist/memory/brain-health-dashboard.js.map +1 -1
- package/dist/memory/brain-host.d.ts +0 -1
- package/dist/memory/brain-lifecycle.d.ts +0 -1
- package/dist/memory/brain-links.d.ts +0 -1
- package/dist/memory/brain-maintenance.d.ts +0 -1
- package/dist/memory/brain-migration.d.ts +0 -1
- package/dist/memory/brain-noise-detector.d.ts +0 -1
- package/dist/memory/brain-page-nodes.d.ts +0 -1
- package/dist/memory/brain-plasticity-class.d.ts +0 -1
- package/dist/memory/brain-purge.d.ts +0 -1
- package/dist/memory/brain-reasoning.d.ts +0 -1
- package/dist/memory/brain-reconciler.d.ts +0 -1
- package/dist/memory/brain-retrieval.d.ts +0 -1
- package/dist/memory/brain-row-types.d.ts +0 -1
- package/dist/memory/brain-search.d.ts +18 -1
- package/dist/memory/brain-search.js +119 -12
- package/dist/memory/brain-search.js.map +1 -1
- package/dist/memory/brain-similarity.d.ts +0 -1
- package/dist/memory/brain-stdp.d.ts +2 -3
- package/dist/memory/brain-stdp.js +2 -2
- package/dist/memory/brain-stub-prune.d.ts +0 -1
- package/dist/memory/brain-sweep-executor.d.ts +0 -1
- package/dist/memory/brain-writer-handlers.d.ts +0 -1
- package/dist/memory/brain-writer-thread.d.ts +0 -1
- package/dist/memory/brain-writer-worker.d.ts +0 -1
- package/dist/memory/claude-mem-migration.d.ts +0 -1
- package/dist/memory/context-engines/llm-summarizer.d.ts +0 -1
- package/dist/memory/decision-contradiction.d.ts +0 -1
- package/dist/memory/decision-cross-link.d.ts +1 -2
- package/dist/memory/decision-cross-link.js +1 -1
- package/dist/memory/decisions.d.ts +0 -1
- package/dist/memory/dialectic-evaluator.d.ts +0 -1
- package/dist/memory/dispatch-trace-format.d.ts +0 -1
- package/dist/memory/dream-cycle.d.ts +2 -3
- package/dist/memory/dream-cycle.js +2 -2
- package/dist/memory/edge-types.d.ts +0 -1
- package/dist/memory/eligibility.d.ts +0 -1
- package/dist/memory/embedding-backfill.d.ts +0 -1
- package/dist/memory/embedding-local.d.ts +0 -1
- package/dist/memory/embedding-queue.d.ts +0 -1
- package/dist/memory/embedding-worker.d.ts +0 -1
- package/dist/memory/engine-compat.d.ts +19 -1
- package/dist/memory/engine-compat.js +133 -15
- package/dist/memory/engine-compat.js.map +1 -1
- package/dist/memory/evidence-graph-links.d.ts +0 -1
- package/dist/memory/extraction-gate.d.ts +0 -1
- package/dist/memory/global-brain.d.ts +0 -1
- package/dist/memory/graph-auto-populate.d.ts +0 -1
- package/dist/memory/graph-memory-bridge.d.ts +0 -31
- package/dist/memory/graph-memory-bridge.js +0 -162
- package/dist/memory/graph-memory-bridge.js.map +1 -1
- package/dist/memory/graph-queries.d.ts +0 -1
- package/dist/memory/import-from-provider.d.ts +0 -1
- package/dist/memory/index.d.ts +0 -1
- package/dist/memory/learnings.d.ts +0 -1
- package/dist/memory/lessons-import.d.ts +0 -1
- package/dist/memory/lessons.d.ts +0 -1
- package/dist/memory/llm-backend-resolver.d.ts +1 -2
- package/dist/memory/llm-backend-resolver.js +1 -1
- package/dist/memory/llm-extraction.d.ts +0 -1
- package/dist/memory/manifest-builder.d.ts +0 -1
- package/dist/memory/manifest-filter.d.ts +0 -1
- package/dist/memory/manifest-identity.d.ts +2 -4
- package/dist/memory/manifest-identity.js +4 -13
- package/dist/memory/manifest-identity.js.map +1 -1
- package/dist/memory/manifest-ingestion.d.ts +0 -1
- package/dist/memory/memory-bridge.d.ts +0 -1
- package/dist/memory/mental-model-injection.d.ts +0 -1
- package/dist/memory/mental-model-queue.d.ts +0 -1
- package/dist/memory/nexus-plasticity.d.ts +0 -1
- package/dist/memory/observation-type-decision.d.ts +0 -1
- package/dist/memory/observer-reflector.d.ts +0 -1
- package/dist/memory/patterns.d.ts +0 -1
- package/dist/memory/pipeline-manifest-sqlite.d.ts +2 -2
- package/dist/memory/pipeline-manifest-sqlite.js +3 -2
- package/dist/memory/pipeline-manifest-sqlite.js.map +1 -1
- package/dist/memory/precompact-flush.d.ts +0 -1
- package/dist/memory/promotion-score.d.ts +0 -1
- package/dist/memory/public-api.d.ts +0 -1
- package/dist/memory/quality-feedback.d.ts +0 -1
- package/dist/memory/quality-scoring.d.ts +0 -1
- package/dist/memory/recall-ranking.d.ts +0 -1
- package/dist/memory/redaction.d.ts +0 -1
- package/dist/memory/retrieval/build-retrieval-bundle.d.ts +0 -1
- package/dist/memory/retrieval/fetch.d.ts +0 -1
- package/dist/memory/retrieval/get-current-session-id.d.ts +0 -1
- package/dist/memory/retrieval/log-retrieval.d.ts +9 -2
- package/dist/memory/retrieval/log-retrieval.js +26 -8
- package/dist/memory/retrieval/log-retrieval.js.map +1 -1
- package/dist/memory/retrieval/observe.d.ts +0 -1
- package/dist/memory/retrieval/search.d.ts +0 -1
- package/dist/memory/retrieval/telemetry.d.ts +0 -1
- package/dist/memory/retrieval/timeline.d.ts +0 -1
- package/dist/memory/session-memory.d.ts +0 -1
- package/dist/memory/session-narrative.d.ts +0 -1
- package/dist/memory/sleep-consolidation.d.ts +0 -1
- package/dist/memory/specialists.d.ts +0 -1
- package/dist/memory/surprisal-tree.d.ts +0 -1
- package/dist/memory/surprisal.d.ts +0 -1
- package/dist/memory/temporal-supersession.d.ts +0 -1
- package/dist/memory/transcript-extractor.d.ts +0 -1
- package/dist/memory/transcript-ingestor.d.ts +0 -1
- package/dist/memory/transcript-scanner.d.ts +0 -1
- package/dist/memory/watch-stream.d.ts +0 -1
- package/dist/metrics/ab-test.d.ts +0 -1
- package/dist/metrics/aggregation.d.ts +0 -1
- package/dist/metrics/common.d.ts +0 -1
- package/dist/metrics/enums.d.ts +0 -1
- package/dist/metrics/index.d.ts +0 -1
- package/dist/metrics/model-provider-registry.d.ts +0 -1
- package/dist/metrics/otel-integration.d.ts +0 -1
- package/dist/metrics/provider-detection.d.ts +0 -1
- package/dist/metrics/token-estimation.d.ts +0 -1
- package/dist/metrics/token-service.d.ts +0 -1
- package/dist/migration/agent-outputs.d.ts +0 -1
- package/dist/migration/checksum.d.ts +0 -1
- package/dist/migration/index.d.ts +0 -1
- package/dist/migration/logger.d.ts +0 -1
- package/dist/migration/manual/T10165-backfill-adr-index.d.ts +0 -1
- package/dist/migration/preflight.d.ts +0 -1
- package/dist/migration/state.d.ts +0 -1
- package/dist/migration/validate.d.ts +0 -1
- package/dist/mvi-helpers.d.ts +0 -1
- package/dist/nexus/analyze-orchestrator.d.ts +24 -1
- package/dist/nexus/analyze-orchestrator.js +45 -7
- package/dist/nexus/analyze-orchestrator.js.map +1 -1
- package/dist/nexus/api-contracts.d.ts +1 -12
- package/dist/nexus/api-contracts.js +1 -18
- package/dist/nexus/api-contracts.js.map +1 -1
- package/dist/nexus/api-extractors/grpc-extractor.d.ts +0 -1
- package/dist/nexus/api-extractors/http-extractor.d.ts +0 -1
- package/dist/nexus/api-extractors/index.d.ts +0 -1
- package/dist/nexus/api-extractors/matcher.d.ts +0 -1
- package/dist/nexus/api-extractors/topic-extractor.d.ts +0 -1
- package/dist/nexus/assessment-projection.d.ts +0 -1
- package/dist/nexus/assessment-store.d.ts +0 -1
- package/dist/nexus/augment.d.ts +0 -1
- package/dist/nexus/brief-map.d.ts +0 -1
- package/dist/nexus/checkout-nonce.d.ts +0 -1
- package/dist/nexus/clusters.d.ts +0 -1
- package/dist/nexus/context.d.ts +0 -1
- package/dist/nexus/deps.d.ts +0 -1
- package/dist/nexus/devices.d.ts +0 -1
- package/dist/nexus/diff.d.ts +0 -1
- package/dist/nexus/discover.d.ts +0 -1
- package/dist/nexus/embeddings.d.ts +0 -1
- package/dist/nexus/export.d.ts +0 -1
- package/dist/nexus/fleet-status.d.ts +0 -1
- package/dist/nexus/flows.d.ts +0 -1
- package/dist/nexus/freshness.d.ts +0 -1
- package/dist/nexus/gexf-export.d.ts +0 -1
- package/dist/nexus/git-state.d.ts +0 -1
- package/dist/nexus/graph-manifest.d.ts +0 -1
- package/dist/nexus/hash.d.ts +0 -1
- package/dist/nexus/hooks-augment.d.ts +0 -1
- package/dist/nexus/identity.d.ts +0 -1
- package/dist/nexus/impact.d.ts +11 -2
- package/dist/nexus/impact.js +31 -11
- package/dist/nexus/impact.js.map +1 -1
- package/dist/nexus/index-health.d.ts +0 -1
- package/dist/nexus/index.d.ts +1 -2
- package/dist/nexus/index.js +1 -1
- package/dist/nexus/index.js.map +1 -1
- package/dist/nexus/knowledge.d.ts +30 -2
- package/dist/nexus/knowledge.js +173 -36
- package/dist/nexus/knowledge.js.map +1 -1
- package/dist/nexus/legacy-alias.d.ts +0 -1
- package/dist/nexus/living-brain.d.ts +0 -1
- package/dist/nexus/migrate-json-to-sqlite.d.ts +0 -1
- package/dist/nexus/migrations/M-split-graph.d.ts +0 -1
- package/dist/nexus/nexus-bridge.d.ts +0 -1
- package/dist/nexus/ops.d.ts +0 -2
- package/dist/nexus/path-map.d.ts +0 -1
- package/dist/nexus/permissions.d.ts +0 -1
- package/dist/nexus/pid-lock.d.ts +0 -1
- package/dist/nexus/plasticity-queries.d.ts +0 -1
- package/dist/nexus/project-activity.d.ts +0 -1
- package/dist/nexus/projects-clean.d.ts +0 -1
- package/dist/nexus/projects-scan.d.ts +0 -1
- package/dist/nexus/projects-scan.js +2 -2
- package/dist/nexus/projects-scan.js.map +1 -1
- package/dist/nexus/query-dsl.d.ts +0 -1
- package/dist/nexus/query.d.ts +0 -1
- package/dist/nexus/refresh-child.d.ts +1 -2
- package/dist/nexus/refresh-child.js +3 -0
- package/dist/nexus/refresh-child.js.map +1 -1
- package/dist/nexus/registry-errors.d.ts +0 -1
- package/dist/nexus/registry-host.d.ts +0 -1
- package/dist/nexus/registry-hygiene.d.ts +0 -1
- package/dist/nexus/registry-roots.d.ts +0 -1
- package/dist/nexus/registry.d.ts +0 -1
- package/dist/nexus/reindex-on-merge.d.ts +53 -1
- package/dist/nexus/reindex-on-merge.js +134 -26
- package/dist/nexus/reindex-on-merge.js.map +1 -1
- package/dist/nexus/route-analysis.d.ts +0 -1
- package/dist/nexus/sharing/index.d.ts +0 -1
- package/dist/nexus/sigil-sync.d.ts +0 -1
- package/dist/nexus/sigil.d.ts +0 -1
- package/dist/nexus/source-roots.d.ts +0 -1
- package/dist/nexus/store.d.ts +0 -1
- package/dist/nexus/stored-roots.d.ts +0 -1
- package/dist/nexus/symbol-miss.d.ts +0 -1
- package/dist/nexus/symbol-ranking.d.ts +0 -1
- package/dist/nexus/task-evidence.d.ts +0 -1
- package/dist/nexus/tasks-bridge.d.ts +0 -1
- package/dist/nexus/transfer-types.d.ts +0 -1
- package/dist/nexus/transfer.d.ts +0 -1
- package/dist/nexus/user-profile-hygiene.d.ts +0 -1
- package/dist/nexus/user-profile.d.ts +2 -2
- package/dist/nexus/user-profile.js +13 -5
- package/dist/nexus/user-profile.js.map +1 -1
- package/dist/nexus/wiki-index.d.ts +0 -1
- package/dist/nexus/wiki-orchestrator.d.ts +0 -1
- package/dist/nexus/workspace.d.ts +0 -1
- package/dist/observability/index.d.ts +0 -1
- package/dist/observability/log-filter.d.ts +0 -1
- package/dist/observability/log-parser.d.ts +0 -1
- package/dist/observability/log-reader.d.ts +0 -1
- package/dist/observability/types.d.ts +0 -1
- package/dist/orchestrate/admission.d.ts +8 -1
- package/dist/orchestrate/admission.js +3 -1
- package/dist/orchestrate/admission.js.map +1 -1
- package/dist/orchestrate/agentmbx.d.ts +186 -0
- package/dist/orchestrate/agentmbx.js +271 -0
- package/dist/orchestrate/agentmbx.js.map +1 -0
- package/dist/orchestrate/dispatch-workers.d.ts +59 -0
- package/dist/orchestrate/dispatch-workers.js +78 -0
- package/dist/orchestrate/dispatch-workers.js.map +1 -0
- package/dist/orchestrate/handoff-ops.d.ts +0 -1
- package/dist/orchestrate/include-deps.d.ts +0 -1
- package/dist/orchestrate/index.d.ts +0 -1
- package/dist/orchestrate/isolation-policy.d.ts +73 -0
- package/dist/orchestrate/isolation-policy.js +62 -0
- package/dist/orchestrate/isolation-policy.js.map +1 -0
- package/dist/orchestrate/lead-records-dir.d.ts +23 -0
- package/dist/orchestrate/lead-records-dir.js +31 -0
- package/dist/orchestrate/lead-records-dir.js.map +1 -0
- package/dist/orchestrate/lead-records.d.ts +126 -0
- package/dist/orchestrate/lead-records.js +203 -0
- package/dist/orchestrate/lead-records.js.map +1 -0
- package/dist/orchestrate/lead.d.ts +109 -0
- package/dist/orchestrate/lead.js +263 -0
- package/dist/orchestrate/lead.js.map +1 -0
- package/dist/orchestrate/lifecycle-ops.d.ts +0 -1
- package/dist/orchestrate/lifecycle-ops.js +6 -2
- package/dist/orchestrate/lifecycle-ops.js.map +1 -1
- package/dist/orchestrate/orca-execution.d.ts +135 -0
- package/dist/orchestrate/orca-execution.js +496 -0
- package/dist/orchestrate/orca-execution.js.map +1 -0
- package/dist/orchestrate/orca-routing.d.ts +13 -0
- package/dist/orchestrate/orca-routing.js +142 -0
- package/dist/orchestrate/orca-routing.js.map +1 -0
- package/dist/orchestrate/pivot.d.ts +0 -1
- package/dist/orchestrate/plan.d.ts +0 -1
- package/dist/orchestrate/query-ops.d.ts +2 -2
- package/dist/orchestrate/query-ops.js +46 -7
- package/dist/orchestrate/query-ops.js.map +1 -1
- package/dist/orchestrate/spawn-ops.d.ts +93 -21
- package/dist/orchestrate/spawn-ops.js +585 -119
- package/dist/orchestrate/spawn-ops.js.map +1 -1
- package/dist/orchestrate/worker-records.d.ts +232 -0
- package/dist/orchestrate/worker-records.js +650 -0
- package/dist/orchestrate/worker-records.js.map +1 -0
- package/dist/orchestrate/worker-report.d.ts +55 -0
- package/dist/orchestrate/worker-report.js +121 -0
- package/dist/orchestrate/worker-report.js.map +1 -0
- package/dist/orchestrate/worker-verify.d.ts +0 -1
- package/dist/orchestrate/worktree-complete.d.ts +0 -1
- package/dist/orchestration/analyze.d.ts +0 -1
- package/dist/orchestration/atomicity.d.ts +0 -1
- package/dist/orchestration/bootstrap.d.ts +0 -1
- package/dist/orchestration/classify-readiness.d.ts +6 -22
- package/dist/orchestration/classify-readiness.js +9 -38
- package/dist/orchestration/classify-readiness.js.map +1 -1
- package/dist/orchestration/classify.d.ts +0 -1
- package/dist/orchestration/context.d.ts +0 -1
- package/dist/orchestration/critical-path.d.ts +0 -1
- package/dist/orchestration/dashboard.d.ts +5 -4
- package/dist/orchestration/dashboard.js +13 -13
- package/dist/orchestration/dashboard.js.map +1 -1
- package/dist/orchestration/harness-hint.d.ts +0 -1
- package/dist/orchestration/index.d.ts +14 -3
- package/dist/orchestration/index.js +75 -17
- package/dist/orchestration/index.js.map +1 -1
- package/dist/orchestration/lead-command-runner.d.ts +85 -0
- package/dist/orchestration/lead-command-runner.js +274 -0
- package/dist/orchestration/lead-command-runner.js.map +1 -0
- package/dist/orchestration/lead-rollup.d.ts +0 -1
- package/dist/orchestration/lean-change.d.ts +0 -1
- package/dist/orchestration/lean-debt.d.ts +0 -1
- package/dist/orchestration/lean-gain.d.ts +0 -1
- package/dist/orchestration/owner-decision-readiness.d.ts +0 -1
- package/dist/orchestration/parallel.d.ts +0 -1
- package/dist/orchestration/protocol-validators.d.ts +0 -1
- package/dist/orchestration/psyche-memory-budget.d.ts +0 -1
- package/dist/orchestration/registry-resolver.d.ts +0 -1
- package/dist/orchestration/skill-ops.d.ts +0 -1
- package/dist/orchestration/spawn-prompt.d.ts +56 -3
- package/dist/orchestration/spawn-prompt.js +207 -96
- package/dist/orchestration/spawn-prompt.js.map +1 -1
- package/dist/orchestration/spawn.d.ts +23 -7
- package/dist/orchestration/spawn.js +48 -6
- package/dist/orchestration/spawn.js.map +1 -1
- package/dist/orchestration/status.d.ts +0 -1
- package/dist/orchestration/thin-agent.d.ts +0 -1
- package/dist/orchestration/tier-selector.d.ts +0 -1
- package/dist/orchestration/unblock.d.ts +0 -1
- package/dist/orchestration/validate-spawn.d.ts +0 -1
- package/dist/orchestration/wave-topic.d.ts +0 -1
- package/dist/orchestration/waves.d.ts +0 -1
- package/dist/orchestration/worker-policy.d.ts +28 -0
- package/dist/orchestration/worker-policy.js +77 -0
- package/dist/orchestration/worker-policy.js.map +1 -0
- package/dist/otel/index.d.ts +0 -1
- package/dist/output.d.ts +0 -1
- package/dist/pagination.d.ts +0 -1
- package/dist/paths-export.d.ts +0 -1
- package/dist/paths.d.ts +43 -2
- package/dist/paths.js +51 -1
- package/dist/paths.js.map +1 -1
- package/dist/phases/deps.d.ts +0 -1
- package/dist/phases/index.d.ts +0 -1
- package/dist/pipeline/engine-ops.d.ts +0 -1
- package/dist/pipeline/index.d.ts +0 -1
- package/dist/pipeline/phase.d.ts +0 -1
- package/dist/platform.d.ts +0 -1
- package/dist/playbooks/agent-dispatcher.d.ts +0 -1
- package/dist/playbooks/cantbook-profile.d.ts +0 -1
- package/dist/playbooks/guarded-deterministic-runner.d.ts +0 -1
- package/dist/playbooks/index.d.ts +0 -1
- package/dist/playbooks/ops.d.ts +0 -1
- package/dist/playbooks/pi-runner-wiring.d.ts +0 -1
- package/dist/playbooks/playbook-resolver.d.ts +0 -1
- package/dist/playbooks/skill-node-executor.d.ts +0 -1
- package/dist/project-info.d.ts +0 -1
- package/dist/project-lifecycle.d.ts +0 -1
- package/dist/project-lifecycle.js +31 -0
- package/dist/project-lifecycle.js.map +1 -1
- package/dist/project-scope.d.ts +0 -1
- package/dist/project-tombstone.d.ts +0 -1
- package/dist/reconciliation/index.d.ts +0 -1
- package/dist/reconciliation/link-store.d.ts +0 -1
- package/dist/reconciliation/reconciliation-engine.d.ts +0 -1
- package/dist/reconciliation/reconciliation-engine.js +6 -5
- package/dist/reconciliation/reconciliation-engine.js.map +1 -1
- package/dist/registrations.d.ts +0 -2
- package/dist/registrations.js +4 -1
- package/dist/registrations.js.map +1 -1
- package/dist/release/artifacts.d.ts +0 -1
- package/dist/release/authorization.d.ts +155 -0
- package/dist/release/authorization.js +460 -0
- package/dist/release/authorization.js.map +1 -0
- package/dist/release/backfill.d.ts +0 -1
- package/dist/release/changesets-aggregator.d.ts +0 -1
- package/dist/release/channel.d.ts +0 -1
- package/dist/release/ci-evidence.d.ts +187 -43
- package/dist/release/ci-evidence.js +547 -166
- package/dist/release/ci-evidence.js.map +1 -1
- package/dist/release/ci-run-evidence.d.ts +106 -0
- package/dist/release/ci-run-evidence.js +234 -0
- package/dist/release/ci-run-evidence.js.map +1 -0
- package/dist/release/ci.d.ts +0 -1
- package/dist/release/commit-presence.d.ts +0 -1
- package/dist/release/cut.d.ts +250 -0
- package/dist/release/cut.js +807 -0
- package/dist/release/cut.js.map +1 -0
- package/dist/release/deploy-evidence.d.ts +172 -0
- package/dist/release/deploy-evidence.js +381 -0
- package/dist/release/deploy-evidence.js.map +1 -0
- package/dist/release/engine-ops.d.ts +0 -72
- package/dist/release/engine-ops.js +12 -313
- package/dist/release/engine-ops.js.map +1 -1
- package/dist/release/escape-hatch.d.ts +0 -1
- package/dist/release/github-pr.d.ts +0 -1
- package/dist/release/guards.d.ts +0 -1
- package/dist/release/hooks-v1-promotion.d.ts +0 -1
- package/dist/release/index.d.ts +5 -4
- package/dist/release/index.js +4 -2
- package/dist/release/index.js.map +1 -1
- package/dist/release/invariants/archive-reason-invariant.d.ts +10 -7
- package/dist/release/invariants/archive-reason-invariant.js +70 -21
- package/dist/release/invariants/archive-reason-invariant.js.map +1 -1
- package/dist/release/invariants/index.d.ts +18 -6
- package/dist/release/invariants/index.js +20 -8
- package/dist/release/invariants/index.js.map +1 -1
- package/dist/release/invariants/registry.d.ts +0 -1
- package/dist/release/invariants/registry.js +3 -2
- package/dist/release/invariants/registry.js.map +1 -1
- package/dist/release/merge-attribution-score.d.ts +87 -0
- package/dist/release/merge-attribution-score.js +120 -0
- package/dist/release/merge-attribution-score.js.map +1 -0
- package/dist/release/merge-attribution.d.ts +215 -0
- package/dist/release/merge-attribution.js +666 -0
- package/dist/release/merge-attribution.js.map +1 -0
- package/dist/release/open.d.ts +0 -1
- package/dist/release/open.js +34 -7
- package/dist/release/open.js.map +1 -1
- package/dist/release/plan.d.ts +34 -3
- package/dist/release/plan.js +30 -6
- package/dist/release/plan.js.map +1 -1
- package/dist/release/pr-evidence.d.ts +0 -1
- package/dist/release/preflight-skip.d.ts +4 -20
- package/dist/release/preflight-skip.js +5 -110
- package/dist/release/preflight-skip.js.map +1 -1
- package/dist/release/reconcile-latest.d.ts +28 -0
- package/dist/release/reconcile-latest.js +71 -0
- package/dist/release/reconcile-latest.js.map +1 -0
- package/dist/release/reconcile.d.ts +3 -2
- package/dist/release/reconcile.js +18 -6
- package/dist/release/reconcile.js.map +1 -1
- package/dist/release/release-config.d.ts +0 -1
- package/dist/release/release-manifest.d.ts +0 -1
- package/dist/release/release-published.d.ts +26 -0
- package/dist/release/release-published.js +35 -0
- package/dist/release/release-published.js.map +1 -0
- package/dist/release/ship-e2e-smoke-default-env.d.ts +0 -1
- package/dist/release/ship-e2e-smoke.d.ts +0 -1
- package/dist/release/smoke-receipt.d.ts +32 -0
- package/dist/release/smoke-receipt.js +56 -0
- package/dist/release/smoke-receipt.js.map +1 -0
- package/dist/release/tty-confirm.d.ts +22 -0
- package/dist/release/tty-confirm.js +50 -0
- package/dist/release/tty-confirm.js.map +1 -0
- package/dist/release/validate-changelog.d.ts +0 -1
- package/dist/release/verify-provenance.d.ts +0 -1
- package/dist/release/version-bump.d.ts +0 -1
- package/dist/release/version.d.ts +0 -1
- package/dist/remote/index.d.ts +0 -1
- package/dist/remote/index.js +1 -1
- package/dist/remote/index.js.map +1 -1
- package/dist/render/ansi.d.ts +0 -1
- package/dist/render/brain/backfill.d.ts +0 -1
- package/dist/render/brain/export.d.ts +0 -1
- package/dist/render/brain/index.d.ts +0 -1
- package/dist/render/brain/maintenance.d.ts +0 -1
- package/dist/render/brain/migrate-repo-ids.d.ts +0 -1
- package/dist/render/brain/plasticity-stats.d.ts +0 -1
- package/dist/render/brain/purge.d.ts +0 -1
- package/dist/render/brain/quality.d.ts +0 -1
- package/dist/render/cli-colorize.d.ts +0 -1
- package/dist/render/colors.d.ts +0 -1
- package/dist/render/decide/index.d.ts +0 -1
- package/dist/render/docs/index.d.ts +0 -1
- package/dist/render/docs/view.d.ts +0 -1
- package/dist/render/fallback.d.ts +0 -1
- package/dist/render/format-label.d.ts +0 -1
- package/dist/render/helpers.d.ts +0 -1
- package/dist/render/index.d.ts +0 -1
- package/dist/render/legacy-adapter.d.ts +0 -1
- package/dist/render/nexus/_format.d.ts +0 -1
- package/dist/render/nexus/audit/index.d.ts +0 -1
- package/dist/render/nexus/contracts/index.d.ts +1 -6
- package/dist/render/nexus/contracts/index.js +1 -13
- package/dist/render/nexus/contracts/index.js.map +1 -1
- package/dist/render/nexus/graph/index.d.ts +0 -1
- package/dist/render/nexus/index.d.ts +0 -1
- package/dist/render/orchestration/audit-reconstruct.d.ts +0 -1
- package/dist/render/orchestration/completion-bar.d.ts +0 -1
- package/dist/render/orchestration/index.d.ts +0 -1
- package/dist/render/orchestration/plan.d.ts +0 -1
- package/dist/render/orchestration/stats.d.ts +0 -1
- package/dist/render/orchestration/tree.d.ts +0 -1
- package/dist/render/orchestration/waves.d.ts +0 -1
- package/dist/render/registry.d.ts +0 -1
- package/dist/render/render-envelope.d.ts +0 -1
- package/dist/render/session/blockers.d.ts +0 -1
- package/dist/render/session/briefing.d.ts +0 -1
- package/dist/render/session/current.d.ts +0 -1
- package/dist/render/session/doctor.d.ts +0 -1
- package/dist/render/session/generic.d.ts +0 -1
- package/dist/render/session/index.d.ts +0 -1
- package/dist/render/session/next.d.ts +0 -1
- package/dist/render/session/schema.d.ts +0 -1
- package/dist/render/session/session.d.ts +0 -1
- package/dist/render/session/start.d.ts +0 -1
- package/dist/render/session/stop.d.ts +0 -1
- package/dist/render/session/version.d.ts +0 -1
- package/dist/render/tasks/add.d.ts +0 -1
- package/dist/render/tasks/archive.d.ts +0 -1
- package/dist/render/tasks/colors.d.ts +0 -1
- package/dist/render/tasks/complete.d.ts +0 -1
- package/dist/render/tasks/delete.d.ts +0 -1
- package/dist/render/tasks/find.d.ts +0 -1
- package/dist/render/tasks/index.d.ts +0 -1
- package/dist/render/tasks/list.d.ts +0 -1
- package/dist/render/tasks/restore.d.ts +0 -1
- package/dist/render/tasks/show.d.ts +0 -1
- package/dist/render/tasks/update.d.ts +0 -1
- package/dist/render/tree-context.d.ts +0 -1
- package/dist/render/types.d.ts +0 -1
- package/dist/repair.d.ts +0 -1
- package/dist/research/index.d.ts +0 -1
- package/dist/resources/admission-ledger.d.ts +145 -17
- package/dist/resources/admission-ledger.js +417 -56
- package/dist/resources/admission-ledger.js.map +1 -1
- package/dist/resources/agent-lease.d.ts +88 -0
- package/dist/resources/agent-lease.js +200 -0
- package/dist/resources/agent-lease.js.map +1 -0
- package/dist/resources/backend.d.ts +0 -1
- package/dist/resources/claim-keepalive.d.ts +0 -1
- package/dist/resources/darwin-backend.d.ts +0 -1
- package/dist/resources/governor.d.ts +107 -7
- package/dist/resources/governor.js +204 -18
- package/dist/resources/governor.js.map +1 -1
- package/dist/resources/heavy-command-hook-delivery.d.ts +0 -1
- package/dist/resources/heavy-command.d.ts +0 -1
- package/dist/resources/hook-footprint.d.ts +115 -40
- package/dist/resources/hook-footprint.js +217 -60
- package/dist/resources/hook-footprint.js.map +1 -1
- package/dist/resources/linux-backend.d.ts +0 -1
- package/dist/resources/memory-guard.d.ts +0 -1
- package/dist/resources/monitor.d.ts +3 -2
- package/dist/resources/monitor.js +13 -2
- package/dist/resources/monitor.js.map +1 -1
- package/dist/resources/pressure-gate.d.ts +31 -2
- package/dist/resources/pressure-gate.js +56 -2
- package/dist/resources/pressure-gate.js.map +1 -1
- package/dist/resources/run-admission.d.ts +21 -4
- package/dist/resources/run-admission.js +43 -17
- package/dist/resources/run-admission.js.map +1 -1
- package/dist/resources/run-class.d.ts +9 -2
- package/dist/resources/run-class.js +111 -3
- package/dist/resources/run-class.js.map +1 -1
- package/dist/resources/run-governed.d.ts +46 -8
- package/dist/resources/run-governed.js +67 -11
- package/dist/resources/run-governed.js.map +1 -1
- package/dist/resources/sample-fixture.d.ts +44 -0
- package/dist/resources/sample-fixture.js +82 -0
- package/dist/resources/sample-fixture.js.map +1 -0
- package/dist/resources/slot-holder.d.ts +0 -1
- package/dist/resources/spawn-wrapper.d.ts +0 -1
- package/dist/resources/supervisor-admit.d.ts +0 -1
- package/dist/resources/tool-groups.d.ts +0 -1
- package/dist/resources/top-memory.d.ts +41 -1
- package/dist/resources/top-memory.js +119 -1
- package/dist/resources/top-memory.js.map +1 -1
- package/dist/roadmap/index.d.ts +0 -1
- package/dist/routing/build-command-groups.d.ts +0 -1
- package/dist/routing/capability-matrix.d.ts +0 -1
- package/dist/routing/index.d.ts +0 -1
- package/dist/runtime/openapi/generate-openapi.d.ts +0 -1
- package/dist/runtime/openapi/index.d.ts +0 -1
- package/dist/sagas/add.d.ts +0 -1
- package/dist/sagas/constants.d.ts +0 -1
- package/dist/sagas/create.d.ts +0 -1
- package/dist/sagas/detach.d.ts +0 -1
- package/dist/sagas/enforcement.d.ts +0 -1
- package/dist/sagas/index.d.ts +0 -1
- package/dist/sagas/is-saga-type.d.ts +0 -1
- package/dist/sagas/list.d.ts +0 -1
- package/dist/sagas/members.d.ts +0 -1
- package/dist/sagas/migrate-containment.d.ts +0 -1
- package/dist/sagas/next.d.ts +0 -1
- package/dist/sagas/reconcile.d.ts +0 -1
- package/dist/sagas/reconcile.js +13 -0
- package/dist/sagas/reconcile.js.map +1 -1
- package/dist/sagas/repair.d.ts +0 -1
- package/dist/sagas/rollup.d.ts +0 -1
- package/dist/sagas/storage.d.ts +0 -1
- package/dist/scaffold/ensure-config.d.ts +1 -2
- package/dist/scaffold/ensure-config.js +0 -2
- package/dist/scaffold/ensure-config.js.map +1 -1
- package/dist/scaffold/ensure-dirs.d.ts +0 -1
- package/dist/scaffold/ensure-dirs.js +8 -6
- package/dist/scaffold/ensure-dirs.js.map +1 -1
- package/dist/scaffold/ensure-skills.d.ts +0 -1
- package/dist/scaffold/ensure-templates.d.ts +0 -1
- package/dist/scaffold/global-scaffold.d.ts +0 -1
- package/dist/scaffold/global-scaffold.js +3 -1
- package/dist/scaffold/global-scaffold.js.map +1 -1
- package/dist/scaffold/index.d.ts +0 -1
- package/dist/scaffold/init.d.ts +0 -1
- package/dist/scaffold/migrate-worktree-include.d.ts +0 -1
- package/dist/scaffold/project-detection.d.ts +0 -1
- package/dist/scaffold/project-identity.d.ts +0 -1
- package/dist/scaffold/scaffold-global.d.ts +0 -1
- package/dist/scaffold/scaffold-project.d.ts +0 -1
- package/dist/scaffold/telemetry.d.ts +0 -1
- package/dist/scaffold/upgrade-file-journal.d.ts +0 -1
- package/dist/scaffold.d.ts +0 -1
- package/dist/schema-management.d.ts +0 -1
- package/dist/sdk/index.d.ts +0 -1
- package/dist/sdk/isolation.d.ts +0 -1
- package/dist/sdk/manifest.d.ts +0 -1
- package/dist/sdk/spawn-primitives.d.ts +0 -1
- package/dist/sdk/spawn-validator.d.ts +0 -1
- package/dist/sdk/tool-cache.d.ts +0 -1
- package/dist/sdk/tool-resolver.d.ts +0 -1
- package/dist/sdk/validator-ac-pull.d.ts +0 -1
- package/dist/sdk/validator-attest.d.ts +0 -1
- package/dist/sdk/validator-reject.d.ts +0 -1
- package/dist/security/index.d.ts +0 -1
- package/dist/security/input-sanitization.d.ts +0 -1
- package/dist/security/override-cap-setting.d.ts +132 -1
- package/dist/security/override-cap-setting.js +88 -10
- package/dist/security/override-cap-setting.js.map +1 -1
- package/dist/security/override-cap.d.ts +0 -1
- package/dist/security/owner-override-auth.d.ts +0 -1
- package/dist/security/owner-override-authority.d.ts +0 -1
- package/dist/security/owner-override-authority.js +5 -1
- package/dist/security/owner-override-authority.js.map +1 -1
- package/dist/security/review-workers-setting.d.ts +70 -0
- package/dist/security/review-workers-setting.js +128 -0
- package/dist/security/review-workers-setting.js.map +1 -0
- package/dist/security/shared-evidence-tracker.d.ts +0 -1
- package/dist/selfimprove/budget.d.ts +0 -1
- package/dist/selfimprove/dhq-adapter.d.ts +0 -1
- package/dist/selfimprove/draft-pr.d.ts +0 -1
- package/dist/selfimprove/draft-pr.js +4 -1
- package/dist/selfimprove/draft-pr.js.map +1 -1
- package/dist/selfimprove/envelope-diff.d.ts +0 -1
- package/dist/selfimprove/fix-gen-context.d.ts +0 -1
- package/dist/selfimprove/fix-gen.d.ts +0 -1
- package/dist/selfimprove/op-source-map.d.ts +0 -1
- package/dist/selfimprove/probe-helper.d.ts +0 -1
- package/dist/selfimprove/replay.d.ts +0 -1
- package/dist/selfimprove/run-loop.d.ts +0 -1
- package/dist/selfimprove/scenario.d.ts +1 -2
- package/dist/selfimprove/scenario.js +1 -1
- package/dist/sentient/allowlist.d.ts +0 -1
- package/dist/sentient/background-review.d.ts +1 -2
- package/dist/sentient/background-review.js +1 -1
- package/dist/sentient/baseline.d.ts +0 -1
- package/dist/sentient/chain-walker.d.ts +0 -1
- package/dist/sentient/cross-project-hygiene.d.ts +0 -1
- package/dist/sentient/curator-config.d.ts +1 -2
- package/dist/sentient/curator-config.js +1 -1
- package/dist/sentient/curator.d.ts +1 -2
- package/dist/sentient/curator.js +1 -1
- package/dist/sentient/daemon-api.d.ts +0 -1
- package/dist/sentient/daemon-api.js +9 -1
- package/dist/sentient/daemon-api.js.map +1 -1
- package/dist/sentient/daemon-entry.d.ts +1 -2
- package/dist/sentient/daemon-entry.js +4 -0
- package/dist/sentient/daemon-entry.js.map +1 -1
- package/dist/sentient/daemon.d.ts +0 -1
- package/dist/sentient/detectors/config-drift.d.ts +0 -1
- package/dist/sentient/detectors/context-staleness.d.ts +0 -1
- package/dist/sentient/detectors/template-drift.d.ts +0 -1
- package/dist/sentient/dream-cycle.d.ts +0 -1
- package/dist/sentient/dream-cycle.js +1 -1
- package/dist/sentient/dream-cycle.js.map +1 -1
- package/dist/sentient/dream-watermark.d.ts +0 -1
- package/dist/sentient/events.d.ts +0 -1
- package/dist/sentient/execute-action.d.ts +0 -1
- package/dist/sentient/hygiene-scan.d.ts +0 -1
- package/dist/sentient/hygiene-scan.js +1 -1
- package/dist/sentient/hygiene-scan.js.map +1 -1
- package/dist/sentient/index.d.ts +0 -1
- package/dist/sentient/ingesters/brain-ingester.d.ts +0 -1
- package/dist/sentient/ingesters/nexus-ingester.d.ts +0 -1
- package/dist/sentient/ingesters/test-ingester.d.ts +0 -1
- package/dist/sentient/kill-switch.d.ts +0 -1
- package/dist/sentient/kms.d.ts +0 -1
- package/dist/sentient/local-patch.d.ts +1 -2
- package/dist/sentient/local-patch.js +1 -1
- package/dist/sentient/merge.d.ts +0 -1
- package/dist/sentient/ops.d.ts +0 -1
- package/dist/sentient/ops.js +3 -3
- package/dist/sentient/ops.js.map +1 -1
- package/dist/sentient/proposal-dedup.d.ts +0 -1
- package/dist/sentient/proposal-rate-limiter.d.ts +0 -1
- package/dist/sentient/propose-tick.d.ts +2 -4
- package/dist/sentient/propose-tick.js +7 -8
- package/dist/sentient/propose-tick.js.map +1 -1
- package/dist/sentient/revert-executor.d.ts +0 -1
- package/dist/sentient/revert-walker.d.ts +0 -1
- package/dist/sentient/skill-provenance.d.ts +1 -2
- package/dist/sentient/skill-provenance.js +1 -1
- package/dist/sentient/skill-review-prompt.d.ts +1 -2
- package/dist/sentient/skill-review-prompt.js +1 -1
- package/dist/sentient/stage-drift-tick.d.ts +0 -1
- package/dist/sentient/stage-drift-tick.js +1 -1
- package/dist/sentient/stage-drift-tick.js.map +1 -1
- package/dist/sentient/state.d.ts +0 -1
- package/dist/sentient/tick.d.ts +0 -1
- package/dist/sentient/tick.js +6 -10
- package/dist/sentient/tick.js.map +1 -1
- package/dist/sentient/tsa-anchor.d.ts +0 -1
- package/dist/sentient/worktree-dispatch.d.ts +0 -1
- package/dist/sequence/index.d.ts +0 -1
- package/dist/session/canon-lint.d.ts +0 -1
- package/dist/session/engine-ops.d.ts +0 -1
- package/dist/session/engine-ops.js +32 -16
- package/dist/session/engine-ops.js.map +1 -1
- package/dist/session/index.d.ts +0 -1
- package/dist/session/status-op.d.ts +0 -1
- package/dist/session/task-current.d.ts +0 -1
- package/dist/sessions/agent-session-adapter.d.ts +0 -1
- package/dist/sessions/agent-session.d.ts +0 -1
- package/dist/sessions/assumptions.d.ts +0 -1
- package/dist/sessions/briefing.d.ts +18 -1
- package/dist/sessions/briefing.js +68 -3
- package/dist/sessions/briefing.js.map +1 -1
- package/dist/sessions/connection-session-handle.d.ts +0 -1
- package/dist/sessions/context-alert.d.ts +0 -1
- package/dist/sessions/context-inject.d.ts +0 -1
- package/dist/sessions/context-monitor.d.ts +0 -1
- package/dist/sessions/decisions.d.ts +0 -1
- package/dist/sessions/drift-watchdog.d.ts +0 -1
- package/dist/sessions/find.d.ts +0 -1
- package/dist/sessions/focus-state-store.d.ts +0 -1
- package/dist/sessions/focus-state-store.js +3 -0
- package/dist/sessions/focus-state-store.js.map +1 -1
- package/dist/sessions/handoff-markdown.d.ts +0 -1
- package/dist/sessions/handoff.d.ts +0 -1
- package/dist/sessions/hitl-warnings.d.ts +0 -1
- package/dist/sessions/index.d.ts +0 -1
- package/dist/sessions/session-archive.d.ts +0 -1
- package/dist/sessions/session-cleanup.d.ts +0 -1
- package/dist/sessions/session-drift.d.ts +0 -1
- package/dist/sessions/session-end-snapshot-entry.d.ts +0 -1
- package/dist/sessions/session-end-snapshot-entry.js +2 -2
- package/dist/sessions/session-end-snapshot-entry.js.map +1 -1
- package/dist/sessions/session-end-snapshot.d.ts +0 -1
- package/dist/sessions/session-end-snapshot.js +4 -4
- package/dist/sessions/session-end-snapshot.js.map +1 -1
- package/dist/sessions/session-enforcement.d.ts +0 -1
- package/dist/sessions/session-grade.d.ts +0 -1
- package/dist/sessions/session-history.d.ts +0 -1
- package/dist/sessions/session-id.d.ts +0 -1
- package/dist/sessions/session-journal.d.ts +0 -1
- package/dist/sessions/session-manifest-mirror.d.ts +0 -1
- package/dist/sessions/session-memory-bridge.d.ts +0 -1
- package/dist/sessions/session-show.d.ts +0 -1
- package/dist/sessions/session-stats.d.ts +0 -1
- package/dist/sessions/session-suspend.d.ts +0 -1
- package/dist/sessions/session-switch.d.ts +0 -1
- package/dist/sessions/session-view.d.ts +0 -1
- package/dist/sessions/snapshot.d.ts +0 -1
- package/dist/sessions/statusline-setup.d.ts +0 -1
- package/dist/sessions/terminal-identity.d.ts +5 -4
- package/dist/sessions/terminal-identity.js +12 -3
- package/dist/sessions/terminal-identity.js.map +1 -1
- package/dist/sessions/types.d.ts +0 -1
- package/dist/setup/config-json-merge.d.ts +0 -1
- package/dist/setup/index.d.ts +0 -1
- package/dist/setup/sections/brain.d.ts +2 -3
- package/dist/setup/sections/brain.js +2 -2
- package/dist/setup/sections/harness.d.ts +2 -3
- package/dist/setup/sections/harness.js +2 -2
- package/dist/setup/sections/identity.d.ts +1 -2
- package/dist/setup/sections/identity.js +1 -1
- package/dist/setup/sections/integrations.d.ts +1 -2
- package/dist/setup/sections/integrations.js +1 -1
- package/dist/setup/sections/llm.d.ts +1 -2
- package/dist/setup/sections/llm.js +1 -1
- package/dist/setup/sections/models-roles.d.ts +0 -1
- package/dist/setup/sections/nexus-account.d.ts +0 -1
- package/dist/setup/sections/project-conventions.d.ts +1 -2
- package/dist/setup/sections/project-conventions.js +1 -1
- package/dist/setup/sections/sentient.d.ts +1 -2
- package/dist/setup/sections/sentient.js +1 -1
- package/dist/setup/sections/system-one.d.ts +0 -1
- package/dist/setup/sections/telemetry.d.ts +0 -1
- package/dist/setup/sections/verification.d.ts +1 -2
- package/dist/setup/sections/verification.js +1 -1
- package/dist/setup/whoami-summary.d.ts +0 -1
- package/dist/setup/wizard.d.ts +2 -3
- package/dist/setup/wizard.js +2 -2
- package/dist/shutdown-deadline.d.ts +0 -1
- package/dist/shutdown.d.ts +11 -2
- package/dist/shutdown.js +22 -7
- package/dist/shutdown.js.map +1 -1
- package/dist/skills/agents/config.d.ts +0 -1
- package/dist/skills/agents/install.d.ts +0 -1
- package/dist/skills/agents/registry.d.ts +0 -1
- package/dist/skills/discovery.d.ts +0 -1
- package/dist/skills/dispatch.d.ts +0 -1
- package/dist/skills/doctor-adopt.d.ts +2 -3
- package/dist/skills/doctor-adopt.js +2 -2
- package/dist/skills/doctor-bridge.d.ts +2 -3
- package/dist/skills/doctor-bridge.js +2 -2
- package/dist/skills/doctor.d.ts +2 -3
- package/dist/skills/doctor.js +2 -2
- package/dist/skills/dynamic-skill-generator.d.ts +0 -1
- package/dist/skills/federated-search.d.ts +0 -1
- package/dist/skills/federation-install-gate.d.ts +0 -1
- package/dist/skills/federation-store.d.ts +1 -2
- package/dist/skills/federation-store.js +1 -1
- package/dist/skills/hermes-import-classifier.d.ts +0 -1
- package/dist/skills/hermes-importer.d.ts +1 -2
- package/dist/skills/hermes-importer.js +1 -1
- package/dist/skills/index.d.ts +0 -1
- package/dist/skills/injection/subagent.d.ts +0 -1
- package/dist/skills/injection/token.d.ts +0 -1
- package/dist/skills/injection/token.js +3 -6
- package/dist/skills/injection/token.js.map +1 -1
- package/dist/skills/install.d.ts +0 -1
- package/dist/skills/manifests/contribution.d.ts +0 -1
- package/dist/skills/manifests/research.d.ts +0 -1
- package/dist/skills/manifests/resolver.d.ts +0 -1
- package/dist/skills/marketplace.d.ts +0 -1
- package/dist/skills/migration.d.ts +1 -2
- package/dist/skills/migration.js +1 -1
- package/dist/skills/orchestrator/spawn.d.ts +0 -1
- package/dist/skills/orchestrator/spawn.js +3 -4
- package/dist/skills/orchestrator/spawn.js.map +1 -1
- package/dist/skills/orchestrator/startup.d.ts +0 -1
- package/dist/skills/orchestrator/startup.js +6 -1
- package/dist/skills/orchestrator/startup.js.map +1 -1
- package/dist/skills/orchestrator/validator.d.ts +0 -1
- package/dist/skills/precedence-integration.d.ts +0 -1
- package/dist/skills/precedence-types.d.ts +0 -1
- package/dist/skills/propose-patch.d.ts +0 -1
- package/dist/skills/propose-patch.js +4 -1
- package/dist/skills/propose-patch.js.map +1 -1
- package/dist/skills/prune-bundled.d.ts +0 -1
- package/dist/skills/routing-table.d.ts +0 -1
- package/dist/skills/skill-executor-adapter.d.ts +0 -1
- package/dist/skills/skill-paths.d.ts +0 -1
- package/dist/skills/skill-root.d.ts +1 -2
- package/dist/skills/skill-root.js +1 -1
- package/dist/skills/skills-guard-audit.d.ts +0 -1
- package/dist/skills/skills-guard-patterns.d.ts +0 -1
- package/dist/skills/skills-guard.d.ts +1 -2
- package/dist/skills/skills-guard.js +1 -1
- package/dist/skills/test-utility.d.ts +0 -1
- package/dist/skills/types.d.ts +0 -1
- package/dist/skills/usage-recorder.d.ts +1 -2
- package/dist/skills/usage-recorder.js +1 -1
- package/dist/skills/validation.d.ts +0 -1
- package/dist/skills/version.d.ts +0 -1
- package/dist/skills-export.d.ts +0 -1
- package/dist/snapshot/index.d.ts +0 -1
- package/dist/spawn/adapter-registry.d.ts +44 -5
- package/dist/spawn/adapter-registry.js +100 -8
- package/dist/spawn/adapter-registry.js.map +1 -1
- package/dist/spawn/agent-identity.d.ts +0 -1
- package/dist/spawn/branch-integration.d.ts +4 -1
- package/dist/spawn/branch-integration.js +24 -6
- package/dist/spawn/branch-integration.js.map +1 -1
- package/dist/spawn/branch-lock.d.ts +11 -8
- package/dist/spawn/branch-lock.js +70 -159
- package/dist/spawn/branch-lock.js.map +1 -1
- package/dist/spawn/index.d.ts +0 -1
- package/dist/spawn/worktree-lock-holder.d.ts +0 -1
- package/dist/stats/index.d.ts +0 -1
- package/dist/stats/workflow-telemetry.d.ts +0 -1
- package/dist/status/index.d.ts +1 -2
- package/dist/status/index.js +1 -1
- package/dist/sticky/archive.d.ts +0 -1
- package/dist/sticky/convert.d.ts +0 -1
- package/dist/sticky/create.d.ts +0 -1
- package/dist/sticky/engine-ops.d.ts +0 -1
- package/dist/sticky/id.d.ts +0 -1
- package/dist/sticky/index.d.ts +0 -1
- package/dist/sticky/list.d.ts +0 -1
- package/dist/sticky/ops.d.ts +0 -1
- package/dist/sticky/purge.d.ts +0 -1
- package/dist/sticky/show.d.ts +0 -1
- package/dist/sticky/types.d.ts +0 -1
- package/dist/store/ac-binding-prune.d.ts +3 -3
- package/dist/store/ac-binding-prune.js +4 -3
- package/dist/store/ac-binding-prune.js.map +1 -1
- package/dist/store/agent-api-key.d.ts +0 -1
- package/dist/store/agent-doctor.d.ts +0 -1
- package/dist/store/agent-install.d.ts +0 -1
- package/dist/store/agent-registry-accessor.d.ts +0 -1
- package/dist/store/agent-registry-store.d.ts +0 -1
- package/dist/store/agent-resolver.d.ts +0 -1
- package/dist/store/api-key-kdf.d.ts +0 -1
- package/dist/store/atomic.d.ts +1 -1
- package/dist/store/atomic.js +1 -1
- package/dist/store/atomic.js.map +1 -1
- package/dist/store/attachment-repair.d.ts +0 -1
- package/dist/store/attachment-repair.js +7 -5
- package/dist/store/attachment-repair.js.map +1 -1
- package/dist/store/attachment-store.d.ts +6 -1
- package/dist/store/attachment-store.js +48 -13
- package/dist/store/attachment-store.js.map +1 -1
- package/dist/store/audit-log-schema.d.ts +0 -1
- package/dist/store/background-jobs.d.ts +0 -1
- package/dist/store/background-ops.d.ts +51 -4
- package/dist/store/background-ops.js +94 -14
- package/dist/store/background-ops.js.map +1 -1
- package/dist/store/backup-crypto.d.ts +0 -1
- package/dist/store/backup-inspect.d.ts +0 -1
- package/dist/store/backup-pack.d.ts +0 -1
- package/dist/store/backup-recover-brain.d.ts +0 -1
- package/dist/store/backup-recover.d.ts +0 -1
- package/dist/store/backup-sidecar.d.ts +125 -1
- package/dist/store/backup-sidecar.js +434 -1
- package/dist/store/backup-sidecar.js.map +1 -1
- package/dist/store/backup-unpack.d.ts +0 -1
- package/dist/store/backup-verify.d.ts +0 -1
- package/dist/store/backup.d.ts +0 -1
- package/dist/store/blob-keep.d.ts +32 -1
- package/dist/store/blob-keep.js +67 -2
- package/dist/store/blob-keep.js.map +1 -1
- package/dist/store/blob-ops.d.ts +1 -2
- package/dist/store/blob-ops.js +7 -3
- package/dist/store/blob-ops.js.map +1 -1
- package/dist/store/brain-accessor-impl.d.ts +0 -1
- package/dist/store/cache.d.ts +0 -1
- package/dist/store/checkpoint-git-dir.d.ts +0 -1
- package/dist/store/cleanup-legacy.d.ts +0 -1
- package/dist/store/conduit-doc-history.d.ts +208 -17
- package/dist/store/conduit-doc-history.js +531 -59
- package/dist/store/conduit-doc-history.js.map +1 -1
- package/dist/store/conduit-sqlite.d.ts +0 -1
- package/dist/store/converters.d.ts +0 -1
- package/dist/store/converters.js +22 -3
- package/dist/store/converters.js.map +1 -1
- package/dist/store/credential-transfer.d.ts +0 -1
- package/dist/store/cross-db-cleanup.d.ts +1 -2
- package/dist/store/cross-db-cleanup.js +1 -1
- package/dist/store/data-accessor.d.ts +0 -1
- package/dist/store/data-safety-central.d.ts +0 -1
- package/dist/store/db-helpers.d.ts +86 -1
- package/dist/store/db-helpers.js +238 -9
- package/dist/store/db-helpers.js.map +1 -1
- package/dist/store/decision-adr-links.d.ts +0 -1
- package/dist/store/decision-adr-links.js +5 -2
- package/dist/store/decision-adr-links.js.map +1 -1
- package/dist/store/dependency-cycles.d.ts +0 -1
- package/dist/store/display-id-alias.d.ts +0 -1
- package/dist/store/docs-accessor-impl.d.ts +0 -1
- package/dist/store/docs-bytes-backup.d.ts +0 -1
- package/dist/store/drizzle-node-sqlite.d.ts +0 -1
- package/dist/store/dual-scope-db.d.ts +0 -1
- package/dist/store/dual-scope-db.js +75 -7
- package/dist/store/dual-scope-db.js.map +1 -1
- package/dist/store/exodus/__fixtures__/representative-fixture.d.ts +0 -1
- package/dist/store/exodus/abort-events.d.ts +0 -1
- package/dist/store/exodus/archive.d.ts +0 -1
- package/dist/store/exodus/bare-family.d.ts +0 -1
- package/dist/store/exodus/column-transforms.d.ts +0 -1
- package/dist/store/exodus/count-parity.d.ts +0 -1
- package/dist/store/exodus/health.d.ts +0 -1
- package/dist/store/exodus/index.d.ts +0 -1
- package/dist/store/exodus/migrate.d.ts +0 -1
- package/dist/store/exodus/on-open.d.ts +0 -1
- package/dist/store/exodus/plan.d.ts +0 -1
- package/dist/store/exodus/prior-recoveries.d.ts +0 -1
- package/dist/store/exodus/reconcile.d.ts +0 -1
- package/dist/store/exodus/recovery.d.ts +0 -1
- package/dist/store/exodus/runtime-targets.d.ts +0 -1
- package/dist/store/exodus/seal.d.ts +0 -1
- package/dist/store/exodus/status.d.ts +0 -1
- package/dist/store/exodus/table-name-map.d.ts +0 -1
- package/dist/store/exodus/table-order.d.ts +0 -1
- package/dist/store/exodus/task-id-collision-sql.d.ts +0 -1
- package/dist/store/exodus/task-id-remap.d.ts +0 -1
- package/dist/store/exodus/types.d.ts +0 -1
- package/dist/store/exodus/verify-migration.d.ts +0 -1
- package/dist/store/exodus/verify.d.ts +0 -1
- package/dist/store/exodus/write-guard.d.ts +0 -1
- package/dist/store/export.d.ts +0 -1
- package/dist/store/file-utils.d.ts +0 -1
- package/dist/store/git-checkpoint.d.ts +11 -2
- package/dist/store/git-checkpoint.js +14 -3
- package/dist/store/git-checkpoint.js.map +1 -1
- package/dist/store/global-salt.d.ts +0 -1
- package/dist/store/identity-share.d.ts +0 -1
- package/dist/store/import-logging.d.ts +0 -1
- package/dist/store/import-remap.d.ts +0 -1
- package/dist/store/import-sort.d.ts +0 -1
- package/dist/store/index.d.ts +0 -1
- package/dist/store/json.d.ts +2 -1
- package/dist/store/json.js +1 -1
- package/dist/store/json.js.map +1 -1
- package/dist/store/legacy-tasks-lineage.d.ts +0 -1
- package/dist/store/lifecycle-store.d.ts +0 -1
- package/dist/store/llm-accounts-accessor.d.ts +0 -1
- package/dist/store/llmtxt-blob-adapter.d.ts +0 -1
- package/dist/store/llmtxt-blob-adapter.js +4 -1
- package/dist/store/llmtxt-blob-adapter.js.map +1 -1
- package/dist/store/lock.d.ts +0 -1
- package/dist/store/memory-accessor.d.ts +0 -1
- package/dist/store/memory-sqlite.d.ts +16 -1
- package/dist/store/memory-sqlite.js +53 -13
- package/dist/store/memory-sqlite.js.map +1 -1
- package/dist/store/migrate-signaldock-to-conduit.d.ts +0 -1
- package/dist/store/migration-files.d.ts +0 -1
- package/dist/store/migration-manager.d.ts +32 -1
- package/dist/store/migration-manager.js +97 -7
- package/dist/store/migration-manager.js.map +1 -1
- package/dist/store/migration-runner.d.ts +50 -2
- package/dist/store/migration-runner.js +73 -2
- package/dist/store/migration-runner.js.map +1 -1
- package/dist/store/migration-safety.d.ts +0 -1
- package/dist/store/migration-sqlite.d.ts +0 -1
- package/dist/store/nexus-sqlite.d.ts +0 -1
- package/dist/store/nexus-validation-schemas.d.ts +0 -1
- package/dist/store/open-cleo-db.d.ts +0 -1
- package/dist/store/parsers.d.ts +0 -1
- package/dist/store/pi-session-store.d.ts +0 -1
- package/dist/store/pid-alive.d.ts +0 -1
- package/dist/store/portable-bundle-import.d.ts +0 -1
- package/dist/store/portable-bundle-relocate.d.ts +0 -1
- package/dist/store/portable-bundle-scan.d.ts +0 -1
- package/dist/store/portable-bundle.d.ts +0 -1
- package/dist/store/ports/domain-binding.d.ts +11 -2
- package/dist/store/ports/domain-binding.js +32 -8
- package/dist/store/ports/domain-binding.js.map +1 -1
- package/dist/store/ports/fk-integrity.d.ts +0 -1
- package/dist/store/pre-repair-snapshot.d.ts +31 -1
- package/dist/store/pre-repair-snapshot.js +54 -2
- package/dist/store/pre-repair-snapshot.js.map +1 -1
- package/dist/store/project-detect.d.ts +0 -1
- package/dist/store/provider.d.ts +0 -1
- package/dist/store/recover-brain-db.d.ts +0 -1
- package/dist/store/recover-malformed-db.d.ts +0 -1
- package/dist/store/regenerators.d.ts +0 -1
- package/dist/store/relocated-store-guard.d.ts +0 -1
- package/dist/store/repair-malformed-dbs.d.ts +0 -1
- package/dist/store/resolve-migrations-folder.d.ts +0 -1
- package/dist/store/restore-conflict-parser.d.ts +0 -1
- package/dist/store/restore-conflict-report.d.ts +0 -1
- package/dist/store/restore-json-merge.d.ts +0 -1
- package/dist/store/restore-marker.d.ts +0 -1
- package/dist/store/restore-marker.js +4 -0
- package/dist/store/restore-marker.js.map +1 -1
- package/dist/store/restore-store.d.ts +0 -1
- package/dist/store/role-accessors-impl.d.ts +0 -1
- package/dist/store/row-identity-flag.d.ts +0 -1
- package/dist/store/row-identity-registry.d.ts +1 -2
- package/dist/store/row-identity-registry.js +21 -1
- package/dist/store/row-identity-registry.js.map +1 -1
- package/dist/store/row-identity.d.ts +10 -1
- package/dist/store/row-identity.js +16 -6
- package/dist/store/row-identity.js.map +1 -1
- package/dist/store/safety-data-accessor.d.ts +0 -1
- package/dist/store/schedule-schema.d.ts +0 -1
- package/dist/store/schedule-store.d.ts +0 -1
- package/dist/store/schema/agent-registry-schema.d.ts +0 -1
- package/dist/store/schema/agent-schema.d.ts +0 -1
- package/dist/store/schema/attachments.d.ts +15 -6
- package/dist/store/schema/attachments.js +16 -2
- package/dist/store/schema/attachments.js.map +1 -1
- package/dist/store/schema/audit.d.ts +0 -1
- package/dist/store/schema/background-jobs.d.ts +0 -1
- package/dist/store/schema/chain-schema.d.ts +0 -1
- package/dist/store/schema/cleo-global/accounts.d.ts +0 -1
- package/dist/store/schema/cleo-global/agent-registry.d.ts +0 -1
- package/dist/store/schema/cleo-global/index.d.ts +0 -1
- package/dist/store/schema/cleo-global/models-catalog.d.ts +1 -2
- package/dist/store/schema/cleo-global/nexus.d.ts +0 -1
- package/dist/store/schema/cleo-global/providers.d.ts +0 -1
- package/dist/store/schema/cleo-global/services.d.ts +0 -1
- package/dist/store/schema/cleo-global/session-manifest.d.ts +0 -1
- package/dist/store/schema/cleo-global/skills.d.ts +0 -1
- package/dist/store/schema/cleo-global/telemetry.d.ts +0 -1
- package/dist/store/schema/cleo-project/audit.d.ts +0 -1
- package/dist/store/schema/cleo-project/conduit.d.ts +160 -1
- package/dist/store/schema/cleo-project/conduit.js +25 -0
- package/dist/store/schema/cleo-project/conduit.js.map +1 -1
- package/dist/store/schema/cleo-project/docs.d.ts +0 -1
- package/dist/store/schema/cleo-project/index.d.ts +0 -1
- package/dist/store/schema/cleo-project/lifecycle.d.ts +0 -1
- package/dist/store/schema/cleo-project/nexus-graph.d.ts +0 -1
- package/dist/store/schema/cleo-project/provenance-commits.d.ts +0 -1
- package/dist/store/schema/cleo-project/provenance-orphans.d.ts +0 -1
- package/dist/store/schema/cleo-project/provenance-rest.d.ts +0 -1
- package/dist/store/schema/cleo-project/runtime.d.ts +0 -1
- package/dist/store/schema/cleo-project/tasks-core-batch2.d.ts +0 -1
- package/dist/store/schema/cleo-project/tasks-core.d.ts +48 -17
- package/dist/store/schema/cleo-project/tasks-core.js +10 -2
- package/dist/store/schema/cleo-project/tasks-core.js.map +1 -1
- package/dist/store/schema/cleo-shared/brain.d.ts +0 -1
- package/dist/store/schema/cleo-shared/index.d.ts +0 -1
- package/dist/store/schema/code-index.d.ts +0 -1
- package/dist/store/schema/conduit-schema.d.ts +0 -1
- package/dist/store/schema/evidence-bindings.d.ts +0 -1
- package/dist/store/schema/experiments.d.ts +0 -1
- package/dist/store/schema/goal.d.ts +0 -1
- package/dist/store/schema/index.d.ts +0 -1
- package/dist/store/schema/jsonb.d.ts +0 -1
- package/dist/store/schema/lifecycle.d.ts +0 -1
- package/dist/store/schema/manifest.d.ts +0 -1
- package/dist/store/schema/memory-schema.d.ts +3 -4
- package/dist/store/schema/memory-schema.js +3 -3
- package/dist/store/schema/nexus-schema.d.ts +0 -1
- package/dist/store/schema/playbooks.d.ts +0 -1
- package/dist/store/schema/provenance/commits.d.ts +0 -1
- package/dist/store/schema/provenance/index.d.ts +0 -1
- package/dist/store/schema/provenance/pull-requests.d.ts +0 -1
- package/dist/store/schema/provenance/releases.d.ts +0 -1
- package/dist/store/schema/schema-utils.d.ts +0 -1
- package/dist/store/schema/skills-schema.d.ts +2 -3
- package/dist/store/schema/skills-schema.js +2 -2
- package/dist/store/schema/sqlite-feature-expressiveness.d.ts +0 -1
- package/dist/store/schema/tasks.d.ts +1 -2
- package/dist/store/schema/tasks.js +2 -0
- package/dist/store/schema/tasks.js.map +1 -1
- package/dist/store/schema/telemetry-schema.d.ts +0 -1
- package/dist/store/schema.d.ts +0 -1
- package/dist/store/selfimprove-dhq-schema.d.ts +0 -1
- package/dist/store/selfimprove-dhq-store.d.ts +0 -1
- package/dist/store/service-connections-accessor.d.ts +0 -1
- package/dist/store/service-host-matcher.d.ts +0 -1
- package/dist/store/service-injection.d.ts +0 -1
- package/dist/store/service-oauth.d.ts +0 -1
- package/dist/store/service-trust-gate.d.ts +0 -1
- package/dist/store/session-binding-schema.d.ts +0 -1
- package/dist/store/session-store.d.ts +42 -4
- package/dist/store/session-store.js +213 -31
- package/dist/store/session-store.js.map +1 -1
- package/dist/store/skills-db.d.ts +2 -3
- package/dist/store/skills-db.js +2 -2
- package/dist/store/skills-store.d.ts +1 -2
- package/dist/store/skills-store.js +1 -1
- package/dist/store/skills-usage-queue.d.ts +1 -2
- package/dist/store/skills-usage-queue.js +1 -1
- package/dist/store/snapshot-gate.d.ts +0 -1
- package/dist/store/split-brain-import.d.ts +0 -1
- package/dist/store/sqlite-backup.d.ts +6 -2
- package/dist/store/sqlite-backup.js +12 -5
- package/dist/store/sqlite-backup.js.map +1 -1
- package/dist/store/sqlite-data-accessor.d.ts +22 -1
- package/dist/store/sqlite-data-accessor.js +145 -46
- package/dist/store/sqlite-data-accessor.js.map +1 -1
- package/dist/store/sqlite-native.d.ts +0 -1
- package/dist/store/sqlite-pragmas.d.ts +0 -1
- package/dist/store/sqlite.d.ts +19 -1
- package/dist/store/sqlite.js +64 -13
- package/dist/store/sqlite.js.map +1 -1
- package/dist/store/status-registry.d.ts +0 -1
- package/dist/store/store-write-guard.d.ts +0 -1
- package/dist/store/sync/activity.d.ts +0 -1
- package/dist/store/sync/apply/applier.d.ts +0 -1
- package/dist/store/sync/apply/applier.js +80 -5
- package/dist/store/sync/apply/applier.js.map +1 -1
- package/dist/store/sync/apply/fk.d.ts +0 -1
- package/dist/store/sync/apply/footprints.d.ts +0 -1
- package/dist/store/sync/apply/frame.d.ts +0 -1
- package/dist/store/sync/apply/index.d.ts +0 -1
- package/dist/store/sync/apply/parent-delete.d.ts +0 -1
- package/dist/store/sync/apply/post-apply.d.ts +0 -1
- package/dist/store/sync/apply/refs.d.ts +0 -1
- package/dist/store/sync/apply/resolve-conflict.d.ts +0 -1
- package/dist/store/sync/apply/write-api.d.ts +0 -1
- package/dist/store/sync/apply-intent.d.ts +0 -1
- package/dist/store/sync/audit-scrub.d.ts +0 -1
- package/dist/store/sync/capture.d.ts +22 -1
- package/dist/store/sync/capture.js +16 -1
- package/dist/store/sync/capture.js.map +1 -1
- package/dist/store/sync/clock-store.d.ts +0 -1
- package/dist/store/sync/collision-settle.d.ts +7 -4
- package/dist/store/sync/collision-settle.js +21 -8
- package/dist/store/sync/collision-settle.js.map +1 -1
- package/dist/store/sync/conflicts.d.ts +0 -1
- package/dist/store/sync/field-leave.d.ts +0 -1
- package/dist/store/sync/fk-orphans.d.ts +0 -1
- package/dist/store/sync/flags.d.ts +0 -1
- package/dist/store/sync/genesis.d.ts +0 -1
- package/dist/store/sync/held.d.ts +0 -1
- package/dist/store/sync/hlc.d.ts +0 -1
- package/dist/store/sync/identity-fill.d.ts +0 -1
- package/dist/store/sync/inbox.d.ts +0 -1
- package/dist/store/sync/index.d.ts +0 -1
- package/dist/store/sync/inherit.d.ts +0 -1
- package/dist/store/sync/machinery.d.ts +0 -1
- package/dist/store/sync/merge/engine.d.ts +0 -1
- package/dist/store/sync/merge/index.d.ts +0 -1
- package/dist/store/sync/merge/rules.d.ts +0 -1
- package/dist/store/sync/merge/rules.js +14 -0
- package/dist/store/sync/merge/rules.js.map +1 -1
- package/dist/store/sync/merge/types.d.ts +0 -1
- package/dist/store/sync/migration-hooks.d.ts +0 -1
- package/dist/store/sync/netting.d.ts +0 -1
- package/dist/store/sync/pull.d.ts +0 -1
- package/dist/store/sync/push.d.ts +0 -1
- package/dist/store/sync/rebind.d.ts +0 -1
- package/dist/store/sync/reconcile-copy.d.ts +0 -1
- package/dist/store/sync/reconcile.d.ts +0 -1
- package/dist/store/sync/remap.d.ts +0 -1
- package/dist/store/sync/repair.d.ts +0 -1
- package/dist/store/sync/replay-pin.d.ts +0 -1
- package/dist/store/sync/replica-registry.d.ts +0 -1
- package/dist/store/sync/replica.d.ts +0 -1
- package/dist/store/sync/retire.d.ts +0 -1
- package/dist/store/sync/row-meta.d.ts +0 -1
- package/dist/store/sync/schema.d.ts +0 -1
- package/dist/store/sync/seal-backlog.d.ts +0 -1
- package/dist/store/sync/sealer-values.d.ts +0 -1
- package/dist/store/sync/sealer.d.ts +0 -1
- package/dist/store/sync/segments.d.ts +0 -1
- package/dist/store/sync/sequencing.d.ts +0 -1
- package/dist/store/sync/skew-hold.d.ts +0 -1
- package/dist/store/sync/structural.d.ts +0 -1
- package/dist/store/sync/timestamp-canon.d.ts +0 -1
- package/dist/store/sync/timestamps.d.ts +0 -1
- package/dist/store/sync/tombstones.d.ts +0 -1
- package/dist/store/sync/trigger-classes.d.ts +0 -1
- package/dist/store/sync/trigger-suspend-at-path.d.ts +0 -1
- package/dist/store/sync/txn-signing.d.ts +0 -1
- package/dist/store/sync/uid-alias.d.ts +27 -1
- package/dist/store/sync/uid-alias.js +99 -13
- package/dist/store/sync/uid-alias.js.map +1 -1
- package/dist/store/sync/write-actor.d.ts +0 -1
- package/dist/store/sync/writer-version.d.ts +0 -1
- package/dist/store/t310-readiness.d.ts +0 -1
- package/dist/store/table-classification.d.ts +30 -2
- package/dist/store/table-classification.js +49 -0
- package/dist/store/table-classification.js.map +1 -1
- package/dist/store/task-claim.d.ts +94 -2
- package/dist/store/task-claim.js +134 -2
- package/dist/store/task-claim.js.map +1 -1
- package/dist/store/task-reference-columns.d.ts +0 -1
- package/dist/store/task-version.d.ts +0 -1
- package/dist/store/tasks-schema.d.ts +0 -1
- package/dist/store/tasks-sqlite.d.ts +0 -1
- package/dist/store/tasks-sqlite.js +8 -5
- package/dist/store/tasks-sqlite.js.map +1 -1
- package/dist/store/trigger-suspend-schema.d.ts +0 -1
- package/dist/store/twin-collapse.d.ts +23 -2
- package/dist/store/twin-collapse.js +115 -8
- package/dist/store/twin-collapse.js.map +1 -1
- package/dist/store/typed-query.d.ts +0 -1
- package/dist/store/umbrella-data-accessor.d.ts +0 -1
- package/dist/store/validation-schemas.d.ts +96 -33
- package/dist/store/vault-manifest.d.ts +0 -1
- package/dist/store/with-retry.d.ts +0 -1
- package/dist/store/worktree-build-guard.d.ts +9 -1
- package/dist/store/worktree-build-guard.js +9 -2
- package/dist/store/worktree-build-guard.js.map +1 -1
- package/dist/store/worktree-isolation-guard.d.ts +0 -1
- package/dist/store/writer-lease-schema.d.ts +0 -1
- package/dist/store/writer-lease.d.ts +0 -1
- package/dist/store/zod-schema-factory.d.ts +0 -1
- package/dist/system/archive-analytics.d.ts +0 -1
- package/dist/system/archive-stats.d.ts +0 -1
- package/dist/system/audit.d.ts +0 -1
- package/dist/system/backup.d.ts +29 -1
- package/dist/system/backup.js +243 -38
- package/dist/system/backup.js.map +1 -1
- package/dist/system/bridge-mode.d.ts +0 -1
- package/dist/system/cleanup.d.ts +0 -1
- package/dist/system/cleo-link.d.ts +0 -1
- package/dist/system/dependencies.d.ts +22 -1
- package/dist/system/dependencies.js +49 -2
- package/dist/system/dependencies.js.map +1 -1
- package/dist/system/global-delivery.d.ts +21 -2
- package/dist/system/global-delivery.js +28 -1
- package/dist/system/global-delivery.js.map +1 -1
- package/dist/system/health.d.ts +0 -1
- package/dist/system/health.js +23 -1
- package/dist/system/health.js.map +1 -1
- package/dist/system/index.d.ts +0 -1
- package/dist/system/inject-generate.d.ts +0 -1
- package/dist/system/labels.d.ts +0 -1
- package/dist/system/metrics.d.ts +0 -1
- package/dist/system/migrate.d.ts +0 -1
- package/dist/system/platform-paths.d.ts +0 -1
- package/dist/system/project-health.d.ts +0 -1
- package/dist/system/rogue-cleo-detector.d.ts +0 -1
- package/dist/system/runtime.d.ts +0 -1
- package/dist/system/safestop.d.ts +0 -1
- package/dist/system/skill-fixtures.d.ts +0 -1
- package/dist/system/storage-preflight.d.ts +0 -1
- package/dist/system/sync.d.ts +0 -1
- package/dist/task-tools/build-task-tree.d.ts +0 -1
- package/dist/task-tools/compute-critical-path.d.ts +0 -1
- package/dist/task-tools/describe-schema.d.ts +0 -1
- package/dist/task-tools/index.d.ts +0 -1
- package/dist/task-tools/render-task-tree.d.ts +0 -1
- package/dist/task-tools/score-task-priority.d.ts +0 -1
- package/dist/task-tools/sdk-tool.d.ts +0 -1
- package/dist/task-work/claims.d.ts +20 -3
- package/dist/task-work/claims.js +54 -5
- package/dist/task-work/claims.js.map +1 -1
- package/dist/task-work/current.d.ts +0 -1
- package/dist/task-work/index.d.ts +0 -1
- package/dist/task-work/index.js +26 -2
- package/dist/task-work/index.js.map +1 -1
- package/dist/tasks/ac-coverage-gate.d.ts +36 -2
- package/dist/tasks/ac-coverage-gate.js +82 -28
- package/dist/tasks/ac-coverage-gate.js.map +1 -1
- package/dist/tasks/ac-identity.d.ts +0 -1
- package/dist/tasks/ac-immutability.d.ts +21 -3
- package/dist/tasks/ac-immutability.js +25 -0
- package/dist/tasks/ac-immutability.js.map +1 -1
- package/dist/tasks/ac-table.d.ts +18 -2
- package/dist/tasks/ac-table.js +25 -0
- package/dist/tasks/ac-table.js.map +1 -1
- package/dist/tasks/acceptance-input.d.ts +0 -1
- package/dist/tasks/add-batch.d.ts +0 -1
- package/dist/tasks/add.d.ts +8 -1
- package/dist/tasks/add.js +20 -3
- package/dist/tasks/add.js.map +1 -1
- package/dist/tasks/affected-packages.d.ts +32 -32
- package/dist/tasks/affected-packages.js +52 -50
- package/dist/tasks/affected-packages.js.map +1 -1
- package/dist/tasks/affected-scope.d.ts +13 -4
- package/dist/tasks/affected-scope.js +29 -11
- package/dist/tasks/affected-scope.js.map +1 -1
- package/dist/tasks/affected-template.d.ts +0 -1
- package/dist/tasks/affected-tests.d.ts +110 -0
- package/dist/tasks/affected-tests.js +589 -0
- package/dist/tasks/affected-tests.js.map +1 -0
- package/dist/tasks/agent-lifecycle-lane.d.ts +0 -1
- package/dist/tasks/analyze.d.ts +0 -1
- package/dist/tasks/archive.d.ts +0 -1
- package/dist/tasks/atomicity.d.ts +0 -1
- package/dist/tasks/axis-filters.d.ts +0 -1
- package/dist/tasks/backfill-child-projections.d.ts +0 -1
- package/dist/tasks/backfill-epic-loom.d.ts +0 -1
- package/dist/tasks/cancel-ops.d.ts +3 -36
- package/dist/tasks/cancel-ops.js +3 -97
- package/dist/tasks/cancel-ops.js.map +1 -1
- package/dist/tasks/cancelled-child-waiver-audit.d.ts +0 -1
- package/dist/tasks/cancelled-child-waiver.d.ts +75 -0
- package/dist/tasks/cancelled-child-waiver.js +118 -0
- package/dist/tasks/cancelled-child-waiver.js.map +1 -0
- package/dist/tasks/change-set.d.ts +0 -1
- package/dist/tasks/change-set.js +92 -27
- package/dist/tasks/change-set.js.map +1 -1
- package/dist/tasks/changeset-plan.d.ts +0 -1
- package/dist/tasks/child-disposition.d.ts +2 -2
- package/dist/tasks/child-disposition.js +2 -1
- package/dist/tasks/child-disposition.js.map +1 -1
- package/dist/tasks/collection.d.ts +0 -1
- package/dist/tasks/command-gate-cmd.d.ts +32 -0
- package/dist/tasks/command-gate-cmd.js +45 -0
- package/dist/tasks/command-gate-cmd.js.map +1 -0
- package/dist/tasks/command-line.d.ts +0 -1
- package/dist/tasks/complete-ci.d.ts +9 -1
- package/dist/tasks/complete-ci.js +21 -4
- package/dist/tasks/complete-ci.js.map +1 -1
- package/dist/tasks/complete.d.ts +13 -8
- package/dist/tasks/complete.js +74 -105
- package/dist/tasks/complete.js.map +1 -1
- package/dist/tasks/completion-context-pack.d.ts +0 -1
- package/dist/tasks/completion-evaluation.d.ts +0 -1
- package/dist/tasks/component-pr.d.ts +37 -1
- package/dist/tasks/component-pr.js +106 -14
- package/dist/tasks/component-pr.js.map +1 -1
- package/dist/tasks/compute-task-view.d.ts +0 -1
- package/dist/tasks/compute-task-view.js +5 -2
- package/dist/tasks/compute-task-view.js.map +1 -1
- package/dist/tasks/coordination-parent.d.ts +0 -1
- package/dist/tasks/criterion-receipt.d.ts +62 -0
- package/dist/tasks/criterion-receipt.js +145 -0
- package/dist/tasks/criterion-receipt.js.map +1 -0
- package/dist/tasks/crossref-extract.d.ts +0 -1
- package/dist/tasks/decompose.d.ts +0 -1
- package/dist/tasks/delete-preview.d.ts +0 -1
- package/dist/tasks/delete-preview.js +1 -1
- package/dist/tasks/delete-preview.js.map +1 -1
- package/dist/tasks/delete.d.ts +0 -1
- package/dist/tasks/dep-graph-validator.d.ts +0 -1
- package/dist/tasks/dependency-check.d.ts +0 -1
- package/dist/tasks/depends-waiver-audit.d.ts +0 -1
- package/dist/tasks/deps-ready.d.ts +0 -1
- package/dist/tasks/done-plan.d.ts +24 -2
- package/dist/tasks/done-plan.js +249 -44
- package/dist/tasks/done-plan.js.map +1 -1
- package/dist/tasks/done-record.d.ts +0 -1
- package/dist/tasks/done-record.js +5 -0
- package/dist/tasks/done-record.js.map +1 -1
- package/dist/tasks/duplicate-bypass-audit.d.ts +0 -1
- package/dist/tasks/duplicate-detector.d.ts +0 -1
- package/dist/tasks/enforcement.d.ts +0 -1
- package/dist/tasks/engine-converters.d.ts +1 -34
- package/dist/tasks/engine-converters.js +5 -20
- package/dist/tasks/engine-converters.js.map +1 -1
- package/dist/tasks/engine-wrap-ops.d.ts +0 -1
- package/dist/tasks/engine-wrap.d.ts +15 -3
- package/dist/tasks/engine-wrap.js +129 -57
- package/dist/tasks/engine-wrap.js.map +1 -1
- package/dist/tasks/epic-enforcement.d.ts +25 -1
- package/dist/tasks/epic-enforcement.js +40 -9
- package/dist/tasks/epic-enforcement.js.map +1 -1
- package/dist/tasks/evidence-paths.d.ts +0 -1
- package/dist/tasks/evidence-tree.d.ts +28 -2
- package/dist/tasks/evidence-tree.js +66 -2
- package/dist/tasks/evidence-tree.js.map +1 -1
- package/dist/tasks/evidence.d.ts +59 -28
- package/dist/tasks/evidence.js +443 -197
- package/dist/tasks/evidence.js.map +1 -1
- package/dist/tasks/find.d.ts +0 -1
- package/dist/tasks/gate-audit.d.ts +0 -1
- package/dist/tasks/gate-notes.d.ts +17 -1
- package/dist/tasks/gate-notes.js.map +1 -1
- package/dist/tasks/gate-preview.d.ts +7 -2
- package/dist/tasks/gate-preview.js +30 -4
- package/dist/tasks/gate-preview.js.map +1 -1
- package/dist/tasks/gate-result-cache.d.ts +0 -1
- package/dist/tasks/gate-runner.d.ts +42 -1
- package/dist/tasks/gate-runner.js +234 -94
- package/dist/tasks/gate-runner.js.map +1 -1
- package/dist/tasks/gate-staleness.d.ts +0 -1
- package/dist/tasks/generic-tree.d.ts +0 -1
- package/dist/tasks/graph-cache.d.ts +0 -1
- package/dist/tasks/graph-ops.d.ts +0 -1
- package/dist/tasks/heavy-tool-env.d.ts +0 -1
- package/dist/tasks/heavy-tool-limit.d.ts +0 -1
- package/dist/tasks/hierarchy-policy.d.ts +0 -1
- package/dist/tasks/hierarchy.d.ts +0 -1
- package/dist/tasks/id-generator.d.ts +0 -1
- package/dist/tasks/index.d.ts +2 -3
- package/dist/tasks/index.js +2 -2
- package/dist/tasks/index.js.map +1 -1
- package/dist/tasks/infer-add-params.d.ts +0 -1
- package/dist/tasks/labels.d.ts +0 -1
- package/dist/tasks/list.d.ts +0 -1
- package/dist/tasks/manifest-scope.d.ts +114 -0
- package/dist/tasks/manifest-scope.js +352 -0
- package/dist/tasks/manifest-scope.js.map +1 -0
- package/dist/tasks/merge-close.d.ts +412 -0
- package/dist/tasks/merge-close.js +1587 -0
- package/dist/tasks/merge-close.js.map +1 -0
- package/dist/tasks/merge-train.d.ts +265 -0
- package/dist/tasks/merge-train.js +560 -0
- package/dist/tasks/merge-train.js.map +1 -0
- package/dist/tasks/nexus-impact-gate.d.ts +0 -1
- package/dist/tasks/nexus-risk-audit.d.ts +0 -1
- package/dist/tasks/ops.d.ts +0 -1
- package/dist/tasks/phase-tracking.d.ts +0 -1
- package/dist/tasks/pipeline-stage.d.ts +7 -2
- package/dist/tasks/pipeline-stage.js +44 -0
- package/dist/tasks/pipeline-stage.js.map +1 -1
- package/dist/tasks/plan.d.ts +0 -1
- package/dist/tasks/population.d.ts +0 -1
- package/dist/tasks/premature-close-audit.d.ts +0 -1
- package/dist/tasks/qa-run-binding.d.ts +5 -1
- package/dist/tasks/qa-run-binding.js +6 -1
- package/dist/tasks/qa-run-binding.js.map +1 -1
- package/dist/tasks/ranking-audit.d.ts +0 -1
- package/dist/tasks/reconcile-scope.d.ts +0 -1
- package/dist/tasks/relates.d.ts +0 -1
- package/dist/tasks/req.d.ts +49 -1
- package/dist/tasks/req.js +185 -3
- package/dist/tasks/req.js.map +1 -1
- package/dist/tasks/revalidation-cache.d.ts +0 -1
- package/dist/tasks/review-dispatch.d.ts +146 -0
- package/dist/tasks/review-dispatch.js +433 -0
- package/dist/tasks/review-dispatch.js.map +1 -0
- package/dist/tasks/review-verdict.d.ts +296 -0
- package/dist/tasks/review-verdict.js +751 -0
- package/dist/tasks/review-verdict.js.map +1 -0
- package/dist/tasks/session-scope.d.ts +0 -1
- package/dist/tasks/severity-attestation.d.ts +0 -1
- package/dist/tasks/show.d.ts +2 -19
- package/dist/tasks/show.js +2 -29
- package/dist/tasks/show.js.map +1 -1
- package/dist/tasks/size-weighting.d.ts +0 -1
- package/dist/tasks/staleness.d.ts +0 -1
- package/dist/tasks/sync-ops.d.ts +0 -1
- package/dist/tasks/task-analyze.d.ts +0 -1
- package/dist/tasks/task-blockers.d.ts +0 -1
- package/dist/tasks/task-context.d.ts +0 -1
- package/dist/tasks/task-data.d.ts +0 -1
- package/dist/tasks/task-import.d.ts +0 -1
- package/dist/tasks/task-next.d.ts +0 -1
- package/dist/tasks/task-ops.d.ts +0 -1
- package/dist/tasks/task-reparent.d.ts +9 -2
- package/dist/tasks/task-reparent.js +29 -7
- package/dist/tasks/task-reparent.js.map +1 -1
- package/dist/tasks/task-tree.d.ts +0 -1
- package/dist/tasks/test-report-counts.d.ts +273 -0
- package/dist/tasks/test-report-counts.js +746 -0
- package/dist/tasks/test-report-counts.js.map +1 -0
- package/dist/tasks/test-run-binding.d.ts +20 -46
- package/dist/tasks/test-run-binding.js +34 -119
- package/dist/tasks/test-run-binding.js.map +1 -1
- package/dist/tasks/tool-cache-env.d.ts +0 -1
- package/dist/tasks/tool-cache-failed-first.d.ts +0 -1
- package/dist/tasks/tool-cache.d.ts +0 -1
- package/dist/tasks/tool-resolver.d.ts +0 -1
- package/dist/tasks/tool-runner-guard.d.ts +0 -1
- package/dist/tasks/tool-semaphore.d.ts +1 -3
- package/dist/tasks/tool-semaphore.js +10 -8
- package/dist/tasks/tool-semaphore.js.map +1 -1
- package/dist/tasks/tool-vacuity.d.ts +0 -1
- package/dist/tasks/tree-render.d.ts +0 -1
- package/dist/tasks/update.d.ts +0 -1
- package/dist/tasks/update.js +87 -1
- package/dist/tasks/update.js.map +1 -1
- package/dist/tasks/verification-policy.d.ts +34 -1
- package/dist/tasks/verification-policy.js +77 -5
- package/dist/tasks/verification-policy.js.map +1 -1
- package/dist/tasks/workspace-resolution.d.ts +224 -0
- package/dist/tasks/workspace-resolution.js +497 -0
- package/dist/tasks/workspace-resolution.js.map +1 -0
- package/dist/teardown-signal.d.ts +0 -1
- package/dist/telemetry/index.d.ts +0 -1
- package/dist/telemetry/sqlite.d.ts +0 -1
- package/dist/templates/index.d.ts +0 -1
- package/dist/templates/manifest-data.d.ts +0 -1
- package/dist/templates/parser.d.ts +0 -1
- package/dist/templates/registry.d.ts +18 -1
- package/dist/templates/registry.js +32 -1
- package/dist/templates/registry.js.map +1 -1
- package/dist/tools/agent-registry.d.ts +0 -1
- package/dist/tools/agent-tool-families.d.ts +0 -1
- package/dist/tools/browser-driver.d.ts +0 -1
- package/dist/tools/builtin-agent-tools.d.ts +0 -1
- package/dist/tools/dispatch.d.ts +0 -1
- package/dist/tools/env-scrub.d.ts +0 -1
- package/dist/tools/exec-code-agent-tool.d.ts +0 -1
- package/dist/tools/fs.d.ts +0 -1
- package/dist/tools/guard.d.ts +0 -1
- package/dist/tools/index.d.ts +0 -1
- package/dist/tools/mcp-agent-tool.d.ts +0 -1
- package/dist/tools/media-agent-tools.d.ts +0 -1
- package/dist/tools/memory-agent-tools.d.ts +0 -1
- package/dist/tools/pty.d.ts +0 -1
- package/dist/tools/schedule-agent-tools.d.ts +0 -1
- package/dist/tools/schema-gen.d.ts +0 -1
- package/dist/tools/shell.d.ts +0 -1
- package/dist/tools/skill-agent-tool.d.ts +0 -1
- package/dist/tools/web-agent-tools.d.ts +0 -1
- package/dist/tools/web-search-backends.d.ts +0 -1
- package/dist/ui/aliases.d.ts +0 -1
- package/dist/ui/command-registry.d.ts +0 -1
- package/dist/ui/index.d.ts +0 -1
- package/dist/upgrade.d.ts +4 -1
- package/dist/upgrade.js +146 -10
- package/dist/upgrade.js.map +1 -1
- package/dist/validation/compliance.d.ts +0 -1
- package/dist/validation/docs-sync.d.ts +0 -1
- package/dist/validation/doctor/checks.d.ts +20 -1
- package/dist/validation/doctor/checks.js +131 -2
- package/dist/validation/doctor/checks.js.map +1 -1
- package/dist/validation/doctor/index.d.ts +0 -1
- package/dist/validation/doctor/project-cache.d.ts +0 -1
- package/dist/validation/doctor/utils.d.ts +0 -1
- package/dist/validation/engine-ops.d.ts +5 -1
- package/dist/validation/engine-ops.js +102 -36
- package/dist/validation/engine-ops.js.map +1 -1
- package/dist/validation/engine.d.ts +0 -1
- package/dist/validation/gap-check.d.ts +0 -1
- package/dist/validation/index.d.ts +0 -1
- package/dist/validation/manifest.d.ts +0 -1
- package/dist/validation/operation-gate-validators.d.ts +0 -1
- package/dist/validation/operation-verification-gates.d.ts +0 -1
- package/dist/validation/ops.d.ts +0 -1
- package/dist/validation/param-utils.d.ts +0 -1
- package/dist/validation/protocol-common.d.ts +7 -3
- package/dist/validation/protocol-common.js +14 -4
- package/dist/validation/protocol-common.js.map +1 -1
- package/dist/validation/protocols/_shared.d.ts +0 -1
- package/dist/validation/protocols/architecture-decision.d.ts +0 -1
- package/dist/validation/protocols/artifact-publish.d.ts +0 -1
- package/dist/validation/protocols/consensus.d.ts +0 -1
- package/dist/validation/protocols/contribution.d.ts +0 -1
- package/dist/validation/protocols/decomposition.d.ts +0 -1
- package/dist/validation/protocols/implementation.d.ts +0 -1
- package/dist/validation/protocols/provenance.d.ts +0 -1
- package/dist/validation/protocols/release.d.ts +0 -1
- package/dist/validation/protocols/research.d.ts +0 -1
- package/dist/validation/protocols/specification.d.ts +0 -1
- package/dist/validation/protocols/testing.d.ts +2 -2
- package/dist/validation/protocols/testing.js +2 -1
- package/dist/validation/protocols/testing.js.map +1 -1
- package/dist/validation/protocols/validation.d.ts +0 -1
- package/dist/validation/schema-integrity.d.ts +11 -1
- package/dist/validation/schema-integrity.js +31 -0
- package/dist/validation/schema-integrity.js.map +1 -1
- package/dist/validation/schema-validator.d.ts +0 -1
- package/dist/validation/validate-ops.d.ts +4 -1
- package/dist/validation/validate-ops.js +79 -2
- package/dist/validation/validate-ops.js.map +1 -1
- package/dist/validation/validation-rules.d.ts +0 -1
- package/dist/validation/verification.d.ts +0 -1
- package/dist/verification/evidence-atoms.d.ts +0 -1
- package/dist/verification/gates.d.ts +0 -1
- package/dist/verification/verify-tools.d.ts +0 -1
- package/dist/workgraph/containment.d.ts +0 -1
- package/dist/workgraph/index.d.ts +0 -1
- package/dist/workgraph/relations.d.ts +0 -1
- package/dist/workgraph/reparent-preflight.d.ts +0 -1
- package/dist/workgraph/scaffold-apply.d.ts +0 -1
- package/dist/workgraph/scaffold-plan.d.ts +0 -1
- package/dist/workgraph/scaffold-validate.d.ts +0 -1
- package/dist/workgraph/structure-validation.d.ts +0 -1
- package/dist/worktree/audit.d.ts +0 -1
- package/dist/worktree/effective-head.d.ts +0 -1
- package/dist/worktree/force-unlock.d.ts +0 -1
- package/dist/worktree/in-use-probe.d.ts +38 -0
- package/dist/worktree/in-use-probe.js +112 -0
- package/dist/worktree/in-use-probe.js.map +1 -0
- package/dist/worktree/isolation.d.ts +0 -1
- package/dist/worktree/list.d.ts +64 -45
- package/dist/worktree/list.js +182 -113
- package/dist/worktree/list.js.map +1 -1
- package/dist/worktree/merged-cleanup.d.ts +63 -0
- package/dist/worktree/merged-cleanup.js +576 -0
- package/dist/worktree/merged-cleanup.js.map +1 -0
- package/dist/worktree/prune.d.ts +29 -37
- package/dist/worktree/prune.js +155 -153
- package/dist/worktree/prune.js.map +1 -1
- package/dist/worktree/sentinel-index.d.ts +29 -1
- package/dist/worktree/sentinel-index.js +39 -0
- package/dist/worktree/sentinel-index.js.map +1 -1
- package/dist/worktree/worktree-adopt.d.ts +1 -14
- package/dist/worktree/worktree-adopt.js +2 -17
- package/dist/worktree/worktree-adopt.js.map +1 -1
- package/dist/worktree-export.d.ts +0 -1
- package/migrations/drizzle-cleo-project/20261105120000_t14218-guard-triggers-compare-old/migration.sql +50 -0
- package/migrations/drizzle-cleo-project/20261106100000_t14267-cancel-kinds/migration.sql +19 -0
- package/migrations/drizzle-cleo-project/20261106140000_t14327-session-injection-version/migration.sql +12 -0
- package/migrations/drizzle-cleo-project/20261107090000_t14288-conduit-doc-metadata/migration.sql +36 -0
- package/migrations/drizzle-cleo-project/20261107120000_t14268-retire-active/migration.sql +38 -0
- package/migrations/drizzle-cleo-project/20261109120000_t14311-retire-ivtr-state/migration.sql +38 -0
- package/migrations/sync-journal/20261106120000_t14335-uid-alias-new-bfp/migration.sql +17 -0
- package/package.json +12 -12
- package/schemas/config.schema.json +129 -2
- package/schemas/project-context.schema.json +35 -6
- package/templates/CLEO-INJECTION.md +8 -19
- package/templates/CLEO-REFERENCE.md +33 -6
- package/templates/cleo-gitignore +3 -4
- package/templates/config.template.json +1 -1
- package/templates/git-hooks/legacy-hashes.json +6 -1
- package/templates/git-hooks/post-checkout +28 -0
- package/templates/git-hooks/post-commit +27 -0
- package/templates/git-hooks/post-merge +38 -18
- package/templates/git-hooks/post-rewrite +27 -0
- package/templates/git-hooks/pre-commit +43 -11
- package/templates/workflows/README.md +1 -1
- package/templates/workflows/release-prepare.yml.tmpl +9 -88
- package/dist/adapters/adapter-registry.d.ts.map +0 -1
- package/dist/adapters/discovery.d.ts.map +0 -1
- package/dist/adapters/index.d.ts.map +0 -1
- package/dist/adapters/manager.d.ts.map +0 -1
- package/dist/admin/export-tasks.d.ts.map +0 -1
- package/dist/admin/export.d.ts.map +0 -1
- package/dist/admin/help.d.ts.map +0 -1
- package/dist/admin/import-tasks.d.ts.map +0 -1
- package/dist/admin/import.d.ts.map +0 -1
- package/dist/admin/index.d.ts.map +0 -1
- package/dist/admin/ops.d.ts.map +0 -1
- package/dist/adrs/find.d.ts.map +0 -1
- package/dist/adrs/index.d.ts.map +0 -1
- package/dist/adrs/link-pipeline.d.ts.map +0 -1
- package/dist/adrs/list.d.ts.map +0 -1
- package/dist/adrs/parse.d.ts.map +0 -1
- package/dist/adrs/show.d.ts.map +0 -1
- package/dist/adrs/sync.d.ts.map +0 -1
- package/dist/adrs/types.d.ts.map +0 -1
- package/dist/adrs/validate.d.ts.map +0 -1
- package/dist/agents/agent-capacity-tracker.d.ts.map +0 -1
- package/dist/agents/capacity.d.ts.map +0 -1
- package/dist/agents/execution-learning.d.ts.map +0 -1
- package/dist/agents/health-monitor.d.ts.map +0 -1
- package/dist/agents/index.d.ts.map +0 -1
- package/dist/agents/install-pipeline.d.ts.map +0 -1
- package/dist/agents/invoke-meta-agent.d.ts.map +0 -1
- package/dist/agents/public-api.d.ts.map +0 -1
- package/dist/agents/registry.d.ts.map +0 -1
- package/dist/agents/resolveAgentTemplates.d.ts.map +0 -1
- package/dist/agents/retry.d.ts.map +0 -1
- package/dist/agents/scaffold.d.ts.map +0 -1
- package/dist/agents/seed-install.d.ts.map +0 -1
- package/dist/agents/variable-substitution.d.ts.map +0 -1
- package/dist/agents/work-loop.d.ts.map +0 -1
- package/dist/audit/reconstruct.d.ts.map +0 -1
- package/dist/audit-prune.d.ts.map +0 -1
- package/dist/audit.d.ts.map +0 -1
- package/dist/backfill/index.d.ts.map +0 -1
- package/dist/bootstrap.d.ts.map +0 -1
- package/dist/brain-tools/brain-fetch.d.ts.map +0 -1
- package/dist/brain-tools/brain-observe.d.ts.map +0 -1
- package/dist/brain-tools/brain-search.d.ts.map +0 -1
- package/dist/brain-tools/brain-timeline.d.ts.map +0 -1
- package/dist/brain-tools/build-retrieval-bundle.d.ts.map +0 -1
- package/dist/brain-tools/index.d.ts.map +0 -1
- package/dist/caamp/adapter.d.ts.map +0 -1
- package/dist/caamp/capability-check.d.ts.map +0 -1
- package/dist/caamp/index.d.ts.map +0 -1
- package/dist/caamp-export.d.ts.map +0 -1
- package/dist/caamp-init.d.ts.map +0 -1
- package/dist/changesets/index.d.ts.map +0 -1
- package/dist/changesets/parse-frontmatter.d.ts.map +0 -1
- package/dist/changesets/parser.d.ts.map +0 -1
- package/dist/changesets/writer.d.ts.map +0 -1
- package/dist/check/index.d.ts.map +0 -1
- package/dist/check/pr-gate.d.ts.map +0 -1
- package/dist/cleo.d.ts.map +0 -1
- package/dist/cloud/auto-sync-command-entry.d.ts.map +0 -1
- package/dist/cloud/auto-sync-command.d.ts.map +0 -1
- package/dist/cloud/auto-sync.d.ts.map +0 -1
- package/dist/cloud/crypto.d.ts.map +0 -1
- package/dist/cloud/doc-bytes.d.ts.map +0 -1
- package/dist/cloud/http.d.ts.map +0 -1
- package/dist/cloud/index.d.ts.map +0 -1
- package/dist/cloud/journal-tallies.d.ts.map +0 -1
- package/dist/cloud/journal.d.ts.map +0 -1
- package/dist/cloud/keys.d.ts.map +0 -1
- package/dist/cloud/manifest-check.d.ts.map +0 -1
- package/dist/cloud/nexus-attach.d.ts.map +0 -1
- package/dist/cloud/nexus-auth.d.ts.map +0 -1
- package/dist/cloud/nexus-cloud-activity.d.ts.map +0 -1
- package/dist/cloud/nexus-cloud-conflicts.d.ts.map +0 -1
- package/dist/cloud/nexus-cloud-device-overview.d.ts.map +0 -1
- package/dist/cloud/nexus-cloud-journal-activity.d.ts.map +0 -1
- package/dist/cloud/nexus-cloud-status.d.ts.map +0 -1
- package/dist/cloud/nexus-cloud.d.ts.map +0 -1
- package/dist/cloud/nexus-credentials.d.ts.map +0 -1
- package/dist/cloud/nexus-device.d.ts.map +0 -1
- package/dist/cloud/nexus-enrol.d.ts.map +0 -1
- package/dist/cloud/nexus-first-run.d.ts.map +0 -1
- package/dist/cloud/nexus-home.d.ts.map +0 -1
- package/dist/cloud/nexus-link.d.ts.map +0 -1
- package/dist/cloud/nexus-logout.d.ts.map +0 -1
- package/dist/cloud/nexus-presence-refresh.d.ts.map +0 -1
- package/dist/cloud/nexus-project-history.d.ts.map +0 -1
- package/dist/cloud/nexus-project-names.d.ts.map +0 -1
- package/dist/cloud/nexus-vault-keys.d.ts.map +0 -1
- package/dist/cloud/nexus-vault-state.d.ts.map +0 -1
- package/dist/cloud/nexus-vault.d.ts.map +0 -1
- package/dist/cloud/presence.d.ts.map +0 -1
- package/dist/cloud/projects.d.ts.map +0 -1
- package/dist/cloud/replica-rebind.d.ts.map +0 -1
- package/dist/cloud/secret-seal.d.ts.map +0 -1
- package/dist/cloud/signing.d.ts.map +0 -1
- package/dist/cloud/streams.d.ts.map +0 -1
- package/dist/cloud/uuidv7.d.ts.map +0 -1
- package/dist/code/engine-ops.d.ts.map +0 -1
- package/dist/code/index.d.ts.map +0 -1
- package/dist/code/outline.d.ts.map +0 -1
- package/dist/code/parser.d.ts.map +0 -1
- package/dist/code/search.d.ts.map +0 -1
- package/dist/code/unfold.d.ts.map +0 -1
- package/dist/codebase-map/analyzers/architecture.d.ts.map +0 -1
- package/dist/codebase-map/analyzers/concerns.d.ts.map +0 -1
- package/dist/codebase-map/analyzers/conventions.d.ts.map +0 -1
- package/dist/codebase-map/analyzers/integrations.d.ts.map +0 -1
- package/dist/codebase-map/analyzers/stack.d.ts.map +0 -1
- package/dist/codebase-map/analyzers/structure.d.ts.map +0 -1
- package/dist/codebase-map/analyzers/testing.d.ts.map +0 -1
- package/dist/codebase-map/index.d.ts.map +0 -1
- package/dist/codebase-map/store.d.ts.map +0 -1
- package/dist/codebase-map/summary.d.ts.map +0 -1
- package/dist/compliance/index.d.ts.map +0 -1
- package/dist/compliance/protocol-enforcement.d.ts.map +0 -1
- package/dist/compliance/protocol-rules.d.ts.map +0 -1
- package/dist/compliance/protocol-types.d.ts.map +0 -1
- package/dist/compliance/store.d.ts.map +0 -1
- package/dist/conduit/cloud-endpoint.d.ts.map +0 -1
- package/dist/conduit/conduit-client.d.ts.map +0 -1
- package/dist/conduit/delivery-router.d.ts.map +0 -1
- package/dist/conduit/factory.d.ts.map +0 -1
- package/dist/conduit/http-transport.d.ts.map +0 -1
- package/dist/conduit/index.d.ts.map +0 -1
- package/dist/conduit/local-transport.d.ts.map +0 -1
- package/dist/conduit/local-tui-adapter.d.ts.map +0 -1
- package/dist/conduit/ops.d.ts +0 -42
- package/dist/conduit/ops.d.ts.map +0 -1
- package/dist/conduit/ops.js +0 -16
- package/dist/conduit/ops.js.map +0 -1
- package/dist/conduit/sse-transport.d.ts.map +0 -1
- package/dist/config/build-config.d.ts.map +0 -1
- package/dist/config/config-repair.d.ts.map +0 -1
- package/dist/config/engine-ops.d.ts.map +0 -1
- package/dist/config/registry.d.ts.map +0 -1
- package/dist/config.d.ts.map +0 -1
- package/dist/constants.d.ts.map +0 -1
- package/dist/context/index.d.ts.map +0 -1
- package/dist/contracts.d.ts.map +0 -1
- package/dist/core-paths.d.ts.map +0 -1
- package/dist/crypto/credentials.d.ts.map +0 -1
- package/dist/db/index.d.ts.map +0 -1
- package/dist/decide/audit.d.ts.map +0 -1
- package/dist/decide/bench/dataset.d.ts.map +0 -1
- package/dist/decide/bench/index.d.ts.map +0 -1
- package/dist/decide/bench/metrics.d.ts.map +0 -1
- package/dist/decide/bench/operation.d.ts.map +0 -1
- package/dist/decide/bench/profiles.d.ts.map +0 -1
- package/dist/decide/bench/questions.d.ts.map +0 -1
- package/dist/decide/bench/report.d.ts.map +0 -1
- package/dist/decide/bench/runner.d.ts.map +0 -1
- package/dist/decide/bench/source.d.ts.map +0 -1
- package/dist/decide/bench/spot-check.d.ts.map +0 -1
- package/dist/decide/bench/stats.d.ts.map +0 -1
- package/dist/decide/bench/types.d.ts.map +0 -1
- package/dist/decide/budget.d.ts.map +0 -1
- package/dist/decide/cache.d.ts.map +0 -1
- package/dist/decide/client.d.ts.map +0 -1
- package/dist/decide/credentials.d.ts.map +0 -1
- package/dist/decide/index.d.ts.map +0 -1
- package/dist/decide/jev-wire.d.ts.map +0 -1
- package/dist/decide/operations.d.ts.map +0 -1
- package/dist/decide/provider-state.d.ts.map +0 -1
- package/dist/decide/provider.d.ts.map +0 -1
- package/dist/decide/providers.d.ts.map +0 -1
- package/dist/decide/site.d.ts.map +0 -1
- package/dist/decide/sites/list.d.ts.map +0 -1
- package/dist/decide/sites/registry.d.ts.map +0 -1
- package/dist/decide/spend.d.ts.map +0 -1
- package/dist/decide/transport.d.ts.map +0 -1
- package/dist/decide/wizard.d.ts.map +0 -1
- package/dist/deriver/consumer.d.ts.map +0 -1
- package/dist/deriver/deriver.d.ts.map +0 -1
- package/dist/deriver/enqueue.d.ts.map +0 -1
- package/dist/deriver/index.d.ts.map +0 -1
- package/dist/deriver/queue-manager.d.ts.map +0 -1
- package/dist/deriver/status.d.ts.map +0 -1
- package/dist/diagnostics/engine-ops.d.ts.map +0 -1
- package/dist/diagnostics/index.d.ts.map +0 -1
- package/dist/discovery.d.ts.map +0 -1
- package/dist/dispatch/config-domain-handler.d.ts.map +0 -1
- package/dist/dispatch/contracts/derive-output-contract.d.ts.map +0 -1
- package/dist/dispatch/contracts/ensures-schema.d.ts.map +0 -1
- package/dist/dispatch/contracts/input-contracts.d.ts.map +0 -1
- package/dist/dispatch/contracts/output-contracts.d.ts.map +0 -1
- package/dist/dispatch/describe-operation.d.ts.map +0 -1
- package/dist/dispatch/mutate-projection.d.ts.map +0 -1
- package/dist/dispatch/mvi-projection.d.ts.map +0 -1
- package/dist/dispatch/projection.d.ts.map +0 -1
- package/dist/dispatch/suggested-next.d.ts.map +0 -1
- package/dist/dispatch/validation.d.ts.map +0 -1
- package/dist/docs/adr-allocator.d.ts.map +0 -1
- package/dist/docs/blob-consolidation.d.ts.map +0 -1
- package/dist/docs/build-provenance-graph.d.ts.map +0 -1
- package/dist/docs/conduit-history-backfill.d.ts.map +0 -1
- package/dist/docs/derive-links.d.ts.map +0 -1
- package/dist/docs/display-alias.d.ts.map +0 -1
- package/dist/docs/docs-audit.d.ts.map +0 -1
- package/dist/docs/docs-generator.d.ts.map +0 -1
- package/dist/docs/docs-inconsistency-detector.d.ts.map +0 -1
- package/dist/docs/docs-ops.d.ts.map +0 -1
- package/dist/docs/docs-read-model.d.ts.map +0 -1
- package/dist/docs/docs-update.d.ts.map +0 -1
- package/dist/docs/doctor.d.ts.map +0 -1
- package/dist/docs/document-edges.d.ts.map +0 -1
- package/dist/docs/export-document.d.ts.map +0 -1
- package/dist/docs/fetch-result.d.ts.map +0 -1
- package/dist/docs/import/attachment-store-accessor.d.ts.map +0 -1
- package/dist/docs/import/audit.d.ts.map +0 -1
- package/dist/docs/import/dedup.d.ts.map +0 -1
- package/dist/docs/import/import-orchestrator.d.ts.map +0 -1
- package/dist/docs/import/scanner.d.ts.map +0 -1
- package/dist/docs/import/slug.d.ts.map +0 -1
- package/dist/docs/index.d.ts.map +0 -1
- package/dist/docs/legacy-doc-migration.d.ts.map +0 -1
- package/dist/docs/migrate-agent-outputs.d.ts.map +0 -1
- package/dist/docs/numbering.d.ts.map +0 -1
- package/dist/docs/projection.d.ts.map +0 -1
- package/dist/docs/publications-store.d.ts.map +0 -1
- package/dist/docs/publish-pr.d.ts.map +0 -1
- package/dist/docs/read-doc.d.ts.map +0 -1
- package/dist/docs/section-leases.d.ts.map +0 -1
- package/dist/docs/section-merge.d.ts.map +0 -1
- package/dist/docs/section-write-path.d.ts.map +0 -1
- package/dist/docs/similarity-check.d.ts.map +0 -1
- package/dist/docs/slug-allocator.d.ts.map +0 -1
- package/dist/docs/slug-normalize.d.ts.map +0 -1
- package/dist/docs/stats.d.ts.map +0 -1
- package/dist/docs/supersede.d.ts.map +0 -1
- package/dist/docs/triage.d.ts.map +0 -1
- package/dist/docs/validate-body.d.ts.map +0 -1
- package/dist/docs/version-ssot.d.ts.map +0 -1
- package/dist/docs/wikilinks.d.ts.map +0 -1
- package/dist/docs/writer-registry.d.ts.map +0 -1
- package/dist/doctor/acceptance-drift.d.ts.map +0 -1
- package/dist/doctor/container-reaper.d.ts.map +0 -1
- package/dist/doctor/db-substrate.d.ts.map +0 -1
- package/dist/doctor/dependency-cycles.d.ts.map +0 -1
- package/dist/doctor/doctor-project.d.ts.map +0 -1
- package/dist/doctor/index.d.ts.map +0 -1
- package/dist/doctor/invariant-audit-render.d.ts.map +0 -1
- package/dist/doctor/invariant-audit.d.ts.map +0 -1
- package/dist/doctor/knowledge-summary.d.ts.map +0 -1
- package/dist/doctor/knowledge.d.ts.map +0 -1
- package/dist/doctor/legacy-backups.d.ts.map +0 -1
- package/dist/doctor/legacy-reaper.d.ts.map +0 -1
- package/dist/doctor/malformed-task-ids.d.ts.map +0 -1
- package/dist/doctor/migrations.d.ts.map +0 -1
- package/dist/doctor/nexus-schema-residency.d.ts.map +0 -1
- package/dist/doctor/orphan-ac-bindings.d.ts.map +0 -1
- package/dist/doctor/pragma-ssot.d.ts.map +0 -1
- package/dist/doctor/project-identity.d.ts.map +0 -1
- package/dist/doctor/projects.d.ts.map +0 -1
- package/dist/doctor/row-identity-refill.d.ts.map +0 -1
- package/dist/doctor/row-identity.d.ts.map +0 -1
- package/dist/doctor/saga-audit.d.ts.map +0 -1
- package/dist/doctor/superseded-store.d.ts.map +0 -1
- package/dist/doctor/sync-repair.d.ts.map +0 -1
- package/dist/doctor/sync-sealer.d.ts.map +0 -1
- package/dist/doctor/sync-triggers.d.ts.map +0 -1
- package/dist/doctor/system-health.d.ts.map +0 -1
- package/dist/doctor/twin-collapse.d.ts.map +0 -1
- package/dist/doctor/worktree-orphans.d.ts.map +0 -1
- package/dist/doctor/worktree-stores.d.ts.map +0 -1
- package/dist/engine/engine-ops.d.ts.map +0 -1
- package/dist/engine/gate-validators.d.ts.map +0 -1
- package/dist/engine-result.d.ts.map +0 -1
- package/dist/error-catalog.d.ts.map +0 -1
- package/dist/error-registry.d.ts.map +0 -1
- package/dist/errors-to-engine.d.ts.map +0 -1
- package/dist/errors.d.ts.map +0 -1
- package/dist/events/event-bus.d.ts.map +0 -1
- package/dist/formatters/index.d.ts.map +0 -1
- package/dist/formatters/tree.d.ts.map +0 -1
- package/dist/formatters/waves.d.ts.map +0 -1
- package/dist/gateway-client/client.d.ts.map +0 -1
- package/dist/gateway-client/generated/client/client.gen.d.ts.map +0 -1
- package/dist/gateway-client/generated/client/index.d.ts.map +0 -1
- package/dist/gateway-client/generated/client/types.gen.d.ts.map +0 -1
- package/dist/gateway-client/generated/client/utils.gen.d.ts.map +0 -1
- package/dist/gateway-client/generated/client.gen.d.ts.map +0 -1
- package/dist/gateway-client/generated/core/auth.gen.d.ts.map +0 -1
- package/dist/gateway-client/generated/core/bodySerializer.gen.d.ts.map +0 -1
- package/dist/gateway-client/generated/core/params.gen.d.ts.map +0 -1
- package/dist/gateway-client/generated/core/pathSerializer.gen.d.ts.map +0 -1
- package/dist/gateway-client/generated/core/queryKeySerializer.gen.d.ts.map +0 -1
- package/dist/gateway-client/generated/core/serverSentEvents.gen.d.ts.map +0 -1
- package/dist/gateway-client/generated/core/types.gen.d.ts.map +0 -1
- package/dist/gateway-client/generated/core/utils.gen.d.ts.map +0 -1
- package/dist/gateway-client/generated/index.d.ts.map +0 -1
- package/dist/gateway-client/generated/namespaces.gen.d.ts.map +0 -1
- package/dist/gateway-client/generated/sdk.gen.d.ts.map +0 -1
- package/dist/gateway-client/generated/types.gen.d.ts.map +0 -1
- package/dist/gateway-client/index.d.ts.map +0 -1
- package/dist/gc/cleanup.d.ts.map +0 -1
- package/dist/gc/daemon-entry.d.ts.map +0 -1
- package/dist/gc/daemon.d.ts.map +0 -1
- package/dist/gc/gc-subsystem.d.ts.map +0 -1
- package/dist/gc/index.d.ts.map +0 -1
- package/dist/gc/janitor.d.ts.map +0 -1
- package/dist/gc/runner.d.ts.map +0 -1
- package/dist/gc/state.d.ts.map +0 -1
- package/dist/gc/transcript.d.ts.map +0 -1
- package/dist/git/base-ref.d.ts.map +0 -1
- package/dist/git/bounded-git.d.ts.map +0 -1
- package/dist/git/hooks-install.d.ts.map +0 -1
- package/dist/git/work-tree.d.ts.map +0 -1
- package/dist/git-shim-export.d.ts.map +0 -1
- package/dist/go/driver.d.ts.map +0 -1
- package/dist/go/index.d.ts.map +0 -1
- package/dist/goal/close.d.ts.map +0 -1
- package/dist/goal/draft.d.ts.map +0 -1
- package/dist/goal/index.d.ts.map +0 -1
- package/dist/goal/runtime.d.ts.map +0 -1
- package/dist/goal/status.d.ts.map +0 -1
- package/dist/goal/store.d.ts.map +0 -1
- package/dist/harness/ask-enforce.d.ts.map +0 -1
- package/dist/harness/index.d.ts.map +0 -1
- package/dist/harness/spawn-provider-selection.d.ts.map +0 -1
- package/dist/harness/types.d.ts.map +0 -1
- package/dist/hooks/engine-ops.d.ts.map +0 -1
- package/dist/hooks/handlers/agent-hooks.d.ts.map +0 -1
- package/dist/hooks/handlers/conduit-hooks.d.ts.map +0 -1
- package/dist/hooks/handlers/context-hooks.d.ts.map +0 -1
- package/dist/hooks/handlers/error-hooks.d.ts.map +0 -1
- package/dist/hooks/handlers/file-hooks.d.ts.map +0 -1
- package/dist/hooks/handlers/handler-helpers.d.ts.map +0 -1
- package/dist/hooks/handlers/index.d.ts.map +0 -1
- package/dist/hooks/handlers/intelligence-hooks.d.ts.map +0 -1
- package/dist/hooks/handlers/memory-bridge-refresh.d.ts.map +0 -1
- package/dist/hooks/handlers/notification-hooks.d.ts.map +0 -1
- package/dist/hooks/handlers/precompact.d.ts.map +0 -1
- package/dist/hooks/handlers/session-hooks.d.ts.map +0 -1
- package/dist/hooks/handlers/task-hooks.d.ts.map +0 -1
- package/dist/hooks/handlers/watchdog-hooks.d.ts.map +0 -1
- package/dist/hooks/handlers/work-capture-hooks.d.ts.map +0 -1
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/payload-schemas.d.ts.map +0 -1
- package/dist/hooks/project-runner.d.ts.map +0 -1
- package/dist/hooks/project-state.d.ts.map +0 -1
- package/dist/hooks/provider-hooks.d.ts.map +0 -1
- package/dist/hooks/registry.d.ts.map +0 -1
- package/dist/hooks/release-gate.d.ts.map +0 -1
- package/dist/hooks/types.d.ts.map +0 -1
- package/dist/hooks.d.ts.map +0 -1
- package/dist/hygiene/validate-spawn-readiness.d.ts.map +0 -1
- package/dist/identity/cleo-identity.d.ts.map +0 -1
- package/dist/identity/index.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/init/engine-ops.d.ts.map +0 -1
- package/dist/init/index.d.ts.map +0 -1
- package/dist/init/scaffold-workflows.d.ts.map +0 -1
- package/dist/init/upgrade-workflows.d.ts.map +0 -1
- package/dist/init.d.ts.map +0 -1
- package/dist/inject/index.d.ts.map +0 -1
- package/dist/injection.d.ts.map +0 -1
- package/dist/intelligence/adaptive-validation.d.ts.map +0 -1
- package/dist/intelligence/impact.d.ts.map +0 -1
- package/dist/intelligence/index.d.ts.map +0 -1
- package/dist/intelligence/patterns.d.ts.map +0 -1
- package/dist/intelligence/prediction.d.ts.map +0 -1
- package/dist/intelligence/types.d.ts.map +0 -1
- package/dist/internal.d.ts.map +0 -1
- package/dist/issue/create.d.ts.map +0 -1
- package/dist/issue/diagnostics.d.ts.map +0 -1
- package/dist/issue/index.d.ts.map +0 -1
- package/dist/issue/template-parser.d.ts.map +0 -1
- package/dist/json-schema-validator.d.ts.map +0 -1
- package/dist/lafs-export.d.ts.map +0 -1
- package/dist/lib/concurrency.d.ts.map +0 -1
- package/dist/lib/error-message.d.ts.map +0 -1
- package/dist/lib/index.d.ts.map +0 -1
- package/dist/lib/retry.d.ts.map +0 -1
- package/dist/lib/suppress-sqlite-warning.d.ts.map +0 -1
- package/dist/lib/tree-sitter-languages.d.ts.map +0 -1
- package/dist/lifecycle/consolidate-rcasd.d.ts.map +0 -1
- package/dist/lifecycle/effective-stage.d.ts.map +0 -1
- package/dist/lifecycle/engine-ops.d.ts.map +0 -1
- package/dist/lifecycle/evidence.d.ts.map +0 -1
- package/dist/lifecycle/frontmatter.d.ts.map +0 -1
- package/dist/lifecycle/index.d.ts.map +0 -1
- package/dist/lifecycle/infra-touch.d.ts +0 -135
- package/dist/lifecycle/infra-touch.d.ts.map +0 -1
- package/dist/lifecycle/infra-touch.js +0 -227
- package/dist/lifecycle/infra-touch.js.map +0 -1
- package/dist/lifecycle/ivtr-loop.d.ts +0 -234
- package/dist/lifecycle/ivtr-loop.d.ts.map +0 -1
- package/dist/lifecycle/ivtr-loop.js +0 -396
- package/dist/lifecycle/ivtr-loop.js.map +0 -1
- package/dist/lifecycle/kind-requirements.d.ts.map +0 -1
- package/dist/lifecycle/pipeline.d.ts.map +0 -1
- package/dist/lifecycle/rcasd-index.d.ts.map +0 -1
- package/dist/lifecycle/rcasd-paths.d.ts.map +0 -1
- package/dist/lifecycle/resume.d.ts.map +0 -1
- package/dist/lifecycle/rollup.d.ts.map +0 -1
- package/dist/lifecycle/stage-artifacts.d.ts.map +0 -1
- package/dist/lifecycle/stage-guidance.d.ts.map +0 -1
- package/dist/lifecycle/stages.d.ts.map +0 -1
- package/dist/lifecycle/state-machine.d.ts.map +0 -1
- package/dist/lifecycle/status.d.ts.map +0 -1
- package/dist/lifecycle/validator/index.d.ts.map +0 -1
- package/dist/lifecycle/validator/runtime.d.ts.map +0 -1
- package/dist/lifecycle/verification/explain.d.ts.map +0 -1
- package/dist/lifecycle/verification/satisfies-validator.d.ts.map +0 -1
- package/dist/llm/ai-sdk-warnings.d.ts.map +0 -1
- package/dist/llm/api-mode.d.ts.map +0 -1
- package/dist/llm/api.d.ts.map +0 -1
- package/dist/llm/auxiliary-fallback.d.ts.map +0 -1
- package/dist/llm/backend.d.ts.map +0 -1
- package/dist/llm/caching.d.ts.map +0 -1
- package/dist/llm/catalog-cache.d.ts.map +0 -1
- package/dist/llm/catalog-model-resolver.d.ts.map +0 -1
- package/dist/llm/catalog-resolver.d.ts.map +0 -1
- package/dist/llm/catalog-seeder.d.ts.map +0 -1
- package/dist/llm/cli-ops.d.ts.map +0 -1
- package/dist/llm/complexity-classifier.d.ts.map +0 -1
- package/dist/llm/concrete-executor.d.ts.map +0 -1
- package/dist/llm/concrete-session.d.ts.map +0 -1
- package/dist/llm/context-engines/index.d.ts.map +0 -1
- package/dist/llm/context-engines/rule-based-truncation.d.ts.map +0 -1
- package/dist/llm/conversation.d.ts.map +0 -1
- package/dist/llm/credential-pool.d.ts.map +0 -1
- package/dist/llm/credential-removal.d.ts.map +0 -1
- package/dist/llm/credential-remove-entry.d.ts.map +0 -1
- package/dist/llm/credential-seeders/claude-code-seeder.d.ts.map +0 -1
- package/dist/llm/credential-seeders/cleo-pkce-seeder.d.ts.map +0 -1
- package/dist/llm/credential-seeders/codex-cli-seeder.d.ts.map +0 -1
- package/dist/llm/credential-seeders/env-seeder.d.ts.map +0 -1
- package/dist/llm/credential-seeders/gemini-cli-seeder.d.ts.map +0 -1
- package/dist/llm/credential-seeders/gh-cli-seeder.d.ts.map +0 -1
- package/dist/llm/credential-seeders/index.d.ts.map +0 -1
- package/dist/llm/credential-seeders/register.d.ts.map +0 -1
- package/dist/llm/credential-writeback.d.ts.map +0 -1
- package/dist/llm/credentials-store.d.ts.map +0 -1
- package/dist/llm/credentials.d.ts.map +0 -1
- package/dist/llm/cross-provider-selector.d.ts.map +0 -1
- package/dist/llm/entity-ops.d.ts.map +0 -1
- package/dist/llm/error-classifier.d.ts.map +0 -1
- package/dist/llm/executor-factory.d.ts.map +0 -1
- package/dist/llm/fallback-model.d.ts.map +0 -1
- package/dist/llm/generated/provider-profiles.d.ts.map +0 -1
- package/dist/llm/global-config-migration.d.ts.map +0 -1
- package/dist/llm/history-adapters.d.ts.map +0 -1
- package/dist/llm/image-routing.d.ts.map +0 -1
- package/dist/llm/index.d.ts.map +0 -1
- package/dist/llm/legacy-flat-key-import.d.ts.map +0 -1
- package/dist/llm/llm-queue-admit.d.ts.map +0 -1
- package/dist/llm/local-inference-probe.d.ts.map +0 -1
- package/dist/llm/local-model-fit.d.ts.map +0 -1
- package/dist/llm/message-utils.d.ts.map +0 -1
- package/dist/llm/model-metadata.d.ts.map +0 -1
- package/dist/llm/model-runner.d.ts.map +0 -1
- package/dist/llm/oauth/device-code.d.ts.map +0 -1
- package/dist/llm/oauth/google-pkce.d.ts.map +0 -1
- package/dist/llm/oauth/pkce.d.ts.map +0 -1
- package/dist/llm/onboarding/front-door.d.ts.map +0 -1
- package/dist/llm/onboarding/login-engine.d.ts.map +0 -1
- package/dist/llm/pi/gondolin-loader.d.ts.map +0 -1
- package/dist/llm/pi/index.d.ts.map +0 -1
- package/dist/llm/pi/pi-agent-adapter.d.ts.map +0 -1
- package/dist/llm/pi/pi-errors.d.ts.map +0 -1
- package/dist/llm/pi/pi-execution-env.d.ts.map +0 -1
- package/dist/llm/pi/pi-gondolin-env.d.ts.map +0 -1
- package/dist/llm/pi/pi-session-storage.d.ts.map +0 -1
- package/dist/llm/pi/pi-stream-fn.d.ts.map +0 -1
- package/dist/llm/pi/pi-tool-bridge.d.ts.map +0 -1
- package/dist/llm/pi/pi-types.d.ts.map +0 -1
- package/dist/llm/pi/resolve-execution-env.d.ts.map +0 -1
- package/dist/llm/plugin-facade.d.ts.map +0 -1
- package/dist/llm/prompt-caching.d.ts.map +0 -1
- package/dist/llm/provider-registry/builtin/anthropic.d.ts.map +0 -1
- package/dist/llm/provider-registry/builtin/bedrock.d.ts.map +0 -1
- package/dist/llm/provider-registry/builtin/gemini.d.ts.map +0 -1
- package/dist/llm/provider-registry/builtin/kimi-code.d.ts.map +0 -1
- package/dist/llm/provider-registry/builtin/moonshot.d.ts.map +0 -1
- package/dist/llm/provider-registry/builtin/ollama.d.ts.map +0 -1
- package/dist/llm/provider-registry/builtin/openai.d.ts.map +0 -1
- package/dist/llm/provider-registry/builtin/openrouter.d.ts.map +0 -1
- package/dist/llm/provider-registry/builtin/xai.d.ts.map +0 -1
- package/dist/llm/provider-registry/index.d.ts.map +0 -1
- package/dist/llm/provider-registry/loader.d.ts.map +0 -1
- package/dist/llm/provider-registry/provider-alias.d.ts.map +0 -1
- package/dist/llm/provider-registry/provider-defs.d.ts.map +0 -1
- package/dist/llm/provider-registry/provider-seed.d.ts.map +0 -1
- package/dist/llm/rate-limit-guard.d.ts.map +0 -1
- package/dist/llm/registry.d.ts.map +0 -1
- package/dist/llm/request-builder.d.ts.map +0 -1
- package/dist/llm/role-executor.d.ts.map +0 -1
- package/dist/llm/role-resolver.d.ts.map +0 -1
- package/dist/llm/runtime.d.ts.map +0 -1
- package/dist/llm/sealed-credential.d.ts.map +0 -1
- package/dist/llm/session-factory.d.ts.map +0 -1
- package/dist/llm/stable-device-id.d.ts.map +0 -1
- package/dist/llm/structured-output.d.ts.map +0 -1
- package/dist/llm/system-key.d.ts.map +0 -1
- package/dist/llm/system-of-use-registry.d.ts.map +0 -1
- package/dist/llm/system-resolver.d.ts.map +0 -1
- package/dist/llm/think-scrubber.d.ts.map +0 -1
- package/dist/llm/thinking-budget.d.ts.map +0 -1
- package/dist/llm/tool-loop.d.ts.map +0 -1
- package/dist/llm/transports/anthropic-client-factory.d.ts.map +0 -1
- package/dist/llm/transports/anthropic.d.ts.map +0 -1
- package/dist/llm/transports/bedrock.d.ts.map +0 -1
- package/dist/llm/transports/chat-completions.d.ts.map +0 -1
- package/dist/llm/transports/codex-oauth-headers.d.ts.map +0 -1
- package/dist/llm/transports/codex-responses.d.ts.map +0 -1
- package/dist/llm/transports/gemini.d.ts.map +0 -1
- package/dist/llm/transports/index.d.ts.map +0 -1
- package/dist/llm/transports/ollama.d.ts.map +0 -1
- package/dist/llm/types-config.d.ts.map +0 -1
- package/dist/llm/types.d.ts.map +0 -1
- package/dist/llm/usage-pricing.d.ts.map +0 -1
- package/dist/logger.d.ts.map +0 -1
- package/dist/memory/attention-consolidate.d.ts.map +0 -1
- package/dist/memory/attention.d.ts.map +0 -1
- package/dist/memory/auto-extract.d.ts.map +0 -1
- package/dist/memory/auto-research.d.ts.map +0 -1
- package/dist/memory/auto-row-quarantine.d.ts.map +0 -1
- package/dist/memory/auto-row-rules.d.ts.map +0 -1
- package/dist/memory/brain-backfill.d.ts.map +0 -1
- package/dist/memory/brain-consolidator.d.ts.map +0 -1
- package/dist/memory/brain-doctor.d.ts.map +0 -1
- package/dist/memory/brain-embedding.d.ts.map +0 -1
- package/dist/memory/brain-export.d.ts.map +0 -1
- package/dist/memory/brain-health-dashboard.d.ts.map +0 -1
- package/dist/memory/brain-host.d.ts.map +0 -1
- package/dist/memory/brain-lifecycle.d.ts.map +0 -1
- package/dist/memory/brain-links.d.ts.map +0 -1
- package/dist/memory/brain-maintenance.d.ts.map +0 -1
- package/dist/memory/brain-migration.d.ts.map +0 -1
- package/dist/memory/brain-noise-detector.d.ts.map +0 -1
- package/dist/memory/brain-page-nodes.d.ts.map +0 -1
- package/dist/memory/brain-plasticity-class.d.ts.map +0 -1
- package/dist/memory/brain-purge.d.ts.map +0 -1
- package/dist/memory/brain-reasoning.d.ts.map +0 -1
- package/dist/memory/brain-reconciler.d.ts.map +0 -1
- package/dist/memory/brain-retrieval.d.ts.map +0 -1
- package/dist/memory/brain-row-types.d.ts.map +0 -1
- package/dist/memory/brain-search.d.ts.map +0 -1
- package/dist/memory/brain-similarity.d.ts.map +0 -1
- package/dist/memory/brain-stdp.d.ts.map +0 -1
- package/dist/memory/brain-stub-prune.d.ts.map +0 -1
- package/dist/memory/brain-sweep-executor.d.ts.map +0 -1
- package/dist/memory/brain-writer-handlers.d.ts.map +0 -1
- package/dist/memory/brain-writer-thread.d.ts.map +0 -1
- package/dist/memory/brain-writer-worker.d.ts.map +0 -1
- package/dist/memory/claude-mem-migration.d.ts.map +0 -1
- package/dist/memory/context-engines/llm-summarizer.d.ts.map +0 -1
- package/dist/memory/decision-contradiction.d.ts.map +0 -1
- package/dist/memory/decision-cross-link.d.ts.map +0 -1
- package/dist/memory/decisions.d.ts.map +0 -1
- package/dist/memory/dialectic-evaluator.d.ts.map +0 -1
- package/dist/memory/dispatch-trace-format.d.ts.map +0 -1
- package/dist/memory/dream-cycle.d.ts.map +0 -1
- package/dist/memory/edge-types.d.ts.map +0 -1
- package/dist/memory/eligibility.d.ts.map +0 -1
- package/dist/memory/embedding-backfill.d.ts.map +0 -1
- package/dist/memory/embedding-local.d.ts.map +0 -1
- package/dist/memory/embedding-queue.d.ts.map +0 -1
- package/dist/memory/embedding-worker.d.ts.map +0 -1
- package/dist/memory/engine-compat.d.ts.map +0 -1
- package/dist/memory/evidence-graph-links.d.ts.map +0 -1
- package/dist/memory/extraction-gate.d.ts.map +0 -1
- package/dist/memory/global-brain.d.ts.map +0 -1
- package/dist/memory/graph-auto-populate.d.ts.map +0 -1
- package/dist/memory/graph-memory-bridge.d.ts.map +0 -1
- package/dist/memory/graph-queries.d.ts.map +0 -1
- package/dist/memory/import-from-provider.d.ts.map +0 -1
- package/dist/memory/index.d.ts.map +0 -1
- package/dist/memory/learnings.d.ts.map +0 -1
- package/dist/memory/lessons-import.d.ts.map +0 -1
- package/dist/memory/lessons.d.ts.map +0 -1
- package/dist/memory/llm-backend-resolver.d.ts.map +0 -1
- package/dist/memory/llm-extraction.d.ts.map +0 -1
- package/dist/memory/manifest-builder.d.ts.map +0 -1
- package/dist/memory/manifest-filter.d.ts.map +0 -1
- package/dist/memory/manifest-identity.d.ts.map +0 -1
- package/dist/memory/manifest-ingestion.d.ts.map +0 -1
- package/dist/memory/memory-bridge.d.ts.map +0 -1
- package/dist/memory/mental-model-injection.d.ts.map +0 -1
- package/dist/memory/mental-model-queue.d.ts.map +0 -1
- package/dist/memory/nexus-plasticity.d.ts.map +0 -1
- package/dist/memory/observation-type-decision.d.ts.map +0 -1
- package/dist/memory/observer-reflector.d.ts.map +0 -1
- package/dist/memory/patterns.d.ts.map +0 -1
- package/dist/memory/pipeline-manifest-sqlite.d.ts.map +0 -1
- package/dist/memory/precompact-flush.d.ts.map +0 -1
- package/dist/memory/promotion-score.d.ts.map +0 -1
- package/dist/memory/public-api.d.ts.map +0 -1
- package/dist/memory/quality-feedback.d.ts.map +0 -1
- package/dist/memory/quality-scoring.d.ts.map +0 -1
- package/dist/memory/recall-ranking.d.ts.map +0 -1
- package/dist/memory/redaction.d.ts.map +0 -1
- package/dist/memory/retrieval/build-retrieval-bundle.d.ts.map +0 -1
- package/dist/memory/retrieval/fetch.d.ts.map +0 -1
- package/dist/memory/retrieval/get-current-session-id.d.ts.map +0 -1
- package/dist/memory/retrieval/log-retrieval.d.ts.map +0 -1
- package/dist/memory/retrieval/observe.d.ts.map +0 -1
- package/dist/memory/retrieval/search.d.ts.map +0 -1
- package/dist/memory/retrieval/telemetry.d.ts.map +0 -1
- package/dist/memory/retrieval/timeline.d.ts.map +0 -1
- package/dist/memory/session-memory.d.ts.map +0 -1
- package/dist/memory/session-narrative.d.ts.map +0 -1
- package/dist/memory/sleep-consolidation.d.ts.map +0 -1
- package/dist/memory/specialists.d.ts.map +0 -1
- package/dist/memory/surprisal-tree.d.ts.map +0 -1
- package/dist/memory/surprisal.d.ts.map +0 -1
- package/dist/memory/temporal-supersession.d.ts.map +0 -1
- package/dist/memory/transcript-extractor.d.ts.map +0 -1
- package/dist/memory/transcript-ingestor.d.ts.map +0 -1
- package/dist/memory/transcript-scanner.d.ts.map +0 -1
- package/dist/memory/watch-stream.d.ts.map +0 -1
- package/dist/metrics/ab-test.d.ts.map +0 -1
- package/dist/metrics/aggregation.d.ts.map +0 -1
- package/dist/metrics/common.d.ts.map +0 -1
- package/dist/metrics/enums.d.ts.map +0 -1
- package/dist/metrics/index.d.ts.map +0 -1
- package/dist/metrics/model-provider-registry.d.ts.map +0 -1
- package/dist/metrics/otel-integration.d.ts.map +0 -1
- package/dist/metrics/provider-detection.d.ts.map +0 -1
- package/dist/metrics/token-estimation.d.ts.map +0 -1
- package/dist/metrics/token-service.d.ts.map +0 -1
- package/dist/migration/agent-outputs.d.ts.map +0 -1
- package/dist/migration/checksum.d.ts.map +0 -1
- package/dist/migration/index.d.ts.map +0 -1
- package/dist/migration/logger.d.ts.map +0 -1
- package/dist/migration/manual/T10165-backfill-adr-index.d.ts.map +0 -1
- package/dist/migration/preflight.d.ts.map +0 -1
- package/dist/migration/state.d.ts.map +0 -1
- package/dist/migration/validate.d.ts.map +0 -1
- package/dist/mvi-helpers.d.ts.map +0 -1
- package/dist/nexus/analyze-orchestrator.d.ts.map +0 -1
- package/dist/nexus/api-contracts.d.ts.map +0 -1
- package/dist/nexus/api-extractors/grpc-extractor.d.ts.map +0 -1
- package/dist/nexus/api-extractors/http-extractor.d.ts.map +0 -1
- package/dist/nexus/api-extractors/index.d.ts.map +0 -1
- package/dist/nexus/api-extractors/matcher.d.ts.map +0 -1
- package/dist/nexus/api-extractors/topic-extractor.d.ts.map +0 -1
- package/dist/nexus/assessment-projection.d.ts.map +0 -1
- package/dist/nexus/assessment-store.d.ts.map +0 -1
- package/dist/nexus/augment.d.ts.map +0 -1
- package/dist/nexus/brief-map.d.ts.map +0 -1
- package/dist/nexus/checkout-nonce.d.ts.map +0 -1
- package/dist/nexus/clusters.d.ts.map +0 -1
- package/dist/nexus/context.d.ts.map +0 -1
- package/dist/nexus/deps.d.ts.map +0 -1
- package/dist/nexus/devices.d.ts.map +0 -1
- package/dist/nexus/diff.d.ts.map +0 -1
- package/dist/nexus/discover.d.ts.map +0 -1
- package/dist/nexus/embeddings.d.ts.map +0 -1
- package/dist/nexus/export.d.ts.map +0 -1
- package/dist/nexus/fleet-status.d.ts.map +0 -1
- package/dist/nexus/flows.d.ts.map +0 -1
- package/dist/nexus/freshness.d.ts.map +0 -1
- package/dist/nexus/gexf-export.d.ts.map +0 -1
- package/dist/nexus/git-state.d.ts.map +0 -1
- package/dist/nexus/graph-manifest.d.ts.map +0 -1
- package/dist/nexus/hash.d.ts.map +0 -1
- package/dist/nexus/hooks-augment.d.ts.map +0 -1
- package/dist/nexus/identity.d.ts.map +0 -1
- package/dist/nexus/impact.d.ts.map +0 -1
- package/dist/nexus/index-health.d.ts.map +0 -1
- package/dist/nexus/index.d.ts.map +0 -1
- package/dist/nexus/knowledge.d.ts.map +0 -1
- package/dist/nexus/legacy-alias.d.ts.map +0 -1
- package/dist/nexus/living-brain.d.ts.map +0 -1
- package/dist/nexus/migrate-json-to-sqlite.d.ts.map +0 -1
- package/dist/nexus/migrations/M-split-graph.d.ts.map +0 -1
- package/dist/nexus/nexus-bridge.d.ts.map +0 -1
- package/dist/nexus/ops.d.ts.map +0 -1
- package/dist/nexus/path-map.d.ts.map +0 -1
- package/dist/nexus/permissions.d.ts.map +0 -1
- package/dist/nexus/pid-lock.d.ts.map +0 -1
- package/dist/nexus/plasticity-queries.d.ts.map +0 -1
- package/dist/nexus/project-activity.d.ts.map +0 -1
- package/dist/nexus/projects-clean.d.ts.map +0 -1
- package/dist/nexus/projects-scan.d.ts.map +0 -1
- package/dist/nexus/query-dsl.d.ts.map +0 -1
- package/dist/nexus/query.d.ts.map +0 -1
- package/dist/nexus/refresh-child.d.ts.map +0 -1
- package/dist/nexus/registry-errors.d.ts.map +0 -1
- package/dist/nexus/registry-host.d.ts.map +0 -1
- package/dist/nexus/registry-hygiene.d.ts.map +0 -1
- package/dist/nexus/registry-roots.d.ts.map +0 -1
- package/dist/nexus/registry.d.ts.map +0 -1
- package/dist/nexus/reindex-on-merge.d.ts.map +0 -1
- package/dist/nexus/route-analysis.d.ts.map +0 -1
- package/dist/nexus/sharing/index.d.ts.map +0 -1
- package/dist/nexus/sigil-sync.d.ts.map +0 -1
- package/dist/nexus/sigil.d.ts.map +0 -1
- package/dist/nexus/source-roots.d.ts.map +0 -1
- package/dist/nexus/store.d.ts.map +0 -1
- package/dist/nexus/stored-roots.d.ts.map +0 -1
- package/dist/nexus/symbol-miss.d.ts.map +0 -1
- package/dist/nexus/symbol-ranking.d.ts.map +0 -1
- package/dist/nexus/task-evidence.d.ts.map +0 -1
- package/dist/nexus/tasks-bridge.d.ts.map +0 -1
- package/dist/nexus/transfer-types.d.ts.map +0 -1
- package/dist/nexus/transfer.d.ts.map +0 -1
- package/dist/nexus/user-profile-hygiene.d.ts.map +0 -1
- package/dist/nexus/user-profile.d.ts.map +0 -1
- package/dist/nexus/wiki-index.d.ts.map +0 -1
- package/dist/nexus/wiki-orchestrator.d.ts.map +0 -1
- package/dist/nexus/workspace.d.ts.map +0 -1
- package/dist/observability/index.d.ts.map +0 -1
- package/dist/observability/log-filter.d.ts.map +0 -1
- package/dist/observability/log-parser.d.ts.map +0 -1
- package/dist/observability/log-reader.d.ts.map +0 -1
- package/dist/observability/types.d.ts.map +0 -1
- package/dist/orchestrate/admission.d.ts.map +0 -1
- package/dist/orchestrate/handoff-ops.d.ts.map +0 -1
- package/dist/orchestrate/include-deps.d.ts.map +0 -1
- package/dist/orchestrate/index.d.ts.map +0 -1
- package/dist/orchestrate/lifecycle-ops.d.ts.map +0 -1
- package/dist/orchestrate/pivot.d.ts.map +0 -1
- package/dist/orchestrate/plan.d.ts.map +0 -1
- package/dist/orchestrate/query-ops.d.ts.map +0 -1
- package/dist/orchestrate/spawn-ops.d.ts.map +0 -1
- package/dist/orchestrate/worker-verify.d.ts.map +0 -1
- package/dist/orchestrate/worktree-complete.d.ts.map +0 -1
- package/dist/orchestration/analyze.d.ts.map +0 -1
- package/dist/orchestration/atomicity.d.ts.map +0 -1
- package/dist/orchestration/bootstrap.d.ts.map +0 -1
- package/dist/orchestration/classify-readiness.d.ts.map +0 -1
- package/dist/orchestration/classify.d.ts.map +0 -1
- package/dist/orchestration/context.d.ts.map +0 -1
- package/dist/orchestration/critical-path.d.ts.map +0 -1
- package/dist/orchestration/dashboard.d.ts.map +0 -1
- package/dist/orchestration/harness-hint.d.ts.map +0 -1
- package/dist/orchestration/index.d.ts.map +0 -1
- package/dist/orchestration/lead-rollup.d.ts.map +0 -1
- package/dist/orchestration/lean-change.d.ts.map +0 -1
- package/dist/orchestration/lean-debt.d.ts.map +0 -1
- package/dist/orchestration/lean-gain.d.ts.map +0 -1
- package/dist/orchestration/owner-decision-readiness.d.ts.map +0 -1
- package/dist/orchestration/parallel.d.ts.map +0 -1
- package/dist/orchestration/protocol-validators.d.ts.map +0 -1
- package/dist/orchestration/psyche-memory-budget.d.ts.map +0 -1
- package/dist/orchestration/registry-resolver.d.ts.map +0 -1
- package/dist/orchestration/skill-ops.d.ts.map +0 -1
- package/dist/orchestration/spawn-prompt.d.ts.map +0 -1
- package/dist/orchestration/spawn.d.ts.map +0 -1
- package/dist/orchestration/status.d.ts.map +0 -1
- package/dist/orchestration/thin-agent.d.ts.map +0 -1
- package/dist/orchestration/tier-selector.d.ts.map +0 -1
- package/dist/orchestration/unblock.d.ts.map +0 -1
- package/dist/orchestration/validate-spawn.d.ts.map +0 -1
- package/dist/orchestration/wave-topic.d.ts.map +0 -1
- package/dist/orchestration/waves.d.ts.map +0 -1
- package/dist/otel/index.d.ts.map +0 -1
- package/dist/output.d.ts.map +0 -1
- package/dist/pagination.d.ts.map +0 -1
- package/dist/paths-export.d.ts.map +0 -1
- package/dist/paths.d.ts.map +0 -1
- package/dist/phases/deps.d.ts.map +0 -1
- package/dist/phases/index.d.ts.map +0 -1
- package/dist/pipeline/engine-ops.d.ts.map +0 -1
- package/dist/pipeline/index.d.ts.map +0 -1
- package/dist/pipeline/phase.d.ts.map +0 -1
- package/dist/platform.d.ts.map +0 -1
- package/dist/playbooks/agent-dispatcher.d.ts.map +0 -1
- package/dist/playbooks/cantbook-profile.d.ts.map +0 -1
- package/dist/playbooks/guarded-deterministic-runner.d.ts.map +0 -1
- package/dist/playbooks/index.d.ts.map +0 -1
- package/dist/playbooks/ops.d.ts.map +0 -1
- package/dist/playbooks/pi-runner-wiring.d.ts.map +0 -1
- package/dist/playbooks/playbook-resolver.d.ts.map +0 -1
- package/dist/playbooks/skill-node-executor.d.ts.map +0 -1
- package/dist/project-info.d.ts.map +0 -1
- package/dist/project-lifecycle.d.ts.map +0 -1
- package/dist/project-scope.d.ts.map +0 -1
- package/dist/project-tombstone.d.ts.map +0 -1
- package/dist/reconciliation/index.d.ts.map +0 -1
- package/dist/reconciliation/link-store.d.ts.map +0 -1
- package/dist/reconciliation/reconciliation-engine.d.ts.map +0 -1
- package/dist/registrations.d.ts.map +0 -1
- package/dist/release/artifacts.d.ts.map +0 -1
- package/dist/release/backfill.d.ts.map +0 -1
- package/dist/release/changesets-aggregator.d.ts.map +0 -1
- package/dist/release/channel.d.ts.map +0 -1
- package/dist/release/ci-evidence.d.ts.map +0 -1
- package/dist/release/ci.d.ts.map +0 -1
- package/dist/release/commit-presence.d.ts.map +0 -1
- package/dist/release/engine-ops.d.ts.map +0 -1
- package/dist/release/escape-hatch.d.ts.map +0 -1
- package/dist/release/github-pr.d.ts.map +0 -1
- package/dist/release/guards.d.ts.map +0 -1
- package/dist/release/hooks-v1-promotion.d.ts.map +0 -1
- package/dist/release/index.d.ts.map +0 -1
- package/dist/release/invariants/archive-reason-invariant.d.ts.map +0 -1
- package/dist/release/invariants/index.d.ts.map +0 -1
- package/dist/release/invariants/registry.d.ts.map +0 -1
- package/dist/release/open.d.ts.map +0 -1
- package/dist/release/ops.d.ts +0 -61
- package/dist/release/ops.d.ts.map +0 -1
- package/dist/release/ops.js +0 -29
- package/dist/release/ops.js.map +0 -1
- package/dist/release/plan.d.ts.map +0 -1
- package/dist/release/pr-evidence.d.ts.map +0 -1
- package/dist/release/preflight-skip.d.ts.map +0 -1
- package/dist/release/reconcile.d.ts.map +0 -1
- package/dist/release/release-config.d.ts.map +0 -1
- package/dist/release/release-manifest.d.ts.map +0 -1
- package/dist/release/ship-e2e-smoke-default-env.d.ts.map +0 -1
- package/dist/release/ship-e2e-smoke.d.ts.map +0 -1
- package/dist/release/validate-changelog.d.ts.map +0 -1
- package/dist/release/verify-provenance.d.ts.map +0 -1
- package/dist/release/version-bump.d.ts.map +0 -1
- package/dist/release/version.d.ts.map +0 -1
- package/dist/remote/index.d.ts.map +0 -1
- package/dist/render/ansi.d.ts.map +0 -1
- package/dist/render/brain/backfill.d.ts.map +0 -1
- package/dist/render/brain/export.d.ts.map +0 -1
- package/dist/render/brain/index.d.ts.map +0 -1
- package/dist/render/brain/maintenance.d.ts.map +0 -1
- package/dist/render/brain/migrate-repo-ids.d.ts.map +0 -1
- package/dist/render/brain/plasticity-stats.d.ts.map +0 -1
- package/dist/render/brain/purge.d.ts.map +0 -1
- package/dist/render/brain/quality.d.ts.map +0 -1
- package/dist/render/cli-colorize.d.ts.map +0 -1
- package/dist/render/colors.d.ts.map +0 -1
- package/dist/render/decide/index.d.ts.map +0 -1
- package/dist/render/docs/index.d.ts.map +0 -1
- package/dist/render/docs/view.d.ts.map +0 -1
- package/dist/render/fallback.d.ts.map +0 -1
- package/dist/render/format-label.d.ts.map +0 -1
- package/dist/render/helpers.d.ts.map +0 -1
- package/dist/render/index.d.ts.map +0 -1
- package/dist/render/legacy-adapter.d.ts.map +0 -1
- package/dist/render/nexus/_format.d.ts.map +0 -1
- package/dist/render/nexus/audit/index.d.ts.map +0 -1
- package/dist/render/nexus/contracts/index.d.ts.map +0 -1
- package/dist/render/nexus/graph/index.d.ts.map +0 -1
- package/dist/render/nexus/index.d.ts.map +0 -1
- package/dist/render/orchestration/audit-reconstruct.d.ts.map +0 -1
- package/dist/render/orchestration/completion-bar.d.ts.map +0 -1
- package/dist/render/orchestration/index.d.ts.map +0 -1
- package/dist/render/orchestration/plan.d.ts.map +0 -1
- package/dist/render/orchestration/stats.d.ts.map +0 -1
- package/dist/render/orchestration/tree.d.ts.map +0 -1
- package/dist/render/orchestration/waves.d.ts.map +0 -1
- package/dist/render/registry.d.ts.map +0 -1
- package/dist/render/render-envelope.d.ts.map +0 -1
- package/dist/render/session/blockers.d.ts.map +0 -1
- package/dist/render/session/briefing.d.ts.map +0 -1
- package/dist/render/session/current.d.ts.map +0 -1
- package/dist/render/session/doctor.d.ts.map +0 -1
- package/dist/render/session/generic.d.ts.map +0 -1
- package/dist/render/session/index.d.ts.map +0 -1
- package/dist/render/session/next.d.ts.map +0 -1
- package/dist/render/session/schema.d.ts.map +0 -1
- package/dist/render/session/session.d.ts.map +0 -1
- package/dist/render/session/start.d.ts.map +0 -1
- package/dist/render/session/stop.d.ts.map +0 -1
- package/dist/render/session/version.d.ts.map +0 -1
- package/dist/render/tasks/add.d.ts.map +0 -1
- package/dist/render/tasks/archive.d.ts.map +0 -1
- package/dist/render/tasks/colors.d.ts.map +0 -1
- package/dist/render/tasks/complete.d.ts.map +0 -1
- package/dist/render/tasks/delete.d.ts.map +0 -1
- package/dist/render/tasks/find.d.ts.map +0 -1
- package/dist/render/tasks/index.d.ts.map +0 -1
- package/dist/render/tasks/list.d.ts.map +0 -1
- package/dist/render/tasks/restore.d.ts.map +0 -1
- package/dist/render/tasks/show.d.ts.map +0 -1
- package/dist/render/tasks/update.d.ts.map +0 -1
- package/dist/render/tree-context.d.ts.map +0 -1
- package/dist/render/types.d.ts.map +0 -1
- package/dist/repair.d.ts.map +0 -1
- package/dist/research/index.d.ts.map +0 -1
- package/dist/resources/admission-ledger.d.ts.map +0 -1
- package/dist/resources/backend.d.ts.map +0 -1
- package/dist/resources/claim-keepalive.d.ts.map +0 -1
- package/dist/resources/darwin-backend.d.ts.map +0 -1
- package/dist/resources/governor.d.ts.map +0 -1
- package/dist/resources/heavy-command-hook-delivery.d.ts.map +0 -1
- package/dist/resources/heavy-command.d.ts.map +0 -1
- package/dist/resources/hook-footprint.d.ts.map +0 -1
- package/dist/resources/linux-backend.d.ts.map +0 -1
- package/dist/resources/memory-guard.d.ts.map +0 -1
- package/dist/resources/monitor.d.ts.map +0 -1
- package/dist/resources/pressure-gate.d.ts.map +0 -1
- package/dist/resources/run-admission.d.ts.map +0 -1
- package/dist/resources/run-class.d.ts.map +0 -1
- package/dist/resources/run-governed.d.ts.map +0 -1
- package/dist/resources/slot-holder.d.ts.map +0 -1
- package/dist/resources/spawn-wrapper.d.ts.map +0 -1
- package/dist/resources/supervisor-admit.d.ts.map +0 -1
- package/dist/resources/tool-groups.d.ts.map +0 -1
- package/dist/resources/top-memory.d.ts.map +0 -1
- package/dist/roadmap/index.d.ts.map +0 -1
- package/dist/routing/build-command-groups.d.ts.map +0 -1
- package/dist/routing/capability-matrix.d.ts.map +0 -1
- package/dist/routing/index.d.ts.map +0 -1
- package/dist/runtime/openapi/generate-openapi.d.ts.map +0 -1
- package/dist/runtime/openapi/index.d.ts.map +0 -1
- package/dist/sagas/add.d.ts.map +0 -1
- package/dist/sagas/constants.d.ts.map +0 -1
- package/dist/sagas/create.d.ts.map +0 -1
- package/dist/sagas/detach.d.ts.map +0 -1
- package/dist/sagas/enforcement.d.ts.map +0 -1
- package/dist/sagas/index.d.ts.map +0 -1
- package/dist/sagas/is-saga-type.d.ts.map +0 -1
- package/dist/sagas/list.d.ts.map +0 -1
- package/dist/sagas/members.d.ts.map +0 -1
- package/dist/sagas/migrate-containment.d.ts.map +0 -1
- package/dist/sagas/next.d.ts.map +0 -1
- package/dist/sagas/reconcile.d.ts.map +0 -1
- package/dist/sagas/repair.d.ts.map +0 -1
- package/dist/sagas/rollup.d.ts.map +0 -1
- package/dist/sagas/storage.d.ts.map +0 -1
- package/dist/scaffold/ensure-config.d.ts.map +0 -1
- package/dist/scaffold/ensure-dirs.d.ts.map +0 -1
- package/dist/scaffold/ensure-skills.d.ts.map +0 -1
- package/dist/scaffold/ensure-templates.d.ts.map +0 -1
- package/dist/scaffold/global-scaffold.d.ts.map +0 -1
- package/dist/scaffold/index.d.ts.map +0 -1
- package/dist/scaffold/init.d.ts.map +0 -1
- package/dist/scaffold/migrate-worktree-include.d.ts.map +0 -1
- package/dist/scaffold/project-detection.d.ts.map +0 -1
- package/dist/scaffold/project-identity.d.ts.map +0 -1
- package/dist/scaffold/scaffold-global.d.ts.map +0 -1
- package/dist/scaffold/scaffold-project.d.ts.map +0 -1
- package/dist/scaffold/telemetry.d.ts.map +0 -1
- package/dist/scaffold/upgrade-file-journal.d.ts.map +0 -1
- package/dist/scaffold.d.ts.map +0 -1
- package/dist/schema-management.d.ts.map +0 -1
- package/dist/sdk/index.d.ts.map +0 -1
- package/dist/sdk/isolation.d.ts.map +0 -1
- package/dist/sdk/manifest.d.ts.map +0 -1
- package/dist/sdk/spawn-primitives.d.ts.map +0 -1
- package/dist/sdk/spawn-validator.d.ts.map +0 -1
- package/dist/sdk/tool-cache.d.ts.map +0 -1
- package/dist/sdk/tool-resolver.d.ts.map +0 -1
- package/dist/sdk/validator-ac-pull.d.ts.map +0 -1
- package/dist/sdk/validator-attest.d.ts.map +0 -1
- package/dist/sdk/validator-reject.d.ts.map +0 -1
- package/dist/security/index.d.ts.map +0 -1
- package/dist/security/input-sanitization.d.ts.map +0 -1
- package/dist/security/override-cap-setting.d.ts.map +0 -1
- package/dist/security/override-cap.d.ts.map +0 -1
- package/dist/security/owner-override-auth.d.ts.map +0 -1
- package/dist/security/owner-override-authority.d.ts.map +0 -1
- package/dist/security/shared-evidence-tracker.d.ts.map +0 -1
- package/dist/selfimprove/budget.d.ts.map +0 -1
- package/dist/selfimprove/dhq-adapter.d.ts.map +0 -1
- package/dist/selfimprove/draft-pr.d.ts.map +0 -1
- package/dist/selfimprove/envelope-diff.d.ts.map +0 -1
- package/dist/selfimprove/fix-gen-context.d.ts.map +0 -1
- package/dist/selfimprove/fix-gen.d.ts.map +0 -1
- package/dist/selfimprove/op-source-map.d.ts.map +0 -1
- package/dist/selfimprove/probe-helper.d.ts.map +0 -1
- package/dist/selfimprove/replay.d.ts.map +0 -1
- package/dist/selfimprove/run-loop.d.ts.map +0 -1
- package/dist/selfimprove/scenario.d.ts.map +0 -1
- package/dist/sentient/allowlist.d.ts.map +0 -1
- package/dist/sentient/background-review.d.ts.map +0 -1
- package/dist/sentient/baseline.d.ts.map +0 -1
- package/dist/sentient/chain-walker.d.ts.map +0 -1
- package/dist/sentient/cross-project-hygiene.d.ts.map +0 -1
- package/dist/sentient/curator-config.d.ts.map +0 -1
- package/dist/sentient/curator.d.ts.map +0 -1
- package/dist/sentient/daemon-api.d.ts.map +0 -1
- package/dist/sentient/daemon-entry.d.ts.map +0 -1
- package/dist/sentient/daemon.d.ts.map +0 -1
- package/dist/sentient/detectors/config-drift.d.ts.map +0 -1
- package/dist/sentient/detectors/context-staleness.d.ts.map +0 -1
- package/dist/sentient/detectors/template-drift.d.ts.map +0 -1
- package/dist/sentient/dream-cycle.d.ts.map +0 -1
- package/dist/sentient/dream-watermark.d.ts.map +0 -1
- package/dist/sentient/events.d.ts.map +0 -1
- package/dist/sentient/execute-action.d.ts.map +0 -1
- package/dist/sentient/hygiene-scan.d.ts.map +0 -1
- package/dist/sentient/index.d.ts.map +0 -1
- package/dist/sentient/ingesters/brain-ingester.d.ts.map +0 -1
- package/dist/sentient/ingesters/nexus-ingester.d.ts.map +0 -1
- package/dist/sentient/ingesters/test-ingester.d.ts.map +0 -1
- package/dist/sentient/kill-switch.d.ts.map +0 -1
- package/dist/sentient/kms.d.ts.map +0 -1
- package/dist/sentient/local-patch.d.ts.map +0 -1
- package/dist/sentient/merge.d.ts.map +0 -1
- package/dist/sentient/ops.d.ts.map +0 -1
- package/dist/sentient/proposal-dedup.d.ts.map +0 -1
- package/dist/sentient/proposal-rate-limiter.d.ts.map +0 -1
- package/dist/sentient/propose-tick.d.ts.map +0 -1
- package/dist/sentient/revert-executor.d.ts.map +0 -1
- package/dist/sentient/revert-walker.d.ts.map +0 -1
- package/dist/sentient/skill-provenance.d.ts.map +0 -1
- package/dist/sentient/skill-review-prompt.d.ts.map +0 -1
- package/dist/sentient/stage-drift-tick.d.ts.map +0 -1
- package/dist/sentient/state.d.ts.map +0 -1
- package/dist/sentient/tick.d.ts.map +0 -1
- package/dist/sentient/tsa-anchor.d.ts.map +0 -1
- package/dist/sentient/worktree-dispatch.d.ts.map +0 -1
- package/dist/sequence/index.d.ts.map +0 -1
- package/dist/session/canon-lint.d.ts.map +0 -1
- package/dist/session/engine-ops.d.ts.map +0 -1
- package/dist/session/index.d.ts.map +0 -1
- package/dist/session/status-op.d.ts.map +0 -1
- package/dist/session/task-current.d.ts.map +0 -1
- package/dist/sessions/agent-session-adapter.d.ts.map +0 -1
- package/dist/sessions/agent-session.d.ts.map +0 -1
- package/dist/sessions/assumptions.d.ts.map +0 -1
- package/dist/sessions/briefing.d.ts.map +0 -1
- package/dist/sessions/connection-session-handle.d.ts.map +0 -1
- package/dist/sessions/context-alert.d.ts.map +0 -1
- package/dist/sessions/context-inject.d.ts.map +0 -1
- package/dist/sessions/context-monitor.d.ts.map +0 -1
- package/dist/sessions/decisions.d.ts.map +0 -1
- package/dist/sessions/drift-watchdog.d.ts.map +0 -1
- package/dist/sessions/find.d.ts.map +0 -1
- package/dist/sessions/focus-state-store.d.ts.map +0 -1
- package/dist/sessions/handoff-markdown.d.ts.map +0 -1
- package/dist/sessions/handoff.d.ts.map +0 -1
- package/dist/sessions/hitl-warnings.d.ts.map +0 -1
- package/dist/sessions/index.d.ts.map +0 -1
- package/dist/sessions/session-archive.d.ts.map +0 -1
- package/dist/sessions/session-cleanup.d.ts.map +0 -1
- package/dist/sessions/session-drift.d.ts.map +0 -1
- package/dist/sessions/session-end-snapshot-entry.d.ts.map +0 -1
- package/dist/sessions/session-end-snapshot.d.ts.map +0 -1
- package/dist/sessions/session-enforcement.d.ts.map +0 -1
- package/dist/sessions/session-grade.d.ts.map +0 -1
- package/dist/sessions/session-history.d.ts.map +0 -1
- package/dist/sessions/session-id.d.ts.map +0 -1
- package/dist/sessions/session-journal.d.ts.map +0 -1
- package/dist/sessions/session-manifest-mirror.d.ts.map +0 -1
- package/dist/sessions/session-memory-bridge.d.ts.map +0 -1
- package/dist/sessions/session-show.d.ts.map +0 -1
- package/dist/sessions/session-stats.d.ts.map +0 -1
- package/dist/sessions/session-suspend.d.ts.map +0 -1
- package/dist/sessions/session-switch.d.ts.map +0 -1
- package/dist/sessions/session-view.d.ts.map +0 -1
- package/dist/sessions/snapshot.d.ts.map +0 -1
- package/dist/sessions/statusline-setup.d.ts.map +0 -1
- package/dist/sessions/terminal-identity.d.ts.map +0 -1
- package/dist/sessions/types.d.ts.map +0 -1
- package/dist/setup/config-json-merge.d.ts.map +0 -1
- package/dist/setup/index.d.ts.map +0 -1
- package/dist/setup/sections/brain.d.ts.map +0 -1
- package/dist/setup/sections/harness.d.ts.map +0 -1
- package/dist/setup/sections/identity.d.ts.map +0 -1
- package/dist/setup/sections/integrations.d.ts.map +0 -1
- package/dist/setup/sections/llm.d.ts.map +0 -1
- package/dist/setup/sections/models-roles.d.ts.map +0 -1
- package/dist/setup/sections/nexus-account.d.ts.map +0 -1
- package/dist/setup/sections/project-conventions.d.ts.map +0 -1
- package/dist/setup/sections/sentient.d.ts.map +0 -1
- package/dist/setup/sections/system-one.d.ts.map +0 -1
- package/dist/setup/sections/telemetry.d.ts.map +0 -1
- package/dist/setup/sections/verification.d.ts.map +0 -1
- package/dist/setup/whoami-summary.d.ts.map +0 -1
- package/dist/setup/wizard.d.ts.map +0 -1
- package/dist/shutdown-deadline.d.ts.map +0 -1
- package/dist/shutdown.d.ts.map +0 -1
- package/dist/skills/agents/config.d.ts.map +0 -1
- package/dist/skills/agents/install.d.ts.map +0 -1
- package/dist/skills/agents/registry.d.ts.map +0 -1
- package/dist/skills/discovery.d.ts.map +0 -1
- package/dist/skills/dispatch.d.ts.map +0 -1
- package/dist/skills/doctor-adopt.d.ts.map +0 -1
- package/dist/skills/doctor-bridge.d.ts.map +0 -1
- package/dist/skills/doctor.d.ts.map +0 -1
- package/dist/skills/dynamic-skill-generator.d.ts.map +0 -1
- package/dist/skills/federated-search.d.ts.map +0 -1
- package/dist/skills/federation-install-gate.d.ts.map +0 -1
- package/dist/skills/federation-store.d.ts.map +0 -1
- package/dist/skills/hermes-import-classifier.d.ts.map +0 -1
- package/dist/skills/hermes-importer.d.ts.map +0 -1
- package/dist/skills/index.d.ts.map +0 -1
- package/dist/skills/injection/subagent.d.ts.map +0 -1
- package/dist/skills/injection/token.d.ts.map +0 -1
- package/dist/skills/install.d.ts.map +0 -1
- package/dist/skills/manifests/contribution.d.ts.map +0 -1
- package/dist/skills/manifests/research.d.ts.map +0 -1
- package/dist/skills/manifests/resolver.d.ts.map +0 -1
- package/dist/skills/marketplace.d.ts.map +0 -1
- package/dist/skills/migration.d.ts.map +0 -1
- package/dist/skills/orchestrator/spawn.d.ts.map +0 -1
- package/dist/skills/orchestrator/startup.d.ts.map +0 -1
- package/dist/skills/orchestrator/validator.d.ts.map +0 -1
- package/dist/skills/precedence-integration.d.ts.map +0 -1
- package/dist/skills/precedence-types.d.ts.map +0 -1
- package/dist/skills/propose-patch.d.ts.map +0 -1
- package/dist/skills/prune-bundled.d.ts.map +0 -1
- package/dist/skills/routing-table.d.ts.map +0 -1
- package/dist/skills/skill-executor-adapter.d.ts.map +0 -1
- package/dist/skills/skill-paths.d.ts.map +0 -1
- package/dist/skills/skill-root.d.ts.map +0 -1
- package/dist/skills/skills-guard-audit.d.ts.map +0 -1
- package/dist/skills/skills-guard-patterns.d.ts.map +0 -1
- package/dist/skills/skills-guard.d.ts.map +0 -1
- package/dist/skills/test-utility.d.ts.map +0 -1
- package/dist/skills/types.d.ts.map +0 -1
- package/dist/skills/usage-recorder.d.ts.map +0 -1
- package/dist/skills/validation.d.ts.map +0 -1
- package/dist/skills/version.d.ts.map +0 -1
- package/dist/skills-export.d.ts.map +0 -1
- package/dist/snapshot/index.d.ts.map +0 -1
- package/dist/spawn/adapter-registry.d.ts.map +0 -1
- package/dist/spawn/agent-identity.d.ts.map +0 -1
- package/dist/spawn/branch-integration.d.ts.map +0 -1
- package/dist/spawn/branch-lock.d.ts.map +0 -1
- package/dist/spawn/index.d.ts.map +0 -1
- package/dist/spawn/worktree-lock-holder.d.ts.map +0 -1
- package/dist/stats/index.d.ts.map +0 -1
- package/dist/stats/workflow-telemetry.d.ts.map +0 -1
- package/dist/status/index.d.ts.map +0 -1
- package/dist/sticky/archive.d.ts.map +0 -1
- package/dist/sticky/convert.d.ts.map +0 -1
- package/dist/sticky/create.d.ts.map +0 -1
- package/dist/sticky/engine-ops.d.ts.map +0 -1
- package/dist/sticky/id.d.ts.map +0 -1
- package/dist/sticky/index.d.ts.map +0 -1
- package/dist/sticky/list.d.ts.map +0 -1
- package/dist/sticky/ops.d.ts.map +0 -1
- package/dist/sticky/purge.d.ts.map +0 -1
- package/dist/sticky/show.d.ts.map +0 -1
- package/dist/sticky/types.d.ts.map +0 -1
- package/dist/store/ac-binding-prune.d.ts.map +0 -1
- package/dist/store/agent-api-key.d.ts.map +0 -1
- package/dist/store/agent-doctor.d.ts.map +0 -1
- package/dist/store/agent-install.d.ts.map +0 -1
- package/dist/store/agent-registry-accessor.d.ts.map +0 -1
- package/dist/store/agent-registry-store.d.ts.map +0 -1
- package/dist/store/agent-resolver.d.ts.map +0 -1
- package/dist/store/api-key-kdf.d.ts.map +0 -1
- package/dist/store/atomic.d.ts.map +0 -1
- package/dist/store/attachment-repair.d.ts.map +0 -1
- package/dist/store/attachment-store.d.ts.map +0 -1
- package/dist/store/audit-log-schema.d.ts.map +0 -1
- package/dist/store/background-jobs.d.ts.map +0 -1
- package/dist/store/background-ops.d.ts.map +0 -1
- package/dist/store/backup-crypto.d.ts.map +0 -1
- package/dist/store/backup-inspect.d.ts.map +0 -1
- package/dist/store/backup-pack.d.ts.map +0 -1
- package/dist/store/backup-recover-brain.d.ts.map +0 -1
- package/dist/store/backup-recover.d.ts.map +0 -1
- package/dist/store/backup-sidecar.d.ts.map +0 -1
- package/dist/store/backup-unpack.d.ts.map +0 -1
- package/dist/store/backup-verify.d.ts.map +0 -1
- package/dist/store/backup.d.ts.map +0 -1
- package/dist/store/blob-keep.d.ts.map +0 -1
- package/dist/store/blob-ops.d.ts.map +0 -1
- package/dist/store/brain-accessor-impl.d.ts.map +0 -1
- package/dist/store/cache.d.ts.map +0 -1
- package/dist/store/checkpoint-git-dir.d.ts.map +0 -1
- package/dist/store/cleanup-legacy.d.ts.map +0 -1
- package/dist/store/conduit-doc-history.d.ts.map +0 -1
- package/dist/store/conduit-sqlite.d.ts.map +0 -1
- package/dist/store/converters.d.ts.map +0 -1
- package/dist/store/credential-transfer.d.ts.map +0 -1
- package/dist/store/cross-db-cleanup.d.ts.map +0 -1
- package/dist/store/data-accessor.d.ts.map +0 -1
- package/dist/store/data-safety-central.d.ts.map +0 -1
- package/dist/store/db-helpers.d.ts.map +0 -1
- package/dist/store/decision-adr-links.d.ts.map +0 -1
- package/dist/store/dependency-cycles.d.ts.map +0 -1
- package/dist/store/display-id-alias.d.ts.map +0 -1
- package/dist/store/docs-accessor-impl.d.ts.map +0 -1
- package/dist/store/docs-bytes-backup.d.ts.map +0 -1
- package/dist/store/drizzle-node-sqlite.d.ts.map +0 -1
- package/dist/store/dual-scope-db.d.ts.map +0 -1
- package/dist/store/exodus/__fixtures__/representative-fixture.d.ts.map +0 -1
- package/dist/store/exodus/abort-events.d.ts.map +0 -1
- package/dist/store/exodus/archive.d.ts.map +0 -1
- package/dist/store/exodus/bare-family.d.ts.map +0 -1
- package/dist/store/exodus/column-transforms.d.ts.map +0 -1
- package/dist/store/exodus/count-parity.d.ts.map +0 -1
- package/dist/store/exodus/health.d.ts.map +0 -1
- package/dist/store/exodus/index.d.ts.map +0 -1
- package/dist/store/exodus/migrate.d.ts.map +0 -1
- package/dist/store/exodus/on-open.d.ts.map +0 -1
- package/dist/store/exodus/plan.d.ts.map +0 -1
- package/dist/store/exodus/prior-recoveries.d.ts.map +0 -1
- package/dist/store/exodus/reconcile.d.ts.map +0 -1
- package/dist/store/exodus/recovery.d.ts.map +0 -1
- package/dist/store/exodus/runtime-targets.d.ts.map +0 -1
- package/dist/store/exodus/seal.d.ts.map +0 -1
- package/dist/store/exodus/status.d.ts.map +0 -1
- package/dist/store/exodus/table-name-map.d.ts.map +0 -1
- package/dist/store/exodus/table-order.d.ts.map +0 -1
- package/dist/store/exodus/task-id-collision-sql.d.ts.map +0 -1
- package/dist/store/exodus/task-id-remap.d.ts.map +0 -1
- package/dist/store/exodus/types.d.ts.map +0 -1
- package/dist/store/exodus/verify-migration.d.ts.map +0 -1
- package/dist/store/exodus/verify.d.ts.map +0 -1
- package/dist/store/exodus/write-guard.d.ts.map +0 -1
- package/dist/store/export.d.ts.map +0 -1
- package/dist/store/file-utils.d.ts.map +0 -1
- package/dist/store/git-checkpoint.d.ts.map +0 -1
- package/dist/store/global-salt.d.ts.map +0 -1
- package/dist/store/identity-share.d.ts.map +0 -1
- package/dist/store/import-logging.d.ts.map +0 -1
- package/dist/store/import-remap.d.ts.map +0 -1
- package/dist/store/import-sort.d.ts.map +0 -1
- package/dist/store/index.d.ts.map +0 -1
- package/dist/store/json.d.ts.map +0 -1
- package/dist/store/legacy-tasks-lineage.d.ts.map +0 -1
- package/dist/store/lifecycle-store.d.ts.map +0 -1
- package/dist/store/llm-accounts-accessor.d.ts.map +0 -1
- package/dist/store/llmtxt-blob-adapter.d.ts.map +0 -1
- package/dist/store/lock.d.ts.map +0 -1
- package/dist/store/memory-accessor.d.ts.map +0 -1
- package/dist/store/memory-sqlite.d.ts.map +0 -1
- package/dist/store/migrate-signaldock-to-conduit.d.ts.map +0 -1
- package/dist/store/migration-files.d.ts.map +0 -1
- package/dist/store/migration-manager.d.ts.map +0 -1
- package/dist/store/migration-runner.d.ts.map +0 -1
- package/dist/store/migration-safety.d.ts.map +0 -1
- package/dist/store/migration-sqlite.d.ts.map +0 -1
- package/dist/store/nexus-sqlite.d.ts.map +0 -1
- package/dist/store/nexus-validation-schemas.d.ts.map +0 -1
- package/dist/store/open-cleo-db.d.ts.map +0 -1
- package/dist/store/parsers.d.ts.map +0 -1
- package/dist/store/pi-session-store.d.ts.map +0 -1
- package/dist/store/pid-alive.d.ts.map +0 -1
- package/dist/store/portable-bundle-import.d.ts.map +0 -1
- package/dist/store/portable-bundle-relocate.d.ts.map +0 -1
- package/dist/store/portable-bundle-scan.d.ts.map +0 -1
- package/dist/store/portable-bundle.d.ts.map +0 -1
- package/dist/store/ports/domain-binding.d.ts.map +0 -1
- package/dist/store/ports/fk-integrity.d.ts.map +0 -1
- package/dist/store/pre-repair-snapshot.d.ts.map +0 -1
- package/dist/store/project-detect.d.ts.map +0 -1
- package/dist/store/provider.d.ts.map +0 -1
- package/dist/store/recover-brain-db.d.ts.map +0 -1
- package/dist/store/recover-malformed-db.d.ts.map +0 -1
- package/dist/store/regenerators.d.ts.map +0 -1
- package/dist/store/relocated-store-guard.d.ts.map +0 -1
- package/dist/store/repair-malformed-dbs.d.ts.map +0 -1
- package/dist/store/resolve-migrations-folder.d.ts.map +0 -1
- package/dist/store/restore-conflict-parser.d.ts.map +0 -1
- package/dist/store/restore-conflict-report.d.ts.map +0 -1
- package/dist/store/restore-json-merge.d.ts.map +0 -1
- package/dist/store/restore-marker.d.ts.map +0 -1
- package/dist/store/restore-store.d.ts.map +0 -1
- package/dist/store/role-accessors-impl.d.ts.map +0 -1
- package/dist/store/row-identity-flag.d.ts.map +0 -1
- package/dist/store/row-identity-registry.d.ts.map +0 -1
- package/dist/store/row-identity.d.ts.map +0 -1
- package/dist/store/safety-data-accessor.d.ts.map +0 -1
- package/dist/store/schedule-schema.d.ts.map +0 -1
- package/dist/store/schedule-store.d.ts.map +0 -1
- package/dist/store/schema/agent-registry-schema.d.ts.map +0 -1
- package/dist/store/schema/agent-schema.d.ts.map +0 -1
- package/dist/store/schema/attachments.d.ts.map +0 -1
- package/dist/store/schema/audit.d.ts.map +0 -1
- package/dist/store/schema/background-jobs.d.ts.map +0 -1
- package/dist/store/schema/chain-schema.d.ts.map +0 -1
- package/dist/store/schema/cleo-global/accounts.d.ts.map +0 -1
- package/dist/store/schema/cleo-global/agent-registry.d.ts.map +0 -1
- package/dist/store/schema/cleo-global/index.d.ts.map +0 -1
- package/dist/store/schema/cleo-global/models-catalog.d.ts.map +0 -1
- package/dist/store/schema/cleo-global/nexus.d.ts.map +0 -1
- package/dist/store/schema/cleo-global/providers.d.ts.map +0 -1
- package/dist/store/schema/cleo-global/services.d.ts.map +0 -1
- package/dist/store/schema/cleo-global/session-manifest.d.ts.map +0 -1
- package/dist/store/schema/cleo-global/skills.d.ts.map +0 -1
- package/dist/store/schema/cleo-global/telemetry.d.ts.map +0 -1
- package/dist/store/schema/cleo-project/audit.d.ts.map +0 -1
- package/dist/store/schema/cleo-project/conduit.d.ts.map +0 -1
- package/dist/store/schema/cleo-project/docs.d.ts.map +0 -1
- package/dist/store/schema/cleo-project/index.d.ts.map +0 -1
- package/dist/store/schema/cleo-project/lifecycle.d.ts.map +0 -1
- package/dist/store/schema/cleo-project/nexus-graph.d.ts.map +0 -1
- package/dist/store/schema/cleo-project/provenance-commits.d.ts.map +0 -1
- package/dist/store/schema/cleo-project/provenance-orphans.d.ts.map +0 -1
- package/dist/store/schema/cleo-project/provenance-rest.d.ts.map +0 -1
- package/dist/store/schema/cleo-project/runtime.d.ts.map +0 -1
- package/dist/store/schema/cleo-project/tasks-core-batch2.d.ts.map +0 -1
- package/dist/store/schema/cleo-project/tasks-core.d.ts.map +0 -1
- package/dist/store/schema/cleo-shared/brain.d.ts.map +0 -1
- package/dist/store/schema/cleo-shared/index.d.ts.map +0 -1
- package/dist/store/schema/code-index.d.ts.map +0 -1
- package/dist/store/schema/conduit-schema.d.ts.map +0 -1
- package/dist/store/schema/evidence-bindings.d.ts.map +0 -1
- package/dist/store/schema/experiments.d.ts.map +0 -1
- package/dist/store/schema/goal.d.ts.map +0 -1
- package/dist/store/schema/index.d.ts.map +0 -1
- package/dist/store/schema/jsonb.d.ts.map +0 -1
- package/dist/store/schema/lifecycle.d.ts.map +0 -1
- package/dist/store/schema/manifest.d.ts.map +0 -1
- package/dist/store/schema/memory-schema.d.ts.map +0 -1
- package/dist/store/schema/nexus-schema.d.ts.map +0 -1
- package/dist/store/schema/playbooks.d.ts.map +0 -1
- package/dist/store/schema/provenance/commits.d.ts.map +0 -1
- package/dist/store/schema/provenance/index.d.ts.map +0 -1
- package/dist/store/schema/provenance/pull-requests.d.ts.map +0 -1
- package/dist/store/schema/provenance/releases.d.ts.map +0 -1
- package/dist/store/schema/schema-utils.d.ts.map +0 -1
- package/dist/store/schema/skills-schema.d.ts.map +0 -1
- package/dist/store/schema/sqlite-feature-expressiveness.d.ts.map +0 -1
- package/dist/store/schema/tasks.d.ts.map +0 -1
- package/dist/store/schema/telemetry-schema.d.ts.map +0 -1
- package/dist/store/schema.d.ts.map +0 -1
- package/dist/store/selfimprove-dhq-schema.d.ts.map +0 -1
- package/dist/store/selfimprove-dhq-store.d.ts.map +0 -1
- package/dist/store/service-connections-accessor.d.ts.map +0 -1
- package/dist/store/service-host-matcher.d.ts.map +0 -1
- package/dist/store/service-injection.d.ts.map +0 -1
- package/dist/store/service-oauth.d.ts.map +0 -1
- package/dist/store/service-trust-gate.d.ts.map +0 -1
- package/dist/store/session-binding-schema.d.ts.map +0 -1
- package/dist/store/session-store.d.ts.map +0 -1
- package/dist/store/skills-db.d.ts.map +0 -1
- package/dist/store/skills-store.d.ts.map +0 -1
- package/dist/store/skills-usage-queue.d.ts.map +0 -1
- package/dist/store/snapshot-gate.d.ts.map +0 -1
- package/dist/store/split-brain-import.d.ts.map +0 -1
- package/dist/store/sqlite-backup.d.ts.map +0 -1
- package/dist/store/sqlite-data-accessor.d.ts.map +0 -1
- package/dist/store/sqlite-native.d.ts.map +0 -1
- package/dist/store/sqlite-pragmas.d.ts.map +0 -1
- package/dist/store/sqlite.d.ts.map +0 -1
- package/dist/store/status-registry.d.ts.map +0 -1
- package/dist/store/store-write-guard.d.ts.map +0 -1
- package/dist/store/sync/activity.d.ts.map +0 -1
- package/dist/store/sync/apply/applier.d.ts.map +0 -1
- package/dist/store/sync/apply/fk.d.ts.map +0 -1
- package/dist/store/sync/apply/footprints.d.ts.map +0 -1
- package/dist/store/sync/apply/frame.d.ts.map +0 -1
- package/dist/store/sync/apply/index.d.ts.map +0 -1
- package/dist/store/sync/apply/parent-delete.d.ts.map +0 -1
- package/dist/store/sync/apply/post-apply.d.ts.map +0 -1
- package/dist/store/sync/apply/refs.d.ts.map +0 -1
- package/dist/store/sync/apply/resolve-conflict.d.ts.map +0 -1
- package/dist/store/sync/apply/write-api.d.ts.map +0 -1
- package/dist/store/sync/apply-intent.d.ts.map +0 -1
- package/dist/store/sync/audit-scrub.d.ts.map +0 -1
- package/dist/store/sync/capture.d.ts.map +0 -1
- package/dist/store/sync/clock-store.d.ts.map +0 -1
- package/dist/store/sync/collision-settle.d.ts.map +0 -1
- package/dist/store/sync/conflicts.d.ts.map +0 -1
- package/dist/store/sync/field-leave.d.ts.map +0 -1
- package/dist/store/sync/fk-orphans.d.ts.map +0 -1
- package/dist/store/sync/flags.d.ts.map +0 -1
- package/dist/store/sync/genesis.d.ts.map +0 -1
- package/dist/store/sync/held.d.ts.map +0 -1
- package/dist/store/sync/hlc.d.ts.map +0 -1
- package/dist/store/sync/identity-fill.d.ts.map +0 -1
- package/dist/store/sync/inbox.d.ts.map +0 -1
- package/dist/store/sync/index.d.ts.map +0 -1
- package/dist/store/sync/inherit.d.ts.map +0 -1
- package/dist/store/sync/machinery.d.ts.map +0 -1
- package/dist/store/sync/merge/engine.d.ts.map +0 -1
- package/dist/store/sync/merge/index.d.ts.map +0 -1
- package/dist/store/sync/merge/rules.d.ts.map +0 -1
- package/dist/store/sync/merge/types.d.ts.map +0 -1
- package/dist/store/sync/migration-hooks.d.ts.map +0 -1
- package/dist/store/sync/netting.d.ts.map +0 -1
- package/dist/store/sync/pull.d.ts.map +0 -1
- package/dist/store/sync/push.d.ts.map +0 -1
- package/dist/store/sync/rebind.d.ts.map +0 -1
- package/dist/store/sync/reconcile-copy.d.ts.map +0 -1
- package/dist/store/sync/reconcile.d.ts.map +0 -1
- package/dist/store/sync/remap.d.ts.map +0 -1
- package/dist/store/sync/repair.d.ts.map +0 -1
- package/dist/store/sync/replay-pin.d.ts.map +0 -1
- package/dist/store/sync/replica-registry.d.ts.map +0 -1
- package/dist/store/sync/replica.d.ts.map +0 -1
- package/dist/store/sync/retire.d.ts.map +0 -1
- package/dist/store/sync/row-meta.d.ts.map +0 -1
- package/dist/store/sync/schema.d.ts.map +0 -1
- package/dist/store/sync/seal-backlog.d.ts.map +0 -1
- package/dist/store/sync/sealer-values.d.ts.map +0 -1
- package/dist/store/sync/sealer.d.ts.map +0 -1
- package/dist/store/sync/segments.d.ts.map +0 -1
- package/dist/store/sync/sequencing.d.ts.map +0 -1
- package/dist/store/sync/skew-hold.d.ts.map +0 -1
- package/dist/store/sync/structural.d.ts.map +0 -1
- package/dist/store/sync/timestamp-canon.d.ts.map +0 -1
- package/dist/store/sync/timestamps.d.ts.map +0 -1
- package/dist/store/sync/tombstones.d.ts.map +0 -1
- package/dist/store/sync/trigger-classes.d.ts.map +0 -1
- package/dist/store/sync/trigger-suspend-at-path.d.ts.map +0 -1
- package/dist/store/sync/txn-signing.d.ts.map +0 -1
- package/dist/store/sync/uid-alias.d.ts.map +0 -1
- package/dist/store/sync/write-actor.d.ts.map +0 -1
- package/dist/store/sync/writer-version.d.ts.map +0 -1
- package/dist/store/t310-readiness.d.ts.map +0 -1
- package/dist/store/table-classification.d.ts.map +0 -1
- package/dist/store/task-claim.d.ts.map +0 -1
- package/dist/store/task-reference-columns.d.ts.map +0 -1
- package/dist/store/task-version.d.ts.map +0 -1
- package/dist/store/tasks-schema.d.ts.map +0 -1
- package/dist/store/tasks-sqlite.d.ts.map +0 -1
- package/dist/store/trigger-suspend-schema.d.ts.map +0 -1
- package/dist/store/twin-collapse.d.ts.map +0 -1
- package/dist/store/typed-query.d.ts.map +0 -1
- package/dist/store/umbrella-data-accessor.d.ts.map +0 -1
- package/dist/store/validation-schemas.d.ts.map +0 -1
- package/dist/store/vault-manifest.d.ts.map +0 -1
- package/dist/store/with-retry.d.ts.map +0 -1
- package/dist/store/worktree-build-guard.d.ts.map +0 -1
- package/dist/store/worktree-isolation-guard.d.ts.map +0 -1
- package/dist/store/writer-lease-schema.d.ts.map +0 -1
- package/dist/store/writer-lease.d.ts.map +0 -1
- package/dist/store/zod-schema-factory.d.ts.map +0 -1
- package/dist/system/archive-analytics.d.ts.map +0 -1
- package/dist/system/archive-stats.d.ts.map +0 -1
- package/dist/system/audit.d.ts.map +0 -1
- package/dist/system/backup.d.ts.map +0 -1
- package/dist/system/bridge-mode.d.ts.map +0 -1
- package/dist/system/cleanup.d.ts.map +0 -1
- package/dist/system/cleo-link.d.ts.map +0 -1
- package/dist/system/dependencies.d.ts.map +0 -1
- package/dist/system/global-delivery.d.ts.map +0 -1
- package/dist/system/health.d.ts.map +0 -1
- package/dist/system/index.d.ts.map +0 -1
- package/dist/system/inject-generate.d.ts.map +0 -1
- package/dist/system/labels.d.ts.map +0 -1
- package/dist/system/metrics.d.ts.map +0 -1
- package/dist/system/migrate.d.ts.map +0 -1
- package/dist/system/platform-paths.d.ts.map +0 -1
- package/dist/system/project-health.d.ts.map +0 -1
- package/dist/system/rogue-cleo-detector.d.ts.map +0 -1
- package/dist/system/runtime.d.ts.map +0 -1
- package/dist/system/safestop.d.ts.map +0 -1
- package/dist/system/skill-fixtures.d.ts.map +0 -1
- package/dist/system/storage-preflight.d.ts.map +0 -1
- package/dist/system/sync.d.ts.map +0 -1
- package/dist/task-tools/build-task-tree.d.ts.map +0 -1
- package/dist/task-tools/compute-critical-path.d.ts.map +0 -1
- package/dist/task-tools/describe-schema.d.ts.map +0 -1
- package/dist/task-tools/index.d.ts.map +0 -1
- package/dist/task-tools/render-task-tree.d.ts.map +0 -1
- package/dist/task-tools/score-task-priority.d.ts.map +0 -1
- package/dist/task-tools/sdk-tool.d.ts.map +0 -1
- package/dist/task-work/claims.d.ts.map +0 -1
- package/dist/task-work/current.d.ts.map +0 -1
- package/dist/task-work/index.d.ts.map +0 -1
- package/dist/tasks/ac-coverage-gate.d.ts.map +0 -1
- package/dist/tasks/ac-identity.d.ts.map +0 -1
- package/dist/tasks/ac-immutability.d.ts.map +0 -1
- package/dist/tasks/ac-table.d.ts.map +0 -1
- package/dist/tasks/acceptance-input.d.ts.map +0 -1
- package/dist/tasks/add-batch.d.ts.map +0 -1
- package/dist/tasks/add.d.ts.map +0 -1
- package/dist/tasks/affected-packages.d.ts.map +0 -1
- package/dist/tasks/affected-scope.d.ts.map +0 -1
- package/dist/tasks/affected-template.d.ts.map +0 -1
- package/dist/tasks/agent-lifecycle-lane.d.ts.map +0 -1
- package/dist/tasks/analyze.d.ts.map +0 -1
- package/dist/tasks/archive.d.ts.map +0 -1
- package/dist/tasks/atomicity.d.ts.map +0 -1
- package/dist/tasks/axis-filters.d.ts.map +0 -1
- package/dist/tasks/backfill-child-projections.d.ts.map +0 -1
- package/dist/tasks/backfill-epic-loom.d.ts.map +0 -1
- package/dist/tasks/cancel-ops.d.ts.map +0 -1
- package/dist/tasks/cancelled-child-waiver-audit.d.ts.map +0 -1
- package/dist/tasks/change-set.d.ts.map +0 -1
- package/dist/tasks/changeset-plan.d.ts.map +0 -1
- package/dist/tasks/child-disposition.d.ts.map +0 -1
- package/dist/tasks/collection.d.ts.map +0 -1
- package/dist/tasks/command-line.d.ts.map +0 -1
- package/dist/tasks/complete-ci.d.ts.map +0 -1
- package/dist/tasks/complete.d.ts.map +0 -1
- package/dist/tasks/completion-context-pack.d.ts.map +0 -1
- package/dist/tasks/completion-evaluation.d.ts.map +0 -1
- package/dist/tasks/component-pr.d.ts.map +0 -1
- package/dist/tasks/compute-task-view.d.ts.map +0 -1
- package/dist/tasks/coordination-parent.d.ts.map +0 -1
- package/dist/tasks/crossref-extract.d.ts.map +0 -1
- package/dist/tasks/decompose.d.ts.map +0 -1
- package/dist/tasks/delete-preview.d.ts.map +0 -1
- package/dist/tasks/delete.d.ts.map +0 -1
- package/dist/tasks/deletion-strategy.d.ts +0 -64
- package/dist/tasks/deletion-strategy.d.ts.map +0 -1
- package/dist/tasks/deletion-strategy.js +0 -251
- package/dist/tasks/deletion-strategy.js.map +0 -1
- package/dist/tasks/dep-graph-validator.d.ts.map +0 -1
- package/dist/tasks/dependency-check.d.ts.map +0 -1
- package/dist/tasks/depends-waiver-audit.d.ts.map +0 -1
- package/dist/tasks/deps-ready.d.ts.map +0 -1
- package/dist/tasks/done-plan.d.ts.map +0 -1
- package/dist/tasks/done-record.d.ts.map +0 -1
- package/dist/tasks/duplicate-bypass-audit.d.ts.map +0 -1
- package/dist/tasks/duplicate-detector.d.ts.map +0 -1
- package/dist/tasks/enforcement.d.ts.map +0 -1
- package/dist/tasks/engine-converters.d.ts.map +0 -1
- package/dist/tasks/engine-wrap-ops.d.ts.map +0 -1
- package/dist/tasks/engine-wrap.d.ts.map +0 -1
- package/dist/tasks/epic-enforcement.d.ts.map +0 -1
- package/dist/tasks/evidence-paths.d.ts.map +0 -1
- package/dist/tasks/evidence-tree.d.ts.map +0 -1
- package/dist/tasks/evidence.d.ts.map +0 -1
- package/dist/tasks/find.d.ts.map +0 -1
- package/dist/tasks/gate-audit.d.ts.map +0 -1
- package/dist/tasks/gate-notes.d.ts.map +0 -1
- package/dist/tasks/gate-preview.d.ts.map +0 -1
- package/dist/tasks/gate-result-cache.d.ts.map +0 -1
- package/dist/tasks/gate-runner.d.ts.map +0 -1
- package/dist/tasks/gate-staleness.d.ts.map +0 -1
- package/dist/tasks/generic-tree.d.ts.map +0 -1
- package/dist/tasks/graph-cache.d.ts.map +0 -1
- package/dist/tasks/graph-ops.d.ts.map +0 -1
- package/dist/tasks/heavy-tool-env.d.ts.map +0 -1
- package/dist/tasks/heavy-tool-limit.d.ts.map +0 -1
- package/dist/tasks/hierarchy-policy.d.ts.map +0 -1
- package/dist/tasks/hierarchy.d.ts.map +0 -1
- package/dist/tasks/id-generator.d.ts.map +0 -1
- package/dist/tasks/index.d.ts.map +0 -1
- package/dist/tasks/infer-add-params.d.ts.map +0 -1
- package/dist/tasks/labels.d.ts.map +0 -1
- package/dist/tasks/list.d.ts.map +0 -1
- package/dist/tasks/nexus-impact-gate.d.ts.map +0 -1
- package/dist/tasks/nexus-risk-audit.d.ts.map +0 -1
- package/dist/tasks/ops.d.ts.map +0 -1
- package/dist/tasks/phase-tracking.d.ts.map +0 -1
- package/dist/tasks/pipeline-stage.d.ts.map +0 -1
- package/dist/tasks/plan.d.ts.map +0 -1
- package/dist/tasks/population.d.ts.map +0 -1
- package/dist/tasks/premature-close-audit.d.ts.map +0 -1
- package/dist/tasks/qa-run-binding.d.ts.map +0 -1
- package/dist/tasks/ranking-audit.d.ts.map +0 -1
- package/dist/tasks/reconcile-scope.d.ts.map +0 -1
- package/dist/tasks/relates.d.ts.map +0 -1
- package/dist/tasks/req.d.ts.map +0 -1
- package/dist/tasks/revalidation-cache.d.ts.map +0 -1
- package/dist/tasks/session-scope.d.ts.map +0 -1
- package/dist/tasks/severity-attestation.d.ts.map +0 -1
- package/dist/tasks/show.d.ts.map +0 -1
- package/dist/tasks/size-weighting.d.ts.map +0 -1
- package/dist/tasks/staleness.d.ts.map +0 -1
- package/dist/tasks/sync-ops.d.ts.map +0 -1
- package/dist/tasks/task-analyze.d.ts.map +0 -1
- package/dist/tasks/task-blockers.d.ts.map +0 -1
- package/dist/tasks/task-context.d.ts.map +0 -1
- package/dist/tasks/task-data.d.ts.map +0 -1
- package/dist/tasks/task-import.d.ts.map +0 -1
- package/dist/tasks/task-next.d.ts.map +0 -1
- package/dist/tasks/task-ops.d.ts.map +0 -1
- package/dist/tasks/task-reparent.d.ts.map +0 -1
- package/dist/tasks/task-tree.d.ts.map +0 -1
- package/dist/tasks/test-run-binding.d.ts.map +0 -1
- package/dist/tasks/tool-cache-env.d.ts.map +0 -1
- package/dist/tasks/tool-cache-failed-first.d.ts.map +0 -1
- package/dist/tasks/tool-cache.d.ts.map +0 -1
- package/dist/tasks/tool-resolver.d.ts.map +0 -1
- package/dist/tasks/tool-runner-guard.d.ts.map +0 -1
- package/dist/tasks/tool-semaphore.d.ts.map +0 -1
- package/dist/tasks/tool-vacuity.d.ts.map +0 -1
- package/dist/tasks/tree-render.d.ts.map +0 -1
- package/dist/tasks/update.d.ts.map +0 -1
- package/dist/tasks/verification-policy.d.ts.map +0 -1
- package/dist/teardown-signal.d.ts.map +0 -1
- package/dist/telemetry/index.d.ts.map +0 -1
- package/dist/telemetry/sqlite.d.ts.map +0 -1
- package/dist/templates/index.d.ts.map +0 -1
- package/dist/templates/manifest-data.d.ts.map +0 -1
- package/dist/templates/parser.d.ts.map +0 -1
- package/dist/templates/registry.d.ts.map +0 -1
- package/dist/tools/agent-registry.d.ts.map +0 -1
- package/dist/tools/agent-tool-families.d.ts.map +0 -1
- package/dist/tools/browser-driver.d.ts.map +0 -1
- package/dist/tools/builtin-agent-tools.d.ts.map +0 -1
- package/dist/tools/dispatch.d.ts.map +0 -1
- package/dist/tools/env-scrub.d.ts.map +0 -1
- package/dist/tools/exec-code-agent-tool.d.ts.map +0 -1
- package/dist/tools/fs.d.ts.map +0 -1
- package/dist/tools/guard.d.ts.map +0 -1
- package/dist/tools/index.d.ts.map +0 -1
- package/dist/tools/mcp-agent-tool.d.ts.map +0 -1
- package/dist/tools/media-agent-tools.d.ts.map +0 -1
- package/dist/tools/memory-agent-tools.d.ts.map +0 -1
- package/dist/tools/pty.d.ts.map +0 -1
- package/dist/tools/schedule-agent-tools.d.ts.map +0 -1
- package/dist/tools/schema-gen.d.ts.map +0 -1
- package/dist/tools/shell.d.ts.map +0 -1
- package/dist/tools/skill-agent-tool.d.ts.map +0 -1
- package/dist/tools/web-agent-tools.d.ts.map +0 -1
- package/dist/tools/web-search-backends.d.ts.map +0 -1
- package/dist/ui/aliases.d.ts.map +0 -1
- package/dist/ui/command-registry.d.ts.map +0 -1
- package/dist/ui/index.d.ts.map +0 -1
- package/dist/upgrade.d.ts.map +0 -1
- package/dist/validation/compliance.d.ts.map +0 -1
- package/dist/validation/docs-sync.d.ts.map +0 -1
- package/dist/validation/doctor/checks.d.ts.map +0 -1
- package/dist/validation/doctor/index.d.ts.map +0 -1
- package/dist/validation/doctor/project-cache.d.ts.map +0 -1
- package/dist/validation/doctor/utils.d.ts.map +0 -1
- package/dist/validation/engine-ops.d.ts.map +0 -1
- package/dist/validation/engine.d.ts.map +0 -1
- package/dist/validation/gap-check.d.ts.map +0 -1
- package/dist/validation/index.d.ts.map +0 -1
- package/dist/validation/manifest.d.ts.map +0 -1
- package/dist/validation/operation-gate-validators.d.ts.map +0 -1
- package/dist/validation/operation-verification-gates.d.ts.map +0 -1
- package/dist/validation/ops.d.ts.map +0 -1
- package/dist/validation/param-utils.d.ts.map +0 -1
- package/dist/validation/protocol-common.d.ts.map +0 -1
- package/dist/validation/protocols/_shared.d.ts.map +0 -1
- package/dist/validation/protocols/architecture-decision.d.ts.map +0 -1
- package/dist/validation/protocols/artifact-publish.d.ts.map +0 -1
- package/dist/validation/protocols/consensus.d.ts.map +0 -1
- package/dist/validation/protocols/contribution.d.ts.map +0 -1
- package/dist/validation/protocols/decomposition.d.ts.map +0 -1
- package/dist/validation/protocols/implementation.d.ts.map +0 -1
- package/dist/validation/protocols/provenance.d.ts.map +0 -1
- package/dist/validation/protocols/release.d.ts.map +0 -1
- package/dist/validation/protocols/research.d.ts.map +0 -1
- package/dist/validation/protocols/specification.d.ts.map +0 -1
- package/dist/validation/protocols/testing.d.ts.map +0 -1
- package/dist/validation/protocols/validation.d.ts.map +0 -1
- package/dist/validation/schema-integrity.d.ts.map +0 -1
- package/dist/validation/schema-validator.d.ts.map +0 -1
- package/dist/validation/validate-ops.d.ts.map +0 -1
- package/dist/validation/validation-rules.d.ts.map +0 -1
- package/dist/validation/verification.d.ts.map +0 -1
- package/dist/verification/evidence-atoms.d.ts.map +0 -1
- package/dist/verification/gates.d.ts.map +0 -1
- package/dist/verification/verify-tools.d.ts.map +0 -1
- package/dist/workgraph/containment.d.ts.map +0 -1
- package/dist/workgraph/index.d.ts.map +0 -1
- package/dist/workgraph/relations.d.ts.map +0 -1
- package/dist/workgraph/reparent-preflight.d.ts.map +0 -1
- package/dist/workgraph/scaffold-apply.d.ts.map +0 -1
- package/dist/workgraph/scaffold-plan.d.ts.map +0 -1
- package/dist/workgraph/scaffold-validate.d.ts.map +0 -1
- package/dist/workgraph/structure-validation.d.ts.map +0 -1
- package/dist/worktree/audit.d.ts.map +0 -1
- package/dist/worktree/effective-head.d.ts.map +0 -1
- package/dist/worktree/force-unlock.d.ts.map +0 -1
- package/dist/worktree/isolation.d.ts.map +0 -1
- package/dist/worktree/list.d.ts.map +0 -1
- package/dist/worktree/prune.d.ts.map +0 -1
- package/dist/worktree/sentinel-index.d.ts.map +0 -1
- package/dist/worktree/worktree-adopt.d.ts.map +0 -1
- package/dist/worktree-export.d.ts.map +0 -1
|
@@ -0,0 +1,1587 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Merge closes tasks (T14101, owner decision D11209).
|
|
3
|
+
*
|
|
4
|
+
* A merged PR whose required checks were green on its exact head closes the
|
|
5
|
+
* tasks its body names, with no agent step. CI never writes to a task store:
|
|
6
|
+
* the GitHub job only posts a receipt ({@link judgeMergedPr}); the store owner's
|
|
7
|
+
* machine applies it here ({@link sweepMergedClosures}), re-deriving everything
|
|
8
|
+
* from `gh` and recording through the same path as `cleo done --pr`
|
|
9
|
+
* (`recordTaskDone`, then `taskComplete`), so the same validators and audit
|
|
10
|
+
* apply. The sweep runs from the daemon loop, lazily (throttled) from the
|
|
11
|
+
* commands agents already run, and before `cleo release` decides what ships.
|
|
12
|
+
*
|
|
13
|
+
* PR body lines, one per task:
|
|
14
|
+
*
|
|
15
|
+
* - `Closes: T#### AC1,AC2` — binds those criteria and completes the task once
|
|
16
|
+
* the criteria every merged PR bound cover all of its criteria.
|
|
17
|
+
* - `Refs: T#### AC1` — binds those criteria; the task stays open.
|
|
18
|
+
*
|
|
19
|
+
* Every applied line writes one `merge_close` audit row keyed by
|
|
20
|
+
* (PR, merge commit, task), so a rerun records nothing twice.
|
|
21
|
+
*
|
|
22
|
+
* @task T14101
|
|
23
|
+
*/
|
|
24
|
+
import { execFileSync } from 'node:child_process';
|
|
25
|
+
import { closeSync, existsSync, linkSync, openSync, readFileSync, renameSync, statSync, unlinkSync, utimesSync, writeFileSync, } from 'node:fs';
|
|
26
|
+
import { homedir } from 'node:os';
|
|
27
|
+
import { join } from 'node:path';
|
|
28
|
+
import { discoveryEnv } from '../git/work-tree.js';
|
|
29
|
+
/** The audit action of an applied `Closes:` / `Refs:` line. */
|
|
30
|
+
export const MERGE_CLOSE_AUDIT_ACTION = 'merge_close';
|
|
31
|
+
/** The audit action of the one rerun of a merge commit's cancelled CI run (never repeated). */
|
|
32
|
+
export const MERGE_CLOSE_RERUN_ACTION = 'merge_close_rerun';
|
|
33
|
+
/** The audit action of a refusal already reported on the PR (posted once). */
|
|
34
|
+
export const MERGE_CLOSE_REFUSED_ACTION = 'merge_close_refused';
|
|
35
|
+
/** The lazy sweep runs at most this often per store. */
|
|
36
|
+
export const MERGE_SWEEP_INTERVAL_MS = 5 * 60_000;
|
|
37
|
+
/** A detached sweep child exits after this long, so a hung `gh` leaves no process behind. */
|
|
38
|
+
export const MERGE_SWEEP_CHILD_TIMEOUT_MS = 2 * 60_000;
|
|
39
|
+
/** The lock file, under `.cleo/`: held for the whole of one sweep. */
|
|
40
|
+
const SWEEP_LOCK_FILE = 'merge-sweep.lock';
|
|
41
|
+
/** The claim file, under `.cleo/`: its mtime is the last claimed sweep. */
|
|
42
|
+
const SWEEP_CLAIM_FILE = 'merge-sweep.claim';
|
|
43
|
+
/**
|
|
44
|
+
* Each sweep re-reads this far behind its high-water mark: GitHub's search
|
|
45
|
+
* index can list a PR some minutes after it merged, and re-reading an applied
|
|
46
|
+
* PR is a no-op (its `merge_close` audit row).
|
|
47
|
+
*/
|
|
48
|
+
export const MERGE_SWEEP_OVERLAP_MS = 15 * 60_000;
|
|
49
|
+
/**
|
|
50
|
+
* A sweep stops taking new PRs after this long and carries the rest on its
|
|
51
|
+
* waiting list, so it finishes inside a lazy child's {@link MERGE_SWEEP_CHILD_TIMEOUT_MS}.
|
|
52
|
+
*/
|
|
53
|
+
export const MERGE_SWEEP_MAX_RUN_MS = 90_000;
|
|
54
|
+
/**
|
|
55
|
+
* A sweep lock whose heartbeat is older than this is stale and may be taken:
|
|
56
|
+
* several times the longest a sweep runs ({@link MERGE_SWEEP_CHILD_TIMEOUT_MS}).
|
|
57
|
+
*/
|
|
58
|
+
export const MERGE_SWEEP_LOCK_STALE_MS = 5 * MERGE_SWEEP_CHILD_TIMEOUT_MS;
|
|
59
|
+
/** A waiting PR is first re-judged after this long; each further wait doubles it. */
|
|
60
|
+
export const MERGE_WAITING_FIRST_BACKOFF_MS = 5 * 60_000;
|
|
61
|
+
/** The longest a waiting PR goes between re-judgements. */
|
|
62
|
+
export const MERGE_WAITING_MAX_BACKOFF_MS = 6 * 60 * 60_000;
|
|
63
|
+
/** A PR still waiting this long after it first waited is refused, with one final comment. */
|
|
64
|
+
export const MERGE_WAITING_MAX_AGE_MS = 14 * 24 * 60 * 60_000;
|
|
65
|
+
/** A first sweep (no high-water mark yet) looks back this far. */
|
|
66
|
+
export const MERGE_SWEEP_LOOKBACK_MS = 7 * 24 * 60 * 60_000;
|
|
67
|
+
/** The merged PRs one `gh pr list` page returns. */
|
|
68
|
+
export const MERGE_SWEEP_PR_LIMIT = 50;
|
|
69
|
+
/**
|
|
70
|
+
* The most `gh pr list` pages one sweep reads. When more PRs merged than that,
|
|
71
|
+
* the unread (older) window is kept as a backlog the next sweep reads first,
|
|
72
|
+
* and the result reports `truncated`.
|
|
73
|
+
*/
|
|
74
|
+
export const MERGE_SWEEP_MAX_PAGES = 10;
|
|
75
|
+
/** Open issues with this label become tasks (T14104). */
|
|
76
|
+
export const MACOS_REGRESSION_LABEL = 'macos-regression';
|
|
77
|
+
/** The external-link provider that records which task an issue became. */
|
|
78
|
+
const ISSUE_LINK_PROVIDER = 'github-issue';
|
|
79
|
+
/** The throttle and high-water file, under `.cleo/`. */
|
|
80
|
+
const SWEEP_STATE_FILE = 'merge-sweep.json';
|
|
81
|
+
/** Attribution receipts (T14252) one sweep looks up or computes, at most. */
|
|
82
|
+
export const MERGE_ATTRIBUTION_PER_SWEEP = 20;
|
|
83
|
+
/** The commit status the pre-merge verdict check sets on an open PR's head. */
|
|
84
|
+
export const MERGE_CLOSE_STATUS_CONTEXT = 'cleo/merge-close';
|
|
85
|
+
/**
|
|
86
|
+
* Why the criteria a line names are not independently verified on the PR's
|
|
87
|
+
* head (T14122), one reason per criterion, from the shared judge
|
|
88
|
+
* (`judgeReviewVerdicts`, the same text `cleo review check` prints): no
|
|
89
|
+
* verdict, an unmet one, one on an older head (a push after review), or one
|
|
90
|
+
* by the task's own author. Empty when every criterion is met.
|
|
91
|
+
*
|
|
92
|
+
* @param verdicts - The task's verdicts on the PR.
|
|
93
|
+
* @param acs - The criteria the line names.
|
|
94
|
+
* @param headSha - The PR's final head.
|
|
95
|
+
* @param texts - The criteria's current texts by alias: a verdict on an edited criterion counts for nothing (T14259).
|
|
96
|
+
* @returns The reasons.
|
|
97
|
+
*/
|
|
98
|
+
export async function unverifiedCriteria(verdicts, acs, headSha, texts) {
|
|
99
|
+
if (headSha === null)
|
|
100
|
+
return acs.map((ac) => `${ac}: the PR's head is unknown`);
|
|
101
|
+
const { judgeReviewVerdicts } = await import('./review-verdict.js');
|
|
102
|
+
return judgeReviewVerdicts(verdicts, acs, headSha, texts).gaps.map((gap) => gap.reason);
|
|
103
|
+
}
|
|
104
|
+
/** A task's current criterion texts by alias, for the verdicts' text binding (T14259). */
|
|
105
|
+
async function currentTexts(storeRoot, taskId) {
|
|
106
|
+
const { currentAcTexts } = await import('./review-verdict.js');
|
|
107
|
+
return currentAcTexts(storeRoot, taskId);
|
|
108
|
+
}
|
|
109
|
+
const DIRECTIVE_LINE = /^[ \t>*-]*(Closes|Refs)[ \t]*:[ \t]*(.*)$/gim;
|
|
110
|
+
const DIRECTIVE_PAYLOAD = /^(T\d+)\s+(AC\d+(?:\s*,\s*AC\d+)*)\s*$/i;
|
|
111
|
+
/**
|
|
112
|
+
* Parse a PR body's `Closes:` / `Refs:` lines (T14101). A line whose payload
|
|
113
|
+
* does not start with a task id (`Closes: #123`, GitHub's own syntax) is not
|
|
114
|
+
* CLEO's and is ignored; a CLEO line that is malformed, or names a task twice,
|
|
115
|
+
* is an error with the fix.
|
|
116
|
+
*
|
|
117
|
+
* @param body - The PR body.
|
|
118
|
+
* @returns The lines, and the errors.
|
|
119
|
+
* @example
|
|
120
|
+
* ```ts
|
|
121
|
+
* parseMergeDirectives('Closes: T14101 AC1,AC2');
|
|
122
|
+
* // { directives: [{ kind: 'closes', taskId: 'T14101', acs: ['AC1', 'AC2'] }], errors: [] }
|
|
123
|
+
* ```
|
|
124
|
+
*/
|
|
125
|
+
export function parseMergeDirectives(body) {
|
|
126
|
+
const directives = [];
|
|
127
|
+
const errors = [];
|
|
128
|
+
for (const match of body.matchAll(DIRECTIVE_LINE)) {
|
|
129
|
+
const keyword = (match[1] ?? '').toLowerCase() === 'closes' ? 'Closes' : 'Refs';
|
|
130
|
+
const payload = (match[2] ?? '').replace(/`/g, '').trim();
|
|
131
|
+
if (!/^T\d/i.test(payload))
|
|
132
|
+
continue;
|
|
133
|
+
const parsed = DIRECTIVE_PAYLOAD.exec(payload);
|
|
134
|
+
if (!parsed) {
|
|
135
|
+
errors.push(`"${keyword}: ${payload}" is not "${keyword}: T#### AC1,AC2": name the task, then every criterion this PR delivers (no wildcard).`);
|
|
136
|
+
continue;
|
|
137
|
+
}
|
|
138
|
+
const taskId = (parsed[1] ?? '').toUpperCase();
|
|
139
|
+
if (directives.some((d) => d.taskId === taskId)) {
|
|
140
|
+
errors.push(`${taskId} is named on more than one Closes:/Refs: line; use one line per task.`);
|
|
141
|
+
continue;
|
|
142
|
+
}
|
|
143
|
+
const acs = [...new Set((parsed[2] ?? '').split(',').map((a) => a.trim().toUpperCase()))];
|
|
144
|
+
directives.push({ kind: keyword === 'Closes' ? 'closes' : 'refs', taskId, acs });
|
|
145
|
+
}
|
|
146
|
+
return { directives, errors };
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Judge a merged PR without a task store (T14101): its lines, and whether its
|
|
150
|
+
* required checks were green on its exact head (`statusCheckRollup` is the
|
|
151
|
+
* head's checks). This is the CI job's receipt; the store side judges again.
|
|
152
|
+
*
|
|
153
|
+
* @param pr - The merged PR.
|
|
154
|
+
* @param required - Required check names.
|
|
155
|
+
* @returns The receipt.
|
|
156
|
+
*/
|
|
157
|
+
export async function judgeMergedPr(pr, required) {
|
|
158
|
+
const { directives, errors } = parseMergeDirectives(pr.body);
|
|
159
|
+
const { evaluateRollup } = await import('../release/pr-evidence.js');
|
|
160
|
+
const ci = evaluateRollup(pr.statusCheckRollup ?? [], required, { prNumber: pr.number });
|
|
161
|
+
const closesNothing = errors.length > 0
|
|
162
|
+
? `its Closes:/Refs: lines are malformed: ${errors.join(' ')}`
|
|
163
|
+
: directives.length === 0
|
|
164
|
+
? 'its body names no task (add "Closes: T#### AC1,AC2" or "Refs: T#### AC1").'
|
|
165
|
+
: !ci.ok
|
|
166
|
+
? `its required checks were not green on its head ${pr.headRefOid?.slice(0, 12) ?? '(unknown)'}: ${ci.reason}`
|
|
167
|
+
: undefined;
|
|
168
|
+
return {
|
|
169
|
+
prNumber: pr.number,
|
|
170
|
+
mergeSha: pr.mergeCommitSha,
|
|
171
|
+
headSha: pr.headRefOid,
|
|
172
|
+
directives,
|
|
173
|
+
errors,
|
|
174
|
+
ciGreen: ci.ok,
|
|
175
|
+
...(ci.ok ? {} : { ciReason: ci.reason }),
|
|
176
|
+
...(closesNothing !== undefined ? { closesNothing } : {}),
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* The PRs one sweep reads (T14101): first the recorded backlog windows,
|
|
181
|
+
* oldest first, then the window from `since` to now, all within one page
|
|
182
|
+
* budget. A window the budget cuts short stays in the backlog with its
|
|
183
|
+
* `until` lowered to what was read, so every window drains; a window the
|
|
184
|
+
* budget never reached stays whole. `newestRead` is the newest merge read in
|
|
185
|
+
* the new window (the next high-water mark), unset when it was not read.
|
|
186
|
+
*/
|
|
187
|
+
async function listSweepWindows(deps, root, state, since, explicitSince) {
|
|
188
|
+
const budget = { pages: MERGE_SWEEP_MAX_PAGES };
|
|
189
|
+
const prior = state.backlog;
|
|
190
|
+
const recorded = prior === undefined ? [] : Array.isArray(prior) ? prior : [prior];
|
|
191
|
+
const backlog = [];
|
|
192
|
+
const byNumber = new Map();
|
|
193
|
+
for (const window of [...recorded].sort((a, b) => a.since.localeCompare(b.since))) {
|
|
194
|
+
// An explicit --since reads only its own window; the backlog waits, kept.
|
|
195
|
+
if (budget.pages === 0 || explicitSince) {
|
|
196
|
+
backlog.push(window);
|
|
197
|
+
continue;
|
|
198
|
+
}
|
|
199
|
+
const read = await readMergedWindow(deps, root, window.since, window.until, budget);
|
|
200
|
+
if (read === null)
|
|
201
|
+
return null;
|
|
202
|
+
for (const pr of read.prs)
|
|
203
|
+
byNumber.set(pr.number, pr);
|
|
204
|
+
if (read.unreadBefore !== undefined)
|
|
205
|
+
backlog.push({ since: window.since, until: read.unreadBefore });
|
|
206
|
+
}
|
|
207
|
+
let newestRead;
|
|
208
|
+
if (budget.pages > 0) {
|
|
209
|
+
const read = await readMergedWindow(deps, root, since, undefined, budget);
|
|
210
|
+
if (read === null)
|
|
211
|
+
return null;
|
|
212
|
+
for (const pr of read.prs) {
|
|
213
|
+
byNumber.set(pr.number, pr);
|
|
214
|
+
if (newestRead === undefined || pr.mergedAt > newestRead)
|
|
215
|
+
newestRead = pr.mergedAt;
|
|
216
|
+
}
|
|
217
|
+
// Pages run newest first, so a cut-short window's unread part is below what was read.
|
|
218
|
+
if (read.unreadBefore !== undefined)
|
|
219
|
+
backlog.push({ since, until: read.unreadBefore });
|
|
220
|
+
}
|
|
221
|
+
return {
|
|
222
|
+
prs: [...byNumber.values()],
|
|
223
|
+
backlog,
|
|
224
|
+
...(newestRead !== undefined ? { newestRead } : {}),
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Read every PR merged in `[since, until]`, newest first, a page at a time
|
|
229
|
+
* (each page's oldest merge is the next page's `until`), until a short page
|
|
230
|
+
* or the page budget runs out. Null when `gh` failed.
|
|
231
|
+
*/
|
|
232
|
+
async function readMergedWindow(deps, root, since, until, budget) {
|
|
233
|
+
const seen = new Map();
|
|
234
|
+
let upper = until;
|
|
235
|
+
while (budget.pages > 0) {
|
|
236
|
+
budget.pages -= 1;
|
|
237
|
+
const page = await deps.listMergedPrs(root, since, upper);
|
|
238
|
+
if (page === null)
|
|
239
|
+
return null;
|
|
240
|
+
const fresh = page.filter((pr) => !seen.has(pr.number));
|
|
241
|
+
for (const pr of fresh)
|
|
242
|
+
seen.set(pr.number, pr);
|
|
243
|
+
if (page.length < MERGE_SWEEP_PR_LIMIT)
|
|
244
|
+
return { prs: [...seen.values()] };
|
|
245
|
+
// A full page of merges in one instant is not progress; leave the rest.
|
|
246
|
+
if (fresh.length === 0)
|
|
247
|
+
break;
|
|
248
|
+
upper = page.reduce((min, pr) => (pr.mergedAt < min ? pr.mergedAt : min), page[0]?.mergedAt ?? '');
|
|
249
|
+
}
|
|
250
|
+
return { prs: [...seen.values()], unreadBefore: upper ?? new Date().toISOString() };
|
|
251
|
+
}
|
|
252
|
+
function sweepStatePath(storeRoot) {
|
|
253
|
+
return join(storeRoot, '.cleo', SWEEP_STATE_FILE);
|
|
254
|
+
}
|
|
255
|
+
function readSweepState(storeRoot) {
|
|
256
|
+
try {
|
|
257
|
+
const parsed = JSON.parse(readFileSync(sweepStatePath(storeRoot), 'utf-8'));
|
|
258
|
+
return typeof parsed === 'object' && parsed !== null ? parsed : {};
|
|
259
|
+
}
|
|
260
|
+
catch {
|
|
261
|
+
return {};
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
/** Write the state tmp-then-rename, so a reader never sees half a file. */
|
|
265
|
+
function writeSweepState(storeRoot, state) {
|
|
266
|
+
const path = sweepStatePath(storeRoot);
|
|
267
|
+
const tmp = `${path}.${process.pid}.tmp`;
|
|
268
|
+
writeFileSync(tmp, `${JSON.stringify(state, null, 2)}\n`);
|
|
269
|
+
renameSync(tmp, path);
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Take the sweep lock for a store (T14101): an `O_EXCL` lock file held for
|
|
273
|
+
* the whole sweep, its mtime refreshed while the sweep runs. A lock whose
|
|
274
|
+
* heartbeat is older than {@link MERGE_SWEEP_LOCK_STALE_MS} is moved aside by
|
|
275
|
+
* `rename` (only one caller's rename succeeds) and taken. Null when another
|
|
276
|
+
* sweep holds it.
|
|
277
|
+
*
|
|
278
|
+
* @param storeRoot - CLEO store root.
|
|
279
|
+
* @returns The release function, or null.
|
|
280
|
+
*/
|
|
281
|
+
export function acquireMergeSweepLock(storeRoot, now = Date.now) {
|
|
282
|
+
return acquireHeartbeatLock(join(storeRoot, '.cleo', SWEEP_LOCK_FILE), MERGE_SWEEP_LOCK_STALE_MS, now);
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Take an `O_EXCL` lock file held for a whole run, its mtime refreshed every
|
|
286
|
+
* 30 s while the run lasts (the lock behind {@link acquireMergeSweepLock};
|
|
287
|
+
* the worktree census uses it too, T14275). A lock whose heartbeat is older
|
|
288
|
+
* than `staleMs` is moved aside by `rename` (only one caller's rename
|
|
289
|
+
* succeeds) and taken. Null when another run holds it.
|
|
290
|
+
*
|
|
291
|
+
* @param lock - The lock file path.
|
|
292
|
+
* @param staleMs - Heartbeat age after which the lock is stale.
|
|
293
|
+
* @param now - Clock (ms).
|
|
294
|
+
* @returns The release function, or null.
|
|
295
|
+
*/
|
|
296
|
+
export function acquireHeartbeatLock(lock, staleMs, now = Date.now) {
|
|
297
|
+
let judged = null;
|
|
298
|
+
try {
|
|
299
|
+
if (now() - statSync(lock).mtimeMs < staleMs)
|
|
300
|
+
return null;
|
|
301
|
+
judged = readFileSync(lock, 'utf-8');
|
|
302
|
+
}
|
|
303
|
+
catch (err) {
|
|
304
|
+
if (err.code !== 'ENOENT')
|
|
305
|
+
return null;
|
|
306
|
+
}
|
|
307
|
+
if (judged !== null && !stealStaleLock(lock, judged))
|
|
308
|
+
return null;
|
|
309
|
+
const token = `${process.pid}:${Date.now()}:${Math.random()}`;
|
|
310
|
+
try {
|
|
311
|
+
const fd = openSync(lock, 'wx');
|
|
312
|
+
writeFileSync(fd, token);
|
|
313
|
+
closeSync(fd);
|
|
314
|
+
}
|
|
315
|
+
catch {
|
|
316
|
+
return null;
|
|
317
|
+
}
|
|
318
|
+
// T14139: a third party may have swapped the lock between our steal and our
|
|
319
|
+
// create; sweep only if the lock path holds our own token.
|
|
320
|
+
if (!lockHolds(lock, token))
|
|
321
|
+
return null;
|
|
322
|
+
const heartbeat = setInterval(() => {
|
|
323
|
+
try {
|
|
324
|
+
const now = new Date();
|
|
325
|
+
utimesSync(lock, now, now);
|
|
326
|
+
}
|
|
327
|
+
catch {
|
|
328
|
+
// A lost lock is noticed at release.
|
|
329
|
+
}
|
|
330
|
+
}, 30_000);
|
|
331
|
+
heartbeat.unref();
|
|
332
|
+
return () => {
|
|
333
|
+
clearInterval(heartbeat);
|
|
334
|
+
try {
|
|
335
|
+
if (lockHolds(lock, token))
|
|
336
|
+
unlinkSync(lock);
|
|
337
|
+
}
|
|
338
|
+
catch {
|
|
339
|
+
// Already gone or taken over: nothing of ours to remove.
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Whether the lock path holds `token` (T14139).
|
|
345
|
+
*
|
|
346
|
+
* @param lock - The lock path.
|
|
347
|
+
* @param token - The token expected.
|
|
348
|
+
* @returns True when the lock file reads exactly `token`.
|
|
349
|
+
* @internal Exported for tests.
|
|
350
|
+
*/
|
|
351
|
+
export function lockHolds(lock, token) {
|
|
352
|
+
try {
|
|
353
|
+
return readFileSync(lock, 'utf-8') === token;
|
|
354
|
+
}
|
|
355
|
+
catch {
|
|
356
|
+
return false;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* Move aside the stale lock whose token was `judged`, and only that one: rename
|
|
361
|
+
* it to a unique name and read the token there. Another stealer may have
|
|
362
|
+
* replaced the stale lock with a fresh one between the read and the rename; if
|
|
363
|
+
* the renamed file is not the judged one, put it back (`link` refuses to
|
|
364
|
+
* clobber a lock created meanwhile) and give up.
|
|
365
|
+
*
|
|
366
|
+
* @param lock - The lock path.
|
|
367
|
+
* @param judged - The token read from the lock judged stale.
|
|
368
|
+
* @returns True when the judged lock was removed.
|
|
369
|
+
* @internal Exported for tests.
|
|
370
|
+
*/
|
|
371
|
+
export function stealStaleLock(lock, judged) {
|
|
372
|
+
const aside = `${lock}.${process.pid}.${Date.now()}.${Math.random().toString(36).slice(2)}`;
|
|
373
|
+
try {
|
|
374
|
+
renameSync(lock, aside);
|
|
375
|
+
}
|
|
376
|
+
catch {
|
|
377
|
+
return false;
|
|
378
|
+
}
|
|
379
|
+
let got = null;
|
|
380
|
+
try {
|
|
381
|
+
got = readFileSync(aside, 'utf-8');
|
|
382
|
+
}
|
|
383
|
+
catch {
|
|
384
|
+
// Unreadable: treat as not the judged lock.
|
|
385
|
+
}
|
|
386
|
+
if (got !== judged) {
|
|
387
|
+
try {
|
|
388
|
+
linkSync(aside, lock);
|
|
389
|
+
}
|
|
390
|
+
catch {
|
|
391
|
+
// A newer lock already stands; it is the live one.
|
|
392
|
+
}
|
|
393
|
+
try {
|
|
394
|
+
unlinkSync(aside);
|
|
395
|
+
}
|
|
396
|
+
catch {
|
|
397
|
+
// Nothing left to clean.
|
|
398
|
+
}
|
|
399
|
+
return false;
|
|
400
|
+
}
|
|
401
|
+
try {
|
|
402
|
+
unlinkSync(aside);
|
|
403
|
+
}
|
|
404
|
+
catch {
|
|
405
|
+
// Already gone.
|
|
406
|
+
}
|
|
407
|
+
return true;
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Claim the next sweep for a store, atomically (T14101): true for exactly one
|
|
411
|
+
* caller per {@link MERGE_SWEEP_INTERVAL_MS}. A claim older than the interval
|
|
412
|
+
* is moved aside by `rename` (only one caller's rename succeeds), and the new
|
|
413
|
+
* claim is created with `O_EXCL`, so two concurrent commands never start two
|
|
414
|
+
* sweeps.
|
|
415
|
+
*
|
|
416
|
+
* @param storeRoot - CLEO store root.
|
|
417
|
+
* @param now - Current time (ms).
|
|
418
|
+
* @returns True when this caller owns the sweep.
|
|
419
|
+
*/
|
|
420
|
+
export function claimMergeSweep(storeRoot, now = Date.now()) {
|
|
421
|
+
return claimAtMostEvery(join(storeRoot, '.cleo', SWEEP_CLAIM_FILE), MERGE_SWEEP_INTERVAL_MS, now);
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* Claim a run that happens at most once per `intervalMs`, atomically (the
|
|
425
|
+
* claim behind {@link claimMergeSweep}; the daily worktree census uses it too,
|
|
426
|
+
* T14275): true for exactly one caller per interval. The claim file's mtime is
|
|
427
|
+
* the last claimed run.
|
|
428
|
+
*
|
|
429
|
+
* @param claim - The claim file path.
|
|
430
|
+
* @param intervalMs - Minimum time between claimed runs.
|
|
431
|
+
* @param now - Current time (ms).
|
|
432
|
+
* @returns True when this caller owns the run.
|
|
433
|
+
*/
|
|
434
|
+
export function claimAtMostEvery(claim, intervalMs, now = Date.now()) {
|
|
435
|
+
try {
|
|
436
|
+
if (now - statSync(claim).mtimeMs < intervalMs)
|
|
437
|
+
return false;
|
|
438
|
+
const stale = `${claim}.${process.pid}.${now}`;
|
|
439
|
+
renameSync(claim, stale);
|
|
440
|
+
unlinkSync(stale);
|
|
441
|
+
}
|
|
442
|
+
catch (err) {
|
|
443
|
+
// No claim yet is the only error that leaves the sweep ours to take.
|
|
444
|
+
if (err.code !== 'ENOENT')
|
|
445
|
+
return false;
|
|
446
|
+
}
|
|
447
|
+
try {
|
|
448
|
+
closeSync(openSync(claim, 'wx'));
|
|
449
|
+
const claimedAt = new Date(now);
|
|
450
|
+
utimesSync(claim, claimedAt, claimedAt);
|
|
451
|
+
return true;
|
|
452
|
+
}
|
|
453
|
+
catch {
|
|
454
|
+
return false;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* Whether a read command may start a background sweep (T14101): never in CI,
|
|
459
|
+
* under vitest, when turned off (`CLEO_MERGE_SWEEP=off`), inside a process git
|
|
460
|
+
* started (T14189), or without `gh` credentials (a token in the environment,
|
|
461
|
+
* or `gh`'s hosts file).
|
|
462
|
+
*
|
|
463
|
+
* Git exports `GIT_EXEC_PATH` to every program it runs (hooks, aliases,
|
|
464
|
+
* `rebase --exec`), `GIT_INDEX_FILE` to commit hooks and `GIT_DIR` to hooks in
|
|
465
|
+
* a linked worktree (observed on git 2.5x: pre-commit, commit-msg and
|
|
466
|
+
* post-commit). A hook's `cleo show` has no reason to start a sweep that
|
|
467
|
+
* deletes branches and worktrees after the commit returns.
|
|
468
|
+
*
|
|
469
|
+
* @param env - The environment.
|
|
470
|
+
* @param home - The home directory (for `gh`'s default config).
|
|
471
|
+
* @returns True when a detached sweep may be spawned.
|
|
472
|
+
*/
|
|
473
|
+
export function mergeSweepSpawnAllowed(env, home = homedir()) {
|
|
474
|
+
if (env['CI'] === 'true' || env['VITEST'] !== undefined)
|
|
475
|
+
return false;
|
|
476
|
+
if (env['CLEO_MERGE_SWEEP'] === 'off')
|
|
477
|
+
return false;
|
|
478
|
+
if (env['GIT_EXEC_PATH'] || env['GIT_INDEX_FILE'] || env['GIT_DIR'])
|
|
479
|
+
return false;
|
|
480
|
+
if (env['GH_TOKEN'] || env['GITHUB_TOKEN'])
|
|
481
|
+
return true;
|
|
482
|
+
return existsSync(join(env['GH_CONFIG_DIR'] ?? join(home, '.config', 'gh'), 'hosts.yml'));
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
* The environment of the detached merge sweep (T14189). A read command run
|
|
486
|
+
* from a git hook (commit-msg runs `cleo show`) carries the hook's `GIT_DIR`
|
|
487
|
+
* and `GIT_INDEX_FILE`; the sweep outlives the hook, so it must act on each
|
|
488
|
+
* project's own repository, never the hook's: every ambient repo variable is
|
|
489
|
+
* stripped, and the sweep marks itself a child that never spawns another.
|
|
490
|
+
*
|
|
491
|
+
* @param env - The parent's environment.
|
|
492
|
+
* @returns The child's environment.
|
|
493
|
+
* @example
|
|
494
|
+
* ```ts
|
|
495
|
+
* spawn(cli, ['done', '--from-merge', 'all'], { env: mergeSweepChildEnv(process.env) });
|
|
496
|
+
* ```
|
|
497
|
+
* @task T14189
|
|
498
|
+
*/
|
|
499
|
+
export function mergeSweepChildEnv(env) {
|
|
500
|
+
return { ...discoveryEnv(env), CLEO_MERGE_SWEEP: 'off', CLEO_MERGE_SWEEP_CHILD: '1' };
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* Why the lazy merge sweep must not start for this invocation, or null
|
|
504
|
+
* (T14168). A CLI built inside a CLEO worktree carries unreleased code, so it
|
|
505
|
+
* never sweeps the real store; a `release` command run from a CLEO worktree
|
|
506
|
+
* never sweeps the project checkout it was not started in (T14160).
|
|
507
|
+
*
|
|
508
|
+
* @param command - The CLI command being run.
|
|
509
|
+
* @param cwd - Where the command was started (the CLI passes its own cwd).
|
|
510
|
+
* @returns The reason the sweep is skipped, or null when it may start.
|
|
511
|
+
*
|
|
512
|
+
* @example
|
|
513
|
+
* ```ts
|
|
514
|
+
* if (await lazySweepBlockedReason('release', invocationCwd)) return; // no background sweep
|
|
515
|
+
* ```
|
|
516
|
+
*
|
|
517
|
+
* @task T14168
|
|
518
|
+
*/
|
|
519
|
+
export async function lazySweepBlockedReason(command, cwd) {
|
|
520
|
+
const { devBuildWorktree } = await import('../store/worktree-build-guard.js');
|
|
521
|
+
const buildWorktree = devBuildWorktree();
|
|
522
|
+
if (buildWorktree !== null)
|
|
523
|
+
return `this CLI was built in the worktree ${buildWorktree}; a dev build never sweeps the real store`;
|
|
524
|
+
if (command === 'release') {
|
|
525
|
+
const { resolveWorktreeRouting } = await import('../paths.js');
|
|
526
|
+
if (resolveWorktreeRouting(cwd).isWorktree)
|
|
527
|
+
return 'release ran from a CLEO worktree; the sweep runs only from the project checkout';
|
|
528
|
+
}
|
|
529
|
+
return null;
|
|
530
|
+
}
|
|
531
|
+
/** The criteria every earlier applied line bound for a task, and whether this PR was applied. */
|
|
532
|
+
async function priorBindings(storeRoot, taskId, prNumber, mergeSha) {
|
|
533
|
+
const { getTaskAccessor } = await import('../store/data-accessor.js');
|
|
534
|
+
const accessor = await getTaskAccessor(storeRoot);
|
|
535
|
+
const rows = await accessor.queryAuditLog({
|
|
536
|
+
taskIds: [taskId],
|
|
537
|
+
actions: [MERGE_CLOSE_AUDIT_ACTION, MERGE_CLOSE_REFUSED_ACTION],
|
|
538
|
+
});
|
|
539
|
+
const acs = new Set();
|
|
540
|
+
const reported = new Set();
|
|
541
|
+
let applied = false;
|
|
542
|
+
for (const row of rows) {
|
|
543
|
+
const details = JSON.parse(row.detailsJson ?? '{}');
|
|
544
|
+
const samePr = details.prNumber === prNumber && (details.mergeSha ?? null) === mergeSha;
|
|
545
|
+
if (row.action === MERGE_CLOSE_REFUSED_ACTION) {
|
|
546
|
+
if (samePr)
|
|
547
|
+
reported.add(details.outcome ?? 'refused');
|
|
548
|
+
continue;
|
|
549
|
+
}
|
|
550
|
+
for (const ac of details.acs ?? [])
|
|
551
|
+
acs.add(ac);
|
|
552
|
+
if (samePr)
|
|
553
|
+
applied = true;
|
|
554
|
+
}
|
|
555
|
+
return { acs, applied, reported };
|
|
556
|
+
}
|
|
557
|
+
async function appendMergeAudit(storeRoot, action, taskId, details) {
|
|
558
|
+
const { getTaskAccessor } = await import('../store/data-accessor.js');
|
|
559
|
+
const { randomBytes } = await import('node:crypto');
|
|
560
|
+
await (await getTaskAccessor(storeRoot)).appendLog({
|
|
561
|
+
id: `log-${Math.floor(Date.now() / 1000)}-${randomBytes(3).toString('hex')}`,
|
|
562
|
+
timestamp: new Date().toISOString(),
|
|
563
|
+
action,
|
|
564
|
+
taskId,
|
|
565
|
+
actor: 'merge-close',
|
|
566
|
+
details,
|
|
567
|
+
});
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* Why a refused record is only waiting on the merge commit's own CI, or null
|
|
571
|
+
* when the refusal is real (T14101): the newest run of the required workflow
|
|
572
|
+
* on the merge commit is missing, unfinished, cancelled or skipped. A
|
|
573
|
+
* cancelled or skipped run is rerun once per merge commit, ever (an audit row
|
|
574
|
+
* remembers it), and only where {@link MergeCloseDeps.canRerun} allows
|
|
575
|
+
* (opt-in). A failed run is never rerun: it waits while `refusal` says a green
|
|
576
|
+
* run on the default branch's head will stand in (T14434, owner decision
|
|
577
|
+
* D11241), and otherwise refuses, naming the commands that close the task.
|
|
578
|
+
*/
|
|
579
|
+
async function mergeCiWait(storeRoot, root, pr, taskId, required, deps, dryRun, refusal) {
|
|
580
|
+
const sha = pr.mergeCommitSha;
|
|
581
|
+
if (sha === null)
|
|
582
|
+
return null;
|
|
583
|
+
const workflow = required[0] ?? 'CI';
|
|
584
|
+
const run = await deps.mergeCiRun(root, sha, workflow);
|
|
585
|
+
const short = sha.slice(0, 12);
|
|
586
|
+
if (run === null)
|
|
587
|
+
return { reason: `no ${workflow} run on merge commit ${short} yet`, reran: false };
|
|
588
|
+
if (run.status !== 'completed')
|
|
589
|
+
return { reason: `${workflow} on merge commit ${short} is ${run.status}`, reran: false };
|
|
590
|
+
const { CURRENT_HEAD_STAND_IN_OPEN } = await import('../release/ci-evidence.js');
|
|
591
|
+
// T14434: the ci: refusal says so while only a green head run is missing.
|
|
592
|
+
const standInOpen = refusal.includes(CURRENT_HEAD_STAND_IN_OPEN);
|
|
593
|
+
const recheck = `re-checked every sweep; \`cleo done --from-merge ${pr.number}\` re-checks now`;
|
|
594
|
+
if (run.conclusion === 'failure' || run.conclusion === 'timed_out') {
|
|
595
|
+
if (standInOpen)
|
|
596
|
+
return {
|
|
597
|
+
reason: `${workflow} failed on merge commit ${short}; waiting for a green ${workflow} run on the default branch's head, which stands in (${recheck}): ${refusal}`,
|
|
598
|
+
reran: false,
|
|
599
|
+
};
|
|
600
|
+
// T14299, T14434: a failed run is never rerun. Name the commands that
|
|
601
|
+
// close the task, never `cleo done --plan`, which offers the refused ci:<pr>.
|
|
602
|
+
return {
|
|
603
|
+
reason: `${workflow} failed on merge commit ${short} and no later run stands in. To close ${taskId}, on the default branch's head run ` +
|
|
604
|
+
`\`cleo verify ${taskId} --gate testsPassed --evidence tool:test-affected\` and ` +
|
|
605
|
+
`\`cleo verify ${taskId} --gate qaPassed --evidence "tool:lint;tool:typecheck"\`, then \`cleo complete ${taskId}\``,
|
|
606
|
+
reran: false,
|
|
607
|
+
final: true,
|
|
608
|
+
};
|
|
609
|
+
}
|
|
610
|
+
if (run.conclusion !== 'cancelled' && run.conclusion !== 'skipped')
|
|
611
|
+
return null;
|
|
612
|
+
const { getTaskAccessor } = await import('../store/data-accessor.js');
|
|
613
|
+
const accessor = await getTaskAccessor(storeRoot);
|
|
614
|
+
const rows = await accessor.queryAuditLog({ actions: [MERGE_CLOSE_RERUN_ACTION] });
|
|
615
|
+
const already = rows.some((row) => JSON.parse(row.detailsJson ?? '{}').mergeSha === sha);
|
|
616
|
+
const was = `${workflow} on merge commit ${short} was ${run.conclusion} and no later run stands in`;
|
|
617
|
+
if (already)
|
|
618
|
+
return { reason: `${was}; its one rerun is done, waiting for it`, reran: false };
|
|
619
|
+
if (dryRun || !deps.canRerun())
|
|
620
|
+
return {
|
|
621
|
+
reason: standInOpen
|
|
622
|
+
? `${was} yet; waiting for a green ${workflow} run on the default branch's head, which stands in (${recheck})`
|
|
623
|
+
: `${was}; waiting (\`gh run rerun ${run.runId}\` reruns it; CLEO_MERGE_SWEEP_RERUN=1 lets the sweep rerun it once)`,
|
|
624
|
+
reran: false,
|
|
625
|
+
};
|
|
626
|
+
if (!(await deps.rerunRun(root, run.runId)))
|
|
627
|
+
return {
|
|
628
|
+
reason: `${was}; the rerun of run ${run.runId} failed, retrying next sweep`,
|
|
629
|
+
reran: false,
|
|
630
|
+
};
|
|
631
|
+
await appendMergeAudit(storeRoot, MERGE_CLOSE_RERUN_ACTION, taskId, {
|
|
632
|
+
prNumber: pr.number,
|
|
633
|
+
mergeSha: sha,
|
|
634
|
+
runId: run.runId,
|
|
635
|
+
});
|
|
636
|
+
return { reason: `${was}; reran run ${run.runId}`, reran: true };
|
|
637
|
+
}
|
|
638
|
+
/** Whether a merged PR's own head still had required checks running (a pending, not a failed, CI). */
|
|
639
|
+
function headCiUnfinished(pr) {
|
|
640
|
+
return (pr.statusCheckRollup ?? []).some((check) => check.status !== undefined && check.status !== 'COMPLETED');
|
|
641
|
+
}
|
|
642
|
+
/** Apply one line of one merged PR to its task. */
|
|
643
|
+
async function applyDirective(storeRoot, root, required, pr, receipt, directive, deps, dryRun) {
|
|
644
|
+
const { taskId, acs } = directive;
|
|
645
|
+
const base = { taskId, acs };
|
|
646
|
+
const { getTaskAccessor } = await import('../store/data-accessor.js');
|
|
647
|
+
const accessor = await getTaskAccessor(storeRoot);
|
|
648
|
+
const task = await accessor.loadSingleTask(taskId);
|
|
649
|
+
if (!task)
|
|
650
|
+
return { ...base, action: 'refused', reason: `${taskId} is not a task in this store.` };
|
|
651
|
+
const prior = await priorBindings(storeRoot, taskId, pr.number, pr.mergeCommitSha);
|
|
652
|
+
if (prior.applied)
|
|
653
|
+
return { ...base, action: 'already', reason: `PR #${pr.number} was already applied.` };
|
|
654
|
+
if (task.status === 'done' || task.status === 'cancelled')
|
|
655
|
+
return { ...base, action: 'already', reason: `${taskId} is already ${task.status}.` };
|
|
656
|
+
const own = (await accessor.getAcRows(taskId))
|
|
657
|
+
.filter((row) => row.kind !== 'child_task')
|
|
658
|
+
.map((row) => `AC${row.ordinal}`);
|
|
659
|
+
const unknown = acs.filter((ac) => !own.includes(ac));
|
|
660
|
+
if (unknown.length > 0)
|
|
661
|
+
return {
|
|
662
|
+
...base,
|
|
663
|
+
action: 'refused',
|
|
664
|
+
reason: `${taskId} has no ${unknown.join(', ')} (its criteria are ${own.join(', ') || 'none'}).`,
|
|
665
|
+
};
|
|
666
|
+
// A dry run before merge checks the lines against the store; CI and the
|
|
667
|
+
// recorded evidence are judged once the PR has merged.
|
|
668
|
+
const open = pr.mergedAt === '';
|
|
669
|
+
// Only failed CI, an unknown task and an unknown criterion are final; every
|
|
670
|
+
// other gap waits and is re-judged each sweep (a later verdict, a later
|
|
671
|
+
// Refs: merge, a transient gh or store failure).
|
|
672
|
+
if (!open && !receipt.ciGreen) {
|
|
673
|
+
const reason = receipt.closesNothing ?? 'CI was not green.';
|
|
674
|
+
return headCiUnfinished(pr)
|
|
675
|
+
? { ...base, action: 'waiting', reason, ciWait: true }
|
|
676
|
+
: { ...base, action: 'refused', reason };
|
|
677
|
+
}
|
|
678
|
+
// T14122 (D11211): satisfies: comes only from an independent reviewer's
|
|
679
|
+
// `met` verdict on the PR's final head, never from the author's line.
|
|
680
|
+
const verdicts = deps.reviewVerdicts
|
|
681
|
+
? await deps.reviewVerdicts(storeRoot, taskId, pr.number)
|
|
682
|
+
: [];
|
|
683
|
+
const unverified = await unverifiedCriteria(verdicts, acs, pr.headRefOid, await currentTexts(storeRoot, taskId));
|
|
684
|
+
if (unverified.length > 0)
|
|
685
|
+
return {
|
|
686
|
+
...base,
|
|
687
|
+
action: 'waiting',
|
|
688
|
+
reason: `${NOT_VERIFIED} ${unverified.join('; ')} (cleo review records the verdicts).`,
|
|
689
|
+
};
|
|
690
|
+
const audit = { prNumber: pr.number, mergeSha: pr.mergeCommitSha, kind: directive.kind, acs };
|
|
691
|
+
if (directive.kind === 'refs') {
|
|
692
|
+
if (!dryRun)
|
|
693
|
+
await appendMergeAudit(storeRoot, MERGE_CLOSE_AUDIT_ACTION, taskId, audit);
|
|
694
|
+
return { ...base, action: 'bound' };
|
|
695
|
+
}
|
|
696
|
+
const union = new Set([...prior.acs, ...acs]);
|
|
697
|
+
const missing = own.filter((ac) => !union.has(ac));
|
|
698
|
+
if (missing.length > 0)
|
|
699
|
+
return {
|
|
700
|
+
...base,
|
|
701
|
+
action: 'waiting',
|
|
702
|
+
reason: `no merged PR binds ${missing.join(', ')} of ${taskId}: list them on this PR's Closes: line, ` +
|
|
703
|
+
'or bind them first with a Refs: line on the PR that delivers them.',
|
|
704
|
+
};
|
|
705
|
+
if (open)
|
|
706
|
+
return { ...base, action: 'closed', reason: 'would close once it merges with green CI' };
|
|
707
|
+
const recorded = await deps.record(storeRoot, taskId, pr.number, [...union], dryRun);
|
|
708
|
+
if (!recorded.ok) {
|
|
709
|
+
// A merge whose own CI run was cancelled, skipped or unfinished, with no
|
|
710
|
+
// later run standing in yet (ci-evidence's T12742 rule, unchanged), waits.
|
|
711
|
+
const wait = await mergeCiWait(storeRoot, root, pr, taskId, required, deps, dryRun, recorded.reason);
|
|
712
|
+
if (wait?.final)
|
|
713
|
+
return { ...base, action: 'refused', reason: `${wait.reason}: ${recorded.reason}` };
|
|
714
|
+
if (wait !== null)
|
|
715
|
+
return { ...base, action: 'waiting', reason: wait.reason, reran: wait.reran, ciWait: true };
|
|
716
|
+
return { ...base, action: 'waiting', reason: recorded.reason };
|
|
717
|
+
}
|
|
718
|
+
if (dryRun)
|
|
719
|
+
return { ...base, action: 'closed' };
|
|
720
|
+
const completed = await deps.complete(storeRoot, taskId, pr.number);
|
|
721
|
+
if (!completed.ok) {
|
|
722
|
+
// A concurrent sweep (or agent) may have completed it first.
|
|
723
|
+
const now = await accessor.loadSingleTask(taskId);
|
|
724
|
+
if (now?.status === 'done')
|
|
725
|
+
return { ...base, action: 'already', reason: `${taskId} was completed meanwhile.` };
|
|
726
|
+
return { ...base, action: 'waiting', reason: completed.reason };
|
|
727
|
+
}
|
|
728
|
+
await appendMergeAudit(storeRoot, MERGE_CLOSE_AUDIT_ACTION, taskId, audit);
|
|
729
|
+
return { ...base, action: 'closed' };
|
|
730
|
+
}
|
|
731
|
+
/**
|
|
732
|
+
* Post each refused or waiting task on its PR once per kind (an audit row
|
|
733
|
+
* remembers it): a gap wait is re-judged every sweep but commented once. The
|
|
734
|
+
* caller leaves out waits on the merge's own CI, which resolve themselves.
|
|
735
|
+
*/
|
|
736
|
+
async function reportRefusals(storeRoot, root, pr, outcomes, deps) {
|
|
737
|
+
for (const outcome of outcomes) {
|
|
738
|
+
if ((outcome.action !== 'refused' && outcome.action !== 'waiting') || !outcome.reason)
|
|
739
|
+
continue;
|
|
740
|
+
const { reported } = await priorBindings(storeRoot, outcome.taskId, pr.number, pr.mergeCommitSha).catch(() => ({ reported: new Set() }));
|
|
741
|
+
if (reported.has(outcome.action))
|
|
742
|
+
continue;
|
|
743
|
+
const body = outcome.action === 'refused'
|
|
744
|
+
? `CLEO merge-close: ${outcome.taskId} was not closed by this PR: ${outcome.reason}`
|
|
745
|
+
: `CLEO merge-close: ${outcome.taskId} is waiting to close from this PR (re-checked every sweep): ${outcome.reason}`;
|
|
746
|
+
if (!(await deps.comment(root, pr.number, body)))
|
|
747
|
+
continue;
|
|
748
|
+
await appendMergeAudit(storeRoot, MERGE_CLOSE_REFUSED_ACTION, outcome.taskId, {
|
|
749
|
+
prNumber: pr.number,
|
|
750
|
+
mergeSha: pr.mergeCommitSha,
|
|
751
|
+
reason: outcome.reason,
|
|
752
|
+
outcome: outcome.action,
|
|
753
|
+
}).catch(() => undefined);
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
/**
|
|
757
|
+
* Apply each merged PR's lines, oldest merge first, into `result`; returns
|
|
758
|
+
* the per-PR hook results. PRs not reached before `deadline` are left out of
|
|
759
|
+
* `result` and pushed to `carried`, for the waiting list.
|
|
760
|
+
*/
|
|
761
|
+
async function applyMergedPrs(storeRoot, root, prs, required, deps, dryRun, result, deadline, carried, clock) {
|
|
762
|
+
const hooks = {};
|
|
763
|
+
const silent = new Set();
|
|
764
|
+
let attributed = 0;
|
|
765
|
+
for (const pr of [...prs].sort((a, b) => a.mergedAt.localeCompare(b.mergedAt))) {
|
|
766
|
+
if (clock() > deadline) {
|
|
767
|
+
carried.push(pr.number);
|
|
768
|
+
continue;
|
|
769
|
+
}
|
|
770
|
+
const receipt = await judgeMergedPr(pr, required);
|
|
771
|
+
const entry = {
|
|
772
|
+
prNumber: pr.number,
|
|
773
|
+
mergeSha: pr.mergeCommitSha,
|
|
774
|
+
outcomes: [],
|
|
775
|
+
};
|
|
776
|
+
if (pr.mergedAt === '' && !dryRun) {
|
|
777
|
+
entry.closesNothing = `PR #${pr.number} has not merged; check it with --dry-run.`;
|
|
778
|
+
result.prs.push(entry);
|
|
779
|
+
continue;
|
|
780
|
+
}
|
|
781
|
+
// T14252 (SHADOW, D11224): every merged PR's attribution receipt, keyed by
|
|
782
|
+
// (PR, merge sha), whether or not it names a task; listed beside the
|
|
783
|
+
// outcome, never read by it. At most MERGE_ATTRIBUTION_PER_SWEEP lookups,
|
|
784
|
+
// inside the deadline: a cold store's first sweep leaves the rest to the next.
|
|
785
|
+
if (deps.attribute &&
|
|
786
|
+
pr.mergedAt !== '' &&
|
|
787
|
+
attributed < MERGE_ATTRIBUTION_PER_SWEEP &&
|
|
788
|
+
clock() <= deadline) {
|
|
789
|
+
attributed++;
|
|
790
|
+
const attribution = await deps
|
|
791
|
+
.attribute(storeRoot, root, pr, receipt.directives[0]?.taskId ?? null, required, dryRun)
|
|
792
|
+
.catch(() => null);
|
|
793
|
+
if (attribution !== null) {
|
|
794
|
+
const { verdict, claim, reason } = attribution;
|
|
795
|
+
entry.attribution = { verdict, claim, reason };
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
if (receipt.directives.length === 0 || receipt.errors.length > 0) {
|
|
799
|
+
// The CI job comments these; a PR naming no task is not this store's.
|
|
800
|
+
if (receipt.closesNothing)
|
|
801
|
+
entry.closesNothing = receipt.closesNothing;
|
|
802
|
+
result.prs.push(entry);
|
|
803
|
+
continue;
|
|
804
|
+
}
|
|
805
|
+
for (const directive of receipt.directives) {
|
|
806
|
+
const applied = applyDirective(storeRoot, root, required, pr, receipt, directive, deps, dryRun);
|
|
807
|
+
const { reran, ciWait, ...outcome } = await applied.catch((err) => ({
|
|
808
|
+
taskId: directive.taskId,
|
|
809
|
+
acs: directive.acs,
|
|
810
|
+
// A throw (gh rate limit, SQLITE_BUSY, …) is transient: re-judge next sweep.
|
|
811
|
+
action: 'waiting',
|
|
812
|
+
reason: err.message,
|
|
813
|
+
}));
|
|
814
|
+
entry.outcomes.push(outcome);
|
|
815
|
+
if (ciWait === true)
|
|
816
|
+
silent.add(outcome);
|
|
817
|
+
if (reran === true)
|
|
818
|
+
result.reran++;
|
|
819
|
+
if (outcome.action === 'waiting')
|
|
820
|
+
result.waiting++;
|
|
821
|
+
if (outcome.action === 'closed')
|
|
822
|
+
result.closed.push(outcome.taskId);
|
|
823
|
+
if (outcome.action === 'bound')
|
|
824
|
+
result.bound.push(outcome.taskId);
|
|
825
|
+
if (outcome.action === 'refused')
|
|
826
|
+
result.refused.push({
|
|
827
|
+
taskId: outcome.taskId,
|
|
828
|
+
prNumber: pr.number,
|
|
829
|
+
reason: outcome.reason ?? 'refused',
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
// A wait on the merge's own CI resolves itself: no comment (lead rule).
|
|
833
|
+
const loud = entry.outcomes.filter((o) => !silent.has(o));
|
|
834
|
+
if (!dryRun)
|
|
835
|
+
await reportRefusals(storeRoot, root, pr, loud, deps);
|
|
836
|
+
// T14111: flag stale docs once, on the run that applied this PR.
|
|
837
|
+
const applied = entry.outcomes.filter((o) => o.action === 'closed' || o.action === 'bound');
|
|
838
|
+
if (!dryRun && deps.docsRot && pr.mergeCommitSha && applied.length > 0) {
|
|
839
|
+
const taskIds = applied.map((o) => o.taskId);
|
|
840
|
+
const flagged = await deps
|
|
841
|
+
.docsRot(storeRoot, { prNumber: pr.number, mergeSha: pr.mergeCommitSha, taskIds })
|
|
842
|
+
.catch(() => []);
|
|
843
|
+
hooks.docsRot = [...(hooks.docsRot ?? []), ...flagged];
|
|
844
|
+
}
|
|
845
|
+
// T14142: clean up after the tasks this PR completed, only when opted in. A
|
|
846
|
+
// `Refs:` (bound) task is still in progress: its worktree and branch stay.
|
|
847
|
+
const closed = entry.outcomes.filter((o) => o.action === 'closed');
|
|
848
|
+
if (!dryRun && deps.cleanupMerged && deps.canCleanup?.() === true && closed.length > 0) {
|
|
849
|
+
const cleaned = await deps
|
|
850
|
+
.cleanupMerged(storeRoot, closed.map((o) => o.taskId))
|
|
851
|
+
.catch(() => null);
|
|
852
|
+
if (cleaned !== null)
|
|
853
|
+
hooks.cleanup = [...(hooks.cleanup ?? []), cleaned];
|
|
854
|
+
}
|
|
855
|
+
result.prs.push(entry);
|
|
856
|
+
}
|
|
857
|
+
return hooks;
|
|
858
|
+
}
|
|
859
|
+
/**
|
|
860
|
+
* The criterion aliases a task owns (child-task criteria excluded), or null
|
|
861
|
+
* when the task is not in this store.
|
|
862
|
+
*/
|
|
863
|
+
async function taskCriteria(storeRoot, taskId) {
|
|
864
|
+
const { getTaskAccessor } = await import('../store/data-accessor.js');
|
|
865
|
+
const accessor = await getTaskAccessor(storeRoot);
|
|
866
|
+
if ((await accessor.loadSingleTask(taskId)) === null)
|
|
867
|
+
return null;
|
|
868
|
+
return (await accessor.getAcRows(taskId))
|
|
869
|
+
.filter((row) => row.kind !== 'child_task')
|
|
870
|
+
.map((row) => `AC${row.ordinal}`);
|
|
871
|
+
}
|
|
872
|
+
/**
|
|
873
|
+
* The pre-merge check (T14122): for each open PR carrying Closes:/Refs:
|
|
874
|
+
* lines, judge every named criterion against the store (a known task and
|
|
875
|
+
* criterion, an independent `met` verdict on the PR's current head, and for
|
|
876
|
+
* Closes: every criterion bound) and set the `cleo/merge-close` status on that
|
|
877
|
+
* head, so a missing, unmet or stale verdict shows before merge. A status is
|
|
878
|
+
* posted only when it changed since the last sweep.
|
|
879
|
+
*/
|
|
880
|
+
async function checkOpenPrs(storeRoot, root, deps, dryRun, posted) {
|
|
881
|
+
const open = await deps.listOpenPrs(root);
|
|
882
|
+
if (open === null)
|
|
883
|
+
return [];
|
|
884
|
+
const checks = [];
|
|
885
|
+
for (const pr of open) {
|
|
886
|
+
const { directives, errors } = parseMergeDirectives(pr.body);
|
|
887
|
+
if ((directives.length === 0 && errors.length === 0) || !pr.headRefOid)
|
|
888
|
+
continue;
|
|
889
|
+
const problems = [...errors];
|
|
890
|
+
for (const d of directives) {
|
|
891
|
+
const own = await taskCriteria(storeRoot, d.taskId);
|
|
892
|
+
if (own === null) {
|
|
893
|
+
problems.push(`${d.taskId} is not a task in this store`);
|
|
894
|
+
continue;
|
|
895
|
+
}
|
|
896
|
+
const unknown = d.acs.filter((ac) => !own.includes(ac));
|
|
897
|
+
if (unknown.length > 0)
|
|
898
|
+
problems.push(`${d.taskId} has no ${unknown.join(', ')}`);
|
|
899
|
+
const verdicts = deps.reviewVerdicts
|
|
900
|
+
? await deps.reviewVerdicts(storeRoot, d.taskId, pr.number)
|
|
901
|
+
: [];
|
|
902
|
+
const texts = await currentTexts(storeRoot, d.taskId);
|
|
903
|
+
for (const p of await unverifiedCriteria(verdicts, d.acs, pr.headRefOid, texts))
|
|
904
|
+
problems.push(`${d.taskId} ${p}`);
|
|
905
|
+
if (d.kind === 'closes') {
|
|
906
|
+
const prior = await priorBindings(storeRoot, d.taskId, pr.number, null);
|
|
907
|
+
const union = new Set([...prior.acs, ...d.acs]);
|
|
908
|
+
const missing = own.filter((ac) => !union.has(ac));
|
|
909
|
+
if (missing.length > 0)
|
|
910
|
+
problems.push(`${d.taskId} ${missing.join(', ')} unbound`);
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
const state = problems.length === 0 ? 'success' : 'failure';
|
|
914
|
+
const description = (state === 'success'
|
|
915
|
+
? `${directives.length} task(s): every criterion independently verified`
|
|
916
|
+
: problems.join('; ')).slice(0, 140);
|
|
917
|
+
checks.push({ prNumber: pr.number, headSha: pr.headRefOid, state, description });
|
|
918
|
+
const key = `${pr.headRefOid}:${state}:${description}`;
|
|
919
|
+
if (dryRun || posted[String(pr.number)] === key)
|
|
920
|
+
continue;
|
|
921
|
+
if (await deps.setStatus(root, pr.headRefOid, state, description))
|
|
922
|
+
posted[String(pr.number)] = key;
|
|
923
|
+
}
|
|
924
|
+
return checks;
|
|
925
|
+
}
|
|
926
|
+
/**
|
|
927
|
+
* Run `fn` under a bound session (T14101): the caller's when there is one,
|
|
928
|
+
* else a short `merge-sweep` session this sweep starts and ends, so writes
|
|
929
|
+
* from the daemon pass session enforcement.
|
|
930
|
+
*/
|
|
931
|
+
async function withSweepSession(storeRoot, fn) {
|
|
932
|
+
const { getActiveSessionInfo } = await import('../sessions/session-enforcement.js');
|
|
933
|
+
if ((await getActiveSessionInfo(storeRoot).catch(() => null)) !== null)
|
|
934
|
+
return fn();
|
|
935
|
+
const sessions = await import('../sessions/index.js');
|
|
936
|
+
const session = await sessions
|
|
937
|
+
.startSession(storeRoot, { scope: 'global', name: 'merge-sweep' })
|
|
938
|
+
.catch(() => null);
|
|
939
|
+
// No session could start: run anyway; a write enforcement refuses is a refusal like any other.
|
|
940
|
+
if (session === null)
|
|
941
|
+
return fn();
|
|
942
|
+
const prior = process.env['CLEO_SESSION_ID'];
|
|
943
|
+
process.env['CLEO_SESSION_ID'] = session.id;
|
|
944
|
+
try {
|
|
945
|
+
return await fn();
|
|
946
|
+
}
|
|
947
|
+
finally {
|
|
948
|
+
if (prior === undefined)
|
|
949
|
+
delete process.env['CLEO_SESSION_ID'];
|
|
950
|
+
else
|
|
951
|
+
process.env['CLEO_SESSION_ID'] = prior;
|
|
952
|
+
await sessions
|
|
953
|
+
.endSession(storeRoot, { sessionId: session.id, note: 'merge sweep' })
|
|
954
|
+
.catch(() => undefined);
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
/**
|
|
958
|
+
* Close the tasks merged PRs name (T14101): for each merged PR, judge its
|
|
959
|
+
* receipt, then apply each `Closes:` / `Refs:` line to its task. Never throws
|
|
960
|
+
* on `gh` or network trouble: it reports `swept: false` instead. Under
|
|
961
|
+
* `dryRun` it records, completes and comments nothing, and leaves the throttle
|
|
962
|
+
* alone.
|
|
963
|
+
*
|
|
964
|
+
* @param storeRoot - CLEO store root.
|
|
965
|
+
* @param opts - Dry run, force, since, PR numbers.
|
|
966
|
+
* @param deps - Outside access; defaults to `gh` and the done/complete path.
|
|
967
|
+
* @returns What was closed, bound and refused.
|
|
968
|
+
* @example
|
|
969
|
+
* ```ts
|
|
970
|
+
* const r = await sweepMergedClosures(root, { force: true, dryRun: true });
|
|
971
|
+
* console.log(r.closed);
|
|
972
|
+
* ```
|
|
973
|
+
*/
|
|
974
|
+
export async function sweepMergedClosures(storeRoot, opts = {}, deps = defaultMergeCloseDeps) {
|
|
975
|
+
const dryRun = opts.dryRun === true;
|
|
976
|
+
const empty = {
|
|
977
|
+
swept: false,
|
|
978
|
+
dryRun,
|
|
979
|
+
prs: [],
|
|
980
|
+
closed: [],
|
|
981
|
+
bound: [],
|
|
982
|
+
refused: [],
|
|
983
|
+
waiting: 0,
|
|
984
|
+
reran: 0,
|
|
985
|
+
};
|
|
986
|
+
const targeted = (opts.prNumbers?.length ?? 0) > 0;
|
|
987
|
+
if (!opts.force && !targeted && !claimMergeSweep(storeRoot))
|
|
988
|
+
return { ...empty, skippedReason: 'throttled: the last sweep was under 5 minutes ago' };
|
|
989
|
+
if (!(await deps.ghAvailable()))
|
|
990
|
+
return { ...empty, skippedReason: 'gh is not available or not authenticated' };
|
|
991
|
+
// One sweep at a time per store, for the whole sweep (a dry run writes nothing).
|
|
992
|
+
const release = dryRun ? () => undefined : acquireMergeSweepLock(storeRoot, deps.now);
|
|
993
|
+
if (release === null)
|
|
994
|
+
return { ...empty, skippedReason: 'another merge sweep is running' };
|
|
995
|
+
try {
|
|
996
|
+
return await runSweep(storeRoot, opts, deps, empty, targeted);
|
|
997
|
+
}
|
|
998
|
+
finally {
|
|
999
|
+
release();
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
/** The prefix of a reason that waits only for independent reviewer verdicts. */
|
|
1003
|
+
const NOT_VERIFIED = 'not independently verified:';
|
|
1004
|
+
/** A waiting entry for a PR first seen waiting now (or carried with no history). */
|
|
1005
|
+
function newWaitingEntry(at, pr) {
|
|
1006
|
+
return {
|
|
1007
|
+
firstAt: at,
|
|
1008
|
+
nextAt: at,
|
|
1009
|
+
intervalMs: MERGE_WAITING_FIRST_BACKOFF_MS / 2,
|
|
1010
|
+
mergeSha: pr?.mergeCommitSha ?? null,
|
|
1011
|
+
headSha: pr?.headRefOid ?? null,
|
|
1012
|
+
lines: [],
|
|
1013
|
+
verdictOnly: false,
|
|
1014
|
+
reason: 'waiting',
|
|
1015
|
+
verdictKey: '',
|
|
1016
|
+
};
|
|
1017
|
+
}
|
|
1018
|
+
/** The waiting list as entries; the earlier plain-number form is due now. */
|
|
1019
|
+
function normalizeWaiting(raw, at) {
|
|
1020
|
+
if (raw === undefined)
|
|
1021
|
+
return {};
|
|
1022
|
+
if (Array.isArray(raw))
|
|
1023
|
+
return Object.fromEntries(raw.map((n) => [String(n), newWaitingEntry(at)]));
|
|
1024
|
+
return raw;
|
|
1025
|
+
}
|
|
1026
|
+
/** The entry with its backoff doubled (capped) and its next re-judgement scheduled. */
|
|
1027
|
+
function backedOff(entry, now, verdictKey, reason) {
|
|
1028
|
+
const intervalMs = Math.min(Math.max(entry.intervalMs * 2, MERGE_WAITING_FIRST_BACKOFF_MS), MERGE_WAITING_MAX_BACKOFF_MS);
|
|
1029
|
+
return {
|
|
1030
|
+
...entry,
|
|
1031
|
+
intervalMs,
|
|
1032
|
+
nextAt: new Date(now + intervalMs).toISOString(),
|
|
1033
|
+
verdictKey,
|
|
1034
|
+
reason,
|
|
1035
|
+
};
|
|
1036
|
+
}
|
|
1037
|
+
/** A fingerprint of the verdicts recorded on a PR's tasks (local reads only). */
|
|
1038
|
+
async function verdictKeyFor(storeRoot, deps, prNumber, lines) {
|
|
1039
|
+
if (!deps.reviewVerdicts)
|
|
1040
|
+
return '';
|
|
1041
|
+
const ids = [];
|
|
1042
|
+
for (const line of lines) {
|
|
1043
|
+
const verdicts = await deps.reviewVerdicts(storeRoot, line.taskId, prNumber).catch(() => []);
|
|
1044
|
+
ids.push(...verdicts.map((v) => v.id));
|
|
1045
|
+
}
|
|
1046
|
+
return ids.sort().join(',');
|
|
1047
|
+
}
|
|
1048
|
+
/**
|
|
1049
|
+
* Refuse each PR that waited past {@link MERGE_WAITING_MAX_AGE_MS} (T14101
|
|
1050
|
+
* review), with one final comment per task, and drop it from the list.
|
|
1051
|
+
*/
|
|
1052
|
+
async function ageOutWaiting(storeRoot, root, agedOut, deps, dryRun, result) {
|
|
1053
|
+
const { getTaskAccessor } = await import('../store/data-accessor.js');
|
|
1054
|
+
const accessor = await getTaskAccessor(storeRoot);
|
|
1055
|
+
for (const [prNumber, entry] of agedOut) {
|
|
1056
|
+
const reason = entry.verdictOnly
|
|
1057
|
+
? 'waited 14 days without a reviewer verdict'
|
|
1058
|
+
: `waited 14 days without closing: ${entry.reason}`;
|
|
1059
|
+
const outcomes = [];
|
|
1060
|
+
for (const line of entry.lines) {
|
|
1061
|
+
// T14139: a task closed by another route meanwhile is not refused, nor commented.
|
|
1062
|
+
const status = (await accessor.loadSingleTask(line.taskId))?.status;
|
|
1063
|
+
const closed = status === 'done' || status === 'cancelled';
|
|
1064
|
+
outcomes.push(closed
|
|
1065
|
+
? { ...line, action: 'already', reason: `${line.taskId} is already ${status}.` }
|
|
1066
|
+
: { ...line, action: 'refused', reason });
|
|
1067
|
+
}
|
|
1068
|
+
for (const o of outcomes)
|
|
1069
|
+
if (o.action === 'refused')
|
|
1070
|
+
result.refused.push({ taskId: o.taskId, prNumber, reason });
|
|
1071
|
+
result.prs.push({ prNumber, mergeSha: entry.mergeSha, outcomes });
|
|
1072
|
+
if (dryRun)
|
|
1073
|
+
continue;
|
|
1074
|
+
const pr = {
|
|
1075
|
+
number: prNumber,
|
|
1076
|
+
body: '',
|
|
1077
|
+
mergedAt: entry.firstAt,
|
|
1078
|
+
headRefOid: entry.headSha,
|
|
1079
|
+
mergeCommitSha: entry.mergeSha,
|
|
1080
|
+
statusCheckRollup: [],
|
|
1081
|
+
};
|
|
1082
|
+
await reportRefusals(storeRoot, root, pr, outcomes, deps);
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
/** The sweep proper, under the lock ({@link sweepMergedClosures}). */
|
|
1086
|
+
async function runSweep(storeRoot, opts, deps, empty, targeted) {
|
|
1087
|
+
const dryRun = empty.dryRun;
|
|
1088
|
+
const { resolveEvidenceExecutionRoot } = await import('./evidence.js');
|
|
1089
|
+
const root = resolveEvidenceExecutionRoot(storeRoot);
|
|
1090
|
+
const state = readSweepState(storeRoot);
|
|
1091
|
+
const clock = deps.now ?? Date.now;
|
|
1092
|
+
const startedAt = new Date(clock()).toISOString();
|
|
1093
|
+
const deadline = clock() + MERGE_SWEEP_MAX_RUN_MS;
|
|
1094
|
+
const highWater = state.highWater;
|
|
1095
|
+
// Re-read an overlap behind the cursor: search can list a PR late.
|
|
1096
|
+
const since = opts.since ??
|
|
1097
|
+
(highWater === undefined
|
|
1098
|
+
? new Date(clock() - MERGE_SWEEP_LOOKBACK_MS).toISOString()
|
|
1099
|
+
: new Date(Date.parse(highWater) - MERGE_SWEEP_OVERLAP_MS).toISOString());
|
|
1100
|
+
let prs;
|
|
1101
|
+
let backlog = [];
|
|
1102
|
+
let newHighWater = highWater;
|
|
1103
|
+
const waitingIn = normalizeWaiting(state.waiting, startedAt);
|
|
1104
|
+
const waitingOut = {};
|
|
1105
|
+
const agedOut = [];
|
|
1106
|
+
if (targeted) {
|
|
1107
|
+
const viewed = await Promise.all((opts.prNumbers ?? []).map((n) => deps.viewPr(root, n)));
|
|
1108
|
+
prs = viewed.filter((pr) => pr !== null);
|
|
1109
|
+
}
|
|
1110
|
+
else {
|
|
1111
|
+
const listed = await listSweepWindows(deps, root, state, since, opts.since !== undefined);
|
|
1112
|
+
if (listed === null)
|
|
1113
|
+
return { ...empty, skippedReason: 'gh could not list merged PRs' };
|
|
1114
|
+
({ prs, backlog } = listed);
|
|
1115
|
+
if (listed.newestRead !== undefined)
|
|
1116
|
+
newHighWater =
|
|
1117
|
+
highWater === undefined || listed.newestRead > highWater ? listed.newestRead : highWater;
|
|
1118
|
+
// PRs a previous sweep left waiting come back on their backoff (sooner
|
|
1119
|
+
// when their verdicts changed); one gh could not view stays listed.
|
|
1120
|
+
const known = new Set(prs.map((pr) => pr.number));
|
|
1121
|
+
for (const [key, entry] of Object.entries(waitingIn)) {
|
|
1122
|
+
const n = Number(key);
|
|
1123
|
+
if (known.has(n))
|
|
1124
|
+
continue;
|
|
1125
|
+
if (clock() - Date.parse(entry.firstAt) > MERGE_WAITING_MAX_AGE_MS) {
|
|
1126
|
+
agedOut.push([n, entry]);
|
|
1127
|
+
continue;
|
|
1128
|
+
}
|
|
1129
|
+
const verdictKey = await verdictKeyFor(storeRoot, deps, n, entry.lines);
|
|
1130
|
+
const changed = verdictKey !== entry.verdictKey;
|
|
1131
|
+
if (!changed && clock() < Date.parse(entry.nextAt)) {
|
|
1132
|
+
waitingOut[key] = entry;
|
|
1133
|
+
continue;
|
|
1134
|
+
}
|
|
1135
|
+
// Waiting only on verdicts that did not change: still unverified, no gh call.
|
|
1136
|
+
if (entry.verdictOnly && !changed) {
|
|
1137
|
+
waitingOut[key] = backedOff(entry, clock(), verdictKey, entry.reason);
|
|
1138
|
+
continue;
|
|
1139
|
+
}
|
|
1140
|
+
const pr = await deps.viewPr(root, n);
|
|
1141
|
+
if (pr === null)
|
|
1142
|
+
waitingOut[key] = backedOff(entry, clock(), verdictKey, entry.reason);
|
|
1143
|
+
else
|
|
1144
|
+
prs.push(pr);
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
const required = await deps.requiredChecks(storeRoot);
|
|
1148
|
+
const result = { ...empty, swept: true };
|
|
1149
|
+
const oldest = backlog[0];
|
|
1150
|
+
if (oldest)
|
|
1151
|
+
result.truncated = {
|
|
1152
|
+
read: prs.length,
|
|
1153
|
+
unreadSince: oldest.since,
|
|
1154
|
+
unreadBefore: backlog[backlog.length - 1]?.until ?? oldest.until,
|
|
1155
|
+
};
|
|
1156
|
+
const statuses = { ...(state.statuses ?? {}) };
|
|
1157
|
+
const carried = [];
|
|
1158
|
+
const work = async () => {
|
|
1159
|
+
const hooks = await applyMergedPrs(storeRoot, root, prs, required, deps, dryRun, result, deadline, carried, clock);
|
|
1160
|
+
if (!targeted) {
|
|
1161
|
+
result.openChecks = await checkOpenPrs(storeRoot, root, deps, dryRun, statuses);
|
|
1162
|
+
hooks.macosRegression = await syncMacosRegressionIssues(storeRoot, root, deps, dryRun);
|
|
1163
|
+
if (!dryRun && deps.reconcile) {
|
|
1164
|
+
hooks.reconcile = await deps.reconcile(storeRoot).catch((err) => ({
|
|
1165
|
+
version: null,
|
|
1166
|
+
action: 'failed',
|
|
1167
|
+
reason: err.message,
|
|
1168
|
+
}));
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
return hooks;
|
|
1172
|
+
};
|
|
1173
|
+
// Writes need a bound session; a daemon sweep has none of its own.
|
|
1174
|
+
const hooks = dryRun ? await work() : await withSweepSession(storeRoot, work);
|
|
1175
|
+
if (Object.keys(hooks).length > 0)
|
|
1176
|
+
result.hooks = hooks;
|
|
1177
|
+
if (!targeted)
|
|
1178
|
+
await ageOutWaiting(storeRoot, root, agedOut, deps, dryRun, result);
|
|
1179
|
+
if (!dryRun && !targeted) {
|
|
1180
|
+
const byNumber = new Map(prs.map((pr) => [pr.number, pr]));
|
|
1181
|
+
for (const entry of result.prs) {
|
|
1182
|
+
const waits = entry.outcomes.filter((o) => o.action === 'waiting');
|
|
1183
|
+
const pr = byNumber.get(entry.prNumber);
|
|
1184
|
+
if (waits.length === 0 || pr === undefined)
|
|
1185
|
+
continue;
|
|
1186
|
+
const lines = waits.map((o) => ({ taskId: o.taskId, acs: o.acs }));
|
|
1187
|
+
const prior = waitingIn[String(entry.prNumber)];
|
|
1188
|
+
const verdictKey = await verdictKeyFor(storeRoot, deps, entry.prNumber, lines);
|
|
1189
|
+
const reason = waits[0]?.reason ?? 'waiting';
|
|
1190
|
+
const next = {
|
|
1191
|
+
firstAt: prior?.firstAt ?? startedAt,
|
|
1192
|
+
nextAt: startedAt,
|
|
1193
|
+
intervalMs: prior ? prior.intervalMs : MERGE_WAITING_FIRST_BACKOFF_MS / 2,
|
|
1194
|
+
mergeSha: pr.mergeCommitSha,
|
|
1195
|
+
headSha: pr.headRefOid,
|
|
1196
|
+
lines,
|
|
1197
|
+
verdictOnly: waits.every((o) => (o.reason ?? '').startsWith(NOT_VERIFIED)),
|
|
1198
|
+
reason,
|
|
1199
|
+
verdictKey,
|
|
1200
|
+
};
|
|
1201
|
+
waitingOut[String(entry.prNumber)] = backedOff(next, clock(), verdictKey, reason);
|
|
1202
|
+
}
|
|
1203
|
+
// A PR a deadline left is re-judged at the next sweep, its age kept.
|
|
1204
|
+
for (const n of carried) {
|
|
1205
|
+
const prior = waitingIn[String(n)];
|
|
1206
|
+
waitingOut[String(n)] = prior
|
|
1207
|
+
? { ...prior, nextAt: startedAt }
|
|
1208
|
+
: newWaitingEntry(startedAt, byNumber.get(n));
|
|
1209
|
+
}
|
|
1210
|
+
writeSweepState(storeRoot, {
|
|
1211
|
+
lastSweptAt: startedAt,
|
|
1212
|
+
...(newHighWater !== undefined ? { highWater: newHighWater } : {}),
|
|
1213
|
+
...(backlog.length > 0 ? { backlog } : {}),
|
|
1214
|
+
statuses,
|
|
1215
|
+
waiting: waitingOut,
|
|
1216
|
+
});
|
|
1217
|
+
}
|
|
1218
|
+
return result;
|
|
1219
|
+
}
|
|
1220
|
+
/**
|
|
1221
|
+
* Whether a directory is a CLEO project that takes merged CI as evidence
|
|
1222
|
+
* (T14101): a main git checkout (never a linked worktree, never a moved or
|
|
1223
|
+
* missing path) with `.cleo/project-context.json` setting
|
|
1224
|
+
* `evidence.ciSatisfies`. The daemon sweeps only these, never `$HOME`.
|
|
1225
|
+
*
|
|
1226
|
+
* @param root - Candidate project root.
|
|
1227
|
+
* @returns True when the merge sweep applies.
|
|
1228
|
+
*/
|
|
1229
|
+
export function mergeSweepApplies(root) {
|
|
1230
|
+
try {
|
|
1231
|
+
// A main checkout only: a linked worktree's `.git` is a file (gitlink),
|
|
1232
|
+
// and a moved or missing path has none.
|
|
1233
|
+
if (!statSync(join(root, '.git')).isDirectory())
|
|
1234
|
+
return false;
|
|
1235
|
+
const context = JSON.parse(readFileSync(join(root, '.cleo', 'project-context.json'), 'utf-8'));
|
|
1236
|
+
return context.evidence?.ciSatisfies === true;
|
|
1237
|
+
}
|
|
1238
|
+
catch {
|
|
1239
|
+
return false;
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
/**
|
|
1243
|
+
* The daemon's merge sweep (T14101): every registered project on this
|
|
1244
|
+
* machine that {@link mergeSweepApplies} to, behind the same gate the lazy
|
|
1245
|
+
* path uses ({@link mergeSweepSpawnAllowed}: never in CI, under vitest, when
|
|
1246
|
+
* off, or without gh credentials). Each project's sweep throttles and locks
|
|
1247
|
+
* itself. Never throws.
|
|
1248
|
+
*
|
|
1249
|
+
* @param opts - Environment, project lister and sweep, for tests.
|
|
1250
|
+
* @returns The roots swept.
|
|
1251
|
+
*/
|
|
1252
|
+
export async function sweepRegisteredProjects(opts = {}) {
|
|
1253
|
+
if (!mergeSweepSpawnAllowed(opts.env ?? process.env))
|
|
1254
|
+
return [];
|
|
1255
|
+
const listRoots = opts.listRoots ??
|
|
1256
|
+
(async () => {
|
|
1257
|
+
const { nexusList } = await import('../nexus/registry.js');
|
|
1258
|
+
return (await nexusList()).map((project) => project.path);
|
|
1259
|
+
});
|
|
1260
|
+
const roots = await listRoots().catch(() => []);
|
|
1261
|
+
const swept = [];
|
|
1262
|
+
for (const root of new Set(roots)) {
|
|
1263
|
+
if (!mergeSweepApplies(root))
|
|
1264
|
+
continue;
|
|
1265
|
+
await (opts.sweep ?? ((r) => sweepMergedClosures(r)))(root).catch(() => undefined);
|
|
1266
|
+
swept.push(root);
|
|
1267
|
+
}
|
|
1268
|
+
return swept;
|
|
1269
|
+
}
|
|
1270
|
+
/**
|
|
1271
|
+
* The PR comment for a receipt (T14101): what the store owner's sweep will
|
|
1272
|
+
* close or bind, or why the PR closes nothing, plus the receipt as JSON.
|
|
1273
|
+
*
|
|
1274
|
+
* @param receipt - The receipt.
|
|
1275
|
+
* @returns Markdown for `gh pr comment`.
|
|
1276
|
+
*/
|
|
1277
|
+
export function formatMergeReceipt(receipt) {
|
|
1278
|
+
const lines = receipt.closesNothing
|
|
1279
|
+
? [`CLEO merge-close: this PR closes nothing, because ${receipt.closesNothing}`]
|
|
1280
|
+
: [
|
|
1281
|
+
"CLEO merge-close receipt: the store owner's sweep (`cleo done --from-merge`) will record this PR's evidence for:",
|
|
1282
|
+
...receipt.directives.map((d) => `- ${d.kind === 'closes' ? 'close' : 'bind'} ${d.taskId} (${d.acs.join(', ')})`),
|
|
1283
|
+
];
|
|
1284
|
+
return [...lines, '', '```json', JSON.stringify(receipt, null, 2), '```'].join('\n');
|
|
1285
|
+
}
|
|
1286
|
+
/**
|
|
1287
|
+
* Judge one merged PR without a task store and optionally comment the
|
|
1288
|
+
* receipt on it (T14101): the GitHub job's half. Reads only `gh` and the
|
|
1289
|
+
* tracked `.cleo/project-context.json` (for the required checks).
|
|
1290
|
+
*
|
|
1291
|
+
* @param storeRoot - Checkout root (the project context is read from it).
|
|
1292
|
+
* @param prNumber - The merged PR.
|
|
1293
|
+
* @param opts - `comment: true` posts the receipt on the PR.
|
|
1294
|
+
* @param deps - Outside access.
|
|
1295
|
+
* @returns The receipt, or null when `gh` could not read a merged PR.
|
|
1296
|
+
*/
|
|
1297
|
+
export async function mergeReceiptFor(storeRoot, prNumber, opts = {}, deps = defaultMergeCloseDeps) {
|
|
1298
|
+
const pr = await deps.viewPr(storeRoot, prNumber);
|
|
1299
|
+
if (pr === null)
|
|
1300
|
+
return null;
|
|
1301
|
+
const receipt = await judgeMergedPr(pr, await deps.requiredChecks(storeRoot));
|
|
1302
|
+
const commented = opts.comment === true && (await deps.comment(storeRoot, prNumber, formatMergeReceipt(receipt)));
|
|
1303
|
+
return { receipt, commented };
|
|
1304
|
+
}
|
|
1305
|
+
/**
|
|
1306
|
+
* Turn open `macos-regression` issues into tasks (T14104), one per issue,
|
|
1307
|
+
* under the task `release.macosRegressionParent` names (an epic; unset, the
|
|
1308
|
+
* sync reads nothing), linked by issue URL in the external
|
|
1309
|
+
* task links so a rerun creates nothing twice; close an issue once its task is
|
|
1310
|
+
* done. Never throws. Under `dryRun` it creates and closes nothing.
|
|
1311
|
+
*/
|
|
1312
|
+
async function syncMacosRegressionIssues(storeRoot, root, deps, dryRun) {
|
|
1313
|
+
const sync = { created: [], closedIssues: [] };
|
|
1314
|
+
// A root task must be a saga, so without a configured container there is
|
|
1315
|
+
// nowhere to file the tasks: read no issues at all.
|
|
1316
|
+
const { loadProjectContext } = await import('../agents/variable-substitution.js');
|
|
1317
|
+
const ctx = loadProjectContext(storeRoot);
|
|
1318
|
+
const release = (ctx.context?.['release'] ?? {});
|
|
1319
|
+
const { getTaskAccessor } = await import('../store/data-accessor.js');
|
|
1320
|
+
const accessor = await getTaskAccessor(storeRoot);
|
|
1321
|
+
const parent = typeof release.macosRegressionParent === 'string'
|
|
1322
|
+
? await accessor.loadSingleTask(release.macosRegressionParent)
|
|
1323
|
+
: null;
|
|
1324
|
+
if (parent === null)
|
|
1325
|
+
return { ...sync, skippedReason: 'release.macosRegressionParent names no task in this store' };
|
|
1326
|
+
const issues = await deps.listLabelledIssues(root, MACOS_REGRESSION_LABEL);
|
|
1327
|
+
if (issues === null)
|
|
1328
|
+
return { ...sync, skippedReason: 'gh could not list issues' };
|
|
1329
|
+
const links = await import('../reconciliation/link-store.js');
|
|
1330
|
+
for (const issue of issues) {
|
|
1331
|
+
try {
|
|
1332
|
+
const link = await links.getLinkByExternalId(ISSUE_LINK_PROVIDER, issue.url, storeRoot);
|
|
1333
|
+
if (link === null) {
|
|
1334
|
+
if (dryRun) {
|
|
1335
|
+
sync.created.push(issue.url);
|
|
1336
|
+
continue;
|
|
1337
|
+
}
|
|
1338
|
+
const { addTask } = await import('./add.js');
|
|
1339
|
+
const added = await addTask({
|
|
1340
|
+
title: `macOS regression: ${issue.title}`,
|
|
1341
|
+
description: `Opened from ${issue.url} by the merge sweep (T14104).`,
|
|
1342
|
+
acceptance: [
|
|
1343
|
+
`the macOS failure in ${issue.url} is fixed and its shards pass on main nightly`,
|
|
1344
|
+
],
|
|
1345
|
+
parentId: parent.id,
|
|
1346
|
+
labels: [MACOS_REGRESSION_LABEL],
|
|
1347
|
+
// The issue URL is the identity (deduped by the link below); two
|
|
1348
|
+
// regressions with similar titles are still two tasks. Audited.
|
|
1349
|
+
forceDuplicate: true,
|
|
1350
|
+
}, storeRoot, accessor);
|
|
1351
|
+
await links.createLink({
|
|
1352
|
+
taskId: added.task.id,
|
|
1353
|
+
providerId: ISSUE_LINK_PROVIDER,
|
|
1354
|
+
externalId: issue.url,
|
|
1355
|
+
externalUrl: issue.url,
|
|
1356
|
+
externalTitle: issue.title,
|
|
1357
|
+
linkType: 'created',
|
|
1358
|
+
syncDirection: 'inbound',
|
|
1359
|
+
}, storeRoot);
|
|
1360
|
+
sync.created.push(added.task.id);
|
|
1361
|
+
continue;
|
|
1362
|
+
}
|
|
1363
|
+
const task = await accessor.loadSingleTask(link.taskId);
|
|
1364
|
+
if (task?.status !== 'done' || dryRun)
|
|
1365
|
+
continue;
|
|
1366
|
+
const comment = `CLEO: ${task.id} is done; closing this macOS regression.`;
|
|
1367
|
+
if (await deps.closeIssue(root, issue.url, comment))
|
|
1368
|
+
sync.closedIssues.push(issue.url);
|
|
1369
|
+
}
|
|
1370
|
+
catch {
|
|
1371
|
+
// One issue's failure never stops the others; the next sweep retries it.
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
return sync;
|
|
1375
|
+
}
|
|
1376
|
+
const PR_FIELDS = 'number,body,mergedAt,headRefOid,mergeCommit,statusCheckRollup';
|
|
1377
|
+
/** Normalise one `gh pr list/view --json PR_FIELDS` row (an open PR has `mergedAt: ''`). */
|
|
1378
|
+
function toMergedPr(row) {
|
|
1379
|
+
if (row === null || typeof row !== 'object')
|
|
1380
|
+
return null;
|
|
1381
|
+
const r = row;
|
|
1382
|
+
if (typeof r.number !== 'number')
|
|
1383
|
+
return null;
|
|
1384
|
+
const merge = r.mergeCommit;
|
|
1385
|
+
return {
|
|
1386
|
+
number: r.number,
|
|
1387
|
+
body: typeof r.body === 'string' ? r.body : '',
|
|
1388
|
+
mergedAt: typeof r.mergedAt === 'string' ? r.mergedAt : '',
|
|
1389
|
+
headRefOid: typeof r.headRefOid === 'string' ? r.headRefOid : null,
|
|
1390
|
+
mergeCommitSha: typeof merge?.oid === 'string' ? merge.oid : null,
|
|
1391
|
+
statusCheckRollup: Array.isArray(r.statusCheckRollup)
|
|
1392
|
+
? r.statusCheckRollup
|
|
1393
|
+
: [],
|
|
1394
|
+
};
|
|
1395
|
+
}
|
|
1396
|
+
async function gh(args, cwd) {
|
|
1397
|
+
const { ghQueryTimeoutMs } = await import('../release/github-pr.js');
|
|
1398
|
+
try {
|
|
1399
|
+
return execFileSync('gh', args, {
|
|
1400
|
+
cwd,
|
|
1401
|
+
encoding: 'utf-8',
|
|
1402
|
+
stdio: ['ignore', 'pipe', 'pipe'],
|
|
1403
|
+
timeout: ghQueryTimeoutMs(),
|
|
1404
|
+
});
|
|
1405
|
+
}
|
|
1406
|
+
catch {
|
|
1407
|
+
return null;
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
/** A step's engine result as a {@link StepResult}. */
|
|
1411
|
+
function stepOf(r) {
|
|
1412
|
+
return r.success ? { ok: true } : { ok: false, reason: r.error?.message ?? 'refused' };
|
|
1413
|
+
}
|
|
1414
|
+
/** The default {@link MergeCloseDeps}: `gh`, and the `cleo done --pr` record and complete path. */
|
|
1415
|
+
export const defaultMergeCloseDeps = {
|
|
1416
|
+
async listMergedPrs(root, since, until) {
|
|
1417
|
+
const out = await gh([
|
|
1418
|
+
'pr',
|
|
1419
|
+
'list',
|
|
1420
|
+
'--state',
|
|
1421
|
+
'merged',
|
|
1422
|
+
'--search',
|
|
1423
|
+
until === undefined ? `merged:>=${since}` : `merged:${since}..${until}`,
|
|
1424
|
+
'--limit',
|
|
1425
|
+
String(MERGE_SWEEP_PR_LIMIT),
|
|
1426
|
+
'--json',
|
|
1427
|
+
PR_FIELDS,
|
|
1428
|
+
], root);
|
|
1429
|
+
if (out === null)
|
|
1430
|
+
return null;
|
|
1431
|
+
const rows = JSON.parse(out);
|
|
1432
|
+
if (!Array.isArray(rows))
|
|
1433
|
+
return null;
|
|
1434
|
+
return rows.flatMap((row) => {
|
|
1435
|
+
const pr = toMergedPr(row);
|
|
1436
|
+
// No date filter here: the search is the window, and a page's length
|
|
1437
|
+
// tells the sweep whether older PRs remain.
|
|
1438
|
+
return pr && pr.mergedAt !== '' ? [pr] : [];
|
|
1439
|
+
});
|
|
1440
|
+
},
|
|
1441
|
+
async viewPr(root, prNumber) {
|
|
1442
|
+
const out = await gh(['pr', 'view', String(prNumber), '--json', PR_FIELDS], root);
|
|
1443
|
+
return out === null ? null : toMergedPr(JSON.parse(out));
|
|
1444
|
+
},
|
|
1445
|
+
async comment(root, prNumber, body) {
|
|
1446
|
+
return (await gh(['pr', 'comment', String(prNumber), '--body', body], root)) !== null;
|
|
1447
|
+
},
|
|
1448
|
+
async requiredChecks(storeRoot) {
|
|
1449
|
+
const { loadProjectContext } = await import('../agents/variable-substitution.js');
|
|
1450
|
+
const { resolveRequiredWorkflows } = await import('../release/pr-evidence.js');
|
|
1451
|
+
const ctx = loadProjectContext(storeRoot);
|
|
1452
|
+
return resolveRequiredWorkflows(process.env, ctx.loaded ? ctx.context : null);
|
|
1453
|
+
},
|
|
1454
|
+
async ghAvailable() {
|
|
1455
|
+
const { isGhCliAvailable } = await import('../release/github-pr.js');
|
|
1456
|
+
return isGhCliAvailable();
|
|
1457
|
+
},
|
|
1458
|
+
async record(storeRoot, taskId, prNumber, acs, dryRun) {
|
|
1459
|
+
const satisfies = acs;
|
|
1460
|
+
if (dryRun) {
|
|
1461
|
+
const { planTaskDone } = await import('./done-plan.js');
|
|
1462
|
+
const plan = await planTaskDone(taskId, {
|
|
1463
|
+
projectRoot: storeRoot,
|
|
1464
|
+
prNumber,
|
|
1465
|
+
satisfies,
|
|
1466
|
+
reviewedLinkage: true,
|
|
1467
|
+
});
|
|
1468
|
+
if (!plan.success)
|
|
1469
|
+
return stepOf(plan);
|
|
1470
|
+
const blocker = plan.data.blockers[0];
|
|
1471
|
+
return blocker ? { ok: false, reason: blocker.message } : { ok: true };
|
|
1472
|
+
}
|
|
1473
|
+
const { recordTaskDone } = await import('./done-record.js');
|
|
1474
|
+
const recorded = await recordTaskDone(taskId, {
|
|
1475
|
+
projectRoot: storeRoot,
|
|
1476
|
+
prNumber,
|
|
1477
|
+
satisfies,
|
|
1478
|
+
// T14259: the line and the non-author verdicts are the linkage.
|
|
1479
|
+
reviewedLinkage: true,
|
|
1480
|
+
agent: 'merge-close',
|
|
1481
|
+
// The sweep runs no tool: a gate it cannot take from merged CI stays an
|
|
1482
|
+
// agent's (evidence.ciSatisfies makes testsPassed/qaPassed ci:<pr>).
|
|
1483
|
+
steps: {
|
|
1484
|
+
runTool: async (tool) => ({
|
|
1485
|
+
exitCode: null,
|
|
1486
|
+
cacheHit: false,
|
|
1487
|
+
durationMs: 0,
|
|
1488
|
+
timedOut: false,
|
|
1489
|
+
tail: '',
|
|
1490
|
+
killed: `merge-close runs no tool (${tool}); set evidence.ciSatisfies so merged CI records testsPassed and qaPassed`,
|
|
1491
|
+
}),
|
|
1492
|
+
},
|
|
1493
|
+
});
|
|
1494
|
+
return stepOf(recorded);
|
|
1495
|
+
},
|
|
1496
|
+
async complete(storeRoot, taskId, prNumber) {
|
|
1497
|
+
const { taskComplete } = await import('./complete.js');
|
|
1498
|
+
return stepOf(await taskComplete(storeRoot, taskId, { prNumber }));
|
|
1499
|
+
},
|
|
1500
|
+
async listLabelledIssues(root, label) {
|
|
1501
|
+
const args = ['issue', 'list', '--label', label, '--state', 'open', '--json', 'url,title'];
|
|
1502
|
+
const out = await gh([...args, '--limit', String(MERGE_SWEEP_PR_LIMIT)], root);
|
|
1503
|
+
if (out === null)
|
|
1504
|
+
return null;
|
|
1505
|
+
const rows = JSON.parse(out);
|
|
1506
|
+
if (!Array.isArray(rows))
|
|
1507
|
+
return null;
|
|
1508
|
+
return rows.flatMap((row) => {
|
|
1509
|
+
const r = row;
|
|
1510
|
+
return typeof r.url === 'string' && typeof r.title === 'string'
|
|
1511
|
+
? [{ url: r.url, title: r.title }]
|
|
1512
|
+
: [];
|
|
1513
|
+
});
|
|
1514
|
+
},
|
|
1515
|
+
async reviewVerdicts(storeRoot, taskId, prNumber) {
|
|
1516
|
+
const { reviewVerdictsFor } = await import('./review-verdict.js');
|
|
1517
|
+
return reviewVerdictsFor(storeRoot, taskId, prNumber);
|
|
1518
|
+
},
|
|
1519
|
+
async cleanupMerged(storeRoot, taskIds) {
|
|
1520
|
+
const { cleanupMergedWork } = await import('../worktree/merged-cleanup.js');
|
|
1521
|
+
return cleanupMergedWork({ projectRoot: storeRoot, taskIds, dryRun: false });
|
|
1522
|
+
},
|
|
1523
|
+
canCleanup() {
|
|
1524
|
+
// Off until it has proven itself on a few releases; opt in with
|
|
1525
|
+
// CLEO_MERGE_SWEEP_CLEANUP=1, and never inside a CI job.
|
|
1526
|
+
return process.env['CLEO_MERGE_SWEEP_CLEANUP'] === '1' && process.env['CI'] !== 'true';
|
|
1527
|
+
},
|
|
1528
|
+
async attribute(storeRoot, root, pr, taskId, required, dryRun) {
|
|
1529
|
+
const { attributeMergedPr } = await import('../release/merge-attribution.js');
|
|
1530
|
+
return attributeMergedPr(storeRoot, root, pr, taskId, required, dryRun);
|
|
1531
|
+
},
|
|
1532
|
+
async docsRot(storeRoot, pr) {
|
|
1533
|
+
// T14111: flag the docs whose covers: globs match the merge's own changes.
|
|
1534
|
+
const { flagDocsRot } = await import('../docs/rot.js');
|
|
1535
|
+
return flagDocsRot(storeRoot, pr);
|
|
1536
|
+
},
|
|
1537
|
+
async closeIssue(root, url, comment) {
|
|
1538
|
+
return (await gh(['issue', 'close', url, '--comment', comment], root)) !== null;
|
|
1539
|
+
},
|
|
1540
|
+
async mergeCiRun(root, sha, workflow) {
|
|
1541
|
+
const args = ['run', 'list', '--commit', sha, '--workflow', workflow, '--limit', '1'];
|
|
1542
|
+
const out = await gh([...args, '--json', 'databaseId,status,conclusion'], root);
|
|
1543
|
+
if (out === null)
|
|
1544
|
+
return null;
|
|
1545
|
+
const [run] = JSON.parse(out);
|
|
1546
|
+
return run?.databaseId === undefined
|
|
1547
|
+
? null
|
|
1548
|
+
: { runId: run.databaseId, status: run.status ?? '', conclusion: run.conclusion ?? null };
|
|
1549
|
+
},
|
|
1550
|
+
async rerunRun(root, runId) {
|
|
1551
|
+
return (await gh(['run', 'rerun', String(runId)], root)) !== null;
|
|
1552
|
+
},
|
|
1553
|
+
canRerun() {
|
|
1554
|
+
// Opt-in with CLEO_MERGE_SWEEP_RERUN=1, and never inside a CI job: a rerun
|
|
1555
|
+
// of a commit older than T14136's per-sha rerun group joins main's live
|
|
1556
|
+
// push group. A green run on the default branch's head stands in without one.
|
|
1557
|
+
return process.env['CLEO_MERGE_SWEEP_RERUN'] === '1' && process.env['CI'] !== 'true';
|
|
1558
|
+
},
|
|
1559
|
+
async listOpenPrs(root) {
|
|
1560
|
+
const fields = 'number,body,headRefOid';
|
|
1561
|
+
const out = await gh(['pr', 'list', '--state', 'open', '--limit', String(MERGE_SWEEP_PR_LIMIT), '--json', fields], root);
|
|
1562
|
+
if (out === null)
|
|
1563
|
+
return null;
|
|
1564
|
+
const rows = JSON.parse(out);
|
|
1565
|
+
return Array.isArray(rows) ? rows.flatMap((row) => toMergedPr(row) ?? []) : null;
|
|
1566
|
+
},
|
|
1567
|
+
async reconcile(root) {
|
|
1568
|
+
const { reconcileLatestRelease } = await import('../release/reconcile-latest.js');
|
|
1569
|
+
return reconcileLatestRelease(root);
|
|
1570
|
+
},
|
|
1571
|
+
async setStatus(root, sha, state, description) {
|
|
1572
|
+
const args = [
|
|
1573
|
+
'api',
|
|
1574
|
+
'--method',
|
|
1575
|
+
'POST',
|
|
1576
|
+
`repos/{owner}/{repo}/statuses/${sha}`,
|
|
1577
|
+
'-f',
|
|
1578
|
+
`state=${state}`,
|
|
1579
|
+
'-f',
|
|
1580
|
+
`context=${MERGE_CLOSE_STATUS_CONTEXT}`,
|
|
1581
|
+
'-f',
|
|
1582
|
+
`description=${description}`,
|
|
1583
|
+
];
|
|
1584
|
+
return (await gh(args, root)) !== null;
|
|
1585
|
+
},
|
|
1586
|
+
};
|
|
1587
|
+
//# sourceMappingURL=merge-close.js.map
|