@camstack/server 1.2.779 → 1.2.780
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 +15 -0
- package/dist/agent/main.js +5 -1
- package/dist/agent/stale-addon-gate.js +52 -15
- package/dist/api/addon-upload.js +41 -0
- package/dist/api/core/cap-providers.js +19 -29
- package/dist/api/core/integration-role.js +15 -2
- package/dist/api/tarball-manifest.js +10 -1
- package/dist/api/trpc/generated-cap-mounts.js +1 -9
- package/dist/api/trpc/generated-cap-routers.js +9 -88
- package/dist/core/addon/addon-package.service.js +24 -8
- package/dist/core/addon/addon-registry.service.js +61 -10
- package/dist/core/addon/hub-spawn-gate.js +92 -0
- package/dist/core/addon/integration-instances-provider.js +22 -0
- package/dist/core/agent/agent-registry.service.js +6 -2
- package/dist/core/agent/delivery-requirements.js +22 -6
- package/dist/core/updates/required-addon-update.js +188 -0
- package/dist/launcher.js +4 -0
- package/dist/manual-boot.js +27 -0
- package/dist/server-root/index.js +74 -3
- package/package.json +33 -9
- package/system/dist/addon-runner.js +179 -4
- package/system/dist/addon-runner.mjs +180 -5
- package/system/dist/{agent-https-swBZI1iJ.js → agent-https-A9wsxVGn.js} +1 -1
- package/system/dist/{agent-https-BrINLeNj.mjs → agent-https-DuxDC67S.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.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 +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 +3 -3
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +3 -3
- 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/migrations/migrations-provider.d.ts +5 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +12 -4
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +12 -4
- 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-D_ImDrdj.mjs → capture-engine-CEChNpAD.mjs} +1 -1
- package/system/dist/{capture-engine-BXV6UiHl.js → capture-engine-D6mXfLFQ.js} +1 -1
- package/system/dist/{composition-sources-BjktkDte.mjs → composition-sources-6XYW86Kw.mjs} +1 -1
- package/system/dist/{composition-sources-DjTxqryW.js → composition-sources-cVWKVph4.js} +1 -1
- package/system/dist/{constants-CGXiM2LV.js → constants-B5Yg02ii.js} +1 -1
- package/system/dist/{constants-C68806R6.mjs → constants-DqwDEYfb.mjs} +1 -1
- package/system/dist/{device-ca-D_q1MiQ3.js → device-ca-BVz14dRd.js} +1 -1
- package/system/dist/{device-ca-CFRagVlE.mjs → device-ca-oY4Xqd7s.mjs} +1 -1
- package/system/dist/{dist-C9Ms2Ul9.js → dist-B4wrqheM.js} +833 -631
- package/system/dist/{dist-BzpjKSec.mjs → dist-BX8nZeXV.mjs} +804 -632
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-CFsSp0tc.mjs → hub-mdns-ciao-BDPMfOgq.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-C87S9O_n.js → hub-mdns-ciao-CiMMA0rT.js} +2 -2
- package/system/dist/index.js +416 -14
- package/system/dist/index.mjs +411 -16
- package/system/dist/kernel/addon-installer.d.ts +44 -1
- package/system/dist/kernel/held-installs.d.ts +21 -0
- package/system/dist/kernel/index.d.ts +6 -0
- package/system/dist/kernel/moleculer/migration-api-facade.d.ts +73 -0
- package/system/dist/kernel/requires-registry.d.ts +31 -0
- package/system/dist/{legacy-integration-rows-door-CI-AaB-M.mjs → legacy-integration-rows-door-DDA3YOxL.mjs} +1 -1
- package/system/dist/{legacy-integration-rows-door-C_aaT1DH.js → legacy-integration-rows-door-YuWqHZW4.js} +1 -1
- package/system/dist/migrations/hub/__fixtures__/seed.d.ts +23 -0
- package/system/dist/{restore-archive-D3K33hws.mjs → restore-archive-BrtpgNCt.mjs} +82 -82
- package/system/dist/{restore-archive-BC8OECG8.js → restore-archive-Cn9OShm4.js} +1 -1
- package/system/dist/{wal-maintenance-Bf9m0JZr.js → wal-maintenance-BTzu3s-6.js} +0 -0
- package/system/dist/{wal-maintenance-CMjTxyAC.mjs → wal-maintenance-jgyV9NbL.mjs} +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 { $
|
|
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 { $s as readinessKey, As as getDebugInterest, At as PackageRequiresSchema, Bi as procedureAuthKey, Ca as splitTranslationRef, Cr as extractNestedAddonId, Di as objectInputDeclaresRequiredDeviceId, E as CatalogFileSchema, Ei as objectInputDeclaresAddonId, Es as emitDownForOwnedCaps, Fo as DEVICE_STATUS_METHOD, Hr as isCollectionArrayMethod, La as unmetRequirements, Lr as interpolate, Mo as CALLER_STAMPED_CAPABILITIES$1, No as DATAPLANE_SECRET_HEADER$1, Os as expandCapMethods, Po as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Ps as isDebugChannelName, Qo as ReadinessTimeoutError, Rn as compareVersions, Ts as defineRecordKinds, Vr as isArrayOutputSchema, Xo as RUNTIME_DEFAULTS, Xr as kebabToCamel$1, Xs as parseJsonObject, Yr as isVoidInput, Zo as ReadinessRegistry, Zs as parseJsonUnknown, _c as EventCategory$1, a as AGENT_MDNS_TXT_KEYS, bn as bareAddonId, bs as createEvent$1, bt as METHOD_ACCESS_MAP, ci as logLevelAtMost, dc as userError, dn as addonSettingsCapability, ds as asNumber, fa as scopesAllowAddon, fc as withoutCallerStamp, fs as asString$1, gc as errMsg$1, i as AGENT_MDNS_SERVICE_TYPE, ja as supportedRuntimes, li as looseSchema, o as ALL_CAPABILITY_DEFINITIONS, or as describeUnmet, pa as scopesAllowDeviceCap, qr as isObjectInput, ra as resolveMethodAuth, rc as scopeKey, tc as resolveCapMount, ti as lifecycleJobSchema, us as asJsonObject$1, vs as collectSecretMarkerRefs, vt as LOG_LEVEL_RANK, y as CATALOG_LANGS } from "./dist-BX8nZeXV.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-oY4Xqd7s.mjs";
|
|
4
4
|
import { t as require_read_all_rows } from "./read-all-rows-TaPqdWNF.mjs";
|
|
5
5
|
import { AlertCenterAddon } from "./builtins/alerts/alerts.addon.mjs";
|
|
6
6
|
import "./builtins/alerts/index.mjs";
|
|
@@ -25,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-jgyV9NbL.mjs";
|
|
29
|
+
import { n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows } from "./legacy-integration-rows-door-DDA3YOxL.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
32
|
import { StorageOrchestratorAddon, a as stripForwardedCaller, i as createHubCapForwardService, l as STORAGE_DRAIN_STATE_LEGACY, n as HUB_CAP_FWD_ACTION, o as buildStorageLocationRegistry, r as HUB_CAP_FWD_SERVICE, t as StorageOrchestratorService, u as storageOrchestratorRecordKinds } from "./builtins/storage-orchestrator/storage-orchestrator.addon.mjs";
|
|
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-DuxDC67S.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-DqwDEYfb.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-oHl1xltx.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-BDPMfOgq.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-BrtpgNCt.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";
|
|
@@ -52,7 +52,7 @@ import * as path$1 from "node:path";
|
|
|
52
52
|
import { basename, dirname, isAbsolute, join, resolve } from "node:path";
|
|
53
53
|
import * as util from "node:util";
|
|
54
54
|
import { promisify } from "node:util";
|
|
55
|
-
import { BOOT_RECOVERY_BACKOFF_MS, CALLER_STAMPED_CAPABILITIES, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DeviceType, DisposerChain, ErrorI18nPayloadSchema, EventCategory, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, ReadinessRegistry as ReadinessRegistry$1, addonSliceHandleApi, asJsonObject, asString, collectZodSecretPaths, createDebugEmitter, createDeviceProxy, createEvent, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods as expandCapMethods$1, maskUrlCredentials, readErrorI18n, readNodePin, resolveDeviceSettings, scopeKey as scopeKey$1, scrubKnownSecrets, sleep, withCapInputDefaults } from "@camstack/types/addon";
|
|
55
|
+
import { BOOT_RECOVERY_BACKOFF_MS, CALLER_STAMPED_CAPABILITIES, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DeviceType, DisposerChain, ErrorI18nPayloadSchema, EventCategory, MIGRATION_API_VERSION, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, ReadinessRegistry as ReadinessRegistry$1, addonSliceHandleApi, asJsonObject, asString, collectZodSecretPaths, createDebugEmitter, createDeviceProxy, createEvent, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods as expandCapMethods$1, maskUrlCredentials, readErrorI18n, readNodePin, resolveDeviceSettings, scopeKey as scopeKey$1, scrubKnownSecrets, sleep, withCapInputDefaults } from "@camstack/types/addon";
|
|
56
56
|
import * as os$1 from "node:os";
|
|
57
57
|
import { tmpdir } from "node:os";
|
|
58
58
|
import { pathToFileURL } from "node:url";
|
|
@@ -6378,7 +6378,7 @@ async function ensureAddonNativePrebuilds(addonDir, options) {
|
|
|
6378
6378
|
* if dependencies were installed when they were not.
|
|
6379
6379
|
*/
|
|
6380
6380
|
var execFileAsync$5 = promisify(execFile);
|
|
6381
|
-
var DEFAULT_REGISTRY = "https://registry.npmjs.org";
|
|
6381
|
+
var DEFAULT_REGISTRY$1 = "https://registry.npmjs.org";
|
|
6382
6382
|
/** Where the bootstrap lands inside `cacheDir` (npm tgz carries a `package/` prefix). */
|
|
6383
6383
|
function bootstrappedCliPath(cacheDir) {
|
|
6384
6384
|
return path$1.join(cacheDir, "package", "bin", "npm-cli.js");
|
|
@@ -6495,7 +6495,7 @@ async function resolveUncached(options) {
|
|
|
6495
6495
|
}
|
|
6496
6496
|
options.logger.warn("system npm unavailable — bootstrapping npm from the registry", { meta: { cacheDir: options.cacheDir } });
|
|
6497
6497
|
try {
|
|
6498
|
-
const registry = (options.registry ?? DEFAULT_REGISTRY).replace(/\/+$/, "");
|
|
6498
|
+
const registry = (options.registry ?? DEFAULT_REGISTRY$1).replace(/\/+$/, "");
|
|
6499
6499
|
const tarballUrl = tarballUrlOf(await (options.fetchJson ?? defaultFetchJson)(`${registry}/npm/latest`));
|
|
6500
6500
|
if (!tarballUrl) throw new Error(`registry metadata for 'npm' carries no dist.tarball (${registry})`);
|
|
6501
6501
|
await fs$1.promises.mkdir(options.cacheDir, { recursive: true });
|
|
@@ -8230,6 +8230,110 @@ async function rebuildNativeDeps(addonDir, packageNames, logger, npmCacheDir, re
|
|
|
8230
8230
|
}
|
|
8231
8231
|
}
|
|
8232
8232
|
//#endregion
|
|
8233
|
+
//#region src/kernel/held-installs.ts
|
|
8234
|
+
var held = /* @__PURE__ */ new Map();
|
|
8235
|
+
function recordHeldInstall(entry) {
|
|
8236
|
+
held.set(entry.packageName, entry);
|
|
8237
|
+
}
|
|
8238
|
+
function clearHeldInstall(packageName) {
|
|
8239
|
+
held.delete(packageName);
|
|
8240
|
+
}
|
|
8241
|
+
function listHeldInstalls() {
|
|
8242
|
+
return [...held.values()];
|
|
8243
|
+
}
|
|
8244
|
+
//#endregion
|
|
8245
|
+
//#region src/kernel/requires-registry.ts
|
|
8246
|
+
/**
|
|
8247
|
+
* Reading `camstack.requires` and the version list of a package from the npm
|
|
8248
|
+
* registry, through the SAME doors the install uses (planning#447, D989).
|
|
8249
|
+
*
|
|
8250
|
+
* The install fetches the registry document over plain HTTP and falls back to
|
|
8251
|
+
* `npm` (which carries the user's npmrc: private registries, tokens). The
|
|
8252
|
+
* requirement read does the same, in the same order. A refusal from the HTTP
|
|
8253
|
+
* door for lack of auth is therefore never read as "the requirement is unmet":
|
|
8254
|
+
* it falls through to npm, and when npm cannot read either the read FAILS with
|
|
8255
|
+
* a typed {@link RegistryReadError} the caller reports as such.
|
|
8256
|
+
*/
|
|
8257
|
+
var RegistryReadError = class extends Error {
|
|
8258
|
+
kind;
|
|
8259
|
+
constructor(kind, message) {
|
|
8260
|
+
super(message);
|
|
8261
|
+
this.name = "RegistryReadError";
|
|
8262
|
+
this.kind = kind;
|
|
8263
|
+
}
|
|
8264
|
+
};
|
|
8265
|
+
var DEFAULT_REGISTRY = "https://registry.npmjs.org";
|
|
8266
|
+
function isStable(version) {
|
|
8267
|
+
return !version.includes("-");
|
|
8268
|
+
}
|
|
8269
|
+
function parseRequires(value) {
|
|
8270
|
+
if (value === void 0 || value === null) return void 0;
|
|
8271
|
+
const parsed = PackageRequiresSchema.safeParse(value);
|
|
8272
|
+
if (!parsed.success) throw new RegistryReadError("unavailable", "the registry document carries a malformed requires");
|
|
8273
|
+
return parsed.data;
|
|
8274
|
+
}
|
|
8275
|
+
function failureOf(err) {
|
|
8276
|
+
const text = err instanceof Error ? err.message : String(err);
|
|
8277
|
+
return /\b(E401|E403|401|403|unauthori[sz]ed|forbidden)\b/i.test(text) ? "auth" : "unavailable";
|
|
8278
|
+
}
|
|
8279
|
+
function createRequiresRegistry(deps) {
|
|
8280
|
+
const base = (deps.registry ?? DEFAULT_REGISTRY).replace(/\/+$/, "");
|
|
8281
|
+
const urlOf = (packageName) => `${base}/${encodeURIComponent(packageName).replace(/^%40/, "@")}`;
|
|
8282
|
+
const viaNpm = async (args) => {
|
|
8283
|
+
let stdout;
|
|
8284
|
+
try {
|
|
8285
|
+
stdout = await deps.npmView(args);
|
|
8286
|
+
} catch (err) {
|
|
8287
|
+
throw new RegistryReadError(failureOf(err), err instanceof Error ? err.message : String(err));
|
|
8288
|
+
}
|
|
8289
|
+
const trimmed = stdout.trim();
|
|
8290
|
+
return trimmed.length === 0 ? void 0 : JSON.parse(trimmed);
|
|
8291
|
+
};
|
|
8292
|
+
return {
|
|
8293
|
+
async requiresOf(packageName, spec) {
|
|
8294
|
+
try {
|
|
8295
|
+
const res = await deps.fetchJson(`${urlOf(packageName)}/${encodeURIComponent(spec)}`);
|
|
8296
|
+
if (res.ok) {
|
|
8297
|
+
const doc = await res.json();
|
|
8298
|
+
if (typeof doc === "object" && doc !== null) {
|
|
8299
|
+
const camstack = Reflect.get(doc, "camstack");
|
|
8300
|
+
return parseRequires(typeof camstack === "object" && camstack !== null ? Reflect.get(camstack, "requires") : void 0);
|
|
8301
|
+
}
|
|
8302
|
+
}
|
|
8303
|
+
} catch (err) {
|
|
8304
|
+
if (err instanceof RegistryReadError) throw err;
|
|
8305
|
+
}
|
|
8306
|
+
return parseRequires(await viaNpm([
|
|
8307
|
+
"view",
|
|
8308
|
+
`${packageName}@${spec}`,
|
|
8309
|
+
"camstack.requires",
|
|
8310
|
+
"--json"
|
|
8311
|
+
]));
|
|
8312
|
+
},
|
|
8313
|
+
async versions(packageName) {
|
|
8314
|
+
let names = null;
|
|
8315
|
+
try {
|
|
8316
|
+
const res = await deps.fetchJson(urlOf(packageName));
|
|
8317
|
+
if (res.ok) {
|
|
8318
|
+
const doc = await res.json();
|
|
8319
|
+
const versions = typeof doc === "object" && doc !== null ? Reflect.get(doc, "versions") : void 0;
|
|
8320
|
+
if (typeof versions === "object" && versions !== null) names = Object.keys(versions);
|
|
8321
|
+
}
|
|
8322
|
+
} catch {}
|
|
8323
|
+
if (names === null) {
|
|
8324
|
+
const listed = await viaNpm([
|
|
8325
|
+
"view",
|
|
8326
|
+
packageName,
|
|
8327
|
+
"versions",
|
|
8328
|
+
"--json"
|
|
8329
|
+
]);
|
|
8330
|
+
names = Array.isArray(listed) ? listed.filter((v) => typeof v === "string") : typeof listed === "string" ? [listed] : [];
|
|
8331
|
+
}
|
|
8332
|
+
return names.filter(isStable).sort((a, b) => compareVersions(b, a));
|
|
8333
|
+
}
|
|
8334
|
+
};
|
|
8335
|
+
}
|
|
8336
|
+
//#endregion
|
|
8233
8337
|
//#region src/kernel/addon-installer.ts
|
|
8234
8338
|
var execFileAsync$2 = promisify(execFile);
|
|
8235
8339
|
/**
|
|
@@ -8296,6 +8400,8 @@ function shouldSkipClosureProvidedSeed(packageName, isResolvable) {
|
|
|
8296
8400
|
}
|
|
8297
8401
|
/** How long a boot-time `dist-tags.latest` read may take before it is "unreadable". */
|
|
8298
8402
|
var REGISTRY_LATEST_TIMEOUT_MS = 15e3;
|
|
8403
|
+
/** How many of the newest registry versions are probed for one this server can host. */
|
|
8404
|
+
var FALLBACK_VERSION_PROBES = 25;
|
|
8299
8405
|
function readInstalledPackageVersion(addonDir) {
|
|
8300
8406
|
try {
|
|
8301
8407
|
const raw = JSON.parse(fs$1.readFileSync(path$1.join(addonDir, "package.json"), "utf-8"));
|
|
@@ -8363,6 +8469,10 @@ var AddonInstaller = class AddonInstaller {
|
|
|
8363
8469
|
/** Test seam — production resolves via `CAMSTACK_FRAMEWORK_DIR`. */
|
|
8364
8470
|
closureNodeModulesDir;
|
|
8365
8471
|
resolveLatestVersionOverride;
|
|
8472
|
+
serverVersion;
|
|
8473
|
+
resolveRequiresOverride;
|
|
8474
|
+
listVersionsOverride;
|
|
8475
|
+
requiresRegistryCache = null;
|
|
8366
8476
|
/**
|
|
8367
8477
|
* Central manifest of installed addons. Tracks version + source +
|
|
8368
8478
|
* timestamps + last-backup pointer per package, written atomically
|
|
@@ -8386,6 +8496,9 @@ var AddonInstaller = class AddonInstaller {
|
|
|
8386
8496
|
this.isPackageResolvable = config.isPackageResolvable;
|
|
8387
8497
|
this.closureNodeModulesDir = config.closureNodeModulesDir;
|
|
8388
8498
|
this.resolveLatestVersionOverride = config.resolveLatestVersion;
|
|
8499
|
+
this.serverVersion = config.serverVersion;
|
|
8500
|
+
this.resolveRequiresOverride = config.resolveRequires;
|
|
8501
|
+
this.listVersionsOverride = config.listVersions;
|
|
8389
8502
|
}
|
|
8390
8503
|
/**
|
|
8391
8504
|
* Where a bootstrapped npm lives when the host has none on PATH (packaged
|
|
@@ -8540,6 +8653,23 @@ var AddonInstaller = class AddonInstaller {
|
|
|
8540
8653
|
}
|
|
8541
8654
|
this.logger.info(`${packageName} — not found locally, trying npm`);
|
|
8542
8655
|
}
|
|
8656
|
+
const verdict = await this.judgeRequirements(packageName, "latest");
|
|
8657
|
+
if (verdict.kind === "hold") {
|
|
8658
|
+
this.logger.warn(`${packageName} — not installed at boot: ${verdict.reason}`, { meta: {
|
|
8659
|
+
spec: "latest",
|
|
8660
|
+
code: verdict.code,
|
|
8661
|
+
reason: verdict.reason
|
|
8662
|
+
} });
|
|
8663
|
+
continue;
|
|
8664
|
+
}
|
|
8665
|
+
if (verdict.kind === "older") {
|
|
8666
|
+
this.logger.warn(`${packageName} — latest needs a newer server than ${this.serverVersion ?? "unknown"}; installing ${verdict.version}, the newest this server can host`, { meta: {
|
|
8667
|
+
spec: "latest",
|
|
8668
|
+
version: verdict.version
|
|
8669
|
+
} });
|
|
8670
|
+
await this.installFromNpm(packageName, verdict.version);
|
|
8671
|
+
continue;
|
|
8672
|
+
}
|
|
8543
8673
|
await this.installFromNpm(packageName);
|
|
8544
8674
|
} catch (err) {
|
|
8545
8675
|
const msg = errMsg$1(err);
|
|
@@ -8561,6 +8691,15 @@ var AddonInstaller = class AddonInstaller {
|
|
|
8561
8691
|
this.logger.debug(`${packageName} — installed copy matches registry latest, or the registry could not be read`);
|
|
8562
8692
|
return;
|
|
8563
8693
|
}
|
|
8694
|
+
const verdict = await this.judgeRequirements(packageName, decision.to);
|
|
8695
|
+
if (verdict.kind === "hold") {
|
|
8696
|
+
this.logger.warn(`${packageName} — not moved ${decision.from} → ${decision.to}: ${verdict.reason}`, { meta: {
|
|
8697
|
+
from: decision.from,
|
|
8698
|
+
to: decision.to,
|
|
8699
|
+
reason: verdict.reason
|
|
8700
|
+
} });
|
|
8701
|
+
return;
|
|
8702
|
+
}
|
|
8564
8703
|
this.logger.info(`${packageName} — moving ${decision.from} → ${decision.to}: ${decision.reason}`, { meta: {
|
|
8565
8704
|
from: decision.from,
|
|
8566
8705
|
to: decision.to,
|
|
@@ -8572,6 +8711,87 @@ var AddonInstaller = class AddonInstaller {
|
|
|
8572
8711
|
});
|
|
8573
8712
|
await this.applyUpdate(packageName, decision.to);
|
|
8574
8713
|
}
|
|
8714
|
+
/**
|
|
8715
|
+
* Whether `packageName@spec` may be installed on this server (no gate when no
|
|
8716
|
+
* server version was configured). Judges only the server minimum;
|
|
8717
|
+
* `requires.addons` binds the server's own update, not an addon's.
|
|
8718
|
+
*
|
|
8719
|
+
* - `ok` — install it as asked.
|
|
8720
|
+
* - `older` — `spec` is `latest` and needs a newer server; `version` is the newest
|
|
8721
|
+
* registry version whose `requires` this server meets.
|
|
8722
|
+
* - `hold` — do not install; `code` says whether the minimum is unmet and nothing
|
|
8723
|
+
* older fits, or the registry could not be read (an auth failure of our
|
|
8724
|
+
* own is a failed read, never an unmet minimum). Recorded for the alert.
|
|
8725
|
+
*/
|
|
8726
|
+
async judgeRequirements(packageName, spec) {
|
|
8727
|
+
if (this.serverVersion === void 0) return { kind: "ok" };
|
|
8728
|
+
const serverVersion = this.serverVersion;
|
|
8729
|
+
const unmetOf = (requires) => {
|
|
8730
|
+
const unmet = unmetRequirements(requires, {
|
|
8731
|
+
server: serverVersion,
|
|
8732
|
+
addons: {},
|
|
8733
|
+
wrapper: null
|
|
8734
|
+
}).filter((u) => u.kind === "server-too-old");
|
|
8735
|
+
return unmet.length === 0 ? null : unmet.map(describeUnmet).join("; ");
|
|
8736
|
+
};
|
|
8737
|
+
const hold = (code, reason) => {
|
|
8738
|
+
recordHeldInstall({
|
|
8739
|
+
packageName,
|
|
8740
|
+
spec,
|
|
8741
|
+
code,
|
|
8742
|
+
reason,
|
|
8743
|
+
serverVersion
|
|
8744
|
+
});
|
|
8745
|
+
return {
|
|
8746
|
+
kind: "hold",
|
|
8747
|
+
code,
|
|
8748
|
+
reason
|
|
8749
|
+
};
|
|
8750
|
+
};
|
|
8751
|
+
let unmet;
|
|
8752
|
+
try {
|
|
8753
|
+
unmet = unmetOf(await this.readRequires(packageName, spec));
|
|
8754
|
+
} catch (err) {
|
|
8755
|
+
return hold("registry-unreadable", this.unreadableReason(err));
|
|
8756
|
+
}
|
|
8757
|
+
if (unmet === null) {
|
|
8758
|
+
clearHeldInstall(packageName);
|
|
8759
|
+
return { kind: "ok" };
|
|
8760
|
+
}
|
|
8761
|
+
if (spec !== "latest") return hold("requirements-unmet", unmet);
|
|
8762
|
+
try {
|
|
8763
|
+
const versions = (await this.listVersions(packageName)).slice(0, FALLBACK_VERSION_PROBES);
|
|
8764
|
+
for (const version of versions) if (unmetOf(await this.readRequires(packageName, version)) === null) {
|
|
8765
|
+
clearHeldInstall(packageName);
|
|
8766
|
+
return {
|
|
8767
|
+
kind: "older",
|
|
8768
|
+
version
|
|
8769
|
+
};
|
|
8770
|
+
}
|
|
8771
|
+
} catch (err) {
|
|
8772
|
+
return hold("registry-unreadable", this.unreadableReason(err));
|
|
8773
|
+
}
|
|
8774
|
+
return hold("no-compatible-version", `latest ${unmet}, and no registry version of ${packageName} fits server ${serverVersion ?? "unknown (its version could not be read; a failed read is not a pass)"}`);
|
|
8775
|
+
}
|
|
8776
|
+
unreadableReason(err) {
|
|
8777
|
+
return `its requirements could not be read (${err instanceof RegistryReadError ? `${err.kind}: ${err.message}` : errMsg$1(err)}); a failed read is not a pass`;
|
|
8778
|
+
}
|
|
8779
|
+
requiresRegistry() {
|
|
8780
|
+
this.requiresRegistryCache ??= createRequiresRegistry({
|
|
8781
|
+
registry: this.registry,
|
|
8782
|
+
fetchJson: (url) => fetch(url, { signal: AbortSignal.timeout(REGISTRY_LATEST_TIMEOUT_MS) }),
|
|
8783
|
+
npmView: async (args) => (await runNpm([...args, ...this.registry ? ["--registry", this.registry] : []], this.npmRunOptions(os$1.tmpdir(), 6e4))).stdout
|
|
8784
|
+
});
|
|
8785
|
+
return this.requiresRegistryCache;
|
|
8786
|
+
}
|
|
8787
|
+
readRequires(packageName, spec) {
|
|
8788
|
+
if (this.resolveRequiresOverride) return this.resolveRequiresOverride(packageName, spec);
|
|
8789
|
+
return this.requiresRegistry().requiresOf(packageName, spec);
|
|
8790
|
+
}
|
|
8791
|
+
listVersions(packageName) {
|
|
8792
|
+
if (this.listVersionsOverride) return this.listVersionsOverride(packageName);
|
|
8793
|
+
return this.requiresRegistry().versions(packageName);
|
|
8794
|
+
}
|
|
8575
8795
|
/** `dist-tags.latest`, or `null` when the registry cannot be read. */
|
|
8576
8796
|
async readRegistryLatest(packageName) {
|
|
8577
8797
|
if (this.resolveLatestVersionOverride) try {
|
|
@@ -15843,6 +16063,172 @@ function asName(value) {
|
|
|
15843
16063
|
return typeof value === "string" && value.length > 0 ? value : null;
|
|
15844
16064
|
}
|
|
15845
16065
|
//#endregion
|
|
16066
|
+
//#region src/kernel/moleculer/migration-api-facade.ts
|
|
16067
|
+
var DEFAULT_QUERY_LIMIT = 100;
|
|
16068
|
+
function recordsKind(records, definition) {
|
|
16069
|
+
if (records === void 0) throw new Error("migration api: records are not available");
|
|
16070
|
+
const handle = records.kind(definition);
|
|
16071
|
+
return {
|
|
16072
|
+
get: ({ id }) => handle.get(id),
|
|
16073
|
+
getResolved: ({ id }) => handle.getResolved(id),
|
|
16074
|
+
put: ({ ifRev, ...row }) => handle.put(row, ifRev === void 0 ? void 0 : { ifRev }),
|
|
16075
|
+
putMany: ({ records: rows }) => handle.putMany(rows),
|
|
16076
|
+
patch: ({ id, partial, ifRev }) => handle.patch(id, partial, ifRev === void 0 ? void 0 : { ifRev }),
|
|
16077
|
+
delete: async ({ id }) => ({ deleted: await handle.delete(id) }),
|
|
16078
|
+
query: ({ limit, resolveSecrets, ...rest }) => handle.query({
|
|
16079
|
+
...rest,
|
|
16080
|
+
limit: limit ?? DEFAULT_QUERY_LIMIT
|
|
16081
|
+
}, resolveSecrets === void 0 ? void 0 : { resolveSecrets }),
|
|
16082
|
+
deleteWhere: async (input) => ({ count: await handle.deleteWhere(input) })
|
|
16083
|
+
};
|
|
16084
|
+
}
|
|
16085
|
+
function requireSecrets(secrets) {
|
|
16086
|
+
if (secrets === void 0) throw new Error("migration api: the keychain is not available");
|
|
16087
|
+
return secrets;
|
|
16088
|
+
}
|
|
16089
|
+
function requireSettings(settings) {
|
|
16090
|
+
if (settings === void 0) throw new Error("migration api: settings are not available");
|
|
16091
|
+
return settings;
|
|
16092
|
+
}
|
|
16093
|
+
function createMigrationApi(backing) {
|
|
16094
|
+
const { legacy, ledger, logger } = backing;
|
|
16095
|
+
return {
|
|
16096
|
+
version: MIGRATION_API_VERSION,
|
|
16097
|
+
ledger: {
|
|
16098
|
+
declare: (input) => ledger.declareOwner(input),
|
|
16099
|
+
start: (input) => ledger.startMigration(input),
|
|
16100
|
+
finish: (input) => ledger.finishMigration(input)
|
|
16101
|
+
},
|
|
16102
|
+
legacyRows: {
|
|
16103
|
+
read: (input) => legacy.read(input),
|
|
16104
|
+
clear: (input) => legacy.clear(input),
|
|
16105
|
+
patch: (input) => legacy.patch(input),
|
|
16106
|
+
deleteKeys: (input) => legacy.deleteKeys({
|
|
16107
|
+
...input,
|
|
16108
|
+
keys: [...input.keys]
|
|
16109
|
+
})
|
|
16110
|
+
},
|
|
16111
|
+
records: { kind: (definition) => recordsKind(backing.records, definition) },
|
|
16112
|
+
settings: {
|
|
16113
|
+
read: async () => ({ store: await requireSettings(backing.settings).readAddonStore() }),
|
|
16114
|
+
write: async ({ patch }) => {
|
|
16115
|
+
await requireSettings(backing.settings).writeAddonStore(patch);
|
|
16116
|
+
return {};
|
|
16117
|
+
},
|
|
16118
|
+
deleteKeys: async ({ keys }) => {
|
|
16119
|
+
const settings = requireSettings(backing.settings);
|
|
16120
|
+
const stored = await settings.readAddonStore();
|
|
16121
|
+
const removed = keys.filter((key) => key in stored);
|
|
16122
|
+
if (removed.length > 0) await settings.writeAddonStore(Object.fromEntries(removed.map((k) => [k, void 0])));
|
|
16123
|
+
return { removed };
|
|
16124
|
+
}
|
|
16125
|
+
},
|
|
16126
|
+
secrets: {
|
|
16127
|
+
resolve: async ({ refs }) => {
|
|
16128
|
+
const answers = await requireSecrets(backing.secrets).resolve(refs);
|
|
16129
|
+
const values = {};
|
|
16130
|
+
for (const ref of refs) {
|
|
16131
|
+
const answer = answers[ref];
|
|
16132
|
+
if (answer === void 0 || answer.kind === "missing") values[ref] = null;
|
|
16133
|
+
else if (answer.kind === "value") values[ref] = answer.value;
|
|
16134
|
+
else throw new Error(`migration api: a secret cannot be read (${answer.kind === "unavailable" ? answer.reason : answer.kind})`);
|
|
16135
|
+
}
|
|
16136
|
+
return { values };
|
|
16137
|
+
},
|
|
16138
|
+
put: async ({ ref, value }) => {
|
|
16139
|
+
await requireSecrets(backing.secrets).put(ref, value);
|
|
16140
|
+
return {};
|
|
16141
|
+
},
|
|
16142
|
+
delete: async ({ refs }) => ({ deleted: await requireSecrets(backing.secrets).delete(refs) })
|
|
16143
|
+
},
|
|
16144
|
+
integrations: {
|
|
16145
|
+
list: async () => ({ integrations: (await backing.listIntegrations()).map(toIntegration) }),
|
|
16146
|
+
get: async ({ id }) => {
|
|
16147
|
+
const found = (await backing.listIntegrations()).find((row) => row.id === id);
|
|
16148
|
+
return found === void 0 ? null : toIntegration(found);
|
|
16149
|
+
}
|
|
16150
|
+
},
|
|
16151
|
+
devices: {
|
|
16152
|
+
list: async ({ addonId, integrationId }) => ({ devices: (await backing.devices.list(addonId)).filter((d) => integrationId === void 0 || d.integrationId === integrationId).map((d) => ({ ...d })) }),
|
|
16153
|
+
get: async ({ deviceId }) => {
|
|
16154
|
+
const found = await backing.devices.get(deviceId);
|
|
16155
|
+
if (found === null) return null;
|
|
16156
|
+
return {
|
|
16157
|
+
id: deviceId,
|
|
16158
|
+
integrationId: found.integrationId ?? null,
|
|
16159
|
+
hasConfig: Object.keys(found.config ?? {}).length > 0
|
|
16160
|
+
};
|
|
16161
|
+
},
|
|
16162
|
+
setIntegrationId: async ({ deviceId, integrationId }) => {
|
|
16163
|
+
await backing.devices.setIntegrationId(deviceId, integrationId);
|
|
16164
|
+
return {};
|
|
16165
|
+
}
|
|
16166
|
+
},
|
|
16167
|
+
node: { localNodeId: async () => ({ nodeId: backing.nodeId }) },
|
|
16168
|
+
log: {
|
|
16169
|
+
info: async ({ message, meta, tags }) => {
|
|
16170
|
+
logger.info(message, {
|
|
16171
|
+
...meta === void 0 ? {} : { meta },
|
|
16172
|
+
...tags === void 0 ? {} : { tags }
|
|
16173
|
+
});
|
|
16174
|
+
return {};
|
|
16175
|
+
},
|
|
16176
|
+
warn: async ({ message, meta, tags }) => {
|
|
16177
|
+
logger.warn(message, {
|
|
16178
|
+
...meta === void 0 ? {} : { meta },
|
|
16179
|
+
...tags === void 0 ? {} : { tags }
|
|
16180
|
+
});
|
|
16181
|
+
return {};
|
|
16182
|
+
}
|
|
16183
|
+
}
|
|
16184
|
+
};
|
|
16185
|
+
}
|
|
16186
|
+
function toIntegration(row) {
|
|
16187
|
+
return {
|
|
16188
|
+
id: row.id,
|
|
16189
|
+
addonId: row.addonId,
|
|
16190
|
+
name: row.name,
|
|
16191
|
+
info: { ...row.info },
|
|
16192
|
+
...row.originStableId === void 0 ? {} : { originStableId: row.originStableId }
|
|
16193
|
+
};
|
|
16194
|
+
}
|
|
16195
|
+
/** The facade over a context's `api` (the caller is stamped by the transport, never claimed here). */
|
|
16196
|
+
function createMigrationApiOverContext(deps) {
|
|
16197
|
+
const migrations = () => deps.api().migrations;
|
|
16198
|
+
return createMigrationApi({
|
|
16199
|
+
nodeId: deps.nodeId,
|
|
16200
|
+
logger: deps.logger,
|
|
16201
|
+
ledger: {
|
|
16202
|
+
declareOwner: (input) => migrations().declareOwner.mutate(input),
|
|
16203
|
+
startMigration: (input) => migrations().startMigration.mutate(input),
|
|
16204
|
+
finishMigration: (input) => migrations().finishMigration.mutate(input)
|
|
16205
|
+
},
|
|
16206
|
+
legacy: {
|
|
16207
|
+
read: (input) => migrations().readLegacyIntegrationRows.query(input),
|
|
16208
|
+
clear: (input) => migrations().clearLegacyIntegrationRows.mutate(input),
|
|
16209
|
+
patch: (input) => migrations().patchLegacyIntegrationRows.mutate(input),
|
|
16210
|
+
deleteKeys: (input) => migrations().deleteLegacyIntegrationRowKeys.mutate(input)
|
|
16211
|
+
},
|
|
16212
|
+
listIntegrations: () => deps.api().integrations.list.query(),
|
|
16213
|
+
devices: {
|
|
16214
|
+
list: (addonId) => deps.api().deviceManager.listAll.query({
|
|
16215
|
+
addonId,
|
|
16216
|
+
projection: "slim"
|
|
16217
|
+
}),
|
|
16218
|
+
get: (deviceId) => deps.api().deviceManager.getDevice.query({ deviceId }),
|
|
16219
|
+
setIntegrationId: async (deviceId, integrationId) => {
|
|
16220
|
+
await deps.api().deviceManager.setIntegrationId.mutate({
|
|
16221
|
+
deviceId,
|
|
16222
|
+
integrationId
|
|
16223
|
+
});
|
|
16224
|
+
}
|
|
16225
|
+
},
|
|
16226
|
+
records: deps.records,
|
|
16227
|
+
secrets: deps.secrets,
|
|
16228
|
+
settings: deps.settings
|
|
16229
|
+
});
|
|
16230
|
+
}
|
|
16231
|
+
//#endregion
|
|
15846
16232
|
//#region src/kernel/moleculer/records-api-transport.ts
|
|
15847
16233
|
function recordsTransportOf(api) {
|
|
15848
16234
|
const r = api.records;
|
|
@@ -24136,6 +24522,12 @@ async function buildAddonContext(runtime, declaration, dataDir, options) {
|
|
|
24136
24522
|
},
|
|
24137
24523
|
eventBus: scopedEventBus
|
|
24138
24524
|
});
|
|
24525
|
+
const records = createRecordsAccess({
|
|
24526
|
+
owner: addonId,
|
|
24527
|
+
transport: recordsTransportOf(api),
|
|
24528
|
+
secrets,
|
|
24529
|
+
logger: scopedLogger
|
|
24530
|
+
});
|
|
24139
24531
|
return {
|
|
24140
24532
|
id: addonId,
|
|
24141
24533
|
logger: scopedLogger,
|
|
@@ -24150,11 +24542,14 @@ async function buildAddonContext(runtime, declaration, dataDir, options) {
|
|
|
24150
24542
|
deps: new AddonDepsManager(addonDataDir, scopedLogger),
|
|
24151
24543
|
settings: settingsView,
|
|
24152
24544
|
secrets,
|
|
24153
|
-
records
|
|
24154
|
-
|
|
24155
|
-
|
|
24545
|
+
records,
|
|
24546
|
+
migrationApi: createMigrationApiOverContext({
|
|
24547
|
+
nodeId,
|
|
24548
|
+
logger: scopedLogger,
|
|
24549
|
+
api: () => api,
|
|
24550
|
+
records,
|
|
24156
24551
|
secrets,
|
|
24157
|
-
|
|
24552
|
+
settings: settingsView
|
|
24158
24553
|
}),
|
|
24159
24554
|
kernel: (() => {
|
|
24160
24555
|
const streamProbe = runtime.mode === "broker" ? {
|
|
@@ -28034,4 +28429,4 @@ function resetCatalogRegistryForTests() {
|
|
|
28034
28429
|
}
|
|
28035
28430
|
//#endregion
|
|
28036
28431
|
var readAllRows = import_read_all_rows.readAllRows;
|
|
28037
|
-
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, INTEGRATIONS_LEGACY, IntegrationRegistry, InvalidCorsOriginError, JWT_SIGNING_KEY_REF, JobJournal, JwtSigningKeyUnavailableError, LEAF_RENEWAL_WINDOW_DAYS, LifecycleJobEngine, LifecycleStateMachine, LivenessMonitorAddon, LocalAuthAddon, LocalChildClient, LocalChildRegistry, LogManager, LogRingBuffer, LoggingGate, LoginSessionManager, LokiDestination, LokiLoggingAddon, MAX_CAP_ACTIONS_PER_PEER, MAX_LEAF_VALIDITY_DAYS, MEMBERSHIP_PATHS, MESH_ACTION_FORBIDDEN_TYPE, MESH_CA_FIELD, MESH_CA_KEY_REF, MESH_CA_SETTINGS_KEY, MESH_NODE_CERTIFICATES_COLLECTION, MESH_NODE_CERTIFICATES_COLUMNS, MESH_NODE_UNAUTHENTICATED_TYPE, MESH_QUEUE_TOP_N, MESH_TLS_PORT_HELLO_FIELD, METHOD_ACCESS_MAP, MembershipResponder, MeshCaKeeper, MeshCertificateRegistry, MeshCrl, MeshIdentityGate, ModelDownloadService, NATIVE_PROVIDER_SERVICE_INFIX, NATIVE_SCAN_DEPTH, NativeMetricsAddon, NativeMetricsProvider, NetworkQualityTracker, NotificationService, OPAQUE_ORIGIN, OUTBOUND_QUEUE_COOLDOWN_MS, OUTBOUND_QUEUE_SUSTAIN_MS, OUTBOUND_QUEUE_THRESHOLD_BYTES, PAIRING_CODE_DIGITS, PAIRING_MAX_CODE_ATTEMPTS, PAIRING_MAX_SESSIONS, PAIRING_PATHS, PAIRING_PIN_DIGITS, PAIRING_PROTOCOL, PAIRING_TTL_MS, PARENT_ROUTED_PROVIDER_ADDON_ID, PERMITTED_DNS_SUFFIXES, PERMITTED_IP_RANGES, PREVIOUS_LEAF_GRACE_MS, PYTHON_VERSION, PairingHttpError, PeerAnsweredError, PipelineRunner, PipelineValidator, PythonEnvManager, QUARANTINE_DIRNAME, REFRESH_TOKEN_PREFIX, RENEWAL_ABANDONED, RESTART_MARKER_FILE, RSS_BUDGET_REANNOUNCE_MIN_MS, RSS_BUDGET_RELEASE_RATIO, RUNNER_HEAP_WATCH_INTERVAL_MS, RUNNER_RSS_BUDGET_ENV, RUNTIME_DEFAULTS, ReadinessRegistry, ReadinessTimeoutError, RecordsEngine, ReplEngine, RingBuffer, RunnerOfAddon, SERVER_AUTH_OID, SERVER_NAMESPACE, SOCKET_PLANE_TOP_N, SOCKET_QUEUE_TOP_N, STALL_REPORT_MS, STALL_TICK_MS, STORAGE_DRAIN_STATE_LEGACY, STORE_READABLE_BOOTSTRAP_KEYS, SYSTEM_SECRET_OWNER, ScopedLogger, SettingsReadUnavailableError, SocketChannel, SqliteSettingsAddon, SqliteSettingsBackend, StagingArea, StorageLocationManager, StorageManager, StorageOrchestratorAddon, StorageOrchestratorService, SystemBackupService, SystemConfigAddon, SystemEventBus, TRADITIONAL_NATIVE_PACKAGES, TlsTcpTransporter, ToastService, UDS_NO_ROUTE_PREFIX, UNCLAIMED, UPLOADED_CA_FILE, USER_MANAGEMENT_INTERNAL, UdsLocalTransportClient, UdsLocalTransportServer, UnlockTicketJtiStore, UserManager, WinstonDestination, WinstonLoggingAddon, ZERO_LOOP_DELAY, __resetCapUsageRegistryForTests, __resetLoggingGateForTests, acceptAgentSans, adaptBrokerToCluster, addonSettingsCapability, adoptModelRevisions, afterWorkerOnlineAnnounce, agentHttpsPaths, allFamiliesListenHost, answerClaimedGetStatus, answerDeviceCallRedirect, applyCertificateToListener, applyLanHttp, asBrokerLike, attachUserManagementInternal, attributeStall, backupOrchestratorRecordKinds, backupRecordStoresOf, bareAddonOf, bindPendingLanHttp, bootstrapSchema, brokerCallForCap, brokerTransportLink, buildAgentAnnouncement, buildBinaryPath, buildCapRouters, buildHeapSample, buildLinkChain, buildNameConstraintSet, buildNativeCapProxy, buildNodeManifest, buildNpmChildEnv, buildStorageLocationRegistry, buildTransporter, builderMountedCapNames, caFingerprint, caFingerprintCompact, caReplacementMarkerFile, callRegisterNodeWithRetry, callWithServiceDiscovery, canServeDataPlane, capActionLabel, capActionName, capActionSuffix, capBareAction, capServiceName, catalogNamespaceOf, certificateNames, chainsToPublicRoot, checkUploadedCa, classifyAddonDir, classifyCapRoute, clearHttpsListener, 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, createOutboundQueueGate, createParentUnownedCallHandler, createProcessService, createReadinessService, createReadinessServiceForRegistry, createScopedProcessManager, createSocketDirectionCounters, createSocketPlaneMeter, createSocketPlaneReader, createStreamProbeBrokerService, createUdsAddonContext, createUdsEventBridge, createUdsEventBus, createUdsLogger, createUdsLoggerWithControl, createV8Reclaimer, currentBrokerTransporter, decideAddonVersionMove, deleteModelFromDisk, deriveAgentListenPort, describeCsr, describeHttpsLeaf, describeMeshLeaf, describeProviderKindDrift, describeRss, deviceCapResolverLink, deviceOfGetStatus, diffCapActionCensus, diffEventPlane, diffSocketPlane, disconnectBrokerTransport, downloadBinary, downloadFile, downloadModel, dropProcessPeer, emitDownForOwnedCaps, emitHeapDiagnosticReport, emitProcessNodeRegistered, encodeFrame, ensureAddonNativePrebuilds, ensureBinary, ensureDir, ensureFfmpeg, ensureModel, ensureNativePrebuilds, ensurePython, ensureTlsCert, evaluateExistingCert, expandCapMethods, exportMeshPrivateKeyPem, fetchJson, filterIsEmpty, findAddonRefusal, findInPath, formatArrayBufferCensus, formatEventPlane, formatHeapSpaces, formatLogLine, formatMeshQueue, formatOutboundQueueVerdict, formatSocketPlane, generateBackupKeyPair, generateDeviceCa, generateMeshCa, generateMeshKeyPair, getBrokerEventBus, getBrokerTlsTransporter, getCapUsageRegistry, getCatalogRegistry, getFfmpegDownloadUrl, getLocalEventInterest, getLoggingGate, getModelFilePath, getMoleculerEventStats, getOrInitReadinessRegistry, getOrInitReadinessRegistryForClient, getPidStats, getPlatformInfo, getPlatformKeychainKey, getProcessAgentHttpsNames, getProcessJwtSigningKeyState, getProcessMeshCaState, getProcessMeshCertificateRegistry, getProcessMeshTlsListenerState, getProcessNodeMeshTransport, getProcessPeerLeaf, getPythonDownloadUrl, getRestartMarkerPath, getSinglePidStats, getUserManagementInternal, getWorkerDeviceRegistry, hasDotNode, heapSpaceField, hostNodeIdOf, hubHostFromMeshAddress, hubMainRssBudget, hubServerVersionOf, installAgentHttps, installBrokerTransporter, installManifestNativeDeps, installManifestPythonDeps, installManifestSystemDeps, installPackageFromNpm, installPythonPackages, installPythonRequirements, integrationRegistryRecordKinds, ipcParentLink, isAddonDeploySource, isAllowedAgentDashboardReturnTo, isArrayBufferCensusReport, isArrayOutputSchema, isCollectionArrayMethod, isConstrainedCa, isContainerBridgeAddress, isCredentialKeyName, isInfraCapability, isInsecureOrigin, isInstalledTransporter, isLocalOnlyHostname, isModelDownloaded, isPeerEventPacket, isPrivateAddress, isProcessVerifiedMeshPeer, isRemoteForbiddenAction, isRemoteForbiddenOnAgent, isSettingsReadUnavailable, isSourceNewer, isValidAgentNodeId, isolatedBuiltinPhase, issueAgentHttpsLeaf, issueDeviceLeaf, issueMeshLeafForNode, issueMeshLeafFromCsr, keyFingerprintShort, leafFingerprintOf, levelRank, lineContainsText, lineMatches, loadAgentHttps, loadBootstrapConfig, loadDeviceCa, loadMeshCa, loadTlsCert, localCaCommonName, localEndpointPath, localProviderLink, localSupportedPythonRuntimes, mapSignalsToInferenceHardware, meshErrorType, mintAgentUiUnlockTicket, mountNativeCapService, nextRssBudgetState, normalizeIp, normalizeOrigin, onLocalEventInterestChange, onProcessNodeRegistered, onSessionsRevoked, openMeshTlsWhenRevocationsLoaded, originNodeOf, overlayGetStatus, parseAgentDashboardOrigins, parseCapAction, parseCidrList, parseOriginList, parseRangeHeader, parseRssBudgetMb, parseTokenExpiry, parseTokenizedUrl, partitionIsolatedBuiltinIds, pemDigest, permitsIdentity, permitsName, pinnedHttpsCaFingerprint, preferencesLimitReasonOf, prepareBootTls, prepareRestoreArchive, probePlatform, processJwtSigningKey, processMeshCrl, proxyToUpstream, quarantineAddonResidue, readAllRows, readBackupEncryptionHeader, readCidrSetting, readExtraSans, readHeapSpaces, readLanHttpState, readNameConstraints, readOriginSetting, readPendingRestart, readSocketQueues, readTlsAccessStatus, readTlsEnabled, readTlsMode, readinessKey, reclaimIntervalMs, recordSocketFrame, redactLogEntry, redactLogMeta, redactLogText, regenerateCertificate, registerEventBusService, registerHttpsListener, registerLanHttpHandler, reissueTlsLeaf, reloadHttpsListener, renewMeshCertificate, replaceUnconstrainedLocalCa, requireProcessMeshCa, resetCatalogRegistryForTests, resolveFilePath, resolveFormatRevision, resolveHwAccel, resolveNpmInvocation, retirePreviousLocalCa, revertToGeneratedCertificate, revisionWeightUrl, revokeMeshCertificate, runHubAddonBoot, runNpm, sampleSocketDirection, scheduleSelfRestart, scopeKey, scopesAllowAddon, scopesAllowDeviceCap, selectAddonResidue, selectReportedSpaces, serializeTypedArrays, servedHttpsLeafFingerprint, setHubConnected, setHuggingFaceReachabilityObserver, setNodeEventInterest, setPlatformKeychainKey, setProcessAgentHttpsNames, setProcessMeshCertificateRegistry, setProcessMeshPeerTransportLookup, setProcessMeshTlsEnabler, setProcessMeshTlsListenerState, setWrapperActive, shouldReclaim, signMembershipProof, signPairingProof, signalAllRunnerGroups, socketDirectionBytes, socketDirectionMessages, splitPemCertificates, stampCallerAddonId, startEventLoopStallMonitor, startHeapWatch, startRunnerHeapWatch, staticJwtSigningKey, storageOrchestratorRecordKinds, storeMayAnswer, storeUploadedCertificate, strandedMb, stripCamstackDeps, stripForgedIdentity, stripForwardedCaller, subscribePassthrough, systemHostFacts, udsChildLogToWorkerEntry, useStoredUploadedCertificate, validateProviderRegistrations, validateUploadedTls, verifyAgentUiUnlockTicket, verifyDeviceLeaf, verifyDeviceSignature, verifyMembershipAnswer, verifyPairingProof, waitUntilReady, writeExtraSans, writePendingRestart, writeTlsEnabled, writeTlsMode };
|
|
28432
|
+
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, INTEGRATIONS_LEGACY, IntegrationRegistry, InvalidCorsOriginError, JWT_SIGNING_KEY_REF, JobJournal, JwtSigningKeyUnavailableError, LEAF_RENEWAL_WINDOW_DAYS, LifecycleJobEngine, LifecycleStateMachine, LivenessMonitorAddon, LocalAuthAddon, LocalChildClient, LocalChildRegistry, LogManager, LogRingBuffer, LoggingGate, LoginSessionManager, LokiDestination, LokiLoggingAddon, MAX_CAP_ACTIONS_PER_PEER, MAX_LEAF_VALIDITY_DAYS, MEMBERSHIP_PATHS, MESH_ACTION_FORBIDDEN_TYPE, MESH_CA_FIELD, MESH_CA_KEY_REF, MESH_CA_SETTINGS_KEY, MESH_NODE_CERTIFICATES_COLLECTION, MESH_NODE_CERTIFICATES_COLUMNS, MESH_NODE_UNAUTHENTICATED_TYPE, MESH_QUEUE_TOP_N, MESH_TLS_PORT_HELLO_FIELD, METHOD_ACCESS_MAP, MembershipResponder, MeshCaKeeper, MeshCertificateRegistry, MeshCrl, MeshIdentityGate, ModelDownloadService, NATIVE_PROVIDER_SERVICE_INFIX, NATIVE_SCAN_DEPTH, NativeMetricsAddon, NativeMetricsProvider, NetworkQualityTracker, NotificationService, OPAQUE_ORIGIN, OUTBOUND_QUEUE_COOLDOWN_MS, OUTBOUND_QUEUE_SUSTAIN_MS, OUTBOUND_QUEUE_THRESHOLD_BYTES, PAIRING_CODE_DIGITS, PAIRING_MAX_CODE_ATTEMPTS, PAIRING_MAX_SESSIONS, PAIRING_PATHS, PAIRING_PIN_DIGITS, PAIRING_PROTOCOL, PAIRING_TTL_MS, PARENT_ROUTED_PROVIDER_ADDON_ID, PERMITTED_DNS_SUFFIXES, PERMITTED_IP_RANGES, PREVIOUS_LEAF_GRACE_MS, PYTHON_VERSION, PairingHttpError, PeerAnsweredError, PipelineRunner, PipelineValidator, PythonEnvManager, QUARANTINE_DIRNAME, REFRESH_TOKEN_PREFIX, RENEWAL_ABANDONED, RESTART_MARKER_FILE, RSS_BUDGET_REANNOUNCE_MIN_MS, RSS_BUDGET_RELEASE_RATIO, RUNNER_HEAP_WATCH_INTERVAL_MS, RUNNER_RSS_BUDGET_ENV, RUNTIME_DEFAULTS, ReadinessRegistry, ReadinessTimeoutError, RecordsEngine, RegistryReadError, ReplEngine, RingBuffer, RunnerOfAddon, SERVER_AUTH_OID, SERVER_NAMESPACE, SOCKET_PLANE_TOP_N, SOCKET_QUEUE_TOP_N, STALL_REPORT_MS, STALL_TICK_MS, STORAGE_DRAIN_STATE_LEGACY, STORE_READABLE_BOOTSTRAP_KEYS, SYSTEM_SECRET_OWNER, ScopedLogger, SettingsReadUnavailableError, SocketChannel, SqliteSettingsAddon, SqliteSettingsBackend, StagingArea, StorageLocationManager, StorageManager, StorageOrchestratorAddon, StorageOrchestratorService, SystemBackupService, SystemConfigAddon, SystemEventBus, TRADITIONAL_NATIVE_PACKAGES, TlsTcpTransporter, ToastService, UDS_NO_ROUTE_PREFIX, UNCLAIMED, UPLOADED_CA_FILE, USER_MANAGEMENT_INTERNAL, UdsLocalTransportClient, UdsLocalTransportServer, UnlockTicketJtiStore, UserManager, WinstonDestination, WinstonLoggingAddon, ZERO_LOOP_DELAY, __resetCapUsageRegistryForTests, __resetLoggingGateForTests, acceptAgentSans, adaptBrokerToCluster, addonSettingsCapability, adoptModelRevisions, afterWorkerOnlineAnnounce, agentHttpsPaths, allFamiliesListenHost, answerClaimedGetStatus, answerDeviceCallRedirect, applyCertificateToListener, applyLanHttp, asBrokerLike, attachUserManagementInternal, attributeStall, backupOrchestratorRecordKinds, backupRecordStoresOf, bareAddonOf, bindPendingLanHttp, bootstrapSchema, brokerCallForCap, brokerTransportLink, buildAgentAnnouncement, buildBinaryPath, buildCapRouters, buildHeapSample, buildLinkChain, buildNameConstraintSet, buildNativeCapProxy, buildNodeManifest, buildNpmChildEnv, buildStorageLocationRegistry, buildTransporter, builderMountedCapNames, caFingerprint, caFingerprintCompact, caReplacementMarkerFile, callRegisterNodeWithRetry, callWithServiceDiscovery, canServeDataPlane, capActionLabel, capActionName, capActionSuffix, capBareAction, capServiceName, catalogNamespaceOf, certificateNames, chainsToPublicRoot, checkUploadedCa, classifyAddonDir, classifyCapRoute, 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 };
|