@camstack/addon-pipeline 1.2.317 → 1.2.320

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 (33) hide show
  1. package/dist/audio-analyzer/index.js +2 -2
  2. package/dist/audio-analyzer/index.mjs +2 -2
  3. package/dist/{default-detection-model-CILrD3sC.mjs → default-detection-model-B-iMtrXt.mjs} +853 -14
  4. package/dist/{default-detection-model-DdIJSdQB.js → default-detection-model-CO4pZxbd.js} +864 -13
  5. package/dist/detection-pipeline/index.js +4 -4
  6. package/dist/detection-pipeline/index.mjs +4 -4
  7. package/dist/{dist-3isAnyIX.mjs → dist-BK-pWZzI.mjs} +27 -7
  8. package/dist/{dist-DXU3Fu7j.js → dist-Bce5_ocm.js} +27 -7
  9. package/dist/motion-wasm/index.js +1 -1
  10. package/dist/motion-wasm/index.mjs +1 -1
  11. package/dist/{node-PY3N7_ym.mjs → node-DQsiK6Vt.mjs} +1 -1
  12. package/dist/{node-DEpHS48Q.js → node-UJwLVGTT.js} +1 -1
  13. package/dist/pipeline-runner/index.js +13 -821
  14. package/dist/pipeline-runner/index.mjs +12 -820
  15. package/dist/{process-memory-DE0M2AiK.mjs → process-memory-Cn3QEo37.mjs} +1 -1
  16. package/dist/{process-memory-DAGs0yZp.js → process-memory-DR7jI54j.js} +1 -1
  17. package/dist/recorder/index.js +2 -2
  18. package/dist/recorder/index.mjs +2 -2
  19. package/dist/{segment-demux-js-k3D5kt3W.mjs → segment-demux-js-CTMbCGRL.mjs} +1 -1
  20. package/dist/{segment-demux-js-BZhn3qOl.js → segment-demux-js-CbazlBOP.js} +1 -1
  21. package/dist/session-decode/decode-worker-main.js +194 -13
  22. package/dist/session-decode/decode-worker-main.mjs +194 -13
  23. package/dist/stream-broker/_stub.js +1 -1
  24. package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-DqP6Ev3L.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-DP4h-J_V.mjs} +2 -2
  25. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BAYDyjOG.mjs +26 -0
  26. package/dist/stream-broker/demux-worker-child.js +1 -1
  27. package/dist/stream-broker/demux-worker-child.mjs +1 -1
  28. package/dist/stream-broker/{hostInit-BRiacIOY.mjs → hostInit-CnrH7DvQ.mjs} +2 -2
  29. package/dist/stream-broker/index.js +19 -8
  30. package/dist/stream-broker/index.mjs +19 -8
  31. package/dist/stream-broker/remoteEntry.js +1 -1
  32. package/package.json +1 -1
  33. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CVT3OmxC.mjs +0 -26
@@ -3,11 +3,11 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  const require_chunk = require("../chunk-emK7D4bc.js");
6
- const require_dist = require("../dist-DXU3Fu7j.js");
7
- const require_node = require("../node-DEpHS48Q.js");
8
- const require_default_detection_model = require("../default-detection-model-DdIJSdQB.js");
6
+ const require_dist = require("../dist-Bce5_ocm.js");
7
+ const require_node = require("../node-UJwLVGTT.js");
8
+ const require_default_detection_model = require("../default-detection-model-CO4pZxbd.js");
9
9
  const require_lazy_sharp = require("../lazy-sharp-BuwKlQLR.js");
10
- const require_process_memory = require("../process-memory-DAGs0yZp.js");
10
+ const require_process_memory = require("../process-memory-DR7jI54j.js");
11
11
  let node_os = require("node:os");
12
12
  node_os = require_chunk.__toESM(node_os);
13
13
  let node_fs = require("node:fs");
@@ -1,9 +1,9 @@
1
1
  import { n as __require } from "../chunk-DnnnRqeS.mjs";
2
- import { A as PoolMemoryWatchdog, An as sleep, At as overlayClusterStepSettings, Dn as parseJsonUnknown, En as nodePin, Ft as pipelineExecutorCapability, Hn as union, Ht as resolveClusterStepModelId, Jt as runtimeDevices$1, Kt as resolvePoolMemoryPolicy, Mn as array, Mt as pickClusterStepSettings, Rn as object, Sn as hydrateSchema, Un as EventCategory, V as YAMNET_TO_MACRO, Vn as string, Yt as stepModelRunsOnFormat, bt as loadContributionCapability, ct as evaluateZoneRules, d as CLUSTER_MODEL_SCOPED_STEPS, en as supportedRuntimes$1, et as defaultDeviceFor$1, fn as errMsg, h as DEFAULT_CLUSTER_STEP_SETTINGS, it as detectionPipelineCapability, mn as BaseAddon, n as APPLE_SA_TO_MACRO, st as enumerateInferenceDevices, vn as createEvent, y as DEVICE_BACKEND_TO_FORMAT } from "../dist-3isAnyIX.mjs";
3
- import { s as readProcessCost } from "../node-PY3N7_ym.mjs";
4
- import { _ as resolveModelForFormat, a as buildSubtreeCanRun, b as resolveModelDefaultConfidence, c as macroGateVerdict, f as ALL_PIPELINE_STEPS, g as getStepDefinition, h as getStep, i as mergeCustomModels, m as getDefaultModelForFormat, n as resolveDefaultDetectionModel, p as ALL_STEPS, r as CustomModelCatalog, u as localFrameRegistry, y as landmarkPrecisionVerdict } from "../default-detection-model-CILrD3sC.mjs";
2
+ import { A as PoolMemoryWatchdog, An as sleep, At as overlayClusterStepSettings, Dn as parseJsonUnknown, En as nodePin, Ft as pipelineExecutorCapability, Hn as union, Ht as resolveClusterStepModelId, Jt as runtimeDevices$1, Kt as resolvePoolMemoryPolicy, Mn as array, Mt as pickClusterStepSettings, Rn as object, Sn as hydrateSchema, Un as EventCategory, V as YAMNET_TO_MACRO, Vn as string, Yt as stepModelRunsOnFormat, bt as loadContributionCapability, ct as evaluateZoneRules, d as CLUSTER_MODEL_SCOPED_STEPS, en as supportedRuntimes$1, et as defaultDeviceFor$1, fn as errMsg, h as DEFAULT_CLUSTER_STEP_SETTINGS, it as detectionPipelineCapability, mn as BaseAddon, n as APPLE_SA_TO_MACRO, st as enumerateInferenceDevices, vn as createEvent, y as DEVICE_BACKEND_TO_FORMAT } from "../dist-BK-pWZzI.mjs";
3
+ import { s as readProcessCost } from "../node-DQsiK6Vt.mjs";
4
+ import { S as resolveModelDefaultConfidence, _ as getStep, a as buildSubtreeCanRun, c as macroGateVerdict, g as getDefaultModelForFormat, h as ALL_STEPS, i as mergeCustomModels, m as ALL_PIPELINE_STEPS, n as resolveDefaultDetectionModel, r as CustomModelCatalog, u as localFrameRegistry, v as getStepDefinition, x as landmarkPrecisionVerdict, y as resolveModelForFormat } from "../default-detection-model-B-iMtrXt.mjs";
5
5
  import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
6
- import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-DE0M2AiK.mjs";
6
+ import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-Cn3QEo37.mjs";
7
7
  import * as os from "node:os";
8
8
  import * as fs from "node:fs";
9
9
  import * as path$1 from "node:path";
@@ -7693,7 +7693,7 @@ function errMsg(err) {
7693
7693
  return String(err);
7694
7694
  }
7695
7695
  //#endregion
7696
- //#region ../types/dist/composition-D7ULvLdD.mjs
7696
+ //#region ../types/dist/composition-Bzr7GwgP.mjs
7697
7697
  var AUDIO_ENCODER_BY_CODEC = {
7698
7698
  opus: "libopus",
7699
7699
  aac: "aac",
@@ -8512,6 +8512,8 @@ var SOURCE_CAP_CHANGED_AT_FIELD = {
8512
8512
  vibration: "lastChangedAt",
8513
8513
  tamper: "lastChangedAt"
8514
8514
  };
8515
+ /** Cap names whose presence in a device's bindings qualify it as a source. */
8516
+ var SOURCE_CAPS = Object.keys(SOURCE_CAP_ACTIVE_FIELD);
8515
8517
  /** True when a cap is a recognised binary/switch source. */
8516
8518
  function isSourceCap(capName) {
8517
8519
  return Object.prototype.hasOwnProperty.call(SOURCE_CAP_ACTIVE_FIELD, capName);
@@ -14275,7 +14277,7 @@ var BrokerStatusEnum = _enum([
14275
14277
  "unreachable",
14276
14278
  "error"
14277
14279
  ]);
14278
- var BrokerInfoSchema$1 = object({
14280
+ var BrokerInfoSchema = object({
14279
14281
  /** Stable broker id. Persisted; survives addon restarts. */
14280
14282
  id: string(),
14281
14283
  /** Addon id of the provider that OWNS this broker.
@@ -14408,7 +14410,7 @@ var GetStateInputSchema = object({
14408
14410
  * HA: entity_id (returns the cached entity state). */
14409
14411
  key: string()
14410
14412
  });
14411
- method(ListInputSchema, array(BrokerInfoSchema$1)), method(GetInputSchema, BrokerInfoSchema$1.nullable()), method(_void(), array(BrokerProviderInfoSchema), { auth: "admin" }), method(AddInputSchema, AddResultSchema, {
14413
+ method(ListInputSchema, array(BrokerInfoSchema)), method(GetInputSchema, BrokerInfoSchema.nullable()), method(_void(), array(BrokerProviderInfoSchema), { auth: "admin" }), method(AddInputSchema, AddResultSchema, {
14412
14414
  kind: "mutation",
14413
14415
  auth: "admin"
14414
14416
  }), method(RemoveInputSchema, _void(), {
@@ -19751,7 +19753,7 @@ var BrokerStatusSchema$1 = _enum([
19751
19753
  "unreachable",
19752
19754
  "tls-error"
19753
19755
  ]);
19754
- var BrokerInfoSchema = object({
19756
+ var BrokerInfoSchema$1 = object({
19755
19757
  id: string(),
19756
19758
  name: string(),
19757
19759
  url: string(),
@@ -19814,7 +19816,7 @@ var StatusSchema = object({
19814
19816
  brokerCount: number(),
19815
19817
  embeddedRunning: boolean()
19816
19818
  });
19817
- method(_void(), array(BrokerInfoSchema)), method(IdInputSchema, BrokerConnectionDetailsSchema, { auth: "admin" }), method(AddBrokerInputSchema, AddBrokerResultSchema, {
19819
+ method(_void(), array(BrokerInfoSchema$1)), method(IdInputSchema, BrokerConnectionDetailsSchema, { auth: "admin" }), method(AddBrokerInputSchema, AddBrokerResultSchema, {
19818
19820
  kind: "mutation",
19819
19821
  auth: "admin"
19820
19822
  }), method(IdInputSchema, _void(), {
@@ -22398,9 +22400,25 @@ var NcRuleSchema = NcRuleInputSchema.extend({
22398
22400
  */
22399
22401
  disabledTargetIds: array(string()).default([])
22400
22402
  });
22403
+ /**
22404
+ * The state-summary SECTIONS (D647 / D698): the D637 kind groups that report a
22405
+ * still-true state. `backups-exports` and `alarm` are not sections — a completed
22406
+ * job is not an open state, and the alarm stays instant.
22407
+ */
22408
+ var NcStateSummarySectionIdSchema = _enum([
22409
+ "device-state",
22410
+ "streams",
22411
+ "battery",
22412
+ "consumables",
22413
+ "tanks",
22414
+ "detection-blind",
22415
+ "nodes",
22416
+ "addons",
22417
+ "updates"
22418
+ ]);
22401
22419
  /** One section of a previewed state summary. `unavailable` = its state could not be read. */
22402
22420
  var NcStateSummaryPreviewSectionSchema = object({
22403
- id: string(),
22421
+ id: NcStateSummarySectionIdSchema,
22404
22422
  status: _enum(["read", "unavailable"]),
22405
22423
  items: number().int().nonnegative(),
22406
22424
  reason: string().optional()
@@ -22410,7 +22428,7 @@ var NcStateSummaryPreviewSectionSchema = object({
22410
22428
  * a `rule` split (no `section`), one section's on a `section` split.
22411
22429
  */
22412
22430
  var NcStateSummaryPreviewRowSchema = object({
22413
- section: string().optional(),
22431
+ section: NcStateSummarySectionIdSchema.optional(),
22414
22432
  /** The section's name on a per-section row; every reported section's, joined, on a combined one. */
22415
22433
  title: string(),
22416
22434
  text: string(),
@@ -24974,6 +24992,7 @@ var KeyEventSchema = object({
24974
24992
  bestEventId: string(),
24975
24993
  /** Track lifetime in ms (lastSeen - firstSeen). */
24976
24994
  windowMs: number().optional(),
24995
+ audioLabels: array(TrackAudioLabelSchema).readonly().optional(),
24977
24996
  ...TrackFlagFields,
24978
24997
  ...TrackRetrainFields
24979
24998
  });
@@ -40064,6 +40083,7 @@ DeviceType.Camera, method(object({
40064
40083
  detection: array(ZoneRuleSchema).readonly(),
40065
40084
  package: array(ZoneRuleSchema).readonly()
40066
40085
  });
40086
+ SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
40067
40087
  var HF_BASE_URL = `https://huggingface.co/camstack/camstack-models/resolve/main`;
40068
40088
  /**
40069
40089
  * Accessory device helpers — shared across drivers.
@@ -7693,7 +7693,7 @@ function errMsg(err) {
7693
7693
  return String(err);
7694
7694
  }
7695
7695
  //#endregion
7696
- //#region ../types/dist/composition-D7ULvLdD.mjs
7696
+ //#region ../types/dist/composition-Bzr7GwgP.mjs
7697
7697
  var AUDIO_ENCODER_BY_CODEC = {
7698
7698
  opus: "libopus",
7699
7699
  aac: "aac",
@@ -8512,6 +8512,8 @@ var SOURCE_CAP_CHANGED_AT_FIELD = {
8512
8512
  vibration: "lastChangedAt",
8513
8513
  tamper: "lastChangedAt"
8514
8514
  };
8515
+ /** Cap names whose presence in a device's bindings qualify it as a source. */
8516
+ var SOURCE_CAPS = Object.keys(SOURCE_CAP_ACTIVE_FIELD);
8515
8517
  /** True when a cap is a recognised binary/switch source. */
8516
8518
  function isSourceCap(capName) {
8517
8519
  return Object.prototype.hasOwnProperty.call(SOURCE_CAP_ACTIVE_FIELD, capName);
@@ -14275,7 +14277,7 @@ var BrokerStatusEnum = _enum([
14275
14277
  "unreachable",
14276
14278
  "error"
14277
14279
  ]);
14278
- var BrokerInfoSchema$1 = object({
14280
+ var BrokerInfoSchema = object({
14279
14281
  /** Stable broker id. Persisted; survives addon restarts. */
14280
14282
  id: string(),
14281
14283
  /** Addon id of the provider that OWNS this broker.
@@ -14408,7 +14410,7 @@ var GetStateInputSchema = object({
14408
14410
  * HA: entity_id (returns the cached entity state). */
14409
14411
  key: string()
14410
14412
  });
14411
- method(ListInputSchema, array(BrokerInfoSchema$1)), method(GetInputSchema, BrokerInfoSchema$1.nullable()), method(_void(), array(BrokerProviderInfoSchema), { auth: "admin" }), method(AddInputSchema, AddResultSchema, {
14413
+ method(ListInputSchema, array(BrokerInfoSchema)), method(GetInputSchema, BrokerInfoSchema.nullable()), method(_void(), array(BrokerProviderInfoSchema), { auth: "admin" }), method(AddInputSchema, AddResultSchema, {
14412
14414
  kind: "mutation",
14413
14415
  auth: "admin"
14414
14416
  }), method(RemoveInputSchema, _void(), {
@@ -19751,7 +19753,7 @@ var BrokerStatusSchema$1 = _enum([
19751
19753
  "unreachable",
19752
19754
  "tls-error"
19753
19755
  ]);
19754
- var BrokerInfoSchema = object({
19756
+ var BrokerInfoSchema$1 = object({
19755
19757
  id: string(),
19756
19758
  name: string(),
19757
19759
  url: string(),
@@ -19814,7 +19816,7 @@ var StatusSchema = object({
19814
19816
  brokerCount: number(),
19815
19817
  embeddedRunning: boolean()
19816
19818
  });
19817
- method(_void(), array(BrokerInfoSchema)), method(IdInputSchema, BrokerConnectionDetailsSchema, { auth: "admin" }), method(AddBrokerInputSchema, AddBrokerResultSchema, {
19819
+ method(_void(), array(BrokerInfoSchema$1)), method(IdInputSchema, BrokerConnectionDetailsSchema, { auth: "admin" }), method(AddBrokerInputSchema, AddBrokerResultSchema, {
19818
19820
  kind: "mutation",
19819
19821
  auth: "admin"
19820
19822
  }), method(IdInputSchema, _void(), {
@@ -22398,9 +22400,25 @@ var NcRuleSchema = NcRuleInputSchema.extend({
22398
22400
  */
22399
22401
  disabledTargetIds: array(string()).default([])
22400
22402
  });
22403
+ /**
22404
+ * The state-summary SECTIONS (D647 / D698): the D637 kind groups that report a
22405
+ * still-true state. `backups-exports` and `alarm` are not sections — a completed
22406
+ * job is not an open state, and the alarm stays instant.
22407
+ */
22408
+ var NcStateSummarySectionIdSchema = _enum([
22409
+ "device-state",
22410
+ "streams",
22411
+ "battery",
22412
+ "consumables",
22413
+ "tanks",
22414
+ "detection-blind",
22415
+ "nodes",
22416
+ "addons",
22417
+ "updates"
22418
+ ]);
22401
22419
  /** One section of a previewed state summary. `unavailable` = its state could not be read. */
22402
22420
  var NcStateSummaryPreviewSectionSchema = object({
22403
- id: string(),
22421
+ id: NcStateSummarySectionIdSchema,
22404
22422
  status: _enum(["read", "unavailable"]),
22405
22423
  items: number().int().nonnegative(),
22406
22424
  reason: string().optional()
@@ -22410,7 +22428,7 @@ var NcStateSummaryPreviewSectionSchema = object({
22410
22428
  * a `rule` split (no `section`), one section's on a `section` split.
22411
22429
  */
22412
22430
  var NcStateSummaryPreviewRowSchema = object({
22413
- section: string().optional(),
22431
+ section: NcStateSummarySectionIdSchema.optional(),
22414
22432
  /** The section's name on a per-section row; every reported section's, joined, on a combined one. */
22415
22433
  title: string(),
22416
22434
  text: string(),
@@ -24974,6 +24992,7 @@ var KeyEventSchema = object({
24974
24992
  bestEventId: string(),
24975
24993
  /** Track lifetime in ms (lastSeen - firstSeen). */
24976
24994
  windowMs: number().optional(),
24995
+ audioLabels: array(TrackAudioLabelSchema).readonly().optional(),
24977
24996
  ...TrackFlagFields,
24978
24997
  ...TrackRetrainFields
24979
24998
  });
@@ -40064,6 +40083,7 @@ DeviceType.Camera, method(object({
40064
40083
  detection: array(ZoneRuleSchema).readonly(),
40065
40084
  package: array(ZoneRuleSchema).readonly()
40066
40085
  });
40086
+ SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
40067
40087
  var HF_BASE_URL = `https://huggingface.co/camstack/camstack-models/resolve/main`;
40068
40088
  /**
40069
40089
  * Accessory device helpers — shared across drivers.
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_dist = require("../dist-DXU3Fu7j.js");
5
+ const require_dist = require("../dist-Bce5_ocm.js");
6
6
  const require_lazy_sharp = require("../lazy-sharp-BuwKlQLR.js");
7
7
  let node_fs = require("node:fs");
8
8
  let node_path = require("node:path");
@@ -1,4 +1,4 @@
1
- import { Sn as hydrateSchema, ct as evaluateZoneRules, dn as DeviceType, kt as motionDetectionCapability, mn as BaseAddon } from "../dist-3isAnyIX.mjs";
1
+ import { Sn as hydrateSchema, ct as evaluateZoneRules, dn as DeviceType, kt as motionDetectionCapability, mn as BaseAddon } from "../dist-BK-pWZzI.mjs";
2
2
  import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
3
3
  import { readFileSync } from "node:fs";
4
4
  import { join } from "node:path";
@@ -1,4 +1,4 @@
1
- import { an as Fmp4BoxSplitter, fn as errMsg, ln as isSoftwareDecode, on as buildFfmpegArgs } from "./dist-3isAnyIX.mjs";
1
+ import { an as Fmp4BoxSplitter, fn as errMsg, ln as isSoftwareDecode, on as buildFfmpegArgs } from "./dist-BK-pWZzI.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { realpathSync } from "node:fs";
4
4
  import path from "node:path";
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require("./chunk-emK7D4bc.js");
2
- const require_dist = require("./dist-DXU3Fu7j.js");
2
+ const require_dist = require("./dist-Bce5_ocm.js");
3
3
  let node_crypto = require("node:crypto");
4
4
  let node_fs = require("node:fs");
5
5
  node_fs = require_chunk.__toESM(node_fs, 1);