deepline 0.3.533 → 0.3.535

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 (173) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +68 -7
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/call-requeue-state-machine.ts +420 -0
  4. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +677 -26
  5. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +26 -0
  6. package/dist/bundling-sources/shared_libs/play-runtime/durable-retry-policy.ts +624 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +26 -0
  8. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +32 -14
  9. package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +51 -1
  10. package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +9 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +245 -1
  12. package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +21 -0
  13. package/dist/bundling-sources/shared_libs/play-runtime/provider-no-progress.ts +6 -2
  14. package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +10 -0
  15. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +55 -0
  16. package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +8 -0
  17. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +21 -0
  18. package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +12 -1
  19. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +6 -0
  20. package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +2 -0
  21. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +101 -0
  22. package/dist/bundling-sources/shared_libs/plays/share/static-pipeline-summary.ts +63 -13
  23. package/dist/cli/auth-VDCU3T6A.js +43 -0
  24. package/dist/cli/{auth-2TZNPIJQ.mjs → auth-ZCTMB5RA.mjs} +5 -5
  25. package/dist/cli/{billing-HQYTRIV3.js → billing-GVFKZQH3.js} +82 -82
  26. package/dist/cli/{billing-LR4WJIHO.mjs → billing-OU2ZHL72.mjs} +7 -7
  27. package/dist/cli/{chunk-HOTJSXLY.js → chunk-243O3FH5.js} +5 -5
  28. package/dist/cli/{chunk-TU56J4OV.js → chunk-2D6SWQTK.js} +13 -13
  29. package/dist/cli/{chunk-4YP2YAIZ.js → chunk-4NLRWKZB.js} +26 -26
  30. package/dist/cli/{chunk-NW736SOD.mjs → chunk-4QELPWUW.mjs} +2 -2
  31. package/dist/cli/{chunk-LTF2J3JM.js → chunk-5EKNDNFQ.js} +2 -2
  32. package/dist/cli/{chunk-VPQDKL5O.js → chunk-6LHX33VN.js} +6 -6
  33. package/dist/cli/{chunk-LZMRCUVD.mjs → chunk-6TYRRNXY.mjs} +2 -2
  34. package/dist/cli/{chunk-YZK5RSUL.mjs → chunk-7CWSAEYS.mjs} +1 -1
  35. package/dist/cli/{chunk-A4JP6RPX.js → chunk-7PXP2FQK.js} +2 -2
  36. package/dist/cli/{chunk-2TMNRF5R.mjs → chunk-7R5DAANG.mjs} +1 -1
  37. package/dist/cli/{chunk-NKVW552R.mjs → chunk-AUEUAPVS.mjs} +1 -1
  38. package/dist/cli/{chunk-3KQBV2CG.mjs → chunk-BF65LB7X.mjs} +3 -3
  39. package/dist/cli/{chunk-33SNTG5F.js → chunk-CIDATNTY.js} +16 -16
  40. package/dist/cli/{chunk-O7RSUW75.js → chunk-D4MHCCIR.js} +4 -4
  41. package/dist/cli/{chunk-5XTXC45Z.js → chunk-DAPKLYST.js} +41 -41
  42. package/dist/cli/{chunk-USAQ42OG.mjs → chunk-DFJODFMC.mjs} +5 -5
  43. package/dist/cli/{chunk-KKUOIVQO.mjs → chunk-DWPY6ZID.mjs} +1 -1
  44. package/dist/cli/{chunk-MNAEALPG.js → chunk-DYIWDUY4.js} +182 -127
  45. package/dist/cli/{chunk-EVXRQXNV.mjs → chunk-E3CLOVG5.mjs} +47 -0
  46. package/dist/cli/{chunk-SVVUC3B4.js → chunk-FGN75ZN6.js} +138 -104
  47. package/dist/cli/{chunk-XZN3DBTP.mjs → chunk-FZKPPB5P.mjs} +40 -6
  48. package/dist/cli/{chunk-NFDYVMGC.mjs → chunk-G2DLG32W.mjs} +68 -13
  49. package/dist/cli/{chunk-LZ3PBEQH.mjs → chunk-H6SWS5CG.mjs} +2 -2
  50. package/dist/cli/{chunk-EYWES7F5.js → chunk-HWPOXCCK.js} +3 -3
  51. package/dist/cli/{chunk-425ERNBL.js → chunk-HYBZWSSH.js} +44 -44
  52. package/dist/cli/{chunk-CANHB6DH.mjs → chunk-J75DANZY.mjs} +2 -2
  53. package/dist/cli/{chunk-CWIGRIIX.mjs → chunk-JQQG4QL4.mjs} +3 -3
  54. package/dist/cli/{chunk-2UYERVXF.mjs → chunk-JWWYLGUT.mjs} +2 -2
  55. package/dist/cli/{chunk-735ZOYQN.js → chunk-K3IPGMGP.js} +11 -11
  56. package/dist/cli/{chunk-VKGNQC2S.mjs → chunk-K53NKWZO.mjs} +5 -5
  57. package/dist/cli/{chunk-3O3AL5RI.mjs → chunk-K76AEBFY.mjs} +4 -4
  58. package/dist/cli/{chunk-BWZHMWM5.js → chunk-KA6ZERJL.js} +6 -6
  59. package/dist/cli/{chunk-4CYNH47Y.js → chunk-KOZBZPRM.js} +53 -53
  60. package/dist/cli/{chunk-QZWURUBP.js → chunk-KWGXHPHL.js} +7 -7
  61. package/dist/cli/{chunk-XUX5KGCQ.mjs → chunk-LVISZFYO.mjs} +2 -2
  62. package/dist/cli/{chunk-B4ZNWXUW.js → chunk-OM732MGV.js} +9 -9
  63. package/dist/cli/{chunk-352XVCGE.js → chunk-PHLNYBAA.js} +5 -5
  64. package/dist/cli/{chunk-ZH5HCAN3.js → chunk-PI5R65OQ.js} +1 -1
  65. package/dist/cli/{chunk-JZ7LJS3P.mjs → chunk-QYBAHYP4.mjs} +6 -6
  66. package/dist/cli/{chunk-G3GJ3IGU.mjs → chunk-R2KKEHJN.mjs} +5 -5
  67. package/dist/cli/{chunk-R7YDZSN7.js → chunk-RFQWSH6I.js} +3 -3
  68. package/dist/cli/{chunk-MKUYZ7LR.mjs → chunk-RKY4LBX3.mjs} +1 -1
  69. package/dist/cli/{chunk-WF652G74.js → chunk-T7RBM2WX.js} +14 -14
  70. package/dist/cli/{chunk-G3RVDRYL.mjs → chunk-TCVCFZP6.mjs} +1 -1
  71. package/dist/cli/{chunk-E4VWBU2E.js → chunk-UUQ2OXMH.js} +16 -16
  72. package/dist/cli/{chunk-IETLUG4C.mjs → chunk-W5YJYU4G.mjs} +1 -1
  73. package/dist/cli/{chunk-HPOVAUQF.mjs → chunk-W6T23EUC.mjs} +1 -1
  74. package/dist/cli/{chunk-BSI7UHQZ.mjs → chunk-WAIBM6KX.mjs} +5 -5
  75. package/dist/cli/{chunk-4UADZTU5.js → chunk-WNNA4L6Z.js} +22 -22
  76. package/dist/cli/{chunk-V6LUMGVI.js → chunk-XSOTEVOB.js} +47 -0
  77. package/dist/cli/{chunk-PIACHLYY.mjs → chunk-YFZLZNTH.mjs} +2 -2
  78. package/dist/cli/{chunk-274Y66HP.js → chunk-ZUVE63Y7.js} +2 -2
  79. package/dist/cli/command-docs.js +2 -2
  80. package/dist/cli/command-docs.mjs +1 -1
  81. package/dist/cli/{csv-MBSCHS4H.js → csv-CD55KEIO.js} +13 -13
  82. package/dist/cli/{csv-CJKKHGNQ.mjs → csv-CLPVMIRF.mjs} +4 -4
  83. package/dist/cli/{db-EAFR6N45.mjs → db-AU4SMWUN.mjs} +6 -6
  84. package/dist/cli/{db-45HNPCY3.js → db-MQKLDAEO.js} +27 -27
  85. package/dist/cli/describe-5BFNHT5V.js +50 -0
  86. package/dist/cli/{describe-IXW3LDGC.mjs → describe-AWJUXE2U.mjs} +18 -18
  87. package/dist/cli/describe-core.d.mts +3 -3
  88. package/dist/cli/describe-core.d.ts +3 -3
  89. package/dist/cli/{executions-SZAES2S4.js → executions-77GOLWRM.js} +8 -8
  90. package/dist/cli/{executions-ZATZV7O6.mjs → executions-TFIJPUX7.mjs} +6 -6
  91. package/dist/cli/{feedback-NY63KEK2.mjs → feedback-2WRSZ5WL.mjs} +6 -6
  92. package/dist/cli/{feedback-KXLF4GR4.js → feedback-OV5YAL3A.js} +14 -14
  93. package/dist/cli/git-HGMX52XU.js +25 -0
  94. package/dist/cli/{git-BSSSTR6N.mjs → git-VNS4ATLZ.mjs} +5 -5
  95. package/dist/cli/index.js +145 -145
  96. package/dist/cli/index.mjs +44 -44
  97. package/dist/cli/{legacy-noops-CYF6DJBF.mjs → legacy-noops-C732QDCY.mjs} +6 -6
  98. package/dist/cli/{legacy-noops-XQANGML3.js → legacy-noops-HDOB5C6F.js} +9 -9
  99. package/dist/cli/{monitors-ABJVLWIP.mjs → monitors-2LYEFXOU.mjs} +7 -7
  100. package/dist/cli/{monitors-F3PTNP45.js → monitors-5IUMHH3E.js} +100 -100
  101. package/dist/cli/{org-WQAPZI5Q.js → org-ADW2EVAC.js} +86 -86
  102. package/dist/cli/{org-BHF6Y5R7.mjs → org-G4YGZPHS.mjs} +6 -6
  103. package/dist/cli/{pages-W4HWVJUG.mjs → pages-KXKWSCEV.mjs} +6 -6
  104. package/dist/cli/{pages-U3EJ2NPL.js → pages-VTJGAI2D.js} +18 -18
  105. package/dist/cli/{play-3T4X3ZKH.mjs → play-7GQ56C2D.mjs} +69 -22
  106. package/dist/cli/{play-2UHKONON.js → play-EHSOSSHT.js} +367 -320
  107. package/dist/cli/{providers-LUK5LIUA.js → providers-PWCF6OOO.js} +9 -9
  108. package/dist/cli/{providers-2G2VTNDG.mjs → providers-WL3YTCSV.mjs} +6 -6
  109. package/dist/cli/{quickstart-XP4PJZ7N.mjs → quickstart-323XOPGI.mjs} +4 -4
  110. package/dist/cli/{quickstart-76P6PGID.js → quickstart-ZKI5MURA.js} +6 -6
  111. package/dist/cli/{run-S2KHGBCM.js → run-XZPWA6JS.js} +41 -41
  112. package/dist/cli/{run-ACIHA53A.mjs → run-ZCNZU3K2.mjs} +23 -23
  113. package/dist/cli/{search-VFIJCUZL.mjs → search-CVLVSFMJ.mjs} +8 -8
  114. package/dist/cli/search-J6EY7DQN.js +33 -0
  115. package/dist/cli/{search-output-2KFLZS5F.mjs → search-output-6PY6RN2R.mjs} +4 -4
  116. package/dist/cli/{search-output-GV7NNB4X.js → search-output-7HRSSRBS.js} +6 -6
  117. package/dist/cli/{secrets-MAQLBVC4.mjs → secrets-6S2ZWDIM.mjs} +6 -6
  118. package/dist/cli/{secrets-KJSFEW2F.js → secrets-IYD5VKY4.js} +15 -15
  119. package/dist/cli/sessions-7HPIVSQ4.js +22 -0
  120. package/dist/cli/{sessions-G5MWNJ75.mjs → sessions-GVEX5TUJ.mjs} +6 -6
  121. package/dist/cli/{settings-MR6UFOK5.mjs → settings-BN5MJZ3C.mjs} +13 -13
  122. package/dist/cli/{settings-VXGRPFXP.js → settings-CANK4HJQ.js} +86 -86
  123. package/dist/cli/{setup-ZOBXMONM.mjs → setup-JNMSCCU4.mjs} +10 -10
  124. package/dist/cli/{setup-C74BRK7N.js → setup-YSGKGLSJ.js} +50 -50
  125. package/dist/cli/{skills-4CG3MHOY.mjs → skills-QCQN2UM2.mjs} +8 -8
  126. package/dist/cli/skills-WDGSSKJZ.js +37 -0
  127. package/dist/cli/{tools-YXCXZ4ZD.mjs → tools-CDPOID7V.mjs} +17 -17
  128. package/dist/cli/tools-URNVXSTZ.js +57 -0
  129. package/dist/cli/{update-Z3C5W3I4.mjs → update-D3ZERUQ3.mjs} +10 -10
  130. package/dist/cli/update-Q6JW32IA.js +35 -0
  131. package/dist/cli/{views-XGP2GZ52.js → views-4NV2KQKA.js} +18 -18
  132. package/dist/cli/{views-45B2FZQT.mjs → views-RDZRWQBQ.mjs} +6 -6
  133. package/dist/cli/{workflow-KQRWSNBH.mjs → workflow-2CG3TVCG.mjs} +7 -7
  134. package/dist/cli/{workflow-DWO35XHZ.js → workflow-RABJCAZC.js} +17 -17
  135. package/dist/{client-Bd2meveV.d.mts → client-DhSvMO3A.d.mts} +1 -1
  136. package/dist/{client-core-CGj8V9mw.d.mts → client-core-CVG1Et-4.d.mts} +41 -2
  137. package/dist/{client-core-CsRRWCFy.d.ts → client-core-CdWH6Sii.d.ts} +41 -2
  138. package/dist/{client-CBCVhL8U.d.ts → client-oGNJMQFd.d.ts} +1 -1
  139. package/dist/{compiler-manifest-DsxsQP-T.d.ts → compiler-manifest-D2ZlBGxj.d.mts} +44 -0
  140. package/dist/{compiler-manifest-DsxsQP-T.d.mts → compiler-manifest-D2ZlBGxj.d.ts} +44 -0
  141. package/dist/{errors-qdJUVQ3g.d.mts → errors-B-gOQdj-.d.mts} +1 -1
  142. package/dist/{errors-Bk5h1D-C.d.ts → errors-CB0KAmmV.d.ts} +1 -1
  143. package/dist/{index-PaupwX1B.d.mts → index-BbJADro4.d.mts} +1 -1
  144. package/dist/{index-bL66eHYz.d.ts → index-c3nvUGCS.d.ts} +1 -1
  145. package/dist/index.d.mts +7 -7
  146. package/dist/index.d.ts +7 -7
  147. package/dist/index.js +9 -9
  148. package/dist/index.mjs +6 -6
  149. package/dist/install-integrity.json +118 -116
  150. package/dist/plays/bundle-play-file.d.mts +3 -3
  151. package/dist/plays/bundle-play-file.d.ts +3 -3
  152. package/dist/plays/bundle-play-file.mjs +52 -0
  153. package/dist/plays/play-description.d.mts +2 -2
  154. package/dist/plays/play-description.d.ts +2 -2
  155. package/dist/plays/run-request.d.mts +2 -2
  156. package/dist/plays/run-request.d.ts +2 -2
  157. package/dist/release.d.mts +1 -1
  158. package/dist/release.d.ts +1 -1
  159. package/dist/release.js +2 -2
  160. package/dist/release.mjs +1 -1
  161. package/dist/server.d.mts +4 -4
  162. package/dist/server.d.ts +4 -4
  163. package/dist/server.js +5 -5
  164. package/dist/server.mjs +3 -3
  165. package/package.json +1 -1
  166. package/dist/cli/auth-KE6RFHUE.js +0 -43
  167. package/dist/cli/describe-PYLZAVRI.js +0 -50
  168. package/dist/cli/git-T5JTVBYZ.js +0 -25
  169. package/dist/cli/search-5MD65V43.js +0 -33
  170. package/dist/cli/sessions-FDMO7PAA.js +0 -22
  171. package/dist/cli/skills-KRUL7QCT.js +0 -37
  172. package/dist/cli/tools-CGHOSCPS.js +0 -57
  173. package/dist/cli/update-S2TILEHZ.js +0 -35
@@ -2,11 +2,11 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkVPQDKL5Ojs = require('./chunk-VPQDKL5O.js');
5
+ var _chunk6LHX33VNjs = require('./chunk-6LHX33VN.js');
6
6
 
7
7
 
8
8
 
9
- var _chunk735ZOYQNjs = require('./chunk-735ZOYQN.js');
9
+ var _chunkK3IPGMGPjs = require('./chunk-K3IPGMGP.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 _chunkHOTJSXLYjs = require('./chunk-HOTJSXLY.js');
49
+ var _chunk243O3FH5js = require('./chunk-243O3FH5.js');
50
50
 
51
51
 
52
- var _chunkSVVUC3B4js = require('./chunk-SVVUC3B4.js');
52
+ var _chunkFGN75ZN6js = require('./chunk-FGN75ZN6.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 _chunk4UADZTU5js = require('./chunk-4UADZTU5.js');
62
+ var _chunkWNNA4L6Zjs = require('./chunk-WNNA4L6Z.js');
63
63
 
64
64
 
65
65
 
66
66
 
67
- var _chunkA4JP6RPXjs = require('./chunk-A4JP6RPX.js');
67
+ var _chunk7PXP2FQKjs = require('./chunk-7PXP2FQK.js');
68
68
 
69
69
 
70
70
 
71
71
 
72
72
 
73
- var _chunk425ERNBLjs = require('./chunk-425ERNBL.js');
73
+ var _chunkHYBZWSSHjs = require('./chunk-HYBZWSSH.js');
74
74
 
75
75
 
76
76
 
@@ -78,12 +78,12 @@ var _chunk425ERNBLjs = require('./chunk-425ERNBL.js');
78
78
 
79
79
 
80
80
 
81
- var _chunkQZWURUBPjs = require('./chunk-QZWURUBP.js');
81
+ var _chunkKWGXHPHLjs = require('./chunk-KWGXHPHL.js');
82
82
 
83
83
 
84
84
 
85
85
 
86
- var _chunkEYWES7F5js = require('./chunk-EYWES7F5.js');
86
+ var _chunkHWPOXCCKjs = require('./chunk-HWPOXCCK.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 = _chunkEYWES7F5js.resolveConfig.call(void 0, );
192
+ const config = _chunkHWPOXCCKjs.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
- _chunkEYWES7F5js.sdkCliStateDirPath.call(void 0, config.baseUrl),
195
+ _chunkHWPOXCCKjs.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, _chunkHOTJSXLYjs.DeeplineClient)();
509
+ const client = new (0, _chunk243O3FH5js.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
- _chunkQZWURUBPjs.printCommandEnvelope.call(void 0,
515
+ _chunkKWGXHPHLjs.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
- _chunkQZWURUBPjs.printCommandEnvelope.call(void 0,
525
+ _chunkKWGXHPHLjs.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
- _chunkQZWURUBPjs.printJson.call(void 0, {
544
+ _chunkKWGXHPHLjs.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(_chunkQZWURUBPjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
558
+ console.error(_chunkKWGXHPHLjs.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, _chunkHOTJSXLYjs.DeeplineClient)();
564
+ const client = new (0, _chunk243O3FH5js.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
- _chunkQZWURUBPjs.printCommandEnvelope.call(void 0,
600
+ _chunkKWGXHPHLjs.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, _chunkHOTJSXLYjs.DeeplineClient)();
613
+ const client = new (0, _chunk243O3FH5js.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
- _chunkQZWURUBPjs.printCommandEnvelope.call(void 0,
642
+ _chunkKWGXHPHLjs.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 || _chunkQZWURUBPjs.shouldEmitJson.call(void 0, );
661
+ const emitJson = options.json === true || _chunkKWGXHPHLjs.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
- _chunkQZWURUBPjs.printJson.call(void 0, {
667
+ _chunkKWGXHPHLjs.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, _chunkHOTJSXLYjs.DeeplineClient)();
694
+ const client = new (0, _chunk243O3FH5js.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
- _chunkQZWURUBPjs.printCommandEnvelope.call(void 0,
718
+ _chunkKWGXHPHLjs.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 || _chunkQZWURUBPjs.shouldEmitJson.call(void 0, ) }
736
+ { json: options.json || _chunkKWGXHPHLjs.shouldEmitJson.call(void 0, ) }
737
737
  );
738
738
  return 0;
739
739
  }
@@ -832,15 +832,63 @@ 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, _chunkHOTJSXLYjs.DeeplineClient)().getIntegrationBalance(
835
+ const balance = await new (0, _chunk243O3FH5js.DeeplineClient)().getIntegrationBalance(
836
836
  provider
837
837
  );
838
- if (_chunkQZWURUBPjs.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(balance));
838
+ if (_chunkKWGXHPHLjs.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})`
842
842
  );
843
843
  });
844
+ tools.command("workspace-connections").description(
845
+ "List shared OAuth connections in a workspace enrolled in the pilot."
846
+ ).option("--json", "Print connection summaries as JSON").action(async (options) => {
847
+ const { connections } = await new (0, _chunk243O3FH5js.DeeplineClient)().listWorkspaceIntegrationConnections();
848
+ if (_chunkKWGXHPHLjs.shouldEmitJson.call(void 0, options.json))
849
+ console.log(JSON.stringify(connections));
850
+ else if (connections.length === 0)
851
+ console.log("No workspace connections.");
852
+ else
853
+ for (const row of connections)
854
+ console.log(`${row.provider} ${row.status} ${row.label}`);
855
+ });
856
+ tools.command("workspace-connection <provider> <action>").description(
857
+ "Open shared OAuth setup or disconnect the current connection."
858
+ ).option("--json", "Print the result as JSON").action(
859
+ async (provider, action, options) => {
860
+ if (provider !== "hubspot" && provider !== "google_calendar_availability")
861
+ throw new Error("Choose hubspot or google_calendar_availability.");
862
+ if (action !== "connect" && action !== "reconnect" && action !== "replace" && action !== "disconnect")
863
+ throw new Error("Choose connect, reconnect, replace, or disconnect.");
864
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
865
+ const { connections } = await client.listWorkspaceIntegrationConnections();
866
+ const row = connections.find(
867
+ (connection) => connection.provider === provider
868
+ );
869
+ const result = await client.manageWorkspaceIntegrationConnection({
870
+ provider,
871
+ action,
872
+ connectionId: _optionalChain([row, 'optionalAccess', _14 => _14.id]),
873
+ authorizationVersion: _optionalChain([row, 'optionalAccess', _15 => _15.authorizationVersion])
874
+ });
875
+ if (_chunkKWGXHPHLjs.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(result));
876
+ else console.log(_nullishCoalesce(result.url, () => ( "Workspace connection disconnected.")));
877
+ }
878
+ );
879
+ tools.command("availability-calendars").description("Calendar discovery compatibility command for the pilot.").option("--cursor <cursor>", "Legacy calendar page cursor").option("--json", "Print the response as JSON").action(async (options) => {
880
+ const page = await new (0, _chunk243O3FH5js.DeeplineClient)().listAvailabilityCalendars(
881
+ options.cursor
882
+ );
883
+ if (_chunkKWGXHPHLjs.shouldEmitJson.call(void 0, options.json)) {
884
+ console.log(JSON.stringify(page));
885
+ return;
886
+ }
887
+ for (const calendar of page.calendars)
888
+ console.log(`${JSON.stringify(calendar.name)} ${calendar.id}`);
889
+ if (page.cursor)
890
+ console.log(`Next page cursor: ${JSON.stringify(page.cursor)}`);
891
+ });
844
892
  tools.command("connect <provider>").description(
845
893
  "Get a dashboard connection link or connect a provider with credentials or OAuth."
846
894
  ).addOption(
@@ -849,21 +897,27 @@ Output:
849
897
  "oauth",
850
898
  "preset",
851
899
  "scopes",
852
- "optionalScopes"
900
+ "optionalScopes",
901
+ "expectedConnectionId"
853
902
  ])
854
903
  ).option(
855
904
  "--credentials-file <path>",
856
905
  "JSON object of credential field names and string values; keep this file private"
857
- ).option("--oauth", "Return an OAuth authorization URL").option("--preset <id>", "Server-defined access preset (HubSpot only)").option("--scopes <scopes>", "Comma-separated OAuth scopes").option(
906
+ ).option("--oauth", "Return an OAuth authorization URL").addOption(new (0, _commander.Option)("--expected-connection-id <id>").hideHelp()).option("--preset <id>", "Server-defined access preset (HubSpot only)").option("--scopes <scopes>", "Comma-separated OAuth scopes").option(
858
907
  "--optional-scopes <scopes>",
859
908
  "Comma-separated optional OAuth scopes"
860
909
  ).option("--json", "Print JSON without credential values").action(
861
910
  async (provider, options) => {
911
+ if (options.expectedConnectionId !== void 0 && (!options.expectedConnectionId.trim() || provider !== "google_calendar_availability" || !options.credentialsFile || options.oauth)) {
912
+ throw new Error(
913
+ "--expected-connection-id requires Calendar availability and a credentials file."
914
+ );
915
+ }
862
916
  if (options.link) {
863
- const link = await new (0, _chunkHOTJSXLYjs.DeeplineClient)().getIntegrationConnectLink(
917
+ const link = await new (0, _chunk243O3FH5js.DeeplineClient)().getIntegrationConnectLink(
864
918
  provider
865
919
  );
866
- if (_chunkQZWURUBPjs.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(link));
920
+ if (_chunkKWGXHPHLjs.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(link));
867
921
  else console.log(link.connect_url);
868
922
  return;
869
923
  }
@@ -873,7 +927,7 @@ Output:
873
927
  if (options.preset !== void 0 && (options.scopes !== void 0 || options.optionalScopes !== void 0))
874
928
  throw new Error("Use --preset or individual scopes, not both.");
875
929
  const splitScopes = (value) => value.split(",").map((scope) => scope.trim()).filter(Boolean);
876
- const result2 = await new (0, _chunkHOTJSXLYjs.DeeplineClient)().startIntegrationOAuth(
930
+ const result2 = await new (0, _chunk243O3FH5js.DeeplineClient)().startIntegrationOAuth(
877
931
  provider,
878
932
  {
879
933
  ...options.preset !== void 0 ? { preset: options.preset } : {},
@@ -885,7 +939,7 @@ Output:
885
939
  throw new Error(
886
940
  "The API did not return an OAuth authorization URL."
887
941
  );
888
- if (_chunkQZWURUBPjs.shouldEmitJson.call(void 0, options.json))
942
+ if (_chunkKWGXHPHLjs.shouldEmitJson.call(void 0, options.json))
889
943
  console.log(
890
944
  JSON.stringify({ provider, redirect_url: result2.redirect_url })
891
945
  );
@@ -911,9 +965,10 @@ Output:
911
965
  "--credentials-file must contain a nonempty JSON object of string credential values."
912
966
  );
913
967
  }
914
- const result = await new (0, _chunkHOTJSXLYjs.DeeplineClient)().setIntegrationCredentials(
968
+ const result = await new (0, _chunk243O3FH5js.DeeplineClient)().setIntegrationCredentials(
915
969
  provider,
916
- credentials
970
+ credentials,
971
+ { expectedConnectionId: options.expectedConnectionId }
917
972
  );
918
973
  if (!result.ok || result.credential_saved !== true) {
919
974
  throw new Error(
@@ -921,7 +976,7 @@ Output:
921
976
  );
922
977
  }
923
978
  const confirmation = { provider, credential_saved: true };
924
- if (_chunkQZWURUBPjs.shouldEmitJson.call(void 0, options.json))
979
+ if (_chunkKWGXHPHLjs.shouldEmitJson.call(void 0, options.json))
925
980
  console.log(JSON.stringify(confirmation));
926
981
  else
927
982
  console.log(
@@ -961,7 +1016,7 @@ Examples:
961
1016
  json: Boolean(options.json)
962
1017
  });
963
1018
  });
964
- _chunk735ZOYQNjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
1019
+ _chunkK3IPGMGPjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
965
1020
  tools.command("grep <query>").description(
966
1021
  "Regex grep over tool ids, descriptions, categories, and input fields."
967
1022
  ).addHelpText(
@@ -996,7 +1051,7 @@ Examples:
996
1051
  });
997
1052
  const addToolMetadataCommand = (command) => {
998
1053
  let compatibilityMetadata;
999
- _chunk4UADZTU5js.registerCompatibilityCatalog.call(void 0, command, () => ({
1054
+ _chunkWNNA4L6Zjs.registerCompatibilityCatalog.call(void 0, command, () => ({
1000
1055
  toolId: command.args[0],
1001
1056
  acceptMetadata: (metadata) => {
1002
1057
  compatibilityMetadata = metadata;
@@ -1066,7 +1121,7 @@ Examples:
1066
1121
  process.exitCode = await narrowView();
1067
1122
  return;
1068
1123
  }
1069
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-PYLZAVRI.js")));
1124
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-5BFNHT5V.js")));
1070
1125
  process.exitCode = await describeAnything(
1071
1126
  toolId,
1072
1127
  {
@@ -1081,7 +1136,7 @@ Examples:
1081
1136
  });
1082
1137
  };
1083
1138
  addToolMetadataCommand(
1084
- _chunkVPQDKL5Ojs.addDescribeOptions.call(void 0,
1139
+ _chunk6LHX33VNjs.addDescribeOptions.call(void 0,
1085
1140
  tools.command("describe <toolId>", { hidden: true }).alias("get"),
1086
1141
  { json: false }
1087
1142
  )
@@ -1150,7 +1205,7 @@ Examples:
1150
1205
  options,
1151
1206
  void 0,
1152
1207
  true,
1153
- _chunkA4JP6RPXjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
1208
+ _chunk7PXP2FQKjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
1154
1209
  );
1155
1210
  }
1156
1211
  );
@@ -1158,13 +1213,13 @@ Examples:
1158
1213
  function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1159
1214
  let metadata;
1160
1215
  const startedAt = performance.now();
1161
- const baseUrl = _chunkEYWES7F5js.resolveConfig.call(void 0, ).baseUrl;
1162
- _chunkA4JP6RPXjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
1163
- const result = _chunk4UADZTU5js.runToolExecuteStage.call(void 0,
1216
+ const baseUrl = _chunkHWPOXCCKjs.resolveConfig.call(void 0, ).baseUrl;
1217
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
1218
+ const result = _chunkWNNA4L6Zjs.runToolExecuteStage.call(void 0,
1164
1219
  "SDK compatibility",
1165
- () => _chunk425ERNBLjs.checkSdkCompatibility.call(void 0, baseUrl, {
1220
+ () => _chunkHYBZWSSHjs.checkSdkCompatibility.call(void 0, baseUrl, {
1166
1221
  command: "tools execute",
1167
- skillsVersion: _chunkEYWES7F5js.readSdkSkillsLocalVersion.call(void 0, baseUrl),
1222
+ skillsVersion: _chunkHWPOXCCKjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
1168
1223
  persistCache: false,
1169
1224
  timeoutMs: TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS,
1170
1225
  catalog: {
@@ -1178,7 +1233,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1178
1233
  })
1179
1234
  ).then(
1180
1235
  (compatibility) => {
1181
- _chunkA4JP6RPXjs.recordCliTrace.call(void 0, {
1236
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
1182
1237
  phase: "cli.tool_execute_compatibility_ready",
1183
1238
  ms: performance.now() - startedAt,
1184
1239
  ok: compatibility.error === null,
@@ -1187,7 +1242,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1187
1242
  return compatibility;
1188
1243
  },
1189
1244
  (error) => {
1190
- _chunkA4JP6RPXjs.recordCliTrace.call(void 0, {
1245
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
1191
1246
  phase: "cli.tool_execute_compatibility_ready",
1192
1247
  ms: performance.now() - startedAt,
1193
1248
  ok: false
@@ -1202,7 +1257,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1202
1257
  console.error("Usage: deepline tools describe <toolId> [--json]");
1203
1258
  return 1;
1204
1259
  }
1205
- const client = new (0, _chunkHOTJSXLYjs.DeeplineClient)();
1260
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
1206
1261
  let tool;
1207
1262
  try {
1208
1263
  tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
@@ -1256,7 +1311,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1256
1311
  const lines = toolPricingOnlyLines(tool, toolId);
1257
1312
  if (inferenceQuote)
1258
1313
  lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
1259
- _chunkQZWURUBPjs.printCommandEnvelope.call(void 0,
1314
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
1260
1315
  {
1261
1316
  toolId: String(tool.toolId || toolId),
1262
1317
  cost: _chunkZS2WHWWLjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
@@ -1279,7 +1334,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1279
1334
  void 0,
1280
1335
  seedToolListScript
1281
1336
  );
1282
- _chunkQZWURUBPjs.printCompactJson.call(void 0, {
1337
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, {
1283
1338
  toolId: contract.toolId,
1284
1339
  ...options.schemaOnly ? {
1285
1340
  inputSchema: contract.inputSchema,
@@ -1302,7 +1357,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1302
1357
  return 0;
1303
1358
  }
1304
1359
  if (options.contractJson) {
1305
- _chunkQZWURUBPjs.printCompactJson.call(void 0, {
1360
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, {
1306
1361
  ..._chunkZS2WHWWLjs.toolContractJsonForDescribe.call(void 0,
1307
1362
  tool,
1308
1363
  toolId,
@@ -1316,7 +1371,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1316
1371
  }
1317
1372
  const emitJson = options.json === true;
1318
1373
  if (emitJson) {
1319
- _chunkQZWURUBPjs.printCompactJson.call(void 0, {
1374
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, {
1320
1375
  ..._chunkZS2WHWWLjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
1321
1376
  ...modelDescription ? { modelOptions: modelDescription } : {},
1322
1377
  ...inferenceQuote ? { inferenceQuote } : {}
@@ -1883,7 +1938,7 @@ function declaredToolJsonSchema(inputSchema) {
1883
1938
  function arrayItemBoundsSuffix(field) {
1884
1939
  const itemSchema = _chunkZS2WHWWLjs.isRecord.call(void 0, field.items) ? field.items : null;
1885
1940
  const itemType = itemSchema ? typeof itemSchema.type === "string" ? itemSchema.type : _chunkZS2WHWWLjs.isRecord.call(void 0, itemSchema.properties) ? "object" : "unknown" : null;
1886
- const itemEnum = Array.isArray(_optionalChain([itemSchema, 'optionalAccess', _14 => _14.enum])) ? ` enum=${itemSchema.enum.map(String).join("|")}` : "";
1941
+ const itemEnum = Array.isArray(_optionalChain([itemSchema, 'optionalAccess', _16 => _16.enum])) ? ` enum=${itemSchema.enum.map(String).join("|")}` : "";
1887
1942
  const itemTypeSuffix = itemType && itemType !== "unknown" ? ` items=${itemType}${itemEnum}` : "";
1888
1943
  const minItems = typeof field.minItems === "number" && Number.isFinite(field.minItems) ? field.minItems : null;
1889
1944
  const maxItems = typeof field.maxItems === "number" && Number.isFinite(field.maxItems) ? field.maxItems : null;
@@ -2013,7 +2068,7 @@ function extractToolExecutionWarningMessages(rawResponse) {
2013
2068
  ];
2014
2069
  const messages = [];
2015
2070
  for (const candidate of candidates) {
2016
- const warnings = _optionalChain([candidate, 'optionalAccess', _15 => _15.warnings]);
2071
+ const warnings = _optionalChain([candidate, 'optionalAccess', _17 => _17.warnings]);
2017
2072
  if (!Array.isArray(warnings)) continue;
2018
2073
  for (const warning of warnings) {
2019
2074
  if (typeof warning === "string" && warning.trim()) {
@@ -2049,10 +2104,10 @@ function apifySyncRecoveryNext(rawResponse) {
2049
2104
  };
2050
2105
  }
2051
2106
  function listExtractorPathsFromUsageGuidance(tool) {
2052
- const toolExecutionResult = _optionalChain([tool, 'access', _16 => _16.usageGuidance, 'optionalAccess', _17 => _17.toolExecutionResult]);
2053
- const extractedLists = Array.isArray(_optionalChain([toolExecutionResult, 'optionalAccess', _18 => _18.extractedLists])) ? toolExecutionResult.extractedLists : _chunkZS2WHWWLjs.isRecord.call(void 0, _optionalChain([toolExecutionResult, 'optionalAccess', _19 => _19.extractedLists])) ? Object.values(toolExecutionResult.extractedLists) : [];
2107
+ const toolExecutionResult = _optionalChain([tool, 'access', _18 => _18.usageGuidance, 'optionalAccess', _19 => _19.toolExecutionResult]);
2108
+ const extractedLists = Array.isArray(_optionalChain([toolExecutionResult, 'optionalAccess', _20 => _20.extractedLists])) ? toolExecutionResult.extractedLists : _chunkZS2WHWWLjs.isRecord.call(void 0, _optionalChain([toolExecutionResult, 'optionalAccess', _21 => _21.extractedLists])) ? Object.values(toolExecutionResult.extractedLists) : [];
2054
2109
  return extractedLists.flatMap((entry) => {
2055
- const paths = _nullishCoalesce(_optionalChain([entry, 'access', _20 => _20.details, 'optionalAccess', _21 => _21.candidatePaths]), () => ( _optionalChain([entry, 'access', _22 => _22.details, 'optionalAccess', _23 => _23.rawToolOutputPaths])));
2110
+ const paths = _nullishCoalesce(_optionalChain([entry, 'access', _22 => _22.details, 'optionalAccess', _23 => _23.candidatePaths]), () => ( _optionalChain([entry, 'access', _24 => _24.details, 'optionalAccess', _25 => _25.rawToolOutputPaths])));
2056
2111
  if (!Array.isArray(paths)) return [];
2057
2112
  return paths.map(
2058
2113
  (path) => path.trim().replace(/^toolExecutionResult\.toolResponse\.raw\.?/, "").replace(/^toolExecutionResult\.toolOutput\.raw\.?/, "").replace(/^\./, "")
@@ -2179,7 +2234,7 @@ function parseExecuteOptions(toolId, options, output) {
2179
2234
  outputFormat = normalizeOutputFormat(options.outputFormat);
2180
2235
  }
2181
2236
  if (options.idempotencyKey !== void 0) {
2182
- _chunkSVVUC3B4js.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2237
+ _chunkFGN75ZN6js.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2183
2238
  }
2184
2239
  if (options.recoveryTimeoutMs !== void 0) {
2185
2240
  const parsed = Number(options.recoveryTimeoutMs);
@@ -2479,7 +2534,7 @@ function buildToolExecuteRowArtifactEnvelope(input) {
2479
2534
  };
2480
2535
  }
2481
2536
  function printToolExecutionWarnings(toolId, params, metadata) {
2482
- if (_optionalChain([metadata, 'access', _24 => _24.deprecation, 'optionalAccess', _25 => _25.message])) {
2537
+ if (_optionalChain([metadata, 'access', _26 => _26.deprecation, 'optionalAccess', _27 => _27.message])) {
2483
2538
  console.error(
2484
2539
  `Warning: ${toolId} is deprecated. ${metadata.deprecation.message}`
2485
2540
  );
@@ -2523,10 +2578,10 @@ function valueAt(value, path) {
2523
2578
  return at;
2524
2579
  }
2525
2580
  function declaredOutputs(metadata, envelope, data) {
2526
- const result = _optionalChain([metadata, 'access', _26 => _26.usageGuidance, 'optionalAccess', _27 => _27.toolExecutionResult]);
2581
+ const result = _optionalChain([metadata, 'access', _28 => _28.usageGuidance, 'optionalAccess', _29 => _29.toolExecutionResult]);
2527
2582
  const getters = ["extractedValues", "extractedLists"].flatMap(
2528
2583
  (kind) => {
2529
- const group = _optionalChain([result, 'optionalAccess', _28 => _28[kind]]);
2584
+ const group = _optionalChain([result, 'optionalAccess', _30 => _30[kind]]);
2530
2585
  return Array.isArray(group) ? group : _chunkZS2WHWWLjs.isRecord.call(void 0, group) ? Object.entries(group).map(([name, getter]) => ({
2531
2586
  name,
2532
2587
  ...getter
@@ -2534,7 +2589,7 @@ function declaredOutputs(metadata, envelope, data) {
2534
2589
  }
2535
2590
  );
2536
2591
  return getters.flatMap((getter) => {
2537
- const paths = _nullishCoalesce(_nullishCoalesce(_optionalChain([getter, 'access', _29 => _29.details, 'optionalAccess', _30 => _30.rawToolOutputPaths]), () => ( _optionalChain([getter, 'access', _31 => _31.details, 'optionalAccess', _32 => _32.candidatePaths]))), () => ( []));
2592
+ const paths = _nullishCoalesce(_nullishCoalesce(_optionalChain([getter, 'access', _31 => _31.details, 'optionalAccess', _32 => _32.rawToolOutputPaths]), () => ( _optionalChain([getter, 'access', _33 => _33.details, 'optionalAccess', _34 => _34.candidatePaths]))), () => ( []));
2538
2593
  for (const path of paths) {
2539
2594
  const value = valueAt(envelope, path);
2540
2595
  if (value === void 0) continue;
@@ -2558,7 +2613,7 @@ function writeToolReceipt(input) {
2558
2613
  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
2614
  const status = typeof envelope.status === "string" ? envelope.status : "completed";
2560
2615
  const charged = _chunkZS2WHWWLjs.recordField.call(void 0, envelope, "billing").credits_charged;
2561
- _chunkVPQDKL5Ojs.writeExecutionOutput.call(void 0,
2616
+ _chunk6LHX33VNjs.writeExecutionOutput.call(void 0,
2562
2617
  {
2563
2618
  id: _nullishCoalesce(input.key, () => ( jobId)),
2564
2619
  status,
@@ -2589,14 +2644,14 @@ async function executeToolForReceipt(input) {
2589
2644
  let retryKey = null;
2590
2645
  let received = false;
2591
2646
  try {
2592
- const cliInvocationId = _nullishCoalesce(_chunk4UADZTU5js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunk4UADZTU5js.beginToolExecuteCommand.call(void 0, )));
2593
- const client = new (0, _chunkHOTJSXLYjs.DeeplineClient)();
2647
+ const cliInvocationId = _nullishCoalesce(_chunkWNNA4L6Zjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkWNNA4L6Zjs.beginToolExecuteCommand.call(void 0, )));
2648
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
2594
2649
  const metadata = assertExecutableToolMetadata(
2595
2650
  toolId,
2596
2651
  await _asyncNullishCoalesce(input.metadata, async () => ( await client.getTool(toolId, { cliInvocationId })))
2597
2652
  );
2598
2653
  printToolExecutionWarnings(toolId, params, metadata);
2599
- const responseIntent = _optionalChain([output, 'access', _33 => _33.csvOut, 'optionalAccess', _34 => _34.length]) ? "row_artifact" : "raw";
2654
+ const responseIntent = _optionalChain([output, 'access', _35 => _35.csvOut, 'optionalAccess', _36 => _36.length]) ? "row_artifact" : "raw";
2600
2655
  const recovery = ToolCallRecovery.open({
2601
2656
  toolId,
2602
2657
  params,
@@ -2609,11 +2664,11 @@ async function executeToolForReceipt(input) {
2609
2664
  const response = await client.executeTool(toolId, params, {
2610
2665
  responseIntent,
2611
2666
  ...input.timeoutMs !== void 0 ? { timeout: input.timeoutMs } : {},
2612
- ..._optionalChain([metadata, 'access', _35 => _35.executionMetadata, 'optionalAccess', _36 => _36.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {},
2667
+ ..._optionalChain([metadata, 'access', _37 => _37.executionMetadata, 'optionalAccess', _38 => _38.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {},
2613
2668
  ...key ? { idempotencyKey: key } : {},
2614
- searchRef: _chunk735ZOYQNjs.recentSearchRef.call(void 0, toolId),
2669
+ searchRef: _chunkK3IPGMGPjs.recentSearchRef.call(void 0, toolId),
2615
2670
  cliInvocationId,
2616
- onResponseReceived: _chunkVPQDKL5Ojs.recordApiResponse
2671
+ onResponseReceived: _chunk6LHX33VNjs.recordApiResponse
2617
2672
  }).catch((error) => {
2618
2673
  const guidance = toolGuidanceLines(metadata.guidance);
2619
2674
  if (guidance.length)
@@ -2635,8 +2690,8 @@ async function executeToolForReceipt(input) {
2635
2690
  } catch (error) {
2636
2691
  if (received) throw error;
2637
2692
  const outcomeKnown = answeredWithFailure(error);
2638
- if (outcomeKnown) _optionalChain([retryKey, 'optionalAccess', _37 => _37.discard, 'call', _38 => _38()]);
2639
- _chunkVPQDKL5Ojs.writeExecutionOutput.call(void 0,
2693
+ if (outcomeKnown) _optionalChain([retryKey, 'optionalAccess', _39 => _39.discard, 'call', _40 => _40()]);
2694
+ _chunk6LHX33VNjs.writeExecutionOutput.call(void 0,
2640
2695
  {
2641
2696
  id: outcomeKnown ? null : key,
2642
2697
  status: "failed",
@@ -2660,11 +2715,11 @@ function answeredWithFailure(error) {
2660
2715
  error.statusCode !== 408 && error.code !== "EXECUTION_OUTCOME_UNKNOWN";
2661
2716
  }
2662
2717
  async function getToolExecutionReceipt(key, output) {
2663
- const client = new (0, _chunkHOTJSXLYjs.DeeplineClient)();
2718
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
2664
2719
  const execution = await client.executions.getByKey(key);
2665
2720
  output.label = `${execution.toolId} (tool)`;
2666
2721
  if (execution.response === void 0) {
2667
- _chunkVPQDKL5Ojs.writeExecutionOutput.call(void 0,
2722
+ _chunk6LHX33VNjs.writeExecutionOutput.call(void 0,
2668
2723
  {
2669
2724
  id: key,
2670
2725
  status: execution.executionRecovery.state,
@@ -2693,19 +2748,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2693
2748
  parsed = parseExecuteOptions(toolId, options, output);
2694
2749
  } catch (error) {
2695
2750
  if (wantsJson) {
2696
- _chunkQZWURUBPjs.printJsonError.call(void 0, error);
2751
+ _chunkKWGXHPHLjs.printJsonError.call(void 0, error);
2697
2752
  } else {
2698
2753
  console.error(error instanceof Error ? error.message : String(error));
2699
2754
  }
2700
2755
  return error instanceof _chunkSQWET4SLjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
2701
2756
  }
2702
- const cliInvocationId = _nullishCoalesce(_chunk4UADZTU5js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunk4UADZTU5js.beginToolExecuteCommand.call(void 0, )));
2757
+ const cliInvocationId = _nullishCoalesce(_chunkWNNA4L6Zjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkWNNA4L6Zjs.beginToolExecuteCommand.call(void 0, )));
2703
2758
  const deferredCompatibility = deferCompatibility ? beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) : void 0;
2704
- const tracing = _chunkA4JP6RPXjs.isCliTraceEnabled.call(void 0, );
2759
+ const tracing = _chunk7PXP2FQKjs.isCliTraceEnabled.call(void 0, );
2705
2760
  const clientStartedAt = tracing ? performance.now() : void 0;
2706
- const client = new (0, _chunkHOTJSXLYjs.DeeplineClient)();
2761
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
2707
2762
  if (clientStartedAt !== void 0) {
2708
- _chunkA4JP6RPXjs.recordCliTrace.call(void 0, {
2763
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
2709
2764
  phase: "cli.tool_execute_client_setup",
2710
2765
  ms: performance.now() - clientStartedAt
2711
2766
  });
@@ -2714,13 +2769,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2714
2769
  const readMetadata = async () => {
2715
2770
  if (metadata) return assertExecutableToolMetadata(parsed.toolId, metadata);
2716
2771
  try {
2717
- metadata = await _chunk4UADZTU5js.runToolExecuteStage.call(void 0,
2772
+ metadata = await _chunkWNNA4L6Zjs.runToolExecuteStage.call(void 0,
2718
2773
  "tool metadata lookup",
2719
2774
  () => client.getTool(parsed.toolId, { cliInvocationId })
2720
2775
  );
2721
2776
  } catch (error) {
2722
2777
  if (isMissingToolMetadataError(error)) {
2723
- const play = await _chunk4UADZTU5js.runToolExecuteStage.call(void 0,
2778
+ const play = await _chunkWNNA4L6Zjs.runToolExecuteStage.call(void 0,
2724
2779
  "play alias lookup",
2725
2780
  () => findPlayForToolId(client, parsed.toolId, cliInvocationId)
2726
2781
  );
@@ -2749,19 +2804,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2749
2804
  assertExecutableToolMetadata(parsed.toolId, metadata);
2750
2805
  } catch (error) {
2751
2806
  if (error instanceof _chunkSQWET4SLjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2752
- if (wantsJson) _chunkQZWURUBPjs.printJsonError.call(void 0, error);
2807
+ if (wantsJson) _chunkKWGXHPHLjs.printJsonError.call(void 0, error);
2753
2808
  else console.error(error.message);
2754
2809
  return 2;
2755
2810
  }
2756
2811
  throw error;
2757
2812
  }
2758
2813
  }
2759
- if (!metadata && _optionalChain([preflightCompatibility, 'optionalAccess', _39 => _39.response, 'optionalAccess', _40 => _40.update_required]) !== true && !_optionalChain([preflightCompatibility, 'optionalAccess', _41 => _41.error])) {
2814
+ if (!metadata && _optionalChain([preflightCompatibility, 'optionalAccess', _41 => _41.response, 'optionalAccess', _42 => _42.update_required]) !== true && !_optionalChain([preflightCompatibility, 'optionalAccess', _43 => _43.error])) {
2760
2815
  try {
2761
2816
  metadata = await readMetadata();
2762
2817
  } catch (error) {
2763
2818
  if (error instanceof _chunkSQWET4SLjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2764
- if (wantsJson) _chunkQZWURUBPjs.printJsonError.call(void 0, error);
2819
+ if (wantsJson) _chunkKWGXHPHLjs.printJsonError.call(void 0, error);
2765
2820
  else console.error(error.message);
2766
2821
  return 2;
2767
2822
  }
@@ -2777,7 +2832,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2777
2832
  metadata = await readMetadata();
2778
2833
  } catch (error) {
2779
2834
  if (error instanceof _chunkSQWET4SLjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2780
- if (wantsJson) _chunkQZWURUBPjs.printJsonError.call(void 0, error);
2835
+ if (wantsJson) _chunkKWGXHPHLjs.printJsonError.call(void 0, error);
2781
2836
  else console.error(error.message);
2782
2837
  return 2;
2783
2838
  }
@@ -2803,11 +2858,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2803
2858
  responseIntent,
2804
2859
  ...idempotencyKey ? { idempotencyKey } : {},
2805
2860
  ...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
2806
- searchRef: _chunk735ZOYQNjs.recentSearchRef.call(void 0, parsed.toolId),
2861
+ searchRef: _chunkK3IPGMGPjs.recentSearchRef.call(void 0, parsed.toolId),
2807
2862
  cliInvocationId,
2808
- onResponseReceived: _chunkVPQDKL5Ojs.recordApiResponse,
2863
+ onResponseReceived: _chunk6LHX33VNjs.recordApiResponse,
2809
2864
  ...tracing ? {
2810
- onServerTiming: (serverTiming) => _chunkA4JP6RPXjs.recordCliTrace.call(void 0, {
2865
+ onServerTiming: (serverTiming) => _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
2811
2866
  phase: "tool_execute_server_timing",
2812
2867
  cliInvocationId,
2813
2868
  serverTiming,
@@ -2818,51 +2873,51 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2818
2873
  let rawResponse;
2819
2874
  let successfulCompatibilityResponse;
2820
2875
  try {
2821
- const executeResult = await _chunk4UADZTU5js.runToolExecuteStage.call(void 0,
2876
+ const executeResult = await _chunkWNNA4L6Zjs.runToolExecuteStage.call(void 0,
2822
2877
  "execute request",
2823
2878
  async () => {
2824
2879
  try {
2825
2880
  if (tracing) {
2826
2881
  submissionStartedAt = performance.now();
2827
- _chunkA4JP6RPXjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2882
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2828
2883
  }
2829
2884
  return await client.executeTool(parsed.toolId, parsed.params, {
2830
2885
  ...executeOptions,
2831
2886
  atomicToolOnly: true,
2832
- ..._optionalChain([metadata, 'optionalAccess', _42 => _42.executionMetadata, 'optionalAccess', _43 => _43.retrySafeAmbiguousDelivery]) === true ? { retryAmbiguousDelivery: true } : {}
2887
+ ..._optionalChain([metadata, 'optionalAccess', _44 => _44.executionMetadata, 'optionalAccess', _45 => _45.retrySafeAmbiguousDelivery]) === true ? { retryAmbiguousDelivery: true } : {}
2833
2888
  });
2834
2889
  } catch (error) {
2835
2890
  if (!(error instanceof _chunkSQWET4SLjs.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
2836
2891
  throw error;
2837
- const baseUrl = _chunkEYWES7F5js.resolveConfig.call(void 0, ).baseUrl;
2892
+ const baseUrl = _chunkHWPOXCCKjs.resolveConfig.call(void 0, ).baseUrl;
2838
2893
  if (maintenancePolicy !== "off") {
2839
- _chunk425ERNBLjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
2894
+ _chunkHYBZWSSHjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
2840
2895
  }
2841
- const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunk4UADZTU5js.runToolExecuteStage.call(void 0,
2896
+ const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunkWNNA4L6Zjs.runToolExecuteStage.call(void 0,
2842
2897
  "SDK compatibility",
2843
- () => _chunk425ERNBLjs.checkSdkCompatibility.call(void 0, baseUrl, {
2898
+ () => _chunkHYBZWSSHjs.checkSdkCompatibility.call(void 0, baseUrl, {
2844
2899
  command: "tools execute",
2845
- skillsVersion: _chunkEYWES7F5js.readSdkSkillsLocalVersion.call(void 0, baseUrl),
2900
+ skillsVersion: _chunkHWPOXCCKjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
2846
2901
  persistCache: maintenancePolicy !== "off"
2847
2902
  })
2848
2903
  );
2849
2904
  if (compatibility.error) throw compatibility.error;
2850
- metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _44 => _44.readMetadata, 'call', _45 => _45()]), () => ( metadata));
2851
- if (maintenancePolicy !== "off" && await _chunk4UADZTU5js.maybeAutoUpdateAndRelaunch.call(void 0,
2905
+ metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _46 => _46.readMetadata, 'call', _47 => _47()]), () => ( metadata));
2906
+ if (maintenancePolicy !== "off" && await _chunkWNNA4L6Zjs.maybeAutoUpdateAndRelaunch.call(void 0,
2852
2907
  compatibility.response,
2853
2908
  baseUrl,
2854
2909
  maintenancePolicy
2855
2910
  )) {
2856
2911
  return void 0;
2857
2912
  }
2858
- _chunk425ERNBLjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
2913
+ _chunkHYBZWSSHjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
2859
2914
  quietAdvisory: wantsJson
2860
2915
  });
2861
2916
  if (maintenancePolicy !== "off") {
2862
- await _chunk4UADZTU5js.runToolExecuteStage.call(void 0,
2917
+ await _chunkWNNA4L6Zjs.runToolExecuteStage.call(void 0,
2863
2918
  "agent skills sync",
2864
- () => _chunk425ERNBLjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
2865
- update: _optionalChain([compatibility, 'access', _46 => _46.response, 'optionalAccess', _47 => _47.skills]),
2919
+ () => _chunkHYBZWSSHjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
2920
+ update: _optionalChain([compatibility, 'access', _48 => _48.response, 'optionalAccess', _49 => _49.skills]),
2866
2921
  mode: "detached"
2867
2922
  })
2868
2923
  );
@@ -2870,11 +2925,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2870
2925
  const legacyMetadata = await readMetadata();
2871
2926
  if (tracing) {
2872
2927
  submissionStartedAt = performance.now();
2873
- _chunkA4JP6RPXjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2928
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2874
2929
  }
2875
2930
  return client.executeTool(parsed.toolId, parsed.params, {
2876
2931
  ...executeOptions,
2877
- ..._optionalChain([legacyMetadata, 'access', _48 => _48.executionMetadata, 'optionalAccess', _49 => _49.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {}
2932
+ ..._optionalChain([legacyMetadata, 'access', _50 => _50.executionMetadata, 'optionalAccess', _51 => _51.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {}
2878
2933
  });
2879
2934
  }
2880
2935
  }
@@ -2893,8 +2948,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2893
2948
  metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
2894
2949
  const updateRequiredBeforeExecution = error instanceof _chunkSQWET4SLjs.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
2895
2950
  if (updateRequiredBeforeExecution && maintenancePolicy !== "off" && compatibility && !compatibility.error) {
2896
- const baseUrl = _chunkEYWES7F5js.resolveConfig.call(void 0, ).baseUrl;
2897
- if (await _chunk4UADZTU5js.maybeAutoUpdateAndRelaunch.call(void 0,
2951
+ const baseUrl = _chunkHWPOXCCKjs.resolveConfig.call(void 0, ).baseUrl;
2952
+ if (await _chunkWNNA4L6Zjs.maybeAutoUpdateAndRelaunch.call(void 0,
2898
2953
  compatibility.response,
2899
2954
  baseUrl,
2900
2955
  maintenancePolicy
@@ -2907,7 +2962,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2907
2962
  throw error;
2908
2963
  let failure = error;
2909
2964
  if (!(failure instanceof _chunkSQWET4SLjs.DeeplineError) || failure.code !== "PLAY_ALIAS_USED_AS_TOOL") {
2910
- const warningPreflightWasAvailable = !deferredCompatibility || !compatibilityReadFailed && !_optionalChain([compatibility, 'optionalAccess', _50 => _50.error]);
2965
+ const warningPreflightWasAvailable = !deferredCompatibility || !compatibilityReadFailed && !_optionalChain([compatibility, 'optionalAccess', _52 => _52.error]);
2911
2966
  if (metadata || warningPreflightWasAvailable) {
2912
2967
  try {
2913
2968
  await readMetadata();
@@ -2918,14 +2973,14 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2918
2973
  }
2919
2974
  }
2920
2975
  if (failure instanceof _chunkSQWET4SLjs.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
2921
- if (wantsJson) _chunkQZWURUBPjs.printJsonError.call(void 0, failure);
2976
+ if (wantsJson) _chunkKWGXHPHLjs.printJsonError.call(void 0, failure);
2922
2977
  else console.error(failure.message);
2923
2978
  return 2;
2924
2979
  }
2925
- const guidanceLines = toolGuidanceLines(_optionalChain([metadata, 'optionalAccess', _51 => _51.guidance]));
2980
+ const guidanceLines = toolGuidanceLines(_optionalChain([metadata, 'optionalAccess', _53 => _53.guidance]));
2926
2981
  if (guidanceLines.length > 0) {
2927
2982
  if (wantsJson && failure instanceof Error) {
2928
- Object.assign(failure, { guidance: _optionalChain([metadata, 'optionalAccess', _52 => _52.guidance]) });
2983
+ Object.assign(failure, { guidance: _optionalChain([metadata, 'optionalAccess', _54 => _54.guidance]) });
2929
2984
  } else {
2930
2985
  console.error(
2931
2986
  [`Guidance for ${parsed.toolId}:`, ...guidanceLines].join("\n")
@@ -2941,17 +2996,17 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2941
2996
  } catch (e5) {
2942
2997
  }
2943
2998
  metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
2944
- const compatibilityResponse = _optionalChain([compatibility, 'optionalAccess', _53 => _53.response]);
2999
+ const compatibilityResponse = _optionalChain([compatibility, 'optionalAccess', _55 => _55.response]);
2945
3000
  successfulCompatibilityResponse = _nullishCoalesce(compatibilityResponse, () => ( void 0));
2946
- const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _54 => _54.auto_update]);
2947
- if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _55 => _55.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
2948
- await _chunk4UADZTU5js.maybeAutoUpdateAndRelaunch.call(void 0,
3001
+ const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _56 => _56.auto_update]);
3002
+ if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _57 => _57.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
3003
+ await _chunkWNNA4L6Zjs.maybeAutoUpdateAndRelaunch.call(void 0,
2949
3004
  compatibilityResponse,
2950
- _chunkEYWES7F5js.resolveConfig.call(void 0, ).baseUrl,
3005
+ _chunkHWPOXCCKjs.resolveConfig.call(void 0, ).baseUrl,
2951
3006
  maintenancePolicy
2952
3007
  );
2953
3008
  }
2954
- if (!metadata && !_optionalChain([compatibility, 'optionalAccess', _56 => _56.error])) {
3009
+ if (!metadata && !_optionalChain([compatibility, 'optionalAccess', _58 => _58.error])) {
2955
3010
  try {
2956
3011
  metadata = await readMetadata();
2957
3012
  } catch (e6) {
@@ -2982,7 +3037,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2982
3037
  const { _metadata, ...execution } = rawResponse;
2983
3038
  rawResponse = execution;
2984
3039
  }
2985
- const { listConversion, summary, baseEnvelope } = await _chunk4UADZTU5js.runToolExecuteStage.call(void 0,
3040
+ const { listConversion, summary, baseEnvelope } = await _chunkWNNA4L6Zjs.runToolExecuteStage.call(void 0,
2986
3041
  "result formatting",
2987
3042
  async () => {
2988
3043
  const listConversion2 = _chunkHGFFYVXNjs.tryConvertToList.call(void 0, rawResponse, {
@@ -3002,7 +3057,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3002
3057
  rawResponse,
3003
3058
  listConversion: listConversion2,
3004
3059
  summary: summary2,
3005
- guidance: _optionalChain([metadata, 'optionalAccess', _57 => _57.guidance]),
3060
+ guidance: _optionalChain([metadata, 'optionalAccess', _59 => _59.guidance]),
3006
3061
  listExpected: listExtractorPaths.length > 0
3007
3062
  });
3008
3063
  return { listConversion: listConversion2, summary: summary2, baseEnvelope: baseEnvelope2 };
@@ -3017,9 +3072,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3017
3072
  }
3018
3073
  skillsSyncAttempted = true;
3019
3074
  try {
3020
- await _chunk4UADZTU5js.runToolExecuteStage.call(void 0,
3075
+ await _chunkWNNA4L6Zjs.runToolExecuteStage.call(void 0,
3021
3076
  "agent skills sync",
3022
- () => _chunk425ERNBLjs.syncSdkSkillsIfNeeded.call(void 0, _chunkEYWES7F5js.resolveConfig.call(void 0, ).baseUrl, {
3077
+ () => _chunkHYBZWSSHjs.syncSdkSkillsIfNeeded.call(void 0, _chunkHWPOXCCKjs.resolveConfig.call(void 0, ).baseUrl, {
3023
3078
  update: deliveredCompatibilityResponse.skills,
3024
3079
  mode: "detached"
3025
3080
  })
@@ -3030,15 +3085,15 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3030
3085
  );
3031
3086
  }
3032
3087
  };
3033
- const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkQZWURUBPjs.printCommandEnvelope.call(void 0, envelope, {
3088
+ const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0, envelope, {
3034
3089
  ...options2,
3035
3090
  json: _nullishCoalesce(options2.json, () => ( wantsJson))
3036
3091
  });
3037
3092
  const printDeliveredJsonEnvelope = async (envelope, options2 = {}) => {
3038
3093
  await syncSkillsForDeliveredOutput();
3039
- _chunkQZWURUBPjs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
3094
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
3040
3095
  };
3041
- const delivered = await _chunk4UADZTU5js.runToolExecuteStage.call(void 0, "output delivery", async () => {
3096
+ const delivered = await _chunkWNNA4L6Zjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
3042
3097
  if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
3043
3098
  await printDeliveredJsonEnvelope(baseEnvelope);
3044
3099
  return true;
@@ -3067,7 +3122,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3067
3122
  `${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
3068
3123
  );
3069
3124
  if (wantsJson) {
3070
- _chunkQZWURUBPjs.printJsonError.call(void 0, error);
3125
+ _chunkKWGXHPHLjs.printJsonError.call(void 0, error);
3071
3126
  } else {
3072
3127
  console.error(error.message);
3073
3128
  }
@@ -3162,14 +3217,14 @@ inspect: ${inspection.inspect}
3162
3217
  return true;
3163
3218
  });
3164
3219
  if (delivered) {
3165
- await _chunk4UADZTU5js.runToolExecuteStage.call(void 0,
3220
+ await _chunkWNNA4L6Zjs.runToolExecuteStage.call(void 0,
3166
3221
  "acknowledge delivery",
3167
3222
  () => recovery.acknowledgeDelivery()
3168
3223
  );
3169
3224
  }
3170
3225
  if (delivered && deliveredCompatibilityResponse && deliveredCompatibilityResponse.update_required !== true) {
3171
- _chunk425ERNBLjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
3172
- quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _58 => _58.auto_update, 'optionalAccess', _59 => _59.should_auto_update]) === true
3226
+ _chunkHYBZWSSHjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
3227
+ quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _60 => _60.auto_update, 'optionalAccess', _61 => _61.should_auto_update]) === true
3173
3228
  });
3174
3229
  }
3175
3230
  if (delivered && !skillsSyncAttempted) await syncSkillsForDeliveredOutput();