@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.
Files changed (970) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/addon-root-inventory.js +1 -1
  3. package/dist/agent/addon-scan.js +11 -7
  4. package/dist/agent/agent-addon-updates.js +1 -1
  5. package/dist/agent/agent-cap-dispatch-service.js +1 -1
  6. package/dist/agent/agent-heap-watch.js +1 -1
  7. package/dist/agent/agent-http.js +1 -1
  8. package/dist/agent/agent-hub-addon-update.js +1 -1
  9. package/dist/agent/agent-hub-registration.js +1 -1
  10. package/dist/agent/agent-infra-capabilities.js +2 -2
  11. package/dist/agent/agent-mesh-gate.js +1 -1
  12. package/dist/agent/agent-node-certificates.js +1 -1
  13. package/dist/agent/agent-pairing-routes.js +1 -1
  14. package/dist/agent/agent-pairing-store.js +1 -1
  15. package/dist/agent/agent-service.js +6 -2
  16. package/dist/agent/agent-update-service.js +3 -1
  17. package/dist/agent/hub-membership-client.js +1 -1
  18. package/dist/agent/infra-boot-guard.js +2 -2
  19. package/dist/agent/main.js +9 -9
  20. package/dist/api/addon-upload.js +1 -1
  21. package/dist/api/core/addon-settings.router.js +1 -1
  22. package/dist/api/core/agent-pairing.router.js +1 -1
  23. package/dist/api/core/auth-device-cert.procedures.js +1 -1
  24. package/dist/api/core/cap-providers.js +6 -6
  25. package/dist/api/core/certificates.router.js +1 -1
  26. package/dist/api/core/lifecycle-job-runner.js +1 -1
  27. package/dist/api/core/logging-settings.js +1 -1
  28. package/dist/api/core/logs.router.js +2 -2
  29. package/dist/api/core/notifications.router.js +1 -1
  30. package/dist/api/core/preferences.router.js +1 -1
  31. package/dist/api/core/repl.router.js +1 -1
  32. package/dist/api/cors/cors-policy.js +1 -1
  33. package/dist/api/mesh-membership-routes.js +1 -1
  34. package/dist/api/model-distributor.js +1 -1
  35. package/dist/api/trpc/cap-route-error-formatter.js +1 -1
  36. package/dist/api/trpc/cap-router-runtime.js +2 -2
  37. package/dist/api/trpc/core-cap-bridge.js +1 -1
  38. package/dist/api/trpc/device-collection-dispatch.js +1 -1
  39. package/dist/api/trpc/generated-cap-routers.js +1 -1
  40. package/dist/api/trpc/principal-authorization.js +1 -1
  41. package/dist/api/trpc/principal-visibility.js +1 -1
  42. package/dist/api/trpc/scope-access.js +1 -1
  43. package/dist/api/trpc/trpc.context.js +1 -1
  44. package/dist/api/trpc/trpc.middleware.js +1 -1
  45. package/dist/api/trpc/trpc.router.js +3 -3
  46. package/dist/auth/auth-network-policy.js +1 -1
  47. package/dist/auth/client-address.js +1 -1
  48. package/dist/auth/hub-sessions.js +1 -1
  49. package/dist/auth/session-lifetimes.js +1 -1
  50. package/dist/auth/sso-finish-deps.js +1 -1
  51. package/dist/boot/boot-config.js +53 -133
  52. package/dist/boot/platform-keychain-key.js +1 -1
  53. package/dist/boot/post-boot.service.js +1 -1
  54. package/dist/bootstrap-packages.js +3 -3
  55. package/dist/core/addon/addon-call-gateway.js +1 -1
  56. package/dist/core/addon/addon-package.service.js +140 -21
  57. package/dist/core/addon/addon-registry.service.js +36 -32
  58. package/dist/core/addon/addon-requirements.js +81 -0
  59. package/dist/core/addon/hub-addon-api.js +1 -1
  60. package/dist/core/addon/installed-addon-versions.js +82 -0
  61. package/dist/core/addon/package-dir-utils.js +11 -1
  62. package/dist/core/addon/settings-door-wiring.js +1 -1
  63. package/dist/core/addon-bridge/addon-bridge.service.js +3 -3
  64. package/dist/core/addon-pages/addon-pages.service.js +1 -1
  65. package/dist/core/agent/agent-desired-set.js +1 -1
  66. package/dist/core/agent/agent-pairing-http.js +1 -1
  67. package/dist/core/agent/agent-registry.service.js +41 -7
  68. package/dist/core/agent/cluster-node-history-store.js +1 -1
  69. package/dist/core/agent/delivery-requirements.js +36 -0
  70. package/dist/core/agent/forgotten-node-revoker.js +1 -1
  71. package/dist/core/agent/node-removal-hooks.js +6 -2
  72. package/dist/core/auth/auth.service.js +1 -1
  73. package/dist/core/config/config.schema.js +2 -2
  74. package/dist/core/config/config.service.js +1 -1
  75. package/dist/core/events/event-bus.service.js +1 -1
  76. package/dist/core/feature/feature.service.js +1 -1
  77. package/dist/core/lifecycle/lifecycle-state-machine.js +2 -2
  78. package/dist/core/logging/log-history.js +1 -1
  79. package/dist/core/logging/log-ring-buffer.js +2 -2
  80. package/dist/core/logging/logging.service.js +2 -2
  81. package/dist/core/logging/scoped-logger.js +2 -2
  82. package/dist/core/moleculer/cap-route-authority.js +2 -2
  83. package/dist/core/moleculer/hub-mesh-guard.js +1 -1
  84. package/dist/core/moleculer/moleculer.service.js +1 -1
  85. package/dist/core/network/network-quality.service.js +1 -1
  86. package/dist/core/notification/notification-wrapper.service.js +1 -1
  87. package/dist/core/notification/toast-wrapper.service.js +1 -1
  88. package/dist/core/repl/repl-engine.service.js +1 -1
  89. package/dist/core/server-update/server-update.service.js +3 -0
  90. package/dist/core/server-update/system-ensure-prebuilds.js +3 -3
  91. package/dist/core/server-update/system-exec-npm.js +2 -2
  92. package/dist/core/storage/fs-storage-backend.js +2 -2
  93. package/dist/core/storage/storage-location-manager.js +2 -2
  94. package/dist/core/storage/storage.service.js +1 -1
  95. package/dist/framework-nodepath.js +14 -1
  96. package/dist/launcher.js +23 -23
  97. package/dist/legacy-package-names.js +15 -0
  98. package/dist/main.js +2 -2
  99. package/dist/manual-boot.js +4 -3
  100. package/dist/package-inventory.js +6 -3
  101. package/dist/server-root/index.js +182 -30
  102. package/dist/single-copy-cleanup-runner.js +3 -3
  103. package/dist/single-copy-cleanup.js +19 -14
  104. package/package.json +53 -19
  105. package/scripts/closure-postinstall.mjs +1 -1
  106. package/system/assets/addon-pages-aggregator/icon.svg +5 -0
  107. package/system/assets/addon-widgets-aggregator/icon.svg +6 -0
  108. package/system/assets/alert-center/icon.svg +5 -0
  109. package/system/assets/autotrack/icon.svg +5 -0
  110. package/system/assets/backup-orchestrator/icon.svg +5 -0
  111. package/system/assets/calendars/icon.svg +5 -0
  112. package/system/assets/camera-grid/icon.svg +10 -0
  113. package/system/assets/composer/icon.svg +7 -0
  114. package/system/assets/console-logging/icon.svg +4 -0
  115. package/system/assets/core-blocks/icon.svg +6 -0
  116. package/system/assets/device-history/icon.svg +4 -0
  117. package/system/assets/device-manager/icon.svg +6 -0
  118. package/system/assets/filesystem-storage/icon.svg +6 -0
  119. package/system/assets/hub-forwarder/icon.svg +7 -0
  120. package/system/assets/keychain/icon.svg +6 -0
  121. package/system/assets/liveness-monitor/icon.svg +4 -0
  122. package/system/assets/local-auth/icon.svg +5 -0
  123. package/system/assets/local-network/icon.svg +7 -0
  124. package/system/assets/loki-logging/icon.svg +7 -0
  125. package/system/assets/metrics-native/icon.svg +3 -0
  126. package/system/assets/platform-probe/icon.svg +5 -0
  127. package/system/assets/record-entries/icon.svg +8 -0
  128. package/system/assets/remote-access-orchestrator/icon.svg +5 -0
  129. package/system/assets/snapshot/icon.svg +4 -0
  130. package/system/assets/sqlite-settings/icon.svg +5 -0
  131. package/system/assets/storage-orchestrator/icon.svg +8 -0
  132. package/system/assets/system-config/icon.svg +4 -0
  133. package/system/assets/winston-logging/icon.svg +6 -0
  134. package/system/dist/addon/addon-api-factory.d.ts +35 -0
  135. package/system/dist/addon-routes/addon-route-registry.d.ts +37 -0
  136. package/system/dist/addon-runner.js +11894 -0
  137. package/system/dist/addon-runner.mjs +11840 -0
  138. package/system/dist/addon-utils.d.ts +23 -0
  139. package/system/dist/addon-utils.js +27 -0
  140. package/system/dist/addon-utils.mjs +3 -0
  141. package/system/dist/agent-https-BMbnmX5u.mjs +1042 -0
  142. package/system/dist/agent-https-DslXCDRW.js +1289 -0
  143. package/system/dist/amd-accelerators-CEuPFBBK.js +36 -0
  144. package/system/dist/amd-accelerators-U_RsoEDd.mjs +35 -0
  145. package/system/dist/auth/auth-audit-log.d.ts +45 -0
  146. package/system/dist/auth/auth-manager.d.ts +155 -0
  147. package/system/dist/auth/cidr.d.ts +22 -0
  148. package/system/dist/auth/device-ca-store.d.ts +57 -0
  149. package/system/dist/auth/device-ca.d.ts +65 -0
  150. package/system/dist/auth/device-credential-manager.d.ts +158 -0
  151. package/system/dist/auth/external-identity-manager.d.ts +42 -0
  152. package/system/dist/auth/jwt-signing-key.d.ts +42 -0
  153. package/system/dist/auth/legacy-token-tables.d.ts +16 -0
  154. package/system/dist/auth/login-session-manager.d.ts +140 -0
  155. package/system/dist/auth/origin.d.ts +34 -0
  156. package/system/dist/auth/parse-record.d.ts +18 -0
  157. package/system/dist/auth/scope-matcher.d.ts +8 -0
  158. package/system/dist/auth/session-revocation-bus.d.ts +32 -0
  159. package/system/dist/auth/token-expiry.d.ts +62 -0
  160. package/system/dist/auth/totp-manager.d.ts +107 -0
  161. package/system/dist/auth/user-management-internal.d.ts +90 -0
  162. package/system/dist/auth/user-manager.d.ts +69 -0
  163. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.d.ts +57 -0
  164. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +271 -0
  165. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +263 -0
  166. package/system/dist/builtins/addon-pages-aggregator/dedupe-pages.d.ts +24 -0
  167. package/system/dist/builtins/addon-pages-aggregator/index.d.ts +1 -0
  168. package/system/dist/builtins/addon-pages-aggregator/index.js +8 -0
  169. package/system/dist/builtins/addon-pages-aggregator/index.mjs +2 -0
  170. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.d.ts +57 -0
  171. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +257 -0
  172. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +249 -0
  173. package/system/dist/builtins/addon-widgets-aggregator/index.d.ts +1 -0
  174. package/system/dist/builtins/addon-widgets-aggregator/index.js +8 -0
  175. package/system/dist/builtins/addon-widgets-aggregator/index.mjs +2 -0
  176. package/system/dist/builtins/alerts/alert-episode-policy.d.ts +39 -0
  177. package/system/dist/builtins/alerts/alert-store.d.ts +32 -0
  178. package/system/dist/builtins/alerts/alerts.addon.d.ts +148 -0
  179. package/system/dist/builtins/alerts/alerts.addon.js +1566 -0
  180. package/system/dist/builtins/alerts/alerts.addon.mjs +1559 -0
  181. package/system/dist/builtins/alerts/device-label.d.ts +8 -0
  182. package/system/dist/builtins/alerts/emit-alert-policy.d.ts +15 -0
  183. package/system/dist/builtins/alerts/index.d.ts +1 -0
  184. package/system/dist/builtins/alerts/index.js +4 -0
  185. package/system/dist/builtins/alerts/index.mjs +2 -0
  186. package/system/dist/builtins/alerts/migration-alerts.d.ts +13 -0
  187. package/system/dist/builtins/alerts/prune-policy.d.ts +44 -0
  188. package/system/dist/builtins/alerts/record-kinds.d.ts +15 -0
  189. package/system/dist/builtins/alerts/runner-alert.d.ts +58 -0
  190. package/system/dist/builtins/autotrack/autotrack-cameras.d.ts +125 -0
  191. package/system/dist/builtins/autotrack/autotrack-config.d.ts +89 -0
  192. package/system/dist/builtins/autotrack/autotrack-decision.d.ts +86 -0
  193. package/system/dist/builtins/autotrack/autotrack-loop.d.ts +95 -0
  194. package/system/dist/builtins/autotrack/autotrack.addon.d.ts +108 -0
  195. package/system/dist/builtins/autotrack/frame-error.d.ts +50 -0
  196. package/system/dist/builtins/autotrack/frame-measurements.d.ts +97 -0
  197. package/system/dist/builtins/autotrack/index.d.ts +2 -0
  198. package/system/dist/builtins/autotrack/index.js +1018 -0
  199. package/system/dist/builtins/autotrack/index.mjs +1012 -0
  200. package/system/dist/builtins/autotrack/ptz-mirror.d.ts +54 -0
  201. package/system/dist/builtins/autotrack/target-selection.d.ts +46 -0
  202. package/system/dist/builtins/backup-orchestrator/backup-databases.d.ts +51 -0
  203. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.d.ts +291 -0
  204. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +3213 -0
  205. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +3204 -0
  206. package/system/dist/builtins/backup-orchestrator/cron-helpers.d.ts +23 -0
  207. package/system/dist/builtins/backup-orchestrator/destination-policy.d.ts +91 -0
  208. package/system/dist/builtins/backup-orchestrator/download-helpers.d.ts +12 -0
  209. package/system/dist/builtins/backup-orchestrator/encryption-key-store.d.ts +49 -0
  210. package/system/dist/builtins/backup-orchestrator/index.d.ts +2 -0
  211. package/system/dist/builtins/backup-orchestrator/index.js +8 -0
  212. package/system/dist/builtins/backup-orchestrator/index.mjs +2 -0
  213. package/system/dist/builtins/backup-orchestrator/manifest-store.d.ts +134 -0
  214. package/system/dist/builtins/backup-orchestrator/record-kinds.d.ts +56 -0
  215. package/system/dist/builtins/backup-orchestrator/restore-archive.d.ts +24 -0
  216. package/system/dist/builtins/backup-orchestrator/run-queue.d.ts +106 -0
  217. package/system/dist/builtins/backup-orchestrator/schedule-store.d.ts +59 -0
  218. package/system/dist/builtins/backup-orchestrator/seed-marker-store.d.ts +26 -0
  219. package/system/dist/builtins/backup-orchestrator/staging-paths.d.ts +36 -0
  220. package/system/dist/builtins/backup-orchestrator/write-targets.d.ts +63 -0
  221. package/system/dist/builtins/calendars/calendar-color.d.ts +9 -0
  222. package/system/dist/builtins/calendars/calendar-prefs-store.d.ts +34 -0
  223. package/system/dist/builtins/calendars/calendars.addon.d.ts +19 -0
  224. package/system/dist/builtins/calendars/calendars.addon.js +227 -0
  225. package/system/dist/builtins/calendars/calendars.addon.mjs +220 -0
  226. package/system/dist/builtins/calendars/index.d.ts +1 -0
  227. package/system/dist/builtins/calendars/index.js +8 -0
  228. package/system/dist/builtins/calendars/index.mjs +2 -0
  229. package/system/dist/builtins/calendars/record-kinds.d.ts +18 -0
  230. package/system/dist/builtins/camera-grid/acquire-retry.d.ts +30 -0
  231. package/system/dist/builtins/camera-grid/addon.d.ts +205 -0
  232. package/system/dist/builtins/camera-grid/flv-join.d.ts +40 -0
  233. package/system/dist/builtins/camera-grid/grid-activity-mirror.d.ts +42 -0
  234. package/system/dist/builtins/camera-grid/grid-activity.d.ts +91 -0
  235. package/system/dist/builtins/camera-grid/grid-camera-declarations.d.ts +59 -0
  236. package/system/dist/builtins/camera-grid/grid-camera-device.d.ts +68 -0
  237. package/system/dist/builtins/camera-grid/grid-canvas-derivation.d.ts +54 -0
  238. package/system/dist/builtins/camera-grid/grid-canvas-seed.d.ts +112 -0
  239. package/system/dist/builtins/camera-grid/grid-canvas.d.ts +85 -0
  240. package/system/dist/builtins/camera-grid/grid-child.d.ts +32 -0
  241. package/system/dist/builtins/camera-grid/grid-compositor-child.d.ts +3 -0
  242. package/system/dist/builtins/camera-grid/grid-compositor-invocation.d.ts +47 -0
  243. package/system/dist/builtins/camera-grid/grid-compositor.d.ts +54 -0
  244. package/system/dist/builtins/camera-grid/grid-detection-mapping.d.ts +61 -0
  245. package/system/dist/builtins/camera-grid/grid-device-settings.d.ts +35 -0
  246. package/system/dist/builtins/camera-grid/grid-filter-graph.d.ts +53 -0
  247. package/system/dist/builtins/camera-grid/grid-frame-sample.d.ts +53 -0
  248. package/system/dist/builtins/camera-grid/grid-instances.d.ts +22 -0
  249. package/system/dist/builtins/camera-grid/grid-last-frame-store.d.ts +58 -0
  250. package/system/dist/builtins/camera-grid/grid-layout-native-provider.d.ts +34 -0
  251. package/system/dist/builtins/camera-grid/grid-plan.d.ts +34 -0
  252. package/system/dist/builtins/camera-grid/grid-profiles.d.ts +104 -0
  253. package/system/dist/builtins/camera-grid/grid-row-normalization.d.ts +10 -0
  254. package/system/dist/builtins/camera-grid/grid-sentry-sources.d.ts +64 -0
  255. package/system/dist/builtins/camera-grid/grid-snapshot.d.ts +62 -0
  256. package/system/dist/builtins/camera-grid/grid-stream-descriptor.d.ts +53 -0
  257. package/system/dist/builtins/camera-grid/grid-stream-invocation.d.ts +44 -0
  258. package/system/dist/builtins/camera-grid/grid-stream-relay.d.ts +35 -0
  259. package/system/dist/builtins/camera-grid/grid-stream-session.d.ts +143 -0
  260. package/system/dist/builtins/camera-grid/grid-tile-feed.d.ts +50 -0
  261. package/system/dist/builtins/camera-grid/grid-tile-plan.d.ts +66 -0
  262. package/system/dist/builtins/camera-grid/grid-wire-format.d.ts +30 -0
  263. package/system/dist/builtins/camera-grid/index.d.ts +45 -0
  264. package/system/dist/builtins/camera-grid/index.js +3994 -0
  265. package/system/dist/builtins/camera-grid/index.mjs +3961 -0
  266. package/system/dist/builtins/camera-grid/silence-analysis.d.ts +37 -0
  267. package/system/dist/builtins/cluster-agent/record-kinds.d.ts +49 -0
  268. package/system/dist/builtins/composer/actuator-dispatch.d.ts +13 -0
  269. package/system/dist/builtins/composer/actuator-groups.d.ts +68 -0
  270. package/system/dist/builtins/composer/actuator-invoke.d.ts +32 -0
  271. package/system/dist/builtins/composer/claim-gate.d.ts +59 -0
  272. package/system/dist/builtins/composer/composed-device-set.d.ts +52 -0
  273. package/system/dist/builtins/composer/composed-device.d.ts +57 -0
  274. package/system/dist/builtins/composer/composer-apply-waits.d.ts +28 -0
  275. package/system/dist/builtins/composer/composer-grafts.d.ts +73 -0
  276. package/system/dist/builtins/composer/composer-live-set.d.ts +30 -0
  277. package/system/dist/builtins/composer/composer-plan.d.ts +112 -0
  278. package/system/dist/builtins/composer/composer-runtime-factory.d.ts +30 -0
  279. package/system/dist/builtins/composer/composer-seeds.d.ts +28 -0
  280. package/system/dist/builtins/composer/composer-verdict.d.ts +33 -0
  281. package/system/dist/builtins/composer/composer.addon.d.ts +26 -0
  282. package/system/dist/builtins/composer/composer.addon.js +6229 -0
  283. package/system/dist/builtins/composer/composer.addon.mjs +6223 -0
  284. package/system/dist/builtins/composer/composer.d.ts +208 -0
  285. package/system/dist/builtins/composer/composition-declarations.d.ts +64 -0
  286. package/system/dist/builtins/composer/composition-evaluation.d.ts +53 -0
  287. package/system/dist/builtins/composer/composition-runtime.d.ts +203 -0
  288. package/system/dist/builtins/composer/composition-target.d.ts +60 -0
  289. package/system/dist/builtins/composer/confirmed-seed.d.ts +44 -0
  290. package/system/dist/builtins/composer/deadline-timer.d.ts +18 -0
  291. package/system/dist/builtins/composer/existing-target.d.ts +131 -0
  292. package/system/dist/builtins/composer/field-record.d.ts +64 -0
  293. package/system/dist/builtins/composer/forward-commands.d.ts +61 -0
  294. package/system/dist/builtins/composer/graft-host.d.ts +71 -0
  295. package/system/dist/builtins/composer/held-claims.d.ts +29 -0
  296. package/system/dist/builtins/composer/history-helpers.d.ts +67 -0
  297. package/system/dist/builtins/composer/index.d.ts +1 -0
  298. package/system/dist/builtins/composer/index.js +8 -0
  299. package/system/dist/builtins/composer/index.mjs +2 -0
  300. package/system/dist/builtins/composer/math-quantity.d.ts +20 -0
  301. package/system/dist/builtins/composer/own-field-reads.d.ts +30 -0
  302. package/system/dist/builtins/composer/owned-fields-target.d.ts +95 -0
  303. package/system/dist/builtins/composer/pulse-seed-resolve.d.ts +59 -0
  304. package/system/dist/builtins/composer/pulse-seed.d.ts +75 -0
  305. package/system/dist/builtins/composer/slice-assembler.d.ts +26 -0
  306. package/system/dist/builtins/composer/source-readings.d.ts +128 -0
  307. package/system/dist/builtins/composer/source-tracker.d.ts +135 -0
  308. package/system/dist/builtins/console-logging/console-destination.d.ts +19 -0
  309. package/system/dist/builtins/console-logging/console-logging.addon.d.ts +26 -0
  310. package/system/dist/builtins/console-logging/index.d.ts +3 -0
  311. package/system/dist/builtins/console-logging/index.js +108 -0
  312. package/system/dist/builtins/console-logging/index.mjs +99 -0
  313. package/system/dist/builtins/core-blocks/actions-service.d.ts +113 -0
  314. package/system/dist/builtins/core-blocks/actions-store.d.ts +32 -0
  315. package/system/dist/builtins/core-blocks/actions-wiring.d.ts +32 -0
  316. package/system/dist/builtins/core-blocks/block-package.d.ts +54 -0
  317. package/system/dist/builtins/core-blocks/block-settings-store.d.ts +93 -0
  318. package/system/dist/builtins/core-blocks/block-supervisor.d.ts +176 -0
  319. package/system/dist/builtins/core-blocks/block-type-defs.d.ts +29 -0
  320. package/system/dist/builtins/core-blocks/blocks-integration.d.ts +89 -0
  321. package/system/dist/builtins/core-blocks/compile-block.d.ts +52 -0
  322. package/system/dist/builtins/core-blocks/composition-api.d.ts +50 -0
  323. package/system/dist/builtins/core-blocks/composition-peers.d.ts +31 -0
  324. package/system/dist/builtins/core-blocks/composition-sources.d.ts +40 -0
  325. package/system/dist/builtins/core-blocks/core-block-store.d.ts +120 -0
  326. package/system/dist/builtins/core-blocks/core-blocks.addon.d.ts +108 -0
  327. package/system/dist/builtins/core-blocks/core-blocks.addon.js +6374 -0
  328. package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +6355 -0
  329. package/system/dist/builtins/core-blocks/extract-settings-schema.d.ts +6 -0
  330. package/system/dist/builtins/core-blocks/index.d.ts +8 -0
  331. package/system/dist/builtins/core-blocks/index.js +21 -0
  332. package/system/dist/builtins/core-blocks/index.mjs +2 -0
  333. package/system/dist/builtins/core-blocks/lock-door-gate.d.ts +31 -0
  334. package/system/dist/builtins/core-blocks/lock-door-sensor.d.ts +35 -0
  335. package/system/dist/builtins/core-blocks/power-source-service.d.ts +70 -0
  336. package/system/dist/builtins/core-blocks/record-kinds.d.ts +83 -0
  337. package/system/dist/builtins/core-blocks/remote-call-redirect.d.ts +23 -0
  338. package/system/dist/builtins/core-blocks/remote-components-service.d.ts +10 -0
  339. package/system/dist/builtins/core-blocks/remote-service.d.ts +85 -0
  340. package/system/dist/builtins/core-blocks/remote-wiring.d.ts +49 -0
  341. package/system/dist/builtins/core-blocks/runs-api.d.ts +30 -0
  342. package/system/dist/builtins/core-blocks/runs-ledger.d.ts +64 -0
  343. package/system/dist/builtins/core-blocks/scheduler/scheduler-engine.d.ts +91 -0
  344. package/system/dist/builtins/core-blocks/scheduler/scheduler-holds.d.ts +54 -0
  345. package/system/dist/builtins/core-blocks/scheduler/scheduler-service.d.ts +76 -0
  346. package/system/dist/builtins/core-blocks/scheduler/scheduler-store.d.ts +23 -0
  347. package/system/dist/builtins/core-blocks/scheduler/scheduler-timeline.d.ts +53 -0
  348. package/system/dist/builtins/core-blocks/scheduler/scheduler-trace.d.ts +17 -0
  349. package/system/dist/builtins/core-blocks/scheduler/scheduler-types.d.ts +20 -0
  350. package/system/dist/builtins/core-blocks/scheduler/scheduler-wiring.d.ts +41 -0
  351. package/system/dist/builtins/core-blocks/templates-service.d.ts +24 -0
  352. package/system/dist/builtins/device-history/capture/capture-engine.d.ts +113 -0
  353. package/system/dist/builtins/device-history/capture/capture-filter.d.ts +37 -0
  354. package/system/dist/builtins/device-history/capture/device-directory.d.ts +47 -0
  355. package/system/dist/builtins/device-history/capture/field-path.d.ts +10 -0
  356. package/system/dist/builtins/device-history/capture/point-writer.d.ts +63 -0
  357. package/system/dist/builtins/device-history/device-history.addon.d.ts +53 -0
  358. package/system/dist/builtins/device-history/device-history.addon.js +2885 -0
  359. package/system/dist/builtins/device-history/device-history.addon.mjs +2878 -0
  360. package/system/dist/builtins/device-history/index.d.ts +3 -0
  361. package/system/dist/builtins/device-history/ingest/producer-ingest.d.ts +99 -0
  362. package/system/dist/builtins/device-history/query/history-query.d.ts +116 -0
  363. package/system/dist/builtins/device-history/query/point-shape.d.ts +31 -0
  364. package/system/dist/builtins/device-history/retention/departure-tracker.d.ts +33 -0
  365. package/system/dist/builtins/device-history/retention/orphans.d.ts +50 -0
  366. package/system/dist/builtins/device-history/retention/retention.d.ts +74 -0
  367. package/system/dist/builtins/device-history/rollup/rollup-engine.d.ts +74 -0
  368. package/system/dist/builtins/device-history/rollup/rollup-math.d.ts +50 -0
  369. package/system/dist/builtins/device-history/runtime/history-runtime.d.ts +118 -0
  370. package/system/dist/builtins/device-history/status/counters.d.ts +55 -0
  371. package/system/dist/builtins/device-history/store/history-door.d.ts +7 -0
  372. package/system/dist/builtins/device-history/store/history-schema.d.ts +28 -0
  373. package/system/dist/builtins/device-history/store/history-store.d.ts +109 -0
  374. package/system/dist/builtins/device-history/store/row-readers.d.ts +11 -0
  375. package/system/dist/builtins/device-history/store/series-registry.d.ts +64 -0
  376. package/system/dist/builtins/device-history/store/series-scale.d.ts +37 -0
  377. package/system/dist/builtins/device-history/time/bucket-time.d.ts +25 -0
  378. package/system/dist/builtins/device-manager/adoption-job-engine.d.ts +153 -0
  379. package/system/dist/builtins/device-manager/claimed-status-overlay.d.ts +45 -0
  380. package/system/dist/builtins/device-manager/contribution-cache.d.ts +85 -0
  381. package/system/dist/builtins/device-manager/day-night-config-schema.d.ts +30 -0
  382. package/system/dist/builtins/device-manager/device-aggregation-merge.d.ts +22 -0
  383. package/system/dist/builtins/device-manager/device-aggregation.d.ts +335 -0
  384. package/system/dist/builtins/device-manager/device-bindings-store.d.ts +278 -0
  385. package/system/dist/builtins/device-manager/device-config-contribution.d.ts +45 -0
  386. package/system/dist/builtins/device-manager/device-config-secrets.d.ts +40 -0
  387. package/system/dist/builtins/device-manager/device-event-propagator.d.ts +26 -0
  388. package/system/dist/builtins/device-manager/device-extension-linked-slot.d.ts +27 -0
  389. package/system/dist/builtins/device-manager/device-form-secrets.d.ts +25 -0
  390. package/system/dist/builtins/device-manager/device-linked-devices.d.ts +201 -0
  391. package/system/dist/builtins/device-manager/device-manager.addon.d.ts +234 -0
  392. package/system/dist/builtins/device-manager/device-manager.addon.js +11369 -0
  393. package/system/dist/builtins/device-manager/device-manager.addon.mjs +11358 -0
  394. package/system/dist/builtins/device-manager/device-meta-actions.d.ts +338 -0
  395. package/system/dist/builtins/device-manager/device-meta-store.d.ts +103 -0
  396. package/system/dist/builtins/device-manager/device-meta-types.d.ts +277 -0
  397. package/system/dist/builtins/device-manager/device-online-fallback.d.ts +35 -0
  398. package/system/dist/builtins/device-manager/device-projection.d.ts +71 -0
  399. package/system/dist/builtins/device-manager/device-provider-context.d.ts +126 -0
  400. package/system/dist/builtins/device-manager/device-queries.d.ts +67 -0
  401. package/system/dist/builtins/device-manager/device-removal-hooks.d.ts +92 -0
  402. package/system/dist/builtins/device-manager/device-row-store.d.ts +449 -0
  403. package/system/dist/builtins/device-manager/device-source-activation.d.ts +103 -0
  404. package/system/dist/builtins/device-manager/device-state-claim-views.d.ts +92 -0
  405. package/system/dist/builtins/device-manager/device-state-claims.d.ts +66 -0
  406. package/system/dist/builtins/device-manager/device-state-mirror.d.ts +267 -0
  407. package/system/dist/builtins/device-manager/device-sync-resolvers.d.ts +30 -0
  408. package/system/dist/builtins/device-manager/device-tombstone-store.d.ts +29 -0
  409. package/system/dist/builtins/device-manager/discovery-orchestrator.d.ts +45 -0
  410. package/system/dist/builtins/device-manager/field-claims-index.d.ts +96 -0
  411. package/system/dist/builtins/device-manager/field-ownership.d.ts +71 -0
  412. package/system/dist/builtins/device-manager/fleet-read-census.d.ts +104 -0
  413. package/system/dist/builtins/device-manager/image-settings-config-schema.d.ts +22 -0
  414. package/system/dist/builtins/device-manager/index.d.ts +2 -0
  415. package/system/dist/builtins/device-manager/index.js +8 -0
  416. package/system/dist/builtins/device-manager/index.mjs +2 -0
  417. package/system/dist/builtins/device-manager/linked-devices-manual-backfill.d.ts +27 -0
  418. package/system/dist/builtins/device-manager/location-alignment.d.ts +61 -0
  419. package/system/dist/builtins/device-manager/migrate-device.d.ts +192 -0
  420. package/system/dist/builtins/device-manager/migrate-guard.d.ts +78 -0
  421. package/system/dist/builtins/device-manager/migrate-hardware-state.d.ts +79 -0
  422. package/system/dist/builtins/device-manager/migrate-reload.d.ts +46 -0
  423. package/system/dist/builtins/device-manager/migration-refused.d.ts +23 -0
  424. package/system/dist/builtins/device-manager/mirror-row-writer.d.ts +222 -0
  425. package/system/dist/builtins/device-manager/record-kinds.d.ts +14 -0
  426. package/system/dist/builtins/device-manager/recording-onboard-config-schema.d.ts +65 -0
  427. package/system/dist/builtins/device-manager/removal-cleanup.d.ts +50 -0
  428. package/system/dist/builtins/device-manager/removal-fence.d.ts +58 -0
  429. package/system/dist/builtins/device-manager/running-flip.d.ts +11 -0
  430. package/system/dist/builtins/device-manager/runtime-state-persist-gate.d.ts +64 -0
  431. package/system/dist/builtins/device-manager/secret-config-paths.d.ts +24 -0
  432. package/system/dist/builtins/device-manager/stale-wrapper-activations.d.ts +59 -0
  433. package/system/dist/builtins/device-manager/write-lock.d.ts +17 -0
  434. package/system/dist/builtins/hub-forwarder/hub-forwarder-destination.d.ts +43 -0
  435. package/system/dist/builtins/hub-forwarder/hub-forwarder.addon.d.ts +16 -0
  436. package/system/dist/builtins/hub-forwarder/index.d.ts +3 -0
  437. package/system/dist/builtins/hub-forwarder/index.js +151 -0
  438. package/system/dist/builtins/hub-forwarder/index.mjs +142 -0
  439. package/system/dist/builtins/keychain/index.d.ts +1 -0
  440. package/system/dist/builtins/keychain/index.js +2059 -0
  441. package/system/dist/builtins/keychain/index.mjs +2052 -0
  442. package/system/dist/builtins/keychain/key-sources.d.ts +37 -0
  443. package/system/dist/builtins/keychain/keychain-crypto.d.ts +28 -0
  444. package/system/dist/builtins/keychain/keychain-reset-trigger.d.ts +25 -0
  445. package/system/dist/builtins/keychain/keychain-service.d.ts +180 -0
  446. package/system/dist/builtins/keychain/keychain-store.d.ts +125 -0
  447. package/system/dist/builtins/keychain/keychain-usage.d.ts +17 -0
  448. package/system/dist/builtins/keychain/keychain.addon.d.ts +36 -0
  449. package/system/dist/builtins/keychain/platform-key-source.d.ts +24 -0
  450. package/system/dist/builtins/keychain/record-kinds.d.ts +16 -0
  451. package/system/dist/builtins/keychain/system-held-secrets.d.ts +25 -0
  452. package/system/dist/builtins/liveness-monitor/index.d.ts +2 -0
  453. package/system/dist/builtins/liveness-monitor/index.js +6 -0
  454. package/system/dist/builtins/liveness-monitor/index.mjs +2 -0
  455. package/system/dist/builtins/liveness-monitor/liveness-checks.d.ts +85 -0
  456. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.d.ts +46 -0
  457. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +443 -0
  458. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +437 -0
  459. package/system/dist/builtins/liveness-monitor/liveness-reporter.d.ts +28 -0
  460. package/system/dist/builtins/liveness-monitor/storage-root-access.d.ts +53 -0
  461. package/system/dist/builtins/local-auth/admin-account-boot.d.ts +27 -0
  462. package/system/dist/builtins/local-auth/auth-config-reader.d.ts +39 -0
  463. package/system/dist/builtins/local-auth/auth-schema.d.ts +93 -0
  464. package/system/dist/builtins/local-auth/index.d.ts +1 -0
  465. package/system/dist/builtins/local-auth/index.js +4 -0
  466. package/system/dist/builtins/local-auth/index.mjs +2 -0
  467. package/system/dist/builtins/local-auth/jwt-signing-key-keeper.d.ts +30 -0
  468. package/system/dist/builtins/local-auth/local-auth.addon.d.ts +48 -0
  469. package/system/dist/builtins/local-auth/local-auth.addon.js +12418 -0
  470. package/system/dist/builtins/local-auth/local-auth.addon.mjs +12388 -0
  471. package/system/dist/builtins/local-auth/oauth-grants.d.ts +71 -0
  472. package/system/dist/builtins/local-auth/oauth-session-manager.d.ts +44 -0
  473. package/system/dist/builtins/local-auth/person-scopes.d.ts +7 -0
  474. package/system/dist/builtins/local-auth/preferences-record-kinds.d.ts +27 -0
  475. package/system/dist/builtins/local-auth/record-kinds.d.ts +137 -0
  476. package/system/dist/builtins/local-auth/user-preferences-store.d.ts +56 -0
  477. package/system/dist/builtins/local-network/address-book.d.ts +128 -0
  478. package/system/dist/builtins/local-network/agent-mdns.d.ts +56 -0
  479. package/system/dist/builtins/local-network/hub-mdns-ciao.d.ts +7 -0
  480. package/system/dist/builtins/local-network/hub-mdns.d.ts +58 -0
  481. package/system/dist/builtins/local-network/index.d.ts +1 -0
  482. package/system/dist/builtins/local-network/index.js +10 -0
  483. package/system/dist/builtins/local-network/index.mjs +2 -0
  484. package/system/dist/builtins/local-network/ipv6-lan.d.ts +21 -0
  485. package/system/dist/builtins/local-network/local-hostname.d.ts +15 -0
  486. package/system/dist/builtins/local-network/local-network.addon.d.ts +334 -0
  487. package/system/dist/builtins/local-network/local-network.addon.js +2487 -0
  488. package/system/dist/builtins/local-network/local-network.addon.mjs +2466 -0
  489. package/system/dist/builtins/local-network/scan/dns-wire.d.ts +17 -0
  490. package/system/dist/builtins/local-network/scan/scan-engine.d.ts +31 -0
  491. package/system/dist/builtins/local-network/scan/scan-io-node.d.ts +2 -0
  492. package/system/dist/builtins/local-network/scan/scan-io.d.ts +56 -0
  493. package/system/dist/builtins/local-network/scan/subnets.d.ts +57 -0
  494. package/system/dist/builtins/loki-logging/index.d.ts +4 -0
  495. package/system/dist/builtins/loki-logging/index.js +915 -0
  496. package/system/dist/builtins/loki-logging/index.mjs +901 -0
  497. package/system/dist/builtins/loki-logging/loki-destination.d.ts +142 -0
  498. package/system/dist/builtins/loki-logging/loki-logging.addon.d.ts +66 -0
  499. package/system/dist/builtins/loki-logging/loki-payload.d.ts +100 -0
  500. package/system/dist/builtins/loki-logging/loki-read.d.ts +51 -0
  501. package/system/dist/builtins/loki-logging/retire-enabled-flag.d.ts +48 -0
  502. package/system/dist/builtins/native-metrics/cgroup-memory.d.ts +240 -0
  503. package/system/dist/builtins/native-metrics/cgroup-pids.d.ts +159 -0
  504. package/system/dist/builtins/native-metrics/container-memory-ring.d.ts +18 -0
  505. package/system/dist/builtins/native-metrics/darwin-memory.d.ts +26 -0
  506. package/system/dist/builtins/native-metrics/gpu-probe.d.ts +18 -0
  507. package/system/dist/builtins/native-metrics/index.d.ts +2 -0
  508. package/system/dist/builtins/native-metrics/load-series-config.d.ts +83 -0
  509. package/system/dist/builtins/native-metrics/load-series-reader.d.ts +63 -0
  510. package/system/dist/builtins/native-metrics/load-series-types.d.ts +14 -0
  511. package/system/dist/builtins/native-metrics/native-metrics-provider.d.ts +49 -0
  512. package/system/dist/builtins/native-metrics/native-metrics.addon.d.ts +233 -0
  513. package/system/dist/builtins/native-metrics/native-metrics.addon.js +3116 -0
  514. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +3106 -0
  515. package/system/dist/builtins/native-metrics/node-load-ring.d.ts +212 -0
  516. package/system/dist/builtins/native-metrics/node-metrics-history-recorder.d.ts +155 -0
  517. package/system/dist/builtins/native-metrics/proc-process-table.d.ts +25 -0
  518. package/system/dist/builtins/native-metrics/process-classification.d.ts +110 -0
  519. package/system/dist/builtins/native-metrics/thread-cpu-sampler.d.ts +116 -0
  520. package/system/dist/builtins/platform-probe/accelerator-facts-probe.d.ts +24 -0
  521. package/system/dist/builtins/platform-probe/accelerator-reprobe.d.ts +23 -0
  522. package/system/dist/builtins/platform-probe/amd-accelerators.d.ts +15 -0
  523. package/system/dist/builtins/platform-probe/amd-npu.d.ts +35 -0
  524. package/system/dist/builtins/platform-probe/coral-accelerators.d.ts +87 -0
  525. package/system/dist/builtins/platform-probe/index.d.ts +57 -0
  526. package/system/dist/builtins/platform-probe/index.js +1151 -0
  527. package/system/dist/builtins/platform-probe/index.mjs +1140 -0
  528. package/system/dist/builtins/platform-probe/inference-config-resolver.d.ts +29 -0
  529. package/system/dist/builtins/platform-probe/intel-accelerators.d.ts +14 -0
  530. package/system/dist/builtins/platform-probe/intel-npu.d.ts +38 -0
  531. package/system/dist/builtins/platform-probe/platform-scorer.d.ts +66 -0
  532. package/system/dist/builtins/platform-probe/runtime-packages.d.ts +6 -0
  533. package/system/dist/builtins/platform-probe/windows-hardware.d.ts +77 -0
  534. package/system/dist/builtins/record-entries/entries-service.d.ts +42 -0
  535. package/system/dist/builtins/record-entries/index.d.ts +1 -0
  536. package/system/dist/builtins/record-entries/index.js +162 -0
  537. package/system/dist/builtins/record-entries/index.mjs +156 -0
  538. package/system/dist/builtins/record-entries/record-entries.addon.d.ts +13 -0
  539. package/system/dist/builtins/records-isolated.d.ts +10 -0
  540. package/system/dist/builtins/remote-access-orchestrator/enabled-providers-reconcile.d.ts +96 -0
  541. package/system/dist/builtins/remote-access-orchestrator/index.d.ts +1 -0
  542. package/system/dist/builtins/remote-access-orchestrator/index.js +8 -0
  543. package/system/dist/builtins/remote-access-orchestrator/index.mjs +2 -0
  544. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.d.ts +71 -0
  545. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +214 -0
  546. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +208 -0
  547. package/system/dist/builtins/shared/device-state-changed.d.ts +16 -0
  548. package/system/dist/builtins/shared/settle-sources.d.ts +22 -0
  549. package/system/dist/builtins/snapshot/index.d.ts +2 -0
  550. package/system/dist/builtins/snapshot/index.js +2720 -0
  551. package/system/dist/builtins/snapshot/index.mjs +2713 -0
  552. package/system/dist/builtins/snapshot/snapshot-cache.d.ts +108 -0
  553. package/system/dist/builtins/snapshot/snapshot-coalescing.d.ts +135 -0
  554. package/system/dist/builtins/snapshot/snapshot-courtesy.d.ts +68 -0
  555. package/system/dist/builtins/snapshot/snapshot-durable-store.d.ts +36 -0
  556. package/system/dist/builtins/snapshot/snapshot-fatigue.d.ts +41 -0
  557. package/system/dist/builtins/snapshot/snapshot-grab-pick.d.ts +20 -0
  558. package/system/dist/builtins/snapshot/snapshot-link-url.d.ts +66 -0
  559. package/system/dist/builtins/snapshot/snapshot-media-handler.d.ts +121 -0
  560. package/system/dist/builtins/snapshot/snapshot-resize.d.ts +75 -0
  561. package/system/dist/builtins/snapshot/snapshot.addon.d.ts +581 -0
  562. package/system/dist/builtins/sqlite-storage/analyze-stats.d.ts +83 -0
  563. package/system/dist/builtins/sqlite-storage/config-store.d.ts +8 -0
  564. package/system/dist/builtins/sqlite-storage/database-snapshot-provider.d.ts +18 -0
  565. package/system/dist/builtins/sqlite-storage/device-store.d.ts +23 -0
  566. package/system/dist/builtins/sqlite-storage/file-host-client.d.ts +75 -0
  567. package/system/dist/builtins/sqlite-storage/file-host-handlers.d.ts +27 -0
  568. package/system/dist/builtins/sqlite-storage/file-host-protocol.d.ts +167 -0
  569. package/system/dist/builtins/sqlite-storage/file-host-worker.d.ts +1 -0
  570. package/system/dist/builtins/sqlite-storage/filesystem-browse-provider.d.ts +25 -0
  571. package/system/dist/builtins/sqlite-storage/filesystem-storage-provider.d.ts +83 -0
  572. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.d.ts +33 -0
  573. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +419 -0
  574. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +411 -0
  575. package/system/dist/builtins/sqlite-storage/filter-compiler.d.ts +126 -0
  576. package/system/dist/builtins/sqlite-storage/index.d.ts +12 -0
  577. package/system/dist/builtins/sqlite-storage/index.js +82 -0
  578. package/system/dist/builtins/sqlite-storage/index.mjs +50 -0
  579. package/system/dist/builtins/sqlite-storage/integration-record-kinds.d.ts +31 -0
  580. package/system/dist/builtins/sqlite-storage/integration-registry.d.ts +34 -0
  581. package/system/dist/builtins/sqlite-storage/migrations/migration-actions.d.ts +12 -0
  582. package/system/dist/builtins/sqlite-storage/migrations/migration-edits.d.ts +35 -0
  583. package/system/dist/builtins/sqlite-storage/migrations/migration-engine.d.ts +125 -0
  584. package/system/dist/builtins/sqlite-storage/migrations/migration-hold.d.ts +23 -0
  585. package/system/dist/builtins/sqlite-storage/migrations/migration-pass.d.ts +48 -0
  586. package/system/dist/builtins/sqlite-storage/migrations/migration-restore-marker.d.ts +3 -0
  587. package/system/dist/builtins/sqlite-storage/migrations/migration-types.d.ts +151 -0
  588. package/system/dist/builtins/sqlite-storage/migrations/migrations-provider.d.ts +61 -0
  589. package/system/dist/builtins/sqlite-storage/owned-sqlite-file.d.ts +173 -0
  590. package/system/dist/builtins/sqlite-storage/path-guard.d.ts +11 -0
  591. package/system/dist/builtins/sqlite-storage/placement-errors.d.ts +60 -0
  592. package/system/dist/builtins/sqlite-storage/placement-router.d.ts +85 -0
  593. package/system/dist/builtins/sqlite-storage/prefix-range.d.ts +50 -0
  594. package/system/dist/builtins/sqlite-storage/query-bounds.d.ts +110 -0
  595. package/system/dist/builtins/sqlite-storage/query-profiler.d.ts +242 -0
  596. package/system/dist/builtins/sqlite-storage/records/records-catalog.d.ts +27 -0
  597. package/system/dist/builtins/sqlite-storage/records/records-engine-types.d.ts +48 -0
  598. package/system/dist/builtins/sqlite-storage/records/records-engine.d.ts +115 -0
  599. package/system/dist/builtins/sqlite-storage/records/records-explain.d.ts +18 -0
  600. package/system/dist/builtins/sqlite-storage/records/records-plan.d.ts +95 -0
  601. package/system/dist/builtins/sqlite-storage/records/records-probe.d.ts +33 -0
  602. package/system/dist/builtins/sqlite-storage/records/records-provider.d.ts +72 -0
  603. package/system/dist/builtins/sqlite-storage/records/records-rows.d.ts +46 -0
  604. package/system/dist/builtins/sqlite-storage/records/records-sql.d.ts +39 -0
  605. package/system/dist/builtins/sqlite-storage/retired-settings-keys.d.ts +276 -0
  606. package/system/dist/builtins/sqlite-storage/shm-lock-canary.d.ts +60 -0
  607. package/system/dist/builtins/sqlite-storage/sqlite-pragmas.d.ts +191 -0
  608. package/system/dist/builtins/sqlite-storage/sqlite-settings-backend.d.ts +583 -0
  609. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.d.ts +52 -0
  610. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +2960 -0
  611. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +2952 -0
  612. package/system/dist/builtins/sqlite-storage/sqlite-snapshot-protocol.d.ts +54 -0
  613. package/system/dist/builtins/sqlite-storage/sqlite-snapshot-worker.d.ts +33 -0
  614. package/system/dist/builtins/sqlite-storage/sqlite-snapshotter.d.ts +118 -0
  615. package/system/dist/builtins/sqlite-storage/stale-data/stale-data-audit.d.ts +81 -0
  616. package/system/dist/builtins/sqlite-storage/stale-data/stale-data-ports.d.ts +17 -0
  617. package/system/dist/builtins/sqlite-storage/statement-shape.d.ts +64 -0
  618. package/system/dist/builtins/sqlite-storage/storage-admin-provider.d.ts +33 -0
  619. package/system/dist/builtins/sqlite-storage/table-sizes.d.ts +95 -0
  620. package/system/dist/builtins/sqlite-storage/vector-index-shared.d.ts +81 -0
  621. package/system/dist/builtins/sqlite-storage/vector-index-vec.d.ts +143 -0
  622. package/system/dist/builtins/sqlite-storage/vector-provider.d.ts +30 -0
  623. package/system/dist/builtins/sqlite-storage/wal-checkpoint-policy.d.ts +196 -0
  624. package/system/dist/builtins/sqlite-storage/wal-checkpoint-worker.d.ts +1 -0
  625. package/system/dist/builtins/sqlite-storage/wal-checkpointer.d.ts +76 -0
  626. package/system/dist/builtins/sqlite-storage/wal-maintenance.d.ts +130 -0
  627. package/system/dist/builtins/storage-orchestrator/access-guards.d.ts +43 -0
  628. package/system/dist/builtins/storage-orchestrator/data-store-dispatch.d.ts +39 -0
  629. package/system/dist/builtins/storage-orchestrator/drain-ratchet.d.ts +104 -0
  630. package/system/dist/builtins/storage-orchestrator/drain-state-store.d.ts +26 -0
  631. package/system/dist/builtins/storage-orchestrator/hub-settings-forward.d.ts +128 -0
  632. package/system/dist/builtins/storage-orchestrator/index.d.ts +7 -0
  633. package/system/dist/builtins/storage-orchestrator/index.js +11 -0
  634. package/system/dist/builtins/storage-orchestrator/index.mjs +2 -0
  635. package/system/dist/builtins/storage-orchestrator/location-class-paths.d.ts +13 -0
  636. package/system/dist/builtins/storage-orchestrator/location-history-recorder.d.ts +76 -0
  637. package/system/dist/builtins/storage-orchestrator/location-occupancy-slice.d.ts +71 -0
  638. package/system/dist/builtins/storage-orchestrator/location-occupancy.d.ts +19 -0
  639. package/system/dist/builtins/storage-orchestrator/location-protection.d.ts +20 -0
  640. package/system/dist/builtins/storage-orchestrator/location-repoint-move.d.ts +57 -0
  641. package/system/dist/builtins/storage-orchestrator/location-repointer.d.ts +97 -0
  642. package/system/dist/builtins/storage-orchestrator/location-root-collision.d.ts +80 -0
  643. package/system/dist/builtins/storage-orchestrator/location-secrets.d.ts +114 -0
  644. package/system/dist/builtins/storage-orchestrator/location-store.d.ts +82 -0
  645. package/system/dist/builtins/storage-orchestrator/location-volume-capacity.d.ts +58 -0
  646. package/system/dist/builtins/storage-orchestrator/provider-discovery.d.ts +24 -0
  647. package/system/dist/builtins/storage-orchestrator/record-kinds.d.ts +43 -0
  648. package/system/dist/builtins/storage-orchestrator/storage-cleanup-coordinator.d.ts +68 -0
  649. package/system/dist/builtins/storage-orchestrator/storage-location-band-monitor.d.ts +77 -0
  650. package/system/dist/builtins/storage-orchestrator/storage-migration-coordinator.d.ts +241 -0
  651. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.d.ts +318 -0
  652. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +5280 -0
  653. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +5264 -0
  654. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.service.d.ts +475 -0
  655. package/system/dist/builtins/storage-orchestrator/storage-pressure-manager.d.ts +115 -0
  656. package/system/dist/builtins/system-backup/backup-encryption.d.ts +94 -0
  657. package/system/dist/builtins/system-backup/system-backup.service.d.ts +308 -0
  658. package/system/dist/builtins/system-config/index.d.ts +2 -0
  659. package/system/dist/builtins/system-config/index.js +10 -0
  660. package/system/dist/builtins/system-config/index.mjs +2 -0
  661. package/system/dist/builtins/system-config/mesh-actions.d.ts +3 -0
  662. package/system/dist/builtins/system-config/record-kinds.d.ts +32 -0
  663. package/system/dist/builtins/system-config/system-config.addon.d.ts +56 -0
  664. package/system/dist/builtins/system-config/system-config.addon.js +89334 -0
  665. package/system/dist/builtins/system-config/system-config.addon.mjs +89233 -0
  666. package/system/dist/builtins/winston-logging/index.d.ts +3 -0
  667. package/system/dist/builtins/winston-logging/index.js +324 -0
  668. package/system/dist/builtins/winston-logging/index.mjs +313 -0
  669. package/system/dist/builtins/winston-logging/log-file-cursor.d.ts +12 -0
  670. package/system/dist/builtins/winston-logging/log-file-index-store.d.ts +11 -0
  671. package/system/dist/builtins/winston-logging/log-file-index.d.ts +77 -0
  672. package/system/dist/builtins/winston-logging/log-file-read-client.d.ts +44 -0
  673. package/system/dist/builtins/winston-logging/log-file-read-protocol.d.ts +41 -0
  674. package/system/dist/builtins/winston-logging/log-file-read-worker.d.ts +1 -0
  675. package/system/dist/builtins/winston-logging/log-file-reader.d.ts +51 -0
  676. package/system/dist/builtins/winston-logging/winston-destination.d.ts +39 -0
  677. package/system/dist/builtins/winston-logging/winston-logging.addon.d.ts +20 -0
  678. package/system/dist/chunk-CNf5ZN-e.mjs +37 -0
  679. package/system/dist/chunk-Cek0wNdY.js +64 -0
  680. package/system/dist/composition-sources-C14epb_m.js +155 -0
  681. package/system/dist/composition-sources-EXNuxmGQ.mjs +132 -0
  682. package/system/dist/constants-DIGWBiNC.mjs +20 -0
  683. package/system/dist/constants-M7NtSiRo.js +66 -0
  684. package/system/dist/coral-accelerators-BSVsBVzt.js +250 -0
  685. package/system/dist/coral-accelerators-DBlgWB8k.mjs +231 -0
  686. package/system/dist/custom-action-registry-JuMHGKEc.js +1638 -0
  687. package/system/dist/custom-action-registry-oHl1xltx.mjs +1482 -0
  688. package/system/dist/device-ca-3vmBP1i0.js +474 -0
  689. package/system/dist/device-ca-DZlvNBWU.mjs +367 -0
  690. package/system/dist/dist-DcMqHB_N.mjs +108095 -0
  691. package/system/dist/dist-M9yHiIY7.js +110554 -0
  692. package/system/dist/download/hosted-model-revisions.d.ts +10 -0
  693. package/system/dist/download/model-download-service.d.ts +35 -0
  694. package/system/dist/download/model-downloader.d.ts +156 -0
  695. package/system/dist/events/event-bus.d.ts +10 -0
  696. package/system/dist/events/system-event-bus.d.ts +14 -0
  697. package/system/dist/feature/feature-manager.d.ts +11 -0
  698. package/system/dist/file-host-worker.js +160 -0
  699. package/system/dist/file-host-worker.mjs +160 -0
  700. package/system/dist/formatter-DkYZ4LXp.mjs +162 -0
  701. package/system/dist/formatter-xbxeV4GD.js +167 -0
  702. package/system/dist/framework-resolver-hook.mjs +49 -0
  703. package/system/dist/http/asset-compression.d.ts +55 -0
  704. package/system/dist/http/authenticated-file-server.d.ts +53 -0
  705. package/system/dist/http/data-plane-registry.d.ts +58 -0
  706. package/system/dist/http/file-data-plane.d.ts +18 -0
  707. package/system/dist/http/lan-http-bind.d.ts +41 -0
  708. package/system/dist/http/reverse-proxy.d.ts +42 -0
  709. package/system/dist/hub-mdns-ciao-CpCKuQnK.js +1163 -0
  710. package/system/dist/hub-mdns-ciao-Czz2ssit.mjs +942 -0
  711. package/system/dist/i18n/catalog-registry.d.ts +35 -0
  712. package/system/dist/i18n/index.d.ts +2 -0
  713. package/system/dist/index.d.ts +156 -0
  714. package/system/dist/index.js +28736 -0
  715. package/system/dist/index.mjs +28065 -0
  716. package/system/dist/intel-accelerators-BvBjZn4j.js +16 -0
  717. package/system/dist/intel-accelerators-idEumqk1.mjs +15 -0
  718. package/system/dist/intel-npu-C8HKvRQF.mjs +27 -0
  719. package/system/dist/intel-npu-DYF5hO5K.js +28 -0
  720. package/system/dist/kernel/addon-class-resolver.d.ts +4 -0
  721. package/system/dist/kernel/addon-engine-manager.d.ts +22 -0
  722. package/system/dist/kernel/addon-health-monitor.d.ts +163 -0
  723. package/system/dist/kernel/addon-installer.d.ts +651 -0
  724. package/system/dist/kernel/addon-loader.d.ts +144 -0
  725. package/system/dist/kernel/addon-manifest.d.ts +128 -0
  726. package/system/dist/kernel/addon-refused-error.d.ts +30 -0
  727. package/system/dist/kernel/addon-residue.d.ts +45 -0
  728. package/system/dist/kernel/addon-settings-store.d.ts +43 -0
  729. package/system/dist/kernel/addon-version-policy.d.ts +34 -0
  730. package/system/dist/kernel/anon-rss.d.ts +12 -0
  731. package/system/dist/kernel/array-buffer-census.d.ts +118 -0
  732. package/system/dist/kernel/bootstrap-config.d.ts +7 -0
  733. package/system/dist/kernel/cap-router-builder.d.ts +180 -0
  734. package/system/dist/kernel/capability-handle.d.ts +46 -0
  735. package/system/dist/kernel/capability-registry.d.ts +621 -0
  736. package/system/dist/kernel/config-manager.d.ts +174 -0
  737. package/system/dist/kernel/config-schema.d.ts +37 -0
  738. package/system/dist/kernel/custom-action-registry.d.ts +32 -0
  739. package/system/dist/kernel/deps/addon-deps-manager.d.ts +28 -0
  740. package/system/dist/kernel/deps/closure-dedupe.d.ts +105 -0
  741. package/system/dist/kernel/deps/ensure-addon-natives.d.ts +41 -0
  742. package/system/dist/kernel/deps/ensure-native-prebuilds.d.ts +40 -0
  743. package/system/dist/kernel/deps/manifest-native-deps.d.ts +42 -0
  744. package/system/dist/kernel/deps/manifest-python-deps.d.ts +20 -0
  745. package/system/dist/kernel/deps/manifest-system-deps.d.ts +18 -0
  746. package/system/dist/kernel/deps/npm-command.d.ts +60 -0
  747. package/system/dist/kernel/deps/system-package-allowlist.d.ts +12 -0
  748. package/system/dist/kernel/deps/system-package-broker.d.ts +31 -0
  749. package/system/dist/kernel/deps/system-package-client.d.ts +9 -0
  750. package/system/dist/kernel/device-call-redirect.d.ts +18 -0
  751. package/system/dist/kernel/device-registry.d.ts +29 -0
  752. package/system/dist/kernel/device-settings-store.d.ts +74 -0
  753. package/system/dist/kernel/event-loop-stall-monitor.d.ts +41 -0
  754. package/system/dist/kernel/event-plane-report.d.ts +225 -0
  755. package/system/dist/kernel/fs-utils.d.ts +88 -0
  756. package/system/dist/kernel/gc-census.d.ts +161 -0
  757. package/system/dist/kernel/heap-spaces.d.ts +112 -0
  758. package/system/dist/kernel/heap-watch.d.ts +816 -0
  759. package/system/dist/kernel/host-externals.d.ts +12 -0
  760. package/system/dist/kernel/hwaccel/hwaccel-resolver.d.ts +56 -0
  761. package/system/dist/kernel/hwaccel/vaapi-init-probe.d.ts +29 -0
  762. package/system/dist/kernel/index.d.ts +116 -0
  763. package/system/dist/kernel/inference/inference-resolver.d.ts +22 -0
  764. package/system/dist/kernel/inference/local-python-runtimes.d.ts +2 -0
  765. package/system/dist/kernel/infra-capabilities.d.ts +13 -0
  766. package/system/dist/kernel/isolated-builtin-phase.d.ts +57 -0
  767. package/system/dist/kernel/lifecycle/job-journal.d.ts +19 -0
  768. package/system/dist/kernel/lifecycle/lifecycle-job-engine.d.ts +106 -0
  769. package/system/dist/kernel/lifecycle/staging-area.d.ts +31 -0
  770. package/system/dist/kernel/moleculer/accessory-prune-gate.d.ts +55 -0
  771. package/system/dist/kernel/moleculer/addon-context-factory.d.ts +104 -0
  772. package/system/dist/kernel/moleculer/addon-data-plane-facility.d.ts +19 -0
  773. package/system/dist/kernel/moleculer/addon-deploy-source.d.ts +16 -0
  774. package/system/dist/kernel/moleculer/addon-peer-bytes-facility.d.ts +25 -0
  775. package/system/dist/kernel/moleculer/addon-runner.d.ts +1 -0
  776. package/system/dist/kernel/moleculer/addon-service-factory.d.ts +50 -0
  777. package/system/dist/kernel/moleculer/agent-event-scope.d.ts +49 -0
  778. package/system/dist/kernel/moleculer/agent-ui-unlock.d.ts +67 -0
  779. package/system/dist/kernel/moleculer/broker-factory.d.ts +95 -0
  780. package/system/dist/kernel/moleculer/broker-transport-swap.d.ts +60 -0
  781. package/system/dist/kernel/moleculer/cap-usage-registry.d.ts +126 -0
  782. package/system/dist/kernel/moleculer/capabilities-access.d.ts +21 -0
  783. package/system/dist/kernel/moleculer/child-addon-call-dispatch.d.ts +53 -0
  784. package/system/dist/kernel/moleculer/child-cap-descriptors.d.ts +34 -0
  785. package/system/dist/kernel/moleculer/child-cap-dispatch.d.ts +59 -0
  786. package/system/dist/kernel/moleculer/children-batch-loader.d.ts +98 -0
  787. package/system/dist/kernel/moleculer/core-cap-service.d.ts +65 -0
  788. package/system/dist/kernel/moleculer/crash-supervisor.d.ts +50 -0
  789. package/system/dist/kernel/moleculer/device-cap-proxy.d.ts +70 -0
  790. package/system/dist/kernel/moleculer/device-event-ring.d.ts +155 -0
  791. package/system/dist/kernel/moleculer/event-bus-core.d.ts +198 -0
  792. package/system/dist/kernel/moleculer/event-bus.d.ts +106 -0
  793. package/system/dist/kernel/moleculer/hub-log-forwarder.d.ts +36 -0
  794. package/system/dist/kernel/moleculer/hub-service.d.ts +39 -0
  795. package/system/dist/kernel/moleculer/init-watchdog.d.ts +60 -0
  796. package/system/dist/kernel/moleculer/mesh-access-middleware.d.ts +42 -0
  797. package/system/dist/kernel/moleculer/mesh-identity.d.ts +57 -0
  798. package/system/dist/kernel/moleculer/mesh-mtls/constants.d.ts +17 -0
  799. package/system/dist/kernel/moleculer/mesh-mtls/index.d.ts +12 -0
  800. package/system/dist/kernel/moleculer/mesh-mtls/mesh-ca-keeper.d.ts +60 -0
  801. package/system/dist/kernel/moleculer/mesh-mtls/mesh-ca.d.ts +49 -0
  802. package/system/dist/kernel/moleculer/mesh-mtls/mesh-certificate-registry.d.ts +105 -0
  803. package/system/dist/kernel/moleculer/mesh-mtls/mesh-crl.d.ts +16 -0
  804. package/system/dist/kernel/moleculer/mesh-mtls/mesh-membership.d.ts +64 -0
  805. package/system/dist/kernel/moleculer/mesh-mtls/mesh-peer-transport.d.ts +47 -0
  806. package/system/dist/kernel/moleculer/mesh-mtls/mesh-renewal.d.ts +135 -0
  807. package/system/dist/kernel/moleculer/mesh-mtls/mesh-tls-enabler.d.ts +9 -0
  808. package/system/dist/kernel/moleculer/mesh-mtls/mesh-tls-gate.d.ts +40 -0
  809. package/system/dist/kernel/moleculer/mesh-mtls/pairing/agent-pairing.d.ts +214 -0
  810. package/system/dist/kernel/moleculer/mesh-mtls/pairing/hub-pairing.d.ts +115 -0
  811. package/system/dist/kernel/moleculer/mesh-mtls/pairing/index.d.ts +3 -0
  812. package/system/dist/kernel/moleculer/mesh-mtls/pairing/pairing-protocol.d.ts +107 -0
  813. package/system/dist/kernel/moleculer/mesh-mtls/tls-tcp-transporter.d.ts +242 -0
  814. package/system/dist/kernel/moleculer/mesh-queue-report.d.ts +51 -0
  815. package/system/dist/kernel/moleculer/node-registry.d.ts +146 -0
  816. package/system/dist/kernel/moleculer/process-context.d.ts +4 -0
  817. package/system/dist/kernel/moleculer/process-service.d.ts +92 -0
  818. package/system/dist/kernel/moleculer/provider-registry.d.ts +28 -0
  819. package/system/dist/kernel/moleculer/readiness-context.d.ts +67 -0
  820. package/system/dist/kernel/moleculer/readiness-service.d.ts +37 -0
  821. package/system/dist/kernel/moleculer/records-api-transport.d.ts +9 -0
  822. package/system/dist/kernel/moleculer/register-framework-resolver.d.ts +8 -0
  823. package/system/dist/kernel/moleculer/register-node-client.d.ts +49 -0
  824. package/system/dist/kernel/moleculer/remote-logger.d.ts +43 -0
  825. package/system/dist/kernel/moleculer/resilient-cap-call.d.ts +28 -0
  826. package/system/dist/kernel/moleculer/runner-addon-settings.d.ts +29 -0
  827. package/system/dist/kernel/moleculer/runner-device-settings.d.ts +39 -0
  828. package/system/dist/kernel/moleculer/runner-heap-flags.d.ts +228 -0
  829. package/system/dist/kernel/moleculer/runner-native-allocator.d.ts +107 -0
  830. package/system/dist/kernel/moleculer/runner-process-group.d.ts +96 -0
  831. package/system/dist/kernel/moleculer/runner-refusal.d.ts +27 -0
  832. package/system/dist/kernel/moleculer/runtime-state-load.d.ts +29 -0
  833. package/system/dist/kernel/moleculer/settings-read-guard.d.ts +49 -0
  834. package/system/dist/kernel/moleculer/stream-probe-service.d.ts +28 -0
  835. package/system/dist/kernel/moleculer/trpc-links.d.ts +244 -0
  836. package/system/dist/kernel/moleculer/typed-array-serde.d.ts +14 -0
  837. package/system/dist/kernel/moleculer/worker-device-restore.d.ts +10 -0
  838. package/system/dist/kernel/outbound-queue-watch.d.ts +94 -0
  839. package/system/dist/kernel/prefix-walk.d.ts +39 -0
  840. package/system/dist/kernel/process-cpu-census.d.ts +74 -0
  841. package/system/dist/kernel/provider-kind-drift.d.ts +21 -0
  842. package/system/dist/kernel/restart-coordinator.d.ts +90 -0
  843. package/system/dist/kernel/sections-store.d.ts +20 -0
  844. package/system/dist/kernel/settings-door-view.d.ts +41 -0
  845. package/system/dist/kernel/settings-read-error.d.ts +35 -0
  846. package/system/dist/kernel/settings-view-types.d.ts +80 -0
  847. package/system/dist/kernel/socket-plane-report.d.ts +268 -0
  848. package/system/dist/kernel/status-overlay.d.ts +38 -0
  849. package/system/dist/kernel/storage-location-registry.d.ts +55 -0
  850. package/system/dist/kernel/store-settings-view.d.ts +14 -0
  851. package/system/dist/kernel/system-settings-mirror.d.ts +46 -0
  852. package/system/dist/kernel/system-settings-policy.d.ts +28 -0
  853. package/system/dist/kernel/transport/cap-action-census.d.ts +218 -0
  854. package/system/dist/kernel/transport/cap-action-name.d.ts +100 -0
  855. package/system/dist/kernel/transport/cap-child-index.d.ts +49 -0
  856. package/system/dist/kernel/transport/cap-route-resolver.d.ts +231 -0
  857. package/system/dist/kernel/transport/cap-route.d.ts +168 -0
  858. package/system/dist/kernel/transport/cap-routing-hints.d.ts +42 -0
  859. package/system/dist/kernel/transport/child-cap-protocol.d.ts +307 -0
  860. package/system/dist/kernel/transport/claimed-get-status.d.ts +39 -0
  861. package/system/dist/kernel/transport/create-local-transport.d.ts +7 -0
  862. package/system/dist/kernel/transport/device-call-redirect.d.ts +39 -0
  863. package/system/dist/kernel/transport/frame-codec.d.ts +122 -0
  864. package/system/dist/kernel/transport/hub-cap-forward.d.ts +96 -0
  865. package/system/dist/kernel/transport/index.d.ts +38 -0
  866. package/system/dist/kernel/transport/local-child-client.d.ts +199 -0
  867. package/system/dist/kernel/transport/local-child-registry.d.ts +654 -0
  868. package/system/dist/kernel/transport/local-endpoint-path.d.ts +6 -0
  869. package/system/dist/kernel/transport/local-transport.d.ts +122 -0
  870. package/system/dist/kernel/transport/parent-unowned-call.d.ts +283 -0
  871. package/system/dist/kernel/transport/peer-answered-error.d.ts +21 -0
  872. package/system/dist/kernel/transport/socket-channel.d.ts +116 -0
  873. package/system/dist/kernel/transport/socket-traffic.d.ts +118 -0
  874. package/system/dist/kernel/transport/uds-event-bridge.d.ts +85 -0
  875. package/system/dist/kernel/transport/uds-event-bus.d.ts +93 -0
  876. package/system/dist/kernel/transport/uds-local-transport.d.ts +18 -0
  877. package/system/dist/kernel/transport/uds-log-ingest.d.ts +43 -0
  878. package/system/dist/kernel/transport/uds-logger.d.ts +44 -0
  879. package/system/dist/kernel/utils/ring-buffer.d.ts +15 -0
  880. package/system/dist/kernel/workspace-detect.d.ts +9 -0
  881. package/system/dist/lib-5THG9eKz.mjs +15545 -0
  882. package/system/dist/lib-C3U1yluo.js +7110 -0
  883. package/system/dist/lib-CZ3g2WTS.js +15549 -0
  884. package/system/dist/lib-DFZblCIu.mjs +7106 -0
  885. package/system/dist/lifecycle/lifecycle-state-machine.d.ts +28 -0
  886. package/system/dist/log-file-read-protocol-B7M3X3bT.mjs +785 -0
  887. package/system/dist/log-file-read-protocol-D0WcLbIV.js +817 -0
  888. package/system/dist/log-file-read-worker.js +64 -0
  889. package/system/dist/log-file-read-worker.mjs +64 -0
  890. package/system/dist/log-read-filter-Bi066jwU.js +134 -0
  891. package/system/dist/log-read-filter-D7Ev3zm-.mjs +93 -0
  892. package/system/dist/logging/formatter.d.ts +57 -0
  893. package/system/dist/logging/log-manager.d.ts +145 -0
  894. package/system/dist/logging/log-read-filter.d.ts +43 -0
  895. package/system/dist/logging/log-redactor.d.ts +30 -0
  896. package/system/dist/logging/log-ring-buffer.d.ts +62 -0
  897. package/system/dist/logging/logging-gate.d.ts +76 -0
  898. package/system/dist/logging/logging-gate.singleton.d.ts +16 -0
  899. package/system/dist/logging/partitioned-log-buffer.d.ts +169 -0
  900. package/system/dist/logging/scoped-logger.d.ts +17 -0
  901. package/system/dist/migrations/hub/index.d.ts +11 -0
  902. package/system/dist/ms-CgH2OFlD.mjs +120 -0
  903. package/system/dist/ms-LB3giGoU.js +124 -0
  904. package/system/dist/network/network-quality.d.ts +11 -0
  905. package/system/dist/notification/notification-service.d.ts +43 -0
  906. package/system/dist/notification/toast-service.d.ts +22 -0
  907. package/system/dist/pipeline/engine-manager-resolver.d.ts +15 -0
  908. package/system/dist/pipeline/pipeline-runner.d.ts +8 -0
  909. package/system/dist/pipeline/pipeline-validator.d.ts +13 -0
  910. package/system/dist/platform-key-source-BWlq0jjn.mjs +23 -0
  911. package/system/dist/platform-key-source-Di7HrlGR.js +40 -0
  912. package/system/dist/prefix-range-D_KueXbQ.js +27 -0
  913. package/system/dist/prefix-range-Dl0znowN.mjs +22 -0
  914. package/system/dist/prefix-walk-DAOBSyH1.mjs +88 -0
  915. package/system/dist/prefix-walk-Dv6MLZlM.js +99 -0
  916. package/system/dist/process/proc-stat.d.ts +75 -0
  917. package/system/dist/process/resource-monitor.d.ts +28 -0
  918. package/system/dist/python/python-env-manager.d.ts +12 -0
  919. package/system/dist/read-all-rows-CVoO1ONM.js +29 -0
  920. package/system/dist/read-all-rows-TaPqdWNF.mjs +25 -0
  921. package/system/dist/records/read-all-rows.d.ts +6 -0
  922. package/system/dist/repl/interfaces.d.ts +31 -0
  923. package/system/dist/repl/repl-engine.d.ts +8 -0
  924. package/system/dist/resource-monitor-Di9daRwI.mjs +96 -0
  925. package/system/dist/resource-monitor-mio9dSCT.js +113 -0
  926. package/system/dist/restore-archive-Cy7jGqiD.js +4325 -0
  927. package/system/dist/restore-archive-DS4nvQ43.mjs +4213 -0
  928. package/system/dist/retention-Dqm_EiVq.mjs +893 -0
  929. package/system/dist/retention-Ufa2fci-.js +1024 -0
  930. package/system/dist/retired-settings-keys-C8nOOr5H.js +381 -0
  931. package/system/dist/retired-settings-keys-u6xQA6r7.mjs +364 -0
  932. package/system/dist/safe-buffer-B1OjL1I9.mjs +42 -0
  933. package/system/dist/safe-buffer-D3aoa-7X.js +46 -0
  934. package/system/dist/settle-sources-Bhsy57y-.js +38 -0
  935. package/system/dist/settle-sources-CDtNC8ub.mjs +33 -0
  936. package/system/dist/snapshot-courtesy-CyFs1M3I.mjs +167 -0
  937. package/system/dist/snapshot-courtesy-D_C5-nC0.js +192 -0
  938. package/system/dist/sqlite-snapshot-protocol-2QaTouWV.mjs +34 -0
  939. package/system/dist/sqlite-snapshot-protocol-B9OndqZv.js +51 -0
  940. package/system/dist/sqlite-snapshot-worker.js +185 -0
  941. package/system/dist/sqlite-snapshot-worker.mjs +179 -0
  942. package/system/dist/src-CnAqG6EF.js +714 -0
  943. package/system/dist/src-hG4grMU4.mjs +709 -0
  944. package/system/dist/storage/fs-storage-backend.d.ts +40 -0
  945. package/system/dist/storage/storage-location-manager.d.ts +23 -0
  946. package/system/dist/storage/storage-manager.d.ts +83 -0
  947. package/system/dist/tls/agent-https-names.d.ts +25 -0
  948. package/system/dist/tls/agent-https.d.ts +111 -0
  949. package/system/dist/tls/boot-tls.d.ts +35 -0
  950. package/system/dist/tls/cert-backdate.d.ts +10 -0
  951. package/system/dist/tls/cert-evaluation.d.ts +41 -0
  952. package/system/dist/tls/cert-identity.d.ts +60 -0
  953. package/system/dist/tls/cert-issue.d.ts +57 -0
  954. package/system/dist/tls/cert-manager.d.ts +124 -0
  955. package/system/dist/tls/cert-name-constraints.d.ts +53 -0
  956. package/system/dist/tls/cert-utc-time.d.ts +1 -0
  957. package/system/dist/tls/https-listener.d.ts +30 -0
  958. package/system/dist/tls/index.d.ts +12 -0
  959. package/system/dist/tls/tls-actions.d.ts +49 -0
  960. package/system/dist/tls/tls-status.d.ts +57 -0
  961. package/system/dist/tls/uploaded-cert.d.ts +46 -0
  962. package/system/dist/wal-checkpoint-policy-BahrTtyD.mjs +186 -0
  963. package/system/dist/wal-checkpoint-policy-d2z2qPqx.js +233 -0
  964. package/system/dist/wal-checkpoint-worker.js +144 -0
  965. package/system/dist/wal-checkpoint-worker.mjs +143 -0
  966. package/system/dist/wal-maintenance-BmugbgS7.js +0 -0
  967. package/system/dist/wal-maintenance-Bnb2QzYG.mjs +0 -0
  968. package/system/dist/x509.es-BRiJgOvu.mjs +11939 -0
  969. package/system/dist/x509.es-WtnRNyYS.js +12076 -0
  970. package/system/package.json +516 -0
@@ -0,0 +1,1638 @@
1
+ const require_chunk = require("./chunk-Cek0wNdY.js");
2
+ let node_crypto = require("node:crypto");
3
+ let node_path = require("node:path");
4
+ node_path = require_chunk.__toESM(node_path);
5
+ let node_util = require("node:util");
6
+ let _camstack_types_addon = require("@camstack/types/addon");
7
+ let node_fs = require("node:fs");
8
+ node_fs = require_chunk.__toESM(node_fs);
9
+ let node_http = require("node:http");
10
+ let node_zlib = require("node:zlib");
11
+ let node_perf_hooks = require("node:perf_hooks");
12
+ //#region src/download/hosted-model-revisions.ts
13
+ /**
14
+ * GENERATED by `scripts/check-hosted-model-revisions.ts --write` — DO NOT EDIT.
15
+ *
16
+ * The revision of every artefact on the CamStack model mirror, keyed by its
17
+ * path under `https://huggingface.co/camstack/camstack-models/resolve/main/`: the sha256 (`lfs.oid`)
18
+ * of its weight file (`revisionWeightUrl`). `resolveFormatRevision` reads
19
+ * it for every catalog format hosted there (D743, D744). Regenerate after
20
+ * any upload to the mirror; the script without `--write` says when it is due.
21
+ */
22
+ var HOSTED_MODEL_REVISIONS = {
23
+ "animalClassification/animal-classifier/coreml/animal-classifier.mlpackage": "2194acb46c1a957c2db766cce0c6f7c295aafc8ad1983843dcb8bc95eac42a34",
24
+ "animalClassification/animal-classifier/onnx/animal-classifier.onnx": "2ccd51865c1d2d600ff68235f5e72a434cb89555197a872489a2357f50771768",
25
+ "animalClassification/animal-classifier/openvino/animal-classifier.xml": "30edf890ff200e8b5169e7a28fcebe148b0d6a5dd3eb570d7a4de89acc9bd63c",
26
+ "animalClassification/bird-classifier/coreml/bird-classifier.mlpackage": "09d5acd27abc89a139399b70ff6711094c05ace5edd6d40b67bf816a41d39a22",
27
+ "animalClassification/bird-classifier/onnx/bird-classifier.onnx": "64dd1b966628145219f2424b42b18b76b8dc33a0a9d9ce90b8c057397fa76da2",
28
+ "animalClassification/bird-classifier/openvino/bird-classifier.xml": "bef863425e1774fba8bf8809a4d690466eeaf183e8d9278493a584a436304339",
29
+ "animalClassification/bird-classifier/tflite/bird-classifier_edgetpu.tflite": "f5b37245cfda13909a34264df58784981aef8dde3bc8604e0ee42caeba29229c",
30
+ "audioClassification/yamnet/onnx/camstack-yamnet.onnx": "d7459a0aefffef8c1ccc60c8e0a0f0758a724fc1b55b47194b418029e938ea26",
31
+ "audioClassification/yamnet/openvino/camstack-yamnet.xml": "11d9e8f47f8af09245bf6a519bc9967b1ead9ac8f8e89d985289ac0fb07926b7",
32
+ "clip/siglip2/coreml/camstack-siglip2-b16-224-vision.mlpackage": "6fdf1936f91d40a4b9b4fcaabe5b2dcadfc6d8c0e76ab1cc9e18c38e95d60787",
33
+ "clip/siglip2/onnx/camstack-siglip2-b16-224-text.onnx": "df6ffc0c44a49648f903fbf6c46722de416447d065e63db97bd3f8edd9bfc411",
34
+ "clip/siglip2/openvino/camstack-siglip2-b16-224-text.xml": "a85203c195eccea00c9d31af5f3594733353cc6b3a3c2802b4e32dc0136f8dae",
35
+ "clip/siglip2/openvino/camstack-siglip2-b16-224-vision.xml": "2e190c41cfa980c8a7a24cb13ecdd71ae0a08eb8665c22a27314aec64e78f325",
36
+ "faceDetection/yunet/coreml/camstack-yunet-2023mar.mlpackage": "d6296bc3ae3048bf3815ef7df8ee934fde48018276c0b2278f93ba359556103b",
37
+ "faceDetection/yunet/onnx/camstack-yunet-2023mar.onnx": "55df63fd5a5128903ee2b6dd4315aa82979be9a1d6cf83cc154b74cd4bd2c42f",
38
+ "faceDetection/yunet/openvino/camstack-yunet-2023mar.xml": "c246c87702b346a9d1de7a70ea61b256d06c7db59bd895acb1aadeaba1985dff",
39
+ "faceDetection/yunet/tflite/camstack-yunet-2023mar_edgetpu.tflite": "b7214dafaf18b8a5c55c7ea502c783e6a356043c2900ff9e02515a368285e982",
40
+ "faceRecognition/auraface/coreml/camstack-auraface-r100.mlpackage": "c189aaf7d6758dafb1603b4ea7f7c2161b69639434ddbce800e0cc632b26d7e0",
41
+ "faceRecognition/auraface/onnx/camstack-auraface-r100.onnx": "1c050a0fd76a5770fb94bd35d1ff99648cb31385280d7fba43284b9b6e63277f",
42
+ "faceRecognition/auraface/openvino/camstack-auraface-r100.xml": "e8f53b3a4bc7d13520d561d2610887bffe8438fac71a496ec1cfcce2616734bb",
43
+ "objectDetection/yolo26/coreml/camstack-yolo26l-256.mlpackage": "87968708ab7ee99aac97d1d6644f6b70149b7b2c38b3f2c3c64326c3cc2333e2",
44
+ "objectDetection/yolo26/coreml/camstack-yolo26l-320.mlpackage": "f0a136258aa69978f5647e07ac4019a4f8c8745dc6d6500c8e3a2876d041f9e5",
45
+ "objectDetection/yolo26/coreml/camstack-yolo26l.mlpackage": "b53d9ce65fc0f84dd13e460bf2666362ac6854f645c897dd0e0c6e8691995146",
46
+ "objectDetection/yolo26/coreml/camstack-yolo26m-256.mlpackage": "bf1ac4cb5f2a3749815a36dde6d6e57ce0662a005ccefd435283d4e38c21298d",
47
+ "objectDetection/yolo26/coreml/camstack-yolo26m-320.mlpackage": "4cf582bf1b14fb7abf87f61a1cf198ad2626fedec32873224bc6f2411e6680b7",
48
+ "objectDetection/yolo26/coreml/camstack-yolo26m.mlpackage": "e9a3751fd3c60676ce94fba7d3d9e8cccfcc8711cd55025eb8837ad8b0fe1424",
49
+ "objectDetection/yolo26/coreml/camstack-yolo26n-256.mlpackage": "1c0565e40b4e04194561df09de4c007ccedd4d5d784adf2341f3af7c97f42cb9",
50
+ "objectDetection/yolo26/coreml/camstack-yolo26n-320.mlpackage": "b30bb5ced9c127f0a813c7740c451a1766226dde43e277e01eb9d298d44f17cd",
51
+ "objectDetection/yolo26/coreml/camstack-yolo26n.mlpackage": "1e176157d427b358db9d87613b1a57040d20c7d0b4a7de70e4477e162dd3d4c5",
52
+ "objectDetection/yolo26/coreml/camstack-yolo26s-256.mlpackage": "e4f3ba3ba99d9a068c4e064fd74427b8a2b56c5e1f56f56979886a493068fbd0",
53
+ "objectDetection/yolo26/coreml/camstack-yolo26s-320.mlpackage": "156d8db8d1f2b9d6bc23ce2e123889d6ad79a5ce866dfccc35c0d869df79db64",
54
+ "objectDetection/yolo26/coreml/camstack-yolo26s.mlpackage": "6d760c59e32daea2812258bd6db417ddfc2eb1be6184daef54ba349bd8d0d125",
55
+ "objectDetection/yolo26/coreml/camstack-yolo26x.mlpackage": "62871ed80cd80cf2b742d2a1ac3ff83f534d9f51039febcb966ee173851fcd5d",
56
+ "objectDetection/yolo26/onnx/camstack-yolo26l-256.onnx": "1a5a963e9b76a324e2fa0e111d96b23176e47a5337e12576a755b512f843592b",
57
+ "objectDetection/yolo26/onnx/camstack-yolo26l-320.onnx": "15ee305cb925934dd73d15a398cc76adf8a51ffa430b11da1ba61f3686eb24b3",
58
+ "objectDetection/yolo26/onnx/camstack-yolo26l.onnx": "62e55ec70eb11f19e75c519a10c1632e08d38a9ddb3229450156a6b423780bbc",
59
+ "objectDetection/yolo26/onnx/camstack-yolo26m-256.onnx": "3d2df9b07b06bfafc6487200674ecb899957e56acbf2ea64383ad477cab30072",
60
+ "objectDetection/yolo26/onnx/camstack-yolo26m-320.onnx": "6a4fc7a9a0c61cf2a401407805bb850b49dbe1faf1cf0ae2edc794a8bc61cc51",
61
+ "objectDetection/yolo26/onnx/camstack-yolo26m.onnx": "907982ada658a53736edfcbdde7e9cf0489a54c058da0deea106bcb2794fe6bc",
62
+ "objectDetection/yolo26/onnx/camstack-yolo26n-256.onnx": "352b15664cea1af55f80f96e9b7a0f8338ca2e6b6053bc27152ad82fc689cb58",
63
+ "objectDetection/yolo26/onnx/camstack-yolo26n-320.onnx": "22d8f1c749394509161b9053361dec19be23c3479f0386a50caba418e7e897a7",
64
+ "objectDetection/yolo26/onnx/camstack-yolo26n.onnx": "8f2e6c82ccbc63153c2284546880b1310d832d2b75efea67cb9cda1fa35da968",
65
+ "objectDetection/yolo26/onnx/camstack-yolo26s-256.onnx": "354ff62da4ffd763f1e7b8761c5d070c1d3f3eafc5221a1a52a3f5b8e651471b",
66
+ "objectDetection/yolo26/onnx/camstack-yolo26s-320.onnx": "465069e0eb3d44e45c2de2c57a57c9ff6f1466cda0816d7ca05ce15e388b0ae3",
67
+ "objectDetection/yolo26/onnx/camstack-yolo26s.onnx": "d2e7ed3e5ef3b7fac18628c63d2bef0d5ae144cb2c239b195eb90ff96437fed5",
68
+ "objectDetection/yolo26/onnx/camstack-yolo26x.onnx": "6d10ddc274ea5e6597c69471a3e122eee7a4cb2a831c9449b30b0e69f4349133",
69
+ "objectDetection/yolo26/openvino/camstack-yolo26l-256-int8.xml": "d9a65db447fa54dda9f039ed11861c12b8f88e9d9e3adb845afd3bf1a34ba2ff",
70
+ "objectDetection/yolo26/openvino/camstack-yolo26l-256.xml": "0c78828d4abe9858bb7ff543ee656adb874c11a76cbacbdcca7777d356be2ee3",
71
+ "objectDetection/yolo26/openvino/camstack-yolo26l-320-int8.xml": "9c441c07c7c2d47982b44a2f2d22af0d77ffd466f7279b843c9bbe21cd07a5d8",
72
+ "objectDetection/yolo26/openvino/camstack-yolo26l-320.xml": "0c78828d4abe9858bb7ff543ee656adb874c11a76cbacbdcca7777d356be2ee3",
73
+ "objectDetection/yolo26/openvino/camstack-yolo26l-fp16.xml": "653a3bf71753672f56a2c8dae65195c8c99029abb3d3d7a42e25860a2071df39",
74
+ "objectDetection/yolo26/openvino/camstack-yolo26l-int8.xml": "a6a760af97893569fa25bfac05bd3a65c70c643f232a0f24b380adcc2358efe4",
75
+ "objectDetection/yolo26/openvino/camstack-yolo26l.xml": "653a3bf71753672f56a2c8dae65195c8c99029abb3d3d7a42e25860a2071df39",
76
+ "objectDetection/yolo26/openvino/camstack-yolo26m-256-int8.xml": "01e7c969481cbe74ea21e137ce7a1dd04c7088557f95b0c4a6e618beb62aa5e0",
77
+ "objectDetection/yolo26/openvino/camstack-yolo26m-256.xml": "c5a4c729eceaec91f6af5077fa34b6f5cc17bc2130d07dc13ed883966e15902e",
78
+ "objectDetection/yolo26/openvino/camstack-yolo26m-320-int8.xml": "2b6be63ad9012c85976223ed46c63b80208479544f13221575f62c4b5a815314",
79
+ "objectDetection/yolo26/openvino/camstack-yolo26m-320.xml": "c5a4c729eceaec91f6af5077fa34b6f5cc17bc2130d07dc13ed883966e15902e",
80
+ "objectDetection/yolo26/openvino/camstack-yolo26m-fp16.xml": "4990e60c17e6e1158dca28750e7a50c3a6c72cac4fd1bbac73bba52ac3647c39",
81
+ "objectDetection/yolo26/openvino/camstack-yolo26m-int8.xml": "4aecf5a49612b372549b06b2d4075ef98abfa26d5aa1f7a665b785b9d5cf0074",
82
+ "objectDetection/yolo26/openvino/camstack-yolo26m.xml": "4990e60c17e6e1158dca28750e7a50c3a6c72cac4fd1bbac73bba52ac3647c39",
83
+ "objectDetection/yolo26/openvino/camstack-yolo26n-256-int8.xml": "6f5feaf3b5b6fa8d630af31a633ccba835f19686c22e8c6a43fc4c37329a91ea",
84
+ "objectDetection/yolo26/openvino/camstack-yolo26n-256.xml": "caf498d56ba2288a54734b4d2c73737f77261d1410357f25998e00655c661736",
85
+ "objectDetection/yolo26/openvino/camstack-yolo26n-320-int8.xml": "a3d2c76a0fb382f894830f049833c5e83c7ca6bcd83ff8a02b991dea9d76f409",
86
+ "objectDetection/yolo26/openvino/camstack-yolo26n-320.xml": "caf498d56ba2288a54734b4d2c73737f77261d1410357f25998e00655c661736",
87
+ "objectDetection/yolo26/openvino/camstack-yolo26n-fp16.xml": "77f9da9a6330b130d21e7d9d2338b8f82f3541491c24566b80b4ff2852559b2d",
88
+ "objectDetection/yolo26/openvino/camstack-yolo26n-int8.xml": "7effbdc301a965812ff6c1fa9df8ba50623dc43038ebbbceb2d325ff2afc1208",
89
+ "objectDetection/yolo26/openvino/camstack-yolo26n.xml": "77f9da9a6330b130d21e7d9d2338b8f82f3541491c24566b80b4ff2852559b2d",
90
+ "objectDetection/yolo26/openvino/camstack-yolo26s-256-int8.xml": "be5ade1dc4c0d295a1877f20ee4a4ab9ba8d4d1613e69381ede1a28f84ab4b04",
91
+ "objectDetection/yolo26/openvino/camstack-yolo26s-256.xml": "8e4c513ffe7d571ed1e9545a990a43f6683a8bde04bdc580fdfd8c62e4e3193f",
92
+ "objectDetection/yolo26/openvino/camstack-yolo26s-320-int8.xml": "c02030199cda5083e41599c7aa9dd64d03597e033f03b61c62194de49719de65",
93
+ "objectDetection/yolo26/openvino/camstack-yolo26s-320.xml": "8e4c513ffe7d571ed1e9545a990a43f6683a8bde04bdc580fdfd8c62e4e3193f",
94
+ "objectDetection/yolo26/openvino/camstack-yolo26s-fp16.xml": "bb9355b5e559d646256ad80e4fc2f965c1c1f4905da3c014b7f15bb3d48d9d34",
95
+ "objectDetection/yolo26/openvino/camstack-yolo26s-int8.xml": "4df51b87f65d930ec947d5e7fd2131a9289553083d311d353ed76662c3d47d41",
96
+ "objectDetection/yolo26/openvino/camstack-yolo26s.xml": "bb9355b5e559d646256ad80e4fc2f965c1c1f4905da3c014b7f15bb3d48d9d34",
97
+ "objectDetection/yolo26/openvino/camstack-yolo26x-fp16.xml": "053f64a4dc9c3b81d0b6c1a567c0d0b403eeb33a6771170712c4de1c09fc6f15",
98
+ "objectDetection/yolo26/openvino/camstack-yolo26x-int8.xml": "f0d1f7650af608ede2529fc8272e0db73a3585f46a2ae0d3f954ab8f34d5eda7",
99
+ "objectDetection/yolo26/openvino/camstack-yolo26x.xml": "053f64a4dc9c3b81d0b6c1a567c0d0b403eeb33a6771170712c4de1c09fc6f15",
100
+ "objectDetection/yolov9/coreml/camstack-yolov9c-320.mlpackage": "7999f25b805f92c732a450625021cda97b7185f8c9f98be28be82be1529fe171",
101
+ "objectDetection/yolov9/coreml/camstack-yolov9c-640.mlpackage": "9889ababc524db385a4305ebc1a42ada4dddc8028198d040fbba77c504228932",
102
+ "objectDetection/yolov9/coreml/camstack-yolov9m-320.mlpackage": "e0e0298051c71c79390f1a05f71a2bb882af52c096c70d69674afb84077f6de4",
103
+ "objectDetection/yolov9/coreml/camstack-yolov9m-640.mlpackage": "4c56eef689435b427c53e92e918be386781024c9b77492f9e486dcdd8ea3570c",
104
+ "objectDetection/yolov9/coreml/camstack-yolov9s-320.mlpackage": "6408badb44161268a337f87586ad82f40e4e315a58be460a648407cc38097675",
105
+ "objectDetection/yolov9/coreml/camstack-yolov9s-640.mlpackage": "9f68b8d418b0832e9788f115e2dfabc6ff54fbe5244815adafa0bd9f98204755",
106
+ "objectDetection/yolov9/coreml/camstack-yolov9t-320.mlpackage": "531aa2d14e7e321f2c90219b966cc3781781d0304c7bed7e6c3b75adaa2ada86",
107
+ "objectDetection/yolov9/coreml/camstack-yolov9t-640.mlpackage": "53dfec9857b3c9922fcbd5e9f88f34ed79de26d9bbcf0d705a1c7a4e5ac93398",
108
+ "objectDetection/yolov9/onnx/camstack-yolov9c-320.onnx": "41b48ef6b39f76340c9a2d40182eddf46ab311b68efbdf637148358f27f1f351",
109
+ "objectDetection/yolov9/onnx/camstack-yolov9c-640.onnx": "4b89e489c4f724ae6c7f271350c9bfd4c800c535e1699f2d6b2d7714293bb695",
110
+ "objectDetection/yolov9/onnx/camstack-yolov9m-320.onnx": "602acf6a2189ad713e5aa0393a3b47c04c8303d6907762f66424f168c3e1e55b",
111
+ "objectDetection/yolov9/onnx/camstack-yolov9m-640.onnx": "d0e69881f62ad156ccbe8699611ae2bd4e569431a9c020b3b6a681efdcd1cfea",
112
+ "objectDetection/yolov9/onnx/camstack-yolov9s-320.onnx": "e06ee6345026ab95f90f5f367b01164654376725fa8e263067ebb9f3417f89c3",
113
+ "objectDetection/yolov9/onnx/camstack-yolov9s-640.onnx": "9113734de682b6b9147b8ed331684d4dc65ddc58d33dd95a00d507c88e82b5c4",
114
+ "objectDetection/yolov9/onnx/camstack-yolov9t-320.onnx": "6c0b0a302a5aaabaf17749a3bda15588a0b196d6f16363198b678c68d2aa5d17",
115
+ "objectDetection/yolov9/onnx/camstack-yolov9t-640.onnx": "fd025ab7bf4d81d506a0561917813431dabe3d673aea4182ff61d7e5c803c2c8",
116
+ "objectDetection/yolov9/openvino/camstack-yolov9c-320-fp16.xml": "3bacbbd621df5570d25dc28b4371cd46847f252743a5246481efffbbc63b5c31",
117
+ "objectDetection/yolov9/openvino/camstack-yolov9c-320-int8.xml": "7b58212310486656775c46f94dddcc2b123e44a0eb1714fd83e629f76513e8a7",
118
+ "objectDetection/yolov9/openvino/camstack-yolov9c-640-fp16.xml": "702060a1904f8de7eb68b72ad5024976767ba546c3dc941f8b7c2e5d1a236d0d",
119
+ "objectDetection/yolov9/openvino/camstack-yolov9c-640-int8.xml": "efa8039469d645709b5e0d1df1ee5bad436ae9991daa0180acf3fae5320fd6c4",
120
+ "objectDetection/yolov9/openvino/camstack-yolov9m-320-fp16.xml": "d381e5981e08bad4b8333bba3db48b4c0885883eb1bd524c71e69e2d8b745eaf",
121
+ "objectDetection/yolov9/openvino/camstack-yolov9m-320-int8.xml": "255d49106c59b6974d8edd15dab73fecc33dd8f97a1701b5a75d8bdf98685e5e",
122
+ "objectDetection/yolov9/openvino/camstack-yolov9m-640-fp16.xml": "a64e8867a406c448e65fecea16932d759d85249427c6b43770387904d980d6aa",
123
+ "objectDetection/yolov9/openvino/camstack-yolov9m-640-int8.xml": "ae01a866b2daf2584799b4ee355e59fc83358360b94897d63b7c9765c61001b4",
124
+ "objectDetection/yolov9/openvino/camstack-yolov9s-320-fp16.xml": "d07a908f4e44d3b482fad99fd280e1eff7f12546848b3acdfd478407a12fbaf6",
125
+ "objectDetection/yolov9/openvino/camstack-yolov9s-320-int8.xml": "b8307a4e3cccd8dd784ec11eecf1a1314826d9d96940aa4e4fb425a9002deb81",
126
+ "objectDetection/yolov9/openvino/camstack-yolov9s-640-fp16.xml": "19448578cde92005a143b8de9655e767032e608cea496e154273ed05a97bed1f",
127
+ "objectDetection/yolov9/openvino/camstack-yolov9s-640-int8.xml": "9b87aad33816d9b6e27261f246ec651466c0a664b37e6122449ca83ecd8371fa",
128
+ "objectDetection/yolov9/openvino/camstack-yolov9t-320-fp16.xml": "2f4dc7d06d49af8008fb3da0cdc04a35fdfbc5fafbb2f069822edd826fcc49de",
129
+ "objectDetection/yolov9/openvino/camstack-yolov9t-320-int8.xml": "ee465e0ee5c6ad7c4edc481b506a076045b82236ada80efcf8601a6ba0a7ee86",
130
+ "objectDetection/yolov9/openvino/camstack-yolov9t-640-fp16.xml": "d4dd2278941ccb210d0763d822353f6d951c6a4f4f5a1604d7e3536ce6ffb954",
131
+ "objectDetection/yolov9/openvino/camstack-yolov9t-640-int8.xml": "be2c95951a9f3a6d408bbabd551c99b8a6190f9ff659ae614b9e58cf0e51202c",
132
+ "objectDetection/yolov9/tflite/yolov9-s-relu6-best_320_int8_edgetpu.tflite": "49a38e77439b475d0d259a6d9fe7ea32fcaa58de3748499dd120aceebad9c591",
133
+ "objectDetection/yolov9/tflite/yolov9-s-relu6-tpumax_512_int8_edgetpu.tflite": "f634f60259101556825fd69662f96282e74364b507f83e6382cc34d5d0e6170e",
134
+ "packageDetection/rfdetr-package/coreml/camstack-rfdetr-package.mlpackage": "73e42f03d66011a311bd83a0a3d1890e7eb1b9b2ba2b5688552a5d4fd60e0e72",
135
+ "packageDetection/rfdetr-package/onnx/camstack-rfdetr-package.onnx": "5af96c6b5936f179e317c9e3915b7c7f74ea3625355f97f6a071c3cd5af2475c",
136
+ "packageDetection/rfdetr-package/openvino/camstack-rfdetr-package.xml": "e2cb5bbccb7809d5c7e691a957bc5e008084119bdf29e2c95d6b6b0791e3061a",
137
+ "plateDetection/yolox-tiny-plate/coreml/camstack-yolox-tiny-plate.mlpackage": "a26ae8fe32e458f7396d56bed83b1243e6067f435b08cd6da134273b9151447d",
138
+ "plateDetection/yolox-tiny-plate/onnx/camstack-yolox-tiny-plate.onnx": "f57b5618eafe91bab19bbdcd9af9b0671dbdba30d76a6e0a3a86b0db24bb1ae6",
139
+ "plateDetection/yolox-tiny-plate/openvino/camstack-yolox-tiny-plate.xml": "83b808eb8fcda6f852477e2dbcdd5cad29ab6a8a58e90017714f167c6a345c27",
140
+ "plateDetection/yolox-tiny-plate/tflite/camstack-yolox-tiny-plate_edgetpu.tflite": "0e091263e9c93063f9da822387860a9cd21c0a554e714de276140921487b8e4d",
141
+ "plateRecognition/cct-s-v2-global/coreml/camstack-cct-s-v2-global.mlpackage": "31b9aba671d98ebd847f43a9e2555f7664c70ad11c3e42fdc0add528463fd3ee",
142
+ "plateRecognition/cct-s-v2-global/onnx/camstack-cct-s-v2-global.onnx": "79c3c00f906857e63453bc16cef6b4a0d34821dff685328eff565fd2da559d21",
143
+ "plateRecognition/cct-s-v2-global/openvino/camstack-cct-s-v2-global.xml": "7357db8b5f1c71a8af9376f2e35435bd0c0361f5193b7e02787f513514ecb8ab",
144
+ "segmentation/yolo26-seg/coreml/camstack-yolo26m-seg.mlpackage": "77ac5c932948df6c6d30f232b40302ccbdfc00f97f7fa78a90dbfb7cdb97608f",
145
+ "segmentation/yolo26-seg/coreml/camstack-yolo26n-seg.mlpackage": "81863a6503294d06063a3320de0a45d543d62b9a3d11009c8d54f5d626abd2a0",
146
+ "segmentation/yolo26-seg/coreml/camstack-yolo26s-seg.mlpackage": "47ee5d620a141bffd594afaf84c4362de2ccf74e036b71ec55ae53428ffbdde8",
147
+ "segmentation/yolo26-seg/onnx/camstack-yolo26m-seg.onnx": "c419fdc8cb8e65c8707586f461d59910487392a5b01711cac674559275df1f7b",
148
+ "segmentation/yolo26-seg/onnx/camstack-yolo26n-seg.onnx": "9f2480a359c8a44541b931d44c4a47898122a5b16ce78d8e5611351b1d4531b8",
149
+ "segmentation/yolo26-seg/onnx/camstack-yolo26s-seg.onnx": "88454cc2f5c2ebaf197536568ffb2ae146a48a85c5c053fd8c9f72f117262313",
150
+ "segmentation/yolo26-seg/openvino/camstack-yolo26m-seg.xml": "08eea0ff1ff6b66a03eb255b9a9ce6952908c92c4684347672d666731148b28f",
151
+ "segmentation/yolo26-seg/openvino/camstack-yolo26n-seg.xml": "d592be6c57fb6f0fc00277327b2421d7ec91fbc0da050bd97fab227df1158c5e",
152
+ "segmentation/yolo26-seg/openvino/camstack-yolo26s-seg.xml": "c4508b20dbfe644220850cfc294e99c9fc396bd61443fcc8db8801a4388e9d99",
153
+ "segmentationRefiner/u2netp/coreml/camstack-u2netp.mlpackage": "67a1172b99e8b34493482b0095bcfe9960d423315a9bfe619b149ea7ba187e05",
154
+ "segmentationRefiner/u2netp/onnx/camstack-u2netp.onnx": "309c8469258dda742793dce0ebea8e6dd393174f89934733ecc8b14c76f4ddd8",
155
+ "segmentationRefiner/u2netp/openvino/camstack-u2netp.xml": "d060dec1fd64855daef223f635cb280f174415785318d4dc78af0d86de025397",
156
+ "vehicleClassification/vehicle-type-v1/coreml/vehicle-type-v1.mlpackage": "26cf66168010daa0a1d33a2fc12305e0e7465c977840861b4bf470c8cae8a7b8",
157
+ "vehicleClassification/vehicle-type-v1/onnx/vehicle-type-v1.onnx": "5153b77de54286bcfefddfdfec9e3c1101b10c30bc33e9181cf8c04e0156818f",
158
+ "vehicleClassification/vehicle-type-v1/openvino/vehicle-type-v1.xml": "bf352f4a602d5e6ef5b6df5140972ef68e79076be397a90c10f1efdda59f4a1e"
159
+ };
160
+ //#endregion
161
+ //#region src/download/model-downloader.ts
162
+ function isNonEmptyFile(filePath) {
163
+ return node_fs.existsSync(filePath) && node_fs.statSync(filePath).size > 0;
164
+ }
165
+ /**
166
+ * Sibling files of a single-file (non-directory) format — extra files the
167
+ * format needs, fetched from the same remote directory as `url` and stored
168
+ * flat alongside the main file in `modelsDir`. Catalog-declared via
169
+ * `formatEntry.files`, e.g. OpenVINO IR lists its `.bin` weights next to the
170
+ * `.xml`. The downloader stays format-agnostic; the convention lives in the
171
+ * catalog data (like `MLPACKAGE_FILES` for the directory case).
172
+ */
173
+ function siblingFilesFor(formatEntry) {
174
+ return formatEntry.isDirectory ? [] : formatEntry.files ?? [];
175
+ }
176
+ /** Resolve a sibling's remote URL relative to the main file's directory. */
177
+ function siblingUrl(mainUrl, sibling) {
178
+ return mainUrl.replace(/[^/]+$/, sibling);
179
+ }
180
+ /**
181
+ * The relative filenames a model format occupies under `modelsDir` — the main
182
+ * file (URL basename, or `${id}.${format}` fallback), its declared siblings
183
+ * (e.g. the OpenVINO `.bin` next to the `.xml`), and any `extraFiles`. For a
184
+ * directory bundle the single entry is the bundle dir itself (tar/extract
185
+ * recurse into it).
186
+ *
187
+ * Used by model distribution (P2): the hub tars exactly these names from its
188
+ * `modelsDir` and the agent untars them into its own `modelsDir`, so both ends
189
+ * agree on the on-disk layout without re-deriving it.
190
+ */
191
+ function collectModelFiles(entry, format) {
192
+ const formatEntry = entry.formats[format];
193
+ if (!formatEntry) return [];
194
+ const names = [formatEntry.url.split("/").pop() ?? `${entry.id}.${format}`, ...siblingFilesFor(formatEntry)];
195
+ for (const extra of entry.extraFiles ?? []) names.push(extra.filename);
196
+ return names;
197
+ }
198
+ /**
199
+ * Fetch headers for a model download. No credential: the CamStack model repos
200
+ * are public, and no secret is ever read from the environment (operator rule —
201
+ * a token, if a gated source ever needs one, is a keychain-backed setting).
202
+ */
203
+ function buildHeaders(_url) {
204
+ return { "User-Agent": "CamStack/1.0" };
205
+ }
206
+ var huggingFaceObserver = null;
207
+ /**
208
+ * Register the one observer of Hugging Face reachability in THIS process (the
209
+ * hub wires it to the registry-unreachable alert). Pass `null` to clear. No
210
+ * polling: it only hears the downloads that were being made anyway.
211
+ */
212
+ function setHuggingFaceReachabilityObserver(observer) {
213
+ huggingFaceObserver = observer;
214
+ }
215
+ function isHuggingFaceUrl(url) {
216
+ try {
217
+ const host = new URL(url).hostname;
218
+ return host === "huggingface.co" || host.endsWith(".huggingface.co") || host.endsWith(".hf.co");
219
+ } catch {
220
+ return false;
221
+ }
222
+ }
223
+ function reportHuggingFace(url, outcome) {
224
+ if (huggingFaceObserver === null || !isHuggingFaceUrl(url)) return;
225
+ huggingFaceObserver(outcome);
226
+ }
227
+ function reportHuggingFaceResponse(url, status) {
228
+ reportHuggingFace(url, {
229
+ reached: status < 500,
230
+ detail: `HTTP ${String(status)}`
231
+ });
232
+ }
233
+ function reportHuggingFaceFailure(url, error) {
234
+ reportHuggingFace(url, {
235
+ reached: false,
236
+ detail: error instanceof Error ? error.message : String(error)
237
+ });
238
+ }
239
+ /**
240
+ * A download that the server ANSWERED with a non-2xx status. Typed so a caller
241
+ * can tell "the file is not there" (404/410 — nothing a retry changes) from
242
+ * "the server was unreachable" by the STATUS, never by matching the message:
243
+ * the embedding encoder's requirements gate (D649) sends the first to a
244
+ * terminal state after a bounded number of attempts and only cools down on
245
+ * the second.
246
+ */
247
+ var ModelDownloadHttpError = class extends Error {
248
+ status;
249
+ url;
250
+ constructor(status, url, verb) {
251
+ super(`HTTP ${String(status)} ${verb} ${url}`);
252
+ this.status = status;
253
+ this.url = url;
254
+ this.name = "ModelDownloadHttpError";
255
+ }
256
+ };
257
+ /** True when `err` is a {@link ModelDownloadHttpError} — same process only. */
258
+ function isModelDownloadHttpError(err) {
259
+ return err instanceof ModelDownloadHttpError;
260
+ }
261
+ var DEFAULT_MAX_REDIRECTS = 5;
262
+ function normalizeDownloadOptions(third) {
263
+ if (typeof third === "function") return { onProgress: third };
264
+ return third ?? {};
265
+ }
266
+ function isRedirectStatus(status) {
267
+ return status === 301 || status === 302 || status === 303 || status === 307 || status === 308;
268
+ }
269
+ function resolveRedirectUrl(current, location) {
270
+ return new URL(location, current);
271
+ }
272
+ async function downloadFile(url, destPath, onProgressOrOptions) {
273
+ if (node_fs.existsSync(destPath)) return destPath;
274
+ const opts = normalizeDownloadOptions(onProgressOrOptions);
275
+ const fetchImpl = opts.fetchImpl ?? fetch;
276
+ const maxRedirects = opts.maxRedirects ?? DEFAULT_MAX_REDIRECTS;
277
+ node_fs.mkdirSync(node_path.dirname(destPath), { recursive: true });
278
+ const tmpPath = destPath + ".downloading";
279
+ try {
280
+ let current = url;
281
+ const seen = /* @__PURE__ */ new Set();
282
+ let response;
283
+ const manual = opts.redirectPolicy !== void 0;
284
+ for (let hop = 0; hop <= maxRedirects; hop++) {
285
+ const parsed = new URL(current);
286
+ if (opts.redirectPolicy) opts.redirectPolicy(parsed, hop);
287
+ if (seen.has(parsed.href)) throw new Error(`Redirect loop detected at ${parsed.href}`);
288
+ seen.add(parsed.href);
289
+ const controller = opts.timeoutMs !== void 0 ? new AbortController() : void 0;
290
+ const timer = controller && opts.timeoutMs !== void 0 ? setTimeout(() => controller.abort(), opts.timeoutMs) : void 0;
291
+ try {
292
+ response = await fetchImpl(current, {
293
+ redirect: manual ? "manual" : "follow",
294
+ headers: buildHeaders(current),
295
+ ...controller ? { signal: controller.signal } : {}
296
+ });
297
+ reportHuggingFaceResponse(current, response.status);
298
+ } catch (fetchError) {
299
+ reportHuggingFaceFailure(current, fetchError);
300
+ throw fetchError;
301
+ } finally {
302
+ if (timer) clearTimeout(timer);
303
+ }
304
+ if (manual && isRedirectStatus(response.status)) {
305
+ const location = response.headers.get("location");
306
+ if (!location) throw new Error(`Redirect ${response.status} missing Location header`);
307
+ if (hop >= maxRedirects) throw new Error(`Too many redirects (max ${maxRedirects}) downloading ${url}`);
308
+ current = resolveRedirectUrl(current, location).href;
309
+ continue;
310
+ }
311
+ break;
312
+ }
313
+ if (!response) throw new Error(`No response downloading ${url}`);
314
+ if (manual && isRedirectStatus(response.status)) throw new Error(`Too many redirects (max ${maxRedirects}) downloading ${url}`);
315
+ if (!response.ok) throw new ModelDownloadHttpError(response.status, url, "downloading");
316
+ if (!response.body) throw new Error(`No response body from ${url}`);
317
+ const total = parseInt(response.headers.get("content-length") ?? "0", 10);
318
+ let downloaded = 0;
319
+ const fileStream = node_fs.createWriteStream(tmpPath);
320
+ const reader = response.body.getReader();
321
+ try {
322
+ for (;;) {
323
+ const { done, value } = await reader.read();
324
+ if (done || !value) break;
325
+ downloaded += value.length;
326
+ if (opts.maxBytes !== void 0 && downloaded > opts.maxBytes) throw new Error(`Downloaded ${downloaded} bytes exceeds the ${opts.maxBytes}-byte limit`);
327
+ fileStream.write(value);
328
+ opts.onProgress?.(downloaded, total);
329
+ }
330
+ } finally {
331
+ fileStream.end();
332
+ await new Promise((resolve, reject) => {
333
+ fileStream.on("finish", resolve);
334
+ fileStream.on("error", reject);
335
+ });
336
+ }
337
+ node_fs.renameSync(tmpPath, destPath);
338
+ return destPath;
339
+ } catch (err) {
340
+ try {
341
+ node_fs.unlinkSync(tmpPath);
342
+ } catch {}
343
+ throw err;
344
+ }
345
+ }
346
+ /**
347
+ * Fetch JSON from a URL using native fetch().
348
+ */
349
+ async function fetchJson(url) {
350
+ let response;
351
+ try {
352
+ response = await fetch(url, {
353
+ redirect: "follow",
354
+ headers: buildHeaders(url)
355
+ });
356
+ } catch (fetchError) {
357
+ reportHuggingFaceFailure(url, fetchError);
358
+ throw fetchError;
359
+ }
360
+ reportHuggingFaceResponse(url, response.status);
361
+ if (!response.ok) throw new ModelDownloadHttpError(response.status, url, "fetching");
362
+ return response.json();
363
+ }
364
+ /**
365
+ * Download a model with fallback URLs and optional SHA256 verification.
366
+ * Legacy API preserved for backward compatibility -- delegates to downloadFile().
367
+ */
368
+ async function downloadModel(options) {
369
+ const { url, fallbackUrls = [], destDir, filename, expectedSha256, onProgress } = options;
370
+ const fname = filename ?? url.split("/").pop() ?? "model.bin";
371
+ const destPath = node_path.join(destDir, fname);
372
+ if (node_fs.existsSync(destPath)) return {
373
+ filePath: destPath,
374
+ downloadedBytes: 0,
375
+ fromCache: true
376
+ };
377
+ node_fs.mkdirSync(destDir, { recursive: true });
378
+ const urls = [url, ...fallbackUrls];
379
+ let lastError = null;
380
+ for (const tryUrl of urls) try {
381
+ await downloadFile(tryUrl, destPath, onProgress);
382
+ if (expectedSha256) {
383
+ const hash = await computeSha256(destPath);
384
+ if (hash !== expectedSha256) {
385
+ node_fs.unlinkSync(destPath);
386
+ throw new Error(`SHA256 mismatch: expected ${expectedSha256}, got ${hash}`);
387
+ }
388
+ }
389
+ return {
390
+ filePath: destPath,
391
+ downloadedBytes: node_fs.statSync(destPath).size,
392
+ fromCache: false
393
+ };
394
+ } catch (e) {
395
+ lastError = e;
396
+ if (node_fs.existsSync(destPath)) node_fs.unlinkSync(destPath);
397
+ }
398
+ throw lastError ?? /* @__PURE__ */ new Error(`Failed to download model from ${url}`);
399
+ }
400
+ async function computeSha256(filePath) {
401
+ return new Promise((resolve, reject) => {
402
+ const hash = (0, node_crypto.createHash)("sha256");
403
+ const stream = node_fs.createReadStream(filePath);
404
+ stream.on("data", (chunk) => hash.update(chunk));
405
+ stream.on("end", () => resolve(hash.digest("hex")));
406
+ stream.on("error", reject);
407
+ });
408
+ }
409
+ /**
410
+ * Download every file in a HuggingFace directory bundle (e.g. `.mlpackage`)
411
+ * atomically. `knownFiles` lists the relative paths inside the directory; a
412
+ * bundle that declares none is listed through the Hugging Face tree API. The
413
+ * staging directory replaces `destDir` only when every file arrived, so a
414
+ * bundle already on disk keeps serving until then.
415
+ */
416
+ async function downloadDirectory(url, destDir, knownFiles, onProgress) {
417
+ const match = url.match(/huggingface\.co\/([^/]+\/[^/]+)\/resolve\/main\/(.+)/);
418
+ if (!match) throw new Error(`Cannot parse HuggingFace URL: ${url}`);
419
+ const [, repo, dirPath] = match;
420
+ if (repo === void 0 || dirPath === void 0) throw new Error(`Cannot parse HuggingFace URL: ${url}`);
421
+ const relativePaths = knownFiles !== void 0 && knownFiles.length > 0 ? knownFiles : (await listHfFiles(repo, dirPath)).map((f) => f.substring(dirPath.length + 1));
422
+ if (relativePaths.length === 0) throw new Error(`No files found in HuggingFace directory: ${dirPath}`);
423
+ const files = relativePaths.map((f) => ({
424
+ relativePath: f,
425
+ fileUrl: `https://huggingface.co/${repo}/resolve/main/${dirPath}/${f}`
426
+ }));
427
+ const tmpDir = destDir + ".downloading";
428
+ node_fs.rmSync(tmpDir, {
429
+ recursive: true,
430
+ force: true
431
+ });
432
+ node_fs.mkdirSync(tmpDir, { recursive: true });
433
+ let totalDownloaded = 0;
434
+ try {
435
+ for (const file of files) {
436
+ const destPath = node_path.join(tmpDir, file.relativePath);
437
+ node_fs.mkdirSync(node_path.dirname(destPath), { recursive: true });
438
+ await downloadFile(file.fileUrl, destPath, (downloaded, _total) => {
439
+ onProgress?.(totalDownloaded + downloaded, void 0);
440
+ });
441
+ totalDownloaded += node_fs.statSync(destPath).size;
442
+ }
443
+ node_fs.rmSync(destDir, {
444
+ recursive: true,
445
+ force: true
446
+ });
447
+ node_fs.renameSync(tmpDir, destDir);
448
+ } catch (err) {
449
+ node_fs.rmSync(tmpDir, {
450
+ recursive: true,
451
+ force: true
452
+ });
453
+ throw err;
454
+ }
455
+ }
456
+ function isHfTreeEntry(value) {
457
+ return typeof value === "object" && value !== null && "type" in value && typeof value.type === "string" && "path" in value && typeof value.path === "string";
458
+ }
459
+ /** Every file path (repo-relative) under `dirPath`, recursively, via the HF tree API. */
460
+ async function listHfFiles(repo, dirPath) {
461
+ const listing = await fetchJson(`https://huggingface.co/api/models/${repo}/tree/main/${dirPath}`);
462
+ if (!Array.isArray(listing)) throw new Error(`Unexpected HuggingFace tree for ${dirPath}`);
463
+ const files = [];
464
+ for (const entry of listing) {
465
+ if (!isHfTreeEntry(entry)) continue;
466
+ if (entry.type === "file") files.push(entry.path);
467
+ else if (entry.type === "directory") files.push(...await listHfFiles(repo, entry.path));
468
+ }
469
+ return files;
470
+ }
471
+ /**
472
+ * Where a node records the catalog `revision` of the format it downloaded:
473
+ * a sibling of the file or bundle, `<name>.revision` (D743). Outside the
474
+ * bundle, so a `.mlpackage` keeps exactly the hosted files.
475
+ */
476
+ function revisionRecordPath(modelPath) {
477
+ return `${modelPath}.revision`;
478
+ }
479
+ function readRevisionRecord(modelPath) {
480
+ try {
481
+ return node_fs.readFileSync(revisionRecordPath(modelPath), "utf8").trim();
482
+ } catch {
483
+ return null;
484
+ }
485
+ }
486
+ /** The CamStack model mirror. Every artefact under it has a generated revision. */
487
+ var HOSTED_MODEL_MIRROR_PREFIX = (0, _camstack_types_addon.hfModelUrl)(_camstack_types_addon.HF_REPO, "");
488
+ /**
489
+ * The revision a format must be at — the ONE rule every model download path
490
+ * reads (D743, D744). An inline `revision` wins; otherwise a format hosted on
491
+ * the CamStack mirror takes the revision generated for its path from the
492
+ * mirror's LFS metadata (`hosted-model-revisions.ts`); anything else has none.
493
+ */
494
+ function resolveFormatRevision(formatEntry) {
495
+ if (formatEntry.revision !== void 0) return formatEntry.revision;
496
+ if (!formatEntry.url.startsWith(HOSTED_MODEL_MIRROR_PREFIX)) return void 0;
497
+ return HOSTED_MODEL_REVISIONS[formatEntry.url.slice(HOSTED_MODEL_MIRROR_PREFIX.length)];
498
+ }
499
+ /** The member of a Core ML package that holds its weights. */
500
+ var COREML_WEIGHT_MEMBER = "Data/com.apple.CoreML/weights/weight.bin";
501
+ function revisionWeightFile(formatEntry) {
502
+ if (formatEntry.isDirectory) return formatEntry.url.endsWith(".mlpackage") ? {
503
+ in: "bundle",
504
+ member: COREML_WEIGHT_MEMBER
505
+ } : null;
506
+ const weights = siblingFilesFor(formatEntry).find((f) => f.endsWith(".bin"));
507
+ return weights !== void 0 ? {
508
+ in: "sibling",
509
+ name: weights
510
+ } : { in: "main" };
511
+ }
512
+ /** Where the revision's weight file is hosted — what the mirror's `lfs.oid` describes. */
513
+ function revisionWeightUrl(formatEntry) {
514
+ const weights = revisionWeightFile(formatEntry);
515
+ if (weights === null) return null;
516
+ switch (weights.in) {
517
+ case "bundle": return `${formatEntry.url}/${weights.member}`;
518
+ case "sibling": return siblingUrl(formatEntry.url, weights.name);
519
+ case "main": return formatEntry.url;
520
+ }
521
+ }
522
+ function revisionWeightPath(modelsDir, modelPath, formatEntry) {
523
+ const weights = revisionWeightFile(formatEntry);
524
+ if (weights === null) return null;
525
+ switch (weights.in) {
526
+ case "bundle": return node_path.join(modelPath, weights.member);
527
+ case "sibling": return node_path.join(modelsDir, weights.name);
528
+ case "main": return modelPath;
529
+ }
530
+ }
531
+ /**
532
+ * True when the copy at `modelPath` is RECORDED at the revision the format
533
+ * must be at. A format without a revision is current whenever it is present
534
+ * (the behaviour before revisions existed); with one, the node's record must
535
+ * match it — no record means the copy has not been proven current yet.
536
+ */
537
+ function isCurrentRevision(modelPath, formatEntry) {
538
+ const revision = resolveFormatRevision(formatEntry);
539
+ return revision === void 0 || readRevisionRecord(modelPath) === revision;
540
+ }
541
+ function writeRevisionRecord(modelPath, revision) {
542
+ if (revision === void 0) return;
543
+ const record = revisionRecordPath(modelPath);
544
+ const tmp = `${record}.tmp`;
545
+ node_fs.writeFileSync(tmp, `${revision}\n`);
546
+ node_fs.renameSync(tmp, record);
547
+ }
548
+ /**
549
+ * Prove an unrecorded (or differently recorded) copy current by hashing its
550
+ * weight file: when it IS the revision, record it and skip the download. This
551
+ * is what keeps a new revision from re-downloading every copy that already
552
+ * holds the right bytes — a copy fetched before revisions existed, one that a
553
+ * hub distributed, one fetched before the catalog caught up with the mirror.
554
+ */
555
+ async function adoptByHash(modelsDir, modelPath, formatEntry) {
556
+ const revision = resolveFormatRevision(formatEntry);
557
+ if (revision === void 0) return false;
558
+ const weights = revisionWeightPath(modelsDir, modelPath, formatEntry);
559
+ if (weights === null || !isNonEmptyFile(weights)) return false;
560
+ if (await computeSha256(weights) !== revision) return false;
561
+ writeRevisionRecord(modelPath, revision);
562
+ return true;
563
+ }
564
+ /** True when every file of the format is on disk, whatever revision it holds. */
565
+ function isCompleteCopy(modelsDir, modelPath, formatEntry) {
566
+ if (!node_fs.existsSync(modelPath)) return false;
567
+ if (formatEntry.isDirectory) return node_fs.existsSync(node_path.join(modelPath, "Manifest.json"));
568
+ if (node_fs.statSync(modelPath).size <= 0) return false;
569
+ return siblingFilesFor(formatEntry).every((f) => isNonEmptyFile(node_path.join(modelsDir, f)));
570
+ }
571
+ /**
572
+ * Replace a single-file format and its siblings that are already on disk.
573
+ * `downloadFile` keeps an existing file, so every file is fetched to a
574
+ * `.updating` name first and moved over the old one only when ALL of them
575
+ * arrived: a failed fetch leaves the old copy serving.
576
+ */
577
+ async function replaceSingleFileFormat(url, modelPath, modelsDir, siblings, onProgress) {
578
+ const parts = [{
579
+ url,
580
+ dest: modelPath
581
+ }, ...siblings.map((f) => ({
582
+ url: siblingUrl(url, f),
583
+ dest: node_path.join(modelsDir, f)
584
+ }))].map((p) => ({
585
+ ...p,
586
+ staged: `${p.dest}.updating`
587
+ }));
588
+ try {
589
+ for (const [i, part] of parts.entries()) {
590
+ node_fs.rmSync(part.staged, { force: true });
591
+ await downloadFile(part.url, part.staged, i === 0 ? (downloaded, total) => onProgress?.(downloaded, total === 0 ? void 0 : total) : void 0);
592
+ }
593
+ } catch (err) {
594
+ for (const part of parts) node_fs.rmSync(part.staged, { force: true });
595
+ throw err;
596
+ }
597
+ for (const part of parts) node_fs.renameSync(part.staged, part.dest);
598
+ }
599
+ /**
600
+ * Resolve a `ModelCatalogEntry` against `modelsDir`: download model file
601
+ * (or directory bundle) + extra files (labels JSON, charset dict, …),
602
+ * skip if already on disk. Returns the local model path.
603
+ */
604
+ async function ensureModel(modelsDir, entry, format, onProgress) {
605
+ const formatEntry = entry.formats[format];
606
+ if (!formatEntry) throw new Error(`Model "${entry.id}" has no ${format} format. Available: ${Object.keys(entry.formats).join(", ")}`);
607
+ if (entry.extraFiles) for (const extra of entry.extraFiles) await downloadFile(extra.url, node_path.join(modelsDir, extra.filename));
608
+ const filename = formatEntry.url.split("/").pop() ?? `${entry.id}.${format}`;
609
+ const modelPath = node_path.join(modelsDir, filename);
610
+ const siblings = siblingFilesFor(formatEntry);
611
+ let outdated = false;
612
+ if (node_fs.existsSync(modelPath)) if (formatEntry.isDirectory && !node_fs.existsSync(node_path.join(modelPath, "Manifest.json"))) node_fs.rmSync(modelPath, {
613
+ recursive: true,
614
+ force: true
615
+ });
616
+ else if (siblings.some((f) => !isNonEmptyFile(node_path.join(modelsDir, f)))) outdated = !isCurrentRevision(modelPath, formatEntry) && !await adoptByHash(modelsDir, modelPath, formatEntry);
617
+ else if (isCurrentRevision(modelPath, formatEntry) || await adoptByHash(modelsDir, modelPath, formatEntry)) return modelPath;
618
+ else outdated = true;
619
+ node_fs.mkdirSync(modelsDir, { recursive: true });
620
+ if (formatEntry.isDirectory) await downloadDirectory(formatEntry.url, modelPath, formatEntry.files, onProgress);
621
+ else if (outdated) await replaceSingleFileFormat(formatEntry.url, modelPath, modelsDir, siblings, onProgress);
622
+ else {
623
+ await downloadFile(formatEntry.url, modelPath, (downloaded, total) => onProgress?.(downloaded, total === 0 ? void 0 : total));
624
+ for (const sibling of siblings) await downloadFile(siblingUrl(formatEntry.url, sibling), node_path.join(modelsDir, sibling));
625
+ }
626
+ writeRevisionRecord(modelPath, resolveFormatRevision(formatEntry));
627
+ return modelPath;
628
+ }
629
+ /**
630
+ * Walk `entries` and record the revision of every complete copy on disk that
631
+ * hashes to it, so a node's listing reports present models as downloaded
632
+ * without waiting for something to `ensureModel` them. Offline: it reads
633
+ * files and never fetches. A copy already recorded current is not re-hashed.
634
+ */
635
+ async function adoptModelRevisions(modelsDir, entries) {
636
+ const adopted = [];
637
+ const stale = [];
638
+ const seen = /* @__PURE__ */ new Set();
639
+ for (const entry of entries) for (const format of Object.keys(entry.formats).filter(isModelFormat)) {
640
+ const formatEntry = entry.formats[format];
641
+ if (formatEntry === void 0 || resolveFormatRevision(formatEntry) === void 0) continue;
642
+ const modelPath = getModelFilePath(modelsDir, entry, format);
643
+ if (modelPath === null || seen.has(modelPath)) continue;
644
+ seen.add(modelPath);
645
+ if (!isCompleteCopy(modelsDir, modelPath, formatEntry)) continue;
646
+ if (isCurrentRevision(modelPath, formatEntry)) continue;
647
+ const key = `${entry.id}/${format}`;
648
+ if (await adoptByHash(modelsDir, modelPath, formatEntry)) adopted.push(key);
649
+ else stale.push(key);
650
+ }
651
+ return {
652
+ adopted,
653
+ stale
654
+ };
655
+ }
656
+ function isModelFormat(value) {
657
+ return _camstack_types_addon.MODEL_FORMATS.some((f) => f === value);
658
+ }
659
+ /** Compute the on-disk path for a given model + format, even when not yet downloaded. */
660
+ function getModelFilePath(modelsDir, entry, format) {
661
+ const formatEntry = entry.formats[format];
662
+ if (!formatEntry) return null;
663
+ const filename = formatEntry.url.split("/").pop() ?? `${entry.id}.${format}`;
664
+ return node_path.join(modelsDir, filename);
665
+ }
666
+ /**
667
+ * True iff the model file (or `Manifest.json` for directory bundles) exists and
668
+ * is non-empty, and — when the format has a revision ({@link
669
+ * resolveFormatRevision}) — the node recorded that same revision for it
670
+ * (D743). Synchronous, so it never hashes: a copy not yet proven current
671
+ * answers false until `ensureModel` or {@link adoptModelRevisions} records it.
672
+ */
673
+ function isModelDownloaded(modelsDir, entry, format) {
674
+ const formatEntry = entry.formats[format];
675
+ if (!formatEntry) return false;
676
+ const modelPath = getModelFilePath(modelsDir, entry, format);
677
+ if (!modelPath || !node_fs.existsSync(modelPath)) return false;
678
+ if (!isCurrentRevision(modelPath, formatEntry)) return false;
679
+ return isCompleteCopy(modelsDir, modelPath, formatEntry);
680
+ }
681
+ /** Remove the on-disk model file/directory. Returns true if something was deleted. */
682
+ function deleteModelFromDisk(modelsDir, entry, format) {
683
+ const modelPath = getModelFilePath(modelsDir, entry, format);
684
+ if (!modelPath || !node_fs.existsSync(modelPath)) return false;
685
+ node_fs.rmSync(revisionRecordPath(modelPath), { force: true });
686
+ const formatEntry = entry.formats[format];
687
+ if (formatEntry?.isDirectory) node_fs.rmSync(modelPath, {
688
+ recursive: true,
689
+ force: true
690
+ });
691
+ else {
692
+ node_fs.unlinkSync(modelPath);
693
+ if (formatEntry) for (const sibling of siblingFilesFor(formatEntry)) {
694
+ const sibPath = node_path.join(modelsDir, sibling);
695
+ if (node_fs.existsSync(sibPath)) node_fs.unlinkSync(sibPath);
696
+ }
697
+ }
698
+ return true;
699
+ }
700
+ //#endregion
701
+ //#region src/download/model-download-service.ts
702
+ /**
703
+ * A catalog-bound face over the shared downloader.
704
+ *
705
+ * Downloading, completeness and the revision contract (D743) are
706
+ * `ensureModel` / `isModelDownloaded`'s — this class only resolves a model id
707
+ * (and a default format) against its catalog and keys progress by model id.
708
+ * It used to carry its own copy of the download loop, which never learnt the
709
+ * revision; one rule now lives in one place.
710
+ *
711
+ * Addons use this via `context.models.ensure(modelId, format)`.
712
+ */
713
+ var ModelDownloadService = class {
714
+ modelsDir;
715
+ onProgress;
716
+ catalog;
717
+ constructor(modelsDir, catalog, onProgress) {
718
+ this.modelsDir = modelsDir;
719
+ this.onProgress = onProgress;
720
+ const map = /* @__PURE__ */ new Map();
721
+ for (const entry of catalog) map.set(entry.id, entry);
722
+ this.catalog = map;
723
+ }
724
+ /**
725
+ * Ensure a model (and its extra files) is downloaded and current.
726
+ * Returns the local filesystem path to the model file/directory.
727
+ */
728
+ async ensure(modelId, format) {
729
+ const entry = this.catalog.get(modelId);
730
+ if (!entry) throw new Error(`ModelDownloadService: unknown model "${modelId}"`);
731
+ const selectedFormat = format ?? this.pickDefaultFormat(entry);
732
+ if (!entry.formats[selectedFormat]) throw new Error(`ModelDownloadService: model "${modelId}" has no ${selectedFormat} format`);
733
+ const onProgress = this.onProgress;
734
+ return ensureModel(this.modelsDir, entry, selectedFormat, onProgress ? (downloaded, total) => onProgress(modelId, downloaded, total ?? 0) : void 0);
735
+ }
736
+ /**
737
+ * Ensure extra files for a model are downloaded.
738
+ * Returns the local paths of all extra files.
739
+ */
740
+ async ensureExtraFiles(modelId) {
741
+ const entry = this.catalog.get(modelId);
742
+ if (!entry) throw new Error(`ModelDownloadService: unknown model "${modelId}"`);
743
+ const extras = entry.extraFiles;
744
+ if (!extras || extras.length === 0) return [];
745
+ const paths = [];
746
+ for (const extra of extras) {
747
+ const destPath = node_path.join(this.modelsDir, extra.filename);
748
+ await downloadFile(extra.url, destPath);
749
+ paths.push(destPath);
750
+ }
751
+ return paths;
752
+ }
753
+ /** Absolute path to the shared models directory. */
754
+ getModelsDir() {
755
+ return this.modelsDir;
756
+ }
757
+ /** True when the model is on disk, complete, and at its revision (D743). */
758
+ isDownloaded(modelId, format) {
759
+ const entry = this.catalog.get(modelId);
760
+ if (!entry) return false;
761
+ return isModelDownloaded(this.modelsDir, entry, format ?? this.pickDefaultFormat(entry));
762
+ }
763
+ /** Get the catalog entry for a model by ID. */
764
+ getEntry(modelId) {
765
+ return this.catalog.get(modelId);
766
+ }
767
+ pickDefaultFormat(entry) {
768
+ for (const fmt of [
769
+ "onnx",
770
+ "coreml",
771
+ "openvino",
772
+ "tflite",
773
+ "pt"
774
+ ]) if (entry.formats[fmt]) return fmt;
775
+ const first = Object.keys(entry.formats)[0];
776
+ if (first) return first;
777
+ throw new Error(`ModelDownloadService: model "${entry.id}" has no formats`);
778
+ }
779
+ };
780
+ //#endregion
781
+ //#region src/http/authenticated-file-server.ts
782
+ /**
783
+ * Authenticated data-plane file-server — a shared host primitive for addons that
784
+ * must serve files (media segments, scrub-frame stores, exported clips) directly
785
+ * to browsers/players, node-direct (NOT through the hub tRPC, per the recording
786
+ * design's "no media bytes traverse the hub").
787
+ *
788
+ * It bundles the three things every such server needs so addons don't re-roll
789
+ * them: CORS (the data plane is cross-origin from the admin-ui — a native
790
+ * `<video src>` is exempt but hls.js / WebCodecs fetch via XHR and are blocked
791
+ * without it), HTTP `Range` (seeking / partial fetch), and a SCOPED TOKEN check.
792
+ *
793
+ * The token rides as the FIRST path segment (`<urlPrefix><token>/<relPath>`) so
794
+ * a player resolving a manifest's RELATIVE child URIs carries it on every
795
+ * sub-request automatically — no per-URI rewriting, no cookies/headers a dumb
796
+ * player can't set. The caller supplies `verifyToken(token, relPath)`; the
797
+ * primitive stays auth-scheme-agnostic.
798
+ *
799
+ * Pure helpers (`parseTokenizedUrl`, `resolveFilePath`, `contentTypeFor`,
800
+ * `parseRangeHeader`) are exported for unit testing; `createAuthenticatedFileServer`
801
+ * is the thin `node:http` glue.
802
+ */
803
+ function corsHeaders(origin) {
804
+ return {
805
+ "access-control-allow-origin": origin,
806
+ "access-control-allow-methods": "GET, HEAD, OPTIONS",
807
+ "access-control-allow-headers": "range",
808
+ "access-control-expose-headers": "content-length, content-range, accept-ranges",
809
+ "access-control-max-age": "86400"
810
+ };
811
+ }
812
+ /**
813
+ * Split a request URL (`<urlPrefix><token>/<relPath>`) into its token + rel
814
+ * path. Returns null for anything outside the prefix or missing either part.
815
+ * `relPath` is URL-decoded; a decode failure → null.
816
+ */
817
+ function parseTokenizedUrl(urlPrefix, urlPath) {
818
+ if (!urlPath.startsWith(urlPrefix)) return null;
819
+ const after = urlPath.slice(urlPrefix.length);
820
+ const slash = after.indexOf("/");
821
+ if (slash <= 0) return null;
822
+ const token = after.slice(0, slash);
823
+ let rel;
824
+ try {
825
+ rel = decodeURIComponent(after.slice(slash + 1));
826
+ } catch {
827
+ return null;
828
+ }
829
+ if (rel.length === 0) return null;
830
+ return {
831
+ token,
832
+ rel
833
+ };
834
+ }
835
+ /**
836
+ * Map a rel path to one candidate absolute path PER root, keeping only roots the
837
+ * path stays within (traversal guard). The handler serves the first candidate
838
+ * that exists. Rejects a path that escapes every root.
839
+ */
840
+ function resolveFilePath(roots, rel) {
841
+ if (rel.length === 0) return { error: "forbidden" };
842
+ const candidates = [];
843
+ for (const rootDir of roots) {
844
+ const root = node_path.default.resolve(rootDir);
845
+ const abs = node_path.default.resolve(root, rel);
846
+ if (abs === root || abs.startsWith(root + node_path.default.sep)) candidates.push(abs);
847
+ }
848
+ if (candidates.length === 0) return { error: "forbidden" };
849
+ return { candidates };
850
+ }
851
+ var DEFAULT_CONTENT_TYPES = {
852
+ ".m3u8": "application/vnd.apple.mpegurl",
853
+ ".m4s": "video/mp4",
854
+ ".mp4": "video/mp4",
855
+ ".idx": "application/octet-stream",
856
+ ".html": "text/html; charset=utf-8",
857
+ ".js": "application/javascript; charset=utf-8",
858
+ ".mjs": "application/javascript; charset=utf-8",
859
+ ".css": "text/css; charset=utf-8",
860
+ ".json": "application/json; charset=utf-8",
861
+ ".map": "application/json; charset=utf-8",
862
+ ".svg": "image/svg+xml",
863
+ ".png": "image/png",
864
+ ".jpg": "image/jpeg",
865
+ ".jpeg": "image/jpeg",
866
+ ".ico": "image/x-icon",
867
+ ".woff2": "font/woff2",
868
+ ".woff": "font/woff",
869
+ ".ttf": "font/ttf"
870
+ };
871
+ function contentTypeFor(filePath, overrides) {
872
+ const ext = node_path.default.extname(filePath).toLowerCase();
873
+ return overrides?.[ext] ?? DEFAULT_CONTENT_TYPES[ext] ?? "application/octet-stream";
874
+ }
875
+ /** Parse an HTTP `Range` header against a known size. Null = serve whole file. */
876
+ function parseRangeHeader(header, size) {
877
+ if (!header) return null;
878
+ const m = /^bytes=(\d*)-(\d*)$/.exec(header.trim());
879
+ if (!m) return null;
880
+ const [, rawStart, rawEnd] = m;
881
+ if (rawStart === "" && rawEnd === "") return null;
882
+ let start;
883
+ let end;
884
+ if (rawStart === "") {
885
+ const n = Number(rawEnd);
886
+ if (n <= 0) return null;
887
+ start = Math.max(0, size - n);
888
+ end = size - 1;
889
+ } else {
890
+ start = Number(rawStart);
891
+ end = rawEnd === "" ? size - 1 : Number(rawEnd);
892
+ }
893
+ if (!Number.isFinite(start) || !Number.isFinite(end) || start > end || start >= size) return null;
894
+ return {
895
+ start,
896
+ end: Math.min(end, size - 1)
897
+ };
898
+ }
899
+ /**
900
+ * Start an authenticated file-server. Returns the bound port so the caller can
901
+ * build URLs. `getRoots`/`verifyToken` are invoked per request, so they always
902
+ * reflect the live config.
903
+ */
904
+ async function createAuthenticatedFileServer(opts) {
905
+ const cors = corsHeaders(opts.corsOrigin ?? "*");
906
+ const server = (0, node_http.createServer)((req, res) => {
907
+ handle(opts, cors, req, res);
908
+ });
909
+ await new Promise((resolve, reject) => {
910
+ server.once("error", reject);
911
+ server.listen(opts.port, () => resolve());
912
+ });
913
+ const addr = server.address();
914
+ return {
915
+ port: typeof addr === "object" && addr ? addr.port : opts.port,
916
+ close: () => new Promise((resolve) => server.close(() => resolve()))
917
+ };
918
+ }
919
+ async function handle(opts, cors, req, res) {
920
+ if (req.method === "OPTIONS") {
921
+ res.writeHead(204, cors).end();
922
+ return;
923
+ }
924
+ if (req.method !== "GET" && req.method !== "HEAD") {
925
+ res.writeHead(405, cors).end();
926
+ return;
927
+ }
928
+ const urlPath = (req.url ?? "").split("?")[0] ?? "";
929
+ const parsed = parseTokenizedUrl(opts.urlPrefix, urlPath);
930
+ if (!parsed) {
931
+ res.writeHead(403, cors).end();
932
+ return;
933
+ }
934
+ if (!opts.verifyToken(parsed.token, parsed.rel)) {
935
+ res.writeHead(401, cors).end();
936
+ return;
937
+ }
938
+ const resolved = resolveFilePath(opts.getRoots(), parsed.rel);
939
+ if ("error" in resolved) {
940
+ res.writeHead(403, cors).end();
941
+ return;
942
+ }
943
+ let absPath = null;
944
+ let size = 0;
945
+ for (const candidate of resolved.candidates) try {
946
+ const st = await node_fs.promises.stat(candidate);
947
+ if (st.isFile()) {
948
+ absPath = candidate;
949
+ size = st.size;
950
+ break;
951
+ }
952
+ } catch {}
953
+ if (absPath === null) {
954
+ res.writeHead(404, cors).end();
955
+ return;
956
+ }
957
+ const baseHeaders = {
958
+ ...cors,
959
+ "content-type": contentTypeFor(absPath, opts.contentTypes),
960
+ "accept-ranges": "bytes",
961
+ "cache-control": "no-cache"
962
+ };
963
+ const range = parseRangeHeader(req.headers.range, size);
964
+ if (range) {
965
+ res.writeHead(206, {
966
+ ...baseHeaders,
967
+ "content-range": `bytes ${range.start}-${range.end}/${size}`,
968
+ "content-length": String(range.end - range.start + 1)
969
+ });
970
+ if (req.method === "HEAD") {
971
+ res.end();
972
+ return;
973
+ }
974
+ (0, node_fs.createReadStream)(absPath, {
975
+ start: range.start,
976
+ end: range.end
977
+ }).pipe(res);
978
+ return;
979
+ }
980
+ res.writeHead(200, {
981
+ ...baseHeaders,
982
+ "content-length": String(size)
983
+ });
984
+ if (req.method === "HEAD") {
985
+ res.end();
986
+ return;
987
+ }
988
+ (0, node_fs.createReadStream)(absPath).pipe(res);
989
+ }
990
+ //#endregion
991
+ //#region src/http/asset-compression.ts
992
+ /**
993
+ * Content-coding for addon-served static assets: `Accept-Encoding` negotiation,
994
+ * an eligibility rule, and a BOUNDED cache of the compressed bytes.
995
+ *
996
+ * ## Why the ADDON owns the encoding
997
+ *
998
+ * The hub's `/addon/:addonId/*` bridge is registered `{ compress: false }`. That
999
+ * is not an oversight — on 2026-07-16 the global `@fastify/compress` was found
1000
+ * emitting an EMPTY brotli stream (`content-encoding: br`, `content-length: 0`)
1001
+ * for any compressible body over its 1 KiB threshold once the body had crossed
1002
+ * the UDS route bridge of a FORKED addon. It silently broke the notifier SVG
1003
+ * icons; the deploy-bundle pull route had already dodged the same class with
1004
+ * `compress: false`. The resolution then, and the contract now, is that an addon
1005
+ * route owns its content-coding END TO END: it negotiates, it compresses, it
1006
+ * stamps `content-encoding` + `Vary`, and the hub pipes those bytes through
1007
+ * untouched (`proxyToUpstream` replays the upstream headers verbatim).
1008
+ *
1009
+ * So compression belongs HERE, in the shared file data-plane, and nowhere above
1010
+ * it. Anything that re-compresses on top of this reintroduces the empty-brotli
1011
+ * bug rather than doubling the ratio.
1012
+ *
1013
+ * ## Why the bytes are cached, and why the cache is bounded
1014
+ *
1015
+ * Measured on the stream-broker embed bundle (`index-<hash>.js`, 1,443,142 B):
1016
+ * gzip-6 → 360,868 B, brotli-5 → 327,419 B in 27 ms, brotli-11 → 293,677 B in
1017
+ * 2,233 ms. Quality 5 is the request-path choice: 77% off the wire for 27 ms
1018
+ * paid ONCE. Quality 11 buys another 2.3% for eighty times the CPU, on a path
1019
+ * where a real client is waiting.
1020
+ *
1021
+ * The cache is an LRU bounded by BOTH entry count and total bytes, and it
1022
+ * refuses assets over {@link COMPRESSION_MAX_ASSET_BYTES} outright. An unbounded
1023
+ * `Map` keyed by URL is how a long-lived process walks into an OOM, and this
1024
+ * repo has already spent a session on one.
1025
+ *
1026
+ * The key carries `mtimeMs` and `size`, so a rebuild that rewrites an asset in
1027
+ * place under an UNCHANGED name (an SPA shell, a service worker) can never be
1028
+ * served from the previous build's bytes.
1029
+ */
1030
+ var brotliAsync = (0, node_util.promisify)(node_zlib.brotliCompress);
1031
+ var gzipAsync = (0, node_util.promisify)(node_zlib.gzip);
1032
+ /** LRU bounds. Both are enforced; whichever binds first evicts. */
1033
+ var MAX_CACHE_ENTRIES = 64;
1034
+ var MAX_CACHE_BYTES = 32 * 1024 * 1024;
1035
+ /** Brotli quality — see the file header for the measured trade. */
1036
+ var BROTLI_QUALITY = 5;
1037
+ /**
1038
+ * Content types worth compressing. An ALLOW-list, not a deny-list: an unknown
1039
+ * type (`application/octet-stream`) is assumed to be opaque binary. This is what
1040
+ * keeps jpeg/png/webp/mp4/m4s/woff2 out — running brotli over them burns CPU to
1041
+ * make the body marginally BIGGER.
1042
+ */
1043
+ var COMPRESSIBLE_EXACT = new Set([
1044
+ "application/javascript",
1045
+ "application/ecmascript",
1046
+ "application/json",
1047
+ "application/manifest+json",
1048
+ "application/wasm",
1049
+ "application/xml",
1050
+ "application/xhtml+xml",
1051
+ "application/vnd.apple.mpegurl",
1052
+ "image/svg+xml"
1053
+ ]);
1054
+ /** Is a body of this content type worth compressing at all? */
1055
+ function isCompressibleContentType(contentType) {
1056
+ const base = contentType.split(";")[0]?.trim().toLowerCase() ?? "";
1057
+ if (base.length === 0) return false;
1058
+ if (base.startsWith("text/")) return true;
1059
+ if (base.endsWith("+json") || base.endsWith("+xml")) return true;
1060
+ return COMPRESSIBLE_EXACT.has(base);
1061
+ }
1062
+ /** Parse `Accept-Encoding` into tokens with their q-values (default 1). */
1063
+ function parseAcceptEncoding(header) {
1064
+ if (header === void 0 || header.trim().length === 0) return [];
1065
+ const out = [];
1066
+ for (const part of header.split(",")) {
1067
+ const [rawToken, ...params] = part.split(";");
1068
+ const token = rawToken?.trim().toLowerCase() ?? "";
1069
+ if (token.length === 0) continue;
1070
+ let q = 1;
1071
+ for (const param of params) {
1072
+ const [name, value] = param.split("=");
1073
+ if (name?.trim().toLowerCase() !== "q") continue;
1074
+ const parsed = Number(value?.trim());
1075
+ q = Number.isFinite(parsed) ? parsed : 1;
1076
+ }
1077
+ out.push({
1078
+ token,
1079
+ q
1080
+ });
1081
+ }
1082
+ return out;
1083
+ }
1084
+ function accepts(prefs, token) {
1085
+ const exact = prefs.find((p) => p.token === token);
1086
+ if (exact) return exact.q > 0;
1087
+ const wildcard = prefs.find((p) => p.token === "*");
1088
+ return wildcard !== void 0 && wildcard.q > 0;
1089
+ }
1090
+ /**
1091
+ * Pick a coding for this request: brotli when offered, else gzip, else identity.
1092
+ *
1093
+ * Returns `null` for identity — including when the header is ABSENT. A client
1094
+ * that offers nothing gets the raw bytes; guessing on its behalf is how a
1095
+ * non-negotiating consumer (a native fetch, a probe, an OTA puller) ends up with
1096
+ * a body it cannot read.
1097
+ */
1098
+ function negotiateContentEncoding(acceptEncoding) {
1099
+ const prefs = parseAcceptEncoding(acceptEncoding);
1100
+ if (prefs.length === 0) return null;
1101
+ if (accepts(prefs, "br")) return "br";
1102
+ if (accepts(prefs, "gzip")) return "gzip";
1103
+ return null;
1104
+ }
1105
+ var cache = /* @__PURE__ */ new Map();
1106
+ var inFlight = /* @__PURE__ */ new Map();
1107
+ var compressions = 0;
1108
+ var hits = 0;
1109
+ var cachedBytes = 0;
1110
+ function cacheKey(key) {
1111
+ return `${key.encoding}|${String(key.mtimeMs)}|${String(key.size)}|${key.path}`;
1112
+ }
1113
+ /** Evict least-recently-used entries until both bounds hold. */
1114
+ function evictToBounds() {
1115
+ for (const [k, buf] of cache) {
1116
+ if (cache.size <= MAX_CACHE_ENTRIES && cachedBytes <= MAX_CACHE_BYTES) return;
1117
+ cache.delete(k);
1118
+ cachedBytes -= buf.byteLength;
1119
+ }
1120
+ }
1121
+ async function compressBody(raw, encoding) {
1122
+ if (encoding === "gzip") return await gzipAsync(raw);
1123
+ return await brotliAsync(raw, { params: {
1124
+ [node_zlib.constants.BROTLI_PARAM_QUALITY]: BROTLI_QUALITY,
1125
+ [node_zlib.constants.BROTLI_PARAM_SIZE_HINT]: raw.byteLength
1126
+ } });
1127
+ }
1128
+ /**
1129
+ * Compressed bytes for one asset, compressing at most once per key.
1130
+ *
1131
+ * `null` means "send the original" — the asset is too large to buffer, the
1132
+ * source could not be read, or compression did not actually shrink it. Every
1133
+ * failure degrades to identity, so this can only ever be an optimisation.
1134
+ *
1135
+ * Concurrent callers for the same key share ONE compression: a cold cache hit by
1136
+ * a dozen parallel asset requests must not run zlib a dozen times.
1137
+ */
1138
+ async function getCompressedAsset(key, readSource) {
1139
+ if (key.size > 8388608) return null;
1140
+ const id = cacheKey(key);
1141
+ const cached = cache.get(id);
1142
+ if (cached) {
1143
+ cache.delete(id);
1144
+ cache.set(id, cached);
1145
+ hits += 1;
1146
+ return cached;
1147
+ }
1148
+ const pending = inFlight.get(id) ?? (async () => {
1149
+ let raw;
1150
+ try {
1151
+ raw = await readSource();
1152
+ } catch {
1153
+ return null;
1154
+ }
1155
+ const out = await compressBody(raw, key.encoding);
1156
+ compressions += 1;
1157
+ if (out.byteLength >= raw.byteLength) return null;
1158
+ cache.set(id, out);
1159
+ cachedBytes += out.byteLength;
1160
+ evictToBounds();
1161
+ return out;
1162
+ })();
1163
+ inFlight.set(id, pending);
1164
+ try {
1165
+ return await pending;
1166
+ } catch {
1167
+ return null;
1168
+ } finally {
1169
+ inFlight.delete(id);
1170
+ }
1171
+ }
1172
+ //#endregion
1173
+ //#region src/http/file-data-plane.ts
1174
+ /**
1175
+ * A ready-made data-plane request handler that serves files from a set of roots
1176
+ * with HTTP `Range`, for addons whose data-plane is "stream files off disk"
1177
+ * (recording playback, scrub-frame stores, exported clips).
1178
+ *
1179
+ * This is the addon-side handler the addon hands to `ctx.dataPlane.serve({ handler })`.
1180
+ * It receives the REAL Node `req`/`res`, resolves the request path against the
1181
+ * addon's roots (traversal-guarded), and streams the file. NO token and NO CORS:
1182
+ * the hub already authenticated the caller and the data plane is same-origin
1183
+ * through the hub's port. Reuses the shared Range/content-type/traversal helpers
1184
+ * so there is one implementation across the standalone file-server and this.
1185
+ *
1186
+ * It also owns its own CONTENT-CODING. The hub bridge is `{ compress: false }`
1187
+ * because the global compressor emits an empty brotli stream over the forked-
1188
+ * addon route bridge, so nothing above this layer will ever compress an addon
1189
+ * body — see `asset-compression.ts` for the incident and the contract.
1190
+ */
1191
+ /** Build a `(req, res)` handler that serves `getRoots()` files with Range. */
1192
+ function createFileDataPlaneHandler(opts) {
1193
+ return async (req, res) => {
1194
+ if (req.method !== "GET" && req.method !== "HEAD") {
1195
+ res.writeHead(405).end();
1196
+ return;
1197
+ }
1198
+ const urlPath = (req.url ?? "/").split("?")[0] ?? "/";
1199
+ let rel;
1200
+ try {
1201
+ rel = decodeURIComponent(urlPath.replace(/^\/+/, ""));
1202
+ } catch {
1203
+ res.writeHead(400).end();
1204
+ return;
1205
+ }
1206
+ if (rel.length === 0) {
1207
+ res.writeHead(404).end();
1208
+ return;
1209
+ }
1210
+ const resolved = resolveFilePath(opts.getRoots(), rel);
1211
+ if ("error" in resolved) {
1212
+ res.writeHead(403).end();
1213
+ return;
1214
+ }
1215
+ let absPath = null;
1216
+ let size = 0;
1217
+ let mtimeMs = 0;
1218
+ for (const candidate of resolved.candidates) try {
1219
+ const st = await node_fs.promises.stat(candidate);
1220
+ if (st.isFile()) {
1221
+ absPath = candidate;
1222
+ size = st.size;
1223
+ mtimeMs = st.mtimeMs;
1224
+ break;
1225
+ }
1226
+ } catch {}
1227
+ if (absPath === null) {
1228
+ res.writeHead(404).end();
1229
+ return;
1230
+ }
1231
+ const contentType = contentTypeFor(absPath, opts.contentTypes);
1232
+ const compressible = isCompressibleContentType(contentType);
1233
+ const baseHeaders = {
1234
+ "content-type": contentType,
1235
+ "accept-ranges": "bytes",
1236
+ "cache-control": opts.cacheControl?.(rel) ?? "no-cache",
1237
+ ...compressible ? { vary: "accept-encoding" } : {}
1238
+ };
1239
+ const range = parseRangeHeader(req.headers.range, size);
1240
+ if (range) {
1241
+ res.writeHead(206, {
1242
+ ...baseHeaders,
1243
+ "content-range": `bytes ${range.start}-${range.end}/${size}`,
1244
+ "content-length": String(range.end - range.start + 1)
1245
+ });
1246
+ if (req.method === "HEAD") {
1247
+ res.end();
1248
+ return;
1249
+ }
1250
+ (0, node_fs.createReadStream)(absPath, {
1251
+ start: range.start,
1252
+ end: range.end
1253
+ }).pipe(res);
1254
+ return;
1255
+ }
1256
+ const encoding = compressible ? negotiateContentEncoding(req.headers["accept-encoding"]) : null;
1257
+ if (encoding !== null && size >= 1024) {
1258
+ const filePath = absPath;
1259
+ const body = await getCompressedAsset({
1260
+ path: filePath,
1261
+ mtimeMs,
1262
+ size,
1263
+ encoding
1264
+ }, () => node_fs.promises.readFile(filePath));
1265
+ if (body !== null) {
1266
+ res.writeHead(200, {
1267
+ ...baseHeaders,
1268
+ "content-encoding": encoding,
1269
+ "accept-ranges": "none",
1270
+ "content-length": String(body.byteLength)
1271
+ });
1272
+ if (req.method === "HEAD") {
1273
+ res.end();
1274
+ return;
1275
+ }
1276
+ res.end(body);
1277
+ return;
1278
+ }
1279
+ }
1280
+ res.writeHead(200, {
1281
+ ...baseHeaders,
1282
+ "content-length": String(size)
1283
+ });
1284
+ if (req.method === "HEAD") {
1285
+ res.end();
1286
+ return;
1287
+ }
1288
+ (0, node_fs.createReadStream)(absPath).pipe(res);
1289
+ };
1290
+ }
1291
+ //#endregion
1292
+ //#region src/kernel/event-loop-stall-monitor.ts
1293
+ /**
1294
+ * event-loop-stall-monitor — names the thing that freezes the detection process.
1295
+ *
1296
+ * ## What this exists to settle
1297
+ *
1298
+ * On 2026-08-01/02 inference across the whole fleet stalled in bursts: 759
1299
+ * calls in 90 minutes crossed the runner's 20s deadline, p50 41s and max 80s,
1300
+ * and EVERY one of them eventually resolved. Six explanations were killed with
1301
+ * telemetry alone:
1302
+ *
1303
+ * - not a slow GPU or a wedged pool — the work completes, just enormously late;
1304
+ * - not CPU starvation — hosts sat at 8-48% during the freezes;
1305
+ * - not swap — `pswpin/pswpout` are flat zero on every host;
1306
+ * - not a logging artifact — Loki's timestamp trails the in-process one by
1307
+ * 0.1-1.0s at p95, so the gaps are real, not buffered delivery;
1308
+ * - not the v1.2.30 release — the stalls predate it by a day;
1309
+ * - not only the idle-pool recompile — that is real and hub-side, but the
1310
+ * agent stalls with no eviction and no compile at all.
1311
+ *
1312
+ * What IS established: the 10s stats timer — which touches no inference code —
1313
+ * stops firing for 22-88s and resumes at the same instant the abandoned calls
1314
+ * settle. The event loop itself freezes. From outside the process, GC and a
1315
+ * synchronous block are indistinguishable, and guessing between them is how
1316
+ * this investigation would go wrong. So measure it.
1317
+ *
1318
+ * ## How
1319
+ *
1320
+ * A 1s interval whose LATENESS is the freeze: a tick that arrives 40s late means
1321
+ * the loop was blocked ~39s, whatever blocked it. In the same window the GC
1322
+ * observer accumulates pause time. The two numbers together answer the question
1323
+ * outright:
1324
+ *
1325
+ * - `gcMs` ≈ `stallMs` → garbage collection. Look at heap growth.
1326
+ * - `gcMs` ≈ 0 → something SYNCHRONOUS blocked the loop, and GC is innocent.
1327
+ *
1328
+ * Heap and RSS ride along because if it is GC, the next question is always
1329
+ * "growing since when?".
1330
+ *
1331
+ * Deliberately not a histogram (`monitorEventLoopDelay`): that reports a
1332
+ * distribution, and the question here is about ONE outlier and what coincided
1333
+ * with it.
1334
+ */
1335
+ /** Tick period. Small enough to bound attribution error, large enough to cost
1336
+ * nothing on a process already doing frame work. */
1337
+ var STALL_TICK_MS = 1e3;
1338
+ /**
1339
+ * Report a freeze only past this. The runner's own inference deadline is 20s
1340
+ * and the observed freezes run 22-88s, so this is far below the signal while
1341
+ * staying clear of ordinary scheduling jitter (a busy frame path routinely
1342
+ * overruns a 1s timer by tens of ms).
1343
+ */
1344
+ var STALL_REPORT_MS = 2e3;
1345
+ /**
1346
+ * Attribute a freeze. Pure, because this is the ONE judgement the whole module
1347
+ * exists to make and it must be testable without freezing a real event loop.
1348
+ *
1349
+ * `gc` when garbage collection accounts for most of the stall; a
1350
+ * `synchronous-block` when it accounts for almost none — that verdict points
1351
+ * away from the heap entirely and at whatever ran without yielding.
1352
+ */
1353
+ function attributeStall(stallMs, gcMs, gcCount, longestGcMs) {
1354
+ const share = stallMs > 0 ? gcMs / stallMs : 0;
1355
+ return {
1356
+ stallMs,
1357
+ gcMs,
1358
+ gcCount,
1359
+ longestGcMs,
1360
+ cause: share >= .7 ? "gc" : share <= .2 ? "synchronous-block" : "mixed"
1361
+ };
1362
+ }
1363
+ /**
1364
+ * Start watching. Returns a stop function; safe to call twice.
1365
+ *
1366
+ * Never throws into the caller: a diagnostic that can take the detection
1367
+ * process down is worse than no diagnostic. `PerformanceObserver` for `gc` is
1368
+ * unavailable in some embedded runtimes, and that must degrade to
1369
+ * stall-detection-without-attribution rather than a boot failure.
1370
+ */
1371
+ function startEventLoopStallMonitor(logger, reportThresholdMs = STALL_REPORT_MS) {
1372
+ let gc = {
1373
+ totalMs: 0,
1374
+ count: 0,
1375
+ longestMs: 0
1376
+ };
1377
+ let observer = null;
1378
+ try {
1379
+ observer = new node_perf_hooks.PerformanceObserver((list) => {
1380
+ for (const entry of list.getEntries()) {
1381
+ gc.totalMs += entry.duration;
1382
+ gc.count += 1;
1383
+ if (entry.duration > gc.longestMs) gc.longestMs = entry.duration;
1384
+ }
1385
+ });
1386
+ observer.observe({ entryTypes: ["gc"] });
1387
+ } catch {
1388
+ observer = null;
1389
+ }
1390
+ let expected = Date.now() + STALL_TICK_MS;
1391
+ const timer = setInterval(() => {
1392
+ const now = Date.now();
1393
+ const lateBy = now - expected;
1394
+ const window = gc;
1395
+ gc = {
1396
+ totalMs: 0,
1397
+ count: 0,
1398
+ longestMs: 0
1399
+ };
1400
+ expected = now + STALL_TICK_MS;
1401
+ if (lateBy < reportThresholdMs) return;
1402
+ const verdict = attributeStall(lateBy, Math.round(window.totalMs), window.count, Math.round(window.longestMs));
1403
+ const mem = process.memoryUsage();
1404
+ logger.warn("event loop stalled", { meta: {
1405
+ stallMs: verdict.stallMs,
1406
+ cause: verdict.cause,
1407
+ gcMs: verdict.gcMs,
1408
+ gcCount: verdict.gcCount,
1409
+ longestGcMs: verdict.longestGcMs,
1410
+ gcObserved: observer !== null,
1411
+ heapUsedMb: Math.round(mem.heapUsed / 1e6),
1412
+ heapTotalMb: Math.round(mem.heapTotal / 1e6),
1413
+ rssMb: Math.round(mem.rss / 1e6),
1414
+ externalMb: Math.round(mem.external / 1e6),
1415
+ arrayBuffersMb: Math.round(mem.arrayBuffers / 1e6)
1416
+ } });
1417
+ }, STALL_TICK_MS);
1418
+ timer.unref?.();
1419
+ let stopped = false;
1420
+ return () => {
1421
+ if (stopped) return;
1422
+ stopped = true;
1423
+ clearInterval(timer);
1424
+ observer?.disconnect();
1425
+ };
1426
+ }
1427
+ //#endregion
1428
+ //#region src/kernel/custom-action-registry.ts
1429
+ /**
1430
+ * CustomActionRegistry — per-process registry of addon custom actions.
1431
+ *
1432
+ * Populated at boot from each addon's `AddonInitResult.customActions` +
1433
+ * `handleCustomAction` handler. Rejects actions declared with scope other
1434
+ * than 'system' (today only 'system' is runtime-supported; the descriptor
1435
+ * allows future scopes for forward compat).
1436
+ */
1437
+ var CustomActionRegistry = class {
1438
+ byAddon = /* @__PURE__ */ new Map();
1439
+ registerAddon(addonId, catalog, handler) {
1440
+ const actions = /* @__PURE__ */ new Map();
1441
+ for (const [name, spec] of Object.entries(catalog)) {
1442
+ const scope = spec.scope ?? { kind: "system" };
1443
+ if (scope.kind !== "system") throw new Error(`custom action '${addonId}.${name}' declared scope '${scope.kind}' — not yet implemented`);
1444
+ actions.set(name, {
1445
+ spec,
1446
+ handler: (input, caller) => handler(name, input, caller)
1447
+ });
1448
+ }
1449
+ this.byAddon.set(addonId, actions);
1450
+ }
1451
+ unregisterAddon(addonId) {
1452
+ this.byAddon.delete(addonId);
1453
+ }
1454
+ resolve(addonId, action) {
1455
+ return this.byAddon.get(addonId)?.get(action) ?? null;
1456
+ }
1457
+ listActions(addonId) {
1458
+ return [...this.byAddon.get(addonId)?.keys() ?? []];
1459
+ }
1460
+ listAddons() {
1461
+ return [...this.byAddon.keys()];
1462
+ }
1463
+ /**
1464
+ * Every registered catalog with its schemas stripped, keyed by addon id —
1465
+ * what a runner puts in its register frame so the hub learns the catalogs
1466
+ * from the process that owns them (D444). `hostedAddonIds` are the addons
1467
+ * this runner hosts: each is present in the result, with an EMPTY catalog
1468
+ * when it registered none, so the parent can say "declares no actions" per
1469
+ * addon instead of guessing from an absent key.
1470
+ */
1471
+ describeAll(hostedAddonIds) {
1472
+ const out = {};
1473
+ for (const addonId of hostedAddonIds) out[addonId] = {};
1474
+ for (const [addonId, actions] of this.byAddon) {
1475
+ const catalog = {};
1476
+ for (const [name, entry] of actions) catalog[name] = entry.spec;
1477
+ out[addonId] = (0, _camstack_types_addon.describeCustomActions)(catalog);
1478
+ }
1479
+ return out;
1480
+ }
1481
+ };
1482
+ //#endregion
1483
+ Object.defineProperty(exports, "CustomActionRegistry", {
1484
+ enumerable: true,
1485
+ get: function() {
1486
+ return CustomActionRegistry;
1487
+ }
1488
+ });
1489
+ Object.defineProperty(exports, "ModelDownloadHttpError", {
1490
+ enumerable: true,
1491
+ get: function() {
1492
+ return ModelDownloadHttpError;
1493
+ }
1494
+ });
1495
+ Object.defineProperty(exports, "ModelDownloadService", {
1496
+ enumerable: true,
1497
+ get: function() {
1498
+ return ModelDownloadService;
1499
+ }
1500
+ });
1501
+ Object.defineProperty(exports, "STALL_REPORT_MS", {
1502
+ enumerable: true,
1503
+ get: function() {
1504
+ return STALL_REPORT_MS;
1505
+ }
1506
+ });
1507
+ Object.defineProperty(exports, "STALL_TICK_MS", {
1508
+ enumerable: true,
1509
+ get: function() {
1510
+ return STALL_TICK_MS;
1511
+ }
1512
+ });
1513
+ Object.defineProperty(exports, "adoptModelRevisions", {
1514
+ enumerable: true,
1515
+ get: function() {
1516
+ return adoptModelRevisions;
1517
+ }
1518
+ });
1519
+ Object.defineProperty(exports, "attributeStall", {
1520
+ enumerable: true,
1521
+ get: function() {
1522
+ return attributeStall;
1523
+ }
1524
+ });
1525
+ Object.defineProperty(exports, "collectModelFiles", {
1526
+ enumerable: true,
1527
+ get: function() {
1528
+ return collectModelFiles;
1529
+ }
1530
+ });
1531
+ Object.defineProperty(exports, "contentTypeFor", {
1532
+ enumerable: true,
1533
+ get: function() {
1534
+ return contentTypeFor;
1535
+ }
1536
+ });
1537
+ Object.defineProperty(exports, "createAuthenticatedFileServer", {
1538
+ enumerable: true,
1539
+ get: function() {
1540
+ return createAuthenticatedFileServer;
1541
+ }
1542
+ });
1543
+ Object.defineProperty(exports, "createFileDataPlaneHandler", {
1544
+ enumerable: true,
1545
+ get: function() {
1546
+ return createFileDataPlaneHandler;
1547
+ }
1548
+ });
1549
+ Object.defineProperty(exports, "deleteModelFromDisk", {
1550
+ enumerable: true,
1551
+ get: function() {
1552
+ return deleteModelFromDisk;
1553
+ }
1554
+ });
1555
+ Object.defineProperty(exports, "downloadFile", {
1556
+ enumerable: true,
1557
+ get: function() {
1558
+ return downloadFile;
1559
+ }
1560
+ });
1561
+ Object.defineProperty(exports, "downloadModel", {
1562
+ enumerable: true,
1563
+ get: function() {
1564
+ return downloadModel;
1565
+ }
1566
+ });
1567
+ Object.defineProperty(exports, "ensureModel", {
1568
+ enumerable: true,
1569
+ get: function() {
1570
+ return ensureModel;
1571
+ }
1572
+ });
1573
+ Object.defineProperty(exports, "fetchJson", {
1574
+ enumerable: true,
1575
+ get: function() {
1576
+ return fetchJson;
1577
+ }
1578
+ });
1579
+ Object.defineProperty(exports, "getModelFilePath", {
1580
+ enumerable: true,
1581
+ get: function() {
1582
+ return getModelFilePath;
1583
+ }
1584
+ });
1585
+ Object.defineProperty(exports, "isModelDownloadHttpError", {
1586
+ enumerable: true,
1587
+ get: function() {
1588
+ return isModelDownloadHttpError;
1589
+ }
1590
+ });
1591
+ Object.defineProperty(exports, "isModelDownloaded", {
1592
+ enumerable: true,
1593
+ get: function() {
1594
+ return isModelDownloaded;
1595
+ }
1596
+ });
1597
+ Object.defineProperty(exports, "parseRangeHeader", {
1598
+ enumerable: true,
1599
+ get: function() {
1600
+ return parseRangeHeader;
1601
+ }
1602
+ });
1603
+ Object.defineProperty(exports, "parseTokenizedUrl", {
1604
+ enumerable: true,
1605
+ get: function() {
1606
+ return parseTokenizedUrl;
1607
+ }
1608
+ });
1609
+ Object.defineProperty(exports, "resolveFilePath", {
1610
+ enumerable: true,
1611
+ get: function() {
1612
+ return resolveFilePath;
1613
+ }
1614
+ });
1615
+ Object.defineProperty(exports, "resolveFormatRevision", {
1616
+ enumerable: true,
1617
+ get: function() {
1618
+ return resolveFormatRevision;
1619
+ }
1620
+ });
1621
+ Object.defineProperty(exports, "revisionWeightUrl", {
1622
+ enumerable: true,
1623
+ get: function() {
1624
+ return revisionWeightUrl;
1625
+ }
1626
+ });
1627
+ Object.defineProperty(exports, "setHuggingFaceReachabilityObserver", {
1628
+ enumerable: true,
1629
+ get: function() {
1630
+ return setHuggingFaceReachabilityObserver;
1631
+ }
1632
+ });
1633
+ Object.defineProperty(exports, "startEventLoopStallMonitor", {
1634
+ enumerable: true,
1635
+ get: function() {
1636
+ return startEventLoopStallMonitor;
1637
+ }
1638
+ });