@camstack/addon-pipeline 1.2.338 → 1.2.339
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 +22 -30
- package/dist/audio-analyzer/index.mjs +23 -31
- package/dist/{custom-model-catalog-CN6WPGB8.mjs → custom-model-catalog-B5sCwSgr.mjs} +2 -1447
- package/dist/{custom-model-catalog-BYJyfhgj.js → custom-model-catalog-BY35vysX.js} +15 -1460
- package/dist/detection-pipeline/index.js +24 -4
- package/dist/detection-pipeline/index.mjs +25 -5
- package/dist/{dist-WIL4yeyi.js → dist-BUqvRc-c.js} +8 -12
- package/dist/{dist-CdmlJu1J.mjs → dist-BylL-kRe.mjs} +9 -7
- package/dist/model-catalogs-DygV-lXw.js +1522 -0
- package/dist/model-catalogs-x1G07ScE.mjs +1445 -0
- package/dist/motion-wasm/index.js +1 -1
- package/dist/motion-wasm/index.mjs +1 -1
- package/dist/{node-CEtew1DU.mjs → node-4Vnc6mbI.mjs} +1 -1
- package/dist/{node-DCFClFJ1.js → node-r1KgYS72.js} +1 -1
- package/dist/pipeline-runner/index.js +3 -3
- package/dist/pipeline-runner/index.mjs +3 -3
- package/dist/{process-memory-maZfOnev.mjs → process-memory-DOX7Esg9.mjs} +1 -1
- package/dist/{process-memory-Bsj_b---.js → process-memory-Dr9tFNCX.js} +1 -1
- package/dist/recorder/index.js +2 -2
- package/dist/recorder/index.mjs +2 -2
- package/dist/{segment-demux-js-CXmBf_nf.js → segment-demux-js-5UX_f1ey.js} +1 -1
- package/dist/{segment-demux-js-DnPcYYbc.mjs → segment-demux-js-Brk0ORQN.mjs} +1 -1
- package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-BdsJXZcP.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-oF4bquCk.mjs} +1 -1
- 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-BU5SBy0i.mjs → hostInit-BOteWKrZ.mjs} +1 -1
- 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
|
@@ -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-BUqvRc-c.js");
|
|
7
|
+
const require_node = require("../node-r1KgYS72.js");
|
|
8
|
+
const require_custom_model_catalog = require("../custom-model-catalog-BY35vysX.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-Dr9tFNCX.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");
|
|
@@ -8463,6 +8463,25 @@ var DetectionPipelineProvider = class DetectionPipelineProvider {
|
|
|
8463
8463
|
} });
|
|
8464
8464
|
}
|
|
8465
8465
|
/**
|
|
8466
|
+
* Record the revision of every catalog model already on this node whose
|
|
8467
|
+
* weight file hashes to it (D744), so the model listing reports those copies
|
|
8468
|
+
* as downloaded without fetching them again. Background and offline: it
|
|
8469
|
+
* reads files only. A copy holding other bytes is left for `ensureModel`,
|
|
8470
|
+
* which fetches it the next time something needs it.
|
|
8471
|
+
*/
|
|
8472
|
+
adoptHostedModelRevisions() {
|
|
8473
|
+
const entries = require_custom_model_catalog.ALL_PIPELINE_STEPS.flatMap((s) => s.definition.models);
|
|
8474
|
+
(0, _camstack_system_addon_utils.adoptModelRevisions)(this.modelsDir, entries).then((report) => {
|
|
8475
|
+
if (report.adopted.length === 0 && report.stale.length === 0) return;
|
|
8476
|
+
this.log.info("Model copies checked against their mirror revision", { meta: {
|
|
8477
|
+
adopted: report.adopted.length,
|
|
8478
|
+
stale: report.stale
|
|
8479
|
+
} });
|
|
8480
|
+
}, (err) => {
|
|
8481
|
+
this.log.warn("Model revision check failed — copies are proven on their next download", { meta: { error: require_dist.errMsg(err) } });
|
|
8482
|
+
});
|
|
8483
|
+
}
|
|
8484
|
+
/**
|
|
8466
8485
|
* Call after construction. The node-default engine is always DERIVED live
|
|
8467
8486
|
* from this node's own hardware (there is no persisted operator override
|
|
8468
8487
|
* anymore — the elected single-engine cascade was removed). Defer the derive
|
|
@@ -8471,6 +8490,7 @@ var DetectionPipelineProvider = class DetectionPipelineProvider {
|
|
|
8471
8490
|
async init() {
|
|
8472
8491
|
this.needsAutoPick = true;
|
|
8473
8492
|
this.log.info("Node-default engine derive deferred to setApi()");
|
|
8493
|
+
this.adoptHostedModelRevisions();
|
|
8474
8494
|
if (!this.poolMemoryGuard) {
|
|
8475
8495
|
this.poolMemoryGuard = createDetectionPoolMemoryGuard({
|
|
8476
8496
|
listPools: () => this.listGuardedPools(),
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { n as __require } from "../chunk-DnnnRqeS.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { s 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 { $n as string, An as createEvent, D as LABEL_SUPPLY_MACRO, Dt as linkedLabelStepId, En as BaseAddon, Hn as sleep, M as PoolMemoryWatchdog, Pn as hydrateSchema, Rn as nodePin, Vt as pickClusterStepSettings, W as YAMNET_TO_MACRO, Wn as array, Wt as pipelineExecutorCapability, Xn as object, Zt as resolveClusterStepModelId, an as rootSuppliesOf, d as CLUSTER_MODEL_SCOPED_STEPS, dt as detectionPipelineCapability, er as union, fn as supportedRuntimes$1, g as DEFAULT_CLUSTER_STEP_SETTINGS, ht as evaluateZoneRules, kt as loadContributionCapability, mt as enumerateInferenceDevices, n as APPLE_SA_TO_MACRO, nn as resolvePoolMemoryPolicy, nt as containingParentIndex, on as runtimeDevices$1, ot as defaultDeviceFor$1, q as applyModelBoundSettings, sn as stepModelRunsOnFormat, tr as EventCategory, wn as errMsg, wt as hfModelUrl, zn as parseJsonUnknown, zt as overlayClusterStepSettings } from "../dist-BylL-kRe.mjs";
|
|
3
|
+
import { s as readProcessCost } from "../node-4Vnc6mbI.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-B5sCwSgr.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-DOX7Esg9.mjs";
|
|
7
7
|
import * as os from "node:os";
|
|
8
8
|
import * as fs from "node:fs";
|
|
9
9
|
import * as path$1 from "node:path";
|
|
10
10
|
import { dirname, join } from "node:path";
|
|
11
11
|
import { spawn } from "node:child_process";
|
|
12
12
|
import sharp from "sharp";
|
|
13
|
-
import { deleteModelFromDisk, ensureModel, isModelDownloaded, startEventLoopStallMonitor } from "@camstack/system/addon-utils";
|
|
13
|
+
import { adoptModelRevisions, deleteModelFromDisk, ensureModel, isModelDownloaded, startEventLoopStallMonitor } from "@camstack/system/addon-utils";
|
|
14
14
|
//#region src/detection-pipeline/runtimes.ts
|
|
15
15
|
var KNOWN_PLATFORMS = [
|
|
16
16
|
"darwin",
|
|
@@ -8456,6 +8456,25 @@ var DetectionPipelineProvider = class DetectionPipelineProvider {
|
|
|
8456
8456
|
} });
|
|
8457
8457
|
}
|
|
8458
8458
|
/**
|
|
8459
|
+
* Record the revision of every catalog model already on this node whose
|
|
8460
|
+
* weight file hashes to it (D744), so the model listing reports those copies
|
|
8461
|
+
* as downloaded without fetching them again. Background and offline: it
|
|
8462
|
+
* reads files only. A copy holding other bytes is left for `ensureModel`,
|
|
8463
|
+
* which fetches it the next time something needs it.
|
|
8464
|
+
*/
|
|
8465
|
+
adoptHostedModelRevisions() {
|
|
8466
|
+
const entries = ALL_PIPELINE_STEPS.flatMap((s) => s.definition.models);
|
|
8467
|
+
adoptModelRevisions(this.modelsDir, entries).then((report) => {
|
|
8468
|
+
if (report.adopted.length === 0 && report.stale.length === 0) return;
|
|
8469
|
+
this.log.info("Model copies checked against their mirror revision", { meta: {
|
|
8470
|
+
adopted: report.adopted.length,
|
|
8471
|
+
stale: report.stale
|
|
8472
|
+
} });
|
|
8473
|
+
}, (err) => {
|
|
8474
|
+
this.log.warn("Model revision check failed — copies are proven on their next download", { meta: { error: errMsg(err) } });
|
|
8475
|
+
});
|
|
8476
|
+
}
|
|
8477
|
+
/**
|
|
8459
8478
|
* Call after construction. The node-default engine is always DERIVED live
|
|
8460
8479
|
* from this node's own hardware (there is no persisted operator override
|
|
8461
8480
|
* anymore — the elected single-engine cascade was removed). Defer the derive
|
|
@@ -8464,6 +8483,7 @@ var DetectionPipelineProvider = class DetectionPipelineProvider {
|
|
|
8464
8483
|
async init() {
|
|
8465
8484
|
this.needsAutoPick = true;
|
|
8466
8485
|
this.log.info("Node-default engine derive deferred to setApi()");
|
|
8486
|
+
this.adoptHostedModelRevisions();
|
|
8467
8487
|
if (!this.poolMemoryGuard) {
|
|
8468
8488
|
this.poolMemoryGuard = createDetectionPoolMemoryGuard({
|
|
8469
8489
|
listPools: () => this.listGuardedPools(),
|
|
@@ -12930,12 +12930,15 @@ var ModelFormatEntrySchema = object({
|
|
|
12930
12930
|
/** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
|
|
12931
12931
|
runtimes: array(_enum(["python"])).readonly().optional(),
|
|
12932
12932
|
/**
|
|
12933
|
-
* Content revision of the
|
|
12934
|
-
*
|
|
12935
|
-
*
|
|
12933
|
+
* Content revision of the artefact, for one hosted OFF the CamStack mirror.
|
|
12934
|
+
* A format on the mirror leaves it unset: its revision (the sha256 of its
|
|
12935
|
+
* weight file) comes from the downloader's generated table, kept in step
|
|
12936
|
+
* with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
|
|
12937
|
+
* node records the revision it downloaded next to the file
|
|
12936
12938
|
* (`<file>.revision`); a copy with no record or a different one is stale
|
|
12937
|
-
*
|
|
12938
|
-
*
|
|
12939
|
+
* unless its weight file hashes to the revision, and a stale copy is
|
|
12940
|
+
* downloaded again, the old one serving until the new one is complete. No
|
|
12941
|
+
* revision at all ⇒ a file on disk is current, whatever it holds (D743).
|
|
12939
12942
|
*/
|
|
12940
12943
|
revision: string().min(1).optional()
|
|
12941
12944
|
});
|
|
@@ -41165,7 +41168,6 @@ Object.freeze({
|
|
|
41165
41168
|
vehicle: .65,
|
|
41166
41169
|
animal: .65
|
|
41167
41170
|
});
|
|
41168
|
-
var HF_BASE_URL = `https://huggingface.co/camstack/camstack-models/resolve/main`;
|
|
41169
41171
|
/**
|
|
41170
41172
|
* Accessory device helpers — shared across drivers.
|
|
41171
41173
|
*
|
|
@@ -54948,12 +54950,6 @@ Object.defineProperty(exports, "G711_SCALE_CORRECTION_DB", {
|
|
|
54948
54950
|
return G711_SCALE_CORRECTION_DB;
|
|
54949
54951
|
}
|
|
54950
54952
|
});
|
|
54951
|
-
Object.defineProperty(exports, "HF_BASE_URL", {
|
|
54952
|
-
enumerable: true,
|
|
54953
|
-
get: function() {
|
|
54954
|
-
return HF_BASE_URL;
|
|
54955
|
-
}
|
|
54956
|
-
});
|
|
54957
54953
|
Object.defineProperty(exports, "LABEL_SUPPLY_MACRO", {
|
|
54958
54954
|
enumerable: true,
|
|
54959
54955
|
get: function() {
|
|
@@ -12930,12 +12930,15 @@ var ModelFormatEntrySchema = object({
|
|
|
12930
12930
|
/** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
|
|
12931
12931
|
runtimes: array(_enum(["python"])).readonly().optional(),
|
|
12932
12932
|
/**
|
|
12933
|
-
* Content revision of the
|
|
12934
|
-
*
|
|
12935
|
-
*
|
|
12933
|
+
* Content revision of the artefact, for one hosted OFF the CamStack mirror.
|
|
12934
|
+
* A format on the mirror leaves it unset: its revision (the sha256 of its
|
|
12935
|
+
* weight file) comes from the downloader's generated table, kept in step
|
|
12936
|
+
* with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
|
|
12937
|
+
* node records the revision it downloaded next to the file
|
|
12936
12938
|
* (`<file>.revision`); a copy with no record or a different one is stale
|
|
12937
|
-
*
|
|
12938
|
-
*
|
|
12939
|
+
* unless its weight file hashes to the revision, and a stale copy is
|
|
12940
|
+
* downloaded again, the old one serving until the new one is complete. No
|
|
12941
|
+
* revision at all ⇒ a file on disk is current, whatever it holds (D743).
|
|
12939
12942
|
*/
|
|
12940
12943
|
revision: string().min(1).optional()
|
|
12941
12944
|
});
|
|
@@ -41165,7 +41168,6 @@ Object.freeze({
|
|
|
41165
41168
|
vehicle: .65,
|
|
41166
41169
|
animal: .65
|
|
41167
41170
|
});
|
|
41168
|
-
var HF_BASE_URL = `https://huggingface.co/camstack/camstack-models/resolve/main`;
|
|
41169
41171
|
/**
|
|
41170
41172
|
* Accessory device helpers — shared across drivers.
|
|
41171
41173
|
*
|
|
@@ -54732,4 +54734,4 @@ function enumerateInferenceDevices(hw) {
|
|
|
54732
54734
|
return out;
|
|
54733
54735
|
}
|
|
54734
54736
|
//#endregion
|
|
54735
|
-
export {
|
|
54737
|
+
export { cameraStreamsCapability as $, string as $n, resolveEgressDecodeHwAccel as $t, NativeLeaseSettingsSchema as A, createEvent as An, logChannelsCapability as At, RecordingSignalStatusSchema as B, parseProfileBrokerId as Bn, parseProcStatus as Bt, EncodeProfileSchema as C, DeviceType as Cn, gifFromMp4Args as Ct, LABEL_SUPPLY_MACRO as D, CAM_PROFILE_ORDER as Dn, linkedLabelStepId as Dt, G711_SCALE_CORRECTION_DB as E, BaseAddon as En, isFirstLevelMacroClass as Et, RECORDING_EXPORT_MAX_READ_BYTES as F, isEvent as Fn, memoizePinnedFfmpeg as Ft, addonWidgetsSourceCapability as G, boolean as Gn, pipelineRunnerCapability as Gt, VIDEOCLIPS_MAX_OFFER_BYTES as H, sleep as Hn, pickDetailCropConvention as Ht, RECORDING_SOURCE_CAMSTACK as I, makeProfileBrokerId as In, migrateLegacyDeviceSignalConfig as It, audioAnalysisCapability as J, literal as Jn, recordingCapability as Jt, allowedSuppliedEffect as K, discriminatedUnion as Kn, rankStreams as Kt, RECORDING_SOURCE_CAMSTACK_ADDON as L, makeSourceBrokerId as Ln, modeMayWrite as Lt, PoolMemoryWatchdog as M, defineCustomActions as Mn, maskUrlCredentials as Mt, RATE_CONTROL_RELAXED as N, expandAudioChunkToF32le as Nn, mayReadLocation as Nt, LABEL_SUPPLY_VOCABULARIES as O, CamProfileSchema as On, linkedStepOf as Ot, RATE_CONTROL_TIGHT as P, hydrateSchema as Pn, mayWriteToLocation as Pt, cameraOwnsMotionViaSensor as Q, record as Qn, resolveCreateExportSubject as Qt, ROOT_SUPPLIABLE_STEP_IDS as R, nodePin as Rn, motionDetectionCapability as Rt, EVENT_PAD_MS as S, DeviceFeature as Sn, gifDeriveSpeed as St, FailureCounters as T, BOOT_RECOVERY_BACKOFF_MS as Tn, inferModelProvider as Tt, VISIT_MERGE_GAP_MS as U, _enum as Un, pickNativeLeaseOverride as Ut, RingBuffer as V, selectAssignedProfileSlots as Vn, pickClusterStepSettings as Vt, YAMNET_TO_MACRO as W, array as Wn, pipelineExecutorCapability as Wt, audioKindId as X, object as Xn, recordingSignalCapability as Xt, audioAnalyzerCapability as Y, number as Yn, recordingExportCapability as Yt, batteryCapability as Z, preprocess as Zn, resolveClusterStepModelId as Zt, DEFAULT_DETAIL_CROP_CONVENTION as _, Fmp4BoxSplitter as _n, evictionPolicyOfLocation as _t, BackgroundRunRegistry as a, rootSuppliesOf as an, declareLogChannel as at, DEVICE_BACKEND_TO_FORMAT as b, invocationFromEncodeProfile as bn, ffmpegRate as bt, CLIP_STILL_REASON_CODE_HEADER as c, storageEvictableCapability as cn, deriveDetailCropRect as ct, CLUSTER_MODEL_SCOPED_STEPS as d, stripRetiredBandPreBufferSec as dn, detectionPipelineCapability as dt, resolveLocationMode as en, union as er, clipExportFailure as et, COCO_80_LABELS as f, supportedRuntimes as fn, egressTranscodeSharingKey as ft, DEFAULT_CLUSTER_STEP_SETTINGS as g, DEFAULT_FIRST_SIGHTING_FRESHNESS_MS as gn, evictionPolicyForMode as gt, DEFAULT_AUDIO_ANALYZER_CONFIG as h, AUDIO_PRESETS as hn, evaluateZoneRules as ht, AUDIO_MACRO_LABELS as i, resolveRootSupply as in, createLogChannelsProvider as it, OpsLogEntrySchema as j, customAction as jn, mapAudioLabelToMacro as jt, NativeLeaseAdmissionSchema as k, audioChunkBytesPerSample as kn, loadContributionCapability as kt, CLIP_STILL_REASON_HEADER as l, storageOccupancyCapability as ln, deriveRecordingMode as lt, CROP_SUPPLY_SOURCES as m, webrtcSessionCapability as mn, enumerateInferenceDevices as mt, APPLE_SA_TO_MACRO as n, resolvePoolMemoryPolicy as nn, containingParentIndex as nt, BatteryStatusSchema as o, runtimeDevices as on, defaultDeviceFor as ot, COCO_TO_MACRO as p, videoclipsCapability as pn, egressTransportFromRequest as pt, applyModelBoundSettings as q, lazy as qn, recordingArchiveCapability as qt, AUDIO_BACKEND_CHOICES as r, resolveRecordingProfiles as rn, createHwAccelCache as rt, CLIP_BROKER_PACED_RATES as s, stepModelRunsOnFormat as sn, deriveBatteryPresence as st, APPEARANCE_BLOCKS as t, resolveModelBoundSetting as tn, EventCategory as tr, clipExportFailureOf as tt, CLIP_STREAM_TRANSPORT_HEADER as u, streamBrokerCapability as un, deriveRootFaceRefineRect as ut, DEFAULT_EVENTS_BAND_BUFFER_SEC as v, buildFfmpegArgs as vn, exportSubjectOf as vt, ExportRecordSchema as w, errMsg as wn, hfModelUrl as wt, EVENT_OWNER_TYPES as x, isSoftwareDecode as xn, gbToBytes as xt, DEFAULT_NATIVE_LEASE_SETTINGS as y, evaluateSensorEdge as yn, failureContributionCapability as yt, RecordingConfigSchema as z, parseJsonUnknown as zn, overlayClusterStepSettings as zt };
|