@camstack/server 1.2.910 → 1.2.912
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.
- package/CHANGELOG.md +13 -0
- package/dist/agent/main.js +21 -8
- package/dist/api/core/cap-providers.js +81 -78
- package/dist/api/trpc/generated-cap-routers.js +20 -0
- package/dist/core/addon/addon-registry.service.js +25 -1
- package/dist/core/addon/instance-lifecycle.js +106 -33
- package/package.json +12 -12
- package/system/dist/addon-runner.js +229 -21
- package/system/dist/addon-runner.mjs +230 -22
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +4 -4
- package/system/dist/builtins/composer/composer.addon.mjs +4 -4
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +4 -4
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +4 -4
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.js +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/system/dist/builtins/local-network/local-network.addon.js +3 -3
- package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
- package/system/dist/builtins/loki-logging/index.js +15 -9
- package/system/dist/builtins/loki-logging/index.mjs +15 -9
- package/system/dist/builtins/loki-logging/loki-logging.addon.d.ts +6 -0
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +1 -1
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +1 -1
- package/system/dist/builtins/snapshot/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +3 -3
- package/system/dist/builtins/system-config/system-config.addon.mjs +284 -284
- package/system/dist/builtins/winston-logging/index.js +1 -1
- package/system/dist/builtins/winston-logging/index.mjs +1 -1
- package/system/dist/{capture-engine-B7DJgM95.js → capture-engine-CRXUcNzg.js} +1 -1
- package/system/dist/{capture-engine-DTx0c7kf.mjs → capture-engine-erwNulcY.mjs} +1 -1
- package/system/dist/{composition-sources-DRZuLQaM.js → composition-sources-CmJRQLAB.js} +1 -1
- package/system/dist/{composition-sources-CY6MmRpR.mjs → composition-sources-DrQFzsQU.mjs} +1 -1
- package/system/dist/{constants-BIYn2uH-.js → constants-BuRweEmb.js} +1 -1
- package/system/dist/{constants-DKNphWBk.mjs → constants-D9ZICjoN.mjs} +1 -1
- package/system/dist/{device-ca-N9oMCP1h.js → device-ca-DGwzbKB7.js} +1 -1
- package/system/dist/{device-ca-CoeuG8vp.mjs → device-ca-XXMVM6Lu.mjs} +1 -1
- package/system/dist/{dist-xH7EdlAg.js → dist-CZx3IYRz.js} +487 -39
- package/system/dist/{dist-CUt0SVMu.mjs → dist-DUYpvNfO.mjs} +486 -38
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-BPRu1Pr9.mjs → hub-identity-Dc-SOwBk.mjs} +1 -1
- package/system/dist/{hub-identity-As9K7AG1.js → hub-identity-vVRXZi0z.js} +1 -1
- package/system/dist/{hub-mdns-ciao-D4CeSt_C.mjs → hub-mdns-ciao-DpRGDUEE.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-jaGozuwj.js → hub-mdns-ciao-uCdDDwE4.js} +2 -2
- package/system/dist/index.d.ts +1 -0
- package/system/dist/index.js +228 -28
- package/system/dist/index.mjs +229 -30
- package/system/dist/kernel/moleculer/accessory-spawn-retry.d.ts +67 -0
- package/system/dist/kernel/moleculer/device-cap-proxy.d.ts +2 -0
- package/system/dist/kernel/moleculer/hub-connect-switches.d.ts +23 -0
- package/system/dist/kernel/transport/acting-addon.d.ts +5 -1
- package/system/dist/{legacy-integration-rows-door-Gk42wKsu.js → legacy-integration-rows-door-CtObsXaU.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-DAAF9Orf.mjs → legacy-integration-rows-door-DvbF3IY8.mjs} +1 -1
- package/system/dist/{rename-composition-block-CWJ_zyT_.mjs → rename-composition-block-CowZDV1m.mjs} +1 -1
- package/system/dist/{rename-composition-block-PFCvxuaj.js → rename-composition-block-rKmnICiK.js} +1 -1
- package/system/dist/{restore-archive-r_vUDU7Z.js → restore-archive-BvvAR6Ww.js} +1 -1
- package/system/dist/{restore-archive-BABm0OtJ.mjs → restore-archive-gLbz6iuS.mjs} +82 -82
- package/system/dist/{wal-maintenance-DugOl9LZ.mjs → wal-maintenance-B0uiPZUs.mjs} +0 -0
- package/system/dist/{wal-maintenance-hrjEiyFX.js → wal-maintenance-CB9zUxb-.js} +0 -0
- package/system/package.json +1 -1
package/system/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as __require } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { $i as isVoidInput, Cs as unmetRequirements, Dc as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Dl as emitDownForOwnedCaps, Du as errMsg$1, Ec as DATAPLANE_SECRET_HEADER$1, Ft as LOG_LEVEL_RANK, Gc as ReadinessRegistry, Hi as isArrayOutputSchema, Ho as scopesAllowAddon, Ia as objectInputDeclaresAddonId, Kc as ReadinessTimeoutError, La as objectInputDeclaresRequiredDeviceId, Li as interpolate, Lt as METHOD_ACCESS_MAP, Nl as getDebugInterest, Oc as DEVICE_STATUS_METHOD, Ri as isAddonInstanceId, Rl as isDebugChannelName, S as CATALOG_LANGS, Su as withoutCallerStamp, Tc as CALLER_STAMPED_CAPABILITIES$1, Tl as defineRecordKinds, Uo as scopesAllowDeviceCap, Wc as RUNTIME_DEFAULTS, Wi as isCollectionArrayMethod, Wr as describeUnmet, Yn as bareAddonId, Zi as isObjectInput, Zt as PackageRequiresSchema, a as AGENT_MDNS_SERVICE_TYPE, bl as createEvent$1, cl as asNumber, di as extractNestedAddonId, eo as procedureAuthKey, gl as collectSecretMarkerRefs, ha as looseSchema, hu as supportedRuntimes, iu as readinessKey, jl as expandCapMethods, k as CatalogFileSchema, ko as resolveMethodAuth, ku as EventCategory$1, ll as asString$1, lu as scopeKey, ma as logLevelAtMost, ns as splitTranslationRef, nu as parseJsonUnknown, o as AGENT_MDNS_TXT_KEYS, ou as resolveCapMount, s as ALL_CAPABILITY_DEFINITIONS, sa as lifecycleJobSchema, sl as asJsonObject$1, ta as kebabToCamel$1, tu as parseJsonObject, yr as compareVersions, yu as userError, zn as addonSettingsCapability } from "./dist-
|
|
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-
|
|
2
|
+
import { $i as isVoidInput, Cs as unmetRequirements, Dc as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Dl as emitDownForOwnedCaps, Du as errMsg$1, Ec as DATAPLANE_SECRET_HEADER$1, Ft as LOG_LEVEL_RANK, Gc as ReadinessRegistry, Hi as isArrayOutputSchema, Ho as scopesAllowAddon, Ia as objectInputDeclaresAddonId, Kc as ReadinessTimeoutError, La as objectInputDeclaresRequiredDeviceId, Li as interpolate, Lt as METHOD_ACCESS_MAP, Nl as getDebugInterest, Oc as DEVICE_STATUS_METHOD, Ri as isAddonInstanceId, Rl as isDebugChannelName, S as CATALOG_LANGS, Su as withoutCallerStamp, Tc as CALLER_STAMPED_CAPABILITIES$1, Tl as defineRecordKinds, Uo as scopesAllowDeviceCap, Wc as RUNTIME_DEFAULTS, Wi as isCollectionArrayMethod, Wr as describeUnmet, Yn as bareAddonId, Zi as isObjectInput, Zt as PackageRequiresSchema, a as AGENT_MDNS_SERVICE_TYPE, bl as createEvent$1, cl as asNumber, di as extractNestedAddonId, eo as procedureAuthKey, gl as collectSecretMarkerRefs, ha as looseSchema, hu as supportedRuntimes, iu as readinessKey, jl as expandCapMethods, k as CatalogFileSchema, ko as resolveMethodAuth, ku as EventCategory$1, ll as asString$1, lu as scopeKey, ma as logLevelAtMost, ns as splitTranslationRef, nu as parseJsonUnknown, o as AGENT_MDNS_TXT_KEYS, ou as resolveCapMount, s as ALL_CAPABILITY_DEFINITIONS, sa as lifecycleJobSchema, sl as asJsonObject$1, ta as kebabToCamel$1, tu as parseJsonObject, yr as compareVersions, yu as userError, zn as addonSettingsCapability } from "./dist-DUYpvNfO.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-XXMVM6Lu.mjs";
|
|
4
4
|
import { t as require_read_all_rows } from "./read-all-rows-TaPqdWNF.mjs";
|
|
5
5
|
import { a as redactLogText, i as redactLogMeta, r as redactLogEntry, t as isCredentialKeyName } from "./log-redactor-XLDrPzOi.mjs";
|
|
6
6
|
import { AlertCenterAddon, n as lastCauseAfterChunk, r as readRunnerDisplayName, t as CRASH_BREAKER_ERROR_PREFIX } from "./builtins/alerts/alerts.addon.mjs";
|
|
@@ -27,22 +27,22 @@ import { LokiDestination, LokiLoggingAddon } from "./builtins/loki-logging/index
|
|
|
27
27
|
import NativeMetricsAddon, { a as NativeMetricsProvider, i as parseProcStatusRss, n as nodeProcReader, r as parseProcStat } from "./builtins/native-metrics/native-metrics.addon.mjs";
|
|
28
28
|
import { DeviceHistoryAddon } from "./builtins/device-history/device-history.addon.mjs";
|
|
29
29
|
import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./builtins/sqlite-storage/filesystem-storage.addon.mjs";
|
|
30
|
-
import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-
|
|
31
|
-
import { n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows } from "./legacy-integration-rows-door-
|
|
30
|
+
import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-B0uiPZUs.mjs";
|
|
31
|
+
import { n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows } from "./legacy-integration-rows-door-DvbF3IY8.mjs";
|
|
32
32
|
import { SqliteSettingsAddon } from "./builtins/sqlite-storage/sqlite-settings.addon.mjs";
|
|
33
33
|
import { ConfigStore, DeviceStore } from "./builtins/sqlite-storage/index.mjs";
|
|
34
34
|
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";
|
|
35
35
|
import "./builtins/storage-orchestrator/index.mjs";
|
|
36
|
-
import { A as evaluateExistingCert, B as AGENT_HTTPS_NAMES_COLLECTION, C as localCaCommonName, D as LEAF_RENEWAL_WINDOW_DAYS, E as CA_VALIDITY_DAYS, F as isConstrainedCa, H as AgentHttpsNames, I as isLocalOnlyHostname, L as permitsIdentity, M as PERMITTED_DNS_SUFFIXES, N as PERMITTED_IP_RANGES, O as MAX_LEAF_VALIDITY_DAYS, P as buildNameConstraintSet, R as permitsName, T as systemHostFacts, U as getProcessAgentHttpsNames, V as AGENT_HTTPS_NAMES_COLUMNS, W as setProcessAgentHttpsNames, _ as pemDigest, a as AgentHttpsInstallError, c as certificateNames, d as describeHttpsLeaf, f as installAgentHttps, g as loadAgentHttps, h as issueAgentHttpsLeaf, i as loadOrCreateHubId, k as SERVER_AUTH_OID, l as collectAgentNames, m as isPrivateAddress, n as HUB_IDENTITY_RELATIVE, o as acceptAgentSans, p as isContainerBridgeAddress, r as isAnnouncedHubId, s as agentHttpsPaths, t as HUB_IDENTITY_FILE, u as createAgentHttpsRequest, v as pinnedHttpsCaFingerprint, w as collectCertIdentity, y as CA_COMMON_NAME, z as readNameConstraints } from "./hub-identity-
|
|
37
|
-
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-
|
|
36
|
+
import { A as evaluateExistingCert, B as AGENT_HTTPS_NAMES_COLLECTION, C as localCaCommonName, D as LEAF_RENEWAL_WINDOW_DAYS, E as CA_VALIDITY_DAYS, F as isConstrainedCa, H as AgentHttpsNames, I as isLocalOnlyHostname, L as permitsIdentity, M as PERMITTED_DNS_SUFFIXES, N as PERMITTED_IP_RANGES, O as MAX_LEAF_VALIDITY_DAYS, P as buildNameConstraintSet, R as permitsName, T as systemHostFacts, U as getProcessAgentHttpsNames, V as AGENT_HTTPS_NAMES_COLUMNS, W as setProcessAgentHttpsNames, _ as pemDigest, a as AgentHttpsInstallError, c as certificateNames, d as describeHttpsLeaf, f as installAgentHttps, g as loadAgentHttps, h as issueAgentHttpsLeaf, i as loadOrCreateHubId, k as SERVER_AUTH_OID, l as collectAgentNames, m as isPrivateAddress, n as HUB_IDENTITY_RELATIVE, o as acceptAgentSans, p as isContainerBridgeAddress, r as isAnnouncedHubId, s as agentHttpsPaths, t as HUB_IDENTITY_FILE, u as createAgentHttpsRequest, v as pinnedHttpsCaFingerprint, w as collectCertIdentity, y as CA_COMMON_NAME, z as readNameConstraints } from "./hub-identity-Dc-SOwBk.mjs";
|
|
37
|
+
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-D9ZICjoN.mjs";
|
|
38
38
|
import { $ as getProcessMeshCaState, A as emitProcessNodeRegistered, At as readCidrSetting, B as getProcessMeshTlsListenerState, C as verifyMembershipAnswer, Ct as isInsecureOrigin, D as ServiceBroker, Dt as createCidrMatcher, E as Errors, Et as readOriginSetting, F as onProcessNodeRegistered, G as MeshCertificateRegistry, H as setProcessMeshTlsListenerState, I as setProcessMeshHandshakeReporter, J as getProcessMeshCertificateRegistry, K as RENEWAL_ABANDONED, L as setProcessMeshPeerTransportLookup, M as getProcessNodeMeshTransport, N as getProcessPeerLeaf, O as setProcessMeshTlsEnabler, Ot as normalizeIp, P as isProcessVerifiedMeshPeer, Q as MeshCaKeeper, R as renewMeshCertificate, S as signMembershipProof, St as OPAQUE_ORIGIN, SystemConfigAddon, T as TlsTcpTransporter, Tt as parseOriginList, U as MESH_NODE_CERTIFICATES_COLLECTION, V as openMeshTlsWhenRevocationsLoaded, W as MESH_NODE_CERTIFICATES_COLUMNS, X as MeshCrl, Y as setProcessMeshCertificateRegistry, Z as processMeshCrl, _ as keyFingerprintShort, _t as isAllowedAgentDashboardReturnTo, a as dialableHubHost, at as generateMeshCa, b as MEMBERSHIP_PATHS, bt as verifyAgentUiUnlockTicket, c as PAIRING_MAX_CODE_ATTEMPTS, ct as issueMeshLeafForNode, d as PAIRING_PIN_DIGITS, dt as AGENT_DASHBOARD_ORIGINS_FIELD, et as requireProcessMeshCa, f as PAIRING_PROTOCOL, ft as AGENT_UI_UNLOCK_TTL_MS, g as describeCsr, gt as UnlockTicketJtiStore, h as computePairingSas, ht as AGENT_UI_UNLOCK_VERSION, i as AgentPairing, it as exportMeshPrivateKeyPem, j as getProcessMeshHandshakeReporter, k as dropProcessPeer, kt as parseCidrList, l as PAIRING_MAX_SESSIONS, lt as issueMeshLeafFromCsr, m as computePairingCommitment, mt as AGENT_UI_UNLOCK_USE, n as HubPairing, nt as caFingerprintCompact, o as hubHostFromMeshAddress, ot as generateMeshKeyPair, p as PAIRING_TTL_MS, pt as AGENT_UI_UNLOCK_TYP, q as describeMeshLeaf, r as PairingHttpError, rt as createMeshCsrPem, s as PAIRING_CODE_DIGITS, st as isValidAgentNodeId, tt as caFingerprint, u as PAIRING_PATHS, ut as loadMeshCa, v as signPairingProof, vt as mintAgentUiUnlockTicket, w as MESH_TLS_PORT_HELLO_FIELD, wt as normalizeOrigin, x as MembershipResponder, xt as InvalidCorsOriginError, y as verifyPairingProof, yt as parseAgentDashboardOrigins, z as revokeMeshCertificate } from "./builtins/system-config/system-config.addon.mjs";
|
|
39
39
|
import "./builtins/system-config/index.mjs";
|
|
40
40
|
import { WinstonDestination, WinstonLoggingAddon } from "./builtins/winston-logging/index.mjs";
|
|
41
41
|
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";
|
|
42
|
-
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-
|
|
42
|
+
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-DpRGDUEE.mjs";
|
|
43
43
|
import { n as getPlatformKeychainKey, r as setPlatformKeychainKey, t as clearPlatformKeychainKey } from "./platform-key-source-BWlq0jjn.mjs";
|
|
44
44
|
import { n as getSinglePidStats, t as getPidStats } from "./resource-monitor-Di9daRwI.mjs";
|
|
45
|
-
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-
|
|
45
|
+
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-gLbz6iuS.mjs";
|
|
46
46
|
import { r as nodeCoralFs, t as classifyCoralAccelerator } from "./coral-accelerators-DBlgWB8k.mjs";
|
|
47
47
|
import { z } from "zod";
|
|
48
48
|
import * as crypto$1 from "node:crypto";
|
|
@@ -53,7 +53,7 @@ import * as fs$1 from "node:fs";
|
|
|
53
53
|
import { accessSync, constants, createReadStream, createWriteStream, existsSync, readFileSync, readdirSync } from "node:fs";
|
|
54
54
|
import * as path$1 from "node:path";
|
|
55
55
|
import { basename, dirname, isAbsolute, join, resolve } from "node:path";
|
|
56
|
-
import { BOOT_RECOVERY_BACKOFF_MS, CALLER_STAMPED_CAPABILITIES, CAP_METHOD_NOT_IMPLEMENTED, CAP_METHOD_TIMEOUTS_MS, COLLECTION_ARRAY_METHODS, COMPOSED_DEVICE_STABLE_ID_PREFIX, 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, commandOrigin, createDebugEmitter, createDeviceProxy, createEvent, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, describeNvidia, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods as expandCapMethods$1, isCommand, readCommandOrigin, readErrorI18n, readNodePin, resolveDeviceSettings, scopeKey as scopeKey$1, sleep, switchRefusesSetState, withCapInputDefaults } from "@camstack/types/addon";
|
|
56
|
+
import { BOOT_RECOVERY_BACKOFF_MS, CALLER_STAMPED_CAPABILITIES, CAP_METHOD_NOT_IMPLEMENTED, CAP_METHOD_TIMEOUTS_MS, COLLECTION_ARRAY_METHODS, COMPOSED_DEVICE_STABLE_ID_PREFIX, CommandOriginClaimSchema, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DEVICE_RESTORE_RETRY_DELAYS_MS, 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, commandOrigin, createDebugEmitter, createDeviceProxy, createEvent, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, describeNvidia, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods as expandCapMethods$1, isCommand, isInstanceSwitchesUnreadError, readCommandOrigin, readErrorI18n, readNodePin, resolveDeviceSettings, scopeKey as scopeKey$1, sleep, switchRefusesSetState, withCapInputDefaults } from "@camstack/types/addon";
|
|
57
57
|
import { mkdir, rm, stat, unlink } from "node:fs/promises";
|
|
58
58
|
import * as util from "node:util";
|
|
59
59
|
import { promisify } from "node:util";
|
|
@@ -1222,6 +1222,25 @@ function formatSocketPlane(window) {
|
|
|
1222
1222
|
return ` socketPeers=${window.peersMeasured}/${window.peersConnected} socketTx=${formatDirection(window.tx)} socketRx=${formatDirection(window.rx)}` + (top.length === 0 ? "" : ` socketTop=${top}`) + (topBytes.length === 0 ? "" : ` socketTopBytes=${topBytes}`) + ` socketQueued=${kb$1(window.queued.totalBytes)}kB` + (window.queued.unmeasured === 0 ? "" : ` socketQueuedUnmeasured=${window.queued.unmeasured}`) + (queuedTop.length === 0 ? "" : ` socketQueuedTop=${queuedTop}`) + (window.forward === void 0 ? "" : ` socketFwd=${window.forward.raw}/${window.forward.decoded}`) + (window.actions === void 0 ? "" : ` socketActions=${kb$1(window.actions.labelledBytes)}/${kb$1(window.actions.totalBytes)}kB` + (window.actions.top.length === 0 ? "" : ` socketTopActions=${window.actions.top.map(formatAction).join(",")}`));
|
|
1223
1223
|
}
|
|
1224
1224
|
//#endregion
|
|
1225
|
+
//#region src/kernel/moleculer/hub-connect-switches.ts
|
|
1226
|
+
/**
|
|
1227
|
+
* On a hub connect, every addon with instance kinds reads its switches from the registry again
|
|
1228
|
+
* (D1066). Event-driven, no timer (D3): the next connect retries. A forked runner's FIRST connect
|
|
1229
|
+
* is its boot, so a registry that still does not answer ends the process and the supervisor
|
|
1230
|
+
* respawns it, bounded and marked terminally failed (D6), instead of leaving instances off.
|
|
1231
|
+
*/
|
|
1232
|
+
async function rehydrateSwitchesOnHubConnect(entries, deps) {
|
|
1233
|
+
for (const entry of entries) {
|
|
1234
|
+
if (entry.addon.rehydrateSwitches === void 0) continue;
|
|
1235
|
+
try {
|
|
1236
|
+
await entry.addon.rehydrateSwitches();
|
|
1237
|
+
} catch (err) {
|
|
1238
|
+
if (deps.fatalOnUnread && isInstanceSwitchesUnreadError(err)) deps.exit(entry.addonId, err);
|
|
1239
|
+
else deps.onUnread(entry.addonId, err);
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
//#endregion
|
|
1225
1244
|
//#region src/kernel/moleculer/mesh-queue-report.ts
|
|
1226
1245
|
function isRecord$6(value) {
|
|
1227
1246
|
return typeof value === "object" && value !== null;
|
|
@@ -5705,7 +5724,7 @@ var IntegrationRegistry = class IntegrationRegistry {
|
|
|
5705
5724
|
await this.resumeCounter();
|
|
5706
5725
|
}
|
|
5707
5726
|
async resumeCounter() {
|
|
5708
|
-
const rows = await (0, import_read_all_rows.readAllRows)(this.recordStores.integrations, { order: "id" });
|
|
5727
|
+
const rows = (await (0, import_read_all_rows.readAllRows)(this.recordStores.integrations, { order: "id" })).filter((r) => /^int_\d+$/.test(r.id));
|
|
5709
5728
|
rows.sort((a, b) => b.id.localeCompare(a.id));
|
|
5710
5729
|
const top = rows[0];
|
|
5711
5730
|
if (top !== void 0) {
|
|
@@ -5718,7 +5737,7 @@ var IntegrationRegistry = class IntegrationRegistry {
|
|
|
5718
5737
|
...rawInput,
|
|
5719
5738
|
addonId: bareAddonId(rawInput.addonId)
|
|
5720
5739
|
};
|
|
5721
|
-
const id = nextIntegrationId();
|
|
5740
|
+
const id = input.id ?? nextIntegrationId();
|
|
5722
5741
|
const now = Math.floor(Date.now() / 1e3);
|
|
5723
5742
|
const enabled = input.enabled !== false;
|
|
5724
5743
|
const info = input.info ?? {};
|
|
@@ -5734,7 +5753,7 @@ var IntegrationRegistry = class IntegrationRegistry {
|
|
|
5734
5753
|
await this.recordStores.integrations.put({
|
|
5735
5754
|
id,
|
|
5736
5755
|
data: body
|
|
5737
|
-
});
|
|
5756
|
+
}, input.id === void 0 ? void 0 : { ifRev: 0 });
|
|
5738
5757
|
return mapIntegrationBody(id, body);
|
|
5739
5758
|
}
|
|
5740
5759
|
async getIntegration(id) {
|
|
@@ -14003,6 +14022,156 @@ var AccessoryShrinkGate = class {
|
|
|
14003
14022
|
}
|
|
14004
14023
|
};
|
|
14005
14024
|
//#endregion
|
|
14025
|
+
//#region src/kernel/moleculer/accessory-spawn-retry.ts
|
|
14026
|
+
/** A spawn failure that knows which step threw. */
|
|
14027
|
+
var AccessorySpawnStepError = class extends Error {
|
|
14028
|
+
step;
|
|
14029
|
+
/** The child's numeric id once allocated; null when allocation itself failed. */
|
|
14030
|
+
deviceId;
|
|
14031
|
+
constructor(step, deviceId, cause) {
|
|
14032
|
+
const reason = cause instanceof Error ? cause.message : String(cause);
|
|
14033
|
+
super(`${step}: ${reason}`, { cause });
|
|
14034
|
+
this.name = "AccessorySpawnStepError";
|
|
14035
|
+
this.step = step;
|
|
14036
|
+
this.deviceId = deviceId;
|
|
14037
|
+
}
|
|
14038
|
+
};
|
|
14039
|
+
function describeError(error) {
|
|
14040
|
+
if (error instanceof AccessorySpawnStepError) return {
|
|
14041
|
+
step: error.step,
|
|
14042
|
+
reason: error.message.slice(error.step.length + 2)
|
|
14043
|
+
};
|
|
14044
|
+
return {
|
|
14045
|
+
step: "unknown",
|
|
14046
|
+
reason: error instanceof Error ? error.message : String(error)
|
|
14047
|
+
};
|
|
14048
|
+
}
|
|
14049
|
+
var AccessorySpawnRetry = class AccessorySpawnRetry {
|
|
14050
|
+
#logger;
|
|
14051
|
+
#delaysMs;
|
|
14052
|
+
/** Pending spawns, by `<parent>:<child stableId>`. */
|
|
14053
|
+
#pending = /* @__PURE__ */ new Map();
|
|
14054
|
+
/** Gave up — sticks until the parent is registered again. */
|
|
14055
|
+
#gaveUp = /* @__PURE__ */ new Set();
|
|
14056
|
+
constructor(options) {
|
|
14057
|
+
this.#logger = options.logger;
|
|
14058
|
+
this.#delaysMs = options.delaysMs ?? DEVICE_RESTORE_RETRY_DELAYS_MS;
|
|
14059
|
+
}
|
|
14060
|
+
static #key(parentDeviceId, stableId) {
|
|
14061
|
+
return `${parentDeviceId}:${stableId}`;
|
|
14062
|
+
}
|
|
14063
|
+
/** The parent went away (teardown / shutdown): drop its pending rounds and its give-ups. */
|
|
14064
|
+
cancelParent(parentDeviceId) {
|
|
14065
|
+
for (const [key, entry] of this.#pending) {
|
|
14066
|
+
if (entry.parentDeviceId !== parentDeviceId) continue;
|
|
14067
|
+
entry.cancelled = true;
|
|
14068
|
+
if (entry.timer !== null) clearTimeout(entry.timer);
|
|
14069
|
+
this.#pending.delete(key);
|
|
14070
|
+
}
|
|
14071
|
+
this.#forgetGiveUps(parentDeviceId);
|
|
14072
|
+
}
|
|
14073
|
+
/** The parent registered again: a fresh chance for children that gave up. */
|
|
14074
|
+
resetParent(parentDeviceId) {
|
|
14075
|
+
this.#forgetGiveUps(parentDeviceId);
|
|
14076
|
+
}
|
|
14077
|
+
#forgetGiveUps(parentDeviceId) {
|
|
14078
|
+
const prefix = `${parentDeviceId}:`;
|
|
14079
|
+
for (const key of this.#gaveUp) if (key.startsWith(prefix)) this.#gaveUp.delete(key);
|
|
14080
|
+
}
|
|
14081
|
+
/** Record the initial failure and run the bounded rounds in the background. */
|
|
14082
|
+
schedule(request) {
|
|
14083
|
+
const key = AccessorySpawnRetry.#key(request.parentDeviceId, request.stableId);
|
|
14084
|
+
if (this.#pending.has(key)) return;
|
|
14085
|
+
if (this.#gaveUp.has(key)) {
|
|
14086
|
+
this.#logger.debug("Accessory child spawn skipped — gave up earlier, parent not re-registered", {
|
|
14087
|
+
tags: { parentDeviceId: request.parentDeviceId },
|
|
14088
|
+
meta: { stableId: request.stableId }
|
|
14089
|
+
});
|
|
14090
|
+
return;
|
|
14091
|
+
}
|
|
14092
|
+
const entry = {
|
|
14093
|
+
parentDeviceId: request.parentDeviceId,
|
|
14094
|
+
cancelled: false,
|
|
14095
|
+
timer: null
|
|
14096
|
+
};
|
|
14097
|
+
this.#pending.set(key, entry);
|
|
14098
|
+
this.#record(request, request.deviceId, request.error, 0, false);
|
|
14099
|
+
this.#run(key, entry, request);
|
|
14100
|
+
}
|
|
14101
|
+
#record(request, deviceId, error, retry, terminal) {
|
|
14102
|
+
const { step, reason } = describeError(error);
|
|
14103
|
+
this.#logger.error(terminal ? "Accessory child spawn gave up after the bounded retries" : "Accessory child spawn failed", {
|
|
14104
|
+
tags: {
|
|
14105
|
+
...deviceId === null ? {} : { deviceId },
|
|
14106
|
+
parentDeviceId: request.parentDeviceId
|
|
14107
|
+
},
|
|
14108
|
+
meta: {
|
|
14109
|
+
stableId: request.stableId,
|
|
14110
|
+
step,
|
|
14111
|
+
error: reason,
|
|
14112
|
+
retry,
|
|
14113
|
+
max: this.#delaysMs.length
|
|
14114
|
+
}
|
|
14115
|
+
});
|
|
14116
|
+
}
|
|
14117
|
+
async #run(key, entry, request) {
|
|
14118
|
+
let lastError = request.error;
|
|
14119
|
+
let deviceId = request.deviceId;
|
|
14120
|
+
for (let round = 1; round <= this.#delaysMs.length; round += 1) {
|
|
14121
|
+
await this.#sleep(entry, this.#delaysMs[round - 1] ?? 0);
|
|
14122
|
+
if (entry.cancelled) return;
|
|
14123
|
+
if (!request.isParentRegistered()) {
|
|
14124
|
+
this.#pending.delete(key);
|
|
14125
|
+
this.#logger.info("Accessory child spawn retry skipped — parent no longer registered", {
|
|
14126
|
+
tags: {
|
|
14127
|
+
...deviceId === null ? {} : { deviceId },
|
|
14128
|
+
parentDeviceId: request.parentDeviceId
|
|
14129
|
+
},
|
|
14130
|
+
meta: {
|
|
14131
|
+
stableId: request.stableId,
|
|
14132
|
+
retry: round
|
|
14133
|
+
}
|
|
14134
|
+
});
|
|
14135
|
+
return;
|
|
14136
|
+
}
|
|
14137
|
+
try {
|
|
14138
|
+
await request.attempt({ final: round === this.#delaysMs.length });
|
|
14139
|
+
if (entry.cancelled) return;
|
|
14140
|
+
this.#pending.delete(key);
|
|
14141
|
+
this.#logger.info("Accessory child spawned on retry", {
|
|
14142
|
+
tags: {
|
|
14143
|
+
...deviceId === null ? {} : { deviceId },
|
|
14144
|
+
parentDeviceId: request.parentDeviceId
|
|
14145
|
+
},
|
|
14146
|
+
meta: {
|
|
14147
|
+
stableId: request.stableId,
|
|
14148
|
+
retry: round
|
|
14149
|
+
}
|
|
14150
|
+
});
|
|
14151
|
+
return;
|
|
14152
|
+
} catch (err) {
|
|
14153
|
+
if (entry.cancelled) return;
|
|
14154
|
+
lastError = err;
|
|
14155
|
+
if (err instanceof AccessorySpawnStepError && err.deviceId !== null) deviceId = err.deviceId;
|
|
14156
|
+
if (round < this.#delaysMs.length) this.#record(request, deviceId, err, round, false);
|
|
14157
|
+
}
|
|
14158
|
+
}
|
|
14159
|
+
this.#record(request, deviceId, lastError, this.#delaysMs.length, true);
|
|
14160
|
+
this.#pending.delete(key);
|
|
14161
|
+
this.#gaveUp.add(key);
|
|
14162
|
+
}
|
|
14163
|
+
#sleep(entry, ms) {
|
|
14164
|
+
return new Promise((resolve) => {
|
|
14165
|
+
const timer = setTimeout(() => {
|
|
14166
|
+
entry.timer = null;
|
|
14167
|
+
resolve();
|
|
14168
|
+
}, ms);
|
|
14169
|
+
timer.unref?.();
|
|
14170
|
+
entry.timer = timer;
|
|
14171
|
+
});
|
|
14172
|
+
}
|
|
14173
|
+
};
|
|
14174
|
+
//#endregion
|
|
14006
14175
|
//#region src/kernel/moleculer/runtime-state-load.ts
|
|
14007
14176
|
/** A device build refused because its runtime state could not be loaded. */
|
|
14008
14177
|
var RuntimeStateLoadError = class extends Error {
|
|
@@ -14546,6 +14715,10 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
14546
14715
|
const resolveParentIntegrationId = async (parentId) => {
|
|
14547
14716
|
return (await callDeviceManager(api, "loadMeta", { deviceId: parentId }).catch(() => null))?.integrationId ?? void 0;
|
|
14548
14717
|
};
|
|
14718
|
+
const accessorySpawnRetry = new AccessorySpawnRetry({
|
|
14719
|
+
logger: opts.logger,
|
|
14720
|
+
...opts.accessorySpawnRetryDelaysMs !== void 0 ? { delaysMs: opts.accessorySpawnRetryDelaysMs } : {}
|
|
14721
|
+
});
|
|
14549
14722
|
/**
|
|
14550
14723
|
* Spawn one accessory child device declared by a parent's
|
|
14551
14724
|
* `getAccessoryChildren()`. Mirrors the standard `create()` flow
|
|
@@ -14555,9 +14728,20 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
14555
14728
|
* row already exists, `persistInitialConfig` is skipped (config
|
|
14556
14729
|
* arg empty) and the child self-hydrates from `loadConfig`.
|
|
14557
14730
|
*/
|
|
14558
|
-
const spawnAccessoryChild = async (parent, spec) => {
|
|
14731
|
+
const spawnAccessoryChild = async (parent, spec, spawnOptions = { final: false }) => {
|
|
14559
14732
|
const childStableId = `${parent.stableId}-${spec.stableIdSuffix}`;
|
|
14560
|
-
|
|
14733
|
+
let allocatedId = null;
|
|
14734
|
+
try {
|
|
14735
|
+
return await spawnAccessoryChildSteps(parent, spec, childStableId, (id) => {
|
|
14736
|
+
allocatedId = id;
|
|
14737
|
+
}, spawnOptions);
|
|
14738
|
+
} catch (err) {
|
|
14739
|
+
throw err instanceof AccessorySpawnStepError ? err : new AccessorySpawnStepError("register", allocatedId, err);
|
|
14740
|
+
}
|
|
14741
|
+
};
|
|
14742
|
+
const spawnAccessoryChildSteps = async (parent, spec, childStableId, onAllocated, spawnOptions) => {
|
|
14743
|
+
const id = await deviceApi.allocateDeviceId(childStableId).catch((err) => Promise.reject(new AccessorySpawnStepError("allocateDeviceId", null, err)));
|
|
14744
|
+
onAllocated(id);
|
|
14561
14745
|
const existing = registry.getById(id);
|
|
14562
14746
|
if (existing && existing.stableId === childStableId) return existing;
|
|
14563
14747
|
const empty = {};
|
|
@@ -14574,12 +14758,17 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
14574
14758
|
...spec.meta.type !== void 0 ? { type: spec.meta.type } : {},
|
|
14575
14759
|
...integrationId !== void 0 ? { integrationId } : {}
|
|
14576
14760
|
}).catch((err) => {
|
|
14577
|
-
|
|
14761
|
+
if (!spawnOptions.final) return Promise.reject(new AccessorySpawnStepError("applyInitialMeta", id, err));
|
|
14762
|
+
opts.logger.error("Accessory child spawned WITHOUT its meta pre-seed after the last retry", {
|
|
14578
14763
|
tags: {
|
|
14579
|
-
|
|
14580
|
-
|
|
14764
|
+
deviceId: id,
|
|
14765
|
+
parentDeviceId: parent.id
|
|
14581
14766
|
},
|
|
14582
|
-
meta: {
|
|
14767
|
+
meta: {
|
|
14768
|
+
step: "applyInitialMeta",
|
|
14769
|
+
stableId: childStableId,
|
|
14770
|
+
error: err instanceof Error ? err.message : String(err)
|
|
14771
|
+
}
|
|
14583
14772
|
});
|
|
14584
14773
|
});
|
|
14585
14774
|
if (isFirstSpawn && Object.keys(spec.config).length > 0) await callDeviceManager(api, "persistConfig", {
|
|
@@ -14587,7 +14776,7 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
14587
14776
|
data: spec.config
|
|
14588
14777
|
}).catch(() => {});
|
|
14589
14778
|
const [initialRuntimeState, loadedConfig, deviceMeta] = await Promise.all([
|
|
14590
|
-
loadRuntimeStateFor(id, childStableId, "accessory-child"),
|
|
14779
|
+
loadRuntimeStateFor(id, childStableId, "accessory-child").catch((err) => Promise.reject(new AccessorySpawnStepError("loadRuntimeState", id, err))),
|
|
14591
14780
|
callDeviceManager(api, "loadConfig", { deviceId: id }).catch(() => empty),
|
|
14592
14781
|
callDeviceManager(api, "loadMeta", { deviceId: id }).catch(() => null)
|
|
14593
14782
|
]);
|
|
@@ -14626,6 +14815,7 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
14626
14815
|
*/
|
|
14627
14816
|
const teardownLocal = async (deviceId, runLifecycle) => {
|
|
14628
14817
|
const device = registry.getById(deviceId);
|
|
14818
|
+
accessorySpawnRetry.cancelParent(deviceId);
|
|
14629
14819
|
cancelProbeRetry(deviceId);
|
|
14630
14820
|
if (!device) return;
|
|
14631
14821
|
const children = registry.getChildren(deviceId);
|
|
@@ -14870,6 +15060,7 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
14870
15060
|
if (!opts.capabilityRegistry) workerNativeCaps.get("device-ops")?.delete(device.id);
|
|
14871
15061
|
throw err;
|
|
14872
15062
|
}
|
|
15063
|
+
accessorySpawnRetry.resetParent(device.id);
|
|
14873
15064
|
const lifecycleHost = device;
|
|
14874
15065
|
const shrinkGate = new AccessoryShrinkGate();
|
|
14875
15066
|
const runReconcileNow = async () => {
|
|
@@ -14907,14 +15098,14 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
14907
15098
|
try {
|
|
14908
15099
|
await spawnAccessoryChild(device, spec);
|
|
14909
15100
|
} catch (err) {
|
|
14910
|
-
|
|
14911
|
-
|
|
14912
|
-
|
|
14913
|
-
|
|
14914
|
-
|
|
14915
|
-
|
|
14916
|
-
|
|
14917
|
-
|
|
15101
|
+
accessorySpawnRetry.schedule({
|
|
15102
|
+
deviceId: err instanceof AccessorySpawnStepError ? err.deviceId : null,
|
|
15103
|
+
stableId: `${device.stableId}-${spec.stableIdSuffix}`,
|
|
15104
|
+
parentDeviceId: device.id,
|
|
15105
|
+
error: err,
|
|
15106
|
+
isParentRegistered: () => registry.getById(device.id) !== null,
|
|
15107
|
+
attempt: async (attemptOptions) => {
|
|
15108
|
+
await spawnAccessoryChild(device, spec, attemptOptions);
|
|
14918
15109
|
}
|
|
14919
15110
|
});
|
|
14920
15111
|
}
|
|
@@ -18259,8 +18450,16 @@ async function answerDeviceCallRedirect(hook, call) {
|
|
|
18259
18450
|
* child therefore claims the addon it acts for, and the parent checks the claim against its own
|
|
18260
18451
|
* runner map before it stamps the call with it.
|
|
18261
18452
|
*/
|
|
18262
|
-
/**
|
|
18263
|
-
|
|
18453
|
+
/**
|
|
18454
|
+
* The caps whose rows and secret refs are keyed by the calling ADDON, not by its runner.
|
|
18455
|
+
* `integrations`: `adoptInstanceRows` lets an addon state rows of its OWN instances only, so a
|
|
18456
|
+
* grouped addon stamped with its group was refused its own rows and its migration blocked it.
|
|
18457
|
+
*/
|
|
18458
|
+
var ADDON_KEYED_CAPS = [
|
|
18459
|
+
"records",
|
|
18460
|
+
"migrations",
|
|
18461
|
+
"integrations"
|
|
18462
|
+
];
|
|
18264
18463
|
/** A child claimed an addon its runner does not host. Typed so a caller can tell it from a crash. */
|
|
18265
18464
|
var ActingAddonRefusedError = class extends Error {
|
|
18266
18465
|
runnerId;
|
|
@@ -26278,4 +26477,4 @@ function resetCatalogRegistryForTests() {
|
|
|
26278
26477
|
}
|
|
26279
26478
|
//#endregion
|
|
26280
26479
|
var readAllRows = import_read_all_rows.readAllRows;
|
|
26281
|
-
export { ADDON_INSTANCE_SEGMENT, 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, CommandFollowUpRegistry, 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_IDENTITY_FILE, HUB_IDENTITY_RELATIVE, 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, StateRefreshPolicyRegistry, 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, __resetCommandFollowUpRegistryForTests, __resetCommandObserverRegistryForTests, __resetLoggingGateForTests, __resetStateRefreshPolicyRegistryForTests, 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, currentCapCallContext, decideAddonVersionMove, deleteModelFromDisk, deriveAgentListenPort, describeCsr, describeHttpsLeaf, describeMeshLeaf, describeProviderKindDrift, describeRss, deviceCapResolverLink, deviceOfGetStatus, dialableHubHost, 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, getCommandFollowUpRegistry, getCommandObserverRegistry, getFfmpegDownloadUrl, getLocalEventInterest, getLoggingGate, getModelFilePath, getMoleculerEventStats, getOrInitReadinessRegistry, getOrInitReadinessRegistryForClient, getPidStats, getPlatformInfo, getPlatformKeychainKey, getProcessAgentHttpsNames, getProcessJwtSigningKeyState, getProcessMeshCaState, getProcessMeshCertificateRegistry, getProcessMeshHandshakeReporter, getProcessMeshTlsListenerState, getProcessNodeMeshTransport, getProcessPeerLeaf, getPythonDownloadUrl, getRestartMarkerPath, getSinglePidStats, getStateRefreshPolicyRegistry, getUserManagementInternal, getWorkerDeviceRegistry, hasDotNode, heapSpaceField, hostNodeIdOf, hubHostFromMeshAddress, hubMainRssBudget, hubServerVersionOf, installAgentHttps, installBrokerTransporter, installManifestNativeDeps, installManifestPythonDeps, installManifestSystemDeps, installPackageFromNpm, installPythonPackages, installPythonRequirements, integrationRegistryRecordKinds, ipcParentLink, isAddonDeploySource, isAllowedAgentDashboardReturnTo, isAnnouncedHubId, 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, loadOrCreateHubId, 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, readCurrentCommandOrigin, 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, resolveAddonInstancePath, resolveFilePath, resolveFormatRevision, resolveHwAccel, resolveNpmInvocation, retirePreviousLocalCa, revertToGeneratedCertificate, revisionWeightUrl, revokeMeshCertificate, runHubAddonBoot, runNpm, runObservedCommand, runWithCapCallContext, sampleSocketDirection, scheduleSelfRestart, scopeKey, scopesAllowAddon, scopesAllowDeviceCap, selectAddonResidue, selectReportedSpaces, serializeTypedArrays, servedHttpsLeafFingerprint, setHubConnected, setHuggingFaceReachabilityObserver, setNodeEventInterest, setPlatformKeychainKey, setProcessAgentHttpsNames, setProcessMeshCertificateRegistry, setProcessMeshHandshakeReporter, 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 };
|
|
26480
|
+
export { ADDON_INSTANCE_SEGMENT, 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, CommandFollowUpRegistry, 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_IDENTITY_FILE, HUB_IDENTITY_RELATIVE, 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, StateRefreshPolicyRegistry, 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, __resetCommandFollowUpRegistryForTests, __resetCommandObserverRegistryForTests, __resetLoggingGateForTests, __resetStateRefreshPolicyRegistryForTests, 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, currentCapCallContext, decideAddonVersionMove, deleteModelFromDisk, deriveAgentListenPort, describeCsr, describeHttpsLeaf, describeMeshLeaf, describeProviderKindDrift, describeRss, deviceCapResolverLink, deviceOfGetStatus, dialableHubHost, 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, getCommandFollowUpRegistry, getCommandObserverRegistry, getFfmpegDownloadUrl, getLocalEventInterest, getLoggingGate, getModelFilePath, getMoleculerEventStats, getOrInitReadinessRegistry, getOrInitReadinessRegistryForClient, getPidStats, getPlatformInfo, getPlatformKeychainKey, getProcessAgentHttpsNames, getProcessJwtSigningKeyState, getProcessMeshCaState, getProcessMeshCertificateRegistry, getProcessMeshHandshakeReporter, getProcessMeshTlsListenerState, getProcessNodeMeshTransport, getProcessPeerLeaf, getPythonDownloadUrl, getRestartMarkerPath, getSinglePidStats, getStateRefreshPolicyRegistry, getUserManagementInternal, getWorkerDeviceRegistry, hasDotNode, heapSpaceField, hostNodeIdOf, hubHostFromMeshAddress, hubMainRssBudget, hubServerVersionOf, installAgentHttps, installBrokerTransporter, installManifestNativeDeps, installManifestPythonDeps, installManifestSystemDeps, installPackageFromNpm, installPythonPackages, installPythonRequirements, integrationRegistryRecordKinds, ipcParentLink, isAddonDeploySource, isAllowedAgentDashboardReturnTo, isAnnouncedHubId, 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, loadOrCreateHubId, 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, readCurrentCommandOrigin, readExtraSans, readHeapSpaces, readLanHttpState, readNameConstraints, readOriginSetting, readPendingRestart, readSocketQueues, readTlsAccessStatus, readTlsEnabled, readTlsMode, readinessKey, reclaimIntervalMs, recordHeldInstall, recordSocketFrame, redactLogEntry, redactLogMeta, redactLogText, regenerateCertificate, registerEventBusService, registerHttpsListener, registerLanHttpHandler, rehydrateSwitchesOnHubConnect, reissueTlsLeaf, reloadHttpsListener, renewMeshCertificate, replaceUnconstrainedLocalCa, requireProcessMeshCa, resetCatalogRegistryForTests, resolveAddonInstancePath, resolveFilePath, resolveFormatRevision, resolveHwAccel, resolveNpmInvocation, retirePreviousLocalCa, revertToGeneratedCertificate, revisionWeightUrl, revokeMeshCertificate, runHubAddonBoot, runNpm, runObservedCommand, runWithCapCallContext, sampleSocketDirection, scheduleSelfRestart, scopeKey, scopesAllowAddon, scopesAllowDeviceCap, selectAddonResidue, selectReportedSpaces, serializeTypedArrays, servedHttpsLeafFingerprint, setHubConnected, setHuggingFaceReachabilityObserver, setNodeEventInterest, setPlatformKeychainKey, setProcessAgentHttpsNames, setProcessMeshCertificateRegistry, setProcessMeshHandshakeReporter, 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 };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bounded retry for a failed accessory-child spawn (the D347 shape).
|
|
3
|
+
*
|
|
4
|
+
* WHY: Phase 4b of the kernel reconcile spawns every accessory child a parent
|
|
5
|
+
* declares. A spawn is a chain of hub dials (`allocateDeviceId`,
|
|
6
|
+
* `applyInitialMeta`, `loadRuntimeState`, `register`); when the hub is briefly
|
|
7
|
+
* busy one of them times out, and until now the failure was logged at WARN and
|
|
8
|
+
* NEVER retried — the child's native caps never entered the worker map and
|
|
9
|
+
* every call answered "binding not yet in LocalChildRegistry" until the addon
|
|
10
|
+
* restarted (Petlibro fountain pump, switches 5329/5065/5094/5107).
|
|
11
|
+
*
|
|
12
|
+
* This is the same class of problem as `DeviceRestoreRetryScheduler` (D347,
|
|
13
|
+
* packages/types/src/device/device-restore-retry.ts) and follows its sanctioned
|
|
14
|
+
* shape exactly: a bounded number of rounds on the SHARED
|
|
15
|
+
* `DEVICE_RESTORE_RETRY_DELAYS_MS` schedule, then a terminal, VISIBLE state
|
|
16
|
+
* (D6): an ERROR log tagged `deviceId`, then a sticky give-up (see below).
|
|
17
|
+
* It is not a wait-for-a-node timer (D3): a retry re-runs the child's own
|
|
18
|
+
* failed dial, it does not poll a registry.
|
|
19
|
+
*
|
|
20
|
+
* Lifecycle: the rounds die with the parent (`cancelParent`, called from the
|
|
21
|
+
* parent's teardown, and `isParentRegistered` is checked before every attempt).
|
|
22
|
+
* A give-up STICKS per (parent, child) for the life of the process — a later
|
|
23
|
+
* reconcile does not restart the rounds — until the parent is registered again
|
|
24
|
+
* (`resetParent`). On the LAST attempt the spawn may fall back to registering
|
|
25
|
+
* the child without its meta pre-seed (`final: true`), so a permanently failing
|
|
26
|
+
* pre-seed never leaves a healthy child unregistered.
|
|
27
|
+
*/
|
|
28
|
+
import type { IScopedLogger } from "@camstack/types";
|
|
29
|
+
/** The spawn step that failed — named in every log line. */
|
|
30
|
+
export type AccessorySpawnStep = "allocateDeviceId" | "applyInitialMeta" | "loadRuntimeState" | "register";
|
|
31
|
+
/** A spawn failure that knows which step threw. */
|
|
32
|
+
export declare class AccessorySpawnStepError extends Error {
|
|
33
|
+
readonly step: AccessorySpawnStep;
|
|
34
|
+
/** The child's numeric id once allocated; null when allocation itself failed. */
|
|
35
|
+
readonly deviceId: number | null;
|
|
36
|
+
constructor(step: AccessorySpawnStep, deviceId: number | null, cause: unknown);
|
|
37
|
+
}
|
|
38
|
+
export interface AccessorySpawnRetryOptions {
|
|
39
|
+
readonly logger: IScopedLogger;
|
|
40
|
+
readonly delaysMs?: readonly number[];
|
|
41
|
+
}
|
|
42
|
+
export interface AccessorySpawnAttemptOptions {
|
|
43
|
+
/** True on the last round: tolerate a failing meta pre-seed (log it at ERROR). */
|
|
44
|
+
readonly final: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface AccessorySpawnRetryRequest {
|
|
47
|
+
/** Null when `allocateDeviceId` itself failed (no id exists yet). */
|
|
48
|
+
readonly deviceId: number | null;
|
|
49
|
+
readonly stableId: string;
|
|
50
|
+
readonly parentDeviceId: number;
|
|
51
|
+
/** True while the parent is still registered in this process. */
|
|
52
|
+
readonly isParentRegistered: () => boolean;
|
|
53
|
+
/** Re-runs the whole spawn; throws on failure, resolves once the child is registered. */
|
|
54
|
+
readonly attempt: (options: AccessorySpawnAttemptOptions) => Promise<void>;
|
|
55
|
+
/** The failure of the initial attempt. */
|
|
56
|
+
readonly error: unknown;
|
|
57
|
+
}
|
|
58
|
+
export declare class AccessorySpawnRetry {
|
|
59
|
+
#private;
|
|
60
|
+
constructor(options: AccessorySpawnRetryOptions);
|
|
61
|
+
/** The parent went away (teardown / shutdown): drop its pending rounds and its give-ups. */
|
|
62
|
+
cancelParent(parentDeviceId: number): void;
|
|
63
|
+
/** The parent registered again: a fresh chance for children that gave up. */
|
|
64
|
+
resetParent(parentDeviceId: number): void;
|
|
65
|
+
/** Record the initial failure and run the bounded rounds in the background. */
|
|
66
|
+
schedule(request: AccessorySpawnRetryRequest): void;
|
|
67
|
+
}
|
|
@@ -21,6 +21,8 @@ export interface WorkerDeviceManagerOptions {
|
|
|
21
21
|
*/
|
|
22
22
|
readonly udsMode?: boolean;
|
|
23
23
|
readonly streamProbe?: IKernelStreamProbe;
|
|
24
|
+
/** Retry delays for a failed accessory spawn; defaults to the D347 schedule. */
|
|
25
|
+
readonly accessorySpawnRetryDelaysMs?: readonly number[];
|
|
24
26
|
}
|
|
25
27
|
/** Subscribe to worker native-cap set changes. Pass null to clear. */
|
|
26
28
|
export declare function setWorkerNativeCapsChangeListener(listener: (() => void) | null): void;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** The part of a loaded addon the hub-connect hook needs. */
|
|
2
|
+
export interface SwitchHydratingAddon {
|
|
3
|
+
readonly addonId: string;
|
|
4
|
+
readonly addon: {
|
|
5
|
+
rehydrateSwitches?(): Promise<void>;
|
|
6
|
+
onHubReachable?(): Promise<void> | void;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export interface HubConnectSwitchesDeps {
|
|
10
|
+
/** Raw log of a failure; never throws. */
|
|
11
|
+
readonly onUnread: (addonId: string, err: unknown) => void;
|
|
12
|
+
/** The first connect of a forked runner: an unread registry fails the boot (D6 bounds the respawn). */
|
|
13
|
+
readonly fatalOnUnread: boolean;
|
|
14
|
+
/** Leave the process; injected so a spec can observe it. */
|
|
15
|
+
readonly exit: (addonId: string, err: unknown) => void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* On a hub connect, every addon with instance kinds reads its switches from the registry again
|
|
19
|
+
* (D1066). Event-driven, no timer (D3): the next connect retries. A forked runner's FIRST connect
|
|
20
|
+
* is its boot, so a registry that still does not answer ends the process and the supervisor
|
|
21
|
+
* respawns it, bounded and marked terminally failed (D6), instead of leaving instances off.
|
|
22
|
+
*/
|
|
23
|
+
export declare function rehydrateSwitchesOnHubConnect(entries: readonly SwitchHydratingAddon[], deps: HubConnectSwitchesDeps): Promise<void>;
|
|
@@ -6,7 +6,11 @@
|
|
|
6
6
|
* child therefore claims the addon it acts for, and the parent checks the claim against its own
|
|
7
7
|
* runner map before it stamps the call with it.
|
|
8
8
|
*/
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* The caps whose rows and secret refs are keyed by the calling ADDON, not by its runner.
|
|
11
|
+
* `integrations`: `adoptInstanceRows` lets an addon state rows of its OWN instances only, so a
|
|
12
|
+
* grouped addon stamped with its group was refused its own rows and its migration blocked it.
|
|
13
|
+
*/
|
|
10
14
|
export declare const ADDON_KEYED_CAPS: readonly string[];
|
|
11
15
|
/** A child claimed an addon its runner does not host. Typed so a caller can tell it from a crash. */
|
|
12
16
|
export declare class ActingAddonRefusedError extends Error {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { gl as collectSecretMarkerRefs } from "./dist-
|
|
1
|
+
import { gl as collectSecretMarkerRefs } from "./dist-DUYpvNfO.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).
|
package/system/dist/{rename-composition-block-CWJ_zyT_.mjs → rename-composition-block-CowZDV1m.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Cu as COMPOSED_DEVICE_STABLE_ID_PREFIX, Du as errMsg } from "./dist-
|
|
1
|
+
import { Cu as COMPOSED_DEVICE_STABLE_ID_PREFIX, Du as errMsg } from "./dist-DUYpvNfO.mjs";
|
|
2
2
|
//#region src/builtins/core-blocks/rename-composition-block.ts
|
|
3
3
|
/**
|
|
4
4
|
* An operator rename of a composed device writes the composition block's
|