@dominevo/types 0.1.0 → 0.1.2

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 (167) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/addon/base-addon.d.ts +2 -16
  3. package/dist/addon.d.ts +4 -4
  4. package/dist/addon.js +2 -2
  5. package/dist/addon.mjs +2 -2
  6. package/dist/app-bridge.d.ts +16 -16
  7. package/dist/auth/app-callback.d.ts +2 -3
  8. package/dist/auth/credential-scope.d.ts +1 -1
  9. package/dist/auth/device-certificate.d.ts +5 -5
  10. package/dist/auth/sso-state.d.ts +1 -1
  11. package/dist/brokers/smtp-inbound.d.ts +1 -1
  12. package/dist/cap-call-context.d.ts +2 -2
  13. package/dist/capabilities/backup.cap.d.ts +1 -1
  14. package/dist/capabilities/capability-definition.d.ts +1 -1
  15. package/dist/capabilities/custom-model-registry.cap.d.ts +8 -8
  16. package/dist/capabilities/display-palette.cap.d.ts +2 -2
  17. package/dist/capabilities/hub-address.d.ts +5 -5
  18. package/dist/capabilities/index.d.ts +2 -2
  19. package/dist/capabilities/keychain-admin.cap.d.ts +2 -2
  20. package/dist/capabilities/load-contribution.cap.d.ts +1 -1
  21. package/dist/capabilities/local-network.cap.d.ts +2 -2
  22. package/dist/capabilities/metrics-provider.cap.d.ts +1 -1
  23. package/dist/capabilities/migrations.cap.d.ts +1 -1
  24. package/dist/capabilities/model-convert.cap.d.ts +2 -2
  25. package/dist/capabilities/model-distributor.cap.d.ts +4 -4
  26. package/dist/capabilities/notification-rules.cap.d.ts +1 -1
  27. package/dist/capabilities/oauth-integration.cap.d.ts +1 -1
  28. package/dist/capabilities/pipeline-executor.cap.d.ts +5 -5
  29. package/dist/capabilities/pipeline-orchestrator.cap.d.ts +1 -1
  30. package/dist/capabilities/pipeline-runner.cap.d.ts +1 -1
  31. package/dist/capabilities/recording.cap.d.ts +5 -5
  32. package/dist/capabilities/reserved-collection-sources.d.ts +1 -1
  33. package/dist/capabilities/server-management.cap.d.ts +4 -4
  34. package/dist/capabilities/settings-store.cap.d.ts +1 -1
  35. package/dist/capabilities/training.cap.d.ts +1 -1
  36. package/dist/capabilities/user-management.cap.d.ts +8 -2
  37. package/dist/capabilities/videoclips.cap.d.ts +5 -5
  38. package/dist/capabilities/viewer-link-url.d.ts +6 -6
  39. package/dist/catalogs/display-palette-tables.d.ts +2 -2
  40. package/dist/catalogs/display-palette.d.ts +3 -3
  41. package/dist/catalogs/palette-entries.d.ts +1 -1
  42. package/dist/client.d.ts +1 -1
  43. package/dist/client.js +19 -27
  44. package/dist/client.mjs +19 -27
  45. package/dist/constants.d.ts +2 -2
  46. package/dist/deps/edgetpu-delegate.d.ts +4 -4
  47. package/dist/deps/ffmpeg-binary-source.d.ts +2 -2
  48. package/dist/deps/ffmpeg-downloader.d.ts +1 -1
  49. package/dist/device/icon-catalog.generated.d.ts +2 -5
  50. package/dist/enums/event-category.d.ts +2 -2
  51. package/dist/enums.js +1 -1
  52. package/dist/enums.mjs +1 -1
  53. package/dist/esm/addon/base-addon.mjs +2 -22
  54. package/dist/esm/addon/notification-targets.mjs +1 -1
  55. package/dist/esm/addon/record-integration-instances.mjs +2 -2
  56. package/dist/esm/addon.mjs +1 -1
  57. package/dist/esm/app-bridge.mjs +2 -2
  58. package/dist/esm/auth/app-callback.mjs +3 -9
  59. package/dist/esm/auth/credential-scope.mjs +2 -2
  60. package/dist/esm/auth/device-certificate.mjs +6 -11
  61. package/dist/esm/auth/sso-state.mjs +1 -1
  62. package/dist/esm/brokers/smtp-inbound.mjs +1 -1
  63. package/dist/esm/cap-call-context.mjs +2 -2
  64. package/dist/esm/capabilities/backup.cap.mjs +1 -1
  65. package/dist/esm/capabilities/custom-model-registry.cap.mjs +1 -1
  66. package/dist/esm/capabilities/device-export.cap.mjs +1 -1
  67. package/dist/esm/capabilities/face-gallery.cap.mjs +1 -1
  68. package/dist/esm/capabilities/hub-address.mjs +8 -8
  69. package/dist/esm/capabilities/ir-transmitter.cap.mjs +1 -1
  70. package/dist/esm/capabilities/keychain-admin.cap.mjs +2 -2
  71. package/dist/esm/capabilities/load-contribution.cap.mjs +1 -1
  72. package/dist/esm/capabilities/local-network.cap.mjs +3 -3
  73. package/dist/esm/capabilities/mesh-network.cap.mjs +2 -2
  74. package/dist/esm/capabilities/metrics-provider.cap.mjs +2 -2
  75. package/dist/esm/capabilities/migrations.cap.mjs +1 -1
  76. package/dist/esm/capabilities/notification-rules.cap.mjs +1 -1
  77. package/dist/esm/capabilities/oauth-integration.cap.mjs +1 -1
  78. package/dist/esm/capabilities/pipeline-orchestrator.cap.mjs +2 -2
  79. package/dist/esm/capabilities/pipeline-runner.cap.mjs +2 -2
  80. package/dist/esm/capabilities/recording.cap.mjs +7 -7
  81. package/dist/esm/capabilities/reserved-collection-sources.mjs +1 -1
  82. package/dist/esm/capabilities/server-management.cap.mjs +4 -4
  83. package/dist/esm/capabilities/settings-store.cap.mjs +1 -1
  84. package/dist/esm/capabilities/sso-bridge.cap.mjs +1 -1
  85. package/dist/esm/capabilities/training-provider.cap.mjs +1 -1
  86. package/dist/esm/capabilities/user-management.cap.mjs +5 -1
  87. package/dist/esm/capabilities/videoclips.cap.mjs +6 -6
  88. package/dist/esm/capabilities/viewer-link-url.mjs +5 -5
  89. package/dist/esm/catalogs/display-palette-tables.mjs +3 -3
  90. package/dist/esm/catalogs/display-palette.mjs +6 -6
  91. package/dist/esm/catalogs/event-taxonomy.mjs +2 -2
  92. package/dist/esm/catalogs/palette-entries.mjs +1 -1
  93. package/dist/esm/constants.mjs +1 -1
  94. package/dist/esm/deps/binary-downloader.mjs +1 -1
  95. package/dist/esm/deps/edgetpu-delegate.mjs +6 -6
  96. package/dist/esm/deps/ffmpeg-artifacts.mjs +1 -1
  97. package/dist/esm/deps/ffmpeg-binary-source.mjs +2 -2
  98. package/dist/esm/deps/ffmpeg-downloader.mjs +1 -1
  99. package/dist/esm/deps/python-downloader.mjs +1 -1
  100. package/dist/esm/device/icon-catalog.generated.mjs +2 -5
  101. package/dist/esm/enums/event-category.mjs +2 -2
  102. package/dist/esm/ffmpeg/egress-sharing-key.mjs +19 -0
  103. package/dist/esm/ffmpeg/sharing-key.mjs +1 -35
  104. package/dist/esm/generated/method-descriptions.mjs +4 -4
  105. package/dist/esm/generated/scope-presets.mjs +1 -1
  106. package/dist/esm/i18n/{camstack-error.mjs → dominevo-error.mjs} +5 -5
  107. package/dist/esm/index.mjs +7 -8
  108. package/dist/esm/interfaces/addon-data-plane.mjs +2 -2
  109. package/dist/esm/interfaces/config-ui-secrets.mjs +1 -1
  110. package/dist/esm/interfaces/storage-location-declaration.mjs +4 -4
  111. package/dist/esm/keychain/known-secrets.mjs +1 -1
  112. package/dist/esm/keychain/secret-marker.mjs +1 -1
  113. package/dist/esm/node.mjs +5 -2
  114. package/dist/esm/notification/email-mime.mjs +2 -2
  115. package/dist/esm/notification/scope-picker-items.mjs +3 -3
  116. package/dist/esm/pipeline/native-lease.mjs +1 -1
  117. package/dist/esm/pipeline/node-benchmark/schemas.mjs +1 -1
  118. package/dist/esm/records/errors.mjs +1 -1
  119. package/dist/esm/records/in-memory-records-rows.mjs +1 -1
  120. package/dist/esm/records/secret-views.mjs +1 -1
  121. package/dist/esm/storage/atomic-write.mjs +1 -1
  122. package/dist/esm/storage/filesystem-storage-provider.mjs +3 -3
  123. package/dist/esm/template/automation-template.mjs +1 -1
  124. package/dist/esm/training/trainer-contract.mjs +10 -10
  125. package/dist/esm/treeshake-canary.mjs +1 -1
  126. package/dist/esm/types/models.mjs +7 -7
  127. package/dist/esm/util/models-dir.mjs +19 -0
  128. package/dist/esm/utils/pool-memory-watchdog.mjs +8 -8
  129. package/dist/esm/vendor-login-proxy/login-proxy.mjs +1 -1
  130. package/dist/esm/vendor-login-proxy/url-rewrite.mjs +1 -1
  131. package/dist/{event-category-7IiGF_Ui.mjs → event-category-CwprdwEL.mjs} +2 -2
  132. package/dist/{event-category-BJe9O5KZ.js → event-category-DhlUHlM5.js} +2 -2
  133. package/dist/ffmpeg/egress-sharing-key.d.ts +19 -0
  134. package/dist/ffmpeg/sharing-key.d.ts +19 -12
  135. package/dist/generated/addon-api.d.ts +40 -6
  136. package/dist/i18n/{camstack-error.d.ts → dominevo-error.d.ts} +2 -2
  137. package/dist/index.d.ts +3 -4
  138. package/dist/index.js +141 -330
  139. package/dist/index.mjs +134 -320
  140. package/dist/interfaces/addon-data-plane.d.ts +4 -4
  141. package/dist/interfaces/addon.d.ts +11 -11
  142. package/dist/interfaces/analysis.d.ts +2 -2
  143. package/dist/interfaces/capability.d.ts +1 -1
  144. package/dist/interfaces/config-ui-secrets.d.ts +1 -1
  145. package/dist/interfaces/context.d.ts +2 -2
  146. package/dist/interfaces/detection-addon.d.ts +2 -2
  147. package/dist/interfaces/device-provider.d.ts +2 -2
  148. package/dist/interfaces/event-bus.d.ts +1 -1
  149. package/dist/interfaces/kernel-abstractions.d.ts +1 -1
  150. package/dist/interfaces/storage-location-declaration.d.ts +1 -1
  151. package/dist/node.d.ts +3 -0
  152. package/dist/node.js +168 -13
  153. package/dist/node.mjs +164 -13
  154. package/dist/notification/scope-picker-items.d.ts +2 -2
  155. package/dist/{runtime-capabilities-B9CE8DzI.js → runtime-capabilities-Db29ELdy.js} +26 -46
  156. package/dist/{runtime-capabilities-CAGwQ-Ec.mjs → runtime-capabilities-Dg5DXZkO.mjs} +21 -41
  157. package/dist/storage/filesystem-storage-provider.d.ts +1 -1
  158. package/dist/template/automation-template.d.ts +2 -2
  159. package/dist/training/trainer-contract.d.ts +9 -9
  160. package/dist/treeshake-canary.d.ts +3 -3
  161. package/dist/types/agent-pipeline-settings.d.ts +1 -1
  162. package/dist/types/models.d.ts +11 -11
  163. package/dist/util/models-dir.d.ts +10 -0
  164. package/dist/utils/pool-memory-watchdog.d.ts +1 -1
  165. package/dist/{wake-on-lan-BocEJPCO.js → wake-on-lan-CAbNKvo9.js} +62 -34
  166. package/dist/{wake-on-lan-Dm-fxZ7N.mjs → wake-on-lan-DqbzeHhm.mjs} +57 -35
  167. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- import { t as EventCategory } from "./event-category-7IiGF_Ui.mjs";
1
+ import { t as EventCategory } from "./event-category-CwprdwEL.mjs";
2
2
  import { a as DeviceType, i as DeviceRole, s as errMsg } from "./composed-stable-id-C7b2bPOX.mjs";
3
3
  import { z } from "zod";
4
4
  //#region src/audio/audio-chunk-format.ts
@@ -278,7 +278,7 @@ function servedInstanceKindsOf(ownerId) {
278
278
  * plausibly choose as a real password would turn that convenience into a way
279
279
  * to lock yourself out, hence the sentinel shape.
280
280
  */
281
- var REDACTED_SECRET = "__camstack_redacted__";
281
+ var REDACTED_SECRET = "__dominevo_redacted__";
282
282
  /** Is this field's stored value a credential? */
283
283
  function isSecretConfigField(field) {
284
284
  if (field.type === "password") return true;
@@ -484,7 +484,7 @@ function classifySecretWrite(incoming) {
484
484
  if (isSecretClear(incoming)) return { kind: "clear" };
485
485
  if (typeof incoming !== "string") return { kind: "keep" };
486
486
  if (incoming.length === 0) return { kind: "keep" };
487
- if (incoming === "__camstack_redacted__" || incoming === LEGACY_DEVICE_REDACTION) return { kind: "keep" };
487
+ if (incoming === "__dominevo_redacted__" || incoming === LEGACY_DEVICE_REDACTION) return { kind: "keep" };
488
488
  return {
489
489
  kind: "set",
490
490
  value: incoming
@@ -1335,7 +1335,7 @@ var PREFIX = "records/";
1335
1335
  * instance of the host's classes, not of the addon's. The brand plus the code
1336
1336
  * make `instanceof` answer by identity of the failure, not of the copy.
1337
1337
  */
1338
- var RECORDS_ERROR_BRAND = /* @__PURE__ */ Symbol.for("camstack.records-error");
1338
+ var RECORDS_ERROR_BRAND = /* @__PURE__ */ Symbol.for("dominevo.records-error");
1339
1339
  function carriesBrand(value) {
1340
1340
  return typeof value === "object" && value !== null && Reflect.get(value, RECORDS_ERROR_BRAND) === true;
1341
1341
  }
@@ -1905,7 +1905,7 @@ function isRecord$5(value) {
1905
1905
  function secretViewsOf(owner, kind, id, decl, data) {
1906
1906
  if (decl.secretPaths.length === 0) return data;
1907
1907
  const shown = mapSecretLeaves(data, decl.secretPaths, decl.secretArrayKeys, (leaf) => {
1908
- if (leaf.value !== "__camstack_redacted__") return leaf.value;
1908
+ if (leaf.value !== "__dominevo_redacted__") return leaf.value;
1909
1909
  return {
1910
1910
  $secret: recordSecretRef(owner, kind, id, leaf.concrete),
1911
1911
  v: 1,
@@ -1952,7 +1952,7 @@ function secretMapPatch(value) {
1952
1952
  if (typeof value !== "object" || value === null || Array.isArray(value)) return null;
1953
1953
  const out = {};
1954
1954
  for (const [key, entry] of Object.entries(value)) if (entry === null || isSecretClear(entry)) out[key] = null;
1955
- else if (typeof entry === "string" && entry !== "" && entry !== "__camstack_redacted__" && !isSecretFieldView(entry)) out[key] = entry;
1955
+ else if (typeof entry === "string" && entry !== "" && entry !== "__dominevo_redacted__" && !isSecretFieldView(entry)) out[key] = entry;
1956
1956
  return Object.keys(out).length > 0 ? out : null;
1957
1957
  }
1958
1958
  var RecordIntegrationInstances = class {
@@ -2143,7 +2143,7 @@ var RecordIntegrationInstances = class {
2143
2143
  if (entries !== null) patch[key] = entries;
2144
2144
  } else if (!this.secretKeys.has(key)) patch[key] = value;
2145
2145
  else if (isSecretClear(value)) patch[key] = null;
2146
- else if (typeof value === "string" && value !== "" && value !== "__camstack_redacted__" && !isSecretFieldView(value)) patch[key] = value;
2146
+ else if (typeof value === "string" && value !== "" && value !== "__dominevo_redacted__" && !isSecretFieldView(value)) patch[key] = value;
2147
2147
  }
2148
2148
  return patch;
2149
2149
  }
@@ -4452,26 +4452,6 @@ var BaseAddon = class {
4452
4452
  } catch {}
4453
4453
  }
4454
4454
  /**
4455
- * Resolve the shared, node-local models directory: `<nodeDataDir>/models`.
4456
- *
4457
- * This is the SINGLE centralized models-dir resolver for every inference addon
4458
- * (detection-pipeline, audio-analyzer, embedding-encoder, model-studio). It is
4459
- * anchored at the node's own writable data root (`ctx.nodeDataDir`, i.e.
4460
- * `CAMSTACK_DATA` ?? the kernel boot dir) — never the hub-singleton `storage`
4461
- * cap, which returns the hub's `/data/models` to every node and breaks any node
4462
- * whose real data dir differs (e.g. the macOS electron agent).
4463
- *
4464
- * `node:path`/`node:fs` are imported dynamically so the `@dominevo/types` root
4465
- * barrel (re-exported into browser bundles) stays free of node builtins.
4466
- */
4467
- async resolveModelsDir() {
4468
- const { join } = await import("node:path");
4469
- const { promises: fsp } = await import("node:fs");
4470
- const dir = join(this.ctx.nodeDataDir, "models");
4471
- await fsp.mkdir(dir, { recursive: true });
4472
- return dir;
4473
- }
4474
- /**
4475
4455
  * Access the runtime capability registry for in-process provider lookups.
4476
4456
  * Returns null if the registry is not available (e.g. on agents).
4477
4457
  * Used by addons that consume other capabilities directly (snapshot, stream-broker, enrichment).
@@ -4886,14 +4866,14 @@ function collectFieldKeys(fields) {
4886
4866
  return collected;
4887
4867
  }
4888
4868
  /**
4889
- * Normalize an `ICamstackAddon.initialize()` return value into the
4869
+ * Normalize an `IDominevoAddon.initialize()` return value into the
4890
4870
  * `AddonInitResult` envelope. Arrays are wrapped into `{ providers }`;
4891
4871
  * envelopes pass through; void stays void.
4892
4872
  *
4893
4873
  * Exported so the kernel boot path and the backend addon registry can
4894
4874
  * share the same normalizer instead of duplicating the shim. Addons that
4895
4875
  * extend `BaseAddon` already emit the envelope, so this helper is only a
4896
- * safety net for direct `ICamstackAddon` implementations (mostly tests).
4876
+ * safety net for direct `IDominevoAddon` implementations (mostly tests).
4897
4877
  */
4898
4878
  function normalizeAddonInitResult(result) {
4899
4879
  if (result == null) return;
@@ -4901,7 +4881,7 @@ function normalizeAddonInitResult(result) {
4901
4881
  return result;
4902
4882
  }
4903
4883
  //#endregion
4904
- //#region src/i18n/camstack-error.ts
4884
+ //#region src/i18n/dominevo-error.ts
4905
4885
  /**
4906
4886
  * A user-facing error with a STABLE code (D863).
4907
4887
  *
@@ -4918,19 +4898,19 @@ var ErrorI18nPayloadSchema = /* @__PURE__ */ z.object({
4918
4898
  code: ErrorCodeSchema,
4919
4899
  params: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.union([/* @__PURE__ */ z.string(), /* @__PURE__ */ z.number()])).optional()
4920
4900
  });
4921
- var CamstackError = class extends Error {
4901
+ var DominevoError = class extends Error {
4922
4902
  i18nCode;
4923
4903
  i18nParams;
4924
4904
  constructor(code, params, englishMessage) {
4925
4905
  super(englishMessage);
4926
- this.name = "CamstackError";
4906
+ this.name = "DominevoError";
4927
4907
  this.i18nCode = code;
4928
4908
  this.i18nParams = params;
4929
4909
  }
4930
4910
  };
4931
4911
  /** `throw userError('device.not-found', { id }, 'Device 12 not found')` */
4932
4912
  function userError(code, params, englishFallback) {
4933
- return new CamstackError(code, params, englishFallback);
4913
+ return new DominevoError(code, params, englishFallback);
4934
4914
  }
4935
4915
  /**
4936
4916
  * Finds a code on `err` or anywhere down its `.cause` chain. Duck-typed on
@@ -5577,7 +5557,7 @@ var DisposerChain = class {
5577
5557
  * hub can reach the addon's `127.0.0.1` listener. Defined here (shared by the
5578
5558
  * core proxy and the kernel listener) to keep both off a kernel↔core import.
5579
5559
  */
5580
- var DATAPLANE_SECRET_HEADER = "x-camstack-dataplane-secret";
5560
+ var DATAPLANE_SECRET_HEADER = "x-dominevo-dataplane-secret";
5581
5561
  /**
5582
5562
  * The authenticated caller's username, written by the HUB gate on every
5583
5563
  * non-public data-plane request AFTER it verified the credential. Whatever the
@@ -5585,7 +5565,7 @@ var DATAPLANE_SECRET_HEADER = "x-camstack-dataplane-secret";
5585
5565
  * identity of the request, percent-encoded (a viewer's log batch is attributed with it, never
5586
5566
  * with a field of its own body).
5587
5567
  */
5588
- var CALLER_USERNAME_HEADER = "x-camstack-user";
5568
+ var CALLER_USERNAME_HEADER = "x-dominevo-user";
5589
5569
  /**
5590
5570
  * The share-view scope kinds a share-link token can carry. The hub mints
5591
5571
  * and validates them (`ShareViewGrantSchema` builds its
@@ -5667,7 +5647,7 @@ var MIN_SCRUBBED_LENGTH = 8;
5667
5647
  * One store per PROCESS, even when two copies of this module are loaded (an
5668
5648
  * addon bundle next to the framework's): keyed on a registered symbol.
5669
5649
  */
5670
- var STORE_KEY = /* @__PURE__ */ Symbol.for("camstack.keychain.known-secrets");
5650
+ var STORE_KEY = /* @__PURE__ */ Symbol.for("dominevo.keychain.known-secrets");
5671
5651
  function store() {
5672
5652
  const existing = Reflect.get(globalThis, STORE_KEY);
5673
5653
  if (existing !== void 0 && existing !== null) return existing;
@@ -6601,7 +6581,7 @@ function enforceSecrets(owner, kind, decl, id, body, stored, mode) {
6601
6581
  if (leaf.value.$secret !== expected) throw new ForeignSecretMarkerError(`${kind}/${id.slice(0, 64)} field "${leaf.concrete}": the marker is not this row's own ref`);
6602
6582
  return leaf.value;
6603
6583
  }
6604
- if (leaf.value === "__camstack_redacted__") {
6584
+ if (leaf.value === "__dominevo_redacted__") {
6605
6585
  const keep = storedMarkers.get(leaf.concrete);
6606
6586
  if (keep === void 0) return REMOVE_LEAF;
6607
6587
  if (mode === "patch" && !leaf.concrete.includes("[")) return REMOVE_LEAF;
@@ -19263,7 +19243,7 @@ var viewerUiCapability = {
19263
19243
  * await api.platformProbe.getCapabilities.query(undefined, nodePin(nodeId))
19264
19244
  */
19265
19245
  /** tRPC `op.context` key carrying a per-call node pin. */
19266
- var CAP_NODE_PIN_CONTEXT_KEY = "__camstackNodePin";
19246
+ var CAP_NODE_PIN_CONTEXT_KEY = "__dominevoNodePin";
19267
19247
  /**
19268
19248
  * Build the tRPC request options that pin a single capability call to `nodeId`.
19269
19249
  * Pass as the second argument to `.query(input, …)` / `.mutate(input, …)`.
@@ -19310,7 +19290,7 @@ function readNodePin(context) {
19310
19290
  return typeof value === "string" ? value : void 0;
19311
19291
  }
19312
19292
  /** tRPC `op.context` key carrying a per-call command origin claim (D1022). */
19313
- var CAP_COMMAND_ORIGIN_CONTEXT_KEY = "__camstackCommandOrigin";
19293
+ var CAP_COMMAND_ORIGIN_CONTEXT_KEY = "__dominevoCommandOrigin";
19314
19294
  /**
19315
19295
  * Build the tRPC request options that state WHY a device command is being issued
19316
19296
  * (an action run, a scheduler). Pass as the second argument to `.mutate(input, …)`;
@@ -22869,7 +22849,7 @@ var CAP_METHOD_TIMEOUTS_MS = /* @__PURE__ */ Object.freeze({
22869
22849
  });
22870
22850
  //#endregion
22871
22851
  //#region src/constants.ts
22872
- var HF_REPO = "camstack/camstack-models";
22852
+ var HF_REPO = "Dominevo/dominevo-models";
22873
22853
  var HF_BASE_URL = `https://huggingface.co/${HF_REPO}/resolve/main`;
22874
22854
  /**
22875
22855
  * The ONE default session-JWT lifetime.
@@ -25388,4 +25368,4 @@ function enumerateInferenceDevices(hw) {
25388
25368
  return out;
25389
25369
  }
25390
25370
  //#endregion
25391
- export { CAP_ADVANCE_FIELDS as $, runAddonMigrations as $a, RECORD_BATCH_MAX_BYTES as $i, TransitionOutcomeSchema as $n, historyItemFieldPath as $r, readinessKey as $t, DEVICE_SCOPED_CAPS as A, RECORDS_ERROR_CODES as Aa, InstanceSwitchesUnreadError as Ai, StreamSourceEntrySchema$1 as An, hydrateInstanceSwitches as Ao, defineEntryKind as Ar, AppLabelSchema as At, commandEffect as B, asRecordsError as Ba, registrySwitchToBodyMigration as Bi, QUANTITY_BASE as Bn, audioChunkBytesPerSample as Bo, declarationsOf as Br, VocabActionError as Bt, asNumber as C, BatchTooLargeError as Ca, resolveSecretMarkers as Ci, DerivedSourceProbeSchema as Cn, isSecretConfigField as Co, PEER_BYTES_STALL_MS as Cr, PipelineStepInputSchema as Ct, parseJsonUnknown as D, InvalidRecordError as Da, resolveDeviceSettings as Di, ProfileRtspEntrySchema as Dn, claimInstance as Do, DATAPLANE_SECRET_HEADER as Dr, DEVICE_CHILDREN_BATCH_MAX as Dt, parseJsonObject as E, ForeignSecretMarkerError as Ea, nodeIdOfScopedKey as Ei, PreviewDerivedEncodeResultSchema as En, beginHydration as Eo, CALLER_USERNAME_HEADER as Er, deviceOpsCapability as Et, createEventBusSliceSource as F, RecordsError as Fa, bodySwitchToRegistryMigration as Fi, makeSourceBrokerId as Fn, recordRegistrySwitch as Fo, RecordKindDeclarationSchema as Fr, appSourceCapability as Ft, resolveSideEffect as G, recordsOverMigrationApi as Ga, collectSecretLeaves as Gi, isReadingQuantity as Gn, DEFAULT_RUNTIME_STATE_DURABILITY as Gr, vocabActionIdFor as Gt, commandHoldMs as H, bodySwitchRecordsOverMigrationApi as Ha, defaultAddDeviceMode as Hi, baseUnitOf as Hn, isAudioChunkFormat as Ho, SECRET_META as Hr, allVocabActions as Ht, createLazyTrpcSource as I, RevConflictError as Ia, moveBodySwitchToRegistry as Ii, parseProfileBrokerId as In, settleHydration as Io, RecordKindNameSchema as Ir, adminUiCapability as It, DeviceRestoreRetryScheduler as J, switchRecordsOverMigrationApi as Ja, recordArrayItemPath as Ji, DeviceCommandSettledEventSchema as Jn, HISTORY_DEFAULT_MIN_INTERVAL_MS as Jr, CAP_VOCABULARY as Jt, DEVICE_RESTORE_RETRY_CONCURRENCY as K, rowsDepsOver as Ka, mapSecretLeaves as Ki, readingMeta as Kn, DEVICE_SETTINGS_CONTRIBUTION_METHODS as Kr, vocabCall as Kt, createMirrorSource as L, TransactRefusedError as La, moveRegistrySwitchToBody as Li, selectAssignedProfileSlots as Ln, AddonMigrationsBlockedError as Lo, RecordRetentionSchema as Lr, AddonPageDeclarationSchema as Lt, createDeviceProxy as M, RecordSecretUnavailableError as Ma, createDurableState as Mi, SubscribeAudioChunksInputSchema as Mn, isInstanceOn as Mo, EntryDescriptorSchema as Mr, AppNavSectionSchema as Mt, invokeTrpcLeaf as N, RecordTooLargeError as Na, bodySwitchPortsOver as Ni, SubscribeAudioChunksResultSchema as Nn, pendingHydrationOwners as No, RecordFieldPathSchema as Nr, AppReachSchema as Nt, hfModelUrl as O, NoCallerError as Oa, resolvedValues as Oi, ProfileSlotSchema as On, clearInstanceSwitches as Oo, SHARE_VIEW_KINDS as Or, AppDeclarationSchema as Ot, addonSliceHandleApi as P, RecordUniqueViolationError as Pa, bodySwitchToRegistryId as Pi, makeProfileBrokerId as Pn, recordInstanceSwitch as Po, RecordIndexSchema as Pr, AppRoleSchema as Pt, RUNTIME_DEFAULTS as Q, defineAddonMigrations as Qa, RECORD_BATCH_MAX as Qi, TransitionCommandSchema as Qn, expandCapMethods as Qr, emitDownForOwnedCaps as Qt, createSliceHandle as R, UnindexedFilterError as Ra, registrySwitchPortsOver as Ri, DEFAULT_DISPLAY_PREFERENCE as Rn, findMigrationsBlocked as Ro, StoredRecordKindDeclarationSchema as Rr, addonPagesSourceCapability as Rt, asJsonObject as S, optionalLinkField as Sa, isSecretRefOwnedBy as Si, DerivedEncodePreviewSchema as Sn, isKeychainStoredField as So, PEER_BYTES_MAX_OUTSTANDING as Sr, PipelineRunResultBridge as St, parseJsonArray as T, FilterRequiredError as Ta, SCOPED_SETTINGS_SCOPES as Ti, FrameHandleSchema as Tn, schemaDeclaresAnyField as To, PeerBytesTicketSchema as Tr, RawStateResultSchema as Tt, effectConditionHolds as U, defaultIntegrationDepsOver as Ua, secretViewsOf as Ui, displayUnitFor as Un, collectZodSecretPaths as Ur, assertDeviceOffers as Ut, commandEffects as V, recordsErrorFromMessage as Va, RecordIntegrationInstances as Vi, ReadingQuantitySchema as Vn, expandAudioChunkToF32le as Vo, defineRecordKinds as Vr, actionEffect as Vt, isCommand as W, integrationRowsApiOver as Wa, REMOVE_LEAF as Wi, historyUnitFor as Wn, isZodSecret as Wr, findVocabAction as Wt, HF_BASE_URL as X, MigrationDependencyWaits as Xa, recordSecretRef as Xi, TransitionActorKindSchema as Xn, PROVIDER_PIN_FIELD as Xr, ReadinessRegistry as Xt, DEFAULT_TOKEN_EXPIRY as Y, AddonMigrationDefinitionError as Ya, recordSecretCollection as Yi, DeviceTransitionSchema as Yn, HISTORY_UNIT_LABELS as Yr, MODEL_FORMATS as Yt, HF_REPO as Z, appliedIdsOf as Za, secretArrayPrefixes as Zi, TransitionActorSchema as Zn, event as Zr, ReadinessTimeoutError as Zt, pythonScriptForBackend as _, isSecretRef as _a, parseSecretStatePath as _i, CamStreamKindSchema as _n, makeSecretMarker as _o, knownSecretCount as _r, readNodePin as _t, runtimeDevices as a, RECORD_MAX_DATA_BYTES as aa, CamstackError as ai, DebugInterest as an, collectHydratedFieldEntries as ao, RuleFireOriginSchema as ar, isCapMethodAbsent as at, asBoolean as b, linkField as ba, KeychainWriteRefusedError as bi, DecodedAudioChunkSchema as bn, collectKeychainStoredKeys as bo, shortSecretRefHash as br, SWITCH_SETTABLE_GATE as bt, coralUsableUnits as c, RECORD_QUERY_MAX as ca, FORBIDDEN_MESSAGE_PREFIX as ci, createDebugEmitter as cn, dehydrateSchema as co, createRecordsAccess as cr, customAction as ct, sleepCancellable as d, RECORD_SWEEP_INTERVAL_MS as da, userError as di, AudioChunkFormatSchema as dn, SECRET_CLEAR as do, resolveSecretViewsIn as dr, deviceCustomAction as dt, RECORD_CLASSES as ea, isDeviceConfigCap as ei, scopeKey as en, createEvent as eo, TransitionRowOutcomeSchema as er, CAP_METHOD_TIMEOUTS_MS as et, DEVICE_BACKEND_TO_FORMAT as f, SECRET_REF_SCHEME as fa, BaseAddon as fi, AudioStreamPickSchema as fn, classifySecretWrite as fo, REVALIDATE_AFTER_MS as fr, CAP_COMMAND_ORIGIN_CONTEXT_KEY as ft, formatForRuntime as g, globalSecretScope as ga, mergeSecretStatePaths as gi, CamProfileSchema as gn, isSecretMarkerLike as go, forgetKnownSecret as gr, readCommandOrigin as gt, deviceBackendToFormat as h, formatSecretScope as ha, normalizeAddonInitResult as hi, CAM_PROFILE_ORDER as hn, isSecretMarker as ho, clearKnownSecrets as hr, nodePin as ht, modelFormatForRuntime as i, RECORD_ID_MAX_LENGTH as ia, systemMethod as ii, DEBUG_WATCH_WINDOW_MS as in, WELL_KNOWN_TAB_MAP as io, OnBehalfSourceSchema as ir, CAP_METHOD_NOT_IMPLEMENTED as it, isDeviceScopedCap as j, RecordNotFoundError as ja, isInstanceSwitchesUnreadError as ji, StreamSourceSchema as jn, isHydrationPending as jo, entryBody as jr, AppNavItemSchema as jt, BOOT_RECOVERY_BACKOFF_MS as k, PlaintextSecretError as ka, normalizeNodeId as ki, ProfileSlotStatusSchema as kn, forgetInstanceSwitch as ko, DisposerChain as kr, AppEntrySchema as kt, edgetpuDelegateDevice as l, RECORD_SECRET_COLLECTION_PREFIX as la, forbiddenError as li, getDebugInterest as ln, hydrateSchema as lo, parseRecordBody as lr, defineCustomActions as lt, RUNTIME_TO_FORMAT as m, buildSecretRef as ma, migrationSet as mi, BrokerStatusSchema as mn, isSecretFieldView as mo, MIN_SCRUBBED_LENGTH as mr, commandOrigin as mt, describeNvidia as n, RECORD_DEFAULT_MAX_DATA_BYTES as na, optionalMethod as ni, DEBUG_WATCH_HARD_CAP_MS as nn, isEvent as no, CommandOriginClaimSchema as nr, CAP_STATE_FIELD_PRESENCE as nt, scoreRuntimes as o, RECORD_MAX_INDEXES as oa, ErrorCodeSchema as oi, DebugWatchTable as on, collectHydratedFieldValues as oo, ruleFireOfClaim as or, CALLER_STAMPED_CAPABILITIES as ot, PYTHON_SCRIPT as p, arrayItemFieldPath as pa, classifyStoreError as pi, BrokerStatsSchema as pn, isSecretClear as po, createSecretsAccess as pr, CAP_NODE_PIN_CONTEXT_KEY as pt, DEVICE_RESTORE_RETRY_DELAYS_MS as q, secretsOverMigrationApi as qa, parseSecretPath as qi, NOT_A_DEVICE as qn, DEVICE_STATUS_METHOD as qr, CAP_VOCABULARY_BY_NAME as qt, enumerateInferenceDevices as r, RECORD_DELETE_BATCH as ra, resolveCapMount as ri, DEBUG_WATCH_REARM_EVERY_MS as rn, WELL_KNOWN_TABS as ro, OnBehalfSchema as rr, CAP_STATE_LEAVES as rt, supportedRuntimes as s, RECORD_MAX_INDEX_FIELDS as sa, ErrorI18nPayloadSchema as si, __resetDebugInterestForTests as sn, dehydrateConfigField as so, makeInMemoryRecords as sr, withoutCallerStamp as st, defaultDeviceFor as t, RECORD_DATABASES as ta, method as ti, DEBUG_CHANNEL_PREFIX as tn, emitReadiness as to, TransitionValueSchema as tr, CAP_NAMES as tt, sleep as u, RECORD_SETTINGS_MAX_ROWS as ua, readErrorI18n as ui, isDebugChannelName as un, resolveHydratedFieldValue as uo, assertTransactScope as ur, describeCustomActions as ut, requiresPython as v, normalizeSecretOwner as va, secretTreeFromPaths as vi, CamStreamResolutionSchema as vn, toSecretFieldView as vo, registerKnownSecret as vr, toNodeId as vt, asString as w, DeclarationRefusedError as wa, transformSecretWrite as wi, DerivedSourceRefSchema as wn, omitTransientConfig as wo, PEER_BYTES_TICKET_TTL_MS as wr, MIGRATION_API_VERSION as wt, asJsonArray as x, linksOfKind as xa, collectSecretMarkerRefs as xi, DerivedEffectiveEncodeSchema as xn, collectSecretConfigKeys as xo, PEER_BYTES_CHUNK_BYTES as xr, switchRefusesSetState as xt, maskUrlCredentials as y, parseSecretRef as ya, secretTreeFromSchema as yi, CameraStreamSchema as yn, REDACTED_SECRET as yo, scrubKnownSecrets as yr, viewerUiCapability as yt, auditedFields as z, UnknownRecordKindError as za, registrySwitchToBodyId as zi, DISPLAY_PREFERENCES as zn, AUDIO_CHUNK_FORMATS as zo, assertValidDeclaration as zr, t as zt };
25371
+ export { CAP_ADVANCE_FIELDS as $, runAddonMigrations as $a, RECORD_BATCH_MAX_BYTES as $i, TransitionOutcomeSchema as $n, historyItemFieldPath as $r, readinessKey as $t, DEVICE_SCOPED_CAPS as A, RECORDS_ERROR_CODES as Aa, InstanceSwitchesUnreadError as Ai, StreamSourceEntrySchema$1 as An, hydrateInstanceSwitches as Ao, defineEntryKind as Ar, AppLabelSchema as At, commandEffect as B, asRecordsError as Ba, registrySwitchToBodyMigration as Bi, QUANTITY_BASE as Bn, audioChunkBytesPerSample as Bo, declarationsOf as Br, VocabActionError as Bt, asNumber as C, BatchTooLargeError as Ca, resolveSecretMarkers as Ci, DerivedSourceProbeSchema as Cn, isSecretConfigField as Co, PEER_BYTES_STALL_MS as Cr, PipelineStepInputSchema as Ct, parseJsonUnknown as D, InvalidRecordError as Da, resolveDeviceSettings as Di, ProfileRtspEntrySchema as Dn, claimInstance as Do, DATAPLANE_SECRET_HEADER as Dr, DEVICE_CHILDREN_BATCH_MAX as Dt, parseJsonObject as E, ForeignSecretMarkerError as Ea, nodeIdOfScopedKey as Ei, PreviewDerivedEncodeResultSchema as En, beginHydration as Eo, CALLER_USERNAME_HEADER as Er, deviceOpsCapability as Et, createEventBusSliceSource as F, RecordsError as Fa, bodySwitchToRegistryMigration as Fi, makeSourceBrokerId as Fn, recordRegistrySwitch as Fo, RecordKindDeclarationSchema as Fr, appSourceCapability as Ft, resolveSideEffect as G, recordsOverMigrationApi as Ga, collectSecretLeaves as Gi, isReadingQuantity as Gn, DEFAULT_RUNTIME_STATE_DURABILITY as Gr, vocabActionIdFor as Gt, commandHoldMs as H, bodySwitchRecordsOverMigrationApi as Ha, defaultAddDeviceMode as Hi, baseUnitOf as Hn, isAudioChunkFormat as Ho, SECRET_META as Hr, allVocabActions as Ht, createLazyTrpcSource as I, RevConflictError as Ia, moveBodySwitchToRegistry as Ii, parseProfileBrokerId as In, settleHydration as Io, RecordKindNameSchema as Ir, adminUiCapability as It, DeviceRestoreRetryScheduler as J, switchRecordsOverMigrationApi as Ja, recordArrayItemPath as Ji, DeviceCommandSettledEventSchema as Jn, HISTORY_DEFAULT_MIN_INTERVAL_MS as Jr, CAP_VOCABULARY as Jt, DEVICE_RESTORE_RETRY_CONCURRENCY as K, rowsDepsOver as Ka, mapSecretLeaves as Ki, readingMeta as Kn, DEVICE_SETTINGS_CONTRIBUTION_METHODS as Kr, vocabCall as Kt, createMirrorSource as L, TransactRefusedError as La, moveRegistrySwitchToBody as Li, selectAssignedProfileSlots as Ln, AddonMigrationsBlockedError as Lo, RecordRetentionSchema as Lr, AddonPageDeclarationSchema as Lt, createDeviceProxy as M, RecordSecretUnavailableError as Ma, createDurableState as Mi, SubscribeAudioChunksInputSchema as Mn, isInstanceOn as Mo, EntryDescriptorSchema as Mr, AppNavSectionSchema as Mt, invokeTrpcLeaf as N, RecordTooLargeError as Na, bodySwitchPortsOver as Ni, SubscribeAudioChunksResultSchema as Nn, pendingHydrationOwners as No, RecordFieldPathSchema as Nr, AppReachSchema as Nt, hfModelUrl as O, NoCallerError as Oa, resolvedValues as Oi, ProfileSlotSchema as On, clearInstanceSwitches as Oo, SHARE_VIEW_KINDS as Or, AppDeclarationSchema as Ot, addonSliceHandleApi as P, RecordUniqueViolationError as Pa, bodySwitchToRegistryId as Pi, makeProfileBrokerId as Pn, recordInstanceSwitch as Po, RecordIndexSchema as Pr, AppRoleSchema as Pt, RUNTIME_DEFAULTS as Q, defineAddonMigrations as Qa, RECORD_BATCH_MAX as Qi, TransitionCommandSchema as Qn, expandCapMethods as Qr, emitDownForOwnedCaps as Qt, createSliceHandle as R, UnindexedFilterError as Ra, registrySwitchPortsOver as Ri, DEFAULT_DISPLAY_PREFERENCE as Rn, findMigrationsBlocked as Ro, StoredRecordKindDeclarationSchema as Rr, addonPagesSourceCapability as Rt, asJsonObject as S, optionalLinkField as Sa, isSecretRefOwnedBy as Si, DerivedEncodePreviewSchema as Sn, isKeychainStoredField as So, PEER_BYTES_MAX_OUTSTANDING as Sr, PipelineRunResultBridge as St, parseJsonArray as T, FilterRequiredError as Ta, SCOPED_SETTINGS_SCOPES as Ti, FrameHandleSchema as Tn, schemaDeclaresAnyField as To, PeerBytesTicketSchema as Tr, RawStateResultSchema as Tt, effectConditionHolds as U, defaultIntegrationDepsOver as Ua, secretViewsOf as Ui, displayUnitFor as Un, collectZodSecretPaths as Ur, assertDeviceOffers as Ut, commandEffects as V, recordsErrorFromMessage as Va, RecordIntegrationInstances as Vi, ReadingQuantitySchema as Vn, expandAudioChunkToF32le as Vo, defineRecordKinds as Vr, actionEffect as Vt, isCommand as W, integrationRowsApiOver as Wa, REMOVE_LEAF as Wi, historyUnitFor as Wn, isZodSecret as Wr, findVocabAction as Wt, HF_BASE_URL as X, MigrationDependencyWaits as Xa, recordSecretRef as Xi, TransitionActorKindSchema as Xn, PROVIDER_PIN_FIELD as Xr, ReadinessRegistry as Xt, DEFAULT_TOKEN_EXPIRY as Y, AddonMigrationDefinitionError as Ya, recordSecretCollection as Yi, DeviceTransitionSchema as Yn, HISTORY_UNIT_LABELS as Yr, MODEL_FORMATS as Yt, HF_REPO as Z, appliedIdsOf as Za, secretArrayPrefixes as Zi, TransitionActorSchema as Zn, event as Zr, ReadinessTimeoutError as Zt, pythonScriptForBackend as _, isSecretRef as _a, parseSecretStatePath as _i, CamStreamKindSchema as _n, makeSecretMarker as _o, knownSecretCount as _r, readNodePin as _t, runtimeDevices as a, RECORD_MAX_DATA_BYTES as aa, DominevoError as ai, DebugInterest as an, collectHydratedFieldEntries as ao, RuleFireOriginSchema as ar, isCapMethodAbsent as at, asBoolean as b, linkField as ba, KeychainWriteRefusedError as bi, DecodedAudioChunkSchema as bn, collectKeychainStoredKeys as bo, shortSecretRefHash as br, SWITCH_SETTABLE_GATE as bt, coralUsableUnits as c, RECORD_QUERY_MAX as ca, FORBIDDEN_MESSAGE_PREFIX as ci, createDebugEmitter as cn, dehydrateSchema as co, createRecordsAccess as cr, customAction as ct, sleepCancellable as d, RECORD_SWEEP_INTERVAL_MS as da, userError as di, AudioChunkFormatSchema as dn, SECRET_CLEAR as do, resolveSecretViewsIn as dr, deviceCustomAction as dt, RECORD_CLASSES as ea, isDeviceConfigCap as ei, scopeKey as en, createEvent as eo, TransitionRowOutcomeSchema as er, CAP_METHOD_TIMEOUTS_MS as et, DEVICE_BACKEND_TO_FORMAT as f, SECRET_REF_SCHEME as fa, BaseAddon as fi, AudioStreamPickSchema as fn, classifySecretWrite as fo, REVALIDATE_AFTER_MS as fr, CAP_COMMAND_ORIGIN_CONTEXT_KEY as ft, formatForRuntime as g, globalSecretScope as ga, mergeSecretStatePaths as gi, CamProfileSchema as gn, isSecretMarkerLike as go, forgetKnownSecret as gr, readCommandOrigin as gt, deviceBackendToFormat as h, formatSecretScope as ha, normalizeAddonInitResult as hi, CAM_PROFILE_ORDER as hn, isSecretMarker as ho, clearKnownSecrets as hr, nodePin as ht, modelFormatForRuntime as i, RECORD_ID_MAX_LENGTH as ia, systemMethod as ii, DEBUG_WATCH_WINDOW_MS as in, WELL_KNOWN_TAB_MAP as io, OnBehalfSourceSchema as ir, CAP_METHOD_NOT_IMPLEMENTED as it, isDeviceScopedCap as j, RecordNotFoundError as ja, isInstanceSwitchesUnreadError as ji, StreamSourceSchema as jn, isHydrationPending as jo, entryBody as jr, AppNavItemSchema as jt, BOOT_RECOVERY_BACKOFF_MS as k, PlaintextSecretError as ka, normalizeNodeId as ki, ProfileSlotStatusSchema as kn, forgetInstanceSwitch as ko, DisposerChain as kr, AppEntrySchema as kt, edgetpuDelegateDevice as l, RECORD_SECRET_COLLECTION_PREFIX as la, forbiddenError as li, getDebugInterest as ln, hydrateSchema as lo, parseRecordBody as lr, defineCustomActions as lt, RUNTIME_TO_FORMAT as m, buildSecretRef as ma, migrationSet as mi, BrokerStatusSchema as mn, isSecretFieldView as mo, MIN_SCRUBBED_LENGTH as mr, commandOrigin as mt, describeNvidia as n, RECORD_DEFAULT_MAX_DATA_BYTES as na, optionalMethod as ni, DEBUG_WATCH_HARD_CAP_MS as nn, isEvent as no, CommandOriginClaimSchema as nr, CAP_STATE_FIELD_PRESENCE as nt, scoreRuntimes as o, RECORD_MAX_INDEXES as oa, ErrorCodeSchema as oi, DebugWatchTable as on, collectHydratedFieldValues as oo, ruleFireOfClaim as or, CALLER_STAMPED_CAPABILITIES as ot, PYTHON_SCRIPT as p, arrayItemFieldPath as pa, classifyStoreError as pi, BrokerStatsSchema as pn, isSecretClear as po, createSecretsAccess as pr, CAP_NODE_PIN_CONTEXT_KEY as pt, DEVICE_RESTORE_RETRY_DELAYS_MS as q, secretsOverMigrationApi as qa, parseSecretPath as qi, NOT_A_DEVICE as qn, DEVICE_STATUS_METHOD as qr, CAP_VOCABULARY_BY_NAME as qt, enumerateInferenceDevices as r, RECORD_DELETE_BATCH as ra, resolveCapMount as ri, DEBUG_WATCH_REARM_EVERY_MS as rn, WELL_KNOWN_TABS as ro, OnBehalfSchema as rr, CAP_STATE_LEAVES as rt, supportedRuntimes as s, RECORD_MAX_INDEX_FIELDS as sa, ErrorI18nPayloadSchema as si, __resetDebugInterestForTests as sn, dehydrateConfigField as so, makeInMemoryRecords as sr, withoutCallerStamp as st, defaultDeviceFor as t, RECORD_DATABASES as ta, method as ti, DEBUG_CHANNEL_PREFIX as tn, emitReadiness as to, TransitionValueSchema as tr, CAP_NAMES as tt, sleep as u, RECORD_SETTINGS_MAX_ROWS as ua, readErrorI18n as ui, isDebugChannelName as un, resolveHydratedFieldValue as uo, assertTransactScope as ur, describeCustomActions as ut, requiresPython as v, normalizeSecretOwner as va, secretTreeFromPaths as vi, CamStreamResolutionSchema as vn, toSecretFieldView as vo, registerKnownSecret as vr, toNodeId as vt, asString as w, DeclarationRefusedError as wa, transformSecretWrite as wi, DerivedSourceRefSchema as wn, omitTransientConfig as wo, PEER_BYTES_TICKET_TTL_MS as wr, MIGRATION_API_VERSION as wt, asJsonArray as x, linksOfKind as xa, collectSecretMarkerRefs as xi, DerivedEffectiveEncodeSchema as xn, collectSecretConfigKeys as xo, PEER_BYTES_CHUNK_BYTES as xr, switchRefusesSetState as xt, maskUrlCredentials as y, parseSecretRef as ya, secretTreeFromSchema as yi, CameraStreamSchema as yn, REDACTED_SECRET as yo, scrubKnownSecrets as yr, viewerUiCapability as yt, auditedFields as z, UnknownRecordKindError as za, registrySwitchToBodyId as zi, DISPLAY_PREFERENCES as zn, AUDIO_CHUNK_FORMATS as zo, assertValidDeclaration as zr, t as zt };
@@ -11,7 +11,7 @@ import type { StorageLocationType } from '../interfaces/storage-location.js';
11
11
  * {rootPath}/models/
12
12
  * {rootPath}/addons-data/
13
13
  * {rootPath}/logs/
14
- * /tmp/camstack-cache/ (cache is always local)
14
+ * /tmp/dominevo-cache/ (cache is always local)
15
15
  *
16
16
  * Individual location paths can be overridden.
17
17
  */
@@ -1544,9 +1544,9 @@ export interface AutomationInstanceReexpansion {
1544
1544
  export declare function reexpandAutomationInstance(payload: AutomationTemplatePayload | null, current: AutomationRecipe): AutomationInstanceReexpansion;
1545
1545
  /** "Convert to a free automation": the expansion as it is, without the link. */
1546
1546
  export declare function detachAutomationInstance(recipe: AutomationRecipe): AutomationRecipe;
1547
- export declare const AUTOMATION_TEMPLATE_EXPORT_FORMAT = "camstack.automation-template";
1547
+ export declare const AUTOMATION_TEMPLATE_EXPORT_FORMAT = "dominevo.automation-template";
1548
1548
  export declare const AutomationTemplateExportSchema: z.ZodObject<{
1549
- format: z.ZodLiteral<"camstack.automation-template">;
1549
+ format: z.ZodLiteral<"dominevo.automation-template">;
1550
1550
  version: z.ZodLiteral<1>;
1551
1551
  name: z.ZodString;
1552
1552
  payload: z.ZodObject<{
@@ -2,22 +2,22 @@
2
2
  * The trainer contract — what the hub hands the cloud trainer and what it
3
3
  * gets back (cloud training, D805+).
4
4
  *
5
- * The trainer (`hf/camstack-trainer`, published as the Hugging Face repo
6
- * `camstack/camstack-trainer`) is a separate AGPL program the hub never
7
- * imports: `job.json` goes in, files come out, and progress is `CAMSTACK_EVENT`
5
+ * The trainer (`hf/dominevo-trainer`, published as the Hugging Face repo
6
+ * `Dominevo/dominevo-trainer`) is a separate AGPL program the hub never
7
+ * imports: `job.json` goes in, files come out, and progress is `DOMINEVO_EVENT`
8
8
  * lines on stdout. These schemas are the hub's half of that boundary; the
9
9
  * trainer's pydantic models (and the JSON Schemas generated from them under
10
- * `hf/camstack-trainer/schemas/`) are the other half. A change here is a
10
+ * `hf/dominevo-trainer/schemas/`) are the other half. A change here is a
11
11
  * change there, in the same piece of work.
12
12
  *
13
13
  * No `.default()` anywhere: defaults do not run on the addon cap path, so the
14
14
  * orchestrator fills every field of a job spec explicitly.
15
15
  */
16
16
  import { z } from 'zod';
17
- export declare const TRAINING_JOB_SCHEMA = "camstack.training/v1";
18
- export declare const TRAINING_RESULT_SCHEMA = "camstack.training-result/v1";
17
+ export declare const TRAINING_JOB_SCHEMA = "dominevo.training/v1";
18
+ export declare const TRAINING_RESULT_SCHEMA = "dominevo.training-result/v1";
19
19
  /** The stdout prefix of a progress line. Anything else on stdout is log text. */
20
- export declare const CAMSTACK_EVENT_PREFIX = "CAMSTACK_EVENT ";
20
+ export declare const DOMINEVO_EVENT_PREFIX = "DOMINEVO_EVENT ";
21
21
  /** What the trainer can export. Edge TPU is a later, separate image. */
22
22
  export declare const TrainingExportSchema: z.ZodEnum<{
23
23
  "coreml-fp16": "coreml-fp16";
@@ -27,7 +27,7 @@ export declare const TrainingExportSchema: z.ZodEnum<{
27
27
  }>;
28
28
  export type TrainingExport = z.infer<typeof TrainingExportSchema>;
29
29
  export declare const TrainingJobSpecSchema: z.ZodObject<{
30
- schema: z.ZodLiteral<"camstack.training/v1">;
30
+ schema: z.ZodLiteral<"dominevo.training/v1">;
31
31
  jobKey: z.ZodString;
32
32
  target: z.ZodObject<{
33
33
  kind: z.ZodLiteral<"detector">;
@@ -188,7 +188,7 @@ export type TrainingEvalReport = z.infer<typeof TrainingEvalReportSchema>;
188
188
  * orchestrator checks the blocks it needs before it trusts a success.
189
189
  */
190
190
  export declare const TrainingResultSchema: z.ZodObject<{
191
- schema: z.ZodLiteral<"camstack.training-result/v1">;
191
+ schema: z.ZodLiteral<"dominevo.training-result/v1">;
192
192
  jobKey: z.ZodString;
193
193
  status: z.ZodEnum<{
194
194
  failed: "failed";
@@ -8,10 +8,10 @@ import { z } from 'zod';
8
8
  * one pre-bundled, side-effectful file; the finer regression (an initializer kept inside a
9
9
  * module that IS reached) is `check-addon-types-reachability.ts`.
10
10
  */
11
- export declare const TREESHAKE_CANARY_LITERAL = "camstack-types-treeshake-canary-7c1e";
11
+ export declare const TREESHAKE_CANARY_LITERAL = "dominevo-types-treeshake-canary-7c1e";
12
12
  export declare const TreeshakeCanarySchema: Readonly<{
13
- literal: "camstack-types-treeshake-canary-7c1e";
13
+ literal: "dominevo-types-treeshake-canary-7c1e";
14
14
  schema: z.ZodObject<{
15
- "camstack-types-treeshake-canary-7c1e": z.ZodString;
15
+ "dominevo-types-treeshake-canary-7c1e": z.ZodString;
16
16
  }, z.core.$strip>;
17
17
  }>;
@@ -97,7 +97,7 @@ export interface AgentPipelineSettings {
97
97
  /**
98
98
  * Operator override for the LAN host a cross-node decoder dials to reach
99
99
  * THIS node's restream (Cluster UI). Absent → auto-detect: a remote runner
100
- * falls back to its `CAMSTACK_HUB_URL`-derived host. Set only when the
100
+ * falls back to its `DOMINEVO_HUB_URL`-derived host. Set only when the
101
101
  * auto-detected address is wrong (multi-homed host, NAT, custom interface).
102
102
  */
103
103
  readonly reachableHost?: string;
@@ -15,8 +15,8 @@ export type ModelOutputFormat = 'yolo' | 'ssd' | 'embedding' | 'classification'
15
15
  * HuggingFace API (slower).
16
16
  * - Single-file formats (no `isDirectory`, e.g. OpenVINO IR): sibling
17
17
  * files fetched from the SAME remote directory as `url` and stored flat
18
- * alongside the main file — e.g. `['camstack-yolov9t.bin']` for the IR
19
- * weights next to `camstack-yolov9t.xml`.
18
+ * alongside the main file — e.g. `['dominevo-yolov9t.bin']` for the IR
19
+ * weights next to `dominevo-yolov9t.xml`.
20
20
  */
21
21
  export declare const ModelFormatEntrySchema: z.ZodObject<{
22
22
  url: z.ZodString;
@@ -178,12 +178,12 @@ export type ModelVariantGroup = z.infer<typeof ModelVariantGroupSchema>;
178
178
  * Where a catalog entry came from. The pipeline stepper partitions the picker
179
179
  * by this id (Dominevo / plus catalog / plugin catalog / Custom). Absent on older durable
180
180
  * registry rows — {@link inferModelProvider} fills it at read time. Built-in
181
- * catalog entries omit it and `getSchema` treats them as `camstack`.
181
+ * catalog entries omit it and `getSchema` treats them as `dominevo`.
182
182
  */
183
- export declare const MODEL_PROVIDER_IDS: readonly ['camstack', 'frigate', 'scrypted', 'custom'];
183
+ export declare const MODEL_PROVIDER_IDS: readonly ['dominevo', 'frigate', 'scrypted', 'custom'];
184
184
  export declare const ModelProviderIdSchema: z.ZodEnum<{
185
- camstack: "camstack";
186
185
  custom: "custom";
186
+ dominevo: "dominevo";
187
187
  frigate: "frigate";
188
188
  scrypted: "scrypted";
189
189
  }>;
@@ -200,7 +200,7 @@ export interface InferModelProviderInput {
200
200
  * NOT a plugin catalog signal — Dominevo ships that family too.
201
201
  */
202
202
  export declare function inferModelProvider(entry: InferModelProviderInput): ModelProviderId;
203
- export declare const MODEL_HOSTING: readonly ['camstack-hf', 'third-party', 'built-in'];
203
+ export declare const MODEL_HOSTING: readonly ['dominevo-hf', 'third-party', 'built-in'];
204
204
  export type ModelHosting = (typeof MODEL_HOSTING)[number];
205
205
  /**
206
206
  * The licence of a model, as a record rather than a bare SPDX string: a
@@ -231,7 +231,7 @@ export declare const ModelLicenseSchema: z.ZodPreprocess<z.ZodObject<{
231
231
  modifications: z.ZodOptional<z.ZodString>;
232
232
  hosting: z.ZodOptional<z.ZodEnum<{
233
233
  "built-in": "built-in";
234
- "camstack-hf": "camstack-hf";
234
+ "dominevo-hf": "dominevo-hf";
235
235
  "third-party": "third-party";
236
236
  }>>;
237
237
  nonCommercial: z.ZodOptional<z.ZodBoolean>;
@@ -413,7 +413,7 @@ export declare const ModelCatalogEntrySchema: z.ZodObject<{
413
413
  modifications: z.ZodOptional<z.ZodString>;
414
414
  hosting: z.ZodOptional<z.ZodEnum<{
415
415
  "built-in": "built-in";
416
- "camstack-hf": "camstack-hf";
416
+ "dominevo-hf": "dominevo-hf";
417
417
  "third-party": "third-party";
418
418
  }>>;
419
419
  nonCommercial: z.ZodOptional<z.ZodBoolean>;
@@ -432,8 +432,8 @@ export declare const ModelCatalogEntrySchema: z.ZodObject<{
432
432
  resolution: z.ZodOptional<z.ZodNumber>;
433
433
  }, z.core.$strip>>;
434
434
  provider: z.ZodOptional<z.ZodEnum<{
435
- camstack: "camstack";
436
435
  custom: "custom";
436
+ dominevo: "dominevo";
437
437
  frigate: "frigate";
438
438
  scrypted: "scrypted";
439
439
  }>>;
@@ -728,7 +728,7 @@ export declare const ConvertResultSchema: z.ZodObject<{
728
728
  modifications: z.ZodOptional<z.ZodString>;
729
729
  hosting: z.ZodOptional<z.ZodEnum<{
730
730
  "built-in": "built-in";
731
- "camstack-hf": "camstack-hf";
731
+ "dominevo-hf": "dominevo-hf";
732
732
  "third-party": "third-party";
733
733
  }>>;
734
734
  nonCommercial: z.ZodOptional<z.ZodBoolean>;
@@ -747,8 +747,8 @@ export declare const ConvertResultSchema: z.ZodObject<{
747
747
  resolution: z.ZodOptional<z.ZodNumber>;
748
748
  }, z.core.$strip>>;
749
749
  provider: z.ZodOptional<z.ZodEnum<{
750
- camstack: "camstack";
751
750
  custom: "custom";
751
+ dominevo: "dominevo";
752
752
  frigate: "frigate";
753
753
  scrypted: "scrypted";
754
754
  }>>;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * The shared, node-local models directory: `<nodeDataDir>/models`, created when missing.
3
+ *
4
+ * The SINGLE resolver for every inference addon (detection-pipeline, audio-analyzer,
5
+ * embedding-encoder, model-studio, ai). It is anchored at the node's own writable data root
6
+ * (`ctx.nodeDataDir`) — never the hub-singleton `storage` cap, which returns the hub's
7
+ * `/data/models` to every node and breaks a node whose real data dir differs (the macOS agent).
8
+ * Node-only, hence `@dominevo/types/node`, off the browser-facing root entry.
9
+ */
10
+ export declare function resolveModelsDir(nodeDataDir: string): Promise<string>;
@@ -68,7 +68,7 @@ export interface PoolMemoryPolicy {
68
68
  }
69
69
  export declare const DEFAULT_POOL_MEMORY_POLICY: PoolMemoryPolicy;
70
70
  /**
71
- * Resolve the policy from env overrides (`CAMSTACK_POOL_MEM_*`). Garbage or
71
+ * Resolve the policy from env overrides (`DOMINEVO_POOL_MEM_*`). Garbage or
72
72
  * absent values keep the default — an operator typo must never disable the
73
73
  * bound or set it to zero.
74
74
  */
@@ -1,6 +1,5 @@
1
1
  const require_composed_stable_id = require("./composed-stable-id-C9Vwl-Qd.js");
2
2
  let zod = require("zod");
3
- let node_crypto = require("node:crypto");
4
3
  //#region src/ffmpeg/invocation.ts
5
4
  var AUDIO_ENCODER_BY_CODEC = {
6
5
  opus: "libopus",
@@ -695,37 +694,60 @@ var Fmp4BoxSplitter = class {
695
694
  }
696
695
  };
697
696
  //#endregion
698
- //#region src/utils/canonical-hash.ts
697
+ //#region src/ffmpeg/sharing-key.ts
699
698
  /**
700
- * Deterministic SHA-256 hash of an arbitrary serialisable value. The
701
- * canonical form sorts object keys alphabetically at every depth so two
702
- * structurally-equal inputs with different key insertion orders produce
703
- * the same hash. Returns a 64-char lowercase hex digest.
704
- *
705
- * Used by export adapters (Alexa, HAP) to short-circuit re-discovery /
706
- * accessory-rebuild work when the upstream shape is byte-identical to
707
- * the last applied state — preventing user-visible "re-discovery"
708
- * notifications on every addon-runner respawn. Each respawn re-fires
709
- * `DeviceBindingsChanged` for every cap registration, which without
710
- * this guard would propagate redundant pushes.
711
- *
712
- * Note: this is a SYMPTOMATIC fix layered on top of the binding-change
713
- * subscription. The proper fix is a single "device ready" lifecycle
714
- * barrier so exports react only when the full cap set has landed —
715
- * tracked separately for post-HA-integration work.
699
+ * The transport a CAP request describes. `fragments` is deliberately
700
+ * unreachable from here — the request schema has no way to ask for it, so the
701
+ * cap path can never be handed a fragment child by accident.
716
702
  */
717
- function canonicalHash(value) {
718
- const canonical = JSON.stringify(value, replaceWithSortedKeys);
719
- return (0, node_crypto.createHash)("sha256").update(canonical ?? "").digest("hex");
703
+ function egressTransportFromRequest(request) {
704
+ return { transport: request.publishLocally === true ? "push" : "dial" };
720
705
  }
721
- function replaceWithSortedKeys(_key, value) {
722
- if (value && typeof value === "object" && !Array.isArray(value)) {
723
- const obj = value;
724
- const out = {};
725
- for (const k of Object.keys(obj).toSorted()) out[k] = obj[k];
726
- return out;
727
- }
728
- return value;
706
+ /** Absent optional ⇒ this sentinel, so `undefined` and "not set" agree. */
707
+ var UNSET = "\0unset";
708
+ function canonicalVideo(video) {
709
+ return {
710
+ codec: video.codec,
711
+ profile: video.profile ?? UNSET,
712
+ level: video.level ?? UNSET,
713
+ width: video.width ?? -1,
714
+ height: video.height ?? -1,
715
+ fps: video.fps ?? -1,
716
+ bitrateKbps: video.bitrateKbps ?? -1,
717
+ gopFrames: video.gopFrames ?? -1,
718
+ bf: video.bf ?? -1,
719
+ preset: video.preset ?? UNSET,
720
+ tune: video.tune ?? UNSET,
721
+ singleSlicePerFrame: video.singleSlicePerFrame === void 0 ? UNSET : String(video.singleSlicePerFrame)
722
+ };
723
+ }
724
+ function canonicalAudio(audio) {
725
+ if (audio === "passthrough") return { codec: "passthrough" };
726
+ return {
727
+ codec: audio.codec,
728
+ bitrateKbps: audio.bitrateKbps ?? -1,
729
+ sampleRateHz: audio.sampleRateHz ?? -1,
730
+ channels: audio.channels ?? -1
731
+ };
732
+ }
733
+ /**
734
+ * The normalised plan a key is computed from. Exported so a test — and a
735
+ * future operator-facing "why are these two not sharing?" surface — can diff
736
+ * two requests without reversing a hash.
737
+ */
738
+ function canonicalEgressPlan(request, delivery = egressTransportFromRequest(request)) {
739
+ return {
740
+ deviceId: request.deviceId,
741
+ source: request.source.kind === "profile" ? `profile:${request.source.profile}` : `cam-stream:${request.source.camStreamId}`,
742
+ transport: delivery.transport,
743
+ fragmentMs: delivery.fragmentMs ?? -1,
744
+ video: canonicalVideo(request.encode.video),
745
+ audio: canonicalAudio(request.encode.audio),
746
+ rateControl: request.rateControl ?? "relaxed",
747
+ bitstreamFilter: request.bitstreamFilter ?? UNSET,
748
+ pixelFormat: request.pixelFormat ?? UNSET,
749
+ decodeHwAccel: request.decodeHwAccel ?? UNSET
750
+ };
729
751
  }
730
752
  //#endregion
731
753
  //#region src/deps/ffmpeg-artifacts.ts
@@ -853,7 +875,7 @@ var FFMPEG_ARTIFACTS = {
853
875
  /** The artifact for this node, or a refusal naming what was asked for. */
854
876
  function getFfmpegArtifact(platform, arch) {
855
877
  const artifact = FFMPEG_ARTIFACTS[`${platform}-${arch}`];
856
- if (!artifact) throw new Error(`Unsupported platform/architecture for ffmpeg: ${platform}-${arch}. Point CAMSTACK_FFMPEG_PATH at a binary this node can run.`);
878
+ if (!artifact) throw new Error(`Unsupported platform/architecture for ffmpeg: ${platform}-${arch}. Point DOMINEVO_FFMPEG_PATH at a binary this node can run.`);
857
879
  return artifact;
858
880
  }
859
881
  /** The URL alone, for a caller that wants nothing else. */
@@ -867,7 +889,7 @@ function getFfmpegDownloadUrl(platform, arch) {
867
889
  *
868
890
  * ## The rule
869
891
  *
870
- * 1. `CAMSTACK_FFMPEG_PATH`, when the operator set it and it exists. Pointing
892
+ * 1. `DOMINEVO_FFMPEG_PATH`, when the operator set it and it exists. Pointing
871
893
  * at your own build is a deliberate act and it wins over everything.
872
894
  * 2. The pinned build this node has already downloaded, named by release
873
895
  * (`ffmpeg-<release>`), in `<dataDir>/deps`.
@@ -903,7 +925,7 @@ function getFfmpegDownloadUrl(platform, arch) {
903
925
  * rollback is a file that is already on disk rather than a download.
904
926
  */
905
927
  /** Operator override. Unset on every node unless a human deliberately set it. */
906
- var FFMPEG_PATH_ENV = "CAMSTACK_FFMPEG_PATH";
928
+ var FFMPEG_PATH_ENV = "DOMINEVO_FFMPEG_PATH";
907
929
  /**
908
930
  * The file name the pinned build is stored under.
909
931
  *
@@ -4488,10 +4510,10 @@ Object.defineProperty(exports, "buildVideoArgs", {
4488
4510
  return buildVideoArgs;
4489
4511
  }
4490
4512
  });
4491
- Object.defineProperty(exports, "canonicalHash", {
4513
+ Object.defineProperty(exports, "canonicalEgressPlan", {
4492
4514
  enumerable: true,
4493
4515
  get: function() {
4494
- return canonicalHash;
4516
+ return canonicalEgressPlan;
4495
4517
  }
4496
4518
  });
4497
4519
  Object.defineProperty(exports, "canonicalStoredBlockTarget", {
@@ -4614,6 +4636,12 @@ Object.defineProperty(exports, "disarmRoseMemory", {
4614
4636
  return disarmRoseMemory;
4615
4637
  }
4616
4638
  });
4639
+ Object.defineProperty(exports, "egressTransportFromRequest", {
4640
+ enumerable: true,
4641
+ get: function() {
4642
+ return egressTransportFromRequest;
4643
+ }
4644
+ });
4617
4645
  Object.defineProperty(exports, "evaluateAst", {
4618
4646
  enumerable: true,
4619
4647
  get: function() {