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