@camstack/server 1.2.791 → 1.2.793
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/dist/api/trpc/generated-cap-routers.js +0 -43
- package/package.json +12 -16
- package/system/dist/{agent-https-BmVaVskH.mjs → agent-https-LDtzwOC3.mjs} +1 -1
- package/system/dist/{agent-https-DOs15BCJ.js → agent-https-dPSUE1iZ.js} +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 +1 -1
- 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 +1 -1
- 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 +2 -2
- 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/addon.d.ts +27 -31
- package/system/dist/builtins/camera-grid/grid-instances.d.ts +18 -0
- package/system/dist/builtins/camera-grid/grid-record-kinds.d.ts +31 -0
- package/system/dist/builtins/camera-grid/index.d.ts +2 -2
- package/system/dist/builtins/camera-grid/index.js +386 -146
- package/system/dist/builtins/camera-grid/index.mjs +382 -146
- package/system/dist/builtins/camera-grid/migrations/__fixtures__/seed.d.ts +13 -0
- package/system/dist/builtins/camera-grid/migrations/camera-grids-to-records.d.ts +26 -0
- package/system/dist/builtins/camera-grid/migrations/index.d.ts +6 -0
- 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 +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 +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 +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 +2 -2
- package/system/dist/builtins/local-network/address-book.d.ts +2 -0
- package/system/dist/builtins/local-network/local-network.addon.d.ts +7 -0
- package/system/dist/builtins/local-network/local-network.addon.js +27 -9
- package/system/dist/builtins/local-network/local-network.addon.mjs +27 -9
- package/system/dist/builtins/loki-logging/index.js +53 -83
- package/system/dist/builtins/loki-logging/index.mjs +53 -83
- package/system/dist/builtins/loki-logging/loki-logging.addon.d.ts +1 -4
- package/system/dist/builtins/loki-logging/migrations/index.d.ts +4 -1
- package/system/dist/builtins/loki-logging/migrations/retired-enabled-flag.d.ts +22 -0
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +1 -1
- 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 +1 -1
- 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 +3 -3
- 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-BVpkq9Mv.js → capture-engine-B-X0ZNPG.js} +1 -1
- package/system/dist/{capture-engine-D-oUDtX5.mjs → capture-engine-ek8d0K7v.mjs} +1 -1
- package/system/dist/{composition-sources-DKCbVA67.js → composition-sources-DGKK9sGT.js} +1 -1
- package/system/dist/{composition-sources-Br7JhpbD.mjs → composition-sources-Dr69aWyC.mjs} +1 -1
- package/system/dist/{constants-Bl0Qxbek.mjs → constants-CAlOFVXO.mjs} +1 -1
- package/system/dist/{constants-CJVY-mUq.js → constants-DuVFATnX.js} +1 -1
- package/system/dist/{device-ca-i8EbKp3q.js → device-ca-CJyaKA2l.js} +1 -1
- package/system/dist/{device-ca-BeDGy8NK.mjs → device-ca-FfLv_YPi.mjs} +1 -1
- package/system/dist/{dist-Ddkk4Dqq.js → dist-CJoLQeEj.js} +1 -76
- package/system/dist/{dist-CPUbgRkb.mjs → dist-Dgkqkron.mjs} +1 -76
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-DgF4SifE.mjs → hub-mdns-ciao-Bczd9NSt.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-lHRHbXqV.js → hub-mdns-ciao-q3IAAxK6.js} +2 -2
- package/system/dist/index.js +8 -20
- package/system/dist/index.mjs +8 -20
- package/system/dist/{legacy-integration-rows-door-9JSt493H.mjs → legacy-integration-rows-door-CTCq-5la.mjs} +1 -1
- package/system/dist/{legacy-integration-rows-door-n9GIUxgq.js → legacy-integration-rows-door-CfpoIqz-.js} +1 -1
- package/system/dist/{restore-archive-Dh3XnCR1.mjs → restore-archive-DR05cy7P.mjs} +1 -1
- package/system/dist/{restore-archive-BDvLSZtj.js → restore-archive-HS5O901O.js} +1 -1
- package/system/dist/{wal-maintenance-BQJAmAwS.mjs → wal-maintenance-D5xF2jrM.mjs} +0 -0
- package/system/dist/{wal-maintenance-CWlz_qRq.js → wal-maintenance-DHtTtKh4.js} +0 -0
- package/system/package.json +4 -1
- package/system/dist/builtins/camera-grid/grid-row-normalization.d.ts +0 -10
- package/system/dist/builtins/loki-logging/retire-enabled-flag.d.ts +0 -33
|
@@ -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-CJoLQeEj.js");
|
|
7
7
|
const require_log_read_filter = require("../../log-read-filter-Bi066jwU.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
//#region src/builtins/loki-logging/loki-payload.ts
|
|
@@ -906,6 +906,39 @@ async function confirmRecordHoldsLegacy(ports, stored) {
|
|
|
906
906
|
if (legacyPassword && !record.hasPassword) return refuse("the record holds no password");
|
|
907
907
|
}
|
|
908
908
|
//#endregion
|
|
909
|
+
//#region src/builtins/loki-logging/migrations/retired-enabled-flag.ts
|
|
910
|
+
/**
|
|
911
|
+
* Loki's private `enabled` setting is gone (D777, D986, D987).
|
|
912
|
+
*
|
|
913
|
+
* The per-destination toggle is the only enable, and the legacy flag has not gated shipping since
|
|
914
|
+
* D777. A stored `enabled: false` therefore describes NOTHING in effect: carrying it over would
|
|
915
|
+
* switch off a destination that has been shipping for months, so this migration disables nothing.
|
|
916
|
+
* It deletes the dead key, and the marker the earlier boot-time carry-over left beside it, in ONE
|
|
917
|
+
* plan the engine applies under a precondition. Absence of the keys is the marker; a rerun finds
|
|
918
|
+
* nothing and writes nothing. A read that fails throws and nothing is written.
|
|
919
|
+
*/
|
|
920
|
+
/** The retired settings key. */
|
|
921
|
+
var RETIRED_ENABLED_KEY = "enabled";
|
|
922
|
+
var RETIRED_KEYS = [RETIRED_ENABLED_KEY, "migratedEnabled"];
|
|
923
|
+
async function planDropRetiredEnabledFlag(ports) {
|
|
924
|
+
const stored = await ports.readRawStored();
|
|
925
|
+
const present = RETIRED_KEYS.filter((key) => key in stored);
|
|
926
|
+
if (present.length === 0) return { edits: [] };
|
|
927
|
+
const flag = stored[RETIRED_ENABLED_KEY];
|
|
928
|
+
if (typeof flag === "boolean") ports.info(`Loki logging: the retired \`enabled: ${String(flag)}\` setting was removed; it has not gated shipping since D777, so nothing was switched. The per-destination toggle is the only enable.`);
|
|
929
|
+
const rowId = (key) => `${LOKI_ADDON_ID}.${key}`;
|
|
930
|
+
return { edits: [{
|
|
931
|
+
op: "deleteKeys",
|
|
932
|
+
scope: ADDON_SETTINGS_TABLE,
|
|
933
|
+
keys: present.map(rowId),
|
|
934
|
+
precondition: require_dist.preconditionOf(Object.fromEntries(present.map((key) => [rowId(key), {
|
|
935
|
+
addonId: LOKI_ADDON_ID,
|
|
936
|
+
key,
|
|
937
|
+
value: stored[key]
|
|
938
|
+
}])))
|
|
939
|
+
}] };
|
|
940
|
+
}
|
|
941
|
+
//#endregion
|
|
909
942
|
//#region src/builtins/loki-logging/migrations/registry-toggle-to-record.ts
|
|
910
943
|
async function moveRegistryToggleToRecord(ports) {
|
|
911
944
|
const state = await ports.readRegistryState();
|
|
@@ -982,6 +1015,22 @@ var ADDON_MIGRATIONS = [
|
|
|
982
1015
|
fixtureMark: "a destinations record field the migration does not know (the job)"
|
|
983
1016
|
},
|
|
984
1017
|
procedure: moveRegistryToggleToRecord
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
meta: {
|
|
1021
|
+
id: "loki-logging/2026-11-07-drop-retired-enabled-flag",
|
|
1022
|
+
owner: "loki-logging",
|
|
1023
|
+
level: "addon-state",
|
|
1024
|
+
seq: 4,
|
|
1025
|
+
dependsOn: [],
|
|
1026
|
+
store: "settings",
|
|
1027
|
+
scope: "cluster",
|
|
1028
|
+
onFailure: "tolerate",
|
|
1029
|
+
bodyKind: "plan",
|
|
1030
|
+
description: "Delete the retired `enabled` setting (it gates nothing any more) and the marker its boot-time carry-over left",
|
|
1031
|
+
fixtureMark: "a setting key the migration does not know"
|
|
1032
|
+
},
|
|
1033
|
+
plan: planDropRetiredEnabledFlag
|
|
985
1034
|
}
|
|
986
1035
|
];
|
|
987
1036
|
/**
|
|
@@ -992,46 +1041,7 @@ var ADDON_MIGRATIONS = [
|
|
|
992
1041
|
*/
|
|
993
1042
|
var INITIALIZE_MIGRATIONS = ADDON_MIGRATIONS.filter((m) => m.meta.id !== REGISTRY_TOGGLE_TO_RECORD_ID);
|
|
994
1043
|
//#endregion
|
|
995
|
-
//#region src/builtins/loki-logging/retire-enabled-flag.ts
|
|
996
|
-
/** The retired settings key. */
|
|
997
|
-
var RETIRED_ENABLED_KEY = "enabled";
|
|
998
|
-
/** Store key marking the retirement as done. Not a schema field. Pre-D777 name kept. */
|
|
999
|
-
var RETIREMENT_MARKER_KEY = "migratedEnabled";
|
|
1000
|
-
function deferred(reason) {
|
|
1001
|
-
return {
|
|
1002
|
-
kind: "deferred",
|
|
1003
|
-
reason
|
|
1004
|
-
};
|
|
1005
|
-
}
|
|
1006
|
-
function isMarked(read) {
|
|
1007
|
-
return read.kind === "present" && read.value === true;
|
|
1008
|
-
}
|
|
1009
|
-
async function retireEnabledFlag(deps) {
|
|
1010
|
-
const marker = await deps.readStoredKey(RETIREMENT_MARKER_KEY);
|
|
1011
|
-
if (marker.kind === "unreadable") return deferred("settings store unreadable (marker)");
|
|
1012
|
-
if (isMarked(marker)) return { kind: "already-retired" };
|
|
1013
|
-
const flag = await deps.readStoredKey(RETIRED_ENABLED_KEY);
|
|
1014
|
-
if (flag.kind === "unreadable") return deferred("settings store unreadable (enabled)");
|
|
1015
|
-
const strippedValue = flag.kind === "present" && typeof flag.value === "boolean" ? flag.value : null;
|
|
1016
|
-
await deps.commit();
|
|
1017
|
-
if (!isMarked(await deps.readStoredKey("migratedEnabled"))) return deferred("retirement write did not land");
|
|
1018
|
-
return {
|
|
1019
|
-
kind: "retired",
|
|
1020
|
-
strippedValue
|
|
1021
|
-
};
|
|
1022
|
-
}
|
|
1023
|
-
//#endregion
|
|
1024
1044
|
//#region src/builtins/loki-logging/loki-logging.addon.ts
|
|
1025
|
-
/** Backoff between retirement attempts — the first ones are refused until the
|
|
1026
|
-
* provider registration reaches the hub. After the last, the next boot retries. */
|
|
1027
|
-
var RETIREMENT_RETRY_DELAYS_MS = [
|
|
1028
|
-
1e3,
|
|
1029
|
-
2e3,
|
|
1030
|
-
5e3,
|
|
1031
|
-
1e4,
|
|
1032
|
-
3e4,
|
|
1033
|
-
6e4
|
|
1034
|
-
];
|
|
1035
1045
|
/** An agent re-reads the record on this period; the hub applies a change at once (`onChanged`). */
|
|
1036
1046
|
var AGENT_REFRESH_MS = 3e4;
|
|
1037
1047
|
/** The headers the destination itself sends: tenant and basic auth. */
|
|
@@ -1056,7 +1066,6 @@ var LokiLoggingAddon = class extends require_dist.BaseAddon {
|
|
|
1056
1066
|
destination = null;
|
|
1057
1067
|
instances = null;
|
|
1058
1068
|
refreshTimer = null;
|
|
1059
|
-
retirementTimer = null;
|
|
1060
1069
|
shuttingDown = false;
|
|
1061
1070
|
declared = false;
|
|
1062
1071
|
/** Instances whose keychain lock was already warned about — once per lock, per instance. */
|
|
@@ -1112,7 +1121,6 @@ var LokiLoggingAddon = class extends require_dist.BaseAddon {
|
|
|
1112
1121
|
await this.destination.initialize();
|
|
1113
1122
|
const urls = this.destination.getStatuses().filter((status) => status.configured).map((status) => status.instanceId);
|
|
1114
1123
|
this.ctx.logger.info(urls.length > 0 ? `Loki logging initialized with ${String(urls.length)} destination(s): ${urls.join(", ")}` : "Loki logging registered but inactive (no destination configured)");
|
|
1115
|
-
this.attemptEnabledFlagRetirement(0);
|
|
1116
1124
|
return registrations;
|
|
1117
1125
|
}
|
|
1118
1126
|
async ensureDeclared() {
|
|
@@ -1188,6 +1196,9 @@ var LokiLoggingAddon = class extends require_dist.BaseAddon {
|
|
|
1188
1196
|
return stored;
|
|
1189
1197
|
},
|
|
1190
1198
|
readRawStored: async () => this.resolveGlobalStore(),
|
|
1199
|
+
info: (message) => {
|
|
1200
|
+
this.ctx.logger.info(message);
|
|
1201
|
+
},
|
|
1191
1202
|
warn: (message) => {
|
|
1192
1203
|
this.ctx.logger.warn(message);
|
|
1193
1204
|
},
|
|
@@ -1294,45 +1305,6 @@ var LokiLoggingAddon = class extends require_dist.BaseAddon {
|
|
|
1294
1305
|
};
|
|
1295
1306
|
}
|
|
1296
1307
|
}
|
|
1297
|
-
/** One attempt of the D777 carry-over; reschedules itself while deferred. */
|
|
1298
|
-
async attemptEnabledFlagRetirement(attempt) {
|
|
1299
|
-
if (this.shuttingDown) return;
|
|
1300
|
-
let outcome;
|
|
1301
|
-
try {
|
|
1302
|
-
outcome = await retireEnabledFlag({
|
|
1303
|
-
readStoredKey: (key) => this.readStoredGlobalKey(key),
|
|
1304
|
-
commit: async () => {
|
|
1305
|
-
const patch = {
|
|
1306
|
-
[RETIRED_ENABLED_KEY]: void 0,
|
|
1307
|
-
[RETIREMENT_MARKER_KEY]: true
|
|
1308
|
-
};
|
|
1309
|
-
await this.updateGlobalSettings(patch);
|
|
1310
|
-
}
|
|
1311
|
-
});
|
|
1312
|
-
} catch (err) {
|
|
1313
|
-
outcome = {
|
|
1314
|
-
kind: "deferred",
|
|
1315
|
-
reason: err instanceof Error ? err.message : String(err)
|
|
1316
|
-
};
|
|
1317
|
-
}
|
|
1318
|
-
if (outcome.kind === "retired" && outcome.strippedValue !== null) this.ctx.logger.info(`Loki logging: the retired \`enabled: ${String(outcome.strippedValue)}\` setting was removed; it has not gated shipping since D777, so nothing was switched. The per-destination toggle is the only enable.`);
|
|
1319
|
-
if (outcome.kind !== "deferred") return;
|
|
1320
|
-
const delay = RETIREMENT_RETRY_DELAYS_MS[attempt];
|
|
1321
|
-
if (delay === void 0) {
|
|
1322
|
-
this.ctx.logger.warn("Loki logging: enablement carry-over deferred to next boot", { meta: { reason: outcome.reason } });
|
|
1323
|
-
return;
|
|
1324
|
-
}
|
|
1325
|
-
this.ctx.logger.debug("Loki logging: enablement carry-over deferred", { meta: {
|
|
1326
|
-
reason: outcome.reason,
|
|
1327
|
-
attempt,
|
|
1328
|
-
retryInMs: delay
|
|
1329
|
-
} });
|
|
1330
|
-
this.retirementTimer = setTimeout(() => {
|
|
1331
|
-
this.retirementTimer = null;
|
|
1332
|
-
this.attemptEnabledFlagRetirement(attempt + 1);
|
|
1333
|
-
}, delay);
|
|
1334
|
-
this.retirementTimer.unref?.();
|
|
1335
|
-
}
|
|
1336
1308
|
/**
|
|
1337
1309
|
* Registration is done: the hub calls this after the providers are registered, so
|
|
1338
1310
|
* `listCapabilityProviders` now sees Loki. The registry-toggle migration cannot decide before
|
|
@@ -1357,8 +1329,6 @@ var LokiLoggingAddon = class extends require_dist.BaseAddon {
|
|
|
1357
1329
|
}
|
|
1358
1330
|
async onShutdown() {
|
|
1359
1331
|
this.shuttingDown = true;
|
|
1360
|
-
if (this.retirementTimer !== null) clearTimeout(this.retirementTimer);
|
|
1361
|
-
this.retirementTimer = null;
|
|
1362
1332
|
if (this.refreshTimer !== null) clearInterval(this.refreshTimer);
|
|
1363
1333
|
this.refreshTimer = null;
|
|
1364
1334
|
await this.destination?.shutdown();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $s as isSecretMarker, Bo as BaseAddon, Fs as defineEntryKind, Js as isInstanceEnabled, Ns as defineAddonMigrations, Qs as isSecretFieldView, Tn as bareAddonId, Vr as integrationInstancesCapability, ei as isSameAddonId, ls as RecordIntegrationInstances, ms as RevConflictError, pi as logDestinationCapability, qi as preconditionOf } from "../../dist-
|
|
1
|
+
import { $s as isSecretMarker, Bo as BaseAddon, Fs as defineEntryKind, Js as isInstanceEnabled, Ns as defineAddonMigrations, Qs as isSecretFieldView, Tn as bareAddonId, Vr as integrationInstancesCapability, ei as isSameAddonId, ls as RecordIntegrationInstances, ms as RevConflictError, pi as logDestinationCapability, qi as preconditionOf } from "../../dist-Dgkqkron.mjs";
|
|
2
2
|
import { n as compileLogFilter, o as lineMatches } from "../../log-read-filter-D7Ev3zm-.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/builtins/loki-logging/loki-payload.ts
|
|
@@ -899,6 +899,39 @@ async function confirmRecordHoldsLegacy(ports, stored) {
|
|
|
899
899
|
if (legacyPassword && !record.hasPassword) return refuse("the record holds no password");
|
|
900
900
|
}
|
|
901
901
|
//#endregion
|
|
902
|
+
//#region src/builtins/loki-logging/migrations/retired-enabled-flag.ts
|
|
903
|
+
/**
|
|
904
|
+
* Loki's private `enabled` setting is gone (D777, D986, D987).
|
|
905
|
+
*
|
|
906
|
+
* The per-destination toggle is the only enable, and the legacy flag has not gated shipping since
|
|
907
|
+
* D777. A stored `enabled: false` therefore describes NOTHING in effect: carrying it over would
|
|
908
|
+
* switch off a destination that has been shipping for months, so this migration disables nothing.
|
|
909
|
+
* It deletes the dead key, and the marker the earlier boot-time carry-over left beside it, in ONE
|
|
910
|
+
* plan the engine applies under a precondition. Absence of the keys is the marker; a rerun finds
|
|
911
|
+
* nothing and writes nothing. A read that fails throws and nothing is written.
|
|
912
|
+
*/
|
|
913
|
+
/** The retired settings key. */
|
|
914
|
+
var RETIRED_ENABLED_KEY = "enabled";
|
|
915
|
+
var RETIRED_KEYS = [RETIRED_ENABLED_KEY, "migratedEnabled"];
|
|
916
|
+
async function planDropRetiredEnabledFlag(ports) {
|
|
917
|
+
const stored = await ports.readRawStored();
|
|
918
|
+
const present = RETIRED_KEYS.filter((key) => key in stored);
|
|
919
|
+
if (present.length === 0) return { edits: [] };
|
|
920
|
+
const flag = stored[RETIRED_ENABLED_KEY];
|
|
921
|
+
if (typeof flag === "boolean") ports.info(`Loki logging: the retired \`enabled: ${String(flag)}\` setting was removed; it has not gated shipping since D777, so nothing was switched. The per-destination toggle is the only enable.`);
|
|
922
|
+
const rowId = (key) => `${LOKI_ADDON_ID}.${key}`;
|
|
923
|
+
return { edits: [{
|
|
924
|
+
op: "deleteKeys",
|
|
925
|
+
scope: ADDON_SETTINGS_TABLE,
|
|
926
|
+
keys: present.map(rowId),
|
|
927
|
+
precondition: preconditionOf(Object.fromEntries(present.map((key) => [rowId(key), {
|
|
928
|
+
addonId: LOKI_ADDON_ID,
|
|
929
|
+
key,
|
|
930
|
+
value: stored[key]
|
|
931
|
+
}])))
|
|
932
|
+
}] };
|
|
933
|
+
}
|
|
934
|
+
//#endregion
|
|
902
935
|
//#region src/builtins/loki-logging/migrations/registry-toggle-to-record.ts
|
|
903
936
|
async function moveRegistryToggleToRecord(ports) {
|
|
904
937
|
const state = await ports.readRegistryState();
|
|
@@ -975,6 +1008,22 @@ var ADDON_MIGRATIONS = [
|
|
|
975
1008
|
fixtureMark: "a destinations record field the migration does not know (the job)"
|
|
976
1009
|
},
|
|
977
1010
|
procedure: moveRegistryToggleToRecord
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
meta: {
|
|
1014
|
+
id: "loki-logging/2026-11-07-drop-retired-enabled-flag",
|
|
1015
|
+
owner: "loki-logging",
|
|
1016
|
+
level: "addon-state",
|
|
1017
|
+
seq: 4,
|
|
1018
|
+
dependsOn: [],
|
|
1019
|
+
store: "settings",
|
|
1020
|
+
scope: "cluster",
|
|
1021
|
+
onFailure: "tolerate",
|
|
1022
|
+
bodyKind: "plan",
|
|
1023
|
+
description: "Delete the retired `enabled` setting (it gates nothing any more) and the marker its boot-time carry-over left",
|
|
1024
|
+
fixtureMark: "a setting key the migration does not know"
|
|
1025
|
+
},
|
|
1026
|
+
plan: planDropRetiredEnabledFlag
|
|
978
1027
|
}
|
|
979
1028
|
];
|
|
980
1029
|
/**
|
|
@@ -985,46 +1034,7 @@ var ADDON_MIGRATIONS = [
|
|
|
985
1034
|
*/
|
|
986
1035
|
var INITIALIZE_MIGRATIONS = ADDON_MIGRATIONS.filter((m) => m.meta.id !== REGISTRY_TOGGLE_TO_RECORD_ID);
|
|
987
1036
|
//#endregion
|
|
988
|
-
//#region src/builtins/loki-logging/retire-enabled-flag.ts
|
|
989
|
-
/** The retired settings key. */
|
|
990
|
-
var RETIRED_ENABLED_KEY = "enabled";
|
|
991
|
-
/** Store key marking the retirement as done. Not a schema field. Pre-D777 name kept. */
|
|
992
|
-
var RETIREMENT_MARKER_KEY = "migratedEnabled";
|
|
993
|
-
function deferred(reason) {
|
|
994
|
-
return {
|
|
995
|
-
kind: "deferred",
|
|
996
|
-
reason
|
|
997
|
-
};
|
|
998
|
-
}
|
|
999
|
-
function isMarked(read) {
|
|
1000
|
-
return read.kind === "present" && read.value === true;
|
|
1001
|
-
}
|
|
1002
|
-
async function retireEnabledFlag(deps) {
|
|
1003
|
-
const marker = await deps.readStoredKey(RETIREMENT_MARKER_KEY);
|
|
1004
|
-
if (marker.kind === "unreadable") return deferred("settings store unreadable (marker)");
|
|
1005
|
-
if (isMarked(marker)) return { kind: "already-retired" };
|
|
1006
|
-
const flag = await deps.readStoredKey(RETIRED_ENABLED_KEY);
|
|
1007
|
-
if (flag.kind === "unreadable") return deferred("settings store unreadable (enabled)");
|
|
1008
|
-
const strippedValue = flag.kind === "present" && typeof flag.value === "boolean" ? flag.value : null;
|
|
1009
|
-
await deps.commit();
|
|
1010
|
-
if (!isMarked(await deps.readStoredKey("migratedEnabled"))) return deferred("retirement write did not land");
|
|
1011
|
-
return {
|
|
1012
|
-
kind: "retired",
|
|
1013
|
-
strippedValue
|
|
1014
|
-
};
|
|
1015
|
-
}
|
|
1016
|
-
//#endregion
|
|
1017
1037
|
//#region src/builtins/loki-logging/loki-logging.addon.ts
|
|
1018
|
-
/** Backoff between retirement attempts — the first ones are refused until the
|
|
1019
|
-
* provider registration reaches the hub. After the last, the next boot retries. */
|
|
1020
|
-
var RETIREMENT_RETRY_DELAYS_MS = [
|
|
1021
|
-
1e3,
|
|
1022
|
-
2e3,
|
|
1023
|
-
5e3,
|
|
1024
|
-
1e4,
|
|
1025
|
-
3e4,
|
|
1026
|
-
6e4
|
|
1027
|
-
];
|
|
1028
1038
|
/** An agent re-reads the record on this period; the hub applies a change at once (`onChanged`). */
|
|
1029
1039
|
var AGENT_REFRESH_MS = 3e4;
|
|
1030
1040
|
/** The headers the destination itself sends: tenant and basic auth. */
|
|
@@ -1049,7 +1059,6 @@ var LokiLoggingAddon = class extends BaseAddon {
|
|
|
1049
1059
|
destination = null;
|
|
1050
1060
|
instances = null;
|
|
1051
1061
|
refreshTimer = null;
|
|
1052
|
-
retirementTimer = null;
|
|
1053
1062
|
shuttingDown = false;
|
|
1054
1063
|
declared = false;
|
|
1055
1064
|
/** Instances whose keychain lock was already warned about — once per lock, per instance. */
|
|
@@ -1105,7 +1114,6 @@ var LokiLoggingAddon = class extends BaseAddon {
|
|
|
1105
1114
|
await this.destination.initialize();
|
|
1106
1115
|
const urls = this.destination.getStatuses().filter((status) => status.configured).map((status) => status.instanceId);
|
|
1107
1116
|
this.ctx.logger.info(urls.length > 0 ? `Loki logging initialized with ${String(urls.length)} destination(s): ${urls.join(", ")}` : "Loki logging registered but inactive (no destination configured)");
|
|
1108
|
-
this.attemptEnabledFlagRetirement(0);
|
|
1109
1117
|
return registrations;
|
|
1110
1118
|
}
|
|
1111
1119
|
async ensureDeclared() {
|
|
@@ -1181,6 +1189,9 @@ var LokiLoggingAddon = class extends BaseAddon {
|
|
|
1181
1189
|
return stored;
|
|
1182
1190
|
},
|
|
1183
1191
|
readRawStored: async () => this.resolveGlobalStore(),
|
|
1192
|
+
info: (message) => {
|
|
1193
|
+
this.ctx.logger.info(message);
|
|
1194
|
+
},
|
|
1184
1195
|
warn: (message) => {
|
|
1185
1196
|
this.ctx.logger.warn(message);
|
|
1186
1197
|
},
|
|
@@ -1287,45 +1298,6 @@ var LokiLoggingAddon = class extends BaseAddon {
|
|
|
1287
1298
|
};
|
|
1288
1299
|
}
|
|
1289
1300
|
}
|
|
1290
|
-
/** One attempt of the D777 carry-over; reschedules itself while deferred. */
|
|
1291
|
-
async attemptEnabledFlagRetirement(attempt) {
|
|
1292
|
-
if (this.shuttingDown) return;
|
|
1293
|
-
let outcome;
|
|
1294
|
-
try {
|
|
1295
|
-
outcome = await retireEnabledFlag({
|
|
1296
|
-
readStoredKey: (key) => this.readStoredGlobalKey(key),
|
|
1297
|
-
commit: async () => {
|
|
1298
|
-
const patch = {
|
|
1299
|
-
[RETIRED_ENABLED_KEY]: void 0,
|
|
1300
|
-
[RETIREMENT_MARKER_KEY]: true
|
|
1301
|
-
};
|
|
1302
|
-
await this.updateGlobalSettings(patch);
|
|
1303
|
-
}
|
|
1304
|
-
});
|
|
1305
|
-
} catch (err) {
|
|
1306
|
-
outcome = {
|
|
1307
|
-
kind: "deferred",
|
|
1308
|
-
reason: err instanceof Error ? err.message : String(err)
|
|
1309
|
-
};
|
|
1310
|
-
}
|
|
1311
|
-
if (outcome.kind === "retired" && outcome.strippedValue !== null) this.ctx.logger.info(`Loki logging: the retired \`enabled: ${String(outcome.strippedValue)}\` setting was removed; it has not gated shipping since D777, so nothing was switched. The per-destination toggle is the only enable.`);
|
|
1312
|
-
if (outcome.kind !== "deferred") return;
|
|
1313
|
-
const delay = RETIREMENT_RETRY_DELAYS_MS[attempt];
|
|
1314
|
-
if (delay === void 0) {
|
|
1315
|
-
this.ctx.logger.warn("Loki logging: enablement carry-over deferred to next boot", { meta: { reason: outcome.reason } });
|
|
1316
|
-
return;
|
|
1317
|
-
}
|
|
1318
|
-
this.ctx.logger.debug("Loki logging: enablement carry-over deferred", { meta: {
|
|
1319
|
-
reason: outcome.reason,
|
|
1320
|
-
attempt,
|
|
1321
|
-
retryInMs: delay
|
|
1322
|
-
} });
|
|
1323
|
-
this.retirementTimer = setTimeout(() => {
|
|
1324
|
-
this.retirementTimer = null;
|
|
1325
|
-
this.attemptEnabledFlagRetirement(attempt + 1);
|
|
1326
|
-
}, delay);
|
|
1327
|
-
this.retirementTimer.unref?.();
|
|
1328
|
-
}
|
|
1329
1301
|
/**
|
|
1330
1302
|
* Registration is done: the hub calls this after the providers are registered, so
|
|
1331
1303
|
* `listCapabilityProviders` now sees Loki. The registry-toggle migration cannot decide before
|
|
@@ -1350,8 +1322,6 @@ var LokiLoggingAddon = class extends BaseAddon {
|
|
|
1350
1322
|
}
|
|
1351
1323
|
async onShutdown() {
|
|
1352
1324
|
this.shuttingDown = true;
|
|
1353
|
-
if (this.retirementTimer !== null) clearTimeout(this.retirementTimer);
|
|
1354
|
-
this.retirementTimer = null;
|
|
1355
1325
|
if (this.refreshTimer !== null) clearInterval(this.refreshTimer);
|
|
1356
1326
|
this.refreshTimer = null;
|
|
1357
1327
|
await this.destination?.shutdown();
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* operator supplies a URL: `url` defaults to empty and `LokiDestination` treats
|
|
6
6
|
* that as inert. Whether it is used at all is the per-destination
|
|
7
7
|
* `log-destination` capability toggle — the ONE enable (D777); the old private
|
|
8
|
-
* `enabled` setting is retired by `
|
|
8
|
+
* `enabled` setting is retired by a ledger migration (`migrations/retired-enabled-flag.ts`). The provider is
|
|
9
9
|
* registered either way, so the Logging page can show it and the operator can
|
|
10
10
|
* turn it on without a restart of anything else.
|
|
11
11
|
*
|
|
@@ -30,7 +30,6 @@ export declare class LokiLoggingAddon extends BaseAddon<LokiAddonConfig> {
|
|
|
30
30
|
private destination;
|
|
31
31
|
private instances;
|
|
32
32
|
private refreshTimer;
|
|
33
|
-
private retirementTimer;
|
|
34
33
|
private shuttingDown;
|
|
35
34
|
private declared;
|
|
36
35
|
/** Instances whose keychain lock was already warned about — once per lock, per instance. */
|
|
@@ -58,8 +57,6 @@ export declare class LokiLoggingAddon extends BaseAddon<LokiAddonConfig> {
|
|
|
58
57
|
private migrationPorts;
|
|
59
58
|
/** Probe a Loki instance (`/ready`) with the form's values, falling back to the stored ones. */
|
|
60
59
|
private probe;
|
|
61
|
-
/** One attempt of the D777 carry-over; reschedules itself while deferred. */
|
|
62
|
-
private attemptEnabledFlagRetirement;
|
|
63
60
|
/**
|
|
64
61
|
* Registration is done: the hub calls this after the providers are registered, so
|
|
65
62
|
* `listCapabilityProviders` now sees Loki. The registry-toggle migration cannot decide before
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import type { AddonMigration } from "@camstack/types";
|
|
2
2
|
import { type DropMovedSettingsPorts, type LokiMigrationPorts } from "./connection-to-records.js";
|
|
3
|
+
import { type RetiredEnabledFlagPorts } from "./retired-enabled-flag.js";
|
|
3
4
|
import { type RegistryToggleMigrationPorts } from "./registry-toggle-to-record.js";
|
|
5
|
+
export { RETIRED_ENABLED_KEY, RETIREMENT_MARKER_KEY, type RetiredEnabledFlagPorts } from "./retired-enabled-flag.js";
|
|
4
6
|
export type { RegistryState, RegistryToggleMigrationPorts } from "./registry-toggle-to-record.js";
|
|
5
7
|
export type { DropMovedSettingsPorts, LokiMigrationLog, LokiMigrationPorts, LokiRecordState } from "./connection-to-records.js";
|
|
6
8
|
/** Both bodies read through ONE port object, so the addon binds the catalogue once. */
|
|
7
|
-
export type LokiCataloguePorts = LokiMigrationPorts & DropMovedSettingsPorts & RegistryToggleMigrationPorts;
|
|
9
|
+
export type LokiCataloguePorts = LokiMigrationPorts & DropMovedSettingsPorts & RegistryToggleMigrationPorts & RetiredEnabledFlagPorts;
|
|
8
10
|
export declare const CONNECTION_TO_RECORDS_ID = "loki-logging/2026-11-02-connection-to-records";
|
|
9
11
|
export declare const REGISTRY_TOGGLE_TO_RECORD_ID = "loki-logging/2026-11-02-registry-toggle-to-record";
|
|
12
|
+
export declare const DROP_RETIRED_ENABLED_ID = "loki-logging/2026-11-07-drop-retired-enabled-flag";
|
|
10
13
|
/** The `loki-logging` catalogue (D987): offered to the engine when the hub-resident addon initialises. */
|
|
11
14
|
export declare const ADDON_MIGRATIONS: readonly AddonMigration<LokiCataloguePorts>[];
|
|
12
15
|
/**
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Loki's private `enabled` setting is gone (D777, D986, D987).
|
|
3
|
+
*
|
|
4
|
+
* The per-destination toggle is the only enable, and the legacy flag has not gated shipping since
|
|
5
|
+
* D777. A stored `enabled: false` therefore describes NOTHING in effect: carrying it over would
|
|
6
|
+
* switch off a destination that has been shipping for months, so this migration disables nothing.
|
|
7
|
+
* It deletes the dead key, and the marker the earlier boot-time carry-over left beside it, in ONE
|
|
8
|
+
* plan the engine applies under a precondition. Absence of the keys is the marker; a rerun finds
|
|
9
|
+
* nothing and writes nothing. A read that fails throws and nothing is written.
|
|
10
|
+
*/
|
|
11
|
+
import { type MigrationPlan } from "@camstack/types";
|
|
12
|
+
/** The retired settings key. */
|
|
13
|
+
export declare const RETIRED_ENABLED_KEY = "enabled";
|
|
14
|
+
/** The marker the boot-time carry-over set. Not a schema field. Pre-D777 name kept. */
|
|
15
|
+
export declare const RETIREMENT_MARKER_KEY = "migratedEnabled";
|
|
16
|
+
export interface RetiredEnabledFlagPorts {
|
|
17
|
+
/** The addon's stored settings as written (markers unresolved), unparsed. Throws when unreadable. */
|
|
18
|
+
readRawStored(): Promise<Readonly<Record<string, unknown>>>;
|
|
19
|
+
/** Said once, at the moment the key goes: the operator learns nothing was switched. */
|
|
20
|
+
info(message: string): void;
|
|
21
|
+
}
|
|
22
|
+
export declare function planDropRetiredEnabledFlag(ports: RetiredEnabledFlagPorts): Promise<MigrationPlan>;
|
|
@@ -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-CJoLQeEj.js");
|
|
7
7
|
let node_fs = require("node:fs");
|
|
8
8
|
node_fs = require_chunk.__toESM(node_fs);
|
|
9
9
|
let node_fs_promises = require("node:fs/promises");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bo as BaseAddon, Fr as foldSnapshotByFunction, Ht as ROOT_BUCKET_KEY, Oc as errMsg, Si as metricsProviderCapability, cn as UNATTRIBUTED_BUCKET_KEY, js as createEvent, kc as EventCategory, sa as resolveBucketMs, ta as reducePoints } from "../../dist-
|
|
1
|
+
import { Bo as BaseAddon, Fr as foldSnapshotByFunction, Ht as ROOT_BUCKET_KEY, Oc as errMsg, Si as metricsProviderCapability, cn as UNATTRIBUTED_BUCKET_KEY, js as createEvent, kc as EventCategory, sa as resolveBucketMs, ta as reducePoints } from "../../dist-Dgkqkron.mjs";
|
|
2
2
|
import * as fs$1 from "node:fs";
|
|
3
3
|
import { constants, readFileSync } from "node:fs";
|
|
4
4
|
import { access, readFile, readdir } from "node:fs/promises";
|
|
@@ -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-CJoLQeEj.js");
|
|
7
7
|
const require_coral_accelerators = require("../../coral-accelerators-BSVsBVzt.js");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
9
9
|
node_fs = require_chunk.__toESM(node_fs);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as __toESM, r as __exportAll } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { Bo as BaseAddon, Ca as scoreRuntimes, Li as parseAcceleratorFactsJson, Oc as errMsg, Rs as emitReadiness, Wi as platformProbeCapability, kc as EventCategory, xr as enumerateInferenceDevices } from "../../dist-
|
|
2
|
+
import { Bo as BaseAddon, Ca as scoreRuntimes, Li as parseAcceleratorFactsJson, Oc as errMsg, Rs as emitReadiness, Wi as platformProbeCapability, kc as EventCategory, xr as enumerateInferenceDevices } from "../../dist-Dgkqkron.mjs";
|
|
3
3
|
import { n as detectCoralAccelerator, r as nodeCoralFs } from "../../coral-accelerators-DBlgWB8k.mjs";
|
|
4
4
|
import * as fs$1 from "node:fs";
|
|
5
5
|
import * as path$1 from "node:path";
|
|
@@ -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-CJoLQeEj.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
//#region src/builtins/record-entries/entries-service.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $i as recordEntriesCapability, Bo as BaseAddon, Xo as InvalidRecordError, vc as secretViewsOf, ys as UnknownRecordKindError } from "../../dist-
|
|
1
|
+
import { $i as recordEntriesCapability, Bo as BaseAddon, Xo as InvalidRecordError, vc as secretViewsOf, ys as UnknownRecordKindError } from "../../dist-Dgkqkron.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
//#region src/builtins/record-entries/entries-service.ts
|
|
@@ -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-CJoLQeEj.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
9
9
|
/**
|
package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bo as BaseAddon, kc as EventCategory } from "../../dist-
|
|
1
|
+
import { Bo as BaseAddon, kc as EventCategory } from "../../dist-Dgkqkron.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
4
4
|
/**
|
|
@@ -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-CJoLQeEj.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 { Bo as BaseAddon, Dc as DeviceType, En as batteryCapability, Oc as errMsg, Tc as DeviceFeature, Tn as bareAddonId, ac as nodePin, bi as memoizePinnedFfmpeg, g as BatteryStatusSchema, ja as snapshotCapability, kc as EventCategory, ur as deriveBatteryPresence, za as streamQualityLabel } from "../../dist-
|
|
1
|
+
import { Bo as BaseAddon, Dc as DeviceType, En as batteryCapability, Oc as errMsg, Tc as DeviceFeature, Tn as bareAddonId, ac as nodePin, bi as memoizePinnedFfmpeg, g as BatteryStatusSchema, ja as snapshotCapability, kc as EventCategory, ur as deriveBatteryPresence, za as streamQualityLabel } from "../../dist-Dgkqkron.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-CJoLQeEj.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
9
9
|
node_fs = require_chunk.__toESM(node_fs);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bo as BaseAddon, La as storageProviderCapability, Pr as filesystemBrowseCapability } from "../../dist-
|
|
1
|
+
import { Bo as BaseAddon, La as storageProviderCapability, Pr as filesystemBrowseCapability } from "../../dist-Dgkqkron.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import * as fs$1 from "node:fs";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
@@ -4,7 +4,7 @@ Object.defineProperties(exports, {
|
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
6
|
const require_builtins_sqlite_storage_filesystem_storage_addon = require("./filesystem-storage.addon.js");
|
|
7
|
-
const require_wal_maintenance = require("../../wal-maintenance-
|
|
7
|
+
const require_wal_maintenance = require("../../wal-maintenance-DHtTtKh4.js");
|
|
8
8
|
const require_builtins_sqlite_storage_sqlite_settings_addon = require("./sqlite-settings.addon.js");
|
|
9
9
|
//#region src/builtins/sqlite-storage/config-store.ts
|
|
10
10
|
var ConfigStore = class {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./filesystem-storage.addon.mjs";
|
|
2
|
-
import { B as SQLITE_ENGINE_STORM_WALL_SHARE, F as SQLITE_MMAP_FLOOR_BYTES, G as SqliteOpProfiler, H as SQLITE_PROFILE_REPORT_INTERVAL_MS, I as SQLITE_PAGE_CACHE_CEILING_KIB, K as sqliteEngineStorm, L as SQLITE_PAGE_CACHE_FLOOR_KIB, N as SQLITE_JOURNAL_SIZE_LIMIT_BYTES, P as SQLITE_MMAP_CEILING_BYTES, R as sqliteMmapSizeFor, U as SQLITE_PROFILE_TOP_N, V as SQLITE_PROFILE_REPORT_FLOOR_MS, W as SQLITE_SLOW_CALL_MS, a as WalMaintenance, i as WAL_MAINTENANCE_INTERVAL_MS, l as SqliteSettingsBackend, n as WAL_HIGH_WATER_BYTES, r as WAL_IDLE_QUIET_MS, t as WAL_CHECKPOINT_BUSY_TIMEOUT_MS, z as sqlitePageCacheKibFor } from "../../wal-maintenance-
|
|
2
|
+
import { B as SQLITE_ENGINE_STORM_WALL_SHARE, F as SQLITE_MMAP_FLOOR_BYTES, G as SqliteOpProfiler, H as SQLITE_PROFILE_REPORT_INTERVAL_MS, I as SQLITE_PAGE_CACHE_CEILING_KIB, K as sqliteEngineStorm, L as SQLITE_PAGE_CACHE_FLOOR_KIB, N as SQLITE_JOURNAL_SIZE_LIMIT_BYTES, P as SQLITE_MMAP_CEILING_BYTES, R as sqliteMmapSizeFor, U as SQLITE_PROFILE_TOP_N, V as SQLITE_PROFILE_REPORT_FLOOR_MS, W as SQLITE_SLOW_CALL_MS, a as WalMaintenance, i as WAL_MAINTENANCE_INTERVAL_MS, l as SqliteSettingsBackend, n as WAL_HIGH_WATER_BYTES, r as WAL_IDLE_QUIET_MS, t as WAL_CHECKPOINT_BUSY_TIMEOUT_MS, z as sqlitePageCacheKibFor } from "../../wal-maintenance-D5xF2jrM.mjs";
|
|
3
3
|
import { SqliteSettingsAddon } from "./sqlite-settings.addon.mjs";
|
|
4
4
|
//#region src/builtins/sqlite-storage/config-store.ts
|
|
5
5
|
var ConfigStore = class {
|
|
@@ -3,12 +3,12 @@ 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-CJoLQeEj.js");
|
|
7
7
|
const require_retired_settings_keys = require("../../retired-settings-keys-C8nOOr5H.js");
|
|
8
|
-
const require_wal_maintenance = require("../../wal-maintenance-
|
|
8
|
+
const require_wal_maintenance = require("../../wal-maintenance-DHtTtKh4.js");
|
|
9
9
|
const require_sqlite_snapshot_protocol = require("../../sqlite-snapshot-protocol-B9OndqZv.js");
|
|
10
10
|
const require_wal_checkpoint_policy = require("../../wal-checkpoint-policy-d2z2qPqx.js");
|
|
11
|
-
const require_legacy_integration_rows_door = require("../../legacy-integration-rows-door-
|
|
11
|
+
const require_legacy_integration_rows_door = require("../../legacy-integration-rows-door-CfpoIqz-.js");
|
|
12
12
|
let zod = require("zod");
|
|
13
13
|
let node_crypto = require("node:crypto");
|
|
14
14
|
let node_fs = require("node:fs");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Bo as BaseAddon, Ci as migrationsCapability, Ct as MIGRATION_API_V1_METHODS, F as DATABASE_SNAPSHOT_TIMEOUT_MS, I as DATA_STORE_DATABASES, Ii as orderMigrations, Ko as DeclarationRefusedError, Ln as catalogueIssues, Ms as customAction, N as DATABASE_SNAPSHOT_PARTIAL_SUFFIX, Na as storageAdminCapability, Oc as errMsg$1, Ot as MigrationMetaSchema, P as DATABASE_SNAPSHOT_SUFFIX, Ps as defineCustomActions, Tn as bareAddonId, Xo as InvalidRecordError, Zo as NoCallerError, _s as TransactRefusedError, ar as databaseSnapshotCapability, ea as recordsCapability, ha as resolveRunnerId, ir as dataStoreProviderCapability, kc as EventCategory, ks as collectSecretMarkerRefs, os as RUNTIME_DEFAULTS, rs as RECORD_SWEEP_INTERVAL_MS, sc as normalizeSecretOwner, to as vectorStoreCapability, us as RecordKindDeclarationSchema, ys as UnknownRecordKindError } from "../../dist-
|
|
1
|
+
import { Bo as BaseAddon, Ci as migrationsCapability, Ct as MIGRATION_API_V1_METHODS, F as DATABASE_SNAPSHOT_TIMEOUT_MS, I as DATA_STORE_DATABASES, Ii as orderMigrations, Ko as DeclarationRefusedError, Ln as catalogueIssues, Ms as customAction, N as DATABASE_SNAPSHOT_PARTIAL_SUFFIX, Na as storageAdminCapability, Oc as errMsg$1, Ot as MigrationMetaSchema, P as DATABASE_SNAPSHOT_SUFFIX, Ps as defineCustomActions, Tn as bareAddonId, Xo as InvalidRecordError, Zo as NoCallerError, _s as TransactRefusedError, ar as databaseSnapshotCapability, ea as recordsCapability, ha as resolveRunnerId, ir as dataStoreProviderCapability, kc as EventCategory, ks as collectSecretMarkerRefs, os as RUNTIME_DEFAULTS, rs as RECORD_SWEEP_INTERVAL_MS, sc as normalizeSecretOwner, to as vectorStoreCapability, us as RecordKindDeclarationSchema, ys as UnknownRecordKindError } from "../../dist-Dgkqkron.mjs";
|
|
2
2
|
import { r as retiredKeyStoreOf, t as purgeRetiredSettingsKeys } from "../../retired-settings-keys-u6xQA6r7.mjs";
|
|
3
|
-
import { A as callRecords, D as RecordsEngine, E as databaseOfStore, M as controlTargetOf, O as callControl, T as trustResult, _ as rehydrateError, a as WalMaintenance, b as collectTransferables, c as vectorProviderOfOwnedFile, d as callMigrate, f as migrateTargetOf, g as DuplicatePlacementError, h as DatabaseBusyError, j as callVector, k as callData, l as SqliteSettingsBackend, m as CrossDatabaseTransactError, o as createVectorIndex, p as CollectionPlacementError, s as vectorProviderOf, u as HUB_MIGRATIONS, x as isFileHostMessage } from "../../wal-maintenance-
|
|
3
|
+
import { A as callRecords, D as RecordsEngine, E as databaseOfStore, M as controlTargetOf, O as callControl, T as trustResult, _ as rehydrateError, a as WalMaintenance, b as collectTransferables, c as vectorProviderOfOwnedFile, d as callMigrate, f as migrateTargetOf, g as DuplicatePlacementError, h as DatabaseBusyError, j as callVector, k as callData, l as SqliteSettingsBackend, m as CrossDatabaseTransactError, o as createVectorIndex, p as CollectionPlacementError, s as vectorProviderOf, u as HUB_MIGRATIONS, x as isFileHostMessage } from "../../wal-maintenance-D5xF2jrM.mjs";
|
|
4
4
|
import { r as isSnapshotWorkerMessage } from "../../sqlite-snapshot-protocol-2QaTouWV.mjs";
|
|
5
5
|
import { a as isWorkerMessage, t as WAL_CHECKPOINT_LARGE_PASS_FRAMES } from "../../wal-checkpoint-policy-BahrTtyD.mjs";
|
|
6
|
-
import { a as patchLegacyIntegrationRows, i as legacyIntegrationAddonId, n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows, r as deleteLegacyIntegrationRowKeys } from "../../legacy-integration-rows-door-
|
|
6
|
+
import { a as patchLegacyIntegrationRows, i as legacyIntegrationAddonId, n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows, r as deleteLegacyIntegrationRowKeys } from "../../legacy-integration-rows-door-CTCq-5la.mjs";
|
|
7
7
|
import { createRequire } from "node:module";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
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-CJoLQeEj.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $s as isSecretMarker, Bo as BaseAddon, Ds as collectSecretConfigKeys, Er as evictionPolicyOfLocation, Es as buildSecretRef, Fa as storageMigrationCapability, Ha as switchStateOfMode, Is as defineRecordKinds, Jt as STORAGE_LOCATION_MODES, Ms as customAction, Ns as defineAddonMigrations, Pa as storageCapability, Ps as defineCustomActions, Qr as isLocationEnabled, Qs as isSecretFieldView, Rr as gbToBytes, Ti as modeMayWrite, Vr as integrationInstancesCapability, Zs as isSecretClear, _i as mayWriteToLocation, da as resolveLocationMode, fc as recordSecretRef, gi as mayReadLocation, in as StorageMigrationJobSchema, io as withLocationMode, is as REDACTED_SECRET, kc as EventCategory, mc as resolveSecretMarkers, nc as makeSecretMarker, nn as StorageLocationModeSchema, oc as normalizeNodeId, oi as legacyModeOf, rn as StorageLocationTypeSchema, tn as StorageCleanupJobSchema, uc as parseSecretRef, wa as settingsStoreCapability, wi as modeForSwitch, xc as toSecretFieldView, xt as LegacyStorageLocationDefaultSchema } from "../../dist-
|
|
1
|
+
import { $s as isSecretMarker, Bo as BaseAddon, Ds as collectSecretConfigKeys, Er as evictionPolicyOfLocation, Es as buildSecretRef, Fa as storageMigrationCapability, Ha as switchStateOfMode, Is as defineRecordKinds, Jt as STORAGE_LOCATION_MODES, Ms as customAction, Ns as defineAddonMigrations, Pa as storageCapability, Ps as defineCustomActions, Qr as isLocationEnabled, Qs as isSecretFieldView, Rr as gbToBytes, Ti as modeMayWrite, Vr as integrationInstancesCapability, Zs as isSecretClear, _i as mayWriteToLocation, da as resolveLocationMode, fc as recordSecretRef, gi as mayReadLocation, in as StorageMigrationJobSchema, io as withLocationMode, is as REDACTED_SECRET, kc as EventCategory, mc as resolveSecretMarkers, nc as makeSecretMarker, nn as StorageLocationModeSchema, oc as normalizeNodeId, oi as legacyModeOf, rn as StorageLocationTypeSchema, tn as StorageCleanupJobSchema, uc as parseSecretRef, wa as settingsStoreCapability, wi as modeForSwitch, xc as toSecretFieldView, xt as LegacyStorageLocationDefaultSchema } from "../../dist-Dgkqkron.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|