@oxagen/cli 2.1.4-481 → 2.1.4-494
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/oxagen.mjs +623 -287
- package/package.json +1 -1
package/oxagen.mjs
CHANGED
|
@@ -5615,7 +5615,7 @@ function bundleSkillChars(skill) {
|
|
|
5615
5615
|
for (const file of skill.files) chars += file.path.length + file.content.length;
|
|
5616
5616
|
return chars;
|
|
5617
5617
|
}
|
|
5618
|
-
var TACHO_BATCH_SCHEMA, TACHO_BUNDLE_SCHEMA, TACHO_COMMANDS_SCHEMA, TACHO_ENROLLMENT_CLAIMS_SCHEMA, TACHO_ENFORCEMENT_TIER_ATTR, TACHO_GATEWAY_TIER, TACHO_GATEWAY_SESSION_HEADER, TACHO_GATEWAY_GENESIS_HEADER, TACHO_METERING_ATTR, TACHO_METERING_OBSERVED, TACHO_MODEL_SESSION_HEADER, TACHO_CREDENTIAL_BASIS_ATTR, TACHO_CREDENTIAL_GATEWAY_BROKERED, TACHO_CREDENTIAL_HARNESS_HELD, TACHO_CREDENTIAL_BASES, TACHO_RUN_TOKEN_ATTR, BUNDLE_FEATURE_GATEWAY_TOOLS, BUNDLE_FEATURE_MODEL_PRICES, BUNDLE_FEATURE_MODEL_ALLOWLIST, BUNDLE_FEATURE_INDEPENDENT_MODELS, BUNDLE_FEATURE_HOOK_FAIL_OPEN, BUNDLE_FEATURE_STEERING_MANIFEST, BUNDLE_FEATURE_CONTAINMENT, BUNDLE_FEATURE_DAILY_BUDGET, BUNDLE_FEATURE_STEER_NEXT_STEP, BUNDLE_FEATURE_UNBOUND_REPO, BUNDLE_FEATURE_CEDAR, BUNDLE_FEATURE_SKILLS, BUNDLE_FEATURE_CACHE_KEEP_ALIVE, BUNDLE_FEATURE_WORK_ORDERS, TACHO_BUNDLE_FEATURES, bundleFeaturesSchema, hostEnrollmentIdSchema, tachoPlatformSchema, tachoHarnessSchema, TACHO_HARNESS_LABELS, TACHO_HARNESS_TIERS, WRAPPED_HARNESSES, CONNECTED_HARNESSES, HARNESS_BINARY, MODEL_HARNESS_ROUTES, MODEL_ROUTED_HARNESSES, BROKERABLE_HARNESSES, BROKERABLE_HARNESS_PROVIDER, TACHO_TIER_SUMMARY, CUSTOM_AGENT_NAME_PATTERN, RESERVED_AGENT_NAMES, customAgentNameSchema, tachoHostStatusSchema, tachoBundleModeSchema, tachoCommandSchema, tachoCommandStatusSchema, tachoCommandAckStatusSchema, tachoDeliveryModeSchema, denyGenerationSchema, deliveredCommandSchema, deliveredCommandResponseSchema, WORK_ORDER_ID_PATTERN, WORK_ITEM_ID_PATTERN, workOrderCommandPayloadSchema, WORK_ORDER_CLAIM_PATH, WORK_ORDER_REJECT_PATH, workOrderClaimResponseSchema, workOrderRejectResponseSchema, WORK_ORDER_ENV, WORK_ORDER_ATTR, steeringForceSchema, steeringItemKindSchema, steeringCutReasonSchema, steeringManifestItemSchema, STEERING_MANIFEST_SCHEMA, steeringManifestSchema, steeringManifestFrameSchema, cedarIdSchema, cedarPrincipalSchema, cedarToolSchema, cedarBundleSchema, BUNDLE_SKILLS_MAX, BUNDLE_SKILL_FILES_MAX, BUNDLE_SKILLS_CHARS_MAX, BASE64_PATTERN, bundleSkillFileSchema, bundleSkillSchema, policyBundleSchema, enrollmentClaimsSchema, tachoEventWireSchema, daemonHealthSchema, TACHO_MAX_BATCH, TACHO_MAX_BODY_BYTES, TACHO_MAX_REQUEST_BYTES, TACHO_REQUEST_ENVELOPE_BYTES, tachoBodySchema, tachoBatchSchema, agentDaySpendSchema, controlEnvelopeSchema, ingestResponseSchema, bundleResponseSchema, commandAcknowledgementSchema, commandsResponseSchema, enrollmentResponseSchema, tokenEnrollmentResponseSchema;
|
|
5618
|
+
var TACHO_BATCH_SCHEMA, TACHO_BUNDLE_SCHEMA, TACHO_COMMANDS_SCHEMA, TACHO_ENROLLMENT_CLAIMS_SCHEMA, TACHO_ENFORCEMENT_TIER_ATTR, TACHO_GATEWAY_TIER, TACHO_GATEWAY_SESSION_HEADER, TACHO_GATEWAY_GENESIS_HEADER, MCP_STREAMABLE_HTTP_ACCEPT, TACHO_METERING_ATTR, TACHO_METERING_OBSERVED, TACHO_MODEL_SESSION_HEADER, TACHO_CREDENTIAL_BASIS_ATTR, TACHO_CREDENTIAL_GATEWAY_BROKERED, TACHO_CREDENTIAL_HARNESS_HELD, TACHO_CREDENTIAL_BASES, TACHO_RUN_TOKEN_ATTR, BUNDLE_FEATURE_GATEWAY_TOOLS, BUNDLE_FEATURE_MODEL_PRICES, BUNDLE_FEATURE_MODEL_ALLOWLIST, BUNDLE_FEATURE_INDEPENDENT_MODELS, BUNDLE_FEATURE_HOOK_FAIL_OPEN, BUNDLE_FEATURE_STEERING_MANIFEST, BUNDLE_FEATURE_CONTAINMENT, BUNDLE_FEATURE_DAILY_BUDGET, BUNDLE_FEATURE_STEER_NEXT_STEP, BUNDLE_FEATURE_UNBOUND_REPO, BUNDLE_FEATURE_CEDAR, BUNDLE_FEATURE_SKILLS, BUNDLE_FEATURE_CACHE_KEEP_ALIVE, BUNDLE_FEATURE_WORK_ORDERS, TACHO_BUNDLE_FEATURES, bundleFeaturesSchema, hostEnrollmentIdSchema, tachoPlatformSchema, tachoHarnessSchema, TACHO_HARNESS_LABELS, TACHO_HARNESS_TIERS, WRAPPED_HARNESSES, CONNECTED_HARNESSES, HARNESS_BINARY, MODEL_HARNESS_ROUTES, MODEL_ROUTED_HARNESSES, BROKERABLE_HARNESSES, BROKERABLE_HARNESS_PROVIDER, TACHO_TIER_SUMMARY, CUSTOM_AGENT_NAME_PATTERN, RESERVED_AGENT_NAMES, customAgentNameSchema, tachoHostStatusSchema, tachoBundleModeSchema, tachoCommandSchema, tachoCommandStatusSchema, tachoCommandAckStatusSchema, tachoDeliveryModeSchema, denyGenerationSchema, deliveredCommandSchema, deliveredCommandResponseSchema, WORK_ORDER_ID_PATTERN, WORK_ITEM_ID_PATTERN, workOrderCommandPayloadSchema, WORK_ORDER_CLAIM_PATH, WORK_ORDER_REJECT_PATH, workOrderClaimResponseSchema, workOrderRejectResponseSchema, WORK_ORDER_ENV, WORK_ORDER_ATTR, steeringForceSchema, steeringItemKindSchema, steeringCutReasonSchema, steeringManifestItemSchema, STEERING_MANIFEST_SCHEMA, steeringManifestSchema, steeringManifestFrameSchema, cedarIdSchema, cedarPrincipalSchema, cedarToolSchema, cedarBundleSchema, BUNDLE_SKILLS_MAX, BUNDLE_SKILL_FILES_MAX, BUNDLE_SKILLS_CHARS_MAX, BASE64_PATTERN, bundleSkillFileSchema, bundleSkillSchema, policyBundleSchema, enrollmentClaimsSchema, tachoEventWireSchema, daemonHealthSchema, TACHO_MAX_BATCH, TACHO_MAX_BODY_BYTES, TACHO_MAX_REQUEST_BYTES, TACHO_REQUEST_ENVELOPE_BYTES, tachoBodySchema, tachoBatchSchema, agentDaySpendSchema, controlEnvelopeSchema, ingestResponseSchema, bundleResponseSchema, commandAcknowledgementSchema, commandsResponseSchema, enrollmentResponseSchema, tokenEnrollmentResponseSchema;
|
|
5619
5619
|
var init_wire = __esm({
|
|
5620
5620
|
"../../packages/tacho/src/wire.ts"() {
|
|
5621
5621
|
"use strict";
|
|
@@ -5631,6 +5631,7 @@ var init_wire = __esm({
|
|
|
5631
5631
|
TACHO_GATEWAY_TIER = "gateway";
|
|
5632
5632
|
TACHO_GATEWAY_SESSION_HEADER = "x-tacho-gateway-session";
|
|
5633
5633
|
TACHO_GATEWAY_GENESIS_HEADER = "x-tacho-gateway-genesis";
|
|
5634
|
+
MCP_STREAMABLE_HTTP_ACCEPT = "application/json, text/event-stream";
|
|
5634
5635
|
TACHO_METERING_ATTR = "oxagen.metering";
|
|
5635
5636
|
TACHO_METERING_OBSERVED = "observed";
|
|
5636
5637
|
TACHO_MODEL_SESSION_HEADER = "x-oxagen-session";
|
|
@@ -23363,7 +23364,7 @@ import { readFileSync as readFileSync11 } from "node:fs";
|
|
|
23363
23364
|
import { dirname as dirname8, resolve as resolve2 } from "node:path";
|
|
23364
23365
|
import { fileURLToPath } from "node:url";
|
|
23365
23366
|
function readVersion() {
|
|
23366
|
-
if (true) return "2.1.4-
|
|
23367
|
+
if (true) return "2.1.4-494";
|
|
23367
23368
|
try {
|
|
23368
23369
|
const here = dirname8(fileURLToPath(import.meta.url));
|
|
23369
23370
|
const pkg = JSON.parse(
|
|
@@ -28339,16 +28340,20 @@ function requestedMcpEndpoint(deps, warnings) {
|
|
|
28339
28340
|
}
|
|
28340
28341
|
return request3.pinned;
|
|
28341
28342
|
}
|
|
28342
|
-
function repointCommands(host, runtime) {
|
|
28343
|
-
|
|
28344
|
-
|
|
28343
|
+
function repointCommands(host, runtime, wrapperVersion) {
|
|
28344
|
+
if (sameCommands(host, runtime) && host.wrapper_version === wrapperVersion)
|
|
28345
|
+
return void 0;
|
|
28345
28346
|
return {
|
|
28346
28347
|
...host,
|
|
28347
28348
|
hook_command: runtime.hookCommand,
|
|
28348
28349
|
daemon_command: runtime.daemonCommand,
|
|
28349
|
-
mcp_stdio_command: runtime.mcpStdioCommand
|
|
28350
|
+
mcp_stdio_command: runtime.mcpStdioCommand,
|
|
28351
|
+
wrapper_version: wrapperVersion
|
|
28350
28352
|
};
|
|
28351
28353
|
}
|
|
28354
|
+
function sameCommands(host, runtime) {
|
|
28355
|
+
return host.hook_command === runtime.hookCommand && sameArgv(host.daemon_command, runtime.daemonCommand) && sameArgv(host.mcp_stdio_command ?? [], runtime.mcpStdioCommand);
|
|
28356
|
+
}
|
|
28352
28357
|
function sameArgv(a, b5) {
|
|
28353
28358
|
return a.length === b5.length && a.every((part2, i2) => part2 === b5[i2]);
|
|
28354
28359
|
}
|
|
@@ -28557,7 +28562,7 @@ ${problems.map((problem) => ` ${problem}`).join("\n")}`
|
|
|
28557
28562
|
writeHostFile(deps.paths.hostFile, host);
|
|
28558
28563
|
deps.out(` MCP endpoint pinned to ${pinned} (TACHO_MCP_ENDPOINT)`);
|
|
28559
28564
|
}
|
|
28560
|
-
const repointed = repointCommands(host, deps.runtime);
|
|
28565
|
+
const repointed = repointCommands(host, deps.runtime, deps.wrapperVersion);
|
|
28561
28566
|
if (repointed !== void 0) {
|
|
28562
28567
|
if (deps.runtime.transient !== void 0) {
|
|
28563
28568
|
warnings.push(
|
|
@@ -28570,9 +28575,14 @@ ${problems.map((problem) => ` ${problem}`).join("\n")}`
|
|
|
28570
28575
|
} else {
|
|
28571
28576
|
host = { ...repointed, harness_files: harnessFilesRecord(deps.paths) };
|
|
28572
28577
|
writeHostFile(deps.paths.hostFile, host);
|
|
28573
|
-
deps.
|
|
28574
|
-
|
|
28575
|
-
|
|
28578
|
+
if (!sameCommands(existing, deps.runtime))
|
|
28579
|
+
deps.out(
|
|
28580
|
+
` service and hooks now run from ${deps.runtime.binDir} (was ${existing.hook_command})`
|
|
28581
|
+
);
|
|
28582
|
+
if (existing.wrapper_version !== deps.wrapperVersion)
|
|
28583
|
+
deps.out(
|
|
28584
|
+
` host.json now records version ${deps.wrapperVersion} (was ${existing.wrapper_version})`
|
|
28585
|
+
);
|
|
28576
28586
|
}
|
|
28577
28587
|
}
|
|
28578
28588
|
} else {
|
|
@@ -29906,6 +29916,11 @@ function shimError(id, message) {
|
|
|
29906
29916
|
error: { code: -32002, message }
|
|
29907
29917
|
};
|
|
29908
29918
|
}
|
|
29919
|
+
function answersNoRequest(message) {
|
|
29920
|
+
if (Array.isArray(message) || !("error" in message)) return false;
|
|
29921
|
+
const id = message.id;
|
|
29922
|
+
return id === null || id === void 0;
|
|
29923
|
+
}
|
|
29909
29924
|
function resolveTarget(options, deps) {
|
|
29910
29925
|
const paths = agentPathsForEnrollment(
|
|
29911
29926
|
tachoHome(deps.env, deps.home),
|
|
@@ -29937,8 +29952,9 @@ async function runMcpStdio(options, deps) {
|
|
|
29937
29952
|
const text4 = line.trim();
|
|
29938
29953
|
if (text4.length === 0) continue;
|
|
29939
29954
|
let id;
|
|
29955
|
+
let method;
|
|
29940
29956
|
try {
|
|
29941
|
-
id = JSON.parse(text4)
|
|
29957
|
+
({ id, method } = JSON.parse(text4));
|
|
29942
29958
|
} catch {
|
|
29943
29959
|
deps.stdout.write(
|
|
29944
29960
|
`${JSON.stringify(shimError(null, "the shim received a line that is not JSON"))}
|
|
@@ -29946,7 +29962,7 @@ async function runMcpStdio(options, deps) {
|
|
|
29946
29962
|
);
|
|
29947
29963
|
continue;
|
|
29948
29964
|
}
|
|
29949
|
-
const expectsReply = id !== void 0;
|
|
29965
|
+
const expectsReply = id !== void 0 && typeof method === "string";
|
|
29950
29966
|
const reply2 = (document) => {
|
|
29951
29967
|
if (expectsReply) deps.stdout.write(`${JSON.stringify(document)}
|
|
29952
29968
|
`);
|
|
@@ -29961,7 +29977,9 @@ async function runMcpStdio(options, deps) {
|
|
|
29961
29977
|
headers: {
|
|
29962
29978
|
Authorization: `Bearer ${target2.token}`,
|
|
29963
29979
|
"Content-Type": "application/json",
|
|
29964
|
-
|
|
29980
|
+
// The two media types the MCP transport requires of a client. The
|
|
29981
|
+
// local gateway always answers with JSON, which this accepts.
|
|
29982
|
+
Accept: MCP_STREAMABLE_HTTP_ACCEPT,
|
|
29965
29983
|
// Loopback, so this is not a real origin check — it is here so the
|
|
29966
29984
|
// gateway's guard sees a Host it recognises even behind a proxy
|
|
29967
29985
|
// that rewrites one.
|
|
@@ -29983,8 +30001,12 @@ async function runMcpStdio(options, deps) {
|
|
|
29983
30001
|
parsed = void 0;
|
|
29984
30002
|
}
|
|
29985
30003
|
if (typeof parsed === "object" && parsed !== null) {
|
|
29986
|
-
if (expectsReply
|
|
30004
|
+
if (expectsReply && answersNoRequest(parsed)) {
|
|
30005
|
+
reply2({ ...parsed, id });
|
|
30006
|
+
} else if (expectsReply) {
|
|
30007
|
+
deps.stdout.write(`${body2}
|
|
29987
30008
|
`);
|
|
30009
|
+
}
|
|
29988
30010
|
} else if (!response.ok || expectsReply && body2.length > 0) {
|
|
29989
30011
|
deps.stderr.write(
|
|
29990
30012
|
`oxagen mcp-stdio: the gateway answered ${response.status}: ${body2.slice(0, 200)}
|
|
@@ -30018,6 +30040,7 @@ var init_mcp_stdio = __esm({
|
|
|
30018
30040
|
init_agents();
|
|
30019
30041
|
init_host_file();
|
|
30020
30042
|
init_paths();
|
|
30043
|
+
init_wire();
|
|
30021
30044
|
GATEWAY_TIMEOUT_MS = 5 * 6e4;
|
|
30022
30045
|
}
|
|
30023
30046
|
});
|
|
@@ -34674,12 +34697,45 @@ function readRpcBody(text4) {
|
|
|
34674
34697
|
return JSON.parse(trimmed);
|
|
34675
34698
|
}
|
|
34676
34699
|
let last;
|
|
34677
|
-
for (const
|
|
34678
|
-
|
|
34700
|
+
for (const event of trimmed.split(/\r?\n\r?\n/)) {
|
|
34701
|
+
const data = event.split(/\r?\n/).filter((line) => line.startsWith("data:")).map((line) => line.slice(line.startsWith("data: ") ? 6 : 5));
|
|
34702
|
+
const payload = data.join("\n");
|
|
34703
|
+
if (payload.trim().length > 0) last = payload;
|
|
34679
34704
|
}
|
|
34680
34705
|
if (last === void 0) return void 0;
|
|
34681
34706
|
return JSON.parse(last);
|
|
34682
34707
|
}
|
|
34708
|
+
function isRpcErrorObject(value) {
|
|
34709
|
+
if (value === null || typeof value !== "object") return false;
|
|
34710
|
+
const error = value;
|
|
34711
|
+
return typeof error["code"] === "number" && typeof error["message"] === "string";
|
|
34712
|
+
}
|
|
34713
|
+
function answerFor(id, upstream) {
|
|
34714
|
+
const { status: status2, body: body2 } = upstream;
|
|
34715
|
+
const ok = status2 >= 200 && status2 < 300;
|
|
34716
|
+
const message = body2 !== null && typeof body2 === "object" && !Array.isArray(body2) ? body2 : void 0;
|
|
34717
|
+
const error = message?.["error"];
|
|
34718
|
+
if (isRpcErrorObject(error)) {
|
|
34719
|
+
if (message?.["id"] === id) return { status: status2, body: body2 };
|
|
34720
|
+
return {
|
|
34721
|
+
status: status2,
|
|
34722
|
+
body: { jsonrpc: "2.0", id, error }
|
|
34723
|
+
};
|
|
34724
|
+
}
|
|
34725
|
+
if (ok && message !== void 0 && "result" in message) {
|
|
34726
|
+
if (message["id"] === id) return { status: status2, body: body2 };
|
|
34727
|
+
}
|
|
34728
|
+
const flat = upstream.text.replace(/\s+/g, " ").trim();
|
|
34729
|
+
const what = flat.length === 0 ? "with no body" : `with a body that is not a JSON-RPC answer to this request: ${flat.slice(0, UPSTREAM_EXCERPT_MAX)}`;
|
|
34730
|
+
return {
|
|
34731
|
+
status: ok ? 502 : status2,
|
|
34732
|
+
body: rpcError(
|
|
34733
|
+
id,
|
|
34734
|
+
RPC_INTERNAL_ERROR,
|
|
34735
|
+
`the Oxagen control plane answered HTTP ${status2} ${what}`
|
|
34736
|
+
)
|
|
34737
|
+
};
|
|
34738
|
+
}
|
|
34683
34739
|
function outcomeOf(status2, rpc) {
|
|
34684
34740
|
if (rpc?.error !== void 0)
|
|
34685
34741
|
return rpc.error.code === RPC_REFUSED ? "rejected" : "error";
|
|
@@ -34733,10 +34789,11 @@ function createMcpGateway(deps) {
|
|
|
34733
34789
|
headers: {
|
|
34734
34790
|
Authorization: `Bearer ${attribution2.apiKey}`,
|
|
34735
34791
|
"Content-Type": "application/json",
|
|
34736
|
-
//
|
|
34737
|
-
//
|
|
34738
|
-
//
|
|
34739
|
-
|
|
34792
|
+
// Both media types, as the MCP transport requires. The hosted
|
|
34793
|
+
// server refuses any other Accept with a 406 (#5356). It answers
|
|
34794
|
+
// with an event stream, and `readRpcBody` reads the response out of
|
|
34795
|
+
// it, so the client still gets one JSON answer.
|
|
34796
|
+
Accept: MCP_STREAMABLE_HTTP_ACCEPT,
|
|
34740
34797
|
"User-Agent": "oxagen-local-gateway",
|
|
34741
34798
|
"X-Tacho-Host": attribution2.hostEnrollmentId,
|
|
34742
34799
|
// Which chain this call belongs to. The control plane takes the
|
|
@@ -34756,7 +34813,13 @@ function createMcpGateway(deps) {
|
|
|
34756
34813
|
signal: controller.signal
|
|
34757
34814
|
});
|
|
34758
34815
|
const text4 = await response.text();
|
|
34759
|
-
|
|
34816
|
+
let body2;
|
|
34817
|
+
try {
|
|
34818
|
+
body2 = readRpcBody(text4);
|
|
34819
|
+
} catch {
|
|
34820
|
+
body2 = void 0;
|
|
34821
|
+
}
|
|
34822
|
+
return { status: response.status, body: body2, text: text4 };
|
|
34760
34823
|
} finally {
|
|
34761
34824
|
clearTimeout(timer);
|
|
34762
34825
|
}
|
|
@@ -34809,9 +34872,9 @@ function createMcpGateway(deps) {
|
|
|
34809
34872
|
if (name !== void 0) clients.set(context.sessionId, name);
|
|
34810
34873
|
}
|
|
34811
34874
|
const startedAt = now();
|
|
34812
|
-
let
|
|
34875
|
+
let upstream;
|
|
34813
34876
|
try {
|
|
34814
|
-
|
|
34877
|
+
upstream = await forward(request3, attribution2);
|
|
34815
34878
|
} catch (error) {
|
|
34816
34879
|
const message = error instanceof Error ? error.message : String(error);
|
|
34817
34880
|
log(`mcp gateway forward failed: ${message}`);
|
|
@@ -34825,6 +34888,17 @@ function createMcpGateway(deps) {
|
|
|
34825
34888
|
)
|
|
34826
34889
|
};
|
|
34827
34890
|
}
|
|
34891
|
+
let response = typeof request3.id === "string" || typeof request3.id === "number" ? answerFor(request3.id, upstream) : { status: upstream.status, body: upstream.body };
|
|
34892
|
+
if (response.body !== upstream.body) {
|
|
34893
|
+
const said = response.body.error?.message;
|
|
34894
|
+
log(
|
|
34895
|
+
`mcp gateway gave ${request3.method} an error with the request's id after HTTP ${upstream.status}: ${said ?? "no message"}`
|
|
34896
|
+
);
|
|
34897
|
+
} else if (upstream.status < 200 || upstream.status >= 300) {
|
|
34898
|
+
log(
|
|
34899
|
+
`mcp gateway: the control plane answered ${request3.method} with HTTP ${upstream.status}`
|
|
34900
|
+
);
|
|
34901
|
+
}
|
|
34828
34902
|
const rpc = response.body;
|
|
34829
34903
|
if (request3.method === "tools/list" && rpc?.result !== void 0) {
|
|
34830
34904
|
const bundle2 = deps.bundle?.();
|
|
@@ -34944,7 +35018,7 @@ function toolNameOf(params) {
|
|
|
34944
35018
|
const name = params?.["name"];
|
|
34945
35019
|
return typeof name === "string" && name.length > 0 ? name : "unknown";
|
|
34946
35020
|
}
|
|
34947
|
-
var RPC_INVALID_REQUEST, RPC_INTERNAL_ERROR, RPC_REFUSED, CLAUDE_CODE_TOOL_USE_ID_META, MAX_TOOL_USE_ID_LENGTH, DEFAULT_TIMEOUT_MS3, REFUSAL_RULES_MAX, REFUSAL_RULE_MAX;
|
|
35021
|
+
var RPC_INVALID_REQUEST, RPC_INTERNAL_ERROR, RPC_REFUSED, CLAUDE_CODE_TOOL_USE_ID_META, MAX_TOOL_USE_ID_LENGTH, DEFAULT_TIMEOUT_MS3, UPSTREAM_EXCERPT_MAX, REFUSAL_RULES_MAX, REFUSAL_RULE_MAX;
|
|
34948
35022
|
var init_mcp_gateway = __esm({
|
|
34949
35023
|
"../../packages/tacho/src/collector/mcp-gateway.ts"() {
|
|
34950
35024
|
"use strict";
|
|
@@ -34958,6 +35032,7 @@ var init_mcp_gateway = __esm({
|
|
|
34958
35032
|
CLAUDE_CODE_TOOL_USE_ID_META = "claudecode/toolUseId";
|
|
34959
35033
|
MAX_TOOL_USE_ID_LENGTH = 512;
|
|
34960
35034
|
DEFAULT_TIMEOUT_MS3 = 3e4;
|
|
35035
|
+
UPSTREAM_EXCERPT_MAX = 200;
|
|
34961
35036
|
REFUSAL_RULES_MAX = 64;
|
|
34962
35037
|
REFUSAL_RULE_MAX = 512;
|
|
34963
35038
|
}
|
|
@@ -47228,7 +47303,17 @@ async function initializeDaemon(options, server, port, ready) {
|
|
|
47228
47303
|
`no enrollment at ${paths.hostFile}; run \`oxagen agent enroll\` first`
|
|
47229
47304
|
);
|
|
47230
47305
|
}
|
|
47231
|
-
let host = loaded;
|
|
47306
|
+
let host = loaded.wrapper_version === TACHO_VERSION ? loaded : { ...loaded, wrapper_version: TACHO_VERSION };
|
|
47307
|
+
const onDisk = readHostFileLenient(paths.hostFile).host;
|
|
47308
|
+
if (onDisk !== void 0 && onDisk.host_enrollment_id === host.host_enrollment_id && onDisk.wrapper_version !== TACHO_VERSION) {
|
|
47309
|
+
log(
|
|
47310
|
+
`host.json now records version ${TACHO_VERSION} (was ${onDisk.wrapper_version})`
|
|
47311
|
+
);
|
|
47312
|
+
writeHostFile(paths.hostFile, {
|
|
47313
|
+
...onDisk,
|
|
47314
|
+
wrapper_version: TACHO_VERSION
|
|
47315
|
+
});
|
|
47316
|
+
}
|
|
47232
47317
|
for (const dir of [paths.dir, paths.wal, paths.spool, paths.quarantine])
|
|
47233
47318
|
ensureDir(dir);
|
|
47234
47319
|
const recallMemories = options.memoryRecall ?? options.listen ?? true ? createMemoryRecall({
|
|
@@ -47517,10 +47602,10 @@ async function initializeDaemon(options, server, port, ready) {
|
|
|
47517
47602
|
const marked = new Set(marks.map(({ session }) => session));
|
|
47518
47603
|
const unmarked = registry2.list().filter((session) => within4(session) && !marked.has(session));
|
|
47519
47604
|
if (unmarked.length > 0) {
|
|
47520
|
-
const
|
|
47605
|
+
const onDisk2 = new Set(wal.sessions());
|
|
47521
47606
|
for (const session of unmarked) {
|
|
47522
47607
|
const recorder = session.recorder;
|
|
47523
|
-
if (!
|
|
47608
|
+
if (!onDisk2.has(recorder.sessionUuid)) {
|
|
47524
47609
|
recorder.rollbackToBirth();
|
|
47525
47610
|
continue;
|
|
47526
47611
|
}
|
|
@@ -47612,8 +47697,8 @@ async function initializeDaemon(options, server, port, ready) {
|
|
|
47612
47697
|
bundle_etag: host.bundle.etag,
|
|
47613
47698
|
// What this daemon's `policyBundleSchema` names, so the control plane
|
|
47614
47699
|
// can send a gated bundle field without breaking hosts that predate it.
|
|
47615
|
-
// Reported from the running code rather than
|
|
47616
|
-
//
|
|
47700
|
+
// Reported from the running code rather than read off `version`, which
|
|
47701
|
+
// a daemon older than #5365 took from the enrollment, not the upgrade.
|
|
47617
47702
|
bundle_features: [...TACHO_BUNDLE_FEATURES],
|
|
47618
47703
|
// Omitted until a read succeeds: absent means nothing was said, and a
|
|
47619
47704
|
// daemon that could not read the files has nothing to say.
|
|
@@ -49811,6 +49896,7 @@ var init_daemon = __esm({
|
|
|
49811
49896
|
init_work_orders();
|
|
49812
49897
|
init_ids();
|
|
49813
49898
|
init_timestamp();
|
|
49899
|
+
init_version();
|
|
49814
49900
|
init_wire();
|
|
49815
49901
|
init_backfill2();
|
|
49816
49902
|
init_detector();
|
|
@@ -52035,7 +52121,7 @@ var init_package = __esm({
|
|
|
52035
52121
|
"package.json"() {
|
|
52036
52122
|
package_default = {
|
|
52037
52123
|
name: "@oxagen/cli",
|
|
52038
|
-
version: "2.1.4-
|
|
52124
|
+
version: "2.1.4-494",
|
|
52039
52125
|
description: "Oxagen governance CLI \u2014 spend, lineage, grounding, credentials, and audit (agentic coding lives in the stella CLI)",
|
|
52040
52126
|
type: "module",
|
|
52041
52127
|
main: "./dist/index.js",
|
|
@@ -93759,9 +93845,9 @@ var init_graphql2 = __esm({
|
|
|
93759
93845
|
}
|
|
93760
93846
|
});
|
|
93761
93847
|
|
|
93762
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
93848
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/constants.js
|
|
93763
93849
|
var require_constants = __commonJS({
|
|
93764
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
93850
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/constants.js"(exports) {
|
|
93765
93851
|
"use strict";
|
|
93766
93852
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
93767
93853
|
exports.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH = exports.DEFAULT_MAX_SEND_MESSAGE_LENGTH = exports.Propagate = exports.LogVerbosity = exports.Status = void 0;
|
|
@@ -93805,12 +93891,12 @@ var require_constants = __commonJS({
|
|
|
93805
93891
|
}
|
|
93806
93892
|
});
|
|
93807
93893
|
|
|
93808
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
93894
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/package.json
|
|
93809
93895
|
var require_package = __commonJS({
|
|
93810
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
93896
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/package.json"(exports, module) {
|
|
93811
93897
|
module.exports = {
|
|
93812
93898
|
name: "@grpc/grpc-js",
|
|
93813
|
-
version: "1.14.
|
|
93899
|
+
version: "1.14.5",
|
|
93814
93900
|
description: "gRPC Library for Node - pure JS implementation",
|
|
93815
93901
|
homepage: "https://grpc.io/",
|
|
93816
93902
|
repository: "https://github.com/grpc/grpc-node/tree/master/packages/grpc-js",
|
|
@@ -93900,9 +93986,9 @@ var require_package = __commonJS({
|
|
|
93900
93986
|
}
|
|
93901
93987
|
});
|
|
93902
93988
|
|
|
93903
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
93989
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/logging.js
|
|
93904
93990
|
var require_logging = __commonJS({
|
|
93905
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
93991
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/logging.js"(exports) {
|
|
93906
93992
|
"use strict";
|
|
93907
93993
|
var _a2;
|
|
93908
93994
|
var _b2;
|
|
@@ -93983,6 +94069,9 @@ var require_logging = __commonJS({
|
|
|
93983
94069
|
var enabledTracers = /* @__PURE__ */ new Set();
|
|
93984
94070
|
var disabledTracers = /* @__PURE__ */ new Set();
|
|
93985
94071
|
for (const tracerName of tracersString.split(",")) {
|
|
94072
|
+
if (tracerName.length === 0) {
|
|
94073
|
+
continue;
|
|
94074
|
+
}
|
|
93986
94075
|
if (tracerName.startsWith("-")) {
|
|
93987
94076
|
disabledTracers.add(tracerName.substring(1));
|
|
93988
94077
|
} else {
|
|
@@ -93990,20 +94079,24 @@ var require_logging = __commonJS({
|
|
|
93990
94079
|
}
|
|
93991
94080
|
}
|
|
93992
94081
|
var allEnabled = enabledTracers.has("all");
|
|
94082
|
+
var anyTracerEnabled = allEnabled || enabledTracers.size > 0;
|
|
93993
94083
|
function trace(severity, tracer, text4) {
|
|
93994
94084
|
if (isTracerEnabled(tracer)) {
|
|
93995
94085
|
(0, exports.log)(severity, (/* @__PURE__ */ new Date()).toISOString() + " | v" + clientVersion + " " + process_1.pid + " | " + tracer + " | " + text4);
|
|
93996
94086
|
}
|
|
93997
94087
|
}
|
|
93998
94088
|
function isTracerEnabled(tracer) {
|
|
94089
|
+
if (!anyTracerEnabled) {
|
|
94090
|
+
return false;
|
|
94091
|
+
}
|
|
93999
94092
|
return !disabledTracers.has(tracer) && (allEnabled || enabledTracers.has(tracer));
|
|
94000
94093
|
}
|
|
94001
94094
|
}
|
|
94002
94095
|
});
|
|
94003
94096
|
|
|
94004
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94097
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/error.js
|
|
94005
94098
|
var require_error2 = __commonJS({
|
|
94006
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94099
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/error.js"(exports) {
|
|
94007
94100
|
"use strict";
|
|
94008
94101
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
94009
94102
|
exports.getErrorMessage = getErrorMessage;
|
|
@@ -94025,9 +94118,9 @@ var require_error2 = __commonJS({
|
|
|
94025
94118
|
}
|
|
94026
94119
|
});
|
|
94027
94120
|
|
|
94028
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94121
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/metadata.js
|
|
94029
94122
|
var require_metadata = __commonJS({
|
|
94030
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94123
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/metadata.js"(exports) {
|
|
94031
94124
|
"use strict";
|
|
94032
94125
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
94033
94126
|
exports.Metadata = void 0;
|
|
@@ -94269,9 +94362,9 @@ var require_metadata = __commonJS({
|
|
|
94269
94362
|
}
|
|
94270
94363
|
});
|
|
94271
94364
|
|
|
94272
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94365
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/call-credentials.js
|
|
94273
94366
|
var require_call_credentials = __commonJS({
|
|
94274
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94367
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/call-credentials.js"(exports) {
|
|
94275
94368
|
"use strict";
|
|
94276
94369
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
94277
94370
|
exports.CallCredentials = void 0;
|
|
@@ -94402,9 +94495,9 @@ var require_call_credentials = __commonJS({
|
|
|
94402
94495
|
}
|
|
94403
94496
|
});
|
|
94404
94497
|
|
|
94405
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94498
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/tls-helpers.js
|
|
94406
94499
|
var require_tls_helpers = __commonJS({
|
|
94407
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94500
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/tls-helpers.js"(exports) {
|
|
94408
94501
|
"use strict";
|
|
94409
94502
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
94410
94503
|
exports.CIPHER_SUITES = void 0;
|
|
@@ -94425,9 +94518,9 @@ var require_tls_helpers = __commonJS({
|
|
|
94425
94518
|
}
|
|
94426
94519
|
});
|
|
94427
94520
|
|
|
94428
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94521
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/uri-parser.js
|
|
94429
94522
|
var require_uri_parser = __commonJS({
|
|
94430
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94523
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/uri-parser.js"(exports) {
|
|
94431
94524
|
"use strict";
|
|
94432
94525
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
94433
94526
|
exports.parseUri = parseUri;
|
|
@@ -94519,9 +94612,9 @@ var require_uri_parser = __commonJS({
|
|
|
94519
94612
|
}
|
|
94520
94613
|
});
|
|
94521
94614
|
|
|
94522
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94615
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolver.js
|
|
94523
94616
|
var require_resolver = __commonJS({
|
|
94524
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94617
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolver.js"(exports) {
|
|
94525
94618
|
"use strict";
|
|
94526
94619
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
94527
94620
|
exports.CHANNEL_ARGS_CONFIG_SELECTOR_KEY = void 0;
|
|
@@ -94571,9 +94664,9 @@ var require_resolver = __commonJS({
|
|
|
94571
94664
|
}
|
|
94572
94665
|
});
|
|
94573
94666
|
|
|
94574
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94667
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/channel-credentials.js
|
|
94575
94668
|
var require_channel_credentials = __commonJS({
|
|
94576
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94669
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/channel-credentials.js"(exports) {
|
|
94577
94670
|
"use strict";
|
|
94578
94671
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
94579
94672
|
exports.ChannelCredentials = void 0;
|
|
@@ -94967,9 +95060,9 @@ var require_channel_credentials = __commonJS({
|
|
|
94967
95060
|
}
|
|
94968
95061
|
});
|
|
94969
95062
|
|
|
94970
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
95063
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer.js
|
|
94971
95064
|
var require_load_balancer = __commonJS({
|
|
94972
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
95065
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer.js"(exports) {
|
|
94973
95066
|
"use strict";
|
|
94974
95067
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
94975
95068
|
exports.createChildChannelControlHelper = createChildChannelControlHelper;
|
|
@@ -95058,9 +95151,9 @@ var require_load_balancer = __commonJS({
|
|
|
95058
95151
|
}
|
|
95059
95152
|
});
|
|
95060
95153
|
|
|
95061
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
95154
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/service-config.js
|
|
95062
95155
|
var require_service_config = __commonJS({
|
|
95063
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
95156
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/service-config.js"(exports) {
|
|
95064
95157
|
"use strict";
|
|
95065
95158
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
95066
95159
|
exports.validateRetryThrottling = validateRetryThrottling;
|
|
@@ -95401,9 +95494,9 @@ var require_service_config = __commonJS({
|
|
|
95401
95494
|
}
|
|
95402
95495
|
});
|
|
95403
95496
|
|
|
95404
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
95497
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/connectivity-state.js
|
|
95405
95498
|
var require_connectivity_state = __commonJS({
|
|
95406
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
95499
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/connectivity-state.js"(exports) {
|
|
95407
95500
|
"use strict";
|
|
95408
95501
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
95409
95502
|
exports.ConnectivityState = void 0;
|
|
@@ -95418,9 +95511,9 @@ var require_connectivity_state = __commonJS({
|
|
|
95418
95511
|
}
|
|
95419
95512
|
});
|
|
95420
95513
|
|
|
95421
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
95514
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/picker.js
|
|
95422
95515
|
var require_picker = __commonJS({
|
|
95423
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
95516
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/picker.js"(exports) {
|
|
95424
95517
|
"use strict";
|
|
95425
95518
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
95426
95519
|
exports.QueuePicker = exports.UnavailablePicker = exports.PickResultType = void 0;
|
|
@@ -95479,9 +95572,9 @@ var require_picker = __commonJS({
|
|
|
95479
95572
|
}
|
|
95480
95573
|
});
|
|
95481
95574
|
|
|
95482
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
95575
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js
|
|
95483
95576
|
var require_backoff_timeout = __commonJS({
|
|
95484
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
95577
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js"(exports) {
|
|
95485
95578
|
"use strict";
|
|
95486
95579
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
95487
95580
|
exports.BackoffTimeout = void 0;
|
|
@@ -95521,7 +95614,9 @@ var require_backoff_timeout = __commonJS({
|
|
|
95521
95614
|
this.maxDelay = options.maxDelay;
|
|
95522
95615
|
}
|
|
95523
95616
|
}
|
|
95524
|
-
|
|
95617
|
+
if (this.traceEnabled) {
|
|
95618
|
+
this.trace("constructed initialDelay=" + this.initialDelay + " multiplier=" + this.multiplier + " jitter=" + this.jitter + " maxDelay=" + this.maxDelay);
|
|
95619
|
+
}
|
|
95525
95620
|
this.nextDelay = this.initialDelay;
|
|
95526
95621
|
this.timerId = setTimeout(() => {
|
|
95527
95622
|
}, 0);
|
|
@@ -95530,12 +95625,19 @@ var require_backoff_timeout = __commonJS({
|
|
|
95530
95625
|
static getNextId() {
|
|
95531
95626
|
return this.nextId++;
|
|
95532
95627
|
}
|
|
95628
|
+
get traceEnabled() {
|
|
95629
|
+
return logging.isTracerEnabled(TRACER_NAME);
|
|
95630
|
+
}
|
|
95533
95631
|
trace(text4) {
|
|
95534
|
-
|
|
95632
|
+
if (this.traceEnabled) {
|
|
95633
|
+
logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, "{" + this.id + "} " + text4);
|
|
95634
|
+
}
|
|
95535
95635
|
}
|
|
95536
95636
|
runTimer(delay) {
|
|
95537
95637
|
var _a2, _b2;
|
|
95538
|
-
this.
|
|
95638
|
+
if (this.traceEnabled) {
|
|
95639
|
+
this.trace("runTimer(delay=" + delay + ")");
|
|
95640
|
+
}
|
|
95539
95641
|
this.endTime = this.startTime;
|
|
95540
95642
|
this.endTime.setMilliseconds(this.endTime.getMilliseconds() + delay);
|
|
95541
95643
|
clearTimeout(this.timerId);
|
|
@@ -95574,7 +95676,9 @@ var require_backoff_timeout = __commonJS({
|
|
|
95574
95676
|
* retroactively apply that reset to the current timer.
|
|
95575
95677
|
*/
|
|
95576
95678
|
reset() {
|
|
95577
|
-
this.
|
|
95679
|
+
if (this.traceEnabled) {
|
|
95680
|
+
this.trace("reset() running=" + this.running);
|
|
95681
|
+
}
|
|
95578
95682
|
this.nextDelay = this.initialDelay;
|
|
95579
95683
|
if (this.running) {
|
|
95580
95684
|
const now = /* @__PURE__ */ new Date();
|
|
@@ -95625,9 +95729,9 @@ var require_backoff_timeout = __commonJS({
|
|
|
95625
95729
|
}
|
|
95626
95730
|
});
|
|
95627
95731
|
|
|
95628
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
95732
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js
|
|
95629
95733
|
var require_load_balancer_child_handler = __commonJS({
|
|
95630
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
95734
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js"(exports) {
|
|
95631
95735
|
"use strict";
|
|
95632
95736
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
95633
95737
|
exports.ChildLoadBalancerHandler = void 0;
|
|
@@ -95755,9 +95859,9 @@ var require_load_balancer_child_handler = __commonJS({
|
|
|
95755
95859
|
}
|
|
95756
95860
|
});
|
|
95757
95861
|
|
|
95758
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
95862
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js
|
|
95759
95863
|
var require_resolving_load_balancer = __commonJS({
|
|
95760
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
95864
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js"(exports) {
|
|
95761
95865
|
"use strict";
|
|
95762
95866
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
95763
95867
|
exports.ResolvingLoadBalancer = void 0;
|
|
@@ -96004,9 +96108,9 @@ var require_resolving_load_balancer = __commonJS({
|
|
|
96004
96108
|
}
|
|
96005
96109
|
});
|
|
96006
96110
|
|
|
96007
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
96111
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/channel-options.js
|
|
96008
96112
|
var require_channel_options = __commonJS({
|
|
96009
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
96113
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/channel-options.js"(exports) {
|
|
96010
96114
|
"use strict";
|
|
96011
96115
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
96012
96116
|
exports.recognizedOptions = void 0;
|
|
@@ -96062,9 +96166,9 @@ var require_channel_options = __commonJS({
|
|
|
96062
96166
|
}
|
|
96063
96167
|
});
|
|
96064
96168
|
|
|
96065
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
96169
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel-address.js
|
|
96066
96170
|
var require_subchannel_address = __commonJS({
|
|
96067
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
96171
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel-address.js"(exports) {
|
|
96068
96172
|
"use strict";
|
|
96069
96173
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
96070
96174
|
exports.EndpointMap = void 0;
|
|
@@ -97041,9 +97145,9 @@ var require_cjs = __commonJS({
|
|
|
97041
97145
|
}
|
|
97042
97146
|
});
|
|
97043
97147
|
|
|
97044
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
97148
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/admin.js
|
|
97045
97149
|
var require_admin = __commonJS({
|
|
97046
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
97150
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/admin.js"(exports) {
|
|
97047
97151
|
"use strict";
|
|
97048
97152
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
97049
97153
|
exports.registerAdminService = registerAdminService;
|
|
@@ -97060,9 +97164,9 @@ var require_admin = __commonJS({
|
|
|
97060
97164
|
}
|
|
97061
97165
|
});
|
|
97062
97166
|
|
|
97063
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
97167
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/call.js
|
|
97064
97168
|
var require_call = __commonJS({
|
|
97065
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
97169
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/call.js"(exports) {
|
|
97066
97170
|
"use strict";
|
|
97067
97171
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
97068
97172
|
exports.ClientDuplexStreamImpl = exports.ClientWritableStreamImpl = exports.ClientReadableStreamImpl = exports.ClientUnaryCallImpl = void 0;
|
|
@@ -97197,9 +97301,9 @@ ${callerStack}`;
|
|
|
97197
97301
|
}
|
|
97198
97302
|
});
|
|
97199
97303
|
|
|
97200
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
97304
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/call-interface.js
|
|
97201
97305
|
var require_call_interface = __commonJS({
|
|
97202
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
97306
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/call-interface.js"(exports) {
|
|
97203
97307
|
"use strict";
|
|
97204
97308
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
97205
97309
|
exports.InterceptingListenerImpl = void 0;
|
|
@@ -97281,9 +97385,9 @@ var require_call_interface = __commonJS({
|
|
|
97281
97385
|
}
|
|
97282
97386
|
});
|
|
97283
97387
|
|
|
97284
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
97388
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/client-interceptors.js
|
|
97285
97389
|
var require_client_interceptors = __commonJS({
|
|
97286
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
97390
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/client-interceptors.js"(exports) {
|
|
97287
97391
|
"use strict";
|
|
97288
97392
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
97289
97393
|
exports.InterceptingCall = exports.RequesterBuilder = exports.ListenerBuilder = exports.InterceptorConfigurationError = void 0;
|
|
@@ -97634,9 +97738,9 @@ var require_client_interceptors = __commonJS({
|
|
|
97634
97738
|
}
|
|
97635
97739
|
});
|
|
97636
97740
|
|
|
97637
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
97741
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/client.js
|
|
97638
97742
|
var require_client = __commonJS({
|
|
97639
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
97743
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/client.js"(exports) {
|
|
97640
97744
|
"use strict";
|
|
97641
97745
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
97642
97746
|
exports.Client = void 0;
|
|
@@ -98008,9 +98112,9 @@ var require_client = __commonJS({
|
|
|
98008
98112
|
}
|
|
98009
98113
|
});
|
|
98010
98114
|
|
|
98011
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
98115
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/make-client.js
|
|
98012
98116
|
var require_make_client = __commonJS({
|
|
98013
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
98117
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/make-client.js"(exports) {
|
|
98014
98118
|
"use strict";
|
|
98015
98119
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
98016
98120
|
exports.makeClientConstructor = makeClientConstructor;
|
|
@@ -101075,9 +101179,9 @@ var require_src2 = __commonJS({
|
|
|
101075
101179
|
}
|
|
101076
101180
|
});
|
|
101077
101181
|
|
|
101078
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
101182
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/channelz.js
|
|
101079
101183
|
var require_channelz = __commonJS({
|
|
101080
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
101184
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/channelz.js"(exports) {
|
|
101081
101185
|
"use strict";
|
|
101082
101186
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
101083
101187
|
exports.registerChannelzSocket = exports.registerChannelzServer = exports.registerChannelzSubchannel = exports.registerChannelzChannel = exports.ChannelzCallTrackerStub = exports.ChannelzCallTracker = exports.ChannelzChildrenTrackerStub = exports.ChannelzChildrenTracker = exports.ChannelzTrace = exports.ChannelzTraceStub = void 0;
|
|
@@ -101659,9 +101763,9 @@ var require_channelz = __commonJS({
|
|
|
101659
101763
|
}
|
|
101660
101764
|
});
|
|
101661
101765
|
|
|
101662
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
101766
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/call-number.js
|
|
101663
101767
|
var require_call_number = __commonJS({
|
|
101664
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
101768
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/call-number.js"(exports) {
|
|
101665
101769
|
"use strict";
|
|
101666
101770
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
101667
101771
|
exports.getNextCallNumber = getNextCallNumber;
|
|
@@ -101672,9 +101776,9 @@ var require_call_number = __commonJS({
|
|
|
101672
101776
|
}
|
|
101673
101777
|
});
|
|
101674
101778
|
|
|
101675
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
101779
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/compression-algorithms.js
|
|
101676
101780
|
var require_compression_algorithms = __commonJS({
|
|
101677
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
101781
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/compression-algorithms.js"(exports) {
|
|
101678
101782
|
"use strict";
|
|
101679
101783
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
101680
101784
|
exports.CompressionAlgorithms = void 0;
|
|
@@ -101687,9 +101791,9 @@ var require_compression_algorithms = __commonJS({
|
|
|
101687
101791
|
}
|
|
101688
101792
|
});
|
|
101689
101793
|
|
|
101690
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
101794
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/filter.js
|
|
101691
101795
|
var require_filter = __commonJS({
|
|
101692
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
101796
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/filter.js"(exports) {
|
|
101693
101797
|
"use strict";
|
|
101694
101798
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
101695
101799
|
exports.BaseFilter = void 0;
|
|
@@ -101714,9 +101818,9 @@ var require_filter = __commonJS({
|
|
|
101714
101818
|
}
|
|
101715
101819
|
});
|
|
101716
101820
|
|
|
101717
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
101821
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/compression-filter.js
|
|
101718
101822
|
var require_compression_filter = __commonJS({
|
|
101719
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
101823
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/compression-filter.js"(exports) {
|
|
101720
101824
|
"use strict";
|
|
101721
101825
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
101722
101826
|
exports.CompressionFilterFactory = exports.CompressionFilter = void 0;
|
|
@@ -101983,9 +102087,9 @@ var require_compression_filter = __commonJS({
|
|
|
101983
102087
|
}
|
|
101984
102088
|
});
|
|
101985
102089
|
|
|
101986
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102090
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/control-plane-status.js
|
|
101987
102091
|
var require_control_plane_status = __commonJS({
|
|
101988
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102092
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/control-plane-status.js"(exports) {
|
|
101989
102093
|
"use strict";
|
|
101990
102094
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
101991
102095
|
exports.restrictControlPlaneStatusCode = restrictControlPlaneStatusCode;
|
|
@@ -102013,9 +102117,9 @@ var require_control_plane_status = __commonJS({
|
|
|
102013
102117
|
}
|
|
102014
102118
|
});
|
|
102015
102119
|
|
|
102016
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102120
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/deadline.js
|
|
102017
102121
|
var require_deadline = __commonJS({
|
|
102018
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102122
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/deadline.js"(exports) {
|
|
102019
102123
|
"use strict";
|
|
102020
102124
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
102021
102125
|
exports.minDeadline = minDeadline;
|
|
@@ -102084,9 +102188,9 @@ var require_deadline = __commonJS({
|
|
|
102084
102188
|
}
|
|
102085
102189
|
});
|
|
102086
102190
|
|
|
102087
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102191
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/filter-stack.js
|
|
102088
102192
|
var require_filter_stack = __commonJS({
|
|
102089
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102193
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/filter-stack.js"(exports) {
|
|
102090
102194
|
"use strict";
|
|
102091
102195
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
102092
102196
|
exports.FilterStackFactory = exports.FilterStack = void 0;
|
|
@@ -102155,9 +102259,9 @@ var require_filter_stack = __commonJS({
|
|
|
102155
102259
|
}
|
|
102156
102260
|
});
|
|
102157
102261
|
|
|
102158
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102262
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/single-subchannel-channel.js
|
|
102159
102263
|
var require_single_subchannel_channel = __commonJS({
|
|
102160
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102264
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/single-subchannel-channel.js"(exports) {
|
|
102161
102265
|
"use strict";
|
|
102162
102266
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
102163
102267
|
exports.SingleSubchannelChannel = void 0;
|
|
@@ -102270,7 +102374,7 @@ var require_single_subchannel_channel = __commonJS({
|
|
|
102270
102374
|
}
|
|
102271
102375
|
}
|
|
102272
102376
|
};
|
|
102273
|
-
this.childCall = this.subchannel.createCall(credsMetadata, this.options.host, this.method, childListener);
|
|
102377
|
+
this.childCall = this.subchannel.createCall(credsMetadata, this.options.host, this.method, childListener, this.callNumber);
|
|
102274
102378
|
if (this.readPending) {
|
|
102275
102379
|
this.childCall.startRead();
|
|
102276
102380
|
}
|
|
@@ -102375,9 +102479,9 @@ var require_single_subchannel_channel = __commonJS({
|
|
|
102375
102479
|
}
|
|
102376
102480
|
});
|
|
102377
102481
|
|
|
102378
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102482
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel.js
|
|
102379
102483
|
var require_subchannel = __commonJS({
|
|
102380
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102484
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel.js"(exports) {
|
|
102381
102485
|
"use strict";
|
|
102382
102486
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
102383
102487
|
exports.Subchannel = void 0;
|
|
@@ -102440,7 +102544,9 @@ var require_subchannel = __commonJS({
|
|
|
102440
102544
|
}
|
|
102441
102545
|
this.channelzRef = (0, channelz_1.registerChannelzSubchannel)(this.subchannelAddressString, () => this.getChannelzInfo(), this.channelzEnabled);
|
|
102442
102546
|
this.channelzTrace.addTrace("CT_INFO", "Subchannel created");
|
|
102443
|
-
this.
|
|
102547
|
+
if (this.traceEnabled) {
|
|
102548
|
+
this.trace("Subchannel constructed with options " + JSON.stringify(options, void 0, 2));
|
|
102549
|
+
}
|
|
102444
102550
|
this.secureConnector = credentials2._createSecureConnector(channelTarget, options);
|
|
102445
102551
|
}
|
|
102446
102552
|
getChannelzInfo() {
|
|
@@ -102452,11 +102558,21 @@ var require_subchannel = __commonJS({
|
|
|
102452
102558
|
target: this.subchannelAddressString
|
|
102453
102559
|
};
|
|
102454
102560
|
}
|
|
102561
|
+
get traceEnabled() {
|
|
102562
|
+
return logging.isTracerEnabled(TRACER_NAME);
|
|
102563
|
+
}
|
|
102564
|
+
get refTraceEnabled() {
|
|
102565
|
+
return logging.isTracerEnabled("subchannel_refcount");
|
|
102566
|
+
}
|
|
102455
102567
|
trace(text4) {
|
|
102456
|
-
|
|
102568
|
+
if (this.traceEnabled) {
|
|
102569
|
+
logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, "(" + this.channelzRef.id + ") " + this.subchannelAddressString + " " + text4);
|
|
102570
|
+
}
|
|
102457
102571
|
}
|
|
102458
102572
|
refTrace(text4) {
|
|
102459
|
-
|
|
102573
|
+
if (this.refTraceEnabled) {
|
|
102574
|
+
logging.trace(constants_1.LogVerbosity.DEBUG, "subchannel_refcount", "(" + this.channelzRef.id + ") " + this.subchannelAddressString + " " + text4);
|
|
102575
|
+
}
|
|
102460
102576
|
}
|
|
102461
102577
|
handleBackoffTimer() {
|
|
102462
102578
|
if (this.continueConnecting) {
|
|
@@ -102513,10 +102629,12 @@ var require_subchannel = __commonJS({
|
|
|
102513
102629
|
if (oldStates.indexOf(this.connectivityState) === -1) {
|
|
102514
102630
|
return false;
|
|
102515
102631
|
}
|
|
102516
|
-
if (
|
|
102517
|
-
|
|
102518
|
-
|
|
102519
|
-
|
|
102632
|
+
if (this.traceEnabled) {
|
|
102633
|
+
if (errorMessage2) {
|
|
102634
|
+
this.trace(connectivity_state_1.ConnectivityState[this.connectivityState] + " -> " + connectivity_state_1.ConnectivityState[newState] + ' with error "' + errorMessage2 + '"');
|
|
102635
|
+
} else {
|
|
102636
|
+
this.trace(connectivity_state_1.ConnectivityState[this.connectivityState] + " -> " + connectivity_state_1.ConnectivityState[newState]);
|
|
102637
|
+
}
|
|
102520
102638
|
}
|
|
102521
102639
|
if (this.channelzEnabled) {
|
|
102522
102640
|
this.channelzTrace.addTrace("CT_INFO", "Connectivity state change to " + connectivity_state_1.ConnectivityState[newState]);
|
|
@@ -102560,11 +102678,15 @@ var require_subchannel = __commonJS({
|
|
|
102560
102678
|
return true;
|
|
102561
102679
|
}
|
|
102562
102680
|
ref() {
|
|
102563
|
-
|
|
102681
|
+
if (this.refTraceEnabled) {
|
|
102682
|
+
this.refTrace("refcount " + this.refcount + " -> " + (this.refcount + 1));
|
|
102683
|
+
}
|
|
102564
102684
|
this.refcount += 1;
|
|
102565
102685
|
}
|
|
102566
102686
|
unref() {
|
|
102567
|
-
|
|
102687
|
+
if (this.refTraceEnabled) {
|
|
102688
|
+
this.refTrace("refcount " + this.refcount + " -> " + (this.refcount - 1));
|
|
102689
|
+
}
|
|
102568
102690
|
this.refcount -= 1;
|
|
102569
102691
|
if (this.refcount === 0) {
|
|
102570
102692
|
this.channelzTrace.addTrace("CT_INFO", "Shutting down");
|
|
@@ -102582,7 +102704,7 @@ var require_subchannel = __commonJS({
|
|
|
102582
102704
|
}
|
|
102583
102705
|
return false;
|
|
102584
102706
|
}
|
|
102585
|
-
createCall(metadata, host, method, listener) {
|
|
102707
|
+
createCall(metadata, host, method, listener, callId) {
|
|
102586
102708
|
if (!this.transport) {
|
|
102587
102709
|
throw new Error("Cannot create call, subchannel not READY");
|
|
102588
102710
|
}
|
|
@@ -102602,7 +102724,7 @@ var require_subchannel = __commonJS({
|
|
|
102602
102724
|
} else {
|
|
102603
102725
|
statsTracker = {};
|
|
102604
102726
|
}
|
|
102605
|
-
return this.transport.createCall(metadata, host, method, listener, statsTracker);
|
|
102727
|
+
return this.transport.createCall(metadata, host, method, listener, statsTracker, callId);
|
|
102606
102728
|
}
|
|
102607
102729
|
/**
|
|
102608
102730
|
* If the subchannel is currently IDLE, start connecting and switch to the
|
|
@@ -102703,20 +102825,22 @@ var require_subchannel = __commonJS({
|
|
|
102703
102825
|
}
|
|
102704
102826
|
});
|
|
102705
102827
|
|
|
102706
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102828
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/environment.js
|
|
102707
102829
|
var require_environment = __commonJS({
|
|
102708
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102830
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/environment.js"(exports) {
|
|
102709
102831
|
"use strict";
|
|
102710
102832
|
var _a2;
|
|
102833
|
+
var _b2;
|
|
102711
102834
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
102712
|
-
exports.GRPC_NODE_USE_ALTERNATIVE_RESOLVER = void 0;
|
|
102835
|
+
exports.GRPC_NODE_DEBUG_SEND_ERROR_DETAILS = exports.GRPC_NODE_USE_ALTERNATIVE_RESOLVER = void 0;
|
|
102713
102836
|
exports.GRPC_NODE_USE_ALTERNATIVE_RESOLVER = ((_a2 = process.env.GRPC_NODE_USE_ALTERNATIVE_RESOLVER) !== null && _a2 !== void 0 ? _a2 : "false") === "true";
|
|
102837
|
+
exports.GRPC_NODE_DEBUG_SEND_ERROR_DETAILS = ((_b2 = process.env.GRPC_NODE_DEBUG_SEND_ERROR_DETAILS) !== null && _b2 !== void 0 ? _b2 : "false") === "true";
|
|
102714
102838
|
}
|
|
102715
102839
|
});
|
|
102716
102840
|
|
|
102717
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102841
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolver-dns.js
|
|
102718
102842
|
var require_resolver_dns = __commonJS({
|
|
102719
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102843
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolver-dns.js"(exports) {
|
|
102720
102844
|
"use strict";
|
|
102721
102845
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
102722
102846
|
exports.DEFAULT_PORT = void 0;
|
|
@@ -103002,9 +103126,9 @@ var require_resolver_dns = __commonJS({
|
|
|
103002
103126
|
}
|
|
103003
103127
|
});
|
|
103004
103128
|
|
|
103005
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
103129
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/http_proxy.js
|
|
103006
103130
|
var require_http_proxy = __commonJS({
|
|
103007
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
103131
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/http_proxy.js"(exports) {
|
|
103008
103132
|
"use strict";
|
|
103009
103133
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
103010
103134
|
exports.parseCIDR = parseCIDR;
|
|
@@ -103221,9 +103345,9 @@ var require_http_proxy = __commonJS({
|
|
|
103221
103345
|
}
|
|
103222
103346
|
});
|
|
103223
103347
|
|
|
103224
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
103348
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/stream-decoder.js
|
|
103225
103349
|
var require_stream_decoder = __commonJS({
|
|
103226
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
103350
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/stream-decoder.js"(exports) {
|
|
103227
103351
|
"use strict";
|
|
103228
103352
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
103229
103353
|
exports.StreamDecoder = void 0;
|
|
@@ -103306,9 +103430,9 @@ var require_stream_decoder = __commonJS({
|
|
|
103306
103430
|
}
|
|
103307
103431
|
});
|
|
103308
103432
|
|
|
103309
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
103433
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel-call.js
|
|
103310
103434
|
var require_subchannel_call = __commonJS({
|
|
103311
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
103435
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel-call.js"(exports) {
|
|
103312
103436
|
"use strict";
|
|
103313
103437
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
103314
103438
|
exports.Http2SubchannelCall = void 0;
|
|
@@ -103381,11 +103505,13 @@ var require_subchannel_call = __commonJS({
|
|
|
103381
103505
|
const maxReceiveMessageLength = (_a2 = transport.getOptions()["grpc.max_receive_message_length"]) !== null && _a2 !== void 0 ? _a2 : constants_1.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH;
|
|
103382
103506
|
this.decoder = new stream_decoder_1.StreamDecoder(maxReceiveMessageLength);
|
|
103383
103507
|
http2Stream.on("response", (headers, flags) => {
|
|
103384
|
-
|
|
103385
|
-
|
|
103386
|
-
|
|
103508
|
+
if (this.traceEnabled) {
|
|
103509
|
+
let headersString = "";
|
|
103510
|
+
for (const header2 of Object.keys(headers)) {
|
|
103511
|
+
headersString += " " + header2 + ": " + headers[header2] + "\n";
|
|
103512
|
+
}
|
|
103513
|
+
this.trace("Received server headers:\n" + headersString);
|
|
103387
103514
|
}
|
|
103388
|
-
this.trace("Received server headers:\n" + headersString);
|
|
103389
103515
|
this.httpStatusCode = headers[":status"];
|
|
103390
103516
|
if (flags & http2.constants.NGHTTP2_FLAG_END_STREAM) {
|
|
103391
103517
|
this.handleTrailers(headers);
|
|
@@ -103411,7 +103537,9 @@ var require_subchannel_call = __commonJS({
|
|
|
103411
103537
|
if (this.statusOutput) {
|
|
103412
103538
|
return;
|
|
103413
103539
|
}
|
|
103414
|
-
this.
|
|
103540
|
+
if (this.traceEnabled) {
|
|
103541
|
+
this.trace("receive HTTP/2 data frame of length " + data.length);
|
|
103542
|
+
}
|
|
103415
103543
|
let messages;
|
|
103416
103544
|
try {
|
|
103417
103545
|
messages = this.decoder.write(data);
|
|
@@ -103425,7 +103553,9 @@ var require_subchannel_call = __commonJS({
|
|
|
103425
103553
|
return;
|
|
103426
103554
|
}
|
|
103427
103555
|
for (const message of messages) {
|
|
103428
|
-
this.
|
|
103556
|
+
if (this.traceEnabled) {
|
|
103557
|
+
this.trace("parsed message of length " + message.length);
|
|
103558
|
+
}
|
|
103429
103559
|
this.callEventTracker.addMessageReceived();
|
|
103430
103560
|
this.tryPush(message);
|
|
103431
103561
|
}
|
|
@@ -103438,7 +103568,9 @@ var require_subchannel_call = __commonJS({
|
|
|
103438
103568
|
this.serverEndedCall = true;
|
|
103439
103569
|
process.nextTick(() => {
|
|
103440
103570
|
var _a3;
|
|
103441
|
-
this.
|
|
103571
|
+
if (this.traceEnabled) {
|
|
103572
|
+
this.trace("HTTP/2 stream closed with code " + http2Stream.rstCode);
|
|
103573
|
+
}
|
|
103442
103574
|
if (((_a3 = this.finalStatus) === null || _a3 === void 0 ? void 0 : _a3.code) === constants_1.Status.OK) {
|
|
103443
103575
|
return;
|
|
103444
103576
|
}
|
|
@@ -103506,7 +103638,9 @@ var require_subchannel_call = __commonJS({
|
|
|
103506
103638
|
});
|
|
103507
103639
|
http2Stream.on("error", (err2) => {
|
|
103508
103640
|
if (err2.code !== "ERR_HTTP2_STREAM_ERROR") {
|
|
103509
|
-
|
|
103641
|
+
if (this.traceEnabled) {
|
|
103642
|
+
this.trace("Node error event: message=" + err2.message + " code=" + err2.code + " errno=" + getSystemErrorName(err2.errno) + " syscall=" + err2.syscall);
|
|
103643
|
+
}
|
|
103510
103644
|
this.internalError = err2;
|
|
103511
103645
|
}
|
|
103512
103646
|
this.callEventTracker.onStreamEnd(false);
|
|
@@ -103528,7 +103662,9 @@ var require_subchannel_call = __commonJS({
|
|
|
103528
103662
|
outputStatus() {
|
|
103529
103663
|
if (!this.statusOutput) {
|
|
103530
103664
|
this.statusOutput = true;
|
|
103531
|
-
|
|
103665
|
+
if (this.traceEnabled) {
|
|
103666
|
+
this.trace("ended with status: code=" + this.finalStatus.code + ' details="' + this.finalStatus.details + '"');
|
|
103667
|
+
}
|
|
103532
103668
|
this.callEventTracker.onCallEnd(this.finalStatus);
|
|
103533
103669
|
process.nextTick(() => {
|
|
103534
103670
|
this.listener.onReceiveStatus(this.finalStatus);
|
|
@@ -103536,8 +103672,13 @@ var require_subchannel_call = __commonJS({
|
|
|
103536
103672
|
this.http2Stream.resume();
|
|
103537
103673
|
}
|
|
103538
103674
|
}
|
|
103675
|
+
get traceEnabled() {
|
|
103676
|
+
return logging.isTracerEnabled(TRACER_NAME);
|
|
103677
|
+
}
|
|
103539
103678
|
trace(text4) {
|
|
103540
|
-
|
|
103679
|
+
if (this.traceEnabled) {
|
|
103680
|
+
logging.trace(constants_2.LogVerbosity.DEBUG, TRACER_NAME, "[" + this.callId + "] " + text4);
|
|
103681
|
+
}
|
|
103541
103682
|
}
|
|
103542
103683
|
/**
|
|
103543
103684
|
* On first call, emits a 'status' event with the given StatusObject.
|
|
@@ -103559,7 +103700,9 @@ var require_subchannel_call = __commonJS({
|
|
|
103559
103700
|
}
|
|
103560
103701
|
}
|
|
103561
103702
|
push(message) {
|
|
103562
|
-
|
|
103703
|
+
if (this.traceEnabled) {
|
|
103704
|
+
this.trace("pushing to reader message of length " + (message instanceof Buffer ? message.length : null));
|
|
103705
|
+
}
|
|
103563
103706
|
this.canPush = false;
|
|
103564
103707
|
this.isPushPending = true;
|
|
103565
103708
|
process.nextTick(() => {
|
|
@@ -103576,18 +103719,22 @@ var require_subchannel_call = __commonJS({
|
|
|
103576
103719
|
this.http2Stream.pause();
|
|
103577
103720
|
this.push(messageBytes);
|
|
103578
103721
|
} else {
|
|
103579
|
-
this.
|
|
103722
|
+
if (this.traceEnabled) {
|
|
103723
|
+
this.trace("unpushedReadMessages.push message of length " + messageBytes.length);
|
|
103724
|
+
}
|
|
103580
103725
|
this.unpushedReadMessages.push(messageBytes);
|
|
103581
103726
|
}
|
|
103582
103727
|
}
|
|
103583
103728
|
handleTrailers(headers) {
|
|
103584
103729
|
this.serverEndedCall = true;
|
|
103585
103730
|
this.callEventTracker.onStreamEnd(true);
|
|
103586
|
-
|
|
103587
|
-
|
|
103588
|
-
|
|
103731
|
+
if (this.traceEnabled) {
|
|
103732
|
+
let headersString = "";
|
|
103733
|
+
for (const header2 of Object.keys(headers)) {
|
|
103734
|
+
headersString += " " + header2 + ": " + headers[header2] + "\n";
|
|
103735
|
+
}
|
|
103736
|
+
this.trace("Received server trailers:\n" + headersString);
|
|
103589
103737
|
}
|
|
103590
|
-
this.trace("Received server trailers:\n" + headersString);
|
|
103591
103738
|
let metadata;
|
|
103592
103739
|
try {
|
|
103593
103740
|
metadata = metadata_1.Metadata.fromHttp2Headers(headers);
|
|
@@ -103598,7 +103745,9 @@ var require_subchannel_call = __commonJS({
|
|
|
103598
103745
|
let status2;
|
|
103599
103746
|
if (typeof metadataMap["grpc-status"] === "string") {
|
|
103600
103747
|
const receivedStatus = Number(metadataMap["grpc-status"]);
|
|
103601
|
-
this.
|
|
103748
|
+
if (this.traceEnabled) {
|
|
103749
|
+
this.trace("received status code " + receivedStatus + " from server");
|
|
103750
|
+
}
|
|
103602
103751
|
metadata.remove("grpc-status");
|
|
103603
103752
|
let details = "";
|
|
103604
103753
|
if (typeof metadataMap["grpc-message"] === "string") {
|
|
@@ -103608,7 +103757,9 @@ var require_subchannel_call = __commonJS({
|
|
|
103608
103757
|
details = metadataMap["grpc-message"];
|
|
103609
103758
|
}
|
|
103610
103759
|
metadata.remove("grpc-message");
|
|
103611
|
-
this.
|
|
103760
|
+
if (this.traceEnabled) {
|
|
103761
|
+
this.trace('received status details string "' + details + '" from server');
|
|
103762
|
+
}
|
|
103612
103763
|
}
|
|
103613
103764
|
status2 = {
|
|
103614
103765
|
code: receivedStatus,
|
|
@@ -103633,7 +103784,9 @@ var require_subchannel_call = __commonJS({
|
|
|
103633
103784
|
return;
|
|
103634
103785
|
}
|
|
103635
103786
|
if (this.serverEndedCall) {
|
|
103636
|
-
this.http2Stream.
|
|
103787
|
+
if (!this.http2Stream.writableEnded) {
|
|
103788
|
+
this.http2Stream.end();
|
|
103789
|
+
}
|
|
103637
103790
|
} else {
|
|
103638
103791
|
let code;
|
|
103639
103792
|
if (((_a2 = this.finalStatus) === null || _a2 === void 0 ? void 0 : _a2.code) === constants_1.Status.OK) {
|
|
@@ -103641,12 +103794,16 @@ var require_subchannel_call = __commonJS({
|
|
|
103641
103794
|
} else {
|
|
103642
103795
|
code = http2.constants.NGHTTP2_CANCEL;
|
|
103643
103796
|
}
|
|
103644
|
-
this.
|
|
103797
|
+
if (this.traceEnabled) {
|
|
103798
|
+
this.trace("close http2 stream with code " + code);
|
|
103799
|
+
}
|
|
103645
103800
|
this.http2Stream.close(code);
|
|
103646
103801
|
}
|
|
103647
103802
|
}
|
|
103648
103803
|
cancelWithStatus(status2, details) {
|
|
103649
|
-
this.
|
|
103804
|
+
if (this.traceEnabled) {
|
|
103805
|
+
this.trace("cancelWithStatus code: " + status2 + ' details: "' + details + '"');
|
|
103806
|
+
}
|
|
103650
103807
|
this.endCall({ code: status2, details, metadata: new metadata_1.Metadata() });
|
|
103651
103808
|
}
|
|
103652
103809
|
getStatus() {
|
|
@@ -103676,7 +103833,9 @@ var require_subchannel_call = __commonJS({
|
|
|
103676
103833
|
this.http2Stream.resume();
|
|
103677
103834
|
}
|
|
103678
103835
|
sendMessageWithContext(context, message) {
|
|
103679
|
-
this.
|
|
103836
|
+
if (this.traceEnabled) {
|
|
103837
|
+
this.trace("write() called with message of length " + message.length);
|
|
103838
|
+
}
|
|
103680
103839
|
const cb = (error) => {
|
|
103681
103840
|
process.nextTick(() => {
|
|
103682
103841
|
var _a2;
|
|
@@ -103690,7 +103849,9 @@ var require_subchannel_call = __commonJS({
|
|
|
103690
103849
|
(_a2 = context.callback) === null || _a2 === void 0 ? void 0 : _a2.call(context);
|
|
103691
103850
|
});
|
|
103692
103851
|
};
|
|
103693
|
-
this.
|
|
103852
|
+
if (this.traceEnabled) {
|
|
103853
|
+
this.trace("sending data chunk of length " + message.length);
|
|
103854
|
+
}
|
|
103694
103855
|
this.callEventTracker.addMessageSent();
|
|
103695
103856
|
try {
|
|
103696
103857
|
this.http2Stream.write(message, cb);
|
|
@@ -103704,6 +103865,9 @@ var require_subchannel_call = __commonJS({
|
|
|
103704
103865
|
}
|
|
103705
103866
|
halfClose() {
|
|
103706
103867
|
this.trace("end() called");
|
|
103868
|
+
if (this.http2Stream.destroyed || this.http2Stream.writableEnded) {
|
|
103869
|
+
return;
|
|
103870
|
+
}
|
|
103707
103871
|
this.trace("calling end() on HTTP/2 stream");
|
|
103708
103872
|
this.http2Stream.end();
|
|
103709
103873
|
}
|
|
@@ -103712,9 +103876,9 @@ var require_subchannel_call = __commonJS({
|
|
|
103712
103876
|
}
|
|
103713
103877
|
});
|
|
103714
103878
|
|
|
103715
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
103879
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/transport.js
|
|
103716
103880
|
var require_transport = __commonJS({
|
|
103717
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
103881
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/transport.js"(exports) {
|
|
103718
103882
|
"use strict";
|
|
103719
103883
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
103720
103884
|
exports.Http2SubchannelConnector = void 0;
|
|
@@ -103789,18 +103953,24 @@ var require_transport = __commonJS({
|
|
|
103789
103953
|
if (errorCode2 === http2.constants.NGHTTP2_ENHANCE_YOUR_CALM && opaqueData && opaqueData.equals(tooManyPingsData)) {
|
|
103790
103954
|
tooManyPings = true;
|
|
103791
103955
|
}
|
|
103792
|
-
|
|
103956
|
+
if (this.traceEnabled) {
|
|
103957
|
+
this.trace("connection closed by GOAWAY with code " + errorCode2 + " and data " + (opaqueData === null || opaqueData === void 0 ? void 0 : opaqueData.toString()));
|
|
103958
|
+
}
|
|
103793
103959
|
this.reportDisconnectToOwner(tooManyPings);
|
|
103794
103960
|
});
|
|
103795
103961
|
session.once("error", (error) => {
|
|
103796
|
-
this.
|
|
103962
|
+
if (this.traceEnabled) {
|
|
103963
|
+
this.trace("connection closed with error " + error.message);
|
|
103964
|
+
}
|
|
103797
103965
|
this.handleDisconnect();
|
|
103798
103966
|
});
|
|
103799
103967
|
session.socket.once("close", (hadError) => {
|
|
103800
|
-
this.
|
|
103968
|
+
if (this.traceEnabled) {
|
|
103969
|
+
this.trace("connection closed. hadError=" + hadError);
|
|
103970
|
+
}
|
|
103801
103971
|
this.handleDisconnect();
|
|
103802
103972
|
});
|
|
103803
|
-
if (
|
|
103973
|
+
if (this.traceEnabled) {
|
|
103804
103974
|
session.on("remoteSettings", (settings) => {
|
|
103805
103975
|
this.trace("new settings received" + (this.session !== session ? " on the old connection" : "") + ": " + JSON.stringify(settings));
|
|
103806
103976
|
});
|
|
@@ -103811,7 +103981,7 @@ var require_transport = __commonJS({
|
|
|
103811
103981
|
if (this.keepaliveWithoutCalls) {
|
|
103812
103982
|
this.maybeStartKeepalivePingTimer();
|
|
103813
103983
|
}
|
|
103814
|
-
if (session.socket instanceof tls_1.TLSSocket) {
|
|
103984
|
+
if (session.socket instanceof tls_1.TLSSocket && session.socket.authorized) {
|
|
103815
103985
|
this.authContext = {
|
|
103816
103986
|
transportSecurityType: "ssl",
|
|
103817
103987
|
sslPeerCertificate: session.socket.getPeerCertificate()
|
|
@@ -103860,17 +104030,37 @@ var require_transport = __commonJS({
|
|
|
103860
104030
|
};
|
|
103861
104031
|
return socketInfo;
|
|
103862
104032
|
}
|
|
104033
|
+
get traceEnabled() {
|
|
104034
|
+
return logging.isTracerEnabled(TRACER_NAME);
|
|
104035
|
+
}
|
|
104036
|
+
get keepaliveTraceEnabled() {
|
|
104037
|
+
return logging.isTracerEnabled("keepalive");
|
|
104038
|
+
}
|
|
104039
|
+
get flowControlTraceEnabled() {
|
|
104040
|
+
return logging.isTracerEnabled(FLOW_CONTROL_TRACER_NAME);
|
|
104041
|
+
}
|
|
104042
|
+
get internalsTraceEnabled() {
|
|
104043
|
+
return logging.isTracerEnabled("transport_internals");
|
|
104044
|
+
}
|
|
103863
104045
|
trace(text4) {
|
|
103864
|
-
|
|
104046
|
+
if (this.traceEnabled) {
|
|
104047
|
+
logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, "(" + this.channelzRef.id + ") " + this.subchannelAddressString + " " + text4);
|
|
104048
|
+
}
|
|
103865
104049
|
}
|
|
103866
104050
|
keepaliveTrace(text4) {
|
|
103867
|
-
|
|
104051
|
+
if (this.keepaliveTraceEnabled) {
|
|
104052
|
+
logging.trace(constants_1.LogVerbosity.DEBUG, "keepalive", "(" + this.channelzRef.id + ") " + this.subchannelAddressString + " " + text4);
|
|
104053
|
+
}
|
|
103868
104054
|
}
|
|
103869
104055
|
flowControlTrace(text4) {
|
|
103870
|
-
|
|
104056
|
+
if (this.flowControlTraceEnabled) {
|
|
104057
|
+
logging.trace(constants_1.LogVerbosity.DEBUG, FLOW_CONTROL_TRACER_NAME, "(" + this.channelzRef.id + ") " + this.subchannelAddressString + " " + text4);
|
|
104058
|
+
}
|
|
103871
104059
|
}
|
|
103872
104060
|
internalsTrace(text4) {
|
|
103873
|
-
|
|
104061
|
+
if (this.internalsTraceEnabled) {
|
|
104062
|
+
logging.trace(constants_1.LogVerbosity.DEBUG, "transport_internals", "(" + this.channelzRef.id + ") " + this.subchannelAddressString + " " + text4);
|
|
104063
|
+
}
|
|
103874
104064
|
}
|
|
103875
104065
|
/**
|
|
103876
104066
|
* Indicate to the owner of this object that this transport should no longer
|
|
@@ -103920,7 +104110,9 @@ var require_transport = __commonJS({
|
|
|
103920
104110
|
if (this.channelzEnabled) {
|
|
103921
104111
|
this.keepalivesSent += 1;
|
|
103922
104112
|
}
|
|
103923
|
-
|
|
104113
|
+
if (this.keepaliveTraceEnabled) {
|
|
104114
|
+
this.keepaliveTrace("Sending ping with timeout " + this.keepaliveTimeoutMs + "ms");
|
|
104115
|
+
}
|
|
103924
104116
|
this.keepaliveTimer = setTimeout(() => {
|
|
103925
104117
|
this.keepaliveTimer = null;
|
|
103926
104118
|
this.keepaliveTrace("Ping timeout passed without response");
|
|
@@ -103932,7 +104124,9 @@ var require_transport = __commonJS({
|
|
|
103932
104124
|
const pingSentSuccessfully = this.session.ping((err2, duration, payload) => {
|
|
103933
104125
|
this.clearKeepaliveTimeout();
|
|
103934
104126
|
if (err2) {
|
|
103935
|
-
this.
|
|
104127
|
+
if (this.keepaliveTraceEnabled) {
|
|
104128
|
+
this.keepaliveTrace("Ping failed with error " + err2.message);
|
|
104129
|
+
}
|
|
103936
104130
|
this.handleDisconnect();
|
|
103937
104131
|
} else {
|
|
103938
104132
|
this.keepaliveTrace("Received ping response");
|
|
@@ -103946,7 +104140,9 @@ var require_transport = __commonJS({
|
|
|
103946
104140
|
pingSendError = (e instanceof Error ? e.message : "") || "Unknown error";
|
|
103947
104141
|
}
|
|
103948
104142
|
if (pingSendError) {
|
|
103949
|
-
this.
|
|
104143
|
+
if (this.keepaliveTraceEnabled) {
|
|
104144
|
+
this.keepaliveTrace("Ping send failed: " + pingSendError);
|
|
104145
|
+
}
|
|
103950
104146
|
this.handleDisconnect();
|
|
103951
104147
|
}
|
|
103952
104148
|
}
|
|
@@ -103997,7 +104193,7 @@ var require_transport = __commonJS({
|
|
|
103997
104193
|
}
|
|
103998
104194
|
}
|
|
103999
104195
|
}
|
|
104000
|
-
createCall(metadata, host, method, listener, subchannelCallStatsTracker) {
|
|
104196
|
+
createCall(metadata, host, method, listener, subchannelCallStatsTracker, callId) {
|
|
104001
104197
|
const headers = metadata.toHttp2Headers();
|
|
104002
104198
|
headers[HTTP2_HEADER_AUTHORITY] = host;
|
|
104003
104199
|
headers[HTTP2_HEADER_USER_AGENT] = this.userAgent;
|
|
@@ -104012,8 +104208,12 @@ var require_transport = __commonJS({
|
|
|
104012
104208
|
this.handleDisconnect();
|
|
104013
104209
|
throw e;
|
|
104014
104210
|
}
|
|
104015
|
-
|
|
104016
|
-
|
|
104211
|
+
if (this.flowControlTraceEnabled) {
|
|
104212
|
+
this.flowControlTrace("local window size: " + this.session.state.localWindowSize + " remote window size: " + this.session.state.remoteWindowSize);
|
|
104213
|
+
}
|
|
104214
|
+
if (this.internalsTraceEnabled) {
|
|
104215
|
+
this.internalsTrace("session.closed=" + this.session.closed + " session.destroyed=" + this.session.destroyed + " session.socket.destroyed=" + this.session.socket.destroyed);
|
|
104216
|
+
}
|
|
104017
104217
|
let eventTracker;
|
|
104018
104218
|
let call;
|
|
104019
104219
|
if (this.channelzEnabled) {
|
|
@@ -104067,7 +104267,7 @@ var require_transport = __commonJS({
|
|
|
104067
104267
|
}
|
|
104068
104268
|
};
|
|
104069
104269
|
}
|
|
104070
|
-
call = new subchannel_call_1.Http2SubchannelCall(http2Stream, eventTracker, listener, this, (0, call_number_1.getNextCallNumber)());
|
|
104270
|
+
call = new subchannel_call_1.Http2SubchannelCall(http2Stream, eventTracker, listener, this, callId !== null && callId !== void 0 ? callId : (0, call_number_1.getNextCallNumber)());
|
|
104071
104271
|
this.addActiveCall(call);
|
|
104072
104272
|
return call;
|
|
104073
104273
|
}
|
|
@@ -104094,8 +104294,13 @@ var require_transport = __commonJS({
|
|
|
104094
104294
|
this.session = null;
|
|
104095
104295
|
this.isShutdown = false;
|
|
104096
104296
|
}
|
|
104297
|
+
get traceEnabled() {
|
|
104298
|
+
return logging.isTracerEnabled(TRACER_NAME);
|
|
104299
|
+
}
|
|
104097
104300
|
trace(text4) {
|
|
104098
|
-
|
|
104301
|
+
if (this.traceEnabled) {
|
|
104302
|
+
logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, (0, uri_parser_1.uriToString)(this.channelTarget) + " " + text4);
|
|
104303
|
+
}
|
|
104099
104304
|
}
|
|
104100
104305
|
createSession(secureConnectResult, address, options) {
|
|
104101
104306
|
if (this.isShutdown) {
|
|
@@ -104132,7 +104337,9 @@ var require_transport = __commonJS({
|
|
|
104132
104337
|
var _a3;
|
|
104133
104338
|
(_a3 = this.session) === null || _a3 === void 0 ? void 0 : _a3.destroy();
|
|
104134
104339
|
errorMessage2 = error.message;
|
|
104135
|
-
this.
|
|
104340
|
+
if (this.traceEnabled) {
|
|
104341
|
+
this.trace("connection failed with error " + errorMessage2);
|
|
104342
|
+
}
|
|
104136
104343
|
if (!reportedError) {
|
|
104137
104344
|
reportedError = true;
|
|
104138
104345
|
reject(`${errorMessage2} (${(/* @__PURE__ */ new Date()).toISOString()})`);
|
|
@@ -104213,14 +104420,22 @@ var require_transport = __commonJS({
|
|
|
104213
104420
|
let secureConnectResult = null;
|
|
104214
104421
|
const addressString = (0, subchannel_address_1.subchannelAddressToString)(address);
|
|
104215
104422
|
try {
|
|
104216
|
-
this.
|
|
104423
|
+
if (this.traceEnabled) {
|
|
104424
|
+
this.trace(addressString + " Waiting for secureConnector to be ready");
|
|
104425
|
+
}
|
|
104217
104426
|
await secureConnector.waitForReady();
|
|
104218
|
-
this.
|
|
104427
|
+
if (this.traceEnabled) {
|
|
104428
|
+
this.trace(addressString + " secureConnector is ready");
|
|
104429
|
+
}
|
|
104219
104430
|
tcpConnection = await this.tcpConnect(address, options);
|
|
104220
104431
|
tcpConnection.setNoDelay();
|
|
104221
|
-
this.
|
|
104432
|
+
if (this.traceEnabled) {
|
|
104433
|
+
this.trace(addressString + " Established TCP connection");
|
|
104434
|
+
}
|
|
104222
104435
|
secureConnectResult = await secureConnector.connect(tcpConnection);
|
|
104223
|
-
this.
|
|
104436
|
+
if (this.traceEnabled) {
|
|
104437
|
+
this.trace(addressString + " Established secure connection");
|
|
104438
|
+
}
|
|
104224
104439
|
return this.createSession(secureConnectResult, address, options);
|
|
104225
104440
|
} catch (e) {
|
|
104226
104441
|
tcpConnection === null || tcpConnection === void 0 ? void 0 : tcpConnection.destroy();
|
|
@@ -104239,9 +104454,9 @@ var require_transport = __commonJS({
|
|
|
104239
104454
|
}
|
|
104240
104455
|
});
|
|
104241
104456
|
|
|
104242
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
104457
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel-pool.js
|
|
104243
104458
|
var require_subchannel_pool = __commonJS({
|
|
104244
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
104459
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel-pool.js"(exports) {
|
|
104245
104460
|
"use strict";
|
|
104246
104461
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
104247
104462
|
exports.SubchannelPool = void 0;
|
|
@@ -104337,9 +104552,9 @@ var require_subchannel_pool = __commonJS({
|
|
|
104337
104552
|
}
|
|
104338
104553
|
});
|
|
104339
104554
|
|
|
104340
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
104555
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancing-call.js
|
|
104341
104556
|
var require_load_balancing_call = __commonJS({
|
|
104342
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
104557
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancing-call.js"(exports) {
|
|
104343
104558
|
"use strict";
|
|
104344
104559
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
104345
104560
|
exports.LoadBalancingCall = void 0;
|
|
@@ -104401,17 +104616,28 @@ var require_load_balancing_call = __commonJS({
|
|
|
104401
104616
|
}
|
|
104402
104617
|
return deadlineInfo;
|
|
104403
104618
|
}
|
|
104619
|
+
get traceEnabled() {
|
|
104620
|
+
return logging.isTracerEnabled(TRACER_NAME);
|
|
104621
|
+
}
|
|
104404
104622
|
trace(text4) {
|
|
104405
|
-
|
|
104623
|
+
if (this.traceEnabled) {
|
|
104624
|
+
logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, "[" + this.callNumber + "] " + text4);
|
|
104625
|
+
}
|
|
104626
|
+
}
|
|
104627
|
+
getSubchannelString(subchannel) {
|
|
104628
|
+
return subchannel ? "(" + subchannel.getChannelzRef().id + ") " + subchannel.getAddress() : "" + subchannel;
|
|
104406
104629
|
}
|
|
104407
104630
|
outputStatus(status2, progress) {
|
|
104408
104631
|
var _a2, _b2;
|
|
104409
104632
|
if (!this.ended) {
|
|
104410
104633
|
this.ended = true;
|
|
104411
|
-
|
|
104634
|
+
if (this.traceEnabled) {
|
|
104635
|
+
this.trace("ended with status: code=" + status2.code + ' details="' + status2.details + '" start time=' + this.startTime.toISOString());
|
|
104636
|
+
}
|
|
104412
104637
|
const finalStatus = Object.assign(Object.assign({}, status2), { progress });
|
|
104413
104638
|
(_a2 = this.listener) === null || _a2 === void 0 ? void 0 : _a2.onReceiveStatus(finalStatus);
|
|
104414
104639
|
(_b2 = this.onCallEnded) === null || _b2 === void 0 ? void 0 : _b2.call(this, finalStatus.code, finalStatus.details, finalStatus.metadata);
|
|
104640
|
+
this.channel.removeCallFromPickQueue(this);
|
|
104415
104641
|
}
|
|
104416
104642
|
}
|
|
104417
104643
|
doPick() {
|
|
@@ -104425,8 +104651,9 @@ var require_load_balancing_call = __commonJS({
|
|
|
104425
104651
|
this.trace("Pick called");
|
|
104426
104652
|
const finalMetadata = this.metadata.clone();
|
|
104427
104653
|
const pickResult = this.channel.doPick(finalMetadata, this.callConfig.pickInformation);
|
|
104428
|
-
|
|
104429
|
-
|
|
104654
|
+
if (this.traceEnabled) {
|
|
104655
|
+
this.trace("Pick result: " + picker_1.PickResultType[pickResult.pickResultType] + " subchannel: " + this.getSubchannelString(pickResult.subchannel) + " status: " + ((_a2 = pickResult.status) === null || _a2 === void 0 ? void 0 : _a2.code) + " " + ((_b2 = pickResult.status) === null || _b2 === void 0 ? void 0 : _b2.details));
|
|
104656
|
+
}
|
|
104430
104657
|
switch (pickResult.pickResultType) {
|
|
104431
104658
|
case picker_1.PickResultType.COMPLETE:
|
|
104432
104659
|
const combinedCallCredentials = this.credentials.compose(pickResult.subchannel.getCallCredentials());
|
|
@@ -104445,7 +104672,9 @@ var require_load_balancing_call = __commonJS({
|
|
|
104445
104672
|
}, "PROCESSED");
|
|
104446
104673
|
}
|
|
104447
104674
|
if (pickResult.subchannel.getConnectivityState() !== connectivity_state_1.ConnectivityState.READY) {
|
|
104448
|
-
this.
|
|
104675
|
+
if (this.traceEnabled) {
|
|
104676
|
+
this.trace("Picked subchannel " + this.getSubchannelString(pickResult.subchannel) + " has state " + connectivity_state_1.ConnectivityState[pickResult.subchannel.getConnectivityState()] + " after getting credentials metadata. Retrying pick");
|
|
104677
|
+
}
|
|
104449
104678
|
this.doPick();
|
|
104450
104679
|
return;
|
|
104451
104680
|
}
|
|
@@ -104470,10 +104699,12 @@ var require_load_balancing_call = __commonJS({
|
|
|
104470
104699
|
this.outputStatus(status2, "PROCESSED");
|
|
104471
104700
|
}
|
|
104472
104701
|
}
|
|
104473
|
-
});
|
|
104702
|
+
}, this.callNumber);
|
|
104474
104703
|
this.childStartTime = /* @__PURE__ */ new Date();
|
|
104475
104704
|
} catch (error) {
|
|
104476
|
-
this.
|
|
104705
|
+
if (this.traceEnabled) {
|
|
104706
|
+
this.trace("Failed to start call on picked subchannel " + this.getSubchannelString(pickResult.subchannel) + " with error " + error.message);
|
|
104707
|
+
}
|
|
104477
104708
|
this.outputStatus({
|
|
104478
104709
|
code: constants_1.Status.INTERNAL,
|
|
104479
104710
|
details: "Failed to start HTTP/2 stream with error " + error.message,
|
|
@@ -104483,7 +104714,9 @@ var require_load_balancing_call = __commonJS({
|
|
|
104483
104714
|
}
|
|
104484
104715
|
(_a3 = pickResult.onCallStarted) === null || _a3 === void 0 ? void 0 : _a3.call(pickResult);
|
|
104485
104716
|
this.onCallEnded = pickResult.onCallEnded;
|
|
104486
|
-
|
|
104717
|
+
if (this.traceEnabled) {
|
|
104718
|
+
this.trace("Created child call [" + this.child.getCallNumber() + "]");
|
|
104719
|
+
}
|
|
104487
104720
|
if (this.readPending) {
|
|
104488
104721
|
this.child.startRead();
|
|
104489
104722
|
}
|
|
@@ -104524,7 +104757,9 @@ var require_load_balancing_call = __commonJS({
|
|
|
104524
104757
|
}
|
|
104525
104758
|
cancelWithStatus(status2, details) {
|
|
104526
104759
|
var _a2;
|
|
104527
|
-
this.
|
|
104760
|
+
if (this.traceEnabled) {
|
|
104761
|
+
this.trace("cancelWithStatus code: " + status2 + ' details: "' + details + '"');
|
|
104762
|
+
}
|
|
104528
104763
|
(_a2 = this.child) === null || _a2 === void 0 ? void 0 : _a2.cancelWithStatus(status2, details);
|
|
104529
104764
|
this.outputStatus({ code: status2, details, metadata: new metadata_1.Metadata() }, "PROCESSED");
|
|
104530
104765
|
}
|
|
@@ -104539,7 +104774,9 @@ var require_load_balancing_call = __commonJS({
|
|
|
104539
104774
|
this.doPick();
|
|
104540
104775
|
}
|
|
104541
104776
|
sendMessageWithContext(context, message) {
|
|
104542
|
-
this.
|
|
104777
|
+
if (this.traceEnabled) {
|
|
104778
|
+
this.trace("write() called with message of length " + message.length);
|
|
104779
|
+
}
|
|
104543
104780
|
if (this.child) {
|
|
104544
104781
|
this.child.sendMessageWithContext(context, message);
|
|
104545
104782
|
} else {
|
|
@@ -104580,9 +104817,9 @@ var require_load_balancing_call = __commonJS({
|
|
|
104580
104817
|
}
|
|
104581
104818
|
});
|
|
104582
104819
|
|
|
104583
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
104820
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolving-call.js
|
|
104584
104821
|
var require_resolving_call = __commonJS({
|
|
104585
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
104822
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolving-call.js"(exports) {
|
|
104586
104823
|
"use strict";
|
|
104587
104824
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
104588
104825
|
exports.ResolvingCall = void 0;
|
|
@@ -104626,23 +104863,34 @@ var require_resolving_call = __commonJS({
|
|
|
104626
104863
|
});
|
|
104627
104864
|
}
|
|
104628
104865
|
if (options.flags & constants_1.Propagate.DEADLINE) {
|
|
104629
|
-
this.
|
|
104866
|
+
if (this.traceEnabled) {
|
|
104867
|
+
this.trace("Propagating deadline from parent: " + options.parentCall.getDeadline());
|
|
104868
|
+
}
|
|
104630
104869
|
this.deadline = (0, deadline_1.minDeadline)(this.deadline, options.parentCall.getDeadline());
|
|
104631
104870
|
}
|
|
104632
104871
|
}
|
|
104633
104872
|
this.trace("Created");
|
|
104634
104873
|
this.runDeadlineTimer();
|
|
104635
104874
|
}
|
|
104875
|
+
get traceEnabled() {
|
|
104876
|
+
return logging.isTracerEnabled(TRACER_NAME);
|
|
104877
|
+
}
|
|
104636
104878
|
trace(text4) {
|
|
104637
|
-
|
|
104879
|
+
if (this.traceEnabled) {
|
|
104880
|
+
logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, "[" + this.callNumber + "] " + text4);
|
|
104881
|
+
}
|
|
104638
104882
|
}
|
|
104639
104883
|
runDeadlineTimer() {
|
|
104640
104884
|
clearTimeout(this.deadlineTimer);
|
|
104641
104885
|
this.deadlineStartTime = /* @__PURE__ */ new Date();
|
|
104642
|
-
|
|
104886
|
+
if (this.traceEnabled) {
|
|
104887
|
+
this.trace("Deadline: " + (0, deadline_1.deadlineToString)(this.deadline));
|
|
104888
|
+
}
|
|
104643
104889
|
const timeout = (0, deadline_1.getRelativeTimeout)(this.deadline);
|
|
104644
104890
|
if (timeout !== Infinity) {
|
|
104645
|
-
this.
|
|
104891
|
+
if (this.traceEnabled) {
|
|
104892
|
+
this.trace("Deadline will be reached in " + timeout + "ms");
|
|
104893
|
+
}
|
|
104646
104894
|
const handleDeadline = () => {
|
|
104647
104895
|
if (!this.deadlineStartTime) {
|
|
104648
104896
|
this.cancelWithStatus(constants_1.Status.DEADLINE_EXCEEDED, "Deadline exceeded");
|
|
@@ -104685,7 +104933,9 @@ var require_resolving_call = __commonJS({
|
|
|
104685
104933
|
}
|
|
104686
104934
|
clearTimeout(this.deadlineTimer);
|
|
104687
104935
|
const filteredStatus = this.filterStack.receiveTrailers(status2);
|
|
104688
|
-
this.
|
|
104936
|
+
if (this.traceEnabled) {
|
|
104937
|
+
this.trace("ended with status: code=" + filteredStatus.code + ' details="' + filteredStatus.details + '"');
|
|
104938
|
+
}
|
|
104689
104939
|
this.statusWatchers.forEach((watcher) => watcher(filteredStatus));
|
|
104690
104940
|
process.nextTick(() => {
|
|
104691
104941
|
var _a2;
|
|
@@ -104706,7 +104956,8 @@ var require_resolving_call = __commonJS({
|
|
|
104706
104956
|
child.halfClose();
|
|
104707
104957
|
}
|
|
104708
104958
|
}, (status2) => {
|
|
104709
|
-
|
|
104959
|
+
var _a2, _b2;
|
|
104960
|
+
this.cancelWithStatus((_a2 = status2.code) !== null && _a2 !== void 0 ? _a2 : constants_1.Status.INTERNAL, (_b2 = status2.details) !== null && _b2 !== void 0 ? _b2 : "Failed to write message");
|
|
104710
104961
|
});
|
|
104711
104962
|
}
|
|
104712
104963
|
getConfig() {
|
|
@@ -104749,8 +105000,10 @@ var require_resolving_call = __commonJS({
|
|
|
104749
105000
|
this.filterStackFactory.push(config.dynamicFilterFactories);
|
|
104750
105001
|
this.filterStack = this.filterStackFactory.createFilter();
|
|
104751
105002
|
this.filterStack.sendMetadata(Promise.resolve(this.metadata)).then((filteredMetadata) => {
|
|
104752
|
-
this.child = this.channel.createRetryingCall(config, this.method, this.host, this.credentials, this.deadline);
|
|
104753
|
-
|
|
105003
|
+
this.child = this.channel.createRetryingCall(config, this.method, this.host, this.credentials, this.deadline, this.callNumber);
|
|
105004
|
+
if (this.traceEnabled) {
|
|
105005
|
+
this.trace("Created child [" + this.child.getCallNumber() + "]");
|
|
105006
|
+
}
|
|
104754
105007
|
this.childStartTime = /* @__PURE__ */ new Date();
|
|
104755
105008
|
this.child.start(filteredMetadata, {
|
|
104756
105009
|
onReceiveMetadata: (metadata) => {
|
|
@@ -104802,7 +105055,9 @@ var require_resolving_call = __commonJS({
|
|
|
104802
105055
|
}
|
|
104803
105056
|
cancelWithStatus(status2, details) {
|
|
104804
105057
|
var _a2;
|
|
104805
|
-
this.
|
|
105058
|
+
if (this.traceEnabled) {
|
|
105059
|
+
this.trace("cancelWithStatus code: " + status2 + ' details: "' + details + '"');
|
|
105060
|
+
}
|
|
104806
105061
|
(_a2 = this.child) === null || _a2 === void 0 ? void 0 : _a2.cancelWithStatus(status2, details);
|
|
104807
105062
|
this.outputStatus({
|
|
104808
105063
|
code: status2,
|
|
@@ -104821,7 +105076,9 @@ var require_resolving_call = __commonJS({
|
|
|
104821
105076
|
this.getConfig();
|
|
104822
105077
|
}
|
|
104823
105078
|
sendMessageWithContext(context, message) {
|
|
104824
|
-
this.
|
|
105079
|
+
if (this.traceEnabled) {
|
|
105080
|
+
this.trace("write() called with message of length " + message.length);
|
|
105081
|
+
}
|
|
104825
105082
|
if (this.child) {
|
|
104826
105083
|
this.sendMessageOnChild(context, message);
|
|
104827
105084
|
} else {
|
|
@@ -104865,9 +105122,9 @@ var require_resolving_call = __commonJS({
|
|
|
104865
105122
|
}
|
|
104866
105123
|
});
|
|
104867
105124
|
|
|
104868
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
105125
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/retrying-call.js
|
|
104869
105126
|
var require_retrying_call = __commonJS({
|
|
104870
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
105127
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/retrying-call.js"(exports) {
|
|
104871
105128
|
"use strict";
|
|
104872
105129
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
104873
105130
|
exports.RetryingCall = exports.MessageBufferTracker = exports.RetryThrottler = void 0;
|
|
@@ -104875,6 +105132,7 @@ var require_retrying_call = __commonJS({
|
|
|
104875
105132
|
var deadline_1 = require_deadline();
|
|
104876
105133
|
var metadata_1 = require_metadata();
|
|
104877
105134
|
var logging = require_logging();
|
|
105135
|
+
var call_number_1 = require_call_number();
|
|
104878
105136
|
var TRACER_NAME = "retrying_call";
|
|
104879
105137
|
var RetryThrottler = class {
|
|
104880
105138
|
constructor(maxTokens, tokenRatio, previousRetryThrottler) {
|
|
@@ -104999,11 +105257,18 @@ var require_retrying_call = __commonJS({
|
|
|
104999
105257
|
getCallNumber() {
|
|
105000
105258
|
return this.callNumber;
|
|
105001
105259
|
}
|
|
105260
|
+
get traceEnabled() {
|
|
105261
|
+
return logging.isTracerEnabled(TRACER_NAME);
|
|
105262
|
+
}
|
|
105002
105263
|
trace(text4) {
|
|
105003
|
-
|
|
105264
|
+
if (this.traceEnabled) {
|
|
105265
|
+
logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, "[" + this.callNumber + "] " + text4);
|
|
105266
|
+
}
|
|
105004
105267
|
}
|
|
105005
105268
|
reportStatus(statusObject) {
|
|
105006
|
-
|
|
105269
|
+
if (this.traceEnabled) {
|
|
105270
|
+
this.trace("ended with status: code=" + statusObject.code + ' details="' + statusObject.details + '" start time=' + this.startTime.toISOString());
|
|
105271
|
+
}
|
|
105007
105272
|
this.bufferTracker.freeAll(this.callNumber);
|
|
105008
105273
|
this.writeBufferOffset = this.writeBufferOffset + this.writeBuffer.length;
|
|
105009
105274
|
this.writeBuffer = [];
|
|
@@ -105017,7 +105282,9 @@ var require_retrying_call = __commonJS({
|
|
|
105017
105282
|
});
|
|
105018
105283
|
}
|
|
105019
105284
|
cancelWithStatus(status2, details) {
|
|
105020
|
-
this.
|
|
105285
|
+
if (this.traceEnabled) {
|
|
105286
|
+
this.trace("cancelWithStatus code: " + status2 + ' details: "' + details + '"');
|
|
105287
|
+
}
|
|
105021
105288
|
this.reportStatus({ code: status2, details, metadata: new metadata_1.Metadata() });
|
|
105022
105289
|
for (const { call } of this.underlyingCalls) {
|
|
105023
105290
|
call.cancelWithStatus(status2, details);
|
|
@@ -105064,7 +105331,9 @@ var require_retrying_call = __commonJS({
|
|
|
105064
105331
|
if (this.state === "COMMITTED") {
|
|
105065
105332
|
return;
|
|
105066
105333
|
}
|
|
105067
|
-
|
|
105334
|
+
if (this.traceEnabled) {
|
|
105335
|
+
this.trace("Committing call [" + this.underlyingCalls[index].call.getCallNumber() + "] at index " + index);
|
|
105336
|
+
}
|
|
105068
105337
|
this.state = "COMMITTED";
|
|
105069
105338
|
(_b2 = (_a2 = this.callConfig).onCommitted) === null || _b2 === void 0 ? void 0 : _b2.call(_a2);
|
|
105070
105339
|
this.committedCallIndex = index;
|
|
@@ -105231,7 +105500,9 @@ var require_retrying_call = __commonJS({
|
|
|
105231
105500
|
if (this.underlyingCalls[callIndex].state === "COMPLETED") {
|
|
105232
105501
|
return;
|
|
105233
105502
|
}
|
|
105234
|
-
|
|
105503
|
+
if (this.traceEnabled) {
|
|
105504
|
+
this.trace("state=" + this.state + " handling status with progress " + status2.progress + " from child [" + this.underlyingCalls[callIndex].call.getCallNumber() + "] in state " + this.underlyingCalls[callIndex].state);
|
|
105505
|
+
}
|
|
105235
105506
|
this.underlyingCalls[callIndex].state = "COMPLETED";
|
|
105236
105507
|
if (status2.code === constants_1.Status.OK) {
|
|
105237
105508
|
(_a2 = this.retryThrottler) === null || _a2 === void 0 ? void 0 : _a2.addCallSucceeded();
|
|
@@ -105307,8 +105578,11 @@ var require_retrying_call = __commonJS({
|
|
|
105307
105578
|
(_c = (_b2 = this.hedgingTimer).unref) === null || _c === void 0 ? void 0 : _c.call(_b2);
|
|
105308
105579
|
}
|
|
105309
105580
|
startNewAttempt() {
|
|
105310
|
-
const
|
|
105311
|
-
|
|
105581
|
+
const childCallNumber = this.underlyingCalls.length > 0 ? (0, call_number_1.getNextCallNumber)() : this.callNumber;
|
|
105582
|
+
const child = this.channel.createLoadBalancingCall(this.callConfig, this.methodName, this.host, this.credentials, this.deadline, childCallNumber);
|
|
105583
|
+
if (this.traceEnabled) {
|
|
105584
|
+
this.trace("Created child call [" + child.getCallNumber() + "] for attempt " + this.attempts);
|
|
105585
|
+
}
|
|
105312
105586
|
const index = this.underlyingCalls.length;
|
|
105313
105587
|
this.underlyingCalls.push({
|
|
105314
105588
|
state: "ACTIVE",
|
|
@@ -105324,7 +105598,9 @@ var require_retrying_call = __commonJS({
|
|
|
105324
105598
|
let receivedMetadata = false;
|
|
105325
105599
|
child.start(initialMetadata, {
|
|
105326
105600
|
onReceiveMetadata: (metadata) => {
|
|
105327
|
-
this.
|
|
105601
|
+
if (this.traceEnabled) {
|
|
105602
|
+
this.trace("Received metadata from child [" + child.getCallNumber() + "]");
|
|
105603
|
+
}
|
|
105328
105604
|
this.commitCall(index);
|
|
105329
105605
|
receivedMetadata = true;
|
|
105330
105606
|
if (previousAttempts > 0) {
|
|
@@ -105335,14 +105611,18 @@ var require_retrying_call = __commonJS({
|
|
|
105335
105611
|
}
|
|
105336
105612
|
},
|
|
105337
105613
|
onReceiveMessage: (message) => {
|
|
105338
|
-
this.
|
|
105614
|
+
if (this.traceEnabled) {
|
|
105615
|
+
this.trace("Received message from child [" + child.getCallNumber() + "]");
|
|
105616
|
+
}
|
|
105339
105617
|
this.commitCall(index);
|
|
105340
105618
|
if (this.underlyingCalls[index].state === "ACTIVE") {
|
|
105341
105619
|
this.listener.onReceiveMessage(message);
|
|
105342
105620
|
}
|
|
105343
105621
|
},
|
|
105344
105622
|
onReceiveStatus: (status2) => {
|
|
105345
|
-
this.
|
|
105623
|
+
if (this.traceEnabled) {
|
|
105624
|
+
this.trace("Received status from child [" + child.getCallNumber() + "]");
|
|
105625
|
+
}
|
|
105346
105626
|
if (!receivedMetadata && previousAttempts > 0) {
|
|
105347
105627
|
status2.metadata.set(PREVIONS_RPC_ATTEMPTS_METADATA_KEY, `${previousAttempts}`);
|
|
105348
105628
|
}
|
|
@@ -105387,7 +105667,9 @@ var require_retrying_call = __commonJS({
|
|
|
105387
105667
|
}, bufferEntry.message.message);
|
|
105388
105668
|
const nextEntry = this.getBufferEntry(messageIndex + 1);
|
|
105389
105669
|
if (nextEntry.entryType === "HALF_CLOSE") {
|
|
105390
|
-
this.
|
|
105670
|
+
if (this.traceEnabled) {
|
|
105671
|
+
this.trace("Sending halfClose immediately after message to child [" + childCall.call.getCallNumber() + "] - optimizing for unary/final message");
|
|
105672
|
+
}
|
|
105391
105673
|
childCall.nextMessageToSend += 1;
|
|
105392
105674
|
childCall.call.halfClose();
|
|
105393
105675
|
}
|
|
@@ -105402,7 +105684,9 @@ var require_retrying_call = __commonJS({
|
|
|
105402
105684
|
}
|
|
105403
105685
|
}
|
|
105404
105686
|
sendMessageWithContext(context, message) {
|
|
105405
|
-
this.
|
|
105687
|
+
if (this.traceEnabled) {
|
|
105688
|
+
this.trace("write() called with message of length " + message.length);
|
|
105689
|
+
}
|
|
105406
105690
|
const writeObj = {
|
|
105407
105691
|
message,
|
|
105408
105692
|
flags: context.flags
|
|
@@ -105463,7 +105747,9 @@ var require_retrying_call = __commonJS({
|
|
|
105463
105747
|
for (const call of this.underlyingCalls) {
|
|
105464
105748
|
if ((call === null || call === void 0 ? void 0 : call.state) === "ACTIVE") {
|
|
105465
105749
|
if (call.nextMessageToSend === halfCloseIndex || call.nextMessageToSend === halfCloseIndex - 1) {
|
|
105466
|
-
this.
|
|
105750
|
+
if (this.traceEnabled) {
|
|
105751
|
+
this.trace("Sending halfClose immediately to child [" + call.call.getCallNumber() + "] - all messages already sent");
|
|
105752
|
+
}
|
|
105467
105753
|
call.nextMessageToSend += 1;
|
|
105468
105754
|
call.call.halfClose();
|
|
105469
105755
|
}
|
|
@@ -105491,9 +105777,9 @@ var require_retrying_call = __commonJS({
|
|
|
105491
105777
|
}
|
|
105492
105778
|
});
|
|
105493
105779
|
|
|
105494
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
105780
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel-interface.js
|
|
105495
105781
|
var require_subchannel_interface = __commonJS({
|
|
105496
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
105782
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel-interface.js"(exports) {
|
|
105497
105783
|
"use strict";
|
|
105498
105784
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
105499
105785
|
exports.BaseSubchannelWrapper = void 0;
|
|
@@ -105590,9 +105876,9 @@ var require_subchannel_interface = __commonJS({
|
|
|
105590
105876
|
}
|
|
105591
105877
|
});
|
|
105592
105878
|
|
|
105593
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
105879
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/internal-channel.js
|
|
105594
105880
|
var require_internal_channel = __commonJS({
|
|
105595
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
105881
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/internal-channel.js"(exports) {
|
|
105596
105882
|
"use strict";
|
|
105597
105883
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
105598
105884
|
exports.InternalChannel = exports.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX = void 0;
|
|
@@ -105693,7 +105979,7 @@ var require_internal_channel = __commonJS({
|
|
|
105693
105979
|
this.connectivityState = connectivity_state_1.ConnectivityState.IDLE;
|
|
105694
105980
|
this.currentPicker = new picker_1.UnavailablePicker();
|
|
105695
105981
|
this.configSelectionQueue = [];
|
|
105696
|
-
this.pickQueue =
|
|
105982
|
+
this.pickQueue = /* @__PURE__ */ new Set();
|
|
105697
105983
|
this.connectivityStateWatchers = [];
|
|
105698
105984
|
this.callRefTimer = null;
|
|
105699
105985
|
this.configSelector = null;
|
|
@@ -105760,9 +106046,9 @@ var require_internal_channel = __commonJS({
|
|
|
105760
106046
|
},
|
|
105761
106047
|
updateState: (connectivityState, picker) => {
|
|
105762
106048
|
this.currentPicker = picker;
|
|
105763
|
-
const queueCopy = this.pickQueue
|
|
105764
|
-
this.pickQueue =
|
|
105765
|
-
if (queueCopy.
|
|
106049
|
+
const queueCopy = this.pickQueue;
|
|
106050
|
+
this.pickQueue = /* @__PURE__ */ new Set();
|
|
106051
|
+
if (queueCopy.size > 0) {
|
|
105766
106052
|
this.callRefTimerUnref();
|
|
105767
106053
|
}
|
|
105768
106054
|
for (const call of queueCopy) {
|
|
@@ -105829,15 +106115,22 @@ var require_internal_channel = __commonJS({
|
|
|
105829
106115
|
this.filterStackFactory = new filter_stack_1.FilterStackFactory([
|
|
105830
106116
|
new compression_filter_1.CompressionFilterFactory(this, this.options)
|
|
105831
106117
|
]);
|
|
105832
|
-
this.
|
|
105833
|
-
|
|
106118
|
+
if (this.traceEnabled) {
|
|
106119
|
+
this.trace("Channel constructed with options " + JSON.stringify(options, void 0, 2));
|
|
106120
|
+
}
|
|
105834
106121
|
if ((0, logging_1.isTracerEnabled)("channel_stacktrace")) {
|
|
106122
|
+
const error = new Error();
|
|
105835
106123
|
(0, logging_1.trace)(constants_1.LogVerbosity.DEBUG, "channel_stacktrace", "(" + this.channelzRef.id + ") Channel constructed \n" + ((_f = error.stack) === null || _f === void 0 ? void 0 : _f.substring(error.stack.indexOf("\n") + 1)));
|
|
105836
106124
|
}
|
|
105837
106125
|
this.lastActivityTimestamp = /* @__PURE__ */ new Date();
|
|
105838
106126
|
}
|
|
106127
|
+
get traceEnabled() {
|
|
106128
|
+
return (0, logging_1.isTracerEnabled)("channel");
|
|
106129
|
+
}
|
|
105839
106130
|
trace(text4, verbosityOverride) {
|
|
105840
|
-
|
|
106131
|
+
if (this.traceEnabled) {
|
|
106132
|
+
(0, logging_1.trace)(verbosityOverride !== null && verbosityOverride !== void 0 ? verbosityOverride : constants_1.LogVerbosity.DEBUG, "channel", "(" + this.channelzRef.id + ") " + (0, uri_parser_1.uriToString)(this.target) + " " + text4);
|
|
106133
|
+
}
|
|
105841
106134
|
}
|
|
105842
106135
|
callRefTimerRef() {
|
|
105843
106136
|
var _a2, _b2, _c, _d;
|
|
@@ -105846,14 +106139,18 @@ var require_internal_channel = __commonJS({
|
|
|
105846
106139
|
}, MAX_TIMEOUT_TIME);
|
|
105847
106140
|
}
|
|
105848
106141
|
if (!((_b2 = (_a2 = this.callRefTimer).hasRef) === null || _b2 === void 0 ? void 0 : _b2.call(_a2))) {
|
|
105849
|
-
|
|
106142
|
+
if (this.traceEnabled) {
|
|
106143
|
+
this.trace("callRefTimer.ref | configSelectionQueue.length=" + this.configSelectionQueue.length + " pickQueue.length=" + this.pickQueue.size);
|
|
106144
|
+
}
|
|
105850
106145
|
(_d = (_c = this.callRefTimer).ref) === null || _d === void 0 ? void 0 : _d.call(_c);
|
|
105851
106146
|
}
|
|
105852
106147
|
}
|
|
105853
106148
|
callRefTimerUnref() {
|
|
105854
106149
|
var _a2, _b2, _c;
|
|
105855
106150
|
if (!((_a2 = this.callRefTimer) === null || _a2 === void 0 ? void 0 : _a2.hasRef) || this.callRefTimer.hasRef()) {
|
|
105856
|
-
|
|
106151
|
+
if (this.traceEnabled) {
|
|
106152
|
+
this.trace("callRefTimer.unref | configSelectionQueue.length=" + this.configSelectionQueue.length + " pickQueue.length=" + this.pickQueue.size);
|
|
106153
|
+
}
|
|
105857
106154
|
(_c = (_b2 = this.callRefTimer) === null || _b2 === void 0 ? void 0 : _b2.unref) === null || _c === void 0 ? void 0 : _c.call(_b2);
|
|
105858
106155
|
}
|
|
105859
106156
|
}
|
|
@@ -105905,9 +106202,15 @@ var require_internal_channel = __commonJS({
|
|
|
105905
106202
|
});
|
|
105906
106203
|
}
|
|
105907
106204
|
queueCallForPick(call) {
|
|
105908
|
-
this.pickQueue.
|
|
106205
|
+
this.pickQueue.add(call);
|
|
105909
106206
|
this.callRefTimerRef();
|
|
105910
106207
|
}
|
|
106208
|
+
removeCallFromPickQueue(call) {
|
|
106209
|
+
this.pickQueue.delete(call);
|
|
106210
|
+
if (this.pickQueue.size === 0) {
|
|
106211
|
+
this.callRefTimerUnref();
|
|
106212
|
+
}
|
|
106213
|
+
}
|
|
105911
106214
|
getConfig(method, metadata) {
|
|
105912
106215
|
if (this.connectivityState !== connectivity_state_1.ConnectivityState.SHUTDOWN) {
|
|
105913
106216
|
this.resolvingLoadBalancer.exitIdle();
|
|
@@ -105988,19 +106291,25 @@ var require_internal_channel = __commonJS({
|
|
|
105988
106291
|
this.lastActivityTimestamp = /* @__PURE__ */ new Date();
|
|
105989
106292
|
this.maybeStartIdleTimer();
|
|
105990
106293
|
}
|
|
105991
|
-
createLoadBalancingCall(callConfig, method, host, credentials2, deadline) {
|
|
105992
|
-
const
|
|
105993
|
-
this.
|
|
105994
|
-
|
|
106294
|
+
createLoadBalancingCall(callConfig, method, host, credentials2, deadline, callNumber) {
|
|
106295
|
+
const finalCallNumber = callNumber !== null && callNumber !== void 0 ? callNumber : (0, call_number_1.getNextCallNumber)();
|
|
106296
|
+
if (this.traceEnabled) {
|
|
106297
|
+
this.trace("createLoadBalancingCall [" + finalCallNumber + '] method="' + method + '"');
|
|
106298
|
+
}
|
|
106299
|
+
return new load_balancing_call_1.LoadBalancingCall(this, callConfig, method, host, credentials2, deadline, finalCallNumber);
|
|
105995
106300
|
}
|
|
105996
|
-
createRetryingCall(callConfig, method, host, credentials2, deadline) {
|
|
105997
|
-
const
|
|
105998
|
-
this.
|
|
105999
|
-
|
|
106301
|
+
createRetryingCall(callConfig, method, host, credentials2, deadline, callNumber) {
|
|
106302
|
+
const finalCallNumber = callNumber !== null && callNumber !== void 0 ? callNumber : (0, call_number_1.getNextCallNumber)();
|
|
106303
|
+
if (this.traceEnabled) {
|
|
106304
|
+
this.trace("createRetryingCall [" + finalCallNumber + '] method="' + method + '"');
|
|
106305
|
+
}
|
|
106306
|
+
return new retrying_call_1.RetryingCall(this, callConfig, method, host, credentials2, deadline, finalCallNumber, this.retryBufferTracker, RETRY_THROTTLER_MAP.get(this.getTarget()));
|
|
106000
106307
|
}
|
|
106001
106308
|
createResolvingCall(method, deadline, host, parentCall, propagateFlags) {
|
|
106002
106309
|
const callNumber = (0, call_number_1.getNextCallNumber)();
|
|
106003
|
-
|
|
106310
|
+
if (this.traceEnabled) {
|
|
106311
|
+
this.trace("createResolvingCall [" + callNumber + '] method="' + method + '", deadline=' + (0, deadline_1.deadlineToString)(deadline));
|
|
106312
|
+
}
|
|
106004
106313
|
const finalOptions = {
|
|
106005
106314
|
deadline,
|
|
106006
106315
|
flags: propagateFlags !== null && propagateFlags !== void 0 ? propagateFlags : constants_1.Propagate.DEFAULTS,
|
|
@@ -106026,7 +106335,7 @@ var require_internal_channel = __commonJS({
|
|
|
106026
106335
|
for (const call of this.pickQueue) {
|
|
106027
106336
|
call.cancelWithStatus(constants_1.Status.UNAVAILABLE, "Channel closed before call started");
|
|
106028
106337
|
}
|
|
106029
|
-
this.pickQueue
|
|
106338
|
+
this.pickQueue.clear();
|
|
106030
106339
|
if (this.callRefTimer) {
|
|
106031
106340
|
clearInterval(this.callRefTimer);
|
|
106032
106341
|
}
|
|
@@ -106104,9 +106413,9 @@ var require_internal_channel = __commonJS({
|
|
|
106104
106413
|
}
|
|
106105
106414
|
});
|
|
106106
106415
|
|
|
106107
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
106416
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/channel.js
|
|
106108
106417
|
var require_channel = __commonJS({
|
|
106109
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
106418
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/channel.js"(exports) {
|
|
106110
106419
|
"use strict";
|
|
106111
106420
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
106112
106421
|
exports.ChannelImplementation = void 0;
|
|
@@ -106161,9 +106470,9 @@ var require_channel = __commonJS({
|
|
|
106161
106470
|
}
|
|
106162
106471
|
});
|
|
106163
106472
|
|
|
106164
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
106473
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/server-call.js
|
|
106165
106474
|
var require_server_call = __commonJS({
|
|
106166
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
106475
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/server-call.js"(exports) {
|
|
106167
106476
|
"use strict";
|
|
106168
106477
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
106169
106478
|
exports.ServerDuplexStreamImpl = exports.ServerWritableStreamImpl = exports.ServerReadableStreamImpl = exports.ServerUnaryCallImpl = void 0;
|
|
@@ -106370,9 +106679,9 @@ var require_server_call = __commonJS({
|
|
|
106370
106679
|
}
|
|
106371
106680
|
});
|
|
106372
106681
|
|
|
106373
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
106682
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/server-credentials.js
|
|
106374
106683
|
var require_server_credentials = __commonJS({
|
|
106375
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
106684
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/server-credentials.js"(exports) {
|
|
106376
106685
|
"use strict";
|
|
106377
106686
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
106378
106687
|
exports.ServerCredentials = void 0;
|
|
@@ -106660,9 +106969,9 @@ var require_server_credentials = __commonJS({
|
|
|
106660
106969
|
}
|
|
106661
106970
|
});
|
|
106662
106971
|
|
|
106663
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
106972
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/duration.js
|
|
106664
106973
|
var require_duration = __commonJS({
|
|
106665
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
106974
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/duration.js"(exports) {
|
|
106666
106975
|
"use strict";
|
|
106667
106976
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
106668
106977
|
exports.durationMessageToDuration = durationMessageToDuration;
|
|
@@ -106721,9 +107030,9 @@ var require_duration = __commonJS({
|
|
|
106721
107030
|
}
|
|
106722
107031
|
});
|
|
106723
107032
|
|
|
106724
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
107033
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/orca.js
|
|
106725
107034
|
var require_orca = __commonJS({
|
|
106726
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
107035
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/orca.js"(exports) {
|
|
106727
107036
|
"use strict";
|
|
106728
107037
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
106729
107038
|
exports.OrcaOobMetricsSubchannelWrapper = exports.GRPC_METRICS_HEADER = exports.ServerMetricRecorder = exports.PerRequestMetricRecorder = void 0;
|
|
@@ -107016,9 +107325,9 @@ var require_orca = __commonJS({
|
|
|
107016
107325
|
}
|
|
107017
107326
|
});
|
|
107018
107327
|
|
|
107019
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
107328
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/server-interceptors.js
|
|
107020
107329
|
var require_server_interceptors = __commonJS({
|
|
107021
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
107330
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/server-interceptors.js"(exports) {
|
|
107022
107331
|
"use strict";
|
|
107023
107332
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
107024
107333
|
exports.BaseServerInterceptingCall = exports.ServerInterceptingCall = exports.ResponderBuilder = exports.ServerListenerBuilder = void 0;
|
|
@@ -107734,15 +108043,17 @@ var require_server_interceptors = __commonJS({
|
|
|
107734
108043
|
}
|
|
107735
108044
|
getAuthContext() {
|
|
107736
108045
|
var _a2;
|
|
107737
|
-
if (((_a2 = this.stream.session) === null || _a2 === void 0 ? void 0 : _a2.socket) instanceof tls_1.TLSSocket) {
|
|
107738
|
-
const peerCertificate = this.stream.session.socket.getPeerCertificate();
|
|
107739
|
-
return {
|
|
107740
|
-
transportSecurityType: "ssl",
|
|
107741
|
-
sslPeerCertificate: peerCertificate.raw ? peerCertificate : void 0
|
|
107742
|
-
};
|
|
107743
|
-
} else {
|
|
108046
|
+
if (!(((_a2 = this.stream.session) === null || _a2 === void 0 ? void 0 : _a2.socket) instanceof tls_1.TLSSocket)) {
|
|
107744
108047
|
return {};
|
|
107745
108048
|
}
|
|
108049
|
+
if (!this.stream.session.socket.authorized) {
|
|
108050
|
+
return {};
|
|
108051
|
+
}
|
|
108052
|
+
const peerCertificate = this.stream.session.socket.getPeerCertificate();
|
|
108053
|
+
return {
|
|
108054
|
+
transportSecurityType: "ssl",
|
|
108055
|
+
sslPeerCertificate: peerCertificate.raw ? peerCertificate : void 0
|
|
108056
|
+
};
|
|
107746
108057
|
}
|
|
107747
108058
|
getConnectionInfo() {
|
|
107748
108059
|
return this.connectionInfo;
|
|
@@ -107768,9 +108079,9 @@ var require_server_interceptors = __commonJS({
|
|
|
107768
108079
|
}
|
|
107769
108080
|
});
|
|
107770
108081
|
|
|
107771
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
108082
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/server.js
|
|
107772
108083
|
var require_server = __commonJS({
|
|
107773
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
108084
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/server.js"(exports) {
|
|
107774
108085
|
"use strict";
|
|
107775
108086
|
var __runInitializers = exports && exports.__runInitializers || function(thisArg, initializers, value) {
|
|
107776
108087
|
var useValue = arguments.length > 2;
|
|
@@ -107824,6 +108135,7 @@ var require_server = __commonJS({
|
|
|
107824
108135
|
var uri_parser_1 = require_uri_parser();
|
|
107825
108136
|
var channelz_1 = require_channelz();
|
|
107826
108137
|
var server_interceptors_1 = require_server_interceptors();
|
|
108138
|
+
var environment_1 = require_environment();
|
|
107827
108139
|
var UNLIMITED_CONNECTION_AGE_MS = ~(1 << 31);
|
|
107828
108140
|
var KEEPALIVE_MAX_TIME_MS = ~(1 << 31);
|
|
107829
108141
|
var KEEPALIVE_TIMEOUT_MS = 2e4;
|
|
@@ -109077,9 +109389,15 @@ var require_server = __commonJS({
|
|
|
109077
109389
|
try {
|
|
109078
109390
|
handler.func(stream, respond);
|
|
109079
109391
|
} catch (err2) {
|
|
109392
|
+
let details;
|
|
109393
|
+
if (environment_1.GRPC_NODE_DEBUG_SEND_ERROR_DETAILS) {
|
|
109394
|
+
details = `Server method handler threw error ${err2.message}`;
|
|
109395
|
+
} else {
|
|
109396
|
+
details = "Unknown error";
|
|
109397
|
+
}
|
|
109080
109398
|
call.sendStatus({
|
|
109081
109399
|
code: constants_1.Status.UNKNOWN,
|
|
109082
|
-
details
|
|
109400
|
+
details,
|
|
109083
109401
|
metadata: null
|
|
109084
109402
|
});
|
|
109085
109403
|
}
|
|
@@ -109113,9 +109431,15 @@ var require_server = __commonJS({
|
|
|
109113
109431
|
try {
|
|
109114
109432
|
handler.func(stream, respond);
|
|
109115
109433
|
} catch (err2) {
|
|
109434
|
+
let details;
|
|
109435
|
+
if (environment_1.GRPC_NODE_DEBUG_SEND_ERROR_DETAILS) {
|
|
109436
|
+
details = `Server method handler threw error ${err2.message}`;
|
|
109437
|
+
} else {
|
|
109438
|
+
details = "Unknown error";
|
|
109439
|
+
}
|
|
109116
109440
|
call.sendStatus({
|
|
109117
109441
|
code: constants_1.Status.UNKNOWN,
|
|
109118
|
-
details
|
|
109442
|
+
details,
|
|
109119
109443
|
metadata: null
|
|
109120
109444
|
});
|
|
109121
109445
|
}
|
|
@@ -109169,9 +109493,15 @@ var require_server = __commonJS({
|
|
|
109169
109493
|
try {
|
|
109170
109494
|
handler.func(stream);
|
|
109171
109495
|
} catch (err2) {
|
|
109496
|
+
let details;
|
|
109497
|
+
if (environment_1.GRPC_NODE_DEBUG_SEND_ERROR_DETAILS) {
|
|
109498
|
+
details = `Server method handler threw error ${err2.message}`;
|
|
109499
|
+
} else {
|
|
109500
|
+
details = "Unknown error";
|
|
109501
|
+
}
|
|
109172
109502
|
call.sendStatus({
|
|
109173
109503
|
code: constants_1.Status.UNKNOWN,
|
|
109174
|
-
details
|
|
109504
|
+
details,
|
|
109175
109505
|
metadata: null
|
|
109176
109506
|
});
|
|
109177
109507
|
}
|
|
@@ -109193,9 +109523,15 @@ var require_server = __commonJS({
|
|
|
109193
109523
|
try {
|
|
109194
109524
|
handler.func(stream);
|
|
109195
109525
|
} catch (err2) {
|
|
109526
|
+
let details;
|
|
109527
|
+
if (environment_1.GRPC_NODE_DEBUG_SEND_ERROR_DETAILS) {
|
|
109528
|
+
details = `Server method handler threw error ${err2.message}`;
|
|
109529
|
+
} else {
|
|
109530
|
+
details = "Unknown error";
|
|
109531
|
+
}
|
|
109196
109532
|
call.sendStatus({
|
|
109197
109533
|
code: constants_1.Status.UNKNOWN,
|
|
109198
|
-
details
|
|
109534
|
+
details,
|
|
109199
109535
|
metadata: null
|
|
109200
109536
|
});
|
|
109201
109537
|
}
|
|
@@ -109218,9 +109554,9 @@ var require_server = __commonJS({
|
|
|
109218
109554
|
}
|
|
109219
109555
|
});
|
|
109220
109556
|
|
|
109221
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
109557
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/status-builder.js
|
|
109222
109558
|
var require_status_builder = __commonJS({
|
|
109223
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
109559
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/status-builder.js"(exports) {
|
|
109224
109560
|
"use strict";
|
|
109225
109561
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
109226
109562
|
exports.StatusBuilder = void 0;
|
|
@@ -109272,9 +109608,9 @@ var require_status_builder = __commonJS({
|
|
|
109272
109608
|
}
|
|
109273
109609
|
});
|
|
109274
109610
|
|
|
109275
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
109611
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js
|
|
109276
109612
|
var require_load_balancer_pick_first = __commonJS({
|
|
109277
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
109613
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js"(exports) {
|
|
109278
109614
|
"use strict";
|
|
109279
109615
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
109280
109616
|
exports.LeafLoadBalancer = exports.PickFirstLoadBalancer = exports.PickFirstLoadBalancingConfig = void 0;
|
|
@@ -109691,9 +110027,9 @@ var require_load_balancer_pick_first = __commonJS({
|
|
|
109691
110027
|
}
|
|
109692
110028
|
});
|
|
109693
110029
|
|
|
109694
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
110030
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/certificate-provider.js
|
|
109695
110031
|
var require_certificate_provider = __commonJS({
|
|
109696
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
110032
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/certificate-provider.js"(exports) {
|
|
109697
110033
|
"use strict";
|
|
109698
110034
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
109699
110035
|
exports.FileWatcherCertificateProvider = void 0;
|
|
@@ -109814,9 +110150,9 @@ var require_certificate_provider = __commonJS({
|
|
|
109814
110150
|
}
|
|
109815
110151
|
});
|
|
109816
110152
|
|
|
109817
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
110153
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/experimental.js
|
|
109818
110154
|
var require_experimental = __commonJS({
|
|
109819
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
110155
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/experimental.js"(exports) {
|
|
109820
110156
|
"use strict";
|
|
109821
110157
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
109822
110158
|
exports.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX = exports.createCertificateProviderChannelCredentials = exports.FileWatcherCertificateProvider = exports.createCertificateProviderServerCredentials = exports.createServerCredentialsWithInterceptors = exports.BaseSubchannelWrapper = exports.registerAdminService = exports.FilterStackFactory = exports.BaseFilter = exports.statusOrFromError = exports.statusOrFromValue = exports.PickResultType = exports.QueuePicker = exports.UnavailablePicker = exports.ChildLoadBalancerHandler = exports.EndpointMap = exports.endpointHasAddress = exports.endpointToString = exports.subchannelAddressToString = exports.LeafLoadBalancer = exports.isLoadBalancerNameRegistered = exports.parseLoadBalancingConfig = exports.selectLbConfigFromList = exports.registerLoadBalancerType = exports.createChildChannelControlHelper = exports.BackoffTimeout = exports.parseDuration = exports.durationToMs = exports.splitHostPort = exports.uriToString = exports.CHANNEL_ARGS_CONFIG_SELECTOR_KEY = exports.createResolver = exports.registerResolver = exports.log = exports.trace = void 0;
|
|
@@ -109947,9 +110283,9 @@ var require_experimental = __commonJS({
|
|
|
109947
110283
|
}
|
|
109948
110284
|
});
|
|
109949
110285
|
|
|
109950
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
110286
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolver-uds.js
|
|
109951
110287
|
var require_resolver_uds = __commonJS({
|
|
109952
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
110288
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolver-uds.js"(exports) {
|
|
109953
110289
|
"use strict";
|
|
109954
110290
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
109955
110291
|
exports.setup = setup;
|
|
@@ -109987,9 +110323,9 @@ var require_resolver_uds = __commonJS({
|
|
|
109987
110323
|
}
|
|
109988
110324
|
});
|
|
109989
110325
|
|
|
109990
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
110326
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolver-ip.js
|
|
109991
110327
|
var require_resolver_ip = __commonJS({
|
|
109992
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
110328
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolver-ip.js"(exports) {
|
|
109993
110329
|
"use strict";
|
|
109994
110330
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
109995
110331
|
exports.setup = setup;
|
|
@@ -110078,9 +110414,9 @@ var require_resolver_ip = __commonJS({
|
|
|
110078
110414
|
}
|
|
110079
110415
|
});
|
|
110080
110416
|
|
|
110081
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
110417
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.js
|
|
110082
110418
|
var require_load_balancer_round_robin = __commonJS({
|
|
110083
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
110419
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.js"(exports) {
|
|
110084
110420
|
"use strict";
|
|
110085
110421
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
110086
110422
|
exports.RoundRobinLoadBalancer = void 0;
|
|
@@ -110253,9 +110589,9 @@ var require_load_balancer_round_robin = __commonJS({
|
|
|
110253
110589
|
}
|
|
110254
110590
|
});
|
|
110255
110591
|
|
|
110256
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
110592
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.js
|
|
110257
110593
|
var require_load_balancer_outlier_detection = __commonJS({
|
|
110258
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
110594
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.js"(exports) {
|
|
110259
110595
|
"use strict";
|
|
110260
110596
|
var _a2;
|
|
110261
110597
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -110750,9 +111086,9 @@ var require_load_balancer_outlier_detection = __commonJS({
|
|
|
110750
111086
|
}
|
|
110751
111087
|
});
|
|
110752
111088
|
|
|
110753
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
111089
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/priority-queue.js
|
|
110754
111090
|
var require_priority_queue = __commonJS({
|
|
110755
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
111091
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/priority-queue.js"(exports) {
|
|
110756
111092
|
"use strict";
|
|
110757
111093
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
110758
111094
|
exports.PriorityQueue = void 0;
|
|
@@ -110854,9 +111190,9 @@ var require_priority_queue = __commonJS({
|
|
|
110854
111190
|
}
|
|
110855
111191
|
});
|
|
110856
111192
|
|
|
110857
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
111193
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-weighted-round-robin.js
|
|
110858
111194
|
var require_load_balancer_weighted_round_robin = __commonJS({
|
|
110859
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
111195
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-weighted-round-robin.js"(exports) {
|
|
110860
111196
|
"use strict";
|
|
110861
111197
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
110862
111198
|
exports.WeightedRoundRobinLoadBalancingConfig = void 0;
|
|
@@ -111206,9 +111542,9 @@ var require_load_balancer_weighted_round_robin = __commonJS({
|
|
|
111206
111542
|
}
|
|
111207
111543
|
});
|
|
111208
111544
|
|
|
111209
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
111545
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/index.js
|
|
111210
111546
|
var require_src3 = __commonJS({
|
|
111211
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
111547
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/index.js"(exports) {
|
|
111212
111548
|
"use strict";
|
|
111213
111549
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
111214
111550
|
exports.experimental = exports.ServerMetricRecorder = exports.ServerInterceptingCall = exports.ResponderBuilder = exports.ServerListenerBuilder = exports.addAdminServicesToServer = exports.getChannelzHandlers = exports.getChannelzServiceDefinition = exports.InterceptorConfigurationError = exports.InterceptingCall = exports.RequesterBuilder = exports.ListenerBuilder = exports.StatusBuilder = exports.getClientChannel = exports.ServerCredentials = exports.Server = exports.setLogVerbosity = exports.setLogger = exports.load = exports.loadObject = exports.CallCredentials = exports.ChannelCredentials = exports.waitForClientReady = exports.closeClient = exports.Channel = exports.makeGenericClientConstructor = exports.makeClientConstructor = exports.loadPackageDefinition = exports.Client = exports.compressionAlgorithms = exports.propagate = exports.connectivityState = exports.status = exports.logVerbosity = exports.Metadata = exports.credentials = void 0;
|