@camstack/addon-post-analysis 1.2.372 → 1.2.374

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 (15) hide show
  1. package/dist/{clip-model-registry-YcxOhKAs.mjs → clip-model-registry-BIJ0ZD7t.mjs} +816 -90
  2. package/dist/{clip-model-registry-CJMlelSr.js → clip-model-registry-BRzN2GzR.js} +816 -90
  3. package/dist/embedding-encoder/index.js +1 -1
  4. package/dist/embedding-encoder/index.mjs +1 -1
  5. package/dist/pipeline-analytics/_stub.js +2 -2
  6. package/dist/pipeline-analytics/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-jrYcQzE9.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-BYu-s1rf.mjs} +2 -2
  7. package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-Ds_wGoAi.mjs +26 -0
  8. package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-BjCURGur.mjs +26 -0
  9. package/dist/pipeline-analytics/{hostInit-D3mojFCX.mjs → hostInit-DEl2xA0o.mjs} +2 -2
  10. package/dist/pipeline-analytics/index.js +55 -206
  11. package/dist/pipeline-analytics/index.mjs +55 -206
  12. package/dist/pipeline-analytics/remoteEntry.js +1 -1
  13. package/package.json +1 -1
  14. package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BrZNQ-qA.mjs +0 -26
  15. package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-XFjQPo0r.mjs +0 -26
@@ -30,7 +30,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
30
  }) : target, mod));
31
31
  //#endregion
32
32
  let node_crypto = require("node:crypto");
33
- //#region ../types/dist/event-category-C4hVnRo8.mjs
33
+ //#region ../types/dist/event-category-BvOFi6PY.mjs
34
34
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
35
35
  EventCategory["SystemBoot"] = "system.boot";
36
36
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -94,6 +94,24 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
94
94
  * consumes this category and maps it to the `addon-crash-loop` kind.
95
95
  */
96
96
  EventCategory["AddonRunnerFailed"] = "addon.runner-failed";
97
+ /**
98
+ * A runner whose addon refused to start with a typed reason (D877) - parked
99
+ * in `refused`, never counted by the crash breaker, retried on operator
100
+ * action. One event per refusal.
101
+ */
102
+ EventCategory["AddonRunnerRefused"] = "addon.runner-refused";
103
+ /**
104
+ * A runner settled on a state (D877): `running` (READY), `crashed`, `failed` or
105
+ * `refused`. In-process telemetry for the boot check (re-evaluate while any
106
+ * runner is still pending) and the alert centre (close a recovered runner).
107
+ */
108
+ EventCategory["ProcessStateChanged"] = "process.state-changed";
109
+ /**
110
+ * The node's one-shot runner boot check (D877): planned runners against the
111
+ * process service, `degraded` when any is failed, refused or missing. The
112
+ * alert centre turns it into one alert and a direct critical push.
113
+ */
114
+ EventCategory["SystemRunnerCheck"] = "system.runner-check";
97
115
  EventCategory["AddonError"] = "addon.error";
98
116
  EventCategory["AddonPageReady"] = "addon.page-ready";
99
117
  EventCategory["AddonWidgetReady"] = "addon.widget-ready";
@@ -5490,7 +5508,7 @@ var ZodIssueCode = {
5490
5508
  var ZodFirstPartyTypeKind;
5491
5509
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5492
5510
  //#endregion
5493
- //#region ../types/dist/sleep-bwsTj221.mjs
5511
+ //#region ../types/dist/sleep-WsrozGDL.mjs
5494
5512
  /**
5495
5513
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5496
5514
  * window to float samples (D455).
@@ -5607,7 +5625,7 @@ function isKeychainStoredField(field) {
5607
5625
  var SECRET_CLEAR = { $secretClear: true };
5608
5626
  /** The `'***'` token D634 redaction writes for non-admins. */
5609
5627
  var LEGACY_DEVICE_REDACTION = "***";
5610
- function isRecord$2(value) {
5628
+ function isRecord$4(value) {
5611
5629
  return typeof value === "object" && value !== null && !Array.isArray(value);
5612
5630
  }
5613
5631
  function makeSecretMarker(ref) {
@@ -5618,12 +5636,12 @@ function makeSecretMarker(ref) {
5618
5636
  }
5619
5637
  /** A stored marker: an object whose `$secret` is a non-empty string. */
5620
5638
  function isSecretMarker(value) {
5621
- if (!isRecord$2(value)) return false;
5639
+ if (!isRecord$4(value)) return false;
5622
5640
  const ref = value["$secret"];
5623
5641
  return typeof ref === "string" && ref.length > 0;
5624
5642
  }
5625
5643
  function isSecretClear(value) {
5626
- return isRecord$2(value) && value["$secretClear"] === true;
5644
+ return isRecord$4(value) && value["$secretClear"] === true;
5627
5645
  }
5628
5646
  /**
5629
5647
  * The UI view of a stored secret field value: a marker becomes "set", inline
@@ -6233,7 +6251,7 @@ var KeychainWriteRefusedError = class extends Error {
6233
6251
  }
6234
6252
  };
6235
6253
  var KEEP = { kind: "keep" };
6236
- function isRecord$1(value) {
6254
+ function isRecord$3(value) {
6237
6255
  return typeof value === "object" && value !== null && !Array.isArray(value);
6238
6256
  }
6239
6257
  function defaultMintId() {
@@ -6246,7 +6264,7 @@ function collectSecretMarkerRefs(value, out = []) {
6246
6264
  return out;
6247
6265
  }
6248
6266
  if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
6249
- else if (isRecord$1(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6267
+ else if (isRecord$3(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6250
6268
  return out;
6251
6269
  }
6252
6270
  async function storedValueEquals(secrets, marker, candidate) {
@@ -6301,7 +6319,7 @@ function rowId(row, idKey) {
6301
6319
  return null;
6302
6320
  }
6303
6321
  async function writeArray(ctx, node, incoming, stored, fieldPath) {
6304
- const storedRows = Array.isArray(stored) ? stored.filter(isRecord$1) : [];
6322
+ const storedRows = Array.isArray(stored) ? stored.filter(isRecord$3) : [];
6305
6323
  if (!Array.isArray(incoming)) {
6306
6324
  ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
6307
6325
  return {
@@ -6317,7 +6335,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
6317
6335
  const kept = /* @__PURE__ */ new Set();
6318
6336
  const rows = [];
6319
6337
  for (const row of incoming) {
6320
- if (!isRecord$1(row)) {
6338
+ if (!isRecord$3(row)) {
6321
6339
  rows.push(row);
6322
6340
  continue;
6323
6341
  }
@@ -6342,7 +6360,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6342
6360
  case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
6343
6361
  case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
6344
6362
  case "object": {
6345
- if (!isRecord$1(incoming)) {
6363
+ if (!isRecord$3(incoming)) {
6346
6364
  if (incoming === void 0) return KEEP;
6347
6365
  ctx.deletes.push(...collectSecretMarkerRefs(stored));
6348
6366
  return {
@@ -6350,7 +6368,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6350
6368
  value: incoming
6351
6369
  };
6352
6370
  }
6353
- const storedObj = isRecord$1(stored) ? stored : {};
6371
+ const storedObj = isRecord$3(stored) ? stored : {};
6354
6372
  return {
6355
6373
  kind: "value",
6356
6374
  value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
@@ -6473,7 +6491,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
6473
6491
  value: items
6474
6492
  };
6475
6493
  }
6476
- if (isRecord$1(v)) {
6494
+ if (isRecord$3(v)) {
6477
6495
  const out = {};
6478
6496
  for (const [k, child] of Object.entries(v)) {
6479
6497
  const s = substitute(child);
@@ -6505,7 +6523,7 @@ var SecretOverwriteRefusedError = class extends Error {
6505
6523
  this.name = "SecretOverwriteRefusedError";
6506
6524
  }
6507
6525
  };
6508
- function isRecord(value) {
6526
+ function isRecord$2(value) {
6509
6527
  return typeof value === "object" && value !== null && !Array.isArray(value);
6510
6528
  }
6511
6529
  function resolvedValue(pass, marker) {
@@ -6534,7 +6552,7 @@ function inArray(pass, incoming, stored) {
6534
6552
  return incoming.map((item, index) => {
6535
6553
  const twin = stored[index];
6536
6554
  if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
6537
- if (isRecord(item) && isRecord(twin)) return inArrayRow(pass, item, twin);
6555
+ if (isRecord$2(item) && isRecord$2(twin)) return inArrayRow(pass, item, twin);
6538
6556
  if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
6539
6557
  return item;
6540
6558
  });
@@ -6545,7 +6563,7 @@ function inArrayRow(pass, incoming, stored) {
6545
6563
  const twin = stored[key];
6546
6564
  if (isSecretMarker(twin)) {
6547
6565
  if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
6548
- } else if (isRecord(value) && isRecord(twin)) out[key] = inArrayRow(pass, value, twin);
6566
+ } else if (isRecord$2(value) && isRecord$2(twin)) out[key] = inArrayRow(pass, value, twin);
6549
6567
  else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
6550
6568
  }
6551
6569
  return out;
@@ -6553,7 +6571,7 @@ function inArrayRow(pass, incoming, stored) {
6553
6571
  async function walk(pass, incoming, stored) {
6554
6572
  if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
6555
6573
  if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
6556
- if (!isRecord(incoming) || !isRecord(stored)) return incoming;
6574
+ if (!isRecord$2(incoming) || !isRecord$2(stored)) return incoming;
6557
6575
  const out = { ...incoming };
6558
6576
  for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
6559
6577
  return out;
@@ -6584,7 +6602,7 @@ async function restoreUnchangedSecrets(input) {
6584
6602
  function isJsonEqual(a, b) {
6585
6603
  if (Object.is(a, b)) return true;
6586
6604
  if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
6587
- if (isRecord(a) && isRecord(b)) {
6605
+ if (isRecord$2(a) && isRecord$2(b)) {
6588
6606
  const keys = Object.keys(a);
6589
6607
  if (keys.length !== Object.keys(b).length) return false;
6590
6608
  return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
@@ -6608,7 +6626,7 @@ function markerKeysOf(blob, owner) {
6608
6626
  }
6609
6627
  function nodeFromStored(value, owner) {
6610
6628
  if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
6611
- if (!isRecord(value)) return null;
6629
+ if (!isRecord$2(value)) return null;
6612
6630
  const children = /* @__PURE__ */ new Map();
6613
6631
  for (const [key, child] of Object.entries(value)) {
6614
6632
  const node = nodeFromStored(child, owner);
@@ -7890,6 +7908,152 @@ var PeerBytesTicketSchema = object({
7890
7908
  */
7891
7909
  declaredBytes: number().int().nonnegative().nullable()
7892
7910
  });
7911
+ /** Limits and names of `ctx.records` (D881). One authority; the engine and the facade read it. */
7912
+ /** The files a kind may live in. `history` is device-history's (D850), never records. */
7913
+ var RECORD_DATABASES = ["settings", "events"];
7914
+ /** The classes of a kind: the `@durable` vocabulary, one authority (replaces the annotation). */
7915
+ var RECORD_CLASSES = [
7916
+ "config",
7917
+ "ledger",
7918
+ "audit",
7919
+ "mirror",
7920
+ "ephemeral"
7921
+ ];
7922
+ var RECORD_DEFAULT_MAX_DATA_BYTES = 64 * 1024;
7923
+ var RECORD_MAX_DATA_BYTES = 1024 * 1024;
7924
+ var RECORD_BATCH_MAX = 1e3;
7925
+ var RECORD_QUERY_MAX = 1e3;
7926
+ function defOf(schema) {
7927
+ return schema._zod?.def ?? {};
7928
+ }
7929
+ function declaredHere(schema) {
7930
+ return globalRegistry.get(schema)?.secret === true;
7931
+ }
7932
+ /** Wrapper kinds whose `innerType` is the field itself. */
7933
+ var WRAPPERS = new Set([
7934
+ "optional",
7935
+ "nullable",
7936
+ "default",
7937
+ "prefault",
7938
+ "catch",
7939
+ "readonly",
7940
+ "nonoptional"
7941
+ ]);
7942
+ /**
7943
+ * The schema layers that make up ONE field: the schema itself and every
7944
+ * wrapper below it (optional / default / nullable / readonly / catch), plus
7945
+ * both sides of a pipe (`z.preprocess` puts the real schema on `out`,
7946
+ * `.transform` on `in`).
7947
+ */
7948
+ function layersOf(schema) {
7949
+ const out = [];
7950
+ const queue = [schema];
7951
+ while (queue.length > 0) {
7952
+ const s = queue.shift();
7953
+ if (!s || out.includes(s)) continue;
7954
+ out.push(s);
7955
+ const def = defOf(s);
7956
+ if (def.type !== void 0 && WRAPPERS.has(def.type) && def.innerType) queue.push(def.innerType);
7957
+ if (def.type === "pipe") {
7958
+ if (def.in) queue.push(def.in);
7959
+ if (def.out) queue.push(def.out);
7960
+ }
7961
+ }
7962
+ return out;
7963
+ }
7964
+ /** True when any layer of this field declares `.meta({ secret: true })`. */
7965
+ function isZodSecret(schema) {
7966
+ return layersOf(schema).some(declaredHere);
7967
+ }
7968
+ /**
7969
+ * Every declared secret path in a config schema: dotted keys, `[]` for "each
7970
+ * element of this array" (`connection.password`, `rows[].token`). A declared
7971
+ * object or array is reported as one path and not descended into — everything
7972
+ * under it is secret.
7973
+ */
7974
+ function collectZodSecretPaths(schema, prefix = "") {
7975
+ if (isZodSecret(schema)) return prefix.length > 0 ? [prefix] : [];
7976
+ const paths = [];
7977
+ for (const layer of layersOf(schema)) {
7978
+ const def = defOf(layer);
7979
+ if (def.type === "object" && def.shape) for (const [key, child] of Object.entries(def.shape)) paths.push(...collectZodSecretPaths(child, prefix ? `${prefix}.${key}` : key));
7980
+ else if (def.type === "array" && def.element) paths.push(...collectZodSecretPaths(def.element, `${prefix}[]`));
7981
+ else if (def.type === "union" && def.options) for (const option of def.options) paths.push(...collectZodSecretPaths(option, prefix));
7982
+ else if (def.type === "intersection") {
7983
+ if (def.left) paths.push(...collectZodSecretPaths(def.left, prefix));
7984
+ if (def.right) paths.push(...collectZodSecretPaths(def.right, prefix));
7985
+ }
7986
+ }
7987
+ return [...new Set(paths)];
7988
+ }
7989
+ /**
7990
+ * Record kinds (D881): the declaration an addon makes of one kind of fact, the
7991
+ * Zod row schema that describes it, and the helper that turns the two into the
7992
+ * JSON the engine stores.
7993
+ *
7994
+ * A kind is declared ONCE, next to the code that owns it, and the engine's
7995
+ * reconciler creates its indexes - nothing creates DDL at runtime from a write.
7996
+ * Everything the generic machinery needs (secret fields, the entry descriptor)
7997
+ * is DERIVED from the Zod schema: `.meta({ secret: true })` marks a credential,
7998
+ * never a field name (D879).
7999
+ */
8000
+ /** A JSON field path: `trackId`, `auth.accessToken`. Charset-restricted: it is rendered into DDL. */
8001
+ var RecordFieldPathSchema = string().regex(/^[A-Za-z_][A-Za-z0-9_]{0,63}(\.[A-Za-z_][A-Za-z0-9_]{0,63}){0,3}$/);
8002
+ var RecordIndexSchema = object({
8003
+ name: string().regex(/^[a-z][a-z0-9_]{0,31}$/),
8004
+ fields: array(RecordFieldPathSchema).min(1).max(4),
8005
+ unique: boolean().optional()
8006
+ }).strict();
8007
+ var RecordRetentionSchema = union([
8008
+ object({
8009
+ ttlMs: number().int().positive(),
8010
+ from: _enum(["at", "write"])
8011
+ }).strict(),
8012
+ object({
8013
+ maxRows: number().int().positive().optional(),
8014
+ maxRowsPerDevice: number().int().positive().optional()
8015
+ }).strict().refine((r) => r.maxRows !== void 0 || r.maxRowsPerDevice !== void 0, { message: "name maxRows, maxRowsPerDevice or both" }),
8016
+ object({
8017
+ owner: string().min(1),
8018
+ reason: string().min(1)
8019
+ }).strict(),
8020
+ object({ none: string().min(1) }).strict()
8021
+ ]);
8022
+ /** The descriptor a generic entries UI reads (D881 "generic entries"). */
8023
+ var EntryDescriptorSchema = object({
8024
+ title: string().min(1),
8025
+ /** The record body field shown as the entry's name. */
8026
+ nameField: string().min(1),
8027
+ /** JSON Schema of the entry body; `secret: true` marks a password field. */
8028
+ fields: record(string(), unknown())
8029
+ }).strict();
8030
+ /** What crosses the wire and sits in the engine's catalog: JSON only, no Zod. */
8031
+ var RecordKindDeclarationSchema = object({
8032
+ database: _enum(RECORD_DATABASES).default("settings"),
8033
+ class: _enum(RECORD_CLASSES),
8034
+ writeTrigger: string().min(1),
8035
+ device: _enum([
8036
+ "required",
8037
+ "optional",
8038
+ "none"
8039
+ ]).default("none"),
8040
+ at: _enum(["required", "none"]).default("none"),
8041
+ indexes: array(RecordIndexSchema).max(8).default([]),
8042
+ retention: RecordRetentionSchema,
8043
+ deviceRemoval: _enum(["delete", "none"]).default("none"),
8044
+ maxDataBytes: number().int().positive().max(RECORD_MAX_DATA_BYTES).default(RECORD_DEFAULT_MAX_DATA_BYTES),
8045
+ /** Derived from the Zod schema; never written by hand. */
8046
+ secretPaths: array(string().min(1)).default([]),
8047
+ /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
8048
+ secretArrayKeys: record(string(), string()).default({}),
8049
+ /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
8050
+ adoptsFrom: string().min(1).optional(),
8051
+ /** Kinds that must agree through `transact` sit in one file under one family name. */
8052
+ transactFamily: string().min(1).optional(),
8053
+ entry: EntryDescriptorSchema.optional()
8054
+ }).strict();
8055
+ /** The kind names: lower-case, dash separated, short enough for an index name. */
8056
+ var RecordKindNameSchema = string().regex(/^[a-z][a-z0-9-]{0,47}$/);
7893
8057
  /** Shared Zod schemas used across streaming capabilities. */
7894
8058
  var CamProfileSchema = _enum([
7895
8059
  "high",
@@ -8435,69 +8599,6 @@ method(object({ deviceId: number() }), array(StreamSourceEntrySchema)), method(o
8435
8599
  kind: "mutation",
8436
8600
  auth: "admin"
8437
8601
  }), method(object({ deviceId: number() }), unknown().nullable()), method(object({ deviceId: number() }), RawStateResultSchema.nullable(), { auth: "protected" });
8438
- function defOf(schema) {
8439
- return schema._zod?.def ?? {};
8440
- }
8441
- function declaredHere(schema) {
8442
- return globalRegistry.get(schema)?.secret === true;
8443
- }
8444
- /** Wrapper kinds whose `innerType` is the field itself. */
8445
- var WRAPPERS = new Set([
8446
- "optional",
8447
- "nullable",
8448
- "default",
8449
- "prefault",
8450
- "catch",
8451
- "readonly",
8452
- "nonoptional"
8453
- ]);
8454
- /**
8455
- * The schema layers that make up ONE field: the schema itself and every
8456
- * wrapper below it (optional / default / nullable / readonly / catch), plus
8457
- * both sides of a pipe (`z.preprocess` puts the real schema on `out`,
8458
- * `.transform` on `in`).
8459
- */
8460
- function layersOf(schema) {
8461
- const out = [];
8462
- const queue = [schema];
8463
- while (queue.length > 0) {
8464
- const s = queue.shift();
8465
- if (!s || out.includes(s)) continue;
8466
- out.push(s);
8467
- const def = defOf(s);
8468
- if (def.type !== void 0 && WRAPPERS.has(def.type) && def.innerType) queue.push(def.innerType);
8469
- if (def.type === "pipe") {
8470
- if (def.in) queue.push(def.in);
8471
- if (def.out) queue.push(def.out);
8472
- }
8473
- }
8474
- return out;
8475
- }
8476
- /** True when any layer of this field declares `.meta({ secret: true })`. */
8477
- function isZodSecret(schema) {
8478
- return layersOf(schema).some(declaredHere);
8479
- }
8480
- /**
8481
- * Every declared secret path in a config schema: dotted keys, `[]` for "each
8482
- * element of this array" (`connection.password`, `rows[].token`). A declared
8483
- * object or array is reported as one path and not descended into — everything
8484
- * under it is secret.
8485
- */
8486
- function collectZodSecretPaths(schema, prefix = "") {
8487
- if (isZodSecret(schema)) return prefix.length > 0 ? [prefix] : [];
8488
- const paths = [];
8489
- for (const layer of layersOf(schema)) {
8490
- const def = defOf(layer);
8491
- if (def.type === "object" && def.shape) for (const [key, child] of Object.entries(def.shape)) paths.push(...collectZodSecretPaths(child, prefix ? `${prefix}.${key}` : key));
8492
- else if (def.type === "array" && def.element) paths.push(...collectZodSecretPaths(def.element, `${prefix}[]`));
8493
- else if (def.type === "union" && def.options) for (const option of def.options) paths.push(...collectZodSecretPaths(option, prefix));
8494
- else if (def.type === "intersection") {
8495
- if (def.left) paths.push(...collectZodSecretPaths(def.left, prefix));
8496
- if (def.right) paths.push(...collectZodSecretPaths(def.right, prefix));
8497
- }
8498
- }
8499
- return [...new Set(paths)];
8500
- }
8501
8602
  /**
8502
8603
  * AUTO-GENERATED by scripts/generate-device-scoped-caps.ts — DO NOT EDIT.
8503
8604
  *
@@ -8641,7 +8742,7 @@ function sleep(ms) {
8641
8742
  return new Promise((resolve) => setTimeout(resolve, Math.max(0, ms)));
8642
8743
  }
8643
8744
  //#endregion
8644
- //#region ../types/dist/err-msg-DLerKiVO.mjs
8745
+ //#region ../types/dist/err-msg--2RrYiLO.mjs
8645
8746
  var DeviceType = /* @__PURE__ */ function(DeviceType) {
8646
8747
  DeviceType["Camera"] = "camera";
8647
8748
  DeviceType["Hub"] = "hub";
@@ -8910,6 +9011,9 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
8910
9011
  /** Virtual HA toggle (input_boolean.*) — distinguishable from a
8911
9012
  * real Switch device for UI rendering / export adapters. */
8912
9013
  DeviceRole["BinaryHelper"] = "binary-helper";
9014
+ /** A smart plug: a `switch` whose source says it is an outlet (HA
9015
+ * `device_class: outlet`). The Alexa export shows it as a SMARTPLUG. */
9016
+ DeviceRole["Outlet"] = "outlet";
8913
9017
  /** Generic motion / occupancy / moving event source. Distinct from
8914
9018
  * the camera accessory PirSensor role: that one is a camera child;
8915
9019
  * this is a standalone HA / 3rd-party motion sensor. */
@@ -8987,7 +9091,7 @@ function errMsg(err) {
8987
9091
  return String(err);
8988
9092
  }
8989
9093
  //#endregion
8990
- //#region ../types/dist/composition-EQ9Ok0Ee.mjs
9094
+ //#region ../types/dist/composition-DOwQB_Ua.mjs
8991
9095
  /**
8992
9096
  * Deterministic SHA-256 hash of an arbitrary serialisable value. The
8993
9097
  * canonical form sorts object keys alphabetically at every depth so two
@@ -16835,6 +16939,41 @@ var ComposableCapabilitiesSchema = object({ caps: array(object({
16835
16939
  keyField: string()
16836
16940
  }).optional()
16837
16941
  })) });
16942
+ /**
16943
+ * The report of a one-shot "move this owner's plaintext secrets into the
16944
+ * keychain" run (D878). COUNTS only - never a value, never a ref.
16945
+ *
16946
+ * The owner runs it on its own rows, through its own write path; an operator
16947
+ * script (`scripts/hub/migrate-raw-secrets.ts`) calls the owner's cap method.
16948
+ * Dry run (`apply: false`) reports what WOULD move and changes nothing.
16949
+ */
16950
+ var RawSecretMigrationInputSchema = object({
16951
+ /** `false` (the default of the script) = report only. */
16952
+ apply: boolean() });
16953
+ var RawSecretMigrationReportSchema = object({
16954
+ apply: boolean(),
16955
+ /** Rows that can carry a secret (a profile, an enrolment). */
16956
+ rows: number().int(),
16957
+ /** Rows whose secret was plaintext when the run started. */
16958
+ raw: number().int(),
16959
+ /** Rows that already held a keychain marker when the run started. */
16960
+ markers: number().int(),
16961
+ /** Plaintext rows moved by THIS run (always 0 on a dry run). */
16962
+ migrated: number().int(),
16963
+ /** Plaintext rows left in place because the move or its read-back failed. */
16964
+ failed: number().int(),
16965
+ /** After the run: rows still holding plaintext. */
16966
+ remainingRaw: number().int(),
16967
+ /** After the run: markers the keychain could not resolve right now. */
16968
+ unresolvedMarkers: number().int(),
16969
+ /**
16970
+ * A second, redundant copy of the secrets' rows that the run found (and, on
16971
+ * `apply`, deleted after verifying the first). Owners with a single copy omit it.
16972
+ */
16973
+ redundantCopies: number().int().optional(),
16974
+ /** True when nothing is raw and every marker resolves. */
16975
+ verified: boolean()
16976
+ });
16838
16977
  /** The block id behind a generated addon/runner id, or null when the id belongs
16839
16978
  * to something else. The inverse of {@link coreBlockAddonId}. */
16840
16979
  function coreBlockIdFromAddonId(addonId) {
@@ -17068,6 +17207,9 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
17068
17207
  }), SettingsUpdateResultSchema, {
17069
17208
  kind: "mutation",
17070
17209
  auth: "admin"
17210
+ }), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
17211
+ kind: "mutation",
17212
+ auth: "admin"
17071
17213
  }), method(object({}), object({ libs: array(object({
17072
17214
  filePath: string(),
17073
17215
  content: string()
@@ -17330,6 +17472,222 @@ id: union([string(), number()]) }), {
17330
17472
  kind: "mutation",
17331
17473
  auth: "admin"
17332
17474
  });
17475
+ /**
17476
+ * records - an addon's own facts and documents (D881): ledgers, audit rows,
17477
+ * config documents, mirrors. The third storage API next to `ctx.settings`
17478
+ * (operator intent, D870) and device-history (numbers over time, D850).
17479
+ *
17480
+ * Who the OWNER is: `callerAddonId`, stamped by the transport on a call that
17481
+ * crossed a process and stated by a hub in-process caller (`ctx.records` does
17482
+ * that with the addon id closed over). It is deliberately NOT in any input
17483
+ * schema, so a session can never supply it, and a call with no stamp is refused
17484
+ * `records/no-caller`. A kind is readable and writable only by its owner; other
17485
+ * addons go through the owner's capability.
17486
+ *
17487
+ * Every read is three-way: a row, `null`, or the call THROWS. A failed read is
17488
+ * never `[]`. Secret fields are never on the wire: a read shows the
17489
+ * redaction token, `secretRefs` hands the owner's `ctx.secrets` the refs it
17490
+ * resolves itself, and a write may carry only a keychain marker bound to the
17491
+ * row's own ref.
17492
+ *
17493
+ * Internal: addons reach it through `ctx.records`, never directly.
17494
+ */
17495
+ var RecordIdSchema = string().min(1).max(256);
17496
+ /** A JSON object body. Size is the engine's check (`maxDataBytes`), not a schema's. */
17497
+ var RecordBodySchema = record(string(), unknown());
17498
+ var RecordInputSchema = object({
17499
+ id: RecordIdSchema,
17500
+ /** The device this row belongs to (D865 removal, per-device reads). */
17501
+ deviceId: number().int().optional(),
17502
+ /** The domain clock, ms: observed / created / opened. */
17503
+ at: number().int().optional(),
17504
+ /** Producer-set expiry, ms. Refused on a kind whose retention is an engine TTL. */
17505
+ expiresAt: number().int().optional(),
17506
+ data: RecordBodySchema
17507
+ });
17508
+ var RecordViewSchema = object({
17509
+ id: string(),
17510
+ deviceId: number().int().nullable(),
17511
+ at: number().nullable(),
17512
+ expiresAt: number().nullable(),
17513
+ rev: number().int(),
17514
+ updatedAt: number(),
17515
+ data: RecordBodySchema
17516
+ });
17517
+ /** Declared index fields only. Anything else does not compile, by design. */
17518
+ var RecordWhereSchema = record(RecordFieldPathSchema, union([
17519
+ string(),
17520
+ number(),
17521
+ boolean(),
17522
+ object({ in: array(union([
17523
+ string(),
17524
+ number(),
17525
+ boolean()
17526
+ ])).min(1).max(RECORD_BATCH_MAX) }),
17527
+ object({
17528
+ gt: union([string(), number()]).optional(),
17529
+ gte: union([string(), number()]).optional(),
17530
+ lt: union([string(), number()]).optional(),
17531
+ lte: union([string(), number()]).optional()
17532
+ }).refine((r) => Object.keys(r).length > 0, { message: "name at least one bound" })
17533
+ ]));
17534
+ var KindShape = { kind: RecordKindNameSchema };
17535
+ var TimeWindowShape = {
17536
+ deviceId: number().int().optional(),
17537
+ atFrom: number().optional(),
17538
+ atTo: number().optional()
17539
+ };
17540
+ var RecordQueryInputSchema = object({
17541
+ ...KindShape,
17542
+ ...TimeWindowShape,
17543
+ where: RecordWhereSchema.optional(),
17544
+ /** Without `where`: `at` (default for a kind with a clock) or `id`. With `where` the order is the index's. */
17545
+ order: _enum(["at", "id"]).optional(),
17546
+ desc: boolean().optional(),
17547
+ limit: number().int().min(1).max(RECORD_QUERY_MAX).default(100),
17548
+ /** Opaque keyset cursor from a previous answer. There is no offset. */
17549
+ cursor: string().min(1).optional()
17550
+ });
17551
+ var RecordQueryResultSchema = object({
17552
+ records: array(RecordViewSchema),
17553
+ nextCursor: string().nullable()
17554
+ });
17555
+ var RecordKindStateSchema = _enum([
17556
+ "created",
17557
+ "unchanged",
17558
+ "updated"
17559
+ ]);
17560
+ var DeclareKindResultSchema = object({
17561
+ kindId: number().int(),
17562
+ state: RecordKindStateSchema,
17563
+ createdIndexes: array(string()),
17564
+ /** The boot guard: the kind is empty while its legacy table still holds rows. */
17565
+ adoptionPending: object({
17566
+ legacyTable: string(),
17567
+ legacyRows: number().int()
17568
+ }).nullable()
17569
+ });
17570
+ /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
17571
+ var SecretRefsList = array(string());
17572
+ var RecordSecretRefsSchema = record(string(), record(string(), string()));
17573
+ method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema) }), object({ kinds: record(string(), DeclareKindResultSchema) }), {
17574
+ kind: "mutation",
17575
+ auth: "admin"
17576
+ }), method(object({
17577
+ ...KindShape,
17578
+ id: RecordIdSchema
17579
+ }), RecordViewSchema.nullable(), { auth: "admin" }), method(object({
17580
+ ...KindShape,
17581
+ ids: array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
17582
+ }), array(RecordViewSchema), { auth: "admin" }), method(object({
17583
+ ...KindShape,
17584
+ ids: array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
17585
+ }), RecordSecretRefsSchema, { auth: "admin" }), method(object({
17586
+ ...KindShape,
17587
+ record: RecordInputSchema,
17588
+ /** Compare-and-set. `0` means "the row must not exist". */
17589
+ ifRev: number().int().min(0).optional()
17590
+ }), object({
17591
+ rev: number().int(),
17592
+ releasedRefs: SecretRefsList
17593
+ }), {
17594
+ kind: "mutation",
17595
+ auth: "admin"
17596
+ }), method(object({
17597
+ ...KindShape,
17598
+ records: array(RecordInputSchema).min(1).max(RECORD_BATCH_MAX)
17599
+ }), object({
17600
+ count: number().int(),
17601
+ releasedRefs: SecretRefsList
17602
+ }), {
17603
+ kind: "mutation",
17604
+ auth: "admin"
17605
+ }), method(object({
17606
+ ...KindShape,
17607
+ id: RecordIdSchema,
17608
+ data: RecordBodySchema,
17609
+ at: number().int().nullable().optional(),
17610
+ expiresAt: number().int().nullable().optional(),
17611
+ ifRev: number().int().min(1).optional()
17612
+ }), object({
17613
+ rev: number().int(),
17614
+ releasedRefs: SecretRefsList
17615
+ }), {
17616
+ kind: "mutation",
17617
+ auth: "admin"
17618
+ }), method(object({
17619
+ ...KindShape,
17620
+ id: RecordIdSchema
17621
+ }), object({
17622
+ deleted: boolean(),
17623
+ secretRefs: SecretRefsList
17624
+ }), {
17625
+ kind: "mutation",
17626
+ auth: "admin"
17627
+ }), method(object({
17628
+ ...KindShape,
17629
+ ids: array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
17630
+ }), object({
17631
+ deleted: number().int(),
17632
+ secretRefs: SecretRefsList
17633
+ }), {
17634
+ kind: "mutation",
17635
+ auth: "admin"
17636
+ }), method(RecordQueryInputSchema, RecordQueryResultSchema, { auth: "admin" }), method(object({
17637
+ ...KindShape,
17638
+ ...TimeWindowShape,
17639
+ where: RecordWhereSchema.optional()
17640
+ }), object({ count: number().int() }), { auth: "admin" }), method(object({
17641
+ ...KindShape,
17642
+ deviceId: number().int().optional(),
17643
+ from: number(),
17644
+ to: number(),
17645
+ bucketMs: number().int().positive()
17646
+ }), object({ buckets: array(object({
17647
+ bucketStart: number(),
17648
+ count: number().int()
17649
+ })) }), { auth: "admin" }), method(object({
17650
+ ...KindShape,
17651
+ op: _enum([
17652
+ "sum",
17653
+ "min",
17654
+ "max",
17655
+ "count"
17656
+ ]),
17657
+ field: RecordFieldPathSchema.optional(),
17658
+ groupBy: RecordFieldPathSchema.optional(),
17659
+ where: RecordWhereSchema.optional()
17660
+ }), object({ rows: array(object({
17661
+ group: union([
17662
+ string(),
17663
+ number(),
17664
+ _null()
17665
+ ]),
17666
+ value: number().nullable()
17667
+ })) }), { auth: "admin" }), method(object({
17668
+ ...KindShape,
17669
+ deviceId: number().int().optional(),
17670
+ atBefore: number().optional(),
17671
+ where: RecordWhereSchema.optional()
17672
+ }), object({
17673
+ deleted: number().int(),
17674
+ secretRefs: SecretRefsList
17675
+ }), {
17676
+ kind: "mutation",
17677
+ auth: "admin"
17678
+ }), method(object({
17679
+ deviceId: number().int(),
17680
+ kinds: array(RecordKindNameSchema).optional()
17681
+ }), object({
17682
+ deleted: record(string(), number().int()),
17683
+ secretRefs: SecretRefsList
17684
+ }), {
17685
+ kind: "mutation",
17686
+ auth: "admin"
17687
+ }), method(object(KindShape), object({ id: number().int() }), {
17688
+ kind: "mutation",
17689
+ auth: "admin"
17690
+ });
17333
17691
  /** One table of the settings database. */
17334
17692
  var StorageTableSchema = object({
17335
17693
  /** The table's full name, e.g. `recorder:addon-settings` or `addon-device-settings`. */
@@ -17342,6 +17700,28 @@ var StorageTableSchema = object({
17342
17700
  /** Declared by an addon since this engine process started (a running addon claims it). */
17343
17701
  declaredThisBoot: boolean()
17344
17702
  });
17703
+ /** One declared record kind (D881) as System -> Data shows it. */
17704
+ var StorageKindSchema = object({
17705
+ owner: string(),
17706
+ kind: string(),
17707
+ database: _enum(["settings", "events"]),
17708
+ class: string(),
17709
+ state: _enum([
17710
+ "declared",
17711
+ "orphaned",
17712
+ "dropped"
17713
+ ]),
17714
+ /** `null` when the caller asked for no counts (`counts: false`). */
17715
+ rows: number().int().nonnegative().nullable(),
17716
+ /** Rows x the average size of a sample; null for an empty kind. */
17717
+ bytesEstimate: number().int().nonnegative().nullable(),
17718
+ writeTrigger: string(),
17719
+ retention: RecordRetentionSchema,
17720
+ /** `true` when the kind is an entry kind (the generic entries UI lists it). */
17721
+ entry: boolean(),
17722
+ /** The whole declaration, secret paths and entry descriptor included (the entries service builds its handle from it). */
17723
+ declaration: RecordKindDeclarationSchema
17724
+ });
17345
17725
  method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: array(StorageTableSchema) }), { auth: "admin" }), method(object({
17346
17726
  collection: string().min(1),
17347
17727
  expectRows: number().int().nonnegative()
@@ -17351,6 +17731,77 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
17351
17731
  }), {
17352
17732
  kind: "mutation",
17353
17733
  auth: "admin"
17734
+ }), method(object({
17735
+ owner: string().min(1).optional(),
17736
+ /** `false` skips the per-kind row count (a catalog read only). Default true. */
17737
+ counts: boolean().optional()
17738
+ }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
17739
+ owner: string().min(1),
17740
+ kind: RecordKindNameSchema
17741
+ }), RecordQueryResultSchema, { auth: "admin" }), method(object({
17742
+ owner: string().min(1),
17743
+ kind: RecordKindNameSchema,
17744
+ records: array(RecordInputSchema).min(1).max(RECORD_BATCH_MAX),
17745
+ /** The LAST batch: the copy is complete, the boot guard stops asking. */
17746
+ complete: boolean().optional()
17747
+ }), object({ adopted: number().int() }), {
17748
+ kind: "mutation",
17749
+ auth: "admin"
17750
+ });
17751
+ /**
17752
+ * record-entries - the ONE admin surface for every list of user-created entries
17753
+ * (D881): notification targets, brokers, LLM profiles, anything an addon
17754
+ * declares as an ENTRY kind (`entry: { title }` in `defineRecordKinds`).
17755
+ *
17756
+ * The UI is generic. `listEntryKinds` hands it, per kind, the JSON Schema of
17757
+ * the entry body with `secret: true` on every credential field, so a password
17758
+ * field is derived from the schema and never from a name. `putEntry` takes the
17759
+ * redaction token for an untouched secret (the stored value is kept), a string
17760
+ * for a new one, and the clear instruction to remove one. A read never carries
17761
+ * a secret value, and a locked keychain refuses the write with
17762
+ * `records/secret-unavailable` instead of storing plaintext.
17763
+ *
17764
+ * Hub-only, served in-process (it acts for each entry's owner on the keychain).
17765
+ */
17766
+ var EntryKindInfoSchema = object({
17767
+ owner: string(),
17768
+ kind: RecordKindNameSchema,
17769
+ title: string(),
17770
+ nameField: string(),
17771
+ /** JSON Schema of the body; `secret: true` marks a password field. */
17772
+ fields: record(string(), unknown()),
17773
+ secretPaths: array(string()),
17774
+ rows: number().int().nonnegative()
17775
+ });
17776
+ var EntryViewSchema = object({
17777
+ id: RecordIdSchema,
17778
+ name: string(),
17779
+ rev: number().int(),
17780
+ updatedAt: number(),
17781
+ /** Secret fields hold the redaction token. */
17782
+ data: RecordBodySchema
17783
+ });
17784
+ var EntryAddress = {
17785
+ owner: string().min(1),
17786
+ kind: RecordKindNameSchema
17787
+ };
17788
+ method(object({}), object({ kinds: array(EntryKindInfoSchema) }), { auth: "admin" }), method(object({ ...EntryAddress }), object({ entries: array(EntryViewSchema) }), { auth: "admin" }), method(object({
17789
+ ...EntryAddress,
17790
+ id: RecordIdSchema.optional(),
17791
+ data: RecordBodySchema,
17792
+ ifRev: number().int().min(1).optional()
17793
+ }), object({
17794
+ id: string(),
17795
+ rev: number().int()
17796
+ }), {
17797
+ kind: "mutation",
17798
+ auth: "admin"
17799
+ }), method(object({
17800
+ ...EntryAddress,
17801
+ id: RecordIdSchema
17802
+ }), object({ deleted: boolean() }), {
17803
+ kind: "mutation",
17804
+ auth: "admin"
17354
17805
  });
17355
17806
  /**
17356
17807
  * `keychain` — the hub's encrypted store of secret values (D787).
@@ -40680,6 +41131,9 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
40680
41131
  }), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
40681
41132
  kind: "mutation",
40682
41133
  auth: "admin"
41134
+ }), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
41135
+ kind: "mutation",
41136
+ auth: "admin"
40683
41137
  }), method(ProfileRefInputSchema, _void(), {
40684
41138
  kind: "mutation",
40685
41139
  auth: "admin"
@@ -53011,6 +53465,41 @@ var ServerRollbackInfoSchema = object({
53011
53465
  atMs: number(),
53012
53466
  reason: string()
53013
53467
  });
53468
+ /**
53469
+ * The runner boot check (D877): the runners this node PLANNED (hub: one per
53470
+ * `resolveRunnerId` over its forked addons; agent: the runners its process
53471
+ * service holds, because only the hub plans) against the states the process
53472
+ * service reports. Kept in memory, recomputed by the same one-shot check after
53473
+ * every boot, served on `getServerPackageStatus`.
53474
+ *
53475
+ * `failed` is the D6 breaker's terminal state, `refused` a deterministic Init
53476
+ * refusal (an addon that said "I will not start, and here is why"), `missing` a
53477
+ * planned runner the process service has no entry for.
53478
+ */
53479
+ var RunnerRefusalSchema = object({
53480
+ runnerId: string(),
53481
+ addonIds: array(string()),
53482
+ reason: string()
53483
+ });
53484
+ var RunnerBootCheckSchema = object({
53485
+ checkedAtMs: number(),
53486
+ /** Runners planned for this node. */
53487
+ expected: number(),
53488
+ /** Planned runners whose process is `running`. */
53489
+ running: number(),
53490
+ failed: array(string()),
53491
+ refused: array(RunnerRefusalSchema),
53492
+ missing: array(string()),
53493
+ /**
53494
+ * Runners still on their way: `starting`, or `crashed` waiting on a backoff
53495
+ * respawn. The check is FINAL only when this is empty; until then nothing is
53496
+ * pushed and the verdict is re-evaluated on the next runner state change.
53497
+ * Optional for version skew (absent = settled).
53498
+ */
53499
+ pending: array(string()).optional(),
53500
+ /** True when the plan is the hub's (`missing` is then meaningful); false on an agent. */
53501
+ planKnown: boolean()
53502
+ });
53014
53503
  var ServerPackageStatusSchema = object({
53015
53504
  /** Root package name (`@camstack/server` on the hub). */
53016
53505
  packageName: string(),
@@ -53073,7 +53562,14 @@ var ServerPackageStatusSchema = object({
53073
53562
  * for version skew: an older provider's payload simply omits it, and an
53074
53563
  * absent wrapper is unknown — never `native`.
53075
53564
  */
53076
- wrapper: WrapperIdentitySchema.optional()
53565
+ wrapper: WrapperIdentitySchema.optional(),
53566
+ /**
53567
+ * What this node PLANNED to run against what its process service reports
53568
+ * (D877). Absent until the one-shot boot check has run (~60 s after boot) and
53569
+ * on a provider that predates it. Absent is "not checked yet", never "all
53570
+ * well": a consumer that needs the answer treats it as pending.
53571
+ */
53572
+ runners: RunnerBootCheckSchema.optional()
53077
53573
  });
53078
53574
  var ServerUpdateCheckResultSchema = object({
53079
53575
  packageName: string(),
@@ -53124,6 +53620,13 @@ var ServerUpdateOutcomeSchema = _enum([
53124
53620
  "refused",
53125
53621
  "failed"
53126
53622
  ]);
53623
+ /** One addon the pre-flight found the target version would refuse (D877). */
53624
+ var UpdateBlockerSchema = object({
53625
+ addonId: string(),
53626
+ reason: string(),
53627
+ /** What the operator does about it. */
53628
+ remedy: string()
53629
+ });
53127
53630
  var ServerUpdateActionResultSchema = object({
53128
53631
  accepted: boolean(),
53129
53632
  targetVersion: string().nullable(),
@@ -53141,14 +53644,27 @@ var ServerUpdateActionResultSchema = object({
53141
53644
  * The failure itself, verbatim enough to act on (the npm output for a
53142
53645
  * staging install). Non-null only for `failed`.
53143
53646
  */
53144
- error: string().nullable().optional()
53647
+ error: string().nullable().optional(),
53648
+ /**
53649
+ * The addons the target version would refuse to start on this node's live
53650
+ * store (D877), present when the pre-flight refused the update
53651
+ * (`reason: 'addon-would-refuse'`). Optional for version skew.
53652
+ */
53653
+ blockers: array(UpdateBlockerSchema).optional()
53145
53654
  });
53146
53655
  method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
53147
53656
  kind: "mutation",
53148
53657
  auth: "admin"
53149
- }), method(object({
53150
- /** Explicit target version; omitted = latest from the registry. */
53151
- version: string().optional() }), ServerUpdateActionResultSchema, {
53658
+ }), method(object({
53659
+ /** Explicit target version; omitted = latest from the registry. */
53660
+ version: string().optional(),
53661
+ /**
53662
+ * Apply even though the pre-flight (D877) found addons the target would
53663
+ * refuse to start. Off by default: those addons stay down until the
53664
+ * remedy is run, which is the incident this gate exists to prevent.
53665
+ */
53666
+ acknowledgeRefusals: boolean().optional()
53667
+ }), ServerUpdateActionResultSchema, {
53152
53668
  kind: "mutation",
53153
53669
  auth: "admin",
53154
53670
  timeoutMs: 16 * 6e4
@@ -55628,7 +56144,9 @@ var ManifestShapeSchema = object({
55628
56144
  var AddonProcessSchema = object({
55629
56145
  pid: number().optional(),
55630
56146
  mode: string(),
55631
- state: string()
56147
+ state: string(),
56148
+ /** Why the runner is `refused` (an addon's own words), when it is (D877). */
56149
+ reason: string().optional()
55632
56150
  });
55633
56151
  /**
55634
56152
  * Per-addon health snapshot from the kernel's AddonHealthMonitor.
@@ -57044,6 +57562,12 @@ var ClimateControlStatusSchema = object({
57044
57562
  /** Horizontal louver swing on/off. Null when the device has no
57045
57563
  * horizontal swing surface (gate with `DeviceFeature.ClimateSwingHorizontal`). */
57046
57564
  swingHorizontal: boolean().nullable(),
57565
+ /** Lowest setpoint the device accepts, Celsius. Absent / null = not reported. */
57566
+ minTemp: number().nullable().optional(),
57567
+ /** Highest setpoint the device accepts, Celsius. Absent / null = not reported. */
57568
+ maxTemp: number().nullable().optional(),
57569
+ /** Setpoint granularity, Celsius (0.5, 1). Absent / null = not reported. */
57570
+ tempStep: number().positive().nullable().optional(),
57047
57571
  /** Ms epoch when the slice was last updated (push or command). */
57048
57572
  lastFetchedAt: number()
57049
57573
  });
@@ -66579,7 +67103,11 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
66579
67103
  kind: "mutation",
66580
67104
  auth: "admin",
66581
67105
  access: "delete"
66582
- }), method(object({ userId: string() }), TotpStatusSchema, { auth: "admin" }), method(object({
67106
+ }), method(object({ userId: string() }), TotpStatusSchema, { auth: "admin" }), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
67107
+ kind: "mutation",
67108
+ auth: "admin",
67109
+ access: "create"
67110
+ }), method(object({
66583
67111
  userId: string(),
66584
67112
  code: string()
66585
67113
  }), object({ valid: boolean() }), {
@@ -70281,6 +70809,12 @@ Object.freeze({
70281
70809
  addonId: null,
70282
70810
  access: "view"
70283
70811
  },
70812
+ "coreBlocks.migrateRawSecrets": {
70813
+ capName: "core-blocks",
70814
+ capScope: "system",
70815
+ addonId: null,
70816
+ access: "create"
70817
+ },
70284
70818
  "coreBlocks.restart": {
70285
70819
  capName: "core-blocks",
70286
70820
  capScope: "system",
@@ -72141,6 +72675,12 @@ Object.freeze({
72141
72675
  addonId: null,
72142
72676
  access: "view"
72143
72677
  },
72678
+ "llm.migrateRawSecrets": {
72679
+ capName: "llm",
72680
+ capScope: "system",
72681
+ addonId: null,
72682
+ access: "create"
72683
+ },
72144
72684
  "llm.resolveModelRef": {
72145
72685
  capName: "llm",
72146
72686
  capScope: "system",
@@ -75027,6 +75567,30 @@ Object.freeze({
75027
75567
  addonId: null,
75028
75568
  access: "create"
75029
75569
  },
75570
+ "recordEntries.deleteEntry": {
75571
+ capName: "record-entries",
75572
+ capScope: "system",
75573
+ addonId: null,
75574
+ access: "delete"
75575
+ },
75576
+ "recordEntries.listEntries": {
75577
+ capName: "record-entries",
75578
+ capScope: "system",
75579
+ addonId: null,
75580
+ access: "view"
75581
+ },
75582
+ "recordEntries.listEntryKinds": {
75583
+ capName: "record-entries",
75584
+ capScope: "system",
75585
+ addonId: null,
75586
+ access: "view"
75587
+ },
75588
+ "recordEntries.putEntry": {
75589
+ capName: "record-entries",
75590
+ capScope: "system",
75591
+ addonId: null,
75592
+ access: "create"
75593
+ },
75030
75594
  "recording.getAvailability": {
75031
75595
  capName: "recording",
75032
75596
  capScope: "device",
@@ -75327,6 +75891,102 @@ Object.freeze({
75327
75891
  addonId: null,
75328
75892
  access: "view"
75329
75893
  },
75894
+ "records.aggregate": {
75895
+ capName: "records",
75896
+ capScope: "system",
75897
+ addonId: null,
75898
+ access: "view"
75899
+ },
75900
+ "records.allocateId": {
75901
+ capName: "records",
75902
+ capScope: "system",
75903
+ addonId: null,
75904
+ access: "create"
75905
+ },
75906
+ "records.count": {
75907
+ capName: "records",
75908
+ capScope: "system",
75909
+ addonId: null,
75910
+ access: "view"
75911
+ },
75912
+ "records.declareKinds": {
75913
+ capName: "records",
75914
+ capScope: "system",
75915
+ addonId: null,
75916
+ access: "create"
75917
+ },
75918
+ "records.delete": {
75919
+ capName: "records",
75920
+ capScope: "system",
75921
+ addonId: null,
75922
+ access: "delete"
75923
+ },
75924
+ "records.deleteDevice": {
75925
+ capName: "records",
75926
+ capScope: "system",
75927
+ addonId: null,
75928
+ access: "delete"
75929
+ },
75930
+ "records.deleteMany": {
75931
+ capName: "records",
75932
+ capScope: "system",
75933
+ addonId: null,
75934
+ access: "delete"
75935
+ },
75936
+ "records.deleteWhere": {
75937
+ capName: "records",
75938
+ capScope: "system",
75939
+ addonId: null,
75940
+ access: "delete"
75941
+ },
75942
+ "records.get": {
75943
+ capName: "records",
75944
+ capScope: "system",
75945
+ addonId: null,
75946
+ access: "view"
75947
+ },
75948
+ "records.getMany": {
75949
+ capName: "records",
75950
+ capScope: "system",
75951
+ addonId: null,
75952
+ access: "view"
75953
+ },
75954
+ "records.histogram": {
75955
+ capName: "records",
75956
+ capScope: "system",
75957
+ addonId: null,
75958
+ access: "view"
75959
+ },
75960
+ "records.patch": {
75961
+ capName: "records",
75962
+ capScope: "system",
75963
+ addonId: null,
75964
+ access: "create"
75965
+ },
75966
+ "records.put": {
75967
+ capName: "records",
75968
+ capScope: "system",
75969
+ addonId: null,
75970
+ access: "create"
75971
+ },
75972
+ "records.putMany": {
75973
+ capName: "records",
75974
+ capScope: "system",
75975
+ addonId: null,
75976
+ access: "create"
75977
+ },
75978
+ "records.query": {
75979
+ capName: "records",
75980
+ capScope: "system",
75981
+ addonId: null,
75982
+ access: "view"
75983
+ },
75984
+ "records.secretRefs": {
75985
+ capName: "records",
75986
+ capScope: "system",
75987
+ addonId: null,
75988
+ access: "view"
75989
+ },
75330
75990
  "sceneMonitor.captureReference": {
75331
75991
  capName: "scene-monitor",
75332
75992
  capScope: "device",
@@ -75759,18 +76419,36 @@ Object.freeze({
75759
76419
  addonId: null,
75760
76420
  access: "create"
75761
76421
  },
76422
+ "storageAdmin.adoptRecords": {
76423
+ capName: "storage-admin",
76424
+ capScope: "system",
76425
+ addonId: null,
76426
+ access: "create"
76427
+ },
75762
76428
  "storageAdmin.dropCollection": {
75763
76429
  capName: "storage-admin",
75764
76430
  capScope: "system",
75765
76431
  addonId: null,
75766
76432
  access: "delete"
75767
76433
  },
76434
+ "storageAdmin.listKinds": {
76435
+ capName: "storage-admin",
76436
+ capScope: "system",
76437
+ addonId: null,
76438
+ access: "view"
76439
+ },
75768
76440
  "storageAdmin.listTables": {
75769
76441
  capName: "storage-admin",
75770
76442
  capScope: "system",
75771
76443
  addonId: null,
75772
76444
  access: "view"
75773
76445
  },
76446
+ "storageAdmin.readRecords": {
76447
+ capName: "storage-admin",
76448
+ capScope: "system",
76449
+ addonId: null,
76450
+ access: "view"
76451
+ },
75774
76452
  "storageEvictable.evict": {
75775
76453
  capName: "storage-evictable",
75776
76454
  capScope: "system",
@@ -76683,6 +77361,12 @@ Object.freeze({
76683
77361
  addonId: null,
76684
77362
  access: "view"
76685
77363
  },
77364
+ "userManagement.migrateRawSecrets": {
77365
+ capName: "user-management",
77366
+ capScope: "system",
77367
+ addonId: null,
77368
+ access: "create"
77369
+ },
76686
77370
  "userManagement.oauthExchangeCode": {
76687
77371
  capName: "user-management",
76688
77372
  capScope: "system",
@@ -79359,6 +80043,37 @@ Object.freeze({
79359
80043
  form: "single",
79360
80044
  optional: false
79361
80045
  }],
80046
+ "records.count": [{
80047
+ name: "deviceId",
80048
+ form: "single",
80049
+ optional: true
80050
+ }],
80051
+ "records.deleteDevice": [{
80052
+ name: "deviceId",
80053
+ form: "single",
80054
+ optional: false
80055
+ }],
80056
+ "records.deleteWhere": [{
80057
+ name: "deviceId",
80058
+ form: "single",
80059
+ optional: true
80060
+ }],
80061
+ "records.histogram": [{
80062
+ name: "deviceId",
80063
+ form: "single",
80064
+ optional: true
80065
+ }],
80066
+ "records.putMany": [{
80067
+ name: "records",
80068
+ form: "object-array",
80069
+ optional: false,
80070
+ itemField: "deviceId"
80071
+ }],
80072
+ "records.query": [{
80073
+ name: "deviceId",
80074
+ form: "single",
80075
+ optional: true
80076
+ }],
79362
80077
  "sceneMonitor.captureReference": [{
79363
80078
  name: "deviceId",
79364
80079
  form: "single",
@@ -79475,6 +80190,17 @@ Object.freeze({
79475
80190
  form: "single",
79476
80191
  optional: false
79477
80192
  }],
80193
+ "storageAdmin.adoptRecords": [{
80194
+ name: "records",
80195
+ form: "object-array",
80196
+ optional: false,
80197
+ itemField: "deviceId"
80198
+ }],
80199
+ "storageAdmin.readRecords": [{
80200
+ name: "deviceId",
80201
+ form: "single",
80202
+ optional: true
80203
+ }],
79478
80204
  "streamBroker.acquireEgressTranscode": [{
79479
80205
  name: "deviceId",
79480
80206
  form: "single",