@dominevo/server 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +4 -4
- package/CHANGELOG.md +7 -0
- package/THIRD_PARTY_MODELS.md +13 -13
- package/dist/addon-root-inventory.js +5 -5
- package/dist/agent/agent-config.js +8 -8
- package/dist/agent/agent-group-runner.js +2 -2
- package/dist/agent/agent-http.js +4 -4
- package/dist/agent/agent-infra-capabilities.js +2 -2
- package/dist/agent/agent-self-update.js +3 -3
- package/dist/agent/agent-service.js +3 -3
- package/dist/agent/agent-update-service.js +10 -10
- package/dist/agent/derive-hub-url.js +3 -3
- package/dist/agent/main.js +20 -20
- package/dist/agent/stale-addon-gate.js +7 -7
- package/dist/api/addon-upload.js +12 -12
- package/dist/api/core/auth.router.js +7 -7
- package/dist/api/core/cap-providers.js +1 -1
- package/dist/api/core/logging-settings.js +1 -1
- package/dist/api/core/request-census-settings.js +1 -1
- package/dist/api/cors/cors-policy.js +5 -5
- package/dist/api/dev-uploads-bundle.js +1 -1
- package/dist/api/logs-export-route.js +1 -1
- package/dist/api/model-distributor.js +1 -1
- package/dist/api/server-upload-propagate.js +1 -1
- package/dist/api/server-upload.js +2 -2
- package/dist/api/static/spa-mount.js +3 -3
- package/dist/api/static/spa-static.js +1 -1
- package/dist/api/tarball-manifest.js +4 -4
- package/dist/api/trpc/http-request-census.js +1 -1
- package/dist/api/trpc/trpc.router.js +7 -7
- package/dist/auth/addon-route-share-gate.js +2 -2
- package/dist/auth/app-confirm-page.js +1 -1
- package/dist/auth/app-confirmations.js +2 -2
- package/dist/auth/app-passkey-page.js +1 -1
- package/dist/auth/native-return.js +1 -1
- package/dist/auth/session-cookie.js +2 -2
- package/dist/auth/sso-routes.js +1 -1
- package/dist/boot/boot-config.js +3 -3
- package/dist/boot/post-boot.service.js +2 -2
- package/dist/boot/retired-public-url-env.js +3 -3
- package/dist/bootstrap-packages.js +3 -3
- package/dist/closure-patches/patch-reach.json +7 -7
- package/dist/closure-patches/werift+0.22.9.patch +34 -34
- package/dist/core/addon/addon-package.service.js +32 -32
- package/dist/core/addon/addon-registry.service.js +34 -34
- package/dist/core/addon/addon-requirements.js +8 -8
- package/dist/core/addon/addon-search.service.js +2 -2
- package/dist/core/addon/hub-addon-support.js +2 -2
- package/dist/core/addon/read-packed-file.js +1 -1
- package/dist/core/addon-bridge/addon-bridge.service.js +6 -6
- package/dist/core/addon-pages/addon-pages.service.js +1 -1
- package/dist/core/agent/agent-registry.service.js +1 -1
- package/dist/core/agent/delivery-requirements.js +1 -1
- package/dist/core/app-links/well-known-app-links.js +7 -9
- package/dist/core/auth/handoff-code.service.js +1 -1
- package/dist/core/moleculer/moleculer.service.js +6 -6
- package/dist/core/release-identity.js +2 -2
- package/dist/core/server-update/server-update.service.js +9 -9
- package/dist/core/updates/node-update-announcement.js +1 -1
- package/dist/core/updates/wrapper-update-checker.js +1 -1
- package/dist/framework-nodepath.js +1 -1
- package/dist/i18n/request-lang.js +1 -1
- package/dist/launch-args.js +4 -4
- package/dist/launcher.js +14 -14
- package/dist/main.js +9 -9
- package/dist/manual-boot.js +5 -5
- package/dist/node-role.js +2 -2
- package/dist/package-inventory.js +1 -1
- package/dist/pending-restore.js +1 -1
- package/dist/server-root/index.js +11 -11
- package/dist/single-copy-cleanup-runner.js +2 -2
- package/dist/single-copy-cleanup.js +2 -2
- package/dist/starter.js +9 -9
- package/package.json +71 -71
- package/system/dist/addon-runner.js +59 -59
- package/system/dist/addon-runner.mjs +59 -59
- package/system/dist/{addon-settings.cap-Cxgig-la.mjs → addon-settings.cap-CyWCCPvU.mjs} +1 -1
- package/system/dist/{addon-settings.cap-B3KYrDyh.js → addon-settings.cap-DT34AC0I.js} +1 -1
- package/system/dist/addon-utils.d.ts +1 -1
- package/system/dist/addon-utils.js +1 -1
- package/system/dist/addon-utils.mjs +1 -1
- package/system/dist/auth/device-ca.d.ts +3 -3
- package/system/dist/auth/origin.d.ts +1 -1
- package/system/dist/{base-addon--EzLZ64f.js → base-addon-CwtR9jMm.js} +8 -28
- package/system/dist/{base-addon-D6i6fCDD.mjs → base-addon-DCfRA4Sq.mjs} +8 -28
- package/system/dist/{base-device-Aptq2PHd.js → base-device-B3OJaaod.js} +3 -3
- package/system/dist/{base-device-CuQ3xFwc.mjs → base-device-QXPOGWz3.mjs} +3 -3
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.d.ts +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +5 -5
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +8 -8
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +4 -4
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +8 -8
- package/system/dist/builtins/alerts/alerts.addon.js +7 -7
- package/system/dist/builtins/alerts/alerts.addon.mjs +9 -9
- package/system/dist/builtins/apps-aggregator/apps-aggregator.addon.js +1 -1
- package/system/dist/builtins/apps-aggregator/apps-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +2 -2
- package/system/dist/builtins/autotrack/index.mjs +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.d.ts +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +5 -5
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +8 -8
- package/system/dist/builtins/backup-orchestrator/manifest-store.d.ts +1 -1
- package/system/dist/builtins/calendars/calendars.addon.js +2 -2
- package/system/dist/builtins/calendars/calendars.addon.mjs +2 -2
- package/system/dist/builtins/camera-grid/index.js +5 -5
- package/system/dist/builtins/camera-grid/index.mjs +5 -5
- package/system/dist/builtins/composer/composer.addon.js +10 -10
- package/system/dist/builtins/composer/composer.addon.mjs +10 -10
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +22 -22
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +20 -20
- package/system/dist/builtins/core-notifier/core-notifier.addon.js +3 -3
- package/system/dist/builtins/core-notifier/core-notifier.addon.mjs +3 -3
- package/system/dist/builtins/device-history/device-history.addon.js +6 -6
- package/system/dist/builtins/device-history/device-history.addon.mjs +6 -6
- package/system/dist/builtins/device-history/store/history-schema.d.ts +1 -1
- package/system/dist/builtins/device-manager/device-manager.addon.js +29 -29
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +16 -16
- package/system/dist/builtins/device-manager/device-row-store.d.ts +1 -1
- package/system/dist/builtins/device-manager/fleet-read-census.d.ts +1 -1
- package/system/dist/builtins/device-manager/runtime-state-persist-gate.d.ts +1 -1
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +15 -15
- package/system/dist/builtins/keychain/index.mjs +15 -15
- package/system/dist/builtins/keychain/key-sources.d.ts +2 -2
- package/system/dist/builtins/keychain/keychain-store.d.ts +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +5 -5
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +5 -5
- package/system/dist/builtins/local-auth/auth-schema.d.ts +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +24 -24
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +17 -17
- package/system/dist/builtins/local-network/agent-mdns.d.ts +1 -1
- package/system/dist/builtins/local-network/hub-mdns.d.ts +1 -1
- package/system/dist/builtins/local-network/local-network.addon.d.ts +3 -3
- package/system/dist/builtins/local-network/local-network.addon.js +15 -15
- package/system/dist/builtins/local-network/local-network.addon.mjs +15 -15
- package/system/dist/builtins/loki-logging/index.js +7 -7
- package/system/dist/builtins/loki-logging/index.mjs +7 -7
- package/system/dist/builtins/loki-logging/loki-payload.d.ts +1 -1
- package/system/dist/builtins/native-metrics/cgroup-memory.d.ts +3 -3
- package/system/dist/builtins/native-metrics/native-metrics.addon.d.ts +2 -2
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +14 -14
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +23 -23
- package/system/dist/builtins/native-metrics/process-classification.d.ts +8 -8
- package/system/dist/builtins/platform-probe/accelerator-facts-probe.d.ts +1 -1
- package/system/dist/builtins/platform-probe/coral-accelerators.d.ts +2 -2
- package/system/dist/builtins/platform-probe/index.js +3 -3
- package/system/dist/builtins/platform-probe/index.mjs +12 -12
- package/system/dist/builtins/record-entries/index.js +3 -3
- package/system/dist/builtins/record-entries/index.mjs +3 -3
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +4 -4
- package/system/dist/builtins/snapshot/index.mjs +4 -4
- package/system/dist/builtins/sqlite-storage/file-host-handlers.d.ts +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.d.ts +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +22 -22
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/migrations/migration-pass.d.ts +1 -1
- package/system/dist/builtins/sqlite-storage/owned-sqlite-file.d.ts +1 -1
- package/system/dist/builtins/sqlite-storage/query-profiler.d.ts +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-pragmas.d.ts +2 -2
- package/system/dist/builtins/sqlite-storage/sqlite-settings-backend.d.ts +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +19 -19
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +19 -19
- package/system/dist/builtins/storage-orchestrator/access-guards.d.ts +1 -1
- package/system/dist/builtins/storage-orchestrator/location-secrets.d.ts +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.d.ts +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +18 -18
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +18 -18
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.service.d.ts +3 -3
- package/system/dist/builtins/system-backup/backup-encryption.d.ts +1 -1
- package/system/dist/builtins/system-backup/system-backup.service.d.ts +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +31 -31
- package/system/dist/builtins/system-config/system-config.addon.mjs +143 -143
- package/system/dist/builtins/winston-logging/index.js +5 -5
- package/system/dist/builtins/winston-logging/index.mjs +5 -5
- package/system/dist/builtins/winston-logging/log-file-cursor.d.ts +1 -1
- package/system/dist/{cap-call-context-DnLdYSyR.js → cap-call-context-3-L-JQ3d.js} +2 -2
- package/system/dist/{cap-call-context-D-su61hv.mjs → cap-call-context-C_59UKvE.mjs} +2 -2
- package/system/dist/{command-catalog-Cgz3MwLW.mjs → command-catalog-88WjnitG.mjs} +1 -1
- package/system/dist/{command-catalog-0Q83jcdv.js → command-catalog-Bt0rkK6T.js} +1 -1
- package/system/dist/{composition-sources-GNsOlYlG.js → composition-sources-BD_14SLn.js} +2 -2
- package/system/dist/{composition-sources-Dzx55O4S.mjs → composition-sources-BxNM5HHY.mjs} +2 -2
- package/system/dist/{constants-DVHYGlyi.js → constants-B8umFEGY.js} +2 -2
- package/system/dist/{constants-bg2DX4I6.mjs → constants-C86EPRS1.mjs} +2 -2
- package/system/dist/{coral-accelerators-DXDOGcym.mjs → coral-accelerators-CSu5Ahx5.mjs} +6 -6
- package/system/dist/{custom-action-registry-Bd52pRgO.mjs → custom-action-registry-BklzKCJe.mjs} +162 -162
- package/system/dist/{custom-action-registry-DHOCDRef.js → custom-action-registry-C_yB2qlc.js} +125 -125
- package/system/dist/{database-snapshot.cap-BymU4Xk9.js → database-snapshot.cap--dYj7W3i.js} +1 -1
- package/system/dist/{database-snapshot.cap-DAVS29qN.mjs → database-snapshot.cap-DfMxWoak.mjs} +1 -1
- package/system/dist/{declared-device-BSxSa0O8.js → declared-device-BFexdYcl.js} +1 -1
- package/system/dist/{declared-device-C4zPkK6G.mjs → declared-device-D-fwNbiU.mjs} +1 -1
- package/system/dist/{device-ca-BgYUqBEB.js → device-ca-CXDTXX4c.js} +8 -8
- package/system/dist/{device-ca-AvfcD1AT.mjs → device-ca-Du6rfexI.mjs} +8 -8
- package/system/dist/{device-certificate-IVBnrTHH.js → device-certificate-6irX-VEC.js} +4 -4
- package/system/dist/{device-certificate-Kh05tlrX.mjs → device-certificate-B5LojTd8.mjs} +4 -4
- package/system/dist/{device-manager.cap-zbFHbXlg.mjs → device-manager.cap-3gMy5WyI.mjs} +1 -1
- package/system/dist/{device-manager.cap-B-zweScL.js → device-manager.cap-CVm8e--n.js} +1 -1
- package/system/dist/{device-removal-reconcile-DSYwdCX-.mjs → device-removal-reconcile-Bca9Xmxa.mjs} +2 -2
- package/system/dist/{device-removal-reconcile-hF3PFXaD.js → device-removal-reconcile-BtBOAfIX.js} +2 -2
- package/system/dist/{camstack-error-DJ-TUAi1.js → dominevo-error-CTBRQM6p.js} +4 -4
- package/system/dist/{camstack-error-viZYfcj9.mjs → dominevo-error-EgrighSX.mjs} +4 -4
- package/system/dist/download/hosted-model-revisions.d.ts +1 -1
- package/system/dist/{entry-kind-BOBbd1lw.mjs → entry-kind-DJSOxSX2.mjs} +2 -2
- package/system/dist/{entry-kind-BVqSwPqz.js → entry-kind-DzaK6R6L.js} +2 -2
- package/system/dist/file-host-worker.js +3 -3
- package/system/dist/file-host-worker.mjs +3 -3
- package/system/dist/framework-resolver-hook.mjs +1 -1
- package/system/dist/{hub-identity-Ctf-OLhe.mjs → hub-identity-C1lUxisZ.mjs} +19 -19
- package/system/dist/{hub-identity-C5oay5SY.js → hub-identity-DihZeMUF.js} +10 -10
- package/system/dist/{hub-mdns-ciao-BjVwHmsr.js → hub-mdns-ciao-D2Rcz1Kb.js} +42 -42
- package/system/dist/{hub-mdns-ciao-C9adAMGN.mjs → hub-mdns-ciao-D5Udd2A_.mjs} +39 -39
- package/system/dist/index.js +152 -152
- package/system/dist/index.mjs +355 -355
- package/system/dist/{jobs.cap-DHu0iJ1C.js → jobs.cap-Blrf2noc.js} +4 -4
- package/system/dist/{jobs.cap-BPFm9yU4.mjs → jobs.cap-DdrDabtW.mjs} +4 -4
- package/system/dist/kernel/addon-class-resolver.d.ts +2 -2
- package/system/dist/kernel/addon-engine-manager.d.ts +2 -2
- package/system/dist/kernel/addon-installer.d.ts +12 -12
- package/system/dist/kernel/addon-loader.d.ts +6 -6
- package/system/dist/kernel/addon-version-policy.d.ts +1 -1
- package/system/dist/kernel/config-schema.d.ts +2 -2
- package/system/dist/kernel/deps/addon-deps-manager.d.ts +1 -1
- package/system/dist/kernel/deps/closure-dedupe.d.ts +3 -3
- package/system/dist/kernel/deps/ensure-addon-natives.d.ts +1 -1
- package/system/dist/kernel/deps/manifest-native-deps.d.ts +2 -2
- package/system/dist/kernel/deps/manifest-python-deps.d.ts +1 -1
- package/system/dist/kernel/deps/system-package-broker.d.ts +1 -1
- package/system/dist/kernel/deps/system-package-client.d.ts +1 -1
- package/system/dist/kernel/event-plane-report.d.ts +2 -2
- package/system/dist/kernel/fs-utils.d.ts +4 -4
- package/system/dist/kernel/heap-watch.d.ts +8 -8
- package/system/dist/kernel/index.d.ts +1 -1
- package/system/dist/kernel/moleculer/addon-context-factory.d.ts +3 -3
- package/system/dist/kernel/moleculer/addon-service-factory.d.ts +3 -3
- package/system/dist/kernel/moleculer/agent-event-scope.d.ts +2 -2
- package/system/dist/kernel/moleculer/agent-ui-unlock.d.ts +1 -1
- package/system/dist/kernel/moleculer/child-addon-call-dispatch.d.ts +2 -2
- package/system/dist/kernel/moleculer/event-bus-core.d.ts +1 -1
- package/system/dist/kernel/moleculer/event-bus.d.ts +5 -5
- package/system/dist/kernel/moleculer/mesh-mtls/constants.d.ts +1 -1
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-membership.d.ts +1 -1
- package/system/dist/kernel/moleculer/mesh-mtls/pairing/pairing-protocol.d.ts +3 -3
- package/system/dist/kernel/moleculer/runner-heap-flags.d.ts +1 -1
- package/system/dist/kernel/moleculer/runner-native-allocator.d.ts +2 -2
- package/system/dist/kernel/moleculer/stream-probe-service.d.ts +1 -1
- package/system/dist/kernel/moleculer/worker-device-restore.d.ts +2 -2
- package/system/dist/kernel/requires-registry.d.ts +2 -2
- package/system/dist/kernel/transport/create-local-transport.d.ts +1 -1
- package/system/dist/kernel/transport/local-child-registry.d.ts +1 -1
- package/system/dist/kernel/transport/uds-event-bridge.d.ts +1 -1
- package/system/dist/kernel/unsupported-addon-tracker.d.ts +1 -1
- package/system/dist/{keychain-admin.cap-DOvL8TMG.mjs → keychain-admin.cap-C3eanzBT.mjs} +2 -2
- package/system/dist/{keychain-admin.cap-DcRCRWtu.js → keychain-admin.cap-yMG0j8XP.js} +2 -2
- package/system/dist/{legacy-integration-rows-door-CUpCwPm5.js → legacy-integration-rows-door-1c-XBxRt.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-bidgp6kI.mjs → legacy-integration-rows-door-CYFvlkdt.mjs} +1 -1
- package/system/dist/{log-file-read-protocol-hTaAsYlX.mjs → log-file-read-protocol-B3Tq2F50.mjs} +2 -2
- package/system/dist/{log-file-read-protocol-DSV_vQRb.js → log-file-read-protocol-BRHlsNCj.js} +2 -2
- package/system/dist/log-file-read-worker.js +1 -1
- package/system/dist/log-file-read-worker.mjs +1 -1
- package/system/dist/logging/formatter.d.ts +1 -1
- package/system/dist/{metrics-provider.cap-01SwpLu5.mjs → metrics-provider.cap-BKzH22yb.mjs} +2 -2
- package/system/dist/{metrics-provider.cap-BMKD5FH3.js → metrics-provider.cap-H0RjdYQj.js} +2 -2
- package/system/dist/{migration-CHPdAdNh.js → migration-CvC7YRxn.js} +1 -1
- package/system/dist/{migration-BvbfW9g-.mjs → migration-DDDUJnTU.mjs} +1 -1
- package/system/dist/migrations/hub/index.d.ts +1 -1
- package/system/dist/{named-entity-store-EQovvtag.js → named-entity-store-B7MMnZq_.js} +1 -1
- package/system/dist/{named-entity-store-C2JkesQG.mjs → named-entity-store-CLIUOHkl.mjs} +1 -1
- package/system/dist/{network-access.cap-CxqbyUYK.js → network-access.cap-C97_DUK9.js} +10 -10
- package/system/dist/{network-access.cap-B918UjWD.mjs → network-access.cap-DcLn1v6p.mjs} +9 -9
- package/system/dist/{notification-targets-Cj6I9DzV.js → notification-targets-BH-Kq5zA.js} +2 -2
- package/system/dist/{notification-targets-cJTv1p6y.mjs → notification-targets-gTLSExN5.mjs} +2 -2
- package/system/dist/{platform-key-source-Di7HrlGR.js → platform-key-source-DERonx7U.js} +1 -1
- package/system/dist/{platform-key-source-BWlq0jjn.mjs → platform-key-source-vw43KkgD.mjs} +1 -1
- package/system/dist/{record-entries.cap-jKkDRzZG.mjs → record-entries.cap-DqaspI30.mjs} +2 -2
- package/system/dist/{record-entries.cap-RXnOab_5.js → record-entries.cap-u4EjNUWg.js} +2 -2
- package/system/dist/{record-kind-Cm1DO1qJ.js → record-kind-BYbL_LNZ.js} +1 -1
- package/system/dist/{record-kind-DXFsj6uF.mjs → record-kind-DpcGjBK1.mjs} +1 -1
- package/system/dist/{record-kinds-CLYE4x8E.js → record-kinds-CF3IIGeU.js} +6 -6
- package/system/dist/{record-kinds-Xm95PUr5.mjs → record-kinds-HynLKMsB.mjs} +6 -6
- package/system/dist/{recording-archive.cap-BFiEztoo.js → recording-archive.cap-DPyT1msn.js} +5 -5
- package/system/dist/{recording-archive.cap-DljrTthl.mjs → recording-archive.cap-DoeNelun.mjs} +4 -4
- package/system/dist/{records.cap-BDUsx56H.mjs → records.cap-A6ZnC18-.mjs} +2 -2
- package/system/dist/{records.cap-DKDON4zv.js → records.cap-CrdoSJ1h.js} +2 -2
- package/system/dist/{rename-composition-block-BdhK2udh.mjs → rename-composition-block-CMfftDfW.mjs} +43 -43
- package/system/dist/{rename-composition-block-CJ-XbDsk.js → rename-composition-block-CeKeUquQ.js} +43 -43
- package/system/dist/{restore-archive-BQhYL8c4.mjs → restore-archive-DngNk5Yg.mjs} +104 -104
- package/system/dist/{restore-archive-DWIM3J3f.js → restore-archive-LKIQ4CNL.js} +11 -11
- package/system/dist/{retention-source.cap-BvNRqbz3.js → retention-source.cap-CuI320Je.js} +1 -1
- package/system/dist/{retention-source.cap-DUPeqB5h.mjs → retention-source.cap-DLKW-DAE.mjs} +1 -1
- package/system/dist/{retired-settings-keys-BFLkouoC.mjs → retired-settings-keys-Dakm_ir-.mjs} +1 -1
- package/system/dist/{retired-settings-keys-DNi9qA3K.js → retired-settings-keys-DdoaQDUr.js} +1 -1
- package/system/dist/{scoped-settings-DbyAaIot.js → scoped-settings-8uzhJVsE.js} +3 -3
- package/system/dist/{scoped-settings-d2_FTMty.mjs → scoped-settings-DnkTDuvk.mjs} +3 -3
- package/system/dist/{settings-store.cap-BhOIBtO4.js → settings-store.cap-DqFgT2Xo.js} +1 -1
- package/system/dist/{settings-store.cap-CaDSOqgK.mjs → settings-store.cap-DxsDTQxb.mjs} +1 -1
- package/system/dist/{state-refresh-scheduler-GlExK5Pt.js → state-refresh-scheduler-8_rBg2-4.js} +1 -1
- package/system/dist/{state-refresh-scheduler-CJuGzqZh.mjs → state-refresh-scheduler-B3pfIHRS.mjs} +1 -1
- package/system/dist/{storage-admin.cap-DPH4dWEl.js → storage-admin.cap-BndyGERv.js} +5 -5
- package/system/dist/{storage-admin.cap-CP_CtM0h.mjs → storage-admin.cap-DOZ5tsKA.mjs} +5 -5
- package/system/dist/{storage-migration.cap-DT_sdxio.js → storage-migration.cap-C52LxDX2.js} +4 -4
- package/system/dist/{storage-migration.cap-BonKGHaA.mjs → storage-migration.cap-DRl4rt-0.mjs} +4 -4
- package/system/dist/{storage-occupancy.cap-avoVkjfF.js → storage-occupancy.cap-CiGDOgpG.js} +3 -3
- package/system/dist/{storage-occupancy.cap-B_YU_aX3.mjs → storage-occupancy.cap-_VVBswn4.mjs} +3 -3
- package/system/dist/{stream-catalog.cap-Blw9nJ-a.js → stream-catalog.cap-Bl0BSYye.js} +4 -4
- package/system/dist/{stream-catalog.cap-D08FM3ow.mjs → stream-catalog.cap-C7vlYIih.mjs} +4 -4
- package/system/dist/tls/cert-evaluation.d.ts +3 -3
- package/system/dist/tls/cert-issue.d.ts +2 -2
- package/system/dist/tls/cert-manager.d.ts +7 -7
- package/system/dist/tls/tls-actions.d.ts +1 -1
- package/system/dist/tls/tls-status.d.ts +1 -1
- package/system/dist/{user-management.cap-BIOAtxeX.js → user-management.cap-D9EcsR2c.js} +2 -2
- package/system/dist/{user-management.cap-D8lVSHRA.mjs → user-management.cap-mDnBlJay.mjs} +2 -2
- package/system/dist/{wal-maintenance-8cxZxWU2.js → wal-maintenance-BPDo9Jao.js} +9 -9
- package/system/dist/{wal-maintenance-BGa2lDZp.mjs → wal-maintenance-SArcuHLu.mjs} +9 -9
- package/system/package.json +3 -3
|
@@ -435,13 +435,13 @@ var execFileAsync$2 = (0, node_util.promisify)(node_child_process.execFile);
|
|
|
435
435
|
* installer) pass their own.
|
|
436
436
|
*/
|
|
437
437
|
function defaultNpmCacheDir() {
|
|
438
|
-
return node_path.join(node_os.tmpdir(), "
|
|
438
|
+
return node_path.join(node_os.tmpdir(), "dominevo-npm-bootstrap");
|
|
439
439
|
}
|
|
440
440
|
/**
|
|
441
441
|
* Native node modules an addon needs at runtime but cannot be bundled
|
|
442
442
|
* (`.node` binary files require ABI-matched compilation). Mirror of the
|
|
443
443
|
* Python `requirements.txt` pattern in `manifest-python-deps.ts` —
|
|
444
|
-
* declared in the addon's `package.json` under `
|
|
444
|
+
* declared in the addon's `package.json` under `dominevo.nativeDependencies`,
|
|
445
445
|
* installed per-addon at install time so the host's regular `npm install`
|
|
446
446
|
* doesn't pull in the union of every camera driver's native deps.
|
|
447
447
|
*
|
|
@@ -449,7 +449,7 @@ function defaultNpmCacheDir() {
|
|
|
449
449
|
* (`docs/superpowers/specs/2026-05-09-bundles-and-builder-modernization-design.md`).
|
|
450
450
|
*
|
|
451
451
|
* Idempotent: hashes the `nativeDependencies` map and writes a marker
|
|
452
|
-
* to `<addonDir>/.
|
|
452
|
+
* to `<addonDir>/.dominevo-native-deps-installed`. Re-installing only
|
|
453
453
|
* happens when the declared set changes.
|
|
454
454
|
*
|
|
455
455
|
* Failure modes:
|
|
@@ -463,7 +463,7 @@ function defaultNpmCacheDir() {
|
|
|
463
463
|
async function installManifestNativeDeps(addonDir, pkgRaw, logger, registry, npmCacheDir) {
|
|
464
464
|
const native = readNativeDeps(pkgRaw);
|
|
465
465
|
if (native == null || Object.keys(native).length === 0) return;
|
|
466
|
-
const markerFile = node_path.join(addonDir, ".
|
|
466
|
+
const markerFile = node_path.join(addonDir, ".dominevo-native-deps-installed");
|
|
467
467
|
const markerHash = hashDeclaration(native);
|
|
468
468
|
if (markerMatches(markerFile, markerHash)) {
|
|
469
469
|
logger.debug("Native deps already installed (marker matches)", { meta: {
|
|
@@ -589,11 +589,11 @@ function candidateHoistedDirs(name, addonDir) {
|
|
|
589
589
|
}
|
|
590
590
|
return dirs;
|
|
591
591
|
}
|
|
592
|
-
/** Read & validate `
|
|
592
|
+
/** Read & validate `dominevo.nativeDependencies`. Returns null when absent. */
|
|
593
593
|
function readNativeDeps(pkgRaw) {
|
|
594
|
-
const
|
|
595
|
-
if (!
|
|
596
|
-
const native = (0, _dominevo_types_addon.asJsonObject)(
|
|
594
|
+
const dominevo = (0, _dominevo_types_addon.asJsonObject)(pkgRaw["dominevo"]);
|
|
595
|
+
if (!dominevo) return null;
|
|
596
|
+
const native = (0, _dominevo_types_addon.asJsonObject)(dominevo["nativeDependencies"]);
|
|
597
597
|
if (!native) return null;
|
|
598
598
|
const out = {};
|
|
599
599
|
for (const [k, v] of Object.entries(native)) {
|
|
@@ -693,7 +693,7 @@ async function rebuildNativeDeps(addonDir, packageNames, logger, npmCacheDir, re
|
|
|
693
693
|
//#region src/kernel/deps/manifest-python-deps.ts
|
|
694
694
|
/**
|
|
695
695
|
* Auto-install the pip requirements file declared in an addon's manifest
|
|
696
|
-
* (`
|
|
696
|
+
* (`dominevo.addons[].python.requirements`) into the embedded portable
|
|
697
697
|
* Python before `onInitialize()` runs.
|
|
698
698
|
*
|
|
699
699
|
* Idempotent: `installPythonRequirements` skips when the file's content
|
|
@@ -741,7 +741,7 @@ function packageIsAllowlisted(manager, packageName) {
|
|
|
741
741
|
* Who is allowed to run the package manager for this request.
|
|
742
742
|
*
|
|
743
743
|
* Apt/apk/dnf need root. In the Dominevo container that is the
|
|
744
|
-
* `
|
|
744
|
+
* `dominevo-pkgd` helper, not the runner and not hub-main (both uid
|
|
745
745
|
* 1001). Brew is owned by the logged-in user, so it stays in-process.
|
|
746
746
|
*/
|
|
747
747
|
function decidePackageInstall(input) {
|
|
@@ -757,7 +757,7 @@ function decidePackageInstall(input) {
|
|
|
757
757
|
return { kind: "helper" };
|
|
758
758
|
}
|
|
759
759
|
function pkgdSocketPath() {
|
|
760
|
-
return process.env["
|
|
760
|
+
return process.env["DOMINEVO_PKGD_SOCKET"] ?? "/run/dominevo/pkgd.sock";
|
|
761
761
|
}
|
|
762
762
|
function privilegedHelperAvailable(socketPath = pkgdSocketPath()) {
|
|
763
763
|
return (0, node_fs.existsSync)(socketPath);
|
|
@@ -826,10 +826,10 @@ function requestPrivilegedInstall(req, socketPath = pkgdSocketPath(), timeoutMs
|
|
|
826
826
|
//#region src/kernel/deps/manifest-system-deps.ts
|
|
827
827
|
/**
|
|
828
828
|
* Auto-install the host binaries declared in an addon's manifest
|
|
829
|
-
* (`
|
|
829
|
+
* (`dominevo.addons[].systemDependencies`) before `onInitialize()` runs.
|
|
830
830
|
*
|
|
831
831
|
* ── Why this is framework and not addon-local ──────────────────────────────
|
|
832
|
-
* The Python precedent (`
|
|
832
|
+
* The Python precedent (`dominevo.addons[].python.requirements` →
|
|
833
833
|
* `installManifestPythonDeps`, called from the same place in
|
|
834
834
|
* `addon-runner.ts`) already answers "this addon needs something installed,
|
|
835
835
|
* satisfy it before its caps register". A binary is the same question with a
|
|
@@ -855,7 +855,7 @@ function requestPrivilegedInstall(req, socketPath = pkgdSocketPath(), timeoutMs
|
|
|
855
855
|
* "installed".
|
|
856
856
|
* 5. **Apt is not the runner's.** Distro package managers need root. The
|
|
857
857
|
* runner and hub-main are uid 1001 (`gosu` in the entrypoint). Apt/apk/dnf
|
|
858
|
-
* go through `
|
|
858
|
+
* go through `dominevo-pkgd` (allowlisted). Brew stays in-process.
|
|
859
859
|
*
|
|
860
860
|
* Every branch that declines to install SAYS SO. A dependency step that
|
|
861
861
|
* produced no line at all is indistinguishable from one that never ran, and
|
|
@@ -2484,7 +2484,7 @@ function createLoopDelayMeter(resolutionMs = 20) {
|
|
|
2484
2484
|
* hub-main is the only process in the cluster whose ceiling nobody chose. Every
|
|
2485
2485
|
* forked runner is given V8 heap flags by `process-service.ts`; hub-main gets
|
|
2486
2486
|
* `--max-old-space-size` from `docker-entrypoint.sh` ONLY when the operator sets
|
|
2487
|
-
* `
|
|
2487
|
+
* `DOMINEVO_HUB_HEAP_MB`, and on the live container it is unset — verified
|
|
2488
2488
|
* 2026-08-25 by reading pid 7's argv, a bare `node .../starter.js`. So the
|
|
2489
2489
|
* ceiling in force is whatever V8 derives from the host (4288MB there), and the
|
|
2490
2490
|
* only record of that was a comment inside an image nobody rebuilds to read.
|
|
@@ -2496,7 +2496,7 @@ function heapCeilingOrigin(execArgv = process.execArgv) {
|
|
|
2496
2496
|
return execArgv.some((arg) => /^--max[-_]old[-_]space[-_]size(=|$)/.test(arg)) ? "explicit" : "v8-default";
|
|
2497
2497
|
}
|
|
2498
2498
|
/** Env var the launch-args module hands the node: who chose its heap ceiling. */
|
|
2499
|
-
var HEAP_CEILING_SOURCE_ENV = "
|
|
2499
|
+
var HEAP_CEILING_SOURCE_ENV = "DOMINEVO_HEAP_CEILING_SOURCE";
|
|
2500
2500
|
var LAUNCHER_SOURCES = new Set([
|
|
2501
2501
|
"override",
|
|
2502
2502
|
"legacy-env",
|
|
@@ -2895,7 +2895,7 @@ function parseRssBudgetMb(raw) {
|
|
|
2895
2895
|
return Math.floor(parsed);
|
|
2896
2896
|
}
|
|
2897
2897
|
/** Env var carrying a runner's declared RSS budget from parent to child. */
|
|
2898
|
-
var RUNNER_RSS_BUDGET_ENV = "
|
|
2898
|
+
var RUNNER_RSS_BUDGET_ENV = "DOMINEVO_RUNNER_RSS_BUDGET_MB";
|
|
2899
2899
|
/**
|
|
2900
2900
|
* Start the heap watch + stranded-page reclaimer for ONE addon runner, iff it
|
|
2901
2901
|
* is a heavy one. Returns the stop function, or undefined when nothing started.
|
|
@@ -3128,8 +3128,8 @@ function liftRoutingHints(args) {
|
|
|
3128
3128
|
*/
|
|
3129
3129
|
function localEndpointPath(nodeId) {
|
|
3130
3130
|
const safe = nodeId.replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
3131
|
-
if (process.platform === "win32") return `\\\\.\\pipe\\
|
|
3132
|
-
return (0, node_path.join)((0, node_os.tmpdir)(), `
|
|
3131
|
+
if (process.platform === "win32") return `\\\\.\\pipe\\dominevo-${safe}`;
|
|
3132
|
+
return (0, node_path.join)((0, node_os.tmpdir)(), `dominevo-${safe}.sock`);
|
|
3133
3133
|
}
|
|
3134
3134
|
//#endregion
|
|
3135
3135
|
//#region ../../node_modules/@msgpack/msgpack/dist.esm/utils/utf8.mjs
|
|
@@ -4932,7 +4932,7 @@ var UdsLocalTransportClient = class {
|
|
|
4932
4932
|
/**
|
|
4933
4933
|
* The extension seam. UDS is the only shipped implementation; a future
|
|
4934
4934
|
* transport implements `LocalTransportFactory` and is selected here (e.g. via
|
|
4935
|
-
* a `
|
|
4935
|
+
* a `DOMINEVO_LOCAL_TRANSPORT` env) without touching any consumer.
|
|
4936
4936
|
*/
|
|
4937
4937
|
function createLocalTransport() {
|
|
4938
4938
|
return {
|
|
@@ -9659,13 +9659,13 @@ function createAddonPeerBytesFacility(args) {
|
|
|
9659
9659
|
const offer = offers.get(token);
|
|
9660
9660
|
if (offer === void 0) {
|
|
9661
9661
|
const status = taken.has(token) ? 410 : 404;
|
|
9662
|
-
res.writeHead(status, { "x-
|
|
9662
|
+
res.writeHead(status, { "x-dominevo-peer-bytes": status === 410 ? "offer-used" : "no-offer" });
|
|
9663
9663
|
res.end();
|
|
9664
9664
|
return;
|
|
9665
9665
|
}
|
|
9666
9666
|
if (offer.expiresAtMs <= now()) {
|
|
9667
9667
|
offers.delete(token);
|
|
9668
|
-
res.writeHead(410, { "x-
|
|
9668
|
+
res.writeHead(410, { "x-dominevo-peer-bytes": "offer-expired" }).end();
|
|
9669
9669
|
return;
|
|
9670
9670
|
}
|
|
9671
9671
|
if (req.method === "GET") {
|
|
@@ -9873,7 +9873,7 @@ function createAddonPeerBytesFacility(args) {
|
|
|
9873
9873
|
error: detail
|
|
9874
9874
|
}
|
|
9875
9875
|
});
|
|
9876
|
-
if (!res.headersSent) res.writeHead(503, { "x-
|
|
9876
|
+
if (!res.headersSent) res.writeHead(503, { "x-dominevo-peer-bytes": "file-unreadable" });
|
|
9877
9877
|
res.end();
|
|
9878
9878
|
return;
|
|
9879
9879
|
}
|
|
@@ -9998,7 +9998,7 @@ function createAddonPeerBytesFacility(args) {
|
|
|
9998
9998
|
response.pause();
|
|
9999
9999
|
const status = response.statusCode ?? 0;
|
|
10000
10000
|
if (status < 200 || status >= 300) {
|
|
10001
|
-
const reason = response.headers["x-
|
|
10001
|
+
const reason = response.headers["x-dominevo-peer-bytes"];
|
|
10002
10002
|
response.resume();
|
|
10003
10003
|
req.destroy();
|
|
10004
10004
|
return {
|
|
@@ -10123,7 +10123,7 @@ function createAddonPeerBytesFacility(args) {
|
|
|
10123
10123
|
* in 2026-05 specifically to break that cycle.
|
|
10124
10124
|
*
|
|
10125
10125
|
* Shared per-node store (2026-06): base binaries (Python, ffmpeg, downloaded
|
|
10126
|
-
* tools) are resolved into the NODE data dir (`
|
|
10126
|
+
* tools) are resolved into the NODE data dir (`DOMINEVO_DATA`), not the
|
|
10127
10127
|
* per-addon dir. Every addon on a node reuses one copy instead of downloading
|
|
10128
10128
|
* its own. Because addons run as separate processes that now share one deps
|
|
10129
10129
|
* dir, resolution is guarded by a single-flight (in-process promise cache +
|
|
@@ -10132,7 +10132,7 @@ function createAddonPeerBytesFacility(args) {
|
|
|
10132
10132
|
*/
|
|
10133
10133
|
/** Resolve the node-wide data root (shared by all addon processes on a node). */
|
|
10134
10134
|
function resolveNodeRoot() {
|
|
10135
|
-
return process.env["
|
|
10135
|
+
return process.env["DOMINEVO_DATA"] ?? process.env["DOMINEVO_DATA_DIR"] ?? "dominevo-data";
|
|
10136
10136
|
}
|
|
10137
10137
|
var inFlight = /* @__PURE__ */ new Map();
|
|
10138
10138
|
var LOCK_STALE_MS = 10 * 6e4;
|
|
@@ -10213,7 +10213,7 @@ var AddonDepsManager = class {
|
|
|
10213
10213
|
}
|
|
10214
10214
|
/**
|
|
10215
10215
|
* The native library a requirements file says its packages need
|
|
10216
|
-
* (`#
|
|
10216
|
+
* (`# dominevo-native-dep: edgetpu-delegate`), staged under this node's
|
|
10217
10217
|
* deps dir. Runs on every call — not only the first pip install — so a
|
|
10218
10218
|
* node whose pip marker predates the line still gets the library. A
|
|
10219
10219
|
* platform without a build answers `unavailable` (logged, not thrown); a
|
|
@@ -10234,12 +10234,12 @@ function asBrokerLike(broker) {
|
|
|
10234
10234
|
return broker;
|
|
10235
10235
|
}
|
|
10236
10236
|
/**
|
|
10237
|
-
* Topic prefix for clustered EventBus broadcasts. The `
|
|
10237
|
+
* Topic prefix for clustered EventBus broadcasts. The `dominevo.evt.`
|
|
10238
10238
|
* namespace keeps our events disjoint from Moleculer internal events
|
|
10239
10239
|
* (`$node.*`, `$services.*`) — the `$event-bus` service's
|
|
10240
|
-
* `
|
|
10240
|
+
* `dominevo.evt.**` wildcard handler therefore never sees them.
|
|
10241
10241
|
*/
|
|
10242
|
-
var EVENT_TOPIC_PREFIX = "
|
|
10242
|
+
var EVENT_TOPIC_PREFIX = "dominevo.evt.";
|
|
10243
10243
|
/** Moleculer event-name wildcard the `$event-bus` service subscribes to. */
|
|
10244
10244
|
var EVENT_TOPIC_WILDCARD = `${EVENT_TOPIC_PREFIX}**`;
|
|
10245
10245
|
/** Build the Moleculer broadcast topic for an event category. */
|
|
@@ -10397,8 +10397,8 @@ function acceptInboundCrossNode(broker, category) {
|
|
|
10397
10397
|
* a post-start `createService` propagates via the ~10s heartbeat and
|
|
10398
10398
|
* makes cross-node delivery unreliable in the meantime.
|
|
10399
10399
|
*
|
|
10400
|
-
* The service's single wildcard handler (`
|
|
10401
|
-
* inbound bridge: every `broker.broadcast('
|
|
10400
|
+
* The service's single wildcard handler (`dominevo.evt.**`) is the
|
|
10401
|
+
* inbound bridge: every `broker.broadcast('dominevo.evt.<cat>', event)`
|
|
10402
10402
|
* from any node lands here. Self-origin echoes are dropped (the
|
|
10403
10403
|
* emitting node already delivered synchronously in `emit`).
|
|
10404
10404
|
*
|
|
@@ -11461,10 +11461,10 @@ function runtimeNodeId(runtime) {
|
|
|
11461
11461
|
return runtime.mode === "broker" ? asBrokerLike(runtime.broker).nodeID : runtime.nodeId;
|
|
11462
11462
|
}
|
|
11463
11463
|
/**
|
|
11464
|
-
* Adapt a Moleculer ServiceBroker to the
|
|
11464
|
+
* Adapt a Moleculer ServiceBroker to the dominevo-types `IClusterBroker`
|
|
11465
11465
|
* structural interface so addons can consume cluster-level RPC without
|
|
11466
11466
|
* pulling a moleculer dependency. Method signatures differ slightly
|
|
11467
|
-
* (Moleculer's overloads are wider than the
|
|
11467
|
+
* (Moleculer's overloads are wider than the dominevo contract), so we
|
|
11468
11468
|
* forward through a thin object instead of casting at the boundary.
|
|
11469
11469
|
*/
|
|
11470
11470
|
function adaptBrokerToCluster(broker) {
|
|
@@ -11568,7 +11568,7 @@ async function createUdsAddonContext(client, nodeId, declaration, dataDir, optio
|
|
|
11568
11568
|
async function buildAddonContext(runtime, declaration, dataDir, options) {
|
|
11569
11569
|
const nodeId = runtimeNodeId(runtime);
|
|
11570
11570
|
const addonId = declaration.id;
|
|
11571
|
-
const nodeDataDir = process.env["
|
|
11571
|
+
const nodeDataDir = process.env["DOMINEVO_DATA"] ?? dataDir;
|
|
11572
11572
|
const addonDataDir = node_path.resolve(nodeDataDir, "addons-data", addonId);
|
|
11573
11573
|
node_fs.mkdirSync(addonDataDir, { recursive: true });
|
|
11574
11574
|
if (runtime.mode === "broker") ensureBindingSubscription(runtime.broker);
|
|
@@ -12382,7 +12382,7 @@ async function runWorkerDeviceRestoreWithRetry(addon, context, addonId, sourceNo
|
|
|
12382
12382
|
* zero exceptions (D2/D9). The media-pipeline co-location group was
|
|
12383
12383
|
* dissolved by Phase 5 once frames and audio chunks became serialisable
|
|
12384
12384
|
* (shm `FrameHandle`s / tRPC), so no addon declares `execution.group`
|
|
12385
|
-
* and `
|
|
12385
|
+
* and `DOMINEVO_RUNNER_ADDONS` always carries a single element. The
|
|
12386
12386
|
* runner still accepts a multi-element array structurally — that is a
|
|
12387
12387
|
* mechanism, not a policy; no manifest exercises it.
|
|
12388
12388
|
*
|
|
@@ -12409,12 +12409,12 @@ async function runWorkerDeviceRestoreWithRetry(addon, context, addonId, sourceNo
|
|
|
12409
12409
|
* connect, so init-time logs/events are preserved.
|
|
12410
12410
|
*
|
|
12411
12411
|
* Environment variables:
|
|
12412
|
-
* -
|
|
12413
|
-
* -
|
|
12414
|
-
* -
|
|
12415
|
-
* -
|
|
12416
|
-
* -
|
|
12417
|
-
* -
|
|
12412
|
+
* - DOMINEVO_RUNNER_ID — runner label (becomes the nodeID suffix)
|
|
12413
|
+
* - DOMINEVO_RUNNER_ADDONS — JSON array of `{ addonId, addonDir }`
|
|
12414
|
+
* - DOMINEVO_PARENT_NODE_ID — hub or agent nodeID
|
|
12415
|
+
* - DOMINEVO_PARENT_UDS_PATH — REQUIRED: the parent's UDS endpoint
|
|
12416
|
+
* - DOMINEVO_DATA_DIR — addon data root (default ./dominevo-data)
|
|
12417
|
+
* - DOMINEVO_LOG_LEVEL — log level (default debug)
|
|
12418
12418
|
*
|
|
12419
12419
|
* Exits non-zero on fatal init failures so the parent process supervisor
|
|
12420
12420
|
* can respawn. Graceful SIGTERM/SIGINT triggers `addon.shutdown()` for
|
|
@@ -12428,17 +12428,17 @@ process.on("unhandledRejection", (reason) => {
|
|
|
12428
12428
|
console.error(`[addon-runner CRASH] unhandledRejection: ${(0, _dominevo_types_addon.errMsg)(reason)}\n${reason instanceof Error ? reason.stack ?? "" : ""}`);
|
|
12429
12429
|
});
|
|
12430
12430
|
process.on("exit", (code) => {
|
|
12431
|
-
console.error(`[addon-runner EXIT] code=${String(code)} nodeId=${process.env["
|
|
12431
|
+
console.error(`[addon-runner EXIT] code=${String(code)} nodeId=${process.env["DOMINEVO_RUNNER_ID"] ?? "?"}`);
|
|
12432
12432
|
});
|
|
12433
12433
|
for (const sig of [
|
|
12434
12434
|
"SIGTERM",
|
|
12435
12435
|
"SIGINT",
|
|
12436
12436
|
"SIGHUP"
|
|
12437
12437
|
]) process.on(sig, () => {
|
|
12438
|
-
console.error(`[addon-runner SIGNAL] received ${sig} nodeId=${process.env["
|
|
12438
|
+
console.error(`[addon-runner SIGNAL] received ${sig} nodeId=${process.env["DOMINEVO_RUNNER_ID"] ?? "?"}`);
|
|
12439
12439
|
});
|
|
12440
12440
|
startRunnerParentDeathWatchdog(() => {
|
|
12441
|
-
console.error(`[addon-runner] "${process.env["
|
|
12441
|
+
console.error(`[addon-runner] "${process.env["DOMINEVO_RUNNER_ID"] ?? "?"}" parent died — killing its process group`);
|
|
12442
12442
|
if (!killOwnRunnerGroupAfterParentLoss()) process.exit(0);
|
|
12443
12443
|
});
|
|
12444
12444
|
function isRecord(value) {
|
|
@@ -12450,9 +12450,9 @@ function parseAddonsSpec(raw) {
|
|
|
12450
12450
|
try {
|
|
12451
12451
|
parsed = JSON.parse(raw);
|
|
12452
12452
|
} catch (err) {
|
|
12453
|
-
throw new Error(`[addon-runner]
|
|
12453
|
+
throw new Error(`[addon-runner] DOMINEVO_RUNNER_ADDONS is not valid JSON: ${(0, _dominevo_types_addon.errMsg)(err)}`, { cause: err });
|
|
12454
12454
|
}
|
|
12455
|
-
if (!Array.isArray(parsed)) throw new Error(`[addon-runner]
|
|
12455
|
+
if (!Array.isArray(parsed)) throw new Error(`[addon-runner] DOMINEVO_RUNNER_ADDONS must be a JSON array`);
|
|
12456
12456
|
const specs = [];
|
|
12457
12457
|
for (const entry of parsed) {
|
|
12458
12458
|
if (!isRecord(entry)) throw new Error(`[addon-runner] addon spec is not an object: ${JSON.stringify(entry)}`);
|
|
@@ -12469,7 +12469,7 @@ function parseAddonsSpec(raw) {
|
|
|
12469
12469
|
async function loadAddonModule(addonId, addonDir) {
|
|
12470
12470
|
const pkgJsonPath = node_path.join(addonDir, "package.json");
|
|
12471
12471
|
if (!node_fs.existsSync(pkgJsonPath)) throw new Error(`No package.json at ${addonDir}`);
|
|
12472
|
-
const declaration = JSON.parse(node_fs.readFileSync(pkgJsonPath, "utf-8"))["
|
|
12472
|
+
const declaration = JSON.parse(node_fs.readFileSync(pkgJsonPath, "utf-8"))["dominevo"]?.addons?.find((a) => a.id === addonId);
|
|
12473
12473
|
if (!declaration?.entry) throw new Error(`Addon "${addonId}" not found in ${pkgJsonPath} manifest`);
|
|
12474
12474
|
const entryPath = node_path.resolve(addonDir, declaration.entry);
|
|
12475
12475
|
if (!node_fs.existsSync(entryPath)) throw new Error(`Entry point not found: ${entryPath}`);
|
|
@@ -12484,12 +12484,12 @@ async function loadAddonModule(addonId, addonDir) {
|
|
|
12484
12484
|
};
|
|
12485
12485
|
}
|
|
12486
12486
|
async function main() {
|
|
12487
|
-
const runnerId = process.env["
|
|
12488
|
-
const addonsJson = process.env["
|
|
12489
|
-
const parentNodeId = process.env["
|
|
12490
|
-
const dataDir = process.env["
|
|
12487
|
+
const runnerId = process.env["DOMINEVO_RUNNER_ID"];
|
|
12488
|
+
const addonsJson = process.env["DOMINEVO_RUNNER_ADDONS"];
|
|
12489
|
+
const parentNodeId = process.env["DOMINEVO_PARENT_NODE_ID"];
|
|
12490
|
+
const dataDir = process.env["DOMINEVO_DATA_DIR"] ?? "./dominevo-data";
|
|
12491
12491
|
if (!runnerId || !addonsJson || !parentNodeId) {
|
|
12492
|
-
console.error("[addon-runner] Missing required env vars:
|
|
12492
|
+
console.error("[addon-runner] Missing required env vars: DOMINEVO_RUNNER_ID, DOMINEVO_RUNNER_ADDONS, DOMINEVO_PARENT_NODE_ID");
|
|
12493
12493
|
process.exit(1);
|
|
12494
12494
|
}
|
|
12495
12495
|
let specs;
|
|
@@ -12500,16 +12500,16 @@ async function main() {
|
|
|
12500
12500
|
process.exit(1);
|
|
12501
12501
|
}
|
|
12502
12502
|
if (specs.length === 0) {
|
|
12503
|
-
console.error("[addon-runner]
|
|
12503
|
+
console.error("[addon-runner] DOMINEVO_RUNNER_ADDONS resolved to 0 addons — refusing to start");
|
|
12504
12504
|
process.exit(1);
|
|
12505
12505
|
}
|
|
12506
12506
|
const nodeId = `${parentNodeId}/${runnerId}`;
|
|
12507
|
-
if (!process.env["
|
|
12508
|
-
console.error(`[addon-runner] "${nodeId}"
|
|
12507
|
+
if (!process.env["DOMINEVO_PARENT_UDS_PATH"]) {
|
|
12508
|
+
console.error(`[addon-runner] "${nodeId}" DOMINEVO_PARENT_UDS_PATH is unset — broker-less runner cannot reach its parent. Exiting.`);
|
|
12509
12509
|
process.exit(1);
|
|
12510
12510
|
}
|
|
12511
12511
|
console.log(`[addon-runner] Starting "${nodeId}" (UDS-only) with ${specs.length} addon(s): ${specs.map((s) => s.addonId).join(", ")}`);
|
|
12512
|
-
registerFrameworkResolver(process.env["
|
|
12512
|
+
registerFrameworkResolver(process.env["DOMINEVO_FRAMEWORK_DIR"]);
|
|
12513
12513
|
const loadedModules = [];
|
|
12514
12514
|
for (const spec of specs) try {
|
|
12515
12515
|
const { declaration, AddonClass } = await loadAddonModule(spec.addonId, spec.addonDir);
|
|
@@ -12794,8 +12794,8 @@ async function main() {
|
|
|
12794
12794
|
runnerLog.info(`"${nodeId}" started — ${loaded.length} addon(s) ready (UDS connected)`);
|
|
12795
12795
|
process.stdout.write(`READY:${nodeId}\n`);
|
|
12796
12796
|
const stopHeapWatch = startRunnerHeapWatch({
|
|
12797
|
-
heapProfile: process.env["
|
|
12798
|
-
reclaimSwitch: process.env["
|
|
12797
|
+
heapProfile: process.env["DOMINEVO_RUNNER_HEAP_PROFILE"],
|
|
12798
|
+
reclaimSwitch: process.env["DOMINEVO_RUNNER_HEAP_RECLAIM"],
|
|
12799
12799
|
rssBudgetMb: process.env[RUNNER_RSS_BUDGET_ENV],
|
|
12800
12800
|
label: nodeId,
|
|
12801
12801
|
sink: {
|