@camstack/server 1.2.789 → 1.2.790
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 +8 -0
- package/dist/agent/agent-child-manifest.js +39 -0
- package/dist/agent/agent-hub-registration.js +11 -1
- package/dist/agent/forward-to-hub.js +43 -0
- package/dist/agent/main.js +31 -81
- package/dist/agent/stale-addon-gate.js +70 -34
- package/dist/api/trpc/generated-cap-mounts.js +1 -6
- package/dist/api/trpc/generated-cap-routers.js +1221 -1417
- package/dist/core/addon/addon-registry.service.js +25 -33
- package/dist/core/addon/boot-health-snapshot.js +0 -28
- package/dist/core/addon/{hub-spawn-gate.js → hub-addon-support.js} +12 -35
- package/dist/core/moleculer/moleculer.service.js +2 -13
- package/dist/core/moleculer/runner-hosted-on-node.js +23 -0
- package/dist/core/updates/required-addon-update.js +1 -1
- package/package.json +25 -9
- package/system/dist/{agent-https-jJDe-XNl.js → agent-https-BmXXKQAA.js} +1 -1
- package/system/dist/{agent-https-szf2FU49.mjs → agent-https-ByceQLwr.mjs} +1 -1
- 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.d.ts +8 -0
- package/system/dist/builtins/alerts/alerts.addon.js +72 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +72 -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 +3 -3
- package/system/dist/builtins/composer/composer.addon.mjs +3 -3
- 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 +11 -5
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +11 -5
- 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 +1 -1
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
- 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 +2 -2
- package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
- package/system/dist/builtins/loki-logging/index.js +1 -1
- package/system/dist/builtins/loki-logging/index.mjs +1 -1
- 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/access-guards.d.ts +1 -1
- package/system/dist/builtins/storage-orchestrator/custom-actions.d.ts +11 -0
- package/system/dist/builtins/storage-orchestrator/index.d.ts +1 -0
- package/system/dist/builtins/storage-orchestrator/index.js +2 -0
- package/system/dist/builtins/storage-orchestrator/index.mjs +2 -2
- package/system/dist/builtins/storage-orchestrator/location-instances.d.ts +72 -0
- package/system/dist/builtins/storage-orchestrator/location-repoint-move.d.ts +1 -1
- package/system/dist/builtins/storage-orchestrator/location-secret-refs.d.ts +26 -0
- package/system/dist/builtins/storage-orchestrator/location-store.d.ts +28 -2
- package/system/dist/builtins/storage-orchestrator/migrations/index.d.ts +9 -2
- package/system/dist/builtins/storage-orchestrator/migrations/legacy-location-secret-refs.d.ts +13 -0
- package/system/dist/builtins/storage-orchestrator/migrations/location-secret-ports.d.ts +15 -0
- package/system/dist/builtins/storage-orchestrator/migrations/location-secrets-to-record.d.ts +57 -0
- package/system/dist/builtins/storage-orchestrator/provider-discovery.d.ts +10 -13
- package/system/dist/builtins/storage-orchestrator/record-kinds.d.ts +6 -0
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.d.ts +39 -8
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +954 -131
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +954 -132
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.service.d.ts +8 -0
- 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 +112 -3
- package/system/dist/builtins/winston-logging/index.mjs +112 -3
- package/system/dist/builtins/winston-logging/migrations/index.d.ts +8 -0
- package/system/dist/builtins/winston-logging/migrations/node-fields.d.ts +43 -0
- package/system/dist/builtins/winston-logging/winston-logging.addon.d.ts +10 -2
- package/system/dist/{capture-engine-DNHgjQot.js → capture-engine-BHj1fNYC.js} +1 -1
- package/system/dist/{capture-engine-BsKY_3xa.mjs → capture-engine-D9n4KDaN.mjs} +1 -1
- package/system/dist/{composition-sources-BgO0GQYW.js → composition-sources-BGgIuuvd.js} +1 -1
- package/system/dist/{composition-sources-BRdGsbVT.mjs → composition-sources-wI4qWTz2.mjs} +1 -1
- package/system/dist/{constants-CQeMrR4f.mjs → constants-DHqkxbYk.mjs} +1 -1
- package/system/dist/{constants-C3jGKQSQ.js → constants-DNdriMRD.js} +1 -1
- package/system/dist/{device-ca-D3y6wGmn.js → device-ca-C2RzT1VT.js} +1 -1
- package/system/dist/{device-ca-ByVi5eUC.mjs → device-ca-gr5eE3h5.mjs} +1 -1
- package/system/dist/{dist-BsQA6-0i.mjs → dist-BUoL5bbr.mjs} +116 -418
- package/system/dist/{dist-BRI-Mwx0.js → dist-DV0V3JiE.js} +133 -417
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-Ry_Jpljx.js → hub-mdns-ciao-Be5PGXW6.js} +2 -2
- package/system/dist/{hub-mdns-ciao-8dJTW2LI.mjs → hub-mdns-ciao-DoSb8dwB.mjs} +2 -2
- package/system/dist/index.js +151 -53
- package/system/dist/index.mjs +151 -55
- package/system/dist/kernel/addon-health-monitor.d.ts +0 -21
- package/system/dist/kernel/index.d.ts +2 -0
- package/system/dist/kernel/transport/runner-of-addon.d.ts +2 -0
- package/system/dist/kernel/unsupported-addon-tracker.d.ts +74 -0
- package/system/dist/{legacy-integration-rows-door-D5BdSNla.js → legacy-integration-rows-door-D5s8oM7e.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-CjXTbmvH.mjs → legacy-integration-rows-door-DRC0xn6k.mjs} +1 -1
- package/system/dist/{restore-archive-vn4co_kf.mjs → restore-archive-DH3P9j-V.mjs} +82 -82
- package/system/dist/{restore-archive-GoWJMdHy.js → restore-archive-Dh4gfCRY.js} +1 -1
- package/system/dist/{wal-maintenance-CadfiGWy.mjs → wal-maintenance-BWfH3Lov.mjs} +0 -0
- package/system/dist/{wal-maintenance-sSlXJm4k.js → wal-maintenance-DgN_WD5T.js} +0 -0
- package/system/package.json +4 -1
package/system/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as __require } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
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 { $r as isObjectInput, Ba as supportedRuntimes, Cc as userError, Cs as asString$1, D as CatalogFileSchema, Go as DEVICE_STATUS_METHOD, Gs as isDebugChannelName, Ho as CALLER_STAMPED_CAPABILITIES$1, Is as defineRecordKinds, Jr as isCollectionArrayMethod, Ls as emitDownForOwnedCaps, Ma as splitTranslationRef, Ni as objectInputDeclaresAddonId, Nt as PackageRequiresSchema, Oc as errMsg$1, Pi as objectInputDeclaresRequiredDeviceId, Sa as scopesAllowDeviceCap, Ss as asNumber, St as METHOD_ACCESS_MAP, Tn as bareAddonId, Un as compareVersions, Uo as DATAPLANE_SECRET_HEADER$1, Ur as interpolate, Vs as getDebugInterest, Wo as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Yi as procedureAuthKey, a as AGENT_MDNS_SERVICE_TYPE, b as CATALOG_LANGS, bt as LOG_LEVEL_RANK, cc as parseJsonObject, cs as ReadinessTimeoutError, dc as readinessKey, fa as resolveMethodAuth, fr as describeUnmet, gn as addonSettingsCapability, hc as scopeKey, hi as looseSchema, js as createEvent$1, kc as EventCategory$1, kr as extractNestedAddonId, ks as collectSecretMarkerRefs, lc as parseJsonUnknown, mi as logLevelAtMost, ni as kebabToCamel$1, o as AGENT_MDNS_TXT_KEYS, os as RUNTIME_DEFAULTS, pc as resolveCapMount, qa as unmetRequirements, qr as isArrayOutputSchema, s as ALL_CAPABILITY_DEFINITIONS, si as lifecycleJobSchema, ss as ReadinessRegistry, ti as isVoidInput, wc as withoutCallerStamp, xa as scopesAllowAddon, xs as asJsonObject$1, zs as expandCapMethods } from "./dist-BUoL5bbr.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-gr5eE3h5.mjs";
|
|
4
4
|
import { t as require_read_all_rows } from "./read-all-rows-TaPqdWNF.mjs";
|
|
5
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";
|
|
6
6
|
import "./builtins/alerts/index.mjs";
|
|
@@ -25,22 +25,22 @@ import { LokiDestination, LokiLoggingAddon } from "./builtins/loki-logging/index
|
|
|
25
25
|
import NativeMetricsAddon, { a as NativeMetricsProvider, i as parseProcStatusRss, n as nodeProcReader, r as parseProcStat } from "./builtins/native-metrics/native-metrics.addon.mjs";
|
|
26
26
|
import { DeviceHistoryAddon } from "./builtins/device-history/device-history.addon.mjs";
|
|
27
27
|
import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./builtins/sqlite-storage/filesystem-storage.addon.mjs";
|
|
28
|
-
import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-
|
|
29
|
-
import { n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows } from "./legacy-integration-rows-door-
|
|
28
|
+
import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-BWfH3Lov.mjs";
|
|
29
|
+
import { n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows } from "./legacy-integration-rows-door-DRC0xn6k.mjs";
|
|
30
30
|
import { SqliteSettingsAddon } from "./builtins/sqlite-storage/sqlite-settings.addon.mjs";
|
|
31
31
|
import { ConfigStore, DeviceStore } from "./builtins/sqlite-storage/index.mjs";
|
|
32
|
-
import { StorageOrchestratorAddon, a as
|
|
32
|
+
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
33
|
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-
|
|
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-
|
|
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-ByceQLwr.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-DHqkxbYk.mjs";
|
|
36
36
|
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
37
|
import "./builtins/system-config/index.mjs";
|
|
38
38
|
import { WinstonDestination, WinstonLoggingAddon } from "./builtins/winston-logging/index.mjs";
|
|
39
39
|
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-
|
|
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-DoSb8dwB.mjs";
|
|
41
41
|
import { n as getPlatformKeychainKey, r as setPlatformKeychainKey, t as clearPlatformKeychainKey } from "./platform-key-source-BWlq0jjn.mjs";
|
|
42
42
|
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-
|
|
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-DH3P9j-V.mjs";
|
|
44
44
|
import { r as nodeCoralFs, t as classifyCoralAccelerator } from "./coral-accelerators-DBlgWB8k.mjs";
|
|
45
45
|
import { z } from "zod";
|
|
46
46
|
import * as crypto$1 from "node:crypto";
|
|
@@ -19712,6 +19712,12 @@ var RunnerOfAddon = class {
|
|
|
19712
19712
|
this.byAddon.set(addonId, runnerId);
|
|
19713
19713
|
return runnerId;
|
|
19714
19714
|
}
|
|
19715
|
+
/** The addons the spawn plan put in `runnerId` (a solo runner records itself: `[addonId]`; an addon never planned here is not listed). */
|
|
19716
|
+
addonsOf(runnerId) {
|
|
19717
|
+
const out = [];
|
|
19718
|
+
for (const [addonId, runner] of this.byAddon) if (runner === runnerId) out.push(addonId);
|
|
19719
|
+
return out;
|
|
19720
|
+
}
|
|
19715
19721
|
resolve = (addonId) => this.byAddon.get(addonId) ?? addonId;
|
|
19716
19722
|
};
|
|
19717
19723
|
//#endregion
|
|
@@ -25554,7 +25560,6 @@ var AddonHealthMonitor = class {
|
|
|
25554
25560
|
logger;
|
|
25555
25561
|
retryFn;
|
|
25556
25562
|
now;
|
|
25557
|
-
isHeldBack;
|
|
25558
25563
|
timer = null;
|
|
25559
25564
|
graceEmittedFor = false;
|
|
25560
25565
|
constructor(opts) {
|
|
@@ -25562,7 +25567,6 @@ var AddonHealthMonitor = class {
|
|
|
25562
25567
|
this.logger = opts.logger;
|
|
25563
25568
|
this.retryFn = opts.retryFn;
|
|
25564
25569
|
this.now = opts.now ?? (() => Date.now());
|
|
25565
|
-
this.isHeldBack = opts.isHeldBack ?? (() => false);
|
|
25566
25570
|
this.tickIntervalMs = opts.tickIntervalMs ?? 3e4;
|
|
25567
25571
|
this.gracePeriodMs = opts.gracePeriodMs ?? 3e5;
|
|
25568
25572
|
this.retryIntervalsMs = opts.retryIntervalsMs ?? HEALTH_MONITOR_RETRY_INTERVALS_MS;
|
|
@@ -25590,8 +25594,7 @@ var AddonHealthMonitor = class {
|
|
|
25590
25594
|
lastError: null,
|
|
25591
25595
|
nextRetryAt: null,
|
|
25592
25596
|
alertEmitted: false,
|
|
25593
|
-
retrying: false
|
|
25594
|
-
heldBack: false
|
|
25597
|
+
retrying: false
|
|
25595
25598
|
});
|
|
25596
25599
|
if (wasAlerting) this.emit(EventCategory$1.AddonLoadRecovered, {
|
|
25597
25600
|
packageName,
|
|
@@ -25606,11 +25609,6 @@ var AddonHealthMonitor = class {
|
|
|
25606
25609
|
*/
|
|
25607
25610
|
recordFailure(packageName, err, addonId) {
|
|
25608
25611
|
const existing = this.state.get(packageName);
|
|
25609
|
-
const id = addonId ?? existing?.addonId;
|
|
25610
|
-
if (id !== void 0 && this.isHeldBack(id)) {
|
|
25611
|
-
this.recordHeldBack(packageName, errMsg$1(err), id);
|
|
25612
|
-
return;
|
|
25613
|
-
}
|
|
25614
25612
|
const t = this.now();
|
|
25615
25613
|
const retryCount = (existing?.retryCount ?? 0) + 1;
|
|
25616
25614
|
const intervalIdx = Math.min(retryCount - 1, this.retryIntervalsMs.length - 1);
|
|
@@ -25629,8 +25627,7 @@ var AddonHealthMonitor = class {
|
|
|
25629
25627
|
lastError: errPayload,
|
|
25630
25628
|
nextRetryAt,
|
|
25631
25629
|
alertEmitted: existing?.alertEmitted ?? false,
|
|
25632
|
-
retrying: false
|
|
25633
|
-
heldBack: false
|
|
25630
|
+
retrying: false
|
|
25634
25631
|
};
|
|
25635
25632
|
this.state.set(packageName, next);
|
|
25636
25633
|
this.logger.warn("Addon load/init failure recorded", { meta: {
|
|
@@ -25659,39 +25656,6 @@ var AddonHealthMonitor = class {
|
|
|
25659
25656
|
}
|
|
25660
25657
|
}
|
|
25661
25658
|
/**
|
|
25662
|
-
* The spawn gate holds this addon back (its package is not yet at the version the
|
|
25663
|
-
* server requires). Not a failure: the same retry backoff is armed, so the addon
|
|
25664
|
-
* is reloaded once its package is current, but no failure is logged as a warning
|
|
25665
|
-
* and no `AddonLoadFailed` / `AddonRetryScheduled` event is emitted. A retry that
|
|
25666
|
-
* finds the gate open records success the normal way.
|
|
25667
|
-
*/
|
|
25668
|
-
recordHeldBack(packageName, reason, addonId) {
|
|
25669
|
-
const existing = this.state.get(packageName);
|
|
25670
|
-
const t = this.now();
|
|
25671
|
-
const retryCount = (existing?.retryCount ?? 0) + 1;
|
|
25672
|
-
const nextRetryAt = t + this.retryIntervalsMs[Math.min(retryCount - 1, this.retryIntervalsMs.length - 1)];
|
|
25673
|
-
this.state.set(packageName, {
|
|
25674
|
-
packageName,
|
|
25675
|
-
addonId: addonId ?? existing?.addonId,
|
|
25676
|
-
phase: "failed",
|
|
25677
|
-
retryCount,
|
|
25678
|
-
firstFailureAt: existing?.firstFailureAt ?? t,
|
|
25679
|
-
lastAttemptAt: t,
|
|
25680
|
-
lastError: { message: reason },
|
|
25681
|
-
nextRetryAt,
|
|
25682
|
-
alertEmitted: false,
|
|
25683
|
-
retrying: false,
|
|
25684
|
-
heldBack: true
|
|
25685
|
-
});
|
|
25686
|
-
this.logger.info("Addon held back by the stale gate, retry armed", { meta: {
|
|
25687
|
-
packageName,
|
|
25688
|
-
addonId: addonId ?? existing?.addonId,
|
|
25689
|
-
retryCount,
|
|
25690
|
-
nextRetryAt,
|
|
25691
|
-
reason
|
|
25692
|
-
} });
|
|
25693
|
-
}
|
|
25694
|
-
/**
|
|
25695
25659
|
* Force an immediate retry attempt for a package, resetting the
|
|
25696
25660
|
* counter back to 0 (next failure goes to the 60s interval again).
|
|
25697
25661
|
* Used by the user-facing `addons.retryLoad` tRPC procedure and by
|
|
@@ -25768,7 +25732,7 @@ var AddonHealthMonitor = class {
|
|
|
25768
25732
|
const t = this.now();
|
|
25769
25733
|
if (!this.inGracePeriod() && !this.graceEmittedFor) {
|
|
25770
25734
|
this.graceEmittedFor = true;
|
|
25771
|
-
for (const s of this.state.values()) if (s.phase === "failed" && !s.
|
|
25735
|
+
for (const s of this.state.values()) if (s.phase === "failed" && !s.alertEmitted && s.lastError) {
|
|
25772
25736
|
s.alertEmitted = true;
|
|
25773
25737
|
this.emit(EventCategory$1.AddonLoadFailed, {
|
|
25774
25738
|
packageName: s.packageName,
|
|
@@ -25815,6 +25779,138 @@ var AddonHealthMonitor = class {
|
|
|
25815
25779
|
}
|
|
25816
25780
|
};
|
|
25817
25781
|
//#endregion
|
|
25782
|
+
//#region src/kernel/unsupported-addon-tracker.ts
|
|
25783
|
+
/**
|
|
25784
|
+
* The operator alert for an addon that RUNS below the version the server needs.
|
|
25785
|
+
*
|
|
25786
|
+
* An addon whose installed package is under the running server's minimum
|
|
25787
|
+
* (`camstack.requires.addons`, or its own `requires.server`) is always started:
|
|
25788
|
+
* a held-back addon is invisible and silently loses its function, and the
|
|
25789
|
+
* `CrashSupervisor` (D6) already bounds a crash loop. What the operator needs is
|
|
25790
|
+
* to SEE it, so this tracker turns the gate's verdict into one alert pair on the
|
|
25791
|
+
* usual AlertCenter path, the way `AddonHealthMonitor` does for a load failure:
|
|
25792
|
+
*
|
|
25793
|
+
* - `AddonUnsupportedVersion` once per streak (same package, same installed
|
|
25794
|
+
* version, same unmet facts), after a short settle window so the alert
|
|
25795
|
+
* centre is subscribed even when the verdict comes from the first boot plan;
|
|
25796
|
+
* - `AddonUnsupportedResolved` when a later judgement finds the package
|
|
25797
|
+
* supported, or the node's installed set no longer holds it, which dismisses
|
|
25798
|
+
* the alert.
|
|
25799
|
+
*
|
|
25800
|
+
* One tracker per process; the verdict is re-judged on every spawn path, and
|
|
25801
|
+
* `observe` is idempotent; given the node's full installed set, a streak whose
|
|
25802
|
+
* package is no longer installed is resolved too. State is in memory: a restart raises a still-
|
|
25803
|
+
* unsupported addon once more, and AlertCenter upserts it under the same id.
|
|
25804
|
+
*/
|
|
25805
|
+
var UNSUPPORTED_ADDON_SETTLE_MS = 6e4;
|
|
25806
|
+
var UnsupportedAddonTracker = class {
|
|
25807
|
+
options;
|
|
25808
|
+
streaks = /* @__PURE__ */ new Map();
|
|
25809
|
+
settleMs;
|
|
25810
|
+
now;
|
|
25811
|
+
startedAt;
|
|
25812
|
+
timer = null;
|
|
25813
|
+
logged = /* @__PURE__ */ new Set();
|
|
25814
|
+
constructor(options) {
|
|
25815
|
+
this.options = options;
|
|
25816
|
+
this.settleMs = options.settleMs ?? 6e4;
|
|
25817
|
+
this.now = options.now ?? (() => Date.now());
|
|
25818
|
+
this.startedAt = this.now();
|
|
25819
|
+
}
|
|
25820
|
+
/**
|
|
25821
|
+
* One gate run. `judged` is every package the run looked at, `unsupported` the
|
|
25822
|
+
* subset below its minimum. A judged package with a streak that is not in
|
|
25823
|
+
* `unsupported` any more is resolved; a package this run did not judge is left alone.
|
|
25824
|
+
* `installed`, when the run saw the node's FULL package set, also resolves every
|
|
25825
|
+
* streak whose package is not in it (uninstalled).
|
|
25826
|
+
*/
|
|
25827
|
+
observe(judged, unsupported, installed) {
|
|
25828
|
+
if (installed !== void 0) {
|
|
25829
|
+
const present = new Set(installed);
|
|
25830
|
+
for (const packageName of [...this.streaks.keys()]) if (!present.has(packageName)) this.resolve(packageName);
|
|
25831
|
+
}
|
|
25832
|
+
const unsupportedNames = new Set(unsupported.map((f) => f.packageName));
|
|
25833
|
+
for (const packageName of judged) if (!unsupportedNames.has(packageName)) this.resolve(packageName);
|
|
25834
|
+
for (const facts of unsupported) this.raise(facts);
|
|
25835
|
+
this.flush();
|
|
25836
|
+
}
|
|
25837
|
+
/** Log a line the first time only (an unjudged addon is reported once, not on every judgement). */
|
|
25838
|
+
logOnce(line) {
|
|
25839
|
+
if (this.logged.has(line)) return;
|
|
25840
|
+
this.logged.add(line);
|
|
25841
|
+
this.options.log(line);
|
|
25842
|
+
}
|
|
25843
|
+
/** Stop the settle timer (shutdown). */
|
|
25844
|
+
stop() {
|
|
25845
|
+
if (this.timer !== null) clearTimeout(this.timer);
|
|
25846
|
+
this.timer = null;
|
|
25847
|
+
}
|
|
25848
|
+
raise(facts) {
|
|
25849
|
+
const existing = this.streaks.get(facts.packageName);
|
|
25850
|
+
if (existing !== void 0 && sameFacts(existing.facts, facts)) return;
|
|
25851
|
+
this.options.log(`[unsupported-addon] ${facts.addonId} (${facts.packageName}@${facts.installedVersion}) runs below what this server requires: ${facts.unmet.join("; ")}`);
|
|
25852
|
+
this.streaks.set(facts.packageName, {
|
|
25853
|
+
facts,
|
|
25854
|
+
raised: false
|
|
25855
|
+
});
|
|
25856
|
+
}
|
|
25857
|
+
resolve(packageName) {
|
|
25858
|
+
const streak = this.streaks.get(packageName);
|
|
25859
|
+
if (streak === void 0) return;
|
|
25860
|
+
this.streaks.delete(packageName);
|
|
25861
|
+
if (!streak.raised) return;
|
|
25862
|
+
this.options.log(`[unsupported-addon] ${streak.facts.addonId} (${packageName}) is supported again, alert cleared`);
|
|
25863
|
+
this.emit(EventCategory$1.AddonUnsupportedResolved, {
|
|
25864
|
+
packageName,
|
|
25865
|
+
addonId: streak.facts.addonId,
|
|
25866
|
+
nodeId: this.options.nodeId
|
|
25867
|
+
});
|
|
25868
|
+
}
|
|
25869
|
+
/** Emit every pending streak once the settle window is over; otherwise arm one timer for its end. */
|
|
25870
|
+
flush() {
|
|
25871
|
+
const remaining = this.startedAt + this.settleMs - this.now();
|
|
25872
|
+
if (remaining > 0) {
|
|
25873
|
+
if (this.timer === null && this.streaks.size > 0) {
|
|
25874
|
+
this.timer = setTimeout(() => {
|
|
25875
|
+
this.timer = null;
|
|
25876
|
+
this.flush();
|
|
25877
|
+
}, remaining);
|
|
25878
|
+
this.timer.unref();
|
|
25879
|
+
}
|
|
25880
|
+
return;
|
|
25881
|
+
}
|
|
25882
|
+
for (const streak of this.streaks.values()) {
|
|
25883
|
+
if (streak.raised) continue;
|
|
25884
|
+
streak.raised = true;
|
|
25885
|
+
const f = streak.facts;
|
|
25886
|
+
this.emit(EventCategory$1.AddonUnsupportedVersion, {
|
|
25887
|
+
packageName: f.packageName,
|
|
25888
|
+
addonId: f.addonId,
|
|
25889
|
+
nodeId: this.options.nodeId,
|
|
25890
|
+
installedVersion: f.installedVersion,
|
|
25891
|
+
requiredMinimum: f.requiredMinimum,
|
|
25892
|
+
serverVersion: f.serverVersion,
|
|
25893
|
+
unmet: [...f.unmet]
|
|
25894
|
+
});
|
|
25895
|
+
}
|
|
25896
|
+
}
|
|
25897
|
+
emit(category, data) {
|
|
25898
|
+
this.options.eventBus.emit({
|
|
25899
|
+
id: randomUUID(),
|
|
25900
|
+
timestamp: /* @__PURE__ */ new Date(),
|
|
25901
|
+
category,
|
|
25902
|
+
source: {
|
|
25903
|
+
type: "addon",
|
|
25904
|
+
id: String(data["packageName"])
|
|
25905
|
+
},
|
|
25906
|
+
data
|
|
25907
|
+
});
|
|
25908
|
+
}
|
|
25909
|
+
};
|
|
25910
|
+
function sameFacts(a, b) {
|
|
25911
|
+
return a.installedVersion === b.installedVersion && a.requiredMinimum === b.requiredMinimum && a.serverVersion === b.serverVersion && a.unmet.join("\n") === b.unmet.join("\n");
|
|
25912
|
+
}
|
|
25913
|
+
//#endregion
|
|
25818
25914
|
//#region src/kernel/moleculer/runner-refusal.ts
|
|
25819
25915
|
var REFUSED_PREFIX = "REFUSED:";
|
|
25820
25916
|
function isReport(value) {
|
|
@@ -28227,4 +28323,4 @@ function resetCatalogRegistryForTests() {
|
|
|
28227
28323
|
}
|
|
28228
28324
|
//#endregion
|
|
28229
28325
|
var readAllRows = import_read_all_rows.readAllRows;
|
|
28230
|
-
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, UPLOADED_CA_FILE, USER_MANAGEMENT_INTERNAL, UdsLocalTransportClient, UdsLocalTransportServer, UnlockTicketJtiStore, UserManager, WinstonDestination, WinstonLoggingAddon, ZERO_LOOP_DELAY, __resetCapUsageRegistryForTests, __resetLoggingGateForTests, acceptAgentSans, adaptBrokerToCluster, addonSettingsCapability, adoptModelRevisions, afterWorkerOnlineAnnounce, agentHttpsPaths, allFamiliesListenHost, answerClaimedGetStatus, answerDeviceCallRedirect, applyCertificateToListener, applyLanHttp, asBrokerLike, attachUserManagementInternal, attributeStall, backupOrchestratorRecordKinds, backupRecordStoresOf, bareAddonOf, bindPendingLanHttp, bootstrapSchema, brokerCallForCap, brokerTransportLink, buildAgentAnnouncement, buildBinaryPath, buildCapRouters, buildHeapSample, buildLinkChain, buildNameConstraintSet, buildNativeCapProxy, buildNodeManifest, buildNpmChildEnv, buildStorageLocationRegistry, buildTransporter, builderMountedCapNames, caFingerprint, caFingerprintCompact, caReplacementMarkerFile, callRegisterNodeWithRetry, callWithServiceDiscovery, canServeDataPlane, capActionLabel, capActionName, capActionSuffix, capBareAction, capServiceName, catalogNamespaceOf, certificateNames, chainsToPublicRoot, checkUploadedCa, classifyAddonDir, classifyCapRoute, 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 };
|
|
28326
|
+
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 };
|
|
@@ -63,12 +63,6 @@ export interface AddonHealthState {
|
|
|
63
63
|
alertEmitted: boolean;
|
|
64
64
|
/** True if a retry attempt is currently in flight. */
|
|
65
65
|
retrying: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* True while the hub spawn gate holds the addon back (its package is below what
|
|
68
|
-
* the running server requires). Retried on the same backoff, but never a
|
|
69
|
-
* failure: no alert, no failure event.
|
|
70
|
-
*/
|
|
71
|
-
heldBack: boolean;
|
|
72
66
|
}
|
|
73
67
|
export interface AddonHealthSnapshot {
|
|
74
68
|
readonly packageName: string;
|
|
@@ -84,7 +78,6 @@ export interface AddonHealthSnapshot {
|
|
|
84
78
|
readonly nextRetryAt: number | null;
|
|
85
79
|
readonly alertEmitted: boolean;
|
|
86
80
|
readonly retrying: boolean;
|
|
87
|
-
readonly heldBack: boolean;
|
|
88
81
|
/** Whether the boot grace window is still open (suppresses alerts). */
|
|
89
82
|
readonly inGracePeriod: boolean;
|
|
90
83
|
}
|
|
@@ -98,11 +91,6 @@ export interface AddonHealthMonitorOptions {
|
|
|
98
91
|
* success; throws on failure (the monitor records the new error).
|
|
99
92
|
*/
|
|
100
93
|
readonly retryFn: (packageName: string) => Promise<void>;
|
|
101
|
-
/**
|
|
102
|
-
* Whether the spawn gate currently holds this addon back. A failure recorded for
|
|
103
|
-
* a held-back addon (a retry the gate refused) stays a quiet retry, not an alert.
|
|
104
|
-
*/
|
|
105
|
-
readonly isHeldBack?: (addonId: string) => boolean;
|
|
106
94
|
/** Override for tests. Defaults to `HEALTH_MONITOR_TICK_MS`. */
|
|
107
95
|
readonly tickIntervalMs?: number;
|
|
108
96
|
/** Override for tests. Defaults to `HEALTH_MONITOR_GRACE_PERIOD_MS`. */
|
|
@@ -122,7 +110,6 @@ export declare class AddonHealthMonitor {
|
|
|
122
110
|
private readonly logger;
|
|
123
111
|
private readonly retryFn;
|
|
124
112
|
private readonly now;
|
|
125
|
-
private readonly isHeldBack;
|
|
126
113
|
private timer;
|
|
127
114
|
private graceEmittedFor;
|
|
128
115
|
constructor(opts: AddonHealthMonitorOptions);
|
|
@@ -141,14 +128,6 @@ export declare class AddonHealthMonitor {
|
|
|
141
128
|
*/
|
|
142
129
|
recordFailure(packageName: string, err: unknown, addonId?: string): void;
|
|
143
130
|
/**
|
|
144
|
-
* The spawn gate holds this addon back (its package is not yet at the version the
|
|
145
|
-
* server requires). Not a failure: the same retry backoff is armed, so the addon
|
|
146
|
-
* is reloaded once its package is current, but no failure is logged as a warning
|
|
147
|
-
* and no `AddonLoadFailed` / `AddonRetryScheduled` event is emitted. A retry that
|
|
148
|
-
* finds the gate open records success the normal way.
|
|
149
|
-
*/
|
|
150
|
-
recordHeldBack(packageName: string, reason: string, addonId?: string): void;
|
|
151
|
-
/**
|
|
152
131
|
* Force an immediate retry attempt for a package, resetting the
|
|
153
132
|
* counter back to 0 (next failure goes to the 60s interval again).
|
|
154
133
|
* Used by the user-facing `addons.retryLoad` tRPC procedure and by
|
|
@@ -93,6 +93,8 @@ export type { InstallManifestSystemDepsOptions, SystemPackageManager } from "./d
|
|
|
93
93
|
export { installManifestNativeDeps } from "./deps/manifest-native-deps.js";
|
|
94
94
|
export { AddonHealthMonitor, HEALTH_MONITOR_TICK_MS, HEALTH_MONITOR_GRACE_PERIOD_MS, HEALTH_MONITOR_RETRY_INTERVALS_MS } from "./addon-health-monitor.js";
|
|
95
95
|
export type { AddonHealthPhase, AddonHealthState, AddonHealthSnapshot, AddonHealthMonitorOptions } from "./addon-health-monitor.js";
|
|
96
|
+
export { UnsupportedAddonTracker, UNSUPPORTED_ADDON_SETTLE_MS } from "./unsupported-addon-tracker.js";
|
|
97
|
+
export type { UnsupportedAddonFacts, UnsupportedAddonTrackerOptions } from "./unsupported-addon-tracker.js";
|
|
96
98
|
export type { HubServiceDeps } from "./moleculer/hub-service.js";
|
|
97
99
|
export { createBrokerDeviceManagerApi, buildNativeCapProxy, mountNativeCapService, NATIVE_PROVIDER_SERVICE_INFIX } from "./moleculer/device-cap-proxy.js";
|
|
98
100
|
export type { WorkerDeviceManagerOptions } from "./moleculer/device-cap-proxy.js";
|
|
@@ -7,5 +7,7 @@ export declare class RunnerOfAddon {
|
|
|
7
7
|
private readonly byAddon;
|
|
8
8
|
/** Remember the plan and hand the runner id back, so the call site stays one expression. */
|
|
9
9
|
record(addonId: string, runnerId: string): string;
|
|
10
|
+
/** The addons the spawn plan put in `runnerId` (a solo runner records itself: `[addonId]`; an addon never planned here is not listed). */
|
|
11
|
+
addonsOf(runnerId: string): readonly string[];
|
|
10
12
|
resolve: (addonId: string) => string;
|
|
11
13
|
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { SystemEvent } from "@camstack/types";
|
|
2
|
+
/**
|
|
3
|
+
* The operator alert for an addon that RUNS below the version the server needs.
|
|
4
|
+
*
|
|
5
|
+
* An addon whose installed package is under the running server's minimum
|
|
6
|
+
* (`camstack.requires.addons`, or its own `requires.server`) is always started:
|
|
7
|
+
* a held-back addon is invisible and silently loses its function, and the
|
|
8
|
+
* `CrashSupervisor` (D6) already bounds a crash loop. What the operator needs is
|
|
9
|
+
* to SEE it, so this tracker turns the gate's verdict into one alert pair on the
|
|
10
|
+
* usual AlertCenter path, the way `AddonHealthMonitor` does for a load failure:
|
|
11
|
+
*
|
|
12
|
+
* - `AddonUnsupportedVersion` once per streak (same package, same installed
|
|
13
|
+
* version, same unmet facts), after a short settle window so the alert
|
|
14
|
+
* centre is subscribed even when the verdict comes from the first boot plan;
|
|
15
|
+
* - `AddonUnsupportedResolved` when a later judgement finds the package
|
|
16
|
+
* supported, or the node's installed set no longer holds it, which dismisses
|
|
17
|
+
* the alert.
|
|
18
|
+
*
|
|
19
|
+
* One tracker per process; the verdict is re-judged on every spawn path, and
|
|
20
|
+
* `observe` is idempotent; given the node's full installed set, a streak whose
|
|
21
|
+
* package is no longer installed is resolved too. State is in memory: a restart raises a still-
|
|
22
|
+
* unsupported addon once more, and AlertCenter upserts it under the same id.
|
|
23
|
+
*/
|
|
24
|
+
export declare const UNSUPPORTED_ADDON_SETTLE_MS = 6e4;
|
|
25
|
+
/** What the gate knows about one addon that runs below its minimum. */
|
|
26
|
+
export interface UnsupportedAddonFacts {
|
|
27
|
+
readonly packageName: string;
|
|
28
|
+
readonly addonId: string;
|
|
29
|
+
readonly installedVersion: string;
|
|
30
|
+
/** The running server version, `null` when unreadable. */
|
|
31
|
+
readonly serverVersion: string | null;
|
|
32
|
+
/** The minimum the server requires of this package; `null` when only the addon's own `requires.server` is unmet. */
|
|
33
|
+
readonly requiredMinimum: string | null;
|
|
34
|
+
/** One line per unmet requirement, versions included. */
|
|
35
|
+
readonly unmet: readonly string[];
|
|
36
|
+
}
|
|
37
|
+
export interface UnsupportedAddonTrackerOptions {
|
|
38
|
+
readonly eventBus: {
|
|
39
|
+
emit(event: SystemEvent): void;
|
|
40
|
+
};
|
|
41
|
+
/** The node this tracker runs on (`hub` or the agent's node id). */
|
|
42
|
+
readonly nodeId: string;
|
|
43
|
+
readonly log: (line: string) => void;
|
|
44
|
+
/** Override for tests. Defaults to {@link UNSUPPORTED_ADDON_SETTLE_MS}. */
|
|
45
|
+
readonly settleMs?: number;
|
|
46
|
+
readonly now?: () => number;
|
|
47
|
+
}
|
|
48
|
+
export declare class UnsupportedAddonTracker {
|
|
49
|
+
private readonly options;
|
|
50
|
+
private readonly streaks;
|
|
51
|
+
private readonly settleMs;
|
|
52
|
+
private readonly now;
|
|
53
|
+
private readonly startedAt;
|
|
54
|
+
private timer;
|
|
55
|
+
private readonly logged;
|
|
56
|
+
constructor(options: UnsupportedAddonTrackerOptions);
|
|
57
|
+
/**
|
|
58
|
+
* One gate run. `judged` is every package the run looked at, `unsupported` the
|
|
59
|
+
* subset below its minimum. A judged package with a streak that is not in
|
|
60
|
+
* `unsupported` any more is resolved; a package this run did not judge is left alone.
|
|
61
|
+
* `installed`, when the run saw the node's FULL package set, also resolves every
|
|
62
|
+
* streak whose package is not in it (uninstalled).
|
|
63
|
+
*/
|
|
64
|
+
observe(judged: readonly string[], unsupported: readonly UnsupportedAddonFacts[], installed?: readonly string[]): void;
|
|
65
|
+
/** Log a line the first time only (an unjudged addon is reported once, not on every judgement). */
|
|
66
|
+
logOnce(line: string): void;
|
|
67
|
+
/** Stop the settle timer (shutdown). */
|
|
68
|
+
stop(): void;
|
|
69
|
+
private raise;
|
|
70
|
+
private resolve;
|
|
71
|
+
/** Emit every pending streak once the settle window is over; otherwise arm one timer for its end. */
|
|
72
|
+
private flush;
|
|
73
|
+
private emit;
|
|
74
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ks as collectSecretMarkerRefs } from "./dist-BUoL5bbr.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).
|