@camstack/addon-model-studio 1.1.177 → 1.1.178

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--dtMhecm.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-C9TQCtVD.mjs} +2 -2
  8. package/dist/model-studio.addon.js +425 -22
  9. package/dist/model-studio.addon.mjs +425 -22
  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-BkBVoxTt.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
@@ -10408,23 +10408,6 @@ var ExpressionEvalError = class extends Error {
10408
10408
  this.name = "ExpressionEvalError";
10409
10409
  }
10410
10410
  };
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
10411
  function asFiniteNumber(value, name, index) {
10429
10412
  if (typeof value !== "number" || !Number.isFinite(value)) throw new ExpressionEvalError(`${name}: argument ${index + 1} must be a finite number`);
10430
10413
  return value;
@@ -10440,6 +10423,10 @@ function finiteResult(value, name) {
10440
10423
  function allFiniteNumbers(args, name) {
10441
10424
  return args.map((a, idx) => asFiniteNumber(a, name, idx));
10442
10425
  }
10426
+ function asBoolean$1(value, name, index) {
10427
+ if (typeof value !== "boolean") throw new ExpressionEvalError(`${name}: argument ${index + 1} must be a boolean`);
10428
+ return value;
10429
+ }
10443
10430
  var INF = Number.POSITIVE_INFINITY;
10444
10431
  var table = {
10445
10432
  min: {
@@ -10540,6 +10527,40 @@ var table = {
10540
10527
  if (from === to) return x;
10541
10528
  throw new ExpressionEvalError("convert: unit conversion table not installed");
10542
10529
  }
10530
+ },
10531
+ any: {
10532
+ minArgs: 1,
10533
+ maxArgs: INF,
10534
+ apply: (args) => args.map((a, i) => asBoolean$1(a, "any", i)).some((b) => b)
10535
+ },
10536
+ all: {
10537
+ minArgs: 1,
10538
+ maxArgs: INF,
10539
+ apply: (args) => args.map((a, i) => asBoolean$1(a, "all", i)).every((b) => b)
10540
+ },
10541
+ within: {
10542
+ minArgs: 2,
10543
+ maxArgs: 2,
10544
+ apply: (args, hooks) => {
10545
+ const windowMs = asFiniteNumber(args[1], "within", 1);
10546
+ if (windowMs < 0) throw new ExpressionEvalError("within: the window must not be negative");
10547
+ const at = args[0];
10548
+ if (at === null) return false;
10549
+ const ts = asFiniteNumber(at, "within", 0);
10550
+ const now = hooks.now;
10551
+ if (now === void 0 || !Number.isFinite(now)) throw new ExpressionEvalError("within: no clock was supplied to this evaluation");
10552
+ const inside = now - ts <= windowMs;
10553
+ if (inside) hooks.noteDeadline?.(ts + windowMs + 1);
10554
+ return inside;
10555
+ }
10556
+ },
10557
+ latest: {
10558
+ minArgs: 1,
10559
+ maxArgs: INF,
10560
+ apply: (args) => {
10561
+ const present = args.flatMap((a, i) => a === null ? [] : [asFiniteNumber(a, "latest", i)]);
10562
+ return present.length === 0 ? null : finiteResult(Math.max(...present), "latest");
10563
+ }
10543
10564
  }
10544
10565
  };
10545
10566
  Object.freeze(Object.assign(Object.create(null), table));
@@ -11154,7 +11175,7 @@ var AutomationActionSchema = discriminatedUnion("kind", [
11154
11175
  code: string().min(1).max(2e4)
11155
11176
  })
11156
11177
  ]);
11157
- object({
11178
+ var AutomationRecipeSchema = object({
11158
11179
  triggers: array(AutomationTriggerSchema),
11159
11180
  conditions: AutomationConditionSchema.optional(),
11160
11181
  actions: array(AutomationActionSchema)
@@ -13222,6 +13243,195 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
13222
13243
  }),
13223
13244
  lastChangedAt: number()
13224
13245
  });
13246
+ /** A composed device's stableId is this prefix plus the block id. */
13247
+ var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
13248
+ /** Longest snippet a `code` source may carry (slice 4). */
13249
+ var MAX_COMPOSITION_CODE_LENGTH = 2e4;
13250
+ var CompositionSourceRefSchema = object({
13251
+ /** The owning addon; `stableId` is unique only within it. */
13252
+ addonId: string().min(1),
13253
+ stableId: string().min(1)
13254
+ });
13255
+ /** One field of one capability of one source device. */
13256
+ var CompositionFieldReadSchema = object({
13257
+ source: CompositionSourceRefSchema,
13258
+ cap: string().min(1),
13259
+ /** Dotted path into the source cap's runtime-state slice. */
13260
+ fieldPath: string().min(1)
13261
+ });
13262
+ /** `from`: copy one source field verbatim. It is also an expression's `from` binding. */
13263
+ var CompositionFromSourceSchema = CompositionFieldReadSchema.extend({ kind: literal("from") });
13264
+ var CompositionBindingSchema = discriminatedUnion("kind", [CompositionFromSourceSchema, object({
13265
+ kind: literal("literal"),
13266
+ value: union([
13267
+ string(),
13268
+ number(),
13269
+ boolean(),
13270
+ _null()
13271
+ ])
13272
+ })]);
13273
+ /**
13274
+ * `expression`: a formula over named bindings, in the salvaged expression
13275
+ * engine. Validated at parse by the SAME function every other consumer runs,
13276
+ * so the editor and the store cannot disagree.
13277
+ */
13278
+ var CompositionExpressionSourceSchema = object({
13279
+ kind: literal("expression"),
13280
+ expr: string().min(1).max(MAX_EXPRESSION_SOURCE_LENGTH),
13281
+ bindings: record(string().regex(EXPRESSION_IDENTIFIER_RE), CompositionBindingSchema)
13282
+ }).superRefine((src, ctx) => {
13283
+ const err = validateExpressionSource(src);
13284
+ if (err !== null) ctx.addIssue({
13285
+ code: "custom",
13286
+ message: err,
13287
+ path: ["expr"]
13288
+ });
13289
+ });
13290
+ /** `code`: RESERVED for slice 4 (own runner, one-way eject). */
13291
+ var CompositionCodeSourceSchema = object({
13292
+ kind: literal("code"),
13293
+ code: string().min(1).max(MAX_COMPOSITION_CODE_LENGTH)
13294
+ });
13295
+ var CompositionFieldSourceSchema = discriminatedUnion("kind", [
13296
+ CompositionFromSourceSchema,
13297
+ CompositionExpressionSourceSchema,
13298
+ CompositionCodeSourceSchema
13299
+ ]);
13300
+ var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
13301
+ kind: literal("forward"),
13302
+ source: CompositionSourceRefSchema,
13303
+ cap: string().min(1),
13304
+ method: string().min(1)
13305
+ }), CompositionCodeSourceSchema]);
13306
+ var CompositionFeatureSchema = discriminatedUnion("kind", [object({
13307
+ kind: literal("fields"),
13308
+ cap: string().min(1),
13309
+ fields: record(string().min(1), CompositionFieldSourceSchema).refine((fields) => Object.keys(fields).length <= 32, { message: `at most 32 fields per capability` }),
13310
+ /** RESERVED for slice 3; refused by the validator when non-empty. */
13311
+ commands: record(string().min(1), CompositionCommandTargetSchema).optional()
13312
+ }), object({
13313
+ kind: literal("passthrough"),
13314
+ cap: string().min(1),
13315
+ source: CompositionSourceRefSchema
13316
+ })]);
13317
+ var CompositionSchema = object({
13318
+ target: discriminatedUnion("kind", [object({
13319
+ kind: literal("new"),
13320
+ type: _enum(DeviceType),
13321
+ role: _enum(DeviceRole).optional()
13322
+ }), object({
13323
+ kind: literal("existing"),
13324
+ device: CompositionSourceRefSchema
13325
+ })]),
13326
+ features: array(CompositionFeatureSchema).min(1).max(16)
13327
+ }).superRefine((composition, ctx) => {
13328
+ const seen = /* @__PURE__ */ new Set();
13329
+ composition.features.forEach((feature, index) => {
13330
+ if (seen.has(feature.cap)) ctx.addIssue({
13331
+ code: "custom",
13332
+ message: `capability \`${feature.cap}\` is composed twice — one feature per capability`,
13333
+ path: [
13334
+ "features",
13335
+ index,
13336
+ "cap"
13337
+ ]
13338
+ });
13339
+ seen.add(feature.cap);
13340
+ });
13341
+ });
13342
+ /** One refusal, named (D391). `path` points into the composition, e.g. `features[0].fields.celsius`. */
13343
+ var CompositionProblemSchema = object({
13344
+ code: _enum([
13345
+ "reserved-variant",
13346
+ "unknown-capability",
13347
+ "not-composable",
13348
+ "wrong-device-type",
13349
+ "has-commands",
13350
+ "unknown-field",
13351
+ "nested-field",
13352
+ "missing-field",
13353
+ "kind-mismatch",
13354
+ "may-be-null",
13355
+ "source-missing",
13356
+ "source-unreadable",
13357
+ "source-capability-missing",
13358
+ "source-field-unknown",
13359
+ "expression-invalid",
13360
+ "cycle",
13361
+ "duplicate-target"
13362
+ ]),
13363
+ path: string(),
13364
+ message: string()
13365
+ });
13366
+ var CompositionFieldKindSchema = _enum([
13367
+ "string",
13368
+ "number",
13369
+ "boolean",
13370
+ "enum"
13371
+ ]);
13372
+ /** How a field says "unavailable": `null` when its schema allows it, else the device goes offline (D393). */
13373
+ var CompositionUnavailableModeSchema = _enum(["null", "offline"]);
13374
+ /**
13375
+ * `derived` reads a source · `clock` reads only `now`, recomputed when a sibling
13376
+ * field of its cap changes value · `constant` reads nothing, computed once.
13377
+ */
13378
+ var CompositionFieldRoleSchema = _enum([
13379
+ "derived",
13380
+ "clock",
13381
+ "constant"
13382
+ ]);
13383
+ var CompositionFieldPlanSchema = object({
13384
+ cap: string(),
13385
+ path: string(),
13386
+ /** Index into `composition.features` this field's capability came from —
13387
+ * lets a source/cycle problem name its path as `features[N].fields.<path>`
13388
+ * (the same convention `planComposition`'s own problems already use). */
13389
+ featureIndex: number().int().nonnegative(),
13390
+ kind: CompositionFieldKindSchema,
13391
+ nullable: boolean(),
13392
+ required: boolean(),
13393
+ unavailable: CompositionUnavailableModeSchema,
13394
+ role: CompositionFieldRoleSchema,
13395
+ source: CompositionFieldSourceSchema,
13396
+ reads: array(CompositionFieldReadSchema)
13397
+ });
13398
+ var CompositionValidationSchema = object({
13399
+ ok: boolean(),
13400
+ problems: array(CompositionProblemSchema),
13401
+ fields: array(CompositionFieldPlanSchema)
13402
+ });
13403
+ /** Mirrors `CoreBlockStatus`, pinned by `core-blocks-source.spec.ts` (Task 11). */
13404
+ var CompositionRunStatusSchema = _enum([
13405
+ "stopped",
13406
+ "starting",
13407
+ "running",
13408
+ "failed"
13409
+ ]);
13410
+ var CompositionFieldStateKindSchema = _enum([
13411
+ "fresh",
13412
+ "stale",
13413
+ "unavailable"
13414
+ ]);
13415
+ var CompositionFieldStateSchema = object({
13416
+ cap: string(),
13417
+ path: string(),
13418
+ state: CompositionFieldStateKindSchema,
13419
+ /** `null` whenever `state === 'unavailable'`; never a plausible stand-in (D393). */
13420
+ value: union([
13421
+ string(),
13422
+ number(),
13423
+ boolean(),
13424
+ _null()
13425
+ ]),
13426
+ reason: string().optional()
13427
+ });
13428
+ var CompositionBlockStateSchema = object({
13429
+ blockId: string(),
13430
+ deviceId: number().nullable(),
13431
+ status: CompositionRunStatusSchema,
13432
+ reason: string().optional(),
13433
+ fields: array(CompositionFieldStateSchema)
13434
+ });
13225
13435
  /** Where a block runs. The operator chooses — a block driving a device on an
13226
13436
  * agent is the reason placement is not fixed to the hub. */
13227
13437
  var CoreBlockPlacementSchema = union([literal("hub"), string().min(1)]);
@@ -13248,6 +13458,30 @@ var CoreBlockInputSchema = object({
13248
13458
  */
13249
13459
  integrationId: string().optional()
13250
13460
  });
13461
+ /**
13462
+ * What a block IS (D659). Absent means `code` — every row stored before this
13463
+ * union keeps working unchanged.
13464
+ * - `code`: the TypeScript in `code`, compiled and run in its own runner;
13465
+ * - `recipe`: RESERVED (automations), stored shape only; refused at run by name;
13466
+ * - `composition`: declarative, run by the shared `composer`; `code` is `''`.
13467
+ */
13468
+ var CoreBlockSourceSchema = discriminatedUnion("kind", [
13469
+ object({ kind: literal("code") }),
13470
+ object({
13471
+ kind: literal("recipe"),
13472
+ recipe: AutomationRecipeSchema
13473
+ }),
13474
+ object({
13475
+ kind: literal("composition"),
13476
+ composition: CompositionSchema
13477
+ })
13478
+ ]);
13479
+ /** The client-authored half of a composition block. No `code`, no placement (hub-only; Phase 7). */
13480
+ var CompositionBlockInputSchema = object({
13481
+ name: string().min(1).max(120),
13482
+ enabled: boolean(),
13483
+ composition: CompositionSchema
13484
+ });
13251
13485
  /** A stored block. */
13252
13486
  var CoreBlockSchema = CoreBlockInputSchema.extend({
13253
13487
  id: string(),
@@ -13263,8 +13497,38 @@ var CoreBlockSchema = CoreBlockInputSchema.extend({
13263
13497
  */
13264
13498
  lastError: string().optional(),
13265
13499
  /** Ms epoch of the last state change. */
13266
- lastChangedAt: number()
13500
+ lastChangedAt: number(),
13501
+ /** What the block is. Absent means `code` (D659). */
13502
+ source: CoreBlockSourceSchema.optional()
13503
+ });
13504
+ /** A stored composition block and what the composer says about it. */
13505
+ var CompositionViewSchema = object({
13506
+ block: CoreBlockSchema,
13507
+ state: discriminatedUnion("kind", [object({
13508
+ kind: literal("answered"),
13509
+ state: CompositionBlockStateSchema.nullable()
13510
+ }), object({
13511
+ kind: literal("unreachable"),
13512
+ error: string()
13513
+ })])
13267
13514
  });
13515
+ /**
13516
+ * A read of the stored compositions. `not-loaded` while the `core_blocks`
13517
+ * table has not been READ: an empty answer then would make "not yet known"
13518
+ * look like "none", and invite the operator to recreate what exists (D315).
13519
+ */
13520
+ var CompositionsNotLoadedSchema = object({
13521
+ state: literal("not-loaded"),
13522
+ reason: string()
13523
+ });
13524
+ var CompositionListReadSchema = discriminatedUnion("state", [object({
13525
+ state: literal("loaded"),
13526
+ views: array(CompositionViewSchema)
13527
+ }), CompositionsNotLoadedSchema]);
13528
+ var CompositionGetReadSchema = discriminatedUnion("state", [object({
13529
+ state: literal("loaded"),
13530
+ view: CompositionViewSchema.nullable()
13531
+ }), CompositionsNotLoadedSchema]);
13268
13532
  /** What a compile attempt produced. */
13269
13533
  var CoreBlockCompileResultSchema = object({
13270
13534
  ok: boolean(),
@@ -13302,7 +13566,72 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
13302
13566
  }), method(object({}), object({ libs: array(object({
13303
13567
  filePath: string(),
13304
13568
  content: string()
13305
- })) }), { auth: "admin" });
13569
+ })) }), { auth: "admin" }), method(object({ block: CompositionBlockInputSchema }), object({ block: CoreBlockSchema }), {
13570
+ kind: "mutation",
13571
+ auth: "admin",
13572
+ caller: "required"
13573
+ }), method(object({
13574
+ blockId: string(),
13575
+ expectedUpdatedAt: number(),
13576
+ block: CompositionBlockInputSchema.partial()
13577
+ }), object({ block: CoreBlockSchema }), {
13578
+ kind: "mutation",
13579
+ auth: "admin",
13580
+ caller: "required"
13581
+ }), method(object({ blockId: string() }), CompositionGetReadSchema, { auth: "admin" }), method(object({}), CompositionListReadSchema, { auth: "admin" }), method(object({
13582
+ composition: CompositionSchema,
13583
+ blockId: string().optional()
13584
+ }), CompositionValidationSchema, {
13585
+ kind: "mutation",
13586
+ auth: "admin",
13587
+ access: "view"
13588
+ });
13589
+ var ComposerBlockSchema = object({
13590
+ id: string().min(1),
13591
+ name: string().min(1).max(120),
13592
+ enabled: boolean(),
13593
+ updatedAt: number(),
13594
+ composition: CompositionSchema
13595
+ });
13596
+ /**
13597
+ * A stored composition row that no longer PARSES — a schema a release
13598
+ * tightened, a row written by a newer build. Sent by id so the composer keeps
13599
+ * its device as a placeholder and reports the block `failed` naming the parse
13600
+ * error. Leaving it out would read, twice, exactly like a delete (D49).
13601
+ */
13602
+ var ComposerUnreadableBlockSchema = object({
13603
+ id: string().min(1),
13604
+ /** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
13605
+ name: string().nullable(),
13606
+ /** The parse error, in the operator's words. */
13607
+ error: string()
13608
+ });
13609
+ method(object({
13610
+ /** The shared Blocks integration; null until `core-blocks` has reconciled it. */
13611
+ integrationId: string().nullable(),
13612
+ /** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
13613
+ storeLoaded: boolean(),
13614
+ blocks: array(ComposerBlockSchema),
13615
+ /** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
13616
+ restartBlockIds: array(string()),
13617
+ /** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
13618
+ unreadableBlocks: array(ComposerUnreadableBlockSchema)
13619
+ }), object({
13620
+ blocks: array(object({
13621
+ blockId: string(),
13622
+ status: CompositionRunStatusSchema,
13623
+ reason: string().optional()
13624
+ })),
13625
+ /**
13626
+ * False when the composer declared and withdrew NOTHING (store not loaded,
13627
+ * integration unknown, its own rows unread or read empty once). An empty
13628
+ * apply the caller owes is paid off only by one the composer acted on (D49).
13629
+ */
13630
+ acted: boolean()
13631
+ }), {
13632
+ kind: "mutation",
13633
+ auth: "admin"
13634
+ }), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
13306
13635
  /**
13307
13636
  * `custom-model-registry` — collection cap exposing operator-registered
13308
13637
  * custom detection models. Each provider (today: `addon-model-studio`)
@@ -19069,8 +19398,8 @@ var NcTestResultSchema = object({
19069
19398
  className: string().optional(),
19070
19399
  label: string().optional()
19071
19400
  });
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
19401
+ /** The rule kinds, as data. `NcRuleKind` in `notification/rule-kinds.ts` is
19402
+ * `z.infer` of this schema — one shape, no twin. `mixed` is DERIVED
19074
19403
  * (a stored system rule whose kinds span families, D637) and never authored. */
19075
19404
  var NcRuleKindSchema = _enum([
19076
19405
  "detection",
@@ -35140,6 +35469,38 @@ DeviceType.Camera, method(object({
35140
35469
  detection: array(ZoneRuleSchema).readonly(),
35141
35470
  package: array(ZoneRuleSchema).readonly()
35142
35471
  });
35472
+ var NUMBER = {
35473
+ kind: "fixed",
35474
+ result: ["number"]
35475
+ };
35476
+ var BOOLEAN = {
35477
+ kind: "fixed",
35478
+ result: ["boolean"]
35479
+ };
35480
+ Object.freeze({
35481
+ min: NUMBER,
35482
+ max: NUMBER,
35483
+ abs: NUMBER,
35484
+ floor: NUMBER,
35485
+ ceil: NUMBER,
35486
+ sqrt: NUMBER,
35487
+ round: NUMBER,
35488
+ pow: NUMBER,
35489
+ clamp: NUMBER,
35490
+ avg: NUMBER,
35491
+ sum: NUMBER,
35492
+ age: NUMBER,
35493
+ convert: NUMBER,
35494
+ coalesce: { kind: "coalesce" },
35495
+ any: BOOLEAN,
35496
+ all: BOOLEAN,
35497
+ within: BOOLEAN,
35498
+ latest: {
35499
+ kind: "fixed",
35500
+ result: ["number", "null"]
35501
+ }
35502
+ });
35503
+ `${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
35143
35504
  /**
35144
35505
  * Accessory device helpers — shared across drivers.
35145
35506
  *
@@ -37448,6 +37809,18 @@ Object.freeze({
37448
37809
  addonId: null,
37449
37810
  access: "create"
37450
37811
  },
37812
+ "composer.applyBlocks": {
37813
+ capName: "composer",
37814
+ capScope: "system",
37815
+ addonId: null,
37816
+ access: "create"
37817
+ },
37818
+ "composer.getStates": {
37819
+ capName: "composer",
37820
+ capScope: "system",
37821
+ addonId: null,
37822
+ access: "view"
37823
+ },
37451
37824
  "connectionTest.describeTest": {
37452
37825
  capName: "connection-test",
37453
37826
  capScope: "system",
@@ -37508,6 +37881,12 @@ Object.freeze({
37508
37881
  addonId: null,
37509
37882
  access: "create"
37510
37883
  },
37884
+ "coreBlocks.createComposition": {
37885
+ capName: "core-blocks",
37886
+ capScope: "system",
37887
+ addonId: null,
37888
+ access: "create"
37889
+ },
37511
37890
  "coreBlocks.delete": {
37512
37891
  capName: "core-blocks",
37513
37892
  capScope: "system",
@@ -37520,6 +37899,12 @@ Object.freeze({
37520
37899
  addonId: null,
37521
37900
  access: "view"
37522
37901
  },
37902
+ "coreBlocks.getComposition": {
37903
+ capName: "core-blocks",
37904
+ capScope: "system",
37905
+ addonId: null,
37906
+ access: "view"
37907
+ },
37523
37908
  "coreBlocks.getTypeDefs": {
37524
37909
  capName: "core-blocks",
37525
37910
  capScope: "system",
@@ -37532,6 +37917,12 @@ Object.freeze({
37532
37917
  addonId: null,
37533
37918
  access: "view"
37534
37919
  },
37920
+ "coreBlocks.listCompositions": {
37921
+ capName: "core-blocks",
37922
+ capScope: "system",
37923
+ addonId: null,
37924
+ access: "view"
37925
+ },
37535
37926
  "coreBlocks.restart": {
37536
37927
  capName: "core-blocks",
37537
37928
  capScope: "system",
@@ -37550,6 +37941,18 @@ Object.freeze({
37550
37941
  addonId: null,
37551
37942
  access: "create"
37552
37943
  },
37944
+ "coreBlocks.updateComposition": {
37945
+ capName: "core-blocks",
37946
+ capScope: "system",
37947
+ addonId: null,
37948
+ access: "create"
37949
+ },
37950
+ "coreBlocks.validateComposition": {
37951
+ capName: "core-blocks",
37952
+ capScope: "system",
37953
+ addonId: null,
37954
+ access: "view"
37955
+ },
37553
37956
  "cover.close": {
37554
37957
  capName: "cover",
37555
37958
  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-BkBVoxTt.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",
@@ -2753,7 +2753,7 @@ async function rr(e) {
2753
2753
  }
2754
2754
  }
2755
2755
  async function ir() {
2756
- return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-Pq2JbHl4.mjs")).catch((e) => {
2756
+ return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page--dtMhecm.mjs")).catch((e) => {
2757
2757
  throw tr = void 0, e;
2758
2758
  }), tr;
2759
2759
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-model-studio",
3
- "version": "1.1.177",
3
+ "version": "1.1.178",
4
4
  "description": "Custom detection model registry, conversion & distribution for CamStack",
5
5
  "keywords": [
6
6
  "camstack",