@camstack/addon-pipeline 1.2.41 → 1.2.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/audio-analyzer/index.js +4 -4
- package/dist/audio-analyzer/index.mjs +2 -2
- package/dist/detection-pipeline/index.js +9 -9
- package/dist/detection-pipeline/index.mjs +3 -3
- package/dist/{dist-DvUTPZ8J.mjs → dist-B-VVBzrL.mjs} +14015 -12502
- package/dist/{dist-BS7wLqoV.js → dist-UHbKZiSa.js} +15254 -13705
- package/dist/{event-loop-stall-monitor-C5P2bcwP.js → event-loop-stall-monitor-C7_L6vHO.js} +1 -1
- package/dist/{event-loop-stall-monitor-a2u9e1qx.mjs → event-loop-stall-monitor-DfKdC7G4.mjs} +1 -1
- package/dist/{model-download-service-Cp9f4dk6-fsdDExML.js → model-download-service-D8B-4ktF-7-YxE9Wx.js} +2 -2
- package/dist/{model-download-service-Cp9f4dk6-CwUb5v3Y.mjs → model-download-service-D8B-4ktF-BB7oZL3y.mjs} +2 -2
- package/dist/motion-wasm/index.js +1 -1
- package/dist/motion-wasm/index.mjs +1 -1
- package/dist/pipeline-runner/index.js +348 -27
- package/dist/pipeline-runner/index.mjs +348 -27
- package/dist/recorder/index.js +6 -6
- package/dist/recorder/index.mjs +3 -3
- package/dist/stream-broker/_stub.js +2 -2
- package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-CS82x0lt.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-D7iQbuKY.mjs} +2 -2
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CCC9fqHH.mjs +26 -0
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-54IklEep.mjs +26 -0
- package/dist/stream-broker/{hostInit-lj4kKHrb.mjs → hostInit-CKYS9yZO.mjs} +2 -2
- package/dist/stream-broker/index.js +16202 -15821
- package/dist/stream-broker/index.mjs +16201 -15820
- package/dist/stream-broker/remoteEntry.js +1 -1
- package/embed-dist/assets/{MaskShapeCanvas-DI4BY7W2-BRQ5u_mo.js → MaskShapeCanvas-DI4BY7W2-DxZ75vB8.js} +1 -1
- package/embed-dist/assets/{MotionZonesSettings-NcxxQN8r-KbOg5nD9.js → MotionZonesSettings-NcxxQN8r-BBY2Ztz5.js} +1 -1
- package/embed-dist/assets/{PrivacyMaskSettings-APgPLF7p-CKSPn3_D.js → PrivacyMaskSettings-APgPLF7p-BC-3QmHa.js} +1 -1
- package/embed-dist/assets/index-on1wyOnd.js +112 -0
- package/embed-dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CDzxDzcv.mjs +0 -26
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-CciPNnL7.mjs +0 -26
- package/embed-dist/assets/index-CbrEyYGW.js +0 -112
|
@@ -3,9 +3,9 @@ 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-
|
|
6
|
+
const require_dist = require("../dist-UHbKZiSa.js");
|
|
7
7
|
const require_node_topology_platform = require("../node-topology-platform-CFZ7F4xW.js");
|
|
8
|
-
const
|
|
8
|
+
const require_model_download_service_D8B_4ktF = require("../model-download-service-D8B-4ktF-7-YxE9Wx.js");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
10
10
|
node_fs = require_chunk.__toESM(node_fs);
|
|
11
11
|
let node_path = require("node:path");
|
|
@@ -84,7 +84,7 @@ var YamnetPythonPipeline = class {
|
|
|
84
84
|
url: YAMNET_MODEL_URL,
|
|
85
85
|
dest: modelPath
|
|
86
86
|
} });
|
|
87
|
-
await
|
|
87
|
+
await require_model_download_service_D8B_4ktF.downloadFile(YAMNET_MODEL_URL, modelPath);
|
|
88
88
|
this.log.info("YAMNet ONNX model downloaded", { meta: { sizeBytes: node_fs.statSync(modelPath).size } });
|
|
89
89
|
}
|
|
90
90
|
if (!node_fs.existsSync(labelsPath)) {
|
|
@@ -92,7 +92,7 @@ var YamnetPythonPipeline = class {
|
|
|
92
92
|
url: YAMNET_LABELS_URL,
|
|
93
93
|
dest: labelsPath
|
|
94
94
|
} });
|
|
95
|
-
await
|
|
95
|
+
await require_model_download_service_D8B_4ktF.downloadFile(YAMNET_LABELS_URL, labelsPath);
|
|
96
96
|
}
|
|
97
97
|
const pythonDir = resolveAudioPythonDir();
|
|
98
98
|
if (this.installPythonRequirements) await this.installPythonRequirements(node_path.join(pythonDir, "requirements-audio.txt"));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as __require } from "../chunk-DnnnRqeS.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { K as errMsg, N as mapAudioLabelToMacro, Q as hydrateSchema, b as audioAnalyzerCapability, n as AUDIO_BACKEND_CHOICES, p as HF_BASE_URL, q as BaseAddon, s as DEFAULT_AUDIO_ANALYZER_CONFIG, y as audioAnalysisCapability } from "../dist-B-VVBzrL.mjs";
|
|
3
3
|
import { t as pickNodePlatformArch } from "../node-topology-platform-BkR_k6WT.mjs";
|
|
4
|
-
import { i as downloadFile } from "../model-download-service-
|
|
4
|
+
import { i as downloadFile } from "../model-download-service-D8B-4ktF-BB7oZL3y.mjs";
|
|
5
5
|
import * as fs from "node:fs";
|
|
6
6
|
import * as path$1 from "node:path";
|
|
7
7
|
//#region src/audio-analyzer/audio-pipeline.ts
|
|
@@ -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-
|
|
7
|
-
const require_event_loop_stall_monitor = require("../event-loop-stall-monitor-
|
|
6
|
+
const require_dist = require("../dist-UHbKZiSa.js");
|
|
7
|
+
const require_event_loop_stall_monitor = require("../event-loop-stall-monitor-C7_L6vHO.js");
|
|
8
8
|
const require_lazy_sharp = require("../lazy-sharp-CcYuXtsa.js");
|
|
9
9
|
const require_node_topology_platform = require("../node-topology-platform-CFZ7F4xW.js");
|
|
10
|
-
const
|
|
10
|
+
const require_model_download_service_D8B_4ktF = require("../model-download-service-D8B-4ktF-7-YxE9Wx.js");
|
|
11
11
|
let sharp = require("sharp");
|
|
12
12
|
sharp = require_chunk.__toESM(sharp);
|
|
13
13
|
let node_child_process = require("node:child_process");
|
|
@@ -5079,7 +5079,7 @@ var DetectionPipelineProvider = class DetectionPipelineProvider {
|
|
|
5079
5079
|
if (!step.enabled) continue;
|
|
5080
5080
|
const modelEntry = await this.resolveModelEntry(step.addonId, step.modelId);
|
|
5081
5081
|
if (!modelEntry) continue;
|
|
5082
|
-
if (
|
|
5082
|
+
if (require_model_download_service_D8B_4ktF.isModelDownloaded(this.modelsDir, modelEntry, format)) continue;
|
|
5083
5083
|
await this.downloadWithRetry(modelEntry, format, 3);
|
|
5084
5084
|
}
|
|
5085
5085
|
}
|
|
@@ -5456,7 +5456,7 @@ var DetectionPipelineProvider = class DetectionPipelineProvider {
|
|
|
5456
5456
|
const formats = {};
|
|
5457
5457
|
for (const [formatKey, entry] of Object.entries(m.formats)) {
|
|
5458
5458
|
if (!entry) continue;
|
|
5459
|
-
const downloaded =
|
|
5459
|
+
const downloaded = require_model_download_service_D8B_4ktF.isModelDownloaded(this.modelsDir, m, formatKey);
|
|
5460
5460
|
formats[formatKey] = {
|
|
5461
5461
|
url: entry.url,
|
|
5462
5462
|
sizeMB: entry.sizeMB,
|
|
@@ -5579,7 +5579,7 @@ var DetectionPipelineProvider = class DetectionPipelineProvider {
|
|
|
5579
5579
|
const { modelId, format, addonId } = input;
|
|
5580
5580
|
const modelEntry = await this.resolveModelEntry(addonId, modelId);
|
|
5581
5581
|
if (!modelEntry) throw new Error(`Model "${modelId}" not found in step "${addonId}" catalog`);
|
|
5582
|
-
if (!
|
|
5582
|
+
if (!require_model_download_service_D8B_4ktF.deleteModelFromDisk(this.modelsDir, modelEntry, format)) throw new Error(`Model "${modelId}" (${format}) is not downloaded — nothing to delete`);
|
|
5583
5583
|
this.log.info("Model deleted from disk", { meta: {
|
|
5584
5584
|
modelId,
|
|
5585
5585
|
format
|
|
@@ -6310,7 +6310,7 @@ var DetectionPipelineProvider = class DetectionPipelineProvider {
|
|
|
6310
6310
|
const work = (async () => {
|
|
6311
6311
|
for (const step of needed) {
|
|
6312
6312
|
const modelEntry = await this.resolveModelEntry(step.addonId, step.modelId);
|
|
6313
|
-
if (modelEntry && !
|
|
6313
|
+
if (modelEntry && !require_model_download_service_D8B_4ktF.isModelDownloaded(this.modelsDir, modelEntry, format)) {
|
|
6314
6314
|
if (modelEntry.formats[format] === void 0) throw new Error(`Model "${modelEntry.id}" has no ${format} format build (available: ${Object.keys(modelEntry.formats).join(", ") || "none"}) — not retrying a permanent format mismatch`);
|
|
6315
6315
|
this.log.info("Downloading model for step", { meta: {
|
|
6316
6316
|
modelId: step.modelId,
|
|
@@ -6336,7 +6336,7 @@ var DetectionPipelineProvider = class DetectionPipelineProvider {
|
|
|
6336
6336
|
/** Download a model with retry + exponential backoff */
|
|
6337
6337
|
async downloadWithRetry(entry, format, maxRetries, onProgress) {
|
|
6338
6338
|
for (let attempt = 1; attempt <= maxRetries; attempt++) try {
|
|
6339
|
-
await
|
|
6339
|
+
await require_model_download_service_D8B_4ktF.ensureModel(this.modelsDir, entry, format, onProgress);
|
|
6340
6340
|
this.log.info("Model downloaded successfully", { meta: { modelId: entry.id } });
|
|
6341
6341
|
return;
|
|
6342
6342
|
} catch (err) {
|
|
@@ -7132,7 +7132,7 @@ function buildSchemaSlots(formats, modelsDir, customByStep) {
|
|
|
7132
7132
|
id: m.id,
|
|
7133
7133
|
name: m.name,
|
|
7134
7134
|
formats: Object.fromEntries(Object.entries(m.formats).map(([f, entry]) => [f, {
|
|
7135
|
-
downloaded:
|
|
7135
|
+
downloaded: require_model_download_service_D8B_4ktF.isModelDownloaded(modelsDir, m, f),
|
|
7136
7136
|
sizeMB: entry.sizeMB
|
|
7137
7137
|
}])),
|
|
7138
7138
|
...m.group ? { group: m.group } : {},
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as __require } from "../chunk-DnnnRqeS.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { a as getDefaultModelForFormat, c as getStepDefinition, i as ALL_STEPS, l as resolveModelForFormat, n as startEventLoopStallMonitor, o as getDefaultModelForFormatFromDef, r as ALL_PIPELINE_STEPS, s as getStep } from "../event-loop-stall-monitor-
|
|
2
|
+
import { A as evaluateZoneRules, K as errMsg, L as pipelineExecutorCapability, O as detectionPipelineCapability, Q as hydrateSchema, V as runtimeDevices$1, W as supportedRuntimes$1, Z as createEvent, _ as YAMNET_TO_MACRO, _t as union, ct as array, gt as string, k as enumerateInferenceDevices, l as DEVICE_BACKEND_TO_FORMAT, mt as object, nt as nodePin, ot as sleep, q as BaseAddon, rt as parseJsonUnknown, t as APPLE_SA_TO_MACRO, vt as EventCategory, w as defaultDeviceFor$1 } from "../dist-B-VVBzrL.mjs";
|
|
3
|
+
import { a as getDefaultModelForFormat, c as getStepDefinition, i as ALL_STEPS, l as resolveModelForFormat, n as startEventLoopStallMonitor, o as getDefaultModelForFormatFromDef, r as ALL_PIPELINE_STEPS, s as getStep } from "../event-loop-stall-monitor-DfKdC7G4.mjs";
|
|
4
4
|
import { t as getSharp } from "../lazy-sharp-B-mb8uWx.mjs";
|
|
5
5
|
import { t as pickNodePlatformArch } from "../node-topology-platform-BkR_k6WT.mjs";
|
|
6
|
-
import { a as ensureModel, o as isModelDownloaded, r as deleteModelFromDisk } from "../model-download-service-
|
|
6
|
+
import { a as ensureModel, o as isModelDownloaded, r as deleteModelFromDisk } from "../model-download-service-D8B-4ktF-BB7oZL3y.mjs";
|
|
7
7
|
import sharp from "sharp";
|
|
8
8
|
import { spawn } from "node:child_process";
|
|
9
9
|
import * as os from "node:os";
|