@agentvault/grok-bridge 0.4.33 → 0.4.35
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/README.md +2 -1
- package/dist/grok-session.d.ts +37 -2
- package/dist/index.js +262 -105
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -78,7 +78,8 @@ The log holds one line per event, with codes and exit numbers only. It never hol
|
|
|
78
78
|
| `turn_failed code=<code> exit=<n or none>` | The turn failed. `exit` is the Grok CLI's exit status when it died mid-turn, otherwise `none`. A notice follows when the turn owed a reply. |
|
|
79
79
|
| `notice sent to <chat>` | The failure notice was delivered. |
|
|
80
80
|
| `notice_failed code=<code>` or `reason=timeout` | The failure notice could not be delivered. The failure is still recorded under Health. |
|
|
81
|
-
| `turn_cancelled reason=shutdown
|
|
81
|
+
| `turn_cancelled reason=shutdown notice=<sent, failed, timeout or none>` | The bridge was stopped or restarted (for example during an update) while this message was being answered or waiting its turn. Nothing replays it, so when the message owed a reply the chat gets the plain sentence "Ohtani couldn't answer this message." It never names a cause. `queued=true` marks a message that was still waiting, and `late=true` one that arrived while the bridge was stopping. `none` means the message did not owe a reply. The bridge waits at most 10 seconds for these sentences, so a stuck send cannot hold up the restart. Nothing is recorded under Health, because the model did not fail. |
|
|
82
|
+
| `turn_cancelled reason=terminal notice=none` | The device was revoked or its session was taken over, so the bridge stopped without posting anything. |
|
|
82
83
|
|
|
83
84
|
The Grok CLI's own error output can repeat the provider's error text, so the log records only its size and level (`grok: stderr lines=<n> bytes=<n> level=ERROR`). A failed start is logged the same way, by cause only: `fatal: grok did not start: code=<code> exit=<n or none> ...`. To see the CLI's own words, run `grok` by hand.
|
|
84
85
|
|
package/dist/grok-session.d.ts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { type ToolConversation, type ToolSpanSink } from "@agentvault/agentvault";
|
|
2
2
|
import type { TurnResult } from "./agent-driver.js";
|
|
3
3
|
/** A reply sink. `{ notice: true }` marks the #1560 failure notice: delivered
|
|
4
|
-
* to the same chat, but not recorded as the agent's own `say`.
|
|
4
|
+
* to the same chat, but not recorded as the agent's own `say`. A notice sink
|
|
5
|
+
* that logs its own send failure resolves `false` (#1583: so the session can
|
|
6
|
+
* tell `notice=failed` from `notice=sent`); anything else counts as sent. */
|
|
5
7
|
export type ReplySink = (text: string, opts?: {
|
|
6
8
|
notice?: boolean;
|
|
7
|
-
}) => Promise<void>;
|
|
9
|
+
}) => Promise<void | boolean>;
|
|
10
|
+
/** #1583: why the session was stopped. `shutdown` is our own stop or restart
|
|
11
|
+
* (SIGTERM, a fleet roll): owed turns are told. `terminal` is a revoked
|
|
12
|
+
* device or a session taken over: nothing is posted. */
|
|
13
|
+
export type StopReason = "shutdown" | "terminal";
|
|
8
14
|
/** What a pushed turn knows about where it came from. */
|
|
9
15
|
export interface PushOpts {
|
|
10
16
|
autoReplyOnText?: boolean;
|
|
@@ -40,6 +46,12 @@ export declare class GrokSession implements RoomSession {
|
|
|
40
46
|
private invalidated;
|
|
41
47
|
/** Review F3: the error that failed this session, once one has. */
|
|
42
48
|
private failure;
|
|
49
|
+
/** #1583: set by stop(), which logs each cancelled turn itself. */
|
|
50
|
+
private stoppedFor;
|
|
51
|
+
/** #1583 review M1: open only while a `shutdown` stop() waits on its
|
|
52
|
+
* notices. The channel is still up (and ACKing) then, so a message that
|
|
53
|
+
* lands in this window is told under the same cap, and stop() waits for it. */
|
|
54
|
+
private stopWindow;
|
|
43
55
|
/** The message whose turn is in flight, or null between turns. Null is a
|
|
44
56
|
* DISTINCT state from "a message that carries no reply sink" — conflating
|
|
45
57
|
* them is what let a post-turn say fall through to the session-level sink. */
|
|
@@ -85,6 +97,29 @@ export declare class GrokSession implements RoomSession {
|
|
|
85
97
|
sayHandler(): (text: string) => void;
|
|
86
98
|
/** Revoke output and future work BEFORE asynchronous process cleanup. */
|
|
87
99
|
invalidate(): void;
|
|
100
|
+
/**
|
|
101
|
+
* #1583: stop for good, BEFORE the process tears down. Revokes exactly like
|
|
102
|
+
* invalidate() (no later say leaves the device), then, for `shutdown`, tells
|
|
103
|
+
* every owed turn that will now never be answered: the one in flight and each
|
|
104
|
+
* one queued behind it. Nothing replays them after a restart.
|
|
105
|
+
*
|
|
106
|
+
* Always the BARE sentence, even in a 1:1: a shutdown is not the model's
|
|
107
|
+
* failure, so there is no cause to tell, and no `model_turn` span. "Owed" is
|
|
108
|
+
* the #1560 rule (`autoReplyOnText`): an addressed room turn or an attested
|
|
109
|
+
* 1:1, never an unaddressed room turn or an unattested DM.
|
|
110
|
+
*
|
|
111
|
+
* The notices go out together under ONE cap, so this resolves within
|
|
112
|
+
* `noticeTimeoutMs` even if every send hangs. Call it before channel.stop()
|
|
113
|
+
* closes the socket. Idempotent; a no-op once a failed turn has already
|
|
114
|
+
* invalidated the session (that path told its chats itself). Never throws.
|
|
115
|
+
*/
|
|
116
|
+
stop(opts: {
|
|
117
|
+
reason: StopReason;
|
|
118
|
+
}): Promise<void>;
|
|
119
|
+
/** The bare sentence for one owed, cancelled turn, raced against the shared
|
|
120
|
+
* cap. Settles, never rejects. */
|
|
121
|
+
private cancelNotice;
|
|
122
|
+
private agentName;
|
|
88
123
|
/** True while a turn is in flight. #1560: if the CLI dies now, THAT turn
|
|
89
124
|
* fails, and it must be recorded and noticed before the process exits. */
|
|
90
125
|
turnInFlight(): boolean;
|
package/dist/index.js
CHANGED
|
@@ -11756,11 +11756,11 @@ async function joinWithFirstMatchingKp(welcomeBytes, candidates) {
|
|
|
11756
11756
|
return null;
|
|
11757
11757
|
}
|
|
11758
11758
|
function ownIdentity() {
|
|
11759
|
-
const v2 = true ? "0.23.
|
|
11759
|
+
const v2 = true ? "0.23.66" : FALLBACK;
|
|
11760
11760
|
return `${PACKAGE}@${v2}`;
|
|
11761
11761
|
}
|
|
11762
11762
|
function buildSha() {
|
|
11763
|
-
const raw = true ? "
|
|
11763
|
+
const raw = true ? "f354058" : "";
|
|
11764
11764
|
const cleaned = (raw ?? "").trim();
|
|
11765
11765
|
return !cleaned || cleaned === "unknown" ? null : cleaned;
|
|
11766
11766
|
}
|
|
@@ -13305,6 +13305,51 @@ async function _handleInbound(params) {
|
|
|
13305
13305
|
replyOptions: {}
|
|
13306
13306
|
}), { groupId: metadata.conversationGroupId });
|
|
13307
13307
|
}
|
|
13308
|
+
function asTurnFailureCode(code) {
|
|
13309
|
+
return typeof code === "string" && CODES.has(code) ? code : "model_error";
|
|
13310
|
+
}
|
|
13311
|
+
function clean5(value, max) {
|
|
13312
|
+
if (typeof value !== "string") return "";
|
|
13313
|
+
return value.replace(/@/g, "").replace(/\s+/g, " ").trim().slice(0, max).trim();
|
|
13314
|
+
}
|
|
13315
|
+
function ownerNoticeFor(code, ctx) {
|
|
13316
|
+
const a2 = clean5(ctx?.agentName, 80) || "Your agent";
|
|
13317
|
+
const p2 = clean5(ctx?.provider, 40) || "AI provider";
|
|
13318
|
+
const head = `${a2} couldn't answer this message`;
|
|
13319
|
+
switch (asTurnFailureCode(code)) {
|
|
13320
|
+
case "provider_auth_failed":
|
|
13321
|
+
return `${head}: its ${p2} sign-in expired. Sign in again on the agent's computer.`;
|
|
13322
|
+
case "provider_billing":
|
|
13323
|
+
return `${head}: its ${p2} account is out of credit or has a billing problem.`;
|
|
13324
|
+
case "model_rate_limited":
|
|
13325
|
+
return `${head}: it is being rate-limited by ${p2}. Try again in a few minutes.`;
|
|
13326
|
+
case "model_unavailable":
|
|
13327
|
+
return `${head}: the model it is set to use is no longer available.`;
|
|
13328
|
+
case "provider_unreachable":
|
|
13329
|
+
return `${head}: it can't reach ${p2} right now.`;
|
|
13330
|
+
case "ai_tool_unsupported":
|
|
13331
|
+
return `${head}: its AI tool needs attention on its computer.`;
|
|
13332
|
+
case "plan_limit_reached":
|
|
13333
|
+
return `${head}: it has reached its ${p2} plan's usage limit.`;
|
|
13334
|
+
default:
|
|
13335
|
+
return `${head}.`;
|
|
13336
|
+
}
|
|
13337
|
+
}
|
|
13338
|
+
function reportModelTurnFailure(sink, report) {
|
|
13339
|
+
try {
|
|
13340
|
+
const code = asTurnFailureCode(report.code);
|
|
13341
|
+
const isPlan = code === "plan_limit_reached";
|
|
13342
|
+
reportToolInvoke(sink, {
|
|
13343
|
+
toolName: "model_turn",
|
|
13344
|
+
outcome: "error",
|
|
13345
|
+
errorKind: code,
|
|
13346
|
+
durationMs: report.durationMs,
|
|
13347
|
+
conversation: isPlan ? { kind: "unknown" } : report.conversation,
|
|
13348
|
+
...isPlan && report.limitResetsAt !== void 0 ? { limitResetsAt: report.limitResetsAt } : {}
|
|
13349
|
+
});
|
|
13350
|
+
} catch {
|
|
13351
|
+
}
|
|
13352
|
+
}
|
|
13308
13353
|
function getErrorMap() {
|
|
13309
13354
|
return overrideErrorMap;
|
|
13310
13355
|
}
|
|
@@ -17827,52 +17872,7 @@ function armSseKeepAlive(intervalMs, onTick) {
|
|
|
17827
17872
|
timer.unref?.();
|
|
17828
17873
|
return timer;
|
|
17829
17874
|
}
|
|
17830
|
-
function asTurnFailureCode(code) {
|
|
17831
|
-
return typeof code === "string" && CODES.has(code) ? code : "model_error";
|
|
17832
|
-
}
|
|
17833
|
-
function clean5(value, max) {
|
|
17834
|
-
if (typeof value !== "string") return "";
|
|
17835
|
-
return value.replace(/@/g, "").replace(/\s+/g, " ").trim().slice(0, max).trim();
|
|
17836
|
-
}
|
|
17837
|
-
function ownerNoticeFor(code, ctx) {
|
|
17838
|
-
const a2 = clean5(ctx?.agentName, 80) || "Your agent";
|
|
17839
|
-
const p2 = clean5(ctx?.provider, 40) || "AI provider";
|
|
17840
|
-
const head = `${a2} couldn't answer this message`;
|
|
17841
|
-
switch (asTurnFailureCode(code)) {
|
|
17842
|
-
case "provider_auth_failed":
|
|
17843
|
-
return `${head}: its ${p2} sign-in expired. Sign in again on the agent's computer.`;
|
|
17844
|
-
case "provider_billing":
|
|
17845
|
-
return `${head}: its ${p2} account is out of credit or has a billing problem.`;
|
|
17846
|
-
case "model_rate_limited":
|
|
17847
|
-
return `${head}: it is being rate-limited by ${p2}. Try again in a few minutes.`;
|
|
17848
|
-
case "model_unavailable":
|
|
17849
|
-
return `${head}: the model it is set to use is no longer available.`;
|
|
17850
|
-
case "provider_unreachable":
|
|
17851
|
-
return `${head}: it can't reach ${p2} right now.`;
|
|
17852
|
-
case "ai_tool_unsupported":
|
|
17853
|
-
return `${head}: its AI tool needs attention on its computer.`;
|
|
17854
|
-
case "plan_limit_reached":
|
|
17855
|
-
return `${head}: it has reached its ${p2} plan's usage limit.`;
|
|
17856
|
-
default:
|
|
17857
|
-
return `${head}.`;
|
|
17858
|
-
}
|
|
17859
|
-
}
|
|
17860
|
-
function reportModelTurnFailure(sink, report) {
|
|
17861
|
-
try {
|
|
17862
|
-
const code = asTurnFailureCode(report.code);
|
|
17863
|
-
const isPlan = code === "plan_limit_reached";
|
|
17864
|
-
reportToolInvoke(sink, {
|
|
17865
|
-
toolName: "model_turn",
|
|
17866
|
-
outcome: "error",
|
|
17867
|
-
errorKind: code,
|
|
17868
|
-
durationMs: report.durationMs,
|
|
17869
|
-
conversation: isPlan ? { kind: "unknown" } : report.conversation,
|
|
17870
|
-
...isPlan && report.limitResetsAt !== void 0 ? { limitResetsAt: report.limitResetsAt } : {}
|
|
17871
|
-
});
|
|
17872
|
-
} catch {
|
|
17873
|
-
}
|
|
17874
|
-
}
|
|
17875
|
-
var __create, __defProp2, __getOwnPropDesc, __getOwnPropNames2, __getProtoOf, __hasOwnProp, __esm2, __commonJS, __export2, __copyProps, __toESM, SENTINEL, WRAPPERS, INSTRUCTION, init_abstention, AMBIGUOUS_OWNER_ERROR, init_owner_routing, init_envelope_text, init_mls_commit_classify, MENTION_RE, BROADCAST_NAMES, PRIVATE_ROOM_TURN_NOTE, GENERIC_AGENT_NAMES, init_room_protocol, __filename, __dirname, url, path, Module, Module, root, window_, crypto_, randomValuesStandard, crypto2, randomValueNodeJS, _Module, libsodium_sumo_default, init_libsodium_sumo, a, r, t, c, libsodium_wrappers_default, init_libsodium_wrappers, init_keys, init_x3dh, MAX_SKIP, CHAIN_KEY_SEED, MSG_KEY_SEED, HEADER_KEY_SEED, DoubleRatchet, init_ratchet, init_file_crypto, DOMAIN_DID_DOCUMENT, DOMAIN_TRANSFER_INTENT, DOMAIN_TRANSFER_ACCEPT, BASE58_ALPHABET, init_did, BUILTIN_PATTERNS, ScanEngine, init_scan_engine, init_merkle, VC_CONTEXT_V2, AV_CREDENTIAL_CONTEXT, CRYPTOSUITE, BASE58_ALPHABET2, init_vc, init_transport, init_telemetry, TelemetryReporter, init_telemetry_reporter, CROCKFORD, ARGON2_OPSLIMIT, ARGON2_MEMLIMIT, SALT_BYTES, NONCE_BYTES, KEY_BYTES, BACKUP_VERSION, MAX_BACKUP_SIZE, init_backup, atitle, aobject, aopts, isLE, swap8IfBE, swap32IfBE, hasHexBuiltin, hexes, oidNist, init_utils, BSIGMA, init_blake, U32_MASK64, _32n, fromNumH, fromNumL, shrSH, shrSL, rotrSH, rotrSL, rotrBH, rotrBL, rotr32H, rotr32L, add3L, add3H, add4L, add4H, add5L, add5H, init_u64, HashMD, SHA256_IV, SHA384_IV, SHA512_IV, init_md, B2B_IV, BBUF, _BLAKE2, _BLAKE2b, blake2b, init_blake2, CROCKFORD2, SALT_BYTES2, NONCE_BYTES2, KEY_BYTES2, TAG_BYTES, ENVELOPE_OVERHEAD, AAD_PREFIX, UUID_RE, UUID_V4_RE, DIGEST_ID_RE, TIMESTAMP_RE, encoder, decoder, HISTORY_MAGIC, HISTORY_ARCHIVE_VERSION, HISTORY_MAX_ENTRIES, HISTORY_MAX_BLOB_BYTES, HISTORY_KDF_OPSLIMIT, HISTORY_KDF_MEMLIMIT, HistoryEntryTooLargeError, init_history_backup, init_approval, encVoid, init_tlsEncoder, uint8Encoder, encodeUint8, decodeUint8, uint16Encoder, encodeUint16, decodeUint16, uint32Encoder, encodeUint32, decodeUint32, uint64Encoder, encodeUint64, decodeUint64, init_number, init_tlsDecoder, init_enumHelpers, defaultProposalTypes, defaultProposalTypeEncoder, encodeDefaultProposalType, decodeDefaultProposalType, init_defaultProposalType, defaultExtensionTypes, defaultExtensionTypeEncoder, encodeDefaultExtensionType, decodeDefaultExtensionType, init_defaultExtensionType, acceptAll, init_incomingMessageAction, MlsError, ValidationError, CodecError, UsageError, DependencyError, CryptoVerificationError, CryptoError, InternalError, init_mlsError, init_byteArray, varLenDataEncoder, decodeVarLenData, init_variableLength, init_constantTimeCompare, extensionTypeEncoder, encodeExtensionType, decodeExtensionType, extensionEncoder, encodeExtension, decodeExtension, init_extension, credentialTypes, credentialTypeEncoder, encodeCredentialType, decodeCredentialType, init_credentialType, credentialBasicEncoder, encodeCredentialBasic, credentialX509Encoder, encodeCredentialX509, credentialCustomEncoder, encodeCredentialCustom, credentialEncoder, encodeCredential, decodeCredentialBasic, decodeCredentialX509, decodeCredential, init_credential, externalSenderEncoder, encodeExternalSender, decodeExternalSender, init_externalSender, init_hash, init_optional, ciphersuites, ciphersuiteEncoder, encodeCiphersuite, decodeCiphersuite, ciphersuiteValues, init_ciphersuite, init_signature, protocolVersions, protocolVersionEncoder, encodeProtocolVersion, decodeProtocolVersion, init_protocolVersion, capabilitiesEncoder, encodeCapabilities, decodeCapabilities, init_capabilities, leafNodeSources, leafNodeSourceEncoder, encodeLeafNodeSource, decodeLeafNodeSource, init_leafNodeSource, lifetimeEncoder, encodeLifetime, decodeLifetime, defaultLifetime, init_lifetime, leafNodeDataEncoder, encodeLeafNodeData, decodeLeafNodeData, leafNodeInfoKeyPackageEncoder, encodeLeafNodeInfoKeyPackage, leafNodeInfoUpdateOmittedEncoder, encodeLeafNodeInfoUpdateOmitted, leafNodeInfoCommitOmittedEncoder, encodeLeafNodeInfoCommitOmitted, leafNodeInfoOmittedEncoder, encodeLeafNodeInfoOmitted, decodeLeafNodeInfoKeyPackage, decodeLeafNodeInfoUpdateOmitted, decodeLeafNodeInfoCommitOmitted, decodeLeafNodeInfoOmitted, leafNodeInfoUpdateEncoder, encodeLeafNodeInfoUpdate, leafNodeInfoCommitEncoder, encodeLeafNodeInfoCommit, leafNodeInfoEncoder, encodeLeafNodeInfo, decodeLeafNodeInfoUpdate, decodeLeafNodeInfoCommit, decodeLeafNodeInfo, leafNodeTBSEncoder, encodeLeafNodeTBS, leafNodeEncoder, encodeLeafNode, decodeLeafNode, decodeLeafNodeKeyPackage, decodeLeafNodeCommit, decodeLeafNodeUpdate, init_leafNode, keyPackageTBSEncoder, encodeKeyPackageTBS, decodeKeyPackageTBS, keyPackageEncoder, encodeKeyPackage, decodeKeyPackage, init_keyPackage, init_kdf, pskTypes, pskTypeEncoder, encodePskType, decodePskType, resumptionPSKUsages, resumptionPSKUsageEncoder, encodeResumptionPSKUsage, decodeResumptionPSKUsage, encodePskInfoExternal, encodePskInfoResumption, decodePskInfoResumption, pskInfoEncoder, encodePskInfo, decodePskInfo, pskIdEncoder, encodePskId, decodePskId, pskLabelEncoder, encodePskLabel, decodePskLabel, init_presharedkey, addEncoder, encodeAdd, decodeAdd, updateEncoder, encodeUpdate, decodeUpdate, removeEncoder, encodeRemove, decodeRemove, pskEncoder, encodePSK, decodePSK, reinitEncoder, encodeReinit, decodeReinit, externalInitEncoder, encodeExternalInit, decodeExternalInit, groupContextExtensionsEncoder, encodeGroupContextExtensions, decodeGroupContextExtensions, proposalAddEncoder, encodeProposalAdd, proposalUpdateEncoder, encodeProposalUpdate, proposalRemoveEncoder, encodeProposalRemove, proposalPSKEncoder, encodeProposalPSK, proposalReinitEncoder, encodeProposalReinit, proposalExternalInitEncoder, encodeProposalExternalInit, proposalGroupContextExtensionsEncoder, encodeProposalGroupContextExtensions, proposalCustomEncoder, encodeProposalCustom, proposalEncoder, encodeProposal, decodeProposalAdd, decodeProposalUpdate, decodeProposalRemove, decodeProposalPSK, decodeProposalReinit, decodeProposalExternalInit, decodeProposalGroupContextExtensions, decodeProposal, init_proposal, proposalOrRefTypes, proposalOrRefTypeEncoder, encodeProposalOrRefType, decodeProposalOrRefType, proposalOrRefProposalEncoder, encodeProposalOrRefProposal, proposalOrRefProposalRefEncoder, encodeProposalOrRefProposalRef, proposalOrRefEncoder, encodeProposalOrRef, decodeProposalOrRef, init_proposalOrRefType, init_hpke, groupContextEncoder, encodeGroupContext, decodeGroupContext, init_groupContext, nodeTypes, nodeTypeEncoder, encodeNodeType, decodeNodeType, init_nodeType, parentNodeEncoder, encodeParentNode, decodeParentNode, init_parentNode, init_treemath, nodeEncoder, encodeNode, decodeNode, ratchetTreeEncoder, encodeRatchetTree, decodeRatchetTree, init_ratchetTree, leafNodeHashInputEncoder, encodeLeafNodeHashInput, decodeLeafNodeHashInput, parentNodeHashInputEncoder, encodeParentNodeHashInput, decodeParentNodeHashInput, treeHashInputEncoder, encodeTreeHashInput, decodeTreeHashInput, init_treeHash, parentHashInputEncoder, encodeParentHashInput, decodeParentHashInput, init_parentHash, hpkeCiphertextEncoder, encodeHpkeCiphertext, decodeHpkeCiphertext, init_hpkeCiphertext, updatePathNodeEncoder, encodeUpdatePathNode, decodeUpdatePathNode, updatePathEncoder, encodeUpdatePath, decodeUpdatePath, init_updatePath, commitEncoder, encodeCommit, decodeCommit, init_commit, contentTypes, contentTypeEncoder, encodeContentType, decodeContentType, init_contentType, wireformats, wireformatEncoder, encodeWireformat, decodeWireformat, init_wireformat, senderTypes, senderTypeEncoder, encodeSenderType, decodeSenderType, senderEncoder, encodeSender, decodeSender, reuseGuardEncoder, encodeReuseGuard, decodeReuseGuard, senderDataEncoder, encodeSenderData, decodeSenderData, senderDataAADEncoder, encodeSenderDataAAD, decodeSenderDataAAD, init_sender, framedContentApplicationDataEncoder, encodeFramedContentApplicationData, framedContentProposalDataEncoder, encodeFramedContentProposalData, framedContentCommitDataEncoder, encodeFramedContentCommitData, framedContentInfoEncoder, encodeFramedContentInfo, decodeFramedContentApplicationData, decodeFramedContentProposalData, decodeFramedContentCommitData, decodeFramedContentInfo, framedContentEncoder, encodeFramedContent, decodeFramedContent, senderInfoEncoder, encodeSenderInfo, framedContentTBSEncoder, encodeFramedContentTBS, encodeFramedContentAuthDataContent, encodeFramedContentAuthDataCommit, framedContentAuthDataEncoder, encodeFramedContentAuthData, decodeFramedContentAuthDataCommit, init_framedContent, authenticatedContentEncoder, encodeAuthenticatedContent, decodeAuthenticatedContent, authenticatedContentTBMEncoder, encodeAuthenticatedContentTBM, init_authenticatedContent, publicMessageInfoEncoder, encodePublicMessageInfo, publicMessageEncoder, encodePublicMessage, decodePublicMessage, init_publicMessage, init_messageProtectionPublic, init_externalProposal, requiredCapabilitiesEncoder, encodeRequiredCapabilities, decodeRequiredCapabilities, init_requiredCapabilities, defaultAuthenticationService, init_authenticationService, defaultPaddingConfig, init_paddingConfig, defaultKeyPackageEqualityConfig, init_keyPackageEqualityConfig, defaultLifetimeConfig, init_lifetimeConfig, defaultKeyRetentionConfig, init_keyRetentionConfig, groupInfoTBSEncoder, encodeGroupInfoTBS, decodeGroupInfoTBS, groupInfoEncoder, encodeGroupInfo, decodeGroupInfo, init_groupInfo, keyScheduleEncoder, encodeKeySchedule, decodeKeySchedule, init_keySchedule, generationSecretEncoder, decodeGenerationSecret, secretTreeNodeEncoder, decodeSecretTreeNode, secretTreeEncoder, decodeSecretTree, init_secretTree, confirmedTranscriptHashInputEncoder, encodeConfirmedTranscriptHashInput, decodeConfirmedTranscriptHashInput, init_transcriptHash, groupSecretsEncoder, encodeGroupSecrets, decodeGroupSecrets, init_groupSecrets, encryptedGroupSecretsEncoder, encodeEncryptedGroupSecrets, decodeEncryptedGroupSecrets, welcomeEncoder, encodeWelcome, decodeWelcome, init_welcome, init_pathSecrets, privateKeyPathEncoder, decodePrivateKeyPath, init_privateKeyPath, proposalWithSenderEncoder, decodeProposalWithSender, unappliedProposalsEncoder, decodeUnappliedProposals, init_unappliedProposals, emptyPskIndex, init_pskIndex, init_addToMap, defaultClientConfig, init_clientConfig, init_array, stringEncoder, encodeString, decodeString, init_string, activeEncoder, suspendedPendingReinitEncoder, removedFromGroupEncoder, groupActiveStateEncoder, decodeGroupActiveState, init_groupActiveState, epochReceiverDataEncoder, decodeEpochReceiverData, init_epochReceiverData, groupStateEncoder, encodeGroupState, decodeGroupState, groupStateEncoderWithoutTree, encodeGroupStateWithoutTree, emptyProposals, init_clientState, privateMessageEncoder, encodePrivateMessage, decodePrivateMessage, privateContentAADEncoder, encodePrivateContentAAD, decodePrivateContentAAD, init_privateMessage, init_messageProtection, init_createMessage, init_createCommit, init_processMessages, init_makeHashImpl, HpkeError, InvalidParamError, SerializeError, DeserializeError, EncapError, DecapError, ExportError, SealError, OpenError, MessageLimitReachedError, DeriveKeyPairError, NotSupportedError, init_errors, dntGlobals, dntGlobalThis, init_dnt_shims, NativeAlgorithm, init_algorithm, Mode, KemId, KdfId, AeadId, init_identifiers, INPUT_LENGTH_LIMIT, INFO_LENGTH_LIMIT, MINIMUM_PSK_LENGTH, EMPTY, BYTE_TO_BIGINT_256, init_consts, SUITE_ID_HEADER_KEM, init_kemInterface, HPKE_VERSION, HkdfNative, HkdfSha256Native, HkdfSha384Native, HkdfSha512Native, init_hkdf, isCryptoKeyPair, init_misc, LABEL_EAE_PRK, LABEL_SHARED_SECRET, Dhkem, init_dhkem, KEM_USAGES, LABEL_DKP_PRK, LABEL_SK, init_dhkemPrimitives, Bignum, init_bignum, LABEL_CANDIDATE, ORDER_P_256, ORDER_P_384, ORDER_P_521, PKCS8_ALG_ID_P_256, PKCS8_ALG_ID_P_384, PKCS8_ALG_ID_P_521, EC_P_256_PARAMS, EC_P_384_PARAMS, EC_P_521_PARAMS, Ec, init_ec, init_xCryptoKey, init_xCurve, init_hybridkem, AEAD_USAGES, init_aeadEncryptionContext, _endianTestBuffer, _endianTestBytes, isLE2, init_noble, init_hash2, _HMAC, hmac, init_hmac, init_md2, U32_MASK642, _32n2, init_u642, init_sha2, _0n, _1n, _2n, _7n, _256n, _0x71n, SHA3_PI, SHA3_ROTL, _SHA3_IOTA, IOTAS, SHA3_IOTA_H, SHA3_IOTA_L, init_sha3, init_modular, init_curve, init_montgomery, init_mod, AesGcmContext, Aes128Gcm, Aes256Gcm, init_aesGcm, init_exportOnly, init_emitNotSupported, LABEL_SEC, ExporterContextImpl, RecipientExporterContextImpl, SenderExporterContextImpl, init_exporterContext, EncryptionContextImpl, init_encryptionContext, __classPrivateFieldGet, __classPrivateFieldSet, _Mutex_locked, Mutex, init_mutex, __classPrivateFieldGet2, __classPrivateFieldSet2, _RecipientContextImpl_mutex, RecipientContextImpl, init_recipientContext, __classPrivateFieldGet3, __classPrivateFieldSet3, _SenderContextImpl_mutex, SenderContextImpl, init_senderContext, LABEL_BASE_NONCE, LABEL_EXP, LABEL_INFO_HASH, LABEL_KEY, LABEL_PSK_ID_HASH, LABEL_SECRET, SUITE_ID_HEADER_HPKE, CipherSuiteNative, init_cipherSuiteNative, DhkemP256HkdfSha256Native, DhkemP384HkdfSha384Native, DhkemP521HkdfSha512Native, init_dhkemNative, CipherSuite, DhkemP256HkdfSha256, DhkemP384HkdfSha384, DhkemP521HkdfSha512, HkdfSha256, HkdfSha384, HkdfSha512, init_native, ALG_NAME, PKCS8_ALG_ID_X25519, BASE_POINT_X25519, X25519, init_x25519, DhkemX25519HkdfSha256, init_dhkemX25519, PKCS8_ALG_ID_X448, init_x448, init_dhkemX448, init_mod2, init_hpke2, isLE3, wrapCipher, init_utils2, encodeStr, sigma16, sigma32, sigma16_32, sigma32_32, BLOCK_LEN, BLOCK_LEN32, MAX_COUNTER, U32_EMPTY, _XorStreamPRG, createPRG, init_arx, Poly1305, poly1305, init_poly1305, chacha_exports, chacha20orig, chacha20, xchacha20, chacha8, chacha12, ZEROS16, updatePadded, ZEROS32, _poly1305_aead, chacha20poly1305, xchacha20poly1305, rngChacha20, rngChacha8, init_chacha, init_makeAead, init_makeKdfImpl, init_makeDhKem, init_makeHpke, defaultRng, init_rng, crypto3, init_cryptoNode, isLE4, swap32IfBE3, hasHexBuiltin2, hexes2, asciis, Hash, init_utils3, HashMD3, SHA256_IV3, SHA384_IV3, SHA512_IV3, init_md3, U32_MASK643, _32n3, shrSH3, shrSL3, rotrSH3, rotrSL3, rotrBH3, rotrBL3, rotlSH2, rotlSL2, rotlBH2, rotlBL2, add3L3, add3H3, add4L3, add4H3, add5L3, add5H3, init_u643, SHA256_K, SHA256_W, SHA256, K512, SHA512_Kh, SHA512_Kl, SHA512_W_H, SHA512_W_L, SHA512, SHA384, sha2563, sha5122, sha3842, init_sha22, _0n2, _1n2, isPosBig, bitMask, notImplemented, init_utils4, _0n3, _1n3, _2n2, _3n, _4n, _5n, _7n2, _8n, _9n, _16n, isNegativeLE, FIELD_FIELDS, init_modular2, _0n4, _1n4, pointPrecomputes, pointWindowSizes, wNAF, init_curve2, _0n5, _1n5, _2n3, _8n2, PrimeEdwardsPoint, init_edwards, os2ip, _DST_scalar, init_hash_to_curve, _0n6, _1n6, _2n4, init_montgomery2, ed25519_exports, _0n7, _1n7, _2n5, _3n2, _5n2, _8n3, ed25519_CURVE_p, ed25519_CURVE, ED25519_SQRT_M1, Fp, Fn, ed25519Defaults, ed25519, ed25519ctx, ed25519ph, x25519, ELL2_C1, ELL2_C2, ELL2_C3, ELL2_C1_EDWARDS, ed25519_hasher, SQRT_M1, SQRT_AD_MINUS_ONE, INVSQRT_A_MINUS_D, ONE_MINUS_D_SQ, D_MINUS_ONE_SQ, invertSqrt, MAX_255B, bytes255ToNumberLE, _RistrettoPoint, ristretto255, ristretto255_hasher, ED25519_TORSION_SUBGROUP, edwardsToMontgomery, RistrettoPoint, hashToCurve, encodeToCurve, hashToRistretto255, hash_to_ristretto255, init_ed25519, _0n8, _1n8, _2n6, _7n3, _256n2, _0x71n2, SHA3_PI2, SHA3_ROTL2, _SHA3_IOTA2, IOTAS2, SHA3_IOTA_H2, SHA3_IOTA_L2, rotlH, rotlL, Keccak, genShake, shake2562, init_sha32, ed448_exports, ed448_CURVE, E448_CURVE, shake256_114, shake256_64, _1n9, _2n7, _3n3, _4n2, _11n, _22n, _44n, _88n, _223n, Fp2, Fn2, Fp448, Fn448, ED448_DEF, ed448, ed448ph, E448, x448, ELL2_C12, ELL2_J, ed448_hasher, ONE_MINUS_D, ONE_MINUS_TWO_D, SQRT_MINUS_D, INVSQRT_MINUS_D, invertSqrt2, _DecafPoint, decaf448, decaf448_hasher, ED448_TORSION_SUBGROUP, DecafPoint, hashToCurve2, encodeToCurve2, hashToDecaf448, hash_to_decaf448, edwardsToMontgomery2, init_ed448, HMAC, hmac2, init_hmac2, divNearest, DERErr, DER, _0n9, _1n10, _2n8, _3n4, _4n3, init_weierstrass, init_shortw_utils, nist_exports, p256_CURVE, p384_CURVE, p521_CURVE, Fp256, Fp384, Fp521, p256, p256_hasher, p384, p384_hasher, p521, secp256r1, secp384r1, secp521r1, p521_hasher, init_nist, init_makeNobleSignatureImpl, defaultCryptoProvider, init_provider, init_getCiphersuiteImpl, init_resumption, SHA256_K2, SHA256_W2, SHA2_32B, _SHA256, K5122, SHA512_Kh2, SHA512_Kl2, SHA512_W_H2, SHA512_W_L2, SHA2_64B, _SHA512, _SHA384, sha2564, sha5123, sha3843, init_sha23, _HMAC2, hmac3, init_hmac3, init_makeHashImpl2, init_makeNobleSignatureImpl2, BLOCK_SIZE, ZEROS162, ZEROS322, POLY, mul2, swapLE, estimateWindow, GHASH, Polyval, ghash, polyval, init_polyval, BLOCK_SIZE2, BLOCK_SIZE32, EMPTY_BLOCK, POLY2, sbox, rotr32_8, rotl32_8, tableEncoding, xPowers, gcm, _CMAC, cmac, init_aes, init_makeAead2, init_makeKdfImpl2, init_makeDhKem2, init_makeHpke2, init_rng2, nobleCryptoProvider, init_provider2, mlsPublicMessageEncoder, encodeMlsPublicMessage, mlsWelcomeEncoder, encodeMlsWelcome, mlsPrivateMessageEncoder, encodeMlsPrivateMessage, mlsGroupInfoEncoder, encodeMlsGroupInfo, mlsKeyPackageEncoder, encodeMlsKeyPackage, mlsMessageContentEncoder, encodeMlsMessageContent, decodeMlsMessageContent, mlsMessageEncoder, encodeMlsMessage, decodeMlsMessage, init_message, greaseValues, defaultGreaseConfig, init_grease, init_defaultCapabilities, init_src, DEFAULT_CIPHERSUITE, MLSGroupManager, init_mls_group, DOMAIN, NONCE_BYTES3, init_owner_sync, init_mls_delivery_order, init_mls_presend_epoch, dist_exports, init_dist2, DIR_MODE, FILE_MODE, init_secure_file, SYNC_LOCK_STALE_MS, pendingKpPath, DECRYPTED_IDS_FILE, init_mls_state, init_mls_kp_pool, PACKAGE, FALLBACK, MAX_LEN, DISALLOWED, init_client_version, CredentialStore, init_credential_store, init_crypto_helpers, STATE_FILE, LEGACY_STATE_FILE, init_state, ACTIVATION_DOMAIN, UUID_RE2, init_transport2, A2ALogGate, init_a2a_log_gate, NOT_A_MEMBER_DETAIL, init_mls_membership_probe, FIRST_DIRTY_DELAY_MS, RETRY_BASE_DELAYS_MS, MAX_RETRY_DELAY_MS, JITTER_FRACTION, HistoryBackupScheduler, init_history_backup_scheduler, FILE_MODE2, init_history_recovery_file, TENANT_ID_PATTERN, DIR_MODE2, FILE_MODE3, HISTORY_RECOVERY_VERIFY_TIMEOUT_MS, VERIFY_TIMEOUT_MESSAGE, HistoryRecoveryVerificationTimeoutError, init_history_recovery_code, ACTIONS, init_decision_reply, KP_BACKOFF_INITIAL_MS, KP_BACKOFF_MAX_MS, KP_RACE_RETRY_MS, KP_RACE_RETRY_LIMIT, consoleLogger, short, WelcomeKeyPackageBackoff, init_welcome_kp_backoff, history_backup_client_exports, HISTORY_RESTORE_TIMEOUT_MS, HISTORY_RESTORE_RESPONSE_MAX_BYTES, HISTORY_ENVELOPE_MIN_BYTES, HISTORY_AAD_PREFIX, UUID_RE3, GENERATION_RESPONSE_KEYS, utf8Encoder, utf8Decoder, HistoryBackupClient, init_history_backup_client, openclaw_compat_exports, defaultImporter, HEARTBEAT_CANDIDATES, _heartbeatFn, init_openclaw_compat, TOOL_INVOKE_SPAN_NAME, UNCLASSIFIED_ERROR, KNOWN_TOOL_ERROR_CODES, KNOWN_CODES, CLASS_NAME_RE, TOOL_NAME_RE, ERROR_TEXT_CODES, _conversation, init_tool_telemetry, http_handlers_exports, init_http_handlers, mcp_proxy_helpers_exports, init_mcp_proxy_helpers, workspace_handlers_exports, MAX_FILE_SIZE, init_workspace_handlers, ROOM_AGENT_TYPES, CREDENTIAL_MESSAGE_TYPES, CATCHUP_MESSAGE_TYPES, POLL_INTERVAL_MS, RECONNECT_BASE_MS, UUID_RE4, RECONNECT_MAX_MS, PENDING_POLL_INTERVAL_MS, HISTORY_RESTORE_TIMEOUT_MS2, ROOM_ROSTER_REFRESH_TIMEOUT_MS, HISTORY_UPLOAD_TIMEOUT_MS, CANONICAL_TIMESTAMP_RE, OUTBOUND_DEDUPE_WINDOW_MS, OUTBOUND_DEDUPE_MAX_SUPPRESS_MS, OUTBOUND_DEDUPE_MAX, OUTBOUND_DEDUPE_TYPES, RETRY_CANDIDATE_TTL_MS, RETRY_CANDIDATE_MAX, _turnConversation, PERSON_INVOLVED_WINDOW_MS, ATTESTED_INBOUND_MAX, UNMAPPED_RECONCILE_COOLDOWN_MS, TOPIC_ID_RE, ROOM_FULFIL_COOLDOWN_MS, SecureChannel, init_channel, init_types, DEFAULT_API_URL, DEFAULT_HTTP_PORT, init_account_config, init_lifecycle, _ocRuntime, _channels, agentVaultPlugin, init_openclaw_plugin, init_gateway_send, init_llm_response_parser, OPENROUTER_PRICING, init_llm_pricing_openrouter, LEGACY_PRICING, PRICING, init_llm_cost, traceStore, init_fetch_interceptor, init_tool_audit, init_harness_compat, managedRoutesRequested, init_openclaw_entry, util, objectUtil, ZodParsedType, getParsedType, init_util, ZodIssueCode, ZodError, init_ZodError, errorMap, en_default, init_en, overrideErrorMap, init_errors2, makeIssue, ParseStatus, INVALID, DIRTY, OK, isAborted, isDirty, isValid, isAsync, init_parseUtil, init_typeAliases, errorUtil, init_errorUtil, ParseInputLazyPath, handleResult, ZodType, cuidRegex, cuid2Regex, ulidRegex, uuidRegex, nanoidRegex, jwtRegex, durationRegex, emailRegex, _emojiRegex, emojiRegex, ipv4Regex, ipv4CidrRegex, ipv6Regex, ipv6CidrRegex, base64Regex, base64urlRegex, dateRegexSource, dateRegex, ZodString, ZodNumber, ZodBigInt, ZodBoolean, ZodDate, ZodSymbol, ZodUndefined, ZodNull, ZodAny, ZodUnknown, ZodNever, ZodVoid, ZodArray, ZodObject, ZodUnion, getDiscriminator, ZodDiscriminatedUnion, ZodIntersection, ZodTuple, ZodRecord, ZodMap, ZodSet, ZodFunction, ZodLazy, ZodLiteral, ZodEnum, ZodNativeEnum, ZodPromise, ZodEffects, ZodOptional, ZodNullable, ZodDefault, ZodCatch, ZodNaN, ZodBranded, ZodPipeline, ZodReadonly, late, ZodFirstPartyTypeKind, stringType, numberType, nanType, bigIntType, booleanType, dateType, symbolType, undefinedType, nullType, anyType, unknownType, neverType, voidType, arrayType, objectType, strictObjectType, unionType, discriminatedUnionType, intersectionType, tupleType, recordType, mapType, setType, functionType, lazyType, literalType, enumType, nativeEnumType, promiseType, effectsType, optionalType, nullableType, preprocessType, pipelineType, init_types2, init_external, init_v3, util_exports, Cached, EVALUATING, captureStackTrace, allowsEval, getParsedType2, propertyKeyTypes, primitiveTypes, NUMBER_FORMAT_RANGES, BIGINT_FORMAT_RANGES, highSurrogate, Class, installing, broke, breaker, CONSTANT_CATCH, init_util2, _a2, _zodDesc, _E, $ZodAsyncError, $ZodEncodeError, globalConfig, init_core, _messageDesc, _issuesDesc, _installedToString, initializer, $ZodError, $ZodRealError, init_errors3, _parse, parse, _parseAsync, parseAsync, _safeParse, safeParse, _safeParseAsync, safeParseAsync, COMPILE_INVALID, COMPILE_FALLBACK, validate, validateAsync, _encode, _decode, _encodeAsync, _decodeAsync, _safeEncode, _safeDecode, _safeEncodeAsync, _safeDecodeAsync, init_parse, cuid, cuid2, ulid, xid, ksuid, nanoid, duration, guid, uuid, email, _emoji, ipv4, ipv6, cidrv4, cidrv6, base64, base64url, httpProtocol, e164, dateSource, date, anyString, integer, number, boolean, _null, lowercase, uppercase, init_regexes, $ZodCheck, _whenHasLength, numericOriginMap, $ZodCheckLessThan, $ZodCheckGreaterThan, $ZodCheckMultipleOf, $ZodCheckNumberFormat, $ZodCheckMaxLength, $ZodCheckMinLength, $ZodCheckLengthEquals, $ZodCheckStringFormat, $ZodCheckRegex, $ZodCheckLowerCase, $ZodCheckUpperCase, $ZodCheckIncludes, $ZodCheckStartsWith, $ZodCheckEndsWith, $ZodCheckOverwrite, init_checks, Doc, init_doc, version, init_versions, $ZodType, toStandardResult, $ZodString, $ZodStringFormat, $ZodGUID, $ZodUUID, $ZodEmail, URL_BAD_FORMAT, URL_UNPARSEABLE, asciiTabOrNewline, $ZodURL, $ZodEmoji, $ZodNanoID, $ZodCUID, $ZodCUID2, $ZodULID, $ZodXID, $ZodKSUID, $ZodISODateTime, $ZodISODate, $ZodISOTime, $ZodISODuration, $ZodIPv4, ipv6Alphabet, $ZodIPv6, $ZodCIDRv4, $ZodCIDRv6, base64Charset, $ZodBase64, base64urlCharset, $ZodBase64URL, $ZodE164, $ZodJWT, $ZodNumber, $ZodNumberFormat, $ZodBoolean, $ZodNull, $ZodUnknown, $ZodNever, arraySize, $ZodArray, NO_SYMBOL_KEYS, $ZodObject, $ZodObjectJIT, $ZodUnion, $ZodDiscriminatedUnion, $ZodIntersection, $ZodRecord, $ZodEnum, $ZodLiteral, $ZodTransform, $ZodOptional, $ZodExactOptional, $ZodNullable, $ZodDefault, $ZodPrefault, $ZodNonOptional, $ZodCatch, $ZodPipe, $ZodPreprocess, $ZodReadonly, $ZodCustom, init_schemas, $ZodCyclicError, STATE, NO_ISSUES, recursive, NONE, ASSUMED, PROVEN, handoff, open4, memo, init_memoizer, error, init_en2, init_locales, _a3, $ZodRegistry, globalRegistry, init_registries, init_compile, init_api, FOLDABLE_KEYS, UNION_KEYS, createToJSONSchemaMethod, createStandardJSONSchemaMethod, init_to_json_schema, narrowMin, narrowMax, narrowBoth, addDivisor, addPattern, intersectMime, setFormat, minContributor, maxContributor, formatContributor, contributors, formatMap, exactPatterns, exactPattern, stringProcessor, numberProcessor, booleanProcessor, bigintProcessor, symbolProcessor, nullProcessor, undefinedProcessor, voidProcessor, neverProcessor, anyProcessor, unknownProcessor, dateProcessor, enumProcessor, literalProcessor, nanProcessor, templateLiteralProcessor, fileProcessor, successProcessor, customProcessor, functionProcessor, transformProcessor, mapProcessor, setProcessor, arrayProcessor, objectProcessor, unionProcessor, intersectionProcessor, tupleProcessor, pendingRecords, recordProcessor, nullableProcessor, nonoptionalProcessor, UNREPRESENTABLE_DEFAULT, defaultProcessor, prefaultProcessor, catchProcessor, pipeProcessor, readonlyProcessor, promiseProcessor, optionalProcessor, lazyProcessor, allProcessors, init_json_schema_processors, init_json_schema, init_core2, init_parse2, ZodMiniType, ZodMiniObject, init_schemas2, init_checks2, init_iso, init_coerce, init_external2, init_v4_mini, init_zod_compat, init_checks3, _installedErrorProtos, initializer2, ZodRealError, init_errors4, parse2, parseAsync2, safeParse3, safeParseAsync3, encode3, decode2, encodeAsync2, decodeAsync2, safeEncode2, safeDecode2, safeEncodeAsync2, safeDecodeAsync2, init_parse3, ZodType2, _ZodString, ZodString2, ZodStringFormat, ZodISODateTime, ZodISODate, ZodISOTime, ZodISODuration, ZodEmail, ZodGUID, ZodUUID, ZodURL, ZodEmoji, ZodNanoID, ZodCUID, ZodCUID2, ZodULID, ZodXID, ZodKSUID, ZodIPv4, ZodIPv6, ZodCIDRv4, ZodCIDRv6, ZodBase64, ZodBase64URL, ZodE164, ZodJWT, ZodNumber2, ZodNumberFormat, ZodBoolean2, ZodNull2, ZodUnknown2, ZodNever2, ZodArray2, ZodObject2, ZodUnion2, ZodDiscriminatedUnion2, ZodIntersection2, ZodRecord2, ZodEnum2, ZodLiteral2, ZodTransform, ZodOptional2, ZodExactOptional, ZodNullable2, ZodDefault2, ZodPrefault, ZodNonOptional, ZodCatch2, ZodPipe, ZodPreprocess, ZodReadonly2, ZodCustom, init_schemas3, ZodFirstPartyTypeKind2, init_compat, iso_exports2, init_iso2, init_coerce2, init_external3, init_classic, init_v4, LATEST_PROTOCOL_VERSION, DEFAULT_NEGOTIATED_PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS, RELATED_TASK_META_KEY, JSONRPC_VERSION, AssertObjectSchema, ProgressTokenSchema, CursorSchema, TaskCreationParamsSchema, TaskMetadataSchema, RelatedTaskMetadataSchema, RequestMetaSchema, BaseRequestParamsSchema, TaskAugmentedRequestParamsSchema, isTaskAugmentedRequestParams, RequestSchema, NotificationsParamsSchema, NotificationSchema, ResultSchema, RequestIdSchema, JSONRPCRequestSchema, isJSONRPCRequest, JSONRPCNotificationSchema, isJSONRPCNotification, JSONRPCResultResponseSchema, isJSONRPCResultResponse, ErrorCode, JSONRPCErrorResponseSchema, isJSONRPCErrorResponse, JSONRPCMessageSchema, JSONRPCResponseSchema, EmptyResultSchema, CancelledNotificationParamsSchema, CancelledNotificationSchema, IconSchema, IconsSchema, BaseMetadataSchema, ImplementationSchema, FormElicitationCapabilitySchema, ElicitationCapabilitySchema, ClientTasksCapabilitySchema, ServerTasksCapabilitySchema, ClientCapabilitiesSchema, InitializeRequestParamsSchema, InitializeRequestSchema, isInitializeRequest, ServerCapabilitiesSchema, InitializeResultSchema, InitializedNotificationSchema, PingRequestSchema, ProgressSchema, ProgressNotificationParamsSchema, ProgressNotificationSchema, PaginatedRequestParamsSchema, PaginatedRequestSchema, PaginatedResultSchema, TaskStatusSchema, TaskSchema, CreateTaskResultSchema, TaskStatusNotificationParamsSchema, TaskStatusNotificationSchema, GetTaskRequestSchema, GetTaskResultSchema, GetTaskPayloadRequestSchema, GetTaskPayloadResultSchema, ListTasksRequestSchema, ListTasksResultSchema, CancelTaskRequestSchema, CancelTaskResultSchema, ResourceContentsSchema, TextResourceContentsSchema, Base64Schema, BlobResourceContentsSchema, RoleSchema, AnnotationsSchema, ResourceSchema, ResourceTemplateSchema, ListResourcesRequestSchema, ListResourcesResultSchema, ListResourceTemplatesRequestSchema, ListResourceTemplatesResultSchema, ResourceRequestParamsSchema, ReadResourceRequestParamsSchema, ReadResourceRequestSchema, ReadResourceResultSchema, ResourceListChangedNotificationSchema, SubscribeRequestParamsSchema, SubscribeRequestSchema, UnsubscribeRequestParamsSchema, UnsubscribeRequestSchema, ResourceUpdatedNotificationParamsSchema, ResourceUpdatedNotificationSchema, PromptArgumentSchema, PromptSchema, ListPromptsRequestSchema, ListPromptsResultSchema, GetPromptRequestParamsSchema, GetPromptRequestSchema, TextContentSchema, ImageContentSchema, AudioContentSchema, ToolUseContentSchema, EmbeddedResourceSchema, ResourceLinkSchema, ContentBlockSchema, PromptMessageSchema, GetPromptResultSchema, PromptListChangedNotificationSchema, ToolAnnotationsSchema, ToolExecutionSchema, ToolSchema, ListToolsRequestSchema, ListToolsResultSchema, CallToolResultSchema, CompatibilityCallToolResultSchema, CallToolRequestParamsSchema, CallToolRequestSchema, ToolListChangedNotificationSchema, ListChangedOptionsBaseSchema, LoggingLevelSchema, SetLevelRequestParamsSchema, SetLevelRequestSchema, LoggingMessageNotificationParamsSchema, LoggingMessageNotificationSchema, ModelHintSchema, ModelPreferencesSchema, ToolChoiceSchema, ToolResultContentSchema, SamplingContentSchema, SamplingMessageContentBlockSchema, SamplingMessageSchema, CreateMessageRequestParamsSchema, CreateMessageRequestSchema, CreateMessageResultSchema, CreateMessageResultWithToolsSchema, BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema, UntitledSingleSelectEnumSchemaSchema, TitledSingleSelectEnumSchemaSchema, LegacyTitledEnumSchemaSchema, SingleSelectEnumSchemaSchema, UntitledMultiSelectEnumSchemaSchema, TitledMultiSelectEnumSchemaSchema, MultiSelectEnumSchemaSchema, EnumSchemaSchema, PrimitiveSchemaDefinitionSchema, ElicitRequestFormParamsSchema, ElicitRequestURLParamsSchema, ElicitRequestParamsSchema, ElicitRequestSchema, ElicitationCompleteNotificationParamsSchema, ElicitationCompleteNotificationSchema, ElicitResultSchema, ResourceTemplateReferenceSchema, PromptReferenceSchema, CompleteRequestParamsSchema, CompleteRequestSchema, CompleteResultSchema, RootSchema, ListRootsRequestSchema, ListRootsResultSchema, RootsListChangedNotificationSchema, ClientRequestSchema, ClientNotificationSchema, ClientResultSchema, ServerRequestSchema, ServerNotificationSchema, ServerResultSchema, McpError, UrlElicitationRequiredError, init_types3, init_interfaces, ignoreOverride, defaultOptions, getDefaultOptions, init_Options, getRefs, init_Refs, init_errorMessages, getRelativePath, init_getRelativePath, init_any, init_array2, init_bigint, init_boolean, init_branded, parseCatchDef, init_catch, integerDateParser, init_date, init_default, init_effects, init_enum, isJsonSchema7AllOfType, init_intersection, init_literal, emojiRegex2, zodPatterns, ALPHA_NUMERIC, init_string2, init_record, init_map, init_nativeEnum, init_never, init_null, primitiveMappings, asAnyOf, init_union, init_nullable, init_number2, init_object, parseOptionalDef, init_optional2, parsePipelineDef, init_pipeline, init_promise, init_set, init_tuple, init_undefined, init_unknown, parseReadonlyDef, init_readonly, selectParser, init_selectParser, get$ref, addMeta, init_parseDef, init_parseTypes, zodToJsonSchema, init_zodToJsonSchema, init_esm, init_zod_json_schema_compat, DEFAULT_REQUEST_TIMEOUT_MSEC, Protocol, init_protocol, require_code, require_scope, require_codegen, require_util, require_names, require_errors, require_boolSchema, require_rules, require_applicability, require_dataType, require_defaults, require_code2, require_keyword, require_subschema, require_fast_deep_equal, require_json_schema_traverse, require_resolve, require_validate, require_validation_error, require_ref_error, require_compile, require_data, require_utils, require_schemes, require_fast_uri, require_uri, require_core, require_id, require_ref, require_core2, require_limitNumber, require_multipleOf, require_ucs2length, require_limitLength, require_pattern, require_limitProperties, require_required, require_limitItems, require_equal, require_uniqueItems, require_const, require_enum, require_validation, require_additionalItems, require_items, require_prefixItems, require_items2020, require_contains, require_dependencies, require_propertyNames, require_additionalProperties, require_properties, require_patternProperties, require_not, require_anyOf, require_oneOf, require_allOf, require_if, require_thenElse, require_applicator, require_format, require_format2, require_metadata, require_draft7, require_types, require_discriminator, require_json_schema_draft_07, require_ajv, require_formats, require_limit, require_dist, import_ajv, import_ajv_formats, AjvJsonSchemaValidator, init_ajv_provider, ExperimentalServerTasks, init_server, init_helpers, Server, init_server2, COMPLETABLE_SYMBOL, McpZodTypeKind, init_completable, init_uriTemplate, TOOL_NAME_REGEX, init_toolNameValidation, ExperimentalMcpServerTasks, init_mcp_server, init_zod, McpServer, EMPTY_OBJECT_JSON_SCHEMA, EMPTY_COMPLETION_RESULT, init_mcp, RequestError, toRequestError, GlobalRequest, Request2, newHeadersFromIncoming, wrapBodyStream, newRequestFromIncoming, getRequestCache, requestCache, incomingKey, urlKey, headersKey, abortControllerKey, getAbortController, requestPrototype, newRequest, responseCache, getResponseCache, cacheKey, GlobalResponse, Response2, buildOutgoingHttpHeaders, X_ALREADY_SENT, outgoingEnded, handleRequestError, handleFetchError, handleResponseError, flushHeaders, responseViaCache, isPromise, responseViaResponseObject, getRequestListener, init_dist22, require_content_type, import_content_type, init_mediaType, DEFAULT_MAX_REQUEST_BODY_SIZE, MAX_BATCH_SIZE, init_requestBody, DEFAULT_SSE_KEEP_ALIVE_MS, MAX_TIMER_DELAY_MS, init_sseKeepAlive, WebStandardStreamableHTTPServerTransport, init_webStandardStreamableHttp, StreamableHTTPServerTransport, init_streamableHttp, AgentVaultMcpServer, init_mcp_server2, init_mcp_handlers, init_skill_manifest, init_skill_invoker, spanBuffer, init_skill_telemetry, PolicyEnforcer, init_policy_enforcer, TURN_FAILURE_CODES, CODES, TurnFailure, NOTICE_RE, init_turn_failure, VERSION, init_index;
|
|
17875
|
+
var __create, __defProp2, __getOwnPropDesc, __getOwnPropNames2, __getProtoOf, __hasOwnProp, __esm2, __commonJS, __export2, __copyProps, __toESM, SENTINEL, WRAPPERS, INSTRUCTION, init_abstention, AMBIGUOUS_OWNER_ERROR, init_owner_routing, init_envelope_text, init_mls_commit_classify, MENTION_RE, BROADCAST_NAMES, PRIVATE_ROOM_TURN_NOTE, GENERIC_AGENT_NAMES, init_room_protocol, __filename, __dirname, url, path, Module, Module, root, window_, crypto_, randomValuesStandard, crypto2, randomValueNodeJS, _Module, libsodium_sumo_default, init_libsodium_sumo, a, r, t, c, libsodium_wrappers_default, init_libsodium_wrappers, init_keys, init_x3dh, MAX_SKIP, CHAIN_KEY_SEED, MSG_KEY_SEED, HEADER_KEY_SEED, DoubleRatchet, init_ratchet, init_file_crypto, DOMAIN_DID_DOCUMENT, DOMAIN_TRANSFER_INTENT, DOMAIN_TRANSFER_ACCEPT, BASE58_ALPHABET, init_did, BUILTIN_PATTERNS, ScanEngine, init_scan_engine, init_merkle, VC_CONTEXT_V2, AV_CREDENTIAL_CONTEXT, CRYPTOSUITE, BASE58_ALPHABET2, init_vc, init_transport, init_telemetry, TelemetryReporter, init_telemetry_reporter, CROCKFORD, ARGON2_OPSLIMIT, ARGON2_MEMLIMIT, SALT_BYTES, NONCE_BYTES, KEY_BYTES, BACKUP_VERSION, MAX_BACKUP_SIZE, init_backup, atitle, aobject, aopts, isLE, swap8IfBE, swap32IfBE, hasHexBuiltin, hexes, oidNist, init_utils, BSIGMA, init_blake, U32_MASK64, _32n, fromNumH, fromNumL, shrSH, shrSL, rotrSH, rotrSL, rotrBH, rotrBL, rotr32H, rotr32L, add3L, add3H, add4L, add4H, add5L, add5H, init_u64, HashMD, SHA256_IV, SHA384_IV, SHA512_IV, init_md, B2B_IV, BBUF, _BLAKE2, _BLAKE2b, blake2b, init_blake2, CROCKFORD2, SALT_BYTES2, NONCE_BYTES2, KEY_BYTES2, TAG_BYTES, ENVELOPE_OVERHEAD, AAD_PREFIX, UUID_RE, UUID_V4_RE, DIGEST_ID_RE, TIMESTAMP_RE, encoder, decoder, HISTORY_MAGIC, HISTORY_ARCHIVE_VERSION, HISTORY_MAX_ENTRIES, HISTORY_MAX_BLOB_BYTES, HISTORY_KDF_OPSLIMIT, HISTORY_KDF_MEMLIMIT, HistoryEntryTooLargeError, init_history_backup, init_approval, encVoid, init_tlsEncoder, uint8Encoder, encodeUint8, decodeUint8, uint16Encoder, encodeUint16, decodeUint16, uint32Encoder, encodeUint32, decodeUint32, uint64Encoder, encodeUint64, decodeUint64, init_number, init_tlsDecoder, init_enumHelpers, defaultProposalTypes, defaultProposalTypeEncoder, encodeDefaultProposalType, decodeDefaultProposalType, init_defaultProposalType, defaultExtensionTypes, defaultExtensionTypeEncoder, encodeDefaultExtensionType, decodeDefaultExtensionType, init_defaultExtensionType, acceptAll, init_incomingMessageAction, MlsError, ValidationError, CodecError, UsageError, DependencyError, CryptoVerificationError, CryptoError, InternalError, init_mlsError, init_byteArray, varLenDataEncoder, decodeVarLenData, init_variableLength, init_constantTimeCompare, extensionTypeEncoder, encodeExtensionType, decodeExtensionType, extensionEncoder, encodeExtension, decodeExtension, init_extension, credentialTypes, credentialTypeEncoder, encodeCredentialType, decodeCredentialType, init_credentialType, credentialBasicEncoder, encodeCredentialBasic, credentialX509Encoder, encodeCredentialX509, credentialCustomEncoder, encodeCredentialCustom, credentialEncoder, encodeCredential, decodeCredentialBasic, decodeCredentialX509, decodeCredential, init_credential, externalSenderEncoder, encodeExternalSender, decodeExternalSender, init_externalSender, init_hash, init_optional, ciphersuites, ciphersuiteEncoder, encodeCiphersuite, decodeCiphersuite, ciphersuiteValues, init_ciphersuite, init_signature, protocolVersions, protocolVersionEncoder, encodeProtocolVersion, decodeProtocolVersion, init_protocolVersion, capabilitiesEncoder, encodeCapabilities, decodeCapabilities, init_capabilities, leafNodeSources, leafNodeSourceEncoder, encodeLeafNodeSource, decodeLeafNodeSource, init_leafNodeSource, lifetimeEncoder, encodeLifetime, decodeLifetime, defaultLifetime, init_lifetime, leafNodeDataEncoder, encodeLeafNodeData, decodeLeafNodeData, leafNodeInfoKeyPackageEncoder, encodeLeafNodeInfoKeyPackage, leafNodeInfoUpdateOmittedEncoder, encodeLeafNodeInfoUpdateOmitted, leafNodeInfoCommitOmittedEncoder, encodeLeafNodeInfoCommitOmitted, leafNodeInfoOmittedEncoder, encodeLeafNodeInfoOmitted, decodeLeafNodeInfoKeyPackage, decodeLeafNodeInfoUpdateOmitted, decodeLeafNodeInfoCommitOmitted, decodeLeafNodeInfoOmitted, leafNodeInfoUpdateEncoder, encodeLeafNodeInfoUpdate, leafNodeInfoCommitEncoder, encodeLeafNodeInfoCommit, leafNodeInfoEncoder, encodeLeafNodeInfo, decodeLeafNodeInfoUpdate, decodeLeafNodeInfoCommit, decodeLeafNodeInfo, leafNodeTBSEncoder, encodeLeafNodeTBS, leafNodeEncoder, encodeLeafNode, decodeLeafNode, decodeLeafNodeKeyPackage, decodeLeafNodeCommit, decodeLeafNodeUpdate, init_leafNode, keyPackageTBSEncoder, encodeKeyPackageTBS, decodeKeyPackageTBS, keyPackageEncoder, encodeKeyPackage, decodeKeyPackage, init_keyPackage, init_kdf, pskTypes, pskTypeEncoder, encodePskType, decodePskType, resumptionPSKUsages, resumptionPSKUsageEncoder, encodeResumptionPSKUsage, decodeResumptionPSKUsage, encodePskInfoExternal, encodePskInfoResumption, decodePskInfoResumption, pskInfoEncoder, encodePskInfo, decodePskInfo, pskIdEncoder, encodePskId, decodePskId, pskLabelEncoder, encodePskLabel, decodePskLabel, init_presharedkey, addEncoder, encodeAdd, decodeAdd, updateEncoder, encodeUpdate, decodeUpdate, removeEncoder, encodeRemove, decodeRemove, pskEncoder, encodePSK, decodePSK, reinitEncoder, encodeReinit, decodeReinit, externalInitEncoder, encodeExternalInit, decodeExternalInit, groupContextExtensionsEncoder, encodeGroupContextExtensions, decodeGroupContextExtensions, proposalAddEncoder, encodeProposalAdd, proposalUpdateEncoder, encodeProposalUpdate, proposalRemoveEncoder, encodeProposalRemove, proposalPSKEncoder, encodeProposalPSK, proposalReinitEncoder, encodeProposalReinit, proposalExternalInitEncoder, encodeProposalExternalInit, proposalGroupContextExtensionsEncoder, encodeProposalGroupContextExtensions, proposalCustomEncoder, encodeProposalCustom, proposalEncoder, encodeProposal, decodeProposalAdd, decodeProposalUpdate, decodeProposalRemove, decodeProposalPSK, decodeProposalReinit, decodeProposalExternalInit, decodeProposalGroupContextExtensions, decodeProposal, init_proposal, proposalOrRefTypes, proposalOrRefTypeEncoder, encodeProposalOrRefType, decodeProposalOrRefType, proposalOrRefProposalEncoder, encodeProposalOrRefProposal, proposalOrRefProposalRefEncoder, encodeProposalOrRefProposalRef, proposalOrRefEncoder, encodeProposalOrRef, decodeProposalOrRef, init_proposalOrRefType, init_hpke, groupContextEncoder, encodeGroupContext, decodeGroupContext, init_groupContext, nodeTypes, nodeTypeEncoder, encodeNodeType, decodeNodeType, init_nodeType, parentNodeEncoder, encodeParentNode, decodeParentNode, init_parentNode, init_treemath, nodeEncoder, encodeNode, decodeNode, ratchetTreeEncoder, encodeRatchetTree, decodeRatchetTree, init_ratchetTree, leafNodeHashInputEncoder, encodeLeafNodeHashInput, decodeLeafNodeHashInput, parentNodeHashInputEncoder, encodeParentNodeHashInput, decodeParentNodeHashInput, treeHashInputEncoder, encodeTreeHashInput, decodeTreeHashInput, init_treeHash, parentHashInputEncoder, encodeParentHashInput, decodeParentHashInput, init_parentHash, hpkeCiphertextEncoder, encodeHpkeCiphertext, decodeHpkeCiphertext, init_hpkeCiphertext, updatePathNodeEncoder, encodeUpdatePathNode, decodeUpdatePathNode, updatePathEncoder, encodeUpdatePath, decodeUpdatePath, init_updatePath, commitEncoder, encodeCommit, decodeCommit, init_commit, contentTypes, contentTypeEncoder, encodeContentType, decodeContentType, init_contentType, wireformats, wireformatEncoder, encodeWireformat, decodeWireformat, init_wireformat, senderTypes, senderTypeEncoder, encodeSenderType, decodeSenderType, senderEncoder, encodeSender, decodeSender, reuseGuardEncoder, encodeReuseGuard, decodeReuseGuard, senderDataEncoder, encodeSenderData, decodeSenderData, senderDataAADEncoder, encodeSenderDataAAD, decodeSenderDataAAD, init_sender, framedContentApplicationDataEncoder, encodeFramedContentApplicationData, framedContentProposalDataEncoder, encodeFramedContentProposalData, framedContentCommitDataEncoder, encodeFramedContentCommitData, framedContentInfoEncoder, encodeFramedContentInfo, decodeFramedContentApplicationData, decodeFramedContentProposalData, decodeFramedContentCommitData, decodeFramedContentInfo, framedContentEncoder, encodeFramedContent, decodeFramedContent, senderInfoEncoder, encodeSenderInfo, framedContentTBSEncoder, encodeFramedContentTBS, encodeFramedContentAuthDataContent, encodeFramedContentAuthDataCommit, framedContentAuthDataEncoder, encodeFramedContentAuthData, decodeFramedContentAuthDataCommit, init_framedContent, authenticatedContentEncoder, encodeAuthenticatedContent, decodeAuthenticatedContent, authenticatedContentTBMEncoder, encodeAuthenticatedContentTBM, init_authenticatedContent, publicMessageInfoEncoder, encodePublicMessageInfo, publicMessageEncoder, encodePublicMessage, decodePublicMessage, init_publicMessage, init_messageProtectionPublic, init_externalProposal, requiredCapabilitiesEncoder, encodeRequiredCapabilities, decodeRequiredCapabilities, init_requiredCapabilities, defaultAuthenticationService, init_authenticationService, defaultPaddingConfig, init_paddingConfig, defaultKeyPackageEqualityConfig, init_keyPackageEqualityConfig, defaultLifetimeConfig, init_lifetimeConfig, defaultKeyRetentionConfig, init_keyRetentionConfig, groupInfoTBSEncoder, encodeGroupInfoTBS, decodeGroupInfoTBS, groupInfoEncoder, encodeGroupInfo, decodeGroupInfo, init_groupInfo, keyScheduleEncoder, encodeKeySchedule, decodeKeySchedule, init_keySchedule, generationSecretEncoder, decodeGenerationSecret, secretTreeNodeEncoder, decodeSecretTreeNode, secretTreeEncoder, decodeSecretTree, init_secretTree, confirmedTranscriptHashInputEncoder, encodeConfirmedTranscriptHashInput, decodeConfirmedTranscriptHashInput, init_transcriptHash, groupSecretsEncoder, encodeGroupSecrets, decodeGroupSecrets, init_groupSecrets, encryptedGroupSecretsEncoder, encodeEncryptedGroupSecrets, decodeEncryptedGroupSecrets, welcomeEncoder, encodeWelcome, decodeWelcome, init_welcome, init_pathSecrets, privateKeyPathEncoder, decodePrivateKeyPath, init_privateKeyPath, proposalWithSenderEncoder, decodeProposalWithSender, unappliedProposalsEncoder, decodeUnappliedProposals, init_unappliedProposals, emptyPskIndex, init_pskIndex, init_addToMap, defaultClientConfig, init_clientConfig, init_array, stringEncoder, encodeString, decodeString, init_string, activeEncoder, suspendedPendingReinitEncoder, removedFromGroupEncoder, groupActiveStateEncoder, decodeGroupActiveState, init_groupActiveState, epochReceiverDataEncoder, decodeEpochReceiverData, init_epochReceiverData, groupStateEncoder, encodeGroupState, decodeGroupState, groupStateEncoderWithoutTree, encodeGroupStateWithoutTree, emptyProposals, init_clientState, privateMessageEncoder, encodePrivateMessage, decodePrivateMessage, privateContentAADEncoder, encodePrivateContentAAD, decodePrivateContentAAD, init_privateMessage, init_messageProtection, init_createMessage, init_createCommit, init_processMessages, init_makeHashImpl, HpkeError, InvalidParamError, SerializeError, DeserializeError, EncapError, DecapError, ExportError, SealError, OpenError, MessageLimitReachedError, DeriveKeyPairError, NotSupportedError, init_errors, dntGlobals, dntGlobalThis, init_dnt_shims, NativeAlgorithm, init_algorithm, Mode, KemId, KdfId, AeadId, init_identifiers, INPUT_LENGTH_LIMIT, INFO_LENGTH_LIMIT, MINIMUM_PSK_LENGTH, EMPTY, BYTE_TO_BIGINT_256, init_consts, SUITE_ID_HEADER_KEM, init_kemInterface, HPKE_VERSION, HkdfNative, HkdfSha256Native, HkdfSha384Native, HkdfSha512Native, init_hkdf, isCryptoKeyPair, init_misc, LABEL_EAE_PRK, LABEL_SHARED_SECRET, Dhkem, init_dhkem, KEM_USAGES, LABEL_DKP_PRK, LABEL_SK, init_dhkemPrimitives, Bignum, init_bignum, LABEL_CANDIDATE, ORDER_P_256, ORDER_P_384, ORDER_P_521, PKCS8_ALG_ID_P_256, PKCS8_ALG_ID_P_384, PKCS8_ALG_ID_P_521, EC_P_256_PARAMS, EC_P_384_PARAMS, EC_P_521_PARAMS, Ec, init_ec, init_xCryptoKey, init_xCurve, init_hybridkem, AEAD_USAGES, init_aeadEncryptionContext, _endianTestBuffer, _endianTestBytes, isLE2, init_noble, init_hash2, _HMAC, hmac, init_hmac, init_md2, U32_MASK642, _32n2, init_u642, init_sha2, _0n, _1n, _2n, _7n, _256n, _0x71n, SHA3_PI, SHA3_ROTL, _SHA3_IOTA, IOTAS, SHA3_IOTA_H, SHA3_IOTA_L, init_sha3, init_modular, init_curve, init_montgomery, init_mod, AesGcmContext, Aes128Gcm, Aes256Gcm, init_aesGcm, init_exportOnly, init_emitNotSupported, LABEL_SEC, ExporterContextImpl, RecipientExporterContextImpl, SenderExporterContextImpl, init_exporterContext, EncryptionContextImpl, init_encryptionContext, __classPrivateFieldGet, __classPrivateFieldSet, _Mutex_locked, Mutex, init_mutex, __classPrivateFieldGet2, __classPrivateFieldSet2, _RecipientContextImpl_mutex, RecipientContextImpl, init_recipientContext, __classPrivateFieldGet3, __classPrivateFieldSet3, _SenderContextImpl_mutex, SenderContextImpl, init_senderContext, LABEL_BASE_NONCE, LABEL_EXP, LABEL_INFO_HASH, LABEL_KEY, LABEL_PSK_ID_HASH, LABEL_SECRET, SUITE_ID_HEADER_HPKE, CipherSuiteNative, init_cipherSuiteNative, DhkemP256HkdfSha256Native, DhkemP384HkdfSha384Native, DhkemP521HkdfSha512Native, init_dhkemNative, CipherSuite, DhkemP256HkdfSha256, DhkemP384HkdfSha384, DhkemP521HkdfSha512, HkdfSha256, HkdfSha384, HkdfSha512, init_native, ALG_NAME, PKCS8_ALG_ID_X25519, BASE_POINT_X25519, X25519, init_x25519, DhkemX25519HkdfSha256, init_dhkemX25519, PKCS8_ALG_ID_X448, init_x448, init_dhkemX448, init_mod2, init_hpke2, isLE3, wrapCipher, init_utils2, encodeStr, sigma16, sigma32, sigma16_32, sigma32_32, BLOCK_LEN, BLOCK_LEN32, MAX_COUNTER, U32_EMPTY, _XorStreamPRG, createPRG, init_arx, Poly1305, poly1305, init_poly1305, chacha_exports, chacha20orig, chacha20, xchacha20, chacha8, chacha12, ZEROS16, updatePadded, ZEROS32, _poly1305_aead, chacha20poly1305, xchacha20poly1305, rngChacha20, rngChacha8, init_chacha, init_makeAead, init_makeKdfImpl, init_makeDhKem, init_makeHpke, defaultRng, init_rng, crypto3, init_cryptoNode, isLE4, swap32IfBE3, hasHexBuiltin2, hexes2, asciis, Hash, init_utils3, HashMD3, SHA256_IV3, SHA384_IV3, SHA512_IV3, init_md3, U32_MASK643, _32n3, shrSH3, shrSL3, rotrSH3, rotrSL3, rotrBH3, rotrBL3, rotlSH2, rotlSL2, rotlBH2, rotlBL2, add3L3, add3H3, add4L3, add4H3, add5L3, add5H3, init_u643, SHA256_K, SHA256_W, SHA256, K512, SHA512_Kh, SHA512_Kl, SHA512_W_H, SHA512_W_L, SHA512, SHA384, sha2563, sha5122, sha3842, init_sha22, _0n2, _1n2, isPosBig, bitMask, notImplemented, init_utils4, _0n3, _1n3, _2n2, _3n, _4n, _5n, _7n2, _8n, _9n, _16n, isNegativeLE, FIELD_FIELDS, init_modular2, _0n4, _1n4, pointPrecomputes, pointWindowSizes, wNAF, init_curve2, _0n5, _1n5, _2n3, _8n2, PrimeEdwardsPoint, init_edwards, os2ip, _DST_scalar, init_hash_to_curve, _0n6, _1n6, _2n4, init_montgomery2, ed25519_exports, _0n7, _1n7, _2n5, _3n2, _5n2, _8n3, ed25519_CURVE_p, ed25519_CURVE, ED25519_SQRT_M1, Fp, Fn, ed25519Defaults, ed25519, ed25519ctx, ed25519ph, x25519, ELL2_C1, ELL2_C2, ELL2_C3, ELL2_C1_EDWARDS, ed25519_hasher, SQRT_M1, SQRT_AD_MINUS_ONE, INVSQRT_A_MINUS_D, ONE_MINUS_D_SQ, D_MINUS_ONE_SQ, invertSqrt, MAX_255B, bytes255ToNumberLE, _RistrettoPoint, ristretto255, ristretto255_hasher, ED25519_TORSION_SUBGROUP, edwardsToMontgomery, RistrettoPoint, hashToCurve, encodeToCurve, hashToRistretto255, hash_to_ristretto255, init_ed25519, _0n8, _1n8, _2n6, _7n3, _256n2, _0x71n2, SHA3_PI2, SHA3_ROTL2, _SHA3_IOTA2, IOTAS2, SHA3_IOTA_H2, SHA3_IOTA_L2, rotlH, rotlL, Keccak, genShake, shake2562, init_sha32, ed448_exports, ed448_CURVE, E448_CURVE, shake256_114, shake256_64, _1n9, _2n7, _3n3, _4n2, _11n, _22n, _44n, _88n, _223n, Fp2, Fn2, Fp448, Fn448, ED448_DEF, ed448, ed448ph, E448, x448, ELL2_C12, ELL2_J, ed448_hasher, ONE_MINUS_D, ONE_MINUS_TWO_D, SQRT_MINUS_D, INVSQRT_MINUS_D, invertSqrt2, _DecafPoint, decaf448, decaf448_hasher, ED448_TORSION_SUBGROUP, DecafPoint, hashToCurve2, encodeToCurve2, hashToDecaf448, hash_to_decaf448, edwardsToMontgomery2, init_ed448, HMAC, hmac2, init_hmac2, divNearest, DERErr, DER, _0n9, _1n10, _2n8, _3n4, _4n3, init_weierstrass, init_shortw_utils, nist_exports, p256_CURVE, p384_CURVE, p521_CURVE, Fp256, Fp384, Fp521, p256, p256_hasher, p384, p384_hasher, p521, secp256r1, secp384r1, secp521r1, p521_hasher, init_nist, init_makeNobleSignatureImpl, defaultCryptoProvider, init_provider, init_getCiphersuiteImpl, init_resumption, SHA256_K2, SHA256_W2, SHA2_32B, _SHA256, K5122, SHA512_Kh2, SHA512_Kl2, SHA512_W_H2, SHA512_W_L2, SHA2_64B, _SHA512, _SHA384, sha2564, sha5123, sha3843, init_sha23, _HMAC2, hmac3, init_hmac3, init_makeHashImpl2, init_makeNobleSignatureImpl2, BLOCK_SIZE, ZEROS162, ZEROS322, POLY, mul2, swapLE, estimateWindow, GHASH, Polyval, ghash, polyval, init_polyval, BLOCK_SIZE2, BLOCK_SIZE32, EMPTY_BLOCK, POLY2, sbox, rotr32_8, rotl32_8, tableEncoding, xPowers, gcm, _CMAC, cmac, init_aes, init_makeAead2, init_makeKdfImpl2, init_makeDhKem2, init_makeHpke2, init_rng2, nobleCryptoProvider, init_provider2, mlsPublicMessageEncoder, encodeMlsPublicMessage, mlsWelcomeEncoder, encodeMlsWelcome, mlsPrivateMessageEncoder, encodeMlsPrivateMessage, mlsGroupInfoEncoder, encodeMlsGroupInfo, mlsKeyPackageEncoder, encodeMlsKeyPackage, mlsMessageContentEncoder, encodeMlsMessageContent, decodeMlsMessageContent, mlsMessageEncoder, encodeMlsMessage, decodeMlsMessage, init_message, greaseValues, defaultGreaseConfig, init_grease, init_defaultCapabilities, init_src, DEFAULT_CIPHERSUITE, MLSGroupManager, init_mls_group, DOMAIN, NONCE_BYTES3, init_owner_sync, init_mls_delivery_order, init_mls_presend_epoch, dist_exports, init_dist2, DIR_MODE, FILE_MODE, init_secure_file, SYNC_LOCK_STALE_MS, pendingKpPath, DECRYPTED_IDS_FILE, init_mls_state, init_mls_kp_pool, PACKAGE, FALLBACK, MAX_LEN, DISALLOWED, init_client_version, CredentialStore, init_credential_store, init_crypto_helpers, STATE_FILE, LEGACY_STATE_FILE, init_state, ACTIVATION_DOMAIN, UUID_RE2, init_transport2, A2ALogGate, init_a2a_log_gate, NOT_A_MEMBER_DETAIL, init_mls_membership_probe, FIRST_DIRTY_DELAY_MS, RETRY_BASE_DELAYS_MS, MAX_RETRY_DELAY_MS, JITTER_FRACTION, HistoryBackupScheduler, init_history_backup_scheduler, FILE_MODE2, init_history_recovery_file, TENANT_ID_PATTERN, DIR_MODE2, FILE_MODE3, HISTORY_RECOVERY_VERIFY_TIMEOUT_MS, VERIFY_TIMEOUT_MESSAGE, HistoryRecoveryVerificationTimeoutError, init_history_recovery_code, ACTIONS, init_decision_reply, KP_BACKOFF_INITIAL_MS, KP_BACKOFF_MAX_MS, KP_RACE_RETRY_MS, KP_RACE_RETRY_LIMIT, consoleLogger, short, WelcomeKeyPackageBackoff, init_welcome_kp_backoff, history_backup_client_exports, HISTORY_RESTORE_TIMEOUT_MS, HISTORY_RESTORE_RESPONSE_MAX_BYTES, HISTORY_ENVELOPE_MIN_BYTES, HISTORY_AAD_PREFIX, UUID_RE3, GENERATION_RESPONSE_KEYS, utf8Encoder, utf8Decoder, HistoryBackupClient, init_history_backup_client, openclaw_compat_exports, defaultImporter, HEARTBEAT_CANDIDATES, _heartbeatFn, init_openclaw_compat, TOOL_INVOKE_SPAN_NAME, UNCLASSIFIED_ERROR, KNOWN_TOOL_ERROR_CODES, KNOWN_CODES, CLASS_NAME_RE, TOOL_NAME_RE, ERROR_TEXT_CODES, _conversation, init_tool_telemetry, http_handlers_exports, init_http_handlers, mcp_proxy_helpers_exports, init_mcp_proxy_helpers, workspace_handlers_exports, MAX_FILE_SIZE, init_workspace_handlers, ROOM_AGENT_TYPES, CREDENTIAL_MESSAGE_TYPES, CATCHUP_MESSAGE_TYPES, POLL_INTERVAL_MS, RECONNECT_BASE_MS, UUID_RE4, RECONNECT_MAX_MS, PENDING_POLL_INTERVAL_MS, HISTORY_RESTORE_TIMEOUT_MS2, ROOM_ROSTER_REFRESH_TIMEOUT_MS, HISTORY_UPLOAD_TIMEOUT_MS, CANONICAL_TIMESTAMP_RE, OUTBOUND_DEDUPE_WINDOW_MS, OUTBOUND_DEDUPE_MAX_SUPPRESS_MS, OUTBOUND_DEDUPE_MAX, OUTBOUND_DEDUPE_TYPES, RETRY_CANDIDATE_TTL_MS, RETRY_CANDIDATE_MAX, _turnConversation, PERSON_INVOLVED_WINDOW_MS, ATTESTED_INBOUND_MAX, UNMAPPED_RECONCILE_COOLDOWN_MS, TOPIC_ID_RE, ROOM_FULFIL_COOLDOWN_MS, SecureChannel, init_channel, init_types, DEFAULT_API_URL, DEFAULT_HTTP_PORT, init_account_config, init_lifecycle, _ocRuntime, _channels, agentVaultPlugin, init_openclaw_plugin, init_gateway_send, init_llm_response_parser, OPENROUTER_PRICING, init_llm_pricing_openrouter, LEGACY_PRICING, PRICING, init_llm_cost, traceStore, init_fetch_interceptor, init_tool_audit, init_harness_compat, TURN_FAILURE_CODES, CODES, TurnFailure, NOTICE_RE, init_turn_failure, AUTH_RE, BILLING_RE, RATE_RE, MODEL_GONE_RE, UNREACHABLE_RE, init_openclaw_turn_failure, managedRoutesRequested, init_openclaw_entry, util, objectUtil, ZodParsedType, getParsedType, init_util, ZodIssueCode, ZodError, init_ZodError, errorMap, en_default, init_en, overrideErrorMap, init_errors2, makeIssue, ParseStatus, INVALID, DIRTY, OK, isAborted, isDirty, isValid, isAsync, init_parseUtil, init_typeAliases, errorUtil, init_errorUtil, ParseInputLazyPath, handleResult, ZodType, cuidRegex, cuid2Regex, ulidRegex, uuidRegex, nanoidRegex, jwtRegex, durationRegex, emailRegex, _emojiRegex, emojiRegex, ipv4Regex, ipv4CidrRegex, ipv6Regex, ipv6CidrRegex, base64Regex, base64urlRegex, dateRegexSource, dateRegex, ZodString, ZodNumber, ZodBigInt, ZodBoolean, ZodDate, ZodSymbol, ZodUndefined, ZodNull, ZodAny, ZodUnknown, ZodNever, ZodVoid, ZodArray, ZodObject, ZodUnion, getDiscriminator, ZodDiscriminatedUnion, ZodIntersection, ZodTuple, ZodRecord, ZodMap, ZodSet, ZodFunction, ZodLazy, ZodLiteral, ZodEnum, ZodNativeEnum, ZodPromise, ZodEffects, ZodOptional, ZodNullable, ZodDefault, ZodCatch, ZodNaN, ZodBranded, ZodPipeline, ZodReadonly, late, ZodFirstPartyTypeKind, stringType, numberType, nanType, bigIntType, booleanType, dateType, symbolType, undefinedType, nullType, anyType, unknownType, neverType, voidType, arrayType, objectType, strictObjectType, unionType, discriminatedUnionType, intersectionType, tupleType, recordType, mapType, setType, functionType, lazyType, literalType, enumType, nativeEnumType, promiseType, effectsType, optionalType, nullableType, preprocessType, pipelineType, init_types2, init_external, init_v3, util_exports, Cached, EVALUATING, captureStackTrace, allowsEval, getParsedType2, propertyKeyTypes, primitiveTypes, NUMBER_FORMAT_RANGES, BIGINT_FORMAT_RANGES, highSurrogate, Class, installing, broke, breaker, CONSTANT_CATCH, init_util2, _a2, _zodDesc, _E, $ZodAsyncError, $ZodEncodeError, globalConfig, init_core, _messageDesc, _issuesDesc, _installedToString, initializer, $ZodError, $ZodRealError, init_errors3, _parse, parse, _parseAsync, parseAsync, _safeParse, safeParse, _safeParseAsync, safeParseAsync, COMPILE_INVALID, COMPILE_FALLBACK, validate, validateAsync, _encode, _decode, _encodeAsync, _decodeAsync, _safeEncode, _safeDecode, _safeEncodeAsync, _safeDecodeAsync, init_parse, cuid, cuid2, ulid, xid, ksuid, nanoid, duration, guid, uuid, email, _emoji, ipv4, ipv6, cidrv4, cidrv6, base64, base64url, httpProtocol, e164, dateSource, date, anyString, integer, number, boolean, _null, lowercase, uppercase, init_regexes, $ZodCheck, _whenHasLength, numericOriginMap, $ZodCheckLessThan, $ZodCheckGreaterThan, $ZodCheckMultipleOf, $ZodCheckNumberFormat, $ZodCheckMaxLength, $ZodCheckMinLength, $ZodCheckLengthEquals, $ZodCheckStringFormat, $ZodCheckRegex, $ZodCheckLowerCase, $ZodCheckUpperCase, $ZodCheckIncludes, $ZodCheckStartsWith, $ZodCheckEndsWith, $ZodCheckOverwrite, init_checks, Doc, init_doc, version, init_versions, $ZodType, toStandardResult, $ZodString, $ZodStringFormat, $ZodGUID, $ZodUUID, $ZodEmail, URL_BAD_FORMAT, URL_UNPARSEABLE, asciiTabOrNewline, $ZodURL, $ZodEmoji, $ZodNanoID, $ZodCUID, $ZodCUID2, $ZodULID, $ZodXID, $ZodKSUID, $ZodISODateTime, $ZodISODate, $ZodISOTime, $ZodISODuration, $ZodIPv4, ipv6Alphabet, $ZodIPv6, $ZodCIDRv4, $ZodCIDRv6, base64Charset, $ZodBase64, base64urlCharset, $ZodBase64URL, $ZodE164, $ZodJWT, $ZodNumber, $ZodNumberFormat, $ZodBoolean, $ZodNull, $ZodUnknown, $ZodNever, arraySize, $ZodArray, NO_SYMBOL_KEYS, $ZodObject, $ZodObjectJIT, $ZodUnion, $ZodDiscriminatedUnion, $ZodIntersection, $ZodRecord, $ZodEnum, $ZodLiteral, $ZodTransform, $ZodOptional, $ZodExactOptional, $ZodNullable, $ZodDefault, $ZodPrefault, $ZodNonOptional, $ZodCatch, $ZodPipe, $ZodPreprocess, $ZodReadonly, $ZodCustom, init_schemas, $ZodCyclicError, STATE, NO_ISSUES, recursive, NONE, ASSUMED, PROVEN, handoff, open4, memo, init_memoizer, error, init_en2, init_locales, _a3, $ZodRegistry, globalRegistry, init_registries, init_compile, init_api, FOLDABLE_KEYS, UNION_KEYS, createToJSONSchemaMethod, createStandardJSONSchemaMethod, init_to_json_schema, narrowMin, narrowMax, narrowBoth, addDivisor, addPattern, intersectMime, setFormat, minContributor, maxContributor, formatContributor, contributors, formatMap, exactPatterns, exactPattern, stringProcessor, numberProcessor, booleanProcessor, bigintProcessor, symbolProcessor, nullProcessor, undefinedProcessor, voidProcessor, neverProcessor, anyProcessor, unknownProcessor, dateProcessor, enumProcessor, literalProcessor, nanProcessor, templateLiteralProcessor, fileProcessor, successProcessor, customProcessor, functionProcessor, transformProcessor, mapProcessor, setProcessor, arrayProcessor, objectProcessor, unionProcessor, intersectionProcessor, tupleProcessor, pendingRecords, recordProcessor, nullableProcessor, nonoptionalProcessor, UNREPRESENTABLE_DEFAULT, defaultProcessor, prefaultProcessor, catchProcessor, pipeProcessor, readonlyProcessor, promiseProcessor, optionalProcessor, lazyProcessor, allProcessors, init_json_schema_processors, init_json_schema, init_core2, init_parse2, ZodMiniType, ZodMiniObject, init_schemas2, init_checks2, init_iso, init_coerce, init_external2, init_v4_mini, init_zod_compat, init_checks3, _installedErrorProtos, initializer2, ZodRealError, init_errors4, parse2, parseAsync2, safeParse3, safeParseAsync3, encode3, decode2, encodeAsync2, decodeAsync2, safeEncode2, safeDecode2, safeEncodeAsync2, safeDecodeAsync2, init_parse3, ZodType2, _ZodString, ZodString2, ZodStringFormat, ZodISODateTime, ZodISODate, ZodISOTime, ZodISODuration, ZodEmail, ZodGUID, ZodUUID, ZodURL, ZodEmoji, ZodNanoID, ZodCUID, ZodCUID2, ZodULID, ZodXID, ZodKSUID, ZodIPv4, ZodIPv6, ZodCIDRv4, ZodCIDRv6, ZodBase64, ZodBase64URL, ZodE164, ZodJWT, ZodNumber2, ZodNumberFormat, ZodBoolean2, ZodNull2, ZodUnknown2, ZodNever2, ZodArray2, ZodObject2, ZodUnion2, ZodDiscriminatedUnion2, ZodIntersection2, ZodRecord2, ZodEnum2, ZodLiteral2, ZodTransform, ZodOptional2, ZodExactOptional, ZodNullable2, ZodDefault2, ZodPrefault, ZodNonOptional, ZodCatch2, ZodPipe, ZodPreprocess, ZodReadonly2, ZodCustom, init_schemas3, ZodFirstPartyTypeKind2, init_compat, iso_exports2, init_iso2, init_coerce2, init_external3, init_classic, init_v4, LATEST_PROTOCOL_VERSION, DEFAULT_NEGOTIATED_PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS, RELATED_TASK_META_KEY, JSONRPC_VERSION, AssertObjectSchema, ProgressTokenSchema, CursorSchema, TaskCreationParamsSchema, TaskMetadataSchema, RelatedTaskMetadataSchema, RequestMetaSchema, BaseRequestParamsSchema, TaskAugmentedRequestParamsSchema, isTaskAugmentedRequestParams, RequestSchema, NotificationsParamsSchema, NotificationSchema, ResultSchema, RequestIdSchema, JSONRPCRequestSchema, isJSONRPCRequest, JSONRPCNotificationSchema, isJSONRPCNotification, JSONRPCResultResponseSchema, isJSONRPCResultResponse, ErrorCode, JSONRPCErrorResponseSchema, isJSONRPCErrorResponse, JSONRPCMessageSchema, JSONRPCResponseSchema, EmptyResultSchema, CancelledNotificationParamsSchema, CancelledNotificationSchema, IconSchema, IconsSchema, BaseMetadataSchema, ImplementationSchema, FormElicitationCapabilitySchema, ElicitationCapabilitySchema, ClientTasksCapabilitySchema, ServerTasksCapabilitySchema, ClientCapabilitiesSchema, InitializeRequestParamsSchema, InitializeRequestSchema, isInitializeRequest, ServerCapabilitiesSchema, InitializeResultSchema, InitializedNotificationSchema, PingRequestSchema, ProgressSchema, ProgressNotificationParamsSchema, ProgressNotificationSchema, PaginatedRequestParamsSchema, PaginatedRequestSchema, PaginatedResultSchema, TaskStatusSchema, TaskSchema, CreateTaskResultSchema, TaskStatusNotificationParamsSchema, TaskStatusNotificationSchema, GetTaskRequestSchema, GetTaskResultSchema, GetTaskPayloadRequestSchema, GetTaskPayloadResultSchema, ListTasksRequestSchema, ListTasksResultSchema, CancelTaskRequestSchema, CancelTaskResultSchema, ResourceContentsSchema, TextResourceContentsSchema, Base64Schema, BlobResourceContentsSchema, RoleSchema, AnnotationsSchema, ResourceSchema, ResourceTemplateSchema, ListResourcesRequestSchema, ListResourcesResultSchema, ListResourceTemplatesRequestSchema, ListResourceTemplatesResultSchema, ResourceRequestParamsSchema, ReadResourceRequestParamsSchema, ReadResourceRequestSchema, ReadResourceResultSchema, ResourceListChangedNotificationSchema, SubscribeRequestParamsSchema, SubscribeRequestSchema, UnsubscribeRequestParamsSchema, UnsubscribeRequestSchema, ResourceUpdatedNotificationParamsSchema, ResourceUpdatedNotificationSchema, PromptArgumentSchema, PromptSchema, ListPromptsRequestSchema, ListPromptsResultSchema, GetPromptRequestParamsSchema, GetPromptRequestSchema, TextContentSchema, ImageContentSchema, AudioContentSchema, ToolUseContentSchema, EmbeddedResourceSchema, ResourceLinkSchema, ContentBlockSchema, PromptMessageSchema, GetPromptResultSchema, PromptListChangedNotificationSchema, ToolAnnotationsSchema, ToolExecutionSchema, ToolSchema, ListToolsRequestSchema, ListToolsResultSchema, CallToolResultSchema, CompatibilityCallToolResultSchema, CallToolRequestParamsSchema, CallToolRequestSchema, ToolListChangedNotificationSchema, ListChangedOptionsBaseSchema, LoggingLevelSchema, SetLevelRequestParamsSchema, SetLevelRequestSchema, LoggingMessageNotificationParamsSchema, LoggingMessageNotificationSchema, ModelHintSchema, ModelPreferencesSchema, ToolChoiceSchema, ToolResultContentSchema, SamplingContentSchema, SamplingMessageContentBlockSchema, SamplingMessageSchema, CreateMessageRequestParamsSchema, CreateMessageRequestSchema, CreateMessageResultSchema, CreateMessageResultWithToolsSchema, BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema, UntitledSingleSelectEnumSchemaSchema, TitledSingleSelectEnumSchemaSchema, LegacyTitledEnumSchemaSchema, SingleSelectEnumSchemaSchema, UntitledMultiSelectEnumSchemaSchema, TitledMultiSelectEnumSchemaSchema, MultiSelectEnumSchemaSchema, EnumSchemaSchema, PrimitiveSchemaDefinitionSchema, ElicitRequestFormParamsSchema, ElicitRequestURLParamsSchema, ElicitRequestParamsSchema, ElicitRequestSchema, ElicitationCompleteNotificationParamsSchema, ElicitationCompleteNotificationSchema, ElicitResultSchema, ResourceTemplateReferenceSchema, PromptReferenceSchema, CompleteRequestParamsSchema, CompleteRequestSchema, CompleteResultSchema, RootSchema, ListRootsRequestSchema, ListRootsResultSchema, RootsListChangedNotificationSchema, ClientRequestSchema, ClientNotificationSchema, ClientResultSchema, ServerRequestSchema, ServerNotificationSchema, ServerResultSchema, McpError, UrlElicitationRequiredError, init_types3, init_interfaces, ignoreOverride, defaultOptions, getDefaultOptions, init_Options, getRefs, init_Refs, init_errorMessages, getRelativePath, init_getRelativePath, init_any, init_array2, init_bigint, init_boolean, init_branded, parseCatchDef, init_catch, integerDateParser, init_date, init_default, init_effects, init_enum, isJsonSchema7AllOfType, init_intersection, init_literal, emojiRegex2, zodPatterns, ALPHA_NUMERIC, init_string2, init_record, init_map, init_nativeEnum, init_never, init_null, primitiveMappings, asAnyOf, init_union, init_nullable, init_number2, init_object, parseOptionalDef, init_optional2, parsePipelineDef, init_pipeline, init_promise, init_set, init_tuple, init_undefined, init_unknown, parseReadonlyDef, init_readonly, selectParser, init_selectParser, get$ref, addMeta, init_parseDef, init_parseTypes, zodToJsonSchema, init_zodToJsonSchema, init_esm, init_zod_json_schema_compat, DEFAULT_REQUEST_TIMEOUT_MSEC, Protocol, init_protocol, require_code, require_scope, require_codegen, require_util, require_names, require_errors, require_boolSchema, require_rules, require_applicability, require_dataType, require_defaults, require_code2, require_keyword, require_subschema, require_fast_deep_equal, require_json_schema_traverse, require_resolve, require_validate, require_validation_error, require_ref_error, require_compile, require_data, require_utils, require_schemes, require_fast_uri, require_uri, require_core, require_id, require_ref, require_core2, require_limitNumber, require_multipleOf, require_ucs2length, require_limitLength, require_pattern, require_limitProperties, require_required, require_limitItems, require_equal, require_uniqueItems, require_const, require_enum, require_validation, require_additionalItems, require_items, require_prefixItems, require_items2020, require_contains, require_dependencies, require_propertyNames, require_additionalProperties, require_properties, require_patternProperties, require_not, require_anyOf, require_oneOf, require_allOf, require_if, require_thenElse, require_applicator, require_format, require_format2, require_metadata, require_draft7, require_types, require_discriminator, require_json_schema_draft_07, require_ajv, require_formats, require_limit, require_dist, import_ajv, import_ajv_formats, AjvJsonSchemaValidator, init_ajv_provider, ExperimentalServerTasks, init_server, init_helpers, Server, init_server2, COMPLETABLE_SYMBOL, McpZodTypeKind, init_completable, init_uriTemplate, TOOL_NAME_REGEX, init_toolNameValidation, ExperimentalMcpServerTasks, init_mcp_server, init_zod, McpServer, EMPTY_OBJECT_JSON_SCHEMA, EMPTY_COMPLETION_RESULT, init_mcp, RequestError, toRequestError, GlobalRequest, Request2, newHeadersFromIncoming, wrapBodyStream, newRequestFromIncoming, getRequestCache, requestCache, incomingKey, urlKey, headersKey, abortControllerKey, getAbortController, requestPrototype, newRequest, responseCache, getResponseCache, cacheKey, GlobalResponse, Response2, buildOutgoingHttpHeaders, X_ALREADY_SENT, outgoingEnded, handleRequestError, handleFetchError, handleResponseError, flushHeaders, responseViaCache, isPromise, responseViaResponseObject, getRequestListener, init_dist22, require_content_type, import_content_type, init_mediaType, DEFAULT_MAX_REQUEST_BODY_SIZE, MAX_BATCH_SIZE, init_requestBody, DEFAULT_SSE_KEEP_ALIVE_MS, MAX_TIMER_DELAY_MS, init_sseKeepAlive, WebStandardStreamableHTTPServerTransport, init_webStandardStreamableHttp, StreamableHTTPServerTransport, init_streamableHttp, AgentVaultMcpServer, init_mcp_server2, init_mcp_handlers, init_skill_manifest, init_skill_invoker, spanBuffer, init_skill_telemetry, PolicyEnforcer, init_policy_enforcer, VERSION, init_index;
|
|
17876
17876
|
var init_dist = __esm({
|
|
17877
17877
|
async "../plugin/dist/index.js"() {
|
|
17878
17878
|
"use strict";
|
|
@@ -73372,7 +73372,7 @@ ${text}`,
|
|
|
73372
73372
|
*/
|
|
73373
73373
|
sendActivitySpan(spanData) {
|
|
73374
73374
|
if (!this._ws || this._ws.readyState !== WebSocket.OPEN) return;
|
|
73375
|
-
const pluginVersion = true ? "0.23.
|
|
73375
|
+
const pluginVersion = true ? "0.23.66" : "0.0.0-dev";
|
|
73376
73376
|
const agentName = this.config.agentName ?? "Agent";
|
|
73377
73377
|
const resource = {
|
|
73378
73378
|
"service.name": "agentvault-agent",
|
|
@@ -75655,7 +75655,7 @@ ${text}`,
|
|
|
75655
75655
|
agentVersion: this.config.agentVersion ?? "0.0.0",
|
|
75656
75656
|
// __AV_VERSION__ is injected by esbuild from package.json at build time.
|
|
75657
75657
|
// Falls back to "0.0.0-dev" in non-bundled contexts (tests).
|
|
75658
|
-
pluginVersion: true ? "0.23.
|
|
75658
|
+
pluginVersion: true ? "0.23.66" : "0.0.0-dev"
|
|
75659
75659
|
});
|
|
75660
75660
|
this._telemetryReporter.startAutoFlush(3e4);
|
|
75661
75661
|
}
|
|
@@ -75993,7 +75993,7 @@ ${text}`,
|
|
|
75993
75993
|
agentVersion: this.config.agentVersion ?? "0.0.0",
|
|
75994
75994
|
// __AV_VERSION__ is injected by esbuild from package.json at build time.
|
|
75995
75995
|
// Falls back to "0.0.0-dev" in non-bundled contexts (tests).
|
|
75996
|
-
pluginVersion: true ? "0.23.
|
|
75996
|
+
pluginVersion: true ? "0.23.66" : "0.0.0-dev"
|
|
75997
75997
|
});
|
|
75998
75998
|
this._telemetryReporter.startAutoFlush(3e4);
|
|
75999
75999
|
}
|
|
@@ -76564,9 +76564,9 @@ ${text}`,
|
|
|
76564
76564
|
...decisionReply ? { decision: decisionReply } : {}
|
|
76565
76565
|
};
|
|
76566
76566
|
this.emit("message", text, metadata);
|
|
76567
|
-
|
|
76568
|
-
|
|
76569
|
-
}
|
|
76567
|
+
Promise.resolve(this.config.onMessage?.(text, metadata)).catch((err) => {
|
|
76568
|
+
console.error("[SecureChannel] onMessage callback error (MLS 1:1):", err);
|
|
76569
|
+
});
|
|
76570
76570
|
} catch (decryptErr) {
|
|
76571
76571
|
if (classifyCommitFailure(data.epoch, mgr?.epoch) === "already-applied") {
|
|
76572
76572
|
console.debug(`[SecureChannel] MLS 1:1 message at epoch ${String(data.epoch)} predates our epoch ${String(mgr?.epoch)} \u2014 cannot decrypt, ignoring`);
|
|
@@ -79965,7 +79965,9 @@ ${baseText}`;
|
|
|
79965
79965
|
console.log(`[SecureChannel] A2A message decrypted for ${a2aChannelId.slice(0, 8)} (epoch=${mlsGroup.epoch}, len=${historyText.length})`);
|
|
79966
79966
|
this.emit("a2a_message", a2aMsg);
|
|
79967
79967
|
if (this.config.onA2AMessage) {
|
|
79968
|
-
this.config.onA2AMessage(a2aMsg)
|
|
79968
|
+
void Promise.resolve(this.config.onA2AMessage(a2aMsg)).catch((err) => {
|
|
79969
|
+
console.error("[SecureChannel] onA2AMessage callback failed:", err instanceof Error ? err.name : "error");
|
|
79970
|
+
});
|
|
79969
79971
|
}
|
|
79970
79972
|
} catch (err) {
|
|
79971
79973
|
if (classifyCommitFailure(data.epoch, mlsGroup?.epoch) === "already-applied") {
|
|
@@ -81849,6 +81851,101 @@ ${actionsText}`);
|
|
|
81849
81851
|
"use strict";
|
|
81850
81852
|
}
|
|
81851
81853
|
});
|
|
81854
|
+
init_turn_failure = __esm2({
|
|
81855
|
+
"src/turn-failure.ts"() {
|
|
81856
|
+
"use strict";
|
|
81857
|
+
init_tool_telemetry();
|
|
81858
|
+
TURN_FAILURE_CODES = [
|
|
81859
|
+
"provider_auth_failed",
|
|
81860
|
+
"provider_billing",
|
|
81861
|
+
"model_rate_limited",
|
|
81862
|
+
"model_unavailable",
|
|
81863
|
+
"provider_unreachable",
|
|
81864
|
+
"ai_tool_unsupported",
|
|
81865
|
+
"plan_limit_reached",
|
|
81866
|
+
"model_error"
|
|
81867
|
+
];
|
|
81868
|
+
CODES = new Set(TURN_FAILURE_CODES);
|
|
81869
|
+
TurnFailure = class extends Error {
|
|
81870
|
+
code;
|
|
81871
|
+
exitCode;
|
|
81872
|
+
constructor(code, opts = {}, message = "Codex turn failed") {
|
|
81873
|
+
super(message);
|
|
81874
|
+
this.name = "TurnFailure";
|
|
81875
|
+
this.code = asTurnFailureCode(code);
|
|
81876
|
+
if (opts.exitCode !== void 0) this.exitCode = opts.exitCode;
|
|
81877
|
+
}
|
|
81878
|
+
};
|
|
81879
|
+
NOTICE_RE = /^[^\n@]{1,120} couldn't answer this message(?:\.|: [^\n]{1,200})$/;
|
|
81880
|
+
}
|
|
81881
|
+
});
|
|
81882
|
+
init_openclaw_turn_failure = __esm2({
|
|
81883
|
+
"src/openclaw-turn-failure.ts"() {
|
|
81884
|
+
"use strict";
|
|
81885
|
+
init_turn_failure();
|
|
81886
|
+
init_tool_telemetry();
|
|
81887
|
+
AUTH_RE = new RegExp(
|
|
81888
|
+
[
|
|
81889
|
+
String.raw`^Couldn't sign in to the AI service\. `,
|
|
81890
|
+
// auth, provider_authentication_error
|
|
81891
|
+
String.raw`^The AI service isn't accepting your login\. `,
|
|
81892
|
+
// auth_permanent
|
|
81893
|
+
String.raw`^Your model provider needs a new login\. `,
|
|
81894
|
+
// OAuth login recovery hint
|
|
81895
|
+
String.raw`^Your AI session expired\. `,
|
|
81896
|
+
// session_expired (a login reason in OpenClaw)
|
|
81897
|
+
String.raw`^Couldn't sign in to [^\n]{1,80}\. Your saved login looks expired or no longer works\.`,
|
|
81898
|
+
String.raw`^[^\n]{1,80} isn't accepting your saved login(?: anymore)?\.`,
|
|
81899
|
+
String.raw`^Model login (?:expired|failed) on the gateway\b`,
|
|
81900
|
+
String.raw`^This AI service isn't set up yet\. Sign in under Models`,
|
|
81901
|
+
// missing API key
|
|
81902
|
+
String.raw`^OpenAI needs a different sign-in for this model\.`
|
|
81903
|
+
].join("|"),
|
|
81904
|
+
"u"
|
|
81905
|
+
);
|
|
81906
|
+
BILLING_RE = new RegExp(
|
|
81907
|
+
[
|
|
81908
|
+
String.raw`^The AI service reported a billing problem\. `,
|
|
81909
|
+
String.raw`^[^\n]{1,160} returned a billing error — check your account`,
|
|
81910
|
+
String.raw`^[^\n]{1,80} rejected the request — looks like a billing issue on the account\.`
|
|
81911
|
+
].join("|"),
|
|
81912
|
+
"u"
|
|
81913
|
+
);
|
|
81914
|
+
RATE_RE = new RegExp(
|
|
81915
|
+
[
|
|
81916
|
+
String.raw`^The AI service needs a short break\. Please try again in (?:a few minutes|~\d{1,5}(?:s| min))\.$`,
|
|
81917
|
+
String.raw`^The AI services are busy\. Please try again in a few minutes\.$`,
|
|
81918
|
+
String.raw`^[^\n]{1,80} is asking us to slow down\. Please wait a moment before trying again\.`,
|
|
81919
|
+
String.raw`^The AI service can't accept more requests right now\. `
|
|
81920
|
+
// quota-429
|
|
81921
|
+
].join("|"),
|
|
81922
|
+
"u"
|
|
81923
|
+
);
|
|
81924
|
+
MODEL_GONE_RE = new RegExp(
|
|
81925
|
+
[
|
|
81926
|
+
String.raw`^This model was not found\. Choose another model`,
|
|
81927
|
+
String.raw`^[^\n]{1,80} can't find the model you're using right now\.`
|
|
81928
|
+
].join("|"),
|
|
81929
|
+
"u"
|
|
81930
|
+
);
|
|
81931
|
+
UNREACHABLE_RE = new RegExp(
|
|
81932
|
+
[
|
|
81933
|
+
String.raw`^The AI service is having trouble\. Please try again in a moment\.$`,
|
|
81934
|
+
String.raw`^The AI service is busy\. Please try again in a moment, or choose another model\.$`,
|
|
81935
|
+
String.raw`^The AI service is temporarily overloaded\. Please try again in a moment\.$`,
|
|
81936
|
+
String.raw`^Selected model is at capacity\. Try a different model, or wait and retry\.$`,
|
|
81937
|
+
String.raw`^[^\n]{1,80} is (?:overloaded|having issues) right now\. Please wait a moment before trying again\.`,
|
|
81938
|
+
String.raw`^[^\n]{1,80} hasn't been responding\. Please wait a moment before trying again\.`,
|
|
81939
|
+
String.raw`^The model provider returned a temporary internal error before replying\. `,
|
|
81940
|
+
String.raw`^I couldn't reach the configured model backend `,
|
|
81941
|
+
String.raw`^Couldn't connect securely to the AI service\. `,
|
|
81942
|
+
String.raw`^LLM request timed out\.$`,
|
|
81943
|
+
String.raw`^The request took too long\. Check the conversation for any completed work before trying again\.$`
|
|
81944
|
+
].join("|"),
|
|
81945
|
+
"u"
|
|
81946
|
+
);
|
|
81947
|
+
}
|
|
81948
|
+
});
|
|
81852
81949
|
init_openclaw_entry = __esm2({
|
|
81853
81950
|
"src/openclaw-entry.ts"() {
|
|
81854
81951
|
"use strict";
|
|
@@ -81861,6 +81958,7 @@ ${actionsText}`);
|
|
|
81861
81958
|
init_tool_audit();
|
|
81862
81959
|
init_tool_telemetry();
|
|
81863
81960
|
init_harness_compat();
|
|
81961
|
+
init_openclaw_turn_failure();
|
|
81864
81962
|
init_types();
|
|
81865
81963
|
managedRoutesRequested = false;
|
|
81866
81964
|
}
|
|
@@ -102566,34 +102664,6 @@ data:
|
|
|
102566
102664
|
};
|
|
102567
102665
|
}
|
|
102568
102666
|
});
|
|
102569
|
-
init_turn_failure = __esm2({
|
|
102570
|
-
"src/turn-failure.ts"() {
|
|
102571
|
-
"use strict";
|
|
102572
|
-
init_tool_telemetry();
|
|
102573
|
-
TURN_FAILURE_CODES = [
|
|
102574
|
-
"provider_auth_failed",
|
|
102575
|
-
"provider_billing",
|
|
102576
|
-
"model_rate_limited",
|
|
102577
|
-
"model_unavailable",
|
|
102578
|
-
"provider_unreachable",
|
|
102579
|
-
"ai_tool_unsupported",
|
|
102580
|
-
"plan_limit_reached",
|
|
102581
|
-
"model_error"
|
|
102582
|
-
];
|
|
102583
|
-
CODES = new Set(TURN_FAILURE_CODES);
|
|
102584
|
-
TurnFailure = class extends Error {
|
|
102585
|
-
code;
|
|
102586
|
-
exitCode;
|
|
102587
|
-
constructor(code, opts = {}, message = "Codex turn failed") {
|
|
102588
|
-
super(message);
|
|
102589
|
-
this.name = "TurnFailure";
|
|
102590
|
-
this.code = asTurnFailureCode(code);
|
|
102591
|
-
if (opts.exitCode !== void 0) this.exitCode = opts.exitCode;
|
|
102592
|
-
}
|
|
102593
|
-
};
|
|
102594
|
-
NOTICE_RE = /^[^\n@]{1,120} couldn't answer this message(?:\.|: [^\n]{1,200})$/;
|
|
102595
|
-
}
|
|
102596
|
-
});
|
|
102597
102667
|
init_index = __esm2({
|
|
102598
102668
|
async "src/index.ts"() {
|
|
102599
102669
|
await init_channel();
|
|
@@ -102615,7 +102685,7 @@ data:
|
|
|
102615
102685
|
init_room_protocol();
|
|
102616
102686
|
init_tool_telemetry();
|
|
102617
102687
|
init_turn_failure();
|
|
102618
|
-
VERSION = true ? "0.23.
|
|
102688
|
+
VERSION = true ? "0.23.66" : "0.0.0-dev";
|
|
102619
102689
|
}
|
|
102620
102690
|
});
|
|
102621
102691
|
await init_index();
|
|
@@ -103979,7 +104049,7 @@ var AcpConnection = class {
|
|
|
103979
104049
|
// src/turn-failure.ts
|
|
103980
104050
|
var METHOD_NOT_FOUND = -32601;
|
|
103981
104051
|
var PROVIDER_STATUS_RE = /\((\d{3})\) from https?:\/\//;
|
|
103982
|
-
var
|
|
104052
|
+
var AUTH_RE2 = /Invalid or expired credentials/;
|
|
103983
104053
|
var MODEL_UNAVAILABLE_RE = /is not in your available models/;
|
|
103984
104054
|
var NETWORK_RE = /error sending request|dns error|tcp connect error/;
|
|
103985
104055
|
function failureText(err) {
|
|
@@ -104011,7 +104081,7 @@ function classifyGrokFailure(err) {
|
|
|
104011
104081
|
if (status === "429") return "model_rate_limited";
|
|
104012
104082
|
if (status !== void 0 && status.startsWith("5")) return "provider_unreachable";
|
|
104013
104083
|
if (status !== void 0) return "model_error";
|
|
104014
|
-
if (
|
|
104084
|
+
if (AUTH_RE2.test(text)) return "provider_auth_failed";
|
|
104015
104085
|
if (MODEL_UNAVAILABLE_RE.test(text)) return "model_unavailable";
|
|
104016
104086
|
if (NETWORK_RE.test(text)) return "provider_unreachable";
|
|
104017
104087
|
return "model_error";
|
|
@@ -104029,7 +104099,7 @@ function grokFatalLine(err) {
|
|
|
104029
104099
|
function mayCarryProviderText(err) {
|
|
104030
104100
|
if (err instanceof AcpRpcError || err instanceof AcpChildDied || err instanceof AcpTimeout) return true;
|
|
104031
104101
|
const text = err instanceof Error ? err.message : typeof err === "string" ? err : "";
|
|
104032
|
-
return PROVIDER_STATUS_RE.test(text) ||
|
|
104102
|
+
return PROVIDER_STATUS_RE.test(text) || AUTH_RE2.test(text);
|
|
104033
104103
|
}
|
|
104034
104104
|
function grokFailureExitCode(err) {
|
|
104035
104105
|
return err instanceof AcpChildDied && typeof err.code === "number" ? err.code : void 0;
|
|
@@ -104049,6 +104119,12 @@ var GrokSession = class {
|
|
|
104049
104119
|
invalidated = false;
|
|
104050
104120
|
/** Review F3: the error that failed this session, once one has. */
|
|
104051
104121
|
failure = void 0;
|
|
104122
|
+
/** #1583: set by stop(), which logs each cancelled turn itself. */
|
|
104123
|
+
stoppedFor = null;
|
|
104124
|
+
/** #1583 review M1: open only while a `shutdown` stop() waits on its
|
|
104125
|
+
* notices. The channel is still up (and ACKing) then, so a message that
|
|
104126
|
+
* lands in this window is told under the same cap, and stop() waits for it. */
|
|
104127
|
+
stopWindow = null;
|
|
104052
104128
|
/** The message whose turn is in flight, or null between turns. Null is a
|
|
104053
104129
|
* DISTINCT state from "a message that carries no reply sink" — conflating
|
|
104054
104130
|
* them is what let a post-turn say fall through to the session-level sink. */
|
|
@@ -104056,6 +104132,13 @@ var GrokSession = class {
|
|
|
104056
104132
|
saidThisTurn = false;
|
|
104057
104133
|
drain = Promise.resolve();
|
|
104058
104134
|
push(text, reply, opts) {
|
|
104135
|
+
if (this.invalidated && this.stopWindow) {
|
|
104136
|
+
const item = this.inbound(text, reply, opts);
|
|
104137
|
+
this.stopWindow.late.push(this.cancelNotice(item, this.stopWindow.cap).then((outcome) => {
|
|
104138
|
+
this.log(`turn_cancelled reason=shutdown late=true notice=${outcome}`);
|
|
104139
|
+
}));
|
|
104140
|
+
return;
|
|
104141
|
+
}
|
|
104059
104142
|
if (this.invalidated) {
|
|
104060
104143
|
this.log("push on invalidated session; DROPPED");
|
|
104061
104144
|
if (this.failure) {
|
|
@@ -104114,6 +104197,70 @@ var GrokSession = class {
|
|
|
104114
104197
|
this.current = null;
|
|
104115
104198
|
this.queue = [];
|
|
104116
104199
|
}
|
|
104200
|
+
/**
|
|
104201
|
+
* #1583: stop for good, BEFORE the process tears down. Revokes exactly like
|
|
104202
|
+
* invalidate() (no later say leaves the device), then, for `shutdown`, tells
|
|
104203
|
+
* every owed turn that will now never be answered: the one in flight and each
|
|
104204
|
+
* one queued behind it. Nothing replays them after a restart.
|
|
104205
|
+
*
|
|
104206
|
+
* Always the BARE sentence, even in a 1:1: a shutdown is not the model's
|
|
104207
|
+
* failure, so there is no cause to tell, and no `model_turn` span. "Owed" is
|
|
104208
|
+
* the #1560 rule (`autoReplyOnText`): an addressed room turn or an attested
|
|
104209
|
+
* 1:1, never an unaddressed room turn or an unattested DM.
|
|
104210
|
+
*
|
|
104211
|
+
* The notices go out together under ONE cap, so this resolves within
|
|
104212
|
+
* `noticeTimeoutMs` even if every send hangs. Call it before channel.stop()
|
|
104213
|
+
* closes the socket. Idempotent; a no-op once a failed turn has already
|
|
104214
|
+
* invalidated the session (that path told its chats itself). Never throws.
|
|
104215
|
+
*/
|
|
104216
|
+
async stop(opts) {
|
|
104217
|
+
if (this.invalidated) return;
|
|
104218
|
+
const reason = opts.reason;
|
|
104219
|
+
const inFlight = this.current;
|
|
104220
|
+
const queued = this.queue.slice();
|
|
104221
|
+
this.stoppedFor = reason;
|
|
104222
|
+
this.invalidate();
|
|
104223
|
+
const turns = [
|
|
104224
|
+
...inFlight ? [{ item: inFlight, queued: false }] : [],
|
|
104225
|
+
...queued.map((item) => ({ item, queued: true }))
|
|
104226
|
+
];
|
|
104227
|
+
if (turns.length === 0 || reason !== "shutdown") {
|
|
104228
|
+
turns.forEach(({ queued: q3 }) => this.log(`turn_cancelled reason=${reason}${q3 ? " queued=true" : ""} notice=none`));
|
|
104229
|
+
return;
|
|
104230
|
+
}
|
|
104231
|
+
let timer;
|
|
104232
|
+
const cap = new Promise((resolve4) => {
|
|
104233
|
+
timer = setTimeout(() => resolve4("timeout"), this.opts.noticeTimeoutMs ?? NOTICE_TIMEOUT_MS);
|
|
104234
|
+
});
|
|
104235
|
+
const window2 = { cap, late: [] };
|
|
104236
|
+
this.stopWindow = window2;
|
|
104237
|
+
try {
|
|
104238
|
+
const outcomes = await Promise.all(turns.map(({ item }) => this.cancelNotice(item, cap)));
|
|
104239
|
+
turns.forEach(({ queued: q3 }, i2) => {
|
|
104240
|
+
this.log(`turn_cancelled reason=${reason}${q3 ? " queued=true" : ""} notice=${outcomes[i2]}`);
|
|
104241
|
+
});
|
|
104242
|
+
while (window2.late.length) await Promise.all(window2.late.splice(0));
|
|
104243
|
+
} finally {
|
|
104244
|
+
this.stopWindow = null;
|
|
104245
|
+
clearTimeout(timer);
|
|
104246
|
+
}
|
|
104247
|
+
}
|
|
104248
|
+
/** The bare sentence for one owed, cancelled turn, raced against the shared
|
|
104249
|
+
* cap. Settles, never rejects. */
|
|
104250
|
+
async cancelNotice(item, cap) {
|
|
104251
|
+
if (!item.autoReplyOnText || !item.reply) return "none";
|
|
104252
|
+
const notice = ownerNoticeFor("model_error", { agentName: this.agentName() ?? "", provider: "xAI" });
|
|
104253
|
+
const sent = Promise.resolve().then(() => item.reply(notice, { notice: true })).then((r2) => r2 === false ? "failed" : "sent", () => "failed");
|
|
104254
|
+
return Promise.race([sent, cap]);
|
|
104255
|
+
}
|
|
104256
|
+
agentName() {
|
|
104257
|
+
try {
|
|
104258
|
+
const n2 = this.opts.agentName;
|
|
104259
|
+
return typeof n2 === "function" ? n2() : n2;
|
|
104260
|
+
} catch {
|
|
104261
|
+
return void 0;
|
|
104262
|
+
}
|
|
104263
|
+
}
|
|
104117
104264
|
/** True while a turn is in flight. #1560: if the CLI dies now, THAT turn
|
|
104118
104265
|
* fails, and it must be recorded and noticed before the process exits. */
|
|
104119
104266
|
turnInFlight() {
|
|
@@ -104150,7 +104297,7 @@ ${item.text}` : item.text;
|
|
|
104150
104297
|
if (!wasInvalidated) this.failure = e ?? new Error("turn failed");
|
|
104151
104298
|
this.invalidate();
|
|
104152
104299
|
if (wasInvalidated) {
|
|
104153
|
-
this.log("turn_cancelled reason=shutdown");
|
|
104300
|
+
if (!this.stoppedFor) this.log("turn_cancelled reason=shutdown");
|
|
104154
104301
|
} else {
|
|
104155
104302
|
try {
|
|
104156
104303
|
await Promise.all([
|
|
@@ -104203,13 +104350,7 @@ ${item.text}` : item.text;
|
|
|
104203
104350
|
reportModelTurnFailure(sink, { code, conversation: item.conversation, durationMs });
|
|
104204
104351
|
this.log(`turn_failed code=${code} exit=${exit ?? "none"}`);
|
|
104205
104352
|
if (!item.autoReplyOnText || !item.reply) return;
|
|
104206
|
-
|
|
104207
|
-
try {
|
|
104208
|
-
const n2 = this.opts.agentName;
|
|
104209
|
-
agentName = typeof n2 === "function" ? n2() : n2;
|
|
104210
|
-
} catch {
|
|
104211
|
-
agentName = void 0;
|
|
104212
|
-
}
|
|
104353
|
+
const agentName = this.agentName();
|
|
104213
104354
|
const notice = ownerNoticeFor(item.conversation.kind === "direct" && !alreadySpoke ? code : "model_error", {
|
|
104214
104355
|
agentName: agentName ?? "",
|
|
104215
104356
|
provider: "xAI"
|
|
@@ -104777,17 +104918,18 @@ var ActiveTarget = class {
|
|
|
104777
104918
|
const t2 = this.target;
|
|
104778
104919
|
const where = !t2 ? "nowhere" : t2.kind === "room" ? `room ${t2.roomId.slice(0, 8)}` : "1:1 owner";
|
|
104779
104920
|
return async (text, opts) => {
|
|
104780
|
-
if (!t2) return;
|
|
104921
|
+
if (!t2) return opts?.notice ? false : void 0;
|
|
104781
104922
|
const startedAt = Date.now();
|
|
104782
104923
|
if (opts?.notice) {
|
|
104783
104924
|
try {
|
|
104784
104925
|
if (t2.kind === "room") await channel.sendToRoom(t2.roomId, text);
|
|
104785
104926
|
else await sendDm(channel, t2, text);
|
|
104786
104927
|
log(`notice sent to ${where}`);
|
|
104928
|
+
return true;
|
|
104787
104929
|
} catch (err) {
|
|
104788
104930
|
log(`notice_failed code=${classifyToolError(err)}`);
|
|
104931
|
+
return false;
|
|
104789
104932
|
}
|
|
104790
|
-
return;
|
|
104791
104933
|
}
|
|
104792
104934
|
try {
|
|
104793
104935
|
if (t2.kind === "room") await channel.sendToRoom(t2.roomId, text);
|
|
@@ -105018,28 +105160,41 @@ async function reap(r2, opts = {}) {
|
|
|
105018
105160
|
// src/index.ts
|
|
105019
105161
|
var shuttingDown = false;
|
|
105020
105162
|
var CHILD_EXIT_GRACE_MS = 15e3;
|
|
105163
|
+
var SHUTDOWN_BOUND_MS = 15e3;
|
|
105021
105164
|
var exiting = false;
|
|
105022
105165
|
var driver;
|
|
105023
105166
|
var session;
|
|
105024
105167
|
var mcp;
|
|
105025
105168
|
var channelRef;
|
|
105026
105169
|
var childRef;
|
|
105027
|
-
var reapAll = async () => {
|
|
105170
|
+
var reapAll = async (reason = "shutdown") => {
|
|
105028
105171
|
shuttingDown = true;
|
|
105029
|
-
|
|
105172
|
+
try {
|
|
105173
|
+
await session?.stop({ reason });
|
|
105174
|
+
} catch {
|
|
105175
|
+
session?.invalidate();
|
|
105176
|
+
}
|
|
105030
105177
|
return reap(
|
|
105031
105178
|
{ channel: channelRef, driver, mcp, child: childRef },
|
|
105032
105179
|
{ log: (m2) => logLine("[grok-bridge] " + m2) }
|
|
105033
105180
|
);
|
|
105034
105181
|
};
|
|
105035
|
-
var shutdown = async (code = 0) => {
|
|
105182
|
+
var shutdown = async (code = 0, reason = "shutdown") => {
|
|
105036
105183
|
if (exiting) return;
|
|
105037
105184
|
exiting = true;
|
|
105185
|
+
let bound;
|
|
105038
105186
|
try {
|
|
105039
|
-
await
|
|
105187
|
+
const timedOut = await Promise.race([
|
|
105188
|
+
reapAll(reason).then(() => false),
|
|
105189
|
+
new Promise((resolve4) => {
|
|
105190
|
+
bound = setTimeout(() => resolve4(true), SHUTDOWN_BOUND_MS);
|
|
105191
|
+
})
|
|
105192
|
+
]);
|
|
105193
|
+
if (timedOut) logLine(`[grok-bridge] teardown timed out after ${SHUTDOWN_BOUND_MS}ms; exiting anyway`);
|
|
105040
105194
|
} catch (error2) {
|
|
105041
105195
|
logLine("[grok-bridge] teardown failed:", error2);
|
|
105042
105196
|
} finally {
|
|
105197
|
+
clearTimeout(bound);
|
|
105043
105198
|
process.exit(code);
|
|
105044
105199
|
}
|
|
105045
105200
|
};
|
|
@@ -105060,7 +105215,7 @@ async function main() {
|
|
|
105060
105215
|
const info = parseInfoFlags(process.argv.slice(2));
|
|
105061
105216
|
if (info.showVersion || info.showHelp) {
|
|
105062
105217
|
const version2 = buildClientVersion2(
|
|
105063
|
-
true ? "0.4.
|
|
105218
|
+
true ? "0.4.35" : void 0
|
|
105064
105219
|
);
|
|
105065
105220
|
if (info.showVersion) printLine(version2);
|
|
105066
105221
|
if (info.showHelp) {
|
|
@@ -105099,7 +105254,7 @@ async function main() {
|
|
|
105099
105254
|
process.exit(0);
|
|
105100
105255
|
}
|
|
105101
105256
|
const cfg = loadConfig(process.env, process.argv.slice(2));
|
|
105102
|
-
logLine(`[grok-bridge] version: ${true ? "0.4.
|
|
105257
|
+
logLine(`[grok-bridge] version: ${true ? "0.4.35" : "dev"}`);
|
|
105103
105258
|
mkdirSync7(cfg.workspaceDir, { recursive: true });
|
|
105104
105259
|
mkdirSync7(cfg.fenceHome, { recursive: true });
|
|
105105
105260
|
seedFenceCredential({
|
|
@@ -105114,7 +105269,7 @@ async function main() {
|
|
|
105114
105269
|
agentName: cfg.agentName,
|
|
105115
105270
|
platform: "node",
|
|
105116
105271
|
clientVersion: buildClientVersion2(
|
|
105117
|
-
true ? "0.4.
|
|
105272
|
+
true ? "0.4.35" : void 0
|
|
105118
105273
|
)
|
|
105119
105274
|
});
|
|
105120
105275
|
channelRef = channel;
|
|
@@ -105211,7 +105366,9 @@ async function main() {
|
|
|
105211
105366
|
});
|
|
105212
105367
|
attachLifecycle2(channel, {
|
|
105213
105368
|
log: (m2) => logLine("[grok-bridge] " + m2),
|
|
105214
|
-
|
|
105369
|
+
// #1583: silent. A revoked or replaced device has no chat to tell, and a
|
|
105370
|
+
// reconnect loop has no socket to tell it over.
|
|
105371
|
+
onTerminal: (_reason, o2) => void shutdown(o2.restart ? 1 : 0, "terminal")
|
|
105215
105372
|
});
|
|
105216
105373
|
channel.on("ready", () => {
|
|
105217
105374
|
if (clearPendingInviteIfConsumed(cfg.dataDir, hasPersistedCreds)) {
|
package/package.json
CHANGED