@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/.env.example
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
# key and the cluster secret live in the hub's keychain, and a fresh hub seeds
|
|
6
6
|
# the admin account admin / changeme (the first sign-in forces a change).
|
|
7
7
|
|
|
8
|
-
# Data directory (default:
|
|
9
|
-
#
|
|
8
|
+
# Data directory (default: dominevo-data)
|
|
9
|
+
# DOMINEVO_DATA=dominevo-data
|
|
10
10
|
|
|
11
11
|
# Server port and host
|
|
12
|
-
#
|
|
13
|
-
#
|
|
12
|
+
# DOMINEVO_PORT=4443
|
|
13
|
+
# DOMINEVO_HOST=0.0.0.0
|
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.2] - 2026-11-28
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Rebuilt against updated dependencies.
|
|
15
|
+
|
|
16
|
+
## [0.1.1] - 2026-11-28
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- Models, the trainer and the benchmark clips are now fetched from the Dominevo Hugging Face repos (Dominevo/dominevo-models, dominevo-trainer, dominevo-bench-clips)
|
|
21
|
+
- Environment variables are now named DOMINEVO_* (was CAMSTACK_*); the old names are no longer read, so rename them in your container template, compose file or shell.
|
|
22
|
+
|
|
10
23
|
## [0.1.0] - 2026-11-28
|
|
11
24
|
|
|
12
25
|
### Changed
|
package/THIRD_PARTY_MODELS.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
packages/addon-ai/src/runtime/llm-model-licenses.ts), then run npm run models:notices.
|
|
9
9
|
The package copies (packages/addon-pipeline, packages/addon-post-analysis, packages/addon-ai, packages/addon-model-studio, server/backend) are byte-identical
|
|
10
10
|
(npm cannot ship a file from outside the package); the Hugging Face mirror receives
|
|
11
|
-
the same file from hf/
|
|
11
|
+
the same file from hf/dominevo-models/upload.sh. Drift fails CI.
|
|
12
12
|
Facts: planning repo superpowers/specs/2026-09-26-model-license-compliance.md. Not legal advice.
|
|
13
13
|
-->
|
|
14
14
|
|
|
@@ -22,18 +22,18 @@ licence: every Dominevo-made build is a modified version (a "model derivative")
|
|
|
22
22
|
of the upstream weights, and the change is stated per model.
|
|
23
23
|
|
|
24
24
|
Full licence texts: `licenses/models/` in the Dominevo source repository, and
|
|
25
|
-
[`LICENSES/`](https://huggingface.co/
|
|
26
|
-
in the model mirror https://huggingface.co/
|
|
25
|
+
[`LICENSES/`](https://huggingface.co/Dominevo/dominevo-models/tree/main/LICENSES)
|
|
26
|
+
in the model mirror https://huggingface.co/Dominevo/dominevo-models.
|
|
27
27
|
|
|
28
28
|
Some of these models are **not licensed for commercial use**. They are listed
|
|
29
29
|
under [Non-commercial models](#non-commercial-models).
|
|
30
30
|
|
|
31
31
|
## Required attributions
|
|
32
32
|
|
|
33
|
-
- © Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and build-
|
|
33
|
+
- © Ultralytics, AGPL-3.0. Corresponding source: the upstream Ultralytics checkpoint and build-dominevo-models.py (with convert_lib.py) published at https://huggingface.co/Dominevo/dominevo-models/tree/main/source. https://github.com/ultralytics/ultralytics
|
|
34
34
|
- Coral Edge TPU models and AIY Vision Birds V1 © Google LLC, Apache-2.0. https://github.com/google-coral/test_data
|
|
35
|
-
- YOLOv9-s EdgeTPU weights © 2025 Dan Brown (fine-tuned to 17 COCO classes, INT8, compiled for the Edge TPU; https://github.com/dbro/frigate-detector-edgetpu-yolo9, repository MIT). Derived from the YOLOv9 code and yolov9-s checkpoint of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9). Corresponding source: the fine-tuning checkpoint (yolov9-s-relu6-best.pt), the fine-tuning and conversion notebooks and the publisher LICENSE, mirrored at https://huggingface.co/
|
|
36
|
-
- © Ultralytics, AGPL-3.0 (Ultralytics YOLOv9 weights). YOLOv9 architecture: Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9). Corresponding source: the upstream Ultralytics checkpoint and build-
|
|
35
|
+
- YOLOv9-s EdgeTPU weights © 2025 Dan Brown (fine-tuned to 17 COCO classes, INT8, compiled for the Edge TPU; https://github.com/dbro/frigate-detector-edgetpu-yolo9, repository MIT). Derived from the YOLOv9 code and yolov9-s checkpoint of Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9). Corresponding source: the fine-tuning checkpoint (yolov9-s-relu6-best.pt), the fine-tuning and conversion notebooks and the publisher LICENSE, mirrored at https://huggingface.co/Dominevo/dominevo-models/tree/main/source/yolov9-edgetpu-dbro. https://github.com/dbro/frigate-detector-edgetpu-yolo9
|
|
36
|
+
- © Ultralytics, AGPL-3.0 (Ultralytics YOLOv9 weights). YOLOv9 architecture: Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao, GPL-3.0 (https://github.com/WongKinYiu/yolov9). Corresponding source: the upstream Ultralytics checkpoint and build-dominevo-models.py (with convert_lib.py) published at https://huggingface.co/Dominevo/dominevo-models/tree/main/source. https://github.com/ultralytics/ultralytics
|
|
37
37
|
- RF-DETR © Roboflow, Apache-2.0. https://github.com/roboflow/rf-detr
|
|
38
38
|
- YuNet weights Copyright (c) 2020 Shiqi Yu, MIT. Training code: ShiqiYu/libfacedetection.train, BSD-3-Clause. https://github.com/opencv/opencv_zoo/tree/main/models/face_detection_yunet
|
|
39
39
|
- AuraFace v1 by fal.ai, Apache-2.0. https://huggingface.co/fal/AuraFace-v1
|
|
@@ -66,21 +66,21 @@ Training data under attribution terms:
|
|
|
66
66
|
The folders `segmentation/yolo26-seg`, `objectDetection/yolo26` and `objectDetection/yolov9` of the model mirror hold Ultralytics weights,
|
|
67
67
|
modified by Dominevo and distributed under AGPL-3.0. Their Corresponding Source
|
|
68
68
|
is published in the mirror itself, in its **`source/`** folder,
|
|
69
|
-
**https://huggingface.co/
|
|
69
|
+
**https://huggingface.co/Dominevo/dominevo-models/tree/main/source**, together
|
|
70
70
|
with the upstream checkpoints it starts from:
|
|
71
71
|
|
|
72
72
|
1. **The upstream checkpoints.** Ultralytics publishes
|
|
73
73
|
`yolo26{n,s,m,l,x}.pt`, `yolov9{t,s,m,c}.pt` and `yolo26{n,s,m}-seg.pt` at
|
|
74
74
|
https://github.com/ultralytics/assets/releases.
|
|
75
|
-
2. **The build script** in `source/`: `build-
|
|
75
|
+
2. **The build script** in `source/`: `build-dominevo-models.py`, with
|
|
76
76
|
`convert_lib.py` (the ONNX to OpenVINO / INT8 converter it calls, the same
|
|
77
77
|
file Dominevo's Model Studio runs) and `requirements.txt`. It holds one
|
|
78
78
|
recipe per hosted file: the upstream checkpoint, the input size, the
|
|
79
79
|
Ultralytics `export()` arguments, the OpenVINO precision and the INT8
|
|
80
80
|
calibration count that file records about itself. Every hosted
|
|
81
81
|
Ultralytics-derived file is rebuilt by one invocation:
|
|
82
|
-
`build-
|
|
83
|
-
`
|
|
82
|
+
`build-dominevo-models.py --variant <file stem>` (for example
|
|
83
|
+
`dominevo-yolo26n-320` or `dominevo-yolov9m-640`), `--family <folder>`
|
|
84
84
|
or `--all`; `--list` prints the recipes and `--check-hosted` confirms
|
|
85
85
|
against the mirror that every hosted file is a recipe output. The INT8
|
|
86
86
|
builds are NNCF post-training quantisation calibrated on COCO images: 128
|
|
@@ -111,7 +111,7 @@ commercial use**:
|
|
|
111
111
|
|
|
112
112
|
## Models
|
|
113
113
|
|
|
114
|
-
"Mirror" means https://huggingface.co/
|
|
114
|
+
"Mirror" means https://huggingface.co/Dominevo/dominevo-models, folder given.
|
|
115
115
|
"Code / weights" gives the two licences separately because they often differ.
|
|
116
116
|
**Unknown** means no licence could be traced; it does not mean free to use.
|
|
117
117
|
*default* marks the model a step runs when nobody chose one; *hidden* marks an
|
|
@@ -122,10 +122,10 @@ entry kept resolvable for a saved selection but no longer offered.
|
|
|
122
122
|
| Catalog ids | Upstream | Code / weights | Training data | Dominevo changes | Downloaded from |
|
|
123
123
|
| --- | --- | --- | --- | --- | --- |
|
|
124
124
|
| `yolo26n-seg`, `yolo26s-seg`, `yolo26m-seg` | [Ultralytics](https://github.com/ultralytics/ultralytics) | AGPL-3.0 / AGPL-3.0 (`AGPL-3.0.txt`) | COCO 2017: annotations CC-BY-4.0; images under their Flickr owners' terms | exported to ONNX, OpenVINO IR and CoreML | mirror `segmentation/yolo26-seg` |
|
|
125
|
-
| `yolo26n
|
|
125
|
+
| `yolo26n`, `yolo26s`, `yolo26m`, `yolo26l`, `yolo26x` (hidden), `yolo26n-fp16` (hidden), `yolo26n-int8`, `yolo26s-fp16` (hidden), `yolo26s-int8`, `yolo26m-fp16` (hidden), `yolo26m-int8`, `yolo26l-fp16` (hidden), `yolo26l-int8`, `yolo26n-320`, `yolo26n-320-int8`, `yolo26n-256`, `yolo26n-256-int8`, `yolo26s-320`, `yolo26s-320-int8`, `yolo26s-256`, `yolo26s-256-int8`, `yolo26m-320`, `yolo26m-320-int8`, `yolo26m-256`, `yolo26m-256-int8`, `yolo26l-320`, `yolo26l-320-int8`, `yolo26l-256`, `yolo26l-256-int8`, `yolo26x-fp16` (hidden), `yolo26x-int8` (hidden) | [Ultralytics](https://github.com/ultralytics/ultralytics) | AGPL-3.0 / AGPL-3.0 (`AGPL-3.0.txt`) | COCO 2017: annotations CC-BY-4.0; images under their Flickr owners' terms | exported to ONNX, OpenVINO IR and CoreML (scripts/build-dominevo-models.py); OpenVINO FP16 export; exported to OpenVINO IR, then OpenVINO NNCF INT8 post-training quantisation; re-exported at 320×320 to ONNX, OpenVINO IR and CoreML; re-exported at 320×320 to OpenVINO IR; OpenVINO NNCF INT8 post-training quantisation; re-exported at 256×256 to ONNX, OpenVINO IR and CoreML; re-exported at 256×256 to OpenVINO IR; OpenVINO NNCF INT8 post-training quantisation | mirror `objectDetection/yolo26` |
|
|
126
126
|
| `ssd-mobilenet-v2-coco-edgetpu` | [Google Coral test_data](https://github.com/google-coral/test_data) | Apache-2.0 / Apache-2.0 (`Apache-2.0.txt`) | COCO 2017: annotations CC-BY-4.0; images under their Flickr owners' terms | none | https://github.com/google-coral/test_data |
|
|
127
127
|
| `yolov9s-320-edgetpu` (default), `yolov9s-512-edgetpu` | [YOLOv9-s EdgeTPU (Dan Brown)](https://github.com/dbro/frigate-detector-edgetpu-yolo9) | GPL-3.0 / GPL-3.0 (`GPL-3.0.txt`) | COCO 2017: annotations CC-BY-4.0; images under their Flickr owners' terms | none: the publisher release files are mirrored byte-identical | mirror `objectDetection/yolov9` |
|
|
128
|
-
| `yolov9t-320`, `yolov9t-320-int8`, `yolov9t-640`, `yolov9t-640-int8`, `yolov9s-320
|
|
128
|
+
| `yolov9t-320`, `yolov9t-320-int8`, `yolov9t-640`, `yolov9t-640-int8`, `yolov9s-320` (default), `yolov9s-320-int8`, `yolov9s-640`, `yolov9s-640-int8`, `yolov9m-320`, `yolov9m-320-int8`, `yolov9m-640`, `yolov9m-640-int8`, `yolov9c-320`, `yolov9c-320-int8`, `yolov9c-640`, `yolov9c-640-int8` | [Ultralytics](https://github.com/ultralytics/ultralytics) | AGPL-3.0 / AGPL-3.0 (`AGPL-3.0.txt`) | COCO 2017: annotations CC-BY-4.0; images under their Flickr owners' terms | exported at 320×320 to ONNX, OpenVINO IR FP16 and CoreML; exported at 320×320 to OpenVINO IR; OpenVINO NNCF INT8 post-training quantisation; exported at 640×640 to ONNX, OpenVINO IR FP16 and CoreML; exported at 640×640 to OpenVINO IR; OpenVINO NNCF INT8 post-training quantisation | mirror `objectDetection/yolov9` |
|
|
129
129
|
|
|
130
130
|
### Package detection
|
|
131
131
|
|
|
@@ -55,7 +55,7 @@ exports.formatAddonRootReport = formatAddonRootReport;
|
|
|
55
55
|
*
|
|
56
56
|
* ~/Library/Application Support/@dominevo/desktop/data/addons/@dominevo
|
|
57
57
|
* — LIVE (addon-pipeline 1.2.43, deployed that afternoon)
|
|
58
|
-
* ~/
|
|
58
|
+
* ~/dominevo-agent-data/addons/@dominevo
|
|
59
59
|
* — abandoned 2026-06-28, addon-pipeline 1.1.1
|
|
60
60
|
* ~/Library/Application Support/@dominevo/electron-agent/agent-data/addons/@dominevo
|
|
61
61
|
* — abandoned 2026-07-20, addon-pipeline 1.1.70
|
|
@@ -80,11 +80,11 @@ exports.ADDONS_SUBDIR = 'addons';
|
|
|
80
80
|
/** The scope every first-party addon package sits under. */
|
|
81
81
|
exports.ADDON_SCOPE = '@dominevo';
|
|
82
82
|
/**
|
|
83
|
-
* Data roots a
|
|
83
|
+
* Data roots a dominevo node has ever been configured to use on this machine.
|
|
84
84
|
*
|
|
85
85
|
* Enumerated, not searched. Each entry is a layout this project has actually
|
|
86
86
|
* shipped, so the list documents its own history:
|
|
87
|
-
* - `~/
|
|
87
|
+
* - `~/dominevo-agent-data` — the pre-Electron agent's data root.
|
|
88
88
|
* - `<appSupport>/@dominevo/<appId>/data` — every Electron app id the product
|
|
89
89
|
* has carried (`electron`, `electron-agent`, `desktop`). The rename left the
|
|
90
90
|
* old ids' trees behind, each a complete addon install.
|
|
@@ -102,8 +102,8 @@ function candidateDataRoots(input) {
|
|
|
102
102
|
? path.join(input.homeDir, 'Library', 'Application Support')
|
|
103
103
|
: path.join(input.homeDir, '.config');
|
|
104
104
|
const roots = [
|
|
105
|
-
path.join(input.homeDir, '
|
|
106
|
-
path.join(input.homeDir, '
|
|
105
|
+
path.join(input.homeDir, 'dominevo-agent-data'),
|
|
106
|
+
path.join(input.homeDir, 'dominevo-data'),
|
|
107
107
|
...exports.KNOWN_ELECTRON_APP_IDS.map((id) => path.join(appSupport, exports.ADDON_SCOPE, id, 'data')),
|
|
108
108
|
path.join(appSupport, exports.ADDON_SCOPE, 'electron-agent', 'agent-data'),
|
|
109
109
|
];
|
|
@@ -47,7 +47,7 @@ const node_1 = require("@dominevo/types/node");
|
|
|
47
47
|
* Resolution order (first match wins, persisted on first boot):
|
|
48
48
|
* 1. Existing `nodeId` in the config file — survives env var changes
|
|
49
49
|
* and host renames once seeded.
|
|
50
|
-
* 2. `
|
|
50
|
+
* 2. `DOMINEVO_NODE_ID` env var on first boot — lets dev workflows
|
|
51
51
|
* pin a stable, human-readable nodeId (e.g. `dev-agent-0`)
|
|
52
52
|
* without clobbering already-persisted random ids.
|
|
53
53
|
* 3. A fresh random hex (`agent-a1b2c3`) — production fallback when
|
|
@@ -71,7 +71,7 @@ function ensurePersistedNodeId(configPath, dataDir) {
|
|
|
71
71
|
if (typeof raw.nodeId === 'string' && raw.nodeId.length > 0) {
|
|
72
72
|
return raw.nodeId;
|
|
73
73
|
}
|
|
74
|
-
const envSeed = process.env.
|
|
74
|
+
const envSeed = process.env.DOMINEVO_NODE_ID;
|
|
75
75
|
const id = envSeed && envSeed.length > 0 ? envSeed : `agent-${crypto.randomBytes(4).toString('hex')}`;
|
|
76
76
|
raw.nodeId = id;
|
|
77
77
|
try {
|
|
@@ -106,25 +106,25 @@ function defaultAgentName(hostname, arch) {
|
|
|
106
106
|
return `${short.length > 0 ? short : 'agent'}-${arch}`;
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
109
|
-
* The name before anyone renamed the agent: `
|
|
109
|
+
* The name before anyone renamed the agent: `DOMINEVO_AGENT_NAME` when set, else the default.
|
|
110
110
|
* Never the node id - that is an identity, not a label.
|
|
111
111
|
*/
|
|
112
112
|
function seededAgentName() {
|
|
113
|
-
const fromEnv = process.env.
|
|
113
|
+
const fromEnv = process.env.DOMINEVO_AGENT_NAME;
|
|
114
114
|
return fromEnv !== undefined && fromEnv.trim().length > 0
|
|
115
115
|
? fromEnv.trim()
|
|
116
116
|
: defaultAgentName(os.hostname(), os.arch());
|
|
117
117
|
}
|
|
118
118
|
function loadAgentConfig(configPath, dataDirOverride) {
|
|
119
119
|
const filePath = configPath ?? 'agent.json';
|
|
120
|
-
const dataDir = dataDirOverride ?? process.env.
|
|
120
|
+
const dataDir = dataDirOverride ?? process.env.DOMINEVO_DATA ?? './dominevo-data';
|
|
121
121
|
const resolvedDataDir = path.resolve(dataDir);
|
|
122
122
|
// Name: config file takes priority over env (allows UI rename to stick).
|
|
123
123
|
// Env is the initial seed, config file is the persisted override.
|
|
124
124
|
const envName = seededAgentName();
|
|
125
125
|
// Environment variable for the hub connection (optional — agent starts
|
|
126
126
|
// without). Pairing material lives only in agent.json.
|
|
127
|
-
const envHubAddress = process.env.
|
|
127
|
+
const envHubAddress = process.env.DOMINEVO_HUB_ADDRESS || undefined;
|
|
128
128
|
const configFullPath = path.resolve(resolvedDataDir, filePath);
|
|
129
129
|
const nodeId = ensurePersistedNodeId(filePath, resolvedDataDir);
|
|
130
130
|
// Read persisted config — these override env vars
|
|
@@ -151,9 +151,9 @@ function loadAgentConfig(configPath, dataDirOverride) {
|
|
|
151
151
|
hubAddress: effectiveHub,
|
|
152
152
|
dataDir: resolvedDataDir,
|
|
153
153
|
addonsDir: path.resolve(resolvedDataDir, 'addons'),
|
|
154
|
-
logLevel: process.env.
|
|
154
|
+
logLevel: process.env.DOMINEVO_LOG_LEVEL ?? 'info',
|
|
155
155
|
...(fileMeshTls !== undefined ? { meshTls: fileMeshTls } : {}),
|
|
156
156
|
configPath: configFullPath,
|
|
157
|
-
statusPort: Number(process.env.
|
|
157
|
+
statusPort: Number(process.env.DOMINEVO_STATUS_PORT) || 4444,
|
|
158
158
|
};
|
|
159
159
|
}
|
|
@@ -41,7 +41,7 @@ const fs = __importStar(require("node:fs"));
|
|
|
41
41
|
const path = __importStar(require("node:path"));
|
|
42
42
|
const types_1 = require("@dominevo/types");
|
|
43
43
|
/**
|
|
44
|
-
* Read a package's `
|
|
44
|
+
* Read a package's `dominevo.addons[]` declarations directly from its
|
|
45
45
|
* package.json — WITHOUT importing the addon entry module.
|
|
46
46
|
*
|
|
47
47
|
* The reload path must NOT `import()` heavy native addon entries (node-av, the
|
|
@@ -61,7 +61,7 @@ function readPackageManifestAddons(dir) {
|
|
|
61
61
|
const raw = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'));
|
|
62
62
|
const packageName = typeof raw.name === 'string' ? raw.name : '';
|
|
63
63
|
const packageVersion = typeof raw.version === 'string' ? raw.version : '0.0.0';
|
|
64
|
-
const entries = Array.isArray(raw.
|
|
64
|
+
const entries = Array.isArray(raw.dominevo?.addons) ? raw.dominevo.addons : [];
|
|
65
65
|
const declarations = [];
|
|
66
66
|
for (const entry of entries) {
|
|
67
67
|
if (entry !== null &&
|
package/dist/agent/agent-http.js
CHANGED
|
@@ -131,7 +131,7 @@ function readUiDistCandidate(baseDir) {
|
|
|
131
131
|
* otherwise keep serving the UI frozen at whatever version was first
|
|
132
132
|
* installed (observed live: an app at v1.1.27 serving the v1.1.1 UI).
|
|
133
133
|
*
|
|
134
|
-
* This is the ONE runtime reader of `
|
|
134
|
+
* This is the ONE runtime reader of `DOMINEVO_BUNDLED_ADDONS_DIR` that reads a
|
|
135
135
|
* package OUT of it (the rest only seed from it, or use it to locate the
|
|
136
136
|
* Electron Resources root). It reads the bundled copy in place and serves it
|
|
137
137
|
* over `@fastify/static` — so which dir that variable names is load-bearing
|
|
@@ -144,7 +144,7 @@ function pickUiDist(installed, bundled) {
|
|
|
144
144
|
return installed?.dir ?? bundled?.dir ?? null;
|
|
145
145
|
}
|
|
146
146
|
function resolveUiDistDir(dataDir,
|
|
147
|
-
// `
|
|
147
|
+
// `DOMINEVO_BUNDLED_ADDONS_DIR` — a dir of package dirs keyed by SHORT name
|
|
148
148
|
// (`<dir>/addon-agent-ui`), the same shape `AddonInstaller.findLocalPackage`
|
|
149
149
|
// joins onto. On a packaged desktop that is the closure's own scope dir,
|
|
150
150
|
// `Contents/Resources/node_modules/@dominevo`; it was a second, hand-copied
|
|
@@ -409,7 +409,7 @@ async function createAgentHttpServer(getBroker, config) {
|
|
|
409
409
|
null;
|
|
410
410
|
// Version of the Electron wrapper (injected by the desktop app); absent
|
|
411
411
|
// when the agent runs headless / in Docker.
|
|
412
|
-
const appVersion = process.env['
|
|
412
|
+
const appVersion = process.env['DOMINEVO_AGENT_APP_VERSION'] ?? null;
|
|
413
413
|
const identity = (0, release_identity_js_1.releaseIdentityFrom)({
|
|
414
414
|
productVersionEnv: process.env[release_identity_js_1.PRODUCT_VERSION_ENV],
|
|
415
415
|
serverVersion: config.serverVersion ?? null,
|
|
@@ -633,7 +633,7 @@ async function createAgentHttpServer(getBroker, config) {
|
|
|
633
633
|
return mapDiscoveredNodes(nodes, b.nodeID);
|
|
634
634
|
});
|
|
635
635
|
// -- Static file serving (agent-ui) ---------------------------------
|
|
636
|
-
const uiDir = resolveUiDistDir(config.dataDir, process.env['
|
|
636
|
+
const uiDir = resolveUiDistDir(config.dataDir, process.env['DOMINEVO_BUNDLED_ADDONS_DIR']);
|
|
637
637
|
if (uiDir) {
|
|
638
638
|
const fastifyStatic = await Promise.resolve().then(() => __importStar(require('@fastify/static')));
|
|
639
639
|
// Every route the static plugin mounts is the public UI bundle: tag them for the auth gate.
|
|
@@ -38,7 +38,7 @@ exports.resolveAgentInfraCapabilities = resolveAgentInfraCapabilities;
|
|
|
38
38
|
* hang). A change to agent boot that can only be undone by shipping a build is
|
|
39
39
|
* a change that stays broken for a release cycle.
|
|
40
40
|
*
|
|
41
|
-
* **To roll back:** set `
|
|
41
|
+
* **To roll back:** set `DOMINEVO_AGENT_LOCAL_DATA_STORE=1` in the agent
|
|
42
42
|
* container's environment and restart it. That restores `INFRA_CAPABILITIES`
|
|
43
43
|
* EXACTLY (same entries, same order, same `required` flags) minus the hub-only
|
|
44
44
|
* `keychain`, which no flag brings to an agent — so the agent boots its own `sqlite-settings` again and the data door resolves that engine
|
|
@@ -53,7 +53,7 @@ const system_1 = require("@dominevo/server/system");
|
|
|
53
53
|
* for what it disables, so an operator reading a container's environment can
|
|
54
54
|
* tell what it does without this file.
|
|
55
55
|
*/
|
|
56
|
-
exports.AGENT_LOCAL_DATA_STORE_ENV = '
|
|
56
|
+
exports.AGENT_LOCAL_DATA_STORE_ENV = 'DOMINEVO_AGENT_LOCAL_DATA_STORE';
|
|
57
57
|
/** The capability an agent no longer boots. */
|
|
58
58
|
const DATA_STORE_PROVIDER = 'data-store-provider';
|
|
59
59
|
/**
|
|
@@ -20,7 +20,7 @@ exports.runAgentSelfUpdate = runAgentSelfUpdate;
|
|
|
20
20
|
* (D49, D393): the reason is logged and nothing changes. The cadence is the update-check
|
|
21
21
|
* constant; there is no retry loop (D3).
|
|
22
22
|
*
|
|
23
|
-
* Off switch: `
|
|
23
|
+
* Off switch: `DOMINEVO_AGENT_SELF_UPDATE=off` (or `0`/`false`).
|
|
24
24
|
*/
|
|
25
25
|
const index_js_1 = require("../server-root/index.js");
|
|
26
26
|
function skip(reason, failedRead = false) {
|
|
@@ -55,7 +55,7 @@ function decideAgentSelfUpdate(input) {
|
|
|
55
55
|
return { action: 'stage', version: target, source };
|
|
56
56
|
}
|
|
57
57
|
function agentSelfUpdateEnabled(env) {
|
|
58
|
-
const raw = env['
|
|
58
|
+
const raw = env['DOMINEVO_AGENT_SELF_UPDATE']?.trim().toLowerCase();
|
|
59
59
|
return !(raw === 'off' || raw === '0' || raw === 'false' || raw === 'no');
|
|
60
60
|
}
|
|
61
61
|
/** One self-update pass. Every decision is logged with the versions; it never throws. */
|
|
@@ -63,7 +63,7 @@ async function runAgentSelfUpdate(ports) {
|
|
|
63
63
|
const { log } = ports;
|
|
64
64
|
try {
|
|
65
65
|
if (!ports.enabled()) {
|
|
66
|
-
log.info('agent self-update: off (
|
|
66
|
+
log.info('agent self-update: off (DOMINEVO_AGENT_SELF_UPDATE) — nothing checked');
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
69
|
const paired = ports.isPaired();
|
|
@@ -178,7 +178,7 @@ function readHubAddressFromConfig(configPath) {
|
|
|
178
178
|
/**
|
|
179
179
|
* Read the addon declaration ids contributed by a deployed package.
|
|
180
180
|
*
|
|
181
|
-
* `loadedAddons` is keyed by `
|
|
181
|
+
* `loadedAddons` is keyed by `dominevo.addons[].id` (the declaration
|
|
182
182
|
* id), not the package name. A redeploy's `$agent.deploy` param is the
|
|
183
183
|
* package name, so the deploy handler reads the freshly-extracted
|
|
184
184
|
* `package.json` to recover the real ids it must evict before
|
|
@@ -191,7 +191,7 @@ function readDeployedAddonIds(addonDir) {
|
|
|
191
191
|
if (!fs.existsSync(manifestPath))
|
|
192
192
|
return [];
|
|
193
193
|
const raw = JSON.parse(fs.readFileSync(manifestPath, 'utf-8'));
|
|
194
|
-
const entries = raw.
|
|
194
|
+
const entries = raw.dominevo?.addons ?? [];
|
|
195
195
|
const ids = [];
|
|
196
196
|
for (const entry of entries) {
|
|
197
197
|
if (typeof entry.id === 'string' && entry.id.length > 0)
|
|
@@ -448,7 +448,7 @@ function createAgentService(deps) {
|
|
|
448
448
|
// (test harnesses).
|
|
449
449
|
applyBundle: async (buf) => {
|
|
450
450
|
if (deps.installBundleTgz) {
|
|
451
|
-
const tgzPath = path.join(os.tmpdir(), `
|
|
451
|
+
const tgzPath = path.join(os.tmpdir(), `dominevo-deploy-${addonId.replace(/[^\w.-]/g, '_')}-${Date.now()}.tgz`);
|
|
452
452
|
fs.writeFileSync(tgzPath, buf);
|
|
453
453
|
try {
|
|
454
454
|
const { name } = await deps.installBundleTgz(tgzPath);
|
|
@@ -42,7 +42,7 @@ exports.agentRuntimeManifestEntry = agentRuntimeManifestEntry;
|
|
|
42
42
|
* AgentUpdateService — agent-side adapter over the SHARED `RootUpdateService`
|
|
43
43
|
* (`@dominevo/node-root`, bundled into the `@dominevo/server` dist by tsup).
|
|
44
44
|
* Post-consolidation the agent boots the SAME `@dominevo/server` closure as
|
|
45
|
-
* the hub (via `
|
|
45
|
+
* the hub (via `DOMINEVO_ROLE=agent`), so this service stages/applies
|
|
46
46
|
* `@dominevo/server` closures in `<agentDataDir>/server-root/`, applied on
|
|
47
47
|
* restart by the shared STARTER (single-copy in-place swap — no probation,
|
|
48
48
|
* no auto-rollback).
|
|
@@ -50,8 +50,8 @@ exports.agentRuntimeManifestEntry = agentRuntimeManifestEntry;
|
|
|
50
50
|
* The engine lives in the shared core; this module binds the agent's
|
|
51
51
|
* parameters, which differ from the hub only in the RESTART seam:
|
|
52
52
|
* - spec `@dominevo/server` + `dist/launcher.js` (the single root spec)
|
|
53
|
-
* - env markers `
|
|
54
|
-
* `
|
|
53
|
+
* - env markers `DOMINEVO_SERVER_{BOOT_MODE,ACTIVE_VERSION}` +
|
|
54
|
+
* `DOMINEVO_SEED_SERVER_DIR` (written by the shared starter / image) —
|
|
55
55
|
* identical to the hub, because the on-disk root is `@dominevo/server`
|
|
56
56
|
* - restart = graceful self-SIGTERM → the supervisor (docker restart
|
|
57
57
|
* policy / Electron main) relaunches → the shared starter swaps the copy
|
|
@@ -219,19 +219,19 @@ class AgentUpdateService extends index_js_1.RootUpdateService {
|
|
|
219
219
|
// Resolved before `super` so the base class stamps `tags.nodeId` on every
|
|
220
220
|
// line. `bindAvailability` can re-point `this.nodeId` later once the hub
|
|
221
221
|
// handshake settles the id; the log tag keeps the boot-time value, which is
|
|
222
|
-
// the same string in every deployment that sets `
|
|
223
|
-
const nodeId = options.nodeId ?? process.env['
|
|
222
|
+
// the same string in every deployment that sets `DOMINEVO_NODE_ID`.
|
|
223
|
+
const nodeId = options.nodeId ?? process.env['DOMINEVO_NODE_ID'] ?? 'agent';
|
|
224
224
|
const restartAnnouncer = new AgentRestartAnnouncer(options.logger, options.eventBus ?? null, nodeId);
|
|
225
225
|
super({
|
|
226
226
|
spec: index_js_1.HUB_ROOT_SPEC,
|
|
227
227
|
nodeId,
|
|
228
228
|
// The agent's on-disk root IS `@dominevo/server` (booted via
|
|
229
|
-
//
|
|
230
|
-
// `
|
|
229
|
+
// DOMINEVO_ROLE=agent by the shared starter), so it reads the SAME
|
|
230
|
+
// `DOMINEVO_SERVER_*` boot markers the starter writes.
|
|
231
231
|
envNames: {
|
|
232
|
-
bootMode: '
|
|
233
|
-
activeVersion: '
|
|
234
|
-
seedDir: '
|
|
232
|
+
bootMode: 'DOMINEVO_SERVER_BOOT_MODE',
|
|
233
|
+
activeVersion: 'DOMINEVO_SERVER_ACTIVE_VERSION',
|
|
234
|
+
seedDir: 'DOMINEVO_SEED_SERVER_DIR',
|
|
235
235
|
},
|
|
236
236
|
logger: options.logger,
|
|
237
237
|
restartServer: (requestedBy, update) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Derive the agent's `
|
|
3
|
+
* Derive the agent's `DOMINEVO_HUB_URL` from its friendly `hubAddress`.
|
|
4
4
|
*
|
|
5
5
|
* `hubAddress` is the agent's single source of truth for "where is the hub"
|
|
6
6
|
* (the Moleculer TCP dial target). The cross-node consumers of
|
|
7
|
-
* `
|
|
7
|
+
* `DOMINEVO_HUB_URL` — the pipeline-runner remote-source leg and the
|
|
8
8
|
* cross-node recorder pull — only ever extract the HOSTNAME from it
|
|
9
9
|
* (`resolveHubHostname` / `extractHost` in
|
|
10
10
|
* `packages/addon-pipeline/src/shared/hub-hostname.ts`). Deriving the value
|
|
@@ -43,7 +43,7 @@ function deriveHubUrlFromHubAddress(hubAddress) {
|
|
|
43
43
|
return `https://${host}:${HUB_API_PORT}`;
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
|
-
* Compute the `
|
|
46
|
+
* Compute the `DOMINEVO_HUB_URL` value the agent should export, or `undefined`
|
|
47
47
|
* when it must be left untouched. An explicit operator-provided env value
|
|
48
48
|
* (`hubUrlWasExplicit`) always wins and is never clobbered — this preserves
|
|
49
49
|
* today's working deployments. Kept pure (env is passed in) so both the
|
package/dist/agent/main.js
CHANGED
|
@@ -135,18 +135,18 @@ async function startAgent(configPath) {
|
|
|
135
135
|
})
|
|
136
136
|
: null;
|
|
137
137
|
const config = rediscovered?.kind === 'found' ? (0, agent_config_js_1.loadAgentConfig)(configPath) : bootConfig;
|
|
138
|
-
// Derive
|
|
138
|
+
// Derive DOMINEVO_HUB_URL from the configured hub address so remote agents
|
|
139
139
|
// no longer need a second, redundant env var set by hand (the cross-node
|
|
140
140
|
// source trap). An explicit operator value ALWAYS wins — capture whether it
|
|
141
141
|
// was set BEFORE deriving so reconnect() can still update a derived value.
|
|
142
142
|
// This runs before every runner spawn (loadClusterCapableAddons /
|
|
143
143
|
// loadDeployedAddons below), and process-service spreads `process.env` into
|
|
144
144
|
// child env, so pipeline-runner + recorder children inherit it for free.
|
|
145
|
-
const hubUrlWasExplicit = process.env['
|
|
145
|
+
const hubUrlWasExplicit = process.env['DOMINEVO_HUB_URL'] !== undefined;
|
|
146
146
|
const derivedHubUrl = (0, derive_hub_url_js_1.deriveHubUrlForExport)(hubUrlWasExplicit, config.hubAddress);
|
|
147
147
|
if (derivedHubUrl !== undefined) {
|
|
148
|
-
process.env['
|
|
149
|
-
console.log(`[Agent] Derived
|
|
148
|
+
process.env['DOMINEVO_HUB_URL'] = derivedHubUrl;
|
|
149
|
+
console.log(`[Agent] Derived DOMINEVO_HUB_URL=${derivedHubUrl} from hub address "${config.hubAddress}"`);
|
|
150
150
|
}
|
|
151
151
|
if (config.hubAddress) {
|
|
152
152
|
console.log(`[Agent] Starting node "${config.nodeId}" (name="${config.name}") connecting to ${config.hubAddress}`);
|
|
@@ -162,13 +162,13 @@ async function startAgent(configPath) {
|
|
|
162
162
|
console.log(`[Agent] Data dir: ${config.dataDir}`);
|
|
163
163
|
// Ensure required addon packages are installed in the agent's addonsDir.
|
|
164
164
|
// Resolution order:
|
|
165
|
-
// 1. `
|
|
165
|
+
// 1. `DOMINEVO_BUNDLED_ADDONS_DIR` — Electron-packaged builds copy out of
|
|
166
166
|
// the closure's own scope dir, `<resourcesPath>/node_modules/@dominevo`
|
|
167
167
|
// (`'local'` mode). Was a second `<resourcesPath>/addons` tree until
|
|
168
168
|
// 2026-08-25 — see `packages/desktop/src/process-manager.ts`.
|
|
169
169
|
// 2. Otherwise npm from registry. A workspace build reaches a node via
|
|
170
170
|
// `dominevo deploy` (CLI tarball upload), bypassing this path.
|
|
171
|
-
const bundledDir = process.env['
|
|
171
|
+
const bundledDir = process.env['DOMINEVO_BUNDLED_ADDONS_DIR'];
|
|
172
172
|
const installer = new system_1.AddonInstaller({
|
|
173
173
|
addonsDir: config.addonsDir,
|
|
174
174
|
...(bundledDir && fs.existsSync(bundledDir) ? { bundledAddonsDir: bundledDir } : {}),
|
|
@@ -261,16 +261,16 @@ async function startAgent(configPath) {
|
|
|
261
261
|
pendingConfig = fresh;
|
|
262
262
|
console.log(`[Agent] New config: hub=${fresh.hubAddress ?? 'none'}, ` +
|
|
263
263
|
`mesh=${fresh.meshTls !== undefined ? 'tls (paired)' : 'none (unpaired)'}`);
|
|
264
|
-
// Re-derive
|
|
264
|
+
// Re-derive DOMINEVO_HUB_URL when the dashboard has just written a hubAddress. Explicit operator values
|
|
265
265
|
// still win via the boot-captured `hubUrlWasExplicit` flag.
|
|
266
266
|
// KNOWN LIMITATION (Stage-0): runners already spawned before this reconnect
|
|
267
267
|
// keep the env they inherited; picking up a changed hub address in live
|
|
268
268
|
// children would need a runner respawn. Boot-time — the actual trap — is
|
|
269
269
|
// fully covered.
|
|
270
270
|
const freshHubUrl = (0, derive_hub_url_js_1.deriveHubUrlForExport)(hubUrlWasExplicit, fresh.hubAddress);
|
|
271
|
-
if (freshHubUrl !== undefined && process.env['
|
|
272
|
-
process.env['
|
|
273
|
-
console.log(`[Agent] Derived
|
|
271
|
+
if (freshHubUrl !== undefined && process.env['DOMINEVO_HUB_URL'] !== freshHubUrl) {
|
|
272
|
+
process.env['DOMINEVO_HUB_URL'] = freshHubUrl;
|
|
273
|
+
console.log(`[Agent] Derived DOMINEVO_HUB_URL=${freshHubUrl} from hub address "${fresh.hubAddress}"`);
|
|
274
274
|
}
|
|
275
275
|
currentMeshTls = fresh.meshTls ?? null;
|
|
276
276
|
},
|
|
@@ -929,8 +929,8 @@ async function startAgent(configPath) {
|
|
|
929
929
|
}),
|
|
930
930
|
getReport: () => (0, agent_addon_updates_js_1.buildAgentAddonUpdateReport)({
|
|
931
931
|
addonsDir: config.addonsDir,
|
|
932
|
-
...(process.env['
|
|
933
|
-
? { registryUrl: process.env['
|
|
932
|
+
...(process.env['DOMINEVO_NPM_REGISTRY'] !== undefined
|
|
933
|
+
? { registryUrl: process.env['DOMINEVO_NPM_REGISTRY'] }
|
|
934
934
|
: {}),
|
|
935
935
|
fetchFn: (url) => fetch(url),
|
|
936
936
|
isHubReachable: () => getHubConnectionState() === 'connected',
|
|
@@ -940,7 +940,7 @@ async function startAgent(configPath) {
|
|
|
940
940
|
// -- Pairing (D857) -------------------------------------------------------------
|
|
941
941
|
// A hub pairs this agent from outside; the agent installs the certificate only after
|
|
942
942
|
// its own operator confirmed the code. Its pairing state is advertised over mDNS.
|
|
943
|
-
const agentVersion = process.env['
|
|
943
|
+
const agentVersion = process.env['DOMINEVO_AGENT_APP_VERSION'] ?? agentUpdateService.getRunningRootPackage().version;
|
|
944
944
|
const agentMdns = new system_1.AgentMdnsAdvertiser({
|
|
945
945
|
publisher: (0, system_1.createCiaoPublisher)(),
|
|
946
946
|
logger: consoleLogger,
|
|
@@ -1187,7 +1187,7 @@ async function startAgent(configPath) {
|
|
|
1187
1187
|
// `ctx.api` for every addon is built inside `createAddonContext` from
|
|
1188
1188
|
// `[localProviderLink, brokerTransportLink(broker)]`. Unresolved calls
|
|
1189
1189
|
// route via Moleculer to the hub (or any other node hosting the cap).
|
|
1190
|
-
// No separate hub WSS client, no `
|
|
1190
|
+
// No separate hub WSS client, no `DOMINEVO_HUB_API_URL` — all cross-node
|
|
1191
1191
|
// traffic rides the broker mesh.
|
|
1192
1192
|
// ── Phase 1.5: Load cluster-capable addon packages (forkable → child process) ──
|
|
1193
1193
|
await loadClusterCapableAddons(broker, config, capabilityRegistry, loadedAddons);
|
|
@@ -1245,7 +1245,7 @@ async function startAgent(configPath) {
|
|
|
1245
1245
|
// forwards to the hub (`hub-settings-forward.ts`), so booting `sqlite-settings`
|
|
1246
1246
|
// here would only open a database nothing reads. See
|
|
1247
1247
|
// `agent-infra-capabilities.ts` for the measurement behind that and for the
|
|
1248
|
-
// one-env-var rollback (`
|
|
1248
|
+
// one-env-var rollback (`DOMINEVO_AGENT_LOCAL_DATA_STORE=1`).
|
|
1249
1249
|
const AGENT_INFRA = (0, agent_infra_capabilities_js_1.resolveAgentInfraCapabilities)(process.env);
|
|
1250
1250
|
async function bootCoreAddons(broker, config, registry, loadedAddons, loggerFactory) {
|
|
1251
1251
|
// Builtins come from the CLOSURE this process is running, exactly as the hub
|
|
@@ -1481,7 +1481,7 @@ async function loadDeployedAddons(broker, addonsDir, dataDir, loadedAddons, stor
|
|
|
1481
1481
|
if (!fs.existsSync(addonsDir))
|
|
1482
1482
|
return;
|
|
1483
1483
|
// Discover deployable addons by reading each package's MANIFEST
|
|
1484
|
-
// (package.json `
|
|
1484
|
+
// (package.json `dominevo.addons[]`) — NOT by importing the entry module.
|
|
1485
1485
|
// Importing heavy native addon entries (node-av / onnxruntime bridge / …) on
|
|
1486
1486
|
// the agent MAIN thread is what wedged `$agent.reload` and dropped the node
|
|
1487
1487
|
// from topology. A group-runner addon only needs its declaration to be
|
|
@@ -1546,11 +1546,11 @@ async function loadDeployedAddons(broker, addonsDir, dataDir, loadedAddons, stor
|
|
|
1546
1546
|
* never imported on the agent main thread during a reload.
|
|
1547
1547
|
*/
|
|
1548
1548
|
async function loadInProcessDeployedAddons(broker, dirs, dataDir, loadedAddons, storageProvider, loggerFactory, capabilityRegistry) {
|
|
1549
|
-
// Node-local models dir — anchored at this node's data root (
|
|
1549
|
+
// Node-local models dir — anchored at this node's data root (DOMINEVO_DATA ??
|
|
1550
1550
|
// the agent --data dir), never the hub-singleton `storage` cap. Mirrors
|
|
1551
|
-
//
|
|
1551
|
+
// `resolveModelsDir` (@dominevo/types/node) so addons that read the hint and those that
|
|
1552
1552
|
// self-resolve agree on one path.
|
|
1553
|
-
const modelsDir = path.join(process.env['
|
|
1553
|
+
const modelsDir = path.join(process.env['DOMINEVO_DATA'] ?? dataDir, 'models');
|
|
1554
1554
|
const contextOptions = {
|
|
1555
1555
|
storageProvider,
|
|
1556
1556
|
addonConfig: { modelsDir },
|
|
@@ -1604,7 +1604,7 @@ async function loadInProcessDeployedAddons(broker, dirs, dataDir, loadedAddons,
|
|
|
1604
1604
|
// ---------------------------------------------------------------------------
|
|
1605
1605
|
/**
|
|
1606
1606
|
* Read the agent's own root package.json version (best-effort). The agent
|
|
1607
|
-
* boots the `@dominevo/server` closure (via
|
|
1607
|
+
* boots the `@dominevo/server` closure (via DOMINEVO_ROLE=agent), so its
|
|
1608
1608
|
* on-disk root package is `@dominevo/server`.
|
|
1609
1609
|
*/
|
|
1610
1610
|
function readAgentVersion() {
|
|
@@ -143,7 +143,7 @@ function groupCandidatesForSpawn(candidates, context, tracker, installed) {
|
|
|
143
143
|
return grouped;
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
146
|
-
* `
|
|
146
|
+
* `dominevo.requires` of the package.json in `dir`: `undefined` when the package
|
|
147
147
|
* declares none, `UnreadableRequires` when the file is missing, not JSON, or
|
|
148
148
|
* declares a `requires` the schema rejects (never a pass).
|
|
149
149
|
*/
|
|
@@ -157,19 +157,19 @@ function readPackageRequires(dir) {
|
|
|
157
157
|
}
|
|
158
158
|
if (typeof raw !== 'object' || raw === null)
|
|
159
159
|
return { unreadable: 'package.json is not an object' };
|
|
160
|
-
const
|
|
161
|
-
if (
|
|
160
|
+
const dominevo = Reflect.get(raw, 'dominevo');
|
|
161
|
+
if (dominevo === undefined)
|
|
162
162
|
return undefined;
|
|
163
|
-
if (typeof
|
|
164
|
-
return { unreadable: 'package.json "
|
|
163
|
+
if (typeof dominevo !== 'object' || dominevo === null) {
|
|
164
|
+
return { unreadable: 'package.json "dominevo" is not an object' };
|
|
165
165
|
}
|
|
166
|
-
const declared = Reflect.get(
|
|
166
|
+
const declared = Reflect.get(dominevo, 'requires');
|
|
167
167
|
if (declared === undefined)
|
|
168
168
|
return undefined;
|
|
169
169
|
const parsed = types_1.PackageRequiresSchema.safeParse(declared);
|
|
170
170
|
return parsed.success
|
|
171
171
|
? parsed.data
|
|
172
172
|
: {
|
|
173
|
-
unreadable: `
|
|
173
|
+
unreadable: `dominevo.requires is malformed: ${parsed.error.issues[0]?.message ?? 'invalid'}`,
|
|
174
174
|
};
|
|
175
175
|
}
|