@camstack/server 1.2.728 → 1.2.730

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 (114) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/agent/main.js +2 -14
  3. package/dist/api/core/cap-providers.js +0 -7
  4. package/dist/api/trpc/generated-cap-mounts.js +4 -1
  5. package/dist/api/trpc/generated-cap-routers.js +1923 -1839
  6. package/dist/boot/boot-config.js +1 -1
  7. package/dist/core/addon/addon-package.service.js +3 -105
  8. package/dist/core/addon-bridge/addon-bridge.service.js +1 -5
  9. package/dist/launcher.js +12 -124
  10. package/package.json +19 -17
  11. package/system/dist/addon-runner.js +1 -2
  12. package/system/dist/addon-runner.mjs +1 -2
  13. package/system/dist/{agent-https-B1XLr4nm.js → agent-https-C8Gz2jjS.js} +1 -1
  14. package/system/dist/{agent-https-BsedJhrb.mjs → agent-https-DZq8uf8L.mjs} +1 -1
  15. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  16. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  17. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  18. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  19. package/system/dist/builtins/alerts/alerts.addon.js +1 -1
  20. package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
  21. package/system/dist/builtins/autotrack/index.js +1 -1
  22. package/system/dist/builtins/autotrack/index.mjs +1 -1
  23. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  24. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
  25. package/system/dist/builtins/calendars/calendars.addon.js +1 -1
  26. package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
  27. package/system/dist/builtins/camera-grid/index.js +1 -1
  28. package/system/dist/builtins/camera-grid/index.mjs +1 -1
  29. package/system/dist/builtins/composer/composer.addon.js +3 -3
  30. package/system/dist/builtins/composer/composer.addon.mjs +3 -3
  31. package/system/dist/builtins/console-logging/index.js +1 -1
  32. package/system/dist/builtins/console-logging/index.mjs +1 -1
  33. package/system/dist/builtins/core-blocks/core-blocks.addon.d.ts +6 -0
  34. package/system/dist/builtins/core-blocks/core-blocks.addon.js +1361 -440
  35. package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +1360 -440
  36. package/system/dist/builtins/core-blocks/fan-presets-action-source.d.ts +35 -0
  37. package/system/dist/builtins/core-blocks/fan-presets-service.d.ts +83 -0
  38. package/system/dist/builtins/core-blocks/fan-presets-wiring.d.ts +31 -0
  39. package/system/dist/builtins/core-blocks/record-kinds.d.ts +15 -0
  40. package/system/dist/builtins/core-blocks/timed-run/timed-run-service.d.ts +84 -0
  41. package/system/dist/builtins/core-blocks/timed-run/timed-run-wiring.d.ts +21 -0
  42. package/system/dist/builtins/device-history/device-history.addon.d.ts +4 -0
  43. package/system/dist/builtins/device-history/device-history.addon.js +769 -17
  44. package/system/dist/builtins/device-history/device-history.addon.mjs +769 -17
  45. package/system/dist/builtins/device-history/runs/device-runs-provider.d.ts +7 -0
  46. package/system/dist/builtins/device-history/runs/device-runs-record-kinds.d.ts +15 -0
  47. package/system/dist/builtins/device-history/runs/device-runs-service.d.ts +42 -0
  48. package/system/dist/builtins/device-history/runs/energy-from-history.d.ts +22 -0
  49. package/system/dist/builtins/device-history/runs/run-recorder.d.ts +111 -0
  50. package/system/dist/builtins/device-history/runs/slice-readers.d.ts +9 -0
  51. package/system/dist/builtins/device-manager/device-manager.addon.js +1 -1
  52. package/system/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
  53. package/system/dist/builtins/hub-forwarder/index.js +1 -1
  54. package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
  55. package/system/dist/builtins/keychain/index.js +47 -38
  56. package/system/dist/builtins/keychain/index.mjs +47 -38
  57. package/system/dist/builtins/keychain/key-sources.d.ts +12 -7
  58. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  59. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  60. package/system/dist/builtins/local-auth/local-auth.addon.js +3 -3
  61. package/system/dist/builtins/local-auth/local-auth.addon.mjs +3 -3
  62. package/system/dist/builtins/local-network/local-network.addon.js +2 -2
  63. package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
  64. package/system/dist/builtins/loki-logging/index.js +1 -1
  65. package/system/dist/builtins/loki-logging/index.mjs +1 -1
  66. package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  67. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  68. package/system/dist/builtins/platform-probe/index.js +1 -1
  69. package/system/dist/builtins/platform-probe/index.mjs +1 -1
  70. package/system/dist/builtins/record-entries/index.js +1 -1
  71. package/system/dist/builtins/record-entries/index.mjs +1 -1
  72. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  73. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  74. package/system/dist/builtins/snapshot/index.js +1 -1
  75. package/system/dist/builtins/snapshot/index.mjs +1 -1
  76. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  77. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  78. package/system/dist/builtins/sqlite-storage/index.js +1 -1
  79. package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
  80. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +2 -2
  81. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +2 -2
  82. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  83. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  84. package/system/dist/builtins/system-config/system-config.addon.js +3 -3
  85. package/system/dist/builtins/system-config/system-config.addon.mjs +3 -3
  86. package/system/dist/builtins/winston-logging/index.js +1 -1
  87. package/system/dist/builtins/winston-logging/index.mjs +1 -1
  88. package/system/dist/{composition-sources-BjuQ3xot.mjs → composition-sources-4M_NnTnV.mjs} +1 -1
  89. package/system/dist/{composition-sources-C5r8i46e.js → composition-sources-hokiaS3J.js} +1 -1
  90. package/system/dist/{constants-Bh5wQoTg.js → constants-B0L3suFC.js} +1 -1
  91. package/system/dist/{constants-GnxjCxT3.mjs → constants-DTVU00LZ.mjs} +1 -1
  92. package/system/dist/{device-ca-OWEYAYaG.mjs → device-ca-C_y2GrU5.mjs} +2 -2
  93. package/system/dist/{device-ca-oM-nuINR.js → device-ca-DaTT1Y9v.js} +2 -2
  94. package/system/dist/{dist-Cw8KtuQY.mjs → dist-9lvgpcnm.mjs} +43394 -42706
  95. package/system/dist/{dist-B9xpybTG.js → dist-B3S0ruBa.js} +43217 -42457
  96. package/system/dist/file-host-worker.js +1 -1
  97. package/system/dist/file-host-worker.mjs +1 -1
  98. package/system/dist/{hub-mdns-ciao-BPENkOKX.js → hub-mdns-ciao-Dkw38L-g.js} +2 -2
  99. package/system/dist/{hub-mdns-ciao-C3qMZFP0.mjs → hub-mdns-ciao-xgLfZIVx.mjs} +2 -2
  100. package/system/dist/index.js +40 -186
  101. package/system/dist/index.mjs +41 -185
  102. package/system/dist/kernel/addon-installer.d.ts +9 -60
  103. package/system/dist/kernel/bootstrap-config.d.ts +3 -1
  104. package/system/dist/kernel/config-schema.d.ts +2 -11
  105. package/system/dist/kernel/fs-utils.d.ts +0 -6
  106. package/system/dist/kernel/index.d.ts +2 -3
  107. package/system/dist/{restore-archive-DJv5ATV8.mjs → restore-archive-cxnuWxQM.mjs} +1 -1
  108. package/system/dist/{restore-archive-BiN1yKZV.js → restore-archive-orP6eHBd.js} +1 -1
  109. package/system/dist/{retention-BT7TgsUn.js → retention-CB2cyW9k.js} +1 -1
  110. package/system/dist/{retention-DQje-V4I.mjs → retention-Me4u6zMp.mjs} +1 -1
  111. package/system/dist/{wal-maintenance-DM08Htuy.mjs → wal-maintenance-De7Ifvph.mjs} +0 -0
  112. package/system/dist/{wal-maintenance-BLwgOIXb.js → wal-maintenance-_PXj626-.js} +0 -0
  113. package/system/package.json +11 -2
  114. package/system/dist/kernel/workspace-detect.d.ts +0 -9
@@ -1,6 +1,6 @@
1
1
  import { i as __require } from "./chunk-CNf5ZN-e.mjs";
2
- import { Dr as isObjectInput, Ds as withoutCallerStamp, E as CatalogFileSchema, Es as userError, Go as defineRecordKinds, Hi as scopesAllowDeviceCap, Ho as createEvent$1, Hr as looseSchema, Jo as expandCapMethods, Ko as emitDownForOwnedCaps, Mo as asJsonObject$1, Ms as EventCategory$1, Ni as resolveMethodAuth, No as asNumber, Or as isVoidInput, Po as asString$1, Pr as lifecycleJobSchema, Qi as splitTranslationRef, Sr as isCollectionArrayMethod, Vi as scopesAllowAddon, Vr as logLevelAtMost, Zt as addonSettingsCapability, _r as interpolate, _s as resolveCapMount, a as AGENT_MDNS_TXT_KEYS, ai as objectInputDeclaresRequiredDeviceId, ar as extractNestedAddonId, bo as ReadinessTimeoutError, eo as CALLER_STAMPED_CAPABILITIES$1, fs as parseJsonObject, ft as LOG_LEVEL_RANK, hs as readinessKey, i as AGENT_MDNS_SERVICE_TYPE, ii as objectInputDeclaresAddonId, js as errMsg$1, kr as kebabToCamel$1, mt as METHOD_ACCESS_MAP, no as DEVICE_SETTINGS_CONTRIBUTION_METHODS, o as ALL_CAPABILITY_DEFINITIONS, oa as supportedRuntimes, ps as parseJsonUnknown, ro as DEVICE_STATUS_METHOD, to as DATAPLANE_SECRET_HEADER$1, vi as procedureAuthKey, vo as RUNTIME_DEFAULTS, xr as isArrayOutputSchema, y as CATALOG_LANGS, yo as ReadinessRegistry, ys as scopeKey } from "./dist-Cw8KtuQY.mjs";
3
- import { d as JWT_SIGNING_KEY_REF, f as JwtSigningKeyUnavailableError, g as processJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, p as SYSTEM_SECRET_OWNER, s as loadDeviceCa, u as verifyDeviceSignature, v as staticJwtSigningKey } from "./device-ca-OWEYAYaG.mjs";
2
+ import { Ao as RUNTIME_DEFAULTS, Ar as isArrayOutputSchema, Di as procedureAuthKey, Ds as readinessKey, E as CatalogFileSchema, Er as interpolate, Go as asNumber, Hi as resolveMethodAuth, Ir as isObjectInput, Ko as asString$1, Lr as isVoidInput, Mo as ReadinessTimeoutError, Rr as kebabToCamel$1, Rs as userError, Ts as parseJsonUnknown, Ur as lifecycleJobSchema, Us as errMsg$1, Wo as asJsonObject$1, Ws as EventCategory$1, Xi as scopesAllowAddon, Xr as logLevelAtMost, Zi as scopesAllowDeviceCap, Zr as looseSchema, _t as LOG_LEVEL_RANK, a as AGENT_MDNS_TXT_KEYS, es as createEvent$1, fo as CALLER_STAMPED_CAPABILITIES$1, ha as supportedRuntimes, ho as DEVICE_STATUS_METHOD, i as AGENT_MDNS_SERVICE_TYPE, in as addonSettingsCapability, is as emitDownForOwnedCaps, jo as ReadinessRegistry, jr as isCollectionArrayMethod, js as scopeKey, ks as resolveCapMount, mi as objectInputDeclaresRequiredDeviceId, mo as DEVICE_SETTINGS_CONTRIBUTION_METHODS, o as ALL_CAPABILITY_DEFINITIONS, os as expandCapMethods, pi as objectInputDeclaresAddonId, po as DATAPLANE_SECRET_HEADER$1, pr as extractNestedAddonId, rs as defineRecordKinds, sa as splitTranslationRef, ws as parseJsonObject, y as CATALOG_LANGS, yt as METHOD_ACCESS_MAP, zs as withoutCallerStamp } from "./dist-9lvgpcnm.mjs";
3
+ import { d as JWT_SIGNING_KEY_REF, f as JwtSigningKeyUnavailableError, g as processJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, p as SYSTEM_SECRET_OWNER, s as loadDeviceCa, u as verifyDeviceSignature, v as staticJwtSigningKey } from "./device-ca-C_y2GrU5.mjs";
4
4
  import { t as require_read_all_rows } from "./read-all-rows-TaPqdWNF.mjs";
5
5
  import { AlertCenterAddon } from "./builtins/alerts/alerts.addon.mjs";
6
6
  import "./builtins/alerts/index.mjs";
@@ -25,21 +25,21 @@ import { LokiDestination, LokiLoggingAddon } from "./builtins/loki-logging/index
25
25
  import NativeMetricsAddon, { a as NativeMetricsProvider, i as parseProcStatusRss, n as nodeProcReader, r as parseProcStat } from "./builtins/native-metrics/native-metrics.addon.mjs";
26
26
  import { DeviceHistoryAddon } from "./builtins/device-history/device-history.addon.mjs";
27
27
  import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./builtins/sqlite-storage/filesystem-storage.addon.mjs";
28
- import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-DM08Htuy.mjs";
28
+ import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-De7Ifvph.mjs";
29
29
  import { SqliteSettingsAddon } from "./builtins/sqlite-storage/sqlite-settings.addon.mjs";
30
30
  import { ConfigStore, DeviceStore } from "./builtins/sqlite-storage/index.mjs";
31
31
  import { StorageOrchestratorAddon, a as stripForwardedCaller, i as createHubCapForwardService, l as STORAGE_DRAIN_STATE_LEGACY, n as HUB_CAP_FWD_ACTION, o as buildStorageLocationRegistry, r as HUB_CAP_FWD_SERVICE, t as StorageOrchestratorService, u as storageOrchestratorRecordKinds } from "./builtins/storage-orchestrator/storage-orchestrator.addon.mjs";
32
32
  import "./builtins/storage-orchestrator/index.mjs";
33
- import { A as buildNameConstraintSet, B as setProcessAgentHttpsNames, C as LEAF_RENEWAL_WINDOW_DAYS, E as evaluateExistingCert, F as readNameConstraints, I as AGENT_HTTPS_NAMES_COLLECTION, L as AGENT_HTTPS_NAMES_COLUMNS, M as isLocalOnlyHostname, N as permitsIdentity, O as PERMITTED_DNS_SUFFIXES, P as permitsName, R as AgentHttpsNames, S as CA_VALIDITY_DAYS, T as SERVER_AUTH_OID, a as collectAgentNames, b as collectCertIdentity, c as installAgentHttps, d as issueAgentHttpsLeaf, f as loadAgentHttps, h as CA_COMMON_NAME, i as certificateNames, j as isConstrainedCa, k as PERMITTED_IP_RANGES, l as isContainerBridgeAddress, m as pinnedHttpsCaFingerprint, n as acceptAgentSans, o as createAgentHttpsRequest, p as pemDigest, r as agentHttpsPaths, s as describeHttpsLeaf, t as AgentHttpsInstallError, u as isPrivateAddress, w as MAX_LEAF_VALIDITY_DAYS, x as systemHostFacts, y as localCaCommonName, z as getProcessAgentHttpsNames } from "./agent-https-BsedJhrb.mjs";
34
- 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-GnxjCxT3.mjs";
33
+ import { A as buildNameConstraintSet, B as setProcessAgentHttpsNames, C as LEAF_RENEWAL_WINDOW_DAYS, E as evaluateExistingCert, F as readNameConstraints, I as AGENT_HTTPS_NAMES_COLLECTION, L as AGENT_HTTPS_NAMES_COLUMNS, M as isLocalOnlyHostname, N as permitsIdentity, O as PERMITTED_DNS_SUFFIXES, P as permitsName, R as AgentHttpsNames, S as CA_VALIDITY_DAYS, T as SERVER_AUTH_OID, a as collectAgentNames, b as collectCertIdentity, c as installAgentHttps, d as issueAgentHttpsLeaf, f as loadAgentHttps, h as CA_COMMON_NAME, i as certificateNames, j as isConstrainedCa, k as PERMITTED_IP_RANGES, l as isContainerBridgeAddress, m as pinnedHttpsCaFingerprint, n as acceptAgentSans, o as createAgentHttpsRequest, p as pemDigest, r as agentHttpsPaths, s as describeHttpsLeaf, t as AgentHttpsInstallError, u as isPrivateAddress, w as MAX_LEAF_VALIDITY_DAYS, x as systemHostFacts, y as localCaCommonName, z as getProcessAgentHttpsNames } from "./agent-https-DZq8uf8L.mjs";
34
+ 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-DTVU00LZ.mjs";
35
35
  import { $ as caFingerprintCompact, A as getProcessNodeMeshTransport, B as MESH_NODE_CERTIFICATES_COLLECTION, C as MESH_TLS_PORT_HELLO_FIELD, Ct as readOriginSetting, D as setProcessMeshTlsEnabler, Dt as readCidrSetting, E as ServiceBroker, Et as parseCidrList, F as renewMeshCertificate, G as getProcessMeshCertificateRegistry, H as MeshCertificateRegistry, I as revokeMeshCertificate, J as processMeshCrl, K as setProcessMeshCertificateRegistry, L as getProcessMeshTlsListenerState, M as isProcessVerifiedMeshPeer, N as onProcessNodeRegistered, O as dropProcessPeer, P as setProcessMeshPeerTransportLookup, Q as caFingerprint, R as openMeshTlsWhenRevocationsLoaded, S as verifyMembershipAnswer, St as parseOriginList, SystemConfigAddon, T as Errors, Tt as normalizeIp, U as RENEWAL_ABANDONED, V as MESH_NODE_CERTIFICATES_COLUMNS, W as describeMeshLeaf, X as getProcessMeshCaState, Y as MeshCaKeeper, Z as requireProcessMeshCa, _ as signPairingProof, _t as verifyAgentUiUnlockTicket, a as hubHostFromMeshAddress, at as issueMeshLeafForNode, b as MembershipResponder, bt as isInsecureOrigin, c as PAIRING_MAX_SESSIONS, ct as AGENT_DASHBOARD_ORIGINS_FIELD, d as PAIRING_PROTOCOL, dt as AGENT_UI_UNLOCK_USE, et as createMeshCsrPem, f as PAIRING_TTL_MS, ft as AGENT_UI_UNLOCK_VERSION, g as keyFingerprintShort, gt as parseAgentDashboardOrigins, h as describeCsr, ht as mintAgentUiUnlockTicket, i as AgentPairing, it as isValidAgentNodeId, j as getProcessPeerLeaf, k as emitProcessNodeRegistered, l as PAIRING_PATHS, lt as AGENT_UI_UNLOCK_TTL_MS, m as computePairingSas, mt as isAllowedAgentDashboardReturnTo, n as HubPairing, nt as generateMeshCa, o as PAIRING_CODE_DIGITS, ot as issueMeshLeafFromCsr, p as computePairingCommitment, pt as UnlockTicketJtiStore, q as MeshCrl, r as PairingHttpError, rt as generateMeshKeyPair, s as PAIRING_MAX_CODE_ATTEMPTS, st as loadMeshCa, tt as exportMeshPrivateKeyPem, u as PAIRING_PIN_DIGITS, ut as AGENT_UI_UNLOCK_TYP, v as verifyPairingProof, vt as InvalidCorsOriginError, w as TlsTcpTransporter, wt as createCidrMatcher, x as signMembershipProof, xt as normalizeOrigin, y as MEMBERSHIP_PATHS, yt as OPAQUE_ORIGIN, z as setProcessMeshTlsListenerState } from "./builtins/system-config/system-config.addon.mjs";
36
36
  import "./builtins/system-config/index.mjs";
37
37
  import { WinstonDestination, WinstonLoggingAddon } from "./builtins/winston-logging/index.mjs";
38
38
  import { C as isModelDownloaded, E as setHuggingFaceReachabilityObserver, T as revisionWeightUrl, _ as downloadFile, a as startEventLoopStallMonitor, b as fetchJson, c as createAuthenticatedFileServer, d as resolveFilePath, f as ModelDownloadService, g as deleteModelFromDisk, h as collectModelFiles, i as attributeStall, l as parseRangeHeader, m as adoptModelRevisions, n as STALL_REPORT_MS, o as createFileDataPlaneHandler, r as STALL_TICK_MS, s as contentTypeFor, t as CustomActionRegistry, u as parseTokenizedUrl, v as downloadModel, w as resolveFormatRevision, x as getModelFilePath, y as ensureModel } from "./custom-action-registry-oHl1xltx.mjs";
39
- import { A as retirePreviousLocalCa, C as checkUploadedCa, D as loadTlsCert, E as ensureTlsCert, F as closeLanHttp, I as readLanHttpState, L as registerLanHttpHandler, M as allFamiliesListenHost, N as applyLanHttp, O as reissueTlsLeaf, P as bindPendingLanHttp, S as chainsToPublicRoot, T as caReplacementMarkerFile, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, c as leafFingerprintOf, d as servedHttpsLeafFingerprint, f as prepareBootTls, g as readTlsEnabled, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, k as replaceUnconstrainedLocalCa, l as registerHttpsListener, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, p as UPLOADED_CA_FILE, r as regenerateCertificate, s as clearHttpsListener, t as createCiaoPublisher, u as reloadHttpsListener, v as splitPemCertificates, w as validateUploadedTls, x as writeTlsMode, y as writeExtraSans } from "./hub-mdns-ciao-C3qMZFP0.mjs";
39
+ import { A as retirePreviousLocalCa, C as checkUploadedCa, D as loadTlsCert, E as ensureTlsCert, F as closeLanHttp, I as readLanHttpState, L as registerLanHttpHandler, M as allFamiliesListenHost, N as applyLanHttp, O as reissueTlsLeaf, P as bindPendingLanHttp, S as chainsToPublicRoot, T as caReplacementMarkerFile, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, c as leafFingerprintOf, d as servedHttpsLeafFingerprint, f as prepareBootTls, g as readTlsEnabled, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, k as replaceUnconstrainedLocalCa, l as registerHttpsListener, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, p as UPLOADED_CA_FILE, r as regenerateCertificate, s as clearHttpsListener, t as createCiaoPublisher, u as reloadHttpsListener, v as splitPemCertificates, w as validateUploadedTls, x as writeTlsMode, y as writeExtraSans } from "./hub-mdns-ciao-xgLfZIVx.mjs";
40
40
  import { n as getPlatformKeychainKey, r as setPlatformKeychainKey, t as clearPlatformKeychainKey } from "./platform-key-source-BWlq0jjn.mjs";
41
41
  import { n as getSinglePidStats, t as getPidStats } from "./resource-monitor-Di9daRwI.mjs";
42
- import { _ as backupRecordStoresOf, c as BackupDecryptError, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, h as readBackupEncryptionHeader, l as BackupKeyFormatError, r as prepareRestoreArchive, s as SystemBackupService, t as BackupKeyRequiredError, u as BackupKeyMismatchError } from "./restore-archive-DJv5ATV8.mjs";
42
+ import { _ as backupRecordStoresOf, c as BackupDecryptError, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, h as readBackupEncryptionHeader, l as BackupKeyFormatError, r as prepareRestoreArchive, s as SystemBackupService, t as BackupKeyRequiredError, u as BackupKeyMismatchError } from "./restore-archive-cxnuWxQM.mjs";
43
43
  import { r as nodeCoralFs, t as classifyCoralAccelerator } from "./coral-accelerators-DBlgWB8k.mjs";
44
44
  import { z } from "zod";
45
45
  import * as crypto$1 from "node:crypto";
@@ -7275,19 +7275,6 @@ function isSourceNewer(packageDir) {
7275
7275
  }
7276
7276
  }
7277
7277
  /**
7278
- * Ensure a library dependency (not an addon) has a dist/ directory.
7279
- * Does NOT rebuild — in dev mode, `npm run build` should be run separately.
7280
- * Only checks that dist/ exists and has an index file.
7281
- */
7282
- function ensureLibraryBuilt(packageName, packagesDir) {
7283
- const dirName = packageName.replace("@camstack/", "");
7284
- const sourceDir = path$1.join(packagesDir, dirName);
7285
- if (!fs$1.existsSync(sourceDir)) return;
7286
- const distDir = path$1.join(sourceDir, "dist");
7287
- if (fs$1.existsSync(path$1.join(distDir, "index.js")) || fs$1.existsSync(path$1.join(distDir, "index.mjs"))) return;
7288
- console.warn(`[ensureLibraryBuilt] ${packageName} has no dist/ — run 'npm run build' first`);
7289
- }
7290
- /**
7291
7278
  * Install a single npm package into a target directory (package.json + dist/).
7292
7279
  * No validation on camstack.addons -- works for any @camstack/* package.
7293
7280
  *
@@ -8463,8 +8450,7 @@ function selectSweepableStaging(entries, inFlight, minAgeMs = STAGING_RESIDUE_MI
8463
8450
  var AddonInstaller = class AddonInstaller {
8464
8451
  addonsDir;
8465
8452
  registry;
8466
- workspaceDir;
8467
- installSource;
8453
+ bundledAddonsDir;
8468
8454
  logger;
8469
8455
  isPackageResolvable;
8470
8456
  /** Test seam — production resolves via `CAMSTACK_FRAMEWORK_DIR`. */
@@ -8487,14 +8473,12 @@ var AddonInstaller = class AddonInstaller {
8487
8473
  constructor(config, logger = noopLogger) {
8488
8474
  this.addonsDir = config.addonsDir;
8489
8475
  this.registry = config.registry;
8490
- this.workspaceDir = config.workspacePackagesDir;
8476
+ this.bundledAddonsDir = config.bundledAddonsDir;
8491
8477
  this.logger = logger;
8492
8478
  this.manifest = new AddonManifest(config.addonsDir);
8493
8479
  this.isPackageResolvable = config.isPackageResolvable;
8494
8480
  this.closureNodeModulesDir = config.closureNodeModulesDir;
8495
8481
  this.resolveLatestVersionOverride = config.resolveLatestVersion;
8496
- if (config.installSource) this.installSource = config.installSource;
8497
- else this.installSource = "npm";
8498
8482
  }
8499
8483
  /**
8500
8484
  * Where a bootstrapped npm lives when the host has none on PATH (packaged
@@ -8619,16 +8603,12 @@ var AddonInstaller = class AddonInstaller {
8619
8603
  async ensureRequiredPackages(packages) {
8620
8604
  const pkgList = packages ?? AddonInstaller.REQUIRED_PACKAGES;
8621
8605
  ensureDir(this.addonsDir);
8622
- const isLocal = this.installSource !== "npm" && this.workspaceDir != null;
8623
- this.logger.info(`Install source: ${this.installSource}${this.workspaceDir ? ` (${this.workspaceDir})` : ""}, ${pkgList.length} package(s)`);
8624
- if (isLocal && this.workspaceDir) {
8625
- ensureLibraryBuilt("@camstack/kernel", this.workspaceDir);
8626
- ensureLibraryBuilt("@camstack/types", this.workspaceDir);
8627
- }
8606
+ const isLocal = this.bundledAddonsDir != null;
8607
+ this.logger.info(`Install source: ${isLocal ? `bundle (${this.bundledAddonsDir})` : "npm"}, ${pkgList.length} package(s)`);
8628
8608
  for (const packageName of pkgList) {
8629
8609
  const addonDir = path$1.join(this.addonsDir, packageName);
8630
8610
  if (fs$1.existsSync(path$1.join(addonDir, "package.json"))) {
8631
- if (this.installSource !== "npm" || shouldSkipClosureProvidedSeed(packageName, this.isResolvableFromClosure(packageName))) {
8611
+ if (isLocal || shouldSkipClosureProvidedSeed(packageName, this.isResolvableFromClosure(packageName))) {
8632
8612
  this.logger.debug(`${packageName} — already installed, skipping`);
8633
8613
  continue;
8634
8614
  }
@@ -8881,26 +8861,12 @@ var AddonInstaller = class AddonInstaller {
8881
8861
  *
8882
8862
  * Always npm. The legacy "auto-use workspace symlink in dev" branch
8883
8863
  * was removed; local development pushes via `camstack deploy` (CLI
8884
- * tarball upload). Operators wanting to install from workspace use
8885
- * `installFromWorkspace` (explicit `'local'` codepath) instead.
8864
+ * tarball upload).
8886
8865
  */
8887
8866
  async install(packageName, version) {
8888
8867
  return this.installFromNpm(packageName, version);
8889
8868
  }
8890
8869
  /**
8891
- * Install addon from a local workspace package. Two strategies
8892
- * depending on `installSource`:
8893
- * - `'symlink'` (dev): create a directory symlink
8894
- * `addonsDir/<pkg>` → `<workspace>/packages/<pkg>`. Edits to
8895
- * the workspace are visible at the next addon load after a
8896
- * `npm run build` of that package — no copy step. Falls back
8897
- * to `'local'` if symlink creation fails (Windows w/o
8898
- * developer-mode).
8899
- * - `'local'` (default): copy `package.json` (stripped) + `dist/`
8900
- * into `addonsDir/<pkg>/`. The Electron bundled-addons path
8901
- * uses this so the runtime owns its on-disk copy.
8902
- */
8903
- /**
8904
8870
  * Re-install one addon from the running server closure.
8905
8871
  *
8906
8872
  * The closure carries a copy of every addon it declares as a dependency, and
@@ -8930,46 +8896,8 @@ var AddonInstaller = class AddonInstaller {
8930
8896
  const pkgView = readPackageJson(path$1.join(sourceDir, "package.json"));
8931
8897
  if (!pkgView) throw new Error(`Invalid package.json at ${sourceDir}`);
8932
8898
  const targetDir = path$1.join(this.addonsDir, packageName);
8933
- if (this.installSource === "symlink") try {
8934
- return await this.installSymlink(packageName, sourceDir, pkgView.raw, targetDir);
8935
- } catch (err) {
8936
- this.logger.warn(`${packageName} — symlink failed, falling back to copy: ${errMsg$1(err)}`);
8937
- }
8938
8899
  return this.installCopy(packageName, sourceDir, pkgView.raw, targetDir);
8939
8900
  }
8940
- /**
8941
- * Symlink `addonsDir/<pkg>` at the workspace source dir. Dev-only.
8942
- * After this, the AddonLoader resolves `<addonsDir>/<pkg>/dist/...`
8943
- * through the symlink straight to `packages/<pkg>/dist/...` — a fresh
8944
- * `npm run build` of the package is immediately picked up by the
8945
- * next addon load.
8946
- *
8947
- * Auto-runs `ensureBuilt` so a workspace freshly cloned (with no
8948
- * dist/ yet) still boots — same auto-build hook installCopy uses.
8949
- *
8950
- * Does NOT plant peer-dep symlinks into `<targetDir>/node_modules/`
8951
- * the way the pre-`eb96df3c` symlink mode did. Self-contained
8952
- * addons bundle their own copy of types/zod/sdk — no shared
8953
- * workspace symlinks needed.
8954
- */
8955
- async installSymlink(packageName, sourceDir, pkgData, targetDir) {
8956
- await this.ensureBuilt(packageName, sourceDir, pkgData);
8957
- fs$1.rmSync(targetDir, {
8958
- recursive: true,
8959
- force: true
8960
- });
8961
- ensureDir(path$1.dirname(targetDir));
8962
- fs$1.symlinkSync(sourceDir, targetDir, "dir");
8963
- this.manifest.upsert(packageName, {
8964
- version: asString$1(pkgData.version, "0.0.0"),
8965
- source: "local"
8966
- });
8967
- this.logger.info(`${packageName} — symlinked → ${sourceDir}`);
8968
- return {
8969
- name: asString$1(pkgData.name, packageName),
8970
- version: asString$1(pkgData.version, "0.0.0")
8971
- };
8972
- }
8973
8901
  async installCopy(packageName, sourceDir, pkgData, targetDir) {
8974
8902
  await this.ensureBuilt(packageName, sourceDir, pkgData);
8975
8903
  const distDir = path$1.join(sourceDir, "dist");
@@ -9398,7 +9326,7 @@ var AddonInstaller = class AddonInstaller {
9398
9326
  *
9399
9327
  * Steps:
9400
9328
  * 1. Rename current install dir → {addonsDir}/.backups/{name}/{ts}/
9401
- * 2. Run a fresh install (npm or local depending on installSource)
9329
+ * 2. Run a fresh install from npm
9402
9330
  * 3. Record `lastBackupDir` in the manifest entry
9403
9331
  * 4. Prune every OTHER backup of this addon — the previous one just
9404
9332
  * lost its only pointer and would otherwise be orphaned forever.
@@ -9425,15 +9353,7 @@ var AddonInstaller = class AddonInstaller {
9425
9353
  fs$1.renameSync(addonDir, backupDir);
9426
9354
  let result;
9427
9355
  try {
9428
- if (this.installSource === "local" || this.installSource === "symlink") {
9429
- const pkgDir = this.findLocalPackage(packageName);
9430
- if (pkgDir == null) throw new Error(`Local source not found for ${packageName} (installSource=${this.installSource})`);
9431
- await this.installLocal(packageName, pkgDir);
9432
- result = {
9433
- name: packageName,
9434
- version: this.manifest.get(packageName)?.version ?? current.version
9435
- };
9436
- } else result = await this.installFromNpm(packageName, version);
9356
+ result = await this.installFromNpm(packageName, version);
9437
9357
  } catch (installErr) {
9438
9358
  this.logger.error(`${packageName} — install failed, restoring backup`, { meta: { error: errMsg$1(installErr) } });
9439
9359
  try {
@@ -9857,14 +9777,14 @@ var AddonInstaller = class AddonInstaller {
9857
9777
  };
9858
9778
  }
9859
9779
  findLocalPackage(packageName) {
9860
- if (!this.workspaceDir) return null;
9780
+ if (!this.bundledAddonsDir) return null;
9861
9781
  const shortName = packageName.replace("@camstack/", "");
9862
9782
  for (const dirName of [
9863
9783
  shortName,
9864
9784
  `addon-${shortName}`,
9865
9785
  shortName.replace("addon-", "")
9866
9786
  ]) {
9867
- const candidate = path$1.join(this.workspaceDir, dirName);
9787
+ const candidate = path$1.join(this.bundledAddonsDir, dirName);
9868
9788
  try {
9869
9789
  const pkg = asJsonObject$1(parseJsonUnknown(fs$1.readFileSync(path$1.join(candidate, "package.json"), "utf-8")));
9870
9790
  if (pkg && asString$1(pkg["name"]) === packageName) return candidate;
@@ -10099,29 +10019,6 @@ function quarantineAddonResidue(addonsDir, log) {
10099
10019
  };
10100
10020
  }
10101
10021
  //#endregion
10102
- //#region src/kernel/workspace-detect.ts
10103
- /**
10104
- * Detect whether we're running inside the monorepo workspace.
10105
- * Returns the absolute path to the packages/ directory if found, otherwise null.
10106
- *
10107
- * Single source of truth — replaces identical implementations in:
10108
- * - first-boot-installer.ts
10109
- * - addon-bridge.service.ts
10110
- */
10111
- function detectWorkspacePackagesDir(startDir) {
10112
- let current = path$1.resolve(startDir);
10113
- for (let i = 0; i < 6; i++) {
10114
- current = path$1.dirname(current);
10115
- const packagesDir = path$1.join(current, "packages");
10116
- const rootPkgJson = path$1.join(current, "package.json");
10117
- if (fs$1.existsSync(packagesDir) && fs$1.existsSync(rootPkgJson)) try {
10118
- const rootPkg = JSON.parse(fs$1.readFileSync(rootPkgJson, "utf-8"));
10119
- if (rootPkg.workspaces || rootPkg.name === "camstack-server" || rootPkg.name === "camstack") return packagesDir;
10120
- } catch {}
10121
- }
10122
- return null;
10123
- }
10124
- //#endregion
10125
10022
  //#region src/kernel/restart-coordinator.ts
10126
10023
  /**
10127
10024
  * RestartCoordinator — shared primitives for the framework live-update flow.
@@ -12154,68 +12051,15 @@ var serverSchema = z.object({
12154
12051
  dataPath: z.string().default(DEFAULT_DATA_PATH)
12155
12052
  });
12156
12053
  /**
12157
- * Bootstrap-time addon configuration — read PURELY from YAML, before the
12158
- * kernel can talk to the settings-store. Every field is optional.
12159
- */
12160
- var bootstrapAddonsSchema = z.object({
12161
- /**
12162
- * How the launcher provisions REQUIRED_PACKAGES into `data/addons/`
12163
- * on startup.
12164
- *
12165
- * - `'npm'` — pull from the npm registry (production default).
12166
- * - `'local'` — copy `packages/<X>/` from the workspace into
12167
- * `data/addons/<X>/`. Use for the Electron-
12168
- * packaged bundle and the e2e harness.
12169
- * - `'symlink'` — point `data/addons/<X>` at the workspace source
12170
- * dir via a directory symlink. Dev-only: a
12171
- * workspace rebuild (`npm run build -w <X>`) is
12172
- * immediately reflected at the next addon load,
12173
- * no copy step. Falls back to `'local'` on
12174
- * platforms that reject symlink creation (Windows
12175
- * without developer-mode).
12176
- *
12177
- * The `CAMSTACK_INSTALL_SOURCE` env var, when set, wins over this
12178
- * field. Leave undefined to keep the launcher's default behaviour
12179
- * (npm when no workspace, local when a bundled addons dir is
12180
- * present, …).
12181
- */
12182
- installSource: z.enum([
12183
- "npm",
12184
- "local",
12185
- "symlink"
12186
- ]).optional(),
12187
- /**
12188
- * Override the kernel's hard-coded `AddonInstaller.REQUIRED_PACKAGES`.
12189
- * Passing an array here REPLACES the default list entirely — useful
12190
- * for stripped-down deployments (only the bundle of addons the
12191
- * operator actually wants) and for forcing a different storage
12192
- * backend at first boot.
12193
- *
12194
- * Leave undefined to use the kernel-shipped defaults.
12195
- */
12196
- requiredAddons: z.array(z.string()).optional()
12197
- });
12198
- /**
12199
- * Where the keychain's master key lives (D788). config.yaml ONLY: no env var
12200
- * maps here, and the settings store may not answer it
12201
- * (`BOOTSTRAP_OWNED_SECTIONS`). Absent → the desktop OS keychain when the hub
12202
- * runs inside the desktop app, else `<dataDir>/.keychain/master.key`.
12054
+ * Bootstrap-time addon configuration. Nothing is read from it: the first-boot
12055
+ * addon set always comes from the package (the server's own addon-* deps on a
12056
+ * hub, `camstack.agentBootstrapAddons` on an agent). A retired key is stripped.
12203
12057
  */
12204
- var keychainSchema = z.object({
12205
- /** A file holding 32 random bytes, base64 (or hex). Keep it OFF the data volume. */
12206
- keyFile: z.string().min(1).optional(),
12207
- /**
12208
- * The key being rotated away from — consulted only to UNLOCK, so a move to a
12209
- * new key file is: new file, old one here, restart, rotate, remove this.
12210
- */
12211
- previousKeyFile: z.string().min(1).optional()
12212
- });
12058
+ var bootstrapAddonsSchema = z.object({});
12213
12059
  var bootstrapSchema = z.object({
12214
12060
  server: serverSchema.default(serverSchema.parse({})),
12215
- /** Install source and the required-addon override (read by the launcher). */
12216
- bootstrap: bootstrapAddonsSchema.default(bootstrapAddonsSchema.parse({})),
12217
- /** Keychain master-key location (config.yaml only). */
12218
- keychain: keychainSchema.default({})
12061
+ /** The required-addon override (read by the launcher). */
12062
+ bootstrap: bootstrapAddonsSchema.default(bootstrapAddonsSchema.parse({}))
12219
12063
  });
12220
12064
  //#endregion
12221
12065
  //#region ../../node_modules/js-yaml/dist/js-yaml.mjs
@@ -14572,9 +14416,22 @@ var ENV_VAR_MAP = {
14572
14416
  * `main.ts` and `ConfigManager` come through here, so a key is
14573
14417
  * read in one place. Keys the schema does not name are stripped, not read.
14574
14418
  */
14575
- function loadBootstrapConfig(configPath) {
14576
- const merged = applyEnvOverrides(asJsonObject(loadYaml(configPath)) ?? {});
14577
- return bootstrapSchema.parse(merged);
14419
+ function loadBootstrapConfig(configPath, options = {}) {
14420
+ const raw = asJsonObject(loadYaml(configPath)) ?? {};
14421
+ if (options.warnRetiredKeys === true) warnRetiredYamlKeys(raw);
14422
+ return bootstrapSchema.parse(applyEnvOverrides(raw));
14423
+ }
14424
+ /**
14425
+ * A yaml key that no longer exists is stripped by the schema; this names it
14426
+ * once so an operator who still carries it is told. Addons always come from
14427
+ * npm — a workspace build reaches a node through `camstack deploy`.
14428
+ */
14429
+ function warnRetiredYamlKeys(raw) {
14430
+ const section = raw["bootstrap"];
14431
+ if (isRecord$2(section) && "installSource" in section) console.warn("[Phase1] WARN bootstrap.installSource ignored — addons always install from npm; a workspace build reaches a node through `camstack deploy`. Remove the key.");
14432
+ if (isRecord$2(section) && "requiredAddons" in section) console.warn("[Phase1] WARN bootstrap.requiredAddons ignored — the first-boot addon set always comes from the server package. Remove the key.");
14433
+ const keychain = raw["keychain"];
14434
+ if (isRecord$2(keychain) && ("keyFile" in keychain || "previousKeyFile" in keychain)) console.warn("[Phase1] WARN keychain.keyFile / keychain.previousKeyFile ignored — the external master key is a fixed mounted path: mount the file at /run/secrets/camstack-master-key (the key being rotated away from at /run/secrets/camstack-master-key.previous). Remove the keys.");
14578
14435
  }
14579
14436
  /**
14580
14437
  * Deep-set a value in a nested plain object using a dot-notation path.
@@ -14707,8 +14564,7 @@ function createStoreSettingsView(addonId, cm) {
14707
14564
  var BOOTSTRAP_OWNED_SECTIONS = new Set([
14708
14565
  "server",
14709
14566
  "auth",
14710
- "bootstrap",
14711
- "keychain"
14567
+ "bootstrap"
14712
14568
  ]);
14713
14569
  /** The only keys under a bootstrap-owned section the store may answer. */
14714
14570
  var STORE_READABLE_BOOTSTRAP_KEYS = new Set([
@@ -28153,4 +28009,4 @@ function resetCatalogRegistryForTests() {
28153
28009
  }
28154
28010
  //#endregion
28155
28011
  var readAllRows = import_read_all_rows.readAllRows;
28156
- export { ADDON_VERSION_REASON_HUB, ADDON_VERSION_REASON_REGISTRY_LATEST, AGENT_CAP_FWD_ACTION, AGENT_CAP_FWD_SERVICE, AGENT_DASHBOARD_ORIGINS_FIELD, AGENT_HTTPS_NAMES_COLLECTION, AGENT_HTTPS_NAMES_COLUMNS, AGENT_MAIN_HEAP_WATCH_LABEL, AGENT_READINESS_SERVICE_NAME, AGENT_UI_UNLOCK_TTL_MS, AGENT_UI_UNLOCK_TYP, AGENT_UI_UNLOCK_USE, AGENT_UI_UNLOCK_VERSION, ALL_CAPABILITY_DEFINITIONS, ARRAY_BUFFER_CENSUS_COOLDOWN_MS, ARRAY_BUFFER_CENSUS_SUSTAIN_MS, ARRAY_BUFFER_CENSUS_THRESHOLD_MB, ARRAY_BUFFER_RELEASE_MIN_DROP_RATIO, AddonApiFactory, AddonDepsManager, AddonEngineManager, AddonHealthMonitor, AddonInstaller, AddonLoader, AddonManifest, AddonRefusedError, AddonRouteRegistry, AgentHttpsInstallError, AgentHttpsNames, AgentMdnsAdvertiser, AgentMeshIdentityGate, AgentPairing, AlertCenterAddon, AuthAuditLog, AuthManager, BackupDecryptError, BackupKeyFormatError, BackupKeyMismatchError, BackupKeyRequiredError, CAP_ACTION_OVERFLOW_LABEL, CAP_ACTION_UNLABELLED, CAP_METHOD_NOT_IMPLEMENTED, CA_COMMON_NAME, CA_VALIDITY_DAYS, CORE_CAP_SERVICE_NAME, CalendarsAddon, CapRouteError, CapRouteResolver, CapUsageRegistry, CapabilityHandle, CapabilityRegistry, CapabilityUnavailableError, CatalogRegistry, ClusterNodeHistoryBodySchema, ClusterNodeTombstoneBodySchema, ComposerAddon, ConfigManager, ConfigStore, ConsoleDestination, ConsoleLoggingAddon, CoreBlocksAddon, CustomActionRegistry, DECISIVE_HEAP_SPACES, DEFAULT_DATA_PATH, DEFAULT_HUB_TLS_TCP_PORT, DEFAULT_LAN_HTTP_PORT, DEFAULT_LOG_LEVEL, DEVICE_CA_KEY_REF, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATUS_METHOD, DataPlaneRegistry, DeviceCaStore, DeviceCredentialManager, DeviceHistoryAddon, DeviceManagerAddon, DeviceRegistry, DeviceStore, EMPTY_CAP_ACTION_READING, EMPTY_SOCKET_DIRECTION, EMPTY_SOCKET_PLANE_BASELINE, EVENT_PLANE_TOP_N, EVENT_TOPIC_PREFIX, EngineManagerResolver, EventBus, FIRST_BOOT_ADMIN_PASSWORD, FIRST_BOOT_ADMIN_USERNAME, FeatureManager, FilesystemStorageAddon, FilesystemStorageProvider, FrameDecoder, FsStorageBackend, GET_STATUS_METHOD, HEALTH_MONITOR_GRACE_PERIOD_MS, HEALTH_MONITOR_RETRY_INTERVALS_MS, HEALTH_MONITOR_TICK_MS, HEAP_RECLAIM_MIN_INTERVAL_MS, HEAP_RECLAIM_STEADY_STATE_INTERVAL_MS, HEAP_RECLAIM_TRIGGER_MB, HEAP_SPACE_REPORT_MIN_MB, HEAP_WATCH_INTERVAL_MS, HEAP_WATCH_WARN_RATIO, HUB_CAP_FWD_ACTION, HUB_CAP_FWD_SERVICE, HUB_MAIN_HEAP_WATCH_LABEL, HUB_MAIN_RSS_BUDGET_MB, HUB_RSS_BUDGET_ENV, HubForwarderAddon, HubForwarderDestination, HubLogForwarder, HubNodeRegistry, HubPairing, INFRA_CAPABILITIES, INTEGRATIONS_LEGACY, INTEGRATION_SETTINGS_LEGACY, IntegrationRegistry, InvalidCorsOriginError, JWT_SIGNING_KEY_REF, JobJournal, JwtSigningKeyUnavailableError, LEAF_RENEWAL_WINDOW_DAYS, LifecycleJobEngine, LifecycleStateMachine, LivenessMonitorAddon, LocalAuthAddon, LocalChildClient, LocalChildRegistry, LogManager, LogRingBuffer, LoggingGate, LoginSessionManager, LokiDestination, LokiLoggingAddon, MAX_CAP_ACTIONS_PER_PEER, MAX_LEAF_VALIDITY_DAYS, MEMBERSHIP_PATHS, MESH_ACTION_FORBIDDEN_TYPE, MESH_CA_FIELD, MESH_CA_KEY_REF, MESH_CA_SETTINGS_KEY, MESH_NODE_CERTIFICATES_COLLECTION, MESH_NODE_CERTIFICATES_COLUMNS, MESH_NODE_UNAUTHENTICATED_TYPE, MESH_QUEUE_TOP_N, MESH_TLS_PORT_HELLO_FIELD, METHOD_ACCESS_MAP, MembershipResponder, MeshCaKeeper, MeshCertificateRegistry, MeshCrl, MeshIdentityGate, ModelDownloadService, NATIVE_PROVIDER_SERVICE_INFIX, NATIVE_SCAN_DEPTH, NativeMetricsAddon, NativeMetricsProvider, NetworkQualityTracker, NotificationService, OPAQUE_ORIGIN, OUTBOUND_QUEUE_COOLDOWN_MS, OUTBOUND_QUEUE_SUSTAIN_MS, OUTBOUND_QUEUE_THRESHOLD_BYTES, PAIRING_CODE_DIGITS, PAIRING_MAX_CODE_ATTEMPTS, PAIRING_MAX_SESSIONS, PAIRING_PATHS, PAIRING_PIN_DIGITS, PAIRING_PROTOCOL, PAIRING_TTL_MS, PARENT_ROUTED_PROVIDER_ADDON_ID, PERMITTED_DNS_SUFFIXES, PERMITTED_IP_RANGES, PREVIOUS_LEAF_GRACE_MS, PYTHON_VERSION, PairingHttpError, PeerAnsweredError, PipelineRunner, PipelineValidator, PythonEnvManager, QUARANTINE_DIRNAME, REFRESH_TOKEN_PREFIX, RENEWAL_ABANDONED, RESTART_MARKER_FILE, RSS_BUDGET_REANNOUNCE_MIN_MS, RSS_BUDGET_RELEASE_RATIO, RUNNER_HEAP_WATCH_INTERVAL_MS, RUNNER_RSS_BUDGET_ENV, RUNTIME_DEFAULTS, ReadinessRegistry, ReadinessTimeoutError, RecordsEngine, ReplEngine, RingBuffer, SERVER_AUTH_OID, SERVER_NAMESPACE, SOCKET_PLANE_TOP_N, SOCKET_QUEUE_TOP_N, STALL_REPORT_MS, STALL_TICK_MS, STORAGE_DRAIN_STATE_LEGACY, STORE_READABLE_BOOTSTRAP_KEYS, SYSTEM_SECRET_OWNER, ScopedLogger, SettingsReadUnavailableError, SocketChannel, SqliteSettingsAddon, SqliteSettingsBackend, StagingArea, StorageLocationManager, StorageManager, StorageOrchestratorAddon, StorageOrchestratorService, SystemBackupService, SystemConfigAddon, SystemEventBus, TRADITIONAL_NATIVE_PACKAGES, TlsTcpTransporter, ToastService, UDS_NO_ROUTE_PREFIX, UNCLAIMED, UPLOADED_CA_FILE, USER_MANAGEMENT_INTERNAL, UdsLocalTransportClient, UdsLocalTransportServer, UnlockTicketJtiStore, UserManager, WinstonDestination, WinstonLoggingAddon, ZERO_LOOP_DELAY, __resetCapUsageRegistryForTests, __resetLoggingGateForTests, acceptAgentSans, adaptBrokerToCluster, addonSettingsCapability, adoptModelRevisions, afterWorkerOnlineAnnounce, agentHttpsPaths, allFamiliesListenHost, answerClaimedGetStatus, answerDeviceCallRedirect, applyCertificateToListener, applyLanHttp, asBrokerLike, attachUserManagementInternal, attributeStall, backupOrchestratorRecordKinds, backupRecordStoresOf, bareAddonOf, bindPendingLanHttp, bootstrapSchema, brokerCallForCap, brokerTransportLink, buildAgentAnnouncement, buildBinaryPath, buildCapRouters, buildHeapSample, buildLinkChain, buildNameConstraintSet, buildNativeCapProxy, buildNodeManifest, buildNpmChildEnv, buildStorageLocationRegistry, buildTransporter, builderMountedCapNames, caFingerprint, caFingerprintCompact, caReplacementMarkerFile, callRegisterNodeWithRetry, callWithServiceDiscovery, canServeDataPlane, capActionLabel, capActionName, capActionSuffix, capBareAction, capServiceName, catalogNamespaceOf, certificateNames, chainsToPublicRoot, checkUploadedCa, classifyAddonDir, classifyCapRoute, clearHttpsListener, clearPendingRestart, clearPlatformKeychainKey, closeLanHttp, clusterAgentRecordKinds, clusterEventTopic, clusterNodeHistoryRecordKind, clusterNodeTombstoneRecordKind, collectAgentNames, collectCertIdentity, collectModelFiles, compileLogFilter, computePairingCommitment, computePairingSas, connectBrokerTransport, contentTypeFor, copyDirRecursive, copyExtraFileDirs, createAddonContext, createAddonDataPlaneFacility, createAddonPeerBytesFacility, createAddonService, createAgentEventScope, createAgentHttpsRequest, createAgentTransport, createArrayBufferCensusGate, createAuthenticatedFileServer, createBroker, createBrokerDeviceManagerApi, createCapActionCensus, createCiaoPublisher, createCidrMatcher, createCoreCapService, createCoreCatalogRegistry, createDeferredHeapWatchSink, createDoorSettingsView, createEventPlaneMeter, createEventPlaneReader, createFileDataPlaneHandler, createHubCapForwardService, createHubService, createInspectorArrayBufferCensus, createKernelHwAccel, createKernelInferenceEngine, createLocalTransport, createLoopDelayMeter, createMeshAccessMiddleware, createMeshCsrPem, createMeshQueueReader, createOutboundQueueGate, createParentUnownedCallHandler, createProcessService, createReadinessService, createReadinessServiceForRegistry, createScopedProcessManager, createSocketDirectionCounters, createSocketPlaneMeter, createSocketPlaneReader, createStreamProbeBrokerService, createUdsAddonContext, createUdsEventBridge, createUdsEventBus, createUdsLogger, createUdsLoggerWithControl, createV8Reclaimer, currentBrokerTransporter, decideAddonVersionMove, deleteModelFromDisk, deriveAgentListenPort, describeCsr, describeHttpsLeaf, describeMeshLeaf, describeProviderKindDrift, describeRss, detectWorkspacePackagesDir, deviceCapResolverLink, deviceOfGetStatus, diffCapActionCensus, diffEventPlane, diffSocketPlane, disconnectBrokerTransport, downloadBinary, downloadFile, downloadModel, dropProcessPeer, emitDownForOwnedCaps, emitHeapDiagnosticReport, emitProcessNodeRegistered, encodeFrame, ensureAddonNativePrebuilds, ensureBinary, ensureDir, ensureFfmpeg, ensureLibraryBuilt, ensureModel, ensureNativePrebuilds, ensurePython, ensureTlsCert, evaluateExistingCert, expandCapMethods, exportMeshPrivateKeyPem, fetchJson, filterIsEmpty, findAddonRefusal, findInPath, formatArrayBufferCensus, formatEventPlane, formatHeapSpaces, formatLogLine, formatMeshQueue, formatOutboundQueueVerdict, formatSocketPlane, generateBackupKeyPair, generateDeviceCa, generateMeshCa, generateMeshKeyPair, getBrokerEventBus, getBrokerTlsTransporter, getCapUsageRegistry, getCatalogRegistry, getFfmpegDownloadUrl, getLocalEventInterest, getLoggingGate, getModelFilePath, getMoleculerEventStats, getOrInitReadinessRegistry, getOrInitReadinessRegistryForClient, getPidStats, getPlatformInfo, getPlatformKeychainKey, getProcessAgentHttpsNames, getProcessJwtSigningKeyState, getProcessMeshCaState, getProcessMeshCertificateRegistry, getProcessMeshTlsListenerState, getProcessNodeMeshTransport, getProcessPeerLeaf, getPythonDownloadUrl, getRestartMarkerPath, getSinglePidStats, getUserManagementInternal, getWorkerDeviceRegistry, hasDotNode, heapSpaceField, hostNodeIdOf, hubHostFromMeshAddress, hubMainRssBudget, hubServerVersionOf, installAgentHttps, installBrokerTransporter, installManifestNativeDeps, installManifestPythonDeps, installManifestSystemDeps, installPackageFromNpm, installPythonPackages, installPythonRequirements, integrationRegistryRecordKinds, ipcParentLink, isAddonDeploySource, isAllowedAgentDashboardReturnTo, isArrayBufferCensusReport, isArrayOutputSchema, isCollectionArrayMethod, isConstrainedCa, isContainerBridgeAddress, isCredentialKeyName, isInfraCapability, isInsecureOrigin, isInstalledTransporter, isLocalOnlyHostname, isModelDownloaded, isPeerEventPacket, isPrivateAddress, isProcessVerifiedMeshPeer, isRemoteForbiddenAction, isRemoteForbiddenOnAgent, isSettingsReadUnavailable, isSourceNewer, isValidAgentNodeId, isolatedBuiltinPhase, issueAgentHttpsLeaf, issueDeviceLeaf, issueMeshLeafForNode, issueMeshLeafFromCsr, keyFingerprintShort, leafFingerprintOf, levelRank, lineContainsText, lineMatches, loadAgentHttps, loadBootstrapConfig, loadDeviceCa, loadMeshCa, loadTlsCert, localCaCommonName, localEndpointPath, localProviderLink, localSupportedPythonRuntimes, mapSignalsToInferenceHardware, meshErrorType, mintAgentUiUnlockTicket, mountNativeCapService, nextRssBudgetState, normalizeIp, normalizeOrigin, onLocalEventInterestChange, onProcessNodeRegistered, onSessionsRevoked, openMeshTlsWhenRevocationsLoaded, originNodeOf, overlayGetStatus, parseAgentDashboardOrigins, parseCapAction, parseCidrList, parseOriginList, parseRangeHeader, parseRssBudgetMb, parseTokenExpiry, parseTokenizedUrl, partitionIsolatedBuiltinIds, pemDigest, permitsIdentity, permitsName, pinnedHttpsCaFingerprint, preferencesLimitReasonOf, prepareBootTls, prepareRestoreArchive, probePlatform, processJwtSigningKey, processMeshCrl, proxyToUpstream, quarantineAddonResidue, readAllRows, readBackupEncryptionHeader, readCidrSetting, readExtraSans, readHeapSpaces, readLanHttpState, readNameConstraints, readOriginSetting, readPendingRestart, readSocketQueues, readTlsAccessStatus, readTlsEnabled, readTlsMode, readinessKey, reclaimIntervalMs, recordSocketFrame, redactLogEntry, redactLogMeta, redactLogText, regenerateCertificate, registerEventBusService, registerHttpsListener, registerLanHttpHandler, reissueTlsLeaf, reloadHttpsListener, renewMeshCertificate, replaceUnconstrainedLocalCa, requireProcessMeshCa, resetCatalogRegistryForTests, resolveFilePath, resolveFormatRevision, resolveHwAccel, resolveNpmInvocation, retirePreviousLocalCa, revertToGeneratedCertificate, revisionWeightUrl, revokeMeshCertificate, runHubAddonBoot, runNpm, sampleSocketDirection, scheduleSelfRestart, scopeKey, scopesAllowAddon, scopesAllowDeviceCap, selectAddonResidue, selectReportedSpaces, serializeTypedArrays, servedHttpsLeafFingerprint, setHubConnected, setHuggingFaceReachabilityObserver, setNodeEventInterest, setPlatformKeychainKey, setProcessAgentHttpsNames, setProcessMeshCertificateRegistry, setProcessMeshPeerTransportLookup, setProcessMeshTlsEnabler, setProcessMeshTlsListenerState, setWrapperActive, shouldReclaim, signMembershipProof, signPairingProof, signalAllRunnerGroups, socketDirectionBytes, socketDirectionMessages, splitPemCertificates, stampCallerAddonId, startEventLoopStallMonitor, startHeapWatch, startRunnerHeapWatch, staticJwtSigningKey, storageOrchestratorRecordKinds, storeMayAnswer, storeUploadedCertificate, strandedMb, stripCamstackDeps, stripForgedIdentity, stripForwardedCaller, subscribePassthrough, systemHostFacts, udsChildLogToWorkerEntry, useStoredUploadedCertificate, validateProviderRegistrations, validateUploadedTls, verifyAgentUiUnlockTicket, verifyDeviceLeaf, verifyDeviceSignature, verifyMembershipAnswer, verifyPairingProof, waitUntilReady, writeExtraSans, writePendingRestart, writeTlsEnabled, writeTlsMode };
28012
+ export { ADDON_VERSION_REASON_HUB, ADDON_VERSION_REASON_REGISTRY_LATEST, AGENT_CAP_FWD_ACTION, AGENT_CAP_FWD_SERVICE, AGENT_DASHBOARD_ORIGINS_FIELD, AGENT_HTTPS_NAMES_COLLECTION, AGENT_HTTPS_NAMES_COLUMNS, AGENT_MAIN_HEAP_WATCH_LABEL, AGENT_READINESS_SERVICE_NAME, AGENT_UI_UNLOCK_TTL_MS, AGENT_UI_UNLOCK_TYP, AGENT_UI_UNLOCK_USE, AGENT_UI_UNLOCK_VERSION, ALL_CAPABILITY_DEFINITIONS, ARRAY_BUFFER_CENSUS_COOLDOWN_MS, ARRAY_BUFFER_CENSUS_SUSTAIN_MS, ARRAY_BUFFER_CENSUS_THRESHOLD_MB, ARRAY_BUFFER_RELEASE_MIN_DROP_RATIO, AddonApiFactory, AddonDepsManager, AddonEngineManager, AddonHealthMonitor, AddonInstaller, AddonLoader, AddonManifest, AddonRefusedError, AddonRouteRegistry, AgentHttpsInstallError, AgentHttpsNames, AgentMdnsAdvertiser, AgentMeshIdentityGate, AgentPairing, AlertCenterAddon, AuthAuditLog, AuthManager, BackupDecryptError, BackupKeyFormatError, BackupKeyMismatchError, BackupKeyRequiredError, CAP_ACTION_OVERFLOW_LABEL, CAP_ACTION_UNLABELLED, CAP_METHOD_NOT_IMPLEMENTED, CA_COMMON_NAME, CA_VALIDITY_DAYS, CORE_CAP_SERVICE_NAME, CalendarsAddon, CapRouteError, CapRouteResolver, CapUsageRegistry, CapabilityHandle, CapabilityRegistry, CapabilityUnavailableError, CatalogRegistry, ClusterNodeHistoryBodySchema, ClusterNodeTombstoneBodySchema, ComposerAddon, ConfigManager, ConfigStore, ConsoleDestination, ConsoleLoggingAddon, CoreBlocksAddon, CustomActionRegistry, DECISIVE_HEAP_SPACES, DEFAULT_DATA_PATH, DEFAULT_HUB_TLS_TCP_PORT, DEFAULT_LAN_HTTP_PORT, DEFAULT_LOG_LEVEL, DEVICE_CA_KEY_REF, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATUS_METHOD, DataPlaneRegistry, DeviceCaStore, DeviceCredentialManager, DeviceHistoryAddon, DeviceManagerAddon, DeviceRegistry, DeviceStore, EMPTY_CAP_ACTION_READING, EMPTY_SOCKET_DIRECTION, EMPTY_SOCKET_PLANE_BASELINE, EVENT_PLANE_TOP_N, EVENT_TOPIC_PREFIX, EngineManagerResolver, EventBus, FIRST_BOOT_ADMIN_PASSWORD, FIRST_BOOT_ADMIN_USERNAME, FeatureManager, FilesystemStorageAddon, FilesystemStorageProvider, FrameDecoder, FsStorageBackend, GET_STATUS_METHOD, HEALTH_MONITOR_GRACE_PERIOD_MS, HEALTH_MONITOR_RETRY_INTERVALS_MS, HEALTH_MONITOR_TICK_MS, HEAP_RECLAIM_MIN_INTERVAL_MS, HEAP_RECLAIM_STEADY_STATE_INTERVAL_MS, HEAP_RECLAIM_TRIGGER_MB, HEAP_SPACE_REPORT_MIN_MB, HEAP_WATCH_INTERVAL_MS, HEAP_WATCH_WARN_RATIO, HUB_CAP_FWD_ACTION, HUB_CAP_FWD_SERVICE, HUB_MAIN_HEAP_WATCH_LABEL, HUB_MAIN_RSS_BUDGET_MB, HUB_RSS_BUDGET_ENV, HubForwarderAddon, HubForwarderDestination, HubLogForwarder, HubNodeRegistry, HubPairing, INFRA_CAPABILITIES, INTEGRATIONS_LEGACY, INTEGRATION_SETTINGS_LEGACY, IntegrationRegistry, InvalidCorsOriginError, JWT_SIGNING_KEY_REF, JobJournal, JwtSigningKeyUnavailableError, LEAF_RENEWAL_WINDOW_DAYS, LifecycleJobEngine, LifecycleStateMachine, LivenessMonitorAddon, LocalAuthAddon, LocalChildClient, LocalChildRegistry, LogManager, LogRingBuffer, LoggingGate, LoginSessionManager, LokiDestination, LokiLoggingAddon, MAX_CAP_ACTIONS_PER_PEER, MAX_LEAF_VALIDITY_DAYS, MEMBERSHIP_PATHS, MESH_ACTION_FORBIDDEN_TYPE, MESH_CA_FIELD, MESH_CA_KEY_REF, MESH_CA_SETTINGS_KEY, MESH_NODE_CERTIFICATES_COLLECTION, MESH_NODE_CERTIFICATES_COLUMNS, MESH_NODE_UNAUTHENTICATED_TYPE, MESH_QUEUE_TOP_N, MESH_TLS_PORT_HELLO_FIELD, METHOD_ACCESS_MAP, MembershipResponder, MeshCaKeeper, MeshCertificateRegistry, MeshCrl, MeshIdentityGate, ModelDownloadService, NATIVE_PROVIDER_SERVICE_INFIX, NATIVE_SCAN_DEPTH, NativeMetricsAddon, NativeMetricsProvider, NetworkQualityTracker, NotificationService, OPAQUE_ORIGIN, OUTBOUND_QUEUE_COOLDOWN_MS, OUTBOUND_QUEUE_SUSTAIN_MS, OUTBOUND_QUEUE_THRESHOLD_BYTES, PAIRING_CODE_DIGITS, PAIRING_MAX_CODE_ATTEMPTS, PAIRING_MAX_SESSIONS, PAIRING_PATHS, PAIRING_PIN_DIGITS, PAIRING_PROTOCOL, PAIRING_TTL_MS, PARENT_ROUTED_PROVIDER_ADDON_ID, PERMITTED_DNS_SUFFIXES, PERMITTED_IP_RANGES, PREVIOUS_LEAF_GRACE_MS, PYTHON_VERSION, PairingHttpError, PeerAnsweredError, PipelineRunner, PipelineValidator, PythonEnvManager, QUARANTINE_DIRNAME, REFRESH_TOKEN_PREFIX, RENEWAL_ABANDONED, RESTART_MARKER_FILE, RSS_BUDGET_REANNOUNCE_MIN_MS, RSS_BUDGET_RELEASE_RATIO, RUNNER_HEAP_WATCH_INTERVAL_MS, RUNNER_RSS_BUDGET_ENV, RUNTIME_DEFAULTS, ReadinessRegistry, ReadinessTimeoutError, RecordsEngine, ReplEngine, RingBuffer, SERVER_AUTH_OID, SERVER_NAMESPACE, SOCKET_PLANE_TOP_N, SOCKET_QUEUE_TOP_N, STALL_REPORT_MS, STALL_TICK_MS, STORAGE_DRAIN_STATE_LEGACY, STORE_READABLE_BOOTSTRAP_KEYS, SYSTEM_SECRET_OWNER, ScopedLogger, SettingsReadUnavailableError, SocketChannel, SqliteSettingsAddon, SqliteSettingsBackend, StagingArea, StorageLocationManager, StorageManager, StorageOrchestratorAddon, StorageOrchestratorService, SystemBackupService, SystemConfigAddon, SystemEventBus, TRADITIONAL_NATIVE_PACKAGES, TlsTcpTransporter, ToastService, UDS_NO_ROUTE_PREFIX, UNCLAIMED, UPLOADED_CA_FILE, USER_MANAGEMENT_INTERNAL, UdsLocalTransportClient, UdsLocalTransportServer, UnlockTicketJtiStore, UserManager, WinstonDestination, WinstonLoggingAddon, ZERO_LOOP_DELAY, __resetCapUsageRegistryForTests, __resetLoggingGateForTests, acceptAgentSans, adaptBrokerToCluster, addonSettingsCapability, adoptModelRevisions, afterWorkerOnlineAnnounce, agentHttpsPaths, allFamiliesListenHost, answerClaimedGetStatus, answerDeviceCallRedirect, applyCertificateToListener, applyLanHttp, asBrokerLike, attachUserManagementInternal, attributeStall, backupOrchestratorRecordKinds, backupRecordStoresOf, bareAddonOf, bindPendingLanHttp, bootstrapSchema, brokerCallForCap, brokerTransportLink, buildAgentAnnouncement, buildBinaryPath, buildCapRouters, buildHeapSample, buildLinkChain, buildNameConstraintSet, buildNativeCapProxy, buildNodeManifest, buildNpmChildEnv, buildStorageLocationRegistry, buildTransporter, builderMountedCapNames, caFingerprint, caFingerprintCompact, caReplacementMarkerFile, callRegisterNodeWithRetry, callWithServiceDiscovery, canServeDataPlane, capActionLabel, capActionName, capActionSuffix, capBareAction, capServiceName, catalogNamespaceOf, certificateNames, chainsToPublicRoot, checkUploadedCa, classifyAddonDir, classifyCapRoute, clearHttpsListener, clearPendingRestart, clearPlatformKeychainKey, closeLanHttp, clusterAgentRecordKinds, clusterEventTopic, clusterNodeHistoryRecordKind, clusterNodeTombstoneRecordKind, collectAgentNames, collectCertIdentity, collectModelFiles, compileLogFilter, computePairingCommitment, computePairingSas, connectBrokerTransport, contentTypeFor, copyDirRecursive, copyExtraFileDirs, createAddonContext, createAddonDataPlaneFacility, createAddonPeerBytesFacility, createAddonService, createAgentEventScope, createAgentHttpsRequest, createAgentTransport, createArrayBufferCensusGate, createAuthenticatedFileServer, createBroker, createBrokerDeviceManagerApi, createCapActionCensus, createCiaoPublisher, createCidrMatcher, createCoreCapService, createCoreCatalogRegistry, createDeferredHeapWatchSink, createDoorSettingsView, createEventPlaneMeter, createEventPlaneReader, createFileDataPlaneHandler, createHubCapForwardService, createHubService, createInspectorArrayBufferCensus, createKernelHwAccel, createKernelInferenceEngine, createLocalTransport, createLoopDelayMeter, createMeshAccessMiddleware, createMeshCsrPem, createMeshQueueReader, createOutboundQueueGate, createParentUnownedCallHandler, createProcessService, createReadinessService, createReadinessServiceForRegistry, createScopedProcessManager, createSocketDirectionCounters, createSocketPlaneMeter, createSocketPlaneReader, createStreamProbeBrokerService, createUdsAddonContext, createUdsEventBridge, createUdsEventBus, createUdsLogger, createUdsLoggerWithControl, createV8Reclaimer, currentBrokerTransporter, decideAddonVersionMove, deleteModelFromDisk, deriveAgentListenPort, describeCsr, describeHttpsLeaf, describeMeshLeaf, describeProviderKindDrift, describeRss, deviceCapResolverLink, deviceOfGetStatus, diffCapActionCensus, diffEventPlane, diffSocketPlane, disconnectBrokerTransport, downloadBinary, downloadFile, downloadModel, dropProcessPeer, emitDownForOwnedCaps, emitHeapDiagnosticReport, emitProcessNodeRegistered, encodeFrame, ensureAddonNativePrebuilds, ensureBinary, ensureDir, ensureFfmpeg, ensureModel, ensureNativePrebuilds, ensurePython, ensureTlsCert, evaluateExistingCert, expandCapMethods, exportMeshPrivateKeyPem, fetchJson, filterIsEmpty, findAddonRefusal, findInPath, formatArrayBufferCensus, formatEventPlane, formatHeapSpaces, formatLogLine, formatMeshQueue, formatOutboundQueueVerdict, formatSocketPlane, generateBackupKeyPair, generateDeviceCa, generateMeshCa, generateMeshKeyPair, getBrokerEventBus, getBrokerTlsTransporter, getCapUsageRegistry, getCatalogRegistry, getFfmpegDownloadUrl, getLocalEventInterest, getLoggingGate, getModelFilePath, getMoleculerEventStats, getOrInitReadinessRegistry, getOrInitReadinessRegistryForClient, getPidStats, getPlatformInfo, getPlatformKeychainKey, getProcessAgentHttpsNames, getProcessJwtSigningKeyState, getProcessMeshCaState, getProcessMeshCertificateRegistry, getProcessMeshTlsListenerState, getProcessNodeMeshTransport, getProcessPeerLeaf, getPythonDownloadUrl, getRestartMarkerPath, getSinglePidStats, getUserManagementInternal, getWorkerDeviceRegistry, hasDotNode, heapSpaceField, hostNodeIdOf, hubHostFromMeshAddress, hubMainRssBudget, hubServerVersionOf, installAgentHttps, installBrokerTransporter, installManifestNativeDeps, installManifestPythonDeps, installManifestSystemDeps, installPackageFromNpm, installPythonPackages, installPythonRequirements, integrationRegistryRecordKinds, ipcParentLink, isAddonDeploySource, isAllowedAgentDashboardReturnTo, isArrayBufferCensusReport, isArrayOutputSchema, isCollectionArrayMethod, isConstrainedCa, isContainerBridgeAddress, isCredentialKeyName, isInfraCapability, isInsecureOrigin, isInstalledTransporter, isLocalOnlyHostname, isModelDownloaded, isPeerEventPacket, isPrivateAddress, isProcessVerifiedMeshPeer, isRemoteForbiddenAction, isRemoteForbiddenOnAgent, isSettingsReadUnavailable, isSourceNewer, isValidAgentNodeId, isolatedBuiltinPhase, issueAgentHttpsLeaf, issueDeviceLeaf, issueMeshLeafForNode, issueMeshLeafFromCsr, keyFingerprintShort, leafFingerprintOf, levelRank, lineContainsText, lineMatches, loadAgentHttps, loadBootstrapConfig, loadDeviceCa, loadMeshCa, loadTlsCert, localCaCommonName, localEndpointPath, localProviderLink, localSupportedPythonRuntimes, mapSignalsToInferenceHardware, meshErrorType, mintAgentUiUnlockTicket, mountNativeCapService, nextRssBudgetState, normalizeIp, normalizeOrigin, onLocalEventInterestChange, onProcessNodeRegistered, onSessionsRevoked, openMeshTlsWhenRevocationsLoaded, originNodeOf, overlayGetStatus, parseAgentDashboardOrigins, parseCapAction, parseCidrList, parseOriginList, parseRangeHeader, parseRssBudgetMb, parseTokenExpiry, parseTokenizedUrl, partitionIsolatedBuiltinIds, pemDigest, permitsIdentity, permitsName, pinnedHttpsCaFingerprint, preferencesLimitReasonOf, prepareBootTls, prepareRestoreArchive, probePlatform, processJwtSigningKey, processMeshCrl, proxyToUpstream, quarantineAddonResidue, readAllRows, readBackupEncryptionHeader, readCidrSetting, readExtraSans, readHeapSpaces, readLanHttpState, readNameConstraints, readOriginSetting, readPendingRestart, readSocketQueues, readTlsAccessStatus, readTlsEnabled, readTlsMode, readinessKey, reclaimIntervalMs, recordSocketFrame, redactLogEntry, redactLogMeta, redactLogText, regenerateCertificate, registerEventBusService, registerHttpsListener, registerLanHttpHandler, reissueTlsLeaf, reloadHttpsListener, renewMeshCertificate, replaceUnconstrainedLocalCa, requireProcessMeshCa, resetCatalogRegistryForTests, resolveFilePath, resolveFormatRevision, resolveHwAccel, resolveNpmInvocation, retirePreviousLocalCa, revertToGeneratedCertificate, revisionWeightUrl, revokeMeshCertificate, runHubAddonBoot, runNpm, sampleSocketDirection, scheduleSelfRestart, scopeKey, scopesAllowAddon, scopesAllowDeviceCap, selectAddonResidue, selectReportedSpaces, serializeTypedArrays, servedHttpsLeafFingerprint, setHubConnected, setHuggingFaceReachabilityObserver, setNodeEventInterest, setPlatformKeychainKey, setProcessAgentHttpsNames, setProcessMeshCertificateRegistry, setProcessMeshPeerTransportLookup, setProcessMeshTlsEnabler, setProcessMeshTlsListenerState, setWrapperActive, shouldReclaim, signMembershipProof, signPairingProof, signalAllRunnerGroups, socketDirectionBytes, socketDirectionMessages, splitPemCertificates, stampCallerAddonId, startEventLoopStallMonitor, startHeapWatch, startRunnerHeapWatch, staticJwtSigningKey, storageOrchestratorRecordKinds, storeMayAnswer, storeUploadedCertificate, strandedMb, stripCamstackDeps, stripForgedIdentity, stripForwardedCaller, subscribePassthrough, systemHostFacts, udsChildLogToWorkerEntry, useStoredUploadedCertificate, validateProviderRegistrations, validateUploadedTls, verifyAgentUiUnlockTicket, verifyDeviceLeaf, verifyDeviceSignature, verifyMembershipAnswer, verifyPairingProof, waitUntilReady, writeExtraSans, writePendingRestart, writeTlsEnabled, writeTlsMode };
@@ -1,25 +1,3 @@
1
- /**
2
- * Addon install source mode:
3
- * - 'npm' — download from npm registry (production + dev default).
4
- * - 'local' — copy dist/ from local workspace `packages/` (used by
5
- * `installFromWorkspace` + the Electron-packaged bundled
6
- * addons path).
7
- * - 'symlink' — point `data/addons/<pkg>` directly at the workspace
8
- * source dir. Dev-only: workspace edits → next addon
9
- * load picks them up after a `npm run build` of the
10
- * package, without re-copying. Costs ~80ms per addon at
11
- * cold boot instead of the ~200ms-per-package copy.
12
- * Windows fallback: drops back to `'local'` if symlink
13
- * creation fails (needs admin / developer-mode on Win10).
14
- *
15
- * The previous symlink mode (auto-on when workspace was detected) was
16
- * removed in `eb96df3c` once addons moved to self-contained bundles —
17
- * the legacy `symlinkAddonsToNodeModules` / `symlinkPeerDepsIntoAddonsDir`
18
- * helpers it relied on are GONE. This is the narrower successor: no
19
- * symlinks into the hub's `node_modules`, no peer-dep planting — just
20
- * `addonsDir/<pkg>` → `packages/<pkg>`.
21
- */
22
- export type InstallSource = "npm" | "local" | "symlink";
23
1
  /** The one bootstrap package the server closure carries itself. */
24
2
  export declare const CLOSURE_PROVIDED_PACKAGE = "@camstack/server";
25
3
  /**
@@ -44,10 +22,12 @@ export interface AddonInstallerConfig {
44
22
  readonly addonsDir: string;
45
23
  /** npm registry URL */
46
24
  readonly registry?: string;
47
- /** Workspace packages directory (e.g., /path/to/camstack-server/packages) */
48
- readonly workspacePackagesDir?: string;
49
- /** Install source mode. Default: auto-detect */
50
- readonly installSource?: InstallSource;
25
+ /**
26
+ * Directory of pre-built package dirs to seed from instead of npm — the
27
+ * Electron bundle's closure scope dir (`CAMSTACK_BUNDLED_ADDONS_DIR`). Unset
28
+ * everywhere else: addons then always come from npm.
29
+ */
30
+ readonly bundledAddonsDir?: string;
51
31
  /**
52
32
  * Override for "does the running closure already provide this package?".
53
33
  * Production leaves it unset (real `require.resolve`); a spec sets it to
@@ -123,8 +103,7 @@ export declare function selectSweepableStaging(entries: readonly StagingEntryAge
123
103
  export declare class AddonInstaller {
124
104
  readonly addonsDir: string;
125
105
  private readonly registry;
126
- readonly workspaceDir: string | undefined;
127
- readonly installSource: InstallSource;
106
+ readonly bundledAddonsDir: string | undefined;
128
107
  private readonly logger;
129
108
  private readonly isPackageResolvable?;
130
109
  /** Test seam — production resolves via `CAMSTACK_FRAMEWORK_DIR`. */
@@ -290,27 +269,13 @@ export declare class AddonInstaller {
290
269
  *
291
270
  * Always npm. The legacy "auto-use workspace symlink in dev" branch
292
271
  * was removed; local development pushes via `camstack deploy` (CLI
293
- * tarball upload). Operators wanting to install from workspace use
294
- * `installFromWorkspace` (explicit `'local'` codepath) instead.
272
+ * tarball upload).
295
273
  */
296
274
  install(packageName: string, version?: string): Promise<{
297
275
  name: string;
298
276
  version: string;
299
277
  }>;
300
278
  /**
301
- * Install addon from a local workspace package. Two strategies
302
- * depending on `installSource`:
303
- * - `'symlink'` (dev): create a directory symlink
304
- * `addonsDir/<pkg>` → `<workspace>/packages/<pkg>`. Edits to
305
- * the workspace are visible at the next addon load after a
306
- * `npm run build` of that package — no copy step. Falls back
307
- * to `'local'` if symlink creation fails (Windows w/o
308
- * developer-mode).
309
- * - `'local'` (default): copy `package.json` (stripped) + `dist/`
310
- * into `addonsDir/<pkg>/`. The Electron bundled-addons path
311
- * uses this so the runtime owns its on-disk copy.
312
- */
313
- /**
314
279
  * Re-install one addon from the running server closure.
315
280
  *
316
281
  * The closure carries a copy of every addon it declares as a dependency, and
@@ -331,22 +296,6 @@ export declare class AddonInstaller {
331
296
  version: string;
332
297
  }>;
333
298
  private installLocal;
334
- /**
335
- * Symlink `addonsDir/<pkg>` at the workspace source dir. Dev-only.
336
- * After this, the AddonLoader resolves `<addonsDir>/<pkg>/dist/...`
337
- * through the symlink straight to `packages/<pkg>/dist/...` — a fresh
338
- * `npm run build` of the package is immediately picked up by the
339
- * next addon load.
340
- *
341
- * Auto-runs `ensureBuilt` so a workspace freshly cloned (with no
342
- * dist/ yet) still boots — same auto-build hook installCopy uses.
343
- *
344
- * Does NOT plant peer-dep symlinks into `<targetDir>/node_modules/`
345
- * the way the pre-`eb96df3c` symlink mode did. Self-contained
346
- * addons bundle their own copy of types/zod/sdk — no shared
347
- * workspace symlinks needed.
348
- */
349
- private installSymlink;
350
299
  private installCopy;
351
300
  /**
352
301
  * Install addon from npm (download tgz, then extract). Tries the
@@ -502,7 +451,7 @@ export declare class AddonInstaller {
502
451
  *
503
452
  * Steps:
504
453
  * 1. Rename current install dir → {addonsDir}/.backups/{name}/{ts}/
505
- * 2. Run a fresh install (npm or local depending on installSource)
454
+ * 2. Run a fresh install from npm
506
455
  * 3. Record `lastBackupDir` in the manifest entry
507
456
  * 4. Prune every OTHER backup of this addon — the previous one just
508
457
  * lost its only pointer and would otherwise be orphaned forever.
@@ -4,4 +4,6 @@ import { type BootstrapConfig } from "./config-schema.js";
4
4
  * `main.ts` and `ConfigManager` come through here, so a key is
5
5
  * read in one place. Keys the schema does not name are stripped, not read.
6
6
  */
7
- export declare function loadBootstrapConfig(configPath: string): BootstrapConfig;
7
+ export declare function loadBootstrapConfig(configPath: string, options?: {
8
+ readonly warnRetiredKeys?: boolean;
9
+ }): BootstrapConfig;
@@ -8,25 +8,16 @@ export type BootstrapServerConfig = {
8
8
  dataPath: string;
9
9
  };
10
10
  /** Bootstrap `bootstrap` section — see {@link bootstrapAddonsSchema}. */
11
- export type BootstrapAddonsConfig = {
12
- installSource?: "npm" | "local" | "symlink";
13
- requiredAddons?: string[];
14
- };
15
- /** Bootstrap `keychain` section — see {@link keychainSchema}. */
16
- export type BootstrapKeychainConfig = {
17
- keyFile?: string;
18
- previousKeyFile?: string;
19
- };
11
+ export type BootstrapAddonsConfig = Record<never, never>;
20
12
  /**
21
13
  * Bootstrap config — loaded from config.yaml (plus the three env overrides) ONLY
22
14
  * at startup, by `loadBootstrapConfig`, the one loader. A key not named here is
23
15
  * not read: an older yaml that still carries `mode`, `hub`, `agent`, `auth`,
24
- * `tls` or `bootstrap.settingsStoreAddon` / `forceDisable` boots with them ignored.
16
+ * `tls`, `keychain.keyFile` / `previousKeyFile` or `bootstrap.settingsStoreAddon` / `forceDisable` / `installSource` / `requiredAddons` boots with them ignored.
25
17
  */
26
18
  export type BootstrapConfig = {
27
19
  server: BootstrapServerConfig;
28
20
  bootstrap: BootstrapAddonsConfig;
29
- keychain: BootstrapKeychainConfig;
30
21
  };
31
22
  export declare const bootstrapSchema: z.ZodType<BootstrapConfig>;
32
23
  /**
@@ -71,12 +71,6 @@ export declare function copyExtraFileDirs(pkgJson: Record<string, unknown>, sour
71
71
  */
72
72
  export declare function isSourceNewer(packageDir: string): boolean;
73
73
  /**
74
- * Ensure a library dependency (not an addon) has a dist/ directory.
75
- * Does NOT rebuild — in dev mode, `npm run build` should be run separately.
76
- * Only checks that dist/ exists and has an index file.
77
- */
78
- export declare function ensureLibraryBuilt(packageName: string, packagesDir: string): void;
79
- /**
80
74
  * Install a single npm package into a target directory (package.json + dist/).
81
75
  * No validation on camstack.addons -- works for any @camstack/* package.
82
76
  *
@@ -1,7 +1,7 @@
1
1
  export type { RegisteredAddon } from "./addon-loader.js";
2
2
  export { AddonLoader } from "./addon-loader.js";
3
3
  export { AddonEngineManager } from "./addon-engine-manager.js";
4
- export type { AddonInstallerConfig, InstallSource, InstalledPackage } from "./addon-installer.js";
4
+ export type { AddonInstallerConfig, InstalledPackage } from "./addon-installer.js";
5
5
  export { AddonInstaller } from "./addon-installer.js";
6
6
  export type { AddonVersionMove, AddonVersionReason } from "./addon-version-policy.js";
7
7
  export { ADDON_VERSION_REASON_HUB, ADDON_VERSION_REASON_REGISTRY_LATEST, decideAddonVersionMove } from "./addon-version-policy.js";
@@ -9,8 +9,7 @@ export type { AddonInstallSource, AddonManifestEntry, AddonManifestFile } from "
9
9
  export { AddonManifest } from "./addon-manifest.js";
10
10
  export type { AddonDirCandidate, QuarantinedEntry, ResidueQuarantineResult, ResidueReason, ResidueVerdict } from "./addon-residue.js";
11
11
  export { QUARANTINE_DIRNAME, classifyAddonDir, quarantineAddonResidue, selectAddonResidue } from "./addon-residue.js";
12
- export { copyDirRecursive, ensureDir, stripCamstackDeps, copyExtraFileDirs, ensureLibraryBuilt, installPackageFromNpm, isSourceNewer } from "./fs-utils.js";
13
- export { detectWorkspacePackagesDir } from "./workspace-detect.js";
12
+ export { copyDirRecursive, ensureDir, stripCamstackDeps, copyExtraFileDirs, installPackageFromNpm, isSourceNewer } from "./fs-utils.js";
14
13
  export { RESTART_MARKER_FILE, clearPendingRestart, getRestartMarkerPath, readPendingRestart, scheduleSelfRestart, writePendingRestart } from "./restart-coordinator.js";
15
14
  export type { PendingRestartMarker, RestartKind, ScheduleSelfRestartOptions } from "./restart-coordinator.js";
16
15
  export { CapabilityHandle, CapabilityUnavailableError } from "./capability-handle.js";
@@ -1,4 +1,4 @@
1
- import { Go as defineRecordKinds, W as DataStoreDatabaseSchema, j as DATABASE_SNAPSHOT_SUFFIX } from "./dist-Cw8KtuQY.mjs";
1
+ import { G as DataStoreDatabaseSchema, M as DATABASE_SNAPSHOT_SUFFIX, rs as defineRecordKinds } from "./dist-9lvgpcnm.mjs";
2
2
  import { z } from "zod";
3
3
  import { createCipheriv, createDecipheriv, createHash, createPrivateKey, createPublicKey, diffieHellman, generateKeyPairSync, hkdfSync, randomBytes } from "node:crypto";
4
4
  import { Buffer as Buffer$1 } from "buffer";
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require("./chunk-Cek0wNdY.js");
2
- const require_dist = require("./dist-B9xpybTG.js");
2
+ const require_dist = require("./dist-B3S0ruBa.js");
3
3
  let zod = require("zod");
4
4
  let node_crypto = require("node:crypto");
5
5
  let buffer = require("buffer");