@camstack/server 1.2.810 → 1.2.812

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 (116) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/api/trpc/cap-router-runtime.js +3 -0
  3. package/dist/api/trpc/generated-cap-mounts.js +3 -1
  4. package/dist/api/trpc/generated-cap-routers.js +1869 -1789
  5. package/dist/core/addon/hub-addon-api.js +8 -1
  6. package/dist/core/moleculer/moleculer.service.js +3 -0
  7. package/package.json +9 -42
  8. package/system/dist/addon-runner.js +4 -1
  9. package/system/dist/addon-runner.mjs +5 -2
  10. package/system/dist/{agent-https-B5cYxyQW.mjs → agent-https-CyEBY3RB.mjs} +1 -1
  11. package/system/dist/{agent-https-C0QE8tXs.js → agent-https-a3mE4PW4.js} +1 -1
  12. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  13. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  14. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  15. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  16. package/system/dist/builtins/alerts/alerts.addon.js +3 -101
  17. package/system/dist/builtins/alerts/alerts.addon.mjs +40 -134
  18. package/system/dist/builtins/autotrack/index.js +1 -1
  19. package/system/dist/builtins/autotrack/index.mjs +1 -1
  20. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  21. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
  22. package/system/dist/builtins/calendars/calendars.addon.js +1 -1
  23. package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
  24. package/system/dist/builtins/camera-grid/index.js +1 -1
  25. package/system/dist/builtins/camera-grid/index.mjs +1 -1
  26. package/system/dist/builtins/composer/composer.addon.js +6 -5
  27. package/system/dist/builtins/composer/composer.addon.mjs +6 -5
  28. package/system/dist/builtins/console-logging/index.js +1 -1
  29. package/system/dist/builtins/console-logging/index.mjs +1 -1
  30. package/system/dist/builtins/core-blocks/core-blocks.addon.d.ts +2 -0
  31. package/system/dist/builtins/core-blocks/core-blocks.addon.js +358 -32
  32. package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +361 -35
  33. package/system/dist/builtins/core-blocks/hero-layout-service.d.ts +42 -0
  34. package/system/dist/builtins/core-blocks/remote-call-redirect.d.ts +1 -1
  35. package/system/dist/builtins/core-blocks/remote-service.d.ts +38 -0
  36. package/system/dist/builtins/device-history/device-history.addon.d.ts +5 -0
  37. package/system/dist/builtins/device-history/device-history.addon.js +357 -18
  38. package/system/dist/builtins/device-history/device-history.addon.mjs +357 -18
  39. package/system/dist/builtins/device-history/retention/retention.d.ts +14 -1
  40. package/system/dist/builtins/device-history/transitions/device-transitions-record-kinds.d.ts +14 -0
  41. package/system/dist/builtins/device-history/transitions/transitions-service.d.ts +80 -0
  42. package/system/dist/builtins/device-manager/device-manager.addon.d.ts +2 -0
  43. package/system/dist/builtins/device-manager/device-manager.addon.js +712 -18
  44. package/system/dist/builtins/device-manager/device-manager.addon.mjs +780 -95
  45. package/system/dist/builtins/device-manager/device-state-mirror.d.ts +7 -0
  46. package/system/dist/builtins/device-manager/transitions/command-args.d.ts +4 -0
  47. package/system/dist/builtins/device-manager/transitions/transition-correlator.d.ts +68 -0
  48. package/system/dist/builtins/device-manager/transitions/transitions-sender.d.ts +37 -0
  49. package/system/dist/builtins/device-manager/transitions/transitions-wiring.d.ts +25 -0
  50. package/system/dist/builtins/hub-forwarder/index.js +1 -1
  51. package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
  52. package/system/dist/builtins/keychain/index.js +4 -4
  53. package/system/dist/builtins/keychain/index.mjs +4 -4
  54. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  55. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  56. package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
  57. package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
  58. package/system/dist/builtins/local-network/local-network.addon.js +2 -2
  59. package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
  60. package/system/dist/builtins/loki-logging/index.js +1 -1
  61. package/system/dist/builtins/loki-logging/index.mjs +1 -1
  62. package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  63. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  64. package/system/dist/builtins/platform-probe/index.js +1 -1
  65. package/system/dist/builtins/platform-probe/index.mjs +1 -1
  66. package/system/dist/builtins/record-entries/index.js +1 -1
  67. package/system/dist/builtins/record-entries/index.mjs +1 -1
  68. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  69. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  70. package/system/dist/builtins/snapshot/index.js +1 -1
  71. package/system/dist/builtins/snapshot/index.mjs +1 -1
  72. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  73. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  74. package/system/dist/builtins/sqlite-storage/index.js +1 -1
  75. package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
  76. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
  77. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
  78. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  79. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  80. package/system/dist/builtins/system-config/system-config.addon.js +3 -3
  81. package/system/dist/builtins/system-config/system-config.addon.mjs +284 -284
  82. package/system/dist/builtins/winston-logging/index.js +1 -1
  83. package/system/dist/builtins/winston-logging/index.mjs +1 -1
  84. package/system/dist/{capture-engine-DHvJXvuV.js → capture-engine-BO9mSlY-.js} +1 -1
  85. package/system/dist/{capture-engine-Ci4GwgjQ.mjs → capture-engine-ByF-6AFH.mjs} +1 -1
  86. package/system/dist/{composition-sources-CXJ0SzYJ.mjs → composition-sources-AziMFo7T.mjs} +1 -1
  87. package/system/dist/{composition-sources-B-WY9L7z.js → composition-sources-BMJUPUh2.js} +1 -1
  88. package/system/dist/{constants-DAuOjW5K.mjs → constants-CTikgsC_.mjs} +1 -1
  89. package/system/dist/{constants-DnJ2vuC7.js → constants-CjRlgRlu.js} +1 -1
  90. package/system/dist/{device-ca-D0HejZGK.mjs → device-ca-CNRlFqFC.mjs} +1 -1
  91. package/system/dist/{device-ca-BRpXm-B0.js → device-ca-Dxl6kVcJ.js} +1 -1
  92. package/system/dist/{dist-BLxWQm_m.mjs → dist-BPq13Y8j.mjs} +17392 -15506
  93. package/system/dist/{dist-DZQowBDF.js → dist-CkJnelZr.js} +17463 -15511
  94. package/system/dist/file-host-worker.js +1 -1
  95. package/system/dist/file-host-worker.mjs +1 -1
  96. package/system/dist/{hub-mdns-ciao-BJx5WmFx.mjs → hub-mdns-ciao-CrjItezp.mjs} +2 -2
  97. package/system/dist/{hub-mdns-ciao-ClSuN_QT.js → hub-mdns-ciao-Cx6yJBl9.js} +2 -2
  98. package/system/dist/index.js +67 -75
  99. package/system/dist/index.mjs +53 -68
  100. package/system/dist/kernel/cap-router-builder.d.ts +9 -0
  101. package/system/dist/kernel/command-observation.d.ts +76 -0
  102. package/system/dist/kernel/index.d.ts +2 -0
  103. package/system/dist/kernel/transport/child-cap-protocol.d.ts +10 -1
  104. package/system/dist/kernel/transport/local-child-registry.d.ts +15 -0
  105. package/system/dist/{legacy-integration-rows-door-BiNKE2zW.js → legacy-integration-rows-door-CKM-LxvL.js} +1 -1
  106. package/system/dist/{legacy-integration-rows-door-CN84_M7B.mjs → legacy-integration-rows-door-Dxcqwc-w.mjs} +1 -1
  107. package/system/dist/log-redactor-BhIEMaG9.js +149 -0
  108. package/system/dist/log-redactor-XLDrPzOi.mjs +120 -0
  109. package/system/dist/logging/log-redactor.d.ts +2 -0
  110. package/system/dist/{restore-archive-Co1yYMV3.js → restore-archive-BQWOdGAB.js} +1 -1
  111. package/system/dist/{restore-archive-gLW5oc1w.mjs → restore-archive-r3zTdLKr.mjs} +82 -82
  112. package/system/dist/{retention-BNONb5X_.js → retention-BcOSL6b9.js} +33 -2
  113. package/system/dist/{retention-B9l9TnGE.mjs → retention-CUOVI1p7.mjs} +33 -2
  114. package/system/dist/{wal-maintenance-BQaIM_cY.js → wal-maintenance-CiCgL4Hp.js} +0 -0
  115. package/system/dist/{wal-maintenance-Zji_8sLK.mjs → wal-maintenance-zJ4-ORo6.mjs} +0 -0
  116. package/system/package.json +7 -1
@@ -1,8 +1,9 @@
1
1
  import { i as __require } from "./chunk-CNf5ZN-e.mjs";
2
- import { Ac as withoutCallerStamp, Ar as extractNestedAddonId, Ca as scopesAllowAddon, D as CatalogFileSchema, Ds as asJsonObject$1, Fi as objectInputDeclaresAddonId, Fs as collectSecretMarkerRefs, Gr as interpolate, Gs as expandCapMethods, Hs as defineRecordKinds, Ic as EventCategory$1, Ii as objectInputDeclaresRequiredDeviceId, Jo as CALLER_STAMPED_CAPABILITIES$1, Ls as createEvent$1, Nt as PackageRequiresSchema, Os as asNumber, Pa as splitTranslationRef, Pc as errMsg$1, Qa as unmetRequirements, St as METHOD_ACCESS_MAP, Tn as bareAddonId, Ua as supportedRuntimes, Us as emitDownForOwnedCaps, Wn as compareVersions, Xo as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Xr as isCollectionArrayMethod, Yo as DATAPLANE_SECRET_HEADER$1, Yr as isArrayOutputSchema, Zi as procedureAuthKey, Zo as DEVICE_STATUS_METHOD, Zs as isDebugChannelName, _c as readinessKey, _i as looseSchema, a as AGENT_MDNS_SERVICE_TYPE, b as CATALOG_LANGS, bt as LOG_LEVEL_RANK, fs as RUNTIME_DEFAULTS, gi as logLevelAtMost, gn as addonSettingsCapability, hc as parseJsonUnknown, ii as kebabToCamel$1, kc as userError, ks as asString$1, li as lifecycleJobSchema, ma as resolveMethodAuth, mc as parseJsonObject, ms as ReadinessTimeoutError, o as AGENT_MDNS_TXT_KEYS, pr as describeUnmet, ps as ReadinessRegistry, qs as getDebugInterest, ri as isVoidInput, s as ALL_CAPABILITY_DEFINITIONS, ti as isObjectInput, wa as scopesAllowDeviceCap, xc as scopeKey, yc as resolveCapMount } from "./dist-BLxWQm_m.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-D0HejZGK.mjs";
2
+ import { $i as procedureAuthKey, $o as DATAPLANE_SECRET_HEADER$1, Ar as extractNestedAddonId, D as CatalogFileSchema, Dc as readinessKey, Fs as asString$1, Gc as errMsg$1, Hs as collectSecretMarkerRefs, Ja as supportedRuntimes, Ks as createEvent$1, Li as objectInputDeclaresAddonId, Ns as asJsonObject$1, Nt as PackageRequiresSchema, Oa as scopesAllowAddon, Ps as asNumber, Qo as CALLER_STAMPED_CAPABILITIES$1, Qr as isCollectionArrayMethod, Qs as emitDownForOwnedCaps, Ri as objectInputDeclaresRequiredDeviceId, St as METHOD_ACCESS_MAP, Tc as parseJsonUnknown, Vc as withoutCallerStamp, Wn as compareVersions, Zr as isArrayOutputSchema, Zs as defineRecordKinds, _s as RUNTIME_DEFAULTS, a as AGENT_MDNS_SERVICE_TYPE, ai as isVoidInput, b as CATALOG_LANGS, bt as LOG_LEVEL_RANK, di as lifecycleJobSchema, ec as expandCapMethods, es as DEVICE_SETTINGS_CONTRIBUTION_METHODS, fr as describeUnmet, hn as addonSettingsCapability, jc as scopeKey, ka as scopesAllowDeviceCap, kc as resolveCapMount, nc as getDebugInterest, o as AGENT_MDNS_TXT_KEYS, oi as kebabToCamel$1, qc as EventCategory$1, qr as interpolate, ri as isObjectInput, ro as unmetRequirements, s as ALL_CAPABILITY_DEFINITIONS, sc as isDebugChannelName, ts as DEVICE_STATUS_METHOD, va as resolveMethodAuth, vi as logLevelAtMost, vs as ReadinessRegistry, wc as parseJsonObject, wn as bareAddonId, yi as looseSchema, ys as ReadinessTimeoutError, za as splitTranslationRef, zc as userError } from "./dist-BPq13Y8j.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-CNRlFqFC.mjs";
4
4
  import { t as require_read_all_rows } from "./read-all-rows-TaPqdWNF.mjs";
5
- import { AlertCenterAddon, a as redactLogEntry, i as isCredentialKeyName, n as lastCauseAfterChunk, o as redactLogMeta, r as readRunnerDisplayName, s as redactLogText, t as CRASH_BREAKER_ERROR_PREFIX } from "./builtins/alerts/alerts.addon.mjs";
5
+ import { a as redactLogText, i as redactLogMeta, r as redactLogEntry, t as isCredentialKeyName } from "./log-redactor-XLDrPzOi.mjs";
6
+ import { AlertCenterAddon, n as lastCauseAfterChunk, r as readRunnerDisplayName, t as CRASH_BREAKER_ERROR_PREFIX } from "./builtins/alerts/alerts.addon.mjs";
6
7
  import "./builtins/alerts/index.mjs";
7
8
  import { CalendarsAddon } from "./builtins/calendars/calendars.addon.mjs";
8
9
  import "./builtins/calendars/index.mjs";
@@ -13,7 +14,7 @@ import { ConsoleDestination, ConsoleLoggingAddon } from "./builtins/console-logg
13
14
  import { t as loadPrefixed } from "./prefix-walk-DAOBSyH1.mjs";
14
15
  import { CoreBlocksAddon, c as readUnscopedAddonSettings, o as clearNodeSettings, s as createAddonSettingsStore } from "./builtins/core-blocks/core-blocks.addon.mjs";
15
16
  import "./builtins/core-blocks/index.mjs";
16
- import { DeviceManagerAddon, n as readDeviceOrThrow, r as setWrapperActive, t as createDeviceSettingsStore } from "./builtins/device-manager/device-manager.addon.mjs";
17
+ import { DeviceManagerAddon, a as commandObserverLink, c as runObservedCommand, d as readDeviceOrThrow, f as setWrapperActive, i as commandActorFromContext, l as observable, n as __resetCommandObserverRegistryForTests, o as getCommandObserverRegistry, r as addonCommandActor, s as reportCommand, t as CommandObserverRegistry, u as createDeviceSettingsStore } from "./builtins/device-manager/device-manager.addon.mjs";
17
18
  import "./builtins/device-manager/index.mjs";
18
19
  import { HubForwarderAddon, HubForwarderDestination } from "./builtins/hub-forwarder/index.mjs";
19
20
  import { LivenessMonitorAddon } from "./builtins/liveness-monitor/liveness-monitor.addon.mjs";
@@ -25,22 +26,22 @@ import { LokiDestination, LokiLoggingAddon } from "./builtins/loki-logging/index
25
26
  import NativeMetricsAddon, { a as NativeMetricsProvider, i as parseProcStatusRss, n as nodeProcReader, r as parseProcStat } from "./builtins/native-metrics/native-metrics.addon.mjs";
26
27
  import { DeviceHistoryAddon } from "./builtins/device-history/device-history.addon.mjs";
27
28
  import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./builtins/sqlite-storage/filesystem-storage.addon.mjs";
28
- import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-Zji_8sLK.mjs";
29
- import { n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows } from "./legacy-integration-rows-door-CN84_M7B.mjs";
29
+ import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-zJ4-ORo6.mjs";
30
+ import { n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows } from "./legacy-integration-rows-door-Dxcqwc-w.mjs";
30
31
  import { SqliteSettingsAddon } from "./builtins/sqlite-storage/sqlite-settings.addon.mjs";
31
32
  import { ConfigStore, DeviceStore } from "./builtins/sqlite-storage/index.mjs";
32
33
  import { StorageOrchestratorAddon, a as createHubCapForwardService, i as HUB_CAP_FWD_SERVICE, o as stripForwardedCaller, r as HUB_CAP_FWD_ACTION, s as buildStorageLocationRegistry, t as StorageOrchestratorService, u as storageOrchestratorRecordKinds } from "./builtins/storage-orchestrator/storage-orchestrator.addon.mjs";
33
34
  import "./builtins/storage-orchestrator/index.mjs";
34
- 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-B5cYxyQW.mjs";
35
- 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-DAuOjW5K.mjs";
35
+ 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-CyEBY3RB.mjs";
36
+ 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-CTikgsC_.mjs";
36
37
  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";
37
38
  import "./builtins/system-config/index.mjs";
38
39
  import { WinstonDestination, WinstonLoggingAddon } from "./builtins/winston-logging/index.mjs";
39
40
  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-B9zFBNVa.mjs";
40
- 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-BJx5WmFx.mjs";
41
+ 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-CrjItezp.mjs";
41
42
  import { n as getPlatformKeychainKey, r as setPlatformKeychainKey, t as clearPlatformKeychainKey } from "./platform-key-source-BWlq0jjn.mjs";
42
43
  import { n as getSinglePidStats, t as getPidStats } from "./resource-monitor-Di9daRwI.mjs";
43
- 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-gLW5oc1w.mjs";
44
+ 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-r3zTdLKr.mjs";
44
45
  import { r as nodeCoralFs, t as classifyCoralAccelerator } from "./coral-accelerators-DBlgWB8k.mjs";
45
46
  import { z } from "zod";
46
47
  import * as crypto$1 from "node:crypto";
@@ -51,7 +52,7 @@ import * as fs$1 from "node:fs";
51
52
  import { accessSync, constants, createReadStream, createWriteStream, existsSync, readFileSync, readdirSync } from "node:fs";
52
53
  import * as path$1 from "node:path";
53
54
  import { basename, dirname, isAbsolute, join, resolve } from "node:path";
54
- import { BOOT_RECOVERY_BACKOFF_MS, CALLER_STAMPED_CAPABILITIES, CAP_METHOD_TIMEOUTS_MS, COLLECTION_ARRAY_METHODS, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DeviceType, DisposerChain, ErrorI18nPayloadSchema, EventCategory, MIGRATION_API_VERSION, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, ReadinessRegistry as ReadinessRegistry$1, addonSliceHandleApi, asJsonObject, asString, collectZodSecretPaths, createDebugEmitter, createDeviceProxy, createEvent, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods as expandCapMethods$1, readErrorI18n, readNodePin, resolveDeviceSettings, scopeKey as scopeKey$1, sleep, withCapInputDefaults } from "@camstack/types/addon";
55
+ import { BOOT_RECOVERY_BACKOFF_MS, CALLER_STAMPED_CAPABILITIES, CAP_METHOD_TIMEOUTS_MS, COLLECTION_ARRAY_METHODS, CommandOriginClaimSchema, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DeviceType, DisposerChain, ErrorI18nPayloadSchema, EventCategory, MIGRATION_API_VERSION, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, ReadinessRegistry as ReadinessRegistry$1, addonSliceHandleApi, asJsonObject, asString, collectZodSecretPaths, createDebugEmitter, createDeviceProxy, createEvent, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods as expandCapMethods$1, isCommand, readCommandOrigin, readErrorI18n, readNodePin, resolveDeviceSettings, scopeKey as scopeKey$1, sleep, withCapInputDefaults } from "@camstack/types/addon";
55
56
  import { mkdir, rm, stat, unlink } from "node:fs/promises";
56
57
  import * as util from "node:util";
57
58
  import { promisify } from "node:util";
@@ -11519,6 +11520,22 @@ function invokeCapMethod(provider, method, payload, capName, isCollection, servi
11519
11520
  return (services.methodNotFound ?? ((cap, m) => services.badRequest(`Capability "${cap}" has no method "${m}"`)))(capName, method.name);
11520
11521
  }
11521
11522
  /**
11523
+ * Invoke the provider, reporting the call first when it is a device command and
11524
+ * the request carries a principal (D1022).
11525
+ */
11526
+ function invokeObserved(def, ctx, provider, method, payload, isCollection, services) {
11527
+ const invoke = () => invokeCapMethod(provider, method, payload, def.name, isCollection, services);
11528
+ if (services.commandObserver === void 0 || def.scope !== "device" || method.kind !== "mutation") return invoke();
11529
+ const actor = commandActorFromContext(ctx);
11530
+ if (actor === null) return invoke();
11531
+ return runObservedCommand(services.commandObserver, {
11532
+ capName: def.name,
11533
+ method: method.name,
11534
+ args: payload,
11535
+ actor
11536
+ }, invoke);
11537
+ }
11538
+ /**
11522
11539
  * Extract the authenticated caller identity from the (structurally
11523
11540
  * unknown) tRPC context. The builder cannot import the server's
11524
11541
  * `TrpcContext`, so the read is narrowing-based: `ctx.user.id` (string)
@@ -11660,12 +11677,12 @@ function buildOneCapRouter(def, primitives, services) {
11660
11677
  addonId = await Promise.resolve(services.inferCollectionAddonPin(capName, method.name, rest));
11661
11678
  if (addonId !== void 0) refusePin = addonId;
11662
11679
  }
11663
- return invokeCapMethod(resolveProviderForCall(capName, nodeId, () => getLocal(ctx, addonId), services, refusePin), method, method.callerRequired ? injectCaller(rest, ctx, capName, method.name, services) : rest, capName, isCollection, services);
11680
+ return invokeObserved(def, ctx, resolveProviderForCall(capName, nodeId, () => getLocal(ctx, addonId), services, refusePin), method, method.callerRequired ? injectCaller(rest, ctx, capName, method.name, services) : rest, isCollection, services);
11664
11681
  };
11665
11682
  return resolveAndInvoke();
11666
11683
  }
11667
11684
  const { rest, picked } = stripKeys(input, ["nodeId"]);
11668
- return invokeCapMethod(resolveProviderForCall(capName, typeof picked.nodeId === "string" ? picked.nodeId : void 0, () => getLocal(ctx), services), method, method.callerRequired ? injectCaller(rest, ctx, capName, method.name, services) : rest, capName, isCollection, services);
11685
+ return invokeObserved(def, ctx, resolveProviderForCall(capName, typeof picked.nodeId === "string" ? picked.nodeId : void 0, () => getLocal(ctx), services), method, method.callerRequired ? injectCaller(rest, ctx, capName, method.name, services) : rest, isCollection, services);
11669
11686
  });
11670
11687
  continue;
11671
11688
  }
@@ -17928,59 +17945,6 @@ var CapRouteResolver = class {
17928
17945
  }
17929
17946
  };
17930
17947
  //#endregion
17931
- //#region ../../node_modules/@trpc/server/dist/observable-UMO3vUa_.mjs
17932
- /** @public */
17933
- function observable(subscribe) {
17934
- const self = {
17935
- subscribe(observer) {
17936
- let teardownRef = null;
17937
- let isDone = false;
17938
- let unsubscribed = false;
17939
- let teardownImmediately = false;
17940
- function unsubscribe() {
17941
- if (teardownRef === null) {
17942
- teardownImmediately = true;
17943
- return;
17944
- }
17945
- if (unsubscribed) return;
17946
- unsubscribed = true;
17947
- if (typeof teardownRef === "function") teardownRef();
17948
- else if (teardownRef) teardownRef.unsubscribe();
17949
- }
17950
- teardownRef = subscribe({
17951
- next(value) {
17952
- var _observer$next;
17953
- if (isDone) return;
17954
- (_observer$next = observer.next) === null || _observer$next === void 0 || _observer$next.call(observer, value);
17955
- },
17956
- error(err) {
17957
- var _observer$error;
17958
- if (isDone) return;
17959
- isDone = true;
17960
- (_observer$error = observer.error) === null || _observer$error === void 0 || _observer$error.call(observer, err);
17961
- unsubscribe();
17962
- },
17963
- complete() {
17964
- var _observer$complete;
17965
- if (isDone) return;
17966
- isDone = true;
17967
- (_observer$complete = observer.complete) === null || _observer$complete === void 0 || _observer$complete.call(observer);
17968
- unsubscribe();
17969
- }
17970
- });
17971
- if (teardownImmediately) unsubscribe();
17972
- return { unsubscribe };
17973
- },
17974
- pipe(...operations) {
17975
- return operations.reduce(pipeReducer, self);
17976
- }
17977
- };
17978
- return self;
17979
- }
17980
- function pipeReducer(prev, fn) {
17981
- return fn(prev);
17982
- }
17983
- //#endregion
17984
17948
  //#region ../../node_modules/@msgpack/msgpack/dist.esm/utils/utf8.mjs
17985
17949
  function utf8Count(str) {
17986
17950
  const strLength = str.length;
@@ -20577,6 +20541,8 @@ var LocalChildRegistry = class {
20577
20541
  deviceCallRedirect;
20578
20542
  /** See {@link LocalChildRegistryOptions.capUsageObserver}. */
20579
20543
  capUsageObserver;
20544
+ /** See {@link LocalChildRegistryOptions.commandObserver}. */
20545
+ commandObserver;
20580
20546
  /** Tracks capNames already logged as UDS-routed; one INFO line per capName per process. */
20581
20547
  egressRoutedCaps = /* @__PURE__ */ new Set();
20582
20548
  /** Per-child event fan-out counters (sent / suppressed). */
@@ -20626,6 +20592,7 @@ var LocalChildRegistry = class {
20626
20592
  this.claimedStatus = opts.claimedStatus;
20627
20593
  this.deviceCallRedirect = opts.deviceCallRedirect;
20628
20594
  this.capUsageObserver = opts.capUsageObserver;
20595
+ this.commandObserver = opts.commandObserver;
20629
20596
  } else {
20630
20597
  this.server = serverOrOptions;
20631
20598
  this.onUnownedCall = onUnownedCallArg;
@@ -20883,6 +20850,20 @@ var LocalChildRegistry = class {
20883
20850
  * registry swallows too, and BOTH matter: this catch also covers a sink that
20884
20851
  * is not the registry.
20885
20852
  */
20853
+ recordCommand(callerChildId, out, materialise) {
20854
+ const sink = this.commandObserver;
20855
+ if (sink === void 0 || callerChildId === null) return;
20856
+ if (!isCommand(out.capName, out.method)) return;
20857
+ try {
20858
+ const claim = CommandOriginClaimSchema.safeParse(out.origin);
20859
+ reportCommand(sink, {
20860
+ capName: out.capName,
20861
+ method: out.method,
20862
+ args: materialise(),
20863
+ actor: addonCommandActor(callerChildId, claim.success ? claim.data : void 0, this.ownNodeId)
20864
+ });
20865
+ } catch {}
20866
+ }
20886
20867
  recordCapUsage(callerChildId, providerChildId, capName, methodName) {
20887
20868
  const sink = this.capUsageObserver;
20888
20869
  if (sink === void 0 || callerChildId === null) return;
@@ -21279,6 +21260,7 @@ var LocalChildRegistry = class {
21279
21260
  ...out.native === true ? { native: true } : {},
21280
21261
  ...callerStamp !== null ? { callerAddonId: callerStamp } : {}
21281
21262
  });
21263
+ this.recordCommand(childId, out, materialise);
21282
21264
  if (this.claimedStatus !== void 0 && out.method === "getStatus") {
21283
21265
  const claimed = await answerClaimedGetStatus(this.claimedStatus, {
21284
21266
  capName: out.capName,
@@ -21697,6 +21679,7 @@ var LocalChildClient = class {
21697
21679
  ...input.deviceId !== void 0 ? { deviceId: input.deviceId } : {},
21698
21680
  ...input.nodeId !== void 0 ? { nodeId: input.nodeId } : {},
21699
21681
  ...input.native === true ? { native: true } : {},
21682
+ ...input.origin !== void 0 ? { origin: input.origin } : {},
21700
21683
  ...input.actingAddonId !== void 0 ? { actingAddonId: input.actingAddonId } : {}
21701
21684
  };
21702
21685
  if (this.parentRawForward && input.args !== void 0) {
@@ -22619,12 +22602,14 @@ function ipcParentLink(getCallOut) {
22619
22602
  const inputObj = input && typeof input === "object" && !Array.isArray(input) ? input : null;
22620
22603
  const deviceId = inputObj && typeof Reflect.get(inputObj, "deviceId") === "number" ? Reflect.get(inputObj, "deviceId") : void 0;
22621
22604
  const pinnedNodeId = readNodePin(op.context);
22605
+ const origin = readCommandOrigin(op.context);
22622
22606
  const capCallInput = {
22623
22607
  capName: parsed.capName,
22624
22608
  method: parsed.method,
22625
22609
  args: op.input,
22626
22610
  ...deviceId !== void 0 ? { deviceId } : {},
22627
- ...pinnedNodeId !== void 0 ? { nodeId: pinnedNodeId } : {}
22611
+ ...pinnedNodeId !== void 0 ? { nodeId: pinnedNodeId } : {},
22612
+ ...origin !== void 0 ? { origin } : {}
22628
22613
  };
22629
22614
  return observable((observer) => {
22630
22615
  callOut(capCallInput).then((data) => {
@@ -28420,4 +28405,4 @@ function resetCatalogRegistryForTests() {
28420
28405
  }
28421
28406
  //#endregion
28422
28407
  var readAllRows = import_read_all_rows.readAllRows;
28423
- 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, HUB_RSS_BUDGET_OVERRIDE_SOURCE, HubForwarderAddon, HubForwarderDestination, HubLogForwarder, HubNodeRegistry, HubPairing, INFRA_CAPABILITIES, 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, RegistryReadError, ReplEngine, RingBuffer, RunnerOfAddon, SERVER_AUTH_OID, SERVER_NAMESPACE, SOCKET_PLANE_TOP_N, SOCKET_QUEUE_TOP_N, STALL_REPORT_MS, STALL_TICK_MS, 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, UNSUPPORTED_ADDON_SETTLE_MS, UPLOADED_CA_FILE, USER_MANAGEMENT_INTERNAL, UdsLocalTransportClient, UdsLocalTransportServer, UnlockTicketJtiStore, UnsupportedAddonTracker, 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, clearHeldInstall, clearHttpsListener, clearIntegrationRows, clearNodeSettings, 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, createMigrationApi, createMigrationApiOverContext, createOutboundQueueGate, createParentUnownedCallHandler, createProcessService, createReadinessService, createReadinessServiceForRegistry, createRequiresRegistry, 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, listHeldInstalls, 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, recordHeldInstall, 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 };
28408
+ 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, CommandObserverRegistry, 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, HUB_RSS_BUDGET_OVERRIDE_SOURCE, HubForwarderAddon, HubForwarderDestination, HubLogForwarder, HubNodeRegistry, HubPairing, INFRA_CAPABILITIES, 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, RegistryReadError, ReplEngine, RingBuffer, RunnerOfAddon, SERVER_AUTH_OID, SERVER_NAMESPACE, SOCKET_PLANE_TOP_N, SOCKET_QUEUE_TOP_N, STALL_REPORT_MS, STALL_TICK_MS, 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, UNSUPPORTED_ADDON_SETTLE_MS, UPLOADED_CA_FILE, USER_MANAGEMENT_INTERNAL, UdsLocalTransportClient, UdsLocalTransportServer, UnlockTicketJtiStore, UnsupportedAddonTracker, UserManager, WinstonDestination, WinstonLoggingAddon, ZERO_LOOP_DELAY, __resetCapUsageRegistryForTests, __resetCommandObserverRegistryForTests, __resetLoggingGateForTests, acceptAgentSans, adaptBrokerToCluster, addonCommandActor, 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, clearHeldInstall, clearHttpsListener, clearIntegrationRows, clearNodeSettings, clearPendingRestart, clearPlatformKeychainKey, closeLanHttp, clusterAgentRecordKinds, clusterEventTopic, clusterNodeHistoryRecordKind, clusterNodeTombstoneRecordKind, collectAgentNames, collectCertIdentity, collectModelFiles, commandActorFromContext, commandObserverLink, 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, createMigrationApi, createMigrationApiOverContext, createOutboundQueueGate, createParentUnownedCallHandler, createProcessService, createReadinessService, createReadinessServiceForRegistry, createRequiresRegistry, 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, getCommandObserverRegistry, 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, listHeldInstalls, 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, recordHeldInstall, recordSocketFrame, redactLogEntry, redactLogMeta, redactLogText, regenerateCertificate, registerEventBusService, registerHttpsListener, registerLanHttpHandler, reissueTlsLeaf, reloadHttpsListener, renewMeshCertificate, replaceUnconstrainedLocalCa, requireProcessMeshCa, resetCatalogRegistryForTests, resolveFilePath, resolveFormatRevision, resolveHwAccel, resolveNpmInvocation, retirePreviousLocalCa, revertToGeneratedCertificate, revisionWeightUrl, revokeMeshCertificate, runHubAddonBoot, runNpm, runObservedCommand, 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 };
@@ -43,6 +43,7 @@
43
43
  * backend coupling (self-sufficiency invariant).
44
44
  */
45
45
  import { type CapabilityDefinition, type CapabilityMountKind } from "@camstack/types";
46
+ import { type CommandObserver } from "./command-observation.js";
46
47
  /**
47
48
  * A tRPC-procedure-like builder. Mirrors the chainable surface the
48
49
  * codegen emits (`procedure.input(...).output(...).query(...)`), kept
@@ -157,6 +158,14 @@ export interface CapRouterServices {
157
158
  * to `badRequest` so the call still fails closed instead of answering 200.
158
159
  */
159
160
  readonly methodNotFound?: (capName: string, method: string) => never;
161
+ /**
162
+ * Told of every device command (a vocabulary action of a device-scope cap)
163
+ * this mount serves, with the principal from the request context and an
164
+ * outcome that settles with the call (D1022). OPTIONAL for framework-live-update
165
+ * version skew: an older server hands a services object without it and the
166
+ * mount simply reports nothing. Telemetry — it never affects the call.
167
+ */
168
+ readonly commandObserver?: CommandObserver;
160
169
  }
161
170
  /**
162
171
  * Build a single capability's router (the runtime equivalent of one
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Device command observation (D1022): the kernel side of the transition audit.
3
+ *
4
+ * A device command is observed at the seams that know WHO called, and only
5
+ * there: the hub tRPC mount (a person, a token, an integration, a mesh node),
6
+ * the UDS parent (the forked addon on the socket), and an in-process hub
7
+ * addon's own `ctx.api` (the addon stamping it). Each builds one
8
+ * {@link DeviceCommandObservation} and hands it to the process-wide registry,
9
+ * which the hub mirror's correlator subscribes to.
10
+ *
11
+ * Telemetry, not a gate (D8, D11): a missing or broken observer never affects
12
+ * the call, and the cost of a call that is not a command is one Set lookup
13
+ * (D181).
14
+ */
15
+ import type { TRPCLink } from "@trpc/client";
16
+ import type { AnyRouter } from "@trpc/server";
17
+ import type { CommandActor, DeviceCommandObservation } from "@camstack/types";
18
+ import { type CommandOriginClaim } from "@camstack/types/addon";
19
+ export type CommandObserver = (obs: DeviceCommandObservation) => void;
20
+ /** Fan-out of command observations to the subscribers of this process. */
21
+ export declare class CommandObserverRegistry {
22
+ private readonly observers;
23
+ subscribe(observer: CommandObserver): () => void;
24
+ /** How many observers are subscribed (a node that audits nothing has none). */
25
+ observerCount(): number;
26
+ observe(obs: DeviceCommandObservation): void;
27
+ }
28
+ /** The process-wide registry. */
29
+ export declare function getCommandObserverRegistry(): CommandObserverRegistry;
30
+ /** Test seam: forget every subscriber. */
31
+ export declare function __resetCommandObserverRegistryForTests(): void;
32
+ /** What a seam knows about one call it may report. */
33
+ export interface CommandCallFacts {
34
+ readonly capName: string;
35
+ readonly method: string;
36
+ /** The call's arguments as the caller sent them. */
37
+ readonly args: unknown;
38
+ readonly actor: CommandActor;
39
+ readonly outcome?: Promise<void>;
40
+ }
41
+ /**
42
+ * Build the observation for a call, or `null` when it is not a device
43
+ * command: not a vocabulary action, or its arguments name no device.
44
+ */
45
+ export declare function buildCommandObservation(call: CommandCallFacts, at: number): DeviceCommandObservation | null;
46
+ /** Report a call to `sink` when it is a device command. Never throws. */
47
+ export declare function reportCommand(sink: CommandObserver | undefined, call: CommandCallFacts, now?: () => number): void;
48
+ /**
49
+ * The actor of a command an ADDON issued. The addon id is the transport stamp.
50
+ * An origin claim adds the detail of why (an action run, a scheduler); it never
51
+ * changes who the caller is.
52
+ */
53
+ export declare function addonCommandActor(addonId: string, origin: CommandOriginClaim | undefined, nodeId?: string): CommandActor;
54
+ /**
55
+ * A tRPC link for an in-process hub addon's `ctx.api`: it reports the addon's
56
+ * device commands (the actor is the addon the client belongs to, with the origin
57
+ * claim of the call) and passes every call through untouched.
58
+ */
59
+ export declare function commandObserverLink<TRouter extends AnyRouter>(options: {
60
+ readonly callerAddonId: string;
61
+ readonly sink: CommandObserver;
62
+ }): TRPCLink<TRouter>;
63
+ /**
64
+ * Who a hub tRPC call is from, read from the request context by narrowing (the
65
+ * kernel cannot import the server's context type). A context with no HTTP
66
+ * request behind it is a mesh peer: a node. Anything without a principal is
67
+ * unknown (`null`) and the call is not reported with a made-up actor.
68
+ */
69
+ export declare function commandActorFromContext(ctx: unknown): CommandActor | null;
70
+ /**
71
+ * Report a command BEFORE it runs, with an outcome that settles when the call
72
+ * does: a provider that writes its slice synchronously must find the command
73
+ * already pending. `call` is invoked here; its result (or throw) is returned
74
+ * untouched.
75
+ */
76
+ export declare function runObservedCommand(sink: CommandObserver | undefined, facts: Omit<CommandCallFacts, "outcome">, call: () => unknown): unknown;
@@ -106,6 +106,8 @@ export type { ProcessInfo } from "./moleculer/process-service.js";
106
106
  export { AddonRefusedError, findAddonRefusal } from "./addon-refused-error.js";
107
107
  export type { RunnerRefusalReport } from "./moleculer/runner-refusal.js";
108
108
  export { signalAllRunnerGroups } from "./moleculer/runner-process-group.js";
109
+ export { CommandObserverRegistry, __resetCommandObserverRegistryForTests, addonCommandActor, commandActorFromContext, commandObserverLink, getCommandObserverRegistry, runObservedCommand } from "./command-observation.js";
110
+ export type { CommandObserver } from "./command-observation.js";
109
111
  export { CapUsageRegistry, getCapUsageRegistry, PARENT_ROUTED_PROVIDER_ADDON_ID, __resetCapUsageRegistryForTests } from "./moleculer/cap-usage-registry.js";
110
112
  export type { CapUsageCallRecord, CapUsageEdge, CapUsageRegistryOptions, CapUsageStats } from "./moleculer/cap-usage-registry.js";
111
113
  export { createScopedProcessManager } from "./moleculer/process-context.js";
@@ -1,4 +1,4 @@
1
- import type { ChildCustomActionCatalogs, CustomActionCaller, IReadinessRegistryRecord, LogLevel, LogTags, SystemEvent } from "@camstack/types";
1
+ import type { ChildCustomActionCatalogs, CommandOriginClaim, CustomActionCaller, IReadinessRegistryRecord, LogLevel, LogTags, SystemEvent } from "@camstack/types";
2
2
  import type { CapRoutingHints } from "./cap-routing-hints.js";
3
3
  /**
4
4
  * Routing descriptor a child sends so the parent can route cap calls to it.
@@ -109,6 +109,13 @@ export interface CapCallOutMessage {
109
109
  */
110
110
  readonly nodeId?: string;
111
111
  /**
112
+ * Why a device command is being issued (an action run, a scheduler): a CLAIM by
113
+ * the calling addon, carried out-of-band like the node pin and recorded as audit
114
+ * detail only (D1022). The parent re-parses it and takes the caller's identity
115
+ * from the connection, never from here.
116
+ */
117
+ readonly origin?: CommandOriginClaim;
118
+ /**
112
119
  * "Resolve the per-device NATIVE provider for this cap, never a wrapper."
113
120
  * Set by `ctx.getNativeProvider(...)` in a forked runner.
114
121
  *
@@ -172,6 +179,8 @@ export interface CapCallMessage {
172
179
  readonly deviceId?: number;
173
180
  /** Optional per-call node pin (out-of-band routing hint; see {@link CapCallOutMessage.nodeId}). */
174
181
  readonly nodeId?: string;
182
+ /** Optional command origin claim (see {@link CapCallOutMessage.origin}); child → parent leg only. */
183
+ readonly origin?: CommandOriginClaim;
175
184
  /**
176
185
  * Out-of-band PROVIDER-selection hint: the addonId of the provider the hub
177
186
  * resolved for this call. Needed for GROUPED runners where two co-located
@@ -1,5 +1,6 @@
1
1
  import type { IReadinessRegistryRecord, SystemEvent } from "@camstack/types";
2
2
  import type { CapUsageCallRecord } from "../moleculer/cap-usage-registry.js";
3
+ import { type CommandObserver } from "../command-observation.js";
3
4
  import { type CapActionReading } from "./cap-action-census.js";
4
5
  import { type CapRoutingHints } from "./cap-routing-hints.js";
5
6
  import { type DeviceCallRedirectHook } from "./device-call-redirect.js";
@@ -292,6 +293,17 @@ export interface LocalChildRegistryOptions {
292
293
  * MUST NOT throw; the call site catches anyway (see the record site).
293
294
  */
294
295
  readonly capUsageObserver?: (obs: CapUsageCallRecord) => void;
296
+ /**
297
+ * Told of every device command (a vocabulary action of a device-scope cap) a
298
+ * child issues, with the addon the SOCKET belongs to as the actor (D1022).
299
+ * An `origin` claim in the frame adds the detail of why (an action run, a
300
+ * scheduler); it is re-parsed here and never names the caller. Args are
301
+ * decoded only for a call that is a command (D448), so every other call pays
302
+ * one Set lookup. The blind spots are the ones of {@link capUsageObserver}:
303
+ * hub-main in-process addons are reported by their own client, not here.
304
+ * MUST NOT throw; the call site catches anyway.
305
+ */
306
+ readonly commandObserver?: CommandObserver;
295
307
  }
296
308
  /**
297
309
  * Parent-side authority for local addon-runners reachable over a
@@ -340,6 +352,8 @@ export declare class LocalChildRegistry {
340
352
  private readonly deviceCallRedirect?;
341
353
  /** See {@link LocalChildRegistryOptions.capUsageObserver}. */
342
354
  private readonly capUsageObserver?;
355
+ /** See {@link LocalChildRegistryOptions.commandObserver}. */
356
+ private readonly commandObserver?;
343
357
  /** Tracks capNames already logged as UDS-routed; one INFO line per capName per process. */
344
358
  private readonly egressRoutedCaps;
345
359
  /** Per-child event fan-out counters (sent / suppressed). */
@@ -518,6 +532,7 @@ export declare class LocalChildRegistry {
518
532
  * registry swallows too, and BOTH matter: this catch also covers a sink that
519
533
  * is not the registry.
520
534
  */
535
+ private recordCommand;
521
536
  private recordCapUsage;
522
537
  /**
523
538
  * The cap index over the CURRENT children, rebuilt on first use after any
@@ -1,4 +1,4 @@
1
- const require_dist = require("./dist-DZQowBDF.js");
1
+ const require_dist = require("./dist-CkJnelZr.js");
2
2
  //#region src/builtins/sqlite-storage/migrations/legacy-integration-rows-door.ts
3
3
  /**
4
4
  * Migration-only door for the leftover integration rows (planning#416).
@@ -1,4 +1,4 @@
1
- import { Fs as collectSecretMarkerRefs } from "./dist-BLxWQm_m.mjs";
1
+ import { Hs as collectSecretMarkerRefs } from "./dist-BPq13Y8j.mjs";
2
2
  //#region src/builtins/sqlite-storage/migrations/legacy-integration-rows-door.ts
3
3
  /**
4
4
  * Migration-only door for the leftover integration rows (planning#416).