@camstack/server 1.2.739 → 1.2.740
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/CHANGELOG.md +6 -0
- package/package.json +15 -11
- package/system/dist/addon-utils.mjs +1 -1
- package/system/dist/{agent-https-DX_ypzVA.js → agent-https-DXWlu1kP.js} +1 -1
- package/system/dist/{agent-https-Dwec4v5Z.mjs → agent-https-DcYKH3q_.mjs} +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +4 -4
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +5 -5
- package/system/dist/builtins/alerts/alerts.addon.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +5 -5
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +3 -3
- package/system/dist/builtins/composer/composer.addon.mjs +3 -3
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +2 -2
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +2 -2
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.js +1 -1
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +3 -3
- package/system/dist/builtins/keychain/index.mjs +3 -3
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +5 -5
- package/system/dist/builtins/local-network/local-network.addon.js +2 -2
- package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
- package/system/dist/builtins/loki-logging/index.js +1 -1
- package/system/dist/builtins/loki-logging/index.mjs +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +10 -10
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +10 -10
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +3 -3
- package/system/dist/builtins/snapshot/index.mjs +3 -3
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +20 -20
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/migrations/installed-runner-resolver.d.ts +3 -0
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +59 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +60 -4
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +3 -3
- package/system/dist/builtins/system-config/system-config.addon.mjs +285 -285
- package/system/dist/builtins/winston-logging/index.js +1 -1
- package/system/dist/builtins/winston-logging/index.mjs +1 -1
- package/system/dist/{composition-sources-6UWb8sIp.mjs → composition-sources-BNa_vU07.mjs} +1 -1
- package/system/dist/{composition-sources-jF-eMoO5.js → composition-sources-BfWnLt2j.js} +1 -1
- package/system/dist/{constants-v7B-_yzi.mjs → constants-DCYUT12P.mjs} +1 -1
- package/system/dist/{constants-dJ_YPC9D.js → constants-DugYIgQF.js} +1 -1
- package/system/dist/{coral-accelerators-DBlgWB8k.mjs → coral-accelerators-BW3OcrLD.mjs} +6 -6
- package/system/dist/{custom-action-registry-oHl1xltx.mjs → custom-action-registry-BIJZBObd.mjs} +37 -37
- package/system/dist/{device-ca-BVaCxlFs.mjs → device-ca-BnBFt1ex.mjs} +1 -1
- package/system/dist/{device-ca-CImkiiR-.js → device-ca-CFs0PY9S.js} +1 -1
- package/system/dist/{dist-BvHqoBym.mjs → dist-BF9MiiHX.mjs} +36 -11
- package/system/dist/{dist-BXWXN1Dl.js → dist-DwI4ifnv.js} +41 -10
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-B_ldgRYZ.mjs → hub-mdns-ciao-CnSqBHO9.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-B7wwnU92.js → hub-mdns-ciao-Dsk7HF0G.js} +2 -2
- package/system/dist/index.js +7 -7
- package/system/dist/index.mjs +218 -218
- package/system/dist/{restore-archive-CLfRtdYG.mjs → restore-archive-CDgSTubW.mjs} +150 -150
- package/system/dist/{restore-archive-ne_KESE9.js → restore-archive-CnG6nyar.js} +1 -1
- package/system/dist/{retention-MD1lPsHB.mjs → retention-csYEu0l3.mjs} +1 -1
- package/system/dist/{retention--waznpBD.js → retention-voCdtR4h.js} +1 -1
- package/system/dist/{wal-maintenance-D8DIMgjl.mjs → wal-maintenance-CTsOr0e7.mjs} +0 -0
- package/system/dist/{wal-maintenance-DmhOVavh.js → wal-maintenance-DrLnLCGO.js} +0 -0
- package/system/package.json +1 -1
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-DwI4ifnv.js");
|
|
7
7
|
const require_formatter = require("../../formatter-xbxeV4GD.js");
|
|
8
8
|
const require_log_file_read_protocol = require("../../log-file-read-protocol-D0WcLbIV.js");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Qr as logDestinationCapability,
|
|
1
|
+
import { Qr as logDestinationCapability, mo as BaseAddon } from "../../dist-BF9MiiHX.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-DkYZ4LXp.mjs";
|
|
3
3
|
import { a as LogFileIndexStore, i as serveRead, n as isFromReader, t as CancelBook } from "../../log-file-read-protocol-B7M3X3bT.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Za as compositionSourceKey, ec as errMsg } from "./dist-BF9MiiHX.mjs";
|
|
2
2
|
//#region src/builtins/shared/device-state-changed.ts
|
|
3
3
|
/** Structural narrowing helper for untrusted bus payloads. */
|
|
4
4
|
function isRecord(value) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** `secret://system/global/meshCaKey` — EC P-256 PKCS#8 PEM of the hub mesh CA. */
|
|
2
|
-
var MESH_CA_KEY_REF = require("./dist-
|
|
2
|
+
var MESH_CA_KEY_REF = require("./dist-DwI4ifnv.js").buildSecretRef({
|
|
3
3
|
owner: "system",
|
|
4
4
|
scope: { kind: "global" },
|
|
5
5
|
fieldPath: "meshCaKey"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EDGETPU_LIB_ENV, chooseEdgetpuDelegate, nodeDataRootFromEnv } from "@camstack/types/node";
|
|
2
|
-
import
|
|
2
|
+
import Kt from "node:fs";
|
|
3
3
|
//#region src/builtins/platform-probe/coral-accelerators.ts
|
|
4
4
|
/**
|
|
5
5
|
* Coral USB Edge TPU USB identifiers.
|
|
@@ -185,21 +185,21 @@ function detectCoralAccelerator(fsx, delegateHost = currentDelegateHost()) {
|
|
|
185
185
|
}
|
|
186
186
|
function safeListOrNull(dir) {
|
|
187
187
|
try {
|
|
188
|
-
return
|
|
188
|
+
return Kt.readdirSync(dir);
|
|
189
189
|
} catch {
|
|
190
190
|
return null;
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
function safeList(dir) {
|
|
194
194
|
try {
|
|
195
|
-
return
|
|
195
|
+
return Kt.readdirSync(dir);
|
|
196
196
|
} catch {
|
|
197
197
|
return [];
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
function safeRead(path) {
|
|
201
201
|
try {
|
|
202
|
-
return
|
|
202
|
+
return Kt.readFileSync(path, "utf8").trim();
|
|
203
203
|
} catch {
|
|
204
204
|
return "";
|
|
205
205
|
}
|
|
@@ -213,7 +213,7 @@ var nodeCoralFs = {
|
|
|
213
213
|
listApexClass: () => safeList("/sys/class/apex"),
|
|
214
214
|
canOpen: (path) => {
|
|
215
215
|
try {
|
|
216
|
-
|
|
216
|
+
Kt.accessSync(path, Kt.constants.R_OK | Kt.constants.W_OK);
|
|
217
217
|
return true;
|
|
218
218
|
} catch {
|
|
219
219
|
return false;
|
|
@@ -221,7 +221,7 @@ var nodeCoralFs = {
|
|
|
221
221
|
},
|
|
222
222
|
exists: (path) => {
|
|
223
223
|
try {
|
|
224
|
-
return
|
|
224
|
+
return Kt.existsSync(path);
|
|
225
225
|
} catch {
|
|
226
226
|
return false;
|
|
227
227
|
}
|
package/system/dist/{custom-action-registry-oHl1xltx.mjs → custom-action-registry-BIJZBObd.mjs}
RENAMED
|
@@ -3,7 +3,7 @@ import * as path$1 from "node:path";
|
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { promisify } from "node:util";
|
|
5
5
|
import { HF_REPO, MODEL_FORMATS, describeCustomActions, hfModelUrl } from "@camstack/types/addon";
|
|
6
|
-
import * as fs
|
|
6
|
+
import * as fs from "node:fs";
|
|
7
7
|
import { createReadStream, promises } from "node:fs";
|
|
8
8
|
import { createServer } from "node:http";
|
|
9
9
|
import { brotliCompress, constants as constants$1, gzip } from "node:zlib";
|
|
@@ -159,7 +159,7 @@ var HOSTED_MODEL_REVISIONS = {
|
|
|
159
159
|
//#endregion
|
|
160
160
|
//#region src/download/model-downloader.ts
|
|
161
161
|
function isNonEmptyFile(filePath) {
|
|
162
|
-
return fs
|
|
162
|
+
return fs.existsSync(filePath) && fs.statSync(filePath).size > 0;
|
|
163
163
|
}
|
|
164
164
|
/**
|
|
165
165
|
* Sibling files of a single-file (non-directory) format — extra files the
|
|
@@ -269,11 +269,11 @@ function resolveRedirectUrl(current, location) {
|
|
|
269
269
|
return new URL(location, current);
|
|
270
270
|
}
|
|
271
271
|
async function downloadFile(url, destPath, onProgressOrOptions) {
|
|
272
|
-
if (fs
|
|
272
|
+
if (fs.existsSync(destPath)) return destPath;
|
|
273
273
|
const opts = normalizeDownloadOptions(onProgressOrOptions);
|
|
274
274
|
const fetchImpl = opts.fetchImpl ?? fetch;
|
|
275
275
|
const maxRedirects = opts.maxRedirects ?? DEFAULT_MAX_REDIRECTS;
|
|
276
|
-
fs
|
|
276
|
+
fs.mkdirSync(path$1.dirname(destPath), { recursive: true });
|
|
277
277
|
const tmpPath = destPath + ".downloading";
|
|
278
278
|
try {
|
|
279
279
|
let current = url;
|
|
@@ -315,7 +315,7 @@ async function downloadFile(url, destPath, onProgressOrOptions) {
|
|
|
315
315
|
if (!response.body) throw new Error(`No response body from ${url}`);
|
|
316
316
|
const total = parseInt(response.headers.get("content-length") ?? "0", 10);
|
|
317
317
|
let downloaded = 0;
|
|
318
|
-
const fileStream = fs
|
|
318
|
+
const fileStream = fs.createWriteStream(tmpPath);
|
|
319
319
|
const reader = response.body.getReader();
|
|
320
320
|
try {
|
|
321
321
|
for (;;) {
|
|
@@ -333,11 +333,11 @@ async function downloadFile(url, destPath, onProgressOrOptions) {
|
|
|
333
333
|
fileStream.on("error", reject);
|
|
334
334
|
});
|
|
335
335
|
}
|
|
336
|
-
fs
|
|
336
|
+
fs.renameSync(tmpPath, destPath);
|
|
337
337
|
return destPath;
|
|
338
338
|
} catch (err) {
|
|
339
339
|
try {
|
|
340
|
-
fs
|
|
340
|
+
fs.unlinkSync(tmpPath);
|
|
341
341
|
} catch {}
|
|
342
342
|
throw err;
|
|
343
343
|
}
|
|
@@ -368,12 +368,12 @@ async function downloadModel(options) {
|
|
|
368
368
|
const { url, fallbackUrls = [], destDir, filename, expectedSha256, onProgress } = options;
|
|
369
369
|
const fname = filename ?? url.split("/").pop() ?? "model.bin";
|
|
370
370
|
const destPath = path$1.join(destDir, fname);
|
|
371
|
-
if (fs
|
|
371
|
+
if (fs.existsSync(destPath)) return {
|
|
372
372
|
filePath: destPath,
|
|
373
373
|
downloadedBytes: 0,
|
|
374
374
|
fromCache: true
|
|
375
375
|
};
|
|
376
|
-
fs
|
|
376
|
+
fs.mkdirSync(destDir, { recursive: true });
|
|
377
377
|
const urls = [url, ...fallbackUrls];
|
|
378
378
|
let lastError = null;
|
|
379
379
|
for (const tryUrl of urls) try {
|
|
@@ -381,25 +381,25 @@ async function downloadModel(options) {
|
|
|
381
381
|
if (expectedSha256) {
|
|
382
382
|
const hash = await computeSha256(destPath);
|
|
383
383
|
if (hash !== expectedSha256) {
|
|
384
|
-
fs
|
|
384
|
+
fs.unlinkSync(destPath);
|
|
385
385
|
throw new Error(`SHA256 mismatch: expected ${expectedSha256}, got ${hash}`);
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
388
|
return {
|
|
389
389
|
filePath: destPath,
|
|
390
|
-
downloadedBytes: fs
|
|
390
|
+
downloadedBytes: fs.statSync(destPath).size,
|
|
391
391
|
fromCache: false
|
|
392
392
|
};
|
|
393
393
|
} catch (e) {
|
|
394
394
|
lastError = e;
|
|
395
|
-
if (fs
|
|
395
|
+
if (fs.existsSync(destPath)) fs.unlinkSync(destPath);
|
|
396
396
|
}
|
|
397
397
|
throw lastError ?? /* @__PURE__ */ new Error(`Failed to download model from ${url}`);
|
|
398
398
|
}
|
|
399
399
|
async function computeSha256(filePath) {
|
|
400
400
|
return new Promise((resolve, reject) => {
|
|
401
401
|
const hash = createHash("sha256");
|
|
402
|
-
const stream = fs
|
|
402
|
+
const stream = fs.createReadStream(filePath);
|
|
403
403
|
stream.on("data", (chunk) => hash.update(chunk));
|
|
404
404
|
stream.on("end", () => resolve(hash.digest("hex")));
|
|
405
405
|
stream.on("error", reject);
|
|
@@ -424,28 +424,28 @@ async function downloadDirectory(url, destDir, knownFiles, onProgress) {
|
|
|
424
424
|
fileUrl: `https://huggingface.co/${repo}/resolve/main/${dirPath}/${f}`
|
|
425
425
|
}));
|
|
426
426
|
const tmpDir = destDir + ".downloading";
|
|
427
|
-
fs
|
|
427
|
+
fs.rmSync(tmpDir, {
|
|
428
428
|
recursive: true,
|
|
429
429
|
force: true
|
|
430
430
|
});
|
|
431
|
-
fs
|
|
431
|
+
fs.mkdirSync(tmpDir, { recursive: true });
|
|
432
432
|
let totalDownloaded = 0;
|
|
433
433
|
try {
|
|
434
434
|
for (const file of files) {
|
|
435
435
|
const destPath = path$1.join(tmpDir, file.relativePath);
|
|
436
|
-
fs
|
|
436
|
+
fs.mkdirSync(path$1.dirname(destPath), { recursive: true });
|
|
437
437
|
await downloadFile(file.fileUrl, destPath, (downloaded, _total) => {
|
|
438
438
|
onProgress?.(totalDownloaded + downloaded, void 0);
|
|
439
439
|
});
|
|
440
|
-
totalDownloaded += fs
|
|
440
|
+
totalDownloaded += fs.statSync(destPath).size;
|
|
441
441
|
}
|
|
442
|
-
fs
|
|
442
|
+
fs.rmSync(destDir, {
|
|
443
443
|
recursive: true,
|
|
444
444
|
force: true
|
|
445
445
|
});
|
|
446
|
-
fs
|
|
446
|
+
fs.renameSync(tmpDir, destDir);
|
|
447
447
|
} catch (err) {
|
|
448
|
-
fs
|
|
448
|
+
fs.rmSync(tmpDir, {
|
|
449
449
|
recursive: true,
|
|
450
450
|
force: true
|
|
451
451
|
});
|
|
@@ -477,7 +477,7 @@ function revisionRecordPath(modelPath) {
|
|
|
477
477
|
}
|
|
478
478
|
function readRevisionRecord(modelPath) {
|
|
479
479
|
try {
|
|
480
|
-
return fs
|
|
480
|
+
return fs.readFileSync(revisionRecordPath(modelPath), "utf8").trim();
|
|
481
481
|
} catch {
|
|
482
482
|
return null;
|
|
483
483
|
}
|
|
@@ -541,8 +541,8 @@ function writeRevisionRecord(modelPath, revision) {
|
|
|
541
541
|
if (revision === void 0) return;
|
|
542
542
|
const record = revisionRecordPath(modelPath);
|
|
543
543
|
const tmp = `${record}.tmp`;
|
|
544
|
-
fs
|
|
545
|
-
fs
|
|
544
|
+
fs.writeFileSync(tmp, `${revision}\n`);
|
|
545
|
+
fs.renameSync(tmp, record);
|
|
546
546
|
}
|
|
547
547
|
/**
|
|
548
548
|
* Prove an unrecorded (or differently recorded) copy current by hashing its
|
|
@@ -562,9 +562,9 @@ async function adoptByHash(modelsDir, modelPath, formatEntry) {
|
|
|
562
562
|
}
|
|
563
563
|
/** True when every file of the format is on disk, whatever revision it holds. */
|
|
564
564
|
function isCompleteCopy(modelsDir, modelPath, formatEntry) {
|
|
565
|
-
if (!fs
|
|
566
|
-
if (formatEntry.isDirectory) return fs
|
|
567
|
-
if (fs
|
|
565
|
+
if (!fs.existsSync(modelPath)) return false;
|
|
566
|
+
if (formatEntry.isDirectory) return fs.existsSync(path$1.join(modelPath, "Manifest.json"));
|
|
567
|
+
if (fs.statSync(modelPath).size <= 0) return false;
|
|
568
568
|
return siblingFilesFor(formatEntry).every((f) => isNonEmptyFile(path$1.join(modelsDir, f)));
|
|
569
569
|
}
|
|
570
570
|
/**
|
|
@@ -586,14 +586,14 @@ async function replaceSingleFileFormat(url, modelPath, modelsDir, siblings, onPr
|
|
|
586
586
|
}));
|
|
587
587
|
try {
|
|
588
588
|
for (const [i, part] of parts.entries()) {
|
|
589
|
-
fs
|
|
589
|
+
fs.rmSync(part.staged, { force: true });
|
|
590
590
|
await downloadFile(part.url, part.staged, i === 0 ? (downloaded, total) => onProgress?.(downloaded, total === 0 ? void 0 : total) : void 0);
|
|
591
591
|
}
|
|
592
592
|
} catch (err) {
|
|
593
|
-
for (const part of parts) fs
|
|
593
|
+
for (const part of parts) fs.rmSync(part.staged, { force: true });
|
|
594
594
|
throw err;
|
|
595
595
|
}
|
|
596
|
-
for (const part of parts) fs
|
|
596
|
+
for (const part of parts) fs.renameSync(part.staged, part.dest);
|
|
597
597
|
}
|
|
598
598
|
/**
|
|
599
599
|
* Resolve a `ModelCatalogEntry` against `modelsDir`: download model file
|
|
@@ -608,14 +608,14 @@ async function ensureModel(modelsDir, entry, format, onProgress) {
|
|
|
608
608
|
const modelPath = path$1.join(modelsDir, filename);
|
|
609
609
|
const siblings = siblingFilesFor(formatEntry);
|
|
610
610
|
let outdated = false;
|
|
611
|
-
if (fs
|
|
611
|
+
if (fs.existsSync(modelPath)) if (formatEntry.isDirectory && !fs.existsSync(path$1.join(modelPath, "Manifest.json"))) fs.rmSync(modelPath, {
|
|
612
612
|
recursive: true,
|
|
613
613
|
force: true
|
|
614
614
|
});
|
|
615
615
|
else if (siblings.some((f) => !isNonEmptyFile(path$1.join(modelsDir, f)))) outdated = !isCurrentRevision(modelPath, formatEntry) && !await adoptByHash(modelsDir, modelPath, formatEntry);
|
|
616
616
|
else if (isCurrentRevision(modelPath, formatEntry) || await adoptByHash(modelsDir, modelPath, formatEntry)) return modelPath;
|
|
617
617
|
else outdated = true;
|
|
618
|
-
fs
|
|
618
|
+
fs.mkdirSync(modelsDir, { recursive: true });
|
|
619
619
|
if (formatEntry.isDirectory) await downloadDirectory(formatEntry.url, modelPath, formatEntry.files, onProgress);
|
|
620
620
|
else if (outdated) await replaceSingleFileFormat(formatEntry.url, modelPath, modelsDir, siblings, onProgress);
|
|
621
621
|
else {
|
|
@@ -673,25 +673,25 @@ function isModelDownloaded(modelsDir, entry, format) {
|
|
|
673
673
|
const formatEntry = entry.formats[format];
|
|
674
674
|
if (!formatEntry) return false;
|
|
675
675
|
const modelPath = getModelFilePath(modelsDir, entry, format);
|
|
676
|
-
if (!modelPath || !fs
|
|
676
|
+
if (!modelPath || !fs.existsSync(modelPath)) return false;
|
|
677
677
|
if (!isCurrentRevision(modelPath, formatEntry)) return false;
|
|
678
678
|
return isCompleteCopy(modelsDir, modelPath, formatEntry);
|
|
679
679
|
}
|
|
680
680
|
/** Remove the on-disk model file/directory. Returns true if something was deleted. */
|
|
681
681
|
function deleteModelFromDisk(modelsDir, entry, format) {
|
|
682
682
|
const modelPath = getModelFilePath(modelsDir, entry, format);
|
|
683
|
-
if (!modelPath || !fs
|
|
684
|
-
fs
|
|
683
|
+
if (!modelPath || !fs.existsSync(modelPath)) return false;
|
|
684
|
+
fs.rmSync(revisionRecordPath(modelPath), { force: true });
|
|
685
685
|
const formatEntry = entry.formats[format];
|
|
686
|
-
if (formatEntry?.isDirectory) fs
|
|
686
|
+
if (formatEntry?.isDirectory) fs.rmSync(modelPath, {
|
|
687
687
|
recursive: true,
|
|
688
688
|
force: true
|
|
689
689
|
});
|
|
690
690
|
else {
|
|
691
|
-
fs
|
|
691
|
+
fs.unlinkSync(modelPath);
|
|
692
692
|
if (formatEntry) for (const sibling of siblingFilesFor(formatEntry)) {
|
|
693
693
|
const sibPath = path$1.join(modelsDir, sibling);
|
|
694
|
-
if (fs
|
|
694
|
+
if (fs.existsSync(sibPath)) fs.unlinkSync(sibPath);
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
697
|
return true;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $o as buildSecretRef, H as DEVICE_SAN_CREDENTIAL_PREFIX, U as DEVICE_SAN_USER_PREFIX } from "./dist-BF9MiiHX.mjs";
|
|
2
2
|
import { C as backdatedNotBefore, S as withUtcTimeEncoding, a as KeyUsageFlags, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension, u as SubjectAlternativeNameExtension } from "./x509.es-BRiJgOvu.mjs";
|
|
3
3
|
import { X509Certificate, createPublicKey, randomBytes, verify, webcrypto } from "node:crypto";
|
|
4
4
|
//#region src/auth/jwt-signing-key.ts
|
|
@@ -786,7 +786,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
786
786
|
return EventCategory;
|
|
787
787
|
}({});
|
|
788
788
|
//#endregion
|
|
789
|
-
//#region ../types/dist/device-type-
|
|
789
|
+
//#region ../types/dist/device-type-CfHw_quR.mjs
|
|
790
790
|
/**
|
|
791
791
|
import { errMsg } from '@camstack/types'
|
|
792
792
|
* Extract a human-readable message from an unknown error value.
|
|
@@ -975,6 +975,9 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
|
975
975
|
DeviceFeature["CoverPositionable"] = "cover-positionable";
|
|
976
976
|
/** Cover exposes slat-tilt control. Gates the tilt slider UI. */
|
|
977
977
|
DeviceFeature["CoverTilt"] = "cover-tilt";
|
|
978
|
+
/** Cover has a real stop: `stop` halts the travel in place. Gates the stop
|
|
979
|
+
* control in exporters; a provider whose `stop` is a no-op never declares it. */
|
|
980
|
+
DeviceFeature["CoverStoppable"] = "cover-stoppable";
|
|
978
981
|
/** Valve exposes intermediate position control (0..100). Gates the
|
|
979
982
|
* position slider / drag surface UI. */
|
|
980
983
|
DeviceFeature["ValvePositionable"] = "valve-positionable";
|
|
@@ -1162,7 +1165,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
1162
1165
|
return DeviceRole;
|
|
1163
1166
|
}({});
|
|
1164
1167
|
//#endregion
|
|
1165
|
-
//#region ../types/dist/sleep-
|
|
1168
|
+
//#region ../types/dist/sleep-QsoHs66J.mjs
|
|
1166
1169
|
/**
|
|
1167
1170
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
1168
1171
|
* window to float samples (D455).
|
|
@@ -8172,7 +8175,7 @@ function sleep(ms) {
|
|
|
8172
8175
|
return new Promise((resolve) => setTimeout(resolve, Math.max(0, ms)));
|
|
8173
8176
|
}
|
|
8174
8177
|
//#endregion
|
|
8175
|
-
//#region ../types/dist/composition-
|
|
8178
|
+
//#region ../types/dist/composition-Dh3RfMx5.mjs
|
|
8176
8179
|
var AUDIO_ENCODER_BY_CODEC = {
|
|
8177
8180
|
opus: "libopus",
|
|
8178
8181
|
aac: "aac",
|
|
@@ -11286,6 +11289,19 @@ z.object({
|
|
|
11286
11289
|
})
|
|
11287
11290
|
});
|
|
11288
11291
|
/**
|
|
11292
|
+
* Resolve the runner id an addon belongs to. This is the single
|
|
11293
|
+
* authority for the hub↔runner topology:
|
|
11294
|
+
* - declared `group` present → the runner id is the group name
|
|
11295
|
+
* (shared with every other addon declaring the same group);
|
|
11296
|
+
* - no `group` declared → the runner id is the addon id itself
|
|
11297
|
+
* (its own dedicated runner — one addon, one process).
|
|
11298
|
+
*
|
|
11299
|
+
* The runner's Moleculer nodeID is `${parentNodeId}/${runnerId}`.
|
|
11300
|
+
*/
|
|
11301
|
+
function resolveRunnerId(decl, addonId) {
|
|
11302
|
+
return decl.execution?.group ?? addonId;
|
|
11303
|
+
}
|
|
11304
|
+
/**
|
|
11289
11305
|
* Adoption job — the background form of `device-adoption.adopt`.
|
|
11290
11306
|
*
|
|
11291
11307
|
* ## Why this exists
|
|
@@ -54808,6 +54824,7 @@ var coreBlocksCapability = {
|
|
|
54808
54824
|
* Sub-surface gating paired with `DeviceFeature` flags:
|
|
54809
54825
|
* - `CoverPositionable` — intermediate `position` slider
|
|
54810
54826
|
* - `CoverTilt` — slat-tilt slider
|
|
54827
|
+
* - `CoverStoppable` — the `stop` control (a no-op `stop` never declares it)
|
|
54811
54828
|
*/
|
|
54812
54829
|
var CoverStateSchema = z.enum([
|
|
54813
54830
|
"open",
|
|
@@ -61815,8 +61832,7 @@ var integrationInstancesCapability = {
|
|
|
61815
61832
|
kind: "mutation",
|
|
61816
61833
|
auth: "admin"
|
|
61817
61834
|
})
|
|
61818
|
-
}
|
|
61819
|
-
mount: { kind: "skip" }
|
|
61835
|
+
}
|
|
61820
61836
|
};
|
|
61821
61837
|
/**
|
|
61822
61838
|
* Two-way audio / talk-back cap. Clients open a WebRTC audio-only
|
|
@@ -75016,7 +75032,14 @@ var NcMediaPolicySchema = z.object({
|
|
|
75016
75032
|
*/
|
|
75017
75033
|
profile: CamProfileSchema.optional(),
|
|
75018
75034
|
/** See {@link NcLinkedCameraModeSchema}. */
|
|
75019
|
-
linkedCameras: NcLinkedCameraModeSchema.optional()
|
|
75035
|
+
linkedCameras: NcLinkedCameraModeSchema.optional(),
|
|
75036
|
+
/**
|
|
75037
|
+
* Sensor rules only: may this rule wake a SLEEPING battery camera to take
|
|
75038
|
+
* the linked still it attaches (D998)? Absent means yes, an explicit `false`
|
|
75039
|
+
* opts out. Deliberately not a Zod default: a rule that never chose keeps
|
|
75040
|
+
* following the hub's. One bounded wake per event; nothing is attached later.
|
|
75041
|
+
*/
|
|
75042
|
+
wakeSleepingCamera: z.boolean().optional()
|
|
75020
75043
|
});
|
|
75021
75044
|
/**
|
|
75022
75045
|
* Cooldown GRANULARITY over the subject's class — how much a fired
|
|
@@ -85570,10 +85593,12 @@ var snapshotCapability = {
|
|
|
85570
85593
|
* even when the cache is well within the device's
|
|
85571
85594
|
* `snapshotMaxAgeS` window.
|
|
85572
85595
|
*
|
|
85573
|
-
* **`force` is
|
|
85596
|
+
* **`force` is a demand with a named principal, not a freshness
|
|
85597
|
+
* preference** — an operator button, the scheduled refresh (D847), or a
|
|
85598
|
+
* notification rule that left the camera's wake allowed (D998). On a
|
|
85574
85599
|
* battery camera it is the one thing that walks past the wrapper's
|
|
85575
|
-
* sleep gate and wakes the camera, so a
|
|
85576
|
-
*
|
|
85600
|
+
* sleep gate and wakes the camera, so a poller, a thumbnail or a
|
|
85601
|
+
* prestream must NEVER set it. Every such caller
|
|
85577
85602
|
* gets the cached frame, which on a sleeping battery camera is the
|
|
85578
85603
|
* correct answer: stale but honest beats woken.
|
|
85579
85604
|
*/
|
|
@@ -92232,7 +92257,7 @@ var ACTUATOR_METHODS = {
|
|
|
92232
92257
|
cover: [
|
|
92233
92258
|
row$1("cover", "open"),
|
|
92234
92259
|
row$1("cover", "close"),
|
|
92235
|
-
row$1("cover", "stop"),
|
|
92260
|
+
row$1("cover", "stop", DeviceFeature.CoverStoppable),
|
|
92236
92261
|
row$1("cover", "setPosition", DeviceFeature.CoverPositionable),
|
|
92237
92262
|
row$1("cover", "setTiltPosition", DeviceFeature.CoverTilt)
|
|
92238
92263
|
],
|
|
@@ -109770,4 +109795,4 @@ z.object({
|
|
|
109770
109795
|
commands: z.record(z.string(), z.unknown())
|
|
109771
109796
|
});
|
|
109772
109797
|
//#endregion
|
|
109773
|
-
export { EMPTY_REMOTE_CONFIG as $, evaluateDerivative as $a, scopesAllowAddon as $i, deviceCredentialsCapability as $n, collectSecretConfigKeys as $o, logLevelAtMost as $r, errMsg as $s, UNATTRIBUTED_BUCKET_KEY as $t, CredentialTokenClaimsSchema as A, vectorIndexDimConflictError as Aa, procedureAuthKey as Ai, climateControlCapability as An, RECORD_SWEEP_INTERVAL_MS as Ao, isAlertEpisodeOpen as Ar, nodePin as As, PreferenceValueSchema as At, DEVICE_ID_FIELD as B, HISTORY_SLOW_MS as Ba, resolveBucketMs as Bi, coreBlocksCapability as Bn, RevConflictError as Bo, isVoidInput as Br, scopeKey as Bs, STREAM_PROFILE_META as Bt, CORE_BLOCK_ADDON_PREFIX as C, timedRunSeconds as Ca, pickAppLinkHub as Ci, calendarsCapability as Cn, InvalidRecordError as Co, formatMinutes as Cr, isSecretFieldView as Cs, MediaPlayerStatusSchema as Ct, ConditionMirror as D, validateSchedulerInput as Da, powerSourceLinkOfComposition as Di, catalogueIssues as Dn, RECORD_BATCH_MAX_BYTES as Do, integrationInstancesCapability as Dr, makeSecretMarker as Ds, PREFERENCES_MAX_VALUE_BYTES as Dt, CatalogFileSchema as E, validateCustomAddress as Ea, powerSourceCapability as Ei, capUnitResolver as En, RECORD_BATCH_MAX as Eo, groupTemplate as Er, isSecretRefOwnedBy as Es, NetworkTunnelStartedDataSchema as Et, DAY_NAMES as F, zoneOnlySite as Fa, remoteCapability as Fi, compositionSourceRefs as Fn, ReadinessTimeoutError as Fo, isCredentialTokenPayload as Fr, parseSecretRef as Fs, RecordingStatusSchema as Ft, DataStoreDatabaseSchema as G, composedDeviceRef as Ga, resolveMethodAuth as Gi, dataStoreProviderCapability as Gn, UnknownRecordKindError as Go, legacyModeOf as Gr, toNodeId as Gs, SsoBridgeClaimsSchema as Gt, DEVICE_SAN_CREDENTIAL_PREFIX as H, MINUTE_MS as Ha, resolveCoreBlockFiles as Hi, createDeviceExtensionProvider as Hn, StoredRecordKindDeclarationSchema as Ho, keychainAdminCapability as Hr, secretTreeFromSchema as Hs, SchedulerSchema as Ht, DEFAULT_HOLD_OVERRIDE as I, COMPOSER_ADDON_ID as Ia, remoteLayoutComponentsCapability as Ii, coreBlockAddonId as In, RecordKindDeclarationSchema as Io, isDefaultAppConnectionEndpoint as Ir, readinessKey as Is, RemoteAssumedStateSchema as It, DeviceStatusSchema as J, compositionItemFieldPath as Ja, resolveStepArgs as Ji, declaredSeriesKind as Jn, asNumber as Jo, localNetworkCapability as Jr, userError as Js, StorageLocationTypeSchema as Jt, DeclaredDevices as K, composedDeviceStableId as Ka, resolveMutate as Ki, databaseSnapshotCapability as Kn, WELL_KNOWN_TAB_MAP as Ko, lifecycleJobSchema as Kr, toSecretFieldView as Ks, StorageCleanupJobSchema as Kt, DERIVED_CAMERA_SILENCED_CAP_NAMES as L, DAY_MS as La, replacedFieldKeys as Li, coreBlockComposition as Ln, RecordNotFoundError as Lo, isInternalActionId as Lr, recordSecretRef as Ls, RemoteConfigSchema as Lt, DATABASE_SNAPSHOT_SUFFIX as M, vocabActionIdFor as Ma, recordEntriesCapability as Mi, colorCapability as Mn, REMOVE_LEAF as Mo, isAppLinkBase as Mr, normalizeSecretOwner as Ms, RECORDING_SOURCE_CAMSTACK_ADDON as Mt, DATABASE_SNAPSHOT_TIMEOUT_MS as N, weekdayOfLocalDate as Na, recordsCapability as Ni, composerCapability as Nn, RUNTIME_DEFAULTS as No, isArrayOutputSchema as Nr, parseJsonObject as Ns, ROOT_BUCKET_KEY as Nt, ControlStatusSchema as O, valveCapability as Oa, preconditionOf as Oi, checkRoleAddress as On, RECORD_DELETE_BATCH as Oo, internalActionId as Or, mapSecretLeaves as Os, PreferenceDeviceIdSchema as Ot, DATA_STORE_DATABASES as P, withLocationMode as Pa, reducePoints as Pi, compositionFieldKey as Pn, ReadinessRegistry as Po, isCollectionArrayMethod as Pr, parseJsonUnknown as Ps, RecordIntegrationInstances as Pt, EMPTY_REMOTE_ASSUMED_STATE as Q, disarmRoseMemory as Qa, schedulersCapability as Qi, describeComposableCaps as Qn, buildSecretRef as Qo, logDestinationCapability as Qr, DeviceType as Qs, TokenScopeSchema as Qt, DEVICE_ENROLLMENT_TTL_MS as R, DEFAULT_HISTORY_RETENTION as Ra, resolveActionVariables as Ri, coreBlockIdFromAddonId as Rn, RecordTooLargeError as Ro, isLocationEnabled as Rr, resolveCapMount as Rs, RunningStateStatusSchema as Rt, CORE_BLOCKS_ADDON_ID as S, timedRunLimitOf as Sa, parseStreamParamsFormPatch as Si, buildStreamParamsConfigSchema as Sn, HISTORY_DEFAULT_MIN_INTERVAL_MS as So, formatDeviceRevoker as Sr, isSecretClear as Ss, MOTION_CLOSE_AFTER_MS as St, CalendarPreferencesSchema as T, validateComposition as Ta, platformProbeCapability as Ti, canonicalIconKey as Tn, PlaintextSecretError as To, groupCommandsCapability as Tr, isSecretMarkerLike as Ts, MigrationMetaSchema as Tt, DEVICE_SAN_USER_PREFIX as U, buildFfmpegArgs as Ua, resolveHubAddressRoles as Ui, customKeyOfRole as Un, TransactRefusedError as Uo, keychainCapability as Ur, secretViewsOf as Us, ScopedTokenSchema as Ut, DEVICE_NONCE_TTL_MS as V, HOUR_MS as Va, resolveCoreBlockEntry as Vi, coverCapability as Vn, SECRET_CLEAR as Vo, kebabToCamel as Vr, secretTreeFromPaths as Vs, SchedulerError as Vt, DEVICE_TOMBSTONE_RETENTION_MS as W, cloneStatefulExpressionMemory as Wa, resolveLocationMode as Wi, customRole as Wn, UnindexedFilterError as Wo, legacyAutoLinkIds as Wr, sleep as Ws, ServerNameSchema as Wt, DiscoveryProposalBodySchema as X, compositionSourceKey as Xa, runSteps as Xi, defineExtensionSlotProvider as Xn, assertTransactScope as Xo, lockControlCapability as Xr, DeviceFeature as Xs, SwitchStatusSchema as Xt, DeviceTombstoneSchema as Y, compositionSliceKey as Ya, runFanOut as Yi, decodeVectorBase64 as Yn, asString$1 as Yo, locationIconKey as Yr, withoutCallerStamp as Ys, StorageMigrationJobSchema as Yt, EMPTY_AUTOMATION_STATE as Z, createStatefulExpressionMemory as Za, runtimeStatePolicyFor as Zi, deriveBatteryPresence as Zn, assertValidDeclaration as Zo, lockDoorLinkOfComposition as Zr, DeviceRole as Zs, TemplateKindSchema as Zt, CAMSTACK_APP_LINK_ORIGIN as _, streamQualityLabel as _a, objectInputDeclaresRequiredDeviceId as _i, brightnessCapability as _n, DEVICE_SETTINGS_CONTRIBUTION_METHODS as _o, fanOutTargets as _r, isDebugChannelName as _s, KeychainResetRecordSchema as _t, AGENT_MDNS_TXT_KEYS as a, sharedColorModes as aa, methodRefusal as ai, addonPagesCapability as an, nextLocalMidnight as ao, deviceStateCapability as ar, defineAddonMigrations as as, FieldClaimModeSchema as at, COMPOSED_ITEM_FIXED_FIELDS as b, templateCapability as ba, parseAcceleratorFactsJson as bi, buildDeviceEnrollmentLink as bn, FilterRequiredError as bo, filesystemBrowseCapability as br, isKeychainStoredField as bs, METHOD_ACCESS_MAP as bt, ActionStepSchema as c, siteZoneKey as ca, modeMayWrite as ci, alertEpisodeId as cn, planResetTier as co, enumerateItemArrayFields as cr, defineRecordKinds as cs, HISTORY_CATALOG as ct, AlertSchema as d, storageAdminCapability as da, normalizeActionUnits as di, appendTrace as dn, toExpressionValue as do, evaluateWhenTree as dr, expandCapMethods as ds, HUB_MDNS_TXT_KEYS as dt, scopesAllowDeviceCap as ea, EventCategory as ec, looseSchema as ei, UserRecordSchema as en, evaluateStatistic as eo, deviceExtensionCapability as er, collectSecretLeaves as es, FAN_CAPTURE_FIELDS as et, AutomationStateDocSchema as f, storageCapability as fa, normalizeCapStep as fi, armRemovalReconcile as fn, wattMillisecondsToKwh as fo, evictionPolicyOfLocation as fr, formatSecretScope as fs, HvacModeSchema as ft, CAMERA_SWITCH_ORDER as g, streamCatalogCapability as ga, objectInputDeclaresAddonId as gi, batteryCapability as gn, DATAPLANE_SECRET_HEADER as go, fanControlCapability as gr, hydrateSchema as gs, KeychainAuditEntrySchema as gt, BatteryStatusSchema as h, storageProviderCapability as ha, normalizeUnit as hi, bareAddonId as hn, CALLER_STAMPED_CAPABILITIES as ho, extractNestedAddonId as hr, historyUnitFor as hs, KEYCHAIN_RESET_TRIGGER_ACTOR as ht, AGENT_MDNS_SERVICE_TYPE as i, sharedActuatorMethods as ia, memoizePinnedFfmpeg as ii, addonIdOfActionId as in, isHistoryHelper as io, deviceRunsCapability as ir, customAction as is, FanPresetSchema as it, DATABASE_SNAPSHOT_PARTIAL_SUFFIX as j, vectorStoreCapability as ja, ptzAutotrackCapability as ji, collectWhenMirrorSources as jn, REDACTED_SECRET as jo, isAlertEpisodeSeverity as jr, normalizeNodeId as js, QuantityUnitError as jt, CoreBlockSchema as k, vectorDimFromBase64 as ka, problemsBlockSave as ki, checkTemplatePayload as kn, RECORD_SECRET_COLLECTION_PREFIX as ko, interpolate as kr, nodeIdOfScopedKey as ks, PreferenceNamespaceSchema as kt, ActionTargetResolver as l, snapshotCapability as la, motionCapability as li, alertEpisodePayload as ln, planStatisticTier as lo, enumerateSchemaFields as lr, emitDownForOwnedCaps as ls, HISTORY_ITEM_CATALOG as lt, BaseDevice as m, storageOccupancyCapability as ma, normalizeStepTargets as mi, backupCapability as mn, BatchTooLargeError as mo, expressionContainsBuiltinCall as mr, historyItemFieldPath as ms, INTERNAL_ACTION_PREFIX as mt, ACTUATOR_METHODS as n, settingsStoreCapability as na, mayWriteToLocation as ni, actionSourceCapability as nn, integrateReading as no, deviceManagerCapability as nr, collectZodSecretPaths as ns, FanControlStatusSchema as nt, ALL_CAPABILITY_DEFINITIONS as o, shortHostname as oa, metricsProviderCapability as oi, addonSettingsCapability as on, openReset as oo, deviceStatusCapability as or, defineCustomActions as os, FieldClaimSchema as ot, BUILTIN_REMOTE_COMPONENTS as p, storageMigrationCapability as pa, normalizeCoreBlockWrite as pi, authProviderCapability as pn, BaseAddon as po, expandContainer as pr, getDebugInterest as ps, IDLE_ACTION_STATUS as pt, DeviceRunSchema as q, compositionFeatureEnabled as qa, resolveNotificationTapAddress as qi, declarationOwnerNodeId as qn, asJsonObject as qo, localDateOf as qr, transformSecretWrite as qs, StorageLocationModeSchema as qt, ACTUATOR_TEMPLATE_IDS as r, sharedActuatorFeatures as ra, mediaPlayerCapability as ri, actionsCapability as rn, isForwardInputRef as ro, deviceRemovalHookCapability as rr, createEvent as rs, FanDirectionSchema as rt, ActionError as s, siteFor as sa, migrationsCapability as si, addonWidgetsCapability as sn, openStatistic as so, enumerateInferenceDevices as sr, defineEntryKind as ss, GroupCommandResultSchema as st, ACTION_TARGET_INVALIDATION_EVENTS as t, scoreRuntimes as ta, mayReadLocation as ti, actionEffect as tn, helperMembers as to, deviceHistoryCapability as tr, collectSecretMarkerRefs as ts, FIRST_LEVEL_MACRO_CLASSES as tt, ActionVariableSchema as u, splitTranslationRef as ua, nextOccurrence as ui, alertsCapability as un, statisticCadenceMs as uo, evaluateCompositionField as ur, emitReadiness as us, HUB_MDNS_SERVICE_TYPE as ut, CAP_NAMES_WITH_STATUS as v, supportedRuntimes as va, occurrenceOn as vi, buildActionSteps as vn, DEVICE_STATUS_METHOD as vo, fanPresetsCapability as vr, isDeviceConfigCap as vs, LOG_LEVEL_RANK as vt, CREDENTIAL_TOKEN_AUDIENCE as w, userManagementCapability as wa, planComposition as wi, cameraGridLayoutCapability as wn, NoCallerError as wo, gbToBytes as wr, isSecretMarker as ws, MigrationLedgerEntrySchema as wt, COMPOSER_RUNNER_ID as x, timedRunCapability as xa, parseColorInput as xi, buildDeviceSignatureMessage as xn, ForeignSecretMarkerError as xo, foldSnapshotByFunction as xr, isReadingQuantity as xs, MINUTES_PER_DAY as xt, CATALOG_LANGS as y, switchCapability as ya, orderMigrations as yi, buildCapabilityLookup as yn, DeclarationRefusedError as yo, featureForwards as yr, isEvent as ys, LegacyStorageLocationDefaultSchema as yt, DEVICE_HISTORY_ENERGY_KEY as z, HISTORY_FAST_MS as za, resolveAppConnections as zi, coreBlockSourceKind as zn, RecordUniqueViolationError as zo, isObjectInput as zr, resolveSecretMarkers as zs, STORAGE_ACCESS_FALLBACK as zt };
|
|
109798
|
+
export { EMPTY_REMOTE_CONFIG as $, disarmRoseMemory as $a, schedulersCapability as $i, deviceCredentialsCapability as $n, buildSecretRef as $o, logLevelAtMost as $r, DeviceType as $s, UNATTRIBUTED_BUCKET_KEY as $t, CredentialTokenClaimsSchema as A, vectorDimFromBase64 as Aa, procedureAuthKey as Ai, climateControlCapability as An, RECORD_SECRET_COLLECTION_PREFIX as Ao, isAlertEpisodeOpen as Ar, nodeIdOfScopedKey as As, PreferenceValueSchema as At, DEVICE_ID_FIELD as B, HISTORY_FAST_MS as Ba, resolveBucketMs as Bi, coreBlocksCapability as Bn, RecordUniqueViolationError as Bo, isVoidInput as Br, resolveSecretMarkers as Bs, STREAM_PROFILE_META as Bt, CORE_BLOCK_ADDON_PREFIX as C, timedRunLimitOf as Ca, pickAppLinkHub as Ci, calendarsCapability as Cn, HISTORY_DEFAULT_MIN_INTERVAL_MS as Co, formatMinutes as Cr, isSecretClear as Cs, MediaPlayerStatusSchema as Ct, ConditionMirror as D, validateCustomAddress as Da, powerSourceLinkOfComposition as Di, catalogueIssues as Dn, RECORD_BATCH_MAX as Do, integrationInstancesCapability as Dr, isSecretRefOwnedBy as Ds, PREFERENCES_MAX_VALUE_BYTES as Dt, CatalogFileSchema as E, validateComposition as Ea, powerSourceCapability as Ei, capUnitResolver as En, PlaintextSecretError as Eo, groupTemplate as Er, isSecretMarkerLike as Es, NetworkTunnelStartedDataSchema as Et, DAY_NAMES as F, withLocationMode as Fa, remoteCapability as Fi, compositionSourceRefs as Fn, ReadinessRegistry as Fo, isCredentialTokenPayload as Fr, parseJsonUnknown as Fs, RecordingStatusSchema as Ft, DataStoreDatabaseSchema as G, cloneStatefulExpressionMemory as Ga, resolveMethodAuth as Gi, dataStoreProviderCapability as Gn, UnindexedFilterError as Go, legacyModeOf as Gr, sleep as Gs, SsoBridgeClaimsSchema as Gt, DEVICE_SAN_CREDENTIAL_PREFIX as H, HOUR_MS as Ha, resolveCoreBlockFiles as Hi, createDeviceExtensionProvider as Hn, SECRET_CLEAR as Ho, keychainAdminCapability as Hr, secretTreeFromPaths as Hs, SchedulerSchema as Ht, DEFAULT_HOLD_OVERRIDE as I, zoneOnlySite as Ia, remoteLayoutComponentsCapability as Ii, coreBlockAddonId as In, ReadinessTimeoutError as Io, isDefaultAppConnectionEndpoint as Ir, parseSecretRef as Is, RemoteAssumedStateSchema as It, DeviceStatusSchema as J, compositionFeatureEnabled as Ja, resolveRunnerId as Ji, declaredSeriesKind as Jn, asJsonObject as Jo, localNetworkCapability as Jr, transformSecretWrite as Js, StorageLocationTypeSchema as Jt, DeclaredDevices as K, composedDeviceRef as Ka, resolveMutate as Ki, databaseSnapshotCapability as Kn, UnknownRecordKindError as Ko, lifecycleJobSchema as Kr, toNodeId as Ks, StorageCleanupJobSchema as Kt, DERIVED_CAMERA_SILENCED_CAP_NAMES as L, COMPOSER_ADDON_ID as La, replacedFieldKeys as Li, coreBlockComposition as Ln, RecordKindDeclarationSchema as Lo, isInternalActionId as Lr, readinessKey as Ls, RemoteConfigSchema as Lt, DATABASE_SNAPSHOT_SUFFIX as M, vectorStoreCapability as Ma, recordEntriesCapability as Mi, colorCapability as Mn, REDACTED_SECRET as Mo, isAppLinkBase as Mr, normalizeNodeId as Ms, RECORDING_SOURCE_CAMSTACK_ADDON as Mt, DATABASE_SNAPSHOT_TIMEOUT_MS as N, vocabActionIdFor as Na, recordsCapability as Ni, composerCapability as Nn, REMOVE_LEAF as No, isArrayOutputSchema as Nr, normalizeSecretOwner as Ns, ROOT_BUCKET_KEY as Nt, ControlStatusSchema as O, validateSchedulerInput as Oa, preconditionOf as Oi, checkRoleAddress as On, RECORD_BATCH_MAX_BYTES as Oo, internalActionId as Or, makeSecretMarker as Os, PreferenceDeviceIdSchema as Ot, DATA_STORE_DATABASES as P, weekdayOfLocalDate as Pa, reducePoints as Pi, compositionFieldKey as Pn, RUNTIME_DEFAULTS as Po, isCollectionArrayMethod as Pr, parseJsonObject as Ps, RecordIntegrationInstances as Pt, EMPTY_REMOTE_ASSUMED_STATE as Q, createStatefulExpressionMemory as Qa, runtimeStatePolicyFor as Qi, describeComposableCaps as Qn, assertValidDeclaration as Qo, logDestinationCapability as Qr, DeviceRole as Qs, TokenScopeSchema as Qt, DEVICE_ENROLLMENT_TTL_MS as R, DAY_MS as Ra, resolveActionVariables as Ri, coreBlockIdFromAddonId as Rn, RecordNotFoundError as Ro, isLocationEnabled as Rr, recordSecretRef as Rs, RunningStateStatusSchema as Rt, CORE_BLOCKS_ADDON_ID as S, timedRunCapability as Sa, parseStreamParamsFormPatch as Si, buildStreamParamsConfigSchema as Sn, ForeignSecretMarkerError as So, formatDeviceRevoker as Sr, isReadingQuantity as Ss, MOTION_CLOSE_AFTER_MS as St, CalendarPreferencesSchema as T, userManagementCapability as Ta, platformProbeCapability as Ti, canonicalIconKey as Tn, NoCallerError as To, groupCommandsCapability as Tr, isSecretMarker as Ts, MigrationMetaSchema as Tt, DEVICE_SAN_USER_PREFIX as U, MINUTE_MS as Ua, resolveHubAddressRoles as Ui, customKeyOfRole as Un, StoredRecordKindDeclarationSchema as Uo, keychainCapability as Ur, secretTreeFromSchema as Us, ScopedTokenSchema as Ut, DEVICE_NONCE_TTL_MS as V, HISTORY_SLOW_MS as Va, resolveCoreBlockEntry as Vi, coverCapability as Vn, RevConflictError as Vo, kebabToCamel as Vr, scopeKey as Vs, SchedulerError as Vt, DEVICE_TOMBSTONE_RETENTION_MS as W, buildFfmpegArgs as Wa, resolveLocationMode as Wi, customRole as Wn, TransactRefusedError as Wo, legacyAutoLinkIds as Wr, secretViewsOf as Ws, ServerNameSchema as Wt, DiscoveryProposalBodySchema as X, compositionSliceKey as Xa, runFanOut as Xi, defineExtensionSlotProvider as Xn, asString$1 as Xo, lockControlCapability as Xr, withoutCallerStamp as Xs, SwitchStatusSchema as Xt, DeviceTombstoneSchema as Y, compositionItemFieldPath as Ya, resolveStepArgs as Yi, decodeVectorBase64 as Yn, asNumber as Yo, locationIconKey as Yr, userError as Ys, StorageMigrationJobSchema as Yt, EMPTY_AUTOMATION_STATE as Z, compositionSourceKey as Za, runSteps as Zi, deriveBatteryPresence as Zn, assertTransactScope as Zo, lockDoorLinkOfComposition as Zr, DeviceFeature as Zs, TemplateKindSchema as Zt, CAMSTACK_APP_LINK_ORIGIN as _, streamCatalogCapability as _a, objectInputDeclaresRequiredDeviceId as _i, brightnessCapability as _n, DATAPLANE_SECRET_HEADER as _o, fanOutTargets as _r, hydrateSchema as _s, KeychainResetRecordSchema as _t, AGENT_MDNS_TXT_KEYS as a, sharedActuatorMethods as aa, methodRefusal as ai, addonPagesCapability as an, isHistoryHelper as ao, deviceStateCapability as ar, customAction as as, FieldClaimModeSchema as at, COMPOSED_ITEM_FIXED_FIELDS as b, switchCapability as ba, parseAcceleratorFactsJson as bi, buildDeviceEnrollmentLink as bn, DeclarationRefusedError as bo, filesystemBrowseCapability as br, isEvent as bs, METHOD_ACCESS_MAP as bt, ActionStepSchema as c, siteFor as ca, modeMayWrite as ci, alertEpisodeId as cn, openStatistic as co, enumerateItemArrayFields as cr, defineEntryKind as cs, HISTORY_CATALOG as ct, AlertSchema as d, splitTranslationRef as da, normalizeActionUnits as di, appendTrace as dn, statisticCadenceMs as do, evaluateWhenTree as dr, emitReadiness as ds, HUB_MDNS_TXT_KEYS as dt, scopesAllowAddon as ea, errMsg as ec, looseSchema as ei, UserRecordSchema as en, evaluateDerivative as eo, deviceExtensionCapability as er, collectSecretConfigKeys as es, FAN_CAPTURE_FIELDS as et, AutomationStateDocSchema as f, storageAdminCapability as fa, normalizeCapStep as fi, armRemovalReconcile as fn, toExpressionValue as fo, evictionPolicyOfLocation as fr, expandCapMethods as fs, HvacModeSchema as ft, CAMERA_SWITCH_ORDER as g, storageProviderCapability as ga, objectInputDeclaresAddonId as gi, batteryCapability as gn, CALLER_STAMPED_CAPABILITIES as go, fanControlCapability as gr, historyUnitFor as gs, KeychainAuditEntrySchema as gt, BatteryStatusSchema as h, storageOccupancyCapability as ha, normalizeUnit as hi, bareAddonId as hn, BatchTooLargeError as ho, extractNestedAddonId as hr, historyItemFieldPath as hs, KEYCHAIN_RESET_TRIGGER_ACTOR as ht, AGENT_MDNS_SERVICE_TYPE as i, sharedActuatorFeatures as ia, memoizePinnedFfmpeg as ii, addonIdOfActionId as in, isForwardInputRef as io, deviceRunsCapability as ir, createEvent as is, FanPresetSchema as it, DATABASE_SNAPSHOT_PARTIAL_SUFFIX as j, vectorIndexDimConflictError as ja, ptzAutotrackCapability as ji, collectWhenMirrorSources as jn, RECORD_SWEEP_INTERVAL_MS as jo, isAlertEpisodeSeverity as jr, nodePin as js, QuantityUnitError as jt, CoreBlockSchema as k, valveCapability as ka, problemsBlockSave as ki, checkTemplatePayload as kn, RECORD_DELETE_BATCH as ko, interpolate as kr, mapSecretLeaves as ks, PreferenceNamespaceSchema as kt, ActionTargetResolver as l, siteZoneKey as la, motionCapability as li, alertEpisodePayload as ln, planResetTier as lo, enumerateSchemaFields as lr, defineRecordKinds as ls, HISTORY_ITEM_CATALOG as lt, BaseDevice as m, storageMigrationCapability as ma, normalizeStepTargets as mi, backupCapability as mn, BaseAddon as mo, expressionContainsBuiltinCall as mr, getDebugInterest as ms, INTERNAL_ACTION_PREFIX as mt, ACTUATOR_METHODS as n, scoreRuntimes as na, mayWriteToLocation as ni, actionSourceCapability as nn, helperMembers as no, deviceManagerCapability as nr, collectSecretMarkerRefs as ns, FanControlStatusSchema as nt, ALL_CAPABILITY_DEFINITIONS as o, sharedColorModes as oa, metricsProviderCapability as oi, addonSettingsCapability as on, nextLocalMidnight as oo, deviceStatusCapability as or, defineAddonMigrations as os, FieldClaimSchema as ot, BUILTIN_REMOTE_COMPONENTS as p, storageCapability as pa, normalizeCoreBlockWrite as pi, authProviderCapability as pn, wattMillisecondsToKwh as po, expandContainer as pr, formatSecretScope as ps, IDLE_ACTION_STATUS as pt, DeviceRunSchema as q, composedDeviceStableId as qa, resolveNotificationTapAddress as qi, declarationOwnerNodeId as qn, WELL_KNOWN_TAB_MAP as qo, localDateOf as qr, toSecretFieldView as qs, StorageLocationModeSchema as qt, ACTUATOR_TEMPLATE_IDS as r, settingsStoreCapability as ra, mediaPlayerCapability as ri, actionsCapability as rn, integrateReading as ro, deviceRemovalHookCapability as rr, collectZodSecretPaths as rs, FanDirectionSchema as rt, ActionError as s, shortHostname as sa, migrationsCapability as si, addonWidgetsCapability as sn, openReset as so, enumerateInferenceDevices as sr, defineCustomActions as ss, GroupCommandResultSchema as st, ACTION_TARGET_INVALIDATION_EVENTS as t, scopesAllowDeviceCap as ta, EventCategory as tc, mayReadLocation as ti, actionEffect as tn, evaluateStatistic as to, deviceHistoryCapability as tr, collectSecretLeaves as ts, FIRST_LEVEL_MACRO_CLASSES as tt, ActionVariableSchema as u, snapshotCapability as ua, nextOccurrence as ui, alertsCapability as un, planStatisticTier as uo, evaluateCompositionField as ur, emitDownForOwnedCaps as us, HUB_MDNS_SERVICE_TYPE as ut, CAP_NAMES_WITH_STATUS as v, streamQualityLabel as va, occurrenceOn as vi, buildActionSteps as vn, DEVICE_SETTINGS_CONTRIBUTION_METHODS as vo, fanPresetsCapability as vr, isDebugChannelName as vs, LOG_LEVEL_RANK as vt, CREDENTIAL_TOKEN_AUDIENCE as w, timedRunSeconds as wa, planComposition as wi, cameraGridLayoutCapability as wn, InvalidRecordError as wo, gbToBytes as wr, isSecretFieldView as ws, MigrationLedgerEntrySchema as wt, COMPOSER_RUNNER_ID as x, templateCapability as xa, parseColorInput as xi, buildDeviceSignatureMessage as xn, FilterRequiredError as xo, foldSnapshotByFunction as xr, isKeychainStoredField as xs, MINUTES_PER_DAY as xt, CATALOG_LANGS as y, supportedRuntimes as ya, orderMigrations as yi, buildCapabilityLookup as yn, DEVICE_STATUS_METHOD as yo, featureForwards as yr, isDeviceConfigCap as ys, LegacyStorageLocationDefaultSchema as yt, DEVICE_HISTORY_ENERGY_KEY as z, DEFAULT_HISTORY_RETENTION as za, resolveAppConnections as zi, coreBlockSourceKind as zn, RecordTooLargeError as zo, isObjectInput as zr, resolveCapMount as zs, STORAGE_ACCESS_FALLBACK as zt };
|
|
@@ -786,7 +786,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
786
786
|
return EventCategory;
|
|
787
787
|
}({});
|
|
788
788
|
//#endregion
|
|
789
|
-
//#region ../types/dist/device-type-
|
|
789
|
+
//#region ../types/dist/device-type-CfHw_quR.mjs
|
|
790
790
|
/**
|
|
791
791
|
import { errMsg } from '@camstack/types'
|
|
792
792
|
* Extract a human-readable message from an unknown error value.
|
|
@@ -975,6 +975,9 @@ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
|
975
975
|
DeviceFeature["CoverPositionable"] = "cover-positionable";
|
|
976
976
|
/** Cover exposes slat-tilt control. Gates the tilt slider UI. */
|
|
977
977
|
DeviceFeature["CoverTilt"] = "cover-tilt";
|
|
978
|
+
/** Cover has a real stop: `stop` halts the travel in place. Gates the stop
|
|
979
|
+
* control in exporters; a provider whose `stop` is a no-op never declares it. */
|
|
980
|
+
DeviceFeature["CoverStoppable"] = "cover-stoppable";
|
|
978
981
|
/** Valve exposes intermediate position control (0..100). Gates the
|
|
979
982
|
* position slider / drag surface UI. */
|
|
980
983
|
DeviceFeature["ValvePositionable"] = "valve-positionable";
|
|
@@ -1162,7 +1165,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
1162
1165
|
return DeviceRole;
|
|
1163
1166
|
}({});
|
|
1164
1167
|
//#endregion
|
|
1165
|
-
//#region ../types/dist/sleep-
|
|
1168
|
+
//#region ../types/dist/sleep-QsoHs66J.mjs
|
|
1166
1169
|
/**
|
|
1167
1170
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
1168
1171
|
* window to float samples (D455).
|
|
@@ -8172,7 +8175,7 @@ function sleep(ms) {
|
|
|
8172
8175
|
return new Promise((resolve) => setTimeout(resolve, Math.max(0, ms)));
|
|
8173
8176
|
}
|
|
8174
8177
|
//#endregion
|
|
8175
|
-
//#region ../types/dist/composition-
|
|
8178
|
+
//#region ../types/dist/composition-Dh3RfMx5.mjs
|
|
8176
8179
|
var AUDIO_ENCODER_BY_CODEC = {
|
|
8177
8180
|
opus: "libopus",
|
|
8178
8181
|
aac: "aac",
|
|
@@ -11286,6 +11289,19 @@ zod.z.object({
|
|
|
11286
11289
|
})
|
|
11287
11290
|
});
|
|
11288
11291
|
/**
|
|
11292
|
+
* Resolve the runner id an addon belongs to. This is the single
|
|
11293
|
+
* authority for the hub↔runner topology:
|
|
11294
|
+
* - declared `group` present → the runner id is the group name
|
|
11295
|
+
* (shared with every other addon declaring the same group);
|
|
11296
|
+
* - no `group` declared → the runner id is the addon id itself
|
|
11297
|
+
* (its own dedicated runner — one addon, one process).
|
|
11298
|
+
*
|
|
11299
|
+
* The runner's Moleculer nodeID is `${parentNodeId}/${runnerId}`.
|
|
11300
|
+
*/
|
|
11301
|
+
function resolveRunnerId(decl, addonId) {
|
|
11302
|
+
return decl.execution?.group ?? addonId;
|
|
11303
|
+
}
|
|
11304
|
+
/**
|
|
11289
11305
|
* Adoption job — the background form of `device-adoption.adopt`.
|
|
11290
11306
|
*
|
|
11291
11307
|
* ## Why this exists
|
|
@@ -54808,6 +54824,7 @@ var coreBlocksCapability = {
|
|
|
54808
54824
|
* Sub-surface gating paired with `DeviceFeature` flags:
|
|
54809
54825
|
* - `CoverPositionable` — intermediate `position` slider
|
|
54810
54826
|
* - `CoverTilt` — slat-tilt slider
|
|
54827
|
+
* - `CoverStoppable` — the `stop` control (a no-op `stop` never declares it)
|
|
54811
54828
|
*/
|
|
54812
54829
|
var CoverStateSchema = zod.z.enum([
|
|
54813
54830
|
"open",
|
|
@@ -61815,8 +61832,7 @@ var integrationInstancesCapability = {
|
|
|
61815
61832
|
kind: "mutation",
|
|
61816
61833
|
auth: "admin"
|
|
61817
61834
|
})
|
|
61818
|
-
}
|
|
61819
|
-
mount: { kind: "skip" }
|
|
61835
|
+
}
|
|
61820
61836
|
};
|
|
61821
61837
|
/**
|
|
61822
61838
|
* Two-way audio / talk-back cap. Clients open a WebRTC audio-only
|
|
@@ -75016,7 +75032,14 @@ var NcMediaPolicySchema = zod.z.object({
|
|
|
75016
75032
|
*/
|
|
75017
75033
|
profile: CamProfileSchema.optional(),
|
|
75018
75034
|
/** See {@link NcLinkedCameraModeSchema}. */
|
|
75019
|
-
linkedCameras: NcLinkedCameraModeSchema.optional()
|
|
75035
|
+
linkedCameras: NcLinkedCameraModeSchema.optional(),
|
|
75036
|
+
/**
|
|
75037
|
+
* Sensor rules only: may this rule wake a SLEEPING battery camera to take
|
|
75038
|
+
* the linked still it attaches (D998)? Absent means yes, an explicit `false`
|
|
75039
|
+
* opts out. Deliberately not a Zod default: a rule that never chose keeps
|
|
75040
|
+
* following the hub's. One bounded wake per event; nothing is attached later.
|
|
75041
|
+
*/
|
|
75042
|
+
wakeSleepingCamera: zod.z.boolean().optional()
|
|
75020
75043
|
});
|
|
75021
75044
|
/**
|
|
75022
75045
|
* Cooldown GRANULARITY over the subject's class — how much a fired
|
|
@@ -85570,10 +85593,12 @@ var snapshotCapability = {
|
|
|
85570
85593
|
* even when the cache is well within the device's
|
|
85571
85594
|
* `snapshotMaxAgeS` window.
|
|
85572
85595
|
*
|
|
85573
|
-
* **`force` is
|
|
85596
|
+
* **`force` is a demand with a named principal, not a freshness
|
|
85597
|
+
* preference** — an operator button, the scheduled refresh (D847), or a
|
|
85598
|
+
* notification rule that left the camera's wake allowed (D998). On a
|
|
85574
85599
|
* battery camera it is the one thing that walks past the wrapper's
|
|
85575
|
-
* sleep gate and wakes the camera, so a
|
|
85576
|
-
*
|
|
85600
|
+
* sleep gate and wakes the camera, so a poller, a thumbnail or a
|
|
85601
|
+
* prestream must NEVER set it. Every such caller
|
|
85577
85602
|
* gets the cached frame, which on a sleeping battery camera is the
|
|
85578
85603
|
* correct answer: stale but honest beats woken.
|
|
85579
85604
|
*/
|
|
@@ -92232,7 +92257,7 @@ var ACTUATOR_METHODS = {
|
|
|
92232
92257
|
cover: [
|
|
92233
92258
|
row$1("cover", "open"),
|
|
92234
92259
|
row$1("cover", "close"),
|
|
92235
|
-
row$1("cover", "stop"),
|
|
92260
|
+
row$1("cover", "stop", DeviceFeature.CoverStoppable),
|
|
92236
92261
|
row$1("cover", "setPosition", DeviceFeature.CoverPositionable),
|
|
92237
92262
|
row$1("cover", "setTiltPosition", DeviceFeature.CoverTilt)
|
|
92238
92263
|
],
|
|
@@ -112026,6 +112051,12 @@ Object.defineProperty(exports, "resolveNotificationTapAddress", {
|
|
|
112026
112051
|
return resolveNotificationTapAddress;
|
|
112027
112052
|
}
|
|
112028
112053
|
});
|
|
112054
|
+
Object.defineProperty(exports, "resolveRunnerId", {
|
|
112055
|
+
enumerable: true,
|
|
112056
|
+
get: function() {
|
|
112057
|
+
return resolveRunnerId;
|
|
112058
|
+
}
|
|
112059
|
+
});
|
|
112029
112060
|
Object.defineProperty(exports, "resolveSecretMarkers", {
|
|
112030
112061
|
enumerable: true,
|
|
112031
112062
|
get: function() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_wal_maintenance = require("./wal-maintenance-
|
|
2
|
+
const require_wal_maintenance = require("./wal-maintenance-DrLnLCGO.js");
|
|
3
3
|
let node_worker_threads = require("node:worker_threads");
|
|
4
4
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-
|
|
1
|
+
import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-CTsOr0e7.mjs";
|
|
2
2
|
import { parentPort, threadId, workerData } from "node:worker_threads";
|
|
3
3
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
4
4
|
/**
|