deepline 0.3.512 → 0.3.514

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 (135) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/completed-answer.ts +134 -0
  3. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +25 -31
  4. package/dist/bundling-sources/shared_libs/play-runtime/durable-call-policy.ts +1 -1
  5. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +33 -2
  6. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +6 -4
  7. package/dist/cli/{artifacts-YSYWQFQQ.mjs → artifacts-GNFL5LY4.mjs} +6 -6
  8. package/dist/cli/{artifacts-5IGM3EYP.js → artifacts-OZRO4LHT.js} +18 -18
  9. package/dist/cli/{auth-4MVWCUXS.mjs → auth-53EDAX7Y.mjs} +5 -5
  10. package/dist/cli/auth-SM5GLO45.js +43 -0
  11. package/dist/cli/{billing-OYYHWNVS.js → billing-B6V3FELL.js} +82 -82
  12. package/dist/cli/{billing-SZXRENPC.mjs → billing-ZMX2V5X3.mjs} +7 -7
  13. package/dist/cli/{chunk-ZZ7SVWKR.js → chunk-2CTTSNFE.js} +4 -4
  14. package/dist/cli/{chunk-IMC2HQ6V.js → chunk-2RCZCWPO.js} +6 -6
  15. package/dist/cli/{chunk-FJPJ6SO3.mjs → chunk-53F6JDQ3.mjs} +2 -2
  16. package/dist/cli/{chunk-RXZRZEW7.mjs → chunk-54IH5U3I.mjs} +5 -5
  17. package/dist/cli/{chunk-HCMFRAYT.js → chunk-55WBE4UK.js} +26 -26
  18. package/dist/cli/{chunk-JU35QU3Z.js → chunk-5LBXLQRW.js} +7 -7
  19. package/dist/cli/{chunk-DJ4FD5DR.mjs → chunk-6FYGFIXD.mjs} +2 -2
  20. package/dist/cli/{chunk-MQ5GBB7V.mjs → chunk-6OIRN4PC.mjs} +1 -1
  21. package/dist/cli/{chunk-TNQ5MF6K.mjs → chunk-6SSISVXD.mjs} +1 -1
  22. package/dist/cli/{chunk-JDD6OLWN.mjs → chunk-753MZFDF.mjs} +3 -3
  23. package/dist/cli/{chunk-YJN55ZWG.mjs → chunk-76M3DL5G.mjs} +1 -1
  24. package/dist/cli/{chunk-W7DAWILZ.js → chunk-7KD4IYLA.js} +16 -16
  25. package/dist/cli/{chunk-JH7JISQ2.mjs → chunk-7MBI2OLW.mjs} +1 -1
  26. package/dist/cli/{chunk-HA5NSCTH.mjs → chunk-7ZCXQDOQ.mjs} +2 -2
  27. package/dist/cli/{chunk-L7CAOWHY.js → chunk-A253CMOI.js} +3 -3
  28. package/dist/cli/{chunk-Q72Q3ZWB.js → chunk-BBDWIUJA.js} +9 -9
  29. package/dist/cli/{chunk-FF25PDQ2.js → chunk-C24VEYSP.js} +21 -5
  30. package/dist/cli/{chunk-PJCPFF7J.js → chunk-CUMA6DE2.js} +14 -14
  31. package/dist/cli/{chunk-YNMHIJC5.mjs → chunk-DBBLPDXK.mjs} +1 -1
  32. package/dist/cli/{chunk-GJMIW4Q6.mjs → chunk-DLYWOHO4.mjs} +1 -1
  33. package/dist/cli/{chunk-EQAKPIGI.mjs → chunk-DMBCJFGY.mjs} +2 -2
  34. package/dist/cli/{chunk-XKFWY4IK.mjs → chunk-EO52BKGA.mjs} +13 -12
  35. package/dist/cli/{chunk-I6OK54YK.mjs → chunk-EVTD3ELD.mjs} +5 -5
  36. package/dist/cli/{chunk-4ZDHGAE6.js → chunk-FPWOEK7G.js} +2 -2
  37. package/dist/cli/{chunk-AATUAFD2.mjs → chunk-G6A7CGFV.mjs} +2 -2
  38. package/dist/cli/{chunk-KBM5T6UV.js → chunk-G6PUQQJP.js} +5 -5
  39. package/dist/cli/{chunk-LYOWQKGN.mjs → chunk-H53YG6QG.mjs} +1 -1
  40. package/dist/cli/{chunk-MTSHUN2R.mjs → chunk-H7L5MS5E.mjs} +1 -1
  41. package/dist/cli/{chunk-77DPQI6W.mjs → chunk-HJ5B67S3.mjs} +21 -5
  42. package/dist/cli/{chunk-P3RYPSOQ.mjs → chunk-ILITNKGM.mjs} +6 -6
  43. package/dist/cli/{chunk-T3SUWKUT.mjs → chunk-IZJGOMCW.mjs} +5 -5
  44. package/dist/cli/{chunk-WDCOUJQ5.js → chunk-JC3ABOZP.js} +21 -21
  45. package/dist/cli/{chunk-VZN6D23P.js → chunk-LV2DGEJ3.js} +7 -7
  46. package/dist/cli/{chunk-V6FQRUPJ.js → chunk-MF7ZVWJK.js} +41 -41
  47. package/dist/cli/{chunk-ZVYMGTZ7.mjs → chunk-MJIS4XAZ.mjs} +4 -4
  48. package/dist/cli/{chunk-O24VWLOY.js → chunk-MQK5SY5N.js} +16 -16
  49. package/dist/cli/{chunk-OU6AK63V.js → chunk-NXT52SIV.js} +2 -2
  50. package/dist/cli/{chunk-BP4XEO6Z.js → chunk-OQ4JV3IW.js} +1 -1
  51. package/dist/cli/{chunk-AVYI522S.js → chunk-QSFAUGFK.js} +5 -5
  52. package/dist/cli/{chunk-4QR64X2S.js → chunk-R5PJ6XZI.js} +10 -10
  53. package/dist/cli/{chunk-5XLU47DG.mjs → chunk-RFN7OKT2.mjs} +1 -1
  54. package/dist/cli/{chunk-4DSRBHN6.js → chunk-RLVSWAWB.js} +44 -44
  55. package/dist/cli/{chunk-3INAN6EK.mjs → chunk-RMRZ4BC4.mjs} +3 -3
  56. package/dist/cli/{chunk-2R6M62UO.mjs → chunk-RVMV4MXO.mjs} +2 -2
  57. package/dist/cli/{chunk-RR6G6ZCT.js → chunk-T4NQ2ZOH.js} +11 -11
  58. package/dist/cli/{chunk-7U3WY2F3.js → chunk-TG4IMWAL.js} +53 -53
  59. package/dist/cli/{chunk-VGCNLFER.js → chunk-TZS4G7CS.js} +2 -2
  60. package/dist/cli/{chunk-TKN2TRW5.js → chunk-VLIDBQYL.js} +3 -3
  61. package/dist/cli/{chunk-2BS6BRGH.mjs → chunk-W3TN352L.mjs} +2 -2
  62. package/dist/cli/{chunk-JKLFRDQ6.js → chunk-WP3ULMRU.js} +6 -6
  63. package/dist/cli/{chunk-ZLHIQU2G.js → chunk-Y2RIMVEM.js} +99 -98
  64. package/dist/cli/{chunk-32UMZXCZ.mjs → chunk-Z5WO6IBV.mjs} +5 -5
  65. package/dist/cli/command-docs.js +2 -2
  66. package/dist/cli/command-docs.mjs +1 -1
  67. package/dist/cli/{csv-YR2E5HNM.js → csv-2BLYUV2G.js} +13 -13
  68. package/dist/cli/{csv-AY4KT3NZ.mjs → csv-ONKAMLL4.mjs} +4 -4
  69. package/dist/cli/{db-IMYD3OCM.mjs → db-4GVSGAXL.mjs} +6 -6
  70. package/dist/cli/{db-YKV6564I.js → db-YKT6LEQ3.js} +27 -27
  71. package/dist/cli/describe-KPGQP4LH.js +50 -0
  72. package/dist/cli/{describe-72GI2Q6T.mjs → describe-PRT2WQMS.mjs} +18 -18
  73. package/dist/cli/{executions-2YO6KIP3.mjs → executions-7OSL25KJ.mjs} +6 -6
  74. package/dist/cli/{executions-OSNL5CSU.js → executions-VFCU5NGH.js} +8 -8
  75. package/dist/cli/{feedback-WSA7YTKS.js → feedback-ERTOLEC4.js} +10 -10
  76. package/dist/cli/{feedback-SYDNAT62.mjs → feedback-RPZELEA5.mjs} +5 -5
  77. package/dist/cli/git-U353JURQ.js +25 -0
  78. package/dist/cli/{git-WBH7N3EF.mjs → git-XKRQZ4A6.mjs} +5 -5
  79. package/dist/cli/index.js +145 -145
  80. package/dist/cli/index.mjs +44 -44
  81. package/dist/cli/{legacy-noops-BZPLWY5C.js → legacy-noops-HG3M5HGZ.js} +9 -9
  82. package/dist/cli/{legacy-noops-USZM4ZXF.mjs → legacy-noops-MZCFS2FQ.mjs} +6 -6
  83. package/dist/cli/{monitors-6HOZMLEV.mjs → monitors-GBO5XAEZ.mjs} +7 -7
  84. package/dist/cli/{monitors-XHXAMMYC.js → monitors-MESMMU5P.js} +100 -100
  85. package/dist/cli/{org-LT3DICB4.mjs → org-DJRNWIPO.mjs} +6 -6
  86. package/dist/cli/{org-BAAOAZF3.js → org-EZPREEWH.js} +72 -72
  87. package/dist/cli/{pages-MOCSTZZQ.mjs → pages-36BHVOFL.mjs} +6 -6
  88. package/dist/cli/{pages-7NP4PKLA.js → pages-ACI7VV6I.js} +18 -18
  89. package/dist/cli/{play-CGUL22GL.js → play-KCLLAGWR.js} +317 -317
  90. package/dist/cli/{play-MGJ7B7RL.mjs → play-SUSVQHX5.mjs} +18 -18
  91. package/dist/cli/{providers-AOWBHJ24.mjs → providers-MV2YW3J5.mjs} +6 -6
  92. package/dist/cli/{providers-5LCUHKX2.js → providers-YFO3EFLK.js} +9 -9
  93. package/dist/cli/{quickstart-Z6NA2CCM.mjs → quickstart-KMXU2T3Z.mjs} +4 -4
  94. package/dist/cli/{quickstart-7YZUT7GO.js → quickstart-MATFTZVQ.js} +6 -6
  95. package/dist/cli/{run-M66ILCWL.js → run-UW5FM64G.js} +41 -41
  96. package/dist/cli/{run-7QGBNUKE.mjs → run-YRYVGUCJ.mjs} +23 -23
  97. package/dist/cli/search-4ZQOFG7G.js +33 -0
  98. package/dist/cli/{search-Z2T3B4V4.mjs → search-WF3Q3I5X.mjs} +8 -8
  99. package/dist/cli/{search-output-6OHPSJGK.js → search-output-BG743WAM.js} +6 -6
  100. package/dist/cli/{search-output-MLHVBRIR.mjs → search-output-THOAHTCU.mjs} +4 -4
  101. package/dist/cli/{secrets-T7MW2DMK.js → secrets-EOGBWN44.js} +15 -15
  102. package/dist/cli/{secrets-VBSILT5H.mjs → secrets-LM7OTAUE.mjs} +6 -6
  103. package/dist/cli/sessions-GDSJ72XI.js +18 -0
  104. package/dist/cli/{sessions-KNITGDLS.mjs → sessions-SP2JL27H.mjs} +6 -6
  105. package/dist/cli/{settings-NBZRRKZS.mjs → settings-JXTFX5G2.mjs} +13 -13
  106. package/dist/cli/{settings-OSEBDBKR.js → settings-OWE3EEG7.js} +86 -86
  107. package/dist/cli/{setup-WTEQPZ5I.mjs → setup-FG37SKMB.mjs} +10 -10
  108. package/dist/cli/{setup-7DZPC6FC.js → setup-Z5BEQKA7.js} +50 -50
  109. package/dist/cli/skills-SIX5OTNX.js +37 -0
  110. package/dist/cli/{skills-JMD2MNJZ.mjs → skills-UGNCBZTJ.mjs} +8 -8
  111. package/dist/cli/tools-EZOV37MQ.js +57 -0
  112. package/dist/cli/{tools-LK5BM2Z7.mjs → tools-J3PKLQSL.mjs} +17 -17
  113. package/dist/cli/{update-IVUSIA2E.mjs → update-GGZ2XTMZ.mjs} +10 -10
  114. package/dist/cli/update-ISU7YN34.js +35 -0
  115. package/dist/cli/{workflow-GY374FMJ.js → workflow-AUZCSCZP.js} +17 -17
  116. package/dist/cli/{workflow-4QP6G54M.mjs → workflow-C66BBXHH.mjs} +7 -7
  117. package/dist/index.js +9 -9
  118. package/dist/index.mjs +6 -6
  119. package/dist/install-integrity.json +107 -106
  120. package/dist/plays/bundle-play-file.mjs +6 -4
  121. package/dist/release.d.mts +1 -1
  122. package/dist/release.d.ts +1 -1
  123. package/dist/release.js +2 -2
  124. package/dist/release.mjs +1 -1
  125. package/dist/server.js +5 -5
  126. package/dist/server.mjs +3 -3
  127. package/package.json +1 -1
  128. package/dist/cli/auth-M3AJBJ3O.js +0 -43
  129. package/dist/cli/describe-UFGHQBM7.js +0 -50
  130. package/dist/cli/git-YYOW4CYQ.js +0 -25
  131. package/dist/cli/search-OZQH5VMI.js +0 -33
  132. package/dist/cli/sessions-XKEIBOTP.js +0 -18
  133. package/dist/cli/skills-R6RO6MQF.js +0 -37
  134. package/dist/cli/tools-NBBDUNPR.js +0 -57
  135. package/dist/cli/update-BI2ABPGX.js +0 -35
@@ -2,11 +2,11 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkJKLFRDQ6js = require('./chunk-JKLFRDQ6.js');
5
+ var _chunkWP3ULMRUjs = require('./chunk-WP3ULMRU.js');
6
6
 
7
7
 
8
8
 
9
- var _chunkRR6G6ZCTjs = require('./chunk-RR6G6ZCT.js');
9
+ var _chunkT4NQ2ZOHjs = require('./chunk-T4NQ2ZOH.js');
10
10
 
11
11
 
12
12
 
@@ -46,10 +46,10 @@ var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
46
46
  var _chunkHGFFYVXNjs = require('./chunk-HGFFYVXN.js');
47
47
 
48
48
 
49
- var _chunkKBM5T6UVjs = require('./chunk-KBM5T6UV.js');
49
+ var _chunkG6PUQQJPjs = require('./chunk-G6PUQQJP.js');
50
50
 
51
51
 
52
- var _chunkJU35QU3Zjs = require('./chunk-JU35QU3Z.js');
52
+ var _chunk5LBXLQRWjs = require('./chunk-5LBXLQRW.js');
53
53
 
54
54
 
55
55
  var _chunkWSGXBROEjs = require('./chunk-WSGXBROE.js');
@@ -59,18 +59,18 @@ var _chunkWSGXBROEjs = require('./chunk-WSGXBROE.js');
59
59
 
60
60
 
61
61
 
62
- var _chunkWDCOUJQ5js = require('./chunk-WDCOUJQ5.js');
62
+ var _chunkJC3ABOZPjs = require('./chunk-JC3ABOZP.js');
63
63
 
64
64
 
65
65
 
66
66
 
67
- var _chunk4ZDHGAE6js = require('./chunk-4ZDHGAE6.js');
67
+ var _chunkFPWOEK7Gjs = require('./chunk-FPWOEK7G.js');
68
68
 
69
69
 
70
70
 
71
71
 
72
72
 
73
- var _chunk4DSRBHN6js = require('./chunk-4DSRBHN6.js');
73
+ var _chunkRLVSWAWBjs = require('./chunk-RLVSWAWB.js');
74
74
 
75
75
 
76
76
 
@@ -78,12 +78,12 @@ var _chunk4DSRBHN6js = require('./chunk-4DSRBHN6.js');
78
78
 
79
79
 
80
80
 
81
- var _chunkVZN6D23Pjs = require('./chunk-VZN6D23P.js');
81
+ var _chunkLV2DGEJ3js = require('./chunk-LV2DGEJ3.js');
82
82
 
83
83
 
84
84
 
85
85
 
86
- var _chunkL7CAOWHYjs = require('./chunk-L7CAOWHY.js');
86
+ var _chunkA253CMOIjs = require('./chunk-A253CMOI.js');
87
87
 
88
88
 
89
89
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
@@ -189,10 +189,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
189
189
  }
190
190
  };
191
191
  function pendingToolExecutionPath(input) {
192
- const config = _chunkL7CAOWHYjs.resolveConfig.call(void 0, );
192
+ const config = _chunkA253CMOIjs.resolveConfig.call(void 0, );
193
193
  const fingerprint = _crypto.createHash.call(void 0, "sha256").update(config.baseUrl).update("\0").update(_crypto.createHash.call(void 0, "sha256").update(config.apiKey).digest("hex")).update("\0").update(input.toolId).update("\0").update(_chunkWSGXBROEjs.stableStringify.call(void 0, input.params)).update("\0").update(input.responseIntent).digest("hex");
194
194
  return _path.join.call(void 0,
195
- _chunkL7CAOWHYjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
195
+ _chunkA253CMOIjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
196
196
  `${PENDING_PREFIX}${fingerprint}.json`
197
197
  );
198
198
  }
@@ -332,7 +332,7 @@ function toolConnectionStatusMessage(input) {
332
332
  return "requires your credentials \u2014 not connected (connect to use)";
333
333
  }
334
334
  if (input.connected === false && input.credentialStatus === "managed") {
335
- return "temporarily unavailable";
335
+ return input.connectionMessage || "temporarily unavailable";
336
336
  }
337
337
  return null;
338
338
  }
@@ -445,7 +445,8 @@ function notConnectedSuffix(tool) {
445
445
  const connected = record.connected;
446
446
  const message = toolConnectionStatusMessage({
447
447
  connected: connected === false ? false : void 0,
448
- credentialStatus: status || void 0
448
+ credentialStatus: status || void 0,
449
+ connectionMessage: _chunkBN5VKY4Xjs.stringField.call(void 0, record, "connectionMessage", "connection_message") || void 0
449
450
  });
450
451
  return message ? ` - \u26A0 ${message}` : "";
451
452
  }
@@ -505,13 +506,13 @@ function categoryEnumerationRender(summaries) {
505
506
  };
506
507
  }
507
508
  async function listToolCategories(emitJson, compact) {
508
- const client = new (0, _chunkKBM5T6UVjs.DeeplineClient)();
509
+ const client = new (0, _chunkG6PUQQJPjs.DeeplineClient)();
509
510
  if (!emitJson) {
510
511
  const summaries2 = (await client.listToolCategories()).map((category) => ({
511
512
  ...category,
512
513
  description: describeToolCategory(category.name)
513
514
  }));
514
- _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
515
+ _chunkLV2DGEJ3js.printCommandEnvelope.call(void 0,
515
516
  { categories: summaries2, render: categoryEnumerationRender(summaries2) },
516
517
  { json: false }
517
518
  );
@@ -521,7 +522,7 @@ async function listToolCategories(emitJson, compact) {
521
522
  const items = rawTools.map(toListedTool);
522
523
  const summaries = aggregateCategorySummaries(rawTools);
523
524
  const outputItems = compact ? items.map(compactTool) : items;
524
- _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
525
+ _chunkLV2DGEJ3js.printCommandEnvelope.call(void 0,
525
526
  {
526
527
  tools: outputItems,
527
528
  count: outputItems.length,
@@ -540,7 +541,7 @@ function unknownCategoryError(category, summaries, emitJson) {
540
541
  const known = summaries.map((item) => item.name);
541
542
  const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
542
543
  if (emitJson) {
543
- _chunkVZN6D23Pjs.printJson.call(void 0, {
544
+ _chunkLV2DGEJ3js.printJson.call(void 0, {
544
545
  ok: false,
545
546
  exitCode: 4,
546
547
  code: "TOOL_CATEGORY_NOT_FOUND",
@@ -554,13 +555,13 @@ function unknownCategoryError(category, summaries, emitJson) {
554
555
  const render = categoryEnumerationRender(summaries);
555
556
  console.error(message);
556
557
  console.error("");
557
- console.error(_chunkVZN6D23Pjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
558
+ console.error(_chunkLV2DGEJ3js.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
558
559
  console.error("");
559
560
  console.error(`Valid categories: ${known.join(", ")}`);
560
561
  return 4;
561
562
  }
562
563
  async function listToolsInCategory(category, emitJson) {
563
- const client = new (0, _chunkKBM5T6UVjs.DeeplineClient)();
564
+ const client = new (0, _chunkG6PUQQJPjs.DeeplineClient)();
564
565
  const { tools: rawTools, categories } = await client.listToolsInCategory(category);
565
566
  const summaries = categories.map((item) => ({
566
567
  ...item,
@@ -596,7 +597,7 @@ async function listToolsInCategory(category, emitJson) {
596
597
  }
597
598
  ]
598
599
  };
599
- _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
600
+ _chunkLV2DGEJ3js.printCommandEnvelope.call(void 0,
600
601
  {
601
602
  category,
602
603
  total: rows.length,
@@ -609,7 +610,7 @@ async function listToolsInCategory(category, emitJson) {
609
610
  return 0;
610
611
  }
611
612
  async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
612
- const client = new (0, _chunkKBM5T6UVjs.DeeplineClient)();
613
+ const client = new (0, _chunkG6PUQQJPjs.DeeplineClient)();
613
614
  const items = (await client.listTools({
614
615
  categories: requestedCategories.join(","),
615
616
  compact
@@ -638,7 +639,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
638
639
  ]
639
640
  };
640
641
  const outputItems = compact ? items.map(compactTool) : items;
641
- _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
642
+ _chunkLV2DGEJ3js.printCommandEnvelope.call(void 0,
642
643
  {
643
644
  tools: outputItems,
644
645
  count: outputItems.length,
@@ -657,13 +658,13 @@ async function listTools(category, options = {}) {
657
658
  const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
658
659
  const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
659
660
  const compact = options.compact !== false;
660
- const emitJson = options.json === true || _chunkVZN6D23Pjs.shouldEmitJson.call(void 0, );
661
+ const emitJson = options.json === true || _chunkLV2DGEJ3js.shouldEmitJson.call(void 0, );
661
662
  if (positional && flagCategories.length > 0) {
662
663
  const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
663
664
  if (!flagIsSameSingle) {
664
665
  const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
665
666
  if (emitJson) {
666
- _chunkVZN6D23Pjs.printJson.call(void 0, {
667
+ _chunkLV2DGEJ3js.printJson.call(void 0, {
667
668
  ok: false,
668
669
  exitCode: 2,
669
670
  code: "TOOL_LIST_CATEGORY_CONFLICT",
@@ -690,7 +691,7 @@ async function grepTools(queryInput, options = {}) {
690
691
  console.error("Usage: deepline tools grep <query> [--json]");
691
692
  return 1;
692
693
  }
693
- const client = new (0, _chunkKBM5T6UVjs.DeeplineClient)();
694
+ const client = new (0, _chunkG6PUQQJPjs.DeeplineClient)();
694
695
  const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
695
696
  const mode = _nullishCoalesce(options.mode, () => ( "all"));
696
697
  const jsonOutput = options.json === true;
@@ -714,7 +715,7 @@ async function grepTools(queryInput, options = {}) {
714
715
  query,
715
716
  mode
716
717
  }) : null;
717
- _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
718
+ _chunkLV2DGEJ3js.printCommandEnvelope.call(void 0,
718
719
  {
719
720
  tools: outputTools,
720
721
  count: outputTools.length,
@@ -732,7 +733,7 @@ async function grepTools(queryInput, options = {}) {
732
733
  } : {},
733
734
  commandTemplates: TOOL_COMMAND_TEMPLATES
734
735
  },
735
- { json: options.json || _chunkVZN6D23Pjs.shouldEmitJson.call(void 0, ) }
736
+ { json: options.json || _chunkLV2DGEJ3js.shouldEmitJson.call(void 0, ) }
736
737
  );
737
738
  return 0;
738
739
  }
@@ -847,10 +848,10 @@ Output:
847
848
  ).option("--json", "Print JSON without credential values").action(
848
849
  async (provider, options) => {
849
850
  if (options.link) {
850
- const link = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().getIntegrationConnectLink(
851
+ const link = await new (0, _chunkG6PUQQJPjs.DeeplineClient)().getIntegrationConnectLink(
851
852
  provider
852
853
  );
853
- if (_chunkVZN6D23Pjs.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(link));
854
+ if (_chunkLV2DGEJ3js.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(link));
854
855
  else console.log(link.connect_url);
855
856
  return;
856
857
  }
@@ -860,7 +861,7 @@ Output:
860
861
  if (options.preset !== void 0 && (options.scopes !== void 0 || options.optionalScopes !== void 0))
861
862
  throw new Error("Use --preset or individual scopes, not both.");
862
863
  const splitScopes = (value) => value.split(",").map((scope) => scope.trim()).filter(Boolean);
863
- const result2 = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().startIntegrationOAuth(
864
+ const result2 = await new (0, _chunkG6PUQQJPjs.DeeplineClient)().startIntegrationOAuth(
864
865
  provider,
865
866
  {
866
867
  ...options.preset !== void 0 ? { preset: options.preset } : {},
@@ -872,7 +873,7 @@ Output:
872
873
  throw new Error(
873
874
  "The API did not return an OAuth authorization URL."
874
875
  );
875
- if (_chunkVZN6D23Pjs.shouldEmitJson.call(void 0, options.json))
876
+ if (_chunkLV2DGEJ3js.shouldEmitJson.call(void 0, options.json))
876
877
  console.log(
877
878
  JSON.stringify({ provider, redirect_url: result2.redirect_url })
878
879
  );
@@ -898,7 +899,7 @@ Output:
898
899
  "--credentials-file must contain a nonempty JSON object of string credential values."
899
900
  );
900
901
  }
901
- const result = await new (0, _chunkKBM5T6UVjs.DeeplineClient)().setIntegrationCredentials(
902
+ const result = await new (0, _chunkG6PUQQJPjs.DeeplineClient)().setIntegrationCredentials(
902
903
  provider,
903
904
  credentials
904
905
  );
@@ -908,7 +909,7 @@ Output:
908
909
  );
909
910
  }
910
911
  const confirmation = { provider, credential_saved: true };
911
- if (_chunkVZN6D23Pjs.shouldEmitJson.call(void 0, options.json))
912
+ if (_chunkLV2DGEJ3js.shouldEmitJson.call(void 0, options.json))
912
913
  console.log(JSON.stringify(confirmation));
913
914
  else
914
915
  console.log(
@@ -948,7 +949,7 @@ Examples:
948
949
  json: Boolean(options.json)
949
950
  });
950
951
  });
951
- _chunkRR6G6ZCTjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
952
+ _chunkT4NQ2ZOHjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
952
953
  tools.command("grep <query>").description(
953
954
  "Regex grep over tool ids, descriptions, categories, and input fields."
954
955
  ).addHelpText(
@@ -983,7 +984,7 @@ Examples:
983
984
  });
984
985
  const addToolMetadataCommand = (command) => {
985
986
  let compatibilityMetadata;
986
- _chunkWDCOUJQ5js.registerCompatibilityCatalog.call(void 0, command, () => ({
987
+ _chunkJC3ABOZPjs.registerCompatibilityCatalog.call(void 0, command, () => ({
987
988
  toolId: command.args[0],
988
989
  acceptMetadata: (metadata) => {
989
990
  compatibilityMetadata = metadata;
@@ -1053,7 +1054,7 @@ Examples:
1053
1054
  process.exitCode = await narrowView();
1054
1055
  return;
1055
1056
  }
1056
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-UFGHQBM7.js")));
1057
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-KPGQP4LH.js")));
1057
1058
  process.exitCode = await describeAnything(
1058
1059
  toolId,
1059
1060
  {
@@ -1068,7 +1069,7 @@ Examples:
1068
1069
  });
1069
1070
  };
1070
1071
  addToolMetadataCommand(
1071
- _chunkJKLFRDQ6js.addDescribeOptions.call(void 0,
1072
+ _chunkWP3ULMRUjs.addDescribeOptions.call(void 0,
1072
1073
  tools.command("describe <toolId>", { hidden: true }).alias("get"),
1073
1074
  { json: false }
1074
1075
  )
@@ -1137,7 +1138,7 @@ Examples:
1137
1138
  options,
1138
1139
  void 0,
1139
1140
  true,
1140
- _chunk4ZDHGAE6js.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
1141
+ _chunkFPWOEK7Gjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
1141
1142
  );
1142
1143
  }
1143
1144
  );
@@ -1145,13 +1146,13 @@ Examples:
1145
1146
  function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1146
1147
  let metadata;
1147
1148
  const startedAt = performance.now();
1148
- const baseUrl = _chunkL7CAOWHYjs.resolveConfig.call(void 0, ).baseUrl;
1149
- _chunk4ZDHGAE6js.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
1150
- const result = _chunkWDCOUJQ5js.runToolExecuteStage.call(void 0,
1149
+ const baseUrl = _chunkA253CMOIjs.resolveConfig.call(void 0, ).baseUrl;
1150
+ _chunkFPWOEK7Gjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
1151
+ const result = _chunkJC3ABOZPjs.runToolExecuteStage.call(void 0,
1151
1152
  "SDK compatibility",
1152
- () => _chunk4DSRBHN6js.checkSdkCompatibility.call(void 0, baseUrl, {
1153
+ () => _chunkRLVSWAWBjs.checkSdkCompatibility.call(void 0, baseUrl, {
1153
1154
  command: "tools execute",
1154
- skillsVersion: _chunkL7CAOWHYjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
1155
+ skillsVersion: _chunkA253CMOIjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
1155
1156
  persistCache: false,
1156
1157
  timeoutMs: TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS,
1157
1158
  catalog: {
@@ -1165,7 +1166,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1165
1166
  })
1166
1167
  ).then(
1167
1168
  (compatibility) => {
1168
- _chunk4ZDHGAE6js.recordCliTrace.call(void 0, {
1169
+ _chunkFPWOEK7Gjs.recordCliTrace.call(void 0, {
1169
1170
  phase: "cli.tool_execute_compatibility_ready",
1170
1171
  ms: performance.now() - startedAt,
1171
1172
  ok: compatibility.error === null,
@@ -1174,7 +1175,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1174
1175
  return compatibility;
1175
1176
  },
1176
1177
  (error) => {
1177
- _chunk4ZDHGAE6js.recordCliTrace.call(void 0, {
1178
+ _chunkFPWOEK7Gjs.recordCliTrace.call(void 0, {
1178
1179
  phase: "cli.tool_execute_compatibility_ready",
1179
1180
  ms: performance.now() - startedAt,
1180
1181
  ok: false
@@ -1189,7 +1190,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1189
1190
  console.error("Usage: deepline tools describe <toolId> [--json]");
1190
1191
  return 1;
1191
1192
  }
1192
- const client = new (0, _chunkKBM5T6UVjs.DeeplineClient)();
1193
+ const client = new (0, _chunkG6PUQQJPjs.DeeplineClient)();
1193
1194
  let tool;
1194
1195
  try {
1195
1196
  tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
@@ -1243,7 +1244,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1243
1244
  const lines = toolPricingOnlyLines(tool, toolId);
1244
1245
  if (inferenceQuote)
1245
1246
  lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
1246
- _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
1247
+ _chunkLV2DGEJ3js.printCommandEnvelope.call(void 0,
1247
1248
  {
1248
1249
  toolId: String(tool.toolId || toolId),
1249
1250
  cost: _chunkBN5VKY4Xjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
@@ -1266,7 +1267,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1266
1267
  void 0,
1267
1268
  seedToolListScript
1268
1269
  );
1269
- _chunkVZN6D23Pjs.printCompactJson.call(void 0, {
1270
+ _chunkLV2DGEJ3js.printCompactJson.call(void 0, {
1270
1271
  toolId: contract.toolId,
1271
1272
  ...options.schemaOnly ? {
1272
1273
  inputSchema: contract.inputSchema,
@@ -1289,7 +1290,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1289
1290
  return 0;
1290
1291
  }
1291
1292
  if (options.contractJson) {
1292
- _chunkVZN6D23Pjs.printCompactJson.call(void 0, {
1293
+ _chunkLV2DGEJ3js.printCompactJson.call(void 0, {
1293
1294
  ..._chunkBN5VKY4Xjs.toolContractJsonForDescribe.call(void 0,
1294
1295
  tool,
1295
1296
  toolId,
@@ -1303,7 +1304,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1303
1304
  }
1304
1305
  const emitJson = options.json === true;
1305
1306
  if (emitJson) {
1306
- _chunkVZN6D23Pjs.printCompactJson.call(void 0, {
1307
+ _chunkLV2DGEJ3js.printCompactJson.call(void 0, {
1307
1308
  ..._chunkBN5VKY4Xjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
1308
1309
  ...modelDescription ? { modelOptions: modelDescription } : {},
1309
1310
  ...inferenceQuote ? { inferenceQuote } : {}
@@ -2166,7 +2167,7 @@ function parseExecuteOptions(toolId, options, output) {
2166
2167
  outputFormat = normalizeOutputFormat(options.outputFormat);
2167
2168
  }
2168
2169
  if (options.idempotencyKey !== void 0) {
2169
- _chunkJU35QU3Zjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2170
+ _chunk5LBXLQRWjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2170
2171
  }
2171
2172
  if (options.recoveryTimeoutMs !== void 0) {
2172
2173
  const parsed = Number(options.recoveryTimeoutMs);
@@ -2545,7 +2546,7 @@ function writeToolReceipt(input) {
2545
2546
  const data = Object.hasOwn(toolResponse, "rawV2") ? toolResponse.rawV2 : Object.hasOwn(toolResponse, "raw") ? toolResponse.raw : Object.hasOwn(envelope, "output") ? envelope.output : Object.hasOwn(envelope, "result") ? envelope.result : response;
2546
2547
  const status = typeof envelope.status === "string" ? envelope.status : "completed";
2547
2548
  const charged = _chunkBN5VKY4Xjs.recordField.call(void 0, envelope, "billing").credits_charged;
2548
- _chunkJKLFRDQ6js.writeExecutionOutput.call(void 0,
2549
+ _chunkWP3ULMRUjs.writeExecutionOutput.call(void 0,
2549
2550
  {
2550
2551
  id: _nullishCoalesce(input.key, () => ( jobId)),
2551
2552
  status,
@@ -2576,8 +2577,8 @@ async function executeToolForReceipt(input) {
2576
2577
  let retryKey = null;
2577
2578
  let received = false;
2578
2579
  try {
2579
- const cliInvocationId = _nullishCoalesce(_chunkWDCOUJQ5js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkWDCOUJQ5js.beginToolExecuteCommand.call(void 0, )));
2580
- const client = new (0, _chunkKBM5T6UVjs.DeeplineClient)();
2580
+ const cliInvocationId = _nullishCoalesce(_chunkJC3ABOZPjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkJC3ABOZPjs.beginToolExecuteCommand.call(void 0, )));
2581
+ const client = new (0, _chunkG6PUQQJPjs.DeeplineClient)();
2581
2582
  const metadata = assertExecutableToolMetadata(
2582
2583
  toolId,
2583
2584
  await _asyncNullishCoalesce(input.metadata, async () => ( await client.getTool(toolId, { cliInvocationId })))
@@ -2598,9 +2599,9 @@ async function executeToolForReceipt(input) {
2598
2599
  ...input.timeoutMs !== void 0 ? { timeout: input.timeoutMs } : {},
2599
2600
  ..._optionalChain([metadata, 'access', _35 => _35.executionMetadata, 'optionalAccess', _36 => _36.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {},
2600
2601
  ...key ? { idempotencyKey: key } : {},
2601
- searchRef: _chunkRR6G6ZCTjs.recentSearchRef.call(void 0, toolId),
2602
+ searchRef: _chunkT4NQ2ZOHjs.recentSearchRef.call(void 0, toolId),
2602
2603
  cliInvocationId,
2603
- onResponseReceived: _chunkJKLFRDQ6js.recordApiResponse
2604
+ onResponseReceived: _chunkWP3ULMRUjs.recordApiResponse
2604
2605
  }).catch((error) => {
2605
2606
  const guidance = toolGuidanceLines(metadata.guidance);
2606
2607
  if (guidance.length)
@@ -2623,7 +2624,7 @@ async function executeToolForReceipt(input) {
2623
2624
  if (received) throw error;
2624
2625
  const outcomeKnown = answeredWithFailure(error);
2625
2626
  if (outcomeKnown) _optionalChain([retryKey, 'optionalAccess', _37 => _37.discard, 'call', _38 => _38()]);
2626
- _chunkJKLFRDQ6js.writeExecutionOutput.call(void 0,
2627
+ _chunkWP3ULMRUjs.writeExecutionOutput.call(void 0,
2627
2628
  {
2628
2629
  id: outcomeKnown ? null : key,
2629
2630
  status: "failed",
@@ -2647,11 +2648,11 @@ function answeredWithFailure(error) {
2647
2648
  error.statusCode !== 408 && error.code !== "EXECUTION_OUTCOME_UNKNOWN";
2648
2649
  }
2649
2650
  async function getToolExecutionReceipt(key, output) {
2650
- const client = new (0, _chunkKBM5T6UVjs.DeeplineClient)();
2651
+ const client = new (0, _chunkG6PUQQJPjs.DeeplineClient)();
2651
2652
  const execution = await client.executions.getByKey(key);
2652
2653
  output.label = `${execution.toolId} (tool)`;
2653
2654
  if (execution.response === void 0) {
2654
- _chunkJKLFRDQ6js.writeExecutionOutput.call(void 0,
2655
+ _chunkWP3ULMRUjs.writeExecutionOutput.call(void 0,
2655
2656
  {
2656
2657
  id: key,
2657
2658
  status: execution.executionRecovery.state,
@@ -2680,19 +2681,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2680
2681
  parsed = parseExecuteOptions(toolId, options, output);
2681
2682
  } catch (error) {
2682
2683
  if (wantsJson) {
2683
- _chunkVZN6D23Pjs.printJsonError.call(void 0, error);
2684
+ _chunkLV2DGEJ3js.printJsonError.call(void 0, error);
2684
2685
  } else {
2685
2686
  console.error(error instanceof Error ? error.message : String(error));
2686
2687
  }
2687
2688
  return error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
2688
2689
  }
2689
- const cliInvocationId = _nullishCoalesce(_chunkWDCOUJQ5js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkWDCOUJQ5js.beginToolExecuteCommand.call(void 0, )));
2690
+ const cliInvocationId = _nullishCoalesce(_chunkJC3ABOZPjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkJC3ABOZPjs.beginToolExecuteCommand.call(void 0, )));
2690
2691
  const deferredCompatibility = deferCompatibility ? beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) : void 0;
2691
- const tracing = _chunk4ZDHGAE6js.isCliTraceEnabled.call(void 0, );
2692
+ const tracing = _chunkFPWOEK7Gjs.isCliTraceEnabled.call(void 0, );
2692
2693
  const clientStartedAt = tracing ? performance.now() : void 0;
2693
- const client = new (0, _chunkKBM5T6UVjs.DeeplineClient)();
2694
+ const client = new (0, _chunkG6PUQQJPjs.DeeplineClient)();
2694
2695
  if (clientStartedAt !== void 0) {
2695
- _chunk4ZDHGAE6js.recordCliTrace.call(void 0, {
2696
+ _chunkFPWOEK7Gjs.recordCliTrace.call(void 0, {
2696
2697
  phase: "cli.tool_execute_client_setup",
2697
2698
  ms: performance.now() - clientStartedAt
2698
2699
  });
@@ -2701,13 +2702,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2701
2702
  const readMetadata = async () => {
2702
2703
  if (metadata) return assertExecutableToolMetadata(parsed.toolId, metadata);
2703
2704
  try {
2704
- metadata = await _chunkWDCOUJQ5js.runToolExecuteStage.call(void 0,
2705
+ metadata = await _chunkJC3ABOZPjs.runToolExecuteStage.call(void 0,
2705
2706
  "tool metadata lookup",
2706
2707
  () => client.getTool(parsed.toolId, { cliInvocationId })
2707
2708
  );
2708
2709
  } catch (error) {
2709
2710
  if (isMissingToolMetadataError(error)) {
2710
- const play = await _chunkWDCOUJQ5js.runToolExecuteStage.call(void 0,
2711
+ const play = await _chunkJC3ABOZPjs.runToolExecuteStage.call(void 0,
2711
2712
  "play alias lookup",
2712
2713
  () => findPlayForToolId(client, parsed.toolId, cliInvocationId)
2713
2714
  );
@@ -2736,7 +2737,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2736
2737
  assertExecutableToolMetadata(parsed.toolId, metadata);
2737
2738
  } catch (error) {
2738
2739
  if (error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2739
- if (wantsJson) _chunkVZN6D23Pjs.printJsonError.call(void 0, error);
2740
+ if (wantsJson) _chunkLV2DGEJ3js.printJsonError.call(void 0, error);
2740
2741
  else console.error(error.message);
2741
2742
  return 2;
2742
2743
  }
@@ -2748,7 +2749,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2748
2749
  metadata = await readMetadata();
2749
2750
  } catch (error) {
2750
2751
  if (error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2751
- if (wantsJson) _chunkVZN6D23Pjs.printJsonError.call(void 0, error);
2752
+ if (wantsJson) _chunkLV2DGEJ3js.printJsonError.call(void 0, error);
2752
2753
  else console.error(error.message);
2753
2754
  return 2;
2754
2755
  }
@@ -2764,7 +2765,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2764
2765
  metadata = await readMetadata();
2765
2766
  } catch (error) {
2766
2767
  if (error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2767
- if (wantsJson) _chunkVZN6D23Pjs.printJsonError.call(void 0, error);
2768
+ if (wantsJson) _chunkLV2DGEJ3js.printJsonError.call(void 0, error);
2768
2769
  else console.error(error.message);
2769
2770
  return 2;
2770
2771
  }
@@ -2790,11 +2791,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2790
2791
  responseIntent,
2791
2792
  ...idempotencyKey ? { idempotencyKey } : {},
2792
2793
  ...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
2793
- searchRef: _chunkRR6G6ZCTjs.recentSearchRef.call(void 0, parsed.toolId),
2794
+ searchRef: _chunkT4NQ2ZOHjs.recentSearchRef.call(void 0, parsed.toolId),
2794
2795
  cliInvocationId,
2795
- onResponseReceived: _chunkJKLFRDQ6js.recordApiResponse,
2796
+ onResponseReceived: _chunkWP3ULMRUjs.recordApiResponse,
2796
2797
  ...tracing ? {
2797
- onServerTiming: (serverTiming) => _chunk4ZDHGAE6js.recordCliTrace.call(void 0, {
2798
+ onServerTiming: (serverTiming) => _chunkFPWOEK7Gjs.recordCliTrace.call(void 0, {
2798
2799
  phase: "tool_execute_server_timing",
2799
2800
  cliInvocationId,
2800
2801
  serverTiming,
@@ -2805,13 +2806,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2805
2806
  let rawResponse;
2806
2807
  let successfulCompatibilityResponse;
2807
2808
  try {
2808
- const executeResult = await _chunkWDCOUJQ5js.runToolExecuteStage.call(void 0,
2809
+ const executeResult = await _chunkJC3ABOZPjs.runToolExecuteStage.call(void 0,
2809
2810
  "execute request",
2810
2811
  async () => {
2811
2812
  try {
2812
2813
  if (tracing) {
2813
2814
  submissionStartedAt = performance.now();
2814
- _chunk4ZDHGAE6js.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2815
+ _chunkFPWOEK7Gjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2815
2816
  }
2816
2817
  return await client.executeTool(parsed.toolId, parsed.params, {
2817
2818
  ...executeOptions,
@@ -2821,34 +2822,34 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2821
2822
  } catch (error) {
2822
2823
  if (!(error instanceof _chunkDIAWYWT5js.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
2823
2824
  throw error;
2824
- const baseUrl = _chunkL7CAOWHYjs.resolveConfig.call(void 0, ).baseUrl;
2825
+ const baseUrl = _chunkA253CMOIjs.resolveConfig.call(void 0, ).baseUrl;
2825
2826
  if (maintenancePolicy !== "off") {
2826
- _chunk4DSRBHN6js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
2827
+ _chunkRLVSWAWBjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
2827
2828
  }
2828
- const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunkWDCOUJQ5js.runToolExecuteStage.call(void 0,
2829
+ const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunkJC3ABOZPjs.runToolExecuteStage.call(void 0,
2829
2830
  "SDK compatibility",
2830
- () => _chunk4DSRBHN6js.checkSdkCompatibility.call(void 0, baseUrl, {
2831
+ () => _chunkRLVSWAWBjs.checkSdkCompatibility.call(void 0, baseUrl, {
2831
2832
  command: "tools execute",
2832
- skillsVersion: _chunkL7CAOWHYjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
2833
+ skillsVersion: _chunkA253CMOIjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
2833
2834
  persistCache: maintenancePolicy !== "off"
2834
2835
  })
2835
2836
  );
2836
2837
  if (compatibility.error) throw compatibility.error;
2837
2838
  metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _44 => _44.readMetadata, 'call', _45 => _45()]), () => ( metadata));
2838
- if (maintenancePolicy !== "off" && await _chunkWDCOUJQ5js.maybeAutoUpdateAndRelaunch.call(void 0,
2839
+ if (maintenancePolicy !== "off" && await _chunkJC3ABOZPjs.maybeAutoUpdateAndRelaunch.call(void 0,
2839
2840
  compatibility.response,
2840
2841
  baseUrl,
2841
2842
  maintenancePolicy
2842
2843
  )) {
2843
2844
  return void 0;
2844
2845
  }
2845
- _chunk4DSRBHN6js.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
2846
+ _chunkRLVSWAWBjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
2846
2847
  quietAdvisory: wantsJson
2847
2848
  });
2848
2849
  if (maintenancePolicy !== "off") {
2849
- await _chunkWDCOUJQ5js.runToolExecuteStage.call(void 0,
2850
+ await _chunkJC3ABOZPjs.runToolExecuteStage.call(void 0,
2850
2851
  "agent skills sync",
2851
- () => _chunk4DSRBHN6js.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
2852
+ () => _chunkRLVSWAWBjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
2852
2853
  update: _optionalChain([compatibility, 'access', _46 => _46.response, 'optionalAccess', _47 => _47.skills]),
2853
2854
  mode: "detached"
2854
2855
  })
@@ -2857,7 +2858,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2857
2858
  const legacyMetadata = await readMetadata();
2858
2859
  if (tracing) {
2859
2860
  submissionStartedAt = performance.now();
2860
- _chunk4ZDHGAE6js.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2861
+ _chunkFPWOEK7Gjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2861
2862
  }
2862
2863
  return client.executeTool(parsed.toolId, parsed.params, {
2863
2864
  ...executeOptions,
@@ -2880,8 +2881,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2880
2881
  metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
2881
2882
  const updateRequiredBeforeExecution = error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
2882
2883
  if (updateRequiredBeforeExecution && maintenancePolicy !== "off" && compatibility && !compatibility.error) {
2883
- const baseUrl = _chunkL7CAOWHYjs.resolveConfig.call(void 0, ).baseUrl;
2884
- if (await _chunkWDCOUJQ5js.maybeAutoUpdateAndRelaunch.call(void 0,
2884
+ const baseUrl = _chunkA253CMOIjs.resolveConfig.call(void 0, ).baseUrl;
2885
+ if (await _chunkJC3ABOZPjs.maybeAutoUpdateAndRelaunch.call(void 0,
2885
2886
  compatibility.response,
2886
2887
  baseUrl,
2887
2888
  maintenancePolicy
@@ -2905,7 +2906,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2905
2906
  }
2906
2907
  }
2907
2908
  if (failure instanceof _chunkDIAWYWT5js.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
2908
- if (wantsJson) _chunkVZN6D23Pjs.printJsonError.call(void 0, failure);
2909
+ if (wantsJson) _chunkLV2DGEJ3js.printJsonError.call(void 0, failure);
2909
2910
  else console.error(failure.message);
2910
2911
  return 2;
2911
2912
  }
@@ -2932,9 +2933,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2932
2933
  successfulCompatibilityResponse = _nullishCoalesce(compatibilityResponse, () => ( void 0));
2933
2934
  const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _54 => _54.auto_update]);
2934
2935
  if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _55 => _55.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
2935
- await _chunkWDCOUJQ5js.maybeAutoUpdateAndRelaunch.call(void 0,
2936
+ await _chunkJC3ABOZPjs.maybeAutoUpdateAndRelaunch.call(void 0,
2936
2937
  compatibilityResponse,
2937
- _chunkL7CAOWHYjs.resolveConfig.call(void 0, ).baseUrl,
2938
+ _chunkA253CMOIjs.resolveConfig.call(void 0, ).baseUrl,
2938
2939
  maintenancePolicy
2939
2940
  );
2940
2941
  }
@@ -2969,7 +2970,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2969
2970
  const { _metadata, ...execution } = rawResponse;
2970
2971
  rawResponse = execution;
2971
2972
  }
2972
- const { listConversion, summary, baseEnvelope } = await _chunkWDCOUJQ5js.runToolExecuteStage.call(void 0,
2973
+ const { listConversion, summary, baseEnvelope } = await _chunkJC3ABOZPjs.runToolExecuteStage.call(void 0,
2973
2974
  "result formatting",
2974
2975
  async () => {
2975
2976
  const listConversion2 = _chunkHGFFYVXNjs.tryConvertToList.call(void 0, rawResponse, {
@@ -3004,9 +3005,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3004
3005
  }
3005
3006
  skillsSyncAttempted = true;
3006
3007
  try {
3007
- await _chunkWDCOUJQ5js.runToolExecuteStage.call(void 0,
3008
+ await _chunkJC3ABOZPjs.runToolExecuteStage.call(void 0,
3008
3009
  "agent skills sync",
3009
- () => _chunk4DSRBHN6js.syncSdkSkillsIfNeeded.call(void 0, _chunkL7CAOWHYjs.resolveConfig.call(void 0, ).baseUrl, {
3010
+ () => _chunkRLVSWAWBjs.syncSdkSkillsIfNeeded.call(void 0, _chunkA253CMOIjs.resolveConfig.call(void 0, ).baseUrl, {
3010
3011
  update: deliveredCompatibilityResponse.skills,
3011
3012
  mode: "detached"
3012
3013
  })
@@ -3017,15 +3018,15 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3017
3018
  );
3018
3019
  }
3019
3020
  };
3020
- const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0, envelope, {
3021
+ const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkLV2DGEJ3js.printCommandEnvelope.call(void 0, envelope, {
3021
3022
  ...options2,
3022
3023
  json: _nullishCoalesce(options2.json, () => ( wantsJson))
3023
3024
  });
3024
3025
  const printDeliveredJsonEnvelope = async (envelope, options2 = {}) => {
3025
3026
  await syncSkillsForDeliveredOutput();
3026
- _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
3027
+ _chunkLV2DGEJ3js.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
3027
3028
  };
3028
- const delivered = await _chunkWDCOUJQ5js.runToolExecuteStage.call(void 0, "output delivery", async () => {
3029
+ const delivered = await _chunkJC3ABOZPjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
3029
3030
  if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
3030
3031
  await printDeliveredJsonEnvelope(baseEnvelope);
3031
3032
  return true;
@@ -3054,7 +3055,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3054
3055
  `${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
3055
3056
  );
3056
3057
  if (wantsJson) {
3057
- _chunkVZN6D23Pjs.printJsonError.call(void 0, error);
3058
+ _chunkLV2DGEJ3js.printJsonError.call(void 0, error);
3058
3059
  } else {
3059
3060
  console.error(error.message);
3060
3061
  }
@@ -3149,13 +3150,13 @@ inspect: ${inspection.inspect}
3149
3150
  return true;
3150
3151
  });
3151
3152
  if (delivered) {
3152
- await _chunkWDCOUJQ5js.runToolExecuteStage.call(void 0,
3153
+ await _chunkJC3ABOZPjs.runToolExecuteStage.call(void 0,
3153
3154
  "acknowledge delivery",
3154
3155
  () => recovery.acknowledgeDelivery()
3155
3156
  );
3156
3157
  }
3157
3158
  if (delivered && deliveredCompatibilityResponse && deliveredCompatibilityResponse.update_required !== true) {
3158
- _chunk4DSRBHN6js.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
3159
+ _chunkRLVSWAWBjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
3159
3160
  quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _58 => _58.auto_update, 'optionalAccess', _59 => _59.should_auto_update]) === true
3160
3161
  });
3161
3162
  }