@camstack/addon-pipeline 1.2.606 → 1.2.607
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 +3 -3
- package/dist/audio-analyzer/index.mjs +3 -3
- package/dist/{custom-model-catalog-C0iqe95s.js → custom-model-catalog-BpOVFx7P.js} +2 -2
- package/dist/{custom-model-catalog-DHRYJ8gg.mjs → custom-model-catalog-DLaJSsvd.mjs} +2 -2
- package/dist/detection-pipeline/index.js +8 -8
- package/dist/detection-pipeline/index.mjs +8 -8
- package/dist/{dist-PmCvE63K.js → dist-D-bDoVTG.js} +73 -10
- package/dist/{dist-DfLtNHaL.mjs → dist-WJO3x4tA.mjs} +68 -11
- package/dist/{model-catalogs-Bt-V_vgh.mjs → model-catalogs-BvHHaj9m.mjs} +1 -1
- package/dist/{model-catalogs-CVq3QMHq.js → model-catalogs-E_r2YtMC.js} +1 -1
- package/dist/motion-wasm/index.js +1 -1
- package/dist/motion-wasm/index.mjs +1 -1
- package/dist/{node-D_-1oz36.js → node-BJDseChf.js} +1 -1
- package/dist/{node-BYIY09HD.mjs → node-D5ayR7EC.mjs} +1 -1
- package/dist/pipeline-runner/index.js +3 -3
- package/dist/pipeline-runner/index.mjs +3 -3
- package/dist/{process-memory-DivoZCn9.mjs → process-memory-C1hvzW6x.mjs} +1 -1
- package/dist/{process-memory-CZdWXAgA.js → process-memory-DIqH04KJ.js} +1 -1
- package/dist/recorder/index.js +2 -2
- package/dist/recorder/index.mjs +2 -2
- package/dist/{segment-demux-js-COgPamTd.mjs → segment-demux-js-DTTNHdKF.mjs} +1 -1
- package/dist/{segment-demux-js-CyvSyRQL.js → segment-demux-js-WMKDNa0d.js} +1 -1
- package/dist/stream-broker/_stub.js +2 -2
- package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-CaAWIXhV.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-C4TOr0w_.mjs} +3 -3
- package/dist/stream-broker/{_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-C_vhSCZn.mjs → _virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CGrJJEuu.mjs} +1 -1
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-CixUA9FW.mjs +26 -0
- package/dist/stream-broker/demux-worker-child.js +1 -1
- package/dist/stream-broker/demux-worker-child.mjs +1 -1
- package/dist/stream-broker/{hostInit-yUSpE3wl.mjs → hostInit-BA7YCeDs.mjs} +3 -3
- package/dist/stream-broker/index.js +3 -3
- package/dist/stream-broker/index.mjs +3 -3
- package/dist/stream-broker/remoteEntry.js +1 -1
- package/package.json +1 -1
- package/python/edgetpu-install.sh +98 -0
- package/python/edgetpu_device.py +59 -0
- package/python/inference_pool.py +18 -5
- package/python/requirements-edgetpu.txt +9 -4
- package/python/test_edgetpu_device.py +74 -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-DxEZc0T0.mjs +0 -26
|
@@ -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-
|
|
7
|
-
const require_model_catalogs = require("../model-catalogs-
|
|
8
|
-
const require_process_memory = require("../process-memory-
|
|
6
|
+
const require_dist = require("../dist-D-bDoVTG.js");
|
|
7
|
+
const require_model_catalogs = require("../model-catalogs-E_r2YtMC.js");
|
|
8
|
+
const require_process_memory = require("../process-memory-DIqH04KJ.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");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as __require } from "../chunk-DnnnRqeS.mjs";
|
|
2
|
-
import { $ as audioAnalyzerCapability, F as PoolMemoryWatchdog,
|
|
3
|
-
import { n as AUDIO_CLASSIFIER_MODELS } from "../model-catalogs-
|
|
4
|
-
import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-
|
|
2
|
+
import { $ as audioAnalyzerCapability, F as PoolMemoryWatchdog, Kn as hydrateSchema, Mn as errMsg, Pn as BaseAddon, Q as audioAnalysisCapability, Qn as nodePin, Rt as mapAudioLabelToMacro, Wn as expandAudioChunkToF32le, h as DEFAULT_AUDIO_ANALYZER_CONFIG, hr as EventCategory, ln as resolvePoolMemoryPolicy, r as AUDIO_BACKEND_CHOICES, zn as audioChunkBytesPerSample } from "../dist-WJO3x4tA.mjs";
|
|
3
|
+
import { n as AUDIO_CLASSIFIER_MODELS } from "../model-catalogs-BvHHaj9m.mjs";
|
|
4
|
+
import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-C1hvzW6x.mjs";
|
|
5
5
|
import * as fs from "node:fs";
|
|
6
6
|
import * as path$1 from "node:path";
|
|
7
7
|
import { ensureModel } from "@camstack/system/addon-utils";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_dist = require("./dist-
|
|
2
|
-
const require_model_catalogs = require("./model-catalogs-
|
|
1
|
+
const require_dist = require("./dist-D-bDoVTG.js");
|
|
2
|
+
const require_model_catalogs = require("./model-catalogs-E_r2YtMC.js");
|
|
3
3
|
const require_worker_protocol = require("./worker-protocol-C-G8qmye.js");
|
|
4
4
|
let node_crypto = require("node:crypto");
|
|
5
5
|
//#region src/detection-pipeline/registry/effective-confidence.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as DEVICE_BACKEND_TO_FORMAT, et as audioKindId, f as COCO_80_LABELS,
|
|
2
|
-
import { a as FACE_DETECTION_MODELS, c as OBJECT_DETECTION_MODELS, d as PLATE_OCR_MODELS, f as SEGMENTATION_REFINER_MODELS, i as CLIP_EMBEDDING_MODELS, l as PACKAGE_DETECTION_MODELS, n as AUDIO_CLASSIFIER_MODELS, o as FACE_EMBEDDING_MODELS, p as VEHICLE_CLASSIFIER_MODELS, r as BIRD_CLASSIFIER_MODELS, s as INSTANCE_SEGMENTATION_MODELS, t as ANIMAL_CLASSIFIER_MODELS, u as PLATE_DETECTION_MODELS } from "./model-catalogs-
|
|
1
|
+
import { Mt as inferModelProvider, b as DEVICE_BACKEND_TO_FORMAT, et as audioKindId, f as COCO_80_LABELS, hn as stepModelRunsOnFormat, i as AUDIO_MACRO_LABELS, k as LABEL_SUPPLY_VOCABULARIES, p as COCO_TO_MACRO } from "./dist-WJO3x4tA.mjs";
|
|
2
|
+
import { a as FACE_DETECTION_MODELS, c as OBJECT_DETECTION_MODELS, d as PLATE_OCR_MODELS, f as SEGMENTATION_REFINER_MODELS, i as CLIP_EMBEDDING_MODELS, l as PACKAGE_DETECTION_MODELS, n as AUDIO_CLASSIFIER_MODELS, o as FACE_EMBEDDING_MODELS, p as VEHICLE_CLASSIFIER_MODELS, r as BIRD_CLASSIFIER_MODELS, s as INSTANCE_SEGMENTATION_MODELS, t as ANIMAL_CLASSIFIER_MODELS, u as PLATE_DETECTION_MODELS } from "./model-catalogs-BvHHaj9m.mjs";
|
|
3
3
|
import { t as isWorkerReply } from "./worker-protocol-D_NzPcnh.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
//#region src/detection-pipeline/registry/effective-confidence.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_node = require("../node-
|
|
8
|
-
const require_custom_model_catalog = require("../custom-model-catalog-
|
|
6
|
+
const require_dist = require("../dist-D-bDoVTG.js");
|
|
7
|
+
const require_node = require("../node-BJDseChf.js");
|
|
8
|
+
const require_custom_model_catalog = require("../custom-model-catalog-BpOVFx7P.js");
|
|
9
9
|
const require_lazy_sharp = require("../lazy-sharp-BuwKlQLR.js");
|
|
10
|
-
const require_process_memory = require("../process-memory-
|
|
10
|
+
const require_process_memory = require("../process-memory-DIqH04KJ.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");
|
|
@@ -58,7 +58,7 @@ function npuInfoFrom(hw) {
|
|
|
58
58
|
return { type };
|
|
59
59
|
}
|
|
60
60
|
function coralInfoFrom(hw) {
|
|
61
|
-
return hw.coral?.type === "coral-edgetpu" ?
|
|
61
|
+
return hw.coral?.type === "coral-edgetpu" ? hw.coral : null;
|
|
62
62
|
}
|
|
63
63
|
function envToHardwareInfo(env) {
|
|
64
64
|
return {
|
|
@@ -1368,7 +1368,7 @@ var PoolWorker = class {
|
|
|
1368
1368
|
modelLoadTimeoutMs: POOL_MODEL_LOAD_BOUNDS[this.opts.poolRuntime].softMs,
|
|
1369
1369
|
models: initialModels.map((m) => serializeModelConfig(m))
|
|
1370
1370
|
};
|
|
1371
|
-
if (this.opts.device) config["device"] = this.opts.device;
|
|
1371
|
+
if (this.opts.device) config["device"] = this.opts.poolRuntime === "edgetpu" ? require_dist.edgetpuDelegateDevice(this.opts.device) : this.opts.device;
|
|
1372
1372
|
if (this.opts.tuning) {
|
|
1373
1373
|
config["batch_mode"] = this.opts.tuning.batchMode;
|
|
1374
1374
|
config["window_ms"] = this.opts.tuning.windowMs;
|
|
@@ -8232,7 +8232,7 @@ function toProbedHardware(hw) {
|
|
|
8232
8232
|
return {
|
|
8233
8233
|
npu: hw.npu ? { type: hw.npu.type } : null,
|
|
8234
8234
|
gpu: hw.gpu ? { type: hw.gpu.type } : null,
|
|
8235
|
-
coral: hw.coral
|
|
8235
|
+
coral: hw.coral ?? null
|
|
8236
8236
|
};
|
|
8237
8237
|
}
|
|
8238
8238
|
var ONNX_FLOOR = {
|
|
@@ -11984,7 +11984,7 @@ var DetectionPipelineAddon = class extends require_dist.BaseAddon {
|
|
|
11984
11984
|
return {
|
|
11985
11985
|
npu: hw.npu ? { type: hw.npu.type } : null,
|
|
11986
11986
|
gpu: hw.gpu ? { type: hw.gpu.type } : null,
|
|
11987
|
-
coral: hw.coral
|
|
11987
|
+
coral: hw.coral ?? null,
|
|
11988
11988
|
platform: hw.platform,
|
|
11989
11989
|
arch: hw.arch
|
|
11990
11990
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as __require } from "../chunk-DnnnRqeS.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { c as readProcessCost } from "../node-
|
|
4
|
-
import { C as resolveModelDefaultConfidence, S as landmarkPrecisionVerdict, _ as ALL_STEPS, b as getStepDefinition, f as localFrameRegistry, g as ALL_PIPELINE_STEPS, l as resolveDefaultDetectionModel, n as mergeCustomModels, o as deviceKeyOf, r as buildSubtreeCanRun, s as resolveDeviceEngine, t as CustomModelCatalog, u as macroGateVerdict, v as getDefaultModelForFormat, x as resolveModelForFormat, y as getStep } from "../custom-model-catalog-
|
|
2
|
+
import { Bn as createEvent, Ct as evaluateZoneRules, F as PoolMemoryWatchdog, Gn as hfModelUrl, It as loadContributionCapability, Jt as pickClusterStepSettings, Kn as hydrateSchema, Kt as overlayClusterStepSettings, Mn as errMsg$1, O as LABEL_SUPPLY_MACRO, Pn as BaseAddon, Pt as linkedLabelStepId, Qn as nodePin, St as enumerateInferenceDevices, Wt as modelBindingKey, X as applyModelBoundSettings, Zt as pipelineExecutorCapability, _t as detectionPipelineCapability, bn as supportedRuntimes$1, ct as containingParentIndex, d as CLUSTER_MODEL_SCOPED_STEPS, fn as rootSuppliesOf, ft as defaultDeviceFor$1, g as DEFAULT_CLUSTER_STEP_SETTINGS, hn as stepModelRunsOnFormat, hr as EventCategory, in as resolveClusterStepModelId, ir as array, ln as resolvePoolMemoryPolicy, mr as union, n as APPLE_SA_TO_MACRO, pn as runtimeDevices$1, pr as string, q as YAMNET_TO_MACRO, st as collectModelBoundKeys, tr as sleep, ur as object, yt as edgetpuDelegateDevice } from "../dist-WJO3x4tA.mjs";
|
|
3
|
+
import { c as readProcessCost } from "../node-D5ayR7EC.mjs";
|
|
4
|
+
import { C as resolveModelDefaultConfidence, S as landmarkPrecisionVerdict, _ as ALL_STEPS, b as getStepDefinition, f as localFrameRegistry, g as ALL_PIPELINE_STEPS, l as resolveDefaultDetectionModel, n as mergeCustomModels, o as deviceKeyOf, r as buildSubtreeCanRun, s as resolveDeviceEngine, t as CustomModelCatalog, u as macroGateVerdict, v as getDefaultModelForFormat, x as resolveModelForFormat, y as getStep } from "../custom-model-catalog-DLaJSsvd.mjs";
|
|
5
5
|
import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
|
|
6
|
-
import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-
|
|
6
|
+
import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-C1hvzW6x.mjs";
|
|
7
7
|
import * as os$1 from "node:os";
|
|
8
8
|
import * as fs from "node:fs";
|
|
9
9
|
import * as path$1 from "node:path";
|
|
@@ -51,7 +51,7 @@ function npuInfoFrom(hw) {
|
|
|
51
51
|
return { type };
|
|
52
52
|
}
|
|
53
53
|
function coralInfoFrom(hw) {
|
|
54
|
-
return hw.coral?.type === "coral-edgetpu" ?
|
|
54
|
+
return hw.coral?.type === "coral-edgetpu" ? hw.coral : null;
|
|
55
55
|
}
|
|
56
56
|
function envToHardwareInfo(env) {
|
|
57
57
|
return {
|
|
@@ -1361,7 +1361,7 @@ var PoolWorker = class {
|
|
|
1361
1361
|
modelLoadTimeoutMs: POOL_MODEL_LOAD_BOUNDS[this.opts.poolRuntime].softMs,
|
|
1362
1362
|
models: initialModels.map((m) => serializeModelConfig(m))
|
|
1363
1363
|
};
|
|
1364
|
-
if (this.opts.device) config["device"] = this.opts.device;
|
|
1364
|
+
if (this.opts.device) config["device"] = this.opts.poolRuntime === "edgetpu" ? edgetpuDelegateDevice(this.opts.device) : this.opts.device;
|
|
1365
1365
|
if (this.opts.tuning) {
|
|
1366
1366
|
config["batch_mode"] = this.opts.tuning.batchMode;
|
|
1367
1367
|
config["window_ms"] = this.opts.tuning.windowMs;
|
|
@@ -8225,7 +8225,7 @@ function toProbedHardware(hw) {
|
|
|
8225
8225
|
return {
|
|
8226
8226
|
npu: hw.npu ? { type: hw.npu.type } : null,
|
|
8227
8227
|
gpu: hw.gpu ? { type: hw.gpu.type } : null,
|
|
8228
|
-
coral: hw.coral
|
|
8228
|
+
coral: hw.coral ?? null
|
|
8229
8229
|
};
|
|
8230
8230
|
}
|
|
8231
8231
|
var ONNX_FLOOR = {
|
|
@@ -11977,7 +11977,7 @@ var DetectionPipelineAddon = class extends BaseAddon {
|
|
|
11977
11977
|
return {
|
|
11978
11978
|
npu: hw.npu ? { type: hw.npu.type } : null,
|
|
11979
11979
|
gpu: hw.gpu ? { type: hw.gpu.type } : null,
|
|
11980
|
-
coral: hw.coral
|
|
11980
|
+
coral: hw.coral ?? null,
|
|
11981
11981
|
platform: hw.platform,
|
|
11982
11982
|
arch: hw.arch
|
|
11983
11983
|
};
|
|
@@ -62579,9 +62579,24 @@ var NpuInfoSchema = object({
|
|
|
62579
62579
|
name: string().optional(),
|
|
62580
62580
|
generation: _enum(["xdna1", "xdna2"]).optional()
|
|
62581
62581
|
});
|
|
62582
|
+
var CoralBusSchema = _enum(["usb", "pci"]);
|
|
62582
62583
|
var CoralInfoSchema = object({
|
|
62583
62584
|
type: literal("coral-edgetpu"),
|
|
62584
|
-
bus
|
|
62585
|
+
/** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
|
|
62586
|
+
bus: string().optional(),
|
|
62587
|
+
/** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
|
|
62588
|
+
count: number().int().nonnegative().optional(),
|
|
62589
|
+
/** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
|
|
62590
|
+
units: array(object({
|
|
62591
|
+
bus: CoralBusSchema,
|
|
62592
|
+
count: number().int().nonnegative()
|
|
62593
|
+
})).readonly().optional(),
|
|
62594
|
+
/** Present-but-unusable units, each with its typed reason (never "absent"). */
|
|
62595
|
+
unavailable: array(object({
|
|
62596
|
+
bus: CoralBusSchema,
|
|
62597
|
+
count: number().int().nonnegative(),
|
|
62598
|
+
reason: _enum(["driver-missing", "device-not-accessible"])
|
|
62599
|
+
})).readonly().optional()
|
|
62585
62600
|
});
|
|
62586
62601
|
var HardwareInfoSchema = object({
|
|
62587
62602
|
platform: HardwarePlatformSchema,
|
|
@@ -80647,6 +80662,41 @@ function pointInPolygon(point, polygon) {
|
|
|
80647
80662
|
}
|
|
80648
80663
|
return inside;
|
|
80649
80664
|
}
|
|
80665
|
+
/** Bus order of the enumeration: USB first (the historical key), then PCIe. */
|
|
80666
|
+
var BUS_ORDER = ["usb", "pci"];
|
|
80667
|
+
function unitDevice(bus, index) {
|
|
80668
|
+
return index === 0 ? bus : `${bus}:${index}`;
|
|
80669
|
+
}
|
|
80670
|
+
function countOn(coral, bus) {
|
|
80671
|
+
if (coral.units !== void 0) return coral.units.filter((u) => u.bus === bus).reduce((n, u) => n + Math.max(0, u.count), 0);
|
|
80672
|
+
return bus === (coral.bus === "pci" ? "pci" : "usb") ? Math.max(1, coral.count ?? 1) : 0;
|
|
80673
|
+
}
|
|
80674
|
+
/** Every usable Coral unit on a node, USB first then PCIe, in ordinal order. */
|
|
80675
|
+
function coralUsableUnits(coral) {
|
|
80676
|
+
if (coral == null) return [];
|
|
80677
|
+
const out = [];
|
|
80678
|
+
for (const bus of BUS_ORDER) {
|
|
80679
|
+
const count = countOn(coral, bus);
|
|
80680
|
+
for (let index = 0; index < count; index++) out.push({
|
|
80681
|
+
bus,
|
|
80682
|
+
index,
|
|
80683
|
+
device: unitDevice(bus, index)
|
|
80684
|
+
});
|
|
80685
|
+
}
|
|
80686
|
+
return out;
|
|
80687
|
+
}
|
|
80688
|
+
var KEY_DEVICE = /^(usb|pci)(?::(\d+))?$/;
|
|
80689
|
+
/**
|
|
80690
|
+
* Map an edgetpu key suffix (`usb`, `usb:1`, `pci`, `pci:1`) to the explicit
|
|
80691
|
+
* libedgetpu device string (`usb:0`, `usb:1`, `pci:0`, `pci:1`). Throws on any
|
|
80692
|
+
* other string — a pool must never open "whichever Edge TPU comes first".
|
|
80693
|
+
*/
|
|
80694
|
+
function edgetpuDelegateDevice(device) {
|
|
80695
|
+
const match = KEY_DEVICE.exec(device.trim());
|
|
80696
|
+
if (match === null) throw new Error(`edgetpu device "${device}" is not usb[:N] or pci[:N]`);
|
|
80697
|
+
const [, bus, ordinal] = match;
|
|
80698
|
+
return `${bus}:${ordinal ?? "0"}`;
|
|
80699
|
+
}
|
|
80650
80700
|
var AUTO = {
|
|
80651
80701
|
value: "auto",
|
|
80652
80702
|
label: "Auto"
|
|
@@ -80659,6 +80709,14 @@ var USB = {
|
|
|
80659
80709
|
value: "usb",
|
|
80660
80710
|
label: "Coral USB"
|
|
80661
80711
|
};
|
|
80712
|
+
function coralUnitOption(unit) {
|
|
80713
|
+
const bus = unit.bus === "pci" ? "PCIe" : "USB";
|
|
80714
|
+
const label = unit.index === 0 ? `Coral ${bus}` : `Coral ${bus} ${unit.index + 1}`;
|
|
80715
|
+
return {
|
|
80716
|
+
value: unit.device,
|
|
80717
|
+
label
|
|
80718
|
+
};
|
|
80719
|
+
}
|
|
80662
80720
|
var RUNTIMES = [
|
|
80663
80721
|
{
|
|
80664
80722
|
id: "onnx",
|
|
@@ -80725,8 +80783,11 @@ var RUNTIMES = [
|
|
|
80725
80783
|
},
|
|
80726
80784
|
{
|
|
80727
80785
|
id: "edgetpu",
|
|
80728
|
-
supports: (hw) => hw?.coral
|
|
80729
|
-
devices: () =>
|
|
80786
|
+
supports: (hw) => coralUsableUnits(hw?.coral).length > 0,
|
|
80787
|
+
devices: (hw) => {
|
|
80788
|
+
const units = coralUsableUnits(hw?.coral);
|
|
80789
|
+
return units.length > 0 ? units.map(coralUnitOption) : [USB];
|
|
80790
|
+
},
|
|
80730
80791
|
defaultDevice: "usb"
|
|
80731
80792
|
}
|
|
80732
80793
|
];
|
|
@@ -80762,7 +80823,7 @@ function defaultDeviceFor(id) {
|
|
|
80762
80823
|
* - coreml: score 95, darwin+arm64
|
|
80763
80824
|
* - cuda: score 85, nvidia gpu
|
|
80764
80825
|
* - openvino: score 90 if intel-npu present, else 80 if intel gpu
|
|
80765
|
-
* - edgetpu: score 70,
|
|
80826
|
+
* - edgetpu: score 70, a usable Coral unit (USB or PCIe)
|
|
80766
80827
|
* - cpu: score 50 (universal floor, always included)
|
|
80767
80828
|
*
|
|
80768
80829
|
* All hardware-matched entries are `available: true`.
|
|
@@ -80816,7 +80877,7 @@ function scoreRuntimes(hw) {
|
|
|
80816
80877
|
available: true
|
|
80817
80878
|
});
|
|
80818
80879
|
}
|
|
80819
|
-
if (hw.coral
|
|
80880
|
+
if (coralUsableUnits(hw.coral).length > 0) scores.push({
|
|
80820
80881
|
runtime: "python",
|
|
80821
80882
|
backend: "edgetpu",
|
|
80822
80883
|
format: "tflite",
|
|
@@ -80875,11 +80936,7 @@ function enumerateInferenceDevices(hw) {
|
|
|
80875
80936
|
continue;
|
|
80876
80937
|
}
|
|
80877
80938
|
if (s.backend === "edgetpu") {
|
|
80878
|
-
const
|
|
80879
|
-
for (let i = 0; i < coralCount; i++) {
|
|
80880
|
-
const dev = i === 0 ? "usb" : `usb:${i}`;
|
|
80881
|
-
out.push(device("edgetpu", dev, s.format, s.score));
|
|
80882
|
-
}
|
|
80939
|
+
for (const unit of coralUsableUnits(hw.coral)) out.push(device("edgetpu", unit.device, s.format, s.score));
|
|
80883
80940
|
continue;
|
|
80884
80941
|
}
|
|
80885
80942
|
if (s.backend === "onnx" && s.reason.startsWith("ONNX WebGPU")) {
|
|
@@ -81526,6 +81583,12 @@ Object.defineProperty(exports, "discriminatedUnion", {
|
|
|
81526
81583
|
return discriminatedUnion;
|
|
81527
81584
|
}
|
|
81528
81585
|
});
|
|
81586
|
+
Object.defineProperty(exports, "edgetpuDelegateDevice", {
|
|
81587
|
+
enumerable: true,
|
|
81588
|
+
get: function() {
|
|
81589
|
+
return edgetpuDelegateDevice;
|
|
81590
|
+
}
|
|
81591
|
+
});
|
|
81529
81592
|
Object.defineProperty(exports, "egressTranscodeSharingKey", {
|
|
81530
81593
|
enumerable: true,
|
|
81531
81594
|
get: function() {
|
|
@@ -62579,9 +62579,24 @@ var NpuInfoSchema = object({
|
|
|
62579
62579
|
name: string().optional(),
|
|
62580
62580
|
generation: _enum(["xdna1", "xdna2"]).optional()
|
|
62581
62581
|
});
|
|
62582
|
+
var CoralBusSchema = _enum(["usb", "pci"]);
|
|
62582
62583
|
var CoralInfoSchema = object({
|
|
62583
62584
|
type: literal("coral-edgetpu"),
|
|
62584
|
-
bus
|
|
62585
|
+
/** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
|
|
62586
|
+
bus: string().optional(),
|
|
62587
|
+
/** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
|
|
62588
|
+
count: number().int().nonnegative().optional(),
|
|
62589
|
+
/** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
|
|
62590
|
+
units: array(object({
|
|
62591
|
+
bus: CoralBusSchema,
|
|
62592
|
+
count: number().int().nonnegative()
|
|
62593
|
+
})).readonly().optional(),
|
|
62594
|
+
/** Present-but-unusable units, each with its typed reason (never "absent"). */
|
|
62595
|
+
unavailable: array(object({
|
|
62596
|
+
bus: CoralBusSchema,
|
|
62597
|
+
count: number().int().nonnegative(),
|
|
62598
|
+
reason: _enum(["driver-missing", "device-not-accessible"])
|
|
62599
|
+
})).readonly().optional()
|
|
62585
62600
|
});
|
|
62586
62601
|
var HardwareInfoSchema = object({
|
|
62587
62602
|
platform: HardwarePlatformSchema,
|
|
@@ -80647,6 +80662,41 @@ function pointInPolygon(point, polygon) {
|
|
|
80647
80662
|
}
|
|
80648
80663
|
return inside;
|
|
80649
80664
|
}
|
|
80665
|
+
/** Bus order of the enumeration: USB first (the historical key), then PCIe. */
|
|
80666
|
+
var BUS_ORDER = ["usb", "pci"];
|
|
80667
|
+
function unitDevice(bus, index) {
|
|
80668
|
+
return index === 0 ? bus : `${bus}:${index}`;
|
|
80669
|
+
}
|
|
80670
|
+
function countOn(coral, bus) {
|
|
80671
|
+
if (coral.units !== void 0) return coral.units.filter((u) => u.bus === bus).reduce((n, u) => n + Math.max(0, u.count), 0);
|
|
80672
|
+
return bus === (coral.bus === "pci" ? "pci" : "usb") ? Math.max(1, coral.count ?? 1) : 0;
|
|
80673
|
+
}
|
|
80674
|
+
/** Every usable Coral unit on a node, USB first then PCIe, in ordinal order. */
|
|
80675
|
+
function coralUsableUnits(coral) {
|
|
80676
|
+
if (coral == null) return [];
|
|
80677
|
+
const out = [];
|
|
80678
|
+
for (const bus of BUS_ORDER) {
|
|
80679
|
+
const count = countOn(coral, bus);
|
|
80680
|
+
for (let index = 0; index < count; index++) out.push({
|
|
80681
|
+
bus,
|
|
80682
|
+
index,
|
|
80683
|
+
device: unitDevice(bus, index)
|
|
80684
|
+
});
|
|
80685
|
+
}
|
|
80686
|
+
return out;
|
|
80687
|
+
}
|
|
80688
|
+
var KEY_DEVICE = /^(usb|pci)(?::(\d+))?$/;
|
|
80689
|
+
/**
|
|
80690
|
+
* Map an edgetpu key suffix (`usb`, `usb:1`, `pci`, `pci:1`) to the explicit
|
|
80691
|
+
* libedgetpu device string (`usb:0`, `usb:1`, `pci:0`, `pci:1`). Throws on any
|
|
80692
|
+
* other string — a pool must never open "whichever Edge TPU comes first".
|
|
80693
|
+
*/
|
|
80694
|
+
function edgetpuDelegateDevice(device) {
|
|
80695
|
+
const match = KEY_DEVICE.exec(device.trim());
|
|
80696
|
+
if (match === null) throw new Error(`edgetpu device "${device}" is not usb[:N] or pci[:N]`);
|
|
80697
|
+
const [, bus, ordinal] = match;
|
|
80698
|
+
return `${bus}:${ordinal ?? "0"}`;
|
|
80699
|
+
}
|
|
80650
80700
|
var AUTO = {
|
|
80651
80701
|
value: "auto",
|
|
80652
80702
|
label: "Auto"
|
|
@@ -80659,6 +80709,14 @@ var USB = {
|
|
|
80659
80709
|
value: "usb",
|
|
80660
80710
|
label: "Coral USB"
|
|
80661
80711
|
};
|
|
80712
|
+
function coralUnitOption(unit) {
|
|
80713
|
+
const bus = unit.bus === "pci" ? "PCIe" : "USB";
|
|
80714
|
+
const label = unit.index === 0 ? `Coral ${bus}` : `Coral ${bus} ${unit.index + 1}`;
|
|
80715
|
+
return {
|
|
80716
|
+
value: unit.device,
|
|
80717
|
+
label
|
|
80718
|
+
};
|
|
80719
|
+
}
|
|
80662
80720
|
var RUNTIMES = [
|
|
80663
80721
|
{
|
|
80664
80722
|
id: "onnx",
|
|
@@ -80725,8 +80783,11 @@ var RUNTIMES = [
|
|
|
80725
80783
|
},
|
|
80726
80784
|
{
|
|
80727
80785
|
id: "edgetpu",
|
|
80728
|
-
supports: (hw) => hw?.coral
|
|
80729
|
-
devices: () =>
|
|
80786
|
+
supports: (hw) => coralUsableUnits(hw?.coral).length > 0,
|
|
80787
|
+
devices: (hw) => {
|
|
80788
|
+
const units = coralUsableUnits(hw?.coral);
|
|
80789
|
+
return units.length > 0 ? units.map(coralUnitOption) : [USB];
|
|
80790
|
+
},
|
|
80730
80791
|
defaultDevice: "usb"
|
|
80731
80792
|
}
|
|
80732
80793
|
];
|
|
@@ -80762,7 +80823,7 @@ function defaultDeviceFor(id) {
|
|
|
80762
80823
|
* - coreml: score 95, darwin+arm64
|
|
80763
80824
|
* - cuda: score 85, nvidia gpu
|
|
80764
80825
|
* - openvino: score 90 if intel-npu present, else 80 if intel gpu
|
|
80765
|
-
* - edgetpu: score 70,
|
|
80826
|
+
* - edgetpu: score 70, a usable Coral unit (USB or PCIe)
|
|
80766
80827
|
* - cpu: score 50 (universal floor, always included)
|
|
80767
80828
|
*
|
|
80768
80829
|
* All hardware-matched entries are `available: true`.
|
|
@@ -80816,7 +80877,7 @@ function scoreRuntimes(hw) {
|
|
|
80816
80877
|
available: true
|
|
80817
80878
|
});
|
|
80818
80879
|
}
|
|
80819
|
-
if (hw.coral
|
|
80880
|
+
if (coralUsableUnits(hw.coral).length > 0) scores.push({
|
|
80820
80881
|
runtime: "python",
|
|
80821
80882
|
backend: "edgetpu",
|
|
80822
80883
|
format: "tflite",
|
|
@@ -80875,11 +80936,7 @@ function enumerateInferenceDevices(hw) {
|
|
|
80875
80936
|
continue;
|
|
80876
80937
|
}
|
|
80877
80938
|
if (s.backend === "edgetpu") {
|
|
80878
|
-
const
|
|
80879
|
-
for (let i = 0; i < coralCount; i++) {
|
|
80880
|
-
const dev = i === 0 ? "usb" : `usb:${i}`;
|
|
80881
|
-
out.push(device("edgetpu", dev, s.format, s.score));
|
|
80882
|
-
}
|
|
80939
|
+
for (const unit of coralUsableUnits(hw.coral)) out.push(device("edgetpu", unit.device, s.format, s.score));
|
|
80883
80940
|
continue;
|
|
80884
80941
|
}
|
|
80885
80942
|
if (s.backend === "onnx" && s.reason.startsWith("ONNX WebGPU")) {
|
|
@@ -80962,4 +81019,4 @@ function armRemovalReconcile(opts) {
|
|
|
80962
81019
|
return () => clearInterval(timer);
|
|
80963
81020
|
}
|
|
80964
81021
|
//#endregion
|
|
80965
|
-
export { audioAnalyzerCapability as $,
|
|
81022
|
+
export { audioAnalyzerCapability as $, parseProfileBrokerId as $n, rankStreams as $t, NativeLeaseAdmissionSchema as A, DeviceFeature as An, gifDeriveSpeed as At, RECORDING_SOURCE_CAMSTACK_ADDON as B, createEvent as Bn, mayWriteToLocation as Bt, EVENT_PAD_MS as C, AUDIO_PRESETS as Cn, evaluateZoneRules as Ct, G711_SCALE_CORRECTION_DB as D, evaluateSensorEdge as Dn, failureContributionCapability as Dt, FailureCounters as E, buildFfmpegArgs as En, exportSubjectOf as Et, PoolMemoryWatchdog as F, CAM_PROFILE_ORDER as Fn, linkedStepOf as Ft, VIDEOCLIPS_MAX_OFFER_BYTES as G, hfModelUrl as Gn, motionDetectionCapability as Gt, RecordingConfigSchema as H, defineCustomActions as Hn, migrateLegacyDeviceSignalConfig as Ht, RATE_CONTROL_RELAXED as I, CamProfileSchema as In, loadContributionCapability as It, addonWidgetsSourceCapability as J, isSecretMarker as Jn, pickClusterStepSettings as Jt, VISIT_MERGE_GAP_MS as K, hydrateSchema as Kn, overlayClusterStepSettings as Kt, RATE_CONTROL_TIGHT as L, HF_REPO as Ln, logChannelsCapability as Lt, NodeBenchRunnerInputSchema as M, errMsg as Mn, inferModelProvider as Mt, OpsLogEntrySchema as N, BOOT_RECOVERY_BACKOFF_MS as Nn, isFirstLevelMacroClass as Nt, LABEL_SUPPLY_MACRO as O, invocationFromEncodeProfile as On, ffmpegRate as Ot, PIPELINE_RAMP as P, BaseAddon as Pn, linkedLabelStepId as Pt, audioAnalysisCapability as Q, nodePin as Qn, pipelineRunnerCapability as Qt, RECORDING_EXPORT_MAX_READ_BYTES as R, MODEL_FORMATS as Rn, mapAudioLabelToMacro as Rt, EVENT_OWNER_TYPES as S, webrtcSessionCapability as Sn, enumerateInferenceDevices as St, ExportRecordSchema as T, Fmp4BoxSplitter as Tn, evictionPolicyOfLocation as Tt, RecordingSignalStatusSchema as U, defineRecordKinds as Un, modeMayWrite as Ut, ROOT_SUPPLIABLE_STEP_IDS as V, customAction as Vn, memoizePinnedFfmpeg as Vt, RingBuffer as W, expandAudioChunkToF32le as Wn, modelBindingKey as Wt, applyModelBoundSettings as X, makeSourceBrokerId as Xn, pickNativeLeaseOverride as Xt, allowedSuppliedEffect as Y, makeProfileBrokerId as Yn, pickDetailCropConvention as Yt, armRemovalReconcile as Z, maskUrlCredentials as Zn, pipelineExecutorCapability as Zt, DEFAULT_DETAIL_CROP_CONVENTION as _, storageOccupancyCapability as _n, detectionPipelineCapability as _t, BackgroundRunRegistry as a, resolveCreateExportSubject as an, boolean as ar, clipExportFailure as at, DEVICE_BACKEND_TO_FORMAT as b, supportedRuntimes as bn, egressTranscodeSharingKey as bt, CLIP_STILL_REASON_CODE_HEADER as c, resolveModelBoundSetting as cn, literal as cr, containingParentIndex as ct, CLUSTER_MODEL_SCOPED_STEPS as d, resolveRootSupply as dn, preprocess as dr, declareLogChannel as dt, recordingArchiveCapability as en, selectAssignedProfileSlots as er, audioKindId as et, COCO_80_LABELS as f, rootSuppliesOf as fn, record as fr, defaultDeviceFor as ft, DEFAULT_CLUSTER_STEP_SETTINGS as g, storageEvictableCapability as gn, deriveRootFaceRefineRect as gt, DEFAULT_AUDIO_ANALYZER_CONFIG as h, stepModelRunsOnFormat as hn, EventCategory as hr, deriveRecordingMode as ht, AUDIO_MACRO_LABELS as i, resolveClusterStepModelId as in, array as ir, cameraStreamsCapability as it, NativeLeaseSettingsSchema as j, DeviceType as jn, gifFromMp4Args as jt, LABEL_SUPPLY_VOCABULARIES as k, isSoftwareDecode as kn, gbToBytes as kt, CLIP_STILL_REASON_HEADER as l, resolvePoolMemoryPolicy as ln, number as lr, createHwAccelCache as lt, CROP_SUPPLY_SOURCES as m, startMoverUnderClearance as mn, union as mr, deriveDetailCropRect as mt, APPLE_SA_TO_MACRO as n, recordingExportCapability as nn, userError as nr, buildBenchStepTree as nt, BatteryStatusSchema as o, resolveEgressDecodeHwAccel as on, discriminatedUnion as or, clipExportFailureOf as ot, COCO_TO_MACRO as p, runtimeDevices as pn, string as pr, deriveBatteryPresence as pt, YAMNET_TO_MACRO as q, isEvent as qn, parseProcStatus as qt, AUDIO_BACKEND_CHOICES as r, recordingSignalCapability as rn, _enum as rr, cameraOwnsMotionViaSensor as rt, CLIP_BROKER_PACED_RATES as s, resolveLocationMode as sn, lazy as sr, collectModelBoundKeys as st, APPEARANCE_BLOCKS as t, recordingCapability as tn, sleep as tr, batteryCapability as tt, CLIP_STREAM_TRANSPORT_HEADER as u, resolveRecordingProfiles as un, object as ur, createLogChannelsProvider as ut, DEFAULT_EVENTS_BAND_BUFFER_SEC as v, streamBrokerCapability as vn, deviceRemovalHookCapability as vt, EncodeProfileSchema as w, DEFAULT_FIRST_SIGHTING_FRESHNESS_MS as wn, evictionPolicyForMode as wt, DEVICE_RAMP as x, videoclipsCapability as xn, egressTransportFromRequest as xt, DEFAULT_NATIVE_LEASE_SETTINGS as y, stripRetiredBandPreBufferSec as yn, edgetpuDelegateDevice as yt, RECORDING_SOURCE_CAMSTACK as z, audioChunkBytesPerSample as zn, mayReadLocation as zt };
|
|
@@ -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-
|
|
5
|
+
const require_dist = require("../dist-D-bDoVTG.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 {
|
|
1
|
+
import { Ct as evaluateZoneRules, Gt as motionDetectionCapability, Kn as hydrateSchema, Pn as BaseAddon, jn as DeviceType } from "../dist-WJO3x4tA.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 {
|
|
1
|
+
import { En as buildFfmpegArgs, Mn as errMsg, Tn as Fmp4BoxSplitter, kn as isSoftwareDecode } from "./dist-WJO3x4tA.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { realpathSync } from "node:fs";
|
|
4
4
|
import path from "node:path";
|
|
@@ -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-
|
|
7
|
-
const require_node = require("../node-
|
|
8
|
-
const require_custom_model_catalog = require("../custom-model-catalog-
|
|
6
|
+
const require_dist = require("../dist-D-bDoVTG.js");
|
|
7
|
+
const require_node = require("../node-BJDseChf.js");
|
|
8
|
+
const require_custom_model_catalog = require("../custom-model-catalog-BpOVFx7P.js");
|
|
9
9
|
const require_hub_hostname = require("../hub-hostname-DAJXlOgV.js");
|
|
10
10
|
const require_lazy_sharp = require("../lazy-sharp-BuwKlQLR.js");
|
|
11
11
|
const require_restream_intent = require("../restream-intent-7uDNqMKs.js");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as NativeLeaseAdmissionSchema, Bn as
|
|
2
|
-
import { i as NO_COST_CLAIM, t as ChildCostRegistry } from "../node-
|
|
3
|
-
import { a as stepsForElectedPool, b as getStepDefinition, d as rootObjectGate, f as localFrameRegistry, h as resolveFrameViewGeometry, i as placeDetailStep, l as resolveDefaultDetectionModel, m as createSessionDecodeCoordinator, p as isSessionDecodeReadGone, s as resolveDeviceEngine, t as CustomModelCatalog, u as macroGateVerdict, y as getStep } from "../custom-model-catalog-
|
|
1
|
+
import { A as NativeLeaseAdmissionSchema, Bn as createEvent, Dt as failureContributionCapability, E as FailureCounters, Ft as linkedStepOf, Hn as defineCustomActions, It as loadContributionCapability, M as NodeBenchRunnerInputSchema, Mn as errMsg, P as PIPELINE_RAMP, Pn as BaseAddon, Qn as nodePin, Qt as pipelineRunnerCapability, Rn as MODEL_FORMATS, V as ROOT_SUPPLIABLE_STEP_IDS, Vn as customAction, Xt as pickNativeLeaseOverride, Y as allowedSuppliedEffect, Yt as pickDetailCropConvention, _ as DEFAULT_DETAIL_CROP_CONVENTION, a as BackgroundRunRegistry, ar as boolean, cn as resolveModelBoundSetting, cr as literal, dn as resolveRootSupply, fn as rootSuppliesOf, gt as deriveRootFaceRefineRect, hr as EventCategory, ir as array, j as NativeLeaseSettingsSchema, lr as number, m as CROP_SUPPLY_SOURCES, mt as deriveDetailCropRect, nt as buildBenchStepTree, pr as string, rr as _enum, rt as cameraOwnsMotionViaSensor, sr as lazy, ur as object, x as DEVICE_RAMP, y as DEFAULT_NATIVE_LEASE_SETTINGS } from "../dist-WJO3x4tA.mjs";
|
|
2
|
+
import { i as NO_COST_CLAIM, t as ChildCostRegistry } from "../node-D5ayR7EC.mjs";
|
|
3
|
+
import { a as stepsForElectedPool, b as getStepDefinition, d as rootObjectGate, f as localFrameRegistry, h as resolveFrameViewGeometry, i as placeDetailStep, l as resolveDefaultDetectionModel, m as createSessionDecodeCoordinator, p as isSessionDecodeReadGone, s as resolveDeviceEngine, t as CustomModelCatalog, u as macroGateVerdict, y as getStep } from "../custom-model-catalog-DLaJSsvd.mjs";
|
|
4
4
|
import { t as resolveHubHostname } from "../hub-hostname-cCknRYKj.mjs";
|
|
5
5
|
import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
|
|
6
6
|
import { c as withDetectionIntent, o as preRollRequestOf, t as DETECTION_PRE_ROLL_REQUEST_MS } from "../restream-intent-DyGmLAU9.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-emK7D4bc.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-D-bDoVTG.js");
|
|
3
3
|
let node_fs = require("node:fs");
|
|
4
4
|
node_fs = require_chunk.__toESM(node_fs);
|
|
5
5
|
let node_child_process = require("node:child_process");
|
package/dist/recorder/index.js
CHANGED
|
@@ -3,8 +3,8 @@ 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_node = require("../node-
|
|
6
|
+
const require_dist = require("../dist-D-bDoVTG.js");
|
|
7
|
+
const require_node = require("../node-BJDseChf.js");
|
|
8
8
|
const require_hub_hostname = require("../hub-hostname-DAJXlOgV.js");
|
|
9
9
|
const require_restream_intent = require("../restream-intent-7uDNqMKs.js");
|
|
10
10
|
let node_crypto = require("node:crypto");
|
package/dist/recorder/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as NO_COST_CLAIM, o as physicalRootOf, t as ChildCostRegistry } from "../node-
|
|
1
|
+
import { An as DeviceFeature, B as RECORDING_SOURCE_CAMSTACK_ADDON, Bt as mayWriteToLocation, C as EVENT_PAD_MS, Dn as evaluateSensorEdge, Et as exportSubjectOf, G as VIDEOCLIPS_MAX_OFFER_BYTES, H as RecordingConfigSchema, Hn as defineCustomActions, Ht as migrateLegacyDeviceSignalConfig, It as loadContributionCapability, K as VISIT_MERGE_GAP_MS, Kn as hydrateSchema, Mn as errMsg$1, N as OpsLogEntrySchema, Nt as isFirstLevelMacroClass, Pn as BaseAddon, Qn as nodePin, R as RECORDING_EXPORT_MAX_READ_BYTES, S as EVENT_OWNER_TYPES, T as ExportRecordSchema, Tt as evictionPolicyOfLocation, U as RecordingSignalStatusSchema, Un as defineRecordKinds, Ut as modeMayWrite, Vn as customAction, Vt as memoizePinnedFfmpeg, Z as armRemovalReconcile, _n as storageOccupancyCapability, an as resolveCreateExportSubject, ar as boolean, at as clipExportFailure, dr as preprocess, en as recordingArchiveCapability, er as selectAssignedProfileSlots, fr as record, gn as storageEvictableCapability, hr as EventCategory, ht as deriveRecordingMode, ir as array, jn as DeviceType, kt as gbToBytes, lr as number, mn as startMoverUnderClearance, nn as recordingExportCapability, nr as userError, o as BatteryStatusSchema, ot as clipExportFailureOf, pr as string, pt as deriveBatteryPresence, rn as recordingSignalCapability, rr as _enum, s as CLIP_BROKER_PACED_RATES, sn as resolveLocationMode, tn as recordingCapability, tr as sleep$1, tt as batteryCapability, un as resolveRecordingProfiles, ur as object, v as DEFAULT_EVENTS_BAND_BUFFER_SEC, vt as deviceRemovalHookCapability, wt as evictionPolicyForMode, xn as videoclipsCapability, yn as stripRetiredBandPreBufferSec, z as RECORDING_SOURCE_CAMSTACK, zt as mayReadLocation } from "../dist-WJO3x4tA.mjs";
|
|
2
|
+
import { i as NO_COST_CLAIM, o as physicalRootOf, t as ChildCostRegistry } from "../node-D5ayR7EC.mjs";
|
|
3
3
|
import { t as resolveHubHostname } from "../hub-hostname-cCknRYKj.mjs";
|
|
4
4
|
import { d as PREBUFFER_MAX_MS, l as withRecordingIntent, r as RECORDING_PRE_ROLL_REQUEST_MS } from "../restream-intent-DyGmLAU9.mjs";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as __toESM, t as __commonJSMin } from "./chunk-DnnnRqeS.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Mn as errMsg } from "./dist-WJO3x4tA.mjs";
|
|
3
3
|
import { spawn } from "node:child_process";
|
|
4
4
|
//#region src/stream-broker/recorded/avcc-annexb.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-emK7D4bc.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-D-bDoVTG.js");
|
|
3
3
|
let node_child_process = require("node:child_process");
|
|
4
4
|
//#region src/stream-broker/recorded/avcc-annexb.ts
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-CixUA9FW.mjs";
|
|
2
2
|
import { a as m, i as h, n as g, o as _, r as v, t as y } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare__react__loadShare__.js-C9j-2lBe.mjs";
|
|
3
3
|
import { n as b, r as x, t as S } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-XO0-Pyu6.mjs";
|
|
4
|
-
import { t as C } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-
|
|
4
|
+
import { t as C } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CGrJJEuu.mjs";
|
|
5
5
|
import { n as w, t as T } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-BO7TIbJV.mjs";
|
|
6
6
|
//#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
|
|
7
7
|
var E = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), D = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), O = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), k = (e) => {
|