@dominevo/server 0.1.0 → 0.1.2
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/.env.example +4 -4
- package/CHANGELOG.md +13 -0
- package/THIRD_PARTY_MODELS.md +13 -13
- package/dist/addon-root-inventory.js +5 -5
- package/dist/agent/agent-config.js +8 -8
- package/dist/agent/agent-group-runner.js +2 -2
- package/dist/agent/agent-http.js +4 -4
- package/dist/agent/agent-infra-capabilities.js +2 -2
- package/dist/agent/agent-self-update.js +3 -3
- package/dist/agent/agent-service.js +3 -3
- package/dist/agent/agent-update-service.js +10 -10
- package/dist/agent/derive-hub-url.js +3 -3
- package/dist/agent/main.js +20 -20
- package/dist/agent/stale-addon-gate.js +7 -7
- package/dist/api/addon-upload.js +12 -12
- package/dist/api/core/auth.router.js +7 -7
- package/dist/api/core/cap-providers.js +1 -1
- package/dist/api/core/logging-settings.js +1 -1
- package/dist/api/core/request-census-settings.js +1 -1
- package/dist/api/cors/cors-policy.js +5 -5
- package/dist/api/dev-uploads-bundle.js +1 -1
- package/dist/api/logs-export-route.js +1 -1
- package/dist/api/model-distributor.js +1 -1
- package/dist/api/server-upload-propagate.js +1 -1
- package/dist/api/server-upload.js +2 -2
- package/dist/api/static/spa-mount.js +3 -3
- package/dist/api/static/spa-static.js +1 -1
- package/dist/api/tarball-manifest.js +4 -4
- package/dist/api/trpc/http-request-census.js +1 -1
- package/dist/api/trpc/trpc.router.js +7 -7
- package/dist/auth/addon-route-share-gate.js +2 -2
- package/dist/auth/app-confirm-page.js +1 -1
- package/dist/auth/app-confirmations.js +2 -2
- package/dist/auth/app-passkey-page.js +1 -1
- package/dist/auth/native-return.js +1 -1
- package/dist/auth/session-cookie.js +2 -2
- package/dist/auth/sso-routes.js +1 -1
- package/dist/boot/boot-config.js +3 -3
- package/dist/boot/post-boot.service.js +2 -2
- package/dist/boot/retired-public-url-env.js +3 -3
- package/dist/bootstrap-packages.js +3 -3
- package/dist/closure-patches/patch-reach.json +7 -7
- package/dist/closure-patches/werift+0.22.9.patch +34 -34
- package/dist/core/addon/addon-package.service.js +32 -32
- package/dist/core/addon/addon-registry.service.js +34 -34
- package/dist/core/addon/addon-requirements.js +8 -8
- package/dist/core/addon/addon-search.service.js +2 -2
- package/dist/core/addon/hub-addon-support.js +2 -2
- package/dist/core/addon/read-packed-file.js +1 -1
- package/dist/core/addon-bridge/addon-bridge.service.js +6 -6
- package/dist/core/addon-pages/addon-pages.service.js +1 -1
- package/dist/core/agent/agent-registry.service.js +1 -1
- package/dist/core/agent/delivery-requirements.js +1 -1
- package/dist/core/app-links/well-known-app-links.js +7 -9
- package/dist/core/auth/handoff-code.service.js +1 -1
- package/dist/core/moleculer/moleculer.service.js +6 -6
- package/dist/core/release-identity.js +2 -2
- package/dist/core/server-update/server-update.service.js +9 -9
- package/dist/core/updates/node-update-announcement.js +1 -1
- package/dist/core/updates/wrapper-update-checker.js +1 -1
- package/dist/framework-nodepath.js +1 -1
- package/dist/i18n/request-lang.js +1 -1
- package/dist/launch-args.js +4 -4
- package/dist/launcher.js +14 -14
- package/dist/main.js +9 -9
- package/dist/manual-boot.js +5 -5
- package/dist/node-role.js +2 -2
- package/dist/package-inventory.js +1 -1
- package/dist/pending-restore.js +1 -1
- package/dist/server-root/index.js +11 -11
- package/dist/single-copy-cleanup-runner.js +2 -2
- package/dist/single-copy-cleanup.js +2 -2
- package/dist/starter.js +9 -9
- package/package.json +20 -71
- package/system/dist/addon-runner.js +59 -59
- package/system/dist/addon-runner.mjs +59 -59
- package/system/dist/{addon-settings.cap-Cxgig-la.mjs → addon-settings.cap-CyWCCPvU.mjs} +1 -1
- package/system/dist/{addon-settings.cap-B3KYrDyh.js → addon-settings.cap-DT34AC0I.js} +1 -1
- package/system/dist/addon-utils.d.ts +1 -1
- package/system/dist/addon-utils.js +1 -1
- package/system/dist/addon-utils.mjs +1 -1
- package/system/dist/auth/device-ca.d.ts +3 -3
- package/system/dist/auth/origin.d.ts +1 -1
- package/system/dist/{base-addon--EzLZ64f.js → base-addon-CwtR9jMm.js} +8 -28
- package/system/dist/{base-addon-D6i6fCDD.mjs → base-addon-DCfRA4Sq.mjs} +8 -28
- package/system/dist/{base-device-Aptq2PHd.js → base-device-B3OJaaod.js} +3 -3
- package/system/dist/{base-device-CuQ3xFwc.mjs → base-device-QXPOGWz3.mjs} +3 -3
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.d.ts +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +5 -5
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +5 -5
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +4 -4
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +4 -4
- package/system/dist/builtins/alerts/alerts.addon.js +7 -7
- package/system/dist/builtins/alerts/alerts.addon.mjs +7 -7
- package/system/dist/builtins/apps-aggregator/apps-aggregator.addon.js +1 -1
- package/system/dist/builtins/apps-aggregator/apps-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +2 -2
- package/system/dist/builtins/autotrack/index.mjs +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.d.ts +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +5 -5
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +5 -5
- package/system/dist/builtins/backup-orchestrator/manifest-store.d.ts +1 -1
- package/system/dist/builtins/calendars/calendars.addon.js +2 -2
- package/system/dist/builtins/calendars/calendars.addon.mjs +2 -2
- package/system/dist/builtins/camera-grid/index.js +5 -5
- package/system/dist/builtins/camera-grid/index.mjs +5 -5
- package/system/dist/builtins/composer/composer.addon.js +10 -10
- package/system/dist/builtins/composer/composer.addon.mjs +10 -10
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +22 -22
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +20 -20
- package/system/dist/builtins/core-notifier/core-notifier.addon.js +3 -3
- package/system/dist/builtins/core-notifier/core-notifier.addon.mjs +3 -3
- package/system/dist/builtins/device-history/device-history.addon.js +6 -6
- package/system/dist/builtins/device-history/device-history.addon.mjs +6 -6
- package/system/dist/builtins/device-history/store/history-schema.d.ts +1 -1
- package/system/dist/builtins/device-manager/device-manager.addon.js +29 -29
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +16 -16
- package/system/dist/builtins/device-manager/device-row-store.d.ts +1 -1
- package/system/dist/builtins/device-manager/fleet-read-census.d.ts +1 -1
- package/system/dist/builtins/device-manager/runtime-state-persist-gate.d.ts +1 -1
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +15 -15
- package/system/dist/builtins/keychain/index.mjs +15 -15
- package/system/dist/builtins/keychain/key-sources.d.ts +2 -2
- package/system/dist/builtins/keychain/keychain-store.d.ts +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +5 -5
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +5 -5
- package/system/dist/builtins/local-auth/auth-schema.d.ts +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +24 -24
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +14 -14
- package/system/dist/builtins/local-network/agent-mdns.d.ts +1 -1
- package/system/dist/builtins/local-network/hub-mdns.d.ts +1 -1
- package/system/dist/builtins/local-network/local-network.addon.d.ts +3 -3
- package/system/dist/builtins/local-network/local-network.addon.js +15 -15
- package/system/dist/builtins/local-network/local-network.addon.mjs +15 -15
- package/system/dist/builtins/loki-logging/index.js +7 -7
- package/system/dist/builtins/loki-logging/index.mjs +7 -7
- package/system/dist/builtins/loki-logging/loki-payload.d.ts +1 -1
- package/system/dist/builtins/native-metrics/cgroup-memory.d.ts +3 -3
- package/system/dist/builtins/native-metrics/native-metrics.addon.d.ts +2 -2
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +14 -14
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +14 -14
- package/system/dist/builtins/native-metrics/process-classification.d.ts +8 -8
- package/system/dist/builtins/platform-probe/accelerator-facts-probe.d.ts +1 -1
- package/system/dist/builtins/platform-probe/coral-accelerators.d.ts +2 -2
- package/system/dist/builtins/platform-probe/index.js +3 -3
- package/system/dist/builtins/platform-probe/index.mjs +3 -3
- package/system/dist/builtins/record-entries/index.js +3 -3
- package/system/dist/builtins/record-entries/index.mjs +3 -3
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +4 -4
- package/system/dist/builtins/snapshot/index.mjs +4 -4
- package/system/dist/builtins/sqlite-storage/file-host-handlers.d.ts +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.d.ts +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +3 -3
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/migrations/migration-pass.d.ts +1 -1
- package/system/dist/builtins/sqlite-storage/owned-sqlite-file.d.ts +1 -1
- package/system/dist/builtins/sqlite-storage/query-profiler.d.ts +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-pragmas.d.ts +2 -2
- package/system/dist/builtins/sqlite-storage/sqlite-settings-backend.d.ts +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +19 -19
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +19 -19
- package/system/dist/builtins/storage-orchestrator/access-guards.d.ts +1 -1
- package/system/dist/builtins/storage-orchestrator/location-secrets.d.ts +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.d.ts +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +18 -18
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +18 -18
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.service.d.ts +3 -3
- package/system/dist/builtins/system-backup/backup-encryption.d.ts +1 -1
- package/system/dist/builtins/system-backup/system-backup.service.d.ts +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +31 -31
- package/system/dist/builtins/system-config/system-config.addon.mjs +31 -31
- package/system/dist/builtins/winston-logging/index.js +5 -5
- package/system/dist/builtins/winston-logging/index.mjs +5 -5
- package/system/dist/builtins/winston-logging/log-file-cursor.d.ts +1 -1
- package/system/dist/{cap-call-context-DnLdYSyR.js → cap-call-context-3-L-JQ3d.js} +2 -2
- package/system/dist/{cap-call-context-D-su61hv.mjs → cap-call-context-C_59UKvE.mjs} +2 -2
- package/system/dist/{command-catalog-Cgz3MwLW.mjs → command-catalog-88WjnitG.mjs} +1 -1
- package/system/dist/{command-catalog-0Q83jcdv.js → command-catalog-Bt0rkK6T.js} +1 -1
- package/system/dist/{composition-sources-GNsOlYlG.js → composition-sources-BD_14SLn.js} +2 -2
- package/system/dist/{composition-sources-Dzx55O4S.mjs → composition-sources-BxNM5HHY.mjs} +2 -2
- package/system/dist/{constants-DVHYGlyi.js → constants-B8umFEGY.js} +2 -2
- package/system/dist/{constants-bg2DX4I6.mjs → constants-C86EPRS1.mjs} +2 -2
- package/system/dist/{custom-action-registry-DHOCDRef.js → custom-action-registry-C_yB2qlc.js} +125 -125
- package/system/dist/{custom-action-registry-Bd52pRgO.mjs → custom-action-registry-Ci7Lw1TM.mjs} +125 -125
- package/system/dist/{database-snapshot.cap-BymU4Xk9.js → database-snapshot.cap--dYj7W3i.js} +1 -1
- package/system/dist/{database-snapshot.cap-DAVS29qN.mjs → database-snapshot.cap-DfMxWoak.mjs} +1 -1
- package/system/dist/{declared-device-BSxSa0O8.js → declared-device-BFexdYcl.js} +1 -1
- package/system/dist/{declared-device-C4zPkK6G.mjs → declared-device-D-fwNbiU.mjs} +1 -1
- package/system/dist/{device-ca-BgYUqBEB.js → device-ca-CXDTXX4c.js} +8 -8
- package/system/dist/{device-ca-AvfcD1AT.mjs → device-ca-Du6rfexI.mjs} +8 -8
- package/system/dist/{device-certificate-IVBnrTHH.js → device-certificate-6irX-VEC.js} +4 -4
- package/system/dist/{device-certificate-Kh05tlrX.mjs → device-certificate-B5LojTd8.mjs} +4 -4
- package/system/dist/{device-manager.cap-zbFHbXlg.mjs → device-manager.cap-3gMy5WyI.mjs} +1 -1
- package/system/dist/{device-manager.cap-B-zweScL.js → device-manager.cap-CVm8e--n.js} +1 -1
- package/system/dist/{device-removal-reconcile-DSYwdCX-.mjs → device-removal-reconcile-Bca9Xmxa.mjs} +2 -2
- package/system/dist/{device-removal-reconcile-hF3PFXaD.js → device-removal-reconcile-BtBOAfIX.js} +2 -2
- package/system/dist/{camstack-error-DJ-TUAi1.js → dominevo-error-CTBRQM6p.js} +4 -4
- package/system/dist/{camstack-error-viZYfcj9.mjs → dominevo-error-EgrighSX.mjs} +4 -4
- package/system/dist/download/hosted-model-revisions.d.ts +1 -1
- package/system/dist/{entry-kind-BOBbd1lw.mjs → entry-kind-DJSOxSX2.mjs} +2 -2
- package/system/dist/{entry-kind-BVqSwPqz.js → entry-kind-DzaK6R6L.js} +2 -2
- package/system/dist/file-host-worker.js +3 -3
- package/system/dist/file-host-worker.mjs +3 -3
- package/system/dist/framework-resolver-hook.mjs +1 -1
- package/system/dist/{hub-identity-C5oay5SY.js → hub-identity-DihZeMUF.js} +10 -10
- package/system/dist/{hub-identity-Ctf-OLhe.mjs → hub-identity-vHr6cT94.mjs} +10 -10
- package/system/dist/{hub-mdns-ciao-C9adAMGN.mjs → hub-mdns-ciao-CK1Y4z73.mjs} +39 -39
- package/system/dist/{hub-mdns-ciao-BjVwHmsr.js → hub-mdns-ciao-D2Rcz1Kb.js} +42 -42
- package/system/dist/index.js +152 -152
- package/system/dist/index.mjs +149 -149
- package/system/dist/{jobs.cap-DHu0iJ1C.js → jobs.cap-Blrf2noc.js} +4 -4
- package/system/dist/{jobs.cap-BPFm9yU4.mjs → jobs.cap-DdrDabtW.mjs} +4 -4
- package/system/dist/kernel/addon-class-resolver.d.ts +2 -2
- package/system/dist/kernel/addon-engine-manager.d.ts +2 -2
- package/system/dist/kernel/addon-installer.d.ts +12 -12
- package/system/dist/kernel/addon-loader.d.ts +6 -6
- package/system/dist/kernel/addon-version-policy.d.ts +1 -1
- package/system/dist/kernel/config-schema.d.ts +2 -2
- package/system/dist/kernel/deps/addon-deps-manager.d.ts +1 -1
- package/system/dist/kernel/deps/closure-dedupe.d.ts +3 -3
- package/system/dist/kernel/deps/ensure-addon-natives.d.ts +1 -1
- package/system/dist/kernel/deps/manifest-native-deps.d.ts +2 -2
- package/system/dist/kernel/deps/manifest-python-deps.d.ts +1 -1
- package/system/dist/kernel/deps/system-package-broker.d.ts +1 -1
- package/system/dist/kernel/deps/system-package-client.d.ts +1 -1
- package/system/dist/kernel/event-plane-report.d.ts +2 -2
- package/system/dist/kernel/fs-utils.d.ts +4 -4
- package/system/dist/kernel/heap-watch.d.ts +8 -8
- package/system/dist/kernel/index.d.ts +1 -1
- package/system/dist/kernel/moleculer/addon-context-factory.d.ts +3 -3
- package/system/dist/kernel/moleculer/addon-service-factory.d.ts +3 -3
- package/system/dist/kernel/moleculer/agent-event-scope.d.ts +2 -2
- package/system/dist/kernel/moleculer/agent-ui-unlock.d.ts +1 -1
- package/system/dist/kernel/moleculer/child-addon-call-dispatch.d.ts +2 -2
- package/system/dist/kernel/moleculer/event-bus-core.d.ts +1 -1
- package/system/dist/kernel/moleculer/event-bus.d.ts +5 -5
- package/system/dist/kernel/moleculer/mesh-mtls/constants.d.ts +1 -1
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-membership.d.ts +1 -1
- package/system/dist/kernel/moleculer/mesh-mtls/pairing/pairing-protocol.d.ts +3 -3
- package/system/dist/kernel/moleculer/runner-heap-flags.d.ts +1 -1
- package/system/dist/kernel/moleculer/runner-native-allocator.d.ts +2 -2
- package/system/dist/kernel/moleculer/stream-probe-service.d.ts +1 -1
- package/system/dist/kernel/moleculer/worker-device-restore.d.ts +2 -2
- package/system/dist/kernel/requires-registry.d.ts +2 -2
- package/system/dist/kernel/transport/create-local-transport.d.ts +1 -1
- package/system/dist/kernel/transport/local-child-registry.d.ts +1 -1
- package/system/dist/kernel/transport/uds-event-bridge.d.ts +1 -1
- package/system/dist/kernel/unsupported-addon-tracker.d.ts +1 -1
- package/system/dist/{keychain-admin.cap-DOvL8TMG.mjs → keychain-admin.cap-C3eanzBT.mjs} +2 -2
- package/system/dist/{keychain-admin.cap-DcRCRWtu.js → keychain-admin.cap-yMG0j8XP.js} +2 -2
- package/system/dist/{legacy-integration-rows-door-CUpCwPm5.js → legacy-integration-rows-door-1c-XBxRt.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-bidgp6kI.mjs → legacy-integration-rows-door-CYFvlkdt.mjs} +1 -1
- package/system/dist/{log-file-read-protocol-hTaAsYlX.mjs → log-file-read-protocol-B3Tq2F50.mjs} +2 -2
- package/system/dist/{log-file-read-protocol-DSV_vQRb.js → log-file-read-protocol-BRHlsNCj.js} +2 -2
- package/system/dist/log-file-read-worker.js +1 -1
- package/system/dist/log-file-read-worker.mjs +1 -1
- package/system/dist/logging/formatter.d.ts +1 -1
- package/system/dist/{metrics-provider.cap-01SwpLu5.mjs → metrics-provider.cap-BKzH22yb.mjs} +2 -2
- package/system/dist/{metrics-provider.cap-BMKD5FH3.js → metrics-provider.cap-H0RjdYQj.js} +2 -2
- package/system/dist/{migration-CHPdAdNh.js → migration-CvC7YRxn.js} +1 -1
- package/system/dist/{migration-BvbfW9g-.mjs → migration-DDDUJnTU.mjs} +1 -1
- package/system/dist/migrations/hub/index.d.ts +1 -1
- package/system/dist/{named-entity-store-EQovvtag.js → named-entity-store-B7MMnZq_.js} +1 -1
- package/system/dist/{named-entity-store-C2JkesQG.mjs → named-entity-store-CLIUOHkl.mjs} +1 -1
- package/system/dist/{network-access.cap-CxqbyUYK.js → network-access.cap-C97_DUK9.js} +10 -10
- package/system/dist/{network-access.cap-B918UjWD.mjs → network-access.cap-DcLn1v6p.mjs} +9 -9
- package/system/dist/{notification-targets-Cj6I9DzV.js → notification-targets-BH-Kq5zA.js} +2 -2
- package/system/dist/{notification-targets-cJTv1p6y.mjs → notification-targets-gTLSExN5.mjs} +2 -2
- package/system/dist/{platform-key-source-Di7HrlGR.js → platform-key-source-DERonx7U.js} +1 -1
- package/system/dist/{platform-key-source-BWlq0jjn.mjs → platform-key-source-vw43KkgD.mjs} +1 -1
- package/system/dist/{record-entries.cap-jKkDRzZG.mjs → record-entries.cap-DqaspI30.mjs} +2 -2
- package/system/dist/{record-entries.cap-RXnOab_5.js → record-entries.cap-u4EjNUWg.js} +2 -2
- package/system/dist/{record-kind-Cm1DO1qJ.js → record-kind-BYbL_LNZ.js} +1 -1
- package/system/dist/{record-kind-DXFsj6uF.mjs → record-kind-DpcGjBK1.mjs} +1 -1
- package/system/dist/{record-kinds-CLYE4x8E.js → record-kinds-CF3IIGeU.js} +6 -6
- package/system/dist/{record-kinds-Xm95PUr5.mjs → record-kinds-HynLKMsB.mjs} +6 -6
- package/system/dist/{recording-archive.cap-BFiEztoo.js → recording-archive.cap-DPyT1msn.js} +5 -5
- package/system/dist/{recording-archive.cap-DljrTthl.mjs → recording-archive.cap-DoeNelun.mjs} +4 -4
- package/system/dist/{records.cap-BDUsx56H.mjs → records.cap-A6ZnC18-.mjs} +2 -2
- package/system/dist/{records.cap-DKDON4zv.js → records.cap-CrdoSJ1h.js} +2 -2
- package/system/dist/{rename-composition-block-BdhK2udh.mjs → rename-composition-block-CMfftDfW.mjs} +43 -43
- package/system/dist/{rename-composition-block-CJ-XbDsk.js → rename-composition-block-CeKeUquQ.js} +43 -43
- package/system/dist/{restore-archive-BQhYL8c4.mjs → restore-archive-CyUiUvKj.mjs} +11 -11
- package/system/dist/{restore-archive-DWIM3J3f.js → restore-archive-LKIQ4CNL.js} +11 -11
- package/system/dist/{retention-source.cap-BvNRqbz3.js → retention-source.cap-CuI320Je.js} +1 -1
- package/system/dist/{retention-source.cap-DUPeqB5h.mjs → retention-source.cap-DLKW-DAE.mjs} +1 -1
- package/system/dist/{retired-settings-keys-BFLkouoC.mjs → retired-settings-keys-Dakm_ir-.mjs} +1 -1
- package/system/dist/{retired-settings-keys-DNi9qA3K.js → retired-settings-keys-DdoaQDUr.js} +1 -1
- package/system/dist/{scoped-settings-DbyAaIot.js → scoped-settings-8uzhJVsE.js} +3 -3
- package/system/dist/{scoped-settings-d2_FTMty.mjs → scoped-settings-DnkTDuvk.mjs} +3 -3
- package/system/dist/{settings-store.cap-BhOIBtO4.js → settings-store.cap-DqFgT2Xo.js} +1 -1
- package/system/dist/{settings-store.cap-CaDSOqgK.mjs → settings-store.cap-DxsDTQxb.mjs} +1 -1
- package/system/dist/{state-refresh-scheduler-GlExK5Pt.js → state-refresh-scheduler-8_rBg2-4.js} +1 -1
- package/system/dist/{state-refresh-scheduler-CJuGzqZh.mjs → state-refresh-scheduler-B3pfIHRS.mjs} +1 -1
- package/system/dist/{storage-admin.cap-DPH4dWEl.js → storage-admin.cap-BndyGERv.js} +5 -5
- package/system/dist/{storage-admin.cap-CP_CtM0h.mjs → storage-admin.cap-DOZ5tsKA.mjs} +5 -5
- package/system/dist/{storage-migration.cap-DT_sdxio.js → storage-migration.cap-C52LxDX2.js} +4 -4
- package/system/dist/{storage-migration.cap-BonKGHaA.mjs → storage-migration.cap-DRl4rt-0.mjs} +4 -4
- package/system/dist/{storage-occupancy.cap-avoVkjfF.js → storage-occupancy.cap-CiGDOgpG.js} +3 -3
- package/system/dist/{storage-occupancy.cap-B_YU_aX3.mjs → storage-occupancy.cap-_VVBswn4.mjs} +3 -3
- package/system/dist/{stream-catalog.cap-Blw9nJ-a.js → stream-catalog.cap-Bl0BSYye.js} +4 -4
- package/system/dist/{stream-catalog.cap-D08FM3ow.mjs → stream-catalog.cap-C7vlYIih.mjs} +4 -4
- package/system/dist/tls/cert-evaluation.d.ts +3 -3
- package/system/dist/tls/cert-issue.d.ts +2 -2
- package/system/dist/tls/cert-manager.d.ts +7 -7
- package/system/dist/tls/tls-actions.d.ts +1 -1
- package/system/dist/tls/tls-status.d.ts +1 -1
- package/system/dist/{user-management.cap-BIOAtxeX.js → user-management.cap-D9EcsR2c.js} +2 -2
- package/system/dist/{user-management.cap-D8lVSHRA.mjs → user-management.cap-mDnBlJay.mjs} +2 -2
- package/system/dist/{wal-maintenance-8cxZxWU2.js → wal-maintenance-BPDo9Jao.js} +9 -9
- package/system/dist/{wal-maintenance-BGa2lDZp.mjs → wal-maintenance-SArcuHLu.mjs} +9 -9
- package/system/package.json +3 -3
|
@@ -17,7 +17,7 @@ interface FilesystemStorageConfig {
|
|
|
17
17
|
*
|
|
18
18
|
* The OLD `rootPath` config field is preserved for back-compat: the
|
|
19
19
|
* orchestrator's first-boot seeding step still uses the same env-var
|
|
20
|
-
* resolution chain (operator override → `
|
|
20
|
+
* resolution chain (operator override → `DOMINEVO_DATA` → fallback) to
|
|
21
21
|
* derive the base path of every default location, then writes
|
|
22
22
|
* `config.basePath` into each persisted `StorageLocation` row. The
|
|
23
23
|
* provider itself is now stateless — every call carries the live
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_base_addon = require("../../base-addon
|
|
6
|
+
const require_base_addon = require("../../base-addon-CwtR9jMm.js");
|
|
7
7
|
const require_storage_provider_cap = require("../../storage-provider.cap-CREMOQ7Y.js");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
@@ -380,7 +380,7 @@ function defaultAllowedRoots() {
|
|
|
380
380
|
*
|
|
381
381
|
* The OLD `rootPath` config field is preserved for back-compat: the
|
|
382
382
|
* orchestrator's first-boot seeding step still uses the same env-var
|
|
383
|
-
* resolution chain (operator override → `
|
|
383
|
+
* resolution chain (operator override → `DOMINEVO_DATA` → fallback) to
|
|
384
384
|
* derive the base path of every default location, then writes
|
|
385
385
|
* `config.basePath` into each persisted `StorageLocation` row. The
|
|
386
386
|
* provider itself is now stateless — every call carries the live
|
|
@@ -390,7 +390,7 @@ var FilesystemStorageAddon = class extends require_base_addon.BaseAddon {
|
|
|
390
390
|
provider = null;
|
|
391
391
|
constructor() {
|
|
392
392
|
super({
|
|
393
|
-
rootPath: "
|
|
393
|
+
rootPath: "dominevo-data",
|
|
394
394
|
storageAllowedRoots: defaultAllowedRoots()
|
|
395
395
|
});
|
|
396
396
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BaseAddon } from "../../base-addon-
|
|
1
|
+
import { t as BaseAddon } from "../../base-addon-DCfRA4Sq.mjs";
|
|
2
2
|
import { n as filesystemBrowseCapability, t as storageProviderCapability } from "../../storage-provider.cap-BswyifK2.mjs";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import * as fs$1 from "node:fs";
|
|
@@ -374,7 +374,7 @@ function defaultAllowedRoots() {
|
|
|
374
374
|
*
|
|
375
375
|
* The OLD `rootPath` config field is preserved for back-compat: the
|
|
376
376
|
* orchestrator's first-boot seeding step still uses the same env-var
|
|
377
|
-
* resolution chain (operator override → `
|
|
377
|
+
* resolution chain (operator override → `DOMINEVO_DATA` → fallback) to
|
|
378
378
|
* derive the base path of every default location, then writes
|
|
379
379
|
* `config.basePath` into each persisted `StorageLocation` row. The
|
|
380
380
|
* provider itself is now stateless — every call carries the live
|
|
@@ -384,7 +384,7 @@ var FilesystemStorageAddon = class extends BaseAddon {
|
|
|
384
384
|
provider = null;
|
|
385
385
|
constructor() {
|
|
386
386
|
super({
|
|
387
|
-
rootPath: "
|
|
387
|
+
rootPath: "dominevo-data",
|
|
388
388
|
storageAllowedRoots: defaultAllowedRoots()
|
|
389
389
|
});
|
|
390
390
|
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_wal_maintenance = require("../../wal-maintenance-
|
|
6
|
+
const require_wal_maintenance = require("../../wal-maintenance-BPDo9Jao.js");
|
|
7
7
|
const require_builtins_sqlite_storage_filesystem_storage_addon = require("./filesystem-storage.addon.js");
|
|
8
8
|
const require_builtins_sqlite_storage_sqlite_settings_addon = require("./sqlite-settings.addon.js");
|
|
9
9
|
//#region src/builtins/sqlite-storage/config-store.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as SQLITE_ENGINE_STORM_WALL_SHARE, F as SQLITE_MMAP_FLOOR_BYTES, G as SqliteOpProfiler, H as SQLITE_PROFILE_REPORT_INTERVAL_MS, I as SQLITE_PAGE_CACHE_CEILING_KIB, K as sqliteEngineStorm, L as SQLITE_PAGE_CACHE_FLOOR_KIB, N as SQLITE_JOURNAL_SIZE_LIMIT_BYTES, P as SQLITE_MMAP_CEILING_BYTES, R as sqliteMmapSizeFor, U as SQLITE_PROFILE_TOP_N, V as SQLITE_PROFILE_REPORT_FLOOR_MS, W as SQLITE_SLOW_CALL_MS, a as WalMaintenance, i as WAL_MAINTENANCE_INTERVAL_MS, l as SqliteSettingsBackend, n as WAL_HIGH_WATER_BYTES, r as WAL_IDLE_QUIET_MS, t as WAL_CHECKPOINT_BUSY_TIMEOUT_MS, z as sqlitePageCacheKibFor } from "../../wal-maintenance-
|
|
1
|
+
import { B as SQLITE_ENGINE_STORM_WALL_SHARE, F as SQLITE_MMAP_FLOOR_BYTES, G as SqliteOpProfiler, H as SQLITE_PROFILE_REPORT_INTERVAL_MS, I as SQLITE_PAGE_CACHE_CEILING_KIB, K as sqliteEngineStorm, L as SQLITE_PAGE_CACHE_FLOOR_KIB, N as SQLITE_JOURNAL_SIZE_LIMIT_BYTES, P as SQLITE_MMAP_CEILING_BYTES, R as sqliteMmapSizeFor, U as SQLITE_PROFILE_TOP_N, V as SQLITE_PROFILE_REPORT_FLOOR_MS, W as SQLITE_SLOW_CALL_MS, a as WalMaintenance, i as WAL_MAINTENANCE_INTERVAL_MS, l as SqliteSettingsBackend, n as WAL_HIGH_WATER_BYTES, r as WAL_IDLE_QUIET_MS, t as WAL_CHECKPOINT_BUSY_TIMEOUT_MS, z as sqlitePageCacheKibFor } from "../../wal-maintenance-SArcuHLu.mjs";
|
|
2
2
|
import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./filesystem-storage.addon.mjs";
|
|
3
3
|
import { SqliteSettingsAddon } from "./sqlite-settings.addon.mjs";
|
|
4
4
|
//#region src/builtins/sqlite-storage/config-store.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* One file's share of a boot-time migration pass (D987), synchronous over the
|
|
3
3
|
* connection that owns the file. The same functions run on the engine's main
|
|
4
|
-
* thread (`
|
|
4
|
+
* thread (`dominevo.db`) and inside the file-host worker (`events.db`,
|
|
5
5
|
* `history.db`): the catalogue is imported statically on both sides, so no
|
|
6
6
|
* code ever crosses `postMessage` — only ids and results do.
|
|
7
7
|
*
|
|
@@ -118,7 +118,7 @@ declare abstract class OwnedFileBase implements OwnedSqliteFile {
|
|
|
118
118
|
snapshot(): Promise<DatabaseSnapshotResult>;
|
|
119
119
|
stop(): Promise<void>;
|
|
120
120
|
}
|
|
121
|
-
/** `
|
|
121
|
+
/** `dominevo.db`: served in place on the engine's main thread. */
|
|
122
122
|
export declare class InlineOwnedFile extends OwnedFileBase {
|
|
123
123
|
readonly backend: SqliteSettingsBackend;
|
|
124
124
|
private declared;
|
|
@@ -18,7 +18,7 @@ import type { IScopedLogger } from "@dominevo/types";
|
|
|
18
18
|
* A 120 s census of the runner's main thread (2 216 samples at 54 ms) read
|
|
19
19
|
* `D=41% R=50% S=9%` against 13.9 s of CPU: the thread was blocked in
|
|
20
20
|
* `pread64 → filemap_read → folio_wait_bit_common` — synchronous 4 KiB page-ins
|
|
21
|
-
* on `
|
|
21
|
+
* on `dominevo.db` — for two fifths of wall-clock, at a sustained 418 read
|
|
22
22
|
* syscalls per second. What it could NOT say is which query issued them.
|
|
23
23
|
*
|
|
24
24
|
* ## Why an aggregate, and not only a slow-query log
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Every number here is sized against a MEASURED database, not a blog post.
|
|
5
5
|
* On the live hub (2026-08-06), 20 Hz syscall sampling of hub-main put **210
|
|
6
|
-
* of 2,561 samples inside `pread64`** — 161 on `
|
|
7
|
-
* `
|
|
6
|
+
* of 2,561 samples inside `pread64`** — 161 on `dominevo.db` and 49 on
|
|
7
|
+
* `dominevo.db-wal`, all 4 KiB page reads, i.e. page-cache misses. That is
|
|
8
8
|
* 8.2% of wall-clock and ~20% during bursts, on the single thread that also
|
|
9
9
|
* serves every tRPC request. fds 79/81 of hub-main were the two files, so the
|
|
10
10
|
* cost is proven in-process rather than inferred.
|
|
@@ -3,7 +3,7 @@ import Database from "better-sqlite3";
|
|
|
3
3
|
import { type MutationFilterInput } from "./filter-compiler.js";
|
|
4
4
|
import { SqliteOpProfiler } from "./query-profiler.js";
|
|
5
5
|
import { type StorageRowsReader } from "./storage-report-runner.js";
|
|
6
|
-
/** How one file of the engine is opened. All optional: the defaults are `
|
|
6
|
+
/** How one file of the engine is opened. All optional: the defaults are `dominevo.db`'s. */
|
|
7
7
|
export interface SqliteSettingsBackendOptions {
|
|
8
8
|
/** Which file this is — names it in log lines. Default `settings`. */
|
|
9
9
|
readonly databaseId?: DataStoreDatabase;
|
|
@@ -3,23 +3,23 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_base_addon = require("../../base-addon
|
|
7
|
-
const require_scoped_settings = require("../../scoped-settings-
|
|
8
|
-
const require_record_kind = require("../../record-kind-
|
|
9
|
-
const require_wal_maintenance = require("../../wal-maintenance-
|
|
10
|
-
const require_settings_store_cap = require("../../settings-store.cap-
|
|
11
|
-
const require_migration = require("../../migration-
|
|
12
|
-
const require_database_snapshot_cap = require("../../database-snapshot.cap
|
|
13
|
-
const require_storage_admin_cap = require("../../storage-admin.cap-
|
|
14
|
-
const require_records_cap = require("../../records.cap-
|
|
6
|
+
const require_base_addon = require("../../base-addon-CwtR9jMm.js");
|
|
7
|
+
const require_scoped_settings = require("../../scoped-settings-8uzhJVsE.js");
|
|
8
|
+
const require_record_kind = require("../../record-kind-BYbL_LNZ.js");
|
|
9
|
+
const require_wal_maintenance = require("../../wal-maintenance-BPDo9Jao.js");
|
|
10
|
+
const require_settings_store_cap = require("../../settings-store.cap-DqFgT2Xo.js");
|
|
11
|
+
const require_migration = require("../../migration-CvC7YRxn.js");
|
|
12
|
+
const require_database_snapshot_cap = require("../../database-snapshot.cap--dYj7W3i.js");
|
|
13
|
+
const require_storage_admin_cap = require("../../storage-admin.cap-BndyGERv.js");
|
|
14
|
+
const require_records_cap = require("../../records.cap-CrdoSJ1h.js");
|
|
15
15
|
const require_vector_store_cap = require("../../vector-store.cap-BxGwuiTR.js");
|
|
16
16
|
const require_custom_actions = require("../../custom-actions-D92NRi2c.js");
|
|
17
17
|
const require_constants = require("../../constants-C860Y6U4.js");
|
|
18
18
|
const require_addon_id = require("../../addon-id-Di0lNJ89.js");
|
|
19
|
-
const require_retired_settings_keys = require("../../retired-settings-keys-
|
|
19
|
+
const require_retired_settings_keys = require("../../retired-settings-keys-DdoaQDUr.js");
|
|
20
20
|
const require_sqlite_snapshot_protocol = require("../../sqlite-snapshot-protocol-B9OndqZv.js");
|
|
21
21
|
const require_wal_checkpoint_policy = require("../../wal-checkpoint-policy-d2z2qPqx.js");
|
|
22
|
-
const require_legacy_integration_rows_door = require("../../legacy-integration-rows-door-
|
|
22
|
+
const require_legacy_integration_rows_door = require("../../legacy-integration-rows-door-1c-XBxRt.js");
|
|
23
23
|
let zod = require("zod");
|
|
24
24
|
let node_crypto = require("node:crypto");
|
|
25
25
|
let node_fs = require("node:fs");
|
|
@@ -951,7 +951,7 @@ var OwnedFileBase = class {
|
|
|
951
951
|
await this.stopConnection();
|
|
952
952
|
}
|
|
953
953
|
};
|
|
954
|
-
/** `
|
|
954
|
+
/** `dominevo.db`: served in place on the engine's main thread. */
|
|
955
955
|
var InlineOwnedFile = class extends OwnedFileBase {
|
|
956
956
|
backend;
|
|
957
957
|
declared = /* @__PURE__ */ new Set();
|
|
@@ -1167,7 +1167,7 @@ var DatabaseSnapshotProvider = class {
|
|
|
1167
1167
|
* from the addons directory every node already has. An addon that is not
|
|
1168
1168
|
* installed resolves to itself, so a stamp is never accepted for a stranger.
|
|
1169
1169
|
*/
|
|
1170
|
-
var ManifestSchema = zod.z.object({
|
|
1170
|
+
var ManifestSchema = zod.z.object({ dominevo: zod.z.object({ addons: zod.z.array(zod.z.object({
|
|
1171
1171
|
id: zod.z.string(),
|
|
1172
1172
|
execution: zod.z.object({ group: zod.z.string().optional() }).passthrough().optional()
|
|
1173
1173
|
})) }).partial().optional() });
|
|
@@ -1192,7 +1192,7 @@ function declarationsIn(dir) {
|
|
|
1192
1192
|
try {
|
|
1193
1193
|
const parsed = ManifestSchema.safeParse(JSON.parse((0, node_fs.readFileSync)(node_path.default.join(dir, "package.json"), "utf-8")));
|
|
1194
1194
|
if (!parsed.success) return [];
|
|
1195
|
-
return (parsed.data.
|
|
1195
|
+
return (parsed.data.dominevo?.addons ?? []).map((addon) => ({
|
|
1196
1196
|
id: addon.id,
|
|
1197
1197
|
decl: addon.execution === void 0 ? {} : { execution: addon.execution }
|
|
1198
1198
|
}));
|
|
@@ -1305,7 +1305,7 @@ async function releaseFromHold(livePath, ids) {
|
|
|
1305
1305
|
* drives, per file: read what is pending, take the pre-migration snapshot, apply
|
|
1306
1306
|
* each migration in its own transaction. The per-file work is
|
|
1307
1307
|
* `migration-pass.ts`, executed where the connection lives (here for
|
|
1308
|
-
* `
|
|
1308
|
+
* `dominevo.db`, in the file-host worker for `events.db` and `history.db`); this
|
|
1309
1309
|
* class holds what is NOT per file: the boot id, the hold, the snapshotter, the
|
|
1310
1310
|
* statuses that order one file's migrations after another's, and the log lines.
|
|
1311
1311
|
*
|
|
@@ -1895,7 +1895,7 @@ var MigrationOwnerRefusal = class extends Error {
|
|
|
1895
1895
|
this.name = "MigrationOwnerRefusal";
|
|
1896
1896
|
}
|
|
1897
1897
|
};
|
|
1898
|
-
/** The database file an owner migration's ledger row lives in: its store, else `
|
|
1898
|
+
/** The database file an owner migration's ledger row lives in: its store, else `dominevo.db`. */
|
|
1899
1899
|
function ledgerFileOf(meta) {
|
|
1900
1900
|
return require_wal_maintenance.databaseOfStore(meta.store) ?? "settings";
|
|
1901
1901
|
}
|
|
@@ -2865,7 +2865,7 @@ function createStaleDataPorts(deps) {
|
|
|
2865
2865
|
//#region src/builtins/sqlite-storage/sqlite-settings.addon.ts
|
|
2866
2866
|
/** The file name of each database inside the addon's private directory. */
|
|
2867
2867
|
var DATABASE_FILE_NAMES = {
|
|
2868
|
-
settings: "
|
|
2868
|
+
settings: "dominevo.db",
|
|
2869
2869
|
events: "events.db",
|
|
2870
2870
|
history: "history.db"
|
|
2871
2871
|
};
|
|
@@ -2880,7 +2880,7 @@ var DATABASE_FILE_NAMES = {
|
|
|
2880
2880
|
* makes the engine replaceable.
|
|
2881
2881
|
*
|
|
2882
2882
|
* ONE engine process, SEVERAL owned files ([D851](../../../../../docs/decisions/adr-0851-one-sqlite-engine-serves-several-owned-files-one-thread-per-file.md)):
|
|
2883
|
-
* `
|
|
2883
|
+
* `dominevo.db` (settings) is served on this thread exactly as it always was;
|
|
2884
2884
|
* `events.db` and `history.db`, when a collection names them, are each served
|
|
2885
2885
|
* by a worker thread. A {@link PlacementRouter} is the provider the door sees.
|
|
2886
2886
|
* The layout of the files is documented in `docs/architecture/storage-files.md`.
|
|
@@ -2917,7 +2917,7 @@ var SqliteSettingsAddon = class extends require_base_addon.BaseAddon {
|
|
|
2917
2917
|
async resolveConfig() {}
|
|
2918
2918
|
async onInitialize() {
|
|
2919
2919
|
const addonId = require_addon_id.bareAddonId(this.ctx.id);
|
|
2920
|
-
const dir = this.ctx.dataDir ?? node_path.default.join("
|
|
2920
|
+
const dir = this.ctx.dataDir ?? node_path.default.join("dominevo-data", "addons-data", addonId);
|
|
2921
2921
|
const pathSource = this.ctx.dataDir ? "dataDir" : "fallback (hardcoded)";
|
|
2922
2922
|
const livePathOf = (databaseId) => node_path.default.join(dir, DATABASE_FILE_NAMES[databaseId]);
|
|
2923
2923
|
const settingsPath = livePathOf("settings");
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { b as EventCategory, i as collectSecretMarkerRefs, t as BaseAddon } from "../../base-addon-
|
|
2
|
-
import { A as NoCallerError, C as normalizeSecretOwner, E as DeclarationRefusedError, L as TransactRefusedError, Z as errMsg$1, k as InvalidRecordError, v as RECORD_SWEEP_INTERVAL_MS, z as UnknownRecordKindError } from "../../scoped-settings-
|
|
3
|
-
import { n as RecordKindDeclarationSchema } from "../../record-kind-
|
|
4
|
-
import { A as callRecords, D as RecordsEngine, E as databaseOfStore, M as controlTargetOf, O as callControl, T as trustResult, _ as rehydrateError, a as WalMaintenance, b as collectTransferables, c as vectorProviderOfOwnedFile, d as callMigrate, f as migrateTargetOf, g as DuplicatePlacementError, h as DatabaseBusyError, j as callVector, k as callData, l as SqliteSettingsBackend, m as CrossDatabaseTransactError, o as createVectorIndex, p as CollectionPlacementError, s as vectorProviderOf, u as HUB_MIGRATIONS, x as isFileHostMessage } from "../../wal-maintenance-
|
|
5
|
-
import { i as DATA_STORE_DATABASES } from "../../settings-store.cap-
|
|
6
|
-
import { c as catalogueIssues, l as orderMigrations, r as MigrationMetaSchema } from "../../migration-
|
|
7
|
-
import { a as databaseSnapshotCapability, i as DATABASE_SNAPSHOT_TIMEOUT_MS, n as DATABASE_SNAPSHOT_PARTIAL_SUFFIX, r as DATABASE_SNAPSHOT_SUFFIX } from "../../database-snapshot.cap-
|
|
8
|
-
import { i as dataStoreProviderCapability, n as migrationsCapability, r as MIGRATION_API_V1_METHODS, t as storageAdminCapability } from "../../storage-admin.cap-
|
|
9
|
-
import { o as recordsCapability } from "../../records.cap-
|
|
1
|
+
import { b as EventCategory, i as collectSecretMarkerRefs, t as BaseAddon } from "../../base-addon-DCfRA4Sq.mjs";
|
|
2
|
+
import { A as NoCallerError, C as normalizeSecretOwner, E as DeclarationRefusedError, L as TransactRefusedError, Z as errMsg$1, k as InvalidRecordError, v as RECORD_SWEEP_INTERVAL_MS, z as UnknownRecordKindError } from "../../scoped-settings-DnkTDuvk.mjs";
|
|
3
|
+
import { n as RecordKindDeclarationSchema } from "../../record-kind-DpcGjBK1.mjs";
|
|
4
|
+
import { A as callRecords, D as RecordsEngine, E as databaseOfStore, M as controlTargetOf, O as callControl, T as trustResult, _ as rehydrateError, a as WalMaintenance, b as collectTransferables, c as vectorProviderOfOwnedFile, d as callMigrate, f as migrateTargetOf, g as DuplicatePlacementError, h as DatabaseBusyError, j as callVector, k as callData, l as SqliteSettingsBackend, m as CrossDatabaseTransactError, o as createVectorIndex, p as CollectionPlacementError, s as vectorProviderOf, u as HUB_MIGRATIONS, x as isFileHostMessage } from "../../wal-maintenance-SArcuHLu.mjs";
|
|
5
|
+
import { i as DATA_STORE_DATABASES } from "../../settings-store.cap-DxsDTQxb.mjs";
|
|
6
|
+
import { c as catalogueIssues, l as orderMigrations, r as MigrationMetaSchema } from "../../migration-DDDUJnTU.mjs";
|
|
7
|
+
import { a as databaseSnapshotCapability, i as DATABASE_SNAPSHOT_TIMEOUT_MS, n as DATABASE_SNAPSHOT_PARTIAL_SUFFIX, r as DATABASE_SNAPSHOT_SUFFIX } from "../../database-snapshot.cap-DfMxWoak.mjs";
|
|
8
|
+
import { i as dataStoreProviderCapability, n as migrationsCapability, r as MIGRATION_API_V1_METHODS, t as storageAdminCapability } from "../../storage-admin.cap-DOZ5tsKA.mjs";
|
|
9
|
+
import { o as recordsCapability } from "../../records.cap-A6ZnC18-.mjs";
|
|
10
10
|
import { n as vectorStoreCapability } from "../../vector-store.cap-GdBou-8i.mjs";
|
|
11
11
|
import { n as defineCustomActions, t as customAction } from "../../custom-actions-BFUSalC9.mjs";
|
|
12
12
|
import { t as RUNTIME_DEFAULTS } from "../../constants-DCLpoF4L.mjs";
|
|
13
13
|
import { t as bareAddonId } from "../../addon-id-CVg1_r5E.mjs";
|
|
14
|
-
import { r as retiredKeyStoreOf, t as purgeRetiredSettingsKeys } from "../../retired-settings-keys-
|
|
14
|
+
import { r as retiredKeyStoreOf, t as purgeRetiredSettingsKeys } from "../../retired-settings-keys-Dakm_ir-.mjs";
|
|
15
15
|
import { r as isSnapshotWorkerMessage } from "../../sqlite-snapshot-protocol-2QaTouWV.mjs";
|
|
16
16
|
import { a as isWorkerMessage, t as WAL_CHECKPOINT_LARGE_PASS_FRAMES } from "../../wal-checkpoint-policy-BahrTtyD.mjs";
|
|
17
|
-
import { a as patchLegacyIntegrationRows, i as legacyIntegrationAddonId, n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows, r as deleteLegacyIntegrationRowKeys } from "../../legacy-integration-rows-door-
|
|
17
|
+
import { a as patchLegacyIntegrationRows, i as legacyIntegrationAddonId, n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows, r as deleteLegacyIntegrationRowKeys } from "../../legacy-integration-rows-door-CYFvlkdt.mjs";
|
|
18
18
|
import { createRequire } from "node:module";
|
|
19
19
|
import { z } from "zod";
|
|
20
20
|
import { randomUUID } from "node:crypto";
|
|
@@ -945,7 +945,7 @@ var OwnedFileBase = class {
|
|
|
945
945
|
await this.stopConnection();
|
|
946
946
|
}
|
|
947
947
|
};
|
|
948
|
-
/** `
|
|
948
|
+
/** `dominevo.db`: served in place on the engine's main thread. */
|
|
949
949
|
var InlineOwnedFile = class extends OwnedFileBase {
|
|
950
950
|
backend;
|
|
951
951
|
declared = /* @__PURE__ */ new Set();
|
|
@@ -1161,7 +1161,7 @@ var DatabaseSnapshotProvider = class {
|
|
|
1161
1161
|
* from the addons directory every node already has. An addon that is not
|
|
1162
1162
|
* installed resolves to itself, so a stamp is never accepted for a stranger.
|
|
1163
1163
|
*/
|
|
1164
|
-
var ManifestSchema = z.object({
|
|
1164
|
+
var ManifestSchema = z.object({ dominevo: z.object({ addons: z.array(z.object({
|
|
1165
1165
|
id: z.string(),
|
|
1166
1166
|
execution: z.object({ group: z.string().optional() }).passthrough().optional()
|
|
1167
1167
|
})) }).partial().optional() });
|
|
@@ -1186,7 +1186,7 @@ function declarationsIn(dir) {
|
|
|
1186
1186
|
try {
|
|
1187
1187
|
const parsed = ManifestSchema.safeParse(JSON.parse(readFileSync(path.join(dir, "package.json"), "utf-8")));
|
|
1188
1188
|
if (!parsed.success) return [];
|
|
1189
|
-
return (parsed.data.
|
|
1189
|
+
return (parsed.data.dominevo?.addons ?? []).map((addon) => ({
|
|
1190
1190
|
id: addon.id,
|
|
1191
1191
|
decl: addon.execution === void 0 ? {} : { execution: addon.execution }
|
|
1192
1192
|
}));
|
|
@@ -1299,7 +1299,7 @@ async function releaseFromHold(livePath, ids) {
|
|
|
1299
1299
|
* drives, per file: read what is pending, take the pre-migration snapshot, apply
|
|
1300
1300
|
* each migration in its own transaction. The per-file work is
|
|
1301
1301
|
* `migration-pass.ts`, executed where the connection lives (here for
|
|
1302
|
-
* `
|
|
1302
|
+
* `dominevo.db`, in the file-host worker for `events.db` and `history.db`); this
|
|
1303
1303
|
* class holds what is NOT per file: the boot id, the hold, the snapshotter, the
|
|
1304
1304
|
* statuses that order one file's migrations after another's, and the log lines.
|
|
1305
1305
|
*
|
|
@@ -1889,7 +1889,7 @@ var MigrationOwnerRefusal = class extends Error {
|
|
|
1889
1889
|
this.name = "MigrationOwnerRefusal";
|
|
1890
1890
|
}
|
|
1891
1891
|
};
|
|
1892
|
-
/** The database file an owner migration's ledger row lives in: its store, else `
|
|
1892
|
+
/** The database file an owner migration's ledger row lives in: its store, else `dominevo.db`. */
|
|
1893
1893
|
function ledgerFileOf(meta) {
|
|
1894
1894
|
return databaseOfStore(meta.store) ?? "settings";
|
|
1895
1895
|
}
|
|
@@ -2858,7 +2858,7 @@ function createStaleDataPorts(deps) {
|
|
|
2858
2858
|
//#region src/builtins/sqlite-storage/sqlite-settings.addon.ts
|
|
2859
2859
|
/** The file name of each database inside the addon's private directory. */
|
|
2860
2860
|
var DATABASE_FILE_NAMES = {
|
|
2861
|
-
settings: "
|
|
2861
|
+
settings: "dominevo.db",
|
|
2862
2862
|
events: "events.db",
|
|
2863
2863
|
history: "history.db"
|
|
2864
2864
|
};
|
|
@@ -2873,7 +2873,7 @@ var DATABASE_FILE_NAMES = {
|
|
|
2873
2873
|
* makes the engine replaceable.
|
|
2874
2874
|
*
|
|
2875
2875
|
* ONE engine process, SEVERAL owned files ([D851](../../../../../docs/decisions/adr-0851-one-sqlite-engine-serves-several-owned-files-one-thread-per-file.md)):
|
|
2876
|
-
* `
|
|
2876
|
+
* `dominevo.db` (settings) is served on this thread exactly as it always was;
|
|
2877
2877
|
* `events.db` and `history.db`, when a collection names them, are each served
|
|
2878
2878
|
* by a worker thread. A {@link PlacementRouter} is the provider the door sees.
|
|
2879
2879
|
* The layout of the files is documented in `docs/architecture/storage-files.md`.
|
|
@@ -2910,7 +2910,7 @@ var SqliteSettingsAddon = class extends BaseAddon {
|
|
|
2910
2910
|
async resolveConfig() {}
|
|
2911
2911
|
async onInitialize() {
|
|
2912
2912
|
const addonId = bareAddonId(this.ctx.id);
|
|
2913
|
-
const dir = this.ctx.dataDir ?? path.join("
|
|
2913
|
+
const dir = this.ctx.dataDir ?? path.join("dominevo-data", "addons-data", addonId);
|
|
2914
2914
|
const pathSource = this.ctx.dataDir ? "dataDir" : "fallback (hardcoded)";
|
|
2915
2915
|
const livePathOf = (databaseId) => path.join(dir, DATABASE_FILE_NAMES[databaseId]);
|
|
2916
2916
|
const settingsPath = livePathOf("settings");
|
|
@@ -34,7 +34,7 @@ export declare function resolveRefusalFor(location: StorageLocation, locality: P
|
|
|
34
34
|
* which refuses a delete.
|
|
35
35
|
*
|
|
36
36
|
* The direction that matters is the one this closes. A remote location carries
|
|
37
|
-
* a plain-looking `basePath` (`/backups/
|
|
37
|
+
* a plain-looking `basePath` (`/backups/dominevo`); `fs.readdir` of it on the
|
|
38
38
|
* hub answers `ENOENT`, and `ENOENT` is deliberately read as `empty` — because
|
|
39
39
|
* for a LOCAL location an absent root means there is nothing the delete can
|
|
40
40
|
* strand. Applied to a remote row, that same reasoning turns a full share into
|
|
@@ -107,7 +107,7 @@ export declare function redactLocation(location: StorageLocation, secretKeys: Re
|
|
|
107
107
|
* sentinel is restored from what is already stored.
|
|
108
108
|
*
|
|
109
109
|
* A sentinel with NOTHING stored behind it is dropped rather than persisted —
|
|
110
|
-
* writing the literal `
|
|
110
|
+
* writing the literal `__dominevo_redacted__` as a password is a
|
|
111
111
|
* lock-yourself-out bug that would only surface at the next connection
|
|
112
112
|
* attempt, hours later, as an authentication failure with no explanation.
|
|
113
113
|
*/
|
|
@@ -72,7 +72,7 @@ export declare class StorageOrchestratorAddon extends BaseAddon<StorageOrchestra
|
|
|
72
72
|
*
|
|
73
73
|
* Built once and memoised. It is only consulted when `getEngines()` is
|
|
74
74
|
* empty, so on a hub — and on an agent rolled back to a local engine via
|
|
75
|
-
* `
|
|
75
|
+
* `DOMINEVO_AGENT_LOCAL_DATA_STORE` — the resolve never runs a second time.
|
|
76
76
|
*/
|
|
77
77
|
private hubForward;
|
|
78
78
|
private hubSettingsForward;
|
|
@@ -284,7 +284,7 @@ export declare class StorageOrchestratorAddon extends BaseAddon<StorageOrchestra
|
|
|
284
284
|
*
|
|
285
285
|
* Shared roots (`/recordings` hosting high + low + events) are scored by
|
|
286
286
|
* class subtree (`<camera>/high|mid`, `/low`, `/events`), not by a raw
|
|
287
|
-
* `readdir` of the root — camera dirs and `.
|
|
287
|
+
* `readdir` of the root — camera dirs and `.dominevo-location` would
|
|
288
288
|
* otherwise make every class look occupied. The walk stays shallow: one
|
|
289
289
|
* dirent per camera, then first-entry of the named subtree. A `find` of
|
|
290
290
|
* segments is precisely what must not happen here.
|
|
@@ -339,7 +339,7 @@ export declare class StorageOrchestratorAddon extends BaseAddon<StorageOrchestra
|
|
|
339
339
|
* map is a no-op (each declared id's `<id>:default` is already in the
|
|
340
340
|
* service's map).
|
|
341
341
|
*
|
|
342
|
-
* `basePath` is this node's data root (`ctx.nodeDataDir` = `
|
|
342
|
+
* `basePath` is this node's data root (`ctx.nodeDataDir` = `DOMINEVO_DATA`
|
|
343
343
|
* ?? the kernel boot dir). Every declared default is attributed to the
|
|
344
344
|
* `filesystem-storage`
|
|
345
345
|
* provider; operators repoint individual locations (or add remote
|
|
@@ -3,20 +3,20 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_base_addon = require("../../base-addon
|
|
7
|
-
const require_scoped_settings = require("../../scoped-settings-
|
|
8
|
-
const require_record_kind = require("../../record-kind-
|
|
9
|
-
const require_settings_store_cap = require("../../settings-store.cap-
|
|
6
|
+
const require_base_addon = require("../../base-addon-CwtR9jMm.js");
|
|
7
|
+
const require_scoped_settings = require("../../scoped-settings-8uzhJVsE.js");
|
|
8
|
+
const require_record_kind = require("../../record-kind-BYbL_LNZ.js");
|
|
9
|
+
const require_settings_store_cap = require("../../settings-store.cap-DqFgT2Xo.js");
|
|
10
10
|
const require_relocate = require("../../relocate-CdVQAk-w.js");
|
|
11
11
|
const require_storage_location_mode = require("../../storage-location-mode-CS4sMzo-.js");
|
|
12
12
|
const require_storage_location = require("../../storage-location-BMALphqT.js");
|
|
13
|
-
const require_storage_migration_cap = require("../../storage-migration.cap-
|
|
13
|
+
const require_storage_migration_cap = require("../../storage-migration.cap-C52LxDX2.js");
|
|
14
14
|
const require_integration_instances_cap = require("../../integration-instances.cap-lh_F2wyM.js");
|
|
15
15
|
const require_custom_actions = require("../../custom-actions-D92NRi2c.js");
|
|
16
16
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
17
17
|
let zod = require("zod");
|
|
18
|
-
let node_crypto = require("node:crypto");
|
|
19
18
|
let _dominevo_types_node = require("@dominevo/types/node");
|
|
19
|
+
let node_crypto = require("node:crypto");
|
|
20
20
|
let node_path = require("node:path");
|
|
21
21
|
node_path = require_chunk.__toESM(node_path);
|
|
22
22
|
let node_fs_promises = require("node:fs/promises");
|
|
@@ -1629,7 +1629,7 @@ function resolveRefusalFor(location, locality) {
|
|
|
1629
1629
|
* which refuses a delete.
|
|
1630
1630
|
*
|
|
1631
1631
|
* The direction that matters is the one this closes. A remote location carries
|
|
1632
|
-
* a plain-looking `basePath` (`/backups/
|
|
1632
|
+
* a plain-looking `basePath` (`/backups/dominevo`); `fs.readdir` of it on the
|
|
1633
1633
|
* hub answers `ENOENT`, and `ENOENT` is deliberately read as `empty` — because
|
|
1634
1634
|
* for a LOCAL location an absent root means there is nothing the delete can
|
|
1635
1635
|
* strand. Applied to a remote row, that same reasoning turns a full share into
|
|
@@ -1903,7 +1903,7 @@ function createHubCapForwardService(onUnownedCall, options = {}) {
|
|
|
1903
1903
|
* Anything else is an agent, and an agent's answer is the hub's store.
|
|
1904
1904
|
*/
|
|
1905
1905
|
function nodeOwnsItsDataStore(env) {
|
|
1906
|
-
const raw = (env["
|
|
1906
|
+
const raw = (env["DOMINEVO_ROLE"] ?? "").trim().toLowerCase();
|
|
1907
1907
|
return raw === "" || raw === "hub";
|
|
1908
1908
|
}
|
|
1909
1909
|
/**
|
|
@@ -2129,7 +2129,7 @@ function resolveMinFreePercent(config, providerDefaultPercent, capacity, notice)
|
|
|
2129
2129
|
* `total 506107977728 / available 193348673536`. `owned` differed correctly
|
|
2130
2130
|
* (9.9 GB vs 1.6 GB), so nothing about the rendering was at fault: the probe
|
|
2131
2131
|
* simply never looked at the provider. It `path.resolve`d the SMB row's
|
|
2132
|
-
* share-relative `basePath: "
|
|
2132
|
+
* share-relative `basePath: "dominevo"` against the hub process's cwd, found no
|
|
2133
2133
|
* such directory, walked up to the nearest existing ancestor — the container
|
|
2134
2134
|
* root — and reported the HUB's own disk as the share's. The operator was told
|
|
2135
2135
|
* an SMB share was 62% full by a reading nobody had taken of it.
|
|
@@ -2322,7 +2322,7 @@ function redactLocation(location, secretKeys) {
|
|
|
2322
2322
|
* sentinel is restored from what is already stored.
|
|
2323
2323
|
*
|
|
2324
2324
|
* A sentinel with NOTHING stored behind it is dropped rather than persisted —
|
|
2325
|
-
* writing the literal `
|
|
2325
|
+
* writing the literal `__dominevo_redacted__` as a password is a
|
|
2326
2326
|
* lock-yourself-out bug that would only surface at the next connection
|
|
2327
2327
|
* attempt, hours later, as an authentication failure with no explanation.
|
|
2328
2328
|
*/
|
|
@@ -2331,7 +2331,7 @@ function restoreRedactedSecrets(incoming, stored, secretKeys) {
|
|
|
2331
2331
|
let touched = false;
|
|
2332
2332
|
const out = {};
|
|
2333
2333
|
for (const [key, value] of Object.entries(incoming)) {
|
|
2334
|
-
if (value !== "
|
|
2334
|
+
if (value !== "__dominevo_redacted__" || !secretKeys.has(key)) {
|
|
2335
2335
|
out[key] = value;
|
|
2336
2336
|
continue;
|
|
2337
2337
|
}
|
|
@@ -2526,7 +2526,7 @@ function stateOf(location) {
|
|
|
2526
2526
|
}
|
|
2527
2527
|
/** A form value that names a credential KEPT: left out, empty, the redaction token or the view. */
|
|
2528
2528
|
function keepsSecret(value) {
|
|
2529
|
-
return value === void 0 || value === "" || value === "
|
|
2529
|
+
return value === void 0 || value === "" || value === "__dominevo_redacted__" || require_scoped_settings.isSecretFieldView(value) || require_scoped_settings.isSecretMarker(value);
|
|
2530
2530
|
}
|
|
2531
2531
|
function numberOrNull(value) {
|
|
2532
2532
|
if (value === void 0) return void 0;
|
|
@@ -3852,7 +3852,7 @@ var StorageOrchestratorService = class {
|
|
|
3852
3852
|
* satisfies the
|
|
3853
3853
|
* `^[a-z][a-z0-9-]*:[a-z0-9-]+$` regex on `StorageLocationSchema.id`.
|
|
3854
3854
|
*
|
|
3855
|
-
* `basePath` is the storage root (e.g. `<
|
|
3855
|
+
* `basePath` is the storage root (e.g. `<DOMINEVO_DATA>`). Each
|
|
3856
3856
|
* location's `config.basePath` is `<basePath>/<id>`, except when the
|
|
3857
3857
|
* declaration sets `defaultsTo` — then it inherits the resolved root of
|
|
3858
3858
|
* the referenced location's default instance (sharing the same root
|
|
@@ -5243,7 +5243,7 @@ var StorageOrchestratorAddon = class extends require_base_addon.BaseAddon {
|
|
|
5243
5243
|
*
|
|
5244
5244
|
* Built once and memoised. It is only consulted when `getEngines()` is
|
|
5245
5245
|
* empty, so on a hub — and on an agent rolled back to a local engine via
|
|
5246
|
-
* `
|
|
5246
|
+
* `DOMINEVO_AGENT_LOCAL_DATA_STORE` — the resolve never runs a second time.
|
|
5247
5247
|
*/
|
|
5248
5248
|
hubForward = null;
|
|
5249
5249
|
hubSettingsForward() {
|
|
@@ -5883,7 +5883,7 @@ var StorageOrchestratorAddon = class extends require_base_addon.BaseAddon {
|
|
|
5883
5883
|
*
|
|
5884
5884
|
* Shared roots (`/recordings` hosting high + low + events) are scored by
|
|
5885
5885
|
* class subtree (`<camera>/high|mid`, `/low`, `/events`), not by a raw
|
|
5886
|
-
* `readdir` of the root — camera dirs and `.
|
|
5886
|
+
* `readdir` of the root — camera dirs and `.dominevo-location` would
|
|
5887
5887
|
* otherwise make every class look occupied. The walk stays shallow: one
|
|
5888
5888
|
* dirent per camera, then first-entry of the named subtree. A `find` of
|
|
5889
5889
|
* segments is precisely what must not happen here.
|
|
@@ -5988,7 +5988,7 @@ var StorageOrchestratorAddon = class extends require_base_addon.BaseAddon {
|
|
|
5988
5988
|
* map is a no-op (each declared id's `<id>:default` is already in the
|
|
5989
5989
|
* service's map).
|
|
5990
5990
|
*
|
|
5991
|
-
* `basePath` is this node's data root (`ctx.nodeDataDir` = `
|
|
5991
|
+
* `basePath` is this node's data root (`ctx.nodeDataDir` = `DOMINEVO_DATA`
|
|
5992
5992
|
* ?? the kernel boot dir). Every declared default is attributed to the
|
|
5993
5993
|
* `filesystem-storage`
|
|
5994
5994
|
* provider; operators repoint individual locations (or add remote
|
|
@@ -6004,8 +6004,8 @@ var StorageOrchestratorAddon = class extends require_base_addon.BaseAddon {
|
|
|
6004
6004
|
const registry = buildStorageLocationRegistry(perAddon);
|
|
6005
6005
|
this.service.setRegistry(registry);
|
|
6006
6006
|
this.service.pruneUndeclaredSystemLocations(unloaded);
|
|
6007
|
-
const mediaRoot = process.env.
|
|
6008
|
-
const backupRoot = process.env.
|
|
6007
|
+
const mediaRoot = process.env.DOMINEVO_MEDIA_ROOT?.trim();
|
|
6008
|
+
const backupRoot = process.env.DOMINEVO_BACKUP_ROOT?.trim();
|
|
6009
6009
|
const seedInput = {
|
|
6010
6010
|
providerId: "filesystem-storage",
|
|
6011
6011
|
basePath: this.ctx.nodeDataDir,
|