@camstack/system 1.2.457 → 1.2.459
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 +163 -27
- package/dist/addon-runner.mjs +193 -57
- package/dist/{agent-https-CoyOZ3pC.js → agent-https-Dnr_nIVx.js} +3 -723
- package/dist/{agent-https-CK9Z4sSR.mjs → agent-https-Iw3RSQup.mjs} +4 -616
- 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 +5 -7
- package/dist/builtins/alerts/alerts.addon.mjs +5 -7
- package/dist/builtins/alerts/record-kinds.d.ts +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 +242 -4
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +240 -2
- package/dist/builtins/calendars/calendars.addon.js +2 -10
- package/dist/builtins/calendars/calendars.addon.mjs +2 -3
- package/dist/builtins/calendars/record-kinds.d.ts +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 +4 -6
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +4 -6
- package/dist/builtins/device-history/device-history.addon.d.ts +13 -0
- package/dist/builtins/device-history/device-history.addon.js +296 -233
- package/dist/builtins/device-history/device-history.addon.mjs +296 -233
- package/dist/builtins/device-history/ingest/producer-ingest.d.ts +11 -1
- package/dist/builtins/device-manager/device-manager.addon.js +2 -4
- package/dist/builtins/device-manager/device-manager.addon.mjs +2 -4
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/keychain/index.js +41 -43
- package/dist/builtins/keychain/index.mjs +41 -43
- 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 +24 -40
- package/dist/builtins/local-auth/local-auth.addon.mjs +24 -40
- package/dist/builtins/local-network/local-network.addon.js +2 -2
- package/dist/builtins/local-network/local-network.addon.mjs +2 -2
- 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.js +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/dist/builtins/native-metrics/node-metrics-history-recorder.d.ts +1 -2
- package/dist/builtins/platform-probe/coral-accelerators.d.ts +26 -9
- package/dist/builtins/platform-probe/index.js +11 -68
- package/dist/builtins/platform-probe/index.mjs +11 -68
- package/dist/builtins/record-entries/index.js +1 -1
- package/dist/builtins/record-entries/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/file-host-protocol.d.ts +0 -15
- 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/index.js +1 -1
- package/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/owned-sqlite-file.d.ts +0 -44
- package/dist/builtins/sqlite-storage/records/records-catalog.d.ts +0 -2
- package/dist/builtins/sqlite-storage/records/records-engine-types.d.ts +0 -21
- package/dist/builtins/sqlite-storage/records/records-engine.d.ts +3 -20
- package/dist/builtins/sqlite-storage/records/records-provider.d.ts +4 -18
- package/dist/builtins/sqlite-storage/records/records-sql.d.ts +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings-backend.d.ts +0 -17
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +21 -196
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +21 -196
- package/dist/builtins/sqlite-storage/storage-admin-provider.d.ts +6 -14
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.d.ts +2 -2
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +7 -9
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +7 -9
- package/dist/builtins/system-config/system-config.addon.js +667 -40
- package/dist/builtins/system-config/system-config.addon.mjs +625 -15
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{composition-sources-B_jeZDRJ.mjs → composition-sources-DNRZWR1j.mjs} +1 -1
- package/dist/{composition-sources-qKyvMAvc.js → composition-sources-b0e_2I-D.js} +1 -1
- package/dist/{constants-B_X9cWEK.js → constants-6OeJiZgi.js} +1 -1
- package/dist/{constants-cxKcZRMi.mjs → constants-BnkOdj9Q.mjs} +1 -1
- package/dist/coral-accelerators-Bi_c3Rft.js +175 -0
- package/dist/coral-accelerators-DcnZvctM.mjs +162 -0
- package/dist/{device-ca-BB6nHAL5.mjs → device-ca-Bnkw8GyU.mjs} +1 -1
- package/dist/{device-ca-CVK3YcR_.js → device-ca-CPTDs--d.js} +1 -1
- package/dist/{dist-C89nqNnn.js → dist-Bn-RNanh.js} +84 -140
- package/dist/{dist-Dhux90yB.mjs → dist-Wy8cTxg6.mjs} +85 -123
- package/dist/file-host-worker.js +1 -1
- package/dist/file-host-worker.mjs +1 -1
- package/dist/{hub-mdns-ciao-B8olZqqd.mjs → hub-mdns-ciao-CJu0nhla.mjs} +2 -2
- package/dist/{hub-mdns-ciao-DB1Y9agt.js → hub-mdns-ciao-CTBTlia4.js} +2 -2
- package/dist/index.js +32 -58
- package/dist/index.mjs +16 -42
- package/dist/kernel/hwaccel/hwaccel-resolver.d.ts +7 -3
- package/dist/{restore-archive-DyOaPeAr.mjs → restore-archive-CmP-iiG9.mjs} +84 -331
- package/dist/{restore-archive-4DOUR5Gu.js → restore-archive-DM1OBYq4.js} +89 -342
- package/dist/{wal-maintenance-DVN-DiVP.js → wal-maintenance-DUHEp_09.js} +0 -0
- package/dist/{wal-maintenance-BMiX6UIa.mjs → wal-maintenance-NKbwWovZ.mjs} +0 -0
- package/package.json +1 -1
- package/dist/builtins/records/legacy-table-row-count.d.ts +0 -5
- package/dist/builtins/records/phase6-declare-gate.d.ts +0 -28
- package/dist/builtins/sqlite-storage/records/count-settings-array-legacy.d.ts +0 -5
- package/dist/builtins/sqlite-storage/records/count-settings-brokers-legacy.d.ts +0 -6
- package/dist/phase6-declare-gate-BO-_jLh_.js +0 -98
- package/dist/phase6-declare-gate-x9ZCbQJP.mjs +0 -93
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The `storage-admin` provider of the SQLite engine (D870): the operator's
|
|
3
|
-
* maintenance reach into the settings database - list its tables
|
|
4
|
-
*
|
|
3
|
+
* maintenance reach into the settings database - list its tables and record
|
|
4
|
+
* kinds, read a kind for diagnosis, drop a table that nothing owns any more.
|
|
5
|
+
* Every call is logged with its table and counts.
|
|
5
6
|
*
|
|
6
7
|
* `dropCollection` is a one-shot of the D870 migration: remove it, and the
|
|
7
8
|
* capability's method, once the last hub ran `migrate-device-store.ts --drop`.
|
|
@@ -15,22 +16,13 @@ export declare class StorageAdminProvider implements IStorageAdminProvider {
|
|
|
15
16
|
private readonly logger;
|
|
16
17
|
/** The addon ids installed on this hub; a throw means "cannot tell" and refuses the drop. */
|
|
17
18
|
private readonly installedOwners;
|
|
18
|
-
/** The records provider the System -> Data
|
|
19
|
+
/** The records provider the System -> Data methods delegate to (D881). */
|
|
19
20
|
private readonly records;
|
|
20
|
-
/** Non-settings files (`events.db`, `history.db`)
|
|
21
|
+
/** Non-settings files (`events.db`, `history.db`) whose tables `listTables` lists too. */
|
|
21
22
|
private readonly peerFiles;
|
|
22
|
-
constructor(backend: SqliteSettingsBackend, logger: IScopedLogger, installedOwners: () => Promise<ReadonlySet<string>>, records: Pick<RecordsProvider, "listKinds" | "readRecords"
|
|
23
|
+
constructor(backend: SqliteSettingsBackend, logger: IScopedLogger, installedOwners: () => Promise<ReadonlySet<string>>, records: Pick<RecordsProvider, "listKinds" | "readRecords">, peerFiles?: () => Promise<readonly OwnedSqliteFile[]>);
|
|
23
24
|
listKinds(input: Parameters<IStorageAdminProvider["listKinds"]>[0]): ReturnType<IStorageAdminProvider["listKinds"]>;
|
|
24
25
|
readRecords(input: Parameters<IStorageAdminProvider["readRecords"]>[0]): ReturnType<IStorageAdminProvider["readRecords"]>;
|
|
25
|
-
adoptRecords(input: Parameters<IStorageAdminProvider["adoptRecords"]>[0]): ReturnType<IStorageAdminProvider["adoptRecords"]>;
|
|
26
|
-
isAdoptedLegacyTable(input: {
|
|
27
|
-
collection: string;
|
|
28
|
-
}): ReturnType<IStorageAdminProvider["isAdoptedLegacyTable"]>;
|
|
29
|
-
readLegacyCollection(input: {
|
|
30
|
-
collection: string;
|
|
31
|
-
cursor?: string | undefined;
|
|
32
|
-
limit?: number | undefined;
|
|
33
|
-
}): ReturnType<IStorageAdminProvider["readLegacyCollection"]>;
|
|
34
26
|
/** May this table be dropped AT ALL? Throws with the reason when not. */
|
|
35
27
|
private assertDroppable;
|
|
36
28
|
listTables(input: {
|
|
@@ -104,8 +104,8 @@ export declare class StorageOrchestratorAddon extends BaseAddon<StorageOrchestra
|
|
|
104
104
|
* restart — the service never hydrates from / persists to SQLite.
|
|
105
105
|
*/
|
|
106
106
|
private storeWireInFlight;
|
|
107
|
-
/** True while the locations kind
|
|
108
|
-
private
|
|
107
|
+
/** True while the locations kind cannot be declared: its empty answer is not authoritative. */
|
|
108
|
+
private locationsKindNotReady;
|
|
109
109
|
private ensureStoreWired;
|
|
110
110
|
private storageProviders;
|
|
111
111
|
/** Single-flighted pressure sweep — never overlaps a slow eviction round. */
|
|
@@ -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-Bn-RNanh.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");
|
|
@@ -53,8 +53,7 @@ var _storageOrchestratorRecordKinds = require_dist.defineRecordKinds({
|
|
|
53
53
|
name: "type",
|
|
54
54
|
fields: ["type"]
|
|
55
55
|
}],
|
|
56
|
-
retention: { none: "operator delete or declaration prune only" }
|
|
57
|
-
adoptsFrom: STORAGE_LOCATIONS
|
|
56
|
+
retention: { none: "operator delete or declaration prune only" }
|
|
58
57
|
},
|
|
59
58
|
"seed-markers": {
|
|
60
59
|
schema: StorageSeedMarkerBodySchema,
|
|
@@ -74,8 +73,7 @@ var _storageOrchestratorRecordKinds = require_dist.defineRecordKinds({
|
|
|
74
73
|
name: "location_id",
|
|
75
74
|
fields: ["locationId"]
|
|
76
75
|
}],
|
|
77
|
-
retention: { none: "row deleted when location leaves drain" }
|
|
78
|
-
adoptsFrom: STORAGE_DRAIN_STATE_LEGACY
|
|
76
|
+
retention: { none: "row deleted when location leaves drain" }
|
|
79
77
|
}
|
|
80
78
|
});
|
|
81
79
|
var storageOrchestratorRecordKinds = _storageOrchestratorRecordKinds;
|
|
@@ -4653,8 +4651,8 @@ var StorageOrchestratorAddon = class extends require_dist.BaseAddon {
|
|
|
4653
4651
|
* restart — the service never hydrates from / persists to SQLite.
|
|
4654
4652
|
*/
|
|
4655
4653
|
storeWireInFlight = null;
|
|
4656
|
-
/** True while the locations kind
|
|
4657
|
-
async
|
|
4654
|
+
/** True while the locations kind cannot be declared: its empty answer is not authoritative. */
|
|
4655
|
+
async locationsKindNotReady() {
|
|
4658
4656
|
const records = this.ctx.records;
|
|
4659
4657
|
if (records === void 0 || this.locationsKind === null) return false;
|
|
4660
4658
|
try {
|
|
@@ -4662,7 +4660,7 @@ var StorageOrchestratorAddon = class extends require_dist.BaseAddon {
|
|
|
4662
4660
|
return false;
|
|
4663
4661
|
} catch (err) {
|
|
4664
4662
|
const message = err instanceof Error ? err.message : String(err);
|
|
4665
|
-
this.ctx.logger.warn("storage-orchestrator: persistence NOT wired — the storage-locations kind is not authoritative yet (
|
|
4663
|
+
this.ctx.logger.warn("storage-orchestrator: persistence NOT wired — the storage-locations kind is not authoritative yet (its declaration failed); seeding is deferred", { meta: { error: message } });
|
|
4666
4664
|
return true;
|
|
4667
4665
|
}
|
|
4668
4666
|
}
|
|
@@ -4672,7 +4670,7 @@ var StorageOrchestratorAddon = class extends require_dist.BaseAddon {
|
|
|
4672
4670
|
if (this.storeWireInFlight) return this.storeWireInFlight;
|
|
4673
4671
|
const store = this.resolveLocationStore(true);
|
|
4674
4672
|
if (!store) return;
|
|
4675
|
-
if (await this.
|
|
4673
|
+
if (await this.locationsKindNotReady()) return;
|
|
4676
4674
|
this.ctx.logger.info("storage-orchestrator: data-store engine now available — wiring persistence");
|
|
4677
4675
|
this.storeWireInFlight = service.attachStore(store).then(() => this.seedFromDeclarations()).catch((err) => {
|
|
4678
4676
|
this.ctx.logger.error("storage-orchestrator: attachStore failed", { meta: { error: err instanceof Error ? err.message : String(err) } });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dr as storageMigrationCapability, Er as storageCapability, Fn as legacyModeOf,
|
|
1
|
+
import { Dr as storageMigrationCapability, Er as storageCapability, Fn as legacyModeOf, Gi as defineRecordKinds, Hn as mayReadLocation, Kn as modeMayWrite, On as isLocationEnabled, Ri as collectSecretConfigKeys, Sa as transformSecretWrite, Ta as EventCategory, Un as mayWriteToLocation, _a as secretTreeFromPaths, br as settingsStoreCapability, dn as evictionPolicyOfLocation, ft as StorageCleanupJobSchema, ha as resolveSecretMarkers, ht as StorageMigrationJobSchema, la as parseJsonObject, mt as StorageLocationTypeSchema, ni as BaseAddon, pr as resolveLocationMode, pt as StorageLocationModeSchema, q as LegacyStorageLocationDefaultSchema, sa as normalizeNodeId, ta as isSecretMarker, yi as REDACTED_SECRET, yn as gbToBytes, zr as withLocationMode } from "../../dist-Wy8cTxg6.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";
|
|
@@ -48,8 +48,7 @@ var _storageOrchestratorRecordKinds = defineRecordKinds({
|
|
|
48
48
|
name: "type",
|
|
49
49
|
fields: ["type"]
|
|
50
50
|
}],
|
|
51
|
-
retention: { none: "operator delete or declaration prune only" }
|
|
52
|
-
adoptsFrom: STORAGE_LOCATIONS
|
|
51
|
+
retention: { none: "operator delete or declaration prune only" }
|
|
53
52
|
},
|
|
54
53
|
"seed-markers": {
|
|
55
54
|
schema: StorageSeedMarkerBodySchema,
|
|
@@ -69,8 +68,7 @@ var _storageOrchestratorRecordKinds = defineRecordKinds({
|
|
|
69
68
|
name: "location_id",
|
|
70
69
|
fields: ["locationId"]
|
|
71
70
|
}],
|
|
72
|
-
retention: { none: "row deleted when location leaves drain" }
|
|
73
|
-
adoptsFrom: STORAGE_DRAIN_STATE_LEGACY
|
|
71
|
+
retention: { none: "row deleted when location leaves drain" }
|
|
74
72
|
}
|
|
75
73
|
});
|
|
76
74
|
var storageOrchestratorRecordKinds = _storageOrchestratorRecordKinds;
|
|
@@ -4648,8 +4646,8 @@ var StorageOrchestratorAddon = class extends BaseAddon {
|
|
|
4648
4646
|
* restart — the service never hydrates from / persists to SQLite.
|
|
4649
4647
|
*/
|
|
4650
4648
|
storeWireInFlight = null;
|
|
4651
|
-
/** True while the locations kind
|
|
4652
|
-
async
|
|
4649
|
+
/** True while the locations kind cannot be declared: its empty answer is not authoritative. */
|
|
4650
|
+
async locationsKindNotReady() {
|
|
4653
4651
|
const records = this.ctx.records;
|
|
4654
4652
|
if (records === void 0 || this.locationsKind === null) return false;
|
|
4655
4653
|
try {
|
|
@@ -4657,7 +4655,7 @@ var StorageOrchestratorAddon = class extends BaseAddon {
|
|
|
4657
4655
|
return false;
|
|
4658
4656
|
} catch (err) {
|
|
4659
4657
|
const message = err instanceof Error ? err.message : String(err);
|
|
4660
|
-
this.ctx.logger.warn("storage-orchestrator: persistence NOT wired — the storage-locations kind is not authoritative yet (
|
|
4658
|
+
this.ctx.logger.warn("storage-orchestrator: persistence NOT wired — the storage-locations kind is not authoritative yet (its declaration failed); seeding is deferred", { meta: { error: message } });
|
|
4661
4659
|
return true;
|
|
4662
4660
|
}
|
|
4663
4661
|
}
|
|
@@ -4667,7 +4665,7 @@ var StorageOrchestratorAddon = class extends BaseAddon {
|
|
|
4667
4665
|
if (this.storeWireInFlight) return this.storeWireInFlight;
|
|
4668
4666
|
const store = this.resolveLocationStore(true);
|
|
4669
4667
|
if (!store) return;
|
|
4670
|
-
if (await this.
|
|
4668
|
+
if (await this.locationsKindNotReady()) return;
|
|
4671
4669
|
this.ctx.logger.info("storage-orchestrator: data-store engine now available — wiring persistence");
|
|
4672
4670
|
this.storeWireInFlight = service.attachStore(store).then(() => this.seedFromDeclarations()).catch((err) => {
|
|
4673
4671
|
this.ctx.logger.error("storage-orchestrator: attachStore failed", { meta: { error: err instanceof Error ? err.message : String(err) } });
|