@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
|
@@ -411,13 +411,13 @@ var execFileAsync$2 = promisify(execFile);
|
|
|
411
411
|
* installer) pass their own.
|
|
412
412
|
*/
|
|
413
413
|
function defaultNpmCacheDir() {
|
|
414
|
-
return path.join(os.tmpdir(), "
|
|
414
|
+
return path.join(os.tmpdir(), "dominevo-npm-bootstrap");
|
|
415
415
|
}
|
|
416
416
|
/**
|
|
417
417
|
* Native node modules an addon needs at runtime but cannot be bundled
|
|
418
418
|
* (`.node` binary files require ABI-matched compilation). Mirror of the
|
|
419
419
|
* Python `requirements.txt` pattern in `manifest-python-deps.ts` —
|
|
420
|
-
* declared in the addon's `package.json` under `
|
|
420
|
+
* declared in the addon's `package.json` under `dominevo.nativeDependencies`,
|
|
421
421
|
* installed per-addon at install time so the host's regular `npm install`
|
|
422
422
|
* doesn't pull in the union of every camera driver's native deps.
|
|
423
423
|
*
|
|
@@ -425,7 +425,7 @@ function defaultNpmCacheDir() {
|
|
|
425
425
|
* (`docs/superpowers/specs/2026-05-09-bundles-and-builder-modernization-design.md`).
|
|
426
426
|
*
|
|
427
427
|
* Idempotent: hashes the `nativeDependencies` map and writes a marker
|
|
428
|
-
* to `<addonDir>/.
|
|
428
|
+
* to `<addonDir>/.dominevo-native-deps-installed`. Re-installing only
|
|
429
429
|
* happens when the declared set changes.
|
|
430
430
|
*
|
|
431
431
|
* Failure modes:
|
|
@@ -439,7 +439,7 @@ function defaultNpmCacheDir() {
|
|
|
439
439
|
async function installManifestNativeDeps(addonDir, pkgRaw, logger, registry, npmCacheDir) {
|
|
440
440
|
const native = readNativeDeps(pkgRaw);
|
|
441
441
|
if (native == null || Object.keys(native).length === 0) return;
|
|
442
|
-
const markerFile = path.join(addonDir, ".
|
|
442
|
+
const markerFile = path.join(addonDir, ".dominevo-native-deps-installed");
|
|
443
443
|
const markerHash = hashDeclaration(native);
|
|
444
444
|
if (markerMatches(markerFile, markerHash)) {
|
|
445
445
|
logger.debug("Native deps already installed (marker matches)", { meta: {
|
|
@@ -565,11 +565,11 @@ function candidateHoistedDirs(name, addonDir) {
|
|
|
565
565
|
}
|
|
566
566
|
return dirs;
|
|
567
567
|
}
|
|
568
|
-
/** Read & validate `
|
|
568
|
+
/** Read & validate `dominevo.nativeDependencies`. Returns null when absent. */
|
|
569
569
|
function readNativeDeps(pkgRaw) {
|
|
570
|
-
const
|
|
571
|
-
if (!
|
|
572
|
-
const native = asJsonObject(
|
|
570
|
+
const dominevo = asJsonObject(pkgRaw["dominevo"]);
|
|
571
|
+
if (!dominevo) return null;
|
|
572
|
+
const native = asJsonObject(dominevo["nativeDependencies"]);
|
|
573
573
|
if (!native) return null;
|
|
574
574
|
const out = {};
|
|
575
575
|
for (const [k, v] of Object.entries(native)) {
|
|
@@ -669,7 +669,7 @@ async function rebuildNativeDeps(addonDir, packageNames, logger, npmCacheDir, re
|
|
|
669
669
|
//#region src/kernel/deps/manifest-python-deps.ts
|
|
670
670
|
/**
|
|
671
671
|
* Auto-install the pip requirements file declared in an addon's manifest
|
|
672
|
-
* (`
|
|
672
|
+
* (`dominevo.addons[].python.requirements`) into the embedded portable
|
|
673
673
|
* Python before `onInitialize()` runs.
|
|
674
674
|
*
|
|
675
675
|
* Idempotent: `installPythonRequirements` skips when the file's content
|
|
@@ -717,7 +717,7 @@ function packageIsAllowlisted(manager, packageName) {
|
|
|
717
717
|
* Who is allowed to run the package manager for this request.
|
|
718
718
|
*
|
|
719
719
|
* Apt/apk/dnf need root. In the Dominevo container that is the
|
|
720
|
-
* `
|
|
720
|
+
* `dominevo-pkgd` helper, not the runner and not hub-main (both uid
|
|
721
721
|
* 1001). Brew is owned by the logged-in user, so it stays in-process.
|
|
722
722
|
*/
|
|
723
723
|
function decidePackageInstall(input) {
|
|
@@ -733,7 +733,7 @@ function decidePackageInstall(input) {
|
|
|
733
733
|
return { kind: "helper" };
|
|
734
734
|
}
|
|
735
735
|
function pkgdSocketPath() {
|
|
736
|
-
return process.env["
|
|
736
|
+
return process.env["DOMINEVO_PKGD_SOCKET"] ?? "/run/dominevo/pkgd.sock";
|
|
737
737
|
}
|
|
738
738
|
function privilegedHelperAvailable(socketPath = pkgdSocketPath()) {
|
|
739
739
|
return existsSync(socketPath);
|
|
@@ -802,10 +802,10 @@ function requestPrivilegedInstall(req, socketPath = pkgdSocketPath(), timeoutMs
|
|
|
802
802
|
//#region src/kernel/deps/manifest-system-deps.ts
|
|
803
803
|
/**
|
|
804
804
|
* Auto-install the host binaries declared in an addon's manifest
|
|
805
|
-
* (`
|
|
805
|
+
* (`dominevo.addons[].systemDependencies`) before `onInitialize()` runs.
|
|
806
806
|
*
|
|
807
807
|
* ── Why this is framework and not addon-local ──────────────────────────────
|
|
808
|
-
* The Python precedent (`
|
|
808
|
+
* The Python precedent (`dominevo.addons[].python.requirements` →
|
|
809
809
|
* `installManifestPythonDeps`, called from the same place in
|
|
810
810
|
* `addon-runner.ts`) already answers "this addon needs something installed,
|
|
811
811
|
* satisfy it before its caps register". A binary is the same question with a
|
|
@@ -831,7 +831,7 @@ function requestPrivilegedInstall(req, socketPath = pkgdSocketPath(), timeoutMs
|
|
|
831
831
|
* "installed".
|
|
832
832
|
* 5. **Apt is not the runner's.** Distro package managers need root. The
|
|
833
833
|
* runner and hub-main are uid 1001 (`gosu` in the entrypoint). Apt/apk/dnf
|
|
834
|
-
* go through `
|
|
834
|
+
* go through `dominevo-pkgd` (allowlisted). Brew stays in-process.
|
|
835
835
|
*
|
|
836
836
|
* Every branch that declines to install SAYS SO. A dependency step that
|
|
837
837
|
* produced no line at all is indistinguishable from one that never ran, and
|
|
@@ -2429,7 +2429,7 @@ function createLoopDelayMeter(resolutionMs = 20) {
|
|
|
2429
2429
|
* hub-main is the only process in the cluster whose ceiling nobody chose. Every
|
|
2430
2430
|
* forked runner is given V8 heap flags by `process-service.ts`; hub-main gets
|
|
2431
2431
|
* `--max-old-space-size` from `docker-entrypoint.sh` ONLY when the operator sets
|
|
2432
|
-
* `
|
|
2432
|
+
* `DOMINEVO_HUB_HEAP_MB`, and on the live container it is unset — verified
|
|
2433
2433
|
* 2026-08-25 by reading pid 7's argv, a bare `node .../starter.js`. So the
|
|
2434
2434
|
* ceiling in force is whatever V8 derives from the host (4288MB there), and the
|
|
2435
2435
|
* only record of that was a comment inside an image nobody rebuilds to read.
|
|
@@ -2441,7 +2441,7 @@ function heapCeilingOrigin(execArgv = process.execArgv) {
|
|
|
2441
2441
|
return execArgv.some((arg) => /^--max[-_]old[-_]space[-_]size(=|$)/.test(arg)) ? "explicit" : "v8-default";
|
|
2442
2442
|
}
|
|
2443
2443
|
/** Env var the launch-args module hands the node: who chose its heap ceiling. */
|
|
2444
|
-
var HEAP_CEILING_SOURCE_ENV = "
|
|
2444
|
+
var HEAP_CEILING_SOURCE_ENV = "DOMINEVO_HEAP_CEILING_SOURCE";
|
|
2445
2445
|
var LAUNCHER_SOURCES = new Set([
|
|
2446
2446
|
"override",
|
|
2447
2447
|
"legacy-env",
|
|
@@ -2840,7 +2840,7 @@ function parseRssBudgetMb(raw) {
|
|
|
2840
2840
|
return Math.floor(parsed);
|
|
2841
2841
|
}
|
|
2842
2842
|
/** Env var carrying a runner's declared RSS budget from parent to child. */
|
|
2843
|
-
var RUNNER_RSS_BUDGET_ENV = "
|
|
2843
|
+
var RUNNER_RSS_BUDGET_ENV = "DOMINEVO_RUNNER_RSS_BUDGET_MB";
|
|
2844
2844
|
/**
|
|
2845
2845
|
* Start the heap watch + stranded-page reclaimer for ONE addon runner, iff it
|
|
2846
2846
|
* is a heavy one. Returns the stop function, or undefined when nothing started.
|
|
@@ -3073,8 +3073,8 @@ function liftRoutingHints(args) {
|
|
|
3073
3073
|
*/
|
|
3074
3074
|
function localEndpointPath(nodeId) {
|
|
3075
3075
|
const safe = nodeId.replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
3076
|
-
if (process.platform === "win32") return `\\\\.\\pipe\\
|
|
3077
|
-
return join(tmpdir(), `
|
|
3076
|
+
if (process.platform === "win32") return `\\\\.\\pipe\\dominevo-${safe}`;
|
|
3077
|
+
return join(tmpdir(), `dominevo-${safe}.sock`);
|
|
3078
3078
|
}
|
|
3079
3079
|
//#endregion
|
|
3080
3080
|
//#region ../../node_modules/@msgpack/msgpack/dist.esm/utils/utf8.mjs
|
|
@@ -4877,7 +4877,7 @@ var UdsLocalTransportClient = class {
|
|
|
4877
4877
|
/**
|
|
4878
4878
|
* The extension seam. UDS is the only shipped implementation; a future
|
|
4879
4879
|
* transport implements `LocalTransportFactory` and is selected here (e.g. via
|
|
4880
|
-
* a `
|
|
4880
|
+
* a `DOMINEVO_LOCAL_TRANSPORT` env) without touching any consumer.
|
|
4881
4881
|
*/
|
|
4882
4882
|
function createLocalTransport() {
|
|
4883
4883
|
return {
|
|
@@ -9604,13 +9604,13 @@ function createAddonPeerBytesFacility(args) {
|
|
|
9604
9604
|
const offer = offers.get(token);
|
|
9605
9605
|
if (offer === void 0) {
|
|
9606
9606
|
const status = taken.has(token) ? 410 : 404;
|
|
9607
|
-
res.writeHead(status, { "x-
|
|
9607
|
+
res.writeHead(status, { "x-dominevo-peer-bytes": status === 410 ? "offer-used" : "no-offer" });
|
|
9608
9608
|
res.end();
|
|
9609
9609
|
return;
|
|
9610
9610
|
}
|
|
9611
9611
|
if (offer.expiresAtMs <= now()) {
|
|
9612
9612
|
offers.delete(token);
|
|
9613
|
-
res.writeHead(410, { "x-
|
|
9613
|
+
res.writeHead(410, { "x-dominevo-peer-bytes": "offer-expired" }).end();
|
|
9614
9614
|
return;
|
|
9615
9615
|
}
|
|
9616
9616
|
if (req.method === "GET") {
|
|
@@ -9818,7 +9818,7 @@ function createAddonPeerBytesFacility(args) {
|
|
|
9818
9818
|
error: detail
|
|
9819
9819
|
}
|
|
9820
9820
|
});
|
|
9821
|
-
if (!res.headersSent) res.writeHead(503, { "x-
|
|
9821
|
+
if (!res.headersSent) res.writeHead(503, { "x-dominevo-peer-bytes": "file-unreadable" });
|
|
9822
9822
|
res.end();
|
|
9823
9823
|
return;
|
|
9824
9824
|
}
|
|
@@ -9943,7 +9943,7 @@ function createAddonPeerBytesFacility(args) {
|
|
|
9943
9943
|
response.pause();
|
|
9944
9944
|
const status = response.statusCode ?? 0;
|
|
9945
9945
|
if (status < 200 || status >= 300) {
|
|
9946
|
-
const reason = response.headers["x-
|
|
9946
|
+
const reason = response.headers["x-dominevo-peer-bytes"];
|
|
9947
9947
|
response.resume();
|
|
9948
9948
|
req.destroy();
|
|
9949
9949
|
return {
|
|
@@ -10068,7 +10068,7 @@ function createAddonPeerBytesFacility(args) {
|
|
|
10068
10068
|
* in 2026-05 specifically to break that cycle.
|
|
10069
10069
|
*
|
|
10070
10070
|
* Shared per-node store (2026-06): base binaries (Python, ffmpeg, downloaded
|
|
10071
|
-
* tools) are resolved into the NODE data dir (`
|
|
10071
|
+
* tools) are resolved into the NODE data dir (`DOMINEVO_DATA`), not the
|
|
10072
10072
|
* per-addon dir. Every addon on a node reuses one copy instead of downloading
|
|
10073
10073
|
* its own. Because addons run as separate processes that now share one deps
|
|
10074
10074
|
* dir, resolution is guarded by a single-flight (in-process promise cache +
|
|
@@ -10077,7 +10077,7 @@ function createAddonPeerBytesFacility(args) {
|
|
|
10077
10077
|
*/
|
|
10078
10078
|
/** Resolve the node-wide data root (shared by all addon processes on a node). */
|
|
10079
10079
|
function resolveNodeRoot() {
|
|
10080
|
-
return process.env["
|
|
10080
|
+
return process.env["DOMINEVO_DATA"] ?? process.env["DOMINEVO_DATA_DIR"] ?? "dominevo-data";
|
|
10081
10081
|
}
|
|
10082
10082
|
var inFlight = /* @__PURE__ */ new Map();
|
|
10083
10083
|
var LOCK_STALE_MS = 10 * 6e4;
|
|
@@ -10158,7 +10158,7 @@ var AddonDepsManager = class {
|
|
|
10158
10158
|
}
|
|
10159
10159
|
/**
|
|
10160
10160
|
* The native library a requirements file says its packages need
|
|
10161
|
-
* (`#
|
|
10161
|
+
* (`# dominevo-native-dep: edgetpu-delegate`), staged under this node's
|
|
10162
10162
|
* deps dir. Runs on every call — not only the first pip install — so a
|
|
10163
10163
|
* node whose pip marker predates the line still gets the library. A
|
|
10164
10164
|
* platform without a build answers `unavailable` (logged, not thrown); a
|
|
@@ -10179,12 +10179,12 @@ function asBrokerLike(broker) {
|
|
|
10179
10179
|
return broker;
|
|
10180
10180
|
}
|
|
10181
10181
|
/**
|
|
10182
|
-
* Topic prefix for clustered EventBus broadcasts. The `
|
|
10182
|
+
* Topic prefix for clustered EventBus broadcasts. The `dominevo.evt.`
|
|
10183
10183
|
* namespace keeps our events disjoint from Moleculer internal events
|
|
10184
10184
|
* (`$node.*`, `$services.*`) — the `$event-bus` service's
|
|
10185
|
-
* `
|
|
10185
|
+
* `dominevo.evt.**` wildcard handler therefore never sees them.
|
|
10186
10186
|
*/
|
|
10187
|
-
var EVENT_TOPIC_PREFIX = "
|
|
10187
|
+
var EVENT_TOPIC_PREFIX = "dominevo.evt.";
|
|
10188
10188
|
/** Moleculer event-name wildcard the `$event-bus` service subscribes to. */
|
|
10189
10189
|
var EVENT_TOPIC_WILDCARD = `${EVENT_TOPIC_PREFIX}**`;
|
|
10190
10190
|
/** Build the Moleculer broadcast topic for an event category. */
|
|
@@ -10342,8 +10342,8 @@ function acceptInboundCrossNode(broker, category) {
|
|
|
10342
10342
|
* a post-start `createService` propagates via the ~10s heartbeat and
|
|
10343
10343
|
* makes cross-node delivery unreliable in the meantime.
|
|
10344
10344
|
*
|
|
10345
|
-
* The service's single wildcard handler (`
|
|
10346
|
-
* inbound bridge: every `broker.broadcast('
|
|
10345
|
+
* The service's single wildcard handler (`dominevo.evt.**`) is the
|
|
10346
|
+
* inbound bridge: every `broker.broadcast('dominevo.evt.<cat>', event)`
|
|
10347
10347
|
* from any node lands here. Self-origin echoes are dropped (the
|
|
10348
10348
|
* emitting node already delivered synchronously in `emit`).
|
|
10349
10349
|
*
|
|
@@ -11406,10 +11406,10 @@ function runtimeNodeId(runtime) {
|
|
|
11406
11406
|
return runtime.mode === "broker" ? asBrokerLike(runtime.broker).nodeID : runtime.nodeId;
|
|
11407
11407
|
}
|
|
11408
11408
|
/**
|
|
11409
|
-
* Adapt a Moleculer ServiceBroker to the
|
|
11409
|
+
* Adapt a Moleculer ServiceBroker to the dominevo-types `IClusterBroker`
|
|
11410
11410
|
* structural interface so addons can consume cluster-level RPC without
|
|
11411
11411
|
* pulling a moleculer dependency. Method signatures differ slightly
|
|
11412
|
-
* (Moleculer's overloads are wider than the
|
|
11412
|
+
* (Moleculer's overloads are wider than the dominevo contract), so we
|
|
11413
11413
|
* forward through a thin object instead of casting at the boundary.
|
|
11414
11414
|
*/
|
|
11415
11415
|
function adaptBrokerToCluster(broker) {
|
|
@@ -11513,7 +11513,7 @@ async function createUdsAddonContext(client, nodeId, declaration, dataDir, optio
|
|
|
11513
11513
|
async function buildAddonContext(runtime, declaration, dataDir, options) {
|
|
11514
11514
|
const nodeId = runtimeNodeId(runtime);
|
|
11515
11515
|
const addonId = declaration.id;
|
|
11516
|
-
const nodeDataDir = process.env["
|
|
11516
|
+
const nodeDataDir = process.env["DOMINEVO_DATA"] ?? dataDir;
|
|
11517
11517
|
const addonDataDir = path.resolve(nodeDataDir, "addons-data", addonId);
|
|
11518
11518
|
fs$1.mkdirSync(addonDataDir, { recursive: true });
|
|
11519
11519
|
if (runtime.mode === "broker") ensureBindingSubscription(runtime.broker);
|
|
@@ -12327,7 +12327,7 @@ async function runWorkerDeviceRestoreWithRetry(addon, context, addonId, sourceNo
|
|
|
12327
12327
|
* zero exceptions (D2/D9). The media-pipeline co-location group was
|
|
12328
12328
|
* dissolved by Phase 5 once frames and audio chunks became serialisable
|
|
12329
12329
|
* (shm `FrameHandle`s / tRPC), so no addon declares `execution.group`
|
|
12330
|
-
* and `
|
|
12330
|
+
* and `DOMINEVO_RUNNER_ADDONS` always carries a single element. The
|
|
12331
12331
|
* runner still accepts a multi-element array structurally — that is a
|
|
12332
12332
|
* mechanism, not a policy; no manifest exercises it.
|
|
12333
12333
|
*
|
|
@@ -12354,12 +12354,12 @@ async function runWorkerDeviceRestoreWithRetry(addon, context, addonId, sourceNo
|
|
|
12354
12354
|
* connect, so init-time logs/events are preserved.
|
|
12355
12355
|
*
|
|
12356
12356
|
* Environment variables:
|
|
12357
|
-
* -
|
|
12358
|
-
* -
|
|
12359
|
-
* -
|
|
12360
|
-
* -
|
|
12361
|
-
* -
|
|
12362
|
-
* -
|
|
12357
|
+
* - DOMINEVO_RUNNER_ID — runner label (becomes the nodeID suffix)
|
|
12358
|
+
* - DOMINEVO_RUNNER_ADDONS — JSON array of `{ addonId, addonDir }`
|
|
12359
|
+
* - DOMINEVO_PARENT_NODE_ID — hub or agent nodeID
|
|
12360
|
+
* - DOMINEVO_PARENT_UDS_PATH — REQUIRED: the parent's UDS endpoint
|
|
12361
|
+
* - DOMINEVO_DATA_DIR — addon data root (default ./dominevo-data)
|
|
12362
|
+
* - DOMINEVO_LOG_LEVEL — log level (default debug)
|
|
12363
12363
|
*
|
|
12364
12364
|
* Exits non-zero on fatal init failures so the parent process supervisor
|
|
12365
12365
|
* can respawn. Graceful SIGTERM/SIGINT triggers `addon.shutdown()` for
|
|
@@ -12373,17 +12373,17 @@ process.on("unhandledRejection", (reason) => {
|
|
|
12373
12373
|
console.error(`[addon-runner CRASH] unhandledRejection: ${errMsg(reason)}\n${reason instanceof Error ? reason.stack ?? "" : ""}`);
|
|
12374
12374
|
});
|
|
12375
12375
|
process.on("exit", (code) => {
|
|
12376
|
-
console.error(`[addon-runner EXIT] code=${String(code)} nodeId=${process.env["
|
|
12376
|
+
console.error(`[addon-runner EXIT] code=${String(code)} nodeId=${process.env["DOMINEVO_RUNNER_ID"] ?? "?"}`);
|
|
12377
12377
|
});
|
|
12378
12378
|
for (const sig of [
|
|
12379
12379
|
"SIGTERM",
|
|
12380
12380
|
"SIGINT",
|
|
12381
12381
|
"SIGHUP"
|
|
12382
12382
|
]) process.on(sig, () => {
|
|
12383
|
-
console.error(`[addon-runner SIGNAL] received ${sig} nodeId=${process.env["
|
|
12383
|
+
console.error(`[addon-runner SIGNAL] received ${sig} nodeId=${process.env["DOMINEVO_RUNNER_ID"] ?? "?"}`);
|
|
12384
12384
|
});
|
|
12385
12385
|
startRunnerParentDeathWatchdog(() => {
|
|
12386
|
-
console.error(`[addon-runner] "${process.env["
|
|
12386
|
+
console.error(`[addon-runner] "${process.env["DOMINEVO_RUNNER_ID"] ?? "?"}" parent died — killing its process group`);
|
|
12387
12387
|
if (!killOwnRunnerGroupAfterParentLoss()) process.exit(0);
|
|
12388
12388
|
});
|
|
12389
12389
|
function isRecord(value) {
|
|
@@ -12395,9 +12395,9 @@ function parseAddonsSpec(raw) {
|
|
|
12395
12395
|
try {
|
|
12396
12396
|
parsed = JSON.parse(raw);
|
|
12397
12397
|
} catch (err) {
|
|
12398
|
-
throw new Error(`[addon-runner]
|
|
12398
|
+
throw new Error(`[addon-runner] DOMINEVO_RUNNER_ADDONS is not valid JSON: ${errMsg(err)}`, { cause: err });
|
|
12399
12399
|
}
|
|
12400
|
-
if (!Array.isArray(parsed)) throw new Error(`[addon-runner]
|
|
12400
|
+
if (!Array.isArray(parsed)) throw new Error(`[addon-runner] DOMINEVO_RUNNER_ADDONS must be a JSON array`);
|
|
12401
12401
|
const specs = [];
|
|
12402
12402
|
for (const entry of parsed) {
|
|
12403
12403
|
if (!isRecord(entry)) throw new Error(`[addon-runner] addon spec is not an object: ${JSON.stringify(entry)}`);
|
|
@@ -12414,7 +12414,7 @@ function parseAddonsSpec(raw) {
|
|
|
12414
12414
|
async function loadAddonModule(addonId, addonDir) {
|
|
12415
12415
|
const pkgJsonPath = path.join(addonDir, "package.json");
|
|
12416
12416
|
if (!fs$1.existsSync(pkgJsonPath)) throw new Error(`No package.json at ${addonDir}`);
|
|
12417
|
-
const declaration = JSON.parse(fs$1.readFileSync(pkgJsonPath, "utf-8"))["
|
|
12417
|
+
const declaration = JSON.parse(fs$1.readFileSync(pkgJsonPath, "utf-8"))["dominevo"]?.addons?.find((a) => a.id === addonId);
|
|
12418
12418
|
if (!declaration?.entry) throw new Error(`Addon "${addonId}" not found in ${pkgJsonPath} manifest`);
|
|
12419
12419
|
const entryPath = path.resolve(addonDir, declaration.entry);
|
|
12420
12420
|
if (!fs$1.existsSync(entryPath)) throw new Error(`Entry point not found: ${entryPath}`);
|
|
@@ -12429,12 +12429,12 @@ async function loadAddonModule(addonId, addonDir) {
|
|
|
12429
12429
|
};
|
|
12430
12430
|
}
|
|
12431
12431
|
async function main() {
|
|
12432
|
-
const runnerId = process.env["
|
|
12433
|
-
const addonsJson = process.env["
|
|
12434
|
-
const parentNodeId = process.env["
|
|
12435
|
-
const dataDir = process.env["
|
|
12432
|
+
const runnerId = process.env["DOMINEVO_RUNNER_ID"];
|
|
12433
|
+
const addonsJson = process.env["DOMINEVO_RUNNER_ADDONS"];
|
|
12434
|
+
const parentNodeId = process.env["DOMINEVO_PARENT_NODE_ID"];
|
|
12435
|
+
const dataDir = process.env["DOMINEVO_DATA_DIR"] ?? "./dominevo-data";
|
|
12436
12436
|
if (!runnerId || !addonsJson || !parentNodeId) {
|
|
12437
|
-
console.error("[addon-runner] Missing required env vars:
|
|
12437
|
+
console.error("[addon-runner] Missing required env vars: DOMINEVO_RUNNER_ID, DOMINEVO_RUNNER_ADDONS, DOMINEVO_PARENT_NODE_ID");
|
|
12438
12438
|
process.exit(1);
|
|
12439
12439
|
}
|
|
12440
12440
|
let specs;
|
|
@@ -12445,16 +12445,16 @@ async function main() {
|
|
|
12445
12445
|
process.exit(1);
|
|
12446
12446
|
}
|
|
12447
12447
|
if (specs.length === 0) {
|
|
12448
|
-
console.error("[addon-runner]
|
|
12448
|
+
console.error("[addon-runner] DOMINEVO_RUNNER_ADDONS resolved to 0 addons — refusing to start");
|
|
12449
12449
|
process.exit(1);
|
|
12450
12450
|
}
|
|
12451
12451
|
const nodeId = `${parentNodeId}/${runnerId}`;
|
|
12452
|
-
if (!process.env["
|
|
12453
|
-
console.error(`[addon-runner] "${nodeId}"
|
|
12452
|
+
if (!process.env["DOMINEVO_PARENT_UDS_PATH"]) {
|
|
12453
|
+
console.error(`[addon-runner] "${nodeId}" DOMINEVO_PARENT_UDS_PATH is unset — broker-less runner cannot reach its parent. Exiting.`);
|
|
12454
12454
|
process.exit(1);
|
|
12455
12455
|
}
|
|
12456
12456
|
console.log(`[addon-runner] Starting "${nodeId}" (UDS-only) with ${specs.length} addon(s): ${specs.map((s) => s.addonId).join(", ")}`);
|
|
12457
|
-
registerFrameworkResolver(process.env["
|
|
12457
|
+
registerFrameworkResolver(process.env["DOMINEVO_FRAMEWORK_DIR"]);
|
|
12458
12458
|
const loadedModules = [];
|
|
12459
12459
|
for (const spec of specs) try {
|
|
12460
12460
|
const { declaration, AddonClass } = await loadAddonModule(spec.addonId, spec.addonDir);
|
|
@@ -12739,8 +12739,8 @@ async function main() {
|
|
|
12739
12739
|
runnerLog.info(`"${nodeId}" started — ${loaded.length} addon(s) ready (UDS connected)`);
|
|
12740
12740
|
process.stdout.write(`READY:${nodeId}\n`);
|
|
12741
12741
|
const stopHeapWatch = startRunnerHeapWatch({
|
|
12742
|
-
heapProfile: process.env["
|
|
12743
|
-
reclaimSwitch: process.env["
|
|
12742
|
+
heapProfile: process.env["DOMINEVO_RUNNER_HEAP_PROFILE"],
|
|
12743
|
+
reclaimSwitch: process.env["DOMINEVO_RUNNER_HEAP_RECLAIM"],
|
|
12744
12744
|
rssBudgetMb: process.env[RUNNER_RSS_BUDGET_ENV],
|
|
12745
12745
|
label: nodeId,
|
|
12746
12746
|
sink: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as SCOPED_SETTINGS_SCOPES } from "./scoped-settings-
|
|
1
|
+
import { t as SCOPED_SETTINGS_SCOPES } from "./scoped-settings-DnkTDuvk.mjs";
|
|
2
2
|
import { c as method } from "./capability-definition-C1TLUVJR.mjs";
|
|
3
3
|
import { t as NOT_A_DEVICE } from "./system-reasons-CYj4qwyS.mjs";
|
|
4
4
|
import { d as IconKeySchema } from "./tag-DU8pm9Bi.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_scoped_settings = require("./scoped-settings-
|
|
1
|
+
const require_scoped_settings = require("./scoped-settings-8uzhJVsE.js");
|
|
2
2
|
const require_capability_definition = require("./capability-definition-BEVd01Xj.js");
|
|
3
3
|
const require_system_reasons = require("./system-reasons-Be_k1W8g.js");
|
|
4
4
|
const require_tag = require("./tag-BLraBqvp.js");
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* This subpath re-exports ONLY the addon-facing helpers, each from its DEEP,
|
|
13
13
|
* kernel-free source module, so importing it costs a few MB instead of ~64MB.
|
|
14
14
|
*
|
|
15
|
-
* See memory:
|
|
15
|
+
* See memory: dominevo_runner_ram_and_build_rootcause.
|
|
16
16
|
*/
|
|
17
17
|
export { adoptModelRevisions, downloadFile, ensureModel, isModelDownloaded, resolveFormatRevision, type ModelRevisionAdoption, deleteModelFromDisk, collectModelFiles, getModelFilePath, isModelDownloadHttpError, ModelDownloadHttpError, type DownloadFileOptions, type DownloadRedirectPolicy } from "./download/model-downloader.js";
|
|
18
18
|
export { ModelDownloadService } from "./download/model-download-service.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("./chunk-Cek0wNdY.js");
|
|
3
3
|
const require_cap_call_scope = require("./cap-call-scope-BI4Xrpt1.js");
|
|
4
|
-
const require_custom_action_registry = require("./custom-action-registry-
|
|
4
|
+
const require_custom_action_registry = require("./custom-action-registry-C_yB2qlc.js");
|
|
5
5
|
const require_snapshot_courtesy = require("./snapshot-courtesy-D_C5-nC0.js");
|
|
6
6
|
exports.COURTESY_DEFAULT_WIDTH = require_snapshot_courtesy.COURTESY_DEFAULT_WIDTH;
|
|
7
7
|
exports.CustomActionRegistry = require_custom_action_registry.CustomActionRegistry;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { n as readCurrentCommandOrigin } from "./cap-call-scope-Dr3l8_XS.mjs";
|
|
2
|
-
import { C as isModelDownloaded, S as isModelDownloadHttpError, _ as downloadFile, a as startEventLoopStallMonitor, f as ModelDownloadService, g as deleteModelFromDisk, h as collectModelFiles, i as attributeStall, l as parseRangeHeader, m as adoptModelRevisions, n as STALL_REPORT_MS, o as createFileDataPlaneHandler, p as ModelDownloadHttpError, r as STALL_TICK_MS, s as contentTypeFor, t as CustomActionRegistry, w as resolveFormatRevision, x as getModelFilePath, y as ensureModel } from "./custom-action-registry-
|
|
2
|
+
import { C as isModelDownloaded, S as isModelDownloadHttpError, _ as downloadFile, a as startEventLoopStallMonitor, f as ModelDownloadService, g as deleteModelFromDisk, h as collectModelFiles, i as attributeStall, l as parseRangeHeader, m as adoptModelRevisions, n as STALL_REPORT_MS, o as createFileDataPlaneHandler, p as ModelDownloadHttpError, r as STALL_TICK_MS, s as contentTypeFor, t as CustomActionRegistry, w as resolveFormatRevision, x as getModelFilePath, y as ensureModel } from "./custom-action-registry-Ci7Lw1TM.mjs";
|
|
3
3
|
import { i as renderCourtesyOverlayJpeg, n as courtesyCacheKey, r as renderCourtesyJpeg, t as COURTESY_DEFAULT_WIDTH } from "./snapshot-courtesy-CyFs1M3I.mjs";
|
|
4
4
|
export { COURTESY_DEFAULT_WIDTH, CustomActionRegistry, ModelDownloadHttpError, ModelDownloadService, STALL_REPORT_MS, STALL_TICK_MS, adoptModelRevisions, attributeStall, collectModelFiles, contentTypeFor, courtesyCacheKey, createFileDataPlaneHandler, deleteModelFromDisk, downloadFile, ensureModel, getModelFilePath, isModelDownloadHttpError, isModelDownloaded, parseRangeHeader, readCurrentCommandOrigin, renderCourtesyJpeg, renderCourtesyOverlayJpeg, resolveFormatRevision, startEventLoopStallMonitor };
|
|
@@ -5,7 +5,7 @@ export declare const DEVICE_CA_KEY_REF: string;
|
|
|
5
5
|
/** Settings section / field holding the public CA certificate PEM (beside `cluster.meshCa`). */
|
|
6
6
|
export declare const DEVICE_CA_SETTINGS_SECTION = "cluster";
|
|
7
7
|
export declare const DEVICE_CA_FIELD = "deviceCa";
|
|
8
|
-
export declare const DEVICE_CA_COMMON_NAME = "
|
|
8
|
+
export declare const DEVICE_CA_COMMON_NAME = "Dominevo Device CA";
|
|
9
9
|
export declare const DEVICE_CA_VALIDITY_DAYS = 3650;
|
|
10
10
|
export interface DeviceCaSigner {
|
|
11
11
|
readonly certPem: string;
|
|
@@ -39,8 +39,8 @@ export interface IssueDeviceLeafInput {
|
|
|
39
39
|
readonly validDays?: number;
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
|
-
* Sign a device leaf: CN = credential id; SAN URIs `
|
|
43
|
-
* and `
|
|
42
|
+
* Sign a device leaf: CN = credential id; SAN URIs `dominevo:credential:<id>`
|
|
43
|
+
* and `dominevo:user:<userId>`; EKU clientAuth; 365 days by default.
|
|
44
44
|
*/
|
|
45
45
|
export declare function issueDeviceLeaf(ca: DeviceCaSigner, input: IssueDeviceLeafInput): Promise<DeviceLeafMaterial>;
|
|
46
46
|
export type DeviceLeafRefusal = "malformed-certificate" | "not-issued-by-device-ca" | "not-yet-valid" | "expired" | "missing-credential-san" | "missing-client-auth";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
7
|
* The serialisation of an opaque origin. The native app's OTA embed
|
|
8
|
-
* (`assets/embed/
|
|
8
|
+
* (`assets/embed/dominevo-embed.html`, loaded from `file://`) sends it.
|
|
9
9
|
*/
|
|
10
10
|
export declare const OPAQUE_ORIGIN = "null";
|
|
11
11
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_scoped_settings = require("./scoped-settings-
|
|
1
|
+
const require_scoped_settings = require("./scoped-settings-8uzhJVsE.js");
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region ../types/dist/esm/addon/migrations-blocked-error.mjs
|
|
4
4
|
/**
|
|
@@ -140,7 +140,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
140
140
|
EventCategory["AddonLoadRecovered"] = "addon.load-recovered";
|
|
141
141
|
/**
|
|
142
142
|
* An addon is RUNNING although its installed package is below what the
|
|
143
|
-
* running server requires (`
|
|
143
|
+
* running server requires (`dominevo.requires.addons` of the server, or the
|
|
144
144
|
* addon's own `requires.server`). Raised once per streak by the unsupported-
|
|
145
145
|
* addon tracker, on the hub and on agents; AlertCenter turns it into one
|
|
146
146
|
* operator alert per node and package. The addon is never held back for it.
|
|
@@ -628,7 +628,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
628
628
|
*/
|
|
629
629
|
EventCategory["MetricsNodeResourcesSnapshot"] = "metrics.node-resources-snapshot";
|
|
630
630
|
/**
|
|
631
|
-
* Periodic per-node process-tree snapshot (
|
|
631
|
+
* Periodic per-node process-tree snapshot (dominevo-related pids
|
|
632
632
|
* with root / managed / system classification). Emitted ~0.2 Hz by
|
|
633
633
|
* the metrics-provider addon. Drives the Cluster → Processes tab
|
|
634
634
|
* without polling `metricsProvider.listNodeProcesses`.
|
|
@@ -1710,7 +1710,7 @@ function isRecord$2(value) {
|
|
|
1710
1710
|
function secretViewsOf(owner, kind, id, decl, data) {
|
|
1711
1711
|
if (decl.secretPaths.length === 0) return data;
|
|
1712
1712
|
const shown = require_scoped_settings.mapSecretLeaves(data, decl.secretPaths, decl.secretArrayKeys, (leaf) => {
|
|
1713
|
-
if (leaf.value !== "
|
|
1713
|
+
if (leaf.value !== "__dominevo_redacted__") return leaf.value;
|
|
1714
1714
|
return {
|
|
1715
1715
|
$secret: require_scoped_settings.recordSecretRef(owner, kind, id, leaf.concrete),
|
|
1716
1716
|
v: 1,
|
|
@@ -1757,7 +1757,7 @@ function secretMapPatch(value) {
|
|
|
1757
1757
|
if (typeof value !== "object" || value === null || Array.isArray(value)) return null;
|
|
1758
1758
|
const out = {};
|
|
1759
1759
|
for (const [key, entry] of Object.entries(value)) if (entry === null || require_scoped_settings.isSecretClear(entry)) out[key] = null;
|
|
1760
|
-
else if (typeof entry === "string" && entry !== "" && entry !== "
|
|
1760
|
+
else if (typeof entry === "string" && entry !== "" && entry !== "__dominevo_redacted__" && !require_scoped_settings.isSecretFieldView(entry)) out[key] = entry;
|
|
1761
1761
|
return Object.keys(out).length > 0 ? out : null;
|
|
1762
1762
|
}
|
|
1763
1763
|
var RecordIntegrationInstances = class {
|
|
@@ -1948,7 +1948,7 @@ var RecordIntegrationInstances = class {
|
|
|
1948
1948
|
if (entries !== null) patch[key] = entries;
|
|
1949
1949
|
} else if (!this.secretKeys.has(key)) patch[key] = value;
|
|
1950
1950
|
else if (require_scoped_settings.isSecretClear(value)) patch[key] = null;
|
|
1951
|
-
else if (typeof value === "string" && value !== "" && value !== "
|
|
1951
|
+
else if (typeof value === "string" && value !== "" && value !== "__dominevo_redacted__" && !require_scoped_settings.isSecretFieldView(value)) patch[key] = value;
|
|
1952
1952
|
}
|
|
1953
1953
|
return patch;
|
|
1954
1954
|
}
|
|
@@ -4198,26 +4198,6 @@ var BaseAddon = class {
|
|
|
4198
4198
|
} catch {}
|
|
4199
4199
|
}
|
|
4200
4200
|
/**
|
|
4201
|
-
* Resolve the shared, node-local models directory: `<nodeDataDir>/models`.
|
|
4202
|
-
*
|
|
4203
|
-
* This is the SINGLE centralized models-dir resolver for every inference addon
|
|
4204
|
-
* (detection-pipeline, audio-analyzer, embedding-encoder, model-studio). It is
|
|
4205
|
-
* anchored at the node's own writable data root (`ctx.nodeDataDir`, i.e.
|
|
4206
|
-
* `CAMSTACK_DATA` ?? the kernel boot dir) — never the hub-singleton `storage`
|
|
4207
|
-
* cap, which returns the hub's `/data/models` to every node and breaks any node
|
|
4208
|
-
* whose real data dir differs (e.g. the macOS electron agent).
|
|
4209
|
-
*
|
|
4210
|
-
* `node:path`/`node:fs` are imported dynamically so the `@dominevo/types` root
|
|
4211
|
-
* barrel (re-exported into browser bundles) stays free of node builtins.
|
|
4212
|
-
*/
|
|
4213
|
-
async resolveModelsDir() {
|
|
4214
|
-
const { join } = await import("node:path");
|
|
4215
|
-
const { promises: fsp } = await import("node:fs");
|
|
4216
|
-
const dir = join(this.ctx.nodeDataDir, "models");
|
|
4217
|
-
await fsp.mkdir(dir, { recursive: true });
|
|
4218
|
-
return dir;
|
|
4219
|
-
}
|
|
4220
|
-
/**
|
|
4221
4201
|
* Access the runtime capability registry for in-process provider lookups.
|
|
4222
4202
|
* Returns null if the registry is not available (e.g. on agents).
|
|
4223
4203
|
* Used by addons that consume other capabilities directly (snapshot, stream-broker, enrichment).
|
|
@@ -4632,14 +4612,14 @@ function collectFieldKeys(fields) {
|
|
|
4632
4612
|
return collected;
|
|
4633
4613
|
}
|
|
4634
4614
|
/**
|
|
4635
|
-
* Normalize an `
|
|
4615
|
+
* Normalize an `IDominevoAddon.initialize()` return value into the
|
|
4636
4616
|
* `AddonInitResult` envelope. Arrays are wrapped into `{ providers }`;
|
|
4637
4617
|
* envelopes pass through; void stays void.
|
|
4638
4618
|
*
|
|
4639
4619
|
* Exported so the kernel boot path and the backend addon registry can
|
|
4640
4620
|
* share the same normalizer instead of duplicating the shim. Addons that
|
|
4641
4621
|
* extend `BaseAddon` already emit the envelope, so this helper is only a
|
|
4642
|
-
* safety net for direct `
|
|
4622
|
+
* safety net for direct `IDominevoAddon` implementations (mostly tests).
|
|
4643
4623
|
*/
|
|
4644
4624
|
function normalizeAddonInitResult(result) {
|
|
4645
4625
|
if (result == null) return;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as SECRET_CLEAR, H as isSecretClear, K as makeSecretMarker, N as RecordSecretUnavailableError, S as globalSecretScope, U as isSecretFieldView, V as classifySecretWrite, W as isSecretMarker, X as isKeychainStoredField, Z as errMsg, a as mapSecretLeaves, o as recordSecretRef, q as toSecretFieldView, t as SCOPED_SETTINGS_SCOPES, w as parseSecretRef, y as arrayItemFieldPath } from "./scoped-settings-
|
|
1
|
+
import { B as SECRET_CLEAR, H as isSecretClear, K as makeSecretMarker, N as RecordSecretUnavailableError, S as globalSecretScope, U as isSecretFieldView, V as classifySecretWrite, W as isSecretMarker, X as isKeychainStoredField, Z as errMsg, a as mapSecretLeaves, o as recordSecretRef, q as toSecretFieldView, t as SCOPED_SETTINGS_SCOPES, w as parseSecretRef, y as arrayItemFieldPath } from "./scoped-settings-DnkTDuvk.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region ../types/dist/esm/addon/migrations-blocked-error.mjs
|
|
4
4
|
/**
|
|
@@ -140,7 +140,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
140
140
|
EventCategory["AddonLoadRecovered"] = "addon.load-recovered";
|
|
141
141
|
/**
|
|
142
142
|
* An addon is RUNNING although its installed package is below what the
|
|
143
|
-
* running server requires (`
|
|
143
|
+
* running server requires (`dominevo.requires.addons` of the server, or the
|
|
144
144
|
* addon's own `requires.server`). Raised once per streak by the unsupported-
|
|
145
145
|
* addon tracker, on the hub and on agents; AlertCenter turns it into one
|
|
146
146
|
* operator alert per node and package. The addon is never held back for it.
|
|
@@ -628,7 +628,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
628
628
|
*/
|
|
629
629
|
EventCategory["MetricsNodeResourcesSnapshot"] = "metrics.node-resources-snapshot";
|
|
630
630
|
/**
|
|
631
|
-
* Periodic per-node process-tree snapshot (
|
|
631
|
+
* Periodic per-node process-tree snapshot (dominevo-related pids
|
|
632
632
|
* with root / managed / system classification). Emitted ~0.2 Hz by
|
|
633
633
|
* the metrics-provider addon. Drives the Cluster → Processes tab
|
|
634
634
|
* without polling `metricsProvider.listNodeProcesses`.
|
|
@@ -1710,7 +1710,7 @@ function isRecord$2(value) {
|
|
|
1710
1710
|
function secretViewsOf(owner, kind, id, decl, data) {
|
|
1711
1711
|
if (decl.secretPaths.length === 0) return data;
|
|
1712
1712
|
const shown = mapSecretLeaves(data, decl.secretPaths, decl.secretArrayKeys, (leaf) => {
|
|
1713
|
-
if (leaf.value !== "
|
|
1713
|
+
if (leaf.value !== "__dominevo_redacted__") return leaf.value;
|
|
1714
1714
|
return {
|
|
1715
1715
|
$secret: recordSecretRef(owner, kind, id, leaf.concrete),
|
|
1716
1716
|
v: 1,
|
|
@@ -1757,7 +1757,7 @@ function secretMapPatch(value) {
|
|
|
1757
1757
|
if (typeof value !== "object" || value === null || Array.isArray(value)) return null;
|
|
1758
1758
|
const out = {};
|
|
1759
1759
|
for (const [key, entry] of Object.entries(value)) if (entry === null || isSecretClear(entry)) out[key] = null;
|
|
1760
|
-
else if (typeof entry === "string" && entry !== "" && entry !== "
|
|
1760
|
+
else if (typeof entry === "string" && entry !== "" && entry !== "__dominevo_redacted__" && !isSecretFieldView(entry)) out[key] = entry;
|
|
1761
1761
|
return Object.keys(out).length > 0 ? out : null;
|
|
1762
1762
|
}
|
|
1763
1763
|
var RecordIntegrationInstances = class {
|
|
@@ -1948,7 +1948,7 @@ var RecordIntegrationInstances = class {
|
|
|
1948
1948
|
if (entries !== null) patch[key] = entries;
|
|
1949
1949
|
} else if (!this.secretKeys.has(key)) patch[key] = value;
|
|
1950
1950
|
else if (isSecretClear(value)) patch[key] = null;
|
|
1951
|
-
else if (typeof value === "string" && value !== "" && value !== "
|
|
1951
|
+
else if (typeof value === "string" && value !== "" && value !== "__dominevo_redacted__" && !isSecretFieldView(value)) patch[key] = value;
|
|
1952
1952
|
}
|
|
1953
1953
|
return patch;
|
|
1954
1954
|
}
|
|
@@ -4198,26 +4198,6 @@ var BaseAddon = class {
|
|
|
4198
4198
|
} catch {}
|
|
4199
4199
|
}
|
|
4200
4200
|
/**
|
|
4201
|
-
* Resolve the shared, node-local models directory: `<nodeDataDir>/models`.
|
|
4202
|
-
*
|
|
4203
|
-
* This is the SINGLE centralized models-dir resolver for every inference addon
|
|
4204
|
-
* (detection-pipeline, audio-analyzer, embedding-encoder, model-studio). It is
|
|
4205
|
-
* anchored at the node's own writable data root (`ctx.nodeDataDir`, i.e.
|
|
4206
|
-
* `CAMSTACK_DATA` ?? the kernel boot dir) — never the hub-singleton `storage`
|
|
4207
|
-
* cap, which returns the hub's `/data/models` to every node and breaks any node
|
|
4208
|
-
* whose real data dir differs (e.g. the macOS electron agent).
|
|
4209
|
-
*
|
|
4210
|
-
* `node:path`/`node:fs` are imported dynamically so the `@dominevo/types` root
|
|
4211
|
-
* barrel (re-exported into browser bundles) stays free of node builtins.
|
|
4212
|
-
*/
|
|
4213
|
-
async resolveModelsDir() {
|
|
4214
|
-
const { join } = await import("node:path");
|
|
4215
|
-
const { promises: fsp } = await import("node:fs");
|
|
4216
|
-
const dir = join(this.ctx.nodeDataDir, "models");
|
|
4217
|
-
await fsp.mkdir(dir, { recursive: true });
|
|
4218
|
-
return dir;
|
|
4219
|
-
}
|
|
4220
|
-
/**
|
|
4221
4201
|
* Access the runtime capability registry for in-process provider lookups.
|
|
4222
4202
|
* Returns null if the registry is not available (e.g. on agents).
|
|
4223
4203
|
* Used by addons that consume other capabilities directly (snapshot, stream-broker, enrichment).
|
|
@@ -4632,14 +4612,14 @@ function collectFieldKeys(fields) {
|
|
|
4632
4612
|
return collected;
|
|
4633
4613
|
}
|
|
4634
4614
|
/**
|
|
4635
|
-
* Normalize an `
|
|
4615
|
+
* Normalize an `IDominevoAddon.initialize()` return value into the
|
|
4636
4616
|
* `AddonInitResult` envelope. Arrays are wrapped into `{ providers }`;
|
|
4637
4617
|
* envelopes pass through; void stays void.
|
|
4638
4618
|
*
|
|
4639
4619
|
* Exported so the kernel boot path and the backend addon registry can
|
|
4640
4620
|
* share the same normalizer instead of duplicating the shim. Addons that
|
|
4641
4621
|
* extend `BaseAddon` already emit the envelope, so this helper is only a
|
|
4642
|
-
* safety net for direct `
|
|
4622
|
+
* safety net for direct `IDominevoAddon` implementations (mostly tests).
|
|
4643
4623
|
*/
|
|
4644
4624
|
function normalizeAddonInitResult(result) {
|
|
4645
4625
|
if (result == null) return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_stream_catalog_cap = require("./stream-catalog.cap-
|
|
2
|
-
const require_base_addon = require("./base-addon
|
|
3
|
-
const require_scoped_settings = require("./scoped-settings-
|
|
1
|
+
const require_stream_catalog_cap = require("./stream-catalog.cap-Bl0BSYye.js");
|
|
2
|
+
const require_base_addon = require("./base-addon-CwtR9jMm.js");
|
|
3
|
+
const require_scoped_settings = require("./scoped-settings-8uzhJVsE.js");
|
|
4
4
|
const require_zod_secret = require("./zod-secret-DS7mj1bk.js");
|
|
5
5
|
const require_device_identifiers = require("./device-identifiers-BNdxiGem.js");
|
|
6
6
|
const require_source_info = require("./source-info-QbVrGcPR.js");
|