@camstack/addon-pipeline 1.1.57 → 1.1.59
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-CK8Ur-OS.js → dist-B1u-QN05.js} +4822 -4650
- package/dist/{dist-CL531uVA.mjs → dist-DKeNH_5z.mjs} +4823 -4651
- package/dist/{model-download-service-C-IHWnXx-3Mmeob3l.mjs → model-download-service-Cp9f4dk6-0wh7OK3s.mjs} +2 -2
- package/dist/{model-download-service-C-IHWnXx-D326YNnt.js → model-download-service-Cp9f4dk6-Cp_GTKTw.js} +2 -2
- package/dist/motion-wasm/index.js +1 -1
- package/dist/motion-wasm/index.mjs +1 -1
- package/dist/pipeline-runner/index.js +147 -12
- package/dist/pipeline-runner/index.mjs +146 -11
- package/dist/recorder/index.js +993 -7
- package/dist/recorder/index.mjs +990 -5
- package/dist/session-decode/decode-worker-child.js +110 -2
- package/dist/session-decode/decode-worker-child.mjs +110 -2
- package/dist/{hub-hostname-cCknRYKj.mjs → sheet-geometry-BN80zpCa.js} +56 -1
- package/dist/{hub-hostname-DAJXlOgV.js → sheet-geometry-Bk3fR4s7.mjs} +39 -6
- package/dist/{step-definitions-DHAxruAQ.js → step-definitions-CPch37vh.js} +1 -1
- package/dist/{step-definitions-1d3_vQ6S.mjs → step-definitions-DUB27V8Y.mjs} +1 -1
- package/dist/stream-broker/_stub.js +2 -2
- package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-Cm_B-hQT.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-DdkfKDgw.mjs} +3 -3
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-D3h_W9uu.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-DSXctoaw.mjs +26 -0
- package/dist/stream-broker/{hostInit-DEaqJpGA.mjs → hostInit-BLn2Pv8Q.mjs} +3 -3
- package/dist/stream-broker/index.js +626 -152
- package/dist/stream-broker/index.mjs +626 -152
- package/dist/stream-broker/remoteEntry.js +1 -1
- package/embed-dist/assets/{MaskShapeCanvas-DI4BY7W2-CZUzu3MF.js → MaskShapeCanvas-DI4BY7W2-B0_nx15B.js} +1 -1
- package/embed-dist/assets/{MotionZonesSettings-NcxxQN8r-CmZbzLQi.js → MotionZonesSettings-NcxxQN8r-B8uM-VeO.js} +1 -1
- package/embed-dist/assets/{PrivacyMaskSettings-APgPLF7p-BOKDrH0N.js → PrivacyMaskSettings-APgPLF7p-DMOs4Hj9.js} +1 -1
- package/embed-dist/assets/index-W9-H5LTj.js +81 -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-Ba7Eyd47.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-TWCUWhCm.mjs +0 -26
- package/embed-dist/assets/index-DOsK8CZb.js +0 -81
|
@@ -3,9 +3,9 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../chunk-D6vf50IK.js");
|
|
6
|
-
const require_dist = require("../dist-
|
|
6
|
+
const require_dist = require("../dist-B1u-QN05.js");
|
|
7
7
|
const require_node_topology_platform = require("../node-topology-platform-CFZ7F4xW.js");
|
|
8
|
-
const
|
|
8
|
+
const require_model_download_service_Cp9f4dk6 = require("../model-download-service-Cp9f4dk6-Cp_GTKTw.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_Cp9f4dk6.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_Cp9f4dk6.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 { t as __require } from "../chunk-BdkLduGY.mjs";
|
|
2
|
-
import { C as mapAudioLabelToMacro,
|
|
2
|
+
import { C as mapAudioLabelToMacro, H as hydrateSchema, I as errMsg, L as BaseAddon, h as audioAnalyzerCapability, l as HF_BASE_URL, m as audioAnalysisCapability, n as AUDIO_BACKEND_CHOICES, o as DEFAULT_AUDIO_ANALYZER_CONFIG } from "../dist-DKeNH_5z.mjs";
|
|
3
3
|
import { t as pickNodePlatformArch } from "../node-topology-platform-BkR_k6WT.mjs";
|
|
4
|
-
import { r as downloadFile } from "../model-download-service-
|
|
4
|
+
import { r as downloadFile } from "../model-download-service-Cp9f4dk6-0wh7OK3s.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,10 +3,10 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../chunk-D6vf50IK.js");
|
|
6
|
-
const require_dist = require("../dist-
|
|
7
|
-
const require_step_definitions = require("../step-definitions-
|
|
6
|
+
const require_dist = require("../dist-B1u-QN05.js");
|
|
7
|
+
const require_step_definitions = require("../step-definitions-CPch37vh.js");
|
|
8
8
|
const require_node_topology_platform = require("../node-topology-platform-CFZ7F4xW.js");
|
|
9
|
-
const
|
|
9
|
+
const require_model_download_service_Cp9f4dk6 = require("../model-download-service-Cp9f4dk6-Cp_GTKTw.js");
|
|
10
10
|
let node_child_process = require("node:child_process");
|
|
11
11
|
let sharp = require("sharp");
|
|
12
12
|
sharp = require_chunk.__toESM(sharp);
|
|
@@ -4139,7 +4139,7 @@ var DetectionPipelineProvider = class DetectionPipelineProvider {
|
|
|
4139
4139
|
if (!step.enabled) continue;
|
|
4140
4140
|
const modelEntry = await this.resolveModelEntry(step.addonId, step.modelId);
|
|
4141
4141
|
if (!modelEntry) continue;
|
|
4142
|
-
if (
|
|
4142
|
+
if (require_model_download_service_Cp9f4dk6.isModelDownloaded(this.modelsDir, modelEntry, format)) continue;
|
|
4143
4143
|
await this.downloadWithRetry(modelEntry, format, 3);
|
|
4144
4144
|
}
|
|
4145
4145
|
}
|
|
@@ -4514,7 +4514,7 @@ var DetectionPipelineProvider = class DetectionPipelineProvider {
|
|
|
4514
4514
|
const formats = {};
|
|
4515
4515
|
for (const [formatKey, entry] of Object.entries(m.formats)) {
|
|
4516
4516
|
if (!entry) continue;
|
|
4517
|
-
const downloaded =
|
|
4517
|
+
const downloaded = require_model_download_service_Cp9f4dk6.isModelDownloaded(this.modelsDir, m, formatKey);
|
|
4518
4518
|
formats[formatKey] = {
|
|
4519
4519
|
url: entry.url,
|
|
4520
4520
|
sizeMB: entry.sizeMB,
|
|
@@ -4637,7 +4637,7 @@ var DetectionPipelineProvider = class DetectionPipelineProvider {
|
|
|
4637
4637
|
const { modelId, format, addonId } = input;
|
|
4638
4638
|
const modelEntry = await this.resolveModelEntry(addonId, modelId);
|
|
4639
4639
|
if (!modelEntry) throw new Error(`Model "${modelId}" not found in step "${addonId}" catalog`);
|
|
4640
|
-
if (!
|
|
4640
|
+
if (!require_model_download_service_Cp9f4dk6.deleteModelFromDisk(this.modelsDir, modelEntry, format)) throw new Error(`Model "${modelId}" (${format}) is not downloaded — nothing to delete`);
|
|
4641
4641
|
this.log.info("Model deleted from disk", { meta: {
|
|
4642
4642
|
modelId,
|
|
4643
4643
|
format
|
|
@@ -5193,7 +5193,7 @@ var DetectionPipelineProvider = class DetectionPipelineProvider {
|
|
|
5193
5193
|
const format = this.currentEngine?.format ?? "onnx";
|
|
5194
5194
|
for (const step of needed) {
|
|
5195
5195
|
const modelEntry = await this.resolveModelEntry(step.addonId, step.modelId);
|
|
5196
|
-
if (modelEntry && !
|
|
5196
|
+
if (modelEntry && !require_model_download_service_Cp9f4dk6.isModelDownloaded(this.modelsDir, modelEntry, format)) {
|
|
5197
5197
|
this.log.info("Downloading model for step", { meta: {
|
|
5198
5198
|
modelId: step.modelId,
|
|
5199
5199
|
format,
|
|
@@ -5218,7 +5218,7 @@ var DetectionPipelineProvider = class DetectionPipelineProvider {
|
|
|
5218
5218
|
/** Download a model with retry + exponential backoff */
|
|
5219
5219
|
async downloadWithRetry(entry, format, maxRetries, onProgress) {
|
|
5220
5220
|
for (let attempt = 1; attempt <= maxRetries; attempt++) try {
|
|
5221
|
-
await
|
|
5221
|
+
await require_model_download_service_Cp9f4dk6.ensureModel(this.modelsDir, entry, format, onProgress);
|
|
5222
5222
|
this.log.info("Model downloaded successfully", { meta: { modelId: entry.id } });
|
|
5223
5223
|
return;
|
|
5224
5224
|
} catch (err) {
|
|
@@ -6024,7 +6024,7 @@ function buildSchemaSlots(format, modelsDir, customByStep) {
|
|
|
6024
6024
|
id: m.id,
|
|
6025
6025
|
name: m.name,
|
|
6026
6026
|
formats: Object.fromEntries(Object.entries(m.formats).map(([f, entry]) => [f, {
|
|
6027
|
-
downloaded:
|
|
6027
|
+
downloaded: require_model_download_service_Cp9f4dk6.isModelDownloaded(modelsDir, m, f),
|
|
6028
6028
|
sizeMB: entry.sizeMB
|
|
6029
6029
|
}])),
|
|
6030
6030
|
...m.group ? { group: m.group } : {},
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __require } from "../chunk-BdkLduGY.mjs";
|
|
2
|
-
import { D as nodePin, H as
|
|
3
|
-
import { a as getStepDefinition, i as getStep, n as ALL_STEPS, o as resolveModelForFormat, r as getDefaultModelForFormat, t as ALL_PIPELINE_STEPS } from "../step-definitions-
|
|
2
|
+
import { D as nodePin, H as hydrateSchema, I as errMsg, K as parseJsonUnknown, L as BaseAddon, O as pipelineExecutorCapability, P as supportedRuntimes$1, V as createEvent, Y as sleep, b as detectionPipelineCapability, f as YAMNET_TO_MACRO, j as runtimeDevices$1, st as EventCategory, t as APPLE_SA_TO_MACRO, v as defaultDeviceFor$1, x as evaluateZoneRules } from "../dist-DKeNH_5z.mjs";
|
|
3
|
+
import { a as getStepDefinition, i as getStep, n as ALL_STEPS, o as resolveModelForFormat, r as getDefaultModelForFormat, t as ALL_PIPELINE_STEPS } from "../step-definitions-DUB27V8Y.mjs";
|
|
4
4
|
import { t as pickNodePlatformArch } from "../node-topology-platform-BkR_k6WT.mjs";
|
|
5
|
-
import { a as isModelDownloaded, i as ensureModel, n as deleteModelFromDisk } from "../model-download-service-
|
|
5
|
+
import { a as isModelDownloaded, i as ensureModel, n as deleteModelFromDisk } from "../model-download-service-Cp9f4dk6-0wh7OK3s.mjs";
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
7
7
|
import sharp from "sharp";
|
|
8
8
|
import * as fs from "node:fs";
|