@amalgm/shell 0.1.164-preview.36072132286 → 0.1.164-preview.36809057014
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/PURPOSE.md +642 -128
- package/README.md +10 -8
- package/dist/accepted-tail.d.ts +26 -0
- package/dist/accepted-tail.js +37 -0
- package/dist/accepted-tail.js.map +1 -0
- package/dist/agent-execution.d.ts +16 -1
- package/dist/agent-execution.js +13 -5
- package/dist/agent-execution.js.map +1 -1
- package/dist/apply-cleanup.d.ts +28 -0
- package/dist/apply-cleanup.js +166 -0
- package/dist/apply-cleanup.js.map +1 -0
- package/dist/apply-recovery.d.ts +47 -0
- package/dist/apply-recovery.js +99 -0
- package/dist/apply-recovery.js.map +1 -0
- package/dist/apply-rows.d.ts +72 -0
- package/dist/apply-rows.js +150 -0
- package/dist/apply-rows.js.map +1 -0
- package/dist/apply-saves.d.ts +85 -0
- package/dist/apply-saves.js +238 -0
- package/dist/apply-saves.js.map +1 -0
- package/dist/boot.js +2 -1
- package/dist/boot.js.map +1 -1
- package/dist/capture-work.d.ts +8 -0
- package/dist/capture-work.js +67 -0
- package/dist/capture-work.js.map +1 -0
- package/dist/cargo-group.d.ts +45 -0
- package/dist/cargo-group.js +88 -0
- package/dist/cargo-group.js.map +1 -0
- package/dist/channel-session.d.ts +4 -2
- package/dist/channel-session.js +4 -3
- package/dist/channel-session.js.map +1 -1
- package/dist/chat-composition.d.ts +2 -0
- package/dist/chat-composition.js +1 -0
- package/dist/chat-composition.js.map +1 -1
- package/dist/cli.js +20 -1
- package/dist/cli.js.map +1 -1
- package/dist/construct-apply-host.d.ts +4 -2
- package/dist/construct-apply-host.js +8 -3
- package/dist/construct-apply-host.js.map +1 -1
- package/dist/construct-door.js +1 -1
- package/dist/construct-door.js.map +1 -1
- package/dist/construct-ledger.d.ts +6 -1
- package/dist/construct-ledger.js +21 -33
- package/dist/construct-ledger.js.map +1 -1
- package/dist/content-cache-collection.d.ts +18 -0
- package/dist/content-cache-collection.js +99 -0
- package/dist/content-cache-collection.js.map +1 -0
- package/dist/content-cache-host.d.ts +83 -17
- package/dist/content-cache-host.js +335 -95
- package/dist/content-cache-host.js.map +1 -1
- package/dist/content-cache-namespace.d.ts +59 -0
- package/dist/content-cache-namespace.js +210 -0
- package/dist/content-cache-namespace.js.map +1 -0
- package/dist/content-cache-ownership.d.ts +13 -0
- package/dist/content-cache-ownership.js +75 -0
- package/dist/content-cache-ownership.js.map +1 -0
- package/dist/content-cache-retention.d.ts +23 -0
- package/dist/content-cache-retention.js +195 -0
- package/dist/content-cache-retention.js.map +1 -0
- package/dist/content-capture-pool.d.ts +287 -0
- package/dist/content-capture-pool.js +461 -0
- package/dist/content-capture-pool.js.map +1 -0
- package/dist/content-capture-worker.d.ts +8 -0
- package/dist/content-capture-worker.js +109 -0
- package/dist/content-capture-worker.js.map +1 -0
- package/dist/content-clock.d.ts +42 -0
- package/dist/content-clock.js +166 -0
- package/dist/content-clock.js.map +1 -0
- package/dist/content-direct.d.ts +2 -0
- package/dist/content-direct.js +12 -0
- package/dist/content-direct.js.map +1 -1
- package/dist/content-failure.d.ts +18 -0
- package/dist/content-failure.js +38 -0
- package/dist/content-failure.js.map +1 -0
- package/dist/content-stream-thread.d.ts +60 -0
- package/dist/content-stream-thread.js +95 -0
- package/dist/content-stream-thread.js.map +1 -0
- package/dist/content-stream-worker.d.ts +7 -0
- package/dist/content-stream-worker.js +52 -0
- package/dist/content-stream-worker.js.map +1 -0
- package/dist/declaration-absorption.d.ts +37 -0
- package/dist/declaration-absorption.js +119 -0
- package/dist/declaration-absorption.js.map +1 -0
- package/dist/declaration-chain.d.ts +36 -0
- package/dist/declaration-chain.js +96 -0
- package/dist/declaration-chain.js.map +1 -0
- package/dist/declaration-commit.d.ts +31 -0
- package/dist/declaration-commit.js +49 -0
- package/dist/declaration-commit.js.map +1 -0
- package/dist/declaration-hold.d.ts +22 -0
- package/dist/declaration-hold.js +24 -0
- package/dist/declaration-hold.js.map +1 -0
- package/dist/declaration-journal.d.ts +62 -0
- package/dist/declaration-journal.js +99 -0
- package/dist/declaration-journal.js.map +1 -0
- package/dist/declaration-save.d.ts +31 -0
- package/dist/declaration-save.js +134 -0
- package/dist/declaration-save.js.map +1 -0
- package/dist/detection/accepted-result.d.ts +19 -1
- package/dist/detection/accepted-result.js +36 -5
- package/dist/detection/accepted-result.js.map +1 -1
- package/dist/detection/admission-save.d.ts +55 -0
- package/dist/detection/admission-save.js +48 -0
- package/dist/detection/admission-save.js.map +1 -0
- package/dist/detection/admission-units.d.ts +66 -0
- package/dist/detection/admission-units.js +322 -0
- package/dist/detection/admission-units.js.map +1 -0
- package/dist/detection/alias-discovery.d.ts +12 -0
- package/dist/detection/alias-discovery.js +80 -0
- package/dist/detection/alias-discovery.js.map +1 -0
- package/dist/detection/alias-examination.d.ts +30 -0
- package/dist/detection/alias-examination.js +49 -0
- package/dist/detection/alias-examination.js.map +1 -0
- package/dist/detection/apply-ownership.d.ts +81 -0
- package/dist/detection/apply-ownership.js +232 -0
- package/dist/detection/apply-ownership.js.map +1 -0
- package/dist/detection/basis-advanced.d.ts +11 -0
- package/dist/detection/basis-advanced.js +26 -0
- package/dist/detection/basis-advanced.js.map +1 -0
- package/dist/detection/capture-outcome.d.ts +16 -0
- package/dist/detection/capture-outcome.js +92 -0
- package/dist/detection/capture-outcome.js.map +1 -0
- package/dist/detection/container-membership.d.ts +32 -0
- package/dist/detection/container-membership.js +49 -0
- package/dist/detection/container-membership.js.map +1 -0
- package/dist/detection/detect-cancelled.d.ts +6 -0
- package/dist/detection/detect-cancelled.js +10 -0
- package/dist/detection/detect-cancelled.js.map +1 -0
- package/dist/detection/directory-proof.d.ts +47 -0
- package/dist/detection/directory-proof.js +77 -0
- package/dist/detection/directory-proof.js.map +1 -0
- package/dist/detection/disposition-rows.d.ts +18 -0
- package/dist/detection/disposition-rows.js +29 -0
- package/dist/detection/disposition-rows.js.map +1 -0
- package/dist/detection/dispositions.d.ts +130 -0
- package/dist/detection/dispositions.js +248 -0
- package/dist/detection/dispositions.js.map +1 -0
- package/dist/detection/git-notice.d.ts +88 -0
- package/dist/detection/git-notice.js +444 -0
- package/dist/detection/git-notice.js.map +1 -0
- package/dist/detection/ground-proof.d.ts +130 -0
- package/dist/detection/ground-proof.js +274 -0
- package/dist/detection/ground-proof.js.map +1 -0
- package/dist/detection/ground-reader.d.ts +29 -0
- package/dist/detection/ground-reader.js +102 -0
- package/dist/detection/ground-reader.js.map +1 -0
- package/dist/detection/held-territory.d.ts +51 -0
- package/dist/detection/held-territory.js +205 -0
- package/dist/detection/held-territory.js.map +1 -0
- package/dist/detection/identity-discovery.d.ts +45 -0
- package/dist/detection/identity-discovery.js +287 -0
- package/dist/detection/identity-discovery.js.map +1 -0
- package/dist/detection/maintenance-sweep.d.ts +108 -0
- package/dist/detection/maintenance-sweep.js +325 -0
- package/dist/detection/maintenance-sweep.js.map +1 -0
- package/dist/detection/name-reach.d.ts +12 -0
- package/dist/detection/name-reach.js +28 -0
- package/dist/detection/name-reach.js.map +1 -0
- package/dist/detection/notebook-basis.d.ts +5 -7
- package/dist/detection/notebook-basis.js +6 -7
- package/dist/detection/notebook-basis.js.map +1 -1
- package/dist/detection/owed-selection.d.ts +51 -0
- package/dist/detection/owed-selection.js +169 -0
- package/dist/detection/owed-selection.js.map +1 -0
- package/dist/detection/portable.d.ts +34 -34
- package/dist/detection/portable.js +67 -93
- package/dist/detection/portable.js.map +1 -1
- package/dist/detection/reconciliation-coverage.d.ts +7 -0
- package/dist/detection/reconciliation-coverage.js +16 -0
- package/dist/detection/reconciliation-coverage.js.map +1 -0
- package/dist/detection/repository-publication.d.ts +20 -0
- package/dist/detection/repository-publication.js +79 -0
- package/dist/detection/repository-publication.js.map +1 -0
- package/dist/detection/repository-routes.d.ts +43 -0
- package/dist/detection/repository-routes.js +97 -0
- package/dist/detection/repository-routes.js.map +1 -0
- package/dist/detection/root-examination.d.ts +94 -0
- package/dist/detection/root-examination.js +523 -0
- package/dist/detection/root-examination.js.map +1 -0
- package/dist/detection/runtime.d.ts +131 -64
- package/dist/detection/runtime.js +808 -1103
- package/dist/detection/runtime.js.map +1 -1
- package/dist/detection/scoped-identity-port.d.ts +34 -0
- package/dist/detection/scoped-identity-port.js +81 -0
- package/dist/detection/scoped-identity-port.js.map +1 -0
- package/dist/detection/seal-law.d.ts +66 -0
- package/dist/detection/seal-law.js +116 -0
- package/dist/detection/seal-law.js.map +1 -0
- package/dist/detection/sharing-policy.d.ts +11 -0
- package/dist/detection/sharing-policy.js +32 -0
- package/dist/detection/sharing-policy.js.map +1 -0
- package/dist/detection/thread-database.d.ts +4 -0
- package/dist/detection/thread-database.js +30 -0
- package/dist/detection/thread-database.js.map +1 -0
- package/dist/detection/unreadable.d.ts +11 -0
- package/dist/detection/unreadable.js +9 -0
- package/dist/detection/unreadable.js.map +1 -0
- package/dist/detection/verified-content.d.ts +6 -0
- package/dist/detection/verified-content.js +12 -0
- package/dist/detection/verified-content.js.map +1 -0
- package/dist/detection/walk-law.d.ts +34 -0
- package/dist/detection/walk-law.js +55 -0
- package/dist/detection/walk-law.js.map +1 -0
- package/dist/development/fly-guest.js +2 -1
- package/dist/development/fly-guest.js.map +1 -1
- package/dist/entity-apply-host.d.ts +29 -13
- package/dist/entity-apply-host.js +1426 -461
- package/dist/entity-apply-host.js.map +1 -1
- package/dist/entity-apply-store.d.ts +77 -30
- package/dist/entity-apply-store.js +221 -516
- package/dist/entity-apply-store.js.map +1 -1
- package/dist/entity-record-observability.js +2 -0
- package/dist/entity-record-observability.js.map +1 -1
- package/dist/entity-record-saves.d.ts +20 -0
- package/dist/entity-record-saves.js +91 -0
- package/dist/entity-record-saves.js.map +1 -0
- package/dist/entity-record-store.d.ts +15 -7
- package/dist/entity-record-store.js +57 -117
- package/dist/entity-record-store.js.map +1 -1
- package/dist/files-register-host.d.ts +22 -3
- package/dist/files-register-host.js +70 -31
- package/dist/files-register-host.js.map +1 -1
- package/dist/filesystem.js +3 -2
- package/dist/filesystem.js.map +1 -1
- package/dist/git-binding.d.ts +65 -0
- package/dist/git-binding.js +220 -0
- package/dist/git-binding.js.map +1 -0
- package/dist/git-capture.d.ts +39 -0
- package/dist/git-capture.js +86 -0
- package/dist/git-capture.js.map +1 -0
- package/dist/git-card.d.ts +12 -0
- package/dist/git-card.js +123 -0
- package/dist/git-card.js.map +1 -0
- package/dist/git-checkpoint-construction.d.ts +41 -0
- package/dist/git-checkpoint-construction.js +96 -0
- package/dist/git-checkpoint-construction.js.map +1 -0
- package/dist/git-checkpoint-preparation.d.ts +37 -0
- package/dist/git-checkpoint-preparation.js +145 -0
- package/dist/git-checkpoint-preparation.js.map +1 -0
- package/dist/git-command.d.ts +61 -8
- package/dist/git-command.js +217 -63
- package/dist/git-command.js.map +1 -1
- package/dist/git-configuration.d.ts +40 -0
- package/dist/git-configuration.js +217 -0
- package/dist/git-configuration.js.map +1 -0
- package/dist/git-evidence.d.ts +61 -0
- package/dist/git-evidence.js +181 -0
- package/dist/git-evidence.js.map +1 -0
- package/dist/git-index-entries.d.ts +15 -0
- package/dist/git-index-entries.js +44 -0
- package/dist/git-index-entries.js.map +1 -0
- package/dist/git-index-format.d.ts +35 -0
- package/dist/git-index-format.js +293 -0
- package/dist/git-index-format.js.map +1 -0
- package/dist/git-index-witness.d.ts +33 -0
- package/dist/git-index-witness.js +69 -0
- package/dist/git-index-witness.js.map +1 -0
- package/dist/git-literal-host.d.ts +82 -0
- package/dist/git-literal-host.js +172 -0
- package/dist/git-literal-host.js.map +1 -0
- package/dist/git-literal-read.d.ts +88 -0
- package/dist/git-literal-read.js +170 -0
- package/dist/git-literal-read.js.map +1 -0
- package/dist/git-literal-replay.d.ts +33 -0
- package/dist/git-literal-replay.js +268 -0
- package/dist/git-literal-replay.js.map +1 -0
- package/dist/git-native-file.d.ts +42 -0
- package/dist/git-native-file.js +145 -0
- package/dist/git-native-file.js.map +1 -0
- package/dist/git-native-index.d.ts +21 -0
- package/dist/git-native-index.js +44 -0
- package/dist/git-native-index.js.map +1 -0
- package/dist/git-operation-host.d.ts +48 -0
- package/dist/git-operation-host.js +127 -0
- package/dist/git-operation-host.js.map +1 -0
- package/dist/git-private-index.d.ts +11 -0
- package/dist/git-private-index.js +42 -0
- package/dist/git-private-index.js.map +1 -0
- package/dist/git-private-repository.d.ts +4 -0
- package/dist/git-private-repository.js +69 -0
- package/dist/git-private-repository.js.map +1 -0
- package/dist/git-private-view.d.ts +39 -0
- package/dist/git-private-view.js +162 -0
- package/dist/git-private-view.js.map +1 -0
- package/dist/git-ref-store.d.ts +12 -0
- package/dist/git-ref-store.js +68 -0
- package/dist/git-ref-store.js.map +1 -0
- package/dist/git-registration-host.d.ts +20 -30
- package/dist/git-registration-host.js +86 -249
- package/dist/git-registration-host.js.map +1 -1
- package/dist/git-repository-host.d.ts +148 -22
- package/dist/git-repository-host.js +633 -650
- package/dist/git-repository-host.js.map +1 -1
- package/dist/git-worktree-host.d.ts +2 -0
- package/dist/git-worktree-host.js +16 -0
- package/dist/git-worktree-host.js.map +1 -0
- package/dist/graph-publication.d.ts +75 -0
- package/dist/graph-publication.js +203 -0
- package/dist/graph-publication.js.map +1 -0
- package/dist/ground-basis.d.ts +242 -0
- package/dist/ground-basis.js +1023 -0
- package/dist/ground-basis.js.map +1 -0
- package/dist/ground-checkpoint-worker.d.ts +1 -0
- package/dist/ground-checkpoint-worker.js +84 -0
- package/dist/ground-checkpoint-worker.js.map +1 -0
- package/dist/ground-checkpoints.d.ts +16 -0
- package/dist/ground-checkpoints.js +45 -0
- package/dist/ground-checkpoints.js.map +1 -0
- package/dist/ground-coordination.d.ts +107 -3
- package/dist/ground-coordination.js +249 -24
- package/dist/ground-coordination.js.map +1 -1
- package/dist/ground-database.d.ts +42 -0
- package/dist/ground-database.js +290 -0
- package/dist/ground-database.js.map +1 -0
- package/dist/ground-differences.d.ts +23 -0
- package/dist/ground-differences.js +47 -0
- package/dist/ground-differences.js.map +1 -0
- package/dist/ground-holders.d.ts +4 -0
- package/dist/ground-holders.js +15 -0
- package/dist/ground-holders.js.map +1 -0
- package/dist/ground-initialization-worker.d.ts +1 -0
- package/dist/ground-initialization-worker.js +20 -0
- package/dist/ground-initialization-worker.js.map +1 -0
- package/dist/ground-initialization.d.ts +35 -0
- package/dist/ground-initialization.js +102 -0
- package/dist/ground-initialization.js.map +1 -0
- package/dist/ground-install-saves.d.ts +63 -0
- package/dist/ground-install-saves.js +139 -0
- package/dist/ground-install-saves.js.map +1 -0
- package/dist/ground-inventory-schema.d.ts +18 -0
- package/dist/ground-inventory-schema.js +168 -0
- package/dist/ground-inventory-schema.js.map +1 -0
- package/dist/ground-profile.d.ts +7 -0
- package/dist/ground-profile.js +52 -0
- package/dist/ground-profile.js.map +1 -0
- package/dist/ground-root-index.d.ts +2 -1
- package/dist/ground-root-index.js +16 -14
- package/dist/ground-root-index.js.map +1 -1
- package/dist/ground-row.d.ts +62 -0
- package/dist/ground-row.js +70 -0
- package/dist/ground-row.js.map +1 -0
- package/dist/ground-save-ops.d.ts +44 -0
- package/dist/ground-save-ops.js +41 -0
- package/dist/ground-save-ops.js.map +1 -0
- package/dist/ground-saver-worker.d.ts +1 -0
- package/dist/ground-saver-worker.js +156 -0
- package/dist/ground-saver-worker.js.map +1 -0
- package/dist/ground-saver.d.ts +75 -0
- package/dist/ground-saver.js +216 -0
- package/dist/ground-saver.js.map +1 -0
- package/dist/ground-store.d.ts +84 -0
- package/dist/ground-store.js +473 -0
- package/dist/ground-store.js.map +1 -0
- package/dist/ground-territory.d.ts +130 -0
- package/dist/ground-territory.js +511 -0
- package/dist/ground-territory.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/dist/installation/ownership.d.ts +0 -2
- package/dist/installation/ownership.js +3 -15
- package/dist/installation/ownership.js.map +1 -1
- package/dist/machine-host.d.ts +3 -2
- package/dist/machine-host.js +28 -16
- package/dist/machine-host.js.map +1 -1
- package/dist/materialized-graph.d.ts +7 -7
- package/dist/materialized-graph.js +11 -23
- package/dist/materialized-graph.js.map +1 -1
- package/dist/module-thread.d.ts +9 -0
- package/dist/module-thread.js +10 -0
- package/dist/module-thread.js.map +1 -0
- package/dist/native/fsevents-stream.node +0 -0
- package/dist/physical-path-witness.d.ts +64 -0
- package/dist/physical-path-witness.js +168 -0
- package/dist/physical-path-witness.js.map +1 -0
- package/dist/register-upload-fusion.d.ts +5 -4
- package/dist/register-upload-fusion.js +9 -6
- package/dist/register-upload-fusion.js.map +1 -1
- package/dist/registry-graph.d.ts +3 -2
- package/dist/registry-graph.js +9 -6
- package/dist/registry-graph.js.map +1 -1
- package/dist/registry-page-cache.d.ts +5 -2
- package/dist/registry-page-cache.js.map +1 -1
- package/dist/repository-identity-steps.d.ts +5 -0
- package/dist/repository-identity-steps.js +33 -0
- package/dist/repository-identity-steps.js.map +1 -0
- package/dist/runtime-node-flags.d.ts +10 -0
- package/dist/runtime-node-flags.js +11 -0
- package/dist/runtime-node-flags.js.map +1 -0
- package/dist/service/adapter.d.ts +1 -1
- package/dist/service/adapter.js +1 -1
- package/dist/service/adapter.js.map +1 -1
- package/dist/service/cli.js +16 -20
- package/dist/service/cli.js.map +1 -1
- package/dist/service/control.d.ts +2 -2
- package/dist/service/keepalive.d.ts +4 -11
- package/dist/service/keepalive.js +65 -118
- package/dist/service/keepalive.js.map +1 -1
- package/dist/service/policy.d.ts +36 -0
- package/dist/service/policy.js +25 -0
- package/dist/service/policy.js.map +1 -0
- package/dist/service/portable.d.ts +1 -1
- package/dist/service/portable.js +1 -1
- package/dist/service/portable.js.map +1 -1
- package/dist/service/recovery.d.ts +10 -9
- package/dist/service/recovery.js +29 -19
- package/dist/service/recovery.js.map +1 -1
- package/dist/service/windows-action.d.ts +5 -3
- package/dist/service/windows-action.js +6 -9
- package/dist/service/windows-action.js.map +1 -1
- package/dist/service/windows-task.js +5 -5
- package/dist/service/windows-task.js.map +1 -1
- package/dist/sharing-admission.d.ts +17 -0
- package/dist/sharing-admission.js +128 -0
- package/dist/sharing-admission.js.map +1 -0
- package/dist/snapshot-delivery-baseline.d.ts +12 -3
- package/dist/snapshot-delivery-baseline.js +41 -42
- package/dist/snapshot-delivery-baseline.js.map +1 -1
- package/dist/source-proof.d.ts +36 -0
- package/dist/source-proof.js +70 -0
- package/dist/source-proof.js.map +1 -0
- package/dist/source-signature.d.ts +56 -0
- package/dist/source-signature.js +56 -0
- package/dist/source-signature.js.map +1 -0
- package/dist/source-witness.d.ts +15 -0
- package/dist/source-witness.js +29 -0
- package/dist/source-witness.js.map +1 -0
- package/dist/sqlite-durability.d.ts +31 -0
- package/dist/sqlite-durability.js +28 -0
- package/dist/sqlite-durability.js.map +1 -0
- package/dist/sqlite.d.ts +8 -2
- package/dist/sqlite.js +27 -4
- package/dist/sqlite.js.map +1 -1
- package/dist/sync-address.d.ts +19 -0
- package/dist/sync-address.js +52 -0
- package/dist/sync-address.js.map +1 -0
- package/dist/sync-setting.d.ts +15 -0
- package/dist/sync-setting.js +13 -0
- package/dist/sync-setting.js.map +1 -1
- package/dist/turns.d.ts +42 -0
- package/dist/turns.js +112 -0
- package/dist/turns.js.map +1 -0
- package/dist/updates/bootstrap.d.ts +53 -7
- package/dist/updates/bootstrap.js +224 -137
- package/dist/updates/bootstrap.js.map +1 -1
- package/dist/updates/controller.d.ts +8 -0
- package/dist/updates/controller.js +27 -3
- package/dist/updates/controller.js.map +1 -1
- package/dist/updates/store.d.ts +3 -0
- package/dist/updates/store.js +12 -0
- package/dist/updates/store.js.map +1 -1
- package/dist/user-ground-host.d.ts +364 -69
- package/dist/user-ground-host.js +5231 -3366
- package/dist/user-ground-host.js.map +1 -1
- package/dist/watching/fsevents.d.ts +52 -1
- package/dist/watching/fsevents.js +60 -25
- package/dist/watching/fsevents.js.map +1 -1
- package/dist/watching/host.d.ts +129 -5
- package/dist/watching/host.js +433 -80
- package/dist/watching/host.js.map +1 -1
- package/dist/watching/index.d.ts +1 -1
- package/dist/wire-binary.d.ts +3 -2
- package/dist/wire-binary.js +10 -8
- package/dist/wire-binary.js.map +1 -1
- package/dist/wire-client.d.ts +3 -4
- package/dist/wire-client.js +18 -44
- package/dist/wire-client.js.map +1 -1
- package/dist/wire-outbox.d.ts +34 -0
- package/dist/wire-outbox.js +127 -0
- package/dist/wire-outbox.js.map +1 -0
- package/dist/workspace-host.d.ts +4 -0
- package/dist/workspace-host.js +12 -1
- package/dist/workspace-host.js.map +1 -1
- package/examinations/fixtures/private-wire-authority.js +133 -10
- package/npm-shrinkwrap.json +43 -56
- package/package.json +26 -13
package/dist/turns.js
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One main-thread dispatcher for the rails' ready continuations: Detect,
|
|
3
|
+
* Send, Receive, Apply and cache maintenance. Each activation runs the oldest
|
|
4
|
+
* queued chunk, then returns to the event loop before the next, so ready work
|
|
5
|
+
* from several rails never runs back to back in one check phase. Asynchronous
|
|
6
|
+
* work never occupies it: a chunk that needs I/O starts that I/O and ends, and
|
|
7
|
+
* the completion queues the next chunk.
|
|
8
|
+
*
|
|
9
|
+
* It orders only these continuations. I/O callbacks, native completions,
|
|
10
|
+
* promise continuations, garbage collection and unrelated callbacks still run
|
|
11
|
+
* around it, and a chunk is only as short as the work its owner put in it.
|
|
12
|
+
*/
|
|
13
|
+
import { eachStep } from "@amalgm/live";
|
|
14
|
+
const turns = [];
|
|
15
|
+
/** Synchronous work one activation may run before a long preparation takes
|
|
16
|
+
* a later activation at its next boundary: well inside the 10 ms stall
|
|
17
|
+
* ceiling, so the step past a boundary still fits. */
|
|
18
|
+
const TURN_BUDGET_MS = 4;
|
|
19
|
+
let activation = 0;
|
|
20
|
+
function runTurn() {
|
|
21
|
+
const chunk = turns.shift();
|
|
22
|
+
if (turns.length > 0)
|
|
23
|
+
setImmediate(runTurn);
|
|
24
|
+
activation = performance.now();
|
|
25
|
+
chunk();
|
|
26
|
+
}
|
|
27
|
+
/** Run `chunk` in a later dispatcher activation; never inline. */
|
|
28
|
+
export function queueTurn(chunk) {
|
|
29
|
+
turns.push(chunk);
|
|
30
|
+
// An immediate queued from an I/O callback runs before this iteration's
|
|
31
|
+
// timers, so the first chunk hops once more to wait a full turn like the rest.
|
|
32
|
+
if (turns.length === 1)
|
|
33
|
+
setImmediate(() => setImmediate(runTurn));
|
|
34
|
+
}
|
|
35
|
+
/** Resume the caller in its own activation: pending I/O, timers and wire
|
|
36
|
+
* frames run first. */
|
|
37
|
+
export function awaitTurn() {
|
|
38
|
+
return new Promise((resolve) => queueTurn(resolve));
|
|
39
|
+
}
|
|
40
|
+
/** An already-valid boundary in a long preparation: continue while this
|
|
41
|
+
* activation is within its budget, else resume in a later one. Work resumed
|
|
42
|
+
* outside the dispatcher counts from the last activation, so it joins the
|
|
43
|
+
* dispatcher at its first boundary. */
|
|
44
|
+
export async function turnBoundary() {
|
|
45
|
+
if (performance.now() - activation >= TURN_BUDGET_MS)
|
|
46
|
+
await awaitTurn();
|
|
47
|
+
}
|
|
48
|
+
/** Visit every item of a long synchronous pass in order, taking a later
|
|
49
|
+
* activation once this one has spent its budget. */
|
|
50
|
+
export function eachInTurns(items, visit) {
|
|
51
|
+
return finishStepsInTurns(eachStep(items, visit));
|
|
52
|
+
}
|
|
53
|
+
/** Every item's image, in order, as eachInTurns visits them. */
|
|
54
|
+
export async function mapInTurns(items, image) {
|
|
55
|
+
const images = [];
|
|
56
|
+
await eachInTurns(items, item => { images.push(image(item)); });
|
|
57
|
+
return images;
|
|
58
|
+
}
|
|
59
|
+
/** Start each item's effect in order, taking a later activation once this
|
|
60
|
+
* one has spent its budget, and answer every result in order once every
|
|
61
|
+
* started effect has settled; the first failure in order fails the whole.
|
|
62
|
+
* An effect's synchronous preparation counts against the activation that
|
|
63
|
+
* starts it, so no number of items starts in one. */
|
|
64
|
+
export async function settleInTurns(items, start) {
|
|
65
|
+
const outcomes = [];
|
|
66
|
+
for (const item of items) {
|
|
67
|
+
await turnBoundary();
|
|
68
|
+
// Observed as it starts: a failure while later effects start is never unhandled.
|
|
69
|
+
outcomes.push(start(item).then((value) => ({ status: "fulfilled", value }), (reason) => ({ status: "rejected", reason })));
|
|
70
|
+
}
|
|
71
|
+
const settled = await Promise.all(outcomes);
|
|
72
|
+
const failure = settled.find((outcome) => outcome.status === "rejected");
|
|
73
|
+
if (failure)
|
|
74
|
+
throw failure.reason;
|
|
75
|
+
return settled.map(outcome => outcome.value);
|
|
76
|
+
}
|
|
77
|
+
/** The parts joined in order into one buffer, one part copied per step. */
|
|
78
|
+
export async function concatInTurns(parts) {
|
|
79
|
+
let length = 0;
|
|
80
|
+
for (const part of parts)
|
|
81
|
+
length += part.byteLength;
|
|
82
|
+
const joined = Buffer.allocUnsafe(length);
|
|
83
|
+
let at = 0;
|
|
84
|
+
for (const part of parts) {
|
|
85
|
+
joined.set(part, at);
|
|
86
|
+
at += part.byteLength;
|
|
87
|
+
await turnBoundary();
|
|
88
|
+
}
|
|
89
|
+
return joined;
|
|
90
|
+
}
|
|
91
|
+
/** Live's steps on the main thread, taking a later activation at a boundary
|
|
92
|
+
* once this one has spent its budget. */
|
|
93
|
+
export async function finishStepsInTurns(steps) {
|
|
94
|
+
for (let next = steps.next();; next = steps.next()) {
|
|
95
|
+
if (next.done)
|
|
96
|
+
return next.value;
|
|
97
|
+
await turnBoundary();
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
/** A host effect a rail awaits. Its answer or failure reaches the rail in a
|
|
101
|
+
* dispatcher activation, never inline in the callback that completed the I/O. */
|
|
102
|
+
export function resumeInTurn(effect) {
|
|
103
|
+
return async (...args) => {
|
|
104
|
+
try {
|
|
105
|
+
return await effect(...args);
|
|
106
|
+
}
|
|
107
|
+
finally {
|
|
108
|
+
await awaitTurn();
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=turns.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"turns.js","sourceRoot":"","sources":["../src/turns.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG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G,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAC1C,IAAI,EAAE,GAAG,CAAC,CAAC;IACX,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACrB,EAAE,IAAI,IAAI,CAAC,UAAU,CAAC;QACtB,MAAM,YAAY,EAAE,CAAC;IACvB,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;yCACyC;AACzC,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAI,KAAe;IACzD,KAAK,IAAI,IAAI,GAAG,KAAK,CAAC,IAAI,EAAE,GAAI,IAAI,GAAG,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC;QACpD,IAAI,IAAI,CAAC,IAAI;YAAE,OAAO,IAAI,CAAC,KAAK,CAAC;QACjC,MAAM,YAAY,EAAE,CAAC;IACvB,CAAC;AACH,CAAC;AAED;iFACiF;AACjF,MAAM,UAAU,YAAY,CAC1B,MAAkC;IAElC,OAAO,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE;QACvB,IAAI,CAAC;YACH,OAAO,MAAM,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;QAC/B,CAAC;gBAAS,CAAC;YACT,MAAM,SAAS,EAAE,CAAC;QACpB,CAAC;IACH,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,15 +1,30 @@
|
|
|
1
|
+
/** Stable installation-owned process effect. This compiled module is copied
|
|
2
|
+
* outside immutable package generations, so every runtime import is a Node
|
|
3
|
+
* builtin. Core's controller writes release decisions and recovery commands;
|
|
4
|
+
* this launcher only reserves and performs those already-declared effects.
|
|
5
|
+
* Because it can import nothing else, it also owns the builtin-only
|
|
6
|
+
* supervision rules the keepalive controller reuses: backoff and liveness. */
|
|
7
|
+
import { type ChildProcess } from 'node:child_process';
|
|
8
|
+
/** Raised with every change to launcher behavior. Controllers install a newer
|
|
9
|
+
* launcher file; a running launcher that finds a newer file exits at its next
|
|
10
|
+
* controller boundary so its OS owner starts the new one. */
|
|
11
|
+
export declare const BOOTSTRAP_REVISION = 2;
|
|
12
|
+
/** The exit status (EX_TEMPFAIL) that asks the OS owner for the new launcher. */
|
|
13
|
+
export declare const BOOTSTRAP_UPGRADED_EXIT = 75;
|
|
1
14
|
export interface LaunchCommand {
|
|
2
15
|
node: string;
|
|
3
16
|
bin: string;
|
|
4
17
|
args: string[];
|
|
5
18
|
}
|
|
6
19
|
export interface LaunchLimits {
|
|
20
|
+
/** Read only by revision-1 launchers, which park after this many launches. */
|
|
7
21
|
maxAttempts: number;
|
|
8
22
|
initialDelayMs: number;
|
|
9
23
|
maxDelayMs: number;
|
|
10
24
|
stableAfterMs: number;
|
|
11
25
|
readyTimeoutMs: number;
|
|
12
26
|
healthIntervalMs: number;
|
|
27
|
+
/** Read only by revision-1 launchers, which ignore a later answer. */
|
|
13
28
|
healthTimeoutMs: number;
|
|
14
29
|
maxHealthFailures: number;
|
|
15
30
|
stopGraceMs: number;
|
|
@@ -27,8 +42,9 @@ export interface LaunchState extends LaunchLimits {
|
|
|
27
42
|
attempts: number;
|
|
28
43
|
}
|
|
29
44
|
export declare function validateLaunchState(value: unknown): LaunchState;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
45
|
+
/** Install writes the first launch. Every later install and every controller
|
|
46
|
+
* start brings the launcher file and its limits forward; neither changes the
|
|
47
|
+
* selected release, an in-flight handover or the current backoff. */
|
|
32
48
|
export declare function initializeBootstrap(input: {
|
|
33
49
|
serviceDir: string;
|
|
34
50
|
controllerLease: string;
|
|
@@ -40,9 +56,39 @@ export declare function initializeBootstrap(input: {
|
|
|
40
56
|
args: string[];
|
|
41
57
|
current: LaunchCommand;
|
|
42
58
|
};
|
|
43
|
-
/**
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
59
|
+
/** A running controller applies its policy to an installed launcher. */
|
|
60
|
+
export declare function refreshBootstrap(serviceDir: string, limits: LaunchLimits): void;
|
|
61
|
+
/** A missing launcher is revision 0; the first copied launcher carried no mark. */
|
|
62
|
+
export declare function bootstrapRevision(file: string): number;
|
|
63
|
+
/** Consecutive unhealthy starts double the wait before the next one until it
|
|
64
|
+
* reaches the ceiling. There is no last attempt. */
|
|
65
|
+
export declare function backoffMs(limits: {
|
|
66
|
+
initialDelayMs: number;
|
|
67
|
+
maxDelayMs: number;
|
|
68
|
+
}, attempts: number): number;
|
|
69
|
+
/** Operator retry cuts the current backoff short. It never selects a failed
|
|
70
|
+
* candidate or changes Core's policy or quarantine. */
|
|
71
|
+
export declare function retryBootstrap(databaseFile: string): void;
|
|
72
|
+
/** One launcher per installation keeps one controller running while the
|
|
73
|
+
* machine is on. It exits only when its OS owner stops it (0), when the
|
|
74
|
+
* operator stops the controller (0), or when a newer launcher is installed
|
|
75
|
+
* (75); it relaunches every other controller exit after a capped backoff. */
|
|
48
76
|
export declare function runBootstrap(databaseFile: string, controllerLeaseFile: string): Promise<number>;
|
|
77
|
+
export interface LivenessLimits {
|
|
78
|
+
intervalMs: number;
|
|
79
|
+
misses: number;
|
|
80
|
+
readyDeadlineMs: number;
|
|
81
|
+
stableAfterMs: number;
|
|
82
|
+
}
|
|
83
|
+
/** Silence, not slowness, is death. A supervisor asks its child every
|
|
84
|
+
* interval; an answer to any outstanding question, however late, proves the
|
|
85
|
+
* child alive and clears every miss. The child is dead only after `misses`
|
|
86
|
+
* consecutive checks found it silent, and a check counts only when it ran on
|
|
87
|
+
* time: a supervisor that was itself suspended or starved saw nothing. Misses
|
|
88
|
+
* count from the child's first sign of life, so a child that answers only once
|
|
89
|
+
* ready is bounded by its ready deadline until then. Returns the unwatch. */
|
|
90
|
+
export declare function watchLiveness(child: ChildProcess, limits: LivenessLimits, effects: {
|
|
91
|
+
ready?(): void;
|
|
92
|
+
stable(): void;
|
|
93
|
+
failed(reason: string): void;
|
|
94
|
+
}): () => void;
|