deepline 0.3.537 → 0.3.538

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 (204) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +22 -5
  2. package/dist/bundling-sources/sdk/src/index.ts +2 -0
  3. package/dist/bundling-sources/sdk/src/plays/client-core.ts +18 -1
  4. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  5. package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +33 -4
  6. package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +1 -1
  7. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  8. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +1 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/baked-runner-image.ts +330 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +717 -133
  11. package/dist/bundling-sources/shared_libs/play-runtime/coordinator-headers.ts +7 -0
  12. package/dist/bundling-sources/shared_libs/play-runtime/daytona-payload-contract.ts +22 -1
  13. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +123 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +480 -0
  15. package/dist/bundling-sources/shared_libs/play-runtime/fixture-egress-fetch.ts +24 -16
  16. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +293 -53
  17. package/dist/bundling-sources/shared_libs/play-runtime/governor/block-reserving-budget-state-backend.ts +57 -2
  18. package/dist/bundling-sources/shared_libs/play-runtime/governor/budget-state-backend.ts +43 -0
  19. package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +141 -9
  20. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +2 -0
  21. package/dist/bundling-sources/shared_libs/play-runtime/modal-runtime-config.ts +6 -0
  22. package/dist/bundling-sources/shared_libs/play-runtime/modal-supervisor-sidecar.ts +556 -0
  23. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +27 -0
  24. package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +19 -0
  25. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +54 -0
  26. package/dist/bundling-sources/shared_libs/play-runtime/run-snapshot-stream.ts +5 -0
  27. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +155 -3
  28. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/relay-connection-counter.ts +103 -0
  29. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-heartbeat.ts +75 -6
  30. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-terminal-push.ts +59 -0
  31. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +544 -73
  32. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-runtime-watchdog.ts +8 -1
  33. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/detached-runner-readiness-pacing.ts +19 -1
  34. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +2390 -110
  35. package/dist/bundling-sources/shared_libs/play-runtime/runtime-flow.ts +42 -8
  36. package/dist/bundling-sources/shared_libs/play-runtime/runtime-read-through.ts +287 -0
  37. package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-finish.ts +606 -0
  38. package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-writer.ts +274 -119
  39. package/dist/bundling-sources/shared_libs/play-runtime/runtime-traffic-policy.ts +54 -0
  40. package/dist/bundling-sources/shared_libs/play-runtime/runtime-work-counters.ts +10 -1
  41. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +15 -0
  42. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-play-run-task.ts +18 -1
  43. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +18 -4
  44. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +219 -7
  45. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +3 -0
  46. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-claim-affinity.ts +340 -0
  47. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/play-run-recovery.ts +1 -0
  48. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +10 -1
  49. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +623 -7
  50. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +340 -5
  51. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runner-push.ts +61 -0
  52. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +2 -1
  53. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +269 -2
  54. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +238 -5
  55. package/dist/bundling-sources/shared_libs/play-runtime/startup-read-tool-ids.ts +47 -0
  56. package/dist/bundling-sources/shared_libs/play-runtime/tool-call/runtime-step-receipts-adapter.ts +5 -4
  57. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +6 -0
  58. package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +11 -0
  59. package/dist/cli/auth-4WEVLYK4.js +43 -0
  60. package/dist/cli/{auth-4SUPGDIM.mjs → auth-KYH7N7RQ.mjs} +5 -5
  61. package/dist/cli/{billing-SQU726P7.js → billing-4KTUVZ4S.js} +114 -90
  62. package/dist/cli/{billing-5JUA3ZM3.mjs → billing-WK346KAI.mjs} +31 -7
  63. package/dist/cli/{chunk-KULT6O5K.js → chunk-25RGHJQL.js} +15 -15
  64. package/dist/cli/{chunk-PJ4ZGZAN.js → chunk-34PLG5OE.js} +13 -13
  65. package/dist/cli/{chunk-37AZHCTP.mjs → chunk-35OCRH5C.mjs} +5 -5
  66. package/dist/cli/{chunk-JMHYDDBQ.js → chunk-3I5TU5XE.js} +292 -279
  67. package/dist/cli/{chunk-Y6AMMXWS.mjs → chunk-4KZF6OYY.mjs} +3 -3
  68. package/dist/cli/{chunk-BRRCWUOW.mjs → chunk-4NEOGPKD.mjs} +1 -1
  69. package/dist/cli/{chunk-NU7B5X6J.mjs → chunk-4WQR4DG4.mjs} +1 -1
  70. package/dist/cli/{chunk-AVQET3NR.js → chunk-5VSPRRTI.js} +7 -7
  71. package/dist/cli/{chunk-EEFSUCYP.mjs → chunk-6JG3MRTM.mjs} +2 -2
  72. package/dist/cli/{chunk-D77W6Q67.js → chunk-6SLQLWWL.js} +26 -26
  73. package/dist/cli/{chunk-ZUAMXZXC.mjs → chunk-7XDJKIM2.mjs} +4 -4
  74. package/dist/cli/{chunk-C37VELBR.mjs → chunk-A6E7TCK2.mjs} +5 -5
  75. package/dist/cli/{chunk-JS2SBCWD.js → chunk-ADLDU2QG.js} +6 -6
  76. package/dist/cli/{chunk-VP2K5B3R.mjs → chunk-ALARRSMZ.mjs} +3 -3
  77. package/dist/cli/{chunk-CHIGEDAE.js → chunk-B2BTBHX2.js} +3 -3
  78. package/dist/cli/{chunk-CFND2ACL.js → chunk-BBS2BLPV.js} +16 -16
  79. package/dist/cli/{chunk-QDBGPRR2.mjs → chunk-CLO562KG.mjs} +3 -1
  80. package/dist/cli/{chunk-CXTW7SRW.mjs → chunk-E7D37PLM.mjs} +8 -0
  81. package/dist/cli/{chunk-UGA5KI4A.js → chunk-ESX3H7Q7.js} +22 -22
  82. package/dist/cli/{chunk-BFHR7IC2.mjs → chunk-FJ5KPGCS.mjs} +10 -10
  83. package/dist/cli/{chunk-R7JYG6XO.mjs → chunk-FWE37N2P.mjs} +1 -1
  84. package/dist/cli/{chunk-K4WJ4BYO.mjs → chunk-ICTA5ICE.mjs} +1 -1
  85. package/dist/cli/{chunk-PU42VOBI.js → chunk-IMLFB66A.js} +3 -3
  86. package/dist/cli/{chunk-GI3V4D7K.mjs → chunk-IP3XJTWA.mjs} +2 -2
  87. package/dist/cli/{chunk-WBFOV5HT.js → chunk-JCLRSMUP.js} +5 -5
  88. package/dist/cli/{chunk-L3JVGNAT.mjs → chunk-JPEBKN3K.mjs} +2 -2
  89. package/dist/cli/{chunk-Z2PPB3IO.mjs → chunk-JTOV5RUA.mjs} +1 -1
  90. package/dist/cli/{chunk-WBTYWJLN.js → chunk-KCUQNH4K.js} +2 -2
  91. package/dist/cli/{chunk-C3XD2WHM.mjs → chunk-KNIYEZVV.mjs} +2 -2
  92. package/dist/cli/{chunk-3PMCQ3LK.js → chunk-LPTBHNGB.js} +7 -5
  93. package/dist/cli/{chunk-KH27B2HJ.mjs → chunk-M3NCXGNN.mjs} +2 -2
  94. package/dist/cli/{chunk-XDS26J7Z.js → chunk-MNBIGX6O.js} +10 -10
  95. package/dist/cli/{chunk-L6QAIZNZ.js → chunk-MYSPQUAO.js} +44 -44
  96. package/dist/cli/{chunk-W3J3LT22.mjs → chunk-N2BCPZVR.mjs} +5 -5
  97. package/dist/cli/{chunk-ZFSB7GXF.js → chunk-N5HSG4OV.js} +5 -5
  98. package/dist/cli/{chunk-2Q7VXTMS.js → chunk-O765M4LT.js} +2 -2
  99. package/dist/cli/{chunk-QPDLG7DQ.js → chunk-OOLBE6FR.js} +53 -53
  100. package/dist/cli/{chunk-IQOIT6E3.js → chunk-P3DP56HB.js} +41 -41
  101. package/dist/cli/{chunk-BGXEMTIG.js → chunk-PQKD5DMT.js} +19 -19
  102. package/dist/cli/{chunk-V5IIBG2E.mjs → chunk-T6GPTJ5F.mjs} +1 -1
  103. package/dist/cli/{chunk-GPMS6OPX.mjs → chunk-TWWYCJJW.mjs} +5 -5
  104. package/dist/cli/{chunk-ZHPSJ3LJ.mjs → chunk-UE7JHAZ2.mjs} +29 -16
  105. package/dist/cli/{chunk-VRYX2BR4.js → chunk-UEZNIPFO.js} +107 -107
  106. package/dist/cli/{chunk-AX2OAXDL.mjs → chunk-VCHV4LS3.mjs} +1 -1
  107. package/dist/cli/{chunk-NXGLJGPB.js → chunk-VIFLWQXS.js} +2 -2
  108. package/dist/cli/{chunk-6BBGUQJJ.js → chunk-XTYHZEJ2.js} +8 -0
  109. package/dist/cli/{chunk-5EOEJKSV.js → chunk-YQURGSRB.js} +1 -1
  110. package/dist/cli/{chunk-ALHKB3AE.js → chunk-YZ2ZPHWR.js} +9 -9
  111. package/dist/cli/{chunk-CGDW2CRR.mjs → chunk-ZDLDCXY3.mjs} +2 -2
  112. package/dist/cli/{chunk-RMVZTBI5.mjs → chunk-ZU6JBRV5.mjs} +4 -4
  113. package/dist/cli/command-docs.js +2 -2
  114. package/dist/cli/command-docs.mjs +1 -1
  115. package/dist/cli/{csv-HZP6QMG7.mjs → csv-2YKLUKDR.mjs} +4 -4
  116. package/dist/cli/{csv-JITYN27L.js → csv-LM7FBECI.js} +13 -13
  117. package/dist/cli/{db-QRIRTOMM.mjs → db-234UBWJH.mjs} +6 -6
  118. package/dist/cli/{db-FYSRB7O4.js → db-5PMA4IVW.js} +27 -27
  119. package/dist/cli/describe-C7GOSGYB.js +49 -0
  120. package/dist/cli/{describe-REXJVJC3.mjs → describe-W26LW5O7.mjs} +17 -17
  121. package/dist/cli/describe-core.d.mts +3 -3
  122. package/dist/cli/describe-core.d.ts +3 -3
  123. package/dist/cli/{executions-BSTF4DDS.js → executions-3S736GXX.js} +8 -8
  124. package/dist/cli/{executions-53KJAFOW.mjs → executions-GD7GXTJM.mjs} +6 -6
  125. package/dist/cli/{feedback-6MW3QOXX.js → feedback-BUWTDY4R.js} +14 -14
  126. package/dist/cli/{feedback-CWUJJF3J.mjs → feedback-GBV5HJJZ.mjs} +6 -6
  127. package/dist/cli/git-YG36MROC.js +25 -0
  128. package/dist/cli/{git-CKVZTJFS.mjs → git-YXJGTDQL.mjs} +5 -5
  129. package/dist/cli/index.js +143 -143
  130. package/dist/cli/index.mjs +42 -42
  131. package/dist/cli/{legacy-noops-USTBRFRX.mjs → legacy-noops-UJM6GBNP.mjs} +6 -6
  132. package/dist/cli/{legacy-noops-QBL4PNGB.js → legacy-noops-ZSF64V2U.js} +9 -9
  133. package/dist/cli/{monitors-6UCG5D7W.mjs → monitors-UERUQ6CT.mjs} +7 -7
  134. package/dist/cli/{monitors-VCR6SUZD.js → monitors-XQ2GNH6D.js} +100 -100
  135. package/dist/cli/{org-GSRBOJVO.mjs → org-CP4VLH6M.mjs} +6 -6
  136. package/dist/cli/{org-HPILTEG4.js → org-IF6MPVNR.js} +86 -86
  137. package/dist/cli/{play-TK7WOP5H.js → play-2NHQO5MO.js} +317 -317
  138. package/dist/cli/{play-QRTYQNG4.mjs → play-ZWDYYVPI.mjs} +17 -17
  139. package/dist/cli/{providers-OAQJWVBS.mjs → providers-2CVIATU4.mjs} +6 -6
  140. package/dist/cli/{providers-HEXNJ5QC.js → providers-LOPXQN56.js} +9 -9
  141. package/dist/cli/{quickstart-FFVHTPSP.mjs → quickstart-KVCFXLID.mjs} +4 -4
  142. package/dist/cli/{quickstart-PYZTFXZX.js → quickstart-N4WDEQZY.js} +6 -6
  143. package/dist/cli/{run-4DWJXJRO.js → run-BDT5LK3I.js} +42 -42
  144. package/dist/cli/{run-HLN6YYZH.mjs → run-RUXHYWLF.mjs} +22 -22
  145. package/dist/cli/search-ATDDVADT.js +32 -0
  146. package/dist/cli/{search-ZHRCXGEL.mjs → search-BFUTNPA5.mjs} +7 -7
  147. package/dist/cli/{search-output-2KY6PFDH.js → search-output-CTXI2QZU.js} +6 -6
  148. package/dist/cli/{search-output-N7QXACVK.mjs → search-output-WUGH4PZA.mjs} +4 -4
  149. package/dist/cli/{secrets-WXQ7XO5C.js → secrets-BZJZYFOU.js} +15 -15
  150. package/dist/cli/{secrets-FKMWBLHU.mjs → secrets-Z4XQVTC6.mjs} +6 -6
  151. package/dist/cli/sessions-HNU35AFM.js +22 -0
  152. package/dist/cli/{sessions-3YDTEDA5.mjs → sessions-VZXR3MQZ.mjs} +6 -6
  153. package/dist/cli/{settings-JTPASUZN.mjs → settings-VYEZFR4L.mjs} +12 -12
  154. package/dist/cli/{settings-67TWLQ6E.js → settings-WBYA4JMM.js} +85 -85
  155. package/dist/cli/{setup-KUERQJUX.js → setup-FS2RMSS2.js} +49 -49
  156. package/dist/cli/{setup-VYNGXUJ6.mjs → setup-H7KCI4SO.mjs} +9 -9
  157. package/dist/cli/skills-VPIURCAZ.js +36 -0
  158. package/dist/cli/{skills-KI4KYHH6.mjs → skills-YQNSJUUG.mjs} +7 -7
  159. package/dist/cli/tools-273GS5HU.js +56 -0
  160. package/dist/cli/{tools-UQDJS2RS.mjs → tools-ZF6SVEGW.mjs} +16 -16
  161. package/dist/cli/{update-7FQQUBOD.mjs → update-RKQNNJM4.mjs} +9 -9
  162. package/dist/cli/update-TOD3XY55.js +34 -0
  163. package/dist/cli/{views-JAM4MNNV.mjs → views-JHHOTWDU.mjs} +6 -6
  164. package/dist/cli/{views-MJK7JGZG.js → views-KN7FEDGT.js} +21 -21
  165. package/dist/cli/{workflow-AQPRIWQX.js → workflow-2WHSKTTV.js} +17 -17
  166. package/dist/cli/{workflow-TQRV5FGO.mjs → workflow-AAYLCLWA.mjs} +7 -7
  167. package/dist/{client-BlLYQDNo.d.mts → client-D0uDBybG.d.mts} +1 -1
  168. package/dist/{client-DSQlkIDO.d.ts → client-DZTnAv4B.d.ts} +1 -1
  169. package/dist/{client-core-rX7n2H8U.d.mts → client-core-BhWf8Y1b.d.mts} +15 -2
  170. package/dist/{client-core-CDwapXy5.d.ts → client-core-og3AP1LL.d.ts} +15 -2
  171. package/dist/{compiler-manifest-BHNC4RL-.d.ts → compiler-manifest-Bes3OVA3.d.mts} +1 -1
  172. package/dist/{compiler-manifest-BHNC4RL-.d.mts → compiler-manifest-Bes3OVA3.d.ts} +1 -1
  173. package/dist/{errors-lhtIWG5Z.d.ts → errors-BJm4lLWc.d.ts} +1 -1
  174. package/dist/{errors-D7sPXrvB.d.mts → errors-Dc5r42ks.d.mts} +1 -1
  175. package/dist/{index-CQTBHXHr.d.ts → index-BfV7mRPF.d.ts} +1 -1
  176. package/dist/{index-NaDZq2xf.d.mts → index-DTkiz_Ur.d.mts} +1 -1
  177. package/dist/index.d.mts +7 -7
  178. package/dist/index.d.ts +7 -7
  179. package/dist/index.js +9 -9
  180. package/dist/index.mjs +6 -6
  181. package/dist/install-integrity.json +120 -112
  182. package/dist/plays/bundle-play-file.d.mts +3 -3
  183. package/dist/plays/bundle-play-file.d.ts +3 -3
  184. package/dist/plays/play-description.d.mts +2 -2
  185. package/dist/plays/play-description.d.ts +2 -2
  186. package/dist/plays/run-request.d.mts +2 -2
  187. package/dist/plays/run-request.d.ts +2 -2
  188. package/dist/release.d.mts +1 -1
  189. package/dist/release.d.ts +1 -1
  190. package/dist/release.js +2 -2
  191. package/dist/release.mjs +1 -1
  192. package/dist/server.d.mts +4 -4
  193. package/dist/server.d.ts +4 -4
  194. package/dist/server.js +5 -5
  195. package/dist/server.mjs +3 -3
  196. package/package.json +1 -1
  197. package/dist/cli/auth-Y2K2ZYYA.js +0 -43
  198. package/dist/cli/describe-LSOHOLFI.js +0 -49
  199. package/dist/cli/git-S7SWUZ3T.js +0 -25
  200. package/dist/cli/search-WERQBC6V.js +0 -32
  201. package/dist/cli/sessions-LXQ4Q6BS.js +0 -22
  202. package/dist/cli/skills-EFRLHY3F.js +0 -36
  203. package/dist/cli/tools-C3EIGFFP.js +0 -56
  204. package/dist/cli/update-KCY72RXH.js +0 -34
@@ -2,11 +2,11 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkAVQET3NRjs = require('./chunk-AVQET3NR.js');
5
+ var _chunk5VSPRRTIjs = require('./chunk-5VSPRRTI.js');
6
6
 
7
7
 
8
8
 
9
- var _chunkXDS26J7Zjs = require('./chunk-XDS26J7Z.js');
9
+ var _chunkMNBIGX6Ojs = require('./chunk-MNBIGX6O.js');
10
10
 
11
11
 
12
12
 
@@ -46,10 +46,10 @@ var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
46
46
  var _chunkHGFFYVXNjs = require('./chunk-HGFFYVXN.js');
47
47
 
48
48
 
49
- var _chunkZFSB7GXFjs = require('./chunk-ZFSB7GXF.js');
49
+ var _chunkN5HSG4OVjs = require('./chunk-N5HSG4OV.js');
50
50
 
51
51
 
52
- var _chunkJMHYDDBQjs = require('./chunk-JMHYDDBQ.js');
52
+ var _chunk3I5TU5XEjs = require('./chunk-3I5TU5XE.js');
53
53
 
54
54
 
55
55
  var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
@@ -59,18 +59,18 @@ var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
59
59
 
60
60
 
61
61
 
62
- var _chunkUGA5KI4Ajs = require('./chunk-UGA5KI4A.js');
62
+ var _chunkESX3H7Q7js = require('./chunk-ESX3H7Q7.js');
63
63
 
64
64
 
65
65
 
66
66
 
67
- var _chunkNXGLJGPBjs = require('./chunk-NXGLJGPB.js');
67
+ var _chunkVIFLWQXSjs = require('./chunk-VIFLWQXS.js');
68
68
 
69
69
 
70
70
 
71
71
 
72
72
 
73
- var _chunkL6QAIZNZjs = require('./chunk-L6QAIZNZ.js');
73
+ var _chunkMYSPQUAOjs = require('./chunk-MYSPQUAO.js');
74
74
 
75
75
 
76
76
 
@@ -79,12 +79,12 @@ var _chunkL6QAIZNZjs = require('./chunk-L6QAIZNZ.js');
79
79
 
80
80
 
81
81
 
82
- var _chunkBGXEMTIGjs = require('./chunk-BGXEMTIG.js');
82
+ var _chunkPQKD5DMTjs = require('./chunk-PQKD5DMT.js');
83
83
 
84
84
 
85
85
 
86
86
 
87
- var _chunkPU42VOBIjs = require('./chunk-PU42VOBI.js');
87
+ var _chunkIMLFB66Ajs = require('./chunk-IMLFB66A.js');
88
88
 
89
89
 
90
90
  var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
@@ -190,10 +190,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
190
190
  }
191
191
  };
192
192
  function pendingToolExecutionPath(input) {
193
- const config = _chunkPU42VOBIjs.resolveConfig.call(void 0, );
193
+ const config = _chunkIMLFB66Ajs.resolveConfig.call(void 0, );
194
194
  const fingerprint = _crypto.createHash.call(void 0, "sha256").update(config.baseUrl).update("\0").update(_crypto.createHash.call(void 0, "sha256").update(config.apiKey).digest("hex")).update("\0").update(input.toolId).update("\0").update(_chunkXDVT3GOMjs.stableStringify.call(void 0, input.params)).update("\0").update(input.responseIntent).digest("hex");
195
195
  return _path.join.call(void 0,
196
- _chunkPU42VOBIjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
196
+ _chunkIMLFB66Ajs.sdkCliStateDirPath.call(void 0, config.baseUrl),
197
197
  `${PENDING_PREFIX}${fingerprint}.json`
198
198
  );
199
199
  }
@@ -501,13 +501,13 @@ function categoryEnumerationRender(summaries) {
501
501
  };
502
502
  }
503
503
  async function listToolCategories(emitJson, compact) {
504
- const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
504
+ const client = new (0, _chunkN5HSG4OVjs.DeeplineClient)();
505
505
  if (!emitJson) {
506
506
  const summaries2 = (await client.listToolCategories()).map((category) => ({
507
507
  ...category,
508
508
  description: describeToolCategory(category.name)
509
509
  }));
510
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
510
+ _chunkPQKD5DMTjs.printCommandEnvelope.call(void 0,
511
511
  { categories: summaries2, render: categoryEnumerationRender(summaries2) },
512
512
  { json: false }
513
513
  );
@@ -517,7 +517,7 @@ async function listToolCategories(emitJson, compact) {
517
517
  const items = rawTools.map(toListedTool);
518
518
  const summaries = aggregateCategorySummaries(rawTools);
519
519
  const outputItems = compact ? items.map(compactTool) : items;
520
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
520
+ _chunkPQKD5DMTjs.printCommandEnvelope.call(void 0,
521
521
  {
522
522
  tools: outputItems,
523
523
  count: outputItems.length,
@@ -536,7 +536,7 @@ function unknownCategoryError(category, summaries, emitJson) {
536
536
  const known = summaries.map((item) => item.name);
537
537
  const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
538
538
  if (emitJson) {
539
- _chunkBGXEMTIGjs.printJson.call(void 0, {
539
+ _chunkPQKD5DMTjs.printJson.call(void 0, {
540
540
  ok: false,
541
541
  exitCode: 4,
542
542
  code: "TOOL_CATEGORY_NOT_FOUND",
@@ -550,13 +550,13 @@ function unknownCategoryError(category, summaries, emitJson) {
550
550
  const render = categoryEnumerationRender(summaries);
551
551
  console.error(message);
552
552
  console.error("");
553
- console.error(_chunkBGXEMTIGjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
553
+ console.error(_chunkPQKD5DMTjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
554
554
  console.error("");
555
555
  console.error(`Valid categories: ${known.join(", ")}`);
556
556
  return 4;
557
557
  }
558
558
  async function listToolsInCategory(category, emitJson) {
559
- const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
559
+ const client = new (0, _chunkN5HSG4OVjs.DeeplineClient)();
560
560
  const { tools: rawTools, categories } = await client.listToolsInCategory(category);
561
561
  const summaries = categories.map((item) => ({
562
562
  ...item,
@@ -592,7 +592,7 @@ async function listToolsInCategory(category, emitJson) {
592
592
  }
593
593
  ]
594
594
  };
595
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
595
+ _chunkPQKD5DMTjs.printCommandEnvelope.call(void 0,
596
596
  {
597
597
  category,
598
598
  total: rows.length,
@@ -605,7 +605,7 @@ async function listToolsInCategory(category, emitJson) {
605
605
  return 0;
606
606
  }
607
607
  async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
608
- const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
608
+ const client = new (0, _chunkN5HSG4OVjs.DeeplineClient)();
609
609
  const items = (await client.listTools({
610
610
  categories: requestedCategories.join(","),
611
611
  compact
@@ -634,7 +634,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
634
634
  ]
635
635
  };
636
636
  const outputItems = compact ? items.map(compactTool) : items;
637
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
637
+ _chunkPQKD5DMTjs.printCommandEnvelope.call(void 0,
638
638
  {
639
639
  tools: outputItems,
640
640
  count: outputItems.length,
@@ -653,13 +653,13 @@ async function listTools(category, options = {}) {
653
653
  const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
654
654
  const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
655
655
  const compact = options.compact !== false;
656
- const emitJson = options.json === true || _chunkBGXEMTIGjs.shouldEmitJson.call(void 0, );
656
+ const emitJson = options.json === true || _chunkPQKD5DMTjs.shouldEmitJson.call(void 0, );
657
657
  if (positional && flagCategories.length > 0) {
658
658
  const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
659
659
  if (!flagIsSameSingle) {
660
660
  const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
661
661
  if (emitJson) {
662
- _chunkBGXEMTIGjs.printJson.call(void 0, {
662
+ _chunkPQKD5DMTjs.printJson.call(void 0, {
663
663
  ok: false,
664
664
  exitCode: 2,
665
665
  code: "TOOL_LIST_CATEGORY_CONFLICT",
@@ -686,7 +686,7 @@ async function grepTools(queryInput, options = {}) {
686
686
  console.error("Usage: deepline tools grep <query> [--json]");
687
687
  return 1;
688
688
  }
689
- const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
689
+ const client = new (0, _chunkN5HSG4OVjs.DeeplineClient)();
690
690
  const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
691
691
  const mode = _nullishCoalesce(options.mode, () => ( "all"));
692
692
  const jsonOutput = options.json === true;
@@ -710,7 +710,7 @@ async function grepTools(queryInput, options = {}) {
710
710
  query,
711
711
  mode
712
712
  }) : null;
713
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
713
+ _chunkPQKD5DMTjs.printCommandEnvelope.call(void 0,
714
714
  {
715
715
  tools: outputTools,
716
716
  count: outputTools.length,
@@ -728,7 +728,7 @@ async function grepTools(queryInput, options = {}) {
728
728
  } : {},
729
729
  commandTemplates: TOOL_COMMAND_TEMPLATES
730
730
  },
731
- { json: options.json || _chunkBGXEMTIGjs.shouldEmitJson.call(void 0, ) }
731
+ { json: options.json || _chunkPQKD5DMTjs.shouldEmitJson.call(void 0, ) }
732
732
  );
733
733
  return 0;
734
734
  }
@@ -827,10 +827,10 @@ Output:
827
827
  tools.command("balance <provider>").description(
828
828
  "Read a fresh balance using this workspace\u2019s own provider connection (LeadMagic)."
829
829
  ).option("--json", "Print the balance and observation timestamp as JSON").action(async (provider, options) => {
830
- const balance = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().getIntegrationBalance(
830
+ const balance = await new (0, _chunkN5HSG4OVjs.DeeplineClient)().getIntegrationBalance(
831
831
  provider
832
832
  );
833
- if (_chunkBGXEMTIGjs.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(balance));
833
+ if (_chunkPQKD5DMTjs.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(balance));
834
834
  else
835
835
  console.log(
836
836
  `${balance.provider}: ${balance.balance.value} ${balance.unit} (observed ${balance.observedAt})`
@@ -839,8 +839,8 @@ Output:
839
839
  tools.command("workspace-connections").description(
840
840
  "List shared OAuth connections in a workspace enrolled in the pilot."
841
841
  ).option("--json", "Print connection summaries as JSON").action(async (options) => {
842
- const { connections } = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().listWorkspaceIntegrationConnections();
843
- if (_chunkBGXEMTIGjs.shouldEmitJson.call(void 0, options.json))
842
+ const { connections } = await new (0, _chunkN5HSG4OVjs.DeeplineClient)().listWorkspaceIntegrationConnections();
843
+ if (_chunkPQKD5DMTjs.shouldEmitJson.call(void 0, options.json))
844
844
  console.log(JSON.stringify(connections));
845
845
  else if (connections.length === 0)
846
846
  console.log("No workspace connections.");
@@ -851,10 +851,10 @@ Output:
851
851
  tools.command("hubspot-members").description(
852
852
  "List personal HubSpot connection status for workspace members."
853
853
  ).option("--cursor <cursor>", "Read the next roster page").option("--json", "Print the roster page as JSON").action(async (options) => {
854
- const page = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().listPersonalHubSpotMembers(
854
+ const page = await new (0, _chunkN5HSG4OVjs.DeeplineClient)().listPersonalHubSpotMembers(
855
855
  options.cursor
856
856
  );
857
- if (_chunkBGXEMTIGjs.shouldEmitJson.call(void 0, options.json)) {
857
+ if (_chunkPQKD5DMTjs.shouldEmitJson.call(void 0, options.json)) {
858
858
  console.log(JSON.stringify(page));
859
859
  return;
860
860
  }
@@ -877,7 +877,7 @@ Output:
877
877
  throw new Error("Choose hubspot or google_calendar_availability.");
878
878
  if (action !== "connect" && action !== "reconnect" && action !== "replace" && action !== "disconnect")
879
879
  throw new Error("Choose connect, reconnect, replace, or disconnect.");
880
- const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
880
+ const client = new (0, _chunkN5HSG4OVjs.DeeplineClient)();
881
881
  const { connections } = await client.listWorkspaceIntegrationConnections();
882
882
  const row = connections.find(
883
883
  (connection) => connection.provider === provider
@@ -888,15 +888,15 @@ Output:
888
888
  connectionId: _optionalChain([row, 'optionalAccess', _14 => _14.id]),
889
889
  authorizationVersion: _optionalChain([row, 'optionalAccess', _15 => _15.authorizationVersion])
890
890
  });
891
- if (_chunkBGXEMTIGjs.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(result));
891
+ if (_chunkPQKD5DMTjs.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(result));
892
892
  else console.log(_nullishCoalesce(result.url, () => ( "Workspace connection disconnected.")));
893
893
  }
894
894
  );
895
895
  tools.command("availability-calendars").description("Calendar discovery compatibility command for the pilot.").option("--cursor <cursor>", "Legacy calendar page cursor").option("--json", "Print the response as JSON").action(async (options) => {
896
- const page = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().listAvailabilityCalendars(
896
+ const page = await new (0, _chunkN5HSG4OVjs.DeeplineClient)().listAvailabilityCalendars(
897
897
  options.cursor
898
898
  );
899
- if (_chunkBGXEMTIGjs.shouldEmitJson.call(void 0, options.json)) {
899
+ if (_chunkPQKD5DMTjs.shouldEmitJson.call(void 0, options.json)) {
900
900
  console.log(JSON.stringify(page));
901
901
  return;
902
902
  }
@@ -930,10 +930,10 @@ Output:
930
930
  );
931
931
  }
932
932
  if (options.link) {
933
- const link = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().getIntegrationConnectLink(
933
+ const link = await new (0, _chunkN5HSG4OVjs.DeeplineClient)().getIntegrationConnectLink(
934
934
  provider
935
935
  );
936
- if (_chunkBGXEMTIGjs.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(link));
936
+ if (_chunkPQKD5DMTjs.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(link));
937
937
  else console.log(link.connect_url);
938
938
  return;
939
939
  }
@@ -943,7 +943,7 @@ Output:
943
943
  if (options.preset !== void 0 && (options.scopes !== void 0 || options.optionalScopes !== void 0))
944
944
  throw new Error("Use --preset or individual scopes, not both.");
945
945
  const splitScopes = (value) => value.split(",").map((scope) => scope.trim()).filter(Boolean);
946
- const result2 = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().startIntegrationOAuth(
946
+ const result2 = await new (0, _chunkN5HSG4OVjs.DeeplineClient)().startIntegrationOAuth(
947
947
  provider,
948
948
  {
949
949
  ...options.preset !== void 0 ? { preset: options.preset } : {},
@@ -955,7 +955,7 @@ Output:
955
955
  throw new Error(
956
956
  "The API did not return an OAuth authorization URL."
957
957
  );
958
- if (_chunkBGXEMTIGjs.shouldEmitJson.call(void 0, options.json))
958
+ if (_chunkPQKD5DMTjs.shouldEmitJson.call(void 0, options.json))
959
959
  console.log(
960
960
  JSON.stringify({ provider, redirect_url: result2.redirect_url })
961
961
  );
@@ -981,7 +981,7 @@ Output:
981
981
  "--credentials-file must contain a nonempty JSON object of string credential values."
982
982
  );
983
983
  }
984
- const result = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().setIntegrationCredentials(
984
+ const result = await new (0, _chunkN5HSG4OVjs.DeeplineClient)().setIntegrationCredentials(
985
985
  provider,
986
986
  credentials,
987
987
  { expectedConnectionId: options.expectedConnectionId }
@@ -992,7 +992,7 @@ Output:
992
992
  );
993
993
  }
994
994
  const confirmation = { provider, credential_saved: true };
995
- if (_chunkBGXEMTIGjs.shouldEmitJson.call(void 0, options.json))
995
+ if (_chunkPQKD5DMTjs.shouldEmitJson.call(void 0, options.json))
996
996
  console.log(JSON.stringify(confirmation));
997
997
  else
998
998
  console.log(
@@ -1032,7 +1032,7 @@ Examples:
1032
1032
  json: Boolean(options.json)
1033
1033
  });
1034
1034
  });
1035
- _chunkXDS26J7Zjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
1035
+ _chunkMNBIGX6Ojs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
1036
1036
  tools.command("grep <query>").description(
1037
1037
  "Regex grep over tool ids, descriptions, categories, and input fields."
1038
1038
  ).addHelpText(
@@ -1067,7 +1067,7 @@ Examples:
1067
1067
  });
1068
1068
  const addToolMetadataCommand = (command) => {
1069
1069
  let compatibilityMetadata;
1070
- _chunkUGA5KI4Ajs.registerCompatibilityCatalog.call(void 0, command, () => ({
1070
+ _chunkESX3H7Q7js.registerCompatibilityCatalog.call(void 0, command, () => ({
1071
1071
  toolId: command.args[0],
1072
1072
  acceptMetadata: (metadata) => {
1073
1073
  compatibilityMetadata = metadata;
@@ -1137,7 +1137,7 @@ Examples:
1137
1137
  process.exitCode = await narrowView();
1138
1138
  return;
1139
1139
  }
1140
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-LSOHOLFI.js")));
1140
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-C7GOSGYB.js")));
1141
1141
  process.exitCode = await describeAnything(
1142
1142
  toolId,
1143
1143
  {
@@ -1152,7 +1152,7 @@ Examples:
1152
1152
  });
1153
1153
  };
1154
1154
  addToolMetadataCommand(
1155
- _chunkAVQET3NRjs.addDescribeOptions.call(void 0,
1155
+ _chunk5VSPRRTIjs.addDescribeOptions.call(void 0,
1156
1156
  tools.command("describe <toolId>", { hidden: true }).alias("get"),
1157
1157
  { json: false }
1158
1158
  )
@@ -1221,7 +1221,7 @@ Examples:
1221
1221
  options,
1222
1222
  void 0,
1223
1223
  true,
1224
- _chunkNXGLJGPBjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
1224
+ _chunkVIFLWQXSjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
1225
1225
  );
1226
1226
  }
1227
1227
  );
@@ -1229,13 +1229,13 @@ Examples:
1229
1229
  function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1230
1230
  let metadata;
1231
1231
  const startedAt = performance.now();
1232
- const baseUrl = _chunkPU42VOBIjs.resolveConfig.call(void 0, ).baseUrl;
1233
- _chunkNXGLJGPBjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
1234
- const result = _chunkUGA5KI4Ajs.runToolExecuteStage.call(void 0,
1232
+ const baseUrl = _chunkIMLFB66Ajs.resolveConfig.call(void 0, ).baseUrl;
1233
+ _chunkVIFLWQXSjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
1234
+ const result = _chunkESX3H7Q7js.runToolExecuteStage.call(void 0,
1235
1235
  "SDK compatibility",
1236
- () => _chunkL6QAIZNZjs.checkSdkCompatibility.call(void 0, baseUrl, {
1236
+ () => _chunkMYSPQUAOjs.checkSdkCompatibility.call(void 0, baseUrl, {
1237
1237
  command: "tools execute",
1238
- skillsVersion: _chunkPU42VOBIjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
1238
+ skillsVersion: _chunkIMLFB66Ajs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
1239
1239
  persistCache: false,
1240
1240
  timeoutMs: TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS,
1241
1241
  catalog: {
@@ -1249,7 +1249,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1249
1249
  })
1250
1250
  ).then(
1251
1251
  (compatibility) => {
1252
- _chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
1252
+ _chunkVIFLWQXSjs.recordCliTrace.call(void 0, {
1253
1253
  phase: "cli.tool_execute_compatibility_ready",
1254
1254
  ms: performance.now() - startedAt,
1255
1255
  ok: compatibility.error === null,
@@ -1258,7 +1258,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1258
1258
  return compatibility;
1259
1259
  },
1260
1260
  (error) => {
1261
- _chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
1261
+ _chunkVIFLWQXSjs.recordCliTrace.call(void 0, {
1262
1262
  phase: "cli.tool_execute_compatibility_ready",
1263
1263
  ms: performance.now() - startedAt,
1264
1264
  ok: false
@@ -1273,7 +1273,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1273
1273
  console.error("Usage: deepline tools describe <toolId> [--json]");
1274
1274
  return 1;
1275
1275
  }
1276
- const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
1276
+ const client = new (0, _chunkN5HSG4OVjs.DeeplineClient)();
1277
1277
  let tool;
1278
1278
  try {
1279
1279
  tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
@@ -1327,7 +1327,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1327
1327
  const lines = toolPricingOnlyLines(tool, toolId);
1328
1328
  if (inferenceQuote)
1329
1329
  lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
1330
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
1330
+ _chunkPQKD5DMTjs.printCommandEnvelope.call(void 0,
1331
1331
  {
1332
1332
  toolId: String(tool.toolId || toolId),
1333
1333
  cost: _chunkUNDLNT3Vjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
@@ -1350,7 +1350,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1350
1350
  void 0,
1351
1351
  seedToolListScript
1352
1352
  );
1353
- _chunkBGXEMTIGjs.printCompactJson.call(void 0, {
1353
+ _chunkPQKD5DMTjs.printCompactJson.call(void 0, {
1354
1354
  toolId: contract.toolId,
1355
1355
  ...options.schemaOnly ? {
1356
1356
  inputSchema: contract.inputSchema,
@@ -1373,7 +1373,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1373
1373
  return 0;
1374
1374
  }
1375
1375
  if (options.contractJson) {
1376
- _chunkBGXEMTIGjs.printCompactJson.call(void 0, {
1376
+ _chunkPQKD5DMTjs.printCompactJson.call(void 0, {
1377
1377
  ..._chunkUNDLNT3Vjs.toolContractJsonForDescribe.call(void 0,
1378
1378
  tool,
1379
1379
  toolId,
@@ -1387,7 +1387,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1387
1387
  }
1388
1388
  const emitJson = options.json === true;
1389
1389
  if (emitJson) {
1390
- _chunkBGXEMTIGjs.printCompactJson.call(void 0, {
1390
+ _chunkPQKD5DMTjs.printCompactJson.call(void 0, {
1391
1391
  ..._chunkUNDLNT3Vjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
1392
1392
  ...modelDescription ? { modelOptions: modelDescription } : {},
1393
1393
  ...inferenceQuote ? { inferenceQuote } : {}
@@ -2250,7 +2250,7 @@ function parseExecuteOptions(toolId, options, output) {
2250
2250
  outputFormat = normalizeOutputFormat(options.outputFormat);
2251
2251
  }
2252
2252
  if (options.idempotencyKey !== void 0) {
2253
- _chunkJMHYDDBQjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2253
+ _chunk3I5TU5XEjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2254
2254
  }
2255
2255
  if (options.recoveryTimeoutMs !== void 0) {
2256
2256
  const parsed = Number(options.recoveryTimeoutMs);
@@ -2629,7 +2629,7 @@ function writeToolReceipt(input) {
2629
2629
  const data = Object.hasOwn(toolResponse, "rawV2") ? toolResponse.rawV2 : Object.hasOwn(toolResponse, "raw") ? toolResponse.raw : Object.hasOwn(envelope, "output") ? envelope.output : Object.hasOwn(envelope, "result") ? envelope.result : response;
2630
2630
  const status = typeof envelope.status === "string" ? envelope.status : "completed";
2631
2631
  const charged = _chunkUNDLNT3Vjs.recordField.call(void 0, envelope, "billing").credits_charged;
2632
- _chunkAVQET3NRjs.writeExecutionOutput.call(void 0,
2632
+ _chunk5VSPRRTIjs.writeExecutionOutput.call(void 0,
2633
2633
  {
2634
2634
  id: _nullishCoalesce(input.key, () => ( jobId)),
2635
2635
  status,
@@ -2660,8 +2660,8 @@ async function executeToolForReceipt(input) {
2660
2660
  let retryKey = null;
2661
2661
  let received = false;
2662
2662
  try {
2663
- const cliInvocationId = _nullishCoalesce(_chunkUGA5KI4Ajs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkUGA5KI4Ajs.beginToolExecuteCommand.call(void 0, )));
2664
- const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
2663
+ const cliInvocationId = _nullishCoalesce(_chunkESX3H7Q7js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkESX3H7Q7js.beginToolExecuteCommand.call(void 0, )));
2664
+ const client = new (0, _chunkN5HSG4OVjs.DeeplineClient)();
2665
2665
  const metadata = assertExecutableToolMetadata(
2666
2666
  toolId,
2667
2667
  await _asyncNullishCoalesce(input.metadata, async () => ( await client.getTool(toolId, { cliInvocationId })))
@@ -2682,9 +2682,9 @@ async function executeToolForReceipt(input) {
2682
2682
  ...input.timeoutMs !== void 0 ? { timeout: input.timeoutMs } : {},
2683
2683
  ..._optionalChain([metadata, 'access', _37 => _37.executionMetadata, 'optionalAccess', _38 => _38.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {},
2684
2684
  ...key ? { idempotencyKey: key } : {},
2685
- searchRef: _chunkXDS26J7Zjs.recentSearchRef.call(void 0, toolId),
2685
+ searchRef: _chunkMNBIGX6Ojs.recentSearchRef.call(void 0, toolId),
2686
2686
  cliInvocationId,
2687
- onResponseReceived: _chunkAVQET3NRjs.recordApiResponse
2687
+ onResponseReceived: _chunk5VSPRRTIjs.recordApiResponse
2688
2688
  }).catch((error) => {
2689
2689
  const guidance = toolGuidanceLines(metadata.guidance);
2690
2690
  if (guidance.length)
@@ -2707,11 +2707,11 @@ async function executeToolForReceipt(input) {
2707
2707
  if (received) throw error;
2708
2708
  const outcomeKnown = answeredWithFailure(error);
2709
2709
  if (outcomeKnown) _optionalChain([retryKey, 'optionalAccess', _39 => _39.discard, 'call', _40 => _40()]);
2710
- _chunkAVQET3NRjs.writeExecutionOutput.call(void 0,
2710
+ _chunk5VSPRRTIjs.writeExecutionOutput.call(void 0,
2711
2711
  {
2712
2712
  id: outcomeKnown ? null : key,
2713
2713
  status: "failed",
2714
- error: _chunkBGXEMTIGjs.errorToJsonPayload.call(void 0, error).error,
2714
+ error: _chunkPQKD5DMTjs.errorToJsonPayload.call(void 0, error).error,
2715
2715
  ...key && !outcomeKnown ? {
2716
2716
  next: {
2717
2717
  retry: "Run the same command again: it picks up this call without paying twice."
@@ -2728,11 +2728,11 @@ function answeredWithFailure(error) {
2728
2728
  error.statusCode !== 408 && error.code !== "EXECUTION_OUTCOME_UNKNOWN";
2729
2729
  }
2730
2730
  async function getToolExecutionReceipt(key, output) {
2731
- const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
2731
+ const client = new (0, _chunkN5HSG4OVjs.DeeplineClient)();
2732
2732
  const execution = await client.executions.getByKey(key);
2733
2733
  output.label = `${execution.toolId} (tool)`;
2734
2734
  if (execution.response === void 0) {
2735
- _chunkAVQET3NRjs.writeExecutionOutput.call(void 0,
2735
+ _chunk5VSPRRTIjs.writeExecutionOutput.call(void 0,
2736
2736
  {
2737
2737
  id: key,
2738
2738
  status: execution.executionRecovery.state,
@@ -2761,19 +2761,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2761
2761
  parsed = parseExecuteOptions(toolId, options, output);
2762
2762
  } catch (error) {
2763
2763
  if (wantsJson) {
2764
- _chunkBGXEMTIGjs.printJsonError.call(void 0, error);
2764
+ _chunkPQKD5DMTjs.printJsonError.call(void 0, error);
2765
2765
  } else {
2766
2766
  console.error(error instanceof Error ? error.message : String(error));
2767
2767
  }
2768
2768
  return error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
2769
2769
  }
2770
- const cliInvocationId = _nullishCoalesce(_chunkUGA5KI4Ajs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkUGA5KI4Ajs.beginToolExecuteCommand.call(void 0, )));
2770
+ const cliInvocationId = _nullishCoalesce(_chunkESX3H7Q7js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkESX3H7Q7js.beginToolExecuteCommand.call(void 0, )));
2771
2771
  const deferredCompatibility = deferCompatibility ? beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) : void 0;
2772
- const tracing = _chunkNXGLJGPBjs.isCliTraceEnabled.call(void 0, );
2772
+ const tracing = _chunkVIFLWQXSjs.isCliTraceEnabled.call(void 0, );
2773
2773
  const clientStartedAt = tracing ? performance.now() : void 0;
2774
- const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
2774
+ const client = new (0, _chunkN5HSG4OVjs.DeeplineClient)();
2775
2775
  if (clientStartedAt !== void 0) {
2776
- _chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
2776
+ _chunkVIFLWQXSjs.recordCliTrace.call(void 0, {
2777
2777
  phase: "cli.tool_execute_client_setup",
2778
2778
  ms: performance.now() - clientStartedAt
2779
2779
  });
@@ -2782,13 +2782,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2782
2782
  const readMetadata = async () => {
2783
2783
  if (metadata) return assertExecutableToolMetadata(parsed.toolId, metadata);
2784
2784
  try {
2785
- metadata = await _chunkUGA5KI4Ajs.runToolExecuteStage.call(void 0,
2785
+ metadata = await _chunkESX3H7Q7js.runToolExecuteStage.call(void 0,
2786
2786
  "tool metadata lookup",
2787
2787
  () => client.getTool(parsed.toolId, { cliInvocationId })
2788
2788
  );
2789
2789
  } catch (error) {
2790
2790
  if (isMissingToolMetadataError(error)) {
2791
- const play = await _chunkUGA5KI4Ajs.runToolExecuteStage.call(void 0,
2791
+ const play = await _chunkESX3H7Q7js.runToolExecuteStage.call(void 0,
2792
2792
  "play alias lookup",
2793
2793
  () => findPlayForToolId(client, parsed.toolId, cliInvocationId)
2794
2794
  );
@@ -2817,7 +2817,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2817
2817
  assertExecutableToolMetadata(parsed.toolId, metadata);
2818
2818
  } catch (error) {
2819
2819
  if (error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2820
- if (wantsJson) _chunkBGXEMTIGjs.printJsonError.call(void 0, error);
2820
+ if (wantsJson) _chunkPQKD5DMTjs.printJsonError.call(void 0, error);
2821
2821
  else console.error(error.message);
2822
2822
  return 2;
2823
2823
  }
@@ -2829,7 +2829,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2829
2829
  metadata = await readMetadata();
2830
2830
  } catch (error) {
2831
2831
  if (error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2832
- if (wantsJson) _chunkBGXEMTIGjs.printJsonError.call(void 0, error);
2832
+ if (wantsJson) _chunkPQKD5DMTjs.printJsonError.call(void 0, error);
2833
2833
  else console.error(error.message);
2834
2834
  return 2;
2835
2835
  }
@@ -2845,7 +2845,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2845
2845
  metadata = await readMetadata();
2846
2846
  } catch (error) {
2847
2847
  if (error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2848
- if (wantsJson) _chunkBGXEMTIGjs.printJsonError.call(void 0, error);
2848
+ if (wantsJson) _chunkPQKD5DMTjs.printJsonError.call(void 0, error);
2849
2849
  else console.error(error.message);
2850
2850
  return 2;
2851
2851
  }
@@ -2871,11 +2871,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2871
2871
  responseIntent,
2872
2872
  ...idempotencyKey ? { idempotencyKey } : {},
2873
2873
  ...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
2874
- searchRef: _chunkXDS26J7Zjs.recentSearchRef.call(void 0, parsed.toolId),
2874
+ searchRef: _chunkMNBIGX6Ojs.recentSearchRef.call(void 0, parsed.toolId),
2875
2875
  cliInvocationId,
2876
- onResponseReceived: _chunkAVQET3NRjs.recordApiResponse,
2876
+ onResponseReceived: _chunk5VSPRRTIjs.recordApiResponse,
2877
2877
  ...tracing ? {
2878
- onServerTiming: (serverTiming) => _chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
2878
+ onServerTiming: (serverTiming) => _chunkVIFLWQXSjs.recordCliTrace.call(void 0, {
2879
2879
  phase: "tool_execute_server_timing",
2880
2880
  cliInvocationId,
2881
2881
  serverTiming,
@@ -2886,13 +2886,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2886
2886
  let rawResponse;
2887
2887
  let successfulCompatibilityResponse;
2888
2888
  try {
2889
- const executeResult = await _chunkUGA5KI4Ajs.runToolExecuteStage.call(void 0,
2889
+ const executeResult = await _chunkESX3H7Q7js.runToolExecuteStage.call(void 0,
2890
2890
  "execute request",
2891
2891
  async () => {
2892
2892
  try {
2893
2893
  if (tracing) {
2894
2894
  submissionStartedAt = performance.now();
2895
- _chunkNXGLJGPBjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2895
+ _chunkVIFLWQXSjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2896
2896
  }
2897
2897
  return await client.executeTool(parsed.toolId, parsed.params, {
2898
2898
  ...executeOptions,
@@ -2902,34 +2902,34 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2902
2902
  } catch (error) {
2903
2903
  if (!(error instanceof _chunkBBTKAASQjs.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
2904
2904
  throw error;
2905
- const baseUrl = _chunkPU42VOBIjs.resolveConfig.call(void 0, ).baseUrl;
2905
+ const baseUrl = _chunkIMLFB66Ajs.resolveConfig.call(void 0, ).baseUrl;
2906
2906
  if (maintenancePolicy !== "off") {
2907
- _chunkL6QAIZNZjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
2907
+ _chunkMYSPQUAOjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
2908
2908
  }
2909
- const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunkUGA5KI4Ajs.runToolExecuteStage.call(void 0,
2909
+ const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunkESX3H7Q7js.runToolExecuteStage.call(void 0,
2910
2910
  "SDK compatibility",
2911
- () => _chunkL6QAIZNZjs.checkSdkCompatibility.call(void 0, baseUrl, {
2911
+ () => _chunkMYSPQUAOjs.checkSdkCompatibility.call(void 0, baseUrl, {
2912
2912
  command: "tools execute",
2913
- skillsVersion: _chunkPU42VOBIjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
2913
+ skillsVersion: _chunkIMLFB66Ajs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
2914
2914
  persistCache: maintenancePolicy !== "off"
2915
2915
  })
2916
2916
  );
2917
2917
  if (compatibility.error) throw compatibility.error;
2918
2918
  metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _46 => _46.readMetadata, 'call', _47 => _47()]), () => ( metadata));
2919
- if (maintenancePolicy !== "off" && await _chunkUGA5KI4Ajs.maybeAutoUpdateAndRelaunch.call(void 0,
2919
+ if (maintenancePolicy !== "off" && await _chunkESX3H7Q7js.maybeAutoUpdateAndRelaunch.call(void 0,
2920
2920
  compatibility.response,
2921
2921
  baseUrl,
2922
2922
  maintenancePolicy
2923
2923
  )) {
2924
2924
  return void 0;
2925
2925
  }
2926
- _chunkL6QAIZNZjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
2926
+ _chunkMYSPQUAOjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
2927
2927
  quietAdvisory: wantsJson
2928
2928
  });
2929
2929
  if (maintenancePolicy !== "off") {
2930
- await _chunkUGA5KI4Ajs.runToolExecuteStage.call(void 0,
2930
+ await _chunkESX3H7Q7js.runToolExecuteStage.call(void 0,
2931
2931
  "agent skills sync",
2932
- () => _chunkL6QAIZNZjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
2932
+ () => _chunkMYSPQUAOjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
2933
2933
  update: _optionalChain([compatibility, 'access', _48 => _48.response, 'optionalAccess', _49 => _49.skills]),
2934
2934
  mode: "detached"
2935
2935
  })
@@ -2938,7 +2938,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2938
2938
  const legacyMetadata = await readMetadata();
2939
2939
  if (tracing) {
2940
2940
  submissionStartedAt = performance.now();
2941
- _chunkNXGLJGPBjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2941
+ _chunkVIFLWQXSjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2942
2942
  }
2943
2943
  return client.executeTool(parsed.toolId, parsed.params, {
2944
2944
  ...executeOptions,
@@ -2961,8 +2961,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2961
2961
  metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
2962
2962
  const updateRequiredBeforeExecution = error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
2963
2963
  if (updateRequiredBeforeExecution && maintenancePolicy !== "off" && compatibility && !compatibility.error) {
2964
- const baseUrl = _chunkPU42VOBIjs.resolveConfig.call(void 0, ).baseUrl;
2965
- if (await _chunkUGA5KI4Ajs.maybeAutoUpdateAndRelaunch.call(void 0,
2964
+ const baseUrl = _chunkIMLFB66Ajs.resolveConfig.call(void 0, ).baseUrl;
2965
+ if (await _chunkESX3H7Q7js.maybeAutoUpdateAndRelaunch.call(void 0,
2966
2966
  compatibility.response,
2967
2967
  baseUrl,
2968
2968
  maintenancePolicy
@@ -2986,7 +2986,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2986
2986
  }
2987
2987
  }
2988
2988
  if (failure instanceof _chunkBBTKAASQjs.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
2989
- if (wantsJson) _chunkBGXEMTIGjs.printJsonError.call(void 0, failure);
2989
+ if (wantsJson) _chunkPQKD5DMTjs.printJsonError.call(void 0, failure);
2990
2990
  else console.error(failure.message);
2991
2991
  return 2;
2992
2992
  }
@@ -3013,9 +3013,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3013
3013
  successfulCompatibilityResponse = _nullishCoalesce(compatibilityResponse, () => ( void 0));
3014
3014
  const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _56 => _56.auto_update]);
3015
3015
  if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _57 => _57.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
3016
- await _chunkUGA5KI4Ajs.maybeAutoUpdateAndRelaunch.call(void 0,
3016
+ await _chunkESX3H7Q7js.maybeAutoUpdateAndRelaunch.call(void 0,
3017
3017
  compatibilityResponse,
3018
- _chunkPU42VOBIjs.resolveConfig.call(void 0, ).baseUrl,
3018
+ _chunkIMLFB66Ajs.resolveConfig.call(void 0, ).baseUrl,
3019
3019
  maintenancePolicy
3020
3020
  );
3021
3021
  }
@@ -3050,7 +3050,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3050
3050
  const { _metadata, ...execution } = rawResponse;
3051
3051
  rawResponse = execution;
3052
3052
  }
3053
- const { listConversion, summary, baseEnvelope } = await _chunkUGA5KI4Ajs.runToolExecuteStage.call(void 0,
3053
+ const { listConversion, summary, baseEnvelope } = await _chunkESX3H7Q7js.runToolExecuteStage.call(void 0,
3054
3054
  "result formatting",
3055
3055
  async () => {
3056
3056
  const listConversion2 = _chunkHGFFYVXNjs.tryConvertToList.call(void 0, rawResponse, {
@@ -3085,9 +3085,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3085
3085
  }
3086
3086
  skillsSyncAttempted = true;
3087
3087
  try {
3088
- await _chunkUGA5KI4Ajs.runToolExecuteStage.call(void 0,
3088
+ await _chunkESX3H7Q7js.runToolExecuteStage.call(void 0,
3089
3089
  "agent skills sync",
3090
- () => _chunkL6QAIZNZjs.syncSdkSkillsIfNeeded.call(void 0, _chunkPU42VOBIjs.resolveConfig.call(void 0, ).baseUrl, {
3090
+ () => _chunkMYSPQUAOjs.syncSdkSkillsIfNeeded.call(void 0, _chunkIMLFB66Ajs.resolveConfig.call(void 0, ).baseUrl, {
3091
3091
  update: deliveredCompatibilityResponse.skills,
3092
3092
  mode: "detached"
3093
3093
  })
@@ -3098,15 +3098,15 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3098
3098
  );
3099
3099
  }
3100
3100
  };
3101
- const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, envelope, {
3101
+ const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkPQKD5DMTjs.printCommandEnvelope.call(void 0, envelope, {
3102
3102
  ...options2,
3103
3103
  json: _nullishCoalesce(options2.json, () => ( wantsJson))
3104
3104
  });
3105
3105
  const printDeliveredJsonEnvelope = async (envelope, options2 = {}) => {
3106
3106
  await syncSkillsForDeliveredOutput();
3107
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
3107
+ _chunkPQKD5DMTjs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
3108
3108
  };
3109
- const delivered = await _chunkUGA5KI4Ajs.runToolExecuteStage.call(void 0, "output delivery", async () => {
3109
+ const delivered = await _chunkESX3H7Q7js.runToolExecuteStage.call(void 0, "output delivery", async () => {
3110
3110
  if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
3111
3111
  await printDeliveredJsonEnvelope(baseEnvelope);
3112
3112
  return true;
@@ -3135,7 +3135,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3135
3135
  `${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
3136
3136
  );
3137
3137
  if (wantsJson) {
3138
- _chunkBGXEMTIGjs.printJsonError.call(void 0, error);
3138
+ _chunkPQKD5DMTjs.printJsonError.call(void 0, error);
3139
3139
  } else {
3140
3140
  console.error(error.message);
3141
3141
  }
@@ -3230,13 +3230,13 @@ inspect: ${inspection.inspect}
3230
3230
  return true;
3231
3231
  });
3232
3232
  if (delivered) {
3233
- await _chunkUGA5KI4Ajs.runToolExecuteStage.call(void 0,
3233
+ await _chunkESX3H7Q7js.runToolExecuteStage.call(void 0,
3234
3234
  "acknowledge delivery",
3235
3235
  () => recovery.acknowledgeDelivery()
3236
3236
  );
3237
3237
  }
3238
3238
  if (delivered && deliveredCompatibilityResponse && deliveredCompatibilityResponse.update_required !== true) {
3239
- _chunkL6QAIZNZjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
3239
+ _chunkMYSPQUAOjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
3240
3240
  quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _60 => _60.auto_update, 'optionalAccess', _61 => _61.should_auto_update]) === true
3241
3241
  });
3242
3242
  }