@camstack/system 1.2.379 → 1.2.381

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 (102) hide show
  1. package/assets/addon-pages-aggregator/icon.svg +5 -0
  2. package/assets/addon-widgets-aggregator/icon.svg +6 -0
  3. package/assets/alert-center/icon.svg +5 -0
  4. package/assets/autotrack/icon.svg +5 -0
  5. package/assets/backup-orchestrator/icon.svg +5 -0
  6. package/assets/calendars/icon.svg +5 -0
  7. package/assets/camera-grid/icon.svg +10 -0
  8. package/assets/composer/icon.svg +7 -0
  9. package/assets/console-logging/icon.svg +4 -0
  10. package/assets/core-blocks/icon.svg +6 -0
  11. package/assets/device-manager/icon.svg +6 -0
  12. package/assets/filesystem-storage/icon.svg +6 -0
  13. package/assets/hub-forwarder/icon.svg +7 -0
  14. package/assets/keychain/icon.svg +6 -0
  15. package/assets/liveness-monitor/icon.svg +4 -0
  16. package/assets/local-auth/icon.svg +5 -0
  17. package/assets/local-network/icon.svg +7 -0
  18. package/assets/loki-logging/icon.svg +7 -0
  19. package/assets/metrics-native/icon.svg +3 -0
  20. package/assets/platform-probe/icon.svg +5 -0
  21. package/assets/remote-access-orchestrator/icon.svg +5 -0
  22. package/assets/snapshot/icon.svg +4 -0
  23. package/assets/sqlite-settings/icon.svg +5 -0
  24. package/assets/storage-orchestrator/icon.svg +8 -0
  25. package/assets/system-config/icon.svg +4 -0
  26. package/assets/winston-logging/icon.svg +6 -0
  27. package/dist/addon-runner.js +1 -1
  28. package/dist/addon-runner.mjs +1 -1
  29. package/dist/addon-utils.js +1 -1
  30. package/dist/addon-utils.mjs +1 -1
  31. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  32. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  33. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  34. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  35. package/dist/builtins/alerts/alerts.addon.js +1 -1
  36. package/dist/builtins/alerts/alerts.addon.mjs +1 -1
  37. package/dist/builtins/autotrack/index.js +1 -1
  38. package/dist/builtins/autotrack/index.mjs +1 -1
  39. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +1 -1
  40. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1 -1
  41. package/dist/builtins/calendars/calendars.addon.js +1 -1
  42. package/dist/builtins/calendars/calendars.addon.mjs +1 -1
  43. package/dist/builtins/camera-grid/index.js +1 -1
  44. package/dist/builtins/camera-grid/index.mjs +1 -1
  45. package/dist/builtins/composer/composer.addon.js +2 -2
  46. package/dist/builtins/composer/composer.addon.mjs +2 -2
  47. package/dist/builtins/console-logging/index.js +1 -1
  48. package/dist/builtins/console-logging/index.mjs +1 -1
  49. package/dist/builtins/core-blocks/core-blocks.addon.js +2 -2
  50. package/dist/builtins/core-blocks/core-blocks.addon.mjs +2 -2
  51. package/dist/builtins/device-manager/device-aggregation.d.ts +12 -0
  52. package/dist/builtins/device-manager/device-form-secrets.d.ts +25 -0
  53. package/dist/builtins/device-manager/device-manager.addon.d.ts +2 -0
  54. package/dist/builtins/device-manager/device-manager.addon.js +165 -26
  55. package/dist/builtins/device-manager/device-manager.addon.mjs +165 -26
  56. package/dist/builtins/hub-forwarder/index.js +1 -1
  57. package/dist/builtins/hub-forwarder/index.mjs +1 -1
  58. package/dist/builtins/keychain/index.js +3 -3
  59. package/dist/builtins/keychain/index.mjs +3 -3
  60. package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  61. package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  62. package/dist/builtins/local-auth/local-auth.addon.js +2 -2
  63. package/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
  64. package/dist/builtins/local-network/local-network.addon.js +1 -1
  65. package/dist/builtins/local-network/local-network.addon.mjs +1 -1
  66. package/dist/builtins/loki-logging/index.js +1 -1
  67. package/dist/builtins/loki-logging/index.mjs +1 -1
  68. package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  69. package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  70. package/dist/builtins/platform-probe/index.js +1 -1
  71. package/dist/builtins/platform-probe/index.mjs +1 -1
  72. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  73. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  74. package/dist/builtins/snapshot/index.js +1 -1
  75. package/dist/builtins/snapshot/index.mjs +1 -1
  76. package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  77. package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  78. package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +0 -0
  79. package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +0 -0
  80. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  81. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  82. package/dist/builtins/system-config/system-config.addon.js +2 -2
  83. package/dist/builtins/system-config/system-config.addon.mjs +2 -2
  84. package/dist/builtins/winston-logging/index.js +1 -1
  85. package/dist/builtins/winston-logging/index.mjs +1 -1
  86. package/dist/{child-cap-dispatch-CpjohToR.mjs → child-cap-dispatch-BTe4eKep.mjs} +1 -1
  87. package/dist/{child-cap-dispatch-CZeRUgYF.js → child-cap-dispatch-hf-Gce_4.js} +1 -1
  88. package/dist/{cluster-secret-Dg0OOOSr.js → cluster-secret-BUiG8DCo.js} +1 -1
  89. package/dist/{cluster-secret-BDue-uJj.mjs → cluster-secret-DgJTZ4qY.mjs} +1 -1
  90. package/dist/{composition-sources-CHvLMrFI.js → composition-sources-4SmsP0O4.js} +1 -1
  91. package/dist/{composition-sources-DT_uJwI3.mjs → composition-sources-CgOQVIwa.mjs} +1 -1
  92. package/dist/{dist-B9oFw2jh.mjs → dist-BC0GnGeg.mjs} +5 -1
  93. package/dist/{dist-Cc6KOdY-.js → dist-BugrtARh.js} +34 -0
  94. package/dist/{event-loop-stall-monitor-mk6WGxir.js → event-loop-stall-monitor-CnQ-K6Gn.js} +1 -1
  95. package/dist/{event-loop-stall-monitor-anUH2IE1.mjs → event-loop-stall-monitor-GgpnfAC0.mjs} +1 -1
  96. package/dist/index.js +5 -5
  97. package/dist/index.mjs +5 -5
  98. package/dist/{jwt-signing-key-C2rE3wH6.js → jwt-signing-key-CjoZcol8.js} +1 -1
  99. package/dist/{jwt-signing-key-Qhde8r82.mjs → jwt-signing-key-CsuVKA1W.mjs} +1 -1
  100. package/dist/{retired-settings-keys-YOOKLA3v.js → retired-settings-keys-DCuetwOt.js} +1 -1
  101. package/dist/{retired-settings-keys-DlZ3VV6x.mjs → retired-settings-keys-MCVhxPkJ.mjs} +1 -1
  102. package/package.json +55 -3
@@ -3,8 +3,8 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  require("../../chunk-Cek0wNdY.js");
6
- const require_dist = require("../../dist-Cc6KOdY-.js");
7
- const require_retired_settings_keys = require("../../retired-settings-keys-YOOKLA3v.js");
6
+ const require_dist = require("../../dist-BugrtARh.js");
7
+ const require_retired_settings_keys = require("../../retired-settings-keys-DCuetwOt.js");
8
8
  let zod = require("zod");
9
9
  let node_crypto = require("node:crypto");
10
10
  let _camstack_types_node = require("@camstack/types/node");
@@ -1033,6 +1033,105 @@ function mergeAggregates(parts) {
1033
1033
  return out;
1034
1034
  }
1035
1035
  //#endregion
1036
+ //#region src/builtins/device-manager/device-form-secrets.ts
1037
+ /**
1038
+ * A driver's device-settings form, kept on the keychain side of the wire
1039
+ * (D787 / D789 for device forms).
1040
+ *
1041
+ * A driver hydrates its own form from the config `loadConfig` RESOLVED for it,
1042
+ * so a camera password reaches the form as plaintext even though the stored
1043
+ * blob holds a keychain marker. This module closes that in ONE place — the
1044
+ * device-manager aggregate every device form goes through — for every driver:
1045
+ *
1046
+ * - READ ({@link viewStoredSecrets}): a form field whose key names a stored
1047
+ * MARKER (a declared `secretConfigPaths` entry, or a field secret by type)
1048
+ * is handed the marker's VIEW instead of the driver's plaintext. A value
1049
+ * that is still inline plaintext in the blob (not migrated) is left as the
1050
+ * driver hydrated it: there is nothing to reveal it by.
1051
+ * - WRITE ({@link applyDriverFormPatch}): the form sends the view back for an
1052
+ * untouched field and `{ $secretClear: true }` for an explicit clear. The
1053
+ * driver understands neither (its schema wants a string), so a view is
1054
+ * dropped from the driver's patch (KEEP — the driver still holds the
1055
+ * resolved value) and a clear reaches the driver as `''` while the stored
1056
+ * marker is removed at the keychain door. A typed value passes through and
1057
+ * the driver's own persist stores it in the keychain.
1058
+ *
1059
+ * Top-level keys only: a driver form's field key is its config key for every
1060
+ * declared device secret today (`password`, `apiKey`, `localKey`). A nested or
1061
+ * per-row path (`connection.password`, `rows[].pin`) is not mapped onto a form
1062
+ * field and keeps the driver's hydration.
1063
+ */
1064
+ function isRecord$2(value) {
1065
+ return typeof value === "object" && value !== null && !Array.isArray(value);
1066
+ }
1067
+ /** The declared paths that name a top-level config key. */
1068
+ function topLevelKeys(paths) {
1069
+ return new Set(paths.filter((p) => p.length > 0 && !p.includes(".") && !p.includes("[")));
1070
+ }
1071
+ function viewField(field, stored, declared) {
1072
+ if (!isRecord$2(field)) return field;
1073
+ const nested = field["fields"];
1074
+ if (Array.isArray(nested)) return {
1075
+ ...field,
1076
+ fields: nested.map((f) => viewField(f, stored, declared))
1077
+ };
1078
+ const tabs = field["tabs"];
1079
+ if (Array.isArray(tabs)) return {
1080
+ ...field,
1081
+ tabs: tabs.map((tab) => isRecord$2(tab) && Array.isArray(tab["fields"]) ? {
1082
+ ...tab,
1083
+ fields: tab["fields"].map((f) => viewField(f, stored, declared))
1084
+ } : tab)
1085
+ };
1086
+ const key = field["key"];
1087
+ if (typeof key !== "string" || !("value" in field)) return field;
1088
+ const marker = stored[key];
1089
+ if (!require_dist.isSecretMarker(marker)) return field;
1090
+ const secretByType = require_dist.isKeychainStoredField(field);
1091
+ if (!secretByType && !declared.has(key)) return field;
1092
+ const type = secretByType ? field["type"] : "password";
1093
+ return {
1094
+ ...field,
1095
+ type,
1096
+ value: require_dist.toSecretFieldView(marker)
1097
+ };
1098
+ }
1099
+ /**
1100
+ * The driver's hydrated sections with every keychain-stored secret replaced
1101
+ * by its view. Returns the input unchanged when the blob holds no marker.
1102
+ */
1103
+ function viewStoredSecrets(sections, stored, declaredPaths) {
1104
+ if (!Object.values(stored).some(require_dist.isSecretMarker)) return sections;
1105
+ const declared = topLevelKeys(declaredPaths);
1106
+ return sections.map((section) => ({
1107
+ ...section,
1108
+ fields: section.fields.map((f) => viewField(f, stored, declared))
1109
+ }));
1110
+ }
1111
+ /** Split a device-settings form patch (see the module doc). */
1112
+ function splitDriverFormPatch(patch) {
1113
+ const driverPatch = {};
1114
+ const clearKeys = [];
1115
+ for (const [key, value] of Object.entries(patch)) if (require_dist.isSecretClear(value)) {
1116
+ driverPatch[key] = "";
1117
+ clearKeys.push(key);
1118
+ } else if (!require_dist.isSecretMarkerLike(value)) driverPatch[key] = value;
1119
+ return {
1120
+ driverPatch,
1121
+ clearKeys
1122
+ };
1123
+ }
1124
+ /**
1125
+ * Apply a device-settings form patch: the driver gets plain values only, then
1126
+ * an explicit clear removes the stored secret at the keychain door (after the
1127
+ * driver's own persist, whose `''` the door reads as KEEP).
1128
+ */
1129
+ async function applyDriverFormPatch(input) {
1130
+ const { driverPatch, clearKeys } = splitDriverFormPatch(input.patch);
1131
+ if (Object.keys(driverPatch).length > 0) await input.applyToDriver(driverPatch);
1132
+ if (clearKeys.length > 0) await input.clearSecrets(clearKeys);
1133
+ }
1134
+ //#endregion
1036
1135
  //#region src/builtins/device-manager/stale-wrapper-activations.ts
1037
1136
  /**
1038
1137
  * A stored wrapper activation that names a cap with NO wrapper any more.
@@ -3451,6 +3550,25 @@ function refusedLinkedPicks(params) {
3451
3550
  //#endregion
3452
3551
  //#region src/builtins/device-manager/device-aggregation.ts
3453
3552
  /**
3553
+ * A driver's hydrated sections as the browser may see them: every secret the
3554
+ * keychain stores is its VIEW, never the plaintext the driver was handed by
3555
+ * `loadConfig`. An unreadable blob withholds nothing new — the non-admin
3556
+ * redaction still runs at the transport — but it is logged.
3557
+ */
3558
+ async function driverSectionsWithSecretViews(deps, deviceId, sections) {
3559
+ const door = deps.deviceFormSecrets;
3560
+ if (!door) return sections;
3561
+ try {
3562
+ return viewStoredSecrets(sections, await door.readStored(deviceId), door.declaredPaths(deviceId));
3563
+ } catch (err) {
3564
+ deps.ctx.logger.warn("device form: stored config unreadable — secret views not applied", {
3565
+ tags: { deviceId },
3566
+ meta: { error: require_dist.errMsg(err) }
3567
+ });
3568
+ return sections;
3569
+ }
3570
+ }
3571
+ /**
3454
3572
  * One process-wide cache behind every device-details fan-out.
3455
3573
  *
3456
3574
  * Module-level on purpose: the page re-polls every 2.5 s and a per-call cache
@@ -3676,16 +3794,18 @@ async function buildBaseDeviceSection(deps, deviceId) {
3676
3794
  if (!hubLocal && !nativeOwner) return null;
3677
3795
  const sections = [];
3678
3796
  const driverResult = await resolveDriverConfigSchema(deps, deviceId, hubLocal);
3679
- if (driverResult.status === "ok") for (const section of driverResult.schema.sections) sections.push({
3680
- id: section.id,
3681
- title: section.title,
3682
- tab: section.tab ?? "general",
3683
- order: section.order ?? 1,
3684
- fields: [...section.fields],
3685
- ...section.description !== void 0 ? { description: section.description } : {},
3686
- ...section.columns !== void 0 ? { columns: section.columns } : {}
3687
- });
3688
- else if (driverResult.status === "unavailable") sections.push({
3797
+ if (driverResult.status === "ok") {
3798
+ const driverSections = await driverSectionsWithSecretViews(deps, deviceId, driverResult.schema.sections);
3799
+ for (const section of driverSections) sections.push({
3800
+ id: section.id,
3801
+ title: section.title,
3802
+ tab: section.tab ?? "general",
3803
+ order: section.order ?? 1,
3804
+ fields: [...section.fields],
3805
+ ...section.description !== void 0 ? { description: section.description } : {},
3806
+ ...section.columns !== void 0 ? { columns: section.columns } : {}
3807
+ });
3808
+ } else if (driverResult.status === "unavailable") sections.push({
3689
3809
  id: "driver-settings-unavailable",
3690
3810
  title: "Driver Settings",
3691
3811
  tab: "general",
@@ -4079,19 +4199,26 @@ async function applyGroupPatch(deps, deviceId, group) {
4079
4199
  });
4080
4200
  throw new Error(`[device-manager] ${retired.join(", ")} can no longer be saved from the settings section — reload the page and use the Extensions section`);
4081
4201
  }
4082
- const driverPatch = group.patch;
4083
- if (Object.keys(driverPatch).length === 0) return;
4084
- const hubRegistry = deps.ctx.kernel?.deviceRegistry;
4085
- const found = hubRegistry ? resolveDeviceById(hubRegistry, deviceId) : null;
4086
- if (found) {
4087
- await found.device.applySettingsPatch(driverPatch);
4088
- return;
4089
- }
4090
- const ops = deps.capabilityRegistry?.getNativeProvider("device-ops", deviceId);
4091
- if (!ops) throw new Error(`[device-manager] device "${deviceId}" not found (no hub-local entry, no device-ops native provider)`);
4092
- await ops.setConfig({
4093
- deviceId,
4094
- values: driverPatch
4202
+ await applyDriverFormPatch({
4203
+ patch: group.patch,
4204
+ applyToDriver: async (driverPatch) => {
4205
+ const hubRegistry = deps.ctx.kernel?.deviceRegistry;
4206
+ const found = hubRegistry ? resolveDeviceById(hubRegistry, deviceId) : null;
4207
+ if (found) {
4208
+ await found.device.applySettingsPatch(driverPatch);
4209
+ return;
4210
+ }
4211
+ const ops = deps.capabilityRegistry?.getNativeProvider("device-ops", deviceId);
4212
+ if (!ops) throw new Error(`[device-manager] device "${deviceId}" not found (no hub-local entry, no device-ops native provider)`);
4213
+ await ops.setConfig({
4214
+ deviceId,
4215
+ values: driverPatch
4216
+ });
4217
+ },
4218
+ clearSecrets: async (keys) => {
4219
+ if (!deps.deviceFormSecrets) throw new Error(`[device-manager] cannot clear ${keys.join(", ")}: no keychain door`);
4220
+ await deps.deviceFormSecrets.clear(deviceId, keys);
4221
+ }
4095
4222
  });
4096
4223
  return;
4097
4224
  }
@@ -9717,6 +9844,8 @@ var DeviceManagerAddon = class extends require_dist.BaseAddon {
9717
9844
  removalFence = createRemovalFence();
9718
9845
  /** Declared secret config paths per device, as last registered (D783). */
9719
9846
  secretConfigPaths = createSecretConfigPathRegistry();
9847
+ /** The keychain side of driver device forms (D789), wired in onInitialize. */
9848
+ deviceFormSecrets;
9720
9849
  /** The runtime-state mirror, asserted present (constructed in onInitialize). */
9721
9850
  get stateMirror() {
9722
9851
  if (!this.stateMirrorImpl) throw new Error("DeviceManagerAddon: state mirror accessed before onInitialize");
@@ -9869,7 +9998,8 @@ var DeviceManagerAddon = class extends require_dist.BaseAddon {
9869
9998
  ctx: this.ctx,
9870
9999
  capabilityRegistry: this.capabilityRegistry,
9871
10000
  remoteNativeCaps: this.remoteNativeCaps,
9872
- bindingsDeps: this.bindingsDeps
10001
+ bindingsDeps: this.bindingsDeps,
10002
+ ...this.deviceFormSecrets ? { deviceFormSecrets: this.deviceFormSecrets } : {}
9873
10003
  };
9874
10004
  }
9875
10005
  async getDeviceAggregate(deviceId, kind) {
@@ -9965,6 +10095,15 @@ var DeviceManagerAddon = class extends require_dist.BaseAddon {
9965
10095
  return provider;
9966
10096
  }
9967
10097
  };
10098
+ this.deviceFormSecrets = {
10099
+ readStored: (deviceId) => settings.readDeviceStore(deviceId),
10100
+ declaredPaths: (deviceId) => this.secretConfigPaths.get(deviceId) ?? [],
10101
+ clear: (deviceId, keys) => persistConfig(pctx, {
10102
+ deviceId,
10103
+ data: Object.fromEntries(keys.map((key) => [key, require_dist.SECRET_CLEAR])),
10104
+ secretConfigPaths: [...new Set([...this.secretConfigPaths.get(deviceId) ?? [], ...keys])]
10105
+ })
10106
+ };
9968
10107
  try {
9969
10108
  await runLocationBackfillAtBoot(pctx, bootRows);
9970
10109
  } catch (err) {
@@ -1,5 +1,5 @@
1
- import { $ as buildStreamParamsConfigSchema, A as MINUTES_PER_DAY, C as FieldClaimModeSchema, Dn as runtimeStatePolicyFor, Hr as secretTreeFromPaths, Kr as transformSecretWrite, Kt as legacyAutoLinkIds, L as STREAM_PROFILE_META, Mn as siteZoneKey, Nt as formatMinutes, O as LocationIconIdSchema, Ot as expandContainer, Sr as collectZodSecretPaths, St as deviceStatusCapability, Tt as enumerateSchemaFields, Wr as sleep$1, Xt as locationIconKey, ar as DeviceFeature, bt as deviceManagerCapability, c as CAP_NAMES_WITH_STATUS, cn as normalizeUnit, cr as errMsg, dn as parseStreamParamsFormPatch, dt as createDeviceExtensionProvider, gr as WELL_KNOWN_TAB_MAP, gt as defineExtensionSlotProvider, kr as isDeviceConfigCap, lr as BaseAddon, o as CAMERA_SWITCH_ORDER, or as DeviceRole, qr as EventCategory, sr as DeviceType, t as ALL_CAPABILITY_DEFINITIONS, v as DAY_NAMES, w as FieldClaimSchema, wt as enumerateItemArrayFields, x as DeviceStatusSchema, xt as deviceStateCapability, yt as deviceExtensionCapability, zr as resolveSecretMarkers } from "../../dist-B9oFw2jh.mjs";
2
- import { n as purgeRetiredSettingsRows } from "../../retired-settings-keys-DlZ3VV6x.mjs";
1
+ import { $ as buildStreamParamsConfigSchema, A as MINUTES_PER_DAY, Ar as isDeviceConfigCap, C as FieldClaimModeSchema, Cr as collectZodSecretPaths, Dn as runtimeStatePolicyFor, Fr as isSecretMarkerLike, Jr as sleep$1, Kr as secretTreeFromPaths, Kt as legacyAutoLinkIds, L as STREAM_PROFILE_META, Mn as siteZoneKey, Mr as isKeychainStoredField, Nr as isSecretClear, Nt as formatMinutes, O as LocationIconIdSchema, Ot as expandContainer, Pr as isSecretMarker, Qr as EventCategory, St as deviceStatusCapability, Tt as enumerateSchemaFields, Ur as resolveSecretMarkers, Xr as toSecretFieldView, Xt as locationIconKey, Zr as transformSecretWrite, _r as WELL_KNOWN_TAB_MAP, ar as DeviceFeature, bt as deviceManagerCapability, c as CAP_NAMES_WITH_STATUS, cn as normalizeUnit, cr as errMsg, dn as parseStreamParamsFormPatch, dt as createDeviceExtensionProvider, gr as SECRET_CLEAR, gt as defineExtensionSlotProvider, lr as BaseAddon, o as CAMERA_SWITCH_ORDER, or as DeviceRole, sr as DeviceType, t as ALL_CAPABILITY_DEFINITIONS, v as DAY_NAMES, w as FieldClaimSchema, wt as enumerateItemArrayFields, x as DeviceStatusSchema, xt as deviceStateCapability, yt as deviceExtensionCapability } from "../../dist-BC0GnGeg.mjs";
2
+ import { n as purgeRetiredSettingsRows } from "../../retired-settings-keys-MCVhxPkJ.mjs";
3
3
  import { z } from "zod";
4
4
  import { randomUUID } from "node:crypto";
5
5
  import { canonicalDeviceFingerprint } from "@camstack/types/node";
@@ -1028,6 +1028,105 @@ function mergeAggregates(parts) {
1028
1028
  return out;
1029
1029
  }
1030
1030
  //#endregion
1031
+ //#region src/builtins/device-manager/device-form-secrets.ts
1032
+ /**
1033
+ * A driver's device-settings form, kept on the keychain side of the wire
1034
+ * (D787 / D789 for device forms).
1035
+ *
1036
+ * A driver hydrates its own form from the config `loadConfig` RESOLVED for it,
1037
+ * so a camera password reaches the form as plaintext even though the stored
1038
+ * blob holds a keychain marker. This module closes that in ONE place — the
1039
+ * device-manager aggregate every device form goes through — for every driver:
1040
+ *
1041
+ * - READ ({@link viewStoredSecrets}): a form field whose key names a stored
1042
+ * MARKER (a declared `secretConfigPaths` entry, or a field secret by type)
1043
+ * is handed the marker's VIEW instead of the driver's plaintext. A value
1044
+ * that is still inline plaintext in the blob (not migrated) is left as the
1045
+ * driver hydrated it: there is nothing to reveal it by.
1046
+ * - WRITE ({@link applyDriverFormPatch}): the form sends the view back for an
1047
+ * untouched field and `{ $secretClear: true }` for an explicit clear. The
1048
+ * driver understands neither (its schema wants a string), so a view is
1049
+ * dropped from the driver's patch (KEEP — the driver still holds the
1050
+ * resolved value) and a clear reaches the driver as `''` while the stored
1051
+ * marker is removed at the keychain door. A typed value passes through and
1052
+ * the driver's own persist stores it in the keychain.
1053
+ *
1054
+ * Top-level keys only: a driver form's field key is its config key for every
1055
+ * declared device secret today (`password`, `apiKey`, `localKey`). A nested or
1056
+ * per-row path (`connection.password`, `rows[].pin`) is not mapped onto a form
1057
+ * field and keeps the driver's hydration.
1058
+ */
1059
+ function isRecord$2(value) {
1060
+ return typeof value === "object" && value !== null && !Array.isArray(value);
1061
+ }
1062
+ /** The declared paths that name a top-level config key. */
1063
+ function topLevelKeys(paths) {
1064
+ return new Set(paths.filter((p) => p.length > 0 && !p.includes(".") && !p.includes("[")));
1065
+ }
1066
+ function viewField(field, stored, declared) {
1067
+ if (!isRecord$2(field)) return field;
1068
+ const nested = field["fields"];
1069
+ if (Array.isArray(nested)) return {
1070
+ ...field,
1071
+ fields: nested.map((f) => viewField(f, stored, declared))
1072
+ };
1073
+ const tabs = field["tabs"];
1074
+ if (Array.isArray(tabs)) return {
1075
+ ...field,
1076
+ tabs: tabs.map((tab) => isRecord$2(tab) && Array.isArray(tab["fields"]) ? {
1077
+ ...tab,
1078
+ fields: tab["fields"].map((f) => viewField(f, stored, declared))
1079
+ } : tab)
1080
+ };
1081
+ const key = field["key"];
1082
+ if (typeof key !== "string" || !("value" in field)) return field;
1083
+ const marker = stored[key];
1084
+ if (!isSecretMarker(marker)) return field;
1085
+ const secretByType = isKeychainStoredField(field);
1086
+ if (!secretByType && !declared.has(key)) return field;
1087
+ const type = secretByType ? field["type"] : "password";
1088
+ return {
1089
+ ...field,
1090
+ type,
1091
+ value: toSecretFieldView(marker)
1092
+ };
1093
+ }
1094
+ /**
1095
+ * The driver's hydrated sections with every keychain-stored secret replaced
1096
+ * by its view. Returns the input unchanged when the blob holds no marker.
1097
+ */
1098
+ function viewStoredSecrets(sections, stored, declaredPaths) {
1099
+ if (!Object.values(stored).some(isSecretMarker)) return sections;
1100
+ const declared = topLevelKeys(declaredPaths);
1101
+ return sections.map((section) => ({
1102
+ ...section,
1103
+ fields: section.fields.map((f) => viewField(f, stored, declared))
1104
+ }));
1105
+ }
1106
+ /** Split a device-settings form patch (see the module doc). */
1107
+ function splitDriverFormPatch(patch) {
1108
+ const driverPatch = {};
1109
+ const clearKeys = [];
1110
+ for (const [key, value] of Object.entries(patch)) if (isSecretClear(value)) {
1111
+ driverPatch[key] = "";
1112
+ clearKeys.push(key);
1113
+ } else if (!isSecretMarkerLike(value)) driverPatch[key] = value;
1114
+ return {
1115
+ driverPatch,
1116
+ clearKeys
1117
+ };
1118
+ }
1119
+ /**
1120
+ * Apply a device-settings form patch: the driver gets plain values only, then
1121
+ * an explicit clear removes the stored secret at the keychain door (after the
1122
+ * driver's own persist, whose `''` the door reads as KEEP).
1123
+ */
1124
+ async function applyDriverFormPatch(input) {
1125
+ const { driverPatch, clearKeys } = splitDriverFormPatch(input.patch);
1126
+ if (Object.keys(driverPatch).length > 0) await input.applyToDriver(driverPatch);
1127
+ if (clearKeys.length > 0) await input.clearSecrets(clearKeys);
1128
+ }
1129
+ //#endregion
1031
1130
  //#region src/builtins/device-manager/stale-wrapper-activations.ts
1032
1131
  /**
1033
1132
  * A stored wrapper activation that names a cap with NO wrapper any more.
@@ -3446,6 +3545,25 @@ function refusedLinkedPicks(params) {
3446
3545
  //#endregion
3447
3546
  //#region src/builtins/device-manager/device-aggregation.ts
3448
3547
  /**
3548
+ * A driver's hydrated sections as the browser may see them: every secret the
3549
+ * keychain stores is its VIEW, never the plaintext the driver was handed by
3550
+ * `loadConfig`. An unreadable blob withholds nothing new — the non-admin
3551
+ * redaction still runs at the transport — but it is logged.
3552
+ */
3553
+ async function driverSectionsWithSecretViews(deps, deviceId, sections) {
3554
+ const door = deps.deviceFormSecrets;
3555
+ if (!door) return sections;
3556
+ try {
3557
+ return viewStoredSecrets(sections, await door.readStored(deviceId), door.declaredPaths(deviceId));
3558
+ } catch (err) {
3559
+ deps.ctx.logger.warn("device form: stored config unreadable — secret views not applied", {
3560
+ tags: { deviceId },
3561
+ meta: { error: errMsg(err) }
3562
+ });
3563
+ return sections;
3564
+ }
3565
+ }
3566
+ /**
3449
3567
  * One process-wide cache behind every device-details fan-out.
3450
3568
  *
3451
3569
  * Module-level on purpose: the page re-polls every 2.5 s and a per-call cache
@@ -3671,16 +3789,18 @@ async function buildBaseDeviceSection(deps, deviceId) {
3671
3789
  if (!hubLocal && !nativeOwner) return null;
3672
3790
  const sections = [];
3673
3791
  const driverResult = await resolveDriverConfigSchema(deps, deviceId, hubLocal);
3674
- if (driverResult.status === "ok") for (const section of driverResult.schema.sections) sections.push({
3675
- id: section.id,
3676
- title: section.title,
3677
- tab: section.tab ?? "general",
3678
- order: section.order ?? 1,
3679
- fields: [...section.fields],
3680
- ...section.description !== void 0 ? { description: section.description } : {},
3681
- ...section.columns !== void 0 ? { columns: section.columns } : {}
3682
- });
3683
- else if (driverResult.status === "unavailable") sections.push({
3792
+ if (driverResult.status === "ok") {
3793
+ const driverSections = await driverSectionsWithSecretViews(deps, deviceId, driverResult.schema.sections);
3794
+ for (const section of driverSections) sections.push({
3795
+ id: section.id,
3796
+ title: section.title,
3797
+ tab: section.tab ?? "general",
3798
+ order: section.order ?? 1,
3799
+ fields: [...section.fields],
3800
+ ...section.description !== void 0 ? { description: section.description } : {},
3801
+ ...section.columns !== void 0 ? { columns: section.columns } : {}
3802
+ });
3803
+ } else if (driverResult.status === "unavailable") sections.push({
3684
3804
  id: "driver-settings-unavailable",
3685
3805
  title: "Driver Settings",
3686
3806
  tab: "general",
@@ -4074,19 +4194,26 @@ async function applyGroupPatch(deps, deviceId, group) {
4074
4194
  });
4075
4195
  throw new Error(`[device-manager] ${retired.join(", ")} can no longer be saved from the settings section — reload the page and use the Extensions section`);
4076
4196
  }
4077
- const driverPatch = group.patch;
4078
- if (Object.keys(driverPatch).length === 0) return;
4079
- const hubRegistry = deps.ctx.kernel?.deviceRegistry;
4080
- const found = hubRegistry ? resolveDeviceById(hubRegistry, deviceId) : null;
4081
- if (found) {
4082
- await found.device.applySettingsPatch(driverPatch);
4083
- return;
4084
- }
4085
- const ops = deps.capabilityRegistry?.getNativeProvider("device-ops", deviceId);
4086
- if (!ops) throw new Error(`[device-manager] device "${deviceId}" not found (no hub-local entry, no device-ops native provider)`);
4087
- await ops.setConfig({
4088
- deviceId,
4089
- values: driverPatch
4197
+ await applyDriverFormPatch({
4198
+ patch: group.patch,
4199
+ applyToDriver: async (driverPatch) => {
4200
+ const hubRegistry = deps.ctx.kernel?.deviceRegistry;
4201
+ const found = hubRegistry ? resolveDeviceById(hubRegistry, deviceId) : null;
4202
+ if (found) {
4203
+ await found.device.applySettingsPatch(driverPatch);
4204
+ return;
4205
+ }
4206
+ const ops = deps.capabilityRegistry?.getNativeProvider("device-ops", deviceId);
4207
+ if (!ops) throw new Error(`[device-manager] device "${deviceId}" not found (no hub-local entry, no device-ops native provider)`);
4208
+ await ops.setConfig({
4209
+ deviceId,
4210
+ values: driverPatch
4211
+ });
4212
+ },
4213
+ clearSecrets: async (keys) => {
4214
+ if (!deps.deviceFormSecrets) throw new Error(`[device-manager] cannot clear ${keys.join(", ")}: no keychain door`);
4215
+ await deps.deviceFormSecrets.clear(deviceId, keys);
4216
+ }
4090
4217
  });
4091
4218
  return;
4092
4219
  }
@@ -9712,6 +9839,8 @@ var DeviceManagerAddon = class extends BaseAddon {
9712
9839
  removalFence = createRemovalFence();
9713
9840
  /** Declared secret config paths per device, as last registered (D783). */
9714
9841
  secretConfigPaths = createSecretConfigPathRegistry();
9842
+ /** The keychain side of driver device forms (D789), wired in onInitialize. */
9843
+ deviceFormSecrets;
9715
9844
  /** The runtime-state mirror, asserted present (constructed in onInitialize). */
9716
9845
  get stateMirror() {
9717
9846
  if (!this.stateMirrorImpl) throw new Error("DeviceManagerAddon: state mirror accessed before onInitialize");
@@ -9864,7 +9993,8 @@ var DeviceManagerAddon = class extends BaseAddon {
9864
9993
  ctx: this.ctx,
9865
9994
  capabilityRegistry: this.capabilityRegistry,
9866
9995
  remoteNativeCaps: this.remoteNativeCaps,
9867
- bindingsDeps: this.bindingsDeps
9996
+ bindingsDeps: this.bindingsDeps,
9997
+ ...this.deviceFormSecrets ? { deviceFormSecrets: this.deviceFormSecrets } : {}
9868
9998
  };
9869
9999
  }
9870
10000
  async getDeviceAggregate(deviceId, kind) {
@@ -9960,6 +10090,15 @@ var DeviceManagerAddon = class extends BaseAddon {
9960
10090
  return provider;
9961
10091
  }
9962
10092
  };
10093
+ this.deviceFormSecrets = {
10094
+ readStored: (deviceId) => settings.readDeviceStore(deviceId),
10095
+ declaredPaths: (deviceId) => this.secretConfigPaths.get(deviceId) ?? [],
10096
+ clear: (deviceId, keys) => persistConfig(pctx, {
10097
+ deviceId,
10098
+ data: Object.fromEntries(keys.map((key) => [key, SECRET_CLEAR])),
10099
+ secretConfigPaths: [...new Set([...this.secretConfigPaths.get(deviceId) ?? [], ...keys])]
10100
+ })
10101
+ };
9963
10102
  try {
9964
10103
  await runLocationBackfillAtBoot(pctx, bootRows);
9965
10104
  } catch (err) {
@@ -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-Cc6KOdY-.js");
6
+ const require_dist = require("../../dist-BugrtARh.js");
7
7
  const require_formatter = require("../../formatter-DqAKDlvN.js");
8
8
  //#region src/builtins/hub-forwarder/hub-forwarder-destination.ts
9
9
  var DEFAULT_OUTBOUND_BUFFER_SIZE = 500;
@@ -1,4 +1,4 @@
1
- import { Zt as logDestinationCapability, lr as BaseAddon } from "../../dist-B9oFw2jh.mjs";
1
+ import { Zt as logDestinationCapability, lr as BaseAddon } from "../../dist-BC0GnGeg.mjs";
2
2
  import { t as formatLogLine } from "../../formatter-B7qW8bPJ.mjs";
3
3
  //#region src/builtins/hub-forwarder/hub-forwarder-destination.ts
4
4
  var DEFAULT_OUTBOUND_BUFFER_SIZE = 500;
@@ -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-Cc6KOdY-.js");
7
- const require_jwt_signing_key = require("../../jwt-signing-key-C2rE3wH6.js");
8
- const require_cluster_secret = require("../../cluster-secret-Dg0OOOSr.js");
6
+ const require_dist = require("../../dist-BugrtARh.js");
7
+ const require_jwt_signing_key = require("../../jwt-signing-key-CjoZcol8.js");
8
+ const require_cluster_secret = require("../../cluster-secret-BUiG8DCo.js");
9
9
  const require_platform_key_source = require("../../platform-key-source-Di7HrlGR.js");
10
10
  let node_crypto = require("node:crypto");
11
11
  let node_path = require("node:path");
@@ -1,6 +1,6 @@
1
- import { Dr as formatSecretScope, Gt as keychainCapability, Ir as parseSecretRef, Nr as normalizeSecretOwner, Wt as keychainAdminCapability, lr as BaseAddon, qr as EventCategory } from "../../dist-B9oFw2jh.mjs";
2
- import { r as SYSTEM_SECRET_OWNER, t as JWT_SIGNING_KEY_REF } from "../../jwt-signing-key-Qhde8r82.mjs";
3
- import { i as CLUSTER_SECRET_SETTINGS_KEY } from "../../cluster-secret-BDue-uJj.mjs";
1
+ import { Br as parseSecretRef, Gt as keychainCapability, Lr as normalizeSecretOwner, Or as formatSecretScope, Qr as EventCategory, Wt as keychainAdminCapability, lr as BaseAddon } from "../../dist-BC0GnGeg.mjs";
2
+ import { r as SYSTEM_SECRET_OWNER, t as JWT_SIGNING_KEY_REF } from "../../jwt-signing-key-CsuVKA1W.mjs";
3
+ import { i as CLUSTER_SECRET_SETTINGS_KEY } from "../../cluster-secret-DgJTZ4qY.mjs";
4
4
  import { n as getPlatformKeychainKey } from "../../platform-key-source-BWlq0jjn.mjs";
5
5
  import { createCipheriv, createDecipheriv, createHmac, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
6
6
  import * as path$1 from "node:path";
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../chunk-Cek0wNdY.js");
3
- const require_dist = require("../../dist-Cc6KOdY-.js");
3
+ const require_dist = require("../../dist-BugrtARh.js");
4
4
  //#region src/builtins/liveness-monitor/liveness-checks.ts
5
5
  var NO_DEVICES = "liveness:no-devices";
6
6
  var ALL_OFFLINE = "liveness:all-devices-offline";
@@ -1,4 +1,4 @@
1
- import { Cr as createEvent, F as RecordingStatusSchema, N as RECORDING_SOURCE_CAMSTACK_ADDON, cr as errMsg, lr as BaseAddon, qr as EventCategory } from "../../dist-B9oFw2jh.mjs";
1
+ import { F as RecordingStatusSchema, N as RECORDING_SOURCE_CAMSTACK_ADDON, Qr as EventCategory, cr as errMsg, lr as BaseAddon, wr as createEvent } from "../../dist-BC0GnGeg.mjs";
2
2
  //#region src/builtins/liveness-monitor/liveness-checks.ts
3
3
  var NO_DEVICES = "liveness:no-devices";
4
4
  var ALL_OFFLINE = "liveness:all-devices-offline";
@@ -3,8 +3,8 @@ 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-Cc6KOdY-.js");
7
- const require_jwt_signing_key = require("../../jwt-signing-key-C2rE3wH6.js");
6
+ const require_dist = require("../../dist-BugrtARh.js");
7
+ const require_jwt_signing_key = require("../../jwt-signing-key-CjoZcol8.js");
8
8
  let node_crypto = require("node:crypto");
9
9
  node_crypto = require_chunk.__toESM(node_crypto);
10
10
  let crypto$1 = require("crypto");
@@ -1,6 +1,6 @@
1
1
  import { i as __require, o as __toESM, t as __commonJSMin } from "../../chunk-CNf5ZN-e.mjs";
2
- import { Bn as userManagementCapability, J as authProviderCapability, R as ScopedTokenSchema, U as UserRecordSchema, lr as BaseAddon, r as ApiKeyRecordSchema } from "../../dist-B9oFw2jh.mjs";
3
- import { a as loadJwtSigningKey, i as getProcessJwtSigningKeyState, o as processJwtSigningKey, s as setProcessJwtSigningKey, t as JWT_SIGNING_KEY_REF } from "../../jwt-signing-key-Qhde8r82.mjs";
2
+ import { Bn as userManagementCapability, J as authProviderCapability, R as ScopedTokenSchema, U as UserRecordSchema, lr as BaseAddon, r as ApiKeyRecordSchema } from "../../dist-BC0GnGeg.mjs";
3
+ import { a as loadJwtSigningKey, i as getProcessJwtSigningKeyState, o as processJwtSigningKey, s as setProcessJwtSigningKey, t as JWT_SIGNING_KEY_REF } from "../../jwt-signing-key-CsuVKA1W.mjs";
4
4
  import * as crypto$2 from "node:crypto";
5
5
  import { createHash, randomUUID, timingSafeEqual } from "node:crypto";
6
6
  import nodeCrypto from "crypto";
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_chunk = require("../../chunk-Cek0wNdY.js");
3
- const require_dist = require("../../dist-Cc6KOdY-.js");
3
+ const require_dist = require("../../dist-BugrtARh.js");
4
4
  const require_tls = require("../../tls-CCMX7MjX.js");
5
5
  let zod = require("zod");
6
6
  let node_os = require("node:os");
@@ -1,4 +1,4 @@
1
- import { Cn as resolveHubAddressRoles, En as resolveNotificationTapAddress, Hn as validateCustomAddress, It as isAppLinkBase, Yt as localNetworkCapability, fn as pickAppLinkHub, lr as BaseAddon, nt as checkRoleAddress, qr as EventCategory, s as CAMSTACK_APP_LINK_ORIGIN, yn as resolveAppConnections, zt as isDefaultAppConnectionEndpoint } from "../../dist-B9oFw2jh.mjs";
1
+ import { Cn as resolveHubAddressRoles, En as resolveNotificationTapAddress, Hn as validateCustomAddress, It as isAppLinkBase, Qr as EventCategory, Yt as localNetworkCapability, fn as pickAppLinkHub, lr as BaseAddon, nt as checkRoleAddress, s as CAMSTACK_APP_LINK_ORIGIN, yn as resolveAppConnections, zt as isDefaultAppConnectionEndpoint } from "../../dist-BC0GnGeg.mjs";
2
2
  import { P as readLanHttpState, _ as writeExtraSans, h as readTlsMode, i as storeUploadedCertificate, j as applyLanHttp, k as DEFAULT_LAN_HTTP_PORT, m as readTlsAccessStatus, n as regenerateCertificate, p as readExtraSans, r as revertToGeneratedCertificate, t as applyCertificateToListener, u as servedHttpsLeafFingerprint, y as ensureTlsCert } from "../../tls-CJHogwTl.mjs";
3
3
  import { z } from "zod";
4
4
  import * as os from "node:os";
@@ -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-Cc6KOdY-.js");
6
+ const require_dist = require("../../dist-BugrtARh.js");
7
7
  //#region src/builtins/loki-logging/loki-payload.ts
8
8
  /**
9
9
  * Loki rejects a label name that is not a valid Prometheus label
@@ -1,4 +1,4 @@
1
- import { Zt as logDestinationCapability, lr as BaseAddon } from "../../dist-B9oFw2jh.mjs";
1
+ import { Zt as logDestinationCapability, lr as BaseAddon } from "../../dist-BC0GnGeg.mjs";
2
2
  //#region src/builtins/loki-logging/loki-payload.ts
3
3
  /**
4
4
  * Loki rejects a label name that is not a valid Prometheus label
@@ -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-Cc6KOdY-.js");
6
+ const require_dist = require("../../dist-BugrtARh.js");
7
7
  const require_proc_stat = require("../../proc-stat-DL-WUOhl.js");
8
8
  let node_fs_promises = require("node:fs/promises");
9
9
  let node_os = require("node:os");
@@ -1,4 +1,4 @@
1
- import { Cr as createEvent, Mt as foldSnapshotByFunction, _n as reducePoints, bn as resolveBucketMs, cr as errMsg, in as metricsProviderCapability, lr as BaseAddon, qr as EventCategory } from "../../dist-B9oFw2jh.mjs";
1
+ import { Mt as foldSnapshotByFunction, Qr as EventCategory, _n as reducePoints, bn as resolveBucketMs, cr as errMsg, in as metricsProviderCapability, lr as BaseAddon, wr as createEvent } from "../../dist-BC0GnGeg.mjs";
2
2
  import { a as parseProcStat, i as nodeProcReader, n as elapsedSecSince, o as parseProcStatusRss, r as lifetimeCpuPercent, t as commandFromCmdline } from "../../proc-stat-CbC55Kqi.mjs";
3
3
  import { access, readFile, readdir } from "node:fs/promises";
4
4
  import * as os from "node:os";
@@ -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-Cc6KOdY-.js");
6
+ const require_dist = require("../../dist-BugrtARh.js");
7
7
  let node_os = require("node:os");
8
8
  node_os = require_chunk.__toESM(node_os);
9
9
  let node_fs = require("node:fs");
@@ -1,5 +1,5 @@
1
1
  import { o as __toESM } from "../../chunk-CNf5ZN-e.mjs";
2
- import { An as scoreRuntimes, Ct as enumerateInferenceDevices, Tr as emitReadiness, cr as errMsg, lr as BaseAddon, mn as platformProbeCapability, qr as EventCategory } from "../../dist-B9oFw2jh.mjs";
2
+ import { An as scoreRuntimes, Ct as enumerateInferenceDevices, Er as emitReadiness, Qr as EventCategory, cr as errMsg, lr as BaseAddon, mn as platformProbeCapability } from "../../dist-BC0GnGeg.mjs";
3
3
  import * as os from "node:os";
4
4
  import * as fs from "node:fs";
5
5
  import { execFile } from "node:child_process";