@dominevo/server 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +4 -4
- package/CHANGELOG.md +7 -0
- package/THIRD_PARTY_MODELS.md +13 -13
- package/dist/addon-root-inventory.js +5 -5
- package/dist/agent/agent-config.js +8 -8
- package/dist/agent/agent-group-runner.js +2 -2
- package/dist/agent/agent-http.js +4 -4
- package/dist/agent/agent-infra-capabilities.js +2 -2
- package/dist/agent/agent-self-update.js +3 -3
- package/dist/agent/agent-service.js +3 -3
- package/dist/agent/agent-update-service.js +10 -10
- package/dist/agent/derive-hub-url.js +3 -3
- package/dist/agent/main.js +20 -20
- package/dist/agent/stale-addon-gate.js +7 -7
- package/dist/api/addon-upload.js +12 -12
- package/dist/api/core/auth.router.js +7 -7
- package/dist/api/core/cap-providers.js +1 -1
- package/dist/api/core/logging-settings.js +1 -1
- package/dist/api/core/request-census-settings.js +1 -1
- package/dist/api/cors/cors-policy.js +5 -5
- package/dist/api/dev-uploads-bundle.js +1 -1
- package/dist/api/logs-export-route.js +1 -1
- package/dist/api/model-distributor.js +1 -1
- package/dist/api/server-upload-propagate.js +1 -1
- package/dist/api/server-upload.js +2 -2
- package/dist/api/static/spa-mount.js +3 -3
- package/dist/api/static/spa-static.js +1 -1
- package/dist/api/tarball-manifest.js +4 -4
- package/dist/api/trpc/http-request-census.js +1 -1
- package/dist/api/trpc/trpc.router.js +7 -7
- package/dist/auth/addon-route-share-gate.js +2 -2
- package/dist/auth/app-confirm-page.js +1 -1
- package/dist/auth/app-confirmations.js +2 -2
- package/dist/auth/app-passkey-page.js +1 -1
- package/dist/auth/native-return.js +1 -1
- package/dist/auth/session-cookie.js +2 -2
- package/dist/auth/sso-routes.js +1 -1
- package/dist/boot/boot-config.js +3 -3
- package/dist/boot/post-boot.service.js +2 -2
- package/dist/boot/retired-public-url-env.js +3 -3
- package/dist/bootstrap-packages.js +3 -3
- package/dist/closure-patches/patch-reach.json +7 -7
- package/dist/closure-patches/werift+0.22.9.patch +34 -34
- package/dist/core/addon/addon-package.service.js +32 -32
- package/dist/core/addon/addon-registry.service.js +34 -34
- package/dist/core/addon/addon-requirements.js +8 -8
- package/dist/core/addon/addon-search.service.js +2 -2
- package/dist/core/addon/hub-addon-support.js +2 -2
- package/dist/core/addon/read-packed-file.js +1 -1
- package/dist/core/addon-bridge/addon-bridge.service.js +6 -6
- package/dist/core/addon-pages/addon-pages.service.js +1 -1
- package/dist/core/agent/agent-registry.service.js +1 -1
- package/dist/core/agent/delivery-requirements.js +1 -1
- package/dist/core/app-links/well-known-app-links.js +7 -9
- package/dist/core/auth/handoff-code.service.js +1 -1
- package/dist/core/moleculer/moleculer.service.js +6 -6
- package/dist/core/release-identity.js +2 -2
- package/dist/core/server-update/server-update.service.js +9 -9
- package/dist/core/updates/node-update-announcement.js +1 -1
- package/dist/core/updates/wrapper-update-checker.js +1 -1
- package/dist/framework-nodepath.js +1 -1
- package/dist/i18n/request-lang.js +1 -1
- package/dist/launch-args.js +4 -4
- package/dist/launcher.js +14 -14
- package/dist/main.js +9 -9
- package/dist/manual-boot.js +5 -5
- package/dist/node-role.js +2 -2
- package/dist/package-inventory.js +1 -1
- package/dist/pending-restore.js +1 -1
- package/dist/server-root/index.js +11 -11
- package/dist/single-copy-cleanup-runner.js +2 -2
- package/dist/single-copy-cleanup.js +2 -2
- package/dist/starter.js +9 -9
- package/package.json +71 -71
- package/system/dist/addon-runner.js +59 -59
- package/system/dist/addon-runner.mjs +59 -59
- package/system/dist/{addon-settings.cap-Cxgig-la.mjs → addon-settings.cap-CyWCCPvU.mjs} +1 -1
- package/system/dist/{addon-settings.cap-B3KYrDyh.js → addon-settings.cap-DT34AC0I.js} +1 -1
- package/system/dist/addon-utils.d.ts +1 -1
- package/system/dist/addon-utils.js +1 -1
- package/system/dist/addon-utils.mjs +1 -1
- package/system/dist/auth/device-ca.d.ts +3 -3
- package/system/dist/auth/origin.d.ts +1 -1
- package/system/dist/{base-addon--EzLZ64f.js → base-addon-CwtR9jMm.js} +8 -28
- package/system/dist/{base-addon-D6i6fCDD.mjs → base-addon-DCfRA4Sq.mjs} +8 -28
- package/system/dist/{base-device-Aptq2PHd.js → base-device-B3OJaaod.js} +3 -3
- package/system/dist/{base-device-CuQ3xFwc.mjs → base-device-QXPOGWz3.mjs} +3 -3
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.d.ts +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +5 -5
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +8 -8
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +4 -4
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +8 -8
- package/system/dist/builtins/alerts/alerts.addon.js +7 -7
- package/system/dist/builtins/alerts/alerts.addon.mjs +9 -9
- package/system/dist/builtins/apps-aggregator/apps-aggregator.addon.js +1 -1
- package/system/dist/builtins/apps-aggregator/apps-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +2 -2
- package/system/dist/builtins/autotrack/index.mjs +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.d.ts +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +5 -5
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +8 -8
- package/system/dist/builtins/backup-orchestrator/manifest-store.d.ts +1 -1
- package/system/dist/builtins/calendars/calendars.addon.js +2 -2
- package/system/dist/builtins/calendars/calendars.addon.mjs +2 -2
- package/system/dist/builtins/camera-grid/index.js +5 -5
- package/system/dist/builtins/camera-grid/index.mjs +5 -5
- package/system/dist/builtins/composer/composer.addon.js +10 -10
- package/system/dist/builtins/composer/composer.addon.mjs +10 -10
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +22 -22
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +20 -20
- package/system/dist/builtins/core-notifier/core-notifier.addon.js +3 -3
- package/system/dist/builtins/core-notifier/core-notifier.addon.mjs +3 -3
- package/system/dist/builtins/device-history/device-history.addon.js +6 -6
- package/system/dist/builtins/device-history/device-history.addon.mjs +6 -6
- package/system/dist/builtins/device-history/store/history-schema.d.ts +1 -1
- package/system/dist/builtins/device-manager/device-manager.addon.js +29 -29
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +16 -16
- package/system/dist/builtins/device-manager/device-row-store.d.ts +1 -1
- package/system/dist/builtins/device-manager/fleet-read-census.d.ts +1 -1
- package/system/dist/builtins/device-manager/runtime-state-persist-gate.d.ts +1 -1
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +15 -15
- package/system/dist/builtins/keychain/index.mjs +15 -15
- package/system/dist/builtins/keychain/key-sources.d.ts +2 -2
- package/system/dist/builtins/keychain/keychain-store.d.ts +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +5 -5
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +5 -5
- package/system/dist/builtins/local-auth/auth-schema.d.ts +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +24 -24
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +17 -17
- package/system/dist/builtins/local-network/agent-mdns.d.ts +1 -1
- package/system/dist/builtins/local-network/hub-mdns.d.ts +1 -1
- package/system/dist/builtins/local-network/local-network.addon.d.ts +3 -3
- package/system/dist/builtins/local-network/local-network.addon.js +15 -15
- package/system/dist/builtins/local-network/local-network.addon.mjs +15 -15
- package/system/dist/builtins/loki-logging/index.js +7 -7
- package/system/dist/builtins/loki-logging/index.mjs +7 -7
- package/system/dist/builtins/loki-logging/loki-payload.d.ts +1 -1
- package/system/dist/builtins/native-metrics/cgroup-memory.d.ts +3 -3
- package/system/dist/builtins/native-metrics/native-metrics.addon.d.ts +2 -2
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +14 -14
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +23 -23
- package/system/dist/builtins/native-metrics/process-classification.d.ts +8 -8
- package/system/dist/builtins/platform-probe/accelerator-facts-probe.d.ts +1 -1
- package/system/dist/builtins/platform-probe/coral-accelerators.d.ts +2 -2
- package/system/dist/builtins/platform-probe/index.js +3 -3
- package/system/dist/builtins/platform-probe/index.mjs +12 -12
- package/system/dist/builtins/record-entries/index.js +3 -3
- package/system/dist/builtins/record-entries/index.mjs +3 -3
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +4 -4
- package/system/dist/builtins/snapshot/index.mjs +4 -4
- package/system/dist/builtins/sqlite-storage/file-host-handlers.d.ts +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.d.ts +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +22 -22
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/migrations/migration-pass.d.ts +1 -1
- package/system/dist/builtins/sqlite-storage/owned-sqlite-file.d.ts +1 -1
- package/system/dist/builtins/sqlite-storage/query-profiler.d.ts +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-pragmas.d.ts +2 -2
- package/system/dist/builtins/sqlite-storage/sqlite-settings-backend.d.ts +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +19 -19
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +19 -19
- package/system/dist/builtins/storage-orchestrator/access-guards.d.ts +1 -1
- package/system/dist/builtins/storage-orchestrator/location-secrets.d.ts +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.d.ts +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +18 -18
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +18 -18
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.service.d.ts +3 -3
- package/system/dist/builtins/system-backup/backup-encryption.d.ts +1 -1
- package/system/dist/builtins/system-backup/system-backup.service.d.ts +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +31 -31
- package/system/dist/builtins/system-config/system-config.addon.mjs +143 -143
- package/system/dist/builtins/winston-logging/index.js +5 -5
- package/system/dist/builtins/winston-logging/index.mjs +5 -5
- package/system/dist/builtins/winston-logging/log-file-cursor.d.ts +1 -1
- package/system/dist/{cap-call-context-DnLdYSyR.js → cap-call-context-3-L-JQ3d.js} +2 -2
- package/system/dist/{cap-call-context-D-su61hv.mjs → cap-call-context-C_59UKvE.mjs} +2 -2
- package/system/dist/{command-catalog-Cgz3MwLW.mjs → command-catalog-88WjnitG.mjs} +1 -1
- package/system/dist/{command-catalog-0Q83jcdv.js → command-catalog-Bt0rkK6T.js} +1 -1
- package/system/dist/{composition-sources-GNsOlYlG.js → composition-sources-BD_14SLn.js} +2 -2
- package/system/dist/{composition-sources-Dzx55O4S.mjs → composition-sources-BxNM5HHY.mjs} +2 -2
- package/system/dist/{constants-DVHYGlyi.js → constants-B8umFEGY.js} +2 -2
- package/system/dist/{constants-bg2DX4I6.mjs → constants-C86EPRS1.mjs} +2 -2
- package/system/dist/{coral-accelerators-DXDOGcym.mjs → coral-accelerators-CSu5Ahx5.mjs} +6 -6
- package/system/dist/{custom-action-registry-Bd52pRgO.mjs → custom-action-registry-BklzKCJe.mjs} +162 -162
- package/system/dist/{custom-action-registry-DHOCDRef.js → custom-action-registry-C_yB2qlc.js} +125 -125
- package/system/dist/{database-snapshot.cap-BymU4Xk9.js → database-snapshot.cap--dYj7W3i.js} +1 -1
- package/system/dist/{database-snapshot.cap-DAVS29qN.mjs → database-snapshot.cap-DfMxWoak.mjs} +1 -1
- package/system/dist/{declared-device-BSxSa0O8.js → declared-device-BFexdYcl.js} +1 -1
- package/system/dist/{declared-device-C4zPkK6G.mjs → declared-device-D-fwNbiU.mjs} +1 -1
- package/system/dist/{device-ca-BgYUqBEB.js → device-ca-CXDTXX4c.js} +8 -8
- package/system/dist/{device-ca-AvfcD1AT.mjs → device-ca-Du6rfexI.mjs} +8 -8
- package/system/dist/{device-certificate-IVBnrTHH.js → device-certificate-6irX-VEC.js} +4 -4
- package/system/dist/{device-certificate-Kh05tlrX.mjs → device-certificate-B5LojTd8.mjs} +4 -4
- package/system/dist/{device-manager.cap-zbFHbXlg.mjs → device-manager.cap-3gMy5WyI.mjs} +1 -1
- package/system/dist/{device-manager.cap-B-zweScL.js → device-manager.cap-CVm8e--n.js} +1 -1
- package/system/dist/{device-removal-reconcile-DSYwdCX-.mjs → device-removal-reconcile-Bca9Xmxa.mjs} +2 -2
- package/system/dist/{device-removal-reconcile-hF3PFXaD.js → device-removal-reconcile-BtBOAfIX.js} +2 -2
- package/system/dist/{camstack-error-DJ-TUAi1.js → dominevo-error-CTBRQM6p.js} +4 -4
- package/system/dist/{camstack-error-viZYfcj9.mjs → dominevo-error-EgrighSX.mjs} +4 -4
- package/system/dist/download/hosted-model-revisions.d.ts +1 -1
- package/system/dist/{entry-kind-BOBbd1lw.mjs → entry-kind-DJSOxSX2.mjs} +2 -2
- package/system/dist/{entry-kind-BVqSwPqz.js → entry-kind-DzaK6R6L.js} +2 -2
- package/system/dist/file-host-worker.js +3 -3
- package/system/dist/file-host-worker.mjs +3 -3
- package/system/dist/framework-resolver-hook.mjs +1 -1
- package/system/dist/{hub-identity-Ctf-OLhe.mjs → hub-identity-C1lUxisZ.mjs} +19 -19
- package/system/dist/{hub-identity-C5oay5SY.js → hub-identity-DihZeMUF.js} +10 -10
- package/system/dist/{hub-mdns-ciao-BjVwHmsr.js → hub-mdns-ciao-D2Rcz1Kb.js} +42 -42
- package/system/dist/{hub-mdns-ciao-C9adAMGN.mjs → hub-mdns-ciao-D5Udd2A_.mjs} +39 -39
- package/system/dist/index.js +152 -152
- package/system/dist/index.mjs +355 -355
- package/system/dist/{jobs.cap-DHu0iJ1C.js → jobs.cap-Blrf2noc.js} +4 -4
- package/system/dist/{jobs.cap-BPFm9yU4.mjs → jobs.cap-DdrDabtW.mjs} +4 -4
- package/system/dist/kernel/addon-class-resolver.d.ts +2 -2
- package/system/dist/kernel/addon-engine-manager.d.ts +2 -2
- package/system/dist/kernel/addon-installer.d.ts +12 -12
- package/system/dist/kernel/addon-loader.d.ts +6 -6
- package/system/dist/kernel/addon-version-policy.d.ts +1 -1
- package/system/dist/kernel/config-schema.d.ts +2 -2
- package/system/dist/kernel/deps/addon-deps-manager.d.ts +1 -1
- package/system/dist/kernel/deps/closure-dedupe.d.ts +3 -3
- package/system/dist/kernel/deps/ensure-addon-natives.d.ts +1 -1
- package/system/dist/kernel/deps/manifest-native-deps.d.ts +2 -2
- package/system/dist/kernel/deps/manifest-python-deps.d.ts +1 -1
- package/system/dist/kernel/deps/system-package-broker.d.ts +1 -1
- package/system/dist/kernel/deps/system-package-client.d.ts +1 -1
- package/system/dist/kernel/event-plane-report.d.ts +2 -2
- package/system/dist/kernel/fs-utils.d.ts +4 -4
- package/system/dist/kernel/heap-watch.d.ts +8 -8
- package/system/dist/kernel/index.d.ts +1 -1
- package/system/dist/kernel/moleculer/addon-context-factory.d.ts +3 -3
- package/system/dist/kernel/moleculer/addon-service-factory.d.ts +3 -3
- package/system/dist/kernel/moleculer/agent-event-scope.d.ts +2 -2
- package/system/dist/kernel/moleculer/agent-ui-unlock.d.ts +1 -1
- package/system/dist/kernel/moleculer/child-addon-call-dispatch.d.ts +2 -2
- package/system/dist/kernel/moleculer/event-bus-core.d.ts +1 -1
- package/system/dist/kernel/moleculer/event-bus.d.ts +5 -5
- package/system/dist/kernel/moleculer/mesh-mtls/constants.d.ts +1 -1
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-membership.d.ts +1 -1
- package/system/dist/kernel/moleculer/mesh-mtls/pairing/pairing-protocol.d.ts +3 -3
- package/system/dist/kernel/moleculer/runner-heap-flags.d.ts +1 -1
- package/system/dist/kernel/moleculer/runner-native-allocator.d.ts +2 -2
- package/system/dist/kernel/moleculer/stream-probe-service.d.ts +1 -1
- package/system/dist/kernel/moleculer/worker-device-restore.d.ts +2 -2
- package/system/dist/kernel/requires-registry.d.ts +2 -2
- package/system/dist/kernel/transport/create-local-transport.d.ts +1 -1
- package/system/dist/kernel/transport/local-child-registry.d.ts +1 -1
- package/system/dist/kernel/transport/uds-event-bridge.d.ts +1 -1
- package/system/dist/kernel/unsupported-addon-tracker.d.ts +1 -1
- package/system/dist/{keychain-admin.cap-DOvL8TMG.mjs → keychain-admin.cap-C3eanzBT.mjs} +2 -2
- package/system/dist/{keychain-admin.cap-DcRCRWtu.js → keychain-admin.cap-yMG0j8XP.js} +2 -2
- package/system/dist/{legacy-integration-rows-door-CUpCwPm5.js → legacy-integration-rows-door-1c-XBxRt.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-bidgp6kI.mjs → legacy-integration-rows-door-CYFvlkdt.mjs} +1 -1
- package/system/dist/{log-file-read-protocol-hTaAsYlX.mjs → log-file-read-protocol-B3Tq2F50.mjs} +2 -2
- package/system/dist/{log-file-read-protocol-DSV_vQRb.js → log-file-read-protocol-BRHlsNCj.js} +2 -2
- package/system/dist/log-file-read-worker.js +1 -1
- package/system/dist/log-file-read-worker.mjs +1 -1
- package/system/dist/logging/formatter.d.ts +1 -1
- package/system/dist/{metrics-provider.cap-01SwpLu5.mjs → metrics-provider.cap-BKzH22yb.mjs} +2 -2
- package/system/dist/{metrics-provider.cap-BMKD5FH3.js → metrics-provider.cap-H0RjdYQj.js} +2 -2
- package/system/dist/{migration-CHPdAdNh.js → migration-CvC7YRxn.js} +1 -1
- package/system/dist/{migration-BvbfW9g-.mjs → migration-DDDUJnTU.mjs} +1 -1
- package/system/dist/migrations/hub/index.d.ts +1 -1
- package/system/dist/{named-entity-store-EQovvtag.js → named-entity-store-B7MMnZq_.js} +1 -1
- package/system/dist/{named-entity-store-C2JkesQG.mjs → named-entity-store-CLIUOHkl.mjs} +1 -1
- package/system/dist/{network-access.cap-CxqbyUYK.js → network-access.cap-C97_DUK9.js} +10 -10
- package/system/dist/{network-access.cap-B918UjWD.mjs → network-access.cap-DcLn1v6p.mjs} +9 -9
- package/system/dist/{notification-targets-Cj6I9DzV.js → notification-targets-BH-Kq5zA.js} +2 -2
- package/system/dist/{notification-targets-cJTv1p6y.mjs → notification-targets-gTLSExN5.mjs} +2 -2
- package/system/dist/{platform-key-source-Di7HrlGR.js → platform-key-source-DERonx7U.js} +1 -1
- package/system/dist/{platform-key-source-BWlq0jjn.mjs → platform-key-source-vw43KkgD.mjs} +1 -1
- package/system/dist/{record-entries.cap-jKkDRzZG.mjs → record-entries.cap-DqaspI30.mjs} +2 -2
- package/system/dist/{record-entries.cap-RXnOab_5.js → record-entries.cap-u4EjNUWg.js} +2 -2
- package/system/dist/{record-kind-Cm1DO1qJ.js → record-kind-BYbL_LNZ.js} +1 -1
- package/system/dist/{record-kind-DXFsj6uF.mjs → record-kind-DpcGjBK1.mjs} +1 -1
- package/system/dist/{record-kinds-CLYE4x8E.js → record-kinds-CF3IIGeU.js} +6 -6
- package/system/dist/{record-kinds-Xm95PUr5.mjs → record-kinds-HynLKMsB.mjs} +6 -6
- package/system/dist/{recording-archive.cap-BFiEztoo.js → recording-archive.cap-DPyT1msn.js} +5 -5
- package/system/dist/{recording-archive.cap-DljrTthl.mjs → recording-archive.cap-DoeNelun.mjs} +4 -4
- package/system/dist/{records.cap-BDUsx56H.mjs → records.cap-A6ZnC18-.mjs} +2 -2
- package/system/dist/{records.cap-DKDON4zv.js → records.cap-CrdoSJ1h.js} +2 -2
- package/system/dist/{rename-composition-block-BdhK2udh.mjs → rename-composition-block-CMfftDfW.mjs} +43 -43
- package/system/dist/{rename-composition-block-CJ-XbDsk.js → rename-composition-block-CeKeUquQ.js} +43 -43
- package/system/dist/{restore-archive-BQhYL8c4.mjs → restore-archive-DngNk5Yg.mjs} +104 -104
- package/system/dist/{restore-archive-DWIM3J3f.js → restore-archive-LKIQ4CNL.js} +11 -11
- package/system/dist/{retention-source.cap-BvNRqbz3.js → retention-source.cap-CuI320Je.js} +1 -1
- package/system/dist/{retention-source.cap-DUPeqB5h.mjs → retention-source.cap-DLKW-DAE.mjs} +1 -1
- package/system/dist/{retired-settings-keys-BFLkouoC.mjs → retired-settings-keys-Dakm_ir-.mjs} +1 -1
- package/system/dist/{retired-settings-keys-DNi9qA3K.js → retired-settings-keys-DdoaQDUr.js} +1 -1
- package/system/dist/{scoped-settings-DbyAaIot.js → scoped-settings-8uzhJVsE.js} +3 -3
- package/system/dist/{scoped-settings-d2_FTMty.mjs → scoped-settings-DnkTDuvk.mjs} +3 -3
- package/system/dist/{settings-store.cap-BhOIBtO4.js → settings-store.cap-DqFgT2Xo.js} +1 -1
- package/system/dist/{settings-store.cap-CaDSOqgK.mjs → settings-store.cap-DxsDTQxb.mjs} +1 -1
- package/system/dist/{state-refresh-scheduler-GlExK5Pt.js → state-refresh-scheduler-8_rBg2-4.js} +1 -1
- package/system/dist/{state-refresh-scheduler-CJuGzqZh.mjs → state-refresh-scheduler-B3pfIHRS.mjs} +1 -1
- package/system/dist/{storage-admin.cap-DPH4dWEl.js → storage-admin.cap-BndyGERv.js} +5 -5
- package/system/dist/{storage-admin.cap-CP_CtM0h.mjs → storage-admin.cap-DOZ5tsKA.mjs} +5 -5
- package/system/dist/{storage-migration.cap-DT_sdxio.js → storage-migration.cap-C52LxDX2.js} +4 -4
- package/system/dist/{storage-migration.cap-BonKGHaA.mjs → storage-migration.cap-DRl4rt-0.mjs} +4 -4
- package/system/dist/{storage-occupancy.cap-avoVkjfF.js → storage-occupancy.cap-CiGDOgpG.js} +3 -3
- package/system/dist/{storage-occupancy.cap-B_YU_aX3.mjs → storage-occupancy.cap-_VVBswn4.mjs} +3 -3
- package/system/dist/{stream-catalog.cap-Blw9nJ-a.js → stream-catalog.cap-Bl0BSYye.js} +4 -4
- package/system/dist/{stream-catalog.cap-D08FM3ow.mjs → stream-catalog.cap-C7vlYIih.mjs} +4 -4
- package/system/dist/tls/cert-evaluation.d.ts +3 -3
- package/system/dist/tls/cert-issue.d.ts +2 -2
- package/system/dist/tls/cert-manager.d.ts +7 -7
- package/system/dist/tls/tls-actions.d.ts +1 -1
- package/system/dist/tls/tls-status.d.ts +1 -1
- package/system/dist/{user-management.cap-BIOAtxeX.js → user-management.cap-D9EcsR2c.js} +2 -2
- package/system/dist/{user-management.cap-D8lVSHRA.mjs → user-management.cap-mDnBlJay.mjs} +2 -2
- package/system/dist/{wal-maintenance-8cxZxWU2.js → wal-maintenance-BPDo9Jao.js} +9 -9
- package/system/dist/{wal-maintenance-BGa2lDZp.mjs → wal-maintenance-SArcuHLu.mjs} +9 -9
- package/system/package.json +3 -3
|
@@ -28,8 +28,8 @@ export interface CoralFs {
|
|
|
28
28
|
/**
|
|
29
29
|
* Where this node would find the libedgetpu delegate — the same lookup the
|
|
30
30
|
* Python pool runs (`edgetpu_device.edgetpu_library_path`): the
|
|
31
|
-
* `
|
|
32
|
-
* `<
|
|
31
|
+
* `DOMINEVO_EDGETPU_LIB` override, the copy the deps downloader staged under
|
|
32
|
+
* `<DOMINEVO_DATA>/deps/edgetpu/lib/`, the hub's historical
|
|
33
33
|
* `/data/deps/edgetpu/lib/libedgetpu.so.1`.
|
|
34
34
|
*/
|
|
35
35
|
export type EdgetpuDelegateHost = Omit<EdgetpuDelegateLookup, "exists">;
|
|
@@ -3,8 +3,8 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_base_addon = require("../../base-addon
|
|
7
|
-
const require_scoped_settings = require("../../scoped-settings-
|
|
6
|
+
const require_base_addon = require("../../base-addon-CwtR9jMm.js");
|
|
7
|
+
const require_scoped_settings = require("../../scoped-settings-8uzhJVsE.js");
|
|
8
8
|
const require_platform_probe_cap = require("../../platform-probe.cap-B_gTveJI.js");
|
|
9
9
|
const require_coral_accelerators = require("../../coral-accelerators-C1EB_0sE.js");
|
|
10
10
|
let node_fs = require("node:fs");
|
|
@@ -868,7 +868,7 @@ var InferenceConfigResolver = class {
|
|
|
868
868
|
* pool that starts later still reaches Auto tune.
|
|
869
869
|
*/
|
|
870
870
|
/** Same name `accelerator_facts.FACTS_FILENAME` writes under the system temp dir. */
|
|
871
|
-
var ACCELERATOR_FACTS_FILENAME = "
|
|
871
|
+
var ACCELERATOR_FACTS_FILENAME = "dominevo-accelerator-facts.json";
|
|
872
872
|
var execFileAsync = (0, node_util.promisify)(node_child_process.execFile);
|
|
873
873
|
function publishedAcceleratorFactsPath() {
|
|
874
874
|
return node_path.join(node_os.tmpdir(), ACCELERATOR_FACTS_FILENAME);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { o as __toESM, r as __exportAll } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { b as EventCategory, m as emitReadiness, t as BaseAddon } from "../../base-addon-
|
|
3
|
-
import { Z as errMsg } from "../../scoped-settings-
|
|
2
|
+
import { b as EventCategory, m as emitReadiness, t as BaseAddon } from "../../base-addon-DCfRA4Sq.mjs";
|
|
3
|
+
import { Z as errMsg } from "../../scoped-settings-DnkTDuvk.mjs";
|
|
4
4
|
import { n as parseAcceleratorFactsJson, t as platformProbeCapability } from "../../platform-probe.cap-D6VmPwxU.mjs";
|
|
5
|
-
import { a as enumerateInferenceDevices, i as describeNvidia, n as detectCoralAccelerator, o as scoreRuntimes, r as nodeCoralFs } from "../../coral-accelerators-
|
|
6
|
-
import * as fs
|
|
5
|
+
import { a as enumerateInferenceDevices, i as describeNvidia, n as detectCoralAccelerator, o as scoreRuntimes, r as nodeCoralFs } from "../../coral-accelerators-CSu5Ahx5.mjs";
|
|
6
|
+
import * as fs from "node:fs";
|
|
7
7
|
import * as path$1 from "node:path";
|
|
8
8
|
import { promisify } from "node:util";
|
|
9
9
|
import * as os$1 from "node:os";
|
|
@@ -503,14 +503,14 @@ var PlatformScorer = class {
|
|
|
503
503
|
nvidiaProbe = await this.probeNvidiaSmi();
|
|
504
504
|
const listRenderNodes = () => {
|
|
505
505
|
try {
|
|
506
|
-
return fs
|
|
506
|
+
return fs.readdirSync("/dev/dri").filter((n) => n.startsWith("renderD")).map((n) => `/dev/dri/${n}`);
|
|
507
507
|
} catch {
|
|
508
508
|
return [];
|
|
509
509
|
}
|
|
510
510
|
};
|
|
511
511
|
const readDrmAttr = (node, attr) => {
|
|
512
512
|
try {
|
|
513
|
-
return fs
|
|
513
|
+
return fs.readFileSync(`/sys/class/drm/${node.split("/").pop()}/device/${attr}`, "utf8");
|
|
514
514
|
} catch {
|
|
515
515
|
return "";
|
|
516
516
|
}
|
|
@@ -536,12 +536,12 @@ var PlatformScorer = class {
|
|
|
536
536
|
}
|
|
537
537
|
const listDir = (p) => {
|
|
538
538
|
try {
|
|
539
|
-
return fs
|
|
539
|
+
return fs.readdirSync(p);
|
|
540
540
|
} catch {
|
|
541
541
|
return [];
|
|
542
542
|
}
|
|
543
543
|
};
|
|
544
|
-
const exists = (p) => fs
|
|
544
|
+
const exists = (p) => fs.existsSync(p);
|
|
545
545
|
if (!npu) {
|
|
546
546
|
const { classifyIntelNpu } = await import("../../intel-npu-C8HKvRQF.mjs");
|
|
547
547
|
npu = classifyIntelNpu({
|
|
@@ -569,7 +569,7 @@ var PlatformScorer = class {
|
|
|
569
569
|
exists,
|
|
570
570
|
readFile: (p) => {
|
|
571
571
|
try {
|
|
572
|
-
return fs
|
|
572
|
+
return fs.readFileSync(p, "utf8");
|
|
573
573
|
} catch {
|
|
574
574
|
return "";
|
|
575
575
|
}
|
|
@@ -861,7 +861,7 @@ var InferenceConfigResolver = class {
|
|
|
861
861
|
* pool that starts later still reaches Auto tune.
|
|
862
862
|
*/
|
|
863
863
|
/** Same name `accelerator_facts.FACTS_FILENAME` writes under the system temp dir. */
|
|
864
|
-
var ACCELERATOR_FACTS_FILENAME = "
|
|
864
|
+
var ACCELERATOR_FACTS_FILENAME = "dominevo-accelerator-facts.json";
|
|
865
865
|
var execFileAsync = promisify(execFile);
|
|
866
866
|
function publishedAcceleratorFactsPath() {
|
|
867
867
|
return path$1.join(os$1.tmpdir(), ACCELERATOR_FACTS_FILENAME);
|
|
@@ -873,7 +873,7 @@ function jsonValue(text) {
|
|
|
873
873
|
function readPublishedAcceleratorFacts(filePath) {
|
|
874
874
|
let text;
|
|
875
875
|
try {
|
|
876
|
-
text = fs
|
|
876
|
+
text = fs.readFileSync(filePath, "utf8");
|
|
877
877
|
} catch {
|
|
878
878
|
return null;
|
|
879
879
|
}
|
|
@@ -888,7 +888,7 @@ function findAcceleratorFactsScript(dataDir, cwd = process.cwd()) {
|
|
|
888
888
|
const candidates = [];
|
|
889
889
|
if (typeof dataDir === "string" && dataDir !== "") candidates.push(path$1.join(dataDir, "addons", "@dominevo", "addon-pipeline", "python", "accelerator_facts.py"));
|
|
890
890
|
candidates.push(path$1.join(cwd, "packages", "addon-pipeline", "python", "accelerator_facts.py"));
|
|
891
|
-
for (const candidate of candidates) if (fs
|
|
891
|
+
for (const candidate of candidates) if (fs.existsSync(candidate)) return candidate;
|
|
892
892
|
return null;
|
|
893
893
|
}
|
|
894
894
|
async function defaultExec(command, args, timeoutMs) {
|
|
@@ -3,9 +3,9 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_base_addon = require("../../base-addon
|
|
7
|
-
const require_scoped_settings = require("../../scoped-settings-
|
|
8
|
-
const require_record_entries_cap = require("../../record-entries.cap-
|
|
6
|
+
const require_base_addon = require("../../base-addon-CwtR9jMm.js");
|
|
7
|
+
const require_scoped_settings = require("../../scoped-settings-8uzhJVsE.js");
|
|
8
|
+
const require_record_entries_cap = require("../../record-entries.cap-u4EjNUWg.js");
|
|
9
9
|
let zod = require("zod");
|
|
10
10
|
let node_crypto = require("node:crypto");
|
|
11
11
|
//#region src/builtins/record-entries/entries-service.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as BaseAddon, u as secretViewsOf } from "../../base-addon-
|
|
2
|
-
import { k as InvalidRecordError, z as UnknownRecordKindError } from "../../scoped-settings-
|
|
3
|
-
import { t as recordEntriesCapability } from "../../record-entries.cap-
|
|
1
|
+
import { t as BaseAddon, u as secretViewsOf } from "../../base-addon-DCfRA4Sq.mjs";
|
|
2
|
+
import { k as InvalidRecordError, z as UnknownRecordKindError } from "../../scoped-settings-DnkTDuvk.mjs";
|
|
3
|
+
import { t as recordEntriesCapability } from "../../record-entries.cap-DqaspI30.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
6
6
|
//#region src/builtins/record-entries/entries-service.ts
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_base_addon = require("../../base-addon
|
|
6
|
+
const require_base_addon = require("../../base-addon-CwtR9jMm.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
9
9
|
/**
|
package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as EventCategory, t as BaseAddon } from "../../base-addon-
|
|
1
|
+
import { b as EventCategory, t as BaseAddon } from "../../base-addon-DCfRA4Sq.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
4
4
|
/**
|
|
@@ -3,18 +3,18 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_base_addon = require("../../base-addon
|
|
7
|
-
const require_scoped_settings = require("../../scoped-settings-
|
|
6
|
+
const require_base_addon = require("../../base-addon-CwtR9jMm.js");
|
|
7
|
+
const require_scoped_settings = require("../../scoped-settings-8uzhJVsE.js");
|
|
8
8
|
const require_pinned_binary = require("../../pinned-binary-BOhOSNff.js");
|
|
9
9
|
const require_device_type = require("../../device-type-C0Dx_pzZ.js");
|
|
10
10
|
const require_low_power_sleep_cap = require("../../low-power-sleep.cap-DM5IsDla.js");
|
|
11
11
|
const require_snapshot_cap = require("../../snapshot.cap-B4KjBZ7B.js");
|
|
12
|
-
const require_cap_call_context = require("../../cap-call-context-
|
|
12
|
+
const require_cap_call_context = require("../../cap-call-context-3-L-JQ3d.js");
|
|
13
13
|
const require_addon_id = require("../../addon-id-Di0lNJ89.js");
|
|
14
14
|
const require_snapshot_courtesy = require("../../snapshot-courtesy-D_C5-nC0.js");
|
|
15
15
|
let zod = require("zod");
|
|
16
|
-
let node_crypto = require("node:crypto");
|
|
17
16
|
let _dominevo_types_node = require("@dominevo/types/node");
|
|
17
|
+
let node_crypto = require("node:crypto");
|
|
18
18
|
let node_fs = require("node:fs");
|
|
19
19
|
let node_path = require("node:path");
|
|
20
20
|
let node_child_process = require("node:child_process");
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { b as EventCategory, t as BaseAddon } from "../../base-addon-
|
|
2
|
-
import { Z as errMsg } from "../../scoped-settings-
|
|
1
|
+
import { b as EventCategory, t as BaseAddon } from "../../base-addon-DCfRA4Sq.mjs";
|
|
2
|
+
import { Z as errMsg } from "../../scoped-settings-DnkTDuvk.mjs";
|
|
3
3
|
import { t as memoizePinnedFfmpeg } from "../../pinned-binary-CrIRAi4G.mjs";
|
|
4
4
|
import { r as DeviceType, t as DeviceFeature } from "../../device-type-eOSmS94B.mjs";
|
|
5
5
|
import { n as lowPowerSleepCapability, t as LowPowerSleepStatusSchema } from "../../low-power-sleep.cap-CMVD2QJQ.mjs";
|
|
6
6
|
import { t as snapshotCapability } from "../../snapshot.cap-D2lpteDN.mjs";
|
|
7
|
-
import { n as nodePin } from "../../cap-call-context-
|
|
7
|
+
import { n as nodePin } from "../../cap-call-context-C_59UKvE.mjs";
|
|
8
8
|
import { t as bareAddonId } from "../../addon-id-CVg1_r5E.mjs";
|
|
9
9
|
import { i as renderCourtesyOverlayJpeg, n as courtesyCacheKey, r as renderCourtesyJpeg } from "../../snapshot-courtesy-CyFs1M3I.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
11
|
-
import { randomUUID } from "node:crypto";
|
|
12
11
|
import { signExpiringUrl, verifyExpiringUrl } from "@dominevo/types/node";
|
|
12
|
+
import { randomUUID } from "node:crypto";
|
|
13
13
|
import { promises } from "node:fs";
|
|
14
14
|
import { join } from "node:path";
|
|
15
15
|
import { execFile } from "node:child_process";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* What a thread does with a request once it has one — shared by the main
|
|
3
|
-
* thread (which serves `
|
|
3
|
+
* thread (which serves `dominevo.db` in place) and the file-host worker (which
|
|
4
4
|
* serves `events.db` / `history.db`), so the two cannot disagree about what an
|
|
5
5
|
* op means.
|
|
6
6
|
*/
|
|
@@ -17,7 +17,7 @@ interface FilesystemStorageConfig {
|
|
|
17
17
|
*
|
|
18
18
|
* The OLD `rootPath` config field is preserved for back-compat: the
|
|
19
19
|
* orchestrator's first-boot seeding step still uses the same env-var
|
|
20
|
-
* resolution chain (operator override → `
|
|
20
|
+
* resolution chain (operator override → `DOMINEVO_DATA` → fallback) to
|
|
21
21
|
* derive the base path of every default location, then writes
|
|
22
22
|
* `config.basePath` into each persisted `StorageLocation` row. The
|
|
23
23
|
* provider itself is now stateless — every call carries the live
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_base_addon = require("../../base-addon
|
|
6
|
+
const require_base_addon = require("../../base-addon-CwtR9jMm.js");
|
|
7
7
|
const require_storage_provider_cap = require("../../storage-provider.cap-CREMOQ7Y.js");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
@@ -380,7 +380,7 @@ function defaultAllowedRoots() {
|
|
|
380
380
|
*
|
|
381
381
|
* The OLD `rootPath` config field is preserved for back-compat: the
|
|
382
382
|
* orchestrator's first-boot seeding step still uses the same env-var
|
|
383
|
-
* resolution chain (operator override → `
|
|
383
|
+
* resolution chain (operator override → `DOMINEVO_DATA` → fallback) to
|
|
384
384
|
* derive the base path of every default location, then writes
|
|
385
385
|
* `config.basePath` into each persisted `StorageLocation` row. The
|
|
386
386
|
* provider itself is now stateless — every call carries the live
|
|
@@ -390,7 +390,7 @@ var FilesystemStorageAddon = class extends require_base_addon.BaseAddon {
|
|
|
390
390
|
provider = null;
|
|
391
391
|
constructor() {
|
|
392
392
|
super({
|
|
393
|
-
rootPath: "
|
|
393
|
+
rootPath: "dominevo-data",
|
|
394
394
|
storageAllowedRoots: defaultAllowedRoots()
|
|
395
395
|
});
|
|
396
396
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as BaseAddon } from "../../base-addon-
|
|
1
|
+
import { t as BaseAddon } from "../../base-addon-DCfRA4Sq.mjs";
|
|
2
2
|
import { n as filesystemBrowseCapability, t as storageProviderCapability } from "../../storage-provider.cap-BswyifK2.mjs";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
|
-
import * as fs
|
|
4
|
+
import * as fs from "node:fs";
|
|
5
5
|
import * as path$1 from "node:path";
|
|
6
6
|
import { basename, dirname, isAbsolute, join, resolve, sep } from "node:path";
|
|
7
7
|
import { mkdir, readdir, realpath, statfs } from "node:fs/promises";
|
|
@@ -170,16 +170,16 @@ var FilesystemStorageProvider = class FilesystemStorageProvider {
|
|
|
170
170
|
error: "config.basePath must be a non-empty string"
|
|
171
171
|
};
|
|
172
172
|
try {
|
|
173
|
-
const stat = await fs
|
|
173
|
+
const stat = await fs.promises.stat(basePath).catch(() => null);
|
|
174
174
|
if (stat) {
|
|
175
175
|
if (!stat.isDirectory()) return {
|
|
176
176
|
ok: false,
|
|
177
177
|
error: `Path "${basePath}" exists but is not a directory`
|
|
178
178
|
};
|
|
179
|
-
await fs
|
|
179
|
+
await fs.promises.access(basePath, fs.constants.W_OK);
|
|
180
180
|
return { ok: true };
|
|
181
181
|
}
|
|
182
|
-
await fs
|
|
182
|
+
await fs.promises.mkdir(basePath, { recursive: true });
|
|
183
183
|
return { ok: true };
|
|
184
184
|
} catch (err) {
|
|
185
185
|
return {
|
|
@@ -193,12 +193,12 @@ var FilesystemStorageProvider = class FilesystemStorageProvider {
|
|
|
193
193
|
}
|
|
194
194
|
async write({ location, relativePath, data }) {
|
|
195
195
|
const filePath = safeResolve(getBasePath(location), relativePath);
|
|
196
|
-
await fs
|
|
197
|
-
await fs
|
|
196
|
+
await fs.promises.mkdir(path$1.dirname(filePath), { recursive: true });
|
|
197
|
+
await fs.promises.writeFile(filePath, data);
|
|
198
198
|
}
|
|
199
199
|
async read({ location, relativePath }) {
|
|
200
200
|
const filePath = safeResolve(getBasePath(location), relativePath);
|
|
201
|
-
const buf = await fs
|
|
201
|
+
const buf = await fs.promises.readFile(filePath);
|
|
202
202
|
const out = new Uint8Array(new ArrayBuffer(buf.byteLength));
|
|
203
203
|
out.set(buf);
|
|
204
204
|
return out;
|
|
@@ -206,7 +206,7 @@ var FilesystemStorageProvider = class FilesystemStorageProvider {
|
|
|
206
206
|
async exists({ location, relativePath }) {
|
|
207
207
|
const filePath = safeResolve(getBasePath(location), relativePath);
|
|
208
208
|
try {
|
|
209
|
-
await fs
|
|
209
|
+
await fs.promises.access(filePath);
|
|
210
210
|
return true;
|
|
211
211
|
} catch {
|
|
212
212
|
return false;
|
|
@@ -216,25 +216,25 @@ var FilesystemStorageProvider = class FilesystemStorageProvider {
|
|
|
216
216
|
const base = getBasePath(location);
|
|
217
217
|
const dir = prefix ? safeResolve(base, prefix) : path$1.resolve(base);
|
|
218
218
|
try {
|
|
219
|
-
return (await fs
|
|
219
|
+
return (await fs.promises.readdir(dir, { withFileTypes: true })).map((e) => prefix ? `${prefix}/${e.name}` : e.name);
|
|
220
220
|
} catch {
|
|
221
221
|
return [];
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
async delete({ location, relativePath }) {
|
|
225
225
|
const filePath = safeResolve(getBasePath(location), relativePath);
|
|
226
|
-
await fs
|
|
226
|
+
await fs.promises.rm(filePath, { force: true });
|
|
227
227
|
}
|
|
228
228
|
async getAvailableSpace({ location }) {
|
|
229
229
|
const base = path$1.resolve(getBasePath(location));
|
|
230
230
|
try {
|
|
231
231
|
let target = base;
|
|
232
|
-
while (!fs
|
|
232
|
+
while (!fs.existsSync(target)) {
|
|
233
233
|
const parent = path$1.dirname(target);
|
|
234
234
|
if (!parent || parent === target) return null;
|
|
235
235
|
target = parent;
|
|
236
236
|
}
|
|
237
|
-
const stats = await fs
|
|
237
|
+
const stats = await fs.promises.statfs(target);
|
|
238
238
|
return stats.bavail * stats.bsize;
|
|
239
239
|
} catch {
|
|
240
240
|
return null;
|
|
@@ -243,9 +243,9 @@ var FilesystemStorageProvider = class FilesystemStorageProvider {
|
|
|
243
243
|
async beginUpload({ location, relativePath }) {
|
|
244
244
|
const target = safeResolve(getBasePath(location), relativePath);
|
|
245
245
|
const partial = `${target}.partial`;
|
|
246
|
-
await fs
|
|
247
|
-
await fs
|
|
248
|
-
const stream = fs
|
|
246
|
+
await fs.promises.mkdir(path$1.dirname(target), { recursive: true });
|
|
247
|
+
await fs.promises.unlink(partial).catch(() => {});
|
|
248
|
+
const stream = fs.createWriteStream(partial);
|
|
249
249
|
const uploadId = randomUUID();
|
|
250
250
|
const session = {
|
|
251
251
|
stream,
|
|
@@ -286,7 +286,7 @@ var FilesystemStorageProvider = class FilesystemStorageProvider {
|
|
|
286
286
|
session.stream.end(() => resolve());
|
|
287
287
|
session.stream.on("error", reject);
|
|
288
288
|
});
|
|
289
|
-
await fs
|
|
289
|
+
await fs.promises.rename(session.partial, session.target);
|
|
290
290
|
clearTimeout(session.timer);
|
|
291
291
|
this.uploads.delete(uploadId);
|
|
292
292
|
}
|
|
@@ -296,14 +296,14 @@ var FilesystemStorageProvider = class FilesystemStorageProvider {
|
|
|
296
296
|
try {
|
|
297
297
|
session.stream.destroy();
|
|
298
298
|
} catch {}
|
|
299
|
-
await fs
|
|
299
|
+
await fs.promises.unlink(session.partial).catch(() => {});
|
|
300
300
|
clearTimeout(session.timer);
|
|
301
301
|
this.uploads.delete(uploadId);
|
|
302
302
|
}
|
|
303
303
|
async beginDownload({ location, relativePath }) {
|
|
304
304
|
const target = safeResolve(getBasePath(location), relativePath);
|
|
305
|
-
const stat = await fs
|
|
306
|
-
const fd = await fs
|
|
305
|
+
const stat = await fs.promises.stat(target);
|
|
306
|
+
const fd = await fs.promises.open(target, "r");
|
|
307
307
|
const downloadId = randomUUID();
|
|
308
308
|
const session = {
|
|
309
309
|
fd,
|
|
@@ -374,7 +374,7 @@ function defaultAllowedRoots() {
|
|
|
374
374
|
*
|
|
375
375
|
* The OLD `rootPath` config field is preserved for back-compat: the
|
|
376
376
|
* orchestrator's first-boot seeding step still uses the same env-var
|
|
377
|
-
* resolution chain (operator override → `
|
|
377
|
+
* resolution chain (operator override → `DOMINEVO_DATA` → fallback) to
|
|
378
378
|
* derive the base path of every default location, then writes
|
|
379
379
|
* `config.basePath` into each persisted `StorageLocation` row. The
|
|
380
380
|
* provider itself is now stateless — every call carries the live
|
|
@@ -384,7 +384,7 @@ var FilesystemStorageAddon = class extends BaseAddon {
|
|
|
384
384
|
provider = null;
|
|
385
385
|
constructor() {
|
|
386
386
|
super({
|
|
387
|
-
rootPath: "
|
|
387
|
+
rootPath: "dominevo-data",
|
|
388
388
|
storageAllowedRoots: defaultAllowedRoots()
|
|
389
389
|
});
|
|
390
390
|
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_wal_maintenance = require("../../wal-maintenance-
|
|
6
|
+
const require_wal_maintenance = require("../../wal-maintenance-BPDo9Jao.js");
|
|
7
7
|
const require_builtins_sqlite_storage_filesystem_storage_addon = require("./filesystem-storage.addon.js");
|
|
8
8
|
const require_builtins_sqlite_storage_sqlite_settings_addon = require("./sqlite-settings.addon.js");
|
|
9
9
|
//#region src/builtins/sqlite-storage/config-store.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as SQLITE_ENGINE_STORM_WALL_SHARE, F as SQLITE_MMAP_FLOOR_BYTES, G as SqliteOpProfiler, H as SQLITE_PROFILE_REPORT_INTERVAL_MS, I as SQLITE_PAGE_CACHE_CEILING_KIB, K as sqliteEngineStorm, L as SQLITE_PAGE_CACHE_FLOOR_KIB, N as SQLITE_JOURNAL_SIZE_LIMIT_BYTES, P as SQLITE_MMAP_CEILING_BYTES, R as sqliteMmapSizeFor, U as SQLITE_PROFILE_TOP_N, V as SQLITE_PROFILE_REPORT_FLOOR_MS, W as SQLITE_SLOW_CALL_MS, a as WalMaintenance, i as WAL_MAINTENANCE_INTERVAL_MS, l as SqliteSettingsBackend, n as WAL_HIGH_WATER_BYTES, r as WAL_IDLE_QUIET_MS, t as WAL_CHECKPOINT_BUSY_TIMEOUT_MS, z as sqlitePageCacheKibFor } from "../../wal-maintenance-
|
|
1
|
+
import { B as SQLITE_ENGINE_STORM_WALL_SHARE, F as SQLITE_MMAP_FLOOR_BYTES, G as SqliteOpProfiler, H as SQLITE_PROFILE_REPORT_INTERVAL_MS, I as SQLITE_PAGE_CACHE_CEILING_KIB, K as sqliteEngineStorm, L as SQLITE_PAGE_CACHE_FLOOR_KIB, N as SQLITE_JOURNAL_SIZE_LIMIT_BYTES, P as SQLITE_MMAP_CEILING_BYTES, R as sqliteMmapSizeFor, U as SQLITE_PROFILE_TOP_N, V as SQLITE_PROFILE_REPORT_FLOOR_MS, W as SQLITE_SLOW_CALL_MS, a as WalMaintenance, i as WAL_MAINTENANCE_INTERVAL_MS, l as SqliteSettingsBackend, n as WAL_HIGH_WATER_BYTES, r as WAL_IDLE_QUIET_MS, t as WAL_CHECKPOINT_BUSY_TIMEOUT_MS, z as sqlitePageCacheKibFor } from "../../wal-maintenance-SArcuHLu.mjs";
|
|
2
2
|
import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./filesystem-storage.addon.mjs";
|
|
3
3
|
import { SqliteSettingsAddon } from "./sqlite-settings.addon.mjs";
|
|
4
4
|
//#region src/builtins/sqlite-storage/config-store.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* One file's share of a boot-time migration pass (D987), synchronous over the
|
|
3
3
|
* connection that owns the file. The same functions run on the engine's main
|
|
4
|
-
* thread (`
|
|
4
|
+
* thread (`dominevo.db`) and inside the file-host worker (`events.db`,
|
|
5
5
|
* `history.db`): the catalogue is imported statically on both sides, so no
|
|
6
6
|
* code ever crosses `postMessage` — only ids and results do.
|
|
7
7
|
*
|
|
@@ -118,7 +118,7 @@ declare abstract class OwnedFileBase implements OwnedSqliteFile {
|
|
|
118
118
|
snapshot(): Promise<DatabaseSnapshotResult>;
|
|
119
119
|
stop(): Promise<void>;
|
|
120
120
|
}
|
|
121
|
-
/** `
|
|
121
|
+
/** `dominevo.db`: served in place on the engine's main thread. */
|
|
122
122
|
export declare class InlineOwnedFile extends OwnedFileBase {
|
|
123
123
|
readonly backend: SqliteSettingsBackend;
|
|
124
124
|
private declared;
|
|
@@ -18,7 +18,7 @@ import type { IScopedLogger } from "@dominevo/types";
|
|
|
18
18
|
* A 120 s census of the runner's main thread (2 216 samples at 54 ms) read
|
|
19
19
|
* `D=41% R=50% S=9%` against 13.9 s of CPU: the thread was blocked in
|
|
20
20
|
* `pread64 → filemap_read → folio_wait_bit_common` — synchronous 4 KiB page-ins
|
|
21
|
-
* on `
|
|
21
|
+
* on `dominevo.db` — for two fifths of wall-clock, at a sustained 418 read
|
|
22
22
|
* syscalls per second. What it could NOT say is which query issued them.
|
|
23
23
|
*
|
|
24
24
|
* ## Why an aggregate, and not only a slow-query log
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Every number here is sized against a MEASURED database, not a blog post.
|
|
5
5
|
* On the live hub (2026-08-06), 20 Hz syscall sampling of hub-main put **210
|
|
6
|
-
* of 2,561 samples inside `pread64`** — 161 on `
|
|
7
|
-
* `
|
|
6
|
+
* of 2,561 samples inside `pread64`** — 161 on `dominevo.db` and 49 on
|
|
7
|
+
* `dominevo.db-wal`, all 4 KiB page reads, i.e. page-cache misses. That is
|
|
8
8
|
* 8.2% of wall-clock and ~20% during bursts, on the single thread that also
|
|
9
9
|
* serves every tRPC request. fds 79/81 of hub-main were the two files, so the
|
|
10
10
|
* cost is proven in-process rather than inferred.
|
|
@@ -3,7 +3,7 @@ import Database from "better-sqlite3";
|
|
|
3
3
|
import { type MutationFilterInput } from "./filter-compiler.js";
|
|
4
4
|
import { SqliteOpProfiler } from "./query-profiler.js";
|
|
5
5
|
import { type StorageRowsReader } from "./storage-report-runner.js";
|
|
6
|
-
/** How one file of the engine is opened. All optional: the defaults are `
|
|
6
|
+
/** How one file of the engine is opened. All optional: the defaults are `dominevo.db`'s. */
|
|
7
7
|
export interface SqliteSettingsBackendOptions {
|
|
8
8
|
/** Which file this is — names it in log lines. Default `settings`. */
|
|
9
9
|
readonly databaseId?: DataStoreDatabase;
|
|
@@ -3,23 +3,23 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_base_addon = require("../../base-addon
|
|
7
|
-
const require_scoped_settings = require("../../scoped-settings-
|
|
8
|
-
const require_record_kind = require("../../record-kind-
|
|
9
|
-
const require_wal_maintenance = require("../../wal-maintenance-
|
|
10
|
-
const require_settings_store_cap = require("../../settings-store.cap-
|
|
11
|
-
const require_migration = require("../../migration-
|
|
12
|
-
const require_database_snapshot_cap = require("../../database-snapshot.cap
|
|
13
|
-
const require_storage_admin_cap = require("../../storage-admin.cap-
|
|
14
|
-
const require_records_cap = require("../../records.cap-
|
|
6
|
+
const require_base_addon = require("../../base-addon-CwtR9jMm.js");
|
|
7
|
+
const require_scoped_settings = require("../../scoped-settings-8uzhJVsE.js");
|
|
8
|
+
const require_record_kind = require("../../record-kind-BYbL_LNZ.js");
|
|
9
|
+
const require_wal_maintenance = require("../../wal-maintenance-BPDo9Jao.js");
|
|
10
|
+
const require_settings_store_cap = require("../../settings-store.cap-DqFgT2Xo.js");
|
|
11
|
+
const require_migration = require("../../migration-CvC7YRxn.js");
|
|
12
|
+
const require_database_snapshot_cap = require("../../database-snapshot.cap--dYj7W3i.js");
|
|
13
|
+
const require_storage_admin_cap = require("../../storage-admin.cap-BndyGERv.js");
|
|
14
|
+
const require_records_cap = require("../../records.cap-CrdoSJ1h.js");
|
|
15
15
|
const require_vector_store_cap = require("../../vector-store.cap-BxGwuiTR.js");
|
|
16
16
|
const require_custom_actions = require("../../custom-actions-D92NRi2c.js");
|
|
17
17
|
const require_constants = require("../../constants-C860Y6U4.js");
|
|
18
18
|
const require_addon_id = require("../../addon-id-Di0lNJ89.js");
|
|
19
|
-
const require_retired_settings_keys = require("../../retired-settings-keys-
|
|
19
|
+
const require_retired_settings_keys = require("../../retired-settings-keys-DdoaQDUr.js");
|
|
20
20
|
const require_sqlite_snapshot_protocol = require("../../sqlite-snapshot-protocol-B9OndqZv.js");
|
|
21
21
|
const require_wal_checkpoint_policy = require("../../wal-checkpoint-policy-d2z2qPqx.js");
|
|
22
|
-
const require_legacy_integration_rows_door = require("../../legacy-integration-rows-door-
|
|
22
|
+
const require_legacy_integration_rows_door = require("../../legacy-integration-rows-door-1c-XBxRt.js");
|
|
23
23
|
let zod = require("zod");
|
|
24
24
|
let node_crypto = require("node:crypto");
|
|
25
25
|
let node_fs = require("node:fs");
|
|
@@ -951,7 +951,7 @@ var OwnedFileBase = class {
|
|
|
951
951
|
await this.stopConnection();
|
|
952
952
|
}
|
|
953
953
|
};
|
|
954
|
-
/** `
|
|
954
|
+
/** `dominevo.db`: served in place on the engine's main thread. */
|
|
955
955
|
var InlineOwnedFile = class extends OwnedFileBase {
|
|
956
956
|
backend;
|
|
957
957
|
declared = /* @__PURE__ */ new Set();
|
|
@@ -1167,7 +1167,7 @@ var DatabaseSnapshotProvider = class {
|
|
|
1167
1167
|
* from the addons directory every node already has. An addon that is not
|
|
1168
1168
|
* installed resolves to itself, so a stamp is never accepted for a stranger.
|
|
1169
1169
|
*/
|
|
1170
|
-
var ManifestSchema = zod.z.object({
|
|
1170
|
+
var ManifestSchema = zod.z.object({ dominevo: zod.z.object({ addons: zod.z.array(zod.z.object({
|
|
1171
1171
|
id: zod.z.string(),
|
|
1172
1172
|
execution: zod.z.object({ group: zod.z.string().optional() }).passthrough().optional()
|
|
1173
1173
|
})) }).partial().optional() });
|
|
@@ -1192,7 +1192,7 @@ function declarationsIn(dir) {
|
|
|
1192
1192
|
try {
|
|
1193
1193
|
const parsed = ManifestSchema.safeParse(JSON.parse((0, node_fs.readFileSync)(node_path.default.join(dir, "package.json"), "utf-8")));
|
|
1194
1194
|
if (!parsed.success) return [];
|
|
1195
|
-
return (parsed.data.
|
|
1195
|
+
return (parsed.data.dominevo?.addons ?? []).map((addon) => ({
|
|
1196
1196
|
id: addon.id,
|
|
1197
1197
|
decl: addon.execution === void 0 ? {} : { execution: addon.execution }
|
|
1198
1198
|
}));
|
|
@@ -1305,7 +1305,7 @@ async function releaseFromHold(livePath, ids) {
|
|
|
1305
1305
|
* drives, per file: read what is pending, take the pre-migration snapshot, apply
|
|
1306
1306
|
* each migration in its own transaction. The per-file work is
|
|
1307
1307
|
* `migration-pass.ts`, executed where the connection lives (here for
|
|
1308
|
-
* `
|
|
1308
|
+
* `dominevo.db`, in the file-host worker for `events.db` and `history.db`); this
|
|
1309
1309
|
* class holds what is NOT per file: the boot id, the hold, the snapshotter, the
|
|
1310
1310
|
* statuses that order one file's migrations after another's, and the log lines.
|
|
1311
1311
|
*
|
|
@@ -1895,7 +1895,7 @@ var MigrationOwnerRefusal = class extends Error {
|
|
|
1895
1895
|
this.name = "MigrationOwnerRefusal";
|
|
1896
1896
|
}
|
|
1897
1897
|
};
|
|
1898
|
-
/** The database file an owner migration's ledger row lives in: its store, else `
|
|
1898
|
+
/** The database file an owner migration's ledger row lives in: its store, else `dominevo.db`. */
|
|
1899
1899
|
function ledgerFileOf(meta) {
|
|
1900
1900
|
return require_wal_maintenance.databaseOfStore(meta.store) ?? "settings";
|
|
1901
1901
|
}
|
|
@@ -2865,7 +2865,7 @@ function createStaleDataPorts(deps) {
|
|
|
2865
2865
|
//#region src/builtins/sqlite-storage/sqlite-settings.addon.ts
|
|
2866
2866
|
/** The file name of each database inside the addon's private directory. */
|
|
2867
2867
|
var DATABASE_FILE_NAMES = {
|
|
2868
|
-
settings: "
|
|
2868
|
+
settings: "dominevo.db",
|
|
2869
2869
|
events: "events.db",
|
|
2870
2870
|
history: "history.db"
|
|
2871
2871
|
};
|
|
@@ -2880,7 +2880,7 @@ var DATABASE_FILE_NAMES = {
|
|
|
2880
2880
|
* makes the engine replaceable.
|
|
2881
2881
|
*
|
|
2882
2882
|
* ONE engine process, SEVERAL owned files ([D851](../../../../../docs/decisions/adr-0851-one-sqlite-engine-serves-several-owned-files-one-thread-per-file.md)):
|
|
2883
|
-
* `
|
|
2883
|
+
* `dominevo.db` (settings) is served on this thread exactly as it always was;
|
|
2884
2884
|
* `events.db` and `history.db`, when a collection names them, are each served
|
|
2885
2885
|
* by a worker thread. A {@link PlacementRouter} is the provider the door sees.
|
|
2886
2886
|
* The layout of the files is documented in `docs/architecture/storage-files.md`.
|
|
@@ -2917,7 +2917,7 @@ var SqliteSettingsAddon = class extends require_base_addon.BaseAddon {
|
|
|
2917
2917
|
async resolveConfig() {}
|
|
2918
2918
|
async onInitialize() {
|
|
2919
2919
|
const addonId = require_addon_id.bareAddonId(this.ctx.id);
|
|
2920
|
-
const dir = this.ctx.dataDir ?? node_path.default.join("
|
|
2920
|
+
const dir = this.ctx.dataDir ?? node_path.default.join("dominevo-data", "addons-data", addonId);
|
|
2921
2921
|
const pathSource = this.ctx.dataDir ? "dataDir" : "fallback (hardcoded)";
|
|
2922
2922
|
const livePathOf = (databaseId) => node_path.default.join(dir, DATABASE_FILE_NAMES[databaseId]);
|
|
2923
2923
|
const settingsPath = livePathOf("settings");
|