linkque-cli-v2 1.6.25-alpha.0 → 1.6.26

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 (22) hide show
  1. package/dev/worker.js +78 -21
  2. package/linkquejs.js +28272 -26795
  3. package/package.json +1 -1
  4. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-LTZQZY5N.js → chunk-2QJITP7G.js} +83 -26
  5. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-VBVOUDAY.js → chunk-5BACHYVZ.js} +3524 -6022
  6. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-Q5VTO4BZ.js → chunk-FC7MJHC3.js} +1 -1
  7. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-6POVPTQH.js → chunk-GAYNLDWK.js} +2545 -5930
  8. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-EXYGBKWJ.js → chunk-LL6AYQ4U.js} +1 -1
  9. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-GTEZTRCK.js → chunk-XUFLSZM4.js} +190 -35
  10. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{chunk-XYAYDSKW.js → chunk-ZVZ2LH7U.js} +11 -11
  11. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{dist-JRQ7GIV4.js → dist-6U5W3RLM.js} +46 -31
  12. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-generative-ai-WBIK2BRB.js → google-generative-ai-RT2OOQDJ.js} +1 -1
  13. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{google-vertex-2TMP5HDA.js → google-vertex-HVFMVQVY.js} +1 -1
  14. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{mistral-conversations-X6KT35XW.js → mistral-conversations-KIOTOF73.js} +4 -4
  15. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{multipart-parser-HCLTR6CW.js → multipart-parser-TAD6XL3Q.js} +2 -2
  16. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{otel-3OUODIOB.js → otel-LQR5KPZ3.js} +580 -268
  17. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/chat.js +326 -227
  18. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/handler/clientCapability.js +4 -5
  19. package/vendor/linkque-agent-appwrite-integrate/dist/esm/runtime/protocol.js +4 -5
  20. package/vendor/linkque-agent-appwrite-integrate/dist/esm/{src-MFXPXO5F.js → src-JSJTYJV5.js} +25 -25
  21. package/worker.js +60698 -49399
  22. package/vendor/linkque-agent-appwrite-integrate/dist/esm/chunk-EAODRPW4.js +0 -518
@@ -59,13 +59,13 @@ import {
59
59
  resolveRunStorage,
60
60
  toAgentRunMessages,
61
61
  withIsoTimestamp
62
- } from "../../chunk-XYAYDSKW.js";
62
+ } from "../../chunk-ZVZ2LH7U.js";
63
63
  import "../../chunk-IWOFD643.js";
64
64
  import "../../chunk-PXCGFBV5.js";
65
65
  import "../../chunk-ETG6PNHQ.js";
66
66
  import {
67
67
  getBakedProtocol
68
- } from "../../chunk-EXYGBKWJ.js";
68
+ } from "../../chunk-LL6AYQ4U.js";
69
69
  import {
70
70
  ACTIVATE_SKILL_TOOL_NAME,
71
71
  AUTHORIZATION_CONFIRM_EVENT,
@@ -180,6 +180,9 @@ import {
180
180
  createPresentationResult,
181
181
  createRuntimeDebugLog,
182
182
  createWebSearchTool,
183
+ diagnosticCode,
184
+ diagnosticResponse,
185
+ emitA2aDiagnostic,
183
186
  encodeConversationSseEvent,
184
187
  executeA2UICardResolver,
185
188
  executeCardPresentation,
@@ -220,6 +223,7 @@ import {
220
223
  parseMarkConversationRunsReadRequest,
221
224
  parseSkillFile,
222
225
  prepareFollowUpQuestionContext,
226
+ projectCardData,
223
227
  projectPresentationReceiptForModel,
224
228
  readAuthorizationChallenge,
225
229
  readAuthorizationPresentation,
@@ -262,10 +266,9 @@ import {
262
266
  warnLogFailure,
263
267
  wrapToolWithHooks,
264
268
  writeJsonPointer
265
- } from "../../chunk-VBVOUDAY.js";
266
- import "../../chunk-GTEZTRCK.js";
267
- import "../../chunk-EAODRPW4.js";
268
- import "../../chunk-6POVPTQH.js";
269
+ } from "../../chunk-5BACHYVZ.js";
270
+ import "../../chunk-XUFLSZM4.js";
271
+ import "../../chunk-GAYNLDWK.js";
269
272
  import "../../chunk-SICWMO5Y.js";
270
273
  import {
271
274
  __commonJS,
@@ -274,9 +277,9 @@ import {
274
277
  __toESM
275
278
  } from "../../chunk-2ESYSVXG.js";
276
279
 
277
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/nodes/identity.js
280
+ // ../../node_modules/yaml/dist/nodes/identity.js
278
281
  var require_identity = __commonJS({
279
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/nodes/identity.js"(exports) {
282
+ "../../node_modules/yaml/dist/nodes/identity.js"(exports) {
280
283
  "use strict";
281
284
  var ALIAS = Symbol.for("yaml.alias");
282
285
  var DOC = Symbol.for("yaml.document");
@@ -331,9 +334,9 @@ var require_identity = __commonJS({
331
334
  }
332
335
  });
333
336
 
334
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/visit.js
337
+ // ../../node_modules/yaml/dist/visit.js
335
338
  var require_visit = __commonJS({
336
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/visit.js"(exports) {
339
+ "../../node_modules/yaml/dist/visit.js"(exports) {
337
340
  "use strict";
338
341
  var identity = require_identity();
339
342
  var BREAK = Symbol("break visit");
@@ -489,9 +492,9 @@ var require_visit = __commonJS({
489
492
  }
490
493
  });
491
494
 
492
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/doc/directives.js
495
+ // ../../node_modules/yaml/dist/doc/directives.js
493
496
  var require_directives = __commonJS({
494
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/doc/directives.js"(exports) {
497
+ "../../node_modules/yaml/dist/doc/directives.js"(exports) {
495
498
  "use strict";
496
499
  var identity = require_identity();
497
500
  var visit = require_visit();
@@ -660,9 +663,9 @@ var require_directives = __commonJS({
660
663
  }
661
664
  });
662
665
 
663
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/doc/anchors.js
666
+ // ../../node_modules/yaml/dist/doc/anchors.js
664
667
  var require_anchors = __commonJS({
665
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/doc/anchors.js"(exports) {
668
+ "../../node_modules/yaml/dist/doc/anchors.js"(exports) {
666
669
  "use strict";
667
670
  var identity = require_identity();
668
671
  var visit = require_visit();
@@ -730,9 +733,9 @@ var require_anchors = __commonJS({
730
733
  }
731
734
  });
732
735
 
733
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/doc/applyReviver.js
736
+ // ../../node_modules/yaml/dist/doc/applyReviver.js
734
737
  var require_applyReviver = __commonJS({
735
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/doc/applyReviver.js"(exports) {
738
+ "../../node_modules/yaml/dist/doc/applyReviver.js"(exports) {
736
739
  "use strict";
737
740
  function applyReviver(reviver, obj, key2, val) {
738
741
  if (val && typeof val === "object") {
@@ -780,9 +783,9 @@ var require_applyReviver = __commonJS({
780
783
  }
781
784
  });
782
785
 
783
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/nodes/toJS.js
786
+ // ../../node_modules/yaml/dist/nodes/toJS.js
784
787
  var require_toJS = __commonJS({
785
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/nodes/toJS.js"(exports) {
788
+ "../../node_modules/yaml/dist/nodes/toJS.js"(exports) {
786
789
  "use strict";
787
790
  var identity = require_identity();
788
791
  function toJS(value, arg, ctx) {
@@ -810,9 +813,9 @@ var require_toJS = __commonJS({
810
813
  }
811
814
  });
812
815
 
813
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/nodes/Node.js
816
+ // ../../node_modules/yaml/dist/nodes/Node.js
814
817
  var require_Node = __commonJS({
815
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/nodes/Node.js"(exports) {
818
+ "../../node_modules/yaml/dist/nodes/Node.js"(exports) {
816
819
  "use strict";
817
820
  var applyReviver = require_applyReviver();
818
821
  var identity = require_identity();
@@ -851,9 +854,9 @@ var require_Node = __commonJS({
851
854
  }
852
855
  });
853
856
 
854
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/nodes/Alias.js
857
+ // ../../node_modules/yaml/dist/nodes/Alias.js
855
858
  var require_Alias = __commonJS({
856
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/nodes/Alias.js"(exports) {
859
+ "../../node_modules/yaml/dist/nodes/Alias.js"(exports) {
857
860
  "use strict";
858
861
  var anchors = require_anchors();
859
862
  var visit = require_visit();
@@ -967,9 +970,9 @@ var require_Alias = __commonJS({
967
970
  }
968
971
  });
969
972
 
970
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/nodes/Scalar.js
973
+ // ../../node_modules/yaml/dist/nodes/Scalar.js
971
974
  var require_Scalar = __commonJS({
972
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/nodes/Scalar.js"(exports) {
975
+ "../../node_modules/yaml/dist/nodes/Scalar.js"(exports) {
973
976
  "use strict";
974
977
  var identity = require_identity();
975
978
  var Node = require_Node();
@@ -997,9 +1000,9 @@ var require_Scalar = __commonJS({
997
1000
  }
998
1001
  });
999
1002
 
1000
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/doc/createNode.js
1003
+ // ../../node_modules/yaml/dist/doc/createNode.js
1001
1004
  var require_createNode = __commonJS({
1002
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/doc/createNode.js"(exports) {
1005
+ "../../node_modules/yaml/dist/doc/createNode.js"(exports) {
1003
1006
  "use strict";
1004
1007
  var Alias = require_Alias();
1005
1008
  var identity = require_identity();
@@ -1072,9 +1075,9 @@ var require_createNode = __commonJS({
1072
1075
  }
1073
1076
  });
1074
1077
 
1075
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/nodes/Collection.js
1078
+ // ../../node_modules/yaml/dist/nodes/Collection.js
1076
1079
  var require_Collection = __commonJS({
1077
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/nodes/Collection.js"(exports) {
1080
+ "../../node_modules/yaml/dist/nodes/Collection.js"(exports) {
1078
1081
  "use strict";
1079
1082
  var createNode = require_createNode();
1080
1083
  var identity = require_identity();
@@ -1215,9 +1218,9 @@ var require_Collection = __commonJS({
1215
1218
  }
1216
1219
  });
1217
1220
 
1218
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/stringify/stringifyComment.js
1221
+ // ../../node_modules/yaml/dist/stringify/stringifyComment.js
1219
1222
  var require_stringifyComment = __commonJS({
1220
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
1223
+ "../../node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
1221
1224
  "use strict";
1222
1225
  var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
1223
1226
  function indentComment(comment, indent) {
@@ -1232,9 +1235,9 @@ var require_stringifyComment = __commonJS({
1232
1235
  }
1233
1236
  });
1234
1237
 
1235
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/stringify/foldFlowLines.js
1238
+ // ../../node_modules/yaml/dist/stringify/foldFlowLines.js
1236
1239
  var require_foldFlowLines = __commonJS({
1237
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
1240
+ "../../node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
1238
1241
  "use strict";
1239
1242
  var FOLD_FLOW = "flow";
1240
1243
  var FOLD_BLOCK = "block";
@@ -1368,9 +1371,9 @@ ${indent}${text3.slice(fold + 1, end2)}`;
1368
1371
  }
1369
1372
  });
1370
1373
 
1371
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/stringify/stringifyString.js
1374
+ // ../../node_modules/yaml/dist/stringify/stringifyString.js
1372
1375
  var require_stringifyString = __commonJS({
1373
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
1376
+ "../../node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
1374
1377
  "use strict";
1375
1378
  var Scalar = require_Scalar();
1376
1379
  var foldFlowLines = require_foldFlowLines();
@@ -1651,9 +1654,9 @@ ${indent}`);
1651
1654
  }
1652
1655
  });
1653
1656
 
1654
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/stringify/stringify.js
1657
+ // ../../node_modules/yaml/dist/stringify/stringify.js
1655
1658
  var require_stringify = __commonJS({
1656
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/stringify/stringify.js"(exports) {
1659
+ "../../node_modules/yaml/dist/stringify/stringify.js"(exports) {
1657
1660
  "use strict";
1658
1661
  var anchors = require_anchors();
1659
1662
  var identity = require_identity();
@@ -1775,9 +1778,9 @@ ${ctx.indent}${str}`;
1775
1778
  }
1776
1779
  });
1777
1780
 
1778
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/stringify/stringifyPair.js
1781
+ // ../../node_modules/yaml/dist/stringify/stringifyPair.js
1779
1782
  var require_stringifyPair = __commonJS({
1780
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
1783
+ "../../node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
1781
1784
  "use strict";
1782
1785
  var identity = require_identity();
1783
1786
  var Scalar = require_Scalar();
@@ -1908,9 +1911,9 @@ ${ctx.indent}`;
1908
1911
  }
1909
1912
  });
1910
1913
 
1911
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/log.js
1914
+ // ../../node_modules/yaml/dist/log.js
1912
1915
  var require_log = __commonJS({
1913
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/log.js"(exports) {
1916
+ "../../node_modules/yaml/dist/log.js"(exports) {
1914
1917
  "use strict";
1915
1918
  var node_process = __require("process");
1916
1919
  function debug(logLevel, ...messages) {
@@ -1930,9 +1933,9 @@ var require_log = __commonJS({
1930
1933
  }
1931
1934
  });
1932
1935
 
1933
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/yaml-1.1/merge.js
1936
+ // ../../node_modules/yaml/dist/schema/yaml-1.1/merge.js
1934
1937
  var require_merge = __commonJS({
1935
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports) {
1938
+ "../../node_modules/yaml/dist/schema/yaml-1.1/merge.js"(exports) {
1936
1939
  "use strict";
1937
1940
  var identity = require_identity();
1938
1941
  var Scalar = require_Scalar();
@@ -1990,9 +1993,9 @@ var require_merge = __commonJS({
1990
1993
  }
1991
1994
  });
1992
1995
 
1993
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/nodes/addPairToJSMap.js
1996
+ // ../../node_modules/yaml/dist/nodes/addPairToJSMap.js
1994
1997
  var require_addPairToJSMap = __commonJS({
1995
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
1998
+ "../../node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
1996
1999
  "use strict";
1997
2000
  var log = require_log();
1998
2001
  var merge = require_merge();
@@ -2054,9 +2057,9 @@ var require_addPairToJSMap = __commonJS({
2054
2057
  }
2055
2058
  });
2056
2059
 
2057
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/nodes/Pair.js
2060
+ // ../../node_modules/yaml/dist/nodes/Pair.js
2058
2061
  var require_Pair = __commonJS({
2059
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/nodes/Pair.js"(exports) {
2062
+ "../../node_modules/yaml/dist/nodes/Pair.js"(exports) {
2060
2063
  "use strict";
2061
2064
  var createNode = require_createNode();
2062
2065
  var stringifyPair = require_stringifyPair();
@@ -2094,9 +2097,9 @@ var require_Pair = __commonJS({
2094
2097
  }
2095
2098
  });
2096
2099
 
2097
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/stringify/stringifyCollection.js
2100
+ // ../../node_modules/yaml/dist/stringify/stringifyCollection.js
2098
2101
  var require_stringifyCollection = __commonJS({
2099
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
2102
+ "../../node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
2100
2103
  "use strict";
2101
2104
  var identity = require_identity();
2102
2105
  var stringify = require_stringify();
@@ -2245,9 +2248,9 @@ ${indent}${end}`;
2245
2248
  }
2246
2249
  });
2247
2250
 
2248
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/nodes/YAMLMap.js
2251
+ // ../../node_modules/yaml/dist/nodes/YAMLMap.js
2249
2252
  var require_YAMLMap = __commonJS({
2250
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
2253
+ "../../node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
2251
2254
  "use strict";
2252
2255
  var stringifyCollection = require_stringifyCollection();
2253
2256
  var addPairToJSMap = require_addPairToJSMap();
@@ -2389,9 +2392,9 @@ var require_YAMLMap = __commonJS({
2389
2392
  }
2390
2393
  });
2391
2394
 
2392
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/common/map.js
2395
+ // ../../node_modules/yaml/dist/schema/common/map.js
2393
2396
  var require_map = __commonJS({
2394
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/common/map.js"(exports) {
2397
+ "../../node_modules/yaml/dist/schema/common/map.js"(exports) {
2395
2398
  "use strict";
2396
2399
  var identity = require_identity();
2397
2400
  var YAMLMap = require_YAMLMap();
@@ -2411,9 +2414,9 @@ var require_map = __commonJS({
2411
2414
  }
2412
2415
  });
2413
2416
 
2414
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/nodes/YAMLSeq.js
2417
+ // ../../node_modules/yaml/dist/nodes/YAMLSeq.js
2415
2418
  var require_YAMLSeq = __commonJS({
2416
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
2419
+ "../../node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
2417
2420
  "use strict";
2418
2421
  var createNode = require_createNode();
2419
2422
  var stringifyCollection = require_stringifyCollection();
@@ -2527,9 +2530,9 @@ var require_YAMLSeq = __commonJS({
2527
2530
  }
2528
2531
  });
2529
2532
 
2530
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/common/seq.js
2533
+ // ../../node_modules/yaml/dist/schema/common/seq.js
2531
2534
  var require_seq = __commonJS({
2532
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/common/seq.js"(exports) {
2535
+ "../../node_modules/yaml/dist/schema/common/seq.js"(exports) {
2533
2536
  "use strict";
2534
2537
  var identity = require_identity();
2535
2538
  var YAMLSeq = require_YAMLSeq();
@@ -2549,9 +2552,9 @@ var require_seq = __commonJS({
2549
2552
  }
2550
2553
  });
2551
2554
 
2552
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/common/string.js
2555
+ // ../../node_modules/yaml/dist/schema/common/string.js
2553
2556
  var require_string = __commonJS({
2554
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/common/string.js"(exports) {
2557
+ "../../node_modules/yaml/dist/schema/common/string.js"(exports) {
2555
2558
  "use strict";
2556
2559
  var stringifyString = require_stringifyString();
2557
2560
  var string = {
@@ -2568,9 +2571,9 @@ var require_string = __commonJS({
2568
2571
  }
2569
2572
  });
2570
2573
 
2571
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/common/null.js
2574
+ // ../../node_modules/yaml/dist/schema/common/null.js
2572
2575
  var require_null = __commonJS({
2573
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/common/null.js"(exports) {
2576
+ "../../node_modules/yaml/dist/schema/common/null.js"(exports) {
2574
2577
  "use strict";
2575
2578
  var Scalar = require_Scalar();
2576
2579
  var nullTag = {
@@ -2586,9 +2589,9 @@ var require_null = __commonJS({
2586
2589
  }
2587
2590
  });
2588
2591
 
2589
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/core/bool.js
2592
+ // ../../node_modules/yaml/dist/schema/core/bool.js
2590
2593
  var require_bool = __commonJS({
2591
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/core/bool.js"(exports) {
2594
+ "../../node_modules/yaml/dist/schema/core/bool.js"(exports) {
2592
2595
  "use strict";
2593
2596
  var Scalar = require_Scalar();
2594
2597
  var boolTag = {
@@ -2610,9 +2613,9 @@ var require_bool = __commonJS({
2610
2613
  }
2611
2614
  });
2612
2615
 
2613
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/stringify/stringifyNumber.js
2616
+ // ../../node_modules/yaml/dist/stringify/stringifyNumber.js
2614
2617
  var require_stringifyNumber = __commonJS({
2615
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
2618
+ "../../node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
2616
2619
  "use strict";
2617
2620
  function stringifyNumber({ format, minFractionDigits, tag, value }) {
2618
2621
  if (typeof value === "bigint")
@@ -2637,9 +2640,9 @@ var require_stringifyNumber = __commonJS({
2637
2640
  }
2638
2641
  });
2639
2642
 
2640
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/core/float.js
2643
+ // ../../node_modules/yaml/dist/schema/core/float.js
2641
2644
  var require_float = __commonJS({
2642
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/core/float.js"(exports) {
2645
+ "../../node_modules/yaml/dist/schema/core/float.js"(exports) {
2643
2646
  "use strict";
2644
2647
  var Scalar = require_Scalar();
2645
2648
  var stringifyNumber = require_stringifyNumber();
@@ -2683,9 +2686,9 @@ var require_float = __commonJS({
2683
2686
  }
2684
2687
  });
2685
2688
 
2686
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/core/int.js
2689
+ // ../../node_modules/yaml/dist/schema/core/int.js
2687
2690
  var require_int = __commonJS({
2688
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/core/int.js"(exports) {
2691
+ "../../node_modules/yaml/dist/schema/core/int.js"(exports) {
2689
2692
  "use strict";
2690
2693
  var stringifyNumber = require_stringifyNumber();
2691
2694
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -2728,9 +2731,9 @@ var require_int = __commonJS({
2728
2731
  }
2729
2732
  });
2730
2733
 
2731
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/core/schema.js
2734
+ // ../../node_modules/yaml/dist/schema/core/schema.js
2732
2735
  var require_schema = __commonJS({
2733
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/core/schema.js"(exports) {
2736
+ "../../node_modules/yaml/dist/schema/core/schema.js"(exports) {
2734
2737
  "use strict";
2735
2738
  var map = require_map();
2736
2739
  var _null = require_null();
@@ -2756,9 +2759,9 @@ var require_schema = __commonJS({
2756
2759
  }
2757
2760
  });
2758
2761
 
2759
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/json/schema.js
2762
+ // ../../node_modules/yaml/dist/schema/json/schema.js
2760
2763
  var require_schema2 = __commonJS({
2761
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/json/schema.js"(exports) {
2764
+ "../../node_modules/yaml/dist/schema/json/schema.js"(exports) {
2762
2765
  "use strict";
2763
2766
  var Scalar = require_Scalar();
2764
2767
  var map = require_map();
@@ -2823,9 +2826,9 @@ var require_schema2 = __commonJS({
2823
2826
  }
2824
2827
  });
2825
2828
 
2826
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/yaml-1.1/binary.js
2829
+ // ../../node_modules/yaml/dist/schema/yaml-1.1/binary.js
2827
2830
  var require_binary = __commonJS({
2828
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
2831
+ "../../node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
2829
2832
  "use strict";
2830
2833
  var node_buffer = __require("buffer");
2831
2834
  var Scalar = require_Scalar();
@@ -2889,9 +2892,9 @@ var require_binary = __commonJS({
2889
2892
  }
2890
2893
  });
2891
2894
 
2892
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
2895
+ // ../../node_modules/yaml/dist/schema/yaml-1.1/pairs.js
2893
2896
  var require_pairs = __commonJS({
2894
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
2897
+ "../../node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
2895
2898
  "use strict";
2896
2899
  var identity = require_identity();
2897
2900
  var Pair = require_Pair();
@@ -2967,9 +2970,9 @@ ${cn.comment}` : item.comment;
2967
2970
  }
2968
2971
  });
2969
2972
 
2970
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/yaml-1.1/omap.js
2973
+ // ../../node_modules/yaml/dist/schema/yaml-1.1/omap.js
2971
2974
  var require_omap = __commonJS({
2972
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
2975
+ "../../node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
2973
2976
  "use strict";
2974
2977
  var identity = require_identity();
2975
2978
  var toJS = require_toJS();
@@ -3045,9 +3048,9 @@ var require_omap = __commonJS({
3045
3048
  }
3046
3049
  });
3047
3050
 
3048
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/yaml-1.1/bool.js
3051
+ // ../../node_modules/yaml/dist/schema/yaml-1.1/bool.js
3049
3052
  var require_bool2 = __commonJS({
3050
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
3053
+ "../../node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
3051
3054
  "use strict";
3052
3055
  var Scalar = require_Scalar();
3053
3056
  function boolStringify({ value, source }, ctx) {
@@ -3077,9 +3080,9 @@ var require_bool2 = __commonJS({
3077
3080
  }
3078
3081
  });
3079
3082
 
3080
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/yaml-1.1/float.js
3083
+ // ../../node_modules/yaml/dist/schema/yaml-1.1/float.js
3081
3084
  var require_float2 = __commonJS({
3082
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
3085
+ "../../node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
3083
3086
  "use strict";
3084
3087
  var Scalar = require_Scalar();
3085
3088
  var stringifyNumber = require_stringifyNumber();
@@ -3126,9 +3129,9 @@ var require_float2 = __commonJS({
3126
3129
  }
3127
3130
  });
3128
3131
 
3129
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/yaml-1.1/int.js
3132
+ // ../../node_modules/yaml/dist/schema/yaml-1.1/int.js
3130
3133
  var require_int2 = __commonJS({
3131
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
3134
+ "../../node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
3132
3135
  "use strict";
3133
3136
  var stringifyNumber = require_stringifyNumber();
3134
3137
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -3205,9 +3208,9 @@ var require_int2 = __commonJS({
3205
3208
  }
3206
3209
  });
3207
3210
 
3208
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/yaml-1.1/set.js
3211
+ // ../../node_modules/yaml/dist/schema/yaml-1.1/set.js
3209
3212
  var require_set = __commonJS({
3210
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
3213
+ "../../node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
3211
3214
  "use strict";
3212
3215
  var identity = require_identity();
3213
3216
  var Pair = require_Pair();
@@ -3294,9 +3297,9 @@ var require_set = __commonJS({
3294
3297
  }
3295
3298
  });
3296
3299
 
3297
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
3300
+ // ../../node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
3298
3301
  var require_timestamp = __commonJS({
3299
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
3302
+ "../../node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
3300
3303
  "use strict";
3301
3304
  var stringifyNumber = require_stringifyNumber();
3302
3305
  function parseSexagesimal(str, asBigInt) {
@@ -3382,9 +3385,9 @@ var require_timestamp = __commonJS({
3382
3385
  }
3383
3386
  });
3384
3387
 
3385
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/yaml-1.1/schema.js
3388
+ // ../../node_modules/yaml/dist/schema/yaml-1.1/schema.js
3386
3389
  var require_schema3 = __commonJS({
3387
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
3390
+ "../../node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
3388
3391
  "use strict";
3389
3392
  var map = require_map();
3390
3393
  var _null = require_null();
@@ -3426,9 +3429,9 @@ var require_schema3 = __commonJS({
3426
3429
  }
3427
3430
  });
3428
3431
 
3429
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/tags.js
3432
+ // ../../node_modules/yaml/dist/schema/tags.js
3430
3433
  var require_tags = __commonJS({
3431
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/tags.js"(exports) {
3434
+ "../../node_modules/yaml/dist/schema/tags.js"(exports) {
3432
3435
  "use strict";
3433
3436
  var map = require_map();
3434
3437
  var _null = require_null();
@@ -3520,9 +3523,9 @@ var require_tags = __commonJS({
3520
3523
  }
3521
3524
  });
3522
3525
 
3523
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/Schema.js
3526
+ // ../../node_modules/yaml/dist/schema/Schema.js
3524
3527
  var require_Schema = __commonJS({
3525
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/schema/Schema.js"(exports) {
3528
+ "../../node_modules/yaml/dist/schema/Schema.js"(exports) {
3526
3529
  "use strict";
3527
3530
  var identity = require_identity();
3528
3531
  var map = require_map();
@@ -3552,9 +3555,9 @@ var require_Schema = __commonJS({
3552
3555
  }
3553
3556
  });
3554
3557
 
3555
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/stringify/stringifyDocument.js
3558
+ // ../../node_modules/yaml/dist/stringify/stringifyDocument.js
3556
3559
  var require_stringifyDocument = __commonJS({
3557
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
3560
+ "../../node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
3558
3561
  "use strict";
3559
3562
  var identity = require_identity();
3560
3563
  var stringify = require_stringify();
@@ -3632,9 +3635,9 @@ var require_stringifyDocument = __commonJS({
3632
3635
  }
3633
3636
  });
3634
3637
 
3635
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/doc/Document.js
3638
+ // ../../node_modules/yaml/dist/doc/Document.js
3636
3639
  var require_Document = __commonJS({
3637
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/doc/Document.js"(exports) {
3640
+ "../../node_modules/yaml/dist/doc/Document.js"(exports) {
3638
3641
  "use strict";
3639
3642
  var Alias = require_Alias();
3640
3643
  var Collection = require_Collection();
@@ -3941,9 +3944,9 @@ var require_Document = __commonJS({
3941
3944
  }
3942
3945
  });
3943
3946
 
3944
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/errors.js
3947
+ // ../../node_modules/yaml/dist/errors.js
3945
3948
  var require_errors = __commonJS({
3946
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/errors.js"(exports) {
3949
+ "../../node_modules/yaml/dist/errors.js"(exports) {
3947
3950
  "use strict";
3948
3951
  var YAMLError = class extends Error {
3949
3952
  constructor(name, pos, code, message) {
@@ -4006,9 +4009,9 @@ ${pointer}
4006
4009
  }
4007
4010
  });
4008
4011
 
4009
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/resolve-props.js
4012
+ // ../../node_modules/yaml/dist/compose/resolve-props.js
4010
4013
  var require_resolve_props = __commonJS({
4011
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/resolve-props.js"(exports) {
4014
+ "../../node_modules/yaml/dist/compose/resolve-props.js"(exports) {
4012
4015
  "use strict";
4013
4016
  function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
4014
4017
  let spaceBefore = false;
@@ -4139,9 +4142,9 @@ var require_resolve_props = __commonJS({
4139
4142
  }
4140
4143
  });
4141
4144
 
4142
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/util-contains-newline.js
4145
+ // ../../node_modules/yaml/dist/compose/util-contains-newline.js
4143
4146
  var require_util_contains_newline = __commonJS({
4144
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
4147
+ "../../node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
4145
4148
  "use strict";
4146
4149
  function containsNewline(key2) {
4147
4150
  if (!key2)
@@ -4181,9 +4184,9 @@ var require_util_contains_newline = __commonJS({
4181
4184
  }
4182
4185
  });
4183
4186
 
4184
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/util-flow-indent-check.js
4187
+ // ../../node_modules/yaml/dist/compose/util-flow-indent-check.js
4185
4188
  var require_util_flow_indent_check = __commonJS({
4186
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports) {
4189
+ "../../node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports) {
4187
4190
  "use strict";
4188
4191
  var utilContainsNewline = require_util_contains_newline();
4189
4192
  function flowIndentCheck(indent, fc, onError) {
@@ -4199,9 +4202,9 @@ var require_util_flow_indent_check = __commonJS({
4199
4202
  }
4200
4203
  });
4201
4204
 
4202
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/util-map-includes.js
4205
+ // ../../node_modules/yaml/dist/compose/util-map-includes.js
4203
4206
  var require_util_map_includes = __commonJS({
4204
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
4207
+ "../../node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
4205
4208
  "use strict";
4206
4209
  var identity = require_identity();
4207
4210
  function mapIncludes(ctx, items, search) {
@@ -4215,9 +4218,9 @@ var require_util_map_includes = __commonJS({
4215
4218
  }
4216
4219
  });
4217
4220
 
4218
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/resolve-block-map.js
4221
+ // ../../node_modules/yaml/dist/compose/resolve-block-map.js
4219
4222
  var require_resolve_block_map = __commonJS({
4220
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
4223
+ "../../node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
4221
4224
  "use strict";
4222
4225
  var Pair = require_Pair();
4223
4226
  var YAMLMap = require_YAMLMap();
@@ -4323,9 +4326,9 @@ var require_resolve_block_map = __commonJS({
4323
4326
  }
4324
4327
  });
4325
4328
 
4326
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/resolve-block-seq.js
4329
+ // ../../node_modules/yaml/dist/compose/resolve-block-seq.js
4327
4330
  var require_resolve_block_seq = __commonJS({
4328
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
4331
+ "../../node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
4329
4332
  "use strict";
4330
4333
  var YAMLSeq = require_YAMLSeq();
4331
4334
  var resolveProps = require_resolve_props();
@@ -4374,9 +4377,9 @@ var require_resolve_block_seq = __commonJS({
4374
4377
  }
4375
4378
  });
4376
4379
 
4377
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/resolve-end.js
4380
+ // ../../node_modules/yaml/dist/compose/resolve-end.js
4378
4381
  var require_resolve_end = __commonJS({
4379
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/resolve-end.js"(exports) {
4382
+ "../../node_modules/yaml/dist/compose/resolve-end.js"(exports) {
4380
4383
  "use strict";
4381
4384
  function resolveEnd(end, offset, reqSpace, onError) {
4382
4385
  let comment = "";
@@ -4417,9 +4420,9 @@ var require_resolve_end = __commonJS({
4417
4420
  }
4418
4421
  });
4419
4422
 
4420
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/resolve-flow-collection.js
4423
+ // ../../node_modules/yaml/dist/compose/resolve-flow-collection.js
4421
4424
  var require_resolve_flow_collection = __commonJS({
4422
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
4425
+ "../../node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
4423
4426
  "use strict";
4424
4427
  var identity = require_identity();
4425
4428
  var Pair = require_Pair();
@@ -4611,9 +4614,9 @@ var require_resolve_flow_collection = __commonJS({
4611
4614
  }
4612
4615
  });
4613
4616
 
4614
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/compose-collection.js
4617
+ // ../../node_modules/yaml/dist/compose/compose-collection.js
4615
4618
  var require_compose_collection = __commonJS({
4616
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/compose-collection.js"(exports) {
4619
+ "../../node_modules/yaml/dist/compose/compose-collection.js"(exports) {
4617
4620
  "use strict";
4618
4621
  var identity = require_identity();
4619
4622
  var Scalar = require_Scalar();
@@ -4676,9 +4679,9 @@ var require_compose_collection = __commonJS({
4676
4679
  }
4677
4680
  });
4678
4681
 
4679
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/resolve-block-scalar.js
4682
+ // ../../node_modules/yaml/dist/compose/resolve-block-scalar.js
4680
4683
  var require_resolve_block_scalar = __commonJS({
4681
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
4684
+ "../../node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
4682
4685
  "use strict";
4683
4686
  var Scalar = require_Scalar();
4684
4687
  function resolveBlockScalar(ctx, scalar, onError) {
@@ -4857,9 +4860,9 @@ var require_resolve_block_scalar = __commonJS({
4857
4860
  }
4858
4861
  });
4859
4862
 
4860
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/resolve-flow-scalar.js
4863
+ // ../../node_modules/yaml/dist/compose/resolve-flow-scalar.js
4861
4864
  var require_resolve_flow_scalar = __commonJS({
4862
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
4865
+ "../../node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
4863
4866
  "use strict";
4864
4867
  var Scalar = require_Scalar();
4865
4868
  var resolveEnd = require_resolve_end();
@@ -5075,9 +5078,9 @@ var require_resolve_flow_scalar = __commonJS({
5075
5078
  }
5076
5079
  });
5077
5080
 
5078
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/compose-scalar.js
5081
+ // ../../node_modules/yaml/dist/compose/compose-scalar.js
5079
5082
  var require_compose_scalar = __commonJS({
5080
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
5083
+ "../../node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
5081
5084
  "use strict";
5082
5085
  var identity = require_identity();
5083
5086
  var Scalar = require_Scalar();
@@ -5156,9 +5159,9 @@ var require_compose_scalar = __commonJS({
5156
5159
  }
5157
5160
  });
5158
5161
 
5159
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/util-empty-scalar-position.js
5162
+ // ../../node_modules/yaml/dist/compose/util-empty-scalar-position.js
5160
5163
  var require_util_empty_scalar_position = __commonJS({
5161
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports) {
5164
+ "../../node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports) {
5162
5165
  "use strict";
5163
5166
  function emptyScalarPosition(offset, before, pos) {
5164
5167
  if (before) {
@@ -5186,9 +5189,9 @@ var require_util_empty_scalar_position = __commonJS({
5186
5189
  }
5187
5190
  });
5188
5191
 
5189
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/compose-node.js
5192
+ // ../../node_modules/yaml/dist/compose/compose-node.js
5190
5193
  var require_compose_node = __commonJS({
5191
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/compose-node.js"(exports) {
5194
+ "../../node_modules/yaml/dist/compose/compose-node.js"(exports) {
5192
5195
  "use strict";
5193
5196
  var Alias = require_Alias();
5194
5197
  var identity = require_identity();
@@ -5292,9 +5295,9 @@ var require_compose_node = __commonJS({
5292
5295
  }
5293
5296
  });
5294
5297
 
5295
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/compose-doc.js
5298
+ // ../../node_modules/yaml/dist/compose/compose-doc.js
5296
5299
  var require_compose_doc = __commonJS({
5297
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/compose-doc.js"(exports) {
5300
+ "../../node_modules/yaml/dist/compose/compose-doc.js"(exports) {
5298
5301
  "use strict";
5299
5302
  var Document = require_Document();
5300
5303
  var composeNode = require_compose_node();
@@ -5335,9 +5338,9 @@ var require_compose_doc = __commonJS({
5335
5338
  }
5336
5339
  });
5337
5340
 
5338
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/composer.js
5341
+ // ../../node_modules/yaml/dist/compose/composer.js
5339
5342
  var require_composer = __commonJS({
5340
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/compose/composer.js"(exports) {
5343
+ "../../node_modules/yaml/dist/compose/composer.js"(exports) {
5341
5344
  "use strict";
5342
5345
  var node_process = __require("process");
5343
5346
  var directives = require_directives();
@@ -5543,9 +5546,9 @@ ${end.comment}` : end.comment;
5543
5546
  }
5544
5547
  });
5545
5548
 
5546
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/parse/cst-scalar.js
5549
+ // ../../node_modules/yaml/dist/parse/cst-scalar.js
5547
5550
  var require_cst_scalar = __commonJS({
5548
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
5551
+ "../../node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
5549
5552
  "use strict";
5550
5553
  var resolveBlockScalar = require_resolve_block_scalar();
5551
5554
  var resolveFlowScalar = require_resolve_flow_scalar();
@@ -5728,9 +5731,9 @@ var require_cst_scalar = __commonJS({
5728
5731
  }
5729
5732
  });
5730
5733
 
5731
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/parse/cst-stringify.js
5734
+ // ../../node_modules/yaml/dist/parse/cst-stringify.js
5732
5735
  var require_cst_stringify = __commonJS({
5733
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
5736
+ "../../node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
5734
5737
  "use strict";
5735
5738
  var stringify = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
5736
5739
  function stringifyToken(token) {
@@ -5789,9 +5792,9 @@ var require_cst_stringify = __commonJS({
5789
5792
  }
5790
5793
  });
5791
5794
 
5792
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/parse/cst-visit.js
5795
+ // ../../node_modules/yaml/dist/parse/cst-visit.js
5793
5796
  var require_cst_visit = __commonJS({
5794
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/parse/cst-visit.js"(exports) {
5797
+ "../../node_modules/yaml/dist/parse/cst-visit.js"(exports) {
5795
5798
  "use strict";
5796
5799
  var BREAK = Symbol("break visit");
5797
5800
  var SKIP = Symbol("skip children");
@@ -5851,9 +5854,9 @@ var require_cst_visit = __commonJS({
5851
5854
  }
5852
5855
  });
5853
5856
 
5854
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/parse/cst.js
5857
+ // ../../node_modules/yaml/dist/parse/cst.js
5855
5858
  var require_cst = __commonJS({
5856
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/parse/cst.js"(exports) {
5859
+ "../../node_modules/yaml/dist/parse/cst.js"(exports) {
5857
5860
  "use strict";
5858
5861
  var cstScalar = require_cst_scalar();
5859
5862
  var cstStringify = require_cst_stringify();
@@ -5953,9 +5956,9 @@ var require_cst = __commonJS({
5953
5956
  }
5954
5957
  });
5955
5958
 
5956
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/parse/lexer.js
5959
+ // ../../node_modules/yaml/dist/parse/lexer.js
5957
5960
  var require_lexer = __commonJS({
5958
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/parse/lexer.js"(exports) {
5961
+ "../../node_modules/yaml/dist/parse/lexer.js"(exports) {
5959
5962
  "use strict";
5960
5963
  var cst = require_cst();
5961
5964
  function isEmpty(ch) {
@@ -6537,9 +6540,9 @@ var require_lexer = __commonJS({
6537
6540
  }
6538
6541
  });
6539
6542
 
6540
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/parse/line-counter.js
6543
+ // ../../node_modules/yaml/dist/parse/line-counter.js
6541
6544
  var require_line_counter = __commonJS({
6542
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/parse/line-counter.js"(exports) {
6545
+ "../../node_modules/yaml/dist/parse/line-counter.js"(exports) {
6543
6546
  "use strict";
6544
6547
  var LineCounter = class {
6545
6548
  constructor() {
@@ -6568,9 +6571,9 @@ var require_line_counter = __commonJS({
6568
6571
  }
6569
6572
  });
6570
6573
 
6571
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/parse/parser.js
6574
+ // ../../node_modules/yaml/dist/parse/parser.js
6572
6575
  var require_parser = __commonJS({
6573
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/parse/parser.js"(exports) {
6576
+ "../../node_modules/yaml/dist/parse/parser.js"(exports) {
6574
6577
  "use strict";
6575
6578
  var node_process = __require("process");
6576
6579
  var cst = require_cst();
@@ -7438,9 +7441,9 @@ var require_parser = __commonJS({
7438
7441
  }
7439
7442
  });
7440
7443
 
7441
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/public-api.js
7444
+ // ../../node_modules/yaml/dist/public-api.js
7442
7445
  var require_public_api = __commonJS({
7443
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/public-api.js"(exports) {
7446
+ "../../node_modules/yaml/dist/public-api.js"(exports) {
7444
7447
  "use strict";
7445
7448
  var composer = require_composer();
7446
7449
  var Document = require_Document();
@@ -7535,9 +7538,9 @@ var require_public_api = __commonJS({
7535
7538
  }
7536
7539
  });
7537
7540
 
7538
- // ../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/index.js
7541
+ // ../../node_modules/yaml/dist/index.js
7539
7542
  var require_dist2 = __commonJS({
7540
- "../../node_modules/@earendil-works/pi-agent-core/node_modules/yaml/dist/index.js"(exports) {
7543
+ "../../node_modules/yaml/dist/index.js"(exports) {
7541
7544
  "use strict";
7542
7545
  var composer = require_composer();
7543
7546
  var Document = require_Document();
@@ -13341,13 +13344,13 @@ var bedrockModuleOverride;
13341
13344
  var bedrockConverseStreamApi = () => lazyApi(async () => bedrockModuleOverride ?? await importNodeOnlyApi("./bedrock-converse-stream.ts"));
13342
13345
 
13343
13346
  // ../../node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.lazy.js
13344
- var googleGenerativeAIApi = () => lazyApi(() => import("../../google-generative-ai-WBIK2BRB.js"));
13347
+ var googleGenerativeAIApi = () => lazyApi(() => import("../../google-generative-ai-RT2OOQDJ.js"));
13345
13348
 
13346
13349
  // ../../node_modules/@earendil-works/pi-ai/dist/api/google-vertex.lazy.js
13347
- var googleVertexApi = () => lazyApi(() => import("../../google-vertex-2TMP5HDA.js"));
13350
+ var googleVertexApi = () => lazyApi(() => import("../../google-vertex-HVFMVQVY.js"));
13348
13351
 
13349
13352
  // ../../node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.lazy.js
13350
- var mistralConversationsApi = () => lazyApi(() => import("../../mistral-conversations-X6KT35XW.js"));
13353
+ var mistralConversationsApi = () => lazyApi(() => import("../../mistral-conversations-KIOTOF73.js"));
13351
13354
 
13352
13355
  // ../../node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.lazy.js
13353
13356
  var openAICodexResponsesApi = () => lazyApi(() => import("../../openai-codex-responses-HYLTKNTN.js"));
@@ -47641,7 +47644,8 @@ async function executeCardDataPipeline(input) {
47641
47644
  }
47642
47645
  };
47643
47646
  }
47644
- const data = normalizeCardDataValue(input.config.dataModelSchema, transformed.data);
47647
+ const { dataModelSchema, allowPartialModel } = input.config;
47648
+ const data = normalizeCardDataValue(dataModelSchema, allowPartialModel === true ? projectCardData(dataModelSchema, transformed.data) : transformed.data, true, allowPartialModel !== true);
47645
47649
  assertSchema(input.config.dataModelSchema, data, "CARD_PIPELINE_OUTPUT_SCHEMA_MISMATCH", "\u6570\u636E\u8F6C\u6362\u7ED3\u679C", void 0, "output");
47646
47650
  return createPresentationResult(input.resource, input.config, data, input.cardProvider, input.signal);
47647
47651
  }
@@ -47744,6 +47748,40 @@ var CardRenderMcpServer = class {
47744
47748
  continue;
47745
47749
  }
47746
47750
  const name = createCardPresentationToolName(resource.resourceId);
47751
+ if (config.schemaVersion === "4" && config.dataMode === "model") {
47752
+ const inputSchema = config.modelInputSchema;
47753
+ tools.push({
47754
+ name,
47755
+ modelName: name,
47756
+ resourceId: resource.resourceId,
47757
+ label: config.displayName,
47758
+ description: [
47759
+ config.description,
47760
+ config.whenToUse,
47761
+ config.whenNotToUse,
47762
+ "\u6839\u636E\u5BF9\u8BDD\u586B\u5199 dataModel \u5E76\u5C55\u793A\u5361\u7247\u3002"
47763
+ ].filter(Boolean).join("\n"),
47764
+ inputSchema,
47765
+ execute: async (args, signal) => {
47766
+ const [issue] = validateJsonSchemaValue(inputSchema, args);
47767
+ if (issue)
47768
+ throw new Error(`${issue.path}: ${issue.message}`);
47769
+ const viewModel = structuredClone(args.dataModel);
47770
+ const resolved = await resolveStandardCardExecution(resource, config, this.cardProvider, signal);
47771
+ for (const field of resolved.fields) {
47772
+ if (field.source !== "runtime-context" || !field.runtimeContextKey)
47773
+ continue;
47774
+ const value = this.runtimeContext[field.runtimeContextKey];
47775
+ if (value !== void 0)
47776
+ writeJsonPointer(viewModel, field.path, value);
47777
+ else if (field.required)
47778
+ throw new Error(`\u7F3A\u5C11\u8FD0\u884C\u65F6\u5B57\u6BB5 ${field.path}`);
47779
+ }
47780
+ return createPresentationResult(resource, resolved, viewModel, this.cardProvider, signal);
47781
+ }
47782
+ });
47783
+ continue;
47784
+ }
47747
47785
  if (config.schemaVersion === "4" && config.dataMode === "pipeline") {
47748
47786
  tools.push({
47749
47787
  name,
@@ -50709,61 +50747,6 @@ function readRemoteAgentResult(value) {
50709
50747
  // ../linkque-agent-runtime/dist/esm/impl/plugin/remoteAgent/openGwTransport.js
50710
50748
  import { createHash as createHash5 } from "node:crypto";
50711
50749
 
50712
- // ../linkque-agent-runtime/dist/esm/impl/plugin/remoteAgent/sseDecoder.js
50713
- var RemoteSseDecoder = class {
50714
- maxEventBytes;
50715
- decoder = new TextDecoder("utf-8", { fatal: true });
50716
- line = "";
50717
- data = [];
50718
- bytes = 0;
50719
- afterCR = false;
50720
- constructor(maxEventBytes = 1024 * 1024) {
50721
- this.maxEventBytes = maxEventBytes;
50722
- }
50723
- *push(chunk) {
50724
- for (let offset = 0; offset < chunk.length; offset += 4096) {
50725
- yield* this.characters(this.decoder.decode(chunk.subarray(offset, offset + 4096), {
50726
- stream: true
50727
- }));
50728
- }
50729
- }
50730
- finish() {
50731
- for (const _event of this.characters(this.decoder.decode())) {
50732
- throw new RemoteAgentError("A2A_INCOMPLETE_FRAME");
50733
- }
50734
- if (this.line || this.data.length)
50735
- throw new RemoteAgentError("A2A_INCOMPLETE_FRAME");
50736
- }
50737
- *characters(text3) {
50738
- for (const char of text3) {
50739
- if (this.afterCR && char === "\n") {
50740
- this.afterCR = false;
50741
- continue;
50742
- }
50743
- this.afterCR = char === "\r";
50744
- this.bytes += Buffer.byteLength(char);
50745
- if (this.bytes > this.maxEventBytes)
50746
- throw new RemoteAgentError("A2A_EVENT_TOO_LARGE");
50747
- if (char !== "\n" && char !== "\r") {
50748
- this.line += char;
50749
- continue;
50750
- }
50751
- const line = this.line;
50752
- this.line = "";
50753
- if (line === "") {
50754
- const data = this.data;
50755
- this.data = [];
50756
- this.bytes = 0;
50757
- if (data.length)
50758
- yield data.join("\n");
50759
- } else if (line === "data" || line.startsWith("data:")) {
50760
- const value = line === "data" ? "" : line.slice(5);
50761
- this.data.push(value.startsWith(" ") ? value.slice(1) : value);
50762
- }
50763
- }
50764
- }
50765
- };
50766
-
50767
50750
  // ../linkque-agent-runtime/dist/esm/impl/plugin/remoteAgent/openGwAnswerOutput.js
50768
50751
  var OpenGwAnswerOutput = class {
50769
50752
  request;
@@ -50860,6 +50843,9 @@ var OpenGwCapture = class {
50860
50843
  [ETelemetryAttribute.GEN_AI_TOOL_CALL_ID]: request.toolCallId
50861
50844
  };
50862
50845
  }
50846
+ diagnostic(event) {
50847
+ this.record("linkque.remote_agent.diagnostic", {}, { ...event });
50848
+ }
50863
50849
  outgoing(body, url) {
50864
50850
  if (!this.request.context.observation?.enabled)
50865
50851
  return;
@@ -51056,6 +51042,61 @@ var RemotePresentation = class {
51056
51042
  }
51057
51043
  };
51058
51044
 
51045
+ // ../linkque-agent-runtime/dist/esm/impl/plugin/remoteAgent/sseDecoder.js
51046
+ var RemoteSseDecoder = class {
51047
+ maxEventBytes;
51048
+ decoder = new TextDecoder("utf-8", { fatal: true });
51049
+ line = "";
51050
+ data = [];
51051
+ bytes = 0;
51052
+ afterCR = false;
51053
+ constructor(maxEventBytes = 1024 * 1024) {
51054
+ this.maxEventBytes = maxEventBytes;
51055
+ }
51056
+ *push(chunk) {
51057
+ for (let offset = 0; offset < chunk.length; offset += 4096) {
51058
+ yield* this.characters(this.decoder.decode(chunk.subarray(offset, offset + 4096), {
51059
+ stream: true
51060
+ }));
51061
+ }
51062
+ }
51063
+ finish() {
51064
+ for (const _event of this.characters(this.decoder.decode())) {
51065
+ throw new RemoteAgentError("A2A_INCOMPLETE_FRAME");
51066
+ }
51067
+ if (this.line || this.data.length)
51068
+ throw new RemoteAgentError("A2A_INCOMPLETE_FRAME");
51069
+ }
51070
+ *characters(text3) {
51071
+ for (const char of text3) {
51072
+ if (this.afterCR && char === "\n") {
51073
+ this.afterCR = false;
51074
+ continue;
51075
+ }
51076
+ this.afterCR = char === "\r";
51077
+ this.bytes += Buffer.byteLength(char);
51078
+ if (this.bytes > this.maxEventBytes)
51079
+ throw new RemoteAgentError("A2A_EVENT_TOO_LARGE");
51080
+ if (char !== "\n" && char !== "\r") {
51081
+ this.line += char;
51082
+ continue;
51083
+ }
51084
+ const line = this.line;
51085
+ this.line = "";
51086
+ if (line === "") {
51087
+ const data = this.data;
51088
+ this.data = [];
51089
+ this.bytes = 0;
51090
+ if (data.length)
51091
+ yield data.join("\n");
51092
+ } else if (line === "data" || line.startsWith("data:")) {
51093
+ const value = line === "data" ? "" : line.slice(5);
51094
+ this.data.push(value.startsWith(" ") ? value.slice(1) : value);
51095
+ }
51096
+ }
51097
+ }
51098
+ };
51099
+
51059
51100
  // ../linkque-agent-runtime/dist/esm/impl/plugin/remoteAgent/openGwTransport.js
51060
51101
  var OpenGwRemoteAgentTransport = class {
51061
51102
  options;
@@ -51100,6 +51141,8 @@ var OpenGwRemoteAgentTransport = class {
51100
51141
  let answer;
51101
51142
  let outcome;
51102
51143
  let requestSent = false;
51144
+ let stage = "prepare";
51145
+ let authorizationRequired = false;
51103
51146
  const capture = new OpenGwCapture(request, this.options.maxCaptureBytes ?? 1024 * 1024);
51104
51147
  try {
51105
51148
  const presentation = new RemotePresentation(this.options.presentationAdapters ?? [], { request, signal, profile });
@@ -51122,13 +51165,18 @@ var OpenGwRemoteAgentTransport = class {
51122
51165
  });
51123
51166
  if (Buffer.byteLength(body) > 65536)
51124
51167
  throw new RemoteAgentError("A2A_REQUEST_TOO_LARGE");
51168
+ stage = "sign";
51169
+ capture.diagnostic({ stage, outcome: "started" });
51125
51170
  const credentials = await waitWithSignal(() => this.options.sign({
51171
+ diagnostic: (event) => capture.diagnostic(event),
51126
51172
  agentId: request.scope.agentId,
51173
+ userId: request.scope.userId,
51127
51174
  httpMethod: "POST",
51128
51175
  httpRequestUrl: new URL(url).pathname + new URL(url).search,
51129
51176
  httpRequestBody: body,
51130
51177
  signal
51131
51178
  }), signal);
51179
+ stage = "credentials";
51132
51180
  a2aString(credentials.authorization);
51133
51181
  a2aString(credentials.userId);
51134
51182
  if (!this.options.preMcpSignature) {
@@ -51144,10 +51192,12 @@ var OpenGwRemoteAgentTransport = class {
51144
51192
  throw new RemoteAgentError("A2A_SIGN_FAILED");
51145
51193
  }
51146
51194
  }
51147
- if (credentials.apassSourceProvider !== request.scope.agentId || credentials.apassSourceUserId !== credentials.userId) {
51195
+ if (credentials.apassSourceProvider !== (this.options.sandboxApass ? `debug_${request.scope.agentId}` : request.scope.agentId) || credentials.apassSourceUserId !== credentials.userId) {
51148
51196
  throw new RemoteAgentError("A2A_SIGN_FAILED");
51149
51197
  }
51150
51198
  }
51199
+ capture.diagnostic({ stage, outcome: "succeeded" });
51200
+ stage = "remote_http";
51151
51201
  const response = await waitWithSignal(() => {
51152
51202
  requestSent = true;
51153
51203
  capture.outgoing(body, url);
@@ -51158,18 +51208,14 @@ var OpenGwRemoteAgentTransport = class {
51158
51208
  signal,
51159
51209
  headers: {
51160
51210
  Authorization: credentials.authorization,
51161
- "x-oagw-agent-user": credentials.userId,
51162
51211
  ...!this.options.preMcpSignature ? {
51163
- "x-oagw-app-auth-token": credentials.apassAuthToken,
51164
51212
  "x-oagw-agent-id": credentials.kyaId,
51165
51213
  "x-oagw-apass-token": credentials.apassAuthToken,
51166
51214
  "x-oagw-apass-client-id": credentials.apassClientId,
51167
- "x-oagw-apass-source-provider": credentials.apassSourceProvider,
51168
- "x-oagw-apass-source-user-id": credentials.apassSourceUserId
51215
+ "x-oagw-apass-source-provider": credentials.apassSourceProvider
51169
51216
  } : {},
51170
51217
  "A2A-Version": "0.3.0",
51171
- "Content-Type": "application/json",
51172
- Accept: method === "message/stream" ? "text/event-stream" : "application/json"
51218
+ "Content-Type": "application/json"
51173
51219
  }
51174
51220
  });
51175
51221
  }, signal);
@@ -51200,6 +51246,7 @@ var OpenGwRemoteAgentTransport = class {
51200
51246
  }
51201
51247
  throw new RemoteAgentError(response.ok ? "A2A_CONTENT_TYPE_INVALID" : "A2A_HTTP_ERROR");
51202
51248
  }
51249
+ stage = "remote_stream";
51203
51250
  reader = response.body.getReader();
51204
51251
  const consume = async (value) => {
51205
51252
  signal.throwIfAborted();
@@ -51233,14 +51280,22 @@ var OpenGwRemoteAgentTransport = class {
51233
51280
  capture.endReason = "protocol_final";
51234
51281
  }
51235
51282
  signal.throwIfAborted();
51283
+ stage = "output_finish";
51236
51284
  await waitWithSignal(() => answer.finish(), signal);
51237
51285
  const result = reducer.result();
51238
51286
  await waitWithSignal(() => presentation.finish(result.status), signal);
51239
51287
  outcome = result;
51240
51288
  return result;
51241
51289
  } catch (error) {
51242
- if (!requestSent && apassChallenge(error))
51290
+ if (!requestSent && apassChallenge(error)) {
51291
+ authorizationRequired = true;
51292
+ capture.diagnostic({
51293
+ stage,
51294
+ outcome: "authorization_required",
51295
+ authSessionId: apassChallenge(error).authSessionId
51296
+ });
51243
51297
  throw error;
51298
+ }
51244
51299
  if (!signal.aborted) {
51245
51300
  try {
51246
51301
  await waitWithSignal(() => answer?.finish() ?? Promise.resolve(), signal);
@@ -51255,7 +51310,12 @@ var OpenGwRemoteAgentTransport = class {
51255
51310
  };
51256
51311
  return outcome;
51257
51312
  } finally {
51258
- capture.finish(reducer.taskId, outcome?.errorCode);
51313
+ capture.diagnostic({
51314
+ stage,
51315
+ outcome: authorizationRequired ? "authorization_required" : outcome?.errorCode || outcome?.status === "failed" || outcome?.status === "unknown" ? "failed" : "succeeded",
51316
+ elapsedMs: Date.now() - startedAt
51317
+ });
51318
+ capture.finish(reducer.taskId, authorizationRequired ? "APASS_AUTHORIZATION_REQUIRED" : outcome?.errorCode);
51259
51319
  clearTimeout(totalTimer);
51260
51320
  clearTimeout(eventTimer);
51261
51321
  controller.abort();
@@ -51273,8 +51333,8 @@ var OpenGwRemoteAgentTransport = class {
51273
51333
  "remote_agent.run_id": request.runId,
51274
51334
  "remote_agent.tool_call_id": request.toolCallId,
51275
51335
  "remote_agent.duration_ms": Date.now() - startedAt,
51276
- "remote_agent.status": outcome?.status ?? "unknown",
51277
- "remote_agent.error_code": outcome?.errorCode ?? ""
51336
+ "remote_agent.status": authorizationRequired ? "auth_required" : outcome?.status ?? "unknown",
51337
+ "remote_agent.error_code": authorizationRequired ? "APASS_AUTHORIZATION_REQUIRED" : outcome?.errorCode ?? ""
51278
51338
  });
51279
51339
  } catch {
51280
51340
  }
@@ -51309,8 +51369,14 @@ async function readJson(reader, signal, limit, onChunk, onEnd) {
51309
51369
  }
51310
51370
  }
51311
51371
  function createOpenGwSigner(options) {
51312
- const sign = async ({ signal, ...input }, allowConsult = true) => {
51372
+ const sign = async ({ signal, userId, diagnostic, ...input }, allowConsult = true) => {
51373
+ const report = (event) => emitA2aDiagnostic(diagnostic, event);
51374
+ report({ stage: "sign.authorization", outcome: "started" });
51313
51375
  const authorization = await waitWithSignal(() => Promise.resolve(options.getAuthorizationHeader()), signal);
51376
+ const sandboxMode = !options.preMcpSignature && !!options.getSandboxApassToken;
51377
+ report({ stage: "sign.sandbox_token", outcome: "started" });
51378
+ const sandboxToken = sandboxMode ? await waitWithSignal(() => options.getSandboxApassToken({ ...input, signal, userId }), signal) : void 0;
51379
+ report({ stage: "sign.http", outcome: "started" });
51314
51380
  const response = await waitWithSignal(() => (options.fetchImpl ?? fetch)(options.endpoint, {
51315
51381
  method: "POST",
51316
51382
  redirect: "error",
@@ -51320,19 +51386,33 @@ function createOpenGwSigner(options) {
51320
51386
  Authorization: authorization,
51321
51387
  "x-linkque-agent-id": input.agentId
51322
51388
  },
51323
- body: JSON.stringify(input)
51389
+ body: JSON.stringify({
51390
+ ...input,
51391
+ ...sandboxMode ? { tokenStorage: "sandbox" } : {}
51392
+ })
51324
51393
  }), signal);
51394
+ report({
51395
+ stage: "sign.http",
51396
+ outcome: response.ok ? "succeeded" : "failed",
51397
+ ...diagnosticResponse(response)
51398
+ });
51325
51399
  if (!response.ok || !response.body) {
51326
51400
  void response.body?.cancel().catch(() => void 0);
51327
51401
  throw new RemoteAgentError("A2A_SIGN_FAILED");
51328
51402
  }
51329
51403
  const reader = response.body.getReader();
51330
51404
  try {
51405
+ report({ stage: "sign.decode", outcome: "started" });
51331
51406
  const envelope = a2aObject(await readJson(reader, signal, 65536));
51332
- if (envelope.success === false && envelope.errorCode === "APASS_AUTHORIZATION_REQUIRED" && !options.preMcpSignature && allowConsult) {
51333
- const result = await invokeApassAuthorization(options.endpoint, authorization, "consultAuth", input, options.fetchImpl, signal);
51407
+ report({
51408
+ stage: "sign.response",
51409
+ outcome: Object.hasOwn(envelope, "success") && envelope.success !== true ? "failed" : "succeeded",
51410
+ gatewayErrorCode: diagnosticCode(envelope.errorCode)
51411
+ });
51412
+ if (envelope.success === false && envelope.errorCode === "APASS_AUTHORIZATION_REQUIRED" && !options.preMcpSignature && !sandboxMode && allowConsult) {
51413
+ const result = await invokeApassAuthorization(options.endpoint, authorization, "consultAuth", input, options.fetchImpl, signal, report);
51334
51414
  if (result.status === "ready")
51335
- return sign({ ...input, signal }, false);
51415
+ return sign({ ...input, signal, diagnostic }, false);
51336
51416
  const challenge = readAuthorizationChallenge(result);
51337
51417
  if (challenge?.authorizationKind === "apass")
51338
51418
  throw new ApassAuthorizationRequiredError(challenge);
@@ -51340,12 +51420,15 @@ function createOpenGwSigner(options) {
51340
51420
  }
51341
51421
  if (Object.hasOwn(envelope, "success") && envelope.success !== true)
51342
51422
  throw new RemoteAgentError("A2A_SIGN_FAILED");
51423
+ report({ stage: "sign.credentials", outcome: "started" });
51343
51424
  const value = a2aObject(envelope.data ?? envelope);
51425
+ if (sandboxMode && (!userId || value.userId !== userId || value.apassSourceProvider !== `debug_${input.agentId}`))
51426
+ throw new RemoteAgentError("A2A_SIGN_FAILED");
51344
51427
  return {
51345
51428
  authorization: a2aString(value.authorization),
51346
51429
  userId: a2aString(value.userId),
51347
51430
  ...!options.preMcpSignature ? {
51348
- apassAuthToken: a2aString(value.apassAuthToken),
51431
+ apassAuthToken: a2aString(sandboxToken ?? value.apassAuthToken),
51349
51432
  kyaId: a2aString(value.kyaId),
51350
51433
  apassClientId: a2aString(value.apassClientId),
51351
51434
  apassSourceProvider: a2aString(value.apassSourceProvider),
@@ -51550,6 +51633,7 @@ function createOpenGwA2aPlugin(options) {
51550
51633
  service: new RemoteAgentService({
51551
51634
  clientCapabilityPort: options.clientCapabilityPort,
51552
51635
  transport: new OpenGwRemoteAgentTransport({
51636
+ sandboxApass: !!options.getSandboxApassToken,
51553
51637
  preMcpSignature: options.preMcpSignature,
51554
51638
  maxCaptureBytes: options.maxCaptureBytes,
51555
51639
  presentationAdapters: options.presentationAdapters ?? [
@@ -51560,6 +51644,7 @@ function createOpenGwA2aPlugin(options) {
51560
51644
  sign: createOpenGwSigner({
51561
51645
  endpoint: options.signEndpoint,
51562
51646
  preMcpSignature: options.preMcpSignature,
51647
+ getSandboxApassToken: options.getSandboxApassToken,
51563
51648
  getAuthorizationHeader: async () => {
51564
51649
  const value = (await options.getAuthorizationHeader?.())?.trim();
51565
51650
  if (!value || !(/^Bearer[\t ]+[^\s,]+$/u.test(value) && !/^Bearer[\t ]+lqs_/u.test(value) || /^Scenario[\t ]+lqs_[A-Za-z0-9_-]{43}$/u.test(value)))
@@ -57317,10 +57402,24 @@ async function runGateway(method, bodyJSON, env, deps, logCtx, historyOwnerId, a
57317
57402
  }
57318
57403
  return result;
57319
57404
  } catch (error) {
57405
+ const code = error.code;
57406
+ if (confirmationRecord && code === "APASS_CONFIRM_FAILED" && await cfg.authorizationStore.transition(confirmationRecord.authorizationRequestId, ["confirming"], { status: "pending" })) {
57407
+ const current = await cfg.authorizationStore.get(confirmationRecord.authorizationRequestId);
57408
+ return {
57409
+ status: 200,
57410
+ body: {
57411
+ status: current.status,
57412
+ repeated: true,
57413
+ events: [
57414
+ ...authorizationEvents(current, current.status),
57415
+ authorizationPauseEvent(current)
57416
+ ]
57417
+ }
57418
+ };
57419
+ }
57320
57420
  if (confirmationRecord) {
57321
57421
  await cfg.authorizationStore.transition(confirmationRecord.authorizationRequestId, ["confirming", "confirmed"], { status: "uncertain" }).catch(() => void 0);
57322
57422
  }
57323
- const code = error.code;
57324
57423
  return jsonError(409, typeof code === "string" ? code : "authorization_confirmation_failed", error instanceof Error ? error.message : "\u6388\u6743\u786E\u8BA4\u5931\u8D25");
57325
57424
  } finally {
57326
57425
  await cfg.telemetry?.shutdown();