@camstack/system 1.2.289 → 1.2.291
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/dist/addon-runner.js +1 -1
- package/dist/addon-runner.mjs +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/dist/builtins/alerts/alerts.addon.js +1 -1
- package/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/dist/builtins/autotrack/index.js +1 -1
- package/dist/builtins/autotrack/index.mjs +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1 -1
- package/dist/builtins/camera-grid/index.js +1 -1
- package/dist/builtins/camera-grid/index.mjs +1 -1
- package/dist/builtins/console-logging/index.js +1 -1
- package/dist/builtins/console-logging/index.mjs +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.js +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +1 -1
- package/dist/builtins/device-manager/device-manager.addon.js +2 -2
- package/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
- package/dist/builtins/doorbell/virtual-doorbell.addon.js +1 -1
- package/dist/builtins/doorbell/virtual-doorbell.addon.mjs +1 -1
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.d.ts +9 -0
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +18 -2
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +18 -2
- package/dist/builtins/local-auth/local-auth.addon.js +1 -1
- package/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
- package/dist/builtins/local-network/local-network.addon.js +1 -1
- package/dist/builtins/local-network/local-network.addon.mjs +1 -1
- package/dist/builtins/loki-logging/index.js +1 -1
- package/dist/builtins/loki-logging/index.mjs +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/dist/builtins/platform-probe/index.js +1 -1
- package/dist/builtins/platform-probe/index.mjs +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/dist/builtins/snapshot/index.js +1 -1
- package/dist/builtins/snapshot/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +0 -0
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +0 -0
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +11 -11
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +11 -11
- package/dist/builtins/system-config/system-config.addon.js +1 -1
- package/dist/builtins/system-config/system-config.addon.mjs +1 -1
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{dist-DKFb2936.mjs → dist-DiMNxNDh.mjs} +1474 -1017
- package/dist/{dist-BYnHJU96.js → dist-XnunBp0n.js} +1479 -1016
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -3
- package/dist/index.mjs +4 -4
- package/dist/kernel/moleculer/addon-peer-bytes-facility.d.ts +25 -0
- package/dist/{manifest-system-deps-B8ZUclN4.js → manifest-system-deps-DTgkfBJy.js} +591 -0
- package/dist/{manifest-system-deps-C9T7784z.mjs → manifest-system-deps-ghRqcy_-.mjs} +585 -6
- package/dist/{retired-settings-keys-C6rFqHR7.js → retired-settings-keys-DQn9s_AI.js} +1 -1
- package/dist/{retired-settings-keys-tuNxNNpR.mjs → retired-settings-keys-DnCcgrCG.mjs} +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ export type { StallVerdict } from './kernel/event-loop-stall-monitor.js';
|
|
|
72
72
|
export { attributeStall, STALL_REPORT_MS, STALL_TICK_MS, startEventLoopStallMonitor, } from './kernel/event-loop-stall-monitor.js';
|
|
73
73
|
export type { AddonDataPlaneFacility, DataPlaneSink, } from './kernel/moleculer/addon-data-plane-facility.js';
|
|
74
74
|
export { createAddonDataPlaneFacility } from './kernel/moleculer/addon-data-plane-facility.js';
|
|
75
|
+
export { createAddonPeerBytesFacility, hostNodeIdOf, type AddonPeerBytesFacility, type AddonPeerBytesFacilityArgs, } from './kernel/moleculer/addon-peer-bytes-facility.js';
|
|
75
76
|
export type { ElementState, ElementStatus, } from './lifecycle/lifecycle-state-machine.js';
|
|
76
77
|
export { LifecycleStateMachine } from './lifecycle/lifecycle-state-machine.js';
|
|
77
78
|
export { formatLogLine } from './logging/formatter.js';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("./dist-
|
|
3
|
+
const require_dist = require("./dist-XnunBp0n.js");
|
|
4
4
|
const require_builtins_alerts_alerts_addon = require("./builtins/alerts/alerts.addon.js");
|
|
5
5
|
require("./builtins/alerts/index.js");
|
|
6
6
|
const require_formatter = require("./formatter-DqAKDlvN.js");
|
|
@@ -27,7 +27,7 @@ require("./builtins/system-config/index.js");
|
|
|
27
27
|
const require_builtins_winston_logging_index = require("./builtins/winston-logging/index.js");
|
|
28
28
|
const require_event_loop_stall_monitor = require("./event-loop-stall-monitor-CAsHdMwP.js");
|
|
29
29
|
const require_tls$1 = require("./tls-D_wUeOTD.js");
|
|
30
|
-
const require_manifest_system_deps = require("./manifest-system-deps-
|
|
30
|
+
const require_manifest_system_deps = require("./manifest-system-deps-DTgkfBJy.js");
|
|
31
31
|
const require_resource_monitor = require("./resource-monitor-LVE1BoLs.js");
|
|
32
32
|
const require_custom_action_registry = require("./custom-action-registry-acBY3mHA.js");
|
|
33
33
|
let zod = require("zod");
|
|
@@ -48,8 +48,8 @@ let node_http = require("node:http");
|
|
|
48
48
|
let node_vm = require("node:vm");
|
|
49
49
|
node_vm = require_chunk.__toESM(node_vm);
|
|
50
50
|
let _camstack_types_addon = require("@camstack/types/addon");
|
|
51
|
-
let node_url = require("node:url");
|
|
52
51
|
let node_events = require("node:events");
|
|
52
|
+
let node_url = require("node:url");
|
|
53
53
|
let node_stream = require("node:stream");
|
|
54
54
|
node_stream = require_chunk.__toESM(node_stream, 1);
|
|
55
55
|
let node_string_decoder = require("node:string_decoder");
|
|
@@ -96037,6 +96037,7 @@ exports.copyDirRecursive = copyDirRecursive;
|
|
|
96037
96037
|
exports.copyExtraFileDirs = copyExtraFileDirs;
|
|
96038
96038
|
exports.createAddonContext = require_manifest_system_deps.createAddonContext;
|
|
96039
96039
|
exports.createAddonDataPlaneFacility = require_manifest_system_deps.createAddonDataPlaneFacility;
|
|
96040
|
+
exports.createAddonPeerBytesFacility = require_manifest_system_deps.createAddonPeerBytesFacility;
|
|
96040
96041
|
exports.createAddonService = require_manifest_system_deps.createAddonService;
|
|
96041
96042
|
exports.createArrayBufferCensusGate = require_manifest_system_deps.createArrayBufferCensusGate;
|
|
96042
96043
|
exports.createAuthenticatedFileServer = require_event_loop_stall_monitor.createAuthenticatedFileServer;
|
|
@@ -96164,6 +96165,7 @@ exports.getWorkerDeviceRegistry = require_manifest_system_deps.getWorkerDeviceRe
|
|
|
96164
96165
|
exports.hasDotNode = hasDotNode;
|
|
96165
96166
|
exports.hashClusterSecret = hashClusterSecret;
|
|
96166
96167
|
exports.heapSpaceField = require_manifest_system_deps.heapSpaceField;
|
|
96168
|
+
exports.hostNodeIdOf = require_manifest_system_deps.hostNodeIdOf;
|
|
96167
96169
|
exports.hubMainRssBudget = require_manifest_system_deps.hubMainRssBudget;
|
|
96168
96170
|
exports.installManifestNativeDeps = require_manifest_system_deps.installManifestNativeDeps;
|
|
96169
96171
|
exports.installManifestPythonDeps = require_manifest_system_deps.installManifestPythonDeps;
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM$1, r as __exportAll, t as __commonJSMin$1 } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Bt as procedureAuthKey, Cn as asNumber, En as emitDownForOwnedCaps, Fn as readinessKey, In as resolveCapMount, It as objectInputDeclaresAddonId, Jt as scopesAllowAddon, Kt as resolveMethodAuth, Ln as scopeKey, Lt as objectInputDeclaresRequiredDeviceId, Nn as parseJsonObject, On as expandCapMethods, Ot as logLevelAtMost, Pn as parseJsonUnknown, R as addonSettingsCapability, Sn as asJsonObject$1, St as kebabToCamel, T as RUNTIME_DEFAULTS, Tn as createEvent, Yt as scopesAllowDeviceCap, _ as LOG_LEVEL_RANK, b as METHOD_ACCESS_MAP, bn as ReadinessTimeoutError, gt as isCollectionArrayMethod, hn as DEVICE_STATUS_METHOD, ht as isArrayOutputSchema, kt as looseSchema, mn as DEVICE_SETTINGS_CONTRIBUTION_METHODS, pn as DATAPLANE_SECRET_HEADER$1, t as ALL_CAPABILITY_DEFINITIONS, un as errMsg$1, ut as extractNestedAddonId, vt as isObjectInput, wn as asString$1, wt as lifecycleJobSchema, xt as isVoidInput, yn as ReadinessRegistry, zn as EventCategory$1 } from "./dist-DiMNxNDh.mjs";
|
|
3
3
|
import { AlertCenterAddon } from "./builtins/alerts/alerts.addon.mjs";
|
|
4
4
|
import "./builtins/alerts/index.mjs";
|
|
5
5
|
import { t as formatLogLine } from "./formatter-B7qW8bPJ.mjs";
|
|
@@ -26,7 +26,7 @@ import "./builtins/system-config/index.mjs";
|
|
|
26
26
|
import { WinstonDestination, WinstonLoggingAddon } from "./builtins/winston-logging/index.mjs";
|
|
27
27
|
import { _ as fetchJson, a as createFileDataPlaneHandler, c as parseRangeHeader, d as ModelDownloadService, f as collectModelFiles, g as ensureModel, h as downloadModel, i as startEventLoopStallMonitor, l as parseTokenizedUrl, m as downloadFile, n as STALL_TICK_MS, o as contentTypeFor, p as deleteModelFromDisk, r as attributeStall, s as createAuthenticatedFileServer, t as STALL_REPORT_MS, u as resolveFilePath, v as getModelFilePath, y as isModelDownloaded } from "./event-loop-stall-monitor-GPrVvx14.mjs";
|
|
28
28
|
import { C as registerLanHttpHandler, S as readLanHttpState, _ as DEFAULT_LAN_HTTP_PORT, a as writeTlsMode, b as bindPendingLanHttp, c as loadTlsCert, d as collectCertIdentity, f as CA_VALIDITY_DAYS, g as evaluateExistingCert, h as SERVER_AUTH_OID, i as writeExtraSans, l as reissueTlsLeaf, m as MAX_LEAF_VALIDITY_DAYS, n as readTlsAccessStatus, o as validateUploadedTls, p as LEAF_RENEWAL_WINDOW_DAYS, r as readTlsMode, s as ensureTlsCert, t as readExtraSans, u as CA_COMMON_NAME, v as allFamiliesListenHost, x as closeLanHttp, y as applyLanHttp } from "./tls-IM-v7JV4.mjs";
|
|
29
|
-
import { $ as buildNativeCapProxy, $t as
|
|
29
|
+
import { $ as buildNativeCapProxy, $t as strandedMb, A as createUdsLogger, An as readSocketQueues, At as HEAP_RECLAIM_TRIGGER_MB, B as UDS_NO_ROUTE_PREFIX, Bn as MAX_CAP_ACTIONS_PER_PEER, Bt as ZERO_LOOP_DELAY, C as deviceCapResolverLink, Cn as EMPTY_SOCKET_PLANE_BASELINE, Ct as resolveNpmInvocation, D as createUdsEventBridge, Dn as createSocketPlaneReader, Dt as createAddonDataPlaneFacility, E as createParentUnownedCallHandler, En as createSocketPlaneMeter, Et as hostNodeIdOf, F as callWithServiceDiscovery, Fn as socketDirectionBytes, Ft as HUB_RSS_BUDGET_ENV, G as getCapUsageRegistry, Gn as createEventPlaneMeter, Gt as describeRss, H as CapUsageRegistry, Hn as createCapActionCensus, Ht as createDeferredHeapWatchSink, I as CapRouteError, In as socketDirectionMessages, It as RSS_BUDGET_REANNOUNCE_MIN_MS, J as UdsLocalTransportServer, Jn as formatEventPlane, Jt as parseRssBudgetMb, K as createLocalTransport, Kn as createEventPlaneReader, Kt as hubMainRssBudget, L as classifyCapRoute, Ln as CAP_ACTION_OVERFLOW_LABEL, Lt as RSS_BUDGET_RELEASE_RATIO, M as AGENT_CAP_FWD_ACTION, Mn as createSocketDirectionCounters, Mt as HEAP_WATCH_WARN_RATIO, N as AGENT_CAP_FWD_SERVICE, Nn as recordSocketFrame, Nt as HUB_MAIN_HEAP_WATCH_LABEL, O as createUdsEventBus, On as diffSocketPlane, Ot as HEAP_RECLAIM_MIN_INTERVAL_MS, P as CapRouteResolver, Pn as sampleSocketDirection, Pt as HUB_MAIN_RSS_BUDGET_MB, Q as encodeFrame, Qt as startRunnerHeapWatch, R as LocalChildClient, Rn as CAP_ACTION_UNLABELLED, Rt as RUNNER_HEAP_WATCH_INTERVAL_MS, S as buildLinkChain, Sn as formatMeshQueue, St as buildNpmChildEnv, T as localProviderLink, Tn as SOCKET_QUEUE_TOP_N, Tt as createAddonPeerBytesFacility, U as PARENT_ROUTED_PROVIDER_ADDON_ID, Un as diffCapActionCensus, Ut as createLoopDelayMeter, V as readMoleculerFanoutMode, Vn as capActionLabel, Vt as buildHeapSample, W as __resetCapUsageRegistryForTests, Wn as EVENT_PLANE_TOP_N, Wt as createV8Reclaimer, X as localEndpointPath, Xt as shouldReclaim, Y as SocketChannel, Yt as reclaimIntervalMs, Z as FrameDecoder, Zt as startHeapWatch, _ as AddonDepsManager, _n as OUTBOUND_QUEUE_THRESHOLD_BYTES, _t as CapabilityHandle, a as createUdsAddonContext, an as createInspectorArrayBufferCensus, b as brokerCallForCap, bn as MESH_QUEUE_TOP_N, bt as installManifestNativeDeps, c as getOrInitReadinessRegistryForClient, cn as DECISIVE_HEAP_SPACES, ct as NATIVE_PROVIDER_SERVICE_INFIX, d as clusterEventTopic, dn as formatHeapSpaces, dt as capBareAction, en as ARRAY_BUFFER_CENSUS_COOLDOWN_MS, et as buildUdsNativeCapProxy, f as getBrokerEventBus, fn as heapSpaceField, ft as capServiceName, g as subscribePassthrough, gn as OUTBOUND_QUEUE_SUSTAIN_MS, gt as DeviceRegistry, h as setNodeEventInterest, hn as OUTBOUND_QUEUE_COOLDOWN_MS, ht as serializeTypedArrays, i as createAddonContext, in as createArrayBufferCensusGate, it as mountNativeCapService, j as createUdsLoggerWithControl, jn as EMPTY_SOCKET_DIRECTION, jt as HEAP_WATCH_INTERVAL_MS, k as udsChildLogToWorkerEntry, kn as formatSocketPlane, kt as HEAP_RECLAIM_STEADY_STATE_INTERVAL_MS, l as setHubConnected, ln as HEAP_SPACE_REPORT_MIN_MB, lt as capActionName, m as registerEventBusService, mn as selectReportedSpaces, mt as deserializeTypedArrays, n as installManifestPythonDeps, nn as ARRAY_BUFFER_CENSUS_THRESHOLD_MB, o as getWorkerDeviceRegistry, on as formatArrayBufferCensus, ot as createAddonService, p as getMoleculerEventStats, pn as readHeapSpaces, pt as parseCapAction, q as UdsLocalTransportClient, qn as diffEventPlane, qt as nextRssBudgetState, r as adaptBrokerToCluster, rn as ARRAY_BUFFER_RELEASE_MIN_DROP_RATIO, s as getOrInitReadinessRegistry, sn as isArrayBufferCensusReport, st as validateProviderRegistrations, t as installManifestSystemDeps, tn as ARRAY_BUFFER_CENSUS_SUSTAIN_MS, tt as createBrokerDeviceManagerApi, u as EVENT_TOPIC_PREFIX, un as emitHeapDiagnosticReport, ut as capActionSuffix, v as createKernelHwAccel, vn as createOutboundQueueGate, vt as CapabilityUnavailableError, w as ipcParentLink, wn as SOCKET_PLANE_TOP_N, wt as runNpm, x as brokerTransportLink, xn as createMeshQueueReader, xt as resolveAddonClass, y as resolveHwAccel, yn as formatOutboundQueueVerdict, yt as copyBundledNativeModules, z as LocalChildRegistry, zn as EMPTY_CAP_ACTION_READING, zt as RUNNER_RSS_BUDGET_ENV } from "./manifest-system-deps-ghRqcy_-.mjs";
|
|
30
30
|
import { n as getSinglePidStats, t as getPidStats } from "./resource-monitor-Vp0bPV3U.mjs";
|
|
31
31
|
import { t as CustomActionRegistry } from "./custom-action-registry-B4Cf4O_X.mjs";
|
|
32
32
|
import { z } from "zod";
|
|
@@ -44,8 +44,8 @@ import { promisify } from "node:util";
|
|
|
44
44
|
import { request } from "node:http";
|
|
45
45
|
import * as vm from "node:vm";
|
|
46
46
|
import { asJsonObject, errMsg } from "@camstack/types/addon";
|
|
47
|
-
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
48
47
|
import { EventEmitter } from "node:events";
|
|
48
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
49
49
|
import As from "node:stream";
|
|
50
50
|
import { StringDecoder } from "node:string_decoder";
|
|
51
51
|
import { lstatSync, readdir as readdir$1, readdirSync as readdirSync$1, readlinkSync, realpathSync } from "fs";
|
|
@@ -95829,4 +95829,4 @@ var LifecycleJobEngine = class {
|
|
|
95829
95829
|
}
|
|
95830
95830
|
};
|
|
95831
95831
|
//#endregion
|
|
95832
|
-
export { AGENT_CAP_FWD_ACTION, AGENT_CAP_FWD_SERVICE, AGENT_READINESS_SERVICE_NAME, 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, AddonRouteRegistry, AlertCenterAddon, ApiKeyManager, AuthManager, CAP_ACTION_OVERFLOW_LABEL, CAP_ACTION_UNLABELLED, CA_COMMON_NAME, CA_VALIDITY_DAYS, CLUSTER_SECRET_MISMATCH_TYPE, CLUSTER_SECRET_REJECTED_EXIT_CODE, CORE_CAP_SERVICE_NAME, CapRouteError, CapRouteResolver, CapUsageRegistry, CapabilityHandle, CapabilityRegistry, CapabilityUnavailableError, ConfigManager, ConfigStore, ConsoleDestination, ConsoleLoggingAddon, CoreBlocksAddon, CustomActionRegistry, DECISIVE_HEAP_SPACES, DEFAULT_DATA_PATH, DEFAULT_LAN_HTTP_PORT, DEFAULT_LOG_LEVEL, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATUS_METHOD, DataPlaneRegistry, DeviceManagerAddon, DeviceRegistry, DeviceStore, EMPTY_CAP_ACTION_READING, EMPTY_SOCKET_DIRECTION, EMPTY_SOCKET_PLANE_BASELINE, EVENT_PLANE_TOP_N, EVENT_TOPIC_PREFIX, EngineManagerResolver, EventBus, FeatureManager, FilesystemStorageAddon, FilesystemStorageProvider, FrameDecoder, FsStorageBackend, HEALTH_MONITOR_GRACE_PERIOD_MS, HEALTH_MONITOR_RETRY_INTERVALS_MS, HEALTH_MONITOR_TICK_MS, HEAP_RECLAIM_MIN_INTERVAL_MS, HEAP_RECLAIM_STEADY_STATE_INTERVAL_MS, HEAP_RECLAIM_TRIGGER_MB, HEAP_SPACE_REPORT_MIN_MB, HEAP_WATCH_INTERVAL_MS, HEAP_WATCH_WARN_RATIO, HUB_CAP_FWD_ACTION, HUB_CAP_FWD_SERVICE, HUB_MAIN_HEAP_WATCH_LABEL, HUB_MAIN_RSS_BUDGET_MB, HUB_RSS_BUDGET_ENV, HubForwarderAddon, HubForwarderDestination, HubLogForwarder, HubNodeRegistry, INFRA_CAPABILITIES, IntegrationRegistry, JobJournal, LEAF_RENEWAL_WINDOW_DAYS, LifecycleJobEngine, LifecycleStateMachine, LivenessMonitorAddon, LocalAuthAddon, LocalChildClient, LocalChildRegistry, LogManager, LogRingBuffer, LoggingGate, LokiDestination, LokiLoggingAddon, MAX_CAP_ACTIONS_PER_PEER, MAX_LEAF_VALIDITY_DAYS, MESH_QUEUE_TOP_N, METHOD_ACCESS_MAP, ModelDownloadService, NATIVE_PROVIDER_SERVICE_INFIX, NATIVE_SCAN_DEPTH, NativeMetricsAddon, NativeMetricsProvider, NetworkQualityTracker, NotificationService, OUTBOUND_QUEUE_COOLDOWN_MS, OUTBOUND_QUEUE_SUSTAIN_MS, OUTBOUND_QUEUE_THRESHOLD_BYTES, PARENT_ROUTED_PROVIDER_ADDON_ID, PYTHON_VERSION, PipelineRunner, PipelineValidator, PythonEnvManager, QUARANTINE_DIRNAME, 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, ReplEngine, RingBuffer, SERVER_AUTH_OID, SOCKET_PLANE_TOP_N, SOCKET_QUEUE_TOP_N, STALL_REPORT_MS, STALL_TICK_MS, ScopedLogger, ScopedTokenManager, SocketChannel, SqliteSettingsAddon, SqliteSettingsBackend, StagingArea, StorageLocationManager, StorageManager, StorageOrchestratorAddon, StorageOrchestratorService, SystemConfigAddon, SystemEventBus, TRADITIONAL_NATIVE_PACKAGES, ToastService, UDS_NO_ROUTE_PREFIX, UdsLocalTransportClient, UdsLocalTransportServer, UserManager, WinstonDestination, WinstonLoggingAddon, ZERO_LOOP_DELAY, __resetCapUsageRegistryForTests, __resetLoggingGateForTests, adaptBrokerToCluster, addonSettingsCapability, allFamiliesListenHost, applyLanHttp, attributeStall, bindPendingLanHttp, bootstrapSchema, brokerCallForCap, brokerTransportLink, buildBinaryPath, buildCapRouters, buildHeapSample, buildLinkChain, buildNativeCapProxy, buildNodeManifest, buildNpmChildEnv, buildStorageLocationRegistry, buildUdsNativeCapProxy, builderMountedCapNames, callRegisterNodeWithRetry, callWithServiceDiscovery, canServeDataPlane, capActionLabel, capActionName, capActionSuffix, capBareAction, capServiceName, classifyAddonDir, classifyCapRoute, clearPendingRestart, closeLanHttp, clusterEventTopic, clusterSecretMatches, collectCertIdentity, collectModelFiles, contentTypeFor, copyDirRecursive, copyExtraFileDirs, createAddonContext, createAddonDataPlaneFacility, createAddonService, createArrayBufferCensusGate, createAuthenticatedFileServer, createBroker, createBrokerDeviceManagerApi, createCapActionCensus, createCoreCapService, createDeferredHeapWatchSink, createDoorSettingsView, createEventPlaneMeter, createEventPlaneReader, createFileDataPlaneHandler, createHubCapForwardService, createHubService, createInspectorArrayBufferCensus, createKernelHwAccel, createLocalTransport, createLoopDelayMeter, createMeshQueueReader, createOutboundQueueGate, createParentUnownedCallHandler, createProcessService, createReadinessService, createReadinessServiceForRegistry, createScopedProcessManager, createSocketDirectionCounters, createSocketPlaneMeter, createSocketPlaneReader, createStreamProbeBrokerService, createUdsAddonContext, createUdsEventBridge, createUdsEventBus, createUdsLogger, createUdsLoggerWithControl, createV8Reclaimer, deleteModelFromDisk, deriveAgentListenPort, describeProviderKindDrift, describeRss, detectWorkspacePackagesDir, deviceCapResolverLink, diffCapActionCensus, diffEventPlane, diffSocketPlane, downloadBinary, downloadFile, downloadModel, emitDownForOwnedCaps, emitHeapDiagnosticReport, encodeFrame, ensureAddonNativePrebuilds, ensureBinary, ensureDir, ensureFfmpeg, ensureLibraryBuilt, ensureModel, ensureNativePrebuilds, ensurePython, ensureTlsCert, evaluateExistingCert, expandCapMethods, fetchJson, findInPath, formatArrayBufferCensus, formatEventPlane, formatHeapSpaces, formatLogLine, formatMeshQueue, formatOutboundQueueVerdict, formatSocketPlane, getBrokerEventBus, getCapUsageRegistry, getFfmpegDownloadUrl, getLoggingGate, getModelFilePath, getMoleculerEventStats, getOrInitReadinessRegistry, getOrInitReadinessRegistryForClient, getPidStats, getPlatformInfo, getPythonDownloadUrl, getRestartMarkerPath, getSinglePidStats, getWorkerDeviceRegistry, hasDotNode, hashClusterSecret, heapSpaceField, hubMainRssBudget, installManifestNativeDeps, installManifestPythonDeps, installManifestSystemDeps, installPackageFromNpm, installPythonPackages, installPythonRequirements, ipcParentLink, isAddonDeploySource, isArrayBufferCensusReport, isArrayOutputSchema, isClusterSecretMismatchError, isCollectionArrayMethod, isInfraCapability, isModelDownloaded, isSourceNewer, isolatedBuiltinPhase, loadTlsCert, localEndpointPath, localProviderLink, mountNativeCapService, nextRssBudgetState, parseCapAction, parseRangeHeader, parseRssBudgetMb, parseTokenizedUrl, partitionIsolatedBuiltinIds, proxyToUpstream, quarantineAddonResidue, readExtraSans, readHeapSpaces, readLanHttpState, readMoleculerFanoutMode, readPendingRestart, readSocketQueues, readTlsAccessStatus, readTlsMode, readinessKey, reclaimIntervalMs, recordSocketFrame, registerEventBusService, registerLanHttpHandler, reissueTlsLeaf, resolveFilePath, resolveHwAccel, resolveNpmInvocation, runHubAddonBoot, runNpm, sampleSocketDirection, scheduleSelfRestart, scopeKey, scopesAllowAddon, scopesAllowDeviceCap, selectAddonResidue, selectReportedSpaces, serializeTypedArrays, setHubConnected, setNodeEventInterest, setWrapperActive, shouldReclaim, socketDirectionBytes, socketDirectionMessages, startEventLoopStallMonitor, startHeapWatch, startRunnerHeapWatch, strandedMb, stripCamstackDeps, subscribePassthrough, udsChildLogToWorkerEntry, validateProviderRegistrations, validateUploadedTls, waitUntilReady, writeExtraSans, writePendingRestart, writeTlsMode };
|
|
95832
|
+
export { AGENT_CAP_FWD_ACTION, AGENT_CAP_FWD_SERVICE, AGENT_READINESS_SERVICE_NAME, 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, AddonRouteRegistry, AlertCenterAddon, ApiKeyManager, AuthManager, CAP_ACTION_OVERFLOW_LABEL, CAP_ACTION_UNLABELLED, CA_COMMON_NAME, CA_VALIDITY_DAYS, CLUSTER_SECRET_MISMATCH_TYPE, CLUSTER_SECRET_REJECTED_EXIT_CODE, CORE_CAP_SERVICE_NAME, CapRouteError, CapRouteResolver, CapUsageRegistry, CapabilityHandle, CapabilityRegistry, CapabilityUnavailableError, ConfigManager, ConfigStore, ConsoleDestination, ConsoleLoggingAddon, CoreBlocksAddon, CustomActionRegistry, DECISIVE_HEAP_SPACES, DEFAULT_DATA_PATH, DEFAULT_LAN_HTTP_PORT, DEFAULT_LOG_LEVEL, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATUS_METHOD, DataPlaneRegistry, DeviceManagerAddon, DeviceRegistry, DeviceStore, EMPTY_CAP_ACTION_READING, EMPTY_SOCKET_DIRECTION, EMPTY_SOCKET_PLANE_BASELINE, EVENT_PLANE_TOP_N, EVENT_TOPIC_PREFIX, EngineManagerResolver, EventBus, FeatureManager, FilesystemStorageAddon, FilesystemStorageProvider, FrameDecoder, FsStorageBackend, HEALTH_MONITOR_GRACE_PERIOD_MS, HEALTH_MONITOR_RETRY_INTERVALS_MS, HEALTH_MONITOR_TICK_MS, HEAP_RECLAIM_MIN_INTERVAL_MS, HEAP_RECLAIM_STEADY_STATE_INTERVAL_MS, HEAP_RECLAIM_TRIGGER_MB, HEAP_SPACE_REPORT_MIN_MB, HEAP_WATCH_INTERVAL_MS, HEAP_WATCH_WARN_RATIO, HUB_CAP_FWD_ACTION, HUB_CAP_FWD_SERVICE, HUB_MAIN_HEAP_WATCH_LABEL, HUB_MAIN_RSS_BUDGET_MB, HUB_RSS_BUDGET_ENV, HubForwarderAddon, HubForwarderDestination, HubLogForwarder, HubNodeRegistry, INFRA_CAPABILITIES, IntegrationRegistry, JobJournal, LEAF_RENEWAL_WINDOW_DAYS, LifecycleJobEngine, LifecycleStateMachine, LivenessMonitorAddon, LocalAuthAddon, LocalChildClient, LocalChildRegistry, LogManager, LogRingBuffer, LoggingGate, LokiDestination, LokiLoggingAddon, MAX_CAP_ACTIONS_PER_PEER, MAX_LEAF_VALIDITY_DAYS, MESH_QUEUE_TOP_N, METHOD_ACCESS_MAP, ModelDownloadService, NATIVE_PROVIDER_SERVICE_INFIX, NATIVE_SCAN_DEPTH, NativeMetricsAddon, NativeMetricsProvider, NetworkQualityTracker, NotificationService, OUTBOUND_QUEUE_COOLDOWN_MS, OUTBOUND_QUEUE_SUSTAIN_MS, OUTBOUND_QUEUE_THRESHOLD_BYTES, PARENT_ROUTED_PROVIDER_ADDON_ID, PYTHON_VERSION, PipelineRunner, PipelineValidator, PythonEnvManager, QUARANTINE_DIRNAME, 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, ReplEngine, RingBuffer, SERVER_AUTH_OID, SOCKET_PLANE_TOP_N, SOCKET_QUEUE_TOP_N, STALL_REPORT_MS, STALL_TICK_MS, ScopedLogger, ScopedTokenManager, SocketChannel, SqliteSettingsAddon, SqliteSettingsBackend, StagingArea, StorageLocationManager, StorageManager, StorageOrchestratorAddon, StorageOrchestratorService, SystemConfigAddon, SystemEventBus, TRADITIONAL_NATIVE_PACKAGES, ToastService, UDS_NO_ROUTE_PREFIX, UdsLocalTransportClient, UdsLocalTransportServer, UserManager, WinstonDestination, WinstonLoggingAddon, ZERO_LOOP_DELAY, __resetCapUsageRegistryForTests, __resetLoggingGateForTests, adaptBrokerToCluster, addonSettingsCapability, allFamiliesListenHost, applyLanHttp, attributeStall, bindPendingLanHttp, bootstrapSchema, brokerCallForCap, brokerTransportLink, buildBinaryPath, buildCapRouters, buildHeapSample, buildLinkChain, buildNativeCapProxy, buildNodeManifest, buildNpmChildEnv, buildStorageLocationRegistry, buildUdsNativeCapProxy, builderMountedCapNames, callRegisterNodeWithRetry, callWithServiceDiscovery, canServeDataPlane, capActionLabel, capActionName, capActionSuffix, capBareAction, capServiceName, classifyAddonDir, classifyCapRoute, clearPendingRestart, closeLanHttp, clusterEventTopic, clusterSecretMatches, collectCertIdentity, collectModelFiles, contentTypeFor, copyDirRecursive, copyExtraFileDirs, createAddonContext, createAddonDataPlaneFacility, createAddonPeerBytesFacility, createAddonService, createArrayBufferCensusGate, createAuthenticatedFileServer, createBroker, createBrokerDeviceManagerApi, createCapActionCensus, createCoreCapService, createDeferredHeapWatchSink, createDoorSettingsView, createEventPlaneMeter, createEventPlaneReader, createFileDataPlaneHandler, createHubCapForwardService, createHubService, createInspectorArrayBufferCensus, createKernelHwAccel, createLocalTransport, createLoopDelayMeter, createMeshQueueReader, createOutboundQueueGate, createParentUnownedCallHandler, createProcessService, createReadinessService, createReadinessServiceForRegistry, createScopedProcessManager, createSocketDirectionCounters, createSocketPlaneMeter, createSocketPlaneReader, createStreamProbeBrokerService, createUdsAddonContext, createUdsEventBridge, createUdsEventBus, createUdsLogger, createUdsLoggerWithControl, createV8Reclaimer, deleteModelFromDisk, deriveAgentListenPort, describeProviderKindDrift, describeRss, detectWorkspacePackagesDir, deviceCapResolverLink, diffCapActionCensus, diffEventPlane, diffSocketPlane, downloadBinary, downloadFile, downloadModel, emitDownForOwnedCaps, emitHeapDiagnosticReport, encodeFrame, ensureAddonNativePrebuilds, ensureBinary, ensureDir, ensureFfmpeg, ensureLibraryBuilt, ensureModel, ensureNativePrebuilds, ensurePython, ensureTlsCert, evaluateExistingCert, expandCapMethods, fetchJson, findInPath, formatArrayBufferCensus, formatEventPlane, formatHeapSpaces, formatLogLine, formatMeshQueue, formatOutboundQueueVerdict, formatSocketPlane, getBrokerEventBus, getCapUsageRegistry, getFfmpegDownloadUrl, getLoggingGate, getModelFilePath, getMoleculerEventStats, getOrInitReadinessRegistry, getOrInitReadinessRegistryForClient, getPidStats, getPlatformInfo, getPythonDownloadUrl, getRestartMarkerPath, getSinglePidStats, getWorkerDeviceRegistry, hasDotNode, hashClusterSecret, heapSpaceField, hostNodeIdOf, hubMainRssBudget, installManifestNativeDeps, installManifestPythonDeps, installManifestSystemDeps, installPackageFromNpm, installPythonPackages, installPythonRequirements, ipcParentLink, isAddonDeploySource, isArrayBufferCensusReport, isArrayOutputSchema, isClusterSecretMismatchError, isCollectionArrayMethod, isInfraCapability, isModelDownloaded, isSourceNewer, isolatedBuiltinPhase, loadTlsCert, localEndpointPath, localProviderLink, mountNativeCapService, nextRssBudgetState, parseCapAction, parseRangeHeader, parseRssBudgetMb, parseTokenizedUrl, partitionIsolatedBuiltinIds, proxyToUpstream, quarantineAddonResidue, readExtraSans, readHeapSpaces, readLanHttpState, readMoleculerFanoutMode, readPendingRestart, readSocketQueues, readTlsAccessStatus, readTlsMode, readinessKey, reclaimIntervalMs, recordSocketFrame, registerEventBusService, registerLanHttpHandler, reissueTlsLeaf, resolveFilePath, resolveHwAccel, resolveNpmInvocation, runHubAddonBoot, runNpm, sampleSocketDirection, scheduleSelfRestart, scopeKey, scopesAllowAddon, scopesAllowDeviceCap, selectAddonResidue, selectReportedSpaces, serializeTypedArrays, setHubConnected, setNodeEventInterest, setWrapperActive, shouldReclaim, socketDirectionBytes, socketDirectionMessages, startEventLoopStallMonitor, startHeapWatch, startRunnerHeapWatch, strandedMb, stripCamstackDeps, subscribePassthrough, udsChildLogToWorkerEntry, validateProviderRegistrations, validateUploadedTls, waitUntilReady, writeExtraSans, writePendingRestart, writeTlsMode };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AddonPeerBytes } from '@camstack/types/addon';
|
|
2
|
+
import { IScopedLogger } from '@camstack/types';
|
|
3
|
+
export interface AddonPeerBytesFacility {
|
|
4
|
+
readonly peerBytes: AddonPeerBytes;
|
|
5
|
+
dispose(): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
export interface AddonPeerBytesFacilityArgs {
|
|
8
|
+
readonly addonId: string;
|
|
9
|
+
readonly logger: IScopedLogger;
|
|
10
|
+
/**
|
|
11
|
+
* This process's node id. A runner's is `<hostNode>/<runnerId>`
|
|
12
|
+
* (`addon-runner.ts`), so the HOST — the only thing loopback reachability is
|
|
13
|
+
* a fact about — is the part before the first slash.
|
|
14
|
+
*/
|
|
15
|
+
readonly nodeId: string;
|
|
16
|
+
/** Loopback, and only loopback, in production. */
|
|
17
|
+
readonly host?: string;
|
|
18
|
+
readonly now?: () => number;
|
|
19
|
+
readonly ttlMs?: number;
|
|
20
|
+
readonly maxOutstanding?: number;
|
|
21
|
+
readonly stallMs?: number;
|
|
22
|
+
}
|
|
23
|
+
/** The HOST a node id belongs to. `hub` → `hub`; `hub/runner-3` → `hub`. */
|
|
24
|
+
export declare function hostNodeIdOf(nodeId: string): string;
|
|
25
|
+
export declare function createAddonPeerBytesFacility(args: AddonPeerBytesFacilityArgs): AddonPeerBytesFacility;
|