@camstack/server 1.2.746 → 1.2.748

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 (92) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/api/trpc/generated-cap-routers.js +63 -0
  3. package/package.json +10 -10
  4. package/system/dist/{agent-https-CeiGBOLL.js → agent-https-DsAdFC8n.js} +1 -1
  5. package/system/dist/{agent-https-p__QCKx2.mjs → agent-https-XIAiPgNs.mjs} +1 -1
  6. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  7. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  8. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  9. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  10. package/system/dist/builtins/alerts/alerts.addon.js +1 -1
  11. package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
  12. package/system/dist/builtins/autotrack/index.js +1 -1
  13. package/system/dist/builtins/autotrack/index.mjs +1 -1
  14. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  15. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
  16. package/system/dist/builtins/calendars/calendars.addon.js +1 -1
  17. package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
  18. package/system/dist/builtins/camera-grid/index.js +1 -1
  19. package/system/dist/builtins/camera-grid/index.mjs +1 -1
  20. package/system/dist/builtins/composer/composer.addon.js +75 -11
  21. package/system/dist/builtins/composer/composer.addon.mjs +75 -11
  22. package/system/dist/builtins/composer/composer.d.ts +13 -1
  23. package/system/dist/builtins/composer/forward-commands.d.ts +11 -0
  24. package/system/dist/builtins/console-logging/index.js +1 -1
  25. package/system/dist/builtins/console-logging/index.mjs +1 -1
  26. package/system/dist/builtins/core-blocks/core-blocks.addon.js +161 -85
  27. package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +161 -85
  28. package/system/dist/builtins/core-blocks/remote-call-redirect.d.ts +9 -3
  29. package/system/dist/builtins/core-blocks/remote-service.d.ts +32 -6
  30. package/system/dist/builtins/core-blocks/remote-wiring.d.ts +8 -0
  31. package/system/dist/builtins/device-history/device-history.addon.js +2 -2
  32. package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
  33. package/system/dist/builtins/device-manager/device-manager.addon.js +1 -1
  34. package/system/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
  35. package/system/dist/builtins/hub-forwarder/index.js +1 -1
  36. package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
  37. package/system/dist/builtins/keychain/index.js +3 -3
  38. package/system/dist/builtins/keychain/index.mjs +3 -3
  39. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  40. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  41. package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
  42. package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
  43. package/system/dist/builtins/local-network/local-network.addon.d.ts +8 -0
  44. package/system/dist/builtins/local-network/local-network.addon.js +99 -2
  45. package/system/dist/builtins/local-network/local-network.addon.mjs +99 -2
  46. package/system/dist/builtins/local-network/migrations/hub-node-fields.d.ts +30 -0
  47. package/system/dist/builtins/local-network/migrations/index.d.ts +8 -0
  48. package/system/dist/builtins/loki-logging/index.js +1 -1
  49. package/system/dist/builtins/loki-logging/index.mjs +1 -1
  50. package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  51. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  52. package/system/dist/builtins/platform-probe/index.js +1 -1
  53. package/system/dist/builtins/platform-probe/index.mjs +1 -1
  54. package/system/dist/builtins/record-entries/index.js +1 -1
  55. package/system/dist/builtins/record-entries/index.mjs +1 -1
  56. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  57. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  58. package/system/dist/builtins/snapshot/index.js +1 -1
  59. package/system/dist/builtins/snapshot/index.mjs +1 -1
  60. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  61. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  62. package/system/dist/builtins/sqlite-storage/index.js +1 -1
  63. package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
  64. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +2 -2
  65. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +2 -2
  66. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  67. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  68. package/system/dist/builtins/system-config/system-config.addon.js +3 -3
  69. package/system/dist/builtins/system-config/system-config.addon.mjs +284 -284
  70. package/system/dist/builtins/winston-logging/index.js +1 -1
  71. package/system/dist/builtins/winston-logging/index.mjs +1 -1
  72. package/system/dist/{composition-sources-MLdAmm_H.mjs → composition-sources-DKJiErim.mjs} +1 -1
  73. package/system/dist/{composition-sources-C9lrcs0U.js → composition-sources-DUF2KY-Q.js} +1 -1
  74. package/system/dist/{constants-DCW5J_Df.mjs → constants-D3cOCDWZ.mjs} +1 -1
  75. package/system/dist/{constants-DNhyMkdx.js → constants-Smr-sgQk.js} +1 -1
  76. package/system/dist/{device-ca-Cp0tBm4M.mjs → device-ca-Bjql3lRF.mjs} +1 -1
  77. package/system/dist/{device-ca-AYCsUsY8.js → device-ca-qPLV2_YM.js} +1 -1
  78. package/system/dist/{dist-CMxM4-FW.mjs → dist-BFiMX6mZ.mjs} +452 -221
  79. package/system/dist/{dist-B1ZljzFe.js → dist-CrwALoYk.js} +469 -220
  80. package/system/dist/file-host-worker.js +1 -1
  81. package/system/dist/file-host-worker.mjs +1 -1
  82. package/system/dist/{hub-mdns-ciao-CbnDQ6lH.mjs → hub-mdns-ciao-B6JK5wYQ.mjs} +2 -2
  83. package/system/dist/{hub-mdns-ciao-Xf67S6hV.js → hub-mdns-ciao-DBYj4N_8.js} +2 -2
  84. package/system/dist/index.js +7 -7
  85. package/system/dist/index.mjs +7 -7
  86. package/system/dist/{restore-archive-DLTNZsfo.js → restore-archive-DKZiYRbs.js} +1 -1
  87. package/system/dist/{restore-archive-CMJvv4hx.mjs → restore-archive-HEmBtC17.mjs} +82 -82
  88. package/system/dist/{retention-DggVaaFh.mjs → retention-CDhx9ofQ.mjs} +1 -1
  89. package/system/dist/{retention-tfu-EBh4.js → retention-DUTatu4f.js} +1 -1
  90. package/system/dist/{wal-maintenance-B5qz1TlP.js → wal-maintenance-BlfNMW7r.js} +0 -0
  91. package/system/dist/{wal-maintenance-Ch9XhjjA.mjs → wal-maintenance-C59YCSjx.mjs} +0 -0
  92. package/system/package.json +1 -1
@@ -144,8 +144,16 @@ export declare class LocalNetworkAddon extends BaseAddon<LocalNetworkConfig> {
144
144
  private listenerOriginsNow;
145
145
  /** The DETECTED palette from the cached interface/tunnel/mesh state. */
146
146
  private endpointsNow;
147
+ /**
148
+ * Copy each bare LAN access setting to its hub node row (D986, D987), then re-resolve the
149
+ * config so this boot binds the node values.
150
+ */
151
+ private migrateNodeFields;
147
152
  protected onInitialize(): Promise<ProviderRegistration[]>;
153
+ protected override nodeSettingsSchema(cap: string): Promise<ConfigUISchema | null>;
148
154
  protected override globalSettingsSchema(): ConfigUISchema;
155
+ /** How THIS host listens and announces itself: every field is a node setting (D986). */
156
+ private lanSchema;
149
157
  protected override onConfigChanged(): Promise<void>;
150
158
  /**
151
159
  * (Re)start the passive listener and the 30-minute sweep, both feeding the
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_chunk = require("../../chunk-Cek0wNdY.js");
3
- const require_dist = require("../../dist-B1ZljzFe.js");
3
+ const require_dist = require("../../dist-CrwALoYk.js");
4
4
  const require_dns_wire = require("../../dns-wire-B1BvF9Ao.js");
5
- const require_hub_mdns_ciao = require("../../hub-mdns-ciao-Xf67S6hV.js");
5
+ const require_hub_mdns_ciao = require("../../hub-mdns-ciao-DBYj4N_8.js");
6
6
  let zod = require("zod");
7
7
  let node_net = require("node:net");
8
8
  let node_os = require("node:os");
@@ -13,6 +13,82 @@ node_http = require_chunk.__toESM(node_http);
13
13
  let node_dgram = require("node:dgram");
14
14
  let node_https = require("node:https");
15
15
  node_https = require_chunk.__toESM(node_https);
16
+ //#region src/builtins/local-network/migrations/hub-node-fields.ts
17
+ /**
18
+ * Fields stored once for the cluster that are facts of ONE node become node settings (D986): a
19
+ * node's row is `<addonId>.<key>@<nodeId>` carrying `nodeId`, and a node never falls back to a
20
+ * bare row. This owner is placed `hub-only`, so the one node that ever held a value is the hub:
21
+ * each bare row is COPIED to `<key>@hub`. The bare row stays for a release (a copy, not a move),
22
+ * and a value already on the node row is never overwritten (a seed never overwrites).
23
+ *
24
+ * A keychain marker is copied verbatim: it names the owner and the secret, not the row that
25
+ * points at it. Idempotent: with every bare row copied the plan is empty.
26
+ */
27
+ /** The canonical settings table: one row per key, id `<addonId>.<key>`. */
28
+ var ADDON_SETTINGS_TABLE = "addon-settings";
29
+ var nodeKeyOf = (key) => `${key}@hub`;
30
+ async function planHubNodeFields(addonId, keys, ports) {
31
+ const stored = await ports.readStored([...keys, ...keys.map(nodeKeyOf)]);
32
+ const pending = keys.filter((key) => key in stored && !(nodeKeyOf(key) in stored));
33
+ if (pending.length === 0) return { edits: [] };
34
+ const rowId = (key) => `${addonId}.${nodeKeyOf(key)}`;
35
+ return { edits: [{
36
+ op: "setKeys",
37
+ scope: ADDON_SETTINGS_TABLE,
38
+ values: Object.fromEntries(pending.map((key) => [rowId(key), {
39
+ addonId,
40
+ key: nodeKeyOf(key),
41
+ value: stored[key],
42
+ nodeId: "hub"
43
+ }])),
44
+ precondition: require_dist.preconditionOf(Object.fromEntries(pending.map((key) => [rowId(key), null])))
45
+ }] };
46
+ }
47
+ /**
48
+ * The port's read over an addon's three-way key read: each of `keys` that has a row, raw. A key
49
+ * the store could not answer for throws, so the migration fails instead of treating a failed read
50
+ * as "nothing to copy".
51
+ */
52
+ async function readRawKeys(read, addonId, keys) {
53
+ const found = {};
54
+ for (const key of keys) {
55
+ const answer = await read(key);
56
+ if (answer.kind === "unreadable") throw new Error(`${addonId}: the setting ${key} cannot be read (${answer.reason})`);
57
+ if (answer.kind === "present") found[key] = answer.value;
58
+ }
59
+ return found;
60
+ }
61
+ //#endregion
62
+ //#region src/builtins/local-network/migrations/index.ts
63
+ var LOCAL_NETWORK_ID = "local-network";
64
+ var LAN_SETTINGS_PER_NODE_ID = "local-network/2026-11-03-lan-settings-per-node";
65
+ /** The LAN access fields: how THIS host listens and announces itself. */
66
+ var LAN_SETTING_KEYS = [
67
+ "httpEnabled",
68
+ "httpPort",
69
+ "tlsEnabled",
70
+ "mdnsAdvertise",
71
+ "passiveDiscovery",
72
+ "localHostname"
73
+ ];
74
+ /** The `local-network` catalogue (D987): offered to the engine when the addon initialises. */
75
+ var ADDON_MIGRATIONS = [{
76
+ meta: {
77
+ id: LAN_SETTINGS_PER_NODE_ID,
78
+ owner: LOCAL_NETWORK_ID,
79
+ level: "addon-state",
80
+ seq: 1,
81
+ dependsOn: [],
82
+ store: "settings",
83
+ scope: "per-node",
84
+ onFailure: "tolerate",
85
+ bodyKind: "plan",
86
+ description: "Copy each bare LAN access setting to its hub node row; the bare rows stay for a release",
87
+ fixtureMark: "the allowed addresses list the migration does not know"
88
+ },
89
+ plan: (ports) => planHubNodeFields(LOCAL_NETWORK_ID, LAN_SETTING_KEYS, ports)
90
+ }];
91
+ //#endregion
16
92
  //#region src/builtins/local-network/address-book.ts
17
93
  /**
18
94
  * The Network page's address book, as pure functions: custom addresses plus
@@ -1752,7 +1828,15 @@ var LocalNetworkAddon = class extends require_dist.BaseAddon {
1752
1828
  localHostname: this.config.localHostname || null
1753
1829
  } : null, this.publicHostnameStable);
1754
1830
  }
1831
+ /**
1832
+ * Copy each bare LAN access setting to its hub node row (D986, D987), then re-resolve the
1833
+ * config so this boot binds the node values.
1834
+ */
1835
+ async migrateNodeFields() {
1836
+ if ((await this.runMigrations(require_dist.defineAddonMigrations(ADDON_MIGRATIONS, { readStored: (keys) => readRawKeys((key) => this.readStoredGlobalKey(key), "local-network", keys) }))).applied.length > 0) await this.resolveConfig();
1837
+ }
1755
1838
  async onInitialize() {
1839
+ await this.migrateNodeFields();
1756
1840
  if (!this.config.bootSeeded) {
1757
1841
  const seed = autoSeedAllowlist(this.enumerate());
1758
1842
  await this.updateGlobalSettings({
@@ -1944,7 +2028,14 @@ var LocalNetworkAddon = class extends require_dist.BaseAddon {
1944
2028
  provider
1945
2029
  }];
1946
2030
  }
2031
+ async nodeSettingsSchema(cap) {
2032
+ return cap === "local-network" ? this.lanSchema() : null;
2033
+ }
1947
2034
  globalSettingsSchema() {
2035
+ return this.lanSchema();
2036
+ }
2037
+ /** How THIS host listens and announces itself: every field is a node setting (D986). */
2038
+ lanSchema() {
1948
2039
  return this.schema({ sections: [{
1949
2040
  id: "local-access",
1950
2041
  title: "LAN HTTP",
@@ -1956,6 +2047,7 @@ var LocalNetworkAddon = class extends require_dist.BaseAddon {
1956
2047
  this.field({
1957
2048
  type: "boolean",
1958
2049
  key: "httpEnabled",
2050
+ perNode: true,
1959
2051
  label: "Enable HTTP on the LAN",
1960
2052
  labelKey: "server:globalSettings.s_local-access.httpEnabled.label",
1961
2053
  style: "switch",
@@ -1964,6 +2056,7 @@ var LocalNetworkAddon = class extends require_dist.BaseAddon {
1964
2056
  this.field({
1965
2057
  type: "number",
1966
2058
  key: "httpPort",
2059
+ perNode: true,
1967
2060
  label: "HTTP port",
1968
2061
  labelKey: "server:globalSettings.s_local-access.httpPort.label",
1969
2062
  description: "Dedicated listener. Must not equal the HTTPS port (4443 by default).",
@@ -1980,6 +2073,7 @@ var LocalNetworkAddon = class extends require_dist.BaseAddon {
1980
2073
  this.field({
1981
2074
  type: "boolean",
1982
2075
  key: "tlsEnabled",
2076
+ perNode: true,
1983
2077
  label: "Serve HTTPS",
1984
2078
  labelKey: "server:globalSettings.s_local-access.tlsEnabled.label",
1985
2079
  description: "On by default. Turn off only behind a reverse proxy that terminates TLS for you: browsers refuse passkeys, the camera and the microphone over plain HTTP. Applies after the hub restarts.",
@@ -1990,6 +2084,7 @@ var LocalNetworkAddon = class extends require_dist.BaseAddon {
1990
2084
  this.field({
1991
2085
  type: "boolean",
1992
2086
  key: "mdnsAdvertise",
2087
+ perNode: true,
1993
2088
  label: "Announce this hub on the LAN (mDNS)",
1994
2089
  labelKey: "server:globalSettings.s_local-access.mdnsAdvertise.label",
1995
2090
  description: "Lets `camstack login` find the hub without an address. Advertises only the HTTPS address, never a secret. Needs UDP 5353 multicast to reach the LAN (host networking or a dedicated container IP).",
@@ -2000,6 +2095,7 @@ var LocalNetworkAddon = class extends require_dist.BaseAddon {
2000
2095
  this.field({
2001
2096
  type: "boolean",
2002
2097
  key: "passiveDiscovery",
2098
+ perNode: true,
2003
2099
  label: "Find new devices on the LAN by listening",
2004
2100
  labelKey: "server:globalSettings.s_local-access.passiveDiscovery.label",
2005
2101
  description: "On by default. Listens for mDNS and SSDP announcements and proposes the devices an integration can adopt; a low-cost scan also runs every 30 minutes. It never sends a probe of its own. Needs UDP multicast to reach the LAN (host networking or a dedicated container IP).",
@@ -2010,6 +2106,7 @@ var LocalNetworkAddon = class extends require_dist.BaseAddon {
2010
2106
  this.field({
2011
2107
  type: "text",
2012
2108
  key: "localHostname",
2109
+ perNode: true,
2013
2110
  label: "Local hostname",
2014
2111
  labelKey: "server:globalSettings.s_local-access.localHostname.label",
2015
2112
  description: "Advertised to the viewer instead of the raw LAN IP, and added to the certificate SAN. Requires this name to resolve on the LAN (router DNS, mDNS, or a hosts file). Leave empty to keep using the IP.",
@@ -1,6 +1,6 @@
1
- import { Bi as resolveAppConnections, Et as NetworkTunnelStartedDataSchema, Ir as isDefaultAppConnectionEndpoint, Ji as resolveNotificationTapAddress, Mr as isAppLinkBase, Oa as validateCustomAddress, On as checkRoleAddress, Wi as resolveHubAddressRoles, Yr as localNetworkCapability, _ as CAMSTACK_APP_LINK_ORIGIN, ca as shortHostname, dt as HUB_MDNS_TXT_KEYS, ho as BaseAddon, nc as EventCategory, tc as errMsg, ut as HUB_MDNS_SERVICE_TYPE, wi as pickAppLinkHub } from "../../dist-CMxM4-FW.mjs";
1
+ import { An as checkRoleAddress, Di as pickAppLinkHub, Et as NetworkTunnelStartedDataSchema, Mi as preconditionOf, Pr as isAppLinkBase, Rr as isDefaultAppConnectionEndpoint, Ui as resolveAppConnections, Zi as resolveNotificationTapAddress, Zr as localNetworkCapability, _ as CAMSTACK_APP_LINK_ORIGIN, ac as EventCategory, da as shortHostname, dt as HUB_MDNS_TXT_KEYS, ic as errMsg, ja as validateCustomAddress, qi as resolveHubAddressRoles, us as defineAddonMigrations, ut as HUB_MDNS_SERVICE_TYPE, vo as BaseAddon } from "../../dist-BFiMX6mZ.mjs";
2
2
  import { a as emptyMdnsRecords, c as parseMdnsMessage, i as buildRecordQuery, l as parseMdnsRecords, n as MDNS_PORT, o as mergeMdnsRecords, r as buildPtrQuery, s as normalizeServiceType, t as MDNS_GROUP } from "../../dns-wire-Dm3H_7ST.mjs";
3
- import { E as ensureTlsCert, I as readLanHttpState, N as applyLanHttp, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, d as servedHttpsLeafFingerprint, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, r as regenerateCertificate, t as createCiaoPublisher, y as writeExtraSans } from "../../hub-mdns-ciao-CbnDQ6lH.mjs";
3
+ import { E as ensureTlsCert, I as readLanHttpState, N as applyLanHttp, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, d as servedHttpsLeafFingerprint, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, r as regenerateCertificate, t as createCiaoPublisher, y as writeExtraSans } from "../../hub-mdns-ciao-B6JK5wYQ.mjs";
4
4
  import { z } from "zod";
5
5
  import { isIP } from "node:net";
6
6
  import * as os$1 from "node:os";
@@ -8,6 +8,82 @@ import { readFileSync } from "node:fs";
8
8
  import * as http from "node:http";
9
9
  import { createSocket } from "node:dgram";
10
10
  import * as https from "node:https";
11
+ //#region src/builtins/local-network/migrations/hub-node-fields.ts
12
+ /**
13
+ * Fields stored once for the cluster that are facts of ONE node become node settings (D986): a
14
+ * node's row is `<addonId>.<key>@<nodeId>` carrying `nodeId`, and a node never falls back to a
15
+ * bare row. This owner is placed `hub-only`, so the one node that ever held a value is the hub:
16
+ * each bare row is COPIED to `<key>@hub`. The bare row stays for a release (a copy, not a move),
17
+ * and a value already on the node row is never overwritten (a seed never overwrites).
18
+ *
19
+ * A keychain marker is copied verbatim: it names the owner and the secret, not the row that
20
+ * points at it. Idempotent: with every bare row copied the plan is empty.
21
+ */
22
+ /** The canonical settings table: one row per key, id `<addonId>.<key>`. */
23
+ var ADDON_SETTINGS_TABLE = "addon-settings";
24
+ var nodeKeyOf = (key) => `${key}@hub`;
25
+ async function planHubNodeFields(addonId, keys, ports) {
26
+ const stored = await ports.readStored([...keys, ...keys.map(nodeKeyOf)]);
27
+ const pending = keys.filter((key) => key in stored && !(nodeKeyOf(key) in stored));
28
+ if (pending.length === 0) return { edits: [] };
29
+ const rowId = (key) => `${addonId}.${nodeKeyOf(key)}`;
30
+ return { edits: [{
31
+ op: "setKeys",
32
+ scope: ADDON_SETTINGS_TABLE,
33
+ values: Object.fromEntries(pending.map((key) => [rowId(key), {
34
+ addonId,
35
+ key: nodeKeyOf(key),
36
+ value: stored[key],
37
+ nodeId: "hub"
38
+ }])),
39
+ precondition: preconditionOf(Object.fromEntries(pending.map((key) => [rowId(key), null])))
40
+ }] };
41
+ }
42
+ /**
43
+ * The port's read over an addon's three-way key read: each of `keys` that has a row, raw. A key
44
+ * the store could not answer for throws, so the migration fails instead of treating a failed read
45
+ * as "nothing to copy".
46
+ */
47
+ async function readRawKeys(read, addonId, keys) {
48
+ const found = {};
49
+ for (const key of keys) {
50
+ const answer = await read(key);
51
+ if (answer.kind === "unreadable") throw new Error(`${addonId}: the setting ${key} cannot be read (${answer.reason})`);
52
+ if (answer.kind === "present") found[key] = answer.value;
53
+ }
54
+ return found;
55
+ }
56
+ //#endregion
57
+ //#region src/builtins/local-network/migrations/index.ts
58
+ var LOCAL_NETWORK_ID = "local-network";
59
+ var LAN_SETTINGS_PER_NODE_ID = "local-network/2026-11-03-lan-settings-per-node";
60
+ /** The LAN access fields: how THIS host listens and announces itself. */
61
+ var LAN_SETTING_KEYS = [
62
+ "httpEnabled",
63
+ "httpPort",
64
+ "tlsEnabled",
65
+ "mdnsAdvertise",
66
+ "passiveDiscovery",
67
+ "localHostname"
68
+ ];
69
+ /** The `local-network` catalogue (D987): offered to the engine when the addon initialises. */
70
+ var ADDON_MIGRATIONS = [{
71
+ meta: {
72
+ id: LAN_SETTINGS_PER_NODE_ID,
73
+ owner: LOCAL_NETWORK_ID,
74
+ level: "addon-state",
75
+ seq: 1,
76
+ dependsOn: [],
77
+ store: "settings",
78
+ scope: "per-node",
79
+ onFailure: "tolerate",
80
+ bodyKind: "plan",
81
+ description: "Copy each bare LAN access setting to its hub node row; the bare rows stay for a release",
82
+ fixtureMark: "the allowed addresses list the migration does not know"
83
+ },
84
+ plan: (ports) => planHubNodeFields(LOCAL_NETWORK_ID, LAN_SETTING_KEYS, ports)
85
+ }];
86
+ //#endregion
11
87
  //#region src/builtins/local-network/address-book.ts
12
88
  /**
13
89
  * The Network page's address book, as pure functions: custom addresses plus
@@ -1747,7 +1823,15 @@ var LocalNetworkAddon = class extends BaseAddon {
1747
1823
  localHostname: this.config.localHostname || null
1748
1824
  } : null, this.publicHostnameStable);
1749
1825
  }
1826
+ /**
1827
+ * Copy each bare LAN access setting to its hub node row (D986, D987), then re-resolve the
1828
+ * config so this boot binds the node values.
1829
+ */
1830
+ async migrateNodeFields() {
1831
+ if ((await this.runMigrations(defineAddonMigrations(ADDON_MIGRATIONS, { readStored: (keys) => readRawKeys((key) => this.readStoredGlobalKey(key), "local-network", keys) }))).applied.length > 0) await this.resolveConfig();
1832
+ }
1750
1833
  async onInitialize() {
1834
+ await this.migrateNodeFields();
1751
1835
  if (!this.config.bootSeeded) {
1752
1836
  const seed = autoSeedAllowlist(this.enumerate());
1753
1837
  await this.updateGlobalSettings({
@@ -1939,7 +2023,14 @@ var LocalNetworkAddon = class extends BaseAddon {
1939
2023
  provider
1940
2024
  }];
1941
2025
  }
2026
+ async nodeSettingsSchema(cap) {
2027
+ return cap === "local-network" ? this.lanSchema() : null;
2028
+ }
1942
2029
  globalSettingsSchema() {
2030
+ return this.lanSchema();
2031
+ }
2032
+ /** How THIS host listens and announces itself: every field is a node setting (D986). */
2033
+ lanSchema() {
1943
2034
  return this.schema({ sections: [{
1944
2035
  id: "local-access",
1945
2036
  title: "LAN HTTP",
@@ -1951,6 +2042,7 @@ var LocalNetworkAddon = class extends BaseAddon {
1951
2042
  this.field({
1952
2043
  type: "boolean",
1953
2044
  key: "httpEnabled",
2045
+ perNode: true,
1954
2046
  label: "Enable HTTP on the LAN",
1955
2047
  labelKey: "server:globalSettings.s_local-access.httpEnabled.label",
1956
2048
  style: "switch",
@@ -1959,6 +2051,7 @@ var LocalNetworkAddon = class extends BaseAddon {
1959
2051
  this.field({
1960
2052
  type: "number",
1961
2053
  key: "httpPort",
2054
+ perNode: true,
1962
2055
  label: "HTTP port",
1963
2056
  labelKey: "server:globalSettings.s_local-access.httpPort.label",
1964
2057
  description: "Dedicated listener. Must not equal the HTTPS port (4443 by default).",
@@ -1975,6 +2068,7 @@ var LocalNetworkAddon = class extends BaseAddon {
1975
2068
  this.field({
1976
2069
  type: "boolean",
1977
2070
  key: "tlsEnabled",
2071
+ perNode: true,
1978
2072
  label: "Serve HTTPS",
1979
2073
  labelKey: "server:globalSettings.s_local-access.tlsEnabled.label",
1980
2074
  description: "On by default. Turn off only behind a reverse proxy that terminates TLS for you: browsers refuse passkeys, the camera and the microphone over plain HTTP. Applies after the hub restarts.",
@@ -1985,6 +2079,7 @@ var LocalNetworkAddon = class extends BaseAddon {
1985
2079
  this.field({
1986
2080
  type: "boolean",
1987
2081
  key: "mdnsAdvertise",
2082
+ perNode: true,
1988
2083
  label: "Announce this hub on the LAN (mDNS)",
1989
2084
  labelKey: "server:globalSettings.s_local-access.mdnsAdvertise.label",
1990
2085
  description: "Lets `camstack login` find the hub without an address. Advertises only the HTTPS address, never a secret. Needs UDP 5353 multicast to reach the LAN (host networking or a dedicated container IP).",
@@ -1995,6 +2090,7 @@ var LocalNetworkAddon = class extends BaseAddon {
1995
2090
  this.field({
1996
2091
  type: "boolean",
1997
2092
  key: "passiveDiscovery",
2093
+ perNode: true,
1998
2094
  label: "Find new devices on the LAN by listening",
1999
2095
  labelKey: "server:globalSettings.s_local-access.passiveDiscovery.label",
2000
2096
  description: "On by default. Listens for mDNS and SSDP announcements and proposes the devices an integration can adopt; a low-cost scan also runs every 30 minutes. It never sends a probe of its own. Needs UDP multicast to reach the LAN (host networking or a dedicated container IP).",
@@ -2005,6 +2101,7 @@ var LocalNetworkAddon = class extends BaseAddon {
2005
2101
  this.field({
2006
2102
  type: "text",
2007
2103
  key: "localHostname",
2104
+ perNode: true,
2008
2105
  label: "Local hostname",
2009
2106
  labelKey: "server:globalSettings.s_local-access.localHostname.label",
2010
2107
  description: "Advertised to the viewer instead of the raw LAN IP, and added to the certificate SAN. Requires this name to resolve on the LAN (router DNS, mDNS, or a hosts file). Leave empty to keep using the IP.",
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Fields stored once for the cluster that are facts of ONE node become node settings (D986): a
3
+ * node's row is `<addonId>.<key>@<nodeId>` carrying `nodeId`, and a node never falls back to a
4
+ * bare row. This owner is placed `hub-only`, so the one node that ever held a value is the hub:
5
+ * each bare row is COPIED to `<key>@hub`. The bare row stays for a release (a copy, not a move),
6
+ * and a value already on the node row is never overwritten (a seed never overwrites).
7
+ *
8
+ * A keychain marker is copied verbatim: it names the owner and the secret, not the row that
9
+ * points at it. Idempotent: with every bare row copied the plan is empty.
10
+ */
11
+ import { type MigrationPlan, type StoredKeyRead } from "@camstack/types";
12
+ /** The canonical settings table: one row per key, id `<addonId>.<key>`. */
13
+ export declare const ADDON_SETTINGS_TABLE = "addon-settings";
14
+ /** The owner is `hub-only`: the hub is the only node that ever held a value. */
15
+ export declare const SETTINGS_NODE_ID = "hub";
16
+ export interface HubNodeFieldsPorts {
17
+ /**
18
+ * The addon's rows as stored (markers kept, nothing resolved), for each of `keys` that has a
19
+ * row; a key without one is left out. Throws when the store cannot be read.
20
+ */
21
+ readStored(keys: readonly string[]): Promise<Readonly<Record<string, unknown>>>;
22
+ }
23
+ export declare const nodeKeyOf: (key: string) => string;
24
+ export declare function planHubNodeFields(addonId: string, keys: readonly string[], ports: HubNodeFieldsPorts): Promise<MigrationPlan>;
25
+ /**
26
+ * The port's read over an addon's three-way key read: each of `keys` that has a row, raw. A key
27
+ * the store could not answer for throws, so the migration fails instead of treating a failed read
28
+ * as "nothing to copy".
29
+ */
30
+ export declare function readRawKeys(read: (key: string) => Promise<StoredKeyRead>, addonId: string, keys: readonly string[]): Promise<Record<string, unknown>>;
@@ -0,0 +1,8 @@
1
+ import type { AddonMigration } from "@camstack/types";
2
+ import { type HubNodeFieldsPorts } from "./hub-node-fields.js";
3
+ export declare const LOCAL_NETWORK_ID = "local-network";
4
+ export declare const LAN_SETTINGS_PER_NODE_ID = "local-network/2026-11-03-lan-settings-per-node";
5
+ /** The LAN access fields: how THIS host listens and announces itself. */
6
+ export declare const LAN_SETTING_KEYS: readonly string[];
7
+ /** The `local-network` catalogue (D987): offered to the engine when the addon initialises. */
8
+ export declare const ADDON_MIGRATIONS: readonly AddonMigration<HubNodeFieldsPorts>[];
@@ -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-B1ZljzFe.js");
6
+ const require_dist = require("../../dist-CrwALoYk.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
@@ -1,4 +1,4 @@
1
- import { $r as logDestinationCapability, Br as isSameAddonId, Dr as integrationInstancesCapability, Es as isSecretMarker, Ho as RevConflictError, Pt as RecordIntegrationInstances, Ts as isSecretFieldView, hn as bareAddonId, ho as BaseAddon, ki as preconditionOf, ls as defineEntryKind, ss as defineAddonMigrations } from "../../dist-CMxM4-FW.mjs";
1
+ import { Go as RevConflictError, Hr as isSameAddonId, It as RecordIntegrationInstances, Mi as preconditionOf, Os as isSecretFieldView, _n as bareAddonId, fs as defineEntryKind, kr as integrationInstancesCapability, ks as isSecretMarker, ti as logDestinationCapability, us as defineAddonMigrations, vo as BaseAddon } from "../../dist-BFiMX6mZ.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
@@ -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-B1ZljzFe.js");
6
+ const require_dist = require("../../dist-CrwALoYk.js");
7
7
  let node_fs_promises = require("node:fs/promises");
8
8
  let node_util = require("node:util");
9
9
  let node_os = require("node:os");
@@ -1,4 +1,4 @@
1
- import { $t as UNATTRIBUTED_BUCKET_KEY, Fi as reducePoints, Nt as ROOT_BUCKET_KEY, Vi as resolveBucketMs, as as createEvent, ho as BaseAddon, nc as EventCategory, si as metricsProviderCapability, tc as errMsg, xr as foldSnapshotByFunction } from "../../dist-CMxM4-FW.mjs";
1
+ import { Cr as foldSnapshotByFunction, Ft as ROOT_BUCKET_KEY, Ri as reducePoints, Wi as resolveBucketMs, ac as EventCategory, cs as createEvent, ic as errMsg, tn as UNATTRIBUTED_BUCKET_KEY, ui as metricsProviderCapability, vo as BaseAddon } from "../../dist-BFiMX6mZ.mjs";
2
2
  import { access, readFile, readdir } from "node:fs/promises";
3
3
  import { promisify } from "node:util";
4
4
  import * as os$1 from "node:os";
@@ -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-B1ZljzFe.js");
6
+ const require_dist = require("../../dist-CrwALoYk.js");
7
7
  const require_coral_accelerators = require("../../coral-accelerators-BSVsBVzt.js");
8
8
  let node_path = require("node:path");
9
9
  node_path = require_chunk.__toESM(node_path);
@@ -1,5 +1,5 @@
1
1
  import { o as __toESM, r as __exportAll } from "../../chunk-CNf5ZN-e.mjs";
2
- import { Ei as platformProbeCapability, fs as emitReadiness, ho as BaseAddon, nc as EventCategory, ra as scoreRuntimes, sr as enumerateInferenceDevices, tc as errMsg, xi as parseAcceleratorFactsJson } from "../../dist-CMxM4-FW.mjs";
2
+ import { ac as EventCategory, hs as emitReadiness, ic as errMsg, ki as platformProbeCapability, lr as enumerateInferenceDevices, oa as scoreRuntimes, vo as BaseAddon, wi as parseAcceleratorFactsJson } from "../../dist-BFiMX6mZ.mjs";
3
3
  import { n as detectCoralAccelerator, r as nodeCoralFs } from "../../coral-accelerators-DBlgWB8k.mjs";
4
4
  import * as path$1 from "node:path";
5
5
  import { promisify } from "node:util";
@@ -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-B1ZljzFe.js");
6
+ const require_dist = require("../../dist-CrwALoYk.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 { Gs as secretViewsOf, Ni as recordEntriesCapability, To as InvalidRecordError, ho as BaseAddon, qo as UnknownRecordKindError } from "../../dist-CMxM4-FW.mjs";
1
+ import { Ii as recordEntriesCapability, Js as secretViewsOf, Oo as InvalidRecordError, Xo as UnknownRecordKindError, vo as BaseAddon } from "../../dist-BFiMX6mZ.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-B1ZljzFe.js");
6
+ const require_dist = require("../../dist-CrwALoYk.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 { ho as BaseAddon, nc as EventCategory } from "../../dist-CMxM4-FW.mjs";
1
+ import { ac as EventCategory, vo as BaseAddon } from "../../dist-BFiMX6mZ.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-B1ZljzFe.js");
6
+ const require_dist = require("../../dist-CrwALoYk.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 { Ms as nodePin, Qs as DeviceFeature, Zn as deriveBatteryPresence, ai as memoizePinnedFfmpeg, da as snapshotCapability, ec as DeviceType, gn as batteryCapability, h as BatteryStatusSchema, hn as bareAddonId, ho as BaseAddon, nc as EventCategory, tc as errMsg, ya as streamQualityLabel } from "../../dist-CMxM4-FW.mjs";
1
+ import { $n as deriveBatteryPresence, Fs as nodePin, Sa as streamQualityLabel, _n as bareAddonId, ac as EventCategory, ci as memoizePinnedFfmpeg, h as BatteryStatusSchema, ic as errMsg, ma as snapshotCapability, rc as DeviceType, tc as DeviceFeature, vn as batteryCapability, vo as BaseAddon } from "../../dist-BFiMX6mZ.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-B1ZljzFe.js");
6
+ const require_dist = require("../../dist-CrwALoYk.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 { _a as storageProviderCapability, br as filesystemBrowseCapability, ho as BaseAddon } from "../../dist-CMxM4-FW.mjs";
1
+ import { Sr as filesystemBrowseCapability, ba as storageProviderCapability, vo as BaseAddon } from "../../dist-BFiMX6mZ.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";
@@ -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-B5qz1TlP.js");
7
+ const require_wal_maintenance = require("../../wal-maintenance-BlfNMW7r.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-Ch9XhjjA.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-C59YCSjx.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,9 +3,9 @@ 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-B1ZljzFe.js");
6
+ const require_dist = require("../../dist-CrwALoYk.js");
7
7
  const require_retired_settings_keys = require("../../retired-settings-keys-C8nOOr5H.js");
8
- const require_wal_maintenance = require("../../wal-maintenance-B5qz1TlP.js");
8
+ const require_wal_maintenance = require("../../wal-maintenance-BlfNMW7r.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
11
  let zod = require("zod");
@@ -1,6 +1,6 @@
1
- import { Dn as catalogueIssues, Eo as NoCallerError, Fo as RUNTIME_DEFAULTS, Gn as dataStoreProviderCapability, Go as TransactRefusedError, Kn as databaseSnapshotCapability, M as DATABASE_SNAPSHOT_SUFFIX, Mo as RECORD_SWEEP_INTERVAL_MS, N as DATABASE_SNAPSHOT_TIMEOUT_MS, Na as vectorStoreCapability, P as DATA_STORE_DATABASES, Pi as recordsCapability, Ps as normalizeSecretOwner, Ro as RecordKindDeclarationSchema, To as InvalidRecordError, Tt as MigrationMetaSchema, Yi as resolveRunnerId, bi as orderMigrations, ci as migrationsCapability, cs as defineCustomActions, hn as bareAddonId, ho as BaseAddon, j as DATABASE_SNAPSHOT_PARTIAL_SUFFIX, nc as EventCategory, os as customAction, pa as storageAdminCapability, qo as UnknownRecordKindError, rs as collectSecretMarkerRefs, tc as errMsg$1, xo as DeclarationRefusedError } from "../../dist-CMxM4-FW.mjs";
1
+ import { Ci as orderMigrations, Fo as RECORD_SWEEP_INTERVAL_MS, Ia as vectorStoreCapability, Jn as databaseSnapshotCapability, Jo as TransactRefusedError, Li as recordsCapability, Ls as normalizeSecretOwner, M as DATABASE_SNAPSHOT_SUFFIX, N as DATABASE_SNAPSHOT_TIMEOUT_MS, Oo as InvalidRecordError, P as DATA_STORE_DATABASES, Qi as resolveRunnerId, Ro as RUNTIME_DEFAULTS, Tt as MigrationMetaSchema, Vo as RecordKindDeclarationSchema, Xo as UnknownRecordKindError, _n as bareAddonId, ac as EventCategory, di as migrationsCapability, ds as defineCustomActions, ga as storageAdminCapability, ic as errMsg$1, j as DATABASE_SNAPSHOT_PARTIAL_SUFFIX, kn as catalogueIssues, ko as NoCallerError, ls as customAction, os as collectSecretMarkerRefs, qn as dataStoreProviderCapability, vo as BaseAddon, wo as DeclarationRefusedError } from "../../dist-BFiMX6mZ.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-Ch9XhjjA.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-C59YCSjx.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
6
  import { createRequire } from "node:module";
@@ -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-B1ZljzFe.js");
6
+ const require_dist = require("../../dist-CrwALoYk.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 { Es as isSecretMarker, Fs as parseJsonObject, Gi as resolveLocationMode, Ia as withLocationMode, Jt as StorageLocationTypeSchema, Kr as legacyModeOf, Kt as StorageCleanupJobSchema, No as REDACTED_SECRET, Ns as normalizeNodeId, Rr as isLocationEnabled, Us as secretTreeFromPaths, Vs as resolveSecretMarkers, Ys as transformSecretWrite, Yt as StorageMigrationJobSchema, fr as evictionPolicyOfLocation, ha as storageMigrationCapability, ho as BaseAddon, ia as settingsStoreCapability, li as modeMayWrite, ma as storageCapability, nc as EventCategory, ni as mayReadLocation, qt as StorageLocationModeSchema, ri as mayWriteToLocation, ts as collectSecretConfigKeys, us as defineRecordKinds, wr as gbToBytes, yt as LegacyStorageLocationDefaultSchema } from "../../dist-CMxM4-FW.mjs";
1
+ import { Br as isLocationEnabled, Er as gbToBytes, Io as REDACTED_SECRET, Is as normalizeNodeId, Ji as resolveLocationMode, Jr as legacyModeOf, Jt as StorageCleanupJobSchema, Ks as secretTreeFromPaths, Qs as transformSecretWrite, Rs as parseJsonObject, Ws as resolveSecretMarkers, Xt as StorageLocationTypeSchema, Yt as StorageLocationModeSchema, Zt as StorageMigrationJobSchema, _a as storageCapability, ac as EventCategory, ai as mayWriteToLocation, fi as modeMayWrite, ii as mayReadLocation, is as collectSecretConfigKeys, ks as isSecretMarker, mr as evictionPolicyOfLocation, ps as defineRecordKinds, sa as settingsStoreCapability, va as storageMigrationCapability, vo as BaseAddon, yt as LegacyStorageLocationDefaultSchema, za as withLocationMode } from "../../dist-BFiMX6mZ.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";
@@ -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-B1ZljzFe.js");
6
+ const require_dist = require("../../dist-CrwALoYk.js");
7
7
  const require_safe_buffer$1 = require("../../safe-buffer-D3aoa-7X.js");
8
8
  const require_x509_es = require("../../x509.es-WtnRNyYS.js");
9
- const require_agent_https = require("../../agent-https-CeiGBOLL.js");
10
- const require_constants$8 = require("../../constants-DNhyMkdx.js");
9
+ const require_agent_https = require("../../agent-https-DsAdFC8n.js");
10
+ const require_constants$8 = require("../../constants-Smr-sgQk.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");