@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,1012 @@
|
|
|
1
|
+
import { Ms as EventCategory, Qa as BaseAddon, Z as FIRST_LEVEL_MACRO_CLASSES, es as isEvent, js as errMsg, on as bareAddonId, yi as ptzAutotrackCapability } from "../../dist-DcMqHB_N.mjs";
|
|
2
|
+
//#region src/builtins/autotrack/autotrack-config.ts
|
|
3
|
+
var DEFAULT_AUTOTRACK_LOOP_CONFIG = {
|
|
4
|
+
deadZoneFraction: .5,
|
|
5
|
+
settleZoneFraction: .3,
|
|
6
|
+
maxCommandsPerSecond: 1 / 3,
|
|
7
|
+
pulseSettleMs: 400,
|
|
8
|
+
disappearDelayMs: 15e3,
|
|
9
|
+
speed: .4,
|
|
10
|
+
mirrorRefreshMs: 3e4,
|
|
11
|
+
measurementSummaryMs: 3e4
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/builtins/autotrack/autotrack-cameras.ts
|
|
15
|
+
/**
|
|
16
|
+
* What this addon persists per camera, and how the cap's cross-vendor settings
|
|
17
|
+
* become this loop's tuning.
|
|
18
|
+
*
|
|
19
|
+
* ## Why the record lives here and not in the cap's runtime state
|
|
20
|
+
*
|
|
21
|
+
* `ptz-autotrack` declares `durability: 'session'` — its slice MIRRORS a
|
|
22
|
+
* camera's own autotrack config and is re-read on connect. For a native
|
|
23
|
+
* provider that is right: the firmware is the record. For the emulated
|
|
24
|
+
* implementation there is no firmware to re-read, so the slice would come back
|
|
25
|
+
* empty on every restart and a camera the operator armed would come up
|
|
26
|
+
* disarmed, silently. The record is therefore ours, in the addon's own
|
|
27
|
+
* settings, and the cap's `getStatus` reads it.
|
|
28
|
+
*
|
|
29
|
+
* ## One switch, not two (D62, D520)
|
|
30
|
+
*
|
|
31
|
+
* Binding this wrapper to a camera chooses the IMPLEMENTATION.
|
|
32
|
+
* `setEnabled` is the switch for the function, and
|
|
33
|
+
* it is the cap's own switch: a camera with firmware autotrack uses its native
|
|
34
|
+
* provider for exactly the same method, so the operator never sees two
|
|
35
|
+
* controls that can disagree.
|
|
36
|
+
*/
|
|
37
|
+
/**
|
|
38
|
+
* The defaults a camera starts from.
|
|
39
|
+
*
|
|
40
|
+
* `disappearDelaySeconds` matches the loop's own default so the two cannot
|
|
41
|
+
* disagree on the day nobody has opened the form. `stopDelaySeconds` is
|
|
42
|
+
* persisted and NOT honoured — see {@link loopConfigFor}.
|
|
43
|
+
*/
|
|
44
|
+
var DEFAULT_CAMERA_RECORD = {
|
|
45
|
+
enabled: false,
|
|
46
|
+
settings: {
|
|
47
|
+
targetType: "",
|
|
48
|
+
stopDelaySeconds: 30,
|
|
49
|
+
disappearDelaySeconds: DEFAULT_AUTOTRACK_LOOP_CONFIG.disappearDelayMs / 1e3
|
|
50
|
+
},
|
|
51
|
+
zoom: { targetSubjectFraction: null }
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* What this implementation can follow, as the cap's target options.
|
|
55
|
+
*
|
|
56
|
+
* A vendor list would be a lie here: the emulated loop follows what the
|
|
57
|
+
* DETECTOR emits, and the detector's first-level macro classes are these
|
|
58
|
+
* three. Reolink's `people` and Hikvision's `human` are vendor words for the
|
|
59
|
+
* same thing and are normalised in {@link targetClassFor} rather than offered.
|
|
60
|
+
*/
|
|
61
|
+
var EMULATED_TARGET_OPTIONS = FIRST_LEVEL_MACRO_CLASSES.map((macro) => ({
|
|
62
|
+
value: macro,
|
|
63
|
+
label: macro === "person" ? "People" : macro === "vehicle" ? "Vehicles" : "Animals"
|
|
64
|
+
}));
|
|
65
|
+
function isRecordObject(value) {
|
|
66
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
67
|
+
}
|
|
68
|
+
function parseSettings(raw) {
|
|
69
|
+
if (!isRecordObject(raw)) return DEFAULT_CAMERA_RECORD.settings;
|
|
70
|
+
const targetType = raw["targetType"];
|
|
71
|
+
const stopDelaySeconds = raw["stopDelaySeconds"];
|
|
72
|
+
const disappearDelaySeconds = raw["disappearDelaySeconds"];
|
|
73
|
+
return {
|
|
74
|
+
targetType: typeof targetType === "string" ? targetType : DEFAULT_CAMERA_RECORD.settings.targetType,
|
|
75
|
+
stopDelaySeconds: typeof stopDelaySeconds === "number" && Number.isFinite(stopDelaySeconds) ? stopDelaySeconds : DEFAULT_CAMERA_RECORD.settings.stopDelaySeconds,
|
|
76
|
+
disappearDelaySeconds: typeof disappearDelaySeconds === "number" && Number.isFinite(disappearDelaySeconds) ? disappearDelaySeconds : DEFAULT_CAMERA_RECORD.settings.disappearDelaySeconds
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Read the persisted blob.
|
|
81
|
+
*
|
|
82
|
+
* A malformed ENTRY falls back to the defaults and keeps its `enabled` flag —
|
|
83
|
+
* it is never dropped. Dropping it would disarm a function the operator armed,
|
|
84
|
+
* which is the one direction this must not fail in; a camera that is not in
|
|
85
|
+
* the blob at all is simply a camera nobody has switched on.
|
|
86
|
+
*/
|
|
87
|
+
/**
|
|
88
|
+
* Read the hidden zoom setting.
|
|
89
|
+
*
|
|
90
|
+
* Out-of-range is CLAMPED into the unit interval rather than carried: a control
|
|
91
|
+
* loop that eventually reads this must never be handed a 4, and a silently
|
|
92
|
+
* dropped value would look like "the operator never set it".
|
|
93
|
+
*/
|
|
94
|
+
function parseZoom(raw) {
|
|
95
|
+
if (!isRecordObject(raw)) return { targetSubjectFraction: null };
|
|
96
|
+
const value = raw["targetSubjectFraction"];
|
|
97
|
+
if (typeof value !== "number" || !Number.isFinite(value) || value <= 0) return { targetSubjectFraction: null };
|
|
98
|
+
return { targetSubjectFraction: Math.min(1, value) };
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Why this camera's zoom request is not being honoured, or `null` when it asked
|
|
102
|
+
* for nothing.
|
|
103
|
+
*
|
|
104
|
+
* A setting that is read and ignored in silence is indistinguishable from a
|
|
105
|
+
* broken one, and this one WILL be read by a loop that cannot act on it yet.
|
|
106
|
+
* So asking for it produces a sentence naming the number and what is missing.
|
|
107
|
+
*/
|
|
108
|
+
function zoomRefusalFor(record) {
|
|
109
|
+
const target = record.zoom.targetSubjectFraction;
|
|
110
|
+
if (target === null) return null;
|
|
111
|
+
return `autotrack zoom is configured (target subject fraction ${String(target)}) but NOT IMPLEMENTED: the loop drives pan and tilt only. Subject-size control needs a third axis with its own dead band, a rule that it may act only while pan/tilt are settled, and two calibration measurements first — a stale error costs more the further the optics are zoomed in.`;
|
|
112
|
+
}
|
|
113
|
+
function parseCameraRecords(raw) {
|
|
114
|
+
if (!isRecordObject(raw)) return {};
|
|
115
|
+
const out = {};
|
|
116
|
+
for (const [key, value] of Object.entries(raw)) {
|
|
117
|
+
const deviceId = Number(key);
|
|
118
|
+
if (!Number.isInteger(deviceId) || deviceId <= 0) continue;
|
|
119
|
+
if (!isRecordObject(value)) continue;
|
|
120
|
+
out[deviceId] = {
|
|
121
|
+
enabled: value["enabled"] === true,
|
|
122
|
+
settings: parseSettings(value["settings"]),
|
|
123
|
+
zoom: parseZoom(value["zoom"])
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
return out;
|
|
127
|
+
}
|
|
128
|
+
/** Immutable per-camera patch — a NEW map, the previous one untouched. */
|
|
129
|
+
function withCameraPatch(records, deviceId, patch) {
|
|
130
|
+
const current = records[deviceId] ?? DEFAULT_CAMERA_RECORD;
|
|
131
|
+
return {
|
|
132
|
+
...records,
|
|
133
|
+
[deviceId]: {
|
|
134
|
+
enabled: patch.enabled ?? current.enabled,
|
|
135
|
+
settings: {
|
|
136
|
+
...current.settings,
|
|
137
|
+
...patch.settings
|
|
138
|
+
},
|
|
139
|
+
zoom: {
|
|
140
|
+
...current.zoom,
|
|
141
|
+
...patch.zoom
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* The detection macro class this camera follows.
|
|
148
|
+
*
|
|
149
|
+
* `''` is the cap's "camera default" and means PERSON here — the class an
|
|
150
|
+
* autotrack is asked for in almost every case, and the one the measurement
|
|
151
|
+
* slice used. A vendor string (`people`, `human`) normalises to the macro it
|
|
152
|
+
* names; anything else falls back to person rather than following nothing,
|
|
153
|
+
* because a loop that silently follows nothing is indistinguishable from one
|
|
154
|
+
* that is broken.
|
|
155
|
+
*/
|
|
156
|
+
function targetClassFor(settings) {
|
|
157
|
+
const raw = settings.targetType.trim().toLowerCase();
|
|
158
|
+
if (raw === "") return "person";
|
|
159
|
+
for (const macro of FIRST_LEVEL_MACRO_CLASSES) if (raw === macro) return macro;
|
|
160
|
+
if (raw === "people" || raw === "human" || raw === "humans") return "person";
|
|
161
|
+
if (raw === "vehicles" || raw === "car" || raw === "motor_vehicle") return "vehicle";
|
|
162
|
+
if (raw === "pet" || raw === "pets" || raw === "dog" || raw === "cat") return "animal";
|
|
163
|
+
return "person";
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* The loop's config for this camera.
|
|
167
|
+
*
|
|
168
|
+
* Only ONE of the cap's three settings reaches the loop:
|
|
169
|
+
*
|
|
170
|
+
* - `disappearDelaySeconds` → {@link AutotrackLoopConfig.disappearDelayMs}. Same
|
|
171
|
+
* meaning on both sides: how long a target that stopped appearing is held
|
|
172
|
+
* before it is released and the head goes home.
|
|
173
|
+
* - `targetType` → the detection class, through {@link targetClassFor}.
|
|
174
|
+
* - `stopDelaySeconds` is persisted and NOT honoured. It means "keep tracking a
|
|
175
|
+
* STATIONARY target for this long before stopping", and a pulse-based loop
|
|
176
|
+
* already does nothing while the subject is inside the dead zone — there is
|
|
177
|
+
* no motion to stop. Storing it and ignoring it is deliberate: the cap is
|
|
178
|
+
* cross-vendor, a native provider honours it, and dropping it from the
|
|
179
|
+
* payload would make a camera that switches from native to emulated lose a
|
|
180
|
+
* setting it had. It is reported back by `getStatus` verbatim, never as a
|
|
181
|
+
* number this loop acted on.
|
|
182
|
+
*
|
|
183
|
+
* Everything else in the loop config is a TUNING CONSTANT that D520 kept out of
|
|
184
|
+
* the operator surface on purpose (dead zone, settle zone, command ceiling,
|
|
185
|
+
* pulse dead time). They stay constants.
|
|
186
|
+
*/
|
|
187
|
+
function loopConfigFor(settings) {
|
|
188
|
+
return {
|
|
189
|
+
...DEFAULT_AUTOTRACK_LOOP_CONFIG,
|
|
190
|
+
disappearDelayMs: Math.max(0, Math.round(settings.disappearDelaySeconds * 1e3))
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
/** The cap's status for one camera. */
|
|
194
|
+
function statusFor(record, lastChangedAt) {
|
|
195
|
+
return {
|
|
196
|
+
enabled: record.enabled,
|
|
197
|
+
lastChangedAt,
|
|
198
|
+
currentSettings: record.settings,
|
|
199
|
+
supportedTargetTypes: EMULATED_TARGET_OPTIONS
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
//#endregion
|
|
203
|
+
//#region src/builtins/autotrack/autotrack-decision.ts
|
|
204
|
+
var INITIAL_AUTOTRACK_LOOP_STATE = {
|
|
205
|
+
correctingX: false,
|
|
206
|
+
correctingY: false,
|
|
207
|
+
lastCommandAtMs: null,
|
|
208
|
+
homeIssued: false
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* One axis of the hysteresis.
|
|
212
|
+
*
|
|
213
|
+
* Outside the dead zone a correction STARTS; once started it continues until
|
|
214
|
+
* the subject is inside the tighter settle zone, and then it stops — short of
|
|
215
|
+
* the centre, on purpose. Aiming at the centre with an estimated gain
|
|
216
|
+
* overshoots, and an overshoot reverses the sign on the next frame.
|
|
217
|
+
*/
|
|
218
|
+
function stepAxis(error, correcting, config) {
|
|
219
|
+
const deadHalf = config.deadZoneFraction / 2;
|
|
220
|
+
const settleHalf = config.settleZoneFraction / 2;
|
|
221
|
+
const magnitude = Math.abs(error);
|
|
222
|
+
if (!(correcting ? magnitude > settleHalf : magnitude > deadHalf)) return {
|
|
223
|
+
step: 0,
|
|
224
|
+
correcting: false
|
|
225
|
+
};
|
|
226
|
+
return {
|
|
227
|
+
step: error > 0 ? 1 : -1,
|
|
228
|
+
correcting: true
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
function decideAutotrack(state, input) {
|
|
232
|
+
const hold = (reason, next) => ({
|
|
233
|
+
state: next,
|
|
234
|
+
decision: {
|
|
235
|
+
action: "hold",
|
|
236
|
+
reason
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
if (!input.armed) return hold("disarmed", state);
|
|
240
|
+
if (input.target === null) {
|
|
241
|
+
const idle = {
|
|
242
|
+
...state,
|
|
243
|
+
correctingX: false,
|
|
244
|
+
correctingY: false
|
|
245
|
+
};
|
|
246
|
+
if (input.targetLastSeenAtMs === null) return hold("no-target", idle);
|
|
247
|
+
if (input.nowMs - input.targetLastSeenAtMs < input.config.disappearDelayMs) return hold("target-absent", idle);
|
|
248
|
+
if (state.homeIssued) return hold("home-already-issued", idle);
|
|
249
|
+
return {
|
|
250
|
+
state: {
|
|
251
|
+
...idle,
|
|
252
|
+
homeIssued: true,
|
|
253
|
+
lastCommandAtMs: input.nowMs
|
|
254
|
+
},
|
|
255
|
+
decision: {
|
|
256
|
+
action: "home",
|
|
257
|
+
reason: "target-gone"
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
const present = {
|
|
262
|
+
...state,
|
|
263
|
+
homeIssued: false
|
|
264
|
+
};
|
|
265
|
+
if (input.target.error === null) return hold("frame-geometry-unknown", present);
|
|
266
|
+
const x = stepAxis(input.target.error.x, state.correctingX, input.config);
|
|
267
|
+
const y = stepAxis(input.target.error.y, state.correctingY, input.config);
|
|
268
|
+
const tiltStep = y.step === 0 ? 0 : y.step > 0 ? -1 : 1;
|
|
269
|
+
const aimed = {
|
|
270
|
+
...present,
|
|
271
|
+
correctingX: x.correcting,
|
|
272
|
+
correctingY: y.correcting
|
|
273
|
+
};
|
|
274
|
+
if (x.step === 0 && y.step === 0) return hold(state.correctingX || state.correctingY ? "settled" : "inside-dead-zone", aimed);
|
|
275
|
+
if (input.nativeAutotrack === "enabled") return hold("native-autotrack-enabled", aimed);
|
|
276
|
+
if (input.nativeAutotrack === "unknown") return hold("native-autotrack-unknown", aimed);
|
|
277
|
+
const impulseMs = input.moveImpulseMs;
|
|
278
|
+
if (impulseMs === null) return hold("impulse-duration-unknown", aimed);
|
|
279
|
+
const lastCommandAtMs = state.lastCommandAtMs;
|
|
280
|
+
if (lastCommandAtMs !== null) {
|
|
281
|
+
const sinceMs = input.nowMs - lastCommandAtMs;
|
|
282
|
+
if (sinceMs < impulseMs + input.config.pulseSettleMs) return hold("pulse-dead-time", aimed);
|
|
283
|
+
if (sinceMs < 1e3 / input.config.maxCommandsPerSecond) return hold("rate-limited", aimed);
|
|
284
|
+
}
|
|
285
|
+
return {
|
|
286
|
+
state: {
|
|
287
|
+
...aimed,
|
|
288
|
+
lastCommandAtMs: input.nowMs
|
|
289
|
+
},
|
|
290
|
+
decision: {
|
|
291
|
+
action: "pulse",
|
|
292
|
+
pan: x.step,
|
|
293
|
+
tilt: tiltStep,
|
|
294
|
+
speed: input.config.speed
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
//#endregion
|
|
299
|
+
//#region src/builtins/autotrack/frame-error.ts
|
|
300
|
+
function isPositiveFinite(value) {
|
|
301
|
+
return Number.isFinite(value) && value > 0;
|
|
302
|
+
}
|
|
303
|
+
function isFiniteBox(box) {
|
|
304
|
+
return Number.isFinite(box.x) && Number.isFinite(box.y) && Number.isFinite(box.width) && Number.isFinite(box.height);
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Error of one subject box against the frame centre.
|
|
308
|
+
*
|
|
309
|
+
* `null` when the frame geometry or the box is unreadable — never a centred
|
|
310
|
+
* zero (D393).
|
|
311
|
+
*/
|
|
312
|
+
function computeNormalizedError(box, geometry) {
|
|
313
|
+
if (!isPositiveFinite(geometry.frameWidth) || !isPositiveFinite(geometry.frameHeight)) return null;
|
|
314
|
+
if (!isFiniteBox(box)) return null;
|
|
315
|
+
const centreX = box.x + box.width / 2;
|
|
316
|
+
const centreY = box.y + box.height / 2;
|
|
317
|
+
return {
|
|
318
|
+
x: centreX / geometry.frameWidth - .5,
|
|
319
|
+
y: centreY / geometry.frameHeight - .5
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
//#endregion
|
|
323
|
+
//#region src/builtins/autotrack/frame-measurements.ts
|
|
324
|
+
var LATENCY_BUCKET_BOUNDS_MS = [
|
|
325
|
+
50,
|
|
326
|
+
100,
|
|
327
|
+
200,
|
|
328
|
+
400,
|
|
329
|
+
800,
|
|
330
|
+
1600,
|
|
331
|
+
3200
|
|
332
|
+
];
|
|
333
|
+
var INITIAL_LATENCY_TALLY = {
|
|
334
|
+
frames: 0,
|
|
335
|
+
sumMs: 0,
|
|
336
|
+
minMs: null,
|
|
337
|
+
maxMs: null,
|
|
338
|
+
bucketBoundsMs: LATENCY_BUCKET_BOUNDS_MS,
|
|
339
|
+
bucketCounts: LATENCY_BUCKET_BOUNDS_MS.map(() => 0).concat(0),
|
|
340
|
+
negativeAgeFrames: 0
|
|
341
|
+
};
|
|
342
|
+
function recordLatency(tally, latencyMs) {
|
|
343
|
+
if (!Number.isFinite(latencyMs)) return tally;
|
|
344
|
+
let bucket = tally.bucketBoundsMs.findIndex((bound) => latencyMs <= bound);
|
|
345
|
+
if (bucket < 0) bucket = tally.bucketBoundsMs.length;
|
|
346
|
+
const bucketCounts = tally.bucketCounts.map((count, i) => i === bucket ? count + 1 : count);
|
|
347
|
+
return {
|
|
348
|
+
frames: tally.frames + 1,
|
|
349
|
+
sumMs: tally.sumMs + latencyMs,
|
|
350
|
+
minMs: tally.minMs === null ? latencyMs : Math.min(tally.minMs, latencyMs),
|
|
351
|
+
maxMs: tally.maxMs === null ? latencyMs : Math.max(tally.maxMs, latencyMs),
|
|
352
|
+
bucketBoundsMs: tally.bucketBoundsMs,
|
|
353
|
+
bucketCounts,
|
|
354
|
+
negativeAgeFrames: tally.negativeAgeFrames + (latencyMs < 0 ? 1 : 0)
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
var INITIAL_PRESENCE_TALLY = {
|
|
358
|
+
framesWithTarget: 0,
|
|
359
|
+
absentFrames: 0,
|
|
360
|
+
currentGapFrames: 0,
|
|
361
|
+
maxGapFrames: 0,
|
|
362
|
+
gapRunHistogram: Array.from({ length: 9 }, () => 0)
|
|
363
|
+
};
|
|
364
|
+
/**
|
|
365
|
+
* Count one frame on which a target was held.
|
|
366
|
+
*
|
|
367
|
+
* `present` is "the held track carried a box on THIS frame". A closing gap is
|
|
368
|
+
* binned at the moment it closes, which is why the open gap is reported
|
|
369
|
+
* separately (`currentGapFrames`) instead of being counted twice.
|
|
370
|
+
*/
|
|
371
|
+
function recordPresence(tally, present) {
|
|
372
|
+
if (present) {
|
|
373
|
+
if (tally.currentGapFrames === 0) return {
|
|
374
|
+
...tally,
|
|
375
|
+
framesWithTarget: tally.framesWithTarget + 1
|
|
376
|
+
};
|
|
377
|
+
const slot = Math.min(tally.currentGapFrames, 8) - 1;
|
|
378
|
+
const index = tally.currentGapFrames > 8 ? 8 : slot;
|
|
379
|
+
return {
|
|
380
|
+
framesWithTarget: tally.framesWithTarget + 1,
|
|
381
|
+
absentFrames: tally.absentFrames,
|
|
382
|
+
currentGapFrames: 0,
|
|
383
|
+
maxGapFrames: tally.maxGapFrames,
|
|
384
|
+
gapRunHistogram: tally.gapRunHistogram.map((n, i) => i === index ? n + 1 : n)
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
const currentGapFrames = tally.currentGapFrames + 1;
|
|
388
|
+
return {
|
|
389
|
+
framesWithTarget: tally.framesWithTarget + 1,
|
|
390
|
+
absentFrames: tally.absentFrames + 1,
|
|
391
|
+
currentGapFrames,
|
|
392
|
+
maxGapFrames: Math.max(tally.maxGapFrames, currentGapFrames),
|
|
393
|
+
gapRunHistogram: tally.gapRunHistogram
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
function summarize(latency, presence) {
|
|
397
|
+
return {
|
|
398
|
+
frames: latency.frames,
|
|
399
|
+
latencyMeanMs: latency.frames === 0 ? null : latency.sumMs / latency.frames,
|
|
400
|
+
latencyMinMs: latency.minMs,
|
|
401
|
+
latencyMaxMs: latency.maxMs,
|
|
402
|
+
latencyBucketsMs: latency.bucketBoundsMs,
|
|
403
|
+
latencyBucketCounts: latency.bucketCounts,
|
|
404
|
+
negativeAgeFrames: latency.negativeAgeFrames,
|
|
405
|
+
framesWithTarget: presence.framesWithTarget,
|
|
406
|
+
absentFrames: presence.absentFrames,
|
|
407
|
+
absentFraction: presence.framesWithTarget === 0 ? null : presence.absentFrames / presence.framesWithTarget,
|
|
408
|
+
maxGapFrames: presence.maxGapFrames,
|
|
409
|
+
openGapFrames: presence.currentGapFrames,
|
|
410
|
+
gapRunHistogram: presence.gapRunHistogram
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
//#endregion
|
|
414
|
+
//#region src/builtins/autotrack/ptz-mirror.ts
|
|
415
|
+
var INITIAL_PTZ_MIRROR = {
|
|
416
|
+
moveImpulseMs: null,
|
|
417
|
+
nativeAutotrack: "unknown",
|
|
418
|
+
lastRefreshAtMs: null,
|
|
419
|
+
lastError: null,
|
|
420
|
+
consecutiveFailures: 0
|
|
421
|
+
};
|
|
422
|
+
function applyMirrorRefresh(mirror, outcome, nowMs) {
|
|
423
|
+
if (outcome.kind === "failed") return {
|
|
424
|
+
...mirror,
|
|
425
|
+
lastError: outcome.error,
|
|
426
|
+
consecutiveFailures: mirror.consecutiveFailures + 1
|
|
427
|
+
};
|
|
428
|
+
return {
|
|
429
|
+
moveImpulseMs: outcome.moveImpulseMs ?? mirror.moveImpulseMs,
|
|
430
|
+
nativeAutotrack: outcome.nativeAutotrack,
|
|
431
|
+
lastRefreshAtMs: nowMs,
|
|
432
|
+
lastError: null,
|
|
433
|
+
consecutiveFailures: 0
|
|
434
|
+
};
|
|
435
|
+
}
|
|
436
|
+
//#endregion
|
|
437
|
+
//#region src/builtins/autotrack/target-selection.ts
|
|
438
|
+
var INITIAL_TARGET_SELECTION_STATE = {
|
|
439
|
+
trackId: null,
|
|
440
|
+
lastSeenAtMs: null
|
|
441
|
+
};
|
|
442
|
+
/** Largest box first; `trackId` breaks a tie so the choice is deterministic
|
|
443
|
+
* rather than dependent on detector ordering. */
|
|
444
|
+
function pickFirst(candidates) {
|
|
445
|
+
let best = null;
|
|
446
|
+
for (const c of candidates) {
|
|
447
|
+
if (best === null || c.areaPx > best.areaPx) {
|
|
448
|
+
best = c;
|
|
449
|
+
continue;
|
|
450
|
+
}
|
|
451
|
+
if (c.areaPx === best.areaPx && c.trackId < best.trackId) best = c;
|
|
452
|
+
}
|
|
453
|
+
return best;
|
|
454
|
+
}
|
|
455
|
+
function selectTarget(state, input) {
|
|
456
|
+
const held = state.trackId;
|
|
457
|
+
if (held !== null) {
|
|
458
|
+
if (input.candidates.some((c) => c.trackId === held)) return {
|
|
459
|
+
state: {
|
|
460
|
+
trackId: held,
|
|
461
|
+
lastSeenAtMs: input.nowMs
|
|
462
|
+
},
|
|
463
|
+
trackId: held,
|
|
464
|
+
present: true,
|
|
465
|
+
reason: "held"
|
|
466
|
+
};
|
|
467
|
+
const lastSeen = state.lastSeenAtMs;
|
|
468
|
+
if ((lastSeen === null ? Number.POSITIVE_INFINITY : input.nowMs - lastSeen) < input.disappearDelayMs) return {
|
|
469
|
+
state,
|
|
470
|
+
trackId: held,
|
|
471
|
+
present: false,
|
|
472
|
+
reason: "held-absent"
|
|
473
|
+
};
|
|
474
|
+
const replacement = pickFirst(input.candidates);
|
|
475
|
+
if (replacement === null) return {
|
|
476
|
+
state: INITIAL_TARGET_SELECTION_STATE,
|
|
477
|
+
trackId: null,
|
|
478
|
+
present: false,
|
|
479
|
+
reason: "released"
|
|
480
|
+
};
|
|
481
|
+
return {
|
|
482
|
+
state: {
|
|
483
|
+
trackId: replacement.trackId,
|
|
484
|
+
lastSeenAtMs: input.nowMs
|
|
485
|
+
},
|
|
486
|
+
trackId: replacement.trackId,
|
|
487
|
+
present: true,
|
|
488
|
+
reason: "switched"
|
|
489
|
+
};
|
|
490
|
+
}
|
|
491
|
+
const picked = pickFirst(input.candidates);
|
|
492
|
+
if (picked === null) return {
|
|
493
|
+
state: INITIAL_TARGET_SELECTION_STATE,
|
|
494
|
+
trackId: null,
|
|
495
|
+
present: false,
|
|
496
|
+
reason: "idle"
|
|
497
|
+
};
|
|
498
|
+
return {
|
|
499
|
+
state: {
|
|
500
|
+
trackId: picked.trackId,
|
|
501
|
+
lastSeenAtMs: input.nowMs
|
|
502
|
+
},
|
|
503
|
+
trackId: picked.trackId,
|
|
504
|
+
present: true,
|
|
505
|
+
reason: "acquired"
|
|
506
|
+
};
|
|
507
|
+
}
|
|
508
|
+
//#endregion
|
|
509
|
+
//#region src/builtins/autotrack/autotrack-loop.ts
|
|
510
|
+
/**
|
|
511
|
+
* Candidates of the configured class on this frame.
|
|
512
|
+
*
|
|
513
|
+
* A detection counts only when it carries a `track` — `buildOverlayDetections`
|
|
514
|
+
* attaches one exactly to the boxes a tracked entry was ASSOCIATED with on this
|
|
515
|
+
* frame, so this set is the observed-and-tracked set and nothing else.
|
|
516
|
+
*/
|
|
517
|
+
function candidatesFromFrame(detections, targetClass) {
|
|
518
|
+
const out = [];
|
|
519
|
+
for (const det of detections) {
|
|
520
|
+
if (det.kind !== "first-level") continue;
|
|
521
|
+
if (det.macroClass !== targetClass) continue;
|
|
522
|
+
const trackId = det.track?.trackId;
|
|
523
|
+
if (trackId === void 0) continue;
|
|
524
|
+
out.push({
|
|
525
|
+
trackId,
|
|
526
|
+
areaPx: Math.max(0, det.bbox.width) * Math.max(0, det.bbox.height)
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
return out;
|
|
530
|
+
}
|
|
531
|
+
var AutotrackLoop = class {
|
|
532
|
+
deps;
|
|
533
|
+
selection = INITIAL_TARGET_SELECTION_STATE;
|
|
534
|
+
loopState = INITIAL_AUTOTRACK_LOOP_STATE;
|
|
535
|
+
mirror = INITIAL_PTZ_MIRROR;
|
|
536
|
+
latency = INITIAL_LATENCY_TALLY;
|
|
537
|
+
presence = INITIAL_PRESENCE_TALLY;
|
|
538
|
+
lastFrameAtMs = null;
|
|
539
|
+
lastSummaryAtMs = null;
|
|
540
|
+
constructor(deps) {
|
|
541
|
+
this.deps = deps;
|
|
542
|
+
}
|
|
543
|
+
/** Read-only view of the mirror, for the addon's startup log. */
|
|
544
|
+
get ptzMirror() {
|
|
545
|
+
return this.mirror;
|
|
546
|
+
}
|
|
547
|
+
/** Fold one refresh outcome into the mirror. Called by the TIMER, never from
|
|
548
|
+
* {@link onFrame}. */
|
|
549
|
+
applyMirror(outcome) {
|
|
550
|
+
const nowMs = this.deps.now();
|
|
551
|
+
this.mirror = applyMirrorRefresh(this.mirror, outcome, nowMs);
|
|
552
|
+
if (outcome.kind === "failed") {
|
|
553
|
+
this.deps.logger.warn("autotrack mirror refresh failed", {
|
|
554
|
+
tags: { deviceId: this.deps.deviceId },
|
|
555
|
+
meta: {
|
|
556
|
+
error: outcome.error,
|
|
557
|
+
consecutiveFailures: this.mirror.consecutiveFailures,
|
|
558
|
+
moveImpulseMs: this.mirror.moveImpulseMs,
|
|
559
|
+
nativeAutotrack: this.mirror.nativeAutotrack
|
|
560
|
+
}
|
|
561
|
+
});
|
|
562
|
+
return;
|
|
563
|
+
}
|
|
564
|
+
this.deps.logger.debug("autotrack mirror refreshed", {
|
|
565
|
+
tags: { deviceId: this.deps.deviceId },
|
|
566
|
+
meta: {
|
|
567
|
+
moveImpulseMs: this.mirror.moveImpulseMs,
|
|
568
|
+
nativeAutotrack: this.mirror.nativeAutotrack
|
|
569
|
+
}
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
/** One analysed frame. Measures first, then decides. */
|
|
573
|
+
async onFrame(frame) {
|
|
574
|
+
if (frame.deviceId !== this.deps.deviceId) return;
|
|
575
|
+
const nowMs = this.deps.now();
|
|
576
|
+
this.lastFrameAtMs = nowMs;
|
|
577
|
+
const busLatencyMs = nowMs - frame.timestamp;
|
|
578
|
+
this.latency = recordLatency(this.latency, busLatencyMs);
|
|
579
|
+
const candidates = candidatesFromFrame(frame.detections, this.deps.targetClass);
|
|
580
|
+
const selected = selectTarget(this.selection, {
|
|
581
|
+
nowMs,
|
|
582
|
+
candidates,
|
|
583
|
+
disappearDelayMs: this.deps.config.disappearDelayMs
|
|
584
|
+
});
|
|
585
|
+
this.selection = selected.state;
|
|
586
|
+
if (selected.trackId !== null) this.presence = recordPresence(this.presence, selected.present);
|
|
587
|
+
let error = null;
|
|
588
|
+
if (selected.present && selected.trackId !== null) {
|
|
589
|
+
const det = frame.detections.find((d) => d.track?.trackId === selected.trackId);
|
|
590
|
+
if (det !== void 0) error = computeNormalizedError(det.bbox, {
|
|
591
|
+
frameWidth: frame.frameWidth,
|
|
592
|
+
frameHeight: frame.frameHeight
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
const result = decideAutotrack(this.loopState, {
|
|
596
|
+
nowMs,
|
|
597
|
+
armed: this.deps.armed,
|
|
598
|
+
target: selected.present && selected.trackId !== null ? {
|
|
599
|
+
trackId: selected.trackId,
|
|
600
|
+
error
|
|
601
|
+
} : null,
|
|
602
|
+
targetLastSeenAtMs: this.selection.lastSeenAtMs,
|
|
603
|
+
moveImpulseMs: this.mirror.moveImpulseMs,
|
|
604
|
+
nativeAutotrack: this.mirror.nativeAutotrack,
|
|
605
|
+
config: this.deps.config
|
|
606
|
+
});
|
|
607
|
+
this.loopState = result.state;
|
|
608
|
+
this.logDecision(result.decision, {
|
|
609
|
+
busLatencyMs,
|
|
610
|
+
candidates: candidates.length,
|
|
611
|
+
trackId: selected.trackId,
|
|
612
|
+
present: selected.present,
|
|
613
|
+
selection: selected.reason,
|
|
614
|
+
error,
|
|
615
|
+
source: "frame"
|
|
616
|
+
});
|
|
617
|
+
await this.dispatch(result.decision);
|
|
618
|
+
this.maybeSummarize(nowMs);
|
|
619
|
+
}
|
|
620
|
+
/**
|
|
621
|
+
* Off-event-path tick: the silence watchdog.
|
|
622
|
+
*
|
|
623
|
+
* Evaluates the SAME disappear delay against the time since the last frame.
|
|
624
|
+
* A stream that died is a target that is gone, and the head goes home —
|
|
625
|
+
* which is also the only thing that would otherwise never happen, because
|
|
626
|
+
* every other release is driven by a frame arriving.
|
|
627
|
+
*/
|
|
628
|
+
async tick() {
|
|
629
|
+
const nowMs = this.deps.now();
|
|
630
|
+
const lastFrameAtMs = this.lastFrameAtMs;
|
|
631
|
+
if (lastFrameAtMs === null) return;
|
|
632
|
+
const silentForMs = nowMs - lastFrameAtMs;
|
|
633
|
+
if (silentForMs < this.deps.config.disappearDelayMs) return;
|
|
634
|
+
const heldTrackId = this.selection.trackId;
|
|
635
|
+
if (heldTrackId === null) return;
|
|
636
|
+
this.selection = INITIAL_TARGET_SELECTION_STATE;
|
|
637
|
+
const result = decideAutotrack(this.loopState, {
|
|
638
|
+
nowMs,
|
|
639
|
+
armed: this.deps.armed,
|
|
640
|
+
target: null,
|
|
641
|
+
targetLastSeenAtMs: lastFrameAtMs,
|
|
642
|
+
moveImpulseMs: this.mirror.moveImpulseMs,
|
|
643
|
+
nativeAutotrack: this.mirror.nativeAutotrack,
|
|
644
|
+
config: this.deps.config
|
|
645
|
+
});
|
|
646
|
+
this.loopState = result.state;
|
|
647
|
+
this.deps.logger.warn("autotrack frame silence", {
|
|
648
|
+
tags: { deviceId: this.deps.deviceId },
|
|
649
|
+
meta: {
|
|
650
|
+
silentForMs,
|
|
651
|
+
disappearDelayMs: this.deps.config.disappearDelayMs,
|
|
652
|
+
heldTrackId
|
|
653
|
+
}
|
|
654
|
+
});
|
|
655
|
+
this.logDecision(result.decision, {
|
|
656
|
+
busLatencyMs: null,
|
|
657
|
+
candidates: 0,
|
|
658
|
+
trackId: heldTrackId,
|
|
659
|
+
present: false,
|
|
660
|
+
selection: "silence-released",
|
|
661
|
+
error: null,
|
|
662
|
+
source: "tick"
|
|
663
|
+
});
|
|
664
|
+
await this.dispatch(result.decision);
|
|
665
|
+
}
|
|
666
|
+
/** Emit the aggregates now, whatever the schedule says. Used at shutdown so
|
|
667
|
+
* a short run still reports what it measured. */
|
|
668
|
+
logSummary() {
|
|
669
|
+
const meta = { ...summarize(this.latency, this.presence) };
|
|
670
|
+
this.deps.logger.info("autotrack measurements", {
|
|
671
|
+
tags: { deviceId: this.deps.deviceId },
|
|
672
|
+
meta
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
maybeSummarize(nowMs) {
|
|
676
|
+
const last = this.lastSummaryAtMs;
|
|
677
|
+
if (last !== null && nowMs - last < this.deps.config.measurementSummaryMs) return;
|
|
678
|
+
this.lastSummaryAtMs = nowMs;
|
|
679
|
+
this.logSummary();
|
|
680
|
+
}
|
|
681
|
+
async dispatch(decision) {
|
|
682
|
+
if (decision.action === "hold") return;
|
|
683
|
+
try {
|
|
684
|
+
if (decision.action === "home") {
|
|
685
|
+
await this.deps.commands.goHome(this.deps.deviceId);
|
|
686
|
+
return;
|
|
687
|
+
}
|
|
688
|
+
await this.deps.commands.pulse({
|
|
689
|
+
deviceId: this.deps.deviceId,
|
|
690
|
+
pan: decision.pan,
|
|
691
|
+
tilt: decision.tilt,
|
|
692
|
+
speed: decision.speed
|
|
693
|
+
});
|
|
694
|
+
} catch (err) {
|
|
695
|
+
this.deps.logger.warn("autotrack command failed", {
|
|
696
|
+
tags: { deviceId: this.deps.deviceId },
|
|
697
|
+
meta: {
|
|
698
|
+
action: decision.action,
|
|
699
|
+
error: err instanceof Error ? err.message : String(err)
|
|
700
|
+
}
|
|
701
|
+
});
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
logDecision(decision, context) {
|
|
705
|
+
const meta = {
|
|
706
|
+
source: context.source,
|
|
707
|
+
busLatencyMs: context.busLatencyMs,
|
|
708
|
+
candidates: context.candidates,
|
|
709
|
+
trackId: context.trackId,
|
|
710
|
+
trackPresent: context.present,
|
|
711
|
+
selection: context.selection,
|
|
712
|
+
errorX: context.error === null ? null : round3(context.error.x),
|
|
713
|
+
errorY: context.error === null ? null : round3(context.error.y),
|
|
714
|
+
action: decision.action,
|
|
715
|
+
reason: decision.action === "pulse" ? null : decision.reason,
|
|
716
|
+
pan: decision.action === "pulse" ? decision.pan : null,
|
|
717
|
+
tilt: decision.action === "pulse" ? decision.tilt : null,
|
|
718
|
+
moveImpulseMs: this.mirror.moveImpulseMs,
|
|
719
|
+
nativeAutotrack: this.mirror.nativeAutotrack
|
|
720
|
+
};
|
|
721
|
+
if (decision.action === "hold") {
|
|
722
|
+
this.deps.logger.debug("autotrack hold", {
|
|
723
|
+
tags: { deviceId: this.deps.deviceId },
|
|
724
|
+
meta
|
|
725
|
+
});
|
|
726
|
+
return;
|
|
727
|
+
}
|
|
728
|
+
this.deps.logger.info("autotrack command", {
|
|
729
|
+
tags: { deviceId: this.deps.deviceId },
|
|
730
|
+
meta
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
};
|
|
734
|
+
function round3(value) {
|
|
735
|
+
return Math.round(value * 1e3) / 1e3;
|
|
736
|
+
}
|
|
737
|
+
//#endregion
|
|
738
|
+
//#region src/builtins/autotrack/autotrack.addon.ts
|
|
739
|
+
/** How often the silence watchdog runs. Small relative to the disappear delay
|
|
740
|
+
* it enforces — the delay is the budget, this is only the resolution. */
|
|
741
|
+
var WATCHDOG_INTERVAL_MS = 5e3;
|
|
742
|
+
var AutotrackAddon = class extends BaseAddon {
|
|
743
|
+
records = {};
|
|
744
|
+
sessions = /* @__PURE__ */ new Map();
|
|
745
|
+
/** Cameras whose `ptz-autotrack` binding names THIS addon, last time we read. */
|
|
746
|
+
bound = /* @__PURE__ */ new Set();
|
|
747
|
+
/**
|
|
748
|
+
* Cameras that ALSO have a `ptz-autotrack` provider that is not us.
|
|
749
|
+
*
|
|
750
|
+
* This is the only way to ask about a firmware autotrack without asking
|
|
751
|
+
* ourselves: on a camera where our wrapper is the binding, `ptzAutotrack.
|
|
752
|
+
* getStatus` resolves to THIS addon and returns our own switch — so a loop
|
|
753
|
+
* that read it would see `enabled: true` the moment the operator turned it
|
|
754
|
+
* on, conclude the firmware was driving the head, and refuse to move. A
|
|
755
|
+
* self-deadlock that would have looked exactly like the safety gate working.
|
|
756
|
+
*/
|
|
757
|
+
foreignProvider = /* @__PURE__ */ new Set();
|
|
758
|
+
lastChangedAt = /* @__PURE__ */ new Map();
|
|
759
|
+
unsubscribeFrames = null;
|
|
760
|
+
unsubscribeBindings = null;
|
|
761
|
+
mirrorTimer = null;
|
|
762
|
+
watchdogTimer = null;
|
|
763
|
+
constructor() {
|
|
764
|
+
super({ cameras: {} });
|
|
765
|
+
}
|
|
766
|
+
async onInitialize() {
|
|
767
|
+
this.records = parseCameraRecords(this.config.cameras);
|
|
768
|
+
this.unsubscribeFrames = this.ctx.eventBus.subscribe({ category: EventCategory.PipelineAnalyticsFrameTracked }, (event) => {
|
|
769
|
+
if (!isEvent(event, EventCategory.PipelineAnalyticsFrameTracked)) return;
|
|
770
|
+
const session = this.sessions.get(event.data.deviceId);
|
|
771
|
+
if (session === void 0) return;
|
|
772
|
+
session.loop.onFrame({
|
|
773
|
+
deviceId: event.data.deviceId,
|
|
774
|
+
timestamp: event.data.timestamp,
|
|
775
|
+
frameWidth: event.data.frameWidth,
|
|
776
|
+
frameHeight: event.data.frameHeight,
|
|
777
|
+
detections: event.data.detections
|
|
778
|
+
}).catch((err) => {
|
|
779
|
+
this.ctx.logger.warn("autotrack frame handling failed", {
|
|
780
|
+
tags: { deviceId: event.data.deviceId },
|
|
781
|
+
meta: { error: errMsg(err) }
|
|
782
|
+
});
|
|
783
|
+
});
|
|
784
|
+
});
|
|
785
|
+
this.unsubscribeBindings = this.ctx.eventBus.subscribe({ category: EventCategory.DeviceBindingsChanged }, () => {
|
|
786
|
+
this.refreshBindings().catch(() => void 0);
|
|
787
|
+
});
|
|
788
|
+
this.mirrorTimer = setInterval(() => {
|
|
789
|
+
this.refreshEverything();
|
|
790
|
+
}, DEFAULT_AUTOTRACK_LOOP_CONFIG.mirrorRefreshMs);
|
|
791
|
+
this.watchdogTimer = setInterval(() => {
|
|
792
|
+
for (const session of this.sessions.values()) session.loop.tick().catch((err) => {
|
|
793
|
+
this.ctx.logger.warn("autotrack watchdog failed", {
|
|
794
|
+
tags: { deviceId: session.deviceId },
|
|
795
|
+
meta: { error: errMsg(err) }
|
|
796
|
+
});
|
|
797
|
+
});
|
|
798
|
+
}, WATCHDOG_INTERVAL_MS);
|
|
799
|
+
await this.refreshEverything();
|
|
800
|
+
const provider = {
|
|
801
|
+
getStatus: async ({ deviceId }) => this.statusOf(deviceId),
|
|
802
|
+
setEnabled: async ({ deviceId, enabled }) => {
|
|
803
|
+
await this.patchCamera(deviceId, { enabled });
|
|
804
|
+
},
|
|
805
|
+
getSettings: async ({ deviceId }) => this.recordOf(deviceId).settings,
|
|
806
|
+
setSettings: async ({ deviceId, settings }) => {
|
|
807
|
+
await this.patchCamera(deviceId, { settings });
|
|
808
|
+
}
|
|
809
|
+
};
|
|
810
|
+
this.ctx.logger.info("autotrack ready", { meta: {
|
|
811
|
+
cameras: Object.keys(this.records).length,
|
|
812
|
+
running: this.sessions.size
|
|
813
|
+
} });
|
|
814
|
+
return { providers: [{
|
|
815
|
+
capability: ptzAutotrackCapability,
|
|
816
|
+
provider
|
|
817
|
+
}] };
|
|
818
|
+
}
|
|
819
|
+
async onShutdown() {
|
|
820
|
+
if (this.mirrorTimer !== null) clearInterval(this.mirrorTimer);
|
|
821
|
+
if (this.watchdogTimer !== null) clearInterval(this.watchdogTimer);
|
|
822
|
+
this.mirrorTimer = null;
|
|
823
|
+
this.watchdogTimer = null;
|
|
824
|
+
this.unsubscribeFrames?.();
|
|
825
|
+
this.unsubscribeBindings?.();
|
|
826
|
+
this.unsubscribeFrames = null;
|
|
827
|
+
this.unsubscribeBindings = null;
|
|
828
|
+
for (const session of this.sessions.values()) session.loop.logSummary();
|
|
829
|
+
this.sessions.clear();
|
|
830
|
+
}
|
|
831
|
+
async onConfigChanged() {
|
|
832
|
+
this.records = parseCameraRecords(this.config.cameras);
|
|
833
|
+
await this.reconcileSessions();
|
|
834
|
+
}
|
|
835
|
+
recordOf(deviceId) {
|
|
836
|
+
return this.records[deviceId] ?? DEFAULT_CAMERA_RECORD;
|
|
837
|
+
}
|
|
838
|
+
statusOf(deviceId) {
|
|
839
|
+
return statusFor(this.recordOf(deviceId), this.lastChangedAt.get(deviceId) ?? 0);
|
|
840
|
+
}
|
|
841
|
+
async patchCamera(deviceId, patch) {
|
|
842
|
+
const before = this.recordOf(deviceId).enabled;
|
|
843
|
+
this.records = withCameraPatch(this.records, deviceId, patch);
|
|
844
|
+
if (before !== this.recordOf(deviceId).enabled) this.lastChangedAt.set(deviceId, Date.now());
|
|
845
|
+
await this.updateGlobalSettings({ cameras: this.serialiseRecords() });
|
|
846
|
+
await this.refreshEverything();
|
|
847
|
+
}
|
|
848
|
+
serialiseRecords() {
|
|
849
|
+
const out = {};
|
|
850
|
+
for (const [deviceId, record] of Object.entries(this.records)) out[deviceId] = {
|
|
851
|
+
enabled: record.enabled,
|
|
852
|
+
settings: record.settings
|
|
853
|
+
};
|
|
854
|
+
return out;
|
|
855
|
+
}
|
|
856
|
+
/** Bindings first, then sessions: a session must never outlive its binding. */
|
|
857
|
+
async refreshEverything() {
|
|
858
|
+
await this.refreshBindings();
|
|
859
|
+
await this.reconcileSessions();
|
|
860
|
+
for (const session of this.sessions.values()) await this.refreshMirror(session);
|
|
861
|
+
}
|
|
862
|
+
/**
|
|
863
|
+
* Which cameras have this addon bound as their `ptz-autotrack` provider.
|
|
864
|
+
*
|
|
865
|
+
* Only cameras the operator has a record for are asked about: a wrapper that
|
|
866
|
+
* enumerated every camera on every refresh would walk the whole fleet to
|
|
867
|
+
* learn nothing about the ones nobody switched on.
|
|
868
|
+
*
|
|
869
|
+
* A read that FAILS leaves the previous answer standing (D49) — a transient
|
|
870
|
+
* store blip must not stop a running loop. A read that SUCCEEDS and omits us
|
|
871
|
+
* is believed immediately: unlike a doorbell press, the cost of erring open
|
|
872
|
+
* here is a head that keeps moving after the operator unbound it.
|
|
873
|
+
*/
|
|
874
|
+
async refreshBindings() {
|
|
875
|
+
const next = /* @__PURE__ */ new Set();
|
|
876
|
+
const foreign = new Set(this.foreignProvider);
|
|
877
|
+
const me = bareAddonId(this.ctx.id);
|
|
878
|
+
for (const key of Object.keys(this.records)) {
|
|
879
|
+
const deviceId = Number(key);
|
|
880
|
+
if (!Number.isInteger(deviceId)) continue;
|
|
881
|
+
try {
|
|
882
|
+
const { entries } = await this.ctx.api.deviceManager.getBindings.query({ deviceId });
|
|
883
|
+
const autotrackEntries = entries.filter((entry) => entry.capName === ptzAutotrackCapability.name);
|
|
884
|
+
if (autotrackEntries.some((entry) => bareAddonId(entry.providerAddonId) === me)) next.add(deviceId);
|
|
885
|
+
if (autotrackEntries.some((entry) => bareAddonId(entry.providerAddonId) !== me)) foreign.add(deviceId);
|
|
886
|
+
else foreign.delete(deviceId);
|
|
887
|
+
} catch (err) {
|
|
888
|
+
if (this.bound.has(deviceId)) next.add(deviceId);
|
|
889
|
+
this.ctx.logger.debug("autotrack: could not read bindings", {
|
|
890
|
+
tags: { deviceId },
|
|
891
|
+
meta: { error: errMsg(err) }
|
|
892
|
+
});
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
this.bound = next;
|
|
896
|
+
this.foreignProvider = foreign;
|
|
897
|
+
}
|
|
898
|
+
/** Start a loop for every camera that is bound AND switched on; stop the rest. */
|
|
899
|
+
async reconcileSessions() {
|
|
900
|
+
for (const [key, record] of Object.entries(this.records)) {
|
|
901
|
+
const deviceId = Number(key);
|
|
902
|
+
const shouldRun = record.enabled && this.bound.has(deviceId);
|
|
903
|
+
const running = this.sessions.get(deviceId);
|
|
904
|
+
if (shouldRun && running === void 0) {
|
|
905
|
+
this.startSession(deviceId, record);
|
|
906
|
+
continue;
|
|
907
|
+
}
|
|
908
|
+
if (!shouldRun && running !== void 0) this.stopSession(deviceId, record.enabled ? "unbound" : "switched-off");
|
|
909
|
+
}
|
|
910
|
+
for (const deviceId of this.sessions.keys()) if (this.records[deviceId] === void 0) this.stopSession(deviceId, "record-gone");
|
|
911
|
+
}
|
|
912
|
+
startSession(deviceId, record) {
|
|
913
|
+
const config = loopConfigFor(record.settings);
|
|
914
|
+
const targetClass = targetClassFor(record.settings);
|
|
915
|
+
const loop = new AutotrackLoop({
|
|
916
|
+
deviceId,
|
|
917
|
+
targetClass,
|
|
918
|
+
armed: true,
|
|
919
|
+
config,
|
|
920
|
+
logger: this.ctx.logger,
|
|
921
|
+
commands: {
|
|
922
|
+
pulse: (command) => this.ctx.api.ptz.move.mutate({
|
|
923
|
+
deviceId: command.deviceId,
|
|
924
|
+
pan: command.pan,
|
|
925
|
+
tilt: command.tilt,
|
|
926
|
+
speed: command.speed
|
|
927
|
+
}),
|
|
928
|
+
goHome: (target) => this.ctx.api.ptz.goHome.mutate({ deviceId: target })
|
|
929
|
+
},
|
|
930
|
+
now: () => Date.now()
|
|
931
|
+
});
|
|
932
|
+
this.sessions.set(deviceId, {
|
|
933
|
+
loop,
|
|
934
|
+
deviceId
|
|
935
|
+
});
|
|
936
|
+
this.refreshMirror({
|
|
937
|
+
loop,
|
|
938
|
+
deviceId
|
|
939
|
+
});
|
|
940
|
+
this.ctx.logger.info("autotrack following", {
|
|
941
|
+
tags: { deviceId },
|
|
942
|
+
meta: {
|
|
943
|
+
targetClass,
|
|
944
|
+
deadZoneFraction: config.deadZoneFraction,
|
|
945
|
+
settleZoneFraction: config.settleZoneFraction,
|
|
946
|
+
maxCommandsPerSecond: config.maxCommandsPerSecond,
|
|
947
|
+
disappearDelayMs: config.disappearDelayMs
|
|
948
|
+
}
|
|
949
|
+
});
|
|
950
|
+
this.ctx.logger.warn("autotrack ON: this camera must not be driven by anyone else", { tags: { deviceId } });
|
|
951
|
+
const zoomRefusal = zoomRefusalFor(record);
|
|
952
|
+
if (zoomRefusal !== null) this.ctx.logger.warn(zoomRefusal, {
|
|
953
|
+
tags: { deviceId },
|
|
954
|
+
meta: { targetSubjectFraction: record.zoom.targetSubjectFraction }
|
|
955
|
+
});
|
|
956
|
+
}
|
|
957
|
+
stopSession(deviceId, reason) {
|
|
958
|
+
const session = this.sessions.get(deviceId);
|
|
959
|
+
if (session === void 0) return;
|
|
960
|
+
session.loop.logSummary();
|
|
961
|
+
this.sessions.delete(deviceId);
|
|
962
|
+
this.ctx.logger.info("autotrack stopped following", {
|
|
963
|
+
tags: { deviceId },
|
|
964
|
+
meta: { reason }
|
|
965
|
+
});
|
|
966
|
+
}
|
|
967
|
+
/**
|
|
968
|
+
* One off-event-path refresh of a camera's mirror.
|
|
969
|
+
*
|
|
970
|
+
* Two reads, and either one failing fails the whole refresh: a mirror half
|
|
971
|
+
* from now and half from twenty minutes ago is worse than one that says it
|
|
972
|
+
* is stale. The previous answers stand (D49).
|
|
973
|
+
*/
|
|
974
|
+
async refreshMirror(session) {
|
|
975
|
+
try {
|
|
976
|
+
const options = await this.ctx.api.ptz.getOptions.query({ deviceId: session.deviceId });
|
|
977
|
+
const nativeAutotrack = await this.readNativeAutotrack(session.deviceId);
|
|
978
|
+
session.loop.applyMirror({
|
|
979
|
+
kind: "read",
|
|
980
|
+
moveImpulseMs: options.moveImpulseMs,
|
|
981
|
+
nativeAutotrack
|
|
982
|
+
});
|
|
983
|
+
} catch (err) {
|
|
984
|
+
session.loop.applyMirror({
|
|
985
|
+
kind: "failed",
|
|
986
|
+
error: errMsg(err)
|
|
987
|
+
});
|
|
988
|
+
this.ctx.logger.warn("autotrack mirror refresh failed — the loop holds its last answers", {
|
|
989
|
+
tags: { deviceId: session.deviceId },
|
|
990
|
+
meta: { error: errMsg(err) }
|
|
991
|
+
});
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
/**
|
|
995
|
+
* Is the camera's OWN autotrack on?
|
|
996
|
+
*
|
|
997
|
+
* `null` when the camera has no native autotrack at all — which is the case
|
|
998
|
+
* this addon exists for, and is NOT an error. A camera that HAS one and has
|
|
999
|
+
* it armed makes this loop refuse: two implementations driving one head is
|
|
1000
|
+
* the thing the single-switch rule exists to prevent (D62).
|
|
1001
|
+
*/
|
|
1002
|
+
async readNativeAutotrack(deviceId) {
|
|
1003
|
+
if (!this.foreignProvider.has(deviceId)) return "absent";
|
|
1004
|
+
try {
|
|
1005
|
+
return (await this.ctx.api.ptzAutotrack.getStatus.query({ deviceId })).enabled ? "enabled" : "disabled";
|
|
1006
|
+
} catch {
|
|
1007
|
+
return "unknown";
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
};
|
|
1011
|
+
//#endregion
|
|
1012
|
+
export { AutotrackAddon, AutotrackAddon as default };
|