@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
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { o as __toESM } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { t as userError } from "./
|
|
2
|
+
import { t as userError } from "./dominevo-error-EgrighSX.mjs";
|
|
3
3
|
import { f as X509Certificate$1 } from "./x509.es-BRiJgOvu.mjs";
|
|
4
|
-
import { A as evaluateExistingCert, C as localCaCommonName, F as isConstrainedCa, L as permitsIdentity, S as loadCa, b as generateCa, j as reasonRequiresNewCa, w as collectCertIdentity, x as issueLeaf, z as readNameConstraints } from "./hub-identity-
|
|
5
|
-
import { X509Certificate, createPrivateKey } from "node:crypto";
|
|
4
|
+
import { A as evaluateExistingCert, C as localCaCommonName, F as isConstrainedCa, L as permitsIdentity, S as loadCa, b as generateCa, j as reasonRequiresNewCa, w as collectCertIdentity, x as issueLeaf, z as readNameConstraints } from "./hub-identity-C1lUxisZ.mjs";
|
|
6
5
|
import { writeOwnerOnlyFileSync } from "@dominevo/types/node";
|
|
6
|
+
import { X509Certificate, createPrivateKey } from "node:crypto";
|
|
7
7
|
import { copyFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
8
8
|
import { dirname, join } from "node:path";
|
|
9
9
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
@@ -143,11 +143,11 @@ function listenOn(port, bind, next) {
|
|
|
143
143
|
}
|
|
144
144
|
//#endregion
|
|
145
145
|
//#region src/tls/cert-manager.ts
|
|
146
|
-
var DEFAULT_COMMON_NAME = "
|
|
146
|
+
var DEFAULT_COMMON_NAME = "dominevo.local";
|
|
147
147
|
/**
|
|
148
148
|
* Ensure the hub has a usable TLS identity under `<dataDir>/tls`, made of
|
|
149
|
-
* a long-lived local **root** (`
|
|
150
|
-
* chained to it (`
|
|
149
|
+
* a long-lived local **root** (`dominevo-ca.crt`) and a short **leaf**
|
|
150
|
+
* chained to it (`dominevo.crt` = leaf + root, `dominevo.key`).
|
|
151
151
|
*
|
|
152
152
|
* ## The regeneration rule (D227)
|
|
153
153
|
*
|
|
@@ -178,16 +178,16 @@ var DEFAULT_COMMON_NAME = "camstack.local";
|
|
|
178
178
|
* bugs this rule fixes.
|
|
179
179
|
*
|
|
180
180
|
* **The root is rotated only for root-level reasons.** SAN drift rotates
|
|
181
|
-
* the leaf alone, so trust granted to `
|
|
181
|
+
* the leaf alone, so trust granted to `dominevo-ca.crt` survives every
|
|
182
182
|
* address change the hub will ever see.
|
|
183
183
|
*/
|
|
184
184
|
async function ensureTlsCert(dataDir, options) {
|
|
185
185
|
const tlsDir = join(dataDir, "tls");
|
|
186
186
|
const paths = {
|
|
187
|
-
certPath: join(tlsDir, "
|
|
188
|
-
keyPath: join(tlsDir, "
|
|
189
|
-
caCertPath: join(tlsDir, "
|
|
190
|
-
caKeyPath: join(tlsDir, "
|
|
187
|
+
certPath: join(tlsDir, "dominevo.crt"),
|
|
188
|
+
keyPath: join(tlsDir, "dominevo.key"),
|
|
189
|
+
caCertPath: join(tlsDir, "dominevo-ca.crt"),
|
|
190
|
+
caKeyPath: join(tlsDir, "dominevo-ca.key")
|
|
191
191
|
};
|
|
192
192
|
const commonName = options?.commonName ?? DEFAULT_COMMON_NAME;
|
|
193
193
|
const validDays = Math.min(options?.validDays ?? 397, 397);
|
|
@@ -220,15 +220,15 @@ async function ensureTlsCert(dataDir, options) {
|
|
|
220
220
|
}
|
|
221
221
|
/**
|
|
222
222
|
* Operator "Regenerate": issue a new leaf under the existing local CA.
|
|
223
|
-
* Never rotates the root — trust granted to `
|
|
223
|
+
* Never rotates the root — trust granted to `dominevo-ca.crt` survives.
|
|
224
224
|
*/
|
|
225
225
|
async function reissueTlsLeaf(dataDir, options) {
|
|
226
226
|
const tlsDir = join(dataDir, "tls");
|
|
227
227
|
const paths = {
|
|
228
|
-
certPath: join(tlsDir, "
|
|
229
|
-
keyPath: join(tlsDir, "
|
|
230
|
-
caCertPath: join(tlsDir, "
|
|
231
|
-
caKeyPath: join(tlsDir, "
|
|
228
|
+
certPath: join(tlsDir, "dominevo.crt"),
|
|
229
|
+
keyPath: join(tlsDir, "dominevo.key"),
|
|
230
|
+
caCertPath: join(tlsDir, "dominevo-ca.crt"),
|
|
231
|
+
caKeyPath: join(tlsDir, "dominevo-ca.key")
|
|
232
232
|
};
|
|
233
233
|
if (!existsSync(paths.caCertPath) || !existsSync(paths.caKeyPath)) return ensureTlsCert(dataDir, options);
|
|
234
234
|
const commonName = options?.commonName ?? DEFAULT_COMMON_NAME;
|
|
@@ -256,10 +256,10 @@ async function reissueTlsLeaf(dataDir, options) {
|
|
|
256
256
|
async function replaceUnconstrainedLocalCa(dataDir, options) {
|
|
257
257
|
const tlsDir = join(dataDir, "tls");
|
|
258
258
|
const paths = {
|
|
259
|
-
certPath: join(tlsDir, "
|
|
260
|
-
keyPath: join(tlsDir, "
|
|
261
|
-
caCertPath: join(tlsDir, "
|
|
262
|
-
caKeyPath: join(tlsDir, "
|
|
259
|
+
certPath: join(tlsDir, "dominevo.crt"),
|
|
260
|
+
keyPath: join(tlsDir, "dominevo.key"),
|
|
261
|
+
caCertPath: join(tlsDir, "dominevo-ca.crt"),
|
|
262
|
+
caKeyPath: join(tlsDir, "dominevo-ca.key")
|
|
263
263
|
};
|
|
264
264
|
if (!existsSync(paths.caCertPath) || !existsSync(paths.caKeyPath)) return false;
|
|
265
265
|
try {
|
|
@@ -375,7 +375,7 @@ function caReplacementMarkerFile(dataDir) {
|
|
|
375
375
|
* unconstrained CA, key first. Idempotent; returns whether anything was removed.
|
|
376
376
|
*/
|
|
377
377
|
function retirePreviousLocalCa(dataDir) {
|
|
378
|
-
const base = join(dataDir, "tls", "
|
|
378
|
+
const base = join(dataDir, "tls", "dominevo-ca");
|
|
379
379
|
const present = [`${base}.key.previous`, `${base}.crt.previous`].filter((file) => existsSync(file));
|
|
380
380
|
for (const file of present) rmSync(file, { force: true });
|
|
381
381
|
return present.length > 0;
|
|
@@ -555,7 +555,7 @@ function readTlsMode(dataDir) {
|
|
|
555
555
|
if (raw === "uploaded") return "uploaded";
|
|
556
556
|
if (raw === "disabled") return "disabled";
|
|
557
557
|
}
|
|
558
|
-
return existsSync(join(tlsDir(dataDir), "
|
|
558
|
+
return existsSync(join(tlsDir(dataDir), "dominevo.crt")) ? "generated" : "disabled";
|
|
559
559
|
}
|
|
560
560
|
function writeTlsMode(dataDir, mode) {
|
|
561
561
|
mkdirSync(tlsDir(dataDir), { recursive: true });
|
|
@@ -610,7 +610,7 @@ function readStoredUpload(dir) {
|
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
612
|
function readLocalCaConstrained(dir) {
|
|
613
|
-
const caPath = join(dir, "
|
|
613
|
+
const caPath = join(dir, "dominevo-ca.crt");
|
|
614
614
|
if (!existsSync(caPath)) return null;
|
|
615
615
|
try {
|
|
616
616
|
return isConstrainedCa(new X509Certificate$1(readFileSync(caPath, "utf-8")));
|
|
@@ -629,7 +629,7 @@ function readCaReplacedAt(dir) {
|
|
|
629
629
|
return null;
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
|
-
/** Where an upload's own CA is kept — never over the local CA's `
|
|
632
|
+
/** Where an upload's own CA is kept — never over the local CA's `dominevo-ca.crt`. */
|
|
633
633
|
var UPLOADED_CA_FILE = "uploaded-ca.crt";
|
|
634
634
|
/** Every certificate in a PEM bundle, in order. */
|
|
635
635
|
function splitPemCertificates(pem) {
|
|
@@ -656,7 +656,7 @@ function uploadedIssuer(dir, leaf, chainPem) {
|
|
|
656
656
|
return null;
|
|
657
657
|
}
|
|
658
658
|
function generatedIssuer(dir) {
|
|
659
|
-
const caPath = join(dir, "
|
|
659
|
+
const caPath = join(dir, "dominevo-ca.crt");
|
|
660
660
|
if (!existsSync(caPath)) return null;
|
|
661
661
|
const pem = readFileSync(caPath, "utf-8");
|
|
662
662
|
return {
|
|
@@ -673,7 +673,7 @@ function generatedIssuer(dir) {
|
|
|
673
673
|
*/
|
|
674
674
|
function readTlsAccessStatus(dataDir, servedLeafFingerprint) {
|
|
675
675
|
const dir = tlsDir(dataDir);
|
|
676
|
-
const certPath = join(dir, "
|
|
676
|
+
const certPath = join(dir, "dominevo.crt");
|
|
677
677
|
const mode = readTlsMode(dataDir);
|
|
678
678
|
if (!existsSync(certPath)) return {
|
|
679
679
|
mode: "disabled",
|
|
@@ -736,8 +736,8 @@ function readTlsAccessStatus(dataDir, servedLeafFingerprint) {
|
|
|
736
736
|
* leaf the local root did not issue is one of that rule's reissue triggers.
|
|
737
737
|
*/
|
|
738
738
|
async function prepareBootTls(dataDir, options) {
|
|
739
|
-
const certPath = join(dataDir, "tls", "
|
|
740
|
-
const keyPath = join(dataDir, "tls", "
|
|
739
|
+
const certPath = join(dataDir, "tls", "dominevo.crt");
|
|
740
|
+
const keyPath = join(dataDir, "tls", "dominevo.key");
|
|
741
741
|
const marked = readTlsMode(dataDir);
|
|
742
742
|
if (marked === "uploaded" && existsSync(certPath) && existsSync(keyPath)) return {
|
|
743
743
|
mode: "uploaded",
|
|
@@ -759,7 +759,7 @@ async function prepareBootTls(dataDir, options) {
|
|
|
759
759
|
}
|
|
760
760
|
//#endregion
|
|
761
761
|
//#region src/tls/https-listener.ts
|
|
762
|
-
var SLOT_KEY = Symbol.for("
|
|
762
|
+
var SLOT_KEY = Symbol.for("dominevo.tls.https-listener");
|
|
763
763
|
var EMPTY_SLOT = {
|
|
764
764
|
reload: null,
|
|
765
765
|
servedLeafFingerprint: null
|
|
@@ -845,7 +845,7 @@ function withNewline(pem) {
|
|
|
845
845
|
* The leaf (or chain) and key are written twice: as the served pair, and as a kept copy
|
|
846
846
|
* (`uploaded.crt` / `uploaded.key`, with the issuing CA in `uploaded-ca.crt`) that
|
|
847
847
|
* "Revert to generated" leaves in place so the upload can be selected again. The local
|
|
848
|
-
* CA (`
|
|
848
|
+
* CA (`dominevo-ca.crt` + key) is never touched - it did not sign the upload, and it is
|
|
849
849
|
* what every device that trusts it still needs.
|
|
850
850
|
*/
|
|
851
851
|
async function storeUploadedCertificate(dataDir, input, options) {
|
|
@@ -862,8 +862,8 @@ async function storeUploadedCertificate(dataDir, input, options) {
|
|
|
862
862
|
const caPath = join(dir, UPLOADED_CA_FILE);
|
|
863
863
|
if (ca.issuerPem !== null) await writeFile(caPath, ca.issuerPem);
|
|
864
864
|
else rmSync(caPath, { force: true });
|
|
865
|
-
await writeFile(join(dir, "
|
|
866
|
-
writeOwnerOnlyFileSync(join(dir, "
|
|
865
|
+
await writeFile(join(dir, "dominevo.crt"), certText);
|
|
866
|
+
writeOwnerOnlyFileSync(join(dir, "dominevo.key"), keyText);
|
|
867
867
|
writeTlsMode(dataDir, "uploaded");
|
|
868
868
|
}
|
|
869
869
|
/**
|
|
@@ -875,8 +875,8 @@ async function useStoredUploadedCertificate(dataDir) {
|
|
|
875
875
|
const certPath = join(dir, STORED_UPLOAD_CERT_FILE);
|
|
876
876
|
const keyPath = join(dir, STORED_UPLOAD_KEY_FILE);
|
|
877
877
|
if (!existsSync(certPath) || !existsSync(keyPath)) throw userError("tls.no-stored-upload", {}, "No uploaded certificate is kept on this node.");
|
|
878
|
-
copyFileSync(certPath, join(dir, "
|
|
879
|
-
copyFileSync(keyPath, join(dir, "
|
|
878
|
+
copyFileSync(certPath, join(dir, "dominevo.crt"));
|
|
879
|
+
copyFileSync(keyPath, join(dir, "dominevo.key"));
|
|
880
880
|
writeTlsMode(dataDir, "uploaded");
|
|
881
881
|
}
|
|
882
882
|
/** Issue a new generated leaf under the local CA. Refused while an upload is served. */
|
|
@@ -893,9 +893,9 @@ async function revertToGeneratedCertificate(dataDir, options) {
|
|
|
893
893
|
const dir = join(dataDir, "tls");
|
|
894
894
|
const keptCert = join(dir, STORED_UPLOAD_CERT_FILE);
|
|
895
895
|
const keptKey = join(dir, STORED_UPLOAD_KEY_FILE);
|
|
896
|
-
if (readTlsMode(dataDir) === "uploaded" && !existsSync(keptCert) && existsSync(join(dir, "
|
|
897
|
-
copyFileSync(join(dir, "
|
|
898
|
-
copyFileSync(join(dir, "
|
|
896
|
+
if (readTlsMode(dataDir) === "uploaded" && !existsSync(keptCert) && existsSync(join(dir, "dominevo.crt")) && existsSync(join(dir, "dominevo.key"))) {
|
|
897
|
+
copyFileSync(join(dir, "dominevo.crt"), keptCert);
|
|
898
|
+
copyFileSync(join(dir, "dominevo.key"), keptKey);
|
|
899
899
|
}
|
|
900
900
|
writeTlsMode(dataDir, "generated");
|
|
901
901
|
await ensureTlsCert(dataDir, options);
|
|
@@ -905,8 +905,8 @@ async function revertToGeneratedCertificate(dataDir, options) {
|
|
|
905
905
|
* "the certificate changed" and "clients see it" are the same moment.
|
|
906
906
|
*/
|
|
907
907
|
function applyCertificateToListener(dataDir) {
|
|
908
|
-
const certPath = join(dataDir, "tls", "
|
|
909
|
-
const keyPath = join(dataDir, "tls", "
|
|
908
|
+
const certPath = join(dataDir, "tls", "dominevo.crt");
|
|
909
|
+
const keyPath = join(dataDir, "tls", "dominevo.key");
|
|
910
910
|
if (!existsSync(certPath) || !existsSync(keyPath)) return {
|
|
911
911
|
kind: "failed",
|
|
912
912
|
error: `No certificate pair under ${join(dataDir, "tls")}`
|