@camstack/addon-ai 0.4.107 → 0.4.109

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 +316 -10
  2. package/dist/addon.mjs +316 -10
  3. package/package.json +2 -2
package/dist/addon.js CHANGED
@@ -5520,7 +5520,7 @@ function number(params) {
5520
5520
  return /* @__PURE__ */ _coercedNumber(ZodNumber, params);
5521
5521
  }
5522
5522
  //#endregion
5523
- //#region ../types/dist/sleep-DEuj7E3j.mjs
5523
+ //#region ../types/dist/sleep-BDR76Ykr.mjs
5524
5524
  /**
5525
5525
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5526
5526
  * window to float samples (D455).
@@ -18131,6 +18131,48 @@ var NcAlarmConfigSchema = object({
18131
18131
  settings: NcAlarmSettingsSchema,
18132
18132
  coverage: array(NcAlarmModeCoverageSchema)
18133
18133
  });
18134
+ /**
18135
+ * ONE rule's demand on ONE camera's clip ring.
18136
+ *
18137
+ * A rule, not a camera: the broker takes the MAX over the asks that reach a
18138
+ * camera, so the answer stays a faithful description of the rules and the
18139
+ * bounding (the byte budget, the broker's own ceiling) stays where the cost
18140
+ * lives. A camera that appears in no ask is being told **nothing** — which is
18141
+ * a different thing from never having been told, and only the envelope
18142
+ * (`rulesLoaded`) can tell those apart.
18143
+ */
18144
+ var NcClipRetentionAskSchema = object({
18145
+ /**
18146
+ * The camera this ask is about. **Absent = every camera**, which is what a
18147
+ * rule with no `conditions.devices` means: it can fire anywhere, so it is
18148
+ * asking everywhere.
18149
+ */
18150
+ deviceId: number$1().int().nonnegative().optional(),
18151
+ /** Seconds of history the rule needs held for it. Never zero — a rule that
18152
+ * needs nothing produces no ask at all. */
18153
+ seconds: number$1().min(0).max(60),
18154
+ /** The profile the rule cuts from, when it named one. Absent = the cheapest
18155
+ * assigned, which is what the cut defaults to. */
18156
+ profile: CamProfileSchema.optional(),
18157
+ /** Who is asking — so a retention the operator did not expect names a rule. */
18158
+ ruleId: string(),
18159
+ ruleName: string(),
18160
+ /** Why this many seconds: the rule's own window, or the occupancy ceiling. */
18161
+ reason: _enum(["window", "occupancy"])
18162
+ });
18163
+ /**
18164
+ * The whole answer, with the one bit that keeps absence from reading as zero.
18165
+ *
18166
+ * `rulesLoaded` is false until the rule ledger has completed a load at least
18167
+ * once. A centre that is up but has not read its rules yet answers with an
18168
+ * empty ask list that means nothing at all — applying it would drop every
18169
+ * camera's ring to zero for the first events after a restart, which is the
18170
+ * footage this mechanism exists to keep.
18171
+ */
18172
+ var NcClipRetentionPlanSchema = object({
18173
+ rulesLoaded: boolean(),
18174
+ asks: array(NcClipRetentionAskSchema).readonly()
18175
+ });
18134
18176
  method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), method(object({ ruleId: string() }), object({ rule: NcRuleSchema.nullable() }), { auth: "admin" }), method(object({ rule: NcRuleInputSchema }), object({ rule: NcRuleSchema }), {
18135
18177
  kind: "mutation",
18136
18178
  auth: "admin",
@@ -18151,7 +18193,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
18151
18193
  }), object({ success: literal(true) }), {
18152
18194
  kind: "mutation",
18153
18195
  auth: "admin"
18154
- }), method(object({}), object({ mutedDeviceIds: array(number$1().int()).readonly() }), { auth: "admin" }), method(object({
18196
+ }), method(object({}), NcClipRetentionPlanSchema, { auth: "admin" }), method(object({}), object({ mutedDeviceIds: array(number$1().int()).readonly() }), { auth: "admin" }), method(object({
18155
18197
  deviceId: number$1().int(),
18156
18198
  muted: boolean()
18157
18199
  }), object({ success: literal(true) }), {
@@ -19296,13 +19338,26 @@ var TrackAudioLabelSchema = object({
19296
19338
  * - `audio` — an audio event on the camera itself that was anomalous for
19297
19339
  * THAT camera, loud, and heard while nothing visual was happening (D62).
19298
19340
  *
19341
+ * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
19342
+ * that frame's pixel space. A real root detector and a SPATIAL one: its
19343
+ * boxes are the same kind of fact `pipeline`'s are, produced by a different
19344
+ * detector.
19345
+ *
19346
+ * `onboard` was missing here while `DetectionSourceSchema` already had it, so
19347
+ * a persisted onboard track failed `safeParse` on read and came back with NO
19348
+ * source at all — which `isSpatialTrack` then admitted by accident, through the
19349
+ * `undefined` arm rather than by anybody's decision, and which `excludeSources`
19350
+ * could not name.
19351
+ *
19299
19352
  * The spatial subsystems (tracker association, occupancy count, re-id /
19300
19353
  * embedding, resurrection) MUST skip every synthetic source. Test for that
19301
- * with `isSpatialTrack`, which allow-lists `pipeline` — a `!== 'sensor'`
19302
- * check silently readmits every source added after it was written.
19354
+ * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
19355
+ * `!== 'sensor'` check silently readmits every source added after it was
19356
+ * written.
19303
19357
  */
19304
19358
  var TrackSourceSchema = _enum([
19305
19359
  "pipeline",
19360
+ "onboard",
19306
19361
  "sensor",
19307
19362
  "audio"
19308
19363
  ]);
@@ -20685,6 +20740,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
20685
20740
  * solid is this track", cheaper than re-deriving it from a trajectory. */
20686
20741
  framesMatched: number$1().int()
20687
20742
  })).readonly() });
20743
+ /**
20744
+ * The long-term series a camera produces. A closed union so a typo cannot
20745
+ * invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
20746
+ * is an alias of this, not a second list.
20747
+ */
20748
+ var AnalyticsLtsSeriesSchema = _enum([
20749
+ "motion",
20750
+ "audio-dbfs",
20751
+ "battery",
20752
+ "occupancy"
20753
+ ]);
20754
+ /**
20755
+ * One closed 5-minute bucket of a long-term series.
20756
+ *
20757
+ * `samples` is how many readings the bucket folded — it is the ACTIVITY for a
20758
+ * series like `motion`, and the confidence for one like `occupancy`. A bucket
20759
+ * that exists at all was measured; a bucket that is absent was not, which is a
20760
+ * different claim from zero and the reason this is a sparse series.
20761
+ */
20762
+ var LtsBucketSchema = object({
20763
+ scope: string(),
20764
+ bucketStart: number$1().int(),
20765
+ samples: number$1().int().nonnegative(),
20766
+ sum: number$1(),
20767
+ min: number$1(),
20768
+ max: number$1()
20769
+ });
20688
20770
  DeviceType.Camera, method(object({ deviceId: number$1() }), array(TrackSchema).readonly()), method(object({
20689
20771
  deviceId: number$1(),
20690
20772
  trackId: string()
@@ -20731,6 +20813,14 @@ DeviceType.Camera, method(object({ deviceId: number$1() }), array(TrackSchema).r
20731
20813
  kinds: array(string()).optional(),
20732
20814
  limit: number$1().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
20733
20815
  }), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
20816
+ deviceId: number$1(),
20817
+ series: AnalyticsLtsSeriesSchema,
20818
+ /** Omit for EVERY scope of this series in the range. */
20819
+ scope: string().optional(),
20820
+ from: number$1(),
20821
+ to: number$1(),
20822
+ limit: number$1().int().positive().optional()
20823
+ }), array(LtsBucketSchema).readonly()), method(object({
20734
20824
  deviceId: number$1(),
20735
20825
  since: number$1(),
20736
20826
  until: number$1(),
@@ -21349,6 +21439,40 @@ var MotionSourceEnum = _enum([
21349
21439
  */
21350
21440
  var MotionSourcesSchema = array(MotionSourceEnum);
21351
21441
  /**
21442
+ * Which root detector a camera runs — EXACTLY ONE.
21443
+ *
21444
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21445
+ * with (`DetectionSource`) rather than a second spelling of the same two
21446
+ * ideas: the value an operator picks here is the value that comes back on the
21447
+ * track, the overlay and the debug row.
21448
+ *
21449
+ * ## Why one, and why it is still an array
21450
+ *
21451
+ * Two roots on one camera is a capability nobody asked for and the operator has
21452
+ * since ruled out. It was never free: both planes feed the SAME per-device
21453
+ * stationary registry, both can promote the same parked object, and the two
21454
+ * detectors disagree about the same box by construction — which is the
21455
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21456
+ *
21457
+ * The ARRAY shape survives because the stored settings and the attach payload
21458
+ * already speak it on every camera of every fleet, and a cap input that
21459
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21460
+ * in the one direction that costs an operator their cameras. So the wire stays
21461
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21462
+ * element rather than refused, and `max(1)` is what every consumer can then
21463
+ * rely on.
21464
+ *
21465
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21466
+ * a camera an operator left with no root detector — and `planDetectionSources`
21467
+ * has always said so: inventing a root for them is how a default acts without
21468
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21469
+ * suite caught it.
21470
+ *
21471
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21472
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21473
+ */
21474
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21475
+ /**
21352
21476
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21353
21477
  * so cap-side consumers (the orchestrator forward, the runner addon's
21354
21478
  * cap implementation, tests) can reuse the type instead of redeclaring
@@ -21499,6 +21623,35 @@ var RunnerCameraConfigSchema = object({
21499
21623
  * events; the orchestrator forwards to `reportMotion`.
21500
21624
  */
21501
21625
  motionSources: MotionSourcesSchema.default(["analyzer"]),
21626
+ /**
21627
+ * WHICH root detector runs for this camera. The detection counterpart of
21628
+ * {@link motionSources}, same shape and same discipline: a per-camera list
21629
+ * of sources the system understands, vendor-agnostic, owned here.
21630
+ *
21631
+ * - `pipeline` — this runner's own root step on decoded pixels (`steps`).
21632
+ * - `onboard` — the CAMERA's own detector, admitted only when it is named
21633
+ * here. Its boxes reach post-analysis on the same
21634
+ * `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
21635
+ * track gets the same tracker, the same overlay and the same detail
21636
+ * subtree (face / plate / embedding).
21637
+ *
21638
+ * `['onboard']` alone is the REPLACEMENT: this runner's root step does not
21639
+ * run, and that is where a camera with a usable onboard detector buys back
21640
+ * its share of the accelerator. It saves the root inference, not the decode
21641
+ * — the detail subtree still needs pixels to cut crops from.
21642
+ *
21643
+ * A camera whose onboard detections carry no geometry cannot serve as a root
21644
+ * step at all (there is nothing to track), and the cap that knows this says
21645
+ * so on `native-object-detection.getOptions().geometry`. On Reolink that is
21646
+ * every battery camera: the boxes ride a sub-stream a battery camera never
21647
+ * attaches, so such a camera stays on `['pipeline']` and its onboard AI is
21648
+ * worth exactly what it already is — a wake signal with a class.
21649
+ *
21650
+ * Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
21651
+ * vendor never turns a detector on for the operator, and neither does a
21652
+ * default.
21653
+ */
21654
+ detectionSources: DetectionSourcesSchema.default(["pipeline"]),
21502
21655
  pipelineEnabled: boolean().default(true),
21503
21656
  /** Ordered tree of video steps. Absent → runner skips video detection. */
21504
21657
  steps: array(PipelineStepInputSchema).readonly().optional(),
@@ -21680,7 +21833,47 @@ var RunnerLocalMetricsSchema = object({
21680
21833
  queueDepth: number$1(),
21681
21834
  frameLazy: FrameLazyMetricsSchema.optional()
21682
21835
  });
21836
+ /**
21837
+ * Pipeline Runner capability — runtime detection workhorse.
21838
+ *
21839
+ * One instance per node. Receives camera assignments from
21840
+ * `addon-pipeline-orchestrator`, subscribes to the local stream-broker for
21841
+ * decoded frames, drains motion + detection queues, calls the local
21842
+ * `motion-detection` and `pipeline-executor` capabilities, and emits typed
21843
+ * `pipeline.inference-result` and `detection.motion-analysis` events on
21844
+ * the bus.
21845
+ *
21846
+ * Distinct from `pipeline-orchestrator` (the hub-side load balancer) — the
21847
+ * runner has zero knowledge of other agents, no global state, and never
21848
+ * makes assignment decisions itself.
21849
+ */
21850
+ /**
21851
+ * Why a runner declined to look at a camera out of band. Named rather than a
21852
+ * bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
21853
+ * already mid-session and one already bursting are four different facts, and a
21854
+ * caller told only "no" cannot tell a protection from a bug.
21855
+ */
21856
+ var OccupancyBurstRefusalSchema = _enum([
21857
+ "not-attached",
21858
+ "battery-asleep",
21859
+ "not-watching",
21860
+ "already-bursting"
21861
+ ]);
21683
21862
  method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number$1() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number$1() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number$1()).readonly()), method(object({
21863
+ deviceId: number$1(),
21864
+ /** How many frames to collect. The caller sizes this against what its
21865
+ * own confirmation needs; the runner clamps it to the field's range. */
21866
+ frames: number$1().int().positive().optional(),
21867
+ /** Why, for the log. A burst nobody can attribute is a cost nobody can
21868
+ * defend — the periodic one at least has a timer to point at. */
21869
+ reason: string()
21870
+ }), object({
21871
+ started: boolean(),
21872
+ refusedBecause: OccupancyBurstRefusalSchema.optional()
21873
+ }), {
21874
+ auth: "admin",
21875
+ kind: "mutation"
21876
+ }), method(object({
21684
21877
  handle: FrameHandleSchema,
21685
21878
  bbox: NativeCropBboxSchema,
21686
21879
  maxWidth: number$1().int().positive().optional(),
@@ -27149,7 +27342,7 @@ var NativeDetectionSchema = object({
27149
27342
  /** Firmware-provided confidence [0..1]. Reolink pushes don't carry it → undefined. */
27150
27343
  confidence: number$1().min(0).max(1).optional()
27151
27344
  });
27152
- object({
27345
+ var NativeObjectDetectionStatusSchema = object({
27153
27346
  /**
27154
27347
  * Last observed instance per class. Missing entries mean the class
27155
27348
  * is supported but nothing has been seen since the provider started.
@@ -27166,14 +27359,56 @@ object({
27166
27359
  supportedClasses: array(NativeObjectClassEnum).readonly(),
27167
27360
  /**
27168
27361
  * Whether forwarding of onboard AI detections is enabled for this device.
27169
- * Default FALSE (opt-in, cold-start) — onboard AI pushes are noisy/sparse and
27170
- * churn the tracker, so forwarding stays off until the operator enables it.
27362
+ *
27363
+ * Cold-start OFF on every camera. A vendor does not decide which detector a
27364
+ * camera runs — that is the operator's choice, and it is made where every
27365
+ * other detection choice is made. `geometry` on
27366
+ * {@link NativeObjectDetectionOptionsSchema} is how the form says what the
27367
+ * choice would buy this particular camera.
27171
27368
  */
27172
27369
  enabled: boolean()
27173
- }).extend({
27370
+ });
27371
+ /**
27372
+ * WHEN a camera's onboard detections carry geometry.
27373
+ *
27374
+ * - `boxed` — always. The provider holds a standing channel for the boxes, so
27375
+ * a detection is a trackable subject whenever the camera sees one.
27376
+ * - `while-streaming` — only while some stream of this camera is already open.
27377
+ * The boxes ride the video's own side-channel rather than a feed of their
27378
+ * own, so they cost nothing and they exist only when something is pulling.
27379
+ * On Reolink this is every BATTERY camera: a persistent second feed is real
27380
+ * radio drain, but a camera that is awake is awake precisely because
27381
+ * something is in front of it, and its stream is already being pulled.
27382
+ * - `flag-only` — never. The firmware ships the class and nothing else; the
27383
+ * pipeline needs geometry to make a subject, so such a push reaches the
27384
+ * tracker as motion and no further.
27385
+ *
27386
+ * Reported and not inferred, because the operator's question in front of the
27387
+ * picker is "what do I get", and these are three different answers (D14: the
27388
+ * derived form is only as honest as `getOptions`).
27389
+ */
27390
+ var NativeObjectGeometryEnum = _enum([
27391
+ "boxed",
27392
+ "while-streaming",
27393
+ "flag-only"
27394
+ ]);
27395
+ var NativeObjectDetectionOptionsSchema = object({
27396
+ /** Classes this firmware can detect — the same list the status reports. */
27397
+ supportedClasses: array(NativeObjectClassEnum).readonly(),
27398
+ /** What a detection from this camera carries. */
27399
+ geometry: NativeObjectGeometryEnum
27400
+ });
27401
+ var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
27402
+ NativeObjectDetectionStatusSchema.extend({
27174
27403
  /** Required by createRuntimeStateBridge — epoch ms of last refresh. */
27175
27404
  lastFetchedAt: number$1() });
27176
- DeviceType.Camera, method(object({
27405
+ DeviceType.Camera, method(object({ deviceId: number$1() }), NativeObjectDetectionOptionsSchema), method(object({
27406
+ deviceId: number$1(),
27407
+ settings: NativeObjectDetectionSettingsPatchSchema
27408
+ }), _void(), {
27409
+ kind: "mutation",
27410
+ auth: "admin"
27411
+ }), method(object({
27177
27412
  deviceId: number$1(),
27178
27413
  enabled: boolean()
27179
27414
  }), _void(), {
@@ -30972,7 +31207,28 @@ var PerScopeBreakdownSchema = object({
30972
31207
  /** Total tracked objects in this scope (frame / zone / unzoned). */
30973
31208
  totalObjects: number$1().int().nonnegative(),
30974
31209
  /** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
30975
- byClass: record(string(), number$1().int().nonnegative())
31210
+ byClass: record(string(), number$1().int().nonnegative()),
31211
+ /**
31212
+ * Of `totalObjects`, how many are STANDING — objects the census holds,
31213
+ * present but not going anywhere (a parked car, a bin, a statue).
31214
+ *
31215
+ * The operator's question about a scene has two halves and they answer
31216
+ * different things: "what is parked here" is stable for hours and must not
31217
+ * flap, while "who is walking through" is the thing an alert is about. One
31218
+ * number could only serve one of them, and `totalObjects` served the first
31219
+ * badly — a passer-by moved it and every occupancy rule saw a change.
31220
+ *
31221
+ * `standing + transient === totalObjects`, always. The total keeps its old
31222
+ * meaning exactly, so no rule written against it changes behaviour.
31223
+ *
31224
+ * ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
31225
+ * this field cannot say, and a reader that folds absence in as 0 reports "no
31226
+ * parked objects here" about a camera whose lot is full.
31227
+ */
31228
+ standingObjects: number$1().int().nonnegative().optional(),
31229
+ /** Of `totalObjects`, how many are passing through. See `standingObjects` —
31230
+ * same absence rule. */
31231
+ transientObjects: number$1().int().nonnegative().optional()
30976
31232
  });
30977
31233
  var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
30978
31234
  zoneId: string(),
@@ -33911,12 +34167,24 @@ Object.freeze({
33911
34167
  addonId: null,
33912
34168
  access: "create"
33913
34169
  },
34170
+ "nativeObjectDetection.getOptions": {
34171
+ capName: "native-object-detection",
34172
+ capScope: "device",
34173
+ addonId: null,
34174
+ access: "view"
34175
+ },
33914
34176
  "nativeObjectDetection.setEnabled": {
33915
34177
  capName: "native-object-detection",
33916
34178
  capScope: "device",
33917
34179
  addonId: null,
33918
34180
  access: "create"
33919
34181
  },
34182
+ "nativeObjectDetection.setSettings": {
34183
+ capName: "native-object-detection",
34184
+ capScope: "device",
34185
+ addonId: null,
34186
+ access: "create"
34187
+ },
33920
34188
  "navigation.getFeatures": {
33921
34189
  capName: "navigation",
33922
34190
  capScope: "device",
@@ -34181,6 +34449,12 @@ Object.freeze({
34181
34449
  addonId: null,
34182
34450
  access: "view"
34183
34451
  },
34452
+ "notificationRules.getClipRetentionAsks": {
34453
+ capName: "notification-rules",
34454
+ capScope: "system",
34455
+ addonId: null,
34456
+ access: "view"
34457
+ },
34184
34458
  "notificationRules.getConditionCatalog": {
34185
34459
  capName: "notification-rules",
34186
34460
  capScope: "system",
@@ -34691,6 +34965,12 @@ Object.freeze({
34691
34965
  addonId: null,
34692
34966
  access: "create"
34693
34967
  },
34968
+ "pipelineAnalytics.readLongTermSeries": {
34969
+ capName: "pipeline-analytics",
34970
+ capScope: "device",
34971
+ addonId: null,
34972
+ access: "view"
34973
+ },
34694
34974
  "pipelineAnalytics.rebuildObjectEmbeddings": {
34695
34975
  capName: "pipeline-analytics",
34696
34976
  capScope: "device",
@@ -35363,6 +35643,12 @@ Object.freeze({
35363
35643
  addonId: null,
35364
35644
  access: "create"
35365
35645
  },
35646
+ "pipelineRunner.requestOccupancyBurst": {
35647
+ capName: "pipeline-runner",
35648
+ capScope: "system",
35649
+ addonId: null,
35650
+ access: "create"
35651
+ },
35366
35652
  "pipelineRunner.runDetailSubtree": {
35367
35653
  capName: "pipeline-runner",
35368
35654
  capScope: "system",
@@ -38143,11 +38429,21 @@ Object.freeze({
38143
38429
  form: "single",
38144
38430
  optional: false
38145
38431
  }],
38432
+ "nativeObjectDetection.getOptions": [{
38433
+ name: "deviceId",
38434
+ form: "single",
38435
+ optional: false
38436
+ }],
38146
38437
  "nativeObjectDetection.setEnabled": [{
38147
38438
  name: "deviceId",
38148
38439
  form: "single",
38149
38440
  optional: false
38150
38441
  }],
38442
+ "nativeObjectDetection.setSettings": [{
38443
+ name: "deviceId",
38444
+ form: "single",
38445
+ optional: false
38446
+ }],
38151
38447
  "navigation.getFeatures": [{
38152
38448
  name: "deviceId",
38153
38449
  form: "single",
@@ -38497,6 +38793,11 @@ Object.freeze({
38497
38793
  form: "single",
38498
38794
  optional: false
38499
38795
  }],
38796
+ "pipelineAnalytics.readLongTermSeries": [{
38797
+ name: "deviceId",
38798
+ form: "single",
38799
+ optional: false
38800
+ }],
38500
38801
  "pipelineAnalytics.rebuildObjectEmbeddings": [{
38501
38802
  name: "deviceId",
38502
38803
  form: "single",
@@ -38687,6 +38988,11 @@ Object.freeze({
38687
38988
  form: "single",
38688
38989
  optional: false
38689
38990
  }],
38991
+ "pipelineRunner.requestOccupancyBurst": [{
38992
+ name: "deviceId",
38993
+ form: "single",
38994
+ optional: false
38995
+ }],
38690
38996
  "pipelineRunner.runDetailSubtree": [{
38691
38997
  name: "deviceId",
38692
38998
  form: "single",
package/dist/addon.mjs CHANGED
@@ -5547,7 +5547,7 @@ function number(params) {
5547
5547
  return /* @__PURE__ */ _coercedNumber(ZodNumber, params);
5548
5548
  }
5549
5549
  //#endregion
5550
- //#region ../types/dist/sleep-DEuj7E3j.mjs
5550
+ //#region ../types/dist/sleep-BDR76Ykr.mjs
5551
5551
  /**
5552
5552
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5553
5553
  * window to float samples (D455).
@@ -18158,6 +18158,48 @@ var NcAlarmConfigSchema = object({
18158
18158
  settings: NcAlarmSettingsSchema,
18159
18159
  coverage: array(NcAlarmModeCoverageSchema)
18160
18160
  });
18161
+ /**
18162
+ * ONE rule's demand on ONE camera's clip ring.
18163
+ *
18164
+ * A rule, not a camera: the broker takes the MAX over the asks that reach a
18165
+ * camera, so the answer stays a faithful description of the rules and the
18166
+ * bounding (the byte budget, the broker's own ceiling) stays where the cost
18167
+ * lives. A camera that appears in no ask is being told **nothing** — which is
18168
+ * a different thing from never having been told, and only the envelope
18169
+ * (`rulesLoaded`) can tell those apart.
18170
+ */
18171
+ var NcClipRetentionAskSchema = object({
18172
+ /**
18173
+ * The camera this ask is about. **Absent = every camera**, which is what a
18174
+ * rule with no `conditions.devices` means: it can fire anywhere, so it is
18175
+ * asking everywhere.
18176
+ */
18177
+ deviceId: number$1().int().nonnegative().optional(),
18178
+ /** Seconds of history the rule needs held for it. Never zero — a rule that
18179
+ * needs nothing produces no ask at all. */
18180
+ seconds: number$1().min(0).max(60),
18181
+ /** The profile the rule cuts from, when it named one. Absent = the cheapest
18182
+ * assigned, which is what the cut defaults to. */
18183
+ profile: CamProfileSchema.optional(),
18184
+ /** Who is asking — so a retention the operator did not expect names a rule. */
18185
+ ruleId: string(),
18186
+ ruleName: string(),
18187
+ /** Why this many seconds: the rule's own window, or the occupancy ceiling. */
18188
+ reason: _enum(["window", "occupancy"])
18189
+ });
18190
+ /**
18191
+ * The whole answer, with the one bit that keeps absence from reading as zero.
18192
+ *
18193
+ * `rulesLoaded` is false until the rule ledger has completed a load at least
18194
+ * once. A centre that is up but has not read its rules yet answers with an
18195
+ * empty ask list that means nothing at all — applying it would drop every
18196
+ * camera's ring to zero for the first events after a restart, which is the
18197
+ * footage this mechanism exists to keep.
18198
+ */
18199
+ var NcClipRetentionPlanSchema = object({
18200
+ rulesLoaded: boolean(),
18201
+ asks: array(NcClipRetentionAskSchema).readonly()
18202
+ });
18161
18203
  method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), method(object({ ruleId: string() }), object({ rule: NcRuleSchema.nullable() }), { auth: "admin" }), method(object({ rule: NcRuleInputSchema }), object({ rule: NcRuleSchema }), {
18162
18204
  kind: "mutation",
18163
18205
  auth: "admin",
@@ -18178,7 +18220,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
18178
18220
  }), object({ success: literal(true) }), {
18179
18221
  kind: "mutation",
18180
18222
  auth: "admin"
18181
- }), method(object({}), object({ mutedDeviceIds: array(number$1().int()).readonly() }), { auth: "admin" }), method(object({
18223
+ }), method(object({}), NcClipRetentionPlanSchema, { auth: "admin" }), method(object({}), object({ mutedDeviceIds: array(number$1().int()).readonly() }), { auth: "admin" }), method(object({
18182
18224
  deviceId: number$1().int(),
18183
18225
  muted: boolean()
18184
18226
  }), object({ success: literal(true) }), {
@@ -19323,13 +19365,26 @@ var TrackAudioLabelSchema = object({
19323
19365
  * - `audio` — an audio event on the camera itself that was anomalous for
19324
19366
  * THAT camera, loud, and heard while nothing visual was happening (D62).
19325
19367
  *
19368
+ * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
19369
+ * that frame's pixel space. A real root detector and a SPATIAL one: its
19370
+ * boxes are the same kind of fact `pipeline`'s are, produced by a different
19371
+ * detector.
19372
+ *
19373
+ * `onboard` was missing here while `DetectionSourceSchema` already had it, so
19374
+ * a persisted onboard track failed `safeParse` on read and came back with NO
19375
+ * source at all — which `isSpatialTrack` then admitted by accident, through the
19376
+ * `undefined` arm rather than by anybody's decision, and which `excludeSources`
19377
+ * could not name.
19378
+ *
19326
19379
  * The spatial subsystems (tracker association, occupancy count, re-id /
19327
19380
  * embedding, resurrection) MUST skip every synthetic source. Test for that
19328
- * with `isSpatialTrack`, which allow-lists `pipeline` — a `!== 'sensor'`
19329
- * check silently readmits every source added after it was written.
19381
+ * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
19382
+ * `!== 'sensor'` check silently readmits every source added after it was
19383
+ * written.
19330
19384
  */
19331
19385
  var TrackSourceSchema = _enum([
19332
19386
  "pipeline",
19387
+ "onboard",
19333
19388
  "sensor",
19334
19389
  "audio"
19335
19390
  ]);
@@ -20712,6 +20767,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
20712
20767
  * solid is this track", cheaper than re-deriving it from a trajectory. */
20713
20768
  framesMatched: number$1().int()
20714
20769
  })).readonly() });
20770
+ /**
20771
+ * The long-term series a camera produces. A closed union so a typo cannot
20772
+ * invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
20773
+ * is an alias of this, not a second list.
20774
+ */
20775
+ var AnalyticsLtsSeriesSchema = _enum([
20776
+ "motion",
20777
+ "audio-dbfs",
20778
+ "battery",
20779
+ "occupancy"
20780
+ ]);
20781
+ /**
20782
+ * One closed 5-minute bucket of a long-term series.
20783
+ *
20784
+ * `samples` is how many readings the bucket folded — it is the ACTIVITY for a
20785
+ * series like `motion`, and the confidence for one like `occupancy`. A bucket
20786
+ * that exists at all was measured; a bucket that is absent was not, which is a
20787
+ * different claim from zero and the reason this is a sparse series.
20788
+ */
20789
+ var LtsBucketSchema = object({
20790
+ scope: string(),
20791
+ bucketStart: number$1().int(),
20792
+ samples: number$1().int().nonnegative(),
20793
+ sum: number$1(),
20794
+ min: number$1(),
20795
+ max: number$1()
20796
+ });
20715
20797
  DeviceType.Camera, method(object({ deviceId: number$1() }), array(TrackSchema).readonly()), method(object({
20716
20798
  deviceId: number$1(),
20717
20799
  trackId: string()
@@ -20758,6 +20840,14 @@ DeviceType.Camera, method(object({ deviceId: number$1() }), array(TrackSchema).r
20758
20840
  kinds: array(string()).optional(),
20759
20841
  limit: number$1().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
20760
20842
  }), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
20843
+ deviceId: number$1(),
20844
+ series: AnalyticsLtsSeriesSchema,
20845
+ /** Omit for EVERY scope of this series in the range. */
20846
+ scope: string().optional(),
20847
+ from: number$1(),
20848
+ to: number$1(),
20849
+ limit: number$1().int().positive().optional()
20850
+ }), array(LtsBucketSchema).readonly()), method(object({
20761
20851
  deviceId: number$1(),
20762
20852
  since: number$1(),
20763
20853
  until: number$1(),
@@ -21376,6 +21466,40 @@ var MotionSourceEnum = _enum([
21376
21466
  */
21377
21467
  var MotionSourcesSchema = array(MotionSourceEnum);
21378
21468
  /**
21469
+ * Which root detector a camera runs — EXACTLY ONE.
21470
+ *
21471
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21472
+ * with (`DetectionSource`) rather than a second spelling of the same two
21473
+ * ideas: the value an operator picks here is the value that comes back on the
21474
+ * track, the overlay and the debug row.
21475
+ *
21476
+ * ## Why one, and why it is still an array
21477
+ *
21478
+ * Two roots on one camera is a capability nobody asked for and the operator has
21479
+ * since ruled out. It was never free: both planes feed the SAME per-device
21480
+ * stationary registry, both can promote the same parked object, and the two
21481
+ * detectors disagree about the same box by construction — which is the
21482
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21483
+ *
21484
+ * The ARRAY shape survives because the stored settings and the attach payload
21485
+ * already speak it on every camera of every fleet, and a cap input that
21486
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21487
+ * in the one direction that costs an operator their cameras. So the wire stays
21488
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21489
+ * element rather than refused, and `max(1)` is what every consumer can then
21490
+ * rely on.
21491
+ *
21492
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21493
+ * a camera an operator left with no root detector — and `planDetectionSources`
21494
+ * has always said so: inventing a root for them is how a default acts without
21495
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21496
+ * suite caught it.
21497
+ *
21498
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21499
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21500
+ */
21501
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21502
+ /**
21379
21503
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21380
21504
  * so cap-side consumers (the orchestrator forward, the runner addon's
21381
21505
  * cap implementation, tests) can reuse the type instead of redeclaring
@@ -21526,6 +21650,35 @@ var RunnerCameraConfigSchema = object({
21526
21650
  * events; the orchestrator forwards to `reportMotion`.
21527
21651
  */
21528
21652
  motionSources: MotionSourcesSchema.default(["analyzer"]),
21653
+ /**
21654
+ * WHICH root detector runs for this camera. The detection counterpart of
21655
+ * {@link motionSources}, same shape and same discipline: a per-camera list
21656
+ * of sources the system understands, vendor-agnostic, owned here.
21657
+ *
21658
+ * - `pipeline` — this runner's own root step on decoded pixels (`steps`).
21659
+ * - `onboard` — the CAMERA's own detector, admitted only when it is named
21660
+ * here. Its boxes reach post-analysis on the same
21661
+ * `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
21662
+ * track gets the same tracker, the same overlay and the same detail
21663
+ * subtree (face / plate / embedding).
21664
+ *
21665
+ * `['onboard']` alone is the REPLACEMENT: this runner's root step does not
21666
+ * run, and that is where a camera with a usable onboard detector buys back
21667
+ * its share of the accelerator. It saves the root inference, not the decode
21668
+ * — the detail subtree still needs pixels to cut crops from.
21669
+ *
21670
+ * A camera whose onboard detections carry no geometry cannot serve as a root
21671
+ * step at all (there is nothing to track), and the cap that knows this says
21672
+ * so on `native-object-detection.getOptions().geometry`. On Reolink that is
21673
+ * every battery camera: the boxes ride a sub-stream a battery camera never
21674
+ * attaches, so such a camera stays on `['pipeline']` and its onboard AI is
21675
+ * worth exactly what it already is — a wake signal with a class.
21676
+ *
21677
+ * Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
21678
+ * vendor never turns a detector on for the operator, and neither does a
21679
+ * default.
21680
+ */
21681
+ detectionSources: DetectionSourcesSchema.default(["pipeline"]),
21529
21682
  pipelineEnabled: boolean().default(true),
21530
21683
  /** Ordered tree of video steps. Absent → runner skips video detection. */
21531
21684
  steps: array(PipelineStepInputSchema).readonly().optional(),
@@ -21707,7 +21860,47 @@ var RunnerLocalMetricsSchema = object({
21707
21860
  queueDepth: number$1(),
21708
21861
  frameLazy: FrameLazyMetricsSchema.optional()
21709
21862
  });
21863
+ /**
21864
+ * Pipeline Runner capability — runtime detection workhorse.
21865
+ *
21866
+ * One instance per node. Receives camera assignments from
21867
+ * `addon-pipeline-orchestrator`, subscribes to the local stream-broker for
21868
+ * decoded frames, drains motion + detection queues, calls the local
21869
+ * `motion-detection` and `pipeline-executor` capabilities, and emits typed
21870
+ * `pipeline.inference-result` and `detection.motion-analysis` events on
21871
+ * the bus.
21872
+ *
21873
+ * Distinct from `pipeline-orchestrator` (the hub-side load balancer) — the
21874
+ * runner has zero knowledge of other agents, no global state, and never
21875
+ * makes assignment decisions itself.
21876
+ */
21877
+ /**
21878
+ * Why a runner declined to look at a camera out of band. Named rather than a
21879
+ * bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
21880
+ * already mid-session and one already bursting are four different facts, and a
21881
+ * caller told only "no" cannot tell a protection from a bug.
21882
+ */
21883
+ var OccupancyBurstRefusalSchema = _enum([
21884
+ "not-attached",
21885
+ "battery-asleep",
21886
+ "not-watching",
21887
+ "already-bursting"
21888
+ ]);
21710
21889
  method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number$1() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number$1() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number$1()).readonly()), method(object({
21890
+ deviceId: number$1(),
21891
+ /** How many frames to collect. The caller sizes this against what its
21892
+ * own confirmation needs; the runner clamps it to the field's range. */
21893
+ frames: number$1().int().positive().optional(),
21894
+ /** Why, for the log. A burst nobody can attribute is a cost nobody can
21895
+ * defend — the periodic one at least has a timer to point at. */
21896
+ reason: string()
21897
+ }), object({
21898
+ started: boolean(),
21899
+ refusedBecause: OccupancyBurstRefusalSchema.optional()
21900
+ }), {
21901
+ auth: "admin",
21902
+ kind: "mutation"
21903
+ }), method(object({
21711
21904
  handle: FrameHandleSchema,
21712
21905
  bbox: NativeCropBboxSchema,
21713
21906
  maxWidth: number$1().int().positive().optional(),
@@ -27176,7 +27369,7 @@ var NativeDetectionSchema = object({
27176
27369
  /** Firmware-provided confidence [0..1]. Reolink pushes don't carry it → undefined. */
27177
27370
  confidence: number$1().min(0).max(1).optional()
27178
27371
  });
27179
- object({
27372
+ var NativeObjectDetectionStatusSchema = object({
27180
27373
  /**
27181
27374
  * Last observed instance per class. Missing entries mean the class
27182
27375
  * is supported but nothing has been seen since the provider started.
@@ -27193,14 +27386,56 @@ object({
27193
27386
  supportedClasses: array(NativeObjectClassEnum).readonly(),
27194
27387
  /**
27195
27388
  * Whether forwarding of onboard AI detections is enabled for this device.
27196
- * Default FALSE (opt-in, cold-start) — onboard AI pushes are noisy/sparse and
27197
- * churn the tracker, so forwarding stays off until the operator enables it.
27389
+ *
27390
+ * Cold-start OFF on every camera. A vendor does not decide which detector a
27391
+ * camera runs — that is the operator's choice, and it is made where every
27392
+ * other detection choice is made. `geometry` on
27393
+ * {@link NativeObjectDetectionOptionsSchema} is how the form says what the
27394
+ * choice would buy this particular camera.
27198
27395
  */
27199
27396
  enabled: boolean()
27200
- }).extend({
27397
+ });
27398
+ /**
27399
+ * WHEN a camera's onboard detections carry geometry.
27400
+ *
27401
+ * - `boxed` — always. The provider holds a standing channel for the boxes, so
27402
+ * a detection is a trackable subject whenever the camera sees one.
27403
+ * - `while-streaming` — only while some stream of this camera is already open.
27404
+ * The boxes ride the video's own side-channel rather than a feed of their
27405
+ * own, so they cost nothing and they exist only when something is pulling.
27406
+ * On Reolink this is every BATTERY camera: a persistent second feed is real
27407
+ * radio drain, but a camera that is awake is awake precisely because
27408
+ * something is in front of it, and its stream is already being pulled.
27409
+ * - `flag-only` — never. The firmware ships the class and nothing else; the
27410
+ * pipeline needs geometry to make a subject, so such a push reaches the
27411
+ * tracker as motion and no further.
27412
+ *
27413
+ * Reported and not inferred, because the operator's question in front of the
27414
+ * picker is "what do I get", and these are three different answers (D14: the
27415
+ * derived form is only as honest as `getOptions`).
27416
+ */
27417
+ var NativeObjectGeometryEnum = _enum([
27418
+ "boxed",
27419
+ "while-streaming",
27420
+ "flag-only"
27421
+ ]);
27422
+ var NativeObjectDetectionOptionsSchema = object({
27423
+ /** Classes this firmware can detect — the same list the status reports. */
27424
+ supportedClasses: array(NativeObjectClassEnum).readonly(),
27425
+ /** What a detection from this camera carries. */
27426
+ geometry: NativeObjectGeometryEnum
27427
+ });
27428
+ var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
27429
+ NativeObjectDetectionStatusSchema.extend({
27201
27430
  /** Required by createRuntimeStateBridge — epoch ms of last refresh. */
27202
27431
  lastFetchedAt: number$1() });
27203
- DeviceType.Camera, method(object({
27432
+ DeviceType.Camera, method(object({ deviceId: number$1() }), NativeObjectDetectionOptionsSchema), method(object({
27433
+ deviceId: number$1(),
27434
+ settings: NativeObjectDetectionSettingsPatchSchema
27435
+ }), _void(), {
27436
+ kind: "mutation",
27437
+ auth: "admin"
27438
+ }), method(object({
27204
27439
  deviceId: number$1(),
27205
27440
  enabled: boolean()
27206
27441
  }), _void(), {
@@ -30999,7 +31234,28 @@ var PerScopeBreakdownSchema = object({
30999
31234
  /** Total tracked objects in this scope (frame / zone / unzoned). */
31000
31235
  totalObjects: number$1().int().nonnegative(),
31001
31236
  /** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
31002
- byClass: record(string(), number$1().int().nonnegative())
31237
+ byClass: record(string(), number$1().int().nonnegative()),
31238
+ /**
31239
+ * Of `totalObjects`, how many are STANDING — objects the census holds,
31240
+ * present but not going anywhere (a parked car, a bin, a statue).
31241
+ *
31242
+ * The operator's question about a scene has two halves and they answer
31243
+ * different things: "what is parked here" is stable for hours and must not
31244
+ * flap, while "who is walking through" is the thing an alert is about. One
31245
+ * number could only serve one of them, and `totalObjects` served the first
31246
+ * badly — a passer-by moved it and every occupancy rule saw a change.
31247
+ *
31248
+ * `standing + transient === totalObjects`, always. The total keeps its old
31249
+ * meaning exactly, so no rule written against it changes behaviour.
31250
+ *
31251
+ * ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
31252
+ * this field cannot say, and a reader that folds absence in as 0 reports "no
31253
+ * parked objects here" about a camera whose lot is full.
31254
+ */
31255
+ standingObjects: number$1().int().nonnegative().optional(),
31256
+ /** Of `totalObjects`, how many are passing through. See `standingObjects` —
31257
+ * same absence rule. */
31258
+ transientObjects: number$1().int().nonnegative().optional()
31003
31259
  });
31004
31260
  var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
31005
31261
  zoneId: string(),
@@ -33938,12 +34194,24 @@ Object.freeze({
33938
34194
  addonId: null,
33939
34195
  access: "create"
33940
34196
  },
34197
+ "nativeObjectDetection.getOptions": {
34198
+ capName: "native-object-detection",
34199
+ capScope: "device",
34200
+ addonId: null,
34201
+ access: "view"
34202
+ },
33941
34203
  "nativeObjectDetection.setEnabled": {
33942
34204
  capName: "native-object-detection",
33943
34205
  capScope: "device",
33944
34206
  addonId: null,
33945
34207
  access: "create"
33946
34208
  },
34209
+ "nativeObjectDetection.setSettings": {
34210
+ capName: "native-object-detection",
34211
+ capScope: "device",
34212
+ addonId: null,
34213
+ access: "create"
34214
+ },
33947
34215
  "navigation.getFeatures": {
33948
34216
  capName: "navigation",
33949
34217
  capScope: "device",
@@ -34208,6 +34476,12 @@ Object.freeze({
34208
34476
  addonId: null,
34209
34477
  access: "view"
34210
34478
  },
34479
+ "notificationRules.getClipRetentionAsks": {
34480
+ capName: "notification-rules",
34481
+ capScope: "system",
34482
+ addonId: null,
34483
+ access: "view"
34484
+ },
34211
34485
  "notificationRules.getConditionCatalog": {
34212
34486
  capName: "notification-rules",
34213
34487
  capScope: "system",
@@ -34718,6 +34992,12 @@ Object.freeze({
34718
34992
  addonId: null,
34719
34993
  access: "create"
34720
34994
  },
34995
+ "pipelineAnalytics.readLongTermSeries": {
34996
+ capName: "pipeline-analytics",
34997
+ capScope: "device",
34998
+ addonId: null,
34999
+ access: "view"
35000
+ },
34721
35001
  "pipelineAnalytics.rebuildObjectEmbeddings": {
34722
35002
  capName: "pipeline-analytics",
34723
35003
  capScope: "device",
@@ -35390,6 +35670,12 @@ Object.freeze({
35390
35670
  addonId: null,
35391
35671
  access: "create"
35392
35672
  },
35673
+ "pipelineRunner.requestOccupancyBurst": {
35674
+ capName: "pipeline-runner",
35675
+ capScope: "system",
35676
+ addonId: null,
35677
+ access: "create"
35678
+ },
35393
35679
  "pipelineRunner.runDetailSubtree": {
35394
35680
  capName: "pipeline-runner",
35395
35681
  capScope: "system",
@@ -38170,11 +38456,21 @@ Object.freeze({
38170
38456
  form: "single",
38171
38457
  optional: false
38172
38458
  }],
38459
+ "nativeObjectDetection.getOptions": [{
38460
+ name: "deviceId",
38461
+ form: "single",
38462
+ optional: false
38463
+ }],
38173
38464
  "nativeObjectDetection.setEnabled": [{
38174
38465
  name: "deviceId",
38175
38466
  form: "single",
38176
38467
  optional: false
38177
38468
  }],
38469
+ "nativeObjectDetection.setSettings": [{
38470
+ name: "deviceId",
38471
+ form: "single",
38472
+ optional: false
38473
+ }],
38178
38474
  "navigation.getFeatures": [{
38179
38475
  name: "deviceId",
38180
38476
  form: "single",
@@ -38524,6 +38820,11 @@ Object.freeze({
38524
38820
  form: "single",
38525
38821
  optional: false
38526
38822
  }],
38823
+ "pipelineAnalytics.readLongTermSeries": [{
38824
+ name: "deviceId",
38825
+ form: "single",
38826
+ optional: false
38827
+ }],
38527
38828
  "pipelineAnalytics.rebuildObjectEmbeddings": [{
38528
38829
  name: "deviceId",
38529
38830
  form: "single",
@@ -38714,6 +39015,11 @@ Object.freeze({
38714
39015
  form: "single",
38715
39016
  optional: false
38716
39017
  }],
39018
+ "pipelineRunner.requestOccupancyBurst": [{
39019
+ name: "deviceId",
39020
+ form: "single",
39021
+ optional: false
39022
+ }],
38717
39023
  "pipelineRunner.runDetailSubtree": [{
38718
39024
  name: "deviceId",
38719
39025
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-ai",
3
- "version": "0.4.107",
3
+ "version": "0.4.109",
4
4
  "description": "AI addon for CamStack — the `llm` collection provider (cloud, LAN, and camstack-managed local llama.cpp profiles) plus the per-node `llm-runtime` managed executor.",
5
5
  "keywords": [
6
6
  "camstack",
@@ -57,7 +57,7 @@
57
57
  "dev": "vite build --watch",
58
58
  "typecheck": "tsc --noEmit",
59
59
  "test": "vitest run",
60
- "publish": "npm publish --access public"
60
+ "publish:npm": "npm publish --access public"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "@camstack/types": "*"