linkque-cli-v2 1.6.17 → 1.6.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. package/dev/worker.js +37 -11
  2. package/linkquejs.js +447 -391
  3. package/package.json +1 -1
  4. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{anthropic-messages-GSYNBLMR.js → anthropic-messages-TBZKK7UX.js} +2 -2
  5. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-JMBJJF7P.js → chunk-KRE5FADB.js} +37 -11
  6. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-RSMGFPPK.js → chunk-RL3OKTKX.js} +1 -1
  7. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-7OYTZGOC.js → chunk-SGKJHCSV.js} +2912 -2039
  8. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-EJB2EPNQ.js → chunk-ZVFW6DFO.js} +3103 -233
  9. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-generative-ai-KD7MXONK.js → google-generative-ai-YD5ZGNXC.js} +1 -1
  10. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-vertex-TREYA472.js → google-vertex-M34UDW4J.js} +1 -1
  11. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{mistral-conversations-C43A6QIS.js → mistral-conversations-KIOTOF73.js} +4 -4
  12. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{otel-RUUFBBFE.js → otel-LQR5KPZ3.js} +578 -266
  13. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/chat.js +1624 -982
  14. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/clientCapability.js +2 -3
  15. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/protocol.js +2 -3
  16. package/worker.js +6086 -4365
  17. package/vendor/linkque-agent-appwrite-integrate/dist/esm/chunk-EAODRPW4.js +0 -518
  18. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{azure-openai-responses-NPKMM3LF.js → azure-openai-responses-IYC43YOB.js} +1 -1
  19. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-KDHBKVSL.js → chunk-FCD4O3BT.js} +3 -3
  20. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{openai-codex-responses-GEFKSNVN.js → openai-codex-responses-HYLTKNTN.js} +1 -1
  21. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{openai-completions-TAACO6T5.js → openai-completions-CS3OYESP.js} +3 -3
  22. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{openai-responses-4DDTXIGI.js → openai-responses-IYAGUHY7.js} +1 -1
  23. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{pi-messages-7JN3W3BC.js → pi-messages-XGBW55RS.js} +3 -3
package/linkquejs.js CHANGED
@@ -5474,7 +5474,7 @@ var require_fast_deep_equal = __commonJS({
5474
5474
  if (a === b3) return true;
5475
5475
  if (a && b3 && typeof a == "object" && typeof b3 == "object") {
5476
5476
  if (a.constructor !== b3.constructor) return false;
5477
- var length, i, keys;
5477
+ var length, i, keys2;
5478
5478
  if (Array.isArray(a)) {
5479
5479
  length = a.length;
5480
5480
  if (length != b3.length) return false;
@@ -5485,13 +5485,13 @@ var require_fast_deep_equal = __commonJS({
5485
5485
  if (a.constructor === RegExp) return a.source === b3.source && a.flags === b3.flags;
5486
5486
  if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b3.valueOf();
5487
5487
  if (a.toString !== Object.prototype.toString) return a.toString() === b3.toString();
5488
- keys = Object.keys(a);
5489
- length = keys.length;
5488
+ keys2 = Object.keys(a);
5489
+ length = keys2.length;
5490
5490
  if (length !== Object.keys(b3).length) return false;
5491
5491
  for (i = length; i-- !== 0; )
5492
- if (!Object.prototype.hasOwnProperty.call(b3, keys[i])) return false;
5492
+ if (!Object.prototype.hasOwnProperty.call(b3, keys2[i])) return false;
5493
5493
  for (i = length; i-- !== 0; ) {
5494
- var key = keys[i];
5494
+ var key = keys2[i];
5495
5495
  if (!equal(a[key], b3[key])) return false;
5496
5496
  }
5497
5497
  return true;
@@ -5661,10 +5661,10 @@ var require_resolve = __commonJS({
5661
5661
  }
5662
5662
  return count;
5663
5663
  }
5664
- function getFullPath(resolver, id = "", normalize) {
5664
+ function getFullPath(resolver, id2 = "", normalize) {
5665
5665
  if (normalize !== false)
5666
- id = normalizeId(id);
5667
- const p3 = resolver.parse(id);
5666
+ id2 = normalizeId(id2);
5667
+ const p3 = resolver.parse(id2);
5668
5668
  return _getFullPath(resolver, p3);
5669
5669
  }
5670
5670
  exports2.getFullPath = getFullPath;
@@ -5674,13 +5674,13 @@ var require_resolve = __commonJS({
5674
5674
  }
5675
5675
  exports2._getFullPath = _getFullPath;
5676
5676
  var TRAILING_SLASH_HASH = /#\/?$/;
5677
- function normalizeId(id) {
5678
- return id ? id.replace(TRAILING_SLASH_HASH, "") : "";
5677
+ function normalizeId(id2) {
5678
+ return id2 ? id2.replace(TRAILING_SLASH_HASH, "") : "";
5679
5679
  }
5680
5680
  exports2.normalizeId = normalizeId;
5681
- function resolveUrl(resolver, baseId, id) {
5682
- id = normalizeId(id);
5683
- return resolver.resolve(baseId, id);
5681
+ function resolveUrl(resolver, baseId, id2) {
5682
+ id2 = normalizeId(id2);
5683
+ return resolver.resolve(baseId, id2);
5684
5684
  }
5685
5685
  exports2.resolveUrl = resolveUrl;
5686
5686
  var ANCHOR = /^[a-z_][-a-z0-9._]*$/i;
@@ -6450,8 +6450,8 @@ var require_compile = __commonJS({
6450
6450
  if (Object.keys(root.schema).length > 0 && refPath === baseId) {
6451
6451
  return getJsonPointer.call(this, p3, root);
6452
6452
  }
6453
- const id = (0, resolve_1.normalizeId)(refPath);
6454
- const schOrRef = this.refs[id] || this.schemas[id];
6453
+ const id2 = (0, resolve_1.normalizeId)(refPath);
6454
+ const schOrRef = this.refs[id2] || this.schemas[id2];
6455
6455
  if (typeof schOrRef == "string") {
6456
6456
  const sch = resolveSchema.call(this, root, schOrRef);
6457
6457
  if (typeof (sch === null || sch === void 0 ? void 0 : sch.schema) !== "object")
@@ -6462,7 +6462,7 @@ var require_compile = __commonJS({
6462
6462
  return;
6463
6463
  if (!schOrRef.validate)
6464
6464
  compileSchema.call(this, schOrRef);
6465
- if (id === (0, resolve_1.normalizeId)(ref)) {
6465
+ if (id2 === (0, resolve_1.normalizeId)(ref)) {
6466
6466
  const { schema: schema2 } = schOrRef;
6467
6467
  const { schemaId } = this.opts;
6468
6468
  const schId = schema2[schemaId];
@@ -7945,15 +7945,15 @@ var require_core = __commonJS({
7945
7945
  this.addSchema(sch, void 0, _meta, _validateSchema);
7946
7946
  return this;
7947
7947
  }
7948
- let id;
7948
+ let id2;
7949
7949
  if (typeof schema2 === "object") {
7950
7950
  const { schemaId } = this.opts;
7951
- id = schema2[schemaId];
7952
- if (id !== void 0 && typeof id != "string") {
7951
+ id2 = schema2[schemaId];
7952
+ if (id2 !== void 0 && typeof id2 != "string") {
7953
7953
  throw new Error(`schema ${schemaId} must be string`);
7954
7954
  }
7955
7955
  }
7956
- key = (0, resolve_1.normalizeId)(key || id);
7956
+ key = (0, resolve_1.normalizeId)(key || id2);
7957
7957
  this._checkUnique(key);
7958
7958
  this.schemas[key] = this._addSchema(schema2, _meta, key, _validateSchema, true);
7959
7959
  return this;
@@ -8032,11 +8032,11 @@ var require_core = __commonJS({
8032
8032
  case "object": {
8033
8033
  const cacheKey = schemaKeyRef;
8034
8034
  this._cache.delete(cacheKey);
8035
- let id = schemaKeyRef[this.opts.schemaId];
8036
- if (id) {
8037
- id = (0, resolve_1.normalizeId)(id);
8038
- delete this.schemas[id];
8039
- delete this.refs[id];
8035
+ let id2 = schemaKeyRef[this.opts.schemaId];
8036
+ if (id2) {
8037
+ id2 = (0, resolve_1.normalizeId)(id2);
8038
+ delete this.schemas[id2];
8039
+ delete this.refs[id2];
8040
8040
  }
8041
8041
  return this;
8042
8042
  }
@@ -8045,8 +8045,8 @@ var require_core = __commonJS({
8045
8045
  }
8046
8046
  }
8047
8047
  // add "vocabulary" - a collection of keywords
8048
- addVocabulary(definitions) {
8049
- for (const def of definitions)
8048
+ addVocabulary(definitions2) {
8049
+ for (const def of definitions2)
8050
8050
  this.addKeyword(def);
8051
8051
  return this;
8052
8052
  }
@@ -8143,10 +8143,10 @@ var require_core = __commonJS({
8143
8143
  }
8144
8144
  }
8145
8145
  _addSchema(schema2, meta, baseId, validateSchema = this.opts.validateSchema, addSchema = this.opts.addUsedSchema) {
8146
- let id;
8146
+ let id2;
8147
8147
  const { schemaId } = this.opts;
8148
8148
  if (typeof schema2 == "object") {
8149
- id = schema2[schemaId];
8149
+ id2 = schema2[schemaId];
8150
8150
  } else {
8151
8151
  if (this.opts.jtd)
8152
8152
  throw new Error("schema must be object");
@@ -8156,7 +8156,7 @@ var require_core = __commonJS({
8156
8156
  let sch = this._cache.get(schema2);
8157
8157
  if (sch !== void 0)
8158
8158
  return sch;
8159
- baseId = (0, resolve_1.normalizeId)(id || baseId);
8159
+ baseId = (0, resolve_1.normalizeId)(id2 || baseId);
8160
8160
  const localRefs = resolve_1.getSchemaRefs.call(this, schema2, baseId);
8161
8161
  sch = new compile_1.SchemaEnv({ schema: schema2, schemaId, meta, baseId, localRefs });
8162
8162
  this._cache.set(sch.schema, sch);
@@ -8169,9 +8169,9 @@ var require_core = __commonJS({
8169
8169
  this.validateSchema(schema2, true);
8170
8170
  return sch;
8171
8171
  }
8172
- _checkUnique(id) {
8173
- if (this.schemas[id] || this.refs[id]) {
8174
- throw new Error(`schema with key or id "${id}" already exists`);
8172
+ _checkUnique(id2) {
8173
+ if (this.schemas[id2] || this.refs[id2]) {
8174
+ throw new Error(`schema with key or id "${id2}" already exists`);
8175
8175
  }
8176
8176
  }
8177
8177
  _compileSchemaEnv(sch) {
@@ -8536,8 +8536,8 @@ var require_multipleOf = __commonJS({
8536
8536
  const { gen, data, schemaCode, it: it2 } = cxt;
8537
8537
  const prec = it2.opts.multipleOfPrecision;
8538
8538
  const res = gen.let("res");
8539
- const invalid = prec ? (0, codegen_1._)`Math.abs(Math.round(${res}) - ${res}) > 1e-${prec}` : (0, codegen_1._)`${res} !== parseInt(${res})`;
8540
- cxt.fail$data((0, codegen_1._)`(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`);
8539
+ const invalid2 = prec ? (0, codegen_1._)`Math.abs(Math.round(${res}) - ${res}) > 1e-${prec}` : (0, codegen_1._)`${res} !== parseInt(${res})`;
8540
+ cxt.fail$data((0, codegen_1._)`(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid2}))`);
8541
8541
  }
8542
8542
  };
8543
8543
  exports2.default = def;
@@ -10440,10 +10440,10 @@ var require_jmespath = __commonJS({
10440
10440
  }
10441
10441
  }
10442
10442
  function objValues(obj) {
10443
- var keys = Object.keys(obj);
10443
+ var keys2 = Object.keys(obj);
10444
10444
  var values = [];
10445
- for (var i = 0; i < keys.length; i++) {
10446
- values.push(obj[keys[i]]);
10445
+ for (var i = 0; i < keys2.length; i++) {
10446
+ values.push(obj[keys2[i]]);
10447
10447
  }
10448
10448
  return values;
10449
10449
  }
@@ -11707,10 +11707,10 @@ var require_jmespath = __commonJS({
11707
11707
  },
11708
11708
  _functionValues: function(resolvedArgs) {
11709
11709
  var obj = resolvedArgs[0];
11710
- var keys = Object.keys(obj);
11710
+ var keys2 = Object.keys(obj);
11711
11711
  var values = [];
11712
- for (var i = 0; i < keys.length; i++) {
11713
- values.push(obj[keys[i]]);
11712
+ for (var i = 0; i < keys2.length; i++) {
11713
+ values.push(obj[keys2[i]]);
11714
11714
  }
11715
11715
  return values;
11716
11716
  },
@@ -13560,9 +13560,9 @@ var require_request = __commonJS({
13560
13560
  processHeader(this, header[0], header[1]);
13561
13561
  }
13562
13562
  } else {
13563
- const keys = Object.keys(headers);
13564
- for (let i = 0; i < keys.length; ++i) {
13565
- processHeader(this, keys[i], headers[keys[i]]);
13563
+ const keys2 = Object.keys(headers);
13564
+ for (let i = 0; i < keys2.length; ++i) {
13565
+ processHeader(this, keys2[i], headers[keys2[i]]);
13566
13566
  }
13567
13567
  }
13568
13568
  } else if (headers != null) {
@@ -15321,16 +15321,16 @@ var require_webidl = __commonJS({
15321
15321
  }
15322
15322
  const result = {};
15323
15323
  if (!types.isProxy(O2)) {
15324
- const keys2 = [...Object.getOwnPropertyNames(O2), ...Object.getOwnPropertySymbols(O2)];
15325
- for (const key of keys2) {
15324
+ const keys3 = [...Object.getOwnPropertyNames(O2), ...Object.getOwnPropertySymbols(O2)];
15325
+ for (const key of keys3) {
15326
15326
  const typedKey = keyConverter(key, prefix, argument);
15327
15327
  const typedValue = valueConverter(O2[key], prefix, argument);
15328
15328
  result[typedKey] = typedValue;
15329
15329
  }
15330
15330
  return result;
15331
15331
  }
15332
- const keys = Reflect.ownKeys(O2);
15333
- for (const key of keys) {
15332
+ const keys2 = Reflect.ownKeys(O2);
15333
+ for (const key of keys2) {
15334
15334
  const desc = Reflect.getOwnPropertyDescriptor(O2, key);
15335
15335
  if (desc?.enumerable) {
15336
15336
  const typedKey = keyConverter(key, prefix, argument);
@@ -16030,7 +16030,7 @@ var require_util3 = __commonJS({
16030
16030
  writable: true,
16031
16031
  enumerable: true,
16032
16032
  configurable: true,
16033
- value: function keys() {
16033
+ value: function keys2() {
16034
16034
  webidl.brandCheck(this, object3);
16035
16035
  return makeIterator(this, "key");
16036
16036
  }
@@ -18316,8 +18316,8 @@ var require_client_h2 = __commonJS({
18316
18316
  this[kSocket][kError] = err;
18317
18317
  this[kClient][kOnError](err);
18318
18318
  }
18319
- function onHttp2FrameError(type, code, id) {
18320
- if (id === 0) {
18319
+ function onHttp2FrameError(type, code, id2) {
18320
+ if (id2 === 0) {
18321
18321
  const err = new InformationalError(`HTTP/2: "frameError" received - type ${type}, code ${code}`);
18322
18322
  this[kSocket][kError] = err;
18323
18323
  this[kClient][kOnError](err);
@@ -21872,10 +21872,10 @@ var require_mock_utils = __commonJS({
21872
21872
  };
21873
21873
  }
21874
21874
  function generateKeyValues(data) {
21875
- const keys = Object.keys(data);
21875
+ const keys2 = Object.keys(data);
21876
21876
  const result = [];
21877
- for (let i = 0; i < keys.length; ++i) {
21878
- const key = keys[i];
21877
+ for (let i = 0; i < keys2.length; ++i) {
21878
+ const key = keys2[i];
21879
21879
  const value = data[key];
21880
21880
  const name = Buffer.from(`${key}`);
21881
21881
  if (Array.isArray(value)) {
@@ -22295,9 +22295,9 @@ var require_pluralizer = __commonJS({
22295
22295
  }
22296
22296
  pluralize(count) {
22297
22297
  const one = count === 1;
22298
- const keys = one ? singulars : plurals;
22298
+ const keys2 = one ? singulars : plurals;
22299
22299
  const noun = one ? this.singular : this.plural;
22300
- return { ...keys, count, noun };
22300
+ return { ...keys2, count, noun };
22301
22301
  }
22302
22302
  };
22303
22303
  }
@@ -22732,9 +22732,9 @@ var require_headers = __commonJS({
22732
22732
  appendHeader(headers, header[0], header[1]);
22733
22733
  }
22734
22734
  } else if (typeof object3 === "object" && object3 !== null) {
22735
- const keys = Object.keys(object3);
22736
- for (let i = 0; i < keys.length; ++i) {
22737
- appendHeader(headers, keys[i], object3[keys[i]]);
22735
+ const keys2 = Object.keys(object3);
22736
+ for (let i = 0; i < keys2.length; ++i) {
22737
+ appendHeader(headers, keys2[i], object3[keys2[i]]);
22738
22738
  }
22739
22739
  } else {
22740
22740
  throw webidl.errors.conversionFailed({
@@ -26820,8 +26820,8 @@ var require_cachestorage = __commonJS({
26820
26820
  */
26821
26821
  async keys() {
26822
26822
  webidl.brandCheck(this, _CacheStorage);
26823
- const keys = this.#caches.keys();
26824
- return [...keys];
26823
+ const keys2 = this.#caches.keys();
26824
+ return [...keys2];
26825
26825
  }
26826
26826
  };
26827
26827
  Object.defineProperties(CacheStorage.prototype, {
@@ -29600,7 +29600,7 @@ var require_content_type = __commonJS({
29600
29600
  if (!type || !TYPE_REGEXP.test(type)) {
29601
29601
  throw new TypeError("invalid type");
29602
29602
  }
29603
- var string4 = type;
29603
+ var string5 = type;
29604
29604
  if (parameters && typeof parameters === "object") {
29605
29605
  var param;
29606
29606
  var params = Object.keys(parameters).sort();
@@ -29609,16 +29609,16 @@ var require_content_type = __commonJS({
29609
29609
  if (!TOKEN_REGEXP.test(param)) {
29610
29610
  throw new TypeError("invalid parameter name");
29611
29611
  }
29612
- string4 += "; " + param + "=" + qstring(parameters[param]);
29612
+ string5 += "; " + param + "=" + qstring(parameters[param]);
29613
29613
  }
29614
29614
  }
29615
- return string4;
29615
+ return string5;
29616
29616
  }
29617
- function parse2(string4) {
29618
- if (!string4) {
29617
+ function parse2(string5) {
29618
+ if (!string5) {
29619
29619
  throw new TypeError("argument string is required");
29620
29620
  }
29621
- var header = typeof string4 === "object" ? getcontenttype(string4) : string4;
29621
+ var header = typeof string5 === "object" ? getcontenttype(string5) : string5;
29622
29622
  if (typeof header !== "string") {
29623
29623
  throw new TypeError("argument string is required to be a string");
29624
29624
  }
@@ -33366,16 +33366,16 @@ async function seekEndOfCentralDirectory(reader, maxAppendedDataSize, remoteProb
33366
33366
  const searchLength = Math.min(size, maxAppendedDataSize == Infinity ? size : END_OF_CENTRAL_DIR_LENGTH + MAX_16_BITS + maxAppendedDataSize);
33367
33367
  let firstSignatureInfo, plausibleInfo;
33368
33368
  for await (const [searchView, searchOffset, searchArray, indexByte, offset] of scanEndOfCentralDirectory(reader, searchLength)) {
33369
- const record2 = getEndOfCentralDirectoryInfo(searchArray, indexByte, offset);
33369
+ const record3 = getEndOfCentralDirectoryInfo(searchArray, indexByte, offset);
33370
33370
  if (!firstSignatureInfo) {
33371
- firstSignatureInfo = record2;
33371
+ firstSignatureInfo = record3;
33372
33372
  }
33373
33373
  const reachability = await getCentralDirectoryReachability(reader, searchView, searchOffset, indexByte, offset, size, remoteProbeBudget);
33374
33374
  if (reachability == CENTRAL_DIRECTORY_REACHABLE) {
33375
- return record2;
33375
+ return record3;
33376
33376
  }
33377
33377
  if (reachability == CENTRAL_DIRECTORY_PLAUSIBLE && !plausibleInfo) {
33378
- plausibleInfo = record2;
33378
+ plausibleInfo = record3;
33379
33379
  }
33380
33380
  }
33381
33381
  return plausibleInfo || firstSignatureInfo;
@@ -38306,6 +38306,7 @@ var EResourceType;
38306
38306
  EResourceType2["CARD"] = "CARD";
38307
38307
  EResourceType2["TOOL"] = "TOOL";
38308
38308
  EResourceType2["WEB_SEARCH"] = "WEB_SEARCH";
38309
+ EResourceType2["MEMORY"] = "MEMORY";
38309
38310
  EResourceType2["FOLLOW_UP_QUESTIONS"] = "FOLLOW_UP_QUESTIONS";
38310
38311
  EResourceType2["CLIENT_CAPABILITY"] = "CLIENT_CAPABILITY";
38311
38312
  EResourceType2["HOOK"] = "HOOK";
@@ -38342,6 +38343,7 @@ var EHookExecutorName;
38342
38343
  EHookExecutorName2["ImageUnderstandingHookExecutor"] = "ImageUnderstandingHookExecutor";
38343
38344
  EHookExecutorName2["McpDiscoveryHookExecutor"] = "McpDiscoveryHookExecutor";
38344
38345
  EHookExecutorName2["CurrentTimeHookExecutor"] = "CurrentTimeHookExecutor";
38346
+ EHookExecutorName2["MemoryHookExecutor"] = "MemoryHookExecutor";
38345
38347
  })(EHookExecutorName || (EHookExecutorName = {}));
38346
38348
 
38347
38349
  // ../agent-a2ui-card-contract/dist/esm/protocol.js
@@ -38570,9 +38572,9 @@ function visitValue(value, propertyPath, context) {
38570
38572
  }
38571
38573
  if (!isPlainRecord(value))
38572
38574
  return;
38573
- const keys = Object.keys(value);
38574
- const isStrictBinding2 = keys.length === 1 && typeof value.path === "string";
38575
- const isDisplayBinding2 = DISPLAY_BINDING_PROPERTIES.has(propertyPath) && keys.every((key) => key === "path" || key === "fallback") && typeof value.path === "string";
38575
+ const keys2 = Object.keys(value);
38576
+ const isStrictBinding2 = keys2.length === 1 && typeof value.path === "string";
38577
+ const isDisplayBinding2 = DISPLAY_BINDING_PROPERTIES.has(propertyPath) && keys2.every((key) => key === "path" || key === "fallback") && typeof value.path === "string";
38576
38578
  if (isStrictBinding2 || isDisplayBinding2) {
38577
38579
  addOccurrence(value.path, propertyPath, bindingUsage(context.component.component, propertyPath), context);
38578
38580
  return;
@@ -38790,12 +38792,12 @@ function inferJsonSchemaFromValue(value) {
38790
38792
  };
38791
38793
  }
38792
38794
  if (typeof value === "object") {
38793
- const keys = Object.keys(value).sort();
38795
+ const keys2 = Object.keys(value).sort();
38794
38796
  return {
38795
38797
  type: "object",
38796
38798
  additionalProperties: false,
38797
- required: keys,
38798
- properties: Object.fromEntries(keys.map((key) => [key, inferJsonSchemaFromValue(value[key])]))
38799
+ required: keys2,
38800
+ properties: Object.fromEntries(keys2.map((key) => [key, inferJsonSchemaFromValue(value[key])]))
38799
38801
  };
38800
38802
  }
38801
38803
  if (typeof value === "number") {
@@ -39911,41 +39913,41 @@ function getA2UIV4ProtocolIssues(value, path26 = "card") {
39911
39913
  issues.push(issue2(instructionPath, "INVALID_A2UI_INSTRUCTION", "instruction must be an object"));
39912
39914
  continue;
39913
39915
  }
39914
- const keys = [
39916
+ const keys2 = [
39915
39917
  "createSurface",
39916
39918
  "updateComponents",
39917
39919
  "updateDataModel",
39918
39920
  "deleteSurface",
39919
39921
  "x2DeleteComponent"
39920
39922
  ].filter((key) => key in instruction);
39921
- if (keys.length !== 1) {
39923
+ if (keys2.length !== 1) {
39922
39924
  issues.push(issue2(instructionPath, "INVALID_A2UI_INSTRUCTION", "instruction must contain exactly one V4 operation"));
39923
39925
  continue;
39924
39926
  }
39925
- const payload = instruction[keys[0]];
39927
+ const payload = instruction[keys2[0]];
39926
39928
  if (!isPlainRecord(payload) || !isSafeIdentifier(payload.surfaceId)) {
39927
- issues.push(issue2(`${instructionPath}.${keys[0]}`, "INVALID_SURFACE_ID", "surfaceId must be a safe identifier"));
39929
+ issues.push(issue2(`${instructionPath}.${keys2[0]}`, "INVALID_SURFACE_ID", "surfaceId must be a safe identifier"));
39928
39930
  continue;
39929
39931
  }
39930
- if (keys[0] === "createSurface") {
39932
+ if (keys2[0] === "createSurface") {
39931
39933
  rejectUnknownKeys(payload, ["surfaceId", "catalogId", "theme", "x2-scene", "x2-presentation"], `${instructionPath}.createSurface`, issues);
39932
39934
  if (payload.catalogId !== LINKQUE_A2UI_V4_CATALOG_ID)
39933
39935
  issues.push(issue2(`${instructionPath}.createSurface.catalogId`, "INVALID_V4_CATALOG", `V4 surfaces must use ${LINKQUE_A2UI_V4_CATALOG_ID}`));
39934
39936
  surfaces.set(payload.surfaceId, surfaces.get(payload.surfaceId) ?? /* @__PURE__ */ new Map());
39935
39937
  createdSurfaces.add(payload.surfaceId);
39936
39938
  }
39937
- if (keys[0] === "updateComponents") {
39939
+ if (keys2[0] === "updateComponents") {
39938
39940
  rejectUnknownKeys(payload, ["surfaceId", "components"], `${instructionPath}.updateComponents`, issues);
39939
39941
  validateComponents(payload, instructionPath, surfaces, issues);
39940
39942
  }
39941
- if (keys[0] === "updateDataModel") {
39943
+ if (keys2[0] === "updateDataModel") {
39942
39944
  rejectUnknownKeys(payload, ["surfaceId", "path", "value"], `${instructionPath}.updateDataModel`, issues);
39943
39945
  if (typeof payload.path !== "string" || !isSafePath(payload.path) || !Object.prototype.hasOwnProperty.call(payload, "value"))
39944
39946
  issues.push(issue2(`${instructionPath}.updateDataModel`, "INVALID_DATA_MODEL_UPDATE", "updateDataModel requires a safe path and value"));
39945
39947
  }
39946
- if (keys[0] === "deleteSurface")
39948
+ if (keys2[0] === "deleteSurface")
39947
39949
  rejectUnknownKeys(payload, ["surfaceId"], `${instructionPath}.deleteSurface`, issues);
39948
- if (keys[0] === "x2DeleteComponent") {
39950
+ if (keys2[0] === "x2DeleteComponent") {
39949
39951
  rejectUnknownKeys(payload, ["surfaceId", "componentId"], `${instructionPath}.x2DeleteComponent`, issues);
39950
39952
  if (!isSafeIdentifier(payload.componentId))
39951
39953
  issues.push(issue2(`${instructionPath}.x2DeleteComponent.componentId`, "INVALID_COMPONENT_ID", "componentId must be a safe identifier"));
@@ -40051,8 +40053,8 @@ function validateProperty(value, schema2, path26, issues, propertyName) {
40051
40053
  function isDisplayBinding(value, stringOnly = false) {
40052
40054
  if (!isPlainRecord(value) || typeof value.path !== "string" || !isSafePath(value.path))
40053
40055
  return false;
40054
- const keys = Object.keys(value);
40055
- return keys.every((key) => key === "path" || key === "fallback") && (value.fallback === void 0 || typeof value.fallback === "string" || !stringOnly && typeof value.fallback === "number" && Number.isFinite(value.fallback));
40056
+ const keys2 = Object.keys(value);
40057
+ return keys2.every((key) => key === "path" || key === "fallback") && (value.fallback === void 0 || typeof value.fallback === "string" || !stringOnly && typeof value.fallback === "number" && Number.isFinite(value.fallback));
40056
40058
  }
40057
40059
  function isStrictBinding(value) {
40058
40060
  return isPlainRecord(value) && Object.keys(value).length === 1 && typeof value.path === "string" && isSafePath(value.path);
@@ -40147,8 +40149,8 @@ function validateActionDynamicValue(value, path26, issues) {
40147
40149
  }
40148
40150
  if (!isPlainRecord(value))
40149
40151
  return;
40150
- const keys = Object.keys(value);
40151
- if (keys.includes("path") && keys.every((key) => key === "path" || key === "fallback")) {
40152
+ const keys2 = Object.keys(value);
40153
+ if (keys2.includes("path") && keys2.every((key) => key === "path" || key === "fallback")) {
40152
40154
  if (!isStrictBinding(value))
40153
40155
  issues.push(issue2(path26, "INVALID_ACTION_BINDING", "action values require a strict binding without fallback"));
40154
40156
  return;
@@ -40259,41 +40261,41 @@ function validateReferences(surfaces, path26, issues) {
40259
40261
  if (!components.has("root"))
40260
40262
  issues.push(issue2(`${path26}.surfaces.${surfaceId}`, "MISSING_ROOT_COMPONENT", "surface must define root"));
40261
40263
  const edges = /* @__PURE__ */ new Map();
40262
- for (const [id, component] of components) {
40264
+ for (const [id2, component] of components) {
40263
40265
  const refs = getComponentReferences(component);
40264
- edges.set(id, refs);
40266
+ edges.set(id2, refs);
40265
40267
  refs.forEach((ref) => {
40266
40268
  if (!components.has(ref))
40267
- issues.push(issue2(`${path26}.surfaces.${surfaceId}.components.${id}.${component.child !== void 0 ? "child" : "children"}`, "MISSING_COMPONENT_REFERENCE", `component ${ref} does not exist`));
40269
+ issues.push(issue2(`${path26}.surfaces.${surfaceId}.components.${id2}.${component.child !== void 0 ? "child" : "children"}`, "MISSING_COMPONENT_REFERENCE", `component ${ref} does not exist`));
40268
40270
  });
40269
40271
  if ((component.component === "Button" || component.component === "Card" && component.action !== void 0) && refs.some((ref) => hasInteractiveDescendant(ref, components, /* @__PURE__ */ new Set())))
40270
- issues.push(issue2(`${path26}.surfaces.${surfaceId}.components.${id}.${component.child !== void 0 ? "child" : "children"}`, "NESTED_INTERACTION", "action components cannot contain interactive descendants"));
40272
+ issues.push(issue2(`${path26}.surfaces.${surfaceId}.components.${id2}.${component.child !== void 0 ? "child" : "children"}`, "NESTED_INTERACTION", "action components cannot contain interactive descendants"));
40271
40273
  collectSurfaceOpenReferences(component.action).forEach((targetSurfaceId) => {
40272
40274
  if (!surfaces.has(targetSurfaceId))
40273
- issues.push(issue2(`${path26}.surfaces.${surfaceId}.components.${id}.action`, "MISSING_SURFACE_REFERENCE", `surface ${targetSurfaceId} does not exist`));
40275
+ issues.push(issue2(`${path26}.surfaces.${surfaceId}.components.${id2}.action`, "MISSING_SURFACE_REFERENCE", `surface ${targetSurfaceId} does not exist`));
40274
40276
  });
40275
40277
  }
40276
- components.forEach((component, id) => {
40278
+ components.forEach((component, id2) => {
40277
40279
  if (component.grow === void 0)
40278
40280
  return;
40279
- const parents = [...components.values()].filter((parent) => getComponentReferences(parent).includes(id));
40280
- if (id === "root" || parents.length === 0 || parents.some((parent) => parent.component !== "Row" && parent.component !== "Column")) {
40281
- issues.push(issue2(`${path26}.surfaces.${surfaceId}.components.${id}.grow`, "INVALID_LAYOUT_PARENT", "grow requires a direct Row or Column parent in every occurrence"));
40281
+ const parents = [...components.values()].filter((parent) => getComponentReferences(parent).includes(id2));
40282
+ if (id2 === "root" || parents.length === 0 || parents.some((parent) => parent.component !== "Row" && parent.component !== "Column")) {
40283
+ issues.push(issue2(`${path26}.surfaces.${surfaceId}.components.${id2}.grow`, "INVALID_LAYOUT_PARENT", "grow requires a direct Row or Column parent in every occurrence"));
40282
40284
  }
40283
40285
  });
40284
40286
  const visiting = /* @__PURE__ */ new Set();
40285
40287
  const visited = /* @__PURE__ */ new Set();
40286
- const walk = (id) => {
40287
- if (visiting.has(id))
40288
- return void issues.push(issue2(`${path26}.surfaces.${surfaceId}.components.${id}`, "CIRCULAR_COMPONENT_REFERENCE", "component references must not contain a cycle"));
40289
- if (visited.has(id))
40288
+ const walk = (id2) => {
40289
+ if (visiting.has(id2))
40290
+ return void issues.push(issue2(`${path26}.surfaces.${surfaceId}.components.${id2}`, "CIRCULAR_COMPONENT_REFERENCE", "component references must not contain a cycle"));
40291
+ if (visited.has(id2))
40290
40292
  return;
40291
- visiting.add(id);
40292
- (edges.get(id) ?? []).forEach(walk);
40293
- visiting.delete(id);
40294
- visited.add(id);
40293
+ visiting.add(id2);
40294
+ (edges.get(id2) ?? []).forEach(walk);
40295
+ visiting.delete(id2);
40296
+ visited.add(id2);
40295
40297
  };
40296
- components.forEach((_2, id) => walk(id));
40298
+ components.forEach((_2, id2) => walk(id2));
40297
40299
  }
40298
40300
  }
40299
40301
  function collectSurfaceOpenReferences(value, result = /* @__PURE__ */ new Set()) {
@@ -40319,11 +40321,11 @@ function getComponentReferences(component) {
40319
40321
  return children.filter((entry) => typeof entry === "string");
40320
40322
  return isPlainRecord(children) && typeof children.componentId === "string" ? [children.componentId] : [];
40321
40323
  }
40322
- function hasInteractiveDescendant(id, components, visited) {
40323
- if (visited.has(id))
40324
+ function hasInteractiveDescendant(id2, components, visited) {
40325
+ if (visited.has(id2))
40324
40326
  return false;
40325
- visited.add(id);
40326
- const component = components.get(id);
40327
+ visited.add(id2);
40328
+ const component = components.get(id2);
40327
40329
  if (!component)
40328
40330
  return false;
40329
40331
  if (component.component === "Button" || component.action !== void 0 || ["TextField", "ChoicePicker", "Stepper"].includes(String(component.component)))
@@ -40428,7 +40430,7 @@ function getPersistedV4ProtocolIssues(card, path26) {
40428
40430
  const createIds = creates.flatMap((instruction) => "createSurface" in instruction ? [instruction.createSurface.surfaceId] : []);
40429
40431
  const updateIds = updates.flatMap((instruction) => "updateComponents" in instruction ? [instruction.updateComponents.surfaceId] : []);
40430
40432
  for (const surfaceId of /* @__PURE__ */ new Set([...createIds, ...updateIds])) {
40431
- if (createIds.filter((id) => id === surfaceId).length !== 1 || updateIds.filter((id) => id === surfaceId).length !== 1) {
40433
+ if (createIds.filter((id2) => id2 === surfaceId).length !== 1 || updateIds.filter((id2) => id2 === surfaceId).length !== 1) {
40432
40434
  issues.push(issue2(`${path26}.surfaces.${surfaceId}`, "SURFACE_INSTRUCTION_MISMATCH", "each persisted Surface requires exactly one create and one component update"));
40433
40435
  }
40434
40436
  }
@@ -42922,13 +42924,13 @@ var util;
42922
42924
  });
42923
42925
  };
42924
42926
  util2.objectKeys = typeof Object.keys === "function" ? (obj) => Object.keys(obj) : (object3) => {
42925
- const keys = [];
42927
+ const keys2 = [];
42926
42928
  for (const key in object3) {
42927
42929
  if (Object.prototype.hasOwnProperty.call(object3, key)) {
42928
- keys.push(key);
42930
+ keys2.push(key);
42929
42931
  }
42930
42932
  }
42931
- return keys;
42933
+ return keys2;
42932
42934
  };
42933
42935
  util2.find = (arr, checker) => {
42934
42936
  for (const item of arr) {
@@ -45156,8 +45158,8 @@ var ZodObject = class _ZodObject extends ZodType {
45156
45158
  if (this._cached !== null)
45157
45159
  return this._cached;
45158
45160
  const shape = this._def.shape();
45159
- const keys = util.objectKeys(shape);
45160
- this._cached = { shape, keys };
45161
+ const keys2 = util.objectKeys(shape);
45162
+ this._cached = { shape, keys: keys2 };
45161
45163
  return this._cached;
45162
45164
  }
45163
45165
  _parse(input) {
@@ -47429,6 +47431,24 @@ var LINKQUEGW_EVENT_TYPE_BY_STAGE = {
47429
47431
  [EHookStage.RUN_READ]: "RUN_READ"
47430
47432
  };
47431
47433
 
47434
+ // ../linkque-agent-runtime/dist/esm/core/memoryAdapter.js
47435
+ var EMemoryType;
47436
+ (function(EMemoryType2) {
47437
+ EMemoryType2["CONVERSATION"] = "conversation";
47438
+ EMemoryType2["LONG_TERM"] = "long_term";
47439
+ EMemoryType2["SHORT_TERM"] = "short_term";
47440
+ EMemoryType2["WORKING"] = "working";
47441
+ EMemoryType2["PREFERENCE"] = "preference";
47442
+ EMemoryType2["FACT"] = "fact";
47443
+ EMemoryType2["ACTION"] = "action";
47444
+ })(EMemoryType || (EMemoryType = {}));
47445
+ var EMemorySummaryStatus;
47446
+ (function(EMemorySummaryStatus2) {
47447
+ EMemorySummaryStatus2["COMPLETED"] = "completed";
47448
+ EMemorySummaryStatus2["FAILED"] = "failed";
47449
+ EMemorySummaryStatus2["CANCELLED"] = "cancelled";
47450
+ })(EMemorySummaryStatus || (EMemorySummaryStatus = {}));
47451
+
47432
47452
  // ../../node_modules/zod/v4/core/core.js
47433
47453
  var NEVER2 = Object.freeze({
47434
47454
  status: "aborted"
@@ -47631,12 +47651,12 @@ function getElementAtPath(obj, path26) {
47631
47651
  return path26.reduce((acc, key) => acc?.[key], obj);
47632
47652
  }
47633
47653
  function promiseAllObject(promisesObj) {
47634
- const keys = Object.keys(promisesObj);
47635
- const promises = keys.map((key) => promisesObj[key]);
47654
+ const keys2 = Object.keys(promisesObj);
47655
+ const promises = keys2.map((key) => promisesObj[key]);
47636
47656
  return Promise.all(promises).then((results) => {
47637
47657
  const resolvedObj = {};
47638
- for (let i = 0; i < keys.length; i++) {
47639
- resolvedObj[keys[i]] = results[i];
47658
+ for (let i = 0; i < keys2.length; i++) {
47659
+ resolvedObj[keys2[i]] = results[i];
47640
47660
  }
47641
47661
  return resolvedObj;
47642
47662
  });
@@ -48182,7 +48202,7 @@ function datetime(args) {
48182
48202
  const timeRegex2 = `${time3}(?:${opts.join("|")})`;
48183
48203
  return new RegExp(`^${dateSource}T(?:${timeRegex2})$`);
48184
48204
  }
48185
- var string = (params) => {
48205
+ var string2 = (params) => {
48186
48206
  const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
48187
48207
  return new RegExp(`^${regex}$`);
48188
48208
  };
@@ -48709,7 +48729,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
48709
48729
  });
48710
48730
  var $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
48711
48731
  $ZodType.init(inst, def);
48712
- inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string(inst._zod.bag);
48732
+ inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string2(inst._zod.bag);
48713
48733
  inst._zod.parse = (payload, _2) => {
48714
48734
  if (def.coerce)
48715
48735
  try {
@@ -49202,8 +49222,8 @@ function handleOptionalObjectResult(result, final, key, input) {
49202
49222
  var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
49203
49223
  $ZodType.init(inst, def);
49204
49224
  const _normalized = cached(() => {
49205
- const keys = Object.keys(def.shape);
49206
- for (const k2 of keys) {
49225
+ const keys2 = Object.keys(def.shape);
49226
+ for (const k2 of keys2) {
49207
49227
  if (!(def.shape[k2] instanceof $ZodType)) {
49208
49228
  throw new Error(`Invalid element at key "${k2}": expected a Zod schema`);
49209
49229
  }
@@ -49211,9 +49231,9 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
49211
49231
  const okeys = optionalKeys(def.shape);
49212
49232
  return {
49213
49233
  shape: def.shape,
49214
- keys,
49215
- keySet: new Set(keys),
49216
- numKeys: keys.length,
49234
+ keys: keys2,
49235
+ keySet: new Set(keys2),
49236
+ numKeys: keys2.length,
49217
49237
  optionalKeys: new Set(okeys)
49218
49238
  };
49219
49239
  });
@@ -49246,38 +49266,38 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
49246
49266
  doc.write(`const newResult = {}`);
49247
49267
  for (const key of normalized.keys) {
49248
49268
  if (normalized.optionalKeys.has(key)) {
49249
- const id = ids[key];
49250
- doc.write(`const ${id} = ${parseStr(key)};`);
49269
+ const id2 = ids[key];
49270
+ doc.write(`const ${id2} = ${parseStr(key)};`);
49251
49271
  const k2 = esc(key);
49252
49272
  doc.write(`
49253
- if (${id}.issues.length) {
49273
+ if (${id2}.issues.length) {
49254
49274
  if (input[${k2}] === undefined) {
49255
49275
  if (${k2} in input) {
49256
49276
  newResult[${k2}] = undefined;
49257
49277
  }
49258
49278
  } else {
49259
49279
  payload.issues = payload.issues.concat(
49260
- ${id}.issues.map((iss) => ({
49280
+ ${id2}.issues.map((iss) => ({
49261
49281
  ...iss,
49262
49282
  path: iss.path ? [${k2}, ...iss.path] : [${k2}],
49263
49283
  }))
49264
49284
  );
49265
49285
  }
49266
- } else if (${id}.value === undefined) {
49286
+ } else if (${id2}.value === undefined) {
49267
49287
  if (${k2} in input) newResult[${k2}] = undefined;
49268
49288
  } else {
49269
- newResult[${k2}] = ${id}.value;
49289
+ newResult[${k2}] = ${id2}.value;
49270
49290
  }
49271
49291
  `);
49272
49292
  } else {
49273
- const id = ids[key];
49274
- doc.write(`const ${id} = ${parseStr(key)};`);
49293
+ const id2 = ids[key];
49294
+ doc.write(`const ${id2} = ${parseStr(key)};`);
49275
49295
  doc.write(`
49276
- if (${id}.issues.length) payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
49296
+ if (${id2}.issues.length) payload.issues = payload.issues.concat(${id2}.issues.map(iss => ({
49277
49297
  ...iss,
49278
49298
  path: iss.path ? [${esc(key)}, ...iss.path] : [${esc(key)}]
49279
49299
  })));`);
49280
- doc.write(`newResult[${esc(key)}] = ${id}.value`);
49300
+ doc.write(`newResult[${esc(key)}] = ${id2}.value`);
49281
49301
  }
49282
49302
  }
49283
49303
  doc.write(`payload.value = newResult;`);
@@ -50757,7 +50777,7 @@ var ZodString2 = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
50757
50777
  inst.time = (params) => inst.check(time2(params));
50758
50778
  inst.duration = (params) => inst.check(duration2(params));
50759
50779
  });
50760
- function string2(params) {
50780
+ function string3(params) {
50761
50781
  return _string(ZodString2, params);
50762
50782
  }
50763
50783
  var ZodStringFormat = /* @__PURE__ */ $constructor("ZodStringFormat", (inst, def) => {
@@ -51038,7 +51058,7 @@ var ZodRecord2 = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
51038
51058
  inst.keyType = def.keyType;
51039
51059
  inst.valueType = def.valueType;
51040
51060
  });
51041
- function record(keyType, valueType2, params) {
51061
+ function record2(keyType, valueType2, params) {
51042
51062
  return new ZodRecord2({
51043
51063
  type: "record",
51044
51064
  keyType,
@@ -51051,11 +51071,11 @@ var ZodEnum2 = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
51051
51071
  ZodType2.init(inst, def);
51052
51072
  inst.enum = def.entries;
51053
51073
  inst.options = Object.values(def.entries);
51054
- const keys = new Set(Object.keys(def.entries));
51074
+ const keys2 = new Set(Object.keys(def.entries));
51055
51075
  inst.extract = (values, params) => {
51056
51076
  const newEntries = {};
51057
51077
  for (const value of values) {
51058
- if (keys.has(value)) {
51078
+ if (keys2.has(value)) {
51059
51079
  newEntries[value] = def.entries[value];
51060
51080
  } else
51061
51081
  throw new Error(`Key ${value} not found in enum`);
@@ -51070,7 +51090,7 @@ var ZodEnum2 = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
51070
51090
  inst.exclude = (values, params) => {
51071
51091
  const newEntries = { ...def.entries };
51072
51092
  for (const value of values) {
51073
- if (keys.has(value)) {
51093
+ if (keys2.has(value)) {
51074
51094
  delete newEntries[value];
51075
51095
  } else
51076
51096
  throw new Error(`Key ${value} not found in enum`);
@@ -51310,9 +51330,9 @@ __export(coerce_exports, {
51310
51330
  boolean: () => boolean3,
51311
51331
  date: () => date3,
51312
51332
  number: () => number3,
51313
- string: () => string3
51333
+ string: () => string4
51314
51334
  });
51315
- function string3(params) {
51335
+ function string4(params) {
51316
51336
  return _coercedString(ZodString2, params);
51317
51337
  }
51318
51338
  function number3(params) {
@@ -51335,8 +51355,8 @@ config(en_default2());
51335
51355
  var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
51336
51356
  var JSONRPC_VERSION = "2.0";
51337
51357
  var AssertObjectSchema = custom2((v2) => v2 !== null && (typeof v2 === "object" || typeof v2 === "function"));
51338
- var ProgressTokenSchema = union([string2(), number2().int()]);
51339
- var CursorSchema = string2();
51358
+ var ProgressTokenSchema = union([string3(), number2().int()]);
51359
+ var CursorSchema = string3();
51340
51360
  var TaskCreationParamsSchema = looseObject({
51341
51361
  /**
51342
51362
  * Requested duration in milliseconds to retain task from creation.
@@ -51351,7 +51371,7 @@ var TaskMetadataSchema = object({
51351
51371
  ttl: number2().optional()
51352
51372
  });
51353
51373
  var RelatedTaskMetadataSchema = object({
51354
- taskId: string2()
51374
+ taskId: string3()
51355
51375
  });
51356
51376
  var RequestMetaSchema = looseObject({
51357
51377
  /**
@@ -51381,7 +51401,7 @@ var TaskAugmentedRequestParamsSchema = BaseRequestParamsSchema.extend({
51381
51401
  task: TaskMetadataSchema.optional()
51382
51402
  });
51383
51403
  var RequestSchema = object({
51384
- method: string2(),
51404
+ method: string3(),
51385
51405
  params: BaseRequestParamsSchema.loose().optional()
51386
51406
  });
51387
51407
  var NotificationsParamsSchema = object({
@@ -51392,7 +51412,7 @@ var NotificationsParamsSchema = object({
51392
51412
  _meta: RequestMetaSchema.optional()
51393
51413
  });
51394
51414
  var NotificationSchema = object({
51395
- method: string2(),
51415
+ method: string3(),
51396
51416
  params: NotificationsParamsSchema.loose().optional()
51397
51417
  });
51398
51418
  var ResultSchema = looseObject({
@@ -51402,7 +51422,7 @@ var ResultSchema = looseObject({
51402
51422
  */
51403
51423
  _meta: RequestMetaSchema.optional()
51404
51424
  });
51405
- var RequestIdSchema = union([string2(), number2().int()]);
51425
+ var RequestIdSchema = union([string3(), number2().int()]);
51406
51426
  var JSONRPCRequestSchema = object({
51407
51427
  jsonrpc: literal(JSONRPC_VERSION),
51408
51428
  id: RequestIdSchema,
@@ -51439,7 +51459,7 @@ var JSONRPCErrorResponseSchema = object({
51439
51459
  /**
51440
51460
  * A short description of the error. The message SHOULD be limited to a concise single sentence.
51441
51461
  */
51442
- message: string2(),
51462
+ message: string3(),
51443
51463
  /**
51444
51464
  * Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.).
51445
51465
  */
@@ -51464,7 +51484,7 @@ var CancelledNotificationParamsSchema = NotificationsParamsSchema.extend({
51464
51484
  /**
51465
51485
  * An optional string describing the reason for the cancellation. This MAY be logged or presented to the user.
51466
51486
  */
51467
- reason: string2().optional()
51487
+ reason: string3().optional()
51468
51488
  });
51469
51489
  var CancelledNotificationSchema = NotificationSchema.extend({
51470
51490
  method: literal("notifications/cancelled"),
@@ -51474,18 +51494,18 @@ var IconSchema = object({
51474
51494
  /**
51475
51495
  * URL or data URI for the icon.
51476
51496
  */
51477
- src: string2(),
51497
+ src: string3(),
51478
51498
  /**
51479
51499
  * Optional MIME type for the icon.
51480
51500
  */
51481
- mimeType: string2().optional(),
51501
+ mimeType: string3().optional(),
51482
51502
  /**
51483
51503
  * Optional array of strings that specify sizes at which the icon can be used.
51484
51504
  * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
51485
51505
  *
51486
51506
  * If not provided, the client should assume that the icon can be used at any size.
51487
51507
  */
51488
- sizes: array(string2()).optional(),
51508
+ sizes: array(string3()).optional(),
51489
51509
  /**
51490
51510
  * Optional specifier for the theme this icon is designed for. `light` indicates
51491
51511
  * the icon is designed to be used with a light background, and `dark` indicates
@@ -51511,7 +51531,7 @@ var IconsSchema = object({
51511
51531
  });
51512
51532
  var BaseMetadataSchema = object({
51513
51533
  /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
51514
- name: string2(),
51534
+ name: string3(),
51515
51535
  /**
51516
51536
  * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
51517
51537
  * even by those unfamiliar with domain-specific terminology.
@@ -51520,16 +51540,16 @@ var BaseMetadataSchema = object({
51520
51540
  * where `annotations.title` should be given precedence over using `name`,
51521
51541
  * if present).
51522
51542
  */
51523
- title: string2().optional()
51543
+ title: string3().optional()
51524
51544
  });
51525
51545
  var ImplementationSchema = BaseMetadataSchema.extend({
51526
51546
  ...BaseMetadataSchema.shape,
51527
51547
  ...IconsSchema.shape,
51528
- version: string2(),
51548
+ version: string3(),
51529
51549
  /**
51530
51550
  * An optional URL of the website for this implementation.
51531
51551
  */
51532
- websiteUrl: string2().optional(),
51552
+ websiteUrl: string3().optional(),
51533
51553
  /**
51534
51554
  * An optional human-readable description of what this implementation does.
51535
51555
  *
@@ -51537,11 +51557,11 @@ var ImplementationSchema = BaseMetadataSchema.extend({
51537
51557
  * and capabilities. For example, a server might describe the types of resources
51538
51558
  * or tools it provides, while a client might describe its intended use case.
51539
51559
  */
51540
- description: string2().optional()
51560
+ description: string3().optional()
51541
51561
  });
51542
51562
  var FormElicitationCapabilitySchema = intersection(object({
51543
51563
  applyDefaults: boolean2().optional()
51544
- }), record(string2(), unknown()));
51564
+ }), record2(string3(), unknown()));
51545
51565
  var ElicitationCapabilitySchema = preprocess((value) => {
51546
51566
  if (value && typeof value === "object" && !Array.isArray(value)) {
51547
51567
  if (Object.keys(value).length === 0) {
@@ -51552,7 +51572,7 @@ var ElicitationCapabilitySchema = preprocess((value) => {
51552
51572
  }, intersection(object({
51553
51573
  form: FormElicitationCapabilitySchema.optional(),
51554
51574
  url: AssertObjectSchema.optional()
51555
- }), record(string2(), unknown()).optional()));
51575
+ }), record2(string3(), unknown()).optional()));
51556
51576
  var ClientTasksCapabilitySchema = looseObject({
51557
51577
  /**
51558
51578
  * Present if the client supports listing tasks.
@@ -51605,7 +51625,7 @@ var ClientCapabilitiesSchema = object({
51605
51625
  /**
51606
51626
  * Experimental, non-standard capabilities that the client supports.
51607
51627
  */
51608
- experimental: record(string2(), AssertObjectSchema).optional(),
51628
+ experimental: record2(string3(), AssertObjectSchema).optional(),
51609
51629
  /**
51610
51630
  * Present if the client supports sampling from an LLM.
51611
51631
  */
@@ -51640,13 +51660,13 @@ var ClientCapabilitiesSchema = object({
51640
51660
  /**
51641
51661
  * Extensions that the client supports. Keys are extension identifiers (vendor-prefix/extension-name).
51642
51662
  */
51643
- extensions: record(string2(), AssertObjectSchema).optional()
51663
+ extensions: record2(string3(), AssertObjectSchema).optional()
51644
51664
  });
51645
51665
  var InitializeRequestParamsSchema = BaseRequestParamsSchema.extend({
51646
51666
  /**
51647
51667
  * The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well.
51648
51668
  */
51649
- protocolVersion: string2(),
51669
+ protocolVersion: string3(),
51650
51670
  capabilities: ClientCapabilitiesSchema,
51651
51671
  clientInfo: ImplementationSchema
51652
51672
  });
@@ -51658,7 +51678,7 @@ var ServerCapabilitiesSchema = object({
51658
51678
  /**
51659
51679
  * Experimental, non-standard capabilities that the server supports.
51660
51680
  */
51661
- experimental: record(string2(), AssertObjectSchema).optional(),
51681
+ experimental: record2(string3(), AssertObjectSchema).optional(),
51662
51682
  /**
51663
51683
  * Present if the server supports sending log messages to the client.
51664
51684
  */
@@ -51705,13 +51725,13 @@ var ServerCapabilitiesSchema = object({
51705
51725
  /**
51706
51726
  * Extensions that the server supports. Keys are extension identifiers (vendor-prefix/extension-name).
51707
51727
  */
51708
- extensions: record(string2(), AssertObjectSchema).optional()
51728
+ extensions: record2(string3(), AssertObjectSchema).optional()
51709
51729
  });
51710
51730
  var InitializeResultSchema = ResultSchema.extend({
51711
51731
  /**
51712
51732
  * The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect.
51713
51733
  */
51714
- protocolVersion: string2(),
51734
+ protocolVersion: string3(),
51715
51735
  capabilities: ServerCapabilitiesSchema,
51716
51736
  serverInfo: ImplementationSchema,
51717
51737
  /**
@@ -51719,7 +51739,7 @@ var InitializeResultSchema = ResultSchema.extend({
51719
51739
  *
51720
51740
  * This can be used by clients to improve the LLM's understanding of available tools, resources, etc. It can be thought of like a "hint" to the model. For example, this information MAY be added to the system prompt.
51721
51741
  */
51722
- instructions: string2().optional()
51742
+ instructions: string3().optional()
51723
51743
  });
51724
51744
  var InitializedNotificationSchema = NotificationSchema.extend({
51725
51745
  method: literal("notifications/initialized"),
@@ -51741,7 +51761,7 @@ var ProgressSchema = object({
51741
51761
  /**
51742
51762
  * An optional message describing the current progress.
51743
51763
  */
51744
- message: optional(string2())
51764
+ message: optional(string3())
51745
51765
  });
51746
51766
  var ProgressNotificationParamsSchema = object({
51747
51767
  ...NotificationsParamsSchema.shape,
@@ -51774,7 +51794,7 @@ var PaginatedResultSchema = ResultSchema.extend({
51774
51794
  });
51775
51795
  var TaskStatusSchema = _enum(["working", "input_required", "completed", "failed", "cancelled"]);
51776
51796
  var TaskSchema = object({
51777
- taskId: string2(),
51797
+ taskId: string3(),
51778
51798
  status: TaskStatusSchema,
51779
51799
  /**
51780
51800
  * Time in milliseconds to keep task results available after completion.
@@ -51784,16 +51804,16 @@ var TaskSchema = object({
51784
51804
  /**
51785
51805
  * ISO 8601 timestamp when the task was created.
51786
51806
  */
51787
- createdAt: string2(),
51807
+ createdAt: string3(),
51788
51808
  /**
51789
51809
  * ISO 8601 timestamp when the task was last updated.
51790
51810
  */
51791
- lastUpdatedAt: string2(),
51811
+ lastUpdatedAt: string3(),
51792
51812
  pollInterval: optional(number2()),
51793
51813
  /**
51794
51814
  * Optional diagnostic message for failed tasks or other status information.
51795
51815
  */
51796
- statusMessage: optional(string2())
51816
+ statusMessage: optional(string3())
51797
51817
  });
51798
51818
  var CreateTaskResultSchema = ResultSchema.extend({
51799
51819
  task: TaskSchema
@@ -51806,14 +51826,14 @@ var TaskStatusNotificationSchema = NotificationSchema.extend({
51806
51826
  var GetTaskRequestSchema = RequestSchema.extend({
51807
51827
  method: literal("tasks/get"),
51808
51828
  params: BaseRequestParamsSchema.extend({
51809
- taskId: string2()
51829
+ taskId: string3()
51810
51830
  })
51811
51831
  });
51812
51832
  var GetTaskResultSchema = ResultSchema.merge(TaskSchema);
51813
51833
  var GetTaskPayloadRequestSchema = RequestSchema.extend({
51814
51834
  method: literal("tasks/result"),
51815
51835
  params: BaseRequestParamsSchema.extend({
51816
- taskId: string2()
51836
+ taskId: string3()
51817
51837
  })
51818
51838
  });
51819
51839
  var GetTaskPayloadResultSchema = ResultSchema.loose();
@@ -51826,7 +51846,7 @@ var ListTasksResultSchema = PaginatedResultSchema.extend({
51826
51846
  var CancelTaskRequestSchema = RequestSchema.extend({
51827
51847
  method: literal("tasks/cancel"),
51828
51848
  params: BaseRequestParamsSchema.extend({
51829
- taskId: string2()
51849
+ taskId: string3()
51830
51850
  })
51831
51851
  });
51832
51852
  var CancelTaskResultSchema = ResultSchema.merge(TaskSchema);
@@ -51834,24 +51854,24 @@ var ResourceContentsSchema = object({
51834
51854
  /**
51835
51855
  * The URI of this resource.
51836
51856
  */
51837
- uri: string2(),
51857
+ uri: string3(),
51838
51858
  /**
51839
51859
  * The MIME type of this resource, if known.
51840
51860
  */
51841
- mimeType: optional(string2()),
51861
+ mimeType: optional(string3()),
51842
51862
  /**
51843
51863
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
51844
51864
  * for notes on _meta usage.
51845
51865
  */
51846
- _meta: record(string2(), unknown()).optional()
51866
+ _meta: record2(string3(), unknown()).optional()
51847
51867
  });
51848
51868
  var TextResourceContentsSchema = ResourceContentsSchema.extend({
51849
51869
  /**
51850
51870
  * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
51851
51871
  */
51852
- text: string2()
51872
+ text: string3()
51853
51873
  });
51854
- var Base64Schema = string2().refine((val) => {
51874
+ var Base64Schema = string3().refine((val) => {
51855
51875
  try {
51856
51876
  atob(val);
51857
51877
  return true;
@@ -51886,17 +51906,17 @@ var ResourceSchema = object({
51886
51906
  /**
51887
51907
  * The URI of this resource.
51888
51908
  */
51889
- uri: string2(),
51909
+ uri: string3(),
51890
51910
  /**
51891
51911
  * A description of what this resource represents.
51892
51912
  *
51893
51913
  * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
51894
51914
  */
51895
- description: optional(string2()),
51915
+ description: optional(string3()),
51896
51916
  /**
51897
51917
  * The MIME type of this resource, if known.
51898
51918
  */
51899
- mimeType: optional(string2()),
51919
+ mimeType: optional(string3()),
51900
51920
  /**
51901
51921
  * The size of the raw resource content, in bytes (i.e., before base64 encoding or any tokenization), if known.
51902
51922
  *
@@ -51919,17 +51939,17 @@ var ResourceTemplateSchema = object({
51919
51939
  /**
51920
51940
  * A URI template (according to RFC 6570) that can be used to construct resource URIs.
51921
51941
  */
51922
- uriTemplate: string2(),
51942
+ uriTemplate: string3(),
51923
51943
  /**
51924
51944
  * A description of what this template is for.
51925
51945
  *
51926
51946
  * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
51927
51947
  */
51928
- description: optional(string2()),
51948
+ description: optional(string3()),
51929
51949
  /**
51930
51950
  * The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type.
51931
51951
  */
51932
- mimeType: optional(string2()),
51952
+ mimeType: optional(string3()),
51933
51953
  /**
51934
51954
  * Optional annotations for the client.
51935
51955
  */
@@ -51958,7 +51978,7 @@ var ResourceRequestParamsSchema = BaseRequestParamsSchema.extend({
51958
51978
  *
51959
51979
  * @format uri
51960
51980
  */
51961
- uri: string2()
51981
+ uri: string3()
51962
51982
  });
51963
51983
  var ReadResourceRequestParamsSchema = ResourceRequestParamsSchema;
51964
51984
  var ReadResourceRequestSchema = RequestSchema.extend({
@@ -51986,7 +52006,7 @@ var ResourceUpdatedNotificationParamsSchema = NotificationsParamsSchema.extend({
51986
52006
  /**
51987
52007
  * The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to.
51988
52008
  */
51989
- uri: string2()
52009
+ uri: string3()
51990
52010
  });
51991
52011
  var ResourceUpdatedNotificationSchema = NotificationSchema.extend({
51992
52012
  method: literal("notifications/resources/updated"),
@@ -51996,11 +52016,11 @@ var PromptArgumentSchema = object({
51996
52016
  /**
51997
52017
  * The name of the argument.
51998
52018
  */
51999
- name: string2(),
52019
+ name: string3(),
52000
52020
  /**
52001
52021
  * A human-readable description of the argument.
52002
52022
  */
52003
- description: optional(string2()),
52023
+ description: optional(string3()),
52004
52024
  /**
52005
52025
  * Whether this argument must be provided.
52006
52026
  */
@@ -52012,7 +52032,7 @@ var PromptSchema = object({
52012
52032
  /**
52013
52033
  * An optional description of what this prompt provides
52014
52034
  */
52015
- description: optional(string2()),
52035
+ description: optional(string3()),
52016
52036
  /**
52017
52037
  * A list of arguments to use for templating the prompt.
52018
52038
  */
@@ -52033,11 +52053,11 @@ var GetPromptRequestParamsSchema = BaseRequestParamsSchema.extend({
52033
52053
  /**
52034
52054
  * The name of the prompt or prompt template.
52035
52055
  */
52036
- name: string2(),
52056
+ name: string3(),
52037
52057
  /**
52038
52058
  * Arguments to use for templating the prompt.
52039
52059
  */
52040
- arguments: record(string2(), string2()).optional()
52060
+ arguments: record2(string3(), string3()).optional()
52041
52061
  });
52042
52062
  var GetPromptRequestSchema = RequestSchema.extend({
52043
52063
  method: literal("prompts/get"),
@@ -52048,7 +52068,7 @@ var TextContentSchema = object({
52048
52068
  /**
52049
52069
  * The text content of the message.
52050
52070
  */
52051
- text: string2(),
52071
+ text: string3(),
52052
52072
  /**
52053
52073
  * Optional annotations for the client.
52054
52074
  */
@@ -52057,7 +52077,7 @@ var TextContentSchema = object({
52057
52077
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
52058
52078
  * for notes on _meta usage.
52059
52079
  */
52060
- _meta: record(string2(), unknown()).optional()
52080
+ _meta: record2(string3(), unknown()).optional()
52061
52081
  });
52062
52082
  var ImageContentSchema = object({
52063
52083
  type: literal("image"),
@@ -52068,7 +52088,7 @@ var ImageContentSchema = object({
52068
52088
  /**
52069
52089
  * The MIME type of the image. Different providers may support different image types.
52070
52090
  */
52071
- mimeType: string2(),
52091
+ mimeType: string3(),
52072
52092
  /**
52073
52093
  * Optional annotations for the client.
52074
52094
  */
@@ -52077,7 +52097,7 @@ var ImageContentSchema = object({
52077
52097
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
52078
52098
  * for notes on _meta usage.
52079
52099
  */
52080
- _meta: record(string2(), unknown()).optional()
52100
+ _meta: record2(string3(), unknown()).optional()
52081
52101
  });
52082
52102
  var AudioContentSchema = object({
52083
52103
  type: literal("audio"),
@@ -52088,7 +52108,7 @@ var AudioContentSchema = object({
52088
52108
  /**
52089
52109
  * The MIME type of the audio. Different providers may support different audio types.
52090
52110
  */
52091
- mimeType: string2(),
52111
+ mimeType: string3(),
52092
52112
  /**
52093
52113
  * Optional annotations for the client.
52094
52114
  */
@@ -52097,7 +52117,7 @@ var AudioContentSchema = object({
52097
52117
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
52098
52118
  * for notes on _meta usage.
52099
52119
  */
52100
- _meta: record(string2(), unknown()).optional()
52120
+ _meta: record2(string3(), unknown()).optional()
52101
52121
  });
52102
52122
  var ToolUseContentSchema = object({
52103
52123
  type: literal("tool_use"),
@@ -52105,22 +52125,22 @@ var ToolUseContentSchema = object({
52105
52125
  * The name of the tool to invoke.
52106
52126
  * Must match a tool name from the request's tools array.
52107
52127
  */
52108
- name: string2(),
52128
+ name: string3(),
52109
52129
  /**
52110
52130
  * Unique identifier for this tool call.
52111
52131
  * Used to correlate with ToolResultContent in subsequent messages.
52112
52132
  */
52113
- id: string2(),
52133
+ id: string3(),
52114
52134
  /**
52115
52135
  * Arguments to pass to the tool.
52116
52136
  * Must conform to the tool's inputSchema.
52117
52137
  */
52118
- input: record(string2(), unknown()),
52138
+ input: record2(string3(), unknown()),
52119
52139
  /**
52120
52140
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
52121
52141
  * for notes on _meta usage.
52122
52142
  */
52123
- _meta: record(string2(), unknown()).optional()
52143
+ _meta: record2(string3(), unknown()).optional()
52124
52144
  });
52125
52145
  var EmbeddedResourceSchema = object({
52126
52146
  type: literal("resource"),
@@ -52133,7 +52153,7 @@ var EmbeddedResourceSchema = object({
52133
52153
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
52134
52154
  * for notes on _meta usage.
52135
52155
  */
52136
- _meta: record(string2(), unknown()).optional()
52156
+ _meta: record2(string3(), unknown()).optional()
52137
52157
  });
52138
52158
  var ResourceLinkSchema = ResourceSchema.extend({
52139
52159
  type: literal("resource_link")
@@ -52153,7 +52173,7 @@ var GetPromptResultSchema = ResultSchema.extend({
52153
52173
  /**
52154
52174
  * An optional description for the prompt.
52155
52175
  */
52156
- description: string2().optional(),
52176
+ description: string3().optional(),
52157
52177
  messages: array(PromptMessageSchema)
52158
52178
  });
52159
52179
  var PromptListChangedNotificationSchema = NotificationSchema.extend({
@@ -52164,7 +52184,7 @@ var ToolAnnotationsSchema = object({
52164
52184
  /**
52165
52185
  * A human-readable title for the tool.
52166
52186
  */
52167
- title: string2().optional(),
52187
+ title: string3().optional(),
52168
52188
  /**
52169
52189
  * If true, the tool does not modify its environment.
52170
52190
  *
@@ -52216,15 +52236,15 @@ var ToolSchema2 = object({
52216
52236
  /**
52217
52237
  * A human-readable description of the tool.
52218
52238
  */
52219
- description: string2().optional(),
52239
+ description: string3().optional(),
52220
52240
  /**
52221
52241
  * A JSON Schema 2020-12 object defining the expected parameters for the tool.
52222
52242
  * Must have type: 'object' at the root level per MCP spec.
52223
52243
  */
52224
52244
  inputSchema: object({
52225
52245
  type: literal("object"),
52226
- properties: record(string2(), AssertObjectSchema).optional(),
52227
- required: array(string2()).optional()
52246
+ properties: record2(string3(), AssertObjectSchema).optional(),
52247
+ required: array(string3()).optional()
52228
52248
  }).catchall(unknown()),
52229
52249
  /**
52230
52250
  * An optional JSON Schema 2020-12 object defining the structure of the tool's output
@@ -52233,8 +52253,8 @@ var ToolSchema2 = object({
52233
52253
  */
52234
52254
  outputSchema: object({
52235
52255
  type: literal("object"),
52236
- properties: record(string2(), AssertObjectSchema).optional(),
52237
- required: array(string2()).optional()
52256
+ properties: record2(string3(), AssertObjectSchema).optional(),
52257
+ required: array(string3()).optional()
52238
52258
  }).catchall(unknown()).optional(),
52239
52259
  /**
52240
52260
  * Optional additional tool information.
@@ -52248,7 +52268,7 @@ var ToolSchema2 = object({
52248
52268
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
52249
52269
  * for notes on _meta usage.
52250
52270
  */
52251
- _meta: record(string2(), unknown()).optional()
52271
+ _meta: record2(string3(), unknown()).optional()
52252
52272
  });
52253
52273
  var ListToolsRequestSchema = PaginatedRequestSchema.extend({
52254
52274
  method: literal("tools/list")
@@ -52269,7 +52289,7 @@ var CallToolResultSchema = ResultSchema.extend({
52269
52289
  *
52270
52290
  * If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema.
52271
52291
  */
52272
- structuredContent: record(string2(), unknown()).optional(),
52292
+ structuredContent: record2(string3(), unknown()).optional(),
52273
52293
  /**
52274
52294
  * Whether the tool call ended in an error.
52275
52295
  *
@@ -52293,11 +52313,11 @@ var CallToolRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({
52293
52313
  /**
52294
52314
  * The name of the tool to call.
52295
52315
  */
52296
- name: string2(),
52316
+ name: string3(),
52297
52317
  /**
52298
52318
  * Arguments to pass to the tool.
52299
52319
  */
52300
- arguments: record(string2(), unknown()).optional()
52320
+ arguments: record2(string3(), unknown()).optional()
52301
52321
  });
52302
52322
  var CallToolRequestSchema = RequestSchema.extend({
52303
52323
  method: literal("tools/call"),
@@ -52346,7 +52366,7 @@ var LoggingMessageNotificationParamsSchema = NotificationsParamsSchema.extend({
52346
52366
  /**
52347
52367
  * An optional name of the logger issuing this message.
52348
52368
  */
52349
- logger: string2().optional(),
52369
+ logger: string3().optional(),
52350
52370
  /**
52351
52371
  * The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here.
52352
52372
  */
@@ -52360,7 +52380,7 @@ var ModelHintSchema = object({
52360
52380
  /**
52361
52381
  * A hint for a model name.
52362
52382
  */
52363
- name: string2().optional()
52383
+ name: string3().optional()
52364
52384
  });
52365
52385
  var ModelPreferencesSchema = object({
52366
52386
  /**
@@ -52391,7 +52411,7 @@ var ToolChoiceSchema = object({
52391
52411
  });
52392
52412
  var ToolResultContentSchema = object({
52393
52413
  type: literal("tool_result"),
52394
- toolUseId: string2().describe("The unique identifier for the corresponding tool call."),
52414
+ toolUseId: string3().describe("The unique identifier for the corresponding tool call."),
52395
52415
  content: array(ContentBlockSchema).default([]),
52396
52416
  structuredContent: object({}).loose().optional(),
52397
52417
  isError: boolean2().optional(),
@@ -52399,7 +52419,7 @@ var ToolResultContentSchema = object({
52399
52419
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
52400
52420
  * for notes on _meta usage.
52401
52421
  */
52402
- _meta: record(string2(), unknown()).optional()
52422
+ _meta: record2(string3(), unknown()).optional()
52403
52423
  });
52404
52424
  var SamplingContentSchema = discriminatedUnion("type", [TextContentSchema, ImageContentSchema, AudioContentSchema]);
52405
52425
  var SamplingMessageContentBlockSchema = discriminatedUnion("type", [
@@ -52416,7 +52436,7 @@ var SamplingMessageSchema = object({
52416
52436
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
52417
52437
  * for notes on _meta usage.
52418
52438
  */
52419
- _meta: record(string2(), unknown()).optional()
52439
+ _meta: record2(string3(), unknown()).optional()
52420
52440
  });
52421
52441
  var CreateMessageRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({
52422
52442
  messages: array(SamplingMessageSchema),
@@ -52427,7 +52447,7 @@ var CreateMessageRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({
52427
52447
  /**
52428
52448
  * An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt.
52429
52449
  */
52430
- systemPrompt: string2().optional(),
52450
+ systemPrompt: string3().optional(),
52431
52451
  /**
52432
52452
  * A request to include context from one or more MCP servers (including the caller), to be attached to the prompt.
52433
52453
  * The client MAY ignore this request.
@@ -52443,7 +52463,7 @@ var CreateMessageRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({
52443
52463
  * The client MAY choose to sample fewer tokens than the requested maximum.
52444
52464
  */
52445
52465
  maxTokens: number2().int(),
52446
- stopSequences: array(string2()).optional(),
52466
+ stopSequences: array(string3()).optional(),
52447
52467
  /**
52448
52468
  * Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific.
52449
52469
  */
@@ -52468,7 +52488,7 @@ var CreateMessageResultSchema = ResultSchema.extend({
52468
52488
  /**
52469
52489
  * The name of the model that generated the message.
52470
52490
  */
52471
- model: string2(),
52491
+ model: string3(),
52472
52492
  /**
52473
52493
  * The reason why sampling stopped, if known.
52474
52494
  *
@@ -52479,7 +52499,7 @@ var CreateMessageResultSchema = ResultSchema.extend({
52479
52499
  *
52480
52500
  * This field is an open string to allow for provider-specific stop reasons.
52481
52501
  */
52482
- stopReason: optional(_enum(["endTurn", "stopSequence", "maxTokens"]).or(string2())),
52502
+ stopReason: optional(_enum(["endTurn", "stopSequence", "maxTokens"]).or(string3())),
52483
52503
  role: RoleSchema2,
52484
52504
  /**
52485
52505
  * Response content. Single content block (text, image, or audio).
@@ -52490,7 +52510,7 @@ var CreateMessageResultWithToolsSchema = ResultSchema.extend({
52490
52510
  /**
52491
52511
  * The name of the model that generated the message.
52492
52512
  */
52493
- model: string2(),
52513
+ model: string3(),
52494
52514
  /**
52495
52515
  * The reason why sampling stopped, if known.
52496
52516
  *
@@ -52502,7 +52522,7 @@ var CreateMessageResultWithToolsSchema = ResultSchema.extend({
52502
52522
  *
52503
52523
  * This field is an open string to allow for provider-specific stop reasons.
52504
52524
  */
52505
- stopReason: optional(_enum(["endTurn", "stopSequence", "maxTokens", "toolUse"]).or(string2())),
52525
+ stopReason: optional(_enum(["endTurn", "stopSequence", "maxTokens", "toolUse"]).or(string3())),
52506
52526
  role: RoleSchema2,
52507
52527
  /**
52508
52528
  * Response content. May be a single block or array. May include ToolUseContent if stopReason is "toolUse".
@@ -52511,78 +52531,78 @@ var CreateMessageResultWithToolsSchema = ResultSchema.extend({
52511
52531
  });
52512
52532
  var BooleanSchemaSchema = object({
52513
52533
  type: literal("boolean"),
52514
- title: string2().optional(),
52515
- description: string2().optional(),
52534
+ title: string3().optional(),
52535
+ description: string3().optional(),
52516
52536
  default: boolean2().optional()
52517
52537
  });
52518
52538
  var StringSchemaSchema = object({
52519
52539
  type: literal("string"),
52520
- title: string2().optional(),
52521
- description: string2().optional(),
52540
+ title: string3().optional(),
52541
+ description: string3().optional(),
52522
52542
  minLength: number2().optional(),
52523
52543
  maxLength: number2().optional(),
52524
52544
  format: _enum(["email", "uri", "date", "date-time"]).optional(),
52525
- default: string2().optional()
52545
+ default: string3().optional()
52526
52546
  });
52527
52547
  var NumberSchemaSchema = object({
52528
52548
  type: _enum(["number", "integer"]),
52529
- title: string2().optional(),
52530
- description: string2().optional(),
52549
+ title: string3().optional(),
52550
+ description: string3().optional(),
52531
52551
  minimum: number2().optional(),
52532
52552
  maximum: number2().optional(),
52533
52553
  default: number2().optional()
52534
52554
  });
52535
52555
  var UntitledSingleSelectEnumSchemaSchema = object({
52536
52556
  type: literal("string"),
52537
- title: string2().optional(),
52538
- description: string2().optional(),
52539
- enum: array(string2()),
52540
- default: string2().optional()
52557
+ title: string3().optional(),
52558
+ description: string3().optional(),
52559
+ enum: array(string3()),
52560
+ default: string3().optional()
52541
52561
  });
52542
52562
  var TitledSingleSelectEnumSchemaSchema = object({
52543
52563
  type: literal("string"),
52544
- title: string2().optional(),
52545
- description: string2().optional(),
52564
+ title: string3().optional(),
52565
+ description: string3().optional(),
52546
52566
  oneOf: array(object({
52547
- const: string2(),
52548
- title: string2()
52567
+ const: string3(),
52568
+ title: string3()
52549
52569
  })),
52550
- default: string2().optional()
52570
+ default: string3().optional()
52551
52571
  });
52552
52572
  var LegacyTitledEnumSchemaSchema = object({
52553
52573
  type: literal("string"),
52554
- title: string2().optional(),
52555
- description: string2().optional(),
52556
- enum: array(string2()),
52557
- enumNames: array(string2()).optional(),
52558
- default: string2().optional()
52574
+ title: string3().optional(),
52575
+ description: string3().optional(),
52576
+ enum: array(string3()),
52577
+ enumNames: array(string3()).optional(),
52578
+ default: string3().optional()
52559
52579
  });
52560
52580
  var SingleSelectEnumSchemaSchema = union([UntitledSingleSelectEnumSchemaSchema, TitledSingleSelectEnumSchemaSchema]);
52561
52581
  var UntitledMultiSelectEnumSchemaSchema = object({
52562
52582
  type: literal("array"),
52563
- title: string2().optional(),
52564
- description: string2().optional(),
52583
+ title: string3().optional(),
52584
+ description: string3().optional(),
52565
52585
  minItems: number2().optional(),
52566
52586
  maxItems: number2().optional(),
52567
52587
  items: object({
52568
52588
  type: literal("string"),
52569
- enum: array(string2())
52589
+ enum: array(string3())
52570
52590
  }),
52571
- default: array(string2()).optional()
52591
+ default: array(string3()).optional()
52572
52592
  });
52573
52593
  var TitledMultiSelectEnumSchemaSchema = object({
52574
52594
  type: literal("array"),
52575
- title: string2().optional(),
52576
- description: string2().optional(),
52595
+ title: string3().optional(),
52596
+ description: string3().optional(),
52577
52597
  minItems: number2().optional(),
52578
52598
  maxItems: number2().optional(),
52579
52599
  items: object({
52580
52600
  anyOf: array(object({
52581
- const: string2(),
52582
- title: string2()
52601
+ const: string3(),
52602
+ title: string3()
52583
52603
  }))
52584
52604
  }),
52585
- default: array(string2()).optional()
52605
+ default: array(string3()).optional()
52586
52606
  });
52587
52607
  var MultiSelectEnumSchemaSchema = union([UntitledMultiSelectEnumSchemaSchema, TitledMultiSelectEnumSchemaSchema]);
52588
52608
  var EnumSchemaSchema = union([LegacyTitledEnumSchemaSchema, SingleSelectEnumSchemaSchema, MultiSelectEnumSchemaSchema]);
@@ -52597,15 +52617,15 @@ var ElicitRequestFormParamsSchema = TaskAugmentedRequestParamsSchema.extend({
52597
52617
  /**
52598
52618
  * The message to present to the user describing what information is being requested.
52599
52619
  */
52600
- message: string2(),
52620
+ message: string3(),
52601
52621
  /**
52602
52622
  * A restricted subset of JSON Schema.
52603
52623
  * Only top-level properties are allowed, without nesting.
52604
52624
  */
52605
52625
  requestedSchema: object({
52606
52626
  type: literal("object"),
52607
- properties: record(string2(), PrimitiveSchemaDefinitionSchema),
52608
- required: array(string2()).optional()
52627
+ properties: record2(string3(), PrimitiveSchemaDefinitionSchema),
52628
+ required: array(string3()).optional()
52609
52629
  })
52610
52630
  });
52611
52631
  var ElicitRequestURLParamsSchema = TaskAugmentedRequestParamsSchema.extend({
@@ -52616,16 +52636,16 @@ var ElicitRequestURLParamsSchema = TaskAugmentedRequestParamsSchema.extend({
52616
52636
  /**
52617
52637
  * The message to present to the user explaining why the interaction is needed.
52618
52638
  */
52619
- message: string2(),
52639
+ message: string3(),
52620
52640
  /**
52621
52641
  * The ID of the elicitation, which must be unique within the context of the server.
52622
52642
  * The client MUST treat this ID as an opaque value.
52623
52643
  */
52624
- elicitationId: string2(),
52644
+ elicitationId: string3(),
52625
52645
  /**
52626
52646
  * The URL that the user should navigate to.
52627
52647
  */
52628
- url: string2().url()
52648
+ url: string3().url()
52629
52649
  });
52630
52650
  var ElicitRequestParamsSchema = union([ElicitRequestFormParamsSchema, ElicitRequestURLParamsSchema]);
52631
52651
  var ElicitRequestSchema = RequestSchema.extend({
@@ -52636,7 +52656,7 @@ var ElicitationCompleteNotificationParamsSchema = NotificationsParamsSchema.exte
52636
52656
  /**
52637
52657
  * The ID of the elicitation that completed.
52638
52658
  */
52639
- elicitationId: string2()
52659
+ elicitationId: string3()
52640
52660
  });
52641
52661
  var ElicitationCompleteNotificationSchema = NotificationSchema.extend({
52642
52662
  method: literal("notifications/elicitation/complete"),
@@ -52656,21 +52676,21 @@ var ElicitResultSchema = ResultSchema.extend({
52656
52676
  * Per MCP spec, content is "typically omitted" for decline/cancel actions.
52657
52677
  * We normalize null to undefined for leniency while maintaining type compatibility.
52658
52678
  */
52659
- content: preprocess((val) => val === null ? void 0 : val, record(string2(), union([string2(), number2(), boolean2(), array(string2())])).optional())
52679
+ content: preprocess((val) => val === null ? void 0 : val, record2(string3(), union([string3(), number2(), boolean2(), array(string3())])).optional())
52660
52680
  });
52661
52681
  var ResourceTemplateReferenceSchema = object({
52662
52682
  type: literal("ref/resource"),
52663
52683
  /**
52664
52684
  * The URI or URI template of the resource.
52665
52685
  */
52666
- uri: string2()
52686
+ uri: string3()
52667
52687
  });
52668
52688
  var PromptReferenceSchema = object({
52669
52689
  type: literal("ref/prompt"),
52670
52690
  /**
52671
52691
  * The name of the prompt or prompt template
52672
52692
  */
52673
- name: string2()
52693
+ name: string3()
52674
52694
  });
52675
52695
  var CompleteRequestParamsSchema = BaseRequestParamsSchema.extend({
52676
52696
  ref: union([PromptReferenceSchema, ResourceTemplateReferenceSchema]),
@@ -52681,17 +52701,17 @@ var CompleteRequestParamsSchema = BaseRequestParamsSchema.extend({
52681
52701
  /**
52682
52702
  * The name of the argument
52683
52703
  */
52684
- name: string2(),
52704
+ name: string3(),
52685
52705
  /**
52686
52706
  * The value of the argument to use for completion matching.
52687
52707
  */
52688
- value: string2()
52708
+ value: string3()
52689
52709
  }),
52690
52710
  context: object({
52691
52711
  /**
52692
52712
  * Previously-resolved variables in a URI template or prompt.
52693
52713
  */
52694
- arguments: record(string2(), string2()).optional()
52714
+ arguments: record2(string3(), string3()).optional()
52695
52715
  }).optional()
52696
52716
  });
52697
52717
  var CompleteRequestSchema = RequestSchema.extend({
@@ -52703,7 +52723,7 @@ var CompleteResultSchema = ResultSchema.extend({
52703
52723
  /**
52704
52724
  * An array of completion values. Must not exceed 100 items.
52705
52725
  */
52706
- values: array(string2()).max(100),
52726
+ values: array(string3()).max(100),
52707
52727
  /**
52708
52728
  * The total number of completion options available. This can exceed the number of values actually sent in the response.
52709
52729
  */
@@ -52718,16 +52738,16 @@ var RootSchema = object({
52718
52738
  /**
52719
52739
  * The URI identifying the root. This *must* start with file:// for now.
52720
52740
  */
52721
- uri: string2().startsWith("file://"),
52741
+ uri: string3().startsWith("file://"),
52722
52742
  /**
52723
52743
  * An optional name for the root.
52724
52744
  */
52725
- name: string2().optional(),
52745
+ name: string3().optional(),
52726
52746
  /**
52727
52747
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
52728
52748
  * for notes on _meta usage.
52729
52749
  */
52730
- _meta: record(string2(), unknown()).optional()
52750
+ _meta: record2(string3(), unknown()).optional()
52731
52751
  });
52732
52752
  var ListRootsRequestSchema = RequestSchema.extend({
52733
52753
  method: literal("roots/list"),
@@ -52855,72 +52875,72 @@ var SafeUrlSchema = url().superRefine((val, ctx) => {
52855
52875
  return u2.protocol !== "javascript:" && u2.protocol !== "data:" && u2.protocol !== "vbscript:";
52856
52876
  }, { message: "URL cannot use javascript:, data:, or vbscript: scheme" });
52857
52877
  var OAuthProtectedResourceMetadataSchema = looseObject({
52858
- resource: string2().url(),
52878
+ resource: string3().url(),
52859
52879
  authorization_servers: array(SafeUrlSchema).optional(),
52860
- jwks_uri: string2().url().optional(),
52861
- scopes_supported: array(string2()).optional(),
52862
- bearer_methods_supported: array(string2()).optional(),
52863
- resource_signing_alg_values_supported: array(string2()).optional(),
52864
- resource_name: string2().optional(),
52865
- resource_documentation: string2().optional(),
52866
- resource_policy_uri: string2().url().optional(),
52867
- resource_tos_uri: string2().url().optional(),
52880
+ jwks_uri: string3().url().optional(),
52881
+ scopes_supported: array(string3()).optional(),
52882
+ bearer_methods_supported: array(string3()).optional(),
52883
+ resource_signing_alg_values_supported: array(string3()).optional(),
52884
+ resource_name: string3().optional(),
52885
+ resource_documentation: string3().optional(),
52886
+ resource_policy_uri: string3().url().optional(),
52887
+ resource_tos_uri: string3().url().optional(),
52868
52888
  tls_client_certificate_bound_access_tokens: boolean2().optional(),
52869
- authorization_details_types_supported: array(string2()).optional(),
52870
- dpop_signing_alg_values_supported: array(string2()).optional(),
52889
+ authorization_details_types_supported: array(string3()).optional(),
52890
+ dpop_signing_alg_values_supported: array(string3()).optional(),
52871
52891
  dpop_bound_access_tokens_required: boolean2().optional()
52872
52892
  });
52873
52893
  var OAuthMetadataSchema = looseObject({
52874
- issuer: string2(),
52894
+ issuer: string3(),
52875
52895
  authorization_endpoint: SafeUrlSchema,
52876
52896
  token_endpoint: SafeUrlSchema,
52877
52897
  registration_endpoint: SafeUrlSchema.optional(),
52878
- scopes_supported: array(string2()).optional(),
52879
- response_types_supported: array(string2()),
52880
- response_modes_supported: array(string2()).optional(),
52881
- grant_types_supported: array(string2()).optional(),
52882
- token_endpoint_auth_methods_supported: array(string2()).optional(),
52883
- token_endpoint_auth_signing_alg_values_supported: array(string2()).optional(),
52898
+ scopes_supported: array(string3()).optional(),
52899
+ response_types_supported: array(string3()),
52900
+ response_modes_supported: array(string3()).optional(),
52901
+ grant_types_supported: array(string3()).optional(),
52902
+ token_endpoint_auth_methods_supported: array(string3()).optional(),
52903
+ token_endpoint_auth_signing_alg_values_supported: array(string3()).optional(),
52884
52904
  service_documentation: SafeUrlSchema.optional(),
52885
52905
  revocation_endpoint: SafeUrlSchema.optional(),
52886
- revocation_endpoint_auth_methods_supported: array(string2()).optional(),
52887
- revocation_endpoint_auth_signing_alg_values_supported: array(string2()).optional(),
52888
- introspection_endpoint: string2().optional(),
52889
- introspection_endpoint_auth_methods_supported: array(string2()).optional(),
52890
- introspection_endpoint_auth_signing_alg_values_supported: array(string2()).optional(),
52891
- code_challenge_methods_supported: array(string2()).optional(),
52906
+ revocation_endpoint_auth_methods_supported: array(string3()).optional(),
52907
+ revocation_endpoint_auth_signing_alg_values_supported: array(string3()).optional(),
52908
+ introspection_endpoint: string3().optional(),
52909
+ introspection_endpoint_auth_methods_supported: array(string3()).optional(),
52910
+ introspection_endpoint_auth_signing_alg_values_supported: array(string3()).optional(),
52911
+ code_challenge_methods_supported: array(string3()).optional(),
52892
52912
  client_id_metadata_document_supported: boolean2().optional()
52893
52913
  });
52894
52914
  var OpenIdProviderMetadataSchema = looseObject({
52895
- issuer: string2(),
52915
+ issuer: string3(),
52896
52916
  authorization_endpoint: SafeUrlSchema,
52897
52917
  token_endpoint: SafeUrlSchema,
52898
52918
  userinfo_endpoint: SafeUrlSchema.optional(),
52899
52919
  jwks_uri: SafeUrlSchema,
52900
52920
  registration_endpoint: SafeUrlSchema.optional(),
52901
- scopes_supported: array(string2()).optional(),
52902
- response_types_supported: array(string2()),
52903
- response_modes_supported: array(string2()).optional(),
52904
- grant_types_supported: array(string2()).optional(),
52905
- acr_values_supported: array(string2()).optional(),
52906
- subject_types_supported: array(string2()),
52907
- id_token_signing_alg_values_supported: array(string2()),
52908
- id_token_encryption_alg_values_supported: array(string2()).optional(),
52909
- id_token_encryption_enc_values_supported: array(string2()).optional(),
52910
- userinfo_signing_alg_values_supported: array(string2()).optional(),
52911
- userinfo_encryption_alg_values_supported: array(string2()).optional(),
52912
- userinfo_encryption_enc_values_supported: array(string2()).optional(),
52913
- request_object_signing_alg_values_supported: array(string2()).optional(),
52914
- request_object_encryption_alg_values_supported: array(string2()).optional(),
52915
- request_object_encryption_enc_values_supported: array(string2()).optional(),
52916
- token_endpoint_auth_methods_supported: array(string2()).optional(),
52917
- token_endpoint_auth_signing_alg_values_supported: array(string2()).optional(),
52918
- display_values_supported: array(string2()).optional(),
52919
- claim_types_supported: array(string2()).optional(),
52920
- claims_supported: array(string2()).optional(),
52921
- service_documentation: string2().optional(),
52922
- claims_locales_supported: array(string2()).optional(),
52923
- ui_locales_supported: array(string2()).optional(),
52921
+ scopes_supported: array(string3()).optional(),
52922
+ response_types_supported: array(string3()),
52923
+ response_modes_supported: array(string3()).optional(),
52924
+ grant_types_supported: array(string3()).optional(),
52925
+ acr_values_supported: array(string3()).optional(),
52926
+ subject_types_supported: array(string3()),
52927
+ id_token_signing_alg_values_supported: array(string3()),
52928
+ id_token_encryption_alg_values_supported: array(string3()).optional(),
52929
+ id_token_encryption_enc_values_supported: array(string3()).optional(),
52930
+ userinfo_signing_alg_values_supported: array(string3()).optional(),
52931
+ userinfo_encryption_alg_values_supported: array(string3()).optional(),
52932
+ userinfo_encryption_enc_values_supported: array(string3()).optional(),
52933
+ request_object_signing_alg_values_supported: array(string3()).optional(),
52934
+ request_object_encryption_alg_values_supported: array(string3()).optional(),
52935
+ request_object_encryption_enc_values_supported: array(string3()).optional(),
52936
+ token_endpoint_auth_methods_supported: array(string3()).optional(),
52937
+ token_endpoint_auth_signing_alg_values_supported: array(string3()).optional(),
52938
+ display_values_supported: array(string3()).optional(),
52939
+ claim_types_supported: array(string3()).optional(),
52940
+ claims_supported: array(string3()).optional(),
52941
+ service_documentation: string3().optional(),
52942
+ claims_locales_supported: array(string3()).optional(),
52943
+ ui_locales_supported: array(string3()).optional(),
52924
52944
  claims_parameter_supported: boolean2().optional(),
52925
52945
  request_parameter_supported: boolean2().optional(),
52926
52946
  request_uri_parameter_supported: boolean2().optional(),
@@ -52936,62 +52956,62 @@ var OpenIdProviderDiscoveryMetadataSchema = object({
52936
52956
  }).shape
52937
52957
  });
52938
52958
  var OAuthTokensSchema = object({
52939
- access_token: string2(),
52940
- id_token: string2().optional(),
52959
+ access_token: string3(),
52960
+ id_token: string3().optional(),
52941
52961
  // Optional for OAuth 2.1, but necessary in OpenID Connect
52942
- token_type: string2(),
52962
+ token_type: string3(),
52943
52963
  expires_in: coerce_exports.number().optional(),
52944
- scope: string2().optional(),
52945
- refresh_token: string2().optional(),
52964
+ scope: string3().optional(),
52965
+ refresh_token: string3().optional(),
52946
52966
  /**
52947
52967
  * Not part of the wire format: the authorization server this value was obtained from, added by
52948
52968
  * the client's `auth()` before it is stored and compared when it is read back.
52949
52969
  */
52950
- issuer: string2().optional().catch(void 0)
52970
+ issuer: string3().optional().catch(void 0)
52951
52971
  }).strip();
52952
52972
  var OAuthErrorResponseSchema = object({
52953
- error: string2(),
52954
- error_description: string2().optional(),
52955
- error_uri: string2().optional()
52973
+ error: string3(),
52974
+ error_description: string3().optional(),
52975
+ error_uri: string3().optional()
52956
52976
  });
52957
52977
  var OptionalSafeUrlSchema = SafeUrlSchema.optional().or(literal("").transform(() => void 0));
52958
52978
  var OAuthClientMetadataSchema = object({
52959
52979
  redirect_uris: array(SafeUrlSchema),
52960
- token_endpoint_auth_method: string2().optional(),
52961
- grant_types: array(string2()).optional(),
52962
- response_types: array(string2()).optional(),
52963
- client_name: string2().optional(),
52980
+ token_endpoint_auth_method: string3().optional(),
52981
+ grant_types: array(string3()).optional(),
52982
+ response_types: array(string3()).optional(),
52983
+ client_name: string3().optional(),
52964
52984
  client_uri: SafeUrlSchema.optional(),
52965
52985
  logo_uri: OptionalSafeUrlSchema,
52966
- scope: string2().optional(),
52967
- contacts: array(string2()).optional(),
52986
+ scope: string3().optional(),
52987
+ contacts: array(string3()).optional(),
52968
52988
  tos_uri: OptionalSafeUrlSchema,
52969
- policy_uri: string2().optional(),
52989
+ policy_uri: string3().optional(),
52970
52990
  jwks_uri: SafeUrlSchema.optional(),
52971
52991
  jwks: any().optional(),
52972
- software_id: string2().optional(),
52973
- software_version: string2().optional(),
52974
- software_statement: string2().optional()
52992
+ software_id: string3().optional(),
52993
+ software_version: string3().optional(),
52994
+ software_statement: string3().optional()
52975
52995
  }).strip();
52976
52996
  var OAuthClientInformationSchema = object({
52977
- client_id: string2(),
52978
- client_secret: string2().optional(),
52997
+ client_id: string3(),
52998
+ client_secret: string3().optional(),
52979
52999
  client_id_issued_at: number2().optional(),
52980
53000
  client_secret_expires_at: number2().optional(),
52981
53001
  /**
52982
53002
  * Not part of the wire format: the authorization server this value was obtained from, added by
52983
53003
  * the client's `auth()` before it is stored and compared when it is read back.
52984
53004
  */
52985
- issuer: string2().optional().catch(void 0)
53005
+ issuer: string3().optional().catch(void 0)
52986
53006
  }).strip();
52987
53007
  var OAuthClientInformationFullSchema = OAuthClientMetadataSchema.merge(OAuthClientInformationSchema);
52988
53008
  var OAuthClientRegistrationErrorSchema = object({
52989
- error: string2(),
52990
- error_description: string2().optional()
53009
+ error: string3(),
53010
+ error_description: string3().optional()
52991
53011
  }).strip();
52992
53012
  var OAuthTokenRevocationRequestSchema = object({
52993
- token: string2(),
52994
- token_type_hint: string2().optional()
53013
+ token: string3(),
53014
+ token_type_hint: string3().optional()
52995
53015
  }).strip();
52996
53016
 
52997
53017
  // ../../node_modules/@modelcontextprotocol/sdk/dist/esm/server/auth/errors.js
@@ -53301,6 +53321,24 @@ var AUTHORIZATION_CHECKPOINT_COLUMNS = [
53301
53321
  }
53302
53322
  ];
53303
53323
 
53324
+ // ../linkque-agent-appwrite-integrate/dist/esm/runtime/externalActionSchema.js
53325
+ var definitions = [
53326
+ ["state", 16],
53327
+ ["digest", 64],
53328
+ ["runId", 256],
53329
+ ["threadId", 256],
53330
+ ["messageId", 256],
53331
+ ["createdAt", 64]
53332
+ ];
53333
+ var EXTERNAL_ACTION_COLUMNS = definitions.map(([key, size]) => ({
53334
+ key,
53335
+ size,
53336
+ type: "varchar",
53337
+ required: true,
53338
+ array: false,
53339
+ default: null
53340
+ }));
53341
+
53304
53342
  // ../linkque-agent-appwrite-integrate/dist/esm/runtime/appbaseRuntimeConfigProvider.js
53305
53343
  var LINKQUE_ENDPOINT_PRE = "https://linkquegw-pre.alipay.com";
53306
53344
  var APPBASE_RUNTIME_CONFIG_DEFAULTS = Object.freeze({
@@ -53320,6 +53358,9 @@ var APPBASE_RUNTIME_CONFIG_DEFAULTS = Object.freeze({
53320
53358
  LINKQUEGW_MCP_SIGN_ENDPOINT_PRE: `${LINKQUE_ENDPOINT_PRE}/api/mcp/signature`,
53321
53359
  LINKQUE_OPEN_MCP_BASE_URL: "https://opengw.alipay.com",
53322
53360
  LINKQUE_OPEN_MCP_BASE_URL_PRE: "https://opengw-pre.alipay.com",
53361
+ EXTERNAL_ACTION_DATABASE_ID: "linkque",
53362
+ EXTERNAL_ACTION_TABLE_ID: "linkque_external_actions",
53363
+ LINKQUE_EMBEDDED_QUERY_ENABLED: "false",
53323
53364
  RUN_DATABASE_ID: "linkque",
53324
53365
  RUN_TABLE_ID: "linkque_conversation_runs",
53325
53366
  SESSION_DATABASE_ID: "linkque",
@@ -53498,7 +53539,7 @@ var SESSION_TABLE_COLUMNS = [
53498
53539
  type: "varchar",
53499
53540
  required: false,
53500
53541
  array: true,
53501
- size: 8192,
53542
+ size: 16380,
53502
53543
  default: null
53503
53544
  },
53504
53545
  {
@@ -53614,8 +53655,8 @@ var SESSION_TABLE_INDEXES = [
53614
53655
  var SESSION_LEASE_TABLE_COLUMNS = [
53615
53656
  SESSION_TABLE_COLUMNS[0],
53616
53657
  // sessionId
53617
- SESSION_TABLE_COLUMNS[1],
53618
- // turns
53658
+ { ...SESSION_TABLE_COLUMNS[1], size: 8192 },
53659
+ // lease 不承载业务上下文
53619
53660
  {
53620
53661
  key: "ownerId",
53621
53662
  type: "varchar",
@@ -53919,7 +53960,12 @@ var FUNCTION_DEFS = [
53919
53960
  execute: ["users"],
53920
53961
  // chat Function 会读写 run、session、lease、索引和搜索文档。AppBase 根据这里的
53921
53962
  // scopes 注入运行期动态 Server key;缺少 write 会以 role=applications 报 401。
53922
- scopes: ["documents.read", "documents.write"],
53963
+ scopes: [
53964
+ "documents.read",
53965
+ "documents.write",
53966
+ "tables.read",
53967
+ "columns.read"
53968
+ ],
53923
53969
  vars: []
53924
53970
  },
53925
53971
  {
@@ -53944,6 +53990,16 @@ var TABLES_DB = [
53944
53990
  }
53945
53991
  ];
53946
53992
  var TABLES = [
53993
+ {
53994
+ $id: APPBASE_RUNTIME_CONFIG_DEFAULTS.EXTERNAL_ACTION_TABLE_ID,
53995
+ databaseId: APPBASE_RUNTIME_CONFIG_DEFAULTS.EXTERNAL_ACTION_DATABASE_ID,
53996
+ name: APPBASE_RUNTIME_CONFIG_DEFAULTS.EXTERNAL_ACTION_TABLE_ID,
53997
+ enabled: true,
53998
+ rowSecurity: true,
53999
+ permissions: [],
54000
+ columns: EXTERNAL_ACTION_COLUMNS.map((column) => ({ ...column })),
54001
+ indexes: []
54002
+ },
53947
54003
  {
53948
54004
  $id: APPBASE_RUNTIME_CONFIG_DEFAULTS.RUN_TABLE_ID,
53949
54005
  databaseId: APPBASE_RUNTIME_CONFIG_DEFAULTS.RUN_DATABASE_ID,
@@ -57610,10 +57666,10 @@ function appendExtraFieldUSDZ(entryInfo, zipWriterOffset) {
57610
57666
  headerInfo.localHeaderView = localHeaderArrayView;
57611
57667
  entryInfo.metadataSize += extraBytesLength;
57612
57668
  }
57613
- function packUnixId(id) {
57669
+ function packUnixId(id2) {
57614
57670
  const dataArray = new Uint8Array(4);
57615
57671
  const dataView = getDataView(dataArray);
57616
- dataView.setUint32(0, id, true);
57672
+ dataView.setUint32(0, id2, true);
57617
57673
  let length = 4;
57618
57674
  while (length > 1 && dataArray[length - 1] === 0) {
57619
57675
  length--;
@@ -59778,7 +59834,7 @@ async function validateCardBindings(cwd, draftId, _contextChecksum, fieldId) {
59778
59834
  async function prepareCardBindingContext(cwd, draftId, resourceIds, env = process.env) {
59779
59835
  assertDraftId(draftId);
59780
59836
  if (!resourceIds.length || resourceIds.length > 32 || resourceIds.some(
59781
- (id) => typeof id !== "string" || !id.trim() || id !== id.trim()
59837
+ (id2) => typeof id2 !== "string" || !id2.trim() || id2 !== id2.trim()
59782
59838
  )) {
59783
59839
  throw new LinkqueCliError(
59784
59840
  "CLI_USAGE_INVALID",
@@ -59805,7 +59861,7 @@ async function prepareCardBindingContext(cwd, draftId, resourceIds, env = proces
59805
59861
  const reuse = (value) => {
59806
59862
  const context2 = parseOptionalBindingContext(value);
59807
59863
  if (context2.draftId !== draftId || context2.resourceId !== bundle.manifest.resourceId || context2.mcpConfigChecksum !== mcpConfigChecksum || selectedIds.some(
59808
- (id) => !context2.candidates.some((candidate) => candidate.resourceId === id)
59864
+ (id2) => !context2.candidates.some((candidate) => candidate.resourceId === id2)
59809
59865
  )) {
59810
59866
  throw new LinkqueCliError(
59811
59867
  "CARD_BINDING_CONTEXT_STALE",
@@ -59817,16 +59873,16 @@ async function prepareCardBindingContext(cwd, draftId, resourceIds, env = proces
59817
59873
  const existing = await readOptionalJson(file);
59818
59874
  if (existing !== void 0) return reuse(existing);
59819
59875
  const candidates = [];
59820
- for (const id of selectedIds) {
59821
- const detail = await describeMcp(cwd, id, env);
59876
+ for (const id2 of selectedIds) {
59877
+ const detail = await describeMcp(cwd, id2, env);
59822
59878
  const mounted = config3.agent.resources.find(
59823
- (resource) => resource.resourceId === id
59879
+ (resource) => resource.resourceId === id2
59824
59880
  );
59825
59881
  const displayName = typeof mounted?.displayName === "string" && mounted.displayName ? mounted.displayName : detail.abilityName || detail.serverName;
59826
59882
  if (!detail.tools.length) {
59827
59883
  candidates.push({
59828
59884
  status: "unavailable",
59829
- resourceId: id,
59885
+ resourceId: id2,
59830
59886
  displayName,
59831
59887
  reasonCode: "TOOL_NOT_FOUND"
59832
59888
  });
@@ -59835,7 +59891,7 @@ async function prepareCardBindingContext(cwd, draftId, resourceIds, env = proces
59835
59891
  if (!tool.inputSchema) {
59836
59892
  candidates.push({
59837
59893
  status: "unavailable",
59838
- resourceId: id,
59894
+ resourceId: id2,
59839
59895
  displayName,
59840
59896
  toolName: tool.toolName,
59841
59897
  reasonCode: "DETAIL_FETCH_FAILED"
@@ -59844,10 +59900,10 @@ async function prepareCardBindingContext(cwd, draftId, resourceIds, env = proces
59844
59900
  }
59845
59901
  candidates.push({
59846
59902
  status: "ready",
59847
- resourceId: id,
59903
+ resourceId: id2,
59848
59904
  displayName,
59849
59905
  tool: {
59850
- resourceId: id,
59906
+ resourceId: id2,
59851
59907
  toolName: tool.toolName,
59852
59908
  ...tool.description ? { description: tool.description } : {},
59853
59909
  inputSchema: tool.inputSchema,
@@ -60099,7 +60155,7 @@ async function validateCardBindingsForBundle(cwd, draftId, bundle, fieldId) {
60099
60155
  );
60100
60156
  return {
60101
60157
  bindingCount: bundle.manifest.bindings?.length ?? 0,
60102
- complete: businessFieldIds.every((id) => boundFieldIds.has(id)),
60158
+ complete: businessFieldIds.every((id2) => boundFieldIds.has(id2)),
60103
60159
  draftChecksum: draftChecksum(bundle),
60104
60160
  draftId,
60105
60161
  draftStructureChecksum,
@@ -61695,13 +61751,13 @@ var decodeAnyValue = (value) => {
61695
61751
  if (value.arrayValue)
61696
61752
  return value.arrayValue.values.map((child) => decodeAnyValue(child));
61697
61753
  if (value.kvlistValue) {
61698
- const record2 = /* @__PURE__ */ Object.create(null);
61754
+ const record3 = /* @__PURE__ */ Object.create(null);
61699
61755
  for (const { key, value: child } of value.kvlistValue.values) {
61700
61756
  if (typeof key !== "string")
61701
61757
  throw new TypeError("Invalid OTLP key");
61702
- record2[key] = decodeAnyValue(child);
61758
+ record3[key] = decodeAnyValue(child);
61703
61759
  }
61704
- return record2;
61760
+ return record3;
61705
61761
  }
61706
61762
  return void 0;
61707
61763
  };
@@ -61778,15 +61834,15 @@ var identityFromAttributes = (source, attrs, span) => {
61778
61834
  spanId: span?.spanId
61779
61835
  });
61780
61836
  };
61781
- var decodeLogRecord = (source, record2, byteRange, push) => {
61782
- const attributes = decodeAttributes(record2.attributes);
61837
+ var decodeLogRecord = (source, record3, byteRange, push) => {
61838
+ const attributes = decodeAttributes(record3.attributes);
61783
61839
  validateMetadata(attributes);
61784
- const rawName = record2.eventName ?? record2.name;
61840
+ const rawName = record3.eventName ?? record3.name;
61785
61841
  const name = typeof rawName === "string" && rawName ? rawName : void 0;
61786
61842
  const identity = identityFromAttributes(source, attributes);
61787
- const startedAt = nanoToMs(record2.timeUnixNano);
61843
+ const startedAt = nanoToMs(record3.timeUnixNano);
61788
61844
  const outcome = strAttr(attributes, ETelemetryAttribute.HARNESS_OPERATION_OUTCOME);
61789
- const body = record2.body !== void 0 ? decodeAnyValue(record2.body) : void 0;
61845
+ const body = record3.body !== void 0 ? decodeAnyValue(record3.body) : void 0;
61790
61846
  if (name === "linkque.content.recorded") {
61791
61847
  if (!body || typeof body !== "object" || Array.isArray(body))
61792
61848
  throw new TypeError("Invalid content envelope");
@@ -61924,12 +61980,12 @@ function decodeLine(line, source, byteRange, onRecord) {
61924
61980
  for (const scope of objects(resource[scopeKey], scopeKey)) {
61925
61981
  const envelopeScope = { ...scope };
61926
61982
  delete envelopeScope[recordKey];
61927
- for (const record2 of objects(scope[recordKey], recordKey)) {
61983
+ for (const record3 of objects(scope[recordKey], recordKey)) {
61928
61984
  const decoded = [];
61929
61985
  let primaryFact;
61930
61986
  const spanEvents = [];
61931
61987
  try {
61932
- (logs ? decodeLogRecord : decodeSpan)(source, record2, byteRange, (fact, event) => {
61988
+ (logs ? decodeLogRecord : decodeSpan)(source, record3, byteRange, (fact, event) => {
61933
61989
  decoded.push(fact);
61934
61990
  if (event) {
61935
61991
  if (onRecord)
@@ -61943,7 +61999,7 @@ function decodeLine(line, source, byteRange, onRecord) {
61943
61999
  facts.push(...decoded);
61944
62000
  onRecord?.({
61945
62001
  source,
61946
- record: record2,
62002
+ record: record3,
61947
62003
  facts: decoded,
61948
62004
  primaryFact,
61949
62005
  spanEvents,
@@ -61957,7 +62013,7 @@ function decodeLine(line, source, byteRange, onRecord) {
61957
62013
  [resourceKey]: [
61958
62014
  {
61959
62015
  ...envelopeResource,
61960
- [scopeKey]: [{ ...envelopeScope, [recordKey]: [record2] }]
62016
+ [scopeKey]: [{ ...envelopeScope, [recordKey]: [record3] }]
61961
62017
  }
61962
62018
  ]
61963
62019
  }
@@ -61975,7 +62031,7 @@ function decodeOtlpLine(line, source, byteRange) {
61975
62031
  }
61976
62032
  function decodeOtlpRecords(line, source) {
61977
62033
  const records = [];
61978
- const result = decodeLine(line, source, void 0, (record2) => records.push(record2));
62034
+ const result = decodeLine(line, source, void 0, (record3) => records.push(record3));
61979
62035
  return { ...result, records };
61980
62036
  }
61981
62037
 
@@ -62240,19 +62296,19 @@ function selectTurnRecords(records, identity) {
62240
62296
  if (entry.source !== "traces" || !Array.isArray(entry.record.events))
62241
62297
  return [entry];
62242
62298
  const spanEvents = entry.spanEvents.filter(({ fact }) => belongsToTurn(fact, identity) && isTurnShareContentAllowed(fact));
62243
- const events = spanEvents.map(({ record: record3 }) => record3);
62244
- const record2 = { ...entry.record, events };
62299
+ const events = spanEvents.map(({ record: record4 }) => record4);
62300
+ const record3 = { ...entry.record, events };
62245
62301
  const { root, resource, scope } = entry.envelopeContext;
62246
62302
  return [
62247
62303
  {
62248
62304
  ...entry,
62249
- record: record2,
62305
+ record: record3,
62250
62306
  spanEvents,
62251
62307
  facts: [primary, ...spanEvents.map(({ fact }) => fact)],
62252
62308
  envelope: {
62253
62309
  ...root,
62254
62310
  resourceSpans: [
62255
- { ...resource, scopeSpans: [{ ...scope, spans: [record2] }] }
62311
+ { ...resource, scopeSpans: [{ ...scope, spans: [record3] }] }
62256
62312
  ]
62257
62313
  }
62258
62314
  }
@@ -62283,7 +62339,7 @@ function parseTraceContentSelection(input) {
62283
62339
  if (value !== void 0 && (typeof value !== "string" || !value))
62284
62340
  return null;
62285
62341
  }
62286
- if (ref.recordIds !== void 0 && (!Array.isArray(ref.recordIds) || !ref.recordIds.length || ref.recordIds.length > 128 || ref.recordIds.some((id) => typeof id !== "string" || !id)))
62342
+ if (ref.recordIds !== void 0 && (!Array.isArray(ref.recordIds) || !ref.recordIds.length || ref.recordIds.length > 128 || ref.recordIds.some((id2) => typeof id2 !== "string" || !id2)))
62287
62343
  return null;
62288
62344
  if (cursor !== void 0 && (typeof cursor !== "string" || !/^(0|[1-9][0-9]*)$/.test(cursor)))
62289
62345
  return null;
@@ -62303,7 +62359,7 @@ function readTraceContent(input) {
62303
62359
  let matched = facts.find((f3) => f3.name === ETelemetryEventName.CONTENT_RECORDED && (!identity.threadId || f3.identity.threadId === identity.threadId) && (!identity.advanceId || f3.identity.advanceId === identity.advanceId) && (!identity.runId || f3.identity.runId === identity.runId) && matchContentRef(f3, contentRef));
62304
62360
  if (contentRef.recordIds) {
62305
62361
  const byRecord = new Map(facts.filter((f3) => f3.name === ETelemetryEventName.CONTENT_RECORDED && f3.identity.advanceId === identity.advanceId && (!identity.threadId || f3.identity.threadId === identity.threadId) && (!identity.runId || f3.identity.runId === identity.runId) && f3.identity.operationId === contentRef.operationId).map((f3) => [f3.identity.recordId, f3]));
62306
- const chunks = contentRef.recordIds.map((id) => byRecord.get(id));
62362
+ const chunks = contentRef.recordIds.map((id2) => byRecord.get(id2));
62307
62363
  if (chunks.some((chunk) => !chunk))
62308
62364
  return { availability: "unavailable" };
62309
62365
  const values = chunks.map((chunk) => chunk.body);
@@ -63710,8 +63766,8 @@ var GROUP_DESCRIPTIONS = {
63710
63766
  "platform-sdk": "apply platform-managed SDK bundles",
63711
63767
  runs: "query recent Query runs from retained sandbox logs"
63712
63768
  };
63713
- var collectOptions = (target, definitions, values) => {
63714
- for (const { flags, key } of definitions) {
63769
+ var collectOptions = (target, definitions2, values) => {
63770
+ for (const { flags, key } of definitions2) {
63715
63771
  const attributeName = new Option(flags).attributeName();
63716
63772
  if (values[attributeName] !== void 0) {
63717
63773
  target[key] = values[attributeName];
@@ -63762,12 +63818,12 @@ var bindSubcommand = (program2, command, state) => {
63762
63818
  });
63763
63819
  };
63764
63820
  var bindCommandGroup = (program2, prefix, state) => {
63765
- const definitions = SUBCOMMANDS.filter(
63821
+ const definitions2 = SUBCOMMANDS.filter(
63766
63822
  (command) => command.name.startsWith(`${prefix}.`)
63767
63823
  );
63768
- if (definitions.length === 0) return;
63824
+ if (definitions2.length === 0) return;
63769
63825
  const group = program2.command(prefix).description(GROUP_DESCRIPTIONS[prefix] ?? prefix);
63770
- for (const definition of definitions) {
63826
+ for (const definition of definitions2) {
63771
63827
  const action = definition.name.slice(`${prefix}.`.length);
63772
63828
  const sub = group.command(action).description(definition.description).option(JSON_OPTION, "output the machine-readable protocol");
63773
63829
  for (const option of definition.options) {