@camstack/addon-post-analysis 1.2.289 → 1.2.291

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-JFtcAZEB.js → clip-model-registry-CTY5co6P.js} +472 -27
  2. package/dist/{clip-model-registry-g3-Yz08Y.mjs → clip-model-registry-Cudz--Ql.mjs} +472 -27
  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-D5OpYfsh.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-CBHxwCSj.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-2OwTV_D2.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-DAAKQ3sC.mjs +26 -0
  9. package/dist/pipeline-analytics/{hostInit-BsQiXbDx.mjs → hostInit-DSKT2dE4.mjs} +2 -2
  10. package/dist/pipeline-analytics/index.js +322 -59
  11. package/dist/pipeline-analytics/index.mjs +322 -59
  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-CfU5NAwo.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-r4OU_ahc.mjs +0 -26
@@ -10302,6 +10302,16 @@ var ModelCatalogEntrySchema = object({
10302
10302
  */
10303
10303
  postprocessor: custom().optional(),
10304
10304
  /**
10305
+ * Per-MODEL default confidence floor. Absent ⇒ the step's
10306
+ * `StepDefinition.defaultConfidence` applies. A score is a property of one
10307
+ * model's output scale, not of the step slot it sits in: YuNet's
10308
+ * `sqrt(cls·obj)` is not SCRFD's score, and inheriting SCRFD's 0.5 filled the
10309
+ * face gallery with wheels and hands (D662, amends D645). An operator's
10310
+ * explicit value still wins over it. Resolved in ONE place —
10311
+ * `addon-pipeline/.../registry/effective-confidence.ts`.
10312
+ */
10313
+ defaultConfidence: number().min(0).max(1).optional(),
10314
+ /**
10305
10315
  * When true, the executor produces a landmark-aligned crop (similarity warp
10306
10316
  * onto the canonical template) before this step runs, instead of a plain
10307
10317
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -10434,23 +10444,6 @@ var ExpressionEvalError = class extends Error {
10434
10444
  this.name = "ExpressionEvalError";
10435
10445
  }
10436
10446
  };
10437
- /**
10438
- * Frozen, null-prototype builtin function table for the expression engine
10439
- * (spec §4 rule 4). The table is the SOLE surface of callable functions: the
10440
- * parser rejects any callee not in it, and the evaluator gates each call on an
10441
- * own-property check against it.
10442
- *
10443
- * Because the object has a NULL prototype AND is `Object.freeze`d:
10444
- * - it cannot be polluted (no `__proto__` / `constructor` write reaches it);
10445
- * - a lookup for `toString` / `hasOwnProperty` / `constructor` finds NOTHING
10446
- * (there is no `Object.prototype` in the chain), so those names are not
10447
- * callable — they are simply "unknown function" at parse time.
10448
- *
10449
- * Every numeric argument is validated as a finite number and every numeric
10450
- * RESULT is re-checked finite, so `/0`, `sqrt(-1)` (→ NaN) and overflow
10451
- * (`pow(10,400)` → Infinity) all raise `ExpressionEvalError` and fail the link
10452
- * closed rather than emitting a garbage value.
10453
- */
10454
10447
  function asFiniteNumber(value, name, index) {
10455
10448
  if (typeof value !== "number" || !Number.isFinite(value)) throw new ExpressionEvalError(`${name}: argument ${index + 1} must be a finite number`);
10456
10449
  return value;
@@ -10466,6 +10459,10 @@ function finiteResult(value, name) {
10466
10459
  function allFiniteNumbers(args, name) {
10467
10460
  return args.map((a, idx) => asFiniteNumber(a, name, idx));
10468
10461
  }
10462
+ function asBoolean$1(value, name, index) {
10463
+ if (typeof value !== "boolean") throw new ExpressionEvalError(`${name}: argument ${index + 1} must be a boolean`);
10464
+ return value;
10465
+ }
10469
10466
  var INF = Number.POSITIVE_INFINITY;
10470
10467
  var table = {
10471
10468
  min: {
@@ -10566,6 +10563,40 @@ var table = {
10566
10563
  if (from === to) return x;
10567
10564
  throw new ExpressionEvalError("convert: unit conversion table not installed");
10568
10565
  }
10566
+ },
10567
+ any: {
10568
+ minArgs: 1,
10569
+ maxArgs: INF,
10570
+ apply: (args) => args.map((a, i) => asBoolean$1(a, "any", i)).some((b) => b)
10571
+ },
10572
+ all: {
10573
+ minArgs: 1,
10574
+ maxArgs: INF,
10575
+ apply: (args) => args.map((a, i) => asBoolean$1(a, "all", i)).every((b) => b)
10576
+ },
10577
+ within: {
10578
+ minArgs: 2,
10579
+ maxArgs: 2,
10580
+ apply: (args, hooks) => {
10581
+ const windowMs = asFiniteNumber(args[1], "within", 1);
10582
+ if (windowMs < 0) throw new ExpressionEvalError("within: the window must not be negative");
10583
+ const at = args[0];
10584
+ if (at === null) return false;
10585
+ const ts = asFiniteNumber(at, "within", 0);
10586
+ const now = hooks.now;
10587
+ if (now === void 0 || !Number.isFinite(now)) throw new ExpressionEvalError("within: no clock was supplied to this evaluation");
10588
+ const inside = now - ts <= windowMs;
10589
+ if (inside) hooks.noteDeadline?.(ts + windowMs + 1);
10590
+ return inside;
10591
+ }
10592
+ },
10593
+ latest: {
10594
+ minArgs: 1,
10595
+ maxArgs: INF,
10596
+ apply: (args) => {
10597
+ const present = args.flatMap((a, i) => a === null ? [] : [asFiniteNumber(a, "latest", i)]);
10598
+ return present.length === 0 ? null : finiteResult(Math.max(...present), "latest");
10599
+ }
10569
10600
  }
10570
10601
  };
10571
10602
  Object.freeze(Object.assign(Object.create(null), table));
@@ -11180,7 +11211,7 @@ var AutomationActionSchema = discriminatedUnion("kind", [
11180
11211
  code: string().min(1).max(2e4)
11181
11212
  })
11182
11213
  ]);
11183
- object({
11214
+ var AutomationRecipeSchema = object({
11184
11215
  triggers: array(AutomationTriggerSchema),
11185
11216
  conditions: AutomationConditionSchema.optional(),
11186
11217
  actions: array(AutomationActionSchema)
@@ -13356,6 +13387,195 @@ var cameraStreamsCapability = {
13356
13387
  function kebabToCamel(s) {
13357
13388
  return s.replace(/-([a-z])/g, (_, c) => c.toUpperCase());
13358
13389
  }
13390
+ /** A composed device's stableId is this prefix plus the block id. */
13391
+ var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
13392
+ /** Longest snippet a `code` source may carry (slice 4). */
13393
+ var MAX_COMPOSITION_CODE_LENGTH = 2e4;
13394
+ var CompositionSourceRefSchema = object({
13395
+ /** The owning addon; `stableId` is unique only within it. */
13396
+ addonId: string().min(1),
13397
+ stableId: string().min(1)
13398
+ });
13399
+ /** One field of one capability of one source device. */
13400
+ var CompositionFieldReadSchema = object({
13401
+ source: CompositionSourceRefSchema,
13402
+ cap: string().min(1),
13403
+ /** Dotted path into the source cap's runtime-state slice. */
13404
+ fieldPath: string().min(1)
13405
+ });
13406
+ /** `from`: copy one source field verbatim. It is also an expression's `from` binding. */
13407
+ var CompositionFromSourceSchema = CompositionFieldReadSchema.extend({ kind: literal("from") });
13408
+ var CompositionBindingSchema = discriminatedUnion("kind", [CompositionFromSourceSchema, object({
13409
+ kind: literal("literal"),
13410
+ value: union([
13411
+ string(),
13412
+ number(),
13413
+ boolean(),
13414
+ _null()
13415
+ ])
13416
+ })]);
13417
+ /**
13418
+ * `expression`: a formula over named bindings, in the salvaged expression
13419
+ * engine. Validated at parse by the SAME function every other consumer runs,
13420
+ * so the editor and the store cannot disagree.
13421
+ */
13422
+ var CompositionExpressionSourceSchema = object({
13423
+ kind: literal("expression"),
13424
+ expr: string().min(1).max(MAX_EXPRESSION_SOURCE_LENGTH),
13425
+ bindings: record(string().regex(EXPRESSION_IDENTIFIER_RE), CompositionBindingSchema)
13426
+ }).superRefine((src, ctx) => {
13427
+ const err = validateExpressionSource(src);
13428
+ if (err !== null) ctx.addIssue({
13429
+ code: "custom",
13430
+ message: err,
13431
+ path: ["expr"]
13432
+ });
13433
+ });
13434
+ /** `code`: RESERVED for slice 4 (own runner, one-way eject). */
13435
+ var CompositionCodeSourceSchema = object({
13436
+ kind: literal("code"),
13437
+ code: string().min(1).max(MAX_COMPOSITION_CODE_LENGTH)
13438
+ });
13439
+ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
13440
+ CompositionFromSourceSchema,
13441
+ CompositionExpressionSourceSchema,
13442
+ CompositionCodeSourceSchema
13443
+ ]);
13444
+ var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
13445
+ kind: literal("forward"),
13446
+ source: CompositionSourceRefSchema,
13447
+ cap: string().min(1),
13448
+ method: string().min(1)
13449
+ }), CompositionCodeSourceSchema]);
13450
+ var CompositionFeatureSchema = discriminatedUnion("kind", [object({
13451
+ kind: literal("fields"),
13452
+ cap: string().min(1),
13453
+ fields: record(string().min(1), CompositionFieldSourceSchema).refine((fields) => Object.keys(fields).length <= 32, { message: `at most 32 fields per capability` }),
13454
+ /** RESERVED for slice 3; refused by the validator when non-empty. */
13455
+ commands: record(string().min(1), CompositionCommandTargetSchema).optional()
13456
+ }), object({
13457
+ kind: literal("passthrough"),
13458
+ cap: string().min(1),
13459
+ source: CompositionSourceRefSchema
13460
+ })]);
13461
+ var CompositionSchema = object({
13462
+ target: discriminatedUnion("kind", [object({
13463
+ kind: literal("new"),
13464
+ type: _enum(DeviceType),
13465
+ role: _enum(DeviceRole).optional()
13466
+ }), object({
13467
+ kind: literal("existing"),
13468
+ device: CompositionSourceRefSchema
13469
+ })]),
13470
+ features: array(CompositionFeatureSchema).min(1).max(16)
13471
+ }).superRefine((composition, ctx) => {
13472
+ const seen = /* @__PURE__ */ new Set();
13473
+ composition.features.forEach((feature, index) => {
13474
+ if (seen.has(feature.cap)) ctx.addIssue({
13475
+ code: "custom",
13476
+ message: `capability \`${feature.cap}\` is composed twice — one feature per capability`,
13477
+ path: [
13478
+ "features",
13479
+ index,
13480
+ "cap"
13481
+ ]
13482
+ });
13483
+ seen.add(feature.cap);
13484
+ });
13485
+ });
13486
+ /** One refusal, named (D391). `path` points into the composition, e.g. `features[0].fields.celsius`. */
13487
+ var CompositionProblemSchema = object({
13488
+ code: _enum([
13489
+ "reserved-variant",
13490
+ "unknown-capability",
13491
+ "not-composable",
13492
+ "wrong-device-type",
13493
+ "has-commands",
13494
+ "unknown-field",
13495
+ "nested-field",
13496
+ "missing-field",
13497
+ "kind-mismatch",
13498
+ "may-be-null",
13499
+ "source-missing",
13500
+ "source-unreadable",
13501
+ "source-capability-missing",
13502
+ "source-field-unknown",
13503
+ "expression-invalid",
13504
+ "cycle",
13505
+ "duplicate-target"
13506
+ ]),
13507
+ path: string(),
13508
+ message: string()
13509
+ });
13510
+ var CompositionFieldKindSchema = _enum([
13511
+ "string",
13512
+ "number",
13513
+ "boolean",
13514
+ "enum"
13515
+ ]);
13516
+ /** How a field says "unavailable": `null` when its schema allows it, else the device goes offline (D393). */
13517
+ var CompositionUnavailableModeSchema = _enum(["null", "offline"]);
13518
+ /**
13519
+ * `derived` reads a source · `clock` reads only `now`, recomputed when a sibling
13520
+ * field of its cap changes value · `constant` reads nothing, computed once.
13521
+ */
13522
+ var CompositionFieldRoleSchema = _enum([
13523
+ "derived",
13524
+ "clock",
13525
+ "constant"
13526
+ ]);
13527
+ var CompositionFieldPlanSchema = object({
13528
+ cap: string(),
13529
+ path: string(),
13530
+ /** Index into `composition.features` this field's capability came from —
13531
+ * lets a source/cycle problem name its path as `features[N].fields.<path>`
13532
+ * (the same convention `planComposition`'s own problems already use). */
13533
+ featureIndex: number().int().nonnegative(),
13534
+ kind: CompositionFieldKindSchema,
13535
+ nullable: boolean(),
13536
+ required: boolean(),
13537
+ unavailable: CompositionUnavailableModeSchema,
13538
+ role: CompositionFieldRoleSchema,
13539
+ source: CompositionFieldSourceSchema,
13540
+ reads: array(CompositionFieldReadSchema)
13541
+ });
13542
+ var CompositionValidationSchema = object({
13543
+ ok: boolean(),
13544
+ problems: array(CompositionProblemSchema),
13545
+ fields: array(CompositionFieldPlanSchema)
13546
+ });
13547
+ /** Mirrors `CoreBlockStatus`, pinned by `core-blocks-source.spec.ts` (Task 11). */
13548
+ var CompositionRunStatusSchema = _enum([
13549
+ "stopped",
13550
+ "starting",
13551
+ "running",
13552
+ "failed"
13553
+ ]);
13554
+ var CompositionFieldStateKindSchema = _enum([
13555
+ "fresh",
13556
+ "stale",
13557
+ "unavailable"
13558
+ ]);
13559
+ var CompositionFieldStateSchema = object({
13560
+ cap: string(),
13561
+ path: string(),
13562
+ state: CompositionFieldStateKindSchema,
13563
+ /** `null` whenever `state === 'unavailable'`; never a plausible stand-in (D393). */
13564
+ value: union([
13565
+ string(),
13566
+ number(),
13567
+ boolean(),
13568
+ _null()
13569
+ ]),
13570
+ reason: string().optional()
13571
+ });
13572
+ var CompositionBlockStateSchema = object({
13573
+ blockId: string(),
13574
+ deviceId: number().nullable(),
13575
+ status: CompositionRunStatusSchema,
13576
+ reason: string().optional(),
13577
+ fields: array(CompositionFieldStateSchema)
13578
+ });
13359
13579
  /** Where a block runs. The operator chooses — a block driving a device on an
13360
13580
  * agent is the reason placement is not fixed to the hub. */
13361
13581
  var CoreBlockPlacementSchema = union([literal("hub"), string().min(1)]);
@@ -13382,6 +13602,30 @@ var CoreBlockInputSchema = object({
13382
13602
  */
13383
13603
  integrationId: string().optional()
13384
13604
  });
13605
+ /**
13606
+ * What a block IS (D659). Absent means `code` — every row stored before this
13607
+ * union keeps working unchanged.
13608
+ * - `code`: the TypeScript in `code`, compiled and run in its own runner;
13609
+ * - `recipe`: RESERVED (automations), stored shape only; refused at run by name;
13610
+ * - `composition`: declarative, run by the shared `composer`; `code` is `''`.
13611
+ */
13612
+ var CoreBlockSourceSchema = discriminatedUnion("kind", [
13613
+ object({ kind: literal("code") }),
13614
+ object({
13615
+ kind: literal("recipe"),
13616
+ recipe: AutomationRecipeSchema
13617
+ }),
13618
+ object({
13619
+ kind: literal("composition"),
13620
+ composition: CompositionSchema
13621
+ })
13622
+ ]);
13623
+ /** The client-authored half of a composition block. No `code`, no placement (hub-only; Phase 7). */
13624
+ var CompositionBlockInputSchema = object({
13625
+ name: string().min(1).max(120),
13626
+ enabled: boolean(),
13627
+ composition: CompositionSchema
13628
+ });
13385
13629
  /** A stored block. */
13386
13630
  var CoreBlockSchema = CoreBlockInputSchema.extend({
13387
13631
  id: string(),
@@ -13397,8 +13641,38 @@ var CoreBlockSchema = CoreBlockInputSchema.extend({
13397
13641
  */
13398
13642
  lastError: string().optional(),
13399
13643
  /** Ms epoch of the last state change. */
13400
- lastChangedAt: number()
13644
+ lastChangedAt: number(),
13645
+ /** What the block is. Absent means `code` (D659). */
13646
+ source: CoreBlockSourceSchema.optional()
13647
+ });
13648
+ /** A stored composition block and what the composer says about it. */
13649
+ var CompositionViewSchema = object({
13650
+ block: CoreBlockSchema,
13651
+ state: discriminatedUnion("kind", [object({
13652
+ kind: literal("answered"),
13653
+ state: CompositionBlockStateSchema.nullable()
13654
+ }), object({
13655
+ kind: literal("unreachable"),
13656
+ error: string()
13657
+ })])
13658
+ });
13659
+ /**
13660
+ * A read of the stored compositions. `not-loaded` while the `core_blocks`
13661
+ * table has not been READ: an empty answer then would make "not yet known"
13662
+ * look like "none", and invite the operator to recreate what exists (D315).
13663
+ */
13664
+ var CompositionsNotLoadedSchema = object({
13665
+ state: literal("not-loaded"),
13666
+ reason: string()
13401
13667
  });
13668
+ var CompositionListReadSchema = discriminatedUnion("state", [object({
13669
+ state: literal("loaded"),
13670
+ views: array(CompositionViewSchema)
13671
+ }), CompositionsNotLoadedSchema]);
13672
+ var CompositionGetReadSchema = discriminatedUnion("state", [object({
13673
+ state: literal("loaded"),
13674
+ view: CompositionViewSchema.nullable()
13675
+ }), CompositionsNotLoadedSchema]);
13402
13676
  /** What a compile attempt produced. */
13403
13677
  var CoreBlockCompileResultSchema = object({
13404
13678
  ok: boolean(),
@@ -13436,7 +13710,72 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
13436
13710
  }), method(object({}), object({ libs: array(object({
13437
13711
  filePath: string(),
13438
13712
  content: string()
13439
- })) }), { auth: "admin" });
13713
+ })) }), { auth: "admin" }), method(object({ block: CompositionBlockInputSchema }), object({ block: CoreBlockSchema }), {
13714
+ kind: "mutation",
13715
+ auth: "admin",
13716
+ caller: "required"
13717
+ }), method(object({
13718
+ blockId: string(),
13719
+ expectedUpdatedAt: number(),
13720
+ block: CompositionBlockInputSchema.partial()
13721
+ }), object({ block: CoreBlockSchema }), {
13722
+ kind: "mutation",
13723
+ auth: "admin",
13724
+ caller: "required"
13725
+ }), method(object({ blockId: string() }), CompositionGetReadSchema, { auth: "admin" }), method(object({}), CompositionListReadSchema, { auth: "admin" }), method(object({
13726
+ composition: CompositionSchema,
13727
+ blockId: string().optional()
13728
+ }), CompositionValidationSchema, {
13729
+ kind: "mutation",
13730
+ auth: "admin",
13731
+ access: "view"
13732
+ });
13733
+ var ComposerBlockSchema = object({
13734
+ id: string().min(1),
13735
+ name: string().min(1).max(120),
13736
+ enabled: boolean(),
13737
+ updatedAt: number(),
13738
+ composition: CompositionSchema
13739
+ });
13740
+ /**
13741
+ * A stored composition row that no longer PARSES — a schema a release
13742
+ * tightened, a row written by a newer build. Sent by id so the composer keeps
13743
+ * its device as a placeholder and reports the block `failed` naming the parse
13744
+ * error. Leaving it out would read, twice, exactly like a delete (D49).
13745
+ */
13746
+ var ComposerUnreadableBlockSchema = object({
13747
+ id: string().min(1),
13748
+ /** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
13749
+ name: string().nullable(),
13750
+ /** The parse error, in the operator's words. */
13751
+ error: string()
13752
+ });
13753
+ method(object({
13754
+ /** The shared Blocks integration; null until `core-blocks` has reconciled it. */
13755
+ integrationId: string().nullable(),
13756
+ /** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
13757
+ storeLoaded: boolean(),
13758
+ blocks: array(ComposerBlockSchema),
13759
+ /** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
13760
+ restartBlockIds: array(string()),
13761
+ /** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
13762
+ unreadableBlocks: array(ComposerUnreadableBlockSchema)
13763
+ }), object({
13764
+ blocks: array(object({
13765
+ blockId: string(),
13766
+ status: CompositionRunStatusSchema,
13767
+ reason: string().optional()
13768
+ })),
13769
+ /**
13770
+ * False when the composer declared and withdrew NOTHING (store not loaded,
13771
+ * integration unknown, its own rows unread or read empty once). An empty
13772
+ * apply the caller owes is paid off only by one the composer acted on (D49).
13773
+ */
13774
+ acted: boolean()
13775
+ }), {
13776
+ kind: "mutation",
13777
+ auth: "admin"
13778
+ }), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
13440
13779
  /**
13441
13780
  * `custom-model-registry` — collection cap exposing operator-registered
13442
13781
  * custom detection models. Each provider (today: `addon-model-studio`)
@@ -19480,8 +19819,8 @@ var NcTestResultSchema = object({
19480
19819
  className: string().optional(),
19481
19820
  label: string().optional()
19482
19821
  });
19483
- /** The rule kinds, as data. `NcRuleKind` in `notification/rule-kinds.ts` is the
19484
- * same union; the template-vars spec pins the two together. `mixed` is DERIVED
19822
+ /** The rule kinds, as data. `NcRuleKind` in `notification/rule-kinds.ts` is
19823
+ * `z.infer` of this schema — one shape, no twin. `mixed` is DERIVED
19485
19824
  * (a stored system rule whose kinds span families, D637) and never authored. */
19486
19825
  var NcRuleKindSchema = _enum([
19487
19826
  "detection",
@@ -22876,7 +23215,15 @@ var RebuildObjectEmbeddingsInput = object({
22876
23215
  * force is logged at start and finish so a deliberately slow pass reads
22877
23216
  * differently from a stalled one.
22878
23217
  */
22879
- pacingMs: number().int().nonnegative().optional()
23218
+ pacingMs: number().int().nonnegative().optional(),
23219
+ /**
23220
+ * Re-embed ONLY the tracks whose vector is ALREADY in the pinned model's
23221
+ * space (D664) — the in-space skip inverted. It exists to redo vectors
23222
+ * written from the wrong box, which a normal pass would skip as done
23223
+ * forever. Requires `maxTracks`: a forced pass without a bound is refused
23224
+ * (`force-requires-max-tracks`).
23225
+ */
23226
+ force: boolean().optional()
22880
23227
  });
22881
23228
  /**
22882
23229
  * Result of emptying the CLIP index.
@@ -22912,6 +23259,7 @@ var WipeObjectEmbeddingsResultSchema = object({
22912
23259
  * - `reads-disagree` — the two reads named different choices.
22913
23260
  * - `not-a-clip-model` — the CONFIRMED id has no CLIP metadata, so there is no
22914
23261
  * index to fill and no dimension to check against (D649).
23262
+ * - `force-requires-max-tracks` — `force: true` with no `maxTracks` (D664).
22915
23263
  */
22916
23264
  var RebuildObjectEmbeddingsRefusalSchema = _enum([
22917
23265
  "stores-unavailable",
@@ -22919,7 +23267,8 @@ var RebuildObjectEmbeddingsRefusalSchema = _enum([
22919
23267
  "method-unavailable",
22920
23268
  "read-failed",
22921
23269
  "reads-disagree",
22922
- "not-a-clip-model"
23270
+ "not-a-clip-model",
23271
+ "force-requires-max-tracks"
22923
23272
  ]);
22924
23273
  /**
22925
23274
  * Acknowledgement that a rebuild STARTED.
@@ -22944,11 +23293,32 @@ var RebuildStatusSchema = object({
22944
23293
  running: boolean(),
22945
23294
  scanned: number(),
22946
23295
  rebuilt: number(),
22947
- /** Tracks whose key frame is gone — nothing to re-embed from. */
23296
+ /** Tracks whose key frame is gone — nothing to re-embed from. Pixels ONLY:
23297
+ * `missingEvent` is its own field since D664, never summed in. */
22948
23298
  missingKeyFrame: number(),
22949
- /** Tracks with no usable detection box. */
23299
+ /** Tracks with no object event at all (D664). */
23300
+ missingEvent: number(),
23301
+ /** Tracks with no box measured on the pixels to cut — see `boxSource.refused`. */
22950
23302
  missingBbox: number(),
22951
23303
  /**
23304
+ * Which rule placed each judged track's box (D664): the key frame row's own
23305
+ * `subjectBox`, `track.positions` at exactly its instant (older key frames),
23306
+ * the event box (a key frame recovered from the recording, at the event's
23307
+ * instant), or `refused` by name — the reasons are in the tagged log lines.
23308
+ */
23309
+ boxSource: object({
23310
+ subjectBox: number(),
23311
+ positions: number(),
23312
+ event: number(),
23313
+ refused: number()
23314
+ }),
23315
+ /** Tracks skipped because their vector is already in the pinned space. */
23316
+ alreadyInSpace: number(),
23317
+ /** Whether the current / last pass was a `force` pass; `null` before any (D664). */
23318
+ force: boolean().nullable(),
23319
+ /** In-space tracks a `force` pass selected for re-embedding. */
23320
+ forcedInSpace: number(),
23321
+ /**
22952
23322
  * Tracks an executing node REFUSED rather than broke on — an unreadable key
22953
23323
  * frame, a step that threw. Separate from `failed` because the remedy is
22954
23324
  * different, and because a whole camera silently contributing zero vectors
@@ -24113,7 +24483,8 @@ var PipelineModelOptionSchema = object({
24113
24483
  })),
24114
24484
  group: ModelVariantGroupSchema.optional(),
24115
24485
  legacy: boolean().optional(),
24116
- provider: ModelProviderIdSchema.optional()
24486
+ provider: ModelProviderIdSchema.optional(),
24487
+ defaultConfidence: number().optional()
24117
24488
  });
24118
24489
  var ConfigFieldBridge = custom();
24119
24490
  var PipelineAddonSchemaSchema = object({
@@ -40027,6 +40398,38 @@ var zoneRulesCapability = {
40027
40398
  */
40028
40399
  durability: "restored"
40029
40400
  };
40401
+ var NUMBER = {
40402
+ kind: "fixed",
40403
+ result: ["number"]
40404
+ };
40405
+ var BOOLEAN = {
40406
+ kind: "fixed",
40407
+ result: ["boolean"]
40408
+ };
40409
+ Object.freeze({
40410
+ min: NUMBER,
40411
+ max: NUMBER,
40412
+ abs: NUMBER,
40413
+ floor: NUMBER,
40414
+ ceil: NUMBER,
40415
+ sqrt: NUMBER,
40416
+ round: NUMBER,
40417
+ pow: NUMBER,
40418
+ clamp: NUMBER,
40419
+ avg: NUMBER,
40420
+ sum: NUMBER,
40421
+ age: NUMBER,
40422
+ convert: NUMBER,
40423
+ coalesce: { kind: "coalesce" },
40424
+ any: BOOLEAN,
40425
+ all: BOOLEAN,
40426
+ within: BOOLEAN,
40427
+ latest: {
40428
+ kind: "fixed",
40429
+ result: ["number", "null"]
40430
+ }
40431
+ });
40432
+ `${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
40030
40433
  /**
40031
40434
  * Most specific first. Extending this list is how a new device kind becomes
40032
40435
  * gateable; nothing else needs to change.
@@ -43428,6 +43831,18 @@ Object.freeze({
43428
43831
  addonId: null,
43429
43832
  access: "create"
43430
43833
  },
43834
+ "composer.applyBlocks": {
43835
+ capName: "composer",
43836
+ capScope: "system",
43837
+ addonId: null,
43838
+ access: "create"
43839
+ },
43840
+ "composer.getStates": {
43841
+ capName: "composer",
43842
+ capScope: "system",
43843
+ addonId: null,
43844
+ access: "view"
43845
+ },
43431
43846
  "connectionTest.describeTest": {
43432
43847
  capName: "connection-test",
43433
43848
  capScope: "system",
@@ -43488,6 +43903,12 @@ Object.freeze({
43488
43903
  addonId: null,
43489
43904
  access: "create"
43490
43905
  },
43906
+ "coreBlocks.createComposition": {
43907
+ capName: "core-blocks",
43908
+ capScope: "system",
43909
+ addonId: null,
43910
+ access: "create"
43911
+ },
43491
43912
  "coreBlocks.delete": {
43492
43913
  capName: "core-blocks",
43493
43914
  capScope: "system",
@@ -43500,6 +43921,12 @@ Object.freeze({
43500
43921
  addonId: null,
43501
43922
  access: "view"
43502
43923
  },
43924
+ "coreBlocks.getComposition": {
43925
+ capName: "core-blocks",
43926
+ capScope: "system",
43927
+ addonId: null,
43928
+ access: "view"
43929
+ },
43503
43930
  "coreBlocks.getTypeDefs": {
43504
43931
  capName: "core-blocks",
43505
43932
  capScope: "system",
@@ -43512,6 +43939,12 @@ Object.freeze({
43512
43939
  addonId: null,
43513
43940
  access: "view"
43514
43941
  },
43942
+ "coreBlocks.listCompositions": {
43943
+ capName: "core-blocks",
43944
+ capScope: "system",
43945
+ addonId: null,
43946
+ access: "view"
43947
+ },
43515
43948
  "coreBlocks.restart": {
43516
43949
  capName: "core-blocks",
43517
43950
  capScope: "system",
@@ -43530,6 +43963,18 @@ Object.freeze({
43530
43963
  addonId: null,
43531
43964
  access: "create"
43532
43965
  },
43966
+ "coreBlocks.updateComposition": {
43967
+ capName: "core-blocks",
43968
+ capScope: "system",
43969
+ addonId: null,
43970
+ access: "create"
43971
+ },
43972
+ "coreBlocks.validateComposition": {
43973
+ capName: "core-blocks",
43974
+ capScope: "system",
43975
+ addonId: null,
43976
+ access: "view"
43977
+ },
43533
43978
  "cover.close": {
43534
43979
  capName: "cover",
43535
43980
  capScope: "device",