@camstack/addon-pipeline 1.2.372 → 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-C6C2cSwd.mjs → custom-model-catalog-1LDuDw8S.mjs} +2 -2
- package/dist/{custom-model-catalog-n9v8MUL6.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-DmuX7IFJ.js → dist-CBEUVjTS.js} +197 -29
- package/dist/{dist-8AEiKOFO.mjs → dist-CmdLCb_F.mjs} +192 -30
- package/dist/{model-catalogs-BSWAHZJh.mjs → model-catalogs-BnCdB2A3.mjs} +1 -1
- package/dist/{model-catalogs-DO4aA1qo.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-Bd4va7c-.mjs → node-C3r8kiOo.mjs} +1 -1
- package/dist/{node-DqA6nD1z.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-2OQ2oxrz.js → process-memory-GFR7fxpJ.js} +1 -1
- package/dist/{process-memory-BvS2Z88w.mjs → process-memory-X0ws1SGJ.mjs} +1 -1
- package/dist/recorder/index.js +267 -94
- package/dist/recorder/index.mjs +265 -92
- package/dist/{segment-demux-js-BkGK1rhu.js → segment-demux-js-CSQVhbFI.js} +1 -1
- package/dist/{segment-demux-js-By9MLn_g.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-DjoAY42S.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-nua-KuDg.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-DPiGNc5u.mjs → hostInit-BOp1_Hhk.mjs} +2 -2
- package/dist/stream-broker/index.js +1087 -334
- package/dist/stream-broker/index.mjs +1087 -334
- 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
|
|
@@ -13923,11 +14015,10 @@ var ClipModelMetaSchema = object({
|
|
|
13923
14015
|
/**
|
|
13924
14016
|
* The `vector-store` index this model's vectors live in. ONE feature space
|
|
13925
14017
|
* per index: two models share an index only when their vectors are ranked
|
|
13926
|
-
* against each other, which for CLIP means never across families.
|
|
13927
|
-
*
|
|
13928
|
-
* `modelId`); any other model gets its own.
|
|
14018
|
+
* against each other, which for CLIP means never across families. Every
|
|
14019
|
+
* model gets its own.
|
|
13929
14020
|
*/
|
|
13930
|
-
vectorIndex: string().regex(/^object-clip
|
|
14021
|
+
vectorIndex: string().regex(/^object-clip-[a-z0-9][a-z0-9-]*$/),
|
|
13931
14022
|
/**
|
|
13932
14023
|
* The text encoder's tokenizer, a declared SIBLING file of its onnx. The name
|
|
13933
14024
|
* must be unique per tokenizer: every model's siblings land in ONE flat
|
|
@@ -18807,6 +18898,28 @@ id: union([string(), number()]) }), {
|
|
|
18807
18898
|
kind: "mutation",
|
|
18808
18899
|
auth: "admin"
|
|
18809
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
|
+
});
|
|
18810
18923
|
/**
|
|
18811
18924
|
* `keychain` — the hub's encrypted store of secret values (D787).
|
|
18812
18925
|
*
|
|
@@ -19348,6 +19461,16 @@ method(object({}), KeychainStatusSchema, { auth: "admin" }), method(object({}),
|
|
|
19348
19461
|
kind: "mutation",
|
|
19349
19462
|
auth: "admin",
|
|
19350
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"
|
|
19351
19474
|
}), method(object({ refs: array(string().min(1)).max(1e3) }), object({
|
|
19352
19475
|
deleted: array(string()).readonly(),
|
|
19353
19476
|
kept: array(object({
|
|
@@ -59016,7 +59139,19 @@ var TlsStatusSchema = object({
|
|
|
59016
59139
|
sans: array(string()),
|
|
59017
59140
|
caCertPem: string().nullable(),
|
|
59018
59141
|
reissueError: string().nullable(),
|
|
59019
|
-
restartRequired: boolean()
|
|
59142
|
+
restartRequired: boolean(),
|
|
59143
|
+
/** An uploaded certificate is served but no CA is kept for it and it is not publicly signed (D873). */
|
|
59144
|
+
caMissing: boolean(),
|
|
59145
|
+
/** Does the hub's own generated CA carry a critical name constraint? `null` while it has none. */
|
|
59146
|
+
localCaConstrained: boolean().nullable(),
|
|
59147
|
+
/** ISO time the generated CA was replaced by a constrained one; devices must re-download it. */
|
|
59148
|
+
caReplacedAt: string().nullable(),
|
|
59149
|
+
/** The uploaded certificate kept on disk, selectable again after "Revert to generated". */
|
|
59150
|
+
storedUpload: object({
|
|
59151
|
+
leafFingerprintSha256: string(),
|
|
59152
|
+
validTo: string(),
|
|
59153
|
+
hasCa: boolean()
|
|
59154
|
+
}).nullable()
|
|
59020
59155
|
});
|
|
59021
59156
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
59022
59157
|
/**
|
|
@@ -59072,6 +59207,9 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
59072
59207
|
}), method(_void(), object({ pem: string() })), method(_void(), TlsStatusSchema, {
|
|
59073
59208
|
kind: "mutation",
|
|
59074
59209
|
auth: "admin"
|
|
59210
|
+
}), method(_void(), TlsStatusSchema, {
|
|
59211
|
+
kind: "mutation",
|
|
59212
|
+
auth: "admin"
|
|
59075
59213
|
});
|
|
59076
59214
|
object({
|
|
59077
59215
|
/** Lifecycle state of the lock. `jammed` means the motor reported
|
|
@@ -68630,6 +68768,12 @@ Object.freeze({
|
|
|
68630
68768
|
addonId: null,
|
|
68631
68769
|
access: "create"
|
|
68632
68770
|
},
|
|
68771
|
+
"keychainAdmin.importSecret": {
|
|
68772
|
+
capName: "keychain-admin",
|
|
68773
|
+
capScope: "system",
|
|
68774
|
+
addonId: null,
|
|
68775
|
+
access: "create"
|
|
68776
|
+
},
|
|
68633
68777
|
"keychainAdmin.listAudit": {
|
|
68634
68778
|
capName: "keychain-admin",
|
|
68635
68779
|
capScope: "system",
|
|
@@ -69026,6 +69170,12 @@ Object.freeze({
|
|
|
69026
69170
|
addonId: null,
|
|
69027
69171
|
access: "create"
|
|
69028
69172
|
},
|
|
69173
|
+
"localNetwork.useStoredUploadedCertificate": {
|
|
69174
|
+
capName: "local-network",
|
|
69175
|
+
capScope: "system",
|
|
69176
|
+
addonId: null,
|
|
69177
|
+
access: "create"
|
|
69178
|
+
},
|
|
69029
69179
|
"lockControl.getStatus": {
|
|
69030
69180
|
capName: "lock-control",
|
|
69031
69181
|
capScope: "device",
|
|
@@ -72410,6 +72560,18 @@ Object.freeze({
|
|
|
72410
72560
|
addonId: null,
|
|
72411
72561
|
access: "create"
|
|
72412
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
|
+
},
|
|
72413
72575
|
"storageEvictable.evict": {
|
|
72414
72576
|
capName: "storage-evictable",
|
|
72415
72577
|
capScope: "system",
|
|
@@ -79519,6 +79681,12 @@ Object.defineProperty(exports, "isFirstLevelMacroClass", {
|
|
|
79519
79681
|
return isFirstLevelMacroClass;
|
|
79520
79682
|
}
|
|
79521
79683
|
});
|
|
79684
|
+
Object.defineProperty(exports, "isSecretMarker", {
|
|
79685
|
+
enumerable: true,
|
|
79686
|
+
get: function() {
|
|
79687
|
+
return isSecretMarker;
|
|
79688
|
+
}
|
|
79689
|
+
});
|
|
79522
79690
|
Object.defineProperty(exports, "isSoftwareDecode", {
|
|
79523
79691
|
enumerable: true,
|
|
79524
79692
|
get: function() {
|