@camstack/server 1.2.883 → 1.2.885
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 +12 -0
- package/package.json +7 -13
- package/system/dist/addon-utils.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 +3 -3
- 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 +4 -4
- package/system/dist/builtins/composer/composer.addon.mjs +4 -4
- 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 +3 -3
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +3 -3
- 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 +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
- 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 +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- 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 +3 -3
- package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
- 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 +1 -1
- package/system/dist/builtins/snapshot/index.mjs +1 -1
- 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/sqlite-settings.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- 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 +115 -115
- package/system/dist/builtins/winston-logging/index.js +1 -1
- package/system/dist/builtins/winston-logging/index.mjs +1 -1
- package/system/dist/{capture-engine-D1cSfGu_.js → capture-engine-D14TTaaO.js} +1 -1
- package/system/dist/{capture-engine-hBdaHSa5.mjs → capture-engine-D1VxFidj.mjs} +1 -1
- package/system/dist/{composition-sources-Cpu22JMr.mjs → composition-sources-D83ybKCS.mjs} +1 -1
- package/system/dist/{composition-sources-CfKDTis7.js → composition-sources-DW9aO1g9.js} +1 -1
- package/system/dist/{constants-CRKNMR3M.js → constants-2GrhzN-T.js} +1 -1
- package/system/dist/{constants-CTYmEHlW.mjs → constants-BdZYM4pz.mjs} +1 -1
- package/system/dist/{coral-accelerators-DBlgWB8k.mjs → coral-accelerators-BW3OcrLD.mjs} +6 -6
- package/system/dist/{custom-action-registry-B9zFBNVa.mjs → custom-action-registry-N7flBDwT.mjs} +37 -37
- package/system/dist/{device-ca-wlsnsg3M.js → device-ca-DsmVXeGp.js} +1 -1
- package/system/dist/{device-ca-Dj6nzcoq.mjs → device-ca-GCSaBq5b.mjs} +1 -1
- package/system/dist/{dist-BbuJa6G4.mjs → dist-BDoMdUU3.mjs} +9 -1
- package/system/dist/{dist-DFeAUBa8.js → dist-g8h5trmJ.js} +9 -1
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-CcEQJ8el.mjs → hub-identity-DWpZuOni.mjs} +10 -10
- package/system/dist/{hub-identity-DPKmKOuk.js → hub-identity-mscSQisH.js} +1 -1
- package/system/dist/{hub-mdns-ciao-p1Hky4He.mjs → hub-mdns-ciao-DwnPlf4P.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-DP0ReXx8.js → hub-mdns-ciao-x1wE7M7D.js} +2 -2
- package/system/dist/index.js +39 -13
- package/system/dist/index.mjs +248 -222
- package/system/dist/kernel/unsupported-addon-tracker.d.ts +10 -2
- package/system/dist/{legacy-integration-rows-door-BxlPhgrH.js → legacy-integration-rows-door-COwJBP8g.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-DJaNTUpH.mjs → legacy-integration-rows-door-DOAAvsCM.mjs} +1 -1
- package/system/dist/{rename-composition-block-BAiTDZoT.js → rename-composition-block-4TI-pwzS.js} +1 -1
- package/system/dist/{rename-composition-block-DjyPUZPW.mjs → rename-composition-block-AX9Lc9Bu.mjs} +1 -1
- package/system/dist/{restore-archive-BLJ9rXBX.mjs → restore-archive-B4f1EeXn.mjs} +94 -94
- package/system/dist/{restore-archive-n-OmTBbN.js → restore-archive-Bpqb4LSG.js} +1 -1
- package/system/dist/{wal-maintenance-CrMVN_qH.js → wal-maintenance-BU17H1Z1.js} +0 -0
- package/system/dist/{wal-maintenance-DKNovLM_.mjs → wal-maintenance-Cp6aLpv5.mjs} +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-g8h5trmJ.js");
|
|
7
7
|
const require_formatter = require("../../formatter-xbxeV4GD.js");
|
|
8
8
|
const require_log_file_read_protocol = require("../../log-file-read-protocol-DSV_vQRb.js");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ea as preconditionOf, Gc as defineAddonMigrations, Gi as logDestinationCapability, Ks as BaseAddon } from "../../dist-
|
|
1
|
+
import { Ea as preconditionOf, Gc as defineAddonMigrations, Gi as logDestinationCapability, Ks as BaseAddon } from "../../dist-BDoMdUU3.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-hTaAsYlX.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_dist = require("./dist-
|
|
1
|
+
const require_dist = require("./dist-g8h5trmJ.js");
|
|
2
2
|
//#region src/builtins/device-history/store/series-registry.ts
|
|
3
3
|
function subjectIdOf(subject) {
|
|
4
4
|
return subject.kind === "device" ? `d:${subject.deviceId}` : `n:${subject.nodeId}`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Gl as DeviceType, nc as HISTORY_DEFAULT_MIN_INTERVAL_MS, tl as historyItemFieldPath } from "./dist-
|
|
1
|
+
import { Gl as DeviceType, nc as HISTORY_DEFAULT_MIN_INTERVAL_MS, tl as historyItemFieldPath } from "./dist-BDoMdUU3.mjs";
|
|
2
2
|
//#region src/builtins/device-history/store/series-registry.ts
|
|
3
3
|
function subjectIdOf(subject) {
|
|
4
4
|
return subject.kind === "device" ? `d:${subject.deviceId}` : `n:${subject.nodeId}`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ds as compositionSourceKey, Kl as errMsg } from "./dist-
|
|
1
|
+
import { Ds as compositionSourceKey, Kl as errMsg } from "./dist-BDoMdUU3.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-g8h5trmJ.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-B9zFBNVa.mjs → custom-action-registry-N7flBDwT.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
|
-
import * as fs
|
|
2
|
+
import * as fs from "node:fs";
|
|
3
3
|
import { createReadStream, promises } from "node:fs";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
5
5
|
import path from "node:path";
|
|
@@ -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 { Ic as buildSecretRef, K as DEVICE_SAN_CREDENTIAL_PREFIX, q as DEVICE_SAN_USER_PREFIX } from "./dist-
|
|
1
|
+
import { Ic as buildSecretRef, K as DEVICE_SAN_CREDENTIAL_PREFIX, q as DEVICE_SAN_USER_PREFIX } from "./dist-BDoMdUU3.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
|
|
@@ -110855,7 +110855,15 @@ var webrtcClientHintsSchema = z.object({
|
|
|
110855
110855
|
/** navigator.connection.downlink — Mbps the browser estimates. */
|
|
110856
110856
|
downlinkMbps: z.number().nonnegative().optional(),
|
|
110857
110857
|
/** Hard tier override; takes precedence over scoring when registered. */
|
|
110858
|
-
prefersTier: z.string().optional()
|
|
110858
|
+
prefersTier: z.string().optional(),
|
|
110859
|
+
/**
|
|
110860
|
+
* What the session is opened FOR. `clip` = the client opens it to play a
|
|
110861
|
+
* stored clip (`playClip` on the control channel): the server negotiates
|
|
110862
|
+
* without dialling the camera and attaches live only when the client
|
|
110863
|
+
* sends `goLive` — a sleeping battery camera is never woken to watch our
|
|
110864
|
+
* own footage (#566). Absent or `live` = today's live-first session.
|
|
110865
|
+
*/
|
|
110866
|
+
intent: z.enum(["live", "clip"]).optional()
|
|
110859
110867
|
}).partial();
|
|
110860
110868
|
/**
|
|
110861
110869
|
* Discriminated target for a WebRTC session. The client sends this
|
|
@@ -110855,7 +110855,15 @@ var webrtcClientHintsSchema = zod.z.object({
|
|
|
110855
110855
|
/** navigator.connection.downlink — Mbps the browser estimates. */
|
|
110856
110856
|
downlinkMbps: zod.z.number().nonnegative().optional(),
|
|
110857
110857
|
/** Hard tier override; takes precedence over scoring when registered. */
|
|
110858
|
-
prefersTier: zod.z.string().optional()
|
|
110858
|
+
prefersTier: zod.z.string().optional(),
|
|
110859
|
+
/**
|
|
110860
|
+
* What the session is opened FOR. `clip` = the client opens it to play a
|
|
110861
|
+
* stored clip (`playClip` on the control channel): the server negotiates
|
|
110862
|
+
* without dialling the camera and attaches live only when the client
|
|
110863
|
+
* sends `goLive` — a sleeping battery camera is never woken to watch our
|
|
110864
|
+
* own footage (#566). Absent or `live` = today's live-first session.
|
|
110865
|
+
*/
|
|
110866
|
+
intent: zod.z.enum(["live", "clip"]).optional()
|
|
110859
110867
|
}).partial();
|
|
110860
110868
|
/**
|
|
110861
110869
|
* Discriminated target for a WebRTC session. The client sends this
|
|
@@ -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-BU17H1Z1.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-Cp6aLpv5.mjs";
|
|
2
2
|
import { parentPort, threadId, workerData } from "node:worker_threads";
|
|
3
3
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
4
4
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Jc as defineRecordKinds } from "./dist-
|
|
1
|
+
import { Jc as defineRecordKinds } from "./dist-BDoMdUU3.mjs";
|
|
2
2
|
import { C as backdatedNotBefore, S as withUtcTimeEncoding, _ as NameConstraints, a as KeyUsageFlags, c as Pkcs10CertificateRequest, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, g as GeneralSubtrees, h as GeneralSubtree, i as Extension, l as Pkcs10CertificateRequestGenerator, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension, u as SubjectAlternativeNameExtension, v as GeneralName, x as AsnConvert } from "./x509.es-BRiJgOvu.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { X509Certificate, createHash, createPrivateKey, randomBytes, webcrypto } from "node:crypto";
|
|
5
5
|
import { writeOwnerOnlyFileSync } from "@camstack/types/node";
|
|
6
6
|
import { isIP } from "node:net";
|
|
7
|
-
import * as fs
|
|
7
|
+
import * as fs from "node:fs";
|
|
8
8
|
import { existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
9
9
|
import * as path$1 from "node:path";
|
|
10
10
|
import { join } from "node:path";
|
|
@@ -1067,7 +1067,7 @@ var HUB_IDENTITY_RELATIVE = `tls/${HUB_IDENTITY_FILE}`;
|
|
|
1067
1067
|
function readHubIdFile(file) {
|
|
1068
1068
|
let parsed;
|
|
1069
1069
|
try {
|
|
1070
|
-
parsed = JSON.parse(fs
|
|
1070
|
+
parsed = JSON.parse(fs.readFileSync(file, "utf8"));
|
|
1071
1071
|
} catch (err) {
|
|
1072
1072
|
return {
|
|
1073
1073
|
hubId: null,
|
|
@@ -1094,18 +1094,18 @@ function identityPath(dataDir) {
|
|
|
1094
1094
|
function writeHubIdFile(file, hubId) {
|
|
1095
1095
|
const tmp = `${file}.${process.pid}.tmp`;
|
|
1096
1096
|
try {
|
|
1097
|
-
fs
|
|
1098
|
-
fs
|
|
1099
|
-
fs
|
|
1097
|
+
fs.mkdirSync(path$1.dirname(file), { recursive: true });
|
|
1098
|
+
fs.writeFileSync(tmp, `${JSON.stringify({ hubId }, null, 2)}\n`);
|
|
1099
|
+
fs.linkSync(tmp, file);
|
|
1100
1100
|
} catch (err) {
|
|
1101
|
-
if (fs
|
|
1101
|
+
if (fs.existsSync(file)) return readHubIdFile(file);
|
|
1102
1102
|
return {
|
|
1103
1103
|
hubId: null,
|
|
1104
1104
|
created: false,
|
|
1105
1105
|
problem: `could not write ${file}: ${err instanceof Error ? err.message : String(err)}`
|
|
1106
1106
|
};
|
|
1107
1107
|
} finally {
|
|
1108
|
-
fs
|
|
1108
|
+
fs.rmSync(tmp, { force: true });
|
|
1109
1109
|
}
|
|
1110
1110
|
return {
|
|
1111
1111
|
hubId,
|
|
@@ -1119,9 +1119,9 @@ function writeHubIdFile(file, hubId) {
|
|
|
1119
1119
|
*/
|
|
1120
1120
|
function loadOrCreateHubId(dataDir) {
|
|
1121
1121
|
const file = identityPath(dataDir);
|
|
1122
|
-
if (fs
|
|
1122
|
+
if (fs.existsSync(file)) return readHubIdFile(file);
|
|
1123
1123
|
const legacy = path$1.join(dataDir, HUB_IDENTITY_FILE);
|
|
1124
|
-
if (fs
|
|
1124
|
+
if (fs.existsSync(legacy)) {
|
|
1125
1125
|
const read = readHubIdFile(legacy);
|
|
1126
1126
|
if (read.hubId === null) return read;
|
|
1127
1127
|
if (writeHubIdFile(file, read.hubId).hubId === null) return read;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-g8h5trmJ.js");
|
|
3
3
|
const require_x509_es = require("./x509.es-WtnRNyYS.js");
|
|
4
4
|
let zod = require("zod");
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as __toESM } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { Rl as userError } from "./dist-
|
|
2
|
+
import { Rl as userError } from "./dist-BDoMdUU3.mjs";
|
|
3
3
|
import { f as X509Certificate$1 } from "./x509.es-BRiJgOvu.mjs";
|
|
4
|
-
import { A as evaluateExistingCert, C as localCaCommonName, F as isConstrainedCa, L as permitsIdentity, S as loadCa, b as generateCa, j as reasonRequiresNewCa, w as collectCertIdentity, x as issueLeaf, z as readNameConstraints } from "./hub-identity-
|
|
4
|
+
import { A as evaluateExistingCert, C as localCaCommonName, F as isConstrainedCa, L as permitsIdentity, S as loadCa, b as generateCa, j as reasonRequiresNewCa, w as collectCertIdentity, x as issueLeaf, z as readNameConstraints } from "./hub-identity-DWpZuOni.mjs";
|
|
5
5
|
import { X509Certificate, createPrivateKey } from "node:crypto";
|
|
6
6
|
import { writeOwnerOnlyFileSync } from "@camstack/types/node";
|
|
7
7
|
import { copyFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-g8h5trmJ.js");
|
|
3
3
|
const require_x509_es = require("./x509.es-WtnRNyYS.js");
|
|
4
|
-
const require_hub_identity = require("./hub-identity-
|
|
4
|
+
const require_hub_identity = require("./hub-identity-mscSQisH.js");
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
6
6
|
let _camstack_types_node = require("@camstack/types/node");
|
|
7
7
|
let node_fs = require("node:fs");
|
package/system/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("./dist-
|
|
4
|
-
const require_device_ca = require("./device-ca-
|
|
3
|
+
const require_dist = require("./dist-g8h5trmJ.js");
|
|
4
|
+
const require_device_ca = require("./device-ca-DsmVXeGp.js");
|
|
5
5
|
const require_read_all_rows$1 = require("./read-all-rows-CVoO1ONM.js");
|
|
6
6
|
const require_log_redactor = require("./log-redactor-BhIEMaG9.js");
|
|
7
7
|
const require_builtins_alerts_alerts_addon = require("./builtins/alerts/alerts.addon.js");
|
|
@@ -28,22 +28,22 @@ const require_builtins_loki_logging_index = require("./builtins/loki-logging/ind
|
|
|
28
28
|
const require_builtins_native_metrics_native_metrics_addon = require("./builtins/native-metrics/native-metrics.addon.js");
|
|
29
29
|
const require_builtins_device_history_device_history_addon = require("./builtins/device-history/device-history.addon.js");
|
|
30
30
|
const require_builtins_sqlite_storage_filesystem_storage_addon = require("./builtins/sqlite-storage/filesystem-storage.addon.js");
|
|
31
|
-
const require_wal_maintenance = require("./wal-maintenance-
|
|
32
|
-
const require_legacy_integration_rows_door = require("./legacy-integration-rows-door-
|
|
31
|
+
const require_wal_maintenance = require("./wal-maintenance-BU17H1Z1.js");
|
|
32
|
+
const require_legacy_integration_rows_door = require("./legacy-integration-rows-door-COwJBP8g.js");
|
|
33
33
|
const require_builtins_sqlite_storage_sqlite_settings_addon = require("./builtins/sqlite-storage/sqlite-settings.addon.js");
|
|
34
34
|
const require_builtins_sqlite_storage_index = require("./builtins/sqlite-storage/index.js");
|
|
35
35
|
const require_builtins_storage_orchestrator_storage_orchestrator_addon = require("./builtins/storage-orchestrator/storage-orchestrator.addon.js");
|
|
36
36
|
require("./builtins/storage-orchestrator/index.js");
|
|
37
|
-
const require_hub_identity = require("./hub-identity-
|
|
38
|
-
const require_constants = require("./constants-
|
|
37
|
+
const require_hub_identity = require("./hub-identity-mscSQisH.js");
|
|
38
|
+
const require_constants = require("./constants-2GrhzN-T.js");
|
|
39
39
|
const require_builtins_system_config_system_config_addon = require("./builtins/system-config/system-config.addon.js");
|
|
40
40
|
require("./builtins/system-config/index.js");
|
|
41
41
|
const require_builtins_winston_logging_index = require("./builtins/winston-logging/index.js");
|
|
42
42
|
const require_custom_action_registry = require("./custom-action-registry-CmWpSeMS.js");
|
|
43
|
-
const require_hub_mdns_ciao = require("./hub-mdns-ciao-
|
|
43
|
+
const require_hub_mdns_ciao = require("./hub-mdns-ciao-x1wE7M7D.js");
|
|
44
44
|
const require_platform_key_source = require("./platform-key-source-Di7HrlGR.js");
|
|
45
45
|
const require_resource_monitor = require("./resource-monitor-mio9dSCT.js");
|
|
46
|
-
const require_restore_archive = require("./restore-archive-
|
|
46
|
+
const require_restore_archive = require("./restore-archive-Bpqb4LSG.js");
|
|
47
47
|
const require_coral_accelerators = require("./coral-accelerators-BSVsBVzt.js");
|
|
48
48
|
let zod = require("zod");
|
|
49
49
|
let node_crypto = require("node:crypto");
|
|
@@ -23623,8 +23623,12 @@ var AddonHealthMonitor = class {
|
|
|
23623
23623
|
*
|
|
23624
23624
|
* One tracker per process; the verdict is re-judged on every spawn path, and
|
|
23625
23625
|
* `observe` is idempotent; given the node's full installed set, a streak whose
|
|
23626
|
-
* package is no longer installed is resolved too. State is in memory
|
|
23627
|
-
*
|
|
23626
|
+
* package is no longer installed is resolved too. State is in memory, so a restart
|
|
23627
|
+
* forgets which alerts this tracker raised: a still-unsupported addon is raised once
|
|
23628
|
+
* more (AlertCenter upserts it under the same id), and a package judged supported with
|
|
23629
|
+
* no streak is announced as resolved ONCE per process (after the settle window), because
|
|
23630
|
+
* the persisted card of the previous process may still be active and dismissing a
|
|
23631
|
+
* missing card is a no-op.
|
|
23628
23632
|
*/
|
|
23629
23633
|
var UNSUPPORTED_ADDON_SETTLE_MS = 6e4;
|
|
23630
23634
|
var UnsupportedAddonTracker = class {
|
|
@@ -23635,6 +23639,10 @@ var UnsupportedAddonTracker = class {
|
|
|
23635
23639
|
startedAt;
|
|
23636
23640
|
timer = null;
|
|
23637
23641
|
logged = /* @__PURE__ */ new Set();
|
|
23642
|
+
/** Supported packages whose `AddonUnsupportedResolved` is due once the settle window is over. */
|
|
23643
|
+
pendingClear = /* @__PURE__ */ new Set();
|
|
23644
|
+
/** Supported packages already announced as resolved in this process. */
|
|
23645
|
+
announcedSupported = /* @__PURE__ */ new Set();
|
|
23638
23646
|
constructor(options) {
|
|
23639
23647
|
this.options = options;
|
|
23640
23648
|
this.settleMs = options.settleMs ?? 6e4;
|
|
@@ -23677,12 +23685,22 @@ var UnsupportedAddonTracker = class {
|
|
|
23677
23685
|
facts,
|
|
23678
23686
|
raised: false
|
|
23679
23687
|
});
|
|
23688
|
+
this.pendingClear.delete(facts.packageName);
|
|
23689
|
+
this.announcedSupported.delete(facts.packageName);
|
|
23680
23690
|
}
|
|
23681
23691
|
resolve(packageName) {
|
|
23682
23692
|
const streak = this.streaks.get(packageName);
|
|
23683
|
-
if (streak === void 0)
|
|
23693
|
+
if (streak === void 0) {
|
|
23694
|
+
if (!this.announcedSupported.has(packageName)) this.pendingClear.add(packageName);
|
|
23695
|
+
return;
|
|
23696
|
+
}
|
|
23684
23697
|
this.streaks.delete(packageName);
|
|
23685
|
-
|
|
23698
|
+
this.announcedSupported.add(packageName);
|
|
23699
|
+
if (!streak.raised) {
|
|
23700
|
+
this.pendingClear.add(packageName);
|
|
23701
|
+
return;
|
|
23702
|
+
}
|
|
23703
|
+
this.pendingClear.delete(packageName);
|
|
23686
23704
|
this.options.log(`[unsupported-addon] ${streak.facts.addonId} (${packageName}) is supported again, alert cleared`);
|
|
23687
23705
|
this.emit(require_dist.EventCategory.AddonUnsupportedResolved, {
|
|
23688
23706
|
packageName,
|
|
@@ -23694,7 +23712,7 @@ var UnsupportedAddonTracker = class {
|
|
|
23694
23712
|
flush() {
|
|
23695
23713
|
const remaining = this.startedAt + this.settleMs - this.now();
|
|
23696
23714
|
if (remaining > 0) {
|
|
23697
|
-
if (this.timer === null && this.streaks.size > 0) {
|
|
23715
|
+
if (this.timer === null && (this.streaks.size > 0 || this.pendingClear.size > 0)) {
|
|
23698
23716
|
this.timer = setTimeout(() => {
|
|
23699
23717
|
this.timer = null;
|
|
23700
23718
|
this.flush();
|
|
@@ -23703,6 +23721,14 @@ var UnsupportedAddonTracker = class {
|
|
|
23703
23721
|
}
|
|
23704
23722
|
return;
|
|
23705
23723
|
}
|
|
23724
|
+
for (const packageName of [...this.pendingClear]) {
|
|
23725
|
+
this.pendingClear.delete(packageName);
|
|
23726
|
+
this.announcedSupported.add(packageName);
|
|
23727
|
+
this.emit(require_dist.EventCategory.AddonUnsupportedResolved, {
|
|
23728
|
+
packageName,
|
|
23729
|
+
nodeId: this.options.nodeId
|
|
23730
|
+
});
|
|
23731
|
+
}
|
|
23706
23732
|
for (const streak of this.streaks.values()) {
|
|
23707
23733
|
if (streak.raised) continue;
|
|
23708
23734
|
streak.raised = true;
|