@camstack/system 1.2.290 → 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-BkjMEa2F.mjs → dist-DiMNxNDh.mjs} +1286 -1049
- package/dist/{dist-KRK9zLWt.js → dist-XnunBp0n.js} +1287 -1062
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/kernel/moleculer/addon-peer-bytes-facility.d.ts +2 -1
- package/dist/{manifest-system-deps-Dm7QhyvL.js → manifest-system-deps-DTgkfBJy.js} +4 -5
- package/dist/{manifest-system-deps-D_5UXqDb.mjs → manifest-system-deps-ghRqcy_-.mjs} +4 -5
- package/dist/{retired-settings-keys-BSLMlTcz.js → retired-settings-keys-DQn9s_AI.js} +1 -1
- package/dist/{retired-settings-keys-DNK-p6aa.mjs → retired-settings-keys-DnCcgrCG.mjs} +1 -1
- package/package.json +1 -1
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");
|
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 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-
|
|
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";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AddonPeerBytes
|
|
1
|
+
import { AddonPeerBytes } from '@camstack/types/addon';
|
|
2
|
+
import { IScopedLogger } from '@camstack/types';
|
|
2
3
|
export interface AddonPeerBytesFacility {
|
|
3
4
|
readonly peerBytes: AddonPeerBytes;
|
|
4
5
|
dispose(): Promise<void>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-KRK9zLWt.js");
|
|
3
2
|
require("./hub-cap-forward-DmHNjbB0.js");
|
|
4
3
|
let node_crypto = require("node:crypto");
|
|
5
4
|
node_crypto = require_chunk.__toESM(node_crypto);
|
|
@@ -2692,7 +2691,7 @@ async function writeBufferWithBackpressure(res, bytes, stallMs) {
|
|
|
2692
2691
|
sent,
|
|
2693
2692
|
outcome: "peer-gone"
|
|
2694
2693
|
};
|
|
2695
|
-
const end = Math.min(sent +
|
|
2694
|
+
const end = Math.min(sent + _camstack_types_addon.PEER_BYTES_CHUNK_BYTES, bytes.byteLength);
|
|
2696
2695
|
const took = res.write(bytes.subarray(sent, end));
|
|
2697
2696
|
sent = end;
|
|
2698
2697
|
if (took) continue;
|
|
@@ -2710,9 +2709,9 @@ async function writeBufferWithBackpressure(res, bytes, stallMs) {
|
|
|
2710
2709
|
}
|
|
2711
2710
|
function createAddonPeerBytesFacility(args) {
|
|
2712
2711
|
const now = args.now ?? (() => Date.now());
|
|
2713
|
-
const ttlMs = args.ttlMs ??
|
|
2714
|
-
const maxOutstanding = args.maxOutstanding ??
|
|
2715
|
-
const stallMs = args.stallMs ??
|
|
2712
|
+
const ttlMs = args.ttlMs ?? _camstack_types_addon.PEER_BYTES_TICKET_TTL_MS;
|
|
2713
|
+
const maxOutstanding = args.maxOutstanding ?? _camstack_types_addon.PEER_BYTES_MAX_OUTSTANDING;
|
|
2714
|
+
const stallMs = args.stallMs ?? _camstack_types_addon.PEER_BYTES_STALL_MS;
|
|
2716
2715
|
const host = args.host ?? "127.0.0.1";
|
|
2717
2716
|
const hostNodeId = hostNodeIdOf(args.nodeId);
|
|
2718
2717
|
const offers = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { C as PEER_BYTES_CHUNK_BYTES } from "./dist-BkjMEa2F.mjs";
|
|
2
1
|
import "./hub-cap-forward-BdT320dq.mjs";
|
|
3
2
|
import * as crypto$1 from "node:crypto";
|
|
4
3
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
@@ -17,7 +16,7 @@ import * as v8 from "node:v8";
|
|
|
17
16
|
import { Session } from "node:inspector/promises";
|
|
18
17
|
import { monitorEventLoopDelay } from "node:perf_hooks";
|
|
19
18
|
import * as vm from "node:vm";
|
|
20
|
-
import { BOOT_RECOVERY_BACKOFF_MS, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DeviceType, DisposerChain, EventCategory, ReadinessRegistry, asJsonObject, asString, createDeviceProxy, createEventBusSliceSource, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods, readNodePin, scopeKey, sleep, withCapInputDefaults } from "@camstack/types/addon";
|
|
19
|
+
import { BOOT_RECOVERY_BACKOFF_MS, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DeviceType, DisposerChain, EventCategory, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, ReadinessRegistry, asJsonObject, asString, createDeviceProxy, createEventBusSliceSource, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods, readNodePin, scopeKey, sleep, withCapInputDefaults } from "@camstack/types/addon";
|
|
21
20
|
import { once } from "node:events";
|
|
22
21
|
import { connect, createConnection, createServer as createServer$1 } from "node:net";
|
|
23
22
|
import { TRPCClientError, createTRPCClient } from "@trpc/client";
|
|
@@ -2707,9 +2706,9 @@ async function writeBufferWithBackpressure(res, bytes, stallMs) {
|
|
|
2707
2706
|
}
|
|
2708
2707
|
function createAddonPeerBytesFacility(args) {
|
|
2709
2708
|
const now = args.now ?? (() => Date.now());
|
|
2710
|
-
const ttlMs = args.ttlMs ??
|
|
2711
|
-
const maxOutstanding = args.maxOutstanding ??
|
|
2712
|
-
const stallMs = args.stallMs ??
|
|
2709
|
+
const ttlMs = args.ttlMs ?? PEER_BYTES_TICKET_TTL_MS;
|
|
2710
|
+
const maxOutstanding = args.maxOutstanding ?? PEER_BYTES_MAX_OUTSTANDING;
|
|
2711
|
+
const stallMs = args.stallMs ?? PEER_BYTES_STALL_MS;
|
|
2713
2712
|
const host = args.host ?? "127.0.0.1";
|
|
2714
2713
|
const hostNodeId = hostNodeIdOf(args.nodeId);
|
|
2715
2714
|
const offers = /* @__PURE__ */ new Map();
|