@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
|
@@ -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). */
|
|
@@ -3,14 +3,14 @@ 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-
|
|
6
|
+
const require_base_addon = require("../../base-addon-CwtR9jMm.js");
|
|
7
|
+
const require_scoped_settings = require("../../scoped-settings-8uzhJVsE.js");
|
|
8
8
|
const require_server_name = require("../../server-name-CvPk2uYC.js");
|
|
9
9
|
const require_custom_actions = require("../../custom-actions-D92NRi2c.js");
|
|
10
10
|
const require_safe_buffer$1 = require("../../safe-buffer-D3aoa-7X.js");
|
|
11
11
|
const require_x509_es = require("../../x509.es-WtnRNyYS.js");
|
|
12
|
-
const require_hub_identity = require("../../hub-identity-
|
|
13
|
-
const require_constants$8 = require("../../constants-
|
|
12
|
+
const require_hub_identity = require("../../hub-identity-DihZeMUF.js");
|
|
13
|
+
const require_constants$8 = require("../../constants-B8umFEGY.js");
|
|
14
14
|
const require_src$1 = require("../../src-CnAqG6EF.js");
|
|
15
15
|
let zod = require("zod");
|
|
16
16
|
let node_crypto = require("node:crypto");
|
|
@@ -119,7 +119,7 @@ function createCidrMatcher(entries) {
|
|
|
119
119
|
*/
|
|
120
120
|
/**
|
|
121
121
|
* The serialisation of an opaque origin. The native app's OTA embed
|
|
122
|
-
* (`assets/embed/
|
|
122
|
+
* (`assets/embed/dominevo-embed.html`, loaded from `file://`) sends it.
|
|
123
123
|
*/
|
|
124
124
|
var OPAQUE_ORIGIN = "null";
|
|
125
125
|
/**
|
|
@@ -198,13 +198,13 @@ var InvalidCorsOriginError = class extends Error {
|
|
|
198
198
|
* operator confirmed during pairing.
|
|
199
199
|
*
|
|
200
200
|
* ticket = b64url(header) '.' b64url(payload) '.' b64url(ES256 signature)
|
|
201
|
-
* header = { alg: 'ES256', typ: '
|
|
201
|
+
* header = { alg: 'ES256', typ: 'dominevo-agent-ui-unlock+jwt' }
|
|
202
202
|
* payload = { v: 1, use: 'agent-ui-unlock', nodeId, iat (ms), exp (ms), jti }
|
|
203
203
|
*
|
|
204
204
|
* The `typ` and `use` pins keep a join token or a pairing proof (also signed
|
|
205
205
|
* by the CA key) from ever being accepted here, and the reverse.
|
|
206
206
|
*/
|
|
207
|
-
var AGENT_UI_UNLOCK_TYP = "
|
|
207
|
+
var AGENT_UI_UNLOCK_TYP = "dominevo-agent-ui-unlock+jwt";
|
|
208
208
|
var AGENT_UI_UNLOCK_USE = "agent-ui-unlock";
|
|
209
209
|
var AGENT_UI_UNLOCK_VERSION = 1;
|
|
210
210
|
/** Ticket lifetime — long enough for a redirect hop, short enough to steal poorly. */
|
|
@@ -285,7 +285,7 @@ function verifyAgentUiUnlockTicket(caCertPem, ticket, options) {
|
|
|
285
285
|
return null;
|
|
286
286
|
}
|
|
287
287
|
if (typeof header !== "object" || header === null) return null;
|
|
288
|
-
if (Reflect.get(header, "alg") !== "ES256" || Reflect.get(header, "typ") !== "
|
|
288
|
+
if (Reflect.get(header, "alg") !== "ES256" || Reflect.get(header, "typ") !== "dominevo-agent-ui-unlock+jwt") return null;
|
|
289
289
|
let valid = false;
|
|
290
290
|
try {
|
|
291
291
|
valid = (0, node_crypto.verify)("sha256", Buffer.from(`${headerB64}.${payloadB64}`, "utf8"), {
|
|
@@ -529,7 +529,7 @@ async function exportMeshPrivateKeyPem(key) {
|
|
|
529
529
|
}
|
|
530
530
|
//#endregion
|
|
531
531
|
//#region src/kernel/moleculer/mesh-mtls/mesh-ca-keeper.ts
|
|
532
|
-
var SLOT$3 = Symbol.for("
|
|
532
|
+
var SLOT$3 = Symbol.for("dominevo.mesh.ca");
|
|
533
533
|
var NOT_LOADED = {
|
|
534
534
|
state: "unavailable",
|
|
535
535
|
reason: "not-loaded"
|
|
@@ -703,7 +703,7 @@ var MeshCrl = class {
|
|
|
703
703
|
function normalizeSerial$1(serial) {
|
|
704
704
|
return serial.replace(/^0x/i, "").replace(/:/g, "").toLowerCase();
|
|
705
705
|
}
|
|
706
|
-
var SLOT$2 = Symbol.for("
|
|
706
|
+
var SLOT$2 = Symbol.for("dominevo.mesh.crl");
|
|
707
707
|
function processMeshCrl() {
|
|
708
708
|
const existing = Reflect.get(globalThis, SLOT$2);
|
|
709
709
|
if (existing instanceof MeshCrl) return existing;
|
|
@@ -1159,7 +1159,7 @@ var MeshCertificateRegistry = class {
|
|
|
1159
1159
|
}
|
|
1160
1160
|
}
|
|
1161
1161
|
};
|
|
1162
|
-
var SLOT$1 = Symbol.for("
|
|
1162
|
+
var SLOT$1 = Symbol.for("dominevo.mesh.certificate-registry");
|
|
1163
1163
|
function setProcessMeshCertificateRegistry(registry) {
|
|
1164
1164
|
if (registry === null) Reflect.deleteProperty(globalThis, SLOT$1);
|
|
1165
1165
|
else Reflect.set(globalThis, SLOT$1, registry);
|
|
@@ -1170,7 +1170,7 @@ function getProcessMeshCertificateRegistry() {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
//#endregion
|
|
1172
1172
|
//#region src/kernel/moleculer/mesh-mtls/mesh-tls-gate.ts
|
|
1173
|
-
var STATE_SLOT = Symbol.for("
|
|
1173
|
+
var STATE_SLOT = Symbol.for("dominevo.mesh.tls-listener-state");
|
|
1174
1174
|
function setProcessMeshTlsListenerState(state) {
|
|
1175
1175
|
if (state === null) Reflect.deleteProperty(globalThis, STATE_SLOT);
|
|
1176
1176
|
else Reflect.set(globalThis, STATE_SLOT, state);
|
|
@@ -1456,7 +1456,7 @@ async function revokeMeshCertificate(deps) {
|
|
|
1456
1456
|
}
|
|
1457
1457
|
//#endregion
|
|
1458
1458
|
//#region src/kernel/moleculer/mesh-mtls/mesh-peer-transport.ts
|
|
1459
|
-
var LOOKUP_SLOT = Symbol.for("
|
|
1459
|
+
var LOOKUP_SLOT = Symbol.for("dominevo.cluster.mesh-peer-transport-lookup");
|
|
1460
1460
|
/** Published by the hub broker owner; cleared on shutdown. */
|
|
1461
1461
|
function setProcessMeshPeerTransportLookup(lookup) {
|
|
1462
1462
|
if (lookup === null) Reflect.deleteProperty(globalThis, LOOKUP_SLOT);
|
|
@@ -1485,7 +1485,7 @@ function isProcessVerifiedMeshPeer(nodeId) {
|
|
|
1485
1485
|
function dropProcessPeer(nodeId) {
|
|
1486
1486
|
return getProcessMeshPeerTransportLookup()?.dropPeer?.(nodeId) ?? 0;
|
|
1487
1487
|
}
|
|
1488
|
-
var REGISTRATION_SLOT = Symbol.for("
|
|
1488
|
+
var REGISTRATION_SLOT = Symbol.for("dominevo.cluster.node-registration-listeners");
|
|
1489
1489
|
function registrationListeners() {
|
|
1490
1490
|
const existing = Reflect.get(globalThis, REGISTRATION_SLOT);
|
|
1491
1491
|
if (existing instanceof Set) return existing;
|
|
@@ -1511,7 +1511,7 @@ function emitProcessNodeRegistered(nodeId, addonIds) {
|
|
|
1511
1511
|
listener(nodeId, addonIds);
|
|
1512
1512
|
} catch {}
|
|
1513
1513
|
}
|
|
1514
|
-
var REPORTER_SLOT = Symbol.for("
|
|
1514
|
+
var REPORTER_SLOT = Symbol.for("dominevo.cluster.mesh-handshake-reporter");
|
|
1515
1515
|
function setProcessMeshHandshakeReporter(reporter) {
|
|
1516
1516
|
if (reporter === null) Reflect.deleteProperty(globalThis, REPORTER_SLOT);
|
|
1517
1517
|
else Reflect.set(globalThis, REPORTER_SLOT, reporter);
|
|
@@ -1525,7 +1525,7 @@ function getProcessMeshHandshakeReporter() {
|
|
|
1525
1525
|
}
|
|
1526
1526
|
//#endregion
|
|
1527
1527
|
//#region src/kernel/moleculer/mesh-mtls/mesh-tls-enabler.ts
|
|
1528
|
-
var SLOT = Symbol.for("
|
|
1528
|
+
var SLOT = Symbol.for("dominevo.mesh.tls-enabler");
|
|
1529
1529
|
function setProcessMeshTlsEnabler(enabler) {
|
|
1530
1530
|
if (enabler === null) Reflect.deleteProperty(globalThis, SLOT);
|
|
1531
1531
|
else Reflect.set(globalThis, SLOT, enabler);
|
|
@@ -87496,7 +87496,7 @@ function isTlsSocket(socket) {
|
|
|
87496
87496
|
* the agent signs `proofInput(nodeId, nonce)` with its LEAF's private key, so only the holder
|
|
87497
87497
|
* of a key the hub's CA certified for `nodeId` is answered; anything else is `401` and learns
|
|
87498
87498
|
* nothing (not even whether the node id exists).
|
|
87499
|
-
* 3. The answer is a JWS signed by the MESH CA key (`typ:
|
|
87499
|
+
* 3. The answer is a JWS signed by the MESH CA key (`typ: dominevo-mesh-membership+jwt`), bound to
|
|
87500
87500
|
* the nonce and the leaf fingerprint, so a man in the middle cannot forge "revoked" - the agent
|
|
87501
87501
|
* verifies it with the CA it pinned at pairing. The hub's HTTPS certificate is not trusted for it.
|
|
87502
87502
|
*
|
|
@@ -87509,14 +87509,14 @@ var MEMBERSHIP_PATHS = {
|
|
|
87509
87509
|
challenge: "/api/mesh/membership/challenge",
|
|
87510
87510
|
query: "/api/mesh/membership"
|
|
87511
87511
|
};
|
|
87512
|
-
var MEMBERSHIP_TYP = "
|
|
87512
|
+
var MEMBERSHIP_TYP = "dominevo-mesh-membership+jwt";
|
|
87513
87513
|
var MEMBERSHIP_USE = "mesh-membership";
|
|
87514
87514
|
var MEMBERSHIP_VERSION = 1;
|
|
87515
87515
|
/** A challenge nonce, and an answer, are good for this long. */
|
|
87516
87516
|
var MEMBERSHIP_TTL_MS = 6e4;
|
|
87517
87517
|
/** Challenges held at once; the oldest is dropped past this (an unauthenticated route stays bounded). */
|
|
87518
87518
|
var MAX_PENDING_CHALLENGES = 1024;
|
|
87519
|
-
var PROOF_CONTEXT = "
|
|
87519
|
+
var PROOF_CONTEXT = "dominevo-mesh-membership-v1";
|
|
87520
87520
|
/** What the agent signs with its leaf key: bound to this node and this nonce only. */
|
|
87521
87521
|
function membershipProofInput(nodeId, nonce) {
|
|
87522
87522
|
return Buffer.from(`${PROOF_CONTEXT}\n${nodeId}\n${nonce}`, "utf8");
|
|
@@ -87580,7 +87580,7 @@ function verifyMembershipAnswer(caCertPem, token, options) {
|
|
|
87580
87580
|
return null;
|
|
87581
87581
|
}
|
|
87582
87582
|
if (typeof header !== "object" || header === null) return null;
|
|
87583
|
-
if (Reflect.get(header, "alg") !== "ES256" || Reflect.get(header, "typ") !== "
|
|
87583
|
+
if (Reflect.get(header, "alg") !== "ES256" || Reflect.get(header, "typ") !== "dominevo-mesh-membership+jwt") return null;
|
|
87584
87584
|
let valid = false;
|
|
87585
87585
|
try {
|
|
87586
87586
|
valid = (0, node_crypto.verify)("sha256", Buffer.from(`${headerB64}.${payloadB64}`, "utf8"), {
|
|
@@ -87743,10 +87743,10 @@ var MembershipResponder = class {
|
|
|
87743
87743
|
* confirmed — never with one that arrives in the same message.
|
|
87744
87744
|
*/
|
|
87745
87745
|
var PAIRING_PROTOCOL = 1;
|
|
87746
|
-
var PAIRING_DOMAIN = "
|
|
87747
|
-
var PAIRING_PROOF_TYP = "
|
|
87746
|
+
var PAIRING_DOMAIN = "dominevo-pairing/v1";
|
|
87747
|
+
var PAIRING_PROOF_TYP = "dominevo-pairing-complete+jwt";
|
|
87748
87748
|
var PAIRING_PROOF_USE = "pairing-complete";
|
|
87749
|
-
var PAIRING_OFFER_TYP = "
|
|
87749
|
+
var PAIRING_OFFER_TYP = "dominevo-pairing-offer+jwt";
|
|
87750
87750
|
var PAIRING_OFFER_USE = "pairing-offer";
|
|
87751
87751
|
/** An offer signature older than this (or from further ahead than 60 s) is refused. */
|
|
87752
87752
|
var PAIRING_OFFER_MAX_AGE_MS = 2 * 6e4;
|
|
@@ -87859,7 +87859,7 @@ function verifyPairingProof(caCertPem, proof) {
|
|
|
87859
87859
|
return null;
|
|
87860
87860
|
}
|
|
87861
87861
|
if (header === null || typeof header !== "object") return null;
|
|
87862
|
-
if (Reflect.get(header, "alg") !== "ES256" || Reflect.get(header, "typ") !== "
|
|
87862
|
+
if (Reflect.get(header, "alg") !== "ES256" || Reflect.get(header, "typ") !== "dominevo-pairing-complete+jwt") return null;
|
|
87863
87863
|
let valid = false;
|
|
87864
87864
|
try {
|
|
87865
87865
|
valid = (0, node_crypto.verify)("sha256", Buffer.from(`${headerB64}.${payloadB64}`, "utf8"), {
|
|
@@ -87934,7 +87934,7 @@ function verifyPairingOffer(caCertPem, token) {
|
|
|
87934
87934
|
return null;
|
|
87935
87935
|
}
|
|
87936
87936
|
if (header === null || typeof header !== "object") return null;
|
|
87937
|
-
if (Reflect.get(header, "alg") !== "ES256" || Reflect.get(header, "typ") !== "
|
|
87937
|
+
if (Reflect.get(header, "alg") !== "ES256" || Reflect.get(header, "typ") !== "dominevo-pairing-offer+jwt") return null;
|
|
87938
87938
|
let valid = false;
|
|
87939
87939
|
try {
|
|
87940
87940
|
valid = (0, node_crypto.verify)("sha256", Buffer.from(`${headerB64}.${payloadB64}`, "utf8"), {
|
|
@@ -88991,7 +88991,7 @@ var MESH_REAP_MS = 24 * 36e5;
|
|
|
88991
88991
|
* state of their own (the session token lifetime).
|
|
88992
88992
|
*
|
|
88993
88993
|
* Sections exposed — this list is the whole of it:
|
|
88994
|
-
* - server (port, host, dataPath — READ-ONLY, set by
|
|
88994
|
+
* - server (port, host, dataPath — READ-ONLY, set by DOMINEVO_PORT / DOMINEVO_HOST / DOMINEVO_DATA;
|
|
88995
88995
|
* name = the hub's human name, `server.name`, editable — D861)
|
|
88996
88996
|
* - auth (tokenExpiry = session lifetime, accessTokenExpiry, trustedProxies,
|
|
88997
88997
|
* trustedNetworks, corsOrigins)
|
|
@@ -89020,7 +89020,7 @@ var MESH_REAP_MS = 24 * 36e5;
|
|
|
89020
89020
|
* surface" addon — its sole purpose is to expose the yml sections
|
|
89021
89021
|
* through the new three-level settings API.
|
|
89022
89022
|
*
|
|
89023
|
-
* This addon is declared in `@dominevo/server/system`'s package.json `
|
|
89023
|
+
* This addon is declared in `@dominevo/server/system`'s package.json `dominevo.addons[]`
|
|
89024
89024
|
* and loaded automatically via AddonLoader like any other core built-in.
|
|
89025
89025
|
*/
|
|
89026
89026
|
/** Section key → user-facing section title. */
|
|
@@ -89272,7 +89272,7 @@ var SystemConfigAddon = class extends require_base_addon.BaseAddon {
|
|
|
89272
89272
|
key: "server-restart-note",
|
|
89273
89273
|
label: "Restart required",
|
|
89274
89274
|
labelKey: "server:global.s_system-config-server.server-restart-note.label",
|
|
89275
|
-
content: "Port, host and data path are read-only: set the environment variables
|
|
89275
|
+
content: "Port, host and data path are read-only: set the environment variables DOMINEVO_PORT, DOMINEVO_HOST and DOMINEVO_DATA, then restart.",
|
|
89276
89276
|
variant: "warning"
|
|
89277
89277
|
},
|
|
89278
89278
|
{
|
|
@@ -89280,7 +89280,7 @@ var SystemConfigAddon = class extends require_base_addon.BaseAddon {
|
|
|
89280
89280
|
key: "port",
|
|
89281
89281
|
label: "Port",
|
|
89282
89282
|
labelKey: "server:global.s_system-config-server.port.label",
|
|
89283
|
-
description: "Listening port (
|
|
89283
|
+
description: "Listening port (DOMINEVO_PORT)",
|
|
89284
89284
|
descriptionKey: "server:global.s_system-config-server.port.description",
|
|
89285
89285
|
disabled: true
|
|
89286
89286
|
},
|
|
@@ -89289,7 +89289,7 @@ var SystemConfigAddon = class extends require_base_addon.BaseAddon {
|
|
|
89289
89289
|
key: "host",
|
|
89290
89290
|
label: "Host",
|
|
89291
89291
|
labelKey: "server:global.s_system-config-server.host.label",
|
|
89292
|
-
description: "Bind address (
|
|
89292
|
+
description: "Bind address (DOMINEVO_HOST)",
|
|
89293
89293
|
descriptionKey: "server:global.s_system-config-server.host.description",
|
|
89294
89294
|
disabled: true
|
|
89295
89295
|
},
|
|
@@ -89298,7 +89298,7 @@ var SystemConfigAddon = class extends require_base_addon.BaseAddon {
|
|
|
89298
89298
|
key: "dataPath",
|
|
89299
89299
|
label: "Data Path",
|
|
89300
89300
|
labelKey: "server:global.s_system-config-server.dataPath.label",
|
|
89301
|
-
description: "Root data directory (
|
|
89301
|
+
description: "Root data directory (DOMINEVO_DATA)",
|
|
89302
89302
|
descriptionKey: "server:global.s_system-config-server.dataPath.description",
|
|
89303
89303
|
disabled: true,
|
|
89304
89304
|
span: 2
|