@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
|
@@ -7,7 +7,7 @@ index 74cf126..0c5cedf 100644
|
|
|
7
7
|
protocol.localCandidate = new candidate_1.Candidate((0, candidate_1.candidateFoundation)("host", "udp", candidateAddress[0]), 1, "udp", (0, candidate_1.candidatePriority)("host"), candidateAddress[0], candidateAddress[1], "host", undefined, undefined, undefined, this.generation, this.localUsername);
|
|
8
8
|
this.pairLocalProtocol(protocol);
|
|
9
9
|
- this.appendLocalCandidate(protocol.localCandidate);
|
|
10
|
-
+ //
|
|
10
|
+
+ // dominevo: relay-only SDP under forceTurn (werift forceTurn candidate leak) — see werift-turn-fix spec
|
|
11
11
|
+ if (!this.options.forceTurn) {
|
|
12
12
|
+ this.appendLocalCandidate(protocol.localCandidate);
|
|
13
13
|
+ }
|
|
@@ -19,7 +19,7 @@ index 74cf126..0c5cedf 100644
|
|
|
19
19
|
log("error", error);
|
|
20
20
|
});
|
|
21
21
|
- if (candidate) {
|
|
22
|
-
+ //
|
|
22
|
+
+ // dominevo: relay-only SDP under forceTurn (werift forceTurn candidate leak) — see werift-turn-fix spec
|
|
23
23
|
+ if (candidate && !this.options.forceTurn) {
|
|
24
24
|
this.appendLocalCandidate(candidate);
|
|
25
25
|
}
|
|
@@ -33,18 +33,18 @@ index 3e8b013..f481aa5 100644
|
|
|
33
33
|
var csrcOffset = 12;
|
|
34
34
|
var csrcSize = 4;
|
|
35
35
|
+
|
|
36
|
-
+//
|
|
37
|
-
+var
|
|
38
|
-
+var
|
|
39
|
-
+var
|
|
40
|
-
+function
|
|
41
|
-
+ if (size >
|
|
42
|
-
+ if (
|
|
43
|
-
+
|
|
44
|
-
+
|
|
36
|
+
+// dominevo: D868 — SRTP output arena (see lib/rtp/src/rtp/rtp.js).
|
|
37
|
+
+var DOMINEVO_SRTP_ARENA_BYTES = 262144;
|
|
38
|
+
+var dominevoSrtpArena = Buffer.allocUnsafeSlow(0);
|
|
39
|
+
+var dominevoSrtpArenaOffset = 0;
|
|
40
|
+
+function dominevoSrtpOut(size) {
|
|
41
|
+
+ if (size > DOMINEVO_SRTP_ARENA_BYTES >> 2) return Buffer.allocUnsafeSlow(size);
|
|
42
|
+
+ if (dominevoSrtpArenaOffset + size > dominevoSrtpArena.length) {
|
|
43
|
+
+ dominevoSrtpArena = Buffer.allocUnsafeSlow(DOMINEVO_SRTP_ARENA_BYTES);
|
|
44
|
+
+ dominevoSrtpArenaOffset = 0;
|
|
45
45
|
+ }
|
|
46
|
-
+ const out =
|
|
47
|
-
+
|
|
46
|
+
+ const out = dominevoSrtpArena.subarray(dominevoSrtpArenaOffset, dominevoSrtpArenaOffset + size);
|
|
47
|
+
+ dominevoSrtpArenaOffset += size;
|
|
48
48
|
+ return out;
|
|
49
49
|
+}
|
|
50
50
|
var RtpHeader = class _RtpHeader {
|
|
@@ -67,7 +67,7 @@ index 3e8b013..f481aa5 100644
|
|
|
67
67
|
encryptRtp(header, payload, rolloverCounter) {
|
|
68
68
|
- const headerBuffer = header.serialize(header.serializeSize);
|
|
69
69
|
+ const hdrSize = header.serializeSize;
|
|
70
|
-
+ const out =
|
|
70
|
+
+ const out = dominevoSrtpOut(hdrSize + payload.length + this.authTagLength);
|
|
71
71
|
+ const headerBuffer = header.serialize(hdrSize, out.subarray(0, hdrSize));
|
|
72
72
|
const counter = this.generateCounter(
|
|
73
73
|
header.sequenceNumber,
|
|
@@ -89,7 +89,7 @@ index 3e8b013..f481aa5 100644
|
|
|
89
89
|
encryptRtp(header, payload, rolloverCounter) {
|
|
90
90
|
- const hdr = header.serialize(header.serializeSize);
|
|
91
91
|
+ const hdrSize = header.serializeSize;
|
|
92
|
-
+ const out =
|
|
92
|
+
+ const out = dominevoSrtpOut(hdrSize + payload.length + this.aeadAuthTagLen);
|
|
93
93
|
+ const hdr = header.serialize(hdrSize, out.subarray(0, hdrSize));
|
|
94
94
|
const iv = this.rtpInitializationVector(header, rolloverCounter);
|
|
95
95
|
const cipher = createCipheriv3("aes-128-gcm", this.srtpSessionKey, iv);
|
|
@@ -110,7 +110,7 @@ index 3e8b013..f481aa5 100644
|
|
|
110
110
|
);
|
|
111
111
|
this.pairLocalProtocol(protocol);
|
|
112
112
|
- this.appendLocalCandidate(protocol.localCandidate);
|
|
113
|
-
+ //
|
|
113
|
+
+ // dominevo: relay-only SDP under forceTurn (werift forceTurn candidate leak) — see werift-turn-fix spec
|
|
114
114
|
+ if (!this.options.forceTurn) {
|
|
115
115
|
+ this.appendLocalCandidate(protocol.localCandidate);
|
|
116
116
|
+ }
|
|
@@ -122,7 +122,7 @@ index 3e8b013..f481aa5 100644
|
|
|
122
122
|
log22("error", error);
|
|
123
123
|
});
|
|
124
124
|
- if (candidate) {
|
|
125
|
-
+ //
|
|
125
|
+
+ // dominevo: relay-only SDP under forceTurn (werift forceTurn candidate leak) — see werift-turn-fix spec
|
|
126
126
|
+ if (candidate && !this.options.forceTurn) {
|
|
127
127
|
this.appendLocalCandidate(candidate);
|
|
128
128
|
}
|
|
@@ -145,25 +145,25 @@ index 97b2767..b8ee886 100644
|
|
|
145
145
|
const csrcOffset = 12;
|
|
146
146
|
const csrcSize = 4;
|
|
147
147
|
+
|
|
148
|
-
+//
|
|
148
|
+
+// dominevo: D868 — SRTP output arena. Every outgoing RTP packet used to cost a
|
|
149
149
|
+// Buffer.alloc for the header and a Buffer.concat for header + ciphertext + tag.
|
|
150
150
|
+// The packet now lands in a dense slice of a 256 KiB arena that is never reused
|
|
151
151
|
+// (a full arena is left to the GC and lives as long as the datagram in flight).
|
|
152
|
-
+const
|
|
153
|
-
+let
|
|
154
|
-
+let
|
|
155
|
-
+function
|
|
156
|
-
+ if (size >
|
|
152
|
+
+const DOMINEVO_SRTP_ARENA_BYTES = 262144;
|
|
153
|
+
+let dominevoSrtpArena = Buffer.allocUnsafeSlow(0);
|
|
154
|
+
+let dominevoSrtpArenaOffset = 0;
|
|
155
|
+
+function dominevoSrtpOut(size) {
|
|
156
|
+
+ if (size > DOMINEVO_SRTP_ARENA_BYTES >> 2)
|
|
157
157
|
+ return Buffer.allocUnsafeSlow(size);
|
|
158
|
-
+ if (
|
|
159
|
-
+
|
|
160
|
-
+
|
|
158
|
+
+ if (dominevoSrtpArenaOffset + size > dominevoSrtpArena.length) {
|
|
159
|
+
+ dominevoSrtpArena = Buffer.allocUnsafeSlow(DOMINEVO_SRTP_ARENA_BYTES);
|
|
160
|
+
+ dominevoSrtpArenaOffset = 0;
|
|
161
161
|
+ }
|
|
162
|
-
+ const out =
|
|
163
|
-
+
|
|
162
|
+
+ const out = dominevoSrtpArena.subarray(dominevoSrtpArenaOffset, dominevoSrtpArenaOffset + size);
|
|
163
|
+
+ dominevoSrtpArenaOffset += size;
|
|
164
164
|
+ return out;
|
|
165
165
|
+}
|
|
166
|
-
+exports.
|
|
166
|
+
+exports.dominevoSrtpOut = dominevoSrtpOut;
|
|
167
167
|
/*
|
|
168
168
|
* 0 1 2 3
|
|
169
169
|
* 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
|
@@ -174,7 +174,7 @@ index 97b2767..b8ee886 100644
|
|
|
174
174
|
- serialize(size) {
|
|
175
175
|
- const buf = Buffer.alloc(size);
|
|
176
176
|
+ serialize(size, into) {
|
|
177
|
-
+ //
|
|
177
|
+
+ // dominevo: D868 — SRTP writes the header straight into its output buffer.
|
|
178
178
|
+ const buf = into ? into.fill(0, 0, size) : Buffer.alloc(size);
|
|
179
179
|
let offset = 0;
|
|
180
180
|
const v_p_x_cc = new src_1.BitWriter(8);
|
|
@@ -188,9 +188,9 @@ index e0c1380..13aa5aa 100644
|
|
|
188
188
|
}
|
|
189
189
|
encryptRtp(header, payload, rolloverCounter) {
|
|
190
190
|
- const headerBuffer = header.serialize(header.serializeSize);
|
|
191
|
-
+ //
|
|
191
|
+
+ // dominevo: D868 — header, ciphertext and tag in ONE arena slice (no serialize alloc, no concat).
|
|
192
192
|
+ const hdrSize = header.serializeSize;
|
|
193
|
-
+ const out = rtp_1.
|
|
193
|
+
+ const out = rtp_1.dominevoSrtpOut(hdrSize + payload.length + this.authTagLength);
|
|
194
194
|
+ const headerBuffer = header.serialize(hdrSize, out.subarray(0, hdrSize));
|
|
195
195
|
const counter = this.generateCounter(header.sequenceNumber, rolloverCounter, header.ssrc, this.srtpSessionSalt);
|
|
196
196
|
const cipher = (0, crypto_1.createCipheriv)("aes-128-ctr", this.srtpSessionKey, counter);
|
|
@@ -212,9 +212,9 @@ index 8d9d498..4cdd15b 100644
|
|
|
212
212
|
}
|
|
213
213
|
encryptRtp(header, payload, rolloverCounter) {
|
|
214
214
|
- const hdr = header.serialize(header.serializeSize);
|
|
215
|
-
+ //
|
|
215
|
+
+ // dominevo: D868 — header, ciphertext and tag in ONE arena slice (no serialize alloc, no concat).
|
|
216
216
|
+ const hdrSize = header.serializeSize;
|
|
217
|
-
+ const out = rtp_1.
|
|
217
|
+
+ const out = rtp_1.dominevoSrtpOut(hdrSize + payload.length + this.aeadAuthTagLen);
|
|
218
218
|
+ const hdr = header.serialize(hdrSize, out.subarray(0, hdrSize));
|
|
219
219
|
const iv = this.rtpInitializationVector(header, rolloverCounter);
|
|
220
220
|
const cipher = (0, crypto_1.createCipheriv)("aes-128-gcm", this.srtpSessionKey, iv);
|
|
@@ -120,7 +120,7 @@ function isVersionNewer(target, current) {
|
|
|
120
120
|
* from `packages/<pkg>/dist`, which the CLI rebuilt before uploading, so the
|
|
121
121
|
* dev loop (`dominevo deploy packages/system`) is unchanged.
|
|
122
122
|
*
|
|
123
|
-
* Membership is by package NAME, independent of the `
|
|
123
|
+
* Membership is by package NAME, independent of the `dominevo.system` manifest
|
|
124
124
|
* flag (`@dominevo/types` declares `system: false` yet is a framework package
|
|
125
125
|
* here) — that flag drives Admin-UI grouping; this gate drives upload routing.
|
|
126
126
|
*/
|
|
@@ -258,14 +258,14 @@ class AddonPackageService {
|
|
|
258
258
|
// Ensures install/uninstall works before full module init completes.
|
|
259
259
|
try {
|
|
260
260
|
const addonsDir = this.resolveAddonsDir();
|
|
261
|
-
// `
|
|
261
|
+
// `DOMINEVO_NPM_REGISTRY` override exists primarily for the e2e
|
|
262
262
|
// harness — it points the installer at a sandboxed verdaccio so
|
|
263
263
|
// the CLI-vs-npm version-interaction tests don't hit the public
|
|
264
264
|
// registry. In production this stays unset and the installer
|
|
265
265
|
// falls back to `https://registry.npmjs.org` (the default in
|
|
266
266
|
// AddonInstaller). Both the `npm install` shell-out AND the
|
|
267
267
|
// metadata HTTPS fetch honour this value.
|
|
268
|
-
const registry = process.env['
|
|
268
|
+
const registry = process.env['DOMINEVO_NPM_REGISTRY'];
|
|
269
269
|
this.installer = new system_1.AddonInstaller({
|
|
270
270
|
addonsDir,
|
|
271
271
|
...(registry ? { registry } : {}),
|
|
@@ -492,7 +492,7 @@ class AddonPackageService {
|
|
|
492
492
|
* Check whether a package is currently protected from uninstall.
|
|
493
493
|
*
|
|
494
494
|
* Source of truth: the running `AddonRegistry`'s loaded manifests —
|
|
495
|
-
* any addon in this package with `
|
|
495
|
+
* any addon in this package with `dominevo.addons[N].protected: true`
|
|
496
496
|
* marks the whole package non-removable. This replaces the legacy
|
|
497
497
|
* `AddonInstaller.REQUIRED_PACKAGES` hardcoded list.
|
|
498
498
|
*
|
|
@@ -656,7 +656,7 @@ class AddonPackageService {
|
|
|
656
656
|
const installedDir = path.join(this.resolveAddonsDir(), name);
|
|
657
657
|
if (!fs.existsSync(path.join(installedDir, 'package.json')))
|
|
658
658
|
return null;
|
|
659
|
-
const destDir = fs.mkdtempSync(path.join(os.tmpdir(), '
|
|
659
|
+
const destDir = fs.mkdtempSync(path.join(os.tmpdir(), 'dominevo-pack-local-'));
|
|
660
660
|
try {
|
|
661
661
|
await execFileAsync('npm', ['pack', installedDir, '--pack-destination', destDir], {
|
|
662
662
|
timeout: 120_000,
|
|
@@ -683,7 +683,7 @@ class AddonPackageService {
|
|
|
683
683
|
* Throws when the registry cannot answer.
|
|
684
684
|
*/
|
|
685
685
|
async resolveRegistryVersion(name) {
|
|
686
|
-
return resolveNpmVersion(name, 'latest', process.env['
|
|
686
|
+
return resolveNpmVersion(name, 'latest', process.env['DOMINEVO_NPM_REGISTRY']);
|
|
687
687
|
}
|
|
688
688
|
/**
|
|
689
689
|
* Resolve `name@version` and `npm pack` it into a tarball buffer
|
|
@@ -696,10 +696,10 @@ class AddonPackageService {
|
|
|
696
696
|
* build the hub runs.
|
|
697
697
|
*/
|
|
698
698
|
async packPackage(name, version) {
|
|
699
|
-
const registry = process.env['
|
|
699
|
+
const registry = process.env['DOMINEVO_NPM_REGISTRY'];
|
|
700
700
|
const resolvedVersion = await resolveNpmVersion(name, version ?? 'latest', registry);
|
|
701
701
|
const spec = `${name}@${resolvedVersion}`;
|
|
702
|
-
const destDir = fs.mkdtempSync(path.join(os.tmpdir(), '
|
|
702
|
+
const destDir = fs.mkdtempSync(path.join(os.tmpdir(), 'dominevo-pack-'));
|
|
703
703
|
try {
|
|
704
704
|
const args = ['pack', spec, '--pack-destination', destDir, ...buildNpmRegistryArgs(registry)];
|
|
705
705
|
await execFileAsync('npm', args, { timeout: 120_000 });
|
|
@@ -718,9 +718,9 @@ class AddonPackageService {
|
|
|
718
718
|
// npm search
|
|
719
719
|
// =========================================================================
|
|
720
720
|
/**
|
|
721
|
-
* Search npm for
|
|
721
|
+
* Search npm for dominevo addon packages, optionally filtered by query and
|
|
722
722
|
* by a capability the package must declare. The capabilities come from each
|
|
723
|
-
* package's own `/latest` manifest (`
|
|
723
|
+
* package's own `/latest` manifest (`dominevo.addons[].capabilities`) — the
|
|
724
724
|
* single source of truth (D4), no hand-kept keywords. A package whose
|
|
725
725
|
* manifest could not be read carries `capabilities: null` and is excluded
|
|
726
726
|
* from a capability-filtered result (unknown is not a match).
|
|
@@ -792,7 +792,7 @@ class AddonPackageService {
|
|
|
792
792
|
await Promise.all(Array.from({ length: poolSize }, worker));
|
|
793
793
|
return result;
|
|
794
794
|
}
|
|
795
|
-
/** Read `
|
|
795
|
+
/** Read `dominevo.addons[].capabilities` from a package's `/latest`; null on any failure. */
|
|
796
796
|
async fetchPackageCapabilities(packageName) {
|
|
797
797
|
try {
|
|
798
798
|
const url = `${this.resolveRegistryBase()}/${packageName.replace('/', '%2F')}/latest`;
|
|
@@ -802,7 +802,7 @@ class AddonPackageService {
|
|
|
802
802
|
if (!response.ok)
|
|
803
803
|
return null;
|
|
804
804
|
const data = await fetchJsonObject(response);
|
|
805
|
-
const addons = asRecord(data['
|
|
805
|
+
const addons = asRecord(data['dominevo'])['addons'];
|
|
806
806
|
const names = new Set();
|
|
807
807
|
for (const addon of Array.isArray(addons) ? addons : []) {
|
|
808
808
|
const caps = asRecord(addon)['capabilities'];
|
|
@@ -1182,7 +1182,7 @@ class AddonPackageService {
|
|
|
1182
1182
|
* Ranges (`^1.2.0`) are still not supported — resolve those upstream.
|
|
1183
1183
|
*/
|
|
1184
1184
|
async fetchAddonTarball(name, version, signal) {
|
|
1185
|
-
const registry = process.env['
|
|
1185
|
+
const registry = process.env['DOMINEVO_NPM_REGISTRY'];
|
|
1186
1186
|
const reg = (registry ?? 'https://registry.npmjs.org').replace(/\/+$/, '');
|
|
1187
1187
|
const metaUrl = `${reg}/${encodeURIComponent(name).replace(/^%40/, '@')}`;
|
|
1188
1188
|
const metaRes = await fetch(metaUrl, { signal });
|
|
@@ -1255,7 +1255,7 @@ class AddonPackageService {
|
|
|
1255
1255
|
// (`post-boot.service.ts`): the announcement and the landing of one
|
|
1256
1256
|
// restart must name the same node, or a stale `node-updating` could not
|
|
1257
1257
|
// be matched to the `server-updated` that supersedes it (D723).
|
|
1258
|
-
data: { ...payload, nodeId: process.env['
|
|
1258
|
+
data: { ...payload, nodeId: process.env['DOMINEVO_NODE_ID'] ?? 'hub' },
|
|
1259
1259
|
});
|
|
1260
1260
|
// 10s grace gives in-flight requests time to drain.
|
|
1261
1261
|
(0, system_1.scheduleSelfRestart)({ delayMs: 10_000 });
|
|
@@ -1276,7 +1276,7 @@ class AddonPackageService {
|
|
|
1276
1276
|
* the sum.
|
|
1277
1277
|
*/
|
|
1278
1278
|
async listFrameworkPackages() {
|
|
1279
|
-
const registry = process.env['
|
|
1279
|
+
const registry = process.env['DOMINEVO_NPM_REGISTRY'];
|
|
1280
1280
|
const rows = await Promise.all(FRAMEWORK_STATUS_PACKAGES.map(async (packageName) => {
|
|
1281
1281
|
const manifest = readResolvedPackageManifest(packageName);
|
|
1282
1282
|
const currentVersion = manifest !== null && typeof manifest['version'] === 'string'
|
|
@@ -1370,7 +1370,7 @@ class AddonPackageService {
|
|
|
1370
1370
|
}
|
|
1371
1371
|
/** Node id stamped on availability events emitted by THIS process. */
|
|
1372
1372
|
resolveNodeId() {
|
|
1373
|
-
return process.env['
|
|
1373
|
+
return process.env['DOMINEVO_NODE_ID'] ?? 'hub';
|
|
1374
1374
|
}
|
|
1375
1375
|
// =========================================================================
|
|
1376
1376
|
// Reload
|
|
@@ -1656,7 +1656,7 @@ class AddonPackageService {
|
|
|
1656
1656
|
}
|
|
1657
1657
|
/** Resolve the top-level data directory */
|
|
1658
1658
|
resolveDataDir() {
|
|
1659
|
-
return path.resolve(process.env.
|
|
1659
|
+
return path.resolve(process.env.DOMINEVO_DATA ?? 'dominevo-data');
|
|
1660
1660
|
}
|
|
1661
1661
|
// =========================================================================
|
|
1662
1662
|
// Private: core package update checks
|
|
@@ -1711,9 +1711,9 @@ class AddonPackageService {
|
|
|
1711
1711
|
const version = asString(pkgJson['version']);
|
|
1712
1712
|
if (!name || !version || !this.isAllowedPackage(name))
|
|
1713
1713
|
continue;
|
|
1714
|
-
// Skip non-addon packages (core, types, etc.) — only check packages with
|
|
1715
|
-
const
|
|
1716
|
-
if (!
|
|
1714
|
+
// Skip non-addon packages (core, types, etc.) — only check packages with dominevo.addons
|
|
1715
|
+
const dominevoField = asRecord(pkgJson['dominevo']);
|
|
1716
|
+
if (!dominevoField['addons'])
|
|
1717
1717
|
continue;
|
|
1718
1718
|
// Skip workspace-installed packages (dev mode) — they always lag behind npm
|
|
1719
1719
|
const addonDir = path.dirname(pkgJsonPath);
|
|
@@ -1791,7 +1791,7 @@ class AddonPackageService {
|
|
|
1791
1791
|
/**
|
|
1792
1792
|
* Base URL for npm registry METADATA fetches.
|
|
1793
1793
|
*
|
|
1794
|
-
* Honours `
|
|
1794
|
+
* Honours `DOMINEVO_NPM_REGISTRY` so update checks resolve against
|
|
1795
1795
|
* the same registry the installer/pack paths use. Without this, a
|
|
1796
1796
|
* per-node `listUpdates` (which diffs an agent's roster via
|
|
1797
1797
|
* `checkUpdatesForInstalled` → `lookupLatestVersion`) would bypass a
|
|
@@ -1800,7 +1800,7 @@ class AddonPackageService {
|
|
|
1800
1800
|
* Trailing slashes are stripped so the `${base}/${name}` join is clean.
|
|
1801
1801
|
*/
|
|
1802
1802
|
resolveRegistryBase() {
|
|
1803
|
-
const override = process.env['
|
|
1803
|
+
const override = process.env['DOMINEVO_NPM_REGISTRY'];
|
|
1804
1804
|
const base = override && override.length > 0 ? override : AddonPackageService.NPM_REGISTRY;
|
|
1805
1805
|
return base.replace(/\/+$/, '');
|
|
1806
1806
|
}
|
|
@@ -1872,13 +1872,13 @@ class AddonPackageService {
|
|
|
1872
1872
|
}
|
|
1873
1873
|
this.updateAvailability.publishSnapshot('addon', candidates, scope);
|
|
1874
1874
|
}
|
|
1875
|
-
/** Fetch npm search results for
|
|
1875
|
+
/** Fetch npm search results for dominevo addon packages (cached 5 min) */
|
|
1876
1876
|
async fetchSearchFromNpm() {
|
|
1877
1877
|
if (this.searchCache &&
|
|
1878
1878
|
Date.now() - this.searchCache.timestamp < AddonPackageService.SEARCH_CACHE_TTL_MS) {
|
|
1879
1879
|
return this.searchCache.results;
|
|
1880
1880
|
}
|
|
1881
|
-
const url = 'https://registry.npmjs.org/-/v1/search?text=keywords:
|
|
1881
|
+
const url = 'https://registry.npmjs.org/-/v1/search?text=keywords:dominevo+keywords:addon&size=250';
|
|
1882
1882
|
try {
|
|
1883
1883
|
const response = await fetch(url, {
|
|
1884
1884
|
headers: { Accept: 'application/json' },
|
|
@@ -1972,7 +1972,7 @@ class AddonPackageService {
|
|
|
1972
1972
|
}
|
|
1973
1973
|
}
|
|
1974
1974
|
/**
|
|
1975
|
-
* The `
|
|
1975
|
+
* The `dominevo.requires` of `name@version` as the HUB would deliver it: the
|
|
1976
1976
|
* installed copy when it is that version, the registry's document otherwise.
|
|
1977
1977
|
* `undefined` is "declares nothing, or could not be read".
|
|
1978
1978
|
*/
|
|
@@ -1990,7 +1990,7 @@ class AddonPackageService {
|
|
|
1990
1990
|
const target = await this.fetchRequires(name, version);
|
|
1991
1991
|
return target.read ? target.requires : undefined;
|
|
1992
1992
|
}
|
|
1993
|
-
/** What a target's `
|
|
1993
|
+
/** What a target's `dominevo.requires` asks that this node does not meet (D989). */
|
|
1994
1994
|
unmetFor(requires) {
|
|
1995
1995
|
return (0, addon_requirements_js_1.unmetAddonRequirements)(requires, {
|
|
1996
1996
|
serverVersion: this.readServerVersion(),
|
|
@@ -1998,7 +1998,7 @@ class AddonPackageService {
|
|
|
1998
1998
|
});
|
|
1999
1999
|
}
|
|
2000
2000
|
/**
|
|
2001
|
-
* The `
|
|
2001
|
+
* The `dominevo.requires` of one registry version. An unreadable answer is
|
|
2002
2002
|
* reported as such (`read: false`) and never folded into "declares nothing":
|
|
2003
2003
|
* the caller that installs refuses, the one that only reports may carry on.
|
|
2004
2004
|
*/
|
|
@@ -2059,15 +2059,15 @@ class AddonPackageService {
|
|
|
2059
2059
|
/** Resolve the addons directory from config or fall back to default */
|
|
2060
2060
|
resolveAddonsDir() {
|
|
2061
2061
|
// Must match where the runtime LOADS addons (launcher.ts +
|
|
2062
|
-
// addon-registry.service.ts honor
|
|
2062
|
+
// addon-registry.service.ts honor DOMINEVO_ADDONS_DIR). If this service
|
|
2063
2063
|
// installed/reloaded from a different dir than the runtime loads, a
|
|
2064
2064
|
// post-install reload re-registers the hub node from an INCOMPLETE set
|
|
2065
2065
|
// (registerNode replaces the cap set atomically) — dropping in-process
|
|
2066
2066
|
// builtins like device-manager/addon-pages/addon-widgets.
|
|
2067
|
-
const envDir = process.env.
|
|
2067
|
+
const envDir = process.env.DOMINEVO_ADDONS_DIR;
|
|
2068
2068
|
if (envDir && envDir.trim().length > 0)
|
|
2069
2069
|
return path.resolve(envDir);
|
|
2070
|
-
const dataPath = this.configService.get('server.dataPath') ?? '
|
|
2070
|
+
const dataPath = this.configService.get('server.dataPath') ?? 'dominevo-data';
|
|
2071
2071
|
return path.resolve(dataPath, 'addons');
|
|
2072
2072
|
}
|
|
2073
2073
|
/** Throw if installer was not initialised */
|
|
@@ -2125,7 +2125,7 @@ exports.AddonPackageService = AddonPackageService;
|
|
|
2125
2125
|
*/
|
|
2126
2126
|
async function extractTgzStripped(tgz, destDir) {
|
|
2127
2127
|
fs.mkdirSync(destDir, { recursive: true });
|
|
2128
|
-
const tmpFile = path.join(os.tmpdir(), `
|
|
2128
|
+
const tmpFile = path.join(os.tmpdir(), `dominevo-tgz-${(0, node_crypto_1.randomUUID)()}.tgz`);
|
|
2129
2129
|
try {
|
|
2130
2130
|
fs.writeFileSync(tmpFile, tgz);
|
|
2131
2131
|
await execFileAsync('tar', ['--strip-components=1', '-xzf', tmpFile, '-C', destDir], {
|
|
@@ -2141,7 +2141,7 @@ async function extractTgzStripped(tgz, destDir) {
|
|
|
2141
2141
|
// ---------------------------------------------------------------------------
|
|
2142
2142
|
/**
|
|
2143
2143
|
* Build the npm CLI args that pin every relevant registry to
|
|
2144
|
-
* `
|
|
2144
|
+
* `DOMINEVO_NPM_REGISTRY`. We pass BOTH the default `--registry` and
|
|
2145
2145
|
* the scope-specific `--@dominevo:registry=` flag because workspace or
|
|
2146
2146
|
* user-home `.npmrc` files commonly declare
|
|
2147
2147
|
* `@dominevo:registry=https://registry.npmjs.org/`, and that scoped
|
|
@@ -601,11 +601,11 @@ class AddonRegistryService {
|
|
|
601
601
|
this.capabilityRegistry.setSingletonActiveAddon(data.capName, data.addonId ?? null);
|
|
602
602
|
});
|
|
603
603
|
// 2. Load all addons from the addons directory (including core builtins).
|
|
604
|
-
// Honors
|
|
604
|
+
// Honors DOMINEVO_ADDONS_DIR (a `node_modules`-shaped dir on Docker/Electron
|
|
605
605
|
// so forked ESM addon runners resolve @dominevo/* via walk-up — see the
|
|
606
606
|
// launcher). Defaults to `<dataDir>/addons` for dev.
|
|
607
|
-
const dataDir = path.resolve(process.env.
|
|
608
|
-
const addonsDir = process.env.
|
|
607
|
+
const dataDir = path.resolve(process.env.DOMINEVO_DATA ?? 'dominevo-data');
|
|
608
|
+
const addonsDir = process.env.DOMINEVO_ADDONS_DIR ?? path.resolve(dataDir, 'addons');
|
|
609
609
|
// Single-copy model (2026-07-18 collapse): the framework BUILTINS
|
|
610
610
|
// (`@dominevo/server`: device-manager, snapshot, storage, settings, …) load
|
|
611
611
|
// from the ACTIVE CLOSURE the hub itself runs from — resolved via the same
|
|
@@ -671,7 +671,7 @@ class AddonRegistryService {
|
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
673
|
// Create and store addon instance — cast from @dominevo/types to server's
|
|
674
|
-
// local
|
|
674
|
+
// local IDominevoAddon (structurally compatible at runtime).
|
|
675
675
|
// Wrap in try/catch so a single broken addon doesn't prevent the rest from loading.
|
|
676
676
|
try {
|
|
677
677
|
const addon = this.addonLoader.createInstance(registered.declaration.id);
|
|
@@ -1150,8 +1150,8 @@ class AddonRegistryService {
|
|
|
1150
1150
|
* monitor's catch path schedules the next retry.
|
|
1151
1151
|
*/
|
|
1152
1152
|
async tryReloadPackage(packageName) {
|
|
1153
|
-
const dataDir = path.resolve(process.env.
|
|
1154
|
-
const addonsDir = process.env.
|
|
1153
|
+
const dataDir = path.resolve(process.env.DOMINEVO_DATA ?? 'dominevo-data');
|
|
1154
|
+
const addonsDir = process.env.DOMINEVO_ADDONS_DIR ?? path.resolve(dataDir, 'addons');
|
|
1155
1155
|
const addonDir = path.join(addonsDir, packageName);
|
|
1156
1156
|
if (!fs.existsSync(addonDir)) {
|
|
1157
1157
|
throw new Error(`Package directory missing: ${addonDir}`);
|
|
@@ -1592,7 +1592,7 @@ class AddonRegistryService {
|
|
|
1592
1592
|
const entry = this.addonEntries.get(id);
|
|
1593
1593
|
if (!entry)
|
|
1594
1594
|
return;
|
|
1595
|
-
const agentName = process.env.
|
|
1595
|
+
const agentName = process.env.DOMINEVO_AGENT_NAME ?? 'hub';
|
|
1596
1596
|
const platform = `${os.platform()}/${os.arch()}`;
|
|
1597
1597
|
const runnerPid = pids !== undefined && pids.pidAfter !== null
|
|
1598
1598
|
? `, runner pid ${pids.pidBefore ?? 'none'} -> ${pids.pidAfter}`
|
|
@@ -1615,7 +1615,7 @@ class AddonRegistryService {
|
|
|
1615
1615
|
// `platform-probe` capability. Addons call `ctx.api.platformProbe.*`
|
|
1616
1616
|
// during their own initialize(). The backend no longer loops addons
|
|
1617
1617
|
// looking for `getModelRequirements` / `configure` — those hooks were
|
|
1618
|
-
// removed from the
|
|
1618
|
+
// removed from the IDominevoAddon contract.
|
|
1619
1619
|
/**
|
|
1620
1620
|
* Loads a package's optional `i18n/<lang>.json` catalogs (D863). The
|
|
1621
1621
|
* namespace is the package's short name (`@dominevo/addon-provider-reolink`
|
|
@@ -1882,8 +1882,8 @@ class AddonRegistryService {
|
|
|
1882
1882
|
* captured at boot. Never registers a new addon (that is `loadNewAddons`).
|
|
1883
1883
|
*/
|
|
1884
1884
|
async refreshPackageFromDisk(packageName) {
|
|
1885
|
-
const dataDir = path.resolve(process.env.
|
|
1886
|
-
const addonsDir = process.env.
|
|
1885
|
+
const dataDir = path.resolve(process.env.DOMINEVO_DATA ?? 'dominevo-data');
|
|
1886
|
+
const addonsDir = process.env.DOMINEVO_ADDONS_DIR ?? path.resolve(dataDir, 'addons');
|
|
1887
1887
|
const freshLoader = new system_1.AddonLoader(this.loggingService.createLogger('AddonLoader'));
|
|
1888
1888
|
await freshLoader.loadFromAddonDir(path.join(addonsDir, packageName));
|
|
1889
1889
|
for (const registered of freshLoader.listAddons()) {
|
|
@@ -2222,8 +2222,8 @@ class AddonRegistryService {
|
|
|
2222
2222
|
return this.findAddonDirOnDisk(id);
|
|
2223
2223
|
}
|
|
2224
2224
|
findAddonDirOnDisk(addonId) {
|
|
2225
|
-
const dataDir = path.resolve(process.env.
|
|
2226
|
-
const addonsDir = process.env.
|
|
2225
|
+
const dataDir = path.resolve(process.env.DOMINEVO_DATA ?? 'dominevo-data');
|
|
2226
|
+
const addonsDir = process.env.DOMINEVO_ADDONS_DIR ?? path.resolve(dataDir, 'addons');
|
|
2227
2227
|
if (!fs.existsSync(addonsDir))
|
|
2228
2228
|
return null;
|
|
2229
2229
|
const visit = (pkgDir) => {
|
|
@@ -2232,9 +2232,9 @@ class AddonRegistryService {
|
|
|
2232
2232
|
return null;
|
|
2233
2233
|
try {
|
|
2234
2234
|
const pkg = JSON.parse(fs.readFileSync(pkgJsonPath, 'utf-8'));
|
|
2235
|
-
const
|
|
2236
|
-
const addons = Array.isArray(
|
|
2237
|
-
?
|
|
2235
|
+
const dominevo = pkg['dominevo'] ?? {};
|
|
2236
|
+
const addons = Array.isArray(dominevo.addons)
|
|
2237
|
+
? dominevo.addons
|
|
2238
2238
|
: [];
|
|
2239
2239
|
if (addons.some((a) => a['id'] === addonId))
|
|
2240
2240
|
return pkgDir;
|
|
@@ -2305,7 +2305,7 @@ class AddonRegistryService {
|
|
|
2305
2305
|
}
|
|
2306
2306
|
/**
|
|
2307
2307
|
* True when the entry's manifest opted into protection (uninstall
|
|
2308
|
-
* disabled). The flag is per-addon (`
|
|
2308
|
+
* disabled). The flag is per-addon (`dominevo.addons[N].protected`)
|
|
2309
2309
|
* but the kernel uninstall API operates on packages — so a package
|
|
2310
2310
|
* is treated as protected if ANY of its addons declares the flag.
|
|
2311
2311
|
* Computed at call time from the running registry; no hardcoded
|
|
@@ -2421,14 +2421,14 @@ class AddonRegistryService {
|
|
|
2421
2421
|
}
|
|
2422
2422
|
/**
|
|
2423
2423
|
* Walk `<dataDir>/addons/` for `package.json` files whose declared
|
|
2424
|
-
* `
|
|
2424
|
+
* `dominevo.addons[]` entries don't appear in `addonEntries`. Returns
|
|
2425
2425
|
* synthetic listing rows so the UI can show + delete them. The rows
|
|
2426
2426
|
* carry a `process.state: 'failed'` flag so the AddonCard can render
|
|
2427
2427
|
* the diagnostic state distinctly from a normal addon.
|
|
2428
2428
|
*/
|
|
2429
2429
|
scanFailedToLoadPackages(seenPackages) {
|
|
2430
|
-
const dataDir = path.resolve(process.env.
|
|
2431
|
-
const addonsDir = process.env.
|
|
2430
|
+
const dataDir = path.resolve(process.env.DOMINEVO_DATA ?? 'dominevo-data');
|
|
2431
|
+
const addonsDir = process.env.DOMINEVO_ADDONS_DIR ?? path.resolve(dataDir, 'addons');
|
|
2432
2432
|
if (!fs.existsSync(addonsDir))
|
|
2433
2433
|
return [];
|
|
2434
2434
|
const out = [];
|
|
@@ -2447,9 +2447,9 @@ class AddonRegistryService {
|
|
|
2447
2447
|
const packageVersion = typeof pkg['version'] === 'string' ? pkg['version'] : '0.0.0';
|
|
2448
2448
|
if (!packageName || seenPackages.has(packageName))
|
|
2449
2449
|
return;
|
|
2450
|
-
const
|
|
2451
|
-
const addons = Array.isArray(
|
|
2452
|
-
?
|
|
2450
|
+
const dominevo = pkg['dominevo'] ?? {};
|
|
2451
|
+
const addons = Array.isArray(dominevo.addons)
|
|
2452
|
+
? dominevo.addons
|
|
2453
2453
|
: [];
|
|
2454
2454
|
if (addons.length === 0)
|
|
2455
2455
|
return;
|
|
@@ -2469,10 +2469,10 @@ class AddonRegistryService {
|
|
|
2469
2469
|
}
|
|
2470
2470
|
// Manifest-driven protection — agree with the live-rows path.
|
|
2471
2471
|
const isProtected = addons.some((a) => a['protected'] === true);
|
|
2472
|
-
const packageDisplayName =
|
|
2472
|
+
const packageDisplayName = dominevo.displayName;
|
|
2473
2473
|
// Bundle metadata — present when the package ships multiple addon
|
|
2474
2474
|
// entries that should render as collapsible children in the UI.
|
|
2475
|
-
const bundleRaw =
|
|
2475
|
+
const bundleRaw = dominevo.bundle;
|
|
2476
2476
|
const bundle = bundleRaw && typeof bundleRaw.displayName === 'string'
|
|
2477
2477
|
? {
|
|
2478
2478
|
displayName: bundleRaw.displayName,
|
|
@@ -2553,8 +2553,8 @@ class AddonRegistryService {
|
|
|
2553
2553
|
* Called after install/uninstall to hot-load new addons without server restart.
|
|
2554
2554
|
*/
|
|
2555
2555
|
async loadNewAddons() {
|
|
2556
|
-
const dataDir = path.resolve(process.env.
|
|
2557
|
-
const addonsDir = process.env.
|
|
2556
|
+
const dataDir = path.resolve(process.env.DOMINEVO_DATA ?? 'dominevo-data');
|
|
2557
|
+
const addonsDir = process.env.DOMINEVO_ADDONS_DIR ?? path.resolve(dataDir, 'addons');
|
|
2558
2558
|
// Create a fresh loader to discover what's on disk (for diffing against existing)
|
|
2559
2559
|
const freshLoader = new system_1.AddonLoader(this.loggingService.createLogger('AddonLoader'));
|
|
2560
2560
|
await freshLoader.loadFromDirectory(addonsDir);
|
|
@@ -2776,7 +2776,7 @@ class AddonRegistryService {
|
|
|
2776
2776
|
// wired here — filesystem-storage now registers under
|
|
2777
2777
|
// `storage-provider` (the upstream collection cap), and
|
|
2778
2778
|
// legacy callers fall back to the deterministic
|
|
2779
|
-
// `
|
|
2779
|
+
// `dominevo-data/addons-data/<addonId>` path. Task 17 will
|
|
2780
2780
|
// migrate those callers off `INewStorageProvider`
|
|
2781
2781
|
// entirely.
|
|
2782
2782
|
break;
|
|
@@ -3024,7 +3024,7 @@ class AddonRegistryService {
|
|
|
3024
3024
|
});
|
|
3025
3025
|
}
|
|
3026
3026
|
// Cleanup: `addonHasConfigFields` deleted. It was the last reader of
|
|
3027
|
-
// the legacy `
|
|
3027
|
+
// the legacy `IDominevoAddon.getConfigSchema()` method, exposed via
|
|
3028
3028
|
// `listAddons().hasConfigSchema` for the old AddonCard settings gate.
|
|
3029
3029
|
// `NodeAddonsSettingsPanel` now gracefully shows an empty state when
|
|
3030
3030
|
// an addon serves no scoped settings, so the backend no
|
|
@@ -3044,7 +3044,7 @@ class AddonRegistryService {
|
|
|
3044
3044
|
addonId,
|
|
3045
3045
|
packageName: entry?.packageName,
|
|
3046
3046
|
packageVersion: entry?.packageVersion,
|
|
3047
|
-
agent: process.env.
|
|
3047
|
+
agent: process.env.DOMINEVO_AGENT_NAME ?? 'hub',
|
|
3048
3048
|
...data,
|
|
3049
3049
|
},
|
|
3050
3050
|
});
|
|
@@ -3125,14 +3125,14 @@ class AddonRegistryService {
|
|
|
3125
3125
|
})
|
|
3126
3126
|
: // No active storage provider yet — this is an EARLY in-process builtin
|
|
3127
3127
|
// (notably sqlite-settings, which IS the storage provider, so it loads
|
|
3128
|
-
// before one is active). Honor
|
|
3129
|
-
// relative `
|
|
3128
|
+
// before one is active). Honor DOMINEVO_DATA here too; hardcoding the
|
|
3129
|
+
// relative `dominevo-data` made the settings DB escape the mounted
|
|
3130
3130
|
// data dir in container deployments.
|
|
3131
|
-
path.join(process.env.
|
|
3131
|
+
path.join(process.env.DOMINEVO_DATA ?? 'dominevo-data', 'addons-data', addonId);
|
|
3132
3132
|
// Node-local data ROOT — the centralized anchor for internal per-node dirs
|
|
3133
|
-
// (models, logs). `
|
|
3133
|
+
// (models, logs). `DOMINEVO_DATA` ?? the hub's default data dir. Mirrors the
|
|
3134
3134
|
// kernel addon-context-factory; never the hub-singleton `storage` cap.
|
|
3135
|
-
const nodeDataDir = path.resolve(process.env.
|
|
3135
|
+
const nodeDataDir = path.resolve(process.env.DOMINEVO_DATA ?? 'dominevo-data');
|
|
3136
3136
|
const registerProvider = (capabilityName, provider) => {
|
|
3137
3137
|
// An `integration-instances` holder is registered with its delete guarded by the link index (D1013).
|
|
3138
3138
|
this.capabilityRegistry.registerProvider(capabilityName, addonId, (0, instance_links_service_js_1.registeredProviderFor)(capabilityName, provider, this.capabilityRegistry, {
|
|
@@ -38,7 +38,7 @@ exports.readRunningServerVersion = readRunningServerVersion;
|
|
|
38
38
|
exports.unmetAddonRequirements = unmetAddonRequirements;
|
|
39
39
|
exports.readRunningServerAddonMinimums = readRunningServerAddonMinimums;
|
|
40
40
|
/**
|
|
41
|
-
* What an addon version declares it needs (`
|
|
41
|
+
* What an addon version declares it needs (`dominevo.requires`, D989), judged
|
|
42
42
|
* against what this node runs. The declaration is read from the registry's
|
|
43
43
|
* version document of the TARGET; an unreadable or absent block is "declares
|
|
44
44
|
* nothing", an unreadable running server is "unknown", which never passes.
|
|
@@ -48,12 +48,12 @@ const path = __importStar(require("node:path"));
|
|
|
48
48
|
const types_1 = require("@dominevo/types");
|
|
49
49
|
const installed_addon_versions_js_1 = require("./installed-addon-versions.js");
|
|
50
50
|
const package_dir_utils_js_1 = require("./package-dir-utils.js");
|
|
51
|
-
/** `
|
|
51
|
+
/** `dominevo.requires` of one registry version document; `undefined` when it declares none. */
|
|
52
52
|
function requiresOfVersionDoc(doc) {
|
|
53
|
-
const
|
|
54
|
-
if (typeof
|
|
53
|
+
const dominevo = doc['dominevo'];
|
|
54
|
+
if (typeof dominevo !== 'object' || dominevo === null)
|
|
55
55
|
return undefined;
|
|
56
|
-
const parsed = types_1.PackageRequiresSchema.safeParse(
|
|
56
|
+
const parsed = types_1.PackageRequiresSchema.safeParse(dominevo['requires']);
|
|
57
57
|
return parsed.success ? parsed.data : undefined;
|
|
58
58
|
}
|
|
59
59
|
/** The version of the `@dominevo/server` this process runs, or `null` when it cannot be read. */
|
|
@@ -89,10 +89,10 @@ function readRunningServerAddonMinimums() {
|
|
|
89
89
|
const raw = JSON.parse(fs.readFileSync(path.join(dir, 'package.json'), 'utf-8'));
|
|
90
90
|
if (typeof raw !== 'object' || raw === null)
|
|
91
91
|
return {};
|
|
92
|
-
const
|
|
93
|
-
if (typeof
|
|
92
|
+
const dominevo = Reflect.get(raw, 'dominevo');
|
|
93
|
+
if (typeof dominevo !== 'object' || dominevo === null)
|
|
94
94
|
return {};
|
|
95
|
-
const parsed = types_1.PackageRequiresSchema.safeParse(Reflect.get(
|
|
95
|
+
const parsed = types_1.PackageRequiresSchema.safeParse(Reflect.get(dominevo, 'requires'));
|
|
96
96
|
return parsed.success ? (parsed.data.addons ?? {}) : {};
|
|
97
97
|
}
|
|
98
98
|
catch {
|