@camstack/server 1.2.718 → 1.2.720
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/CHANGELOG.md +13 -0
- package/dist/addon-root-inventory.js +1 -1
- package/dist/agent/addon-scan.js +11 -7
- package/dist/agent/agent-addon-updates.js +1 -1
- package/dist/agent/agent-cap-dispatch-service.js +1 -1
- package/dist/agent/agent-heap-watch.js +1 -1
- package/dist/agent/agent-http.js +1 -1
- package/dist/agent/agent-hub-addon-update.js +1 -1
- package/dist/agent/agent-hub-registration.js +1 -1
- package/dist/agent/agent-infra-capabilities.js +2 -2
- package/dist/agent/agent-mesh-gate.js +1 -1
- package/dist/agent/agent-node-certificates.js +1 -1
- package/dist/agent/agent-pairing-routes.js +1 -1
- package/dist/agent/agent-pairing-store.js +1 -1
- package/dist/agent/agent-service.js +6 -2
- package/dist/agent/agent-update-service.js +3 -1
- package/dist/agent/hub-membership-client.js +1 -1
- package/dist/agent/infra-boot-guard.js +2 -2
- package/dist/agent/main.js +9 -9
- package/dist/api/addon-upload.js +1 -1
- package/dist/api/core/addon-settings.router.js +1 -1
- package/dist/api/core/agent-pairing.router.js +1 -1
- package/dist/api/core/auth-device-cert.procedures.js +1 -1
- package/dist/api/core/cap-providers.js +6 -6
- package/dist/api/core/certificates.router.js +1 -1
- package/dist/api/core/lifecycle-job-runner.js +1 -1
- package/dist/api/core/logging-settings.js +1 -1
- package/dist/api/core/logs.router.js +2 -2
- package/dist/api/core/notifications.router.js +1 -1
- package/dist/api/core/preferences.router.js +1 -1
- package/dist/api/core/repl.router.js +1 -1
- package/dist/api/cors/cors-policy.js +1 -1
- package/dist/api/mesh-membership-routes.js +1 -1
- package/dist/api/model-distributor.js +1 -1
- package/dist/api/trpc/cap-route-error-formatter.js +1 -1
- package/dist/api/trpc/cap-router-runtime.js +2 -2
- package/dist/api/trpc/core-cap-bridge.js +1 -1
- package/dist/api/trpc/device-collection-dispatch.js +1 -1
- package/dist/api/trpc/generated-cap-routers.js +1 -1
- package/dist/api/trpc/principal-authorization.js +1 -1
- package/dist/api/trpc/principal-visibility.js +1 -1
- package/dist/api/trpc/scope-access.js +1 -1
- package/dist/api/trpc/trpc.context.js +1 -1
- package/dist/api/trpc/trpc.middleware.js +1 -1
- package/dist/api/trpc/trpc.router.js +3 -3
- package/dist/auth/auth-network-policy.js +1 -1
- package/dist/auth/client-address.js +1 -1
- package/dist/auth/hub-sessions.js +1 -1
- package/dist/auth/session-lifetimes.js +1 -1
- package/dist/auth/sso-finish-deps.js +1 -1
- package/dist/boot/boot-config.js +53 -133
- package/dist/boot/platform-keychain-key.js +1 -1
- package/dist/boot/post-boot.service.js +1 -1
- package/dist/bootstrap-packages.js +3 -3
- package/dist/core/addon/addon-call-gateway.js +1 -1
- package/dist/core/addon/addon-package.service.js +140 -21
- package/dist/core/addon/addon-registry.service.js +36 -32
- package/dist/core/addon/addon-requirements.js +81 -0
- package/dist/core/addon/hub-addon-api.js +1 -1
- package/dist/core/addon/installed-addon-versions.js +82 -0
- package/dist/core/addon/package-dir-utils.js +11 -1
- package/dist/core/addon/settings-door-wiring.js +1 -1
- package/dist/core/addon-bridge/addon-bridge.service.js +3 -3
- package/dist/core/addon-pages/addon-pages.service.js +1 -1
- package/dist/core/agent/agent-desired-set.js +1 -1
- package/dist/core/agent/agent-pairing-http.js +1 -1
- package/dist/core/agent/agent-registry.service.js +41 -7
- package/dist/core/agent/cluster-node-history-store.js +1 -1
- package/dist/core/agent/delivery-requirements.js +36 -0
- package/dist/core/agent/forgotten-node-revoker.js +1 -1
- package/dist/core/agent/node-removal-hooks.js +6 -2
- package/dist/core/auth/auth.service.js +1 -1
- package/dist/core/config/config.schema.js +2 -2
- package/dist/core/config/config.service.js +1 -1
- package/dist/core/events/event-bus.service.js +1 -1
- package/dist/core/feature/feature.service.js +1 -1
- package/dist/core/lifecycle/lifecycle-state-machine.js +2 -2
- package/dist/core/logging/log-history.js +1 -1
- package/dist/core/logging/log-ring-buffer.js +2 -2
- package/dist/core/logging/logging.service.js +2 -2
- package/dist/core/logging/scoped-logger.js +2 -2
- package/dist/core/moleculer/cap-route-authority.js +2 -2
- package/dist/core/moleculer/hub-mesh-guard.js +1 -1
- package/dist/core/moleculer/moleculer.service.js +1 -1
- package/dist/core/network/network-quality.service.js +1 -1
- package/dist/core/notification/notification-wrapper.service.js +1 -1
- package/dist/core/notification/toast-wrapper.service.js +1 -1
- package/dist/core/repl/repl-engine.service.js +1 -1
- package/dist/core/server-update/server-update.service.js +3 -0
- package/dist/core/server-update/system-ensure-prebuilds.js +3 -3
- package/dist/core/server-update/system-exec-npm.js +2 -2
- package/dist/core/storage/fs-storage-backend.js +2 -2
- package/dist/core/storage/storage-location-manager.js +2 -2
- package/dist/core/storage/storage.service.js +1 -1
- package/dist/framework-nodepath.js +14 -1
- package/dist/launcher.js +23 -23
- package/dist/legacy-package-names.js +15 -0
- package/dist/main.js +2 -2
- package/dist/manual-boot.js +4 -3
- package/dist/package-inventory.js +6 -3
- package/dist/server-root/index.js +182 -30
- package/dist/single-copy-cleanup-runner.js +3 -3
- package/dist/single-copy-cleanup.js +19 -14
- package/package.json +53 -19
- package/scripts/closure-postinstall.mjs +1 -1
- package/system/assets/addon-pages-aggregator/icon.svg +5 -0
- package/system/assets/addon-widgets-aggregator/icon.svg +6 -0
- package/system/assets/alert-center/icon.svg +5 -0
- package/system/assets/autotrack/icon.svg +5 -0
- package/system/assets/backup-orchestrator/icon.svg +5 -0
- package/system/assets/calendars/icon.svg +5 -0
- package/system/assets/camera-grid/icon.svg +10 -0
- package/system/assets/composer/icon.svg +7 -0
- package/system/assets/console-logging/icon.svg +4 -0
- package/system/assets/core-blocks/icon.svg +6 -0
- package/system/assets/device-history/icon.svg +4 -0
- package/system/assets/device-manager/icon.svg +6 -0
- package/system/assets/filesystem-storage/icon.svg +6 -0
- package/system/assets/hub-forwarder/icon.svg +7 -0
- package/system/assets/keychain/icon.svg +6 -0
- package/system/assets/liveness-monitor/icon.svg +4 -0
- package/system/assets/local-auth/icon.svg +5 -0
- package/system/assets/local-network/icon.svg +7 -0
- package/system/assets/loki-logging/icon.svg +7 -0
- package/system/assets/metrics-native/icon.svg +3 -0
- package/system/assets/platform-probe/icon.svg +5 -0
- package/system/assets/record-entries/icon.svg +8 -0
- package/system/assets/remote-access-orchestrator/icon.svg +5 -0
- package/system/assets/snapshot/icon.svg +4 -0
- package/system/assets/sqlite-settings/icon.svg +5 -0
- package/system/assets/storage-orchestrator/icon.svg +8 -0
- package/system/assets/system-config/icon.svg +4 -0
- package/system/assets/winston-logging/icon.svg +6 -0
- package/system/dist/addon/addon-api-factory.d.ts +35 -0
- package/system/dist/addon-routes/addon-route-registry.d.ts +37 -0
- package/system/dist/addon-runner.js +11894 -0
- package/system/dist/addon-runner.mjs +11840 -0
- package/system/dist/addon-utils.d.ts +23 -0
- package/system/dist/addon-utils.js +27 -0
- package/system/dist/addon-utils.mjs +3 -0
- package/system/dist/agent-https-BMbnmX5u.mjs +1042 -0
- package/system/dist/agent-https-DslXCDRW.js +1289 -0
- package/system/dist/amd-accelerators-CEuPFBBK.js +36 -0
- package/system/dist/amd-accelerators-U_RsoEDd.mjs +35 -0
- package/system/dist/auth/auth-audit-log.d.ts +45 -0
- package/system/dist/auth/auth-manager.d.ts +155 -0
- package/system/dist/auth/cidr.d.ts +22 -0
- package/system/dist/auth/device-ca-store.d.ts +57 -0
- package/system/dist/auth/device-ca.d.ts +65 -0
- package/system/dist/auth/device-credential-manager.d.ts +158 -0
- package/system/dist/auth/external-identity-manager.d.ts +42 -0
- package/system/dist/auth/jwt-signing-key.d.ts +42 -0
- package/system/dist/auth/legacy-token-tables.d.ts +16 -0
- package/system/dist/auth/login-session-manager.d.ts +140 -0
- package/system/dist/auth/origin.d.ts +34 -0
- package/system/dist/auth/parse-record.d.ts +18 -0
- package/system/dist/auth/scope-matcher.d.ts +8 -0
- package/system/dist/auth/session-revocation-bus.d.ts +32 -0
- package/system/dist/auth/token-expiry.d.ts +62 -0
- package/system/dist/auth/totp-manager.d.ts +107 -0
- package/system/dist/auth/user-management-internal.d.ts +90 -0
- package/system/dist/auth/user-manager.d.ts +69 -0
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.d.ts +57 -0
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +271 -0
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +263 -0
- package/system/dist/builtins/addon-pages-aggregator/dedupe-pages.d.ts +24 -0
- package/system/dist/builtins/addon-pages-aggregator/index.d.ts +1 -0
- package/system/dist/builtins/addon-pages-aggregator/index.js +8 -0
- package/system/dist/builtins/addon-pages-aggregator/index.mjs +2 -0
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.d.ts +57 -0
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +257 -0
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +249 -0
- package/system/dist/builtins/addon-widgets-aggregator/index.d.ts +1 -0
- package/system/dist/builtins/addon-widgets-aggregator/index.js +8 -0
- package/system/dist/builtins/addon-widgets-aggregator/index.mjs +2 -0
- package/system/dist/builtins/alerts/alert-episode-policy.d.ts +39 -0
- package/system/dist/builtins/alerts/alert-store.d.ts +32 -0
- package/system/dist/builtins/alerts/alerts.addon.d.ts +148 -0
- package/system/dist/builtins/alerts/alerts.addon.js +1566 -0
- package/system/dist/builtins/alerts/alerts.addon.mjs +1559 -0
- package/system/dist/builtins/alerts/device-label.d.ts +8 -0
- package/system/dist/builtins/alerts/emit-alert-policy.d.ts +15 -0
- package/system/dist/builtins/alerts/index.d.ts +1 -0
- package/system/dist/builtins/alerts/index.js +4 -0
- package/system/dist/builtins/alerts/index.mjs +2 -0
- package/system/dist/builtins/alerts/migration-alerts.d.ts +13 -0
- package/system/dist/builtins/alerts/prune-policy.d.ts +44 -0
- package/system/dist/builtins/alerts/record-kinds.d.ts +15 -0
- package/system/dist/builtins/alerts/runner-alert.d.ts +58 -0
- package/system/dist/builtins/autotrack/autotrack-cameras.d.ts +125 -0
- package/system/dist/builtins/autotrack/autotrack-config.d.ts +89 -0
- package/system/dist/builtins/autotrack/autotrack-decision.d.ts +86 -0
- package/system/dist/builtins/autotrack/autotrack-loop.d.ts +95 -0
- package/system/dist/builtins/autotrack/autotrack.addon.d.ts +108 -0
- package/system/dist/builtins/autotrack/frame-error.d.ts +50 -0
- package/system/dist/builtins/autotrack/frame-measurements.d.ts +97 -0
- package/system/dist/builtins/autotrack/index.d.ts +2 -0
- package/system/dist/builtins/autotrack/index.js +1018 -0
- package/system/dist/builtins/autotrack/index.mjs +1012 -0
- package/system/dist/builtins/autotrack/ptz-mirror.d.ts +54 -0
- package/system/dist/builtins/autotrack/target-selection.d.ts +46 -0
- package/system/dist/builtins/backup-orchestrator/backup-databases.d.ts +51 -0
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.d.ts +291 -0
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +3213 -0
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +3204 -0
- package/system/dist/builtins/backup-orchestrator/cron-helpers.d.ts +23 -0
- package/system/dist/builtins/backup-orchestrator/destination-policy.d.ts +91 -0
- package/system/dist/builtins/backup-orchestrator/download-helpers.d.ts +12 -0
- package/system/dist/builtins/backup-orchestrator/encryption-key-store.d.ts +49 -0
- package/system/dist/builtins/backup-orchestrator/index.d.ts +2 -0
- package/system/dist/builtins/backup-orchestrator/index.js +8 -0
- package/system/dist/builtins/backup-orchestrator/index.mjs +2 -0
- package/system/dist/builtins/backup-orchestrator/manifest-store.d.ts +134 -0
- package/system/dist/builtins/backup-orchestrator/record-kinds.d.ts +56 -0
- package/system/dist/builtins/backup-orchestrator/restore-archive.d.ts +24 -0
- package/system/dist/builtins/backup-orchestrator/run-queue.d.ts +106 -0
- package/system/dist/builtins/backup-orchestrator/schedule-store.d.ts +59 -0
- package/system/dist/builtins/backup-orchestrator/seed-marker-store.d.ts +26 -0
- package/system/dist/builtins/backup-orchestrator/staging-paths.d.ts +36 -0
- package/system/dist/builtins/backup-orchestrator/write-targets.d.ts +63 -0
- package/system/dist/builtins/calendars/calendar-color.d.ts +9 -0
- package/system/dist/builtins/calendars/calendar-prefs-store.d.ts +34 -0
- package/system/dist/builtins/calendars/calendars.addon.d.ts +19 -0
- package/system/dist/builtins/calendars/calendars.addon.js +227 -0
- package/system/dist/builtins/calendars/calendars.addon.mjs +220 -0
- package/system/dist/builtins/calendars/index.d.ts +1 -0
- package/system/dist/builtins/calendars/index.js +8 -0
- package/system/dist/builtins/calendars/index.mjs +2 -0
- package/system/dist/builtins/calendars/record-kinds.d.ts +18 -0
- package/system/dist/builtins/camera-grid/acquire-retry.d.ts +30 -0
- package/system/dist/builtins/camera-grid/addon.d.ts +205 -0
- package/system/dist/builtins/camera-grid/flv-join.d.ts +40 -0
- package/system/dist/builtins/camera-grid/grid-activity-mirror.d.ts +42 -0
- package/system/dist/builtins/camera-grid/grid-activity.d.ts +91 -0
- package/system/dist/builtins/camera-grid/grid-camera-declarations.d.ts +59 -0
- package/system/dist/builtins/camera-grid/grid-camera-device.d.ts +68 -0
- package/system/dist/builtins/camera-grid/grid-canvas-derivation.d.ts +54 -0
- package/system/dist/builtins/camera-grid/grid-canvas-seed.d.ts +112 -0
- package/system/dist/builtins/camera-grid/grid-canvas.d.ts +85 -0
- package/system/dist/builtins/camera-grid/grid-child.d.ts +32 -0
- package/system/dist/builtins/camera-grid/grid-compositor-child.d.ts +3 -0
- package/system/dist/builtins/camera-grid/grid-compositor-invocation.d.ts +47 -0
- package/system/dist/builtins/camera-grid/grid-compositor.d.ts +54 -0
- package/system/dist/builtins/camera-grid/grid-detection-mapping.d.ts +61 -0
- package/system/dist/builtins/camera-grid/grid-device-settings.d.ts +35 -0
- package/system/dist/builtins/camera-grid/grid-filter-graph.d.ts +53 -0
- package/system/dist/builtins/camera-grid/grid-frame-sample.d.ts +53 -0
- package/system/dist/builtins/camera-grid/grid-instances.d.ts +22 -0
- package/system/dist/builtins/camera-grid/grid-last-frame-store.d.ts +58 -0
- package/system/dist/builtins/camera-grid/grid-layout-native-provider.d.ts +34 -0
- package/system/dist/builtins/camera-grid/grid-plan.d.ts +34 -0
- package/system/dist/builtins/camera-grid/grid-profiles.d.ts +104 -0
- package/system/dist/builtins/camera-grid/grid-row-normalization.d.ts +10 -0
- package/system/dist/builtins/camera-grid/grid-sentry-sources.d.ts +64 -0
- package/system/dist/builtins/camera-grid/grid-snapshot.d.ts +62 -0
- package/system/dist/builtins/camera-grid/grid-stream-descriptor.d.ts +53 -0
- package/system/dist/builtins/camera-grid/grid-stream-invocation.d.ts +44 -0
- package/system/dist/builtins/camera-grid/grid-stream-relay.d.ts +35 -0
- package/system/dist/builtins/camera-grid/grid-stream-session.d.ts +143 -0
- package/system/dist/builtins/camera-grid/grid-tile-feed.d.ts +50 -0
- package/system/dist/builtins/camera-grid/grid-tile-plan.d.ts +66 -0
- package/system/dist/builtins/camera-grid/grid-wire-format.d.ts +30 -0
- package/system/dist/builtins/camera-grid/index.d.ts +45 -0
- package/system/dist/builtins/camera-grid/index.js +3994 -0
- package/system/dist/builtins/camera-grid/index.mjs +3961 -0
- package/system/dist/builtins/camera-grid/silence-analysis.d.ts +37 -0
- package/system/dist/builtins/cluster-agent/record-kinds.d.ts +49 -0
- package/system/dist/builtins/composer/actuator-dispatch.d.ts +13 -0
- package/system/dist/builtins/composer/actuator-groups.d.ts +68 -0
- package/system/dist/builtins/composer/actuator-invoke.d.ts +32 -0
- package/system/dist/builtins/composer/claim-gate.d.ts +59 -0
- package/system/dist/builtins/composer/composed-device-set.d.ts +52 -0
- package/system/dist/builtins/composer/composed-device.d.ts +57 -0
- package/system/dist/builtins/composer/composer-apply-waits.d.ts +28 -0
- package/system/dist/builtins/composer/composer-grafts.d.ts +73 -0
- package/system/dist/builtins/composer/composer-live-set.d.ts +30 -0
- package/system/dist/builtins/composer/composer-plan.d.ts +112 -0
- package/system/dist/builtins/composer/composer-runtime-factory.d.ts +30 -0
- package/system/dist/builtins/composer/composer-seeds.d.ts +28 -0
- package/system/dist/builtins/composer/composer-verdict.d.ts +33 -0
- package/system/dist/builtins/composer/composer.addon.d.ts +26 -0
- package/system/dist/builtins/composer/composer.addon.js +6229 -0
- package/system/dist/builtins/composer/composer.addon.mjs +6223 -0
- package/system/dist/builtins/composer/composer.d.ts +208 -0
- package/system/dist/builtins/composer/composition-declarations.d.ts +64 -0
- package/system/dist/builtins/composer/composition-evaluation.d.ts +53 -0
- package/system/dist/builtins/composer/composition-runtime.d.ts +203 -0
- package/system/dist/builtins/composer/composition-target.d.ts +60 -0
- package/system/dist/builtins/composer/confirmed-seed.d.ts +44 -0
- package/system/dist/builtins/composer/deadline-timer.d.ts +18 -0
- package/system/dist/builtins/composer/existing-target.d.ts +131 -0
- package/system/dist/builtins/composer/field-record.d.ts +64 -0
- package/system/dist/builtins/composer/forward-commands.d.ts +61 -0
- package/system/dist/builtins/composer/graft-host.d.ts +71 -0
- package/system/dist/builtins/composer/held-claims.d.ts +29 -0
- package/system/dist/builtins/composer/history-helpers.d.ts +67 -0
- package/system/dist/builtins/composer/index.d.ts +1 -0
- package/system/dist/builtins/composer/index.js +8 -0
- package/system/dist/builtins/composer/index.mjs +2 -0
- package/system/dist/builtins/composer/math-quantity.d.ts +20 -0
- package/system/dist/builtins/composer/own-field-reads.d.ts +30 -0
- package/system/dist/builtins/composer/owned-fields-target.d.ts +95 -0
- package/system/dist/builtins/composer/pulse-seed-resolve.d.ts +59 -0
- package/system/dist/builtins/composer/pulse-seed.d.ts +75 -0
- package/system/dist/builtins/composer/slice-assembler.d.ts +26 -0
- package/system/dist/builtins/composer/source-readings.d.ts +128 -0
- package/system/dist/builtins/composer/source-tracker.d.ts +135 -0
- package/system/dist/builtins/console-logging/console-destination.d.ts +19 -0
- package/system/dist/builtins/console-logging/console-logging.addon.d.ts +26 -0
- package/system/dist/builtins/console-logging/index.d.ts +3 -0
- package/system/dist/builtins/console-logging/index.js +108 -0
- package/system/dist/builtins/console-logging/index.mjs +99 -0
- package/system/dist/builtins/core-blocks/actions-service.d.ts +113 -0
- package/system/dist/builtins/core-blocks/actions-store.d.ts +32 -0
- package/system/dist/builtins/core-blocks/actions-wiring.d.ts +32 -0
- package/system/dist/builtins/core-blocks/block-package.d.ts +54 -0
- package/system/dist/builtins/core-blocks/block-settings-store.d.ts +93 -0
- package/system/dist/builtins/core-blocks/block-supervisor.d.ts +176 -0
- package/system/dist/builtins/core-blocks/block-type-defs.d.ts +29 -0
- package/system/dist/builtins/core-blocks/blocks-integration.d.ts +89 -0
- package/system/dist/builtins/core-blocks/compile-block.d.ts +52 -0
- package/system/dist/builtins/core-blocks/composition-api.d.ts +50 -0
- package/system/dist/builtins/core-blocks/composition-peers.d.ts +31 -0
- package/system/dist/builtins/core-blocks/composition-sources.d.ts +40 -0
- package/system/dist/builtins/core-blocks/core-block-store.d.ts +120 -0
- package/system/dist/builtins/core-blocks/core-blocks.addon.d.ts +108 -0
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +6374 -0
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +6355 -0
- package/system/dist/builtins/core-blocks/extract-settings-schema.d.ts +6 -0
- package/system/dist/builtins/core-blocks/index.d.ts +8 -0
- package/system/dist/builtins/core-blocks/index.js +21 -0
- package/system/dist/builtins/core-blocks/index.mjs +2 -0
- package/system/dist/builtins/core-blocks/lock-door-gate.d.ts +31 -0
- package/system/dist/builtins/core-blocks/lock-door-sensor.d.ts +35 -0
- package/system/dist/builtins/core-blocks/power-source-service.d.ts +70 -0
- package/system/dist/builtins/core-blocks/record-kinds.d.ts +83 -0
- package/system/dist/builtins/core-blocks/remote-call-redirect.d.ts +23 -0
- package/system/dist/builtins/core-blocks/remote-components-service.d.ts +10 -0
- package/system/dist/builtins/core-blocks/remote-service.d.ts +85 -0
- package/system/dist/builtins/core-blocks/remote-wiring.d.ts +49 -0
- package/system/dist/builtins/core-blocks/runs-api.d.ts +30 -0
- package/system/dist/builtins/core-blocks/runs-ledger.d.ts +64 -0
- package/system/dist/builtins/core-blocks/scheduler/scheduler-engine.d.ts +91 -0
- package/system/dist/builtins/core-blocks/scheduler/scheduler-holds.d.ts +54 -0
- package/system/dist/builtins/core-blocks/scheduler/scheduler-service.d.ts +76 -0
- package/system/dist/builtins/core-blocks/scheduler/scheduler-store.d.ts +23 -0
- package/system/dist/builtins/core-blocks/scheduler/scheduler-timeline.d.ts +53 -0
- package/system/dist/builtins/core-blocks/scheduler/scheduler-trace.d.ts +17 -0
- package/system/dist/builtins/core-blocks/scheduler/scheduler-types.d.ts +20 -0
- package/system/dist/builtins/core-blocks/scheduler/scheduler-wiring.d.ts +41 -0
- package/system/dist/builtins/core-blocks/templates-service.d.ts +24 -0
- package/system/dist/builtins/device-history/capture/capture-engine.d.ts +113 -0
- package/system/dist/builtins/device-history/capture/capture-filter.d.ts +37 -0
- package/system/dist/builtins/device-history/capture/device-directory.d.ts +47 -0
- package/system/dist/builtins/device-history/capture/field-path.d.ts +10 -0
- package/system/dist/builtins/device-history/capture/point-writer.d.ts +63 -0
- package/system/dist/builtins/device-history/device-history.addon.d.ts +53 -0
- package/system/dist/builtins/device-history/device-history.addon.js +2885 -0
- package/system/dist/builtins/device-history/device-history.addon.mjs +2878 -0
- package/system/dist/builtins/device-history/index.d.ts +3 -0
- package/system/dist/builtins/device-history/ingest/producer-ingest.d.ts +99 -0
- package/system/dist/builtins/device-history/query/history-query.d.ts +116 -0
- package/system/dist/builtins/device-history/query/point-shape.d.ts +31 -0
- package/system/dist/builtins/device-history/retention/departure-tracker.d.ts +33 -0
- package/system/dist/builtins/device-history/retention/orphans.d.ts +50 -0
- package/system/dist/builtins/device-history/retention/retention.d.ts +74 -0
- package/system/dist/builtins/device-history/rollup/rollup-engine.d.ts +74 -0
- package/system/dist/builtins/device-history/rollup/rollup-math.d.ts +50 -0
- package/system/dist/builtins/device-history/runtime/history-runtime.d.ts +118 -0
- package/system/dist/builtins/device-history/status/counters.d.ts +55 -0
- package/system/dist/builtins/device-history/store/history-door.d.ts +7 -0
- package/system/dist/builtins/device-history/store/history-schema.d.ts +28 -0
- package/system/dist/builtins/device-history/store/history-store.d.ts +109 -0
- package/system/dist/builtins/device-history/store/row-readers.d.ts +11 -0
- package/system/dist/builtins/device-history/store/series-registry.d.ts +64 -0
- package/system/dist/builtins/device-history/store/series-scale.d.ts +37 -0
- package/system/dist/builtins/device-history/time/bucket-time.d.ts +25 -0
- package/system/dist/builtins/device-manager/adoption-job-engine.d.ts +153 -0
- package/system/dist/builtins/device-manager/claimed-status-overlay.d.ts +45 -0
- package/system/dist/builtins/device-manager/contribution-cache.d.ts +85 -0
- package/system/dist/builtins/device-manager/day-night-config-schema.d.ts +30 -0
- package/system/dist/builtins/device-manager/device-aggregation-merge.d.ts +22 -0
- package/system/dist/builtins/device-manager/device-aggregation.d.ts +335 -0
- package/system/dist/builtins/device-manager/device-bindings-store.d.ts +278 -0
- package/system/dist/builtins/device-manager/device-config-contribution.d.ts +45 -0
- package/system/dist/builtins/device-manager/device-config-secrets.d.ts +40 -0
- package/system/dist/builtins/device-manager/device-event-propagator.d.ts +26 -0
- package/system/dist/builtins/device-manager/device-extension-linked-slot.d.ts +27 -0
- package/system/dist/builtins/device-manager/device-form-secrets.d.ts +25 -0
- package/system/dist/builtins/device-manager/device-linked-devices.d.ts +201 -0
- package/system/dist/builtins/device-manager/device-manager.addon.d.ts +234 -0
- package/system/dist/builtins/device-manager/device-manager.addon.js +11369 -0
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +11358 -0
- package/system/dist/builtins/device-manager/device-meta-actions.d.ts +338 -0
- package/system/dist/builtins/device-manager/device-meta-store.d.ts +103 -0
- package/system/dist/builtins/device-manager/device-meta-types.d.ts +277 -0
- package/system/dist/builtins/device-manager/device-online-fallback.d.ts +35 -0
- package/system/dist/builtins/device-manager/device-projection.d.ts +71 -0
- package/system/dist/builtins/device-manager/device-provider-context.d.ts +126 -0
- package/system/dist/builtins/device-manager/device-queries.d.ts +67 -0
- package/system/dist/builtins/device-manager/device-removal-hooks.d.ts +92 -0
- package/system/dist/builtins/device-manager/device-row-store.d.ts +449 -0
- package/system/dist/builtins/device-manager/device-source-activation.d.ts +103 -0
- package/system/dist/builtins/device-manager/device-state-claim-views.d.ts +92 -0
- package/system/dist/builtins/device-manager/device-state-claims.d.ts +66 -0
- package/system/dist/builtins/device-manager/device-state-mirror.d.ts +267 -0
- package/system/dist/builtins/device-manager/device-sync-resolvers.d.ts +30 -0
- package/system/dist/builtins/device-manager/device-tombstone-store.d.ts +29 -0
- package/system/dist/builtins/device-manager/discovery-orchestrator.d.ts +45 -0
- package/system/dist/builtins/device-manager/field-claims-index.d.ts +96 -0
- package/system/dist/builtins/device-manager/field-ownership.d.ts +71 -0
- package/system/dist/builtins/device-manager/fleet-read-census.d.ts +104 -0
- package/system/dist/builtins/device-manager/image-settings-config-schema.d.ts +22 -0
- package/system/dist/builtins/device-manager/index.d.ts +2 -0
- package/system/dist/builtins/device-manager/index.js +8 -0
- package/system/dist/builtins/device-manager/index.mjs +2 -0
- package/system/dist/builtins/device-manager/linked-devices-manual-backfill.d.ts +27 -0
- package/system/dist/builtins/device-manager/location-alignment.d.ts +61 -0
- package/system/dist/builtins/device-manager/migrate-device.d.ts +192 -0
- package/system/dist/builtins/device-manager/migrate-guard.d.ts +78 -0
- package/system/dist/builtins/device-manager/migrate-hardware-state.d.ts +79 -0
- package/system/dist/builtins/device-manager/migrate-reload.d.ts +46 -0
- package/system/dist/builtins/device-manager/migration-refused.d.ts +23 -0
- package/system/dist/builtins/device-manager/mirror-row-writer.d.ts +222 -0
- package/system/dist/builtins/device-manager/record-kinds.d.ts +14 -0
- package/system/dist/builtins/device-manager/recording-onboard-config-schema.d.ts +65 -0
- package/system/dist/builtins/device-manager/removal-cleanup.d.ts +50 -0
- package/system/dist/builtins/device-manager/removal-fence.d.ts +58 -0
- package/system/dist/builtins/device-manager/running-flip.d.ts +11 -0
- package/system/dist/builtins/device-manager/runtime-state-persist-gate.d.ts +64 -0
- package/system/dist/builtins/device-manager/secret-config-paths.d.ts +24 -0
- package/system/dist/builtins/device-manager/stale-wrapper-activations.d.ts +59 -0
- package/system/dist/builtins/device-manager/write-lock.d.ts +17 -0
- package/system/dist/builtins/hub-forwarder/hub-forwarder-destination.d.ts +43 -0
- package/system/dist/builtins/hub-forwarder/hub-forwarder.addon.d.ts +16 -0
- package/system/dist/builtins/hub-forwarder/index.d.ts +3 -0
- package/system/dist/builtins/hub-forwarder/index.js +151 -0
- package/system/dist/builtins/hub-forwarder/index.mjs +142 -0
- package/system/dist/builtins/keychain/index.d.ts +1 -0
- package/system/dist/builtins/keychain/index.js +2059 -0
- package/system/dist/builtins/keychain/index.mjs +2052 -0
- package/system/dist/builtins/keychain/key-sources.d.ts +37 -0
- package/system/dist/builtins/keychain/keychain-crypto.d.ts +28 -0
- package/system/dist/builtins/keychain/keychain-reset-trigger.d.ts +25 -0
- package/system/dist/builtins/keychain/keychain-service.d.ts +180 -0
- package/system/dist/builtins/keychain/keychain-store.d.ts +125 -0
- package/system/dist/builtins/keychain/keychain-usage.d.ts +17 -0
- package/system/dist/builtins/keychain/keychain.addon.d.ts +36 -0
- package/system/dist/builtins/keychain/platform-key-source.d.ts +24 -0
- package/system/dist/builtins/keychain/record-kinds.d.ts +16 -0
- package/system/dist/builtins/keychain/system-held-secrets.d.ts +25 -0
- package/system/dist/builtins/liveness-monitor/index.d.ts +2 -0
- package/system/dist/builtins/liveness-monitor/index.js +6 -0
- package/system/dist/builtins/liveness-monitor/index.mjs +2 -0
- package/system/dist/builtins/liveness-monitor/liveness-checks.d.ts +85 -0
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.d.ts +46 -0
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +443 -0
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +437 -0
- package/system/dist/builtins/liveness-monitor/liveness-reporter.d.ts +28 -0
- package/system/dist/builtins/liveness-monitor/storage-root-access.d.ts +53 -0
- package/system/dist/builtins/local-auth/admin-account-boot.d.ts +27 -0
- package/system/dist/builtins/local-auth/auth-config-reader.d.ts +39 -0
- package/system/dist/builtins/local-auth/auth-schema.d.ts +93 -0
- package/system/dist/builtins/local-auth/index.d.ts +1 -0
- package/system/dist/builtins/local-auth/index.js +4 -0
- package/system/dist/builtins/local-auth/index.mjs +2 -0
- package/system/dist/builtins/local-auth/jwt-signing-key-keeper.d.ts +30 -0
- package/system/dist/builtins/local-auth/local-auth.addon.d.ts +48 -0
- package/system/dist/builtins/local-auth/local-auth.addon.js +12418 -0
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +12388 -0
- package/system/dist/builtins/local-auth/oauth-grants.d.ts +71 -0
- package/system/dist/builtins/local-auth/oauth-session-manager.d.ts +44 -0
- package/system/dist/builtins/local-auth/person-scopes.d.ts +7 -0
- package/system/dist/builtins/local-auth/preferences-record-kinds.d.ts +27 -0
- package/system/dist/builtins/local-auth/record-kinds.d.ts +137 -0
- package/system/dist/builtins/local-auth/user-preferences-store.d.ts +56 -0
- package/system/dist/builtins/local-network/address-book.d.ts +128 -0
- package/system/dist/builtins/local-network/agent-mdns.d.ts +56 -0
- package/system/dist/builtins/local-network/hub-mdns-ciao.d.ts +7 -0
- package/system/dist/builtins/local-network/hub-mdns.d.ts +58 -0
- package/system/dist/builtins/local-network/index.d.ts +1 -0
- package/system/dist/builtins/local-network/index.js +10 -0
- package/system/dist/builtins/local-network/index.mjs +2 -0
- package/system/dist/builtins/local-network/ipv6-lan.d.ts +21 -0
- package/system/dist/builtins/local-network/local-hostname.d.ts +15 -0
- package/system/dist/builtins/local-network/local-network.addon.d.ts +334 -0
- package/system/dist/builtins/local-network/local-network.addon.js +2487 -0
- package/system/dist/builtins/local-network/local-network.addon.mjs +2466 -0
- package/system/dist/builtins/local-network/scan/dns-wire.d.ts +17 -0
- package/system/dist/builtins/local-network/scan/scan-engine.d.ts +31 -0
- package/system/dist/builtins/local-network/scan/scan-io-node.d.ts +2 -0
- package/system/dist/builtins/local-network/scan/scan-io.d.ts +56 -0
- package/system/dist/builtins/local-network/scan/subnets.d.ts +57 -0
- package/system/dist/builtins/loki-logging/index.d.ts +4 -0
- package/system/dist/builtins/loki-logging/index.js +915 -0
- package/system/dist/builtins/loki-logging/index.mjs +901 -0
- package/system/dist/builtins/loki-logging/loki-destination.d.ts +142 -0
- package/system/dist/builtins/loki-logging/loki-logging.addon.d.ts +66 -0
- package/system/dist/builtins/loki-logging/loki-payload.d.ts +100 -0
- package/system/dist/builtins/loki-logging/loki-read.d.ts +51 -0
- package/system/dist/builtins/loki-logging/retire-enabled-flag.d.ts +48 -0
- package/system/dist/builtins/native-metrics/cgroup-memory.d.ts +240 -0
- package/system/dist/builtins/native-metrics/cgroup-pids.d.ts +159 -0
- package/system/dist/builtins/native-metrics/container-memory-ring.d.ts +18 -0
- package/system/dist/builtins/native-metrics/darwin-memory.d.ts +26 -0
- package/system/dist/builtins/native-metrics/gpu-probe.d.ts +18 -0
- package/system/dist/builtins/native-metrics/index.d.ts +2 -0
- package/system/dist/builtins/native-metrics/load-series-config.d.ts +83 -0
- package/system/dist/builtins/native-metrics/load-series-reader.d.ts +63 -0
- package/system/dist/builtins/native-metrics/load-series-types.d.ts +14 -0
- package/system/dist/builtins/native-metrics/native-metrics-provider.d.ts +49 -0
- package/system/dist/builtins/native-metrics/native-metrics.addon.d.ts +233 -0
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +3116 -0
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +3106 -0
- package/system/dist/builtins/native-metrics/node-load-ring.d.ts +212 -0
- package/system/dist/builtins/native-metrics/node-metrics-history-recorder.d.ts +155 -0
- package/system/dist/builtins/native-metrics/proc-process-table.d.ts +25 -0
- package/system/dist/builtins/native-metrics/process-classification.d.ts +110 -0
- package/system/dist/builtins/native-metrics/thread-cpu-sampler.d.ts +116 -0
- package/system/dist/builtins/platform-probe/accelerator-facts-probe.d.ts +24 -0
- package/system/dist/builtins/platform-probe/accelerator-reprobe.d.ts +23 -0
- package/system/dist/builtins/platform-probe/amd-accelerators.d.ts +15 -0
- package/system/dist/builtins/platform-probe/amd-npu.d.ts +35 -0
- package/system/dist/builtins/platform-probe/coral-accelerators.d.ts +87 -0
- package/system/dist/builtins/platform-probe/index.d.ts +57 -0
- package/system/dist/builtins/platform-probe/index.js +1151 -0
- package/system/dist/builtins/platform-probe/index.mjs +1140 -0
- package/system/dist/builtins/platform-probe/inference-config-resolver.d.ts +29 -0
- package/system/dist/builtins/platform-probe/intel-accelerators.d.ts +14 -0
- package/system/dist/builtins/platform-probe/intel-npu.d.ts +38 -0
- package/system/dist/builtins/platform-probe/platform-scorer.d.ts +66 -0
- package/system/dist/builtins/platform-probe/runtime-packages.d.ts +6 -0
- package/system/dist/builtins/platform-probe/windows-hardware.d.ts +77 -0
- package/system/dist/builtins/record-entries/entries-service.d.ts +42 -0
- package/system/dist/builtins/record-entries/index.d.ts +1 -0
- package/system/dist/builtins/record-entries/index.js +162 -0
- package/system/dist/builtins/record-entries/index.mjs +156 -0
- package/system/dist/builtins/record-entries/record-entries.addon.d.ts +13 -0
- package/system/dist/builtins/records-isolated.d.ts +10 -0
- package/system/dist/builtins/remote-access-orchestrator/enabled-providers-reconcile.d.ts +96 -0
- package/system/dist/builtins/remote-access-orchestrator/index.d.ts +1 -0
- package/system/dist/builtins/remote-access-orchestrator/index.js +8 -0
- package/system/dist/builtins/remote-access-orchestrator/index.mjs +2 -0
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.d.ts +71 -0
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +214 -0
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +208 -0
- package/system/dist/builtins/shared/device-state-changed.d.ts +16 -0
- package/system/dist/builtins/shared/settle-sources.d.ts +22 -0
- package/system/dist/builtins/snapshot/index.d.ts +2 -0
- package/system/dist/builtins/snapshot/index.js +2720 -0
- package/system/dist/builtins/snapshot/index.mjs +2713 -0
- package/system/dist/builtins/snapshot/snapshot-cache.d.ts +108 -0
- package/system/dist/builtins/snapshot/snapshot-coalescing.d.ts +135 -0
- package/system/dist/builtins/snapshot/snapshot-courtesy.d.ts +68 -0
- package/system/dist/builtins/snapshot/snapshot-durable-store.d.ts +36 -0
- package/system/dist/builtins/snapshot/snapshot-fatigue.d.ts +41 -0
- package/system/dist/builtins/snapshot/snapshot-grab-pick.d.ts +20 -0
- package/system/dist/builtins/snapshot/snapshot-link-url.d.ts +66 -0
- package/system/dist/builtins/snapshot/snapshot-media-handler.d.ts +121 -0
- package/system/dist/builtins/snapshot/snapshot-resize.d.ts +75 -0
- package/system/dist/builtins/snapshot/snapshot.addon.d.ts +581 -0
- package/system/dist/builtins/sqlite-storage/analyze-stats.d.ts +83 -0
- package/system/dist/builtins/sqlite-storage/config-store.d.ts +8 -0
- package/system/dist/builtins/sqlite-storage/database-snapshot-provider.d.ts +18 -0
- package/system/dist/builtins/sqlite-storage/device-store.d.ts +23 -0
- package/system/dist/builtins/sqlite-storage/file-host-client.d.ts +75 -0
- package/system/dist/builtins/sqlite-storage/file-host-handlers.d.ts +27 -0
- package/system/dist/builtins/sqlite-storage/file-host-protocol.d.ts +167 -0
- package/system/dist/builtins/sqlite-storage/file-host-worker.d.ts +1 -0
- package/system/dist/builtins/sqlite-storage/filesystem-browse-provider.d.ts +25 -0
- package/system/dist/builtins/sqlite-storage/filesystem-storage-provider.d.ts +83 -0
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.d.ts +33 -0
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +419 -0
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +411 -0
- package/system/dist/builtins/sqlite-storage/filter-compiler.d.ts +126 -0
- package/system/dist/builtins/sqlite-storage/index.d.ts +12 -0
- package/system/dist/builtins/sqlite-storage/index.js +82 -0
- package/system/dist/builtins/sqlite-storage/index.mjs +50 -0
- package/system/dist/builtins/sqlite-storage/integration-record-kinds.d.ts +31 -0
- package/system/dist/builtins/sqlite-storage/integration-registry.d.ts +34 -0
- package/system/dist/builtins/sqlite-storage/migrations/migration-actions.d.ts +12 -0
- package/system/dist/builtins/sqlite-storage/migrations/migration-edits.d.ts +35 -0
- package/system/dist/builtins/sqlite-storage/migrations/migration-engine.d.ts +125 -0
- package/system/dist/builtins/sqlite-storage/migrations/migration-hold.d.ts +23 -0
- package/system/dist/builtins/sqlite-storage/migrations/migration-pass.d.ts +48 -0
- package/system/dist/builtins/sqlite-storage/migrations/migration-restore-marker.d.ts +3 -0
- package/system/dist/builtins/sqlite-storage/migrations/migration-types.d.ts +151 -0
- package/system/dist/builtins/sqlite-storage/migrations/migrations-provider.d.ts +61 -0
- package/system/dist/builtins/sqlite-storage/owned-sqlite-file.d.ts +173 -0
- package/system/dist/builtins/sqlite-storage/path-guard.d.ts +11 -0
- package/system/dist/builtins/sqlite-storage/placement-errors.d.ts +60 -0
- package/system/dist/builtins/sqlite-storage/placement-router.d.ts +85 -0
- package/system/dist/builtins/sqlite-storage/prefix-range.d.ts +50 -0
- package/system/dist/builtins/sqlite-storage/query-bounds.d.ts +110 -0
- package/system/dist/builtins/sqlite-storage/query-profiler.d.ts +242 -0
- package/system/dist/builtins/sqlite-storage/records/records-catalog.d.ts +27 -0
- package/system/dist/builtins/sqlite-storage/records/records-engine-types.d.ts +48 -0
- package/system/dist/builtins/sqlite-storage/records/records-engine.d.ts +115 -0
- package/system/dist/builtins/sqlite-storage/records/records-explain.d.ts +18 -0
- package/system/dist/builtins/sqlite-storage/records/records-plan.d.ts +95 -0
- package/system/dist/builtins/sqlite-storage/records/records-probe.d.ts +33 -0
- package/system/dist/builtins/sqlite-storage/records/records-provider.d.ts +72 -0
- package/system/dist/builtins/sqlite-storage/records/records-rows.d.ts +46 -0
- package/system/dist/builtins/sqlite-storage/records/records-sql.d.ts +39 -0
- package/system/dist/builtins/sqlite-storage/retired-settings-keys.d.ts +276 -0
- package/system/dist/builtins/sqlite-storage/shm-lock-canary.d.ts +60 -0
- package/system/dist/builtins/sqlite-storage/sqlite-pragmas.d.ts +191 -0
- package/system/dist/builtins/sqlite-storage/sqlite-settings-backend.d.ts +583 -0
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.d.ts +52 -0
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +2960 -0
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +2952 -0
- package/system/dist/builtins/sqlite-storage/sqlite-snapshot-protocol.d.ts +54 -0
- package/system/dist/builtins/sqlite-storage/sqlite-snapshot-worker.d.ts +33 -0
- package/system/dist/builtins/sqlite-storage/sqlite-snapshotter.d.ts +118 -0
- package/system/dist/builtins/sqlite-storage/stale-data/stale-data-audit.d.ts +81 -0
- package/system/dist/builtins/sqlite-storage/stale-data/stale-data-ports.d.ts +17 -0
- package/system/dist/builtins/sqlite-storage/statement-shape.d.ts +64 -0
- package/system/dist/builtins/sqlite-storage/storage-admin-provider.d.ts +33 -0
- package/system/dist/builtins/sqlite-storage/table-sizes.d.ts +95 -0
- package/system/dist/builtins/sqlite-storage/vector-index-shared.d.ts +81 -0
- package/system/dist/builtins/sqlite-storage/vector-index-vec.d.ts +143 -0
- package/system/dist/builtins/sqlite-storage/vector-provider.d.ts +30 -0
- package/system/dist/builtins/sqlite-storage/wal-checkpoint-policy.d.ts +196 -0
- package/system/dist/builtins/sqlite-storage/wal-checkpoint-worker.d.ts +1 -0
- package/system/dist/builtins/sqlite-storage/wal-checkpointer.d.ts +76 -0
- package/system/dist/builtins/sqlite-storage/wal-maintenance.d.ts +130 -0
- package/system/dist/builtins/storage-orchestrator/access-guards.d.ts +43 -0
- package/system/dist/builtins/storage-orchestrator/data-store-dispatch.d.ts +39 -0
- package/system/dist/builtins/storage-orchestrator/drain-ratchet.d.ts +104 -0
- package/system/dist/builtins/storage-orchestrator/drain-state-store.d.ts +26 -0
- package/system/dist/builtins/storage-orchestrator/hub-settings-forward.d.ts +128 -0
- package/system/dist/builtins/storage-orchestrator/index.d.ts +7 -0
- package/system/dist/builtins/storage-orchestrator/index.js +11 -0
- package/system/dist/builtins/storage-orchestrator/index.mjs +2 -0
- package/system/dist/builtins/storage-orchestrator/location-class-paths.d.ts +13 -0
- package/system/dist/builtins/storage-orchestrator/location-history-recorder.d.ts +76 -0
- package/system/dist/builtins/storage-orchestrator/location-occupancy-slice.d.ts +71 -0
- package/system/dist/builtins/storage-orchestrator/location-occupancy.d.ts +19 -0
- package/system/dist/builtins/storage-orchestrator/location-protection.d.ts +20 -0
- package/system/dist/builtins/storage-orchestrator/location-repoint-move.d.ts +57 -0
- package/system/dist/builtins/storage-orchestrator/location-repointer.d.ts +97 -0
- package/system/dist/builtins/storage-orchestrator/location-root-collision.d.ts +80 -0
- package/system/dist/builtins/storage-orchestrator/location-secrets.d.ts +114 -0
- package/system/dist/builtins/storage-orchestrator/location-store.d.ts +82 -0
- package/system/dist/builtins/storage-orchestrator/location-volume-capacity.d.ts +58 -0
- package/system/dist/builtins/storage-orchestrator/provider-discovery.d.ts +24 -0
- package/system/dist/builtins/storage-orchestrator/record-kinds.d.ts +43 -0
- package/system/dist/builtins/storage-orchestrator/storage-cleanup-coordinator.d.ts +68 -0
- package/system/dist/builtins/storage-orchestrator/storage-location-band-monitor.d.ts +77 -0
- package/system/dist/builtins/storage-orchestrator/storage-migration-coordinator.d.ts +241 -0
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.d.ts +318 -0
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +5280 -0
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +5264 -0
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.service.d.ts +475 -0
- package/system/dist/builtins/storage-orchestrator/storage-pressure-manager.d.ts +115 -0
- package/system/dist/builtins/system-backup/backup-encryption.d.ts +94 -0
- package/system/dist/builtins/system-backup/system-backup.service.d.ts +308 -0
- package/system/dist/builtins/system-config/index.d.ts +2 -0
- package/system/dist/builtins/system-config/index.js +10 -0
- package/system/dist/builtins/system-config/index.mjs +2 -0
- package/system/dist/builtins/system-config/mesh-actions.d.ts +3 -0
- package/system/dist/builtins/system-config/record-kinds.d.ts +32 -0
- package/system/dist/builtins/system-config/system-config.addon.d.ts +56 -0
- package/system/dist/builtins/system-config/system-config.addon.js +89334 -0
- package/system/dist/builtins/system-config/system-config.addon.mjs +89233 -0
- package/system/dist/builtins/winston-logging/index.d.ts +3 -0
- package/system/dist/builtins/winston-logging/index.js +324 -0
- package/system/dist/builtins/winston-logging/index.mjs +313 -0
- package/system/dist/builtins/winston-logging/log-file-cursor.d.ts +12 -0
- package/system/dist/builtins/winston-logging/log-file-index-store.d.ts +11 -0
- package/system/dist/builtins/winston-logging/log-file-index.d.ts +77 -0
- package/system/dist/builtins/winston-logging/log-file-read-client.d.ts +44 -0
- package/system/dist/builtins/winston-logging/log-file-read-protocol.d.ts +41 -0
- package/system/dist/builtins/winston-logging/log-file-read-worker.d.ts +1 -0
- package/system/dist/builtins/winston-logging/log-file-reader.d.ts +51 -0
- package/system/dist/builtins/winston-logging/winston-destination.d.ts +39 -0
- package/system/dist/builtins/winston-logging/winston-logging.addon.d.ts +20 -0
- package/system/dist/chunk-CNf5ZN-e.mjs +37 -0
- package/system/dist/chunk-Cek0wNdY.js +64 -0
- package/system/dist/composition-sources-C14epb_m.js +155 -0
- package/system/dist/composition-sources-EXNuxmGQ.mjs +132 -0
- package/system/dist/constants-DIGWBiNC.mjs +20 -0
- package/system/dist/constants-M7NtSiRo.js +66 -0
- package/system/dist/coral-accelerators-BSVsBVzt.js +250 -0
- package/system/dist/coral-accelerators-DBlgWB8k.mjs +231 -0
- package/system/dist/custom-action-registry-JuMHGKEc.js +1638 -0
- package/system/dist/custom-action-registry-oHl1xltx.mjs +1482 -0
- package/system/dist/device-ca-3vmBP1i0.js +474 -0
- package/system/dist/device-ca-DZlvNBWU.mjs +367 -0
- package/system/dist/dist-DcMqHB_N.mjs +108095 -0
- package/system/dist/dist-M9yHiIY7.js +110554 -0
- package/system/dist/download/hosted-model-revisions.d.ts +10 -0
- package/system/dist/download/model-download-service.d.ts +35 -0
- package/system/dist/download/model-downloader.d.ts +156 -0
- package/system/dist/events/event-bus.d.ts +10 -0
- package/system/dist/events/system-event-bus.d.ts +14 -0
- package/system/dist/feature/feature-manager.d.ts +11 -0
- package/system/dist/file-host-worker.js +160 -0
- package/system/dist/file-host-worker.mjs +160 -0
- package/system/dist/formatter-DkYZ4LXp.mjs +162 -0
- package/system/dist/formatter-xbxeV4GD.js +167 -0
- package/system/dist/framework-resolver-hook.mjs +49 -0
- package/system/dist/http/asset-compression.d.ts +55 -0
- package/system/dist/http/authenticated-file-server.d.ts +53 -0
- package/system/dist/http/data-plane-registry.d.ts +58 -0
- package/system/dist/http/file-data-plane.d.ts +18 -0
- package/system/dist/http/lan-http-bind.d.ts +41 -0
- package/system/dist/http/reverse-proxy.d.ts +42 -0
- package/system/dist/hub-mdns-ciao-CpCKuQnK.js +1163 -0
- package/system/dist/hub-mdns-ciao-Czz2ssit.mjs +942 -0
- package/system/dist/i18n/catalog-registry.d.ts +35 -0
- package/system/dist/i18n/index.d.ts +2 -0
- package/system/dist/index.d.ts +156 -0
- package/system/dist/index.js +28736 -0
- package/system/dist/index.mjs +28065 -0
- package/system/dist/intel-accelerators-BvBjZn4j.js +16 -0
- package/system/dist/intel-accelerators-idEumqk1.mjs +15 -0
- package/system/dist/intel-npu-C8HKvRQF.mjs +27 -0
- package/system/dist/intel-npu-DYF5hO5K.js +28 -0
- package/system/dist/kernel/addon-class-resolver.d.ts +4 -0
- package/system/dist/kernel/addon-engine-manager.d.ts +22 -0
- package/system/dist/kernel/addon-health-monitor.d.ts +163 -0
- package/system/dist/kernel/addon-installer.d.ts +651 -0
- package/system/dist/kernel/addon-loader.d.ts +144 -0
- package/system/dist/kernel/addon-manifest.d.ts +128 -0
- package/system/dist/kernel/addon-refused-error.d.ts +30 -0
- package/system/dist/kernel/addon-residue.d.ts +45 -0
- package/system/dist/kernel/addon-settings-store.d.ts +43 -0
- package/system/dist/kernel/addon-version-policy.d.ts +34 -0
- package/system/dist/kernel/anon-rss.d.ts +12 -0
- package/system/dist/kernel/array-buffer-census.d.ts +118 -0
- package/system/dist/kernel/bootstrap-config.d.ts +7 -0
- package/system/dist/kernel/cap-router-builder.d.ts +180 -0
- package/system/dist/kernel/capability-handle.d.ts +46 -0
- package/system/dist/kernel/capability-registry.d.ts +621 -0
- package/system/dist/kernel/config-manager.d.ts +174 -0
- package/system/dist/kernel/config-schema.d.ts +37 -0
- package/system/dist/kernel/custom-action-registry.d.ts +32 -0
- package/system/dist/kernel/deps/addon-deps-manager.d.ts +28 -0
- package/system/dist/kernel/deps/closure-dedupe.d.ts +105 -0
- package/system/dist/kernel/deps/ensure-addon-natives.d.ts +41 -0
- package/system/dist/kernel/deps/ensure-native-prebuilds.d.ts +40 -0
- package/system/dist/kernel/deps/manifest-native-deps.d.ts +42 -0
- package/system/dist/kernel/deps/manifest-python-deps.d.ts +20 -0
- package/system/dist/kernel/deps/manifest-system-deps.d.ts +18 -0
- package/system/dist/kernel/deps/npm-command.d.ts +60 -0
- package/system/dist/kernel/deps/system-package-allowlist.d.ts +12 -0
- package/system/dist/kernel/deps/system-package-broker.d.ts +31 -0
- package/system/dist/kernel/deps/system-package-client.d.ts +9 -0
- package/system/dist/kernel/device-call-redirect.d.ts +18 -0
- package/system/dist/kernel/device-registry.d.ts +29 -0
- package/system/dist/kernel/device-settings-store.d.ts +74 -0
- package/system/dist/kernel/event-loop-stall-monitor.d.ts +41 -0
- package/system/dist/kernel/event-plane-report.d.ts +225 -0
- package/system/dist/kernel/fs-utils.d.ts +88 -0
- package/system/dist/kernel/gc-census.d.ts +161 -0
- package/system/dist/kernel/heap-spaces.d.ts +112 -0
- package/system/dist/kernel/heap-watch.d.ts +816 -0
- package/system/dist/kernel/host-externals.d.ts +12 -0
- package/system/dist/kernel/hwaccel/hwaccel-resolver.d.ts +56 -0
- package/system/dist/kernel/hwaccel/vaapi-init-probe.d.ts +29 -0
- package/system/dist/kernel/index.d.ts +116 -0
- package/system/dist/kernel/inference/inference-resolver.d.ts +22 -0
- package/system/dist/kernel/inference/local-python-runtimes.d.ts +2 -0
- package/system/dist/kernel/infra-capabilities.d.ts +13 -0
- package/system/dist/kernel/isolated-builtin-phase.d.ts +57 -0
- package/system/dist/kernel/lifecycle/job-journal.d.ts +19 -0
- package/system/dist/kernel/lifecycle/lifecycle-job-engine.d.ts +106 -0
- package/system/dist/kernel/lifecycle/staging-area.d.ts +31 -0
- package/system/dist/kernel/moleculer/accessory-prune-gate.d.ts +55 -0
- package/system/dist/kernel/moleculer/addon-context-factory.d.ts +104 -0
- package/system/dist/kernel/moleculer/addon-data-plane-facility.d.ts +19 -0
- package/system/dist/kernel/moleculer/addon-deploy-source.d.ts +16 -0
- package/system/dist/kernel/moleculer/addon-peer-bytes-facility.d.ts +25 -0
- package/system/dist/kernel/moleculer/addon-runner.d.ts +1 -0
- package/system/dist/kernel/moleculer/addon-service-factory.d.ts +50 -0
- package/system/dist/kernel/moleculer/agent-event-scope.d.ts +49 -0
- package/system/dist/kernel/moleculer/agent-ui-unlock.d.ts +67 -0
- package/system/dist/kernel/moleculer/broker-factory.d.ts +95 -0
- package/system/dist/kernel/moleculer/broker-transport-swap.d.ts +60 -0
- package/system/dist/kernel/moleculer/cap-usage-registry.d.ts +126 -0
- package/system/dist/kernel/moleculer/capabilities-access.d.ts +21 -0
- package/system/dist/kernel/moleculer/child-addon-call-dispatch.d.ts +53 -0
- package/system/dist/kernel/moleculer/child-cap-descriptors.d.ts +34 -0
- package/system/dist/kernel/moleculer/child-cap-dispatch.d.ts +59 -0
- package/system/dist/kernel/moleculer/children-batch-loader.d.ts +98 -0
- package/system/dist/kernel/moleculer/core-cap-service.d.ts +65 -0
- package/system/dist/kernel/moleculer/crash-supervisor.d.ts +50 -0
- package/system/dist/kernel/moleculer/device-cap-proxy.d.ts +70 -0
- package/system/dist/kernel/moleculer/device-event-ring.d.ts +155 -0
- package/system/dist/kernel/moleculer/event-bus-core.d.ts +198 -0
- package/system/dist/kernel/moleculer/event-bus.d.ts +106 -0
- package/system/dist/kernel/moleculer/hub-log-forwarder.d.ts +36 -0
- package/system/dist/kernel/moleculer/hub-service.d.ts +39 -0
- package/system/dist/kernel/moleculer/init-watchdog.d.ts +60 -0
- package/system/dist/kernel/moleculer/mesh-access-middleware.d.ts +42 -0
- package/system/dist/kernel/moleculer/mesh-identity.d.ts +57 -0
- package/system/dist/kernel/moleculer/mesh-mtls/constants.d.ts +17 -0
- package/system/dist/kernel/moleculer/mesh-mtls/index.d.ts +12 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-ca-keeper.d.ts +60 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-ca.d.ts +49 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-certificate-registry.d.ts +105 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-crl.d.ts +16 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-membership.d.ts +64 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-peer-transport.d.ts +47 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-renewal.d.ts +135 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-tls-enabler.d.ts +9 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-tls-gate.d.ts +40 -0
- package/system/dist/kernel/moleculer/mesh-mtls/pairing/agent-pairing.d.ts +214 -0
- package/system/dist/kernel/moleculer/mesh-mtls/pairing/hub-pairing.d.ts +115 -0
- package/system/dist/kernel/moleculer/mesh-mtls/pairing/index.d.ts +3 -0
- package/system/dist/kernel/moleculer/mesh-mtls/pairing/pairing-protocol.d.ts +107 -0
- package/system/dist/kernel/moleculer/mesh-mtls/tls-tcp-transporter.d.ts +242 -0
- package/system/dist/kernel/moleculer/mesh-queue-report.d.ts +51 -0
- package/system/dist/kernel/moleculer/node-registry.d.ts +146 -0
- package/system/dist/kernel/moleculer/process-context.d.ts +4 -0
- package/system/dist/kernel/moleculer/process-service.d.ts +92 -0
- package/system/dist/kernel/moleculer/provider-registry.d.ts +28 -0
- package/system/dist/kernel/moleculer/readiness-context.d.ts +67 -0
- package/system/dist/kernel/moleculer/readiness-service.d.ts +37 -0
- package/system/dist/kernel/moleculer/records-api-transport.d.ts +9 -0
- package/system/dist/kernel/moleculer/register-framework-resolver.d.ts +8 -0
- package/system/dist/kernel/moleculer/register-node-client.d.ts +49 -0
- package/system/dist/kernel/moleculer/remote-logger.d.ts +43 -0
- package/system/dist/kernel/moleculer/resilient-cap-call.d.ts +28 -0
- package/system/dist/kernel/moleculer/runner-addon-settings.d.ts +29 -0
- package/system/dist/kernel/moleculer/runner-device-settings.d.ts +39 -0
- package/system/dist/kernel/moleculer/runner-heap-flags.d.ts +228 -0
- package/system/dist/kernel/moleculer/runner-native-allocator.d.ts +107 -0
- package/system/dist/kernel/moleculer/runner-process-group.d.ts +96 -0
- package/system/dist/kernel/moleculer/runner-refusal.d.ts +27 -0
- package/system/dist/kernel/moleculer/runtime-state-load.d.ts +29 -0
- package/system/dist/kernel/moleculer/settings-read-guard.d.ts +49 -0
- package/system/dist/kernel/moleculer/stream-probe-service.d.ts +28 -0
- package/system/dist/kernel/moleculer/trpc-links.d.ts +244 -0
- package/system/dist/kernel/moleculer/typed-array-serde.d.ts +14 -0
- package/system/dist/kernel/moleculer/worker-device-restore.d.ts +10 -0
- package/system/dist/kernel/outbound-queue-watch.d.ts +94 -0
- package/system/dist/kernel/prefix-walk.d.ts +39 -0
- package/system/dist/kernel/process-cpu-census.d.ts +74 -0
- package/system/dist/kernel/provider-kind-drift.d.ts +21 -0
- package/system/dist/kernel/restart-coordinator.d.ts +90 -0
- package/system/dist/kernel/sections-store.d.ts +20 -0
- package/system/dist/kernel/settings-door-view.d.ts +41 -0
- package/system/dist/kernel/settings-read-error.d.ts +35 -0
- package/system/dist/kernel/settings-view-types.d.ts +80 -0
- package/system/dist/kernel/socket-plane-report.d.ts +268 -0
- package/system/dist/kernel/status-overlay.d.ts +38 -0
- package/system/dist/kernel/storage-location-registry.d.ts +55 -0
- package/system/dist/kernel/store-settings-view.d.ts +14 -0
- package/system/dist/kernel/system-settings-mirror.d.ts +46 -0
- package/system/dist/kernel/system-settings-policy.d.ts +28 -0
- package/system/dist/kernel/transport/cap-action-census.d.ts +218 -0
- package/system/dist/kernel/transport/cap-action-name.d.ts +100 -0
- package/system/dist/kernel/transport/cap-child-index.d.ts +49 -0
- package/system/dist/kernel/transport/cap-route-resolver.d.ts +231 -0
- package/system/dist/kernel/transport/cap-route.d.ts +168 -0
- package/system/dist/kernel/transport/cap-routing-hints.d.ts +42 -0
- package/system/dist/kernel/transport/child-cap-protocol.d.ts +307 -0
- package/system/dist/kernel/transport/claimed-get-status.d.ts +39 -0
- package/system/dist/kernel/transport/create-local-transport.d.ts +7 -0
- package/system/dist/kernel/transport/device-call-redirect.d.ts +39 -0
- package/system/dist/kernel/transport/frame-codec.d.ts +122 -0
- package/system/dist/kernel/transport/hub-cap-forward.d.ts +96 -0
- package/system/dist/kernel/transport/index.d.ts +38 -0
- package/system/dist/kernel/transport/local-child-client.d.ts +199 -0
- package/system/dist/kernel/transport/local-child-registry.d.ts +654 -0
- package/system/dist/kernel/transport/local-endpoint-path.d.ts +6 -0
- package/system/dist/kernel/transport/local-transport.d.ts +122 -0
- package/system/dist/kernel/transport/parent-unowned-call.d.ts +283 -0
- package/system/dist/kernel/transport/peer-answered-error.d.ts +21 -0
- package/system/dist/kernel/transport/socket-channel.d.ts +116 -0
- package/system/dist/kernel/transport/socket-traffic.d.ts +118 -0
- package/system/dist/kernel/transport/uds-event-bridge.d.ts +85 -0
- package/system/dist/kernel/transport/uds-event-bus.d.ts +93 -0
- package/system/dist/kernel/transport/uds-local-transport.d.ts +18 -0
- package/system/dist/kernel/transport/uds-log-ingest.d.ts +43 -0
- package/system/dist/kernel/transport/uds-logger.d.ts +44 -0
- package/system/dist/kernel/utils/ring-buffer.d.ts +15 -0
- package/system/dist/kernel/workspace-detect.d.ts +9 -0
- package/system/dist/lib-5THG9eKz.mjs +15545 -0
- package/system/dist/lib-C3U1yluo.js +7110 -0
- package/system/dist/lib-CZ3g2WTS.js +15549 -0
- package/system/dist/lib-DFZblCIu.mjs +7106 -0
- package/system/dist/lifecycle/lifecycle-state-machine.d.ts +28 -0
- package/system/dist/log-file-read-protocol-B7M3X3bT.mjs +785 -0
- package/system/dist/log-file-read-protocol-D0WcLbIV.js +817 -0
- package/system/dist/log-file-read-worker.js +64 -0
- package/system/dist/log-file-read-worker.mjs +64 -0
- package/system/dist/log-read-filter-Bi066jwU.js +134 -0
- package/system/dist/log-read-filter-D7Ev3zm-.mjs +93 -0
- package/system/dist/logging/formatter.d.ts +57 -0
- package/system/dist/logging/log-manager.d.ts +145 -0
- package/system/dist/logging/log-read-filter.d.ts +43 -0
- package/system/dist/logging/log-redactor.d.ts +30 -0
- package/system/dist/logging/log-ring-buffer.d.ts +62 -0
- package/system/dist/logging/logging-gate.d.ts +76 -0
- package/system/dist/logging/logging-gate.singleton.d.ts +16 -0
- package/system/dist/logging/partitioned-log-buffer.d.ts +169 -0
- package/system/dist/logging/scoped-logger.d.ts +17 -0
- package/system/dist/migrations/hub/index.d.ts +11 -0
- package/system/dist/ms-CgH2OFlD.mjs +120 -0
- package/system/dist/ms-LB3giGoU.js +124 -0
- package/system/dist/network/network-quality.d.ts +11 -0
- package/system/dist/notification/notification-service.d.ts +43 -0
- package/system/dist/notification/toast-service.d.ts +22 -0
- package/system/dist/pipeline/engine-manager-resolver.d.ts +15 -0
- package/system/dist/pipeline/pipeline-runner.d.ts +8 -0
- package/system/dist/pipeline/pipeline-validator.d.ts +13 -0
- package/system/dist/platform-key-source-BWlq0jjn.mjs +23 -0
- package/system/dist/platform-key-source-Di7HrlGR.js +40 -0
- package/system/dist/prefix-range-D_KueXbQ.js +27 -0
- package/system/dist/prefix-range-Dl0znowN.mjs +22 -0
- package/system/dist/prefix-walk-DAOBSyH1.mjs +88 -0
- package/system/dist/prefix-walk-Dv6MLZlM.js +99 -0
- package/system/dist/process/proc-stat.d.ts +75 -0
- package/system/dist/process/resource-monitor.d.ts +28 -0
- package/system/dist/python/python-env-manager.d.ts +12 -0
- package/system/dist/read-all-rows-CVoO1ONM.js +29 -0
- package/system/dist/read-all-rows-TaPqdWNF.mjs +25 -0
- package/system/dist/records/read-all-rows.d.ts +6 -0
- package/system/dist/repl/interfaces.d.ts +31 -0
- package/system/dist/repl/repl-engine.d.ts +8 -0
- package/system/dist/resource-monitor-Di9daRwI.mjs +96 -0
- package/system/dist/resource-monitor-mio9dSCT.js +113 -0
- package/system/dist/restore-archive-Cy7jGqiD.js +4325 -0
- package/system/dist/restore-archive-DS4nvQ43.mjs +4213 -0
- package/system/dist/retention-Dqm_EiVq.mjs +893 -0
- package/system/dist/retention-Ufa2fci-.js +1024 -0
- package/system/dist/retired-settings-keys-C8nOOr5H.js +381 -0
- package/system/dist/retired-settings-keys-u6xQA6r7.mjs +364 -0
- package/system/dist/safe-buffer-B1OjL1I9.mjs +42 -0
- package/system/dist/safe-buffer-D3aoa-7X.js +46 -0
- package/system/dist/settle-sources-Bhsy57y-.js +38 -0
- package/system/dist/settle-sources-CDtNC8ub.mjs +33 -0
- package/system/dist/snapshot-courtesy-CyFs1M3I.mjs +167 -0
- package/system/dist/snapshot-courtesy-D_C5-nC0.js +192 -0
- package/system/dist/sqlite-snapshot-protocol-2QaTouWV.mjs +34 -0
- package/system/dist/sqlite-snapshot-protocol-B9OndqZv.js +51 -0
- package/system/dist/sqlite-snapshot-worker.js +185 -0
- package/system/dist/sqlite-snapshot-worker.mjs +179 -0
- package/system/dist/src-CnAqG6EF.js +714 -0
- package/system/dist/src-hG4grMU4.mjs +709 -0
- package/system/dist/storage/fs-storage-backend.d.ts +40 -0
- package/system/dist/storage/storage-location-manager.d.ts +23 -0
- package/system/dist/storage/storage-manager.d.ts +83 -0
- package/system/dist/tls/agent-https-names.d.ts +25 -0
- package/system/dist/tls/agent-https.d.ts +111 -0
- package/system/dist/tls/boot-tls.d.ts +35 -0
- package/system/dist/tls/cert-backdate.d.ts +10 -0
- package/system/dist/tls/cert-evaluation.d.ts +41 -0
- package/system/dist/tls/cert-identity.d.ts +60 -0
- package/system/dist/tls/cert-issue.d.ts +57 -0
- package/system/dist/tls/cert-manager.d.ts +124 -0
- package/system/dist/tls/cert-name-constraints.d.ts +53 -0
- package/system/dist/tls/cert-utc-time.d.ts +1 -0
- package/system/dist/tls/https-listener.d.ts +30 -0
- package/system/dist/tls/index.d.ts +12 -0
- package/system/dist/tls/tls-actions.d.ts +49 -0
- package/system/dist/tls/tls-status.d.ts +57 -0
- package/system/dist/tls/uploaded-cert.d.ts +46 -0
- package/system/dist/wal-checkpoint-policy-BahrTtyD.mjs +186 -0
- package/system/dist/wal-checkpoint-policy-d2z2qPqx.js +233 -0
- package/system/dist/wal-checkpoint-worker.js +144 -0
- package/system/dist/wal-checkpoint-worker.mjs +143 -0
- package/system/dist/wal-maintenance-BmugbgS7.js +0 -0
- package/system/dist/wal-maintenance-Bnb2QzYG.mjs +0 -0
- package/system/dist/x509.es-BRiJgOvu.mjs +11939 -0
- package/system/dist/x509.es-WtnRNyYS.js +12076 -0
- package/system/package.json +516 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The claims half of the hub runtime-state mirror (D663): which caps of a
|
|
3
|
+
* device are claimed, by whom, and what the MERGED view of each claimed cap
|
|
4
|
+
* currently is. `DeviceStateMirror` owns the native shadow, the seeding and
|
|
5
|
+
* the disk writes; this class owns the two maps the merge lives in and the
|
|
6
|
+
* rule for what a consumer sees.
|
|
7
|
+
*
|
|
8
|
+
* The view of a claimed cap is `mergeOwned(native, claim)`. When the merge is
|
|
9
|
+
* a slice it is what reads answer and what is emitted. When it is HELD, what
|
|
10
|
+
* reads answer depends on WHY: a bad overlay (every value present, schema
|
|
11
|
+
* refused it) keeps the last good slice readable; a value or native that has
|
|
12
|
+
* not arrived yet answers nothing — otherwise the previous merge would answer a
|
|
13
|
+
* newly claimed field from the native (S5, D62). Held transitions log once per
|
|
14
|
+
* (device, cap, reason) with `tags: { deviceId }` (D391).
|
|
15
|
+
*/
|
|
16
|
+
import type { z } from "zod";
|
|
17
|
+
import type { ClaimOutcome, IScopedLogger } from "@camstack/types";
|
|
18
|
+
import { type MergedSlice, type OwnedCap, type OwnedCaps } from "./field-ownership.js";
|
|
19
|
+
/** Resolves a cap's `runtimeState` schema by name; null when it declares none. */
|
|
20
|
+
export type RuntimeStateSchemaLookup = (capName: string) => z.ZodType | null;
|
|
21
|
+
/** Per (device, cap) state of a claimed cap: what the merge last said, and the
|
|
22
|
+
* last GOOD merged slice — kept readable while a bad overlay holds the cap. */
|
|
23
|
+
export interface ClaimedView {
|
|
24
|
+
readonly merged: MergedSlice;
|
|
25
|
+
readonly visible: Readonly<Record<string, unknown>> | null;
|
|
26
|
+
}
|
|
27
|
+
/** What the views need from their owner: the schema, the log and the public emit. */
|
|
28
|
+
export interface ClaimViewSink {
|
|
29
|
+
readonly logger: IScopedLogger;
|
|
30
|
+
readonly schemaFor: RuntimeStateSchemaLookup;
|
|
31
|
+
emitSlice(deviceId: number, capName: string, slice: Record<string, unknown>): void;
|
|
32
|
+
}
|
|
33
|
+
/** Lazily indexes the codegen'd cap set — the hub already carries the barrel. */
|
|
34
|
+
export declare function defaultSchemaFor(capName: string): z.ZodType | null;
|
|
35
|
+
export declare function sameOwnedCap(a: OwnedCap, b: OwnedCap): boolean;
|
|
36
|
+
type ClaimRefusal = Extract<ClaimOutcome, {
|
|
37
|
+
ok: false;
|
|
38
|
+
}>;
|
|
39
|
+
export declare function refused(code: ClaimRefusal["code"], message: string): ClaimOutcome;
|
|
40
|
+
export declare class ClaimViews {
|
|
41
|
+
private readonly sink;
|
|
42
|
+
/** Claims by device, by cap. Absent for every device without one. */
|
|
43
|
+
private readonly owned;
|
|
44
|
+
/** The merged view of each claimed cap; recomputed on every native or owned write. */
|
|
45
|
+
private readonly views;
|
|
46
|
+
constructor(sink: ClaimViewSink);
|
|
47
|
+
claim(deviceId: number, capName: string): OwnedCap | undefined;
|
|
48
|
+
setClaim(deviceId: number, capName: string, claim: OwnedCap): void;
|
|
49
|
+
/** Removes the claim AND its view. */
|
|
50
|
+
deleteClaim(deviceId: number, capName: string): void;
|
|
51
|
+
/** Fill gaps only: a claim already in memory was written through and is newer than the row. */
|
|
52
|
+
seedClaims(deviceId: number, claims: OwnedCaps): void;
|
|
53
|
+
clearDevice(deviceId: number): void;
|
|
54
|
+
ownedCaps(deviceId: number): OwnedCaps;
|
|
55
|
+
claimsOf(deviceId: number): Iterable<[string, OwnedCap]>;
|
|
56
|
+
/** Devices with at least one view — for the whole-system dump. */
|
|
57
|
+
deviceIds(): Iterable<number>;
|
|
58
|
+
isClaimed(deviceId: number, capName: string): boolean;
|
|
59
|
+
/** `undefined` when the cap is not claimed; `null` when it is claimed and held with nothing to show. */
|
|
60
|
+
visible(deviceId: number, capName: string): Readonly<Record<string, unknown>> | null | undefined;
|
|
61
|
+
/** Every claimed cap of a device that currently has something to show. */
|
|
62
|
+
visibleCaps(deviceId: number): Iterable<[string, Readonly<Record<string, unknown>>]>;
|
|
63
|
+
/** What the merge says for a claimed cap; null when the cap is not claimed. */
|
|
64
|
+
effective(deviceId: number, capName: string): MergedSlice | null;
|
|
65
|
+
view(deviceId: number, capName: string): ClaimedView | undefined;
|
|
66
|
+
/** Put a view back (rollback of a failed write-through); `undefined` removes it. */
|
|
67
|
+
restoreView(deviceId: number, capName: string, view: ClaimedView | undefined): void;
|
|
68
|
+
/**
|
|
69
|
+
* Recompute a claimed cap's merged view and emit it when it is a slice and
|
|
70
|
+
* either changed or `emitUnchanged` (the native moved). A held view emits
|
|
71
|
+
* nothing and logs once per transition, naming the fields; a bad overlay
|
|
72
|
+
* keeps the last good slice readable, a missing value or native does not.
|
|
73
|
+
*/
|
|
74
|
+
recompute(deviceId: number, capName: string, claim: OwnedCap, native: Readonly<Record<string, unknown>> | null, emitUnchanged: boolean): void;
|
|
75
|
+
/**
|
|
76
|
+
* The view a claim has NOW — set, never emitted, never logged. A claim is
|
|
77
|
+
* written through, and readers must see it from the moment it is accepted
|
|
78
|
+
* (S5): without this, `capSlice` answered the NATIVE for an already-claimed
|
|
79
|
+
* field for the whole row round-trip (D663 re-review N-5). The emit is judged
|
|
80
|
+
* later, by `recompute`, against what consumers last saw.
|
|
81
|
+
*/
|
|
82
|
+
previewView(deviceId: number, capName: string, claim: OwnedCap, native: Readonly<Record<string, unknown>> | null): void;
|
|
83
|
+
/** The one rule for what a claimed cap shows: the merge when it is a slice; on
|
|
84
|
+
* a bad overlay the last good slice stays readable; a value or native not yet
|
|
85
|
+
* arrived shows nothing. */
|
|
86
|
+
private derive;
|
|
87
|
+
/** The merged view for a claim that arrived by seed: computed, never emitted. */
|
|
88
|
+
seedView(deviceId: number, capName: string, claim: OwnedCap, native: Readonly<Record<string, unknown>> | null): void;
|
|
89
|
+
private ownedFor;
|
|
90
|
+
private viewsFor;
|
|
91
|
+
}
|
|
92
|
+
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `deviceState` CLAIM methods (D663): `claimFields`, `patchOwnedFields`,
|
|
3
|
+
* `releaseClaim`, `listClaims`. Thin over two authorities — the mirror owns the
|
|
4
|
+
* row and the merge, the index owns the listing — and the ORDER between them:
|
|
5
|
+
*
|
|
6
|
+
* claim : index first, then the row — when the index does not yet name the
|
|
7
|
+
* (device, cap). A crash leaves an index entry with no row claim,
|
|
8
|
+
* which is harmless (a row read at the next seed) and self-heals;
|
|
9
|
+
* the reverse would let a claimed device seed without its row.
|
|
10
|
+
* When the index ALREADY names the pair (a standing owner), the
|
|
11
|
+
* row goes first and the index moves only on `ok`: `hasClaims` is
|
|
12
|
+
* already true, so index-first buys nothing, and it would name an
|
|
13
|
+
* owner the row is about to refuse.
|
|
14
|
+
* release : row first, then the index. `not-claimed` from the row also drops
|
|
15
|
+
* the index entry — that is how an orphan heals (condition ii).
|
|
16
|
+
*
|
|
17
|
+
* Every method refuses by NAME (`ClaimOutcome`), never by silence: an unknown
|
|
18
|
+
* device, a device whose migration is in flight (its row is about to be swapped
|
|
19
|
+
* with another's — D663 5b), a value outside the planned field set (S5). A
|
|
20
|
+
* failed store write REJECTS (I-4): the composer reads a rejection as unknown
|
|
21
|
+
* and re-sends; a typed refusal is a fact about the claim, a rejection a fact
|
|
22
|
+
* about the store.
|
|
23
|
+
*/
|
|
24
|
+
import type { ClaimOutcome, ClaimsListing, FieldClaimMode, IScopedLogger } from "@camstack/types";
|
|
25
|
+
import type { DeviceManagerSettings } from "./device-meta-store.js";
|
|
26
|
+
import type { DeviceStateMirror } from "./device-state-mirror.js";
|
|
27
|
+
import type { FieldClaimsIndex } from "./field-claims-index.js";
|
|
28
|
+
export interface ClaimFieldsInput {
|
|
29
|
+
readonly deviceId: number;
|
|
30
|
+
readonly capName: string;
|
|
31
|
+
readonly owner: string;
|
|
32
|
+
readonly mode: FieldClaimMode;
|
|
33
|
+
readonly fields: readonly string[];
|
|
34
|
+
readonly values: Readonly<Record<string, unknown>>;
|
|
35
|
+
}
|
|
36
|
+
export interface PatchOwnedFieldsInput {
|
|
37
|
+
readonly deviceId: number;
|
|
38
|
+
readonly capName: string;
|
|
39
|
+
readonly owner: string;
|
|
40
|
+
readonly values: Readonly<Record<string, unknown>>;
|
|
41
|
+
}
|
|
42
|
+
export interface ReleaseClaimInput {
|
|
43
|
+
readonly deviceId: number;
|
|
44
|
+
readonly capName: string;
|
|
45
|
+
readonly owner: string;
|
|
46
|
+
}
|
|
47
|
+
export interface ListClaimsInput {
|
|
48
|
+
readonly ownerPrefix?: string;
|
|
49
|
+
}
|
|
50
|
+
export interface DeviceStateClaimMethods {
|
|
51
|
+
claimFields(input: ClaimFieldsInput): Promise<ClaimOutcome>;
|
|
52
|
+
patchOwnedFields(input: PatchOwnedFieldsInput): Promise<ClaimOutcome>;
|
|
53
|
+
releaseClaim(input: ReleaseClaimInput): Promise<ClaimOutcome>;
|
|
54
|
+
listClaims(input: ListClaimsInput): Promise<ClaimsListing>;
|
|
55
|
+
}
|
|
56
|
+
export interface DeviceStateClaimDeps {
|
|
57
|
+
readonly mirror: Pick<DeviceStateMirror, "claim" | "patchOwned" | "release">;
|
|
58
|
+
readonly index: FieldClaimsIndex;
|
|
59
|
+
readonly settings: DeviceManagerSettings;
|
|
60
|
+
readonly logger: IScopedLogger;
|
|
61
|
+
/** Is this a device the ledger knows? `resolvePersistedById(id) !== null`. */
|
|
62
|
+
deviceExists(deviceId: number): Promise<boolean>;
|
|
63
|
+
/** Is a migration involving this device running right now? */
|
|
64
|
+
migrationInFlight(deviceId: number): boolean;
|
|
65
|
+
}
|
|
66
|
+
export declare function createDeviceStateClaimMethods(deps: DeviceStateClaimDeps): DeviceStateClaimMethods;
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import type { AddonContext, ClaimOutcome } from "@camstack/types";
|
|
2
|
+
import type { DeviceManagerSettings } from "./device-meta-store.js";
|
|
3
|
+
import { type RuntimeStateSchemaLookup } from "./device-state-claim-views.js";
|
|
4
|
+
import { type MergedSlice, type OwnedCap, type OwnedCaps } from "./field-ownership.js";
|
|
5
|
+
import { type MirrorWriteHold } from "./mirror-row-writer.js";
|
|
6
|
+
import { type RuntimeStatePolicyLookup } from "./runtime-state-persist-gate.js";
|
|
7
|
+
/**
|
|
8
|
+
* What the seed consults first: the claims index (Task 6). It is written
|
|
9
|
+
* BEFORE the row, so a loaded index is a superset of the rows' claims and a
|
|
10
|
+
* device it does not name has nothing to merge — no row read (D447).
|
|
11
|
+
*/
|
|
12
|
+
export type ClaimsIndexView = {
|
|
13
|
+
readonly state: "loaded";
|
|
14
|
+
hasClaims(deviceId: number): boolean;
|
|
15
|
+
} | {
|
|
16
|
+
readonly state: "not-loaded";
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* How `seedMirror` treats what memory already holds. `fill` (boot, first
|
|
20
|
+
* write) only adds caps memory lacks — memory is never behind the row.
|
|
21
|
+
* `replace` (the migration reseed) drops the device's slices, claims and views
|
|
22
|
+
* first: the row now describes different hardware, so everything memory held
|
|
23
|
+
* under that number is the wrong device's state.
|
|
24
|
+
*/
|
|
25
|
+
export type SeedMode = "fill" | "replace";
|
|
26
|
+
export declare class DeviceStateMirror {
|
|
27
|
+
private readonly ctx;
|
|
28
|
+
/**
|
|
29
|
+
* Per-cap durability + volatile-field policy. Defaults to the codegen'd
|
|
30
|
+
* projection of every `*.cap.ts` (D4: the cap declares, the kernel reads).
|
|
31
|
+
* Injectable so a spec can exercise the gate without the real cap set.
|
|
32
|
+
*/
|
|
33
|
+
private readonly policyFor;
|
|
34
|
+
/**
|
|
35
|
+
* Hub-side mirror of every device's cap-keyed NATIVE runtime state — what the
|
|
36
|
+
* provider wrote. Key: deviceId. Value: per-cap slice map. Empty by default —
|
|
37
|
+
* slices show up as `setCapSlice` calls trickle in.
|
|
38
|
+
*/
|
|
39
|
+
private readonly stateMirror;
|
|
40
|
+
/** The claims and the merged view of every claimed cap (D663). */
|
|
41
|
+
private readonly claims;
|
|
42
|
+
/**
|
|
43
|
+
* Devices whose CLAIMS are known: the row was read, or a loaded claims index
|
|
44
|
+
* vouched that it names none (D447). This is a READ-path fact — what a
|
|
45
|
+
* status read may answer from. It never licenses a row write (D677).
|
|
46
|
+
*/
|
|
47
|
+
private readonly seeded;
|
|
48
|
+
/**
|
|
49
|
+
* Devices whose row was actually READ into memory in THIS process. Every row
|
|
50
|
+
* write of a device requires it (D677): the write replaces the whole row, so
|
|
51
|
+
* memory must hold what the row held — an index that vouches for the claims
|
|
52
|
+
* says nothing about the native slices beside them.
|
|
53
|
+
*/
|
|
54
|
+
private readonly rowRead;
|
|
55
|
+
/** One row read per device, however many writes arrive during it. */
|
|
56
|
+
private readonly seeding;
|
|
57
|
+
/** Devices whose seed refusal is already logged — once per transition. */
|
|
58
|
+
private readonly seedRefusalLogged;
|
|
59
|
+
/** Every write of a device's row, and what is believed to be on it. */
|
|
60
|
+
private readonly writer;
|
|
61
|
+
/** Edge detector for `running-state` flip events (D933). */
|
|
62
|
+
private readonly runningFlip;
|
|
63
|
+
constructor(ctx: AddonContext, policyFor?: RuntimeStatePolicyLookup, schemaFor?: RuntimeStateSchemaLookup);
|
|
64
|
+
/**
|
|
65
|
+
* Single-cap mirror update — diff against the current mirror,
|
|
66
|
+
* persist the new slice in-memory, emit `DeviceStateChanged` for
|
|
67
|
+
* this cap. No-op on identical writes (both same shape and same
|
|
68
|
+
* values). Called by `setCapSlice` provider.
|
|
69
|
+
*
|
|
70
|
+
* This is the NATIVE path, unchanged for every writer. Under a claim the
|
|
71
|
+
* native slice is stored as the shadow and what is emitted is the merge.
|
|
72
|
+
*
|
|
73
|
+
* @returns whether the mirror actually changed. The caller uses this to
|
|
74
|
+
* decide whether the (synchronous, disk-blocking) runtime-state write is
|
|
75
|
+
* worth scheduling — see `scheduleRuntimeStateDiskWrite`. Returning void
|
|
76
|
+
* here and scheduling unconditionally is what made an unchanged poll cost
|
|
77
|
+
* a SQLite commit.
|
|
78
|
+
*/
|
|
79
|
+
applySingleCapUpdate(deviceId: number, capName: string, slice: Record<string, unknown>): boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Claim `cap.fields` of `capName` on `deviceId` for `cap.owner`. Written
|
|
82
|
+
* through: resolves after the row write. A re-claim by the same owner
|
|
83
|
+
* replaces `fields`; values of fields no longer claimed are dropped and the
|
|
84
|
+
* native shows for them (ruling S1b). An empty `fields` is what the composer
|
|
85
|
+
* never sends — it releases — and is refused.
|
|
86
|
+
*/
|
|
87
|
+
claim(deviceId: number, capName: string, cap: OwnedCap, settings: DeviceManagerSettings): Promise<ClaimOutcome>;
|
|
88
|
+
/** Is this exact claim what the row carries, per `lastPersisted`? */
|
|
89
|
+
private isClaimPersisted;
|
|
90
|
+
/**
|
|
91
|
+
* Write owned values. Partial patches MERGE into `values` (ruling S5); a key
|
|
92
|
+
* outside `fields` is refused. Debounced like a native slice.
|
|
93
|
+
*/
|
|
94
|
+
patchOwned(deviceId: number, capName: string, owner: string, values: Readonly<Record<string, unknown>>, settings: DeviceManagerSettings): Promise<ClaimOutcome>;
|
|
95
|
+
/**
|
|
96
|
+
* Remove the claim. A `replace` hands the cap back: the native slice is
|
|
97
|
+
* emitted exactly as last written. An `add` had no native — the cap leaves
|
|
98
|
+
* the mirror and nothing is emitted (consumer mirrors keep the last value
|
|
99
|
+
* until they re-read; recorded for Task 15). Written through.
|
|
100
|
+
*/
|
|
101
|
+
release(deviceId: number, capName: string, owner: string, settings: DeviceManagerSettings): Promise<ClaimOutcome>;
|
|
102
|
+
/** The claims on a device; empty for every device without one. */
|
|
103
|
+
ownedCaps(deviceId: number): OwnedCaps;
|
|
104
|
+
/** The NATIVE shadow of one cap — for the owner-side mechanism only (D224). */
|
|
105
|
+
nativeSlice(deviceId: number, cap: string): Record<string, unknown> | null;
|
|
106
|
+
/** What the merge says for a claimed cap; null when the cap is not claimed. */
|
|
107
|
+
effectiveIfClaimed(deviceId: number, cap: string): MergedSlice | null;
|
|
108
|
+
isSeeded(deviceId: number): boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Forget a removed device (D677): its armed row write is cancelled and one
|
|
111
|
+
* in flight awaited BEFORE its memory goes, so nothing writes its row back
|
|
112
|
+
* after `removeDevice` clears it.
|
|
113
|
+
*/
|
|
114
|
+
forgetDevice(deviceId: number): Promise<void>;
|
|
115
|
+
/** The device's row was read in this process — the precondition of every row write (D677). */
|
|
116
|
+
isRowRead(deviceId: number): boolean;
|
|
117
|
+
/**
|
|
118
|
+
* The SYNCHRONOUS half of {@link ensureSeeded}, branch (c): a LOADED claims
|
|
119
|
+
* index that does not name the device vouches for its CLAIMS — seeded, no
|
|
120
|
+
* read. That is all it vouches for: the device is still not `rowRead`, and
|
|
121
|
+
* the writer reads the row before its first write (D677).
|
|
122
|
+
* Refused (false) while a read is in flight, because that read may be
|
|
123
|
+
* landing a claim the index does not know yet; refused when the index cannot
|
|
124
|
+
* vouch. The overlay's `peek` calls this instead of `ensureSeeded`: a sync
|
|
125
|
+
* path must never hold a promise that can reject (D391 — an unhandled
|
|
126
|
+
* rejection is an untagged line on hub-main).
|
|
127
|
+
*/
|
|
128
|
+
seedIfIndexClears(deviceId: number, index: ClaimsIndexView): boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Make sure the device's CLAIMS are known before a status read is answered
|
|
131
|
+
* or a native slice applied (D49). Index first, single-flight (ruling S6):
|
|
132
|
+
* (a) already seeded → nothing;
|
|
133
|
+
* (b) a seed in flight → await it;
|
|
134
|
+
* (c) a LOADED index that does not name the device → seeded, no read;
|
|
135
|
+
* (d) otherwise read the row once and seed it.
|
|
136
|
+
* A read that throws propagates and is logged once per device transition
|
|
137
|
+
* (D391).
|
|
138
|
+
*
|
|
139
|
+
* Also the native-write RPC's gate: a slice may be APPLIED once its claims
|
|
140
|
+
* are known. Never the ROW write's: branch (c) knows the claims and nothing
|
|
141
|
+
* about the native slices on the row; a writer that trusted it replaced a
|
|
142
|
+
* row it never read with the one slice it held, and every restored cap
|
|
143
|
+
* nobody re-wrote soon after boot was erased (D677, superseding S6(c) for
|
|
144
|
+
* writes). The writer calls {@link ensureRowRead}.
|
|
145
|
+
*/
|
|
146
|
+
ensureSeeded(deviceId: number, settings: DeviceManagerSettings, index: ClaimsIndexView): Promise<void>;
|
|
147
|
+
/**
|
|
148
|
+
* A row write replaces the whole row: memory must hold what the row held
|
|
149
|
+
* (D677). Reads the row once, single-flight, and fills memory's gaps from it
|
|
150
|
+
* (`seedMirror('fill')`: a slice memory already holds is newer and wins).
|
|
151
|
+
* A read that throws propagates — nothing is written — and is logged once
|
|
152
|
+
* per device transition (D49, D391).
|
|
153
|
+
*/
|
|
154
|
+
ensureRowRead(deviceId: number, settings: DeviceManagerSettings): Promise<void>;
|
|
155
|
+
/** An unreadable row is a NAMED refusal (D49): the answer is unknown — a
|
|
156
|
+
* throw could be read as "gone", `not-claimed` as "never was". Logged by `readRowOnce`. */
|
|
157
|
+
private readRowOrRefuse;
|
|
158
|
+
private readRowOnce;
|
|
159
|
+
private nativeOf;
|
|
160
|
+
/**
|
|
161
|
+
* Write the row now — a claim is atomic with the row — and refresh the
|
|
162
|
+
* baseline. Queued behind any write in flight for the device (one row write
|
|
163
|
+
* at a time, N-4), and the blob is taken when the write RUNS, so it carries
|
|
164
|
+
* whatever memory holds by then. A failed write is rolled back in memory IF
|
|
165
|
+
* what this op put there is still there (the two never disagree); when a
|
|
166
|
+
* newer same-owner state landed in the window it stands, and the debounced
|
|
167
|
+
* writer converges the row to it. Either way the failure is logged hub-side
|
|
168
|
+
* (D391) and rethrown; a repeat of the same claim is then a real write, never
|
|
169
|
+
* `changed: false`, and consumers are handed the truth that stands.
|
|
170
|
+
*/
|
|
171
|
+
private writeThrough;
|
|
172
|
+
/** After a rollback, re-emit what is true now: the restored claim's merge, or the native. */
|
|
173
|
+
private reemitAfterRollback;
|
|
174
|
+
/** Arm the debounced writer for a change to `changedCap` — see `MirrorRowWriter.schedule`. */
|
|
175
|
+
scheduleRuntimeStateDiskWrite(deviceId: number, settings: DeviceManagerSettings, changedCap: string): void;
|
|
176
|
+
/** Hold the writer off these rows for a migration — see `MirrorRowWriter.holdDiskWrites`. */
|
|
177
|
+
holdDiskWrites(deviceIds: readonly number[], settings: DeviceManagerSettings): Promise<MirrorWriteHold>;
|
|
178
|
+
/** Flush every pending debounced disk write (graceful shutdown). */
|
|
179
|
+
flushPendingWrites(settings: DeviceManagerSettings | undefined): Promise<void>;
|
|
180
|
+
/** The device's row as it may reach disk: NATIVE slices plus `$owned`, restricted by durability. */
|
|
181
|
+
private persistableForDevice;
|
|
182
|
+
/**
|
|
183
|
+
* One-shot mirror seed used by `loadRuntimeState` at boot so the hub knows
|
|
184
|
+
* every persisted slice before the first `setCapSlice`. No events emitted —
|
|
185
|
+
* population, not a transition. `fill` (default) fills GAPS and never
|
|
186
|
+
* overwrites memory (ruling S6: a slice in memory is at least as new as the
|
|
187
|
+
* row, a claim in memory was written through); `replace` (the migration
|
|
188
|
+
* reseed) drops the device's memory first — the row now belongs to different
|
|
189
|
+
* hardware. Malformed `$owned` entries are dropped by name and logged once.
|
|
190
|
+
* Callers pass the blob through `withResetSessionProbe` first.
|
|
191
|
+
*/
|
|
192
|
+
seedMirror(deviceId: number, blob: Record<string, unknown>, mode?: SeedMode): void;
|
|
193
|
+
/**
|
|
194
|
+
* The hub mirror's `feature-probe.lastProbedAt` is a PER-SESSION liveness
|
|
195
|
+
* signal — it means "this worker process completed a probe THIS session".
|
|
196
|
+
* Persisted runtime state carries the PRE-RESTART timestamp, which is stale
|
|
197
|
+
* after a hub or worker restart: the device has not re-probed yet. Seeding it
|
|
198
|
+
* verbatim makes `resolveDeviceProbed` report `probed:true` during the
|
|
199
|
+
* restart→reprobe window, which defeats the export carry-forward gate
|
|
200
|
+
* (`resolveExportFingerprint`, gated on `device.probed`) and posts a spurious
|
|
201
|
+
* partial `AddOrUpdateReport` to Alexa/HAP before the real probe lands.
|
|
202
|
+
*
|
|
203
|
+
* Reset `lastProbedAt` to 0 for the MIRROR seed only — `probed:false` carries
|
|
204
|
+
* the last-advertised fingerprint forward until the worker republishes a
|
|
205
|
+
* fresh probe (its post-probe `setCapSlice` raises `lastProbedAt` again, which
|
|
206
|
+
* also fires `DeviceReady`). The worker's returned `initialRuntimeState` blob
|
|
207
|
+
* is untouched, and every non-probe slice (e.g. `device-status`/online) is
|
|
208
|
+
* preserved.
|
|
209
|
+
*/
|
|
210
|
+
withResetSessionProbe(blob: Record<string, unknown>): Record<string, unknown>;
|
|
211
|
+
/**
|
|
212
|
+
* Resolve a device's REAL `online` flag for the persisted/forked-worker
|
|
213
|
+
* list branch. Forked workers own the live `IDevice` in their own process,
|
|
214
|
+
* so the hub registry can't read `device.online` directly. The owning
|
|
215
|
+
* driver instead publishes its liveness through the auto-registered
|
|
216
|
+
* `device-status` runtime-state slice (`markOnline` → `setCapState`), which
|
|
217
|
+
* the canonical `deviceState.setCapSlice` write entrypoint mirrors into the
|
|
218
|
+
* hub-side `stateMirror`. We read that mirrored slice here so the list
|
|
219
|
+
* payload reflects the device's actual reachability instead of a constant.
|
|
220
|
+
*
|
|
221
|
+
* Fallback (`fallbackOnline`) preserves the legacy behaviour when no slice
|
|
222
|
+
* has been published yet: a persisted device with a live registry is
|
|
223
|
+
* assumed online (it was successfully registered by its owning process),
|
|
224
|
+
* and the null-registry "offline view" keeps reporting offline. We never
|
|
225
|
+
* regress a device to offline merely because its mirror is empty.
|
|
226
|
+
*/
|
|
227
|
+
resolveDeviceOnline(deviceId: number, fallbackOnline: boolean): boolean;
|
|
228
|
+
/**
|
|
229
|
+
* Derive the `probed` flag for an offline-view (forked-worker, not
|
|
230
|
+
* live in the hub registry) device projection. Reads the mirrored
|
|
231
|
+
* `feature-probe` slice the owning worker publishes. Mirrors the
|
|
232
|
+
* `toDeviceInfo` rule: no mirrored slice → ready (`true`, no probe seen);
|
|
233
|
+
* slice present → ready iff `lastProbedAt` has advanced past 0. The
|
|
234
|
+
* mirror is populated when the worker's first `setCapSlice` RPC arrives
|
|
235
|
+
* (BaseDevice seeds `feature-probe` `lastProbedAt:0` at construction, but
|
|
236
|
+
* cross-process delivery is async); until then the no-entry path returns
|
|
237
|
+
* `true` — a brief transient window, same as `resolveDeviceOnline`.
|
|
238
|
+
*/
|
|
239
|
+
resolveDeviceProbed(deviceId: number): boolean;
|
|
240
|
+
/** The EFFECTIVE slices of a device: native for an unclaimed cap, the merge
|
|
241
|
+
* for a claimed one (a held cap is not reported). */
|
|
242
|
+
snapshotForDevice(deviceId: number): Record<string, Record<string, unknown>>;
|
|
243
|
+
/** One cap's EFFECTIVE slice, cloned. Null when the device has never written
|
|
244
|
+
* it — callers read that as "the cap has no state", never as an empty slice —
|
|
245
|
+
* and null while a claim holds it. */
|
|
246
|
+
capSlice(deviceId: number, cap: string): Record<string, unknown> | null;
|
|
247
|
+
/** The device's NATIVE slices — what the row stores under the cap names. */
|
|
248
|
+
private nativeSnapshotForDevice;
|
|
249
|
+
/** Whole-system mirror dump. Backs `deviceState.getAllSnapshots` — one
|
|
250
|
+
* round-trip for a warm boot instead of N per-device calls. */
|
|
251
|
+
allSnapshots(): Record<string, Record<string, Record<string, unknown>>>;
|
|
252
|
+
/** Remember a restored running bit so the first public merge does not emit a flip. */
|
|
253
|
+
private seedRunningFlip;
|
|
254
|
+
/**
|
|
255
|
+
* The PUBLIC event: exactly `{ deviceId, capName, slice }` for every device,
|
|
256
|
+
* claimed or not. The native shadow never rides here (D224) — see
|
|
257
|
+
* `emitNativeShadow`.
|
|
258
|
+
*/
|
|
259
|
+
private emitStateChanged;
|
|
260
|
+
/**
|
|
261
|
+
* The owner-only event (D224, D663): the native slice as the provider wrote
|
|
262
|
+
* it, for the composer's native self-reads. Its category is refused by the
|
|
263
|
+
* public event routers (`isOwnerOnlyEventCategory`), so no UI or share-scope
|
|
264
|
+
* subscriber ever sees a second truth beside the merged slice.
|
|
265
|
+
*/
|
|
266
|
+
private emitNativeShadow;
|
|
267
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ProviderContext } from "./device-provider-context.js";
|
|
2
|
+
/**
|
|
3
|
+
* Sync ownership lookup backing persistence fallbacks (e.g. remove()
|
|
4
|
+
* when the owning worker is offline). Ownership is keyed by numeric
|
|
5
|
+
* deviceId → owning addonId as recorded in the persisted meta. NOT
|
|
6
|
+
* a native-cap lookup: an addon can own a device without registering
|
|
7
|
+
* every possible cap natively (e.g. RtspCamera without snapshotUrl
|
|
8
|
+
* doesn't register the snapshot cap). Use `resolveNativeCapOwnerSync`
|
|
9
|
+
* for cap-resolution paths.
|
|
10
|
+
*/
|
|
11
|
+
export declare function resolveDeviceOwnerSync(pctx: ProviderContext, deviceId: number): string | null;
|
|
12
|
+
/**
|
|
13
|
+
* Sync lookup for the addon that registered a native provider for
|
|
14
|
+
* `(capName, deviceId)`. Backs `CapabilityRegistry`'s native fallback
|
|
15
|
+
* so the hub only synthesizes a cross-process proxy when the cap is
|
|
16
|
+
* actually published — never on speculative device ownership.
|
|
17
|
+
*
|
|
18
|
+
* Resolution order:
|
|
19
|
+
* 1. Hub-local `capabilityRegistry` (in-process natives — fastest path).
|
|
20
|
+
* 2. Push-fed `remoteNativeCaps` cache (`DeviceBindingsChanged` events
|
|
21
|
+
* from forked workers — accurate in steady state).
|
|
22
|
+
* 3. Handshake-fed `HubNodeRegistry` via `listClusterNativeCaps()`
|
|
23
|
+
* (D3 re-handshake after device restore — covers the Moleculer
|
|
24
|
+
* transport window where push events were lost). This is the
|
|
25
|
+
* reliable replacement for the deleted `syncWorkerNativeCaps` pull.
|
|
26
|
+
*/
|
|
27
|
+
export declare function resolveNativeCapOwnerSync(pctx: ProviderContext, capName: string, deviceId: number): {
|
|
28
|
+
addonId: string;
|
|
29
|
+
nodeId: string;
|
|
30
|
+
} | null;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The tombstones of deleted devices (D865) — `tombstones` record kind (phase 4).
|
|
3
|
+
*/
|
|
4
|
+
import { type DeviceTombstone, type IScopedLogger, type RecordKindHandle, type RecordsAccess } from "@camstack/types";
|
|
5
|
+
import { DeviceTombstoneBodySchema } from "./record-kinds.js";
|
|
6
|
+
import type { z } from "zod";
|
|
7
|
+
export declare const DEVICE_TOMBSTONES_COLLECTION = "device-manager:tombstones";
|
|
8
|
+
type TombstoneBody = z.infer<typeof DeviceTombstoneBodySchema>;
|
|
9
|
+
export interface DeviceTombstoneStoreOptions {
|
|
10
|
+
readonly kind: RecordKindHandle<TombstoneBody>;
|
|
11
|
+
readonly logger: IScopedLogger;
|
|
12
|
+
readonly now?: () => number;
|
|
13
|
+
readonly retentionMs?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare class DeviceTombstoneStore {
|
|
16
|
+
private readonly kind;
|
|
17
|
+
private readonly logger;
|
|
18
|
+
private readonly now;
|
|
19
|
+
private readonly retentionMs;
|
|
20
|
+
constructor(opts: DeviceTombstoneStoreOptions);
|
|
21
|
+
static of(records: Pick<RecordsAccess, "kind">, logger: IScopedLogger): DeviceTombstoneStore;
|
|
22
|
+
/** Record a deletion. Re-recording the same id keeps the EARLIER `deletedAt`. */
|
|
23
|
+
record(tombstone: DeviceTombstone): Promise<void>;
|
|
24
|
+
/** Tombstones with `deletedAt >= sinceMs`, oldest first. Expired ones are pruned first. */
|
|
25
|
+
listSince(sinceMs: number): Promise<readonly DeviceTombstone[]>;
|
|
26
|
+
/** Delete tombstones older than the retention window. Best-effort: a failure is logged. */
|
|
27
|
+
pruneExpired(): Promise<number>;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Network discovery across providers.
|
|
3
|
+
*
|
|
4
|
+
* A provider that declares discovery modes (`getDiscoveryModes`) is not asked
|
|
5
|
+
* to scan: its modes go to the `local-network` engine, ONE `scanNetwork` call
|
|
6
|
+
* serves every such provider, and each provider gets back only the hits its own
|
|
7
|
+
* modes produced, to classify. A provider with a `custom` mode additionally
|
|
8
|
+
* keeps running its own `discoverDevices`, handed the subnets the engine
|
|
9
|
+
* covered. A provider that declares nothing (or predates the method) keeps the
|
|
10
|
+
* old `discoverDevices` path.
|
|
11
|
+
*/
|
|
12
|
+
import type { InferProvider, IScopedLogger, ScanNetworkResult, ScanRequest, deviceProviderCapability } from "@camstack/types";
|
|
13
|
+
type FullDeviceProvider = InferProvider<typeof deviceProviderCapability>;
|
|
14
|
+
/** The three provider methods discovery uses. */
|
|
15
|
+
export type DiscoveryProvider = Pick<FullDeviceProvider, "getDiscoveryModes" | "classifyDiscoveryHits" | "discoverDevices">;
|
|
16
|
+
type DeviceProvider = DiscoveryProvider;
|
|
17
|
+
type Candidates = Awaited<ReturnType<DeviceProvider["discoverDevices"]>>;
|
|
18
|
+
export type DiscoveryCandidateList = Candidates;
|
|
19
|
+
export interface DiscoveryOrchestratorDeps {
|
|
20
|
+
readonly requireProvider: (addonId: string) => Promise<DeviceProvider>;
|
|
21
|
+
readonly scanNetwork: (input: {
|
|
22
|
+
readonly requests: readonly ScanRequest[];
|
|
23
|
+
readonly subnets?: readonly string[];
|
|
24
|
+
}) => Promise<ScanNetworkResult>;
|
|
25
|
+
/**
|
|
26
|
+
* `stableId`s of the candidates that already became an integration. A failed
|
|
27
|
+
* read hides nothing (D49): the list is shown whole.
|
|
28
|
+
*/
|
|
29
|
+
readonly originStableIds: () => Promise<ReadonlySet<string>>;
|
|
30
|
+
readonly logger: IScopedLogger;
|
|
31
|
+
}
|
|
32
|
+
export interface ProviderDiscoveryOutcome {
|
|
33
|
+
readonly addonId: string;
|
|
34
|
+
readonly candidates: Candidates;
|
|
35
|
+
readonly error: string | null;
|
|
36
|
+
}
|
|
37
|
+
export interface DiscoverRequest {
|
|
38
|
+
readonly addonIds: readonly string[];
|
|
39
|
+
/** Per-scan provider params; reach a provider's classify / custom scan as-is. */
|
|
40
|
+
readonly params?: Record<string, unknown>;
|
|
41
|
+
/** Extra CIDRs for this scan only. */
|
|
42
|
+
readonly subnets?: readonly string[];
|
|
43
|
+
}
|
|
44
|
+
export declare function discoverProviders(deps: DiscoveryOrchestratorDeps, request: DiscoverRequest): Promise<readonly ProviderDiscoveryOutcome[]>;
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The claims INDEX (D663): which (device, cap) pairs carry a per-field claim,
|
|
3
|
+
* by whom, in which mode, over which fields — one blob on the device-manager's
|
|
4
|
+
* own settings store, key `field-claims-index`.
|
|
5
|
+
*
|
|
6
|
+
* It is a LISTING PROJECTION, not an authority (rulings D3/D62, preflight
|
|
7
|
+
* §4-4): the merge authority is the device's row (`$owned`, `DeviceStateMirror`).
|
|
8
|
+
* The index answers two questions the row cannot answer cheaply: "which devices
|
|
9
|
+
* have claims at all?" (the boot seed asks it before reading any row — S6,
|
|
10
|
+
* D447) and "list every claim" (`deviceState.listClaims`).
|
|
11
|
+
*
|
|
12
|
+
* Write order keeps it a SUPERSET of the rows' claims: written BEFORE the row on
|
|
13
|
+
* a claim, AFTER the row on a release. A crash between the two leaves at worst
|
|
14
|
+
* an index entry with no row claim — never a row claim the index misses, which
|
|
15
|
+
* would let a claimed device seed without its row and answer the native for a
|
|
16
|
+
* claimed field. Three conditions keep the projection honest: `removeDevice`
|
|
17
|
+
* prunes it (`pruneDevice`); a `releaseClaim` that finds no claim on the row
|
|
18
|
+
* removes the stale entry (the caller does that with `remove`); and D663 names
|
|
19
|
+
* it a projection with this write order.
|
|
20
|
+
*
|
|
21
|
+
* It loads once at init and never on a timer (D3): until a load has SUCCEEDED,
|
|
22
|
+
* `view()` is `not-loaded` (every seed reads its row, as before the index
|
|
23
|
+
* existed) and `list()` says so with the reason — never `[]` (D315). A blob
|
|
24
|
+
* that READS but does not PARSE is the same state: unknown, not empty (D49).
|
|
25
|
+
* Each caller that needs it loaded asks `load` again; a failed read is retried
|
|
26
|
+
* by the next call, not by a clock.
|
|
27
|
+
*/
|
|
28
|
+
import type { ClaimsListing, FieldClaim, IScopedLogger } from "@camstack/types";
|
|
29
|
+
import type { DeviceManagerSettings } from "./device-meta-store.js";
|
|
30
|
+
import type { ClaimsIndexView } from "./device-state-mirror.js";
|
|
31
|
+
import type { WriteLock } from "./write-lock.js";
|
|
32
|
+
/** The addon-store key the index lives under. */
|
|
33
|
+
export declare const FIELD_CLAIMS_INDEX_KEY = "field-claims-index";
|
|
34
|
+
/** One claim's identity in the index: a cap on a device has at most one owner. */
|
|
35
|
+
export interface ClaimKey {
|
|
36
|
+
readonly deviceId: number;
|
|
37
|
+
readonly capName: string;
|
|
38
|
+
}
|
|
39
|
+
/** A read-modify-write step over the loaded entries; null means nothing to write. */
|
|
40
|
+
export type IndexTransform = (current: ReadonlyMap<string, FieldClaim>) => ReadonlyMap<string, FieldClaim> | null;
|
|
41
|
+
export interface FieldClaimsIndexDeps {
|
|
42
|
+
readonly logger: IScopedLogger;
|
|
43
|
+
/**
|
|
44
|
+
* The addon's own settings row-set lock, shared with every other writer of
|
|
45
|
+
* it: `writeAddonStore` is a read-modify-write of the WHOLE key range on the
|
|
46
|
+
* store side, so unordered writers destroy each other's keys.
|
|
47
|
+
*/
|
|
48
|
+
readonly withAddonStoreWriteLock: WriteLock;
|
|
49
|
+
}
|
|
50
|
+
export declare class FieldClaimsIndex {
|
|
51
|
+
private readonly deps;
|
|
52
|
+
/** The loaded entries by key, or null until a load has succeeded. */
|
|
53
|
+
private entries;
|
|
54
|
+
/** Devices with at least one entry — what the seed asks, per native write. */
|
|
55
|
+
private claimedDevices;
|
|
56
|
+
/** Why the last load did not succeed. */
|
|
57
|
+
private notLoadedReason;
|
|
58
|
+
/** One load in flight at a time; concurrent callers join it. */
|
|
59
|
+
private loading;
|
|
60
|
+
constructor(deps: FieldClaimsIndexDeps);
|
|
61
|
+
/**
|
|
62
|
+
* Load the blob. Resolves `true` once the index is loaded (now or already);
|
|
63
|
+
* `false` when the store could not answer — the reason is kept for `list`.
|
|
64
|
+
* Never throws: an index that cannot load is a state, not a failure.
|
|
65
|
+
*/
|
|
66
|
+
load(settings: DeviceManagerSettings): Promise<boolean>;
|
|
67
|
+
/** What the seed consults: loaded with a device predicate, or not loaded. */
|
|
68
|
+
view(): ClaimsIndexView;
|
|
69
|
+
/** Every entry, optionally those whose owner starts with `ownerPrefix`; or why there is no answer. */
|
|
70
|
+
list(ownerPrefix?: string): ClaimsListing;
|
|
71
|
+
/** The entry for a key, when the index is loaded and has one. */
|
|
72
|
+
entry(key: ClaimKey): FieldClaim | undefined;
|
|
73
|
+
/** Add or replace one entry — written before the row it announces. Throws when the index cannot be loaded or written. */
|
|
74
|
+
upsert(claim: FieldClaim, settings: DeviceManagerSettings): Promise<void>;
|
|
75
|
+
/** Remove one entry — written after the row no longer carries the claim. No write when absent. */
|
|
76
|
+
remove(key: ClaimKey, settings: DeviceManagerSettings): Promise<void>;
|
|
77
|
+
/**
|
|
78
|
+
* Drop every entry of a removed device (condition i). Best effort: an index
|
|
79
|
+
* that cannot be loaded or written keeps a stale entry, which costs the next
|
|
80
|
+
* seed of that number one row read and is removed by the next release that
|
|
81
|
+
* answers `not-claimed` — so it is logged, never thrown, and the removal
|
|
82
|
+
* proceeds.
|
|
83
|
+
*/
|
|
84
|
+
pruneDevice(deviceId: number, settings: DeviceManagerSettings): Promise<void>;
|
|
85
|
+
/**
|
|
86
|
+
* Read-modify-write of the whole blob under the addon-store lock, from the
|
|
87
|
+
* LOADED entries: the index is never written from a partial picture. `next`
|
|
88
|
+
* returning null means nothing to write.
|
|
89
|
+
*/
|
|
90
|
+
private mutate;
|
|
91
|
+
private install;
|
|
92
|
+
/** The three-way read (D651): a failed read is a REASON, never an empty index. */
|
|
93
|
+
private readBlob;
|
|
94
|
+
/** Not loaded, by name: the index stays unknown and says why. */
|
|
95
|
+
private refuseMalformed;
|
|
96
|
+
}
|