@camstack/addon-pipeline 1.1.26 → 1.1.28

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 (48) hide show
  1. package/dist/audio-analyzer/index.js +7 -6
  2. package/dist/audio-analyzer/index.mjs +7 -6
  3. package/dist/audio-codec-ffmpeg/index.js +1 -1
  4. package/dist/audio-codec-ffmpeg/index.mjs +1 -1
  5. package/dist/constants-CAqYVigN.js +6615 -0
  6. package/dist/constants-oYgW36Ty.mjs +3587 -0
  7. package/dist/decoder-ffmpeg/index.js +74 -281
  8. package/dist/decoder-ffmpeg/index.mjs +73 -280
  9. package/dist/decoder-nodeav/index.js +1218 -0
  10. package/dist/decoder-nodeav/index.mjs +1210 -0
  11. package/dist/detection-pipeline/index.js +157 -219
  12. package/dist/detection-pipeline/index.mjs +157 -219
  13. package/dist/{dist-DAIlCdAx.js → dist-Biq62zt4.js} +372 -35
  14. package/dist/{dist-CgEP_0OL.mjs → dist-C6_wgXqF.mjs} +373 -24
  15. package/dist/dist-D3Ytt-_Y.js +41111 -0
  16. package/dist/dist-DluJuxV5.mjs +37976 -0
  17. package/dist/{frame-handle-plane-Dq20KtKL.mjs → frame-handle-plane-BIoY6nRV.mjs} +13 -5
  18. package/dist/{frame-handle-plane-DtTRX_0n.js → frame-handle-plane-D6BzyEgy.js} +13 -5
  19. package/dist/frame-ring-sink-9J0wCdLF.js +444 -0
  20. package/dist/frame-ring-sink-Cs9vby6v.mjs +409 -0
  21. package/dist/motion-wasm/index.js +55 -3
  22. package/dist/motion-wasm/index.mjs +55 -3
  23. package/dist/node-topology-platform-BkR_k6WT.mjs +15 -0
  24. package/dist/node-topology-platform-CFZ7F4xW.js +20 -0
  25. package/dist/pipeline-runner/index.js +50 -16
  26. package/dist/pipeline-runner/index.mjs +50 -16
  27. package/dist/recorder/index.js +36 -40
  28. package/dist/recorder/index.mjs +36 -40
  29. package/dist/stream-broker/_stub.js +2 -2
  30. package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-5tQlh9h4.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-DoReAb4y.mjs} +3 -3
  31. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DhY3MZ2C.mjs +26 -0
  32. package/dist/stream-broker/{_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-BJK0-svt.mjs → _virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DtoYGpTp.mjs} +1 -1
  33. package/dist/stream-broker/{hostInit-DyLqyJaS.mjs → hostInit-C0SuwQhL.mjs} +3 -3
  34. package/dist/stream-broker/index.js +81 -40
  35. package/dist/stream-broker/index.mjs +81 -40
  36. package/dist/stream-broker/remoteEntry.js +1 -1
  37. package/embed-dist/assets/{MaskShapeCanvas-DI4BY7W2-BDLNwJ_F.js → MaskShapeCanvas-DI4BY7W2-Br2yi8ah.js} +1 -1
  38. package/embed-dist/assets/{MotionZonesSettings-NcxxQN8r-CoLjNiUN.js → MotionZonesSettings-NcxxQN8r-BSCcPdPf.js} +1 -1
  39. package/embed-dist/assets/{PrivacyMaskSettings-APgPLF7p-DJE3OU-q.js → PrivacyMaskSettings-APgPLF7p-ztxvxSjS.js} +1 -1
  40. package/embed-dist/assets/index-C5UpuPr8.css +2 -0
  41. package/embed-dist/assets/{index-C-pL8ETk.js → index-CeZV1B-2.js} +10 -10
  42. package/embed-dist/index.html +2 -2
  43. package/package.json +31 -3
  44. package/python/inference_pool.py +108 -121
  45. package/python/test_inference_pool_device_selection.py +47 -43
  46. package/python/yamnet_audio.py +1 -1
  47. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CkOPfV8r.mjs +0 -26
  48. package/embed-dist/assets/index-DrJ0ee3f.css +0 -2
@@ -3,7 +3,8 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  const require_model_download_service_C_IHWnXx = require("../model-download-service-C-IHWnXx-DxM2DSns.js");
6
- const require_dist = require("../dist-DAIlCdAx.js");
6
+ const require_dist = require("../dist-Biq62zt4.js");
7
+ const require_node_topology_platform = require("../node-topology-platform-CFZ7F4xW.js");
7
8
  let node_fs = require("node:fs");
8
9
  node_fs = require_model_download_service_C_IHWnXx.__toESM(node_fs);
9
10
  let node_path = require("node:path");
@@ -672,6 +673,7 @@ var AudioAnalyzerAddon = class extends require_dist.BaseAddon {
672
673
  description: "Auto-detected best audio backend on this host. Click the refresh icon to re-run the probe.",
673
674
  readonlyField: true,
674
675
  default: "",
676
+ perNode: true,
675
677
  actions: [{
676
678
  action: "reprobe-audio-engine",
677
679
  icon: "refresh-cw",
@@ -720,8 +722,7 @@ var AudioAnalyzerAddon = class extends require_dist.BaseAddon {
720
722
  * semantics detection-pipeline relies on.
721
723
  */
722
724
  async getGlobalSettings(overlay, _cap, nodeId) {
723
- const ctx = this.ctxIfReady;
724
- const stored = ctx?.settings ? await ctx.settings.readAddonStore() ?? {} : {};
725
+ const stored = await this.resolveGlobalStore(nodeId);
725
726
  const merged = overlay ? {
726
727
  ...stored,
727
728
  ...overlay
@@ -777,8 +778,8 @@ var AudioAnalyzerAddon = class extends require_dist.BaseAddon {
777
778
  const localNode = this.ctxIfReady?.kernel?.localNodeId;
778
779
  if (!nodeId || nodeId === localNode) return process.platform;
779
780
  try {
780
- const entry = (await this.ctxIfReady?.api?.nodes?.topology.query())?.find((n) => n.id === nodeId);
781
- if (entry?.platform) return entry.platform;
781
+ const { platform } = require_node_topology_platform.pickNodePlatformArch(await this.ctxIfReady?.api?.nodes?.topology.query(), nodeId);
782
+ if (platform) return platform;
782
783
  } catch {}
783
784
  return process.platform;
784
785
  }
@@ -789,7 +790,7 @@ var AudioAnalyzerAddon = class extends require_dist.BaseAddon {
789
790
  */
790
791
  async reprobeAudioEngine() {
791
792
  const backend = process.platform === "darwin" ? "apple-soundanalysis" : "yamnet-onnx";
792
- await this.ctx.settings?.writeAddonStore({ probedBestAudioBackend: backend });
793
+ await this.updateGlobalSettings({ probedBestAudioBackend: backend });
793
794
  this.ctx.logger.info("reprobeAudioEngine: wrote probedBestAudioBackend", { meta: { backend } });
794
795
  return { backend };
795
796
  }
@@ -1,5 +1,6 @@
1
1
  import { t as __require } from "../chunk-BdkLduGY.mjs";
2
- import { B as errMsg, D as mapAudioLabelToMacro, V as BaseAddon, Y as hydrateSchema, _ as audioAnalyzerCapability, g as audioAnalysisCapability, n as AUDIO_BACKEND_CHOICES, o as DEFAULT_AUDIO_ANALYZER_CONFIG, u as HF_BASE_URL } from "../dist-CgEP_0OL.mjs";
2
+ import { B as errMsg, D as mapAudioLabelToMacro, V as BaseAddon, _ as audioAnalyzerCapability, g as audioAnalysisCapability, n as AUDIO_BACKEND_CHOICES, o as DEFAULT_AUDIO_ANALYZER_CONFIG, q as hydrateSchema, u as HF_BASE_URL } from "../dist-C6_wgXqF.mjs";
3
+ import { t as pickNodePlatformArch } from "../node-topology-platform-BkR_k6WT.mjs";
3
4
  import { r as downloadFile } from "../model-download-service-C-IHWnXx-BPy6aoAx.mjs";
4
5
  import * as fs from "node:fs";
5
6
  import * as path$1 from "node:path";
@@ -667,6 +668,7 @@ var AudioAnalyzerAddon = class extends BaseAddon {
667
668
  description: "Auto-detected best audio backend on this host. Click the refresh icon to re-run the probe.",
668
669
  readonlyField: true,
669
670
  default: "",
671
+ perNode: true,
670
672
  actions: [{
671
673
  action: "reprobe-audio-engine",
672
674
  icon: "refresh-cw",
@@ -715,8 +717,7 @@ var AudioAnalyzerAddon = class extends BaseAddon {
715
717
  * semantics detection-pipeline relies on.
716
718
  */
717
719
  async getGlobalSettings(overlay, _cap, nodeId) {
718
- const ctx = this.ctxIfReady;
719
- const stored = ctx?.settings ? await ctx.settings.readAddonStore() ?? {} : {};
720
+ const stored = await this.resolveGlobalStore(nodeId);
720
721
  const merged = overlay ? {
721
722
  ...stored,
722
723
  ...overlay
@@ -772,8 +773,8 @@ var AudioAnalyzerAddon = class extends BaseAddon {
772
773
  const localNode = this.ctxIfReady?.kernel?.localNodeId;
773
774
  if (!nodeId || nodeId === localNode) return process.platform;
774
775
  try {
775
- const entry = (await this.ctxIfReady?.api?.nodes?.topology.query())?.find((n) => n.id === nodeId);
776
- if (entry?.platform) return entry.platform;
776
+ const { platform } = pickNodePlatformArch(await this.ctxIfReady?.api?.nodes?.topology.query(), nodeId);
777
+ if (platform) return platform;
777
778
  } catch {}
778
779
  return process.platform;
779
780
  }
@@ -784,7 +785,7 @@ var AudioAnalyzerAddon = class extends BaseAddon {
784
785
  */
785
786
  async reprobeAudioEngine() {
786
787
  const backend = process.platform === "darwin" ? "apple-soundanalysis" : "yamnet-onnx";
787
- await this.ctx.settings?.writeAddonStore({ probedBestAudioBackend: backend });
788
+ await this.updateGlobalSettings({ probedBestAudioBackend: backend });
788
789
  this.ctx.logger.info("reprobeAudioEngine: wrote probedBestAudioBackend", { meta: { backend } });
789
790
  return { backend };
790
791
  }
@@ -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-DAIlCdAx.js");
5
+ const require_dist = require("../dist-Biq62zt4.js");
6
6
  let node_crypto = require("node:crypto");
7
7
  let node_child_process = require("node:child_process");
8
8
  //#region src/audio-codec-ffmpeg/ffmpeg-audio-process.ts
@@ -1,4 +1,4 @@
1
- import { B as errMsg, V as BaseAddon, v as audioCodecCapability } from "../dist-CgEP_0OL.mjs";
1
+ import { B as errMsg, V as BaseAddon, v as audioCodecCapability } from "../dist-C6_wgXqF.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { spawn } from "node:child_process";
4
4
  //#region src/audio-codec-ffmpeg/ffmpeg-audio-process.ts