@agentvault/claude-bridge 0.8.38 → 0.8.40

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.
Files changed (2) hide show
  1. package/dist/index.js +409 -87
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -3021,6 +3021,23 @@ function verifyMerkleProof(leafHash, proof, merkleRoot) {
3021
3021
  }
3022
3022
  return true;
3023
3023
  }
3024
+ function withCheckedClaims(credential) {
3025
+ const walk = (value, path2) => {
3026
+ if (Array.isArray(value)) {
3027
+ for (const child of value)
3028
+ walk(child, path2);
3029
+ } else if (value && typeof value === "object") {
3030
+ for (const [key, child] of Object.entries(value)) {
3031
+ if (VC_V2_RESERVED_TERMS.has(key) && !(path2.length === 0 && key === "id")) {
3032
+ throw new ReservedClaimNameError(`credential claim "${[...path2, key].join(".")}" is named like a VC 2.0 term`);
3033
+ }
3034
+ walk(child, [...path2, key]);
3035
+ }
3036
+ }
3037
+ };
3038
+ walk(credential.credentialSubject, []);
3039
+ return credential;
3040
+ }
3024
3041
  async function sha256(data) {
3025
3042
  await libsodium_wrappers_default.ready;
3026
3043
  return libsodium_wrappers_default.crypto_hash_sha256(data);
@@ -3131,10 +3148,11 @@ async function verifyDataIntegrity(document, publicKey) {
3131
3148
  }
3132
3149
  function buildAgentTrustCredential(params) {
3133
3150
  const now = (/* @__PURE__ */ new Date()).toISOString().replace(/\.\d{3}Z$/, "Z");
3134
- return {
3151
+ return withCheckedClaims({
3135
3152
  "@context": [
3136
3153
  VC_CONTEXT_V2,
3137
3154
  {
3155
+ "@vocab": AV_VOCAB,
3138
3156
  AgentTrustCredential: "https://agentvault.chat/vocab#AgentTrustCredential",
3139
3157
  trustTier: "https://agentvault.chat/vocab#trustTier",
3140
3158
  compositeScore: "https://agentvault.chat/vocab#compositeScore",
@@ -3167,14 +3185,15 @@ function buildAgentTrustCredential(params) {
3167
3185
  } : {},
3168
3186
  ...params.verificationEndpoint ? { verificationEndpoint: params.verificationEndpoint } : {}
3169
3187
  }
3170
- };
3188
+ });
3171
3189
  }
3172
3190
  function buildSkillAttestation(params) {
3173
3191
  const now = (/* @__PURE__ */ new Date()).toISOString().replace(/\.\d{3}Z$/, "Z");
3174
- return {
3192
+ return withCheckedClaims({
3175
3193
  "@context": [
3176
3194
  VC_CONTEXT_V2,
3177
3195
  {
3196
+ "@vocab": AV_VOCAB,
3178
3197
  SkillAttestation: "https://agentvault.chat/vocab#SkillAttestation",
3179
3198
  skillName: "https://agentvault.chat/vocab#skillName",
3180
3199
  skillNamespace: "https://agentvault.chat/vocab#skillNamespace",
@@ -3198,14 +3217,15 @@ function buildSkillAttestation(params) {
3198
3217
  ...params.successRate !== void 0 ? { successRate: params.successRate } : {},
3199
3218
  ...params.assessedAt ? { assessedAt: params.assessedAt } : {}
3200
3219
  }
3201
- };
3220
+ });
3202
3221
  }
3203
3222
  function buildPerformanceRecord(params) {
3204
3223
  const now = (/* @__PURE__ */ new Date()).toISOString().replace(/\.\d{3}Z$/, "Z");
3205
- return {
3224
+ return withCheckedClaims({
3206
3225
  "@context": [
3207
3226
  VC_CONTEXT_V2,
3208
3227
  {
3228
+ "@vocab": AV_VOCAB,
3209
3229
  PerformanceRecord: "https://agentvault.chat/vocab#PerformanceRecord",
3210
3230
  periodStart: "https://agentvault.chat/vocab#periodStart",
3211
3231
  periodEnd: "https://agentvault.chat/vocab#periodEnd",
@@ -3231,7 +3251,7 @@ function buildPerformanceRecord(params) {
3231
3251
  policyViolations: params.policyViolations,
3232
3252
  compositeScore: params.compositeScore
3233
3253
  }
3234
- };
3254
+ });
3235
3255
  }
3236
3256
  function buildAgentTrustReportCredential(params) {
3237
3257
  const now = (/* @__PURE__ */ new Date()).toISOString().replace(/\.\d{3}Z$/, "Z");
@@ -3258,10 +3278,11 @@ function buildAgentTrustReportCredential(params) {
3258
3278
  subject.telemetrySummary = params.telemetrySummary;
3259
3279
  if (params.verificationEndpoint)
3260
3280
  subject.verificationEndpoint = params.verificationEndpoint;
3261
- return {
3281
+ return withCheckedClaims({
3262
3282
  "@context": [
3263
3283
  VC_CONTEXT_V2,
3264
3284
  {
3285
+ "@vocab": AV_VOCAB,
3265
3286
  AgentTrustReport: "https://agentvault.chat/vocab#AgentTrustReport",
3266
3287
  reportPeriod: "https://agentvault.chat/vocab#reportPeriod",
3267
3288
  trustTier: "https://agentvault.chat/vocab#trustTier",
@@ -3281,7 +3302,7 @@ function buildAgentTrustReportCredential(params) {
3281
3302
  validFrom: params.validFrom ?? now,
3282
3303
  ...params.validUntil ? { validUntil: params.validUntil } : {},
3283
3304
  credentialSubject: subject
3284
- };
3305
+ });
3285
3306
  }
3286
3307
  function buildVerifiablePresentation(holderDid, credentials, presentationId) {
3287
3308
  return {
@@ -11756,11 +11777,11 @@ async function joinWithFirstMatchingKp(welcomeBytes, candidates) {
11756
11777
  return null;
11757
11778
  }
11758
11779
  function ownIdentity() {
11759
- const v22 = true ? "0.23.67" : FALLBACK;
11780
+ const v22 = true ? "0.23.69" : FALLBACK;
11760
11781
  return `${PACKAGE}@${v22}`;
11761
11782
  }
11762
11783
  function buildSha() {
11763
- const raw = true ? "a3de03b" : "";
11784
+ const raw = true ? "26d16c9" : "";
11764
11785
  const cleaned = (raw ?? "").trim();
11765
11786
  return !cleaned || cleaned === "unknown" ? null : cleaned;
11766
11787
  }
@@ -12321,6 +12342,22 @@ function decisionReplyFromEnvelope(parsed) {
12321
12342
  if (typeof d22.reason === "string") reply.reason = d22.reason;
12322
12343
  return reply;
12323
12344
  }
12345
+ function parseDeliverySync(raw) {
12346
+ if (typeof raw !== "object" || raw === null) return null;
12347
+ const { quiet_pull_seconds: quiet, welcome_group_ids: groups } = raw;
12348
+ if (!Array.isArray(groups) || !groups.every((g22) => typeof g22 === "string")) return null;
12349
+ if (quiet !== null && (typeof quiet !== "number" || !Number.isFinite(quiet))) return null;
12350
+ return {
12351
+ quietPullMs: quiet === null ? null : Math.min(Math.max(quiet * 1e3, DELIVERY_PULL_MS), MAX_QUIET_PULL_MS),
12352
+ welcomeGroupIds: new Set(groups.map((g22) => g22.toLowerCase()))
12353
+ };
12354
+ }
12355
+ function wantsWelcomeRead(targets, groupId) {
12356
+ return targets === null || targets.has(groupId.toLowerCase());
12357
+ }
12358
+ function messageKindFor(messageType) {
12359
+ return CONTROL_MESSAGE_TYPES.has(messageType) ? "control" : void 0;
12360
+ }
12324
12361
  async function readBoundedRestoreJson(response, signal, checkpoint) {
12325
12362
  const contentLength = response.headers?.get("content-length");
12326
12363
  if (contentLength && /^\d+$/.test(contentLength)) {
@@ -12661,6 +12698,18 @@ async function _handleSendRequest(parsed, channel) {
12661
12698
  if (!text || typeof text !== "string") {
12662
12699
  return { status: 400, body: { ok: false, error: "Missing 'text' field" } };
12663
12700
  }
12701
+ const metadataType = parsed.metadata?.message_type;
12702
+ for (const requested of [parsed.message_type, metadataType]) {
12703
+ if (typeof requested === "string" && CONTROL_MESSAGE_TYPES.has(requested)) {
12704
+ return {
12705
+ status: 400,
12706
+ body: {
12707
+ ok: false,
12708
+ error: `message_type '${requested}' is reserved for protocol frames and cannot be sent from /send`
12709
+ }
12710
+ };
12711
+ }
12712
+ }
12664
12713
  const routing = ownerRoutingFrom(parsed);
12665
12714
  if (typeof routing === "string") {
12666
12715
  return { status: 400, body: { ok: false, error: routing } };
@@ -17872,7 +17921,7 @@ function armSseKeepAlive(intervalMs, onTick) {
17872
17921
  timer.unref?.();
17873
17922
  return timer;
17874
17923
  }
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, SHUTDOWN_NOTICE_MS, KEEP_UNANSWERED_MS, OpenClawShutdownNotices, init_openclaw_shutdown_notice, _shutdownNotices, 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;
17924
+ 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, AV_VOCAB, VC_V2_RESERVED_TERMS, ReservedClaimNameError, 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, DELIVERY_PULL_MS, DELIVERY_TICK_MS, FULL_WELCOME_SWEEP_MS, MAX_QUIET_PULL_MS, A2A_QUIET_RECONCILE_MS, A2A_QUIET_JITTER_MS, DeliveryCadence, A2aReconcileCadence, init_delivery_cadence, CONTROL_MESSAGE_TYPES, init_message_kind, 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, PENDING_POLL_SILENCE_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, SHUTDOWN_NOTICE_MS, KEEP_UNANSWERED_MS, OpenClawShutdownNotices, init_openclaw_shutdown_notice, _shutdownNotices, 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
17925
  var init_dist = __esm({
17877
17926
  async "../plugin/dist/index.js"() {
17878
17927
  "use strict";
@@ -60685,6 +60734,76 @@ var init_dist = __esm({
60685
60734
  await init_did();
60686
60735
  VC_CONTEXT_V2 = "https://www.w3.org/ns/credentials/v2";
60687
60736
  AV_CREDENTIAL_CONTEXT = "https://agentvault.chat/ns/credentials/v1";
60737
+ AV_VOCAB = "https://agentvault.chat/vocab#";
60738
+ VC_V2_RESERVED_TERMS = /* @__PURE__ */ new Set([
60739
+ "...",
60740
+ "BitstringStatusList",
60741
+ "BitstringStatusListCredential",
60742
+ "BitstringStatusListEntry",
60743
+ "DataIntegrityProof",
60744
+ "EnvelopedVerifiableCredential",
60745
+ "EnvelopedVerifiablePresentation",
60746
+ "JsonSchema",
60747
+ "JsonSchemaCredential",
60748
+ "VerifiableCredential",
60749
+ "VerifiablePresentation",
60750
+ "_sd",
60751
+ "_sd_alg",
60752
+ "aud",
60753
+ "challenge",
60754
+ "cnf",
60755
+ "confidenceMethod",
60756
+ "created",
60757
+ "credentialSchema",
60758
+ "credentialStatus",
60759
+ "credentialSubject",
60760
+ "cryptosuite",
60761
+ "description",
60762
+ "digestMultibase",
60763
+ "digestSRI",
60764
+ "domain",
60765
+ "encodedList",
60766
+ "evidence",
60767
+ "exp",
60768
+ "expires",
60769
+ "holder",
60770
+ "iat",
60771
+ "id",
60772
+ "iss",
60773
+ "issuer",
60774
+ "jku",
60775
+ "jsonSchema",
60776
+ "jwk",
60777
+ "kid",
60778
+ "mediaType",
60779
+ "name",
60780
+ "nbf",
60781
+ "nonce",
60782
+ "previousProof",
60783
+ "proof",
60784
+ "proofPurpose",
60785
+ "proofValue",
60786
+ "refreshService",
60787
+ "relatedResource",
60788
+ "renderMethod",
60789
+ "statusListCredential",
60790
+ "statusListIndex",
60791
+ "statusMessage",
60792
+ "statusPurpose",
60793
+ "statusReference",
60794
+ "statusSize",
60795
+ "sub",
60796
+ "termsOfUse",
60797
+ "ttl",
60798
+ "type",
60799
+ "validFrom",
60800
+ "validUntil",
60801
+ "verifiableCredential",
60802
+ "verificationMethod",
60803
+ "x5u"
60804
+ ]);
60805
+ ReservedClaimNameError = class extends Error {
60806
+ };
60688
60807
  CRYPTOSUITE = "eddsa-jcs-2022";
60689
60808
  BASE58_ALPHABET2 = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
60690
60809
  }
@@ -70570,6 +70689,75 @@ var init_dist = __esm({
70570
70689
  };
70571
70690
  }
70572
70691
  });
70692
+ init_delivery_cadence = __esm2({
70693
+ "src/delivery-cadence.ts"() {
70694
+ "use strict";
70695
+ DELIVERY_PULL_MS = 3e4;
70696
+ DELIVERY_TICK_MS = 5e3;
70697
+ FULL_WELCOME_SWEEP_MS = 6e5;
70698
+ MAX_QUIET_PULL_MS = 3e5;
70699
+ A2A_QUIET_RECONCILE_MS = 6e5;
70700
+ A2A_QUIET_JITTER_MS = 6e4;
70701
+ DeliveryCadence = class {
70702
+ _nextPullAt = 0;
70703
+ _nextFullSweepAt = 0;
70704
+ _fullSweepRequested = false;
70705
+ /** A new connection may have missed anything: pull now, read every group. */
70706
+ reset() {
70707
+ this._nextPullAt = 0;
70708
+ this._nextFullSweepAt = 0;
70709
+ }
70710
+ pullDue(now) {
70711
+ return now >= this._nextPullAt || this._nextPullAt - now > MAX_QUIET_PULL_MS;
70712
+ }
70713
+ pullStarted(now) {
70714
+ this._nextPullAt = now + DELIVERY_PULL_MS;
70715
+ }
70716
+ /** Call after a pull that returned no rows. */
70717
+ pullWasQuiet(now, sync) {
70718
+ if (sync?.quietPullMs != null) this._nextPullAt = now + sync.quietPullMs;
70719
+ }
70720
+ /** A wake named a request, so read every group on the next pull, as before. */
70721
+ requestFullSweep() {
70722
+ this._fullSweepRequested = true;
70723
+ }
70724
+ /** The groups this pull should read. null means all of them. */
70725
+ welcomeTargets(now, sync) {
70726
+ if (sync === null) return null;
70727
+ if (this._fullSweepRequested || now >= this._nextFullSweepAt) {
70728
+ this._fullSweepRequested = false;
70729
+ this._nextFullSweepAt = now + FULL_WELCOME_SWEEP_MS;
70730
+ return null;
70731
+ }
70732
+ return sync.welcomeGroupIds;
70733
+ }
70734
+ };
70735
+ A2aReconcileCadence = class {
70736
+ _nextAt = 0;
70737
+ due(now) {
70738
+ return now >= this._nextAt;
70739
+ }
70740
+ listed(now, channelCount, random = Math.random) {
70741
+ this._nextAt = channelCount > 0 ? 0 : now + A2A_QUIET_RECONCILE_MS + Math.floor(random() * A2A_QUIET_JITTER_MS);
70742
+ }
70743
+ /** A channel event arrived: reconcile at the next tick. */
70744
+ wake() {
70745
+ this._nextAt = 0;
70746
+ }
70747
+ };
70748
+ }
70749
+ });
70750
+ init_message_kind = __esm2({
70751
+ "src/message-kind.ts"() {
70752
+ "use strict";
70753
+ CONTROL_MESSAGE_TYPES = /* @__PURE__ */ new Set([
70754
+ "history_catchup_request",
70755
+ "history_catchup_response",
70756
+ "heartbeat",
70757
+ "credential_ack"
70758
+ ]);
70759
+ }
70760
+ });
70573
70761
  history_backup_client_exports = {};
70574
70762
  __export2(history_backup_client_exports, {
70575
70763
  HISTORY_RESTORE_RESPONSE_MAX_BYTES: () => HISTORY_RESTORE_RESPONSE_MAX_BYTES,
@@ -70910,6 +71098,7 @@ var init_dist = __esm({
70910
71098
  init_http_handlers = __esm2({
70911
71099
  "src/http-handlers.ts"() {
70912
71100
  "use strict";
71101
+ init_message_kind();
70913
71102
  init_owner_routing();
70914
71103
  init_tool_telemetry();
70915
71104
  }
@@ -70962,6 +71151,8 @@ var init_dist = __esm({
70962
71151
  await init_history_recovery_code();
70963
71152
  init_decision_reply();
70964
71153
  init_welcome_kp_backoff();
71154
+ init_delivery_cadence();
71155
+ init_message_kind();
70965
71156
  ROOM_AGENT_TYPES = /* @__PURE__ */ new Set([
70966
71157
  "message",
70967
71158
  "text",
@@ -70983,6 +71174,7 @@ var init_dist = __esm({
70983
71174
  UUID_RE4 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
70984
71175
  RECONNECT_MAX_MS = 3e4;
70985
71176
  PENDING_POLL_INTERVAL_MS = 15e3;
71177
+ PENDING_POLL_SILENCE_MS = 18e4;
70986
71178
  HISTORY_RESTORE_TIMEOUT_MS2 = 1e4;
70987
71179
  ROOM_ROSTER_REFRESH_TIMEOUT_MS = 1e4;
70988
71180
  HISTORY_UPLOAD_TIMEOUT_MS = 1e4;
@@ -71055,6 +71247,8 @@ var init_dist = __esm({
71055
71247
  _pendingPollTimer = null;
71056
71248
  _syncMessageIds = null;
71057
71249
  _deliveryHeartbeat = null;
71250
+ _deliveryCadence = new DeliveryCadence();
71251
+ _a2aCadence = new A2aReconcileCadence();
71058
71252
  /**
71059
71253
  * How often to re-check the KeyPackage pool against the server (#826).
71060
71254
  *
@@ -71317,6 +71511,18 @@ ${text}`,
71317
71511
  _lastResyncRequest = /* @__PURE__ */ new Map();
71318
71512
  /** Dedup: last room/group welcome self-heal request timestamp per group (30s window). */
71319
71513
  _welcomeSelfHealInflight = /* @__PURE__ */ new Map();
71514
+ /**
71515
+ * #1721: groups whose `request-welcome` the server REFUSED (403/404) in this
71516
+ * process. A persisted room/conv/A2A entry is never pruned on leave, delete
71517
+ * or channel close, so a connect-time sync at epoch 0 would otherwise ask
71518
+ * for it on every reconnect, forever, and the standing renewal every sweep.
71519
+ * 403/404 is "you are not a member of this" — terminal until restart. Other
71520
+ * 4xx (a 429 at the edge) are transient and retry like a 5xx.
71521
+ */
71522
+ _welcomeRefusedGroups = /* @__PURE__ */ new Set();
71523
+ /** #1721: when each stateless group last had its Welcome request renewed. */
71524
+ _statelessRenewalAt = /* @__PURE__ */ new Map();
71525
+ static _STATELESS_RENEWAL_MS = 10 * 60 * 1e3;
71320
71526
  /** History-only backup work is intentionally independent of ratchet persistence. */
71321
71527
  _historyBackupScheduler;
71322
71528
  _historyBackupClient = null;
@@ -73095,6 +73301,8 @@ ${text}`,
73095
73301
  topic_id: frameTopicId,
73096
73302
  client_message_id: clientMessageId,
73097
73303
  message_type: messageType,
73304
+ message_kind: messageKindFor(messageType),
73305
+ // #1641
73098
73306
  priority,
73099
73307
  parent_span_id: parentSpanId,
73100
73308
  metadata: scanStatus ? { ...envelopeMetadata ?? {}, scan_status: scanStatus } : envelopeMetadata
@@ -73153,6 +73361,8 @@ ${text}`,
73153
73361
  topic_id: topicId,
73154
73362
  client_message_id: clientMessageId,
73155
73363
  message_type: messageType,
73364
+ message_kind: messageKindFor(messageType),
73365
+ // #1641
73156
73366
  priority,
73157
73367
  parent_span_id: parentSpanId,
73158
73368
  metadata: scanStatus ? { ...envelopeMetadata ?? {}, scan_status: scanStatus } : envelopeMetadata
@@ -73270,6 +73480,8 @@ ${text}`,
73270
73480
  topic_id: topicId,
73271
73481
  client_message_id: clientMessageId,
73272
73482
  message_type: messageType,
73483
+ message_kind: messageKindFor(messageType),
73484
+ // #1641
73273
73485
  priority,
73274
73486
  parent_span_id: parentSpanId,
73275
73487
  metadata: envelopeMetadata
@@ -73363,7 +73575,7 @@ ${text}`,
73363
73575
  */
73364
73576
  sendActivitySpan(spanData) {
73365
73577
  if (!this._ws || this._ws.readyState !== WebSocket2.OPEN) return;
73366
- const pluginVersion = true ? "0.23.67" : "0.0.0-dev";
73578
+ const pluginVersion = true ? "0.23.69" : "0.0.0-dev";
73367
73579
  const agentName = this.config.agentName ?? "Agent";
73368
73580
  const resource = {
73369
73581
  "service.name": "agentvault-agent",
@@ -73605,6 +73817,8 @@ ${text}`,
73605
73817
  epoch: Number(mlsGroup.epoch),
73606
73818
  payload: Buffer.from(ciphertext).toString("hex"),
73607
73819
  message_type: messageType,
73820
+ message_kind: messageKindFor(messageType),
73821
+ // #1641
73608
73822
  priority: opts?.priority ?? "normal",
73609
73823
  metadata: opts?.metadata
73610
73824
  }
@@ -75161,7 +75375,7 @@ ${text}`,
75161
75375
  throw new Error(`A2A channel ${channelId.slice(0, 8)} has no initialized MLS group`);
75162
75376
  }
75163
75377
  /**
75164
- * Start the periodic A2A reconcile timer (30s), mirroring `_deliveryHeartbeat`.
75378
+ * Start the periodic A2A reconcile timer, mirroring `_deliveryHeartbeat`.
75165
75379
  *
75166
75380
  * A2A join-triggers (`a2a_channel_approved` etc.) are delivered best-effort by
75167
75381
  * the backend's local-only `send_to_device`; if this agent is briefly
@@ -75169,10 +75383,14 @@ ${text}`,
75169
75383
  * channel hangs until the next connect. Re-running `listA2AChannels()` on a
75170
75384
  * timer re-fires the idempotent member sync-fallback (publish KeyPackage +
75171
75385
  * request Welcome) so the channel self-heals while staying connected.
75386
+ *
75387
+ * It ticks every 30 s, and an agent the server lists in no channel asks far
75388
+ * less often: see `A2aReconcileCadence`.
75172
75389
  */
75173
75390
  _startA2aReconcileTimer() {
75174
75391
  if (this._a2aReconcileTimer) clearInterval(this._a2aReconcileTimer);
75175
75392
  this._a2aReconcileTimer = setInterval(() => {
75393
+ if (!this._a2aCadence.due(Date.now())) return;
75176
75394
  this.listA2AChannels().catch(() => {
75177
75395
  });
75178
75396
  }, 3e4);
@@ -75198,6 +75416,7 @@ ${text}`,
75198
75416
  throw new Error(`List A2A channels failed (${res.status}): ${detail}`);
75199
75417
  }
75200
75418
  const resp = await res.json();
75419
+ this._a2aCadence.listed(Date.now(), resp.length);
75201
75420
  const channels = resp.map((ch2) => ({
75202
75421
  channelId: ch2.channel_id || ch2.id,
75203
75422
  creator_hub_id: ch2.creator_hub_id || "",
@@ -75646,7 +75865,7 @@ ${text}`,
75646
75865
  agentVersion: this.config.agentVersion ?? "0.0.0",
75647
75866
  // __AV_VERSION__ is injected by esbuild from package.json at build time.
75648
75867
  // Falls back to "0.0.0-dev" in non-bundled contexts (tests).
75649
- pluginVersion: true ? "0.23.67" : "0.0.0-dev"
75868
+ pluginVersion: true ? "0.23.69" : "0.0.0-dev"
75650
75869
  });
75651
75870
  this._telemetryReporter.startAutoFlush(3e4);
75652
75871
  }
@@ -75658,54 +75877,9 @@ ${text}`,
75658
75877
  await this._ensureKpPoolPublished();
75659
75878
  this._startKpReplenishTimer();
75660
75879
  this._startKeyProofTimer();
75661
- this._pullDeliveryQueue().catch((err) => {
75662
- console.warn("[SecureChannel] Initial delivery pull failed:", err);
75663
- });
75664
- if (this._deliveryHeartbeat) clearInterval(this._deliveryHeartbeat);
75665
- this._deliveryHeartbeat = setInterval(() => {
75666
- this._pullDeliveryQueue().catch(() => {
75667
- });
75668
- }, 3e4);
75880
+ this._beginDeliveryPulls();
75669
75881
  this._startA2aReconcileTimer();
75670
- for (const [convId, entry] of Object.entries(this._persisted?.mlsConversations ?? {})) {
75671
- if (entry.mlsGroupId) {
75672
- const mlsGroup = this._mlsGroups.get(`conv:${convId}`);
75673
- ws.send(JSON.stringify({
75674
- event: "mls_sync",
75675
- data: {
75676
- group_id: entry.mlsGroupId,
75677
- last_epoch: mlsGroup ? Number(mlsGroup.epoch) : 0
75678
- }
75679
- }));
75680
- }
75681
- }
75682
- for (const [roomId, room] of Object.entries(this._persisted?.rooms ?? {})) {
75683
- const mlsGroupId = room.mlsGroupId;
75684
- if (mlsGroupId) {
75685
- const mlsGroup = this._mlsGroups.get(roomId);
75686
- const syncData = {
75687
- group_id: mlsGroupId,
75688
- last_epoch: mlsGroup ? Number(mlsGroup.epoch) : 0
75689
- };
75690
- const lastTs = room.lastMlsMessageTs;
75691
- if (lastTs) {
75692
- syncData.since_ts = lastTs;
75693
- }
75694
- ws.send(JSON.stringify({ event: "mls_sync", data: syncData }));
75695
- }
75696
- }
75697
- for (const [channelId, entry] of Object.entries(this._persisted?.a2aChannels ?? {})) {
75698
- if (entry.mlsGroupId) {
75699
- const mlsGroup = this._mlsGroups.get(`a2a:${channelId}`);
75700
- ws.send(JSON.stringify({
75701
- event: "mls_sync",
75702
- data: {
75703
- group_id: entry.mlsGroupId,
75704
- last_epoch: mlsGroup ? Number(mlsGroup.epoch) : 0
75705
- }
75706
- }));
75707
- }
75708
- }
75882
+ this._sendMlsSyncs(ws);
75709
75883
  this.emit("ready");
75710
75884
  } catch (openErr) {
75711
75885
  console.error("[SecureChannel] Error in WS open handler:", openErr);
@@ -75860,6 +76034,7 @@ ${text}`,
75860
76034
  }
75861
76035
  if (data.event === "mls_welcome_requested") {
75862
76036
  console.log(`[SecureChannel] mls_welcome_requested for group ${(data.data?.group_id || "").slice(0, 8)} \u2014 pulling deliveries`);
76037
+ this._deliveryCadence.requestFullSweep();
75863
76038
  this._pullDeliveryQueue().catch((err) => {
75864
76039
  console.warn("[SecureChannel] Delivery pull on welcome request failed:", err);
75865
76040
  });
@@ -75984,7 +76159,7 @@ ${text}`,
75984
76159
  agentVersion: this.config.agentVersion ?? "0.0.0",
75985
76160
  // __AV_VERSION__ is injected by esbuild from package.json at build time.
75986
76161
  // Falls back to "0.0.0-dev" in non-bundled contexts (tests).
75987
- pluginVersion: true ? "0.23.67" : "0.0.0-dev"
76162
+ pluginVersion: true ? "0.23.69" : "0.0.0-dev"
75988
76163
  });
75989
76164
  this._telemetryReporter.startAutoFlush(3e4);
75990
76165
  }
@@ -76055,6 +76230,7 @@ ${text}`,
76055
76230
  this.emit("hub_identity_removed", data.data);
76056
76231
  }
76057
76232
  if (data.event === "a2a_channel_approved") {
76233
+ this._a2aCadence.wake();
76058
76234
  const channelData = data.data || data;
76059
76235
  const channelId = channelData.channel_id;
76060
76236
  const convId = channelData.conversation_id;
@@ -76131,6 +76307,7 @@ ${text}`,
76131
76307
  this.emit("a2a_channel_revoked", channelData);
76132
76308
  }
76133
76309
  if (data.event === "a2a_channel_invited") {
76310
+ this._a2aCadence.wake();
76134
76311
  const channelData = data.data || data;
76135
76312
  const channelId = channelData.channel_id;
76136
76313
  const convId = channelData.conversation_id;
@@ -76492,7 +76669,9 @@ ${text}`,
76492
76669
  group_id: mlsGroupId,
76493
76670
  epoch: Number(mgr.epoch),
76494
76671
  payload: Buffer.from(cipher).toString("hex"),
76495
- message_type: "history_catchup_response"
76672
+ message_type: "history_catchup_response",
76673
+ message_kind: "control"
76674
+ // #1641
76496
76675
  }
76497
76676
  }));
76498
76677
  }
@@ -77439,12 +77618,8 @@ ${baseText}`;
77439
77618
  });
77440
77619
  this._recordPublishedKp(kp);
77441
77620
  await savePendingKpBundle(this.config.dataDir, groupId, kp, MLSGroupManager.serializeKeyPackage);
77442
- await fetch(`${this.config.apiUrl}/api/v1/mls/groups/${groupId}/request-welcome`, {
77443
- method: "POST",
77444
- headers: { Authorization: `Bearer ${this._deviceJwt}`, "Content-Type": "application/json" },
77445
- body: JSON.stringify({ device_id: this._deviceId })
77446
- });
77447
- console.log(`[SecureChannel] Welcome requested for room ${resolvedRoomId.slice(0, 8)} group ${groupId?.slice(0, 8)}`);
77621
+ const { ok: ok2 } = await this._postRequestWelcome(groupId, `room ${resolvedRoomId.slice(0, 8)}`);
77622
+ if (ok2) console.log(`[SecureChannel] Welcome requested for room ${resolvedRoomId.slice(0, 8)} group ${groupId?.slice(0, 8)}`);
77448
77623
  } catch (reqErr) {
77449
77624
  console.warn(`[SecureChannel] Welcome request failed for room ${resolvedRoomId.slice(0, 8)}:`, reqErr);
77450
77625
  await releaseA2ASyncLock(this.config.dataDir, roomLockId).catch(() => {
@@ -77823,7 +77998,69 @@ ${baseText}`;
77823
77998
  console.error(`[SecureChannel] MLS commit resync FAILED for ${label}:`, recoverErr);
77824
77999
  }
77825
78000
  }
78001
+ /**
78002
+ * #1721: the connect-time `mls_sync` for every persisted group. `last_epoch`
78003
+ * is the local manager's epoch, or 0 when this device holds no state for a
78004
+ * group it is persisted as belonging to — and 0 is exactly the moment the
78005
+ * client KNOWS it is stranded. `charlie` sent that 0 on every reconnect for
78006
+ * eight days while the server replayed frames it could not read, and never
78007
+ * once asked for the Welcome it needed. Now it asks, right here, for every
78008
+ * family the sync covers (the three loops this replaces were hand-copies of
78009
+ * one another, and only the room loop carried `since_ts`).
78010
+ *
78011
+ * The server also answers a 0 against a moved group with `rejoin` since
78012
+ * #1721, which fires the same self-heal from `_handleMlsSyncResponse`; the
78013
+ * two are deduped by `_requestWelcomeSelfHeal`'s inflight window, and this
78014
+ * one still fires against a server not yet on that release.
78015
+ */
78016
+ _sendMlsSyncs(ws) {
78017
+ const families = [
78018
+ { entries: this._persisted?.mlsConversations, managerKey: (id) => `conv:${id}` },
78019
+ { entries: this._persisted?.rooms, managerKey: (id) => id, sinceTs: (room) => room.lastMlsMessageTs },
78020
+ { entries: this._persisted?.a2aChannels, managerKey: (id) => `a2a:${id}` }
78021
+ ];
78022
+ for (const f22 of families) {
78023
+ for (const [id, entry] of Object.entries(f22.entries ?? {})) {
78024
+ const mlsGroupId = entry?.mlsGroupId;
78025
+ if (!mlsGroupId) continue;
78026
+ const mlsGroup = this._mlsGroups.get(f22.managerKey(id));
78027
+ const lastEpoch = mlsGroup?.isInitialized ? Number(mlsGroup.epoch) : 0;
78028
+ const syncData = { group_id: mlsGroupId, last_epoch: lastEpoch };
78029
+ const lastTs = f22.sinceTs?.(entry);
78030
+ if (lastTs) syncData.since_ts = lastTs;
78031
+ ws.send(JSON.stringify({ event: "mls_sync", data: syncData }));
78032
+ if (lastEpoch === 0 && !this._welcomeRefusedGroups.has(mlsGroupId)) {
78033
+ console.warn(`[SecureChannel] MLS sync at epoch 0 for group ${mlsGroupId.slice(0, 8)} \u2014 no local state for a group this device belongs to; requesting a Welcome (#1721)`);
78034
+ void this._requestWelcomeSelfHeal(mlsGroupId);
78035
+ }
78036
+ }
78037
+ }
78038
+ }
78039
+ /**
78040
+ * #1721: POST `request-welcome` and READ the answer. Three sites awaited this
78041
+ * fetch and never looked at the Response, so a 403 "Device not a member" was
78042
+ * indistinguishable from a 202 — the log said "Welcome requested" either way.
78043
+ * A 4xx marks the group refused for this process (see `_welcomeRefusedGroups`).
78044
+ */
78045
+ async _postRequestWelcome(groupId, label) {
78046
+ const res = await fetch(`${this.config.apiUrl}/api/v1/mls/groups/${groupId}/request-welcome`, {
78047
+ method: "POST",
78048
+ headers: { Authorization: `Bearer ${this._deviceJwt}`, "Content-Type": "application/json" },
78049
+ body: JSON.stringify({ device_id: this._deviceId })
78050
+ });
78051
+ if (!res.ok) {
78052
+ let body = "";
78053
+ try {
78054
+ body = (await res.text()).slice(0, 200);
78055
+ } catch {
78056
+ }
78057
+ if (res.status === 403 || res.status === 404) this._welcomeRefusedGroups.add(groupId);
78058
+ console.warn(`[SecureChannel] request-welcome for ${label} ${groupId.slice(0, 8)} refused: HTTP ${res.status} ${body}`);
78059
+ }
78060
+ return { ok: res.ok, status: res.status };
78061
+ }
77826
78062
  async _requestWelcomeSelfHeal(groupId) {
78063
+ if (this._welcomeRefusedGroups.has(groupId)) return;
77827
78064
  const now = Date.now();
77828
78065
  const last = this._welcomeSelfHealInflight.get(groupId) ?? 0;
77829
78066
  if (now - last < 3e4) return;
@@ -77841,17 +78078,59 @@ ${baseText}`;
77841
78078
  });
77842
78079
  this._recordPublishedKp(kp);
77843
78080
  await savePendingKpBundle(this.config.dataDir, groupId, kp, MLSGroupManager.serializeKeyPackage);
77844
- await fetch(`${this.config.apiUrl}/api/v1/mls/groups/${groupId}/request-welcome`, {
77845
- method: "POST",
77846
- headers: { Authorization: `Bearer ${this._deviceJwt}`, "Content-Type": "application/json" },
77847
- body: JSON.stringify({ device_id: this._deviceId })
77848
- });
78081
+ const { ok: ok2 } = await this._postRequestWelcome(groupId, "self-heal");
78082
+ if (!ok2) {
78083
+ this._welcomeSelfHealInflight.delete(groupId);
78084
+ return;
78085
+ }
77849
78086
  console.log(`[SecureChannel] Welcome self-heal requested for group ${groupId.slice(0, 8)} (no local MLS state)`);
77850
78087
  } catch (err) {
77851
78088
  this._welcomeSelfHealInflight.delete(groupId);
77852
78089
  console.warn(`[SecureChannel] Welcome self-heal failed for ${groupId.slice(0, 8)}:`, err);
77853
78090
  }
77854
78091
  }
78092
+ /**
78093
+ * #1721: keep this device's own Welcome request ALIVE for every persisted
78094
+ * group it holds no state for. Requests expire; a device that asked once and
78095
+ * was never served drops out of every server view keyed on a pending row,
78096
+ * and the pending-welcomes sweep below visits only groups WITH state. Run on
78097
+ * the full-sweep cadence (every `FULL_WELCOME_SWEEP_MS`), once per group per
78098
+ * renewal window, never for a group the server has refused. When a pending
78099
+ * KeyPackage bundle for the group is already on disk the committer can use
78100
+ * it, so only the request is re-posted; otherwise the full self-heal runs.
78101
+ */
78102
+ async _renewStatelessWelcomeRequests() {
78103
+ if (!this._deviceId || !this._deviceJwt) return;
78104
+ const now = Date.now();
78105
+ const families = [
78106
+ { entries: this._persisted?.rooms, managerKey: (id) => id },
78107
+ { entries: this._persisted?.mlsConversations, managerKey: (id) => `conv:${id}` },
78108
+ { entries: this._persisted?.a2aChannels, managerKey: (id) => `a2a:${id}` },
78109
+ { entries: this._persisted?.mlsGroups, managerKey: (id) => `1to1-group:${id}` }
78110
+ ];
78111
+ for (const f22 of families) {
78112
+ for (const [id, entry] of Object.entries(f22.entries ?? {})) {
78113
+ const mlsGroupId = entry?.mlsGroupId;
78114
+ if (!mlsGroupId) continue;
78115
+ if (this._mlsGroups.get(f22.managerKey(id))?.isInitialized) continue;
78116
+ if (this._welcomeRefusedGroups.has(mlsGroupId)) continue;
78117
+ const last = this._statelessRenewalAt.get(mlsGroupId) ?? 0;
78118
+ if (now - last < _SecureChannel._STATELESS_RENEWAL_MS) continue;
78119
+ this._statelessRenewalAt.set(mlsGroupId, now);
78120
+ try {
78121
+ if (await hasPendingWelcome(this.config.dataDir, mlsGroupId)) {
78122
+ const { ok: ok2 } = await this._postRequestWelcome(mlsGroupId, "renewal");
78123
+ if (ok2) console.log(`[SecureChannel] Welcome request renewed for group ${mlsGroupId.slice(0, 8)} (no local MLS state; pending KeyPackage reused)`);
78124
+ } else {
78125
+ this._welcomeSelfHealInflight.delete(mlsGroupId);
78126
+ await this._requestWelcomeSelfHeal(mlsGroupId);
78127
+ }
78128
+ } catch (err) {
78129
+ console.warn(`[SecureChannel] Welcome request renewal failed for ${mlsGroupId.slice(0, 8)}:`, err);
78130
+ }
78131
+ }
78132
+ }
78133
+ }
77855
78134
  async _triggerMlsEpochRecovery(groupKey, mlsGroupId) {
77856
78135
  console.warn(`[SecureChannel] MLS epoch recovery for ${groupKey} (${mlsGroupId.slice(0, 8)})`);
77857
78136
  this._mlsGroups.delete(groupKey);
@@ -77870,12 +78149,8 @@ ${baseText}`;
77870
78149
  });
77871
78150
  this._recordPublishedKp(kp);
77872
78151
  await savePendingKpBundle(this.config.dataDir, mlsGroupId, kp, MLSGroupManager.serializeKeyPackage);
77873
- await fetch(`${this.config.apiUrl}/api/v1/mls/groups/${mlsGroupId}/request-welcome`, {
77874
- method: "POST",
77875
- headers: { Authorization: `Bearer ${this._deviceJwt}`, "Content-Type": "application/json" },
77876
- body: JSON.stringify({ device_id: this._deviceId })
77877
- });
77878
- console.log(`[SecureChannel] Epoch recovery: Welcome requested for group ${mlsGroupId.slice(0, 8)}`);
78152
+ const { ok: ok2 } = await this._postRequestWelcome(mlsGroupId, "epoch recovery");
78153
+ if (ok2) console.log(`[SecureChannel] Epoch recovery: Welcome requested for group ${mlsGroupId.slice(0, 8)}`);
77879
78154
  } catch (err) {
77880
78155
  console.error(`[SecureChannel] Epoch recovery failed for ${mlsGroupId.slice(0, 8)}:`, err);
77881
78156
  }
@@ -78409,6 +78684,10 @@ ${baseText}`;
78409
78684
  const groupId = typeof payload?.group_id === "string" ? payload.group_id : void 0;
78410
78685
  const detail = typeof payload?.detail === "string" ? payload.detail : "";
78411
78686
  if (!groupId || !detail.endsWith("commit rejected")) return;
78687
+ if (payload?.error === "COMMIT_MALFORMED" && payload.expected_epoch === void 0 && payload.current_epoch === void 0) {
78688
+ console.warn(`[SecureChannel] un-numbered COMMIT_MALFORMED for ${groupId.slice(0, 8)} \u2014 not one of our commits; ignored`);
78689
+ return;
78690
+ }
78412
78691
  const inFlight = this._commitInFlight.get(groupId);
78413
78692
  if (!inFlight) return;
78414
78693
  const num2 = (v22) => typeof v22 === "number" && Number.isFinite(v22) ? v22 : void 0;
@@ -79206,9 +79485,31 @@ ${baseText}`;
79206
79485
  await this._persistState();
79207
79486
  await this._applyBufferedMlsCommits(groupId, mgr);
79208
79487
  }
79488
+ /** A new connection may have missed any signal, so it starts from fresh. */
79489
+ _beginDeliveryPulls() {
79490
+ this._deliveryCadence.reset();
79491
+ this._pullDeliveryQueue().catch((err) => {
79492
+ console.warn("[SecureChannel] Initial delivery pull failed:", err);
79493
+ });
79494
+ this._startDeliveryHeartbeat();
79495
+ }
79496
+ /**
79497
+ * Keep pulling while the socket is up. The tick costs nothing: it only asks
79498
+ * `_deliveryCadence` whether a pull is due, which is every 30 s until the
79499
+ * server says this device may rest. A signal that never arrives is recovered
79500
+ * here, within one rest.
79501
+ */
79502
+ _startDeliveryHeartbeat() {
79503
+ if (this._deliveryHeartbeat) clearInterval(this._deliveryHeartbeat);
79504
+ this._deliveryHeartbeat = setInterval(() => {
79505
+ if (!this._deliveryCadence.pullDue(Date.now())) return;
79506
+ this._pullDeliveryQueue().catch(() => {
79507
+ });
79508
+ }, DELIVERY_TICK_MS);
79509
+ }
79209
79510
  /**
79210
79511
  * Pull pending MLS messages from the delivery queue and process them.
79211
- * Called on WS connect, on mls_delivery ping, and every 30s heartbeat.
79512
+ * Called on WS connect, on mls_delivery ping, and by the delivery heartbeat.
79212
79513
  */
79213
79514
  async _pullDeliveryQueue() {
79214
79515
  if (!this._deviceId || !this._deviceJwt) return;
@@ -79217,6 +79518,7 @@ ${baseText}`;
79217
79518
  return;
79218
79519
  }
79219
79520
  this._deliveryPulling = true;
79521
+ this._deliveryCadence.pullStarted(Date.now());
79220
79522
  try {
79221
79523
  const res = await fetch(
79222
79524
  `${this.config.apiUrl}/api/v1/mls/delivery?device_id=${this._deviceId}`,
@@ -79226,7 +79528,9 @@ ${baseText}`;
79226
79528
  console.warn(`[SecureChannel] Delivery pull failed: ${res.status}`);
79227
79529
  return;
79228
79530
  }
79229
- let { messages } = await res.json();
79531
+ const pulled = await res.json();
79532
+ let { messages } = pulled;
79533
+ const sync = parseDeliverySync(pulled.sync);
79230
79534
  const hasMessages = messages && messages.length > 0;
79231
79535
  if (hasMessages) {
79232
79536
  messages = orderDeliveryBatch(messages);
@@ -79347,11 +79651,16 @@ ${baseText}`;
79347
79651
  }
79348
79652
  }
79349
79653
  }
79654
+ const welcomeTargets = this._deliveryCadence.welcomeTargets(Date.now(), sync);
79655
+ if (welcomeTargets === null) {
79656
+ await this._renewStatelessWelcomeRequests();
79657
+ }
79350
79658
  for (const [roomId, mlsGroup] of this._mlsGroups) {
79351
79659
  if (!mlsGroup?.isInitialized) continue;
79352
79660
  if (roomId.includes(":")) continue;
79353
79661
  const roomState = this._persisted?.rooms?.[roomId];
79354
79662
  if (!roomState?.mlsGroupId) continue;
79663
+ if (!wantsWelcomeRead(welcomeTargets, roomState.mlsGroupId)) continue;
79355
79664
  try {
79356
79665
  const roomLabel2 = `room ${roomId.slice(0, 8)}`;
79357
79666
  const pendingRes = await fetch(
@@ -79452,6 +79761,7 @@ ${baseText}`;
79452
79761
  if (!entry.mlsGroupId) continue;
79453
79762
  const mlsGroup = this._mlsGroups.get(`1to1-group:${gid}`);
79454
79763
  if (!mlsGroup?.isInitialized) continue;
79764
+ if (!wantsWelcomeRead(welcomeTargets, entry.mlsGroupId)) continue;
79455
79765
  try {
79456
79766
  const sharedLabel = `shared group ${gid.slice(0, 8)}`;
79457
79767
  const pendingRes = await fetch(
@@ -79548,6 +79858,7 @@ ${baseText}`;
79548
79858
  if (!convEntry.mlsGroupId) continue;
79549
79859
  const mlsGroup = this._mlsGroups.get(`conv:${convId}`);
79550
79860
  if (!mlsGroup?.isInitialized) continue;
79861
+ if (!wantsWelcomeRead(welcomeTargets, convEntry.mlsGroupId)) continue;
79551
79862
  try {
79552
79863
  const convLabel = `conv ${convId.slice(0, 8)}`;
79553
79864
  const pendingRes = await fetch(
@@ -79690,6 +80001,7 @@ ${baseText}`;
79690
80001
  } catch {
79691
80002
  }
79692
80003
  }
80004
+ if (!hasMessages) this._deliveryCadence.pullWasQuiet(Date.now(), sync);
79693
80005
  } catch (err) {
79694
80006
  console.warn("[SecureChannel] Delivery pull error:", err);
79695
80007
  } finally {
@@ -80579,6 +80891,7 @@ ${baseText}`;
80579
80891
  }
80580
80892
  async _checkPendingMessages() {
80581
80893
  if (this._state === "connecting" || !this._deviceId || !this._deviceJwt) return;
80894
+ if (this._state === "ready" && Date.now() - this._lastServerMessage <= PENDING_POLL_SILENCE_MS) return;
80582
80895
  try {
80583
80896
  const url22 = `${this.config.apiUrl}/api/v1/devices/${this._deviceId}/pending`;
80584
80897
  const resp = await fetch(url22, {
@@ -80598,7 +80911,7 @@ ${baseText}`;
80598
80911
  }
80599
80912
  } else if (data.pending > 0 && this._state === "ready") {
80600
80913
  const silence = Date.now() - this._lastServerMessage;
80601
- if (silence > 18e4) {
80914
+ if (silence > PENDING_POLL_SILENCE_MS) {
80602
80915
  console.log(
80603
80916
  `[SecureChannel] Poll: ${data.pending} pending + ${Math.round(silence / 1e3)}s silence \u2014 forcing reconnect`
80604
80917
  );
@@ -100221,6 +100534,15 @@ ${content.join("\n")}
100221
100534
  this._promptHandlersInitialized = false;
100222
100535
  this.server = new Server(serverInfo, options);
100223
100536
  this._maxToolInputElements = resolveMaxToolInputElements(options?.maxToolInputElements);
100537
+ if (options?.capabilities?.tools) {
100538
+ this.setToolRequestHandlers();
100539
+ }
100540
+ if (options?.capabilities?.resources) {
100541
+ this.setResourceRequestHandlers();
100542
+ }
100543
+ if (options?.capabilities?.prompts) {
100544
+ this.setPromptRequestHandlers();
100545
+ }
100224
100546
  }
100225
100547
  /**
100226
100548
  * Access experimental features.
@@ -102780,7 +103102,7 @@ data:
102780
103102
  init_room_protocol();
102781
103103
  init_tool_telemetry();
102782
103104
  init_turn_failure();
102783
- VERSION = true ? "0.23.67" : "0.0.0-dev";
103105
+ VERSION = true ? "0.23.69" : "0.0.0-dev";
102784
103106
  }
102785
103107
  });
102786
103108
  await init_index();
@@ -147042,7 +147364,7 @@ function makeShutdown(deps) {
147042
147364
 
147043
147365
  // src/index.ts
147044
147366
  async function main() {
147045
- if (answerInfoFlags(process.argv, true ? "0.8.38" : void 0, printLine)) {
147367
+ if (answerInfoFlags(process.argv, true ? "0.8.40" : void 0, printLine)) {
147046
147368
  process.exit(0);
147047
147369
  }
147048
147370
  if (process.argv[2] === "recovery" && await (await init_recovery().then(() => recovery_exports)).maybeRunRecoverySubcommand()) {
@@ -147070,7 +147392,7 @@ async function main() {
147070
147392
  "[bridge] warning: passing the invite token on the command line is visible to other local users via 'ps'. Prefer: AV_INVITE_TOKEN=\u2026 npx @agentvault/claude-bridge"
147071
147393
  );
147072
147394
  }
147073
- logLine(`[bridge] version: ${true ? "0.8.38" : "dev"}`);
147395
+ logLine(`[bridge] version: ${true ? "0.8.40" : "dev"}`);
147074
147396
  logLine(`[bridge] data dir: ${cfg.dataDir} (${cfg.dataDirSource})`);
147075
147397
  logLine(`[bridge] workspace: ${cfg.workspaceDir} \xB7 permissions: ${cfg.permissionMode} \xB7 enclave dir fenced`);
147076
147398
  if (cfg.armRoom) {
@@ -147102,7 +147424,7 @@ async function main() {
147102
147424
  // its default would render "@agentvault/agentvault@0.7.x" — the wrong
147103
147425
  // package name attached to the bridge's version number, which is worse
147104
147426
  // than either alone.
147105
- clientVersion: `@agentvault/claude-bridge@${true ? "0.8.38" : "dev"}`
147427
+ clientVersion: `@agentvault/claude-bridge@${true ? "0.8.40" : "dev"}`
147106
147428
  });
147107
147429
  const agentSystemPrompt = cfg.systemPrompt ?? identityPrompt(cfg.agentName);
147108
147430
  const deviceJwt = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentvault/claude-bridge",
3
- "version": "0.8.38",
3
+ "version": "0.8.40",
4
4
  "type": "module",
5
5
  "description": "AgentVault Claude Bridge — daemon for bridging a Claude agent into secure E2E-encrypted AgentVault 1:1 direct messages and rooms.",
6
6
  "main": "dist/index.js",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@anthropic-ai/claude-agent-sdk": "^0.2.114",
34
- "ws": "^8.16.0",
34
+ "ws": "^8.22.1",
35
35
  "zod": "^4.6.7"
36
36
  },
37
37
  "devDependencies": {
@@ -39,7 +39,7 @@
39
39
  "esbuild": "^0.28.2",
40
40
  "typescript": "^5.4.0",
41
41
  "vitest": "^2.0.0",
42
- "@types/node": "^20.0.0"
42
+ "@types/node": "^20.19.43"
43
43
  },
44
44
  "publishConfig": {
45
45
  "access": "public"