@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
package/system/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
3
|
-
const require_base_addon = require("./base-addon
|
|
4
|
-
const require_scoped_settings = require("./scoped-settings-
|
|
5
|
-
const require_rename_composition_block = require("./rename-composition-block-
|
|
6
|
-
const
|
|
3
|
+
const require_base_addon = require("./base-addon-CwtR9jMm.js");
|
|
4
|
+
const require_scoped_settings = require("./scoped-settings-8uzhJVsE.js");
|
|
5
|
+
const require_rename_composition_block = require("./rename-composition-block-CeKeUquQ.js");
|
|
6
|
+
const require_dominevo_error = require("./dominevo-error-CTBRQM6p.js");
|
|
7
7
|
const require_capability_definition = require("./capability-definition-BEVd01Xj.js");
|
|
8
|
-
const require_record_kind = require("./record-kind-
|
|
9
|
-
const require_wal_maintenance = require("./wal-maintenance-
|
|
10
|
-
const require_device_certificate = require("./device-certificate-
|
|
11
|
-
const require_addon_settings_cap = require("./addon-settings.cap-
|
|
12
|
-
const require_named_entity_store = require("./named-entity-store-
|
|
13
|
-
const require_network_access_cap = require("./network-access.cap-
|
|
8
|
+
const require_record_kind = require("./record-kind-BYbL_LNZ.js");
|
|
9
|
+
const require_wal_maintenance = require("./wal-maintenance-BPDo9Jao.js");
|
|
10
|
+
const require_device_certificate = require("./device-certificate-6irX-VEC.js");
|
|
11
|
+
const require_addon_settings_cap = require("./addon-settings.cap-DT34AC0I.js");
|
|
12
|
+
const require_named_entity_store = require("./named-entity-store-B7MMnZq_.js");
|
|
13
|
+
const require_network_access_cap = require("./network-access.cap-C97_DUK9.js");
|
|
14
14
|
const require_constants = require("./constants-C860Y6U4.js");
|
|
15
15
|
const require_addon_id = require("./addon-id-Di0lNJ89.js");
|
|
16
16
|
const require_coral_accelerators = require("./coral-accelerators-C1EB_0sE.js");
|
|
17
|
-
const require_device_ca = require("./device-ca-
|
|
17
|
+
const require_device_ca = require("./device-ca-CXDTXX4c.js");
|
|
18
18
|
const require_read_all_rows$1 = require("./read-all-rows-CVoO1ONM.js");
|
|
19
19
|
const require_log_redactor = require("./log-redactor-Dotri5uG.js");
|
|
20
20
|
const require_builtins_alerts_alerts_addon = require("./builtins/alerts/alerts.addon.js");
|
|
@@ -42,25 +42,25 @@ const require_builtins_loki_logging_index = require("./builtins/loki-logging/ind
|
|
|
42
42
|
const require_builtins_native_metrics_native_metrics_addon = require("./builtins/native-metrics/native-metrics.addon.js");
|
|
43
43
|
const require_builtins_device_history_device_history_addon = require("./builtins/device-history/device-history.addon.js");
|
|
44
44
|
const require_builtins_sqlite_storage_filesystem_storage_addon = require("./builtins/sqlite-storage/filesystem-storage.addon.js");
|
|
45
|
-
const require_legacy_integration_rows_door = require("./legacy-integration-rows-door-
|
|
45
|
+
const require_legacy_integration_rows_door = require("./legacy-integration-rows-door-1c-XBxRt.js");
|
|
46
46
|
const require_builtins_sqlite_storage_sqlite_settings_addon = require("./builtins/sqlite-storage/sqlite-settings.addon.js");
|
|
47
47
|
const require_builtins_sqlite_storage_index = require("./builtins/sqlite-storage/index.js");
|
|
48
48
|
const require_builtins_storage_orchestrator_storage_orchestrator_addon = require("./builtins/storage-orchestrator/storage-orchestrator.addon.js");
|
|
49
49
|
require("./builtins/storage-orchestrator/index.js");
|
|
50
|
-
const require_hub_identity = require("./hub-identity-
|
|
51
|
-
const require_constants$1 = require("./constants-
|
|
50
|
+
const require_hub_identity = require("./hub-identity-DihZeMUF.js");
|
|
51
|
+
const require_constants$1 = require("./constants-B8umFEGY.js");
|
|
52
52
|
const require_builtins_system_config_system_config_addon = require("./builtins/system-config/system-config.addon.js");
|
|
53
53
|
require("./builtins/system-config/index.js");
|
|
54
54
|
const require_builtins_winston_logging_index = require("./builtins/winston-logging/index.js");
|
|
55
|
-
const require_custom_action_registry = require("./custom-action-registry-
|
|
56
|
-
const require_hub_mdns_ciao = require("./hub-mdns-ciao-
|
|
57
|
-
const require_platform_key_source = require("./platform-key-source-
|
|
55
|
+
const require_custom_action_registry = require("./custom-action-registry-C_yB2qlc.js");
|
|
56
|
+
const require_hub_mdns_ciao = require("./hub-mdns-ciao-D2Rcz1Kb.js");
|
|
57
|
+
const require_platform_key_source = require("./platform-key-source-DERonx7U.js");
|
|
58
58
|
const require_resource_monitor = require("./resource-monitor-mio9dSCT.js");
|
|
59
|
-
const require_restore_archive = require("./restore-archive-
|
|
59
|
+
const require_restore_archive = require("./restore-archive-LKIQ4CNL.js");
|
|
60
60
|
let zod = require("zod");
|
|
61
|
+
let _dominevo_types_node = require("@dominevo/types/node");
|
|
61
62
|
let node_crypto = require("node:crypto");
|
|
62
63
|
node_crypto = require_chunk.__toESM(node_crypto);
|
|
63
|
-
let _dominevo_types_node = require("@dominevo/types/node");
|
|
64
64
|
let node_net = require("node:net");
|
|
65
65
|
let node_fs = require("node:fs");
|
|
66
66
|
node_fs = require_chunk.__toESM(node_fs);
|
|
@@ -3166,7 +3166,7 @@ function createLoopDelayMeter(resolutionMs = 20) {
|
|
|
3166
3166
|
* hub-main is the only process in the cluster whose ceiling nobody chose. Every
|
|
3167
3167
|
* forked runner is given V8 heap flags by `process-service.ts`; hub-main gets
|
|
3168
3168
|
* `--max-old-space-size` from `docker-entrypoint.sh` ONLY when the operator sets
|
|
3169
|
-
* `
|
|
3169
|
+
* `DOMINEVO_HUB_HEAP_MB`, and on the live container it is unset — verified
|
|
3170
3170
|
* 2026-08-25 by reading pid 7's argv, a bare `node .../starter.js`. So the
|
|
3171
3171
|
* ceiling in force is whatever V8 derives from the host (4288MB there), and the
|
|
3172
3172
|
* only record of that was a comment inside an image nobody rebuilds to read.
|
|
@@ -3178,7 +3178,7 @@ function heapCeilingOrigin(execArgv = process.execArgv) {
|
|
|
3178
3178
|
return execArgv.some((arg) => /^--max[-_]old[-_]space[-_]size(=|$)/.test(arg)) ? "explicit" : "v8-default";
|
|
3179
3179
|
}
|
|
3180
3180
|
/** Env var the launch-args module hands the node: who chose its heap ceiling. */
|
|
3181
|
-
var HEAP_CEILING_SOURCE_ENV = "
|
|
3181
|
+
var HEAP_CEILING_SOURCE_ENV = "DOMINEVO_HEAP_CEILING_SOURCE";
|
|
3182
3182
|
var LAUNCHER_SOURCES = new Set([
|
|
3183
3183
|
"override",
|
|
3184
3184
|
"legacy-env",
|
|
@@ -3633,16 +3633,16 @@ function parseRssBudgetMb(raw) {
|
|
|
3633
3633
|
return Math.floor(parsed);
|
|
3634
3634
|
}
|
|
3635
3635
|
/** Env var carrying a runner's declared RSS budget from parent to child. */
|
|
3636
|
-
var RUNNER_RSS_BUDGET_ENV = "
|
|
3636
|
+
var RUNNER_RSS_BUDGET_ENV = "DOMINEVO_RUNNER_RSS_BUDGET_MB";
|
|
3637
3637
|
/** Operator override for hub-main's budget, applied without a release. */
|
|
3638
|
-
var HUB_RSS_BUDGET_ENV = "
|
|
3638
|
+
var HUB_RSS_BUDGET_ENV = "DOMINEVO_HUB_RSS_BUDGET_MB";
|
|
3639
3639
|
/**
|
|
3640
3640
|
* hub-main's declared RSS budget, in MB.
|
|
3641
3641
|
*
|
|
3642
3642
|
* ## Why the number lives HERE and not in the image
|
|
3643
3643
|
*
|
|
3644
3644
|
* hub-main has no manifest to declare it in, and the obvious alternative — the
|
|
3645
|
-
* entrypoint that already knew about `
|
|
3645
|
+
* entrypoint that already knew about `DOMINEVO_HUB_HEAP_MB` — is the least
|
|
3646
3646
|
* deployable surface in this system. The Dockerfile says so itself: the image
|
|
3647
3647
|
* never contains this repo's backend, so a value written there reaches a running
|
|
3648
3648
|
* hub only on an image rebuild. `main.ts` is what `applyServerUpdate` replaces,
|
|
@@ -3983,13 +3983,13 @@ function createAddonPeerBytesFacility(args) {
|
|
|
3983
3983
|
const offer = offers.get(token);
|
|
3984
3984
|
if (offer === void 0) {
|
|
3985
3985
|
const status = taken.has(token) ? 410 : 404;
|
|
3986
|
-
res.writeHead(status, { "x-
|
|
3986
|
+
res.writeHead(status, { "x-dominevo-peer-bytes": status === 410 ? "offer-used" : "no-offer" });
|
|
3987
3987
|
res.end();
|
|
3988
3988
|
return;
|
|
3989
3989
|
}
|
|
3990
3990
|
if (offer.expiresAtMs <= now()) {
|
|
3991
3991
|
offers.delete(token);
|
|
3992
|
-
res.writeHead(410, { "x-
|
|
3992
|
+
res.writeHead(410, { "x-dominevo-peer-bytes": "offer-expired" }).end();
|
|
3993
3993
|
return;
|
|
3994
3994
|
}
|
|
3995
3995
|
if (req.method === "GET") {
|
|
@@ -4197,7 +4197,7 @@ function createAddonPeerBytesFacility(args) {
|
|
|
4197
4197
|
error: detail
|
|
4198
4198
|
}
|
|
4199
4199
|
});
|
|
4200
|
-
if (!res.headersSent) res.writeHead(503, { "x-
|
|
4200
|
+
if (!res.headersSent) res.writeHead(503, { "x-dominevo-peer-bytes": "file-unreadable" });
|
|
4201
4201
|
res.end();
|
|
4202
4202
|
return;
|
|
4203
4203
|
}
|
|
@@ -4322,7 +4322,7 @@ function createAddonPeerBytesFacility(args) {
|
|
|
4322
4322
|
response.pause();
|
|
4323
4323
|
const status = response.statusCode ?? 0;
|
|
4324
4324
|
if (status < 200 || status >= 300) {
|
|
4325
|
-
const reason = response.headers["x-
|
|
4325
|
+
const reason = response.headers["x-dominevo-peer-bytes"];
|
|
4326
4326
|
response.resume();
|
|
4327
4327
|
req.destroy();
|
|
4328
4328
|
return {
|
|
@@ -5702,7 +5702,7 @@ var PythonEnvManager = class {
|
|
|
5702
5702
|
}
|
|
5703
5703
|
async ensure(options) {
|
|
5704
5704
|
const probe = await this.probe();
|
|
5705
|
-
if (!probe.available || !probe.path) throw
|
|
5705
|
+
if (!probe.available || !probe.path) throw require_dominevo_error.userError("system.python-required", void 0, "Python 3.10+ is required but not found on this system");
|
|
5706
5706
|
if (!node_fs.existsSync(node_path.join(this.venvPath, "bin", "python"))) await execFileAsync$7(probe.path, [
|
|
5707
5707
|
"-m",
|
|
5708
5708
|
"venv",
|
|
@@ -5899,7 +5899,7 @@ var StorageLocationManager = class {
|
|
|
5899
5899
|
media: (0, node_path.join)(this.dataPath, "media"),
|
|
5900
5900
|
recordings: (0, node_path.join)(this.dataPath, "recordings"),
|
|
5901
5901
|
models: (0, node_path.join)(this.dataPath, "models"),
|
|
5902
|
-
cache: "/tmp/
|
|
5902
|
+
cache: "/tmp/dominevo-cache",
|
|
5903
5903
|
logs: (0, node_path.join)(this.dataPath, "logs")
|
|
5904
5904
|
};
|
|
5905
5905
|
for (const [name, path] of Object.entries(defaults)) {
|
|
@@ -5970,7 +5970,7 @@ var StorageManager = class {
|
|
|
5970
5970
|
}
|
|
5971
5971
|
getProvider() {
|
|
5972
5972
|
if (this.legacyProvider) return this.legacyProvider;
|
|
5973
|
-
if (!this.newStorageProvider && !this.settingsBackend && !this.locationManager) throw
|
|
5973
|
+
if (!this.newStorageProvider && !this.settingsBackend && !this.locationManager) throw require_dominevo_error.userError("storage.no-provider", void 0, "No storage provider configured");
|
|
5974
5974
|
return this.createLegacyShim();
|
|
5975
5975
|
}
|
|
5976
5976
|
setLocationManager(manager) {
|
|
@@ -5993,7 +5993,7 @@ var StorageManager = class {
|
|
|
5993
5993
|
* Builds IStorageLocation from settingsBackend (structured) + locationManager (files).
|
|
5994
5994
|
*/
|
|
5995
5995
|
getLocation(name, namespace) {
|
|
5996
|
-
if (!this.legacyProvider && !this.newStorageProvider && !this.settingsBackend && !this.locationManager) throw
|
|
5996
|
+
if (!this.legacyProvider && !this.newStorageProvider && !this.settingsBackend && !this.locationManager) throw require_dominevo_error.userError("storage.no-provider", void 0, "No storage provider configured");
|
|
5997
5997
|
if (this.legacyProvider) try {
|
|
5998
5998
|
const LEGACY_MAP = {
|
|
5999
5999
|
config: "data",
|
|
@@ -6184,7 +6184,7 @@ function buildAgentAnnouncement(inputs) {
|
|
|
6184
6184
|
if (inputs.name !== void 0 && inputs.name !== null && inputs.name.length > 0) txt[require_network_access_cap.AGENT_MDNS_TXT_KEYS.name] = inputs.name;
|
|
6185
6185
|
if (inputs.leafFingerprint !== null) txt[require_network_access_cap.AGENT_MDNS_TXT_KEYS.keyFingerprint] = inputs.leafFingerprint;
|
|
6186
6186
|
return {
|
|
6187
|
-
name: `
|
|
6187
|
+
name: `dominevo-agent-${inputs.nodeId}`,
|
|
6188
6188
|
type: require_network_access_cap.AGENT_MDNS_SERVICE_TYPE,
|
|
6189
6189
|
port: inputs.port,
|
|
6190
6190
|
address: null,
|
|
@@ -6237,7 +6237,7 @@ var AgentMdnsAdvertiser = class {
|
|
|
6237
6237
|
key,
|
|
6238
6238
|
handle
|
|
6239
6239
|
};
|
|
6240
|
-
this.options.logger.info("agent mDNS: advertising
|
|
6240
|
+
this.options.logger.info("agent mDNS: advertising _dominevo-agent._tcp", { meta: {
|
|
6241
6241
|
state: inputs.state,
|
|
6242
6242
|
port: inputs.port
|
|
6243
6243
|
} });
|
|
@@ -7058,7 +7058,7 @@ async function importAddonModuleFresh(entryPath) {
|
|
|
7058
7058
|
return import(`${(0, node_url.pathToFileURL)(entryPath).href}?v=${encodeURIComponent(bust)}`);
|
|
7059
7059
|
}
|
|
7060
7060
|
/**
|
|
7061
|
-
* Package.json manifest boundary: the `
|
|
7061
|
+
* Package.json manifest boundary: the `dominevo` field is authored by third-party
|
|
7062
7062
|
* addon packages. We minimally validate that it looks like an AddonPackageManifest
|
|
7063
7063
|
* (has an `addons` array whose entries carry string `id`s) and pass it through as
|
|
7064
7064
|
* typed. This is one documented type-level bridge — the shape contract lives in
|
|
@@ -7091,7 +7091,7 @@ var noopLogger$1 = {
|
|
|
7091
7091
|
* Pure extraction of per-addon storage-location declarations from a set of
|
|
7092
7092
|
* registered addons. Each registered addon carries its manifest declaration
|
|
7093
7093
|
* (`RegisteredAddon.declaration`), whose optional `storageLocations` array is
|
|
7094
|
-
* the `
|
|
7094
|
+
* the `dominevo.addons[].storageLocations` entry authored in package.json.
|
|
7095
7095
|
*
|
|
7096
7096
|
* Returns ONE inner array per addon that declared at least one location;
|
|
7097
7097
|
* addons declaring nothing are omitted entirely (no empty arrays). The result
|
|
@@ -7180,7 +7180,7 @@ var AddonLoader = class {
|
|
|
7180
7180
|
const packageName = typeof packageNameRaw === "string" ? packageNameRaw : "";
|
|
7181
7181
|
const packageVersionRaw = pkgJson["version"];
|
|
7182
7182
|
const packageVersion = typeof packageVersionRaw === "string" ? packageVersionRaw : "0.0.0";
|
|
7183
|
-
const manifest = toAddonPackageManifest(pkgJson["
|
|
7183
|
+
const manifest = toAddonPackageManifest(pkgJson["dominevo"]);
|
|
7184
7184
|
if (!manifest?.addons?.length) return;
|
|
7185
7185
|
this.clearLoadFailures(packageName);
|
|
7186
7186
|
for (const declaration of manifest.addons) try {
|
|
@@ -7280,7 +7280,7 @@ var AddonLoader = class {
|
|
|
7280
7280
|
* Per-addon storage-location declarations across every registered addon.
|
|
7281
7281
|
*
|
|
7282
7282
|
* Each registered addon's `declaration.storageLocations` (the
|
|
7283
|
-
* `
|
|
7283
|
+
* `dominevo.addons[].storageLocations` array from package.json) is surfaced
|
|
7284
7284
|
* as one inner array; addons declaring nothing are omitted. The result is
|
|
7285
7285
|
* fed directly to `buildStorageLocationRegistry(perAddon)` so the
|
|
7286
7286
|
* storage-orchestrator can aggregate declarations and seed `<id>:default`
|
|
@@ -7357,7 +7357,7 @@ function isDirectoryEntry(entry, parentDir) {
|
|
|
7357
7357
|
/**
|
|
7358
7358
|
* Narrow a dynamic addon method to a callable with the given signature.
|
|
7359
7359
|
*
|
|
7360
|
-
* Type-level bridge:
|
|
7360
|
+
* Type-level bridge: IDominevoAddon does not yet declare process/classifyAudio;
|
|
7361
7361
|
* dynamic dispatch is guarded by a `typeof === 'function'` check. Remove once
|
|
7362
7362
|
* the addon interface is extended with an engine trait.
|
|
7363
7363
|
*/
|
|
@@ -7366,7 +7366,7 @@ function resolveAddonMethod(target, name) {
|
|
|
7366
7366
|
if (typeof fn !== "function") return null;
|
|
7367
7367
|
return fn.bind(target);
|
|
7368
7368
|
}
|
|
7369
|
-
/** Wrap an
|
|
7369
|
+
/** Wrap an IDominevoAddon as IEngineInstance — typed process/classifyAudio access */
|
|
7370
7370
|
function toEngineInstance(addon, addonId) {
|
|
7371
7371
|
const processFn = resolveAddonMethod(addon, "process");
|
|
7372
7372
|
const classifyAudioFn = resolveAddonMethod(addon, "classifyAudio");
|
|
@@ -7470,7 +7470,7 @@ async function copyDirRecursive(src, dest) {
|
|
|
7470
7470
|
* `addons/` stays node_modules-free, which is what lets the backup tar the whole
|
|
7471
7471
|
* folder with no exclusion list (see ADR-0027). An addon that genuinely needs an
|
|
7472
7472
|
* un-bundleable runtime dep declares it explicitly in
|
|
7473
|
-
* `
|
|
7473
|
+
* `dominevo.runtimeDependencies`.
|
|
7474
7474
|
*
|
|
7475
7475
|
* (Historically this mirrored the build preset's COMMON_NATIVE_DEPS and
|
|
7476
7476
|
* per-addon-installed node-av/sharp/onnxruntime-node/ssh2/werift/systeminformation
|
|
@@ -7478,12 +7478,12 @@ async function copyDirRecursive(src, dest) {
|
|
|
7478
7478
|
* is removed: the natives come from the framework, the pure-JS from the bundle.)
|
|
7479
7479
|
*/
|
|
7480
7480
|
var RUNTIME_NATIVE_KEEP = [];
|
|
7481
|
-
/** Read `
|
|
7481
|
+
/** Read `dominevo.runtimeDependencies` (extra non-native deps the dist
|
|
7482
7482
|
* requires at runtime — versions come from the manifest's own dep maps). */
|
|
7483
7483
|
function readRuntimeDependencies(pkg) {
|
|
7484
|
-
const
|
|
7485
|
-
if (
|
|
7486
|
-
const raw =
|
|
7484
|
+
const dominevo = pkg.dominevo;
|
|
7485
|
+
if (dominevo === null || typeof dominevo !== "object" || Array.isArray(dominevo)) return [];
|
|
7486
|
+
const raw = dominevo.runtimeDependencies;
|
|
7487
7487
|
if (!Array.isArray(raw)) return [];
|
|
7488
7488
|
return raw.filter((entry) => typeof entry === "string");
|
|
7489
7489
|
}
|
|
@@ -7491,7 +7491,7 @@ function readRuntimeDependencies(pkg) {
|
|
|
7491
7491
|
* Strip every dependency an addon's self-contained dist has already bundled,
|
|
7492
7492
|
* keeping ONLY what must resolve from node_modules at runtime:
|
|
7493
7493
|
*
|
|
7494
|
-
* keep = RUNTIME_NATIVE_KEEP ∪
|
|
7494
|
+
* keep = RUNTIME_NATIVE_KEEP ∪ dominevo.runtimeDependencies (minus @dominevo/*)
|
|
7495
7495
|
*
|
|
7496
7496
|
* Addon dists are fully bundled (vite `externals: 'self-contained'`), yet the
|
|
7497
7497
|
* blanket `npm install` of the manifest's dependencies re-installed the whole
|
|
@@ -7504,8 +7504,8 @@ function readRuntimeDependencies(pkg) {
|
|
|
7504
7504
|
* Returns a new object (immutable).
|
|
7505
7505
|
*/
|
|
7506
7506
|
function stripBundledDeps(pkg) {
|
|
7507
|
-
const
|
|
7508
|
-
if (
|
|
7507
|
+
const dominevo = pkg.dominevo;
|
|
7508
|
+
if (dominevo !== null && typeof dominevo === "object" && !Array.isArray(dominevo) && dominevo.system === true) return stripDominevoDeps(pkg);
|
|
7509
7509
|
const keep = new Set([...RUNTIME_NATIVE_KEEP, ...readRuntimeDependencies(pkg)]);
|
|
7510
7510
|
const kept = {};
|
|
7511
7511
|
for (const depType of ["dependencies", "peerDependencies"]) {
|
|
@@ -7530,7 +7530,7 @@ function stripBundledDeps(pkg) {
|
|
|
7530
7530
|
*
|
|
7531
7531
|
* Returns a new object (immutable).
|
|
7532
7532
|
*/
|
|
7533
|
-
function
|
|
7533
|
+
function stripDominevoDeps(pkg) {
|
|
7534
7534
|
const result = { ...pkg };
|
|
7535
7535
|
for (const depType of [
|
|
7536
7536
|
"dependencies",
|
|
@@ -7595,7 +7595,7 @@ function isSourceNewer(packageDir) {
|
|
|
7595
7595
|
}
|
|
7596
7596
|
/**
|
|
7597
7597
|
* Install a single npm package into a target directory (package.json + dist/).
|
|
7598
|
-
* No validation on
|
|
7598
|
+
* No validation on dominevo.addons -- works for any @dominevo/* package.
|
|
7599
7599
|
*
|
|
7600
7600
|
* ASYNC: uses `execFile`/`fs.promises` throughout so a package install on a
|
|
7601
7601
|
* live node never blocks the event loop (the `npm pack` + tar extract + copy to
|
|
@@ -7603,7 +7603,7 @@ function isSourceNewer(packageDir) {
|
|
|
7603
7603
|
* `copyDirRecursive` for the wedge this prevents.
|
|
7604
7604
|
*/
|
|
7605
7605
|
async function installPackageFromNpm(packageName, targetDir) {
|
|
7606
|
-
const tmpDir = await node_fs.promises.mkdtemp(node_path.join(node_os.tmpdir(), "
|
|
7606
|
+
const tmpDir = await node_fs.promises.mkdtemp(node_path.join(node_os.tmpdir(), "dominevo-install-"));
|
|
7607
7607
|
try {
|
|
7608
7608
|
const { stdout } = await execFileAsync$4("npm", [
|
|
7609
7609
|
"pack",
|
|
@@ -7812,7 +7812,7 @@ var AddonManifest = class {
|
|
|
7812
7812
|
continue;
|
|
7813
7813
|
}
|
|
7814
7814
|
if (!pkgJson.name || !pkgJson.version) continue;
|
|
7815
|
-
const addons = pkgJson.
|
|
7815
|
+
const addons = pkgJson.dominevo?.addons;
|
|
7816
7816
|
if (!Array.isArray(addons) || addons.length === 0) continue;
|
|
7817
7817
|
if (packageDirName$1(pkgJson.name) !== pkg.name) continue;
|
|
7818
7818
|
onDisk.set(pkgJson.name, pkgJson.version);
|
|
@@ -7949,7 +7949,7 @@ function isPrereleaseAhead(installed, target) {
|
|
|
7949
7949
|
* `installed === null` with a known target is a first install of that target.
|
|
7950
7950
|
*
|
|
7951
7951
|
* `unmet` is what the TARGET declares and this node does not meet (computed by
|
|
7952
|
-
* the caller from the target's `
|
|
7952
|
+
* the caller from the target's `dominevo.requires`). A move that would happen
|
|
7953
7953
|
* is held and says why; a node that is already on the target has nothing to hold.
|
|
7954
7954
|
* A prerelease installed ahead of a registry target is never moved down.
|
|
7955
7955
|
*/
|
|
@@ -7978,7 +7978,7 @@ function decideAddonVersionMove(installed, target, reason, unmet = []) {
|
|
|
7978
7978
|
* closure already provides.
|
|
7979
7979
|
*
|
|
7980
7980
|
* `installRuntimeDependencies` materialises each addon's declared
|
|
7981
|
-
* `
|
|
7981
|
+
* `dominevo.runtimeDependencies` (and their whole transitive tree) under
|
|
7982
7982
|
* `<addonsDir>/<pkg>/node_modules`. Measured on the live hub (2026-09-04):
|
|
7983
7983
|
* 196 MB across 23 addons, largely re-copies of libraries sitting one
|
|
7984
7984
|
* directory away in `/data/server-root/current/node_modules` — `mediabunny`
|
|
@@ -8079,7 +8079,7 @@ function planClosureDedupe(input) {
|
|
|
8079
8079
|
if (candidate.name.startsWith("@dominevo/")) {
|
|
8080
8080
|
keeps.push({
|
|
8081
8081
|
name: candidate.name,
|
|
8082
|
-
reason: "
|
|
8082
|
+
reason: "dominevo-package"
|
|
8083
8083
|
});
|
|
8084
8084
|
continue;
|
|
8085
8085
|
}
|
|
@@ -8234,12 +8234,12 @@ function readClosureVersions(closureNodeModulesDir, names) {
|
|
|
8234
8234
|
/**
|
|
8235
8235
|
* Where the running node's server closure keeps its node_modules, or null
|
|
8236
8236
|
* when there is none to dedupe against (dev workspace, tests without a
|
|
8237
|
-
* closure). `
|
|
8237
|
+
* closure). `DOMINEVO_FRAMEWORK_DIR` is set by the starter/launcher on every
|
|
8238
8238
|
* deployed node — the same directory the framework resolver hook and
|
|
8239
8239
|
* NODE_PATH extension already point at.
|
|
8240
8240
|
*/
|
|
8241
8241
|
function resolveClosureNodeModulesDir(explicitDir) {
|
|
8242
|
-
const frameworkDir = explicitDir ?? process.env["
|
|
8242
|
+
const frameworkDir = explicitDir ?? process.env["DOMINEVO_FRAMEWORK_DIR"];
|
|
8243
8243
|
if (frameworkDir === void 0 || frameworkDir.length === 0) return null;
|
|
8244
8244
|
const nodeModulesDir = explicitDir ?? node_path.join(frameworkDir, "node_modules");
|
|
8245
8245
|
return node_fs.existsSync(nodeModulesDir) ? nodeModulesDir : null;
|
|
@@ -8323,13 +8323,13 @@ var execFileAsync$3 = (0, node_util.promisify)(node_child_process.execFile);
|
|
|
8323
8323
|
* installer) pass their own.
|
|
8324
8324
|
*/
|
|
8325
8325
|
function defaultNpmCacheDir() {
|
|
8326
|
-
return node_path.join(node_os.tmpdir(), "
|
|
8326
|
+
return node_path.join(node_os.tmpdir(), "dominevo-npm-bootstrap");
|
|
8327
8327
|
}
|
|
8328
8328
|
/**
|
|
8329
8329
|
* Native node modules an addon needs at runtime but cannot be bundled
|
|
8330
8330
|
* (`.node` binary files require ABI-matched compilation). Mirror of the
|
|
8331
8331
|
* Python `requirements.txt` pattern in `manifest-python-deps.ts` —
|
|
8332
|
-
* declared in the addon's `package.json` under `
|
|
8332
|
+
* declared in the addon's `package.json` under `dominevo.nativeDependencies`,
|
|
8333
8333
|
* installed per-addon at install time so the host's regular `npm install`
|
|
8334
8334
|
* doesn't pull in the union of every camera driver's native deps.
|
|
8335
8335
|
*
|
|
@@ -8337,7 +8337,7 @@ function defaultNpmCacheDir() {
|
|
|
8337
8337
|
* (`docs/superpowers/specs/2026-05-09-bundles-and-builder-modernization-design.md`).
|
|
8338
8338
|
*
|
|
8339
8339
|
* Idempotent: hashes the `nativeDependencies` map and writes a marker
|
|
8340
|
-
* to `<addonDir>/.
|
|
8340
|
+
* to `<addonDir>/.dominevo-native-deps-installed`. Re-installing only
|
|
8341
8341
|
* happens when the declared set changes.
|
|
8342
8342
|
*
|
|
8343
8343
|
* Failure modes:
|
|
@@ -8351,7 +8351,7 @@ function defaultNpmCacheDir() {
|
|
|
8351
8351
|
async function installManifestNativeDeps(addonDir, pkgRaw, logger, registry, npmCacheDir) {
|
|
8352
8352
|
const native = readNativeDeps(pkgRaw);
|
|
8353
8353
|
if (native == null || Object.keys(native).length === 0) return;
|
|
8354
|
-
const markerFile = node_path.join(addonDir, ".
|
|
8354
|
+
const markerFile = node_path.join(addonDir, ".dominevo-native-deps-installed");
|
|
8355
8355
|
const markerHash = hashDeclaration(native);
|
|
8356
8356
|
if (markerMatches(markerFile, markerHash)) {
|
|
8357
8357
|
logger.debug("Native deps already installed (marker matches)", { meta: {
|
|
@@ -8563,11 +8563,11 @@ function candidateHoistedDirs(name, addonDir) {
|
|
|
8563
8563
|
}
|
|
8564
8564
|
return dirs;
|
|
8565
8565
|
}
|
|
8566
|
-
/** Read & validate `
|
|
8566
|
+
/** Read & validate `dominevo.nativeDependencies`. Returns null when absent. */
|
|
8567
8567
|
function readNativeDeps(pkgRaw) {
|
|
8568
|
-
const
|
|
8569
|
-
if (!
|
|
8570
|
-
const native = (0, _dominevo_types_addon.asJsonObject)(
|
|
8568
|
+
const dominevo = (0, _dominevo_types_addon.asJsonObject)(pkgRaw["dominevo"]);
|
|
8569
|
+
if (!dominevo) return null;
|
|
8570
|
+
const native = (0, _dominevo_types_addon.asJsonObject)(dominevo["nativeDependencies"]);
|
|
8571
8571
|
if (!native) return null;
|
|
8572
8572
|
const out = {};
|
|
8573
8573
|
for (const [k, v] of Object.entries(native)) {
|
|
@@ -8678,7 +8678,7 @@ function listHeldInstalls() {
|
|
|
8678
8678
|
//#endregion
|
|
8679
8679
|
//#region src/kernel/requires-registry.ts
|
|
8680
8680
|
/**
|
|
8681
|
-
* Reading `
|
|
8681
|
+
* Reading `dominevo.requires` and the version list of a package from the npm
|
|
8682
8682
|
* registry, through the SAME doors the install uses (planning#447, D989).
|
|
8683
8683
|
*
|
|
8684
8684
|
* The install fetches the registry document over plain HTTP and falls back to
|
|
@@ -8730,8 +8730,8 @@ function createRequiresRegistry(deps) {
|
|
|
8730
8730
|
if (res.ok) {
|
|
8731
8731
|
const doc = await res.json();
|
|
8732
8732
|
if (typeof doc === "object" && doc !== null) {
|
|
8733
|
-
const
|
|
8734
|
-
return parseRequires(typeof
|
|
8733
|
+
const dominevo = Reflect.get(doc, "dominevo");
|
|
8734
|
+
return parseRequires(typeof dominevo === "object" && dominevo !== null ? Reflect.get(dominevo, "requires") : void 0);
|
|
8735
8735
|
}
|
|
8736
8736
|
}
|
|
8737
8737
|
} catch (err) {
|
|
@@ -8740,7 +8740,7 @@ function createRequiresRegistry(deps) {
|
|
|
8740
8740
|
return parseRequires(await viaNpm([
|
|
8741
8741
|
"view",
|
|
8742
8742
|
`${packageName}@${spec}`,
|
|
8743
|
-
"
|
|
8743
|
+
"dominevo.requires",
|
|
8744
8744
|
"--json"
|
|
8745
8745
|
]));
|
|
8746
8746
|
},
|
|
@@ -8771,15 +8771,15 @@ function createRequiresRegistry(deps) {
|
|
|
8771
8771
|
//#region src/kernel/addon-installer.ts
|
|
8772
8772
|
var execFileAsync$2 = (0, node_util.promisify)(node_child_process.execFile);
|
|
8773
8773
|
/**
|
|
8774
|
-
* Names declared in `
|
|
8774
|
+
* Names declared in `dominevo.nativeDependencies` — per-addon natives that
|
|
8775
8775
|
* the closure dedupe must never replace with a link (their install path owns
|
|
8776
8776
|
* ABI/prebuild handling; see `deps/manifest-native-deps.ts`).
|
|
8777
8777
|
*/
|
|
8778
8778
|
function readNativeDependencyNames(pkg) {
|
|
8779
8779
|
if (pkg === void 0) return /* @__PURE__ */ new Set();
|
|
8780
|
-
const
|
|
8781
|
-
if (
|
|
8782
|
-
const native = require_wal_maintenance.asJsonObject(
|
|
8780
|
+
const dominevo = require_wal_maintenance.asJsonObject(pkg["dominevo"]);
|
|
8781
|
+
if (dominevo === null) return /* @__PURE__ */ new Set();
|
|
8782
|
+
const native = require_wal_maintenance.asJsonObject(dominevo["nativeDependencies"]);
|
|
8783
8783
|
return native === null ? /* @__PURE__ */ new Set() : new Set(Object.keys(native));
|
|
8784
8784
|
}
|
|
8785
8785
|
function parseInstallSource(value) {
|
|
@@ -8802,13 +8802,13 @@ function readPackageJson(pkgJsonPath) {
|
|
|
8802
8802
|
const name = require_wal_maintenance.asString(raw["name"]);
|
|
8803
8803
|
const version = require_wal_maintenance.asString(raw["version"]);
|
|
8804
8804
|
if (!name || !version) return null;
|
|
8805
|
-
const
|
|
8806
|
-
const addonsField =
|
|
8805
|
+
const dominevo = require_wal_maintenance.asJsonObject(raw["dominevo"]);
|
|
8806
|
+
const addonsField = dominevo ? dominevo["addons"] : void 0;
|
|
8807
8807
|
return {
|
|
8808
8808
|
name,
|
|
8809
8809
|
version,
|
|
8810
8810
|
raw,
|
|
8811
|
-
|
|
8811
|
+
dominevoAddons: Array.isArray(addonsField) ? addonsField : null
|
|
8812
8812
|
};
|
|
8813
8813
|
}
|
|
8814
8814
|
/** The one bootstrap package the server closure carries itself. */
|
|
@@ -8900,7 +8900,7 @@ var AddonInstaller = class AddonInstaller {
|
|
|
8900
8900
|
bundledAddonsDir;
|
|
8901
8901
|
logger;
|
|
8902
8902
|
isPackageResolvable;
|
|
8903
|
-
/** Test seam — production resolves via `
|
|
8903
|
+
/** Test seam — production resolves via `DOMINEVO_FRAMEWORK_DIR`. */
|
|
8904
8904
|
closureNodeModulesDir;
|
|
8905
8905
|
resolveLatestVersionOverride;
|
|
8906
8906
|
serverVersion;
|
|
@@ -8989,7 +8989,7 @@ var AddonInstaller = class AddonInstaller {
|
|
|
8989
8989
|
const raw = node_fs.readFileSync(pkgPath, "utf-8");
|
|
8990
8990
|
const parsed = JSON.parse(raw);
|
|
8991
8991
|
const deps = Object.keys(parsed.dependencies ?? {});
|
|
8992
|
-
const agentOnly = new Set(parsed.
|
|
8992
|
+
const agentOnly = new Set(parsed.dominevo?.agentOnlyBootstrapAddons ?? []);
|
|
8993
8993
|
return Object.freeze([...deps.filter((name) => !agentOnly.has(name) && name.startsWith("@dominevo/addon-")), CLOSURE_PROVIDED_PACKAGE]);
|
|
8994
8994
|
}
|
|
8995
8995
|
/**
|
|
@@ -9006,17 +9006,17 @@ var AddonInstaller = class AddonInstaller {
|
|
|
9006
9006
|
static REQUIRED_PACKAGES = AddonInstaller.deriveBootstrapList("@dominevo/server");
|
|
9007
9007
|
/**
|
|
9008
9008
|
* Agent-only bootstrap packages — derived from the `@dominevo/server`
|
|
9009
|
-
* meta-package's `
|
|
9009
|
+
* meta-package's `dominevo.agentBootstrapAddons` manifest field (single
|
|
9010
9010
|
* source of truth; the separate agent meta-package is gone).
|
|
9011
9011
|
* The agent runtime boots from the SAME `@dominevo/server` closure, so its
|
|
9012
9012
|
* bootstrap addon set is declared alongside the hub's. Adding an agent
|
|
9013
9013
|
* bootstrap addon = adding it to `server/backend/package.json`'s
|
|
9014
|
-
* `
|
|
9014
|
+
* `dominevo.agentBootstrapAddons`.
|
|
9015
9015
|
*/
|
|
9016
9016
|
static AGENT_PACKAGES = AddonInstaller.deriveAgentBootstrapList("@dominevo/server");
|
|
9017
9017
|
/**
|
|
9018
9018
|
* Derive the agent bootstrap addon list from a meta-package's
|
|
9019
|
-
* `
|
|
9019
|
+
* `dominevo.agentBootstrapAddons` manifest field, prepending
|
|
9020
9020
|
* `@dominevo/server/system` (the required infrastructure builtins carrier — same
|
|
9021
9021
|
* rationale as `deriveBootstrapList`). Mirrors `deriveBootstrapList`'s
|
|
9022
9022
|
* `require.resolve` nuance: the meta-package may be absent in a deployment
|
|
@@ -9032,7 +9032,7 @@ var AddonInstaller = class AddonInstaller {
|
|
|
9032
9032
|
return Object.freeze([]);
|
|
9033
9033
|
}
|
|
9034
9034
|
const raw = node_fs.readFileSync(pkgPath, "utf-8");
|
|
9035
|
-
const addons = JSON.parse(raw).
|
|
9035
|
+
const addons = JSON.parse(raw).dominevo?.agentBootstrapAddons ?? [];
|
|
9036
9036
|
return Object.freeze(["@dominevo/server", ...addons]);
|
|
9037
9037
|
}
|
|
9038
9038
|
/**
|
|
@@ -9513,7 +9513,7 @@ var AddonInstaller = class AddonInstaller {
|
|
|
9513
9513
|
* unusual auth, offline mode, etc).
|
|
9514
9514
|
*/
|
|
9515
9515
|
async installFromNpm(packageName, version) {
|
|
9516
|
-
const tmpDir = node_fs.mkdtempSync(node_path.join(node_os.tmpdir(), "
|
|
9516
|
+
const tmpDir = node_fs.mkdtempSync(node_path.join(node_os.tmpdir(), "dominevo-addon-npm-"));
|
|
9517
9517
|
const packageSpec = version ? `${packageName}@${version}` : packageName;
|
|
9518
9518
|
this.logger.info(`${packageName} — installing from npm`);
|
|
9519
9519
|
try {
|
|
@@ -9682,7 +9682,7 @@ var AddonInstaller = class AddonInstaller {
|
|
|
9682
9682
|
* ONE implementation for every path that materialises an addon tree —
|
|
9683
9683
|
* `installFromTgz` (deploy/upload) and `applyUpdateFromStaged` (OTA). The OTA
|
|
9684
9684
|
* path did not have it, and that is a whole outage class: an addon declaring
|
|
9685
|
-
* `
|
|
9685
|
+
* `dominevo.runtimeDependencies` was broken by its FIRST OTA update, its dist
|
|
9686
9686
|
* landing without `node_modules`. Every load then threw `Cannot find module`
|
|
9687
9687
|
* and the retry loop replayed it — `@dominevo/addon-export-hap`, 126 failed
|
|
9688
9688
|
* load retries over 10.5h on 2026-08-12; `@dominevo/addon-remote-storage`
|
|
@@ -9695,7 +9695,7 @@ var AddonInstaller = class AddonInstaller {
|
|
|
9695
9695
|
* local additions to a system package silently never reach the deployed
|
|
9696
9696
|
* addon. Addon dists are self-contained besides, so `stripBundledDeps` keeps
|
|
9697
9697
|
* only what the manifest explicitly declares in
|
|
9698
|
-
* `
|
|
9698
|
+
* `dominevo.runtimeDependencies` (see fs-utils / ADR-0027). Nothing left to
|
|
9699
9699
|
* install is the COMMON case: skip npm rather than pay an empty round-trip.
|
|
9700
9700
|
*
|
|
9701
9701
|
* **Failure is FATAL.** This used to warn-and-continue on the tgz path ("the
|
|
@@ -9749,7 +9749,7 @@ var AddonInstaller = class AddonInstaller {
|
|
|
9749
9749
|
}
|
|
9750
9750
|
/**
|
|
9751
9751
|
* Make `pkgDir`'s NATIVE modules loadable on THIS host, before it is swapped
|
|
9752
|
-
* in: install whatever `
|
|
9752
|
+
* in: install whatever `dominevo.nativeDependencies` declares, then ensure
|
|
9753
9753
|
* every traditional native present in the tree actually carries a compiled
|
|
9754
9754
|
* `.node` for the running ABI.
|
|
9755
9755
|
*
|
|
@@ -9857,7 +9857,7 @@ var AddonInstaller = class AddonInstaller {
|
|
|
9857
9857
|
if (!node_fs.existsSync(pkgJsonPath)) throw new Error("No package.json found in tgz archive");
|
|
9858
9858
|
const pkgView = readPackageJson(pkgJsonPath);
|
|
9859
9859
|
if (!pkgView) throw new Error(`Invalid package.json at ${pkgJsonPath}`);
|
|
9860
|
-
if (!pkgView.
|
|
9860
|
+
if (!pkgView.dominevoAddons) throw new Error(`Package ${pkgView.name} has no dominevo.addons manifest`);
|
|
9861
9861
|
const targetDir = node_path.join(this.addonsDir, pkgView.name);
|
|
9862
9862
|
await this.installRuntimeDependencies(pkgDir, pkgView.name);
|
|
9863
9863
|
await this.installNativeDependencies(pkgDir, pkgView.name);
|
|
@@ -9958,7 +9958,7 @@ var AddonInstaller = class AddonInstaller {
|
|
|
9958
9958
|
*
|
|
9959
9959
|
* "Skips npm entirely" is true only of the REGISTRY round-trip: the staged
|
|
9960
9960
|
* tree is the raw unpacked tarball, so the addon's own
|
|
9961
|
-
* `
|
|
9961
|
+
* `dominevo.runtimeDependencies` AND `dominevo.nativeDependencies` still have
|
|
9962
9962
|
* to be installed into it, exactly as `installFromTgz` does. Skipping the
|
|
9963
9963
|
* first broke every runtime-dep addon on its first OTA update; skipping the
|
|
9964
9964
|
* second broke every addon with a native module the same way, one layer down
|
|
@@ -10310,7 +10310,7 @@ var AddonInstaller = class AddonInstaller {
|
|
|
10310
10310
|
const pkgPath = node_path.join(dir, "package.json");
|
|
10311
10311
|
if (!node_fs.existsSync(pkgPath)) return null;
|
|
10312
10312
|
const pkg = readPackageJson(pkgPath);
|
|
10313
|
-
if (!pkg || !pkg.
|
|
10313
|
+
if (!pkg || !pkg.dominevoAddons) return null;
|
|
10314
10314
|
const sourceFile = node_path.join(dir, ".install-source");
|
|
10315
10315
|
const installSource = node_fs.existsSync(sourceFile) ? parseInstallSource(node_fs.readFileSync(sourceFile, "utf-8").trim()) : void 0;
|
|
10316
10316
|
return {
|
|
@@ -10367,9 +10367,9 @@ var AddonInstaller = class AddonInstaller {
|
|
|
10367
10367
|
}
|
|
10368
10368
|
/** Check if page bundles declared in package.json are missing from dist/ */
|
|
10369
10369
|
isDistIncomplete(pkgData, sourceDir) {
|
|
10370
|
-
const
|
|
10371
|
-
if (!
|
|
10372
|
-
for (const addon of
|
|
10370
|
+
const dominevo = pkgData["dominevo"];
|
|
10371
|
+
if (!dominevo?.addons) return false;
|
|
10372
|
+
for (const addon of dominevo.addons) {
|
|
10373
10373
|
if (!addon.pages) continue;
|
|
10374
10374
|
for (const page of addon.pages) if (page.bundle && !node_fs.existsSync(node_path.join(sourceDir, "dist", page.bundle))) return true;
|
|
10375
10375
|
}
|
|
@@ -10692,7 +10692,7 @@ function scheduleSelfRestart(options = {}) {
|
|
|
10692
10692
|
const delayMs = options.delayMs ?? 500;
|
|
10693
10693
|
const exitCode = options.exitCode ?? 0;
|
|
10694
10694
|
setTimeout(() => {
|
|
10695
|
-
const touchTarget = process.env["
|
|
10695
|
+
const touchTarget = process.env["DOMINEVO_RESTART_TOUCH_FILE"];
|
|
10696
10696
|
if (touchTarget !== void 0 && touchTarget.length > 0) try {
|
|
10697
10697
|
const now = /* @__PURE__ */ new Date();
|
|
10698
10698
|
node_fs.utimesSync(touchTarget, now, now);
|
|
@@ -12695,8 +12695,8 @@ function createDoorSettingsView(addonId, door, sections) {
|
|
|
12695
12695
|
}
|
|
12696
12696
|
//#endregion
|
|
12697
12697
|
//#region src/kernel/config-schema.ts
|
|
12698
|
-
/** Default data directory — used when
|
|
12699
|
-
var DEFAULT_DATA_PATH = "
|
|
12698
|
+
/** Default data directory — used when DOMINEVO_DATA env var is not set */
|
|
12699
|
+
var DEFAULT_DATA_PATH = "dominevo-data";
|
|
12700
12700
|
var serverSchema = zod.z.object({
|
|
12701
12701
|
port: zod.z.number().default(4443),
|
|
12702
12702
|
host: zod.z.string().default("0.0.0.0"),
|
|
@@ -12705,7 +12705,7 @@ var serverSchema = zod.z.object({
|
|
|
12705
12705
|
/**
|
|
12706
12706
|
* Bootstrap-time addon configuration. Nothing is read from it: the first-boot
|
|
12707
12707
|
* addon set always comes from the package (the server's own addon-* deps on a
|
|
12708
|
-
* hub, `
|
|
12708
|
+
* hub, `dominevo.agentBootstrapAddons` on an agent). A retired key is stripped.
|
|
12709
12709
|
*/
|
|
12710
12710
|
var bootstrapAddonsSchema = zod.z.object({});
|
|
12711
12711
|
var bootstrapSchema = zod.z.object({
|
|
@@ -12730,9 +12730,9 @@ function isRecord$2(value) {
|
|
|
12730
12730
|
* `settings-store` capability provider.
|
|
12731
12731
|
*/
|
|
12732
12732
|
var ENV_VAR_MAP = {
|
|
12733
|
-
|
|
12734
|
-
|
|
12735
|
-
|
|
12733
|
+
DOMINEVO_PORT: "server.port",
|
|
12734
|
+
DOMINEVO_HOST: "server.host",
|
|
12735
|
+
DOMINEVO_DATA: "server.dataPath"
|
|
12736
12736
|
};
|
|
12737
12737
|
/**
|
|
12738
12738
|
* Built-in defaults with the environment applied — THE bootstrap loader: the
|
|
@@ -13515,11 +13515,11 @@ function deriveAgentListenPort(nodeID) {
|
|
|
13515
13515
|
* falling back to `<name>.localdomain` when `HostName` is unset and DHCP
|
|
13516
13516
|
* advertises `domain=localdomain`) — pin the hostname to loopback (e.g. an
|
|
13517
13517
|
* `/etc/hosts` entry) to neutralise it. Set
|
|
13518
|
-
* `
|
|
13518
|
+
* `DOMINEVO_MOLECULER_USE_HOSTNAME=false` to force IP addressing for
|
|
13519
13519
|
* cross-machine deployments that route by IP rather than DNS name.
|
|
13520
13520
|
*/
|
|
13521
13521
|
function resolveUseHostname() {
|
|
13522
|
-
return process.env["
|
|
13522
|
+
return process.env["DOMINEVO_MOLECULER_USE_HOSTNAME"] !== "false";
|
|
13523
13523
|
}
|
|
13524
13524
|
function createBroker(config) {
|
|
13525
13525
|
const { nodeID, mode, logLevel = "warn", tcpPort = DEFAULT_HUB_TCP_PORT } = config;
|
|
@@ -14008,7 +14008,7 @@ function normalizeCapability(cap) {
|
|
|
14008
14008
|
};
|
|
14009
14009
|
}
|
|
14010
14010
|
/**
|
|
14011
|
-
* Wrap an
|
|
14011
|
+
* Wrap an IDominevoAddon as a Moleculer ServiceSchema.
|
|
14012
14012
|
*
|
|
14013
14013
|
* Methods for each capability are resolved in this order:
|
|
14014
14014
|
* 1. `declaration.capabilities[].methods` from package.json
|
|
@@ -18042,8 +18042,8 @@ var FrameDecoder = class {
|
|
|
18042
18042
|
*/
|
|
18043
18043
|
function localEndpointPath(nodeId) {
|
|
18044
18044
|
const safe = nodeId.replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
18045
|
-
if (process.platform === "win32") return `\\\\.\\pipe\\
|
|
18046
|
-
return (0, node_path.join)((0, node_os.tmpdir)(), `
|
|
18045
|
+
if (process.platform === "win32") return `\\\\.\\pipe\\dominevo-${safe}`;
|
|
18046
|
+
return (0, node_path.join)((0, node_os.tmpdir)(), `dominevo-${safe}.sock`);
|
|
18047
18047
|
}
|
|
18048
18048
|
//#endregion
|
|
18049
18049
|
//#region src/kernel/transport/local-transport.ts
|
|
@@ -18396,7 +18396,7 @@ var UdsLocalTransportClient = class {
|
|
|
18396
18396
|
/**
|
|
18397
18397
|
* The extension seam. UDS is the only shipped implementation; a future
|
|
18398
18398
|
* transport implements `LocalTransportFactory` and is selected here (e.g. via
|
|
18399
|
-
* a `
|
|
18399
|
+
* a `DOMINEVO_LOCAL_TRANSPORT` env) without touching any consumer.
|
|
18400
18400
|
*/
|
|
18401
18401
|
function createLocalTransport() {
|
|
18402
18402
|
return {
|
|
@@ -19332,7 +19332,7 @@ var LocalChildRegistry = class {
|
|
|
19332
19332
|
* (`null`) → always (fail-open, counted by {@link undeclaredChildCount});
|
|
19333
19333
|
* else the child's declared set must match via `matchesPattern` — the SAME
|
|
19334
19334
|
* function the child's own `deliverShared` map-key gate uses, giving provable
|
|
19335
|
-
* delivery parity. The parent always filters: the `
|
|
19335
|
+
* delivery parity. The parent always filters: the `DOMINEVO_UDS_EVENT_FANOUT`
|
|
19336
19336
|
* shadow/broadcast modes were removed on 2026-10-06.
|
|
19337
19337
|
*
|
|
19338
19338
|
* NOTE: this gate must NOT consult `RING_BUFFER_DENY_PATTERNS` /
|
|
@@ -21686,7 +21686,7 @@ function createKernelInferenceEngine() {
|
|
|
21686
21686
|
* in 2026-05 specifically to break that cycle.
|
|
21687
21687
|
*
|
|
21688
21688
|
* Shared per-node store (2026-06): base binaries (Python, ffmpeg, downloaded
|
|
21689
|
-
* tools) are resolved into the NODE data dir (`
|
|
21689
|
+
* tools) are resolved into the NODE data dir (`DOMINEVO_DATA`), not the
|
|
21690
21690
|
* per-addon dir. Every addon on a node reuses one copy instead of downloading
|
|
21691
21691
|
* its own. Because addons run as separate processes that now share one deps
|
|
21692
21692
|
* dir, resolution is guarded by a single-flight (in-process promise cache +
|
|
@@ -21695,7 +21695,7 @@ function createKernelInferenceEngine() {
|
|
|
21695
21695
|
*/
|
|
21696
21696
|
/** Resolve the node-wide data root (shared by all addon processes on a node). */
|
|
21697
21697
|
function resolveNodeRoot() {
|
|
21698
|
-
return process.env["
|
|
21698
|
+
return process.env["DOMINEVO_DATA"] ?? process.env["DOMINEVO_DATA_DIR"] ?? "dominevo-data";
|
|
21699
21699
|
}
|
|
21700
21700
|
var inFlight = /* @__PURE__ */ new Map();
|
|
21701
21701
|
var LOCK_STALE_MS = 10 * 6e4;
|
|
@@ -21776,7 +21776,7 @@ var AddonDepsManager = class {
|
|
|
21776
21776
|
}
|
|
21777
21777
|
/**
|
|
21778
21778
|
* The native library a requirements file says its packages need
|
|
21779
|
-
* (`#
|
|
21779
|
+
* (`# dominevo-native-dep: edgetpu-delegate`), staged under this node's
|
|
21780
21780
|
* deps dir. Runs on every call — not only the first pip install — so a
|
|
21781
21781
|
* node whose pip marker predates the line still gets the library. A
|
|
21782
21782
|
* platform without a build answers `unavailable` (logged, not thrown); a
|
|
@@ -21797,12 +21797,12 @@ function asBrokerLike(broker) {
|
|
|
21797
21797
|
return broker;
|
|
21798
21798
|
}
|
|
21799
21799
|
/**
|
|
21800
|
-
* Topic prefix for clustered EventBus broadcasts. The `
|
|
21800
|
+
* Topic prefix for clustered EventBus broadcasts. The `dominevo.evt.`
|
|
21801
21801
|
* namespace keeps our events disjoint from Moleculer internal events
|
|
21802
21802
|
* (`$node.*`, `$services.*`) — the `$event-bus` service's
|
|
21803
|
-
* `
|
|
21803
|
+
* `dominevo.evt.**` wildcard handler therefore never sees them.
|
|
21804
21804
|
*/
|
|
21805
|
-
var EVENT_TOPIC_PREFIX = "
|
|
21805
|
+
var EVENT_TOPIC_PREFIX = "dominevo.evt.";
|
|
21806
21806
|
/** Moleculer event-name wildcard the `$event-bus` service subscribes to. */
|
|
21807
21807
|
var EVENT_TOPIC_WILDCARD = `${EVENT_TOPIC_PREFIX}**`;
|
|
21808
21808
|
/** Build the Moleculer broadcast topic for an event category. */
|
|
@@ -22018,8 +22018,8 @@ function acceptInboundCrossNode(broker, category) {
|
|
|
22018
22018
|
* a post-start `createService` propagates via the ~10s heartbeat and
|
|
22019
22019
|
* makes cross-node delivery unreliable in the meantime.
|
|
22020
22020
|
*
|
|
22021
|
-
* The service's single wildcard handler (`
|
|
22022
|
-
* inbound bridge: every `broker.broadcast('
|
|
22021
|
+
* The service's single wildcard handler (`dominevo.evt.**`) is the
|
|
22022
|
+
* inbound bridge: every `broker.broadcast('dominevo.evt.<cat>', event)`
|
|
22023
22023
|
* from any node lands here. Self-origin echoes are dropped (the
|
|
22024
22024
|
* emitting node already delivered synchronously in `emit`).
|
|
22025
22025
|
*
|
|
@@ -22683,10 +22683,10 @@ function runtimeNodeId(runtime) {
|
|
|
22683
22683
|
return runtime.mode === "broker" ? asBrokerLike(runtime.broker).nodeID : runtime.nodeId;
|
|
22684
22684
|
}
|
|
22685
22685
|
/**
|
|
22686
|
-
* Adapt a Moleculer ServiceBroker to the
|
|
22686
|
+
* Adapt a Moleculer ServiceBroker to the dominevo-types `IClusterBroker`
|
|
22687
22687
|
* structural interface so addons can consume cluster-level RPC without
|
|
22688
22688
|
* pulling a moleculer dependency. Method signatures differ slightly
|
|
22689
|
-
* (Moleculer's overloads are wider than the
|
|
22689
|
+
* (Moleculer's overloads are wider than the dominevo contract), so we
|
|
22690
22690
|
* forward through a thin object instead of casting at the boundary.
|
|
22691
22691
|
*/
|
|
22692
22692
|
function adaptBrokerToCluster(broker) {
|
|
@@ -22812,7 +22812,7 @@ async function createUdsAddonContext(client, nodeId, declaration, dataDir, optio
|
|
|
22812
22812
|
async function buildAddonContext(runtime, declaration, dataDir, options) {
|
|
22813
22813
|
const nodeId = runtimeNodeId(runtime);
|
|
22814
22814
|
const addonId = declaration.id;
|
|
22815
|
-
const nodeDataDir = process.env["
|
|
22815
|
+
const nodeDataDir = process.env["DOMINEVO_DATA"] ?? dataDir;
|
|
22816
22816
|
const addonDataDir = node_path.resolve(nodeDataDir, "addons-data", addonId);
|
|
22817
22817
|
node_fs.mkdirSync(addonDataDir, { recursive: true });
|
|
22818
22818
|
if (runtime.mode === "broker") ensureBindingSubscription(runtime.broker);
|
|
@@ -23721,7 +23721,7 @@ function createMeshAccessMiddleware(options) {
|
|
|
23721
23721
|
});
|
|
23722
23722
|
};
|
|
23723
23723
|
return {
|
|
23724
|
-
name: "
|
|
23724
|
+
name: "DominevoMeshAccess",
|
|
23725
23725
|
localAction(next, action) {
|
|
23726
23726
|
const name = action.name ?? "";
|
|
23727
23727
|
return function meshGatedAction(ctx) {
|
|
@@ -23787,7 +23787,7 @@ function createAgentEventScope(opts) {
|
|
|
23787
23787
|
};
|
|
23788
23788
|
return {
|
|
23789
23789
|
middleware: {
|
|
23790
|
-
name: "
|
|
23790
|
+
name: "DominevoAgentEventScope",
|
|
23791
23791
|
transitPublish: gate
|
|
23792
23792
|
},
|
|
23793
23793
|
stats: () => ({
|
|
@@ -23892,7 +23892,7 @@ function localSupportedPythonRuntimes() {
|
|
|
23892
23892
|
//#region src/kernel/deps/manifest-python-deps.ts
|
|
23893
23893
|
/**
|
|
23894
23894
|
* Auto-install the pip requirements file declared in an addon's manifest
|
|
23895
|
-
* (`
|
|
23895
|
+
* (`dominevo.addons[].python.requirements`) into the embedded portable
|
|
23896
23896
|
* Python before `onInitialize()` runs.
|
|
23897
23897
|
*
|
|
23898
23898
|
* Idempotent: `installPythonRequirements` skips when the file's content
|
|
@@ -23940,7 +23940,7 @@ function packageIsAllowlisted(manager, packageName) {
|
|
|
23940
23940
|
* Who is allowed to run the package manager for this request.
|
|
23941
23941
|
*
|
|
23942
23942
|
* Apt/apk/dnf need root. In the Dominevo container that is the
|
|
23943
|
-
* `
|
|
23943
|
+
* `dominevo-pkgd` helper, not the runner and not hub-main (both uid
|
|
23944
23944
|
* 1001). Brew is owned by the logged-in user, so it stays in-process.
|
|
23945
23945
|
*/
|
|
23946
23946
|
function decidePackageInstall(input) {
|
|
@@ -23956,7 +23956,7 @@ function decidePackageInstall(input) {
|
|
|
23956
23956
|
return { kind: "helper" };
|
|
23957
23957
|
}
|
|
23958
23958
|
function pkgdSocketPath() {
|
|
23959
|
-
return process.env["
|
|
23959
|
+
return process.env["DOMINEVO_PKGD_SOCKET"] ?? "/run/dominevo/pkgd.sock";
|
|
23960
23960
|
}
|
|
23961
23961
|
function privilegedHelperAvailable(socketPath = pkgdSocketPath()) {
|
|
23962
23962
|
return (0, node_fs.existsSync)(socketPath);
|
|
@@ -24025,10 +24025,10 @@ function requestPrivilegedInstall(req, socketPath = pkgdSocketPath(), timeoutMs
|
|
|
24025
24025
|
//#region src/kernel/deps/manifest-system-deps.ts
|
|
24026
24026
|
/**
|
|
24027
24027
|
* Auto-install the host binaries declared in an addon's manifest
|
|
24028
|
-
* (`
|
|
24028
|
+
* (`dominevo.addons[].systemDependencies`) before `onInitialize()` runs.
|
|
24029
24029
|
*
|
|
24030
24030
|
* ── Why this is framework and not addon-local ──────────────────────────────
|
|
24031
|
-
* The Python precedent (`
|
|
24031
|
+
* The Python precedent (`dominevo.addons[].python.requirements` →
|
|
24032
24032
|
* `installManifestPythonDeps`, called from the same place in
|
|
24033
24033
|
* `addon-runner.ts`) already answers "this addon needs something installed,
|
|
24034
24034
|
* satisfy it before its caps register". A binary is the same question with a
|
|
@@ -24054,7 +24054,7 @@ function requestPrivilegedInstall(req, socketPath = pkgdSocketPath(), timeoutMs
|
|
|
24054
24054
|
* "installed".
|
|
24055
24055
|
* 5. **Apt is not the runner's.** Distro package managers need root. The
|
|
24056
24056
|
* runner and hub-main are uid 1001 (`gosu` in the entrypoint). Apt/apk/dnf
|
|
24057
|
-
* go through `
|
|
24057
|
+
* go through `dominevo-pkgd` (allowlisted). Brew stays in-process.
|
|
24058
24058
|
*
|
|
24059
24059
|
* Every branch that declines to install SAYS SO. A dependency step that
|
|
24060
24060
|
* produced no line at all is indistinguishable from one that never ran, and
|
|
@@ -24532,7 +24532,7 @@ var AddonHealthMonitor = class {
|
|
|
24532
24532
|
* The operator alert for an addon that RUNS below the version the server needs.
|
|
24533
24533
|
*
|
|
24534
24534
|
* An addon whose installed package is under the running server's minimum
|
|
24535
|
-
* (`
|
|
24535
|
+
* (`dominevo.requires.addons`, or its own `requires.server`) is always started:
|
|
24536
24536
|
* a held-back addon is invisible and silently loses its function, and the
|
|
24537
24537
|
* `CrashSupervisor` (D6) already bounds a crash loop. What the operator needs is
|
|
24538
24538
|
* to SEE it, so this tracker turns the gate's verdict into one alert pair on the
|
|
@@ -24839,7 +24839,7 @@ function mbInRange(value, range) {
|
|
|
24839
24839
|
}
|
|
24840
24840
|
/**
|
|
24841
24841
|
* Resolve the declared heap profile + old-space ceiling for one addon by reading its package.json
|
|
24842
|
-
* manifest (`
|
|
24842
|
+
* manifest (`dominevo.addons[].execution.{heapProfile,maxOldSpaceMb}`). `addonDir` points at the
|
|
24843
24843
|
* addon's built `dist`, so the manifest is one level up; we also try `addonDir` itself for layouts
|
|
24844
24844
|
* where it IS the package root.
|
|
24845
24845
|
* Result is cached per (dir,id) — spawns are infrequent but a runner may re-spawn on crash/restart.
|
|
@@ -24914,9 +24914,9 @@ function extractInitialOldSpaceMb(parsed, addonId) {
|
|
|
24914
24914
|
}
|
|
24915
24915
|
function readManifestAddons(parsed) {
|
|
24916
24916
|
if (typeof parsed !== "object" || parsed === null) return [];
|
|
24917
|
-
const
|
|
24918
|
-
if (typeof
|
|
24919
|
-
const addons =
|
|
24917
|
+
const dominevo = parsed.dominevo;
|
|
24918
|
+
if (typeof dominevo !== "object" || dominevo === null) return [];
|
|
24919
|
+
const addons = dominevo.addons;
|
|
24920
24920
|
return Array.isArray(addons) ? addons : [];
|
|
24921
24921
|
}
|
|
24922
24922
|
/**
|
|
@@ -25025,7 +25025,7 @@ function runnerRssBudgetMb(addons) {
|
|
|
25025
25025
|
* `initialOldSpaceMb` (`--initial-old-space-size`, clamped to the ceiling) — each the MAXIMUM
|
|
25026
25026
|
* across a runner's co-located addons. Shipped for `stream-broker` alone (8 / 512): with the
|
|
25027
25027
|
* heavy class default the hub's broker ran ~166 major GCs a minute and not one scavenge, at
|
|
25028
|
-
* 45–60 % of a core. The environment overrides and the `
|
|
25028
|
+
* 45–60 % of a core. The environment overrides and the `DOMINEVO_RUNNER_HEAP_TUNING=off` kill
|
|
25029
25029
|
* switch were removed on 2026-10-06 — nothing had set them since the rollout. The flags must
|
|
25030
25030
|
* be on the spawn command line: `v8.setFlagsFromString` at runtime changes neither space.
|
|
25031
25031
|
*/
|
|
@@ -25070,7 +25070,7 @@ function runnerInitialOldSpaceMb(addons) {
|
|
|
25070
25070
|
* Resolve the native-allocator env for a child runner from the parent's env.
|
|
25071
25071
|
*
|
|
25072
25072
|
* Precedence, highest first:
|
|
25073
|
-
* 1. `
|
|
25073
|
+
* 1. `DOMINEVO_RUNNER_NATIVE_ALLOCATOR=off` — kill switch, returns nothing and
|
|
25074
25074
|
* restores the glibc/sharp defaults. Recoverable without a rebuild.
|
|
25075
25075
|
* 2. A value the operator already put in the environment (`MALLOC_ARENA_MAX`,
|
|
25076
25076
|
* `VIPS_CONCURRENCY`) — inherited verbatim, never overwritten.
|
|
@@ -25078,7 +25078,7 @@ function runnerInitialOldSpaceMb(addons) {
|
|
|
25078
25078
|
*/
|
|
25079
25079
|
function runnerNativeAllocatorEnv(parentEnv, platform = process.platform) {
|
|
25080
25080
|
if (platform !== "linux") return {};
|
|
25081
|
-
if (parentEnv["
|
|
25081
|
+
if (parentEnv["DOMINEVO_RUNNER_NATIVE_ALLOCATOR"] === "off") return {};
|
|
25082
25082
|
return {
|
|
25083
25083
|
MALLOC_ARENA_MAX: parentEnv["MALLOC_ARENA_MAX"] ?? String(2),
|
|
25084
25084
|
VIPS_CONCURRENCY: parentEnv["VIPS_CONCURRENCY"] ?? String(1)
|
|
@@ -25094,7 +25094,7 @@ function runnerNativeAllocatorEnv(parentEnv, platform = process.platform) {
|
|
|
25094
25094
|
* INHERITS them, and a kill switch that only omits is a kill switch that does
|
|
25095
25095
|
* nothing.
|
|
25096
25096
|
*
|
|
25097
|
-
* So `
|
|
25097
|
+
* So `DOMINEVO_RUNNER_NATIVE_ALLOCATOR=off` DELETES. And only that: the
|
|
25098
25098
|
* non-linux path returns nothing to add for its own reasons (the pin is a pure
|
|
25099
25099
|
* throughput cut there — measured `sharp.concurrency()` 6 on the darwin agent
|
|
25100
25100
|
* against 1 on the linux hub) and must not be read as "remove what the operator
|
|
@@ -25102,7 +25102,7 @@ function runnerNativeAllocatorEnv(parentEnv, platform = process.platform) {
|
|
|
25102
25102
|
*/
|
|
25103
25103
|
function applyRunnerNativeAllocator(parentEnv, platform = process.platform) {
|
|
25104
25104
|
const next = { ...parentEnv };
|
|
25105
|
-
if (parentEnv["
|
|
25105
|
+
if (parentEnv["DOMINEVO_RUNNER_NATIVE_ALLOCATOR"] === "off") {
|
|
25106
25106
|
delete next["MALLOC_ARENA_MAX"];
|
|
25107
25107
|
delete next["VIPS_CONCURRENCY"];
|
|
25108
25108
|
return next;
|
|
@@ -25560,8 +25560,8 @@ function createProcessService(parentNodeId, dataDir, deps, parentTcpPort, parent
|
|
|
25560
25560
|
* Replaces the former `spawnProcess` (single-addon → `process-runner.js`)
|
|
25561
25561
|
* and `spawnGroupProcess` (group → `group-runner.js`) — both paths
|
|
25562
25562
|
* differed only in the runner bundle and the env shape. `addon-runner`
|
|
25563
|
-
* takes ONE env contract (`
|
|
25564
|
-
* `
|
|
25563
|
+
* takes ONE env contract (`DOMINEVO_RUNNER_ID` + a JSON
|
|
25564
|
+
* `DOMINEVO_RUNNER_ADDONS` array), so this single spawner serves both.
|
|
25565
25565
|
*
|
|
25566
25566
|
* The D6 crash circuit-breaker governs respawns: an unexpected exit
|
|
25567
25567
|
* is respawned with exponential backoff (capped at `MAX_BACKOFF_MS`,
|
|
@@ -25580,14 +25580,14 @@ function createProcessService(parentNodeId, dataDir, deps, parentTcpPort, parent
|
|
|
25580
25580
|
const rssBudgetMb = runnerRssBudgetMb(addons);
|
|
25581
25581
|
const childEnv = {
|
|
25582
25582
|
...process.env,
|
|
25583
|
-
|
|
25584
|
-
|
|
25585
|
-
|
|
25586
|
-
|
|
25587
|
-
|
|
25588
|
-
|
|
25589
|
-
...parentTcpPort !== void 0 ? {
|
|
25590
|
-
...parentUdsPath !== void 0 ? {
|
|
25583
|
+
DOMINEVO_RUNNER_ID: runnerId,
|
|
25584
|
+
DOMINEVO_RUNNER_ADDONS: JSON.stringify(addons),
|
|
25585
|
+
DOMINEVO_PARENT_NODE_ID: parentNodeId,
|
|
25586
|
+
DOMINEVO_DATA_DIR: dataDir,
|
|
25587
|
+
DOMINEVO_RUNNER_HEAP_PROFILE: heavy ? "heavy" : "light",
|
|
25588
|
+
DOMINEVO_LOG_LEVEL: process.env["DOMINEVO_LOG_LEVEL"] ?? "info",
|
|
25589
|
+
...parentTcpPort !== void 0 ? { DOMINEVO_PARENT_TCP_PORT: String(parentTcpPort) } : {},
|
|
25590
|
+
...parentUdsPath !== void 0 ? { DOMINEVO_PARENT_UDS_PATH: parentUdsPath } : {},
|
|
25591
25591
|
...applyRunnerNativeAllocator(process.env),
|
|
25592
25592
|
...env
|
|
25593
25593
|
};
|
|
@@ -26707,11 +26707,11 @@ var en_default = {
|
|
|
26707
26707
|
"global.s_system-config-server.description": "The name of this server, and its connection settings (read-only, set by the environment).",
|
|
26708
26708
|
"global.s_system-config-server.server-restart-note.label": "Restart required",
|
|
26709
26709
|
"global.s_system-config-server.port.label": "Port",
|
|
26710
|
-
"global.s_system-config-server.port.description": "Listening port (
|
|
26710
|
+
"global.s_system-config-server.port.description": "Listening port (DOMINEVO_PORT)",
|
|
26711
26711
|
"global.s_system-config-server.host.label": "Host",
|
|
26712
|
-
"global.s_system-config-server.host.description": "Bind address (
|
|
26712
|
+
"global.s_system-config-server.host.description": "Bind address (DOMINEVO_HOST)",
|
|
26713
26713
|
"global.s_system-config-server.dataPath.label": "Data Path",
|
|
26714
|
-
"global.s_system-config-server.dataPath.description": "Root data directory (
|
|
26714
|
+
"global.s_system-config-server.dataPath.description": "Root data directory (DOMINEVO_DATA)",
|
|
26715
26715
|
"global.s_system-config-auth.description": "Token and session settings.",
|
|
26716
26716
|
"global.s_system-config-auth.tokenExpiry.label": "Session lifetime",
|
|
26717
26717
|
"global.s_system-config-auth.tokenExpiry.description": "How long a sign-in lasts without being used, as a duration string (e.g. 7d, 30d). Every refresh starts it again, so a device in use stays signed in; one left unopened this long must sign in again. A bare number is rejected — it would be read as milliseconds. Applies from the next sign-in or refresh.",
|
|
@@ -26983,11 +26983,11 @@ var it_default = {
|
|
|
26983
26983
|
"global.s_system-config-server.description": "Il nome di questo server e le sue impostazioni di connessione (sola lettura, impostate dall'ambiente).",
|
|
26984
26984
|
"global.s_system-config-server.server-restart-note.label": "Riavvio necessario",
|
|
26985
26985
|
"global.s_system-config-server.port.label": "Porta",
|
|
26986
|
-
"global.s_system-config-server.port.description": "Porta di ascolto (
|
|
26986
|
+
"global.s_system-config-server.port.description": "Porta di ascolto (DOMINEVO_PORT)",
|
|
26987
26987
|
"global.s_system-config-server.host.label": "Host",
|
|
26988
|
-
"global.s_system-config-server.host.description": "Indirizzo di bind (
|
|
26988
|
+
"global.s_system-config-server.host.description": "Indirizzo di bind (DOMINEVO_HOST)",
|
|
26989
26989
|
"global.s_system-config-server.dataPath.label": "Percorso dei dati",
|
|
26990
|
-
"global.s_system-config-server.dataPath.description": "Cartella radice dei dati (
|
|
26990
|
+
"global.s_system-config-server.dataPath.description": "Cartella radice dei dati (DOMINEVO_DATA)",
|
|
26991
26991
|
"global.s_system-config-auth.description": "Impostazioni di token e sessione.",
|
|
26992
26992
|
"global.s_system-config-auth.tokenExpiry.label": "Durata della sessione",
|
|
26993
26993
|
"global.s_system-config-auth.tokenExpiry.description": "Per quanto tempo resta valido un accesso senza essere usato, come stringa di durata (ad es. 7d, 30d). Ogni rinnovo lo fa ripartire, quindi un dispositivo in uso resta connesso; uno lasciato inutilizzato per questo tempo deve accedere di nuovo. Un numero senza unità viene rifiutato: sarebbe letto come millisecondi. Si applica dal prossimo accesso o rinnovo.",
|
|
@@ -27843,7 +27843,7 @@ exports.storageOrchestratorRecordKinds = require_builtins_storage_orchestrator_s
|
|
|
27843
27843
|
exports.storeMayAnswer = storeMayAnswer;
|
|
27844
27844
|
exports.storeUploadedCertificate = require_hub_mdns_ciao.storeUploadedCertificate;
|
|
27845
27845
|
exports.strandedMb = strandedMb;
|
|
27846
|
-
exports.
|
|
27846
|
+
exports.stripDominevoDeps = stripDominevoDeps;
|
|
27847
27847
|
exports.stripForgedIdentity = stripForgedIdentity;
|
|
27848
27848
|
exports.stripForwardedCaller = require_builtins_storage_orchestrator_storage_orchestrator_addon.stripForwardedCaller;
|
|
27849
27849
|
exports.subscribePassthrough = subscribePassthrough;
|