deepline 0.3.535 → 0.3.536

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 (229) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +232 -147
  2. package/dist/bundling-sources/sdk/src/index.ts +4 -0
  3. package/dist/bundling-sources/sdk/src/plays/local-file-discovery.ts +27 -1
  4. package/dist/bundling-sources/sdk/src/plays/run-request.ts +16 -5
  5. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  6. package/dist/bundling-sources/sdk/src/types.ts +2 -23
  7. package/dist/bundling-sources/shared_libs/integration-contracts/monitor-fleet-contract.ts +26 -14
  8. package/dist/bundling-sources/shared_libs/integration-contracts/monitor-input-contract.ts +33 -8
  9. package/dist/bundling-sources/shared_libs/monitors/fleets/count-drift-alert.ts +121 -0
  10. package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +8 -0
  11. package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +14 -82
  12. package/dist/bundling-sources/shared_libs/monitors/package.json +1 -0
  13. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +4 -4
  14. package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +0 -26
  15. package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +36 -0
  16. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +21 -31
  17. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +88 -96
  18. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +12 -10
  19. package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +3 -1
  20. package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +71 -2
  21. package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +9 -0
  22. package/dist/bundling-sources/shared_libs/play-runtime/governor/rate-state-backend.ts +2 -0
  23. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +1 -0
  24. package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +127 -9
  25. package/dist/bundling-sources/shared_libs/play-runtime/memory-ledger.ts +15 -2
  26. package/dist/bundling-sources/shared_libs/play-runtime/prebuilt-result-quality.ts +1 -1
  27. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +6 -0
  28. package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/fixture-capacity-simulator.ts +1 -0
  29. package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/gradient2-concurrency-controller.ts +41 -0
  30. package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/provider-capacity-policy.ts +6 -0
  31. package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/provider-concurrency-policy.ts +9 -0
  32. package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +7 -0
  33. package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +2 -2
  34. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +5 -2
  35. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +8 -3
  36. package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +7 -0
  37. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-compute-usage.ts +31 -0
  38. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +6 -0
  39. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +26 -1
  40. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-scope.ts +11 -4
  41. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +73 -18
  42. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +169 -2
  43. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +26 -4
  44. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +84 -49
  45. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +37 -32
  46. package/dist/bundling-sources/shared_libs/plays/launch/input-contract.ts +13 -1
  47. package/dist/bundling-sources/shared_libs/plays/local-file-discovery.ts +68 -1
  48. package/dist/bundling-sources/shared_libs/product-notifications/configuration-draft.ts +57 -1
  49. package/dist/bundling-sources/shared_libs/product-notifications/configuration.ts +22 -9
  50. package/dist/cli/auth-6XQKFOLG.js +43 -0
  51. package/dist/cli/{auth-ZCTMB5RA.mjs → auth-KCTCUO7P.mjs} +7 -7
  52. package/dist/cli/{billing-GVFKZQH3.js → billing-4VBGZ3CT.js} +273 -112
  53. package/dist/cli/{billing-OU2ZHL72.mjs → billing-OOJHKLNS.mjs} +185 -24
  54. package/dist/cli/{chunk-FGN75ZN6.js → chunk-2B4IOGFD.js} +390 -382
  55. package/dist/cli/{chunk-KOZBZPRM.js → chunk-2FCSUOYN.js} +55 -55
  56. package/dist/cli/{chunk-T2N3B7IQ.js → chunk-2GJZLIKW.js} +8 -8
  57. package/dist/cli/{chunk-AUEUAPVS.mjs → chunk-2YWJS76L.mjs} +1 -1
  58. package/dist/cli/{chunk-W5YJYU4G.mjs → chunk-3PCYV6ZJ.mjs} +2 -2
  59. package/dist/cli/{chunk-UUQ2OXMH.js → chunk-4E5JXZ3W.js} +18 -20
  60. package/dist/cli/{chunk-R4RG4FV5.mjs → chunk-4KWD3MX2.mjs} +13 -10
  61. package/dist/cli/{chunk-XSOTEVOB.js → chunk-6BBGUQJJ.js} +50 -141
  62. package/dist/cli/{chunk-PHLNYBAA.js → chunk-6VUGBQZQ.js} +5 -5
  63. package/dist/cli/{chunk-G2DLG32W.mjs → chunk-AB2GBOD4.mjs} +40 -27
  64. package/dist/cli/{chunk-JWWYLGUT.mjs → chunk-ANUKBZ6W.mjs} +475 -11
  65. package/dist/cli/{chunk-FZKPPB5P.mjs → chunk-BASLYGXK.mjs} +85 -77
  66. package/dist/cli/{chunk-SQWET4SL.js → chunk-BBTKAASQ.js} +2 -1
  67. package/dist/cli/{chunk-NRO3NTVO.js → chunk-CBV7AKWM.js} +5 -5
  68. package/dist/cli/{chunk-PI5R65OQ.js → chunk-CIDN5K23.js} +1 -1
  69. package/dist/cli/{chunk-QNHHZ63P.mjs → chunk-CQBIO6HW.mjs} +1 -1
  70. package/dist/cli/{chunk-2KHUFWTK.js → chunk-CQDQNZGH.js} +42 -37
  71. package/dist/cli/{chunk-D4MHCCIR.js → chunk-CWSLUNA6.js} +33 -33
  72. package/dist/cli/{chunk-E3CLOVG5.mjs → chunk-CXTW7SRW.mjs} +50 -141
  73. package/dist/cli/{chunk-H6SWS5CG.mjs → chunk-DA2I2M7D.mjs} +2 -2
  74. package/dist/cli/{chunk-WAIBM6KX.mjs → chunk-DQHUJMCL.mjs} +5 -5
  75. package/dist/cli/{chunk-DWPY6ZID.mjs → chunk-DUYAMLOC.mjs} +1 -1
  76. package/dist/cli/{chunk-K53NKWZO.mjs → chunk-E24UGPGG.mjs} +13 -15
  77. package/dist/cli/{chunk-STR5LXK4.mjs → chunk-FSIVF2SI.mjs} +1 -1
  78. package/dist/cli/{chunk-7R5DAANG.mjs → chunk-GF32SBST.mjs} +1 -1
  79. package/dist/cli/{chunk-7CWSAEYS.mjs → chunk-GHLDCLSC.mjs} +1 -1
  80. package/dist/cli/{chunk-ZUVE63Y7.js → chunk-GTVZKY3F.js} +2 -2
  81. package/dist/cli/{chunk-J75DANZY.mjs → chunk-HAJQGP5V.mjs} +2 -2
  82. package/dist/cli/{chunk-RFQWSH6I.js → chunk-HWDKRN7L.js} +3 -3
  83. package/dist/cli/{chunk-5YAJGRWB.js → chunk-IPVRMYWT.js} +7 -7
  84. package/dist/cli/{chunk-ZPGGW27Q.mjs → chunk-JL2OTMSG.mjs} +1 -0
  85. package/dist/cli/{chunk-K76AEBFY.mjs → chunk-JUHDJNSI.mjs} +4 -4
  86. package/dist/cli/{chunk-R2KKEHJN.mjs → chunk-KPQHUVYW.mjs} +5 -5
  87. package/dist/cli/{chunk-6LHX33VN.js → chunk-KWYGWO4Y.js} +9 -6
  88. package/dist/cli/{chunk-7PXP2FQK.js → chunk-LDGZFDUB.js} +2 -2
  89. package/dist/cli/{chunk-KWGXHPHL.js → chunk-LN6RXDTB.js} +523 -59
  90. package/dist/cli/{chunk-TCVCFZP6.mjs → chunk-LZXZQPA2.mjs} +4 -1
  91. package/dist/cli/{chunk-2D6SWQTK.js → chunk-MSP4DTSD.js} +13 -13
  92. package/dist/cli/{chunk-BNH4Y35W.mjs → chunk-OLH2PHMC.mjs} +2 -2
  93. package/dist/cli/{chunk-QYBAHYP4.mjs → chunk-OUDTOMZC.mjs} +7 -9
  94. package/dist/cli/{chunk-GESIFFQX.mjs → chunk-OVX3Q5Q3.mjs} +1 -1
  95. package/dist/cli/{chunk-6TYRRNXY.mjs → chunk-PNY3BWHP.mjs} +2 -2
  96. package/dist/cli/{chunk-DYIWDUY4.js → chunk-Q4MNUOS4.js} +316 -303
  97. package/dist/cli/{chunk-5EKNDNFQ.js → chunk-Q5CXV3E3.js} +2 -2
  98. package/dist/cli/{chunk-W6T23EUC.mjs → chunk-RVSSQPQO.mjs} +1 -1
  99. package/dist/cli/{chunk-WNNA4L6Z.js → chunk-SLPJ3LXI.js} +22 -22
  100. package/dist/cli/{chunk-K3IPGMGP.js → chunk-TX5TUHJN.js} +17 -19
  101. package/dist/cli/{chunk-IF75RD6U.js → chunk-U2LVWCTD.js} +18 -6
  102. package/dist/cli/{chunk-ZS2WHWWL.js → chunk-UNDLNT3V.js} +1 -1
  103. package/dist/cli/{chunk-4NLRWKZB.js → chunk-VBDZIMWD.js} +26 -26
  104. package/dist/cli/{chunk-DAPKLYST.js → chunk-W7AEIGZR.js} +41 -41
  105. package/dist/cli/{chunk-LVISZFYO.mjs → chunk-WC5M3JXE.mjs} +2 -2
  106. package/dist/cli/{chunk-C374C22Y.js → chunk-WOQO3GV4.js} +14 -11
  107. package/dist/cli/{chunk-243O3FH5.js → chunk-XBAH3TKU.js} +5 -5
  108. package/dist/cli/{chunk-DFJODFMC.mjs → chunk-XJD2GYUP.mjs} +5 -5
  109. package/dist/cli/{chunk-BF65LB7X.mjs → chunk-XVZRJJDS.mjs} +4 -4
  110. package/dist/cli/{chunk-OM732MGV.js → chunk-Y2NTPYGS.js} +17 -17
  111. package/dist/cli/{chunk-YFZLZNTH.mjs → chunk-YBMHOH6H.mjs} +4 -4
  112. package/dist/cli/{chunk-RKY4LBX3.mjs → chunk-YRLAUGQY.mjs} +3 -3
  113. package/dist/cli/{chunk-FKD3KL5Q.mjs → chunk-Z2XA6YU4.mjs} +10 -5
  114. package/dist/cli/{chunk-JQQG4QL4.mjs → chunk-Z7UIOGW4.mjs} +3 -3
  115. package/dist/cli/{chunk-HYBZWSSH.js → chunk-ZEV2Y56V.js} +44 -44
  116. package/dist/cli/{chunk-MI6ZP7XI.mjs → chunk-ZG7BOECV.mjs} +18 -6
  117. package/dist/cli/{chunk-HWPOXCCK.js → chunk-ZILSRDIN.js} +8 -8
  118. package/dist/cli/{chunk-CIDATNTY.js → chunk-ZISEH7OL.js} +16 -16
  119. package/dist/cli/{chunk-KA6ZERJL.js → chunk-ZZ4MF2GI.js} +6 -6
  120. package/dist/cli/command-docs.js +2 -2
  121. package/dist/cli/command-docs.mjs +1 -1
  122. package/dist/cli/{csv-CD55KEIO.js → csv-2V2DIFNG.js} +15 -15
  123. package/dist/cli/{csv-CLPVMIRF.mjs → csv-P3HLK4GO.mjs} +6 -6
  124. package/dist/cli/{db-MQKLDAEO.js → db-MREAQVW6.js} +36 -36
  125. package/dist/cli/{db-AU4SMWUN.mjs → db-ZYOY3QRQ.mjs} +9 -9
  126. package/dist/cli/describe-IKZFOADR.mjs +49 -0
  127. package/dist/cli/describe-WW3OQRLP.js +49 -0
  128. package/dist/cli/describe-core.d.mts +3 -3
  129. package/dist/cli/describe-core.d.ts +3 -3
  130. package/dist/cli/describe-core.js +5 -5
  131. package/dist/cli/describe-core.mjs +4 -4
  132. package/dist/cli/{executions-77GOLWRM.js → executions-H5IJ7QSQ.js} +11 -11
  133. package/dist/cli/{executions-TFIJPUX7.mjs → executions-KTSY5M34.mjs} +9 -9
  134. package/dist/cli/{feedback-OV5YAL3A.js → feedback-724QK3Z5.js} +16 -16
  135. package/dist/cli/{feedback-2WRSZ5WL.mjs → feedback-WWJRIXEU.mjs} +8 -8
  136. package/dist/cli/git-PHYRD56H.js +25 -0
  137. package/dist/cli/{git-VNS4ATLZ.mjs → git-R5VRG7X6.mjs} +7 -7
  138. package/dist/cli/index.js +151 -157
  139. package/dist/cli/index.mjs +51 -57
  140. package/dist/cli/{legacy-noops-HDOB5C6F.js → legacy-noops-C6GDEGPU.js} +11 -11
  141. package/dist/cli/{legacy-noops-C732QDCY.mjs → legacy-noops-PWZ5XLAO.mjs} +8 -8
  142. package/dist/cli/{monitors-5IUMHH3E.js → monitors-VAVQ4WCE.js} +125 -122
  143. package/dist/cli/{monitors-2LYEFXOU.mjs → monitors-WQSKMHAP.mjs} +19 -16
  144. package/dist/cli/{org-ADW2EVAC.js → org-CWWRWXZQ.js} +89 -89
  145. package/dist/cli/{org-G4YGZPHS.mjs → org-MAL4QPVF.mjs} +9 -9
  146. package/dist/cli/{play-7GQ56C2D.mjs → play-ILW6MSNG.mjs} +123 -76
  147. package/dist/cli/{play-EHSOSSHT.js → play-WJOWK5PQ.js} +641 -594
  148. package/dist/cli/{providers-WL3YTCSV.mjs → providers-4V2NMLZZ.mjs} +9 -9
  149. package/dist/cli/{providers-PWCF6OOO.js → providers-W662ANCH.js} +12 -12
  150. package/dist/cli/{quickstart-ZKI5MURA.js → quickstart-BW6EBUYX.js} +8 -8
  151. package/dist/cli/{quickstart-323XOPGI.mjs → quickstart-C22BR743.mjs} +6 -6
  152. package/dist/cli/{run-XZPWA6JS.js → run-KW7KW4FX.js} +50 -53
  153. package/dist/cli/{run-ZCNZU3K2.mjs → run-SPAU5IMW.mjs} +31 -34
  154. package/dist/cli/search-HLE54W5G.js +32 -0
  155. package/dist/cli/{search-CVLVSFMJ.mjs → search-XPC75HLM.mjs} +10 -11
  156. package/dist/cli/{search-output-6PY6RN2R.mjs → search-output-JKYJSEPM.mjs} +6 -6
  157. package/dist/cli/{search-output-7HRSSRBS.js → search-output-VJYE7USJ.js} +8 -8
  158. package/dist/cli/{secrets-6S2ZWDIM.mjs → secrets-OJG73GXQ.mjs} +9 -9
  159. package/dist/cli/{secrets-IYD5VKY4.js → secrets-YB57KGSB.js} +18 -18
  160. package/dist/cli/{sessions-GVEX5TUJ.mjs → sessions-7ZL37BW4.mjs} +8 -8
  161. package/dist/cli/sessions-VEBYZIEU.js +22 -0
  162. package/dist/cli/{settings-CANK4HJQ.js → settings-A7DD2ZYE.js} +88 -89
  163. package/dist/cli/{settings-BN5MJZ3C.mjs → settings-RKSQB7FA.mjs} +15 -16
  164. package/dist/cli/{setup-JNMSCCU4.mjs → setup-NXDUTITY.mjs} +11 -12
  165. package/dist/cli/{setup-YSGKGLSJ.js → setup-S3K5YU62.js} +51 -52
  166. package/dist/cli/skills-NVQ744CN.js +36 -0
  167. package/dist/cli/{skills-QCQN2UM2.mjs → skills-VMFAIDO6.mjs} +9 -10
  168. package/dist/cli/{tools-CDPOID7V.mjs → tools-52NTHBSJ.mjs} +20 -21
  169. package/dist/cli/tools-SBDUL3WB.js +56 -0
  170. package/dist/cli/update-HHVFZPCV.js +34 -0
  171. package/dist/cli/{update-D3ZERUQ3.mjs → update-SAKBEKMV.mjs} +11 -12
  172. package/dist/cli/{views-RDZRWQBQ.mjs → views-ACRV7MD6.mjs} +54 -10
  173. package/dist/cli/{views-4NV2KQKA.js → views-C3GJOBDG.js} +66 -22
  174. package/dist/cli/{workflow-2CG3TVCG.mjs → workflow-CS22E7TC.mjs} +10 -10
  175. package/dist/cli/{workflow-RABJCAZC.js → workflow-ZNWCZEGN.js} +20 -20
  176. package/dist/{client-DhSvMO3A.d.mts → client-BlLYQDNo.d.mts} +1 -1
  177. package/dist/{client-oGNJMQFd.d.ts → client-DSQlkIDO.d.ts} +1 -1
  178. package/dist/{client-core-CdWH6Sii.d.ts → client-core-CDwapXy5.d.ts} +159 -108
  179. package/dist/{client-core-CVG1Et-4.d.mts → client-core-rX7n2H8U.d.mts} +159 -108
  180. package/dist/{compiler-manifest-D2ZlBGxj.d.ts → compiler-manifest-BHNC4RL-.d.mts} +15 -22
  181. package/dist/{compiler-manifest-D2ZlBGxj.d.mts → compiler-manifest-BHNC4RL-.d.ts} +15 -22
  182. package/dist/{errors-B-gOQdj-.d.mts → errors-D7sPXrvB.d.mts} +1 -1
  183. package/dist/{errors-CB0KAmmV.d.ts → errors-lhtIWG5Z.d.ts} +1 -1
  184. package/dist/{index-c3nvUGCS.d.ts → index-CQTBHXHr.d.ts} +1 -1
  185. package/dist/{index-BbJADro4.d.mts → index-NaDZq2xf.d.mts} +1 -1
  186. package/dist/index.d.mts +7 -7
  187. package/dist/index.d.ts +7 -7
  188. package/dist/index.js +15 -15
  189. package/dist/index.mjs +11 -11
  190. package/dist/install-integrity.json +129 -132
  191. package/dist/monitor-fleet-contract.d.mts +17 -11
  192. package/dist/monitor-fleet-contract.d.ts +17 -11
  193. package/dist/monitor-fleet-contract.js +3 -3
  194. package/dist/monitor-fleet-contract.mjs +2 -2
  195. package/dist/monitor-input-contract.js +2 -2
  196. package/dist/monitor-input-contract.mjs +1 -1
  197. package/dist/plays/bundle-play-file.d.mts +3 -3
  198. package/dist/plays/bundle-play-file.d.ts +3 -3
  199. package/dist/plays/bundle-play-file.mjs +17 -5
  200. package/dist/plays/csv-data-input.js +3 -3
  201. package/dist/plays/csv-data-input.mjs +2 -2
  202. package/dist/plays/play-description.d.mts +2 -2
  203. package/dist/plays/play-description.d.ts +2 -2
  204. package/dist/plays/run-request.d.mts +2 -2
  205. package/dist/plays/run-request.d.ts +2 -2
  206. package/dist/plays/run-request.js +3 -3
  207. package/dist/plays/run-request.mjs +2 -2
  208. package/dist/release.d.mts +1 -1
  209. package/dist/release.d.ts +1 -1
  210. package/dist/release.js +2 -2
  211. package/dist/release.mjs +1 -1
  212. package/dist/server.d.mts +4 -4
  213. package/dist/server.d.ts +4 -4
  214. package/dist/server.js +12 -12
  215. package/dist/server.mjs +6 -6
  216. package/package.json +1 -1
  217. package/dist/cli/auth-VDCU3T6A.js +0 -43
  218. package/dist/cli/chunk-4QELPWUW.mjs +0 -405
  219. package/dist/cli/chunk-T7RBM2WX.js +0 -405
  220. package/dist/cli/describe-5BFNHT5V.js +0 -50
  221. package/dist/cli/describe-AWJUXE2U.mjs +0 -50
  222. package/dist/cli/git-HGMX52XU.js +0 -25
  223. package/dist/cli/pages-KXKWSCEV.mjs +0 -266
  224. package/dist/cli/pages-VTJGAI2D.js +0 -266
  225. package/dist/cli/search-J6EY7DQN.js +0 -33
  226. package/dist/cli/sessions-7HPIVSQ4.js +0 -22
  227. package/dist/cli/skills-WDGSSKJZ.js +0 -37
  228. package/dist/cli/tools-URNVXSTZ.js +0 -57
  229. package/dist/cli/update-Q6JW32IA.js +0 -35
@@ -2,11 +2,11 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk6LHX33VNjs = require('./chunk-6LHX33VN.js');
5
+ var _chunkKWYGWO4Yjs = require('./chunk-KWYGWO4Y.js');
6
6
 
7
7
 
8
8
 
9
- var _chunkK3IPGMGPjs = require('./chunk-K3IPGMGP.js');
9
+ var _chunkTX5TUHJNjs = require('./chunk-TX5TUHJN.js');
10
10
 
11
11
 
12
12
 
@@ -27,7 +27,7 @@ var _chunkK3IPGMGPjs = require('./chunk-K3IPGMGP.js');
27
27
 
28
28
 
29
29
 
30
- var _chunkZS2WHWWLjs = require('./chunk-ZS2WHWWL.js');
30
+ var _chunkUNDLNT3Vjs = require('./chunk-UNDLNT3V.js');
31
31
 
32
32
 
33
33
  var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
@@ -46,10 +46,10 @@ var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
46
46
  var _chunkHGFFYVXNjs = require('./chunk-HGFFYVXN.js');
47
47
 
48
48
 
49
- var _chunk243O3FH5js = require('./chunk-243O3FH5.js');
49
+ var _chunkXBAH3TKUjs = require('./chunk-XBAH3TKU.js');
50
50
 
51
51
 
52
- var _chunkFGN75ZN6js = require('./chunk-FGN75ZN6.js');
52
+ var _chunk2B4IOGFDjs = require('./chunk-2B4IOGFD.js');
53
53
 
54
54
 
55
55
  var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
@@ -59,18 +59,18 @@ var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
59
59
 
60
60
 
61
61
 
62
- var _chunkWNNA4L6Zjs = require('./chunk-WNNA4L6Z.js');
62
+ var _chunkSLPJ3LXIjs = require('./chunk-SLPJ3LXI.js');
63
63
 
64
64
 
65
65
 
66
66
 
67
- var _chunk7PXP2FQKjs = require('./chunk-7PXP2FQK.js');
67
+ var _chunkLDGZFDUBjs = require('./chunk-LDGZFDUB.js');
68
68
 
69
69
 
70
70
 
71
71
 
72
72
 
73
- var _chunkHYBZWSSHjs = require('./chunk-HYBZWSSH.js');
73
+ var _chunkZEV2Y56Vjs = require('./chunk-ZEV2Y56V.js');
74
74
 
75
75
 
76
76
 
@@ -78,15 +78,16 @@ var _chunkHYBZWSSHjs = require('./chunk-HYBZWSSH.js');
78
78
 
79
79
 
80
80
 
81
- var _chunkKWGXHPHLjs = require('./chunk-KWGXHPHL.js');
82
81
 
82
+ var _chunkLN6RXDTBjs = require('./chunk-LN6RXDTB.js');
83
83
 
84
84
 
85
85
 
86
- var _chunkHWPOXCCKjs = require('./chunk-HWPOXCCK.js');
87
86
 
87
+ var _chunkZILSRDINjs = require('./chunk-ZILSRDIN.js');
88
88
 
89
- var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.js');
89
+
90
+ var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
90
91
 
91
92
  // src/cli/commands/tools.ts
92
93
  var _commander = require('commander');
@@ -189,10 +190,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
189
190
  }
190
191
  };
191
192
  function pendingToolExecutionPath(input) {
192
- const config = _chunkHWPOXCCKjs.resolveConfig.call(void 0, );
193
+ const config = _chunkZILSRDINjs.resolveConfig.call(void 0, );
193
194
  const fingerprint = _crypto.createHash.call(void 0, "sha256").update(config.baseUrl).update("\0").update(_crypto.createHash.call(void 0, "sha256").update(config.apiKey).digest("hex")).update("\0").update(input.toolId).update("\0").update(_chunkXDVT3GOMjs.stableStringify.call(void 0, input.params)).update("\0").update(input.responseIntent).digest("hex");
194
195
  return _path.join.call(void 0,
195
- _chunkHWPOXCCKjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
196
+ _chunkZILSRDINjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
196
197
  `${PENDING_PREFIX}${fingerprint}.json`
197
198
  );
198
199
  }
@@ -344,13 +345,13 @@ var TOOL_COMMAND_TEMPLATES = {
344
345
  execute: "deepline run <toolId> --input '{...}'"
345
346
  };
346
347
  function toListedTool(tool) {
347
- if (_chunkZS2WHWWLjs.isPlayLikeTool.call(void 0, tool)) {
348
+ if (_chunkUNDLNT3Vjs.isPlayLikeTool.call(void 0, tool)) {
348
349
  return {
349
350
  ...tool,
350
351
  description: listedToolDescription(tool),
351
352
  id: tool.toolId,
352
353
  type: "play",
353
- executeCommand: _chunkZS2WHWWLjs.playRunCommandForTool.call(void 0, tool, tool.toolId)
354
+ executeCommand: _chunkUNDLNT3Vjs.playRunCommandForTool.call(void 0, tool, tool.toolId)
354
355
  };
355
356
  }
356
357
  return {
@@ -383,7 +384,7 @@ function zeroMatchToolGuidance(options) {
383
384
  ...query ? [
384
385
  {
385
386
  label: "Use ranked semantic search for intent-style queries",
386
- command: `deepline search --type tools -- ${shellCommandArg(query)}`
387
+ command: `deepline search -- ${shellCommandArg(query)}`
387
388
  },
388
389
  ...options.mode === "all" ? [
389
390
  {
@@ -395,13 +396,7 @@ function zeroMatchToolGuidance(options) {
395
396
  {
396
397
  label: "List the current atomic tool catalog",
397
398
  command: "deepline tools list"
398
- },
399
- ...query ? [
400
- {
401
- label: "Search composed Deepline plays separately",
402
- command: `deepline search --type prebuilts -- ${shellCommandArg(query)}`
403
- }
404
- ] : []
399
+ }
405
400
  ];
406
401
  return {
407
402
  reason: "filters_matched_no_atomic_tools",
@@ -432,37 +427,37 @@ function firstSentence(text) {
432
427
  return (match ? match[0] : clean).trim();
433
428
  }
434
429
  function requiredInputIds(tool) {
435
- const inputSchema = _chunkZS2WHWWLjs.recordField.call(void 0,
430
+ const inputSchema = _chunkUNDLNT3Vjs.recordField.call(void 0,
436
431
  tool,
437
432
  "inputSchema",
438
433
  "input_schema"
439
434
  );
440
- return _chunkZS2WHWWLjs.toolInputFieldsForDisplay.call(void 0, inputSchema).filter((field) => field.required === true).map((field) => String(_nullishCoalesce(field.name, () => ( "")))).filter(Boolean);
435
+ return _chunkUNDLNT3Vjs.toolInputFieldsForDisplay.call(void 0, inputSchema).filter((field) => field.required === true).map((field) => String(_nullishCoalesce(field.name, () => ( "")))).filter(Boolean);
441
436
  }
442
437
  function notConnectedSuffix(tool) {
443
438
  const record = tool;
444
- const status = _chunkZS2WHWWLjs.stringField.call(void 0, record, "credentialStatus", "credential_status");
439
+ const status = _chunkUNDLNT3Vjs.stringField.call(void 0, record, "credentialStatus", "credential_status");
445
440
  const connected = record.connected;
446
441
  const message = toolConnectionStatusMessage({
447
442
  connected: connected === false ? false : void 0,
448
443
  credentialStatus: status || void 0,
449
- connectionMessage: _chunkZS2WHWWLjs.stringField.call(void 0, record, "connectionMessage", "connection_message") || void 0
444
+ connectionMessage: _chunkUNDLNT3Vjs.stringField.call(void 0, record, "connectionMessage", "connection_message") || void 0
450
445
  });
451
446
  return message ? ` - \u26A0 ${message}` : "";
452
447
  }
453
448
  function shortPricingHint(tool) {
454
- const pricing = _chunkZS2WHWWLjs.recordField.call(void 0,
449
+ const pricing = _chunkUNDLNT3Vjs.recordField.call(void 0,
455
450
  tool,
456
451
  "pricing"
457
452
  );
458
453
  const credits = numberField(pricing, "creditsPerUnit", "credits_per_unit");
459
- const unit = _chunkZS2WHWWLjs.stringField.call(void 0, pricing, "unit");
454
+ const unit = _chunkUNDLNT3Vjs.stringField.call(void 0, pricing, "unit");
460
455
  if (credits !== null) {
461
456
  return `${formatDecimal(credits)} cr/${unit || "unit"}`;
462
457
  }
463
- const summary = _chunkZS2WHWWLjs.stringField.call(void 0, pricing, "summary");
458
+ const summary = _chunkUNDLNT3Vjs.stringField.call(void 0, pricing, "summary");
464
459
  if (summary) return summary;
465
- const displayText = _chunkZS2WHWWLjs.stringField.call(void 0, pricing, "displayText", "display_text");
460
+ const displayText = _chunkUNDLNT3Vjs.stringField.call(void 0, pricing, "displayText", "display_text");
466
461
  return displayText || null;
467
462
  }
468
463
  function aggregateCategorySummaries(tools) {
@@ -506,13 +501,13 @@ function categoryEnumerationRender(summaries) {
506
501
  };
507
502
  }
508
503
  async function listToolCategories(emitJson, compact) {
509
- const client = new (0, _chunk243O3FH5js.DeeplineClient)();
504
+ const client = new (0, _chunkXBAH3TKUjs.DeeplineClient)();
510
505
  if (!emitJson) {
511
506
  const summaries2 = (await client.listToolCategories()).map((category) => ({
512
507
  ...category,
513
508
  description: describeToolCategory(category.name)
514
509
  }));
515
- _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
510
+ _chunkLN6RXDTBjs.printCommandEnvelope.call(void 0,
516
511
  { categories: summaries2, render: categoryEnumerationRender(summaries2) },
517
512
  { json: false }
518
513
  );
@@ -522,7 +517,7 @@ async function listToolCategories(emitJson, compact) {
522
517
  const items = rawTools.map(toListedTool);
523
518
  const summaries = aggregateCategorySummaries(rawTools);
524
519
  const outputItems = compact ? items.map(compactTool) : items;
525
- _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
520
+ _chunkLN6RXDTBjs.printCommandEnvelope.call(void 0,
526
521
  {
527
522
  tools: outputItems,
528
523
  count: outputItems.length,
@@ -541,7 +536,7 @@ function unknownCategoryError(category, summaries, emitJson) {
541
536
  const known = summaries.map((item) => item.name);
542
537
  const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
543
538
  if (emitJson) {
544
- _chunkKWGXHPHLjs.printJson.call(void 0, {
539
+ _chunkLN6RXDTBjs.printJson.call(void 0, {
545
540
  ok: false,
546
541
  exitCode: 4,
547
542
  code: "TOOL_CATEGORY_NOT_FOUND",
@@ -555,13 +550,13 @@ function unknownCategoryError(category, summaries, emitJson) {
555
550
  const render = categoryEnumerationRender(summaries);
556
551
  console.error(message);
557
552
  console.error("");
558
- console.error(_chunkKWGXHPHLjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
553
+ console.error(_chunkLN6RXDTBjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
559
554
  console.error("");
560
555
  console.error(`Valid categories: ${known.join(", ")}`);
561
556
  return 4;
562
557
  }
563
558
  async function listToolsInCategory(category, emitJson) {
564
- const client = new (0, _chunk243O3FH5js.DeeplineClient)();
559
+ const client = new (0, _chunkXBAH3TKUjs.DeeplineClient)();
565
560
  const { tools: rawTools, categories } = await client.listToolsInCategory(category);
566
561
  const summaries = categories.map((item) => ({
567
562
  ...item,
@@ -597,7 +592,7 @@ async function listToolsInCategory(category, emitJson) {
597
592
  }
598
593
  ]
599
594
  };
600
- _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
595
+ _chunkLN6RXDTBjs.printCommandEnvelope.call(void 0,
601
596
  {
602
597
  category,
603
598
  total: rows.length,
@@ -610,7 +605,7 @@ async function listToolsInCategory(category, emitJson) {
610
605
  return 0;
611
606
  }
612
607
  async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
613
- const client = new (0, _chunk243O3FH5js.DeeplineClient)();
608
+ const client = new (0, _chunkXBAH3TKUjs.DeeplineClient)();
614
609
  const items = (await client.listTools({
615
610
  categories: requestedCategories.join(","),
616
611
  compact
@@ -639,7 +634,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
639
634
  ]
640
635
  };
641
636
  const outputItems = compact ? items.map(compactTool) : items;
642
- _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
637
+ _chunkLN6RXDTBjs.printCommandEnvelope.call(void 0,
643
638
  {
644
639
  tools: outputItems,
645
640
  count: outputItems.length,
@@ -658,13 +653,13 @@ async function listTools(category, options = {}) {
658
653
  const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
659
654
  const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
660
655
  const compact = options.compact !== false;
661
- const emitJson = options.json === true || _chunkKWGXHPHLjs.shouldEmitJson.call(void 0, );
656
+ const emitJson = options.json === true || _chunkLN6RXDTBjs.shouldEmitJson.call(void 0, );
662
657
  if (positional && flagCategories.length > 0) {
663
658
  const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
664
659
  if (!flagIsSameSingle) {
665
660
  const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
666
661
  if (emitJson) {
667
- _chunkKWGXHPHLjs.printJson.call(void 0, {
662
+ _chunkLN6RXDTBjs.printJson.call(void 0, {
668
663
  ok: false,
669
664
  exitCode: 2,
670
665
  code: "TOOL_LIST_CATEGORY_CONFLICT",
@@ -691,7 +686,7 @@ async function grepTools(queryInput, options = {}) {
691
686
  console.error("Usage: deepline tools grep <query> [--json]");
692
687
  return 1;
693
688
  }
694
- const client = new (0, _chunk243O3FH5js.DeeplineClient)();
689
+ const client = new (0, _chunkXBAH3TKUjs.DeeplineClient)();
695
690
  const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
696
691
  const mode = _nullishCoalesce(options.mode, () => ( "all"));
697
692
  const jsonOutput = options.json === true;
@@ -715,7 +710,7 @@ async function grepTools(queryInput, options = {}) {
715
710
  query,
716
711
  mode
717
712
  }) : null;
718
- _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
713
+ _chunkLN6RXDTBjs.printCommandEnvelope.call(void 0,
719
714
  {
720
715
  tools: outputTools,
721
716
  count: outputTools.length,
@@ -733,7 +728,7 @@ async function grepTools(queryInput, options = {}) {
733
728
  } : {},
734
729
  commandTemplates: TOOL_COMMAND_TEMPLATES
735
730
  },
736
- { json: options.json || _chunkKWGXHPHLjs.shouldEmitJson.call(void 0, ) }
731
+ { json: options.json || _chunkLN6RXDTBjs.shouldEmitJson.call(void 0, ) }
737
732
  );
738
733
  return 0;
739
734
  }
@@ -776,7 +771,7 @@ async function findPlayForToolId(client, toolId, cliInvocationId) {
776
771
  return _nullishCoalesce(plays.find((play) => playIdentifiers(play).includes(requested)), () => ( null));
777
772
  }
778
773
  function isMissingToolMetadataError(error) {
779
- return error instanceof _chunkSQWET4SLjs.DeeplineError && error.statusCode === 404;
774
+ return error instanceof _chunkBBTKAASQjs.DeeplineError && error.statusCode === 404;
780
775
  }
781
776
  function playAliasToolErrorMessage(toolId, play) {
782
777
  const playName = _nullishCoalesce(play.reference, () => ( play.name));
@@ -788,12 +783,12 @@ function printPlayAliasToolError(toolId, play) {
788
783
  console.error(playAliasToolErrorMessage(toolId, play));
789
784
  }
790
785
  function playLikeToolExecuteErrorMessage(toolId, tool) {
791
- const playReference = tool ? _chunkZS2WHWWLjs.playReferenceForTool.call(void 0, tool) : null;
792
- const nextStep = playReference ? `Use: deepline run ${playReference} --input '{...}'` : `Find the maintained workflow with: ${_chunkZS2WHWWLjs.playSearchCommandForToolId.call(void 0, toolId)}`;
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)}`;
793
788
  return [
794
789
  `${toolId} is a workflow/play entry, not an atomic provider tool.`,
795
790
  nextStep,
796
- 'Or search provider tools only with: deepline search "<input you have -> result you need>" --type tools'
791
+ 'Or search with: deepline search "<input you have -> result you need>"'
797
792
  ].join("\n");
798
793
  }
799
794
  var TOOL_ONLY_VIEWS = [
@@ -816,7 +811,7 @@ Concepts:
816
811
  runs either.
817
812
 
818
813
  Common commands:
819
- deepline search "name and company domain -> work email" --type tools
814
+ deepline search "name and company domain -> work email"
820
815
  deepline describe hunter_email_verifier
821
816
  deepline tools connect hubspot --link
822
817
  deepline run hunter_email_verifier --input '{"email":"a@b.com"}'
@@ -832,10 +827,10 @@ Output:
832
827
  tools.command("balance <provider>").description(
833
828
  "Read a fresh balance using this workspace\u2019s own provider connection (LeadMagic)."
834
829
  ).option("--json", "Print the balance and observation timestamp as JSON").action(async (provider, options) => {
835
- const balance = await new (0, _chunk243O3FH5js.DeeplineClient)().getIntegrationBalance(
830
+ const balance = await new (0, _chunkXBAH3TKUjs.DeeplineClient)().getIntegrationBalance(
836
831
  provider
837
832
  );
838
- if (_chunkKWGXHPHLjs.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(balance));
833
+ if (_chunkLN6RXDTBjs.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(balance));
839
834
  else
840
835
  console.log(
841
836
  `${balance.provider}: ${balance.balance.value} ${balance.unit} (observed ${balance.observedAt})`
@@ -844,8 +839,8 @@ Output:
844
839
  tools.command("workspace-connections").description(
845
840
  "List shared OAuth connections in a workspace enrolled in the pilot."
846
841
  ).option("--json", "Print connection summaries as JSON").action(async (options) => {
847
- const { connections } = await new (0, _chunk243O3FH5js.DeeplineClient)().listWorkspaceIntegrationConnections();
848
- if (_chunkKWGXHPHLjs.shouldEmitJson.call(void 0, options.json))
842
+ const { connections } = await new (0, _chunkXBAH3TKUjs.DeeplineClient)().listWorkspaceIntegrationConnections();
843
+ if (_chunkLN6RXDTBjs.shouldEmitJson.call(void 0, options.json))
849
844
  console.log(JSON.stringify(connections));
850
845
  else if (connections.length === 0)
851
846
  console.log("No workspace connections.");
@@ -853,6 +848,27 @@ Output:
853
848
  for (const row of connections)
854
849
  console.log(`${row.provider} ${row.status} ${row.label}`);
855
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, _chunkXBAH3TKUjs.DeeplineClient)().listPersonalHubSpotMembers(
855
+ options.cursor
856
+ );
857
+ if (_chunkLN6RXDTBjs.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
+ });
856
872
  tools.command("workspace-connection <provider> <action>").description(
857
873
  "Open shared OAuth setup or disconnect the current connection."
858
874
  ).option("--json", "Print the result as JSON").action(
@@ -861,7 +877,7 @@ Output:
861
877
  throw new Error("Choose hubspot or google_calendar_availability.");
862
878
  if (action !== "connect" && action !== "reconnect" && action !== "replace" && action !== "disconnect")
863
879
  throw new Error("Choose connect, reconnect, replace, or disconnect.");
864
- const client = new (0, _chunk243O3FH5js.DeeplineClient)();
880
+ const client = new (0, _chunkXBAH3TKUjs.DeeplineClient)();
865
881
  const { connections } = await client.listWorkspaceIntegrationConnections();
866
882
  const row = connections.find(
867
883
  (connection) => connection.provider === provider
@@ -872,15 +888,15 @@ Output:
872
888
  connectionId: _optionalChain([row, 'optionalAccess', _14 => _14.id]),
873
889
  authorizationVersion: _optionalChain([row, 'optionalAccess', _15 => _15.authorizationVersion])
874
890
  });
875
- if (_chunkKWGXHPHLjs.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(result));
891
+ if (_chunkLN6RXDTBjs.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(result));
876
892
  else console.log(_nullishCoalesce(result.url, () => ( "Workspace connection disconnected.")));
877
893
  }
878
894
  );
879
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) => {
880
- const page = await new (0, _chunk243O3FH5js.DeeplineClient)().listAvailabilityCalendars(
896
+ const page = await new (0, _chunkXBAH3TKUjs.DeeplineClient)().listAvailabilityCalendars(
881
897
  options.cursor
882
898
  );
883
- if (_chunkKWGXHPHLjs.shouldEmitJson.call(void 0, options.json)) {
899
+ if (_chunkLN6RXDTBjs.shouldEmitJson.call(void 0, options.json)) {
884
900
  console.log(JSON.stringify(page));
885
901
  return;
886
902
  }
@@ -914,10 +930,10 @@ Output:
914
930
  );
915
931
  }
916
932
  if (options.link) {
917
- const link = await new (0, _chunk243O3FH5js.DeeplineClient)().getIntegrationConnectLink(
933
+ const link = await new (0, _chunkXBAH3TKUjs.DeeplineClient)().getIntegrationConnectLink(
918
934
  provider
919
935
  );
920
- if (_chunkKWGXHPHLjs.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(link));
936
+ if (_chunkLN6RXDTBjs.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(link));
921
937
  else console.log(link.connect_url);
922
938
  return;
923
939
  }
@@ -927,7 +943,7 @@ Output:
927
943
  if (options.preset !== void 0 && (options.scopes !== void 0 || options.optionalScopes !== void 0))
928
944
  throw new Error("Use --preset or individual scopes, not both.");
929
945
  const splitScopes = (value) => value.split(",").map((scope) => scope.trim()).filter(Boolean);
930
- const result2 = await new (0, _chunk243O3FH5js.DeeplineClient)().startIntegrationOAuth(
946
+ const result2 = await new (0, _chunkXBAH3TKUjs.DeeplineClient)().startIntegrationOAuth(
931
947
  provider,
932
948
  {
933
949
  ...options.preset !== void 0 ? { preset: options.preset } : {},
@@ -939,7 +955,7 @@ Output:
939
955
  throw new Error(
940
956
  "The API did not return an OAuth authorization URL."
941
957
  );
942
- if (_chunkKWGXHPHLjs.shouldEmitJson.call(void 0, options.json))
958
+ if (_chunkLN6RXDTBjs.shouldEmitJson.call(void 0, options.json))
943
959
  console.log(
944
960
  JSON.stringify({ provider, redirect_url: result2.redirect_url })
945
961
  );
@@ -965,7 +981,7 @@ Output:
965
981
  "--credentials-file must contain a nonempty JSON object of string credential values."
966
982
  );
967
983
  }
968
- const result = await new (0, _chunk243O3FH5js.DeeplineClient)().setIntegrationCredentials(
984
+ const result = await new (0, _chunkXBAH3TKUjs.DeeplineClient)().setIntegrationCredentials(
969
985
  provider,
970
986
  credentials,
971
987
  { expectedConnectionId: options.expectedConnectionId }
@@ -976,7 +992,7 @@ Output:
976
992
  );
977
993
  }
978
994
  const confirmation = { provider, credential_saved: true };
979
- if (_chunkKWGXHPHLjs.shouldEmitJson.call(void 0, options.json))
995
+ if (_chunkLN6RXDTBjs.shouldEmitJson.call(void 0, options.json))
980
996
  console.log(JSON.stringify(confirmation));
981
997
  else
982
998
  console.log(
@@ -1004,7 +1020,7 @@ Examples:
1004
1020
  deepline tools list email_finder
1005
1021
  deepline tools list email_finder
1006
1022
  deepline tools list --categories email_finder
1007
- deepline search "name and company domain -> work email" --type tools
1023
+ deepline search "name and company domain -> work email"
1008
1024
  `
1009
1025
  ).option(
1010
1026
  "--categories <categories>",
@@ -1016,7 +1032,7 @@ Examples:
1016
1032
  json: Boolean(options.json)
1017
1033
  });
1018
1034
  });
1019
- _chunkK3IPGMGPjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
1035
+ _chunkTX5TUHJNjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
1020
1036
  tools.command("grep <query>").description(
1021
1037
  "Regex grep over tool ids, descriptions, categories, and input fields."
1022
1038
  ).addHelpText(
@@ -1051,7 +1067,7 @@ Examples:
1051
1067
  });
1052
1068
  const addToolMetadataCommand = (command) => {
1053
1069
  let compatibilityMetadata;
1054
- _chunkWNNA4L6Zjs.registerCompatibilityCatalog.call(void 0, command, () => ({
1070
+ _chunkSLPJ3LXIjs.registerCompatibilityCatalog.call(void 0, command, () => ({
1055
1071
  toolId: command.args[0],
1056
1072
  acceptMetadata: (metadata) => {
1057
1073
  compatibilityMetadata = metadata;
@@ -1121,7 +1137,7 @@ Examples:
1121
1137
  process.exitCode = await narrowView();
1122
1138
  return;
1123
1139
  }
1124
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-5BFNHT5V.js")));
1140
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-WW3OQRLP.js")));
1125
1141
  process.exitCode = await describeAnything(
1126
1142
  toolId,
1127
1143
  {
@@ -1136,7 +1152,7 @@ Examples:
1136
1152
  });
1137
1153
  };
1138
1154
  addToolMetadataCommand(
1139
- _chunk6LHX33VNjs.addDescribeOptions.call(void 0,
1155
+ _chunkKWYGWO4Yjs.addDescribeOptions.call(void 0,
1140
1156
  tools.command("describe <toolId>", { hidden: true }).alias("get"),
1141
1157
  { json: false }
1142
1158
  )
@@ -1205,7 +1221,7 @@ Examples:
1205
1221
  options,
1206
1222
  void 0,
1207
1223
  true,
1208
- _chunk7PXP2FQKjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
1224
+ _chunkLDGZFDUBjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
1209
1225
  );
1210
1226
  }
1211
1227
  );
@@ -1213,13 +1229,13 @@ Examples:
1213
1229
  function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1214
1230
  let metadata;
1215
1231
  const startedAt = performance.now();
1216
- const baseUrl = _chunkHWPOXCCKjs.resolveConfig.call(void 0, ).baseUrl;
1217
- _chunk7PXP2FQKjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
1218
- const result = _chunkWNNA4L6Zjs.runToolExecuteStage.call(void 0,
1232
+ const baseUrl = _chunkZILSRDINjs.resolveConfig.call(void 0, ).baseUrl;
1233
+ _chunkLDGZFDUBjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
1234
+ const result = _chunkSLPJ3LXIjs.runToolExecuteStage.call(void 0,
1219
1235
  "SDK compatibility",
1220
- () => _chunkHYBZWSSHjs.checkSdkCompatibility.call(void 0, baseUrl, {
1236
+ () => _chunkZEV2Y56Vjs.checkSdkCompatibility.call(void 0, baseUrl, {
1221
1237
  command: "tools execute",
1222
- skillsVersion: _chunkHWPOXCCKjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
1238
+ skillsVersion: _chunkZILSRDINjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
1223
1239
  persistCache: false,
1224
1240
  timeoutMs: TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS,
1225
1241
  catalog: {
@@ -1233,7 +1249,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1233
1249
  })
1234
1250
  ).then(
1235
1251
  (compatibility) => {
1236
- _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
1252
+ _chunkLDGZFDUBjs.recordCliTrace.call(void 0, {
1237
1253
  phase: "cli.tool_execute_compatibility_ready",
1238
1254
  ms: performance.now() - startedAt,
1239
1255
  ok: compatibility.error === null,
@@ -1242,7 +1258,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1242
1258
  return compatibility;
1243
1259
  },
1244
1260
  (error) => {
1245
- _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
1261
+ _chunkLDGZFDUBjs.recordCliTrace.call(void 0, {
1246
1262
  phase: "cli.tool_execute_compatibility_ready",
1247
1263
  ms: performance.now() - startedAt,
1248
1264
  ok: false
@@ -1257,7 +1273,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1257
1273
  console.error("Usage: deepline tools describe <toolId> [--json]");
1258
1274
  return 1;
1259
1275
  }
1260
- const client = new (0, _chunk243O3FH5js.DeeplineClient)();
1276
+ const client = new (0, _chunkXBAH3TKUjs.DeeplineClient)();
1261
1277
  let tool;
1262
1278
  try {
1263
1279
  tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
@@ -1311,12 +1327,12 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1311
1327
  const lines = toolPricingOnlyLines(tool, toolId);
1312
1328
  if (inferenceQuote)
1313
1329
  lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
1314
- _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
1330
+ _chunkLN6RXDTBjs.printCommandEnvelope.call(void 0,
1315
1331
  {
1316
1332
  toolId: String(tool.toolId || toolId),
1317
- cost: _chunkZS2WHWWLjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
1333
+ cost: _chunkUNDLNT3Vjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
1318
1334
  ...modelDescription ? { modelOptions: modelDescription } : {},
1319
- ..._chunkZS2WHWWLjs.isMonitorTypeTool.call(void 0, tool) ? { pricing: _chunkZS2WHWWLjs.recordField.call(void 0, tool, "pricing") } : {},
1335
+ ..._chunkUNDLNT3Vjs.isMonitorTypeTool.call(void 0, tool) ? { pricing: _chunkUNDLNT3Vjs.recordField.call(void 0, tool, "pricing") } : {},
1320
1336
  ...inferenceQuote ? { inferenceQuote } : {}
1321
1337
  },
1322
1338
  {
@@ -1327,14 +1343,14 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1327
1343
  );
1328
1344
  return 0;
1329
1345
  }
1330
- if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !_chunkZS2WHWWLjs.isMonitorTypeTool.call(void 0, tool) && !_chunkZS2WHWWLjs.isPlayLikeTool.call(void 0, tool) && (options.json || options.contractJson)) {
1331
- const contract = _chunkZS2WHWWLjs.toolContractJsonForDescribe.call(void 0,
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,
1332
1348
  tool,
1333
1349
  toolId,
1334
1350
  void 0,
1335
1351
  seedToolListScript
1336
1352
  );
1337
- _chunkKWGXHPHLjs.printCompactJson.call(void 0, {
1353
+ _chunkLN6RXDTBjs.printCompactJson.call(void 0, {
1338
1354
  toolId: contract.toolId,
1339
1355
  ...options.schemaOnly ? {
1340
1356
  inputSchema: contract.inputSchema,
@@ -1357,8 +1373,8 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1357
1373
  return 0;
1358
1374
  }
1359
1375
  if (options.contractJson) {
1360
- _chunkKWGXHPHLjs.printCompactJson.call(void 0, {
1361
- ..._chunkZS2WHWWLjs.toolContractJsonForDescribe.call(void 0,
1376
+ _chunkLN6RXDTBjs.printCompactJson.call(void 0, {
1377
+ ..._chunkUNDLNT3Vjs.toolContractJsonForDescribe.call(void 0,
1362
1378
  tool,
1363
1379
  toolId,
1364
1380
  void 0,
@@ -1371,8 +1387,8 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1371
1387
  }
1372
1388
  const emitJson = options.json === true;
1373
1389
  if (emitJson) {
1374
- _chunkKWGXHPHLjs.printCompactJson.call(void 0, {
1375
- ..._chunkZS2WHWWLjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
1390
+ _chunkLN6RXDTBjs.printCompactJson.call(void 0, {
1391
+ ..._chunkUNDLNT3Vjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
1376
1392
  ...modelDescription ? { modelOptions: modelDescription } : {},
1377
1393
  ...inferenceQuote ? { inferenceQuote } : {}
1378
1394
  });
@@ -1397,7 +1413,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1397
1413
  printCompactToolContract(tool, toolId);
1398
1414
  if (modelDescription) {
1399
1415
  process.stdout.write(`
1400
- ${_chunkZS2WHWWLjs.formatModelDescription.call(void 0, modelDescription)}`);
1416
+ ${_chunkUNDLNT3Vjs.formatModelDescription.call(void 0, modelDescription)}`);
1401
1417
  }
1402
1418
  if (inferenceQuote) printInferenceQuoteSummary(inferenceQuote);
1403
1419
  return 0;
@@ -1405,7 +1421,7 @@ ${_chunkZS2WHWWLjs.formatModelDescription.call(void 0, modelDescription)}`);
1405
1421
  printCompactToolContract(tool, toolId);
1406
1422
  if (modelDescription) {
1407
1423
  process.stdout.write(`
1408
- ${_chunkZS2WHWWLjs.formatModelDescription.call(void 0, modelDescription)}`);
1424
+ ${_chunkUNDLNT3Vjs.formatModelDescription.call(void 0, modelDescription)}`);
1409
1425
  }
1410
1426
  if (inferenceQuote) printInferenceQuoteSummary(inferenceQuote);
1411
1427
  return 0;
@@ -1422,10 +1438,10 @@ function printInferenceQuoteSummary(quote) {
1422
1438
  for (const line of inferenceQuoteSummaryLines(quote)) console.log(line);
1423
1439
  }
1424
1440
  function printMonitorTypeFilters(tool) {
1425
- const schema = _chunkZS2WHWWLjs.recordField.call(void 0, tool, "payload_schema", "payloadSchema");
1426
- const properties = _chunkZS2WHWWLjs.recordField.call(void 0, schema, "properties");
1441
+ const schema = _chunkUNDLNT3Vjs.recordField.call(void 0, tool, "payload_schema", "payloadSchema");
1442
+ const properties = _chunkUNDLNT3Vjs.recordField.call(void 0, schema, "properties");
1427
1443
  const required = new Set(
1428
- _chunkZS2WHWWLjs.arrayField.call(void 0, schema, "required").filter(
1444
+ _chunkUNDLNT3Vjs.arrayField.call(void 0, schema, "required").filter(
1429
1445
  (v) => typeof v === "string"
1430
1446
  )
1431
1447
  );
@@ -1436,24 +1452,24 @@ function printMonitorTypeFilters(tool) {
1436
1452
  }
1437
1453
  console.log("Deploy filters (set in the monitor payload):");
1438
1454
  for (const name of names) {
1439
- const field = _chunkZS2WHWWLjs.isRecord.call(void 0, properties[name]) ? properties[name] : {};
1455
+ const field = _chunkUNDLNT3Vjs.isRecord.call(void 0, properties[name]) ? properties[name] : {};
1440
1456
  const star = required.has(name) ? "*" : "";
1441
- const enumVals = _chunkZS2WHWWLjs.arrayField.call(void 0, field, "enum").filter(
1457
+ const enumVals = _chunkUNDLNT3Vjs.arrayField.call(void 0, field, "enum").filter(
1442
1458
  (v) => typeof v === "string"
1443
1459
  );
1444
- const type = enumVals.length ? `one of [${enumVals.join(", ")}]` : _chunkZS2WHWWLjs.stringField.call(void 0, field, "type") || "string";
1445
- const desc = _chunkZS2WHWWLjs.stringField.call(void 0, field, "description");
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");
1446
1462
  console.log(`- ${name}${star}: ${type}${desc ? ` - ${desc}` : ""}`);
1447
1463
  }
1448
1464
  }
1449
1465
  function printMonitorTypeFilterExamples(tool) {
1450
- const documentation = _chunkZS2WHWWLjs.recordField.call(void 0, tool, "documentation");
1451
- const fields = _chunkZS2WHWWLjs.recordField.call(void 0, documentation, "fields");
1466
+ const documentation = _chunkUNDLNT3Vjs.recordField.call(void 0, tool, "documentation");
1467
+ const fields = _chunkUNDLNT3Vjs.recordField.call(void 0, documentation, "fields");
1452
1468
  const examples = Object.entries(fields).flatMap(([name, rawField]) => {
1453
- const grammar = _chunkZS2WHWWLjs.recordField.call(void 0, _chunkZS2WHWWLjs.isRecord.call(void 0, rawField) ? rawField : {}, "grammar");
1454
- const example = _chunkZS2WHWWLjs.stringField.call(void 0, grammar, "example");
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");
1455
1471
  const values = [
1456
- ..._chunkZS2WHWWLjs.arrayField.call(void 0, grammar, "examples").filter(
1472
+ ..._chunkUNDLNT3Vjs.arrayField.call(void 0, grammar, "examples").filter(
1457
1473
  (value) => typeof value === "string" && Boolean(value)
1458
1474
  ),
1459
1475
  ...example ? [example] : []
@@ -1468,21 +1484,21 @@ function printMonitorTypeFilterExamples(tool) {
1468
1484
  }
1469
1485
  }
1470
1486
  function printMonitorTypeStreams(tool) {
1471
- const streams = _chunkZS2WHWWLjs.arrayField.call(void 0, tool, "streams", "output_streams").filter(
1472
- _chunkZS2WHWWLjs.isRecord
1487
+ const streams = _chunkUNDLNT3Vjs.arrayField.call(void 0, tool, "streams", "output_streams").filter(
1488
+ _chunkUNDLNT3Vjs.isRecord
1473
1489
  );
1474
1490
  if (!streams.length) return;
1475
1491
  console.log("");
1476
1492
  console.log("Filter columns (a play's sqlListeners.where, per stream):");
1477
1493
  for (const stream of streams) {
1478
- const name = _chunkZS2WHWWLjs.stringField.call(void 0, stream, "stream");
1479
- const cols = _chunkZS2WHWWLjs.arrayField.call(void 0, stream, "columns").filter(_chunkZS2WHWWLjs.isRecord).map((col) => _chunkZS2WHWWLjs.stringField.call(void 0, col, "name")).filter(Boolean);
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);
1480
1496
  console.log(`- ${name}: ${cols.join(", ")}`);
1481
1497
  }
1482
1498
  }
1483
1499
  function monitorTypePricingLines(tool) {
1484
- const pricing = _chunkZS2WHWWLjs.recordField.call(void 0, tool, "pricing");
1485
- const byType = _chunkZS2WHWWLjs.recordField.call(void 0,
1500
+ const pricing = _chunkUNDLNT3Vjs.recordField.call(void 0, tool, "pricing");
1501
+ const byType = _chunkUNDLNT3Vjs.recordField.call(void 0,
1486
1502
  pricing,
1487
1503
  "pricing_by_radar_type",
1488
1504
  "pricingByRadarType"
@@ -1493,9 +1509,9 @@ function monitorTypePricingLines(tool) {
1493
1509
  }
1494
1510
  const lines = ["Pricing (Deepline credits per accepted event):"];
1495
1511
  for (const key of keys) {
1496
- const entry = _chunkZS2WHWWLjs.isRecord.call(void 0, byType[key]) ? byType[key] : {};
1512
+ const entry = _chunkUNDLNT3Vjs.isRecord.call(void 0, byType[key]) ? byType[key] : {};
1497
1513
  const credits = numberField(entry, "deepline_credits", "deeplineCredits");
1498
- const display = _chunkZS2WHWWLjs.stringField.call(void 0, entry, "display");
1514
+ const display = _chunkUNDLNT3Vjs.stringField.call(void 0, entry, "display");
1499
1515
  const shown = display || (credits !== null ? `${formatDecimal(credits)} credits/event` : "not listed");
1500
1516
  lines.push(`- ${key}: ${shown}`);
1501
1517
  }
@@ -1505,20 +1521,20 @@ function printMonitorTypePricing(tool) {
1505
1521
  for (const line of monitorTypePricingLines(tool)) console.log(line);
1506
1522
  }
1507
1523
  function printMonitorTypeDeploy(tool) {
1508
- const deploy = _chunkZS2WHWWLjs.recordField.call(void 0, tool, "deploy");
1509
- const toolId = _chunkZS2WHWWLjs.stringField.call(void 0, tool, "toolId");
1510
- const example = _chunkZS2WHWWLjs.stringField.call(void 0, deploy, "example") || `deepline monitors deploy '{"key":"...","tool":"${toolId}","payload":{...}}'`;
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":{...}}'`;
1511
1527
  console.log("Deploy (a monitor type is deployed, not executed):");
1512
1528
  console.log(` ${example}`);
1513
1529
  }
1514
1530
  function printMonitorTypeContract(tool, requestedToolId) {
1515
- const toolId = _chunkZS2WHWWLjs.stringField.call(void 0, tool, "toolId") || requestedToolId;
1531
+ const toolId = _chunkUNDLNT3Vjs.stringField.call(void 0, tool, "toolId") || requestedToolId;
1516
1532
  console.log(toolId);
1517
- const displayName = _chunkZS2WHWWLjs.stringField.call(void 0, tool, "displayName");
1533
+ const displayName = _chunkUNDLNT3Vjs.stringField.call(void 0, tool, "displayName");
1518
1534
  if (displayName) console.log(`Best for: ${displayName}`);
1519
- const description = _chunkZS2WHWWLjs.stringField.call(void 0, tool, "description");
1535
+ const description = _chunkUNDLNT3Vjs.stringField.call(void 0, tool, "description");
1520
1536
  if (description) console.log(`Description: ${description}`);
1521
- const categories = _chunkZS2WHWWLjs.arrayField.call(void 0, tool, "categories").filter(
1537
+ const categories = _chunkUNDLNT3Vjs.arrayField.call(void 0, tool, "categories").filter(
1522
1538
  (v) => typeof v === "string"
1523
1539
  );
1524
1540
  if (categories.length) console.log(`Tags: ${categories.join(", ")}`);
@@ -1538,31 +1554,31 @@ function printMonitorTypeContract(tool, requestedToolId) {
1538
1554
  console.log(`More: deepline describe ${toolId}`);
1539
1555
  }
1540
1556
  function toolGuidanceLines(guidance) {
1541
- const record = _chunkZS2WHWWLjs.isRecord.call(void 0, guidance) ? guidance : {};
1542
- const toolGuidance = _chunkZS2WHWWLjs.stringField.call(void 0, record, "tool");
1543
- const providerGuidance = _chunkZS2WHWWLjs.stringField.call(void 0, record, "provider");
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");
1544
1560
  return [
1545
1561
  ...toolGuidance ? [`- This tool: ${toolGuidance}`] : [],
1546
1562
  ...providerGuidance ? [`- Provider: ${providerGuidance}`] : []
1547
1563
  ];
1548
1564
  }
1549
1565
  function printCompactToolContract(tool, requestedToolId) {
1550
- if (_chunkZS2WHWWLjs.isMonitorTypeTool.call(void 0, tool)) {
1566
+ if (_chunkUNDLNT3Vjs.isMonitorTypeTool.call(void 0, tool)) {
1551
1567
  printMonitorTypeContract(tool, requestedToolId);
1552
1568
  return;
1553
1569
  }
1554
- const contract = _chunkZS2WHWWLjs.toolContractJsonForDescribe.call(void 0,
1570
+ const contract = _chunkUNDLNT3Vjs.toolContractJsonForDescribe.call(void 0,
1555
1571
  tool,
1556
1572
  requestedToolId,
1557
1573
  void 0,
1558
1574
  seedToolListScript
1559
1575
  );
1560
- const cost = _chunkZS2WHWWLjs.isRecord.call(void 0, contract.cost) ? contract.cost : {};
1561
- const getters = _chunkZS2WHWWLjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1576
+ const cost = _chunkUNDLNT3Vjs.isRecord.call(void 0, contract.cost) ? contract.cost : {};
1577
+ const getters = _chunkUNDLNT3Vjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1562
1578
  const listGetters = Array.isArray(getters.extractedLists) ? getters.extractedLists : [];
1563
1579
  const valueGetters = Array.isArray(getters.extractedValues) ? getters.extractedValues : [];
1564
- const inputFields = _chunkZS2WHWWLjs.recursiveToolInputFieldsForDisplay.call(void 0,
1565
- _chunkZS2WHWWLjs.recordField.call(void 0, contract, "inputSchema")
1580
+ const inputFields = _chunkUNDLNT3Vjs.recursiveToolInputFieldsForDisplay.call(void 0,
1581
+ _chunkUNDLNT3Vjs.recordField.call(void 0, contract, "inputSchema")
1566
1582
  );
1567
1583
  console.log(String(contract.toolId));
1568
1584
  if (contract.displayName) console.log(`Best for: ${contract.displayName}`);
@@ -1579,9 +1595,9 @@ function printCompactToolContract(tool, requestedToolId) {
1579
1595
  printToolOutputArrayShape(contract);
1580
1596
  printToolExecutionHints(contract);
1581
1597
  if (contract.deprecated === true) {
1582
- const deprecation = _chunkZS2WHWWLjs.isRecord.call(void 0, contract.deprecation) ? contract.deprecation : {};
1583
- const message = _chunkZS2WHWWLjs.stringField.call(void 0, deprecation, "message");
1584
- const replacementToolId = _chunkZS2WHWWLjs.stringField.call(void 0,
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,
1585
1601
  deprecation,
1586
1602
  "replacementToolId",
1587
1603
  "replacement_tool_id"
@@ -1604,12 +1620,12 @@ function printCompactToolContract(tool, requestedToolId) {
1604
1620
  console.log("");
1605
1621
  console.log("Inputs:");
1606
1622
  for (const field of inputFields) {
1607
- if (!_chunkZS2WHWWLjs.isRecord.call(void 0, field)) continue;
1608
- const name = _chunkZS2WHWWLjs.stringField.call(void 0, field, "name");
1623
+ if (!_chunkUNDLNT3Vjs.isRecord.call(void 0, field)) continue;
1624
+ const name = _chunkUNDLNT3Vjs.stringField.call(void 0, field, "name");
1609
1625
  if (!name) continue;
1610
1626
  const required = field.required ? "*" : "";
1611
- const type = _chunkZS2WHWWLjs.stringField.call(void 0, field, "type") || "unknown";
1612
- const description = _chunkZS2WHWWLjs.stringField.call(void 0, field, "description");
1627
+ const type = _chunkUNDLNT3Vjs.stringField.call(void 0, field, "type") || "unknown";
1628
+ const description = _chunkUNDLNT3Vjs.stringField.call(void 0, field, "description");
1613
1629
  const enumValues = Array.isArray(field.enum) ? field.enum : [];
1614
1630
  const enumSuffix = enumValues.length ? ` enum=${enumValues.map(String).join("|")}` : "";
1615
1631
  const itemBoundsSuffix = arrayItemBoundsSuffix(field);
@@ -1624,8 +1640,8 @@ function printCompactToolContract(tool, requestedToolId) {
1624
1640
  }
1625
1641
  console.log("");
1626
1642
  printToolExamplesOnly(tool, requestedToolId);
1627
- const starterScript = _chunkZS2WHWWLjs.isRecord.call(void 0, contract.starterScript) ? contract.starterScript : {};
1628
- const starterPath = _chunkZS2WHWWLjs.stringField.call(void 0, starterScript, "path");
1643
+ const starterScript = _chunkUNDLNT3Vjs.isRecord.call(void 0, contract.starterScript) ? contract.starterScript : {};
1644
+ const starterPath = _chunkUNDLNT3Vjs.stringField.call(void 0, starterScript, "path");
1629
1645
  if (starterPath) {
1630
1646
  console.log("");
1631
1647
  console.log(`Starter script: ${starterPath}`);
@@ -1636,16 +1652,16 @@ function printCompactToolContract(tool, requestedToolId) {
1636
1652
  console.log("Getters:");
1637
1653
  if (listGetters.length) console.log(listGetterHeading());
1638
1654
  for (const entry of listGetters) {
1639
- if (_chunkZS2WHWWLjs.isRecord.call(void 0, entry))
1655
+ if (_chunkUNDLNT3Vjs.isRecord.call(void 0, entry))
1640
1656
  console.log(
1641
- `- ${_chunkZS2WHWWLjs.stringField.call(void 0, entry, "name")}: ${_chunkZS2WHWWLjs.playResultExpression.call(void 0, entry)}`
1657
+ `- ${_chunkUNDLNT3Vjs.stringField.call(void 0, entry, "name")}: ${_chunkUNDLNT3Vjs.playResultExpression.call(void 0, entry)}`
1642
1658
  );
1643
1659
  }
1644
1660
  if (valueGetters.length) console.log("Values:");
1645
1661
  for (const entry of valueGetters) {
1646
- if (_chunkZS2WHWWLjs.isRecord.call(void 0, entry))
1662
+ if (_chunkUNDLNT3Vjs.isRecord.call(void 0, entry))
1647
1663
  console.log(
1648
- `- ${_chunkZS2WHWWLjs.stringField.call(void 0, entry, "name")}: ${_chunkZS2WHWWLjs.playResultExpression.call(void 0, entry)}`
1664
+ `- ${_chunkUNDLNT3Vjs.stringField.call(void 0, entry, "name")}: ${_chunkUNDLNT3Vjs.playResultExpression.call(void 0, entry)}`
1649
1665
  );
1650
1666
  }
1651
1667
  }
@@ -1656,22 +1672,22 @@ function printCompactToolContract(tool, requestedToolId) {
1656
1672
  console.log(`More: deepline describe ${contract.toolId}`);
1657
1673
  }
1658
1674
  function toolPricingOnlyLines(tool, requestedToolId, options = {}) {
1659
- if (_chunkZS2WHWWLjs.isMonitorTypeTool.call(void 0, tool)) {
1675
+ if (_chunkUNDLNT3Vjs.isMonitorTypeTool.call(void 0, tool)) {
1660
1676
  return monitorTypePricingLines(tool);
1661
1677
  }
1662
1678
  const toolId = String(tool.toolId || requestedToolId);
1663
- const cost = _chunkZS2WHWWLjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1664
- const pricingModel = _chunkZS2WHWWLjs.stringField.call(void 0, cost, "pricingModel") || "unknown";
1665
- const billing = _chunkZS2WHWWLjs.stringField.call(void 0, cost, "billingSourceLabel") || _chunkZS2WHWWLjs.stringField.call(void 0, cost, "billingSource") || _chunkZS2WHWWLjs.stringField.call(void 0, cost, "billingMode") || "unknown";
1666
- const explicitUnit = _chunkZS2WHWWLjs.stringField.call(void 0, cost, "unit");
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");
1667
1683
  const unit = explicitUnit || (pricingModel === "per_page" ? "page" : pricingModel === "per_result" ? "result" : pricingModel === "fixed" ? "call" : pricingModel.replace(/^per_/, "") || "unit");
1668
1684
  const credits = numberField(cost, "deeplineCreditsPerPricingUnit");
1669
1685
  const usd = numberField(cost, "deeplineUsdPerPricingUnit");
1670
- const displayText = _chunkZS2WHWWLjs.stringField.call(void 0, cost, "displayText");
1671
- const summary = _chunkZS2WHWWLjs.stringField.call(void 0, cost, "summary");
1686
+ const displayText = _chunkUNDLNT3Vjs.stringField.call(void 0, cost, "displayText");
1687
+ const summary = _chunkUNDLNT3Vjs.stringField.call(void 0, cost, "summary");
1672
1688
  const price = displayText || summary || (credits !== null ? `${formatDecimal(credits)} Deepline credits${usd !== null ? ` / ${formatUsd(usd)}` : ""} per ${unit}` : "pricing unavailable");
1673
1689
  const reference = cost.observedReference;
1674
- const observedMax = _chunkZS2WHWWLjs.observedMaxText.call(void 0, cost);
1690
+ const observedMax = _chunkUNDLNT3Vjs.observedMaxText.call(void 0, cost);
1675
1691
  return [
1676
1692
  `${_nullishCoalesce(options.heading, () => ( `Pricing: ${toolId}`))}: ${price}`,
1677
1693
  ...observedMax ? [` ${observedMax}`] : [],
@@ -1688,19 +1704,19 @@ function printToolPricingOnly(tool, requestedToolId, options = {}) {
1688
1704
  console.log(line);
1689
1705
  }
1690
1706
  function printToolSchemaOnly(tool, requestedToolId) {
1691
- if (_chunkZS2WHWWLjs.isMonitorTypeTool.call(void 0, tool)) {
1707
+ if (_chunkUNDLNT3Vjs.isMonitorTypeTool.call(void 0, tool)) {
1692
1708
  printMonitorTypeFilters(tool);
1693
1709
  printMonitorTypeStreams(tool);
1694
1710
  return;
1695
1711
  }
1696
- const contract = _chunkZS2WHWWLjs.toolContractJsonForDescribe.call(void 0,
1712
+ const contract = _chunkUNDLNT3Vjs.toolContractJsonForDescribe.call(void 0,
1697
1713
  tool,
1698
1714
  requestedToolId,
1699
1715
  void 0,
1700
1716
  seedToolListScript
1701
1717
  );
1702
- const inputFields = _chunkZS2WHWWLjs.recursiveToolInputFieldsForDisplay.call(void 0,
1703
- _chunkZS2WHWWLjs.recordField.call(void 0, contract, "inputSchema")
1718
+ const inputFields = _chunkUNDLNT3Vjs.recursiveToolInputFieldsForDisplay.call(void 0,
1719
+ _chunkUNDLNT3Vjs.recordField.call(void 0, contract, "inputSchema")
1704
1720
  );
1705
1721
  console.log(`Schema: ${contract.toolId}`);
1706
1722
  if (!inputFields.length) {
@@ -1727,27 +1743,27 @@ function printToolSchemaOnly(tool, requestedToolId) {
1727
1743
  }
1728
1744
  printToolOutputArrayShape(contract);
1729
1745
  const declaredSchema = declaredToolJsonSchema(
1730
- _chunkZS2WHWWLjs.recordField.call(void 0, contract, "inputSchema")
1746
+ _chunkUNDLNT3Vjs.recordField.call(void 0, contract, "inputSchema")
1731
1747
  );
1732
1748
  if (declaredSchema) {
1733
1749
  console.log("Declared input JSON Schema:");
1734
1750
  console.log(JSON.stringify(declaredSchema, null, 2));
1735
1751
  }
1736
- if (_chunkZS2WHWWLjs.isRecord.call(void 0, contract.responseSchema)) {
1752
+ if (_chunkUNDLNT3Vjs.isRecord.call(void 0, contract.responseSchema)) {
1737
1753
  console.log("Deepline execution response JSON Schema:");
1738
1754
  console.log(JSON.stringify(contract.responseSchema, null, 2));
1739
1755
  }
1740
1756
  }
1741
1757
  function printToolExamplesOnly(tool, requestedToolId) {
1742
- if (_chunkZS2WHWWLjs.isMonitorTypeTool.call(void 0, tool)) {
1758
+ if (_chunkUNDLNT3Vjs.isMonitorTypeTool.call(void 0, tool)) {
1743
1759
  printMonitorTypeDeploy(tool);
1744
1760
  return;
1745
1761
  }
1746
- if (_chunkZS2WHWWLjs.isPlayLikeTool.call(void 0, tool)) {
1762
+ if (_chunkUNDLNT3Vjs.isPlayLikeTool.call(void 0, tool)) {
1747
1763
  printPlayLikeToolUsage(tool, requestedToolId);
1748
1764
  return;
1749
1765
  }
1750
- const contract = _chunkZS2WHWWLjs.toolContractJsonForDescribe.call(void 0,
1766
+ const contract = _chunkUNDLNT3Vjs.toolContractJsonForDescribe.call(void 0,
1751
1767
  tool,
1752
1768
  requestedToolId,
1753
1769
  void 0,
@@ -1755,9 +1771,9 @@ function printToolExamplesOnly(tool, requestedToolId) {
1755
1771
  );
1756
1772
  const toolId = String(contract.toolId);
1757
1773
  const inputFields = Array.isArray(contract.inputFields) ? contract.inputFields : [];
1758
- const examples = _chunkZS2WHWWLjs.arrayField.call(void 0, tool, "examples").filter(_chunkZS2WHWWLjs.isRecord);
1774
+ const examples = _chunkUNDLNT3Vjs.arrayField.call(void 0, tool, "examples").filter(_chunkUNDLNT3Vjs.isRecord);
1759
1775
  const firstExample = examples[0];
1760
- const sampleInput = firstExample && _chunkZS2WHWWLjs.isRecord.call(void 0, firstExample.input) ? firstExample.input : _nullishCoalesce(samplePayload(_chunkZS2WHWWLjs.recordField.call(void 0, tool, "samples"), "request"), () => ( _chunkZS2WHWWLjs.samplePayloadForInputFields.call(void 0, inputFields)));
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)));
1761
1777
  console.log("Example input payload:");
1762
1778
  console.log(JSON.stringify(sampleInput, null, 2));
1763
1779
  console.log(`Use in a play:`);
@@ -1771,32 +1787,32 @@ function printToolExamplesOnly(tool, requestedToolId) {
1771
1787
  );
1772
1788
  console.log("});");
1773
1789
  console.log("const response = result.toolResponse.rawV2;");
1774
- const getters = _chunkZS2WHWWLjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1790
+ const getters = _chunkUNDLNT3Vjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1775
1791
  const valueGetters = Array.isArray(getters.extractedValues) ? getters.extractedValues : [];
1776
1792
  const listGetters = Array.isArray(getters.extractedLists) ? getters.extractedLists : [];
1777
- const firstGetter = valueGetters.find(_chunkZS2WHWWLjs.isRecord);
1793
+ const firstGetter = valueGetters.find(_chunkUNDLNT3Vjs.isRecord);
1778
1794
  if (firstGetter) {
1779
- const name = _chunkZS2WHWWLjs.stringField.call(void 0, firstGetter, "name") || "value";
1780
- const expression = _chunkZS2WHWWLjs.stringField.call(void 0, firstGetter, "expression");
1795
+ const name = _chunkUNDLNT3Vjs.stringField.call(void 0, firstGetter, "name") || "value";
1796
+ const expression = _chunkUNDLNT3Vjs.stringField.call(void 0, firstGetter, "expression");
1781
1797
  if (expression)
1782
1798
  console.log(
1783
1799
  `const ${safeIdentifier(name)} = ${expression.replace(/^toolExecutionResult\./, "result.")};`
1784
1800
  );
1785
1801
  }
1786
1802
  const arrayNames = new Set(
1787
- _chunkZS2WHWWLjs.recursiveToolInputFieldsForDisplay.call(void 0,
1788
- _chunkZS2WHWWLjs.recordField.call(void 0, tool, "outputSchema", "output_schema")
1803
+ _chunkUNDLNT3Vjs.recursiveToolInputFieldsForDisplay.call(void 0,
1804
+ _chunkUNDLNT3Vjs.recordField.call(void 0, tool, "outputSchema", "output_schema")
1789
1805
  ).filter((field) => String(field.type).split("|").includes("array")).map((field) => String(field.name).split(".").at(-1))
1790
1806
  );
1791
1807
  const firstList = _nullishCoalesce(listGetters.find(
1792
- (entry) => _chunkZS2WHWWLjs.isRecord.call(void 0, entry) && arrayNames.has(_chunkZS2WHWWLjs.stringField.call(void 0, entry, "name"))
1793
- ), () => ( listGetters.find(_chunkZS2WHWWLjs.isRecord)));
1794
- if (_chunkZS2WHWWLjs.isRecord.call(void 0, firstList)) {
1795
- const name = safeIdentifier(_chunkZS2WHWWLjs.stringField.call(void 0, firstList, "name") || "list");
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");
1796
1812
  if (_chunkJ33TSWO5js.playToolListGetterMode.call(void 0, ) === "array") {
1797
- console.log(`const ${name}_rows = ${_chunkZS2WHWWLjs.playResultExpression.call(void 0, firstList)};`);
1813
+ console.log(`const ${name}_rows = ${_chunkUNDLNT3Vjs.playResultExpression.call(void 0, firstList)};`);
1798
1814
  } else {
1799
- console.log(`const ${name}_ds = ${_chunkZS2WHWWLjs.playResultExpression.call(void 0, firstList)};`);
1815
+ console.log(`const ${name}_ds = ${_chunkUNDLNT3Vjs.playResultExpression.call(void 0, firstList)};`);
1800
1816
  console.log(
1801
1817
  "// Complete small list from this response; throws above the memory cap."
1802
1818
  );
@@ -1806,7 +1822,7 @@ function printToolExamplesOnly(tool, requestedToolId) {
1806
1822
  console.log("```");
1807
1823
  if (firstList) printListGetterConsumption();
1808
1824
  for (const example of examples) {
1809
- const description = _chunkZS2WHWWLjs.stringField.call(void 0, example, "description");
1825
+ const description = _chunkUNDLNT3Vjs.stringField.call(void 0, example, "description");
1810
1826
  if (description) console.log(description);
1811
1827
  console.log("Example Deepline execution response:");
1812
1828
  console.log(JSON.stringify(example.response, null, 2));
@@ -1821,14 +1837,14 @@ function printToolExamplesOnly(tool, requestedToolId) {
1821
1837
  }
1822
1838
  function printPlayLikeToolUsage(tool, requestedToolId) {
1823
1839
  const toolId = String(tool.toolId || requestedToolId);
1824
- const inputFields = _chunkZS2WHWWLjs.toolInputFieldsForDisplay.call(void 0,
1825
- _chunkZS2WHWWLjs.recordField.call(void 0, tool, "inputSchema", "input_schema")
1840
+ const inputFields = _chunkUNDLNT3Vjs.toolInputFieldsForDisplay.call(void 0,
1841
+ _chunkUNDLNT3Vjs.recordField.call(void 0, tool, "inputSchema", "input_schema")
1826
1842
  );
1827
- const sampleInput = _chunkZS2WHWWLjs.samplePayloadForInputFields.call(void 0, inputFields);
1828
- const playReference = _chunkZS2WHWWLjs.playReferenceForTool.call(void 0, tool);
1843
+ const sampleInput = _chunkUNDLNT3Vjs.samplePayloadForInputFields.call(void 0, inputFields);
1844
+ const playReference = _chunkUNDLNT3Vjs.playReferenceForTool.call(void 0, tool);
1829
1845
  console.log("Run as a play:");
1830
1846
  console.log(
1831
- _chunkZS2WHWWLjs.playRunCommandForTool.call(void 0,
1847
+ _chunkUNDLNT3Vjs.playRunCommandForTool.call(void 0,
1832
1848
  tool,
1833
1849
  toolId,
1834
1850
  Object.keys(sampleInput).length ? sampleInput : void 0
@@ -1839,13 +1855,13 @@ function printPlayLikeToolUsage(tool, requestedToolId) {
1839
1855
  }
1840
1856
  }
1841
1857
  function printToolGettersOnly(tool, requestedToolId) {
1842
- const contract = _chunkZS2WHWWLjs.toolContractJsonForDescribe.call(void 0,
1858
+ const contract = _chunkUNDLNT3Vjs.toolContractJsonForDescribe.call(void 0,
1843
1859
  tool,
1844
1860
  requestedToolId,
1845
1861
  void 0,
1846
1862
  seedToolListScript
1847
1863
  );
1848
- const getters = _chunkZS2WHWWLjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1864
+ const getters = _chunkUNDLNT3Vjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1849
1865
  const listGetters = Array.isArray(getters.extractedLists) ? getters.extractedLists : [];
1850
1866
  const valueGetters = Array.isArray(getters.extractedValues) ? getters.extractedValues : [];
1851
1867
  console.log(`Getters: ${contract.toolId}`);
@@ -1856,9 +1872,9 @@ function printToolGettersOnly(tool, requestedToolId) {
1856
1872
  if (listGetters.length) {
1857
1873
  console.log(listGetterHeading());
1858
1874
  for (const entry of listGetters) {
1859
- if (_chunkZS2WHWWLjs.isRecord.call(void 0, entry))
1875
+ if (_chunkUNDLNT3Vjs.isRecord.call(void 0, entry))
1860
1876
  console.log(
1861
- `- ${_chunkZS2WHWWLjs.stringField.call(void 0, entry, "name")}: ${_chunkZS2WHWWLjs.playResultExpression.call(void 0, entry)}`
1877
+ `- ${_chunkUNDLNT3Vjs.stringField.call(void 0, entry, "name")}: ${_chunkUNDLNT3Vjs.playResultExpression.call(void 0, entry)}`
1862
1878
  );
1863
1879
  }
1864
1880
  printListGetterConsumption();
@@ -1866,9 +1882,9 @@ function printToolGettersOnly(tool, requestedToolId) {
1866
1882
  if (valueGetters.length) {
1867
1883
  console.log("Values:");
1868
1884
  for (const entry of valueGetters) {
1869
- if (_chunkZS2WHWWLjs.isRecord.call(void 0, entry))
1885
+ if (_chunkUNDLNT3Vjs.isRecord.call(void 0, entry))
1870
1886
  console.log(
1871
- `- ${_chunkZS2WHWWLjs.stringField.call(void 0, entry, "name")}: ${_chunkZS2WHWWLjs.playResultExpression.call(void 0, entry)}`
1887
+ `- ${_chunkUNDLNT3Vjs.stringField.call(void 0, entry, "name")}: ${_chunkUNDLNT3Vjs.playResultExpression.call(void 0, entry)}`
1872
1888
  );
1873
1889
  }
1874
1890
  }
@@ -1906,22 +1922,22 @@ function listedToolDescription(tool) {
1906
1922
  }
1907
1923
  function formatListedToolCost(tool) {
1908
1924
  const record = tool;
1909
- if (_chunkZS2WHWWLjs.stringField.call(void 0, record, "billingSource", "billing_source") === "free") {
1925
+ if (_chunkUNDLNT3Vjs.stringField.call(void 0, record, "billingSource", "billing_source") === "free") {
1910
1926
  return "Cost: Free";
1911
1927
  }
1912
- const pricing = _chunkZS2WHWWLjs.recordField.call(void 0, record, "pricing");
1913
- const displayText = _chunkZS2WHWWLjs.stringField.call(void 0, pricing, "displayText", "display_text");
1928
+ const pricing = _chunkUNDLNT3Vjs.recordField.call(void 0, record, "pricing");
1929
+ const displayText = _chunkUNDLNT3Vjs.stringField.call(void 0, pricing, "displayText", "display_text");
1914
1930
  return displayText ? `Cost: ${displayText}` : "";
1915
1931
  }
1916
1932
  function printToolOutputArrayShape(tool) {
1917
- const outputFields = _chunkZS2WHWWLjs.toolOutputFieldsForDisplay.call(void 0,
1918
- _chunkZS2WHWWLjs.recordField.call(void 0, _chunkZS2WHWWLjs.isRecord.call(void 0, tool) ? tool : {}, "outputSchema", "output_schema")
1933
+ const outputFields = _chunkUNDLNT3Vjs.toolOutputFieldsForDisplay.call(void 0,
1934
+ _chunkUNDLNT3Vjs.recordField.call(void 0, _chunkUNDLNT3Vjs.isRecord.call(void 0, tool) ? tool : {}, "outputSchema", "output_schema")
1919
1935
  );
1920
1936
  if (outputFields.length === 0) return;
1921
1937
  console.log(" Output array shape (declared schema):");
1922
1938
  for (const field of outputFields.slice(0, 60)) {
1923
1939
  const name = String(field.name);
1924
- const type = _chunkZS2WHWWLjs.stringField.call(void 0, field, "type") || "unknown";
1940
+ const type = _chunkUNDLNT3Vjs.stringField.call(void 0, field, "type") || "unknown";
1925
1941
  const itemBounds = arrayItemBoundsSuffix(field);
1926
1942
  console.log(` - ${name}: ${type}${itemBounds}`);
1927
1943
  }
@@ -1930,14 +1946,14 @@ function printToolOutputArrayShape(tool) {
1930
1946
  }
1931
1947
  }
1932
1948
  function declaredToolJsonSchema(inputSchema) {
1933
- if (_chunkZS2WHWWLjs.isRecord.call(void 0, inputSchema.jsonSchema)) {
1949
+ if (_chunkUNDLNT3Vjs.isRecord.call(void 0, inputSchema.jsonSchema)) {
1934
1950
  return inputSchema.jsonSchema;
1935
1951
  }
1936
1952
  return Array.isArray(inputSchema.fields) ? null : inputSchema;
1937
1953
  }
1938
1954
  function arrayItemBoundsSuffix(field) {
1939
- const itemSchema = _chunkZS2WHWWLjs.isRecord.call(void 0, field.items) ? field.items : null;
1940
- const itemType = itemSchema ? typeof itemSchema.type === "string" ? itemSchema.type : _chunkZS2WHWWLjs.isRecord.call(void 0, itemSchema.properties) ? "object" : "unknown" : null;
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;
1941
1957
  const itemEnum = Array.isArray(_optionalChain([itemSchema, 'optionalAccess', _16 => _16.enum])) ? ` enum=${itemSchema.enum.map(String).join("|")}` : "";
1942
1958
  const itemTypeSuffix = itemType && itemType !== "unknown" ? ` items=${itemType}${itemEnum}` : "";
1943
1959
  const minItems = typeof field.minItems === "number" && Number.isFinite(field.minItems) ? field.minItems : null;
@@ -1950,21 +1966,21 @@ function arrayItemBoundsSuffix(field) {
1950
1966
  return itemTypeSuffix;
1951
1967
  }
1952
1968
  function printToolExecutionHints(value) {
1953
- const batchCapabilityRecord = _chunkZS2WHWWLjs.recordField.call(void 0,
1954
- _chunkZS2WHWWLjs.isRecord.call(void 0, value) ? value : {},
1969
+ const batchCapabilityRecord = _chunkUNDLNT3Vjs.recordField.call(void 0,
1970
+ _chunkUNDLNT3Vjs.isRecord.call(void 0, value) ? value : {},
1955
1971
  "batchCapability",
1956
1972
  "batch_capability"
1957
1973
  );
1958
1974
  const batchCapability = Object.keys(batchCapabilityRecord).length > 0 ? batchCapabilityRecord : null;
1959
- const executionMetadata = _chunkZS2WHWWLjs.recordField.call(void 0,
1960
- _chunkZS2WHWWLjs.isRecord.call(void 0, value) ? value : {},
1975
+ const executionMetadata = _chunkUNDLNT3Vjs.recordField.call(void 0,
1976
+ _chunkUNDLNT3Vjs.isRecord.call(void 0, value) ? value : {},
1961
1977
  "executionMetadata",
1962
1978
  "execution_metadata"
1963
1979
  );
1964
1980
  if (batchCapability) {
1965
- const status = _chunkZS2WHWWLjs.stringField.call(void 0, batchCapability, "status") || "unknown";
1966
- const surface = _chunkZS2WHWWLjs.stringField.call(void 0, batchCapability, "surface");
1967
- const operation = _chunkZS2WHWWLjs.stringField.call(void 0,
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,
1968
1984
  batchCapability,
1969
1985
  "batchOperation",
1970
1986
  "batch_operation"
@@ -1974,7 +1990,7 @@ function printToolExecutionHints(value) {
1974
1990
  "maxBatchSize",
1975
1991
  "max_batch_size"
1976
1992
  );
1977
- const notes = _chunkZS2WHWWLjs.stringField.call(void 0, batchCapability, "notes");
1993
+ const notes = _chunkUNDLNT3Vjs.stringField.call(void 0, batchCapability, "notes");
1978
1994
  console.log("");
1979
1995
  console.log("Batching:");
1980
1996
  console.log(`- Catalog status: ${status}${surface ? ` (${surface})` : ""}`);
@@ -1993,11 +2009,11 @@ function printToolExecutionHints(value) {
1993
2009
  }
1994
2010
  if (notes) console.log(`- Details: ${notes}`);
1995
2011
  }
1996
- const configuredRateLimits = _chunkZS2WHWWLjs.arrayField.call(void 0,
2012
+ const configuredRateLimits = _chunkUNDLNT3Vjs.arrayField.call(void 0,
1997
2013
  executionMetadata,
1998
2014
  "configuredRateLimits",
1999
2015
  "configured_rate_limits"
2000
- ).filter(_chunkZS2WHWWLjs.isRecord);
2016
+ ).filter(_chunkUNDLNT3Vjs.isRecord);
2001
2017
  if (configuredRateLimits.length > 0) {
2002
2018
  console.log("");
2003
2019
  console.log(
@@ -2007,7 +2023,7 @@ function printToolExecutionHints(value) {
2007
2023
  const requests = numberField(limit, "requestsPerWindow");
2008
2024
  const windowMs = numberField(limit, "windowMs");
2009
2025
  if (requests === null || windowMs === null) continue;
2010
- const usage = _chunkZS2WHWWLjs.stringField.call(void 0, limit, "usage") || "unknown";
2026
+ const usage = _chunkUNDLNT3Vjs.stringField.call(void 0, limit, "usage") || "unknown";
2011
2027
  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;
2012
2028
  const explicitMaxConcurrency = numberField(
2013
2029
  limit,
@@ -2020,7 +2036,7 @@ function printToolExecutionHints(value) {
2020
2036
  );
2021
2037
  }
2022
2038
  }
2023
- const queueHint = _chunkZS2WHWWLjs.recordField.call(void 0, executionMetadata, "queueHint", "queue_hint");
2039
+ const queueHint = _chunkUNDLNT3Vjs.recordField.call(void 0, executionMetadata, "queueHint", "queue_hint");
2024
2040
  const requestsPerSecondHint = numberField(
2025
2041
  queueHint,
2026
2042
  "requestsPerSecondHint",
@@ -2046,25 +2062,25 @@ function formatRateWindow(windowMs) {
2046
2062
  }
2047
2063
  function samplePayload(samples, key) {
2048
2064
  const entry = samples[key];
2049
- if (!_chunkZS2WHWWLjs.isRecord.call(void 0, entry)) return void 0;
2065
+ if (!_chunkUNDLNT3Vjs.isRecord.call(void 0, entry)) return void 0;
2050
2066
  return Object.prototype.hasOwnProperty.call(entry, "payload") ? entry.payload : entry;
2051
2067
  }
2052
2068
  function commandEnvelopeFromRawResponse(rawResponse) {
2053
- return _chunkZS2WHWWLjs.isRecord.call(void 0, rawResponse) ? { ...rawResponse } : { status: "completed", result: rawResponse };
2069
+ return _chunkUNDLNT3Vjs.isRecord.call(void 0, rawResponse) ? { ...rawResponse } : { status: "completed", result: rawResponse };
2054
2070
  }
2055
2071
  function toolExecuteExitCode(envelope) {
2056
2072
  return envelope.status === "failed" || envelope.ok === false ? 1 : 0;
2057
2073
  }
2058
2074
  function extractToolExecutionWarningMessages(rawResponse) {
2059
- if (!_chunkZS2WHWWLjs.isRecord.call(void 0, rawResponse)) return [];
2075
+ if (!_chunkUNDLNT3Vjs.isRecord.call(void 0, rawResponse)) return [];
2060
2076
  const candidates = [
2061
- _chunkZS2WHWWLjs.recordField.call(void 0, _chunkZS2WHWWLjs.recordField.call(void 0, rawResponse, "toolResponse"), "meta"),
2062
- _chunkZS2WHWWLjs.recordField.call(void 0,
2063
- _chunkZS2WHWWLjs.recordField.call(void 0, _chunkZS2WHWWLjs.recordField.call(void 0, rawResponse, "toolResponse"), "raw"),
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"),
2064
2080
  "meta"
2065
2081
  ),
2066
- _chunkZS2WHWWLjs.recordField.call(void 0, rawResponse, "meta"),
2067
- _chunkZS2WHWWLjs.recordField.call(void 0, _chunkZS2WHWWLjs.recordField.call(void 0, rawResponse, "result"), "meta")
2082
+ _chunkUNDLNT3Vjs.recordField.call(void 0, rawResponse, "meta"),
2083
+ _chunkUNDLNT3Vjs.recordField.call(void 0, _chunkUNDLNT3Vjs.recordField.call(void 0, rawResponse, "result"), "meta")
2068
2084
  ];
2069
2085
  const messages = [];
2070
2086
  for (const candidate of candidates) {
@@ -2073,8 +2089,8 @@ function extractToolExecutionWarningMessages(rawResponse) {
2073
2089
  for (const warning of warnings) {
2074
2090
  if (typeof warning === "string" && warning.trim()) {
2075
2091
  messages.push(warning.trim());
2076
- } else if (_chunkZS2WHWWLjs.isRecord.call(void 0, warning)) {
2077
- const message = _chunkZS2WHWWLjs.stringField.call(void 0, warning, "message");
2092
+ } else if (_chunkUNDLNT3Vjs.isRecord.call(void 0, warning)) {
2093
+ const message = _chunkUNDLNT3Vjs.stringField.call(void 0, warning, "message");
2078
2094
  if (message) messages.push(message);
2079
2095
  }
2080
2096
  }
@@ -2082,20 +2098,20 @@ function extractToolExecutionWarningMessages(rawResponse) {
2082
2098
  return [...new Set(messages)];
2083
2099
  }
2084
2100
  function apifySyncRecoveryNext(rawResponse) {
2085
- if (!_chunkZS2WHWWLjs.isRecord.call(void 0, rawResponse) || rawResponse.status !== "running") return null;
2086
- const toolResponse = _chunkZS2WHWWLjs.recordField.call(void 0, rawResponse, "toolResponse");
2087
- const raw = _chunkZS2WHWWLjs.recordField.call(void 0, toolResponse, "raw");
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");
2088
2104
  if (raw.state !== "awaiting_apify") return null;
2089
- const next = _chunkZS2WHWWLjs.recordField.call(void 0, raw, "next");
2090
- const getActorRun = _chunkZS2WHWWLjs.recordField.call(void 0, next, "getActorRun");
2091
- const getActorRunTool = _chunkZS2WHWWLjs.stringField.call(void 0, getActorRun, "tool");
2092
- const getActorRunPayload = _chunkZS2WHWWLjs.recordField.call(void 0, getActorRun, "payload");
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");
2093
2109
  if (!getActorRunTool || Object.keys(getActorRunPayload).length === 0) {
2094
2110
  return null;
2095
2111
  }
2096
- const getDatasetItems = _chunkZS2WHWWLjs.recordField.call(void 0, next, "getDatasetItems");
2097
- const getDatasetItemsTool = _chunkZS2WHWWLjs.stringField.call(void 0, getDatasetItems, "tool");
2098
- const getDatasetItemsPayload = _chunkZS2WHWWLjs.recordField.call(void 0, getDatasetItems, "payload");
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");
2099
2115
  return {
2100
2116
  getActorRun: `deepline run ${getActorRunTool} --input ${_chunkAID3OYVJjs.shellQuote.call(void 0, JSON.stringify(getActorRunPayload))}`,
2101
2117
  ...getDatasetItemsTool && Object.keys(getDatasetItemsPayload).length > 0 ? {
@@ -2105,7 +2121,7 @@ function apifySyncRecoveryNext(rawResponse) {
2105
2121
  }
2106
2122
  function listExtractorPathsFromUsageGuidance(tool) {
2107
2123
  const toolExecutionResult = _optionalChain([tool, 'access', _18 => _18.usageGuidance, 'optionalAccess', _19 => _19.toolExecutionResult]);
2108
- const extractedLists = Array.isArray(_optionalChain([toolExecutionResult, 'optionalAccess', _20 => _20.extractedLists])) ? toolExecutionResult.extractedLists : _chunkZS2WHWWLjs.isRecord.call(void 0, _optionalChain([toolExecutionResult, 'optionalAccess', _21 => _21.extractedLists])) ? Object.values(toolExecutionResult.extractedLists) : [];
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) : [];
2109
2125
  return extractedLists.flatMap((entry) => {
2110
2126
  const paths = _nullishCoalesce(_optionalChain([entry, 'access', _22 => _22.details, 'optionalAccess', _23 => _23.candidatePaths]), () => ( _optionalChain([entry, 'access', _24 => _24.details, 'optionalAccess', _25 => _25.rawToolOutputPaths])));
2111
2127
  if (!Array.isArray(paths)) return [];
@@ -2190,7 +2206,7 @@ function parseJsonObjectArgument(raw, flagName) {
2190
2206
  }
2191
2207
  throw invalidJsonError(flagName, message);
2192
2208
  }
2193
- if (!_chunkZS2WHWWLjs.isRecord.call(void 0, parsed)) {
2209
+ if (!_chunkUNDLNT3Vjs.isRecord.call(void 0, parsed)) {
2194
2210
  throw invalidJsonError(flagName, "expected an object.");
2195
2211
  }
2196
2212
  return parsed;
@@ -2234,7 +2250,7 @@ function parseExecuteOptions(toolId, options, output) {
2234
2250
  outputFormat = normalizeOutputFormat(options.outputFormat);
2235
2251
  }
2236
2252
  if (options.idempotencyKey !== void 0) {
2237
- _chunkFGN75ZN6js.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2253
+ _chunk2B4IOGFDjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2238
2254
  }
2239
2255
  if (options.recoveryTimeoutMs !== void 0) {
2240
2256
  const parsed = Number(options.recoveryTimeoutMs);
@@ -2363,7 +2379,7 @@ function buildToolExecuteBaseEnvelope(input) {
2363
2379
  kind: summaryEntries.length > 0 ? "object" : "raw",
2364
2380
  summary: input.summary
2365
2381
  };
2366
- const envelopeHasCanonicalOutput = _chunkZS2WHWWLjs.isRecord.call(void 0, envelope.toolResponse) && Object.prototype.hasOwnProperty.call(envelope.toolResponse, "raw");
2382
+ const envelopeHasCanonicalOutput = _chunkUNDLNT3Vjs.isRecord.call(void 0, envelope.toolResponse) && Object.prototype.hasOwnProperty.call(envelope.toolResponse, "raw");
2367
2383
  const envelopeHasDeclaredOutput = Object.prototype.hasOwnProperty.call(
2368
2384
  envelope,
2369
2385
  "output"
@@ -2391,7 +2407,7 @@ function buildToolExecuteBaseEnvelope(input) {
2391
2407
  return {
2392
2408
  ...envelope,
2393
2409
  ...input.idempotencyKey ? { idempotency_key: input.idempotencyKey } : {},
2394
- ..._chunkZS2WHWWLjs.isRecord.call(void 0, input.rawResponse) && _chunkZS2WHWWLjs.isRecord.call(void 0, input.rawResponse.executionRecovery) ? { execution_recovery: input.rawResponse.executionRecovery } : {},
2410
+ ..._chunkUNDLNT3Vjs.isRecord.call(void 0, input.rawResponse) && _chunkUNDLNT3Vjs.isRecord.call(void 0, input.rawResponse.executionRecovery) ? { execution_recovery: input.rawResponse.executionRecovery } : {},
2395
2411
  ...envelopeHasCanonicalOutput || envelopeHasDeclaredOutput ? { output_preview: outputPreview } : { output: outputPreview },
2396
2412
  ...summaryEntries.length > 0 ? { summary: input.summary } : {},
2397
2413
  ...warningMessages.length > 0 ? { warnings: warningMessages } : {},
@@ -2452,7 +2468,7 @@ function buildToolExecuteRowArtifactEnvelope(input) {
2452
2468
  void _render;
2453
2469
  void _next;
2454
2470
  void _local;
2455
- const billingLookup = _chunkZS2WHWWLjs.isRecord.call(void 0, input.baseEnvelope.next) && typeof input.baseEnvelope.next.billing === "string" ? input.baseEnvelope.next.billing : null;
2471
+ const billingLookup = _chunkUNDLNT3Vjs.isRecord.call(void 0, input.baseEnvelope.next) && typeof input.baseEnvelope.next.billing === "string" ? input.baseEnvelope.next.billing : null;
2456
2472
  const inspection = toolExecutionInspection(input);
2457
2473
  return {
2458
2474
  ...base,
@@ -2548,8 +2564,8 @@ function printToolExecutionWarnings(toolId, params, metadata) {
2548
2564
  }
2549
2565
  }
2550
2566
  function assertExecutableToolMetadata(toolId, metadata) {
2551
- if (_chunkZS2WHWWLjs.isPlayLikeTool.call(void 0, metadata)) {
2552
- throw new (0, _chunkSQWET4SLjs.DeeplineError)(
2567
+ if (_chunkUNDLNT3Vjs.isPlayLikeTool.call(void 0, metadata)) {
2568
+ throw new (0, _chunkBBTKAASQjs.DeeplineError)(
2553
2569
  playLikeToolExecuteErrorMessage(
2554
2570
  toolId,
2555
2571
  metadata
@@ -2566,7 +2582,7 @@ function valueAt(value, path) {
2566
2582
  for (const [index, part] of parts.entries()) {
2567
2583
  const each = part === "*" || part.endsWith("[*]");
2568
2584
  if (part !== "*") {
2569
- at = _chunkZS2WHWWLjs.isRecord.call(void 0, at) ? at[each ? part.slice(0, -3) : part] : void 0;
2585
+ at = _chunkUNDLNT3Vjs.isRecord.call(void 0, at) ? at[each ? part.slice(0, -3) : part] : void 0;
2570
2586
  }
2571
2587
  if (!each) continue;
2572
2588
  if (!Array.isArray(at)) return void 0;
@@ -2582,7 +2598,7 @@ function declaredOutputs(metadata, envelope, data) {
2582
2598
  const getters = ["extractedValues", "extractedLists"].flatMap(
2583
2599
  (kind) => {
2584
2600
  const group = _optionalChain([result, 'optionalAccess', _30 => _30[kind]]);
2585
- return Array.isArray(group) ? group : _chunkZS2WHWWLjs.isRecord.call(void 0, group) ? Object.entries(group).map(([name, getter]) => ({
2601
+ return Array.isArray(group) ? group : _chunkUNDLNT3Vjs.isRecord.call(void 0, group) ? Object.entries(group).map(([name, getter]) => ({
2586
2602
  name,
2587
2603
  ...getter
2588
2604
  })) : [];
@@ -2607,13 +2623,13 @@ function declaredOutputs(metadata, envelope, data) {
2607
2623
  }
2608
2624
  function writeToolReceipt(input) {
2609
2625
  const { response, metadata } = input;
2610
- const envelope = _chunkZS2WHWWLjs.isRecord.call(void 0, response) ? response : {};
2626
+ const envelope = _chunkUNDLNT3Vjs.isRecord.call(void 0, response) ? response : {};
2611
2627
  const jobId = typeof envelope.job_id === "string" ? envelope.job_id : null;
2612
- const toolResponse = _chunkZS2WHWWLjs.recordField.call(void 0, envelope, "toolResponse");
2628
+ const toolResponse = _chunkUNDLNT3Vjs.recordField.call(void 0, envelope, "toolResponse");
2613
2629
  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;
2614
2630
  const status = typeof envelope.status === "string" ? envelope.status : "completed";
2615
- const charged = _chunkZS2WHWWLjs.recordField.call(void 0, envelope, "billing").credits_charged;
2616
- _chunk6LHX33VNjs.writeExecutionOutput.call(void 0,
2631
+ const charged = _chunkUNDLNT3Vjs.recordField.call(void 0, envelope, "billing").credits_charged;
2632
+ _chunkKWYGWO4Yjs.writeExecutionOutput.call(void 0,
2617
2633
  {
2618
2634
  id: _nullishCoalesce(input.key, () => ( jobId)),
2619
2635
  status,
@@ -2644,8 +2660,8 @@ async function executeToolForReceipt(input) {
2644
2660
  let retryKey = null;
2645
2661
  let received = false;
2646
2662
  try {
2647
- const cliInvocationId = _nullishCoalesce(_chunkWNNA4L6Zjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkWNNA4L6Zjs.beginToolExecuteCommand.call(void 0, )));
2648
- const client = new (0, _chunk243O3FH5js.DeeplineClient)();
2663
+ const cliInvocationId = _nullishCoalesce(_chunkSLPJ3LXIjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkSLPJ3LXIjs.beginToolExecuteCommand.call(void 0, )));
2664
+ const client = new (0, _chunkXBAH3TKUjs.DeeplineClient)();
2649
2665
  const metadata = assertExecutableToolMetadata(
2650
2666
  toolId,
2651
2667
  await _asyncNullishCoalesce(input.metadata, async () => ( await client.getTool(toolId, { cliInvocationId })))
@@ -2666,9 +2682,9 @@ async function executeToolForReceipt(input) {
2666
2682
  ...input.timeoutMs !== void 0 ? { timeout: input.timeoutMs } : {},
2667
2683
  ..._optionalChain([metadata, 'access', _37 => _37.executionMetadata, 'optionalAccess', _38 => _38.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {},
2668
2684
  ...key ? { idempotencyKey: key } : {},
2669
- searchRef: _chunkK3IPGMGPjs.recentSearchRef.call(void 0, toolId),
2685
+ searchRef: _chunkTX5TUHJNjs.recentSearchRef.call(void 0, toolId),
2670
2686
  cliInvocationId,
2671
- onResponseReceived: _chunk6LHX33VNjs.recordApiResponse
2687
+ onResponseReceived: _chunkKWYGWO4Yjs.recordApiResponse
2672
2688
  }).catch((error) => {
2673
2689
  const guidance = toolGuidanceLines(metadata.guidance);
2674
2690
  if (guidance.length)
@@ -2691,14 +2707,11 @@ async function executeToolForReceipt(input) {
2691
2707
  if (received) throw error;
2692
2708
  const outcomeKnown = answeredWithFailure(error);
2693
2709
  if (outcomeKnown) _optionalChain([retryKey, 'optionalAccess', _39 => _39.discard, 'call', _40 => _40()]);
2694
- _chunk6LHX33VNjs.writeExecutionOutput.call(void 0,
2710
+ _chunkKWYGWO4Yjs.writeExecutionOutput.call(void 0,
2695
2711
  {
2696
2712
  id: outcomeKnown ? null : key,
2697
2713
  status: "failed",
2698
- error: {
2699
- message: error instanceof Error ? error.message : String(error),
2700
- ...error instanceof _chunkSQWET4SLjs.DeeplineError ? { code: error.code } : {}
2701
- },
2714
+ error: _chunkLN6RXDTBjs.errorToJsonPayload.call(void 0, error).error,
2702
2715
  ...key && !outcomeKnown ? {
2703
2716
  next: {
2704
2717
  retry: "Run the same command again: it picks up this call without paying twice."
@@ -2711,15 +2724,15 @@ async function executeToolForReceipt(input) {
2711
2724
  }
2712
2725
  }
2713
2726
  function answeredWithFailure(error) {
2714
- return error instanceof _chunkSQWET4SLjs.DeeplineError && typeof error.statusCode === "number" && error.statusCode < 500 && // A request timeout says nothing about whether the call went through.
2727
+ return error instanceof _chunkBBTKAASQjs.DeeplineError && typeof error.statusCode === "number" && error.statusCode < 500 && // A request timeout says nothing about whether the call went through.
2715
2728
  error.statusCode !== 408 && error.code !== "EXECUTION_OUTCOME_UNKNOWN";
2716
2729
  }
2717
2730
  async function getToolExecutionReceipt(key, output) {
2718
- const client = new (0, _chunk243O3FH5js.DeeplineClient)();
2731
+ const client = new (0, _chunkXBAH3TKUjs.DeeplineClient)();
2719
2732
  const execution = await client.executions.getByKey(key);
2720
2733
  output.label = `${execution.toolId} (tool)`;
2721
2734
  if (execution.response === void 0) {
2722
- _chunk6LHX33VNjs.writeExecutionOutput.call(void 0,
2735
+ _chunkKWYGWO4Yjs.writeExecutionOutput.call(void 0,
2723
2736
  {
2724
2737
  id: key,
2725
2738
  status: execution.executionRecovery.state,
@@ -2748,19 +2761,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2748
2761
  parsed = parseExecuteOptions(toolId, options, output);
2749
2762
  } catch (error) {
2750
2763
  if (wantsJson) {
2751
- _chunkKWGXHPHLjs.printJsonError.call(void 0, error);
2764
+ _chunkLN6RXDTBjs.printJsonError.call(void 0, error);
2752
2765
  } else {
2753
2766
  console.error(error instanceof Error ? error.message : String(error));
2754
2767
  }
2755
- return error instanceof _chunkSQWET4SLjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
2768
+ return error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
2756
2769
  }
2757
- const cliInvocationId = _nullishCoalesce(_chunkWNNA4L6Zjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkWNNA4L6Zjs.beginToolExecuteCommand.call(void 0, )));
2770
+ const cliInvocationId = _nullishCoalesce(_chunkSLPJ3LXIjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkSLPJ3LXIjs.beginToolExecuteCommand.call(void 0, )));
2758
2771
  const deferredCompatibility = deferCompatibility ? beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) : void 0;
2759
- const tracing = _chunk7PXP2FQKjs.isCliTraceEnabled.call(void 0, );
2772
+ const tracing = _chunkLDGZFDUBjs.isCliTraceEnabled.call(void 0, );
2760
2773
  const clientStartedAt = tracing ? performance.now() : void 0;
2761
- const client = new (0, _chunk243O3FH5js.DeeplineClient)();
2774
+ const client = new (0, _chunkXBAH3TKUjs.DeeplineClient)();
2762
2775
  if (clientStartedAt !== void 0) {
2763
- _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
2776
+ _chunkLDGZFDUBjs.recordCliTrace.call(void 0, {
2764
2777
  phase: "cli.tool_execute_client_setup",
2765
2778
  ms: performance.now() - clientStartedAt
2766
2779
  });
@@ -2769,18 +2782,18 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2769
2782
  const readMetadata = async () => {
2770
2783
  if (metadata) return assertExecutableToolMetadata(parsed.toolId, metadata);
2771
2784
  try {
2772
- metadata = await _chunkWNNA4L6Zjs.runToolExecuteStage.call(void 0,
2785
+ metadata = await _chunkSLPJ3LXIjs.runToolExecuteStage.call(void 0,
2773
2786
  "tool metadata lookup",
2774
2787
  () => client.getTool(parsed.toolId, { cliInvocationId })
2775
2788
  );
2776
2789
  } catch (error) {
2777
2790
  if (isMissingToolMetadataError(error)) {
2778
- const play = await _chunkWNNA4L6Zjs.runToolExecuteStage.call(void 0,
2791
+ const play = await _chunkSLPJ3LXIjs.runToolExecuteStage.call(void 0,
2779
2792
  "play alias lookup",
2780
2793
  () => findPlayForToolId(client, parsed.toolId, cliInvocationId)
2781
2794
  );
2782
2795
  if (play) {
2783
- throw new (0, _chunkSQWET4SLjs.DeeplineError)(
2796
+ throw new (0, _chunkBBTKAASQjs.DeeplineError)(
2784
2797
  playAliasToolErrorMessage(parsed.toolId, play),
2785
2798
  400,
2786
2799
  "PLAY_ALIAS_USED_AS_TOOL"
@@ -2803,8 +2816,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2803
2816
  try {
2804
2817
  assertExecutableToolMetadata(parsed.toolId, metadata);
2805
2818
  } catch (error) {
2806
- if (error instanceof _chunkSQWET4SLjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2807
- if (wantsJson) _chunkKWGXHPHLjs.printJsonError.call(void 0, error);
2819
+ if (error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2820
+ if (wantsJson) _chunkLN6RXDTBjs.printJsonError.call(void 0, error);
2808
2821
  else console.error(error.message);
2809
2822
  return 2;
2810
2823
  }
@@ -2815,8 +2828,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2815
2828
  try {
2816
2829
  metadata = await readMetadata();
2817
2830
  } catch (error) {
2818
- if (error instanceof _chunkSQWET4SLjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2819
- if (wantsJson) _chunkKWGXHPHLjs.printJsonError.call(void 0, error);
2831
+ if (error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2832
+ if (wantsJson) _chunkLN6RXDTBjs.printJsonError.call(void 0, error);
2820
2833
  else console.error(error.message);
2821
2834
  return 2;
2822
2835
  }
@@ -2831,8 +2844,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2831
2844
  try {
2832
2845
  metadata = await readMetadata();
2833
2846
  } catch (error) {
2834
- if (error instanceof _chunkSQWET4SLjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2835
- if (wantsJson) _chunkKWGXHPHLjs.printJsonError.call(void 0, error);
2847
+ if (error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2848
+ if (wantsJson) _chunkLN6RXDTBjs.printJsonError.call(void 0, error);
2836
2849
  else console.error(error.message);
2837
2850
  return 2;
2838
2851
  }
@@ -2858,11 +2871,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2858
2871
  responseIntent,
2859
2872
  ...idempotencyKey ? { idempotencyKey } : {},
2860
2873
  ...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
2861
- searchRef: _chunkK3IPGMGPjs.recentSearchRef.call(void 0, parsed.toolId),
2874
+ searchRef: _chunkTX5TUHJNjs.recentSearchRef.call(void 0, parsed.toolId),
2862
2875
  cliInvocationId,
2863
- onResponseReceived: _chunk6LHX33VNjs.recordApiResponse,
2876
+ onResponseReceived: _chunkKWYGWO4Yjs.recordApiResponse,
2864
2877
  ...tracing ? {
2865
- onServerTiming: (serverTiming) => _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
2878
+ onServerTiming: (serverTiming) => _chunkLDGZFDUBjs.recordCliTrace.call(void 0, {
2866
2879
  phase: "tool_execute_server_timing",
2867
2880
  cliInvocationId,
2868
2881
  serverTiming,
@@ -2873,13 +2886,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2873
2886
  let rawResponse;
2874
2887
  let successfulCompatibilityResponse;
2875
2888
  try {
2876
- const executeResult = await _chunkWNNA4L6Zjs.runToolExecuteStage.call(void 0,
2889
+ const executeResult = await _chunkSLPJ3LXIjs.runToolExecuteStage.call(void 0,
2877
2890
  "execute request",
2878
2891
  async () => {
2879
2892
  try {
2880
2893
  if (tracing) {
2881
2894
  submissionStartedAt = performance.now();
2882
- _chunk7PXP2FQKjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2895
+ _chunkLDGZFDUBjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2883
2896
  }
2884
2897
  return await client.executeTool(parsed.toolId, parsed.params, {
2885
2898
  ...executeOptions,
@@ -2887,36 +2900,36 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2887
2900
  ..._optionalChain([metadata, 'optionalAccess', _44 => _44.executionMetadata, 'optionalAccess', _45 => _45.retrySafeAmbiguousDelivery]) === true ? { retryAmbiguousDelivery: true } : {}
2888
2901
  });
2889
2902
  } catch (error) {
2890
- if (!(error instanceof _chunkSQWET4SLjs.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
2903
+ if (!(error instanceof _chunkBBTKAASQjs.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
2891
2904
  throw error;
2892
- const baseUrl = _chunkHWPOXCCKjs.resolveConfig.call(void 0, ).baseUrl;
2905
+ const baseUrl = _chunkZILSRDINjs.resolveConfig.call(void 0, ).baseUrl;
2893
2906
  if (maintenancePolicy !== "off") {
2894
- _chunkHYBZWSSHjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
2907
+ _chunkZEV2Y56Vjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
2895
2908
  }
2896
- const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunkWNNA4L6Zjs.runToolExecuteStage.call(void 0,
2909
+ const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunkSLPJ3LXIjs.runToolExecuteStage.call(void 0,
2897
2910
  "SDK compatibility",
2898
- () => _chunkHYBZWSSHjs.checkSdkCompatibility.call(void 0, baseUrl, {
2911
+ () => _chunkZEV2Y56Vjs.checkSdkCompatibility.call(void 0, baseUrl, {
2899
2912
  command: "tools execute",
2900
- skillsVersion: _chunkHWPOXCCKjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
2913
+ skillsVersion: _chunkZILSRDINjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
2901
2914
  persistCache: maintenancePolicy !== "off"
2902
2915
  })
2903
2916
  );
2904
2917
  if (compatibility.error) throw compatibility.error;
2905
2918
  metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _46 => _46.readMetadata, 'call', _47 => _47()]), () => ( metadata));
2906
- if (maintenancePolicy !== "off" && await _chunkWNNA4L6Zjs.maybeAutoUpdateAndRelaunch.call(void 0,
2919
+ if (maintenancePolicy !== "off" && await _chunkSLPJ3LXIjs.maybeAutoUpdateAndRelaunch.call(void 0,
2907
2920
  compatibility.response,
2908
2921
  baseUrl,
2909
2922
  maintenancePolicy
2910
2923
  )) {
2911
2924
  return void 0;
2912
2925
  }
2913
- _chunkHYBZWSSHjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
2926
+ _chunkZEV2Y56Vjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
2914
2927
  quietAdvisory: wantsJson
2915
2928
  });
2916
2929
  if (maintenancePolicy !== "off") {
2917
- await _chunkWNNA4L6Zjs.runToolExecuteStage.call(void 0,
2930
+ await _chunkSLPJ3LXIjs.runToolExecuteStage.call(void 0,
2918
2931
  "agent skills sync",
2919
- () => _chunkHYBZWSSHjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
2932
+ () => _chunkZEV2Y56Vjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
2920
2933
  update: _optionalChain([compatibility, 'access', _48 => _48.response, 'optionalAccess', _49 => _49.skills]),
2921
2934
  mode: "detached"
2922
2935
  })
@@ -2925,7 +2938,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2925
2938
  const legacyMetadata = await readMetadata();
2926
2939
  if (tracing) {
2927
2940
  submissionStartedAt = performance.now();
2928
- _chunk7PXP2FQKjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2941
+ _chunkLDGZFDUBjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2929
2942
  }
2930
2943
  return client.executeTool(parsed.toolId, parsed.params, {
2931
2944
  ...executeOptions,
@@ -2946,10 +2959,10 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2946
2959
  compatibilityReadFailed = true;
2947
2960
  }
2948
2961
  metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
2949
- const updateRequiredBeforeExecution = error instanceof _chunkSQWET4SLjs.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
2962
+ const updateRequiredBeforeExecution = error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
2950
2963
  if (updateRequiredBeforeExecution && maintenancePolicy !== "off" && compatibility && !compatibility.error) {
2951
- const baseUrl = _chunkHWPOXCCKjs.resolveConfig.call(void 0, ).baseUrl;
2952
- if (await _chunkWNNA4L6Zjs.maybeAutoUpdateAndRelaunch.call(void 0,
2964
+ const baseUrl = _chunkZILSRDINjs.resolveConfig.call(void 0, ).baseUrl;
2965
+ if (await _chunkSLPJ3LXIjs.maybeAutoUpdateAndRelaunch.call(void 0,
2953
2966
  compatibility.response,
2954
2967
  baseUrl,
2955
2968
  maintenancePolicy
@@ -2958,22 +2971,22 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2958
2971
  }
2959
2972
  }
2960
2973
  }
2961
- if (error instanceof _chunkSQWET4SLjs.DeeplineError && error.code === "SDK_UPDATE_REQUIRED")
2974
+ if (error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "SDK_UPDATE_REQUIRED")
2962
2975
  throw error;
2963
2976
  let failure = error;
2964
- if (!(failure instanceof _chunkSQWET4SLjs.DeeplineError) || failure.code !== "PLAY_ALIAS_USED_AS_TOOL") {
2977
+ if (!(failure instanceof _chunkBBTKAASQjs.DeeplineError) || failure.code !== "PLAY_ALIAS_USED_AS_TOOL") {
2965
2978
  const warningPreflightWasAvailable = !deferredCompatibility || !compatibilityReadFailed && !_optionalChain([compatibility, 'optionalAccess', _52 => _52.error]);
2966
2979
  if (metadata || warningPreflightWasAvailable) {
2967
2980
  try {
2968
2981
  await readMetadata();
2969
2982
  } catch (diagnosticError) {
2970
- if (diagnosticError instanceof _chunkSQWET4SLjs.DeeplineError && diagnosticError.code === "PLAY_ALIAS_USED_AS_TOOL")
2983
+ if (diagnosticError instanceof _chunkBBTKAASQjs.DeeplineError && diagnosticError.code === "PLAY_ALIAS_USED_AS_TOOL")
2971
2984
  failure = diagnosticError;
2972
2985
  }
2973
2986
  }
2974
2987
  }
2975
- if (failure instanceof _chunkSQWET4SLjs.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
2976
- if (wantsJson) _chunkKWGXHPHLjs.printJsonError.call(void 0, failure);
2988
+ if (failure instanceof _chunkBBTKAASQjs.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
2989
+ if (wantsJson) _chunkLN6RXDTBjs.printJsonError.call(void 0, failure);
2977
2990
  else console.error(failure.message);
2978
2991
  return 2;
2979
2992
  }
@@ -3000,9 +3013,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3000
3013
  successfulCompatibilityResponse = _nullishCoalesce(compatibilityResponse, () => ( void 0));
3001
3014
  const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _56 => _56.auto_update]);
3002
3015
  if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _57 => _57.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
3003
- await _chunkWNNA4L6Zjs.maybeAutoUpdateAndRelaunch.call(void 0,
3016
+ await _chunkSLPJ3LXIjs.maybeAutoUpdateAndRelaunch.call(void 0,
3004
3017
  compatibilityResponse,
3005
- _chunkHWPOXCCKjs.resolveConfig.call(void 0, ).baseUrl,
3018
+ _chunkZILSRDINjs.resolveConfig.call(void 0, ).baseUrl,
3006
3019
  maintenancePolicy
3007
3020
  );
3008
3021
  }
@@ -3020,8 +3033,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3020
3033
  );
3021
3034
  }
3022
3035
  }
3023
- const responseMetadata = _chunkZS2WHWWLjs.recordField.call(void 0,
3024
- _chunkZS2WHWWLjs.recordField.call(void 0, rawResponse, "_metadata"),
3036
+ const responseMetadata = _chunkUNDLNT3Vjs.recordField.call(void 0,
3037
+ _chunkUNDLNT3Vjs.recordField.call(void 0, rawResponse, "_metadata"),
3025
3038
  "tool"
3026
3039
  );
3027
3040
  const listOutputPaths = responseMetadata.listOutputPaths;
@@ -3033,11 +3046,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3033
3046
  await readMetadata()
3034
3047
  );
3035
3048
  }
3036
- if (_chunkZS2WHWWLjs.isRecord.call(void 0, rawResponse)) {
3049
+ if (_chunkUNDLNT3Vjs.isRecord.call(void 0, rawResponse)) {
3037
3050
  const { _metadata, ...execution } = rawResponse;
3038
3051
  rawResponse = execution;
3039
3052
  }
3040
- const { listConversion, summary, baseEnvelope } = await _chunkWNNA4L6Zjs.runToolExecuteStage.call(void 0,
3053
+ const { listConversion, summary, baseEnvelope } = await _chunkSLPJ3LXIjs.runToolExecuteStage.call(void 0,
3041
3054
  "result formatting",
3042
3055
  async () => {
3043
3056
  const listConversion2 = _chunkHGFFYVXNjs.tryConvertToList.call(void 0, rawResponse, {
@@ -3072,9 +3085,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3072
3085
  }
3073
3086
  skillsSyncAttempted = true;
3074
3087
  try {
3075
- await _chunkWNNA4L6Zjs.runToolExecuteStage.call(void 0,
3088
+ await _chunkSLPJ3LXIjs.runToolExecuteStage.call(void 0,
3076
3089
  "agent skills sync",
3077
- () => _chunkHYBZWSSHjs.syncSdkSkillsIfNeeded.call(void 0, _chunkHWPOXCCKjs.resolveConfig.call(void 0, ).baseUrl, {
3090
+ () => _chunkZEV2Y56Vjs.syncSdkSkillsIfNeeded.call(void 0, _chunkZILSRDINjs.resolveConfig.call(void 0, ).baseUrl, {
3078
3091
  update: deliveredCompatibilityResponse.skills,
3079
3092
  mode: "detached"
3080
3093
  })
@@ -3085,15 +3098,15 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3085
3098
  );
3086
3099
  }
3087
3100
  };
3088
- const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0, envelope, {
3101
+ const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkLN6RXDTBjs.printCommandEnvelope.call(void 0, envelope, {
3089
3102
  ...options2,
3090
3103
  json: _nullishCoalesce(options2.json, () => ( wantsJson))
3091
3104
  });
3092
3105
  const printDeliveredJsonEnvelope = async (envelope, options2 = {}) => {
3093
3106
  await syncSkillsForDeliveredOutput();
3094
- _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
3107
+ _chunkLN6RXDTBjs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
3095
3108
  };
3096
- const delivered = await _chunkWNNA4L6Zjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
3109
+ const delivered = await _chunkSLPJ3LXIjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
3097
3110
  if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
3098
3111
  await printDeliveredJsonEnvelope(baseEnvelope);
3099
3112
  return true;
@@ -3106,7 +3119,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3106
3119
  await printDeliveredJsonEnvelope({
3107
3120
  ...baseEnvelope,
3108
3121
  local: {
3109
- ..._chunkZS2WHWWLjs.isRecord.call(void 0, baseEnvelope.local) ? baseEnvelope.local : {},
3122
+ ..._chunkUNDLNT3Vjs.isRecord.call(void 0, baseEnvelope.local) ? baseEnvelope.local : {},
3110
3123
  payload_file: jsonPath
3111
3124
  }
3112
3125
  });
@@ -3122,7 +3135,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3122
3135
  `${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
3123
3136
  );
3124
3137
  if (wantsJson) {
3125
- _chunkKWGXHPHLjs.printJsonError.call(void 0, error);
3138
+ _chunkLN6RXDTBjs.printJsonError.call(void 0, error);
3126
3139
  } else {
3127
3140
  console.error(error.message);
3128
3141
  }
@@ -3217,13 +3230,13 @@ inspect: ${inspection.inspect}
3217
3230
  return true;
3218
3231
  });
3219
3232
  if (delivered) {
3220
- await _chunkWNNA4L6Zjs.runToolExecuteStage.call(void 0,
3233
+ await _chunkSLPJ3LXIjs.runToolExecuteStage.call(void 0,
3221
3234
  "acknowledge delivery",
3222
3235
  () => recovery.acknowledgeDelivery()
3223
3236
  );
3224
3237
  }
3225
3238
  if (delivered && deliveredCompatibilityResponse && deliveredCompatibilityResponse.update_required !== true) {
3226
- _chunkHYBZWSSHjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
3239
+ _chunkZEV2Y56Vjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
3227
3240
  quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _60 => _60.auto_update, 'optionalAccess', _61 => _61.should_auto_update]) === true
3228
3241
  });
3229
3242
  }