deepline 0.3.542 → 0.3.544

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 (246) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +112 -2
  2. package/dist/bundling-sources/sdk/src/index.ts +7 -0
  3. package/dist/bundling-sources/sdk/src/integrations.ts +198 -0
  4. package/dist/bundling-sources/sdk/src/plays/run-request.ts +3 -0
  5. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  6. package/dist/bundling-sources/sdk/src/tool-calls.ts +35 -11
  7. package/dist/bundling-sources/sdk/src/types.ts +10 -0
  8. package/dist/bundling-sources/shared_libs/integration-contracts/calendar-delegation.ts +132 -0
  9. package/dist/bundling-sources/shared_libs/integration-contracts/monitor-fleet-contract.ts +3 -1
  10. package/dist/bundling-sources/shared_libs/integration-contracts/tool-connection.ts +13 -0
  11. package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +108 -1
  12. package/dist/bundling-sources/shared_libs/monitors/package.json +1 -1
  13. package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
  14. package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
  15. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +5 -5
  16. package/dist/bundling-sources/shared_libs/play-data-plane/sheet-contract.ts +34 -0
  17. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +11 -5
  18. package/dist/bundling-sources/shared_libs/play-runtime/baked-runner-image.ts +9 -7
  19. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +235 -12
  20. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +20 -1
  21. package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-janitor.ts +39 -30
  22. package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +29 -0
  23. package/dist/bundling-sources/shared_libs/play-runtime/event-wait-tools.ts +2 -0
  24. package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +10 -4
  25. package/dist/bundling-sources/shared_libs/play-runtime/fleet-sandbox-sweep.ts +209 -0
  26. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +4 -0
  27. package/dist/bundling-sources/shared_libs/play-runtime/play-run-recovery-policy.ts +24 -1
  28. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/contracts.ts +2 -1
  29. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +6 -1
  30. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +37 -0
  31. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +43 -3
  32. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +7 -0
  33. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +15 -0
  34. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +23 -5
  35. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +320 -836
  36. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/vercel-sandbox.ts +1061 -0
  37. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +862 -0
  38. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +45 -0
  39. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/sandbox-create-outcome.ts +3 -1
  40. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/types.ts +11 -5
  41. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-contract.ts +20 -2
  42. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-placement-policy.ts +71 -34
  43. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-provider-profile.ts +286 -0
  44. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/contract.ts +4 -1
  45. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +12 -3
  46. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +7 -0
  47. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +49 -55
  48. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-required-env.ts +127 -5
  49. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +7 -1
  50. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +214 -0
  51. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/managed-sandbox-resource-sql.ts +118 -0
  52. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +1 -0
  53. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +229 -144
  54. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +2 -2
  55. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +2 -1
  56. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +11 -13
  57. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-operation.ts +42 -7
  58. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +2 -1
  59. package/dist/bundling-sources/shared_libs/play-runtime/suspension.ts +2 -2
  60. package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +17 -0
  61. package/dist/bundling-sources/shared_libs/play-runtime/vercel-sandbox-runtime-config.ts +217 -0
  62. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +23 -0
  63. package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +1 -0
  64. package/dist/bundling-sources/shared_libs/plays/script-entry.ts +76 -6
  65. package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +1 -0
  66. package/dist/bundling-sources/shared_libs/security/credential-revision.ts +50 -0
  67. package/dist/bundling-sources/shared_libs/security/internal-actor.ts +2 -1
  68. package/dist/bundling-sources/shared_libs/security/receipt-admission-token.ts +37 -0
  69. package/dist/cli/auth-ENBXAKQS.js +43 -0
  70. package/dist/cli/{auth-IGBGOB4E.mjs → auth-IMWJAHPU.mjs} +5 -5
  71. package/dist/cli/{billing-IB2TWE74.js → billing-Y55PR2PV.js} +101 -101
  72. package/dist/cli/{billing-N37W2I62.mjs → billing-YQMW3QJI.mjs} +12 -12
  73. package/dist/cli/chunk-22OBDYHP.js +455 -0
  74. package/dist/cli/{chunk-GBAT5NMI.mjs → chunk-2HSZCQMT.mjs} +48 -6
  75. package/dist/cli/{chunk-VLEVVDWG.js → chunk-2JHYYB3F.js} +3 -3
  76. package/dist/cli/{chunk-D44DP4KJ.js → chunk-3I26HMJ7.js} +37 -17
  77. package/dist/cli/{chunk-B5NP3SHX.mjs → chunk-3JDA23NN.mjs} +2 -2
  78. package/dist/cli/{chunk-QXNOSCYL.js → chunk-3KGMM4KS.js} +1 -1
  79. package/dist/cli/{chunk-6WQDHEVF.mjs → chunk-456RRXAP.mjs} +5 -5
  80. package/dist/cli/{chunk-V4EYJKGJ.js → chunk-4JQEAYN3.js} +156 -17
  81. package/dist/cli/{chunk-FGGPCAGC.js → chunk-4PKHFW56.js} +18 -18
  82. package/dist/cli/{chunk-QONO7FRF.mjs → chunk-57G4NYOL.mjs} +1 -1
  83. package/dist/cli/{chunk-46V7QSJE.mjs → chunk-5PR4VLLL.mjs} +3 -3
  84. package/dist/cli/{chunk-OLH2PHMC.mjs → chunk-6P7TGCHQ.mjs} +1 -1
  85. package/dist/cli/{chunk-AKY7KZRJ.js → chunk-7GNZEOTH.js} +6 -6
  86. package/dist/cli/{chunk-LFMQVSEI.js → chunk-7HMMTSDA.js} +5 -5
  87. package/dist/cli/{chunk-ORA5TMML.mjs → chunk-BEQ7RQLT.mjs} +5 -5
  88. package/dist/cli/{chunk-KQSTV4MW.js → chunk-BLYW6FFB.js} +60 -18
  89. package/dist/cli/{chunk-GM73TZ2W.js → chunk-C4P2KLWT.js} +41 -41
  90. package/dist/cli/{chunk-DNGACHFX.js → chunk-COJHT2KF.js} +22 -22
  91. package/dist/cli/{chunk-6SLEHAXX.js → chunk-DF2X7GJG.js} +5 -5
  92. package/dist/cli/{chunk-TT4JUUC3.mjs → chunk-DVDWAC2M.mjs} +7 -3
  93. package/dist/cli/{chunk-5CAVURVS.js → chunk-DYDHLBSK.js} +53 -53
  94. package/dist/cli/{chunk-UNDLNT3V.js → chunk-ECWOIXAV.js} +1 -1
  95. package/dist/cli/{chunk-EHLCWGWN.js → chunk-G26VJCNT.js} +4 -4
  96. package/dist/cli/{chunk-WL2GUGNZ.js → chunk-GQHRGBHV.js} +7 -7
  97. package/dist/cli/{chunk-DADH3WPE.mjs → chunk-GV45TTI6.mjs} +2 -2
  98. package/dist/cli/{chunk-OVX3Q5Q3.mjs → chunk-GWNYLIF7.mjs} +1 -1
  99. package/dist/cli/{chunk-EGOCGWCI.mjs → chunk-H4SAHB3Q.mjs} +3 -3
  100. package/dist/cli/{chunk-FX4OWXKK.mjs → chunk-HAQRF6DJ.mjs} +2 -2
  101. package/dist/cli/{chunk-NLZHLEHD.mjs → chunk-HBSWATOU.mjs} +6 -6
  102. package/dist/cli/{chunk-ACVTMAW4.mjs → chunk-HVJQF5BI.mjs} +2 -2
  103. package/dist/cli/{chunk-L2VKAASU.mjs → chunk-HXIR3VQL.mjs} +21 -0
  104. package/dist/cli/{chunk-Z5YRKX7K.mjs → chunk-HXM2JUGD.mjs} +1 -1
  105. package/dist/cli/{chunk-JPT6VE54.js → chunk-IFIJ4DBJ.js} +2 -2
  106. package/dist/cli/{chunk-HAITCPCG.js → chunk-JBWOE6AP.js} +16 -16
  107. package/dist/cli/{chunk-AWLPERL3.js → chunk-JWVG7ZPX.js} +3 -3
  108. package/dist/cli/{chunk-3XXXMSSP.js → chunk-KE6CSCUF.js} +44 -44
  109. package/dist/cli/{chunk-2ZGSHVZE.mjs → chunk-LPUBBUKX.mjs} +24 -4
  110. package/dist/cli/{chunk-PLIKPGOO.mjs → chunk-LQ6RRYXN.mjs} +5 -5
  111. package/dist/cli/{chunk-FFDZT255.mjs → chunk-LW274RO7.mjs} +1 -1
  112. package/dist/cli/{chunk-Z2XA6YU4.mjs → chunk-LX35AXTN.mjs} +1 -0
  113. package/dist/cli/{chunk-FANIRW74.mjs → chunk-NIPLY25A.mjs} +0 -2
  114. package/dist/cli/{chunk-VHJUH3TB.js → chunk-ON56ISO6.js} +3 -3
  115. package/dist/cli/{chunk-4I47NCRI.js → chunk-PDJ4UDCO.js} +498 -328
  116. package/dist/cli/{chunk-SWO5QOXB.mjs → chunk-PFGOCUH3.mjs} +1 -1
  117. package/dist/cli/{chunk-Q7WDXLYO.js → chunk-PKRW76XG.js} +2 -2
  118. package/dist/cli/{chunk-YK7NNZD4.mjs → chunk-PMW5YP72.mjs} +37 -190
  119. package/dist/cli/{chunk-5APOJWJF.mjs → chunk-Q7ZOWNKR.mjs} +183 -13
  120. package/dist/cli/{chunk-WACIN4PR.mjs → chunk-REEOMNCO.mjs} +3 -3
  121. package/dist/cli/{chunk-DMXLZ57N.js → chunk-RG34YBDE.js} +2 -2
  122. package/dist/cli/{chunk-3LEUSRV3.mjs → chunk-RJPDCSTD.mjs} +4 -4
  123. package/dist/cli/{chunk-IPVRMYWT.js → chunk-RKF263LR.js} +5 -5
  124. package/dist/cli/{chunk-AUFE624T.js → chunk-RUFR4PUO.js} +10 -10
  125. package/dist/cli/{chunk-I5EAIFGO.mjs → chunk-SK3HPU2J.mjs} +1 -1
  126. package/dist/cli/{chunk-ZVNYBQ77.mjs → chunk-SKS53WM6.mjs} +4 -4
  127. package/dist/cli/{chunk-CQDQNZGH.js → chunk-SL6MYJYM.js} +1 -0
  128. package/dist/cli/{chunk-E4CABWXL.js → chunk-TI6DTURF.js} +22 -1
  129. package/dist/cli/{chunk-CFZCRM6R.js → chunk-UHIAQPVA.js} +26 -26
  130. package/dist/cli/{chunk-D7GWEBMF.js → chunk-UNMNGRPB.js} +7 -7
  131. package/dist/cli/{chunk-GWHA4DAC.js → chunk-UV4RU2TE.js} +0 -2
  132. package/dist/cli/{chunk-TTBHOMAA.js → chunk-W7X4KH45.js} +316 -469
  133. package/dist/cli/chunk-WBSGPLH5.mjs +455 -0
  134. package/dist/cli/{chunk-SCLP5H4P.mjs → chunk-WUEORIOY.mjs} +1 -1
  135. package/dist/cli/{chunk-IDDKNMFX.mjs → chunk-Y3T5GWYK.mjs} +153 -14
  136. package/dist/cli/{chunk-P4MDTBAA.mjs → chunk-YIRVKMON.mjs} +1 -1
  137. package/dist/cli/{chunk-NDNEARE3.js → chunk-Z44YTSTA.js} +13 -13
  138. package/dist/cli/{chunk-F6QV42MC.mjs → chunk-Z7SXGOIQ.mjs} +1 -1
  139. package/dist/cli/{chunk-2VRKBHMD.mjs → chunk-ZHY4T5M6.mjs} +1 -1
  140. package/dist/cli/{chunk-E7B73LGT.js → chunk-ZY6FL4O4.js} +24 -20
  141. package/dist/cli/command-docs.js +3 -3
  142. package/dist/cli/command-docs.mjs +2 -2
  143. package/dist/cli/{concurrent-runs-help-DIBGMEIN.mjs → concurrent-runs-help-KBWPKSTP.mjs} +7 -7
  144. package/dist/cli/concurrent-runs-help-TOMLCMV7.js +21 -0
  145. package/dist/cli/{csv-CAVA3EMS.mjs → csv-M5EBEMZH.mjs} +4 -4
  146. package/dist/cli/{csv-XZAM7EYZ.js → csv-XGGDZTQI.js} +13 -13
  147. package/dist/cli/{db-PPGEOBNG.js → db-CVPR54XK.js} +29 -29
  148. package/dist/cli/{db-HD332QI7.mjs → db-M6FJ6J6E.mjs} +8 -8
  149. package/dist/cli/describe-RUODIS6M.js +50 -0
  150. package/dist/cli/describe-X6QA2U3C.mjs +50 -0
  151. package/dist/cli/describe-core.d.mts +3 -3
  152. package/dist/cli/describe-core.d.ts +3 -3
  153. package/dist/cli/describe-core.js +3 -3
  154. package/dist/cli/describe-core.mjs +2 -2
  155. package/dist/cli/{executions-AFEOLB4A.mjs → executions-EHTS2XJX.mjs} +8 -8
  156. package/dist/cli/{executions-4ZKBL7IC.js → executions-VJEEWN22.js} +10 -10
  157. package/dist/cli/{feedback-J2YPLKMF.mjs → feedback-76VGY4GP.mjs} +6 -6
  158. package/dist/cli/{feedback-M6Y33JKT.js → feedback-DQPUCUXO.js} +14 -14
  159. package/dist/cli/{git-632RYEF6.mjs → git-IY6DKKLR.mjs} +5 -5
  160. package/dist/cli/git-RLHTSYRY.js +25 -0
  161. package/dist/cli/index.js +150 -146
  162. package/dist/cli/index.mjs +49 -45
  163. package/dist/cli/integrations-242LE3TQ.mjs +98 -0
  164. package/dist/cli/integrations-CQSTIKFY.js +98 -0
  165. package/dist/cli/{legacy-noops-KWZMXYAU.mjs → legacy-noops-SWTSTMRY.mjs} +6 -6
  166. package/dist/cli/{legacy-noops-4Y62TKPC.js → legacy-noops-U72DO6ZF.js} +9 -9
  167. package/dist/cli/{mcp-PESLHAAC.mjs → mcp-JJH6JR52.mjs} +72 -15
  168. package/dist/cli/{mcp-35QA6YG7.js → mcp-L473BKLJ.js} +89 -32
  169. package/dist/cli/{monitors-4DTUZLAI.js → monitors-3TF2DOFD.js} +119 -104
  170. package/dist/cli/{monitors-YVBKBJBU.mjs → monitors-VSYHUBKC.mjs} +26 -11
  171. package/dist/cli/{org-DJNKMFCZ.mjs → org-S5VIKU2E.mjs} +8 -8
  172. package/dist/cli/{org-FWCBZMER.js → org-YKVI2ZTI.js} +90 -90
  173. package/dist/cli/{play-PHVQEEEZ.mjs → play-C7T5A3QM.mjs} +44 -25
  174. package/dist/cli/{play-FZ45M4KD.js → play-DOWEG45Y.js} +374 -355
  175. package/dist/cli/{providers-46E67QG7.mjs → providers-BMVVX3VD.mjs} +10 -9
  176. package/dist/cli/{providers-QJU6FMDD.js → providers-TAZPPFTB.js} +13 -12
  177. package/dist/cli/{quickstart-6HMJJ4RR.mjs → quickstart-A3WKMKTW.mjs} +4 -4
  178. package/dist/cli/{quickstart-HOL7H5FS.js → quickstart-HD6FQXGR.js} +6 -6
  179. package/dist/cli/{run-WKSIRXEC.js → run-BVVV2UX7.js} +49 -48
  180. package/dist/cli/{run-2W2TJ6QA.mjs → run-FV7TWNOC.mjs} +28 -27
  181. package/dist/cli/{search-Y2CFLSYB.mjs → search-MGK6WIKS.mjs} +9 -9
  182. package/dist/cli/search-VJFCWUZN.js +32 -0
  183. package/dist/cli/{search-output-2IK6ZZDY.js → search-output-6Y7KEPIE.js} +6 -6
  184. package/dist/cli/{search-output-FCZ35PHF.mjs → search-output-GM7LDZKE.mjs} +4 -4
  185. package/dist/cli/{secrets-PNPNUZLX.mjs → secrets-4RFAR7YI.mjs} +8 -8
  186. package/dist/cli/{secrets-JVJIHGU4.js → secrets-SISXIXSZ.js} +17 -17
  187. package/dist/cli/{sessions-GY5VVQGO.mjs → sessions-CE3OMEG7.mjs} +6 -6
  188. package/dist/cli/sessions-OWWZJZXH.js +22 -0
  189. package/dist/cli/{settings-5WHMFRNQ.js → settings-4HPM3K4A.js} +89 -89
  190. package/dist/cli/{settings-YQOPF3AI.mjs → settings-E22IDSX2.mjs} +16 -16
  191. package/dist/cli/{setup-3VJMKDEU.js → setup-BDRSNLKX.js} +49 -49
  192. package/dist/cli/{setup-O5U5IEVW.mjs → setup-BK65MDZ6.mjs} +9 -9
  193. package/dist/cli/{skills-G6J5PF35.mjs → skills-FI2GZMR4.mjs} +7 -7
  194. package/dist/cli/skills-ZLBFUAFR.js +36 -0
  195. package/dist/cli/tools-3K72VE33.js +57 -0
  196. package/dist/cli/{tools-AG7SWL5Y.mjs → tools-HMMWYUNW.mjs} +20 -19
  197. package/dist/cli/update-QZV6DH5V.js +34 -0
  198. package/dist/cli/{update-K73DD6CR.mjs → update-WDKBSXV5.mjs} +9 -9
  199. package/dist/cli/{views-4D2OTLIO.js → views-775AUDWQ.js} +23 -23
  200. package/dist/cli/{views-MO6DIOMR.mjs → views-JYIJCO23.mjs} +8 -8
  201. package/dist/cli/{workflow-ZEMFCS4Y.js → workflow-4H6KQRFQ.js} +19 -19
  202. package/dist/cli/{workflow-MMZMAELI.mjs → workflow-FKKHE3IU.mjs} +9 -9
  203. package/dist/{client-DLG9mHDh.d.mts → client-ANT3pyoa.d.mts} +1 -1
  204. package/dist/{client-X-FJD5Dp.d.ts → client-DD_FyJVd.d.ts} +1 -1
  205. package/dist/{client-core-WtnqyBwY.d.mts → client-core-Dg9tKhdB.d.mts} +339 -3
  206. package/dist/{client-core-0jmHfFBv.d.ts → client-core-QHmo73k1.d.ts} +339 -3
  207. package/dist/{compiler-manifest-Cys06iYg.d.mts → compiler-manifest-BWFtsQIC.d.mts} +21 -0
  208. package/dist/{compiler-manifest-Cys06iYg.d.ts → compiler-manifest-BWFtsQIC.d.ts} +21 -0
  209. package/dist/{errors-B6eMjKcr.d.mts → errors-CwKXXtuu.d.mts} +1 -1
  210. package/dist/{errors-rdOUqcU2.d.ts → errors-Lm9_vJHZ.d.ts} +1 -1
  211. package/dist/{index-ejWadAL5.d.ts → index-3vJ-V9yw.d.ts} +1 -1
  212. package/dist/{index-CZdYO81A.d.mts → index-DjwsAt82.d.mts} +1 -1
  213. package/dist/index.d.mts +7 -7
  214. package/dist/index.d.ts +7 -7
  215. package/dist/index.js +12 -12
  216. package/dist/index.mjs +8 -8
  217. package/dist/install-integrity.json +147 -133
  218. package/dist/plays/bundle-play-file.d.mts +3 -3
  219. package/dist/plays/bundle-play-file.d.ts +3 -3
  220. package/dist/plays/bundle-play-file.mjs +23 -4
  221. package/dist/plays/play-description.d.mts +2 -2
  222. package/dist/plays/play-description.d.ts +2 -2
  223. package/dist/plays/run-request.d.mts +2 -2
  224. package/dist/plays/run-request.d.ts +2 -2
  225. package/dist/plays/run-request.js +2 -2
  226. package/dist/plays/run-request.mjs +1 -1
  227. package/dist/release.d.mts +1 -1
  228. package/dist/release.d.ts +1 -1
  229. package/dist/release.js +2 -2
  230. package/dist/release.mjs +1 -1
  231. package/dist/server.d.mts +4 -4
  232. package/dist/server.d.ts +4 -4
  233. package/dist/server.js +7 -7
  234. package/dist/server.mjs +5 -5
  235. package/package.json +1 -1
  236. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal-resource-usage.ts +0 -222
  237. package/dist/cli/auth-2PH6RSKL.js +0 -43
  238. package/dist/cli/concurrent-runs-help-BNIDBKML.js +0 -21
  239. package/dist/cli/describe-5TFFB2PM.js +0 -49
  240. package/dist/cli/describe-THQU7N47.mjs +0 -49
  241. package/dist/cli/git-AQLQYWRI.js +0 -25
  242. package/dist/cli/search-YLJFCJTK.js +0 -32
  243. package/dist/cli/sessions-TZ33UCPS.js +0 -22
  244. package/dist/cli/skills-WZY3XDT3.js +0 -36
  245. package/dist/cli/tools-BXQBL72Q.js +0 -56
  246. package/dist/cli/update-XYP5EII6.js +0 -34
@@ -2,19 +2,20 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkD7GWEBMFjs = require('./chunk-D7GWEBMF.js');
5
+ var _chunkUNMNGRPBjs = require('./chunk-UNMNGRPB.js');
6
6
 
7
7
 
8
8
 
9
- var _chunkAUFE624Tjs = require('./chunk-AUFE624T.js');
10
9
 
11
10
 
12
11
 
13
12
 
14
13
 
14
+ var _chunk22OBDYHPjs = require('./chunk-22OBDYHP.js');
15
15
 
16
16
 
17
17
 
18
+ var _chunkRUFR4PUOjs = require('./chunk-RUFR4PUO.js');
18
19
 
19
20
 
20
21
 
@@ -27,7 +28,15 @@ var _chunkAUFE624Tjs = require('./chunk-AUFE624T.js');
27
28
 
28
29
 
29
30
 
30
- var _chunkUNDLNT3Vjs = require('./chunk-UNDLNT3V.js');
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+ var _chunkECWOIXAVjs = require('./chunk-ECWOIXAV.js');
31
40
 
32
41
 
33
42
  var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
@@ -46,10 +55,10 @@ var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
46
55
  var _chunkHGFFYVXNjs = require('./chunk-HGFFYVXN.js');
47
56
 
48
57
 
49
- var _chunk6SLEHAXXjs = require('./chunk-6SLEHAXX.js');
58
+ var _chunkDF2X7GJGjs = require('./chunk-DF2X7GJG.js');
50
59
 
51
60
 
52
- var _chunk4I47NCRIjs = require('./chunk-4I47NCRI.js');
61
+ var _chunkPDJ4UDCOjs = require('./chunk-PDJ4UDCO.js');
53
62
 
54
63
 
55
64
  var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
@@ -59,18 +68,18 @@ var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
59
68
 
60
69
 
61
70
 
62
- var _chunkDNGACHFXjs = require('./chunk-DNGACHFX.js');
71
+ var _chunkCOJHT2KFjs = require('./chunk-COJHT2KF.js');
63
72
 
64
73
 
65
74
 
66
75
 
67
- var _chunkQ7WDXLYOjs = require('./chunk-Q7WDXLYO.js');
76
+ var _chunkPKRW76XGjs = require('./chunk-PKRW76XG.js');
68
77
 
69
78
 
70
79
 
71
80
 
72
81
 
73
- var _chunk3XXXMSSPjs = require('./chunk-3XXXMSSP.js');
82
+ var _chunkKE6CSCUFjs = require('./chunk-KE6CSCUF.js');
74
83
 
75
84
 
76
85
 
@@ -79,12 +88,12 @@ var _chunk3XXXMSSPjs = require('./chunk-3XXXMSSP.js');
79
88
 
80
89
 
81
90
 
82
- var _chunkE7B73LGTjs = require('./chunk-E7B73LGT.js');
91
+ var _chunkZY6FL4O4js = require('./chunk-ZY6FL4O4.js');
83
92
 
84
93
 
85
94
 
86
95
 
87
- var _chunkVHJUH3TBjs = require('./chunk-VHJUH3TB.js');
96
+ var _chunkON56ISO6js = require('./chunk-ON56ISO6.js');
88
97
 
89
98
 
90
99
  var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
@@ -190,10 +199,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
190
199
  }
191
200
  };
192
201
  function pendingToolExecutionPath(input) {
193
- const config = _chunkVHJUH3TBjs.resolveConfig.call(void 0, );
202
+ const config = _chunkON56ISO6js.resolveConfig.call(void 0, );
194
203
  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");
195
204
  return _path.join.call(void 0,
196
- _chunkVHJUH3TBjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
205
+ _chunkON56ISO6js.sdkCliStateDirPath.call(void 0, config.baseUrl),
197
206
  `${PENDING_PREFIX}${fingerprint}.json`
198
207
  );
199
208
  }
@@ -345,13 +354,13 @@ var TOOL_COMMAND_TEMPLATES = {
345
354
  execute: "deepline run <toolId> --input '{...}'"
346
355
  };
347
356
  function toListedTool(tool) {
348
- if (_chunkUNDLNT3Vjs.isPlayLikeTool.call(void 0, tool)) {
357
+ if (_chunkECWOIXAVjs.isPlayLikeTool.call(void 0, tool)) {
349
358
  return {
350
359
  ...tool,
351
360
  description: listedToolDescription(tool),
352
361
  id: tool.toolId,
353
362
  type: "play",
354
- executeCommand: _chunkUNDLNT3Vjs.playRunCommandForTool.call(void 0, tool, tool.toolId)
363
+ executeCommand: _chunkECWOIXAVjs.playRunCommandForTool.call(void 0, tool, tool.toolId)
355
364
  };
356
365
  }
357
366
  return {
@@ -427,37 +436,37 @@ function firstSentence(text) {
427
436
  return (match ? match[0] : clean).trim();
428
437
  }
429
438
  function requiredInputIds(tool) {
430
- const inputSchema = _chunkUNDLNT3Vjs.recordField.call(void 0,
439
+ const inputSchema = _chunkECWOIXAVjs.recordField.call(void 0,
431
440
  tool,
432
441
  "inputSchema",
433
442
  "input_schema"
434
443
  );
435
- return _chunkUNDLNT3Vjs.toolInputFieldsForDisplay.call(void 0, inputSchema).filter((field) => field.required === true).map((field) => String(_nullishCoalesce(field.name, () => ( "")))).filter(Boolean);
444
+ return _chunkECWOIXAVjs.toolInputFieldsForDisplay.call(void 0, inputSchema).filter((field) => field.required === true).map((field) => String(_nullishCoalesce(field.name, () => ( "")))).filter(Boolean);
436
445
  }
437
446
  function notConnectedSuffix(tool) {
438
447
  const record = tool;
439
- const status = _chunkUNDLNT3Vjs.stringField.call(void 0, record, "credentialStatus", "credential_status");
448
+ const status = _chunkECWOIXAVjs.stringField.call(void 0, record, "credentialStatus", "credential_status");
440
449
  const connected = record.connected;
441
450
  const message = toolConnectionStatusMessage({
442
451
  connected: connected === false ? false : void 0,
443
452
  credentialStatus: status || void 0,
444
- connectionMessage: _chunkUNDLNT3Vjs.stringField.call(void 0, record, "connectionMessage", "connection_message") || void 0
453
+ connectionMessage: _chunkECWOIXAVjs.stringField.call(void 0, record, "connectionMessage", "connection_message") || void 0
445
454
  });
446
455
  return message ? ` - \u26A0 ${message}` : "";
447
456
  }
448
457
  function shortPricingHint(tool) {
449
- const pricing = _chunkUNDLNT3Vjs.recordField.call(void 0,
458
+ const pricing = _chunkECWOIXAVjs.recordField.call(void 0,
450
459
  tool,
451
460
  "pricing"
452
461
  );
453
462
  const credits = numberField(pricing, "creditsPerUnit", "credits_per_unit");
454
- const unit = _chunkUNDLNT3Vjs.stringField.call(void 0, pricing, "unit");
463
+ const unit = _chunkECWOIXAVjs.stringField.call(void 0, pricing, "unit");
455
464
  if (credits !== null) {
456
465
  return `${formatDecimal(credits)} cr/${unit || "unit"}`;
457
466
  }
458
- const summary = _chunkUNDLNT3Vjs.stringField.call(void 0, pricing, "summary");
467
+ const summary = _chunkECWOIXAVjs.stringField.call(void 0, pricing, "summary");
459
468
  if (summary) return summary;
460
- const displayText = _chunkUNDLNT3Vjs.stringField.call(void 0, pricing, "displayText", "display_text");
469
+ const displayText = _chunkECWOIXAVjs.stringField.call(void 0, pricing, "displayText", "display_text");
461
470
  return displayText || null;
462
471
  }
463
472
  function aggregateCategorySummaries(tools) {
@@ -501,13 +510,13 @@ function categoryEnumerationRender(summaries) {
501
510
  };
502
511
  }
503
512
  async function listToolCategories(emitJson, compact) {
504
- const client = new (0, _chunk6SLEHAXXjs.DeeplineClient)();
513
+ const client = new (0, _chunkDF2X7GJGjs.DeeplineClient)();
505
514
  if (!emitJson) {
506
515
  const summaries2 = (await client.listToolCategories()).map((category) => ({
507
516
  ...category,
508
517
  description: describeToolCategory(category.name)
509
518
  }));
510
- _chunkE7B73LGTjs.printCommandEnvelope.call(void 0,
519
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
511
520
  { categories: summaries2, render: categoryEnumerationRender(summaries2) },
512
521
  { json: false }
513
522
  );
@@ -517,7 +526,7 @@ async function listToolCategories(emitJson, compact) {
517
526
  const items = rawTools.map(toListedTool);
518
527
  const summaries = aggregateCategorySummaries(rawTools);
519
528
  const outputItems = compact ? items.map(compactTool) : items;
520
- _chunkE7B73LGTjs.printCommandEnvelope.call(void 0,
529
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
521
530
  {
522
531
  tools: outputItems,
523
532
  count: outputItems.length,
@@ -536,7 +545,7 @@ function unknownCategoryError(category, summaries, emitJson) {
536
545
  const known = summaries.map((item) => item.name);
537
546
  const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
538
547
  if (emitJson) {
539
- _chunkE7B73LGTjs.printJson.call(void 0, {
548
+ _chunkZY6FL4O4js.printJson.call(void 0, {
540
549
  ok: false,
541
550
  exitCode: 4,
542
551
  code: "TOOL_CATEGORY_NOT_FOUND",
@@ -550,13 +559,13 @@ function unknownCategoryError(category, summaries, emitJson) {
550
559
  const render = categoryEnumerationRender(summaries);
551
560
  console.error(message);
552
561
  console.error("");
553
- console.error(_chunkE7B73LGTjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
562
+ console.error(_chunkZY6FL4O4js.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
554
563
  console.error("");
555
564
  console.error(`Valid categories: ${known.join(", ")}`);
556
565
  return 4;
557
566
  }
558
567
  async function listToolsInCategory(category, emitJson) {
559
- const client = new (0, _chunk6SLEHAXXjs.DeeplineClient)();
568
+ const client = new (0, _chunkDF2X7GJGjs.DeeplineClient)();
560
569
  const { tools: rawTools, categories } = await client.listToolsInCategory(category);
561
570
  const summaries = categories.map((item) => ({
562
571
  ...item,
@@ -592,7 +601,7 @@ async function listToolsInCategory(category, emitJson) {
592
601
  }
593
602
  ]
594
603
  };
595
- _chunkE7B73LGTjs.printCommandEnvelope.call(void 0,
604
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
596
605
  {
597
606
  category,
598
607
  total: rows.length,
@@ -605,7 +614,7 @@ async function listToolsInCategory(category, emitJson) {
605
614
  return 0;
606
615
  }
607
616
  async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
608
- const client = new (0, _chunk6SLEHAXXjs.DeeplineClient)();
617
+ const client = new (0, _chunkDF2X7GJGjs.DeeplineClient)();
609
618
  const items = (await client.listTools({
610
619
  categories: requestedCategories.join(","),
611
620
  compact
@@ -634,7 +643,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
634
643
  ]
635
644
  };
636
645
  const outputItems = compact ? items.map(compactTool) : items;
637
- _chunkE7B73LGTjs.printCommandEnvelope.call(void 0,
646
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
638
647
  {
639
648
  tools: outputItems,
640
649
  count: outputItems.length,
@@ -653,13 +662,13 @@ async function listTools(category, options = {}) {
653
662
  const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
654
663
  const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
655
664
  const compact = options.compact !== false;
656
- const emitJson = options.json === true || _chunkE7B73LGTjs.shouldEmitJson.call(void 0, );
665
+ const emitJson = options.json === true || _chunkZY6FL4O4js.shouldEmitJson.call(void 0, );
657
666
  if (positional && flagCategories.length > 0) {
658
667
  const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
659
668
  if (!flagIsSameSingle) {
660
669
  const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
661
670
  if (emitJson) {
662
- _chunkE7B73LGTjs.printJson.call(void 0, {
671
+ _chunkZY6FL4O4js.printJson.call(void 0, {
663
672
  ok: false,
664
673
  exitCode: 2,
665
674
  code: "TOOL_LIST_CATEGORY_CONFLICT",
@@ -686,7 +695,7 @@ async function grepTools(queryInput, options = {}) {
686
695
  console.error("Usage: deepline tools grep <query> [--json]");
687
696
  return 1;
688
697
  }
689
- const client = new (0, _chunk6SLEHAXXjs.DeeplineClient)();
698
+ const client = new (0, _chunkDF2X7GJGjs.DeeplineClient)();
690
699
  const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
691
700
  const mode = _nullishCoalesce(options.mode, () => ( "all"));
692
701
  const jsonOutput = options.json === true;
@@ -710,7 +719,7 @@ async function grepTools(queryInput, options = {}) {
710
719
  query,
711
720
  mode
712
721
  }) : null;
713
- _chunkE7B73LGTjs.printCommandEnvelope.call(void 0,
722
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
714
723
  {
715
724
  tools: outputTools,
716
725
  count: outputTools.length,
@@ -728,7 +737,7 @@ async function grepTools(queryInput, options = {}) {
728
737
  } : {},
729
738
  commandTemplates: TOOL_COMMAND_TEMPLATES
730
739
  },
731
- { json: options.json || _chunkE7B73LGTjs.shouldEmitJson.call(void 0, ) }
740
+ { json: options.json || _chunkZY6FL4O4js.shouldEmitJson.call(void 0, ) }
732
741
  );
733
742
  return 0;
734
743
  }
@@ -783,8 +792,8 @@ function printPlayAliasToolError(toolId, play) {
783
792
  console.error(playAliasToolErrorMessage(toolId, play));
784
793
  }
785
794
  function playLikeToolExecuteErrorMessage(toolId, tool) {
786
- const playReference = tool ? _chunkUNDLNT3Vjs.playReferenceForTool.call(void 0, tool) : null;
787
- const nextStep = playReference ? `Use: deepline run ${playReference} --input '{...}'` : `Find the maintained workflow with: ${_chunkUNDLNT3Vjs.playSearchCommandForToolId.call(void 0, toolId)}`;
795
+ const playReference = tool ? _chunkECWOIXAVjs.playReferenceForTool.call(void 0, tool) : null;
796
+ const nextStep = playReference ? `Use: deepline run ${playReference} --input '{...}'` : `Find the maintained workflow with: ${_chunkECWOIXAVjs.playSearchCommandForToolId.call(void 0, toolId)}`;
788
797
  return [
789
798
  `${toolId} is a workflow/play entry, not an atomic provider tool.`,
790
799
  nextStep,
@@ -813,7 +822,7 @@ Concepts:
813
822
  Common commands:
814
823
  deepline search "name and company domain -> work email"
815
824
  deepline describe hunter_email_verifier
816
- deepline tools connect hubspot --link
825
+ deepline integrations connect hubspot --link
817
826
  deepline run hunter_email_verifier --input '{"email":"a@b.com"}'
818
827
  deepline billing usage --request-id <request-id>
819
828
 
@@ -824,182 +833,13 @@ Output:
824
833
  activity.
825
834
  `
826
835
  );
827
- tools.command("balance <provider>").description(
828
- "Read a fresh balance using this workspace\u2019s own provider connection (LeadMagic)."
829
- ).option("--json", "Print the balance and observation timestamp as JSON").action(async (provider, options) => {
830
- const balance = await new (0, _chunk6SLEHAXXjs.DeeplineClient)().getIntegrationBalance(
831
- provider
832
- );
833
- if (_chunkE7B73LGTjs.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(balance));
834
- else
835
- console.log(
836
- `${balance.provider}: ${balance.balance.value} ${balance.unit} (observed ${balance.observedAt})`
837
- );
838
- });
839
- tools.command("workspace-connections").description(
840
- "List shared OAuth connections in a workspace enrolled in the pilot."
841
- ).option("--json", "Print connection summaries as JSON").action(async (options) => {
842
- const { connections } = await new (0, _chunk6SLEHAXXjs.DeeplineClient)().listWorkspaceIntegrationConnections();
843
- if (_chunkE7B73LGTjs.shouldEmitJson.call(void 0, options.json))
844
- console.log(JSON.stringify(connections));
845
- else if (connections.length === 0)
846
- console.log("No workspace connections.");
847
- else
848
- for (const row of connections)
849
- console.log(`${row.provider} ${row.status} ${row.label}`);
850
- });
851
- tools.command("hubspot-members").description(
852
- "List personal HubSpot connection status for workspace members."
853
- ).option("--cursor <cursor>", "Read the next roster page").option("--json", "Print the roster page as JSON").action(async (options) => {
854
- const page = await new (0, _chunk6SLEHAXXjs.DeeplineClient)().listPersonalHubSpotMembers(
855
- options.cursor
856
- );
857
- if (_chunkE7B73LGTjs.shouldEmitJson.call(void 0, options.json)) {
858
- console.log(JSON.stringify(page));
859
- return;
860
- }
861
- if (page.members.length === 0)
862
- console.log("No workspace members on this page.");
863
- for (const member of page.members) {
864
- const account = member.account ? ` Portal ${member.account.portalId} User ${member.account.userId}` : "";
865
- console.log(
866
- `${JSON.stringify(member.name || member.email)} ${member.status}${account}`
867
- );
868
- }
869
- if (page.nextCursor)
870
- console.error(`Next page cursor: ${page.nextCursor}`);
871
- });
872
- tools.command("workspace-connection <provider> <action>").description(
873
- "Open shared OAuth setup or disconnect the current connection."
874
- ).option("--json", "Print the result as JSON").action(
875
- async (provider, action, options) => {
876
- if (provider !== "hubspot" && provider !== "google_calendar_availability")
877
- throw new Error("Choose hubspot or google_calendar_availability.");
878
- if (action !== "connect" && action !== "reconnect" && action !== "replace" && action !== "disconnect")
879
- throw new Error("Choose connect, reconnect, replace, or disconnect.");
880
- const client = new (0, _chunk6SLEHAXXjs.DeeplineClient)();
881
- const { connections } = await client.listWorkspaceIntegrationConnections();
882
- const row = connections.find(
883
- (connection) => connection.provider === provider
884
- );
885
- const result = await client.manageWorkspaceIntegrationConnection({
886
- provider,
887
- action,
888
- connectionId: _optionalChain([row, 'optionalAccess', _14 => _14.id]),
889
- authorizationVersion: _optionalChain([row, 'optionalAccess', _15 => _15.authorizationVersion])
890
- });
891
- if (_chunkE7B73LGTjs.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(result));
892
- else console.log(_nullishCoalesce(result.url, () => ( "Workspace connection disconnected.")));
893
- }
894
- );
895
- 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) => {
896
- const page = await new (0, _chunk6SLEHAXXjs.DeeplineClient)().listAvailabilityCalendars(
897
- options.cursor
898
- );
899
- if (_chunkE7B73LGTjs.shouldEmitJson.call(void 0, options.json)) {
900
- console.log(JSON.stringify(page));
901
- return;
902
- }
903
- for (const calendar of page.calendars)
904
- console.log(`${JSON.stringify(calendar.name)} ${calendar.id}`);
905
- if (page.cursor)
906
- console.log(`Next page cursor: ${JSON.stringify(page.cursor)}`);
907
- });
908
- tools.command("connect <provider>").description(
909
- "Get a dashboard connection link or connect a provider with credentials or OAuth."
910
- ).addOption(
911
- new (0, _commander.Option)("--link", "Print a shareable dashboard link").conflicts([
912
- "credentialsFile",
913
- "oauth",
914
- "preset",
915
- "scopes",
916
- "optionalScopes",
917
- "expectedConnectionId"
918
- ])
919
- ).option(
920
- "--credentials-file <path>",
921
- "JSON object of credential field names and string values; keep this file private"
922
- ).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(
923
- "--optional-scopes <scopes>",
924
- "Comma-separated optional OAuth scopes"
925
- ).option("--json", "Print JSON without credential values").action(
926
- async (provider, options) => {
927
- if (options.expectedConnectionId !== void 0 && (!options.expectedConnectionId.trim() || provider !== "google_calendar_availability" || !options.credentialsFile || options.oauth)) {
928
- throw new Error(
929
- "--expected-connection-id requires Calendar availability and a credentials file."
930
- );
931
- }
932
- if (options.link) {
933
- const link = await new (0, _chunk6SLEHAXXjs.DeeplineClient)().getIntegrationConnectLink(
934
- provider
935
- );
936
- if (_chunkE7B73LGTjs.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(link));
937
- else console.log(link.connect_url);
938
- return;
939
- }
940
- if (options.oauth) {
941
- if (options.credentialsFile)
942
- throw new Error("Use --oauth or --credentials-file, not both.");
943
- if (options.preset !== void 0 && (options.scopes !== void 0 || options.optionalScopes !== void 0))
944
- throw new Error("Use --preset or individual scopes, not both.");
945
- const splitScopes = (value) => value.split(",").map((scope) => scope.trim()).filter(Boolean);
946
- const result2 = await new (0, _chunk6SLEHAXXjs.DeeplineClient)().startIntegrationOAuth(
947
- provider,
948
- {
949
- ...options.preset !== void 0 ? { preset: options.preset } : {},
950
- ...options.scopes !== void 0 ? { scopes: splitScopes(options.scopes) } : {},
951
- ...options.optionalScopes !== void 0 ? { optionalScopes: splitScopes(options.optionalScopes) } : {}
952
- }
953
- );
954
- if (!result2.ok || typeof result2.redirect_url !== "string" || !result2.redirect_url)
955
- throw new Error(
956
- "The API did not return an OAuth authorization URL."
957
- );
958
- if (_chunkE7B73LGTjs.shouldEmitJson.call(void 0, options.json))
959
- console.log(
960
- JSON.stringify({ provider, redirect_url: result2.redirect_url })
961
- );
962
- else console.log(result2.redirect_url);
963
- return;
964
- }
965
- if (!options.credentialsFile || options.preset !== void 0 || options.scopes !== void 0 || options.optionalScopes !== void 0)
966
- throw new Error(
967
- "Use --link for a dashboard link, --credentials-file to save credentials, or --oauth to request access."
968
- );
969
- let credentials;
970
- try {
971
- credentials = JSON.parse(
972
- _fs.readFileSync.call(void 0, _path.resolve.call(void 0, options.credentialsFile), "utf8")
973
- );
974
- } catch (e2) {
975
- throw new Error(
976
- "Unable to read --credentials-file as a JSON object."
977
- );
978
- }
979
- if (!credentials || typeof credentials !== "object" || Array.isArray(credentials) || Object.keys(credentials).length === 0 || Object.values(credentials).some((value) => typeof value !== "string")) {
980
- throw new Error(
981
- "--credentials-file must contain a nonempty JSON object of string credential values."
982
- );
983
- }
984
- const result = await new (0, _chunk6SLEHAXXjs.DeeplineClient)().setIntegrationCredentials(
985
- provider,
986
- credentials,
987
- { expectedConnectionId: options.expectedConnectionId }
988
- );
989
- if (!result.ok || result.credential_saved !== true) {
990
- throw new Error(
991
- "The API did not confirm that provider credentials were saved. Inspect the integration before retrying."
992
- );
993
- }
994
- const confirmation = { provider, credential_saved: true };
995
- if (_chunkE7B73LGTjs.shouldEmitJson.call(void 0, options.json))
996
- console.log(JSON.stringify(confirmation));
997
- else
998
- console.log(
999
- `Credentials saved for ${provider} in the active workspace.`
1000
- );
1001
- }
1002
- );
836
+ _chunk22OBDYHPjs.registerIntegrationBalanceCommand.call(void 0, tools, true);
837
+ _chunk22OBDYHPjs.registerWorkspaceConnectionListCommand.call(void 0, tools, "workspace-connections", true);
838
+ _chunk22OBDYHPjs.registerLegacyHubSpotMembersCommand.call(void 0, tools, true);
839
+ _chunk22OBDYHPjs.registerLegacyWorkspaceConnectionCommand.call(void 0, tools, true);
840
+ _chunk22OBDYHPjs.registerLegacyCalendarDelegationCommand.call(void 0, tools, true);
841
+ _chunk22OBDYHPjs.registerLegacyAvailabilityCalendarsCommand.call(void 0, tools, true);
842
+ _chunk22OBDYHPjs.registerIntegrationConnectCommand.call(void 0, tools, false, true);
1003
843
  tools.command("list [category]").description("Browse tool categories, or list every tool in a category.").addHelpText(
1004
844
  "after",
1005
845
  `
@@ -1032,7 +872,7 @@ Examples:
1032
872
  json: Boolean(options.json)
1033
873
  });
1034
874
  });
1035
- _chunkAUFE624Tjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
875
+ _chunkRUFR4PUOjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
1036
876
  tools.command("grep <query>").description(
1037
877
  "Regex grep over tool ids, descriptions, categories, and input fields."
1038
878
  ).addHelpText(
@@ -1067,7 +907,7 @@ Examples:
1067
907
  });
1068
908
  const addToolMetadataCommand = (command) => {
1069
909
  let compatibilityMetadata;
1070
- _chunkDNGACHFXjs.registerCompatibilityCatalog.call(void 0, command, () => ({
910
+ _chunkCOJHT2KFjs.registerCompatibilityCatalog.call(void 0, command, () => ({
1071
911
  toolId: command.args[0],
1072
912
  acceptMetadata: (metadata) => {
1073
913
  compatibilityMetadata = metadata;
@@ -1137,7 +977,7 @@ Examples:
1137
977
  process.exitCode = await narrowView();
1138
978
  return;
1139
979
  }
1140
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-5TFFB2PM.js")));
980
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-RUODIS6M.js")));
1141
981
  process.exitCode = await describeAnything(
1142
982
  toolId,
1143
983
  {
@@ -1152,12 +992,12 @@ Examples:
1152
992
  });
1153
993
  };
1154
994
  addToolMetadataCommand(
1155
- _chunkD7GWEBMFjs.addDescribeOptions.call(void 0,
995
+ _chunkUNMNGRPBjs.addDescribeOptions.call(void 0,
1156
996
  tools.command("describe <toolId>", { hidden: true }).alias("get"),
1157
997
  { json: false }
1158
998
  )
1159
999
  );
1160
- tools.command("execute <toolId>", { hidden: true }).alias("call").description("Execute a tool by id.").addHelpText(
1000
+ tools.command("execute <toolId>", { hidden: true }).alias("call").description("Execute a tool by id.").option("--connection <name>", "Use an exact named workspace connection").addHelpText(
1161
1001
  "after",
1162
1002
  `
1163
1003
  Notes:
@@ -1221,7 +1061,7 @@ Examples:
1221
1061
  options,
1222
1062
  void 0,
1223
1063
  true,
1224
- _chunkQ7WDXLYOjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
1064
+ _chunkPKRW76XGjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
1225
1065
  );
1226
1066
  }
1227
1067
  );
@@ -1229,13 +1069,13 @@ Examples:
1229
1069
  function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1230
1070
  let metadata;
1231
1071
  const startedAt = performance.now();
1232
- const baseUrl = _chunkVHJUH3TBjs.resolveConfig.call(void 0, ).baseUrl;
1233
- _chunkQ7WDXLYOjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
1234
- const result = _chunkDNGACHFXjs.runToolExecuteStage.call(void 0,
1072
+ const baseUrl = _chunkON56ISO6js.resolveConfig.call(void 0, ).baseUrl;
1073
+ _chunkPKRW76XGjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
1074
+ const result = _chunkCOJHT2KFjs.runToolExecuteStage.call(void 0,
1235
1075
  "SDK compatibility",
1236
- () => _chunk3XXXMSSPjs.checkSdkCompatibility.call(void 0, baseUrl, {
1076
+ () => _chunkKE6CSCUFjs.checkSdkCompatibility.call(void 0, baseUrl, {
1237
1077
  command: "tools execute",
1238
- skillsVersion: _chunkVHJUH3TBjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
1078
+ skillsVersion: _chunkON56ISO6js.readSdkSkillsLocalVersion.call(void 0, baseUrl),
1239
1079
  persistCache: false,
1240
1080
  timeoutMs: TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS,
1241
1081
  catalog: {
@@ -1249,7 +1089,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1249
1089
  })
1250
1090
  ).then(
1251
1091
  (compatibility) => {
1252
- _chunkQ7WDXLYOjs.recordCliTrace.call(void 0, {
1092
+ _chunkPKRW76XGjs.recordCliTrace.call(void 0, {
1253
1093
  phase: "cli.tool_execute_compatibility_ready",
1254
1094
  ms: performance.now() - startedAt,
1255
1095
  ok: compatibility.error === null,
@@ -1258,7 +1098,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1258
1098
  return compatibility;
1259
1099
  },
1260
1100
  (error) => {
1261
- _chunkQ7WDXLYOjs.recordCliTrace.call(void 0, {
1101
+ _chunkPKRW76XGjs.recordCliTrace.call(void 0, {
1262
1102
  phase: "cli.tool_execute_compatibility_ready",
1263
1103
  ms: performance.now() - startedAt,
1264
1104
  ok: false
@@ -1273,7 +1113,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1273
1113
  console.error("Usage: deepline tools describe <toolId> [--json]");
1274
1114
  return 1;
1275
1115
  }
1276
- const client = new (0, _chunk6SLEHAXXjs.DeeplineClient)();
1116
+ const client = new (0, _chunkDF2X7GJGjs.DeeplineClient)();
1277
1117
  let tool;
1278
1118
  try {
1279
1119
  tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
@@ -1327,12 +1167,12 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1327
1167
  const lines = toolPricingOnlyLines(tool, toolId);
1328
1168
  if (inferenceQuote)
1329
1169
  lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
1330
- _chunkE7B73LGTjs.printCommandEnvelope.call(void 0,
1170
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
1331
1171
  {
1332
1172
  toolId: String(tool.toolId || toolId),
1333
- cost: _chunkUNDLNT3Vjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
1173
+ cost: _chunkECWOIXAVjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
1334
1174
  ...modelDescription ? { modelOptions: modelDescription } : {},
1335
- ..._chunkUNDLNT3Vjs.isMonitorTypeTool.call(void 0, tool) ? { pricing: _chunkUNDLNT3Vjs.recordField.call(void 0, tool, "pricing") } : {},
1175
+ ..._chunkECWOIXAVjs.isMonitorTypeTool.call(void 0, tool) ? { pricing: _chunkECWOIXAVjs.recordField.call(void 0, tool, "pricing") } : {},
1336
1176
  ...inferenceQuote ? { inferenceQuote } : {}
1337
1177
  },
1338
1178
  {
@@ -1343,14 +1183,14 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1343
1183
  );
1344
1184
  return 0;
1345
1185
  }
1346
- if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !_chunkUNDLNT3Vjs.isMonitorTypeTool.call(void 0, tool) && !_chunkUNDLNT3Vjs.isPlayLikeTool.call(void 0, tool) && (options.json || options.contractJson)) {
1347
- const contract = _chunkUNDLNT3Vjs.toolContractJsonForDescribe.call(void 0,
1186
+ if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !_chunkECWOIXAVjs.isMonitorTypeTool.call(void 0, tool) && !_chunkECWOIXAVjs.isPlayLikeTool.call(void 0, tool) && (options.json || options.contractJson)) {
1187
+ const contract = _chunkECWOIXAVjs.toolContractJsonForDescribe.call(void 0,
1348
1188
  tool,
1349
1189
  toolId,
1350
1190
  void 0,
1351
1191
  seedToolListScript
1352
1192
  );
1353
- _chunkE7B73LGTjs.printCompactJson.call(void 0, {
1193
+ _chunkZY6FL4O4js.printCompactJson.call(void 0, {
1354
1194
  toolId: contract.toolId,
1355
1195
  ...options.schemaOnly ? {
1356
1196
  inputSchema: contract.inputSchema,
@@ -1373,8 +1213,8 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1373
1213
  return 0;
1374
1214
  }
1375
1215
  if (options.contractJson) {
1376
- _chunkE7B73LGTjs.printCompactJson.call(void 0, {
1377
- ..._chunkUNDLNT3Vjs.toolContractJsonForDescribe.call(void 0,
1216
+ _chunkZY6FL4O4js.printCompactJson.call(void 0, {
1217
+ ..._chunkECWOIXAVjs.toolContractJsonForDescribe.call(void 0,
1378
1218
  tool,
1379
1219
  toolId,
1380
1220
  void 0,
@@ -1387,8 +1227,8 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1387
1227
  }
1388
1228
  const emitJson = options.json === true;
1389
1229
  if (emitJson) {
1390
- _chunkE7B73LGTjs.printCompactJson.call(void 0, {
1391
- ..._chunkUNDLNT3Vjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
1230
+ _chunkZY6FL4O4js.printCompactJson.call(void 0, {
1231
+ ..._chunkECWOIXAVjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
1392
1232
  ...modelDescription ? { modelOptions: modelDescription } : {},
1393
1233
  ...inferenceQuote ? { inferenceQuote } : {}
1394
1234
  });
@@ -1413,7 +1253,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1413
1253
  printCompactToolContract(tool, toolId);
1414
1254
  if (modelDescription) {
1415
1255
  process.stdout.write(`
1416
- ${_chunkUNDLNT3Vjs.formatModelDescription.call(void 0, modelDescription)}`);
1256
+ ${_chunkECWOIXAVjs.formatModelDescription.call(void 0, modelDescription)}`);
1417
1257
  }
1418
1258
  if (inferenceQuote) printInferenceQuoteSummary(inferenceQuote);
1419
1259
  return 0;
@@ -1421,7 +1261,7 @@ ${_chunkUNDLNT3Vjs.formatModelDescription.call(void 0, modelDescription)}`);
1421
1261
  printCompactToolContract(tool, toolId);
1422
1262
  if (modelDescription) {
1423
1263
  process.stdout.write(`
1424
- ${_chunkUNDLNT3Vjs.formatModelDescription.call(void 0, modelDescription)}`);
1264
+ ${_chunkECWOIXAVjs.formatModelDescription.call(void 0, modelDescription)}`);
1425
1265
  }
1426
1266
  if (inferenceQuote) printInferenceQuoteSummary(inferenceQuote);
1427
1267
  return 0;
@@ -1438,10 +1278,10 @@ function printInferenceQuoteSummary(quote) {
1438
1278
  for (const line of inferenceQuoteSummaryLines(quote)) console.log(line);
1439
1279
  }
1440
1280
  function printMonitorTypeFilters(tool) {
1441
- const schema = _chunkUNDLNT3Vjs.recordField.call(void 0, tool, "payload_schema", "payloadSchema");
1442
- const properties = _chunkUNDLNT3Vjs.recordField.call(void 0, schema, "properties");
1281
+ const schema = _chunkECWOIXAVjs.recordField.call(void 0, tool, "payload_schema", "payloadSchema");
1282
+ const properties = _chunkECWOIXAVjs.recordField.call(void 0, schema, "properties");
1443
1283
  const required = new Set(
1444
- _chunkUNDLNT3Vjs.arrayField.call(void 0, schema, "required").filter(
1284
+ _chunkECWOIXAVjs.arrayField.call(void 0, schema, "required").filter(
1445
1285
  (v) => typeof v === "string"
1446
1286
  )
1447
1287
  );
@@ -1452,24 +1292,24 @@ function printMonitorTypeFilters(tool) {
1452
1292
  }
1453
1293
  console.log("Deploy filters (set in the monitor payload):");
1454
1294
  for (const name of names) {
1455
- const field = _chunkUNDLNT3Vjs.isRecord.call(void 0, properties[name]) ? properties[name] : {};
1295
+ const field = _chunkECWOIXAVjs.isRecord.call(void 0, properties[name]) ? properties[name] : {};
1456
1296
  const star = required.has(name) ? "*" : "";
1457
- const enumVals = _chunkUNDLNT3Vjs.arrayField.call(void 0, field, "enum").filter(
1297
+ const enumVals = _chunkECWOIXAVjs.arrayField.call(void 0, field, "enum").filter(
1458
1298
  (v) => typeof v === "string"
1459
1299
  );
1460
- const type = enumVals.length ? `one of [${enumVals.join(", ")}]` : _chunkUNDLNT3Vjs.stringField.call(void 0, field, "type") || "string";
1461
- const desc = _chunkUNDLNT3Vjs.stringField.call(void 0, field, "description");
1300
+ const type = enumVals.length ? `one of [${enumVals.join(", ")}]` : _chunkECWOIXAVjs.stringField.call(void 0, field, "type") || "string";
1301
+ const desc = _chunkECWOIXAVjs.stringField.call(void 0, field, "description");
1462
1302
  console.log(`- ${name}${star}: ${type}${desc ? ` - ${desc}` : ""}`);
1463
1303
  }
1464
1304
  }
1465
1305
  function printMonitorTypeFilterExamples(tool) {
1466
- const documentation = _chunkUNDLNT3Vjs.recordField.call(void 0, tool, "documentation");
1467
- const fields = _chunkUNDLNT3Vjs.recordField.call(void 0, documentation, "fields");
1306
+ const documentation = _chunkECWOIXAVjs.recordField.call(void 0, tool, "documentation");
1307
+ const fields = _chunkECWOIXAVjs.recordField.call(void 0, documentation, "fields");
1468
1308
  const examples = Object.entries(fields).flatMap(([name, rawField]) => {
1469
- const grammar = _chunkUNDLNT3Vjs.recordField.call(void 0, _chunkUNDLNT3Vjs.isRecord.call(void 0, rawField) ? rawField : {}, "grammar");
1470
- const example = _chunkUNDLNT3Vjs.stringField.call(void 0, grammar, "example");
1309
+ const grammar = _chunkECWOIXAVjs.recordField.call(void 0, _chunkECWOIXAVjs.isRecord.call(void 0, rawField) ? rawField : {}, "grammar");
1310
+ const example = _chunkECWOIXAVjs.stringField.call(void 0, grammar, "example");
1471
1311
  const values = [
1472
- ..._chunkUNDLNT3Vjs.arrayField.call(void 0, grammar, "examples").filter(
1312
+ ..._chunkECWOIXAVjs.arrayField.call(void 0, grammar, "examples").filter(
1473
1313
  (value) => typeof value === "string" && Boolean(value)
1474
1314
  ),
1475
1315
  ...example ? [example] : []
@@ -1484,21 +1324,21 @@ function printMonitorTypeFilterExamples(tool) {
1484
1324
  }
1485
1325
  }
1486
1326
  function printMonitorTypeStreams(tool) {
1487
- const streams = _chunkUNDLNT3Vjs.arrayField.call(void 0, tool, "streams", "output_streams").filter(
1488
- _chunkUNDLNT3Vjs.isRecord
1327
+ const streams = _chunkECWOIXAVjs.arrayField.call(void 0, tool, "streams", "output_streams").filter(
1328
+ _chunkECWOIXAVjs.isRecord
1489
1329
  );
1490
1330
  if (!streams.length) return;
1491
1331
  console.log("");
1492
1332
  console.log("Filter columns (a play's sqlListeners.where, per stream):");
1493
1333
  for (const stream of streams) {
1494
- const name = _chunkUNDLNT3Vjs.stringField.call(void 0, stream, "stream");
1495
- const cols = _chunkUNDLNT3Vjs.arrayField.call(void 0, stream, "columns").filter(_chunkUNDLNT3Vjs.isRecord).map((col) => _chunkUNDLNT3Vjs.stringField.call(void 0, col, "name")).filter(Boolean);
1334
+ const name = _chunkECWOIXAVjs.stringField.call(void 0, stream, "stream");
1335
+ const cols = _chunkECWOIXAVjs.arrayField.call(void 0, stream, "columns").filter(_chunkECWOIXAVjs.isRecord).map((col) => _chunkECWOIXAVjs.stringField.call(void 0, col, "name")).filter(Boolean);
1496
1336
  console.log(`- ${name}: ${cols.join(", ")}`);
1497
1337
  }
1498
1338
  }
1499
1339
  function monitorTypePricingLines(tool) {
1500
- const pricing = _chunkUNDLNT3Vjs.recordField.call(void 0, tool, "pricing");
1501
- const byType = _chunkUNDLNT3Vjs.recordField.call(void 0,
1340
+ const pricing = _chunkECWOIXAVjs.recordField.call(void 0, tool, "pricing");
1341
+ const byType = _chunkECWOIXAVjs.recordField.call(void 0,
1502
1342
  pricing,
1503
1343
  "pricing_by_radar_type",
1504
1344
  "pricingByRadarType"
@@ -1509,9 +1349,9 @@ function monitorTypePricingLines(tool) {
1509
1349
  }
1510
1350
  const lines = ["Pricing (Deepline credits per accepted event):"];
1511
1351
  for (const key of keys) {
1512
- const entry = _chunkUNDLNT3Vjs.isRecord.call(void 0, byType[key]) ? byType[key] : {};
1352
+ const entry = _chunkECWOIXAVjs.isRecord.call(void 0, byType[key]) ? byType[key] : {};
1513
1353
  const credits = numberField(entry, "deepline_credits", "deeplineCredits");
1514
- const display = _chunkUNDLNT3Vjs.stringField.call(void 0, entry, "display");
1354
+ const display = _chunkECWOIXAVjs.stringField.call(void 0, entry, "display");
1515
1355
  const shown = display || (credits !== null ? `${formatDecimal(credits)} credits/event` : "not listed");
1516
1356
  lines.push(`- ${key}: ${shown}`);
1517
1357
  }
@@ -1521,20 +1361,20 @@ function printMonitorTypePricing(tool) {
1521
1361
  for (const line of monitorTypePricingLines(tool)) console.log(line);
1522
1362
  }
1523
1363
  function printMonitorTypeDeploy(tool) {
1524
- const deploy = _chunkUNDLNT3Vjs.recordField.call(void 0, tool, "deploy");
1525
- const toolId = _chunkUNDLNT3Vjs.stringField.call(void 0, tool, "toolId");
1526
- const example = _chunkUNDLNT3Vjs.stringField.call(void 0, deploy, "example") || `deepline monitors deploy '{"key":"...","tool":"${toolId}","payload":{...}}'`;
1364
+ const deploy = _chunkECWOIXAVjs.recordField.call(void 0, tool, "deploy");
1365
+ const toolId = _chunkECWOIXAVjs.stringField.call(void 0, tool, "toolId");
1366
+ const example = _chunkECWOIXAVjs.stringField.call(void 0, deploy, "example") || `deepline monitors deploy '{"key":"...","tool":"${toolId}","payload":{...}}'`;
1527
1367
  console.log("Deploy (a monitor type is deployed, not executed):");
1528
1368
  console.log(` ${example}`);
1529
1369
  }
1530
1370
  function printMonitorTypeContract(tool, requestedToolId) {
1531
- const toolId = _chunkUNDLNT3Vjs.stringField.call(void 0, tool, "toolId") || requestedToolId;
1371
+ const toolId = _chunkECWOIXAVjs.stringField.call(void 0, tool, "toolId") || requestedToolId;
1532
1372
  console.log(toolId);
1533
- const displayName = _chunkUNDLNT3Vjs.stringField.call(void 0, tool, "displayName");
1373
+ const displayName = _chunkECWOIXAVjs.stringField.call(void 0, tool, "displayName");
1534
1374
  if (displayName) console.log(`Best for: ${displayName}`);
1535
- const description = _chunkUNDLNT3Vjs.stringField.call(void 0, tool, "description");
1375
+ const description = _chunkECWOIXAVjs.stringField.call(void 0, tool, "description");
1536
1376
  if (description) console.log(`Description: ${description}`);
1537
- const categories = _chunkUNDLNT3Vjs.arrayField.call(void 0, tool, "categories").filter(
1377
+ const categories = _chunkECWOIXAVjs.arrayField.call(void 0, tool, "categories").filter(
1538
1378
  (v) => typeof v === "string"
1539
1379
  );
1540
1380
  if (categories.length) console.log(`Tags: ${categories.join(", ")}`);
@@ -1554,31 +1394,31 @@ function printMonitorTypeContract(tool, requestedToolId) {
1554
1394
  console.log(`More: deepline describe ${toolId}`);
1555
1395
  }
1556
1396
  function toolGuidanceLines(guidance) {
1557
- const record = _chunkUNDLNT3Vjs.isRecord.call(void 0, guidance) ? guidance : {};
1558
- const toolGuidance = _chunkUNDLNT3Vjs.stringField.call(void 0, record, "tool");
1559
- const providerGuidance = _chunkUNDLNT3Vjs.stringField.call(void 0, record, "provider");
1397
+ const record = _chunkECWOIXAVjs.isRecord.call(void 0, guidance) ? guidance : {};
1398
+ const toolGuidance = _chunkECWOIXAVjs.stringField.call(void 0, record, "tool");
1399
+ const providerGuidance = _chunkECWOIXAVjs.stringField.call(void 0, record, "provider");
1560
1400
  return [
1561
1401
  ...toolGuidance ? [`- This tool: ${toolGuidance}`] : [],
1562
1402
  ...providerGuidance ? [`- Provider: ${providerGuidance}`] : []
1563
1403
  ];
1564
1404
  }
1565
1405
  function printCompactToolContract(tool, requestedToolId) {
1566
- if (_chunkUNDLNT3Vjs.isMonitorTypeTool.call(void 0, tool)) {
1406
+ if (_chunkECWOIXAVjs.isMonitorTypeTool.call(void 0, tool)) {
1567
1407
  printMonitorTypeContract(tool, requestedToolId);
1568
1408
  return;
1569
1409
  }
1570
- const contract = _chunkUNDLNT3Vjs.toolContractJsonForDescribe.call(void 0,
1410
+ const contract = _chunkECWOIXAVjs.toolContractJsonForDescribe.call(void 0,
1571
1411
  tool,
1572
1412
  requestedToolId,
1573
1413
  void 0,
1574
1414
  seedToolListScript
1575
1415
  );
1576
- const cost = _chunkUNDLNT3Vjs.isRecord.call(void 0, contract.cost) ? contract.cost : {};
1577
- const getters = _chunkUNDLNT3Vjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1416
+ const cost = _chunkECWOIXAVjs.isRecord.call(void 0, contract.cost) ? contract.cost : {};
1417
+ const getters = _chunkECWOIXAVjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1578
1418
  const listGetters = Array.isArray(getters.extractedLists) ? getters.extractedLists : [];
1579
1419
  const valueGetters = Array.isArray(getters.extractedValues) ? getters.extractedValues : [];
1580
- const inputFields = _chunkUNDLNT3Vjs.recursiveToolInputFieldsForDisplay.call(void 0,
1581
- _chunkUNDLNT3Vjs.recordField.call(void 0, contract, "inputSchema")
1420
+ const inputFields = _chunkECWOIXAVjs.recursiveToolInputFieldsForDisplay.call(void 0,
1421
+ _chunkECWOIXAVjs.recordField.call(void 0, contract, "inputSchema")
1582
1422
  );
1583
1423
  console.log(String(contract.toolId));
1584
1424
  if (contract.displayName) console.log(`Best for: ${contract.displayName}`);
@@ -1595,9 +1435,9 @@ function printCompactToolContract(tool, requestedToolId) {
1595
1435
  printToolOutputArrayShape(contract);
1596
1436
  printToolExecutionHints(contract);
1597
1437
  if (contract.deprecated === true) {
1598
- const deprecation = _chunkUNDLNT3Vjs.isRecord.call(void 0, contract.deprecation) ? contract.deprecation : {};
1599
- const message = _chunkUNDLNT3Vjs.stringField.call(void 0, deprecation, "message");
1600
- const replacementToolId = _chunkUNDLNT3Vjs.stringField.call(void 0,
1438
+ const deprecation = _chunkECWOIXAVjs.isRecord.call(void 0, contract.deprecation) ? contract.deprecation : {};
1439
+ const message = _chunkECWOIXAVjs.stringField.call(void 0, deprecation, "message");
1440
+ const replacementToolId = _chunkECWOIXAVjs.stringField.call(void 0,
1601
1441
  deprecation,
1602
1442
  "replacementToolId",
1603
1443
  "replacement_tool_id"
@@ -1620,12 +1460,12 @@ function printCompactToolContract(tool, requestedToolId) {
1620
1460
  console.log("");
1621
1461
  console.log("Inputs:");
1622
1462
  for (const field of inputFields) {
1623
- if (!_chunkUNDLNT3Vjs.isRecord.call(void 0, field)) continue;
1624
- const name = _chunkUNDLNT3Vjs.stringField.call(void 0, field, "name");
1463
+ if (!_chunkECWOIXAVjs.isRecord.call(void 0, field)) continue;
1464
+ const name = _chunkECWOIXAVjs.stringField.call(void 0, field, "name");
1625
1465
  if (!name) continue;
1626
1466
  const required = field.required ? "*" : "";
1627
- const type = _chunkUNDLNT3Vjs.stringField.call(void 0, field, "type") || "unknown";
1628
- const description = _chunkUNDLNT3Vjs.stringField.call(void 0, field, "description");
1467
+ const type = _chunkECWOIXAVjs.stringField.call(void 0, field, "type") || "unknown";
1468
+ const description = _chunkECWOIXAVjs.stringField.call(void 0, field, "description");
1629
1469
  const enumValues = Array.isArray(field.enum) ? field.enum : [];
1630
1470
  const enumSuffix = enumValues.length ? ` enum=${enumValues.map(String).join("|")}` : "";
1631
1471
  const itemBoundsSuffix = arrayItemBoundsSuffix(field);
@@ -1640,8 +1480,8 @@ function printCompactToolContract(tool, requestedToolId) {
1640
1480
  }
1641
1481
  console.log("");
1642
1482
  printToolExamplesOnly(tool, requestedToolId);
1643
- const starterScript = _chunkUNDLNT3Vjs.isRecord.call(void 0, contract.starterScript) ? contract.starterScript : {};
1644
- const starterPath = _chunkUNDLNT3Vjs.stringField.call(void 0, starterScript, "path");
1483
+ const starterScript = _chunkECWOIXAVjs.isRecord.call(void 0, contract.starterScript) ? contract.starterScript : {};
1484
+ const starterPath = _chunkECWOIXAVjs.stringField.call(void 0, starterScript, "path");
1645
1485
  if (starterPath) {
1646
1486
  console.log("");
1647
1487
  console.log(`Starter script: ${starterPath}`);
@@ -1652,16 +1492,16 @@ function printCompactToolContract(tool, requestedToolId) {
1652
1492
  console.log("Getters:");
1653
1493
  if (listGetters.length) console.log(listGetterHeading());
1654
1494
  for (const entry of listGetters) {
1655
- if (_chunkUNDLNT3Vjs.isRecord.call(void 0, entry))
1495
+ if (_chunkECWOIXAVjs.isRecord.call(void 0, entry))
1656
1496
  console.log(
1657
- `- ${_chunkUNDLNT3Vjs.stringField.call(void 0, entry, "name")}: ${_chunkUNDLNT3Vjs.playResultExpression.call(void 0, entry)}`
1497
+ `- ${_chunkECWOIXAVjs.stringField.call(void 0, entry, "name")}: ${_chunkECWOIXAVjs.playResultExpression.call(void 0, entry)}`
1658
1498
  );
1659
1499
  }
1660
1500
  if (valueGetters.length) console.log("Values:");
1661
1501
  for (const entry of valueGetters) {
1662
- if (_chunkUNDLNT3Vjs.isRecord.call(void 0, entry))
1502
+ if (_chunkECWOIXAVjs.isRecord.call(void 0, entry))
1663
1503
  console.log(
1664
- `- ${_chunkUNDLNT3Vjs.stringField.call(void 0, entry, "name")}: ${_chunkUNDLNT3Vjs.playResultExpression.call(void 0, entry)}`
1504
+ `- ${_chunkECWOIXAVjs.stringField.call(void 0, entry, "name")}: ${_chunkECWOIXAVjs.playResultExpression.call(void 0, entry)}`
1665
1505
  );
1666
1506
  }
1667
1507
  }
@@ -1672,22 +1512,22 @@ function printCompactToolContract(tool, requestedToolId) {
1672
1512
  console.log(`More: deepline describe ${contract.toolId}`);
1673
1513
  }
1674
1514
  function toolPricingOnlyLines(tool, requestedToolId, options = {}) {
1675
- if (_chunkUNDLNT3Vjs.isMonitorTypeTool.call(void 0, tool)) {
1515
+ if (_chunkECWOIXAVjs.isMonitorTypeTool.call(void 0, tool)) {
1676
1516
  return monitorTypePricingLines(tool);
1677
1517
  }
1678
1518
  const toolId = String(tool.toolId || requestedToolId);
1679
- const cost = _chunkUNDLNT3Vjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1680
- const pricingModel = _chunkUNDLNT3Vjs.stringField.call(void 0, cost, "pricingModel") || "unknown";
1681
- const billing = _chunkUNDLNT3Vjs.stringField.call(void 0, cost, "billingSourceLabel") || _chunkUNDLNT3Vjs.stringField.call(void 0, cost, "billingSource") || _chunkUNDLNT3Vjs.stringField.call(void 0, cost, "billingMode") || "unknown";
1682
- const explicitUnit = _chunkUNDLNT3Vjs.stringField.call(void 0, cost, "unit");
1519
+ const cost = _chunkECWOIXAVjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1520
+ const pricingModel = _chunkECWOIXAVjs.stringField.call(void 0, cost, "pricingModel") || "unknown";
1521
+ const billing = _chunkECWOIXAVjs.stringField.call(void 0, cost, "billingSourceLabel") || _chunkECWOIXAVjs.stringField.call(void 0, cost, "billingSource") || _chunkECWOIXAVjs.stringField.call(void 0, cost, "billingMode") || "unknown";
1522
+ const explicitUnit = _chunkECWOIXAVjs.stringField.call(void 0, cost, "unit");
1683
1523
  const unit = explicitUnit || (pricingModel === "per_page" ? "page" : pricingModel === "per_result" ? "result" : pricingModel === "fixed" ? "call" : pricingModel.replace(/^per_/, "") || "unit");
1684
1524
  const credits = numberField(cost, "deeplineCreditsPerPricingUnit");
1685
1525
  const usd = numberField(cost, "deeplineUsdPerPricingUnit");
1686
- const displayText = _chunkUNDLNT3Vjs.stringField.call(void 0, cost, "displayText");
1687
- const summary = _chunkUNDLNT3Vjs.stringField.call(void 0, cost, "summary");
1526
+ const displayText = _chunkECWOIXAVjs.stringField.call(void 0, cost, "displayText");
1527
+ const summary = _chunkECWOIXAVjs.stringField.call(void 0, cost, "summary");
1688
1528
  const price = displayText || summary || (credits !== null ? `${formatDecimal(credits)} Deepline credits${usd !== null ? ` / ${formatUsd(usd)}` : ""} per ${unit}` : "pricing unavailable");
1689
1529
  const reference = cost.observedReference;
1690
- const observedMax = _chunkUNDLNT3Vjs.observedMaxText.call(void 0, cost);
1530
+ const observedMax = _chunkECWOIXAVjs.observedMaxText.call(void 0, cost);
1691
1531
  return [
1692
1532
  `${_nullishCoalesce(options.heading, () => ( `Pricing: ${toolId}`))}: ${price}`,
1693
1533
  ...observedMax ? [` ${observedMax}`] : [],
@@ -1704,19 +1544,19 @@ function printToolPricingOnly(tool, requestedToolId, options = {}) {
1704
1544
  console.log(line);
1705
1545
  }
1706
1546
  function printToolSchemaOnly(tool, requestedToolId) {
1707
- if (_chunkUNDLNT3Vjs.isMonitorTypeTool.call(void 0, tool)) {
1547
+ if (_chunkECWOIXAVjs.isMonitorTypeTool.call(void 0, tool)) {
1708
1548
  printMonitorTypeFilters(tool);
1709
1549
  printMonitorTypeStreams(tool);
1710
1550
  return;
1711
1551
  }
1712
- const contract = _chunkUNDLNT3Vjs.toolContractJsonForDescribe.call(void 0,
1552
+ const contract = _chunkECWOIXAVjs.toolContractJsonForDescribe.call(void 0,
1713
1553
  tool,
1714
1554
  requestedToolId,
1715
1555
  void 0,
1716
1556
  seedToolListScript
1717
1557
  );
1718
- const inputFields = _chunkUNDLNT3Vjs.recursiveToolInputFieldsForDisplay.call(void 0,
1719
- _chunkUNDLNT3Vjs.recordField.call(void 0, contract, "inputSchema")
1558
+ const inputFields = _chunkECWOIXAVjs.recursiveToolInputFieldsForDisplay.call(void 0,
1559
+ _chunkECWOIXAVjs.recordField.call(void 0, contract, "inputSchema")
1720
1560
  );
1721
1561
  console.log(`Schema: ${contract.toolId}`);
1722
1562
  if (!inputFields.length) {
@@ -1743,27 +1583,27 @@ function printToolSchemaOnly(tool, requestedToolId) {
1743
1583
  }
1744
1584
  printToolOutputArrayShape(contract);
1745
1585
  const declaredSchema = declaredToolJsonSchema(
1746
- _chunkUNDLNT3Vjs.recordField.call(void 0, contract, "inputSchema")
1586
+ _chunkECWOIXAVjs.recordField.call(void 0, contract, "inputSchema")
1747
1587
  );
1748
1588
  if (declaredSchema) {
1749
1589
  console.log("Declared input JSON Schema:");
1750
1590
  console.log(JSON.stringify(declaredSchema, null, 2));
1751
1591
  }
1752
- if (_chunkUNDLNT3Vjs.isRecord.call(void 0, contract.responseSchema)) {
1592
+ if (_chunkECWOIXAVjs.isRecord.call(void 0, contract.responseSchema)) {
1753
1593
  console.log("Deepline execution response JSON Schema:");
1754
1594
  console.log(JSON.stringify(contract.responseSchema, null, 2));
1755
1595
  }
1756
1596
  }
1757
1597
  function printToolExamplesOnly(tool, requestedToolId) {
1758
- if (_chunkUNDLNT3Vjs.isMonitorTypeTool.call(void 0, tool)) {
1598
+ if (_chunkECWOIXAVjs.isMonitorTypeTool.call(void 0, tool)) {
1759
1599
  printMonitorTypeDeploy(tool);
1760
1600
  return;
1761
1601
  }
1762
- if (_chunkUNDLNT3Vjs.isPlayLikeTool.call(void 0, tool)) {
1602
+ if (_chunkECWOIXAVjs.isPlayLikeTool.call(void 0, tool)) {
1763
1603
  printPlayLikeToolUsage(tool, requestedToolId);
1764
1604
  return;
1765
1605
  }
1766
- const contract = _chunkUNDLNT3Vjs.toolContractJsonForDescribe.call(void 0,
1606
+ const contract = _chunkECWOIXAVjs.toolContractJsonForDescribe.call(void 0,
1767
1607
  tool,
1768
1608
  requestedToolId,
1769
1609
  void 0,
@@ -1771,9 +1611,9 @@ function printToolExamplesOnly(tool, requestedToolId) {
1771
1611
  );
1772
1612
  const toolId = String(contract.toolId);
1773
1613
  const inputFields = Array.isArray(contract.inputFields) ? contract.inputFields : [];
1774
- const examples = _chunkUNDLNT3Vjs.arrayField.call(void 0, tool, "examples").filter(_chunkUNDLNT3Vjs.isRecord);
1614
+ const examples = _chunkECWOIXAVjs.arrayField.call(void 0, tool, "examples").filter(_chunkECWOIXAVjs.isRecord);
1775
1615
  const firstExample = examples[0];
1776
- const sampleInput = firstExample && _chunkUNDLNT3Vjs.isRecord.call(void 0, firstExample.input) ? firstExample.input : _nullishCoalesce(samplePayload(_chunkUNDLNT3Vjs.recordField.call(void 0, tool, "samples"), "request"), () => ( _chunkUNDLNT3Vjs.samplePayloadForInputFields.call(void 0, inputFields)));
1616
+ const sampleInput = firstExample && _chunkECWOIXAVjs.isRecord.call(void 0, firstExample.input) ? firstExample.input : _nullishCoalesce(samplePayload(_chunkECWOIXAVjs.recordField.call(void 0, tool, "samples"), "request"), () => ( _chunkECWOIXAVjs.samplePayloadForInputFields.call(void 0, inputFields)));
1777
1617
  console.log("Example input payload:");
1778
1618
  console.log(JSON.stringify(sampleInput, null, 2));
1779
1619
  console.log(`Use in a play:`);
@@ -1787,32 +1627,32 @@ function printToolExamplesOnly(tool, requestedToolId) {
1787
1627
  );
1788
1628
  console.log("});");
1789
1629
  console.log("const response = result.toolResponse.rawV2;");
1790
- const getters = _chunkUNDLNT3Vjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1630
+ const getters = _chunkECWOIXAVjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1791
1631
  const valueGetters = Array.isArray(getters.extractedValues) ? getters.extractedValues : [];
1792
1632
  const listGetters = Array.isArray(getters.extractedLists) ? getters.extractedLists : [];
1793
- const firstGetter = valueGetters.find(_chunkUNDLNT3Vjs.isRecord);
1633
+ const firstGetter = valueGetters.find(_chunkECWOIXAVjs.isRecord);
1794
1634
  if (firstGetter) {
1795
- const name = _chunkUNDLNT3Vjs.stringField.call(void 0, firstGetter, "name") || "value";
1796
- const expression = _chunkUNDLNT3Vjs.stringField.call(void 0, firstGetter, "expression");
1635
+ const name = _chunkECWOIXAVjs.stringField.call(void 0, firstGetter, "name") || "value";
1636
+ const expression = _chunkECWOIXAVjs.stringField.call(void 0, firstGetter, "expression");
1797
1637
  if (expression)
1798
1638
  console.log(
1799
1639
  `const ${safeIdentifier(name)} = ${expression.replace(/^toolExecutionResult\./, "result.")};`
1800
1640
  );
1801
1641
  }
1802
1642
  const arrayNames = new Set(
1803
- _chunkUNDLNT3Vjs.recursiveToolInputFieldsForDisplay.call(void 0,
1804
- _chunkUNDLNT3Vjs.recordField.call(void 0, tool, "outputSchema", "output_schema")
1643
+ _chunkECWOIXAVjs.recursiveToolInputFieldsForDisplay.call(void 0,
1644
+ _chunkECWOIXAVjs.recordField.call(void 0, tool, "outputSchema", "output_schema")
1805
1645
  ).filter((field) => String(field.type).split("|").includes("array")).map((field) => String(field.name).split(".").at(-1))
1806
1646
  );
1807
1647
  const firstList = _nullishCoalesce(listGetters.find(
1808
- (entry) => _chunkUNDLNT3Vjs.isRecord.call(void 0, entry) && arrayNames.has(_chunkUNDLNT3Vjs.stringField.call(void 0, entry, "name"))
1809
- ), () => ( listGetters.find(_chunkUNDLNT3Vjs.isRecord)));
1810
- if (_chunkUNDLNT3Vjs.isRecord.call(void 0, firstList)) {
1811
- const name = safeIdentifier(_chunkUNDLNT3Vjs.stringField.call(void 0, firstList, "name") || "list");
1648
+ (entry) => _chunkECWOIXAVjs.isRecord.call(void 0, entry) && arrayNames.has(_chunkECWOIXAVjs.stringField.call(void 0, entry, "name"))
1649
+ ), () => ( listGetters.find(_chunkECWOIXAVjs.isRecord)));
1650
+ if (_chunkECWOIXAVjs.isRecord.call(void 0, firstList)) {
1651
+ const name = safeIdentifier(_chunkECWOIXAVjs.stringField.call(void 0, firstList, "name") || "list");
1812
1652
  if (_chunkJ33TSWO5js.playToolListGetterMode.call(void 0, ) === "array") {
1813
- console.log(`const ${name}_rows = ${_chunkUNDLNT3Vjs.playResultExpression.call(void 0, firstList)};`);
1653
+ console.log(`const ${name}_rows = ${_chunkECWOIXAVjs.playResultExpression.call(void 0, firstList)};`);
1814
1654
  } else {
1815
- console.log(`const ${name}_ds = ${_chunkUNDLNT3Vjs.playResultExpression.call(void 0, firstList)};`);
1655
+ console.log(`const ${name}_ds = ${_chunkECWOIXAVjs.playResultExpression.call(void 0, firstList)};`);
1816
1656
  console.log(
1817
1657
  "// Complete small list from this response; throws above the memory cap."
1818
1658
  );
@@ -1822,7 +1662,7 @@ function printToolExamplesOnly(tool, requestedToolId) {
1822
1662
  console.log("```");
1823
1663
  if (firstList) printListGetterConsumption();
1824
1664
  for (const example of examples) {
1825
- const description = _chunkUNDLNT3Vjs.stringField.call(void 0, example, "description");
1665
+ const description = _chunkECWOIXAVjs.stringField.call(void 0, example, "description");
1826
1666
  if (description) console.log(description);
1827
1667
  console.log("Example Deepline execution response:");
1828
1668
  console.log(JSON.stringify(example.response, null, 2));
@@ -1837,14 +1677,14 @@ function printToolExamplesOnly(tool, requestedToolId) {
1837
1677
  }
1838
1678
  function printPlayLikeToolUsage(tool, requestedToolId) {
1839
1679
  const toolId = String(tool.toolId || requestedToolId);
1840
- const inputFields = _chunkUNDLNT3Vjs.toolInputFieldsForDisplay.call(void 0,
1841
- _chunkUNDLNT3Vjs.recordField.call(void 0, tool, "inputSchema", "input_schema")
1680
+ const inputFields = _chunkECWOIXAVjs.toolInputFieldsForDisplay.call(void 0,
1681
+ _chunkECWOIXAVjs.recordField.call(void 0, tool, "inputSchema", "input_schema")
1842
1682
  );
1843
- const sampleInput = _chunkUNDLNT3Vjs.samplePayloadForInputFields.call(void 0, inputFields);
1844
- const playReference = _chunkUNDLNT3Vjs.playReferenceForTool.call(void 0, tool);
1683
+ const sampleInput = _chunkECWOIXAVjs.samplePayloadForInputFields.call(void 0, inputFields);
1684
+ const playReference = _chunkECWOIXAVjs.playReferenceForTool.call(void 0, tool);
1845
1685
  console.log("Run as a play:");
1846
1686
  console.log(
1847
- _chunkUNDLNT3Vjs.playRunCommandForTool.call(void 0,
1687
+ _chunkECWOIXAVjs.playRunCommandForTool.call(void 0,
1848
1688
  tool,
1849
1689
  toolId,
1850
1690
  Object.keys(sampleInput).length ? sampleInput : void 0
@@ -1855,13 +1695,13 @@ function printPlayLikeToolUsage(tool, requestedToolId) {
1855
1695
  }
1856
1696
  }
1857
1697
  function printToolGettersOnly(tool, requestedToolId) {
1858
- const contract = _chunkUNDLNT3Vjs.toolContractJsonForDescribe.call(void 0,
1698
+ const contract = _chunkECWOIXAVjs.toolContractJsonForDescribe.call(void 0,
1859
1699
  tool,
1860
1700
  requestedToolId,
1861
1701
  void 0,
1862
1702
  seedToolListScript
1863
1703
  );
1864
- const getters = _chunkUNDLNT3Vjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1704
+ const getters = _chunkECWOIXAVjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1865
1705
  const listGetters = Array.isArray(getters.extractedLists) ? getters.extractedLists : [];
1866
1706
  const valueGetters = Array.isArray(getters.extractedValues) ? getters.extractedValues : [];
1867
1707
  console.log(`Getters: ${contract.toolId}`);
@@ -1872,9 +1712,9 @@ function printToolGettersOnly(tool, requestedToolId) {
1872
1712
  if (listGetters.length) {
1873
1713
  console.log(listGetterHeading());
1874
1714
  for (const entry of listGetters) {
1875
- if (_chunkUNDLNT3Vjs.isRecord.call(void 0, entry))
1715
+ if (_chunkECWOIXAVjs.isRecord.call(void 0, entry))
1876
1716
  console.log(
1877
- `- ${_chunkUNDLNT3Vjs.stringField.call(void 0, entry, "name")}: ${_chunkUNDLNT3Vjs.playResultExpression.call(void 0, entry)}`
1717
+ `- ${_chunkECWOIXAVjs.stringField.call(void 0, entry, "name")}: ${_chunkECWOIXAVjs.playResultExpression.call(void 0, entry)}`
1878
1718
  );
1879
1719
  }
1880
1720
  printListGetterConsumption();
@@ -1882,9 +1722,9 @@ function printToolGettersOnly(tool, requestedToolId) {
1882
1722
  if (valueGetters.length) {
1883
1723
  console.log("Values:");
1884
1724
  for (const entry of valueGetters) {
1885
- if (_chunkUNDLNT3Vjs.isRecord.call(void 0, entry))
1725
+ if (_chunkECWOIXAVjs.isRecord.call(void 0, entry))
1886
1726
  console.log(
1887
- `- ${_chunkUNDLNT3Vjs.stringField.call(void 0, entry, "name")}: ${_chunkUNDLNT3Vjs.playResultExpression.call(void 0, entry)}`
1727
+ `- ${_chunkECWOIXAVjs.stringField.call(void 0, entry, "name")}: ${_chunkECWOIXAVjs.playResultExpression.call(void 0, entry)}`
1888
1728
  );
1889
1729
  }
1890
1730
  }
@@ -1922,22 +1762,22 @@ function listedToolDescription(tool) {
1922
1762
  }
1923
1763
  function formatListedToolCost(tool) {
1924
1764
  const record = tool;
1925
- if (_chunkUNDLNT3Vjs.stringField.call(void 0, record, "billingSource", "billing_source") === "free") {
1765
+ if (_chunkECWOIXAVjs.stringField.call(void 0, record, "billingSource", "billing_source") === "free") {
1926
1766
  return "Cost: Free";
1927
1767
  }
1928
- const pricing = _chunkUNDLNT3Vjs.recordField.call(void 0, record, "pricing");
1929
- const displayText = _chunkUNDLNT3Vjs.stringField.call(void 0, pricing, "displayText", "display_text");
1768
+ const pricing = _chunkECWOIXAVjs.recordField.call(void 0, record, "pricing");
1769
+ const displayText = _chunkECWOIXAVjs.stringField.call(void 0, pricing, "displayText", "display_text");
1930
1770
  return displayText ? `Cost: ${displayText}` : "";
1931
1771
  }
1932
1772
  function printToolOutputArrayShape(tool) {
1933
- const outputFields = _chunkUNDLNT3Vjs.toolOutputFieldsForDisplay.call(void 0,
1934
- _chunkUNDLNT3Vjs.recordField.call(void 0, _chunkUNDLNT3Vjs.isRecord.call(void 0, tool) ? tool : {}, "outputSchema", "output_schema")
1773
+ const outputFields = _chunkECWOIXAVjs.toolOutputFieldsForDisplay.call(void 0,
1774
+ _chunkECWOIXAVjs.recordField.call(void 0, _chunkECWOIXAVjs.isRecord.call(void 0, tool) ? tool : {}, "outputSchema", "output_schema")
1935
1775
  );
1936
1776
  if (outputFields.length === 0) return;
1937
1777
  console.log(" Output array shape (declared schema):");
1938
1778
  for (const field of outputFields.slice(0, 60)) {
1939
1779
  const name = String(field.name);
1940
- const type = _chunkUNDLNT3Vjs.stringField.call(void 0, field, "type") || "unknown";
1780
+ const type = _chunkECWOIXAVjs.stringField.call(void 0, field, "type") || "unknown";
1941
1781
  const itemBounds = arrayItemBoundsSuffix(field);
1942
1782
  console.log(` - ${name}: ${type}${itemBounds}`);
1943
1783
  }
@@ -1946,15 +1786,15 @@ function printToolOutputArrayShape(tool) {
1946
1786
  }
1947
1787
  }
1948
1788
  function declaredToolJsonSchema(inputSchema) {
1949
- if (_chunkUNDLNT3Vjs.isRecord.call(void 0, inputSchema.jsonSchema)) {
1789
+ if (_chunkECWOIXAVjs.isRecord.call(void 0, inputSchema.jsonSchema)) {
1950
1790
  return inputSchema.jsonSchema;
1951
1791
  }
1952
1792
  return Array.isArray(inputSchema.fields) ? null : inputSchema;
1953
1793
  }
1954
1794
  function arrayItemBoundsSuffix(field) {
1955
- const itemSchema = _chunkUNDLNT3Vjs.isRecord.call(void 0, field.items) ? field.items : null;
1956
- const itemType = itemSchema ? typeof itemSchema.type === "string" ? itemSchema.type : _chunkUNDLNT3Vjs.isRecord.call(void 0, itemSchema.properties) ? "object" : "unknown" : null;
1957
- const itemEnum = Array.isArray(_optionalChain([itemSchema, 'optionalAccess', _16 => _16.enum])) ? ` enum=${itemSchema.enum.map(String).join("|")}` : "";
1795
+ const itemSchema = _chunkECWOIXAVjs.isRecord.call(void 0, field.items) ? field.items : null;
1796
+ const itemType = itemSchema ? typeof itemSchema.type === "string" ? itemSchema.type : _chunkECWOIXAVjs.isRecord.call(void 0, itemSchema.properties) ? "object" : "unknown" : null;
1797
+ const itemEnum = Array.isArray(_optionalChain([itemSchema, 'optionalAccess', _14 => _14.enum])) ? ` enum=${itemSchema.enum.map(String).join("|")}` : "";
1958
1798
  const itemTypeSuffix = itemType && itemType !== "unknown" ? ` items=${itemType}${itemEnum}` : "";
1959
1799
  const minItems = typeof field.minItems === "number" && Number.isFinite(field.minItems) ? field.minItems : null;
1960
1800
  const maxItems = typeof field.maxItems === "number" && Number.isFinite(field.maxItems) ? field.maxItems : null;
@@ -1966,21 +1806,21 @@ function arrayItemBoundsSuffix(field) {
1966
1806
  return itemTypeSuffix;
1967
1807
  }
1968
1808
  function printToolExecutionHints(value) {
1969
- const batchCapabilityRecord = _chunkUNDLNT3Vjs.recordField.call(void 0,
1970
- _chunkUNDLNT3Vjs.isRecord.call(void 0, value) ? value : {},
1809
+ const batchCapabilityRecord = _chunkECWOIXAVjs.recordField.call(void 0,
1810
+ _chunkECWOIXAVjs.isRecord.call(void 0, value) ? value : {},
1971
1811
  "batchCapability",
1972
1812
  "batch_capability"
1973
1813
  );
1974
1814
  const batchCapability = Object.keys(batchCapabilityRecord).length > 0 ? batchCapabilityRecord : null;
1975
- const executionMetadata = _chunkUNDLNT3Vjs.recordField.call(void 0,
1976
- _chunkUNDLNT3Vjs.isRecord.call(void 0, value) ? value : {},
1815
+ const executionMetadata = _chunkECWOIXAVjs.recordField.call(void 0,
1816
+ _chunkECWOIXAVjs.isRecord.call(void 0, value) ? value : {},
1977
1817
  "executionMetadata",
1978
1818
  "execution_metadata"
1979
1819
  );
1980
1820
  if (batchCapability) {
1981
- const status = _chunkUNDLNT3Vjs.stringField.call(void 0, batchCapability, "status") || "unknown";
1982
- const surface = _chunkUNDLNT3Vjs.stringField.call(void 0, batchCapability, "surface");
1983
- const operation = _chunkUNDLNT3Vjs.stringField.call(void 0,
1821
+ const status = _chunkECWOIXAVjs.stringField.call(void 0, batchCapability, "status") || "unknown";
1822
+ const surface = _chunkECWOIXAVjs.stringField.call(void 0, batchCapability, "surface");
1823
+ const operation = _chunkECWOIXAVjs.stringField.call(void 0,
1984
1824
  batchCapability,
1985
1825
  "batchOperation",
1986
1826
  "batch_operation"
@@ -1990,7 +1830,7 @@ function printToolExecutionHints(value) {
1990
1830
  "maxBatchSize",
1991
1831
  "max_batch_size"
1992
1832
  );
1993
- const notes = _chunkUNDLNT3Vjs.stringField.call(void 0, batchCapability, "notes");
1833
+ const notes = _chunkECWOIXAVjs.stringField.call(void 0, batchCapability, "notes");
1994
1834
  console.log("");
1995
1835
  console.log("Batching:");
1996
1836
  console.log(`- Catalog status: ${status}${surface ? ` (${surface})` : ""}`);
@@ -2009,11 +1849,11 @@ function printToolExecutionHints(value) {
2009
1849
  }
2010
1850
  if (notes) console.log(`- Details: ${notes}`);
2011
1851
  }
2012
- const configuredRateLimits = _chunkUNDLNT3Vjs.arrayField.call(void 0,
1852
+ const configuredRateLimits = _chunkECWOIXAVjs.arrayField.call(void 0,
2013
1853
  executionMetadata,
2014
1854
  "configuredRateLimits",
2015
1855
  "configured_rate_limits"
2016
- ).filter(_chunkUNDLNT3Vjs.isRecord);
1856
+ ).filter(_chunkECWOIXAVjs.isRecord);
2017
1857
  if (configuredRateLimits.length > 0) {
2018
1858
  console.log("");
2019
1859
  console.log(
@@ -2023,7 +1863,7 @@ function printToolExecutionHints(value) {
2023
1863
  const requests = numberField(limit, "requestsPerWindow");
2024
1864
  const windowMs = numberField(limit, "windowMs");
2025
1865
  if (requests === null || windowMs === null) continue;
2026
- const usage = _chunkUNDLNT3Vjs.stringField.call(void 0, limit, "usage") || "unknown";
1866
+ const usage = _chunkECWOIXAVjs.stringField.call(void 0, limit, "usage") || "unknown";
2027
1867
  const usageText = usage === "queue_hint" ? "queue hint" : usage === "enforced" ? "Deepline enforced" : usage === "queue_hint_and_enforced" ? "queue hint and Deepline enforced" : usage === "disabled" ? "disabled" : usage;
2028
1868
  const explicitMaxConcurrency = numberField(
2029
1869
  limit,
@@ -2036,7 +1876,7 @@ function printToolExecutionHints(value) {
2036
1876
  );
2037
1877
  }
2038
1878
  }
2039
- const queueHint = _chunkUNDLNT3Vjs.recordField.call(void 0, executionMetadata, "queueHint", "queue_hint");
1879
+ const queueHint = _chunkECWOIXAVjs.recordField.call(void 0, executionMetadata, "queueHint", "queue_hint");
2040
1880
  const requestsPerSecondHint = numberField(
2041
1881
  queueHint,
2042
1882
  "requestsPerSecondHint",
@@ -2062,35 +1902,35 @@ function formatRateWindow(windowMs) {
2062
1902
  }
2063
1903
  function samplePayload(samples, key) {
2064
1904
  const entry = samples[key];
2065
- if (!_chunkUNDLNT3Vjs.isRecord.call(void 0, entry)) return void 0;
1905
+ if (!_chunkECWOIXAVjs.isRecord.call(void 0, entry)) return void 0;
2066
1906
  return Object.prototype.hasOwnProperty.call(entry, "payload") ? entry.payload : entry;
2067
1907
  }
2068
1908
  function commandEnvelopeFromRawResponse(rawResponse) {
2069
- return _chunkUNDLNT3Vjs.isRecord.call(void 0, rawResponse) ? { ...rawResponse } : { status: "completed", result: rawResponse };
1909
+ return _chunkECWOIXAVjs.isRecord.call(void 0, rawResponse) ? { ...rawResponse } : { status: "completed", result: rawResponse };
2070
1910
  }
2071
1911
  function toolExecuteExitCode(envelope) {
2072
1912
  return envelope.status === "failed" || envelope.ok === false ? 1 : 0;
2073
1913
  }
2074
1914
  function extractToolExecutionWarningMessages(rawResponse) {
2075
- if (!_chunkUNDLNT3Vjs.isRecord.call(void 0, rawResponse)) return [];
1915
+ if (!_chunkECWOIXAVjs.isRecord.call(void 0, rawResponse)) return [];
2076
1916
  const candidates = [
2077
- _chunkUNDLNT3Vjs.recordField.call(void 0, _chunkUNDLNT3Vjs.recordField.call(void 0, rawResponse, "toolResponse"), "meta"),
2078
- _chunkUNDLNT3Vjs.recordField.call(void 0,
2079
- _chunkUNDLNT3Vjs.recordField.call(void 0, _chunkUNDLNT3Vjs.recordField.call(void 0, rawResponse, "toolResponse"), "raw"),
1917
+ _chunkECWOIXAVjs.recordField.call(void 0, _chunkECWOIXAVjs.recordField.call(void 0, rawResponse, "toolResponse"), "meta"),
1918
+ _chunkECWOIXAVjs.recordField.call(void 0,
1919
+ _chunkECWOIXAVjs.recordField.call(void 0, _chunkECWOIXAVjs.recordField.call(void 0, rawResponse, "toolResponse"), "raw"),
2080
1920
  "meta"
2081
1921
  ),
2082
- _chunkUNDLNT3Vjs.recordField.call(void 0, rawResponse, "meta"),
2083
- _chunkUNDLNT3Vjs.recordField.call(void 0, _chunkUNDLNT3Vjs.recordField.call(void 0, rawResponse, "result"), "meta")
1922
+ _chunkECWOIXAVjs.recordField.call(void 0, rawResponse, "meta"),
1923
+ _chunkECWOIXAVjs.recordField.call(void 0, _chunkECWOIXAVjs.recordField.call(void 0, rawResponse, "result"), "meta")
2084
1924
  ];
2085
1925
  const messages = [];
2086
1926
  for (const candidate of candidates) {
2087
- const warnings = _optionalChain([candidate, 'optionalAccess', _17 => _17.warnings]);
1927
+ const warnings = _optionalChain([candidate, 'optionalAccess', _15 => _15.warnings]);
2088
1928
  if (!Array.isArray(warnings)) continue;
2089
1929
  for (const warning of warnings) {
2090
1930
  if (typeof warning === "string" && warning.trim()) {
2091
1931
  messages.push(warning.trim());
2092
- } else if (_chunkUNDLNT3Vjs.isRecord.call(void 0, warning)) {
2093
- const message = _chunkUNDLNT3Vjs.stringField.call(void 0, warning, "message");
1932
+ } else if (_chunkECWOIXAVjs.isRecord.call(void 0, warning)) {
1933
+ const message = _chunkECWOIXAVjs.stringField.call(void 0, warning, "message");
2094
1934
  if (message) messages.push(message);
2095
1935
  }
2096
1936
  }
@@ -2098,20 +1938,20 @@ function extractToolExecutionWarningMessages(rawResponse) {
2098
1938
  return [...new Set(messages)];
2099
1939
  }
2100
1940
  function apifySyncRecoveryNext(rawResponse) {
2101
- if (!_chunkUNDLNT3Vjs.isRecord.call(void 0, rawResponse) || rawResponse.status !== "running") return null;
2102
- const toolResponse = _chunkUNDLNT3Vjs.recordField.call(void 0, rawResponse, "toolResponse");
2103
- const raw = _chunkUNDLNT3Vjs.recordField.call(void 0, toolResponse, "raw");
1941
+ if (!_chunkECWOIXAVjs.isRecord.call(void 0, rawResponse) || rawResponse.status !== "running") return null;
1942
+ const toolResponse = _chunkECWOIXAVjs.recordField.call(void 0, rawResponse, "toolResponse");
1943
+ const raw = _chunkECWOIXAVjs.recordField.call(void 0, toolResponse, "raw");
2104
1944
  if (raw.state !== "awaiting_apify") return null;
2105
- const next = _chunkUNDLNT3Vjs.recordField.call(void 0, raw, "next");
2106
- const getActorRun = _chunkUNDLNT3Vjs.recordField.call(void 0, next, "getActorRun");
2107
- const getActorRunTool = _chunkUNDLNT3Vjs.stringField.call(void 0, getActorRun, "tool");
2108
- const getActorRunPayload = _chunkUNDLNT3Vjs.recordField.call(void 0, getActorRun, "payload");
1945
+ const next = _chunkECWOIXAVjs.recordField.call(void 0, raw, "next");
1946
+ const getActorRun = _chunkECWOIXAVjs.recordField.call(void 0, next, "getActorRun");
1947
+ const getActorRunTool = _chunkECWOIXAVjs.stringField.call(void 0, getActorRun, "tool");
1948
+ const getActorRunPayload = _chunkECWOIXAVjs.recordField.call(void 0, getActorRun, "payload");
2109
1949
  if (!getActorRunTool || Object.keys(getActorRunPayload).length === 0) {
2110
1950
  return null;
2111
1951
  }
2112
- const getDatasetItems = _chunkUNDLNT3Vjs.recordField.call(void 0, next, "getDatasetItems");
2113
- const getDatasetItemsTool = _chunkUNDLNT3Vjs.stringField.call(void 0, getDatasetItems, "tool");
2114
- const getDatasetItemsPayload = _chunkUNDLNT3Vjs.recordField.call(void 0, getDatasetItems, "payload");
1952
+ const getDatasetItems = _chunkECWOIXAVjs.recordField.call(void 0, next, "getDatasetItems");
1953
+ const getDatasetItemsTool = _chunkECWOIXAVjs.stringField.call(void 0, getDatasetItems, "tool");
1954
+ const getDatasetItemsPayload = _chunkECWOIXAVjs.recordField.call(void 0, getDatasetItems, "payload");
2115
1955
  return {
2116
1956
  getActorRun: `deepline run ${getActorRunTool} --input ${_chunkAID3OYVJjs.shellQuote.call(void 0, JSON.stringify(getActorRunPayload))}`,
2117
1957
  ...getDatasetItemsTool && Object.keys(getDatasetItemsPayload).length > 0 ? {
@@ -2120,10 +1960,10 @@ function apifySyncRecoveryNext(rawResponse) {
2120
1960
  };
2121
1961
  }
2122
1962
  function listExtractorPathsFromUsageGuidance(tool) {
2123
- const toolExecutionResult = _optionalChain([tool, 'access', _18 => _18.usageGuidance, 'optionalAccess', _19 => _19.toolExecutionResult]);
2124
- const extractedLists = Array.isArray(_optionalChain([toolExecutionResult, 'optionalAccess', _20 => _20.extractedLists])) ? toolExecutionResult.extractedLists : _chunkUNDLNT3Vjs.isRecord.call(void 0, _optionalChain([toolExecutionResult, 'optionalAccess', _21 => _21.extractedLists])) ? Object.values(toolExecutionResult.extractedLists) : [];
1963
+ const toolExecutionResult = _optionalChain([tool, 'access', _16 => _16.usageGuidance, 'optionalAccess', _17 => _17.toolExecutionResult]);
1964
+ const extractedLists = Array.isArray(_optionalChain([toolExecutionResult, 'optionalAccess', _18 => _18.extractedLists])) ? toolExecutionResult.extractedLists : _chunkECWOIXAVjs.isRecord.call(void 0, _optionalChain([toolExecutionResult, 'optionalAccess', _19 => _19.extractedLists])) ? Object.values(toolExecutionResult.extractedLists) : [];
2125
1965
  return extractedLists.flatMap((entry) => {
2126
- const paths = _nullishCoalesce(_optionalChain([entry, 'access', _22 => _22.details, 'optionalAccess', _23 => _23.candidatePaths]), () => ( _optionalChain([entry, 'access', _24 => _24.details, 'optionalAccess', _25 => _25.rawToolOutputPaths])));
1966
+ const paths = _nullishCoalesce(_optionalChain([entry, 'access', _20 => _20.details, 'optionalAccess', _21 => _21.candidatePaths]), () => ( _optionalChain([entry, 'access', _22 => _22.details, 'optionalAccess', _23 => _23.rawToolOutputPaths])));
2127
1967
  if (!Array.isArray(paths)) return [];
2128
1968
  return paths.map(
2129
1969
  (path) => path.trim().replace(/^toolExecutionResult\.toolResponse\.raw\.?/, "").replace(/^toolExecutionResult\.toolOutput\.raw\.?/, "").replace(/^\./, "")
@@ -2206,7 +2046,7 @@ function parseJsonObjectArgument(raw, flagName) {
2206
2046
  }
2207
2047
  throw invalidJsonError(flagName, message);
2208
2048
  }
2209
- if (!_chunkUNDLNT3Vjs.isRecord.call(void 0, parsed)) {
2049
+ if (!_chunkECWOIXAVjs.isRecord.call(void 0, parsed)) {
2210
2050
  throw invalidJsonError(flagName, "expected an object.");
2211
2051
  }
2212
2052
  return parsed;
@@ -2250,7 +2090,12 @@ function parseExecuteOptions(toolId, options, output) {
2250
2090
  outputFormat = normalizeOutputFormat(options.outputFormat);
2251
2091
  }
2252
2092
  if (options.idempotencyKey !== void 0) {
2253
- _chunk4I47NCRIjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2093
+ _chunkPDJ4UDCOjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2094
+ }
2095
+ if (options.connection !== void 0 && (options.recover || options.idempotencyKey !== void 0)) {
2096
+ throw new Error(
2097
+ "--connection cannot be combined with --recover or --idempotency-key."
2098
+ );
2254
2099
  }
2255
2100
  if (options.recoveryTimeoutMs !== void 0) {
2256
2101
  const parsed = Number(options.recoveryTimeoutMs);
@@ -2267,6 +2112,7 @@ function parseExecuteOptions(toolId, options, output) {
2267
2112
  outPath: options.out !== void 0 ? _path.resolve.call(void 0, options.out) : null,
2268
2113
  timeoutMs: options.timeout !== void 0 ? parseToolExecuteTimeout(options.timeout) : void 0,
2269
2114
  idempotencyKey: options.idempotencyKey,
2115
+ connection: options.connection,
2270
2116
  recover: options.recover === true,
2271
2117
  recoveryTimeoutMs
2272
2118
  };
@@ -2379,7 +2225,7 @@ function buildToolExecuteBaseEnvelope(input) {
2379
2225
  kind: summaryEntries.length > 0 ? "object" : "raw",
2380
2226
  summary: input.summary
2381
2227
  };
2382
- const envelopeHasCanonicalOutput = _chunkUNDLNT3Vjs.isRecord.call(void 0, envelope.toolResponse) && Object.prototype.hasOwnProperty.call(envelope.toolResponse, "raw");
2228
+ const envelopeHasCanonicalOutput = _chunkECWOIXAVjs.isRecord.call(void 0, envelope.toolResponse) && Object.prototype.hasOwnProperty.call(envelope.toolResponse, "raw");
2383
2229
  const envelopeHasDeclaredOutput = Object.prototype.hasOwnProperty.call(
2384
2230
  envelope,
2385
2231
  "output"
@@ -2407,7 +2253,7 @@ function buildToolExecuteBaseEnvelope(input) {
2407
2253
  return {
2408
2254
  ...envelope,
2409
2255
  ...input.idempotencyKey ? { idempotency_key: input.idempotencyKey } : {},
2410
- ..._chunkUNDLNT3Vjs.isRecord.call(void 0, input.rawResponse) && _chunkUNDLNT3Vjs.isRecord.call(void 0, input.rawResponse.executionRecovery) ? { execution_recovery: input.rawResponse.executionRecovery } : {},
2256
+ ..._chunkECWOIXAVjs.isRecord.call(void 0, input.rawResponse) && _chunkECWOIXAVjs.isRecord.call(void 0, input.rawResponse.executionRecovery) ? { execution_recovery: input.rawResponse.executionRecovery } : {},
2411
2257
  ...envelopeHasCanonicalOutput || envelopeHasDeclaredOutput ? { output_preview: outputPreview } : { output: outputPreview },
2412
2258
  ...summaryEntries.length > 0 ? { summary: input.summary } : {},
2413
2259
  ...warningMessages.length > 0 ? { warnings: warningMessages } : {},
@@ -2468,7 +2314,7 @@ function buildToolExecuteRowArtifactEnvelope(input) {
2468
2314
  void _render;
2469
2315
  void _next;
2470
2316
  void _local;
2471
- const billingLookup = _chunkUNDLNT3Vjs.isRecord.call(void 0, input.baseEnvelope.next) && typeof input.baseEnvelope.next.billing === "string" ? input.baseEnvelope.next.billing : null;
2317
+ const billingLookup = _chunkECWOIXAVjs.isRecord.call(void 0, input.baseEnvelope.next) && typeof input.baseEnvelope.next.billing === "string" ? input.baseEnvelope.next.billing : null;
2472
2318
  const inspection = toolExecutionInspection(input);
2473
2319
  return {
2474
2320
  ...base,
@@ -2550,7 +2396,7 @@ function buildToolExecuteRowArtifactEnvelope(input) {
2550
2396
  };
2551
2397
  }
2552
2398
  function printToolExecutionWarnings(toolId, params, metadata) {
2553
- if (_optionalChain([metadata, 'access', _26 => _26.deprecation, 'optionalAccess', _27 => _27.message])) {
2399
+ if (_optionalChain([metadata, 'access', _24 => _24.deprecation, 'optionalAccess', _25 => _25.message])) {
2554
2400
  console.error(
2555
2401
  `Warning: ${toolId} is deprecated. ${metadata.deprecation.message}`
2556
2402
  );
@@ -2564,7 +2410,7 @@ function printToolExecutionWarnings(toolId, params, metadata) {
2564
2410
  }
2565
2411
  }
2566
2412
  function assertExecutableToolMetadata(toolId, metadata) {
2567
- if (_chunkUNDLNT3Vjs.isPlayLikeTool.call(void 0, metadata)) {
2413
+ if (_chunkECWOIXAVjs.isPlayLikeTool.call(void 0, metadata)) {
2568
2414
  throw new (0, _chunkBBTKAASQjs.DeeplineError)(
2569
2415
  playLikeToolExecuteErrorMessage(
2570
2416
  toolId,
@@ -2582,7 +2428,7 @@ function valueAt(value, path) {
2582
2428
  for (const [index, part] of parts.entries()) {
2583
2429
  const each = part === "*" || part.endsWith("[*]");
2584
2430
  if (part !== "*") {
2585
- at = _chunkUNDLNT3Vjs.isRecord.call(void 0, at) ? at[each ? part.slice(0, -3) : part] : void 0;
2431
+ at = _chunkECWOIXAVjs.isRecord.call(void 0, at) ? at[each ? part.slice(0, -3) : part] : void 0;
2586
2432
  }
2587
2433
  if (!each) continue;
2588
2434
  if (!Array.isArray(at)) return void 0;
@@ -2594,18 +2440,18 @@ function valueAt(value, path) {
2594
2440
  return at;
2595
2441
  }
2596
2442
  function declaredOutputs(metadata, envelope, data) {
2597
- const result = _optionalChain([metadata, 'access', _28 => _28.usageGuidance, 'optionalAccess', _29 => _29.toolExecutionResult]);
2443
+ const result = _optionalChain([metadata, 'access', _26 => _26.usageGuidance, 'optionalAccess', _27 => _27.toolExecutionResult]);
2598
2444
  const getters = ["extractedValues", "extractedLists"].flatMap(
2599
2445
  (kind) => {
2600
- const group = _optionalChain([result, 'optionalAccess', _30 => _30[kind]]);
2601
- return Array.isArray(group) ? group : _chunkUNDLNT3Vjs.isRecord.call(void 0, group) ? Object.entries(group).map(([name, getter]) => ({
2446
+ const group = _optionalChain([result, 'optionalAccess', _28 => _28[kind]]);
2447
+ return Array.isArray(group) ? group : _chunkECWOIXAVjs.isRecord.call(void 0, group) ? Object.entries(group).map(([name, getter]) => ({
2602
2448
  name,
2603
2449
  ...getter
2604
2450
  })) : [];
2605
2451
  }
2606
2452
  );
2607
2453
  return getters.flatMap((getter) => {
2608
- const paths = _nullishCoalesce(_nullishCoalesce(_optionalChain([getter, 'access', _31 => _31.details, 'optionalAccess', _32 => _32.rawToolOutputPaths]), () => ( _optionalChain([getter, 'access', _33 => _33.details, 'optionalAccess', _34 => _34.candidatePaths]))), () => ( []));
2454
+ const paths = _nullishCoalesce(_nullishCoalesce(_optionalChain([getter, 'access', _29 => _29.details, 'optionalAccess', _30 => _30.rawToolOutputPaths]), () => ( _optionalChain([getter, 'access', _31 => _31.details, 'optionalAccess', _32 => _32.candidatePaths]))), () => ( []));
2609
2455
  for (const path of paths) {
2610
2456
  const value = valueAt(envelope, path);
2611
2457
  if (value === void 0) continue;
@@ -2623,13 +2469,13 @@ function declaredOutputs(metadata, envelope, data) {
2623
2469
  }
2624
2470
  function writeToolReceipt(input) {
2625
2471
  const { response, metadata } = input;
2626
- const envelope = _chunkUNDLNT3Vjs.isRecord.call(void 0, response) ? response : {};
2472
+ const envelope = _chunkECWOIXAVjs.isRecord.call(void 0, response) ? response : {};
2627
2473
  const jobId = typeof envelope.job_id === "string" ? envelope.job_id : null;
2628
- const toolResponse = _chunkUNDLNT3Vjs.recordField.call(void 0, envelope, "toolResponse");
2474
+ const toolResponse = _chunkECWOIXAVjs.recordField.call(void 0, envelope, "toolResponse");
2629
2475
  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;
2630
2476
  const status = typeof envelope.status === "string" ? envelope.status : "completed";
2631
- const charged = _chunkUNDLNT3Vjs.recordField.call(void 0, envelope, "billing").credits_charged;
2632
- _chunkD7GWEBMFjs.writeExecutionOutput.call(void 0,
2477
+ const charged = _chunkECWOIXAVjs.recordField.call(void 0, envelope, "billing").credits_charged;
2478
+ _chunkUNMNGRPBjs.writeExecutionOutput.call(void 0,
2633
2479
  {
2634
2480
  id: _nullishCoalesce(input.key, () => ( jobId)),
2635
2481
  status,
@@ -2660,14 +2506,14 @@ async function executeToolForReceipt(input) {
2660
2506
  let retryKey = null;
2661
2507
  let received = false;
2662
2508
  try {
2663
- const cliInvocationId = _nullishCoalesce(_chunkDNGACHFXjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkDNGACHFXjs.beginToolExecuteCommand.call(void 0, )));
2664
- const client = new (0, _chunk6SLEHAXXjs.DeeplineClient)();
2509
+ const cliInvocationId = _nullishCoalesce(_chunkCOJHT2KFjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkCOJHT2KFjs.beginToolExecuteCommand.call(void 0, )));
2510
+ const client = new (0, _chunkDF2X7GJGjs.DeeplineClient)();
2665
2511
  const metadata = assertExecutableToolMetadata(
2666
2512
  toolId,
2667
2513
  await _asyncNullishCoalesce(input.metadata, async () => ( await client.getTool(toolId, { cliInvocationId })))
2668
2514
  );
2669
2515
  printToolExecutionWarnings(toolId, params, metadata);
2670
- const responseIntent = _optionalChain([output, 'access', _35 => _35.csvOut, 'optionalAccess', _36 => _36.length]) ? "row_artifact" : "raw";
2516
+ const responseIntent = _optionalChain([output, 'access', _33 => _33.csvOut, 'optionalAccess', _34 => _34.length]) ? "row_artifact" : "raw";
2671
2517
  const recovery = ToolCallRecovery.open({
2672
2518
  toolId,
2673
2519
  params,
@@ -2680,11 +2526,11 @@ async function executeToolForReceipt(input) {
2680
2526
  const response = await client.executeTool(toolId, params, {
2681
2527
  responseIntent,
2682
2528
  ...input.timeoutMs !== void 0 ? { timeout: input.timeoutMs } : {},
2683
- ..._optionalChain([metadata, 'access', _37 => _37.executionMetadata, 'optionalAccess', _38 => _38.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {},
2529
+ ..._optionalChain([metadata, 'access', _35 => _35.executionMetadata, 'optionalAccess', _36 => _36.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {},
2684
2530
  ...key ? { idempotencyKey: key } : {},
2685
- searchRef: _chunkAUFE624Tjs.recentSearchRef.call(void 0, toolId),
2531
+ searchRef: _chunkRUFR4PUOjs.recentSearchRef.call(void 0, toolId),
2686
2532
  cliInvocationId,
2687
- onResponseReceived: _chunkD7GWEBMFjs.recordApiResponse
2533
+ onResponseReceived: _chunkUNMNGRPBjs.recordApiResponse
2688
2534
  }).catch((error) => {
2689
2535
  const guidance = toolGuidanceLines(metadata.guidance);
2690
2536
  if (guidance.length)
@@ -2706,12 +2552,12 @@ async function executeToolForReceipt(input) {
2706
2552
  } catch (error) {
2707
2553
  if (received) throw error;
2708
2554
  const outcomeKnown = answeredWithFailure(error);
2709
- if (outcomeKnown) _optionalChain([retryKey, 'optionalAccess', _39 => _39.discard, 'call', _40 => _40()]);
2710
- _chunkD7GWEBMFjs.writeExecutionOutput.call(void 0,
2555
+ if (outcomeKnown) _optionalChain([retryKey, 'optionalAccess', _37 => _37.discard, 'call', _38 => _38()]);
2556
+ _chunkUNMNGRPBjs.writeExecutionOutput.call(void 0,
2711
2557
  {
2712
2558
  id: outcomeKnown ? null : key,
2713
2559
  status: "failed",
2714
- error: _chunkE7B73LGTjs.errorToJsonPayload.call(void 0, error).error,
2560
+ error: _chunkZY6FL4O4js.errorToJsonPayload.call(void 0, error).error,
2715
2561
  ...key && !outcomeKnown ? {
2716
2562
  next: {
2717
2563
  retry: "Run the same command again: it picks up this call without paying twice."
@@ -2728,11 +2574,11 @@ function answeredWithFailure(error) {
2728
2574
  error.statusCode !== 408 && error.code !== "EXECUTION_OUTCOME_UNKNOWN";
2729
2575
  }
2730
2576
  async function getToolExecutionReceipt(key, output) {
2731
- const client = new (0, _chunk6SLEHAXXjs.DeeplineClient)();
2577
+ const client = new (0, _chunkDF2X7GJGjs.DeeplineClient)();
2732
2578
  const execution = await client.executions.getByKey(key);
2733
2579
  output.label = `${execution.toolId} (tool)`;
2734
2580
  if (execution.response === void 0) {
2735
- _chunkD7GWEBMFjs.writeExecutionOutput.call(void 0,
2581
+ _chunkUNMNGRPBjs.writeExecutionOutput.call(void 0,
2736
2582
  {
2737
2583
  id: key,
2738
2584
  status: execution.executionRecovery.state,
@@ -2761,19 +2607,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2761
2607
  parsed = parseExecuteOptions(toolId, options, output);
2762
2608
  } catch (error) {
2763
2609
  if (wantsJson) {
2764
- _chunkE7B73LGTjs.printJsonError.call(void 0, error);
2610
+ _chunkZY6FL4O4js.printJsonError.call(void 0, error);
2765
2611
  } else {
2766
2612
  console.error(error instanceof Error ? error.message : String(error));
2767
2613
  }
2768
2614
  return error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
2769
2615
  }
2770
- const cliInvocationId = _nullishCoalesce(_chunkDNGACHFXjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkDNGACHFXjs.beginToolExecuteCommand.call(void 0, )));
2616
+ const cliInvocationId = _nullishCoalesce(_chunkCOJHT2KFjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkCOJHT2KFjs.beginToolExecuteCommand.call(void 0, )));
2771
2617
  const deferredCompatibility = deferCompatibility ? beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) : void 0;
2772
- const tracing = _chunkQ7WDXLYOjs.isCliTraceEnabled.call(void 0, );
2618
+ const tracing = _chunkPKRW76XGjs.isCliTraceEnabled.call(void 0, );
2773
2619
  const clientStartedAt = tracing ? performance.now() : void 0;
2774
- const client = new (0, _chunk6SLEHAXXjs.DeeplineClient)();
2620
+ const client = new (0, _chunkDF2X7GJGjs.DeeplineClient)();
2775
2621
  if (clientStartedAt !== void 0) {
2776
- _chunkQ7WDXLYOjs.recordCliTrace.call(void 0, {
2622
+ _chunkPKRW76XGjs.recordCliTrace.call(void 0, {
2777
2623
  phase: "cli.tool_execute_client_setup",
2778
2624
  ms: performance.now() - clientStartedAt
2779
2625
  });
@@ -2782,13 +2628,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2782
2628
  const readMetadata = async () => {
2783
2629
  if (metadata) return assertExecutableToolMetadata(parsed.toolId, metadata);
2784
2630
  try {
2785
- metadata = await _chunkDNGACHFXjs.runToolExecuteStage.call(void 0,
2631
+ metadata = await _chunkCOJHT2KFjs.runToolExecuteStage.call(void 0,
2786
2632
  "tool metadata lookup",
2787
2633
  () => client.getTool(parsed.toolId, { cliInvocationId })
2788
2634
  );
2789
2635
  } catch (error) {
2790
2636
  if (isMissingToolMetadataError(error)) {
2791
- const play = await _chunkDNGACHFXjs.runToolExecuteStage.call(void 0,
2637
+ const play = await _chunkCOJHT2KFjs.runToolExecuteStage.call(void 0,
2792
2638
  "play alias lookup",
2793
2639
  () => findPlayForToolId(client, parsed.toolId, cliInvocationId)
2794
2640
  );
@@ -2809,7 +2655,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2809
2655
  let preflightCompatibility;
2810
2656
  try {
2811
2657
  preflightCompatibility = await deferredCompatibility.result;
2812
- } catch (e3) {
2658
+ } catch (e2) {
2813
2659
  }
2814
2660
  metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
2815
2661
  if (metadata) {
@@ -2817,19 +2663,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2817
2663
  assertExecutableToolMetadata(parsed.toolId, metadata);
2818
2664
  } catch (error) {
2819
2665
  if (error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2820
- if (wantsJson) _chunkE7B73LGTjs.printJsonError.call(void 0, error);
2666
+ if (wantsJson) _chunkZY6FL4O4js.printJsonError.call(void 0, error);
2821
2667
  else console.error(error.message);
2822
2668
  return 2;
2823
2669
  }
2824
2670
  throw error;
2825
2671
  }
2826
2672
  }
2827
- if (!metadata && _optionalChain([preflightCompatibility, 'optionalAccess', _41 => _41.response, 'optionalAccess', _42 => _42.update_required]) !== true && !_optionalChain([preflightCompatibility, 'optionalAccess', _43 => _43.error])) {
2673
+ if (!metadata && _optionalChain([preflightCompatibility, 'optionalAccess', _39 => _39.response, 'optionalAccess', _40 => _40.update_required]) !== true && !_optionalChain([preflightCompatibility, 'optionalAccess', _41 => _41.error])) {
2828
2674
  try {
2829
2675
  metadata = await readMetadata();
2830
2676
  } catch (error) {
2831
2677
  if (error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2832
- if (wantsJson) _chunkE7B73LGTjs.printJsonError.call(void 0, error);
2678
+ if (wantsJson) _chunkZY6FL4O4js.printJsonError.call(void 0, error);
2833
2679
  else console.error(error.message);
2834
2680
  return 2;
2835
2681
  }
@@ -2845,7 +2691,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2845
2691
  metadata = await readMetadata();
2846
2692
  } catch (error) {
2847
2693
  if (error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2848
- if (wantsJson) _chunkE7B73LGTjs.printJsonError.call(void 0, error);
2694
+ if (wantsJson) _chunkZY6FL4O4js.printJsonError.call(void 0, error);
2849
2695
  else console.error(error.message);
2850
2696
  return 2;
2851
2697
  }
@@ -2869,13 +2715,14 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2869
2715
  const executeOptions = {
2870
2716
  ...parsed.timeoutMs !== void 0 ? { timeout: parsed.timeoutMs } : {},
2871
2717
  responseIntent,
2718
+ ...parsed.connection !== void 0 ? { connection: parsed.connection } : {},
2872
2719
  ...idempotencyKey ? { idempotencyKey } : {},
2873
2720
  ...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
2874
- searchRef: _chunkAUFE624Tjs.recentSearchRef.call(void 0, parsed.toolId),
2721
+ searchRef: _chunkRUFR4PUOjs.recentSearchRef.call(void 0, parsed.toolId),
2875
2722
  cliInvocationId,
2876
- onResponseReceived: _chunkD7GWEBMFjs.recordApiResponse,
2723
+ onResponseReceived: _chunkUNMNGRPBjs.recordApiResponse,
2877
2724
  ...tracing ? {
2878
- onServerTiming: (serverTiming) => _chunkQ7WDXLYOjs.recordCliTrace.call(void 0, {
2725
+ onServerTiming: (serverTiming) => _chunkPKRW76XGjs.recordCliTrace.call(void 0, {
2879
2726
  phase: "tool_execute_server_timing",
2880
2727
  cliInvocationId,
2881
2728
  serverTiming,
@@ -2886,51 +2733,51 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2886
2733
  let rawResponse;
2887
2734
  let successfulCompatibilityResponse;
2888
2735
  try {
2889
- const executeResult = await _chunkDNGACHFXjs.runToolExecuteStage.call(void 0,
2736
+ const executeResult = await _chunkCOJHT2KFjs.runToolExecuteStage.call(void 0,
2890
2737
  "execute request",
2891
2738
  async () => {
2892
2739
  try {
2893
2740
  if (tracing) {
2894
2741
  submissionStartedAt = performance.now();
2895
- _chunkQ7WDXLYOjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2742
+ _chunkPKRW76XGjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2896
2743
  }
2897
2744
  return await client.executeTool(parsed.toolId, parsed.params, {
2898
2745
  ...executeOptions,
2899
2746
  atomicToolOnly: true,
2900
- ..._optionalChain([metadata, 'optionalAccess', _44 => _44.executionMetadata, 'optionalAccess', _45 => _45.retrySafeAmbiguousDelivery]) === true ? { retryAmbiguousDelivery: true } : {}
2747
+ ..._optionalChain([metadata, 'optionalAccess', _42 => _42.executionMetadata, 'optionalAccess', _43 => _43.retrySafeAmbiguousDelivery]) === true ? { retryAmbiguousDelivery: true } : {}
2901
2748
  });
2902
2749
  } catch (error) {
2903
- if (!(error instanceof _chunkBBTKAASQjs.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
2750
+ if (parsed.connection !== void 0 || !(error instanceof _chunkBBTKAASQjs.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
2904
2751
  throw error;
2905
- const baseUrl = _chunkVHJUH3TBjs.resolveConfig.call(void 0, ).baseUrl;
2752
+ const baseUrl = _chunkON56ISO6js.resolveConfig.call(void 0, ).baseUrl;
2906
2753
  if (maintenancePolicy !== "off") {
2907
- _chunk3XXXMSSPjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
2754
+ _chunkKE6CSCUFjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
2908
2755
  }
2909
- const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunkDNGACHFXjs.runToolExecuteStage.call(void 0,
2756
+ const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunkCOJHT2KFjs.runToolExecuteStage.call(void 0,
2910
2757
  "SDK compatibility",
2911
- () => _chunk3XXXMSSPjs.checkSdkCompatibility.call(void 0, baseUrl, {
2758
+ () => _chunkKE6CSCUFjs.checkSdkCompatibility.call(void 0, baseUrl, {
2912
2759
  command: "tools execute",
2913
- skillsVersion: _chunkVHJUH3TBjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
2760
+ skillsVersion: _chunkON56ISO6js.readSdkSkillsLocalVersion.call(void 0, baseUrl),
2914
2761
  persistCache: maintenancePolicy !== "off"
2915
2762
  })
2916
2763
  );
2917
2764
  if (compatibility.error) throw compatibility.error;
2918
- metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _46 => _46.readMetadata, 'call', _47 => _47()]), () => ( metadata));
2919
- if (maintenancePolicy !== "off" && await _chunkDNGACHFXjs.maybeAutoUpdateAndRelaunch.call(void 0,
2765
+ metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _44 => _44.readMetadata, 'call', _45 => _45()]), () => ( metadata));
2766
+ if (maintenancePolicy !== "off" && await _chunkCOJHT2KFjs.maybeAutoUpdateAndRelaunch.call(void 0,
2920
2767
  compatibility.response,
2921
2768
  baseUrl,
2922
2769
  maintenancePolicy
2923
2770
  )) {
2924
2771
  return void 0;
2925
2772
  }
2926
- _chunk3XXXMSSPjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
2773
+ _chunkKE6CSCUFjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
2927
2774
  quietAdvisory: wantsJson
2928
2775
  });
2929
2776
  if (maintenancePolicy !== "off") {
2930
- await _chunkDNGACHFXjs.runToolExecuteStage.call(void 0,
2777
+ await _chunkCOJHT2KFjs.runToolExecuteStage.call(void 0,
2931
2778
  "agent skills sync",
2932
- () => _chunk3XXXMSSPjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
2933
- update: _optionalChain([compatibility, 'access', _48 => _48.response, 'optionalAccess', _49 => _49.skills]),
2779
+ () => _chunkKE6CSCUFjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
2780
+ update: _optionalChain([compatibility, 'access', _46 => _46.response, 'optionalAccess', _47 => _47.skills]),
2934
2781
  mode: "detached"
2935
2782
  })
2936
2783
  );
@@ -2938,11 +2785,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2938
2785
  const legacyMetadata = await readMetadata();
2939
2786
  if (tracing) {
2940
2787
  submissionStartedAt = performance.now();
2941
- _chunkQ7WDXLYOjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2788
+ _chunkPKRW76XGjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2942
2789
  }
2943
2790
  return client.executeTool(parsed.toolId, parsed.params, {
2944
2791
  ...executeOptions,
2945
- ..._optionalChain([legacyMetadata, 'access', _50 => _50.executionMetadata, 'optionalAccess', _51 => _51.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {}
2792
+ ..._optionalChain([legacyMetadata, 'access', _48 => _48.executionMetadata, 'optionalAccess', _49 => _49.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {}
2946
2793
  });
2947
2794
  }
2948
2795
  }
@@ -2955,14 +2802,14 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2955
2802
  if (deferredCompatibility) {
2956
2803
  try {
2957
2804
  compatibility = await deferredCompatibility.result;
2958
- } catch (e4) {
2805
+ } catch (e3) {
2959
2806
  compatibilityReadFailed = true;
2960
2807
  }
2961
2808
  metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
2962
2809
  const updateRequiredBeforeExecution = error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
2963
2810
  if (updateRequiredBeforeExecution && maintenancePolicy !== "off" && compatibility && !compatibility.error) {
2964
- const baseUrl = _chunkVHJUH3TBjs.resolveConfig.call(void 0, ).baseUrl;
2965
- if (await _chunkDNGACHFXjs.maybeAutoUpdateAndRelaunch.call(void 0,
2811
+ const baseUrl = _chunkON56ISO6js.resolveConfig.call(void 0, ).baseUrl;
2812
+ if (await _chunkCOJHT2KFjs.maybeAutoUpdateAndRelaunch.call(void 0,
2966
2813
  compatibility.response,
2967
2814
  baseUrl,
2968
2815
  maintenancePolicy
@@ -2975,7 +2822,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2975
2822
  throw error;
2976
2823
  let failure = error;
2977
2824
  if (!(failure instanceof _chunkBBTKAASQjs.DeeplineError) || failure.code !== "PLAY_ALIAS_USED_AS_TOOL") {
2978
- const warningPreflightWasAvailable = !deferredCompatibility || !compatibilityReadFailed && !_optionalChain([compatibility, 'optionalAccess', _52 => _52.error]);
2825
+ const warningPreflightWasAvailable = !deferredCompatibility || !compatibilityReadFailed && !_optionalChain([compatibility, 'optionalAccess', _50 => _50.error]);
2979
2826
  if (metadata || warningPreflightWasAvailable) {
2980
2827
  try {
2981
2828
  await readMetadata();
@@ -2986,14 +2833,14 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2986
2833
  }
2987
2834
  }
2988
2835
  if (failure instanceof _chunkBBTKAASQjs.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
2989
- if (wantsJson) _chunkE7B73LGTjs.printJsonError.call(void 0, failure);
2836
+ if (wantsJson) _chunkZY6FL4O4js.printJsonError.call(void 0, failure);
2990
2837
  else console.error(failure.message);
2991
2838
  return 2;
2992
2839
  }
2993
- const guidanceLines = toolGuidanceLines(_optionalChain([metadata, 'optionalAccess', _53 => _53.guidance]));
2840
+ const guidanceLines = toolGuidanceLines(_optionalChain([metadata, 'optionalAccess', _51 => _51.guidance]));
2994
2841
  if (guidanceLines.length > 0) {
2995
2842
  if (wantsJson && failure instanceof Error) {
2996
- Object.assign(failure, { guidance: _optionalChain([metadata, 'optionalAccess', _54 => _54.guidance]) });
2843
+ Object.assign(failure, { guidance: _optionalChain([metadata, 'optionalAccess', _52 => _52.guidance]) });
2997
2844
  } else {
2998
2845
  console.error(
2999
2846
  [`Guidance for ${parsed.toolId}:`, ...guidanceLines].join("\n")
@@ -3006,23 +2853,23 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3006
2853
  let compatibility;
3007
2854
  try {
3008
2855
  compatibility = await deferredCompatibility.result;
3009
- } catch (e5) {
2856
+ } catch (e4) {
3010
2857
  }
3011
2858
  metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
3012
- const compatibilityResponse = _optionalChain([compatibility, 'optionalAccess', _55 => _55.response]);
2859
+ const compatibilityResponse = _optionalChain([compatibility, 'optionalAccess', _53 => _53.response]);
3013
2860
  successfulCompatibilityResponse = _nullishCoalesce(compatibilityResponse, () => ( void 0));
3014
- const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _56 => _56.auto_update]);
3015
- if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _57 => _57.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
3016
- await _chunkDNGACHFXjs.maybeAutoUpdateAndRelaunch.call(void 0,
2861
+ const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _54 => _54.auto_update]);
2862
+ if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _55 => _55.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
2863
+ await _chunkCOJHT2KFjs.maybeAutoUpdateAndRelaunch.call(void 0,
3017
2864
  compatibilityResponse,
3018
- _chunkVHJUH3TBjs.resolveConfig.call(void 0, ).baseUrl,
2865
+ _chunkON56ISO6js.resolveConfig.call(void 0, ).baseUrl,
3019
2866
  maintenancePolicy
3020
2867
  );
3021
2868
  }
3022
- if (!metadata && !_optionalChain([compatibility, 'optionalAccess', _58 => _58.error])) {
2869
+ if (!metadata && !_optionalChain([compatibility, 'optionalAccess', _56 => _56.error])) {
3023
2870
  try {
3024
2871
  metadata = await readMetadata();
3025
- } catch (e6) {
2872
+ } catch (e5) {
3026
2873
  }
3027
2874
  }
3028
2875
  if (metadata && !executionWarningsPrinted) {
@@ -3033,8 +2880,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3033
2880
  );
3034
2881
  }
3035
2882
  }
3036
- const responseMetadata = _chunkUNDLNT3Vjs.recordField.call(void 0,
3037
- _chunkUNDLNT3Vjs.recordField.call(void 0, rawResponse, "_metadata"),
2883
+ const responseMetadata = _chunkECWOIXAVjs.recordField.call(void 0,
2884
+ _chunkECWOIXAVjs.recordField.call(void 0, rawResponse, "_metadata"),
3038
2885
  "tool"
3039
2886
  );
3040
2887
  const listOutputPaths = responseMetadata.listOutputPaths;
@@ -3046,11 +2893,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3046
2893
  await readMetadata()
3047
2894
  );
3048
2895
  }
3049
- if (_chunkUNDLNT3Vjs.isRecord.call(void 0, rawResponse)) {
2896
+ if (_chunkECWOIXAVjs.isRecord.call(void 0, rawResponse)) {
3050
2897
  const { _metadata, ...execution } = rawResponse;
3051
2898
  rawResponse = execution;
3052
2899
  }
3053
- const { listConversion, summary, baseEnvelope } = await _chunkDNGACHFXjs.runToolExecuteStage.call(void 0,
2900
+ const { listConversion, summary, baseEnvelope } = await _chunkCOJHT2KFjs.runToolExecuteStage.call(void 0,
3054
2901
  "result formatting",
3055
2902
  async () => {
3056
2903
  const listConversion2 = _chunkHGFFYVXNjs.tryConvertToList.call(void 0, rawResponse, {
@@ -3059,7 +2906,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3059
2906
  if (toolExecuteExitCode(commandEnvelopeFromRawResponse(rawResponse)) !== 0 || listExtractorPaths.length > 0 && !listConversion2) {
3060
2907
  try {
3061
2908
  await readMetadata();
3062
- } catch (e7) {
2909
+ } catch (e6) {
3063
2910
  }
3064
2911
  }
3065
2912
  const summary2 = _chunkHGFFYVXNjs.extractSummaryFields.call(void 0, rawResponse);
@@ -3070,7 +2917,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3070
2917
  rawResponse,
3071
2918
  listConversion: listConversion2,
3072
2919
  summary: summary2,
3073
- guidance: _optionalChain([metadata, 'optionalAccess', _59 => _59.guidance]),
2920
+ guidance: _optionalChain([metadata, 'optionalAccess', _57 => _57.guidance]),
3074
2921
  listExpected: listExtractorPaths.length > 0
3075
2922
  });
3076
2923
  return { listConversion: listConversion2, summary: summary2, baseEnvelope: baseEnvelope2 };
@@ -3085,9 +2932,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3085
2932
  }
3086
2933
  skillsSyncAttempted = true;
3087
2934
  try {
3088
- await _chunkDNGACHFXjs.runToolExecuteStage.call(void 0,
2935
+ await _chunkCOJHT2KFjs.runToolExecuteStage.call(void 0,
3089
2936
  "agent skills sync",
3090
- () => _chunk3XXXMSSPjs.syncSdkSkillsIfNeeded.call(void 0, _chunkVHJUH3TBjs.resolveConfig.call(void 0, ).baseUrl, {
2937
+ () => _chunkKE6CSCUFjs.syncSdkSkillsIfNeeded.call(void 0, _chunkON56ISO6js.resolveConfig.call(void 0, ).baseUrl, {
3091
2938
  update: deliveredCompatibilityResponse.skills,
3092
2939
  mode: "detached"
3093
2940
  })
@@ -3098,15 +2945,15 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3098
2945
  );
3099
2946
  }
3100
2947
  };
3101
- const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkE7B73LGTjs.printCommandEnvelope.call(void 0, envelope, {
2948
+ const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, envelope, {
3102
2949
  ...options2,
3103
2950
  json: _nullishCoalesce(options2.json, () => ( wantsJson))
3104
2951
  });
3105
2952
  const printDeliveredJsonEnvelope = async (envelope, options2 = {}) => {
3106
2953
  await syncSkillsForDeliveredOutput();
3107
- _chunkE7B73LGTjs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
2954
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
3108
2955
  };
3109
- const delivered = await _chunkDNGACHFXjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
2956
+ const delivered = await _chunkCOJHT2KFjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
3110
2957
  if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
3111
2958
  await printDeliveredJsonEnvelope(baseEnvelope);
3112
2959
  return true;
@@ -3119,7 +2966,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3119
2966
  await printDeliveredJsonEnvelope({
3120
2967
  ...baseEnvelope,
3121
2968
  local: {
3122
- ..._chunkUNDLNT3Vjs.isRecord.call(void 0, baseEnvelope.local) ? baseEnvelope.local : {},
2969
+ ..._chunkECWOIXAVjs.isRecord.call(void 0, baseEnvelope.local) ? baseEnvelope.local : {},
3123
2970
  payload_file: jsonPath
3124
2971
  }
3125
2972
  });
@@ -3135,7 +2982,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3135
2982
  `${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
3136
2983
  );
3137
2984
  if (wantsJson) {
3138
- _chunkE7B73LGTjs.printJsonError.call(void 0, error);
2985
+ _chunkZY6FL4O4js.printJsonError.call(void 0, error);
3139
2986
  } else {
3140
2987
  console.error(error.message);
3141
2988
  }
@@ -3230,14 +3077,14 @@ inspect: ${inspection.inspect}
3230
3077
  return true;
3231
3078
  });
3232
3079
  if (delivered) {
3233
- await _chunkDNGACHFXjs.runToolExecuteStage.call(void 0,
3080
+ await _chunkCOJHT2KFjs.runToolExecuteStage.call(void 0,
3234
3081
  "acknowledge delivery",
3235
3082
  () => recovery.acknowledgeDelivery()
3236
3083
  );
3237
3084
  }
3238
3085
  if (delivered && deliveredCompatibilityResponse && deliveredCompatibilityResponse.update_required !== true) {
3239
- _chunk3XXXMSSPjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
3240
- quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _60 => _60.auto_update, 'optionalAccess', _61 => _61.should_auto_update]) === true
3086
+ _chunkKE6CSCUFjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
3087
+ quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _58 => _58.auto_update, 'optionalAccess', _59 => _59.should_auto_update]) === true
3241
3088
  });
3242
3089
  }
3243
3090
  if (delivered && !skillsSyncAttempted) await syncSkillsForDeliveredOutput();