@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
@@ -10275,6 +10275,16 @@ var ModelCatalogEntrySchema = object({
10275
10275
  */
10276
10276
  postprocessor: custom().optional(),
10277
10277
  /**
10278
+ * Per-MODEL default confidence floor. Absent ⇒ the step's
10279
+ * `StepDefinition.defaultConfidence` applies. A score is a property of one
10280
+ * model's output scale, not of the step slot it sits in: YuNet's
10281
+ * `sqrt(cls·obj)` is not SCRFD's score, and inheriting SCRFD's 0.5 filled the
10282
+ * face gallery with wheels and hands (D662, amends D645). An operator's
10283
+ * explicit value still wins over it. Resolved in ONE place —
10284
+ * `addon-pipeline/.../registry/effective-confidence.ts`.
10285
+ */
10286
+ defaultConfidence: number().min(0).max(1).optional(),
10287
+ /**
10278
10288
  * When true, the executor produces a landmark-aligned crop (similarity warp
10279
10289
  * onto the canonical template) before this step runs, instead of a plain
10280
10290
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -10408,23 +10418,6 @@ var ExpressionEvalError = class extends Error {
10408
10418
  this.name = "ExpressionEvalError";
10409
10419
  }
10410
10420
  };
10411
- /**
10412
- * Frozen, null-prototype builtin function table for the expression engine
10413
- * (spec §4 rule 4). The table is the SOLE surface of callable functions: the
10414
- * parser rejects any callee not in it, and the evaluator gates each call on an
10415
- * own-property check against it.
10416
- *
10417
- * Because the object has a NULL prototype AND is `Object.freeze`d:
10418
- * - it cannot be polluted (no `__proto__` / `constructor` write reaches it);
10419
- * - a lookup for `toString` / `hasOwnProperty` / `constructor` finds NOTHING
10420
- * (there is no `Object.prototype` in the chain), so those names are not
10421
- * callable — they are simply "unknown function" at parse time.
10422
- *
10423
- * Every numeric argument is validated as a finite number and every numeric
10424
- * RESULT is re-checked finite, so `/0`, `sqrt(-1)` (→ NaN) and overflow
10425
- * (`pow(10,400)` → Infinity) all raise `ExpressionEvalError` and fail the link
10426
- * closed rather than emitting a garbage value.
10427
- */
10428
10421
  function asFiniteNumber(value, name, index) {
10429
10422
  if (typeof value !== "number" || !Number.isFinite(value)) throw new ExpressionEvalError(`${name}: argument ${index + 1} must be a finite number`);
10430
10423
  return value;
@@ -10440,6 +10433,10 @@ function finiteResult(value, name) {
10440
10433
  function allFiniteNumbers(args, name) {
10441
10434
  return args.map((a, idx) => asFiniteNumber(a, name, idx));
10442
10435
  }
10436
+ function asBoolean$1(value, name, index) {
10437
+ if (typeof value !== "boolean") throw new ExpressionEvalError(`${name}: argument ${index + 1} must be a boolean`);
10438
+ return value;
10439
+ }
10443
10440
  var INF = Number.POSITIVE_INFINITY;
10444
10441
  var table = {
10445
10442
  min: {
@@ -10540,6 +10537,40 @@ var table = {
10540
10537
  if (from === to) return x;
10541
10538
  throw new ExpressionEvalError("convert: unit conversion table not installed");
10542
10539
  }
10540
+ },
10541
+ any: {
10542
+ minArgs: 1,
10543
+ maxArgs: INF,
10544
+ apply: (args) => args.map((a, i) => asBoolean$1(a, "any", i)).some((b) => b)
10545
+ },
10546
+ all: {
10547
+ minArgs: 1,
10548
+ maxArgs: INF,
10549
+ apply: (args) => args.map((a, i) => asBoolean$1(a, "all", i)).every((b) => b)
10550
+ },
10551
+ within: {
10552
+ minArgs: 2,
10553
+ maxArgs: 2,
10554
+ apply: (args, hooks) => {
10555
+ const windowMs = asFiniteNumber(args[1], "within", 1);
10556
+ if (windowMs < 0) throw new ExpressionEvalError("within: the window must not be negative");
10557
+ const at = args[0];
10558
+ if (at === null) return false;
10559
+ const ts = asFiniteNumber(at, "within", 0);
10560
+ const now = hooks.now;
10561
+ if (now === void 0 || !Number.isFinite(now)) throw new ExpressionEvalError("within: no clock was supplied to this evaluation");
10562
+ const inside = now - ts <= windowMs;
10563
+ if (inside) hooks.noteDeadline?.(ts + windowMs + 1);
10564
+ return inside;
10565
+ }
10566
+ },
10567
+ latest: {
10568
+ minArgs: 1,
10569
+ maxArgs: INF,
10570
+ apply: (args) => {
10571
+ const present = args.flatMap((a, i) => a === null ? [] : [asFiniteNumber(a, "latest", i)]);
10572
+ return present.length === 0 ? null : finiteResult(Math.max(...present), "latest");
10573
+ }
10543
10574
  }
10544
10575
  };
10545
10576
  Object.freeze(Object.assign(Object.create(null), table));
@@ -11154,7 +11185,7 @@ var AutomationActionSchema = discriminatedUnion("kind", [
11154
11185
  code: string().min(1).max(2e4)
11155
11186
  })
11156
11187
  ]);
11157
- object({
11188
+ var AutomationRecipeSchema = object({
11158
11189
  triggers: array(AutomationTriggerSchema),
11159
11190
  conditions: AutomationConditionSchema.optional(),
11160
11191
  actions: array(AutomationActionSchema)
@@ -13222,6 +13253,195 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
13222
13253
  }),
13223
13254
  lastChangedAt: number()
13224
13255
  });
13256
+ /** A composed device's stableId is this prefix plus the block id. */
13257
+ var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
13258
+ /** Longest snippet a `code` source may carry (slice 4). */
13259
+ var MAX_COMPOSITION_CODE_LENGTH = 2e4;
13260
+ var CompositionSourceRefSchema = object({
13261
+ /** The owning addon; `stableId` is unique only within it. */
13262
+ addonId: string().min(1),
13263
+ stableId: string().min(1)
13264
+ });
13265
+ /** One field of one capability of one source device. */
13266
+ var CompositionFieldReadSchema = object({
13267
+ source: CompositionSourceRefSchema,
13268
+ cap: string().min(1),
13269
+ /** Dotted path into the source cap's runtime-state slice. */
13270
+ fieldPath: string().min(1)
13271
+ });
13272
+ /** `from`: copy one source field verbatim. It is also an expression's `from` binding. */
13273
+ var CompositionFromSourceSchema = CompositionFieldReadSchema.extend({ kind: literal("from") });
13274
+ var CompositionBindingSchema = discriminatedUnion("kind", [CompositionFromSourceSchema, object({
13275
+ kind: literal("literal"),
13276
+ value: union([
13277
+ string(),
13278
+ number(),
13279
+ boolean(),
13280
+ _null()
13281
+ ])
13282
+ })]);
13283
+ /**
13284
+ * `expression`: a formula over named bindings, in the salvaged expression
13285
+ * engine. Validated at parse by the SAME function every other consumer runs,
13286
+ * so the editor and the store cannot disagree.
13287
+ */
13288
+ var CompositionExpressionSourceSchema = object({
13289
+ kind: literal("expression"),
13290
+ expr: string().min(1).max(MAX_EXPRESSION_SOURCE_LENGTH),
13291
+ bindings: record(string().regex(EXPRESSION_IDENTIFIER_RE), CompositionBindingSchema)
13292
+ }).superRefine((src, ctx) => {
13293
+ const err = validateExpressionSource(src);
13294
+ if (err !== null) ctx.addIssue({
13295
+ code: "custom",
13296
+ message: err,
13297
+ path: ["expr"]
13298
+ });
13299
+ });
13300
+ /** `code`: RESERVED for slice 4 (own runner, one-way eject). */
13301
+ var CompositionCodeSourceSchema = object({
13302
+ kind: literal("code"),
13303
+ code: string().min(1).max(MAX_COMPOSITION_CODE_LENGTH)
13304
+ });
13305
+ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
13306
+ CompositionFromSourceSchema,
13307
+ CompositionExpressionSourceSchema,
13308
+ CompositionCodeSourceSchema
13309
+ ]);
13310
+ var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
13311
+ kind: literal("forward"),
13312
+ source: CompositionSourceRefSchema,
13313
+ cap: string().min(1),
13314
+ method: string().min(1)
13315
+ }), CompositionCodeSourceSchema]);
13316
+ var CompositionFeatureSchema = discriminatedUnion("kind", [object({
13317
+ kind: literal("fields"),
13318
+ cap: string().min(1),
13319
+ fields: record(string().min(1), CompositionFieldSourceSchema).refine((fields) => Object.keys(fields).length <= 32, { message: `at most 32 fields per capability` }),
13320
+ /** RESERVED for slice 3; refused by the validator when non-empty. */
13321
+ commands: record(string().min(1), CompositionCommandTargetSchema).optional()
13322
+ }), object({
13323
+ kind: literal("passthrough"),
13324
+ cap: string().min(1),
13325
+ source: CompositionSourceRefSchema
13326
+ })]);
13327
+ var CompositionSchema = object({
13328
+ target: discriminatedUnion("kind", [object({
13329
+ kind: literal("new"),
13330
+ type: _enum(DeviceType),
13331
+ role: _enum(DeviceRole).optional()
13332
+ }), object({
13333
+ kind: literal("existing"),
13334
+ device: CompositionSourceRefSchema
13335
+ })]),
13336
+ features: array(CompositionFeatureSchema).min(1).max(16)
13337
+ }).superRefine((composition, ctx) => {
13338
+ const seen = /* @__PURE__ */ new Set();
13339
+ composition.features.forEach((feature, index) => {
13340
+ if (seen.has(feature.cap)) ctx.addIssue({
13341
+ code: "custom",
13342
+ message: `capability \`${feature.cap}\` is composed twice — one feature per capability`,
13343
+ path: [
13344
+ "features",
13345
+ index,
13346
+ "cap"
13347
+ ]
13348
+ });
13349
+ seen.add(feature.cap);
13350
+ });
13351
+ });
13352
+ /** One refusal, named (D391). `path` points into the composition, e.g. `features[0].fields.celsius`. */
13353
+ var CompositionProblemSchema = object({
13354
+ code: _enum([
13355
+ "reserved-variant",
13356
+ "unknown-capability",
13357
+ "not-composable",
13358
+ "wrong-device-type",
13359
+ "has-commands",
13360
+ "unknown-field",
13361
+ "nested-field",
13362
+ "missing-field",
13363
+ "kind-mismatch",
13364
+ "may-be-null",
13365
+ "source-missing",
13366
+ "source-unreadable",
13367
+ "source-capability-missing",
13368
+ "source-field-unknown",
13369
+ "expression-invalid",
13370
+ "cycle",
13371
+ "duplicate-target"
13372
+ ]),
13373
+ path: string(),
13374
+ message: string()
13375
+ });
13376
+ var CompositionFieldKindSchema = _enum([
13377
+ "string",
13378
+ "number",
13379
+ "boolean",
13380
+ "enum"
13381
+ ]);
13382
+ /** How a field says "unavailable": `null` when its schema allows it, else the device goes offline (D393). */
13383
+ var CompositionUnavailableModeSchema = _enum(["null", "offline"]);
13384
+ /**
13385
+ * `derived` reads a source · `clock` reads only `now`, recomputed when a sibling
13386
+ * field of its cap changes value · `constant` reads nothing, computed once.
13387
+ */
13388
+ var CompositionFieldRoleSchema = _enum([
13389
+ "derived",
13390
+ "clock",
13391
+ "constant"
13392
+ ]);
13393
+ var CompositionFieldPlanSchema = object({
13394
+ cap: string(),
13395
+ path: string(),
13396
+ /** Index into `composition.features` this field's capability came from —
13397
+ * lets a source/cycle problem name its path as `features[N].fields.<path>`
13398
+ * (the same convention `planComposition`'s own problems already use). */
13399
+ featureIndex: number().int().nonnegative(),
13400
+ kind: CompositionFieldKindSchema,
13401
+ nullable: boolean(),
13402
+ required: boolean(),
13403
+ unavailable: CompositionUnavailableModeSchema,
13404
+ role: CompositionFieldRoleSchema,
13405
+ source: CompositionFieldSourceSchema,
13406
+ reads: array(CompositionFieldReadSchema)
13407
+ });
13408
+ var CompositionValidationSchema = object({
13409
+ ok: boolean(),
13410
+ problems: array(CompositionProblemSchema),
13411
+ fields: array(CompositionFieldPlanSchema)
13412
+ });
13413
+ /** Mirrors `CoreBlockStatus`, pinned by `core-blocks-source.spec.ts` (Task 11). */
13414
+ var CompositionRunStatusSchema = _enum([
13415
+ "stopped",
13416
+ "starting",
13417
+ "running",
13418
+ "failed"
13419
+ ]);
13420
+ var CompositionFieldStateKindSchema = _enum([
13421
+ "fresh",
13422
+ "stale",
13423
+ "unavailable"
13424
+ ]);
13425
+ var CompositionFieldStateSchema = object({
13426
+ cap: string(),
13427
+ path: string(),
13428
+ state: CompositionFieldStateKindSchema,
13429
+ /** `null` whenever `state === 'unavailable'`; never a plausible stand-in (D393). */
13430
+ value: union([
13431
+ string(),
13432
+ number(),
13433
+ boolean(),
13434
+ _null()
13435
+ ]),
13436
+ reason: string().optional()
13437
+ });
13438
+ var CompositionBlockStateSchema = object({
13439
+ blockId: string(),
13440
+ deviceId: number().nullable(),
13441
+ status: CompositionRunStatusSchema,
13442
+ reason: string().optional(),
13443
+ fields: array(CompositionFieldStateSchema)
13444
+ });
13225
13445
  /** Where a block runs. The operator chooses — a block driving a device on an
13226
13446
  * agent is the reason placement is not fixed to the hub. */
13227
13447
  var CoreBlockPlacementSchema = union([literal("hub"), string().min(1)]);
@@ -13248,6 +13468,30 @@ var CoreBlockInputSchema = object({
13248
13468
  */
13249
13469
  integrationId: string().optional()
13250
13470
  });
13471
+ /**
13472
+ * What a block IS (D659). Absent means `code` — every row stored before this
13473
+ * union keeps working unchanged.
13474
+ * - `code`: the TypeScript in `code`, compiled and run in its own runner;
13475
+ * - `recipe`: RESERVED (automations), stored shape only; refused at run by name;
13476
+ * - `composition`: declarative, run by the shared `composer`; `code` is `''`.
13477
+ */
13478
+ var CoreBlockSourceSchema = discriminatedUnion("kind", [
13479
+ object({ kind: literal("code") }),
13480
+ object({
13481
+ kind: literal("recipe"),
13482
+ recipe: AutomationRecipeSchema
13483
+ }),
13484
+ object({
13485
+ kind: literal("composition"),
13486
+ composition: CompositionSchema
13487
+ })
13488
+ ]);
13489
+ /** The client-authored half of a composition block. No `code`, no placement (hub-only; Phase 7). */
13490
+ var CompositionBlockInputSchema = object({
13491
+ name: string().min(1).max(120),
13492
+ enabled: boolean(),
13493
+ composition: CompositionSchema
13494
+ });
13251
13495
  /** A stored block. */
13252
13496
  var CoreBlockSchema = CoreBlockInputSchema.extend({
13253
13497
  id: string(),
@@ -13263,8 +13507,38 @@ var CoreBlockSchema = CoreBlockInputSchema.extend({
13263
13507
  */
13264
13508
  lastError: string().optional(),
13265
13509
  /** Ms epoch of the last state change. */
13266
- lastChangedAt: number()
13510
+ lastChangedAt: number(),
13511
+ /** What the block is. Absent means `code` (D659). */
13512
+ source: CoreBlockSourceSchema.optional()
13513
+ });
13514
+ /** A stored composition block and what the composer says about it. */
13515
+ var CompositionViewSchema = object({
13516
+ block: CoreBlockSchema,
13517
+ state: discriminatedUnion("kind", [object({
13518
+ kind: literal("answered"),
13519
+ state: CompositionBlockStateSchema.nullable()
13520
+ }), object({
13521
+ kind: literal("unreachable"),
13522
+ error: string()
13523
+ })])
13524
+ });
13525
+ /**
13526
+ * A read of the stored compositions. `not-loaded` while the `core_blocks`
13527
+ * table has not been READ: an empty answer then would make "not yet known"
13528
+ * look like "none", and invite the operator to recreate what exists (D315).
13529
+ */
13530
+ var CompositionsNotLoadedSchema = object({
13531
+ state: literal("not-loaded"),
13532
+ reason: string()
13267
13533
  });
13534
+ var CompositionListReadSchema = discriminatedUnion("state", [object({
13535
+ state: literal("loaded"),
13536
+ views: array(CompositionViewSchema)
13537
+ }), CompositionsNotLoadedSchema]);
13538
+ var CompositionGetReadSchema = discriminatedUnion("state", [object({
13539
+ state: literal("loaded"),
13540
+ view: CompositionViewSchema.nullable()
13541
+ }), CompositionsNotLoadedSchema]);
13268
13542
  /** What a compile attempt produced. */
13269
13543
  var CoreBlockCompileResultSchema = object({
13270
13544
  ok: boolean(),
@@ -13302,7 +13576,72 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
13302
13576
  }), method(object({}), object({ libs: array(object({
13303
13577
  filePath: string(),
13304
13578
  content: string()
13305
- })) }), { auth: "admin" });
13579
+ })) }), { auth: "admin" }), method(object({ block: CompositionBlockInputSchema }), object({ block: CoreBlockSchema }), {
13580
+ kind: "mutation",
13581
+ auth: "admin",
13582
+ caller: "required"
13583
+ }), method(object({
13584
+ blockId: string(),
13585
+ expectedUpdatedAt: number(),
13586
+ block: CompositionBlockInputSchema.partial()
13587
+ }), object({ block: CoreBlockSchema }), {
13588
+ kind: "mutation",
13589
+ auth: "admin",
13590
+ caller: "required"
13591
+ }), method(object({ blockId: string() }), CompositionGetReadSchema, { auth: "admin" }), method(object({}), CompositionListReadSchema, { auth: "admin" }), method(object({
13592
+ composition: CompositionSchema,
13593
+ blockId: string().optional()
13594
+ }), CompositionValidationSchema, {
13595
+ kind: "mutation",
13596
+ auth: "admin",
13597
+ access: "view"
13598
+ });
13599
+ var ComposerBlockSchema = object({
13600
+ id: string().min(1),
13601
+ name: string().min(1).max(120),
13602
+ enabled: boolean(),
13603
+ updatedAt: number(),
13604
+ composition: CompositionSchema
13605
+ });
13606
+ /**
13607
+ * A stored composition row that no longer PARSES — a schema a release
13608
+ * tightened, a row written by a newer build. Sent by id so the composer keeps
13609
+ * its device as a placeholder and reports the block `failed` naming the parse
13610
+ * error. Leaving it out would read, twice, exactly like a delete (D49).
13611
+ */
13612
+ var ComposerUnreadableBlockSchema = object({
13613
+ id: string().min(1),
13614
+ /** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
13615
+ name: string().nullable(),
13616
+ /** The parse error, in the operator's words. */
13617
+ error: string()
13618
+ });
13619
+ method(object({
13620
+ /** The shared Blocks integration; null until `core-blocks` has reconciled it. */
13621
+ integrationId: string().nullable(),
13622
+ /** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
13623
+ storeLoaded: boolean(),
13624
+ blocks: array(ComposerBlockSchema),
13625
+ /** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
13626
+ restartBlockIds: array(string()),
13627
+ /** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
13628
+ unreadableBlocks: array(ComposerUnreadableBlockSchema)
13629
+ }), object({
13630
+ blocks: array(object({
13631
+ blockId: string(),
13632
+ status: CompositionRunStatusSchema,
13633
+ reason: string().optional()
13634
+ })),
13635
+ /**
13636
+ * False when the composer declared and withdrew NOTHING (store not loaded,
13637
+ * integration unknown, its own rows unread or read empty once). An empty
13638
+ * apply the caller owes is paid off only by one the composer acted on (D49).
13639
+ */
13640
+ acted: boolean()
13641
+ }), {
13642
+ kind: "mutation",
13643
+ auth: "admin"
13644
+ }), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
13306
13645
  /**
13307
13646
  * `custom-model-registry` — collection cap exposing operator-registered
13308
13647
  * custom detection models. Each provider (today: `addon-model-studio`)
@@ -19069,8 +19408,8 @@ var NcTestResultSchema = object({
19069
19408
  className: string().optional(),
19070
19409
  label: string().optional()
19071
19410
  });
19072
- /** The rule kinds, as data. `NcRuleKind` in `notification/rule-kinds.ts` is the
19073
- * same union; the template-vars spec pins the two together. `mixed` is DERIVED
19411
+ /** The rule kinds, as data. `NcRuleKind` in `notification/rule-kinds.ts` is
19412
+ * `z.infer` of this schema — one shape, no twin. `mixed` is DERIVED
19074
19413
  * (a stored system rule whose kinds span families, D637) and never authored. */
19075
19414
  var NcRuleKindSchema = _enum([
19076
19415
  "detection",
@@ -21688,7 +22027,15 @@ var RebuildObjectEmbeddingsInput = object({
21688
22027
  * force is logged at start and finish so a deliberately slow pass reads
21689
22028
  * differently from a stalled one.
21690
22029
  */
21691
- pacingMs: number().int().nonnegative().optional()
22030
+ pacingMs: number().int().nonnegative().optional(),
22031
+ /**
22032
+ * Re-embed ONLY the tracks whose vector is ALREADY in the pinned model's
22033
+ * space (D664) — the in-space skip inverted. It exists to redo vectors
22034
+ * written from the wrong box, which a normal pass would skip as done
22035
+ * forever. Requires `maxTracks`: a forced pass without a bound is refused
22036
+ * (`force-requires-max-tracks`).
22037
+ */
22038
+ force: boolean().optional()
21692
22039
  });
21693
22040
  /**
21694
22041
  * Result of emptying the CLIP index.
@@ -21724,6 +22071,7 @@ var WipeObjectEmbeddingsResultSchema = object({
21724
22071
  * - `reads-disagree` — the two reads named different choices.
21725
22072
  * - `not-a-clip-model` — the CONFIRMED id has no CLIP metadata, so there is no
21726
22073
  * index to fill and no dimension to check against (D649).
22074
+ * - `force-requires-max-tracks` — `force: true` with no `maxTracks` (D664).
21727
22075
  */
21728
22076
  var RebuildObjectEmbeddingsRefusalSchema = _enum([
21729
22077
  "stores-unavailable",
@@ -21731,7 +22079,8 @@ var RebuildObjectEmbeddingsRefusalSchema = _enum([
21731
22079
  "method-unavailable",
21732
22080
  "read-failed",
21733
22081
  "reads-disagree",
21734
- "not-a-clip-model"
22082
+ "not-a-clip-model",
22083
+ "force-requires-max-tracks"
21735
22084
  ]);
21736
22085
  /**
21737
22086
  * Acknowledgement that a rebuild STARTED.
@@ -21756,11 +22105,32 @@ var RebuildStatusSchema = object({
21756
22105
  running: boolean(),
21757
22106
  scanned: number(),
21758
22107
  rebuilt: number(),
21759
- /** Tracks whose key frame is gone — nothing to re-embed from. */
22108
+ /** Tracks whose key frame is gone — nothing to re-embed from. Pixels ONLY:
22109
+ * `missingEvent` is its own field since D664, never summed in. */
21760
22110
  missingKeyFrame: number(),
21761
- /** Tracks with no usable detection box. */
22111
+ /** Tracks with no object event at all (D664). */
22112
+ missingEvent: number(),
22113
+ /** Tracks with no box measured on the pixels to cut — see `boxSource.refused`. */
21762
22114
  missingBbox: number(),
21763
22115
  /**
22116
+ * Which rule placed each judged track's box (D664): the key frame row's own
22117
+ * `subjectBox`, `track.positions` at exactly its instant (older key frames),
22118
+ * the event box (a key frame recovered from the recording, at the event's
22119
+ * instant), or `refused` by name — the reasons are in the tagged log lines.
22120
+ */
22121
+ boxSource: object({
22122
+ subjectBox: number(),
22123
+ positions: number(),
22124
+ event: number(),
22125
+ refused: number()
22126
+ }),
22127
+ /** Tracks skipped because their vector is already in the pinned space. */
22128
+ alreadyInSpace: number(),
22129
+ /** Whether the current / last pass was a `force` pass; `null` before any (D664). */
22130
+ force: boolean().nullable(),
22131
+ /** In-space tracks a `force` pass selected for re-embedding. */
22132
+ forcedInSpace: number(),
22133
+ /**
21764
22134
  * Tracks an executing node REFUSED rather than broke on — an unreadable key
21765
22135
  * frame, a step that threw. Separate from `failed` because the remedy is
21766
22136
  * different, and because a whole camera silently contributing zero vectors
@@ -22265,7 +22635,8 @@ var PipelineModelOptionSchema = object({
22265
22635
  })),
22266
22636
  group: ModelVariantGroupSchema.optional(),
22267
22637
  legacy: boolean().optional(),
22268
- provider: ModelProviderIdSchema.optional()
22638
+ provider: ModelProviderIdSchema.optional(),
22639
+ defaultConfidence: number().optional()
22269
22640
  });
22270
22641
  var ConfigFieldBridge = custom();
22271
22642
  var PipelineAddonSchemaSchema = object({
@@ -35140,6 +35511,38 @@ DeviceType.Camera, method(object({
35140
35511
  detection: array(ZoneRuleSchema).readonly(),
35141
35512
  package: array(ZoneRuleSchema).readonly()
35142
35513
  });
35514
+ var NUMBER = {
35515
+ kind: "fixed",
35516
+ result: ["number"]
35517
+ };
35518
+ var BOOLEAN = {
35519
+ kind: "fixed",
35520
+ result: ["boolean"]
35521
+ };
35522
+ Object.freeze({
35523
+ min: NUMBER,
35524
+ max: NUMBER,
35525
+ abs: NUMBER,
35526
+ floor: NUMBER,
35527
+ ceil: NUMBER,
35528
+ sqrt: NUMBER,
35529
+ round: NUMBER,
35530
+ pow: NUMBER,
35531
+ clamp: NUMBER,
35532
+ avg: NUMBER,
35533
+ sum: NUMBER,
35534
+ age: NUMBER,
35535
+ convert: NUMBER,
35536
+ coalesce: { kind: "coalesce" },
35537
+ any: BOOLEAN,
35538
+ all: BOOLEAN,
35539
+ within: BOOLEAN,
35540
+ latest: {
35541
+ kind: "fixed",
35542
+ result: ["number", "null"]
35543
+ }
35544
+ });
35545
+ `${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
35143
35546
  /**
35144
35547
  * Accessory device helpers — shared across drivers.
35145
35548
  *
@@ -37448,6 +37851,18 @@ Object.freeze({
37448
37851
  addonId: null,
37449
37852
  access: "create"
37450
37853
  },
37854
+ "composer.applyBlocks": {
37855
+ capName: "composer",
37856
+ capScope: "system",
37857
+ addonId: null,
37858
+ access: "create"
37859
+ },
37860
+ "composer.getStates": {
37861
+ capName: "composer",
37862
+ capScope: "system",
37863
+ addonId: null,
37864
+ access: "view"
37865
+ },
37451
37866
  "connectionTest.describeTest": {
37452
37867
  capName: "connection-test",
37453
37868
  capScope: "system",
@@ -37508,6 +37923,12 @@ Object.freeze({
37508
37923
  addonId: null,
37509
37924
  access: "create"
37510
37925
  },
37926
+ "coreBlocks.createComposition": {
37927
+ capName: "core-blocks",
37928
+ capScope: "system",
37929
+ addonId: null,
37930
+ access: "create"
37931
+ },
37511
37932
  "coreBlocks.delete": {
37512
37933
  capName: "core-blocks",
37513
37934
  capScope: "system",
@@ -37520,6 +37941,12 @@ Object.freeze({
37520
37941
  addonId: null,
37521
37942
  access: "view"
37522
37943
  },
37944
+ "coreBlocks.getComposition": {
37945
+ capName: "core-blocks",
37946
+ capScope: "system",
37947
+ addonId: null,
37948
+ access: "view"
37949
+ },
37523
37950
  "coreBlocks.getTypeDefs": {
37524
37951
  capName: "core-blocks",
37525
37952
  capScope: "system",
@@ -37532,6 +37959,12 @@ Object.freeze({
37532
37959
  addonId: null,
37533
37960
  access: "view"
37534
37961
  },
37962
+ "coreBlocks.listCompositions": {
37963
+ capName: "core-blocks",
37964
+ capScope: "system",
37965
+ addonId: null,
37966
+ access: "view"
37967
+ },
37535
37968
  "coreBlocks.restart": {
37536
37969
  capName: "core-blocks",
37537
37970
  capScope: "system",
@@ -37550,6 +37983,18 @@ Object.freeze({
37550
37983
  addonId: null,
37551
37984
  access: "create"
37552
37985
  },
37986
+ "coreBlocks.updateComposition": {
37987
+ capName: "core-blocks",
37988
+ capScope: "system",
37989
+ addonId: null,
37990
+ access: "create"
37991
+ },
37992
+ "coreBlocks.validateComposition": {
37993
+ capName: "core-blocks",
37994
+ capScope: "system",
37995
+ addonId: null,
37996
+ access: "view"
37997
+ },
37553
37998
  "cover.close": {
37554
37999
  capName: "cover",
37555
38000
  capScope: "device",
@@ -1,5 +1,5 @@
1
1
  import { h as e, l as t, u as n, y as r } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DJDHChgO.mjs";
2
- import { o as i, s as a } from "./responsive-DlMFoaeo.mjs";
2
+ import { o as i, s as a } from "./responsive-i8VV1SdO.mjs";
3
3
  import { n as o, r as s, t as c } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-ds_Ehzaa.mjs";
4
4
  var l = a("chevron-down", [["path", {
5
5
  d: "m6 9 6 6 6-6",
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-C_0n96Ey.mjs";
1
+ import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-DgFB1f3m.mjs";
2
2
  export { t as get, e as init };
@@ -1,6 +1,6 @@
1
1
  import { c as e, g as t, h as n, l as r, n as i, p as a, r as o, t as s, u as c, y as l } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DJDHChgO.mjs";
2
2
  import "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-ds_Ehzaa.mjs";
3
- import { n as u } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CIxAEvWm.mjs";
3
+ import { n as u } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-B8ssxRgI.mjs";
4
4
  //#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
5
5
  l();
6
6
  var d = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), f = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), p = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), m = (e) => {
@@ -1,5 +1,5 @@
1
1
  import { c as e, h as t, p as n, y as r } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DJDHChgO.mjs";
2
- import { s as i } from "./responsive-DlMFoaeo.mjs";
2
+ import { s as i } from "./responsive-i8VV1SdO.mjs";
3
3
  var a = i("camera", [["path", {
4
4
  d: "M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",
5
5
  key: "18u6gg"
@@ -1,4 +1,4 @@
1
- import { s as e } from "./responsive-DlMFoaeo.mjs";
1
+ import { s as e } from "./responsive-i8VV1SdO.mjs";
2
2
  var t = e("eye-off", [
3
3
  ["path", {
4
4
  d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
@@ -1,4 +1,4 @@
1
- import { s as e } from "./responsive-DlMFoaeo.mjs";
1
+ import { s as e } from "./responsive-i8VV1SdO.mjs";
2
2
  var t = e("trash-2", [
3
3
  ["path", {
4
4
  d: "M10 11v6",