@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,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SQLite evidence for the portable Detect/Apply no-echo law.
|
|
3
|
-
*
|
|
4
|
-
* Receive owns Inbox rows and Apply owns their resolution. Detect may only
|
|
5
|
-
* consult those facts: the exact equality decision remains in Live.
|
|
6
|
-
*/
|
|
7
1
|
import { acceptedResultCoversDetection, decodeAcceptedEntityRecord, } from "@amalgm/live";
|
|
8
2
|
import { hasLocalWorkAfter } from "../apply-local-work.js";
|
|
9
3
|
import { cachedStatement } from "../sqlite.js";
|
|
@@ -20,12 +14,6 @@ export class AcceptedInboxResultIndex {
|
|
|
20
14
|
`);
|
|
21
15
|
}
|
|
22
16
|
covers(authorityId, proposal) {
|
|
23
|
-
// The same ordering rule that protects local work from Apply also
|
|
24
|
-
// protects it from Detect adopting an older official result as its base.
|
|
25
|
-
// Local work after the newest unresolved result is after every older one,
|
|
26
|
-
// so the newest is the only candidate. Re-read this gate at commit; an
|
|
27
|
-
// earlier observation is not permission to discard a local predecessor
|
|
28
|
-
// admitted while capture was running.
|
|
29
17
|
const newest = this.#newest.get(authorityId, proposal.entityId);
|
|
30
18
|
if (!newest)
|
|
31
19
|
return false;
|
|
@@ -45,9 +33,7 @@ export class AcceptedInboxResultIndex {
|
|
|
45
33
|
};
|
|
46
34
|
}
|
|
47
35
|
}
|
|
48
|
-
/** Inside an admission's save: every answer is still the same. */
|
|
49
36
|
export function acceptedReadsStand(database, reads) {
|
|
50
37
|
const index = new AcceptedInboxResultIndex(database);
|
|
51
38
|
return reads.every(({ authorityId, proposal, covered }) => index.covers(authorityId, proposal) === covered);
|
|
52
39
|
}
|
|
53
|
-
//# sourceMappingURL=accepted-result.js.map
|
|
@@ -12,8 +12,6 @@ export function saveAdmission(database, input) {
|
|
|
12
12
|
let stale = [], checkedAt = 0;
|
|
13
13
|
const records = [];
|
|
14
14
|
const operation = (writer) => {
|
|
15
|
-
// The whole basis is compared once. Only a stale answer compares each
|
|
16
|
-
// unit, against the same snapshot, to keep the others.
|
|
17
15
|
if (!writer.compareBasis(GroundBasis.union(bases))) {
|
|
18
16
|
stale = bases.flatMap((basis, index) => writer.compareBasis(basis) ? [] : [index]);
|
|
19
17
|
}
|
|
@@ -21,31 +19,24 @@ export function saveAdmission(database, input) {
|
|
|
21
19
|
checkedAt = performance.timeOrigin + performance.now();
|
|
22
20
|
if (survivors.length === 0)
|
|
23
21
|
return;
|
|
24
|
-
// The survivors' facts were just compared: acceptance adopts them.
|
|
25
22
|
if (!writer.acceptBasis(GroundBasis.union(bases.filter((_, index) => !stale.includes(index))))) {
|
|
26
23
|
throw new Error("independent unit bases changed within one admission");
|
|
27
24
|
}
|
|
28
|
-
// What returned shows first, so every write below reads it as shown.
|
|
29
25
|
const revealed = survivors.flatMap(unit => unit.reveals).flatMap(({ top, absent }) => writer.reveal(top, absent));
|
|
30
26
|
const observed = survivors.flatMap(unit => unit.materialized), removed = survivors.flatMap(unit => unit.materializedRemovals);
|
|
31
|
-
// What O did not show before this save, it shows after it.
|
|
32
27
|
const shown = observed.filter(row => writer.get("entities", row.uuid) === undefined);
|
|
33
28
|
const hides = survivors.flatMap(unit => unit.hides);
|
|
34
29
|
const shared = survivors.flatMap(unit => unit.notebook);
|
|
35
30
|
const containers = (inventory, rows, removals) => savedContainers(uuid => writer.get(inventory, uuid), rows, removals);
|
|
36
|
-
// A hidden top leaves its parent's membership as a removal would.
|
|
37
31
|
const observedContainers = containers("entities", observed, [...removed, ...hides]);
|
|
38
32
|
for (const uuid of revealed)
|
|
39
33
|
observedContainers.add(uuid);
|
|
40
34
|
const sharedContainers = containers("detection_notebook", shared, []);
|
|
41
35
|
writer.replace("entities", observed, removed, undefined, hides);
|
|
42
|
-
// Named first, so B carries each record's provenance in its one write; a
|
|
43
|
-
// package's pages are kept first, so its members are admitted with it.
|
|
44
36
|
for (const unit of survivors)
|
|
45
37
|
for (const record of unit.records)
|
|
46
38
|
keepPackagePages(database, record.change, unit.pages);
|
|
47
39
|
records.push(...writer.admitSharing(survivors.flatMap(unit => unit.records)));
|
|
48
|
-
// Detect carries every absence as Trash, so no notebook row is removed.
|
|
49
40
|
writer.replace("detection_notebook", shared, [], "retain-equivalent");
|
|
50
41
|
writer.refreshMembership("entities", observedContainers);
|
|
51
42
|
writer.refreshMembership("detection_notebook", sharedContainers);
|
|
@@ -57,4 +48,3 @@ export function saveAdmission(database, input) {
|
|
|
57
48
|
: { changes: null, ...store.writeMeasured(operation) };
|
|
58
49
|
return { accepted: true, stale, records, changes, evidence, checkedAt };
|
|
59
50
|
}
|
|
60
|
-
//# sourceMappingURL=admission-save.js.map
|
|
@@ -1,72 +1,13 @@
|
|
|
1
|
-
/** One Detect pass admits in independent units. A unit is the smallest set of
|
|
2
|
-
* changed identities whose writes and reads cannot be separated: no fact one
|
|
3
|
-
* unit's admission reads is stamped by another unit of the same pass, so
|
|
4
|
-
* units admit in any order and one unit's churn defers only itself.
|
|
5
|
-
*
|
|
6
|
-
* Two identities share a unit when one's write stamps a fact the other reads:
|
|
7
|
-
* - a namespace change (placement, name, type, lifecycle, address, presence)
|
|
8
|
-
* shares each portable slot it leaves or takes, and each slot its name's
|
|
9
|
-
* collision suffix derives from: siblings meet only where their names can
|
|
10
|
-
* meet. A container's membership is no shared fact: each save derives it
|
|
11
|
-
* from what it records (container-membership.ts), so one child's
|
|
12
|
-
* admission never waits for a sibling's;
|
|
13
|
-
* - a shared address slot, or a physical object within one root, before or
|
|
14
|
-
* after, joins; identity continuity is root-local, so an object's names
|
|
15
|
-
* in different roots are aliases, each examined in its own root, and a
|
|
16
|
-
* freed inode reused in another root joins nothing;
|
|
17
|
-
* - an identity joins each ancestor whose namespace changed on its old or
|
|
18
|
-
* new route: a name means that name inside its parent's identity, so a
|
|
19
|
-
* directory whose object alone changed (a root swapped in place) joins
|
|
20
|
-
* nothing beneath it. The dependency runs one way: a child reads its
|
|
21
|
-
* parent's identity and place, and a parent reads nothing of a child's;
|
|
22
|
-
* - a root whose selection withheld a result for a cross-entity reason
|
|
23
|
-
* (parent, ownership, address, cycle) is one unit.
|
|
24
|
-
* A failed identity (its collection did not complete) writes nothing this
|
|
25
|
-
* pass, so it reads nothing either: it joins no ancestor, and its parent and
|
|
26
|
-
* siblings admit without it. What reads its facts still joins it and waits
|
|
27
|
-
* with it: what stands under it, and whatever shares a slot, an address or
|
|
28
|
-
* an object with it. A unit holding one never admits.
|
|
29
|
-
*
|
|
30
|
-
* A directory proved absent is one change, as `rm -rf` is one unlink. A top is
|
|
31
|
-
* an active removal, from a walk that read its root whole, at an address no
|
|
32
|
-
* observed row holds and beneath no other top: every observed row stands in
|
|
33
|
-
* an observed directory, so nothing is observed beneath it. A top is hidden,
|
|
34
|
-
* never removed (ground-store.ts), and so is each removal stored beneath it,
|
|
35
|
-
* standing in its parent's directory, that no other write names: its top's
|
|
36
|
-
* absence proves its own, one range fact stands for its facts, it is no
|
|
37
|
-
* member, and it shares only its object with its top. A hidden top a walk
|
|
38
|
-
* proved returned is revealed the same way, with the rows beneath it that did
|
|
39
|
-
* not return absent again; what returned unchanged shows by the reveal and is
|
|
40
|
-
* never written. Every other change at or beneath a hidden or revealed top
|
|
41
|
-
* joins the top's unit, so what leaves or enters the range does so in the
|
|
42
|
-
* same save. A unit that hides, reveals, or takes a returned row out of an
|
|
43
|
-
* absence consumes that row's range where it is stored, whatever its walk
|
|
44
|
-
* read. A range change stamps its root's activation, which every unit of that
|
|
45
|
-
* root consumed, so such a unit admits in its pass's last save.
|
|
46
|
-
*
|
|
47
|
-
* Ground a pass could not examine is a gap, never absence. A unit waits for a
|
|
48
|
-
* gap only when it needs a fact the gap hides: an address at or beneath it,
|
|
49
|
-
* or an identity decision (create, removal, move, lifecycle) that an unlisted
|
|
50
|
-
* directory in its root could contradict. In a complete domain any gap may
|
|
51
|
-
* hide where a missing identity went, so absence there waits too. Identity
|
|
52
|
-
* continuity is root-local, so an arrival takes nothing from another root's
|
|
53
|
-
* gap. A stable identity edited in place needs no hidden fact and admits. */
|
|
54
1
|
import { dirname, sep } from "node:path";
|
|
55
2
|
import { collisionBases, CONTAINERS, DERIVED_PAYLOAD } from "@amalgm/live";
|
|
56
3
|
import { PhysicalKeySet } from "../ground-coordination.js";
|
|
57
4
|
const INVENTORIES = ["entities", "detection_notebook"];
|
|
58
|
-
/** Whether two states of one identity hold one namespace: placement, name,
|
|
59
|
-
* type, lifecycle, address and presence. */
|
|
60
5
|
const sameNamespace = (left, right) => left === right
|
|
61
6
|
|| (left !== undefined && right !== undefined && left.resourceId === right.resourceId && left.rootUUID === right.rootUUID
|
|
62
7
|
&& left.parentUUID === right.parentUUID && left.name === right.name && left.type === right.type
|
|
63
8
|
&& left.status === right.status && left.relativePath === right.relativePath && left.absolutePath === right.absolutePath);
|
|
64
9
|
const container = (row) => row !== undefined && DERIVED_PAYLOAD.has(row.type);
|
|
65
|
-
/** The portable slots a row's placement occupies or could suffix into. */
|
|
66
10
|
const slotNames = (row) => [row.name, ...collisionBases(row.name)];
|
|
67
|
-
/** Ancestors by parent link, nearest first, until a missing row, a cycle, or
|
|
68
|
-
* an ancestor an earlier walk of the same graph already stood on: identities
|
|
69
|
-
* share their ancestors, so each is walked once, never once per descendant. */
|
|
70
11
|
function route(lookup, row, walked) {
|
|
71
12
|
const found = [];
|
|
72
13
|
for (let parent = row?.parentUUID ?? null; parent !== null && !walked.has(parent);) {
|
|
@@ -79,11 +20,8 @@ function route(lookup, row, walked) {
|
|
|
79
20
|
}
|
|
80
21
|
return found;
|
|
81
22
|
}
|
|
82
|
-
/** The directory an absolute row address resolves under, and its root. */
|
|
83
23
|
const rootDirectory = (row) => row.relativePath === "" ? row.absolutePath
|
|
84
24
|
: row.absolutePath.slice(0, row.absolutePath.length - row.relativePath.length - 1);
|
|
85
|
-
/** The directories above a row up to its root, nearest first, stopping at one
|
|
86
|
-
* already seen: its own directories above were seen with it. */
|
|
87
25
|
function ancestorDirectories(row, seen) {
|
|
88
26
|
const root = rootDirectory(row);
|
|
89
27
|
const found = [];
|
|
@@ -98,9 +36,6 @@ function ancestorDirectories(row, seen) {
|
|
|
98
36
|
return found;
|
|
99
37
|
}
|
|
100
38
|
const present = (row) => row !== undefined && row.status === "active";
|
|
101
|
-
/** One walk's tops: of the O rows a walk that read its root whole did not
|
|
102
|
-
* find, each active non-root row at an address no observed row holds, beneath
|
|
103
|
-
* no other top, the first at its address. */
|
|
104
39
|
export function absentTops(removed, occupied) {
|
|
105
40
|
const tops = new Set(), found = [];
|
|
106
41
|
const sorted = removed.filter(row => present(row) && row.relativePath !== "" && !occupied.has(row.relativePath))
|
|
@@ -114,7 +49,6 @@ export function absentTops(removed, occupied) {
|
|
|
114
49
|
}
|
|
115
50
|
return found;
|
|
116
51
|
}
|
|
117
|
-
/** The nearest ancestor address of a relative path a test accepts. */
|
|
118
52
|
function enclosing(relativePath, accepts) {
|
|
119
53
|
for (let at = relativePath.lastIndexOf("/"); at > 0; at = relativePath.lastIndexOf("/", at - 1)) {
|
|
120
54
|
const path = relativePath.slice(0, at);
|
|
@@ -123,7 +57,6 @@ function enclosing(relativePath, accepts) {
|
|
|
123
57
|
}
|
|
124
58
|
return undefined;
|
|
125
59
|
}
|
|
126
|
-
/** Whether a row stands in its parent's directory, as no detached mark says. */
|
|
127
60
|
const standsIn = (row, parent) => parent !== undefined
|
|
128
61
|
&& parent.rootUUID === row.rootUUID && parent.resourceId === row.resourceId && dirname(row.absolutePath) === parent.absolutePath
|
|
129
62
|
&& (row.status !== "active" || CONTAINERS.has(parent.type));
|
|
@@ -138,8 +71,6 @@ export function admissionUnits(pass) {
|
|
|
138
71
|
for (const row of writes.notebook)
|
|
139
72
|
written.detection_notebook.set(row.uuid, row);
|
|
140
73
|
const beforeOf = (inventory) => uuid => before[inventory].get(uuid);
|
|
141
|
-
// A returned row was hidden in S0: it held no address, but it is stored,
|
|
142
|
-
// and shows again where it was unless written.
|
|
143
74
|
const returnedOf = (inventory) => uuid => inventory === "entities" ? pass.returned.get(uuid) : undefined;
|
|
144
75
|
const afterOf = (inventory) => uuid => written[inventory].has(uuid) ? written[inventory].get(uuid) : before[inventory].get(uuid) ?? returnedOf(inventory)(uuid);
|
|
145
76
|
const graphs = INVENTORIES.flatMap(inventory => [
|
|
@@ -152,8 +83,6 @@ export function admissionUnits(pass) {
|
|
|
152
83
|
...pass.reveals.keys(),
|
|
153
84
|
...pass.failed,
|
|
154
85
|
]);
|
|
155
|
-
// Each removal hidden beneath a top, with its top. Every top is a removal;
|
|
156
|
-
// a revealed top is stored where its absence stood.
|
|
157
86
|
const topAt = new Map(), beneath = new Map();
|
|
158
87
|
for (const [uuid, row] of [...[...pass.tops].map(uuid => [uuid, before.entities.get(uuid)]),
|
|
159
88
|
...[...pass.reveals.keys()].map(uuid => [uuid, pass.returned.get(uuid)])]) {
|
|
@@ -200,7 +129,6 @@ export function admissionUnits(pass) {
|
|
|
200
129
|
parents.set(a, b);
|
|
201
130
|
};
|
|
202
131
|
const occupants = new Map();
|
|
203
|
-
// Keys join their parts with NUL, which no identity, name or address holds.
|
|
204
132
|
const share = (key, uuid) => {
|
|
205
133
|
const first = occupants.get(key);
|
|
206
134
|
if (first === undefined)
|
|
@@ -208,10 +136,6 @@ export function admissionUnits(pass) {
|
|
|
208
136
|
else
|
|
209
137
|
join(first, uuid);
|
|
210
138
|
};
|
|
211
|
-
// An identity joins the nearest structurally changed ancestor on each of its
|
|
212
|
-
// routes. That ancestor is itself changed and joins the next one, so every
|
|
213
|
-
// changed ancestor of a route shares one unit with it, and each graph's
|
|
214
|
-
// ancestors are walked once: the answer above each is remembered.
|
|
215
139
|
const nearest = graphs.map(() => new Map());
|
|
216
140
|
const nearestChanged = (index, row) => {
|
|
217
141
|
const { inventory, lookup } = graphs[index], known = nearest[index];
|
|
@@ -340,7 +264,6 @@ export function admissionUnits(pass) {
|
|
|
340
264
|
if (row)
|
|
341
265
|
keys.path(inventory, row.rootUUID, row.relativePath);
|
|
342
266
|
if (!sameNamespace(x0, x1)) {
|
|
343
|
-
// A container's Record names the membership this save derives.
|
|
344
267
|
if (container(x0) || container(x1))
|
|
345
268
|
keys.namespace(inventory, uuid);
|
|
346
269
|
for (const row of [x0, x1])
|
|
@@ -358,35 +281,29 @@ export function admissionUnits(pass) {
|
|
|
358
281
|
keys.physical("entities", row.rootUUID, row.physicalKey);
|
|
359
282
|
}
|
|
360
283
|
}
|
|
361
|
-
// What leaves or enters an absence consumes its range where it is
|
|
362
|
-
// stored: a hidden top's, a revealed top's, and any other return's.
|
|
363
284
|
for (const uuid of group) {
|
|
364
285
|
const row = pass.tops.has(uuid) ? beforeOf("entities")(uuid) : pass.returned.get(uuid);
|
|
365
286
|
if (row)
|
|
366
287
|
keys.range(row.rootUUID, row.relativePath);
|
|
367
288
|
}
|
|
368
289
|
},
|
|
369
|
-
reads(physicalReads, discoveries) {
|
|
290
|
+
reads(physicalReads, discoveries, gitRoutes) {
|
|
370
291
|
const entries = new Set(), routes = new Set(), namespaces = new Set(), physical = new Set();
|
|
371
|
-
// A discovery read its whole scope, whatever this unit concluded from it.
|
|
372
292
|
for (const discovery of discoveries)
|
|
373
293
|
for (const entry of discovery.entries)
|
|
374
294
|
entries.add(entry);
|
|
375
295
|
for (const uuid of group) {
|
|
296
|
+
for (const name of gitRoutes.get(uuid) ?? [])
|
|
297
|
+
entries.add(name);
|
|
376
298
|
for (const { x0, x1 } of rows(uuid)) {
|
|
377
299
|
for (const row of [x0, x1]) {
|
|
378
300
|
if (!row)
|
|
379
301
|
continue;
|
|
380
|
-
// A container's result is its entry list, and a repository's
|
|
381
|
-
// its Git directory too; a leaf is read whole.
|
|
382
302
|
(CONTAINERS.has(row.type) ? namespaces : entries).add(row.absolutePath);
|
|
383
303
|
if (row.type === "repo.git")
|
|
384
304
|
entries.add(`${row.absolutePath}${sep}.git`);
|
|
385
305
|
ancestorDirectories(row, routes);
|
|
386
306
|
}
|
|
387
|
-
// An identity found nowhere is absent on its root's whole
|
|
388
|
-
// namespace, so any effect beneath that root crosses it, whether
|
|
389
|
-
// or not a discovery named the scope.
|
|
390
307
|
if (present(x0) && !present(x1))
|
|
391
308
|
entries.add(rootDirectory(x0));
|
|
392
309
|
}
|
|
@@ -401,7 +318,6 @@ export function admissionUnits(pass) {
|
|
|
401
318
|
const closure = closureOf(address);
|
|
402
319
|
return closure !== undefined && closure.observes(address) && !answer(closure);
|
|
403
320
|
};
|
|
404
|
-
// Each directory is answered once: members share their routes.
|
|
405
321
|
const routed = new Set(), departed = new Set();
|
|
406
322
|
let moving;
|
|
407
323
|
for (const uuid of group) {
|
|
@@ -412,7 +328,6 @@ export function admissionUnits(pass) {
|
|
|
412
328
|
if (changedAt)
|
|
413
329
|
return `${changedAt} changed after its walk`;
|
|
414
330
|
}
|
|
415
|
-
// A departure is proved by the entry list it left.
|
|
416
331
|
if (o0 && (!o1 || o0.absolutePath !== o1.absolutePath)) {
|
|
417
332
|
const directory = dirname(o0.absolutePath);
|
|
418
333
|
if (!departed.has(directory)) {
|
|
@@ -421,8 +336,6 @@ export function admissionUnits(pass) {
|
|
|
421
336
|
return `${directory} changed after its walk`;
|
|
422
337
|
}
|
|
423
338
|
}
|
|
424
|
-
// An identity the walk did not find is absent only if no walked
|
|
425
|
-
// entry list moved while it was read.
|
|
426
339
|
if (o0 && !o1)
|
|
427
340
|
moving ??= closures.map(closure => closure.unsettledDirectory).find(Boolean) ?? null;
|
|
428
341
|
if (o0 && !o1 && moving)
|
|
@@ -440,8 +353,6 @@ export function admissionUnits(pass) {
|
|
|
440
353
|
for (const { x0, x1 } of rows(uuid)) {
|
|
441
354
|
if (x0 && x1 && x0.absolutePath === x1.absolutePath && present(x0) === present(x1))
|
|
442
355
|
continue;
|
|
443
|
-
// Only an identity gone missing may have gone into ground nobody
|
|
444
|
-
// read; a new one takes nothing from it.
|
|
445
356
|
const reason = [x0, x1].map(row => row && gaps.namespace(row.rootUUID)).find(Boolean)
|
|
446
357
|
?? (present(x0) && !present(x1) ? gaps.domain : undefined);
|
|
447
358
|
if (reason)
|
|
@@ -452,4 +363,3 @@ export function admissionUnits(pass) {
|
|
|
452
363
|
};
|
|
453
364
|
});
|
|
454
365
|
}
|
|
455
|
-
//# sourceMappingURL=admission-units.js.map
|
|
@@ -1,25 +1,10 @@
|
|
|
1
|
-
/** Native hard-link evidence names the object a change reached through one
|
|
2
|
-
* name: FSEvents records each event's file ID, the inode of the object that
|
|
3
|
-
* name held within its own filesystem. An object's change is a change at
|
|
4
|
-
* every one of its names (alias-examination.ts), so each object a hint saw
|
|
5
|
-
* owes an examination of every name the materialized inventory knows for it,
|
|
6
|
-
* in whichever root it lies. The hinted name keeps its own obligations, a
|
|
7
|
-
* name the cut already examines owes nothing more, a name no inventory knows
|
|
8
|
-
* rang where it was added, and Git storage belongs to its repository owner.
|
|
9
|
-
* A hint that cannot bound its objects owes one domain examination: native
|
|
10
|
-
* evidence reported none, other names coalesced into it, or its objects
|
|
11
|
-
* outgrew their bound. So does one whose filesystem cannot be placed now,
|
|
12
|
-
* because its directory is gone or its address resolves elsewhere. */
|
|
13
1
|
import { lstat, realpath } from "node:fs/promises";
|
|
14
2
|
import { join } from "node:path";
|
|
15
3
|
import { suspectScope } from "@amalgm/live";
|
|
16
4
|
import { objectNames } from "./alias-examination.js";
|
|
17
|
-
/** Reads ground only for hints that name their objects, so a cut without
|
|
18
|
-
* such hints costs none. */
|
|
19
5
|
export async function aliasDiscovery(observations, read) {
|
|
20
6
|
const hints = [];
|
|
21
7
|
for (const { directory, suspicion, domain } of observations) {
|
|
22
|
-
// A domain proof already examines every root.
|
|
23
8
|
if (domain)
|
|
24
9
|
continue;
|
|
25
10
|
if (suspicion.aliases === null)
|
|
@@ -59,9 +44,6 @@ export async function aliasDiscovery(observations, read) {
|
|
|
59
44
|
return [...owed];
|
|
60
45
|
}) };
|
|
61
46
|
}
|
|
62
|
-
/** The device of the directory a hinted name was reported in, while that
|
|
63
|
-
* address still resolves to itself; null when it cannot be placed. Each
|
|
64
|
-
* address is read once, and every read runs at once. */
|
|
65
47
|
function placement() {
|
|
66
48
|
const reads = new Map();
|
|
67
49
|
const once = (key, read) => {
|
|
@@ -77,4 +59,3 @@ function placement() {
|
|
|
77
59
|
return lstat(here, { bigint: true }).then(stats => stats.dev, () => null);
|
|
78
60
|
});
|
|
79
61
|
}
|
|
80
|
-
//# sourceMappingURL=alias-discovery.js.map
|
|
@@ -1,33 +1,12 @@
|
|
|
1
|
-
/** An object's change is a change at every one of its names. A hard link gives
|
|
2
|
-
* one object several names, possibly in different roots, and native evidence
|
|
3
|
-
* names only the one it was changed through. So each committed name owes an
|
|
4
|
-
* examination of every other name the materialized inventory knows for:
|
|
5
|
-
* - the object it now names, when it changed there and that object has
|
|
6
|
-
* another name: each alias not already recorded at the committed stat;
|
|
7
|
-
* - the object it left, when that object had another name: each alias, since
|
|
8
|
-
* losing a name changed that object at a stat nothing here recorded.
|
|
9
|
-
* A link count of one proves there is no other name; a name added later is
|
|
10
|
-
* heard where it was added. An alias already at the committed stat owes
|
|
11
|
-
* nothing, and an examined alias found unchanged commits no change, so the
|
|
12
|
-
* fan-out ends. Each object is asked for its names once per commit, however
|
|
13
|
-
* many of them the commit changed, so the work is the changed names plus
|
|
14
|
-
* their objects' other names, never their product. Identity stays
|
|
15
|
-
* root-local: an alias is examined in its own root, and no UUID is ever
|
|
16
|
-
* paired across names. */
|
|
17
1
|
import { effectivelyActive } from "../ground-row.js";
|
|
18
2
|
import { signedLinks } from "../source-signature.js";
|
|
19
3
|
const LEAVES = new Set(["file.text", "file.binary", "link"]);
|
|
20
4
|
const leaf = (row) => row && LEAVES.has(row.type) && row.status === "active" ? row : undefined;
|
|
21
|
-
/** An unsigned object may have any number of names. */
|
|
22
5
|
const named = (row) => (signedLinks(row.sourceSignature) ?? 2n) > 1n;
|
|
23
|
-
/** Every name the inventory knows for one object that can hold its bytes now:
|
|
24
|
-
* an effectively active leaf. */
|
|
25
6
|
export function objectNames(inventory, physicalKey) {
|
|
26
7
|
return inventory.objectRows(physicalKey)
|
|
27
8
|
.filter(row => leaf(row) && effectivelyActive(row, uuid => inventory.physical(uuid)));
|
|
28
9
|
}
|
|
29
|
-
/** The addresses of every alias one commit's changes owe, in change order;
|
|
30
|
-
* the commit's own names are recorded at their committed stat already. */
|
|
31
10
|
export function aliasExaminations(changes, inventory) {
|
|
32
11
|
const committed = new Set(changes.flatMap(({ before, after }) => [before?.uuid, after?.uuid]));
|
|
33
12
|
const owed = new Map();
|
|
@@ -58,4 +37,3 @@ export function aliasExaminations(changes, inventory) {
|
|
|
58
37
|
}
|
|
59
38
|
return [...owed.values()];
|
|
60
39
|
}
|
|
61
|
-
//# sourceMappingURL=alias-examination.js.map
|
|
@@ -1,46 +1,21 @@
|
|
|
1
|
-
/** Apply's open windows: each bound, not yet ended, naming in its members'
|
|
2
|
-
* receipts every object it shows and every address it writes
|
|
3
|
-
* (src/apply-window-rows.ts). Two laws read them:
|
|
4
|
-
*
|
|
5
|
-
* - Writers exclude writers. Another Apply window, a fetch lane or the
|
|
6
|
-
* placement tidy waits while an open window owns ground it would write
|
|
7
|
-
* (`ownershipWait`).
|
|
8
|
-
* - Detect never waits. An object that stands where its receipt places it
|
|
9
|
-
* is Apply's own: it keeps the member's identity and records nothing,
|
|
10
|
-
* and the window's end rings it. Any other object is a person's, read
|
|
11
|
-
* now. A container is one object: its children are entities of their
|
|
12
|
-
* own, judged by their own identities (`placementOf`, `vacatedBy`).
|
|
13
|
-
*
|
|
14
|
-
* An ended window owns nothing: its result is projected. This is never
|
|
15
|
-
* another journal or a source of physical identity. */
|
|
16
1
|
import { resolve, sep } from "node:path";
|
|
17
2
|
import { judgeBoundRoot } from "../apply-control.js";
|
|
18
3
|
import { readOpenWindows } from "../apply-window-rows.js";
|
|
19
4
|
import { cachedStatement } from "../sqlite.js";
|
|
20
|
-
/** Every identity O or B holds in one root, Trash's included, answered one
|
|
21
|
-
* probe per owner's identity: a root's scope costs its owners, never its
|
|
22
|
-
* rows. Each answer is read when asked, inside its caller's transaction. */
|
|
23
5
|
export function rootIdentities(database, rootUUID) {
|
|
24
6
|
const held = cachedStatement(database, `SELECT 1 FROM entities WHERE uuid = ? AND root_uuid = ?
|
|
25
7
|
UNION ALL SELECT 1 FROM detection_notebook WHERE uuid = ? AND root_uuid = ? LIMIT 1`).pluck();
|
|
26
8
|
return { has: uuid => held.get(uuid, rootUUID, uuid, rootUUID) !== undefined };
|
|
27
9
|
}
|
|
28
|
-
/** An object an Apply may own, named within the root that holds it. Identity
|
|
29
|
-
* continuity is root-local, so an object that leaves its root is a new
|
|
30
|
-
* identity wherever it lands, Apply or not. */
|
|
31
10
|
export const ownedObject = (root, physicalKey) => JSON.stringify([resolve(root), physicalKey]);
|
|
32
|
-
/** What an Apply window waits on while other open windows own its scope. */
|
|
33
11
|
export function ownershipWait(owners) {
|
|
34
12
|
if (owners.length === 0)
|
|
35
13
|
return null;
|
|
36
14
|
return { kind: "dependency", reason: "Another unfinished Apply window owns this ground.",
|
|
37
15
|
waitFor: { producer: "apply", entityIds: ownerEntityIds(owners) } };
|
|
38
16
|
}
|
|
39
|
-
/** The entities whose Apply owns ground. */
|
|
40
17
|
export const ownerEntityIds = (owners) => [...new Set(owners.flatMap(owner => owner.uuids))];
|
|
41
|
-
/** Whose unfinished Apply this is, for a reason. */
|
|
42
18
|
export const ownerName = (owner) => `the unfinished Apply window ${owner.intent.attemptId} of ${owner.uuids.join(", ")}`;
|
|
43
|
-
/** One Apply window, whichever ownership collection read it. */
|
|
44
19
|
export const sameAttempt = (a, b) => a.intent.attemptId === b.intent.attemptId && a.intent.authorityId === b.intent.authorityId;
|
|
45
20
|
const contains = (cone, path) => cone === path
|
|
46
21
|
|| path.startsWith(cone.endsWith(sep) ? cone : `${cone}${sep}`);
|
|
@@ -51,15 +26,14 @@ const normalize = (scope) => Object.freeze({
|
|
|
51
26
|
uuids: scope.uuids ?? NONE,
|
|
52
27
|
physical: scope.physical ?? NONE,
|
|
53
28
|
});
|
|
29
|
+
export const ownersMeeting = (owners, scope) => {
|
|
30
|
+
const normal = normalize(scope);
|
|
31
|
+
return owners.filter(owner => intersects(owner, normal));
|
|
32
|
+
};
|
|
54
33
|
const intersects = (owner, scope) => owner.uuids.some(uuid => scope.uuids.has(uuid))
|
|
55
34
|
|| owner.physical.some(key => scope.physical.has(key))
|
|
56
35
|
|| owner.cones.some(cone => scope.entries.some(path => contains(cone, path))
|
|
57
36
|
|| scope.subtrees.some(path => contains(cone, path) || contains(path, cone)));
|
|
58
|
-
/** What one window's receipts own: every member's address and source
|
|
59
|
-
* address, the addresses its sibling moves leave and take, every entity
|
|
60
|
-
* among them, the exact objects it reveals over, stages or moves, and where
|
|
61
|
-
* each of those objects may stand. Shared by writers' exclusion, Detect's
|
|
62
|
-
* attribution and the host's post-end wake. */
|
|
63
37
|
export function windowFootprint(members) {
|
|
64
38
|
const cones = new Set(), uuids = new Set(), physical = new Set(), aside = new Set();
|
|
65
39
|
const placements = new Map();
|
|
@@ -100,11 +74,6 @@ export function windowFootprint(members) {
|
|
|
100
74
|
physical: Object.freeze([...physical].sort()), aside: Object.freeze([...aside].sort()),
|
|
101
75
|
placements: new Map([...placements].map(([object, { uuid, at, opaque }]) => [object, Object.freeze({ uuid, at: Object.freeze([...at].sort()), opaque })])) };
|
|
102
76
|
}
|
|
103
|
-
/** An open window's placement of `object`, or null when no window placed
|
|
104
|
-
* it. An object keeps its member's identity wherever it stands, as any
|
|
105
|
-
* object does by physical continuity. It is Apply's own (`own`) only where
|
|
106
|
-
* the receipt places it; anywhere else a person moved it, and that move is
|
|
107
|
-
* recorded now under the member's UUID. */
|
|
108
77
|
export function placementOf(owners, object, address) {
|
|
109
78
|
const at = resolve(address);
|
|
110
79
|
for (const owner of owners) {
|
|
@@ -114,18 +83,11 @@ export function placementOf(owners, object, address) {
|
|
|
114
83
|
}
|
|
115
84
|
return null;
|
|
116
85
|
}
|
|
117
|
-
/** The open window whose effect an absence at `address` is: it took what
|
|
118
|
-
* stood there, or what stood above it, aside, or it moves an object from or
|
|
119
|
-
* to exactly there. What last stood there is that member's until its end. */
|
|
120
86
|
export function vacatedBy(owners, address) {
|
|
121
87
|
const at = resolve(address);
|
|
122
88
|
return owners.find(owner => owner.aside.some(path => contains(path, at))
|
|
123
89
|
|| [...owner.placements.values()].some(placement => placement.at.includes(at))) ?? null;
|
|
124
90
|
}
|
|
125
|
-
/** One host adapter reads every open window's receipts. A member whose
|
|
126
|
-
* binding root was replaced by another directory owns nothing: what the
|
|
127
|
-
* window held left with the old object, and the new root is compared like
|
|
128
|
-
* any folder. A root absent or on another device is still the window's. */
|
|
129
91
|
export function sqliteApplyOwnership(database) {
|
|
130
92
|
const incarnation = cachedStatement(database, "SELECT identity FROM ground_incarnation WHERE singleton = 1");
|
|
131
93
|
return {
|
|
@@ -155,9 +117,6 @@ export function sqliteApplyOwnership(database) {
|
|
|
155
117
|
}),
|
|
156
118
|
};
|
|
157
119
|
}
|
|
158
|
-
/** One ownership collection serves every scope in an observation. Admission
|
|
159
|
-
* rechecks complete intersecting answers, including the initially empty set.
|
|
160
|
-
* Unrelated owners do not invalidate this scope. */
|
|
161
120
|
export class ApplyOwnershipSnapshot {
|
|
162
121
|
#reader;
|
|
163
122
|
#excluding;
|
|
@@ -167,7 +126,6 @@ export class ApplyOwnershipSnapshot {
|
|
|
167
126
|
#physical = new Set();
|
|
168
127
|
#closed = false;
|
|
169
128
|
#failed = false;
|
|
170
|
-
/** `excluding` names the window asking, which never owns against itself. */
|
|
171
129
|
constructor(reader, excluding) {
|
|
172
130
|
this.#reader = reader;
|
|
173
131
|
this.#excluding = excluding;
|
|
@@ -191,22 +149,17 @@ export class ApplyOwnershipSnapshot {
|
|
|
191
149
|
throw error;
|
|
192
150
|
}
|
|
193
151
|
}
|
|
194
|
-
/** Owners of one object (ownedObject), collected once, including negative
|
|
195
|
-
* answers. */
|
|
196
152
|
physical(object) {
|
|
197
153
|
if (this.#closed || this.#failed)
|
|
198
154
|
throw new Error("Apply ownership observation is closed or failed");
|
|
199
155
|
this.#physical.add(object);
|
|
200
156
|
return this.#owners.filter(owner => owner.physical.includes(object));
|
|
201
157
|
}
|
|
202
|
-
/** Every object (ownedObject) an owner holds, asked once and recorded
|
|
203
|
-
* nowhere: for a walk that answers Apply's holds itself and never seals. */
|
|
204
158
|
held() {
|
|
205
159
|
if (this.#closed || this.#failed)
|
|
206
160
|
throw new Error("Apply ownership observation is closed or failed");
|
|
207
161
|
return new Set(this.#owners.flatMap(owner => owner.physical));
|
|
208
162
|
}
|
|
209
|
-
/** Every open window this observation reads around, asked once. */
|
|
210
163
|
owners() {
|
|
211
164
|
if (this.#closed || this.#failed)
|
|
212
165
|
throw new Error("Apply ownership observation is closed or failed");
|
|
@@ -237,4 +190,3 @@ function signature(owners) {
|
|
|
237
190
|
return JSON.stringify(owners.map(owner => [owner.intent.attemptId, owner.intent.authorityId, owner.cones, owner.uuids,
|
|
238
191
|
owner.physical]).sort((a, b) => JSON.stringify(a).localeCompare(JSON.stringify(b))));
|
|
239
192
|
}
|
|
240
|
-
//# sourceMappingURL=apply-ownership.js.map
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { GroundBasisChangedError } from "../ground-basis.js";
|
|
2
|
-
/** A committed write is settled once it is visible: ground it moved is read
|
|
3
|
-
* again at once. Ground still moving names its own time, as a Git writer's
|
|
4
|
-
* lock does, or none. */
|
|
5
2
|
export const COMMITTED_SETTLES_IN_MS = 0;
|
|
6
|
-
/** The verified notebook, a Watch binding or a Git writer advanced while
|
|
7
|
-
* Detect was observing. The complete generation stays pending and re-reads
|
|
8
|
-
* fresh truth on its next ring. A basis that knows when it settles without
|
|
9
|
-
* one, as a Git writer's lock does, says so, and is re-read then. */
|
|
10
3
|
export class DetectionBasisAdvancedError extends Error {
|
|
11
4
|
settlesInMs;
|
|
12
5
|
constructor(message = "the verified notebook advanced while Detect was observing; retrying fresh truth", settlesInMs = null) {
|
|
@@ -14,8 +7,6 @@ export class DetectionBasisAdvancedError extends Error {
|
|
|
14
7
|
this.settlesInMs = settlesInMs;
|
|
15
8
|
}
|
|
16
9
|
}
|
|
17
|
-
/** A ground fact changes only by commit, so a changed one is a basis that
|
|
18
|
-
* already settled. */
|
|
19
10
|
function advancedBasis(error) {
|
|
20
11
|
for (let link = error; link instanceof Error; link = link.cause) {
|
|
21
12
|
if (link instanceof GroundBasisChangedError)
|
|
@@ -28,8 +19,6 @@ function advancedBasis(error) {
|
|
|
28
19
|
export function detectionBasisAdvanced(error) {
|
|
29
20
|
return advancedBasis(error) !== null;
|
|
30
21
|
}
|
|
31
|
-
/** When moved evidence settles if nothing rings, where its basis knows. */
|
|
32
22
|
export function basisSettlesInMs(error) {
|
|
33
23
|
return advancedBasis(error)?.settlesInMs ?? null;
|
|
34
24
|
}
|
|
35
|
-
//# sourceMappingURL=basis-advanced.js.map
|
|
@@ -1,22 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Text and link replays built from the machine content cache: the one host
|
|
3
|
-
* seam between cached bytes and Live's replay law. This file owns no
|
|
4
|
-
* watcher, scanner, database, or transport.
|
|
5
|
-
*/
|
|
6
1
|
import { lstatSync, readFileSync } from "node:fs";
|
|
7
2
|
import { readFile } from "node:fs/promises";
|
|
8
3
|
import { textReplay, textReplayBase, } from "@amalgm/live";
|
|
9
4
|
import { contentFile } from "../content-cache-host.js";
|
|
10
5
|
import { sha256Hex } from "../sha256.js";
|
|
11
|
-
/** Cache names are content hashes; nothing else names a cache file. */
|
|
12
6
|
const CONTENT_HASH = /^[0-9a-f]{64}$/;
|
|
13
|
-
/**
|
|
14
|
-
* The replay of one sealed text or link result, read from the machine
|
|
15
|
-
* content cache and verified against its head. Only a content thread runs
|
|
16
|
-
* this: its reads and the diff grow with the file. A base the cache does
|
|
17
|
-
* not hold selects the verified snapshot. Live's delta owns its inserted
|
|
18
|
-
* bytes, so the answer carries exactly them and never the whole file.
|
|
19
|
-
*/
|
|
20
7
|
export async function cachedReplay(cacheDir, request) {
|
|
21
8
|
const { entityId, type, resultPayloadVersion } = request;
|
|
22
9
|
if (!CONTENT_HASH.test(resultPayloadVersion))
|
|
@@ -37,12 +24,6 @@ export async function cachedReplay(cacheDir, request) {
|
|
|
37
24
|
});
|
|
38
25
|
return textReplay({ basePayloadVersion, baseBytes, resultPayloadVersion, resultBytes }, sha256Hex);
|
|
39
26
|
}
|
|
40
|
-
/**
|
|
41
|
-
* The replay of a text result a capture holds in memory, built in place when
|
|
42
|
-
* its cached base is no larger than `bound`: an edit's small reads cost less
|
|
43
|
-
* than their crossing (content-capture-pool.ts). Null when the base is
|
|
44
|
-
* larger, so a content thread builds the replay instead.
|
|
45
|
-
*/
|
|
46
27
|
export function textReplayInPlace(cacheDir, request, bound) {
|
|
47
28
|
const basePayloadVersion = textReplayBase(request.basePayloadVersion);
|
|
48
29
|
let baseBytes = null;
|
|
@@ -63,4 +44,3 @@ export function textReplayInPlace(cacheDir, request, bound) {
|
|
|
63
44
|
}
|
|
64
45
|
return textReplay({ ...request, basePayloadVersion, baseBytes }, sha256Hex);
|
|
65
46
|
}
|
|
66
|
-
//# sourceMappingURL=cached-replay.js.map
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
/** Apply asks this only after its exact Watch generation has settled. This
|
|
2
|
-
* comparison reports observed local divergence from the committed
|
|
3
|
-
* inventories; it neither proves disk state nor treats observation as a
|
|
4
|
-
* durable backup or permission to overwrite it.
|
|
5
|
-
*
|
|
6
|
-
* It reads committed facts only: O, B and where they differ. Only an identity O and B hold differently can be local work, and the
|
|
7
|
-
* ground's one writer marks each at its address (ground-marks.ts), so the
|
|
8
|
-
* comparison seeks those marks at and beneath each address: it costs what
|
|
9
|
-
* differs there, never the size of the ground. The applied entity is always
|
|
10
|
-
* compared, since a difference above its address can make it differ. An
|
|
11
|
-
* observed identity sharing never held is local remainder: no incoming
|
|
12
|
-
* result names it and nothing else holds a copy, so Apply keeps it and never
|
|
13
|
-
* waits for it. Any other difference between O and B is divergence unless
|
|
14
|
-
* selection explains it: a container whose membership differs only by
|
|
15
|
-
* remainder. */
|
|
16
1
|
import { sep, resolve } from "node:path";
|
|
17
2
|
import { differingBeneath } from "../ground-marks.js";
|
|
18
3
|
import { effectivelyActive, groundRowProjection } from "../ground-row.js";
|
|
@@ -52,13 +37,11 @@ export function settledCaptureOutcome(database, input) {
|
|
|
52
37
|
}));
|
|
53
38
|
const active = (row, inventory) => row !== undefined
|
|
54
39
|
&& effectivelyActive(row, readers[inventory]);
|
|
55
|
-
// Both rows are active; selection explains a difference of payload alone.
|
|
56
40
|
const explained = (observed, shared) => {
|
|
57
41
|
if (observed.type !== shared.type || observed.parentUUID !== shared.parentUUID || observed.name !== shared.name)
|
|
58
42
|
return false;
|
|
59
43
|
if (observed.type !== "workspace" && observed.type !== "folder")
|
|
60
44
|
return false;
|
|
61
|
-
// Membership is the stored-active children by (uuid, name).
|
|
62
45
|
const key = (member) => `${member.uuid}\0${member.name}`;
|
|
63
46
|
const held = new Set(members.detection_notebook(observed.uuid).map(key));
|
|
64
47
|
const kept = members.entities(observed.uuid).filter(child => readers.detection_notebook(child.uuid) !== undefined);
|
|
@@ -68,8 +51,6 @@ export function settledCaptureOutcome(database, input) {
|
|
|
68
51
|
for (const uuid of affected) {
|
|
69
52
|
const physical = readers.entities(uuid), shared = readers.detection_notebook(uuid);
|
|
70
53
|
const present = active(physical, "entities"), admitted = active(shared, "detection_notebook");
|
|
71
|
-
// A different package of the same Git state names the same version.
|
|
72
|
-
// Filesystem metadata and machine addresses are not portable state.
|
|
73
54
|
if (present === admitted && (!present || physical.version === shared.version))
|
|
74
55
|
continue;
|
|
75
56
|
if (present && shared === undefined) {
|
|
@@ -86,4 +67,3 @@ export function settledCaptureOutcome(database, input) {
|
|
|
86
67
|
reason: "Observed local changes have not been selected for sharing. Waiting for those changes to be shared or explicitly resolved before replacing them.",
|
|
87
68
|
} : { kind: "settled", remainder };
|
|
88
69
|
}
|
|
89
|
-
//# sourceMappingURL=capture-outcome.js.map
|