deepline 0.3.502 → 0.3.504

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 (211) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +26 -0
  2. package/dist/bundling-sources/sdk/src/index.ts +1 -0
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/sdk/src/types.ts +9 -0
  5. package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +35 -0
  6. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +1 -1
  7. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-public-aliases.ts +13 -0
  8. package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +0 -8
  9. package/dist/bundling-sources/shared_libs/observability/dlq.ts +174 -0
  10. package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
  11. package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
  12. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  13. package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +20 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +62 -2
  15. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +667 -62
  16. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +55 -0
  17. package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +20 -2
  18. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +46 -0
  19. package/dist/bundling-sources/shared_libs/play-runtime/execution-gateway-invocation-fence.ts +80 -4
  20. package/dist/bundling-sources/shared_libs/play-runtime/fixture-egress-fetch.ts +95 -0
  21. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +292 -45
  22. package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +15 -0
  23. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +3 -0
  24. package/dist/bundling-sources/shared_libs/play-runtime/play-http-request.ts +7 -3
  25. package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-semantics.ts +31 -1
  26. package/dist/bundling-sources/shared_libs/play-runtime/post-code-recovery-policy.ts +231 -0
  27. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +4 -0
  28. package/dist/bundling-sources/shared_libs/play-runtime/run-ending-event.ts +55 -0
  29. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +126 -0
  30. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +38 -1
  31. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +2 -9
  32. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +51 -19
  33. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/local-process.ts +9 -4
  34. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +2 -0
  35. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +2 -0
  36. package/dist/bundling-sources/shared_libs/play-runtime/runtime-actions.ts +12 -1
  37. package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +3 -0
  38. package/dist/bundling-sources/shared_libs/play-runtime/runtime-incident-drills.ts +42 -0
  39. package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +7 -0
  40. package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-store-adapter.ts +26 -1
  41. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +13 -0
  42. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-deadline-reconciliation.ts +53 -0
  43. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +631 -19
  44. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-inventory.ts +719 -0
  45. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +206 -0
  46. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/latest-cache-result.ts +83 -0
  47. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +1432 -157
  48. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +61 -0
  49. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +29 -8
  50. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-queue-health.ts +27 -2
  51. package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +45 -0
  52. package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +18 -0
  53. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +129 -14
  54. package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +2 -0
  55. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +10 -1
  56. package/dist/cli/{auth-EFHLOVG4.mjs → auth-3L5AA5AX.mjs} +5 -5
  57. package/dist/cli/auth-UPK4IIIN.js +43 -0
  58. package/dist/cli/{billing-Q5XKEYPP.mjs → billing-E7EASVPO.mjs} +19 -12
  59. package/dist/cli/{billing-SKT2VE34.js → billing-HOGXVE2V.js} +92 -85
  60. package/dist/cli/{chunk-L5CTJY74.mjs → chunk-22OCKCYS.mjs} +2 -2
  61. package/dist/cli/{chunk-YWOQYYYS.mjs → chunk-2ABRDH3B.mjs} +2 -2
  62. package/dist/cli/{chunk-IL666WJE.js → chunk-2W77YCKH.js} +5 -5
  63. package/dist/cli/{chunk-2MVIS2UI.mjs → chunk-3MLFFWDM.mjs} +2 -2
  64. package/dist/cli/{chunk-HMZF2CSP.mjs → chunk-4CC67XH5.mjs} +2 -2
  65. package/dist/cli/{chunk-NXVYLX3F.mjs → chunk-5CHBIJIM.mjs} +10 -6
  66. package/dist/cli/chunk-5LUF4LAR.mjs +209 -0
  67. package/dist/cli/{chunk-JL6H4H3G.js → chunk-5Z6EULD5.js} +6 -6
  68. package/dist/cli/{chunk-32YQBJON.js → chunk-67OI26OE.js} +7 -7
  69. package/dist/cli/{chunk-LA3UYRVZ.js → chunk-6JNBMTCZ.js} +1 -1
  70. package/dist/cli/{chunk-DYHTXGLX.js → chunk-6SMR7LU7.js} +2 -2
  71. package/dist/cli/{chunk-OFBLT2LQ.mjs → chunk-7F4OEHQK.mjs} +1 -1
  72. package/dist/cli/{chunk-DRBD4IYQ.mjs → chunk-7MJYZ33I.mjs} +2 -6
  73. package/dist/cli/{chunk-UOANF3DR.js → chunk-7P2QVMBP.js} +26 -7
  74. package/dist/cli/{chunk-GINKIZ7S.js → chunk-A6LA42JY.js} +16 -16
  75. package/dist/cli/{chunk-FVM4PS5Q.js → chunk-BN5VKY4X.js} +25 -12
  76. package/dist/cli/{chunk-Z2H7OQ6E.mjs → chunk-BTWUNKKX.mjs} +2 -2
  77. package/dist/cli/{chunk-R5F7JXT4.mjs → chunk-BX45XMXZ.mjs} +2 -2
  78. package/dist/cli/{chunk-NKLM4J4X.mjs → chunk-DEAJVQEG.mjs} +1 -1
  79. package/dist/cli/{chunk-JFBJLNBI.js → chunk-FISP4LCK.js} +53 -53
  80. package/dist/cli/{chunk-OEUMXKR5.js → chunk-FTRVCIGC.js} +26 -26
  81. package/dist/cli/{chunk-YL2CCF6T.mjs → chunk-GGBXNQCR.mjs} +4 -4
  82. package/dist/cli/{chunk-YPTZJ7LO.js → chunk-GJ2DA35C.js} +100 -17
  83. package/dist/cli/{chunk-2S2F6YSI.js → chunk-GRAGUYIE.js} +41 -41
  84. package/dist/cli/{chunk-2JS3H6H6.mjs → chunk-HUX5DZO6.mjs} +3 -3
  85. package/dist/cli/{chunk-4CCMD7QM.mjs → chunk-IGNQKOWT.mjs} +32 -15
  86. package/dist/cli/{chunk-WKFAX2K7.js → chunk-IPAMOMGP.js} +21 -21
  87. package/dist/cli/{chunk-SAW3FBCA.mjs → chunk-ITJ7NB2D.mjs} +6 -0
  88. package/dist/cli/{chunk-Q3NM6ZL3.js → chunk-JPR2546F.js} +23 -21
  89. package/dist/cli/{chunk-X5MGQ7UT.js → chunk-KCKAFTPY.js} +10 -10
  90. package/dist/cli/{chunk-TAK3MVXY.js → chunk-KGUGNEKL.js} +284 -267
  91. package/dist/cli/{chunk-OVZOMSH2.js → chunk-LHXYCZYO.js} +8 -8
  92. package/dist/cli/{chunk-QOJBRCAS.js → chunk-MJTK6Q3G.js} +3 -3
  93. package/dist/cli/{chunk-MYUISF3P.mjs → chunk-MLMWM5DV.mjs} +5 -5
  94. package/dist/cli/{chunk-JO5FFSR7.js → chunk-NTLBZUHD.js} +6 -0
  95. package/dist/cli/{chunk-MP5QY4A2.mjs → chunk-NZ7Z7WNM.mjs} +2 -2
  96. package/dist/cli/{chunk-HIVRCTDR.mjs → chunk-OX2D6BG4.mjs} +20 -1
  97. package/dist/cli/{chunk-YDXEXVBV.js → chunk-QKKU2FH4.js} +7 -7
  98. package/dist/cli/{chunk-3KEZVGGV.mjs → chunk-QOLX2O2S.mjs} +4 -4
  99. package/dist/cli/{chunk-JFUXUSKB.mjs → chunk-R2VZVHJP.mjs} +15 -2
  100. package/dist/cli/chunk-R7J7CJPZ.js +209 -0
  101. package/dist/cli/{chunk-XMKUJ44Z.js → chunk-SMSQVRHE.js} +5 -5
  102. package/dist/cli/{chunk-54QXWK3C.mjs → chunk-SVFTZTCI.mjs} +1 -1
  103. package/dist/cli/{chunk-FWDAEWCD.js → chunk-TMQUMILM.js} +19 -23
  104. package/dist/cli/{chunk-TFFJ2PRN.mjs → chunk-UFYJTRSF.mjs} +98 -15
  105. package/dist/cli/{chunk-EUWRKWT4.js → chunk-UJMBG5JU.js} +5 -4
  106. package/dist/cli/{chunk-DKAMCJIT.js → chunk-USTJEEND.js} +17 -13
  107. package/dist/cli/{chunk-AJL2Q6IQ.js → chunk-UXQQPMYO.js} +2 -2
  108. package/dist/cli/{chunk-7ZYSXSJJ.mjs → chunk-VJVJWZ6I.mjs} +5 -5
  109. package/dist/cli/{chunk-JLYDLK6X.js → chunk-WBIDPDKJ.js} +3 -3
  110. package/dist/cli/{chunk-QNELA7SX.js → chunk-WZSFIJMG.js} +53 -53
  111. package/dist/cli/{chunk-NZXB27TP.mjs → chunk-XHZSPMNC.mjs} +4 -4
  112. package/dist/cli/{chunk-W5CHE5Q2.mjs → chunk-Y6XKCEPK.mjs} +1 -1
  113. package/dist/cli/{chunk-4WTC5SSN.mjs → chunk-Y7VEHKID.mjs} +10 -8
  114. package/dist/cli/{chunk-3MJSWVQ2.mjs → chunk-YOQ2NNDO.mjs} +2 -1
  115. package/dist/cli/{chunk-ZNB6GR3P.mjs → chunk-Z6FXUDIL.mjs} +1 -1
  116. package/dist/cli/command-docs.d.mts +2 -1
  117. package/dist/cli/command-docs.d.ts +2 -1
  118. package/dist/cli/command-docs.js +6 -2
  119. package/dist/cli/command-docs.mjs +5 -1
  120. package/dist/cli/{csv-OXGSCV75.js → csv-2XWGPITO.js} +13 -13
  121. package/dist/cli/{csv-6AEPKKCO.mjs → csv-433JEHLQ.mjs} +4 -4
  122. package/dist/cli/{db-K3KRK4CZ.mjs → db-K747DH43.mjs} +6 -6
  123. package/dist/cli/{db-6NVHDUZY.js → db-PJJMD4VH.js} +27 -27
  124. package/dist/cli/describe-OYS7LZJD.js +49 -0
  125. package/dist/cli/{describe-P3ZJS7TQ.mjs → describe-VEDDYW4P.mjs} +20 -20
  126. package/dist/cli/describe-core.d.mts +8 -4
  127. package/dist/cli/describe-core.d.ts +8 -4
  128. package/dist/cli/describe-core.js +4 -4
  129. package/dist/cli/describe-core.mjs +3 -3
  130. package/dist/cli/{executions-2C2FFG52.js → executions-HM5T72H6.js} +8 -8
  131. package/dist/cli/{executions-I7XW6WWK.mjs → executions-JWRX3XCT.mjs} +6 -6
  132. package/dist/cli/{feedback-47B57A5Y.js → feedback-34UG4BO3.js} +8 -8
  133. package/dist/cli/{feedback-RSTNBJAI.mjs → feedback-MNSIA63Y.mjs} +4 -4
  134. package/dist/cli/git-5YQJSJFR.js +25 -0
  135. package/dist/cli/{git-3G5AFKBT.mjs → git-ZKEOXV3A.mjs} +5 -5
  136. package/dist/cli/index.js +144 -142
  137. package/dist/cli/index.mjs +44 -42
  138. package/dist/cli/{legacy-noops-NQ262TKL.mjs → legacy-noops-5M4T4ZVT.mjs} +5 -5
  139. package/dist/cli/{legacy-noops-P665PBG4.js → legacy-noops-YXSI4FVU.js} +8 -8
  140. package/dist/cli/{monitors-KUPZODZS.mjs → monitors-C65OC4AW.mjs} +7 -7
  141. package/dist/cli/{monitors-IPWAD7LS.js → monitors-O25GDOYE.js} +95 -95
  142. package/dist/cli/{org-WFC3N672.js → org-2GSPLY2A.js} +72 -72
  143. package/dist/cli/{org-ZCQGEM3L.mjs → org-ZRMG5NS2.mjs} +6 -6
  144. package/dist/cli/{pages-N5BNC67L.js → pages-45DPADK6.js} +18 -18
  145. package/dist/cli/{pages-VE66IU7B.mjs → pages-TZZUFBRO.mjs} +6 -6
  146. package/dist/cli/{play-EIMDIAJB.mjs → play-3D7HH273.mjs} +138 -226
  147. package/dist/cli/{play-NKIRJSKX.js → play-RCGMND6X.js} +454 -542
  148. package/dist/cli/{providers-XU3AGY2F.js → providers-3N3ECMTY.js} +9 -9
  149. package/dist/cli/{providers-KDTJ63ED.mjs → providers-PSAKV6CJ.mjs} +6 -6
  150. package/dist/cli/{quickstart-TXFXUODF.mjs → quickstart-2A35SMGC.mjs} +4 -4
  151. package/dist/cli/{quickstart-OSCHOSXU.js → quickstart-6R6AIXM6.js} +6 -6
  152. package/dist/cli/{run-ODGML35U.mjs → run-F3TLDGUO.mjs} +25 -25
  153. package/dist/cli/{run-ET2KVTPK.js → run-F6ZXTASZ.js} +44 -44
  154. package/dist/cli/{search-DK67K6PR.mjs → search-CZLCY3D2.mjs} +7 -7
  155. package/dist/cli/search-R5VEWJO2.js +32 -0
  156. package/dist/cli/{search-output-6SOKQTCW.mjs → search-output-MQTSTLN5.mjs} +5 -5
  157. package/dist/cli/{search-output-KXP4FA62.js → search-output-R5XDNILW.js} +7 -7
  158. package/dist/cli/{secrets-C6SYTMU7.mjs → secrets-D3GF4B2Z.mjs} +6 -6
  159. package/dist/cli/{secrets-WPS6NMNK.js → secrets-DCJYHDSY.js} +15 -15
  160. package/dist/cli/{sessions-PXVOH34X.mjs → sessions-QGEQ2UYZ.mjs} +5 -5
  161. package/dist/cli/{sessions-IP562J5Z.js → sessions-Z4JYJSDP.js} +6 -6
  162. package/dist/cli/{settings-FBUQGYVJ.mjs → settings-G7QEXA4N.mjs} +11 -11
  163. package/dist/cli/{settings-SUDUIVMY.js → settings-UVXXAT4A.js} +78 -78
  164. package/dist/cli/{setup-I5H6IOEY.js → setup-5I42W7D4.js} +49 -49
  165. package/dist/cli/{setup-JSIMTR73.mjs → setup-QHJU3DUI.mjs} +9 -9
  166. package/dist/cli/{skills-FJQ3LX6N.mjs → skills-5LRF4UKX.mjs} +7 -7
  167. package/dist/cli/skills-FB6TV52O.js +36 -0
  168. package/dist/cli/tools-L2364RPA.js +56 -0
  169. package/dist/cli/{tools-IGBK4BVE.mjs → tools-PUT6STVG.mjs} +18 -18
  170. package/dist/cli/{update-7MTT6F5K.mjs → update-CJ2GA64X.mjs} +9 -9
  171. package/dist/cli/update-ESYJGYVZ.js +34 -0
  172. package/dist/cli/{workflow-PM2J2OU3.mjs → workflow-HVEWRTXD.mjs} +7 -7
  173. package/dist/cli/{workflow-UX3ZX6BQ.js → workflow-O67MEBCP.js} +17 -17
  174. package/dist/{client-Bn8FwKGO.d.ts → client-CIwenMFS.d.ts} +1 -1
  175. package/dist/{client-CfNRmjLK.d.mts → client-DYAfJpaN.d.mts} +1 -1
  176. package/dist/{client-core-B91EV0WS.d.ts → client-core-CRjtyMAI.d.ts} +25 -2
  177. package/dist/{client-core-BG8Cgrmk.d.mts → client-core-DlzP8vEs.d.mts} +25 -2
  178. package/dist/{compiler-manifest-DlXDyndN.d.mts → compiler-manifest-DaJrA2KV.d.mts} +1 -1
  179. package/dist/{compiler-manifest-DlXDyndN.d.ts → compiler-manifest-DaJrA2KV.d.ts} +1 -1
  180. package/dist/{errors-BtriA2ld.d.mts → errors-BKnSYueU.d.mts} +1 -1
  181. package/dist/{errors-DmcLykM7.d.ts → errors-KLga4bLr.d.ts} +1 -1
  182. package/dist/{index-DI0sR_fX.d.mts → index-C-8AFpWy.d.mts} +1 -1
  183. package/dist/{index--Jw-slHY.d.ts → index-C5nAZ-VS.d.ts} +1 -1
  184. package/dist/index.d.mts +7 -7
  185. package/dist/index.d.ts +7 -7
  186. package/dist/index.js +9 -9
  187. package/dist/index.mjs +6 -6
  188. package/dist/install-integrity.json +125 -116
  189. package/dist/plays/bundle-play-file.d.mts +3 -3
  190. package/dist/plays/bundle-play-file.d.ts +3 -3
  191. package/dist/plays/bundle-play-file.mjs +12 -5
  192. package/dist/plays/play-description.d.mts +2 -2
  193. package/dist/plays/play-description.d.ts +2 -2
  194. package/dist/plays/run-request.d.mts +2 -2
  195. package/dist/plays/run-request.d.ts +2 -2
  196. package/dist/release.d.mts +1 -1
  197. package/dist/release.d.ts +1 -1
  198. package/dist/release.js +2 -2
  199. package/dist/release.mjs +1 -1
  200. package/dist/server.d.mts +4 -4
  201. package/dist/server.d.ts +4 -4
  202. package/dist/server.js +5 -5
  203. package/dist/server.mjs +3 -3
  204. package/package.json +1 -1
  205. package/dist/cli/auth-VM3IKP5F.js +0 -43
  206. package/dist/cli/describe-JOUAXXPE.js +0 -49
  207. package/dist/cli/git-OPKIC6JQ.js +0 -25
  208. package/dist/cli/search-6U54Y3OK.js +0 -32
  209. package/dist/cli/skills-VHININXC.js +0 -36
  210. package/dist/cli/tools-XMBMHVKF.js +0 -56
  211. package/dist/cli/update-H7JVW43I.js +0 -34
@@ -2,11 +2,11 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkX5MGQ7UTjs = require('./chunk-X5MGQ7UT.js');
5
+ var _chunkKCKAFTPYjs = require('./chunk-KCKAFTPY.js');
6
6
 
7
7
 
8
8
 
9
- var _chunk32YQBJONjs = require('./chunk-32YQBJON.js');
9
+ var _chunk67OI26OEjs = require('./chunk-67OI26OE.js');
10
10
 
11
11
 
12
12
 
@@ -27,10 +27,10 @@ var _chunk32YQBJONjs = require('./chunk-32YQBJON.js');
27
27
 
28
28
 
29
29
 
30
- var _chunkFVM4PS5Qjs = require('./chunk-FVM4PS5Q.js');
30
+ var _chunkBN5VKY4Xjs = require('./chunk-BN5VKY4X.js');
31
31
 
32
32
 
33
- var _chunkJO5FFSR7js = require('./chunk-JO5FFSR7.js');
33
+ var _chunkNTLBZUHDjs = require('./chunk-NTLBZUHD.js');
34
34
 
35
35
 
36
36
  var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.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 _chunkXMKUJ44Zjs = require('./chunk-XMKUJ44Z.js');
49
+ var _chunkSMSQVRHEjs = require('./chunk-SMSQVRHE.js');
50
50
 
51
51
 
52
- var _chunkUOANF3DRjs = require('./chunk-UOANF3DR.js');
52
+ var _chunk7P2QVMBPjs = require('./chunk-7P2QVMBP.js');
53
53
 
54
54
 
55
55
  var _chunkWSGXBROEjs = require('./chunk-WSGXBROE.js');
@@ -59,18 +59,18 @@ var _chunkWSGXBROEjs = require('./chunk-WSGXBROE.js');
59
59
 
60
60
 
61
61
 
62
- var _chunkWKFAX2K7js = require('./chunk-WKFAX2K7.js');
62
+ var _chunkIPAMOMGPjs = require('./chunk-IPAMOMGP.js');
63
63
 
64
64
 
65
65
 
66
66
 
67
- var _chunkAJL2Q6IQjs = require('./chunk-AJL2Q6IQ.js');
67
+ var _chunkUXQQPMYOjs = require('./chunk-UXQQPMYO.js');
68
68
 
69
69
 
70
70
 
71
71
 
72
72
 
73
- var _chunkQNELA7SXjs = require('./chunk-QNELA7SX.js');
73
+ var _chunkWZSFIJMGjs = require('./chunk-WZSFIJMG.js');
74
74
 
75
75
 
76
76
 
@@ -78,12 +78,12 @@ var _chunkQNELA7SXjs = require('./chunk-QNELA7SX.js');
78
78
 
79
79
 
80
80
 
81
- var _chunkYDXEXVBVjs = require('./chunk-YDXEXVBV.js');
81
+ var _chunkQKKU2FH4js = require('./chunk-QKKU2FH4.js');
82
82
 
83
83
 
84
84
 
85
85
 
86
- var _chunkJLYDLK6Xjs = require('./chunk-JLYDLK6X.js');
86
+ var _chunkWBIDPDKJjs = require('./chunk-WBIDPDKJ.js');
87
87
 
88
88
 
89
89
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
@@ -189,10 +189,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
189
189
  }
190
190
  };
191
191
  function pendingToolExecutionPath(input) {
192
- const config = _chunkJLYDLK6Xjs.resolveConfig.call(void 0, );
192
+ const config = _chunkWBIDPDKJjs.resolveConfig.call(void 0, );
193
193
  const fingerprint = _crypto.createHash.call(void 0, "sha256").update(config.baseUrl).update("\0").update(_crypto.createHash.call(void 0, "sha256").update(config.apiKey).digest("hex")).update("\0").update(input.toolId).update("\0").update(_chunkWSGXBROEjs.stableStringify.call(void 0, input.params)).update("\0").update(input.responseIntent).digest("hex");
194
194
  return _path.join.call(void 0,
195
- _chunkJLYDLK6Xjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
195
+ _chunkWBIDPDKJjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
196
196
  `${PENDING_PREFIX}${fingerprint}.json`
197
197
  );
198
198
  }
@@ -344,13 +344,13 @@ var TOOL_COMMAND_TEMPLATES = {
344
344
  execute: "deepline run <toolId> --input '{...}'"
345
345
  };
346
346
  function toListedTool(tool) {
347
- if (_chunkFVM4PS5Qjs.isPlayLikeTool.call(void 0, tool)) {
347
+ if (_chunkBN5VKY4Xjs.isPlayLikeTool.call(void 0, tool)) {
348
348
  return {
349
349
  ...tool,
350
350
  description: listedToolDescription(tool),
351
351
  id: tool.toolId,
352
352
  type: "play",
353
- executeCommand: _chunkFVM4PS5Qjs.playRunCommandForTool.call(void 0, tool, tool.toolId)
353
+ executeCommand: _chunkBN5VKY4Xjs.playRunCommandForTool.call(void 0, tool, tool.toolId)
354
354
  };
355
355
  }
356
356
  return {
@@ -432,16 +432,16 @@ function firstSentence(text) {
432
432
  return (match ? match[0] : clean).trim();
433
433
  }
434
434
  function requiredInputIds(tool) {
435
- const inputSchema = _chunkFVM4PS5Qjs.recordField.call(void 0,
435
+ const inputSchema = _chunkBN5VKY4Xjs.recordField.call(void 0,
436
436
  tool,
437
437
  "inputSchema",
438
438
  "input_schema"
439
439
  );
440
- return _chunkFVM4PS5Qjs.toolInputFieldsForDisplay.call(void 0, inputSchema).filter((field) => field.required === true).map((field) => String(_nullishCoalesce(field.name, () => ( "")))).filter(Boolean);
440
+ return _chunkBN5VKY4Xjs.toolInputFieldsForDisplay.call(void 0, inputSchema).filter((field) => field.required === true).map((field) => String(_nullishCoalesce(field.name, () => ( "")))).filter(Boolean);
441
441
  }
442
442
  function notConnectedSuffix(tool) {
443
443
  const record = tool;
444
- const status = _chunkFVM4PS5Qjs.stringField.call(void 0, record, "credentialStatus", "credential_status");
444
+ const status = _chunkBN5VKY4Xjs.stringField.call(void 0, record, "credentialStatus", "credential_status");
445
445
  const connected = record.connected;
446
446
  const message = toolConnectionStatusMessage({
447
447
  connected: connected === false ? false : void 0,
@@ -450,18 +450,18 @@ function notConnectedSuffix(tool) {
450
450
  return message ? ` - \u26A0 ${message}` : "";
451
451
  }
452
452
  function shortPricingHint(tool) {
453
- const pricing = _chunkFVM4PS5Qjs.recordField.call(void 0,
453
+ const pricing = _chunkBN5VKY4Xjs.recordField.call(void 0,
454
454
  tool,
455
455
  "pricing"
456
456
  );
457
457
  const credits = numberField(pricing, "creditsPerUnit", "credits_per_unit");
458
- const unit = _chunkFVM4PS5Qjs.stringField.call(void 0, pricing, "unit");
458
+ const unit = _chunkBN5VKY4Xjs.stringField.call(void 0, pricing, "unit");
459
459
  if (credits !== null) {
460
460
  return `${formatDecimal(credits)} cr/${unit || "unit"}`;
461
461
  }
462
- const summary = _chunkFVM4PS5Qjs.stringField.call(void 0, pricing, "summary");
462
+ const summary = _chunkBN5VKY4Xjs.stringField.call(void 0, pricing, "summary");
463
463
  if (summary) return summary;
464
- const displayText = _chunkFVM4PS5Qjs.stringField.call(void 0, pricing, "displayText", "display_text");
464
+ const displayText = _chunkBN5VKY4Xjs.stringField.call(void 0, pricing, "displayText", "display_text");
465
465
  return displayText || null;
466
466
  }
467
467
  function aggregateCategorySummaries(tools) {
@@ -505,13 +505,13 @@ function categoryEnumerationRender(summaries) {
505
505
  };
506
506
  }
507
507
  async function listToolCategories(emitJson, compact) {
508
- const client = new (0, _chunkXMKUJ44Zjs.DeeplineClient)();
508
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
509
509
  if (!emitJson) {
510
510
  const summaries2 = (await client.listToolCategories()).map((category) => ({
511
511
  ...category,
512
512
  description: describeToolCategory(category.name)
513
513
  }));
514
- _chunkYDXEXVBVjs.printCommandEnvelope.call(void 0,
514
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
515
515
  { categories: summaries2, render: categoryEnumerationRender(summaries2) },
516
516
  { json: false }
517
517
  );
@@ -521,7 +521,7 @@ async function listToolCategories(emitJson, compact) {
521
521
  const items = rawTools.map(toListedTool);
522
522
  const summaries = aggregateCategorySummaries(rawTools);
523
523
  const outputItems = compact ? items.map(compactTool) : items;
524
- _chunkYDXEXVBVjs.printCommandEnvelope.call(void 0,
524
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
525
525
  {
526
526
  tools: outputItems,
527
527
  count: outputItems.length,
@@ -540,7 +540,7 @@ function unknownCategoryError(category, summaries, emitJson) {
540
540
  const known = summaries.map((item) => item.name);
541
541
  const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
542
542
  if (emitJson) {
543
- _chunkYDXEXVBVjs.printJson.call(void 0, {
543
+ _chunkQKKU2FH4js.printJson.call(void 0, {
544
544
  ok: false,
545
545
  exitCode: 4,
546
546
  code: "TOOL_CATEGORY_NOT_FOUND",
@@ -554,13 +554,13 @@ function unknownCategoryError(category, summaries, emitJson) {
554
554
  const render = categoryEnumerationRender(summaries);
555
555
  console.error(message);
556
556
  console.error("");
557
- console.error(_chunkYDXEXVBVjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
557
+ console.error(_chunkQKKU2FH4js.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
558
558
  console.error("");
559
559
  console.error(`Valid categories: ${known.join(", ")}`);
560
560
  return 4;
561
561
  }
562
562
  async function listToolsInCategory(category, emitJson) {
563
- const client = new (0, _chunkXMKUJ44Zjs.DeeplineClient)();
563
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
564
564
  const { tools: rawTools, categories } = await client.listToolsInCategory(category);
565
565
  const summaries = categories.map((item) => ({
566
566
  ...item,
@@ -596,7 +596,7 @@ async function listToolsInCategory(category, emitJson) {
596
596
  }
597
597
  ]
598
598
  };
599
- _chunkYDXEXVBVjs.printCommandEnvelope.call(void 0,
599
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
600
600
  {
601
601
  category,
602
602
  total: rows.length,
@@ -609,7 +609,7 @@ async function listToolsInCategory(category, emitJson) {
609
609
  return 0;
610
610
  }
611
611
  async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
612
- const client = new (0, _chunkXMKUJ44Zjs.DeeplineClient)();
612
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
613
613
  const items = (await client.listTools({
614
614
  categories: requestedCategories.join(","),
615
615
  compact
@@ -638,7 +638,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
638
638
  ]
639
639
  };
640
640
  const outputItems = compact ? items.map(compactTool) : items;
641
- _chunkYDXEXVBVjs.printCommandEnvelope.call(void 0,
641
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
642
642
  {
643
643
  tools: outputItems,
644
644
  count: outputItems.length,
@@ -657,13 +657,13 @@ async function listTools(category, options = {}) {
657
657
  const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
658
658
  const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
659
659
  const compact = options.compact !== false;
660
- const emitJson = options.json === true || _chunkYDXEXVBVjs.shouldEmitJson.call(void 0, );
660
+ const emitJson = options.json === true || _chunkQKKU2FH4js.shouldEmitJson.call(void 0, );
661
661
  if (positional && flagCategories.length > 0) {
662
662
  const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
663
663
  if (!flagIsSameSingle) {
664
664
  const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
665
665
  if (emitJson) {
666
- _chunkYDXEXVBVjs.printJson.call(void 0, {
666
+ _chunkQKKU2FH4js.printJson.call(void 0, {
667
667
  ok: false,
668
668
  exitCode: 2,
669
669
  code: "TOOL_LIST_CATEGORY_CONFLICT",
@@ -690,7 +690,7 @@ async function grepTools(queryInput, options = {}) {
690
690
  console.error("Usage: deepline tools grep <query> [--json]");
691
691
  return 1;
692
692
  }
693
- const client = new (0, _chunkXMKUJ44Zjs.DeeplineClient)();
693
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
694
694
  const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
695
695
  const mode = _nullishCoalesce(options.mode, () => ( "all"));
696
696
  const jsonOutput = options.json === true;
@@ -714,7 +714,7 @@ async function grepTools(queryInput, options = {}) {
714
714
  query,
715
715
  mode
716
716
  }) : null;
717
- _chunkYDXEXVBVjs.printCommandEnvelope.call(void 0,
717
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
718
718
  {
719
719
  tools: outputTools,
720
720
  count: outputTools.length,
@@ -732,7 +732,7 @@ async function grepTools(queryInput, options = {}) {
732
732
  } : {},
733
733
  commandTemplates: TOOL_COMMAND_TEMPLATES
734
734
  },
735
- { json: options.json || _chunkYDXEXVBVjs.shouldEmitJson.call(void 0, ) }
735
+ { json: options.json || _chunkQKKU2FH4js.shouldEmitJson.call(void 0, ) }
736
736
  );
737
737
  return 0;
738
738
  }
@@ -787,8 +787,8 @@ function printPlayAliasToolError(toolId, play) {
787
787
  console.error(playAliasToolErrorMessage(toolId, play));
788
788
  }
789
789
  function playLikeToolExecuteErrorMessage(toolId, tool) {
790
- const playReference = tool ? _chunkFVM4PS5Qjs.playReferenceForTool.call(void 0, tool) : null;
791
- const nextStep = playReference ? `Use: deepline run ${playReference} --input '{...}'` : `Find the maintained workflow with: ${_chunkFVM4PS5Qjs.playSearchCommandForToolId.call(void 0, toolId)}`;
790
+ const playReference = tool ? _chunkBN5VKY4Xjs.playReferenceForTool.call(void 0, tool) : null;
791
+ const nextStep = playReference ? `Use: deepline run ${playReference} --input '{...}'` : `Find the maintained workflow with: ${_chunkBN5VKY4Xjs.playSearchCommandForToolId.call(void 0, toolId)}`;
792
792
  return [
793
793
  `${toolId} is a workflow/play entry, not an atomic provider tool.`,
794
794
  nextStep,
@@ -817,6 +817,7 @@ Concepts:
817
817
  Common commands:
818
818
  deepline search "name and company domain -> work email" --type tools
819
819
  deepline describe hunter_email_verifier
820
+ deepline tools connect hubspot --link
820
821
  deepline run hunter_email_verifier --input '{"email":"a@b.com"}'
821
822
  deepline billing usage --request-id <request-id>
822
823
 
@@ -828,22 +829,38 @@ Output:
828
829
  `
829
830
  );
830
831
  tools.command("connect <provider>").description(
831
- "Connect a provider with credentials or OAuth (owner/admin required)."
832
+ "Get a dashboard connection link or connect a provider with credentials or OAuth."
833
+ ).addOption(
834
+ new (0, _commander.Option)("--link", "Print a shareable dashboard link").conflicts([
835
+ "credentialsFile",
836
+ "oauth",
837
+ "preset",
838
+ "scopes",
839
+ "optionalScopes"
840
+ ])
832
841
  ).option(
833
842
  "--credentials-file <path>",
834
843
  "JSON object of credential field names and string values; keep this file private"
835
844
  ).option("--oauth", "Return an OAuth authorization URL").option("--preset <id>", "Server-defined access preset (HubSpot only)").option("--scopes <scopes>", "Comma-separated OAuth scopes").option(
836
845
  "--optional-scopes <scopes>",
837
846
  "Comma-separated optional OAuth scopes"
838
- ).option("--json", "Emit a confirmation without credential values").action(
847
+ ).option("--json", "Print JSON without credential values").action(
839
848
  async (provider, options) => {
849
+ if (options.link) {
850
+ const link = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getIntegrationConnectLink(
851
+ provider
852
+ );
853
+ if (_chunkQKKU2FH4js.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(link));
854
+ else console.log(link.connect_url);
855
+ return;
856
+ }
840
857
  if (options.oauth) {
841
858
  if (options.credentialsFile)
842
859
  throw new Error("Use --oauth or --credentials-file, not both.");
843
860
  if (options.preset !== void 0 && (options.scopes !== void 0 || options.optionalScopes !== void 0))
844
861
  throw new Error("Use --preset or individual scopes, not both.");
845
862
  const splitScopes = (value) => value.split(",").map((scope) => scope.trim()).filter(Boolean);
846
- const result2 = await new (0, _chunkXMKUJ44Zjs.DeeplineClient)().startIntegrationOAuth(
863
+ const result2 = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().startIntegrationOAuth(
847
864
  provider,
848
865
  {
849
866
  ...options.preset !== void 0 ? { preset: options.preset } : {},
@@ -855,7 +872,7 @@ Output:
855
872
  throw new Error(
856
873
  "The API did not return an OAuth authorization URL."
857
874
  );
858
- if (_chunkYDXEXVBVjs.shouldEmitJson.call(void 0, options.json))
875
+ if (_chunkQKKU2FH4js.shouldEmitJson.call(void 0, options.json))
859
876
  console.log(
860
877
  JSON.stringify({ provider, redirect_url: result2.redirect_url })
861
878
  );
@@ -864,7 +881,7 @@ Output:
864
881
  }
865
882
  if (!options.credentialsFile || options.preset !== void 0 || options.scopes !== void 0 || options.optionalScopes !== void 0)
866
883
  throw new Error(
867
- "Use --credentials-file to save credentials, or --oauth to request access."
884
+ "Use --link for a dashboard link, --credentials-file to save credentials, or --oauth to request access."
868
885
  );
869
886
  let credentials;
870
887
  try {
@@ -881,7 +898,7 @@ Output:
881
898
  "--credentials-file must contain a nonempty JSON object of string credential values."
882
899
  );
883
900
  }
884
- const result = await new (0, _chunkXMKUJ44Zjs.DeeplineClient)().setIntegrationCredentials(
901
+ const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().setIntegrationCredentials(
885
902
  provider,
886
903
  credentials
887
904
  );
@@ -891,7 +908,7 @@ Output:
891
908
  );
892
909
  }
893
910
  const confirmation = { provider, credential_saved: true };
894
- if (_chunkYDXEXVBVjs.shouldEmitJson.call(void 0, options.json))
911
+ if (_chunkQKKU2FH4js.shouldEmitJson.call(void 0, options.json))
895
912
  console.log(JSON.stringify(confirmation));
896
913
  else
897
914
  console.log(
@@ -931,7 +948,7 @@ Examples:
931
948
  json: Boolean(options.json)
932
949
  });
933
950
  });
934
- _chunk32YQBJONjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
951
+ _chunk67OI26OEjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
935
952
  tools.command("grep <query>").description(
936
953
  "Regex grep over tool ids, descriptions, categories, and input fields."
937
954
  ).addHelpText(
@@ -966,7 +983,7 @@ Examples:
966
983
  });
967
984
  const addToolMetadataCommand = (command) => {
968
985
  let compatibilityMetadata;
969
- _chunkWKFAX2K7js.registerCompatibilityCatalog.call(void 0, command, () => ({
986
+ _chunkIPAMOMGPjs.registerCompatibilityCatalog.call(void 0, command, () => ({
970
987
  toolId: command.args[0],
971
988
  acceptMetadata: (metadata) => {
972
989
  compatibilityMetadata = metadata;
@@ -1036,7 +1053,7 @@ Examples:
1036
1053
  process.exitCode = await narrowView();
1037
1054
  return;
1038
1055
  }
1039
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-JOUAXXPE.js")));
1056
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-OYS7LZJD.js")));
1040
1057
  process.exitCode = await describeAnything(
1041
1058
  toolId,
1042
1059
  {
@@ -1051,7 +1068,7 @@ Examples:
1051
1068
  });
1052
1069
  };
1053
1070
  addToolMetadataCommand(
1054
- _chunkX5MGQ7UTjs.addDescribeOptions.call(void 0,
1071
+ _chunkKCKAFTPYjs.addDescribeOptions.call(void 0,
1055
1072
  tools.command("describe <toolId>", { hidden: true }).alias("get"),
1056
1073
  { json: false }
1057
1074
  )
@@ -1120,7 +1137,7 @@ Examples:
1120
1137
  options,
1121
1138
  void 0,
1122
1139
  true,
1123
- _chunkAJL2Q6IQjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
1140
+ _chunkUXQQPMYOjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
1124
1141
  );
1125
1142
  }
1126
1143
  );
@@ -1128,13 +1145,13 @@ Examples:
1128
1145
  function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1129
1146
  let metadata;
1130
1147
  const startedAt = performance.now();
1131
- const baseUrl = _chunkJLYDLK6Xjs.resolveConfig.call(void 0, ).baseUrl;
1132
- _chunkAJL2Q6IQjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
1133
- const result = _chunkWKFAX2K7js.runToolExecuteStage.call(void 0,
1148
+ const baseUrl = _chunkWBIDPDKJjs.resolveConfig.call(void 0, ).baseUrl;
1149
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
1150
+ const result = _chunkIPAMOMGPjs.runToolExecuteStage.call(void 0,
1134
1151
  "SDK compatibility",
1135
- () => _chunkQNELA7SXjs.checkSdkCompatibility.call(void 0, baseUrl, {
1152
+ () => _chunkWZSFIJMGjs.checkSdkCompatibility.call(void 0, baseUrl, {
1136
1153
  command: "tools execute",
1137
- skillsVersion: _chunkJLYDLK6Xjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
1154
+ skillsVersion: _chunkWBIDPDKJjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
1138
1155
  persistCache: false,
1139
1156
  timeoutMs: TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS,
1140
1157
  catalog: {
@@ -1148,7 +1165,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1148
1165
  })
1149
1166
  ).then(
1150
1167
  (compatibility) => {
1151
- _chunkAJL2Q6IQjs.recordCliTrace.call(void 0, {
1168
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
1152
1169
  phase: "cli.tool_execute_compatibility_ready",
1153
1170
  ms: performance.now() - startedAt,
1154
1171
  ok: compatibility.error === null,
@@ -1157,7 +1174,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1157
1174
  return compatibility;
1158
1175
  },
1159
1176
  (error) => {
1160
- _chunkAJL2Q6IQjs.recordCliTrace.call(void 0, {
1177
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
1161
1178
  phase: "cli.tool_execute_compatibility_ready",
1162
1179
  ms: performance.now() - startedAt,
1163
1180
  ok: false
@@ -1172,7 +1189,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1172
1189
  console.error("Usage: deepline tools describe <toolId> [--json]");
1173
1190
  return 1;
1174
1191
  }
1175
- const client = new (0, _chunkXMKUJ44Zjs.DeeplineClient)();
1192
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
1176
1193
  let tool;
1177
1194
  try {
1178
1195
  tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
@@ -1226,12 +1243,12 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1226
1243
  const lines = toolPricingOnlyLines(tool, toolId);
1227
1244
  if (inferenceQuote)
1228
1245
  lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
1229
- _chunkYDXEXVBVjs.printCommandEnvelope.call(void 0,
1246
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1230
1247
  {
1231
1248
  toolId: String(tool.toolId || toolId),
1232
- cost: _chunkFVM4PS5Qjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
1249
+ cost: _chunkBN5VKY4Xjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
1233
1250
  ...modelDescription ? { modelOptions: modelDescription } : {},
1234
- ..._chunkFVM4PS5Qjs.isMonitorTypeTool.call(void 0, tool) ? { pricing: _chunkFVM4PS5Qjs.recordField.call(void 0, tool, "pricing") } : {},
1251
+ ..._chunkBN5VKY4Xjs.isMonitorTypeTool.call(void 0, tool) ? { pricing: _chunkBN5VKY4Xjs.recordField.call(void 0, tool, "pricing") } : {},
1235
1252
  ...inferenceQuote ? { inferenceQuote } : {}
1236
1253
  },
1237
1254
  {
@@ -1242,14 +1259,14 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1242
1259
  );
1243
1260
  return 0;
1244
1261
  }
1245
- if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !_chunkFVM4PS5Qjs.isMonitorTypeTool.call(void 0, tool) && !_chunkFVM4PS5Qjs.isPlayLikeTool.call(void 0, tool) && (options.json || options.contractJson)) {
1246
- const contract = _chunkFVM4PS5Qjs.toolContractJsonForDescribe.call(void 0,
1262
+ if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !_chunkBN5VKY4Xjs.isMonitorTypeTool.call(void 0, tool) && !_chunkBN5VKY4Xjs.isPlayLikeTool.call(void 0, tool) && (options.json || options.contractJson)) {
1263
+ const contract = _chunkBN5VKY4Xjs.toolContractJsonForDescribe.call(void 0,
1247
1264
  tool,
1248
1265
  toolId,
1249
1266
  void 0,
1250
1267
  seedToolListScript
1251
1268
  );
1252
- _chunkYDXEXVBVjs.printCompactJson.call(void 0, {
1269
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, {
1253
1270
  toolId: contract.toolId,
1254
1271
  ...options.schemaOnly ? {
1255
1272
  inputSchema: contract.inputSchema,
@@ -1272,8 +1289,8 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1272
1289
  return 0;
1273
1290
  }
1274
1291
  if (options.contractJson) {
1275
- _chunkYDXEXVBVjs.printCompactJson.call(void 0, {
1276
- ..._chunkFVM4PS5Qjs.toolContractJsonForDescribe.call(void 0,
1292
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, {
1293
+ ..._chunkBN5VKY4Xjs.toolContractJsonForDescribe.call(void 0,
1277
1294
  tool,
1278
1295
  toolId,
1279
1296
  void 0,
@@ -1286,8 +1303,8 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1286
1303
  }
1287
1304
  const emitJson = options.json === true;
1288
1305
  if (emitJson) {
1289
- _chunkYDXEXVBVjs.printCompactJson.call(void 0, {
1290
- ..._chunkFVM4PS5Qjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
1306
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, {
1307
+ ..._chunkBN5VKY4Xjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
1291
1308
  ...modelDescription ? { modelOptions: modelDescription } : {},
1292
1309
  ...inferenceQuote ? { inferenceQuote } : {}
1293
1310
  });
@@ -1312,7 +1329,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1312
1329
  printCompactToolContract(tool, toolId);
1313
1330
  if (modelDescription) {
1314
1331
  process.stdout.write(`
1315
- ${_chunkFVM4PS5Qjs.formatModelDescription.call(void 0, modelDescription)}`);
1332
+ ${_chunkBN5VKY4Xjs.formatModelDescription.call(void 0, modelDescription)}`);
1316
1333
  }
1317
1334
  if (inferenceQuote) printInferenceQuoteSummary(inferenceQuote);
1318
1335
  return 0;
@@ -1320,7 +1337,7 @@ ${_chunkFVM4PS5Qjs.formatModelDescription.call(void 0, modelDescription)}`);
1320
1337
  printCompactToolContract(tool, toolId);
1321
1338
  if (modelDescription) {
1322
1339
  process.stdout.write(`
1323
- ${_chunkFVM4PS5Qjs.formatModelDescription.call(void 0, modelDescription)}`);
1340
+ ${_chunkBN5VKY4Xjs.formatModelDescription.call(void 0, modelDescription)}`);
1324
1341
  }
1325
1342
  if (inferenceQuote) printInferenceQuoteSummary(inferenceQuote);
1326
1343
  return 0;
@@ -1337,10 +1354,10 @@ function printInferenceQuoteSummary(quote) {
1337
1354
  for (const line of inferenceQuoteSummaryLines(quote)) console.log(line);
1338
1355
  }
1339
1356
  function printMonitorTypeFilters(tool) {
1340
- const schema = _chunkFVM4PS5Qjs.recordField.call(void 0, tool, "payload_schema", "payloadSchema");
1341
- const properties = _chunkFVM4PS5Qjs.recordField.call(void 0, schema, "properties");
1357
+ const schema = _chunkBN5VKY4Xjs.recordField.call(void 0, tool, "payload_schema", "payloadSchema");
1358
+ const properties = _chunkBN5VKY4Xjs.recordField.call(void 0, schema, "properties");
1342
1359
  const required = new Set(
1343
- _chunkFVM4PS5Qjs.arrayField.call(void 0, schema, "required").filter(
1360
+ _chunkBN5VKY4Xjs.arrayField.call(void 0, schema, "required").filter(
1344
1361
  (v) => typeof v === "string"
1345
1362
  )
1346
1363
  );
@@ -1351,24 +1368,24 @@ function printMonitorTypeFilters(tool) {
1351
1368
  }
1352
1369
  console.log("Deploy filters (set in the monitor payload):");
1353
1370
  for (const name of names) {
1354
- const field = _chunkFVM4PS5Qjs.isRecord.call(void 0, properties[name]) ? properties[name] : {};
1371
+ const field = _chunkBN5VKY4Xjs.isRecord.call(void 0, properties[name]) ? properties[name] : {};
1355
1372
  const star = required.has(name) ? "*" : "";
1356
- const enumVals = _chunkFVM4PS5Qjs.arrayField.call(void 0, field, "enum").filter(
1373
+ const enumVals = _chunkBN5VKY4Xjs.arrayField.call(void 0, field, "enum").filter(
1357
1374
  (v) => typeof v === "string"
1358
1375
  );
1359
- const type = enumVals.length ? `one of [${enumVals.join(", ")}]` : _chunkFVM4PS5Qjs.stringField.call(void 0, field, "type") || "string";
1360
- const desc = _chunkFVM4PS5Qjs.stringField.call(void 0, field, "description");
1376
+ const type = enumVals.length ? `one of [${enumVals.join(", ")}]` : _chunkBN5VKY4Xjs.stringField.call(void 0, field, "type") || "string";
1377
+ const desc = _chunkBN5VKY4Xjs.stringField.call(void 0, field, "description");
1361
1378
  console.log(`- ${name}${star}: ${type}${desc ? ` - ${desc}` : ""}`);
1362
1379
  }
1363
1380
  }
1364
1381
  function printMonitorTypeFilterExamples(tool) {
1365
- const documentation = _chunkFVM4PS5Qjs.recordField.call(void 0, tool, "documentation");
1366
- const fields = _chunkFVM4PS5Qjs.recordField.call(void 0, documentation, "fields");
1382
+ const documentation = _chunkBN5VKY4Xjs.recordField.call(void 0, tool, "documentation");
1383
+ const fields = _chunkBN5VKY4Xjs.recordField.call(void 0, documentation, "fields");
1367
1384
  const examples = Object.entries(fields).flatMap(([name, rawField]) => {
1368
- const grammar = _chunkFVM4PS5Qjs.recordField.call(void 0, _chunkFVM4PS5Qjs.isRecord.call(void 0, rawField) ? rawField : {}, "grammar");
1369
- const example = _chunkFVM4PS5Qjs.stringField.call(void 0, grammar, "example");
1385
+ const grammar = _chunkBN5VKY4Xjs.recordField.call(void 0, _chunkBN5VKY4Xjs.isRecord.call(void 0, rawField) ? rawField : {}, "grammar");
1386
+ const example = _chunkBN5VKY4Xjs.stringField.call(void 0, grammar, "example");
1370
1387
  const values = [
1371
- ..._chunkFVM4PS5Qjs.arrayField.call(void 0, grammar, "examples").filter(
1388
+ ..._chunkBN5VKY4Xjs.arrayField.call(void 0, grammar, "examples").filter(
1372
1389
  (value) => typeof value === "string" && Boolean(value)
1373
1390
  ),
1374
1391
  ...example ? [example] : []
@@ -1383,21 +1400,21 @@ function printMonitorTypeFilterExamples(tool) {
1383
1400
  }
1384
1401
  }
1385
1402
  function printMonitorTypeStreams(tool) {
1386
- const streams = _chunkFVM4PS5Qjs.arrayField.call(void 0, tool, "streams", "output_streams").filter(
1387
- _chunkFVM4PS5Qjs.isRecord
1403
+ const streams = _chunkBN5VKY4Xjs.arrayField.call(void 0, tool, "streams", "output_streams").filter(
1404
+ _chunkBN5VKY4Xjs.isRecord
1388
1405
  );
1389
1406
  if (!streams.length) return;
1390
1407
  console.log("");
1391
1408
  console.log("Filter columns (a play's sqlListeners.where, per stream):");
1392
1409
  for (const stream of streams) {
1393
- const name = _chunkFVM4PS5Qjs.stringField.call(void 0, stream, "stream");
1394
- const cols = _chunkFVM4PS5Qjs.arrayField.call(void 0, stream, "columns").filter(_chunkFVM4PS5Qjs.isRecord).map((col) => _chunkFVM4PS5Qjs.stringField.call(void 0, col, "name")).filter(Boolean);
1410
+ const name = _chunkBN5VKY4Xjs.stringField.call(void 0, stream, "stream");
1411
+ const cols = _chunkBN5VKY4Xjs.arrayField.call(void 0, stream, "columns").filter(_chunkBN5VKY4Xjs.isRecord).map((col) => _chunkBN5VKY4Xjs.stringField.call(void 0, col, "name")).filter(Boolean);
1395
1412
  console.log(`- ${name}: ${cols.join(", ")}`);
1396
1413
  }
1397
1414
  }
1398
1415
  function monitorTypePricingLines(tool) {
1399
- const pricing = _chunkFVM4PS5Qjs.recordField.call(void 0, tool, "pricing");
1400
- const byType = _chunkFVM4PS5Qjs.recordField.call(void 0,
1416
+ const pricing = _chunkBN5VKY4Xjs.recordField.call(void 0, tool, "pricing");
1417
+ const byType = _chunkBN5VKY4Xjs.recordField.call(void 0,
1401
1418
  pricing,
1402
1419
  "pricing_by_radar_type",
1403
1420
  "pricingByRadarType"
@@ -1408,9 +1425,9 @@ function monitorTypePricingLines(tool) {
1408
1425
  }
1409
1426
  const lines = ["Pricing (Deepline credits per accepted event):"];
1410
1427
  for (const key of keys) {
1411
- const entry = _chunkFVM4PS5Qjs.isRecord.call(void 0, byType[key]) ? byType[key] : {};
1428
+ const entry = _chunkBN5VKY4Xjs.isRecord.call(void 0, byType[key]) ? byType[key] : {};
1412
1429
  const credits = numberField(entry, "deepline_credits", "deeplineCredits");
1413
- const display = _chunkFVM4PS5Qjs.stringField.call(void 0, entry, "display");
1430
+ const display = _chunkBN5VKY4Xjs.stringField.call(void 0, entry, "display");
1414
1431
  const shown = display || (credits !== null ? `${formatDecimal(credits)} credits/event` : "not listed");
1415
1432
  lines.push(`- ${key}: ${shown}`);
1416
1433
  }
@@ -1420,20 +1437,20 @@ function printMonitorTypePricing(tool) {
1420
1437
  for (const line of monitorTypePricingLines(tool)) console.log(line);
1421
1438
  }
1422
1439
  function printMonitorTypeDeploy(tool) {
1423
- const deploy = _chunkFVM4PS5Qjs.recordField.call(void 0, tool, "deploy");
1424
- const toolId = _chunkFVM4PS5Qjs.stringField.call(void 0, tool, "toolId");
1425
- const example = _chunkFVM4PS5Qjs.stringField.call(void 0, deploy, "example") || `deepline monitors deploy '{"key":"...","tool":"${toolId}","payload":{...}}'`;
1440
+ const deploy = _chunkBN5VKY4Xjs.recordField.call(void 0, tool, "deploy");
1441
+ const toolId = _chunkBN5VKY4Xjs.stringField.call(void 0, tool, "toolId");
1442
+ const example = _chunkBN5VKY4Xjs.stringField.call(void 0, deploy, "example") || `deepline monitors deploy '{"key":"...","tool":"${toolId}","payload":{...}}'`;
1426
1443
  console.log("Deploy (a monitor type is deployed, not executed):");
1427
1444
  console.log(` ${example}`);
1428
1445
  }
1429
1446
  function printMonitorTypeContract(tool, requestedToolId) {
1430
- const toolId = _chunkFVM4PS5Qjs.stringField.call(void 0, tool, "toolId") || requestedToolId;
1447
+ const toolId = _chunkBN5VKY4Xjs.stringField.call(void 0, tool, "toolId") || requestedToolId;
1431
1448
  console.log(toolId);
1432
- const displayName = _chunkFVM4PS5Qjs.stringField.call(void 0, tool, "displayName");
1449
+ const displayName = _chunkBN5VKY4Xjs.stringField.call(void 0, tool, "displayName");
1433
1450
  if (displayName) console.log(`Best for: ${displayName}`);
1434
- const description = _chunkFVM4PS5Qjs.stringField.call(void 0, tool, "description");
1451
+ const description = _chunkBN5VKY4Xjs.stringField.call(void 0, tool, "description");
1435
1452
  if (description) console.log(`Description: ${description}`);
1436
- const categories = _chunkFVM4PS5Qjs.arrayField.call(void 0, tool, "categories").filter(
1453
+ const categories = _chunkBN5VKY4Xjs.arrayField.call(void 0, tool, "categories").filter(
1437
1454
  (v) => typeof v === "string"
1438
1455
  );
1439
1456
  if (categories.length) console.log(`Tags: ${categories.join(", ")}`);
@@ -1453,31 +1470,31 @@ function printMonitorTypeContract(tool, requestedToolId) {
1453
1470
  console.log(`More: deepline describe ${toolId}`);
1454
1471
  }
1455
1472
  function toolGuidanceLines(guidance) {
1456
- const record = _chunkFVM4PS5Qjs.isRecord.call(void 0, guidance) ? guidance : {};
1457
- const toolGuidance = _chunkFVM4PS5Qjs.stringField.call(void 0, record, "tool");
1458
- const providerGuidance = _chunkFVM4PS5Qjs.stringField.call(void 0, record, "provider");
1473
+ const record = _chunkBN5VKY4Xjs.isRecord.call(void 0, guidance) ? guidance : {};
1474
+ const toolGuidance = _chunkBN5VKY4Xjs.stringField.call(void 0, record, "tool");
1475
+ const providerGuidance = _chunkBN5VKY4Xjs.stringField.call(void 0, record, "provider");
1459
1476
  return [
1460
1477
  ...toolGuidance ? [`- This tool: ${toolGuidance}`] : [],
1461
1478
  ...providerGuidance ? [`- Provider: ${providerGuidance}`] : []
1462
1479
  ];
1463
1480
  }
1464
1481
  function printCompactToolContract(tool, requestedToolId) {
1465
- if (_chunkFVM4PS5Qjs.isMonitorTypeTool.call(void 0, tool)) {
1482
+ if (_chunkBN5VKY4Xjs.isMonitorTypeTool.call(void 0, tool)) {
1466
1483
  printMonitorTypeContract(tool, requestedToolId);
1467
1484
  return;
1468
1485
  }
1469
- const contract = _chunkFVM4PS5Qjs.toolContractJsonForDescribe.call(void 0,
1486
+ const contract = _chunkBN5VKY4Xjs.toolContractJsonForDescribe.call(void 0,
1470
1487
  tool,
1471
1488
  requestedToolId,
1472
1489
  void 0,
1473
1490
  seedToolListScript
1474
1491
  );
1475
- const cost = _chunkFVM4PS5Qjs.isRecord.call(void 0, contract.cost) ? contract.cost : {};
1476
- const getters = _chunkFVM4PS5Qjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1492
+ const cost = _chunkBN5VKY4Xjs.isRecord.call(void 0, contract.cost) ? contract.cost : {};
1493
+ const getters = _chunkBN5VKY4Xjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1477
1494
  const listGetters = Array.isArray(getters.extractedLists) ? getters.extractedLists : [];
1478
1495
  const valueGetters = Array.isArray(getters.extractedValues) ? getters.extractedValues : [];
1479
- const inputFields = _chunkFVM4PS5Qjs.recursiveToolInputFieldsForDisplay.call(void 0,
1480
- _chunkFVM4PS5Qjs.recordField.call(void 0, contract, "inputSchema")
1496
+ const inputFields = _chunkBN5VKY4Xjs.recursiveToolInputFieldsForDisplay.call(void 0,
1497
+ _chunkBN5VKY4Xjs.recordField.call(void 0, contract, "inputSchema")
1481
1498
  );
1482
1499
  console.log(String(contract.toolId));
1483
1500
  if (contract.displayName) console.log(`Best for: ${contract.displayName}`);
@@ -1494,9 +1511,9 @@ function printCompactToolContract(tool, requestedToolId) {
1494
1511
  printToolOutputArrayShape(contract);
1495
1512
  printToolExecutionHints(contract);
1496
1513
  if (contract.deprecated === true) {
1497
- const deprecation = _chunkFVM4PS5Qjs.isRecord.call(void 0, contract.deprecation) ? contract.deprecation : {};
1498
- const message = _chunkFVM4PS5Qjs.stringField.call(void 0, deprecation, "message");
1499
- const replacementToolId = _chunkFVM4PS5Qjs.stringField.call(void 0,
1514
+ const deprecation = _chunkBN5VKY4Xjs.isRecord.call(void 0, contract.deprecation) ? contract.deprecation : {};
1515
+ const message = _chunkBN5VKY4Xjs.stringField.call(void 0, deprecation, "message");
1516
+ const replacementToolId = _chunkBN5VKY4Xjs.stringField.call(void 0,
1500
1517
  deprecation,
1501
1518
  "replacementToolId",
1502
1519
  "replacement_tool_id"
@@ -1519,12 +1536,12 @@ function printCompactToolContract(tool, requestedToolId) {
1519
1536
  console.log("");
1520
1537
  console.log("Inputs:");
1521
1538
  for (const field of inputFields) {
1522
- if (!_chunkFVM4PS5Qjs.isRecord.call(void 0, field)) continue;
1523
- const name = _chunkFVM4PS5Qjs.stringField.call(void 0, field, "name");
1539
+ if (!_chunkBN5VKY4Xjs.isRecord.call(void 0, field)) continue;
1540
+ const name = _chunkBN5VKY4Xjs.stringField.call(void 0, field, "name");
1524
1541
  if (!name) continue;
1525
1542
  const required = field.required ? "*" : "";
1526
- const type = _chunkFVM4PS5Qjs.stringField.call(void 0, field, "type") || "unknown";
1527
- const description = _chunkFVM4PS5Qjs.stringField.call(void 0, field, "description");
1543
+ const type = _chunkBN5VKY4Xjs.stringField.call(void 0, field, "type") || "unknown";
1544
+ const description = _chunkBN5VKY4Xjs.stringField.call(void 0, field, "description");
1528
1545
  const enumValues = Array.isArray(field.enum) ? field.enum : [];
1529
1546
  const enumSuffix = enumValues.length ? ` enum=${enumValues.map(String).join("|")}` : "";
1530
1547
  const itemBoundsSuffix = arrayItemBoundsSuffix(field);
@@ -1539,8 +1556,8 @@ function printCompactToolContract(tool, requestedToolId) {
1539
1556
  }
1540
1557
  console.log("");
1541
1558
  printToolExamplesOnly(tool, requestedToolId);
1542
- const starterScript = _chunkFVM4PS5Qjs.isRecord.call(void 0, contract.starterScript) ? contract.starterScript : {};
1543
- const starterPath = _chunkFVM4PS5Qjs.stringField.call(void 0, starterScript, "path");
1559
+ const starterScript = _chunkBN5VKY4Xjs.isRecord.call(void 0, contract.starterScript) ? contract.starterScript : {};
1560
+ const starterPath = _chunkBN5VKY4Xjs.stringField.call(void 0, starterScript, "path");
1544
1561
  if (starterPath) {
1545
1562
  console.log("");
1546
1563
  console.log(`Starter script: ${starterPath}`);
@@ -1551,16 +1568,16 @@ function printCompactToolContract(tool, requestedToolId) {
1551
1568
  console.log("Getters:");
1552
1569
  if (listGetters.length) console.log(listGetterHeading());
1553
1570
  for (const entry of listGetters) {
1554
- if (_chunkFVM4PS5Qjs.isRecord.call(void 0, entry))
1571
+ if (_chunkBN5VKY4Xjs.isRecord.call(void 0, entry))
1555
1572
  console.log(
1556
- `- ${_chunkFVM4PS5Qjs.stringField.call(void 0, entry, "name")}: ${_chunkFVM4PS5Qjs.playResultExpression.call(void 0, entry)}`
1573
+ `- ${_chunkBN5VKY4Xjs.stringField.call(void 0, entry, "name")}: ${_chunkBN5VKY4Xjs.playResultExpression.call(void 0, entry)}`
1557
1574
  );
1558
1575
  }
1559
1576
  if (valueGetters.length) console.log("Values:");
1560
1577
  for (const entry of valueGetters) {
1561
- if (_chunkFVM4PS5Qjs.isRecord.call(void 0, entry))
1578
+ if (_chunkBN5VKY4Xjs.isRecord.call(void 0, entry))
1562
1579
  console.log(
1563
- `- ${_chunkFVM4PS5Qjs.stringField.call(void 0, entry, "name")}: ${_chunkFVM4PS5Qjs.playResultExpression.call(void 0, entry)}`
1580
+ `- ${_chunkBN5VKY4Xjs.stringField.call(void 0, entry, "name")}: ${_chunkBN5VKY4Xjs.playResultExpression.call(void 0, entry)}`
1564
1581
  );
1565
1582
  }
1566
1583
  }
@@ -1571,22 +1588,22 @@ function printCompactToolContract(tool, requestedToolId) {
1571
1588
  console.log(`More: deepline describe ${contract.toolId}`);
1572
1589
  }
1573
1590
  function toolPricingOnlyLines(tool, requestedToolId, options = {}) {
1574
- if (_chunkFVM4PS5Qjs.isMonitorTypeTool.call(void 0, tool)) {
1591
+ if (_chunkBN5VKY4Xjs.isMonitorTypeTool.call(void 0, tool)) {
1575
1592
  return monitorTypePricingLines(tool);
1576
1593
  }
1577
1594
  const toolId = String(tool.toolId || requestedToolId);
1578
- const cost = _chunkFVM4PS5Qjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1579
- const pricingModel = _chunkFVM4PS5Qjs.stringField.call(void 0, cost, "pricingModel") || "unknown";
1580
- const billing = _chunkFVM4PS5Qjs.stringField.call(void 0, cost, "billingSourceLabel") || _chunkFVM4PS5Qjs.stringField.call(void 0, cost, "billingSource") || _chunkFVM4PS5Qjs.stringField.call(void 0, cost, "billingMode") || "unknown";
1581
- const explicitUnit = _chunkFVM4PS5Qjs.stringField.call(void 0, cost, "unit");
1595
+ const cost = _chunkBN5VKY4Xjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1596
+ const pricingModel = _chunkBN5VKY4Xjs.stringField.call(void 0, cost, "pricingModel") || "unknown";
1597
+ const billing = _chunkBN5VKY4Xjs.stringField.call(void 0, cost, "billingSourceLabel") || _chunkBN5VKY4Xjs.stringField.call(void 0, cost, "billingSource") || _chunkBN5VKY4Xjs.stringField.call(void 0, cost, "billingMode") || "unknown";
1598
+ const explicitUnit = _chunkBN5VKY4Xjs.stringField.call(void 0, cost, "unit");
1582
1599
  const unit = explicitUnit || (pricingModel === "per_page" ? "page" : pricingModel === "per_result" ? "result" : pricingModel === "fixed" ? "call" : pricingModel.replace(/^per_/, "") || "unit");
1583
1600
  const credits = numberField(cost, "deeplineCreditsPerPricingUnit");
1584
1601
  const usd = numberField(cost, "deeplineUsdPerPricingUnit");
1585
- const displayText = _chunkFVM4PS5Qjs.stringField.call(void 0, cost, "displayText");
1586
- const summary = _chunkFVM4PS5Qjs.stringField.call(void 0, cost, "summary");
1602
+ const displayText = _chunkBN5VKY4Xjs.stringField.call(void 0, cost, "displayText");
1603
+ const summary = _chunkBN5VKY4Xjs.stringField.call(void 0, cost, "summary");
1587
1604
  const price = displayText || summary || (credits !== null ? `${formatDecimal(credits)} Deepline credits${usd !== null ? ` / ${formatUsd(usd)}` : ""} per ${unit}` : "pricing unavailable");
1588
1605
  const reference = cost.observedReference;
1589
- const observedMax = _chunkFVM4PS5Qjs.observedMaxText.call(void 0, cost);
1606
+ const observedMax = _chunkBN5VKY4Xjs.observedMaxText.call(void 0, cost);
1590
1607
  return [
1591
1608
  `${_nullishCoalesce(options.heading, () => ( `Pricing: ${toolId}`))}: ${price}`,
1592
1609
  ...observedMax ? [` ${observedMax}`] : [],
@@ -1603,19 +1620,19 @@ function printToolPricingOnly(tool, requestedToolId, options = {}) {
1603
1620
  console.log(line);
1604
1621
  }
1605
1622
  function printToolSchemaOnly(tool, requestedToolId) {
1606
- if (_chunkFVM4PS5Qjs.isMonitorTypeTool.call(void 0, tool)) {
1623
+ if (_chunkBN5VKY4Xjs.isMonitorTypeTool.call(void 0, tool)) {
1607
1624
  printMonitorTypeFilters(tool);
1608
1625
  printMonitorTypeStreams(tool);
1609
1626
  return;
1610
1627
  }
1611
- const contract = _chunkFVM4PS5Qjs.toolContractJsonForDescribe.call(void 0,
1628
+ const contract = _chunkBN5VKY4Xjs.toolContractJsonForDescribe.call(void 0,
1612
1629
  tool,
1613
1630
  requestedToolId,
1614
1631
  void 0,
1615
1632
  seedToolListScript
1616
1633
  );
1617
- const inputFields = _chunkFVM4PS5Qjs.recursiveToolInputFieldsForDisplay.call(void 0,
1618
- _chunkFVM4PS5Qjs.recordField.call(void 0, contract, "inputSchema")
1634
+ const inputFields = _chunkBN5VKY4Xjs.recursiveToolInputFieldsForDisplay.call(void 0,
1635
+ _chunkBN5VKY4Xjs.recordField.call(void 0, contract, "inputSchema")
1619
1636
  );
1620
1637
  console.log(`Schema: ${contract.toolId}`);
1621
1638
  if (!inputFields.length) {
@@ -1642,27 +1659,27 @@ function printToolSchemaOnly(tool, requestedToolId) {
1642
1659
  }
1643
1660
  printToolOutputArrayShape(contract);
1644
1661
  const declaredSchema = declaredToolJsonSchema(
1645
- _chunkFVM4PS5Qjs.recordField.call(void 0, contract, "inputSchema")
1662
+ _chunkBN5VKY4Xjs.recordField.call(void 0, contract, "inputSchema")
1646
1663
  );
1647
1664
  if (declaredSchema) {
1648
1665
  console.log("Declared input JSON Schema:");
1649
1666
  console.log(JSON.stringify(declaredSchema, null, 2));
1650
1667
  }
1651
- if (_chunkFVM4PS5Qjs.isRecord.call(void 0, contract.responseSchema)) {
1668
+ if (_chunkBN5VKY4Xjs.isRecord.call(void 0, contract.responseSchema)) {
1652
1669
  console.log("Deepline execution response JSON Schema:");
1653
1670
  console.log(JSON.stringify(contract.responseSchema, null, 2));
1654
1671
  }
1655
1672
  }
1656
1673
  function printToolExamplesOnly(tool, requestedToolId) {
1657
- if (_chunkFVM4PS5Qjs.isMonitorTypeTool.call(void 0, tool)) {
1674
+ if (_chunkBN5VKY4Xjs.isMonitorTypeTool.call(void 0, tool)) {
1658
1675
  printMonitorTypeDeploy(tool);
1659
1676
  return;
1660
1677
  }
1661
- if (_chunkFVM4PS5Qjs.isPlayLikeTool.call(void 0, tool)) {
1678
+ if (_chunkBN5VKY4Xjs.isPlayLikeTool.call(void 0, tool)) {
1662
1679
  printPlayLikeToolUsage(tool, requestedToolId);
1663
1680
  return;
1664
1681
  }
1665
- const contract = _chunkFVM4PS5Qjs.toolContractJsonForDescribe.call(void 0,
1682
+ const contract = _chunkBN5VKY4Xjs.toolContractJsonForDescribe.call(void 0,
1666
1683
  tool,
1667
1684
  requestedToolId,
1668
1685
  void 0,
@@ -1670,9 +1687,9 @@ function printToolExamplesOnly(tool, requestedToolId) {
1670
1687
  );
1671
1688
  const toolId = String(contract.toolId);
1672
1689
  const inputFields = Array.isArray(contract.inputFields) ? contract.inputFields : [];
1673
- const examples = _chunkFVM4PS5Qjs.arrayField.call(void 0, tool, "examples").filter(_chunkFVM4PS5Qjs.isRecord);
1690
+ const examples = _chunkBN5VKY4Xjs.arrayField.call(void 0, tool, "examples").filter(_chunkBN5VKY4Xjs.isRecord);
1674
1691
  const firstExample = examples[0];
1675
- const sampleInput = firstExample && _chunkFVM4PS5Qjs.isRecord.call(void 0, firstExample.input) ? firstExample.input : _nullishCoalesce(samplePayload(_chunkFVM4PS5Qjs.recordField.call(void 0, tool, "samples"), "request"), () => ( _chunkFVM4PS5Qjs.samplePayloadForInputFields.call(void 0, inputFields)));
1692
+ const sampleInput = firstExample && _chunkBN5VKY4Xjs.isRecord.call(void 0, firstExample.input) ? firstExample.input : _nullishCoalesce(samplePayload(_chunkBN5VKY4Xjs.recordField.call(void 0, tool, "samples"), "request"), () => ( _chunkBN5VKY4Xjs.samplePayloadForInputFields.call(void 0, inputFields)));
1676
1693
  console.log("Example input payload:");
1677
1694
  console.log(JSON.stringify(sampleInput, null, 2));
1678
1695
  console.log(`Use in a play:`);
@@ -1686,32 +1703,32 @@ function printToolExamplesOnly(tool, requestedToolId) {
1686
1703
  );
1687
1704
  console.log("});");
1688
1705
  console.log("const response = result.toolResponse.rawV2;");
1689
- const getters = _chunkFVM4PS5Qjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1706
+ const getters = _chunkBN5VKY4Xjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1690
1707
  const valueGetters = Array.isArray(getters.extractedValues) ? getters.extractedValues : [];
1691
1708
  const listGetters = Array.isArray(getters.extractedLists) ? getters.extractedLists : [];
1692
- const firstGetter = valueGetters.find(_chunkFVM4PS5Qjs.isRecord);
1709
+ const firstGetter = valueGetters.find(_chunkBN5VKY4Xjs.isRecord);
1693
1710
  if (firstGetter) {
1694
- const name = _chunkFVM4PS5Qjs.stringField.call(void 0, firstGetter, "name") || "value";
1695
- const expression = _chunkFVM4PS5Qjs.stringField.call(void 0, firstGetter, "expression");
1711
+ const name = _chunkBN5VKY4Xjs.stringField.call(void 0, firstGetter, "name") || "value";
1712
+ const expression = _chunkBN5VKY4Xjs.stringField.call(void 0, firstGetter, "expression");
1696
1713
  if (expression)
1697
1714
  console.log(
1698
1715
  `const ${safeIdentifier(name)} = ${expression.replace(/^toolExecutionResult\./, "result.")};`
1699
1716
  );
1700
1717
  }
1701
1718
  const arrayNames = new Set(
1702
- _chunkFVM4PS5Qjs.recursiveToolInputFieldsForDisplay.call(void 0,
1703
- _chunkFVM4PS5Qjs.recordField.call(void 0, tool, "outputSchema", "output_schema")
1719
+ _chunkBN5VKY4Xjs.recursiveToolInputFieldsForDisplay.call(void 0,
1720
+ _chunkBN5VKY4Xjs.recordField.call(void 0, tool, "outputSchema", "output_schema")
1704
1721
  ).filter((field) => String(field.type).split("|").includes("array")).map((field) => String(field.name).split(".").at(-1))
1705
1722
  );
1706
1723
  const firstList = _nullishCoalesce(listGetters.find(
1707
- (entry) => _chunkFVM4PS5Qjs.isRecord.call(void 0, entry) && arrayNames.has(_chunkFVM4PS5Qjs.stringField.call(void 0, entry, "name"))
1708
- ), () => ( listGetters.find(_chunkFVM4PS5Qjs.isRecord)));
1709
- if (_chunkFVM4PS5Qjs.isRecord.call(void 0, firstList)) {
1710
- const name = safeIdentifier(_chunkFVM4PS5Qjs.stringField.call(void 0, firstList, "name") || "list");
1724
+ (entry) => _chunkBN5VKY4Xjs.isRecord.call(void 0, entry) && arrayNames.has(_chunkBN5VKY4Xjs.stringField.call(void 0, entry, "name"))
1725
+ ), () => ( listGetters.find(_chunkBN5VKY4Xjs.isRecord)));
1726
+ if (_chunkBN5VKY4Xjs.isRecord.call(void 0, firstList)) {
1727
+ const name = safeIdentifier(_chunkBN5VKY4Xjs.stringField.call(void 0, firstList, "name") || "list");
1711
1728
  if (_chunkJ33TSWO5js.playToolListGetterMode.call(void 0, ) === "array") {
1712
- console.log(`const ${name}_rows = ${_chunkFVM4PS5Qjs.playResultExpression.call(void 0, firstList)};`);
1729
+ console.log(`const ${name}_rows = ${_chunkBN5VKY4Xjs.playResultExpression.call(void 0, firstList)};`);
1713
1730
  } else {
1714
- console.log(`const ${name}_ds = ${_chunkFVM4PS5Qjs.playResultExpression.call(void 0, firstList)};`);
1731
+ console.log(`const ${name}_ds = ${_chunkBN5VKY4Xjs.playResultExpression.call(void 0, firstList)};`);
1715
1732
  console.log(
1716
1733
  "// Complete small list from this response; throws above the memory cap."
1717
1734
  );
@@ -1721,7 +1738,7 @@ function printToolExamplesOnly(tool, requestedToolId) {
1721
1738
  console.log("```");
1722
1739
  if (firstList) printListGetterConsumption();
1723
1740
  for (const example of examples) {
1724
- const description = _chunkFVM4PS5Qjs.stringField.call(void 0, example, "description");
1741
+ const description = _chunkBN5VKY4Xjs.stringField.call(void 0, example, "description");
1725
1742
  if (description) console.log(description);
1726
1743
  console.log("Example Deepline execution response:");
1727
1744
  console.log(JSON.stringify(example.response, null, 2));
@@ -1736,14 +1753,14 @@ function printToolExamplesOnly(tool, requestedToolId) {
1736
1753
  }
1737
1754
  function printPlayLikeToolUsage(tool, requestedToolId) {
1738
1755
  const toolId = String(tool.toolId || requestedToolId);
1739
- const inputFields = _chunkFVM4PS5Qjs.toolInputFieldsForDisplay.call(void 0,
1740
- _chunkFVM4PS5Qjs.recordField.call(void 0, tool, "inputSchema", "input_schema")
1756
+ const inputFields = _chunkBN5VKY4Xjs.toolInputFieldsForDisplay.call(void 0,
1757
+ _chunkBN5VKY4Xjs.recordField.call(void 0, tool, "inputSchema", "input_schema")
1741
1758
  );
1742
- const sampleInput = _chunkFVM4PS5Qjs.samplePayloadForInputFields.call(void 0, inputFields);
1743
- const playReference = _chunkFVM4PS5Qjs.playReferenceForTool.call(void 0, tool);
1759
+ const sampleInput = _chunkBN5VKY4Xjs.samplePayloadForInputFields.call(void 0, inputFields);
1760
+ const playReference = _chunkBN5VKY4Xjs.playReferenceForTool.call(void 0, tool);
1744
1761
  console.log("Run as a play:");
1745
1762
  console.log(
1746
- _chunkFVM4PS5Qjs.playRunCommandForTool.call(void 0,
1763
+ _chunkBN5VKY4Xjs.playRunCommandForTool.call(void 0,
1747
1764
  tool,
1748
1765
  toolId,
1749
1766
  Object.keys(sampleInput).length ? sampleInput : void 0
@@ -1754,13 +1771,13 @@ function printPlayLikeToolUsage(tool, requestedToolId) {
1754
1771
  }
1755
1772
  }
1756
1773
  function printToolGettersOnly(tool, requestedToolId) {
1757
- const contract = _chunkFVM4PS5Qjs.toolContractJsonForDescribe.call(void 0,
1774
+ const contract = _chunkBN5VKY4Xjs.toolContractJsonForDescribe.call(void 0,
1758
1775
  tool,
1759
1776
  requestedToolId,
1760
1777
  void 0,
1761
1778
  seedToolListScript
1762
1779
  );
1763
- const getters = _chunkFVM4PS5Qjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1780
+ const getters = _chunkBN5VKY4Xjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1764
1781
  const listGetters = Array.isArray(getters.extractedLists) ? getters.extractedLists : [];
1765
1782
  const valueGetters = Array.isArray(getters.extractedValues) ? getters.extractedValues : [];
1766
1783
  console.log(`Getters: ${contract.toolId}`);
@@ -1771,9 +1788,9 @@ function printToolGettersOnly(tool, requestedToolId) {
1771
1788
  if (listGetters.length) {
1772
1789
  console.log(listGetterHeading());
1773
1790
  for (const entry of listGetters) {
1774
- if (_chunkFVM4PS5Qjs.isRecord.call(void 0, entry))
1791
+ if (_chunkBN5VKY4Xjs.isRecord.call(void 0, entry))
1775
1792
  console.log(
1776
- `- ${_chunkFVM4PS5Qjs.stringField.call(void 0, entry, "name")}: ${_chunkFVM4PS5Qjs.playResultExpression.call(void 0, entry)}`
1793
+ `- ${_chunkBN5VKY4Xjs.stringField.call(void 0, entry, "name")}: ${_chunkBN5VKY4Xjs.playResultExpression.call(void 0, entry)}`
1777
1794
  );
1778
1795
  }
1779
1796
  printListGetterConsumption();
@@ -1781,9 +1798,9 @@ function printToolGettersOnly(tool, requestedToolId) {
1781
1798
  if (valueGetters.length) {
1782
1799
  console.log("Values:");
1783
1800
  for (const entry of valueGetters) {
1784
- if (_chunkFVM4PS5Qjs.isRecord.call(void 0, entry))
1801
+ if (_chunkBN5VKY4Xjs.isRecord.call(void 0, entry))
1785
1802
  console.log(
1786
- `- ${_chunkFVM4PS5Qjs.stringField.call(void 0, entry, "name")}: ${_chunkFVM4PS5Qjs.playResultExpression.call(void 0, entry)}`
1803
+ `- ${_chunkBN5VKY4Xjs.stringField.call(void 0, entry, "name")}: ${_chunkBN5VKY4Xjs.playResultExpression.call(void 0, entry)}`
1787
1804
  );
1788
1805
  }
1789
1806
  }
@@ -1821,22 +1838,22 @@ function listedToolDescription(tool) {
1821
1838
  }
1822
1839
  function formatListedToolCost(tool) {
1823
1840
  const record = tool;
1824
- if (_chunkFVM4PS5Qjs.stringField.call(void 0, record, "billingSource", "billing_source") === "free") {
1841
+ if (_chunkBN5VKY4Xjs.stringField.call(void 0, record, "billingSource", "billing_source") === "free") {
1825
1842
  return "Cost: Free";
1826
1843
  }
1827
- const pricing = _chunkFVM4PS5Qjs.recordField.call(void 0, record, "pricing");
1828
- const displayText = _chunkFVM4PS5Qjs.stringField.call(void 0, pricing, "displayText", "display_text");
1844
+ const pricing = _chunkBN5VKY4Xjs.recordField.call(void 0, record, "pricing");
1845
+ const displayText = _chunkBN5VKY4Xjs.stringField.call(void 0, pricing, "displayText", "display_text");
1829
1846
  return displayText ? `Cost: ${displayText}` : "";
1830
1847
  }
1831
1848
  function printToolOutputArrayShape(tool) {
1832
- const outputFields = _chunkFVM4PS5Qjs.toolOutputFieldsForDisplay.call(void 0,
1833
- _chunkFVM4PS5Qjs.recordField.call(void 0, _chunkFVM4PS5Qjs.isRecord.call(void 0, tool) ? tool : {}, "outputSchema", "output_schema")
1849
+ const outputFields = _chunkBN5VKY4Xjs.toolOutputFieldsForDisplay.call(void 0,
1850
+ _chunkBN5VKY4Xjs.recordField.call(void 0, _chunkBN5VKY4Xjs.isRecord.call(void 0, tool) ? tool : {}, "outputSchema", "output_schema")
1834
1851
  );
1835
1852
  if (outputFields.length === 0) return;
1836
1853
  console.log(" Output array shape (declared schema):");
1837
1854
  for (const field of outputFields.slice(0, 60)) {
1838
1855
  const name = String(field.name);
1839
- const type = _chunkFVM4PS5Qjs.stringField.call(void 0, field, "type") || "unknown";
1856
+ const type = _chunkBN5VKY4Xjs.stringField.call(void 0, field, "type") || "unknown";
1840
1857
  const itemBounds = arrayItemBoundsSuffix(field);
1841
1858
  console.log(` - ${name}: ${type}${itemBounds}`);
1842
1859
  }
@@ -1845,14 +1862,14 @@ function printToolOutputArrayShape(tool) {
1845
1862
  }
1846
1863
  }
1847
1864
  function declaredToolJsonSchema(inputSchema) {
1848
- if (_chunkFVM4PS5Qjs.isRecord.call(void 0, inputSchema.jsonSchema)) {
1865
+ if (_chunkBN5VKY4Xjs.isRecord.call(void 0, inputSchema.jsonSchema)) {
1849
1866
  return inputSchema.jsonSchema;
1850
1867
  }
1851
1868
  return Array.isArray(inputSchema.fields) ? null : inputSchema;
1852
1869
  }
1853
1870
  function arrayItemBoundsSuffix(field) {
1854
- const itemSchema = _chunkFVM4PS5Qjs.isRecord.call(void 0, field.items) ? field.items : null;
1855
- const itemType = itemSchema ? typeof itemSchema.type === "string" ? itemSchema.type : _chunkFVM4PS5Qjs.isRecord.call(void 0, itemSchema.properties) ? "object" : "unknown" : null;
1871
+ const itemSchema = _chunkBN5VKY4Xjs.isRecord.call(void 0, field.items) ? field.items : null;
1872
+ const itemType = itemSchema ? typeof itemSchema.type === "string" ? itemSchema.type : _chunkBN5VKY4Xjs.isRecord.call(void 0, itemSchema.properties) ? "object" : "unknown" : null;
1856
1873
  const itemEnum = Array.isArray(_optionalChain([itemSchema, 'optionalAccess', _14 => _14.enum])) ? ` enum=${itemSchema.enum.map(String).join("|")}` : "";
1857
1874
  const itemTypeSuffix = itemType && itemType !== "unknown" ? ` items=${itemType}${itemEnum}` : "";
1858
1875
  const minItems = typeof field.minItems === "number" && Number.isFinite(field.minItems) ? field.minItems : null;
@@ -1865,21 +1882,21 @@ function arrayItemBoundsSuffix(field) {
1865
1882
  return itemTypeSuffix;
1866
1883
  }
1867
1884
  function printToolExecutionHints(value) {
1868
- const batchCapabilityRecord = _chunkFVM4PS5Qjs.recordField.call(void 0,
1869
- _chunkFVM4PS5Qjs.isRecord.call(void 0, value) ? value : {},
1885
+ const batchCapabilityRecord = _chunkBN5VKY4Xjs.recordField.call(void 0,
1886
+ _chunkBN5VKY4Xjs.isRecord.call(void 0, value) ? value : {},
1870
1887
  "batchCapability",
1871
1888
  "batch_capability"
1872
1889
  );
1873
1890
  const batchCapability = Object.keys(batchCapabilityRecord).length > 0 ? batchCapabilityRecord : null;
1874
- const executionMetadata = _chunkFVM4PS5Qjs.recordField.call(void 0,
1875
- _chunkFVM4PS5Qjs.isRecord.call(void 0, value) ? value : {},
1891
+ const executionMetadata = _chunkBN5VKY4Xjs.recordField.call(void 0,
1892
+ _chunkBN5VKY4Xjs.isRecord.call(void 0, value) ? value : {},
1876
1893
  "executionMetadata",
1877
1894
  "execution_metadata"
1878
1895
  );
1879
1896
  if (batchCapability) {
1880
- const status = _chunkFVM4PS5Qjs.stringField.call(void 0, batchCapability, "status") || "unknown";
1881
- const surface = _chunkFVM4PS5Qjs.stringField.call(void 0, batchCapability, "surface");
1882
- const operation = _chunkFVM4PS5Qjs.stringField.call(void 0,
1897
+ const status = _chunkBN5VKY4Xjs.stringField.call(void 0, batchCapability, "status") || "unknown";
1898
+ const surface = _chunkBN5VKY4Xjs.stringField.call(void 0, batchCapability, "surface");
1899
+ const operation = _chunkBN5VKY4Xjs.stringField.call(void 0,
1883
1900
  batchCapability,
1884
1901
  "batchOperation",
1885
1902
  "batch_operation"
@@ -1889,7 +1906,7 @@ function printToolExecutionHints(value) {
1889
1906
  "maxBatchSize",
1890
1907
  "max_batch_size"
1891
1908
  );
1892
- const notes = _chunkFVM4PS5Qjs.stringField.call(void 0, batchCapability, "notes");
1909
+ const notes = _chunkBN5VKY4Xjs.stringField.call(void 0, batchCapability, "notes");
1893
1910
  console.log("");
1894
1911
  console.log("Batching:");
1895
1912
  console.log(`- Catalog status: ${status}${surface ? ` (${surface})` : ""}`);
@@ -1908,11 +1925,11 @@ function printToolExecutionHints(value) {
1908
1925
  }
1909
1926
  if (notes) console.log(`- Details: ${notes}`);
1910
1927
  }
1911
- const configuredRateLimits = _chunkFVM4PS5Qjs.arrayField.call(void 0,
1928
+ const configuredRateLimits = _chunkBN5VKY4Xjs.arrayField.call(void 0,
1912
1929
  executionMetadata,
1913
1930
  "configuredRateLimits",
1914
1931
  "configured_rate_limits"
1915
- ).filter(_chunkFVM4PS5Qjs.isRecord);
1932
+ ).filter(_chunkBN5VKY4Xjs.isRecord);
1916
1933
  if (configuredRateLimits.length > 0) {
1917
1934
  console.log("");
1918
1935
  console.log(
@@ -1922,7 +1939,7 @@ function printToolExecutionHints(value) {
1922
1939
  const requests = numberField(limit, "requestsPerWindow");
1923
1940
  const windowMs = numberField(limit, "windowMs");
1924
1941
  if (requests === null || windowMs === null) continue;
1925
- const usage = _chunkFVM4PS5Qjs.stringField.call(void 0, limit, "usage") || "unknown";
1942
+ const usage = _chunkBN5VKY4Xjs.stringField.call(void 0, limit, "usage") || "unknown";
1926
1943
  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;
1927
1944
  const explicitMaxConcurrency = numberField(
1928
1945
  limit,
@@ -1931,11 +1948,11 @@ function printToolExecutionHints(value) {
1931
1948
  );
1932
1949
  const concurrencyText = explicitMaxConcurrency === null ? "no explicit concurrency limit" : `explicit concurrency limit ${explicitMaxConcurrency}`;
1933
1950
  console.log(
1934
- `- ${requests} requests per ${formatRateWindow(windowMs)}${_chunkJO5FFSR7js.rateLimitQualifier.call(void 0, limit)} (${usageText}; ${concurrencyText})`
1951
+ `- ${requests} requests per ${formatRateWindow(windowMs)}${_chunkNTLBZUHDjs.rateLimitQualifier.call(void 0, limit)} (${usageText}; ${concurrencyText})`
1935
1952
  );
1936
1953
  }
1937
1954
  }
1938
- const queueHint = _chunkFVM4PS5Qjs.recordField.call(void 0, executionMetadata, "queueHint", "queue_hint");
1955
+ const queueHint = _chunkBN5VKY4Xjs.recordField.call(void 0, executionMetadata, "queueHint", "queue_hint");
1939
1956
  const requestsPerSecondHint = numberField(
1940
1957
  queueHint,
1941
1958
  "requestsPerSecondHint",
@@ -1961,25 +1978,25 @@ function formatRateWindow(windowMs) {
1961
1978
  }
1962
1979
  function samplePayload(samples, key) {
1963
1980
  const entry = samples[key];
1964
- if (!_chunkFVM4PS5Qjs.isRecord.call(void 0, entry)) return void 0;
1981
+ if (!_chunkBN5VKY4Xjs.isRecord.call(void 0, entry)) return void 0;
1965
1982
  return Object.prototype.hasOwnProperty.call(entry, "payload") ? entry.payload : entry;
1966
1983
  }
1967
1984
  function commandEnvelopeFromRawResponse(rawResponse) {
1968
- return _chunkFVM4PS5Qjs.isRecord.call(void 0, rawResponse) ? { ...rawResponse } : { status: "completed", result: rawResponse };
1985
+ return _chunkBN5VKY4Xjs.isRecord.call(void 0, rawResponse) ? { ...rawResponse } : { status: "completed", result: rawResponse };
1969
1986
  }
1970
1987
  function toolExecuteExitCode(envelope) {
1971
1988
  return envelope.status === "failed" || envelope.ok === false ? 1 : 0;
1972
1989
  }
1973
1990
  function extractToolExecutionWarningMessages(rawResponse) {
1974
- if (!_chunkFVM4PS5Qjs.isRecord.call(void 0, rawResponse)) return [];
1991
+ if (!_chunkBN5VKY4Xjs.isRecord.call(void 0, rawResponse)) return [];
1975
1992
  const candidates = [
1976
- _chunkFVM4PS5Qjs.recordField.call(void 0, _chunkFVM4PS5Qjs.recordField.call(void 0, rawResponse, "toolResponse"), "meta"),
1977
- _chunkFVM4PS5Qjs.recordField.call(void 0,
1978
- _chunkFVM4PS5Qjs.recordField.call(void 0, _chunkFVM4PS5Qjs.recordField.call(void 0, rawResponse, "toolResponse"), "raw"),
1993
+ _chunkBN5VKY4Xjs.recordField.call(void 0, _chunkBN5VKY4Xjs.recordField.call(void 0, rawResponse, "toolResponse"), "meta"),
1994
+ _chunkBN5VKY4Xjs.recordField.call(void 0,
1995
+ _chunkBN5VKY4Xjs.recordField.call(void 0, _chunkBN5VKY4Xjs.recordField.call(void 0, rawResponse, "toolResponse"), "raw"),
1979
1996
  "meta"
1980
1997
  ),
1981
- _chunkFVM4PS5Qjs.recordField.call(void 0, rawResponse, "meta"),
1982
- _chunkFVM4PS5Qjs.recordField.call(void 0, _chunkFVM4PS5Qjs.recordField.call(void 0, rawResponse, "result"), "meta")
1998
+ _chunkBN5VKY4Xjs.recordField.call(void 0, rawResponse, "meta"),
1999
+ _chunkBN5VKY4Xjs.recordField.call(void 0, _chunkBN5VKY4Xjs.recordField.call(void 0, rawResponse, "result"), "meta")
1983
2000
  ];
1984
2001
  const messages = [];
1985
2002
  for (const candidate of candidates) {
@@ -1988,8 +2005,8 @@ function extractToolExecutionWarningMessages(rawResponse) {
1988
2005
  for (const warning of warnings) {
1989
2006
  if (typeof warning === "string" && warning.trim()) {
1990
2007
  messages.push(warning.trim());
1991
- } else if (_chunkFVM4PS5Qjs.isRecord.call(void 0, warning)) {
1992
- const message = _chunkFVM4PS5Qjs.stringField.call(void 0, warning, "message");
2008
+ } else if (_chunkBN5VKY4Xjs.isRecord.call(void 0, warning)) {
2009
+ const message = _chunkBN5VKY4Xjs.stringField.call(void 0, warning, "message");
1993
2010
  if (message) messages.push(message);
1994
2011
  }
1995
2012
  }
@@ -1997,20 +2014,20 @@ function extractToolExecutionWarningMessages(rawResponse) {
1997
2014
  return [...new Set(messages)];
1998
2015
  }
1999
2016
  function apifySyncRecoveryNext(rawResponse) {
2000
- if (!_chunkFVM4PS5Qjs.isRecord.call(void 0, rawResponse) || rawResponse.status !== "running") return null;
2001
- const toolResponse = _chunkFVM4PS5Qjs.recordField.call(void 0, rawResponse, "toolResponse");
2002
- const raw = _chunkFVM4PS5Qjs.recordField.call(void 0, toolResponse, "raw");
2017
+ if (!_chunkBN5VKY4Xjs.isRecord.call(void 0, rawResponse) || rawResponse.status !== "running") return null;
2018
+ const toolResponse = _chunkBN5VKY4Xjs.recordField.call(void 0, rawResponse, "toolResponse");
2019
+ const raw = _chunkBN5VKY4Xjs.recordField.call(void 0, toolResponse, "raw");
2003
2020
  if (raw.state !== "awaiting_apify") return null;
2004
- const next = _chunkFVM4PS5Qjs.recordField.call(void 0, raw, "next");
2005
- const getActorRun = _chunkFVM4PS5Qjs.recordField.call(void 0, next, "getActorRun");
2006
- const getActorRunTool = _chunkFVM4PS5Qjs.stringField.call(void 0, getActorRun, "tool");
2007
- const getActorRunPayload = _chunkFVM4PS5Qjs.recordField.call(void 0, getActorRun, "payload");
2021
+ const next = _chunkBN5VKY4Xjs.recordField.call(void 0, raw, "next");
2022
+ const getActorRun = _chunkBN5VKY4Xjs.recordField.call(void 0, next, "getActorRun");
2023
+ const getActorRunTool = _chunkBN5VKY4Xjs.stringField.call(void 0, getActorRun, "tool");
2024
+ const getActorRunPayload = _chunkBN5VKY4Xjs.recordField.call(void 0, getActorRun, "payload");
2008
2025
  if (!getActorRunTool || Object.keys(getActorRunPayload).length === 0) {
2009
2026
  return null;
2010
2027
  }
2011
- const getDatasetItems = _chunkFVM4PS5Qjs.recordField.call(void 0, next, "getDatasetItems");
2012
- const getDatasetItemsTool = _chunkFVM4PS5Qjs.stringField.call(void 0, getDatasetItems, "tool");
2013
- const getDatasetItemsPayload = _chunkFVM4PS5Qjs.recordField.call(void 0, getDatasetItems, "payload");
2028
+ const getDatasetItems = _chunkBN5VKY4Xjs.recordField.call(void 0, next, "getDatasetItems");
2029
+ const getDatasetItemsTool = _chunkBN5VKY4Xjs.stringField.call(void 0, getDatasetItems, "tool");
2030
+ const getDatasetItemsPayload = _chunkBN5VKY4Xjs.recordField.call(void 0, getDatasetItems, "payload");
2014
2031
  return {
2015
2032
  getActorRun: `deepline run ${getActorRunTool} --input ${_chunkAID3OYVJjs.shellQuote.call(void 0, JSON.stringify(getActorRunPayload))}`,
2016
2033
  ...getDatasetItemsTool && Object.keys(getDatasetItemsPayload).length > 0 ? {
@@ -2020,7 +2037,7 @@ function apifySyncRecoveryNext(rawResponse) {
2020
2037
  }
2021
2038
  function listExtractorPathsFromUsageGuidance(tool) {
2022
2039
  const toolExecutionResult = _optionalChain([tool, 'access', _16 => _16.usageGuidance, 'optionalAccess', _17 => _17.toolExecutionResult]);
2023
- const extractedLists = Array.isArray(_optionalChain([toolExecutionResult, 'optionalAccess', _18 => _18.extractedLists])) ? toolExecutionResult.extractedLists : _chunkFVM4PS5Qjs.isRecord.call(void 0, _optionalChain([toolExecutionResult, 'optionalAccess', _19 => _19.extractedLists])) ? Object.values(toolExecutionResult.extractedLists) : [];
2040
+ const extractedLists = Array.isArray(_optionalChain([toolExecutionResult, 'optionalAccess', _18 => _18.extractedLists])) ? toolExecutionResult.extractedLists : _chunkBN5VKY4Xjs.isRecord.call(void 0, _optionalChain([toolExecutionResult, 'optionalAccess', _19 => _19.extractedLists])) ? Object.values(toolExecutionResult.extractedLists) : [];
2024
2041
  return extractedLists.flatMap((entry) => {
2025
2042
  const paths = _nullishCoalesce(_optionalChain([entry, 'access', _20 => _20.details, 'optionalAccess', _21 => _21.candidatePaths]), () => ( _optionalChain([entry, 'access', _22 => _22.details, 'optionalAccess', _23 => _23.rawToolOutputPaths])));
2026
2043
  if (!Array.isArray(paths)) return [];
@@ -2105,7 +2122,7 @@ function parseJsonObjectArgument(raw, flagName) {
2105
2122
  }
2106
2123
  throw invalidJsonError(flagName, message);
2107
2124
  }
2108
- if (!_chunkFVM4PS5Qjs.isRecord.call(void 0, parsed)) {
2125
+ if (!_chunkBN5VKY4Xjs.isRecord.call(void 0, parsed)) {
2109
2126
  throw invalidJsonError(flagName, "expected an object.");
2110
2127
  }
2111
2128
  return parsed;
@@ -2149,7 +2166,7 @@ function parseExecuteOptions(toolId, options, output) {
2149
2166
  outputFormat = normalizeOutputFormat(options.outputFormat);
2150
2167
  }
2151
2168
  if (options.idempotencyKey !== void 0) {
2152
- _chunkUOANF3DRjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2169
+ _chunk7P2QVMBPjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2153
2170
  }
2154
2171
  if (options.recoveryTimeoutMs !== void 0) {
2155
2172
  const parsed = Number(options.recoveryTimeoutMs);
@@ -2278,7 +2295,7 @@ function buildToolExecuteBaseEnvelope(input) {
2278
2295
  kind: summaryEntries.length > 0 ? "object" : "raw",
2279
2296
  summary: input.summary
2280
2297
  };
2281
- const envelopeHasCanonicalOutput = _chunkFVM4PS5Qjs.isRecord.call(void 0, envelope.toolResponse) && Object.prototype.hasOwnProperty.call(envelope.toolResponse, "raw");
2298
+ const envelopeHasCanonicalOutput = _chunkBN5VKY4Xjs.isRecord.call(void 0, envelope.toolResponse) && Object.prototype.hasOwnProperty.call(envelope.toolResponse, "raw");
2282
2299
  const envelopeHasDeclaredOutput = Object.prototype.hasOwnProperty.call(
2283
2300
  envelope,
2284
2301
  "output"
@@ -2306,7 +2323,7 @@ function buildToolExecuteBaseEnvelope(input) {
2306
2323
  return {
2307
2324
  ...envelope,
2308
2325
  ...input.idempotencyKey ? { idempotency_key: input.idempotencyKey } : {},
2309
- ..._chunkFVM4PS5Qjs.isRecord.call(void 0, input.rawResponse) && _chunkFVM4PS5Qjs.isRecord.call(void 0, input.rawResponse.executionRecovery) ? { execution_recovery: input.rawResponse.executionRecovery } : {},
2326
+ ..._chunkBN5VKY4Xjs.isRecord.call(void 0, input.rawResponse) && _chunkBN5VKY4Xjs.isRecord.call(void 0, input.rawResponse.executionRecovery) ? { execution_recovery: input.rawResponse.executionRecovery } : {},
2310
2327
  ...envelopeHasCanonicalOutput || envelopeHasDeclaredOutput ? { output_preview: outputPreview } : { output: outputPreview },
2311
2328
  ...summaryEntries.length > 0 ? { summary: input.summary } : {},
2312
2329
  ...warningMessages.length > 0 ? { warnings: warningMessages } : {},
@@ -2367,7 +2384,7 @@ function buildToolExecuteRowArtifactEnvelope(input) {
2367
2384
  void _render;
2368
2385
  void _next;
2369
2386
  void _local;
2370
- const billingLookup = _chunkFVM4PS5Qjs.isRecord.call(void 0, input.baseEnvelope.next) && typeof input.baseEnvelope.next.billing === "string" ? input.baseEnvelope.next.billing : null;
2387
+ const billingLookup = _chunkBN5VKY4Xjs.isRecord.call(void 0, input.baseEnvelope.next) && typeof input.baseEnvelope.next.billing === "string" ? input.baseEnvelope.next.billing : null;
2371
2388
  const inspection = toolExecutionInspection(input);
2372
2389
  return {
2373
2390
  ...base,
@@ -2463,7 +2480,7 @@ function printToolExecutionWarnings(toolId, params, metadata) {
2463
2480
  }
2464
2481
  }
2465
2482
  function assertExecutableToolMetadata(toolId, metadata) {
2466
- if (_chunkFVM4PS5Qjs.isPlayLikeTool.call(void 0, metadata)) {
2483
+ if (_chunkBN5VKY4Xjs.isPlayLikeTool.call(void 0, metadata)) {
2467
2484
  throw new (0, _chunkDIAWYWT5js.DeeplineError)(
2468
2485
  playLikeToolExecuteErrorMessage(
2469
2486
  toolId,
@@ -2481,7 +2498,7 @@ function valueAt(value, path) {
2481
2498
  for (const [index, part] of parts.entries()) {
2482
2499
  const each = part === "*" || part.endsWith("[*]");
2483
2500
  if (part !== "*") {
2484
- at = _chunkFVM4PS5Qjs.isRecord.call(void 0, at) ? at[each ? part.slice(0, -3) : part] : void 0;
2501
+ at = _chunkBN5VKY4Xjs.isRecord.call(void 0, at) ? at[each ? part.slice(0, -3) : part] : void 0;
2485
2502
  }
2486
2503
  if (!each) continue;
2487
2504
  if (!Array.isArray(at)) return void 0;
@@ -2497,7 +2514,7 @@ function declaredOutputs(metadata, envelope, data) {
2497
2514
  const getters = ["extractedValues", "extractedLists"].flatMap(
2498
2515
  (kind) => {
2499
2516
  const group = _optionalChain([result, 'optionalAccess', _28 => _28[kind]]);
2500
- return Array.isArray(group) ? group : _chunkFVM4PS5Qjs.isRecord.call(void 0, group) ? Object.entries(group).map(([name, getter]) => ({
2517
+ return Array.isArray(group) ? group : _chunkBN5VKY4Xjs.isRecord.call(void 0, group) ? Object.entries(group).map(([name, getter]) => ({
2501
2518
  name,
2502
2519
  ...getter
2503
2520
  })) : [];
@@ -2522,13 +2539,13 @@ function declaredOutputs(metadata, envelope, data) {
2522
2539
  }
2523
2540
  function writeToolReceipt(input) {
2524
2541
  const { response, metadata } = input;
2525
- const envelope = _chunkFVM4PS5Qjs.isRecord.call(void 0, response) ? response : {};
2542
+ const envelope = _chunkBN5VKY4Xjs.isRecord.call(void 0, response) ? response : {};
2526
2543
  const jobId = typeof envelope.job_id === "string" ? envelope.job_id : null;
2527
- const toolResponse = _chunkFVM4PS5Qjs.recordField.call(void 0, envelope, "toolResponse");
2544
+ const toolResponse = _chunkBN5VKY4Xjs.recordField.call(void 0, envelope, "toolResponse");
2528
2545
  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;
2529
2546
  const status = typeof envelope.status === "string" ? envelope.status : "completed";
2530
- const charged = _chunkFVM4PS5Qjs.recordField.call(void 0, envelope, "billing").credits_charged;
2531
- _chunkX5MGQ7UTjs.writeExecutionOutput.call(void 0,
2547
+ const charged = _chunkBN5VKY4Xjs.recordField.call(void 0, envelope, "billing").credits_charged;
2548
+ _chunkKCKAFTPYjs.writeExecutionOutput.call(void 0,
2532
2549
  {
2533
2550
  id: _nullishCoalesce(input.key, () => ( jobId)),
2534
2551
  status,
@@ -2559,8 +2576,8 @@ async function executeToolForReceipt(input) {
2559
2576
  let retryKey = null;
2560
2577
  let received = false;
2561
2578
  try {
2562
- const cliInvocationId = _nullishCoalesce(_chunkWKFAX2K7js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkWKFAX2K7js.beginToolExecuteCommand.call(void 0, )));
2563
- const client = new (0, _chunkXMKUJ44Zjs.DeeplineClient)();
2579
+ const cliInvocationId = _nullishCoalesce(_chunkIPAMOMGPjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkIPAMOMGPjs.beginToolExecuteCommand.call(void 0, )));
2580
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
2564
2581
  const metadata = assertExecutableToolMetadata(
2565
2582
  toolId,
2566
2583
  await _asyncNullishCoalesce(input.metadata, async () => ( await client.getTool(toolId, { cliInvocationId })))
@@ -2581,9 +2598,9 @@ async function executeToolForReceipt(input) {
2581
2598
  ...input.timeoutMs !== void 0 ? { timeout: input.timeoutMs } : {},
2582
2599
  ..._optionalChain([metadata, 'access', _35 => _35.executionMetadata, 'optionalAccess', _36 => _36.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {},
2583
2600
  ...key ? { idempotencyKey: key } : {},
2584
- searchRef: _chunk32YQBJONjs.recentSearchRef.call(void 0, ),
2601
+ searchRef: _chunk67OI26OEjs.recentSearchRef.call(void 0, ),
2585
2602
  cliInvocationId,
2586
- onResponseReceived: _chunkX5MGQ7UTjs.recordApiResponse
2603
+ onResponseReceived: _chunkKCKAFTPYjs.recordApiResponse
2587
2604
  }).catch((error) => {
2588
2605
  const guidance = toolGuidanceLines(metadata.guidance);
2589
2606
  if (guidance.length)
@@ -2606,7 +2623,7 @@ async function executeToolForReceipt(input) {
2606
2623
  if (received) throw error;
2607
2624
  const outcomeKnown = answeredWithFailure(error);
2608
2625
  if (outcomeKnown) _optionalChain([retryKey, 'optionalAccess', _37 => _37.discard, 'call', _38 => _38()]);
2609
- _chunkX5MGQ7UTjs.writeExecutionOutput.call(void 0,
2626
+ _chunkKCKAFTPYjs.writeExecutionOutput.call(void 0,
2610
2627
  {
2611
2628
  id: outcomeKnown ? null : key,
2612
2629
  status: "failed",
@@ -2630,11 +2647,11 @@ function answeredWithFailure(error) {
2630
2647
  error.statusCode !== 408 && error.code !== "EXECUTION_OUTCOME_UNKNOWN";
2631
2648
  }
2632
2649
  async function getToolExecutionReceipt(key, output) {
2633
- const client = new (0, _chunkXMKUJ44Zjs.DeeplineClient)();
2650
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
2634
2651
  const execution = await client.executions.getByKey(key);
2635
2652
  output.label = `${execution.toolId} (tool)`;
2636
2653
  if (execution.response === void 0) {
2637
- _chunkX5MGQ7UTjs.writeExecutionOutput.call(void 0,
2654
+ _chunkKCKAFTPYjs.writeExecutionOutput.call(void 0,
2638
2655
  {
2639
2656
  id: key,
2640
2657
  status: execution.executionRecovery.state,
@@ -2663,19 +2680,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2663
2680
  parsed = parseExecuteOptions(toolId, options, output);
2664
2681
  } catch (error) {
2665
2682
  if (wantsJson) {
2666
- _chunkYDXEXVBVjs.printJsonError.call(void 0, error);
2683
+ _chunkQKKU2FH4js.printJsonError.call(void 0, error);
2667
2684
  } else {
2668
2685
  console.error(error instanceof Error ? error.message : String(error));
2669
2686
  }
2670
2687
  return error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
2671
2688
  }
2672
- const cliInvocationId = _nullishCoalesce(_chunkWKFAX2K7js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkWKFAX2K7js.beginToolExecuteCommand.call(void 0, )));
2689
+ const cliInvocationId = _nullishCoalesce(_chunkIPAMOMGPjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkIPAMOMGPjs.beginToolExecuteCommand.call(void 0, )));
2673
2690
  const deferredCompatibility = deferCompatibility ? beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) : void 0;
2674
- const tracing = _chunkAJL2Q6IQjs.isCliTraceEnabled.call(void 0, );
2691
+ const tracing = _chunkUXQQPMYOjs.isCliTraceEnabled.call(void 0, );
2675
2692
  const clientStartedAt = tracing ? performance.now() : void 0;
2676
- const client = new (0, _chunkXMKUJ44Zjs.DeeplineClient)();
2693
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
2677
2694
  if (clientStartedAt !== void 0) {
2678
- _chunkAJL2Q6IQjs.recordCliTrace.call(void 0, {
2695
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
2679
2696
  phase: "cli.tool_execute_client_setup",
2680
2697
  ms: performance.now() - clientStartedAt
2681
2698
  });
@@ -2684,13 +2701,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2684
2701
  const readMetadata = async () => {
2685
2702
  if (metadata) return assertExecutableToolMetadata(parsed.toolId, metadata);
2686
2703
  try {
2687
- metadata = await _chunkWKFAX2K7js.runToolExecuteStage.call(void 0,
2704
+ metadata = await _chunkIPAMOMGPjs.runToolExecuteStage.call(void 0,
2688
2705
  "tool metadata lookup",
2689
2706
  () => client.getTool(parsed.toolId, { cliInvocationId })
2690
2707
  );
2691
2708
  } catch (error) {
2692
2709
  if (isMissingToolMetadataError(error)) {
2693
- const play = await _chunkWKFAX2K7js.runToolExecuteStage.call(void 0,
2710
+ const play = await _chunkIPAMOMGPjs.runToolExecuteStage.call(void 0,
2694
2711
  "play alias lookup",
2695
2712
  () => findPlayForToolId(client, parsed.toolId, cliInvocationId)
2696
2713
  );
@@ -2719,7 +2736,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2719
2736
  assertExecutableToolMetadata(parsed.toolId, metadata);
2720
2737
  } catch (error) {
2721
2738
  if (error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2722
- if (wantsJson) _chunkYDXEXVBVjs.printJsonError.call(void 0, error);
2739
+ if (wantsJson) _chunkQKKU2FH4js.printJsonError.call(void 0, error);
2723
2740
  else console.error(error.message);
2724
2741
  return 2;
2725
2742
  }
@@ -2731,7 +2748,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2731
2748
  metadata = await readMetadata();
2732
2749
  } catch (error) {
2733
2750
  if (error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2734
- if (wantsJson) _chunkYDXEXVBVjs.printJsonError.call(void 0, error);
2751
+ if (wantsJson) _chunkQKKU2FH4js.printJsonError.call(void 0, error);
2735
2752
  else console.error(error.message);
2736
2753
  return 2;
2737
2754
  }
@@ -2747,7 +2764,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2747
2764
  metadata = await readMetadata();
2748
2765
  } catch (error) {
2749
2766
  if (error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2750
- if (wantsJson) _chunkYDXEXVBVjs.printJsonError.call(void 0, error);
2767
+ if (wantsJson) _chunkQKKU2FH4js.printJsonError.call(void 0, error);
2751
2768
  else console.error(error.message);
2752
2769
  return 2;
2753
2770
  }
@@ -2773,11 +2790,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2773
2790
  responseIntent,
2774
2791
  ...idempotencyKey ? { idempotencyKey } : {},
2775
2792
  ...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
2776
- searchRef: _chunk32YQBJONjs.recentSearchRef.call(void 0, ),
2793
+ searchRef: _chunk67OI26OEjs.recentSearchRef.call(void 0, ),
2777
2794
  cliInvocationId,
2778
- onResponseReceived: _chunkX5MGQ7UTjs.recordApiResponse,
2795
+ onResponseReceived: _chunkKCKAFTPYjs.recordApiResponse,
2779
2796
  ...tracing ? {
2780
- onServerTiming: (serverTiming) => _chunkAJL2Q6IQjs.recordCliTrace.call(void 0, {
2797
+ onServerTiming: (serverTiming) => _chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
2781
2798
  phase: "tool_execute_server_timing",
2782
2799
  cliInvocationId,
2783
2800
  serverTiming,
@@ -2788,13 +2805,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2788
2805
  let rawResponse;
2789
2806
  let successfulCompatibilityResponse;
2790
2807
  try {
2791
- const executeResult = await _chunkWKFAX2K7js.runToolExecuteStage.call(void 0,
2808
+ const executeResult = await _chunkIPAMOMGPjs.runToolExecuteStage.call(void 0,
2792
2809
  "execute request",
2793
2810
  async () => {
2794
2811
  try {
2795
2812
  if (tracing) {
2796
2813
  submissionStartedAt = performance.now();
2797
- _chunkAJL2Q6IQjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2814
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2798
2815
  }
2799
2816
  return await client.executeTool(parsed.toolId, parsed.params, {
2800
2817
  ...executeOptions,
@@ -2804,34 +2821,34 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2804
2821
  } catch (error) {
2805
2822
  if (!(error instanceof _chunkDIAWYWT5js.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
2806
2823
  throw error;
2807
- const baseUrl = _chunkJLYDLK6Xjs.resolveConfig.call(void 0, ).baseUrl;
2824
+ const baseUrl = _chunkWBIDPDKJjs.resolveConfig.call(void 0, ).baseUrl;
2808
2825
  if (maintenancePolicy !== "off") {
2809
- _chunkQNELA7SXjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
2826
+ _chunkWZSFIJMGjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
2810
2827
  }
2811
- const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunkWKFAX2K7js.runToolExecuteStage.call(void 0,
2828
+ const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunkIPAMOMGPjs.runToolExecuteStage.call(void 0,
2812
2829
  "SDK compatibility",
2813
- () => _chunkQNELA7SXjs.checkSdkCompatibility.call(void 0, baseUrl, {
2830
+ () => _chunkWZSFIJMGjs.checkSdkCompatibility.call(void 0, baseUrl, {
2814
2831
  command: "tools execute",
2815
- skillsVersion: _chunkJLYDLK6Xjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
2832
+ skillsVersion: _chunkWBIDPDKJjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
2816
2833
  persistCache: maintenancePolicy !== "off"
2817
2834
  })
2818
2835
  );
2819
2836
  if (compatibility.error) throw compatibility.error;
2820
2837
  metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _44 => _44.readMetadata, 'call', _45 => _45()]), () => ( metadata));
2821
- if (maintenancePolicy !== "off" && await _chunkWKFAX2K7js.maybeAutoUpdateAndRelaunch.call(void 0,
2838
+ if (maintenancePolicy !== "off" && await _chunkIPAMOMGPjs.maybeAutoUpdateAndRelaunch.call(void 0,
2822
2839
  compatibility.response,
2823
2840
  baseUrl,
2824
2841
  maintenancePolicy
2825
2842
  )) {
2826
2843
  return void 0;
2827
2844
  }
2828
- _chunkQNELA7SXjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
2845
+ _chunkWZSFIJMGjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
2829
2846
  quietAdvisory: wantsJson
2830
2847
  });
2831
2848
  if (maintenancePolicy !== "off") {
2832
- await _chunkWKFAX2K7js.runToolExecuteStage.call(void 0,
2849
+ await _chunkIPAMOMGPjs.runToolExecuteStage.call(void 0,
2833
2850
  "agent skills sync",
2834
- () => _chunkQNELA7SXjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
2851
+ () => _chunkWZSFIJMGjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
2835
2852
  update: _optionalChain([compatibility, 'access', _46 => _46.response, 'optionalAccess', _47 => _47.skills]),
2836
2853
  mode: "detached"
2837
2854
  })
@@ -2840,7 +2857,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2840
2857
  const legacyMetadata = await readMetadata();
2841
2858
  if (tracing) {
2842
2859
  submissionStartedAt = performance.now();
2843
- _chunkAJL2Q6IQjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2860
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2844
2861
  }
2845
2862
  return client.executeTool(parsed.toolId, parsed.params, {
2846
2863
  ...executeOptions,
@@ -2863,8 +2880,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2863
2880
  metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
2864
2881
  const updateRequiredBeforeExecution = error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
2865
2882
  if (updateRequiredBeforeExecution && maintenancePolicy !== "off" && compatibility && !compatibility.error) {
2866
- const baseUrl = _chunkJLYDLK6Xjs.resolveConfig.call(void 0, ).baseUrl;
2867
- if (await _chunkWKFAX2K7js.maybeAutoUpdateAndRelaunch.call(void 0,
2883
+ const baseUrl = _chunkWBIDPDKJjs.resolveConfig.call(void 0, ).baseUrl;
2884
+ if (await _chunkIPAMOMGPjs.maybeAutoUpdateAndRelaunch.call(void 0,
2868
2885
  compatibility.response,
2869
2886
  baseUrl,
2870
2887
  maintenancePolicy
@@ -2888,7 +2905,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2888
2905
  }
2889
2906
  }
2890
2907
  if (failure instanceof _chunkDIAWYWT5js.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
2891
- if (wantsJson) _chunkYDXEXVBVjs.printJsonError.call(void 0, failure);
2908
+ if (wantsJson) _chunkQKKU2FH4js.printJsonError.call(void 0, failure);
2892
2909
  else console.error(failure.message);
2893
2910
  return 2;
2894
2911
  }
@@ -2915,9 +2932,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2915
2932
  successfulCompatibilityResponse = _nullishCoalesce(compatibilityResponse, () => ( void 0));
2916
2933
  const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _54 => _54.auto_update]);
2917
2934
  if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _55 => _55.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
2918
- await _chunkWKFAX2K7js.maybeAutoUpdateAndRelaunch.call(void 0,
2935
+ await _chunkIPAMOMGPjs.maybeAutoUpdateAndRelaunch.call(void 0,
2919
2936
  compatibilityResponse,
2920
- _chunkJLYDLK6Xjs.resolveConfig.call(void 0, ).baseUrl,
2937
+ _chunkWBIDPDKJjs.resolveConfig.call(void 0, ).baseUrl,
2921
2938
  maintenancePolicy
2922
2939
  );
2923
2940
  }
@@ -2935,8 +2952,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2935
2952
  );
2936
2953
  }
2937
2954
  }
2938
- const responseMetadata = _chunkFVM4PS5Qjs.recordField.call(void 0,
2939
- _chunkFVM4PS5Qjs.recordField.call(void 0, rawResponse, "_metadata"),
2955
+ const responseMetadata = _chunkBN5VKY4Xjs.recordField.call(void 0,
2956
+ _chunkBN5VKY4Xjs.recordField.call(void 0, rawResponse, "_metadata"),
2940
2957
  "tool"
2941
2958
  );
2942
2959
  const listOutputPaths = responseMetadata.listOutputPaths;
@@ -2948,11 +2965,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2948
2965
  await readMetadata()
2949
2966
  );
2950
2967
  }
2951
- if (_chunkFVM4PS5Qjs.isRecord.call(void 0, rawResponse)) {
2968
+ if (_chunkBN5VKY4Xjs.isRecord.call(void 0, rawResponse)) {
2952
2969
  const { _metadata, ...execution } = rawResponse;
2953
2970
  rawResponse = execution;
2954
2971
  }
2955
- const { listConversion, summary, baseEnvelope } = await _chunkWKFAX2K7js.runToolExecuteStage.call(void 0,
2972
+ const { listConversion, summary, baseEnvelope } = await _chunkIPAMOMGPjs.runToolExecuteStage.call(void 0,
2956
2973
  "result formatting",
2957
2974
  async () => {
2958
2975
  const listConversion2 = _chunkHGFFYVXNjs.tryConvertToList.call(void 0, rawResponse, {
@@ -2987,9 +3004,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2987
3004
  }
2988
3005
  skillsSyncAttempted = true;
2989
3006
  try {
2990
- await _chunkWKFAX2K7js.runToolExecuteStage.call(void 0,
3007
+ await _chunkIPAMOMGPjs.runToolExecuteStage.call(void 0,
2991
3008
  "agent skills sync",
2992
- () => _chunkQNELA7SXjs.syncSdkSkillsIfNeeded.call(void 0, _chunkJLYDLK6Xjs.resolveConfig.call(void 0, ).baseUrl, {
3009
+ () => _chunkWZSFIJMGjs.syncSdkSkillsIfNeeded.call(void 0, _chunkWBIDPDKJjs.resolveConfig.call(void 0, ).baseUrl, {
2993
3010
  update: deliveredCompatibilityResponse.skills,
2994
3011
  mode: "detached"
2995
3012
  })
@@ -3000,15 +3017,15 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3000
3017
  );
3001
3018
  }
3002
3019
  };
3003
- const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkYDXEXVBVjs.printCommandEnvelope.call(void 0, envelope, {
3020
+ const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, envelope, {
3004
3021
  ...options2,
3005
3022
  json: _nullishCoalesce(options2.json, () => ( wantsJson))
3006
3023
  });
3007
3024
  const printDeliveredJsonEnvelope = async (envelope, options2 = {}) => {
3008
3025
  await syncSkillsForDeliveredOutput();
3009
- _chunkYDXEXVBVjs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
3026
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
3010
3027
  };
3011
- const delivered = await _chunkWKFAX2K7js.runToolExecuteStage.call(void 0, "output delivery", async () => {
3028
+ const delivered = await _chunkIPAMOMGPjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
3012
3029
  if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
3013
3030
  await printDeliveredJsonEnvelope(baseEnvelope);
3014
3031
  return true;
@@ -3021,7 +3038,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3021
3038
  await printDeliveredJsonEnvelope({
3022
3039
  ...baseEnvelope,
3023
3040
  local: {
3024
- ..._chunkFVM4PS5Qjs.isRecord.call(void 0, baseEnvelope.local) ? baseEnvelope.local : {},
3041
+ ..._chunkBN5VKY4Xjs.isRecord.call(void 0, baseEnvelope.local) ? baseEnvelope.local : {},
3025
3042
  payload_file: jsonPath
3026
3043
  }
3027
3044
  });
@@ -3037,7 +3054,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3037
3054
  `${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
3038
3055
  );
3039
3056
  if (wantsJson) {
3040
- _chunkYDXEXVBVjs.printJsonError.call(void 0, error);
3057
+ _chunkQKKU2FH4js.printJsonError.call(void 0, error);
3041
3058
  } else {
3042
3059
  console.error(error.message);
3043
3060
  }
@@ -3132,13 +3149,13 @@ inspect: ${inspection.inspect}
3132
3149
  return true;
3133
3150
  });
3134
3151
  if (delivered) {
3135
- await _chunkWKFAX2K7js.runToolExecuteStage.call(void 0,
3152
+ await _chunkIPAMOMGPjs.runToolExecuteStage.call(void 0,
3136
3153
  "acknowledge delivery",
3137
3154
  () => recovery.acknowledgeDelivery()
3138
3155
  );
3139
3156
  }
3140
3157
  if (delivered && deliveredCompatibilityResponse && deliveredCompatibilityResponse.update_required !== true) {
3141
- _chunkQNELA7SXjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
3158
+ _chunkWZSFIJMGjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
3142
3159
  quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _58 => _58.auto_update, 'optionalAccess', _59 => _59.should_auto_update]) === true
3143
3160
  });
3144
3161
  }