@amalgm/shell 0.1.164-preview.44386772850 → 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 +0 -10
- package/dist/billing/mount.js +0 -1
- package/dist/billing/tools.js +0 -3
- 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 +24 -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 +0 -4
- 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 +29 -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/billing/cli.d.ts +0 -18
- package/dist/billing/cli.js.map +0 -1
- package/dist/billing/mount.d.ts +0 -12
- package/dist/billing/mount.js.map +0 -1
- package/dist/billing/tools.d.ts +0 -57
- package/dist/billing/tools.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 -34
- 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
|
@@ -1,61 +1,15 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* What a person writes in the sync root travels to the shelf, and only that.
|
|
3
|
-
* Windows tells the provider when a placeholder is removed or renamed
|
|
4
|
-
* (asks.ts), but never of a write or a new file. So the door watches the
|
|
5
|
-
* sync root, and examines each name that changes in a folder it has
|
|
6
|
-
* answered whole:
|
|
7
|
-
*
|
|
8
|
-
* - a placeholder still in sync is already the shelf's: nothing travels, so
|
|
9
|
-
* the door's own changes there echo nothing. But Windows keeps a whole one
|
|
10
|
-
* in sync through an append, so one whose size is not the one its identity
|
|
11
|
-
* names was written, and travels as any other (paths.ts);
|
|
12
|
-
* - a file a person wrote or made becomes the shelf's bytes. It is made a
|
|
13
|
-
* placeholder first, so its change number says whether it moved again
|
|
14
|
-
* while its bytes were copied. A file the shelf holds is written over in
|
|
15
|
-
* place and cut to length, so it never stands empty, as an append on any
|
|
16
|
-
* disk; one it does not hold yet is emptied first, as an overwrite is, so
|
|
17
|
-
* it is placed with none of the bytes it replaces (operations.ts). Only if
|
|
18
|
-
* it did not move is it said in sync, with the shelf file's stamp;
|
|
19
|
-
* - a folder a person made is made on the shelf, then a whole placeholder,
|
|
20
|
-
* and what it holds travels after it;
|
|
21
|
-
* - a link travels as a link, with its own target text. If a person removes
|
|
22
|
-
* a link the door made, it is removed from the shelf too;
|
|
23
|
-
* - a placeholder's removal is for Windows to tell; the door never infers it
|
|
24
|
-
* from absence alone. Windows asks before it removes one or moves it out
|
|
25
|
-
* of the sync root, to the Recycle Bin or out of the drive (asks.ts), may
|
|
26
|
-
* still take a removal back, and fetches what one holds on its way out. So
|
|
27
|
-
* the shelf keeps it until it has gone, then removes it whole, after every
|
|
28
|
-
* carry beneath it.
|
|
29
|
-
*
|
|
30
|
-
* Every shelf change goes through the drive's operations, as a person's
|
|
31
|
-
* change does through any other door. Each takes its turn at its path,
|
|
32
|
-
* beside the removals and renames Windows asks there (turns.ts). Where the
|
|
33
|
-
* drive refuses one (EPERM), it stays as the person made it and is never
|
|
34
|
-
* removed. A change that cannot happen yet is examined again shortly: the
|
|
35
|
-
* file is still open, or it moved again mid-copy. A lost watch, or one
|
|
36
|
-
* Windows overflowed, proves nothing, so the door looks at every folder
|
|
37
|
-
* again (reconcile.ts). While the door rests nothing travels; it looks again
|
|
38
|
-
* when it serves.
|
|
39
|
-
*/
|
|
40
1
|
import { closeSync, lstatSync, openSync, readdirSync, readlinkSync, readSync, watch } from "node:fs";
|
|
41
2
|
import { win32 } from "node:path";
|
|
42
3
|
import { constants } from "node:fs";
|
|
43
4
|
import { addressOf } from "../operations.js";
|
|
44
5
|
import { failed } from "./binding.js";
|
|
45
6
|
import { appended, childOf, drivePath, identityOf, identityText, missing, parentOf, stamp, syncPath } from "./paths.js";
|
|
46
|
-
import { forgetLeaving, forgetLinks, hresult, ownLink, reason } from "./sync-root.js";
|
|
7
|
+
import { forgetLeaving, forgetLinks, hresult, ownLink, reason, stillMoving } from "./sync-root.js";
|
|
47
8
|
import { Turns } from "./turns.js";
|
|
48
|
-
/** How long a burst of changes gathers before its names are examined. */
|
|
49
9
|
const SETTLE = 50;
|
|
50
|
-
/** The first wait before a name that could not travel yet is examined
|
|
51
|
-
* again; each later wait doubles, up to the longest. */
|
|
52
10
|
const AGAIN = 1000;
|
|
53
11
|
const LONGEST = 60_000;
|
|
54
|
-
/** One copy's bytes: between two, the thread answers other asks. */
|
|
55
12
|
const CHUNK = 1 << 20;
|
|
56
|
-
/** Watches the sync root and carries each person's change to the shelf
|
|
57
|
-
* through the operations serving now. `lost` is told when the watch can no
|
|
58
|
-
* longer say which names changed. */
|
|
59
13
|
export function watchWrites(sync, serving, lost) {
|
|
60
14
|
const { binding } = sync;
|
|
61
15
|
const { STATE_PLACEHOLDER, STATE_PARTIAL, ERROR_SHARING_VIOLATION, ERROR_CLOUD_FILE_IN_USE } = binding.constants;
|
|
@@ -72,20 +26,19 @@ export function watchWrites(sync, serving, lost) {
|
|
|
72
26
|
timer.unref();
|
|
73
27
|
timers.add(timer);
|
|
74
28
|
};
|
|
29
|
+
const examined = (at) => examine(at).catch((error) => {
|
|
30
|
+
if (refused(error)) {
|
|
31
|
+
sync.log(`${at} stays in the sync root only: the drive refuses it there (${reason(error)})`);
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
sync.log(`could not carry ${at} to the shelf: ${reason(error)}`);
|
|
35
|
+
return false;
|
|
36
|
+
});
|
|
75
37
|
const carry = (at) => {
|
|
76
38
|
if (closed || at === "/")
|
|
77
39
|
return;
|
|
78
40
|
const key = at.toLowerCase();
|
|
79
|
-
const
|
|
80
|
-
.catch((error) => {
|
|
81
|
-
if (refused(error)) {
|
|
82
|
-
sync.log(`${at} stays in the sync root only: the drive refuses it there (${reason(error)})`);
|
|
83
|
-
return true;
|
|
84
|
-
}
|
|
85
|
-
sync.log(`could not carry ${at} to the shelf: ${reason(error)}`);
|
|
86
|
-
return false;
|
|
87
|
-
})
|
|
88
|
-
.then((settled) => {
|
|
41
|
+
const run = () => examined(at).then((settled) => {
|
|
89
42
|
carried([key]);
|
|
90
43
|
if (settled) {
|
|
91
44
|
waits.delete(key);
|
|
@@ -95,16 +48,13 @@ export function watchWrites(sync, serving, lost) {
|
|
|
95
48
|
waits.set(key, wait);
|
|
96
49
|
later(wait, () => carry(at));
|
|
97
50
|
});
|
|
98
|
-
|
|
99
|
-
// goes only after every carry beneath it.
|
|
100
|
-
void (sync.leaving.has(key) ? turns.after([at], examined) : turns.carry(at, examined));
|
|
51
|
+
void (sync.leaving.has(key) ? turns.after([at], run) : turns.carry(at, run));
|
|
101
52
|
};
|
|
102
53
|
const carried = (keys) => {
|
|
103
54
|
for (const tracked of trackers)
|
|
104
55
|
for (const key of keys)
|
|
105
56
|
tracked.add(key);
|
|
106
57
|
};
|
|
107
|
-
/** Whether the name at a drive path is settled; false to look again. */
|
|
108
58
|
async function examine(at) {
|
|
109
59
|
const now = serving();
|
|
110
60
|
if (now === null || !(sync.leaving.has(at.toLowerCase()) || sync.populated.has(parentOf(at))))
|
|
@@ -127,28 +77,16 @@ export function watchWrites(sync, serving, lost) {
|
|
|
127
77
|
const placeholder = (state.states & STATE_PLACEHOLDER) !== 0;
|
|
128
78
|
if (state.directory)
|
|
129
79
|
return placeholder ? settle(path, state) : folder(now.operations, at, path);
|
|
80
|
+
if (stillMoving(sync, at, state.usn))
|
|
81
|
+
return true;
|
|
130
82
|
if (!placeholder)
|
|
131
83
|
return file(now, at, path, null);
|
|
132
|
-
// A file whose bytes are not all here was never written into: Windows
|
|
133
|
-
// fetches a placeholder whole before a write that keeps its bytes. An
|
|
134
|
-
// overwrite replaces them, so the file stands whole here and is carried.
|
|
135
84
|
if (state.states & STATE_PARTIAL)
|
|
136
85
|
return settle(path, state);
|
|
137
|
-
if (state.inSync && !(
|
|
86
|
+
if (state.inSync && !appended(state, identityOf(state.identity)))
|
|
138
87
|
return true;
|
|
139
88
|
return file(now, at, path, state.usn);
|
|
140
89
|
}
|
|
141
|
-
/** Whether a whole placeholder in sync was appended to (paths.ts). */
|
|
142
|
-
async function written(now, at, state) {
|
|
143
|
-
const identity = identityOf(state.identity);
|
|
144
|
-
if (!identity?.v)
|
|
145
|
-
return appended(state, identity, null);
|
|
146
|
-
const where = await now.drive.where(addressOf(at));
|
|
147
|
-
return appended(state, identity, where.kind === "listed" ? where.entry : where.kind === "shelf" ? where.entity : null);
|
|
148
|
-
}
|
|
149
|
-
/** A placeholder whose bytes are the shelf's, said in sync again. A
|
|
150
|
-
* folder's own USN does not move when anything inside it changes, so it
|
|
151
|
-
* guards nothing there: a folder is said in sync as it stands. */
|
|
152
90
|
function settle(path, state) {
|
|
153
91
|
if (state.inSync)
|
|
154
92
|
return true;
|
|
@@ -160,7 +98,7 @@ export function watchWrites(sync, serving, lost) {
|
|
|
160
98
|
}
|
|
161
99
|
async function folder(operations, at, path) {
|
|
162
100
|
try {
|
|
163
|
-
await
|
|
101
|
+
await operations.mkdir(at, 0o755);
|
|
164
102
|
}
|
|
165
103
|
catch (error) {
|
|
166
104
|
if (code(error) !== "EEXIST")
|
|
@@ -191,7 +129,6 @@ export function watchWrites(sync, serving, lost) {
|
|
|
191
129
|
return false;
|
|
192
130
|
throw hresult("convert", converted.hr);
|
|
193
131
|
}
|
|
194
|
-
// Converting gives no USN: the file's own, read now, guards the copy.
|
|
195
132
|
base = binding.state(path)?.usn ?? null;
|
|
196
133
|
if (base === null)
|
|
197
134
|
return false;
|
|
@@ -212,7 +149,7 @@ export function watchWrites(sync, serving, lost) {
|
|
|
212
149
|
const unplaced = (await now.drive.where(addressOf(at))).kind === "listed";
|
|
213
150
|
let fd;
|
|
214
151
|
try {
|
|
215
|
-
fd = await
|
|
152
|
+
fd = await opened(operations, at, unplaced);
|
|
216
153
|
}
|
|
217
154
|
catch (error) {
|
|
218
155
|
if (code(error) !== "EISDIR")
|
|
@@ -230,8 +167,6 @@ export function watchWrites(sync, serving, lost) {
|
|
|
230
167
|
total += read;
|
|
231
168
|
await new Promise(setImmediate);
|
|
232
169
|
}
|
|
233
|
-
// Cut to length last: a file written over in place, or one that
|
|
234
|
-
// landed while a new one was made, keeps no tail past these bytes.
|
|
235
170
|
await operations.ftruncate(at, fd, total);
|
|
236
171
|
stats = await operations.fgetattr(at, fd);
|
|
237
172
|
}
|
|
@@ -266,16 +201,14 @@ export function watchWrites(sync, serving, lost) {
|
|
|
266
201
|
if (current !== target) {
|
|
267
202
|
if (current !== null)
|
|
268
203
|
await operations.unlink(at);
|
|
269
|
-
await
|
|
204
|
+
await operations.symlink(target, at);
|
|
270
205
|
}
|
|
271
206
|
sync.links.set(at.toLowerCase(), target);
|
|
272
207
|
return true;
|
|
273
208
|
}
|
|
274
|
-
/** Nothing stands at a drive path. Only a placeholder Windows heard may
|
|
275
|
-
* leave, or a link the door made there, says a person removed something:
|
|
276
|
-
* the shelf's goes too, a link unless it already leads somewhere new. */
|
|
277
209
|
async function gone(operations, at) {
|
|
278
210
|
const key = at.toLowerCase();
|
|
211
|
+
sync.moving.delete(key);
|
|
279
212
|
if (sync.leaving.has(key))
|
|
280
213
|
return left(operations, at);
|
|
281
214
|
const target = sync.links.get(key);
|
|
@@ -292,8 +225,6 @@ export function watchWrites(sync, serving, lost) {
|
|
|
292
225
|
}
|
|
293
226
|
return true;
|
|
294
227
|
}
|
|
295
|
-
/** A placeholder has left the sync root: the shelf's goes, whole. What the
|
|
296
|
-
* drive refuses to remove stays, and is shown again. */
|
|
297
228
|
async function left(operations, at) {
|
|
298
229
|
try {
|
|
299
230
|
await removeTree(operations, at);
|
|
@@ -309,37 +240,11 @@ export function watchWrites(sync, serving, lost) {
|
|
|
309
240
|
return true;
|
|
310
241
|
}
|
|
311
242
|
const busy = (hr) => hr === ERROR_SHARING_VIOLATION || hr === ERROR_CLOUD_FILE_IN_USE;
|
|
312
|
-
/** Makes something at a drive path, and first the shelf folders above it
|
|
313
|
-
* that a person's folder there never made. */
|
|
314
|
-
async function made(operations, at, make) {
|
|
315
|
-
try {
|
|
316
|
-
return await make();
|
|
317
|
-
}
|
|
318
|
-
catch (error) {
|
|
319
|
-
if (code(error) !== "ENOENT")
|
|
320
|
-
throw error;
|
|
321
|
-
await folders(operations, parentOf(at));
|
|
322
|
-
return make();
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
async function folders(operations, at) {
|
|
326
|
-
if (at === "/")
|
|
327
|
-
return;
|
|
328
|
-
try {
|
|
329
|
-
await made(operations, at, () => operations.mkdir(at, 0o755));
|
|
330
|
-
}
|
|
331
|
-
catch (error) {
|
|
332
|
-
if (code(error) !== "EEXIST")
|
|
333
|
-
throw error;
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
243
|
const listen = () => {
|
|
337
244
|
if (closed)
|
|
338
245
|
return;
|
|
339
246
|
try {
|
|
340
247
|
watcher = watch(sync.root, { recursive: true }, (_event, name) => {
|
|
341
|
-
// Windows names nothing when its buffer overflowed: every folder is
|
|
342
|
-
// looked at again.
|
|
343
248
|
if (name === null) {
|
|
344
249
|
lost();
|
|
345
250
|
return;
|
|
@@ -373,7 +278,7 @@ export function watchWrites(sync, serving, lost) {
|
|
|
373
278
|
carry,
|
|
374
279
|
async after(paths, change) {
|
|
375
280
|
try {
|
|
376
|
-
return await turns.after(paths, change);
|
|
281
|
+
return await turns.after(paths, () => change(async (at) => { await examined(at); }));
|
|
377
282
|
}
|
|
378
283
|
finally {
|
|
379
284
|
carried(paths.map((at) => at.toLowerCase()));
|
|
@@ -398,10 +303,6 @@ export function watchWrites(sync, serving, lost) {
|
|
|
398
303
|
},
|
|
399
304
|
};
|
|
400
305
|
}
|
|
401
|
-
/** Removes the drive's address and everything beneath it, each through the
|
|
402
|
-
* drive, as `rm -r` does through any other sync. What has already gone is
|
|
403
|
-
* removed, whoever removed it: a folder whose file another turn removed
|
|
404
|
-
* first still goes. */
|
|
405
306
|
export async function removeTree(operations, at) {
|
|
406
307
|
try {
|
|
407
308
|
const stats = await operations.getattr(at);
|
|
@@ -416,9 +317,6 @@ export async function removeTree(operations, at) {
|
|
|
416
317
|
throw error;
|
|
417
318
|
}
|
|
418
319
|
}
|
|
419
|
-
/** Opens the shelf file to write over, making it when it is new. One the
|
|
420
|
-
* shelf does not hold yet is emptied first, so it is placed with none of the
|
|
421
|
-
* bytes the copy replaces. */
|
|
422
320
|
async function opened(operations, at, unplaced) {
|
|
423
321
|
try {
|
|
424
322
|
if (unplaced)
|
|
@@ -433,4 +331,3 @@ async function opened(operations, at, unplaced) {
|
|
|
433
331
|
}
|
|
434
332
|
const code = (error) => (typeof error === "object" && error !== null ? error.code : undefined);
|
|
435
333
|
const refused = (error) => code(error) === "EPERM" || code(error) === "EACCES";
|
|
436
|
-
//# sourceMappingURL=writes.js.map
|
package/dist/drive/computer.js
CHANGED
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Whether this computer's home is the drive. Aayush, 11-02: "install -
|
|
3
|
-
* runtime is present. login - gives us identity to attach to the runtime so -
|
|
4
|
-
* drive should be present as well." So the drive comes with login wherever
|
|
5
|
-
* this computer can serve it, with no flag, and stays with the runtime: every
|
|
6
|
-
* command, and every start of the runtime the service makes, reads the same
|
|
7
|
-
* answer from disk, in this order.
|
|
8
|
-
*
|
|
9
|
-
* 1. A computer whose homes are the drive's stays a drive computer.
|
|
10
|
-
* 2. A computer that already holds a downloaded home keeps it: the drive
|
|
11
|
-
* never swaps under files a person has.
|
|
12
|
-
* 3. A fresh computer takes the drive where it has a door: a Mac through its
|
|
13
|
-
* own NFS client, Linux through FUSE once the binding loads and the device
|
|
14
|
-
* stands, Windows through its own Cloud Files sync root once Amalgm's
|
|
15
|
-
* binding loads. Anywhere else the home is the whole download, and status
|
|
16
|
-
* says why.
|
|
17
|
-
*/
|
|
18
1
|
import { existsSync, readdirSync } from "node:fs";
|
|
19
2
|
import { loadCloudFiles } from "./cloud-files/binding.js";
|
|
20
3
|
import { loadFuse } from "./fuse.js";
|
|
@@ -52,10 +35,8 @@ export async function homeOf(lane, doors = {}) {
|
|
|
52
35
|
}
|
|
53
36
|
return { drive: true, reason: "the drive serves this computer through FUSE" };
|
|
54
37
|
}
|
|
55
|
-
/** A person's home is a folder: a stray file Finder left is none. */
|
|
56
38
|
function holdsHome(users) {
|
|
57
39
|
if (!existsSync(users))
|
|
58
40
|
return false;
|
|
59
41
|
return readdirSync(users, { withFileTypes: true }).some((entry) => entry.isDirectory());
|
|
60
42
|
}
|
|
61
|
-
//# sourceMappingURL=computer.js.map
|
package/dist/drive/fuse-opens.js
CHANGED
|
@@ -1,29 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* When a FUSE open places a file: at its first read or write, never at the
|
|
3
|
-
* open itself. Linux hands the filesystem every open(2), and many use no
|
|
4
|
-
* bytes: GNU `touch` opens a file to set its times through the descriptor,
|
|
5
|
-
* and `> file` opens it to empty it. NFS sends no open at all (nfs/nfs3.ts
|
|
6
|
-
* opens around each READ and WRITE), and Windows asks for bytes as it reads
|
|
7
|
-
* them (cloud-files/asks.ts), so every door brings a file's bytes down when
|
|
8
|
-
* they are first used.
|
|
9
|
-
*
|
|
10
|
-
* An open judges access as the drive shows the file, as stat does, and
|
|
11
|
-
* hands the kernel a handle of this door's own. The first read or write
|
|
12
|
-
* opens the file through the drive's operations, which places it, and every
|
|
13
|
-
* use after shares that opening; one that failed opened nothing and is tried
|
|
14
|
-
* again at the next use. Until then a handle's attributes are its path's,
|
|
15
|
-
* its truncation is its path's, and flush, fsync and release have nothing to
|
|
16
|
-
* do. A creation opens at once: the file it makes has no bytes to wait for.
|
|
17
|
-
*
|
|
18
|
-
* Until its first use a handle names its file by path, as an NFS handle
|
|
19
|
-
* names its node (nfs/handles.ts): libfuse follows a rename made through
|
|
20
|
-
* the mount, and a change made elsewhere is what the use finds there. A file
|
|
21
|
-
* gone from that name is ESTALE, as the NFS door answers it.
|
|
22
|
-
*/
|
|
23
1
|
import { constants } from "node:fs";
|
|
24
2
|
import { errno } from "./operations.js";
|
|
25
|
-
/** The operations serving when the kernel asks, each open placing its file
|
|
26
|
-
* at the first read or write. */
|
|
27
3
|
export function opensAtUse(serving) {
|
|
28
4
|
const handles = new Map();
|
|
29
5
|
let next = 1;
|
|
@@ -38,9 +14,6 @@ export function opensAtUse(serving) {
|
|
|
38
14
|
handles.set(fd, handle);
|
|
39
15
|
return fd;
|
|
40
16
|
};
|
|
41
|
-
/** The drive's descriptor for `fd`, opening the file at `path` (the
|
|
42
|
-
* kernel's name for it now) the first time; a failed opening is forgotten,
|
|
43
|
-
* so the next use opens again. */
|
|
44
17
|
async function used(path, fd) {
|
|
45
18
|
const handle = held(fd);
|
|
46
19
|
if (handle.opening === null) {
|
|
@@ -53,8 +26,6 @@ export function opensAtUse(serving) {
|
|
|
53
26
|
}
|
|
54
27
|
return handle.opening;
|
|
55
28
|
}
|
|
56
|
-
/** The drive's descriptor for `fd` once a use opened the file, else null:
|
|
57
|
-
* an opening that failed opened nothing. */
|
|
58
29
|
async function opened(fd) {
|
|
59
30
|
const { opening } = held(fd);
|
|
60
31
|
return opening === null ? null : opening.catch(() => null);
|
|
@@ -99,7 +70,6 @@ export function opensAtUse(serving) {
|
|
|
99
70
|
},
|
|
100
71
|
};
|
|
101
72
|
}
|
|
102
|
-
/** access(2)'s question for an open's access mode. */
|
|
103
73
|
function wanted(flags) {
|
|
104
74
|
switch (flags & (constants.O_WRONLY | constants.O_RDWR)) {
|
|
105
75
|
case constants.O_WRONLY: return constants.W_OK;
|
|
@@ -107,4 +77,3 @@ function wanted(flags) {
|
|
|
107
77
|
default: return constants.R_OK;
|
|
108
78
|
}
|
|
109
79
|
}
|
|
110
|
-
//# sourceMappingURL=fuse-opens.js.map
|
package/dist/drive/fuse.js
CHANGED
|
@@ -1,34 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Linux only. Each kernel operation is answered by the drive's operations
|
|
4
|
-
* (operations.ts), each open placing its file at the first read or write
|
|
5
|
-
* (fuse-opens.ts); this file turns them into the binding's callbacks and
|
|
6
|
-
* stands the mount. The attribute cache is held at zero, so after a read or
|
|
7
|
-
* write places a file the kernel re-asks and reads its real size.
|
|
8
|
-
*
|
|
9
|
-
* Every handler answers on the main thread of the program that mounts the
|
|
10
|
-
* drive: the binding hands each kernel request to JavaScript there and the
|
|
11
|
-
* kernel waits for the answer (operations.ts says what that asks of them).
|
|
12
|
-
*
|
|
13
|
-
* The binding is native code for one platform, so Shell does not depend on
|
|
14
|
-
* it: the mount image installs it beside `amalgm` and names it in
|
|
15
|
-
* AMALGM_FUSE_MODULE. Without it, or off Linux, the drive refuses by name.
|
|
16
|
-
*/
|
|
17
|
-
import { resolve } from "node:path";
|
|
1
|
+
import { readFileSync, realpathSync } from "node:fs";
|
|
2
|
+
import { basename, dirname, join, resolve } from "node:path";
|
|
18
3
|
import { pathToFileURL } from "node:url";
|
|
19
4
|
import { opensAtUse } from "./fuse-opens.js";
|
|
20
5
|
import { folderLock, standMountpoint } from "./mountpoint.js";
|
|
21
|
-
import { driveOperations,
|
|
22
|
-
/** Operations whose answer to libfuse is a byte count: fuse-native hands its
|
|
23
|
-
* callback's first argument to libfuse as the return value, so these say the
|
|
24
|
-
* count where every other operation says 0. */
|
|
6
|
+
import { driveOperations, } from "./operations.js";
|
|
25
7
|
const COUNTED = new Set(["read", "write"]);
|
|
26
|
-
/** A folder's listing as the kernel hears it: libfuse passes on exactly the
|
|
27
|
-
* names it is given, so the door names `.` and `..` first, as every folder
|
|
28
|
-
* does (the NFS door names them in its own reply, nfs/nfs3.ts). */
|
|
29
8
|
const listing = (names) => [".", "..", ...names];
|
|
30
|
-
/** Promise-returning operations as fuse-native's callback operations; a
|
|
31
|
-
* rejection becomes its errno, EIO for a placement that could not finish. */
|
|
32
9
|
export function callbacks(operations, fuse) {
|
|
33
10
|
const out = {};
|
|
34
11
|
for (const name of Object.keys(operations)) {
|
|
@@ -45,8 +22,6 @@ export function callbacks(operations, fuse) {
|
|
|
45
22
|
}
|
|
46
23
|
return out;
|
|
47
24
|
}
|
|
48
|
-
/** The errno libfuse hears for a failed operation: a drive error (missing
|
|
49
|
-
* bytes) is EIO; a known errno keeps its name; anything else is EIO. */
|
|
50
25
|
export function code(error, fuse) {
|
|
51
26
|
const named = typeof error === "object" && error !== null ? error : null;
|
|
52
27
|
if (named?.name === "DriveError")
|
|
@@ -54,8 +29,6 @@ export function code(error, fuse) {
|
|
|
54
29
|
const known = typeof named?.code === "string" ? fuse[named.code] : undefined;
|
|
55
30
|
return typeof known === "number" ? known : fuse.EIO;
|
|
56
31
|
}
|
|
57
|
-
/** The binding the mount image installs beside `amalgm`, at the path
|
|
58
|
-
* AMALGM_FUSE_MODULE names; `@cocalc/fuse-native` by name when unset. */
|
|
59
32
|
export async function loadFuse(spec = process.env.AMALGM_FUSE_MODULE) {
|
|
60
33
|
if (process.platform !== "linux") {
|
|
61
34
|
throw new Error(`the drive mounts through FUSE on Linux only, not on ${process.platform}`);
|
|
@@ -72,13 +45,23 @@ export async function loadFuse(spec = process.env.AMALGM_FUSE_MODULE) {
|
|
|
72
45
|
throw new Error(`the drive needs the FUSE binding ${name}: ${reason}. Install @cocalc/fuse-native beside amalgm and name its path in AMALGM_FUSE_MODULE`, { cause: error });
|
|
73
46
|
}
|
|
74
47
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
48
|
+
const FSNAME = "amalgm-drive";
|
|
49
|
+
export function fuseStanding(mountpoint, table = "/proc/self/mountinfo") {
|
|
50
|
+
let at, lines;
|
|
51
|
+
try {
|
|
52
|
+
at = join(realpathSync(dirname(mountpoint)), basename(mountpoint));
|
|
53
|
+
lines = readFileSync(table, "utf8").split("\n");
|
|
54
|
+
}
|
|
55
|
+
catch {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
const unescaped = (field) => field.replace(/\\([0-7]{3})/g, (_, octal) => String.fromCharCode(parseInt(octal, 8)));
|
|
59
|
+
return lines.some((line) => {
|
|
60
|
+
const fields = line.split(" ");
|
|
61
|
+
const dash = fields.indexOf("-", 6);
|
|
62
|
+
return dash > 0 && fields[dash + 2] === FSNAME && unescaped(fields[4] ?? "") === at;
|
|
63
|
+
});
|
|
64
|
+
}
|
|
82
65
|
export async function mountDrive(input) {
|
|
83
66
|
const owned = new Set();
|
|
84
67
|
const listings = new Map();
|
|
@@ -86,17 +69,14 @@ export async function mountDrive(input) {
|
|
|
86
69
|
drive: drive.drive, shelf: drive.shelf, home: drive.home, keeper: drive.keeper, owned, listings,
|
|
87
70
|
...(drive.onPlaced ? { onPlaced: drive.onPlaced } : {}),
|
|
88
71
|
});
|
|
89
|
-
|
|
90
|
-
const rest = resting(Object.keys(serving));
|
|
72
|
+
const serving = operations(input);
|
|
91
73
|
await standMountpoint(input.mountpoint, folderLock("linux"));
|
|
92
74
|
const fuse = new input.fuse(input.mountpoint, callbacks(opensAtUse(() => serving), input.fuse), {
|
|
93
|
-
force: true, fsname:
|
|
75
|
+
force: true, fsname: FSNAME, attrTimeout: "0", timeout: false,
|
|
94
76
|
});
|
|
95
77
|
await new Promise((done, fail) => fuse.mount((error) => (error ? fail(error) : done())));
|
|
96
78
|
return {
|
|
97
|
-
serve: (drive) => { serving = operations(drive); },
|
|
98
|
-
rest: () => { serving = rest; },
|
|
99
79
|
unmount: () => new Promise((done, fail) => fuse.unmount((error) => (error ? fail(error) : done()))),
|
|
80
|
+
leave: async () => undefined,
|
|
100
81
|
};
|
|
101
82
|
}
|
|
102
|
-
//# sourceMappingURL=fuse.js.map
|