deepline 0.3.528 → 0.3.529

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 (131) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +60 -0
  3. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +22 -1
  4. package/dist/bundling-sources/shared_libs/play-runtime/runtime-capacity-policy.ts +3 -2
  5. package/dist/bundling-sources/shared_libs/play-runtime/runtime-telemetry.ts +123 -0
  6. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +203 -44
  7. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +43 -16
  8. package/dist/cli/auth-P7M7SXM5.js +43 -0
  9. package/dist/cli/{auth-PPOTNK4T.mjs → auth-V7A6TU4G.mjs} +5 -5
  10. package/dist/cli/{billing-OEZUQ2K6.mjs → billing-5VBUYPWW.mjs} +6 -6
  11. package/dist/cli/{billing-3C7T7CUQ.js → billing-XF6SAA5Y.js} +79 -79
  12. package/dist/cli/{chunk-5MJ4CDAQ.js → chunk-2GV54JFN.js} +44 -44
  13. package/dist/cli/{chunk-LT4IEJ6V.js → chunk-4722FTYU.js} +16 -16
  14. package/dist/cli/{chunk-DCVNL5XN.mjs → chunk-4A4OQMJX.mjs} +1 -1
  15. package/dist/cli/{chunk-R5ZQVQ3K.js → chunk-4BKE63Q7.js} +26 -26
  16. package/dist/cli/{chunk-KWIKFR7Y.mjs → chunk-5NZEA2YV.mjs} +1 -1
  17. package/dist/cli/{chunk-IYCRX34W.mjs → chunk-6XZIXDLC.mjs} +5 -5
  18. package/dist/cli/{chunk-LU4EA3ET.js → chunk-7RTDSHMB.js} +2 -2
  19. package/dist/cli/{chunk-ZFD5FJCZ.js → chunk-7SRZTSHU.js} +5 -5
  20. package/dist/cli/{chunk-IJAEYEJM.js → chunk-7Z3ZXSOX.js} +3 -3
  21. package/dist/cli/{chunk-FXYWEKUK.js → chunk-AP7DNG6D.js} +4 -4
  22. package/dist/cli/{chunk-RML3VSTN.mjs → chunk-BOWZ3OOU.mjs} +1 -1
  23. package/dist/cli/{chunk-7X3NLHI7.js → chunk-BRQDN67G.js} +6 -6
  24. package/dist/cli/{chunk-IM5XQ4DG.mjs → chunk-C2WTS7WY.mjs} +5 -5
  25. package/dist/cli/{chunk-ULUI2FEM.mjs → chunk-DKX5CGTG.mjs} +1 -1
  26. package/dist/cli/{chunk-OVZSNBDJ.js → chunk-DPGPXARU.js} +53 -53
  27. package/dist/cli/{chunk-GP7E4TE4.mjs → chunk-E7CN5GEM.mjs} +2 -2
  28. package/dist/cli/{chunk-KLGYBOGZ.mjs → chunk-ETCGTKLF.mjs} +1 -1
  29. package/dist/cli/{chunk-6OLQWQU5.mjs → chunk-EW33RCLA.mjs} +3 -3
  30. package/dist/cli/{chunk-XD2DRBPH.js → chunk-FCNSJHED.js} +6 -6
  31. package/dist/cli/{chunk-NCOTOGTK.mjs → chunk-FWC47SCG.mjs} +2 -2
  32. package/dist/cli/{chunk-GFGFAAY2.mjs → chunk-FXHKNZM2.mjs} +1 -1
  33. package/dist/cli/{chunk-NZM4KWWV.mjs → chunk-G4SYSUDB.mjs} +5 -5
  34. package/dist/cli/{chunk-B6YWCGVC.mjs → chunk-GPU4ULMY.mjs} +10 -10
  35. package/dist/cli/{chunk-B3HQF2CA.js → chunk-H2JAXOPP.js} +11 -11
  36. package/dist/cli/{chunk-RC5CG5SE.mjs → chunk-HV4UKMBB.mjs} +4 -4
  37. package/dist/cli/{chunk-T4QPRL3P.mjs → chunk-K55VBSCA.mjs} +3 -3
  38. package/dist/cli/{chunk-7WZXUAQW.js → chunk-KAI64HV7.js} +7 -7
  39. package/dist/cli/{chunk-4SBUXDKZ.js → chunk-KSUWW26I.js} +13 -13
  40. package/dist/cli/{chunk-IXEEXYE2.js → chunk-L3J7IAYE.js} +9 -9
  41. package/dist/cli/{chunk-237PKFIQ.js → chunk-M47I47FK.js} +14 -14
  42. package/dist/cli/{chunk-Z44S7VWO.mjs → chunk-NDVCVFZW.mjs} +2 -2
  43. package/dist/cli/{chunk-MLNH4DK2.js → chunk-NVH6ULDP.js} +22 -22
  44. package/dist/cli/{chunk-42ZSDTOC.mjs → chunk-NVSMSP2J.mjs} +2 -2
  45. package/dist/cli/{chunk-RFTBMEWL.js → chunk-OA4FI5ZM.js} +2 -2
  46. package/dist/cli/{chunk-CMTY6SVY.mjs → chunk-PAAREIKG.mjs} +2 -2
  47. package/dist/cli/{chunk-PS2UYVAE.mjs → chunk-PJDYY5JL.mjs} +6 -6
  48. package/dist/cli/{chunk-OGVUT2KM.js → chunk-PNWBODCB.js} +7 -7
  49. package/dist/cli/{chunk-OEI7YUEF.js → chunk-QTQWPSAK.js} +3 -3
  50. package/dist/cli/{chunk-AFIAVG5T.mjs → chunk-R62Z4INU.mjs} +2 -2
  51. package/dist/cli/{chunk-36UD7H7Y.js → chunk-RWY2QLJ4.js} +41 -41
  52. package/dist/cli/{chunk-ADZGTMLU.js → chunk-TEFO5AS2.js} +98 -98
  53. package/dist/cli/{chunk-KHVCHFE3.js → chunk-UMCEXTRM.js} +16 -16
  54. package/dist/cli/{chunk-Z25KC5V2.mjs → chunk-XE4PQE2O.mjs} +1 -1
  55. package/dist/cli/{chunk-GCBFSFLA.js → chunk-XEZSORKG.js} +5 -5
  56. package/dist/cli/{chunk-WXHBD6H7.js → chunk-XZ6OY3BH.js} +1 -1
  57. package/dist/cli/{chunk-SP2KZ7SH.mjs → chunk-Y4P6XJHU.mjs} +1 -1
  58. package/dist/cli/{chunk-HJVNCRXY.mjs → chunk-YVJJEMNQ.mjs} +1 -1
  59. package/dist/cli/{chunk-G7RTPKRJ.js → chunk-ZEIN5YJS.js} +2 -2
  60. package/dist/cli/{chunk-FPHAUP55.mjs → chunk-ZULLXAJJ.mjs} +5 -5
  61. package/dist/cli/{chunk-GSBKODMU.mjs → chunk-ZYMX7KZE.mjs} +2 -2
  62. package/dist/cli/{csv-K7TRWOFJ.mjs → csv-IHLVHG35.mjs} +4 -4
  63. package/dist/cli/{csv-OTRVTHD2.js → csv-VEKMGGOE.js} +13 -13
  64. package/dist/cli/{db-UO2ZFLFN.js → db-NTFFISQG.js} +27 -27
  65. package/dist/cli/{db-C7GQU3TZ.mjs → db-RKLVYARP.mjs} +6 -6
  66. package/dist/cli/{describe-LG4CPTIV.mjs → describe-62ELB5DZ.mjs} +18 -18
  67. package/dist/cli/describe-JXOGKT6C.js +50 -0
  68. package/dist/cli/{executions-P3INNVZE.mjs → executions-5BMZW4C7.mjs} +6 -6
  69. package/dist/cli/{executions-LHFVPO7E.js → executions-X7NMKMXW.js} +8 -8
  70. package/dist/cli/{feedback-M3HZQAWX.js → feedback-RDN5O4AT.js} +14 -14
  71. package/dist/cli/{feedback-H22FWG63.mjs → feedback-UHHWCIFD.mjs} +6 -6
  72. package/dist/cli/{git-G2N7PVFI.mjs → git-3M33GKOW.mjs} +5 -5
  73. package/dist/cli/git-7VZGGIGZ.js +25 -0
  74. package/dist/cli/index.js +141 -141
  75. package/dist/cli/index.mjs +43 -43
  76. package/dist/cli/{legacy-noops-LDYSWTL2.mjs → legacy-noops-7RVRPF5B.mjs} +6 -6
  77. package/dist/cli/{legacy-noops-2RVROWBY.js → legacy-noops-ENKN6JU4.js} +9 -9
  78. package/dist/cli/{monitors-IYT3VON7.mjs → monitors-FJPDMUQ6.mjs} +7 -7
  79. package/dist/cli/{monitors-U4RE6KN5.js → monitors-YOWDFGIR.js} +100 -100
  80. package/dist/cli/{org-SO52ZGRP.js → org-4GBLI75H.js} +86 -86
  81. package/dist/cli/{org-R3JE22GS.mjs → org-H24LOZAC.mjs} +6 -6
  82. package/dist/cli/{pages-5RLT5YTF.mjs → pages-BKM2D6BV.mjs} +6 -6
  83. package/dist/cli/{pages-SWXJQJXH.js → pages-WWVLYB5K.js} +18 -18
  84. package/dist/cli/{play-2ELYCSXZ.mjs → play-M3CSYH3A.mjs} +18 -18
  85. package/dist/cli/{play-J4UXOQOJ.js → play-TXHKCG6B.js} +317 -317
  86. package/dist/cli/{providers-IXITXHTS.mjs → providers-EW5WTMTX.mjs} +6 -6
  87. package/dist/cli/{providers-VVUDGV2D.js → providers-XL4SNFHU.js} +9 -9
  88. package/dist/cli/{quickstart-XPH6MT47.js → quickstart-AFQ5MCDL.js} +6 -6
  89. package/dist/cli/{quickstart-HQCGDPPL.mjs → quickstart-SZSLS553.mjs} +4 -4
  90. package/dist/cli/{run-OR646AC6.js → run-MOFHGYSN.js} +41 -41
  91. package/dist/cli/{run-H2HQPWC4.mjs → run-TWXFNH6U.mjs} +23 -23
  92. package/dist/cli/{search-MBPI5SBW.mjs → search-2SW4V4IR.mjs} +8 -8
  93. package/dist/cli/search-V2AGWRLO.js +33 -0
  94. package/dist/cli/{search-output-YGNSHBXX.js → search-output-CJGRPJYD.js} +6 -6
  95. package/dist/cli/{search-output-CYOMJNRV.mjs → search-output-I6DNYXNT.mjs} +4 -4
  96. package/dist/cli/{secrets-NK2CN7WI.mjs → secrets-4XXLR6QO.mjs} +6 -6
  97. package/dist/cli/{secrets-HVZKNNLZ.js → secrets-SD43HSLX.js} +15 -15
  98. package/dist/cli/{sessions-NY4G427U.mjs → sessions-7G32HW5R.mjs} +6 -6
  99. package/dist/cli/sessions-FIRDFPIZ.js +22 -0
  100. package/dist/cli/{settings-RC4FGYY2.mjs → settings-HSYRY2L5.mjs} +13 -13
  101. package/dist/cli/{settings-PVJRDEN2.js → settings-SYEBDDDJ.js} +86 -86
  102. package/dist/cli/{setup-B7QB4YV2.js → setup-VTWCVCTK.js} +50 -50
  103. package/dist/cli/{setup-YT3XSY6X.mjs → setup-XZVBPKZK.mjs} +10 -10
  104. package/dist/cli/{skills-5ILFNAHR.mjs → skills-OMPEUMRT.mjs} +8 -8
  105. package/dist/cli/skills-RUY7CION.js +37 -0
  106. package/dist/cli/tools-KLIW7G6T.js +57 -0
  107. package/dist/cli/{tools-7PAY32OZ.mjs → tools-UEDNJI4G.mjs} +17 -17
  108. package/dist/cli/{update-Z27QYB6O.mjs → update-4YVCUSSI.mjs} +10 -10
  109. package/dist/cli/update-FDUZRKKU.js +35 -0
  110. package/dist/cli/{views-2IANF6KR.mjs → views-4FP4AJQ2.mjs} +6 -6
  111. package/dist/cli/{views-NP2SCMOV.js → views-ZCCSKWMP.js} +18 -18
  112. package/dist/cli/{workflow-CAMEZLLY.mjs → workflow-A2D5FALP.mjs} +7 -7
  113. package/dist/cli/{workflow-2GNQL646.js → workflow-SM4OD4VJ.js} +17 -17
  114. package/dist/index.js +9 -9
  115. package/dist/index.mjs +6 -6
  116. package/dist/install-integrity.json +104 -104
  117. package/dist/release.d.mts +1 -1
  118. package/dist/release.d.ts +1 -1
  119. package/dist/release.js +2 -2
  120. package/dist/release.mjs +1 -1
  121. package/dist/server.js +5 -5
  122. package/dist/server.mjs +3 -3
  123. package/package.json +1 -1
  124. package/dist/cli/auth-CWJZYLTB.js +0 -43
  125. package/dist/cli/describe-IK4UYJ5M.js +0 -50
  126. package/dist/cli/git-72ADWRUQ.js +0 -25
  127. package/dist/cli/search-D27DZH2D.js +0 -33
  128. package/dist/cli/sessions-MTISSOZ4.js +0 -22
  129. package/dist/cli/skills-BHF35NLX.js +0 -37
  130. package/dist/cli/tools-W5BZ37L6.js +0 -57
  131. package/dist/cli/update-M65CGK42.js +0 -35
@@ -2,11 +2,11 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk7X3NLHI7js = require('./chunk-7X3NLHI7.js');
5
+ var _chunkBRQDN67Gjs = require('./chunk-BRQDN67G.js');
6
6
 
7
7
 
8
8
 
9
- var _chunkB3HQF2CAjs = require('./chunk-B3HQF2CA.js');
9
+ var _chunkH2JAXOPPjs = require('./chunk-H2JAXOPP.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 _chunkGCBFSFLAjs = require('./chunk-GCBFSFLA.js');
49
+ var _chunkXEZSORKGjs = require('./chunk-XEZSORKG.js');
50
50
 
51
51
 
52
- var _chunkOGVUT2KMjs = require('./chunk-OGVUT2KM.js');
52
+ var _chunkPNWBODCBjs = require('./chunk-PNWBODCB.js');
53
53
 
54
54
 
55
55
  var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
@@ -59,18 +59,18 @@ var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
59
59
 
60
60
 
61
61
 
62
- var _chunkMLNH4DK2js = require('./chunk-MLNH4DK2.js');
62
+ var _chunkNVH6ULDPjs = require('./chunk-NVH6ULDP.js');
63
63
 
64
64
 
65
65
 
66
66
 
67
- var _chunkLU4EA3ETjs = require('./chunk-LU4EA3ET.js');
67
+ var _chunk7RTDSHMBjs = require('./chunk-7RTDSHMB.js');
68
68
 
69
69
 
70
70
 
71
71
 
72
72
 
73
- var _chunk5MJ4CDAQjs = require('./chunk-5MJ4CDAQ.js');
73
+ var _chunk2GV54JFNjs = require('./chunk-2GV54JFN.js');
74
74
 
75
75
 
76
76
 
@@ -78,12 +78,12 @@ var _chunk5MJ4CDAQjs = require('./chunk-5MJ4CDAQ.js');
78
78
 
79
79
 
80
80
 
81
- var _chunk7WZXUAQWjs = require('./chunk-7WZXUAQW.js');
81
+ var _chunkKAI64HV7js = require('./chunk-KAI64HV7.js');
82
82
 
83
83
 
84
84
 
85
85
 
86
- var _chunkIJAEYEJMjs = require('./chunk-IJAEYEJM.js');
86
+ var _chunk7Z3ZXSOXjs = require('./chunk-7Z3ZXSOX.js');
87
87
 
88
88
 
89
89
  var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.js');
@@ -189,10 +189,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
189
189
  }
190
190
  };
191
191
  function pendingToolExecutionPath(input) {
192
- const config = _chunkIJAEYEJMjs.resolveConfig.call(void 0, );
192
+ const config = _chunk7Z3ZXSOXjs.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(_chunkXDVT3GOMjs.stableStringify.call(void 0, input.params)).update("\0").update(input.responseIntent).digest("hex");
194
194
  return _path.join.call(void 0,
195
- _chunkIJAEYEJMjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
195
+ _chunk7Z3ZXSOXjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
196
196
  `${PENDING_PREFIX}${fingerprint}.json`
197
197
  );
198
198
  }
@@ -506,13 +506,13 @@ function categoryEnumerationRender(summaries) {
506
506
  };
507
507
  }
508
508
  async function listToolCategories(emitJson, compact) {
509
- const client = new (0, _chunkGCBFSFLAjs.DeeplineClient)();
509
+ const client = new (0, _chunkXEZSORKGjs.DeeplineClient)();
510
510
  if (!emitJson) {
511
511
  const summaries2 = (await client.listToolCategories()).map((category) => ({
512
512
  ...category,
513
513
  description: describeToolCategory(category.name)
514
514
  }));
515
- _chunk7WZXUAQWjs.printCommandEnvelope.call(void 0,
515
+ _chunkKAI64HV7js.printCommandEnvelope.call(void 0,
516
516
  { categories: summaries2, render: categoryEnumerationRender(summaries2) },
517
517
  { json: false }
518
518
  );
@@ -522,7 +522,7 @@ async function listToolCategories(emitJson, compact) {
522
522
  const items = rawTools.map(toListedTool);
523
523
  const summaries = aggregateCategorySummaries(rawTools);
524
524
  const outputItems = compact ? items.map(compactTool) : items;
525
- _chunk7WZXUAQWjs.printCommandEnvelope.call(void 0,
525
+ _chunkKAI64HV7js.printCommandEnvelope.call(void 0,
526
526
  {
527
527
  tools: outputItems,
528
528
  count: outputItems.length,
@@ -541,7 +541,7 @@ function unknownCategoryError(category, summaries, emitJson) {
541
541
  const known = summaries.map((item) => item.name);
542
542
  const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
543
543
  if (emitJson) {
544
- _chunk7WZXUAQWjs.printJson.call(void 0, {
544
+ _chunkKAI64HV7js.printJson.call(void 0, {
545
545
  ok: false,
546
546
  exitCode: 4,
547
547
  code: "TOOL_CATEGORY_NOT_FOUND",
@@ -555,13 +555,13 @@ function unknownCategoryError(category, summaries, emitJson) {
555
555
  const render = categoryEnumerationRender(summaries);
556
556
  console.error(message);
557
557
  console.error("");
558
- console.error(_chunk7WZXUAQWjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
558
+ console.error(_chunkKAI64HV7js.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
559
559
  console.error("");
560
560
  console.error(`Valid categories: ${known.join(", ")}`);
561
561
  return 4;
562
562
  }
563
563
  async function listToolsInCategory(category, emitJson) {
564
- const client = new (0, _chunkGCBFSFLAjs.DeeplineClient)();
564
+ const client = new (0, _chunkXEZSORKGjs.DeeplineClient)();
565
565
  const { tools: rawTools, categories } = await client.listToolsInCategory(category);
566
566
  const summaries = categories.map((item) => ({
567
567
  ...item,
@@ -597,7 +597,7 @@ async function listToolsInCategory(category, emitJson) {
597
597
  }
598
598
  ]
599
599
  };
600
- _chunk7WZXUAQWjs.printCommandEnvelope.call(void 0,
600
+ _chunkKAI64HV7js.printCommandEnvelope.call(void 0,
601
601
  {
602
602
  category,
603
603
  total: rows.length,
@@ -610,7 +610,7 @@ async function listToolsInCategory(category, emitJson) {
610
610
  return 0;
611
611
  }
612
612
  async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
613
- const client = new (0, _chunkGCBFSFLAjs.DeeplineClient)();
613
+ const client = new (0, _chunkXEZSORKGjs.DeeplineClient)();
614
614
  const items = (await client.listTools({
615
615
  categories: requestedCategories.join(","),
616
616
  compact
@@ -639,7 +639,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
639
639
  ]
640
640
  };
641
641
  const outputItems = compact ? items.map(compactTool) : items;
642
- _chunk7WZXUAQWjs.printCommandEnvelope.call(void 0,
642
+ _chunkKAI64HV7js.printCommandEnvelope.call(void 0,
643
643
  {
644
644
  tools: outputItems,
645
645
  count: outputItems.length,
@@ -658,13 +658,13 @@ async function listTools(category, options = {}) {
658
658
  const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
659
659
  const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
660
660
  const compact = options.compact !== false;
661
- const emitJson = options.json === true || _chunk7WZXUAQWjs.shouldEmitJson.call(void 0, );
661
+ const emitJson = options.json === true || _chunkKAI64HV7js.shouldEmitJson.call(void 0, );
662
662
  if (positional && flagCategories.length > 0) {
663
663
  const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
664
664
  if (!flagIsSameSingle) {
665
665
  const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
666
666
  if (emitJson) {
667
- _chunk7WZXUAQWjs.printJson.call(void 0, {
667
+ _chunkKAI64HV7js.printJson.call(void 0, {
668
668
  ok: false,
669
669
  exitCode: 2,
670
670
  code: "TOOL_LIST_CATEGORY_CONFLICT",
@@ -691,7 +691,7 @@ async function grepTools(queryInput, options = {}) {
691
691
  console.error("Usage: deepline tools grep <query> [--json]");
692
692
  return 1;
693
693
  }
694
- const client = new (0, _chunkGCBFSFLAjs.DeeplineClient)();
694
+ const client = new (0, _chunkXEZSORKGjs.DeeplineClient)();
695
695
  const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
696
696
  const mode = _nullishCoalesce(options.mode, () => ( "all"));
697
697
  const jsonOutput = options.json === true;
@@ -715,7 +715,7 @@ async function grepTools(queryInput, options = {}) {
715
715
  query,
716
716
  mode
717
717
  }) : null;
718
- _chunk7WZXUAQWjs.printCommandEnvelope.call(void 0,
718
+ _chunkKAI64HV7js.printCommandEnvelope.call(void 0,
719
719
  {
720
720
  tools: outputTools,
721
721
  count: outputTools.length,
@@ -733,7 +733,7 @@ async function grepTools(queryInput, options = {}) {
733
733
  } : {},
734
734
  commandTemplates: TOOL_COMMAND_TEMPLATES
735
735
  },
736
- { json: options.json || _chunk7WZXUAQWjs.shouldEmitJson.call(void 0, ) }
736
+ { json: options.json || _chunkKAI64HV7js.shouldEmitJson.call(void 0, ) }
737
737
  );
738
738
  return 0;
739
739
  }
@@ -832,10 +832,10 @@ Output:
832
832
  tools.command("balance <provider>").description(
833
833
  "Read a fresh balance using this workspace\u2019s own provider connection (LeadMagic)."
834
834
  ).option("--json", "Print the balance and observation timestamp as JSON").action(async (provider, options) => {
835
- const balance = await new (0, _chunkGCBFSFLAjs.DeeplineClient)().getIntegrationBalance(
835
+ const balance = await new (0, _chunkXEZSORKGjs.DeeplineClient)().getIntegrationBalance(
836
836
  provider
837
837
  );
838
- if (_chunk7WZXUAQWjs.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(balance));
838
+ if (_chunkKAI64HV7js.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(balance));
839
839
  else
840
840
  console.log(
841
841
  `${balance.provider}: ${balance.balance.value} ${balance.unit} (observed ${balance.observedAt})`
@@ -860,10 +860,10 @@ Output:
860
860
  ).option("--json", "Print JSON without credential values").action(
861
861
  async (provider, options) => {
862
862
  if (options.link) {
863
- const link = await new (0, _chunkGCBFSFLAjs.DeeplineClient)().getIntegrationConnectLink(
863
+ const link = await new (0, _chunkXEZSORKGjs.DeeplineClient)().getIntegrationConnectLink(
864
864
  provider
865
865
  );
866
- if (_chunk7WZXUAQWjs.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(link));
866
+ if (_chunkKAI64HV7js.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(link));
867
867
  else console.log(link.connect_url);
868
868
  return;
869
869
  }
@@ -873,7 +873,7 @@ Output:
873
873
  if (options.preset !== void 0 && (options.scopes !== void 0 || options.optionalScopes !== void 0))
874
874
  throw new Error("Use --preset or individual scopes, not both.");
875
875
  const splitScopes = (value) => value.split(",").map((scope) => scope.trim()).filter(Boolean);
876
- const result2 = await new (0, _chunkGCBFSFLAjs.DeeplineClient)().startIntegrationOAuth(
876
+ const result2 = await new (0, _chunkXEZSORKGjs.DeeplineClient)().startIntegrationOAuth(
877
877
  provider,
878
878
  {
879
879
  ...options.preset !== void 0 ? { preset: options.preset } : {},
@@ -885,7 +885,7 @@ Output:
885
885
  throw new Error(
886
886
  "The API did not return an OAuth authorization URL."
887
887
  );
888
- if (_chunk7WZXUAQWjs.shouldEmitJson.call(void 0, options.json))
888
+ if (_chunkKAI64HV7js.shouldEmitJson.call(void 0, options.json))
889
889
  console.log(
890
890
  JSON.stringify({ provider, redirect_url: result2.redirect_url })
891
891
  );
@@ -911,7 +911,7 @@ Output:
911
911
  "--credentials-file must contain a nonempty JSON object of string credential values."
912
912
  );
913
913
  }
914
- const result = await new (0, _chunkGCBFSFLAjs.DeeplineClient)().setIntegrationCredentials(
914
+ const result = await new (0, _chunkXEZSORKGjs.DeeplineClient)().setIntegrationCredentials(
915
915
  provider,
916
916
  credentials
917
917
  );
@@ -921,7 +921,7 @@ Output:
921
921
  );
922
922
  }
923
923
  const confirmation = { provider, credential_saved: true };
924
- if (_chunk7WZXUAQWjs.shouldEmitJson.call(void 0, options.json))
924
+ if (_chunkKAI64HV7js.shouldEmitJson.call(void 0, options.json))
925
925
  console.log(JSON.stringify(confirmation));
926
926
  else
927
927
  console.log(
@@ -961,7 +961,7 @@ Examples:
961
961
  json: Boolean(options.json)
962
962
  });
963
963
  });
964
- _chunkB3HQF2CAjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
964
+ _chunkH2JAXOPPjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
965
965
  tools.command("grep <query>").description(
966
966
  "Regex grep over tool ids, descriptions, categories, and input fields."
967
967
  ).addHelpText(
@@ -996,7 +996,7 @@ Examples:
996
996
  });
997
997
  const addToolMetadataCommand = (command) => {
998
998
  let compatibilityMetadata;
999
- _chunkMLNH4DK2js.registerCompatibilityCatalog.call(void 0, command, () => ({
999
+ _chunkNVH6ULDPjs.registerCompatibilityCatalog.call(void 0, command, () => ({
1000
1000
  toolId: command.args[0],
1001
1001
  acceptMetadata: (metadata) => {
1002
1002
  compatibilityMetadata = metadata;
@@ -1066,7 +1066,7 @@ Examples:
1066
1066
  process.exitCode = await narrowView();
1067
1067
  return;
1068
1068
  }
1069
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-IK4UYJ5M.js")));
1069
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-JXOGKT6C.js")));
1070
1070
  process.exitCode = await describeAnything(
1071
1071
  toolId,
1072
1072
  {
@@ -1081,7 +1081,7 @@ Examples:
1081
1081
  });
1082
1082
  };
1083
1083
  addToolMetadataCommand(
1084
- _chunk7X3NLHI7js.addDescribeOptions.call(void 0,
1084
+ _chunkBRQDN67Gjs.addDescribeOptions.call(void 0,
1085
1085
  tools.command("describe <toolId>", { hidden: true }).alias("get"),
1086
1086
  { json: false }
1087
1087
  )
@@ -1150,7 +1150,7 @@ Examples:
1150
1150
  options,
1151
1151
  void 0,
1152
1152
  true,
1153
- _chunkLU4EA3ETjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
1153
+ _chunk7RTDSHMBjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
1154
1154
  );
1155
1155
  }
1156
1156
  );
@@ -1158,13 +1158,13 @@ Examples:
1158
1158
  function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1159
1159
  let metadata;
1160
1160
  const startedAt = performance.now();
1161
- const baseUrl = _chunkIJAEYEJMjs.resolveConfig.call(void 0, ).baseUrl;
1162
- _chunkLU4EA3ETjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
1163
- const result = _chunkMLNH4DK2js.runToolExecuteStage.call(void 0,
1161
+ const baseUrl = _chunk7Z3ZXSOXjs.resolveConfig.call(void 0, ).baseUrl;
1162
+ _chunk7RTDSHMBjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
1163
+ const result = _chunkNVH6ULDPjs.runToolExecuteStage.call(void 0,
1164
1164
  "SDK compatibility",
1165
- () => _chunk5MJ4CDAQjs.checkSdkCompatibility.call(void 0, baseUrl, {
1165
+ () => _chunk2GV54JFNjs.checkSdkCompatibility.call(void 0, baseUrl, {
1166
1166
  command: "tools execute",
1167
- skillsVersion: _chunkIJAEYEJMjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
1167
+ skillsVersion: _chunk7Z3ZXSOXjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
1168
1168
  persistCache: false,
1169
1169
  timeoutMs: TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS,
1170
1170
  catalog: {
@@ -1178,7 +1178,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1178
1178
  })
1179
1179
  ).then(
1180
1180
  (compatibility) => {
1181
- _chunkLU4EA3ETjs.recordCliTrace.call(void 0, {
1181
+ _chunk7RTDSHMBjs.recordCliTrace.call(void 0, {
1182
1182
  phase: "cli.tool_execute_compatibility_ready",
1183
1183
  ms: performance.now() - startedAt,
1184
1184
  ok: compatibility.error === null,
@@ -1187,7 +1187,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1187
1187
  return compatibility;
1188
1188
  },
1189
1189
  (error) => {
1190
- _chunkLU4EA3ETjs.recordCliTrace.call(void 0, {
1190
+ _chunk7RTDSHMBjs.recordCliTrace.call(void 0, {
1191
1191
  phase: "cli.tool_execute_compatibility_ready",
1192
1192
  ms: performance.now() - startedAt,
1193
1193
  ok: false
@@ -1202,7 +1202,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1202
1202
  console.error("Usage: deepline tools describe <toolId> [--json]");
1203
1203
  return 1;
1204
1204
  }
1205
- const client = new (0, _chunkGCBFSFLAjs.DeeplineClient)();
1205
+ const client = new (0, _chunkXEZSORKGjs.DeeplineClient)();
1206
1206
  let tool;
1207
1207
  try {
1208
1208
  tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
@@ -1256,7 +1256,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1256
1256
  const lines = toolPricingOnlyLines(tool, toolId);
1257
1257
  if (inferenceQuote)
1258
1258
  lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
1259
- _chunk7WZXUAQWjs.printCommandEnvelope.call(void 0,
1259
+ _chunkKAI64HV7js.printCommandEnvelope.call(void 0,
1260
1260
  {
1261
1261
  toolId: String(tool.toolId || toolId),
1262
1262
  cost: _chunkZS2WHWWLjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
@@ -1279,7 +1279,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1279
1279
  void 0,
1280
1280
  seedToolListScript
1281
1281
  );
1282
- _chunk7WZXUAQWjs.printCompactJson.call(void 0, {
1282
+ _chunkKAI64HV7js.printCompactJson.call(void 0, {
1283
1283
  toolId: contract.toolId,
1284
1284
  ...options.schemaOnly ? {
1285
1285
  inputSchema: contract.inputSchema,
@@ -1302,7 +1302,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1302
1302
  return 0;
1303
1303
  }
1304
1304
  if (options.contractJson) {
1305
- _chunk7WZXUAQWjs.printCompactJson.call(void 0, {
1305
+ _chunkKAI64HV7js.printCompactJson.call(void 0, {
1306
1306
  ..._chunkZS2WHWWLjs.toolContractJsonForDescribe.call(void 0,
1307
1307
  tool,
1308
1308
  toolId,
@@ -1316,7 +1316,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1316
1316
  }
1317
1317
  const emitJson = options.json === true;
1318
1318
  if (emitJson) {
1319
- _chunk7WZXUAQWjs.printCompactJson.call(void 0, {
1319
+ _chunkKAI64HV7js.printCompactJson.call(void 0, {
1320
1320
  ..._chunkZS2WHWWLjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
1321
1321
  ...modelDescription ? { modelOptions: modelDescription } : {},
1322
1322
  ...inferenceQuote ? { inferenceQuote } : {}
@@ -2179,7 +2179,7 @@ function parseExecuteOptions(toolId, options, output) {
2179
2179
  outputFormat = normalizeOutputFormat(options.outputFormat);
2180
2180
  }
2181
2181
  if (options.idempotencyKey !== void 0) {
2182
- _chunkOGVUT2KMjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2182
+ _chunkPNWBODCBjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2183
2183
  }
2184
2184
  if (options.recoveryTimeoutMs !== void 0) {
2185
2185
  const parsed = Number(options.recoveryTimeoutMs);
@@ -2558,7 +2558,7 @@ function writeToolReceipt(input) {
2558
2558
  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;
2559
2559
  const status = typeof envelope.status === "string" ? envelope.status : "completed";
2560
2560
  const charged = _chunkZS2WHWWLjs.recordField.call(void 0, envelope, "billing").credits_charged;
2561
- _chunk7X3NLHI7js.writeExecutionOutput.call(void 0,
2561
+ _chunkBRQDN67Gjs.writeExecutionOutput.call(void 0,
2562
2562
  {
2563
2563
  id: _nullishCoalesce(input.key, () => ( jobId)),
2564
2564
  status,
@@ -2589,8 +2589,8 @@ async function executeToolForReceipt(input) {
2589
2589
  let retryKey = null;
2590
2590
  let received = false;
2591
2591
  try {
2592
- const cliInvocationId = _nullishCoalesce(_chunkMLNH4DK2js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkMLNH4DK2js.beginToolExecuteCommand.call(void 0, )));
2593
- const client = new (0, _chunkGCBFSFLAjs.DeeplineClient)();
2592
+ const cliInvocationId = _nullishCoalesce(_chunkNVH6ULDPjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkNVH6ULDPjs.beginToolExecuteCommand.call(void 0, )));
2593
+ const client = new (0, _chunkXEZSORKGjs.DeeplineClient)();
2594
2594
  const metadata = assertExecutableToolMetadata(
2595
2595
  toolId,
2596
2596
  await _asyncNullishCoalesce(input.metadata, async () => ( await client.getTool(toolId, { cliInvocationId })))
@@ -2611,9 +2611,9 @@ async function executeToolForReceipt(input) {
2611
2611
  ...input.timeoutMs !== void 0 ? { timeout: input.timeoutMs } : {},
2612
2612
  ..._optionalChain([metadata, 'access', _35 => _35.executionMetadata, 'optionalAccess', _36 => _36.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {},
2613
2613
  ...key ? { idempotencyKey: key } : {},
2614
- searchRef: _chunkB3HQF2CAjs.recentSearchRef.call(void 0, toolId),
2614
+ searchRef: _chunkH2JAXOPPjs.recentSearchRef.call(void 0, toolId),
2615
2615
  cliInvocationId,
2616
- onResponseReceived: _chunk7X3NLHI7js.recordApiResponse
2616
+ onResponseReceived: _chunkBRQDN67Gjs.recordApiResponse
2617
2617
  }).catch((error) => {
2618
2618
  const guidance = toolGuidanceLines(metadata.guidance);
2619
2619
  if (guidance.length)
@@ -2636,7 +2636,7 @@ async function executeToolForReceipt(input) {
2636
2636
  if (received) throw error;
2637
2637
  const outcomeKnown = answeredWithFailure(error);
2638
2638
  if (outcomeKnown) _optionalChain([retryKey, 'optionalAccess', _37 => _37.discard, 'call', _38 => _38()]);
2639
- _chunk7X3NLHI7js.writeExecutionOutput.call(void 0,
2639
+ _chunkBRQDN67Gjs.writeExecutionOutput.call(void 0,
2640
2640
  {
2641
2641
  id: outcomeKnown ? null : key,
2642
2642
  status: "failed",
@@ -2660,11 +2660,11 @@ function answeredWithFailure(error) {
2660
2660
  error.statusCode !== 408 && error.code !== "EXECUTION_OUTCOME_UNKNOWN";
2661
2661
  }
2662
2662
  async function getToolExecutionReceipt(key, output) {
2663
- const client = new (0, _chunkGCBFSFLAjs.DeeplineClient)();
2663
+ const client = new (0, _chunkXEZSORKGjs.DeeplineClient)();
2664
2664
  const execution = await client.executions.getByKey(key);
2665
2665
  output.label = `${execution.toolId} (tool)`;
2666
2666
  if (execution.response === void 0) {
2667
- _chunk7X3NLHI7js.writeExecutionOutput.call(void 0,
2667
+ _chunkBRQDN67Gjs.writeExecutionOutput.call(void 0,
2668
2668
  {
2669
2669
  id: key,
2670
2670
  status: execution.executionRecovery.state,
@@ -2693,19 +2693,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2693
2693
  parsed = parseExecuteOptions(toolId, options, output);
2694
2694
  } catch (error) {
2695
2695
  if (wantsJson) {
2696
- _chunk7WZXUAQWjs.printJsonError.call(void 0, error);
2696
+ _chunkKAI64HV7js.printJsonError.call(void 0, error);
2697
2697
  } else {
2698
2698
  console.error(error instanceof Error ? error.message : String(error));
2699
2699
  }
2700
2700
  return error instanceof _chunkSQWET4SLjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
2701
2701
  }
2702
- const cliInvocationId = _nullishCoalesce(_chunkMLNH4DK2js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkMLNH4DK2js.beginToolExecuteCommand.call(void 0, )));
2702
+ const cliInvocationId = _nullishCoalesce(_chunkNVH6ULDPjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkNVH6ULDPjs.beginToolExecuteCommand.call(void 0, )));
2703
2703
  const deferredCompatibility = deferCompatibility ? beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) : void 0;
2704
- const tracing = _chunkLU4EA3ETjs.isCliTraceEnabled.call(void 0, );
2704
+ const tracing = _chunk7RTDSHMBjs.isCliTraceEnabled.call(void 0, );
2705
2705
  const clientStartedAt = tracing ? performance.now() : void 0;
2706
- const client = new (0, _chunkGCBFSFLAjs.DeeplineClient)();
2706
+ const client = new (0, _chunkXEZSORKGjs.DeeplineClient)();
2707
2707
  if (clientStartedAt !== void 0) {
2708
- _chunkLU4EA3ETjs.recordCliTrace.call(void 0, {
2708
+ _chunk7RTDSHMBjs.recordCliTrace.call(void 0, {
2709
2709
  phase: "cli.tool_execute_client_setup",
2710
2710
  ms: performance.now() - clientStartedAt
2711
2711
  });
@@ -2714,13 +2714,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2714
2714
  const readMetadata = async () => {
2715
2715
  if (metadata) return assertExecutableToolMetadata(parsed.toolId, metadata);
2716
2716
  try {
2717
- metadata = await _chunkMLNH4DK2js.runToolExecuteStage.call(void 0,
2717
+ metadata = await _chunkNVH6ULDPjs.runToolExecuteStage.call(void 0,
2718
2718
  "tool metadata lookup",
2719
2719
  () => client.getTool(parsed.toolId, { cliInvocationId })
2720
2720
  );
2721
2721
  } catch (error) {
2722
2722
  if (isMissingToolMetadataError(error)) {
2723
- const play = await _chunkMLNH4DK2js.runToolExecuteStage.call(void 0,
2723
+ const play = await _chunkNVH6ULDPjs.runToolExecuteStage.call(void 0,
2724
2724
  "play alias lookup",
2725
2725
  () => findPlayForToolId(client, parsed.toolId, cliInvocationId)
2726
2726
  );
@@ -2749,7 +2749,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2749
2749
  assertExecutableToolMetadata(parsed.toolId, metadata);
2750
2750
  } catch (error) {
2751
2751
  if (error instanceof _chunkSQWET4SLjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2752
- if (wantsJson) _chunk7WZXUAQWjs.printJsonError.call(void 0, error);
2752
+ if (wantsJson) _chunkKAI64HV7js.printJsonError.call(void 0, error);
2753
2753
  else console.error(error.message);
2754
2754
  return 2;
2755
2755
  }
@@ -2761,7 +2761,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2761
2761
  metadata = await readMetadata();
2762
2762
  } catch (error) {
2763
2763
  if (error instanceof _chunkSQWET4SLjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2764
- if (wantsJson) _chunk7WZXUAQWjs.printJsonError.call(void 0, error);
2764
+ if (wantsJson) _chunkKAI64HV7js.printJsonError.call(void 0, error);
2765
2765
  else console.error(error.message);
2766
2766
  return 2;
2767
2767
  }
@@ -2777,7 +2777,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2777
2777
  metadata = await readMetadata();
2778
2778
  } catch (error) {
2779
2779
  if (error instanceof _chunkSQWET4SLjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2780
- if (wantsJson) _chunk7WZXUAQWjs.printJsonError.call(void 0, error);
2780
+ if (wantsJson) _chunkKAI64HV7js.printJsonError.call(void 0, error);
2781
2781
  else console.error(error.message);
2782
2782
  return 2;
2783
2783
  }
@@ -2803,11 +2803,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2803
2803
  responseIntent,
2804
2804
  ...idempotencyKey ? { idempotencyKey } : {},
2805
2805
  ...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
2806
- searchRef: _chunkB3HQF2CAjs.recentSearchRef.call(void 0, parsed.toolId),
2806
+ searchRef: _chunkH2JAXOPPjs.recentSearchRef.call(void 0, parsed.toolId),
2807
2807
  cliInvocationId,
2808
- onResponseReceived: _chunk7X3NLHI7js.recordApiResponse,
2808
+ onResponseReceived: _chunkBRQDN67Gjs.recordApiResponse,
2809
2809
  ...tracing ? {
2810
- onServerTiming: (serverTiming) => _chunkLU4EA3ETjs.recordCliTrace.call(void 0, {
2810
+ onServerTiming: (serverTiming) => _chunk7RTDSHMBjs.recordCliTrace.call(void 0, {
2811
2811
  phase: "tool_execute_server_timing",
2812
2812
  cliInvocationId,
2813
2813
  serverTiming,
@@ -2818,13 +2818,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2818
2818
  let rawResponse;
2819
2819
  let successfulCompatibilityResponse;
2820
2820
  try {
2821
- const executeResult = await _chunkMLNH4DK2js.runToolExecuteStage.call(void 0,
2821
+ const executeResult = await _chunkNVH6ULDPjs.runToolExecuteStage.call(void 0,
2822
2822
  "execute request",
2823
2823
  async () => {
2824
2824
  try {
2825
2825
  if (tracing) {
2826
2826
  submissionStartedAt = performance.now();
2827
- _chunkLU4EA3ETjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2827
+ _chunk7RTDSHMBjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2828
2828
  }
2829
2829
  return await client.executeTool(parsed.toolId, parsed.params, {
2830
2830
  ...executeOptions,
@@ -2834,34 +2834,34 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2834
2834
  } catch (error) {
2835
2835
  if (!(error instanceof _chunkSQWET4SLjs.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
2836
2836
  throw error;
2837
- const baseUrl = _chunkIJAEYEJMjs.resolveConfig.call(void 0, ).baseUrl;
2837
+ const baseUrl = _chunk7Z3ZXSOXjs.resolveConfig.call(void 0, ).baseUrl;
2838
2838
  if (maintenancePolicy !== "off") {
2839
- _chunk5MJ4CDAQjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
2839
+ _chunk2GV54JFNjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
2840
2840
  }
2841
- const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunkMLNH4DK2js.runToolExecuteStage.call(void 0,
2841
+ const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunkNVH6ULDPjs.runToolExecuteStage.call(void 0,
2842
2842
  "SDK compatibility",
2843
- () => _chunk5MJ4CDAQjs.checkSdkCompatibility.call(void 0, baseUrl, {
2843
+ () => _chunk2GV54JFNjs.checkSdkCompatibility.call(void 0, baseUrl, {
2844
2844
  command: "tools execute",
2845
- skillsVersion: _chunkIJAEYEJMjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
2845
+ skillsVersion: _chunk7Z3ZXSOXjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
2846
2846
  persistCache: maintenancePolicy !== "off"
2847
2847
  })
2848
2848
  );
2849
2849
  if (compatibility.error) throw compatibility.error;
2850
2850
  metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _44 => _44.readMetadata, 'call', _45 => _45()]), () => ( metadata));
2851
- if (maintenancePolicy !== "off" && await _chunkMLNH4DK2js.maybeAutoUpdateAndRelaunch.call(void 0,
2851
+ if (maintenancePolicy !== "off" && await _chunkNVH6ULDPjs.maybeAutoUpdateAndRelaunch.call(void 0,
2852
2852
  compatibility.response,
2853
2853
  baseUrl,
2854
2854
  maintenancePolicy
2855
2855
  )) {
2856
2856
  return void 0;
2857
2857
  }
2858
- _chunk5MJ4CDAQjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
2858
+ _chunk2GV54JFNjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
2859
2859
  quietAdvisory: wantsJson
2860
2860
  });
2861
2861
  if (maintenancePolicy !== "off") {
2862
- await _chunkMLNH4DK2js.runToolExecuteStage.call(void 0,
2862
+ await _chunkNVH6ULDPjs.runToolExecuteStage.call(void 0,
2863
2863
  "agent skills sync",
2864
- () => _chunk5MJ4CDAQjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
2864
+ () => _chunk2GV54JFNjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
2865
2865
  update: _optionalChain([compatibility, 'access', _46 => _46.response, 'optionalAccess', _47 => _47.skills]),
2866
2866
  mode: "detached"
2867
2867
  })
@@ -2870,7 +2870,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2870
2870
  const legacyMetadata = await readMetadata();
2871
2871
  if (tracing) {
2872
2872
  submissionStartedAt = performance.now();
2873
- _chunkLU4EA3ETjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2873
+ _chunk7RTDSHMBjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2874
2874
  }
2875
2875
  return client.executeTool(parsed.toolId, parsed.params, {
2876
2876
  ...executeOptions,
@@ -2893,8 +2893,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2893
2893
  metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
2894
2894
  const updateRequiredBeforeExecution = error instanceof _chunkSQWET4SLjs.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
2895
2895
  if (updateRequiredBeforeExecution && maintenancePolicy !== "off" && compatibility && !compatibility.error) {
2896
- const baseUrl = _chunkIJAEYEJMjs.resolveConfig.call(void 0, ).baseUrl;
2897
- if (await _chunkMLNH4DK2js.maybeAutoUpdateAndRelaunch.call(void 0,
2896
+ const baseUrl = _chunk7Z3ZXSOXjs.resolveConfig.call(void 0, ).baseUrl;
2897
+ if (await _chunkNVH6ULDPjs.maybeAutoUpdateAndRelaunch.call(void 0,
2898
2898
  compatibility.response,
2899
2899
  baseUrl,
2900
2900
  maintenancePolicy
@@ -2918,7 +2918,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2918
2918
  }
2919
2919
  }
2920
2920
  if (failure instanceof _chunkSQWET4SLjs.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
2921
- if (wantsJson) _chunk7WZXUAQWjs.printJsonError.call(void 0, failure);
2921
+ if (wantsJson) _chunkKAI64HV7js.printJsonError.call(void 0, failure);
2922
2922
  else console.error(failure.message);
2923
2923
  return 2;
2924
2924
  }
@@ -2945,9 +2945,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2945
2945
  successfulCompatibilityResponse = _nullishCoalesce(compatibilityResponse, () => ( void 0));
2946
2946
  const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _54 => _54.auto_update]);
2947
2947
  if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _55 => _55.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
2948
- await _chunkMLNH4DK2js.maybeAutoUpdateAndRelaunch.call(void 0,
2948
+ await _chunkNVH6ULDPjs.maybeAutoUpdateAndRelaunch.call(void 0,
2949
2949
  compatibilityResponse,
2950
- _chunkIJAEYEJMjs.resolveConfig.call(void 0, ).baseUrl,
2950
+ _chunk7Z3ZXSOXjs.resolveConfig.call(void 0, ).baseUrl,
2951
2951
  maintenancePolicy
2952
2952
  );
2953
2953
  }
@@ -2982,7 +2982,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2982
2982
  const { _metadata, ...execution } = rawResponse;
2983
2983
  rawResponse = execution;
2984
2984
  }
2985
- const { listConversion, summary, baseEnvelope } = await _chunkMLNH4DK2js.runToolExecuteStage.call(void 0,
2985
+ const { listConversion, summary, baseEnvelope } = await _chunkNVH6ULDPjs.runToolExecuteStage.call(void 0,
2986
2986
  "result formatting",
2987
2987
  async () => {
2988
2988
  const listConversion2 = _chunkHGFFYVXNjs.tryConvertToList.call(void 0, rawResponse, {
@@ -3017,9 +3017,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3017
3017
  }
3018
3018
  skillsSyncAttempted = true;
3019
3019
  try {
3020
- await _chunkMLNH4DK2js.runToolExecuteStage.call(void 0,
3020
+ await _chunkNVH6ULDPjs.runToolExecuteStage.call(void 0,
3021
3021
  "agent skills sync",
3022
- () => _chunk5MJ4CDAQjs.syncSdkSkillsIfNeeded.call(void 0, _chunkIJAEYEJMjs.resolveConfig.call(void 0, ).baseUrl, {
3022
+ () => _chunk2GV54JFNjs.syncSdkSkillsIfNeeded.call(void 0, _chunk7Z3ZXSOXjs.resolveConfig.call(void 0, ).baseUrl, {
3023
3023
  update: deliveredCompatibilityResponse.skills,
3024
3024
  mode: "detached"
3025
3025
  })
@@ -3030,15 +3030,15 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3030
3030
  );
3031
3031
  }
3032
3032
  };
3033
- const printDeliveredEnvelope = (envelope, options2 = {}) => _chunk7WZXUAQWjs.printCommandEnvelope.call(void 0, envelope, {
3033
+ const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkKAI64HV7js.printCommandEnvelope.call(void 0, envelope, {
3034
3034
  ...options2,
3035
3035
  json: _nullishCoalesce(options2.json, () => ( wantsJson))
3036
3036
  });
3037
3037
  const printDeliveredJsonEnvelope = async (envelope, options2 = {}) => {
3038
3038
  await syncSkillsForDeliveredOutput();
3039
- _chunk7WZXUAQWjs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
3039
+ _chunkKAI64HV7js.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
3040
3040
  };
3041
- const delivered = await _chunkMLNH4DK2js.runToolExecuteStage.call(void 0, "output delivery", async () => {
3041
+ const delivered = await _chunkNVH6ULDPjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
3042
3042
  if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
3043
3043
  await printDeliveredJsonEnvelope(baseEnvelope);
3044
3044
  return true;
@@ -3067,7 +3067,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3067
3067
  `${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
3068
3068
  );
3069
3069
  if (wantsJson) {
3070
- _chunk7WZXUAQWjs.printJsonError.call(void 0, error);
3070
+ _chunkKAI64HV7js.printJsonError.call(void 0, error);
3071
3071
  } else {
3072
3072
  console.error(error.message);
3073
3073
  }
@@ -3162,13 +3162,13 @@ inspect: ${inspection.inspect}
3162
3162
  return true;
3163
3163
  });
3164
3164
  if (delivered) {
3165
- await _chunkMLNH4DK2js.runToolExecuteStage.call(void 0,
3165
+ await _chunkNVH6ULDPjs.runToolExecuteStage.call(void 0,
3166
3166
  "acknowledge delivery",
3167
3167
  () => recovery.acknowledgeDelivery()
3168
3168
  );
3169
3169
  }
3170
3170
  if (delivered && deliveredCompatibilityResponse && deliveredCompatibilityResponse.update_required !== true) {
3171
- _chunk5MJ4CDAQjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
3171
+ _chunk2GV54JFNjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
3172
3172
  quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _58 => _58.auto_update, 'optionalAccess', _59 => _59.should_auto_update]) === true
3173
3173
  });
3174
3174
  }