@camstack/system 1.2.453 → 1.2.454

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.
Files changed (95) hide show
  1. package/dist/{agent-https-DL2cFOQv.js → agent-https-B7IjRRzT.js} +2 -2
  2. package/dist/{agent-https-XAZFJjOS.mjs → agent-https-oXsR24R2.mjs} +2 -2
  3. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  4. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  5. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  6. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  7. package/dist/builtins/alerts/alert-episode-policy.d.ts +39 -0
  8. package/dist/builtins/alerts/alerts.addon.d.ts +25 -38
  9. package/dist/builtins/alerts/alerts.addon.js +178 -423
  10. package/dist/builtins/alerts/alerts.addon.mjs +178 -423
  11. package/dist/builtins/alerts/emit-alert-policy.d.ts +3 -16
  12. package/dist/builtins/alerts/runner-alert.d.ts +0 -13
  13. package/dist/builtins/autotrack/index.js +1 -1
  14. package/dist/builtins/autotrack/index.mjs +1 -1
  15. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  16. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
  17. package/dist/builtins/calendars/calendars.addon.js +1 -1
  18. package/dist/builtins/calendars/calendars.addon.mjs +1 -1
  19. package/dist/builtins/camera-grid/index.js +1 -1
  20. package/dist/builtins/camera-grid/index.mjs +1 -1
  21. package/dist/builtins/composer/composer.addon.js +2 -2
  22. package/dist/builtins/composer/composer.addon.mjs +2 -2
  23. package/dist/builtins/console-logging/index.js +1 -1
  24. package/dist/builtins/console-logging/index.mjs +1 -1
  25. package/dist/builtins/core-blocks/core-blocks.addon.js +2 -2
  26. package/dist/builtins/core-blocks/core-blocks.addon.mjs +2 -2
  27. package/dist/builtins/device-history/device-history.addon.js +1 -1
  28. package/dist/builtins/device-history/device-history.addon.mjs +1 -1
  29. package/dist/builtins/device-manager/device-manager.addon.js +1 -1
  30. package/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
  31. package/dist/builtins/hub-forwarder/index.js +1 -1
  32. package/dist/builtins/hub-forwarder/index.mjs +1 -1
  33. package/dist/builtins/keychain/index.js +4 -4
  34. package/dist/builtins/keychain/index.mjs +4 -4
  35. package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  36. package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  37. package/dist/builtins/local-auth/local-auth.addon.js +3 -3
  38. package/dist/builtins/local-auth/local-auth.addon.mjs +3 -3
  39. package/dist/builtins/local-network/local-network.addon.js +2 -2
  40. package/dist/builtins/local-network/local-network.addon.mjs +2 -2
  41. package/dist/builtins/loki-logging/index.js +1 -1
  42. package/dist/builtins/loki-logging/index.mjs +1 -1
  43. package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  44. package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  45. package/dist/builtins/platform-probe/index.js +1 -1
  46. package/dist/builtins/platform-probe/index.mjs +1 -1
  47. package/dist/builtins/record-entries/index.js +22 -2
  48. package/dist/builtins/record-entries/index.mjs +22 -2
  49. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  50. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  51. package/dist/builtins/snapshot/index.js +1 -1
  52. package/dist/builtins/snapshot/index.mjs +1 -1
  53. package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  54. package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  55. package/dist/builtins/sqlite-storage/index.js +1 -1
  56. package/dist/builtins/sqlite-storage/index.mjs +1 -1
  57. package/dist/builtins/sqlite-storage/records/records-engine.d.ts +13 -0
  58. package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +2 -2
  59. package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +2 -2
  60. package/dist/builtins/storage-orchestrator/location-class-paths.d.ts +13 -0
  61. package/dist/builtins/storage-orchestrator/location-repoint-move.d.ts +6 -1
  62. package/dist/builtins/storage-orchestrator/location-repointer.d.ts +97 -0
  63. package/dist/builtins/storage-orchestrator/location-store.d.ts +13 -2
  64. package/dist/builtins/storage-orchestrator/record-kinds.d.ts +5 -0
  65. package/dist/builtins/storage-orchestrator/storage-location-band-monitor.d.ts +38 -4
  66. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.d.ts +8 -2
  67. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +486 -143
  68. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +486 -143
  69. package/dist/builtins/storage-orchestrator/storage-orchestrator.service.d.ts +26 -1
  70. package/dist/builtins/system-config/system-config.addon.js +3 -3
  71. package/dist/builtins/system-config/system-config.addon.mjs +3 -3
  72. package/dist/builtins/winston-logging/index.js +1 -1
  73. package/dist/builtins/winston-logging/index.mjs +1 -1
  74. package/dist/{composition-sources-DwEvAg5Z.js → composition-sources-Cukc78eu.js} +1 -1
  75. package/dist/{composition-sources-jYNpYEhS.mjs → composition-sources-bt6IQDLu.mjs} +1 -1
  76. package/dist/{constants-B3fDUnJt.js → constants-DBGG6Zu5.js} +1 -1
  77. package/dist/{constants-DGBB3tNi.mjs → constants-DQcVrhVI.mjs} +1 -1
  78. package/dist/{device-ca-njpTMpJC.js → device-ca-B3hUVfYk.js} +1 -1
  79. package/dist/{device-ca-Dpkxg7px.mjs → device-ca-Utfvsx5x.mjs} +1 -1
  80. package/dist/{dist-B9C2v4SG.mjs → dist-7ZciHCIp.mjs} +315 -44
  81. package/dist/{dist-DyjNaeIj.js → dist-Bi4Ioxop.js} +338 -43
  82. package/dist/file-host-worker.js +1 -1
  83. package/dist/file-host-worker.mjs +1 -1
  84. package/dist/{hub-mdns-ciao-DpdFaLz-.js → hub-mdns-ciao-2FzLWfbD.js} +2 -2
  85. package/dist/{hub-mdns-ciao-B4wHDMvk.mjs → hub-mdns-ciao-BRs3DUT-.mjs} +2 -2
  86. package/dist/index.js +7 -7
  87. package/dist/index.mjs +7 -7
  88. package/dist/{phase6-declare-gate-CNxKbsvm.mjs → phase6-declare-gate-D-2LMw9o.mjs} +1 -1
  89. package/dist/{phase6-declare-gate-BlTDMI3t.js → phase6-declare-gate-DwYAep7y.js} +1 -1
  90. package/dist/{restore-archive-BeGP9IYs.js → restore-archive-C0ymYQk7.js} +1 -1
  91. package/dist/{restore-archive-D7HwsszI.mjs → restore-archive-UVZv_hmr.mjs} +1 -1
  92. package/dist/{wal-maintenance-i3GRvmQW.js → wal-maintenance-Bo_lo3Dh.js} +0 -0
  93. package/dist/{wal-maintenance-HEmw2Fik.mjs → wal-maintenance-Df89xxrK.mjs} +0 -0
  94. package/package.json +1 -1
  95. package/dist/builtins/alerts/critical-push.d.ts +0 -90
@@ -75,6 +75,11 @@ export interface StorageDispatchTarget {
75
75
  }
76
76
  /** The two chunked-I/O session families the orchestrator tracks. */
77
77
  export type StorageSessionKind = "upload" | "download";
78
+ /** What a {@link StorageOrchestratorService.seedDefaults} pass did. */
79
+ export type SeedOutcome = {
80
+ readonly added: number;
81
+ readonly deferred?: "store-not-answered" | "provider-unclassified";
82
+ };
78
83
  export declare class StorageOrchestratorService {
79
84
  private readonly logger;
80
85
  private readonly getProviders;
@@ -136,6 +141,26 @@ export declare class StorageOrchestratorService {
136
141
  * to touch — its bytes, and its free space, live elsewhere.
137
142
  */
138
143
  getLocalNodeId(): string;
144
+ /**
145
+ * Whether a seed must wait for an ANSWERED read of the store (D49). True on a
146
+ * node whose locations live in a store: seeding before that read lands writes
147
+ * defaults the store's own rows (not yet adopted, or not yet read) then
148
+ * contradict. False on a node that has no store by design — it seeds in memory
149
+ * at every boot.
150
+ */
151
+ private storeRequiredForSeed;
152
+ setStoreRequiredForSeed(required: boolean): void;
153
+ /**
154
+ * The location types a default was ever seeded for — null when the store
155
+ * cannot remember (then a type with no row is seeded, as before). What makes
156
+ * an operator's delete of a seeded default STICK: zero rows today is not
157
+ * "fresh install", it is only fresh when nothing was ever seeded.
158
+ */
159
+ private seededTypes;
160
+ /** The store held locations but no seed memory: an install older than the memory. */
161
+ private installPredatesSeedMemory;
162
+ private loadSeedMemory;
163
+ private rememberSeeded;
139
164
  /** True once a persistence store is wired (constructor or {@link attachStore}). */
140
165
  hasStore(): boolean;
141
166
  /**
@@ -430,7 +455,7 @@ export declare class StorageOrchestratorService {
430
455
  */
431
456
  readonly backupBasePath?: string;
432
457
  readonly declarations: readonly StorageLocationDeclaration[];
433
- }): void;
458
+ }): SeedOutcome;
434
459
  /**
435
460
  * The same-type physical-root refusal (D389).
436
461
  *
@@ -3,11 +3,11 @@ 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-DyjNaeIj.js");
6
+ const require_dist = require("../../dist-Bi4Ioxop.js");
7
7
  const require_safe_buffer$1 = require("../../safe-buffer-D3aoa-7X.js");
8
8
  const require_x509_es = require("../../x509.es-C4cOo48M.js");
9
- const require_constants$8 = require("../../constants-B3fDUnJt.js");
10
- const require_agent_https = require("../../agent-https-DL2cFOQv.js");
9
+ const require_constants$8 = require("../../constants-DBGG6Zu5.js");
10
+ const require_agent_https = require("../../agent-https-B7IjRRzT.js");
11
11
  const require_src$1 = require("../../src-CnAqG6EF.js");
12
12
  let zod = require("zod");
13
13
  let node_crypto = require("node:crypto");
@@ -1,9 +1,9 @@
1
1
  import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "../../chunk-CNf5ZN-e.mjs";
2
- import { Hr as BaseAddon, Li as hydrateSchema, Vr as errMsg, ji as defineCustomActions, ki as customAction, nt as ServerNameSchema, sr as shortHostname } from "../../dist-B9C2v4SG.mjs";
2
+ import { Fi as defineCustomActions, Gr as errMsg, Kr as BaseAddon, Ni as customAction, Vi as hydrateSchema, dr as shortHostname, nt as ServerNameSchema } from "../../dist-7ZciHCIp.mjs";
3
3
  import { t as require_safe_buffer } from "../../safe-buffer-B1OjL1I9.mjs";
4
4
  import { c as Pkcs10CertificateRequest } from "../../x509.es-DK__ETIe.mjs";
5
- import { a as MESH_CA_KEY_REF, i as MESH_CA_FIELD, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY } from "../../constants-DGBB3tNi.mjs";
6
- import { $ as generateMeshKeyPair, B as systemConfigRecordKinds, F as AGENT_HTTPS_NAMES_COLLECTION, G as describeMeshLeaf, H as MESH_NODE_CERTIFICATES_COLUMNS, I as AGENT_HTTPS_NAMES_COLUMNS, L as AgentHttpsNames, Q as generateMeshCa, R as getProcessAgentHttpsNames, U as MeshCertificateRegistry, V as MESH_NODE_CERTIFICATES_COLLECTION, X as createMeshCsrPem, Y as caFingerprintCompact, Z as exportMeshPrivateKeyPem, et as isValidAgentNodeId, it as subjectCn, j as isLocalOnlyHostname, nt as issueMeshLeafFromCsr, q as setProcessMeshCertificateRegistry, rt as loadMeshCa, tt as issueMeshLeafForNode, u as isPrivateAddress, z as setProcessAgentHttpsNames } from "../../agent-https-XAZFJjOS.mjs";
5
+ import { a as MESH_CA_KEY_REF, i as MESH_CA_FIELD, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY } from "../../constants-DQcVrhVI.mjs";
6
+ import { $ as generateMeshKeyPair, B as systemConfigRecordKinds, F as AGENT_HTTPS_NAMES_COLLECTION, G as describeMeshLeaf, H as MESH_NODE_CERTIFICATES_COLUMNS, I as AGENT_HTTPS_NAMES_COLUMNS, L as AgentHttpsNames, Q as generateMeshCa, R as getProcessAgentHttpsNames, U as MeshCertificateRegistry, V as MESH_NODE_CERTIFICATES_COLLECTION, X as createMeshCsrPem, Y as caFingerprintCompact, Z as exportMeshPrivateKeyPem, et as isValidAgentNodeId, it as subjectCn, j as isLocalOnlyHostname, nt as issueMeshLeafFromCsr, q as setProcessMeshCertificateRegistry, rt as loadMeshCa, tt as issueMeshLeafForNode, u as isPrivateAddress, z as setProcessAgentHttpsNames } from "../../agent-https-oXsR24R2.mjs";
7
7
  import { t as require_src } from "../../src-hG4grMU4.mjs";
8
8
  import { z } from "zod";
9
9
  import { X509Certificate, createHash, createPrivateKey, randomBytes, randomInt, sign, timingSafeEqual, verify, webcrypto } 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-DyjNaeIj.js");
6
+ const require_dist = require("../../dist-Bi4Ioxop.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 { Hr as BaseAddon, Tn as logDestinationCapability } from "../../dist-B9C2v4SG.mjs";
1
+ import { Kr as BaseAddon, kn as logDestinationCapability } from "../../dist-7ZciHCIp.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
- const require_dist = require("./dist-DyjNaeIj.js");
1
+ const require_dist = require("./dist-Bi4Ioxop.js");
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
@@ -1,4 +1,4 @@
1
- import { Pr as compositionSourceKey, Vr as errMsg } from "./dist-B9C2v4SG.mjs";
1
+ import { Gr as errMsg, Rr as compositionSourceKey } from "./dist-7ZciHCIp.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
@@ -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-DyjNaeIj.js").buildSecretRef({
2
+ var MESH_CA_KEY_REF = require("./dist-Bi4Ioxop.js").buildSecretRef({
3
3
  owner: "system",
4
4
  scope: { kind: "global" },
5
5
  fieldPath: "meshCaKey"
@@ -1,4 +1,4 @@
1
- import { Ci as buildSecretRef } from "./dist-B9C2v4SG.mjs";
1
+ import { Di as buildSecretRef } from "./dist-7ZciHCIp.mjs";
2
2
  /** `secret://system/global/meshCaKey` — EC P-256 PKCS#8 PEM of the hub mesh CA. */
3
3
  var MESH_CA_KEY_REF = buildSecretRef({
4
4
  owner: "system",
@@ -1,4 +1,4 @@
1
- const require_dist = require("./dist-DyjNaeIj.js");
1
+ const require_dist = require("./dist-Bi4Ioxop.js");
2
2
  const require_x509_es = require("./x509.es-C4cOo48M.js");
3
3
  let node_crypto = require("node:crypto");
4
4
  //#region src/auth/jwt-signing-key.ts
@@ -1,4 +1,4 @@
1
- import { Ci as buildSecretRef, D as DEVICE_SAN_CREDENTIAL_PREFIX, O as DEVICE_SAN_USER_PREFIX } from "./dist-B9C2v4SG.mjs";
1
+ import { D as DEVICE_SAN_CREDENTIAL_PREFIX, Di as buildSecretRef, O as DEVICE_SAN_USER_PREFIX } from "./dist-7ZciHCIp.mjs";
2
2
  import { S as backdatedNotBefore, 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-DK__ETIe.mjs";
3
3
  import { X509Certificate, createPublicKey, randomBytes, verify, webcrypto } from "node:crypto";
4
4
  //#region src/auth/jwt-signing-key.ts