@agentvault/claude-bridge 0.8.17 → 0.8.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2801,14 +2801,14 @@ function base58Encode(bytes) {
2801
2801
  else
2802
2802
  break;
2803
2803
  }
2804
- let num = BigInt(0);
2804
+ let num2 = BigInt(0);
2805
2805
  for (const b22 of bytes) {
2806
- num = num * 256n + BigInt(b22);
2806
+ num2 = num2 * 256n + BigInt(b22);
2807
2807
  }
2808
2808
  let result = "";
2809
- while (num > 0n) {
2810
- const remainder = Number(num % 58n);
2811
- num = num / 58n;
2809
+ while (num2 > 0n) {
2810
+ const remainder = Number(num2 % 58n);
2811
+ num2 = num2 / 58n;
2812
2812
  result = BASE58_ALPHABET[remainder] + result;
2813
2813
  }
2814
2814
  return "1".repeat(zeros) + result;
@@ -2821,14 +2821,14 @@ function base58Decode(str) {
2821
2821
  else
2822
2822
  break;
2823
2823
  }
2824
- let num = BigInt(0);
2824
+ let num2 = BigInt(0);
2825
2825
  for (const c22 of str.slice(zeros)) {
2826
2826
  const idx = BASE58_ALPHABET.indexOf(c22);
2827
2827
  if (idx === -1)
2828
2828
  throw new Error(`Invalid base58 character: ${c22}`);
2829
- num = num * 58n + BigInt(idx);
2829
+ num2 = num2 * 58n + BigInt(idx);
2830
2830
  }
2831
- const hex32 = num === 0n ? "" : num.toString(16).padStart(2, "0");
2831
+ const hex32 = num2 === 0n ? "" : num2.toString(16).padStart(2, "0");
2832
2832
  const paddedHex = hex32.length % 2 ? "0" + hex32 : hex32;
2833
2833
  const dataBytes = new Uint8Array((paddedHex.match(/.{2}/g) ?? []).map((b22) => parseInt(b22, 16)));
2834
2834
  const result = new Uint8Array(zeros + dataBytes.length);
@@ -2996,14 +2996,14 @@ function base58Encode2(bytes) {
2996
2996
  else
2997
2997
  break;
2998
2998
  }
2999
- let num = BigInt(0);
2999
+ let num2 = BigInt(0);
3000
3000
  for (const b22 of bytes) {
3001
- num = num * 256n + BigInt(b22);
3001
+ num2 = num2 * 256n + BigInt(b22);
3002
3002
  }
3003
3003
  let result = "";
3004
- while (num > 0n) {
3005
- const remainder = Number(num % 58n);
3006
- num = num / 58n;
3004
+ while (num2 > 0n) {
3005
+ const remainder = Number(num2 % 58n);
3006
+ num2 = num2 / 58n;
3007
3007
  result = BASE58_ALPHABET2[remainder] + result;
3008
3008
  }
3009
3009
  return "1".repeat(zeros) + result;
@@ -3016,14 +3016,14 @@ function base58Decode2(str) {
3016
3016
  else
3017
3017
  break;
3018
3018
  }
3019
- let num = BigInt(0);
3019
+ let num2 = BigInt(0);
3020
3020
  for (const c22 of str.slice(zeros)) {
3021
3021
  const idx = BASE58_ALPHABET2.indexOf(c22);
3022
3022
  if (idx === -1)
3023
3023
  throw new Error(`Invalid base58 character: ${c22}`);
3024
- num = num * 58n + BigInt(idx);
3024
+ num2 = num2 * 58n + BigInt(idx);
3025
3025
  }
3026
- const hex32 = num === 0n ? "" : num.toString(16).padStart(2, "0");
3026
+ const hex32 = num2 === 0n ? "" : num2.toString(16).padStart(2, "0");
3027
3027
  const paddedHex = hex32.length % 2 ? "0" + hex32 : hex32;
3028
3028
  const dataBytes = new Uint8Array((paddedHex.match(/.{2}/g) ?? []).map((b22) => parseInt(b22, 16)));
3029
3029
  const result = new Uint8Array(zeros + dataBytes.length);
@@ -3398,7 +3398,10 @@ function buildLlmSpan(opts) {
3398
3398
  "gen_ai.request.model": opts.model,
3399
3399
  "gen_ai.usage.input_tokens": opts.tokensInput,
3400
3400
  "gen_ai.usage.output_tokens": opts.tokensOutput,
3401
- "gen_ai.operation.name": "chat"
3401
+ "gen_ai.operation.name": "chat",
3402
+ // AgentVault extensions the backend ledger reads (telemetry_service.py
3403
+ // _fan_in_genai_ledger) — the same names the Hermes plugin sends.
3404
+ "av.genai.latency_ms": opts.latencyMs
3402
3405
  };
3403
3406
  if (opts.provider !== void 0) {
3404
3407
  attributes["ai.agent.llm.provider"] = opts.provider;
@@ -3407,6 +3410,7 @@ function buildLlmSpan(opts) {
3407
3410
  if (opts.costUsd !== void 0) {
3408
3411
  attributes["ai.agent.llm.cost_usd"] = opts.costUsd;
3409
3412
  attributes["gen_ai.usage.cost_usd"] = opts.costUsd;
3413
+ attributes["av.genai.cost_usd"] = opts.costUsd;
3410
3414
  }
3411
3415
  applySkillName(attributes, opts.skillName);
3412
3416
  const isError = opts.status === "error";
@@ -7599,11 +7603,11 @@ function getOutput(expectedLength, out, onlyAligned = true) {
7599
7603
  }
7600
7604
  function u64Lengths(dataLength, aadLength, isLE5) {
7601
7605
  abool(isLE5);
7602
- const num = new Uint8Array(16);
7603
- const view = createView3(num);
7606
+ const num2 = new Uint8Array(16);
7607
+ const view = createView3(num2);
7604
7608
  view.setBigUint64(0, BigInt(aadLength), isLE5);
7605
7609
  view.setBigUint64(8, BigInt(dataLength), isLE5);
7606
- return num;
7610
+ return num2;
7607
7611
  }
7608
7612
  function isAligned32(bytes) {
7609
7613
  return bytes.byteOffset % 4 === 0;
@@ -8257,8 +8261,8 @@ function _abytes2(value, length, title = "") {
8257
8261
  }
8258
8262
  return value;
8259
8263
  }
8260
- function numberToHexUnpadded(num) {
8261
- const hex32 = num.toString(16);
8264
+ function numberToHexUnpadded(num2) {
8265
+ const hex32 = num2.toString(16);
8262
8266
  return hex32.length & 1 ? "0" + hex32 : hex32;
8263
8267
  }
8264
8268
  function hexToNumber3(hex32) {
@@ -8554,15 +8558,15 @@ function validateField(field) {
8554
8558
  _validateObject(field, opts);
8555
8559
  return field;
8556
8560
  }
8557
- function FpPow(Fp3, num, power) {
8561
+ function FpPow(Fp3, num2, power) {
8558
8562
  if (power < _0n3)
8559
8563
  throw new Error("invalid exponent, negatives unsupported");
8560
8564
  if (power === _0n3)
8561
8565
  return Fp3.ONE;
8562
8566
  if (power === _1n3)
8563
- return num;
8567
+ return num2;
8564
8568
  let p2 = Fp3.ONE;
8565
- let d22 = num;
8569
+ let d22 = num2;
8566
8570
  while (power > _0n3) {
8567
8571
  if (power & _1n3)
8568
8572
  p2 = Fp3.mul(p2, d22);
@@ -8573,18 +8577,18 @@ function FpPow(Fp3, num, power) {
8573
8577
  }
8574
8578
  function FpInvertBatch(Fp3, nums, passZero = false) {
8575
8579
  const inverted = new Array(nums.length).fill(passZero ? Fp3.ZERO : void 0);
8576
- const multipliedAcc = nums.reduce((acc, num, i2) => {
8577
- if (Fp3.is0(num))
8580
+ const multipliedAcc = nums.reduce((acc, num2, i2) => {
8581
+ if (Fp3.is0(num2))
8578
8582
  return acc;
8579
8583
  inverted[i2] = acc;
8580
- return Fp3.mul(acc, num);
8584
+ return Fp3.mul(acc, num2);
8581
8585
  }, Fp3.ONE);
8582
8586
  const invertedAcc = Fp3.inv(multipliedAcc);
8583
- nums.reduceRight((acc, num, i2) => {
8584
- if (Fp3.is0(num))
8587
+ nums.reduceRight((acc, num2, i2) => {
8588
+ if (Fp3.is0(num2))
8585
8589
  return acc;
8586
8590
  inverted[i2] = Fp3.mul(acc, inverted[i2]);
8587
- return Fp3.mul(acc, num);
8591
+ return Fp3.mul(acc, num2);
8588
8592
  }, invertedAcc);
8589
8593
  return inverted;
8590
8594
  }
@@ -8644,36 +8648,36 @@ function Field(ORDER, bitLenOrOpts, isLE5 = false, opts = {}) {
8644
8648
  ZERO: _0n3,
8645
8649
  ONE: _1n3,
8646
8650
  allowedLengths,
8647
- create: (num) => mod3(num, ORDER),
8648
- isValid: (num) => {
8649
- if (typeof num !== "bigint")
8650
- throw new Error("invalid field element: expected bigint, got " + typeof num);
8651
- return _0n3 <= num && num < ORDER;
8651
+ create: (num2) => mod3(num2, ORDER),
8652
+ isValid: (num2) => {
8653
+ if (typeof num2 !== "bigint")
8654
+ throw new Error("invalid field element: expected bigint, got " + typeof num2);
8655
+ return _0n3 <= num2 && num2 < ORDER;
8652
8656
  },
8653
- is0: (num) => num === _0n3,
8657
+ is0: (num2) => num2 === _0n3,
8654
8658
  // is valid and invertible
8655
- isValidNot0: (num) => !f22.is0(num) && f22.isValid(num),
8656
- isOdd: (num) => (num & _1n3) === _1n3,
8657
- neg: (num) => mod3(-num, ORDER),
8659
+ isValidNot0: (num2) => !f22.is0(num2) && f22.isValid(num2),
8660
+ isOdd: (num2) => (num2 & _1n3) === _1n3,
8661
+ neg: (num2) => mod3(-num2, ORDER),
8658
8662
  eql: (lhs, rhs) => lhs === rhs,
8659
- sqr: (num) => mod3(num * num, ORDER),
8663
+ sqr: (num2) => mod3(num2 * num2, ORDER),
8660
8664
  add: (lhs, rhs) => mod3(lhs + rhs, ORDER),
8661
8665
  sub: (lhs, rhs) => mod3(lhs - rhs, ORDER),
8662
8666
  mul: (lhs, rhs) => mod3(lhs * rhs, ORDER),
8663
- pow: (num, power) => FpPow(f22, num, power),
8667
+ pow: (num2, power) => FpPow(f22, num2, power),
8664
8668
  div: (lhs, rhs) => mod3(lhs * invert(rhs, ORDER), ORDER),
8665
8669
  // Same as above, but doesn't normalize
8666
- sqrN: (num) => num * num,
8670
+ sqrN: (num2) => num2 * num2,
8667
8671
  addN: (lhs, rhs) => lhs + rhs,
8668
8672
  subN: (lhs, rhs) => lhs - rhs,
8669
8673
  mulN: (lhs, rhs) => lhs * rhs,
8670
- inv: (num) => invert(num, ORDER),
8674
+ inv: (num2) => invert(num2, ORDER),
8671
8675
  sqrt: _sqrt || ((n22) => {
8672
8676
  if (!sqrtP)
8673
8677
  sqrtP = FpSqrt(ORDER);
8674
8678
  return sqrtP(f22, n22);
8675
8679
  }),
8676
- toBytes: (num) => isLE5 ? numberToBytesLE2(num, BYTES) : numberToBytesBE2(num, BYTES),
8680
+ toBytes: (num2) => isLE5 ? numberToBytesLE2(num2, BYTES) : numberToBytesBE2(num2, BYTES),
8677
8681
  fromBytes: (bytes, skipValidation = true) => {
8678
8682
  if (allowedLengths) {
8679
8683
  if (!allowedLengths.includes(bytes.length) || bytes.length > BYTES) {
@@ -8724,8 +8728,8 @@ function mapHashToField(key, fieldOrder, isLE5 = false) {
8724
8728
  const minLen = getMinHashLength(fieldOrder);
8725
8729
  if (len < 16 || len < minLen || len > 1024)
8726
8730
  throw new Error("expected " + minLen + "-1024 bytes of input, got " + len);
8727
- const num = isLE5 ? bytesToNumberLE2(key) : bytesToNumberBE(key);
8728
- const reduced = mod3(num, fieldOrder - _1n3) + _1n3;
8731
+ const num2 = isLE5 ? bytesToNumberLE2(key) : bytesToNumberBE(key);
8732
+ const reduced = mod3(num2, fieldOrder - _1n3) + _1n3;
8729
8733
  return isLE5 ? numberToBytesLE2(reduced, fieldLen) : numberToBytesBE2(reduced, fieldLen);
8730
8734
  }
8731
8735
  function negateCt(condition, item) {
@@ -9454,8 +9458,8 @@ function hash_to_field(msg, count, options) {
9454
9458
  function createHasher4(Point, mapToCurve, defaults) {
9455
9459
  if (typeof mapToCurve !== "function")
9456
9460
  throw new Error("mapToCurve() must be defined");
9457
- function map22(num) {
9458
- return Point.fromAffine(mapToCurve(num));
9461
+ function map22(num2) {
9462
+ return Point.fromAffine(mapToCurve(num2));
9459
9463
  }
9460
9464
  function clear(initial) {
9461
9465
  const P22 = initial.clearCofactor();
@@ -9978,20 +9982,20 @@ function validateSigOpts(opts, def) {
9978
9982
  }
9979
9983
  function _normFnElement(Fn3, key) {
9980
9984
  const { BYTES: expected } = Fn3;
9981
- let num;
9985
+ let num2;
9982
9986
  if (typeof key === "bigint") {
9983
- num = key;
9987
+ num2 = key;
9984
9988
  } else {
9985
9989
  let bytes = ensureBytes("private key", key);
9986
9990
  try {
9987
- num = Fn3.fromBytes(bytes);
9991
+ num2 = Fn3.fromBytes(bytes);
9988
9992
  } catch (error210) {
9989
9993
  throw new Error(`invalid private key: expected ui8a of size ${expected}, got ${typeof key}`);
9990
9994
  }
9991
9995
  }
9992
- if (!Fn3.isValidNot0(num))
9996
+ if (!Fn3.isValidNot0(num2))
9993
9997
  throw new Error("invalid private key: out of range [1..N-1]");
9994
- return num;
9998
+ return num2;
9995
9999
  }
9996
10000
  function weierstrassN(params, extraOpts = {}) {
9997
10001
  const validated = _createCurveFields("weierstrass", params, extraOpts);
@@ -10646,10 +10650,10 @@ function ecdsa(Point, hash22, ecdsaOpts = {}) {
10646
10650
  const HALF = CURVE_ORDER >> _1n10;
10647
10651
  return number32 > HALF;
10648
10652
  }
10649
- function validateRS(title, num) {
10650
- if (!Fn3.isValidNot0(num))
10653
+ function validateRS(title, num2) {
10654
+ if (!Fn3.isValidNot0(num2))
10651
10655
  throw new Error(`invalid signature ${title}: out of range 1..Point.Fn.ORDER`);
10652
- return num;
10656
+ return num2;
10653
10657
  }
10654
10658
  function validateSigLength(bytes, format2) {
10655
10659
  validateSigFormat(format2);
@@ -10759,17 +10763,17 @@ function ecdsa(Point, hash22, ecdsaOpts = {}) {
10759
10763
  const bits2int = ecdsaOpts.bits2int || function bits2int_def(bytes) {
10760
10764
  if (bytes.length > 8192)
10761
10765
  throw new Error("input is too large");
10762
- const num = bytesToNumberBE(bytes);
10766
+ const num2 = bytesToNumberBE(bytes);
10763
10767
  const delta = bytes.length * 8 - fnBits;
10764
- return delta > 0 ? num >> BigInt(delta) : num;
10768
+ return delta > 0 ? num2 >> BigInt(delta) : num2;
10765
10769
  };
10766
10770
  const bits2int_modN = ecdsaOpts.bits2int_modN || function bits2int_modN_def(bytes) {
10767
10771
  return Fn3.create(bits2int(bytes));
10768
10772
  };
10769
10773
  const ORDER_MASK = bitMask(fnBits);
10770
- function int2octets(num) {
10771
- aInRange2("num < 2^" + fnBits, num, _0n9, ORDER_MASK);
10772
- return Fn3.toBytes(num);
10774
+ function int2octets(num2) {
10775
+ aInRange2("num < 2^" + fnBits, num2, _0n9, ORDER_MASK);
10776
+ return Fn3.toBytes(num2);
10773
10777
  }
10774
10778
  function validateMsgAndHash(message, prehash) {
10775
10779
  _abytes2(message, void 0, "message");
@@ -11272,11 +11276,11 @@ function computeTag2(fn, isLE5, key, data, AAD) {
11272
11276
  const h22 = fn.create(key, data.length + aadLength);
11273
11277
  if (AAD)
11274
11278
  h22.update(AAD);
11275
- const num = u64Lengths(8 * data.length, 8 * aadLength, isLE5);
11279
+ const num2 = u64Lengths(8 * data.length, 8 * aadLength, isLE5);
11276
11280
  h22.update(data);
11277
- h22.update(num);
11281
+ h22.update(num2);
11278
11282
  const res = h22.digest();
11279
- clean3(num);
11283
+ clean3(num2);
11280
11284
  return res;
11281
11285
  }
11282
11286
  function isBytes32(a2) {
@@ -11662,11 +11666,11 @@ async function joinWithFirstMatchingKp(welcomeBytes, candidates) {
11662
11666
  return null;
11663
11667
  }
11664
11668
  function ownIdentity() {
11665
- const v22 = true ? "0.23.45" : FALLBACK;
11669
+ const v22 = true ? "0.23.46" : FALLBACK;
11666
11670
  return `${PACKAGE}@${v22}`;
11667
11671
  }
11668
11672
  function buildSha() {
11669
- const raw = true ? "af0ab83" : "";
11673
+ const raw = true ? "576baf3" : "";
11670
11674
  const cleaned = (raw ?? "").trim();
11671
11675
  return !cleaned || cleaned === "unknown" ? null : cleaned;
11672
11676
  }
@@ -17160,7 +17164,7 @@ function writeFromReadableStream(stream, writable) {
17160
17164
  }
17161
17165
  return writeFromReadableStreamDefaultReader(stream.getReader(), writable);
17162
17166
  }
17163
- var __create, __defProp2, __getOwnPropDesc, __getOwnPropNames2, __getProtoOf, __hasOwnProp, __esm2, __commonJS, __export2, __copyProps, __toESM, SENTINEL, WRAPPERS, INSTRUCTION, init_abstention, init_envelope_text, init_mls_commit_classify, MENTION_RE, BROADCAST_NAMES, init_room_protocol, __filename, __dirname, url2, path, Module, Module, root, window_, crypto_, randomValuesStandard, crypto4, 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, isLE, swap8IfBE, swap32IfBE, hasHexBuiltin, hexes, oidNist, init_utils, BSIGMA, init_blake, HashMD, SHA256_IV, SHA384_IV, SHA512_IV, init_md, U32_MASK64, _32n, shrSH, shrSL, rotrSH, rotrSL, rotrBH, rotrBL, rotr32H, rotr32L, add3L, add3H, add4L, add4H, add5L, add5H, init_u64, 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, crypto2, 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, 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, init_transport2, A2ALogGate, init_a2a_log_gate, 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, history_backup_client_exports, HISTORY_RESTORE_TIMEOUT_MS, HISTORY_RESTORE_RESPONSE_MAX_BYTES, HISTORY_ENVELOPE_MIN_BYTES, HISTORY_AAD_PREFIX, UUID_RE2, GENERATION_RESPONSE_KEYS, utf8Encoder, utf8Decoder, HistoryBackupClient, init_history_backup_client, openclaw_compat_exports, defaultImporter, HEARTBEAT_CANDIDATES, AGENT_EVENT_CANDIDATES, TRANSCRIPT_CANDIDATES, _heartbeatFn, _agentEventFn, _transcriptFn, init_openclaw_compat, 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_RE3, RECONNECT_MAX_MS, PENDING_POLL_INTERVAL_MS, HISTORY_RESTORE_TIMEOUT_MS2, 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, 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, init_llm_cost, traceStore, init_fetch_interceptor, init_tool_audit, init_harness_compat, managedRoutesRequested, init_openclaw_entry, util, objectUtil, ZodParsedType, getParsedType, init_util, ZodIssueCode, ZodError, init_ZodError, errorMap, en_default, init_en, overrideErrorMap, init_errors2, makeIssue, ParseStatus, INVALID, DIRTY, OK, isAborted, isDirty, isValid, isAsync, init_parseUtil, init_typeAliases, errorUtil, init_errorUtil, ParseInputLazyPath, handleResult, ZodType, cuidRegex, cuid2Regex, ulidRegex, uuidRegex, nanoidRegex, jwtRegex, durationRegex, emailRegex, _emojiRegex, emojiRegex, ipv4Regex, ipv4CidrRegex, ipv6Regex, ipv6CidrRegex, base64Regex, base64urlRegex, dateRegexSource, dateRegex, ZodString, ZodNumber, ZodBigInt, ZodBoolean, ZodDate, ZodSymbol, ZodUndefined, ZodNull, ZodAny, ZodUnknown, ZodNever, ZodVoid, ZodArray, ZodObject, ZodUnion, getDiscriminator, ZodDiscriminatedUnion, ZodIntersection, ZodTuple, ZodRecord, ZodMap, ZodSet, ZodFunction, ZodLazy, ZodLiteral, ZodEnum, ZodNativeEnum, ZodPromise, ZodEffects, ZodOptional, ZodNullable, ZodDefault, ZodCatch, ZodNaN, ZodBranded, ZodPipeline, ZodReadonly, late, ZodFirstPartyTypeKind, stringType, numberType, nanType, bigIntType, booleanType, dateType, symbolType, undefinedType, nullType, anyType, unknownType, neverType, voidType, arrayType, objectType, strictObjectType, unionType, discriminatedUnionType, intersectionType, tupleType, recordType, mapType, setType, functionType, lazyType, literalType, enumType, nativeEnumType, promiseType, effectsType, optionalType, nullableType, preprocessType, pipelineType, init_types2, init_external, init_v3, NEVER, $ZodAsyncError, $ZodEncodeError, globalConfig, init_core, util_exports, EVALUATING, captureStackTrace, allowsEval, getParsedType2, propertyKeyTypes, primitiveTypes, NUMBER_FORMAT_RANGES, BIGINT_FORMAT_RANGES, Class, init_util2, initializer, $ZodError, $ZodRealError, init_errors3, _parse, parse, _parseAsync, parseAsync, _safeParse, safeParse, _safeParseAsync, safeParseAsync, _encode, _decode, _encodeAsync, _decodeAsync, _safeEncode, _safeDecode, _safeEncodeAsync, _safeDecodeAsync, init_parse, regexes_exports, cuid, cuid2, ulid, xid, ksuid, nanoid, duration, extendedDuration, guid, uuid, uuid4, uuid6, uuid7, email, html5Email, rfc5322Email, unicodeEmail, idnEmail, browserEmail, _emoji, ipv4, ipv6, mac, cidrv4, cidrv6, base64, base64url, hostname, domain, e164, dateSource, date, string, bigint, integer, number, boolean, _null, _undefined, lowercase, uppercase, hex, md5_hex, md5_base64, md5_base64url, sha1_hex, sha1_base64, sha1_base64url, sha256_hex, sha256_base64, sha256_base64url, sha384_hex, sha384_base64, sha384_base64url, sha512_hex, sha512_base64, sha512_base64url, init_regexes, $ZodCheck, numericOriginMap, $ZodCheckLessThan, $ZodCheckGreaterThan, $ZodCheckMultipleOf, $ZodCheckNumberFormat, $ZodCheckBigIntFormat, $ZodCheckMaxSize, $ZodCheckMinSize, $ZodCheckSizeEquals, $ZodCheckMaxLength, $ZodCheckMinLength, $ZodCheckLengthEquals, $ZodCheckStringFormat, $ZodCheckRegex, $ZodCheckLowerCase, $ZodCheckUpperCase, $ZodCheckIncludes, $ZodCheckStartsWith, $ZodCheckEndsWith, $ZodCheckProperty, $ZodCheckMimeType, $ZodCheckOverwrite, init_checks, Doc, init_doc, version, init_versions, $ZodType, $ZodString, $ZodStringFormat, $ZodGUID, $ZodUUID, $ZodEmail, $ZodURL, $ZodEmoji, $ZodNanoID, $ZodCUID, $ZodCUID2, $ZodULID, $ZodXID, $ZodKSUID, $ZodISODateTime, $ZodISODate, $ZodISOTime, $ZodISODuration, $ZodIPv4, $ZodIPv6, $ZodMAC, $ZodCIDRv4, $ZodCIDRv6, $ZodBase64, $ZodBase64URL, $ZodE164, $ZodJWT, $ZodCustomStringFormat, $ZodNumber, $ZodNumberFormat, $ZodBoolean, $ZodBigInt, $ZodBigIntFormat, $ZodSymbol, $ZodUndefined, $ZodNull, $ZodAny, $ZodUnknown, $ZodNever, $ZodVoid, $ZodDate, $ZodArray, $ZodObject, $ZodObjectJIT, $ZodUnion, $ZodXor, $ZodDiscriminatedUnion, $ZodIntersection, $ZodTuple, $ZodRecord, $ZodMap, $ZodSet, $ZodEnum, $ZodLiteral, $ZodFile, $ZodTransform, $ZodOptional, $ZodExactOptional, $ZodNullable, $ZodDefault, $ZodPrefault, $ZodNonOptional, $ZodSuccess, $ZodCatch, $ZodNaN, $ZodPipe, $ZodCodec, $ZodReadonly, $ZodTemplateLiteral, $ZodFunction, $ZodPromise, $ZodLazy, $ZodCustom, init_schemas, init_ar, init_az, init_be, init_bg, init_ca, init_cs, init_da, init_de, error, init_en2, init_eo, init_es, init_fa, init_fi, init_fr, init_fr_CA, init_he, init_hu, init_hy, init_id, init_is, init_it, init_ja, init_ka, init_km, init_kh, init_ko, init_lt, init_mk, init_ms, init_nl, init_no, init_ota, init_ps, init_pl, init_pt, init_ru, init_sl, init_sv, init_ta, init_th, init_tr, init_uk, init_ua, init_ur, init_uz, init_vi, init_zh_CN, init_zh_TW, init_yo, init_locales, _a2, $ZodRegistry, globalRegistry, init_registries, init_api, createToJSONSchemaMethod, createStandardJSONSchemaMethod, init_to_json_schema, formatMap, 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, recordProcessor, nullableProcessor, nonoptionalProcessor, defaultProcessor, prefaultProcessor, catchProcessor, pipeProcessor, readonlyProcessor, promiseProcessor, optionalProcessor, lazyProcessor, allProcessors, init_json_schema_processors, init_json_schema_generator, 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, checks_exports2, init_checks3, iso_exports2, ZodISODateTime, ZodISODate, ZodISOTime, ZodISODuration, init_iso2, initializer2, ZodError2, ZodRealError, init_errors4, parse2, parseAsync2, safeParse3, safeParseAsync3, encode3, decode2, encodeAsync2, decodeAsync2, safeEncode2, safeDecode2, safeEncodeAsync2, safeDecodeAsync2, init_parse3, schemas_exports3, ZodType2, _ZodString, ZodString2, ZodStringFormat, ZodEmail, ZodGUID, ZodUUID, ZodURL, ZodEmoji, ZodNanoID, ZodCUID, ZodCUID2, ZodULID, ZodXID, ZodKSUID, ZodIPv4, ZodMAC, ZodIPv6, ZodCIDRv4, ZodCIDRv6, ZodBase64, ZodBase64URL, ZodE164, ZodJWT, ZodCustomStringFormat, ZodNumber2, ZodNumberFormat, ZodBoolean2, ZodBigInt2, ZodBigIntFormat, ZodSymbol2, ZodUndefined2, ZodNull2, ZodAny2, ZodUnknown2, ZodNever2, ZodVoid2, ZodDate2, ZodArray2, ZodObject2, ZodUnion2, ZodXor, ZodDiscriminatedUnion2, ZodIntersection2, ZodTuple2, ZodRecord2, ZodMap2, ZodSet2, ZodEnum2, ZodLiteral2, ZodFile, ZodTransform, ZodOptional2, ZodExactOptional, ZodNullable2, ZodDefault2, ZodPrefault, ZodNonOptional, ZodSuccess, ZodCatch2, ZodNaN2, ZodPipe, ZodCodec, ZodReadonly2, ZodTemplateLiteral, ZodLazy2, ZodPromise2, ZodFunction2, ZodCustom, describe2, meta2, stringbool, init_schemas3, ZodFirstPartyTypeKind2, init_compat, z2, init_from_json_schema, 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, 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;
17167
+ var __create, __defProp2, __getOwnPropDesc, __getOwnPropNames2, __getProtoOf, __hasOwnProp, __esm2, __commonJS, __export2, __copyProps, __toESM, SENTINEL, WRAPPERS, INSTRUCTION, init_abstention, init_envelope_text, init_mls_commit_classify, MENTION_RE, BROADCAST_NAMES, init_room_protocol, __filename, __dirname, url2, path, Module, Module, root, window_, crypto_, randomValuesStandard, crypto4, 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, isLE, swap8IfBE, swap32IfBE, hasHexBuiltin, hexes, oidNist, init_utils, BSIGMA, init_blake, HashMD, SHA256_IV, SHA384_IV, SHA512_IV, init_md, U32_MASK64, _32n, shrSH, shrSL, rotrSH, rotrSL, rotrBH, rotrBL, rotr32H, rotr32L, add3L, add3H, add4L, add4H, add5L, add5H, init_u64, 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, crypto2, 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, 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, init_transport2, A2ALogGate, init_a2a_log_gate, 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, history_backup_client_exports, HISTORY_RESTORE_TIMEOUT_MS, HISTORY_RESTORE_RESPONSE_MAX_BYTES, HISTORY_ENVELOPE_MIN_BYTES, HISTORY_AAD_PREFIX, UUID_RE2, GENERATION_RESPONSE_KEYS, utf8Encoder, utf8Decoder, HistoryBackupClient, init_history_backup_client, openclaw_compat_exports, defaultImporter, HEARTBEAT_CANDIDATES, AGENT_EVENT_CANDIDATES, TRANSCRIPT_CANDIDATES, _heartbeatFn, _agentEventFn, _transcriptFn, init_openclaw_compat, 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_RE3, RECONNECT_MAX_MS, PENDING_POLL_INTERVAL_MS, HISTORY_RESTORE_TIMEOUT_MS2, 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, ROOM_FULFIL_COOLDOWN_MS, SecureChannel, init_channel, init_types, DEFAULT_API_URL, DEFAULT_HTTP_PORT, init_account_config, init_lifecycle, _ocRuntime, _channels, agentVaultPlugin, init_openclaw_plugin, init_gateway_send, init_llm_response_parser, OPENROUTER_PRICING, init_llm_pricing_openrouter, LEGACY_PRICING, PRICING, init_llm_cost, traceStore, init_fetch_interceptor, init_tool_audit, init_harness_compat, managedRoutesRequested, init_openclaw_entry, util, objectUtil, ZodParsedType, getParsedType, init_util, ZodIssueCode, ZodError, init_ZodError, errorMap, en_default, init_en, overrideErrorMap, init_errors2, makeIssue, ParseStatus, INVALID, DIRTY, OK, isAborted, isDirty, isValid, isAsync, init_parseUtil, init_typeAliases, errorUtil, init_errorUtil, ParseInputLazyPath, handleResult, ZodType, cuidRegex, cuid2Regex, ulidRegex, uuidRegex, nanoidRegex, jwtRegex, durationRegex, emailRegex, _emojiRegex, emojiRegex, ipv4Regex, ipv4CidrRegex, ipv6Regex, ipv6CidrRegex, base64Regex, base64urlRegex, dateRegexSource, dateRegex, ZodString, ZodNumber, ZodBigInt, ZodBoolean, ZodDate, ZodSymbol, ZodUndefined, ZodNull, ZodAny, ZodUnknown, ZodNever, ZodVoid, ZodArray, ZodObject, ZodUnion, getDiscriminator, ZodDiscriminatedUnion, ZodIntersection, ZodTuple, ZodRecord, ZodMap, ZodSet, ZodFunction, ZodLazy, ZodLiteral, ZodEnum, ZodNativeEnum, ZodPromise, ZodEffects, ZodOptional, ZodNullable, ZodDefault, ZodCatch, ZodNaN, ZodBranded, ZodPipeline, ZodReadonly, late, ZodFirstPartyTypeKind, stringType, numberType, nanType, bigIntType, booleanType, dateType, symbolType, undefinedType, nullType, anyType, unknownType, neverType, voidType, arrayType, objectType, strictObjectType, unionType, discriminatedUnionType, intersectionType, tupleType, recordType, mapType, setType, functionType, lazyType, literalType, enumType, nativeEnumType, promiseType, effectsType, optionalType, nullableType, preprocessType, pipelineType, init_types2, init_external, init_v3, NEVER, $ZodAsyncError, $ZodEncodeError, globalConfig, init_core, util_exports, EVALUATING, captureStackTrace, allowsEval, getParsedType2, propertyKeyTypes, primitiveTypes, NUMBER_FORMAT_RANGES, BIGINT_FORMAT_RANGES, Class, init_util2, initializer, $ZodError, $ZodRealError, init_errors3, _parse, parse, _parseAsync, parseAsync, _safeParse, safeParse, _safeParseAsync, safeParseAsync, _encode, _decode, _encodeAsync, _decodeAsync, _safeEncode, _safeDecode, _safeEncodeAsync, _safeDecodeAsync, init_parse, regexes_exports, cuid, cuid2, ulid, xid, ksuid, nanoid, duration, extendedDuration, guid, uuid, uuid4, uuid6, uuid7, email, html5Email, rfc5322Email, unicodeEmail, idnEmail, browserEmail, _emoji, ipv4, ipv6, mac, cidrv4, cidrv6, base64, base64url, hostname, domain, e164, dateSource, date, string, bigint, integer, number, boolean, _null, _undefined, lowercase, uppercase, hex, md5_hex, md5_base64, md5_base64url, sha1_hex, sha1_base64, sha1_base64url, sha256_hex, sha256_base64, sha256_base64url, sha384_hex, sha384_base64, sha384_base64url, sha512_hex, sha512_base64, sha512_base64url, init_regexes, $ZodCheck, numericOriginMap, $ZodCheckLessThan, $ZodCheckGreaterThan, $ZodCheckMultipleOf, $ZodCheckNumberFormat, $ZodCheckBigIntFormat, $ZodCheckMaxSize, $ZodCheckMinSize, $ZodCheckSizeEquals, $ZodCheckMaxLength, $ZodCheckMinLength, $ZodCheckLengthEquals, $ZodCheckStringFormat, $ZodCheckRegex, $ZodCheckLowerCase, $ZodCheckUpperCase, $ZodCheckIncludes, $ZodCheckStartsWith, $ZodCheckEndsWith, $ZodCheckProperty, $ZodCheckMimeType, $ZodCheckOverwrite, init_checks, Doc, init_doc, version, init_versions, $ZodType, $ZodString, $ZodStringFormat, $ZodGUID, $ZodUUID, $ZodEmail, $ZodURL, $ZodEmoji, $ZodNanoID, $ZodCUID, $ZodCUID2, $ZodULID, $ZodXID, $ZodKSUID, $ZodISODateTime, $ZodISODate, $ZodISOTime, $ZodISODuration, $ZodIPv4, $ZodIPv6, $ZodMAC, $ZodCIDRv4, $ZodCIDRv6, $ZodBase64, $ZodBase64URL, $ZodE164, $ZodJWT, $ZodCustomStringFormat, $ZodNumber, $ZodNumberFormat, $ZodBoolean, $ZodBigInt, $ZodBigIntFormat, $ZodSymbol, $ZodUndefined, $ZodNull, $ZodAny, $ZodUnknown, $ZodNever, $ZodVoid, $ZodDate, $ZodArray, $ZodObject, $ZodObjectJIT, $ZodUnion, $ZodXor, $ZodDiscriminatedUnion, $ZodIntersection, $ZodTuple, $ZodRecord, $ZodMap, $ZodSet, $ZodEnum, $ZodLiteral, $ZodFile, $ZodTransform, $ZodOptional, $ZodExactOptional, $ZodNullable, $ZodDefault, $ZodPrefault, $ZodNonOptional, $ZodSuccess, $ZodCatch, $ZodNaN, $ZodPipe, $ZodCodec, $ZodReadonly, $ZodTemplateLiteral, $ZodFunction, $ZodPromise, $ZodLazy, $ZodCustom, init_schemas, init_ar, init_az, init_be, init_bg, init_ca, init_cs, init_da, init_de, error, init_en2, init_eo, init_es, init_fa, init_fi, init_fr, init_fr_CA, init_he, init_hu, init_hy, init_id, init_is, init_it, init_ja, init_ka, init_km, init_kh, init_ko, init_lt, init_mk, init_ms, init_nl, init_no, init_ota, init_ps, init_pl, init_pt, init_ru, init_sl, init_sv, init_ta, init_th, init_tr, init_uk, init_ua, init_ur, init_uz, init_vi, init_zh_CN, init_zh_TW, init_yo, init_locales, _a2, $ZodRegistry, globalRegistry, init_registries, init_api, createToJSONSchemaMethod, createStandardJSONSchemaMethod, init_to_json_schema, formatMap, 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, recordProcessor, nullableProcessor, nonoptionalProcessor, defaultProcessor, prefaultProcessor, catchProcessor, pipeProcessor, readonlyProcessor, promiseProcessor, optionalProcessor, lazyProcessor, allProcessors, init_json_schema_processors, init_json_schema_generator, 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, checks_exports2, init_checks3, iso_exports2, ZodISODateTime, ZodISODate, ZodISOTime, ZodISODuration, init_iso2, initializer2, ZodError2, ZodRealError, init_errors4, parse2, parseAsync2, safeParse3, safeParseAsync3, encode3, decode2, encodeAsync2, decodeAsync2, safeEncode2, safeDecode2, safeEncodeAsync2, safeDecodeAsync2, init_parse3, schemas_exports3, ZodType2, _ZodString, ZodString2, ZodStringFormat, ZodEmail, ZodGUID, ZodUUID, ZodURL, ZodEmoji, ZodNanoID, ZodCUID, ZodCUID2, ZodULID, ZodXID, ZodKSUID, ZodIPv4, ZodMAC, ZodIPv6, ZodCIDRv4, ZodCIDRv6, ZodBase64, ZodBase64URL, ZodE164, ZodJWT, ZodCustomStringFormat, ZodNumber2, ZodNumberFormat, ZodBoolean2, ZodBigInt2, ZodBigIntFormat, ZodSymbol2, ZodUndefined2, ZodNull2, ZodAny2, ZodUnknown2, ZodNever2, ZodVoid2, ZodDate2, ZodArray2, ZodObject2, ZodUnion2, ZodXor, ZodDiscriminatedUnion2, ZodIntersection2, ZodTuple2, ZodRecord2, ZodMap2, ZodSet2, ZodEnum2, ZodLiteral2, ZodFile, ZodTransform, ZodOptional2, ZodExactOptional, ZodNullable2, ZodDefault2, ZodPrefault, ZodNonOptional, ZodSuccess, ZodCatch2, ZodNaN2, ZodPipe, ZodCodec, ZodReadonly2, ZodTemplateLiteral, ZodLazy2, ZodPromise2, ZodFunction2, ZodCustom, describe2, meta2, stringbool, init_schemas3, ZodFirstPartyTypeKind2, init_compat, z2, init_from_json_schema, 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, 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;
17164
17168
  var init_dist = __esm({
17165
17169
  async "../plugin/dist/index.js"() {
17166
17170
  "use strict";
@@ -66492,7 +66496,7 @@ var init_dist = __esm({
66492
66496
  _8n = /* @__PURE__ */ BigInt(8);
66493
66497
  _9n = /* @__PURE__ */ BigInt(9);
66494
66498
  _16n = /* @__PURE__ */ BigInt(16);
66495
- isNegativeLE = (num, modulo) => (mod3(num, modulo) & _1n3) === _1n3;
66499
+ isNegativeLE = (num2, modulo) => (mod3(num2, modulo) & _1n3) === _1n3;
66496
66500
  FIELD_FIELDS = [
66497
66501
  "create",
66498
66502
  "isValid",
@@ -67428,7 +67432,7 @@ var init_dist = __esm({
67428
67432
  init_utils4();
67429
67433
  init_curve2();
67430
67434
  init_modular2();
67431
- divNearest = (num, den) => (num + (num >= 0 ? den : -den) / _2n8) / den;
67435
+ divNearest = (num2, den) => (num2 + (num2 >= 0 ? den : -den) / _2n8) / den;
67432
67436
  DERErr = class extends Error {
67433
67437
  constructor(m22 = "") {
67434
67438
  super(m22);
@@ -67494,11 +67498,11 @@ var init_dist = __esm({
67494
67498
  // - add zero byte if exists
67495
67499
  // - if next byte doesn't have a flag, leading zero is not allowed (minimal encoding)
67496
67500
  _int: {
67497
- encode(num) {
67501
+ encode(num2) {
67498
67502
  const { Err: E22 } = DER;
67499
- if (num < _0n9)
67503
+ if (num2 < _0n9)
67500
67504
  throw new E22("integer: negative integers are not allowed");
67501
- let hex32 = numberToHexUnpadded(num);
67505
+ let hex32 = numberToHexUnpadded(num2);
67502
67506
  if (Number.parseInt(hex32[0], 16) & 8)
67503
67507
  hex32 = "00" + hex32;
67504
67508
  if (hex32.length & 1)
@@ -68243,9 +68247,9 @@ var init_dist = __esm({
68243
68247
  let o0 = 0, o1 = 0, o22 = 0, o32 = 0;
68244
68248
  const mask = (1 << W22) - 1;
68245
68249
  let w2 = 0;
68246
- for (const num of [s02, s1, s22, s32]) {
68250
+ for (const num2 of [s02, s1, s22, s32]) {
68247
68251
  for (let bytePos = 0; bytePos < 4; bytePos++) {
68248
- const byte = num >>> 8 * bytePos & 255;
68252
+ const byte = num2 >>> 8 * bytePos & 255;
68249
68253
  for (let bitPos = 8 / W22 - 1; bitPos >= 0; bitPos--) {
68250
68254
  const bit = byte >>> W22 * bitPos & mask;
68251
68255
  const { s0: e02, s1: e12, s2: e22, s3: e32 } = t22[w2 * windowSize + bit];
@@ -70875,7 +70879,24 @@ ${text}`;
70875
70879
  salt = libsodium_wrappers_default.randombytes_buf(16);
70876
70880
  }
70877
70881
  checkpoint();
70878
- const archive = buildHistoryArchive(state.hubId, state.messageHistory ?? []);
70882
+ const history = state.messageHistory ?? [];
70883
+ if (!Array.isArray(history)) throw new Error("entries must be an array");
70884
+ const snapshotEntries = /* @__PURE__ */ new Map();
70885
+ for (let index = 0; index < history.length; index += 1) {
70886
+ if (!(index in history)) throw new Error("entries must not be sparse");
70887
+ const entry = history[index];
70888
+ const legacyId = legacyHistoryEntryId(entry);
70889
+ const id = entry.id ?? legacyId;
70890
+ const previous = snapshotEntries.get(id);
70891
+ if (previous) {
70892
+ if (previous.sender !== entry.sender || previous.text !== entry.text || previous.ts !== entry.ts || previous.topicId !== entry.topicId) {
70893
+ throw new Error("History archive contains duplicate entry IDs");
70894
+ }
70895
+ continue;
70896
+ }
70897
+ snapshotEntries.set(id, { ...entry, id });
70898
+ }
70899
+ const archive = buildHistoryArchive(state.hubId, [...snapshotEntries.values()]);
70879
70900
  const requestedSaltHex = Buffer.from(salt).toString("hex");
70880
70901
  const cacheIdentity = `${state.hubId}:${codeHashHex}:${requestedSaltHex}`;
70881
70902
  checkpoint();
@@ -71605,7 +71626,7 @@ ${text}`;
71605
71626
  */
71606
71627
  sendActivitySpan(spanData) {
71607
71628
  if (!this._ws || this._ws.readyState !== WebSocket2.OPEN) return;
71608
- const pluginVersion = true ? "0.23.45" : "0.0.0-dev";
71629
+ const pluginVersion = true ? "0.23.46" : "0.0.0-dev";
71609
71630
  const agentName = this.config.agentName ?? "Agent";
71610
71631
  const resource = {
71611
71632
  "service.name": "agentvault-agent",
@@ -73578,7 +73599,7 @@ ${text}`;
73578
73599
  agentVersion: this.config.agentVersion ?? "0.0.0",
73579
73600
  // __AV_VERSION__ is injected by esbuild from package.json at build time.
73580
73601
  // Falls back to "0.0.0-dev" in non-bundled contexts (tests).
73581
- pluginVersion: true ? "0.23.45" : "0.0.0-dev"
73602
+ pluginVersion: true ? "0.23.46" : "0.0.0-dev"
73582
73603
  });
73583
73604
  this._telemetryReporter.startAutoFlush(3e4);
73584
73605
  }
@@ -73902,7 +73923,7 @@ ${text}`;
73902
73923
  agentVersion: this.config.agentVersion ?? "0.0.0",
73903
73924
  // __AV_VERSION__ is injected by esbuild from package.json at build time.
73904
73925
  // Falls back to "0.0.0-dev" in non-bundled contexts (tests).
73905
- pluginVersion: true ? "0.23.45" : "0.0.0-dev"
73926
+ pluginVersion: true ? "0.23.46" : "0.0.0-dev"
73906
73927
  });
73907
73928
  this._telemetryReporter.startAutoFlush(3e4);
73908
73929
  }
@@ -76202,9 +76223,9 @@ ${baseText}`;
76202
76223
  if (!groupId || !detail.endsWith("commit rejected")) return;
76203
76224
  const inFlight = this._commitInFlight.get(groupId);
76204
76225
  if (!inFlight) return;
76205
- const num = (v22) => typeof v22 === "number" && Number.isFinite(v22) ? v22 : void 0;
76206
- const current = num(payload.current_epoch);
76207
- const claimed = num(payload.expected_epoch) ?? current;
76226
+ const num2 = (v22) => typeof v22 === "number" && Number.isFinite(v22) ? v22 : void 0;
76227
+ const current = num2(payload.current_epoch);
76228
+ const claimed = num2(payload.expected_epoch) ?? current;
76208
76229
  const headDigest = typeof payload.head_digest === "string" ? payload.head_digest : void 0;
76209
76230
  const sent = inFlight.sent;
76210
76231
  const tag = `[SecureChannel] refusal for ${groupId.slice(0, 8)} ("${detail}")`;
@@ -78661,9 +78682,540 @@ ${actionsText}`);
78661
78682
  "use strict";
78662
78683
  }
78663
78684
  });
78685
+ init_llm_pricing_openrouter = __esm2({
78686
+ "src/llm-pricing-openrouter.ts"() {
78687
+ "use strict";
78688
+ OPENROUTER_PRICING = {
78689
+ anthropic: {
78690
+ "claude-fable-5": { inputPerMtoken: 10, outputPerMtoken: 50 },
78691
+ "claude-fable-5-1": { inputPerMtoken: 10, outputPerMtoken: 50 },
78692
+ "claude-haiku-4-5": { inputPerMtoken: 1, outputPerMtoken: 5 },
78693
+ "claude-haiku-5-5": { inputPerMtoken: 0.1, outputPerMtoken: 0.5 },
78694
+ "claude-opus-4-1": { inputPerMtoken: 15, outputPerMtoken: 75 },
78695
+ "claude-opus-4-5": { inputPerMtoken: 5, outputPerMtoken: 25 },
78696
+ "claude-opus-4-6": { inputPerMtoken: 5, outputPerMtoken: 25 },
78697
+ "claude-opus-4-7": { inputPerMtoken: 5, outputPerMtoken: 25 },
78698
+ "claude-opus-4-8": { inputPerMtoken: 5, outputPerMtoken: 25 },
78699
+ "claude-opus-5": { inputPerMtoken: 5, outputPerMtoken: 25 },
78700
+ "claude-opus-5-5": { inputPerMtoken: 4, outputPerMtoken: 20 },
78701
+ "claude-sonnet-4": { inputPerMtoken: 3, outputPerMtoken: 15 },
78702
+ "claude-sonnet-4-5": { inputPerMtoken: 3, outputPerMtoken: 15 },
78703
+ "claude-sonnet-4-6": { inputPerMtoken: 3, outputPerMtoken: 15 },
78704
+ "claude-sonnet-5": { inputPerMtoken: 2, outputPerMtoken: 10 },
78705
+ "claude-sonnet-5-5": { inputPerMtoken: 2, outputPerMtoken: 10 }
78706
+ },
78707
+ openai: {
78708
+ "gpt-3.5-turbo": { inputPerMtoken: 0.5, outputPerMtoken: 1.5 },
78709
+ "gpt-3.5-turbo-0613": { inputPerMtoken: 1, outputPerMtoken: 2 },
78710
+ "gpt-3.5-turbo-16k": { inputPerMtoken: 3, outputPerMtoken: 4 },
78711
+ "gpt-3.5-turbo-instruct": { inputPerMtoken: 1.5, outputPerMtoken: 2 },
78712
+ "gpt-4": { inputPerMtoken: 30, outputPerMtoken: 60 },
78713
+ "gpt-4-turbo": { inputPerMtoken: 10, outputPerMtoken: 30 },
78714
+ "gpt-4.1": { inputPerMtoken: 2, outputPerMtoken: 8 },
78715
+ "gpt-4.1-mini": { inputPerMtoken: 0.4, outputPerMtoken: 1.6 },
78716
+ "gpt-4.1-nano": { inputPerMtoken: 0.1, outputPerMtoken: 0.4 },
78717
+ "gpt-4o": { inputPerMtoken: 2.5, outputPerMtoken: 10 },
78718
+ "gpt-4o-2024-05-13": { inputPerMtoken: 5, outputPerMtoken: 15 },
78719
+ "gpt-4o-2024-08-06": { inputPerMtoken: 2.5, outputPerMtoken: 10 },
78720
+ "gpt-4o-2024-11-20": { inputPerMtoken: 2.5, outputPerMtoken: 10 },
78721
+ "gpt-4o-mini": { inputPerMtoken: 0.15, outputPerMtoken: 0.6 },
78722
+ "gpt-4o-mini-2024-07-18": { inputPerMtoken: 0.15, outputPerMtoken: 0.6 },
78723
+ "gpt-5": { inputPerMtoken: 1.25, outputPerMtoken: 10 },
78724
+ "gpt-5-image": { inputPerMtoken: 10, outputPerMtoken: 10 },
78725
+ "gpt-5-image-mini": { inputPerMtoken: 2.5, outputPerMtoken: 2 },
78726
+ "gpt-5-mini": { inputPerMtoken: 0.25, outputPerMtoken: 2 },
78727
+ "gpt-5-nano": { inputPerMtoken: 0.05, outputPerMtoken: 0.4 },
78728
+ "gpt-5-pro": { inputPerMtoken: 15, outputPerMtoken: 120 },
78729
+ "gpt-5.1": { inputPerMtoken: 1.25, outputPerMtoken: 10 },
78730
+ "gpt-5.1-codex": { inputPerMtoken: 1.25, outputPerMtoken: 10 },
78731
+ "gpt-5.1-codex-max": { inputPerMtoken: 1.25, outputPerMtoken: 10 },
78732
+ "gpt-5.1-codex-mini": { inputPerMtoken: 0.25, outputPerMtoken: 2 },
78733
+ "gpt-5.2": { inputPerMtoken: 1.75, outputPerMtoken: 14 },
78734
+ "gpt-5.2-chat": { inputPerMtoken: 1.75, outputPerMtoken: 14 },
78735
+ "gpt-5.2-codex": { inputPerMtoken: 1.75, outputPerMtoken: 14 },
78736
+ "gpt-5.2-pro": { inputPerMtoken: 21, outputPerMtoken: 168 },
78737
+ "gpt-5.3-codex": { inputPerMtoken: 1.75, outputPerMtoken: 14 },
78738
+ "gpt-5.4": { inputPerMtoken: 2.5, outputPerMtoken: 15 },
78739
+ "gpt-5.4-image-2": { inputPerMtoken: 8, outputPerMtoken: 15 },
78740
+ "gpt-5.4-mini": { inputPerMtoken: 0.75, outputPerMtoken: 4.5 },
78741
+ "gpt-5.4-nano": { inputPerMtoken: 0.2, outputPerMtoken: 1.25 },
78742
+ "gpt-5.4-pro": { inputPerMtoken: 30, outputPerMtoken: 180 },
78743
+ "gpt-5.5": { inputPerMtoken: 5, outputPerMtoken: 30 },
78744
+ "gpt-5.5-pro": { inputPerMtoken: 30, outputPerMtoken: 180 },
78745
+ "gpt-5.6-luna": { inputPerMtoken: 0.2, outputPerMtoken: 1.2 },
78746
+ "gpt-5.6-luna-pro": { inputPerMtoken: 0.2, outputPerMtoken: 1.2 },
78747
+ "gpt-5.6-sol": { inputPerMtoken: 2, outputPerMtoken: 10 },
78748
+ "gpt-5.6-sol-pro": { inputPerMtoken: 2, outputPerMtoken: 10 },
78749
+ "gpt-5.6-terra": { inputPerMtoken: 2, outputPerMtoken: 12 },
78750
+ "gpt-5.6-terra-pro": { inputPerMtoken: 2, outputPerMtoken: 12 },
78751
+ "gpt-6-astra": { inputPerMtoken: 10, outputPerMtoken: 50 },
78752
+ "gpt-6-astra-pro": { inputPerMtoken: 10, outputPerMtoken: 50 },
78753
+ "gpt-6-luna": { inputPerMtoken: 0.1, outputPerMtoken: 0.5 },
78754
+ "gpt-6-luna-pro": { inputPerMtoken: 0.1, outputPerMtoken: 0.5 },
78755
+ "gpt-6-sol": { inputPerMtoken: 2, outputPerMtoken: 10 },
78756
+ "gpt-6-sol-pro": { inputPerMtoken: 2, outputPerMtoken: 10 },
78757
+ "gpt-6.1-sol": { inputPerMtoken: 2, outputPerMtoken: 10 },
78758
+ "gpt-6.1-sol-pro": { inputPerMtoken: 2, outputPerMtoken: 10 },
78759
+ "gpt-audio": { inputPerMtoken: 2.5, outputPerMtoken: 10 },
78760
+ "gpt-audio-mini": { inputPerMtoken: 0.6, outputPerMtoken: 2.4 },
78761
+ "gpt-chat-latest": { inputPerMtoken: 5, outputPerMtoken: 30 },
78762
+ "gpt-oss-120b": { inputPerMtoken: 0.037, outputPerMtoken: 0.17 },
78763
+ "gpt-oss-20b": { inputPerMtoken: 0.018, outputPerMtoken: 0.09 },
78764
+ "gpt-oss-safeguard-20b": { inputPerMtoken: 0.075, outputPerMtoken: 0.3 },
78765
+ "o1": { inputPerMtoken: 15, outputPerMtoken: 60 },
78766
+ "o1-pro": { inputPerMtoken: 150, outputPerMtoken: 600 },
78767
+ "o3": { inputPerMtoken: 2, outputPerMtoken: 8 },
78768
+ "o3-mini": { inputPerMtoken: 1.1, outputPerMtoken: 4.4 },
78769
+ "o3-mini-high": { inputPerMtoken: 1.1, outputPerMtoken: 4.4 },
78770
+ "o3-pro": { inputPerMtoken: 20, outputPerMtoken: 80 },
78771
+ "o4-mini": { inputPerMtoken: 1.1, outputPerMtoken: 4.4 },
78772
+ "o4-mini-high": { inputPerMtoken: 1.1, outputPerMtoken: 4.4 }
78773
+ },
78774
+ openrouter: {
78775
+ "aion-2.0": { inputPerMtoken: 0.8, outputPerMtoken: 1.6 },
78776
+ "aion-3.0": { inputPerMtoken: 3, outputPerMtoken: 6 },
78777
+ "aion-3.0-mini": { inputPerMtoken: 0.7, outputPerMtoken: 1.4 },
78778
+ "aion-3.5": { inputPerMtoken: 3, outputPerMtoken: 6 },
78779
+ "aion-3.5-mini": { inputPerMtoken: 0.7, outputPerMtoken: 1.4 },
78780
+ "aion-rp-llama-3.1-8b": { inputPerMtoken: 0.8, outputPerMtoken: 1.6 },
78781
+ "claude-fable-5": { inputPerMtoken: 10, outputPerMtoken: 50 },
78782
+ "claude-fable-5.1": { inputPerMtoken: 10, outputPerMtoken: 50 },
78783
+ "claude-fable-latest": { inputPerMtoken: 10, outputPerMtoken: 50 },
78784
+ "claude-haiku-4.5": { inputPerMtoken: 1, outputPerMtoken: 5 },
78785
+ "claude-haiku-5.5": { inputPerMtoken: 0.1, outputPerMtoken: 0.5 },
78786
+ "claude-haiku-latest": { inputPerMtoken: 0.1, outputPerMtoken: 0.5 },
78787
+ "claude-opus-4.1": { inputPerMtoken: 15, outputPerMtoken: 75 },
78788
+ "claude-opus-4.5": { inputPerMtoken: 5, outputPerMtoken: 25 },
78789
+ "claude-opus-4.6": { inputPerMtoken: 5, outputPerMtoken: 25 },
78790
+ "claude-opus-4.7": { inputPerMtoken: 5, outputPerMtoken: 25 },
78791
+ "claude-opus-4.8": { inputPerMtoken: 5, outputPerMtoken: 25 },
78792
+ "claude-opus-5": { inputPerMtoken: 5, outputPerMtoken: 25 },
78793
+ "claude-opus-5.5": { inputPerMtoken: 4, outputPerMtoken: 20 },
78794
+ "claude-opus-latest": { inputPerMtoken: 4, outputPerMtoken: 20 },
78795
+ "claude-sonnet-4": { inputPerMtoken: 3, outputPerMtoken: 15 },
78796
+ "claude-sonnet-4.5": { inputPerMtoken: 3, outputPerMtoken: 15 },
78797
+ "claude-sonnet-4.6": { inputPerMtoken: 3, outputPerMtoken: 15 },
78798
+ "claude-sonnet-5": { inputPerMtoken: 2, outputPerMtoken: 10 },
78799
+ "claude-sonnet-5.5": { inputPerMtoken: 2, outputPerMtoken: 10 },
78800
+ "claude-sonnet-latest": { inputPerMtoken: 2, outputPerMtoken: 10 },
78801
+ "codestral-2508": { inputPerMtoken: 0.3, outputPerMtoken: 0.9 },
78802
+ "command-a": { inputPerMtoken: 2.5, outputPerMtoken: 10 },
78803
+ "command-a-plus": { inputPerMtoken: 0.3, outputPerMtoken: 1.5 },
78804
+ "command-r-08-2024": { inputPerMtoken: 0.15, outputPerMtoken: 0.6 },
78805
+ "command-r-plus-08-2024": { inputPerMtoken: 2.5, outputPerMtoken: 10 },
78806
+ "command-r7b-12-2024": { inputPerMtoken: 0.0375, outputPerMtoken: 0.15 },
78807
+ "cydonia-24b-v4.1": { inputPerMtoken: 0.3, outputPerMtoken: 0.5 },
78808
+ "deepseek-chat": { inputPerMtoken: 0.32, outputPerMtoken: 0.89 },
78809
+ "deepseek-chat-v3-0324": { inputPerMtoken: 0.29, outputPerMtoken: 1.14 },
78810
+ "deepseek-chat-v3.1": { inputPerMtoken: 0.25, outputPerMtoken: 0.95 },
78811
+ "deepseek-flash-latest": { inputPerMtoken: 0.02016, outputPerMtoken: 0.891 },
78812
+ "deepseek-pro-latest": { inputPerMtoken: 0.1461, outputPerMtoken: 8 },
78813
+ "deepseek-r1": { inputPerMtoken: 0.7, outputPerMtoken: 2.5 },
78814
+ "deepseek-r1-0528": { inputPerMtoken: 0.5, outputPerMtoken: 2.15 },
78815
+ "deepseek-v3.1-terminus": { inputPerMtoken: 0.27, outputPerMtoken: 1 },
78816
+ "deepseek-v3.2": { inputPerMtoken: 0.259, outputPerMtoken: 0.8 },
78817
+ "deepseek-v3.2-exp": { inputPerMtoken: 0.27, outputPerMtoken: 0.41 },
78818
+ "deepseek-v4-flash": { inputPerMtoken: 0.091, outputPerMtoken: 0.182 },
78819
+ "deepseek-v4-flash-0731": { inputPerMtoken: 0.016, outputPerMtoken: 0.64 },
78820
+ "deepseek-v4-flash-latest": { inputPerMtoken: 0.0144, outputPerMtoken: 0.576 },
78821
+ "deepseek-v4-flash-vision-exp": { inputPerMtoken: 0.2156, outputPerMtoken: 0.6468 },
78822
+ "deepseek-v4-pro": { inputPerMtoken: 0.430824, outputPerMtoken: 0.861648 },
78823
+ "deepseek-v4-pro-0813": { inputPerMtoken: 0.66, outputPerMtoken: 1.98 },
78824
+ "deepseek-v4.1-flash": { inputPerMtoken: 0.02016, outputPerMtoken: 0.891 },
78825
+ "devstral-2512": { inputPerMtoken: 0.4, outputPerMtoken: 2 },
78826
+ "dolphin-mistral-24b-venice-edition": { inputPerMtoken: 0.2, outputPerMtoken: 0.9 },
78827
+ "dots-3-note-preview:free": { inputPerMtoken: 0, outputPerMtoken: 0 },
78828
+ "ember-1": { inputPerMtoken: 3, outputPerMtoken: 15 },
78829
+ "extract": { inputPerMtoken: 0.04, outputPerMtoken: 0 },
78830
+ "free": { inputPerMtoken: 0, outputPerMtoken: 0 },
78831
+ "fugu-max": { inputPerMtoken: 2, outputPerMtoken: 6 },
78832
+ "fugu-ultra": { inputPerMtoken: 5, outputPerMtoken: 30 },
78833
+ "fugu-ultra-v2": { inputPerMtoken: 5, outputPerMtoken: 30 },
78834
+ "gemini-2.5-flash": { inputPerMtoken: 0.3, outputPerMtoken: 2.5 },
78835
+ "gemini-2.5-flash-image": { inputPerMtoken: 0.3, outputPerMtoken: 2.5 },
78836
+ "gemini-2.5-flash-lite": { inputPerMtoken: 0.1, outputPerMtoken: 0.4 },
78837
+ "gemini-2.5-pro": { inputPerMtoken: 1.25, outputPerMtoken: 10 },
78838
+ "gemini-2.5-pro-preview": { inputPerMtoken: 1.25, outputPerMtoken: 10 },
78839
+ "gemini-3-flash-preview": { inputPerMtoken: 0.5, outputPerMtoken: 3 },
78840
+ "gemini-3-pro-image": { inputPerMtoken: 2, outputPerMtoken: 12 },
78841
+ "gemini-3-pro-image-preview": { inputPerMtoken: 2, outputPerMtoken: 12 },
78842
+ "gemini-3.1-flash-image": { inputPerMtoken: 0.5, outputPerMtoken: 3 },
78843
+ "gemini-3.1-flash-image-preview": { inputPerMtoken: 0.5, outputPerMtoken: 3 },
78844
+ "gemini-3.1-flash-lite": { inputPerMtoken: 0.25, outputPerMtoken: 1.5 },
78845
+ "gemini-3.1-flash-lite-image": { inputPerMtoken: 0.25, outputPerMtoken: 1.5 },
78846
+ "gemini-3.1-flash-lite-preview": { inputPerMtoken: 0.25, outputPerMtoken: 1.5 },
78847
+ "gemini-3.1-pro-preview": { inputPerMtoken: 2, outputPerMtoken: 12 },
78848
+ "gemini-3.1-pro-preview-customtools": { inputPerMtoken: 2, outputPerMtoken: 12 },
78849
+ "gemini-3.5-flash": { inputPerMtoken: 1.5, outputPerMtoken: 9 },
78850
+ "gemini-3.5-flash-lite": { inputPerMtoken: 0.3, outputPerMtoken: 2.5 },
78851
+ "gemini-3.6-flash": { inputPerMtoken: 0.75, outputPerMtoken: 3.75 },
78852
+ "gemini-3.7-flash": { inputPerMtoken: 0.75, outputPerMtoken: 3.75 },
78853
+ "gemini-3.8-flash": { inputPerMtoken: 0.75, outputPerMtoken: 3.75 },
78854
+ "gemini-4-argon": { inputPerMtoken: 2, outputPerMtoken: 10 },
78855
+ "gemini-flash-latest": { inputPerMtoken: 0.75, outputPerMtoken: 3.75 },
78856
+ "gemini-nano-banana-2.1": { inputPerMtoken: 1.5, outputPerMtoken: 7.5 },
78857
+ "gemini-pro-latest": { inputPerMtoken: 2, outputPerMtoken: 12 },
78858
+ "gemma-2-27b-it": { inputPerMtoken: 0.65, outputPerMtoken: 0.65 },
78859
+ "gemma-3-12b-it": { inputPerMtoken: 0.05, outputPerMtoken: 0.15 },
78860
+ "gemma-3-27b-it": { inputPerMtoken: 0.08, outputPerMtoken: 0.45 },
78861
+ "gemma-3-4b-it": { inputPerMtoken: 0.05, outputPerMtoken: 0.1 },
78862
+ "gemma-4-26b-a4b-it": { inputPerMtoken: 0.09, outputPerMtoken: 0.3 },
78863
+ "gemma-4-26b-a4b-it:free": { inputPerMtoken: 0, outputPerMtoken: 0 },
78864
+ "gemma-4-31b-it": { inputPerMtoken: 0.09, outputPerMtoken: 0.34 },
78865
+ "gemma-4-31b-it:free": { inputPerMtoken: 0, outputPerMtoken: 0 },
78866
+ "glm-4.5": { inputPerMtoken: 0.6, outputPerMtoken: 2.2 },
78867
+ "glm-4.5-air": { inputPerMtoken: 0.13, outputPerMtoken: 0.85 },
78868
+ "glm-4.5v": { inputPerMtoken: 0.6, outputPerMtoken: 1.8 },
78869
+ "glm-4.6": { inputPerMtoken: 0.5, outputPerMtoken: 2 },
78870
+ "glm-4.6v": { inputPerMtoken: 0.3, outputPerMtoken: 0.9 },
78871
+ "glm-4.7": { inputPerMtoken: 0.6, outputPerMtoken: 2.2 },
78872
+ "glm-4.7-flash": { inputPerMtoken: 0.0605, outputPerMtoken: 0.4 },
78873
+ "glm-5": { inputPerMtoken: 0.6, outputPerMtoken: 1.92 },
78874
+ "glm-5-turbo": { inputPerMtoken: 1.2, outputPerMtoken: 4 },
78875
+ "glm-5.1": { inputPerMtoken: 1.33, outputPerMtoken: 4.18 },
78876
+ "glm-5.2": { inputPerMtoken: 0.05, outputPerMtoken: 7 },
78877
+ "glm-5.3": { inputPerMtoken: 0.079, outputPerMtoken: 4.8 },
78878
+ "glm-5.3-flash": { inputPerMtoken: 0.036, outputPerMtoken: 0.9 },
78879
+ "glm-5.3-flashx": { inputPerMtoken: 0.37, outputPerMtoken: 1.25 },
78880
+ "glm-5.3-prime": { inputPerMtoken: 2.8, outputPerMtoken: 8.8 },
78881
+ "glm-5v-turbo": { inputPerMtoken: 1.2, outputPerMtoken: 4 },
78882
+ "glm-flash-latest": { inputPerMtoken: 0.036, outputPerMtoken: 0.9 },
78883
+ "glm-latest": { inputPerMtoken: 0.0576, outputPerMtoken: 4.4 },
78884
+ "gpt-3.5-turbo": { inputPerMtoken: 0.5, outputPerMtoken: 1.5 },
78885
+ "gpt-3.5-turbo-0613": { inputPerMtoken: 1, outputPerMtoken: 2 },
78886
+ "gpt-3.5-turbo-16k": { inputPerMtoken: 3, outputPerMtoken: 4 },
78887
+ "gpt-3.5-turbo-instruct": { inputPerMtoken: 1.5, outputPerMtoken: 2 },
78888
+ "gpt-4": { inputPerMtoken: 30, outputPerMtoken: 60 },
78889
+ "gpt-4-turbo": { inputPerMtoken: 10, outputPerMtoken: 30 },
78890
+ "gpt-4.1": { inputPerMtoken: 2, outputPerMtoken: 8 },
78891
+ "gpt-4.1-mini": { inputPerMtoken: 0.4, outputPerMtoken: 1.6 },
78892
+ "gpt-4.1-nano": { inputPerMtoken: 0.1, outputPerMtoken: 0.4 },
78893
+ "gpt-4o": { inputPerMtoken: 2.5, outputPerMtoken: 10 },
78894
+ "gpt-4o-2024-05-13": { inputPerMtoken: 5, outputPerMtoken: 15 },
78895
+ "gpt-4o-2024-08-06": { inputPerMtoken: 2.5, outputPerMtoken: 10 },
78896
+ "gpt-4o-2024-11-20": { inputPerMtoken: 2.5, outputPerMtoken: 10 },
78897
+ "gpt-4o-mini": { inputPerMtoken: 0.15, outputPerMtoken: 0.6 },
78898
+ "gpt-4o-mini-2024-07-18": { inputPerMtoken: 0.15, outputPerMtoken: 0.6 },
78899
+ "gpt-5": { inputPerMtoken: 1.25, outputPerMtoken: 10 },
78900
+ "gpt-5-image": { inputPerMtoken: 10, outputPerMtoken: 10 },
78901
+ "gpt-5-image-mini": { inputPerMtoken: 2.5, outputPerMtoken: 2 },
78902
+ "gpt-5-mini": { inputPerMtoken: 0.25, outputPerMtoken: 2 },
78903
+ "gpt-5-nano": { inputPerMtoken: 0.05, outputPerMtoken: 0.4 },
78904
+ "gpt-5-pro": { inputPerMtoken: 15, outputPerMtoken: 120 },
78905
+ "gpt-5.1": { inputPerMtoken: 1.25, outputPerMtoken: 10 },
78906
+ "gpt-5.1-codex": { inputPerMtoken: 1.25, outputPerMtoken: 10 },
78907
+ "gpt-5.1-codex-max": { inputPerMtoken: 1.25, outputPerMtoken: 10 },
78908
+ "gpt-5.1-codex-mini": { inputPerMtoken: 0.25, outputPerMtoken: 2 },
78909
+ "gpt-5.2": { inputPerMtoken: 1.75, outputPerMtoken: 14 },
78910
+ "gpt-5.2-chat": { inputPerMtoken: 1.75, outputPerMtoken: 14 },
78911
+ "gpt-5.2-codex": { inputPerMtoken: 1.75, outputPerMtoken: 14 },
78912
+ "gpt-5.2-pro": { inputPerMtoken: 21, outputPerMtoken: 168 },
78913
+ "gpt-5.3-codex": { inputPerMtoken: 1.75, outputPerMtoken: 14 },
78914
+ "gpt-5.4": { inputPerMtoken: 2.5, outputPerMtoken: 15 },
78915
+ "gpt-5.4-image-2": { inputPerMtoken: 8, outputPerMtoken: 15 },
78916
+ "gpt-5.4-mini": { inputPerMtoken: 0.75, outputPerMtoken: 4.5 },
78917
+ "gpt-5.4-nano": { inputPerMtoken: 0.2, outputPerMtoken: 1.25 },
78918
+ "gpt-5.4-pro": { inputPerMtoken: 30, outputPerMtoken: 180 },
78919
+ "gpt-5.5": { inputPerMtoken: 5, outputPerMtoken: 30 },
78920
+ "gpt-5.5-pro": { inputPerMtoken: 30, outputPerMtoken: 180 },
78921
+ "gpt-5.6-luna": { inputPerMtoken: 0.2, outputPerMtoken: 1.2 },
78922
+ "gpt-5.6-luna-pro": { inputPerMtoken: 0.2, outputPerMtoken: 1.2 },
78923
+ "gpt-5.6-sol": { inputPerMtoken: 2, outputPerMtoken: 10 },
78924
+ "gpt-5.6-sol-pro": { inputPerMtoken: 2, outputPerMtoken: 10 },
78925
+ "gpt-5.6-terra": { inputPerMtoken: 2, outputPerMtoken: 12 },
78926
+ "gpt-5.6-terra-pro": { inputPerMtoken: 2, outputPerMtoken: 12 },
78927
+ "gpt-6-astra": { inputPerMtoken: 10, outputPerMtoken: 50 },
78928
+ "gpt-6-astra-pro": { inputPerMtoken: 10, outputPerMtoken: 50 },
78929
+ "gpt-6-luna": { inputPerMtoken: 0.1, outputPerMtoken: 0.5 },
78930
+ "gpt-6-luna-pro": { inputPerMtoken: 0.1, outputPerMtoken: 0.5 },
78931
+ "gpt-6-sol": { inputPerMtoken: 2, outputPerMtoken: 10 },
78932
+ "gpt-6-sol-pro": { inputPerMtoken: 2, outputPerMtoken: 10 },
78933
+ "gpt-6.1-sol": { inputPerMtoken: 2, outputPerMtoken: 10 },
78934
+ "gpt-6.1-sol-pro": { inputPerMtoken: 2, outputPerMtoken: 10 },
78935
+ "gpt-astra-latest": { inputPerMtoken: 10, outputPerMtoken: 50 },
78936
+ "gpt-audio": { inputPerMtoken: 2.5, outputPerMtoken: 10 },
78937
+ "gpt-audio-mini": { inputPerMtoken: 0.6, outputPerMtoken: 2.4 },
78938
+ "gpt-chat-latest": { inputPerMtoken: 5, outputPerMtoken: 30 },
78939
+ "gpt-luna-latest": { inputPerMtoken: 0.1, outputPerMtoken: 0.5 },
78940
+ "gpt-mini-latest": { inputPerMtoken: 0.75, outputPerMtoken: 4.5 },
78941
+ "gpt-oss-120b": { inputPerMtoken: 0.037, outputPerMtoken: 0.17 },
78942
+ "gpt-oss-20b": { inputPerMtoken: 0.018, outputPerMtoken: 0.09 },
78943
+ "gpt-oss-safeguard-20b": { inputPerMtoken: 0.075, outputPerMtoken: 0.3 },
78944
+ "gpt-sol-latest": { inputPerMtoken: 2, outputPerMtoken: 10 },
78945
+ "gpt-terra-latest": { inputPerMtoken: 2, outputPerMtoken: 12 },
78946
+ "granite-4.0-h-micro": { inputPerMtoken: 0.017, outputPerMtoken: 0.112 },
78947
+ "granite-4.2-8b": { inputPerMtoken: 0.06, outputPerMtoken: 0.25 },
78948
+ "grok-4.20": { inputPerMtoken: 1.25, outputPerMtoken: 2.5 },
78949
+ "grok-4.20-multi-agent": { inputPerMtoken: 1.25, outputPerMtoken: 2.5 },
78950
+ "grok-4.3": { inputPerMtoken: 1.25, outputPerMtoken: 2.5 },
78951
+ "grok-4.5": { inputPerMtoken: 2, outputPerMtoken: 6 },
78952
+ "grok-4.6": { inputPerMtoken: 2, outputPerMtoken: 6 },
78953
+ "grok-4.7": { inputPerMtoken: 2, outputPerMtoken: 6 },
78954
+ "grok-build-0.1": { inputPerMtoken: 1, outputPerMtoken: 2 },
78955
+ "grok-latest": { inputPerMtoken: 2, outputPerMtoken: 6 },
78956
+ "hermes-3-llama-3.1-405b": { inputPerMtoken: 1, outputPerMtoken: 1 },
78957
+ "hermes-3-llama-3.1-70b": { inputPerMtoken: 0.7, outputPerMtoken: 0.7 },
78958
+ "hermes-4-405b": { inputPerMtoken: 1, outputPerMtoken: 3 },
78959
+ "hunyuan-a13b-instruct": { inputPerMtoken: 0.14, outputPerMtoken: 0.57 },
78960
+ "hy-mt2-1.8b": { inputPerMtoken: 0.044, outputPerMtoken: 0.177 },
78961
+ "hy-mt2-30b-a3b": { inputPerMtoken: 0.074, outputPerMtoken: 0.295 },
78962
+ "hy-mt2-7b": { inputPerMtoken: 0.074, outputPerMtoken: 0.295 },
78963
+ "hy3": { inputPerMtoken: 0.132, outputPerMtoken: 0.528 },
78964
+ "hy3-preview": { inputPerMtoken: 0.18, outputPerMtoken: 0.6 },
78965
+ "hy4-preview": { inputPerMtoken: 0.834, outputPerMtoken: 2.501 },
78966
+ "inkling": { inputPerMtoken: 1, outputPerMtoken: 4.05 },
78967
+ "inkling-small": { inputPerMtoken: 0.45, outputPerMtoken: 1.2 },
78968
+ "inkling-small:free": { inputPerMtoken: 0, outputPerMtoken: 0 },
78969
+ "inkling:free": { inputPerMtoken: 0, outputPerMtoken: 0 },
78970
+ "kimi-k2": { inputPerMtoken: 0.57, outputPerMtoken: 2.3 },
78971
+ "kimi-k2-0905": { inputPerMtoken: 0.6, outputPerMtoken: 2.5 },
78972
+ "kimi-k2-thinking": { inputPerMtoken: 0.6, outputPerMtoken: 2.5 },
78973
+ "kimi-k2.5": { inputPerMtoken: 0.5, outputPerMtoken: 2.5 },
78974
+ "kimi-k2.6": { inputPerMtoken: 0.65, outputPerMtoken: 3.41 },
78975
+ "kimi-k2.7-code": { inputPerMtoken: 0.6712, outputPerMtoken: 3.35 },
78976
+ "kimi-k3": { inputPerMtoken: 0.7, outputPerMtoken: 15 },
78977
+ "kimi-latest": { inputPerMtoken: 0.536, outputPerMtoken: 14 },
78978
+ "l3-lunaris-8b": { inputPerMtoken: 0.04, outputPerMtoken: 0.05 },
78979
+ "l3.1-euryale-70b": { inputPerMtoken: 0.85, outputPerMtoken: 0.85 },
78980
+ "l3.3-euryale-70b": { inputPerMtoken: 0.65, outputPerMtoken: 0.75 },
78981
+ "laguna-s-2.1": { inputPerMtoken: 0.09, outputPerMtoken: 0.18 },
78982
+ "laguna-s-2.1:free": { inputPerMtoken: 0, outputPerMtoken: 0 },
78983
+ "laguna-xs-2.1": { inputPerMtoken: 0.06, outputPerMtoken: 0.12 },
78984
+ "laguna-xs-2.1:free": { inputPerMtoken: 0, outputPerMtoken: 0 },
78985
+ "lfm-2.5-2.6b:free": { inputPerMtoken: 0, outputPerMtoken: 0 },
78986
+ "lfm-2.5-24b-a2b": { inputPerMtoken: 0.05, outputPerMtoken: 0.7 },
78987
+ "ling-3.0-flash": { inputPerMtoken: 0.021, outputPerMtoken: 0.063 },
78988
+ "ling-3.0-flash-vl": { inputPerMtoken: 0.06, outputPerMtoken: 0.18 },
78989
+ "ling-3.1-flash": { inputPerMtoken: 0.075, outputPerMtoken: 0.225 },
78990
+ "llama-3.1-70b-instruct": { inputPerMtoken: 0.4, outputPerMtoken: 0.4 },
78991
+ "llama-3.1-8b-instruct": { inputPerMtoken: 0.05, outputPerMtoken: 0.08 },
78992
+ "llama-3.2-1b-instruct": { inputPerMtoken: 0.027, outputPerMtoken: 0.201 },
78993
+ "llama-3.2-3b-instruct": { inputPerMtoken: 0.05, outputPerMtoken: 0.33 },
78994
+ "llama-3.3-70b-instruct": { inputPerMtoken: 0.59, outputPerMtoken: 0.79 },
78995
+ "llama-4-maverick": { inputPerMtoken: 0.1875, outputPerMtoken: 0.6525 },
78996
+ "llama-4-scout": { inputPerMtoken: 0.18, outputPerMtoken: 0.59 },
78997
+ "llama-guard-4-12b": { inputPerMtoken: 0.18, outputPerMtoken: 0.18 },
78998
+ "longcat-2.0": { inputPerMtoken: 0.3, outputPerMtoken: 1.2 },
78999
+ "lyria-3-clip-preview": { inputPerMtoken: 0, outputPerMtoken: 0 },
79000
+ "lyria-3-pro-preview": { inputPerMtoken: 0, outputPerMtoken: 0 },
79001
+ "magnum-v4-72b": { inputPerMtoken: 2.5, outputPerMtoken: 5 },
79002
+ "mercury-2": { inputPerMtoken: 0.25, outputPerMtoken: 0.75 },
79003
+ "mercury-2.5": { inputPerMtoken: 0.04, outputPerMtoken: 0.15 },
79004
+ "mimo-v2.5": { inputPerMtoken: 0.14, outputPerMtoken: 0.28 },
79005
+ "mimo-v2.5-pro": { inputPerMtoken: 0.435, outputPerMtoken: 0.87 },
79006
+ "mimo-v2.6-flash": { inputPerMtoken: 0.14, outputPerMtoken: 0.28 },
79007
+ "mimo-v2.6-pro": { inputPerMtoken: 0.435, outputPerMtoken: 0.87 },
79008
+ "mimo-v2.6-pro-ultraspeed": { inputPerMtoken: 4.35, outputPerMtoken: 8.7 },
79009
+ "minimax-01": { inputPerMtoken: 0.2, outputPerMtoken: 1.1 },
79010
+ "minimax-m1": { inputPerMtoken: 0.55, outputPerMtoken: 2.2 },
79011
+ "minimax-m2": { inputPerMtoken: 0.255, outputPerMtoken: 1.02 },
79012
+ "minimax-m2-her": { inputPerMtoken: 0.3, outputPerMtoken: 1.2 },
79013
+ "minimax-m2.1": { inputPerMtoken: 0.3, outputPerMtoken: 1.2 },
79014
+ "minimax-m2.5": { inputPerMtoken: 0.27, outputPerMtoken: 1.08 },
79015
+ "minimax-m2.7": { inputPerMtoken: 0.3, outputPerMtoken: 1.2 },
79016
+ "minimax-m3": { inputPerMtoken: 0.3, outputPerMtoken: 1.2 },
79017
+ "ministral-14b-2512": { inputPerMtoken: 0.2, outputPerMtoken: 0.2 },
79018
+ "ministral-3b-2512": { inputPerMtoken: 0.1, outputPerMtoken: 0.1 },
79019
+ "ministral-8b-2512": { inputPerMtoken: 0.15, outputPerMtoken: 0.15 },
79020
+ "mistral-large": { inputPerMtoken: 2, outputPerMtoken: 6 },
79021
+ "mistral-large-2407": { inputPerMtoken: 2, outputPerMtoken: 6 },
79022
+ "mistral-large-2512": { inputPerMtoken: 0.5, outputPerMtoken: 1.5 },
79023
+ "mistral-large-4-0": { inputPerMtoken: 0.68, outputPerMtoken: 2.09 },
79024
+ "mistral-medium-3": { inputPerMtoken: 0.4, outputPerMtoken: 2 },
79025
+ "mistral-medium-3-5": { inputPerMtoken: 1.5, outputPerMtoken: 7.5 },
79026
+ "mistral-medium-3.1": { inputPerMtoken: 0.4, outputPerMtoken: 2 },
79027
+ "mistral-nemo": { inputPerMtoken: 0.029, outputPerMtoken: 0.03 },
79028
+ "mistral-saba": { inputPerMtoken: 0.2, outputPerMtoken: 0.6 },
79029
+ "mistral-small-24b-instruct-2501": { inputPerMtoken: 0.05, outputPerMtoken: 0.08 },
79030
+ "mistral-small-2603": { inputPerMtoken: 0.15, outputPerMtoken: 0.6 },
79031
+ "mistral-small-3.1-24b-instruct": { inputPerMtoken: 0.351, outputPerMtoken: 0.555 },
79032
+ "mistral-small-3.2-24b-instruct": { inputPerMtoken: 0.09375, outputPerMtoken: 0.25 },
79033
+ "mixtral-8x22b-instruct": { inputPerMtoken: 2, outputPerMtoken: 6 },
79034
+ "morph-v3-fast": { inputPerMtoken: 0.8, outputPerMtoken: 1.2 },
79035
+ "morph-v3-large": { inputPerMtoken: 0.9, outputPerMtoken: 1.9 },
79036
+ "muse-glimmer-30b": { inputPerMtoken: 0.3, outputPerMtoken: 1.2 },
79037
+ "muse-spark-1.1": { inputPerMtoken: 1.25, outputPerMtoken: 4.25 },
79038
+ "muse-spark-1.2": { inputPerMtoken: 1.25, outputPerMtoken: 4.25 },
79039
+ "muse-spark-1.2-contributor": { inputPerMtoken: 0.1, outputPerMtoken: 0.2 },
79040
+ "muse-spark-1.3": { inputPerMtoken: 1.25, outputPerMtoken: 4.25 },
79041
+ "muse-spark-1.3-contributor": { inputPerMtoken: 0.1, outputPerMtoken: 0.2 },
79042
+ "muse-wonder": { inputPerMtoken: 4, outputPerMtoken: 20 },
79043
+ "mythomax-l2-13b": { inputPerMtoken: 0.08, outputPerMtoken: 0.11 },
79044
+ "nemotron-3-nano-30b-a3b": { inputPerMtoken: 0.06, outputPerMtoken: 0.24 },
79045
+ "nemotron-3-nano-omni-30b-a3b-reasoning:free": { inputPerMtoken: 0, outputPerMtoken: 0 },
79046
+ "nemotron-3-super-120b-a12b": { inputPerMtoken: 0.08, outputPerMtoken: 0.45 },
79047
+ "nemotron-3-super-120b-a12b:free": { inputPerMtoken: 0, outputPerMtoken: 0 },
79048
+ "nemotron-3-ultra-550b-a55b": { inputPerMtoken: 0.6, outputPerMtoken: 2.4 },
79049
+ "nemotron-3-ultra-550b-a55b:free": { inputPerMtoken: 0, outputPerMtoken: 0 },
79050
+ "nemotron-3.5-content-safety": { inputPerMtoken: 0.2, outputPerMtoken: 0.2 },
79051
+ "nemotron-3.5-content-safety:free": { inputPerMtoken: 0, outputPerMtoken: 0 },
79052
+ "nemotron-3.5-lightning": { inputPerMtoken: 0.07, outputPerMtoken: 0.2 },
79053
+ "nemotron-3.5-lightning:free": { inputPerMtoken: 0, outputPerMtoken: 0 },
79054
+ "nex-n2.5-mini": { inputPerMtoken: 0.025, outputPerMtoken: 0.1 },
79055
+ "nex-n2.5-pro": { inputPerMtoken: 0.075, outputPerMtoken: 0.25 },
79056
+ "north-mini-code:free": { inputPerMtoken: 0, outputPerMtoken: 0 },
79057
+ "nova-2-lite-v1": { inputPerMtoken: 0.3, outputPerMtoken: 2.5 },
79058
+ "nova-lite-v1": { inputPerMtoken: 0.06, outputPerMtoken: 0.24 },
79059
+ "nova-micro-v1": { inputPerMtoken: 0.035, outputPerMtoken: 0.14 },
79060
+ "nova-premier-v1": { inputPerMtoken: 2.5, outputPerMtoken: 12.5 },
79061
+ "nova-pro-v1": { inputPerMtoken: 0.8, outputPerMtoken: 3.2 },
79062
+ "o1": { inputPerMtoken: 15, outputPerMtoken: 60 },
79063
+ "o1-pro": { inputPerMtoken: 150, outputPerMtoken: 600 },
79064
+ "o3": { inputPerMtoken: 2, outputPerMtoken: 8 },
79065
+ "o3-mini": { inputPerMtoken: 1.1, outputPerMtoken: 4.4 },
79066
+ "o3-mini-high": { inputPerMtoken: 1.1, outputPerMtoken: 4.4 },
79067
+ "o3-pro": { inputPerMtoken: 20, outputPerMtoken: 80 },
79068
+ "o4-mini": { inputPerMtoken: 1.1, outputPerMtoken: 4.4 },
79069
+ "o4-mini-high": { inputPerMtoken: 1.1, outputPerMtoken: 4.4 },
79070
+ "palmyra-x5": { inputPerMtoken: 0.6, outputPerMtoken: 6 },
79071
+ "pareto-26.10-preview": { inputPerMtoken: 0.8, outputPerMtoken: 3.2 },
79072
+ "pareto-26.9": { inputPerMtoken: 2.5, outputPerMtoken: 7.5 },
79073
+ "pareto-latest": { inputPerMtoken: 2.5, outputPerMtoken: 7.5 },
79074
+ "perceptron-mk1": { inputPerMtoken: 0.15, outputPerMtoken: 1.5 },
79075
+ "perceptron-mk1.5": { inputPerMtoken: 0.15, outputPerMtoken: 1.5 },
79076
+ "phi-4": { inputPerMtoken: 0.07, outputPerMtoken: 0.14 },
79077
+ "qwen-2.5-72b-instruct": { inputPerMtoken: 0.36, outputPerMtoken: 0.4 },
79078
+ "qwen-2.5-7b-instruct": { inputPerMtoken: 0.1, outputPerMtoken: 0.2 },
79079
+ "qwen-2.5-coder-32b-instruct": { inputPerMtoken: 0.66, outputPerMtoken: 1 },
79080
+ "qwen-plus": { inputPerMtoken: 0.26, outputPerMtoken: 0.78 },
79081
+ "qwen2.5-vl-72b-instruct": { inputPerMtoken: 0.8, outputPerMtoken: 1 },
79082
+ "qwen3-14b": { inputPerMtoken: 0.12, outputPerMtoken: 0.24 },
79083
+ "qwen3-235b-a22b-2507": { inputPerMtoken: 0.09, outputPerMtoken: 0.55 },
79084
+ "qwen3-235b-a22b-thinking-2507": { inputPerMtoken: 0.45, outputPerMtoken: 3.5 },
79085
+ "qwen3-30b-a3b": { inputPerMtoken: 0.12, outputPerMtoken: 0.5 },
79086
+ "qwen3-30b-a3b-instruct-2507": { inputPerMtoken: 0.1, outputPerMtoken: 0.3 },
79087
+ "qwen3-32b": { inputPerMtoken: 0.08, outputPerMtoken: 0.28 },
79088
+ "qwen3-coder": { inputPerMtoken: 0.3, outputPerMtoken: 1 },
79089
+ "qwen3-coder-30b-a3b-instruct": { inputPerMtoken: 0.07, outputPerMtoken: 0.28 },
79090
+ "qwen3-coder-flash": { inputPerMtoken: 0.195, outputPerMtoken: 0.975 },
79091
+ "qwen3-coder-next": { inputPerMtoken: 0.12, outputPerMtoken: 0.8 },
79092
+ "qwen3-next-80b-a3b-instruct": { inputPerMtoken: 0.1, outputPerMtoken: 1.1 },
79093
+ "qwen3-next-80b-a3b-thinking": { inputPerMtoken: 0.15, outputPerMtoken: 1.2 },
79094
+ "qwen3-vl-235b-a22b-instruct": { inputPerMtoken: 0.21, outputPerMtoken: 1.9 },
79095
+ "qwen3-vl-30b-a3b-instruct": { inputPerMtoken: 0.15, outputPerMtoken: 0.6 },
79096
+ "qwen3-vl-30b-a3b-thinking": { inputPerMtoken: 0.29, outputPerMtoken: 1 },
79097
+ "qwen3-vl-8b-instruct": { inputPerMtoken: 0.25, outputPerMtoken: 0.75 },
79098
+ "qwen3.5-122b-a10b": { inputPerMtoken: 0.26, outputPerMtoken: 2.08 },
79099
+ "qwen3.5-27b": { inputPerMtoken: 0.26, outputPerMtoken: 2.6 },
79100
+ "qwen3.5-35b-a3b": { inputPerMtoken: 0.15, outputPerMtoken: 1 },
79101
+ "qwen3.5-397b-a17b": { inputPerMtoken: 0.5, outputPerMtoken: 3.6 },
79102
+ "qwen3.5-9b": { inputPerMtoken: 0.1, outputPerMtoken: 0.15 },
79103
+ "qwen3.5-flash-02-23": { inputPerMtoken: 0.065, outputPerMtoken: 0.26 },
79104
+ "qwen3.5-plus-02-15": { inputPerMtoken: 0.26, outputPerMtoken: 1.56 },
79105
+ "qwen3.5-plus-20260420": { inputPerMtoken: 0.3, outputPerMtoken: 1.8 },
79106
+ "qwen3.6-27b": { inputPerMtoken: 0.32, outputPerMtoken: 3.2 },
79107
+ "qwen3.6-35b-a3b": { inputPerMtoken: 0.1, outputPerMtoken: 0.95 },
79108
+ "qwen3.6-flash": { inputPerMtoken: 0.1875, outputPerMtoken: 1.125 },
79109
+ "qwen3.6-plus": { inputPerMtoken: 0.325, outputPerMtoken: 1.95 },
79110
+ "qwen3.7-flash": { inputPerMtoken: 0.03, outputPerMtoken: 0.13 },
79111
+ "qwen3.7-max": { inputPerMtoken: 1.475, outputPerMtoken: 4.425 },
79112
+ "qwen3.7-plus": { inputPerMtoken: 0.32, outputPerMtoken: 1.28 },
79113
+ "qwen3.8-2.4t-a95b": { inputPerMtoken: 2, outputPerMtoken: 6 },
79114
+ "qwen3.8-27b": { inputPerMtoken: 0.04, outputPerMtoken: 2.3 },
79115
+ "qwen3.8-flash": { inputPerMtoken: 0.15, outputPerMtoken: 0.47 },
79116
+ "qwen3.8-max-0902": { inputPerMtoken: 2, outputPerMtoken: 6 },
79117
+ "qwen3.8-max-prime": { inputPerMtoken: 4, outputPerMtoken: 12 },
79118
+ "qwen3.8-omni-flash": { inputPerMtoken: 0.15, outputPerMtoken: 0.47 },
79119
+ "reka-edge": { inputPerMtoken: 0.1, outputPerMtoken: 0.1 },
79120
+ "reka-flash-3": { inputPerMtoken: 0.1, outputPerMtoken: 0.2 },
79121
+ "relace-apply-3": { inputPerMtoken: 0.85, outputPerMtoken: 1.25 },
79122
+ "relace-search": { inputPerMtoken: 1, outputPerMtoken: 3 },
79123
+ "remm-slerp-l2-13b": { inputPerMtoken: 0.35, outputPerMtoken: 0.65 },
79124
+ "sakana-namazu": { inputPerMtoken: 0.95, outputPerMtoken: 4 },
79125
+ "schematron-v2-small": { inputPerMtoken: 0.05, outputPerMtoken: 0.23 },
79126
+ "schematron-v2-turbo": { inputPerMtoken: 0.03, outputPerMtoken: 0.15 },
79127
+ "seed-1.6": { inputPerMtoken: 0.25, outputPerMtoken: 2 },
79128
+ "seed-1.6-flash": { inputPerMtoken: 0.075, outputPerMtoken: 0.3 },
79129
+ "seed-2-1-turbo": { inputPerMtoken: 0.5, outputPerMtoken: 2.5 },
79130
+ "seed-2.0-code": { inputPerMtoken: 0.5, outputPerMtoken: 3 },
79131
+ "seed-2.0-lite": { inputPerMtoken: 0.25, outputPerMtoken: 2 },
79132
+ "seed-2.0-mini": { inputPerMtoken: 0.1, outputPerMtoken: 0.4 },
79133
+ "skyfall-36b-v2": { inputPerMtoken: 0.55, outputPerMtoken: 0.8 },
79134
+ "solar-mini4": { inputPerMtoken: 0.05, outputPerMtoken: 0.2 },
79135
+ "solar-pro-3": { inputPerMtoken: 0.15, outputPerMtoken: 0.6 },
79136
+ "solar-pro4": { inputPerMtoken: 0.09, outputPerMtoken: 0.36 },
79137
+ "sonar": { inputPerMtoken: 1, outputPerMtoken: 1 },
79138
+ "sonar-deep-research": { inputPerMtoken: 2, outputPerMtoken: 8 },
79139
+ "sonar-pro": { inputPerMtoken: 3, outputPerMtoken: 15 },
79140
+ "sonar-pro-search": { inputPerMtoken: 3, outputPerMtoken: 15 },
79141
+ "sonar-reasoning-pro": { inputPerMtoken: 2, outputPerMtoken: 8 },
79142
+ "step-3.5-flash": { inputPerMtoken: 0.1, outputPerMtoken: 0.3 },
79143
+ "step-3.7-flash": { inputPerMtoken: 0.2, outputPerMtoken: 1.15 },
79144
+ "step-5-preview": { inputPerMtoken: 1, outputPerMtoken: 2.7 },
79145
+ "summarize": { inputPerMtoken: 0.04, outputPerMtoken: 0 },
79146
+ "ternary-bonsai-2-27b": { inputPerMtoken: 0.075, outputPerMtoken: 0.5 },
79147
+ "trinity-large-thinking": { inputPerMtoken: 0.25, outputPerMtoken: 0.8 },
79148
+ "ui-tars-1.5-7b": { inputPerMtoken: 0.1, outputPerMtoken: 0.2 },
79149
+ "unslopnemo-12b": { inputPerMtoken: 0.4, outputPerMtoken: 0.4 },
79150
+ "voxtral-small-24b-2507": { inputPerMtoken: 0.1, outputPerMtoken: 0.3 },
79151
+ "weaver": { inputPerMtoken: 0.4, outputPerMtoken: 0.75 },
79152
+ "wizardlm-2-8x22b": { inputPerMtoken: 0.62, outputPerMtoken: 0.62 }
79153
+ }
79154
+ };
79155
+ }
79156
+ });
78664
79157
  init_llm_cost = __esm2({
78665
79158
  "src/llm-cost.ts"() {
78666
79159
  "use strict";
79160
+ init_llm_pricing_openrouter();
79161
+ LEGACY_PRICING = {
79162
+ // Superseded by OPENROUTER_PRICING wherever OpenRouter lists the model.
79163
+ anthropic: {
79164
+ "claude-opus-4-7": { inputPerMtoken: 15, outputPerMtoken: 75 },
79165
+ "claude-opus-4": { inputPerMtoken: 15, outputPerMtoken: 75 },
79166
+ "claude-sonnet-4-6": { inputPerMtoken: 3, outputPerMtoken: 15 },
79167
+ "claude-sonnet-4": { inputPerMtoken: 3, outputPerMtoken: 15 },
79168
+ "claude-haiku-4-5": { inputPerMtoken: 0.8, outputPerMtoken: 4 },
79169
+ "claude-3-5-sonnet": { inputPerMtoken: 3, outputPerMtoken: 15 },
79170
+ "claude-3-5-haiku": { inputPerMtoken: 0.8, outputPerMtoken: 4 },
79171
+ "claude-3-opus": { inputPerMtoken: 15, outputPerMtoken: 75 },
79172
+ "claude-3-sonnet": { inputPerMtoken: 3, outputPerMtoken: 15 },
79173
+ "claude-3-haiku": { inputPerMtoken: 0.25, outputPerMtoken: 1.25 }
79174
+ },
79175
+ openai: {
79176
+ "gpt-4o": { inputPerMtoken: 2.5, outputPerMtoken: 10 },
79177
+ "gpt-4o-mini": { inputPerMtoken: 0.15, outputPerMtoken: 0.6 },
79178
+ "gpt-4-turbo": { inputPerMtoken: 10, outputPerMtoken: 30 },
79179
+ "gpt-4": { inputPerMtoken: 30, outputPerMtoken: 60 },
79180
+ "gpt-3.5-turbo": { inputPerMtoken: 0.5, outputPerMtoken: 1.5 },
79181
+ "o1-preview": { inputPerMtoken: 15, outputPerMtoken: 60 },
79182
+ "o1-mini": { inputPerMtoken: 3, outputPerMtoken: 12 },
79183
+ "o3-mini": { inputPerMtoken: 1.1, outputPerMtoken: 4.4 }
79184
+ },
79185
+ openrouter: {
79186
+ // Qwen via OpenRouter — keys are post-prefix-strip canonical names.
79187
+ "qwen3.5-397b-a17b": { inputPerMtoken: 0.39, outputPerMtoken: 2.34 },
79188
+ "qwen3.6-plus": { inputPerMtoken: 0.26, outputPerMtoken: 1.56 },
79189
+ "qwen3-max-thinking": { inputPerMtoken: 1e-3, outputPerMtoken: 4e-3 },
79190
+ "qwen3-coder:free": { inputPerMtoken: 0, outputPerMtoken: 0 },
79191
+ // Grok via OpenRouter
79192
+ "grok-4.20-multi-agent": { inputPerMtoken: 2, outputPerMtoken: 2 },
79193
+ // DeepSeek routed through OpenRouter (cheaper than direct on output tokens).
79194
+ "deepseek-v3.2": { inputPerMtoken: 0.28, outputPerMtoken: 0.42 },
79195
+ "deepseek-v3.2-speciale": { inputPerMtoken: 0.4, outputPerMtoken: 1.2 },
79196
+ "deepseek-v4-pro": { inputPerMtoken: 0.28, outputPerMtoken: 0.42 },
79197
+ "deepseek-v4-flash": { inputPerMtoken: 0.14, outputPerMtoken: 0.28 }
79198
+ },
79199
+ // DeepSeek direct (deepseek.com) — different pricing than via-OR.
79200
+ // Output prices are noticeably higher on the direct API.
79201
+ deepseek: {
79202
+ "deepseek-v3.2": { inputPerMtoken: 0.27, outputPerMtoken: 1.1 },
79203
+ "deepseek-v3.2-speciale": { inputPerMtoken: 0.55, outputPerMtoken: 2.19 },
79204
+ "deepseek-v4-pro": { inputPerMtoken: 0.27, outputPerMtoken: 1.1 },
79205
+ "deepseek-v4-flash": { inputPerMtoken: 0.14, outputPerMtoken: 0.55 }
79206
+ },
79207
+ // Empty for now — add as we onboard customers using these providers.
79208
+ groq: {},
79209
+ together: {},
79210
+ mistral: {},
79211
+ azure: {}
79212
+ };
79213
+ PRICING = {
79214
+ ...LEGACY_PRICING,
79215
+ anthropic: { ...LEGACY_PRICING.anthropic, ...OPENROUTER_PRICING.anthropic },
79216
+ openai: { ...LEGACY_PRICING.openai, ...OPENROUTER_PRICING.openai },
79217
+ openrouter: { ...LEGACY_PRICING.openrouter, ...OPENROUTER_PRICING.openrouter }
79218
+ };
78667
79219
  }
78668
79220
  });
78669
79221
  init_fetch_interceptor = __esm2({
@@ -99912,7 +100464,7 @@ data:
99912
100464
  await init_skill_telemetry();
99913
100465
  await init_policy_enforcer();
99914
100466
  init_room_protocol();
99915
- VERSION = true ? "0.23.45" : "0.0.0-dev";
100467
+ VERSION = true ? "0.23.46" : "0.0.0-dev";
99916
100468
  }
99917
100469
  });
99918
100470
  await init_index();
@@ -136264,6 +136816,45 @@ config2(en_default3());
136264
136816
 
136265
136817
  // src/session.ts
136266
136818
  init_log();
136819
+
136820
+ // src/usage-report.ts
136821
+ var num = (o10, k2) => typeof o10[k2] === "number" && Number.isFinite(o10[k2]) ? o10[k2] : void 0;
136822
+ function usageFromResult(result, fallbackModel) {
136823
+ const out = [];
136824
+ const perModel = result.modelUsage;
136825
+ if (perModel && typeof perModel === "object" && !Array.isArray(perModel)) {
136826
+ for (const [model, raw] of Object.entries(perModel)) {
136827
+ if (!raw || typeof raw !== "object") continue;
136828
+ const u2 = raw;
136829
+ const entry = {
136830
+ model,
136831
+ inputTokens: num(u2, "inputTokens") ?? 0,
136832
+ outputTokens: num(u2, "outputTokens") ?? 0,
136833
+ costUsd: num(u2, "costUSD"),
136834
+ cacheReadTokens: num(u2, "cacheReadInputTokens"),
136835
+ cacheCreationTokens: num(u2, "cacheCreationInputTokens")
136836
+ };
136837
+ if (entry.inputTokens > 0 || entry.outputTokens > 0) out.push(entry);
136838
+ }
136839
+ if (out.length > 0) return out;
136840
+ }
136841
+ const usage = result.usage ?? {};
136842
+ const inputTokens = num(usage, "input_tokens") ?? 0;
136843
+ const outputTokens = num(usage, "output_tokens") ?? 0;
136844
+ if (inputTokens > 0 || outputTokens > 0) {
136845
+ out.push({
136846
+ model: fallbackModel || "claude",
136847
+ inputTokens,
136848
+ outputTokens,
136849
+ costUsd: num(result, "total_cost_usd"),
136850
+ cacheReadTokens: num(usage, "cache_read_input_tokens"),
136851
+ cacheCreationTokens: num(usage, "cache_creation_input_tokens")
136852
+ });
136853
+ }
136854
+ return out;
136855
+ }
136856
+
136857
+ // src/session.ts
136267
136858
  function makeRoomSayTool(onSay) {
136268
136859
  return bs(
136269
136860
  "say",
@@ -136570,20 +137161,25 @@ var PersistentClaudeSession = class {
136570
137161
  } else if (m6.type === "result") {
136571
137162
  this.sawResultThisTurn = true;
136572
137163
  const r7 = m6;
136573
- const num = (k2) => typeof r7[k2] === "number" ? r7[k2] : void 0;
137164
+ const num2 = (k2) => typeof r7[k2] === "number" ? r7[k2] : void 0;
136574
137165
  const str = (k2) => typeof r7[k2] === "string" ? r7[k2] : void 0;
136575
137166
  const usage = r7.usage ?? {};
136576
137167
  const unum = (k2) => typeof usage[k2] === "number" ? usage[k2] : void 0;
136577
137168
  this.resultTelemetry = {
136578
- durationMs: num("duration_ms"),
136579
- durationApiMs: num("duration_api_ms"),
136580
- numTurns: num("num_turns"),
137169
+ durationMs: num2("duration_ms"),
137170
+ durationApiMs: num2("duration_api_ms"),
137171
+ numTurns: num2("num_turns"),
136581
137172
  subtype: str("subtype"),
136582
137173
  stopReason: str("stop_reason"),
136583
- apiErrorStatus: num("api_error_status"),
137174
+ apiErrorStatus: num2("api_error_status"),
136584
137175
  cacheReadTokens: unum("cache_read_input_tokens"),
136585
137176
  cacheCreationTokens: unum("cache_creation_input_tokens")
136586
137177
  };
137178
+ try {
137179
+ const usageEntries = usageFromResult(r7, this.opts.model);
137180
+ if (usageEntries.length > 0) this.opts.onUsage?.(usageEntries, num2("duration_api_ms"));
137181
+ } catch {
137182
+ }
136587
137183
  const reply = this.activeReply;
136588
137184
  if (this.currentReplyExpected && !this.saidThisTurn && this.turnText.trim()) {
136589
137185
  if (reply) {
@@ -137360,7 +137956,7 @@ async function main() {
137360
137956
  "[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"
137361
137957
  );
137362
137958
  }
137363
- logLine(`[bridge] version: ${true ? "0.8.17" : "dev"}`);
137959
+ logLine(`[bridge] version: ${true ? "0.8.18" : "dev"}`);
137364
137960
  logLine(`[bridge] data dir: ${cfg.dataDir} (${cfg.dataDirSource})`);
137365
137961
  logLine(`[bridge] workspace: ${cfg.workspaceDir} \xB7 permissions: ${cfg.permissionMode} \xB7 enclave dir fenced`);
137366
137962
  if (cfg.armRoom) {
@@ -137392,7 +137988,7 @@ async function main() {
137392
137988
  // its default would render "@agentvault/agentvault@0.7.x" — the wrong
137393
137989
  // package name attached to the bridge's version number, which is worse
137394
137990
  // than either alone.
137395
- clientVersion: `@agentvault/claude-bridge@${true ? "0.8.17" : "dev"}`
137991
+ clientVersion: `@agentvault/claude-bridge@${true ? "0.8.18" : "dev"}`
137396
137992
  });
137397
137993
  const agentSystemPrompt = cfg.systemPrompt ?? `You are ${cfg.agentName}, an AI agent on AgentVault. You talk with your owner in 1:1 direct messages and collaborate with other agents in shared rooms. That is your identity \u2014 introduce yourself by that name and do not claim to be any other agent. To speak, call the say tool. In a 1:1 with your owner, reply to what they say. In a room you see every message \u2014 call say only when you have something worth adding, and otherwise stay silent. Keep messages concise.`;
137398
137994
  const deviceJwt = () => {
@@ -137403,8 +137999,23 @@ async function main() {
137403
137999
  const workAllowed = () => liveWorkAllowed();
137404
138000
  let liveGatesRemoved = () => false;
137405
138001
  const gatesRemoved = () => liveGatesRemoved();
138002
+ const reportUsage = (entries, durationApiMs) => {
138003
+ const telemetry = channel.telemetry;
138004
+ if (!telemetry) return;
138005
+ for (const e7 of entries) {
138006
+ telemetry.reportLlmCall({
138007
+ model: e7.model,
138008
+ provider: "anthropic",
138009
+ tokensInput: e7.inputTokens,
138010
+ tokensOutput: e7.outputTokens,
138011
+ latencyMs: Math.round((durationApiMs ?? 0) / entries.length),
138012
+ ...e7.costUsd !== void 0 ? { costUsd: e7.costUsd } : {}
138013
+ });
138014
+ }
138015
+ };
137406
138016
  const listener = new PersistentClaudeSession({
137407
138017
  model: cfg.model,
138018
+ onUsage: reportUsage,
137408
138019
  systemPrompt: agentSystemPrompt,
137409
138020
  // Claude speaks by calling the say tool → the session routes it to the reply
137410
138021
  // bound to the message being answered (wireBridge captures that per inbound via
@@ -137421,6 +138032,7 @@ async function main() {
137421
138032
  makeSession: (task) => new PersistentClaudeSession({
137422
138033
  model: cfg.model,
137423
138034
  systemPrompt: agentSystemPrompt,
138035
+ onUsage: reportUsage,
137424
138036
  onObserve: (text) => logLine(`[worker] observed (${text.length} chars, not sent)`),
137425
138037
  worker: true,
137426
138038
  // Task 4: the hard backstop — no tool runs on any worker turn (owner DM or