@camstack/addon-pipeline 1.2.299 → 1.2.301

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 (34) hide show
  1. package/dist/audio-analyzer/index.js +2 -2
  2. package/dist/audio-analyzer/index.mjs +2 -2
  3. package/dist/{default-detection-model-DMcHBVmE.mjs → default-detection-model-JDKeiJPf.mjs} +15 -8
  4. package/dist/{default-detection-model-H_NzHI_P.js → default-detection-model-P7IIrP0a.js} +20 -7
  5. package/dist/detection-pipeline/index.js +15 -17
  6. package/dist/detection-pipeline/index.mjs +15 -17
  7. package/dist/{dist-BzDPLvQ6.js → dist-BUs7H-fe.js} +437 -23
  8. package/dist/{dist-DNlqf8dr.mjs → dist-DvzAabca.mjs} +437 -23
  9. package/dist/motion-wasm/index.js +1 -1
  10. package/dist/motion-wasm/index.mjs +1 -1
  11. package/dist/{node-g2ZRFDvc.mjs → node-DnP_6GBZ.mjs} +1 -1
  12. package/dist/{node-B-cB_Hdy.js → node-DxVMyys-.js} +1 -1
  13. package/dist/pipeline-runner/index.js +129 -5
  14. package/dist/pipeline-runner/index.mjs +129 -5
  15. package/dist/{process-memory-kKYoJ9hl.mjs → process-memory-BMr61qT1.mjs} +1 -1
  16. package/dist/{process-memory-Bo3-laZ_.js → process-memory-DmYzYip-.js} +1 -1
  17. package/dist/recorder/index.js +15 -2
  18. package/dist/recorder/index.mjs +15 -2
  19. package/dist/{segment-demux-js-DrDj8kP6.js → segment-demux-js-DANvUJgH.js} +1 -1
  20. package/dist/{segment-demux-js-QK7qFMSj.mjs → segment-demux-js-DBqdboBI.mjs} +1 -1
  21. package/dist/stream-broker/_stub.js +2 -2
  22. package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-Da_bbYQp.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-D0etdxl0.mjs} +2 -2
  23. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-vnc0r4NV.mjs +26 -0
  24. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-CUFWg1jj.mjs +26 -0
  25. package/dist/stream-broker/demux-worker-child.js +1 -1
  26. package/dist/stream-broker/demux-worker-child.mjs +1 -1
  27. package/dist/stream-broker/{hostInit-aFrOa5WT.mjs → hostInit-TY9BRVDy.mjs} +2 -2
  28. package/dist/stream-broker/index.js +3 -3
  29. package/dist/stream-broker/index.mjs +3 -3
  30. package/dist/stream-broker/remoteEntry.js +1 -1
  31. package/package.json +1 -1
  32. package/python/postprocessors/testdata/ssdlite_mobiledet_outputs.json +289 -1
  33. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CxT9ry2j.mjs +0 -26
  34. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-Dti8Ex88.mjs +0 -26
@@ -11569,6 +11569,16 @@ var ModelCatalogEntrySchema = object({
11569
11569
  */
11570
11570
  postprocessor: custom().optional(),
11571
11571
  /**
11572
+ * Per-MODEL default confidence floor. Absent ⇒ the step's
11573
+ * `StepDefinition.defaultConfidence` applies. A score is a property of one
11574
+ * model's output scale, not of the step slot it sits in: YuNet's
11575
+ * `sqrt(cls·obj)` is not SCRFD's score, and inheriting SCRFD's 0.5 filled the
11576
+ * face gallery with wheels and hands (D662, amends D645). An operator's
11577
+ * explicit value still wins over it. Resolved in ONE place —
11578
+ * `addon-pipeline/.../registry/effective-confidence.ts`.
11579
+ */
11580
+ defaultConfidence: number().min(0).max(1).optional(),
11581
+ /**
11572
11582
  * When true, the executor produces a landmark-aligned crop (similarity warp
11573
11583
  * onto the canonical template) before this step runs, instead of a plain
11574
11584
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -11701,23 +11711,6 @@ var ExpressionEvalError = class extends Error {
11701
11711
  this.name = "ExpressionEvalError";
11702
11712
  }
11703
11713
  };
11704
- /**
11705
- * Frozen, null-prototype builtin function table for the expression engine
11706
- * (spec §4 rule 4). The table is the SOLE surface of callable functions: the
11707
- * parser rejects any callee not in it, and the evaluator gates each call on an
11708
- * own-property check against it.
11709
- *
11710
- * Because the object has a NULL prototype AND is `Object.freeze`d:
11711
- * - it cannot be polluted (no `__proto__` / `constructor` write reaches it);
11712
- * - a lookup for `toString` / `hasOwnProperty` / `constructor` finds NOTHING
11713
- * (there is no `Object.prototype` in the chain), so those names are not
11714
- * callable — they are simply "unknown function" at parse time.
11715
- *
11716
- * Every numeric argument is validated as a finite number and every numeric
11717
- * RESULT is re-checked finite, so `/0`, `sqrt(-1)` (→ NaN) and overflow
11718
- * (`pow(10,400)` → Infinity) all raise `ExpressionEvalError` and fail the link
11719
- * closed rather than emitting a garbage value.
11720
- */
11721
11714
  function asFiniteNumber(value, name, index) {
11722
11715
  if (typeof value !== "number" || !Number.isFinite(value)) throw new ExpressionEvalError(`${name}: argument ${index + 1} must be a finite number`);
11723
11716
  return value;
@@ -11733,6 +11726,10 @@ function finiteResult(value, name) {
11733
11726
  function allFiniteNumbers(args, name) {
11734
11727
  return args.map((a, idx) => asFiniteNumber(a, name, idx));
11735
11728
  }
11729
+ function asBoolean$1(value, name, index) {
11730
+ if (typeof value !== "boolean") throw new ExpressionEvalError(`${name}: argument ${index + 1} must be a boolean`);
11731
+ return value;
11732
+ }
11736
11733
  var INF = Number.POSITIVE_INFINITY;
11737
11734
  var table = {
11738
11735
  min: {
@@ -11833,6 +11830,40 @@ var table = {
11833
11830
  if (from === to) return x;
11834
11831
  throw new ExpressionEvalError("convert: unit conversion table not installed");
11835
11832
  }
11833
+ },
11834
+ any: {
11835
+ minArgs: 1,
11836
+ maxArgs: INF,
11837
+ apply: (args) => args.map((a, i) => asBoolean$1(a, "any", i)).some((b) => b)
11838
+ },
11839
+ all: {
11840
+ minArgs: 1,
11841
+ maxArgs: INF,
11842
+ apply: (args) => args.map((a, i) => asBoolean$1(a, "all", i)).every((b) => b)
11843
+ },
11844
+ within: {
11845
+ minArgs: 2,
11846
+ maxArgs: 2,
11847
+ apply: (args, hooks) => {
11848
+ const windowMs = asFiniteNumber(args[1], "within", 1);
11849
+ if (windowMs < 0) throw new ExpressionEvalError("within: the window must not be negative");
11850
+ const at = args[0];
11851
+ if (at === null) return false;
11852
+ const ts = asFiniteNumber(at, "within", 0);
11853
+ const now = hooks.now;
11854
+ if (now === void 0 || !Number.isFinite(now)) throw new ExpressionEvalError("within: no clock was supplied to this evaluation");
11855
+ const inside = now - ts <= windowMs;
11856
+ if (inside) hooks.noteDeadline?.(ts + windowMs + 1);
11857
+ return inside;
11858
+ }
11859
+ },
11860
+ latest: {
11861
+ minArgs: 1,
11862
+ maxArgs: INF,
11863
+ apply: (args) => {
11864
+ const present = args.flatMap((a, i) => a === null ? [] : [asFiniteNumber(a, "latest", i)]);
11865
+ return present.length === 0 ? null : finiteResult(Math.max(...present), "latest");
11866
+ }
11836
11867
  }
11837
11868
  };
11838
11869
  Object.freeze(Object.assign(Object.create(null), table));
@@ -12447,7 +12478,7 @@ var AutomationActionSchema = discriminatedUnion("kind", [
12447
12478
  code: string().min(1).max(2e4)
12448
12479
  })
12449
12480
  ]);
12450
- object({
12481
+ var AutomationRecipeSchema = object({
12451
12482
  triggers: array(AutomationTriggerSchema),
12452
12483
  conditions: AutomationConditionSchema.optional(),
12453
12484
  actions: array(AutomationActionSchema)
@@ -14970,6 +15001,195 @@ var cameraStreamsCapability = {
14970
15001
  */
14971
15002
  durability: "session"
14972
15003
  };
15004
+ /** A composed device's stableId is this prefix plus the block id. */
15005
+ var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
15006
+ /** Longest snippet a `code` source may carry (slice 4). */
15007
+ var MAX_COMPOSITION_CODE_LENGTH = 2e4;
15008
+ var CompositionSourceRefSchema = object({
15009
+ /** The owning addon; `stableId` is unique only within it. */
15010
+ addonId: string().min(1),
15011
+ stableId: string().min(1)
15012
+ });
15013
+ /** One field of one capability of one source device. */
15014
+ var CompositionFieldReadSchema = object({
15015
+ source: CompositionSourceRefSchema,
15016
+ cap: string().min(1),
15017
+ /** Dotted path into the source cap's runtime-state slice. */
15018
+ fieldPath: string().min(1)
15019
+ });
15020
+ /** `from`: copy one source field verbatim. It is also an expression's `from` binding. */
15021
+ var CompositionFromSourceSchema = CompositionFieldReadSchema.extend({ kind: literal("from") });
15022
+ var CompositionBindingSchema = discriminatedUnion("kind", [CompositionFromSourceSchema, object({
15023
+ kind: literal("literal"),
15024
+ value: union([
15025
+ string(),
15026
+ number(),
15027
+ boolean(),
15028
+ _null()
15029
+ ])
15030
+ })]);
15031
+ /**
15032
+ * `expression`: a formula over named bindings, in the salvaged expression
15033
+ * engine. Validated at parse by the SAME function every other consumer runs,
15034
+ * so the editor and the store cannot disagree.
15035
+ */
15036
+ var CompositionExpressionSourceSchema = object({
15037
+ kind: literal("expression"),
15038
+ expr: string().min(1).max(MAX_EXPRESSION_SOURCE_LENGTH),
15039
+ bindings: record(string().regex(EXPRESSION_IDENTIFIER_RE), CompositionBindingSchema)
15040
+ }).superRefine((src, ctx) => {
15041
+ const err = validateExpressionSource(src);
15042
+ if (err !== null) ctx.addIssue({
15043
+ code: "custom",
15044
+ message: err,
15045
+ path: ["expr"]
15046
+ });
15047
+ });
15048
+ /** `code`: RESERVED for slice 4 (own runner, one-way eject). */
15049
+ var CompositionCodeSourceSchema = object({
15050
+ kind: literal("code"),
15051
+ code: string().min(1).max(MAX_COMPOSITION_CODE_LENGTH)
15052
+ });
15053
+ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
15054
+ CompositionFromSourceSchema,
15055
+ CompositionExpressionSourceSchema,
15056
+ CompositionCodeSourceSchema
15057
+ ]);
15058
+ var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
15059
+ kind: literal("forward"),
15060
+ source: CompositionSourceRefSchema,
15061
+ cap: string().min(1),
15062
+ method: string().min(1)
15063
+ }), CompositionCodeSourceSchema]);
15064
+ var CompositionFeatureSchema = discriminatedUnion("kind", [object({
15065
+ kind: literal("fields"),
15066
+ cap: string().min(1),
15067
+ fields: record(string().min(1), CompositionFieldSourceSchema).refine((fields) => Object.keys(fields).length <= 32, { message: `at most 32 fields per capability` }),
15068
+ /** RESERVED for slice 3; refused by the validator when non-empty. */
15069
+ commands: record(string().min(1), CompositionCommandTargetSchema).optional()
15070
+ }), object({
15071
+ kind: literal("passthrough"),
15072
+ cap: string().min(1),
15073
+ source: CompositionSourceRefSchema
15074
+ })]);
15075
+ var CompositionSchema = object({
15076
+ target: discriminatedUnion("kind", [object({
15077
+ kind: literal("new"),
15078
+ type: _enum(DeviceType),
15079
+ role: _enum(DeviceRole).optional()
15080
+ }), object({
15081
+ kind: literal("existing"),
15082
+ device: CompositionSourceRefSchema
15083
+ })]),
15084
+ features: array(CompositionFeatureSchema).min(1).max(16)
15085
+ }).superRefine((composition, ctx) => {
15086
+ const seen = /* @__PURE__ */ new Set();
15087
+ composition.features.forEach((feature, index) => {
15088
+ if (seen.has(feature.cap)) ctx.addIssue({
15089
+ code: "custom",
15090
+ message: `capability \`${feature.cap}\` is composed twice — one feature per capability`,
15091
+ path: [
15092
+ "features",
15093
+ index,
15094
+ "cap"
15095
+ ]
15096
+ });
15097
+ seen.add(feature.cap);
15098
+ });
15099
+ });
15100
+ /** One refusal, named (D391). `path` points into the composition, e.g. `features[0].fields.celsius`. */
15101
+ var CompositionProblemSchema = object({
15102
+ code: _enum([
15103
+ "reserved-variant",
15104
+ "unknown-capability",
15105
+ "not-composable",
15106
+ "wrong-device-type",
15107
+ "has-commands",
15108
+ "unknown-field",
15109
+ "nested-field",
15110
+ "missing-field",
15111
+ "kind-mismatch",
15112
+ "may-be-null",
15113
+ "source-missing",
15114
+ "source-unreadable",
15115
+ "source-capability-missing",
15116
+ "source-field-unknown",
15117
+ "expression-invalid",
15118
+ "cycle",
15119
+ "duplicate-target"
15120
+ ]),
15121
+ path: string(),
15122
+ message: string()
15123
+ });
15124
+ var CompositionFieldKindSchema = _enum([
15125
+ "string",
15126
+ "number",
15127
+ "boolean",
15128
+ "enum"
15129
+ ]);
15130
+ /** How a field says "unavailable": `null` when its schema allows it, else the device goes offline (D393). */
15131
+ var CompositionUnavailableModeSchema = _enum(["null", "offline"]);
15132
+ /**
15133
+ * `derived` reads a source · `clock` reads only `now`, recomputed when a sibling
15134
+ * field of its cap changes value · `constant` reads nothing, computed once.
15135
+ */
15136
+ var CompositionFieldRoleSchema = _enum([
15137
+ "derived",
15138
+ "clock",
15139
+ "constant"
15140
+ ]);
15141
+ var CompositionFieldPlanSchema = object({
15142
+ cap: string(),
15143
+ path: string(),
15144
+ /** Index into `composition.features` this field's capability came from —
15145
+ * lets a source/cycle problem name its path as `features[N].fields.<path>`
15146
+ * (the same convention `planComposition`'s own problems already use). */
15147
+ featureIndex: number().int().nonnegative(),
15148
+ kind: CompositionFieldKindSchema,
15149
+ nullable: boolean(),
15150
+ required: boolean(),
15151
+ unavailable: CompositionUnavailableModeSchema,
15152
+ role: CompositionFieldRoleSchema,
15153
+ source: CompositionFieldSourceSchema,
15154
+ reads: array(CompositionFieldReadSchema)
15155
+ });
15156
+ var CompositionValidationSchema = object({
15157
+ ok: boolean(),
15158
+ problems: array(CompositionProblemSchema),
15159
+ fields: array(CompositionFieldPlanSchema)
15160
+ });
15161
+ /** Mirrors `CoreBlockStatus`, pinned by `core-blocks-source.spec.ts` (Task 11). */
15162
+ var CompositionRunStatusSchema = _enum([
15163
+ "stopped",
15164
+ "starting",
15165
+ "running",
15166
+ "failed"
15167
+ ]);
15168
+ var CompositionFieldStateKindSchema = _enum([
15169
+ "fresh",
15170
+ "stale",
15171
+ "unavailable"
15172
+ ]);
15173
+ var CompositionFieldStateSchema = object({
15174
+ cap: string(),
15175
+ path: string(),
15176
+ state: CompositionFieldStateKindSchema,
15177
+ /** `null` whenever `state === 'unavailable'`; never a plausible stand-in (D393). */
15178
+ value: union([
15179
+ string(),
15180
+ number(),
15181
+ boolean(),
15182
+ _null()
15183
+ ]),
15184
+ reason: string().optional()
15185
+ });
15186
+ var CompositionBlockStateSchema = object({
15187
+ blockId: string(),
15188
+ deviceId: number().nullable(),
15189
+ status: CompositionRunStatusSchema,
15190
+ reason: string().optional(),
15191
+ fields: array(CompositionFieldStateSchema)
15192
+ });
14973
15193
  /** Where a block runs. The operator chooses — a block driving a device on an
14974
15194
  * agent is the reason placement is not fixed to the hub. */
14975
15195
  var CoreBlockPlacementSchema = union([literal("hub"), string().min(1)]);
@@ -14996,6 +15216,30 @@ var CoreBlockInputSchema = object({
14996
15216
  */
14997
15217
  integrationId: string().optional()
14998
15218
  });
15219
+ /**
15220
+ * What a block IS (D659). Absent means `code` — every row stored before this
15221
+ * union keeps working unchanged.
15222
+ * - `code`: the TypeScript in `code`, compiled and run in its own runner;
15223
+ * - `recipe`: RESERVED (automations), stored shape only; refused at run by name;
15224
+ * - `composition`: declarative, run by the shared `composer`; `code` is `''`.
15225
+ */
15226
+ var CoreBlockSourceSchema = discriminatedUnion("kind", [
15227
+ object({ kind: literal("code") }),
15228
+ object({
15229
+ kind: literal("recipe"),
15230
+ recipe: AutomationRecipeSchema
15231
+ }),
15232
+ object({
15233
+ kind: literal("composition"),
15234
+ composition: CompositionSchema
15235
+ })
15236
+ ]);
15237
+ /** The client-authored half of a composition block. No `code`, no placement (hub-only; Phase 7). */
15238
+ var CompositionBlockInputSchema = object({
15239
+ name: string().min(1).max(120),
15240
+ enabled: boolean(),
15241
+ composition: CompositionSchema
15242
+ });
14999
15243
  /** A stored block. */
15000
15244
  var CoreBlockSchema = CoreBlockInputSchema.extend({
15001
15245
  id: string(),
@@ -15011,8 +15255,38 @@ var CoreBlockSchema = CoreBlockInputSchema.extend({
15011
15255
  */
15012
15256
  lastError: string().optional(),
15013
15257
  /** Ms epoch of the last state change. */
15014
- lastChangedAt: number()
15258
+ lastChangedAt: number(),
15259
+ /** What the block is. Absent means `code` (D659). */
15260
+ source: CoreBlockSourceSchema.optional()
15261
+ });
15262
+ /** A stored composition block and what the composer says about it. */
15263
+ var CompositionViewSchema = object({
15264
+ block: CoreBlockSchema,
15265
+ state: discriminatedUnion("kind", [object({
15266
+ kind: literal("answered"),
15267
+ state: CompositionBlockStateSchema.nullable()
15268
+ }), object({
15269
+ kind: literal("unreachable"),
15270
+ error: string()
15271
+ })])
15015
15272
  });
15273
+ /**
15274
+ * A read of the stored compositions. `not-loaded` while the `core_blocks`
15275
+ * table has not been READ: an empty answer then would make "not yet known"
15276
+ * look like "none", and invite the operator to recreate what exists (D315).
15277
+ */
15278
+ var CompositionsNotLoadedSchema = object({
15279
+ state: literal("not-loaded"),
15280
+ reason: string()
15281
+ });
15282
+ var CompositionListReadSchema = discriminatedUnion("state", [object({
15283
+ state: literal("loaded"),
15284
+ views: array(CompositionViewSchema)
15285
+ }), CompositionsNotLoadedSchema]);
15286
+ var CompositionGetReadSchema = discriminatedUnion("state", [object({
15287
+ state: literal("loaded"),
15288
+ view: CompositionViewSchema.nullable()
15289
+ }), CompositionsNotLoadedSchema]);
15016
15290
  /** What a compile attempt produced. */
15017
15291
  var CoreBlockCompileResultSchema = object({
15018
15292
  ok: boolean(),
@@ -15050,7 +15324,72 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
15050
15324
  }), method(object({}), object({ libs: array(object({
15051
15325
  filePath: string(),
15052
15326
  content: string()
15053
- })) }), { auth: "admin" });
15327
+ })) }), { auth: "admin" }), method(object({ block: CompositionBlockInputSchema }), object({ block: CoreBlockSchema }), {
15328
+ kind: "mutation",
15329
+ auth: "admin",
15330
+ caller: "required"
15331
+ }), method(object({
15332
+ blockId: string(),
15333
+ expectedUpdatedAt: number(),
15334
+ block: CompositionBlockInputSchema.partial()
15335
+ }), object({ block: CoreBlockSchema }), {
15336
+ kind: "mutation",
15337
+ auth: "admin",
15338
+ caller: "required"
15339
+ }), method(object({ blockId: string() }), CompositionGetReadSchema, { auth: "admin" }), method(object({}), CompositionListReadSchema, { auth: "admin" }), method(object({
15340
+ composition: CompositionSchema,
15341
+ blockId: string().optional()
15342
+ }), CompositionValidationSchema, {
15343
+ kind: "mutation",
15344
+ auth: "admin",
15345
+ access: "view"
15346
+ });
15347
+ var ComposerBlockSchema = object({
15348
+ id: string().min(1),
15349
+ name: string().min(1).max(120),
15350
+ enabled: boolean(),
15351
+ updatedAt: number(),
15352
+ composition: CompositionSchema
15353
+ });
15354
+ /**
15355
+ * A stored composition row that no longer PARSES — a schema a release
15356
+ * tightened, a row written by a newer build. Sent by id so the composer keeps
15357
+ * its device as a placeholder and reports the block `failed` naming the parse
15358
+ * error. Leaving it out would read, twice, exactly like a delete (D49).
15359
+ */
15360
+ var ComposerUnreadableBlockSchema = object({
15361
+ id: string().min(1),
15362
+ /** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
15363
+ name: string().nullable(),
15364
+ /** The parse error, in the operator's words. */
15365
+ error: string()
15366
+ });
15367
+ method(object({
15368
+ /** The shared Blocks integration; null until `core-blocks` has reconciled it. */
15369
+ integrationId: string().nullable(),
15370
+ /** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
15371
+ storeLoaded: boolean(),
15372
+ blocks: array(ComposerBlockSchema),
15373
+ /** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
15374
+ restartBlockIds: array(string()),
15375
+ /** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
15376
+ unreadableBlocks: array(ComposerUnreadableBlockSchema)
15377
+ }), object({
15378
+ blocks: array(object({
15379
+ blockId: string(),
15380
+ status: CompositionRunStatusSchema,
15381
+ reason: string().optional()
15382
+ })),
15383
+ /**
15384
+ * False when the composer declared and withdrew NOTHING (store not loaded,
15385
+ * integration unknown, its own rows unread or read empty once). An empty
15386
+ * apply the caller owes is paid off only by one the composer acted on (D49).
15387
+ */
15388
+ acted: boolean()
15389
+ }), {
15390
+ kind: "mutation",
15391
+ auth: "admin"
15392
+ }), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
15054
15393
  /**
15055
15394
  * `custom-model-registry` — collection cap exposing operator-registered
15056
15395
  * custom detection models. Each provider (today: `addon-model-studio`)
@@ -21223,8 +21562,8 @@ var NcTestResultSchema = object({
21223
21562
  className: string().optional(),
21224
21563
  label: string().optional()
21225
21564
  });
21226
- /** The rule kinds, as data. `NcRuleKind` in `notification/rule-kinds.ts` is the
21227
- * same union; the template-vars spec pins the two together. `mixed` is DERIVED
21565
+ /** The rule kinds, as data. `NcRuleKind` in `notification/rule-kinds.ts` is
21566
+ * `z.infer` of this schema — one shape, no twin. `mixed` is DERIVED
21228
21567
  * (a stored system rule whose kinds span families, D637) and never authored. */
21229
21568
  var NcRuleKindSchema = _enum([
21230
21569
  "detection",
@@ -24466,7 +24805,8 @@ var PipelineModelOptionSchema = object({
24466
24805
  })),
24467
24806
  group: ModelVariantGroupSchema.optional(),
24468
24807
  legacy: boolean().optional(),
24469
- provider: ModelProviderIdSchema.optional()
24808
+ provider: ModelProviderIdSchema.optional(),
24809
+ defaultConfidence: number().optional()
24470
24810
  });
24471
24811
  var ConfigFieldBridge = custom();
24472
24812
  var PipelineAddonSchemaSchema = object({
@@ -38838,6 +39178,38 @@ DeviceType.Camera, method(object({
38838
39178
  detection: array(ZoneRuleSchema).readonly(),
38839
39179
  package: array(ZoneRuleSchema).readonly()
38840
39180
  });
39181
+ var NUMBER = {
39182
+ kind: "fixed",
39183
+ result: ["number"]
39184
+ };
39185
+ var BOOLEAN = {
39186
+ kind: "fixed",
39187
+ result: ["boolean"]
39188
+ };
39189
+ Object.freeze({
39190
+ min: NUMBER,
39191
+ max: NUMBER,
39192
+ abs: NUMBER,
39193
+ floor: NUMBER,
39194
+ ceil: NUMBER,
39195
+ sqrt: NUMBER,
39196
+ round: NUMBER,
39197
+ pow: NUMBER,
39198
+ clamp: NUMBER,
39199
+ avg: NUMBER,
39200
+ sum: NUMBER,
39201
+ age: NUMBER,
39202
+ convert: NUMBER,
39203
+ coalesce: { kind: "coalesce" },
39204
+ any: BOOLEAN,
39205
+ all: BOOLEAN,
39206
+ within: BOOLEAN,
39207
+ latest: {
39208
+ kind: "fixed",
39209
+ result: ["number", "null"]
39210
+ }
39211
+ });
39212
+ `${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
38841
39213
  var HF_BASE_URL = `https://huggingface.co/camstack/camstack-models/resolve/main`;
38842
39214
  /**
38843
39215
  * Accessory device helpers — shared across drivers.
@@ -41165,6 +41537,18 @@ Object.freeze({
41165
41537
  addonId: null,
41166
41538
  access: "create"
41167
41539
  },
41540
+ "composer.applyBlocks": {
41541
+ capName: "composer",
41542
+ capScope: "system",
41543
+ addonId: null,
41544
+ access: "create"
41545
+ },
41546
+ "composer.getStates": {
41547
+ capName: "composer",
41548
+ capScope: "system",
41549
+ addonId: null,
41550
+ access: "view"
41551
+ },
41168
41552
  "connectionTest.describeTest": {
41169
41553
  capName: "connection-test",
41170
41554
  capScope: "system",
@@ -41225,6 +41609,12 @@ Object.freeze({
41225
41609
  addonId: null,
41226
41610
  access: "create"
41227
41611
  },
41612
+ "coreBlocks.createComposition": {
41613
+ capName: "core-blocks",
41614
+ capScope: "system",
41615
+ addonId: null,
41616
+ access: "create"
41617
+ },
41228
41618
  "coreBlocks.delete": {
41229
41619
  capName: "core-blocks",
41230
41620
  capScope: "system",
@@ -41237,6 +41627,12 @@ Object.freeze({
41237
41627
  addonId: null,
41238
41628
  access: "view"
41239
41629
  },
41630
+ "coreBlocks.getComposition": {
41631
+ capName: "core-blocks",
41632
+ capScope: "system",
41633
+ addonId: null,
41634
+ access: "view"
41635
+ },
41240
41636
  "coreBlocks.getTypeDefs": {
41241
41637
  capName: "core-blocks",
41242
41638
  capScope: "system",
@@ -41249,6 +41645,12 @@ Object.freeze({
41249
41645
  addonId: null,
41250
41646
  access: "view"
41251
41647
  },
41648
+ "coreBlocks.listCompositions": {
41649
+ capName: "core-blocks",
41650
+ capScope: "system",
41651
+ addonId: null,
41652
+ access: "view"
41653
+ },
41252
41654
  "coreBlocks.restart": {
41253
41655
  capName: "core-blocks",
41254
41656
  capScope: "system",
@@ -41267,6 +41669,18 @@ Object.freeze({
41267
41669
  addonId: null,
41268
41670
  access: "create"
41269
41671
  },
41672
+ "coreBlocks.updateComposition": {
41673
+ capName: "core-blocks",
41674
+ capScope: "system",
41675
+ addonId: null,
41676
+ access: "create"
41677
+ },
41678
+ "coreBlocks.validateComposition": {
41679
+ capName: "core-blocks",
41680
+ capScope: "system",
41681
+ addonId: null,
41682
+ access: "view"
41683
+ },
41270
41684
  "cover.close": {
41271
41685
  capName: "cover",
41272
41686
  capScope: "device",
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_dist = require("../dist-BzDPLvQ6.js");
5
+ const require_dist = require("../dist-BUs7H-fe.js");
6
6
  const require_lazy_sharp = require("../lazy-sharp-BuwKlQLR.js");
7
7
  let node_fs = require("node:fs");
8
8
  let node_path = require("node:path");
@@ -1,4 +1,4 @@
1
- import { Et as motionDetectionCapability, _n as hydrateSchema, dn as DeviceType, lt as evaluateZoneRules, sn as BaseAddon } from "../dist-DNlqf8dr.mjs";
1
+ import { Et as motionDetectionCapability, _n as hydrateSchema, dn as DeviceType, lt as evaluateZoneRules, sn as BaseAddon } from "../dist-DvzAabca.mjs";
2
2
  import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
3
3
  import { readFileSync } from "node:fs";
4
4
  import { join } from "node:path";
@@ -1,4 +1,4 @@
1
- import { an as isSoftwareDecode, en as errMsg, nn as Fmp4BoxSplitter, rn as buildFfmpegArgs } from "./dist-DNlqf8dr.mjs";
1
+ import { an as isSoftwareDecode, en as errMsg, nn as Fmp4BoxSplitter, rn as buildFfmpegArgs } from "./dist-DvzAabca.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { realpathSync } from "node:fs";
4
4
  import path from "node:path";
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require("./chunk-emK7D4bc.js");
2
- const require_dist = require("./dist-BzDPLvQ6.js");
2
+ const require_dist = require("./dist-BUs7H-fe.js");
3
3
  let node_crypto = require("node:crypto");
4
4
  let node_fs = require("node:fs");
5
5
  node_fs = require_chunk.__toESM(node_fs, 1);