@amalgm/shell 0.1.164-preview.44185399271 → 0.1.164-preview.44991101539
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accepted-fold.js +0 -36
- package/dist/accepted-tail.js +0 -3
- package/dist/accepted-view.js +0 -1
- package/dist/agent-execution.js +0 -2
- package/dist/agent-instructions.js +0 -6
- package/dist/apply-attempt-memory.js +0 -5
- package/dist/apply-control.js +0 -50
- package/dist/apply-displaced-tree.js +0 -51
- package/dist/apply-durability.js +0 -16
- package/dist/apply-enter-build.js +2 -46
- package/dist/apply-enter-plan.js +0 -59
- package/dist/apply-fingerprint.js +0 -21
- package/dist/apply-git-held.js +4 -90
- package/dist/apply-git-storage.js +2 -38
- package/dist/apply-kept.js +0 -40
- package/dist/apply-local-work.js +0 -12
- package/dist/apply-map.js +18 -122
- package/dist/apply-showing.js +0 -71
- package/dist/apply-shown-again.js +0 -22
- package/dist/apply-spelling.js +0 -31
- package/dist/apply-trash-keep.js +5 -28
- package/dist/apply-window-cargo.js +0 -55
- package/dist/apply-window-ground.js +9 -71
- package/dist/apply-window-host.js +42 -421
- package/dist/apply-window-lane.js +0 -73
- package/dist/apply-window-line.js +0 -33
- package/dist/apply-window-recovery.js +0 -26
- package/dist/apply-window-reveal.js +0 -32
- package/dist/apply-window-rows.js +0 -53
- package/dist/apply-window-saves.js +0 -184
- package/dist/apply-window-store.js +0 -61
- package/dist/apply-window-verify.js +0 -42
- package/dist/authority-binding.js +0 -28
- package/dist/authorization/device-key.js +0 -1
- package/dist/authorization/index.js +0 -2
- package/dist/authorization/issuer.js +0 -1
- package/dist/authorization/key-store.js +0 -1
- package/dist/authorization/native-keyring.js +0 -1
- package/dist/authorization/recovery-client.js +0 -2
- package/dist/authorization/recovery-host.js +0 -1
- package/dist/authorization/recovery.js +0 -3
- package/dist/authorization/registration-http.js +0 -2
- package/dist/authorization/secret-process.js +0 -2
- package/dist/authorization/setup-http.js +0 -1
- package/dist/automations-cli-host.js +0 -2
- package/dist/background-error.js +0 -5
- package/dist/baseline-content.js +0 -3
- package/dist/billing/cli.js +266 -0
- package/dist/billing/mount.js +33 -0
- package/dist/billing/tools.js +138 -0
- package/dist/boot-identity.js +0 -12
- package/dist/browser-host.js +0 -15
- package/dist/builtin-agents.js +0 -8
- package/dist/capture-work.js +0 -9
- package/dist/captured-rows.js +4 -6
- package/dist/cargo-group.js +0 -48
- package/dist/cargo-journal.js +0 -36
- package/dist/channel-session.js +0 -9
- package/dist/chat-composition.js +0 -4
- package/dist/chat-host.js +0 -4
- package/dist/chat-toolbox.js +0 -2
- package/dist/chat-tools.js +0 -3
- package/dist/cli-arguments.js +17 -3
- package/dist/cli-commands.js +272 -0
- package/dist/cli.js +36 -72
- package/dist/construct-apply-host.js +0 -24
- package/dist/construct-door.js +3 -15
- package/dist/construct-ledger.js +3 -21
- package/dist/construct-products.js +0 -7
- package/dist/content-cache-collection.js +1 -27
- package/dist/content-cache-fences.js +0 -30
- package/dist/content-cache-host.js +0 -216
- package/dist/content-cache-index.js +0 -24
- package/dist/content-cache-namespace.js +0 -52
- package/dist/content-cache-partials.js +0 -23
- package/dist/content-cache-retention.js +1 -53
- package/dist/content-capture-pool.js +6 -134
- package/dist/content-capture-worker.js +4 -14
- package/dist/content-clock.js +1 -177
- package/dist/content-direct.js +0 -39
- package/dist/content-failure.js +0 -8
- package/dist/content-qualification.js +0 -56
- package/dist/content-wire-codec.js +0 -8
- package/dist/credentials-host.js +0 -2
- package/dist/derived-relocation.js +0 -27
- package/dist/detection/accepted-result.js +0 -14
- package/dist/detection/admission-save.js +0 -10
- package/dist/detection/admission-units.js +3 -93
- package/dist/detection/alias-discovery.js +0 -19
- package/dist/detection/alias-examination.js +0 -22
- package/dist/detection/apply-ownership.js +4 -52
- package/dist/detection/basis-advanced.js +0 -11
- package/dist/detection/cached-replay.js +0 -20
- package/dist/detection/capture-outcome.js +0 -20
- package/dist/detection/container-membership.js +0 -19
- package/dist/detection/detect-cancelled.js +0 -3
- package/dist/detection/directory-proof.js +0 -20
- package/dist/detection/dispositions.js +0 -29
- package/dist/detection/examinations.js +0 -32
- package/dist/detection/ground-proof.js +20 -130
- package/dist/detection/ground-reader.js +0 -9
- package/dist/detection/identity-discovery.js +15 -60
- package/dist/detection/maintenance-sweep.js +1 -73
- package/dist/detection/notebook-basis.js +1 -5
- package/dist/detection/owed-examinations.js +0 -4
- package/dist/detection/owed-selection.js +14 -40
- package/dist/detection/policy-owed.js +165 -26
- package/dist/detection/racy-close.js +46 -0
- package/dist/detection/reconciliation-coverage.js +0 -4
- package/dist/detection/repository-state.js +6 -56
- package/dist/detection/reveal-save.js +0 -2
- package/dist/detection/root-examination.js +32 -105
- package/dist/detection/root-walk.js +98 -295
- package/dist/detection/runtime.js +57 -153
- package/dist/detection/scope-frame.js +1 -37
- package/dist/detection/scoped-identity-port.js +0 -21
- package/dist/detection/sealed-folders.js +57 -0
- package/dist/detection/skip-policy.js +185 -0
- package/dist/detection/spelled-lookup.js +0 -19
- package/dist/detection/storage-holder.js +60 -0
- package/dist/detection/thread-database.js +0 -9
- package/dist/detection/unread-content.js +0 -13
- package/dist/detection/unreadable.js +0 -3
- package/dist/detection/walk-law.js +0 -20
- package/dist/detection/walked-roots.js +0 -6
- package/dist/detection/withheld.js +0 -46
- package/dist/development/fly-guest.js +0 -3
- package/dist/development/fly.js +2 -11
- package/dist/development/profile.js +0 -8
- package/dist/drive/cloud-files/asks.js +5 -48
- package/dist/drive/cloud-files/binding.js +0 -14
- package/dist/drive/cloud-files/contents.js +14 -57
- package/dist/drive/cloud-files/door.js +5 -45
- package/dist/drive/cloud-files/paths.js +4 -37
- package/dist/drive/cloud-files/populated.js +0 -14
- package/dist/drive/cloud-files/reconcile.js +18 -97
- package/dist/drive/cloud-files/sync-root.js +7 -21
- package/dist/drive/cloud-files/turns.js +0 -25
- package/dist/drive/cloud-files/writes.js +19 -122
- package/dist/drive/computer.js +0 -19
- package/dist/drive/fuse-opens.js +0 -31
- package/dist/drive/fuse.js +23 -43
- package/dist/drive/kept.js +32 -80
- package/dist/drive/kernel.js +12 -24
- package/dist/drive/layout.js +31 -20
- package/dist/drive/mount.js +53 -125
- package/dist/drive/mountpoint.js +0 -19
- package/dist/drive/names.js +17 -0
- package/dist/drive/nfs/apple-double.js +4 -29
- package/dist/drive/nfs/attributes.js +3 -19
- package/dist/drive/nfs/handles.js +0 -37
- package/dist/drive/nfs/mount3.js +0 -4
- package/dist/drive/nfs/nfs3.js +4 -65
- package/dist/drive/nfs/rpc.js +0 -19
- package/dist/drive/nfs/server.js +0 -14
- package/dist/drive/nfs/xdr.js +0 -15
- package/dist/drive/nfs.js +34 -90
- package/dist/drive/operations.js +46 -120
- package/dist/drive/shelf.js +0 -12
- package/dist/drive-maps.js +54 -0
- package/dist/drive-program/client.js +128 -0
- package/dist/drive-program/ports.js +49 -0
- package/dist/drive-program/program.js +82 -0
- package/dist/drive-program/protocol.js +2 -0
- package/dist/durability-barrier.js +0 -60
- package/dist/entity-access-wire.js +0 -9
- package/dist/entity-channel-holdings.js +0 -17
- package/dist/entity-grant-watch.js +0 -8
- package/dist/entity-record-observability.js +0 -4
- package/dist/entity-record-saves.js +0 -23
- package/dist/entity-record-store.js +0 -51
- package/dist/error-facts.js +1 -3
- package/dist/faults/drain.js +2 -32
- package/dist/faults/queue.js +0 -22
- package/dist/faults/show.js +0 -6
- package/dist/file-time.js +21 -0
- package/dist/files-browser-host.js +15 -7
- package/dist/files-mcp-host.js +0 -6
- package/dist/files-observability.js +0 -1
- package/dist/files-program/client.js +90 -320
- package/dist/files-program/journeys.js +0 -4
- package/dist/files-program/program.js +67 -162
- package/dist/files-program/protocol.js +0 -5
- package/dist/files-register-host.js +8 -56
- package/dist/files-trace.js +0 -39
- package/dist/files-watch-host.js +226 -0
- package/dist/filesystem.js +0 -39
- package/dist/flush.js +0 -37
- package/dist/forward.js +0 -8
- package/dist/gateway.js +0 -9
- package/dist/git/ground-owners.js +0 -11
- package/dist/git/held-package.js +0 -43
- package/dist/git/home.js +79 -67
- package/dist/git/marker.js +0 -9
- package/dist/git/named-objects.js +0 -32
- package/dist/git/objects.js +0 -23
- package/dist/git/play.js +0 -42
- package/dist/git/quarantine.js +0 -47
- package/dist/git/rail.js +55 -286
- package/dist/git/read-state.js +8 -70
- package/dist/git/repository.js +0 -43
- package/dist/git/write-files.js +16 -84
- package/dist/git-binding.js +58 -80
- package/dist/git-cat-file.js +0 -18
- package/dist/git-command.js +1 -71
- package/dist/git-index-entries.js +0 -5
- package/dist/git-index-format.js +0 -71
- package/dist/git-install-lines.js +0 -2
- package/dist/git-launcher-process.js +0 -19
- package/dist/git-launcher.js +1 -33
- package/dist/git-proven-blobs.js +48 -0
- package/dist/graph-heads.js +0 -14
- package/dist/ground-basis.js +1 -183
- package/dist/ground-checkpoint-worker.js +0 -26
- package/dist/ground-checkpoints.js +0 -14
- package/dist/ground-contract.js +1 -43
- package/dist/ground-coordination.js +0 -82
- package/dist/ground-database.js +0 -88
- package/dist/ground-differences.js +0 -6
- package/dist/ground-holders.js +0 -8
- package/dist/ground-initialization-worker.js +0 -7
- package/dist/ground-initialization.js +0 -19
- package/dist/ground-install-saves.js +0 -15
- package/dist/ground-inventory-schema.js +3 -142
- package/dist/ground-marks.js +0 -16
- package/dist/ground-places.js +33 -0
- package/dist/ground-profile.js +0 -77
- package/dist/ground-reads.js +0 -58
- package/dist/ground-relations.js +0 -43
- package/dist/ground-root-index.js +0 -7
- package/dist/ground-row.js +5 -29
- package/dist/ground-save-ops.js +0 -14
- package/dist/ground-saver-worker.js +3 -56
- package/dist/ground-saver.js +0 -52
- package/dist/ground-store.js +10 -144
- package/dist/held-ground.js +60 -0
- package/dist/index.js +0 -1
- package/dist/initial-publication.js +0 -7
- package/dist/install-from-git.js +42 -0
- package/dist/installation/environment.js +8 -2
- package/dist/installation/lease.js +0 -3
- package/dist/installation/ownership.js +0 -13
- package/dist/installation/selection.js +0 -2
- package/dist/keychain/cli-io.js +0 -7
- package/dist/keychain/cli.js +0 -9
- package/dist/keychain/host.js +0 -7
- package/dist/keychain/http-mount.js +0 -10
- package/dist/keychain/key-wire.js +0 -8
- package/dist/keychain/presence-mac.js +0 -7
- package/dist/keychain/presence.js +0 -7
- package/dist/keychain/rail.js +0 -7
- package/dist/keychain/secret-apply.js +0 -11
- package/dist/keychain/shelf-from-ledger.js +0 -7
- package/dist/keychain/use-log.js +0 -6
- package/dist/keychain/vault-file.js +0 -7
- package/dist/line-judge.js +0 -41
- package/dist/line-loops.js +0 -3
- package/dist/link-target.js +0 -38
- package/dist/local-host.js +0 -16
- package/dist/loop-watch.js +0 -13
- package/dist/machine-host.js +36 -123
- package/dist/main.js +4 -5
- package/dist/materialize-records.js +109 -112
- package/dist/materialized-graph.js +0 -1
- package/dist/module-thread.js +0 -8
- package/dist/mount.js +0 -7
- package/dist/native/cloud-files.node +0 -0
- package/dist/native/windows-fs.node +0 -0
- package/dist/official-mcp-host.js +0 -2
- package/dist/on-demand-roots.js +0 -4
- package/dist/open-standing.js +0 -36
- package/dist/own-folders.js +56 -0
- package/dist/own-results.js +0 -31
- package/dist/package-pages.js +0 -13
- package/dist/patient-flush.js +0 -16
- package/dist/physical-path-witness.js +0 -28
- package/dist/placement-owed.js +0 -8
- package/dist/placement-tidy.js +0 -68
- package/dist/platform-product-host.js +0 -3
- package/dist/platform-tools.js +0 -3
- package/dist/process-lifecycle.js +0 -7
- package/dist/product-cli.js +0 -10
- package/dist/pty-host.js +0 -22
- package/dist/received-state.js +0 -46
- package/dist/reference-placement.js +0 -30
- package/dist/registry-graph.js +0 -89
- package/dist/registry-page-cache.js +4 -12
- package/dist/release-catalog.js +0 -3
- package/dist/root-install.js +2 -36
- package/dist/runtime-activity.js +0 -14
- package/dist/runtime-argv.js +0 -8
- package/dist/runtime-command-host.js +0 -17
- package/dist/runtime-node-flags.js +0 -10
- package/dist/runtime-wire-host.js +0 -4
- package/dist/service/adapter.js +0 -6
- package/dist/service/cli.js +12 -46
- package/dist/service/control.js +0 -3
- package/dist/service/index.js +0 -4
- package/dist/service/keepalive.js +2 -21
- package/dist/service/launchd.js +0 -8
- package/dist/service/owner.js +0 -1
- package/dist/service/policy.js +0 -7
- package/dist/service/portable.js +0 -8
- package/dist/service/recovery.js +0 -9
- package/dist/service/registration.js +0 -29
- package/dist/service/systemd-unit.js +0 -4
- package/dist/service/systemd.js +0 -9
- package/dist/service/windows-action.js +0 -12
- package/dist/service/windows-task.js +0 -10
- package/dist/service/windows.js +0 -4
- package/dist/sha256.js +0 -2
- package/dist/sharing-admission.js +0 -16
- package/dist/sharing-host.js +0 -7
- package/dist/sharing-mcp-host.js +0 -6
- package/dist/snapshot-delivery-baseline.js +0 -29
- package/dist/socket-marking.js +0 -9
- package/dist/source-proof.js +0 -29
- package/dist/source-signature.js +4 -93
- package/dist/source-witness.js +0 -6
- package/dist/sqlite-durability.js +0 -12
- package/dist/sqlite.js +0 -10
- package/dist/state-host.js +0 -2
- package/dist/state-store.js +1 -4
- package/dist/supervised-program/child.js +136 -0
- package/dist/supervised-program/messages.js +1 -0
- package/dist/supervised-program/parent.js +249 -0
- package/dist/sync-address.js +0 -16
- package/dist/sync-cli.js +0 -9
- package/dist/sync-setting.js +0 -5
- package/dist/tool-mcp-client.js +0 -2
- package/dist/toolbox-host.js +0 -2
- package/dist/transfer-instrumentation.js +0 -21
- package/dist/turns.js +0 -41
- package/dist/updates/artifacts.js +0 -56
- package/dist/updates/bootstrap.js +0 -53
- package/dist/updates/controller.js +1 -25
- package/dist/updates/isolated-command-lifetime.js +0 -13
- package/dist/updates/locked-packages.js +0 -5
- package/dist/updates/store.js +0 -11
- package/dist/updates/trust.js +0 -6
- package/dist/user-ground-host.js +162 -1501
- package/dist/watching/fsevents.js +3 -41
- package/dist/watching/git-storage.js +0 -24
- package/dist/watching/host.js +65 -275
- package/dist/watching/index.js +1 -2
- package/dist/watching/inotify.js +0 -31
- package/dist/windows-fs.js +0 -5
- package/dist/windows-owner-only.js +0 -17
- package/dist/wire-binary.js +0 -4
- package/dist/wire-client.js +0 -42
- package/dist/wire-join.js +0 -11
- package/dist/wire-outbox.js +0 -29
- package/dist/wire-request-scope.js +0 -3
- package/dist/wire-socket-relay.js +0 -53
- package/dist/workspace-add-intent.js +2 -11
- package/dist/workspace-add-staging.js +4 -99
- package/dist/workspace-host.js +0 -5
- package/dist/workspace-store.js +0 -6
- package/examinations/fixtures/private-wire-authority.js +14 -10
- package/examinations/native-service.mjs +1 -1
- package/examinations/runtime-upgrade.native-test.mjs +11 -8
- package/npm-shrinkwrap.json +14 -14
- package/package.json +8 -17
- package/PURPOSE.md +0 -1956
- package/dist/accepted-fold.d.ts +0 -51
- package/dist/accepted-fold.js.map +0 -1
- package/dist/accepted-tail.d.ts +0 -36
- package/dist/accepted-tail.js.map +0 -1
- package/dist/accepted-view.d.ts +0 -27
- package/dist/accepted-view.js.map +0 -1
- package/dist/agent-execution.d.ts +0 -83
- package/dist/agent-execution.js.map +0 -1
- package/dist/agent-instructions.d.ts +0 -7
- package/dist/agent-instructions.js.map +0 -1
- package/dist/apply-attempt-memory.d.ts +0 -13
- package/dist/apply-attempt-memory.js.map +0 -1
- package/dist/apply-control.d.ts +0 -85
- package/dist/apply-control.js.map +0 -1
- package/dist/apply-displaced-tree.d.ts +0 -63
- package/dist/apply-displaced-tree.js.map +0 -1
- package/dist/apply-durability.d.ts +0 -33
- package/dist/apply-durability.js.map +0 -1
- package/dist/apply-enter-build.d.ts +0 -91
- package/dist/apply-enter-build.js.map +0 -1
- package/dist/apply-enter-plan.d.ts +0 -79
- package/dist/apply-enter-plan.js.map +0 -1
- package/dist/apply-fingerprint.d.ts +0 -39
- package/dist/apply-fingerprint.js.map +0 -1
- package/dist/apply-git-held.d.ts +0 -29
- package/dist/apply-git-held.js.map +0 -1
- package/dist/apply-git-storage.d.ts +0 -38
- package/dist/apply-git-storage.js.map +0 -1
- package/dist/apply-kept.d.ts +0 -42
- package/dist/apply-kept.js.map +0 -1
- package/dist/apply-local-work.d.ts +0 -41
- package/dist/apply-local-work.js.map +0 -1
- package/dist/apply-map.d.ts +0 -116
- package/dist/apply-map.js.map +0 -1
- package/dist/apply-showing.d.ts +0 -104
- package/dist/apply-showing.js.map +0 -1
- package/dist/apply-shown-again.d.ts +0 -28
- package/dist/apply-shown-again.js.map +0 -1
- package/dist/apply-spelling.d.ts +0 -35
- package/dist/apply-spelling.js.map +0 -1
- package/dist/apply-trash-keep.d.ts +0 -96
- package/dist/apply-trash-keep.js.map +0 -1
- package/dist/apply-window-cargo.d.ts +0 -54
- package/dist/apply-window-cargo.js.map +0 -1
- package/dist/apply-window-ground.d.ts +0 -130
- package/dist/apply-window-ground.js.map +0 -1
- package/dist/apply-window-host.d.ts +0 -136
- package/dist/apply-window-host.js.map +0 -1
- package/dist/apply-window-lane.d.ts +0 -30
- package/dist/apply-window-lane.js.map +0 -1
- package/dist/apply-window-line.d.ts +0 -31
- package/dist/apply-window-line.js.map +0 -1
- package/dist/apply-window-recovery.d.ts +0 -5
- package/dist/apply-window-recovery.js.map +0 -1
- package/dist/apply-window-reveal.d.ts +0 -22
- package/dist/apply-window-reveal.js.map +0 -1
- package/dist/apply-window-rows.d.ts +0 -144
- package/dist/apply-window-rows.js.map +0 -1
- package/dist/apply-window-saves.d.ts +0 -224
- package/dist/apply-window-saves.js.map +0 -1
- package/dist/apply-window-store.d.ts +0 -126
- package/dist/apply-window-store.js.map +0 -1
- package/dist/apply-window-verify.d.ts +0 -65
- package/dist/apply-window-verify.js.map +0 -1
- package/dist/authority-binding.d.ts +0 -9
- package/dist/authority-binding.js.map +0 -1
- package/dist/authorization/device-key.d.ts +0 -19
- package/dist/authorization/device-key.js.map +0 -1
- package/dist/authorization/index.d.ts +0 -65
- package/dist/authorization/index.js.map +0 -1
- package/dist/authorization/issuer.d.ts +0 -11
- package/dist/authorization/issuer.js.map +0 -1
- package/dist/authorization/key-store.d.ts +0 -16
- package/dist/authorization/key-store.js.map +0 -1
- package/dist/authorization/native-keyring.d.ts +0 -8
- package/dist/authorization/native-keyring.js.map +0 -1
- package/dist/authorization/recovery-client.d.ts +0 -19
- package/dist/authorization/recovery-client.js.map +0 -1
- package/dist/authorization/recovery-host.d.ts +0 -30
- package/dist/authorization/recovery-host.js.map +0 -1
- package/dist/authorization/recovery.d.ts +0 -13
- package/dist/authorization/recovery.js.map +0 -1
- package/dist/authorization/registration-http.d.ts +0 -5
- package/dist/authorization/registration-http.js.map +0 -1
- package/dist/authorization/secret-process.d.ts +0 -2
- package/dist/authorization/secret-process.js.map +0 -1
- package/dist/authorization/setup-http.d.ts +0 -5
- package/dist/authorization/setup-http.js.map +0 -1
- package/dist/automations-cli-host.d.ts +0 -4
- package/dist/automations-cli-host.js.map +0 -1
- package/dist/background-error.d.ts +0 -4
- package/dist/background-error.js.map +0 -1
- package/dist/baseline-content.d.ts +0 -12
- package/dist/baseline-content.js.map +0 -1
- package/dist/boot-identity.d.ts +0 -1
- package/dist/boot-identity.js.map +0 -1
- package/dist/browser-host.d.ts +0 -30
- package/dist/browser-host.js.map +0 -1
- package/dist/builtin-agents.d.ts +0 -8
- package/dist/builtin-agents.js.map +0 -1
- package/dist/capture-work.d.ts +0 -8
- package/dist/capture-work.js.map +0 -1
- package/dist/captured-rows.d.ts +0 -33
- package/dist/captured-rows.js.map +0 -1
- package/dist/cargo-group.d.ts +0 -59
- package/dist/cargo-group.js.map +0 -1
- package/dist/cargo-journal.d.ts +0 -45
- package/dist/cargo-journal.js.map +0 -1
- package/dist/channel-session.d.ts +0 -60
- package/dist/channel-session.js.map +0 -1
- package/dist/chat-composition.d.ts +0 -30
- package/dist/chat-composition.js.map +0 -1
- package/dist/chat-host.d.ts +0 -30
- package/dist/chat-host.js.map +0 -1
- package/dist/chat-toolbox.d.ts +0 -10
- package/dist/chat-toolbox.js.map +0 -1
- package/dist/chat-tools.d.ts +0 -23
- package/dist/chat-tools.js.map +0 -1
- package/dist/cli-arguments.d.ts +0 -8
- package/dist/cli-arguments.js.map +0 -1
- package/dist/cli.d.ts +0 -10
- package/dist/cli.js.map +0 -1
- package/dist/construct-apply-host.d.ts +0 -64
- package/dist/construct-apply-host.js.map +0 -1
- package/dist/construct-door.d.ts +0 -39
- package/dist/construct-door.js.map +0 -1
- package/dist/construct-ledger.d.ts +0 -33
- package/dist/construct-ledger.js.map +0 -1
- package/dist/construct-products.d.ts +0 -22
- package/dist/construct-products.js.map +0 -1
- package/dist/content-cache-collection.d.ts +0 -25
- package/dist/content-cache-collection.js.map +0 -1
- package/dist/content-cache-fences.d.ts +0 -27
- package/dist/content-cache-fences.js.map +0 -1
- package/dist/content-cache-host.d.ts +0 -269
- package/dist/content-cache-host.js.map +0 -1
- package/dist/content-cache-index.d.ts +0 -59
- package/dist/content-cache-index.js.map +0 -1
- package/dist/content-cache-namespace.d.ts +0 -53
- package/dist/content-cache-namespace.js.map +0 -1
- package/dist/content-cache-partials.d.ts +0 -37
- package/dist/content-cache-partials.js.map +0 -1
- package/dist/content-cache-retention.d.ts +0 -38
- package/dist/content-cache-retention.js.map +0 -1
- package/dist/content-capture-pool.d.ts +0 -274
- package/dist/content-capture-pool.js.map +0 -1
- package/dist/content-capture-worker.d.ts +0 -7
- package/dist/content-capture-worker.js.map +0 -1
- package/dist/content-clock.d.ts +0 -68
- package/dist/content-clock.js.map +0 -1
- package/dist/content-direct.d.ts +0 -56
- package/dist/content-direct.js.map +0 -1
- package/dist/content-failure.d.ts +0 -18
- package/dist/content-failure.js.map +0 -1
- package/dist/content-qualification.d.ts +0 -72
- package/dist/content-qualification.js.map +0 -1
- package/dist/content-wire-codec.d.ts +0 -13
- package/dist/content-wire-codec.js.map +0 -1
- package/dist/credentials-host.d.ts +0 -5
- package/dist/credentials-host.js.map +0 -1
- package/dist/derived-relocation.d.ts +0 -31
- package/dist/derived-relocation.js.map +0 -1
- package/dist/detection/accepted-result.d.ts +0 -31
- package/dist/detection/accepted-result.js.map +0 -1
- package/dist/detection/admission-save.d.ts +0 -66
- package/dist/detection/admission-save.js.map +0 -1
- package/dist/detection/admission-units.d.ts +0 -78
- package/dist/detection/admission-units.js.map +0 -1
- package/dist/detection/alias-discovery.d.ts +0 -12
- package/dist/detection/alias-discovery.js.map +0 -1
- package/dist/detection/alias-examination.d.ts +0 -33
- package/dist/detection/alias-examination.js.map +0 -1
- package/dist/detection/apply-ownership.d.ts +0 -107
- package/dist/detection/apply-ownership.js.map +0 -1
- package/dist/detection/basis-advanced.d.ts +0 -15
- package/dist/detection/basis-advanced.js.map +0 -1
- package/dist/detection/cached-replay.d.ts +0 -38
- package/dist/detection/cached-replay.js.map +0 -1
- package/dist/detection/capture-outcome.d.ts +0 -16
- package/dist/detection/capture-outcome.js.map +0 -1
- package/dist/detection/container-membership.d.ts +0 -20
- package/dist/detection/container-membership.js.map +0 -1
- package/dist/detection/detect-cancelled.d.ts +0 -6
- package/dist/detection/detect-cancelled.js.map +0 -1
- package/dist/detection/directory-proof.d.ts +0 -47
- package/dist/detection/directory-proof.js.map +0 -1
- package/dist/detection/dispositions.d.ts +0 -107
- package/dist/detection/dispositions.js.map +0 -1
- package/dist/detection/examinations.d.ts +0 -33
- package/dist/detection/examinations.js.map +0 -1
- package/dist/detection/ground-proof.d.ts +0 -154
- package/dist/detection/ground-proof.js.map +0 -1
- package/dist/detection/ground-reader.d.ts +0 -29
- package/dist/detection/ground-reader.js.map +0 -1
- package/dist/detection/identity-discovery.d.ts +0 -45
- package/dist/detection/identity-discovery.js.map +0 -1
- package/dist/detection/maintenance-sweep.d.ts +0 -111
- package/dist/detection/maintenance-sweep.js.map +0 -1
- package/dist/detection/notebook-basis.d.ts +0 -24
- package/dist/detection/notebook-basis.js.map +0 -1
- package/dist/detection/owed-examinations.d.ts +0 -22
- package/dist/detection/owed-examinations.js.map +0 -1
- package/dist/detection/owed-selection.d.ts +0 -54
- package/dist/detection/owed-selection.js.map +0 -1
- package/dist/detection/policy-owed.d.ts +0 -17
- package/dist/detection/policy-owed.js.map +0 -1
- package/dist/detection/reconciliation-coverage.d.ts +0 -7
- package/dist/detection/reconciliation-coverage.js.map +0 -1
- package/dist/detection/repository-state.d.ts +0 -44
- package/dist/detection/repository-state.js.map +0 -1
- package/dist/detection/reveal-save.d.ts +0 -17
- package/dist/detection/reveal-save.js.map +0 -1
- package/dist/detection/root-examination.d.ts +0 -106
- package/dist/detection/root-examination.js.map +0 -1
- package/dist/detection/root-walk.d.ts +0 -191
- package/dist/detection/root-walk.js.map +0 -1
- package/dist/detection/runtime.d.ts +0 -144
- package/dist/detection/runtime.js.map +0 -1
- package/dist/detection/scope-frame.d.ts +0 -82
- package/dist/detection/scope-frame.js.map +0 -1
- package/dist/detection/scoped-identity-port.d.ts +0 -35
- package/dist/detection/scoped-identity-port.js.map +0 -1
- package/dist/detection/sharing-policy.d.ts +0 -19
- package/dist/detection/sharing-policy.js +0 -39
- package/dist/detection/sharing-policy.js.map +0 -1
- package/dist/detection/spelled-lookup.d.ts +0 -20
- package/dist/detection/spelled-lookup.js.map +0 -1
- package/dist/detection/thread-database.d.ts +0 -4
- package/dist/detection/thread-database.js.map +0 -1
- package/dist/detection/unread-content.d.ts +0 -20
- package/dist/detection/unread-content.js.map +0 -1
- package/dist/detection/unreadable.d.ts +0 -11
- package/dist/detection/unreadable.js.map +0 -1
- package/dist/detection/walk-law.d.ts +0 -25
- package/dist/detection/walk-law.js.map +0 -1
- package/dist/detection/walked-roots.d.ts +0 -17
- package/dist/detection/walked-roots.js.map +0 -1
- package/dist/detection/withheld.d.ts +0 -100
- package/dist/detection/withheld.js.map +0 -1
- package/dist/development/fly-guest.d.ts +0 -21
- package/dist/development/fly-guest.js.map +0 -1
- package/dist/development/fly.d.ts +0 -13
- package/dist/development/fly.js.map +0 -1
- package/dist/development/profile.d.ts +0 -34
- package/dist/development/profile.js.map +0 -1
- package/dist/drive/cloud-files/asks.d.ts +0 -7
- package/dist/drive/cloud-files/asks.js.map +0 -1
- package/dist/drive/cloud-files/binding.d.ts +0 -111
- package/dist/drive/cloud-files/binding.js.map +0 -1
- package/dist/drive/cloud-files/contents.d.ts +0 -82
- package/dist/drive/cloud-files/contents.js.map +0 -1
- package/dist/drive/cloud-files/door.d.ts +0 -11
- package/dist/drive/cloud-files/door.js.map +0 -1
- package/dist/drive/cloud-files/paths.d.ts +0 -42
- package/dist/drive/cloud-files/paths.js.map +0 -1
- package/dist/drive/cloud-files/populated.d.ts +0 -15
- package/dist/drive/cloud-files/populated.js.map +0 -1
- package/dist/drive/cloud-files/reconcile.d.ts +0 -17
- package/dist/drive/cloud-files/reconcile.js.map +0 -1
- package/dist/drive/cloud-files/sync-root.d.ts +0 -34
- package/dist/drive/cloud-files/sync-root.js.map +0 -1
- package/dist/drive/cloud-files/turns.d.ts +0 -9
- package/dist/drive/cloud-files/turns.js.map +0 -1
- package/dist/drive/cloud-files/writes.d.ts +0 -27
- package/dist/drive/cloud-files/writes.js.map +0 -1
- package/dist/drive/computer.d.ts +0 -19
- package/dist/drive/computer.js.map +0 -1
- package/dist/drive/fuse-opens.d.ts +0 -32
- package/dist/drive/fuse-opens.js.map +0 -1
- package/dist/drive/fuse.d.ts +0 -36
- package/dist/drive/fuse.js.map +0 -1
- package/dist/drive/kept.d.ts +0 -78
- package/dist/drive/kept.js.map +0 -1
- package/dist/drive/kernel.d.ts +0 -17
- package/dist/drive/kernel.js.map +0 -1
- package/dist/drive/layout.d.ts +0 -18
- package/dist/drive/layout.js.map +0 -1
- package/dist/drive/mount.d.ts +0 -107
- package/dist/drive/mount.js.map +0 -1
- package/dist/drive/mountpoint.d.ts +0 -14
- package/dist/drive/mountpoint.js.map +0 -1
- package/dist/drive/nfs/apple-double.d.ts +0 -6
- package/dist/drive/nfs/apple-double.js.map +0 -1
- package/dist/drive/nfs/attributes.d.ts +0 -64
- package/dist/drive/nfs/attributes.js.map +0 -1
- package/dist/drive/nfs/handles.d.ts +0 -44
- package/dist/drive/nfs/handles.js.map +0 -1
- package/dist/drive/nfs/mount3.d.ts +0 -16
- package/dist/drive/nfs/mount3.js.map +0 -1
- package/dist/drive/nfs/nfs3.d.ts +0 -27
- package/dist/drive/nfs/nfs3.js.map +0 -1
- package/dist/drive/nfs/rpc.d.ts +0 -66
- package/dist/drive/nfs/rpc.js.map +0 -1
- package/dist/drive/nfs/server.d.ts +0 -30
- package/dist/drive/nfs/server.js.map +0 -1
- package/dist/drive/nfs/xdr.d.ts +0 -44
- package/dist/drive/nfs/xdr.js.map +0 -1
- package/dist/drive/nfs.d.ts +0 -58
- package/dist/drive/nfs.js.map +0 -1
- package/dist/drive/operations.d.ts +0 -180
- package/dist/drive/operations.js.map +0 -1
- package/dist/drive/shelf.d.ts +0 -9
- package/dist/drive/shelf.js.map +0 -1
- package/dist/durability-barrier.d.ts +0 -66
- package/dist/durability-barrier.js.map +0 -1
- package/dist/entity-access-wire.d.ts +0 -33
- package/dist/entity-access-wire.js.map +0 -1
- package/dist/entity-channel-holdings.d.ts +0 -26
- package/dist/entity-channel-holdings.js.map +0 -1
- package/dist/entity-grant-watch.d.ts +0 -9
- package/dist/entity-grant-watch.js.map +0 -1
- package/dist/entity-record-observability.d.ts +0 -13
- package/dist/entity-record-observability.js.map +0 -1
- package/dist/entity-record-saves.d.ts +0 -47
- package/dist/entity-record-saves.js.map +0 -1
- package/dist/entity-record-store.d.ts +0 -60
- package/dist/entity-record-store.js.map +0 -1
- package/dist/error-facts.d.ts +0 -24
- package/dist/error-facts.js.map +0 -1
- package/dist/faults/drain.d.ts +0 -27
- package/dist/faults/drain.js.map +0 -1
- package/dist/faults/queue.d.ts +0 -46
- package/dist/faults/queue.js.map +0 -1
- package/dist/faults/show.d.ts +0 -7
- package/dist/faults/show.js.map +0 -1
- package/dist/files-browser-host.d.ts +0 -9
- package/dist/files-browser-host.js.map +0 -1
- package/dist/files-mcp-host.d.ts +0 -58
- package/dist/files-mcp-host.js.map +0 -1
- package/dist/files-observability.d.ts +0 -29
- package/dist/files-observability.js.map +0 -1
- package/dist/files-program/client.d.ts +0 -136
- package/dist/files-program/client.js.map +0 -1
- package/dist/files-program/journeys.d.ts +0 -15
- package/dist/files-program/journeys.js.map +0 -1
- package/dist/files-program/program.d.ts +0 -1
- package/dist/files-program/program.js.map +0 -1
- package/dist/files-program/protocol.d.ts +0 -180
- package/dist/files-program/protocol.js.map +0 -1
- package/dist/files-register-host.d.ts +0 -70
- package/dist/files-register-host.js.map +0 -1
- package/dist/files-trace.d.ts +0 -61
- package/dist/files-trace.js.map +0 -1
- package/dist/filesystem.d.ts +0 -38
- package/dist/filesystem.js.map +0 -1
- package/dist/flush.d.ts +0 -19
- package/dist/flush.js.map +0 -1
- package/dist/forward.d.ts +0 -11
- package/dist/forward.js.map +0 -1
- package/dist/gateway.d.ts +0 -38
- package/dist/gateway.js.map +0 -1
- package/dist/git/ground-owners.d.ts +0 -15
- package/dist/git/ground-owners.js.map +0 -1
- package/dist/git/held-package.d.ts +0 -67
- package/dist/git/held-package.js.map +0 -1
- package/dist/git/home.d.ts +0 -59
- package/dist/git/home.js.map +0 -1
- package/dist/git/marker.d.ts +0 -21
- package/dist/git/marker.js.map +0 -1
- package/dist/git/named-objects.d.ts +0 -24
- package/dist/git/named-objects.js.map +0 -1
- package/dist/git/objects.d.ts +0 -30
- package/dist/git/objects.js.map +0 -1
- package/dist/git/play.d.ts +0 -30
- package/dist/git/play.js.map +0 -1
- package/dist/git/quarantine.d.ts +0 -48
- package/dist/git/quarantine.js.map +0 -1
- package/dist/git/rail.d.ts +0 -206
- package/dist/git/rail.js.map +0 -1
- package/dist/git/read-state.d.ts +0 -49
- package/dist/git/read-state.js.map +0 -1
- package/dist/git/repository.d.ts +0 -62
- package/dist/git/repository.js.map +0 -1
- package/dist/git/write-files.d.ts +0 -29
- package/dist/git/write-files.js.map +0 -1
- package/dist/git-binding.d.ts +0 -53
- package/dist/git-binding.js.map +0 -1
- package/dist/git-cat-file.d.ts +0 -28
- package/dist/git-cat-file.js.map +0 -1
- package/dist/git-command.d.ts +0 -96
- package/dist/git-command.js.map +0 -1
- package/dist/git-index-entries.d.ts +0 -16
- package/dist/git-index-entries.js.map +0 -1
- package/dist/git-index-format.d.ts +0 -52
- package/dist/git-index-format.js.map +0 -1
- package/dist/git-install-lines.d.ts +0 -12
- package/dist/git-install-lines.js.map +0 -1
- package/dist/git-launcher-process.d.ts +0 -1
- package/dist/git-launcher-process.js.map +0 -1
- package/dist/git-launcher.d.ts +0 -70
- package/dist/git-launcher.js.map +0 -1
- package/dist/graph-heads.d.ts +0 -71
- package/dist/graph-heads.js.map +0 -1
- package/dist/ground-basis.d.ts +0 -278
- package/dist/ground-basis.js.map +0 -1
- package/dist/ground-checkpoint-worker.d.ts +0 -1
- package/dist/ground-checkpoint-worker.js.map +0 -1
- package/dist/ground-checkpoints.d.ts +0 -16
- package/dist/ground-checkpoints.js.map +0 -1
- package/dist/ground-contract.d.ts +0 -11
- package/dist/ground-contract.js.map +0 -1
- package/dist/ground-coordination.d.ts +0 -140
- package/dist/ground-coordination.js.map +0 -1
- package/dist/ground-database.d.ts +0 -40
- package/dist/ground-database.js.map +0 -1
- package/dist/ground-differences.d.ts +0 -24
- package/dist/ground-differences.js.map +0 -1
- package/dist/ground-holders.d.ts +0 -4
- package/dist/ground-holders.js.map +0 -1
- package/dist/ground-initialization-worker.d.ts +0 -1
- package/dist/ground-initialization-worker.js.map +0 -1
- package/dist/ground-initialization.d.ts +0 -38
- package/dist/ground-initialization.js.map +0 -1
- package/dist/ground-install-saves.d.ts +0 -104
- package/dist/ground-install-saves.js.map +0 -1
- package/dist/ground-inventory-schema.d.ts +0 -58
- package/dist/ground-inventory-schema.js.map +0 -1
- package/dist/ground-marks.d.ts +0 -49
- package/dist/ground-marks.js.map +0 -1
- package/dist/ground-profile.d.ts +0 -14
- package/dist/ground-profile.js.map +0 -1
- package/dist/ground-reads.d.ts +0 -86
- package/dist/ground-reads.js.map +0 -1
- package/dist/ground-relations.d.ts +0 -57
- package/dist/ground-relations.js.map +0 -1
- package/dist/ground-root-index.d.ts +0 -14
- package/dist/ground-root-index.js.map +0 -1
- package/dist/ground-row.d.ts +0 -78
- package/dist/ground-row.js.map +0 -1
- package/dist/ground-save-ops.d.ts +0 -62
- package/dist/ground-save-ops.js.map +0 -1
- package/dist/ground-saver-worker.d.ts +0 -1
- package/dist/ground-saver-worker.js.map +0 -1
- package/dist/ground-saver.d.ts +0 -103
- package/dist/ground-saver.js.map +0 -1
- package/dist/ground-store.d.ts +0 -125
- package/dist/ground-store.js.map +0 -1
- package/dist/index.d.ts +0 -22
- package/dist/index.js.map +0 -1
- package/dist/initial-publication.d.ts +0 -42
- package/dist/initial-publication.js.map +0 -1
- package/dist/installation/environment.d.ts +0 -31
- package/dist/installation/environment.js.map +0 -1
- package/dist/installation/lease.d.ts +0 -6
- package/dist/installation/lease.js.map +0 -1
- package/dist/installation/ownership.d.ts +0 -30
- package/dist/installation/ownership.js.map +0 -1
- package/dist/installation/selection.d.ts +0 -8
- package/dist/installation/selection.js.map +0 -1
- package/dist/keychain/cli-io.d.ts +0 -8
- package/dist/keychain/cli-io.js.map +0 -1
- package/dist/keychain/cli.d.ts +0 -12
- package/dist/keychain/cli.js.map +0 -1
- package/dist/keychain/host.d.ts +0 -28
- package/dist/keychain/host.js.map +0 -1
- package/dist/keychain/http-mount.d.ts +0 -16
- package/dist/keychain/http-mount.js.map +0 -1
- package/dist/keychain/key-wire.d.ts +0 -12
- package/dist/keychain/key-wire.js.map +0 -1
- package/dist/keychain/presence-mac.d.ts +0 -8
- package/dist/keychain/presence-mac.js.map +0 -1
- package/dist/keychain/presence.d.ts +0 -9
- package/dist/keychain/presence.js.map +0 -1
- package/dist/keychain/rail.d.ts +0 -19
- package/dist/keychain/rail.js.map +0 -1
- package/dist/keychain/secret-apply.d.ts +0 -22
- package/dist/keychain/secret-apply.js.map +0 -1
- package/dist/keychain/shelf-from-ledger.d.ts +0 -15
- package/dist/keychain/shelf-from-ledger.js.map +0 -1
- package/dist/keychain/use-log.d.ts +0 -7
- package/dist/keychain/use-log.js.map +0 -1
- package/dist/keychain/vault-file.d.ts +0 -12
- package/dist/keychain/vault-file.js.map +0 -1
- package/dist/line-judge.d.ts +0 -39
- package/dist/line-judge.js.map +0 -1
- package/dist/line-loops.d.ts +0 -22
- package/dist/line-loops.js.map +0 -1
- package/dist/link-target.d.ts +0 -16
- package/dist/link-target.js.map +0 -1
- package/dist/local-host.d.ts +0 -20
- package/dist/local-host.js.map +0 -1
- package/dist/loop-watch.d.ts +0 -17
- package/dist/loop-watch.js.map +0 -1
- package/dist/machine-host.d.ts +0 -249
- package/dist/machine-host.js.map +0 -1
- package/dist/main.d.ts +0 -2
- package/dist/main.js.map +0 -1
- package/dist/materialize-records.d.ts +0 -98
- package/dist/materialize-records.js.map +0 -1
- package/dist/materialized-graph.d.ts +0 -22
- package/dist/materialized-graph.js.map +0 -1
- package/dist/module-thread.d.ts +0 -9
- package/dist/module-thread.js.map +0 -1
- package/dist/mount.d.ts +0 -13
- package/dist/mount.js.map +0 -1
- package/dist/official-mcp-host.d.ts +0 -51
- package/dist/official-mcp-host.js.map +0 -1
- package/dist/on-demand-roots.d.ts +0 -31
- package/dist/on-demand-roots.js.map +0 -1
- package/dist/open-standing.d.ts +0 -8
- package/dist/open-standing.js.map +0 -1
- package/dist/own-results.d.ts +0 -37
- package/dist/own-results.js.map +0 -1
- package/dist/package-pages.d.ts +0 -41
- package/dist/package-pages.js.map +0 -1
- package/dist/patient-flush.d.ts +0 -24
- package/dist/patient-flush.js.map +0 -1
- package/dist/physical-path-witness.d.ts +0 -64
- package/dist/physical-path-witness.js.map +0 -1
- package/dist/placement-owed.d.ts +0 -28
- package/dist/placement-owed.js.map +0 -1
- package/dist/placement-tidy.d.ts +0 -57
- package/dist/placement-tidy.js.map +0 -1
- package/dist/platform-product-host.d.ts +0 -51
- package/dist/platform-product-host.js.map +0 -1
- package/dist/platform-tools.d.ts +0 -22
- package/dist/platform-tools.js.map +0 -1
- package/dist/process-lifecycle.d.ts +0 -13
- package/dist/process-lifecycle.js.map +0 -1
- package/dist/product-cli.d.ts +0 -26
- package/dist/product-cli.js.map +0 -1
- package/dist/pty-host.d.ts +0 -16
- package/dist/pty-host.js.map +0 -1
- package/dist/received-state.d.ts +0 -90
- package/dist/received-state.js.map +0 -1
- package/dist/reference-placement.d.ts +0 -26
- package/dist/reference-placement.js.map +0 -1
- package/dist/registry-graph.d.ts +0 -112
- package/dist/registry-graph.js.map +0 -1
- package/dist/registry-page-cache.d.ts +0 -15
- package/dist/registry-page-cache.js.map +0 -1
- package/dist/release-catalog.d.ts +0 -5
- package/dist/release-catalog.js.map +0 -1
- package/dist/root-install.d.ts +0 -72
- package/dist/root-install.js.map +0 -1
- package/dist/runtime-activity.d.ts +0 -20
- package/dist/runtime-activity.js.map +0 -1
- package/dist/runtime-argv.d.ts +0 -8
- package/dist/runtime-argv.js.map +0 -1
- package/dist/runtime-command-host.d.ts +0 -46
- package/dist/runtime-command-host.js.map +0 -1
- package/dist/runtime-node-flags.d.ts +0 -10
- package/dist/runtime-node-flags.js.map +0 -1
- package/dist/runtime-wire-host.d.ts +0 -17
- package/dist/runtime-wire-host.js.map +0 -1
- package/dist/service/adapter.d.ts +0 -37
- package/dist/service/adapter.js.map +0 -1
- package/dist/service/cli.d.ts +0 -8
- package/dist/service/cli.js.map +0 -1
- package/dist/service/control.d.ts +0 -38
- package/dist/service/control.js.map +0 -1
- package/dist/service/index.d.ts +0 -9
- package/dist/service/index.js.map +0 -1
- package/dist/service/keepalive.d.ts +0 -11
- package/dist/service/keepalive.js.map +0 -1
- package/dist/service/launchd.d.ts +0 -9
- package/dist/service/launchd.js.map +0 -1
- package/dist/service/owner.d.ts +0 -4
- package/dist/service/owner.js.map +0 -1
- package/dist/service/policy.d.ts +0 -36
- package/dist/service/policy.js.map +0 -1
- package/dist/service/portable.d.ts +0 -10
- package/dist/service/portable.js.map +0 -1
- package/dist/service/recovery.d.ts +0 -28
- package/dist/service/recovery.js.map +0 -1
- package/dist/service/registration.d.ts +0 -84
- package/dist/service/registration.js.map +0 -1
- package/dist/service/systemd-unit.d.ts +0 -7
- package/dist/service/systemd-unit.js.map +0 -1
- package/dist/service/systemd.d.ts +0 -5
- package/dist/service/systemd.js.map +0 -1
- package/dist/service/windows-action.d.ts +0 -18
- package/dist/service/windows-action.js.map +0 -1
- package/dist/service/windows-task.d.ts +0 -15
- package/dist/service/windows-task.js.map +0 -1
- package/dist/service/windows.d.ts +0 -2
- package/dist/service/windows.js.map +0 -1
- package/dist/sha256.d.ts +0 -1
- package/dist/sha256.js.map +0 -1
- package/dist/sharing-admission.d.ts +0 -22
- package/dist/sharing-admission.js.map +0 -1
- package/dist/sharing-host.d.ts +0 -14
- package/dist/sharing-host.js.map +0 -1
- package/dist/sharing-mcp-host.d.ts +0 -23
- package/dist/sharing-mcp-host.js.map +0 -1
- package/dist/snapshot-delivery-baseline.d.ts +0 -31
- package/dist/snapshot-delivery-baseline.js.map +0 -1
- package/dist/socket-marking.d.ts +0 -9
- package/dist/socket-marking.js.map +0 -1
- package/dist/source-proof.d.ts +0 -23
- package/dist/source-proof.js.map +0 -1
- package/dist/source-signature.d.ts +0 -157
- package/dist/source-signature.js.map +0 -1
- package/dist/source-witness.d.ts +0 -9
- package/dist/source-witness.js.map +0 -1
- package/dist/sqlite-durability.d.ts +0 -32
- package/dist/sqlite-durability.js.map +0 -1
- package/dist/sqlite.d.ts +0 -10
- package/dist/sqlite.js.map +0 -1
- package/dist/state-host.d.ts +0 -4
- package/dist/state-host.js.map +0 -1
- package/dist/state-store.d.ts +0 -15
- package/dist/state-store.js.map +0 -1
- package/dist/sync-address.d.ts +0 -16
- package/dist/sync-address.js.map +0 -1
- package/dist/sync-cli.d.ts +0 -7
- package/dist/sync-cli.js.map +0 -1
- package/dist/sync-setting.d.ts +0 -43
- package/dist/sync-setting.js.map +0 -1
- package/dist/tool-mcp-client.d.ts +0 -7
- package/dist/tool-mcp-client.js.map +0 -1
- package/dist/toolbox-host.d.ts +0 -4
- package/dist/toolbox-host.js.map +0 -1
- package/dist/transfer-instrumentation.d.ts +0 -47
- package/dist/transfer-instrumentation.js.map +0 -1
- package/dist/turns.d.ts +0 -44
- package/dist/turns.js.map +0 -1
- package/dist/updates/artifacts.d.ts +0 -66
- package/dist/updates/artifacts.js.map +0 -1
- package/dist/updates/bootstrap.d.ts +0 -94
- package/dist/updates/bootstrap.js.map +0 -1
- package/dist/updates/controller.d.ts +0 -78
- package/dist/updates/controller.js.map +0 -1
- package/dist/updates/isolated-command-lifetime.d.ts +0 -1
- package/dist/updates/isolated-command-lifetime.js.map +0 -1
- package/dist/updates/locked-packages.d.ts +0 -4
- package/dist/updates/locked-packages.js.map +0 -1
- package/dist/updates/store.d.ts +0 -47
- package/dist/updates/store.js.map +0 -1
- package/dist/updates/trust.d.ts +0 -20
- package/dist/updates/trust.js.map +0 -1
- package/dist/user-ground-host.d.ts +0 -1007
- package/dist/user-ground-host.js.map +0 -1
- package/dist/watching/fsevents.d.ts +0 -69
- package/dist/watching/fsevents.js.map +0 -1
- package/dist/watching/git-storage.d.ts +0 -22
- package/dist/watching/git-storage.js.map +0 -1
- package/dist/watching/host.d.ts +0 -388
- package/dist/watching/host.js.map +0 -1
- package/dist/watching/index.d.ts +0 -3
- package/dist/watching/index.js.map +0 -1
- package/dist/watching/inotify.d.ts +0 -81
- package/dist/watching/inotify.js.map +0 -1
- package/dist/windows-fs.d.ts +0 -12
- package/dist/windows-fs.js.map +0 -1
- package/dist/windows-owner-only.d.ts +0 -6
- package/dist/windows-owner-only.js.map +0 -1
- package/dist/wire-binary.d.ts +0 -9
- package/dist/wire-binary.js.map +0 -1
- package/dist/wire-client.d.ts +0 -86
- package/dist/wire-client.js.map +0 -1
- package/dist/wire-join.d.ts +0 -19
- package/dist/wire-join.js.map +0 -1
- package/dist/wire-outbox.d.ts +0 -37
- package/dist/wire-outbox.js.map +0 -1
- package/dist/wire-request-scope.d.ts +0 -17
- package/dist/wire-request-scope.js.map +0 -1
- package/dist/wire-socket-relay.d.ts +0 -54
- package/dist/wire-socket-relay.js.map +0 -1
- package/dist/workspace-add-intent.d.ts +0 -41
- package/dist/workspace-add-intent.js.map +0 -1
- package/dist/workspace-add-staging.d.ts +0 -192
- package/dist/workspace-add-staging.js.map +0 -1
- package/dist/workspace-host.d.ts +0 -32
- package/dist/workspace-host.js.map +0 -1
- package/dist/workspace-store.d.ts +0 -8
- package/dist/workspace-store.js.map +0 -1
- package/skills/shell/SKILL.md +0 -175
package/dist/git-index-format.js
CHANGED
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
/** Git's index file, read as Git reads it (read-cache.c, split-index.c,
|
|
2
|
-
* sparse-index.c), without a Git process. What an index means is its stage
|
|
3
|
-
* listing — every entry's mode, object, stage and path in the order Git
|
|
4
|
-
* holds them — with each entry's persistent flags: assume-unchanged,
|
|
5
|
-
* skip-worktree and intent-to-add, and the size it last saw its file hold.
|
|
6
|
-
* Git trusts a size that differs from the file's to say the file changed,
|
|
7
|
-
* without reading it, and equal bytes have equal sizes on every machine. The
|
|
8
|
-
* rest of an index file — the times, device and inode each machine's refresh
|
|
9
|
-
* stamps, a gitlink's size, which is its folder's on that machine, and
|
|
10
|
-
* optional extensions — caches that meaning or serves Git's speed, so equal
|
|
11
|
-
* listings mean one index whatever their bytes.
|
|
12
|
-
*
|
|
13
|
-
* Every form Git writes is read: versions 2 to 4, extended flags,
|
|
14
|
-
* prefix-compressed paths, a split index over its shared base, and a sparse
|
|
15
|
-
* index, which holds each folder outside its sparse cone as one entry naming
|
|
16
|
-
* that folder's tree. Equal trees name equal files, so a folder entry is its
|
|
17
|
-
* files' meaning. A form Git never writes is refused rather than guessed, as
|
|
18
|
-
* is a required extension Git would not understand. A split index resolves
|
|
19
|
-
* as Git's own merge does, which assumes its shared base and its additions
|
|
20
|
-
* each hold Git's order, so both must. Paths stay Git's to name: a path Git
|
|
21
|
-
* itself would refuse is refused (git-index-entries.ts). */
|
|
22
1
|
import { ITEMS_PER_BOUNDARY } from "@amalgm/live";
|
|
23
2
|
import { GIT_INDEX_FLAGS, isGitPath } from "./git-index-entries.js";
|
|
24
3
|
import { sha256Hex } from "./sha256.js";
|
|
@@ -28,28 +7,21 @@ const WIDTH = { sha1: 20, sha256: 32 };
|
|
|
28
7
|
const STAT_BYTES = 40;
|
|
29
8
|
const MODE_AT = 24;
|
|
30
9
|
const SIZE_AT = 36;
|
|
31
|
-
/** Assume-unchanged, Git's CE_VALID, and the bit that opens extended flags. */
|
|
32
10
|
const ASSUME_VALID = 0x8000;
|
|
33
11
|
const EXTENDED = 0x4000;
|
|
34
12
|
const STAGE_SHIFT = 12;
|
|
35
13
|
const NAME_MASK = 0x0fff;
|
|
36
|
-
/** Skip-worktree and intent-to-add: the extended flags Git defines. */
|
|
37
14
|
const KNOWN_EXTENDED = 0x6000;
|
|
38
15
|
const SKIP_WORKTREE = 0x4000;
|
|
39
16
|
const INTENT_TO_ADD = 0x2000;
|
|
40
17
|
const SPARSE_FOLDER = 0o040000;
|
|
41
18
|
const GITLINK = 0o160000;
|
|
42
|
-
/** Each set of persistent flags by its bits: bit `i` is GIT_INDEX_FLAGS[i]. */
|
|
43
19
|
const FLAG_SETS = Array.from({ length: 1 << GIT_INDEX_FLAGS.length }, (_, bits) => Object.freeze(GIT_INDEX_FLAGS.filter((_, at) => bits & (1 << at))));
|
|
44
20
|
const [ASSUMED, SKIPPED, INTENDED] = [1, 2, 4];
|
|
45
|
-
/** The modes Git gives a stage entry (create_ce_mode) — a file, an
|
|
46
|
-
* executable, a symbolic link, a gitlink — and a sparse folder's, as
|
|
47
|
-
* ls-files writes them. */
|
|
48
21
|
const MODE_TEXT = new Map([0o100644, 0o100755, 0o120000, GITLINK, SPARSE_FOLDER]
|
|
49
22
|
.map(mode => [mode, mode.toString(8).padStart(6, "0")]));
|
|
50
23
|
const invalid = (why) => { throw new GitIndexFormatError(`invalid Git index: ${why}`); };
|
|
51
24
|
const overrun = () => invalid("an entry overruns the index");
|
|
52
|
-
/** Git's offset varint (varint.c): each continuation adds one before shifting. */
|
|
53
25
|
function varint(bytes, at, end) {
|
|
54
26
|
if (at >= end)
|
|
55
27
|
overrun();
|
|
@@ -98,7 +70,6 @@ function* readIndexFile(bytes, width) {
|
|
|
98
70
|
const length = flags & NAME_MASK;
|
|
99
71
|
let name;
|
|
100
72
|
if (version === 4) {
|
|
101
|
-
// A path replaces the previous path's last `strip` bytes; a NUL ends it.
|
|
102
73
|
const [strip, suffix] = varint(bytes, at, end);
|
|
103
74
|
if (strip > previous.length)
|
|
104
75
|
invalid("a path strips more than the path before it");
|
|
@@ -114,7 +85,6 @@ function* readIndexFile(bytes, width) {
|
|
|
114
85
|
if (stop < at || stop >= end || bytes[stop] !== 0)
|
|
115
86
|
overrun();
|
|
116
87
|
name = bytes.subarray(at, stop);
|
|
117
|
-
// NUL padding completes an entry to a multiple of eight bytes.
|
|
118
88
|
offset = start + ((at - start + name.length + 8) & ~7);
|
|
119
89
|
if (offset > end)
|
|
120
90
|
overrun();
|
|
@@ -123,8 +93,6 @@ function* readIndexFile(bytes, width) {
|
|
|
123
93
|
invalid("a path holds a NUL");
|
|
124
94
|
const mode = bytes.readUInt32BE(start + MODE_AT);
|
|
125
95
|
const stage = (flags >> STAGE_SHIFT) & 3;
|
|
126
|
-
// Git writes a sparse folder merged, skipped in the worktree, and named
|
|
127
|
-
// with its trailing slash.
|
|
128
96
|
if (mode === SPARSE_FOLDER) {
|
|
129
97
|
if (stage !== 0 || !(extended & SKIP_WORKTREE) || name[name.length - 1] !== 0x2f) {
|
|
130
98
|
invalid("a sparse folder entry is not one Git writes");
|
|
@@ -162,17 +130,14 @@ function* readIndexFile(bytes, width) {
|
|
|
162
130
|
cacheTree = bytes.subarray(at + 8, stop);
|
|
163
131
|
}
|
|
164
132
|
else if (!/^[A-Z]/.test(signature)) {
|
|
165
|
-
// Git ignores an extension named in uppercase and requires every other.
|
|
166
133
|
throw new GitIndexFormatError(`Git index requires the ${JSON.stringify(signature)} extension, which is not understood`);
|
|
167
134
|
}
|
|
168
135
|
at = stop;
|
|
169
136
|
}
|
|
170
|
-
// Git marks every index holding a sparse folder sparse.
|
|
171
137
|
if (folders && !marked)
|
|
172
138
|
invalid("a sparse folder in an index not marked sparse");
|
|
173
139
|
return { entries, link: link ?? null, sparse: marked, checksum: bytes.toString("hex", end), resolveUndo, cacheTree };
|
|
174
140
|
}
|
|
175
|
-
/** A zero link names no shared base; Git still reads its bitmaps. */
|
|
176
141
|
function readLink(data, width) {
|
|
177
142
|
if (data.length < width)
|
|
178
143
|
invalid("a split link is too short");
|
|
@@ -186,8 +151,6 @@ function readLink(data, width) {
|
|
|
186
151
|
invalid("bytes follow a split link");
|
|
187
152
|
return unlinked ? null : { base, deleted, replaced };
|
|
188
153
|
}
|
|
189
|
-
/** One EWAH bitmap (ewah/ewah_io.c): its size in bits, its word count, the
|
|
190
|
-
* words, then the position of its last run-length word. */
|
|
191
154
|
function ewahFrame(data, at) {
|
|
192
155
|
if (at + 8 > data.length)
|
|
193
156
|
invalid("a split bitmap overruns its link");
|
|
@@ -196,10 +159,6 @@ function ewahFrame(data, at) {
|
|
|
196
159
|
invalid("a split bitmap overruns its link");
|
|
197
160
|
return data.subarray(at, stop);
|
|
198
161
|
}
|
|
199
|
-
/** A bitmap's set positions in ascending order (ewah_each_bit), each naming
|
|
200
|
-
* an entry of a base holding `bound` entries. A run-length word carries its
|
|
201
|
-
* run bit, a 32-bit run of 64-bit words, and the count of literal words
|
|
202
|
-
* that follow it. */
|
|
203
162
|
function* ewahPositions(bitmap, bound) {
|
|
204
163
|
const words = bitmap.readUInt32BE(4);
|
|
205
164
|
const word = (at) => [bitmap.readUInt32BE(8 + at * 8), bitmap.readUInt32BE(12 + at * 8)];
|
|
@@ -244,11 +203,6 @@ function* ordered(entries) {
|
|
|
244
203
|
invalid("entries are out of Git's order");
|
|
245
204
|
}
|
|
246
205
|
}
|
|
247
|
-
/** Git's merge of a split index over its shared base (merge_base_index):
|
|
248
|
-
* the split index's first entries replace, in order, each replaced base
|
|
249
|
-
* entry's mode, object, stage, flags and size under that entry's path;
|
|
250
|
-
* deleted entries leave; then each addition takes its (path, stage) slot, a merged stage
|
|
251
|
-
* also displacing its path's unmerged stages (add_index_entry). */
|
|
252
206
|
function* mergeSplit(split, link, base) {
|
|
253
207
|
if (base.link !== null)
|
|
254
208
|
invalid("a shared index is itself split");
|
|
@@ -291,13 +245,7 @@ function* mergeSplit(split, link, base) {
|
|
|
291
245
|
entries.push(remaining[next++]);
|
|
292
246
|
return entries;
|
|
293
247
|
}
|
|
294
|
-
/** The entries capture holds, and the digest of their stage listing with
|
|
295
|
-
* flags and sizes, `<mode> <object> <stage> <flags> <size>\t<path>\0` per
|
|
296
|
-
* entry, its flags the digit of their bits. An entry whose mode or path Git
|
|
297
|
-
* would never write is refused. */
|
|
298
248
|
function* decoded(entries) {
|
|
299
|
-
// Positional loops: a step resumed across turns cannot elide an iterator's
|
|
300
|
-
// result per entry.
|
|
301
249
|
const decoded = new Array(entries.length);
|
|
302
250
|
let size = 0;
|
|
303
251
|
for (let index = 0; index < entries.length; index += 1) {
|
|
@@ -306,7 +254,6 @@ function* decoded(entries) {
|
|
|
306
254
|
const { name, mode, objectId, stage, marks, size: recorded } = entries[index];
|
|
307
255
|
const text = MODE_TEXT.get(mode) ?? invalid(`an entry holds mode ${mode.toString(8)}, which Git never writes`);
|
|
308
256
|
const path = name.toString("utf8");
|
|
309
|
-
// A sparse folder's path ends in its slash.
|
|
310
257
|
if (!isGitPath(mode === SPARSE_FOLDER ? path.slice(0, -1) : path)) {
|
|
311
258
|
invalid(`an entry holds a path Git would refuse: ${JSON.stringify(path)}`);
|
|
312
259
|
}
|
|
@@ -335,8 +282,6 @@ function* decoded(entries) {
|
|
|
335
282
|
}
|
|
336
283
|
return { entries: decoded, meaning: sha256Hex(listing) };
|
|
337
284
|
}
|
|
338
|
-
/** The stage listing of an index file's bytes. A split index reads its
|
|
339
|
-
* shared base, by name, through `shared`. */
|
|
340
285
|
export function* stageListing(bytes, format, shared) {
|
|
341
286
|
const width = WIDTH[format];
|
|
342
287
|
const index = yield* readIndexFile(bytes, width);
|
|
@@ -348,15 +293,10 @@ export function* stageListing(bytes, format, shared) {
|
|
|
348
293
|
return { ...yield* named(yield* decoded(index.entries)), base: null, sparse: index.sparse, resolveUndo };
|
|
349
294
|
const name = `sharedindex.${index.link.base}`;
|
|
350
295
|
const base = yield* readIndexFile(shared(name), width);
|
|
351
|
-
// Git never makes a split index sparse (convert_to_sparse).
|
|
352
296
|
if (index.sparse || base.sparse)
|
|
353
297
|
invalid("a split index is marked sparse");
|
|
354
298
|
return { ...yield* named(yield* decoded(yield* mergeSplit(index, index.link, base))), base: name, sparse: false, resolveUndo };
|
|
355
299
|
}
|
|
356
|
-
/** What the index names (StageListing.objects). Git writes its extensions
|
|
357
|
-
* in the top file of a split index, never its shared base. Git reads a
|
|
358
|
-
* cache-tree or resolve-undo record it cannot parse as none (cache-tree.c,
|
|
359
|
-
* resolve-undo.c), so one names no objects. */
|
|
360
300
|
function* indexedObjects(entries, index, width) {
|
|
361
301
|
const trees = index.cacheTree ? yield* validTrees(index.cacheTree, width) : null;
|
|
362
302
|
const objects = new Set(index.resolveUndo ? resolvedObjects(index.resolveUndo, width) ?? [] : []);
|
|
@@ -366,15 +306,12 @@ function* indexedObjects(entries, index, width) {
|
|
|
366
306
|
const { path, mode, objectId, stage, flags } = entries[at];
|
|
367
307
|
if (mode === "160000")
|
|
368
308
|
continue;
|
|
369
|
-
// A tree holds only merged entries, and none Git intends to add.
|
|
370
309
|
const tree = stage === 0 && !flags?.includes("intent-to-add") && trees ? holdingTree(trees, path) : undefined;
|
|
371
310
|
objects.add(tree ?? objectId);
|
|
372
311
|
}
|
|
373
312
|
return [...objects];
|
|
374
313
|
}
|
|
375
|
-
/** The tree of the outermost folder holding `path` whose cache-tree is valid. */
|
|
376
314
|
function holdingTree(trees, path) {
|
|
377
|
-
// A sparse folder's path ends in its slash, and its own entry names its tree.
|
|
378
315
|
const parts = (path.endsWith("/") ? path.slice(0, -1) : path).split("/");
|
|
379
316
|
for (let depth = 0, folder = ""; depth < parts.length; folder = folder === "" ? parts[depth] : `${folder}/${parts[depth]}`, depth += 1) {
|
|
380
317
|
const tree = trees.get(folder);
|
|
@@ -383,10 +320,6 @@ function holdingTree(trees, path) {
|
|
|
383
320
|
}
|
|
384
321
|
return undefined;
|
|
385
322
|
}
|
|
386
|
-
/** Each folder whose cache-tree entry is valid, by its path, with its tree.
|
|
387
|
-
* Git writes each entry, then its subtrees, as `<name>\0<entries>
|
|
388
|
-
* <subtrees>\n` and, when the entry count is not -1, its tree. Null for data
|
|
389
|
-
* Git would not read. */
|
|
390
323
|
function* validTrees(data, width) {
|
|
391
324
|
const trees = new Map();
|
|
392
325
|
const open = [];
|
|
@@ -419,9 +352,6 @@ function* validTrees(data, width) {
|
|
|
419
352
|
} while (open.length > 0);
|
|
420
353
|
return at === data.length ? trees : null;
|
|
421
354
|
}
|
|
422
|
-
/** The objects of each resolve-undo record: `<path>\0`, three octal modes
|
|
423
|
-
* each ending in NUL, and an object for each mode not zero. Null for data Git
|
|
424
|
-
* would not read. */
|
|
425
355
|
function resolvedObjects(data, width) {
|
|
426
356
|
const objects = [];
|
|
427
357
|
for (let at = 0; at < data.length;) {
|
|
@@ -447,4 +377,3 @@ function resolvedObjects(data, width) {
|
|
|
447
377
|
}
|
|
448
378
|
return objects;
|
|
449
379
|
}
|
|
450
|
-
//# sourceMappingURL=git-index-format.js.map
|
|
@@ -11,7 +11,6 @@ export function installGitLines(ground, authorityId, watermark, cacheDir) {
|
|
|
11
11
|
WHERE authority_id = ? AND entity_id = ? AND delivery_sequence <= ?
|
|
12
12
|
ORDER BY global_sequence DESC LIMIT 1`)
|
|
13
13
|
.get(authorityId, record.uuid, watermark);
|
|
14
|
-
// Only the record the install stands at has a line before it here.
|
|
15
14
|
if (!within || decodeAcceptedEntityRecord(within.json).change.result.version !== record.version)
|
|
16
15
|
return [];
|
|
17
16
|
return lineRecords(database, authorityId, record.uuid, 0, within.sequence).reached;
|
|
@@ -19,4 +18,3 @@ export function installGitLines(ground, authorityId, watermark, cacheDir) {
|
|
|
19
18
|
seal: (uuid, made) => made.bytes ? sealContent(cacheDir, { entityId: uuid, entityType: "repo.git", kind: "git", contentHash: made.transportVersion }, made.bytes, "apply") : Promise.resolve(),
|
|
20
19
|
};
|
|
21
20
|
}
|
|
22
|
-
//# sourceMappingURL=git-install-lines.js.map
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Git launcher process (see git-launcher.ts). It starts each Git process
|
|
3
|
-
* its host thread asks for and relays that process's input, output and exit
|
|
4
|
-
* over the IPC channel. It decides nothing.
|
|
5
|
-
*
|
|
6
|
-
* Output is relayed only while the channel keeps up, so a host that stops
|
|
7
|
-
* reading stops Git as a pipe would. When the host goes, the launcher goes,
|
|
8
|
-
* and its Git processes see their pipes close exactly as if the host had
|
|
9
|
-
* started them itself.
|
|
10
|
-
*/
|
|
11
1
|
import { spawn } from "node:child_process";
|
|
12
2
|
const errorFacts = (error) => {
|
|
13
3
|
const { name, message, code, errno, syscall, path } = error instanceof Error
|
|
@@ -15,11 +5,7 @@ const errorFacts = (error) => {
|
|
|
15
5
|
return { name, message, code, errno, syscall, path };
|
|
16
6
|
};
|
|
17
7
|
const running = new Map();
|
|
18
|
-
/** A reply the channel cannot carry is dropped: the host is going, and the
|
|
19
|
-
* disconnect that follows ends this process. */
|
|
20
8
|
const reply = (message, sent = () => { }) => process.send(message, sent);
|
|
21
|
-
/** A chunk waits in the channel's queue, not in Git's pipe, only up to the
|
|
22
|
-
* channel's own backlog bound; beyond it the stream pauses until it drains. */
|
|
23
9
|
function relay(stream, kind, id) {
|
|
24
10
|
stream.on("data", (chunk) => {
|
|
25
11
|
const backlogged = !reply({ kind, id, chunk }, () => { if (backlogged)
|
|
@@ -30,9 +16,6 @@ function relay(stream, kind, id) {
|
|
|
30
16
|
}
|
|
31
17
|
function run(id, { executable, args, cwd, env }) {
|
|
32
18
|
let child;
|
|
33
|
-
// A start the system refuses at once (a file where the directory stood, an
|
|
34
|
-
// argument it cannot carry) failed as one refused later does, and only this
|
|
35
|
-
// command learns it: the launcher and the Git beside it go on.
|
|
36
19
|
try {
|
|
37
20
|
child = spawn(executable, [...args], { cwd, env, stdio: ["pipe", "pipe", "pipe"] });
|
|
38
21
|
}
|
|
@@ -41,7 +24,6 @@ function run(id, { executable, args, cwd, env }) {
|
|
|
41
24
|
return;
|
|
42
25
|
}
|
|
43
26
|
child.once("error", error => {
|
|
44
|
-
// A process that never started emits no close.
|
|
45
27
|
if (child.pid === undefined)
|
|
46
28
|
reply({ kind: "unstarted", id, error: errorFacts(error) });
|
|
47
29
|
else
|
|
@@ -78,4 +60,3 @@ process.on("message", (request) => {
|
|
|
78
60
|
child.kill();
|
|
79
61
|
});
|
|
80
62
|
process.on("disconnect", () => process.exit(0));
|
|
81
|
-
//# sourceMappingURL=git-launcher-process.js.map
|
package/dist/git-launcher.js
CHANGED
|
@@ -1,41 +1,18 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Git is started by a process whose size does not grow with the workspace.
|
|
3
|
-
*
|
|
4
|
-
* On Linux, starting a process copies the starter's page tables, so a spawn
|
|
5
|
-
* from the host costs time in proportion to the host's memory, which grows
|
|
6
|
-
* with the workspace. Each host thread that runs Git therefore forks one small
|
|
7
|
-
* resident launcher, once, and starts every Git process through it: a command
|
|
8
|
-
* costs the host one message whatever the workspace's size. The launcher only
|
|
9
|
-
* relays a command's input, output and exit; every decision stays with the
|
|
10
|
-
* runner in git-command.ts.
|
|
11
|
-
*
|
|
12
|
-
* A launcher lost while commands run takes their Git processes with it before
|
|
13
|
-
* any of those calls settles: on POSIX they share its process group, which the
|
|
14
|
-
* host kills; on Windows its job object already closed them. No Git process a
|
|
15
|
-
* failed call started can outlive the failure and race its retry.
|
|
16
|
-
*/
|
|
17
1
|
import { fork } from "node:child_process";
|
|
18
2
|
import { resolve } from "node:path";
|
|
19
3
|
import { Writable } from "node:stream";
|
|
20
4
|
import { fileURLToPath } from "node:url";
|
|
21
5
|
const LAUNCHER = fileURLToPath(new URL("./git-launcher-process.js", import.meta.url));
|
|
22
|
-
/** Input bytes sent ahead of Git's reading them; the producer waits beyond. */
|
|
23
6
|
const INPUT_WINDOW = 8 * 1024 * 1024;
|
|
24
|
-
/** Only what Node itself needs to start: no NODE_OPTIONS, loader or inspector
|
|
25
|
-
* of the host turns the launcher into another large process. */
|
|
26
7
|
const LAUNCHER_ENVIRONMENT = Object.freeze(Object.fromEntries(Object.entries(process.env).filter(([name]) => name.toUpperCase() === "SYSTEMROOT")));
|
|
27
8
|
const revive = ({ name, message, ...facts }) => Object.assign(new Error(message), Object.fromEntries(Object.entries(facts).filter(([, value]) => value !== undefined)), name === "Error" ? {} : { name });
|
|
28
9
|
const bytes = (chunk) => Buffer.from(chunk.buffer, chunk.byteOffset, chunk.byteLength);
|
|
29
|
-
/** Git's stdin on the far side of the launcher. A write completes while the
|
|
30
|
-
* bytes Git has not yet taken stay within the window, so a slow reader slows
|
|
31
|
-
* its producer exactly as a pipe would. */
|
|
32
10
|
class LauncherInput extends Writable {
|
|
33
11
|
#send;
|
|
34
12
|
#id;
|
|
35
13
|
#unacknowledged = 0;
|
|
36
14
|
#waiting = null;
|
|
37
15
|
#ending = null;
|
|
38
|
-
/** Git's stdin was ended after every byte was written to it. */
|
|
39
16
|
done = false;
|
|
40
17
|
constructor(send, id) {
|
|
41
18
|
super();
|
|
@@ -54,9 +31,6 @@ class LauncherInput extends Writable {
|
|
|
54
31
|
this.#ending = callback;
|
|
55
32
|
this.#send({ kind: "end", id: this.#id });
|
|
56
33
|
}
|
|
57
|
-
/** Destroyed early, the input closes as a pipe's write end would: Git
|
|
58
|
-
* reads to its end, and a write Git will never take fails. A launcher that
|
|
59
|
-
* already let Git go ignores this. */
|
|
60
34
|
_destroy(error, callback) {
|
|
61
35
|
const waiting = this.#waiting;
|
|
62
36
|
this.#waiting = this.#ending = null;
|
|
@@ -86,14 +60,12 @@ function open() {
|
|
|
86
60
|
const child = fork(LAUNCHER, [], {
|
|
87
61
|
serialization: "advanced", execArgv: [], env: LAUNCHER_ENVIRONMENT,
|
|
88
62
|
stdio: ["ignore", "ignore", "inherit", "ipc"],
|
|
89
|
-
// Its own process group, so its Git processes can leave with it.
|
|
90
63
|
detached: process.platform !== "win32",
|
|
91
64
|
});
|
|
92
65
|
const launcher = { child, calls: new Map(), lost: false };
|
|
93
66
|
child.on("message", (reply) => receive(launcher, reply));
|
|
94
67
|
child.on("disconnect", () => lose(launcher));
|
|
95
68
|
child.on("error", error => lose(launcher, error));
|
|
96
|
-
// Idle, it holds nothing open; a running command refs its channel.
|
|
97
69
|
child.unref();
|
|
98
70
|
child.channel?.unref();
|
|
99
71
|
return launcher;
|
|
@@ -132,7 +104,6 @@ function receive(launcher, reply) {
|
|
|
132
104
|
return call.events.unstarted(revive(reply.error));
|
|
133
105
|
case "close":
|
|
134
106
|
finish(launcher, reply.id);
|
|
135
|
-
// Input Git never finished reading ends as its pipe would: closed early.
|
|
136
107
|
if (!call.input.done)
|
|
137
108
|
call.input.destroy();
|
|
138
109
|
return call.events.close(reply.status, reply.signal);
|
|
@@ -153,7 +124,7 @@ function lose(launcher, cause) {
|
|
|
153
124
|
try {
|
|
154
125
|
process.kill(-launcher.child.pid, "SIGKILL");
|
|
155
126
|
}
|
|
156
|
-
catch {
|
|
127
|
+
catch { }
|
|
157
128
|
}
|
|
158
129
|
const error = new Error("the Git launcher was lost while this command ran", cause === undefined ? undefined : { cause });
|
|
159
130
|
for (const call of calls) {
|
|
@@ -162,7 +133,6 @@ function lose(launcher, cause) {
|
|
|
162
133
|
call.events.close(null, null);
|
|
163
134
|
}
|
|
164
135
|
}
|
|
165
|
-
/** Start one Git process through this thread's launcher. */
|
|
166
136
|
export function launchGit(command, events) {
|
|
167
137
|
const launcher = current ??= open();
|
|
168
138
|
const id = nextId++;
|
|
@@ -170,9 +140,7 @@ export function launchGit(command, events) {
|
|
|
170
140
|
if (launcher.calls.size === 0)
|
|
171
141
|
launcher.child.channel?.ref();
|
|
172
142
|
launcher.calls.set(id, { events, input });
|
|
173
|
-
// Paths keep the meaning they had in this process.
|
|
174
143
|
send(launcher, { kind: "run", id, command: { ...command, cwd: resolve(command.cwd) } });
|
|
175
144
|
return { stdin: input, kill: () => { if (launcher.calls.has(id))
|
|
176
145
|
send(launcher, { kind: "kill", id }); } };
|
|
177
146
|
}
|
|
178
|
-
//# sourceMappingURL=git-launcher.js.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { CHUNK_BYTES } from "@amalgm/live";
|
|
2
|
+
import { sha256Hex } from "./sha256.js";
|
|
3
|
+
export const BLOB_READ_BYTES = 2 * CHUNK_BYTES;
|
|
4
|
+
export async function* provenBlobs(objects, asked, answers, bound) {
|
|
5
|
+
const candidates = new Map();
|
|
6
|
+
asked.forEach((one, index) => {
|
|
7
|
+
const found = answers[index];
|
|
8
|
+
if (!found || found.type !== "blob" || found.size > bound)
|
|
9
|
+
return;
|
|
10
|
+
if (one.size != null && one.size !== found.size)
|
|
11
|
+
return;
|
|
12
|
+
const candidate = candidates.get(found.oid) ?? { size: found.size, asked: new Set() };
|
|
13
|
+
candidate.asked.add(one);
|
|
14
|
+
candidates.set(found.oid, candidate);
|
|
15
|
+
});
|
|
16
|
+
const wanted = new Set(asked.map(({ hash }) => hash));
|
|
17
|
+
const found = new Set();
|
|
18
|
+
for (const group of groups(candidates, bound)) {
|
|
19
|
+
for await (const { oid, bytes } of objects.contents(group)) {
|
|
20
|
+
const hash = sha256Hex(bytes);
|
|
21
|
+
for (const one of candidates.get(oid)?.asked ?? []) {
|
|
22
|
+
if (one.hash !== hash || found.has(hash))
|
|
23
|
+
continue;
|
|
24
|
+
found.add(hash);
|
|
25
|
+
yield { entry: one.entry, bytes };
|
|
26
|
+
}
|
|
27
|
+
if (found.size === wanted.size)
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
await objects.close();
|
|
32
|
+
}
|
|
33
|
+
function groups(candidates, bound) {
|
|
34
|
+
const all = [];
|
|
35
|
+
let group = [], bytes = 0;
|
|
36
|
+
for (const [oid, { size }] of candidates) {
|
|
37
|
+
if (group.length > 0 && bytes + size > bound) {
|
|
38
|
+
all.push(group);
|
|
39
|
+
group = [];
|
|
40
|
+
bytes = 0;
|
|
41
|
+
}
|
|
42
|
+
group.push(oid);
|
|
43
|
+
bytes += size;
|
|
44
|
+
}
|
|
45
|
+
if (group.length > 0)
|
|
46
|
+
all.push(group);
|
|
47
|
+
return all;
|
|
48
|
+
}
|
package/dist/graph-heads.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { cachedStatement } from "./sqlite.js";
|
|
2
|
-
/** `record.keepGraphHead`, run by the ground file's saver thread: keep one
|
|
3
|
-
* head and drop the heads it makes unnecessary. */
|
|
4
2
|
export function keepGraphHead(database, input) {
|
|
5
3
|
const { authorityId, deliveryWatermark, headVersion, snapshot, checksum } = input;
|
|
6
4
|
if (!authorityId)
|
|
@@ -20,8 +18,6 @@ export function keepGraphHead(database, input) {
|
|
|
20
18
|
snapshot_checksum = excluded.snapshot_checksum
|
|
21
19
|
WHERE excluded.head_version > authority_graph_heads.head_version
|
|
22
20
|
`).run(authorityId, deliveryWatermark, headVersion, Buffer.from(snapshot), checksum);
|
|
23
|
-
// The line's judge (line-judge.ts) folds from a head before the first
|
|
24
|
-
// record the line has not discharged, so one before it is always kept.
|
|
25
21
|
const basis = newestHeadThrough(database, authorityId, lineFrontier(database, authorityId) - 1);
|
|
26
22
|
if (basis === undefined)
|
|
27
23
|
return;
|
|
@@ -29,8 +25,6 @@ export function keepGraphHead(database, input) {
|
|
|
29
25
|
DELETE FROM authority_graph_heads WHERE authority_id = ? AND delivery_watermark < ?
|
|
30
26
|
`).run(authorityId, basis);
|
|
31
27
|
}
|
|
32
|
-
/** What this machine has received of an authority's line: its delivery
|
|
33
|
-
* cursor, else its newest kept head's watermark, else nothing. */
|
|
34
28
|
export function readDeliveryReceipt(database, authorityId) {
|
|
35
29
|
const cursor = cachedStatement(database, `
|
|
36
30
|
SELECT received_through AS through, history_floor AS floor
|
|
@@ -41,8 +35,6 @@ export function readDeliveryReceipt(database, authorityId) {
|
|
|
41
35
|
const head = newestHeadThrough(database, authorityId, Number.MAX_SAFE_INTEGER);
|
|
42
36
|
return head === undefined ? undefined : { through: head, floor: head };
|
|
43
37
|
}
|
|
44
|
-
/** The newest kept head that can begin a fold through `position`: at or
|
|
45
|
-
* below it, and at or above the history floor, where the Inbox is complete. */
|
|
46
38
|
export function readGraphBasis(database, authorityId, position) {
|
|
47
39
|
const floor = readDeliveryReceipt(database, authorityId)?.floor ?? 0;
|
|
48
40
|
return cachedStatement(database, `
|
|
@@ -52,23 +44,18 @@ export function readGraphBasis(database, authorityId, position) {
|
|
|
52
44
|
ORDER BY delivery_watermark DESC LIMIT 1
|
|
53
45
|
`).get(authorityId, position, floor);
|
|
54
46
|
}
|
|
55
|
-
/** The newest head this machine keeps, by the authority's version and
|
|
56
|
-
* checksum. */
|
|
57
47
|
export function readNewestGraphHead(database, authorityId) {
|
|
58
48
|
return cachedStatement(database, `
|
|
59
49
|
SELECT head_version AS version, snapshot_checksum AS checksum FROM authority_graph_heads
|
|
60
50
|
WHERE authority_id = ? ORDER BY delivery_watermark DESC LIMIT 1
|
|
61
51
|
`).get(authorityId);
|
|
62
52
|
}
|
|
63
|
-
/** The bytes of the kept head `head` names; undefined once a newer version
|
|
64
|
-
* at its watermark replaced it or a newer head made it unnecessary. */
|
|
65
53
|
export function readGraphSnapshot(database, authorityId, head) {
|
|
66
54
|
return cachedStatement(database, `
|
|
67
55
|
SELECT snapshot FROM authority_graph_heads
|
|
68
56
|
WHERE authority_id = ? AND delivery_watermark = ? AND snapshot_checksum = ?
|
|
69
57
|
`).pluck().get(authorityId, head.deliveryWatermark, head.checksum);
|
|
70
58
|
}
|
|
71
|
-
/** c + 1: the first position the line has not discharged. */
|
|
72
59
|
export function lineFrontier(database, authorityId) {
|
|
73
60
|
const unresolved = cachedStatement(database, `
|
|
74
61
|
SELECT delivery_sequence FROM record_inbox INDEXED BY record_inbox_line
|
|
@@ -87,4 +74,3 @@ function newestHeadThrough(database, authorityId, position) {
|
|
|
87
74
|
WHERE authority_id = ? AND delivery_watermark <= ?
|
|
88
75
|
`).pluck().get(authorityId, position) ?? undefined;
|
|
89
76
|
}
|
|
90
|
-
//# sourceMappingURL=graph-heads.js.map
|