@dominevo/server 0.1.0 → 0.1.1
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 +7 -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 +71 -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 +8 -8
- 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 +8 -8
- package/system/dist/builtins/alerts/alerts.addon.js +7 -7
- package/system/dist/builtins/alerts/alerts.addon.mjs +9 -9
- 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 +8 -8
- 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 +17 -17
- 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 +23 -23
- 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 +12 -12
- 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 +22 -22
- 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 +143 -143
- 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/{coral-accelerators-DXDOGcym.mjs → coral-accelerators-CSu5Ahx5.mjs} +6 -6
- package/system/dist/{custom-action-registry-Bd52pRgO.mjs → custom-action-registry-BklzKCJe.mjs} +162 -162
- package/system/dist/{custom-action-registry-DHOCDRef.js → custom-action-registry-C_yB2qlc.js} +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-Ctf-OLhe.mjs → hub-identity-C1lUxisZ.mjs} +19 -19
- package/system/dist/{hub-identity-C5oay5SY.js → hub-identity-DihZeMUF.js} +10 -10
- package/system/dist/{hub-mdns-ciao-BjVwHmsr.js → hub-mdns-ciao-D2Rcz1Kb.js} +42 -42
- package/system/dist/{hub-mdns-ciao-C9adAMGN.mjs → hub-mdns-ciao-D5Udd2A_.mjs} +39 -39
- package/system/dist/index.js +152 -152
- package/system/dist/index.mjs +355 -355
- 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-DngNk5Yg.mjs} +104 -104
- 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
|
@@ -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,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { b as EventCategory, c as normalizeNodeId, f as defineAddonMigrations, o as resolveSecretMarkers, t as BaseAddon } from "../../base-addon-
|
|
2
|
-
import { H as isSecretClear, J as REDACTED_SECRET, K as makeSecretMarker, U as isSecretFieldView, W as isSecretMarker, Y as collectSecretConfigKeys, b as buildSecretRef, o as recordSecretRef, q as toSecretFieldView, w as parseSecretRef } from "../../scoped-settings-
|
|
3
|
-
import { s as defineRecordKinds } from "../../record-kind-
|
|
4
|
-
import { f as settingsStoreCapability } from "../../settings-store.cap-
|
|
1
|
+
import { b as EventCategory, c as normalizeNodeId, f as defineAddonMigrations, o as resolveSecretMarkers, t as BaseAddon } from "../../base-addon-DCfRA4Sq.mjs";
|
|
2
|
+
import { H as isSecretClear, J as REDACTED_SECRET, K as makeSecretMarker, U as isSecretFieldView, W as isSecretMarker, Y as collectSecretConfigKeys, b as buildSecretRef, o as recordSecretRef, q as toSecretFieldView, w as parseSecretRef } from "../../scoped-settings-DnkTDuvk.mjs";
|
|
3
|
+
import { s as defineRecordKinds } from "../../record-kind-DpcGjBK1.mjs";
|
|
4
|
+
import { f as settingsStoreCapability } from "../../settings-store.cap-DxsDTQxb.mjs";
|
|
5
5
|
import { p as StorageCleanupJobSchema, v as StorageMigrationJobSchema } from "../../relocate-CoZZTui1.mjs";
|
|
6
6
|
import { a as mayReadLocation, c as modeMayWrite, d as withLocationMode, l as resolveLocationMode, n as StorageLocationModeSchema, o as mayWriteToLocation, r as evictionPolicyOfLocation, s as modeForSwitch, t as STORAGE_LOCATION_MODES, u as switchStateOfMode } from "../../storage-location-mode-B21UVRRX.mjs";
|
|
7
7
|
import { a as gbToBytes, i as StorageLocationTypeSchema, o as isLocationEnabled } from "../../storage-location-TVP1Wcbg.mjs";
|
|
8
|
-
import { n as storageCapability, r as nodeRemovalHookCapability, t as storageMigrationCapability } from "../../storage-migration.cap-
|
|
8
|
+
import { n as storageCapability, r as nodeRemovalHookCapability, t as storageMigrationCapability } from "../../storage-migration.cap-DRl4rt-0.mjs";
|
|
9
9
|
import { t as integrationInstancesCapability } from "../../integration-instances.cap-CjJIJkhV.mjs";
|
|
10
10
|
import { n as defineCustomActions, t as customAction } from "../../custom-actions-BFUSalC9.mjs";
|
|
11
11
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
12
12
|
import { z } from "zod";
|
|
13
|
-
import { randomUUID } from "node:crypto";
|
|
14
13
|
import { containsOrEquals, physicalRootOf } from "@dominevo/types/node";
|
|
14
|
+
import { randomUUID } from "node:crypto";
|
|
15
15
|
import * as path$1 from "node:path";
|
|
16
16
|
import path from "node:path";
|
|
17
17
|
import * as fs from "node:fs/promises";
|
|
@@ -1624,7 +1624,7 @@ function resolveRefusalFor(location, locality) {
|
|
|
1624
1624
|
* which refuses a delete.
|
|
1625
1625
|
*
|
|
1626
1626
|
* The direction that matters is the one this closes. A remote location carries
|
|
1627
|
-
* a plain-looking `basePath` (`/backups/
|
|
1627
|
+
* a plain-looking `basePath` (`/backups/dominevo`); `fs.readdir` of it on the
|
|
1628
1628
|
* hub answers `ENOENT`, and `ENOENT` is deliberately read as `empty` — because
|
|
1629
1629
|
* for a LOCAL location an absent root means there is nothing the delete can
|
|
1630
1630
|
* strand. Applied to a remote row, that same reasoning turns a full share into
|
|
@@ -1898,7 +1898,7 @@ function createHubCapForwardService(onUnownedCall, options = {}) {
|
|
|
1898
1898
|
* Anything else is an agent, and an agent's answer is the hub's store.
|
|
1899
1899
|
*/
|
|
1900
1900
|
function nodeOwnsItsDataStore(env) {
|
|
1901
|
-
const raw = (env["
|
|
1901
|
+
const raw = (env["DOMINEVO_ROLE"] ?? "").trim().toLowerCase();
|
|
1902
1902
|
return raw === "" || raw === "hub";
|
|
1903
1903
|
}
|
|
1904
1904
|
/**
|
|
@@ -2124,7 +2124,7 @@ function resolveMinFreePercent(config, providerDefaultPercent, capacity, notice)
|
|
|
2124
2124
|
* `total 506107977728 / available 193348673536`. `owned` differed correctly
|
|
2125
2125
|
* (9.9 GB vs 1.6 GB), so nothing about the rendering was at fault: the probe
|
|
2126
2126
|
* simply never looked at the provider. It `path.resolve`d the SMB row's
|
|
2127
|
-
* share-relative `basePath: "
|
|
2127
|
+
* share-relative `basePath: "dominevo"` against the hub process's cwd, found no
|
|
2128
2128
|
* such directory, walked up to the nearest existing ancestor — the container
|
|
2129
2129
|
* root — and reported the HUB's own disk as the share's. The operator was told
|
|
2130
2130
|
* an SMB share was 62% full by a reading nobody had taken of it.
|
|
@@ -2317,7 +2317,7 @@ function redactLocation(location, secretKeys) {
|
|
|
2317
2317
|
* sentinel is restored from what is already stored.
|
|
2318
2318
|
*
|
|
2319
2319
|
* A sentinel with NOTHING stored behind it is dropped rather than persisted —
|
|
2320
|
-
* writing the literal `
|
|
2320
|
+
* writing the literal `__dominevo_redacted__` as a password is a
|
|
2321
2321
|
* lock-yourself-out bug that would only surface at the next connection
|
|
2322
2322
|
* attempt, hours later, as an authentication failure with no explanation.
|
|
2323
2323
|
*/
|
|
@@ -2326,7 +2326,7 @@ function restoreRedactedSecrets(incoming, stored, secretKeys) {
|
|
|
2326
2326
|
let touched = false;
|
|
2327
2327
|
const out = {};
|
|
2328
2328
|
for (const [key, value] of Object.entries(incoming)) {
|
|
2329
|
-
if (value !== "
|
|
2329
|
+
if (value !== "__dominevo_redacted__" || !secretKeys.has(key)) {
|
|
2330
2330
|
out[key] = value;
|
|
2331
2331
|
continue;
|
|
2332
2332
|
}
|
|
@@ -2521,7 +2521,7 @@ function stateOf(location) {
|
|
|
2521
2521
|
}
|
|
2522
2522
|
/** A form value that names a credential KEPT: left out, empty, the redaction token or the view. */
|
|
2523
2523
|
function keepsSecret(value) {
|
|
2524
|
-
return value === void 0 || value === "" || value === "
|
|
2524
|
+
return value === void 0 || value === "" || value === "__dominevo_redacted__" || isSecretFieldView(value) || isSecretMarker(value);
|
|
2525
2525
|
}
|
|
2526
2526
|
function numberOrNull(value) {
|
|
2527
2527
|
if (value === void 0) return void 0;
|
|
@@ -3847,7 +3847,7 @@ var StorageOrchestratorService = class {
|
|
|
3847
3847
|
* satisfies the
|
|
3848
3848
|
* `^[a-z][a-z0-9-]*:[a-z0-9-]+$` regex on `StorageLocationSchema.id`.
|
|
3849
3849
|
*
|
|
3850
|
-
* `basePath` is the storage root (e.g. `<
|
|
3850
|
+
* `basePath` is the storage root (e.g. `<DOMINEVO_DATA>`). Each
|
|
3851
3851
|
* location's `config.basePath` is `<basePath>/<id>`, except when the
|
|
3852
3852
|
* declaration sets `defaultsTo` — then it inherits the resolved root of
|
|
3853
3853
|
* the referenced location's default instance (sharing the same root
|
|
@@ -5238,7 +5238,7 @@ var StorageOrchestratorAddon = class extends BaseAddon {
|
|
|
5238
5238
|
*
|
|
5239
5239
|
* Built once and memoised. It is only consulted when `getEngines()` is
|
|
5240
5240
|
* empty, so on a hub — and on an agent rolled back to a local engine via
|
|
5241
|
-
* `
|
|
5241
|
+
* `DOMINEVO_AGENT_LOCAL_DATA_STORE` — the resolve never runs a second time.
|
|
5242
5242
|
*/
|
|
5243
5243
|
hubForward = null;
|
|
5244
5244
|
hubSettingsForward() {
|
|
@@ -5878,7 +5878,7 @@ var StorageOrchestratorAddon = class extends BaseAddon {
|
|
|
5878
5878
|
*
|
|
5879
5879
|
* Shared roots (`/recordings` hosting high + low + events) are scored by
|
|
5880
5880
|
* class subtree (`<camera>/high|mid`, `/low`, `/events`), not by a raw
|
|
5881
|
-
* `readdir` of the root — camera dirs and `.
|
|
5881
|
+
* `readdir` of the root — camera dirs and `.dominevo-location` would
|
|
5882
5882
|
* otherwise make every class look occupied. The walk stays shallow: one
|
|
5883
5883
|
* dirent per camera, then first-entry of the named subtree. A `find` of
|
|
5884
5884
|
* segments is precisely what must not happen here.
|
|
@@ -5983,7 +5983,7 @@ var StorageOrchestratorAddon = class extends BaseAddon {
|
|
|
5983
5983
|
* map is a no-op (each declared id's `<id>:default` is already in the
|
|
5984
5984
|
* service's map).
|
|
5985
5985
|
*
|
|
5986
|
-
* `basePath` is this node's data root (`ctx.nodeDataDir` = `
|
|
5986
|
+
* `basePath` is this node's data root (`ctx.nodeDataDir` = `DOMINEVO_DATA`
|
|
5987
5987
|
* ?? the kernel boot dir). Every declared default is attributed to the
|
|
5988
5988
|
* `filesystem-storage`
|
|
5989
5989
|
* provider; operators repoint individual locations (or add remote
|
|
@@ -5999,8 +5999,8 @@ var StorageOrchestratorAddon = class extends BaseAddon {
|
|
|
5999
5999
|
const registry = buildStorageLocationRegistry(perAddon);
|
|
6000
6000
|
this.service.setRegistry(registry);
|
|
6001
6001
|
this.service.pruneUndeclaredSystemLocations(unloaded);
|
|
6002
|
-
const mediaRoot = process.env.
|
|
6003
|
-
const backupRoot = process.env.
|
|
6002
|
+
const mediaRoot = process.env.DOMINEVO_MEDIA_ROOT?.trim();
|
|
6003
|
+
const backupRoot = process.env.DOMINEVO_BACKUP_ROOT?.trim();
|
|
6004
6004
|
const seedInput = {
|
|
6005
6005
|
providerId: "filesystem-storage",
|
|
6006
6006
|
basePath: this.ctx.nodeDataDir,
|
|
@@ -81,13 +81,13 @@ export interface SeedDefaultsInput {
|
|
|
81
81
|
readonly basePath: string;
|
|
82
82
|
/**
|
|
83
83
|
* Root for declarations marked `defaultRoot: 'media'` (the dedicated media
|
|
84
|
-
* volume, `
|
|
84
|
+
* volume, `DOMINEVO_MEDIA_ROOT`). Absent → media declarations fall back to
|
|
85
85
|
* `basePath` like everything else.
|
|
86
86
|
*/
|
|
87
87
|
readonly mediaBasePath?: string;
|
|
88
88
|
/**
|
|
89
89
|
* Root for declarations marked `defaultRoot: 'backup'` (the dedicated
|
|
90
|
-
* backup volume, `
|
|
90
|
+
* backup volume, `DOMINEVO_BACKUP_ROOT`, default `/backups`). Absent →
|
|
91
91
|
* backup declarations fall back to `basePath`.
|
|
92
92
|
*/
|
|
93
93
|
readonly backupBasePath?: string;
|
|
@@ -456,7 +456,7 @@ export declare class StorageOrchestratorService {
|
|
|
456
456
|
* satisfies the
|
|
457
457
|
* `^[a-z][a-z0-9-]*:[a-z0-9-]+$` regex on `StorageLocationSchema.id`.
|
|
458
458
|
*
|
|
459
|
-
* `basePath` is the storage root (e.g. `<
|
|
459
|
+
* `basePath` is the storage root (e.g. `<DOMINEVO_DATA>`). Each
|
|
460
460
|
* location's `config.basePath` is `<basePath>/<id>`, except when the
|
|
461
461
|
* declaration sets `defaultsTo` — then it inherits the resolved root of
|
|
462
462
|
* the referenced location's default instance (sharing the same root
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* AES-256-GCM(payloadKey, nonce, plaintext[≤ chunk]) ‖ tag(16)
|
|
25
25
|
*
|
|
26
26
|
* `payloadKey = HKDF-SHA256(X25519(ephemeral, recipient), salt,
|
|
27
|
-
* "
|
|
27
|
+
* "dominevo-backup-v1" ‖ header)` — the whole header is bound into the key,
|
|
28
28
|
* so a changed byte in it fails the first chunk. The nonce is an 11-byte
|
|
29
29
|
* big-endian chunk counter plus a final-chunk flag: a reordered, dropped or
|
|
30
30
|
* appended chunk fails authentication, and an archive cut at a chunk boundary
|
|
@@ -74,7 +74,7 @@ export interface OwnedDatabase {
|
|
|
74
74
|
*/
|
|
75
75
|
export declare const DEFAULT_BACKUP_DATABASES: readonly DataStoreDatabase[];
|
|
76
76
|
/** Path of the manifest file embedded inside every archive. */
|
|
77
|
-
export declare const ARCHIVE_MANIFEST_NAME = ".
|
|
77
|
+
export declare const ARCHIVE_MANIFEST_NAME = ".dominevo-backup-manifest.json";
|
|
78
78
|
export type ArchiveEntryKind = "file" | "dir" | "symlink";
|
|
79
79
|
export interface ArchiveEntry {
|
|
80
80
|
/** Path relative to the archive root (== relative to dataDir). */
|