@camstack/addon-pipeline 1.2.373 → 1.2.374
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-UaaDgBow.mjs → custom-model-catalog-1LDuDw8S.mjs} +2 -2
- package/dist/{custom-model-catalog-M-ECFeNJ.js → custom-model-catalog-W0DHDhfo.js} +2 -2
- package/dist/detection-pipeline/index.js +4 -4
- package/dist/detection-pipeline/index.mjs +4 -4
- package/dist/{dist-QBVFmPYQ.js → dist-CBEUVjTS.js} +172 -24
- package/dist/{dist-BT3uSeR7.mjs → dist-CmdLCb_F.mjs} +167 -25
- package/dist/{model-catalogs-ChW0i2P6.mjs → model-catalogs-BnCdB2A3.mjs} +1 -1
- package/dist/{model-catalogs-C42Mo0jo.js → model-catalogs-D5YksA5A.js} +1 -1
- package/dist/motion-wasm/index.js +1 -1
- package/dist/motion-wasm/index.mjs +1 -1
- package/dist/{node-BVRFl1hZ.mjs → node-C3r8kiOo.mjs} +1 -1
- package/dist/{node-B6ev-Hqa.js → node-DMgi6pND.js} +1 -1
- package/dist/pipeline-runner/index.js +3 -3
- package/dist/pipeline-runner/index.mjs +3 -3
- package/dist/{process-memory-Cdf2A2qg.js → process-memory-GFR7fxpJ.js} +1 -1
- package/dist/{process-memory-DdeedEgU.mjs → process-memory-X0ws1SGJ.mjs} +1 -1
- package/dist/recorder/index.js +251 -94
- package/dist/recorder/index.mjs +249 -92
- package/dist/{segment-demux-js-Dp0OI-2n.js → segment-demux-js-CSQVhbFI.js} +1 -1
- package/dist/{segment-demux-js-8CfbEFeD.mjs → segment-demux-js-IKEO1XBz.mjs} +1 -1
- package/dist/stream-broker/_stub.js +2 -2
- package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-Dl3wrJnM.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-DPFTlVoW.mjs} +2 -2
- package/dist/stream-broker/{_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-C3ssSNKh.mjs → _virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-B7wsxLrK.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-BFRtKBOe.mjs → _virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-BohOb2Cl.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-Bq36nWMP.mjs → hostInit-BOp1_Hhk.mjs} +2 -2
- package/dist/stream-broker/index.js +683 -265
- package/dist/stream-broker/index.mjs +683 -265
- package/dist/stream-broker/remoteEntry.js +1 -1
- package/package.json +5 -1
- package/dist/retire-root-keys-Csb8z2f3.js +0 -338
- package/dist/retire-root-keys-DZvlso2l.mjs +0 -327
|
@@ -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-CBEUVjTS.js");
|
|
7
|
+
const require_model_catalogs = require("../model-catalogs-D5YksA5A.js");
|
|
8
|
+
const require_process_memory = require("../process-memory-GFR7fxpJ.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, An as errMsg, 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, An as errMsg, F as PoolMemoryWatchdog, Ln as audioChunkBytesPerSample, Lt as mapAudioLabelToMacro, Mn as BaseAddon, Q as audioAnalysisCapability, Un as hydrateSchema, Vn as expandAudioChunkToF32le, Yn as nodePin, cn as resolvePoolMemoryPolicy, fr as EventCategory, h as DEFAULT_AUDIO_ANALYZER_CONFIG, r as AUDIO_BACKEND_CHOICES } from "../dist-CmdLCb_F.mjs";
|
|
3
|
+
import { n as AUDIO_CLASSIFIER_MODELS } from "../model-catalogs-BnCdB2A3.mjs";
|
|
4
|
+
import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-X0ws1SGJ.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
|
-
import { b as DEVICE_BACKEND_TO_FORMAT, et as audioKindId, f as COCO_80_LABELS, i as AUDIO_MACRO_LABELS, jt as inferModelProvider, k as LABEL_SUPPLY_VOCABULARIES, p as COCO_TO_MACRO, pn as stepModelRunsOnFormat } from "./dist-
|
|
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 { b as DEVICE_BACKEND_TO_FORMAT, et as audioKindId, f as COCO_80_LABELS, i as AUDIO_MACRO_LABELS, jt as inferModelProvider, k as LABEL_SUPPLY_VOCABULARIES, p as COCO_TO_MACRO, pn as stepModelRunsOnFormat } from "./dist-CmdLCb_F.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-BnCdB2A3.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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_dist = require("./dist-
|
|
2
|
-
const require_model_catalogs = require("./model-catalogs-
|
|
1
|
+
const require_dist = require("./dist-CBEUVjTS.js");
|
|
2
|
+
const require_model_catalogs = require("./model-catalogs-D5YksA5A.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
|
|
@@ -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-CBEUVjTS.js");
|
|
7
|
+
const require_node = require("../node-DMgi6pND.js");
|
|
8
|
+
const require_custom_model_catalog = require("../custom-model-catalog-W0DHDhfo.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-GFR7fxpJ.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");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as __require } from "../chunk-DnnnRqeS.mjs";
|
|
2
|
-
import { An as errMsg$1, F as PoolMemoryWatchdog, Ft as loadContributionCapability, Gt as overlayClusterStepSettings, Hn as hfModelUrl,
|
|
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 { An as errMsg$1, F as PoolMemoryWatchdog, Ft as loadContributionCapability, Gt as overlayClusterStepSettings, Hn as hfModelUrl, Mn as BaseAddon, Nt as linkedLabelStepId, O as LABEL_SUPPLY_MACRO, Qn as sleep, Rn as createEvent, St as evaluateZoneRules, Un as hydrateSchema, Ut as modelBindingKey, X as applyModelBoundSettings, Xt as pipelineExecutorCapability, Yn as nodePin, _t as detectionPipelineCapability, cn as resolvePoolMemoryPolicy, ct as containingParentIndex, d as CLUSTER_MODEL_SCOPED_STEPS, dn as rootSuppliesOf, dr as union, fn as runtimeDevices$1, fr as EventCategory, ft as defaultDeviceFor$1, g as DEFAULT_CLUSTER_STEP_SETTINGS, n as APPLE_SA_TO_MACRO, pn as stepModelRunsOnFormat, q as YAMNET_TO_MACRO, qt as pickClusterStepSettings, rn as resolveClusterStepModelId, sr as object, st as collectModelBoundKeys, tr as array, ur as string, vn as supportedRuntimes$1, xt as enumerateInferenceDevices } from "../dist-CmdLCb_F.mjs";
|
|
3
|
+
import { s as readProcessCost } from "../node-C3r8kiOo.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-1LDuDw8S.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-X0ws1SGJ.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";
|
|
@@ -5387,7 +5387,7 @@ var ZodIssueCode = {
|
|
|
5387
5387
|
var ZodFirstPartyTypeKind;
|
|
5388
5388
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5389
5389
|
//#endregion
|
|
5390
|
-
//#region ../types/dist/sleep-
|
|
5390
|
+
//#region ../types/dist/sleep-bwsTj221.mjs
|
|
5391
5391
|
/**
|
|
5392
5392
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5393
5393
|
* window to float samples (D455).
|
|
@@ -6686,7 +6686,6 @@ function createHandle(raw, opts) {
|
|
|
6686
6686
|
const writeAddon = (patch) => write("addon", opts.addonTree(), void 0, patch, () => readStoredAddonBlob(raw), (p) => raw.writeAddonStore(p));
|
|
6687
6687
|
const readAddonStoreResult = raw.readAddonStoreResult;
|
|
6688
6688
|
const readAddonStoreKeyResult = raw.readAddonStoreKeyResult;
|
|
6689
|
-
const readDeviceStoreBatch = raw.readDeviceStoreBatch;
|
|
6690
6689
|
const overrides = {
|
|
6691
6690
|
readAddonStore: async () => resolveRead("addon", await raw.readAddonStore()),
|
|
6692
6691
|
...readAddonStoreResult !== void 0 ? { readAddonStoreResult: async () => {
|
|
@@ -6710,12 +6709,12 @@ function createHandle(raw, opts) {
|
|
|
6710
6709
|
};
|
|
6711
6710
|
} } : {},
|
|
6712
6711
|
readDeviceStore: async (deviceId) => resolveRead(`device:${deviceId}`, await raw.readDeviceStore(deviceId)),
|
|
6713
|
-
|
|
6714
|
-
const rows = await readDeviceStoreBatch
|
|
6712
|
+
readDeviceStoreBatch: async (deviceIds) => {
|
|
6713
|
+
const rows = await raw.readDeviceStoreBatch(deviceIds);
|
|
6715
6714
|
const out = /* @__PURE__ */ new Map();
|
|
6716
6715
|
for (const [deviceId, blob] of rows) out.set(deviceId, await resolveRead(`device:${deviceId}`, blob));
|
|
6717
6716
|
return out;
|
|
6718
|
-
}
|
|
6717
|
+
},
|
|
6719
6718
|
writeAddonStore: async (patch) => {
|
|
6720
6719
|
await writeAddon(patch);
|
|
6721
6720
|
},
|
|
@@ -7542,7 +7541,7 @@ var BaseAddon = class {
|
|
|
7542
7541
|
return this._addonSecretTree;
|
|
7543
7542
|
}
|
|
7544
7543
|
deviceSecretTree() {
|
|
7545
|
-
this._deviceSecretTree ??= secretTreeFromSchema(this.deviceSettingsSchema());
|
|
7544
|
+
this._deviceSecretTree ??= mergeSecretStatePaths(secretTreeFromSchema(this.deviceSettingsSchema()), this.secretStatePaths);
|
|
7546
7545
|
return this._deviceSecretTree;
|
|
7547
7546
|
}
|
|
7548
7547
|
/**
|
|
@@ -7618,42 +7617,135 @@ var BaseAddon = class {
|
|
|
7618
7617
|
this[timerOf] = timer;
|
|
7619
7618
|
}
|
|
7620
7619
|
/**
|
|
7621
|
-
* Wrap `ctx.settings.readAddonStore()` with a
|
|
7622
|
-
*
|
|
7623
|
-
* swap, or any race where the SqliteSettingsBackend is between shutdown and
|
|
7624
|
-
* re-initialize) doesn't propagate up into `initialize()` and leave the
|
|
7620
|
+
* Wrap `ctx.settings.readAddonStore()` with a retry budget so a transient
|
|
7621
|
+
* settings-store outage doesn't propagate up into `initialize()` and leave the
|
|
7625
7622
|
* addon permanently broken.
|
|
7626
7623
|
*
|
|
7627
|
-
*
|
|
7628
|
-
*
|
|
7629
|
-
* `
|
|
7624
|
+
* Two kinds of outage, two budgets:
|
|
7625
|
+
* - the store's own restart fingerprints (`SqliteSettingsBackend not
|
|
7626
|
+
* initialized`, `provider not available`): a short budget, then the addon
|
|
7627
|
+
* falls back to `{}` (defaults) - its first successful patch rehydrates;
|
|
7628
|
+
* - a TRANSPORT failure (the hub is restarting while this runner boots:
|
|
7629
|
+
* `discovery deadline exceeded`, `parent could not route`, a refused or
|
|
7630
|
+
* timed-out connection). Since D870 a runner's settings read THROWS instead
|
|
7631
|
+
* of answering `{}`, so without a budget a hub restart ends in a respawn
|
|
7632
|
+
* loop. A long, bounded budget; only after it the error propagates - the
|
|
7633
|
+
* addon never runs on defaults for a store it could not ask.
|
|
7634
|
+
* Anything else propagates immediately so real bugs surface.
|
|
7630
7635
|
*/
|
|
7631
7636
|
async readAddonStoreWithRetry() {
|
|
7632
7637
|
const settings = this.rawSettings();
|
|
7633
7638
|
if (!settings) return {};
|
|
7634
|
-
const delaysMs = [
|
|
7635
|
-
150,
|
|
7636
|
-
350,
|
|
7637
|
-
600,
|
|
7638
|
-
900
|
|
7639
|
-
];
|
|
7640
7639
|
let lastErr;
|
|
7641
|
-
for (let attempt = 0
|
|
7640
|
+
for (let attempt = 0;; attempt++) try {
|
|
7642
7641
|
const stored = await settings.readAddonStore() ?? {};
|
|
7643
7642
|
this.settingsStoreReady = true;
|
|
7644
7643
|
return stored;
|
|
7645
7644
|
} catch (err) {
|
|
7646
7645
|
lastErr = err;
|
|
7647
|
-
const
|
|
7648
|
-
if (
|
|
7649
|
-
|
|
7650
|
-
|
|
7646
|
+
const kind = classifyStoreError(err);
|
|
7647
|
+
if (kind === "permanent") throw err;
|
|
7648
|
+
const delay = (kind === "transport" ? TRANSPORT_RETRY_DELAYS_MS : RESTART_RETRY_DELAYS_MS)[attempt];
|
|
7649
|
+
if (delay === void 0) {
|
|
7650
|
+
if (kind === "transport") throw err;
|
|
7651
|
+
break;
|
|
7652
|
+
}
|
|
7653
|
+
await new Promise((r) => setTimeout(r, delay));
|
|
7651
7654
|
}
|
|
7652
7655
|
this.settingsStoreReady = false;
|
|
7653
7656
|
this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
|
|
7654
7657
|
return {};
|
|
7655
7658
|
}
|
|
7656
7659
|
};
|
|
7660
|
+
/** The settings store's own restart fingerprints. */
|
|
7661
|
+
var RESTART_RETRY_DELAYS_MS = [
|
|
7662
|
+
150,
|
|
7663
|
+
350,
|
|
7664
|
+
600,
|
|
7665
|
+
900
|
|
7666
|
+
];
|
|
7667
|
+
/** A hub restarting under a booting runner: ~100 s in total. */
|
|
7668
|
+
var TRANSPORT_RETRY_DELAYS_MS = [
|
|
7669
|
+
150,
|
|
7670
|
+
350,
|
|
7671
|
+
600,
|
|
7672
|
+
900,
|
|
7673
|
+
2e3,
|
|
7674
|
+
5e3,
|
|
7675
|
+
1e4,
|
|
7676
|
+
2e4,
|
|
7677
|
+
3e4,
|
|
7678
|
+
3e4
|
|
7679
|
+
];
|
|
7680
|
+
var RESTART_FINGERPRINTS = ["SqliteSettingsBackend not initialized", "provider not available"];
|
|
7681
|
+
/** Node / socket error codes of a connection that did not happen or broke. */
|
|
7682
|
+
var TRANSPORT_CODES = new Set([
|
|
7683
|
+
"ECONNREFUSED",
|
|
7684
|
+
"ECONNRESET",
|
|
7685
|
+
"ETIMEDOUT",
|
|
7686
|
+
"EPIPE",
|
|
7687
|
+
"EHOSTUNREACH",
|
|
7688
|
+
"ENETUNREACH"
|
|
7689
|
+
]);
|
|
7690
|
+
/** tRPC error codes that mean "the other side is not answering now", not "your call is wrong". */
|
|
7691
|
+
var UNAVAILABLE_TRPC_CODES = new Set([
|
|
7692
|
+
"TIMEOUT",
|
|
7693
|
+
"SERVICE_UNAVAILABLE",
|
|
7694
|
+
"BAD_GATEWAY",
|
|
7695
|
+
"GATEWAY_TIMEOUT"
|
|
7696
|
+
]);
|
|
7697
|
+
/** The exact phrases OUR transport raises when it cannot reach the hub. */
|
|
7698
|
+
var TRANSPORT_PHRASES = [
|
|
7699
|
+
"discovery deadline exceeded",
|
|
7700
|
+
"parent could not route child unowned cap call",
|
|
7701
|
+
"UDS request timed out after",
|
|
7702
|
+
"channel closed"
|
|
7703
|
+
];
|
|
7704
|
+
/** Moleculer error `type`s of a call that could not be served right now. */
|
|
7705
|
+
var MOLECULER_TRANSIENT_TYPES = new Set([
|
|
7706
|
+
"REQUEST_TIMEOUT",
|
|
7707
|
+
"SERVICE_NOT_FOUND",
|
|
7708
|
+
"SERVICE_NOT_AVAILABLE",
|
|
7709
|
+
"REQUEST_REJECTED",
|
|
7710
|
+
"BROKER_DISCONNECTED"
|
|
7711
|
+
]);
|
|
7712
|
+
function stringProp(value, key) {
|
|
7713
|
+
if (typeof value !== "object" || value === null) return void 0;
|
|
7714
|
+
const found = Reflect.get(value, key);
|
|
7715
|
+
return typeof found === "string" ? found : void 0;
|
|
7716
|
+
}
|
|
7717
|
+
/** The code an error carries: its own, its cause's, or a tRPC `data.code`. */
|
|
7718
|
+
function errorCode(err) {
|
|
7719
|
+
const out = {};
|
|
7720
|
+
const cause = typeof err === "object" && err !== null ? Reflect.get(err, "cause") : void 0;
|
|
7721
|
+
const data = typeof err === "object" && err !== null ? Reflect.get(err, "data") : void 0;
|
|
7722
|
+
const node = stringProp(err, "code") ?? stringProp(cause, "code");
|
|
7723
|
+
if (node !== void 0) out.node = node;
|
|
7724
|
+
const trpc = stringProp(data, "code");
|
|
7725
|
+
if (trpc !== void 0) out.trpc = trpc;
|
|
7726
|
+
return out;
|
|
7727
|
+
}
|
|
7728
|
+
/**
|
|
7729
|
+
* Is a settings read failure worth retrying, and with which budget? Only
|
|
7730
|
+
* EXPLICIT signals count: a socket error code, a tRPC "unavailable" code, or
|
|
7731
|
+
* one of the exact phrases our own transport raises. A message that merely
|
|
7732
|
+
* contains "timed out" or "unreachable" is not evidence of anything, and
|
|
7733
|
+
* `settings store not wired` is a wiring bug that retrying cannot fix.
|
|
7734
|
+
*/
|
|
7735
|
+
function classifyStoreError(err) {
|
|
7736
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
7737
|
+
if (RESTART_FINGERPRINTS.some((f) => message.includes(f))) return "restart";
|
|
7738
|
+
const code = errorCode(err);
|
|
7739
|
+
if (code.node !== void 0 && TRANSPORT_CODES.has(code.node)) return "transport";
|
|
7740
|
+
if (code.trpc !== void 0 && UNAVAILABLE_TRPC_CODES.has(code.trpc)) return "transport";
|
|
7741
|
+
if (typeof err === "object" && err !== null) {
|
|
7742
|
+
if (Reflect.get(err, "retryable") === true) return "transport";
|
|
7743
|
+
const type = stringProp(err, "type");
|
|
7744
|
+
if (type !== void 0 && MOLECULER_TRANSIENT_TYPES.has(type)) return "transport";
|
|
7745
|
+
}
|
|
7746
|
+
if (TRANSPORT_PHRASES.some((f) => message.includes(f))) return "transport";
|
|
7747
|
+
return "permanent";
|
|
7748
|
+
}
|
|
7657
7749
|
/**
|
|
7658
7750
|
* Collect the keys of every field marked `perNode: true`, recursing into
|
|
7659
7751
|
* layout containers (`group` fields and `sub-tabs` tabs) the same way
|
|
@@ -18806,6 +18898,28 @@ id: union([string(), number()]) }), {
|
|
|
18806
18898
|
kind: "mutation",
|
|
18807
18899
|
auth: "admin"
|
|
18808
18900
|
});
|
|
18901
|
+
/** One table of the settings database. */
|
|
18902
|
+
var StorageTableSchema = object({
|
|
18903
|
+
/** The table's full name, e.g. `recorder:addon-settings` or `addon-device-settings`. */
|
|
18904
|
+
name: string(),
|
|
18905
|
+
/** The owner prefix of a scoped name (`recorder` for `recorder:addon-settings`), else null. */
|
|
18906
|
+
owner: string().nullable(),
|
|
18907
|
+
rows: number().int().nonnegative(),
|
|
18908
|
+
/** Bytes the table's pages occupy (`dbstat`); null when the engine cannot measure. */
|
|
18909
|
+
bytes: number().int().nonnegative().nullable(),
|
|
18910
|
+
/** Declared by an addon since this engine process started (a running addon claims it). */
|
|
18911
|
+
declaredThisBoot: boolean()
|
|
18912
|
+
});
|
|
18913
|
+
method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: array(StorageTableSchema) }), { auth: "admin" }), method(object({
|
|
18914
|
+
collection: string().min(1),
|
|
18915
|
+
expectRows: number().int().nonnegative()
|
|
18916
|
+
}), object({
|
|
18917
|
+
dropped: literal(true),
|
|
18918
|
+
rows: number().int().nonnegative()
|
|
18919
|
+
}), {
|
|
18920
|
+
kind: "mutation",
|
|
18921
|
+
auth: "admin"
|
|
18922
|
+
});
|
|
18809
18923
|
/**
|
|
18810
18924
|
* `keychain` — the hub's encrypted store of secret values (D787).
|
|
18811
18925
|
*
|
|
@@ -19347,6 +19461,16 @@ method(object({}), KeychainStatusSchema, { auth: "admin" }), method(object({}),
|
|
|
19347
19461
|
kind: "mutation",
|
|
19348
19462
|
auth: "admin",
|
|
19349
19463
|
caller: "required"
|
|
19464
|
+
}), method(object({
|
|
19465
|
+
ref: string().min(1),
|
|
19466
|
+
value: string().min(1)
|
|
19467
|
+
}), object({
|
|
19468
|
+
ref: string(),
|
|
19469
|
+
version: number().int()
|
|
19470
|
+
}), {
|
|
19471
|
+
kind: "mutation",
|
|
19472
|
+
auth: "admin",
|
|
19473
|
+
caller: "required"
|
|
19350
19474
|
}), method(object({ refs: array(string().min(1)).max(1e3) }), object({
|
|
19351
19475
|
deleted: array(string()).readonly(),
|
|
19352
19476
|
kept: array(object({
|
|
@@ -68644,6 +68768,12 @@ Object.freeze({
|
|
|
68644
68768
|
addonId: null,
|
|
68645
68769
|
access: "create"
|
|
68646
68770
|
},
|
|
68771
|
+
"keychainAdmin.importSecret": {
|
|
68772
|
+
capName: "keychain-admin",
|
|
68773
|
+
capScope: "system",
|
|
68774
|
+
addonId: null,
|
|
68775
|
+
access: "create"
|
|
68776
|
+
},
|
|
68647
68777
|
"keychainAdmin.listAudit": {
|
|
68648
68778
|
capName: "keychain-admin",
|
|
68649
68779
|
capScope: "system",
|
|
@@ -72430,6 +72560,18 @@ Object.freeze({
|
|
|
72430
72560
|
addonId: null,
|
|
72431
72561
|
access: "create"
|
|
72432
72562
|
},
|
|
72563
|
+
"storageAdmin.dropCollection": {
|
|
72564
|
+
capName: "storage-admin",
|
|
72565
|
+
capScope: "system",
|
|
72566
|
+
addonId: null,
|
|
72567
|
+
access: "delete"
|
|
72568
|
+
},
|
|
72569
|
+
"storageAdmin.listTables": {
|
|
72570
|
+
capName: "storage-admin",
|
|
72571
|
+
capScope: "system",
|
|
72572
|
+
addonId: null,
|
|
72573
|
+
access: "view"
|
|
72574
|
+
},
|
|
72433
72575
|
"storageEvictable.evict": {
|
|
72434
72576
|
capName: "storage-evictable",
|
|
72435
72577
|
capScope: "system",
|
|
@@ -79539,6 +79681,12 @@ Object.defineProperty(exports, "isFirstLevelMacroClass", {
|
|
|
79539
79681
|
return isFirstLevelMacroClass;
|
|
79540
79682
|
}
|
|
79541
79683
|
});
|
|
79684
|
+
Object.defineProperty(exports, "isSecretMarker", {
|
|
79685
|
+
enumerable: true,
|
|
79686
|
+
get: function() {
|
|
79687
|
+
return isSecretMarker;
|
|
79688
|
+
}
|
|
79689
|
+
});
|
|
79542
79690
|
Object.defineProperty(exports, "isSoftwareDecode", {
|
|
79543
79691
|
enumerable: true,
|
|
79544
79692
|
get: function() {
|
|
@@ -5387,7 +5387,7 @@ var ZodIssueCode = {
|
|
|
5387
5387
|
var ZodFirstPartyTypeKind;
|
|
5388
5388
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5389
5389
|
//#endregion
|
|
5390
|
-
//#region ../types/dist/sleep-
|
|
5390
|
+
//#region ../types/dist/sleep-bwsTj221.mjs
|
|
5391
5391
|
/**
|
|
5392
5392
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5393
5393
|
* window to float samples (D455).
|
|
@@ -6686,7 +6686,6 @@ function createHandle(raw, opts) {
|
|
|
6686
6686
|
const writeAddon = (patch) => write("addon", opts.addonTree(), void 0, patch, () => readStoredAddonBlob(raw), (p) => raw.writeAddonStore(p));
|
|
6687
6687
|
const readAddonStoreResult = raw.readAddonStoreResult;
|
|
6688
6688
|
const readAddonStoreKeyResult = raw.readAddonStoreKeyResult;
|
|
6689
|
-
const readDeviceStoreBatch = raw.readDeviceStoreBatch;
|
|
6690
6689
|
const overrides = {
|
|
6691
6690
|
readAddonStore: async () => resolveRead("addon", await raw.readAddonStore()),
|
|
6692
6691
|
...readAddonStoreResult !== void 0 ? { readAddonStoreResult: async () => {
|
|
@@ -6710,12 +6709,12 @@ function createHandle(raw, opts) {
|
|
|
6710
6709
|
};
|
|
6711
6710
|
} } : {},
|
|
6712
6711
|
readDeviceStore: async (deviceId) => resolveRead(`device:${deviceId}`, await raw.readDeviceStore(deviceId)),
|
|
6713
|
-
|
|
6714
|
-
const rows = await readDeviceStoreBatch
|
|
6712
|
+
readDeviceStoreBatch: async (deviceIds) => {
|
|
6713
|
+
const rows = await raw.readDeviceStoreBatch(deviceIds);
|
|
6715
6714
|
const out = /* @__PURE__ */ new Map();
|
|
6716
6715
|
for (const [deviceId, blob] of rows) out.set(deviceId, await resolveRead(`device:${deviceId}`, blob));
|
|
6717
6716
|
return out;
|
|
6718
|
-
}
|
|
6717
|
+
},
|
|
6719
6718
|
writeAddonStore: async (patch) => {
|
|
6720
6719
|
await writeAddon(patch);
|
|
6721
6720
|
},
|
|
@@ -7542,7 +7541,7 @@ var BaseAddon = class {
|
|
|
7542
7541
|
return this._addonSecretTree;
|
|
7543
7542
|
}
|
|
7544
7543
|
deviceSecretTree() {
|
|
7545
|
-
this._deviceSecretTree ??= secretTreeFromSchema(this.deviceSettingsSchema());
|
|
7544
|
+
this._deviceSecretTree ??= mergeSecretStatePaths(secretTreeFromSchema(this.deviceSettingsSchema()), this.secretStatePaths);
|
|
7546
7545
|
return this._deviceSecretTree;
|
|
7547
7546
|
}
|
|
7548
7547
|
/**
|
|
@@ -7618,42 +7617,135 @@ var BaseAddon = class {
|
|
|
7618
7617
|
this[timerOf] = timer;
|
|
7619
7618
|
}
|
|
7620
7619
|
/**
|
|
7621
|
-
* Wrap `ctx.settings.readAddonStore()` with a
|
|
7622
|
-
*
|
|
7623
|
-
* swap, or any race where the SqliteSettingsBackend is between shutdown and
|
|
7624
|
-
* re-initialize) doesn't propagate up into `initialize()` and leave the
|
|
7620
|
+
* Wrap `ctx.settings.readAddonStore()` with a retry budget so a transient
|
|
7621
|
+
* settings-store outage doesn't propagate up into `initialize()` and leave the
|
|
7625
7622
|
* addon permanently broken.
|
|
7626
7623
|
*
|
|
7627
|
-
*
|
|
7628
|
-
*
|
|
7629
|
-
* `
|
|
7624
|
+
* Two kinds of outage, two budgets:
|
|
7625
|
+
* - the store's own restart fingerprints (`SqliteSettingsBackend not
|
|
7626
|
+
* initialized`, `provider not available`): a short budget, then the addon
|
|
7627
|
+
* falls back to `{}` (defaults) - its first successful patch rehydrates;
|
|
7628
|
+
* - a TRANSPORT failure (the hub is restarting while this runner boots:
|
|
7629
|
+
* `discovery deadline exceeded`, `parent could not route`, a refused or
|
|
7630
|
+
* timed-out connection). Since D870 a runner's settings read THROWS instead
|
|
7631
|
+
* of answering `{}`, so without a budget a hub restart ends in a respawn
|
|
7632
|
+
* loop. A long, bounded budget; only after it the error propagates - the
|
|
7633
|
+
* addon never runs on defaults for a store it could not ask.
|
|
7634
|
+
* Anything else propagates immediately so real bugs surface.
|
|
7630
7635
|
*/
|
|
7631
7636
|
async readAddonStoreWithRetry() {
|
|
7632
7637
|
const settings = this.rawSettings();
|
|
7633
7638
|
if (!settings) return {};
|
|
7634
|
-
const delaysMs = [
|
|
7635
|
-
150,
|
|
7636
|
-
350,
|
|
7637
|
-
600,
|
|
7638
|
-
900
|
|
7639
|
-
];
|
|
7640
7639
|
let lastErr;
|
|
7641
|
-
for (let attempt = 0
|
|
7640
|
+
for (let attempt = 0;; attempt++) try {
|
|
7642
7641
|
const stored = await settings.readAddonStore() ?? {};
|
|
7643
7642
|
this.settingsStoreReady = true;
|
|
7644
7643
|
return stored;
|
|
7645
7644
|
} catch (err) {
|
|
7646
7645
|
lastErr = err;
|
|
7647
|
-
const
|
|
7648
|
-
if (
|
|
7649
|
-
|
|
7650
|
-
|
|
7646
|
+
const kind = classifyStoreError(err);
|
|
7647
|
+
if (kind === "permanent") throw err;
|
|
7648
|
+
const delay = (kind === "transport" ? TRANSPORT_RETRY_DELAYS_MS : RESTART_RETRY_DELAYS_MS)[attempt];
|
|
7649
|
+
if (delay === void 0) {
|
|
7650
|
+
if (kind === "transport") throw err;
|
|
7651
|
+
break;
|
|
7652
|
+
}
|
|
7653
|
+
await new Promise((r) => setTimeout(r, delay));
|
|
7651
7654
|
}
|
|
7652
7655
|
this.settingsStoreReady = false;
|
|
7653
7656
|
this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
|
|
7654
7657
|
return {};
|
|
7655
7658
|
}
|
|
7656
7659
|
};
|
|
7660
|
+
/** The settings store's own restart fingerprints. */
|
|
7661
|
+
var RESTART_RETRY_DELAYS_MS = [
|
|
7662
|
+
150,
|
|
7663
|
+
350,
|
|
7664
|
+
600,
|
|
7665
|
+
900
|
|
7666
|
+
];
|
|
7667
|
+
/** A hub restarting under a booting runner: ~100 s in total. */
|
|
7668
|
+
var TRANSPORT_RETRY_DELAYS_MS = [
|
|
7669
|
+
150,
|
|
7670
|
+
350,
|
|
7671
|
+
600,
|
|
7672
|
+
900,
|
|
7673
|
+
2e3,
|
|
7674
|
+
5e3,
|
|
7675
|
+
1e4,
|
|
7676
|
+
2e4,
|
|
7677
|
+
3e4,
|
|
7678
|
+
3e4
|
|
7679
|
+
];
|
|
7680
|
+
var RESTART_FINGERPRINTS = ["SqliteSettingsBackend not initialized", "provider not available"];
|
|
7681
|
+
/** Node / socket error codes of a connection that did not happen or broke. */
|
|
7682
|
+
var TRANSPORT_CODES = new Set([
|
|
7683
|
+
"ECONNREFUSED",
|
|
7684
|
+
"ECONNRESET",
|
|
7685
|
+
"ETIMEDOUT",
|
|
7686
|
+
"EPIPE",
|
|
7687
|
+
"EHOSTUNREACH",
|
|
7688
|
+
"ENETUNREACH"
|
|
7689
|
+
]);
|
|
7690
|
+
/** tRPC error codes that mean "the other side is not answering now", not "your call is wrong". */
|
|
7691
|
+
var UNAVAILABLE_TRPC_CODES = new Set([
|
|
7692
|
+
"TIMEOUT",
|
|
7693
|
+
"SERVICE_UNAVAILABLE",
|
|
7694
|
+
"BAD_GATEWAY",
|
|
7695
|
+
"GATEWAY_TIMEOUT"
|
|
7696
|
+
]);
|
|
7697
|
+
/** The exact phrases OUR transport raises when it cannot reach the hub. */
|
|
7698
|
+
var TRANSPORT_PHRASES = [
|
|
7699
|
+
"discovery deadline exceeded",
|
|
7700
|
+
"parent could not route child unowned cap call",
|
|
7701
|
+
"UDS request timed out after",
|
|
7702
|
+
"channel closed"
|
|
7703
|
+
];
|
|
7704
|
+
/** Moleculer error `type`s of a call that could not be served right now. */
|
|
7705
|
+
var MOLECULER_TRANSIENT_TYPES = new Set([
|
|
7706
|
+
"REQUEST_TIMEOUT",
|
|
7707
|
+
"SERVICE_NOT_FOUND",
|
|
7708
|
+
"SERVICE_NOT_AVAILABLE",
|
|
7709
|
+
"REQUEST_REJECTED",
|
|
7710
|
+
"BROKER_DISCONNECTED"
|
|
7711
|
+
]);
|
|
7712
|
+
function stringProp(value, key) {
|
|
7713
|
+
if (typeof value !== "object" || value === null) return void 0;
|
|
7714
|
+
const found = Reflect.get(value, key);
|
|
7715
|
+
return typeof found === "string" ? found : void 0;
|
|
7716
|
+
}
|
|
7717
|
+
/** The code an error carries: its own, its cause's, or a tRPC `data.code`. */
|
|
7718
|
+
function errorCode(err) {
|
|
7719
|
+
const out = {};
|
|
7720
|
+
const cause = typeof err === "object" && err !== null ? Reflect.get(err, "cause") : void 0;
|
|
7721
|
+
const data = typeof err === "object" && err !== null ? Reflect.get(err, "data") : void 0;
|
|
7722
|
+
const node = stringProp(err, "code") ?? stringProp(cause, "code");
|
|
7723
|
+
if (node !== void 0) out.node = node;
|
|
7724
|
+
const trpc = stringProp(data, "code");
|
|
7725
|
+
if (trpc !== void 0) out.trpc = trpc;
|
|
7726
|
+
return out;
|
|
7727
|
+
}
|
|
7728
|
+
/**
|
|
7729
|
+
* Is a settings read failure worth retrying, and with which budget? Only
|
|
7730
|
+
* EXPLICIT signals count: a socket error code, a tRPC "unavailable" code, or
|
|
7731
|
+
* one of the exact phrases our own transport raises. A message that merely
|
|
7732
|
+
* contains "timed out" or "unreachable" is not evidence of anything, and
|
|
7733
|
+
* `settings store not wired` is a wiring bug that retrying cannot fix.
|
|
7734
|
+
*/
|
|
7735
|
+
function classifyStoreError(err) {
|
|
7736
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
7737
|
+
if (RESTART_FINGERPRINTS.some((f) => message.includes(f))) return "restart";
|
|
7738
|
+
const code = errorCode(err);
|
|
7739
|
+
if (code.node !== void 0 && TRANSPORT_CODES.has(code.node)) return "transport";
|
|
7740
|
+
if (code.trpc !== void 0 && UNAVAILABLE_TRPC_CODES.has(code.trpc)) return "transport";
|
|
7741
|
+
if (typeof err === "object" && err !== null) {
|
|
7742
|
+
if (Reflect.get(err, "retryable") === true) return "transport";
|
|
7743
|
+
const type = stringProp(err, "type");
|
|
7744
|
+
if (type !== void 0 && MOLECULER_TRANSIENT_TYPES.has(type)) return "transport";
|
|
7745
|
+
}
|
|
7746
|
+
if (TRANSPORT_PHRASES.some((f) => message.includes(f))) return "transport";
|
|
7747
|
+
return "permanent";
|
|
7748
|
+
}
|
|
7657
7749
|
/**
|
|
7658
7750
|
* Collect the keys of every field marked `perNode: true`, recursing into
|
|
7659
7751
|
* layout containers (`group` fields and `sub-tabs` tabs) the same way
|
|
@@ -18806,6 +18898,28 @@ id: union([string(), number()]) }), {
|
|
|
18806
18898
|
kind: "mutation",
|
|
18807
18899
|
auth: "admin"
|
|
18808
18900
|
});
|
|
18901
|
+
/** One table of the settings database. */
|
|
18902
|
+
var StorageTableSchema = object({
|
|
18903
|
+
/** The table's full name, e.g. `recorder:addon-settings` or `addon-device-settings`. */
|
|
18904
|
+
name: string(),
|
|
18905
|
+
/** The owner prefix of a scoped name (`recorder` for `recorder:addon-settings`), else null. */
|
|
18906
|
+
owner: string().nullable(),
|
|
18907
|
+
rows: number().int().nonnegative(),
|
|
18908
|
+
/** Bytes the table's pages occupy (`dbstat`); null when the engine cannot measure. */
|
|
18909
|
+
bytes: number().int().nonnegative().nullable(),
|
|
18910
|
+
/** Declared by an addon since this engine process started (a running addon claims it). */
|
|
18911
|
+
declaredThisBoot: boolean()
|
|
18912
|
+
});
|
|
18913
|
+
method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: array(StorageTableSchema) }), { auth: "admin" }), method(object({
|
|
18914
|
+
collection: string().min(1),
|
|
18915
|
+
expectRows: number().int().nonnegative()
|
|
18916
|
+
}), object({
|
|
18917
|
+
dropped: literal(true),
|
|
18918
|
+
rows: number().int().nonnegative()
|
|
18919
|
+
}), {
|
|
18920
|
+
kind: "mutation",
|
|
18921
|
+
auth: "admin"
|
|
18922
|
+
});
|
|
18809
18923
|
/**
|
|
18810
18924
|
* `keychain` — the hub's encrypted store of secret values (D787).
|
|
18811
18925
|
*
|
|
@@ -19347,6 +19461,16 @@ method(object({}), KeychainStatusSchema, { auth: "admin" }), method(object({}),
|
|
|
19347
19461
|
kind: "mutation",
|
|
19348
19462
|
auth: "admin",
|
|
19349
19463
|
caller: "required"
|
|
19464
|
+
}), method(object({
|
|
19465
|
+
ref: string().min(1),
|
|
19466
|
+
value: string().min(1)
|
|
19467
|
+
}), object({
|
|
19468
|
+
ref: string(),
|
|
19469
|
+
version: number().int()
|
|
19470
|
+
}), {
|
|
19471
|
+
kind: "mutation",
|
|
19472
|
+
auth: "admin",
|
|
19473
|
+
caller: "required"
|
|
19350
19474
|
}), method(object({ refs: array(string().min(1)).max(1e3) }), object({
|
|
19351
19475
|
deleted: array(string()).readonly(),
|
|
19352
19476
|
kept: array(object({
|
|
@@ -68644,6 +68768,12 @@ Object.freeze({
|
|
|
68644
68768
|
addonId: null,
|
|
68645
68769
|
access: "create"
|
|
68646
68770
|
},
|
|
68771
|
+
"keychainAdmin.importSecret": {
|
|
68772
|
+
capName: "keychain-admin",
|
|
68773
|
+
capScope: "system",
|
|
68774
|
+
addonId: null,
|
|
68775
|
+
access: "create"
|
|
68776
|
+
},
|
|
68647
68777
|
"keychainAdmin.listAudit": {
|
|
68648
68778
|
capName: "keychain-admin",
|
|
68649
68779
|
capScope: "system",
|
|
@@ -72430,6 +72560,18 @@ Object.freeze({
|
|
|
72430
72560
|
addonId: null,
|
|
72431
72561
|
access: "create"
|
|
72432
72562
|
},
|
|
72563
|
+
"storageAdmin.dropCollection": {
|
|
72564
|
+
capName: "storage-admin",
|
|
72565
|
+
capScope: "system",
|
|
72566
|
+
addonId: null,
|
|
72567
|
+
access: "delete"
|
|
72568
|
+
},
|
|
72569
|
+
"storageAdmin.listTables": {
|
|
72570
|
+
capName: "storage-admin",
|
|
72571
|
+
capScope: "system",
|
|
72572
|
+
addonId: null,
|
|
72573
|
+
access: "view"
|
|
72574
|
+
},
|
|
72433
72575
|
"storageEvictable.evict": {
|
|
72434
72576
|
capName: "storage-evictable",
|
|
72435
72577
|
capScope: "system",
|
|
@@ -78855,4 +78997,4 @@ function armRemovalReconcile(opts) {
|
|
|
78855
78997
|
return () => clearInterval(timer);
|
|
78856
78998
|
}
|
|
78857
78999
|
//#endregion
|
|
78858
|
-
export { audioAnalyzerCapability as $,
|
|
79000
|
+
export { audioAnalyzerCapability as $, userError as $n, recordingArchiveCapability as $t, NativeLeaseAdmissionSchema as A, errMsg as An, gifFromMp4Args as At, RECORDING_SOURCE_CAMSTACK_ADDON as B, defineCustomActions as Bn, memoizePinnedFfmpeg as Bt, EVENT_PAD_MS as C, Fmp4BoxSplitter as Cn, evictionPolicyForMode as Ct, G711_SCALE_CORRECTION_DB as D, isSoftwareDecode as Dn, ffmpegRate as Dt, FailureCounters as E, invocationFromEncodeProfile as En, failureContributionCapability as Et, PoolMemoryWatchdog as F, HF_REPO as Fn, loadContributionCapability as Ft, VIDEOCLIPS_MAX_OFFER_BYTES as G, isSecretMarker as Gn, overlayClusterStepSettings as Gt, RecordingConfigSchema as H, hfModelUrl as Hn, modeMayWrite as Ht, RATE_CONTROL_RELAXED as I, MODEL_FORMATS as In, logChannelsCapability as It, addonWidgetsSourceCapability as J, maskUrlCredentials as Jn, pickDetailCropConvention as Jt, VISIT_MERGE_GAP_MS as K, makeProfileBrokerId as Kn, parseProcStatus as Kt, RATE_CONTROL_TIGHT as L, audioChunkBytesPerSample as Ln, mapAudioLabelToMacro as Lt, NodeBenchRunnerInputSchema as M, BaseAddon as Mn, isFirstLevelMacroClass as Mt, OpsLogEntrySchema as N, CAM_PROFILE_ORDER as Nn, linkedLabelStepId as Nt, LABEL_SUPPLY_MACRO as O, DeviceFeature as On, gbToBytes as Ot, PIPELINE_RAMP as P, CamProfileSchema as Pn, linkedStepOf as Pt, audioAnalysisCapability as Q, sleep as Qn, rankStreams as Qt, RECORDING_EXPORT_MAX_READ_BYTES as R, createEvent as Rn, mayReadLocation as Rt, EVENT_OWNER_TYPES as S, DEFAULT_FIRST_SIGHTING_FRESHNESS_MS as Sn, evaluateZoneRules as St, ExportRecordSchema as T, evaluateSensorEdge as Tn, exportSubjectOf as Tt, RecordingSignalStatusSchema as U, hydrateSchema as Un, modelBindingKey as Ut, ROOT_SUPPLIABLE_STEP_IDS as V, expandAudioChunkToF32le as Vn, migrateLegacyDeviceSignalConfig as Vt, RingBuffer as W, isEvent as Wn, motionDetectionCapability as Wt, applyModelBoundSettings as X, parseProfileBrokerId as Xn, pipelineExecutorCapability as Xt, allowedSuppliedEffect as Y, nodePin as Yn, pickNativeLeaseOverride as Yt, armRemovalReconcile as Z, selectAssignedProfileSlots as Zn, pipelineRunnerCapability as Zt, DEFAULT_DETAIL_CROP_CONVENTION as _, stripRetiredBandPreBufferSec as _n, detectionPipelineCapability as _t, BackgroundRunRegistry as a, resolveEgressDecodeHwAccel as an, literal as ar, clipExportFailure as at, DEVICE_BACKEND_TO_FORMAT as b, webrtcSessionCapability as bn, egressTransportFromRequest as bt, CLIP_STILL_REASON_CODE_HEADER as c, resolvePoolMemoryPolicy as cn, preprocess as cr, containingParentIndex as ct, CLUSTER_MODEL_SCOPED_STEPS as d, rootSuppliesOf as dn, union as dr, declareLogChannel as dt, recordingCapability as en, _enum as er, audioKindId as et, COCO_80_LABELS as f, runtimeDevices as fn, EventCategory as fr, defaultDeviceFor as ft, DEFAULT_CLUSTER_STEP_SETTINGS as g, streamBrokerCapability as gn, deriveRootFaceRefineRect as gt, DEFAULT_AUDIO_ANALYZER_CONFIG as h, storageOccupancyCapability as hn, deriveRecordingMode as ht, AUDIO_MACRO_LABELS as i, resolveCreateExportSubject as in, lazy as ir, cameraStreamsCapability as it, NativeLeaseSettingsSchema as j, BOOT_RECOVERY_BACKOFF_MS as jn, inferModelProvider as jt, LABEL_SUPPLY_VOCABULARIES as k, DeviceType as kn, gifDeriveSpeed as kt, CLIP_STILL_REASON_HEADER as l, resolveRecordingProfiles as ln, record as lr, createHwAccelCache as lt, CROP_SUPPLY_SOURCES as m, storageEvictableCapability as mn, deriveDetailCropRect as mt, APPLE_SA_TO_MACRO as n, recordingSignalCapability as nn, boolean as nr, buildBenchStepTree as nt, BatteryStatusSchema as o, resolveLocationMode as on, number as or, clipExportFailureOf as ot, COCO_TO_MACRO as p, stepModelRunsOnFormat as pn, deriveBatteryPresence as pt, YAMNET_TO_MACRO as q, makeSourceBrokerId as qn, pickClusterStepSettings as qt, AUDIO_BACKEND_CHOICES as r, resolveClusterStepModelId as rn, discriminatedUnion as rr, cameraOwnsMotionViaSensor as rt, CLIP_BROKER_PACED_RATES as s, resolveModelBoundSetting as sn, object as sr, collectModelBoundKeys as st, APPEARANCE_BLOCKS as t, recordingExportCapability as tn, array as tr, batteryCapability as tt, CLIP_STREAM_TRANSPORT_HEADER as u, resolveRootSupply as un, string as ur, createLogChannelsProvider as ut, DEFAULT_EVENTS_BAND_BUFFER_SEC as v, supportedRuntimes as vn, deviceRemovalHookCapability as vt, EncodeProfileSchema as w, buildFfmpegArgs as wn, evictionPolicyOfLocation as wt, DEVICE_RAMP as x, AUDIO_PRESETS as xn, enumerateInferenceDevices as xt, DEFAULT_NATIVE_LEASE_SETTINGS as y, videoclipsCapability as yn, egressTranscodeSharingKey as yt, RECORDING_SOURCE_CAMSTACK as z, customAction as zn, mayWriteToLocation as zt };
|