@camstack/system 1.2.359 → 1.2.361
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon-runner.js +1 -1
- package/dist/addon-runner.mjs +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/dist/builtins/alerts/alerts.addon.js +1 -1
- package/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/dist/builtins/autotrack/index.js +1 -1
- package/dist/builtins/autotrack/index.mjs +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1 -1
- package/dist/builtins/calendars/calendars.addon.js +1 -1
- package/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/dist/builtins/camera-grid/index.js +1 -1
- package/dist/builtins/camera-grid/index.mjs +1 -1
- package/dist/builtins/composer/composer.addon.js +2 -2
- package/dist/builtins/composer/composer.addon.mjs +2 -2
- package/dist/builtins/console-logging/index.js +1 -1
- package/dist/builtins/console-logging/index.mjs +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.js +2 -2
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +2 -2
- package/dist/builtins/device-manager/device-manager.addon.js +2 -2
- package/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/dist/builtins/local-auth/local-auth.addon.js +1 -1
- package/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
- package/dist/builtins/local-network/address-book.d.ts +17 -17
- package/dist/builtins/local-network/local-network.addon.d.ts +21 -18
- package/dist/builtins/local-network/local-network.addon.js +85 -83
- package/dist/builtins/local-network/local-network.addon.mjs +85 -83
- package/dist/builtins/loki-logging/index.js +1 -1
- package/dist/builtins/loki-logging/index.mjs +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.d.ts +16 -0
- package/dist/builtins/native-metrics/native-metrics.addon.js +52 -14
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +52 -14
- package/dist/builtins/platform-probe/index.js +1 -1
- package/dist/builtins/platform-probe/index.mjs +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/dist/builtins/snapshot/index.js +1 -1
- package/dist/builtins/snapshot/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +0 -0
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +0 -0
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +2 -2
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +2 -2
- package/dist/builtins/system-config/system-config.addon.js +1 -1
- package/dist/builtins/system-config/system-config.addon.mjs +1 -1
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{child-cap-dispatch-Dm1TRDCr.mjs → child-cap-dispatch-StBHObCA.mjs} +1 -1
- package/dist/{child-cap-dispatch-t61ohDpb.js → child-cap-dispatch-T3Kdhbb3.js} +1 -1
- package/dist/{composition-sources-CHlfWHl6.mjs → composition-sources-DASc7NBj.mjs} +1 -1
- package/dist/{composition-sources-CCU_KizO.js → composition-sources-DFgayxCc.js} +1 -1
- package/dist/{dist-pTfD_M-U.mjs → dist-C9Rk6KVv.mjs} +100 -84
- package/dist/{dist-W_X44h-s.js → dist-Cv1lnnQq.js} +109 -93
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{retired-settings-keys-jglEzgWR.js → retired-settings-keys-BGNqRNhu.js} +1 -1
- package/dist/{retired-settings-keys-CK_ifret.mjs → retired-settings-keys-BjG8bQVI.mjs} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ar as EventCategory, Mt as foldSnapshotByFunction, ar as BaseAddon, en as metricsProviderCapability,
|
|
1
|
+
import { Ar as EventCategory, Mt as foldSnapshotByFunction, ar as BaseAddon, en as metricsProviderCapability, gn as resolveBucketMs, hr as createEvent, ir as errMsg, pn as reducePoints } from "../../dist-C9Rk6KVv.mjs";
|
|
2
2
|
import { a as parseProcStat, i as nodeProcReader, n as elapsedSecSince, o as parseProcStatusRss, r as lifetimeCpuPercent, t as commandFromCmdline } from "../../proc-stat-CbC55Kqi.mjs";
|
|
3
3
|
import { access, readFile, readdir } from "node:fs/promises";
|
|
4
4
|
import * as os from "node:os";
|
|
@@ -3009,7 +3009,8 @@ var NativeMetricsAddon = class NativeMetricsAddon extends BaseAddon {
|
|
|
3009
3009
|
}
|
|
3010
3010
|
this.memoryProbe = new ContainerMemoryProbe({ logger: this.ctx.logger.child("ContainerMemory") });
|
|
3011
3011
|
this.pidsProbe = new ContainerPidsProbe({ logger: this.ctx.logger.child("ContainerPids") });
|
|
3012
|
-
this.snapshotTimer
|
|
3012
|
+
if (this.snapshotTimer) clearInterval(this.snapshotTimer);
|
|
3013
|
+
this.snapshotTimer = setInterval(() => this.runTick("resources snapshot", () => this.emitResourcesSnapshot()), METRICS_SNAPSHOT_INTERVAL_MS);
|
|
3013
3014
|
this.startProcessSnapshotTimer();
|
|
3014
3015
|
this.ctx.addDisposer(this.ctx.eventBus.subscribe({ category: EventCategory.MetricsNodeProcessesSnapshot }, (event) => this.retainSnapshot(event.data.nodeId, event.data.timestamp, event.data.processes, event.data.containerMemory)));
|
|
3015
3016
|
return [{
|
|
@@ -3174,7 +3175,33 @@ var NativeMetricsAddon = class NativeMetricsAddon extends BaseAddon {
|
|
|
3174
3175
|
*/
|
|
3175
3176
|
startProcessSnapshotTimer() {
|
|
3176
3177
|
if (this.processSnapshotTimer) clearInterval(this.processSnapshotTimer);
|
|
3177
|
-
this.processSnapshotTimer =
|
|
3178
|
+
this.processSnapshotTimer = null;
|
|
3179
|
+
if (!this.ctxIfReady) return;
|
|
3180
|
+
this.processSnapshotTimer = setInterval(() => this.runTick("process snapshot", () => this.emitProcessesSnapshot()), this.loadConfig.cadenceSec * 1e3);
|
|
3181
|
+
}
|
|
3182
|
+
/**
|
|
3183
|
+
* Run one periodic tick so that it can NEVER become an unhandled rejection.
|
|
3184
|
+
*
|
|
3185
|
+
* `clearInterval` in `onShutdown` stops FUTURE ticks; it cannot recall one
|
|
3186
|
+
* already in flight. A process tick awaits a `/proc` read and a
|
|
3187
|
+
* `$process.list` broker call, and a graceful stop shuts this addon down
|
|
3188
|
+
* (nulling `ctx`) while the agent goes on to stop its other addons and the
|
|
3189
|
+
* broker — so the tick resumed with no context, its catch block reached for
|
|
3190
|
+
* `this.ctx.logger`, threw again, and the rejection of the timer callback
|
|
3191
|
+
* killed `docker stop CamStack-Agent` with exit code 1 (little-unraid,
|
|
3192
|
+
* 2026-10-07 04:22Z). The ticks themselves now capture their context once
|
|
3193
|
+
* and stand down when it is gone; this wrapper is the backstop.
|
|
3194
|
+
*
|
|
3195
|
+
* A tick before `initialize()` or after `shutdown()` is a no-op.
|
|
3196
|
+
*/
|
|
3197
|
+
runTick(name, tick) {
|
|
3198
|
+
if (!this.ctxIfReady) return;
|
|
3199
|
+
tick().catch((err) => {
|
|
3200
|
+
this.ctxIfReady?.logger.warn("native-metrics tick failed — this interval will be missing", { meta: {
|
|
3201
|
+
tick: name,
|
|
3202
|
+
error: err instanceof Error ? err.message : String(err)
|
|
3203
|
+
} });
|
|
3204
|
+
});
|
|
3178
3205
|
}
|
|
3179
3206
|
async onShutdown() {
|
|
3180
3207
|
if (this.snapshotTimer) {
|
|
@@ -3192,9 +3219,9 @@ var NativeMetricsAddon = class NativeMetricsAddon extends BaseAddon {
|
|
|
3192
3219
|
* Resolve this node's short id (strips any `nodeId/addonId` suffix).
|
|
3193
3220
|
* Returns null when the provider or event bus isn't available yet.
|
|
3194
3221
|
*/
|
|
3195
|
-
resolveSnapshotNodeId() {
|
|
3196
|
-
if (!this.provider || !
|
|
3197
|
-
const rawNodeId =
|
|
3222
|
+
resolveSnapshotNodeId(ctx) {
|
|
3223
|
+
if (!this.provider || !ctx.eventBus) return null;
|
|
3224
|
+
const rawNodeId = ctx.kernel.localNodeId ?? ctx.id;
|
|
3198
3225
|
return rawNodeId.includes("/") ? rawNodeId.split("/")[0] : rawNodeId;
|
|
3199
3226
|
}
|
|
3200
3227
|
/**
|
|
@@ -3203,13 +3230,16 @@ var NativeMetricsAddon = class NativeMetricsAddon extends BaseAddon {
|
|
|
3203
3230
|
* runs at samplingIntervalMs). Fires on METRICS_SNAPSHOT_INTERVAL_MS.
|
|
3204
3231
|
*/
|
|
3205
3232
|
async emitResourcesSnapshot() {
|
|
3233
|
+
const ctx = this.ctxIfReady;
|
|
3234
|
+
if (!ctx) return;
|
|
3206
3235
|
const provider = this.provider;
|
|
3207
|
-
const eventBus =
|
|
3208
|
-
const nodeId = this.resolveSnapshotNodeId();
|
|
3236
|
+
const eventBus = ctx.eventBus;
|
|
3237
|
+
const nodeId = this.resolveSnapshotNodeId(ctx);
|
|
3209
3238
|
if (!provider || !eventBus || !nodeId) return;
|
|
3210
3239
|
const timestamp = Date.now();
|
|
3211
3240
|
try {
|
|
3212
3241
|
const snapshot = await provider.getCached() ?? await provider.collectSnapshot();
|
|
3242
|
+
if (this.ctxIfReady !== ctx) return;
|
|
3213
3243
|
const coarse = coarsenResourcesSnapshot(snapshot);
|
|
3214
3244
|
const prev = this.lastResourcesEmit;
|
|
3215
3245
|
const heartbeatDue = !prev || timestamp - prev.emittedAt >= METRICS_SNAPSHOT_HEARTBEAT_MS;
|
|
@@ -3242,12 +3272,18 @@ var NativeMetricsAddon = class NativeMetricsAddon extends BaseAddon {
|
|
|
3242
3272
|
* A failed scan emits nothing, which is the same signal: nobody reported.
|
|
3243
3273
|
*/
|
|
3244
3274
|
async emitProcessesSnapshot() {
|
|
3245
|
-
const
|
|
3246
|
-
|
|
3275
|
+
const ctx = this.ctxIfReady;
|
|
3276
|
+
if (!ctx) return;
|
|
3277
|
+
const eventBus = ctx.eventBus;
|
|
3278
|
+
const nodeId = this.resolveSnapshotNodeId(ctx);
|
|
3247
3279
|
if (!this.provider || !eventBus || !nodeId) return;
|
|
3248
3280
|
const timestamp = Date.now();
|
|
3249
3281
|
try {
|
|
3250
3282
|
const processes = await this.listNodeProcesses();
|
|
3283
|
+
if (this.ctxIfReady !== ctx) {
|
|
3284
|
+
ctx.logger.debug("process snapshot dropped — addon shut down mid-tick", { meta: { nodeId } });
|
|
3285
|
+
return;
|
|
3286
|
+
}
|
|
3251
3287
|
const containerMemory = this.memoryProbe?.sample() ?? null;
|
|
3252
3288
|
this.pidsProbe?.sample();
|
|
3253
3289
|
eventBus.emit(createEvent(EventCategory.MetricsNodeProcessesSnapshot, {
|
|
@@ -3261,20 +3297,21 @@ var NativeMetricsAddon = class NativeMetricsAddon extends BaseAddon {
|
|
|
3261
3297
|
containerMemory
|
|
3262
3298
|
}));
|
|
3263
3299
|
} catch (err) {
|
|
3264
|
-
|
|
3300
|
+
ctx.logger.warn("process snapshot skipped — this interval will be missing", { meta: {
|
|
3265
3301
|
nodeId,
|
|
3266
3302
|
error: err instanceof Error ? err.message : String(err)
|
|
3267
3303
|
} });
|
|
3268
3304
|
}
|
|
3269
3305
|
}
|
|
3270
3306
|
async onConfigChanged() {
|
|
3307
|
+
if (!this.ctxIfReady) return;
|
|
3271
3308
|
this.provider?.stopSampling();
|
|
3272
3309
|
this.provider?.startSampling(this.config.samplingIntervalMs);
|
|
3273
3310
|
this.applyLoadSeriesConfig();
|
|
3274
3311
|
this.startProcessSnapshotTimer();
|
|
3275
3312
|
}
|
|
3276
3313
|
async listWorkerInstances() {
|
|
3277
|
-
const broker = this.
|
|
3314
|
+
const broker = this.ctxIfReady?.kernel.cluster?.broker;
|
|
3278
3315
|
if (!broker) return [];
|
|
3279
3316
|
try {
|
|
3280
3317
|
return await broker.call("$process.list");
|
|
@@ -3321,6 +3358,7 @@ var NativeMetricsAddon = class NativeMetricsAddon extends BaseAddon {
|
|
|
3321
3358
|
* walk behind them — live in `process-classification.ts`.
|
|
3322
3359
|
*/
|
|
3323
3360
|
async listNodeProcesses() {
|
|
3361
|
+
const selfNodeId = this.ctx.kernel.cluster?.broker?.nodeID ?? "hub";
|
|
3324
3362
|
const ps = await this.runPs();
|
|
3325
3363
|
if (ps.length === 0) return [];
|
|
3326
3364
|
const managed = /* @__PURE__ */ new Map();
|
|
@@ -3334,7 +3372,7 @@ var NativeMetricsAddon = class NativeMetricsAddon extends BaseAddon {
|
|
|
3334
3372
|
return buildNodeProcesses({
|
|
3335
3373
|
psRows: ps,
|
|
3336
3374
|
selfPid: process.pid,
|
|
3337
|
-
selfNodeId
|
|
3375
|
+
selfNodeId,
|
|
3338
3376
|
managed,
|
|
3339
3377
|
cpuSplits
|
|
3340
3378
|
});
|
|
@@ -3350,7 +3388,7 @@ var NativeMetricsAddon = class NativeMetricsAddon extends BaseAddon {
|
|
|
3350
3388
|
try {
|
|
3351
3389
|
return await readProcessTable();
|
|
3352
3390
|
} catch (err) {
|
|
3353
|
-
this.
|
|
3391
|
+
this.ctxIfReady?.logger.warn("process table read failed", { meta: { error: err instanceof Error ? err.message : String(err) } });
|
|
3354
3392
|
return [];
|
|
3355
3393
|
}
|
|
3356
3394
|
}
|
|
@@ -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-Cv1lnnQq.js");
|
|
7
7
|
let node_os = require("node:os");
|
|
8
8
|
node_os = require_chunk.__toESM(node_os);
|
|
9
9
|
let node_fs = require("node:fs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as __toESM } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { Ar as EventCategory, Ct as enumerateInferenceDevices, En as scoreRuntimes, _r as emitReadiness, ar as BaseAddon, ir as errMsg, un as platformProbeCapability } from "../../dist-
|
|
2
|
+
import { Ar as EventCategory, Ct as enumerateInferenceDevices, En as scoreRuntimes, _r as emitReadiness, ar as BaseAddon, ir as errMsg, un as platformProbeCapability } from "../../dist-C9Rk6KVv.mjs";
|
|
3
3
|
import * as os from "node:os";
|
|
4
4
|
import * as fs from "node:fs";
|
|
5
5
|
import { execFile } from "node:child_process";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-Cv1lnnQq.js");
|
|
7
7
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
8
8
|
/**
|
|
9
9
|
* Reconcile the durable `enabledProviders` set against authoritative
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ar as EventCategory, ar as BaseAddon } from "../../dist-
|
|
1
|
+
import { Ar as EventCategory, ar as BaseAddon } from "../../dist-C9Rk6KVv.mjs";
|
|
2
2
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
3
3
|
/**
|
|
4
4
|
* Reconcile the durable `enabledProviders` set against authoritative
|
|
@@ -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-Cv1lnnQq.js");
|
|
7
7
|
const require_snapshot_courtesy = require("../../snapshot-courtesy-D_C5-nC0.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as memoizePinnedFfmpeg, Ar as EventCategory, Fn as streamQualityLabel, Sr as nodePin, X as batteryCapability, Y as bareAddonId, _t as deriveBatteryPresence, a as BatteryStatusSchema, ar as BaseAddon, ir as errMsg, kn as snapshotCapability, rr as DeviceType, tr as DeviceFeature } from "../../dist-
|
|
1
|
+
import { $t as memoizePinnedFfmpeg, Ar as EventCategory, Fn as streamQualityLabel, Sr as nodePin, X as batteryCapability, Y as bareAddonId, _t as deriveBatteryPresence, a as BatteryStatusSchema, ar as BaseAddon, ir as errMsg, kn as snapshotCapability, rr as DeviceType, tr as DeviceFeature } from "../../dist-C9Rk6KVv.mjs";
|
|
2
2
|
import { i as renderCourtesyOverlayJpeg, n as courtesyCacheKey, r as renderCourtesyJpeg } from "../../snapshot-courtesy-CyFs1M3I.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
@@ -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-Cv1lnnQq.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
let node_fs_promises = require("node:fs/promises");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Nn as storageProviderCapability, ar as BaseAddon, jt as filesystemBrowseCapability } from "../../dist-
|
|
1
|
+
import { Nn as storageProviderCapability, ar as BaseAddon, jt as filesystemBrowseCapability } from "../../dist-C9Rk6KVv.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { mkdir, readdir, realpath, statfs } from "node:fs/promises";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
Binary file
|
|
Binary file
|
|
@@ -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-Cv1lnnQq.js");
|
|
7
7
|
const require_hub_cap_forward = require("../../hub-cap-forward-DmHNjbB0.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
@@ -3886,7 +3886,7 @@ var StorageOrchestratorAddon = class extends require_dist.BaseAddon {
|
|
|
3886
3886
|
try {
|
|
3887
3887
|
await this.pressureManager.sweep();
|
|
3888
3888
|
} catch (err) {
|
|
3889
|
-
this.
|
|
3889
|
+
this.ctxIfReady?.logger.warn("storage pressure sweep failed", { meta: { error: err instanceof Error ? err.message : String(err) } });
|
|
3890
3890
|
} finally {
|
|
3891
3891
|
this.pressureSweepInFlight = false;
|
|
3892
3892
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { An as storageCapability, Ar as EventCategory, B as StorageLocationTypeSchema, Cr as parseJsonObject, Dn as settingsStoreCapability, Dt as evictionPolicyOfLocation, E as LegacyStorageLocationDefaultSchema, Hn as withLocationMode, M as REDACTED_SECRET, Pt as gbToBytes, Qt as mayWriteToLocation, R as StorageCleanupJobSchema, V as StorageMigrationJobSchema, Wt as legacyModeOf, Zt as mayReadLocation, ar as BaseAddon, jn as storageMigrationCapability, nt as collectSecretConfigKeys, tn as modeMayWrite,
|
|
1
|
+
import { An as storageCapability, Ar as EventCategory, B as StorageLocationTypeSchema, Cr as parseJsonObject, Dn as settingsStoreCapability, Dt as evictionPolicyOfLocation, E as LegacyStorageLocationDefaultSchema, Hn as withLocationMode, M as REDACTED_SECRET, Pt as gbToBytes, Qt as mayWriteToLocation, R as StorageCleanupJobSchema, V as StorageMigrationJobSchema, Wt as legacyModeOf, Zt as mayReadLocation, ar as BaseAddon, bn as resolveLocationMode, jn as storageMigrationCapability, nt as collectSecretConfigKeys, tn as modeMayWrite, z as StorageLocationModeSchema, zt as isLocationEnabled } from "../../dist-C9Rk6KVv.mjs";
|
|
2
2
|
import { t as HUB_CAP_FWD_ACTION } from "../../hub-cap-forward-BdT320dq.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
@@ -3881,7 +3881,7 @@ var StorageOrchestratorAddon = class extends BaseAddon {
|
|
|
3881
3881
|
try {
|
|
3882
3882
|
await this.pressureManager.sweep();
|
|
3883
3883
|
} catch (err) {
|
|
3884
|
-
this.
|
|
3884
|
+
this.ctxIfReady?.logger.warn("storage pressure sweep failed", { meta: { error: err instanceof Error ? err.message : String(err) } });
|
|
3885
3885
|
} finally {
|
|
3886
3886
|
this.pressureSweepInFlight = false;
|
|
3887
3887
|
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-Cv1lnnQq.js");
|
|
7
7
|
//#region src/builtins/system-config/system-config.addon.ts
|
|
8
8
|
/**
|
|
9
9
|
* Built-in `system-config` addon — Phase 4 of the settings redesign.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ar as BaseAddon, ir as errMsg, yr as hydrateSchema } from "../../dist-
|
|
1
|
+
import { ar as BaseAddon, ir as errMsg, yr as hydrateSchema } from "../../dist-C9Rk6KVv.mjs";
|
|
2
2
|
//#region src/builtins/system-config/system-config.addon.ts
|
|
3
3
|
/**
|
|
4
4
|
* Built-in `system-config` addon — Phase 4 of the settings redesign.
|
|
@@ -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-Cv1lnnQq.js");
|
|
7
7
|
const require_formatter = require("../../formatter-DqAKDlvN.js");
|
|
8
8
|
let node_path = require("node:path");
|
|
9
9
|
node_path = require_chunk.__toESM(node_path);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Jt as logDestinationCapability, ar as BaseAddon } from "../../dist-
|
|
1
|
+
import { Jt as logDestinationCapability, ar as BaseAddon } from "../../dist-C9Rk6KVv.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-B7qW8bPJ.mjs";
|
|
3
3
|
import * as path$1 from "node:path";
|
|
4
4
|
import path from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ar as EventCategory$1, hr as createEvent } from "./dist-
|
|
1
|
+
import { Ar as EventCategory$1, hr as createEvent } from "./dist-C9Rk6KVv.mjs";
|
|
2
2
|
import { a as parseProcStat, i as nodeProcReader } from "./proc-stat-CbC55Kqi.mjs";
|
|
3
3
|
import "./hub-cap-forward-BdT320dq.mjs";
|
|
4
4
|
import * as crypto$1 from "node:crypto";
|
|
@@ -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-Cv1lnnQq.js");
|
|
3
3
|
const require_proc_stat = require("./proc-stat-DL-WUOhl.js");
|
|
4
4
|
require("./hub-cap-forward-DmHNjbB0.js");
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Zn as compositionSourceKey, ir as errMsg } from "./dist-
|
|
1
|
+
import { Zn as compositionSourceKey, ir as errMsg } from "./dist-C9Rk6KVv.mjs";
|
|
2
2
|
//#region src/builtins/core-blocks/composition-sources.ts
|
|
3
3
|
/**
|
|
4
4
|
* Describe what a composition reads and writes for SAVE-time validation
|