@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
|
@@ -1,49 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The runtime's side of its Files program (program.ts). Files runs as its
|
|
3
|
-
* own program because the drive's kernel requests are answered on the main
|
|
4
|
-
* thread of the process that mounted it, and a runtime that starts a program
|
|
5
|
-
* whose working folder is on the drive waits, on that same thread, for the
|
|
6
|
-
* program to start: a runtime serving its own drive would wait on itself.
|
|
7
|
-
*
|
|
8
|
-
* The runtime keeps what it established (the Wire, each converged ground, the
|
|
9
|
-
* drive) and, when the program stops, starts it again under Core's child
|
|
10
|
-
* supervision and establishes the same things in the same order. A call made
|
|
11
|
-
* while the program restarts waits for it. What only changes what the runtime
|
|
12
|
-
* keeps (a close, above all) does not: a program that stopped holds nothing to
|
|
13
|
-
* close, and the next starts from what the runtime keeps. Counts the program
|
|
14
|
-
* said go to nobody when it stops: while it is down nothing can say nothing
|
|
15
|
-
* would be lost. It says why it is down until it stands again, since what it
|
|
16
|
-
* established (Watch above all) does not stand meanwhile.
|
|
17
|
-
*
|
|
18
|
-
* A program that stands but no longer answers has stopped too. It is watched by
|
|
19
|
-
* the rule the service watches the runtime by, with the same patience, so a
|
|
20
|
-
* call made of it ends and it is replaced. A launch that never stood counts as
|
|
21
|
-
* no run at all, however long it took to fail.
|
|
22
|
-
*/
|
|
23
|
-
import { fork } from "node:child_process";
|
|
24
1
|
import { fileURLToPath } from "node:url";
|
|
25
|
-
import {
|
|
26
|
-
import { errorFacts, reviveError } from "../error-facts.js";
|
|
2
|
+
import { reviveError } from "../error-facts.js";
|
|
27
3
|
import { channelLate } from "../loop-watch.js";
|
|
28
|
-
import {
|
|
29
|
-
import { ALWAYS_ON_POLICY } from "../service/policy.js";
|
|
30
|
-
import { watchLiveness } from "../updates/bootstrap.js";
|
|
4
|
+
import { SupervisedProgram } from "../supervised-program/parent.js";
|
|
31
5
|
import { countHandle, FILES_PROGRAM_STOPPED, } from "./protocol.js";
|
|
32
6
|
const FILES_PROGRAM = fileURLToPath(new URL("./program.js", import.meta.url));
|
|
33
|
-
/** How long a closing program may take to exit once told to. */
|
|
34
|
-
const CLOSE_GRACE_MS = 5_000;
|
|
35
|
-
const LIVENESS = { ...ALWAYS_ON_POLICY.liveness, stableAfterMs: ALWAYS_ON_POLICY.restart.stableAfterMs };
|
|
36
7
|
export class FilesProgram {
|
|
37
8
|
options;
|
|
38
9
|
init;
|
|
39
|
-
|
|
40
|
-
launch = null;
|
|
41
|
-
ready = null;
|
|
42
|
-
retry = null;
|
|
43
|
-
stopped = null;
|
|
44
|
-
/** Why the last start or the running program failed, until one stands again. */
|
|
45
|
-
failure = null;
|
|
46
|
-
nextCall = 0;
|
|
10
|
+
program;
|
|
47
11
|
nextHandle = 0;
|
|
48
12
|
counts = new Map();
|
|
49
13
|
selection = { app: null, secret: null };
|
|
@@ -59,31 +23,38 @@ export class FilesProgram {
|
|
|
59
23
|
...(options.openWatchModule ? { openWatchModule: options.openWatchModule } : {}),
|
|
60
24
|
observed: Object.keys(options.observers).filter((name) => options.observers[name]),
|
|
61
25
|
installStage: options.installStage !== undefined,
|
|
26
|
+
drive: options.drive,
|
|
62
27
|
};
|
|
28
|
+
this.program = new SupervisedProgram({
|
|
29
|
+
file: FILES_PROGRAM,
|
|
30
|
+
name: "the Files program",
|
|
31
|
+
cwd: options.cwd,
|
|
32
|
+
stoppedCode: FILES_PROGRAM_STOPPED,
|
|
33
|
+
degradedCode: "files_degraded",
|
|
34
|
+
establish: (send) => this.establish(send),
|
|
35
|
+
lost: () => this.lost(),
|
|
36
|
+
question: (method, args) => this.question(method, args),
|
|
37
|
+
event: (name, value) => this.event(name, value),
|
|
38
|
+
count: (handle, value) => this.counts.get(handle)?.(value),
|
|
39
|
+
late: (method, sentAt) => channelLate(options.observers.filesStage, "reply", method, sentAt),
|
|
40
|
+
backgroundError: (error) => options.observers.backgroundError?.(error),
|
|
41
|
+
});
|
|
63
42
|
}
|
|
64
|
-
/** Why nothing this program established stands now, or null while it does;
|
|
65
|
-
* `parked` when it will not try again. Asking starts nothing and waits for
|
|
66
|
-
* nothing. */
|
|
67
43
|
down() {
|
|
68
|
-
|
|
69
|
-
return { reason: this.stopped.message, parked: true };
|
|
70
|
-
return this.failure === null ? null : { reason: this.failure, parked: false };
|
|
44
|
+
return this.program.down();
|
|
71
45
|
}
|
|
72
|
-
/** What the runtime says about its products, for this program and any that
|
|
73
|
-
* replaces it. A word names only the products it changes. */
|
|
74
46
|
async products(word) {
|
|
75
47
|
this.selection = { ...this.selection, ...word };
|
|
76
|
-
await this.tell("products", this.selection);
|
|
48
|
+
await this.program.tell("products", this.selection);
|
|
77
49
|
}
|
|
78
|
-
/** Opens the runtime's one Wire in the program, closing any before it. */
|
|
79
50
|
async openWire(input) {
|
|
80
51
|
this.wire = input;
|
|
81
52
|
this.started = null;
|
|
82
|
-
await this.call("wire.open", input);
|
|
53
|
+
await this.program.call("wire.open", input);
|
|
83
54
|
const current = () => this.wire === input;
|
|
84
55
|
return {
|
|
85
56
|
start: async (port, token) => {
|
|
86
|
-
await this.call("wire.start", port, token);
|
|
57
|
+
await this.program.call("wire.start", port, token);
|
|
87
58
|
if (current())
|
|
88
59
|
this.started = { port, token };
|
|
89
60
|
},
|
|
@@ -91,36 +62,35 @@ export class FilesProgram {
|
|
|
91
62
|
if (!current())
|
|
92
63
|
return;
|
|
93
64
|
this.started = null;
|
|
94
|
-
await this.tell("wire.configure");
|
|
65
|
+
await this.program.tell("wire.configure");
|
|
95
66
|
},
|
|
96
67
|
close: async () => {
|
|
97
68
|
if (!current())
|
|
98
69
|
return;
|
|
99
70
|
this.wire = null;
|
|
100
71
|
this.started = null;
|
|
101
|
-
await this.tell("wire.close");
|
|
72
|
+
await this.program.tell("wire.close");
|
|
102
73
|
},
|
|
103
|
-
instance: () => this.call("wire.instance"),
|
|
104
|
-
vaultKey: (version) => this.call("wire.vaultKey", version),
|
|
74
|
+
instance: () => this.program.call("wire.instance"),
|
|
75
|
+
vaultKey: (version) => this.program.call("wire.vaultKey", version),
|
|
105
76
|
};
|
|
106
77
|
}
|
|
107
|
-
/** Creates a ground on the program's Wire. Once converged, it is created
|
|
108
|
-
* and converged again in every program that follows, until it closes. */
|
|
109
78
|
async createGround(input, counts) {
|
|
110
79
|
const id = ++this.nextHandle;
|
|
111
80
|
this.grounds.set(id, { input, counts, identity: null });
|
|
112
81
|
this.hand(id, counts());
|
|
113
82
|
try {
|
|
114
|
-
await this.call("ground.create", id, input);
|
|
83
|
+
await this.program.call("ground.create", id, input);
|
|
115
84
|
}
|
|
116
85
|
catch (error) {
|
|
117
86
|
this.forget(id);
|
|
118
87
|
throw error;
|
|
119
88
|
}
|
|
89
|
+
const call = this.program.call;
|
|
120
90
|
return {
|
|
121
91
|
id,
|
|
122
92
|
converge: async (identity) => {
|
|
123
|
-
const evidence = await
|
|
93
|
+
const evidence = await call("ground.converge", id, identity);
|
|
124
94
|
const held = this.grounds.get(id);
|
|
125
95
|
if (held)
|
|
126
96
|
held.identity = identity;
|
|
@@ -129,72 +99,64 @@ export class FilesProgram {
|
|
|
129
99
|
close: async (options = {}) => {
|
|
130
100
|
this.grounds.delete(id);
|
|
131
101
|
try {
|
|
132
|
-
return await this.tell("ground.close", id, options);
|
|
102
|
+
return await this.program.tell("ground.close", id, options);
|
|
133
103
|
}
|
|
134
104
|
finally {
|
|
135
105
|
this.forget(id);
|
|
136
106
|
}
|
|
137
107
|
},
|
|
138
|
-
flushWatch: () =>
|
|
139
|
-
flush: () =>
|
|
140
|
-
blocked: () =>
|
|
141
|
-
watchEvidence: () =>
|
|
142
|
-
add: (workspaceId, destinationParent, trace) =>
|
|
143
|
-
register: (path, trace) =>
|
|
144
|
-
recordConstruct: (change) =>
|
|
145
|
-
trash: (pick) =>
|
|
146
|
-
readSecretPayload: (entityId, head) =>
|
|
147
|
-
secretRecords: () =>
|
|
148
|
-
share: (name, request, actor, linkBase) =>
|
|
108
|
+
flushWatch: () => call("ground.flushWatch", id),
|
|
109
|
+
flush: () => call("ground.flush", id),
|
|
110
|
+
blocked: () => call("ground.blocked", id),
|
|
111
|
+
watchEvidence: () => call("ground.watchEvidence", id),
|
|
112
|
+
add: (workspaceId, destinationParent, trace) => call("ground.add", id, workspaceId, destinationParent, trace),
|
|
113
|
+
register: (path, trace) => call("ground.register", id, path, trace),
|
|
114
|
+
recordConstruct: (change) => call("ground.recordConstruct", id, change),
|
|
115
|
+
trash: (pick) => call("ground.trash", id, pick),
|
|
116
|
+
readSecretPayload: (entityId, head) => call("ground.readSecretPayload", id, entityId, head),
|
|
117
|
+
secretRecords: () => call("ground.secretRecords", id),
|
|
118
|
+
share: (name, request, actor, linkBase) => call("ground.share", id, name, request, actor, linkBase),
|
|
149
119
|
};
|
|
150
120
|
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
async serveDrive(ground, email, placing) {
|
|
155
|
-
if (this.drive && this.drive.email !== email)
|
|
156
|
-
await this.unmountDrive(this.drive.id);
|
|
157
|
-
const id = this.drive?.id ?? ++this.nextHandle;
|
|
121
|
+
async serveDrive(email, home, placing) {
|
|
122
|
+
const held = this.drive?.email === email ? this.drive : null;
|
|
123
|
+
const id = held?.id ?? ++this.nextHandle;
|
|
158
124
|
const handle = countHandle("drive", id, "placing");
|
|
159
|
-
|
|
125
|
+
if (!held)
|
|
126
|
+
this.counts.set(handle, placing());
|
|
160
127
|
let facts;
|
|
161
128
|
try {
|
|
162
|
-
facts = await this.call("drive.serve", id,
|
|
129
|
+
facts = await this.program.call("drive.serve", id, email, home);
|
|
163
130
|
}
|
|
164
131
|
catch (error) {
|
|
165
|
-
if (
|
|
132
|
+
if (this.drive?.id !== id)
|
|
166
133
|
this.counts.delete(handle);
|
|
167
134
|
throw error;
|
|
168
135
|
}
|
|
169
|
-
this.drive
|
|
136
|
+
if (this.drive && this.drive.id !== id)
|
|
137
|
+
this.counts.delete(countHandle("drive", this.drive.id, "placing"));
|
|
138
|
+
this.drive = { id, email, home, placing };
|
|
170
139
|
return {
|
|
171
140
|
...facts,
|
|
172
|
-
folder: (address) => this.call("drive.folder", id, address),
|
|
141
|
+
folder: (address) => this.program.call("drive.folder", id, address),
|
|
173
142
|
unmount: () => this.unmountDrive(id),
|
|
174
143
|
};
|
|
175
144
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
* still serves answers that its server is gone until it is mounted again. */
|
|
179
|
-
async close() {
|
|
180
|
-
this.stopped ??= stoppedError("the Files program closed");
|
|
181
|
-
this.retry?.cancel();
|
|
182
|
-
const child = this.launch?.child;
|
|
183
|
-
if (!child || child.exitCode !== null || child.signalCode !== null)
|
|
184
|
-
return;
|
|
185
|
-
const exited = new Promise((resolve) => child.once("exit", () => resolve()));
|
|
186
|
-
const kill = setTimeout(() => child.kill("SIGKILL"), CLOSE_GRACE_MS);
|
|
187
|
-
if (child.connected)
|
|
188
|
-
child.disconnect();
|
|
189
|
-
await exited;
|
|
190
|
-
clearTimeout(kill);
|
|
145
|
+
close() {
|
|
146
|
+
return this.program.close();
|
|
191
147
|
}
|
|
192
148
|
async unmountDrive(id) {
|
|
193
149
|
if (this.drive?.id !== id)
|
|
194
150
|
return;
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
151
|
+
try {
|
|
152
|
+
await this.program.call("drive.unmount", id);
|
|
153
|
+
}
|
|
154
|
+
finally {
|
|
155
|
+
if (this.drive?.id === id) {
|
|
156
|
+
this.drive = null;
|
|
157
|
+
this.counts.delete(countHandle("drive", id, "placing"));
|
|
158
|
+
}
|
|
159
|
+
}
|
|
198
160
|
}
|
|
199
161
|
hand(id, counts) {
|
|
200
162
|
this.counts.set(countHandle("ground", id, "unsent"), counts.unsent);
|
|
@@ -205,148 +167,27 @@ export class FilesProgram {
|
|
|
205
167
|
this.counts.delete(countHandle("ground", id, "unsent"));
|
|
206
168
|
this.counts.delete(countHandle("ground", id, "unsettled"));
|
|
207
169
|
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
if (
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
this.
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
async call(method, ...args) {
|
|
227
|
-
return this.send(await this.current(), method, ...args);
|
|
228
|
-
}
|
|
229
|
-
/** Tells the running program what the runtime now keeps. One not running, or
|
|
230
|
-
* stopping before it answers, has nothing to be told. */
|
|
231
|
-
async tell(method, ...args) {
|
|
232
|
-
const launch = await this.live();
|
|
233
|
-
if (!launch)
|
|
234
|
-
return null;
|
|
235
|
-
try {
|
|
236
|
-
return await this.send(launch, method, ...args);
|
|
237
|
-
}
|
|
238
|
-
catch (error) {
|
|
239
|
-
if (error?.code !== FILES_PROGRAM_STOPPED)
|
|
240
|
-
throw error;
|
|
241
|
-
return null;
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
send(launch, method, ...args) {
|
|
245
|
-
if (launch.lost)
|
|
246
|
-
return Promise.reject(stoppedError("the Files program stopped"));
|
|
247
|
-
const id = ++this.nextCall;
|
|
248
|
-
return new Promise((resolve, reject) => {
|
|
249
|
-
launch.calls.set(id, { method, resolve: resolve, reject });
|
|
250
|
-
const request = { kind: "call", id, method, args, sentAt: Date.now() };
|
|
251
|
-
try {
|
|
252
|
-
launch.child.send(request, (error) => {
|
|
253
|
-
if (error && launch.calls.delete(id))
|
|
254
|
-
reject(stoppedError(`the Files program stopped: ${error.message}`));
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
catch (error) {
|
|
258
|
-
launch.calls.delete(id);
|
|
259
|
-
reject(error);
|
|
260
|
-
}
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
async start() {
|
|
264
|
-
const startedAt = Date.now();
|
|
265
|
-
this.supervision.launched(startedAt);
|
|
266
|
-
let child;
|
|
267
|
-
try {
|
|
268
|
-
child = fork(FILES_PROGRAM, [], {
|
|
269
|
-
serialization: "advanced",
|
|
270
|
-
execArgv: [...RUNTIME_NODE_FLAGS],
|
|
271
|
-
cwd: this.options.cwd,
|
|
272
|
-
env: process.env,
|
|
273
|
-
stdio: ["ignore", "inherit", "inherit", "ipc"],
|
|
274
|
-
detached: process.platform !== "win32",
|
|
275
|
-
});
|
|
276
|
-
}
|
|
277
|
-
catch (error) {
|
|
278
|
-
// No process, so no exit will ever say this.
|
|
279
|
-
const stopped = stoppedError(`the Files program stopped: ${error instanceof Error ? error.message : String(error)}`);
|
|
280
|
-
this.startAgain(stopped, startedAt);
|
|
281
|
-
throw stopped;
|
|
282
|
-
}
|
|
283
|
-
const launch = {
|
|
284
|
-
child,
|
|
285
|
-
calls: new Map(),
|
|
286
|
-
startedAt,
|
|
287
|
-
unwatch: watchLiveness(child, LIVENESS, { stable: () => undefined, failed: (reason) => this.lose(launch, reason) }),
|
|
288
|
-
stood: false,
|
|
289
|
-
lost: false,
|
|
290
|
-
};
|
|
291
|
-
this.launch = launch;
|
|
292
|
-
child.on("message", (message) => this.receive(launch, message));
|
|
293
|
-
child.once("exit", (code, signal) => this.lose(launch, `it exited (${signal ?? code})`));
|
|
294
|
-
child.once("error", (error) => this.lose(launch, error.message));
|
|
295
|
-
try {
|
|
296
|
-
await this.send(launch, "init", this.init);
|
|
297
|
-
await this.send(launch, "products", this.selection);
|
|
298
|
-
if (this.wire)
|
|
299
|
-
await this.send(launch, "wire.open", this.wire);
|
|
300
|
-
if (this.started)
|
|
301
|
-
await this.send(launch, "wire.start", this.started.port, this.started.token);
|
|
302
|
-
for (const [id, ground] of this.grounds) {
|
|
303
|
-
if (!ground.identity)
|
|
304
|
-
continue;
|
|
305
|
-
this.hand(id, ground.counts());
|
|
306
|
-
await this.send(launch, "ground.create", id, ground.input);
|
|
307
|
-
await this.send(launch, "ground.converge", id, ground.identity);
|
|
308
|
-
}
|
|
309
|
-
const drive = this.drive;
|
|
310
|
-
// A drive over a ground that closed (a pause) stays down until a ground
|
|
311
|
-
// converges again and serves it.
|
|
312
|
-
if (drive && this.grounds.get(drive.ground)?.identity) {
|
|
313
|
-
this.counts.set(countHandle("drive", drive.id, "placing"), drive.placing());
|
|
314
|
-
await this.send(launch, "drive.serve", drive.id, drive.ground, drive.email);
|
|
315
|
-
}
|
|
316
|
-
this.supervision.probe(true, Date.now());
|
|
317
|
-
launch.stood = true;
|
|
318
|
-
this.failure = null;
|
|
319
|
-
return launch;
|
|
320
|
-
}
|
|
321
|
-
catch (error) {
|
|
322
|
-
if (!launch.lost) {
|
|
323
|
-
this.failure = error instanceof Error ? error.message : String(error);
|
|
324
|
-
this.options.observers.backgroundError?.(error);
|
|
325
|
-
child.kill("SIGKILL");
|
|
326
|
-
}
|
|
327
|
-
throw error;
|
|
170
|
+
async establish(send) {
|
|
171
|
+
await send("init", this.init);
|
|
172
|
+
const drive = this.drive;
|
|
173
|
+
if (drive) {
|
|
174
|
+
this.counts.set(countHandle("drive", drive.id, "placing"), drive.placing());
|
|
175
|
+
await send("drive.serve", drive.id, drive.email, drive.home);
|
|
176
|
+
}
|
|
177
|
+
await send("products", this.selection);
|
|
178
|
+
if (this.wire)
|
|
179
|
+
await send("wire.open", this.wire);
|
|
180
|
+
if (this.started)
|
|
181
|
+
await send("wire.start", this.started.port, this.started.token);
|
|
182
|
+
for (const [id, ground] of this.grounds) {
|
|
183
|
+
if (!ground.identity)
|
|
184
|
+
continue;
|
|
185
|
+
this.hand(id, ground.counts());
|
|
186
|
+
await send("ground.create", id, ground.input);
|
|
187
|
+
await send("ground.converge", id, ground.identity);
|
|
328
188
|
}
|
|
329
189
|
}
|
|
330
|
-
|
|
331
|
-
if (launch.lost)
|
|
332
|
-
return;
|
|
333
|
-
launch.lost = true;
|
|
334
|
-
launch.unwatch();
|
|
335
|
-
if (launch.child.exitCode === null && launch.child.signalCode === null)
|
|
336
|
-
launch.child.kill("SIGKILL");
|
|
337
|
-
const error = stoppedError(`the Files program stopped: ${reason}`);
|
|
338
|
-
for (const call of launch.calls.values())
|
|
339
|
-
call.reject(error);
|
|
340
|
-
launch.calls.clear();
|
|
341
|
-
if (this.stopped || launch !== this.launch)
|
|
342
|
-
return;
|
|
343
|
-
this.startAgain(error, launch.stood ? Date.now() : launch.startedAt);
|
|
344
|
-
}
|
|
345
|
-
/** The program is gone: what it said goes to nobody, and another follows.
|
|
346
|
-
* `ended` is when its run ended as Core should count it. */
|
|
347
|
-
startAgain(error, ended) {
|
|
348
|
-
// A ground the program never converged is not established; its creator
|
|
349
|
-
// learns that from the call that fails.
|
|
190
|
+
lost() {
|
|
350
191
|
for (const [id, ground] of this.grounds) {
|
|
351
192
|
if (ground.identity)
|
|
352
193
|
ground.counts();
|
|
@@ -355,88 +196,17 @@ export class FilesProgram {
|
|
|
355
196
|
}
|
|
356
197
|
this.drive?.placing();
|
|
357
198
|
this.counts.clear();
|
|
358
|
-
this.failure ??= error.message;
|
|
359
|
-
this.options.observers.backgroundError?.(error);
|
|
360
|
-
const decision = this.supervision.exited(ended);
|
|
361
|
-
if (decision.action === "degrade") {
|
|
362
|
-
this.stopped = Object.assign(new Error(`the Files program stopped too often and is parked: ${decision.log}`), {
|
|
363
|
-
code: "files_degraded",
|
|
364
|
-
});
|
|
365
|
-
this.ready = null;
|
|
366
|
-
return;
|
|
367
|
-
}
|
|
368
|
-
this.ready = new Promise((resolve, reject) => {
|
|
369
|
-
const timer = setTimeout(() => {
|
|
370
|
-
this.retry = null;
|
|
371
|
-
this.start().then(resolve, reject);
|
|
372
|
-
}, decision.delayMs);
|
|
373
|
-
this.retry = {
|
|
374
|
-
cancel: () => {
|
|
375
|
-
clearTimeout(timer);
|
|
376
|
-
this.retry = null;
|
|
377
|
-
reject(this.stopped ?? error);
|
|
378
|
-
},
|
|
379
|
-
};
|
|
380
|
-
});
|
|
381
|
-
this.ready.catch(() => undefined);
|
|
382
199
|
}
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
switch (message.kind) {
|
|
387
|
-
case "result":
|
|
388
|
-
case "failure": {
|
|
389
|
-
const call = launch.calls.get(message.id);
|
|
390
|
-
if (!call)
|
|
391
|
-
return;
|
|
392
|
-
launch.calls.delete(message.id);
|
|
393
|
-
channelLate(this.options.observers.filesStage, "reply", call.method, message.sentAt);
|
|
394
|
-
if (message.kind === "result")
|
|
395
|
-
call.resolve(message.value);
|
|
396
|
-
else
|
|
397
|
-
call.reject(reviveError(message.error));
|
|
398
|
-
return;
|
|
399
|
-
}
|
|
400
|
-
case "ask":
|
|
401
|
-
void this.answer(launch, message.id, this.question(message.method, message.args));
|
|
402
|
-
return;
|
|
403
|
-
case "event": {
|
|
404
|
-
const observer = this.options.observers[message.name];
|
|
405
|
-
observer?.(message.name === "wireError" || message.name === "backgroundError"
|
|
406
|
-
? reviveError(message.value)
|
|
407
|
-
: message.value);
|
|
408
|
-
return;
|
|
409
|
-
}
|
|
410
|
-
case "count":
|
|
411
|
-
this.counts.get(message.handle)?.(message.value);
|
|
412
|
-
}
|
|
200
|
+
event(name, value) {
|
|
201
|
+
const observer = this.options.observers[name];
|
|
202
|
+
observer?.(name === "wireError" || name === "backgroundError" ? reviveError(value) : value);
|
|
413
203
|
}
|
|
414
|
-
question(method, args) {
|
|
204
|
+
async question(method, args) {
|
|
415
205
|
switch (method) {
|
|
416
|
-
case "installStage": return
|
|
417
|
-
case "app": return
|
|
418
|
-
case "secret": return
|
|
206
|
+
case "installStage": return await this.options.installStage?.(args[0]);
|
|
207
|
+
case "app": return await this.options.app(args[0], args[1]);
|
|
208
|
+
case "secret": return await this.options.secret(args[0], args[1], args[2]);
|
|
209
|
+
default: throw new Error(`the runtime answers no ${String(method)}`);
|
|
419
210
|
}
|
|
420
211
|
}
|
|
421
|
-
async answer(launch, id, question) {
|
|
422
|
-
let reply;
|
|
423
|
-
try {
|
|
424
|
-
reply = { kind: "answer", id, value: await question() };
|
|
425
|
-
}
|
|
426
|
-
catch (error) {
|
|
427
|
-
reply = { kind: "refusal", id, error: errorFacts(error) };
|
|
428
|
-
}
|
|
429
|
-
if (launch.lost)
|
|
430
|
-
return;
|
|
431
|
-
try {
|
|
432
|
-
launch.child.send(reply, () => undefined);
|
|
433
|
-
}
|
|
434
|
-
catch (error) {
|
|
435
|
-
launch.child.send({ kind: "refusal", id, error: errorFacts(error) }, () => undefined);
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
function stoppedError(message) {
|
|
440
|
-
return Object.assign(new Error(message), { code: FILES_PROGRAM_STOPPED });
|
|
441
212
|
}
|
|
442
|
-
//# sourceMappingURL=client.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { emitFilesStage } from "../files-observability.js";
|
|
2
|
-
/** Materialize through Live and prove the same runtime owns ongoing Watch. */
|
|
3
2
|
export function addWorkspace(ground, observe, workspaceId, destinationParent) {
|
|
4
3
|
return ground.operation(async () => {
|
|
5
4
|
const started = performance.now();
|
|
@@ -31,8 +30,6 @@ export function addWorkspace(ground, observe, workspaceId, destinationParent) {
|
|
|
31
30
|
}
|
|
32
31
|
});
|
|
33
32
|
}
|
|
34
|
-
/** Route the complete user-visible register journey through Live's
|
|
35
|
-
* placement and this already-running Files owner. */
|
|
36
33
|
export function registerWorkspace(ground, observe, requestedPath) {
|
|
37
34
|
return ground.operation(async () => {
|
|
38
35
|
const journeyStarted = performance.now();
|
|
@@ -76,4 +73,3 @@ export function registerWorkspace(ground, observe, requestedPath) {
|
|
|
76
73
|
}
|
|
77
74
|
});
|
|
78
75
|
}
|
|
79
|
-
//# sourceMappingURL=journeys.js.map
|