@cleocode/core 2026.10.3 → 2026.10.5-rc.ci.672
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bootstrap.d.ts.map +1 -1
- package/dist/bootstrap.js +7 -37
- package/dist/bootstrap.js.map +1 -1
- package/dist/build-provenance.json +2 -2
- package/dist/caamp/adapter.d.ts.map +1 -1
- package/dist/caamp/adapter.js +5 -2
- package/dist/caamp/adapter.js.map +1 -1
- package/dist/changesets/parse-frontmatter.d.ts +1 -1
- package/dist/changesets/parse-frontmatter.d.ts.map +1 -1
- package/dist/changesets/parse-frontmatter.js +2 -1
- package/dist/changesets/parse-frontmatter.js.map +1 -1
- package/dist/changesets/parser.d.ts +1 -1
- package/dist/changesets/parser.d.ts.map +1 -1
- package/dist/changesets/parser.js +2 -1
- package/dist/changesets/parser.js.map +1 -1
- package/dist/changesets/writer.d.ts +8 -1
- package/dist/changesets/writer.d.ts.map +1 -1
- package/dist/changesets/writer.js +56 -5
- package/dist/changesets/writer.js.map +1 -1
- package/dist/cloud/keys.d.ts +9 -0
- package/dist/cloud/keys.d.ts.map +1 -1
- package/dist/cloud/keys.js +11 -0
- package/dist/cloud/keys.js.map +1 -1
- package/dist/cloud/nexus-attach.d.ts +17 -0
- package/dist/cloud/nexus-attach.d.ts.map +1 -1
- package/dist/cloud/nexus-attach.js +30 -9
- package/dist/cloud/nexus-attach.js.map +1 -1
- package/dist/cloud/nexus-auth.d.ts +7 -1
- package/dist/cloud/nexus-auth.d.ts.map +1 -1
- package/dist/cloud/nexus-auth.js +7 -1
- package/dist/cloud/nexus-auth.js.map +1 -1
- package/dist/cloud/nexus-cloud-activity.d.ts.map +1 -1
- package/dist/cloud/nexus-cloud-activity.js +2 -1
- package/dist/cloud/nexus-cloud-activity.js.map +1 -1
- package/dist/cloud/nexus-cloud-conflicts.d.ts +48 -0
- package/dist/cloud/nexus-cloud-conflicts.d.ts.map +1 -0
- package/dist/cloud/nexus-cloud-conflicts.js +68 -0
- package/dist/cloud/nexus-cloud-conflicts.js.map +1 -0
- package/dist/cloud/nexus-cloud-status.d.ts +42 -6
- package/dist/cloud/nexus-cloud-status.d.ts.map +1 -1
- package/dist/cloud/nexus-cloud-status.js +233 -19
- package/dist/cloud/nexus-cloud-status.js.map +1 -1
- package/dist/cloud/nexus-cloud.d.ts +18 -1
- package/dist/cloud/nexus-cloud.d.ts.map +1 -1
- package/dist/cloud/nexus-cloud.js +56 -2
- package/dist/cloud/nexus-cloud.js.map +1 -1
- package/dist/cloud/nexus-credentials.d.ts +1 -1
- package/dist/cloud/nexus-credentials.d.ts.map +1 -1
- package/dist/cloud/nexus-credentials.js +1 -1
- package/dist/cloud/nexus-credentials.js.map +1 -1
- package/dist/cloud/nexus-enrol.d.ts +10 -1
- package/dist/cloud/nexus-enrol.d.ts.map +1 -1
- package/dist/cloud/nexus-enrol.js +47 -3
- package/dist/cloud/nexus-enrol.js.map +1 -1
- package/dist/cloud/nexus-first-run.d.ts +146 -0
- package/dist/cloud/nexus-first-run.d.ts.map +1 -0
- package/dist/cloud/nexus-first-run.js +358 -0
- package/dist/cloud/nexus-first-run.js.map +1 -0
- package/dist/cloud/nexus-link.d.ts +35 -4
- package/dist/cloud/nexus-link.d.ts.map +1 -1
- package/dist/cloud/nexus-link.js +172 -7
- package/dist/cloud/nexus-link.js.map +1 -1
- package/dist/cloud/nexus-presence-refresh.d.ts +65 -0
- package/dist/cloud/nexus-presence-refresh.d.ts.map +1 -0
- package/dist/cloud/nexus-presence-refresh.js +122 -0
- package/dist/cloud/nexus-presence-refresh.js.map +1 -0
- package/dist/cloud/nexus-project-history.d.ts +54 -0
- package/dist/cloud/nexus-project-history.d.ts.map +1 -0
- package/dist/cloud/nexus-project-history.js +108 -0
- package/dist/cloud/nexus-project-history.js.map +1 -0
- package/dist/cloud/nexus-project-names.d.ts +173 -0
- package/dist/cloud/nexus-project-names.d.ts.map +1 -0
- package/dist/cloud/nexus-project-names.js +314 -0
- package/dist/cloud/nexus-project-names.js.map +1 -0
- package/dist/cloud/nexus-vault-keys.d.ts +33 -2
- package/dist/cloud/nexus-vault-keys.d.ts.map +1 -1
- package/dist/cloud/nexus-vault-keys.js +144 -18
- package/dist/cloud/nexus-vault-keys.js.map +1 -1
- package/dist/cloud/nexus-vault.d.ts +7 -3
- package/dist/cloud/nexus-vault.d.ts.map +1 -1
- package/dist/cloud/nexus-vault.js +176 -29
- package/dist/cloud/nexus-vault.js.map +1 -1
- package/dist/cloud/presence.d.ts +1 -1
- package/dist/cloud/presence.d.ts.map +1 -1
- package/dist/cloud/presence.js +1 -1
- package/dist/cloud/presence.js.map +1 -1
- package/dist/cloud/projects.d.ts +7 -4
- package/dist/cloud/projects.d.ts.map +1 -1
- package/dist/cloud/projects.js +10 -1
- package/dist/cloud/projects.js.map +1 -1
- package/dist/cloud/signing.d.ts +14 -0
- package/dist/cloud/signing.d.ts.map +1 -1
- package/dist/cloud/signing.js +9 -0
- package/dist/cloud/signing.js.map +1 -1
- package/dist/conduit/cloud-endpoint.d.ts +96 -0
- package/dist/conduit/cloud-endpoint.d.ts.map +1 -0
- package/dist/conduit/cloud-endpoint.js +191 -0
- package/dist/conduit/cloud-endpoint.js.map +1 -0
- package/dist/conduit/conduit-client.d.ts.map +1 -1
- package/dist/conduit/conduit-client.js +2 -1
- package/dist/conduit/conduit-client.js.map +1 -1
- package/dist/conduit/factory.d.ts +4 -0
- package/dist/conduit/factory.d.ts.map +1 -1
- package/dist/conduit/factory.js +7 -1
- package/dist/conduit/factory.js.map +1 -1
- package/dist/conduit/http-transport.d.ts +12 -7
- package/dist/conduit/http-transport.d.ts.map +1 -1
- package/dist/conduit/http-transport.js +18 -11
- package/dist/conduit/http-transport.js.map +1 -1
- package/dist/conduit/index.d.ts +3 -1
- package/dist/conduit/index.d.ts.map +1 -1
- package/dist/conduit/index.js +3 -1
- package/dist/conduit/index.js.map +1 -1
- package/dist/conduit/sse-transport.d.ts +5 -1
- package/dist/conduit/sse-transport.d.ts.map +1 -1
- package/dist/conduit/sse-transport.js +10 -2
- package/dist/conduit/sse-transport.js.map +1 -1
- package/dist/config/registry.js +1 -1
- package/dist/config/registry.js.map +1 -1
- package/dist/core-paths.d.ts +13 -0
- package/dist/core-paths.d.ts.map +1 -0
- package/dist/core-paths.js +13 -0
- package/dist/core-paths.js.map +1 -0
- package/dist/decide/bench/source.js +1 -1
- package/dist/decide/bench/source.js.map +1 -1
- package/dist/decide/client.d.ts +1 -1
- package/dist/decide/client.d.ts.map +1 -1
- package/dist/decide/client.js +1 -1
- package/dist/decide/client.js.map +1 -1
- package/dist/decide/credentials.d.ts +1 -1
- package/dist/decide/credentials.d.ts.map +1 -1
- package/dist/decide/credentials.js +1 -1
- package/dist/decide/credentials.js.map +1 -1
- package/dist/decide/jev-wire.d.ts +1 -1
- package/dist/decide/jev-wire.d.ts.map +1 -1
- package/dist/decide/jev-wire.js +1 -1
- package/dist/decide/jev-wire.js.map +1 -1
- package/dist/decide/operations.d.ts +1 -1
- package/dist/decide/operations.d.ts.map +1 -1
- package/dist/decide/operations.js +1 -1
- package/dist/decide/operations.js.map +1 -1
- package/dist/decide/providers.d.ts +1 -1
- package/dist/decide/providers.d.ts.map +1 -1
- package/dist/decide/providers.js +1 -1
- package/dist/decide/providers.js.map +1 -1
- package/dist/decide/wizard.d.ts.map +1 -1
- package/dist/decide/wizard.js +1 -1
- package/dist/decide/wizard.js.map +1 -1
- package/dist/dispatch/config-domain-handler.d.ts +1 -1
- package/dist/dispatch/config-domain-handler.d.ts.map +1 -1
- package/dist/dispatch/config-domain-handler.js +1 -1
- package/dist/dispatch/config-domain-handler.js.map +1 -1
- package/dist/dispatch/contracts/derive-output-contract.d.ts +1 -1
- package/dist/dispatch/contracts/derive-output-contract.d.ts.map +1 -1
- package/dist/dispatch/contracts/derive-output-contract.js +2 -1
- package/dist/dispatch/contracts/derive-output-contract.js.map +1 -1
- package/dist/dispatch/contracts/ensures-schema.d.ts +1 -1
- package/dist/dispatch/contracts/ensures-schema.d.ts.map +1 -1
- package/dist/dispatch/contracts/ensures-schema.js +1 -1
- package/dist/dispatch/contracts/ensures-schema.js.map +1 -1
- package/dist/dispatch/contracts/input-contracts.d.ts +1 -1
- package/dist/dispatch/contracts/input-contracts.d.ts.map +1 -1
- package/dist/dispatch/contracts/input-contracts.js +3 -1
- package/dist/dispatch/contracts/input-contracts.js.map +1 -1
- package/dist/dispatch/contracts/output-contracts.d.ts +2 -1
- package/dist/dispatch/contracts/output-contracts.d.ts.map +1 -1
- package/dist/dispatch/contracts/output-contracts.js +1 -1
- package/dist/dispatch/contracts/output-contracts.js.map +1 -1
- package/dist/dispatch/describe-operation.d.ts +1 -1
- package/dist/dispatch/describe-operation.d.ts.map +1 -1
- package/dist/dispatch/describe-operation.js +1 -1
- package/dist/dispatch/describe-operation.js.map +1 -1
- package/dist/dispatch/mvi-projection.d.ts +1 -1
- package/dist/dispatch/mvi-projection.d.ts.map +1 -1
- package/dist/dispatch/mvi-projection.js +1 -1
- package/dist/dispatch/mvi-projection.js.map +1 -1
- package/dist/docs/display-alias.js +1 -1
- package/dist/docs/display-alias.js.map +1 -1
- package/dist/docs/docs-update.d.ts +1 -1
- package/dist/docs/docs-update.d.ts.map +1 -1
- package/dist/docs/docs-update.js +2 -1
- package/dist/docs/docs-update.js.map +1 -1
- package/dist/docs/export-document.js +14 -58410
- package/dist/docs/export-document.js.map +3 -3
- package/dist/docs/publish-pr.js +1 -1
- package/dist/docs/publish-pr.js.map +1 -1
- package/dist/docs/supersede.js +1 -1
- package/dist/docs/supersede.js.map +1 -1
- package/dist/docs/validate-body.d.ts +1 -1
- package/dist/docs/validate-body.d.ts.map +1 -1
- package/dist/docs/validate-body.js +1 -1
- package/dist/docs/validate-body.js.map +1 -1
- package/dist/docs/writer-registry.js +1 -1
- package/dist/docs/writer-registry.js.map +1 -1
- package/dist/doctor/acceptance-drift.js +1 -1
- package/dist/doctor/acceptance-drift.js.map +1 -1
- package/dist/doctor/db-substrate.d.ts +7 -10
- package/dist/doctor/db-substrate.d.ts.map +1 -1
- package/dist/doctor/db-substrate.js +11 -15
- package/dist/doctor/db-substrate.js.map +1 -1
- package/dist/doctor/invariant-audit.js +1 -1
- package/dist/doctor/invariant-audit.js.map +1 -1
- package/dist/doctor/malformed-task-ids.js +1 -1
- package/dist/doctor/malformed-task-ids.js.map +1 -1
- package/dist/doctor/migrations.d.ts +18 -0
- package/dist/doctor/migrations.d.ts.map +1 -1
- package/dist/doctor/migrations.js +54 -2
- package/dist/doctor/migrations.js.map +1 -1
- package/dist/doctor/row-identity-refill.d.ts +43 -0
- package/dist/doctor/row-identity-refill.d.ts.map +1 -0
- package/dist/doctor/row-identity-refill.js +186 -0
- package/dist/doctor/row-identity-refill.js.map +1 -0
- package/dist/doctor/superseded-store.d.ts.map +1 -1
- package/dist/doctor/superseded-store.js +51 -2
- package/dist/doctor/superseded-store.js.map +1 -1
- package/dist/doctor/sync-repair.d.ts +39 -0
- package/dist/doctor/sync-repair.d.ts.map +1 -0
- package/dist/doctor/sync-repair.js +71 -0
- package/dist/doctor/sync-repair.js.map +1 -0
- package/dist/doctor/sync-triggers.d.ts +63 -4
- package/dist/doctor/sync-triggers.d.ts.map +1 -1
- package/dist/doctor/sync-triggers.js +352 -9
- package/dist/doctor/sync-triggers.js.map +1 -1
- package/dist/doctor/twin-collapse.js +1 -1
- package/dist/doctor/twin-collapse.js.map +1 -1
- package/dist/engine/engine-ops.d.ts.map +1 -1
- package/dist/engine/engine-ops.js +7 -1
- package/dist/engine/engine-ops.js.map +1 -1
- package/dist/engine-result.d.ts +1 -1
- package/dist/engine-result.d.ts.map +1 -1
- package/dist/engine-result.js +1 -1
- package/dist/engine-result.js.map +1 -1
- package/dist/error-catalog.js +1 -1
- package/dist/error-catalog.js.map +1 -1
- package/dist/error-registry.d.ts +1 -1
- package/dist/error-registry.d.ts.map +1 -1
- package/dist/error-registry.js +1 -1
- package/dist/error-registry.js.map +1 -1
- package/dist/errors-to-engine.d.ts +20 -0
- package/dist/errors-to-engine.d.ts.map +1 -1
- package/dist/errors-to-engine.js +37 -0
- package/dist/errors-to-engine.js.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +1 -1
- package/dist/errors.js.map +1 -1
- package/dist/gc/janitor.d.ts +23 -4
- package/dist/gc/janitor.d.ts.map +1 -1
- package/dist/gc/janitor.js +71 -11
- package/dist/gc/janitor.js.map +1 -1
- package/dist/goal/continuation.d.ts +1 -1
- package/dist/goal/continuation.d.ts.map +1 -1
- package/dist/goal/continuation.js +1 -1
- package/dist/goal/continuation.js.map +1 -1
- package/dist/goal/judge.d.ts.map +1 -1
- package/dist/goal/judge.js +2 -1
- package/dist/goal/judge.js.map +1 -1
- package/dist/hooks/handlers/session-hooks.d.ts.map +1 -1
- package/dist/hooks/handlers/session-hooks.js +1 -1
- package/dist/hooks/handlers/session-hooks.js.map +1 -1
- package/dist/init/engine-ops.js +1 -1
- package/dist/init/engine-ops.js.map +1 -1
- package/dist/init.d.ts.map +1 -1
- package/dist/init.js +22 -37
- package/dist/init.js.map +1 -1
- package/dist/inject/index.js +1 -1
- package/dist/inject/index.js.map +1 -1
- package/dist/injection.d.ts.map +1 -1
- package/dist/injection.js +13 -0
- package/dist/injection.js.map +1 -1
- package/dist/internal.d.ts +4 -3
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +7 -4
- package/dist/internal.js.map +1 -1
- package/dist/issue/create.js +1 -1
- package/dist/issue/create.js.map +1 -1
- package/dist/json-schema-validator.js +1 -1
- package/dist/json-schema-validator.js.map +1 -1
- package/dist/lifecycle/index.d.ts +2 -23
- package/dist/lifecycle/index.d.ts.map +1 -1
- package/dist/lifecycle/index.js +5 -112
- package/dist/lifecycle/index.js.map +1 -1
- package/dist/lifecycle/kind-requirements.d.ts +1 -1
- package/dist/lifecycle/kind-requirements.d.ts.map +1 -1
- package/dist/lifecycle/kind-requirements.js +1 -1
- package/dist/lifecycle/kind-requirements.js.map +1 -1
- package/dist/lifecycle/pipeline.js +1 -1
- package/dist/lifecycle/pipeline.js.map +1 -1
- package/dist/lifecycle/resume.js +2 -2
- package/dist/lifecycle/resume.js.map +1 -1
- package/dist/lifecycle/state-machine.js +1 -1
- package/dist/lifecycle/state-machine.js.map +1 -1
- package/dist/lifecycle/status.d.ts +46 -0
- package/dist/lifecycle/status.d.ts.map +1 -0
- package/dist/lifecycle/status.js +147 -0
- package/dist/lifecycle/status.js.map +1 -0
- package/dist/lifecycle/verification/satisfies-validator.js +1 -1
- package/dist/lifecycle/verification/satisfies-validator.js.map +1 -1
- package/dist/llm/catalog-seeder.d.ts +1 -1
- package/dist/llm/catalog-seeder.d.ts.map +1 -1
- package/dist/llm/catalog-seeder.js +1 -1
- package/dist/llm/catalog-seeder.js.map +1 -1
- package/dist/llm/cli-ops.d.ts +1 -2
- package/dist/llm/cli-ops.d.ts.map +1 -1
- package/dist/llm/cli-ops.js +2 -1
- package/dist/llm/cli-ops.js.map +1 -1
- package/dist/llm/conversation.d.ts.map +1 -1
- package/dist/llm/conversation.js +15 -4
- package/dist/llm/conversation.js.map +1 -1
- package/dist/llm/credential-seeders/claude-code-seeder.js +1 -1
- package/dist/llm/credential-seeders/claude-code-seeder.js.map +1 -1
- package/dist/llm/credential-seeders/cleo-pkce-seeder.js +1 -1
- package/dist/llm/credential-seeders/cleo-pkce-seeder.js.map +1 -1
- package/dist/llm/credential-writeback.js +1 -1
- package/dist/llm/credential-writeback.js.map +1 -1
- package/dist/llm/entity-ops.d.ts +1 -1
- package/dist/llm/entity-ops.d.ts.map +1 -1
- package/dist/llm/entity-ops.js +2 -1
- package/dist/llm/entity-ops.js.map +1 -1
- package/dist/llm/llm-queue-admit.d.ts +1 -1
- package/dist/llm/llm-queue-admit.d.ts.map +1 -1
- package/dist/llm/llm-queue-admit.js +2 -1
- package/dist/llm/llm-queue-admit.js.map +1 -1
- package/dist/llm/onboarding/login-engine.js +1 -1
- package/dist/llm/onboarding/login-engine.js.map +1 -1
- package/dist/llm/pi/pi-errors.d.ts +1 -1
- package/dist/llm/pi/pi-errors.d.ts.map +1 -1
- package/dist/llm/pi/pi-errors.js +1 -1
- package/dist/llm/pi/pi-errors.js.map +1 -1
- package/dist/llm/plugin-facade.d.ts.map +1 -1
- package/dist/llm/plugin-facade.js +14 -93651
- package/dist/llm/plugin-facade.js.map +3 -3
- package/dist/llm/system-key.d.ts +1 -1
- package/dist/llm/system-key.d.ts.map +1 -1
- package/dist/llm/system-key.js +1 -1
- package/dist/llm/system-key.js.map +1 -1
- package/dist/llm/system-of-use-registry.d.ts +1 -1
- package/dist/llm/system-of-use-registry.d.ts.map +1 -1
- package/dist/llm/system-of-use-registry.js +1 -1
- package/dist/llm/system-of-use-registry.js.map +1 -1
- package/dist/llm/system-resolver.js +1 -1
- package/dist/llm/system-resolver.js.map +1 -1
- package/dist/llm/transports/bedrock.d.ts +1 -0
- package/dist/llm/transports/bedrock.d.ts.map +1 -1
- package/dist/llm/transports/bedrock.js +30 -12
- package/dist/llm/transports/bedrock.js.map +1 -1
- package/dist/memory/brain-host.d.ts +71 -0
- package/dist/memory/brain-host.d.ts.map +1 -0
- package/dist/memory/brain-host.js +84 -0
- package/dist/memory/brain-host.js.map +1 -0
- package/dist/memory/brain-writer-handlers.d.ts.map +1 -1
- package/dist/memory/brain-writer-handlers.js +24 -7
- package/dist/memory/brain-writer-handlers.js.map +1 -1
- package/dist/memory/brain-writer-thread.d.ts +66 -6
- package/dist/memory/brain-writer-thread.d.ts.map +1 -1
- package/dist/memory/brain-writer-thread.js +67 -10
- package/dist/memory/brain-writer-thread.js.map +1 -1
- package/dist/memory/brain-writer-worker.js +7 -0
- package/dist/memory/brain-writer-worker.js.map +1 -1
- package/dist/memory/decision-contradiction.d.ts.map +1 -1
- package/dist/memory/decision-contradiction.js +10 -5
- package/dist/memory/decision-contradiction.js.map +1 -1
- package/dist/memory/decisions.js +2 -1
- package/dist/memory/decisions.js.map +1 -1
- package/dist/memory/dialectic-evaluator.d.ts.map +1 -1
- package/dist/memory/dialectic-evaluator.js +4 -1
- package/dist/memory/dialectic-evaluator.js.map +1 -1
- package/dist/memory/embedding-backfill.d.ts +70 -0
- package/dist/memory/embedding-backfill.d.ts.map +1 -0
- package/dist/memory/embedding-backfill.js +110 -0
- package/dist/memory/embedding-backfill.js.map +1 -0
- package/dist/memory/index.js +1 -1
- package/dist/memory/index.js.map +1 -1
- package/dist/memory/manifest-identity.js +1 -1
- package/dist/memory/manifest-identity.js.map +1 -1
- package/dist/memory/retrieval/observe.d.ts +23 -0
- package/dist/memory/retrieval/observe.d.ts.map +1 -1
- package/dist/memory/retrieval/observe.js +82 -36
- package/dist/memory/retrieval/observe.js.map +1 -1
- package/dist/memory/transcript-extractor.d.ts.map +1 -1
- package/dist/memory/transcript-extractor.js +3 -2
- package/dist/memory/transcript-extractor.js.map +1 -1
- package/dist/metrics/model-provider-registry.d.ts.map +1 -1
- package/dist/metrics/model-provider-registry.js +6 -0
- package/dist/metrics/model-provider-registry.js.map +1 -1
- package/dist/metrics/token-service.d.ts +33 -0
- package/dist/metrics/token-service.d.ts.map +1 -1
- package/dist/metrics/token-service.js +35 -0
- package/dist/metrics/token-service.js.map +1 -1
- package/dist/migration/index.js +1 -1
- package/dist/migration/index.js.map +1 -1
- package/dist/migration/manual/T10165-backfill-adr-index.js +1 -1
- package/dist/migration/manual/T10165-backfill-adr-index.js.map +1 -1
- package/dist/nexus/api-contracts.d.ts.map +1 -1
- package/dist/nexus/api-contracts.js +27 -11
- package/dist/nexus/api-contracts.js.map +1 -1
- package/dist/nexus/api-extractors/http-extractor.d.ts +2 -2
- package/dist/nexus/api-extractors/http-extractor.d.ts.map +1 -1
- package/dist/nexus/api-extractors/http-extractor.js +3 -3
- package/dist/nexus/api-extractors/http-extractor.js.map +1 -1
- package/dist/nexus/assessment-projection.d.ts +1 -1
- package/dist/nexus/assessment-projection.d.ts.map +1 -1
- package/dist/nexus/assessment-projection.js +1 -1
- package/dist/nexus/assessment-projection.js.map +1 -1
- package/dist/nexus/clusters.js +1 -1
- package/dist/nexus/clusters.js.map +1 -1
- package/dist/nexus/deps.d.ts +1 -1
- package/dist/nexus/deps.d.ts.map +1 -1
- package/dist/nexus/deps.js +1 -1
- package/dist/nexus/deps.js.map +1 -1
- package/dist/nexus/diff.d.ts +1 -1
- package/dist/nexus/diff.d.ts.map +1 -1
- package/dist/nexus/diff.js +3 -2
- package/dist/nexus/diff.js.map +1 -1
- package/dist/nexus/fleet-status.d.ts +1 -1
- package/dist/nexus/fleet-status.d.ts.map +1 -1
- package/dist/nexus/fleet-status.js +1 -1
- package/dist/nexus/fleet-status.js.map +1 -1
- package/dist/nexus/flows.js +1 -1
- package/dist/nexus/flows.js.map +1 -1
- package/dist/nexus/identity.d.ts +8 -0
- package/dist/nexus/identity.d.ts.map +1 -1
- package/dist/nexus/identity.js +17 -1
- package/dist/nexus/identity.js.map +1 -1
- package/dist/nexus/index.d.ts +1 -1
- package/dist/nexus/index.d.ts.map +1 -1
- package/dist/nexus/index.js +2 -2
- package/dist/nexus/index.js.map +1 -1
- package/dist/nexus/nexus-bridge.d.ts.map +1 -1
- package/dist/nexus/nexus-bridge.js +5 -5
- package/dist/nexus/nexus-bridge.js.map +1 -1
- package/dist/nexus/permissions.d.ts +1 -1
- package/dist/nexus/permissions.d.ts.map +1 -1
- package/dist/nexus/permissions.js +1 -1
- package/dist/nexus/permissions.js.map +1 -1
- package/dist/nexus/query-dsl.js +1 -1
- package/dist/nexus/query-dsl.js.map +1 -1
- package/dist/nexus/query.d.ts +1 -2
- package/dist/nexus/query.d.ts.map +1 -1
- package/dist/nexus/query.js +1 -1
- package/dist/nexus/query.js.map +1 -1
- package/dist/nexus/registry-errors.js +1 -1
- package/dist/nexus/registry-errors.js.map +1 -1
- package/dist/nexus/registry.d.ts +23 -1
- package/dist/nexus/registry.d.ts.map +1 -1
- package/dist/nexus/registry.js +77 -2
- package/dist/nexus/registry.js.map +1 -1
- package/dist/nexus/workspace.js +1 -1
- package/dist/nexus/workspace.js.map +1 -1
- package/dist/orchestrate/pivot.d.ts.map +1 -1
- package/dist/orchestrate/pivot.js +2 -1
- package/dist/orchestrate/pivot.js.map +1 -1
- package/dist/orchestrate/query-ops.js +1 -1
- package/dist/orchestrate/query-ops.js.map +1 -1
- package/dist/orchestrate/spawn-ops.js +1 -1
- package/dist/orchestrate/spawn-ops.js.map +1 -1
- package/dist/orchestration/atomicity.d.ts +1 -1
- package/dist/orchestration/atomicity.d.ts.map +1 -1
- package/dist/orchestration/atomicity.js +1 -1
- package/dist/orchestration/atomicity.js.map +1 -1
- package/dist/orchestration/classify.js +1 -1
- package/dist/orchestration/classify.js.map +1 -1
- package/dist/orchestration/index.js +1 -1
- package/dist/orchestration/index.js.map +1 -1
- package/dist/orchestration/parallel.js +1 -1
- package/dist/orchestration/parallel.js.map +1 -1
- package/dist/orchestration/protocol-validators.d.ts +1 -1
- package/dist/orchestration/protocol-validators.d.ts.map +1 -1
- package/dist/orchestration/protocol-validators.js +1 -1
- package/dist/orchestration/protocol-validators.js.map +1 -1
- package/dist/orchestration/skill-ops.js +1 -1
- package/dist/orchestration/skill-ops.js.map +1 -1
- package/dist/orchestration/spawn-prompt.d.ts +9 -0
- package/dist/orchestration/spawn-prompt.d.ts.map +1 -1
- package/dist/orchestration/spawn-prompt.js +13 -2
- package/dist/orchestration/spawn-prompt.js.map +1 -1
- package/dist/orchestration/spawn.js +1 -1
- package/dist/orchestration/spawn.js.map +1 -1
- package/dist/paths.d.ts +3 -1
- package/dist/paths.d.ts.map +1 -1
- package/dist/paths.js +4 -2
- package/dist/paths.js.map +1 -1
- package/dist/phases/deps.js +1 -1
- package/dist/phases/deps.js.map +1 -1
- package/dist/phases/index.js +1 -1
- package/dist/phases/index.js.map +1 -1
- package/dist/project-lifecycle.js +3 -3
- package/dist/project-lifecycle.js.map +1 -1
- package/dist/project-scope.js +1 -1
- package/dist/project-scope.js.map +1 -1
- package/dist/project-tombstone.js +1 -1
- package/dist/project-tombstone.js.map +1 -1
- package/dist/registrations.d.ts +30 -0
- package/dist/registrations.d.ts.map +1 -0
- package/dist/registrations.js +30 -0
- package/dist/registrations.js.map +1 -0
- package/dist/release/changesets-aggregator.js +1 -1
- package/dist/release/changesets-aggregator.js.map +1 -1
- package/dist/release/ci-evidence.d.ts +68 -2
- package/dist/release/ci-evidence.d.ts.map +1 -1
- package/dist/release/ci-evidence.js +203 -39
- package/dist/release/ci-evidence.js.map +1 -1
- package/dist/release/invariants/archive-reason-invariant.d.ts +1 -1
- package/dist/release/invariants/archive-reason-invariant.d.ts.map +1 -1
- package/dist/release/invariants/archive-reason-invariant.js +1 -1
- package/dist/release/invariants/archive-reason-invariant.js.map +1 -1
- package/dist/release/invariants/registry.d.ts +1 -1
- package/dist/release/invariants/registry.d.ts.map +1 -1
- package/dist/release/invariants/registry.js +1 -1
- package/dist/release/invariants/registry.js.map +1 -1
- package/dist/release/open.d.ts +4 -7
- package/dist/release/open.d.ts.map +1 -1
- package/dist/release/open.js +62 -24
- package/dist/release/open.js.map +1 -1
- package/dist/release/plan.d.ts +1 -2
- package/dist/release/plan.d.ts.map +1 -1
- package/dist/release/plan.js +4 -1
- package/dist/release/plan.js.map +1 -1
- package/dist/release/pr-evidence.d.ts +1 -1
- package/dist/release/pr-evidence.d.ts.map +1 -1
- package/dist/release/pr-evidence.js +2 -2
- package/dist/release/pr-evidence.js.map +1 -1
- package/dist/release/preflight-skip.d.ts +74 -10
- package/dist/release/preflight-skip.d.ts.map +1 -1
- package/dist/release/preflight-skip.js +254 -47
- package/dist/release/preflight-skip.js.map +1 -1
- package/dist/release/reconcile.d.ts +1 -1
- package/dist/release/reconcile.d.ts.map +1 -1
- package/dist/release/reconcile.js +19 -3
- package/dist/release/reconcile.js.map +1 -1
- package/dist/release/version-bump.d.ts +1 -1
- package/dist/release/version-bump.d.ts.map +1 -1
- package/dist/release/version-bump.js +1 -1
- package/dist/release/version-bump.js.map +1 -1
- package/dist/render/colors.js +1 -19
- package/dist/render/colors.js.map +1 -1
- package/dist/render/tasks/colors.js +1 -1
- package/dist/render/tasks/colors.js.map +1 -1
- package/dist/resources/admission-ledger.d.ts +587 -0
- package/dist/resources/admission-ledger.d.ts.map +1 -0
- package/dist/resources/admission-ledger.js +1401 -0
- package/dist/resources/admission-ledger.js.map +1 -0
- package/dist/resources/backend.d.ts +37 -1
- package/dist/resources/backend.d.ts.map +1 -1
- package/dist/resources/backend.js +1 -1
- package/dist/resources/darwin-backend.d.ts +152 -26
- package/dist/resources/darwin-backend.d.ts.map +1 -1
- package/dist/resources/darwin-backend.js +217 -34
- package/dist/resources/darwin-backend.js.map +1 -1
- package/dist/resources/governor.d.ts +36 -27
- package/dist/resources/governor.d.ts.map +1 -1
- package/dist/resources/governor.js +144 -49
- package/dist/resources/governor.js.map +1 -1
- package/dist/resources/heavy-command-hook-delivery.d.ts +144 -0
- package/dist/resources/heavy-command-hook-delivery.d.ts.map +1 -0
- package/dist/resources/heavy-command-hook-delivery.js +204 -0
- package/dist/resources/heavy-command-hook-delivery.js.map +1 -0
- package/dist/resources/heavy-command.d.ts +69 -0
- package/dist/resources/heavy-command.d.ts.map +1 -1
- package/dist/resources/heavy-command.js +479 -7
- package/dist/resources/heavy-command.js.map +1 -1
- package/dist/resources/pressure-gate.d.ts +148 -0
- package/dist/resources/pressure-gate.d.ts.map +1 -0
- package/dist/resources/pressure-gate.js +273 -0
- package/dist/resources/pressure-gate.js.map +1 -0
- package/dist/resources/run-admission.d.ts +33 -45
- package/dist/resources/run-admission.d.ts.map +1 -1
- package/dist/resources/run-admission.js +50 -118
- package/dist/resources/run-admission.js.map +1 -1
- package/dist/resources/run-class.d.ts +60 -4
- package/dist/resources/run-class.d.ts.map +1 -1
- package/dist/resources/run-class.js +474 -6
- package/dist/resources/run-class.js.map +1 -1
- package/dist/resources/run-governed.d.ts +43 -11
- package/dist/resources/run-governed.d.ts.map +1 -1
- package/dist/resources/run-governed.js +139 -99
- package/dist/resources/run-governed.js.map +1 -1
- package/dist/resources/slot-holder.d.ts +12 -4
- package/dist/resources/slot-holder.d.ts.map +1 -1
- package/dist/resources/slot-holder.js +19 -14
- package/dist/resources/slot-holder.js.map +1 -1
- package/dist/resources/spawn-wrapper.js +1 -1
- package/dist/resources/spawn-wrapper.js.map +1 -1
- package/dist/resources/supervisor-admit.d.ts +1 -1
- package/dist/resources/supervisor-admit.d.ts.map +1 -1
- package/dist/resources/supervisor-admit.js +2 -1
- package/dist/resources/supervisor-admit.js.map +1 -1
- package/dist/routing/build-command-groups.d.ts +1 -1
- package/dist/routing/build-command-groups.d.ts.map +1 -1
- package/dist/routing/build-command-groups.js +4 -1
- package/dist/routing/build-command-groups.js.map +1 -1
- package/dist/runtime/openapi/generate-openapi.d.ts +1 -1
- package/dist/runtime/openapi/generate-openapi.d.ts.map +1 -1
- package/dist/runtime/openapi/generate-openapi.js +1 -1
- package/dist/runtime/openapi/generate-openapi.js.map +1 -1
- package/dist/sagas/index.d.ts +3 -1
- package/dist/sagas/index.d.ts.map +1 -1
- package/dist/sagas/index.js +2 -5
- package/dist/sagas/index.js.map +1 -1
- package/dist/scaffold/ensure-skills.d.ts.map +1 -1
- package/dist/scaffold/ensure-skills.js +58 -2
- package/dist/scaffold/ensure-skills.js.map +1 -1
- package/dist/scaffold/project-identity.js +1 -1
- package/dist/scaffold/project-identity.js.map +1 -1
- package/dist/sdk/validator-attest.d.ts +1 -1
- package/dist/sdk/validator-attest.d.ts.map +1 -1
- package/dist/sdk/validator-attest.js +1 -1
- package/dist/sdk/validator-attest.js.map +1 -1
- package/dist/sdk/validator-reject.d.ts +1 -1
- package/dist/sdk/validator-reject.d.ts.map +1 -1
- package/dist/sdk/validator-reject.js +1 -1
- package/dist/sdk/validator-reject.js.map +1 -1
- package/dist/security/input-sanitization.js +2 -1
- package/dist/security/input-sanitization.js.map +1 -1
- package/dist/security/override-cap.js +1 -1
- package/dist/security/override-cap.js.map +1 -1
- package/dist/security/owner-override-auth.js +1 -1
- package/dist/security/owner-override-auth.js.map +1 -1
- package/dist/security/shared-evidence-tracker.js +1 -1
- package/dist/security/shared-evidence-tracker.js.map +1 -1
- package/dist/selfimprove/fix-gen.js +35 -93136
- package/dist/selfimprove/fix-gen.js.map +3 -3
- package/dist/sentient/daemon.d.ts.map +1 -1
- package/dist/sentient/daemon.js +3 -0
- package/dist/sentient/daemon.js.map +1 -1
- package/dist/sentient/tick.d.ts +7 -0
- package/dist/sentient/tick.d.ts.map +1 -1
- package/dist/sentient/tick.js +11 -0
- package/dist/sentient/tick.js.map +1 -1
- package/dist/sequence/index.js +1 -1
- package/dist/sequence/index.js.map +1 -1
- package/dist/session/engine-ops.d.ts +3 -45
- package/dist/session/engine-ops.d.ts.map +1 -1
- package/dist/session/engine-ops.js +63 -112
- package/dist/session/engine-ops.js.map +1 -1
- package/dist/session/status-op.d.ts +40 -0
- package/dist/session/status-op.d.ts.map +1 -0
- package/dist/session/status-op.js +71 -0
- package/dist/session/status-op.js.map +1 -0
- package/dist/session/task-current.d.ts +31 -0
- package/dist/session/task-current.d.ts.map +1 -0
- package/dist/session/task-current.js +59 -0
- package/dist/session/task-current.js.map +1 -0
- package/dist/sessions/assumptions.d.ts +1 -1
- package/dist/sessions/assumptions.d.ts.map +1 -1
- package/dist/sessions/assumptions.js +1 -1
- package/dist/sessions/assumptions.js.map +1 -1
- package/dist/sessions/briefing.d.ts.map +1 -1
- package/dist/sessions/briefing.js +11 -0
- package/dist/sessions/briefing.js.map +1 -1
- package/dist/sessions/context-inject.js +1 -1
- package/dist/sessions/context-inject.js.map +1 -1
- package/dist/sessions/decisions.d.ts +1 -1
- package/dist/sessions/decisions.d.ts.map +1 -1
- package/dist/sessions/decisions.js +1 -1
- package/dist/sessions/decisions.js.map +1 -1
- package/dist/sessions/focus-state-store.d.ts.map +1 -1
- package/dist/sessions/focus-state-store.js +2 -1
- package/dist/sessions/focus-state-store.js.map +1 -1
- package/dist/sessions/handoff.js +1 -1
- package/dist/sessions/handoff.js.map +1 -1
- package/dist/sessions/index.d.ts +1 -2
- package/dist/sessions/index.d.ts.map +1 -1
- package/dist/sessions/index.js +3 -2
- package/dist/sessions/index.js.map +1 -1
- package/dist/sessions/session-drift.js +1 -1
- package/dist/sessions/session-drift.js.map +1 -1
- package/dist/sessions/session-end-snapshot-entry.d.ts +4 -0
- package/dist/sessions/session-end-snapshot-entry.d.ts.map +1 -1
- package/dist/sessions/session-end-snapshot-entry.js +11 -0
- package/dist/sessions/session-end-snapshot-entry.js.map +1 -1
- package/dist/sessions/session-end-snapshot.d.ts.map +1 -1
- package/dist/sessions/session-end-snapshot.js +4 -0
- package/dist/sessions/session-end-snapshot.js.map +1 -1
- package/dist/sessions/session-enforcement.js +1 -1
- package/dist/sessions/session-enforcement.js.map +1 -1
- package/dist/sessions/session-show.d.ts +1 -2
- package/dist/sessions/session-show.d.ts.map +1 -1
- package/dist/sessions/session-show.js +1 -1
- package/dist/sessions/session-show.js.map +1 -1
- package/dist/sessions/session-stats.js +1 -1
- package/dist/sessions/session-stats.js.map +1 -1
- package/dist/sessions/session-suspend.d.ts +1 -2
- package/dist/sessions/session-suspend.d.ts.map +1 -1
- package/dist/sessions/session-suspend.js +1 -1
- package/dist/sessions/session-suspend.js.map +1 -1
- package/dist/sessions/session-switch.js +1 -1
- package/dist/sessions/session-switch.js.map +1 -1
- package/dist/sessions/snapshot.js +1 -1
- package/dist/sessions/snapshot.js.map +1 -1
- package/dist/sessions/terminal-identity.d.ts +1 -1
- package/dist/sessions/terminal-identity.d.ts.map +1 -1
- package/dist/sessions/terminal-identity.js +1 -1
- package/dist/sessions/terminal-identity.js.map +1 -1
- package/dist/setup/sections/integrations.d.ts.map +1 -1
- package/dist/setup/sections/integrations.js +9 -0
- package/dist/setup/sections/integrations.js.map +1 -1
- package/dist/setup/sections/models-roles.js +1 -1
- package/dist/setup/sections/models-roles.js.map +1 -1
- package/dist/setup/sections/verification.d.ts.map +1 -1
- package/dist/setup/sections/verification.js +8 -2
- package/dist/setup/sections/verification.js.map +1 -1
- package/dist/shutdown.d.ts +24 -0
- package/dist/shutdown.d.ts.map +1 -1
- package/dist/shutdown.js +30 -1
- package/dist/shutdown.js.map +1 -1
- package/dist/skills/agents/install.d.ts +46 -6
- package/dist/skills/agents/install.d.ts.map +1 -1
- package/dist/skills/agents/install.js +86 -17
- package/dist/skills/agents/install.js.map +1 -1
- package/dist/skills/injection/subagent.js +1 -1
- package/dist/skills/injection/subagent.js.map +1 -1
- package/dist/skills/manifests/research.d.ts.map +1 -1
- package/dist/skills/manifests/research.js +2 -1
- package/dist/skills/manifests/research.js.map +1 -1
- package/dist/skills/orchestrator/spawn.js +1 -1
- package/dist/skills/orchestrator/spawn.js.map +1 -1
- package/dist/skills/orchestrator/validator.js +1 -1
- package/dist/skills/orchestrator/validator.js.map +1 -1
- package/dist/snapshot/index.d.ts.map +1 -1
- package/dist/snapshot/index.js +13 -0
- package/dist/snapshot/index.js.map +1 -1
- package/dist/spawn/agent-identity.js +1 -1
- package/dist/spawn/agent-identity.js.map +1 -1
- package/dist/stats/index.d.ts.map +1 -1
- package/dist/stats/index.js +2 -1
- package/dist/stats/index.js.map +1 -1
- package/dist/store/agent-install.d.ts.map +1 -1
- package/dist/store/agent-install.js +2 -1
- package/dist/store/agent-install.js.map +1 -1
- package/dist/store/agent-registry-accessor.d.ts +1 -0
- package/dist/store/agent-registry-accessor.d.ts.map +1 -1
- package/dist/store/agent-registry-accessor.js +3 -1
- package/dist/store/agent-registry-accessor.js.map +1 -1
- package/dist/store/atomic.js +1 -1
- package/dist/store/atomic.js.map +1 -1
- package/dist/store/attachment-store.js +1 -1
- package/dist/store/attachment-store.js.map +1 -1
- package/dist/store/audit-log-schema.d.ts +645 -0
- package/dist/store/audit-log-schema.d.ts.map +1 -0
- package/dist/store/audit-log-schema.js +30 -0
- package/dist/store/audit-log-schema.js.map +1 -0
- package/dist/store/background-ops.d.ts +26 -0
- package/dist/store/background-ops.d.ts.map +1 -1
- package/dist/store/background-ops.js +46 -0
- package/dist/store/background-ops.js.map +1 -1
- package/dist/store/backup-recover.d.ts +36 -1
- package/dist/store/backup-recover.d.ts.map +1 -1
- package/dist/store/backup-recover.js +99 -1
- package/dist/store/backup-recover.js.map +1 -1
- package/dist/store/backup-verify.d.ts +1 -1
- package/dist/store/backup-verify.d.ts.map +1 -1
- package/dist/store/backup-verify.js +6 -1
- package/dist/store/backup-verify.js.map +1 -1
- package/dist/store/backup.js +1 -1
- package/dist/store/backup.js.map +1 -1
- package/dist/store/conduit-sqlite.d.ts.map +1 -1
- package/dist/store/conduit-sqlite.js +2 -26
- package/dist/store/conduit-sqlite.js.map +1 -1
- package/dist/store/converters.js +1 -1
- package/dist/store/converters.js.map +1 -1
- package/dist/store/db-helpers.js +1 -1
- package/dist/store/db-helpers.js.map +1 -1
- package/dist/store/dependency-cycles.js +1 -1
- package/dist/store/dependency-cycles.js.map +1 -1
- package/dist/store/display-id-alias.d.ts +2 -2
- package/dist/store/display-id-alias.d.ts.map +1 -1
- package/dist/store/display-id-alias.js +5 -28
- package/dist/store/display-id-alias.js.map +1 -1
- package/dist/store/drizzle-node-sqlite.d.ts +56 -0
- package/dist/store/drizzle-node-sqlite.d.ts.map +1 -0
- package/dist/store/drizzle-node-sqlite.js +87 -0
- package/dist/store/drizzle-node-sqlite.js.map +1 -0
- package/dist/store/dual-scope-db.d.ts +26 -33
- package/dist/store/dual-scope-db.d.ts.map +1 -1
- package/dist/store/dual-scope-db.js +416 -122
- package/dist/store/dual-scope-db.js.map +1 -1
- package/dist/store/exodus/abort-events.d.ts +134 -0
- package/dist/store/exodus/abort-events.d.ts.map +1 -1
- package/dist/store/exodus/abort-events.js +201 -0
- package/dist/store/exodus/abort-events.js.map +1 -1
- package/dist/store/exodus/migrate.d.ts +7 -0
- package/dist/store/exodus/migrate.d.ts.map +1 -1
- package/dist/store/exodus/migrate.js +156 -118
- package/dist/store/exodus/migrate.js.map +1 -1
- package/dist/store/exodus/on-open.d.ts +36 -0
- package/dist/store/exodus/on-open.d.ts.map +1 -1
- package/dist/store/exodus/on-open.js +102 -27
- package/dist/store/exodus/on-open.js.map +1 -1
- package/dist/store/exodus/prior-recoveries.d.ts +75 -0
- package/dist/store/exodus/prior-recoveries.d.ts.map +1 -0
- package/dist/store/exodus/prior-recoveries.js +122 -0
- package/dist/store/exodus/prior-recoveries.js.map +1 -0
- package/dist/store/exodus/reconcile.d.ts.map +1 -1
- package/dist/store/exodus/reconcile.js +188 -24
- package/dist/store/exodus/reconcile.js.map +1 -1
- package/dist/store/exodus/runtime-targets.d.ts +3 -3
- package/dist/store/exodus/runtime-targets.js +3 -3
- package/dist/store/exodus/task-id-collision-sql.d.ts +52 -0
- package/dist/store/exodus/task-id-collision-sql.d.ts.map +1 -0
- package/dist/store/exodus/task-id-collision-sql.js +97 -0
- package/dist/store/exodus/task-id-collision-sql.js.map +1 -0
- package/dist/store/exodus/task-id-remap.d.ts +113 -0
- package/dist/store/exodus/task-id-remap.d.ts.map +1 -0
- package/dist/store/exodus/task-id-remap.js +301 -0
- package/dist/store/exodus/task-id-remap.js.map +1 -0
- package/dist/store/exodus/verify-migration.js +1 -1
- package/dist/store/exodus/verify-migration.js.map +1 -1
- package/dist/store/exodus/write-guard.d.ts +136 -0
- package/dist/store/exodus/write-guard.d.ts.map +1 -0
- package/dist/store/exodus/write-guard.js +289 -0
- package/dist/store/exodus/write-guard.js.map +1 -0
- package/dist/store/identity-share.d.ts +31 -0
- package/dist/store/identity-share.d.ts.map +1 -0
- package/dist/store/identity-share.js +54 -0
- package/dist/store/identity-share.js.map +1 -0
- package/dist/store/import-remap.js +1 -1
- package/dist/store/import-remap.js.map +1 -1
- package/dist/store/import-sort.js +1 -1
- package/dist/store/import-sort.js.map +1 -1
- package/dist/store/json.js +1 -1
- package/dist/store/json.js.map +1 -1
- package/dist/store/legacy-tasks-lineage.js +3 -3
- package/dist/store/legacy-tasks-lineage.js.map +1 -1
- package/dist/store/lock.d.ts +17 -0
- package/dist/store/lock.d.ts.map +1 -1
- package/dist/store/lock.js +18 -1
- package/dist/store/lock.js.map +1 -1
- package/dist/store/memory-sqlite.d.ts.map +1 -1
- package/dist/store/memory-sqlite.js +2 -25
- package/dist/store/memory-sqlite.js.map +1 -1
- package/dist/store/migration-files.d.ts +30 -0
- package/dist/store/migration-files.d.ts.map +1 -0
- package/dist/store/migration-files.js +59 -0
- package/dist/store/migration-files.js.map +1 -0
- package/dist/store/migration-manager.d.ts.map +1 -1
- package/dist/store/migration-manager.js +14 -14
- package/dist/store/migration-manager.js.map +1 -1
- package/dist/store/migration-runner.d.ts.map +1 -1
- package/dist/store/migration-runner.js +2 -2
- package/dist/store/migration-runner.js.map +1 -1
- package/dist/store/migration-sqlite.d.ts +1 -1
- package/dist/store/migration-sqlite.d.ts.map +1 -1
- package/dist/store/migration-sqlite.js +290 -355
- package/dist/store/migration-sqlite.js.map +1 -1
- package/dist/store/open-cleo-db.d.ts.map +1 -1
- package/dist/store/open-cleo-db.js +4 -2
- package/dist/store/open-cleo-db.js.map +1 -1
- package/dist/store/pid-alive.d.ts +15 -0
- package/dist/store/pid-alive.d.ts.map +1 -0
- package/dist/store/pid-alive.js +24 -0
- package/dist/store/pid-alive.js.map +1 -0
- package/dist/store/portable-bundle-scan.d.ts +1 -1
- package/dist/store/portable-bundle-scan.d.ts.map +1 -1
- package/dist/store/portable-bundle-scan.js +1 -1
- package/dist/store/portable-bundle-scan.js.map +1 -1
- package/dist/store/portable-bundle.d.ts +10 -1
- package/dist/store/portable-bundle.d.ts.map +1 -1
- package/dist/store/portable-bundle.js +10 -1
- package/dist/store/portable-bundle.js.map +1 -1
- package/dist/store/recover-malformed-db.d.ts +1 -1
- package/dist/store/recover-malformed-db.d.ts.map +1 -1
- package/dist/store/recover-malformed-db.js +1 -1
- package/dist/store/recover-malformed-db.js.map +1 -1
- package/dist/store/repair-malformed-dbs.d.ts +1 -1
- package/dist/store/repair-malformed-dbs.d.ts.map +1 -1
- package/dist/store/repair-malformed-dbs.js +1 -1
- package/dist/store/repair-malformed-dbs.js.map +1 -1
- package/dist/store/restore-marker.d.ts +89 -0
- package/dist/store/restore-marker.d.ts.map +1 -0
- package/dist/store/restore-marker.js +197 -0
- package/dist/store/restore-marker.js.map +1 -0
- package/dist/store/restore-store.d.ts +85 -0
- package/dist/store/restore-store.d.ts.map +1 -0
- package/dist/store/restore-store.js +391 -0
- package/dist/store/restore-store.js.map +1 -0
- package/dist/store/row-identity.d.ts +123 -1
- package/dist/store/row-identity.d.ts.map +1 -1
- package/dist/store/row-identity.js +454 -80
- package/dist/store/row-identity.js.map +1 -1
- package/dist/store/schema/agent-registry-schema.d.ts +1 -1
- package/dist/store/schema/agent-registry-schema.d.ts.map +1 -1
- package/dist/store/schema/agent-registry-schema.js +5 -1
- package/dist/store/schema/agent-registry-schema.js.map +1 -1
- package/dist/store/schema/cleo-global/agent-registry.d.ts +1 -1
- package/dist/store/schema/cleo-global/agent-registry.d.ts.map +1 -1
- package/dist/store/schema/cleo-global/agent-registry.js +9 -5
- package/dist/store/schema/cleo-global/agent-registry.js.map +1 -1
- package/dist/store/schema/cleo-global/models-catalog.js +1 -1
- package/dist/store/schema/cleo-global/models-catalog.js.map +1 -1
- package/dist/store/schema/cleo-global/nexus.js +1 -1
- package/dist/store/schema/cleo-global/nexus.js.map +1 -1
- package/dist/store/schema/cleo-project/provenance-commits.d.ts +1 -1
- package/dist/store/schema/cleo-project/provenance-orphans.d.ts +1 -1
- package/dist/store/schema/cleo-project/provenance-orphans.d.ts.map +1 -1
- package/dist/store/schema/cleo-project/provenance-orphans.js +9 -2
- package/dist/store/schema/cleo-project/provenance-orphans.js.map +1 -1
- package/dist/store/schema/cleo-project/provenance-rest.d.ts +1 -1
- package/dist/store/schema/cleo-project/provenance-rest.js +1 -1
- package/dist/store/schema/cleo-project/provenance-rest.js.map +1 -1
- package/dist/store/schema/cleo-shared/brain.js +1 -1
- package/dist/store/schema/cleo-shared/brain.js.map +1 -1
- package/dist/store/schema/memory-schema.d.ts +1 -1
- package/dist/store/schema/memory-schema.d.ts.map +1 -1
- package/dist/store/schema/memory-schema.js +1 -1
- package/dist/store/schema/memory-schema.js.map +1 -1
- package/dist/store/schema/nexus-schema.js +1 -1
- package/dist/store/schema/nexus-schema.js.map +1 -1
- package/dist/store/service-host-matcher.d.ts +1 -1
- package/dist/store/service-host-matcher.d.ts.map +1 -1
- package/dist/store/service-host-matcher.js +1 -1
- package/dist/store/service-host-matcher.js.map +1 -1
- package/dist/store/service-oauth.js +1 -1
- package/dist/store/service-oauth.js.map +1 -1
- package/dist/store/session-store.d.ts.map +1 -1
- package/dist/store/session-store.js +7 -1
- package/dist/store/session-store.js.map +1 -1
- package/dist/store/sqlite-backup.d.ts +1 -1
- package/dist/store/sqlite-backup.d.ts.map +1 -1
- package/dist/store/sqlite-backup.js +1 -1
- package/dist/store/sqlite-backup.js.map +1 -1
- package/dist/store/sqlite-data-accessor.d.ts +52 -1
- package/dist/store/sqlite-data-accessor.d.ts.map +1 -1
- package/dist/store/sqlite-data-accessor.js +95 -22
- package/dist/store/sqlite-data-accessor.js.map +1 -1
- package/dist/store/sqlite-native.d.ts.map +1 -1
- package/dist/store/sqlite-native.js +9 -9
- package/dist/store/sqlite-native.js.map +1 -1
- package/dist/store/sqlite-pragmas.d.ts +12 -5
- package/dist/store/sqlite-pragmas.d.ts.map +1 -1
- package/dist/store/sqlite-pragmas.js +13 -2
- package/dist/store/sqlite-pragmas.js.map +1 -1
- package/dist/store/sqlite.d.ts.map +1 -1
- package/dist/store/sqlite.js +7 -32
- package/dist/store/sqlite.js.map +1 -1
- package/dist/store/status-registry.d.ts +1 -1
- package/dist/store/status-registry.d.ts.map +1 -1
- package/dist/store/status-registry.js +1 -1
- package/dist/store/status-registry.js.map +1 -1
- package/dist/store/sync/apply/applier.d.ts +119 -0
- package/dist/store/sync/apply/applier.d.ts.map +1 -0
- package/dist/store/sync/apply/applier.js +1239 -0
- package/dist/store/sync/apply/applier.js.map +1 -0
- package/dist/store/sync/apply/fk.d.ts +47 -0
- package/dist/store/sync/apply/fk.d.ts.map +1 -0
- package/dist/store/sync/apply/fk.js +89 -0
- package/dist/store/sync/apply/fk.js.map +1 -0
- package/dist/store/sync/apply/footprints.d.ts +60 -0
- package/dist/store/sync/apply/footprints.d.ts.map +1 -0
- package/dist/store/sync/apply/footprints.js +235 -0
- package/dist/store/sync/apply/footprints.js.map +1 -0
- package/dist/store/sync/apply/frame.d.ts +80 -0
- package/dist/store/sync/apply/frame.d.ts.map +1 -0
- package/dist/store/sync/apply/frame.js +127 -0
- package/dist/store/sync/apply/frame.js.map +1 -0
- package/dist/store/sync/apply/index.d.ts +11 -0
- package/dist/store/sync/apply/index.d.ts.map +1 -0
- package/dist/store/sync/apply/index.js +11 -0
- package/dist/store/sync/apply/index.js.map +1 -0
- package/dist/store/sync/apply/parent-delete.d.ts +38 -0
- package/dist/store/sync/apply/parent-delete.d.ts.map +1 -0
- package/dist/store/sync/apply/parent-delete.js +41 -0
- package/dist/store/sync/apply/parent-delete.js.map +1 -0
- package/dist/store/sync/apply/post-apply.d.ts +67 -0
- package/dist/store/sync/apply/post-apply.d.ts.map +1 -0
- package/dist/store/sync/apply/post-apply.js +118 -0
- package/dist/store/sync/apply/post-apply.js.map +1 -0
- package/dist/store/sync/apply/refs.d.ts +60 -0
- package/dist/store/sync/apply/refs.d.ts.map +1 -0
- package/dist/store/sync/apply/refs.js +90 -0
- package/dist/store/sync/apply/refs.js.map +1 -0
- package/dist/store/sync/apply/write-api.d.ts +195 -0
- package/dist/store/sync/apply/write-api.d.ts.map +1 -0
- package/dist/store/sync/apply/write-api.js +416 -0
- package/dist/store/sync/apply/write-api.js.map +1 -0
- package/dist/store/sync/apply-intent.d.ts +117 -0
- package/dist/store/sync/apply-intent.d.ts.map +1 -0
- package/dist/store/sync/apply-intent.js +225 -0
- package/dist/store/sync/apply-intent.js.map +1 -0
- package/dist/store/sync/capture.d.ts +32 -2
- package/dist/store/sync/capture.d.ts.map +1 -1
- package/dist/store/sync/capture.js +47 -13
- package/dist/store/sync/capture.js.map +1 -1
- package/dist/store/sync/conflicts.d.ts +81 -0
- package/dist/store/sync/conflicts.d.ts.map +1 -0
- package/dist/store/sync/conflicts.js +98 -0
- package/dist/store/sync/conflicts.js.map +1 -0
- package/dist/store/sync/field-leave.d.ts +146 -0
- package/dist/store/sync/field-leave.d.ts.map +1 -0
- package/dist/store/sync/field-leave.js +241 -0
- package/dist/store/sync/field-leave.js.map +1 -0
- package/dist/store/sync/flags.d.ts +119 -0
- package/dist/store/sync/flags.d.ts.map +1 -1
- package/dist/store/sync/flags.js +360 -0
- package/dist/store/sync/flags.js.map +1 -1
- package/dist/store/sync/held.d.ts +197 -0
- package/dist/store/sync/held.d.ts.map +1 -0
- package/dist/store/sync/held.js +314 -0
- package/dist/store/sync/held.js.map +1 -0
- package/dist/store/sync/identity-fill.d.ts.map +1 -1
- package/dist/store/sync/identity-fill.js +10 -2
- package/dist/store/sync/identity-fill.js.map +1 -1
- package/dist/store/sync/inbox.d.ts +114 -0
- package/dist/store/sync/inbox.d.ts.map +1 -0
- package/dist/store/sync/inbox.js +222 -0
- package/dist/store/sync/inbox.js.map +1 -0
- package/dist/store/sync/inherit.d.ts +36 -0
- package/dist/store/sync/inherit.d.ts.map +1 -0
- package/dist/store/sync/inherit.js +38 -0
- package/dist/store/sync/inherit.js.map +1 -0
- package/dist/store/sync/merge/engine.d.ts +114 -0
- package/dist/store/sync/merge/engine.d.ts.map +1 -0
- package/dist/store/sync/merge/engine.js +698 -0
- package/dist/store/sync/merge/engine.js.map +1 -0
- package/dist/store/sync/merge/index.d.ts +11 -0
- package/dist/store/sync/merge/index.d.ts.map +1 -0
- package/dist/store/sync/merge/index.js +11 -0
- package/dist/store/sync/merge/index.js.map +1 -0
- package/dist/store/sync/merge/rules.d.ts +91 -0
- package/dist/store/sync/merge/rules.d.ts.map +1 -0
- package/dist/store/sync/merge/rules.js +151 -0
- package/dist/store/sync/merge/rules.js.map +1 -0
- package/dist/store/sync/merge/types.d.ts +206 -0
- package/dist/store/sync/merge/types.d.ts.map +1 -0
- package/dist/store/sync/merge/types.js +15 -0
- package/dist/store/sync/merge/types.js.map +1 -0
- package/dist/store/sync/migration-hooks.d.ts +47 -0
- package/dist/store/sync/migration-hooks.d.ts.map +1 -0
- package/dist/store/sync/migration-hooks.js +74 -0
- package/dist/store/sync/migration-hooks.js.map +1 -0
- package/dist/store/sync/netting.d.ts +5 -0
- package/dist/store/sync/netting.d.ts.map +1 -1
- package/dist/store/sync/netting.js +29 -2
- package/dist/store/sync/netting.js.map +1 -1
- package/dist/store/sync/remap.d.ts +72 -0
- package/dist/store/sync/remap.d.ts.map +1 -0
- package/dist/store/sync/remap.js +209 -0
- package/dist/store/sync/remap.js.map +1 -0
- package/dist/store/sync/repair.d.ts +180 -0
- package/dist/store/sync/repair.d.ts.map +1 -0
- package/dist/store/sync/repair.js +499 -0
- package/dist/store/sync/repair.js.map +1 -0
- package/dist/store/sync/replica-registry.d.ts +54 -0
- package/dist/store/sync/replica-registry.d.ts.map +1 -1
- package/dist/store/sync/replica-registry.js +72 -2
- package/dist/store/sync/replica-registry.js.map +1 -1
- package/dist/store/sync/replica.d.ts +71 -9
- package/dist/store/sync/replica.d.ts.map +1 -1
- package/dist/store/sync/replica.js +95 -11
- package/dist/store/sync/replica.js.map +1 -1
- package/dist/store/sync/row-meta.d.ts +148 -0
- package/dist/store/sync/row-meta.d.ts.map +1 -0
- package/dist/store/sync/row-meta.js +200 -0
- package/dist/store/sync/row-meta.js.map +1 -0
- package/dist/store/sync/schema.d.ts +13 -5
- package/dist/store/sync/schema.d.ts.map +1 -1
- package/dist/store/sync/schema.js +34 -7
- package/dist/store/sync/schema.js.map +1 -1
- package/dist/store/sync/sealer-values.d.ts.map +1 -1
- package/dist/store/sync/sealer-values.js +1 -0
- package/dist/store/sync/sealer-values.js.map +1 -1
- package/dist/store/sync/sealer.d.ts +96 -0
- package/dist/store/sync/sealer.d.ts.map +1 -1
- package/dist/store/sync/sealer.js +532 -58
- package/dist/store/sync/sealer.js.map +1 -1
- package/dist/store/sync/sequencing.d.ts +175 -0
- package/dist/store/sync/sequencing.d.ts.map +1 -0
- package/dist/store/sync/sequencing.js +295 -0
- package/dist/store/sync/sequencing.js.map +1 -0
- package/dist/store/sync/structural.d.ts +30 -2
- package/dist/store/sync/structural.d.ts.map +1 -1
- package/dist/store/sync/structural.js +64 -2
- package/dist/store/sync/structural.js.map +1 -1
- package/dist/store/sync/timestamp-canon.d.ts +44 -0
- package/dist/store/sync/timestamp-canon.d.ts.map +1 -0
- package/dist/store/sync/timestamp-canon.js +102 -0
- package/dist/store/sync/timestamp-canon.js.map +1 -0
- package/dist/store/sync/timestamps.d.ts +1 -30
- package/dist/store/sync/timestamps.d.ts.map +1 -1
- package/dist/store/sync/timestamps.js +2 -89
- package/dist/store/sync/timestamps.js.map +1 -1
- package/dist/store/sync/trigger-classes.d.ts +8 -0
- package/dist/store/sync/trigger-classes.d.ts.map +1 -1
- package/dist/store/sync/trigger-classes.js +13 -0
- package/dist/store/sync/trigger-classes.js.map +1 -1
- package/dist/store/sync/write-actor.d.ts +58 -0
- package/dist/store/sync/write-actor.d.ts.map +1 -0
- package/dist/store/sync/write-actor.js +67 -0
- package/dist/store/sync/write-actor.js.map +1 -0
- package/dist/store/table-classification.d.ts +27 -0
- package/dist/store/table-classification.d.ts.map +1 -1
- package/dist/store/table-classification.js +116 -0
- package/dist/store/table-classification.js.map +1 -1
- package/dist/store/task-claim.d.ts +1 -1
- package/dist/store/task-claim.d.ts.map +1 -1
- package/dist/store/task-claim.js +1 -1
- package/dist/store/task-claim.js.map +1 -1
- package/dist/store/task-reference-columns.d.ts +27 -0
- package/dist/store/task-reference-columns.d.ts.map +1 -0
- package/dist/store/task-reference-columns.js +65 -0
- package/dist/store/task-reference-columns.js.map +1 -0
- package/dist/store/task-version.d.ts +1 -1
- package/dist/store/task-version.d.ts.map +1 -1
- package/dist/store/task-version.js +1 -1
- package/dist/store/task-version.js.map +1 -1
- package/dist/store/tasks-schema.d.ts +2 -1
- package/dist/store/tasks-schema.d.ts.map +1 -1
- package/dist/store/tasks-schema.js +5 -4
- package/dist/store/tasks-schema.js.map +1 -1
- package/dist/store/tasks-sqlite.d.ts +1 -1
- package/dist/store/tasks-sqlite.d.ts.map +1 -1
- package/dist/store/tasks-sqlite.js +3 -1
- package/dist/store/tasks-sqlite.js.map +1 -1
- package/dist/store/twin-collapse.d.ts +43 -14
- package/dist/store/twin-collapse.d.ts.map +1 -1
- package/dist/store/twin-collapse.js +373 -32
- package/dist/store/twin-collapse.js.map +1 -1
- package/dist/store/validation-schemas.d.ts +44 -674
- package/dist/store/validation-schemas.d.ts.map +1 -1
- package/dist/store/validation-schemas.js +2 -22
- package/dist/store/validation-schemas.js.map +1 -1
- package/dist/store/vault-manifest.d.ts +6 -2
- package/dist/store/vault-manifest.d.ts.map +1 -1
- package/dist/store/vault-manifest.js +10 -3
- package/dist/store/vault-manifest.js.map +1 -1
- package/dist/store/worktree-build-guard.js +1 -1
- package/dist/store/worktree-build-guard.js.map +1 -1
- package/dist/store/worktree-isolation-guard.js +1 -1
- package/dist/store/worktree-isolation-guard.js.map +1 -1
- package/dist/store/writer-lease.d.ts.map +1 -1
- package/dist/store/writer-lease.js +1 -11
- package/dist/store/writer-lease.js.map +1 -1
- package/dist/store/zod-schema-factory.d.ts +16 -0
- package/dist/store/zod-schema-factory.d.ts.map +1 -0
- package/dist/store/zod-schema-factory.js +23 -0
- package/dist/store/zod-schema-factory.js.map +1 -0
- package/dist/system/backup.d.ts +106 -0
- package/dist/system/backup.d.ts.map +1 -1
- package/dist/system/backup.js +295 -19
- package/dist/system/backup.js.map +1 -1
- package/dist/system/cleanup.js +1 -1
- package/dist/system/cleanup.js.map +1 -1
- package/dist/system/health.d.ts +13 -0
- package/dist/system/health.d.ts.map +1 -1
- package/dist/system/health.js +96 -1
- package/dist/system/health.js.map +1 -1
- package/dist/system/labels.js +1 -1
- package/dist/system/labels.js.map +1 -1
- package/dist/system/migrate.js +1 -1
- package/dist/system/migrate.js.map +1 -1
- package/dist/system/safestop.d.ts.map +1 -1
- package/dist/system/safestop.js +1 -1
- package/dist/system/safestop.js.map +1 -1
- package/dist/task-work/current.d.ts +34 -0
- package/dist/task-work/current.d.ts.map +1 -0
- package/dist/task-work/current.js +34 -0
- package/dist/task-work/current.js.map +1 -0
- package/dist/task-work/index.d.ts +2 -19
- package/dist/task-work/index.d.ts.map +1 -1
- package/dist/task-work/index.js +6 -20
- package/dist/task-work/index.js.map +1 -1
- package/dist/tasks/ac-identity.d.ts +28 -0
- package/dist/tasks/ac-identity.d.ts.map +1 -0
- package/dist/tasks/ac-identity.js +43 -0
- package/dist/tasks/ac-identity.js.map +1 -0
- package/dist/tasks/ac-immutability.d.ts +1 -1
- package/dist/tasks/ac-immutability.d.ts.map +1 -1
- package/dist/tasks/ac-immutability.js +1 -1
- package/dist/tasks/ac-immutability.js.map +1 -1
- package/dist/tasks/ac-table.d.ts +2 -14
- package/dist/tasks/ac-table.d.ts.map +1 -1
- package/dist/tasks/ac-table.js +6 -29
- package/dist/tasks/ac-table.js.map +1 -1
- package/dist/tasks/acceptance-input.js +1 -1
- package/dist/tasks/acceptance-input.js.map +1 -1
- package/dist/tasks/add.d.ts.map +1 -1
- package/dist/tasks/add.js +3 -1
- package/dist/tasks/add.js.map +1 -1
- package/dist/tasks/affected-packages.d.ts +100 -19
- package/dist/tasks/affected-packages.d.ts.map +1 -1
- package/dist/tasks/affected-packages.js +169 -32
- package/dist/tasks/affected-packages.js.map +1 -1
- package/dist/tasks/affected-template.d.ts +93 -0
- package/dist/tasks/affected-template.d.ts.map +1 -0
- package/dist/tasks/affected-template.js +198 -0
- package/dist/tasks/affected-template.js.map +1 -0
- package/dist/tasks/archive.d.ts.map +1 -1
- package/dist/tasks/archive.js +1 -1
- package/dist/tasks/archive.js.map +1 -1
- package/dist/tasks/axis-filters.d.ts.map +1 -1
- package/dist/tasks/axis-filters.js +2 -1
- package/dist/tasks/axis-filters.js.map +1 -1
- package/dist/tasks/child-disposition.js +1 -1
- package/dist/tasks/child-disposition.js.map +1 -1
- package/dist/tasks/collection.js +1 -1
- package/dist/tasks/collection.js.map +1 -1
- package/dist/tasks/command-line.d.ts +4 -1
- package/dist/tasks/command-line.d.ts.map +1 -1
- package/dist/tasks/command-line.js +7 -2
- package/dist/tasks/command-line.js.map +1 -1
- package/dist/tasks/complete.d.ts.map +1 -1
- package/dist/tasks/complete.js +2 -1
- package/dist/tasks/complete.js.map +1 -1
- package/dist/tasks/decompose.js +1 -1
- package/dist/tasks/decompose.js.map +1 -1
- package/dist/tasks/delete.js +1 -1
- package/dist/tasks/delete.js.map +1 -1
- package/dist/tasks/done-plan.d.ts +2 -1
- package/dist/tasks/done-plan.d.ts.map +1 -1
- package/dist/tasks/done-plan.js +21 -21
- package/dist/tasks/done-plan.js.map +1 -1
- package/dist/tasks/done-record.d.ts +1 -1
- package/dist/tasks/done-record.d.ts.map +1 -1
- package/dist/tasks/done-record.js +1 -1
- package/dist/tasks/done-record.js.map +1 -1
- package/dist/tasks/duplicate-detector.d.ts.map +1 -1
- package/dist/tasks/duplicate-detector.js +11 -5
- package/dist/tasks/duplicate-detector.js.map +1 -1
- package/dist/tasks/enforcement.d.ts +2 -1
- package/dist/tasks/enforcement.d.ts.map +1 -1
- package/dist/tasks/enforcement.js +1 -1
- package/dist/tasks/enforcement.js.map +1 -1
- package/dist/tasks/engine-wrap-ops.js +1 -1
- package/dist/tasks/engine-wrap-ops.js.map +1 -1
- package/dist/tasks/engine-wrap.d.ts.map +1 -1
- package/dist/tasks/engine-wrap.js +7 -3
- package/dist/tasks/engine-wrap.js.map +1 -1
- package/dist/tasks/epic-enforcement.js +1 -1
- package/dist/tasks/epic-enforcement.js.map +1 -1
- package/dist/tasks/evidence.d.ts.map +1 -1
- package/dist/tasks/evidence.js +216 -20
- package/dist/tasks/evidence.js.map +1 -1
- package/dist/tasks/find.js +1 -1
- package/dist/tasks/find.js.map +1 -1
- package/dist/tasks/gate-result-cache.js +1 -1
- package/dist/tasks/gate-result-cache.js.map +1 -1
- package/dist/tasks/gate-runner.d.ts.map +1 -1
- package/dist/tasks/gate-runner.js +1 -1
- package/dist/tasks/gate-runner.js.map +1 -1
- package/dist/tasks/heavy-tool-env.d.ts +454 -19
- package/dist/tasks/heavy-tool-env.d.ts.map +1 -1
- package/dist/tasks/heavy-tool-env.js +818 -42
- package/dist/tasks/heavy-tool-env.js.map +1 -1
- package/dist/tasks/index.d.ts +3 -3
- package/dist/tasks/index.d.ts.map +1 -1
- package/dist/tasks/index.js +3 -3
- package/dist/tasks/index.js.map +1 -1
- package/dist/tasks/labels.js +1 -1
- package/dist/tasks/labels.js.map +1 -1
- package/dist/tasks/nexus-impact-gate.js +1 -1
- package/dist/tasks/nexus-impact-gate.js.map +1 -1
- package/dist/tasks/pipeline-stage.js +1 -1
- package/dist/tasks/pipeline-stage.js.map +1 -1
- package/dist/tasks/population.js +1 -1
- package/dist/tasks/population.js.map +1 -1
- package/dist/tasks/ranking-audit.js +1 -1
- package/dist/tasks/ranking-audit.js.map +1 -1
- package/dist/tasks/reconcile-scope.js +1 -1
- package/dist/tasks/reconcile-scope.js.map +1 -1
- package/dist/tasks/relates.js +1 -1
- package/dist/tasks/relates.js.map +1 -1
- package/dist/tasks/req.d.ts.map +1 -1
- package/dist/tasks/req.js +2 -1
- package/dist/tasks/req.js.map +1 -1
- package/dist/tasks/severity-attestation.d.ts +1 -1
- package/dist/tasks/severity-attestation.d.ts.map +1 -1
- package/dist/tasks/severity-attestation.js +1 -1
- package/dist/tasks/severity-attestation.js.map +1 -1
- package/dist/tasks/show.d.ts.map +1 -1
- package/dist/tasks/show.js +47 -3
- package/dist/tasks/show.js.map +1 -1
- package/dist/tasks/task-import.js +1 -1
- package/dist/tasks/task-import.js.map +1 -1
- package/dist/tasks/task-reparent.d.ts.map +1 -1
- package/dist/tasks/task-reparent.js +2 -1
- package/dist/tasks/task-reparent.js.map +1 -1
- package/dist/tasks/test-run-binding.d.ts.map +1 -1
- package/dist/tasks/test-run-binding.js +9 -2
- package/dist/tasks/test-run-binding.js.map +1 -1
- package/dist/tasks/tool-cache-env.d.ts +20 -13
- package/dist/tasks/tool-cache-env.d.ts.map +1 -1
- package/dist/tasks/tool-cache-env.js +27 -48
- package/dist/tasks/tool-cache-env.js.map +1 -1
- package/dist/tasks/tool-cache.d.ts +30 -7
- package/dist/tasks/tool-cache.d.ts.map +1 -1
- package/dist/tasks/tool-cache.js +74 -20
- package/dist/tasks/tool-cache.js.map +1 -1
- package/dist/tasks/tool-resolver.d.ts +8 -0
- package/dist/tasks/tool-resolver.d.ts.map +1 -1
- package/dist/tasks/tool-resolver.js +15 -1
- package/dist/tasks/tool-resolver.js.map +1 -1
- package/dist/tasks/tool-runner-guard.d.ts +131 -0
- package/dist/tasks/tool-runner-guard.d.ts.map +1 -0
- package/dist/tasks/tool-runner-guard.js +141 -0
- package/dist/tasks/tool-runner-guard.js.map +1 -0
- package/dist/tasks/tool-semaphore.d.ts +106 -302
- package/dist/tasks/tool-semaphore.d.ts.map +1 -1
- package/dist/tasks/tool-semaphore.js +132 -558
- package/dist/tasks/tool-semaphore.js.map +1 -1
- package/dist/tasks/update.d.ts.map +1 -1
- package/dist/tasks/update.js +2 -1
- package/dist/tasks/update.js.map +1 -1
- package/dist/upgrade.d.ts.map +1 -1
- package/dist/upgrade.js +35 -31
- package/dist/upgrade.js.map +1 -1
- package/dist/validation/doctor/checks.d.ts +41 -0
- package/dist/validation/doctor/checks.d.ts.map +1 -1
- package/dist/validation/doctor/checks.js +251 -0
- package/dist/validation/doctor/checks.js.map +1 -1
- package/dist/validation/doctor/index.d.ts +1 -1
- package/dist/validation/doctor/index.d.ts.map +1 -1
- package/dist/validation/doctor/index.js +1 -1
- package/dist/validation/doctor/index.js.map +1 -1
- package/dist/validation/engine-ops.js +1 -1
- package/dist/validation/engine-ops.js.map +1 -1
- package/dist/validation/engine.d.ts +1 -1
- package/dist/validation/engine.d.ts.map +1 -1
- package/dist/validation/engine.js +2 -1
- package/dist/validation/engine.js.map +1 -1
- package/dist/validation/index.d.ts +1 -1
- package/dist/validation/index.d.ts.map +1 -1
- package/dist/validation/index.js +1 -1
- package/dist/validation/index.js.map +1 -1
- package/dist/validation/operation-gate-validators.js +1 -1
- package/dist/validation/operation-gate-validators.js.map +1 -1
- package/dist/validation/protocol-common.js +1 -1
- package/dist/validation/protocol-common.js.map +1 -1
- package/dist/validation/protocols/_shared.js +1 -1
- package/dist/validation/protocols/_shared.js.map +1 -1
- package/dist/validation/validate-ops.js +1 -1
- package/dist/validation/validate-ops.js.map +1 -1
- package/dist/validation/verification.js +1 -1
- package/dist/validation/verification.js.map +1 -1
- package/dist/workgraph/index.d.ts +1 -1
- package/dist/workgraph/index.d.ts.map +1 -1
- package/dist/workgraph/index.js +1 -1
- package/dist/workgraph/index.js.map +1 -1
- package/dist/workgraph/reparent-preflight.d.ts +1 -2
- package/dist/workgraph/reparent-preflight.d.ts.map +1 -1
- package/dist/workgraph/reparent-preflight.js +1 -1
- package/dist/workgraph/reparent-preflight.js.map +1 -1
- package/dist/workgraph/scaffold-validate.js +1 -1
- package/dist/workgraph/scaffold-validate.js.map +1 -1
- package/dist/worktree/force-unlock.d.ts +1 -1
- package/dist/worktree/force-unlock.d.ts.map +1 -1
- package/dist/worktree/force-unlock.js +1 -1
- package/dist/worktree/force-unlock.js.map +1 -1
- package/dist/worktree/isolation.d.ts +1 -1
- package/dist/worktree/isolation.d.ts.map +1 -1
- package/dist/worktree/isolation.js +1 -1
- package/dist/worktree/isolation.js.map +1 -1
- package/dist/worktree/list.d.ts +1 -1
- package/dist/worktree/list.d.ts.map +1 -1
- package/dist/worktree/list.js +1 -1
- package/dist/worktree/list.js.map +1 -1
- package/dist/worktree/prune.d.ts +1 -1
- package/dist/worktree/prune.d.ts.map +1 -1
- package/dist/worktree/prune.js +1 -1
- package/dist/worktree/prune.js.map +1 -1
- package/dist/worktree/worktree-adopt.d.ts +1 -2
- package/dist/worktree/worktree-adopt.d.ts.map +1 -1
- package/dist/worktree/worktree-adopt.js +1 -1
- package/dist/worktree/worktree-adopt.js.map +1 -1
- package/migrations/sync-journal/20261004120000_t12757-apply-intent/migration.sql +21 -0
- package/migrations/sync-journal/20261005120000_t12344-inbox/migration.sql +67 -0
- package/migrations/sync-journal/20261006120000_t13193-rebase-undo/migration.sql +51 -0
- package/migrations/sync-journal/20261006130000_t13193-rebase-state/migration.sql +17 -0
- package/migrations/sync-journal/20261006140000_t13193-held-rows/migration.sql +24 -0
- package/package.json +13 -13
- package/schemas/project-context.schema.json +19 -1
- package/templates/CLEO-INJECTION.md +11 -11
- package/templates/CLEO-REFERENCE.md +2 -2
- package/templates/workflows/release-prepare.yml.tmpl +10 -10
|
@@ -0,0 +1,587 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The admission ledger: ONE machine-wide budget and ONE FIFO queue for every
|
|
3
|
+
* heavy run (T13133, epic T13121).
|
|
4
|
+
*
|
|
5
|
+
* It replaces the layers that admitted heavy work before it: the tool
|
|
6
|
+
* semaphore's per-tool slot directories, the governor's `test-run`,
|
|
7
|
+
* `scoped-build` and `full-build` slots, `cleo run`'s per-class queues and the
|
|
8
|
+
* darwin one-slot rule. Each layer bounded only what it could see, and two of
|
|
9
|
+
* them taken in opposite orders deadlocked the machine queue (T13133). Here
|
|
10
|
+
* every heavy run — a `cleo verify` evidence run, a `cleo run` job, the vitest
|
|
11
|
+
* project probe — asks one ledger for a share of one budget.
|
|
12
|
+
*
|
|
13
|
+
* ## Budget
|
|
14
|
+
*
|
|
15
|
+
* Bytes, not runs: `capacity = totalRAM − max(4 GiB, 25%)`. A run asks for its
|
|
16
|
+
* footprint ({@link footprintForTool}, {@link footprintForClass}); a run larger
|
|
17
|
+
* than the capacity is clamped to it and runs alone, so nothing waits forever
|
|
18
|
+
* on its size. Pressure scales the budget: the memory gate (`pressure-gate.ts`,
|
|
19
|
+
* T13127) refusing means nothing starts; a `hold` verdict halves the budget and
|
|
20
|
+
* a CPU-saturated `backoff` admits one run at a time (each keeps one run
|
|
21
|
+
* going when nothing else is running).
|
|
22
|
+
*
|
|
23
|
+
* ## Exclusive runs
|
|
24
|
+
*
|
|
25
|
+
* A `full-build` (`cleo run --class full-build`: a workspace-wide build,
|
|
26
|
+
* turbo/nx across every package) is EXCLUSIVE: at most one exclusive run is
|
|
27
|
+
* admitted machine-wide at a time, whatever its footprint (T13237). Bytes
|
|
28
|
+
* alone stopped guaranteeing that once T13132 charged a heavy run half the
|
|
29
|
+
* budget: two whole-workspace builds fit and ran at once, the saturation
|
|
30
|
+
* shape behind the P0 crash. Other runs still share the budget beside it.
|
|
31
|
+
*
|
|
32
|
+
* ## Queue
|
|
33
|
+
*
|
|
34
|
+
* FIFO with backfill: the oldest waiting run starts when it fits; a later run
|
|
35
|
+
* may start ahead of it while it is young, if it fits now. Once the oldest
|
|
36
|
+
* waiting run has waited {@link LEDGER_RESERVATION_MS} it holds a reservation
|
|
37
|
+
* and nothing passes it, so neither a big run nor a stream of small ones can
|
|
38
|
+
* starve the other. Any process that enters the ledger (an arrival, a waiter's
|
|
39
|
+
* periodic pass, a release) runs the scheduling pass for everyone; waiters see
|
|
40
|
+
* their admission by reading the file.
|
|
41
|
+
*
|
|
42
|
+
* ## Re-entrancy
|
|
43
|
+
*
|
|
44
|
+
* A grant exports `CLEO_ADMISSION=<id>.<nonce>` to its children. A request
|
|
45
|
+
* made inside an admitted run's process tree rides that grant (no new budget,
|
|
46
|
+
* no queue), so a `cleo verify` under `cleo run`, or a `cleo run` under an
|
|
47
|
+
* evidence run, never waits for the budget its own ancestor holds. The token
|
|
48
|
+
* only says which grant to check: the caller must descend from the holder
|
|
49
|
+
* (ancestry, or membership of a tool process group it started), with the
|
|
50
|
+
* holder's start time matching, so the env var alone grants nothing. A wrapper
|
|
51
|
+
* that scrubs the environment is caught by the same ancestry scan.
|
|
52
|
+
*
|
|
53
|
+
* ## The file
|
|
54
|
+
*
|
|
55
|
+
* `<cleoHome>/admission/ledger.json`, rewritten by tmp + rename inside a
|
|
56
|
+
* `proper-lockfile` critical section that only reads, decides and writes:
|
|
57
|
+
* pressure samples and process probes happen before it is entered, and it is
|
|
58
|
+
* never held across a spawn or a wait. An entry is dropped once its holder is
|
|
59
|
+
* provably gone: pid gone (or recycled, by start time) and every tool group it
|
|
60
|
+
* started gone; a fresh heartbeat or an unreadable probe keeps it.
|
|
61
|
+
*
|
|
62
|
+
* @module resources/admission-ledger
|
|
63
|
+
* @task T13133
|
|
64
|
+
* @epic T13121
|
|
65
|
+
*/
|
|
66
|
+
import type { HeavyToolResourcePlan, MemoryPressureReading, ResourceClass } from '@cleocode/contracts';
|
|
67
|
+
import { admissionCapacityBytes, admissionReserveBytes } from '../tasks/heavy-tool-env.js';
|
|
68
|
+
import type { CanonicalTool } from '../tasks/tool-resolver.js';
|
|
69
|
+
import type { ResourceSample } from './backend.js';
|
|
70
|
+
import { type MemoryGateReporter } from './pressure-gate.js';
|
|
71
|
+
import { type PidProbe } from './slot-holder.js';
|
|
72
|
+
/** The env var a grant exports to its children: `<id>.<nonce>`. */
|
|
73
|
+
export declare const ADMISSION_ENV = "CLEO_ADMISSION";
|
|
74
|
+
/** The oldest waiting run holds a reservation (no backfill passes it) after this long. */
|
|
75
|
+
export declare const LEDGER_RESERVATION_MS = 120000;
|
|
76
|
+
/** An admitted run refreshes its heartbeat this often. */
|
|
77
|
+
export declare const LEDGER_HEARTBEAT_MS = 15000;
|
|
78
|
+
/** A heartbeat older than this no longer proves its holder alive on its own. */
|
|
79
|
+
export declare const LEDGER_HEARTBEAT_STALE_MS = 60000;
|
|
80
|
+
/** A waiter names the holders (and any suspected cycle) after this long, then this often. */
|
|
81
|
+
export declare const LEDGER_HOLDER_REPORT_MS = 60000;
|
|
82
|
+
/** A crashed process's critical-section lock is taken over after this long. */
|
|
83
|
+
export declare const LEDGER_CRITICAL_STALE_MS = 10000;
|
|
84
|
+
/**
|
|
85
|
+
* The ledger file format this CLEO reads and writes. A file with a newer
|
|
86
|
+
* version is never rewritten by this one: admission runs ungoverned instead.
|
|
87
|
+
*/
|
|
88
|
+
export declare const LEDGER_VERSION = 1;
|
|
89
|
+
/**
|
|
90
|
+
* An entry whose holder cannot be positively identified (pid gone, recycled,
|
|
91
|
+
* unprobeable, or no recorded start time) is dropped once its heartbeat is
|
|
92
|
+
* this old. A live holder heartbeats every {@link LEDGER_HEARTBEAT_MS}. The
|
|
93
|
+
* old slot locks had the same 10-minute takeover as a backstop.
|
|
94
|
+
*/
|
|
95
|
+
export declare const LEDGER_ORPHAN_MS = 600000;
|
|
96
|
+
/**
|
|
97
|
+
* `CLEO_ADMISSION_PRESSURE=off`: admission ignores memory and CPU pressure
|
|
98
|
+
* and admits on the byte budget alone (a CI runner whose PSI is noisy, and
|
|
99
|
+
* the test suite, which must never depend on the host's load). An explicit
|
|
100
|
+
* sampler passed to {@link admit} is still used.
|
|
101
|
+
*/
|
|
102
|
+
export declare const ADMISSION_PRESSURE_ENV = "CLEO_ADMISSION_PRESSURE";
|
|
103
|
+
/** One GiB in bytes. */
|
|
104
|
+
export declare const GIB: number;
|
|
105
|
+
/** What a light run (audit, security scan) or a config probe is charged. */
|
|
106
|
+
export declare const LIGHT_FOOTPRINT_BYTES: number;
|
|
107
|
+
/**
|
|
108
|
+
* Resident memory one Node process holds beyond its V8 heap ceiling, in MiB:
|
|
109
|
+
* code, native allocations, buffers (the same allowance the heavy worker count
|
|
110
|
+
* makes: {@link GIB_PER_WORKER} minus the default heap).
|
|
111
|
+
*/
|
|
112
|
+
export declare const PROCESS_OVERHEAD_MB: number;
|
|
113
|
+
/** The machine budget and the reserve it leaves (owned by the heavy-tool plan, which sizes runs to it). */
|
|
114
|
+
export { admissionCapacityBytes, admissionReserveBytes };
|
|
115
|
+
/**
|
|
116
|
+
* What one heavy test or build run is charged: the worker count the heavy-tool
|
|
117
|
+
* overlay gives it (`heavyToolWorkers`) × {@link GIB_PER_WORKER}.
|
|
118
|
+
*
|
|
119
|
+
* @param totalBytes - physical RAM. @defaultValue os.totalmem()
|
|
120
|
+
* @param env - the environment (the per-run share). @defaultValue process.env
|
|
121
|
+
*/
|
|
122
|
+
export declare function heavyRunFootprintBytes(totalBytes?: number, env?: NodeJS.ProcessEnv): number;
|
|
123
|
+
/**
|
|
124
|
+
* What an evidence run of a canonical tool is charged: a heavy test or build
|
|
125
|
+
* run its workers × {@link GIB_PER_WORKER}; a single-process memory-bound run
|
|
126
|
+
* (`typecheck`, `lint`) its heap ceiling plus {@link PROCESS_OVERHEAD_MB} (the
|
|
127
|
+
* heap the run is planned with, T13122, or the machine's default for a single
|
|
128
|
+
* process); anything else {@link LIGHT_FOOTPRINT_BYTES}.
|
|
129
|
+
*
|
|
130
|
+
* @param canonical - the canonical tool.
|
|
131
|
+
* @param totalBytes - physical RAM. @defaultValue os.totalmem()
|
|
132
|
+
* @param heapMb - the heap ceiling the run is spawned with, in MiB, when known.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```ts
|
|
136
|
+
* footprintForTool('test', 48 * GIB); // 36 GiB (6 workers × 6 GiB)
|
|
137
|
+
* footprintForTool('typecheck', 48 * GIB); // 6 GiB (4096 MiB heap + 2048 MiB)
|
|
138
|
+
* footprintForTool('typecheck', 48 * GIB, 8192); // 10 GiB
|
|
139
|
+
* ```
|
|
140
|
+
*/
|
|
141
|
+
export declare function footprintForTool(canonical: CanonicalTool, totalBytes?: number, heapMb?: number): number;
|
|
142
|
+
/**
|
|
143
|
+
* What a planned memory-bound run is charged: every process it may start ×
|
|
144
|
+
* (its heap ceiling + {@link PROCESS_OVERHEAD_MB}), i.e. workspace packages in
|
|
145
|
+
* flight × workers × per-process cost. The plan's limits are what the child is
|
|
146
|
+
* spawned with, so the charge is enforced, not estimated (T13132).
|
|
147
|
+
*
|
|
148
|
+
* @param plan - the `resources` of `planHeavyToolEnv`.
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
* ```ts
|
|
152
|
+
* // 1 package × 3 workers × (4096 + 2048) MiB
|
|
153
|
+
* planFootprintBytes({ workspaceConcurrency: 1, workers: 3, heapMb: 4096 }); // 18 GiB
|
|
154
|
+
* ```
|
|
155
|
+
*/
|
|
156
|
+
export declare function planFootprintBytes(plan: Pick<HeavyToolResourcePlan, 'workspaceConcurrency' | 'workers' | 'heapMb'>): number;
|
|
157
|
+
/** Governor classes whose admission is the ledger's. */
|
|
158
|
+
export declare const LEDGER_CLASSES: ReadonlySet<ResourceClass>;
|
|
159
|
+
/**
|
|
160
|
+
* Whether the ledger admits a governor class.
|
|
161
|
+
*
|
|
162
|
+
* @param cls - the governor class.
|
|
163
|
+
*/
|
|
164
|
+
export declare function isLedgerClass(cls: ResourceClass): boolean;
|
|
165
|
+
/**
|
|
166
|
+
* What a `cleo run` job of a ledger class is charged.
|
|
167
|
+
*
|
|
168
|
+
* @param cls - the governor class.
|
|
169
|
+
* @param totalBytes - physical RAM. @defaultValue os.totalmem()
|
|
170
|
+
*/
|
|
171
|
+
export declare function footprintForClass(cls: ResourceClass, totalBytes?: number): number;
|
|
172
|
+
/** One run in the ledger. */
|
|
173
|
+
export interface LedgerEntry {
|
|
174
|
+
/** Unique id: `<pid>-<ms>-<rand>`. */
|
|
175
|
+
readonly id: string;
|
|
176
|
+
/** Secret half of the {@link ADMISSION_ENV} token. */
|
|
177
|
+
readonly nonce: string;
|
|
178
|
+
/** The holder (or waiter) process. */
|
|
179
|
+
readonly pid: number;
|
|
180
|
+
/** Host the pid belongs to. */
|
|
181
|
+
readonly host: string;
|
|
182
|
+
/** The holder's process start time, or `null` when `ps` could not say. */
|
|
183
|
+
readonly startedAt: string | null;
|
|
184
|
+
/** What is running: `tool:test`, `run:test-run`, `probe:vitest-projects`. */
|
|
185
|
+
readonly label: string;
|
|
186
|
+
/** The command line, redacted, for status and reports. */
|
|
187
|
+
readonly command: string;
|
|
188
|
+
/** Working directory, when known. */
|
|
189
|
+
readonly cwd: string | null;
|
|
190
|
+
/** Bytes requested. */
|
|
191
|
+
readonly footprintBytes: number;
|
|
192
|
+
/** `waiting` in the queue, or `admitted` and holding its share. */
|
|
193
|
+
readonly state: 'waiting' | 'admitted';
|
|
194
|
+
/** When it joined the queue (FIFO order). */
|
|
195
|
+
readonly enqueuedAtMs: number;
|
|
196
|
+
/** When it was admitted. */
|
|
197
|
+
readonly admittedAtMs: number | null;
|
|
198
|
+
/** Last proof of life. */
|
|
199
|
+
readonly heartbeatAtMs: number;
|
|
200
|
+
/** Process groups of the tools the holder started while admitted. */
|
|
201
|
+
readonly toolGroups: readonly number[];
|
|
202
|
+
/** How much of the project the run covers, when known (T13132). */
|
|
203
|
+
readonly scope?: AdmissionScope;
|
|
204
|
+
/** The CLEO task the run is evidence for, when known (T13132). */
|
|
205
|
+
readonly task?: string;
|
|
206
|
+
/**
|
|
207
|
+
* Holds the machine-wide exclusive slot: no other exclusive entry is
|
|
208
|
+
* admitted while it is (T13237). Set for the `full-build` class.
|
|
209
|
+
*/
|
|
210
|
+
readonly exclusive?: boolean;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* How much of a project a run covers, shown in status so an operator can see
|
|
214
|
+
* what holds the budget (T13132): `full` is a whole-suite run, `affected` the
|
|
215
|
+
* changed packages and their dependents, `focused` a failed-first rerun of
|
|
216
|
+
* named files, `narrowed` a command that names its test files.
|
|
217
|
+
*/
|
|
218
|
+
export type AdmissionScope = 'full' | 'affected' | 'focused' | 'narrowed';
|
|
219
|
+
/**
|
|
220
|
+
* The ledger directory under the CLEO home.
|
|
221
|
+
*
|
|
222
|
+
* @param cleoHome - the CLEO home. @defaultValue {@link getCleoHome}
|
|
223
|
+
*/
|
|
224
|
+
export declare function admissionDir(cleoHome?: string): string;
|
|
225
|
+
/** A ledger entry in a format this CLEO does not know: kept verbatim, charged conservatively. */
|
|
226
|
+
export type ForeignEntry = Readonly<Record<string, unknown>>;
|
|
227
|
+
/**
|
|
228
|
+
* Read the ledger's entries without the lock (writes are atomic renames, so a
|
|
229
|
+
* reader sees a whole file). A missing or corrupt file has no entries;
|
|
230
|
+
* entries of a format this CLEO does not know are left out (they are kept in
|
|
231
|
+
* the file and still charged).
|
|
232
|
+
*
|
|
233
|
+
* @param dir - the ledger directory. @defaultValue {@link admissionDir}
|
|
234
|
+
*/
|
|
235
|
+
export declare function readLedger(dir?: string): LedgerEntry[];
|
|
236
|
+
/**
|
|
237
|
+
* Entries of a format this CLEO does not know (written by another CLEO
|
|
238
|
+
* version sharing the CLEO home), read without the lock.
|
|
239
|
+
*
|
|
240
|
+
* @param dir - the ledger directory. @defaultValue {@link admissionDir}
|
|
241
|
+
*/
|
|
242
|
+
export declare function readForeignEntries(dir?: string): ForeignEntry[];
|
|
243
|
+
/**
|
|
244
|
+
* The ledger file was written by a newer CLEO: this one never rewrites it.
|
|
245
|
+
* Admission treats it like unwritable state and runs ungoverned.
|
|
246
|
+
*/
|
|
247
|
+
export declare class LedgerVersionError extends Error {
|
|
248
|
+
/** Error code, matched by {@link admissionIoError}. */
|
|
249
|
+
readonly code = "E_LEDGER_VERSION";
|
|
250
|
+
/** The ledger file. */
|
|
251
|
+
readonly path: string;
|
|
252
|
+
/**
|
|
253
|
+
* @param version - the version found in the file.
|
|
254
|
+
* @param path - the ledger file.
|
|
255
|
+
*/
|
|
256
|
+
constructor(version: number, path: string);
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Whether an entry's holder is still there.
|
|
260
|
+
*
|
|
261
|
+
* - A pid that is provably gone (or recycled: alive with another start time,
|
|
262
|
+
* once the heartbeat is stale) is dead as soon as every tool group it
|
|
263
|
+
* started is gone too; a detached tool outlives a SIGKILLed cleo.
|
|
264
|
+
* - A fresh heartbeat, or a live pid whose start time matches the recorded
|
|
265
|
+
* one, is alive.
|
|
266
|
+
* - A holder that cannot be identified (the probe fails, or no start time was
|
|
267
|
+
* recorded or can be read) is alive until its heartbeat is
|
|
268
|
+
* {@link LEDGER_ORPHAN_MS} old, and so is a gone holder whose tool group id
|
|
269
|
+
* still runs (a group id carries no start time, so it may be recycled).
|
|
270
|
+
* Past that bound both are dead: nothing holds the budget forever.
|
|
271
|
+
* - An entry of another host is judged by its heartbeat alone.
|
|
272
|
+
*
|
|
273
|
+
* @param entry - the ledger entry.
|
|
274
|
+
* @param nowMs - the clock.
|
|
275
|
+
* @param probe - pid probe (tests inject one).
|
|
276
|
+
*/
|
|
277
|
+
export declare function entryLiveness(entry: LedgerEntry, nowMs: number, probe?: PidProbe): 'alive' | 'dead';
|
|
278
|
+
/**
|
|
279
|
+
* How much of the budget pressure leaves: `full`; `half` (memory or CPU at
|
|
280
|
+
* hold); `one` run at a time (CPU saturated); `none` (the memory gate refuses).
|
|
281
|
+
*/
|
|
282
|
+
export type BudgetShare = 'full' | 'half' | 'one' | 'none';
|
|
283
|
+
/**
|
|
284
|
+
* A run larger than this is heavy: more than one worker's footprint
|
|
285
|
+
* ({@link GIB_PER_WORKER}), i.e. a multi-process test or build run. CPU
|
|
286
|
+
* saturation narrows only heavy runs (T13132): a single-process typecheck or
|
|
287
|
+
* lint, a single-file test run and the config probe are one process each, and
|
|
288
|
+
* serialising them behind a whole suite only starved them.
|
|
289
|
+
*/
|
|
290
|
+
export declare const HEAVY_FOOTPRINT_BYTES: number;
|
|
291
|
+
/**
|
|
292
|
+
* The budget share for light runs ({@link HEAVY_FOOTPRINT_BYTES} or less): the
|
|
293
|
+
* memory signal alone — `none` while the memory gate refuses, `half` at memory
|
|
294
|
+
* hold, else `full`. CPU pressure never narrows it (T13132, T13170).
|
|
295
|
+
*
|
|
296
|
+
* @param sample - a backend sample.
|
|
297
|
+
* @param gateRefuses - the memory gate's verdict for the sample.
|
|
298
|
+
*/
|
|
299
|
+
export declare function lightBudgetShare(sample: ResourceSample, gateRefuses: boolean): BudgetShare;
|
|
300
|
+
/**
|
|
301
|
+
* The budget share for HEAVY runs (above {@link HEAVY_FOOTPRINT_BYTES}), from
|
|
302
|
+
* the memory gate's verdict and the pressure score (memory, or CPU rescaled;
|
|
303
|
+
* see `pressureScore`). Light runs use {@link lightBudgetShare}.
|
|
304
|
+
*
|
|
305
|
+
* @param sample - a backend sample.
|
|
306
|
+
* @param gateRefuses - the memory gate's verdict for the sample.
|
|
307
|
+
*/
|
|
308
|
+
export declare function budgetShare(sample: ResourceSample, gateRefuses: boolean): BudgetShare;
|
|
309
|
+
/** Inputs to one scheduling pass. */
|
|
310
|
+
export interface PassContext {
|
|
311
|
+
/** The machine-wide budget in bytes. */
|
|
312
|
+
readonly capacityBytes: number;
|
|
313
|
+
/** What pressure leaves of it for heavy runs ({@link budgetShare}). */
|
|
314
|
+
readonly share: BudgetShare;
|
|
315
|
+
/**
|
|
316
|
+
* What memory pressure leaves of it for light runs ({@link lightBudgetShare}).
|
|
317
|
+
* @defaultValue `share`
|
|
318
|
+
*/
|
|
319
|
+
readonly lightShare?: BudgetShare;
|
|
320
|
+
/** The clock. */
|
|
321
|
+
readonly nowMs: number;
|
|
322
|
+
/** @defaultValue {@link LEDGER_RESERVATION_MS} */
|
|
323
|
+
readonly reservationMs?: number;
|
|
324
|
+
/** Entries of an unknown format, counted as admitted with their charge. */
|
|
325
|
+
readonly foreign?: {
|
|
326
|
+
readonly bytes: number;
|
|
327
|
+
readonly count: number;
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* One scheduling pass: admit every waiting entry the budget and the queue
|
|
332
|
+
* order allow. Pure.
|
|
333
|
+
*
|
|
334
|
+
* - FIFO by `enqueuedAtMs`. A later entry may be admitted ahead of an older
|
|
335
|
+
* one that does not fit (backfill) until that older one has waited
|
|
336
|
+
* `reservationMs`; from then on nothing passes it.
|
|
337
|
+
* - A footprint above the capacity is charged the capacity (it runs alone).
|
|
338
|
+
* - Heavy runs (above {@link HEAVY_FOOTPRINT_BYTES}) take `share`: `half`
|
|
339
|
+
* halves the budget, `one` admits a single heavy run at a time (CPU
|
|
340
|
+
* saturated). Light runs take `lightShare` (memory alone), so CPU saturation
|
|
341
|
+
* never serialises them behind a heavy run (T13132). Either still admits the
|
|
342
|
+
* oldest waiting entry when nothing is admitted; `none` admits nothing.
|
|
343
|
+
*
|
|
344
|
+
* @param entries - the ledger.
|
|
345
|
+
* @param ctx - capacity, pressure share and clock.
|
|
346
|
+
* @returns the ledger with admissions applied (same order).
|
|
347
|
+
*
|
|
348
|
+
* @example
|
|
349
|
+
* ```ts
|
|
350
|
+
* schedulePass(entries, { capacityBytes: 36 * GIB, share: 'full', nowMs: Date.now() });
|
|
351
|
+
* ```
|
|
352
|
+
*/
|
|
353
|
+
export declare function schedulePass(entries: readonly LedgerEntry[], ctx: PassContext): LedgerEntry[];
|
|
354
|
+
/**
|
|
355
|
+
* Split a {@link ADMISSION_ENV} value into its id and nonce, or `null`.
|
|
356
|
+
*
|
|
357
|
+
* @param value - the env value.
|
|
358
|
+
*/
|
|
359
|
+
export declare function parseAdmissionToken(value: string | undefined): {
|
|
360
|
+
id: string;
|
|
361
|
+
nonce: string;
|
|
362
|
+
} | null;
|
|
363
|
+
/** The process facts the re-entrancy check needs (tests inject them). */
|
|
364
|
+
export interface ProcessFacts {
|
|
365
|
+
/** Ancestors of a pid, nearest first, or `null` when `ps` fails. */
|
|
366
|
+
readonly ancestorsOf: (pid: number) => readonly number[] | null;
|
|
367
|
+
/** Process group of a pid, or `null`. */
|
|
368
|
+
readonly groupOf: (pid: number) => number | null;
|
|
369
|
+
/** Start time of a pid (the ledger's format), or `null`. */
|
|
370
|
+
readonly startedAt: (pid: number) => string | null;
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* The admitted entry whose process tree `pid` belongs to, or `null`.
|
|
374
|
+
*
|
|
375
|
+
* Proof is ancestry: the holder is an ancestor of `pid`, with its recorded
|
|
376
|
+
* start time matching. A holder recorded without a start time (`ps` failed)
|
|
377
|
+
* proves nothing by ancestry alone, since its pid may have been recycled into
|
|
378
|
+
* an ancestor: it also needs the token to name it (T13188). The token in `env`
|
|
379
|
+
* only narrows which entry is checked
|
|
380
|
+
* first; a missing or foreign token falls back to checking every admitted
|
|
381
|
+
* entry by ancestry, so a wrapper that scrubs the environment cannot deadlock
|
|
382
|
+
* a nested run — except under a holder recorded without a start time, which
|
|
383
|
+
* needs the token: such a nested run waits for its own parent until it times
|
|
384
|
+
* out or the entry is reaped as unidentifiable ({@link LEDGER_ORPHAN_MS}). A
|
|
385
|
+
* rare case (`ps` failed at admission), and safer than letting a recycled pid
|
|
386
|
+
* ride a dead grant.
|
|
387
|
+
*
|
|
388
|
+
* Group membership (`pid` runs in a tool process group the holder started,
|
|
389
|
+
* which covers a tool that outlived a killed holder) is accepted only for the
|
|
390
|
+
* entry the token names on this host: a process group id carries no start
|
|
391
|
+
* time, so a recycled group id alone proves nothing.
|
|
392
|
+
*
|
|
393
|
+
* @param entries - the ledger.
|
|
394
|
+
* @param pid - the requesting process.
|
|
395
|
+
* @param env - its environment.
|
|
396
|
+
* @param facts - process probes (tests inject them).
|
|
397
|
+
*/
|
|
398
|
+
export declare function enclosingGrant(entries: readonly LedgerEntry[], pid: number, env: NodeJS.ProcessEnv, facts?: ProcessFacts): LedgerEntry | null;
|
|
399
|
+
/** The {@link ADMISSION_ENV} value of an entry. */
|
|
400
|
+
export declare function admissionToken(entry: Pick<LedgerEntry, 'id' | 'nonce'>): string;
|
|
401
|
+
/**
|
|
402
|
+
* ` [scope=full, task T1043]` for an entry that says what it covers, else ''.
|
|
403
|
+
*
|
|
404
|
+
* @param e - a ledger entry.
|
|
405
|
+
*/
|
|
406
|
+
export declare function describeScope(e: Pick<LedgerEntry, 'scope' | 'task'>): string;
|
|
407
|
+
/**
|
|
408
|
+
* One line per admitted run: label, scope and task, pid, command, directory and age.
|
|
409
|
+
*
|
|
410
|
+
* @param entries - the ledger.
|
|
411
|
+
* @param nowMs - the clock.
|
|
412
|
+
*/
|
|
413
|
+
export declare function describeHolders(entries: readonly LedgerEntry[], nowMs: number): string[];
|
|
414
|
+
/**
|
|
415
|
+
* A suspected wait cycle through a lock outside CLEO: a holder's process tree
|
|
416
|
+
* and this waiter's ancestry run the same (non-generic) program, such as a
|
|
417
|
+
* wrapper script that takes its own lock. `null` when nothing points to one.
|
|
418
|
+
*
|
|
419
|
+
* @param pid - the waiting process.
|
|
420
|
+
* @param holders - admitted entries.
|
|
421
|
+
* @param table - the process table (`pid → {ppid, command}`).
|
|
422
|
+
*/
|
|
423
|
+
export declare function suspectCycle(pid: number, holders: readonly LedgerEntry[], table: ReadonlyMap<number, {
|
|
424
|
+
ppid: number;
|
|
425
|
+
command: string;
|
|
426
|
+
}>): string | null;
|
|
427
|
+
/** What a request asks for. */
|
|
428
|
+
export interface AdmissionRequest {
|
|
429
|
+
/** What is running: `tool:test`, `run:test-run`, `probe:vitest-projects`. */
|
|
430
|
+
readonly label: string;
|
|
431
|
+
/** Bytes it needs (see {@link footprintForTool}, {@link footprintForClass}). */
|
|
432
|
+
readonly footprintBytes: number;
|
|
433
|
+
/** The command line, redacted. @defaultValue this process's argv */
|
|
434
|
+
readonly command?: string;
|
|
435
|
+
/** Working directory. @defaultValue process.cwd() */
|
|
436
|
+
readonly cwd?: string | null;
|
|
437
|
+
/** How much of the project it covers, for status (T13132). */
|
|
438
|
+
readonly scope?: AdmissionScope;
|
|
439
|
+
/** The CLEO task it is evidence for, for status (T13132). */
|
|
440
|
+
readonly task?: string;
|
|
441
|
+
/** Take the machine-wide exclusive slot (T13237: a `full-build`). */
|
|
442
|
+
readonly exclusive?: boolean;
|
|
443
|
+
}
|
|
444
|
+
/** How to wait, and where to report. */
|
|
445
|
+
export interface AdmitOptions {
|
|
446
|
+
/** Wait in the queue (`true`) or return a deferral at once. */
|
|
447
|
+
readonly wait: boolean;
|
|
448
|
+
/** Give up after this long. @defaultValue 60 min */
|
|
449
|
+
readonly timeoutMs?: number;
|
|
450
|
+
/** Re-read cadence while waiting. @defaultValue 250 ms */
|
|
451
|
+
readonly pollMs?: number;
|
|
452
|
+
/**
|
|
453
|
+
* One pressure sample; a throw counts as no signal. A sampler given here is
|
|
454
|
+
* always called: it bypasses the verdict another process wrote to the
|
|
455
|
+
* ledger in the last 2 s, which the default reuses.
|
|
456
|
+
* @defaultValue a ResourceMonitor sample, or none under `CLEO_ADMISSION_PRESSURE=off`
|
|
457
|
+
*/
|
|
458
|
+
readonly sample?: () => Promise<ResourceSample>;
|
|
459
|
+
/** The machine budget in bytes. @defaultValue {@link admissionCapacityBytes} */
|
|
460
|
+
readonly capacityBytes?: number;
|
|
461
|
+
/** The requester's environment (for {@link ADMISSION_ENV}). @defaultValue process.env */
|
|
462
|
+
readonly env?: NodeJS.ProcessEnv;
|
|
463
|
+
/** Told while the memory gate holds the run back, and when it admits. */
|
|
464
|
+
readonly memoryPressure?: MemoryGateReporter;
|
|
465
|
+
/** Where the holder report goes while waiting. */
|
|
466
|
+
readonly notice?: (line: string) => void;
|
|
467
|
+
/** The ledger directory. @defaultValue {@link admissionDir} */
|
|
468
|
+
readonly dir?: string;
|
|
469
|
+
/** Process probes for re-entrancy (tests). */
|
|
470
|
+
readonly facts?: ProcessFacts;
|
|
471
|
+
/** Pid probe for liveness (tests). */
|
|
472
|
+
readonly probe?: PidProbe;
|
|
473
|
+
/** The requesting pid (tests). @defaultValue process.pid */
|
|
474
|
+
readonly pid?: number;
|
|
475
|
+
/** Clock (tests). @defaultValue Date.now */
|
|
476
|
+
readonly now?: () => number;
|
|
477
|
+
/** Wait (tests). @defaultValue setTimeout */
|
|
478
|
+
readonly sleep?: (ms: number) => Promise<void>;
|
|
479
|
+
}
|
|
480
|
+
/** An admission: the share is held until `release`. */
|
|
481
|
+
export interface AdmissionGrant {
|
|
482
|
+
/** The ledger entry, or `null` for a pass-through (nested, off, ungoverned). */
|
|
483
|
+
readonly id: string | null;
|
|
484
|
+
/** The {@link ADMISSION_ENV} value to export to children; `''` when there is none. */
|
|
485
|
+
readonly token: string;
|
|
486
|
+
/** `true` when it rides an enclosing grant. */
|
|
487
|
+
readonly nested: boolean;
|
|
488
|
+
/** Set when the ledger could not be written here: the run proceeds ungoverned. */
|
|
489
|
+
readonly ungoverned: {
|
|
490
|
+
readonly code: string;
|
|
491
|
+
readonly path: string | null;
|
|
492
|
+
} | null;
|
|
493
|
+
/** How long it waited. */
|
|
494
|
+
readonly waitedMs: number;
|
|
495
|
+
/** Bytes charged. */
|
|
496
|
+
readonly footprintBytes: number;
|
|
497
|
+
/** Give the share back. Idempotent. */
|
|
498
|
+
release(): Promise<void>;
|
|
499
|
+
}
|
|
500
|
+
/** A refusal: nothing was started. */
|
|
501
|
+
export interface AdmissionRefusal {
|
|
502
|
+
/** Why, with the numbers. */
|
|
503
|
+
readonly reason: string;
|
|
504
|
+
/** Back-off hint. */
|
|
505
|
+
readonly retryAfterMs: number;
|
|
506
|
+
/** The memory gate's readings when it was the reason. */
|
|
507
|
+
readonly memoryPressure: MemoryPressureReading | null;
|
|
508
|
+
/** Waiting runs ahead of this one. */
|
|
509
|
+
readonly ahead: number;
|
|
510
|
+
/** One line per admitted run. */
|
|
511
|
+
readonly holders: readonly string[];
|
|
512
|
+
}
|
|
513
|
+
/** {@link admit}'s result. */
|
|
514
|
+
export type AdmissionOutcome = {
|
|
515
|
+
readonly admitted: true;
|
|
516
|
+
readonly grant: AdmissionGrant;
|
|
517
|
+
} | {
|
|
518
|
+
readonly admitted: false;
|
|
519
|
+
readonly refusal: AdmissionRefusal;
|
|
520
|
+
};
|
|
521
|
+
/** Why admission state cannot be written: the errno code and the path, when known. */
|
|
522
|
+
export interface AdmissionIoError {
|
|
523
|
+
readonly code: string;
|
|
524
|
+
readonly path: string | null;
|
|
525
|
+
}
|
|
526
|
+
/**
|
|
527
|
+
* The code and path of an error that means "admission state cannot be kept
|
|
528
|
+
* here" (a sandbox that blocks writes to the CLEO home, a read-only or full
|
|
529
|
+
* disk, a broken CLEO home), or `null` for any other error, which is a bug and
|
|
530
|
+
* must not be hidden.
|
|
531
|
+
*
|
|
532
|
+
* @param err - a caught error.
|
|
533
|
+
*/
|
|
534
|
+
export declare function admissionIoError(err: unknown): AdmissionIoError | null;
|
|
535
|
+
/**
|
|
536
|
+
* Why a run is ungoverned, in words: `admission state is not writable (EACCES
|
|
537
|
+
* /path)`, or, for a ledger a newer CLEO wrote, that this CLEO will not
|
|
538
|
+
* rewrite it. Callers append what they do about it.
|
|
539
|
+
*
|
|
540
|
+
* @param io - from {@link admissionIoError} or a grant's `ungoverned`.
|
|
541
|
+
*/
|
|
542
|
+
export declare function describeAdmissionIoError(io: AdmissionIoError): string;
|
|
543
|
+
/**
|
|
544
|
+
* Ask the ledger for a share of the machine budget.
|
|
545
|
+
*
|
|
546
|
+
* `CLEO_RESOURCES_MODE=off` admits everything. Re-entrant: inside an admitted
|
|
547
|
+
* run's process tree it returns a pass-through grant at once. Otherwise it joins the FIFO queue; with `wait: false` it
|
|
548
|
+
* leaves again unless admitted on the spot, and with `wait: true` it waits
|
|
549
|
+
* (reporting memory-pressure waits and, after a minute, the holders and any
|
|
550
|
+
* suspected cycle) until admitted or `timeoutMs`. Never throws for admission
|
|
551
|
+
* control. An unwritable ledger, or one written by a newer CLEO, is a
|
|
552
|
+
* pass-through grant with `ungoverned` set (callers say so with
|
|
553
|
+
* {@link describeAdmissionIoError}); any other error propagates.
|
|
554
|
+
*
|
|
555
|
+
* @param req - what is asked for.
|
|
556
|
+
* @param opts - waiting and reporting.
|
|
557
|
+
*
|
|
558
|
+
* @example
|
|
559
|
+
* ```ts
|
|
560
|
+
* const out = await admit({ label: 'tool:test', footprintBytes: footprintForTool('test') }, { wait: true });
|
|
561
|
+
* if (out.admitted) {
|
|
562
|
+
* try { await run({ env: { [ADMISSION_ENV]: out.grant.token } }); } finally { await out.grant.release(); }
|
|
563
|
+
* }
|
|
564
|
+
* ```
|
|
565
|
+
*/
|
|
566
|
+
export declare function admit(req: AdmissionRequest, opts: AdmitOptions): Promise<AdmissionOutcome>;
|
|
567
|
+
/** Remove the ledger file (tests). @internal */
|
|
568
|
+
export declare function _resetAdmissionLedgerForTest(dir?: string): void;
|
|
569
|
+
/**
|
|
570
|
+
* Drop every entry whose holder is provably gone, and schedule. For
|
|
571
|
+
* `cleo doctor tool-locks --reap`; admission does this on every pass.
|
|
572
|
+
*
|
|
573
|
+
* @param opts - ledger directory, capacity and probes (tests).
|
|
574
|
+
* @returns the ids removed (entries of another CLEO version included).
|
|
575
|
+
*/
|
|
576
|
+
export declare function reapLedger(opts?: Pick<AdmitOptions, 'dir' | 'capacityBytes' | 'probe' | 'now' | 'sample'>): Promise<string[]>;
|
|
577
|
+
/**
|
|
578
|
+
* Remove one entry by id, whatever its liveness, and schedule. For
|
|
579
|
+
* `cleo doctor tool-locks --remove <id>`, when an entry cannot be proven dead
|
|
580
|
+
* (its holder is unidentifiable) but the operator knows it is.
|
|
581
|
+
*
|
|
582
|
+
* @param id - the entry id (as `cleo doctor tool-locks` lists it).
|
|
583
|
+
* @param opts - ledger directory, capacity and probes (tests).
|
|
584
|
+
* @returns whether an entry was removed.
|
|
585
|
+
*/
|
|
586
|
+
export declare function removeLedgerEntry(id: string, opts?: Pick<AdmitOptions, 'dir' | 'capacityBytes' | 'now' | 'sample'>): Promise<boolean>;
|
|
587
|
+
//# sourceMappingURL=admission-ledger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admission-ledger.d.ts","sourceRoot":"","sources":["../../src/resources/admission-ledger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AAOH,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACrB,aAAa,EACd,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EAOtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAuB,KAAK,QAAQ,EAAkB,MAAM,kBAAkB,CAAC;AAatF,mEAAmE;AACnE,eAAO,MAAM,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