@camstack/addon-admin-ui 1.2.276 → 1.2.278
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.
- package/dist/assets/{AddonCollectionPage-BD39bVDO.js → AddonCollectionPage-CijzvJBC.js} +1 -1
- package/dist/assets/{Addons-Cq5slzUF.js → Addons-NjRtdrrY.js} +1 -1
- package/dist/assets/{AdminTabs-CxoBTklu.js → AdminTabs-DS09C0io.js} +1 -1
- package/dist/assets/{AiProfiles-CJnTSsb2.js → AiProfiles-Dhzs3_4s.js} +1 -1
- package/dist/assets/{BrokerForm-CpQEhIDa.js → BrokerForm-C9QS5eAD.js} +1 -1
- package/dist/assets/{Build-CDuj-tsF.js → Build-8shX2Zyc.js} +1 -1
- package/dist/assets/{Capabilities-DqF4Lni2.js → Capabilities-h8UbuiWS.js} +1 -1
- package/dist/assets/{CapabilityBadges-lTXo5llx.js → CapabilityBadges-DxgJW6iS.js} +1 -1
- package/dist/assets/{Cluster-C3S4f1h7.js → Cluster-rBp0X-BP.js} +1 -1
- package/dist/assets/{Data-NyEE4mZ9.js → Data-DESjkVbH.js} +1 -1
- package/dist/assets/{DetectionIntelligence-qJXiye8T.js → DetectionIntelligence-g_8_V_iR.js} +1 -1
- package/dist/assets/{DeviceAggregateSection-BwiFXOuD.js → DeviceAggregateSection-CEos3up1.js} +1 -1
- package/dist/assets/{DeviceDetail-BcoUTKsH.js → DeviceDetail-B6Wu72OD.js} +1 -1
- package/dist/assets/{Devices-CUuNJmpH.js → Devices-DzZb_DcV.js} +1 -1
- package/dist/assets/{EmbedPlayerPage-m4ZAU5eR.js → EmbedPlayerPage-CE-Q6giS.js} +1 -1
- package/dist/assets/{Events-Cz_SPAHz.js → Events-CI1tSiNC.js} +1 -1
- package/dist/assets/{FormBuilder-BtteYqpo.js → FormBuilder-D4BgRiUV.js} +1 -1
- package/dist/assets/{Identity-CbApAuMW.js → Identity-BHYvZY1m.js} +1 -1
- package/dist/assets/{IntegrationDetail-R1qnVcz1.js → IntegrationDetail-BeyyleKw.js} +1 -1
- package/dist/assets/{Integrations-Dd6goBP7.js → Integrations-BLW_gVyN.js} +1 -1
- package/dist/assets/{Integrations-D3KyyETm.js → Integrations-D2Ioh1jg.js} +1 -1
- package/dist/assets/{Locations-BBvmf6wR.js → Locations-axIt8Sr0.js} +1 -1
- package/dist/assets/{Logs-Bw1isllJ.js → Logs-CcZTuW95.js} +1 -1
- package/dist/assets/{ModelLicenses-BqfEvjh7.js → ModelLicenses-DijcL69L.js} +1 -1
- package/dist/assets/{MotionZonesSettings-D56Six9q.js → MotionZonesSettings-ByW94ijI.js} +1 -1
- package/dist/assets/{MyAccess-DUKSI7eb.js → MyAccess-DxZKdnG5.js} +1 -1
- package/dist/assets/{Network-zMCcMnJ8.js → Network-A5j9p24A.js} +1 -1
- package/dist/assets/{NodeAddonsSettingsPanel-x4CXa830.js → NodeAddonsSettingsPanel-CCwWB35N.js} +1 -1
- package/dist/assets/{NodeInferenceDevices-CE4QB6-w.js → NodeInferenceDevices-DjOT1NlJ.js} +1 -1
- package/dist/assets/{Notifications-Cg60TCGD.js → Notifications-CMdlY5Yf.js} +1 -1
- package/dist/assets/{Pipeline-QMQOdWgy.js → Pipeline-DH7pe_BH.js} +1 -1
- package/dist/assets/{Plates-Bu2KLWF0.js → Plates-zLsK51mr.js} +1 -1
- package/dist/assets/{PrivacyMaskSettings-DhAev9wG.js → PrivacyMaskSettings-VFpDVPUD.js} +1 -1
- package/dist/assets/{ProviderIcon-BdA8cO5j.js → ProviderIcon-Bfz7B3P_.js} +1 -1
- package/dist/assets/{Recordings-C6PDPiiY.js → Recordings-CW4l0ZWY.js} +1 -1
- package/dist/assets/{ScanNetworkModal-0ozFHbP_.js → ScanNetworkModal-BsOry1__.js} +1 -1
- package/dist/assets/{SceneMonitorEditor-HWbGyLwn.js → SceneMonitorEditor-qm1KBbe_.js} +1 -1
- package/dist/assets/{Scenes-BVJE0STK.js → Scenes-CTXvUkv9.js} +1 -1
- package/dist/assets/{Settings-B9awqkTx.js → Settings-D4GbTXlt.js} +1 -1
- package/dist/assets/{Showroom-CIRWo-dT.js → Showroom-CkRx6Fic.js} +1 -1
- package/dist/assets/{StorageLocationsPanel-B3j8F7aM.js → StorageLocationsPanel-BP-ZOwQg.js} +1 -1
- package/dist/assets/{Terminal-C-6Y0pSD.js → Terminal-1xsrSrJj.js} +1 -1
- package/dist/assets/{Viewer-DWDitGER.js → Viewer-CiHsuAzC.js} +1 -1
- package/dist/assets/{__vite-browser-external-B6qJ4svC.js → __vite-browser-external-Cc3gW-QT.js} +1 -1
- package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-uUKVnhy2.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-Cs6h75z-.js} +1 -1
- package/dist/assets/{archive-IdtjFEze.js → archive-B85ScavU.js} +1 -1
- package/dist/assets/{authed-media-CC2YdLuq.js → authed-media-BXdzMVsy.js} +1 -1
- package/dist/assets/{boxes-D7D7LK9v.js → boxes-CeITWqUD.js} +1 -1
- package/dist/assets/circle-slash-CV8WmHpb.js +1 -0
- package/dist/assets/{debounced-invalidate-B_nKJtYA.js → debounced-invalidate-K2Fjfwan.js} +1 -1
- package/dist/assets/dist-DU1id0Ju.js +349 -0
- package/dist/assets/{dist-BRxYTs-j.js → dist-ZKl1Ebx3.js} +1 -1
- package/dist/assets/{face-bbox-wwUkvIaL.js → face-bbox-4tWnhHr6.js} +1 -1
- package/dist/assets/{hard-drive-download-CMrOeRSw.js → hard-drive-download-D8j9Yq15.js} +1 -1
- package/dist/assets/{hostInit-Dg8MBaGO.js → hostInit-BOuyKlue.js} +1 -1
- package/dist/assets/{index-ClE1rPAH.js → index-DQKJuvMR.js} +3 -3
- package/dist/assets/{layers-CS70i66q.js → layers-BcxAsKXc.js} +1 -1
- package/dist/assets/{location-owned-usage-C7x-LdjG.js → location-owned-usage-B-E5s_j-.js} +1 -1
- package/dist/assets/{mf-entry-bootstrap-0-b546ab2c.js → mf-entry-bootstrap-0-04036bef.js} +2 -2
- package/dist/assets/{player-overlays-C78iNIuD.js → player-overlays-CvEAhvmK.js} +1 -1
- package/dist/assets/remoteEntry-CZHSeY_1.js +1 -0
- package/dist/assets/{send-DpHFnZI6.js → send-CF8UayxK.js} +1 -1
- package/dist/assets/{settings-2-DwoSM6Bh.js → settings-2-BqiJ6B_B.js} +1 -1
- package/dist/assets/{square-check-big-cJI8MBN4.js → square-check-big-Cnubb_ht.js} +1 -1
- package/dist/assets/src-BeSRqfZz.js +349 -0
- package/dist/assets/src-n3Vr9mcv.js +67 -0
- package/dist/assets/{use-scenes-feed-CqGeZJG7.js → use-scenes-feed-CSW3MJO4.js} +1 -1
- package/dist/assets/{use-stationary-objects-CITdXIwS.js → use-stationary-objects-3AdbcpoU.js} +1 -1
- package/dist/assets/useEventInvalidation-BJfyaVQT.js +1 -0
- package/dist/assets/{useNodeUrlSelection-CoD6D3d3.js → useNodeUrlSelection-BwlJugHW.js} +1 -1
- package/dist/assets/user-round-CJasaoL0.js +1 -0
- package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-DCI7-W2O.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-CIe1F9GO.js} +2 -2
- package/dist/index.html +6 -6
- package/dist/server/addon.js +438 -24
- package/package.json +1 -1
- package/dist/assets/circle-slash-Duoo2xiR.js +0 -1
- package/dist/assets/dist-Di4eEfFU.js +0 -349
- package/dist/assets/remoteEntry-kl9sd-S-.js +0 -1
- package/dist/assets/src-C-gl2YyL.js +0 -67
- package/dist/assets/src-DAvjvAxz.js +0 -349
- package/dist/assets/useEventInvalidation-B_bVFeEF.js +0 -1
- package/dist/assets/user-round-DZp9kdLn.js +0 -1
package/dist/server/addon.js
CHANGED
|
@@ -9663,6 +9663,16 @@ var ModelCatalogEntrySchema = object({
|
|
|
9663
9663
|
*/
|
|
9664
9664
|
postprocessor: custom().optional(),
|
|
9665
9665
|
/**
|
|
9666
|
+
* Per-MODEL default confidence floor. Absent ⇒ the step's
|
|
9667
|
+
* `StepDefinition.defaultConfidence` applies. A score is a property of one
|
|
9668
|
+
* model's output scale, not of the step slot it sits in: YuNet's
|
|
9669
|
+
* `sqrt(cls·obj)` is not SCRFD's score, and inheriting SCRFD's 0.5 filled the
|
|
9670
|
+
* face gallery with wheels and hands (D662, amends D645). An operator's
|
|
9671
|
+
* explicit value still wins over it. Resolved in ONE place —
|
|
9672
|
+
* `addon-pipeline/.../registry/effective-confidence.ts`.
|
|
9673
|
+
*/
|
|
9674
|
+
defaultConfidence: number().min(0).max(1).optional(),
|
|
9675
|
+
/**
|
|
9666
9676
|
* When true, the executor produces a landmark-aligned crop (similarity warp
|
|
9667
9677
|
* onto the canonical template) before this step runs, instead of a plain
|
|
9668
9678
|
* axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
|
|
@@ -9795,23 +9805,6 @@ var ExpressionEvalError = class extends Error {
|
|
|
9795
9805
|
this.name = "ExpressionEvalError";
|
|
9796
9806
|
}
|
|
9797
9807
|
};
|
|
9798
|
-
/**
|
|
9799
|
-
* Frozen, null-prototype builtin function table for the expression engine
|
|
9800
|
-
* (spec §4 rule 4). The table is the SOLE surface of callable functions: the
|
|
9801
|
-
* parser rejects any callee not in it, and the evaluator gates each call on an
|
|
9802
|
-
* own-property check against it.
|
|
9803
|
-
*
|
|
9804
|
-
* Because the object has a NULL prototype AND is `Object.freeze`d:
|
|
9805
|
-
* - it cannot be polluted (no `__proto__` / `constructor` write reaches it);
|
|
9806
|
-
* - a lookup for `toString` / `hasOwnProperty` / `constructor` finds NOTHING
|
|
9807
|
-
* (there is no `Object.prototype` in the chain), so those names are not
|
|
9808
|
-
* callable — they are simply "unknown function" at parse time.
|
|
9809
|
-
*
|
|
9810
|
-
* Every numeric argument is validated as a finite number and every numeric
|
|
9811
|
-
* RESULT is re-checked finite, so `/0`, `sqrt(-1)` (→ NaN) and overflow
|
|
9812
|
-
* (`pow(10,400)` → Infinity) all raise `ExpressionEvalError` and fail the link
|
|
9813
|
-
* closed rather than emitting a garbage value.
|
|
9814
|
-
*/
|
|
9815
9808
|
function asFiniteNumber(value, name, index) {
|
|
9816
9809
|
if (typeof value !== "number" || !Number.isFinite(value)) throw new ExpressionEvalError(`${name}: argument ${index + 1} must be a finite number`);
|
|
9817
9810
|
return value;
|
|
@@ -9827,6 +9820,10 @@ function finiteResult(value, name) {
|
|
|
9827
9820
|
function allFiniteNumbers(args, name) {
|
|
9828
9821
|
return args.map((a, idx) => asFiniteNumber(a, name, idx));
|
|
9829
9822
|
}
|
|
9823
|
+
function asBoolean$1(value, name, index) {
|
|
9824
|
+
if (typeof value !== "boolean") throw new ExpressionEvalError(`${name}: argument ${index + 1} must be a boolean`);
|
|
9825
|
+
return value;
|
|
9826
|
+
}
|
|
9830
9827
|
var INF = Number.POSITIVE_INFINITY;
|
|
9831
9828
|
var table = {
|
|
9832
9829
|
min: {
|
|
@@ -9927,6 +9924,40 @@ var table = {
|
|
|
9927
9924
|
if (from === to) return x;
|
|
9928
9925
|
throw new ExpressionEvalError("convert: unit conversion table not installed");
|
|
9929
9926
|
}
|
|
9927
|
+
},
|
|
9928
|
+
any: {
|
|
9929
|
+
minArgs: 1,
|
|
9930
|
+
maxArgs: INF,
|
|
9931
|
+
apply: (args) => args.map((a, i) => asBoolean$1(a, "any", i)).some((b) => b)
|
|
9932
|
+
},
|
|
9933
|
+
all: {
|
|
9934
|
+
minArgs: 1,
|
|
9935
|
+
maxArgs: INF,
|
|
9936
|
+
apply: (args) => args.map((a, i) => asBoolean$1(a, "all", i)).every((b) => b)
|
|
9937
|
+
},
|
|
9938
|
+
within: {
|
|
9939
|
+
minArgs: 2,
|
|
9940
|
+
maxArgs: 2,
|
|
9941
|
+
apply: (args, hooks) => {
|
|
9942
|
+
const windowMs = asFiniteNumber(args[1], "within", 1);
|
|
9943
|
+
if (windowMs < 0) throw new ExpressionEvalError("within: the window must not be negative");
|
|
9944
|
+
const at = args[0];
|
|
9945
|
+
if (at === null) return false;
|
|
9946
|
+
const ts = asFiniteNumber(at, "within", 0);
|
|
9947
|
+
const now = hooks.now;
|
|
9948
|
+
if (now === void 0 || !Number.isFinite(now)) throw new ExpressionEvalError("within: no clock was supplied to this evaluation");
|
|
9949
|
+
const inside = now - ts <= windowMs;
|
|
9950
|
+
if (inside) hooks.noteDeadline?.(ts + windowMs + 1);
|
|
9951
|
+
return inside;
|
|
9952
|
+
}
|
|
9953
|
+
},
|
|
9954
|
+
latest: {
|
|
9955
|
+
minArgs: 1,
|
|
9956
|
+
maxArgs: INF,
|
|
9957
|
+
apply: (args) => {
|
|
9958
|
+
const present = args.flatMap((a, i) => a === null ? [] : [asFiniteNumber(a, "latest", i)]);
|
|
9959
|
+
return present.length === 0 ? null : finiteResult(Math.max(...present), "latest");
|
|
9960
|
+
}
|
|
9930
9961
|
}
|
|
9931
9962
|
};
|
|
9932
9963
|
Object.freeze(Object.assign(Object.create(null), table));
|
|
@@ -10541,7 +10572,7 @@ var AutomationActionSchema = discriminatedUnion("kind", [
|
|
|
10541
10572
|
code: string().min(1).max(2e4)
|
|
10542
10573
|
})
|
|
10543
10574
|
]);
|
|
10544
|
-
object({
|
|
10575
|
+
var AutomationRecipeSchema = object({
|
|
10545
10576
|
triggers: array(AutomationTriggerSchema),
|
|
10546
10577
|
conditions: AutomationConditionSchema.optional(),
|
|
10547
10578
|
actions: array(AutomationActionSchema)
|
|
@@ -12592,6 +12623,195 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
12592
12623
|
}),
|
|
12593
12624
|
lastChangedAt: number()
|
|
12594
12625
|
});
|
|
12626
|
+
/** A composed device's stableId is this prefix plus the block id. */
|
|
12627
|
+
var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
|
|
12628
|
+
/** Longest snippet a `code` source may carry (slice 4). */
|
|
12629
|
+
var MAX_COMPOSITION_CODE_LENGTH = 2e4;
|
|
12630
|
+
var CompositionSourceRefSchema = object({
|
|
12631
|
+
/** The owning addon; `stableId` is unique only within it. */
|
|
12632
|
+
addonId: string().min(1),
|
|
12633
|
+
stableId: string().min(1)
|
|
12634
|
+
});
|
|
12635
|
+
/** One field of one capability of one source device. */
|
|
12636
|
+
var CompositionFieldReadSchema = object({
|
|
12637
|
+
source: CompositionSourceRefSchema,
|
|
12638
|
+
cap: string().min(1),
|
|
12639
|
+
/** Dotted path into the source cap's runtime-state slice. */
|
|
12640
|
+
fieldPath: string().min(1)
|
|
12641
|
+
});
|
|
12642
|
+
/** `from`: copy one source field verbatim. It is also an expression's `from` binding. */
|
|
12643
|
+
var CompositionFromSourceSchema = CompositionFieldReadSchema.extend({ kind: literal("from") });
|
|
12644
|
+
var CompositionBindingSchema = discriminatedUnion("kind", [CompositionFromSourceSchema, object({
|
|
12645
|
+
kind: literal("literal"),
|
|
12646
|
+
value: union([
|
|
12647
|
+
string(),
|
|
12648
|
+
number(),
|
|
12649
|
+
boolean(),
|
|
12650
|
+
_null()
|
|
12651
|
+
])
|
|
12652
|
+
})]);
|
|
12653
|
+
/**
|
|
12654
|
+
* `expression`: a formula over named bindings, in the salvaged expression
|
|
12655
|
+
* engine. Validated at parse by the SAME function every other consumer runs,
|
|
12656
|
+
* so the editor and the store cannot disagree.
|
|
12657
|
+
*/
|
|
12658
|
+
var CompositionExpressionSourceSchema = object({
|
|
12659
|
+
kind: literal("expression"),
|
|
12660
|
+
expr: string().min(1).max(MAX_EXPRESSION_SOURCE_LENGTH),
|
|
12661
|
+
bindings: record(string().regex(EXPRESSION_IDENTIFIER_RE), CompositionBindingSchema)
|
|
12662
|
+
}).superRefine((src, ctx) => {
|
|
12663
|
+
const err = validateExpressionSource(src);
|
|
12664
|
+
if (err !== null) ctx.addIssue({
|
|
12665
|
+
code: "custom",
|
|
12666
|
+
message: err,
|
|
12667
|
+
path: ["expr"]
|
|
12668
|
+
});
|
|
12669
|
+
});
|
|
12670
|
+
/** `code`: RESERVED for slice 4 (own runner, one-way eject). */
|
|
12671
|
+
var CompositionCodeSourceSchema = object({
|
|
12672
|
+
kind: literal("code"),
|
|
12673
|
+
code: string().min(1).max(MAX_COMPOSITION_CODE_LENGTH)
|
|
12674
|
+
});
|
|
12675
|
+
var CompositionFieldSourceSchema = discriminatedUnion("kind", [
|
|
12676
|
+
CompositionFromSourceSchema,
|
|
12677
|
+
CompositionExpressionSourceSchema,
|
|
12678
|
+
CompositionCodeSourceSchema
|
|
12679
|
+
]);
|
|
12680
|
+
var CompositionCommandTargetSchema = discriminatedUnion("kind", [object({
|
|
12681
|
+
kind: literal("forward"),
|
|
12682
|
+
source: CompositionSourceRefSchema,
|
|
12683
|
+
cap: string().min(1),
|
|
12684
|
+
method: string().min(1)
|
|
12685
|
+
}), CompositionCodeSourceSchema]);
|
|
12686
|
+
var CompositionFeatureSchema = discriminatedUnion("kind", [object({
|
|
12687
|
+
kind: literal("fields"),
|
|
12688
|
+
cap: string().min(1),
|
|
12689
|
+
fields: record(string().min(1), CompositionFieldSourceSchema).refine((fields) => Object.keys(fields).length <= 32, { message: `at most 32 fields per capability` }),
|
|
12690
|
+
/** RESERVED for slice 3; refused by the validator when non-empty. */
|
|
12691
|
+
commands: record(string().min(1), CompositionCommandTargetSchema).optional()
|
|
12692
|
+
}), object({
|
|
12693
|
+
kind: literal("passthrough"),
|
|
12694
|
+
cap: string().min(1),
|
|
12695
|
+
source: CompositionSourceRefSchema
|
|
12696
|
+
})]);
|
|
12697
|
+
var CompositionSchema = object({
|
|
12698
|
+
target: discriminatedUnion("kind", [object({
|
|
12699
|
+
kind: literal("new"),
|
|
12700
|
+
type: _enum(DeviceType),
|
|
12701
|
+
role: _enum(DeviceRole).optional()
|
|
12702
|
+
}), object({
|
|
12703
|
+
kind: literal("existing"),
|
|
12704
|
+
device: CompositionSourceRefSchema
|
|
12705
|
+
})]),
|
|
12706
|
+
features: array(CompositionFeatureSchema).min(1).max(16)
|
|
12707
|
+
}).superRefine((composition, ctx) => {
|
|
12708
|
+
const seen = /* @__PURE__ */ new Set();
|
|
12709
|
+
composition.features.forEach((feature, index) => {
|
|
12710
|
+
if (seen.has(feature.cap)) ctx.addIssue({
|
|
12711
|
+
code: "custom",
|
|
12712
|
+
message: `capability \`${feature.cap}\` is composed twice — one feature per capability`,
|
|
12713
|
+
path: [
|
|
12714
|
+
"features",
|
|
12715
|
+
index,
|
|
12716
|
+
"cap"
|
|
12717
|
+
]
|
|
12718
|
+
});
|
|
12719
|
+
seen.add(feature.cap);
|
|
12720
|
+
});
|
|
12721
|
+
});
|
|
12722
|
+
/** One refusal, named (D391). `path` points into the composition, e.g. `features[0].fields.celsius`. */
|
|
12723
|
+
var CompositionProblemSchema = object({
|
|
12724
|
+
code: _enum([
|
|
12725
|
+
"reserved-variant",
|
|
12726
|
+
"unknown-capability",
|
|
12727
|
+
"not-composable",
|
|
12728
|
+
"wrong-device-type",
|
|
12729
|
+
"has-commands",
|
|
12730
|
+
"unknown-field",
|
|
12731
|
+
"nested-field",
|
|
12732
|
+
"missing-field",
|
|
12733
|
+
"kind-mismatch",
|
|
12734
|
+
"may-be-null",
|
|
12735
|
+
"source-missing",
|
|
12736
|
+
"source-unreadable",
|
|
12737
|
+
"source-capability-missing",
|
|
12738
|
+
"source-field-unknown",
|
|
12739
|
+
"expression-invalid",
|
|
12740
|
+
"cycle",
|
|
12741
|
+
"duplicate-target"
|
|
12742
|
+
]),
|
|
12743
|
+
path: string(),
|
|
12744
|
+
message: string()
|
|
12745
|
+
});
|
|
12746
|
+
var CompositionFieldKindSchema = _enum([
|
|
12747
|
+
"string",
|
|
12748
|
+
"number",
|
|
12749
|
+
"boolean",
|
|
12750
|
+
"enum"
|
|
12751
|
+
]);
|
|
12752
|
+
/** How a field says "unavailable": `null` when its schema allows it, else the device goes offline (D393). */
|
|
12753
|
+
var CompositionUnavailableModeSchema = _enum(["null", "offline"]);
|
|
12754
|
+
/**
|
|
12755
|
+
* `derived` reads a source · `clock` reads only `now`, recomputed when a sibling
|
|
12756
|
+
* field of its cap changes value · `constant` reads nothing, computed once.
|
|
12757
|
+
*/
|
|
12758
|
+
var CompositionFieldRoleSchema = _enum([
|
|
12759
|
+
"derived",
|
|
12760
|
+
"clock",
|
|
12761
|
+
"constant"
|
|
12762
|
+
]);
|
|
12763
|
+
var CompositionFieldPlanSchema = object({
|
|
12764
|
+
cap: string(),
|
|
12765
|
+
path: string(),
|
|
12766
|
+
/** Index into `composition.features` this field's capability came from —
|
|
12767
|
+
* lets a source/cycle problem name its path as `features[N].fields.<path>`
|
|
12768
|
+
* (the same convention `planComposition`'s own problems already use). */
|
|
12769
|
+
featureIndex: number().int().nonnegative(),
|
|
12770
|
+
kind: CompositionFieldKindSchema,
|
|
12771
|
+
nullable: boolean(),
|
|
12772
|
+
required: boolean(),
|
|
12773
|
+
unavailable: CompositionUnavailableModeSchema,
|
|
12774
|
+
role: CompositionFieldRoleSchema,
|
|
12775
|
+
source: CompositionFieldSourceSchema,
|
|
12776
|
+
reads: array(CompositionFieldReadSchema)
|
|
12777
|
+
});
|
|
12778
|
+
var CompositionValidationSchema = object({
|
|
12779
|
+
ok: boolean(),
|
|
12780
|
+
problems: array(CompositionProblemSchema),
|
|
12781
|
+
fields: array(CompositionFieldPlanSchema)
|
|
12782
|
+
});
|
|
12783
|
+
/** Mirrors `CoreBlockStatus`, pinned by `core-blocks-source.spec.ts` (Task 11). */
|
|
12784
|
+
var CompositionRunStatusSchema = _enum([
|
|
12785
|
+
"stopped",
|
|
12786
|
+
"starting",
|
|
12787
|
+
"running",
|
|
12788
|
+
"failed"
|
|
12789
|
+
]);
|
|
12790
|
+
var CompositionFieldStateKindSchema = _enum([
|
|
12791
|
+
"fresh",
|
|
12792
|
+
"stale",
|
|
12793
|
+
"unavailable"
|
|
12794
|
+
]);
|
|
12795
|
+
var CompositionFieldStateSchema = object({
|
|
12796
|
+
cap: string(),
|
|
12797
|
+
path: string(),
|
|
12798
|
+
state: CompositionFieldStateKindSchema,
|
|
12799
|
+
/** `null` whenever `state === 'unavailable'`; never a plausible stand-in (D393). */
|
|
12800
|
+
value: union([
|
|
12801
|
+
string(),
|
|
12802
|
+
number(),
|
|
12803
|
+
boolean(),
|
|
12804
|
+
_null()
|
|
12805
|
+
]),
|
|
12806
|
+
reason: string().optional()
|
|
12807
|
+
});
|
|
12808
|
+
var CompositionBlockStateSchema = object({
|
|
12809
|
+
blockId: string(),
|
|
12810
|
+
deviceId: number().nullable(),
|
|
12811
|
+
status: CompositionRunStatusSchema,
|
|
12812
|
+
reason: string().optional(),
|
|
12813
|
+
fields: array(CompositionFieldStateSchema)
|
|
12814
|
+
});
|
|
12595
12815
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
12596
12816
|
* agent is the reason placement is not fixed to the hub. */
|
|
12597
12817
|
var CoreBlockPlacementSchema = union([literal("hub"), string().min(1)]);
|
|
@@ -12618,6 +12838,30 @@ var CoreBlockInputSchema = object({
|
|
|
12618
12838
|
*/
|
|
12619
12839
|
integrationId: string().optional()
|
|
12620
12840
|
});
|
|
12841
|
+
/**
|
|
12842
|
+
* What a block IS (D659). Absent means `code` — every row stored before this
|
|
12843
|
+
* union keeps working unchanged.
|
|
12844
|
+
* - `code`: the TypeScript in `code`, compiled and run in its own runner;
|
|
12845
|
+
* - `recipe`: RESERVED (automations), stored shape only; refused at run by name;
|
|
12846
|
+
* - `composition`: declarative, run by the shared `composer`; `code` is `''`.
|
|
12847
|
+
*/
|
|
12848
|
+
var CoreBlockSourceSchema = discriminatedUnion("kind", [
|
|
12849
|
+
object({ kind: literal("code") }),
|
|
12850
|
+
object({
|
|
12851
|
+
kind: literal("recipe"),
|
|
12852
|
+
recipe: AutomationRecipeSchema
|
|
12853
|
+
}),
|
|
12854
|
+
object({
|
|
12855
|
+
kind: literal("composition"),
|
|
12856
|
+
composition: CompositionSchema
|
|
12857
|
+
})
|
|
12858
|
+
]);
|
|
12859
|
+
/** The client-authored half of a composition block. No `code`, no placement (hub-only; Phase 7). */
|
|
12860
|
+
var CompositionBlockInputSchema = object({
|
|
12861
|
+
name: string().min(1).max(120),
|
|
12862
|
+
enabled: boolean(),
|
|
12863
|
+
composition: CompositionSchema
|
|
12864
|
+
});
|
|
12621
12865
|
/** A stored block. */
|
|
12622
12866
|
var CoreBlockSchema = CoreBlockInputSchema.extend({
|
|
12623
12867
|
id: string(),
|
|
@@ -12633,8 +12877,38 @@ var CoreBlockSchema = CoreBlockInputSchema.extend({
|
|
|
12633
12877
|
*/
|
|
12634
12878
|
lastError: string().optional(),
|
|
12635
12879
|
/** Ms epoch of the last state change. */
|
|
12636
|
-
lastChangedAt: number()
|
|
12880
|
+
lastChangedAt: number(),
|
|
12881
|
+
/** What the block is. Absent means `code` (D659). */
|
|
12882
|
+
source: CoreBlockSourceSchema.optional()
|
|
12883
|
+
});
|
|
12884
|
+
/** A stored composition block and what the composer says about it. */
|
|
12885
|
+
var CompositionViewSchema = object({
|
|
12886
|
+
block: CoreBlockSchema,
|
|
12887
|
+
state: discriminatedUnion("kind", [object({
|
|
12888
|
+
kind: literal("answered"),
|
|
12889
|
+
state: CompositionBlockStateSchema.nullable()
|
|
12890
|
+
}), object({
|
|
12891
|
+
kind: literal("unreachable"),
|
|
12892
|
+
error: string()
|
|
12893
|
+
})])
|
|
12637
12894
|
});
|
|
12895
|
+
/**
|
|
12896
|
+
* A read of the stored compositions. `not-loaded` while the `core_blocks`
|
|
12897
|
+
* table has not been READ: an empty answer then would make "not yet known"
|
|
12898
|
+
* look like "none", and invite the operator to recreate what exists (D315).
|
|
12899
|
+
*/
|
|
12900
|
+
var CompositionsNotLoadedSchema = object({
|
|
12901
|
+
state: literal("not-loaded"),
|
|
12902
|
+
reason: string()
|
|
12903
|
+
});
|
|
12904
|
+
var CompositionListReadSchema = discriminatedUnion("state", [object({
|
|
12905
|
+
state: literal("loaded"),
|
|
12906
|
+
views: array(CompositionViewSchema)
|
|
12907
|
+
}), CompositionsNotLoadedSchema]);
|
|
12908
|
+
var CompositionGetReadSchema = discriminatedUnion("state", [object({
|
|
12909
|
+
state: literal("loaded"),
|
|
12910
|
+
view: CompositionViewSchema.nullable()
|
|
12911
|
+
}), CompositionsNotLoadedSchema]);
|
|
12638
12912
|
/** What a compile attempt produced. */
|
|
12639
12913
|
var CoreBlockCompileResultSchema = object({
|
|
12640
12914
|
ok: boolean(),
|
|
@@ -12672,7 +12946,72 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
12672
12946
|
}), method(object({}), object({ libs: array(object({
|
|
12673
12947
|
filePath: string(),
|
|
12674
12948
|
content: string()
|
|
12675
|
-
})) }), { auth: "admin" })
|
|
12949
|
+
})) }), { auth: "admin" }), method(object({ block: CompositionBlockInputSchema }), object({ block: CoreBlockSchema }), {
|
|
12950
|
+
kind: "mutation",
|
|
12951
|
+
auth: "admin",
|
|
12952
|
+
caller: "required"
|
|
12953
|
+
}), method(object({
|
|
12954
|
+
blockId: string(),
|
|
12955
|
+
expectedUpdatedAt: number(),
|
|
12956
|
+
block: CompositionBlockInputSchema.partial()
|
|
12957
|
+
}), object({ block: CoreBlockSchema }), {
|
|
12958
|
+
kind: "mutation",
|
|
12959
|
+
auth: "admin",
|
|
12960
|
+
caller: "required"
|
|
12961
|
+
}), method(object({ blockId: string() }), CompositionGetReadSchema, { auth: "admin" }), method(object({}), CompositionListReadSchema, { auth: "admin" }), method(object({
|
|
12962
|
+
composition: CompositionSchema,
|
|
12963
|
+
blockId: string().optional()
|
|
12964
|
+
}), CompositionValidationSchema, {
|
|
12965
|
+
kind: "mutation",
|
|
12966
|
+
auth: "admin",
|
|
12967
|
+
access: "view"
|
|
12968
|
+
});
|
|
12969
|
+
var ComposerBlockSchema = object({
|
|
12970
|
+
id: string().min(1),
|
|
12971
|
+
name: string().min(1).max(120),
|
|
12972
|
+
enabled: boolean(),
|
|
12973
|
+
updatedAt: number(),
|
|
12974
|
+
composition: CompositionSchema
|
|
12975
|
+
});
|
|
12976
|
+
/**
|
|
12977
|
+
* A stored composition row that no longer PARSES — a schema a release
|
|
12978
|
+
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
12979
|
+
* its device as a placeholder and reports the block `failed` naming the parse
|
|
12980
|
+
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
12981
|
+
*/
|
|
12982
|
+
var ComposerUnreadableBlockSchema = object({
|
|
12983
|
+
id: string().min(1),
|
|
12984
|
+
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
12985
|
+
name: string().nullable(),
|
|
12986
|
+
/** The parse error, in the operator's words. */
|
|
12987
|
+
error: string()
|
|
12988
|
+
});
|
|
12989
|
+
method(object({
|
|
12990
|
+
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
12991
|
+
integrationId: string().nullable(),
|
|
12992
|
+
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
12993
|
+
storeLoaded: boolean(),
|
|
12994
|
+
blocks: array(ComposerBlockSchema),
|
|
12995
|
+
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
12996
|
+
restartBlockIds: array(string()),
|
|
12997
|
+
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
12998
|
+
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
12999
|
+
}), object({
|
|
13000
|
+
blocks: array(object({
|
|
13001
|
+
blockId: string(),
|
|
13002
|
+
status: CompositionRunStatusSchema,
|
|
13003
|
+
reason: string().optional()
|
|
13004
|
+
})),
|
|
13005
|
+
/**
|
|
13006
|
+
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
13007
|
+
* integration unknown, its own rows unread or read empty once). An empty
|
|
13008
|
+
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
13009
|
+
*/
|
|
13010
|
+
acted: boolean()
|
|
13011
|
+
}), {
|
|
13012
|
+
kind: "mutation",
|
|
13013
|
+
auth: "admin"
|
|
13014
|
+
}), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
12676
13015
|
/**
|
|
12677
13016
|
* `custom-model-registry` — collection cap exposing operator-registered
|
|
12678
13017
|
* custom detection models. Each provider (today: `addon-model-studio`)
|
|
@@ -18417,8 +18756,8 @@ var NcTestResultSchema = object({
|
|
|
18417
18756
|
className: string().optional(),
|
|
18418
18757
|
label: string().optional()
|
|
18419
18758
|
});
|
|
18420
|
-
/** The rule kinds, as data. `NcRuleKind` in `notification/rule-kinds.ts` is
|
|
18421
|
-
*
|
|
18759
|
+
/** The rule kinds, as data. `NcRuleKind` in `notification/rule-kinds.ts` is
|
|
18760
|
+
* `z.infer` of this schema — one shape, no twin. `mixed` is DERIVED
|
|
18422
18761
|
* (a stored system rule whose kinds span families, D637) and never authored. */
|
|
18423
18762
|
var NcRuleKindSchema = _enum([
|
|
18424
18763
|
"detection",
|
|
@@ -21613,7 +21952,8 @@ var PipelineModelOptionSchema = object({
|
|
|
21613
21952
|
})),
|
|
21614
21953
|
group: ModelVariantGroupSchema.optional(),
|
|
21615
21954
|
legacy: boolean().optional(),
|
|
21616
|
-
provider: ModelProviderIdSchema.optional()
|
|
21955
|
+
provider: ModelProviderIdSchema.optional(),
|
|
21956
|
+
defaultConfidence: number().optional()
|
|
21617
21957
|
});
|
|
21618
21958
|
var ConfigFieldBridge = custom();
|
|
21619
21959
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -34488,6 +34828,38 @@ DeviceType.Camera, method(object({
|
|
|
34488
34828
|
detection: array(ZoneRuleSchema).readonly(),
|
|
34489
34829
|
package: array(ZoneRuleSchema).readonly()
|
|
34490
34830
|
});
|
|
34831
|
+
var NUMBER = {
|
|
34832
|
+
kind: "fixed",
|
|
34833
|
+
result: ["number"]
|
|
34834
|
+
};
|
|
34835
|
+
var BOOLEAN = {
|
|
34836
|
+
kind: "fixed",
|
|
34837
|
+
result: ["boolean"]
|
|
34838
|
+
};
|
|
34839
|
+
Object.freeze({
|
|
34840
|
+
min: NUMBER,
|
|
34841
|
+
max: NUMBER,
|
|
34842
|
+
abs: NUMBER,
|
|
34843
|
+
floor: NUMBER,
|
|
34844
|
+
ceil: NUMBER,
|
|
34845
|
+
sqrt: NUMBER,
|
|
34846
|
+
round: NUMBER,
|
|
34847
|
+
pow: NUMBER,
|
|
34848
|
+
clamp: NUMBER,
|
|
34849
|
+
avg: NUMBER,
|
|
34850
|
+
sum: NUMBER,
|
|
34851
|
+
age: NUMBER,
|
|
34852
|
+
convert: NUMBER,
|
|
34853
|
+
coalesce: { kind: "coalesce" },
|
|
34854
|
+
any: BOOLEAN,
|
|
34855
|
+
all: BOOLEAN,
|
|
34856
|
+
within: BOOLEAN,
|
|
34857
|
+
latest: {
|
|
34858
|
+
kind: "fixed",
|
|
34859
|
+
result: ["number", "null"]
|
|
34860
|
+
}
|
|
34861
|
+
});
|
|
34862
|
+
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
34491
34863
|
/**
|
|
34492
34864
|
* Accessory device helpers — shared across drivers.
|
|
34493
34865
|
*
|
|
@@ -36796,6 +37168,18 @@ Object.freeze({
|
|
|
36796
37168
|
addonId: null,
|
|
36797
37169
|
access: "create"
|
|
36798
37170
|
},
|
|
37171
|
+
"composer.applyBlocks": {
|
|
37172
|
+
capName: "composer",
|
|
37173
|
+
capScope: "system",
|
|
37174
|
+
addonId: null,
|
|
37175
|
+
access: "create"
|
|
37176
|
+
},
|
|
37177
|
+
"composer.getStates": {
|
|
37178
|
+
capName: "composer",
|
|
37179
|
+
capScope: "system",
|
|
37180
|
+
addonId: null,
|
|
37181
|
+
access: "view"
|
|
37182
|
+
},
|
|
36799
37183
|
"connectionTest.describeTest": {
|
|
36800
37184
|
capName: "connection-test",
|
|
36801
37185
|
capScope: "system",
|
|
@@ -36856,6 +37240,12 @@ Object.freeze({
|
|
|
36856
37240
|
addonId: null,
|
|
36857
37241
|
access: "create"
|
|
36858
37242
|
},
|
|
37243
|
+
"coreBlocks.createComposition": {
|
|
37244
|
+
capName: "core-blocks",
|
|
37245
|
+
capScope: "system",
|
|
37246
|
+
addonId: null,
|
|
37247
|
+
access: "create"
|
|
37248
|
+
},
|
|
36859
37249
|
"coreBlocks.delete": {
|
|
36860
37250
|
capName: "core-blocks",
|
|
36861
37251
|
capScope: "system",
|
|
@@ -36868,6 +37258,12 @@ Object.freeze({
|
|
|
36868
37258
|
addonId: null,
|
|
36869
37259
|
access: "view"
|
|
36870
37260
|
},
|
|
37261
|
+
"coreBlocks.getComposition": {
|
|
37262
|
+
capName: "core-blocks",
|
|
37263
|
+
capScope: "system",
|
|
37264
|
+
addonId: null,
|
|
37265
|
+
access: "view"
|
|
37266
|
+
},
|
|
36871
37267
|
"coreBlocks.getTypeDefs": {
|
|
36872
37268
|
capName: "core-blocks",
|
|
36873
37269
|
capScope: "system",
|
|
@@ -36880,6 +37276,12 @@ Object.freeze({
|
|
|
36880
37276
|
addonId: null,
|
|
36881
37277
|
access: "view"
|
|
36882
37278
|
},
|
|
37279
|
+
"coreBlocks.listCompositions": {
|
|
37280
|
+
capName: "core-blocks",
|
|
37281
|
+
capScope: "system",
|
|
37282
|
+
addonId: null,
|
|
37283
|
+
access: "view"
|
|
37284
|
+
},
|
|
36883
37285
|
"coreBlocks.restart": {
|
|
36884
37286
|
capName: "core-blocks",
|
|
36885
37287
|
capScope: "system",
|
|
@@ -36898,6 +37300,18 @@ Object.freeze({
|
|
|
36898
37300
|
addonId: null,
|
|
36899
37301
|
access: "create"
|
|
36900
37302
|
},
|
|
37303
|
+
"coreBlocks.updateComposition": {
|
|
37304
|
+
capName: "core-blocks",
|
|
37305
|
+
capScope: "system",
|
|
37306
|
+
addonId: null,
|
|
37307
|
+
access: "create"
|
|
37308
|
+
},
|
|
37309
|
+
"coreBlocks.validateComposition": {
|
|
37310
|
+
capName: "core-blocks",
|
|
37311
|
+
capScope: "system",
|
|
37312
|
+
addonId: null,
|
|
37313
|
+
access: "view"
|
|
37314
|
+
},
|
|
36901
37315
|
"cover.close": {
|
|
36902
37316
|
capName: "cover",
|
|
36903
37317
|
capScope: "device",
|
|
@@ -45877,7 +46291,7 @@ var AdminUIAddon = class extends BaseAddon {
|
|
|
45877
46291
|
capability: adminUiCapability,
|
|
45878
46292
|
provider: {
|
|
45879
46293
|
getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
|
|
45880
|
-
getVersion: async () => ({ version: "1.2.
|
|
46294
|
+
getVersion: async () => ({ version: "1.2.278" })
|
|
45881
46295
|
}
|
|
45882
46296
|
}];
|
|
45883
46297
|
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{yt as e}from"./player-overlays-C78iNIuD.js";var t=e(`circle-slash`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`9`,x2:`15`,y1:`15`,y2:`9`,key:`1dfufj`}]]);export{t};
|