@camstack/addon-provider-rtsp 1.1.28 → 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.
Files changed (3) hide show
  1. package/dist/addon.js +193 -103
  2. package/dist/addon.mjs +193 -103
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -7110,6 +7110,17 @@ var ModelCatalogEntrySchema = object({
7110
7110
  "imagenet",
7111
7111
  "none"
7112
7112
  ]).optional(),
7113
+ /**
7114
+ * The model already applies softmax IN-GRAPH — its raw output is a
7115
+ * probability distribution, not logits. When set, the `softmax`
7116
+ * postprocessor must NOT re-apply softmax: re-softmaxing an already-normalised
7117
+ * probability vector collapses it toward uniform (top-1 score craters far
7118
+ * below its true value, making every confidence gate meaningless). Absent ⇒
7119
+ * the output is raw logits and the postprocessor applies softmax (the normal
7120
+ * case). Set on the Google AIY Birds `bird-classifier` (softmax baked into the
7121
+ * TF graph). Threaded to the Python pool via `PoolModelConfig.outputProbabilities`.
7122
+ */
7123
+ outputProbabilities: boolean().optional(),
7113
7124
  preprocessMode: _enum(["letterbox", "resize"]).optional(),
7114
7125
  /**
7115
7126
  * Per-MODEL postprocessor override. Absent ⇒ the step's own
@@ -12498,10 +12509,7 @@ var ConfigUISchemaNullableBridge = custom();
12498
12509
  var InferenceCapabilitiesBridge = custom();
12499
12510
  var ModelAvailabilityListBridge = custom();
12500
12511
  var PipelineRunResultBridge = custom();
12501
- method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngineChoiceSchema), method(PipelineEngineChoiceSchema, array(PipelineDefaultStepSchema)), method(_void(), PipelineEngineChoiceSchema, {
12502
- kind: "mutation",
12503
- auth: "admin"
12504
- }), method(object({ nodeId: string() }), EngineProvisioningSchema), method(_void(), record(string(), object({
12512
+ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngineChoiceSchema), method(PipelineEngineChoiceSchema, array(PipelineDefaultStepSchema)), method(object({ nodeId: string() }), EngineProvisioningSchema), method(_void(), record(string(), object({
12505
12513
  modelId: string(),
12506
12514
  settings: record(string(), unknown()).readonly()
12507
12515
  }))), method(object({ steps: record(string(), object({
@@ -12561,13 +12569,33 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
12561
12569
  * (inputClasses ≠ null) are skipped and served per-track via
12562
12570
  * pipelineRunner.runDetailSubtree (two-plane design).
12563
12571
  */
12564
- plane: _enum(["full", "frame"]).optional()
12572
+ plane: _enum(["full", "frame"]).optional(),
12573
+ /**
12574
+ * Inference-device selector (Phase 2 multi-device). Format
12575
+ * `<backend>:<device>` (e.g. `openvino:gpu`, `edgetpu:usb`, `cpu`).
12576
+ * Omitted ⇒ the runner's default device (current single-engine
12577
+ * behaviour). Selects WHICH device pool of the node runs the call.
12578
+ */
12579
+ deviceKey: string().optional()
12565
12580
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
12566
12581
  engine: PipelineEngineChoiceSchema.optional(),
12567
12582
  steps: array(PipelineStepInputSchema).min(1),
12568
12583
  frames: array(FrameInputSchema).min(1).max(255),
12569
12584
  deviceId: number().optional(),
12570
- sessionId: string().optional()
12585
+ sessionId: string().optional(),
12586
+ /**
12587
+ * Pure-inference benchmark hint. A NONZERO uint32 pins every frame in
12588
+ * the batch to the Python pool's bench preprocess cache
12589
+ * (`_bench_frame_id`) so a REPEATED benchmark frame is decoded +
12590
+ * preprocessed ONCE and every later inference is a pure-inference cache
12591
+ * hit — the sustained-throughput run measures inference, not
12592
+ * decode+preprocess+infer. Omitted/0 for live frames (all different →
12593
+ * full preprocess every call, correct). Fresh per sustained run;
12594
+ * released via `uncacheFrame`.
12595
+ */
12596
+ frameId: number().int().nonnegative().optional(),
12597
+ /** Inference-device selector (Phase 2 multi-device); see runPipeline. */
12598
+ deviceKey: string().optional()
12571
12599
  }), object({ results: array(PipelineRunResultBridge).readonly() }), { kind: "mutation" }), method(object({
12572
12600
  data: _instanceof(Uint8Array),
12573
12601
  width: number().int().positive(),
@@ -12599,8 +12627,18 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
12599
12627
  * - `runtime` — main camera-serving engine (no idle TTL).
12600
12628
  * - `warm-override` — benchmark/test override held in the warm
12601
12629
  * cache; auto-disposed after the idle TTL.
12630
+ * - `device-pool` — a concurrent per-device pool (Phase 2
12631
+ * multi-device, keyed by `deviceKey`) resolved
12632
+ * via `resolveDeviceFactory`. Runs alongside the
12633
+ * `runtime` engine on a DIFFERENT accelerator
12634
+ * (NPU / iGPU / Coral) — this is how the
12635
+ * Engines tab shows all pools running at once.
12602
12636
  */
12603
- kind: _enum(["runtime", "warm-override"]),
12637
+ kind: _enum([
12638
+ "runtime",
12639
+ "warm-override",
12640
+ "device-pool"
12641
+ ]),
12604
12642
  /** Native pid of the underlying Python pool (null when no pool). */
12605
12643
  poolPid: number().nullable(),
12606
12644
  /** ms since this factory was last used (null when not warm-tracked). */
@@ -12975,7 +13013,14 @@ var RunnerCameraConfigSchema = object({
12975
13013
  * camera's detect node differs from its source-owner (P2d, gated by the
12976
13014
  * `remoteSourcingNodes` rollout setting).
12977
13015
  */
12978
- frameSource: RunnerFrameSourceSchema.default({ kind: "local-broker" })
13016
+ frameSource: RunnerFrameSourceSchema.default({ kind: "local-broker" }),
13017
+ /**
13018
+ * Inference-device selector for this camera's sessions (Phase 2 multi-device).
13019
+ * Format `<backend>:<device>` (e.g. `openvino:gpu`, `edgetpu:usb`, `cpu`);
13020
+ * omitted ⇒ the runner's default device. The engine itself stays node-local —
13021
+ * this only selects WHICH device pool of that node runs the session.
13022
+ */
13023
+ deviceKey: string().optional()
12979
13024
  });
12980
13025
  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;
12981
13026
  /**
@@ -12996,6 +13041,19 @@ var RunnerLocalLoadSchema = object({
12996
13041
  avgInferenceTimeMs: number(),
12997
13042
  /** Total queue depth across motion + detection queues. */
12998
13043
  queueDepthTotal: number(),
13044
+ /**
13045
+ * Per-inference-device live load (multi-device C4). One entry per deviceKey
13046
+ * this runner currently has attached cameras on, so the orchestrator's second
13047
+ * `balance()` pass (over a node's devices) weights on real per-pool session
13048
+ * counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
13049
+ * per device is 0 until the pool backlog gets a public accessor (follow-up).
13050
+ */
13051
+ devices: array(object({
13052
+ deviceKey: string(),
13053
+ backend: string(),
13054
+ attachedCameras: number(),
13055
+ queueDepthTotal: number()
13056
+ })).default([]),
12999
13057
  /** Hardware capability flags reported by this node. */
13000
13058
  hardware: object({
13001
13059
  hasGpu: boolean(),
@@ -16144,6 +16202,8 @@ var BaseDeviceProvider = class extends BaseAddon {
16144
16202
  return toDeviceSummary(device, this.addonId);
16145
16203
  }
16146
16204
  };
16205
+ 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;
16206
+ new Set(Object.values(DeviceType));
16147
16207
  /**
16148
16208
  * `addon-pages` — system-scoped singleton aggregator cap. Public-facing
16149
16209
  * surface that admin-ui consumes through `useAddonPagesListPages()`.
@@ -19813,13 +19873,11 @@ var PipelineTemplateSchema = object({
19813
19873
  createdAt: string(),
19814
19874
  updatedAt: string()
19815
19875
  });
19816
- var AgentAddonConfigSchema = object({
19817
- enabled: boolean(),
19876
+ var DeviceStepConfigSchema = object({
19818
19877
  modelId: string().optional(),
19819
- settings: record(string(), unknown()).readonly()
19878
+ settings: record(string(), unknown()).optional()
19820
19879
  });
19821
19880
  var AgentPipelineSettingsSchema = object({
19822
- addonDefaults: record(string(), AgentAddonConfigSchema).readonly(),
19823
19881
  maxCameras: number().int().nonnegative().nullable().default(null),
19824
19882
  /** Per-node detection weight (relative share for the quota balancer). */
19825
19883
  detectWeight: number().positive().optional(),
@@ -19843,7 +19901,22 @@ var AgentPipelineSettingsSchema = object({
19843
19901
  * it already uses to reach the hub). Set this only when the auto-detected
19844
19902
  * address is wrong (multi-homed host, NAT, custom interface).
19845
19903
  */
19846
- reachableHost: string().optional()
19904
+ reachableHost: string().optional(),
19905
+ /**
19906
+ * Multi-device inference opt-in (Phase 4). Per-node map deviceKey → {enabled,
19907
+ * weight, steps}. Absent / all-disabled ⇒ the node's single default
19908
+ * accelerator (safe default); two+ enabled ⇒ the dispatcher balances
19909
+ * detection sessions across them so they run CONCURRENTLY. `steps` is the
19910
+ * per-(node,device) BASE provisioning (`stepId → {modelId?, settings?}`) —
19911
+ * the default model/settings for every camera landing on that accelerator;
19912
+ * a stepId absent ⇒ the step uses that device's format default.
19913
+ */
19914
+ inferenceDevices: record(string(), object({
19915
+ enabled: boolean(),
19916
+ weight: number().positive().optional(),
19917
+ maxSessions: number().int().positive().optional(),
19918
+ steps: record(string(), DeviceStepConfigSchema).optional()
19919
+ })).optional()
19847
19920
  });
19848
19921
  var CameraPipelineForAgentSchema = object({
19849
19922
  steps: array(PipelineStepInputSchema).readonly(),
@@ -19853,14 +19926,13 @@ var CameraPipelineForAgentSchema = object({
19853
19926
  }).nullable()
19854
19927
  });
19855
19928
  var CameraStepOverridePatchSchema = object({
19856
- enabled: boolean().optional(),
19857
19929
  modelId: string().optional(),
19858
19930
  settings: record(string(), unknown()).readonly().optional()
19859
19931
  });
19860
19932
  var CameraPipelineSettingsSchema = object({
19861
19933
  pinnedAgentNodeId: string().optional(),
19862
19934
  stepToggles: record(string(), boolean()).optional(),
19863
- stepOverridesByAgent: record(string(), record(string(), CameraStepOverridePatchSchema)).optional(),
19935
+ stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
19864
19936
  pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
19865
19937
  });
19866
19938
  /**
@@ -20074,6 +20146,44 @@ var CameraStatusSchema = object({
20074
20146
  /** Unix timestamp (ms) when this snapshot was composed server-side. */
20075
20147
  fetchedAt: number()
20076
20148
  });
20149
+ var NodeInferenceDeviceSchema = object({
20150
+ /** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
20151
+ key: string(),
20152
+ backend: string(),
20153
+ device: string(),
20154
+ format: _enum(MODEL_FORMATS),
20155
+ /** Whether the node's live probe reports the device as usable right now. */
20156
+ available: boolean(),
20157
+ /**
20158
+ * Whether this device participates in dispatch. AUTO default (spec C2):
20159
+ * accelerators are opt-OUT (a discovered NPU/iGPU/Coral/ANE with no stored
20160
+ * entry is `true`); CPU is opt-IN (`false` by default — the fallback pool,
20161
+ * not a balanced target). An explicit stored value always wins; a stored-only
20162
+ * (unavailable) key keeps its stored value.
20163
+ */
20164
+ enabled: boolean(),
20165
+ /** Relative balancer weight for the enabled device (default 1). */
20166
+ weight: number(),
20167
+ /** Per-device concurrent-session cap; null = unlimited (multi-device C4). */
20168
+ maxSessions: number().nullable(),
20169
+ /** Object-detection model the executor defaults to for this deviceKey. */
20170
+ defaultModelId: string(),
20171
+ /**
20172
+ * Per-(node,device) BASE provisioning (C7.2/C7.4) — the RAW stored
20173
+ * `stepId → {modelId?, settings?}` map from `inferenceDevices[key].steps`.
20174
+ * Absent/empty ⇒ no base (every step uses its device format default). The
20175
+ * UI cross-references `pipelineExecutor.getSchema` for the models actually
20176
+ * available per format; this is the stored selection that becomes the
20177
+ * default for EVERY camera landing on this accelerator.
20178
+ */
20179
+ steps: record(string(), DeviceStepConfigSchema).optional()
20180
+ });
20181
+ var NodeInferenceDevicesSchema = object({
20182
+ nodeId: string(),
20183
+ /** False when the node's platform-probe was unreachable (no live device set). */
20184
+ reachable: boolean(),
20185
+ devices: array(NodeInferenceDeviceSchema).readonly()
20186
+ });
20077
20187
  method(object({
20078
20188
  deviceId: number(),
20079
20189
  agentNodeId: string()
@@ -20083,7 +20193,13 @@ method(object({
20083
20193
  }), method(object({ deviceId: number() }), object({ success: literal(true) }), {
20084
20194
  kind: "mutation",
20085
20195
  auth: "admin"
20086
- }), method(_void(), object({ migrated: number() }), {
20196
+ }), method(object({
20197
+ deviceId: number(),
20198
+ deviceKey: string()
20199
+ }), object({ success: literal(true) }), {
20200
+ kind: "mutation",
20201
+ auth: "admin"
20202
+ }), method(object({ deviceId: number() }), object({ deviceKey: string().nullable() })), method(_void(), object({ migrated: number() }), {
20087
20203
  kind: "mutation",
20088
20204
  auth: "admin"
20089
20205
  }), 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({
@@ -20117,13 +20233,7 @@ method(object({
20117
20233
  }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
20118
20234
  nodeId: string(),
20119
20235
  settings: AgentPipelineSettingsSchema
20120
- })).readonly()), method(object({
20121
- agentNodeId: string(),
20122
- defaults: record(string(), AgentAddonConfigSchema)
20123
- }), object({ success: literal(true) }), {
20124
- kind: "mutation",
20125
- auth: "admin"
20126
- }), method(object({ agentNodeId: string() }), object({
20236
+ })).readonly()), method(object({ agentNodeId: string() }), object({
20127
20237
  success: boolean(),
20128
20238
  removed: boolean()
20129
20239
  }), {
@@ -20155,7 +20265,18 @@ method(object({
20155
20265
  }), object({ success: literal(true) }), {
20156
20266
  kind: "mutation",
20157
20267
  auth: "admin"
20158
- }), method(object({ agentNodeId: string() }), object({
20268
+ }), method(object({
20269
+ agentNodeId: string(),
20270
+ inferenceDevices: record(string(), object({
20271
+ enabled: boolean(),
20272
+ weight: number().positive().optional(),
20273
+ maxSessions: number().int().positive().optional(),
20274
+ steps: record(string(), DeviceStepConfigSchema).optional()
20275
+ }))
20276
+ }), object({ success: literal(true) }), {
20277
+ kind: "mutation",
20278
+ auth: "admin"
20279
+ }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({ agentNodeId: string() }), object({
20159
20280
  success: literal(true),
20160
20281
  /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
20161
20282
  effectiveModelId: string().nullable(),
@@ -20171,9 +20292,10 @@ method(object({
20171
20292
  }), object({ success: literal(true) }), {
20172
20293
  kind: "mutation",
20173
20294
  auth: "admin"
20174
- }), method(object({ deviceId: number() }), record(string(), record(string(), CameraStepOverridePatchSchema)).nullable()), method(object({
20295
+ }), method(object({ deviceId: number() }), record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).nullable()), method(object({
20175
20296
  deviceId: number(),
20176
20297
  agentNodeId: string(),
20298
+ deviceKey: string(),
20177
20299
  addonId: string(),
20178
20300
  patch: CameraStepOverridePatchSchema.nullable()
20179
20301
  }), object({ success: literal(true) }), {
@@ -20210,14 +20332,13 @@ method(object({
20210
20332
  });
20211
20333
  /**
20212
20334
  * server-management — per-NODE singleton capability for a node's ROOT
20213
- * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
20214
- * agents).
20335
+ * package lifecycle (runtime-updatable node packages).
20215
20336
  *
20216
- * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
20217
- * on agents) carries the whole software stack in its npm dep tree, so ONE
20218
- * version describes the node. Updates install into
20219
- * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
20220
- * starter (probation boot + auto-rollback to N-1).
20337
+ * Every node role runs the SAME root package (`@camstack/server`), which
20338
+ * carries the whole software stack in its npm dep tree, so ONE version
20339
+ * describes the node. Updates stage into `<dataDir>/server-root/` and apply
20340
+ * on restart via the baked starter (single-copy in-place swap — no probation,
20341
+ * no auto-rollback).
20221
20342
  *
20222
20343
  * Providers:
20223
20344
  * - HUB: `ServerUpdateService` behind the `server-provided` mount
@@ -20325,7 +20446,8 @@ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), S
20325
20446
  /** Explicit target version; omitted = latest from the registry. */
20326
20447
  version: string().optional() }), ServerUpdateActionResultSchema, {
20327
20448
  kind: "mutation",
20328
- auth: "admin"
20449
+ auth: "admin",
20450
+ timeoutMs: 16 * 6e4
20329
20451
  }), method(_void(), ServerUpdateActionResultSchema, {
20330
20452
  kind: "mutation",
20331
20453
  auth: "admin"
@@ -21420,22 +21542,6 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
21420
21542
  var RestartAddonResultSchema = unknown();
21421
21543
  var InstallPackageResultSchema = unknown();
21422
21544
  var ReloadPackagesResultSchema = unknown();
21423
- /**
21424
- * Result of `updateFrameworkPackage`. The cap method returns BEFORE the
21425
- * server restarts so the admin UI can react to the `restartingAt`
21426
- * timestamp (shows reconnect overlay). The transition from
21427
- * `fromVersion` to `toVersion` will be confirmed by a subsequent
21428
- * `system.restart-completed` event after the new process boots.
21429
- *
21430
- * Spec: docs/superpowers/specs/2026-05-14-framework-live-update-design.md
21431
- */
21432
- var UpdateFrameworkPackageResultSchema = object({
21433
- packageName: string(),
21434
- fromVersion: string(),
21435
- toVersion: string(),
21436
- /** Ms-epoch the server scheduled its self-restart. */
21437
- restartingAt: number()
21438
- });
21439
21545
  var BulkUpdateItemStatusSchema = _enum([
21440
21546
  "queued",
21441
21547
  "updating",
@@ -21563,13 +21669,6 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
21563
21669
  }), object({ success: literal(true) }), {
21564
21670
  kind: "mutation",
21565
21671
  auth: "admin"
21566
- }), method(object({
21567
- packageName: string().min(1),
21568
- version: string().optional(),
21569
- deferRestart: boolean().optional()
21570
- }), UpdateFrameworkPackageResultSchema, {
21571
- kind: "mutation",
21572
- auth: "admin"
21573
21672
  }), method(object({ name: string() }), array(PackageVersionInfoSchema).readonly()), method(object({ addonId: string() }), RestartAddonResultSchema, {
21574
21673
  kind: "mutation",
21575
21674
  auth: "admin"
@@ -22435,10 +22534,10 @@ var TopologyCategorySchema = object({
22435
22534
  addons: array(TopologyCategoryAddonSchema).readonly()
22436
22535
  });
22437
22536
  /**
22438
- * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
22439
- * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
22440
- * version visibility for the Server management surface. Nullable: offline
22441
- * rows and pre-phase-2 nodes report none.
22537
+ * The node's runtime-updatable ROOT package (`@camstack/server` the single
22538
+ * root package for every node role) as reported by its `registerNode`
22539
+ * manifest — version visibility for the Server management surface. Nullable:
22540
+ * offline rows and nodes that never reported one.
22442
22541
  */
22443
22542
  var TopologyRootPackageSchema = object({
22444
22543
  name: string(),
@@ -22826,17 +22925,28 @@ var PlatformScoreSchema = object({
22826
22925
  format: _enum([
22827
22926
  "onnx",
22828
22927
  "coreml",
22829
- "openvino"
22928
+ "openvino",
22929
+ "tflite"
22830
22930
  ]),
22831
22931
  score: number(),
22832
22932
  reason: string(),
22833
22933
  available: boolean()
22834
22934
  });
22935
+ var InferenceDeviceDescriptorSchema = object({
22936
+ key: string(),
22937
+ backend: string(),
22938
+ device: string(),
22939
+ format: ModelFormatSchema,
22940
+ runtime: literal("python"),
22941
+ score: number(),
22942
+ available: boolean()
22943
+ });
22835
22944
  var PlatformCapabilitiesSchema = object({
22836
22945
  hardware: HardwareInfoSchema,
22837
22946
  scores: array(PlatformScoreSchema).readonly(),
22838
22947
  bestScore: PlatformScoreSchema,
22839
- pythonPath: string().nullable()
22948
+ pythonPath: string().nullable(),
22949
+ devices: array(InferenceDeviceDescriptorSchema).readonly()
22840
22950
  });
22841
22951
  var ModelRequirementSchema = object({
22842
22952
  modelId: string(),
@@ -23728,12 +23838,6 @@ Object.freeze({
23728
23838
  addonId: null,
23729
23839
  access: "delete"
23730
23840
  },
23731
- "addons.updateFrameworkPackage": {
23732
- capName: "addons",
23733
- capScope: "system",
23734
- addonId: null,
23735
- access: "create"
23736
- },
23737
23841
  "addons.updatePackage": {
23738
23842
  capName: "addons",
23739
23843
  capScope: "system",
@@ -26506,12 +26610,6 @@ Object.freeze({
26506
26610
  addonId: null,
26507
26611
  access: "view"
26508
26612
  },
26509
- "pipelineExecutor.reprobeEngine": {
26510
- capName: "pipeline-executor",
26511
- capScope: "system",
26512
- addonId: null,
26513
- access: "create"
26514
- },
26515
26613
  "pipelineExecutor.runAudioTest": {
26516
26614
  capName: "pipeline-executor",
26517
26615
  capScope: "system",
@@ -26662,6 +26760,12 @@ Object.freeze({
26662
26760
  addonId: null,
26663
26761
  access: "view"
26664
26762
  },
26763
+ "pipelineOrchestrator.getNodeInferenceDevices": {
26764
+ capName: "pipeline-orchestrator",
26765
+ capScope: "system",
26766
+ addonId: null,
26767
+ access: "view"
26768
+ },
26665
26769
  "pipelineOrchestrator.getPipelineAssignment": {
26666
26770
  capName: "pipeline-orchestrator",
26667
26771
  capScope: "system",
@@ -26674,6 +26778,12 @@ Object.freeze({
26674
26778
  addonId: null,
26675
26779
  access: "view"
26676
26780
  },
26781
+ "pipelineOrchestrator.getPipelineDevicePin": {
26782
+ capName: "pipeline-orchestrator",
26783
+ capScope: "system",
26784
+ addonId: null,
26785
+ access: "view"
26786
+ },
26677
26787
  "pipelineOrchestrator.listAgentSettings": {
26678
26788
  capName: "pipeline-orchestrator",
26679
26789
  capScope: "system",
@@ -26716,19 +26826,19 @@ Object.freeze({
26716
26826
  addonId: null,
26717
26827
  access: "create"
26718
26828
  },
26719
- "pipelineOrchestrator.setAgentAddonDefaults": {
26829
+ "pipelineOrchestrator.setAgentCapabilities": {
26720
26830
  capName: "pipeline-orchestrator",
26721
26831
  capScope: "system",
26722
26832
  addonId: null,
26723
26833
  access: "create"
26724
26834
  },
26725
- "pipelineOrchestrator.setAgentCapabilities": {
26835
+ "pipelineOrchestrator.setAgentDetectWeight": {
26726
26836
  capName: "pipeline-orchestrator",
26727
26837
  capScope: "system",
26728
26838
  addonId: null,
26729
26839
  access: "create"
26730
26840
  },
26731
- "pipelineOrchestrator.setAgentDetectWeight": {
26841
+ "pipelineOrchestrator.setAgentInferenceDevices": {
26732
26842
  capName: "pipeline-orchestrator",
26733
26843
  capScope: "system",
26734
26844
  addonId: null,
@@ -26770,6 +26880,12 @@ Object.freeze({
26770
26880
  addonId: null,
26771
26881
  access: "create"
26772
26882
  },
26883
+ "pipelineOrchestrator.setPipelineDevicePin": {
26884
+ capName: "pipeline-orchestrator",
26885
+ capScope: "system",
26886
+ addonId: null,
26887
+ access: "create"
26888
+ },
26773
26889
  "pipelineOrchestrator.unassignAudio": {
26774
26890
  capName: "pipeline-orchestrator",
26775
26891
  capScope: "system",
@@ -28322,32 +28438,6 @@ Object.freeze({
28322
28438
  "network-access": "ingress",
28323
28439
  "smtp-provider": "email"
28324
28440
  });
28325
- var frameworkSwapPackageSchema = object({
28326
- name: string(),
28327
- stagedPath: string(),
28328
- backupPath: string(),
28329
- toVersion: string(),
28330
- fromVersion: string().nullable()
28331
- });
28332
- object({
28333
- jobId: string(),
28334
- taskId: string(),
28335
- packages: array(frameworkSwapPackageSchema),
28336
- requestedAtMs: number(),
28337
- schemaVersion: literal(1)
28338
- });
28339
- object({
28340
- jobId: string(),
28341
- taskId: string(),
28342
- backups: array(object({
28343
- name: string(),
28344
- backupPath: string(),
28345
- livePath: string()
28346
- })),
28347
- appliedAtMs: number(),
28348
- bootAttempts: number(),
28349
- schemaVersion: literal(1)
28350
- });
28351
28441
  /**
28352
28442
  * Names that, when used as URL query parameters, almost certainly carry
28353
28443
  * a secret. Matching is case-insensitive and anchored to the full param
package/dist/addon.mjs CHANGED
@@ -7086,6 +7086,17 @@ var ModelCatalogEntrySchema = object({
7086
7086
  "imagenet",
7087
7087
  "none"
7088
7088
  ]).optional(),
7089
+ /**
7090
+ * The model already applies softmax IN-GRAPH — its raw output is a
7091
+ * probability distribution, not logits. When set, the `softmax`
7092
+ * postprocessor must NOT re-apply softmax: re-softmaxing an already-normalised
7093
+ * probability vector collapses it toward uniform (top-1 score craters far
7094
+ * below its true value, making every confidence gate meaningless). Absent ⇒
7095
+ * the output is raw logits and the postprocessor applies softmax (the normal
7096
+ * case). Set on the Google AIY Birds `bird-classifier` (softmax baked into the
7097
+ * TF graph). Threaded to the Python pool via `PoolModelConfig.outputProbabilities`.
7098
+ */
7099
+ outputProbabilities: boolean().optional(),
7089
7100
  preprocessMode: _enum(["letterbox", "resize"]).optional(),
7090
7101
  /**
7091
7102
  * Per-MODEL postprocessor override. Absent ⇒ the step's own
@@ -12474,10 +12485,7 @@ var ConfigUISchemaNullableBridge = custom();
12474
12485
  var InferenceCapabilitiesBridge = custom();
12475
12486
  var ModelAvailabilityListBridge = custom();
12476
12487
  var PipelineRunResultBridge = custom();
12477
- method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngineChoiceSchema), method(PipelineEngineChoiceSchema, array(PipelineDefaultStepSchema)), method(_void(), PipelineEngineChoiceSchema, {
12478
- kind: "mutation",
12479
- auth: "admin"
12480
- }), method(object({ nodeId: string() }), EngineProvisioningSchema), method(_void(), record(string(), object({
12488
+ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngineChoiceSchema), method(PipelineEngineChoiceSchema, array(PipelineDefaultStepSchema)), method(object({ nodeId: string() }), EngineProvisioningSchema), method(_void(), record(string(), object({
12481
12489
  modelId: string(),
12482
12490
  settings: record(string(), unknown()).readonly()
12483
12491
  }))), method(object({ steps: record(string(), object({
@@ -12537,13 +12545,33 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
12537
12545
  * (inputClasses ≠ null) are skipped and served per-track via
12538
12546
  * pipelineRunner.runDetailSubtree (two-plane design).
12539
12547
  */
12540
- plane: _enum(["full", "frame"]).optional()
12548
+ plane: _enum(["full", "frame"]).optional(),
12549
+ /**
12550
+ * Inference-device selector (Phase 2 multi-device). Format
12551
+ * `<backend>:<device>` (e.g. `openvino:gpu`, `edgetpu:usb`, `cpu`).
12552
+ * Omitted ⇒ the runner's default device (current single-engine
12553
+ * behaviour). Selects WHICH device pool of the node runs the call.
12554
+ */
12555
+ deviceKey: string().optional()
12541
12556
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
12542
12557
  engine: PipelineEngineChoiceSchema.optional(),
12543
12558
  steps: array(PipelineStepInputSchema).min(1),
12544
12559
  frames: array(FrameInputSchema).min(1).max(255),
12545
12560
  deviceId: number().optional(),
12546
- sessionId: string().optional()
12561
+ sessionId: string().optional(),
12562
+ /**
12563
+ * Pure-inference benchmark hint. A NONZERO uint32 pins every frame in
12564
+ * the batch to the Python pool's bench preprocess cache
12565
+ * (`_bench_frame_id`) so a REPEATED benchmark frame is decoded +
12566
+ * preprocessed ONCE and every later inference is a pure-inference cache
12567
+ * hit — the sustained-throughput run measures inference, not
12568
+ * decode+preprocess+infer. Omitted/0 for live frames (all different →
12569
+ * full preprocess every call, correct). Fresh per sustained run;
12570
+ * released via `uncacheFrame`.
12571
+ */
12572
+ frameId: number().int().nonnegative().optional(),
12573
+ /** Inference-device selector (Phase 2 multi-device); see runPipeline. */
12574
+ deviceKey: string().optional()
12547
12575
  }), object({ results: array(PipelineRunResultBridge).readonly() }), { kind: "mutation" }), method(object({
12548
12576
  data: _instanceof(Uint8Array),
12549
12577
  width: number().int().positive(),
@@ -12575,8 +12603,18 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
12575
12603
  * - `runtime` — main camera-serving engine (no idle TTL).
12576
12604
  * - `warm-override` — benchmark/test override held in the warm
12577
12605
  * cache; auto-disposed after the idle TTL.
12606
+ * - `device-pool` — a concurrent per-device pool (Phase 2
12607
+ * multi-device, keyed by `deviceKey`) resolved
12608
+ * via `resolveDeviceFactory`. Runs alongside the
12609
+ * `runtime` engine on a DIFFERENT accelerator
12610
+ * (NPU / iGPU / Coral) — this is how the
12611
+ * Engines tab shows all pools running at once.
12578
12612
  */
12579
- kind: _enum(["runtime", "warm-override"]),
12613
+ kind: _enum([
12614
+ "runtime",
12615
+ "warm-override",
12616
+ "device-pool"
12617
+ ]),
12580
12618
  /** Native pid of the underlying Python pool (null when no pool). */
12581
12619
  poolPid: number().nullable(),
12582
12620
  /** ms since this factory was last used (null when not warm-tracked). */
@@ -12951,7 +12989,14 @@ var RunnerCameraConfigSchema = object({
12951
12989
  * camera's detect node differs from its source-owner (P2d, gated by the
12952
12990
  * `remoteSourcingNodes` rollout setting).
12953
12991
  */
12954
- frameSource: RunnerFrameSourceSchema.default({ kind: "local-broker" })
12992
+ frameSource: RunnerFrameSourceSchema.default({ kind: "local-broker" }),
12993
+ /**
12994
+ * Inference-device selector for this camera's sessions (Phase 2 multi-device).
12995
+ * Format `<backend>:<device>` (e.g. `openvino:gpu`, `edgetpu:usb`, `cpu`);
12996
+ * omitted ⇒ the runner's default device. The engine itself stays node-local —
12997
+ * this only selects WHICH device pool of that node runs the session.
12998
+ */
12999
+ deviceKey: string().optional()
12955
13000
  });
12956
13001
  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;
12957
13002
  /**
@@ -12972,6 +13017,19 @@ var RunnerLocalLoadSchema = object({
12972
13017
  avgInferenceTimeMs: number(),
12973
13018
  /** Total queue depth across motion + detection queues. */
12974
13019
  queueDepthTotal: number(),
13020
+ /**
13021
+ * Per-inference-device live load (multi-device C4). One entry per deviceKey
13022
+ * this runner currently has attached cameras on, so the orchestrator's second
13023
+ * `balance()` pass (over a node's devices) weights on real per-pool session
13024
+ * counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
13025
+ * per device is 0 until the pool backlog gets a public accessor (follow-up).
13026
+ */
13027
+ devices: array(object({
13028
+ deviceKey: string(),
13029
+ backend: string(),
13030
+ attachedCameras: number(),
13031
+ queueDepthTotal: number()
13032
+ })).default([]),
12975
13033
  /** Hardware capability flags reported by this node. */
12976
13034
  hardware: object({
12977
13035
  hasGpu: boolean(),
@@ -16120,6 +16178,8 @@ var BaseDeviceProvider = class extends BaseAddon {
16120
16178
  return toDeviceSummary(device, this.addonId);
16121
16179
  }
16122
16180
  };
16181
+ 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;
16182
+ new Set(Object.values(DeviceType));
16123
16183
  /**
16124
16184
  * `addon-pages` — system-scoped singleton aggregator cap. Public-facing
16125
16185
  * surface that admin-ui consumes through `useAddonPagesListPages()`.
@@ -19789,13 +19849,11 @@ var PipelineTemplateSchema = object({
19789
19849
  createdAt: string(),
19790
19850
  updatedAt: string()
19791
19851
  });
19792
- var AgentAddonConfigSchema = object({
19793
- enabled: boolean(),
19852
+ var DeviceStepConfigSchema = object({
19794
19853
  modelId: string().optional(),
19795
- settings: record(string(), unknown()).readonly()
19854
+ settings: record(string(), unknown()).optional()
19796
19855
  });
19797
19856
  var AgentPipelineSettingsSchema = object({
19798
- addonDefaults: record(string(), AgentAddonConfigSchema).readonly(),
19799
19857
  maxCameras: number().int().nonnegative().nullable().default(null),
19800
19858
  /** Per-node detection weight (relative share for the quota balancer). */
19801
19859
  detectWeight: number().positive().optional(),
@@ -19819,7 +19877,22 @@ var AgentPipelineSettingsSchema = object({
19819
19877
  * it already uses to reach the hub). Set this only when the auto-detected
19820
19878
  * address is wrong (multi-homed host, NAT, custom interface).
19821
19879
  */
19822
- reachableHost: string().optional()
19880
+ reachableHost: string().optional(),
19881
+ /**
19882
+ * Multi-device inference opt-in (Phase 4). Per-node map deviceKey → {enabled,
19883
+ * weight, steps}. Absent / all-disabled ⇒ the node's single default
19884
+ * accelerator (safe default); two+ enabled ⇒ the dispatcher balances
19885
+ * detection sessions across them so they run CONCURRENTLY. `steps` is the
19886
+ * per-(node,device) BASE provisioning (`stepId → {modelId?, settings?}`) —
19887
+ * the default model/settings for every camera landing on that accelerator;
19888
+ * a stepId absent ⇒ the step uses that device's format default.
19889
+ */
19890
+ inferenceDevices: record(string(), object({
19891
+ enabled: boolean(),
19892
+ weight: number().positive().optional(),
19893
+ maxSessions: number().int().positive().optional(),
19894
+ steps: record(string(), DeviceStepConfigSchema).optional()
19895
+ })).optional()
19823
19896
  });
19824
19897
  var CameraPipelineForAgentSchema = object({
19825
19898
  steps: array(PipelineStepInputSchema).readonly(),
@@ -19829,14 +19902,13 @@ var CameraPipelineForAgentSchema = object({
19829
19902
  }).nullable()
19830
19903
  });
19831
19904
  var CameraStepOverridePatchSchema = object({
19832
- enabled: boolean().optional(),
19833
19905
  modelId: string().optional(),
19834
19906
  settings: record(string(), unknown()).readonly().optional()
19835
19907
  });
19836
19908
  var CameraPipelineSettingsSchema = object({
19837
19909
  pinnedAgentNodeId: string().optional(),
19838
19910
  stepToggles: record(string(), boolean()).optional(),
19839
- stepOverridesByAgent: record(string(), record(string(), CameraStepOverridePatchSchema)).optional(),
19911
+ stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
19840
19912
  pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
19841
19913
  });
19842
19914
  /**
@@ -20050,6 +20122,44 @@ var CameraStatusSchema = object({
20050
20122
  /** Unix timestamp (ms) when this snapshot was composed server-side. */
20051
20123
  fetchedAt: number()
20052
20124
  });
20125
+ var NodeInferenceDeviceSchema = object({
20126
+ /** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
20127
+ key: string(),
20128
+ backend: string(),
20129
+ device: string(),
20130
+ format: _enum(MODEL_FORMATS),
20131
+ /** Whether the node's live probe reports the device as usable right now. */
20132
+ available: boolean(),
20133
+ /**
20134
+ * Whether this device participates in dispatch. AUTO default (spec C2):
20135
+ * accelerators are opt-OUT (a discovered NPU/iGPU/Coral/ANE with no stored
20136
+ * entry is `true`); CPU is opt-IN (`false` by default — the fallback pool,
20137
+ * not a balanced target). An explicit stored value always wins; a stored-only
20138
+ * (unavailable) key keeps its stored value.
20139
+ */
20140
+ enabled: boolean(),
20141
+ /** Relative balancer weight for the enabled device (default 1). */
20142
+ weight: number(),
20143
+ /** Per-device concurrent-session cap; null = unlimited (multi-device C4). */
20144
+ maxSessions: number().nullable(),
20145
+ /** Object-detection model the executor defaults to for this deviceKey. */
20146
+ defaultModelId: string(),
20147
+ /**
20148
+ * Per-(node,device) BASE provisioning (C7.2/C7.4) — the RAW stored
20149
+ * `stepId → {modelId?, settings?}` map from `inferenceDevices[key].steps`.
20150
+ * Absent/empty ⇒ no base (every step uses its device format default). The
20151
+ * UI cross-references `pipelineExecutor.getSchema` for the models actually
20152
+ * available per format; this is the stored selection that becomes the
20153
+ * default for EVERY camera landing on this accelerator.
20154
+ */
20155
+ steps: record(string(), DeviceStepConfigSchema).optional()
20156
+ });
20157
+ var NodeInferenceDevicesSchema = object({
20158
+ nodeId: string(),
20159
+ /** False when the node's platform-probe was unreachable (no live device set). */
20160
+ reachable: boolean(),
20161
+ devices: array(NodeInferenceDeviceSchema).readonly()
20162
+ });
20053
20163
  method(object({
20054
20164
  deviceId: number(),
20055
20165
  agentNodeId: string()
@@ -20059,7 +20169,13 @@ method(object({
20059
20169
  }), method(object({ deviceId: number() }), object({ success: literal(true) }), {
20060
20170
  kind: "mutation",
20061
20171
  auth: "admin"
20062
- }), method(_void(), object({ migrated: number() }), {
20172
+ }), method(object({
20173
+ deviceId: number(),
20174
+ deviceKey: string()
20175
+ }), object({ success: literal(true) }), {
20176
+ kind: "mutation",
20177
+ auth: "admin"
20178
+ }), method(object({ deviceId: number() }), object({ deviceKey: string().nullable() })), method(_void(), object({ migrated: number() }), {
20063
20179
  kind: "mutation",
20064
20180
  auth: "admin"
20065
20181
  }), 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({
@@ -20093,13 +20209,7 @@ method(object({
20093
20209
  }))), method(object({ agentNodeId: string() }), AgentPipelineSettingsSchema.nullable()), method(_void(), array(object({
20094
20210
  nodeId: string(),
20095
20211
  settings: AgentPipelineSettingsSchema
20096
- })).readonly()), method(object({
20097
- agentNodeId: string(),
20098
- defaults: record(string(), AgentAddonConfigSchema)
20099
- }), object({ success: literal(true) }), {
20100
- kind: "mutation",
20101
- auth: "admin"
20102
- }), method(object({ agentNodeId: string() }), object({
20212
+ })).readonly()), method(object({ agentNodeId: string() }), object({
20103
20213
  success: boolean(),
20104
20214
  removed: boolean()
20105
20215
  }), {
@@ -20131,7 +20241,18 @@ method(object({
20131
20241
  }), object({ success: literal(true) }), {
20132
20242
  kind: "mutation",
20133
20243
  auth: "admin"
20134
- }), method(object({ agentNodeId: string() }), object({
20244
+ }), method(object({
20245
+ agentNodeId: string(),
20246
+ inferenceDevices: record(string(), object({
20247
+ enabled: boolean(),
20248
+ weight: number().positive().optional(),
20249
+ maxSessions: number().int().positive().optional(),
20250
+ steps: record(string(), DeviceStepConfigSchema).optional()
20251
+ }))
20252
+ }), object({ success: literal(true) }), {
20253
+ kind: "mutation",
20254
+ auth: "admin"
20255
+ }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({ agentNodeId: string() }), object({
20135
20256
  success: literal(true),
20136
20257
  /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
20137
20258
  effectiveModelId: string().nullable(),
@@ -20147,9 +20268,10 @@ method(object({
20147
20268
  }), object({ success: literal(true) }), {
20148
20269
  kind: "mutation",
20149
20270
  auth: "admin"
20150
- }), method(object({ deviceId: number() }), record(string(), record(string(), CameraStepOverridePatchSchema)).nullable()), method(object({
20271
+ }), method(object({ deviceId: number() }), record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).nullable()), method(object({
20151
20272
  deviceId: number(),
20152
20273
  agentNodeId: string(),
20274
+ deviceKey: string(),
20153
20275
  addonId: string(),
20154
20276
  patch: CameraStepOverridePatchSchema.nullable()
20155
20277
  }), object({ success: literal(true) }), {
@@ -20186,14 +20308,13 @@ method(object({
20186
20308
  });
20187
20309
  /**
20188
20310
  * server-management — per-NODE singleton capability for a node's ROOT
20189
- * package lifecycle (runtime-updatable node packages, phase 2: hub + docker
20190
- * agents).
20311
+ * package lifecycle (runtime-updatable node packages).
20191
20312
  *
20192
- * Each node's root package (`@camstack/server` on the hub, `@camstack/agent`
20193
- * on agents) carries the whole software stack in its npm dep tree, so ONE
20194
- * version describes the node. Updates install into
20195
- * `<dataDir>/server-root/versions/<v>/` and apply on restart via the baked
20196
- * starter (probation boot + auto-rollback to N-1).
20313
+ * Every node role runs the SAME root package (`@camstack/server`), which
20314
+ * carries the whole software stack in its npm dep tree, so ONE version
20315
+ * describes the node. Updates stage into `<dataDir>/server-root/` and apply
20316
+ * on restart via the baked starter (single-copy in-place swap — no probation,
20317
+ * no auto-rollback).
20197
20318
  *
20198
20319
  * Providers:
20199
20320
  * - HUB: `ServerUpdateService` behind the `server-provided` mount
@@ -20301,7 +20422,8 @@ method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), S
20301
20422
  /** Explicit target version; omitted = latest from the registry. */
20302
20423
  version: string().optional() }), ServerUpdateActionResultSchema, {
20303
20424
  kind: "mutation",
20304
- auth: "admin"
20425
+ auth: "admin",
20426
+ timeoutMs: 16 * 6e4
20305
20427
  }), method(_void(), ServerUpdateActionResultSchema, {
20306
20428
  kind: "mutation",
20307
20429
  auth: "admin"
@@ -21396,22 +21518,6 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
21396
21518
  var RestartAddonResultSchema = unknown();
21397
21519
  var InstallPackageResultSchema = unknown();
21398
21520
  var ReloadPackagesResultSchema = unknown();
21399
- /**
21400
- * Result of `updateFrameworkPackage`. The cap method returns BEFORE the
21401
- * server restarts so the admin UI can react to the `restartingAt`
21402
- * timestamp (shows reconnect overlay). The transition from
21403
- * `fromVersion` to `toVersion` will be confirmed by a subsequent
21404
- * `system.restart-completed` event after the new process boots.
21405
- *
21406
- * Spec: docs/superpowers/specs/2026-05-14-framework-live-update-design.md
21407
- */
21408
- var UpdateFrameworkPackageResultSchema = object({
21409
- packageName: string(),
21410
- fromVersion: string(),
21411
- toVersion: string(),
21412
- /** Ms-epoch the server scheduled its self-restart. */
21413
- restartingAt: number()
21414
- });
21415
21521
  var BulkUpdateItemStatusSchema = _enum([
21416
21522
  "queued",
21417
21523
  "updating",
@@ -21539,13 +21645,6 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
21539
21645
  }), object({ success: literal(true) }), {
21540
21646
  kind: "mutation",
21541
21647
  auth: "admin"
21542
- }), method(object({
21543
- packageName: string().min(1),
21544
- version: string().optional(),
21545
- deferRestart: boolean().optional()
21546
- }), UpdateFrameworkPackageResultSchema, {
21547
- kind: "mutation",
21548
- auth: "admin"
21549
21648
  }), method(object({ name: string() }), array(PackageVersionInfoSchema).readonly()), method(object({ addonId: string() }), RestartAddonResultSchema, {
21550
21649
  kind: "mutation",
21551
21650
  auth: "admin"
@@ -22411,10 +22510,10 @@ var TopologyCategorySchema = object({
22411
22510
  addons: array(TopologyCategoryAddonSchema).readonly()
22412
22511
  });
22413
22512
  /**
22414
- * The node's runtime-updatable ROOT package (`@camstack/server` on the hub,
22415
- * `@camstack/agent` on agents) as reported by its `registerNode` manifest —
22416
- * version visibility for the Server management surface. Nullable: offline
22417
- * rows and pre-phase-2 nodes report none.
22513
+ * The node's runtime-updatable ROOT package (`@camstack/server` the single
22514
+ * root package for every node role) as reported by its `registerNode`
22515
+ * manifest — version visibility for the Server management surface. Nullable:
22516
+ * offline rows and nodes that never reported one.
22418
22517
  */
22419
22518
  var TopologyRootPackageSchema = object({
22420
22519
  name: string(),
@@ -22802,17 +22901,28 @@ var PlatformScoreSchema = object({
22802
22901
  format: _enum([
22803
22902
  "onnx",
22804
22903
  "coreml",
22805
- "openvino"
22904
+ "openvino",
22905
+ "tflite"
22806
22906
  ]),
22807
22907
  score: number(),
22808
22908
  reason: string(),
22809
22909
  available: boolean()
22810
22910
  });
22911
+ var InferenceDeviceDescriptorSchema = object({
22912
+ key: string(),
22913
+ backend: string(),
22914
+ device: string(),
22915
+ format: ModelFormatSchema,
22916
+ runtime: literal("python"),
22917
+ score: number(),
22918
+ available: boolean()
22919
+ });
22811
22920
  var PlatformCapabilitiesSchema = object({
22812
22921
  hardware: HardwareInfoSchema,
22813
22922
  scores: array(PlatformScoreSchema).readonly(),
22814
22923
  bestScore: PlatformScoreSchema,
22815
- pythonPath: string().nullable()
22924
+ pythonPath: string().nullable(),
22925
+ devices: array(InferenceDeviceDescriptorSchema).readonly()
22816
22926
  });
22817
22927
  var ModelRequirementSchema = object({
22818
22928
  modelId: string(),
@@ -23704,12 +23814,6 @@ Object.freeze({
23704
23814
  addonId: null,
23705
23815
  access: "delete"
23706
23816
  },
23707
- "addons.updateFrameworkPackage": {
23708
- capName: "addons",
23709
- capScope: "system",
23710
- addonId: null,
23711
- access: "create"
23712
- },
23713
23817
  "addons.updatePackage": {
23714
23818
  capName: "addons",
23715
23819
  capScope: "system",
@@ -26482,12 +26586,6 @@ Object.freeze({
26482
26586
  addonId: null,
26483
26587
  access: "view"
26484
26588
  },
26485
- "pipelineExecutor.reprobeEngine": {
26486
- capName: "pipeline-executor",
26487
- capScope: "system",
26488
- addonId: null,
26489
- access: "create"
26490
- },
26491
26589
  "pipelineExecutor.runAudioTest": {
26492
26590
  capName: "pipeline-executor",
26493
26591
  capScope: "system",
@@ -26638,6 +26736,12 @@ Object.freeze({
26638
26736
  addonId: null,
26639
26737
  access: "view"
26640
26738
  },
26739
+ "pipelineOrchestrator.getNodeInferenceDevices": {
26740
+ capName: "pipeline-orchestrator",
26741
+ capScope: "system",
26742
+ addonId: null,
26743
+ access: "view"
26744
+ },
26641
26745
  "pipelineOrchestrator.getPipelineAssignment": {
26642
26746
  capName: "pipeline-orchestrator",
26643
26747
  capScope: "system",
@@ -26650,6 +26754,12 @@ Object.freeze({
26650
26754
  addonId: null,
26651
26755
  access: "view"
26652
26756
  },
26757
+ "pipelineOrchestrator.getPipelineDevicePin": {
26758
+ capName: "pipeline-orchestrator",
26759
+ capScope: "system",
26760
+ addonId: null,
26761
+ access: "view"
26762
+ },
26653
26763
  "pipelineOrchestrator.listAgentSettings": {
26654
26764
  capName: "pipeline-orchestrator",
26655
26765
  capScope: "system",
@@ -26692,19 +26802,19 @@ Object.freeze({
26692
26802
  addonId: null,
26693
26803
  access: "create"
26694
26804
  },
26695
- "pipelineOrchestrator.setAgentAddonDefaults": {
26805
+ "pipelineOrchestrator.setAgentCapabilities": {
26696
26806
  capName: "pipeline-orchestrator",
26697
26807
  capScope: "system",
26698
26808
  addonId: null,
26699
26809
  access: "create"
26700
26810
  },
26701
- "pipelineOrchestrator.setAgentCapabilities": {
26811
+ "pipelineOrchestrator.setAgentDetectWeight": {
26702
26812
  capName: "pipeline-orchestrator",
26703
26813
  capScope: "system",
26704
26814
  addonId: null,
26705
26815
  access: "create"
26706
26816
  },
26707
- "pipelineOrchestrator.setAgentDetectWeight": {
26817
+ "pipelineOrchestrator.setAgentInferenceDevices": {
26708
26818
  capName: "pipeline-orchestrator",
26709
26819
  capScope: "system",
26710
26820
  addonId: null,
@@ -26746,6 +26856,12 @@ Object.freeze({
26746
26856
  addonId: null,
26747
26857
  access: "create"
26748
26858
  },
26859
+ "pipelineOrchestrator.setPipelineDevicePin": {
26860
+ capName: "pipeline-orchestrator",
26861
+ capScope: "system",
26862
+ addonId: null,
26863
+ access: "create"
26864
+ },
26749
26865
  "pipelineOrchestrator.unassignAudio": {
26750
26866
  capName: "pipeline-orchestrator",
26751
26867
  capScope: "system",
@@ -28298,32 +28414,6 @@ Object.freeze({
28298
28414
  "network-access": "ingress",
28299
28415
  "smtp-provider": "email"
28300
28416
  });
28301
- var frameworkSwapPackageSchema = object({
28302
- name: string(),
28303
- stagedPath: string(),
28304
- backupPath: string(),
28305
- toVersion: string(),
28306
- fromVersion: string().nullable()
28307
- });
28308
- object({
28309
- jobId: string(),
28310
- taskId: string(),
28311
- packages: array(frameworkSwapPackageSchema),
28312
- requestedAtMs: number(),
28313
- schemaVersion: literal(1)
28314
- });
28315
- object({
28316
- jobId: string(),
28317
- taskId: string(),
28318
- backups: array(object({
28319
- name: string(),
28320
- backupPath: string(),
28321
- livePath: string()
28322
- })),
28323
- appliedAtMs: number(),
28324
- bootAttempts: number(),
28325
- schemaVersion: literal(1)
28326
- });
28327
28417
  /**
28328
28418
  * Names that, when used as URL query parameters, almost certainly carry
28329
28419
  * a secret. Matching is case-insensitive and anchored to the full param
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-rtsp",
3
- "version": "1.1.28",
3
+ "version": "1.2.0",
4
4
  "description": "Generic RTSP camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",