@camstack/addon-export-ha-mqtt 1.1.26 → 1.2.0
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/export-ha-mqtt.addon.js +560 -104
- package/dist/export-ha-mqtt.addon.mjs +560 -104
- package/package.json +1 -1
|
@@ -7119,6 +7119,17 @@ var ModelCatalogEntrySchema = object({
|
|
|
7119
7119
|
"imagenet",
|
|
7120
7120
|
"none"
|
|
7121
7121
|
]).optional(),
|
|
7122
|
+
/**
|
|
7123
|
+
* The model already applies softmax IN-GRAPH — its raw output is a
|
|
7124
|
+
* probability distribution, not logits. When set, the `softmax`
|
|
7125
|
+
* postprocessor must NOT re-apply softmax: re-softmaxing an already-normalised
|
|
7126
|
+
* probability vector collapses it toward uniform (top-1 score craters far
|
|
7127
|
+
* below its true value, making every confidence gate meaningless). Absent ⇒
|
|
7128
|
+
* the output is raw logits and the postprocessor applies softmax (the normal
|
|
7129
|
+
* case). Set on the Google AIY Birds `bird-classifier` (softmax baked into the
|
|
7130
|
+
* TF graph). Threaded to the Python pool via `PoolModelConfig.outputProbabilities`.
|
|
7131
|
+
*/
|
|
7132
|
+
outputProbabilities: boolean().optional(),
|
|
7122
7133
|
preprocessMode: _enum(["letterbox", "resize"]).optional(),
|
|
7123
7134
|
/**
|
|
7124
7135
|
* Per-MODEL postprocessor override. Absent ⇒ the step's own
|
|
@@ -7678,6 +7689,160 @@ var EncodeProfileSchema = object({
|
|
|
7678
7689
|
*/
|
|
7679
7690
|
outputArgs: array(string()).optional()
|
|
7680
7691
|
});
|
|
7692
|
+
var COCO_TO_MACRO = {
|
|
7693
|
+
mapping: {
|
|
7694
|
+
person: "person",
|
|
7695
|
+
bicycle: "vehicle",
|
|
7696
|
+
car: "vehicle",
|
|
7697
|
+
motorcycle: "vehicle",
|
|
7698
|
+
airplane: "vehicle",
|
|
7699
|
+
bus: "vehicle",
|
|
7700
|
+
train: "vehicle",
|
|
7701
|
+
truck: "vehicle",
|
|
7702
|
+
boat: "vehicle",
|
|
7703
|
+
bird: "animal",
|
|
7704
|
+
cat: "animal",
|
|
7705
|
+
dog: "animal",
|
|
7706
|
+
horse: "animal",
|
|
7707
|
+
sheep: "animal",
|
|
7708
|
+
cow: "animal",
|
|
7709
|
+
elephant: "animal",
|
|
7710
|
+
bear: "animal",
|
|
7711
|
+
zebra: "animal",
|
|
7712
|
+
giraffe: "animal",
|
|
7713
|
+
suitcase: "package",
|
|
7714
|
+
backpack: "package",
|
|
7715
|
+
handbag: "package"
|
|
7716
|
+
},
|
|
7717
|
+
preserveOriginal: false
|
|
7718
|
+
};
|
|
7719
|
+
var AUDIO_MACRO_LABELS = [
|
|
7720
|
+
{
|
|
7721
|
+
id: "speech",
|
|
7722
|
+
name: "Speech",
|
|
7723
|
+
icon: "🗣️"
|
|
7724
|
+
},
|
|
7725
|
+
{
|
|
7726
|
+
id: "scream",
|
|
7727
|
+
name: "Scream / Shout",
|
|
7728
|
+
icon: "😱"
|
|
7729
|
+
},
|
|
7730
|
+
{
|
|
7731
|
+
id: "crying",
|
|
7732
|
+
name: "Crying / Baby",
|
|
7733
|
+
icon: "😢"
|
|
7734
|
+
},
|
|
7735
|
+
{
|
|
7736
|
+
id: "laughter",
|
|
7737
|
+
name: "Laughter",
|
|
7738
|
+
icon: "😂"
|
|
7739
|
+
},
|
|
7740
|
+
{
|
|
7741
|
+
id: "music",
|
|
7742
|
+
name: "Music",
|
|
7743
|
+
icon: "🎵"
|
|
7744
|
+
},
|
|
7745
|
+
{
|
|
7746
|
+
id: "dog",
|
|
7747
|
+
name: "Dog",
|
|
7748
|
+
icon: "🐕"
|
|
7749
|
+
},
|
|
7750
|
+
{
|
|
7751
|
+
id: "cat",
|
|
7752
|
+
name: "Cat",
|
|
7753
|
+
icon: "🐈"
|
|
7754
|
+
},
|
|
7755
|
+
{
|
|
7756
|
+
id: "bird",
|
|
7757
|
+
name: "Bird",
|
|
7758
|
+
icon: "🐦"
|
|
7759
|
+
},
|
|
7760
|
+
{
|
|
7761
|
+
id: "animal",
|
|
7762
|
+
name: "Animal (other)",
|
|
7763
|
+
icon: "🐾"
|
|
7764
|
+
},
|
|
7765
|
+
{
|
|
7766
|
+
id: "alarm",
|
|
7767
|
+
name: "Alarm / Siren",
|
|
7768
|
+
icon: "🚨"
|
|
7769
|
+
},
|
|
7770
|
+
{
|
|
7771
|
+
id: "doorbell",
|
|
7772
|
+
name: "Doorbell / Knock",
|
|
7773
|
+
icon: "🔔"
|
|
7774
|
+
},
|
|
7775
|
+
{
|
|
7776
|
+
id: "glass_breaking",
|
|
7777
|
+
name: "Glass Breaking",
|
|
7778
|
+
icon: "💥"
|
|
7779
|
+
},
|
|
7780
|
+
{
|
|
7781
|
+
id: "gunshot",
|
|
7782
|
+
name: "Gunshot / Explosion",
|
|
7783
|
+
icon: "💣"
|
|
7784
|
+
},
|
|
7785
|
+
{
|
|
7786
|
+
id: "vehicle",
|
|
7787
|
+
name: "Vehicle",
|
|
7788
|
+
icon: "🚗"
|
|
7789
|
+
},
|
|
7790
|
+
{
|
|
7791
|
+
id: "siren",
|
|
7792
|
+
name: "Emergency Siren",
|
|
7793
|
+
icon: "🚑"
|
|
7794
|
+
},
|
|
7795
|
+
{
|
|
7796
|
+
id: "fire",
|
|
7797
|
+
name: "Fire / Smoke",
|
|
7798
|
+
icon: "🔥"
|
|
7799
|
+
},
|
|
7800
|
+
{
|
|
7801
|
+
id: "water",
|
|
7802
|
+
name: "Water",
|
|
7803
|
+
icon: "💧"
|
|
7804
|
+
},
|
|
7805
|
+
{
|
|
7806
|
+
id: "wind",
|
|
7807
|
+
name: "Wind / Weather",
|
|
7808
|
+
icon: "🌬️"
|
|
7809
|
+
},
|
|
7810
|
+
{
|
|
7811
|
+
id: "door",
|
|
7812
|
+
name: "Door",
|
|
7813
|
+
icon: "🚪"
|
|
7814
|
+
},
|
|
7815
|
+
{
|
|
7816
|
+
id: "footsteps",
|
|
7817
|
+
name: "Footsteps",
|
|
7818
|
+
icon: "👣"
|
|
7819
|
+
},
|
|
7820
|
+
{
|
|
7821
|
+
id: "crowd",
|
|
7822
|
+
name: "Crowd / Chatter",
|
|
7823
|
+
icon: "👥"
|
|
7824
|
+
},
|
|
7825
|
+
{
|
|
7826
|
+
id: "telephone",
|
|
7827
|
+
name: "Telephone",
|
|
7828
|
+
icon: "📞"
|
|
7829
|
+
},
|
|
7830
|
+
{
|
|
7831
|
+
id: "engine",
|
|
7832
|
+
name: "Engine / Motor",
|
|
7833
|
+
icon: "⚙️"
|
|
7834
|
+
},
|
|
7835
|
+
{
|
|
7836
|
+
id: "tools",
|
|
7837
|
+
name: "Tools / Construction",
|
|
7838
|
+
icon: "🔨"
|
|
7839
|
+
},
|
|
7840
|
+
{
|
|
7841
|
+
id: "silence",
|
|
7842
|
+
name: "Silence",
|
|
7843
|
+
icon: "🤫"
|
|
7844
|
+
}
|
|
7845
|
+
];
|
|
7681
7846
|
var YAMNET_TO_MACRO = {
|
|
7682
7847
|
mapping: {
|
|
7683
7848
|
Speech: "speech",
|
|
@@ -7944,6 +8109,125 @@ var _macroLookup = /* @__PURE__ */ new Map();
|
|
|
7944
8109
|
for (const [k, v] of Object.entries(YAMNET_TO_MACRO.mapping)) _macroLookup.set(k.toLowerCase(), v);
|
|
7945
8110
|
for (const [k, v] of Object.entries(APPLE_SA_TO_MACRO.mapping)) _macroLookup.set(k.toLowerCase(), v);
|
|
7946
8111
|
/**
|
|
8112
|
+
* Unified event-kind taxonomy — THE single source of truth for
|
|
8113
|
+
* `kind → { parentKind, category, level, color, iconId, labelKey, label,
|
|
8114
|
+
* icon }`.
|
|
8115
|
+
*
|
|
8116
|
+
* This dictionary folds together what used to be scattered across four
|
|
8117
|
+
* copies:
|
|
8118
|
+
* - `capabilities/sensor-event-kinds.ts` (sensor cap colors)
|
|
8119
|
+
* - `addon-post-analysis/.../services/event-kinds.ts`
|
|
8120
|
+
* (MOTION/PERSON/VEHICLE… _COLOR constants)
|
|
8121
|
+
* - `ui-library/composites/detection-colors.ts` (CLASS_COLORS)
|
|
8122
|
+
* - `addon-post-analysis/shared/frame/box-drawer.ts` (DEFAULT_COLOR)
|
|
8123
|
+
* - the COCO / audio class maps (macro ↔ sub relationships)
|
|
8124
|
+
*
|
|
8125
|
+
* The DATA (serializable — color/iconId/labelKey/parentKind) lives here in
|
|
8126
|
+
* `@camstack/types`. The UI-side mapping `iconId → lucide component` and
|
|
8127
|
+
* `labelKey → t()` lives in `@camstack/ui-library`. UIs never hardcode a
|
|
8128
|
+
* color or an icon: they read this dictionary (server descriptors carry the
|
|
8129
|
+
* fields inline; the client resolves color/icon/label from `iconId`/`kind`).
|
|
8130
|
+
*
|
|
8131
|
+
* Two levels only (v1 YAGNI): macro → sub. `person` is a leaf macro.
|
|
8132
|
+
*/
|
|
8133
|
+
var TAXONOMY_COLORS = {
|
|
8134
|
+
motion: "#f59e0b",
|
|
8135
|
+
audio: "#06b6d4",
|
|
8136
|
+
person: "#22c55e",
|
|
8137
|
+
vehicle: "#3b82f6",
|
|
8138
|
+
animal: "#f97316",
|
|
8139
|
+
package: "#a855f7",
|
|
8140
|
+
sensor: "#8b5cf6",
|
|
8141
|
+
control: "#10b981",
|
|
8142
|
+
genericDetection: "#64748b"
|
|
8143
|
+
};
|
|
8144
|
+
var DETECTION_SUB_COLORS = {
|
|
8145
|
+
car: "#f59e0b",
|
|
8146
|
+
truck: "#d97706",
|
|
8147
|
+
bus: "#b45309",
|
|
8148
|
+
motorcycle: "#eab308",
|
|
8149
|
+
bicycle: "#ca8a04",
|
|
8150
|
+
airplane: "#60a5fa",
|
|
8151
|
+
boat: "#2563eb",
|
|
8152
|
+
train: "#1d4ed8",
|
|
8153
|
+
bird: "#14b8a6",
|
|
8154
|
+
dog: "#84cc16",
|
|
8155
|
+
cat: "#f97316",
|
|
8156
|
+
horse: "#a16207",
|
|
8157
|
+
sheep: "#a3a3a3",
|
|
8158
|
+
cow: "#78716c",
|
|
8159
|
+
elephant: "#6b7280",
|
|
8160
|
+
bear: "#7c2d12",
|
|
8161
|
+
zebra: "#404040",
|
|
8162
|
+
giraffe: "#d4a373"
|
|
8163
|
+
};
|
|
8164
|
+
function titleCase(id) {
|
|
8165
|
+
return id.split(/[-_ ]/).filter((p) => p.length > 0).map((p) => p.charAt(0).toUpperCase() + p.slice(1)).join(" ");
|
|
8166
|
+
}
|
|
8167
|
+
var entries = /* @__PURE__ */ new Map();
|
|
8168
|
+
function macro(kind, category, color, iconId, label) {
|
|
8169
|
+
entries.set(kind, {
|
|
8170
|
+
kind,
|
|
8171
|
+
parentKind: null,
|
|
8172
|
+
level: "macro",
|
|
8173
|
+
category,
|
|
8174
|
+
color,
|
|
8175
|
+
iconId,
|
|
8176
|
+
labelKey: `eventKind.${kind}`,
|
|
8177
|
+
label
|
|
8178
|
+
});
|
|
8179
|
+
}
|
|
8180
|
+
function sub(kind, parentKind, category, color, iconId, label) {
|
|
8181
|
+
entries.set(kind, {
|
|
8182
|
+
kind,
|
|
8183
|
+
parentKind,
|
|
8184
|
+
level: "sub",
|
|
8185
|
+
category,
|
|
8186
|
+
color,
|
|
8187
|
+
iconId,
|
|
8188
|
+
labelKey: `eventKind.${kind}`,
|
|
8189
|
+
label
|
|
8190
|
+
});
|
|
8191
|
+
}
|
|
8192
|
+
macro("motion", "motion", TAXONOMY_COLORS.motion, "motion", "Motion");
|
|
8193
|
+
macro("audio", "audio", TAXONOMY_COLORS.audio, "audio", "Audio");
|
|
8194
|
+
macro("person", "detection", TAXONOMY_COLORS.person, "person", "Person");
|
|
8195
|
+
macro("vehicle", "detection", TAXONOMY_COLORS.vehicle, "vehicle", "Vehicle");
|
|
8196
|
+
macro("animal", "detection", TAXONOMY_COLORS.animal, "animal", "Animal");
|
|
8197
|
+
macro("package", "package", TAXONOMY_COLORS.package, "package", "Package");
|
|
8198
|
+
macro("sensor", "sensor", TAXONOMY_COLORS.sensor, "sensor", "Sensor");
|
|
8199
|
+
macro("control", "control", TAXONOMY_COLORS.control, "control", "Control");
|
|
8200
|
+
for (const [cocoClass, macroClass] of Object.entries(COCO_TO_MACRO.mapping)) {
|
|
8201
|
+
if (macroClass !== "vehicle" && macroClass !== "animal") continue;
|
|
8202
|
+
if (entries.has(cocoClass)) continue;
|
|
8203
|
+
sub(cocoClass, macroClass, "detection", DETECTION_SUB_COLORS[cocoClass] ?? TAXONOMY_COLORS.genericDetection, cocoClass, titleCase(cocoClass));
|
|
8204
|
+
}
|
|
8205
|
+
sub("package-delivered", "package", "package", TAXONOMY_COLORS.package, "package", "Package delivered");
|
|
8206
|
+
sub("package-picked-up", "package", "package", TAXONOMY_COLORS.package, "package", "Package picked up");
|
|
8207
|
+
sub("contact", "sensor", "sensor", "#f59e0b", "door", "Contact");
|
|
8208
|
+
sub("motion-sensor", "sensor", "sensor", TAXONOMY_COLORS.sensor, "pir", "Motion sensor");
|
|
8209
|
+
sub("smoke", "sensor", "sensor", "#ef4444", "smoke", "Smoke");
|
|
8210
|
+
sub("flood", "sensor", "sensor", "#3b82f6", "water", "Water leak");
|
|
8211
|
+
sub("gas", "sensor", "sensor", "#ef4444", "gas", "Gas");
|
|
8212
|
+
sub("carbon-monoxide", "sensor", "sensor", "#dc2626", "smoke", "Carbon monoxide");
|
|
8213
|
+
sub("vibration", "sensor", "sensor", "#eab308", "vibration", "Vibration");
|
|
8214
|
+
sub("tamper", "sensor", "sensor", "#f97316", "tamper", "Tamper");
|
|
8215
|
+
sub("presence", "sensor", "sensor", "#22c55e", "presence", "Presence");
|
|
8216
|
+
sub("enum-sensor", "sensor", "sensor", TAXONOMY_COLORS.sensor, "generic", "Sensor state");
|
|
8217
|
+
sub("device-event", "sensor", "sensor", "#10b981", "button", "Device event");
|
|
8218
|
+
sub("lock", "control", "control", "#0ea5e9", "lock", "Lock");
|
|
8219
|
+
sub("switch", "control", "control", TAXONOMY_COLORS.control, "switch", "Switch");
|
|
8220
|
+
sub("siren", "control", "control", "#dc2626", "siren", "Siren");
|
|
8221
|
+
sub("button", "control", "control", "#10b981", "button", "Button");
|
|
8222
|
+
sub("doorbell", "control", "control", "#a855f7", "doorbell", "Doorbell");
|
|
8223
|
+
for (const l of AUDIO_MACRO_LABELS) {
|
|
8224
|
+
const kind = `audio-${l.id}`;
|
|
8225
|
+
if (entries.has(kind)) continue;
|
|
8226
|
+
sub(kind, "audio", "audio", TAXONOMY_COLORS.audio, kind, l.name);
|
|
8227
|
+
}
|
|
8228
|
+
/** The complete taxonomy dictionary, keyed by kind. */
|
|
8229
|
+
var EVENT_TAXONOMY = Object.freeze(Object.fromEntries(entries));
|
|
8230
|
+
/**
|
|
7947
8231
|
* Error types for the safe expression engine. Two distinct classes so callers
|
|
7948
8232
|
* can tell a compile-time (grammar) failure from a runtime (evaluation)
|
|
7949
8233
|
* failure — both are non-fatal to the host: read paths degrade to "skip link".
|
|
@@ -10859,10 +11143,7 @@ var ConfigUISchemaNullableBridge = custom();
|
|
|
10859
11143
|
var InferenceCapabilitiesBridge = custom();
|
|
10860
11144
|
var ModelAvailabilityListBridge = custom();
|
|
10861
11145
|
var PipelineRunResultBridge = custom();
|
|
10862
|
-
method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngineChoiceSchema), method(PipelineEngineChoiceSchema, array(PipelineDefaultStepSchema)), method(_void(),
|
|
10863
|
-
kind: "mutation",
|
|
10864
|
-
auth: "admin"
|
|
10865
|
-
}), method(object({ nodeId: string() }), EngineProvisioningSchema), method(_void(), record(string(), object({
|
|
11146
|
+
method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngineChoiceSchema), method(PipelineEngineChoiceSchema, array(PipelineDefaultStepSchema)), method(object({ nodeId: string() }), EngineProvisioningSchema), method(_void(), record(string(), object({
|
|
10866
11147
|
modelId: string(),
|
|
10867
11148
|
settings: record(string(), unknown()).readonly()
|
|
10868
11149
|
}))), method(object({ steps: record(string(), object({
|
|
@@ -10922,13 +11203,33 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
10922
11203
|
* (inputClasses ≠ null) are skipped and served per-track via
|
|
10923
11204
|
* pipelineRunner.runDetailSubtree (two-plane design).
|
|
10924
11205
|
*/
|
|
10925
|
-
plane: _enum(["full", "frame"]).optional()
|
|
11206
|
+
plane: _enum(["full", "frame"]).optional(),
|
|
11207
|
+
/**
|
|
11208
|
+
* Inference-device selector (Phase 2 multi-device). Format
|
|
11209
|
+
* `<backend>:<device>` (e.g. `openvino:gpu`, `edgetpu:usb`, `cpu`).
|
|
11210
|
+
* Omitted ⇒ the runner's default device (current single-engine
|
|
11211
|
+
* behaviour). Selects WHICH device pool of the node runs the call.
|
|
11212
|
+
*/
|
|
11213
|
+
deviceKey: string().optional()
|
|
10926
11214
|
}), PipelineRunResultBridge, { kind: "mutation" }), method(object({
|
|
10927
11215
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
10928
11216
|
steps: array(PipelineStepInputSchema).min(1),
|
|
10929
11217
|
frames: array(FrameInputSchema).min(1).max(255),
|
|
10930
11218
|
deviceId: number$1().optional(),
|
|
10931
|
-
sessionId: string().optional()
|
|
11219
|
+
sessionId: string().optional(),
|
|
11220
|
+
/**
|
|
11221
|
+
* Pure-inference benchmark hint. A NONZERO uint32 pins every frame in
|
|
11222
|
+
* the batch to the Python pool's bench preprocess cache
|
|
11223
|
+
* (`_bench_frame_id`) so a REPEATED benchmark frame is decoded +
|
|
11224
|
+
* preprocessed ONCE and every later inference is a pure-inference cache
|
|
11225
|
+
* hit — the sustained-throughput run measures inference, not
|
|
11226
|
+
* decode+preprocess+infer. Omitted/0 for live frames (all different →
|
|
11227
|
+
* full preprocess every call, correct). Fresh per sustained run;
|
|
11228
|
+
* released via `uncacheFrame`.
|
|
11229
|
+
*/
|
|
11230
|
+
frameId: number$1().int().nonnegative().optional(),
|
|
11231
|
+
/** Inference-device selector (Phase 2 multi-device); see runPipeline. */
|
|
11232
|
+
deviceKey: string().optional()
|
|
10932
11233
|
}), object({ results: array(PipelineRunResultBridge).readonly() }), { kind: "mutation" }), method(object({
|
|
10933
11234
|
data: _instanceof(Uint8Array),
|
|
10934
11235
|
width: number$1().int().positive(),
|
|
@@ -10960,8 +11261,18 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
10960
11261
|
* - `runtime` — main camera-serving engine (no idle TTL).
|
|
10961
11262
|
* - `warm-override` — benchmark/test override held in the warm
|
|
10962
11263
|
* cache; auto-disposed after the idle TTL.
|
|
11264
|
+
* - `device-pool` — a concurrent per-device pool (Phase 2
|
|
11265
|
+
* multi-device, keyed by `deviceKey`) resolved
|
|
11266
|
+
* via `resolveDeviceFactory`. Runs alongside the
|
|
11267
|
+
* `runtime` engine on a DIFFERENT accelerator
|
|
11268
|
+
* (NPU / iGPU / Coral) — this is how the
|
|
11269
|
+
* Engines tab shows all pools running at once.
|
|
10963
11270
|
*/
|
|
10964
|
-
kind: _enum([
|
|
11271
|
+
kind: _enum([
|
|
11272
|
+
"runtime",
|
|
11273
|
+
"warm-override",
|
|
11274
|
+
"device-pool"
|
|
11275
|
+
]),
|
|
10965
11276
|
/** Native pid of the underlying Python pool (null when no pool). */
|
|
10966
11277
|
poolPid: number$1().nullable(),
|
|
10967
11278
|
/** ms since this factory was last used (null when not warm-tracked). */
|
|
@@ -11303,7 +11614,14 @@ var RunnerCameraConfigSchema = object({
|
|
|
11303
11614
|
* camera's detect node differs from its source-owner (P2d, gated by the
|
|
11304
11615
|
* `remoteSourcingNodes` rollout setting).
|
|
11305
11616
|
*/
|
|
11306
|
-
frameSource: RunnerFrameSourceSchema.default({ kind: "local-broker" })
|
|
11617
|
+
frameSource: RunnerFrameSourceSchema.default({ kind: "local-broker" }),
|
|
11618
|
+
/**
|
|
11619
|
+
* Inference-device selector for this camera's sessions (Phase 2 multi-device).
|
|
11620
|
+
* Format `<backend>:<device>` (e.g. `openvino:gpu`, `edgetpu:usb`, `cpu`);
|
|
11621
|
+
* omitted ⇒ the runner's default device. The engine itself stays node-local —
|
|
11622
|
+
* this only selects WHICH device pool of that node runs the session.
|
|
11623
|
+
*/
|
|
11624
|
+
deviceKey: string().optional()
|
|
11307
11625
|
});
|
|
11308
11626
|
motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
|
|
11309
11627
|
/**
|
|
@@ -11324,6 +11642,19 @@ var RunnerLocalLoadSchema = object({
|
|
|
11324
11642
|
avgInferenceTimeMs: number$1(),
|
|
11325
11643
|
/** Total queue depth across motion + detection queues. */
|
|
11326
11644
|
queueDepthTotal: number$1(),
|
|
11645
|
+
/**
|
|
11646
|
+
* Per-inference-device live load (multi-device C4). One entry per deviceKey
|
|
11647
|
+
* this runner currently has attached cameras on, so the orchestrator's second
|
|
11648
|
+
* `balance()` pass (over a node's devices) weights on real per-pool session
|
|
11649
|
+
* counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
|
|
11650
|
+
* per device is 0 until the pool backlog gets a public accessor (follow-up).
|
|
11651
|
+
*/
|
|
11652
|
+
devices: array(object({
|
|
11653
|
+
deviceKey: string(),
|
|
11654
|
+
backend: string(),
|
|
11655
|
+
attachedCameras: number$1(),
|
|
11656
|
+
queueDepthTotal: number$1()
|
|
11657
|
+
})).default([]),
|
|
11327
11658
|
/** Hardware capability flags reported by this node. */
|
|
11328
11659
|
hardware: object({
|
|
11329
11660
|
hasGpu: boolean(),
|
|
@@ -12799,6 +13130,8 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
|
|
|
12799
13130
|
kind: "mutation",
|
|
12800
13131
|
auth: "admin"
|
|
12801
13132
|
});
|
|
13133
|
+
DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Camera, DeviceType.Hub, DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder;
|
|
13134
|
+
new Set(Object.values(DeviceType));
|
|
12802
13135
|
/**
|
|
12803
13136
|
* `addon-pages` — system-scoped singleton aggregator cap. Public-facing
|
|
12804
13137
|
* surface that admin-ui consumes through `useAddonPagesListPages()`.
|
|
@@ -15918,17 +16251,30 @@ var EventKindCategorySchema = _enum([
|
|
|
15918
16251
|
"audio",
|
|
15919
16252
|
"detection",
|
|
15920
16253
|
"sensor",
|
|
16254
|
+
"control",
|
|
15921
16255
|
"custom",
|
|
15922
16256
|
"package"
|
|
15923
16257
|
]);
|
|
16258
|
+
/** Taxonomy level — macro (timeline lane) vs sub (events-page leaf). */
|
|
16259
|
+
var EventKindLevelSchema = _enum(["macro", "sub"]);
|
|
15924
16260
|
var EventKindDescriptorSchema = object({
|
|
15925
|
-
/** Stable kind id (e.g. 'motion', '
|
|
16261
|
+
/** Stable kind id (e.g. 'motion', 'vehicle', 'car', 'lock'). */
|
|
15926
16262
|
kind: string(),
|
|
16263
|
+
/** i18n key resolved on the UI side; `label` is the English fallback. */
|
|
16264
|
+
labelKey: string(),
|
|
16265
|
+
/** English fallback label (kept for clients that don't translate). */
|
|
15927
16266
|
label: string(),
|
|
15928
16267
|
/** Hex color for timeline/legend rendering. */
|
|
15929
16268
|
color: string(),
|
|
16269
|
+
/** Dictionary id → lucide component on the UI side. */
|
|
16270
|
+
iconId: string(),
|
|
16271
|
+
/** Legacy closed-vocab glyph — fallback for `iconId`. */
|
|
15930
16272
|
icon: EventKindIconSchema,
|
|
15931
16273
|
category: EventKindCategorySchema,
|
|
16274
|
+
/** Macro parent for this kind ('car' → 'vehicle'); null for a macro. */
|
|
16275
|
+
parentKind: string().nullable(),
|
|
16276
|
+
/** Derived from `parentKind`, explicit for the client tree. */
|
|
16277
|
+
level: EventKindLevelSchema,
|
|
15932
16278
|
/** Which cap + device contributes this kind. For built-ins the camera
|
|
15933
16279
|
* itself; for sensor kinds the LINKED source device. */
|
|
15934
16280
|
source: object({
|
|
@@ -16001,11 +16347,21 @@ var TrackAudioLabelSchema = object({
|
|
|
16001
16347
|
firstAt: number$1(),
|
|
16002
16348
|
lastAt: number$1()
|
|
16003
16349
|
});
|
|
16350
|
+
/**
|
|
16351
|
+
* How a track was produced. `pipeline` (default / absent) = the spatial
|
|
16352
|
+
* detection+tracking pipeline. `sensor` = a SYNTHETIC track projected from a
|
|
16353
|
+
* linked sensor/control state change (no positions; carries a snapshot). The
|
|
16354
|
+
* spatial subsystems (tracker association, occupancy count, re-id/embedding,
|
|
16355
|
+
* resurrection) MUST skip `sensor` tracks — they have no bbox trajectory.
|
|
16356
|
+
*/
|
|
16357
|
+
var TrackSourceSchema = _enum(["pipeline", "sensor"]);
|
|
16004
16358
|
var TrackSchema = object({
|
|
16005
16359
|
trackId: string(),
|
|
16006
16360
|
deviceId: number$1(),
|
|
16007
16361
|
className: string(),
|
|
16008
16362
|
label: string().optional(),
|
|
16363
|
+
/** Track provenance. Absent ⇒ `pipeline` (legacy rows). */
|
|
16364
|
+
source: TrackSourceSchema.optional(),
|
|
16009
16365
|
firstSeen: number$1(),
|
|
16010
16366
|
lastSeen: number$1(),
|
|
16011
16367
|
/** Frame-rate position history (subject to maxPositionHistory cap). */
|
|
@@ -16382,6 +16738,76 @@ DeviceType.Camera, method(object({ deviceId: number$1() }), array(TrackSchema).r
|
|
|
16382
16738
|
eventId: string(),
|
|
16383
16739
|
timestamp: number$1()
|
|
16384
16740
|
});
|
|
16741
|
+
/**
|
|
16742
|
+
* Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
|
|
16743
|
+
* `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
|
|
16744
|
+
* caps into per-camera event-kind descriptors.
|
|
16745
|
+
*
|
|
16746
|
+
* The descriptor DATA (color / iconId / labelKey / parentKind / category)
|
|
16747
|
+
* is NOT duplicated here — every entry is derived from the single
|
|
16748
|
+
* `EVENT_TAXONOMY` dictionary (`catalogs/event-taxonomy.ts`). This file owns
|
|
16749
|
+
* ONLY the cap-name → taxonomy-kind mapping. Adding a new eventful sensor /
|
|
16750
|
+
* control cap means adding one line here (and a taxonomy entry); the anti-
|
|
16751
|
+
* drift guard `scripts/check-event-kind-coverage.ts` fails the build if an
|
|
16752
|
+
* eventful cap is missing.
|
|
16753
|
+
*/
|
|
16754
|
+
/** Map a taxonomy `iconId` onto the legacy closed `EventKindIcon` enum. */
|
|
16755
|
+
var LEGACY_ICON = {
|
|
16756
|
+
motion: "motion",
|
|
16757
|
+
audio: "audio",
|
|
16758
|
+
person: "person",
|
|
16759
|
+
vehicle: "vehicle",
|
|
16760
|
+
animal: "animal",
|
|
16761
|
+
package: "package",
|
|
16762
|
+
door: "door",
|
|
16763
|
+
pir: "pir",
|
|
16764
|
+
smoke: "smoke",
|
|
16765
|
+
water: "water",
|
|
16766
|
+
button: "button",
|
|
16767
|
+
generic: "generic",
|
|
16768
|
+
gas: "smoke",
|
|
16769
|
+
vibration: "generic",
|
|
16770
|
+
tamper: "generic",
|
|
16771
|
+
presence: "person",
|
|
16772
|
+
lock: "generic",
|
|
16773
|
+
siren: "generic",
|
|
16774
|
+
switch: "generic",
|
|
16775
|
+
doorbell: "button"
|
|
16776
|
+
};
|
|
16777
|
+
function legacyIcon(iconId) {
|
|
16778
|
+
return LEGACY_ICON[iconId] ?? "generic";
|
|
16779
|
+
}
|
|
16780
|
+
/**
|
|
16781
|
+
* Cap name → taxonomy kind id. Covers EVERY eventful sensor / control cap.
|
|
16782
|
+
* The anti-drift guard cross-checks this against the eventful caps declared
|
|
16783
|
+
* in `packages/types/src/capabilities/*.cap.ts`.
|
|
16784
|
+
*/
|
|
16785
|
+
var CAP_TO_KIND = {
|
|
16786
|
+
contact: "contact",
|
|
16787
|
+
motion: "motion-sensor",
|
|
16788
|
+
smoke: "smoke",
|
|
16789
|
+
flood: "flood",
|
|
16790
|
+
gas: "gas",
|
|
16791
|
+
"carbon-monoxide": "carbon-monoxide",
|
|
16792
|
+
vibration: "vibration",
|
|
16793
|
+
tamper: "tamper",
|
|
16794
|
+
presence: "presence",
|
|
16795
|
+
"enum-sensor": "enum-sensor",
|
|
16796
|
+
"event-emitter": "device-event",
|
|
16797
|
+
"lock-control": "lock",
|
|
16798
|
+
switch: "switch",
|
|
16799
|
+
button: "button",
|
|
16800
|
+
doorbell: "doorbell"
|
|
16801
|
+
};
|
|
16802
|
+
function buildDescriptor(capName, kind) {
|
|
16803
|
+
const t = EVENT_TAXONOMY[kind];
|
|
16804
|
+
if (t === void 0) throw new Error(`EVENT_KIND_BY_CAP: cap '${capName}' maps to unknown taxonomy kind '${kind}'`);
|
|
16805
|
+
return {
|
|
16806
|
+
...t,
|
|
16807
|
+
icon: legacyIcon(t.iconId)
|
|
16808
|
+
};
|
|
16809
|
+
}
|
|
16810
|
+
Object.freeze(Object.fromEntries(Object.entries(CAP_TO_KIND).map(([capName, kind]) => [capName, buildDescriptor(capName, kind)])));
|
|
16385
16811
|
var CameraPipelineConfigSchema = object({
|
|
16386
16812
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
16387
16813
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -16400,13 +16826,11 @@ var PipelineTemplateSchema = object({
|
|
|
16400
16826
|
createdAt: string(),
|
|
16401
16827
|
updatedAt: string()
|
|
16402
16828
|
});
|
|
16403
|
-
var
|
|
16404
|
-
enabled: boolean(),
|
|
16829
|
+
var DeviceStepConfigSchema = object({
|
|
16405
16830
|
modelId: string().optional(),
|
|
16406
|
-
settings: record(string(), unknown()).
|
|
16831
|
+
settings: record(string(), unknown()).optional()
|
|
16407
16832
|
});
|
|
16408
16833
|
var AgentPipelineSettingsSchema = object({
|
|
16409
|
-
addonDefaults: record(string(), AgentAddonConfigSchema).readonly(),
|
|
16410
16834
|
maxCameras: number$1().int().nonnegative().nullable().default(null),
|
|
16411
16835
|
/** Per-node detection weight (relative share for the quota balancer). */
|
|
16412
16836
|
detectWeight: number$1().positive().optional(),
|
|
@@ -16430,7 +16854,22 @@ var AgentPipelineSettingsSchema = object({
|
|
|
16430
16854
|
* it already uses to reach the hub). Set this only when the auto-detected
|
|
16431
16855
|
* address is wrong (multi-homed host, NAT, custom interface).
|
|
16432
16856
|
*/
|
|
16433
|
-
reachableHost: string().optional()
|
|
16857
|
+
reachableHost: string().optional(),
|
|
16858
|
+
/**
|
|
16859
|
+
* Multi-device inference opt-in (Phase 4). Per-node map deviceKey → {enabled,
|
|
16860
|
+
* weight, steps}. Absent / all-disabled ⇒ the node's single default
|
|
16861
|
+
* accelerator (safe default); two+ enabled ⇒ the dispatcher balances
|
|
16862
|
+
* detection sessions across them so they run CONCURRENTLY. `steps` is the
|
|
16863
|
+
* per-(node,device) BASE provisioning (`stepId → {modelId?, settings?}`) —
|
|
16864
|
+
* the default model/settings for every camera landing on that accelerator;
|
|
16865
|
+
* a stepId absent ⇒ the step uses that device's format default.
|
|
16866
|
+
*/
|
|
16867
|
+
inferenceDevices: record(string(), object({
|
|
16868
|
+
enabled: boolean(),
|
|
16869
|
+
weight: number$1().positive().optional(),
|
|
16870
|
+
maxSessions: number$1().int().positive().optional(),
|
|
16871
|
+
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
16872
|
+
})).optional()
|
|
16434
16873
|
});
|
|
16435
16874
|
var CameraPipelineForAgentSchema = object({
|
|
16436
16875
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -16440,14 +16879,13 @@ var CameraPipelineForAgentSchema = object({
|
|
|
16440
16879
|
}).nullable()
|
|
16441
16880
|
});
|
|
16442
16881
|
var CameraStepOverridePatchSchema = object({
|
|
16443
|
-
enabled: boolean().optional(),
|
|
16444
16882
|
modelId: string().optional(),
|
|
16445
16883
|
settings: record(string(), unknown()).readonly().optional()
|
|
16446
16884
|
});
|
|
16447
16885
|
var CameraPipelineSettingsSchema = object({
|
|
16448
16886
|
pinnedAgentNodeId: string().optional(),
|
|
16449
16887
|
stepToggles: record(string(), boolean()).optional(),
|
|
16450
|
-
|
|
16888
|
+
stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
|
|
16451
16889
|
pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
|
|
16452
16890
|
});
|
|
16453
16891
|
/**
|
|
@@ -16661,6 +17099,44 @@ var CameraStatusSchema = object({
|
|
|
16661
17099
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
16662
17100
|
fetchedAt: number$1()
|
|
16663
17101
|
});
|
|
17102
|
+
var NodeInferenceDeviceSchema = object({
|
|
17103
|
+
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
17104
|
+
key: string(),
|
|
17105
|
+
backend: string(),
|
|
17106
|
+
device: string(),
|
|
17107
|
+
format: _enum(MODEL_FORMATS),
|
|
17108
|
+
/** Whether the node's live probe reports the device as usable right now. */
|
|
17109
|
+
available: boolean(),
|
|
17110
|
+
/**
|
|
17111
|
+
* Whether this device participates in dispatch. AUTO default (spec C2):
|
|
17112
|
+
* accelerators are opt-OUT (a discovered NPU/iGPU/Coral/ANE with no stored
|
|
17113
|
+
* entry is `true`); CPU is opt-IN (`false` by default — the fallback pool,
|
|
17114
|
+
* not a balanced target). An explicit stored value always wins; a stored-only
|
|
17115
|
+
* (unavailable) key keeps its stored value.
|
|
17116
|
+
*/
|
|
17117
|
+
enabled: boolean(),
|
|
17118
|
+
/** Relative balancer weight for the enabled device (default 1). */
|
|
17119
|
+
weight: number$1(),
|
|
17120
|
+
/** Per-device concurrent-session cap; null = unlimited (multi-device C4). */
|
|
17121
|
+
maxSessions: number$1().nullable(),
|
|
17122
|
+
/** Object-detection model the executor defaults to for this deviceKey. */
|
|
17123
|
+
defaultModelId: string(),
|
|
17124
|
+
/**
|
|
17125
|
+
* Per-(node,device) BASE provisioning (C7.2/C7.4) — the RAW stored
|
|
17126
|
+
* `stepId → {modelId?, settings?}` map from `inferenceDevices[key].steps`.
|
|
17127
|
+
* Absent/empty ⇒ no base (every step uses its device format default). The
|
|
17128
|
+
* UI cross-references `pipelineExecutor.getSchema` for the models actually
|
|
17129
|
+
* available per format; this is the stored selection that becomes the
|
|
17130
|
+
* default for EVERY camera landing on this accelerator.
|
|
17131
|
+
*/
|
|
17132
|
+
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
17133
|
+
});
|
|
17134
|
+
var NodeInferenceDevicesSchema = object({
|
|
17135
|
+
nodeId: string(),
|
|
17136
|
+
/** False when the node's platform-probe was unreachable (no live device set). */
|
|
17137
|
+
reachable: boolean(),
|
|
17138
|
+
devices: array(NodeInferenceDeviceSchema).readonly()
|
|
17139
|
+
});
|
|
16664
17140
|
method(object({
|
|
16665
17141
|
deviceId: number$1(),
|
|
16666
17142
|
agentNodeId: string()
|
|
@@ -16670,7 +17146,13 @@ method(object({
|
|
|
16670
17146
|
}), method(object({ deviceId: number$1() }), object({ success: literal(true) }), {
|
|
16671
17147
|
kind: "mutation",
|
|
16672
17148
|
auth: "admin"
|
|
16673
|
-
}), method(
|
|
17149
|
+
}), method(object({
|
|
17150
|
+
deviceId: number$1(),
|
|
17151
|
+
deviceKey: string()
|
|
17152
|
+
}), object({ success: literal(true) }), {
|
|
17153
|
+
kind: "mutation",
|
|
17154
|
+
auth: "admin"
|
|
17155
|
+
}), method(object({ deviceId: number$1() }), object({ deviceKey: string().nullable() })), method(_void(), object({ migrated: number$1() }), {
|
|
16674
17156
|
kind: "mutation",
|
|
16675
17157
|
auth: "admin"
|
|
16676
17158
|
}), method(_void(), array(PipelineAssignmentSchema).readonly()), method(object({ deviceId: number$1() }), PipelineAssignmentSchema.nullable()), method(_void(), array(AgentLoadSummarySchema).readonly()), method(_void(), GlobalMetricsSchema), method(object({ deviceId: number$1() }), CameraMetricsSchema.nullable()), method(object({ nodeId: string() }), CapabilityBindingsSchema), method(object({
|
|
@@ -16704,13 +17186,7 @@ method(object({
|
|
|
16704
17186
|
}))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
16705
17187
|
nodeId: string(),
|
|
16706
17188
|
settings: AgentPipelineSettingsSchema
|
|
16707
|
-
})).readonly()), method(object({
|
|
16708
|
-
agentNodeId: string(),
|
|
16709
|
-
defaults: record(string(), AgentAddonConfigSchema)
|
|
16710
|
-
}), object({ success: literal(true) }), {
|
|
16711
|
-
kind: "mutation",
|
|
16712
|
-
auth: "admin"
|
|
16713
|
-
}), method(object({ agentNodeId: string() }), object({
|
|
17189
|
+
})).readonly()), method(object({ agentNodeId: string() }), object({
|
|
16714
17190
|
success: boolean(),
|
|
16715
17191
|
removed: boolean()
|
|
16716
17192
|
}), {
|
|
@@ -16742,7 +17218,18 @@ method(object({
|
|
|
16742
17218
|
}), object({ success: literal(true) }), {
|
|
16743
17219
|
kind: "mutation",
|
|
16744
17220
|
auth: "admin"
|
|
16745
|
-
}), method(object({
|
|
17221
|
+
}), method(object({
|
|
17222
|
+
agentNodeId: string(),
|
|
17223
|
+
inferenceDevices: record(string(), object({
|
|
17224
|
+
enabled: boolean(),
|
|
17225
|
+
weight: number$1().positive().optional(),
|
|
17226
|
+
maxSessions: number$1().int().positive().optional(),
|
|
17227
|
+
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
17228
|
+
}))
|
|
17229
|
+
}), object({ success: literal(true) }), {
|
|
17230
|
+
kind: "mutation",
|
|
17231
|
+
auth: "admin"
|
|
17232
|
+
}), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({ agentNodeId: string() }), object({
|
|
16746
17233
|
success: literal(true),
|
|
16747
17234
|
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
16748
17235
|
effectiveModelId: string().nullable(),
|
|
@@ -16758,9 +17245,10 @@ method(object({
|
|
|
16758
17245
|
}), object({ success: literal(true) }), {
|
|
16759
17246
|
kind: "mutation",
|
|
16760
17247
|
auth: "admin"
|
|
16761
|
-
}), method(object({ deviceId: number$1() }), record(string(), record(string(), CameraStepOverridePatchSchema)).nullable()), method(object({
|
|
17248
|
+
}), method(object({ deviceId: number$1() }), record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).nullable()), method(object({
|
|
16762
17249
|
deviceId: number$1(),
|
|
16763
17250
|
agentNodeId: string(),
|
|
17251
|
+
deviceKey: string(),
|
|
16764
17252
|
addonId: string(),
|
|
16765
17253
|
patch: CameraStepOverridePatchSchema.nullable()
|
|
16766
17254
|
}), object({ success: literal(true) }), {
|
|
@@ -16797,14 +17285,13 @@ method(object({
|
|
|
16797
17285
|
});
|
|
16798
17286
|
/**
|
|
16799
17287
|
* server-management — per-NODE singleton capability for a node's ROOT
|
|
16800
|
-
* package lifecycle (runtime-updatable node packages
|
|
16801
|
-
* agents).
|
|
17288
|
+
* package lifecycle (runtime-updatable node packages).
|
|
16802
17289
|
*
|
|
16803
|
-
*
|
|
16804
|
-
*
|
|
16805
|
-
*
|
|
16806
|
-
*
|
|
16807
|
-
*
|
|
17290
|
+
* Every node role runs the SAME root package (`@camstack/server`), which
|
|
17291
|
+
* carries the whole software stack in its npm dep tree, so ONE version
|
|
17292
|
+
* describes the node. Updates stage into `<dataDir>/server-root/` and apply
|
|
17293
|
+
* on restart via the baked starter (single-copy in-place swap — no probation,
|
|
17294
|
+
* no auto-rollback).
|
|
16808
17295
|
*
|
|
16809
17296
|
* Providers:
|
|
16810
17297
|
* - HUB: `ServerUpdateService` behind the `server-provided` mount
|
|
@@ -16912,7 +17399,8 @@ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), S
|
|
|
16912
17399
|
/** Explicit target version; omitted = latest from the registry. */
|
|
16913
17400
|
version: string().optional() }), ServerUpdateActionResultSchema, {
|
|
16914
17401
|
kind: "mutation",
|
|
16915
|
-
auth: "admin"
|
|
17402
|
+
auth: "admin",
|
|
17403
|
+
timeoutMs: 16 * 6e4
|
|
16916
17404
|
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
16917
17405
|
kind: "mutation",
|
|
16918
17406
|
auth: "admin"
|
|
@@ -17956,22 +18444,6 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
|
|
|
17956
18444
|
var RestartAddonResultSchema = unknown();
|
|
17957
18445
|
var InstallPackageResultSchema = unknown();
|
|
17958
18446
|
var ReloadPackagesResultSchema = unknown();
|
|
17959
|
-
/**
|
|
17960
|
-
* Result of `updateFrameworkPackage`. The cap method returns BEFORE the
|
|
17961
|
-
* server restarts so the admin UI can react to the `restartingAt`
|
|
17962
|
-
* timestamp (shows reconnect overlay). The transition from
|
|
17963
|
-
* `fromVersion` to `toVersion` will be confirmed by a subsequent
|
|
17964
|
-
* `system.restart-completed` event after the new process boots.
|
|
17965
|
-
*
|
|
17966
|
-
* Spec: docs/superpowers/specs/2026-05-14-framework-live-update-design.md
|
|
17967
|
-
*/
|
|
17968
|
-
var UpdateFrameworkPackageResultSchema = object({
|
|
17969
|
-
packageName: string(),
|
|
17970
|
-
fromVersion: string(),
|
|
17971
|
-
toVersion: string(),
|
|
17972
|
-
/** Ms-epoch the server scheduled its self-restart. */
|
|
17973
|
-
restartingAt: number$1()
|
|
17974
|
-
});
|
|
17975
18447
|
var BulkUpdateItemStatusSchema = _enum([
|
|
17976
18448
|
"queued",
|
|
17977
18449
|
"updating",
|
|
@@ -18099,13 +18571,6 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
18099
18571
|
}), object({ success: literal(true) }), {
|
|
18100
18572
|
kind: "mutation",
|
|
18101
18573
|
auth: "admin"
|
|
18102
|
-
}), method(object({
|
|
18103
|
-
packageName: string().min(1),
|
|
18104
|
-
version: string().optional(),
|
|
18105
|
-
deferRestart: boolean().optional()
|
|
18106
|
-
}), UpdateFrameworkPackageResultSchema, {
|
|
18107
|
-
kind: "mutation",
|
|
18108
|
-
auth: "admin"
|
|
18109
18574
|
}), method(object({ name: string() }), array(PackageVersionInfoSchema).readonly()), method(object({ addonId: string() }), RestartAddonResultSchema, {
|
|
18110
18575
|
kind: "mutation",
|
|
18111
18576
|
auth: "admin"
|
|
@@ -18971,10 +19436,10 @@ var TopologyCategorySchema = object({
|
|
|
18971
19436
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
18972
19437
|
});
|
|
18973
19438
|
/**
|
|
18974
|
-
* The node's runtime-updatable ROOT package (`@camstack/server`
|
|
18975
|
-
*
|
|
18976
|
-
* version visibility for the Server management surface. Nullable:
|
|
18977
|
-
* rows and
|
|
19439
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` — the single
|
|
19440
|
+
* root package for every node role) as reported by its `registerNode`
|
|
19441
|
+
* manifest — version visibility for the Server management surface. Nullable:
|
|
19442
|
+
* offline rows and nodes that never reported one.
|
|
18978
19443
|
*/
|
|
18979
19444
|
var TopologyRootPackageSchema = object({
|
|
18980
19445
|
name: string(),
|
|
@@ -19362,17 +19827,28 @@ var PlatformScoreSchema = object({
|
|
|
19362
19827
|
format: _enum([
|
|
19363
19828
|
"onnx",
|
|
19364
19829
|
"coreml",
|
|
19365
|
-
"openvino"
|
|
19830
|
+
"openvino",
|
|
19831
|
+
"tflite"
|
|
19366
19832
|
]),
|
|
19367
19833
|
score: number$1(),
|
|
19368
19834
|
reason: string(),
|
|
19369
19835
|
available: boolean()
|
|
19370
19836
|
});
|
|
19837
|
+
var InferenceDeviceDescriptorSchema = object({
|
|
19838
|
+
key: string(),
|
|
19839
|
+
backend: string(),
|
|
19840
|
+
device: string(),
|
|
19841
|
+
format: ModelFormatSchema,
|
|
19842
|
+
runtime: literal("python"),
|
|
19843
|
+
score: number$1(),
|
|
19844
|
+
available: boolean()
|
|
19845
|
+
});
|
|
19371
19846
|
var PlatformCapabilitiesSchema = object({
|
|
19372
19847
|
hardware: HardwareInfoSchema,
|
|
19373
19848
|
scores: array(PlatformScoreSchema).readonly(),
|
|
19374
19849
|
bestScore: PlatformScoreSchema,
|
|
19375
|
-
pythonPath: string().nullable()
|
|
19850
|
+
pythonPath: string().nullable(),
|
|
19851
|
+
devices: array(InferenceDeviceDescriptorSchema).readonly()
|
|
19376
19852
|
});
|
|
19377
19853
|
var ModelRequirementSchema = object({
|
|
19378
19854
|
modelId: string(),
|
|
@@ -20251,12 +20727,6 @@ Object.freeze({
|
|
|
20251
20727
|
addonId: null,
|
|
20252
20728
|
access: "delete"
|
|
20253
20729
|
},
|
|
20254
|
-
"addons.updateFrameworkPackage": {
|
|
20255
|
-
capName: "addons",
|
|
20256
|
-
capScope: "system",
|
|
20257
|
-
addonId: null,
|
|
20258
|
-
access: "create"
|
|
20259
|
-
},
|
|
20260
20730
|
"addons.updatePackage": {
|
|
20261
20731
|
capName: "addons",
|
|
20262
20732
|
capScope: "system",
|
|
@@ -23029,12 +23499,6 @@ Object.freeze({
|
|
|
23029
23499
|
addonId: null,
|
|
23030
23500
|
access: "view"
|
|
23031
23501
|
},
|
|
23032
|
-
"pipelineExecutor.reprobeEngine": {
|
|
23033
|
-
capName: "pipeline-executor",
|
|
23034
|
-
capScope: "system",
|
|
23035
|
-
addonId: null,
|
|
23036
|
-
access: "create"
|
|
23037
|
-
},
|
|
23038
23502
|
"pipelineExecutor.runAudioTest": {
|
|
23039
23503
|
capName: "pipeline-executor",
|
|
23040
23504
|
capScope: "system",
|
|
@@ -23185,6 +23649,12 @@ Object.freeze({
|
|
|
23185
23649
|
addonId: null,
|
|
23186
23650
|
access: "view"
|
|
23187
23651
|
},
|
|
23652
|
+
"pipelineOrchestrator.getNodeInferenceDevices": {
|
|
23653
|
+
capName: "pipeline-orchestrator",
|
|
23654
|
+
capScope: "system",
|
|
23655
|
+
addonId: null,
|
|
23656
|
+
access: "view"
|
|
23657
|
+
},
|
|
23188
23658
|
"pipelineOrchestrator.getPipelineAssignment": {
|
|
23189
23659
|
capName: "pipeline-orchestrator",
|
|
23190
23660
|
capScope: "system",
|
|
@@ -23197,6 +23667,12 @@ Object.freeze({
|
|
|
23197
23667
|
addonId: null,
|
|
23198
23668
|
access: "view"
|
|
23199
23669
|
},
|
|
23670
|
+
"pipelineOrchestrator.getPipelineDevicePin": {
|
|
23671
|
+
capName: "pipeline-orchestrator",
|
|
23672
|
+
capScope: "system",
|
|
23673
|
+
addonId: null,
|
|
23674
|
+
access: "view"
|
|
23675
|
+
},
|
|
23200
23676
|
"pipelineOrchestrator.listAgentSettings": {
|
|
23201
23677
|
capName: "pipeline-orchestrator",
|
|
23202
23678
|
capScope: "system",
|
|
@@ -23239,19 +23715,19 @@ Object.freeze({
|
|
|
23239
23715
|
addonId: null,
|
|
23240
23716
|
access: "create"
|
|
23241
23717
|
},
|
|
23242
|
-
"pipelineOrchestrator.
|
|
23718
|
+
"pipelineOrchestrator.setAgentCapabilities": {
|
|
23243
23719
|
capName: "pipeline-orchestrator",
|
|
23244
23720
|
capScope: "system",
|
|
23245
23721
|
addonId: null,
|
|
23246
23722
|
access: "create"
|
|
23247
23723
|
},
|
|
23248
|
-
"pipelineOrchestrator.
|
|
23724
|
+
"pipelineOrchestrator.setAgentDetectWeight": {
|
|
23249
23725
|
capName: "pipeline-orchestrator",
|
|
23250
23726
|
capScope: "system",
|
|
23251
23727
|
addonId: null,
|
|
23252
23728
|
access: "create"
|
|
23253
23729
|
},
|
|
23254
|
-
"pipelineOrchestrator.
|
|
23730
|
+
"pipelineOrchestrator.setAgentInferenceDevices": {
|
|
23255
23731
|
capName: "pipeline-orchestrator",
|
|
23256
23732
|
capScope: "system",
|
|
23257
23733
|
addonId: null,
|
|
@@ -23293,6 +23769,12 @@ Object.freeze({
|
|
|
23293
23769
|
addonId: null,
|
|
23294
23770
|
access: "create"
|
|
23295
23771
|
},
|
|
23772
|
+
"pipelineOrchestrator.setPipelineDevicePin": {
|
|
23773
|
+
capName: "pipeline-orchestrator",
|
|
23774
|
+
capScope: "system",
|
|
23775
|
+
addonId: null,
|
|
23776
|
+
access: "create"
|
|
23777
|
+
},
|
|
23296
23778
|
"pipelineOrchestrator.unassignAudio": {
|
|
23297
23779
|
capName: "pipeline-orchestrator",
|
|
23298
23780
|
capScope: "system",
|
|
@@ -24845,32 +25327,6 @@ Object.freeze({
|
|
|
24845
25327
|
"network-access": "ingress",
|
|
24846
25328
|
"smtp-provider": "email"
|
|
24847
25329
|
});
|
|
24848
|
-
var frameworkSwapPackageSchema = object({
|
|
24849
|
-
name: string(),
|
|
24850
|
-
stagedPath: string(),
|
|
24851
|
-
backupPath: string(),
|
|
24852
|
-
toVersion: string(),
|
|
24853
|
-
fromVersion: string().nullable()
|
|
24854
|
-
});
|
|
24855
|
-
object({
|
|
24856
|
-
jobId: string(),
|
|
24857
|
-
taskId: string(),
|
|
24858
|
-
packages: array(frameworkSwapPackageSchema),
|
|
24859
|
-
requestedAtMs: number$1(),
|
|
24860
|
-
schemaVersion: literal(1)
|
|
24861
|
-
});
|
|
24862
|
-
object({
|
|
24863
|
-
jobId: string(),
|
|
24864
|
-
taskId: string(),
|
|
24865
|
-
backups: array(object({
|
|
24866
|
-
name: string(),
|
|
24867
|
-
backupPath: string(),
|
|
24868
|
-
livePath: string()
|
|
24869
|
-
})),
|
|
24870
|
-
appliedAtMs: number$1(),
|
|
24871
|
-
bootAttempts: number$1(),
|
|
24872
|
-
schemaVersion: literal(1)
|
|
24873
|
-
});
|
|
24874
25330
|
//#endregion
|
|
24875
25331
|
//#region ../../node_modules/readable-stream/lib/ours/primordials.js
|
|
24876
25332
|
var require_primordials = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|