@amalgm/shell 0.1.164-preview.41762776698 → 0.1.164-preview.44386772850
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 +359 -235
- package/README.md +18 -0
- package/dist/accepted-fold.d.ts +51 -0
- package/dist/accepted-fold.js +106 -0
- package/dist/accepted-fold.js.map +1 -0
- package/dist/accepted-tail.d.ts +19 -9
- package/dist/accepted-tail.js +28 -11
- package/dist/accepted-tail.js.map +1 -1
- package/dist/accepted-view.d.ts +27 -0
- package/dist/accepted-view.js +8 -0
- package/dist/accepted-view.js.map +1 -0
- package/dist/apply-attempt-memory.d.ts +13 -0
- package/dist/apply-attempt-memory.js +26 -0
- package/dist/apply-attempt-memory.js.map +1 -0
- package/dist/apply-control.d.ts +85 -0
- package/dist/apply-control.js +131 -0
- package/dist/apply-control.js.map +1 -0
- package/dist/apply-displaced-tree.d.ts +63 -0
- package/dist/apply-displaced-tree.js +148 -0
- package/dist/apply-displaced-tree.js.map +1 -0
- package/dist/apply-durability.d.ts +33 -0
- package/dist/apply-durability.js +72 -0
- package/dist/apply-durability.js.map +1 -0
- package/dist/apply-enter-build.d.ts +91 -0
- package/dist/apply-enter-build.js +145 -0
- package/dist/apply-enter-build.js.map +1 -0
- package/dist/apply-enter-plan.d.ts +79 -0
- package/dist/apply-enter-plan.js +148 -0
- package/dist/apply-enter-plan.js.map +1 -0
- package/dist/apply-fingerprint.d.ts +39 -0
- package/dist/apply-fingerprint.js +84 -0
- package/dist/apply-fingerprint.js.map +1 -0
- package/dist/apply-git-held.d.ts +29 -0
- package/dist/apply-git-held.js +184 -0
- package/dist/apply-git-held.js.map +1 -0
- package/dist/apply-git-storage.d.ts +38 -0
- package/dist/apply-git-storage.js +110 -0
- package/dist/apply-git-storage.js.map +1 -0
- package/dist/apply-kept.d.ts +42 -0
- package/dist/apply-kept.js +135 -0
- package/dist/apply-kept.js.map +1 -0
- package/dist/apply-local-work.d.ts +41 -0
- package/dist/apply-local-work.js +72 -0
- package/dist/apply-local-work.js.map +1 -0
- package/dist/apply-map.d.ts +116 -0
- package/dist/apply-map.js +383 -0
- package/dist/apply-map.js.map +1 -0
- package/dist/apply-showing.d.ts +104 -0
- package/dist/apply-showing.js +236 -0
- package/dist/apply-showing.js.map +1 -0
- package/dist/apply-shown-again.d.ts +28 -0
- package/dist/apply-shown-again.js +81 -0
- package/dist/apply-shown-again.js.map +1 -0
- package/dist/apply-spelling.d.ts +35 -0
- package/dist/apply-spelling.js +79 -0
- package/dist/apply-spelling.js.map +1 -0
- package/dist/apply-trash-keep.d.ts +96 -0
- package/dist/apply-trash-keep.js +194 -0
- package/dist/apply-trash-keep.js.map +1 -0
- package/dist/apply-window-cargo.d.ts +54 -0
- package/dist/apply-window-cargo.js +219 -0
- package/dist/apply-window-cargo.js.map +1 -0
- package/dist/apply-window-ground.d.ts +130 -0
- package/dist/apply-window-ground.js +324 -0
- package/dist/apply-window-ground.js.map +1 -0
- package/dist/apply-window-host.d.ts +136 -0
- package/dist/apply-window-host.js +1842 -0
- package/dist/apply-window-host.js.map +1 -0
- package/dist/apply-window-lane.d.ts +30 -0
- package/dist/apply-window-lane.js +311 -0
- package/dist/apply-window-lane.js.map +1 -0
- package/dist/apply-window-line.d.ts +31 -0
- package/dist/apply-window-line.js +150 -0
- package/dist/apply-window-line.js.map +1 -0
- package/dist/apply-window-recovery.d.ts +5 -0
- package/dist/apply-window-recovery.js +72 -0
- package/dist/apply-window-recovery.js.map +1 -0
- package/dist/apply-window-reveal.d.ts +22 -0
- package/dist/apply-window-reveal.js +98 -0
- package/dist/apply-window-reveal.js.map +1 -0
- package/dist/apply-window-rows.d.ts +144 -0
- package/dist/apply-window-rows.js +178 -0
- package/dist/apply-window-rows.js.map +1 -0
- package/dist/apply-window-saves.d.ts +224 -0
- package/dist/apply-window-saves.js +674 -0
- package/dist/apply-window-saves.js.map +1 -0
- package/dist/apply-window-store.d.ts +126 -0
- package/dist/apply-window-store.js +312 -0
- package/dist/apply-window-store.js.map +1 -0
- package/dist/apply-window-verify.d.ts +65 -0
- package/dist/apply-window-verify.js +195 -0
- package/dist/apply-window-verify.js.map +1 -0
- package/dist/authority-binding.d.ts +1 -24
- package/dist/authority-binding.js +44 -9
- package/dist/authority-binding.js.map +1 -1
- package/dist/background-error.d.ts +4 -0
- package/dist/background-error.js +15 -0
- package/dist/background-error.js.map +1 -0
- package/dist/baseline-content.d.ts +12 -0
- package/dist/baseline-content.js +12 -0
- package/dist/baseline-content.js.map +1 -0
- package/dist/billing/cli.d.ts +18 -0
- package/dist/billing/cli.js +276 -0
- package/dist/billing/cli.js.map +1 -0
- package/dist/billing/mount.d.ts +12 -0
- package/dist/billing/mount.js +34 -0
- package/dist/billing/mount.js.map +1 -0
- package/dist/billing/tools.d.ts +57 -0
- package/dist/billing/tools.js +141 -0
- package/dist/billing/tools.js.map +1 -0
- package/dist/boot-identity.d.ts +1 -0
- package/dist/boot-identity.js +39 -0
- package/dist/boot-identity.js.map +1 -0
- package/dist/browser-host.d.ts +4 -3
- package/dist/browser-host.js +29 -14
- package/dist/browser-host.js.map +1 -1
- package/dist/captured-rows.d.ts +33 -0
- package/dist/captured-rows.js +45 -0
- package/dist/captured-rows.js.map +1 -0
- package/dist/cargo-group.d.ts +31 -17
- package/dist/cargo-group.js +78 -29
- package/dist/cargo-group.js.map +1 -1
- package/dist/cargo-journal.d.ts +45 -0
- package/dist/cargo-journal.js +130 -0
- package/dist/cargo-journal.js.map +1 -0
- package/dist/chat-composition.d.ts +4 -1
- package/dist/chat-composition.js +4 -1
- package/dist/chat-composition.js.map +1 -1
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +129 -55
- package/dist/cli.js.map +1 -1
- package/dist/construct-apply-host.d.ts +8 -7
- package/dist/construct-apply-host.js +20 -8
- package/dist/construct-apply-host.js.map +1 -1
- package/dist/construct-door.d.ts +2 -0
- package/dist/construct-door.js +4 -3
- package/dist/construct-door.js.map +1 -1
- package/dist/construct-ledger.d.ts +2 -0
- package/dist/construct-ledger.js +13 -1
- package/dist/construct-ledger.js.map +1 -1
- package/dist/content-cache-collection.d.ts +11 -4
- package/dist/content-cache-collection.js +74 -62
- package/dist/content-cache-collection.js.map +1 -1
- package/dist/content-cache-fences.d.ts +27 -0
- package/dist/content-cache-fences.js +116 -0
- package/dist/content-cache-fences.js.map +1 -0
- package/dist/content-cache-host.d.ts +163 -91
- package/dist/content-cache-host.js +531 -354
- package/dist/content-cache-host.js.map +1 -1
- package/dist/content-cache-index.d.ts +36 -7
- package/dist/content-cache-index.js +79 -32
- package/dist/content-cache-index.js.map +1 -1
- package/dist/content-cache-namespace.d.ts +28 -34
- package/dist/content-cache-namespace.js +85 -99
- package/dist/content-cache-namespace.js.map +1 -1
- package/dist/content-cache-partials.d.ts +37 -0
- package/dist/content-cache-partials.js +79 -0
- package/dist/content-cache-partials.js.map +1 -0
- package/dist/content-cache-retention.d.ts +27 -12
- package/dist/content-cache-retention.js +143 -132
- package/dist/content-cache-retention.js.map +1 -1
- package/dist/content-capture-pool.d.ts +70 -83
- package/dist/content-capture-pool.js +112 -82
- package/dist/content-capture-pool.js.map +1 -1
- package/dist/content-capture-worker.d.ts +3 -4
- package/dist/content-capture-worker.js +28 -35
- package/dist/content-capture-worker.js.map +1 -1
- package/dist/content-clock.d.ts +54 -28
- package/dist/content-clock.js +345 -102
- package/dist/content-clock.js.map +1 -1
- package/dist/content-direct.d.ts +0 -2
- package/dist/content-direct.js +53 -31
- package/dist/content-direct.js.map +1 -1
- package/dist/content-qualification.d.ts +72 -0
- package/dist/content-qualification.js +129 -0
- package/dist/content-qualification.js.map +1 -0
- package/dist/credentials-host.js +3 -2
- package/dist/credentials-host.js.map +1 -1
- package/dist/derived-relocation.d.ts +31 -0
- package/dist/derived-relocation.js +71 -0
- package/dist/derived-relocation.js.map +1 -0
- package/dist/detection/accepted-result.js +3 -3
- package/dist/detection/accepted-result.js.map +1 -1
- package/dist/detection/admission-save.d.ts +25 -14
- package/dist/detection/admission-save.js +34 -22
- package/dist/detection/admission-save.js.map +1 -1
- package/dist/detection/admission-units.d.ts +32 -20
- package/dist/detection/admission-units.js +230 -97
- package/dist/detection/admission-units.js.map +1 -1
- package/dist/detection/alias-examination.d.ts +5 -2
- package/dist/detection/alias-examination.js +15 -3
- package/dist/detection/alias-examination.js.map +1 -1
- package/dist/detection/apply-ownership.d.ts +70 -44
- package/dist/detection/apply-ownership.js +140 -132
- package/dist/detection/apply-ownership.js.map +1 -1
- package/dist/detection/basis-advanced.d.ts +4 -0
- package/dist/detection/basis-advanced.js +9 -0
- package/dist/detection/basis-advanced.js.map +1 -1
- package/dist/detection/cached-replay.d.ts +38 -0
- package/dist/detection/cached-replay.js +66 -0
- package/dist/detection/cached-replay.js.map +1 -0
- package/dist/detection/capture-outcome.js +33 -36
- package/dist/detection/capture-outcome.js.map +1 -1
- package/dist/detection/container-membership.d.ts +13 -25
- package/dist/detection/container-membership.js +24 -28
- package/dist/detection/container-membership.js.map +1 -1
- package/dist/detection/directory-proof.js +1 -1
- package/dist/detection/directory-proof.js.map +1 -1
- package/dist/detection/dispositions.d.ts +10 -33
- package/dist/detection/dispositions.js +27 -91
- package/dist/detection/dispositions.js.map +1 -1
- package/dist/detection/examinations.d.ts +33 -0
- package/dist/detection/examinations.js +50 -0
- package/dist/detection/examinations.js.map +1 -0
- package/dist/detection/ground-proof.d.ts +35 -11
- package/dist/detection/ground-proof.js +111 -52
- package/dist/detection/ground-proof.js.map +1 -1
- package/dist/detection/ground-reader.d.ts +10 -10
- package/dist/detection/ground-reader.js +19 -42
- package/dist/detection/ground-reader.js.map +1 -1
- package/dist/detection/identity-discovery.d.ts +1 -1
- package/dist/detection/identity-discovery.js +27 -35
- package/dist/detection/identity-discovery.js.map +1 -1
- package/dist/detection/maintenance-sweep.d.ts +5 -2
- package/dist/detection/maintenance-sweep.js +15 -5
- package/dist/detection/maintenance-sweep.js.map +1 -1
- package/dist/detection/notebook-basis.d.ts +6 -3
- package/dist/detection/notebook-basis.js +8 -5
- package/dist/detection/notebook-basis.js.map +1 -1
- package/dist/detection/owed-examinations.d.ts +22 -0
- package/dist/detection/owed-examinations.js +54 -0
- package/dist/detection/owed-examinations.js.map +1 -0
- package/dist/detection/owed-selection.d.ts +23 -20
- package/dist/detection/owed-selection.js +56 -43
- package/dist/detection/owed-selection.js.map +1 -1
- package/dist/detection/policy-owed.d.ts +17 -0
- package/dist/detection/policy-owed.js +33 -0
- package/dist/detection/policy-owed.js.map +1 -0
- package/dist/detection/repository-state.d.ts +44 -0
- package/dist/detection/repository-state.js +95 -0
- package/dist/detection/repository-state.js.map +1 -0
- package/dist/detection/reveal-save.d.ts +17 -0
- package/dist/detection/reveal-save.js +15 -0
- package/dist/detection/reveal-save.js.map +1 -0
- package/dist/detection/root-examination.d.ts +25 -13
- package/dist/detection/root-examination.js +273 -220
- package/dist/detection/root-examination.js.map +1 -1
- package/dist/detection/root-walk.d.ts +191 -0
- package/dist/detection/root-walk.js +1383 -0
- package/dist/detection/root-walk.js.map +1 -0
- package/dist/detection/runtime.d.ts +41 -53
- package/dist/detection/runtime.js +285 -345
- package/dist/detection/runtime.js.map +1 -1
- package/dist/detection/scope-frame.d.ts +82 -0
- package/dist/detection/scope-frame.js +183 -0
- package/dist/detection/scope-frame.js.map +1 -0
- package/dist/detection/scoped-identity-port.d.ts +11 -10
- package/dist/detection/scoped-identity-port.js +18 -25
- package/dist/detection/scoped-identity-port.js.map +1 -1
- package/dist/detection/sharing-policy.d.ts +14 -6
- package/dist/detection/sharing-policy.js +13 -7
- package/dist/detection/sharing-policy.js.map +1 -1
- package/dist/detection/spelled-lookup.d.ts +20 -0
- package/dist/detection/spelled-lookup.js +83 -0
- package/dist/detection/spelled-lookup.js.map +1 -0
- package/dist/detection/unread-content.d.ts +20 -0
- package/dist/detection/unread-content.js +33 -0
- package/dist/detection/unread-content.js.map +1 -0
- package/dist/detection/walk-law.d.ts +11 -21
- package/dist/detection/walk-law.js +14 -22
- package/dist/detection/walk-law.js.map +1 -1
- package/dist/detection/walked-roots.d.ts +17 -0
- package/dist/detection/walked-roots.js +27 -0
- package/dist/detection/walked-roots.js.map +1 -0
- package/dist/detection/withheld.d.ts +100 -0
- package/dist/detection/withheld.js +118 -0
- package/dist/detection/withheld.js.map +1 -0
- package/dist/development/profile.js +1 -1
- package/dist/development/profile.js.map +1 -1
- package/dist/drive/cloud-files/asks.d.ts +7 -0
- package/dist/drive/cloud-files/asks.js +181 -0
- package/dist/drive/cloud-files/asks.js.map +1 -0
- package/dist/drive/cloud-files/binding.d.ts +111 -0
- package/dist/drive/cloud-files/binding.js +31 -0
- package/dist/drive/cloud-files/binding.js.map +1 -0
- package/dist/drive/cloud-files/contents.d.ts +82 -0
- package/dist/drive/cloud-files/contents.js +204 -0
- package/dist/drive/cloud-files/contents.js.map +1 -0
- package/dist/drive/cloud-files/door.d.ts +11 -0
- package/dist/drive/cloud-files/door.js +118 -0
- package/dist/drive/cloud-files/door.js.map +1 -0
- package/dist/drive/cloud-files/paths.d.ts +42 -0
- package/dist/drive/cloud-files/paths.js +93 -0
- package/dist/drive/cloud-files/paths.js.map +1 -0
- package/dist/drive/cloud-files/populated.d.ts +15 -0
- package/dist/drive/cloud-files/populated.js +38 -0
- package/dist/drive/cloud-files/populated.js.map +1 -0
- package/dist/drive/cloud-files/reconcile.d.ts +17 -0
- package/dist/drive/cloud-files/reconcile.js +478 -0
- package/dist/drive/cloud-files/reconcile.js.map +1 -0
- package/dist/drive/cloud-files/sync-root.d.ts +34 -0
- package/dist/drive/cloud-files/sync-root.js +68 -0
- package/dist/drive/cloud-files/sync-root.js.map +1 -0
- package/dist/drive/cloud-files/turns.d.ts +9 -0
- package/dist/drive/cloud-files/turns.js +58 -0
- package/dist/drive/cloud-files/turns.js.map +1 -0
- package/dist/drive/cloud-files/writes.d.ts +27 -0
- package/dist/drive/cloud-files/writes.js +436 -0
- package/dist/drive/cloud-files/writes.js.map +1 -0
- package/dist/drive/computer.d.ts +19 -0
- package/dist/drive/computer.js +61 -0
- package/dist/drive/computer.js.map +1 -0
- package/dist/drive/fuse-opens.d.ts +32 -0
- package/dist/drive/fuse-opens.js +110 -0
- package/dist/drive/fuse-opens.js.map +1 -0
- package/dist/drive/fuse.d.ts +36 -0
- package/dist/drive/fuse.js +102 -0
- package/dist/drive/fuse.js.map +1 -0
- package/dist/drive/kept.d.ts +78 -0
- package/dist/drive/kept.js +263 -0
- package/dist/drive/kept.js.map +1 -0
- package/dist/drive/kernel.d.ts +17 -0
- package/dist/drive/kernel.js +36 -0
- package/dist/drive/kernel.js.map +1 -0
- package/dist/drive/layout.d.ts +18 -0
- package/dist/drive/layout.js +39 -0
- package/dist/drive/layout.js.map +1 -0
- package/dist/drive/mount.d.ts +107 -0
- package/dist/drive/mount.js +259 -0
- package/dist/drive/mount.js.map +1 -0
- package/dist/drive/mountpoint.d.ts +14 -0
- package/dist/drive/mountpoint.js +51 -0
- package/dist/drive/mountpoint.js.map +1 -0
- package/dist/drive/nfs/apple-double.d.ts +6 -0
- package/dist/drive/nfs/apple-double.js +140 -0
- package/dist/drive/nfs/apple-double.js.map +1 -0
- package/dist/drive/nfs/attributes.d.ts +64 -0
- package/dist/drive/nfs/attributes.js +97 -0
- package/dist/drive/nfs/attributes.js.map +1 -0
- package/dist/drive/nfs/handles.d.ts +44 -0
- package/dist/drive/nfs/handles.js +209 -0
- package/dist/drive/nfs/handles.js.map +1 -0
- package/dist/drive/nfs/mount3.d.ts +16 -0
- package/dist/drive/nfs/mount3.js +38 -0
- package/dist/drive/nfs/mount3.js.map +1 -0
- package/dist/drive/nfs/nfs3.d.ts +27 -0
- package/dist/drive/nfs/nfs3.js +516 -0
- package/dist/drive/nfs/nfs3.js.map +1 -0
- package/dist/drive/nfs/rpc.d.ts +66 -0
- package/dist/drive/nfs/rpc.js +122 -0
- package/dist/drive/nfs/rpc.js.map +1 -0
- package/dist/drive/nfs/server.d.ts +30 -0
- package/dist/drive/nfs/server.js +109 -0
- package/dist/drive/nfs/server.js.map +1 -0
- package/dist/drive/nfs/xdr.d.ts +44 -0
- package/dist/drive/nfs/xdr.js +111 -0
- package/dist/drive/nfs/xdr.js.map +1 -0
- package/dist/drive/nfs.d.ts +58 -0
- package/dist/drive/nfs.js +193 -0
- package/dist/drive/nfs.js.map +1 -0
- package/dist/drive/operations.d.ts +180 -0
- package/dist/drive/operations.js +358 -0
- package/dist/drive/operations.js.map +1 -0
- package/dist/drive/shelf.d.ts +9 -0
- package/dist/drive/shelf.js +41 -0
- package/dist/drive/shelf.js.map +1 -0
- package/dist/durability-barrier.d.ts +39 -11
- package/dist/durability-barrier.js +106 -41
- package/dist/durability-barrier.js.map +1 -1
- package/dist/entity-access-wire.d.ts +3 -2
- package/dist/entity-access-wire.js +9 -25
- package/dist/entity-access-wire.js.map +1 -1
- package/dist/entity-channel-holdings.d.ts +7 -7
- package/dist/entity-channel-holdings.js +49 -8
- package/dist/entity-channel-holdings.js.map +1 -1
- package/dist/entity-grant-watch.d.ts +9 -0
- package/dist/entity-grant-watch.js +29 -0
- package/dist/entity-grant-watch.js.map +1 -0
- package/dist/entity-record-observability.d.ts +1 -1
- package/dist/entity-record-observability.js +34 -29
- package/dist/entity-record-observability.js.map +1 -1
- package/dist/entity-record-saves.d.ts +34 -7
- package/dist/entity-record-saves.js +72 -20
- package/dist/entity-record-saves.js.map +1 -1
- package/dist/entity-record-store.d.ts +43 -15
- package/dist/entity-record-store.js +160 -55
- package/dist/entity-record-store.js.map +1 -1
- package/dist/error-facts.d.ts +24 -0
- package/dist/error-facts.js +35 -0
- package/dist/error-facts.js.map +1 -0
- package/dist/faults/drain.d.ts +27 -0
- package/dist/faults/drain.js +211 -0
- package/dist/faults/drain.js.map +1 -0
- package/dist/faults/queue.d.ts +46 -0
- package/dist/faults/queue.js +100 -0
- package/dist/faults/queue.js.map +1 -0
- package/dist/faults/show.d.ts +7 -0
- package/dist/faults/show.js +32 -0
- package/dist/faults/show.js.map +1 -0
- package/dist/files-mcp-host.d.ts +58 -0
- package/dist/files-mcp-host.js +63 -0
- package/dist/files-mcp-host.js.map +1 -0
- package/dist/files-observability.d.ts +5 -2
- package/dist/files-observability.js.map +1 -1
- package/dist/files-program/client.d.ts +136 -0
- package/dist/files-program/client.js +442 -0
- package/dist/files-program/client.js.map +1 -0
- package/dist/files-program/journeys.d.ts +15 -0
- package/dist/files-program/journeys.js +79 -0
- package/dist/files-program/journeys.js.map +1 -0
- package/dist/files-program/program.d.ts +1 -0
- package/dist/files-program/program.js +344 -0
- package/dist/files-program/program.js.map +1 -0
- package/dist/files-program/protocol.d.ts +180 -0
- package/dist/files-program/protocol.js +7 -0
- package/dist/files-program/protocol.js.map +1 -0
- package/dist/files-register-host.d.ts +18 -21
- package/dist/files-register-host.js +104 -94
- package/dist/files-register-host.js.map +1 -1
- package/dist/files-trace.d.ts +29 -9
- package/dist/files-trace.js +58 -14
- package/dist/files-trace.js.map +1 -1
- package/dist/filesystem.d.ts +27 -9
- package/dist/filesystem.js +94 -56
- package/dist/filesystem.js.map +1 -1
- package/dist/flush.d.ts +19 -0
- package/dist/flush.js +84 -0
- package/dist/flush.js.map +1 -0
- package/dist/gateway.js +5 -2
- package/dist/gateway.js.map +1 -1
- package/dist/git/ground-owners.d.ts +15 -0
- package/dist/git/ground-owners.js +67 -0
- package/dist/git/ground-owners.js.map +1 -0
- package/dist/git/held-package.d.ts +67 -0
- package/dist/git/held-package.js +95 -0
- package/dist/git/held-package.js.map +1 -0
- package/dist/git/home.d.ts +59 -0
- package/dist/git/home.js +132 -0
- package/dist/git/home.js.map +1 -0
- package/dist/git/marker.d.ts +21 -0
- package/dist/git/marker.js +30 -0
- package/dist/git/marker.js.map +1 -0
- package/dist/git/named-objects.d.ts +24 -0
- package/dist/git/named-objects.js +176 -0
- package/dist/git/named-objects.js.map +1 -0
- package/dist/git/objects.d.ts +30 -0
- package/dist/git/objects.js +88 -0
- package/dist/git/objects.js.map +1 -0
- package/dist/git/play.d.ts +30 -0
- package/dist/git/play.js +305 -0
- package/dist/git/play.js.map +1 -0
- package/dist/git/quarantine.d.ts +48 -0
- package/dist/git/quarantine.js +150 -0
- package/dist/git/quarantine.js.map +1 -0
- package/dist/git/rail.d.ts +206 -0
- package/dist/git/rail.js +885 -0
- package/dist/git/rail.js.map +1 -0
- package/dist/git/read-state.d.ts +49 -0
- package/dist/git/read-state.js +238 -0
- package/dist/git/read-state.js.map +1 -0
- package/dist/git/repository.d.ts +62 -0
- package/dist/git/repository.js +130 -0
- package/dist/git/repository.js.map +1 -0
- package/dist/git/write-files.d.ts +29 -0
- package/dist/git/write-files.js +215 -0
- package/dist/git/write-files.js.map +1 -0
- package/dist/git-binding.d.ts +37 -49
- package/dist/git-binding.js +262 -134
- package/dist/git-binding.js.map +1 -1
- package/dist/git-cat-file.d.ts +28 -0
- package/dist/git-cat-file.js +125 -0
- package/dist/git-cat-file.js.map +1 -0
- package/dist/git-command.d.ts +45 -10
- package/dist/git-command.js +197 -89
- package/dist/git-command.js.map +1 -1
- package/dist/git-index-entries.d.ts +10 -8
- package/dist/git-index-entries.js +21 -39
- package/dist/git-index-entries.js.map +1 -1
- package/dist/git-index-format.d.ts +35 -18
- package/dist/git-index-format.js +210 -53
- package/dist/git-index-format.js.map +1 -1
- package/dist/git-install-lines.d.ts +12 -0
- package/dist/git-install-lines.js +22 -0
- package/dist/git-install-lines.js.map +1 -0
- package/dist/git-launcher-process.d.ts +1 -0
- package/dist/git-launcher-process.js +81 -0
- package/dist/git-launcher-process.js.map +1 -0
- package/dist/git-launcher.d.ts +70 -0
- package/dist/git-launcher.js +178 -0
- package/dist/git-launcher.js.map +1 -0
- package/dist/graph-heads.d.ts +71 -0
- package/dist/graph-heads.js +90 -0
- package/dist/graph-heads.js.map +1 -0
- package/dist/ground-basis.d.ts +141 -105
- package/dist/ground-basis.js +367 -460
- package/dist/ground-basis.js.map +1 -1
- package/dist/ground-checkpoint-worker.js +26 -25
- package/dist/ground-checkpoint-worker.js.map +1 -1
- package/dist/ground-checkpoints.d.ts +1 -1
- package/dist/ground-checkpoints.js +6 -6
- package/dist/ground-contract.d.ts +11 -0
- package/dist/ground-contract.js +115 -0
- package/dist/ground-contract.js.map +1 -0
- package/dist/ground-coordination.d.ts +30 -20
- package/dist/ground-coordination.js +96 -51
- package/dist/ground-coordination.js.map +1 -1
- package/dist/ground-database.d.ts +11 -13
- package/dist/ground-database.js +283 -97
- package/dist/ground-database.js.map +1 -1
- package/dist/ground-differences.d.ts +19 -18
- package/dist/ground-differences.js +20 -42
- package/dist/ground-differences.js.map +1 -1
- package/dist/ground-initialization.d.ts +3 -0
- package/dist/ground-initialization.js.map +1 -1
- package/dist/ground-install-saves.d.ts +61 -20
- package/dist/ground-install-saves.js +56 -52
- package/dist/ground-install-saves.js.map +1 -1
- package/dist/ground-inventory-schema.d.ts +42 -2
- package/dist/ground-inventory-schema.js +244 -31
- package/dist/ground-inventory-schema.js.map +1 -1
- package/dist/ground-marks.d.ts +49 -0
- package/dist/ground-marks.js +105 -0
- package/dist/ground-marks.js.map +1 -0
- package/dist/ground-profile.d.ts +7 -0
- package/dist/ground-profile.js +85 -16
- package/dist/ground-profile.js.map +1 -1
- package/dist/ground-reads.d.ts +86 -0
- package/dist/ground-reads.js +256 -0
- package/dist/ground-reads.js.map +1 -0
- package/dist/ground-relations.d.ts +57 -0
- package/dist/ground-relations.js +206 -0
- package/dist/ground-relations.js.map +1 -0
- package/dist/ground-root-index.d.ts +3 -2
- package/dist/ground-root-index.js +4 -3
- package/dist/ground-root-index.js.map +1 -1
- package/dist/ground-row.d.ts +23 -7
- package/dist/ground-row.js +27 -11
- package/dist/ground-row.js.map +1 -1
- package/dist/ground-save-ops.d.ts +42 -26
- package/dist/ground-save-ops.js +46 -26
- package/dist/ground-save-ops.js.map +1 -1
- package/dist/ground-saver-worker.js +171 -44
- package/dist/ground-saver-worker.js.map +1 -1
- package/dist/ground-saver.d.ts +35 -7
- package/dist/ground-saver.js +52 -25
- package/dist/ground-saver.js.map +1 -1
- package/dist/ground-store.d.ts +51 -10
- package/dist/ground-store.js +439 -89
- package/dist/ground-store.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/initial-publication.d.ts +42 -0
- package/dist/initial-publication.js +42 -0
- package/dist/initial-publication.js.map +1 -0
- package/dist/installation/environment.d.ts +4 -0
- package/dist/installation/environment.js +13 -0
- package/dist/installation/environment.js.map +1 -1
- package/dist/keychain/cli-io.d.ts +8 -0
- package/dist/keychain/cli-io.js +55 -0
- package/dist/keychain/cli-io.js.map +1 -0
- package/dist/keychain/cli.d.ts +12 -0
- package/dist/keychain/cli.js +48 -0
- package/dist/keychain/cli.js.map +1 -0
- package/dist/keychain/host.d.ts +28 -0
- package/dist/keychain/host.js +43 -0
- package/dist/keychain/host.js.map +1 -0
- package/dist/keychain/http-mount.d.ts +16 -0
- package/dist/keychain/http-mount.js +74 -0
- package/dist/keychain/http-mount.js.map +1 -0
- package/dist/keychain/key-wire.d.ts +12 -0
- package/dist/keychain/key-wire.js +45 -0
- package/dist/keychain/key-wire.js.map +1 -0
- package/dist/keychain/presence-mac.d.ts +8 -0
- package/dist/keychain/presence-mac.js +26 -0
- package/dist/keychain/presence-mac.js.map +1 -0
- package/dist/keychain/presence.d.ts +9 -0
- package/dist/keychain/presence.js +24 -0
- package/dist/keychain/presence.js.map +1 -0
- package/dist/keychain/rail.d.ts +19 -0
- package/dist/keychain/rail.js +20 -0
- package/dist/keychain/rail.js.map +1 -0
- package/dist/keychain/secret-apply.d.ts +22 -0
- package/dist/keychain/secret-apply.js +46 -0
- package/dist/keychain/secret-apply.js.map +1 -0
- package/dist/keychain/shelf-from-ledger.d.ts +15 -0
- package/dist/keychain/shelf-from-ledger.js +18 -0
- package/dist/keychain/shelf-from-ledger.js.map +1 -0
- package/dist/keychain/use-log.d.ts +7 -0
- package/dist/keychain/use-log.js +15 -0
- package/dist/keychain/use-log.js.map +1 -0
- package/dist/keychain/vault-file.d.ts +12 -0
- package/dist/keychain/vault-file.js +19 -0
- package/dist/keychain/vault-file.js.map +1 -0
- package/dist/line-judge.d.ts +39 -0
- package/dist/line-judge.js +177 -0
- package/dist/line-judge.js.map +1 -0
- package/dist/line-loops.d.ts +22 -0
- package/dist/line-loops.js +19 -0
- package/dist/line-loops.js.map +1 -0
- package/dist/link-target.d.ts +16 -0
- package/dist/link-target.js +81 -0
- package/dist/link-target.js.map +1 -0
- package/dist/loop-watch.d.ts +17 -0
- package/dist/loop-watch.js +44 -0
- package/dist/loop-watch.js.map +1 -0
- package/dist/machine-host.d.ts +93 -23
- package/dist/machine-host.js +344 -179
- package/dist/machine-host.js.map +1 -1
- package/dist/main.js +3 -1
- package/dist/main.js.map +1 -1
- package/dist/materialize-records.d.ts +98 -0
- package/dist/materialize-records.js +446 -0
- package/dist/materialize-records.js.map +1 -0
- package/dist/materialized-graph.d.ts +14 -21
- package/dist/materialized-graph.js +1 -135
- package/dist/materialized-graph.js.map +1 -1
- package/dist/mount.d.ts +13 -0
- package/dist/mount.js +33 -0
- package/dist/mount.js.map +1 -0
- package/dist/native/cloud-files.node +0 -0
- package/dist/native/fsevents-stream.node +0 -0
- package/dist/native/inotify.node +0 -0
- package/dist/native/windows-fs.node +0 -0
- package/dist/on-demand-roots.d.ts +31 -0
- package/dist/on-demand-roots.js +18 -0
- package/dist/on-demand-roots.js.map +1 -0
- package/dist/open-standing.d.ts +8 -0
- package/dist/open-standing.js +109 -0
- package/dist/open-standing.js.map +1 -0
- package/dist/own-results.d.ts +37 -0
- package/dist/own-results.js +98 -0
- package/dist/own-results.js.map +1 -0
- package/dist/package-pages.d.ts +41 -0
- package/dist/package-pages.js +76 -0
- package/dist/package-pages.js.map +1 -0
- package/dist/patient-flush.d.ts +24 -0
- package/dist/patient-flush.js +37 -0
- package/dist/patient-flush.js.map +1 -0
- package/dist/physical-path-witness.d.ts +2 -11
- package/dist/physical-path-witness.js +19 -43
- package/dist/physical-path-witness.js.map +1 -1
- package/dist/placement-owed.d.ts +28 -0
- package/dist/placement-owed.js +32 -0
- package/dist/placement-owed.js.map +1 -0
- package/dist/placement-tidy.d.ts +57 -0
- package/dist/placement-tidy.js +313 -0
- package/dist/placement-tidy.js.map +1 -0
- package/dist/platform-product-host.d.ts +12 -0
- package/dist/platform-product-host.js +23 -1
- package/dist/platform-product-host.js.map +1 -1
- package/dist/platform-tools.d.ts +1 -0
- package/dist/platform-tools.js +11 -1
- package/dist/platform-tools.js.map +1 -1
- package/dist/process-lifecycle.d.ts +7 -0
- package/dist/process-lifecycle.js +13 -0
- package/dist/process-lifecycle.js.map +1 -1
- package/dist/pty-host.d.ts +2 -0
- package/dist/pty-host.js +1 -0
- package/dist/pty-host.js.map +1 -1
- package/dist/received-state.d.ts +90 -0
- package/dist/received-state.js +167 -0
- package/dist/received-state.js.map +1 -0
- package/dist/reference-placement.d.ts +26 -0
- package/dist/reference-placement.js +121 -0
- package/dist/reference-placement.js.map +1 -0
- package/dist/registry-graph.d.ts +63 -55
- package/dist/registry-graph.js +291 -170
- package/dist/registry-graph.js.map +1 -1
- package/dist/registry-page-cache.d.ts +2 -4
- package/dist/registry-page-cache.js.map +1 -1
- package/dist/root-install.d.ts +72 -0
- package/dist/root-install.js +178 -0
- package/dist/root-install.js.map +1 -0
- package/dist/runtime-activity.d.ts +20 -0
- package/dist/runtime-activity.js +86 -0
- package/dist/runtime-activity.js.map +1 -0
- package/dist/runtime-argv.d.ts +8 -0
- package/dist/runtime-argv.js +37 -0
- package/dist/runtime-argv.js.map +1 -0
- package/dist/runtime-command-host.d.ts +9 -3
- package/dist/runtime-command-host.js +27 -7
- package/dist/runtime-command-host.js.map +1 -1
- package/dist/runtime-node-flags.d.ts +6 -6
- package/dist/runtime-node-flags.js +6 -6
- package/dist/runtime-wire-host.d.ts +4 -1
- package/dist/runtime-wire-host.js +11 -6
- package/dist/runtime-wire-host.js.map +1 -1
- package/dist/sha256.d.ts +1 -0
- package/dist/sha256.js +4 -0
- package/dist/sha256.js.map +1 -0
- package/dist/sharing-admission.d.ts +9 -4
- package/dist/sharing-admission.js +57 -98
- package/dist/sharing-admission.js.map +1 -1
- package/dist/sharing-host.d.ts +6 -11
- package/dist/sharing-host.js +6 -10
- package/dist/sharing-host.js.map +1 -1
- package/dist/snapshot-delivery-baseline.d.ts +23 -13
- package/dist/snapshot-delivery-baseline.js +37 -40
- package/dist/snapshot-delivery-baseline.js.map +1 -1
- package/dist/socket-marking.d.ts +9 -0
- package/dist/socket-marking.js +26 -0
- package/dist/socket-marking.js.map +1 -0
- package/dist/source-proof.d.ts +2 -15
- package/dist/source-proof.js +9 -4
- package/dist/source-proof.js.map +1 -1
- package/dist/source-signature.d.ts +122 -21
- package/dist/source-signature.js +139 -28
- package/dist/source-signature.js.map +1 -1
- package/dist/source-witness.d.ts +2 -8
- package/dist/source-witness.js +1 -14
- package/dist/source-witness.js.map +1 -1
- package/dist/sqlite-durability.d.ts +1 -0
- package/dist/sqlite-durability.js +2 -0
- package/dist/sqlite-durability.js.map +1 -1
- package/dist/sqlite.js +8 -8
- package/dist/sqlite.js.map +1 -1
- package/dist/sync-address.d.ts +0 -3
- package/dist/sync-address.js +1 -23
- package/dist/sync-address.js.map +1 -1
- package/dist/sync-cli.d.ts +6 -2
- package/dist/sync-cli.js +19 -4
- package/dist/sync-cli.js.map +1 -1
- package/dist/sync-setting.d.ts +16 -1
- package/dist/sync-setting.js +6 -0
- package/dist/sync-setting.js.map +1 -1
- package/dist/transfer-instrumentation.d.ts +3 -3
- package/dist/transfer-instrumentation.js +7 -5
- package/dist/transfer-instrumentation.js.map +1 -1
- package/dist/turns.d.ts +4 -2
- package/dist/turns.js +17 -15
- package/dist/turns.js.map +1 -1
- package/dist/updates/artifacts.d.ts +9 -4
- package/dist/updates/artifacts.js +132 -9
- package/dist/updates/artifacts.js.map +1 -1
- package/dist/updates/controller.js +4 -3
- package/dist/updates/controller.js.map +1 -1
- package/dist/updates/locked-packages.d.ts +4 -0
- package/dist/updates/locked-packages.js +26 -0
- package/dist/updates/locked-packages.js.map +1 -0
- package/dist/updates/store.d.ts +5 -4
- package/dist/updates/store.js +5 -4
- package/dist/updates/store.js.map +1 -1
- package/dist/user-ground-host.d.ts +534 -179
- package/dist/user-ground-host.js +3293 -5218
- package/dist/user-ground-host.js.map +1 -1
- package/dist/watching/fsevents.d.ts +22 -6
- package/dist/watching/fsevents.js +29 -7
- package/dist/watching/fsevents.js.map +1 -1
- package/dist/watching/git-storage.d.ts +22 -0
- package/dist/watching/git-storage.js +125 -0
- package/dist/watching/git-storage.js.map +1 -0
- package/dist/watching/host.d.ts +149 -23
- package/dist/watching/host.js +706 -206
- package/dist/watching/host.js.map +1 -1
- package/dist/watching/index.d.ts +3 -2
- package/dist/watching/index.js +2 -1
- package/dist/watching/index.js.map +1 -1
- package/dist/watching/inotify.d.ts +81 -0
- package/dist/watching/inotify.js +184 -0
- package/dist/watching/inotify.js.map +1 -0
- package/dist/windows-fs.d.ts +12 -0
- package/dist/windows-fs.js +19 -0
- package/dist/windows-fs.js.map +1 -0
- package/dist/windows-owner-only.d.ts +6 -0
- package/dist/windows-owner-only.js +84 -0
- package/dist/windows-owner-only.js.map +1 -0
- package/dist/wire-client.d.ts +13 -11
- package/dist/wire-client.js +51 -78
- package/dist/wire-client.js.map +1 -1
- package/dist/wire-join.d.ts +19 -0
- package/dist/wire-join.js +54 -0
- package/dist/wire-join.js.map +1 -0
- package/dist/wire-outbox.d.ts +3 -0
- package/dist/wire-outbox.js +6 -1
- package/dist/wire-outbox.js.map +1 -1
- package/dist/wire-request-scope.d.ts +2 -1
- package/dist/wire-request-scope.js +2 -1
- package/dist/wire-request-scope.js.map +1 -1
- package/dist/workspace-add-intent.d.ts +41 -0
- package/dist/workspace-add-intent.js +107 -0
- package/dist/workspace-add-intent.js.map +1 -0
- package/dist/workspace-add-staging.d.ts +78 -74
- package/dist/workspace-add-staging.js +131 -179
- package/dist/workspace-add-staging.js.map +1 -1
- package/dist/workspace-host.d.ts +17 -0
- package/dist/workspace-host.js +17 -21
- package/dist/workspace-host.js.map +1 -1
- package/examinations/fixtures/private-wire-authority.js +534 -499
- package/examinations/native-service.mjs +29 -4
- package/examinations/runtime-upgrade.native-test.mjs +16 -1
- package/npm-shrinkwrap.json +253 -464
- package/package.json +29 -33
- package/dist/apply-cleanup.d.ts +0 -28
- package/dist/apply-cleanup.js +0 -166
- package/dist/apply-cleanup.js.map +0 -1
- package/dist/apply-recovery.d.ts +0 -47
- package/dist/apply-recovery.js +0 -100
- package/dist/apply-recovery.js.map +0 -1
- package/dist/apply-rows.d.ts +0 -72
- package/dist/apply-rows.js +0 -150
- package/dist/apply-rows.js.map +0 -1
- package/dist/apply-saves.d.ts +0 -85
- package/dist/apply-saves.js +0 -238
- package/dist/apply-saves.js.map +0 -1
- package/dist/bounded-for-each.d.ts +0 -3
- package/dist/bounded-for-each.js +0 -26
- package/dist/bounded-for-each.js.map +0 -1
- package/dist/content-cache-ownership.d.ts +0 -13
- package/dist/content-cache-ownership.js +0 -75
- package/dist/content-cache-ownership.js.map +0 -1
- package/dist/content-stream-thread.d.ts +0 -60
- package/dist/content-stream-thread.js +0 -95
- package/dist/content-stream-thread.js.map +0 -1
- package/dist/content-stream-worker.d.ts +0 -7
- package/dist/content-stream-worker.js +0 -52
- package/dist/content-stream-worker.js.map +0 -1
- package/dist/declaration-absorption.d.ts +0 -37
- package/dist/declaration-absorption.js +0 -119
- package/dist/declaration-absorption.js.map +0 -1
- package/dist/declaration-chain.d.ts +0 -36
- package/dist/declaration-chain.js +0 -96
- package/dist/declaration-chain.js.map +0 -1
- package/dist/declaration-commit.d.ts +0 -31
- package/dist/declaration-commit.js +0 -49
- package/dist/declaration-commit.js.map +0 -1
- package/dist/declaration-hold.d.ts +0 -22
- package/dist/declaration-hold.js +0 -24
- package/dist/declaration-hold.js.map +0 -1
- package/dist/declaration-journal.d.ts +0 -62
- package/dist/declaration-journal.js +0 -99
- package/dist/declaration-journal.js.map +0 -1
- package/dist/declaration-save.d.ts +0 -31
- package/dist/declaration-save.js +0 -134
- package/dist/declaration-save.js.map +0 -1
- package/dist/detection/disposition-rows.d.ts +0 -18
- package/dist/detection/disposition-rows.js +0 -29
- package/dist/detection/disposition-rows.js.map +0 -1
- package/dist/detection/git-notice.d.ts +0 -88
- package/dist/detection/git-notice.js +0 -444
- package/dist/detection/git-notice.js.map +0 -1
- package/dist/detection/held-territory.d.ts +0 -51
- package/dist/detection/held-territory.js +0 -205
- package/dist/detection/held-territory.js.map +0 -1
- package/dist/detection/name-reach.d.ts +0 -12
- package/dist/detection/name-reach.js +0 -28
- package/dist/detection/name-reach.js.map +0 -1
- package/dist/detection/portable.d.ts +0 -66
- package/dist/detection/portable.js +0 -137
- package/dist/detection/portable.js.map +0 -1
- package/dist/detection/repository-publication.d.ts +0 -20
- package/dist/detection/repository-publication.js +0 -79
- package/dist/detection/repository-publication.js.map +0 -1
- package/dist/detection/repository-routes.d.ts +0 -43
- package/dist/detection/repository-routes.js +0 -98
- package/dist/detection/repository-routes.js.map +0 -1
- package/dist/detection/seal-law.d.ts +0 -66
- package/dist/detection/seal-law.js +0 -116
- package/dist/detection/seal-law.js.map +0 -1
- package/dist/detection/verified-content.d.ts +0 -6
- package/dist/detection/verified-content.js +0 -12
- package/dist/detection/verified-content.js.map +0 -1
- package/dist/entity-apply-host.d.ts +0 -80
- package/dist/entity-apply-host.js +0 -2316
- package/dist/entity-apply-host.js.map +0 -1
- package/dist/entity-apply-store.d.ts +0 -105
- package/dist/entity-apply-store.js +0 -290
- package/dist/entity-apply-store.js.map +0 -1
- package/dist/git-capture.d.ts +0 -36
- package/dist/git-capture.js +0 -91
- package/dist/git-capture.js.map +0 -1
- package/dist/git-card.d.ts +0 -17
- package/dist/git-card.js +0 -133
- package/dist/git-card.js.map +0 -1
- package/dist/git-checkpoint-construction.d.ts +0 -40
- package/dist/git-checkpoint-construction.js +0 -102
- package/dist/git-checkpoint-construction.js.map +0 -1
- package/dist/git-checkpoint-preparation.d.ts +0 -37
- package/dist/git-checkpoint-preparation.js +0 -145
- package/dist/git-checkpoint-preparation.js.map +0 -1
- package/dist/git-configuration.d.ts +0 -40
- package/dist/git-configuration.js +0 -217
- package/dist/git-configuration.js.map +0 -1
- package/dist/git-evidence.d.ts +0 -61
- package/dist/git-evidence.js +0 -181
- package/dist/git-evidence.js.map +0 -1
- package/dist/git-index-witness.d.ts +0 -33
- package/dist/git-index-witness.js +0 -69
- package/dist/git-index-witness.js.map +0 -1
- package/dist/git-literal-host.d.ts +0 -82
- package/dist/git-literal-host.js +0 -173
- package/dist/git-literal-host.js.map +0 -1
- package/dist/git-literal-read.d.ts +0 -88
- package/dist/git-literal-read.js +0 -170
- package/dist/git-literal-read.js.map +0 -1
- package/dist/git-literal-replay.d.ts +0 -33
- package/dist/git-literal-replay.js +0 -269
- package/dist/git-literal-replay.js.map +0 -1
- package/dist/git-native-file.d.ts +0 -42
- package/dist/git-native-file.js +0 -145
- package/dist/git-native-file.js.map +0 -1
- package/dist/git-native-index.d.ts +0 -21
- package/dist/git-native-index.js +0 -44
- package/dist/git-native-index.js.map +0 -1
- package/dist/git-operation-host.d.ts +0 -48
- package/dist/git-operation-host.js +0 -127
- package/dist/git-operation-host.js.map +0 -1
- package/dist/git-private-index.d.ts +0 -11
- package/dist/git-private-index.js +0 -42
- package/dist/git-private-index.js.map +0 -1
- package/dist/git-private-repository.d.ts +0 -4
- package/dist/git-private-repository.js +0 -69
- package/dist/git-private-repository.js.map +0 -1
- package/dist/git-private-view.d.ts +0 -57
- package/dist/git-private-view.js +0 -240
- package/dist/git-private-view.js.map +0 -1
- package/dist/git-ref-store.d.ts +0 -12
- package/dist/git-ref-store.js +0 -68
- package/dist/git-ref-store.js.map +0 -1
- package/dist/git-registration-host.d.ts +0 -38
- package/dist/git-registration-host.js +0 -96
- package/dist/git-registration-host.js.map +0 -1
- package/dist/git-repository-host.d.ts +0 -191
- package/dist/git-repository-host.js +0 -917
- package/dist/git-repository-host.js.map +0 -1
- package/dist/git-worktree-host.d.ts +0 -2
- package/dist/git-worktree-host.js +0 -16
- package/dist/git-worktree-host.js.map +0 -1
- package/dist/graph-publication.d.ts +0 -75
- package/dist/graph-publication.js +0 -203
- package/dist/graph-publication.js.map +0 -1
- package/dist/ground-territory.d.ts +0 -130
- package/dist/ground-territory.js +0 -511
- package/dist/ground-territory.js.map +0 -1
- package/dist/register-upload-fusion.d.ts +0 -84
- package/dist/register-upload-fusion.js +0 -172
- package/dist/register-upload-fusion.js.map +0 -1
- package/dist/repository-identity-steps.d.ts +0 -5
- package/dist/repository-identity-steps.js +0 -33
- package/dist/repository-identity-steps.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amalgm/shell",
|
|
3
|
-
"version": "0.1.164-preview.
|
|
3
|
+
"version": "0.1.164-preview.44386772850",
|
|
4
4
|
"description": "The Amalgm runtime host assembled from the published @amalgm SDK capabilities.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -56,27 +56,26 @@
|
|
|
56
56
|
},
|
|
57
57
|
"allowScripts": {
|
|
58
58
|
"@homebridge/node-pty-prebuilt-multiarch@0.13.1": true,
|
|
59
|
-
"
|
|
60
|
-
"better-sqlite3@12.11.1": true,
|
|
61
|
-
"ffmpeg-static@5.3.0": true
|
|
59
|
+
"better-sqlite3@12.11.1": true
|
|
62
60
|
},
|
|
63
61
|
"dependencies": {
|
|
64
|
-
"@amalgm/agents": "0.2.3-preview.
|
|
65
|
-
"@amalgm/apps": "0.1.3-preview.
|
|
66
|
-
"@amalgm/automations": "0.4.4-preview.
|
|
67
|
-
"@amalgm/browser": "0.1.2-preview.
|
|
68
|
-
"@amalgm/channels": "0.1.5-preview.
|
|
69
|
-
"@amalgm/chat": "0.2.9-preview.
|
|
70
|
-
"@amalgm/core": "0.5.1-preview.
|
|
71
|
-
"@amalgm/
|
|
72
|
-
"@amalgm/
|
|
62
|
+
"@amalgm/agents": "0.2.3-preview.44182699998",
|
|
63
|
+
"@amalgm/apps": "0.1.3-preview.44182913307",
|
|
64
|
+
"@amalgm/automations": "0.4.4-preview.44182921435",
|
|
65
|
+
"@amalgm/browser": "0.1.2-preview.44182928298",
|
|
66
|
+
"@amalgm/channels": "0.1.5-preview.44182931268",
|
|
67
|
+
"@amalgm/chat": "0.2.9-preview.44182907076",
|
|
68
|
+
"@amalgm/core": "0.5.1-preview.44182200738",
|
|
69
|
+
"@amalgm/keychain": "0.1.1-preview.44182937614",
|
|
70
|
+
"@amalgm/live": "0.2.81-preview.44183014269",
|
|
71
|
+
"@amalgm/tools": "0.1.7-preview.44182693708",
|
|
73
72
|
"@anthropic-ai/claude-agent-sdk": "^0.3.285",
|
|
74
73
|
"@homebridge/node-pty-prebuilt-multiarch": "0.13.1",
|
|
75
74
|
"@modelcontextprotocol/sdk": "1.32.1",
|
|
76
75
|
"@napi-rs/keyring": "1.3.0",
|
|
77
76
|
"@tufjs/models": "5.0.0",
|
|
78
77
|
"better-sqlite3": "12.11.1",
|
|
79
|
-
"npm": "11.
|
|
78
|
+
"npm": "11.21.1",
|
|
80
79
|
"tar": "7.5.22",
|
|
81
80
|
"tuf-js": "6.0.0",
|
|
82
81
|
"ws": "8.21.0"
|
|
@@ -103,22 +102,18 @@
|
|
|
103
102
|
"test:released-package"
|
|
104
103
|
],
|
|
105
104
|
"auditExcuse": {
|
|
106
|
-
"until": "2026-
|
|
105
|
+
"until": "2026-11-13",
|
|
107
106
|
"within": "node_modules/npm/node_modules/",
|
|
108
|
-
"reason": "The npm CLI dependency bundles these copies, bundled packages cannot be overridden, and no npm release carries the fixes yet (11.
|
|
107
|
+
"reason": "The npm CLI dependency bundles these copies, bundled packages cannot be overridden, and no npm release carries the fixes yet (11.21.1 and 12.2.1 bundle undici 6.29.0, ip-address 10.7.2, minimatch 10.2.5 and glob 13.0.6), so npm also flags every bundled package above them and npm itself. Remove this and move npm once an npm release carries the fixes.",
|
|
109
108
|
"advisories": [
|
|
110
|
-
"GHSA-
|
|
111
|
-
"GHSA-
|
|
112
|
-
"GHSA-
|
|
113
|
-
"GHSA-
|
|
114
|
-
"GHSA-
|
|
115
|
-
"GHSA-
|
|
116
|
-
"GHSA-
|
|
117
|
-
"GHSA-
|
|
118
|
-
"GHSA-j6r3-76f7-8jcv",
|
|
119
|
-
"GHSA-h3mg-xc3c-68pw",
|
|
120
|
-
"GHSA-ch52-4w7c-c8xp",
|
|
121
|
-
"GHSA-rj75-hqrm-r3gf"
|
|
109
|
+
"GHSA-xjj6-f33q-929c",
|
|
110
|
+
"GHSA-2m5v-pch6-74hx",
|
|
111
|
+
"GHSA-qrxm-fqhp-jwvm",
|
|
112
|
+
"GHSA-4qv8-2p9j-2685",
|
|
113
|
+
"GHSA-9fm3-97px-rjf6",
|
|
114
|
+
"GHSA-rxp7-6hxx-x8q5",
|
|
115
|
+
"GHSA-g3hv-75wg-m249",
|
|
116
|
+
"GHSA-3g3m-2fjr-6pw4"
|
|
122
117
|
]
|
|
123
118
|
},
|
|
124
119
|
"distributions": [
|
|
@@ -148,6 +143,7 @@
|
|
|
148
143
|
"@amalgm/channels",
|
|
149
144
|
"@amalgm/chat",
|
|
150
145
|
"@amalgm/core",
|
|
146
|
+
"@amalgm/keychain",
|
|
151
147
|
"@amalgm/live",
|
|
152
148
|
"@amalgm/tools"
|
|
153
149
|
]
|
|
@@ -168,17 +164,17 @@
|
|
|
168
164
|
"id": "installation",
|
|
169
165
|
"reads": {
|
|
170
166
|
"min": 1,
|
|
171
|
-
"max":
|
|
167
|
+
"max": 9
|
|
172
168
|
},
|
|
173
|
-
"writes":
|
|
169
|
+
"writes": 9
|
|
174
170
|
}
|
|
175
171
|
]
|
|
176
172
|
},
|
|
177
|
-
"gitHead": "
|
|
173
|
+
"gitHead": "8f90f77a50485283c23ad99f4e7c8ded6aad9dbe",
|
|
178
174
|
"amalgmSource": {
|
|
179
175
|
"repository": "amalgm-inc/amalgm-shell",
|
|
180
176
|
"branch": "preview",
|
|
181
|
-
"commit": "
|
|
182
|
-
"occurrence": "
|
|
177
|
+
"commit": "8f90f77a50485283c23ad99f4e7c8ded6aad9dbe",
|
|
178
|
+
"occurrence": "44386772850"
|
|
183
179
|
}
|
|
184
180
|
}
|
package/dist/apply-cleanup.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export interface ApplyCleanupBinding {
|
|
2
|
-
readonly path: string;
|
|
3
|
-
/** Exact `device:inode`. */
|
|
4
|
-
readonly physical: string;
|
|
5
|
-
}
|
|
6
|
-
interface CleanupObject extends ApplyCleanupBinding {
|
|
7
|
-
readonly kind: "file" | "link" | "directory";
|
|
8
|
-
readonly value: string | null;
|
|
9
|
-
readonly mode: number;
|
|
10
|
-
readonly signature: string;
|
|
11
|
-
}
|
|
12
|
-
export interface ApplyCleanupDescription {
|
|
13
|
-
readonly contract: "amalgm.apply-cleanup@2";
|
|
14
|
-
readonly root: ApplyCleanupBinding;
|
|
15
|
-
readonly control: string;
|
|
16
|
-
/** Parents precede children. All paths are relative to control. */
|
|
17
|
-
readonly objects: readonly CleanupObject[];
|
|
18
|
-
}
|
|
19
|
-
/** Called only after retained versions and joint namespace effects were proved.
|
|
20
|
-
* Capture uses bounded buffers and never interprets Git or follows symlinks. */
|
|
21
|
-
export declare function describeApplyCleanup(root: ApplyCleanupBinding, control: string): Promise<ApplyCleanupDescription>;
|
|
22
|
-
/** Close the original private read after the logical disposition proof.
|
|
23
|
-
* Later bytes may not be substituted for the versions that proof authorized. */
|
|
24
|
-
export declare function assertApplyCleanupUnchanged(description: ApplyCleanupDescription): void;
|
|
25
|
-
/** Missing authorized objects mean partial progress; changed or unexpected
|
|
26
|
-
* survivors keep this same terminal responsibility visibly unfinished. */
|
|
27
|
-
export declare function finishApplyCleanup(description: ApplyCleanupDescription): Promise<void>;
|
|
28
|
-
export {};
|
package/dist/apply-cleanup.js
DELETED
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
/** Finite machine-local cleanup authority, committed with the Apply outcome.
|
|
2
|
-
* It names exact private objects; it never authorizes changing live ground. */
|
|
3
|
-
import { createHash } from "node:crypto";
|
|
4
|
-
import { closeSync, constants, fsyncSync, lstatSync, openSync, readdirSync, readlinkSync, rmdirSync, unlinkSync, } from "node:fs";
|
|
5
|
-
import { dirname, isAbsolute, join } from "node:path";
|
|
6
|
-
import { open } from "node:fs/promises";
|
|
7
|
-
import { physicalKey, sameSource, sourceSignature, sourceUnchanged } from "./source-signature.js";
|
|
8
|
-
function stat(path) {
|
|
9
|
-
try {
|
|
10
|
-
return lstatSync(path, { bigint: true });
|
|
11
|
-
}
|
|
12
|
-
catch (error) {
|
|
13
|
-
if (error.code === "ENOENT")
|
|
14
|
-
return null;
|
|
15
|
-
throw error;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
async function digest(path, expected) {
|
|
19
|
-
const hash = createHash("sha256"), size = Number(expected.size);
|
|
20
|
-
const same = (current) => current !== null && current.isFile() && sameSource(current, expected);
|
|
21
|
-
const file = await open(path, constants.O_RDONLY | constants.O_NONBLOCK | (constants.O_NOFOLLOW ?? 0));
|
|
22
|
-
try {
|
|
23
|
-
if (!same(await file.stat({ bigint: true })))
|
|
24
|
-
throw new Error("Apply cleanup file changed before its read");
|
|
25
|
-
const buffer = Buffer.allocUnsafe(Math.min(256 * 1024, size));
|
|
26
|
-
for (let offset = 0; offset < size;) {
|
|
27
|
-
const { bytesRead } = await file.read(buffer, 0, Math.min(buffer.length, size - offset), offset);
|
|
28
|
-
if (!bytesRead)
|
|
29
|
-
throw new Error("Apply cleanup file changed length during its read");
|
|
30
|
-
hash.update(buffer.subarray(0, bytesRead));
|
|
31
|
-
offset += bytesRead;
|
|
32
|
-
}
|
|
33
|
-
if (!same(await file.stat({ bigint: true })) || !same(stat(path)))
|
|
34
|
-
throw new Error("Apply cleanup file changed during its read");
|
|
35
|
-
return hash.digest("hex");
|
|
36
|
-
}
|
|
37
|
-
finally {
|
|
38
|
-
await file.close();
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
function kind(stats) {
|
|
42
|
-
if (stats.isSymbolicLink())
|
|
43
|
-
return "link";
|
|
44
|
-
if (stats.isFile())
|
|
45
|
-
return "file";
|
|
46
|
-
if (stats.isDirectory())
|
|
47
|
-
return "directory";
|
|
48
|
-
throw new Error("Apply cleanup encountered an unsupported private object");
|
|
49
|
-
}
|
|
50
|
-
async function value(path, type, before) {
|
|
51
|
-
return type === "file" ? digest(path, before) : type === "link" ? readlinkSync(path) : null;
|
|
52
|
-
}
|
|
53
|
-
function sameIdentity(stats, expected) {
|
|
54
|
-
return stats !== null && physicalKey(stats) === expected.physical;
|
|
55
|
-
}
|
|
56
|
-
async function matches(path, expected) {
|
|
57
|
-
const before = stat(path);
|
|
58
|
-
if (!sameIdentity(before, expected) || kind(before) !== expected.kind || Number(before.mode) !== expected.mode)
|
|
59
|
-
return false;
|
|
60
|
-
const observed = await value(path, expected.kind, before), after = stat(path);
|
|
61
|
-
return sameIdentity(after, expected) && after.mode === before.mode && observed === expected.value
|
|
62
|
-
&& (expected.kind === "directory" || sameSource(before, after));
|
|
63
|
-
}
|
|
64
|
-
/** Called only after retained versions and joint namespace effects were proved.
|
|
65
|
-
* Capture uses bounded buffers and never interprets Git or follows symlinks. */
|
|
66
|
-
export async function describeApplyCleanup(root, control) {
|
|
67
|
-
if (!sameIdentity(stat(root.path), root))
|
|
68
|
-
throw new Error("Apply recovery root is missing or replaced");
|
|
69
|
-
const objects = [];
|
|
70
|
-
const visit = async (relativePath) => {
|
|
71
|
-
const path = join(control, relativePath), before = stat(path);
|
|
72
|
-
if (!before)
|
|
73
|
-
throw new Error("Apply private cleanup changed during its proof");
|
|
74
|
-
const type = kind(before), expected = { path: relativePath, physical: physicalKey(before),
|
|
75
|
-
kind: type, value: await value(path, type, before), mode: Number(before.mode), signature: sourceSignature(before) };
|
|
76
|
-
const after = stat(path);
|
|
77
|
-
if (!after || !sourceUnchanged(expected.signature, after)) {
|
|
78
|
-
throw new Error("Apply private cleanup changed during its proof");
|
|
79
|
-
}
|
|
80
|
-
objects.push(expected);
|
|
81
|
-
if (type === "directory")
|
|
82
|
-
for (const name of readdirSync(path).sort())
|
|
83
|
-
await visit(relativePath ? `${relativePath}/${name}` : name);
|
|
84
|
-
};
|
|
85
|
-
if (stat(control))
|
|
86
|
-
await visit("");
|
|
87
|
-
return { contract: "amalgm.apply-cleanup@2", root, control, objects };
|
|
88
|
-
}
|
|
89
|
-
/** Close the original private read after the logical disposition proof.
|
|
90
|
-
* Later bytes may not be substituted for the versions that proof authorized. */
|
|
91
|
-
export function assertApplyCleanupUnchanged(description) {
|
|
92
|
-
if (!sameIdentity(stat(description.root.path), description.root))
|
|
93
|
-
throw new Error("Apply cleanup root changed before commitment");
|
|
94
|
-
if (description.objects.length === 0 && stat(description.control))
|
|
95
|
-
throw new Error("Apply control appeared during retirement proof");
|
|
96
|
-
for (const object of description.objects) {
|
|
97
|
-
const current = stat(join(description.control, object.path));
|
|
98
|
-
if (!current || !sourceUnchanged(object.signature, current)) {
|
|
99
|
-
throw new Error("Apply cleanup changed during retirement proof");
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
/** Missing authorized objects mean partial progress; changed or unexpected
|
|
104
|
-
* survivors keep this same terminal responsibility visibly unfinished. */
|
|
105
|
-
export async function finishApplyCleanup(description) {
|
|
106
|
-
if (description.contract !== "amalgm.apply-cleanup@2" || !isAbsolute(description.control)
|
|
107
|
-
|| !isAbsolute(description.root.path))
|
|
108
|
-
throw new Error("Invalid Apply cleanup description");
|
|
109
|
-
if (!sameIdentity(stat(description.root.path), description.root))
|
|
110
|
-
throw new Error("Apply cleanup root is missing or replaced");
|
|
111
|
-
const expected = new Map(description.objects.map(object => [object.path, object]));
|
|
112
|
-
if (expected.size !== description.objects.length || description.objects.some(object => isAbsolute(object.path)
|
|
113
|
-
|| object.path.split("/").some(part => part === "." || part === ".."))) {
|
|
114
|
-
throw new Error("Apply cleanup has an invalid private address");
|
|
115
|
-
}
|
|
116
|
-
const flushed = new Set();
|
|
117
|
-
const visit = async (relativePath) => {
|
|
118
|
-
const path = join(description.control, relativePath), observed = stat(path);
|
|
119
|
-
if (!observed)
|
|
120
|
-
return;
|
|
121
|
-
const object = expected.get(relativePath);
|
|
122
|
-
if (!object || !await matches(path, object))
|
|
123
|
-
throw new Error("Apply cleanup retains an unexpected or changed private object");
|
|
124
|
-
if (object.kind === "directory") {
|
|
125
|
-
for (const name of readdirSync(path))
|
|
126
|
-
await visit(relativePath ? `${relativePath}/${name}` : name);
|
|
127
|
-
if (!sameIdentity(stat(path), object))
|
|
128
|
-
throw new Error("Apply cleanup directory was replaced");
|
|
129
|
-
rmdirSync(path);
|
|
130
|
-
}
|
|
131
|
-
else
|
|
132
|
-
unlinkSync(path);
|
|
133
|
-
flushed.add(dirname(path));
|
|
134
|
-
};
|
|
135
|
-
await visit("");
|
|
136
|
-
if (stat(description.control))
|
|
137
|
-
throw new Error("Apply cleanup left an unexplained control tree");
|
|
138
|
-
// Flush the first surviving parent even after a prior process removed the
|
|
139
|
-
// entire control tree but stopped before the SQL acknowledgment.
|
|
140
|
-
flushed.add(dirname(description.control));
|
|
141
|
-
const owners = new Set();
|
|
142
|
-
for (let directory of flushed) {
|
|
143
|
-
while (!stat(directory)) {
|
|
144
|
-
const parent = dirname(directory);
|
|
145
|
-
if (parent === directory)
|
|
146
|
-
throw new Error("Apply cleanup has no surviving deletion owner");
|
|
147
|
-
directory = parent;
|
|
148
|
-
}
|
|
149
|
-
const physical = stat(directory);
|
|
150
|
-
if (!physical?.isDirectory() || physical.isSymbolicLink()) {
|
|
151
|
-
throw new Error("Apply cleanup deletion owner is not a physical directory");
|
|
152
|
-
}
|
|
153
|
-
owners.add(directory);
|
|
154
|
-
}
|
|
155
|
-
if (process.platform !== "win32")
|
|
156
|
-
for (const directory of owners) {
|
|
157
|
-
const fd = openSync(directory, constants.O_RDONLY | (constants.O_NOFOLLOW ?? 0));
|
|
158
|
-
try {
|
|
159
|
-
fsyncSync(fd);
|
|
160
|
-
}
|
|
161
|
-
finally {
|
|
162
|
-
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G,MAAM,CAAC;QACrB,CAAC;QACD,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;QACjC,IAAI,CAAC,QAAQ,EAAE,WAAW,EAAE,IAAI,QAAQ,CAAC,cAAc,EAAE,EAAE,CAAC;YAC1D,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;QAC9E,CAAC;QACD,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACxB,CAAC;IACD,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO;QAAE,KAAK,MAAM,SAAS,IAAI,MAAM,EAAE,CAAC;YACjE,MAAM,EAAE,GAAG,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC,QAAQ,GAAG,CAAC,SAAS,CAAC,UAAU,IAAI,CAAC,CAAC,CAAC,CAAC;YACjF,IAAI,CAAC;gBAAC,SAAS,CAAC,EAAE,CAAC,CAAC;YAAC,CAAC;oBAAS,CAAC;gBAAC,SAAS,CAAC,EAAE,CAAC,CAAC;YAAC,CAAC;QACnD,CAAC;AACH,CAAC"}
|
package/dist/apply-recovery.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { type CloudEntityRecord, type EntityApplyIntent, type RepoIdentityEntry } from "@amalgm/live";
|
|
2
|
-
import type { ApplyCleanupBinding } from "./apply-cleanup.js";
|
|
3
|
-
export interface ApplyPreimage {
|
|
4
|
-
readonly path: string;
|
|
5
|
-
readonly rows: readonly {
|
|
6
|
-
readonly path: string;
|
|
7
|
-
readonly record: CloudEntityRecord;
|
|
8
|
-
/** Exact `device:inode` of the root and every container. */
|
|
9
|
-
readonly physical: string | null;
|
|
10
|
-
}[];
|
|
11
|
-
}
|
|
12
|
-
export interface ApplyRecovery {
|
|
13
|
-
readonly contract: "amalgm.apply-recovery@6";
|
|
14
|
-
readonly intent: EntityApplyIntent;
|
|
15
|
-
readonly target: CloudEntityRecord;
|
|
16
|
-
readonly targetPath: string;
|
|
17
|
-
readonly binding: ApplyCleanupBinding;
|
|
18
|
-
readonly source: ApplyPreimage | null;
|
|
19
|
-
readonly moves: readonly {
|
|
20
|
-
readonly uuid: string;
|
|
21
|
-
readonly source: ApplyPreimage;
|
|
22
|
-
readonly destination: string;
|
|
23
|
-
}[];
|
|
24
|
-
readonly relocated: readonly {
|
|
25
|
-
readonly uuid: string;
|
|
26
|
-
readonly source: ApplyPreimage;
|
|
27
|
-
}[];
|
|
28
|
-
/** Source preimage paths this intent keeps in place: local ground policy
|
|
29
|
-
* excludes and sharing never held, frozen before any effect. Verify
|
|
30
|
-
* accounts for exactly these extras. */
|
|
31
|
-
readonly remainder: readonly string[];
|
|
32
|
-
}
|
|
33
|
-
/** The frozen remainder as identity entries relative to the source root. */
|
|
34
|
-
export declare function applyRecoveryRemainder(recovery: ApplyRecovery): RepoIdentityEntry[];
|
|
35
|
-
export declare function applyPreimageRoot(preimage: ApplyPreimage): {
|
|
36
|
-
physical: string;
|
|
37
|
-
path: string;
|
|
38
|
-
record: CloudEntityRecord;
|
|
39
|
-
};
|
|
40
|
-
/** Each receipt lives in its binding's reserved control tree, so the
|
|
41
|
-
* binding it serves is known before the receipt can be read. */
|
|
42
|
-
export declare const applyControlDirectory: (root: string, intent: EntityApplyIntent) => string;
|
|
43
|
-
/** The binding root whose control tree holds `control`. */
|
|
44
|
-
export declare const applyControlRoot: (control: string) => string;
|
|
45
|
-
export declare function readApplyRecovery(control: string, intent: EntityApplyIntent): ApplyRecovery | null;
|
|
46
|
-
/** The caller flushes this exact file and control directory before any effect. */
|
|
47
|
-
export declare function writeApplyRecovery(control: string, value: ApplyRecovery): void;
|
package/dist/apply-recovery.js
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/** Immutable preimages for one existing Apply intent, beneath its control tree.
|
|
2
|
-
* These are recovery evidence, never a second entity inventory or shared state. */
|
|
3
|
-
import { readFileSync } from "node:fs";
|
|
4
|
-
import { dirname, isAbsolute, join } from "node:path";
|
|
5
|
-
import { LOCAL_DIR_NAME } from "@amalgm/core/identity";
|
|
6
|
-
import { assertApplyIntent, assertRecord, } from "@amalgm/live";
|
|
7
|
-
import { atomicJson } from "./filesystem.js";
|
|
8
|
-
/** The frozen remainder as identity entries relative to the source root. */
|
|
9
|
-
export function applyRecoveryRemainder(recovery) {
|
|
10
|
-
const kept = new Set(recovery.remainder);
|
|
11
|
-
return (recovery.source?.rows ?? []).filter(row => kept.has(row.path)).map(row => ({
|
|
12
|
-
path: row.path, uuid: row.record.uuid, type: row.record.type, payloadVersion: row.record.payloadVersion,
|
|
13
|
-
}));
|
|
14
|
-
}
|
|
15
|
-
export function applyPreimageRoot(preimage) {
|
|
16
|
-
const root = preimage.rows.find(row => row.path === "");
|
|
17
|
-
if (!root?.physical)
|
|
18
|
-
throw new Error("Apply preimage lacks its original root association");
|
|
19
|
-
return { ...root, physical: root.physical };
|
|
20
|
-
}
|
|
21
|
-
const physicalKeyValid = (key) => typeof key === "string" && /^\d+:\d+$/.test(key);
|
|
22
|
-
function validatePreimage(value) {
|
|
23
|
-
if (!value || !isAbsolute(value.path) || !Array.isArray(value.rows) || value.rows.length === 0) {
|
|
24
|
-
throw new Error("Apply recovery has no complete preimage");
|
|
25
|
-
}
|
|
26
|
-
const paths = new Set();
|
|
27
|
-
for (const row of value.rows) {
|
|
28
|
-
if (typeof row.path !== "string" || row.path.startsWith("/")
|
|
29
|
-
|| row.path.split("/").some((part) => part === "." || part === "..") || paths.has(row.path)) {
|
|
30
|
-
throw new Error("Apply recovery has an invalid preimage address");
|
|
31
|
-
}
|
|
32
|
-
assertRecord(row.record);
|
|
33
|
-
if (row.record.status !== "active")
|
|
34
|
-
throw new Error("Apply recovery preimage is not active");
|
|
35
|
-
const associated = row.path === "" || ["workspace", "folder", "repo.git"].includes(row.record.type);
|
|
36
|
-
if (associated ? !physicalKeyValid(row.physical) : row.physical !== null) {
|
|
37
|
-
throw new Error("Apply recovery preimage lacks its physical association");
|
|
38
|
-
}
|
|
39
|
-
paths.add(row.path);
|
|
40
|
-
}
|
|
41
|
-
if (!paths.has(""))
|
|
42
|
-
throw new Error("Apply recovery lacks its source identity");
|
|
43
|
-
}
|
|
44
|
-
/** Each receipt lives in its binding's reserved control tree, so the
|
|
45
|
-
* binding it serves is known before the receipt can be read. */
|
|
46
|
-
export const applyControlDirectory = (root, intent) => join(root, LOCAL_DIR_NAME, "apply", `${intent.entityId}-${intent.throughSequence}`);
|
|
47
|
-
/** The binding root whose control tree holds `control`. */
|
|
48
|
-
export const applyControlRoot = (control) => dirname(dirname(dirname(control)));
|
|
49
|
-
export function readApplyRecovery(control, intent) {
|
|
50
|
-
let encoded;
|
|
51
|
-
try {
|
|
52
|
-
encoded = readFileSync(join(control, "preimage.json"), "utf8");
|
|
53
|
-
}
|
|
54
|
-
catch (error) {
|
|
55
|
-
if (error.code === "ENOENT")
|
|
56
|
-
return null;
|
|
57
|
-
throw error;
|
|
58
|
-
}
|
|
59
|
-
const value = JSON.parse(encoded);
|
|
60
|
-
if (value.contract !== "amalgm.apply-recovery@6")
|
|
61
|
-
throw new Error("Unsupported Apply recovery contract");
|
|
62
|
-
assertApplyIntent(value.intent);
|
|
63
|
-
for (const field of ["attemptId", "authorityId", "entityId", "fromSequence", "throughSequence", "targetState", "targetMutationId", "targetType", "createdAt"]) {
|
|
64
|
-
if (value.intent[field] !== intent[field])
|
|
65
|
-
throw new Error("Apply recovery belongs to another intent");
|
|
66
|
-
}
|
|
67
|
-
assertRecord(value.target);
|
|
68
|
-
if (value.target.uuid !== intent.entityId || value.target.version !== intent.targetState
|
|
69
|
-
|| !isAbsolute(value.targetPath) || !Array.isArray(value.relocated) || !Array.isArray(value.moves)
|
|
70
|
-
|| value.target.type !== intent.targetType
|
|
71
|
-
|| !value.binding || !isAbsolute(value.binding.path)
|
|
72
|
-
|| !physicalKeyValid(value.binding.physical)) {
|
|
73
|
-
throw new Error("Apply recovery has a different accepted target");
|
|
74
|
-
}
|
|
75
|
-
if (value.source !== null)
|
|
76
|
-
validatePreimage(value.source);
|
|
77
|
-
const sourcePaths = new Set(value.source?.rows.map(row => row.path) ?? []);
|
|
78
|
-
if (!Array.isArray(value.remainder) || new Set(value.remainder).size !== value.remainder.length
|
|
79
|
-
|| value.remainder.some(path => path === "" || !sourcePaths.has(path))) {
|
|
80
|
-
throw new Error("Apply recovery remainder is not part of its source preimage");
|
|
81
|
-
}
|
|
82
|
-
for (const move of value.moves) {
|
|
83
|
-
validatePreimage(move.source);
|
|
84
|
-
if (!isAbsolute(move.destination) || applyPreimageRoot(move.source).record.uuid !== move.uuid)
|
|
85
|
-
throw new Error("Invalid Apply recovery move");
|
|
86
|
-
}
|
|
87
|
-
for (const relocation of value.relocated) {
|
|
88
|
-
validatePreimage(relocation.source);
|
|
89
|
-
if (relocation.source.rows.find((row) => row.path === "")?.record.uuid !== relocation.uuid) {
|
|
90
|
-
throw new Error("Apply recovery relocation has a different identity");
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
return value;
|
|
94
|
-
}
|
|
95
|
-
/** The caller flushes this exact file and control directory before any effect. */
|
|
96
|
-
export function writeApplyRecovery(control, value) {
|
|
97
|
-
atomicJson(join(control, "preimage.json"), value);
|
|
98
|
-
readApplyRecovery(control, value.intent);
|
|
99
|
-
}
|
|
100
|
-
//# sourceMappingURL=apply-recovery.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apply-recovery.js","sourceRoot":"","sources":["../src/apply-recovery.ts"],"names":[],"mappings":"AAAA;mFACmF;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EACL,iBAAiB,EAAE,YAAY,GAChC,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAyB7C,4EAA4E;AAC5E,MAAM,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M,IAAI,KAAK,CAAC,6DAA6D,CAAC,CAAC;IACjF,CAAC;IACD,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;QAC/B,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC9B,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI;YAAE,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;IAChJ,CAAC;IACD,KAAK,MAAM,UAAU,IAAI,KAAK,CAAC,SAAS,EAAE,CAAC;QACzC,gBAAgB,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAkC,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,EAAE,CAAC,EAAE,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC,IAAI,EAAE,CAAC;YAC1H,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;QACxE,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,kFAAkF;AAClF,MAAM,UAAU,kBAAkB,CAAC,OAAe,EAAE,KAAoB;IACtE,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,eAAe,CAAC,EAAE,KAAK,CAAC,CAAC;IAClD,iBAAiB,CAAC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;AAC3C,CAAC"}
|
package/dist/apply-rows.d.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/** The Apply tables' one reading of intents, terminal dispositions, history
|
|
2
|
-
* resolution and newer local work. The store reads these answers on the main
|
|
3
|
-
* thread; its saves (apply-saves.ts) read the same answers inside their
|
|
4
|
-
* savepoint on the saver thread. */
|
|
5
|
-
import { type AcceptedEntityRecord, type EntityApplyIntent, type EntityApplyRetirement } from "@amalgm/live";
|
|
6
|
-
import type Database from "better-sqlite3";
|
|
7
|
-
import type { ApplyCleanupDescription } from "./apply-cleanup.js";
|
|
8
|
-
export type CleanupDisposition = ApplyCleanupDescription | {
|
|
9
|
-
readonly contract: "amalgm.apply-no-ground@1";
|
|
10
|
-
};
|
|
11
|
-
export interface ApplyStateRow {
|
|
12
|
-
readonly resolvedThrough: number;
|
|
13
|
-
readonly materializedSequence: number | null;
|
|
14
|
-
readonly materializedRecordJson: string | null;
|
|
15
|
-
}
|
|
16
|
-
export interface ApplyRetirementRow {
|
|
17
|
-
readonly retirement: EntityApplyRetirement;
|
|
18
|
-
readonly cleanup: CleanupDisposition;
|
|
19
|
-
}
|
|
20
|
-
export declare const sameIntent: (left: EntityApplyIntent, right: EntityApplyIntent) => boolean;
|
|
21
|
-
export declare function readIntent(database: Database.Database, entityId: string, authorityId?: string): EntityApplyIntent | null;
|
|
22
|
-
export declare function recoveryLocation(database: Database.Database, intent: EntityApplyIntent): string | null;
|
|
23
|
-
export declare function readRetirement(database: Database.Database, intent: EntityApplyIntent): ApplyRetirementRow | null;
|
|
24
|
-
export declare function requireIntent(database: Database.Database, intent: EntityApplyIntent): EntityApplyIntent;
|
|
25
|
-
/** The terminal disposition a cleanup acknowledgement or description names. */
|
|
26
|
-
export declare function ownedCleanup(database: Database.Database, retirement: EntityApplyRetirement): CleanupDisposition;
|
|
27
|
-
export declare const applyState: (database: Database.Database, authorityId: string, entityId: string) => ApplyStateRow | undefined;
|
|
28
|
-
/** Where one entity's Apply history stands. Without a state row, an installed
|
|
29
|
-
* snapshot already resolved every record it contained, so the entity's first
|
|
30
|
-
* Inbox record after that watermark follows its earlier dense sequences.
|
|
31
|
-
* Selection and terminal commit both read this one answer. */
|
|
32
|
-
export declare function applyResolution(database: Database.Database, authorityId: string, entityId: string): {
|
|
33
|
-
readonly state: ApplyStateRow | undefined;
|
|
34
|
-
readonly resolvedThrough: number;
|
|
35
|
-
readonly rows: ReadonlyArray<{
|
|
36
|
-
readonly recordJson: string;
|
|
37
|
-
readonly deliverySequence: number;
|
|
38
|
-
}>;
|
|
39
|
-
};
|
|
40
|
-
/** Live's local-work gate over this entity's Outbox rows: one the authority
|
|
41
|
-
* has not sequenced yet (a pending row carries no sequence), or one it
|
|
42
|
-
* sequenced after the target. Each is its own seek into the entity's channel
|
|
43
|
-
* index; one disjunction would walk the entity's retained receipts. */
|
|
44
|
-
export declare function hasLocalWorkAfter(database: Database.Database, authorityId: string, entityId: string, targetSequence: number): boolean;
|
|
45
|
-
export interface OwnPublication {
|
|
46
|
-
readonly authorityId: string;
|
|
47
|
-
readonly entityId: string;
|
|
48
|
-
/** Where the selecting Apply work found this entity's history resolved. */
|
|
49
|
-
readonly resolvedThrough: number;
|
|
50
|
-
readonly globalSequence: number;
|
|
51
|
-
readonly mutationId: string;
|
|
52
|
-
}
|
|
53
|
-
/** This computer's own exact publication, when it alone can resolve the
|
|
54
|
-
* entity's open history: no intent, Inbox still starts where the work saw it
|
|
55
|
-
* and ends at this record, the retained Outbox receipt is its exact own
|
|
56
|
-
* acceptance, no local work follows it, and the sharing basis holds its
|
|
57
|
-
* result. Null otherwise; then the ordinary Apply journey decides. */
|
|
58
|
-
export declare function ownPublication(database: Database.Database, input: OwnPublication): {
|
|
59
|
-
readonly after: number;
|
|
60
|
-
readonly prior: ApplyStateRow | undefined;
|
|
61
|
-
readonly accepted: AcceptedEntityRecord;
|
|
62
|
-
} | null;
|
|
63
|
-
/** What an installed snapshot watermark resolves: each entity's retained
|
|
64
|
-
* history at or below it, and each intent whose target it already holds. */
|
|
65
|
-
export declare function snapshotHistory(database: Database.Database): {
|
|
66
|
-
readonly rows: ReadonlyArray<{
|
|
67
|
-
readonly authorityId: string;
|
|
68
|
-
readonly entityId: string;
|
|
69
|
-
readonly resolvedThrough: number;
|
|
70
|
-
}>;
|
|
71
|
-
readonly intents: readonly EntityApplyIntent[];
|
|
72
|
-
};
|