@camstack/addon-pipeline 1.2.606 → 1.2.608
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-Ci_-yU1S.js} +2 -2
- package/dist/{custom-model-catalog-DHRYJ8gg.mjs → custom-model-catalog-D4nyEGYU.mjs} +2 -2
- package/dist/detection-pipeline/index.js +8 -8
- package/dist/detection-pipeline/index.mjs +8 -8
- package/dist/{dist-DfLtNHaL.mjs → dist-0D-dLBnm.mjs} +89 -63
- package/dist/{dist-PmCvE63K.js → dist-DkfPNxQw.js} +94 -62
- package/dist/{model-catalogs-Bt-V_vgh.mjs → model-catalogs-B4udr4Fp.mjs} +1 -1
- package/dist/{model-catalogs-CVq3QMHq.js → model-catalogs-CqlA8ThV.js} +1 -1
- package/dist/motion-wasm/index.js +1 -1
- package/dist/motion-wasm/index.mjs +1 -1
- package/dist/{node-BYIY09HD.mjs → node-CXQrV8Tv.mjs} +1 -1
- package/dist/{node-D_-1oz36.js → node-CpUZKfZC.js} +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-B5YqxUdg.mjs} +1 -1
- package/dist/{process-memory-CZdWXAgA.js → process-memory-BF_zHntD.js} +1 -1
- package/dist/recorder/index.js +22 -6
- package/dist/recorder/index.mjs +22 -6
- package/dist/{segment-demux-js-CyvSyRQL.js → segment-demux-js-D5v0duL_.js} +1 -1
- package/dist/{segment-demux-js-COgPamTd.mjs → segment-demux-js-hjnm_n4s.mjs} +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-CWLQBK5e.mjs} +3 -3
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BatrS9WH.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-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-BmdaGy6X.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_types__loadShare__.js-C_vhSCZn.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-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-DkfPNxQw.js");
|
|
7
|
+
const require_model_catalogs = require("../model-catalogs-CqlA8ThV.js");
|
|
8
|
+
const require_process_memory = require("../process-memory-BF_zHntD.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-0D-dLBnm.mjs";
|
|
3
|
+
import { n as AUDIO_CLASSIFIER_MODELS } from "../model-catalogs-B4udr4Fp.mjs";
|
|
4
|
+
import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-B5YqxUdg.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-DkfPNxQw.js");
|
|
2
|
+
const require_model_catalogs = require("./model-catalogs-CqlA8ThV.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-0D-dLBnm.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-B4udr4Fp.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-DkfPNxQw.js");
|
|
7
|
+
const require_node = require("../node-CpUZKfZC.js");
|
|
8
|
+
const require_custom_model_catalog = require("../custom-model-catalog-Ci_-yU1S.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-BF_zHntD.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-0D-dLBnm.mjs";
|
|
3
|
+
import { c as readProcessCost } from "../node-CXQrV8Tv.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-D4nyEGYU.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-B5YqxUdg.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
|
};
|
|
@@ -5547,7 +5547,7 @@ var ZodIssueCode = {
|
|
|
5547
5547
|
var ZodFirstPartyTypeKind;
|
|
5548
5548
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5549
5549
|
//#endregion
|
|
5550
|
-
//#region ../types/dist/sleep-
|
|
5550
|
+
//#region ../types/dist/sleep-CSuN0thG.mjs
|
|
5551
5551
|
/**
|
|
5552
5552
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5553
5553
|
* window to float samples (D455).
|
|
@@ -8206,7 +8206,13 @@ var RecordKindDeclarationSchema = object({
|
|
|
8206
8206
|
secretPaths: array(string().min(1)).default([]),
|
|
8207
8207
|
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
8208
8208
|
secretArrayKeys: record(string(), string()).default({}),
|
|
8209
|
-
/**
|
|
8209
|
+
/**
|
|
8210
|
+
* RETIRED (D900): the legacy table a kind adopted from during the records
|
|
8211
|
+
* migration. Nothing declares it any more and nothing reads it; the schema
|
|
8212
|
+
* still ACCEPTS it because the catalog rows the migration wrote carry it
|
|
8213
|
+
* (an orphaned kind is never redeclared) and an addon built before the
|
|
8214
|
+
* removal still sends it. Never set it.
|
|
8215
|
+
*/
|
|
8210
8216
|
adoptsFrom: string().min(1).optional(),
|
|
8211
8217
|
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
8212
8218
|
transactFamily: string().min(1).optional(),
|
|
@@ -8281,7 +8287,6 @@ function defineRecordKinds(specs) {
|
|
|
8281
8287
|
maxDataBytes: spec.maxDataBytes,
|
|
8282
8288
|
secretPaths: [...secretPaths],
|
|
8283
8289
|
secretArrayKeys: spec.secretArrayKeys === void 0 ? void 0 : { ...spec.secretArrayKeys },
|
|
8284
|
-
adoptsFrom: spec.adoptsFrom,
|
|
8285
8290
|
transactFamily: spec.transactFamily,
|
|
8286
8291
|
entry: spec.entry === void 0 ? void 0 : {
|
|
8287
8292
|
title: spec.entry.title,
|
|
@@ -19817,11 +19822,12 @@ var DeclareKindResultSchema = object({
|
|
|
19817
19822
|
kindId: number().int(),
|
|
19818
19823
|
state: RecordKindStateSchema,
|
|
19819
19824
|
createdIndexes: array(string()),
|
|
19820
|
-
/**
|
|
19821
|
-
|
|
19822
|
-
|
|
19823
|
-
|
|
19824
|
-
|
|
19825
|
+
/**
|
|
19826
|
+
* RETIRED (D900): always `null`. It carried the records-migration boot guard;
|
|
19827
|
+
* it stays on the wire, null, because an addon built before the removal reads
|
|
19828
|
+
* an ABSENT field as "adoption pending" and refuses to start.
|
|
19829
|
+
*/
|
|
19830
|
+
adoptionPending: _null()
|
|
19825
19831
|
});
|
|
19826
19832
|
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
19827
19833
|
var SecretRefsList = array(string());
|
|
@@ -19994,26 +20000,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
|
|
|
19994
20000
|
}), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
|
|
19995
20001
|
owner: string().min(1),
|
|
19996
20002
|
kind: RecordKindNameSchema
|
|
19997
|
-
}), RecordQueryResultSchema, { auth: "admin" })
|
|
19998
|
-
owner: string().min(1),
|
|
19999
|
-
kind: RecordKindNameSchema,
|
|
20000
|
-
records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
|
|
20001
|
-
/** The LAST batch: the copy is complete, the boot guard stops asking. */
|
|
20002
|
-
complete: boolean().optional()
|
|
20003
|
-
}).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
|
|
20004
|
-
kind: "mutation",
|
|
20005
|
-
auth: "admin"
|
|
20006
|
-
}), method(object({
|
|
20007
|
-
collection: string().min(1),
|
|
20008
|
-
cursor: string().optional(),
|
|
20009
|
-
limit: number().int().min(1).max(1e3).optional()
|
|
20010
|
-
}), object({
|
|
20011
|
-
rows: array(object({
|
|
20012
|
-
id: string(),
|
|
20013
|
-
data: record(string(), unknown())
|
|
20014
|
-
})),
|
|
20015
|
-
nextCursor: string().nullable()
|
|
20016
|
-
}), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
|
|
20003
|
+
}), RecordQueryResultSchema, { auth: "admin" });
|
|
20017
20004
|
/**
|
|
20018
20005
|
* record-entries - the ONE admin surface for every list of user-created entries
|
|
20019
20006
|
* (D881): notification targets, brokers, LLM profiles, anything an addon
|
|
@@ -62579,9 +62566,24 @@ var NpuInfoSchema = object({
|
|
|
62579
62566
|
name: string().optional(),
|
|
62580
62567
|
generation: _enum(["xdna1", "xdna2"]).optional()
|
|
62581
62568
|
});
|
|
62569
|
+
var CoralBusSchema = _enum(["usb", "pci"]);
|
|
62582
62570
|
var CoralInfoSchema = object({
|
|
62583
62571
|
type: literal("coral-edgetpu"),
|
|
62584
|
-
bus
|
|
62572
|
+
/** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
|
|
62573
|
+
bus: string().optional(),
|
|
62574
|
+
/** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
|
|
62575
|
+
count: number().int().nonnegative().optional(),
|
|
62576
|
+
/** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
|
|
62577
|
+
units: array(object({
|
|
62578
|
+
bus: CoralBusSchema,
|
|
62579
|
+
count: number().int().nonnegative()
|
|
62580
|
+
})).readonly().optional(),
|
|
62581
|
+
/** Present-but-unusable units, each with its typed reason (never "absent"). */
|
|
62582
|
+
unavailable: array(object({
|
|
62583
|
+
bus: CoralBusSchema,
|
|
62584
|
+
count: number().int().nonnegative(),
|
|
62585
|
+
reason: _enum(["driver-missing", "device-not-accessible"])
|
|
62586
|
+
})).readonly().optional()
|
|
62585
62587
|
});
|
|
62586
62588
|
var HardwareInfoSchema = object({
|
|
62587
62589
|
platform: HardwarePlatformSchema,
|
|
@@ -69123,6 +69125,12 @@ Object.freeze({
|
|
|
69123
69125
|
addonId: null,
|
|
69124
69126
|
access: "view"
|
|
69125
69127
|
},
|
|
69128
|
+
"deviceHistory.queryMany": {
|
|
69129
|
+
capName: "device-history",
|
|
69130
|
+
capScope: "system",
|
|
69131
|
+
addonId: null,
|
|
69132
|
+
access: "view"
|
|
69133
|
+
},
|
|
69126
69134
|
"deviceHistory.queryNode": {
|
|
69127
69135
|
capName: "device-history",
|
|
69128
69136
|
capScope: "system",
|
|
@@ -74343,24 +74351,12 @@ Object.freeze({
|
|
|
74343
74351
|
addonId: null,
|
|
74344
74352
|
access: "create"
|
|
74345
74353
|
},
|
|
74346
|
-
"storageAdmin.adoptRecords": {
|
|
74347
|
-
capName: "storage-admin",
|
|
74348
|
-
capScope: "system",
|
|
74349
|
-
addonId: null,
|
|
74350
|
-
access: "create"
|
|
74351
|
-
},
|
|
74352
74354
|
"storageAdmin.dropCollection": {
|
|
74353
74355
|
capName: "storage-admin",
|
|
74354
74356
|
capScope: "system",
|
|
74355
74357
|
addonId: null,
|
|
74356
74358
|
access: "delete"
|
|
74357
74359
|
},
|
|
74358
|
-
"storageAdmin.isAdoptedLegacyTable": {
|
|
74359
|
-
capName: "storage-admin",
|
|
74360
|
-
capScope: "system",
|
|
74361
|
-
addonId: null,
|
|
74362
|
-
access: "view"
|
|
74363
|
-
},
|
|
74364
74360
|
"storageAdmin.listKinds": {
|
|
74365
74361
|
capName: "storage-admin",
|
|
74366
74362
|
capScope: "system",
|
|
@@ -74373,12 +74369,6 @@ Object.freeze({
|
|
|
74373
74369
|
addonId: null,
|
|
74374
74370
|
access: "view"
|
|
74375
74371
|
},
|
|
74376
|
-
"storageAdmin.readLegacyCollection": {
|
|
74377
|
-
capName: "storage-admin",
|
|
74378
|
-
capScope: "system",
|
|
74379
|
-
addonId: null,
|
|
74380
|
-
access: "view"
|
|
74381
|
-
},
|
|
74382
74372
|
"storageAdmin.readRecords": {
|
|
74383
74373
|
capName: "storage-admin",
|
|
74384
74374
|
capScope: "system",
|
|
@@ -78193,12 +78183,6 @@ Object.freeze({
|
|
|
78193
78183
|
form: "single",
|
|
78194
78184
|
optional: false
|
|
78195
78185
|
}],
|
|
78196
|
-
"storageAdmin.adoptRecords": [{
|
|
78197
|
-
name: "records",
|
|
78198
|
-
form: "object-array",
|
|
78199
|
-
optional: false,
|
|
78200
|
-
itemField: "deviceId"
|
|
78201
|
-
}],
|
|
78202
78186
|
"storageAdmin.readRecords": [{
|
|
78203
78187
|
name: "deviceId",
|
|
78204
78188
|
form: "single",
|
|
@@ -80647,6 +80631,41 @@ function pointInPolygon(point, polygon) {
|
|
|
80647
80631
|
}
|
|
80648
80632
|
return inside;
|
|
80649
80633
|
}
|
|
80634
|
+
/** Bus order of the enumeration: USB first (the historical key), then PCIe. */
|
|
80635
|
+
var BUS_ORDER = ["usb", "pci"];
|
|
80636
|
+
function unitDevice(bus, index) {
|
|
80637
|
+
return index === 0 ? bus : `${bus}:${index}`;
|
|
80638
|
+
}
|
|
80639
|
+
function countOn(coral, bus) {
|
|
80640
|
+
if (coral.units !== void 0) return coral.units.filter((u) => u.bus === bus).reduce((n, u) => n + Math.max(0, u.count), 0);
|
|
80641
|
+
return bus === (coral.bus === "pci" ? "pci" : "usb") ? Math.max(1, coral.count ?? 1) : 0;
|
|
80642
|
+
}
|
|
80643
|
+
/** Every usable Coral unit on a node, USB first then PCIe, in ordinal order. */
|
|
80644
|
+
function coralUsableUnits(coral) {
|
|
80645
|
+
if (coral == null) return [];
|
|
80646
|
+
const out = [];
|
|
80647
|
+
for (const bus of BUS_ORDER) {
|
|
80648
|
+
const count = countOn(coral, bus);
|
|
80649
|
+
for (let index = 0; index < count; index++) out.push({
|
|
80650
|
+
bus,
|
|
80651
|
+
index,
|
|
80652
|
+
device: unitDevice(bus, index)
|
|
80653
|
+
});
|
|
80654
|
+
}
|
|
80655
|
+
return out;
|
|
80656
|
+
}
|
|
80657
|
+
var KEY_DEVICE = /^(usb|pci)(?::(\d+))?$/;
|
|
80658
|
+
/**
|
|
80659
|
+
* Map an edgetpu key suffix (`usb`, `usb:1`, `pci`, `pci:1`) to the explicit
|
|
80660
|
+
* libedgetpu device string (`usb:0`, `usb:1`, `pci:0`, `pci:1`). Throws on any
|
|
80661
|
+
* other string — a pool must never open "whichever Edge TPU comes first".
|
|
80662
|
+
*/
|
|
80663
|
+
function edgetpuDelegateDevice(device) {
|
|
80664
|
+
const match = KEY_DEVICE.exec(device.trim());
|
|
80665
|
+
if (match === null) throw new Error(`edgetpu device "${device}" is not usb[:N] or pci[:N]`);
|
|
80666
|
+
const [, bus, ordinal] = match;
|
|
80667
|
+
return `${bus}:${ordinal ?? "0"}`;
|
|
80668
|
+
}
|
|
80650
80669
|
var AUTO = {
|
|
80651
80670
|
value: "auto",
|
|
80652
80671
|
label: "Auto"
|
|
@@ -80659,6 +80678,14 @@ var USB = {
|
|
|
80659
80678
|
value: "usb",
|
|
80660
80679
|
label: "Coral USB"
|
|
80661
80680
|
};
|
|
80681
|
+
function coralUnitOption(unit) {
|
|
80682
|
+
const bus = unit.bus === "pci" ? "PCIe" : "USB";
|
|
80683
|
+
const label = unit.index === 0 ? `Coral ${bus}` : `Coral ${bus} ${unit.index + 1}`;
|
|
80684
|
+
return {
|
|
80685
|
+
value: unit.device,
|
|
80686
|
+
label
|
|
80687
|
+
};
|
|
80688
|
+
}
|
|
80662
80689
|
var RUNTIMES = [
|
|
80663
80690
|
{
|
|
80664
80691
|
id: "onnx",
|
|
@@ -80725,8 +80752,11 @@ var RUNTIMES = [
|
|
|
80725
80752
|
},
|
|
80726
80753
|
{
|
|
80727
80754
|
id: "edgetpu",
|
|
80728
|
-
supports: (hw) => hw?.coral
|
|
80729
|
-
devices: () =>
|
|
80755
|
+
supports: (hw) => coralUsableUnits(hw?.coral).length > 0,
|
|
80756
|
+
devices: (hw) => {
|
|
80757
|
+
const units = coralUsableUnits(hw?.coral);
|
|
80758
|
+
return units.length > 0 ? units.map(coralUnitOption) : [USB];
|
|
80759
|
+
},
|
|
80730
80760
|
defaultDevice: "usb"
|
|
80731
80761
|
}
|
|
80732
80762
|
];
|
|
@@ -80762,7 +80792,7 @@ function defaultDeviceFor(id) {
|
|
|
80762
80792
|
* - coreml: score 95, darwin+arm64
|
|
80763
80793
|
* - cuda: score 85, nvidia gpu
|
|
80764
80794
|
* - openvino: score 90 if intel-npu present, else 80 if intel gpu
|
|
80765
|
-
* - edgetpu: score 70,
|
|
80795
|
+
* - edgetpu: score 70, a usable Coral unit (USB or PCIe)
|
|
80766
80796
|
* - cpu: score 50 (universal floor, always included)
|
|
80767
80797
|
*
|
|
80768
80798
|
* All hardware-matched entries are `available: true`.
|
|
@@ -80816,7 +80846,7 @@ function scoreRuntimes(hw) {
|
|
|
80816
80846
|
available: true
|
|
80817
80847
|
});
|
|
80818
80848
|
}
|
|
80819
|
-
if (hw.coral
|
|
80849
|
+
if (coralUsableUnits(hw.coral).length > 0) scores.push({
|
|
80820
80850
|
runtime: "python",
|
|
80821
80851
|
backend: "edgetpu",
|
|
80822
80852
|
format: "tflite",
|
|
@@ -80875,11 +80905,7 @@ function enumerateInferenceDevices(hw) {
|
|
|
80875
80905
|
continue;
|
|
80876
80906
|
}
|
|
80877
80907
|
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
|
-
}
|
|
80908
|
+
for (const unit of coralUsableUnits(hw.coral)) out.push(device("edgetpu", unit.device, s.format, s.score));
|
|
80883
80909
|
continue;
|
|
80884
80910
|
}
|
|
80885
80911
|
if (s.backend === "onnx" && s.reason.startsWith("ONNX WebGPU")) {
|
|
@@ -80962,4 +80988,4 @@ function armRemovalReconcile(opts) {
|
|
|
80962
80988
|
return () => clearInterval(timer);
|
|
80963
80989
|
}
|
|
80964
80990
|
//#endregion
|
|
80965
|
-
export { audioAnalyzerCapability as $,
|
|
80991
|
+
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 };
|