@camstack/addon-model-studio 1.1.177 → 1.1.179

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 (18) hide show
  1. package/dist/{MotionZonesSettings-C4-p0MUC.mjs → MotionZonesSettings-Cxw4j3rn.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-CiAgalv0.mjs → PrivacyMaskSettings-zQ-six-W.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-CRv5TJpn.mjs → SceneMonitorEditor-CeDqxaTk.mjs} +3 -3
  4. package/dist/_stub.js +17 -17
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-Pq2JbHl4.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-D3e1rkxO.mjs} +3 -3
  6. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-B8ssxRgI.mjs +26 -0
  7. package/dist/{hostInit-Cx4ONiPc.mjs → hostInit-Bn9VBzqq.mjs} +2 -2
  8. package/dist/model-studio.addon.js +472 -27
  9. package/dist/model-studio.addon.mjs +472 -27
  10. package/dist/{player-overlays-ClBjPU73.mjs → player-overlays-D2YtQYEE.mjs} +1 -1
  11. package/dist/remoteEntry.js +1 -1
  12. package/dist/{responsive-DlMFoaeo.mjs → responsive-i8VV1SdO.mjs} +1 -1
  13. package/dist/{scene-monitor-copy-CTpOVqsU.mjs → scene-monitor-copy-BktPixFQ.mjs} +1 -1
  14. package/dist/{square-C3Zmy4Ca.mjs → square-COwEP7Tf.mjs} +1 -1
  15. package/dist/{trash-2-BD__w_cV.mjs → trash-2-9RsOz0YH.mjs} +1 -1
  16. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-C_0n96Ey.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-DgFB1f3m.mjs} +1 -1
  17. package/package.json +1 -1
  18. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CIxAEvWm.mjs +0 -26
@@ -10296,6 +10296,16 @@ var ModelCatalogEntrySchema = object({
10296
10296
  */
10297
10297
  postprocessor: custom().optional(),
10298
10298
  /**
10299
+ * Per-MODEL default confidence floor. Absent ⇒ the step's
10300
+ * `StepDefinition.defaultConfidence` applies. A score is a property of one
10301
+ * model's output scale, not of the step slot it sits in: YuNet's
10302
+ * `sqrt(cls·obj)` is not SCRFD's score, and inheriting SCRFD's 0.5 filled the
10303
+ * face gallery with wheels and hands (D662, amends D645). An operator's
10304
+ * explicit value still wins over it. Resolved in ONE place —
10305
+ * `addon-pipeline/.../registry/effective-confidence.ts`.
10306
+ */
10307
+ defaultConfidence: number().min(0).max(1).optional(),
10308
+ /**
10299
10309
  * When true, the executor produces a landmark-aligned crop (similarity warp
10300
10310
  * onto the canonical template) before this step runs, instead of a plain
10301
10311
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -10429,23 +10439,6 @@ var ExpressionEvalError = class extends Error {
10429
10439
  this.name = "ExpressionEvalError";
10430
10440
  }
10431
10441
  };
10432
- /**
10433
- * Frozen, null-prototype builtin function table for the expression engine
10434
- * (spec §4 rule 4). The table is the SOLE surface of callable functions: the
10435
- * parser rejects any callee not in it, and the evaluator gates each call on an
10436
- * own-property check against it.
10437
- *
10438
- * Because the object has a NULL prototype AND is `Object.freeze`d:
10439
- * - it cannot be polluted (no `__proto__` / `constructor` write reaches it);
10440
- * - a lookup for `toString` / `hasOwnProperty` / `constructor` finds NOTHING
10441
- * (there is no `Object.prototype` in the chain), so those names are not
10442
- * callable — they are simply "unknown function" at parse time.
10443
- *
10444
- * Every numeric argument is validated as a finite number and every numeric
10445
- * RESULT is re-checked finite, so `/0`, `sqrt(-1)` (→ NaN) and overflow
10446
- * (`pow(10,400)` → Infinity) all raise `ExpressionEvalError` and fail the link
10447
- * closed rather than emitting a garbage value.
10448
- */
10449
10442
  function asFiniteNumber(value, name, index) {
10450
10443
  if (typeof value !== "number" || !Number.isFinite(value)) throw new ExpressionEvalError(`${name}: argument ${index + 1} must be a finite number`);
10451
10444
  return value;
@@ -10461,6 +10454,10 @@ function finiteResult(value, name) {
10461
10454
  function allFiniteNumbers(args, name) {
10462
10455
  return args.map((a, idx) => asFiniteNumber(a, name, idx));
10463
10456
  }
10457
+ function asBoolean$1(value, name, index) {
10458
+ if (typeof value !== "boolean") throw new ExpressionEvalError(`${name}: argument ${index + 1} must be a boolean`);
10459
+ return value;
10460
+ }
10464
10461
  var INF = Number.POSITIVE_INFINITY;
10465
10462
  var table = {
10466
10463
  min: {
@@ -10561,6 +10558,40 @@ var table = {
10561
10558
  if (from === to) return x;
10562
10559
  throw new ExpressionEvalError("convert: unit conversion table not installed");
10563
10560
  }
10561
+ },
10562
+ any: {
10563
+ minArgs: 1,
10564
+ maxArgs: INF,
10565
+ apply: (args) => args.map((a, i) => asBoolean$1(a, "any", i)).some((b) => b)
10566
+ },
10567
+ all: {
10568
+ minArgs: 1,
10569
+ maxArgs: INF,
10570
+ apply: (args) => args.map((a, i) => asBoolean$1(a, "all", i)).every((b) => b)
10571
+ },
10572
+ within: {
10573
+ minArgs: 2,
10574
+ maxArgs: 2,
10575
+ apply: (args, hooks) => {
10576
+ const windowMs = asFiniteNumber(args[1], "within", 1);
10577
+ if (windowMs < 0) throw new ExpressionEvalError("within: the window must not be negative");
10578
+ const at = args[0];
10579
+ if (at === null) return false;
10580
+ const ts = asFiniteNumber(at, "within", 0);
10581
+ const now = hooks.now;
10582
+ if (now === void 0 || !Number.isFinite(now)) throw new ExpressionEvalError("within: no clock was supplied to this evaluation");
10583
+ const inside = now - ts <= windowMs;
10584
+ if (inside) hooks.noteDeadline?.(ts + windowMs + 1);
10585
+ return inside;
10586
+ }
10587
+ },
10588
+ latest: {
10589
+ minArgs: 1,
10590
+ maxArgs: INF,
10591
+ apply: (args) => {
10592
+ const present = args.flatMap((a, i) => a === null ? [] : [asFiniteNumber(a, "latest", i)]);
10593
+ return present.length === 0 ? null : finiteResult(Math.max(...present), "latest");
10594
+ }
10564
10595
  }
10565
10596
  };
10566
10597
  Object.freeze(Object.assign(Object.create(null), table));
@@ -11175,7 +11206,7 @@ var AutomationActionSchema = discriminatedUnion("kind", [
11175
11206
  code: string().min(1).max(2e4)
11176
11207
  })
11177
11208
  ]);
11178
- object({
11209
+ var AutomationRecipeSchema = object({
11179
11210
  triggers: array(AutomationTriggerSchema),
11180
11211
  conditions: AutomationConditionSchema.optional(),
11181
11212
  actions: array(AutomationActionSchema)
@@ -13243,6 +13274,195 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
13243
13274
  }),
13244
13275
  lastChangedAt: number()
13245
13276
  });
13277
+ /** A composed device's stableId is this prefix plus the block id. */
13278
+ var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
13279
+ /** Longest snippet a `code` source may carry (slice 4). */
13280
+ var MAX_COMPOSITION_CODE_LENGTH = 2e4;
13281
+ var CompositionSourceRefSchema = object({
13282
+ /** The owning addon; `stableId` is unique only within it. */
13283
+ addonId: string().min(1),
13284
+ stableId: string().min(1)
13285
+ });
13286
+ /** One field of one capability of one source device. */
13287
+ var CompositionFieldReadSchema = object({
13288
+ source: CompositionSourceRefSchema,
13289
+ cap: string().min(1),
13290
+ /** Dotted path into the source cap's runtime-state slice. */
13291
+ fieldPath: string().min(1)
13292
+ });
13293
+ /** `from`: copy one source field verbatim. It is also an expression's `from` binding. */
13294
+ var CompositionFromSourceSchema = CompositionFieldReadSchema.extend({ kind: literal("from") });
13295
+ var CompositionBindingSchema = discriminatedUnion("kind", [CompositionFromSourceSchema, object({
13296
+ kind: literal("literal"),
13297
+ value: union([
13298
+ string(),
13299
+ number(),
13300
+ boolean(),
13301
+ _null()
13302
+ ])
13303
+ })]);
13304
+ /**
13305
+ * `expression`: a formula over named bindings, in the salvaged expression
13306
+ * engine. Validated at parse by the SAME function every other consumer runs,
13307
+ * so the editor and the store cannot disagree.
13308
+ */
13309
+ var CompositionExpressionSourceSchema = object({
13310
+ kind: literal("expression"),
13311
+ expr: string().min(1).max(MAX_EXPRESSION_SOURCE_LENGTH),
13312
+ bindings: record(string().regex(EXPRESSION_IDENTIFIER_RE), CompositionBindingSchema)
13313
+ }).superRefine((src, ctx) => {
13314
+ const err = validateExpressionSource(src);
13315
+ if (err !== null) ctx.addIssue({
13316
+ code: "custom",
13317
+ message: err,
13318
+ path: ["expr"]
13319
+ });
13320
+ });
13321
+ /** `code`: RESERVED for slice 4 (own runner, one-way eject). */
13322
+ var CompositionCodeSourceSchema = object({
13323
+ kind: literal("code"),
13324
+ code: string().min(1).max(MAX_COMPOSITION_CODE_LENGTH)
13325
+ });
13326
+ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
13327
+ CompositionFromSourceSchema,
13328
+ CompositionExpressionSourceSchema,
13329
+ CompositionCodeSourceSchema
13330
+ ]);
13331
+ var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
13332
+ kind: literal("forward"),
13333
+ source: CompositionSourceRefSchema,
13334
+ cap: string().min(1),
13335
+ method: string().min(1)
13336
+ }), CompositionCodeSourceSchema]);
13337
+ var CompositionFeatureSchema = discriminatedUnion("kind", [object({
13338
+ kind: literal("fields"),
13339
+ cap: string().min(1),
13340
+ fields: record(string().min(1), CompositionFieldSourceSchema).refine((fields) => Object.keys(fields).length <= 32, { message: `at most 32 fields per capability` }),
13341
+ /** RESERVED for slice 3; refused by the validator when non-empty. */
13342
+ commands: record(string().min(1), CompositionCommandTargetSchema).optional()
13343
+ }), object({
13344
+ kind: literal("passthrough"),
13345
+ cap: string().min(1),
13346
+ source: CompositionSourceRefSchema
13347
+ })]);
13348
+ var CompositionSchema = object({
13349
+ target: discriminatedUnion("kind", [object({
13350
+ kind: literal("new"),
13351
+ type: _enum(DeviceType),
13352
+ role: _enum(DeviceRole).optional()
13353
+ }), object({
13354
+ kind: literal("existing"),
13355
+ device: CompositionSourceRefSchema
13356
+ })]),
13357
+ features: array(CompositionFeatureSchema).min(1).max(16)
13358
+ }).superRefine((composition, ctx) => {
13359
+ const seen = /* @__PURE__ */ new Set();
13360
+ composition.features.forEach((feature, index) => {
13361
+ if (seen.has(feature.cap)) ctx.addIssue({
13362
+ code: "custom",
13363
+ message: `capability \`${feature.cap}\` is composed twice — one feature per capability`,
13364
+ path: [
13365
+ "features",
13366
+ index,
13367
+ "cap"
13368
+ ]
13369
+ });
13370
+ seen.add(feature.cap);
13371
+ });
13372
+ });
13373
+ /** One refusal, named (D391). `path` points into the composition, e.g. `features[0].fields.celsius`. */
13374
+ var CompositionProblemSchema = object({
13375
+ code: _enum([
13376
+ "reserved-variant",
13377
+ "unknown-capability",
13378
+ "not-composable",
13379
+ "wrong-device-type",
13380
+ "has-commands",
13381
+ "unknown-field",
13382
+ "nested-field",
13383
+ "missing-field",
13384
+ "kind-mismatch",
13385
+ "may-be-null",
13386
+ "source-missing",
13387
+ "source-unreadable",
13388
+ "source-capability-missing",
13389
+ "source-field-unknown",
13390
+ "expression-invalid",
13391
+ "cycle",
13392
+ "duplicate-target"
13393
+ ]),
13394
+ path: string(),
13395
+ message: string()
13396
+ });
13397
+ var CompositionFieldKindSchema = _enum([
13398
+ "string",
13399
+ "number",
13400
+ "boolean",
13401
+ "enum"
13402
+ ]);
13403
+ /** How a field says "unavailable": `null` when its schema allows it, else the device goes offline (D393). */
13404
+ var CompositionUnavailableModeSchema = _enum(["null", "offline"]);
13405
+ /**
13406
+ * `derived` reads a source · `clock` reads only `now`, recomputed when a sibling
13407
+ * field of its cap changes value · `constant` reads nothing, computed once.
13408
+ */
13409
+ var CompositionFieldRoleSchema = _enum([
13410
+ "derived",
13411
+ "clock",
13412
+ "constant"
13413
+ ]);
13414
+ var CompositionFieldPlanSchema = object({
13415
+ cap: string(),
13416
+ path: string(),
13417
+ /** Index into `composition.features` this field's capability came from —
13418
+ * lets a source/cycle problem name its path as `features[N].fields.<path>`
13419
+ * (the same convention `planComposition`'s own problems already use). */
13420
+ featureIndex: number().int().nonnegative(),
13421
+ kind: CompositionFieldKindSchema,
13422
+ nullable: boolean(),
13423
+ required: boolean(),
13424
+ unavailable: CompositionUnavailableModeSchema,
13425
+ role: CompositionFieldRoleSchema,
13426
+ source: CompositionFieldSourceSchema,
13427
+ reads: array(CompositionFieldReadSchema)
13428
+ });
13429
+ var CompositionValidationSchema = object({
13430
+ ok: boolean(),
13431
+ problems: array(CompositionProblemSchema),
13432
+ fields: array(CompositionFieldPlanSchema)
13433
+ });
13434
+ /** Mirrors `CoreBlockStatus`, pinned by `core-blocks-source.spec.ts` (Task 11). */
13435
+ var CompositionRunStatusSchema = _enum([
13436
+ "stopped",
13437
+ "starting",
13438
+ "running",
13439
+ "failed"
13440
+ ]);
13441
+ var CompositionFieldStateKindSchema = _enum([
13442
+ "fresh",
13443
+ "stale",
13444
+ "unavailable"
13445
+ ]);
13446
+ var CompositionFieldStateSchema = object({
13447
+ cap: string(),
13448
+ path: string(),
13449
+ state: CompositionFieldStateKindSchema,
13450
+ /** `null` whenever `state === 'unavailable'`; never a plausible stand-in (D393). */
13451
+ value: union([
13452
+ string(),
13453
+ number(),
13454
+ boolean(),
13455
+ _null()
13456
+ ]),
13457
+ reason: string().optional()
13458
+ });
13459
+ var CompositionBlockStateSchema = object({
13460
+ blockId: string(),
13461
+ deviceId: number().nullable(),
13462
+ status: CompositionRunStatusSchema,
13463
+ reason: string().optional(),
13464
+ fields: array(CompositionFieldStateSchema)
13465
+ });
13246
13466
  /** Where a block runs. The operator chooses — a block driving a device on an
13247
13467
  * agent is the reason placement is not fixed to the hub. */
13248
13468
  var CoreBlockPlacementSchema = union([literal("hub"), string().min(1)]);
@@ -13269,6 +13489,30 @@ var CoreBlockInputSchema = object({
13269
13489
  */
13270
13490
  integrationId: string().optional()
13271
13491
  });
13492
+ /**
13493
+ * What a block IS (D659). Absent means `code` — every row stored before this
13494
+ * union keeps working unchanged.
13495
+ * - `code`: the TypeScript in `code`, compiled and run in its own runner;
13496
+ * - `recipe`: RESERVED (automations), stored shape only; refused at run by name;
13497
+ * - `composition`: declarative, run by the shared `composer`; `code` is `''`.
13498
+ */
13499
+ var CoreBlockSourceSchema = discriminatedUnion("kind", [
13500
+ object({ kind: literal("code") }),
13501
+ object({
13502
+ kind: literal("recipe"),
13503
+ recipe: AutomationRecipeSchema
13504
+ }),
13505
+ object({
13506
+ kind: literal("composition"),
13507
+ composition: CompositionSchema
13508
+ })
13509
+ ]);
13510
+ /** The client-authored half of a composition block. No `code`, no placement (hub-only; Phase 7). */
13511
+ var CompositionBlockInputSchema = object({
13512
+ name: string().min(1).max(120),
13513
+ enabled: boolean(),
13514
+ composition: CompositionSchema
13515
+ });
13272
13516
  /** A stored block. */
13273
13517
  var CoreBlockSchema = CoreBlockInputSchema.extend({
13274
13518
  id: string(),
@@ -13284,8 +13528,38 @@ var CoreBlockSchema = CoreBlockInputSchema.extend({
13284
13528
  */
13285
13529
  lastError: string().optional(),
13286
13530
  /** Ms epoch of the last state change. */
13287
- lastChangedAt: number()
13531
+ lastChangedAt: number(),
13532
+ /** What the block is. Absent means `code` (D659). */
13533
+ source: CoreBlockSourceSchema.optional()
13534
+ });
13535
+ /** A stored composition block and what the composer says about it. */
13536
+ var CompositionViewSchema = object({
13537
+ block: CoreBlockSchema,
13538
+ state: discriminatedUnion("kind", [object({
13539
+ kind: literal("answered"),
13540
+ state: CompositionBlockStateSchema.nullable()
13541
+ }), object({
13542
+ kind: literal("unreachable"),
13543
+ error: string()
13544
+ })])
13545
+ });
13546
+ /**
13547
+ * A read of the stored compositions. `not-loaded` while the `core_blocks`
13548
+ * table has not been READ: an empty answer then would make "not yet known"
13549
+ * look like "none", and invite the operator to recreate what exists (D315).
13550
+ */
13551
+ var CompositionsNotLoadedSchema = object({
13552
+ state: literal("not-loaded"),
13553
+ reason: string()
13288
13554
  });
13555
+ var CompositionListReadSchema = discriminatedUnion("state", [object({
13556
+ state: literal("loaded"),
13557
+ views: array(CompositionViewSchema)
13558
+ }), CompositionsNotLoadedSchema]);
13559
+ var CompositionGetReadSchema = discriminatedUnion("state", [object({
13560
+ state: literal("loaded"),
13561
+ view: CompositionViewSchema.nullable()
13562
+ }), CompositionsNotLoadedSchema]);
13289
13563
  /** What a compile attempt produced. */
13290
13564
  var CoreBlockCompileResultSchema = object({
13291
13565
  ok: boolean(),
@@ -13323,7 +13597,72 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
13323
13597
  }), method(object({}), object({ libs: array(object({
13324
13598
  filePath: string(),
13325
13599
  content: string()
13326
- })) }), { auth: "admin" });
13600
+ })) }), { auth: "admin" }), method(object({ block: CompositionBlockInputSchema }), object({ block: CoreBlockSchema }), {
13601
+ kind: "mutation",
13602
+ auth: "admin",
13603
+ caller: "required"
13604
+ }), method(object({
13605
+ blockId: string(),
13606
+ expectedUpdatedAt: number(),
13607
+ block: CompositionBlockInputSchema.partial()
13608
+ }), object({ block: CoreBlockSchema }), {
13609
+ kind: "mutation",
13610
+ auth: "admin",
13611
+ caller: "required"
13612
+ }), method(object({ blockId: string() }), CompositionGetReadSchema, { auth: "admin" }), method(object({}), CompositionListReadSchema, { auth: "admin" }), method(object({
13613
+ composition: CompositionSchema,
13614
+ blockId: string().optional()
13615
+ }), CompositionValidationSchema, {
13616
+ kind: "mutation",
13617
+ auth: "admin",
13618
+ access: "view"
13619
+ });
13620
+ var ComposerBlockSchema = object({
13621
+ id: string().min(1),
13622
+ name: string().min(1).max(120),
13623
+ enabled: boolean(),
13624
+ updatedAt: number(),
13625
+ composition: CompositionSchema
13626
+ });
13627
+ /**
13628
+ * A stored composition row that no longer PARSES — a schema a release
13629
+ * tightened, a row written by a newer build. Sent by id so the composer keeps
13630
+ * its device as a placeholder and reports the block `failed` naming the parse
13631
+ * error. Leaving it out would read, twice, exactly like a delete (D49).
13632
+ */
13633
+ var ComposerUnreadableBlockSchema = object({
13634
+ id: string().min(1),
13635
+ /** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
13636
+ name: string().nullable(),
13637
+ /** The parse error, in the operator's words. */
13638
+ error: string()
13639
+ });
13640
+ method(object({
13641
+ /** The shared Blocks integration; null until `core-blocks` has reconciled it. */
13642
+ integrationId: string().nullable(),
13643
+ /** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
13644
+ storeLoaded: boolean(),
13645
+ blocks: array(ComposerBlockSchema),
13646
+ /** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
13647
+ restartBlockIds: array(string()),
13648
+ /** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
13649
+ unreadableBlocks: array(ComposerUnreadableBlockSchema)
13650
+ }), object({
13651
+ blocks: array(object({
13652
+ blockId: string(),
13653
+ status: CompositionRunStatusSchema,
13654
+ reason: string().optional()
13655
+ })),
13656
+ /**
13657
+ * False when the composer declared and withdrew NOTHING (store not loaded,
13658
+ * integration unknown, its own rows unread or read empty once). An empty
13659
+ * apply the caller owes is paid off only by one the composer acted on (D49).
13660
+ */
13661
+ acted: boolean()
13662
+ }), {
13663
+ kind: "mutation",
13664
+ auth: "admin"
13665
+ }), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
13327
13666
  /**
13328
13667
  * `custom-model-registry` — collection cap exposing operator-registered
13329
13668
  * custom detection models. Each provider (today: `addon-model-studio`)
@@ -19090,8 +19429,8 @@ var NcTestResultSchema = object({
19090
19429
  className: string().optional(),
19091
19430
  label: string().optional()
19092
19431
  });
19093
- /** The rule kinds, as data. `NcRuleKind` in `notification/rule-kinds.ts` is the
19094
- * same union; the template-vars spec pins the two together. `mixed` is DERIVED
19432
+ /** The rule kinds, as data. `NcRuleKind` in `notification/rule-kinds.ts` is
19433
+ * `z.infer` of this schema — one shape, no twin. `mixed` is DERIVED
19095
19434
  * (a stored system rule whose kinds span families, D637) and never authored. */
19096
19435
  var NcRuleKindSchema = _enum([
19097
19436
  "detection",
@@ -21709,7 +22048,15 @@ var RebuildObjectEmbeddingsInput = object({
21709
22048
  * force is logged at start and finish so a deliberately slow pass reads
21710
22049
  * differently from a stalled one.
21711
22050
  */
21712
- pacingMs: number().int().nonnegative().optional()
22051
+ pacingMs: number().int().nonnegative().optional(),
22052
+ /**
22053
+ * Re-embed ONLY the tracks whose vector is ALREADY in the pinned model's
22054
+ * space (D664) — the in-space skip inverted. It exists to redo vectors
22055
+ * written from the wrong box, which a normal pass would skip as done
22056
+ * forever. Requires `maxTracks`: a forced pass without a bound is refused
22057
+ * (`force-requires-max-tracks`).
22058
+ */
22059
+ force: boolean().optional()
21713
22060
  });
21714
22061
  /**
21715
22062
  * Result of emptying the CLIP index.
@@ -21745,6 +22092,7 @@ var WipeObjectEmbeddingsResultSchema = object({
21745
22092
  * - `reads-disagree` — the two reads named different choices.
21746
22093
  * - `not-a-clip-model` — the CONFIRMED id has no CLIP metadata, so there is no
21747
22094
  * index to fill and no dimension to check against (D649).
22095
+ * - `force-requires-max-tracks` — `force: true` with no `maxTracks` (D664).
21748
22096
  */
21749
22097
  var RebuildObjectEmbeddingsRefusalSchema = _enum([
21750
22098
  "stores-unavailable",
@@ -21752,7 +22100,8 @@ var RebuildObjectEmbeddingsRefusalSchema = _enum([
21752
22100
  "method-unavailable",
21753
22101
  "read-failed",
21754
22102
  "reads-disagree",
21755
- "not-a-clip-model"
22103
+ "not-a-clip-model",
22104
+ "force-requires-max-tracks"
21756
22105
  ]);
21757
22106
  /**
21758
22107
  * Acknowledgement that a rebuild STARTED.
@@ -21777,11 +22126,32 @@ var RebuildStatusSchema = object({
21777
22126
  running: boolean(),
21778
22127
  scanned: number(),
21779
22128
  rebuilt: number(),
21780
- /** Tracks whose key frame is gone — nothing to re-embed from. */
22129
+ /** Tracks whose key frame is gone — nothing to re-embed from. Pixels ONLY:
22130
+ * `missingEvent` is its own field since D664, never summed in. */
21781
22131
  missingKeyFrame: number(),
21782
- /** Tracks with no usable detection box. */
22132
+ /** Tracks with no object event at all (D664). */
22133
+ missingEvent: number(),
22134
+ /** Tracks with no box measured on the pixels to cut — see `boxSource.refused`. */
21783
22135
  missingBbox: number(),
21784
22136
  /**
22137
+ * Which rule placed each judged track's box (D664): the key frame row's own
22138
+ * `subjectBox`, `track.positions` at exactly its instant (older key frames),
22139
+ * the event box (a key frame recovered from the recording, at the event's
22140
+ * instant), or `refused` by name — the reasons are in the tagged log lines.
22141
+ */
22142
+ boxSource: object({
22143
+ subjectBox: number(),
22144
+ positions: number(),
22145
+ event: number(),
22146
+ refused: number()
22147
+ }),
22148
+ /** Tracks skipped because their vector is already in the pinned space. */
22149
+ alreadyInSpace: number(),
22150
+ /** Whether the current / last pass was a `force` pass; `null` before any (D664). */
22151
+ force: boolean().nullable(),
22152
+ /** In-space tracks a `force` pass selected for re-embedding. */
22153
+ forcedInSpace: number(),
22154
+ /**
21785
22155
  * Tracks an executing node REFUSED rather than broke on — an unreadable key
21786
22156
  * frame, a step that threw. Separate from `failed` because the remedy is
21787
22157
  * different, and because a whole camera silently contributing zero vectors
@@ -22286,7 +22656,8 @@ var PipelineModelOptionSchema = object({
22286
22656
  })),
22287
22657
  group: ModelVariantGroupSchema.optional(),
22288
22658
  legacy: boolean().optional(),
22289
- provider: ModelProviderIdSchema.optional()
22659
+ provider: ModelProviderIdSchema.optional(),
22660
+ defaultConfidence: number().optional()
22290
22661
  });
22291
22662
  var ConfigFieldBridge = custom();
22292
22663
  var PipelineAddonSchemaSchema = object({
@@ -35161,6 +35532,38 @@ DeviceType.Camera, method(object({
35161
35532
  detection: array(ZoneRuleSchema).readonly(),
35162
35533
  package: array(ZoneRuleSchema).readonly()
35163
35534
  });
35535
+ var NUMBER = {
35536
+ kind: "fixed",
35537
+ result: ["number"]
35538
+ };
35539
+ var BOOLEAN = {
35540
+ kind: "fixed",
35541
+ result: ["boolean"]
35542
+ };
35543
+ Object.freeze({
35544
+ min: NUMBER,
35545
+ max: NUMBER,
35546
+ abs: NUMBER,
35547
+ floor: NUMBER,
35548
+ ceil: NUMBER,
35549
+ sqrt: NUMBER,
35550
+ round: NUMBER,
35551
+ pow: NUMBER,
35552
+ clamp: NUMBER,
35553
+ avg: NUMBER,
35554
+ sum: NUMBER,
35555
+ age: NUMBER,
35556
+ convert: NUMBER,
35557
+ coalesce: { kind: "coalesce" },
35558
+ any: BOOLEAN,
35559
+ all: BOOLEAN,
35560
+ within: BOOLEAN,
35561
+ latest: {
35562
+ kind: "fixed",
35563
+ result: ["number", "null"]
35564
+ }
35565
+ });
35566
+ `${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
35164
35567
  /**
35165
35568
  * Accessory device helpers — shared across drivers.
35166
35569
  *
@@ -37469,6 +37872,18 @@ Object.freeze({
37469
37872
  addonId: null,
37470
37873
  access: "create"
37471
37874
  },
37875
+ "composer.applyBlocks": {
37876
+ capName: "composer",
37877
+ capScope: "system",
37878
+ addonId: null,
37879
+ access: "create"
37880
+ },
37881
+ "composer.getStates": {
37882
+ capName: "composer",
37883
+ capScope: "system",
37884
+ addonId: null,
37885
+ access: "view"
37886
+ },
37472
37887
  "connectionTest.describeTest": {
37473
37888
  capName: "connection-test",
37474
37889
  capScope: "system",
@@ -37529,6 +37944,12 @@ Object.freeze({
37529
37944
  addonId: null,
37530
37945
  access: "create"
37531
37946
  },
37947
+ "coreBlocks.createComposition": {
37948
+ capName: "core-blocks",
37949
+ capScope: "system",
37950
+ addonId: null,
37951
+ access: "create"
37952
+ },
37532
37953
  "coreBlocks.delete": {
37533
37954
  capName: "core-blocks",
37534
37955
  capScope: "system",
@@ -37541,6 +37962,12 @@ Object.freeze({
37541
37962
  addonId: null,
37542
37963
  access: "view"
37543
37964
  },
37965
+ "coreBlocks.getComposition": {
37966
+ capName: "core-blocks",
37967
+ capScope: "system",
37968
+ addonId: null,
37969
+ access: "view"
37970
+ },
37544
37971
  "coreBlocks.getTypeDefs": {
37545
37972
  capName: "core-blocks",
37546
37973
  capScope: "system",
@@ -37553,6 +37980,12 @@ Object.freeze({
37553
37980
  addonId: null,
37554
37981
  access: "view"
37555
37982
  },
37983
+ "coreBlocks.listCompositions": {
37984
+ capName: "core-blocks",
37985
+ capScope: "system",
37986
+ addonId: null,
37987
+ access: "view"
37988
+ },
37556
37989
  "coreBlocks.restart": {
37557
37990
  capName: "core-blocks",
37558
37991
  capScope: "system",
@@ -37571,6 +38004,18 @@ Object.freeze({
37571
38004
  addonId: null,
37572
38005
  access: "create"
37573
38006
  },
38007
+ "coreBlocks.updateComposition": {
38008
+ capName: "core-blocks",
38009
+ capScope: "system",
38010
+ addonId: null,
38011
+ access: "create"
38012
+ },
38013
+ "coreBlocks.validateComposition": {
38014
+ capName: "core-blocks",
38015
+ capScope: "system",
38016
+ addonId: null,
38017
+ access: "view"
38018
+ },
37574
38019
  "cover.close": {
37575
38020
  capName: "cover",
37576
38021
  capScope: "device",