@camstack/addon-smtp-nodemailer 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/smtp.addon.js +560 -104
- package/dist/smtp.addon.mjs +560 -104
- package/package.json +1 -1
package/dist/smtp.addon.mjs
CHANGED
|
@@ -7103,6 +7103,17 @@ var ModelCatalogEntrySchema = object({
|
|
|
7103
7103
|
"imagenet",
|
|
7104
7104
|
"none"
|
|
7105
7105
|
]).optional(),
|
|
7106
|
+
/**
|
|
7107
|
+
* The model already applies softmax IN-GRAPH — its raw output is a
|
|
7108
|
+
* probability distribution, not logits. When set, the `softmax`
|
|
7109
|
+
* postprocessor must NOT re-apply softmax: re-softmaxing an already-normalised
|
|
7110
|
+
* probability vector collapses it toward uniform (top-1 score craters far
|
|
7111
|
+
* below its true value, making every confidence gate meaningless). Absent ⇒
|
|
7112
|
+
* the output is raw logits and the postprocessor applies softmax (the normal
|
|
7113
|
+
* case). Set on the Google AIY Birds `bird-classifier` (softmax baked into the
|
|
7114
|
+
* TF graph). Threaded to the Python pool via `PoolModelConfig.outputProbabilities`.
|
|
7115
|
+
*/
|
|
7116
|
+
outputProbabilities: boolean().optional(),
|
|
7106
7117
|
preprocessMode: _enum(["letterbox", "resize"]).optional(),
|
|
7107
7118
|
/**
|
|
7108
7119
|
* Per-MODEL postprocessor override. Absent ⇒ the step's own
|
|
@@ -7662,6 +7673,160 @@ var EncodeProfileSchema = object({
|
|
|
7662
7673
|
*/
|
|
7663
7674
|
outputArgs: array(string()).optional()
|
|
7664
7675
|
});
|
|
7676
|
+
var COCO_TO_MACRO = {
|
|
7677
|
+
mapping: {
|
|
7678
|
+
person: "person",
|
|
7679
|
+
bicycle: "vehicle",
|
|
7680
|
+
car: "vehicle",
|
|
7681
|
+
motorcycle: "vehicle",
|
|
7682
|
+
airplane: "vehicle",
|
|
7683
|
+
bus: "vehicle",
|
|
7684
|
+
train: "vehicle",
|
|
7685
|
+
truck: "vehicle",
|
|
7686
|
+
boat: "vehicle",
|
|
7687
|
+
bird: "animal",
|
|
7688
|
+
cat: "animal",
|
|
7689
|
+
dog: "animal",
|
|
7690
|
+
horse: "animal",
|
|
7691
|
+
sheep: "animal",
|
|
7692
|
+
cow: "animal",
|
|
7693
|
+
elephant: "animal",
|
|
7694
|
+
bear: "animal",
|
|
7695
|
+
zebra: "animal",
|
|
7696
|
+
giraffe: "animal",
|
|
7697
|
+
suitcase: "package",
|
|
7698
|
+
backpack: "package",
|
|
7699
|
+
handbag: "package"
|
|
7700
|
+
},
|
|
7701
|
+
preserveOriginal: false
|
|
7702
|
+
};
|
|
7703
|
+
var AUDIO_MACRO_LABELS = [
|
|
7704
|
+
{
|
|
7705
|
+
id: "speech",
|
|
7706
|
+
name: "Speech",
|
|
7707
|
+
icon: "🗣️"
|
|
7708
|
+
},
|
|
7709
|
+
{
|
|
7710
|
+
id: "scream",
|
|
7711
|
+
name: "Scream / Shout",
|
|
7712
|
+
icon: "😱"
|
|
7713
|
+
},
|
|
7714
|
+
{
|
|
7715
|
+
id: "crying",
|
|
7716
|
+
name: "Crying / Baby",
|
|
7717
|
+
icon: "😢"
|
|
7718
|
+
},
|
|
7719
|
+
{
|
|
7720
|
+
id: "laughter",
|
|
7721
|
+
name: "Laughter",
|
|
7722
|
+
icon: "😂"
|
|
7723
|
+
},
|
|
7724
|
+
{
|
|
7725
|
+
id: "music",
|
|
7726
|
+
name: "Music",
|
|
7727
|
+
icon: "🎵"
|
|
7728
|
+
},
|
|
7729
|
+
{
|
|
7730
|
+
id: "dog",
|
|
7731
|
+
name: "Dog",
|
|
7732
|
+
icon: "🐕"
|
|
7733
|
+
},
|
|
7734
|
+
{
|
|
7735
|
+
id: "cat",
|
|
7736
|
+
name: "Cat",
|
|
7737
|
+
icon: "🐈"
|
|
7738
|
+
},
|
|
7739
|
+
{
|
|
7740
|
+
id: "bird",
|
|
7741
|
+
name: "Bird",
|
|
7742
|
+
icon: "🐦"
|
|
7743
|
+
},
|
|
7744
|
+
{
|
|
7745
|
+
id: "animal",
|
|
7746
|
+
name: "Animal (other)",
|
|
7747
|
+
icon: "🐾"
|
|
7748
|
+
},
|
|
7749
|
+
{
|
|
7750
|
+
id: "alarm",
|
|
7751
|
+
name: "Alarm / Siren",
|
|
7752
|
+
icon: "🚨"
|
|
7753
|
+
},
|
|
7754
|
+
{
|
|
7755
|
+
id: "doorbell",
|
|
7756
|
+
name: "Doorbell / Knock",
|
|
7757
|
+
icon: "🔔"
|
|
7758
|
+
},
|
|
7759
|
+
{
|
|
7760
|
+
id: "glass_breaking",
|
|
7761
|
+
name: "Glass Breaking",
|
|
7762
|
+
icon: "💥"
|
|
7763
|
+
},
|
|
7764
|
+
{
|
|
7765
|
+
id: "gunshot",
|
|
7766
|
+
name: "Gunshot / Explosion",
|
|
7767
|
+
icon: "💣"
|
|
7768
|
+
},
|
|
7769
|
+
{
|
|
7770
|
+
id: "vehicle",
|
|
7771
|
+
name: "Vehicle",
|
|
7772
|
+
icon: "🚗"
|
|
7773
|
+
},
|
|
7774
|
+
{
|
|
7775
|
+
id: "siren",
|
|
7776
|
+
name: "Emergency Siren",
|
|
7777
|
+
icon: "🚑"
|
|
7778
|
+
},
|
|
7779
|
+
{
|
|
7780
|
+
id: "fire",
|
|
7781
|
+
name: "Fire / Smoke",
|
|
7782
|
+
icon: "🔥"
|
|
7783
|
+
},
|
|
7784
|
+
{
|
|
7785
|
+
id: "water",
|
|
7786
|
+
name: "Water",
|
|
7787
|
+
icon: "💧"
|
|
7788
|
+
},
|
|
7789
|
+
{
|
|
7790
|
+
id: "wind",
|
|
7791
|
+
name: "Wind / Weather",
|
|
7792
|
+
icon: "🌬️"
|
|
7793
|
+
},
|
|
7794
|
+
{
|
|
7795
|
+
id: "door",
|
|
7796
|
+
name: "Door",
|
|
7797
|
+
icon: "🚪"
|
|
7798
|
+
},
|
|
7799
|
+
{
|
|
7800
|
+
id: "footsteps",
|
|
7801
|
+
name: "Footsteps",
|
|
7802
|
+
icon: "👣"
|
|
7803
|
+
},
|
|
7804
|
+
{
|
|
7805
|
+
id: "crowd",
|
|
7806
|
+
name: "Crowd / Chatter",
|
|
7807
|
+
icon: "👥"
|
|
7808
|
+
},
|
|
7809
|
+
{
|
|
7810
|
+
id: "telephone",
|
|
7811
|
+
name: "Telephone",
|
|
7812
|
+
icon: "📞"
|
|
7813
|
+
},
|
|
7814
|
+
{
|
|
7815
|
+
id: "engine",
|
|
7816
|
+
name: "Engine / Motor",
|
|
7817
|
+
icon: "⚙️"
|
|
7818
|
+
},
|
|
7819
|
+
{
|
|
7820
|
+
id: "tools",
|
|
7821
|
+
name: "Tools / Construction",
|
|
7822
|
+
icon: "🔨"
|
|
7823
|
+
},
|
|
7824
|
+
{
|
|
7825
|
+
id: "silence",
|
|
7826
|
+
name: "Silence",
|
|
7827
|
+
icon: "🤫"
|
|
7828
|
+
}
|
|
7829
|
+
];
|
|
7665
7830
|
var YAMNET_TO_MACRO = {
|
|
7666
7831
|
mapping: {
|
|
7667
7832
|
Speech: "speech",
|
|
@@ -7928,6 +8093,125 @@ var _macroLookup = /* @__PURE__ */ new Map();
|
|
|
7928
8093
|
for (const [k, v] of Object.entries(YAMNET_TO_MACRO.mapping)) _macroLookup.set(k.toLowerCase(), v);
|
|
7929
8094
|
for (const [k, v] of Object.entries(APPLE_SA_TO_MACRO.mapping)) _macroLookup.set(k.toLowerCase(), v);
|
|
7930
8095
|
/**
|
|
8096
|
+
* Unified event-kind taxonomy — THE single source of truth for
|
|
8097
|
+
* `kind → { parentKind, category, level, color, iconId, labelKey, label,
|
|
8098
|
+
* icon }`.
|
|
8099
|
+
*
|
|
8100
|
+
* This dictionary folds together what used to be scattered across four
|
|
8101
|
+
* copies:
|
|
8102
|
+
* - `capabilities/sensor-event-kinds.ts` (sensor cap colors)
|
|
8103
|
+
* - `addon-post-analysis/.../services/event-kinds.ts`
|
|
8104
|
+
* (MOTION/PERSON/VEHICLE… _COLOR constants)
|
|
8105
|
+
* - `ui-library/composites/detection-colors.ts` (CLASS_COLORS)
|
|
8106
|
+
* - `addon-post-analysis/shared/frame/box-drawer.ts` (DEFAULT_COLOR)
|
|
8107
|
+
* - the COCO / audio class maps (macro ↔ sub relationships)
|
|
8108
|
+
*
|
|
8109
|
+
* The DATA (serializable — color/iconId/labelKey/parentKind) lives here in
|
|
8110
|
+
* `@camstack/types`. The UI-side mapping `iconId → lucide component` and
|
|
8111
|
+
* `labelKey → t()` lives in `@camstack/ui-library`. UIs never hardcode a
|
|
8112
|
+
* color or an icon: they read this dictionary (server descriptors carry the
|
|
8113
|
+
* fields inline; the client resolves color/icon/label from `iconId`/`kind`).
|
|
8114
|
+
*
|
|
8115
|
+
* Two levels only (v1 YAGNI): macro → sub. `person` is a leaf macro.
|
|
8116
|
+
*/
|
|
8117
|
+
var TAXONOMY_COLORS = {
|
|
8118
|
+
motion: "#f59e0b",
|
|
8119
|
+
audio: "#06b6d4",
|
|
8120
|
+
person: "#22c55e",
|
|
8121
|
+
vehicle: "#3b82f6",
|
|
8122
|
+
animal: "#f97316",
|
|
8123
|
+
package: "#a855f7",
|
|
8124
|
+
sensor: "#8b5cf6",
|
|
8125
|
+
control: "#10b981",
|
|
8126
|
+
genericDetection: "#64748b"
|
|
8127
|
+
};
|
|
8128
|
+
var DETECTION_SUB_COLORS = {
|
|
8129
|
+
car: "#f59e0b",
|
|
8130
|
+
truck: "#d97706",
|
|
8131
|
+
bus: "#b45309",
|
|
8132
|
+
motorcycle: "#eab308",
|
|
8133
|
+
bicycle: "#ca8a04",
|
|
8134
|
+
airplane: "#60a5fa",
|
|
8135
|
+
boat: "#2563eb",
|
|
8136
|
+
train: "#1d4ed8",
|
|
8137
|
+
bird: "#14b8a6",
|
|
8138
|
+
dog: "#84cc16",
|
|
8139
|
+
cat: "#f97316",
|
|
8140
|
+
horse: "#a16207",
|
|
8141
|
+
sheep: "#a3a3a3",
|
|
8142
|
+
cow: "#78716c",
|
|
8143
|
+
elephant: "#6b7280",
|
|
8144
|
+
bear: "#7c2d12",
|
|
8145
|
+
zebra: "#404040",
|
|
8146
|
+
giraffe: "#d4a373"
|
|
8147
|
+
};
|
|
8148
|
+
function titleCase(id) {
|
|
8149
|
+
return id.split(/[-_ ]/).filter((p) => p.length > 0).map((p) => p.charAt(0).toUpperCase() + p.slice(1)).join(" ");
|
|
8150
|
+
}
|
|
8151
|
+
var entries = /* @__PURE__ */ new Map();
|
|
8152
|
+
function macro(kind, category, color, iconId, label) {
|
|
8153
|
+
entries.set(kind, {
|
|
8154
|
+
kind,
|
|
8155
|
+
parentKind: null,
|
|
8156
|
+
level: "macro",
|
|
8157
|
+
category,
|
|
8158
|
+
color,
|
|
8159
|
+
iconId,
|
|
8160
|
+
labelKey: `eventKind.${kind}`,
|
|
8161
|
+
label
|
|
8162
|
+
});
|
|
8163
|
+
}
|
|
8164
|
+
function sub(kind, parentKind, category, color, iconId, label) {
|
|
8165
|
+
entries.set(kind, {
|
|
8166
|
+
kind,
|
|
8167
|
+
parentKind,
|
|
8168
|
+
level: "sub",
|
|
8169
|
+
category,
|
|
8170
|
+
color,
|
|
8171
|
+
iconId,
|
|
8172
|
+
labelKey: `eventKind.${kind}`,
|
|
8173
|
+
label
|
|
8174
|
+
});
|
|
8175
|
+
}
|
|
8176
|
+
macro("motion", "motion", TAXONOMY_COLORS.motion, "motion", "Motion");
|
|
8177
|
+
macro("audio", "audio", TAXONOMY_COLORS.audio, "audio", "Audio");
|
|
8178
|
+
macro("person", "detection", TAXONOMY_COLORS.person, "person", "Person");
|
|
8179
|
+
macro("vehicle", "detection", TAXONOMY_COLORS.vehicle, "vehicle", "Vehicle");
|
|
8180
|
+
macro("animal", "detection", TAXONOMY_COLORS.animal, "animal", "Animal");
|
|
8181
|
+
macro("package", "package", TAXONOMY_COLORS.package, "package", "Package");
|
|
8182
|
+
macro("sensor", "sensor", TAXONOMY_COLORS.sensor, "sensor", "Sensor");
|
|
8183
|
+
macro("control", "control", TAXONOMY_COLORS.control, "control", "Control");
|
|
8184
|
+
for (const [cocoClass, macroClass] of Object.entries(COCO_TO_MACRO.mapping)) {
|
|
8185
|
+
if (macroClass !== "vehicle" && macroClass !== "animal") continue;
|
|
8186
|
+
if (entries.has(cocoClass)) continue;
|
|
8187
|
+
sub(cocoClass, macroClass, "detection", DETECTION_SUB_COLORS[cocoClass] ?? TAXONOMY_COLORS.genericDetection, cocoClass, titleCase(cocoClass));
|
|
8188
|
+
}
|
|
8189
|
+
sub("package-delivered", "package", "package", TAXONOMY_COLORS.package, "package", "Package delivered");
|
|
8190
|
+
sub("package-picked-up", "package", "package", TAXONOMY_COLORS.package, "package", "Package picked up");
|
|
8191
|
+
sub("contact", "sensor", "sensor", "#f59e0b", "door", "Contact");
|
|
8192
|
+
sub("motion-sensor", "sensor", "sensor", TAXONOMY_COLORS.sensor, "pir", "Motion sensor");
|
|
8193
|
+
sub("smoke", "sensor", "sensor", "#ef4444", "smoke", "Smoke");
|
|
8194
|
+
sub("flood", "sensor", "sensor", "#3b82f6", "water", "Water leak");
|
|
8195
|
+
sub("gas", "sensor", "sensor", "#ef4444", "gas", "Gas");
|
|
8196
|
+
sub("carbon-monoxide", "sensor", "sensor", "#dc2626", "smoke", "Carbon monoxide");
|
|
8197
|
+
sub("vibration", "sensor", "sensor", "#eab308", "vibration", "Vibration");
|
|
8198
|
+
sub("tamper", "sensor", "sensor", "#f97316", "tamper", "Tamper");
|
|
8199
|
+
sub("presence", "sensor", "sensor", "#22c55e", "presence", "Presence");
|
|
8200
|
+
sub("enum-sensor", "sensor", "sensor", TAXONOMY_COLORS.sensor, "generic", "Sensor state");
|
|
8201
|
+
sub("device-event", "sensor", "sensor", "#10b981", "button", "Device event");
|
|
8202
|
+
sub("lock", "control", "control", "#0ea5e9", "lock", "Lock");
|
|
8203
|
+
sub("switch", "control", "control", TAXONOMY_COLORS.control, "switch", "Switch");
|
|
8204
|
+
sub("siren", "control", "control", "#dc2626", "siren", "Siren");
|
|
8205
|
+
sub("button", "control", "control", "#10b981", "button", "Button");
|
|
8206
|
+
sub("doorbell", "control", "control", "#a855f7", "doorbell", "Doorbell");
|
|
8207
|
+
for (const l of AUDIO_MACRO_LABELS) {
|
|
8208
|
+
const kind = `audio-${l.id}`;
|
|
8209
|
+
if (entries.has(kind)) continue;
|
|
8210
|
+
sub(kind, "audio", "audio", TAXONOMY_COLORS.audio, kind, l.name);
|
|
8211
|
+
}
|
|
8212
|
+
/** The complete taxonomy dictionary, keyed by kind. */
|
|
8213
|
+
var EVENT_TAXONOMY = Object.freeze(Object.fromEntries(entries));
|
|
8214
|
+
/**
|
|
7931
8215
|
* Error types for the safe expression engine. Two distinct classes so callers
|
|
7932
8216
|
* can tell a compile-time (grammar) failure from a runtime (evaluation)
|
|
7933
8217
|
* failure — both are non-fatal to the host: read paths degrade to "skip link".
|
|
@@ -10843,10 +11127,7 @@ var ConfigUISchemaNullableBridge = custom();
|
|
|
10843
11127
|
var InferenceCapabilitiesBridge = custom();
|
|
10844
11128
|
var ModelAvailabilityListBridge = custom();
|
|
10845
11129
|
var PipelineRunResultBridge = custom();
|
|
10846
|
-
method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngineChoiceSchema), method(PipelineEngineChoiceSchema, array(PipelineDefaultStepSchema)), method(_void(),
|
|
10847
|
-
kind: "mutation",
|
|
10848
|
-
auth: "admin"
|
|
10849
|
-
}), method(object({ nodeId: string() }), EngineProvisioningSchema), method(_void(), record(string(), object({
|
|
11130
|
+
method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngineChoiceSchema), method(PipelineEngineChoiceSchema, array(PipelineDefaultStepSchema)), method(object({ nodeId: string() }), EngineProvisioningSchema), method(_void(), record(string(), object({
|
|
10850
11131
|
modelId: string(),
|
|
10851
11132
|
settings: record(string(), unknown()).readonly()
|
|
10852
11133
|
}))), method(object({ steps: record(string(), object({
|
|
@@ -10906,13 +11187,33 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
10906
11187
|
* (inputClasses ≠ null) are skipped and served per-track via
|
|
10907
11188
|
* pipelineRunner.runDetailSubtree (two-plane design).
|
|
10908
11189
|
*/
|
|
10909
|
-
plane: _enum(["full", "frame"]).optional()
|
|
11190
|
+
plane: _enum(["full", "frame"]).optional(),
|
|
11191
|
+
/**
|
|
11192
|
+
* Inference-device selector (Phase 2 multi-device). Format
|
|
11193
|
+
* `<backend>:<device>` (e.g. `openvino:gpu`, `edgetpu:usb`, `cpu`).
|
|
11194
|
+
* Omitted ⇒ the runner's default device (current single-engine
|
|
11195
|
+
* behaviour). Selects WHICH device pool of the node runs the call.
|
|
11196
|
+
*/
|
|
11197
|
+
deviceKey: string().optional()
|
|
10910
11198
|
}), PipelineRunResultBridge, { kind: "mutation" }), method(object({
|
|
10911
11199
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
10912
11200
|
steps: array(PipelineStepInputSchema).min(1),
|
|
10913
11201
|
frames: array(FrameInputSchema).min(1).max(255),
|
|
10914
11202
|
deviceId: number().optional(),
|
|
10915
|
-
sessionId: string().optional()
|
|
11203
|
+
sessionId: string().optional(),
|
|
11204
|
+
/**
|
|
11205
|
+
* Pure-inference benchmark hint. A NONZERO uint32 pins every frame in
|
|
11206
|
+
* the batch to the Python pool's bench preprocess cache
|
|
11207
|
+
* (`_bench_frame_id`) so a REPEATED benchmark frame is decoded +
|
|
11208
|
+
* preprocessed ONCE and every later inference is a pure-inference cache
|
|
11209
|
+
* hit — the sustained-throughput run measures inference, not
|
|
11210
|
+
* decode+preprocess+infer. Omitted/0 for live frames (all different →
|
|
11211
|
+
* full preprocess every call, correct). Fresh per sustained run;
|
|
11212
|
+
* released via `uncacheFrame`.
|
|
11213
|
+
*/
|
|
11214
|
+
frameId: number().int().nonnegative().optional(),
|
|
11215
|
+
/** Inference-device selector (Phase 2 multi-device); see runPipeline. */
|
|
11216
|
+
deviceKey: string().optional()
|
|
10916
11217
|
}), object({ results: array(PipelineRunResultBridge).readonly() }), { kind: "mutation" }), method(object({
|
|
10917
11218
|
data: _instanceof(Uint8Array),
|
|
10918
11219
|
width: number().int().positive(),
|
|
@@ -10944,8 +11245,18 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
10944
11245
|
* - `runtime` — main camera-serving engine (no idle TTL).
|
|
10945
11246
|
* - `warm-override` — benchmark/test override held in the warm
|
|
10946
11247
|
* cache; auto-disposed after the idle TTL.
|
|
11248
|
+
* - `device-pool` — a concurrent per-device pool (Phase 2
|
|
11249
|
+
* multi-device, keyed by `deviceKey`) resolved
|
|
11250
|
+
* via `resolveDeviceFactory`. Runs alongside the
|
|
11251
|
+
* `runtime` engine on a DIFFERENT accelerator
|
|
11252
|
+
* (NPU / iGPU / Coral) — this is how the
|
|
11253
|
+
* Engines tab shows all pools running at once.
|
|
10947
11254
|
*/
|
|
10948
|
-
kind: _enum([
|
|
11255
|
+
kind: _enum([
|
|
11256
|
+
"runtime",
|
|
11257
|
+
"warm-override",
|
|
11258
|
+
"device-pool"
|
|
11259
|
+
]),
|
|
10949
11260
|
/** Native pid of the underlying Python pool (null when no pool). */
|
|
10950
11261
|
poolPid: number().nullable(),
|
|
10951
11262
|
/** ms since this factory was last used (null when not warm-tracked). */
|
|
@@ -11287,7 +11598,14 @@ var RunnerCameraConfigSchema = object({
|
|
|
11287
11598
|
* camera's detect node differs from its source-owner (P2d, gated by the
|
|
11288
11599
|
* `remoteSourcingNodes` rollout setting).
|
|
11289
11600
|
*/
|
|
11290
|
-
frameSource: RunnerFrameSourceSchema.default({ kind: "local-broker" })
|
|
11601
|
+
frameSource: RunnerFrameSourceSchema.default({ kind: "local-broker" }),
|
|
11602
|
+
/**
|
|
11603
|
+
* Inference-device selector for this camera's sessions (Phase 2 multi-device).
|
|
11604
|
+
* Format `<backend>:<device>` (e.g. `openvino:gpu`, `edgetpu:usb`, `cpu`);
|
|
11605
|
+
* omitted ⇒ the runner's default device. The engine itself stays node-local —
|
|
11606
|
+
* this only selects WHICH device pool of that node runs the session.
|
|
11607
|
+
*/
|
|
11608
|
+
deviceKey: string().optional()
|
|
11291
11609
|
});
|
|
11292
11610
|
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;
|
|
11293
11611
|
/**
|
|
@@ -11308,6 +11626,19 @@ var RunnerLocalLoadSchema = object({
|
|
|
11308
11626
|
avgInferenceTimeMs: number(),
|
|
11309
11627
|
/** Total queue depth across motion + detection queues. */
|
|
11310
11628
|
queueDepthTotal: number(),
|
|
11629
|
+
/**
|
|
11630
|
+
* Per-inference-device live load (multi-device C4). One entry per deviceKey
|
|
11631
|
+
* this runner currently has attached cameras on, so the orchestrator's second
|
|
11632
|
+
* `balance()` pass (over a node's devices) weights on real per-pool session
|
|
11633
|
+
* counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
|
|
11634
|
+
* per device is 0 until the pool backlog gets a public accessor (follow-up).
|
|
11635
|
+
*/
|
|
11636
|
+
devices: array(object({
|
|
11637
|
+
deviceKey: string(),
|
|
11638
|
+
backend: string(),
|
|
11639
|
+
attachedCameras: number(),
|
|
11640
|
+
queueDepthTotal: number()
|
|
11641
|
+
})).default([]),
|
|
11311
11642
|
/** Hardware capability flags reported by this node. */
|
|
11312
11643
|
hardware: object({
|
|
11313
11644
|
hasGpu: boolean(),
|
|
@@ -12783,6 +13114,8 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
|
|
|
12783
13114
|
kind: "mutation",
|
|
12784
13115
|
auth: "admin"
|
|
12785
13116
|
});
|
|
13117
|
+
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;
|
|
13118
|
+
new Set(Object.values(DeviceType));
|
|
12786
13119
|
/**
|
|
12787
13120
|
* `addon-pages` — system-scoped singleton aggregator cap. Public-facing
|
|
12788
13121
|
* surface that admin-ui consumes through `useAddonPagesListPages()`.
|
|
@@ -15877,17 +16210,30 @@ var EventKindCategorySchema = _enum([
|
|
|
15877
16210
|
"audio",
|
|
15878
16211
|
"detection",
|
|
15879
16212
|
"sensor",
|
|
16213
|
+
"control",
|
|
15880
16214
|
"custom",
|
|
15881
16215
|
"package"
|
|
15882
16216
|
]);
|
|
16217
|
+
/** Taxonomy level — macro (timeline lane) vs sub (events-page leaf). */
|
|
16218
|
+
var EventKindLevelSchema = _enum(["macro", "sub"]);
|
|
15883
16219
|
var EventKindDescriptorSchema = object({
|
|
15884
|
-
/** Stable kind id (e.g. 'motion', '
|
|
16220
|
+
/** Stable kind id (e.g. 'motion', 'vehicle', 'car', 'lock'). */
|
|
15885
16221
|
kind: string(),
|
|
16222
|
+
/** i18n key resolved on the UI side; `label` is the English fallback. */
|
|
16223
|
+
labelKey: string(),
|
|
16224
|
+
/** English fallback label (kept for clients that don't translate). */
|
|
15886
16225
|
label: string(),
|
|
15887
16226
|
/** Hex color for timeline/legend rendering. */
|
|
15888
16227
|
color: string(),
|
|
16228
|
+
/** Dictionary id → lucide component on the UI side. */
|
|
16229
|
+
iconId: string(),
|
|
16230
|
+
/** Legacy closed-vocab glyph — fallback for `iconId`. */
|
|
15889
16231
|
icon: EventKindIconSchema,
|
|
15890
16232
|
category: EventKindCategorySchema,
|
|
16233
|
+
/** Macro parent for this kind ('car' → 'vehicle'); null for a macro. */
|
|
16234
|
+
parentKind: string().nullable(),
|
|
16235
|
+
/** Derived from `parentKind`, explicit for the client tree. */
|
|
16236
|
+
level: EventKindLevelSchema,
|
|
15891
16237
|
/** Which cap + device contributes this kind. For built-ins the camera
|
|
15892
16238
|
* itself; for sensor kinds the LINKED source device. */
|
|
15893
16239
|
source: object({
|
|
@@ -15960,11 +16306,21 @@ var TrackAudioLabelSchema = object({
|
|
|
15960
16306
|
firstAt: number(),
|
|
15961
16307
|
lastAt: number()
|
|
15962
16308
|
});
|
|
16309
|
+
/**
|
|
16310
|
+
* How a track was produced. `pipeline` (default / absent) = the spatial
|
|
16311
|
+
* detection+tracking pipeline. `sensor` = a SYNTHETIC track projected from a
|
|
16312
|
+
* linked sensor/control state change (no positions; carries a snapshot). The
|
|
16313
|
+
* spatial subsystems (tracker association, occupancy count, re-id/embedding,
|
|
16314
|
+
* resurrection) MUST skip `sensor` tracks — they have no bbox trajectory.
|
|
16315
|
+
*/
|
|
16316
|
+
var TrackSourceSchema = _enum(["pipeline", "sensor"]);
|
|
15963
16317
|
var TrackSchema = object({
|
|
15964
16318
|
trackId: string(),
|
|
15965
16319
|
deviceId: number(),
|
|
15966
16320
|
className: string(),
|
|
15967
16321
|
label: string().optional(),
|
|
16322
|
+
/** Track provenance. Absent ⇒ `pipeline` (legacy rows). */
|
|
16323
|
+
source: TrackSourceSchema.optional(),
|
|
15968
16324
|
firstSeen: number(),
|
|
15969
16325
|
lastSeen: number(),
|
|
15970
16326
|
/** Frame-rate position history (subject to maxPositionHistory cap). */
|
|
@@ -16341,6 +16697,76 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
16341
16697
|
eventId: string(),
|
|
16342
16698
|
timestamp: number()
|
|
16343
16699
|
});
|
|
16700
|
+
/**
|
|
16701
|
+
* Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
|
|
16702
|
+
* `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
|
|
16703
|
+
* caps into per-camera event-kind descriptors.
|
|
16704
|
+
*
|
|
16705
|
+
* The descriptor DATA (color / iconId / labelKey / parentKind / category)
|
|
16706
|
+
* is NOT duplicated here — every entry is derived from the single
|
|
16707
|
+
* `EVENT_TAXONOMY` dictionary (`catalogs/event-taxonomy.ts`). This file owns
|
|
16708
|
+
* ONLY the cap-name → taxonomy-kind mapping. Adding a new eventful sensor /
|
|
16709
|
+
* control cap means adding one line here (and a taxonomy entry); the anti-
|
|
16710
|
+
* drift guard `scripts/check-event-kind-coverage.ts` fails the build if an
|
|
16711
|
+
* eventful cap is missing.
|
|
16712
|
+
*/
|
|
16713
|
+
/** Map a taxonomy `iconId` onto the legacy closed `EventKindIcon` enum. */
|
|
16714
|
+
var LEGACY_ICON = {
|
|
16715
|
+
motion: "motion",
|
|
16716
|
+
audio: "audio",
|
|
16717
|
+
person: "person",
|
|
16718
|
+
vehicle: "vehicle",
|
|
16719
|
+
animal: "animal",
|
|
16720
|
+
package: "package",
|
|
16721
|
+
door: "door",
|
|
16722
|
+
pir: "pir",
|
|
16723
|
+
smoke: "smoke",
|
|
16724
|
+
water: "water",
|
|
16725
|
+
button: "button",
|
|
16726
|
+
generic: "generic",
|
|
16727
|
+
gas: "smoke",
|
|
16728
|
+
vibration: "generic",
|
|
16729
|
+
tamper: "generic",
|
|
16730
|
+
presence: "person",
|
|
16731
|
+
lock: "generic",
|
|
16732
|
+
siren: "generic",
|
|
16733
|
+
switch: "generic",
|
|
16734
|
+
doorbell: "button"
|
|
16735
|
+
};
|
|
16736
|
+
function legacyIcon(iconId) {
|
|
16737
|
+
return LEGACY_ICON[iconId] ?? "generic";
|
|
16738
|
+
}
|
|
16739
|
+
/**
|
|
16740
|
+
* Cap name → taxonomy kind id. Covers EVERY eventful sensor / control cap.
|
|
16741
|
+
* The anti-drift guard cross-checks this against the eventful caps declared
|
|
16742
|
+
* in `packages/types/src/capabilities/*.cap.ts`.
|
|
16743
|
+
*/
|
|
16744
|
+
var CAP_TO_KIND = {
|
|
16745
|
+
contact: "contact",
|
|
16746
|
+
motion: "motion-sensor",
|
|
16747
|
+
smoke: "smoke",
|
|
16748
|
+
flood: "flood",
|
|
16749
|
+
gas: "gas",
|
|
16750
|
+
"carbon-monoxide": "carbon-monoxide",
|
|
16751
|
+
vibration: "vibration",
|
|
16752
|
+
tamper: "tamper",
|
|
16753
|
+
presence: "presence",
|
|
16754
|
+
"enum-sensor": "enum-sensor",
|
|
16755
|
+
"event-emitter": "device-event",
|
|
16756
|
+
"lock-control": "lock",
|
|
16757
|
+
switch: "switch",
|
|
16758
|
+
button: "button",
|
|
16759
|
+
doorbell: "doorbell"
|
|
16760
|
+
};
|
|
16761
|
+
function buildDescriptor(capName, kind) {
|
|
16762
|
+
const t = EVENT_TAXONOMY[kind];
|
|
16763
|
+
if (t === void 0) throw new Error(`EVENT_KIND_BY_CAP: cap '${capName}' maps to unknown taxonomy kind '${kind}'`);
|
|
16764
|
+
return {
|
|
16765
|
+
...t,
|
|
16766
|
+
icon: legacyIcon(t.iconId)
|
|
16767
|
+
};
|
|
16768
|
+
}
|
|
16769
|
+
Object.freeze(Object.fromEntries(Object.entries(CAP_TO_KIND).map(([capName, kind]) => [capName, buildDescriptor(capName, kind)])));
|
|
16344
16770
|
var CameraPipelineConfigSchema = object({
|
|
16345
16771
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
16346
16772
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -16359,13 +16785,11 @@ var PipelineTemplateSchema = object({
|
|
|
16359
16785
|
createdAt: string(),
|
|
16360
16786
|
updatedAt: string()
|
|
16361
16787
|
});
|
|
16362
|
-
var
|
|
16363
|
-
enabled: boolean(),
|
|
16788
|
+
var DeviceStepConfigSchema = object({
|
|
16364
16789
|
modelId: string().optional(),
|
|
16365
|
-
settings: record(string(), unknown()).
|
|
16790
|
+
settings: record(string(), unknown()).optional()
|
|
16366
16791
|
});
|
|
16367
16792
|
var AgentPipelineSettingsSchema = object({
|
|
16368
|
-
addonDefaults: record(string(), AgentAddonConfigSchema).readonly(),
|
|
16369
16793
|
maxCameras: number().int().nonnegative().nullable().default(null),
|
|
16370
16794
|
/** Per-node detection weight (relative share for the quota balancer). */
|
|
16371
16795
|
detectWeight: number().positive().optional(),
|
|
@@ -16389,7 +16813,22 @@ var AgentPipelineSettingsSchema = object({
|
|
|
16389
16813
|
* it already uses to reach the hub). Set this only when the auto-detected
|
|
16390
16814
|
* address is wrong (multi-homed host, NAT, custom interface).
|
|
16391
16815
|
*/
|
|
16392
|
-
reachableHost: string().optional()
|
|
16816
|
+
reachableHost: string().optional(),
|
|
16817
|
+
/**
|
|
16818
|
+
* Multi-device inference opt-in (Phase 4). Per-node map deviceKey → {enabled,
|
|
16819
|
+
* weight, steps}. Absent / all-disabled ⇒ the node's single default
|
|
16820
|
+
* accelerator (safe default); two+ enabled ⇒ the dispatcher balances
|
|
16821
|
+
* detection sessions across them so they run CONCURRENTLY. `steps` is the
|
|
16822
|
+
* per-(node,device) BASE provisioning (`stepId → {modelId?, settings?}`) —
|
|
16823
|
+
* the default model/settings for every camera landing on that accelerator;
|
|
16824
|
+
* a stepId absent ⇒ the step uses that device's format default.
|
|
16825
|
+
*/
|
|
16826
|
+
inferenceDevices: record(string(), object({
|
|
16827
|
+
enabled: boolean(),
|
|
16828
|
+
weight: number().positive().optional(),
|
|
16829
|
+
maxSessions: number().int().positive().optional(),
|
|
16830
|
+
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
16831
|
+
})).optional()
|
|
16393
16832
|
});
|
|
16394
16833
|
var CameraPipelineForAgentSchema = object({
|
|
16395
16834
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -16399,14 +16838,13 @@ var CameraPipelineForAgentSchema = object({
|
|
|
16399
16838
|
}).nullable()
|
|
16400
16839
|
});
|
|
16401
16840
|
var CameraStepOverridePatchSchema = object({
|
|
16402
|
-
enabled: boolean().optional(),
|
|
16403
16841
|
modelId: string().optional(),
|
|
16404
16842
|
settings: record(string(), unknown()).readonly().optional()
|
|
16405
16843
|
});
|
|
16406
16844
|
var CameraPipelineSettingsSchema = object({
|
|
16407
16845
|
pinnedAgentNodeId: string().optional(),
|
|
16408
16846
|
stepToggles: record(string(), boolean()).optional(),
|
|
16409
|
-
|
|
16847
|
+
stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
|
|
16410
16848
|
pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
|
|
16411
16849
|
});
|
|
16412
16850
|
/**
|
|
@@ -16620,6 +17058,44 @@ var CameraStatusSchema = object({
|
|
|
16620
17058
|
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
16621
17059
|
fetchedAt: number()
|
|
16622
17060
|
});
|
|
17061
|
+
var NodeInferenceDeviceSchema = object({
|
|
17062
|
+
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
17063
|
+
key: string(),
|
|
17064
|
+
backend: string(),
|
|
17065
|
+
device: string(),
|
|
17066
|
+
format: _enum(MODEL_FORMATS),
|
|
17067
|
+
/** Whether the node's live probe reports the device as usable right now. */
|
|
17068
|
+
available: boolean(),
|
|
17069
|
+
/**
|
|
17070
|
+
* Whether this device participates in dispatch. AUTO default (spec C2):
|
|
17071
|
+
* accelerators are opt-OUT (a discovered NPU/iGPU/Coral/ANE with no stored
|
|
17072
|
+
* entry is `true`); CPU is opt-IN (`false` by default — the fallback pool,
|
|
17073
|
+
* not a balanced target). An explicit stored value always wins; a stored-only
|
|
17074
|
+
* (unavailable) key keeps its stored value.
|
|
17075
|
+
*/
|
|
17076
|
+
enabled: boolean(),
|
|
17077
|
+
/** Relative balancer weight for the enabled device (default 1). */
|
|
17078
|
+
weight: number(),
|
|
17079
|
+
/** Per-device concurrent-session cap; null = unlimited (multi-device C4). */
|
|
17080
|
+
maxSessions: number().nullable(),
|
|
17081
|
+
/** Object-detection model the executor defaults to for this deviceKey. */
|
|
17082
|
+
defaultModelId: string(),
|
|
17083
|
+
/**
|
|
17084
|
+
* Per-(node,device) BASE provisioning (C7.2/C7.4) — the RAW stored
|
|
17085
|
+
* `stepId → {modelId?, settings?}` map from `inferenceDevices[key].steps`.
|
|
17086
|
+
* Absent/empty ⇒ no base (every step uses its device format default). The
|
|
17087
|
+
* UI cross-references `pipelineExecutor.getSchema` for the models actually
|
|
17088
|
+
* available per format; this is the stored selection that becomes the
|
|
17089
|
+
* default for EVERY camera landing on this accelerator.
|
|
17090
|
+
*/
|
|
17091
|
+
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
17092
|
+
});
|
|
17093
|
+
var NodeInferenceDevicesSchema = object({
|
|
17094
|
+
nodeId: string(),
|
|
17095
|
+
/** False when the node's platform-probe was unreachable (no live device set). */
|
|
17096
|
+
reachable: boolean(),
|
|
17097
|
+
devices: array(NodeInferenceDeviceSchema).readonly()
|
|
17098
|
+
});
|
|
16623
17099
|
method(object({
|
|
16624
17100
|
deviceId: number(),
|
|
16625
17101
|
agentNodeId: string()
|
|
@@ -16629,7 +17105,13 @@ method(object({
|
|
|
16629
17105
|
}), method(object({ deviceId: number() }), object({ success: literal(true) }), {
|
|
16630
17106
|
kind: "mutation",
|
|
16631
17107
|
auth: "admin"
|
|
16632
|
-
}), method(
|
|
17108
|
+
}), method(object({
|
|
17109
|
+
deviceId: number(),
|
|
17110
|
+
deviceKey: string()
|
|
17111
|
+
}), object({ success: literal(true) }), {
|
|
17112
|
+
kind: "mutation",
|
|
17113
|
+
auth: "admin"
|
|
17114
|
+
}), method(object({ deviceId: number() }), object({ deviceKey: string().nullable() })), method(_void(), object({ migrated: number() }), {
|
|
16633
17115
|
kind: "mutation",
|
|
16634
17116
|
auth: "admin"
|
|
16635
17117
|
}), method(_void(), array(PipelineAssignmentSchema).readonly()), method(object({ deviceId: number() }), PipelineAssignmentSchema.nullable()), method(_void(), array(AgentLoadSummarySchema).readonly()), method(_void(), GlobalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(object({ nodeId: string() }), CapabilityBindingsSchema), method(object({
|
|
@@ -16663,13 +17145,7 @@ method(object({
|
|
|
16663
17145
|
}))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
|
|
16664
17146
|
nodeId: string(),
|
|
16665
17147
|
settings: AgentPipelineSettingsSchema
|
|
16666
|
-
})).readonly()), method(object({
|
|
16667
|
-
agentNodeId: string(),
|
|
16668
|
-
defaults: record(string(), AgentAddonConfigSchema)
|
|
16669
|
-
}), object({ success: literal(true) }), {
|
|
16670
|
-
kind: "mutation",
|
|
16671
|
-
auth: "admin"
|
|
16672
|
-
}), method(object({ agentNodeId: string() }), object({
|
|
17148
|
+
})).readonly()), method(object({ agentNodeId: string() }), object({
|
|
16673
17149
|
success: boolean(),
|
|
16674
17150
|
removed: boolean()
|
|
16675
17151
|
}), {
|
|
@@ -16701,7 +17177,18 @@ method(object({
|
|
|
16701
17177
|
}), object({ success: literal(true) }), {
|
|
16702
17178
|
kind: "mutation",
|
|
16703
17179
|
auth: "admin"
|
|
16704
|
-
}), method(object({
|
|
17180
|
+
}), method(object({
|
|
17181
|
+
agentNodeId: string(),
|
|
17182
|
+
inferenceDevices: record(string(), object({
|
|
17183
|
+
enabled: boolean(),
|
|
17184
|
+
weight: number().positive().optional(),
|
|
17185
|
+
maxSessions: number().int().positive().optional(),
|
|
17186
|
+
steps: record(string(), DeviceStepConfigSchema).optional()
|
|
17187
|
+
}))
|
|
17188
|
+
}), object({ success: literal(true) }), {
|
|
17189
|
+
kind: "mutation",
|
|
17190
|
+
auth: "admin"
|
|
17191
|
+
}), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({ agentNodeId: string() }), object({
|
|
16705
17192
|
success: literal(true),
|
|
16706
17193
|
/** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
|
|
16707
17194
|
effectiveModelId: string().nullable(),
|
|
@@ -16717,9 +17204,10 @@ method(object({
|
|
|
16717
17204
|
}), object({ success: literal(true) }), {
|
|
16718
17205
|
kind: "mutation",
|
|
16719
17206
|
auth: "admin"
|
|
16720
|
-
}), method(object({ deviceId: number() }), record(string(), record(string(), CameraStepOverridePatchSchema)).nullable()), method(object({
|
|
17207
|
+
}), method(object({ deviceId: number() }), record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).nullable()), method(object({
|
|
16721
17208
|
deviceId: number(),
|
|
16722
17209
|
agentNodeId: string(),
|
|
17210
|
+
deviceKey: string(),
|
|
16723
17211
|
addonId: string(),
|
|
16724
17212
|
patch: CameraStepOverridePatchSchema.nullable()
|
|
16725
17213
|
}), object({ success: literal(true) }), {
|
|
@@ -16756,14 +17244,13 @@ method(object({
|
|
|
16756
17244
|
});
|
|
16757
17245
|
/**
|
|
16758
17246
|
* server-management — per-NODE singleton capability for a node's ROOT
|
|
16759
|
-
* package lifecycle (runtime-updatable node packages
|
|
16760
|
-
* agents).
|
|
17247
|
+
* package lifecycle (runtime-updatable node packages).
|
|
16761
17248
|
*
|
|
16762
|
-
*
|
|
16763
|
-
*
|
|
16764
|
-
*
|
|
16765
|
-
*
|
|
16766
|
-
*
|
|
17249
|
+
* Every node role runs the SAME root package (`@camstack/server`), which
|
|
17250
|
+
* carries the whole software stack in its npm dep tree, so ONE version
|
|
17251
|
+
* describes the node. Updates stage into `<dataDir>/server-root/` and apply
|
|
17252
|
+
* on restart via the baked starter (single-copy in-place swap — no probation,
|
|
17253
|
+
* no auto-rollback).
|
|
16767
17254
|
*
|
|
16768
17255
|
* Providers:
|
|
16769
17256
|
* - HUB: `ServerUpdateService` behind the `server-provided` mount
|
|
@@ -16871,7 +17358,8 @@ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), S
|
|
|
16871
17358
|
/** Explicit target version; omitted = latest from the registry. */
|
|
16872
17359
|
version: string().optional() }), ServerUpdateActionResultSchema, {
|
|
16873
17360
|
kind: "mutation",
|
|
16874
|
-
auth: "admin"
|
|
17361
|
+
auth: "admin",
|
|
17362
|
+
timeoutMs: 16 * 6e4
|
|
16875
17363
|
}), method(_void(), ServerUpdateActionResultSchema, {
|
|
16876
17364
|
kind: "mutation",
|
|
16877
17365
|
auth: "admin"
|
|
@@ -17928,22 +18416,6 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
|
|
|
17928
18416
|
var RestartAddonResultSchema = unknown();
|
|
17929
18417
|
var InstallPackageResultSchema = unknown();
|
|
17930
18418
|
var ReloadPackagesResultSchema = unknown();
|
|
17931
|
-
/**
|
|
17932
|
-
* Result of `updateFrameworkPackage`. The cap method returns BEFORE the
|
|
17933
|
-
* server restarts so the admin UI can react to the `restartingAt`
|
|
17934
|
-
* timestamp (shows reconnect overlay). The transition from
|
|
17935
|
-
* `fromVersion` to `toVersion` will be confirmed by a subsequent
|
|
17936
|
-
* `system.restart-completed` event after the new process boots.
|
|
17937
|
-
*
|
|
17938
|
-
* Spec: docs/superpowers/specs/2026-05-14-framework-live-update-design.md
|
|
17939
|
-
*/
|
|
17940
|
-
var UpdateFrameworkPackageResultSchema = object({
|
|
17941
|
-
packageName: string(),
|
|
17942
|
-
fromVersion: string(),
|
|
17943
|
-
toVersion: string(),
|
|
17944
|
-
/** Ms-epoch the server scheduled its self-restart. */
|
|
17945
|
-
restartingAt: number()
|
|
17946
|
-
});
|
|
17947
18419
|
var BulkUpdateItemStatusSchema = _enum([
|
|
17948
18420
|
"queued",
|
|
17949
18421
|
"updating",
|
|
@@ -18071,13 +18543,6 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
18071
18543
|
}), object({ success: literal(true) }), {
|
|
18072
18544
|
kind: "mutation",
|
|
18073
18545
|
auth: "admin"
|
|
18074
|
-
}), method(object({
|
|
18075
|
-
packageName: string().min(1),
|
|
18076
|
-
version: string().optional(),
|
|
18077
|
-
deferRestart: boolean().optional()
|
|
18078
|
-
}), UpdateFrameworkPackageResultSchema, {
|
|
18079
|
-
kind: "mutation",
|
|
18080
|
-
auth: "admin"
|
|
18081
18546
|
}), method(object({ name: string() }), array(PackageVersionInfoSchema).readonly()), method(object({ addonId: string() }), RestartAddonResultSchema, {
|
|
18082
18547
|
kind: "mutation",
|
|
18083
18548
|
auth: "admin"
|
|
@@ -18943,10 +19408,10 @@ var TopologyCategorySchema = object({
|
|
|
18943
19408
|
addons: array(TopologyCategoryAddonSchema).readonly()
|
|
18944
19409
|
});
|
|
18945
19410
|
/**
|
|
18946
|
-
* The node's runtime-updatable ROOT package (`@camstack/server`
|
|
18947
|
-
*
|
|
18948
|
-
* version visibility for the Server management surface. Nullable:
|
|
18949
|
-
* rows and
|
|
19411
|
+
* The node's runtime-updatable ROOT package (`@camstack/server` — the single
|
|
19412
|
+
* root package for every node role) as reported by its `registerNode`
|
|
19413
|
+
* manifest — version visibility for the Server management surface. Nullable:
|
|
19414
|
+
* offline rows and nodes that never reported one.
|
|
18950
19415
|
*/
|
|
18951
19416
|
var TopologyRootPackageSchema = object({
|
|
18952
19417
|
name: string(),
|
|
@@ -19334,17 +19799,28 @@ var PlatformScoreSchema = object({
|
|
|
19334
19799
|
format: _enum([
|
|
19335
19800
|
"onnx",
|
|
19336
19801
|
"coreml",
|
|
19337
|
-
"openvino"
|
|
19802
|
+
"openvino",
|
|
19803
|
+
"tflite"
|
|
19338
19804
|
]),
|
|
19339
19805
|
score: number(),
|
|
19340
19806
|
reason: string(),
|
|
19341
19807
|
available: boolean()
|
|
19342
19808
|
});
|
|
19809
|
+
var InferenceDeviceDescriptorSchema = object({
|
|
19810
|
+
key: string(),
|
|
19811
|
+
backend: string(),
|
|
19812
|
+
device: string(),
|
|
19813
|
+
format: ModelFormatSchema,
|
|
19814
|
+
runtime: literal("python"),
|
|
19815
|
+
score: number(),
|
|
19816
|
+
available: boolean()
|
|
19817
|
+
});
|
|
19343
19818
|
var PlatformCapabilitiesSchema = object({
|
|
19344
19819
|
hardware: HardwareInfoSchema,
|
|
19345
19820
|
scores: array(PlatformScoreSchema).readonly(),
|
|
19346
19821
|
bestScore: PlatformScoreSchema,
|
|
19347
|
-
pythonPath: string().nullable()
|
|
19822
|
+
pythonPath: string().nullable(),
|
|
19823
|
+
devices: array(InferenceDeviceDescriptorSchema).readonly()
|
|
19348
19824
|
});
|
|
19349
19825
|
var ModelRequirementSchema = object({
|
|
19350
19826
|
modelId: string(),
|
|
@@ -20223,12 +20699,6 @@ Object.freeze({
|
|
|
20223
20699
|
addonId: null,
|
|
20224
20700
|
access: "delete"
|
|
20225
20701
|
},
|
|
20226
|
-
"addons.updateFrameworkPackage": {
|
|
20227
|
-
capName: "addons",
|
|
20228
|
-
capScope: "system",
|
|
20229
|
-
addonId: null,
|
|
20230
|
-
access: "create"
|
|
20231
|
-
},
|
|
20232
20702
|
"addons.updatePackage": {
|
|
20233
20703
|
capName: "addons",
|
|
20234
20704
|
capScope: "system",
|
|
@@ -23001,12 +23471,6 @@ Object.freeze({
|
|
|
23001
23471
|
addonId: null,
|
|
23002
23472
|
access: "view"
|
|
23003
23473
|
},
|
|
23004
|
-
"pipelineExecutor.reprobeEngine": {
|
|
23005
|
-
capName: "pipeline-executor",
|
|
23006
|
-
capScope: "system",
|
|
23007
|
-
addonId: null,
|
|
23008
|
-
access: "create"
|
|
23009
|
-
},
|
|
23010
23474
|
"pipelineExecutor.runAudioTest": {
|
|
23011
23475
|
capName: "pipeline-executor",
|
|
23012
23476
|
capScope: "system",
|
|
@@ -23157,6 +23621,12 @@ Object.freeze({
|
|
|
23157
23621
|
addonId: null,
|
|
23158
23622
|
access: "view"
|
|
23159
23623
|
},
|
|
23624
|
+
"pipelineOrchestrator.getNodeInferenceDevices": {
|
|
23625
|
+
capName: "pipeline-orchestrator",
|
|
23626
|
+
capScope: "system",
|
|
23627
|
+
addonId: null,
|
|
23628
|
+
access: "view"
|
|
23629
|
+
},
|
|
23160
23630
|
"pipelineOrchestrator.getPipelineAssignment": {
|
|
23161
23631
|
capName: "pipeline-orchestrator",
|
|
23162
23632
|
capScope: "system",
|
|
@@ -23169,6 +23639,12 @@ Object.freeze({
|
|
|
23169
23639
|
addonId: null,
|
|
23170
23640
|
access: "view"
|
|
23171
23641
|
},
|
|
23642
|
+
"pipelineOrchestrator.getPipelineDevicePin": {
|
|
23643
|
+
capName: "pipeline-orchestrator",
|
|
23644
|
+
capScope: "system",
|
|
23645
|
+
addonId: null,
|
|
23646
|
+
access: "view"
|
|
23647
|
+
},
|
|
23172
23648
|
"pipelineOrchestrator.listAgentSettings": {
|
|
23173
23649
|
capName: "pipeline-orchestrator",
|
|
23174
23650
|
capScope: "system",
|
|
@@ -23211,19 +23687,19 @@ Object.freeze({
|
|
|
23211
23687
|
addonId: null,
|
|
23212
23688
|
access: "create"
|
|
23213
23689
|
},
|
|
23214
|
-
"pipelineOrchestrator.
|
|
23690
|
+
"pipelineOrchestrator.setAgentCapabilities": {
|
|
23215
23691
|
capName: "pipeline-orchestrator",
|
|
23216
23692
|
capScope: "system",
|
|
23217
23693
|
addonId: null,
|
|
23218
23694
|
access: "create"
|
|
23219
23695
|
},
|
|
23220
|
-
"pipelineOrchestrator.
|
|
23696
|
+
"pipelineOrchestrator.setAgentDetectWeight": {
|
|
23221
23697
|
capName: "pipeline-orchestrator",
|
|
23222
23698
|
capScope: "system",
|
|
23223
23699
|
addonId: null,
|
|
23224
23700
|
access: "create"
|
|
23225
23701
|
},
|
|
23226
|
-
"pipelineOrchestrator.
|
|
23702
|
+
"pipelineOrchestrator.setAgentInferenceDevices": {
|
|
23227
23703
|
capName: "pipeline-orchestrator",
|
|
23228
23704
|
capScope: "system",
|
|
23229
23705
|
addonId: null,
|
|
@@ -23265,6 +23741,12 @@ Object.freeze({
|
|
|
23265
23741
|
addonId: null,
|
|
23266
23742
|
access: "create"
|
|
23267
23743
|
},
|
|
23744
|
+
"pipelineOrchestrator.setPipelineDevicePin": {
|
|
23745
|
+
capName: "pipeline-orchestrator",
|
|
23746
|
+
capScope: "system",
|
|
23747
|
+
addonId: null,
|
|
23748
|
+
access: "create"
|
|
23749
|
+
},
|
|
23268
23750
|
"pipelineOrchestrator.unassignAudio": {
|
|
23269
23751
|
capName: "pipeline-orchestrator",
|
|
23270
23752
|
capScope: "system",
|
|
@@ -24817,32 +25299,6 @@ Object.freeze({
|
|
|
24817
25299
|
"network-access": "ingress",
|
|
24818
25300
|
"smtp-provider": "email"
|
|
24819
25301
|
});
|
|
24820
|
-
var frameworkSwapPackageSchema = object({
|
|
24821
|
-
name: string(),
|
|
24822
|
-
stagedPath: string(),
|
|
24823
|
-
backupPath: string(),
|
|
24824
|
-
toVersion: string(),
|
|
24825
|
-
fromVersion: string().nullable()
|
|
24826
|
-
});
|
|
24827
|
-
object({
|
|
24828
|
-
jobId: string(),
|
|
24829
|
-
taskId: string(),
|
|
24830
|
-
packages: array(frameworkSwapPackageSchema),
|
|
24831
|
-
requestedAtMs: number(),
|
|
24832
|
-
schemaVersion: literal(1)
|
|
24833
|
-
});
|
|
24834
|
-
object({
|
|
24835
|
-
jobId: string(),
|
|
24836
|
-
taskId: string(),
|
|
24837
|
-
backups: array(object({
|
|
24838
|
-
name: string(),
|
|
24839
|
-
backupPath: string(),
|
|
24840
|
-
livePath: string()
|
|
24841
|
-
})),
|
|
24842
|
-
appliedAtMs: number(),
|
|
24843
|
-
bootAttempts: number(),
|
|
24844
|
-
schemaVersion: literal(1)
|
|
24845
|
-
});
|
|
24846
25302
|
//#endregion
|
|
24847
25303
|
//#region ../../node_modules/nodemailer/lib/punycode/index.js
|
|
24848
25304
|
var require_punycode = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|