@claudexor/daemon 3.25.1 → 4.0.1
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/account-resets.d.ts +2 -2
- package/dist/account-resets.d.ts.map +1 -1
- package/dist/account-resets.js +15 -0
- package/dist/account-resets.js.map +1 -1
- package/dist/client.d.ts +25 -6
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +55 -51
- package/dist/client.js.map +1 -1
- package/dist/command-authority.d.ts +11 -8
- package/dist/command-authority.d.ts.map +1 -1
- package/dist/command-authority.js +5 -6
- package/dist/command-authority.js.map +1 -1
- package/dist/command-list-projection.d.ts +0 -1
- package/dist/command-list-projection.d.ts.map +1 -1
- package/dist/command-list-projection.js +0 -6
- package/dist/command-list-projection.js.map +1 -1
- package/dist/command-list-select.d.ts +0 -4
- package/dist/command-list-select.d.ts.map +1 -1
- package/dist/command-list-select.js +1 -115
- package/dist/command-list-select.js.map +1 -1
- package/dist/command-retention.d.ts +7 -19
- package/dist/command-retention.d.ts.map +1 -1
- package/dist/command-retention.js +1 -120
- package/dist/command-retention.js.map +1 -1
- package/dist/command-rpc.d.ts +4 -1
- package/dist/command-rpc.d.ts.map +1 -1
- package/dist/command-rpc.js +12 -1
- package/dist/command-rpc.js.map +1 -1
- package/dist/command-store.d.ts +15 -52
- package/dist/command-store.d.ts.map +1 -1
- package/dist/command-store.js +5 -493
- package/dist/command-store.js.map +1 -1
- package/dist/daemon-health.d.ts +56 -8
- package/dist/daemon-health.d.ts.map +1 -1
- package/dist/daemon-health.js +44 -9
- package/dist/daemon-health.js.map +1 -1
- package/dist/daemon-local-client.d.ts +28 -0
- package/dist/daemon-local-client.d.ts.map +1 -0
- package/dist/daemon-local-client.js +55 -0
- package/dist/daemon-local-client.js.map +1 -0
- package/dist/delivery-command.d.ts +4 -4
- package/dist/delivery-command.d.ts.map +1 -1
- package/dist/delivery-command.js.map +1 -1
- package/dist/index.d.ts +23 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25 -8
- package/dist/index.js.map +1 -1
- package/dist/interactions.d.ts +12 -28
- package/dist/interactions.d.ts.map +1 -1
- package/dist/interactions.js +22 -123
- package/dist/interactions.js.map +1 -1
- package/dist/job-admission.d.ts +26 -0
- package/dist/job-admission.d.ts.map +1 -0
- package/dist/job-admission.js +67 -0
- package/dist/job-admission.js.map +1 -0
- package/dist/journal-fold-policy.d.ts +1 -1
- package/dist/journal-fold-policy.d.ts.map +1 -1
- package/dist/journal-recovery-files.d.ts +1 -41
- package/dist/journal-recovery-files.d.ts.map +1 -1
- package/dist/journal-recovery-files.js +2 -340
- package/dist/journal-recovery-files.js.map +1 -1
- package/dist/loop-facts.d.ts +28 -0
- package/dist/loop-facts.d.ts.map +1 -0
- package/dist/loop-facts.js +97 -0
- package/dist/loop-facts.js.map +1 -0
- package/dist/memory-facts.d.ts +2 -0
- package/dist/memory-facts.d.ts.map +1 -1
- package/dist/memory-facts.js +5 -0
- package/dist/memory-facts.js.map +1 -1
- package/dist/model-operations.d.ts +11 -4
- package/dist/model-operations.d.ts.map +1 -1
- package/dist/model-operations.js +68 -38
- package/dist/model-operations.js.map +1 -1
- package/dist/operator-decisions.d.ts +15 -25
- package/dist/operator-decisions.d.ts.map +1 -1
- package/dist/operator-decisions.js +5 -84
- package/dist/operator-decisions.js.map +1 -1
- package/dist/projects.d.ts +42 -41
- package/dist/projects.d.ts.map +1 -1
- package/dist/projects.js +46 -184
- package/dist/projects.js.map +1 -1
- package/dist/quota-registry-replay.d.ts +2 -2
- package/dist/quota-registry-replay.d.ts.map +1 -1
- package/dist/quota-registry-replay.js.map +1 -1
- package/dist/quota-registry-support.d.ts +4 -1
- package/dist/quota-registry-support.d.ts.map +1 -1
- package/dist/quota-registry-support.js +15 -2
- package/dist/quota-registry-support.js.map +1 -1
- package/dist/quota-registry.d.ts +64 -2
- package/dist/quota-registry.d.ts.map +1 -1
- package/dist/quota-registry.js +10 -3
- package/dist/quota-registry.js.map +1 -1
- package/dist/quota-resources.d.ts +6 -3
- package/dist/quota-resources.d.ts.map +1 -1
- package/dist/quota-resources.js +25 -8
- package/dist/quota-resources.js.map +1 -1
- package/dist/runless-turn-recovery.d.ts +2 -9
- package/dist/runless-turn-recovery.d.ts.map +1 -1
- package/dist/runless-turn-recovery.js +0 -14
- package/dist/runless-turn-recovery.js.map +1 -1
- package/dist/server.d.ts +23 -22
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +74 -84
- package/dist/server.js.map +1 -1
- package/dist/store/blob-files.d.ts +71 -0
- package/dist/store/blob-files.d.ts.map +1 -0
- package/dist/store/blob-files.js +160 -0
- package/dist/store/blob-files.js.map +1 -0
- package/dist/store/command-prune.d.ts +37 -0
- package/dist/store/command-prune.d.ts.map +1 -0
- package/dist/store/command-prune.js +123 -0
- package/dist/store/command-prune.js.map +1 -0
- package/dist/store/command-queries.d.ts +41 -0
- package/dist/store/command-queries.d.ts.map +1 -0
- package/dist/store/command-queries.js +186 -0
- package/dist/store/command-queries.js.map +1 -0
- package/dist/store/command-rows.d.ts +66 -0
- package/dist/store/command-rows.d.ts.map +1 -0
- package/dist/store/command-rows.js +141 -0
- package/dist/store/command-rows.js.map +1 -0
- package/dist/store/commands.d.ts +49 -0
- package/dist/store/commands.d.ts.map +1 -0
- package/dist/store/commands.js +247 -0
- package/dist/store/commands.js.map +1 -0
- package/dist/store/cursors.d.ts +33 -0
- package/dist/store/cursors.d.ts.map +1 -0
- package/dist/store/cursors.js +82 -0
- package/dist/store/cursors.js.map +1 -0
- package/dist/store/engine-recovery-files.d.ts +14 -0
- package/dist/store/engine-recovery-files.d.ts.map +1 -0
- package/dist/store/engine-recovery-files.js +53 -0
- package/dist/store/engine-recovery-files.js.map +1 -0
- package/dist/store/engine-state-recovery.d.ts +71 -0
- package/dist/store/engine-state-recovery.d.ts.map +1 -0
- package/dist/store/engine-state-recovery.js +318 -0
- package/dist/store/engine-state-recovery.js.map +1 -0
- package/dist/store/errors.d.ts +80 -0
- package/dist/store/errors.d.ts.map +1 -0
- package/dist/store/errors.js +130 -0
- package/dist/store/errors.js.map +1 -0
- package/dist/store/event-store.d.ts +52 -0
- package/dist/store/event-store.d.ts.map +1 -0
- package/dist/store/event-store.js +117 -0
- package/dist/store/event-store.js.map +1 -0
- package/dist/store/external-files.d.ts +40 -0
- package/dist/store/external-files.d.ts.map +1 -0
- package/dist/store/external-files.js +90 -0
- package/dist/store/external-files.js.map +1 -0
- package/dist/store/flusher-protocol.d.ts +82 -0
- package/dist/store/flusher-protocol.d.ts.map +1 -0
- package/dist/store/flusher-protocol.js +23 -0
- package/dist/store/flusher-protocol.js.map +1 -0
- package/dist/store/flusher-worker.d.ts +24 -0
- package/dist/store/flusher-worker.d.ts.map +1 -0
- package/dist/store/flusher-worker.js +185 -0
- package/dist/store/flusher-worker.js.map +1 -0
- package/dist/store/flusher.d.ts +87 -0
- package/dist/store/flusher.d.ts.map +1 -0
- package/dist/store/flusher.js +264 -0
- package/dist/store/flusher.js.map +1 -0
- package/dist/store/generations.d.ts +43 -0
- package/dist/store/generations.d.ts.map +1 -0
- package/dist/store/generations.js +143 -0
- package/dist/store/generations.js.map +1 -0
- package/dist/store/idempotency.d.ts +25 -0
- package/dist/store/idempotency.d.ts.map +1 -0
- package/dist/store/idempotency.js +53 -0
- package/dist/store/idempotency.js.map +1 -0
- package/dist/store/import-context.d.ts +22 -0
- package/dist/store/import-context.d.ts.map +1 -0
- package/dist/store/import-context.js +87 -0
- package/dist/store/import-context.js.map +1 -0
- package/dist/store/import-discovery.d.ts +6 -0
- package/dist/store/import-discovery.d.ts.map +1 -0
- package/dist/store/import-discovery.js +66 -0
- package/dist/store/import-discovery.js.map +1 -0
- package/dist/store/import-records.d.ts +6 -0
- package/dist/store/import-records.d.ts.map +1 -0
- package/dist/store/import-records.js +191 -0
- package/dist/store/import-records.js.map +1 -0
- package/dist/store/import-resources.d.ts +14 -0
- package/dist/store/import-resources.d.ts.map +1 -0
- package/dist/store/import-resources.js +197 -0
- package/dist/store/import-resources.js.map +1 -0
- package/dist/store/import-source.d.ts +24 -0
- package/dist/store/import-source.d.ts.map +1 -0
- package/dist/store/import-source.js +65 -0
- package/dist/store/import-source.js.map +1 -0
- package/dist/store/import-verify.d.ts +6 -0
- package/dist/store/import-verify.d.ts.map +1 -0
- package/dist/store/import-verify.js +97 -0
- package/dist/store/import-verify.js.map +1 -0
- package/dist/store/import-worker.d.ts +18 -0
- package/dist/store/import-worker.d.ts.map +1 -0
- package/dist/store/import-worker.js +69 -0
- package/dist/store/import-worker.js.map +1 -0
- package/dist/store/importer.d.ts +42 -0
- package/dist/store/importer.d.ts.map +1 -0
- package/dist/store/importer.js +239 -0
- package/dist/store/importer.js.map +1 -0
- package/dist/store/interactions.d.ts +22 -0
- package/dist/store/interactions.d.ts.map +1 -0
- package/dist/store/interactions.js +82 -0
- package/dist/store/interactions.js.map +1 -0
- package/dist/store/legacy-journal/frame-codec.d.ts +94 -0
- package/dist/store/legacy-journal/frame-codec.d.ts.map +1 -0
- package/dist/store/legacy-journal/frame-codec.js +352 -0
- package/dist/store/legacy-journal/frame-codec.js.map +1 -0
- package/dist/store/legacy-journal/frame-reader.d.ts +30 -0
- package/dist/store/legacy-journal/frame-reader.d.ts.map +1 -0
- package/dist/store/legacy-journal/frame-reader.js +97 -0
- package/dist/store/legacy-journal/frame-reader.js.map +1 -0
- package/dist/store/legacy-journal/journal-fold.d.ts +47 -0
- package/dist/store/legacy-journal/journal-fold.d.ts.map +1 -0
- package/dist/store/legacy-journal/journal-fold.js +81 -0
- package/dist/store/legacy-journal/journal-fold.js.map +1 -0
- package/dist/store/legacy-journal/journal-partition.d.ts +2 -0
- package/dist/store/legacy-journal/journal-partition.d.ts.map +1 -0
- package/dist/store/legacy-journal/journal-partition.js +10 -0
- package/dist/store/legacy-journal/journal-partition.js.map +1 -0
- package/dist/store/legacy-journal/read-only-preparation.d.ts +48 -0
- package/dist/store/legacy-journal/read-only-preparation.d.ts.map +1 -0
- package/dist/store/legacy-journal/read-only-preparation.js +430 -0
- package/dist/store/legacy-journal/read-only-preparation.js.map +1 -0
- package/dist/store/maintenance-worker.d.ts +5 -0
- package/dist/store/maintenance-worker.d.ts.map +1 -0
- package/dist/store/maintenance-worker.js +175 -0
- package/dist/store/maintenance-worker.js.map +1 -0
- package/dist/store/maintenance.d.ts +124 -0
- package/dist/store/maintenance.d.ts.map +1 -0
- package/dist/store/maintenance.js +197 -0
- package/dist/store/maintenance.js.map +1 -0
- package/dist/store/mutation.d.ts +34 -0
- package/dist/store/mutation.d.ts.map +1 -0
- package/dist/store/mutation.js +85 -0
- package/dist/store/mutation.js.map +1 -0
- package/dist/store/obligations.d.ts +101 -0
- package/dist/store/obligations.d.ts.map +1 -0
- package/dist/store/obligations.js +226 -0
- package/dist/store/obligations.js.map +1 -0
- package/dist/store/operator-decisions.d.ts +23 -0
- package/dist/store/operator-decisions.d.ts.map +1 -0
- package/dist/store/operator-decisions.js +68 -0
- package/dist/store/operator-decisions.js.map +1 -0
- package/dist/store/owner-generations.d.ts +33 -0
- package/dist/store/owner-generations.d.ts.map +1 -0
- package/dist/store/owner-generations.js +63 -0
- package/dist/store/owner-generations.js.map +1 -0
- package/dist/store/partitions.d.ts +37 -0
- package/dist/store/partitions.d.ts.map +1 -0
- package/dist/store/partitions.js +68 -0
- package/dist/store/partitions.js.map +1 -0
- package/dist/store/pragmas.d.ts +32 -0
- package/dist/store/pragmas.d.ts.map +1 -0
- package/dist/store/pragmas.js +65 -0
- package/dist/store/pragmas.js.map +1 -0
- package/dist/store/project-router.d.ts +325 -0
- package/dist/store/project-router.d.ts.map +1 -0
- package/dist/store/project-router.js +298 -0
- package/dist/store/project-router.js.map +1 -0
- package/dist/store/projects.d.ts +36 -0
- package/dist/store/projects.d.ts.map +1 -0
- package/dist/store/projects.js +238 -0
- package/dist/store/projects.js.map +1 -0
- package/dist/store/publish-blob.d.ts +20 -0
- package/dist/store/publish-blob.d.ts.map +1 -0
- package/dist/store/publish-blob.js +158 -0
- package/dist/store/publish-blob.js.map +1 -0
- package/dist/store/purge-files.d.ts +30 -0
- package/dist/store/purge-files.d.ts.map +1 -0
- package/dist/store/purge-files.js +79 -0
- package/dist/store/purge-files.js.map +1 -0
- package/dist/store/resource-rows.d.ts +40 -0
- package/dist/store/resource-rows.d.ts.map +1 -0
- package/dist/store/resource-rows.js +103 -0
- package/dist/store/resource-rows.js.map +1 -0
- package/dist/store/resources.d.ts +67 -0
- package/dist/store/resources.d.ts.map +1 -0
- package/dist/store/resources.js +147 -0
- package/dist/store/resources.js.map +1 -0
- package/dist/store/retention.d.ts +95 -0
- package/dist/store/retention.d.ts.map +1 -0
- package/dist/store/retention.js +173 -0
- package/dist/store/retention.js.map +1 -0
- package/dist/store/run-events.d.ts +14 -0
- package/dist/store/run-events.d.ts.map +1 -0
- package/dist/store/run-events.js +35 -0
- package/dist/store/run-events.js.map +1 -0
- package/dist/store/runtime.d.ts +24 -0
- package/dist/store/runtime.d.ts.map +1 -0
- package/dist/store/runtime.js +67 -0
- package/dist/store/runtime.js.map +1 -0
- package/dist/store/schema.d.ts +33 -0
- package/dist/store/schema.d.ts.map +1 -0
- package/dist/store/schema.js +187 -0
- package/dist/store/schema.js.map +1 -0
- package/dist/store/setup-bindings.d.ts +20 -0
- package/dist/store/setup-bindings.d.ts.map +1 -0
- package/dist/store/setup-bindings.js +52 -0
- package/dist/store/setup-bindings.js.map +1 -0
- package/dist/store/sql-command-router.d.ts +79 -0
- package/dist/store/sql-command-router.d.ts.map +1 -0
- package/dist/store/sql-command-router.js +92 -0
- package/dist/store/sql-command-router.js.map +1 -0
- package/dist/store/sql-daemon-services.d.ts +61 -0
- package/dist/store/sql-daemon-services.d.ts.map +1 -0
- package/dist/store/sql-daemon-services.js +124 -0
- package/dist/store/sql-daemon-services.js.map +1 -0
- package/dist/store/sql-recovery-export.d.ts +8 -0
- package/dist/store/sql-recovery-export.d.ts.map +1 -0
- package/dist/store/sql-recovery-export.js +110 -0
- package/dist/store/sql-recovery-export.js.map +1 -0
- package/dist/store/sql-recovery-inspection.d.ts +22 -0
- package/dist/store/sql-recovery-inspection.d.ts.map +1 -0
- package/dist/store/sql-recovery-inspection.js +88 -0
- package/dist/store/sql-recovery-inspection.js.map +1 -0
- package/dist/store/sql-recovery.d.ts +69 -0
- package/dist/store/sql-recovery.d.ts.map +1 -0
- package/dist/store/sql-recovery.js +169 -0
- package/dist/store/sql-recovery.js.map +1 -0
- package/dist/store/sql-validation.d.ts +9 -0
- package/dist/store/sql-validation.d.ts.map +1 -0
- package/dist/store/sql-validation.js +103 -0
- package/dist/store/sql-validation.js.map +1 -0
- package/dist/store/statement-observer.d.ts +7 -0
- package/dist/store/statement-observer.d.ts.map +1 -0
- package/dist/store/statement-observer.js +44 -0
- package/dist/store/statement-observer.js.map +1 -0
- package/dist/store/store.d.ts +110 -0
- package/dist/store/store.d.ts.map +1 -0
- package/dist/store/store.js +296 -0
- package/dist/store/store.js.map +1 -0
- package/dist/store/terminal-files.d.ts +21 -0
- package/dist/store/terminal-files.d.ts.map +1 -0
- package/dist/store/terminal-files.js +115 -0
- package/dist/store/terminal-files.js.map +1 -0
- package/dist/store/thread-replay.d.ts +12 -0
- package/dist/store/thread-replay.d.ts.map +1 -0
- package/dist/store/thread-replay.js +49 -0
- package/dist/store/thread-replay.js.map +1 -0
- package/dist/store/thread-rows.d.ts +25 -0
- package/dist/store/thread-rows.d.ts.map +1 -0
- package/dist/store/thread-rows.js +141 -0
- package/dist/store/thread-rows.js.map +1 -0
- package/dist/store/threads.d.ts +105 -0
- package/dist/store/threads.d.ts.map +1 -0
- package/dist/store/threads.js +423 -0
- package/dist/store/threads.js.map +1 -0
- package/dist/store/upload-binding-retention.d.ts +26 -0
- package/dist/store/upload-binding-retention.d.ts.map +1 -0
- package/dist/store/upload-binding-retention.js +142 -0
- package/dist/store/upload-binding-retention.js.map +1 -0
- package/dist/store/uploads.d.ts +30 -0
- package/dist/store/uploads.d.ts.map +1 -0
- package/dist/store/uploads.js +238 -0
- package/dist/store/uploads.js.map +1 -0
- package/dist/store-contracts.d.ts +181 -0
- package/dist/store-contracts.d.ts.map +1 -0
- package/dist/store-contracts.js +2 -0
- package/dist/store-contracts.js.map +1 -0
- package/dist/terminal-authority.d.ts +9 -0
- package/dist/terminal-authority.d.ts.map +1 -1
- package/dist/terminal-authority.js +103 -1
- package/dist/terminal-authority.js.map +1 -1
- package/dist/thread-lane-checkpoints.d.ts +0 -2
- package/dist/thread-lane-checkpoints.d.ts.map +1 -1
- package/dist/thread-lane-checkpoints.js +0 -4
- package/dist/thread-lane-checkpoints.js.map +1 -1
- package/dist/thread-store-support.d.ts +1 -27
- package/dist/thread-store-support.d.ts.map +1 -1
- package/dist/thread-store-support.js +0 -63
- package/dist/thread-store-support.js.map +1 -1
- package/dist/threads.d.ts +1 -113
- package/dist/threads.d.ts.map +1 -1
- package/dist/threads.js +1 -379
- package/dist/threads.js.map +1 -1
- package/package.json +9 -7
- package/dist/command-activity.d.ts +0 -14
- package/dist/command-activity.d.ts.map +0 -1
- package/dist/command-activity.js +0 -16
- package/dist/command-activity.js.map +0 -1
- package/dist/journal-events.d.ts +0 -4
- package/dist/journal-events.d.ts.map +0 -1
- package/dist/journal-events.js +0 -23
- package/dist/journal-events.js.map +0 -1
- package/dist/journal-maintenance.d.ts +0 -50
- package/dist/journal-maintenance.d.ts.map +0 -1
- package/dist/journal-maintenance.js +0 -162
- package/dist/journal-maintenance.js.map +0 -1
- package/dist/journal-manager-journal.d.ts +0 -18
- package/dist/journal-manager-journal.d.ts.map +0 -1
- package/dist/journal-manager-journal.js +0 -25
- package/dist/journal-manager-journal.js.map +0 -1
- package/dist/journal-manager-lifecycle.d.ts +0 -11
- package/dist/journal-manager-lifecycle.d.ts.map +0 -1
- package/dist/journal-manager-lifecycle.js +0 -2
- package/dist/journal-manager-lifecycle.js.map +0 -1
- package/dist/journal-manager.d.ts +0 -99
- package/dist/journal-manager.d.ts.map +0 -1
- package/dist/journal-manager.js +0 -559
- package/dist/journal-manager.js.map +0 -1
- package/dist/journal-prepared-operation.d.ts +0 -53
- package/dist/journal-prepared-operation.d.ts.map +0 -1
- package/dist/journal-prepared-operation.js +0 -158
- package/dist/journal-prepared-operation.js.map +0 -1
- package/dist/journal-projection-slot.d.ts +0 -28
- package/dist/journal-projection-slot.d.ts.map +0 -1
- package/dist/journal-projection-slot.js +0 -71
- package/dist/journal-projection-slot.js.map +0 -1
- package/dist/journal-projection.d.ts +0 -13
- package/dist/journal-projection.d.ts.map +0 -1
- package/dist/journal-projection.js +0 -2
- package/dist/journal-projection.js.map +0 -1
- package/dist/partition-accounts.d.ts +0 -27
- package/dist/partition-accounts.d.ts.map +0 -1
- package/dist/partition-accounts.js +0 -21
- package/dist/partition-accounts.js.map +0 -1
- package/dist/project-partition-preparation.d.ts +0 -87
- package/dist/project-partition-preparation.d.ts.map +0 -1
- package/dist/project-partition-preparation.js +0 -273
- package/dist/project-partition-preparation.js.map +0 -1
- package/dist/project-partitions.d.ts +0 -214
- package/dist/project-partitions.d.ts.map +0 -1
- package/dist/project-partitions.js +0 -486
- package/dist/project-partitions.js.map +0 -1
- package/dist/project-remove.d.ts +0 -11
- package/dist/project-remove.d.ts.map +0 -1
- package/dist/project-remove.js +0 -65
- package/dist/project-remove.js.map +0 -1
- package/dist/project-thread-listing.d.ts +0 -14
- package/dist/project-thread-listing.d.ts.map +0 -1
- package/dist/project-thread-listing.js +0 -37
- package/dist/project-thread-listing.js.map +0 -1
- package/dist/quota-projection.d.ts +0 -11
- package/dist/quota-projection.d.ts.map +0 -1
- package/dist/quota-projection.js +0 -10
- package/dist/quota-projection.js.map +0 -1
- package/dist/resource-store.d.ts +0 -39
- package/dist/resource-store.d.ts.map +0 -1
- package/dist/resource-store.js +0 -464
- package/dist/resource-store.js.map +0 -1
- package/dist/run-event-terminal-index.d.ts +0 -13
- package/dist/run-event-terminal-index.d.ts.map +0 -1
- package/dist/run-event-terminal-index.js +0 -38
- package/dist/run-event-terminal-index.js.map +0 -1
- package/dist/run-events.d.ts +0 -17
- package/dist/run-events.d.ts.map +0 -1
- package/dist/run-events.js +0 -31
- package/dist/run-events.js.map +0 -1
- package/dist/thread-head-ping.d.ts +0 -35
- package/dist/thread-head-ping.d.ts.map +0 -1
- package/dist/thread-head-ping.js +0 -67
- package/dist/thread-head-ping.js.map +0 -1
|
@@ -1,132 +1,13 @@
|
|
|
1
|
-
import { parseCommandListQuery, selectCommandRecords } from "./command-list-select.js";
|
|
2
|
-
import { retainedEnvelopeOfRun } from "@claudexor/workspace";
|
|
3
|
-
import { continuedRunOf, isHarnessMaintenanceOperation, isModelOperation } from "@claudexor/schema";
|
|
4
|
-
/** Agent run commands only: model and harness-maintenance operations are
|
|
5
|
-
* commands without a run and have their own typed read surfaces. */
|
|
6
|
-
export function productCommandRecords(records) {
|
|
7
|
-
return records.filter((record) => !record.id.startsWith("account-reset-") &&
|
|
8
|
-
!isDeliveryCommand(record) &&
|
|
9
|
-
!isModelOperation(record.params) &&
|
|
10
|
-
!isHarnessMaintenanceOperation(record.params));
|
|
11
|
-
}
|
|
12
|
-
/** Addressed selection is shared by socket reads and in-process consumers. */
|
|
13
|
-
export function selectProductCommands(records, query) {
|
|
14
|
-
const addressed = parseCommandListQuery(query);
|
|
15
|
-
return selectCommandRecords(productCommandRecords(records), addressed);
|
|
16
|
-
}
|
|
17
|
-
/** Delivery commands persist the full run params of the apply they serve;
|
|
18
|
-
* they keep their existing age/cap retention and are outside the byte budget. */
|
|
19
|
-
function isDeliveryCommand(record) {
|
|
20
|
-
return record.id.startsWith("delivery-");
|
|
21
|
-
}
|
|
22
1
|
/** A terminal run that still needs a human decision: its lifecycle SUCCEEDED
|
|
23
2
|
* but the arbitrated facts are review-blocked or checks-failed. These carry the
|
|
24
3
|
* same operator obligation the old coarse `blocked` job state did, so they must
|
|
25
4
|
* survive age/cap pruning (otherwise the operator loses the run they need to
|
|
26
5
|
* accept-risk / rerun before its evidence is gone). */
|
|
27
|
-
function isNeedsDecision(record) {
|
|
6
|
+
export function isNeedsDecision(record) {
|
|
28
7
|
const result = record.result;
|
|
29
8
|
const facts = result && typeof result === "object" ? result.facts : undefined;
|
|
30
9
|
if (!facts || typeof facts !== "object")
|
|
31
10
|
return false;
|
|
32
11
|
return facts.review === "blocked" || facts.checks === "failed";
|
|
33
12
|
}
|
|
34
|
-
/** Pure exemptions: keep custody addressable and claims while their predecessor is retained.
|
|
35
|
-
* The input is the current kept set; if a predecessor is removed in this pass,
|
|
36
|
-
* its successor becomes eligible on the next pass. No lifetime is invented. */
|
|
37
|
-
function continuationExemptions(records) {
|
|
38
|
-
const identities = new Set(records.flatMap((record) => [record.id, ...(record.runId ? [record.runId] : [])]));
|
|
39
|
-
return new Set(records
|
|
40
|
-
.filter((record) => {
|
|
41
|
-
const predecessor = continuedRunOf(record.params);
|
|
42
|
-
return ((predecessor !== null && identities.has(predecessor)) ||
|
|
43
|
-
!!(record.runDir && record.runId && retainedEnvelopeOfRun(record.runDir, record.runId)));
|
|
44
|
-
})
|
|
45
|
-
.map((record) => record.id));
|
|
46
|
-
}
|
|
47
|
-
/** Cap on the serialized `params` bytes retained across terminal product
|
|
48
|
-
* commands (journal sprint owner decision D3, release 1). Prompts stay inline
|
|
49
|
-
* in the command journal, so once their sum passes this bound the OLDEST
|
|
50
|
-
* terminal product commands are pruned regardless of age; the 500/30-day rule
|
|
51
|
-
* is unchanged. Model-operation receipts, needs-decision and continuation references are exempt;
|
|
52
|
-
* delivery commands (`delivery-*`, which carry a copy of the applied run's
|
|
53
|
-
* params) keep their own age/cap policy and neither count nor get pruned here. */
|
|
54
|
-
export const MAX_RETAINED_COMMAND_PARAMS_BYTES = 256 * 1024 * 1024;
|
|
55
|
-
/** Select only expired terminal records (D8: job state is the lifecycle;
|
|
56
|
-
* non-terminal = queued/running). Needs-decision (review-blocked / checks-
|
|
57
|
-
* failed) runs are EXEMPT — they keep operator visibility parity with the old
|
|
58
|
-
* `blocked` retention and are never pruned by age/cap or by the byte budget. */
|
|
59
|
-
export function prunableCommandIds(records, cap, retentionMs, now, maxParamsBytes = MAX_RETAINED_COMMAND_PARAMS_BYTES) {
|
|
60
|
-
// Model bodies have their own custody lifetime. Their compact receipts and
|
|
61
|
-
// idempotency keys survive it, and must not consume Agent history capacity.
|
|
62
|
-
// Delivery commands retain their existing age/cap policy.
|
|
63
|
-
const terminal = records
|
|
64
|
-
.filter((record) => !record.id.startsWith("account-reset-") &&
|
|
65
|
-
!isModelOperation(record.params) &&
|
|
66
|
-
!["running", "queued"].includes(record.state))
|
|
67
|
-
.sort((a, b) => (a.createdAt < b.createdAt ? -1 : 1));
|
|
68
|
-
const pruned = new Set();
|
|
69
|
-
const continuation = continuationExemptions(records);
|
|
70
|
-
const exempt = (record) => isNeedsDecision(record) || continuation.has(record.id);
|
|
71
|
-
if (terminal.length > cap) {
|
|
72
|
-
for (const record of terminal
|
|
73
|
-
.filter((record) => {
|
|
74
|
-
if (exempt(record))
|
|
75
|
-
return false;
|
|
76
|
-
const settledAt = Date.parse(record.finishedAt ?? "");
|
|
77
|
-
return Number.isFinite(settledAt) && now - settledAt >= retentionMs;
|
|
78
|
-
})
|
|
79
|
-
.slice(0, terminal.length - cap)) {
|
|
80
|
-
pruned.add(record.id);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
// Byte budget over the PRODUCT commands that survive the age/cap rule,
|
|
84
|
-
// oldest first. Only the records the rule can reach are counted: a
|
|
85
|
-
// needs-decision run is exempt, a delivery command is outside the rule
|
|
86
|
-
// (model receipts never enter `terminal`), so their params must not push
|
|
87
|
-
// every reachable command out — the budget bounds exactly what it may prune.
|
|
88
|
-
let bytes = 0;
|
|
89
|
-
const sizes = new Map();
|
|
90
|
-
for (const record of terminal) {
|
|
91
|
-
if (pruned.has(record.id) || exempt(record) || isDeliveryCommand(record))
|
|
92
|
-
continue;
|
|
93
|
-
const size = paramsBytes(record);
|
|
94
|
-
sizes.set(record.id, size);
|
|
95
|
-
bytes += size;
|
|
96
|
-
}
|
|
97
|
-
for (const record of terminal) {
|
|
98
|
-
if (bytes <= maxParamsBytes)
|
|
99
|
-
break;
|
|
100
|
-
const size = sizes.get(record.id);
|
|
101
|
-
if (size === undefined)
|
|
102
|
-
continue; // already pruned, or exempt
|
|
103
|
-
pruned.add(record.id);
|
|
104
|
-
bytes -= size;
|
|
105
|
-
}
|
|
106
|
-
return [...pruned];
|
|
107
|
-
}
|
|
108
|
-
/** Serialized UTF-8 size of a command's params, measured once: params are
|
|
109
|
-
* pinned at acceptance (`update()` keeps the same object), so the size keyed by
|
|
110
|
-
* that object never goes stale, and a prune pass never re-serializes history. */
|
|
111
|
-
const paramsByteCache = new WeakMap();
|
|
112
|
-
function paramsBytes(record) {
|
|
113
|
-
const params = record.params;
|
|
114
|
-
const cacheable = typeof params === "object" && params !== null;
|
|
115
|
-
if (cacheable) {
|
|
116
|
-
const known = paramsByteCache.get(params);
|
|
117
|
-
if (known !== undefined)
|
|
118
|
-
return known;
|
|
119
|
-
}
|
|
120
|
-
let size = 0;
|
|
121
|
-
try {
|
|
122
|
-
const serialized = JSON.stringify(params);
|
|
123
|
-
size = serialized === undefined ? 0 : Buffer.byteLength(serialized, "utf8");
|
|
124
|
-
}
|
|
125
|
-
catch {
|
|
126
|
-
size = 0;
|
|
127
|
-
}
|
|
128
|
-
if (cacheable)
|
|
129
|
-
paramsByteCache.set(params, size);
|
|
130
|
-
return size;
|
|
131
|
-
}
|
|
132
13
|
//# sourceMappingURL=command-retention.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-retention.js","sourceRoot":"","sources":["../src/command-retention.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"command-retention.js","sourceRoot":"","sources":["../src/command-retention.ts"],"names":[],"mappings":"AAEA;;;;uDAIuD;AACvD,MAAM,UAAU,eAAe,CAAC,MAAiB;IAC/C,MAAM,MAAM,GAAG,MAAM,CAAC,MAAmE,CAAC;IAC1F,MAAM,KAAK,GAAG,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;IAC9E,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IACtD,OAAO,KAAK,CAAC,MAAM,KAAK,SAAS,IAAI,KAAK,CAAC,MAAM,KAAK,QAAQ,CAAC;AACjE,CAAC"}
|
package/dist/command-rpc.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { type CommandAuthority } from "./command-authority.js";
|
|
1
|
+
import { type CommandAuthority, type CommandBackend } from "./command-authority.js";
|
|
2
2
|
import { publicJobRecord, type JobRecord } from "./job-record.js";
|
|
3
|
+
import { type DelegationAdmissionAuthority } from "./delegation-admission.js";
|
|
4
|
+
/** Existing admission rules over their addressed subjects, in the enqueue turn. */
|
|
5
|
+
export declare function admitCommandRequest(commands: CommandBackend, raw: unknown, operation: string | undefined, delegation?: DelegationAdmissionAuthority): unknown;
|
|
3
6
|
interface CommandLookupEnvelope {
|
|
4
7
|
request?: unknown;
|
|
5
8
|
idempotencyKey?: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-rpc.d.ts","sourceRoot":"","sources":["../src/command-rpc.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"command-rpc.d.ts","sourceRoot":"","sources":["../src/command-rpc.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAElE,OAAO,EAEL,KAAK,4BAA4B,EAClC,MAAM,2BAA2B,CAAC;AAEnC,mFAAmF;AACnF,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,cAAc,EACxB,GAAG,EAAE,OAAO,EACZ,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,UAAU,CAAC,EAAE,4BAA4B,GACxC,OAAO,CAST;AAED,UAAU,qBAAqB;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,uEAAuE;AACvE,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,gBAAgB,EAC1B,KAAK,EAAE,qBAAqB,GAAG,IAAI,GAAG,SAAS,GAC9C,SAAS,GAAG,IAAI,CAQlB;AAED,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,gBAAgB,EAC1B,KAAK,EAAE,qBAAqB,GAAG,IAAI,GAAG,SAAS,GAC9C,UAAU,CAAC,OAAO,eAAe,CAAC,GAAG,IAAI,CAG3C;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO;;;;EAE1E"}
|
package/dist/command-rpc.js
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { continuedRunOf, delegatedParentOf } from "@claudexor/schema";
|
|
2
|
+
import { commandStoreForRequest, } from "./command-authority.js";
|
|
2
3
|
import { publicJobRecord } from "./job-record.js";
|
|
4
|
+
import { admitContinuationRequest } from "./continuation-admission.js";
|
|
5
|
+
import { admitDelegatedRequest, } from "./delegation-admission.js";
|
|
6
|
+
/** Existing admission rules over their addressed subjects, in the enqueue turn. */
|
|
7
|
+
export function admitCommandRequest(commands, raw, operation, delegation) {
|
|
8
|
+
const from = continuedRunOf(raw);
|
|
9
|
+
const request = admitContinuationRequest(raw, from ? commands.queries.select({ continuationChainOf: from }) : []);
|
|
10
|
+
const parentId = delegatedParentOf(request);
|
|
11
|
+
const parent = parentId ? commands.queries.getByRunId(parentId) : undefined;
|
|
12
|
+
return admitDelegatedRequest(request, operation, parent ? [parent] : [], delegation);
|
|
13
|
+
}
|
|
3
14
|
/** One parser for enqueue replay and the explicit findAccepted RPC. */
|
|
4
15
|
export function findAcceptedCommand(commands, input) {
|
|
5
16
|
return commandStoreForRequest(commands, input?.request).find({
|
package/dist/command-rpc.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-rpc.js","sourceRoot":"","sources":["../src/command-rpc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"command-rpc.js","sourceRoot":"","sources":["../src/command-rpc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,EACL,sBAAsB,GAGvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAkB,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EACL,qBAAqB,GAEtB,MAAM,2BAA2B,CAAC;AAEnC,mFAAmF;AACnF,MAAM,UAAU,mBAAmB,CACjC,QAAwB,EACxB,GAAY,EACZ,SAA6B,EAC7B,UAAyC;IAEzC,MAAM,IAAI,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;IACjC,MAAM,OAAO,GAAG,wBAAwB,CACtC,GAAG,EACH,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,mBAAmB,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CACnE,CAAC;IACF,MAAM,QAAQ,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAC5C,MAAM,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC5E,OAAO,qBAAqB,CAAC,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;AACvF,CAAC;AAUD,uEAAuE;AACvE,MAAM,UAAU,mBAAmB,CACjC,QAA0B,EAC1B,KAA+C;IAE/C,OAAO,sBAAsB,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;QAC3D,MAAM,EAAE,KAAK,EAAE,OAAO;QACtB,cAAc,EAAE,MAAM,CAAC,KAAK,EAAE,cAAc,IAAI,EAAE,CAAC;QACnD,QAAQ,EAAE,MAAM,CAAC,KAAK,EAAE,QAAQ,IAAI,eAAe,CAAC;QACpD,SAAS,EAAE,OAAO,KAAK,EAAE,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;QAC7E,iBAAiB,EAAE,KAAK,EAAE,kBAAkB;KAC7C,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,qBAAqB,CACnC,QAA0B,EAC1B,KAA+C;IAE/C,MAAM,MAAM,GAAG,mBAAmB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IACpD,OAAO,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,MAAiB,EAAE,MAAe;IACzE,OAAO,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;AACxD,CAAC"}
|
package/dist/command-store.d.ts
CHANGED
|
@@ -1,55 +1,18 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
private readonly idByKeyDigest;
|
|
9
|
-
private readonly prunedRoots;
|
|
10
|
-
constructor(journal: DurableJournal, now?: () => Date);
|
|
11
|
-
/** Apply crash terminalization only after bootstrap has proved every required partition. */
|
|
12
|
-
recoverAfterStartup(): void;
|
|
13
|
-
accept(input: {
|
|
14
|
-
id: string;
|
|
15
|
-
params: unknown;
|
|
16
|
-
idempotencyKey: string;
|
|
17
|
-
clientId: string;
|
|
18
|
-
operation?: string;
|
|
19
|
-
idempotencyParams?: unknown;
|
|
20
|
-
}): {
|
|
21
|
-
record: JobRecord;
|
|
22
|
-
reused: boolean;
|
|
23
|
-
};
|
|
24
|
-
find(input: {
|
|
25
|
-
params: unknown;
|
|
26
|
-
idempotencyKey: string;
|
|
27
|
-
clientId: string;
|
|
28
|
-
operation?: string;
|
|
29
|
-
idempotencyParams?: unknown;
|
|
30
|
-
}): JobRecord | null;
|
|
31
|
-
get(id: string): JobRecord | undefined;
|
|
32
|
-
get count(): number;
|
|
33
|
-
records(): JobRecord[];
|
|
34
|
-
update(id: string, patch: Partial<JobRecord>): JobRecord;
|
|
35
|
-
prune(ids: readonly string[]): void;
|
|
36
|
-
prunedScopeRoots(): string[];
|
|
37
|
-
/** Reconcile after durable terminal acceptance but failed local receipt/tail finalization. */
|
|
38
|
-
recoverDurableTerminal(id: string): JobRecord | null;
|
|
39
|
-
validateProjection(): void;
|
|
40
|
-
private replay;
|
|
41
|
-
private interruptUnknownCommands;
|
|
42
|
-
private reconcileTerminal;
|
|
43
|
-
/** The partition's durable terminals, from the pass shared with the
|
|
44
|
-
* RunEventStore projection (parsed once per generation, extended on append). */
|
|
45
|
-
private durableTerminalEvents;
|
|
46
|
-
private recoverTerminalArtifacts;
|
|
47
|
-
private drop;
|
|
1
|
+
import { type JobRecord } from "./job-record.js";
|
|
2
|
+
export interface FindCommand {
|
|
3
|
+
params: unknown;
|
|
4
|
+
idempotencyKey: string;
|
|
5
|
+
clientId: string;
|
|
6
|
+
operation?: string;
|
|
7
|
+
idempotencyParams?: unknown;
|
|
48
8
|
}
|
|
49
|
-
export
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
9
|
+
export interface AcceptCommand extends FindCommand {
|
|
10
|
+
id: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function validateCommandRecord(record: Omit<JobRecord, "params">): void;
|
|
13
|
+
export declare function validateCommandKey(key: string): void;
|
|
14
|
+
export declare function commandDigests(partition: string, input: FindCommand): {
|
|
15
|
+
requestDigest: string;
|
|
16
|
+
keyDigest: string;
|
|
54
17
|
};
|
|
55
18
|
//# sourceMappingURL=command-store.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-store.d.ts","sourceRoot":"","sources":["../src/command-store.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"command-store.d.ts","sourceRoot":"","sources":["../src/command-store.ts"],"names":[],"mappings":"AAEA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE7D,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AACD,MAAM,WAAW,aAAc,SAAQ,WAAW;IAChD,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,GAAG,IAAI,CAO7E;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAOpD;AAED,wBAAgB,cAAc,CAC5B,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,WAAW,GACjB;IAAE,aAAa,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAU9C"}
|