deepline 0.3.492 → 0.3.494

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 (185) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +11 -5
  2. package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -0
  3. package/dist/bundling-sources/sdk/src/release.ts +2 -2
  4. package/dist/bundling-sources/sdk/src/types.ts +11 -4
  5. package/dist/bundling-sources/shared_libs/monitors/fleets/verdict.ts +25 -9
  6. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +36 -0
  7. package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +5 -4
  8. package/dist/bundling-sources/shared_libs/play-runtime/crustdata-company-identify-batching.ts +162 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-reaper.ts +19 -3
  10. package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-batching-registry.ts +2 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/receipt-sql.ts +17 -23
  12. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +28 -1
  13. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-placement-policy.ts +75 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +20 -0
  15. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +412 -59
  16. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +38 -10
  17. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +19 -11
  18. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-operation.ts +165 -12
  19. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +15 -0
  20. package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-state-machine.ts +358 -0
  21. package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +101 -3
  22. package/dist/cli/{auth-4I6QY5WX.mjs → auth-6X5YXMFN.mjs} +5 -5
  23. package/dist/cli/auth-RWLCLMDY.js +43 -0
  24. package/dist/cli/{billing-2H4GOJZY.js → billing-5F5PZB77.js} +80 -80
  25. package/dist/cli/{billing-4F6L4JSI.mjs → billing-IN74SDSC.mjs} +7 -7
  26. package/dist/cli/{chunk-3RGWTKK3.mjs → chunk-2GEYN3H4.mjs} +89 -3
  27. package/dist/cli/{chunk-JJAHWKJ2.js → chunk-3KVFOKPR.js} +73 -59
  28. package/dist/cli/{chunk-NBL6JMIY.js → chunk-4A5WXQJK.js} +17 -17
  29. package/dist/cli/{chunk-YOCEY4EI.mjs → chunk-4RWH4LRQ.mjs} +5 -5
  30. package/dist/cli/{chunk-OGNIB64W.js → chunk-4ZKZS43N.js} +23 -15
  31. package/dist/cli/{chunk-TKLDKIJU.mjs → chunk-5JPKRDFC.mjs} +7 -5
  32. package/dist/cli/{chunk-3TISK5RQ.js → chunk-5WYH2LAP.js} +6 -6
  33. package/dist/cli/{chunk-MQ2LQOAM.mjs → chunk-65NMOP4T.mjs} +23 -9
  34. package/dist/cli/{chunk-O65HDVA7.mjs → chunk-6DMLWM7L.mjs} +5 -5
  35. package/dist/cli/{chunk-OTUT3XTX.mjs → chunk-6XZR2642.mjs} +8 -7
  36. package/dist/cli/{chunk-Q3CCCTRQ.js → chunk-7B7A36XZ.js} +14 -14
  37. package/dist/cli/{chunk-O3K22ZC7.js → chunk-AARXOBVD.js} +35 -11
  38. package/dist/cli/{chunk-DVGCPOEA.mjs → chunk-BLHQRETG.mjs} +187 -187
  39. package/dist/cli/{chunk-NPZBE64X.js → chunk-BLMB4N63.js} +89 -3
  40. package/dist/cli/{chunk-OTDX4A4W.js → chunk-BNI653WN.js} +21 -21
  41. package/dist/cli/{chunk-E47VAVAR.js → chunk-BU5Y7HOD.js} +5 -5
  42. package/dist/cli/{chunk-CGDUFVNE.mjs → chunk-C5R3UH5V.mjs} +29 -2
  43. package/dist/cli/{chunk-HFEJ7JJT.js → chunk-CAWOSHEC.js} +26 -26
  44. package/dist/cli/{chunk-TVUE4CPW.js → chunk-CK5MA6S6.js} +32 -32
  45. package/dist/cli/{chunk-Y7QCMOGZ.mjs → chunk-DKKAJ3U2.mjs} +6 -6
  46. package/dist/cli/{chunk-ONONSV2Q.mjs → chunk-DVQHG6AM.mjs} +1 -0
  47. package/dist/cli/{chunk-3BRDP4UP.mjs → chunk-EG3OSUBO.mjs} +1 -1
  48. package/dist/cli/{chunk-ZCKUNXXR.mjs → chunk-FAT6CUZK.mjs} +1 -1
  49. package/dist/cli/{chunk-YNWET57Z.js → chunk-GBICEYUA.js} +13 -13
  50. package/dist/cli/{chunk-42Z6VC2Q.js → chunk-GDNQXLBM.js} +2 -2
  51. package/dist/cli/{chunk-SE23YSBK.js → chunk-GLDBMKTV.js} +3 -3
  52. package/dist/cli/{chunk-OKHBAAJG.mjs → chunk-GNSGDIA4.mjs} +2 -2
  53. package/dist/cli/{chunk-W4FEX5ZF.js → chunk-GSCCDGGT.js} +261 -261
  54. package/dist/cli/{chunk-A7ZMG2QZ.mjs → chunk-H46X7YDU.mjs} +35 -11
  55. package/dist/cli/{chunk-3IBKEOL4.js → chunk-HINVMRGQ.js} +4 -4
  56. package/dist/cli/{chunk-HHTVRICE.js → chunk-I42EOZKQ.js} +44 -17
  57. package/dist/cli/{chunk-MPITIXW4.mjs → chunk-IPWYDANJ.mjs} +13 -5
  58. package/dist/cli/{chunk-YVOYZPMY.mjs → chunk-IZJSX3SZ.mjs} +2 -2
  59. package/dist/cli/{chunk-FFOJRD53.mjs → chunk-J2HOVZOE.mjs} +3 -3
  60. package/dist/cli/{chunk-EFFHRXKB.js → chunk-J3UHNUWI.js} +2 -2
  61. package/dist/cli/{chunk-4IP5MLWU.js → chunk-JO5FFSR7.js} +6 -1
  62. package/dist/cli/{chunk-PIC6M4X3.mjs → chunk-KR2XEI5T.mjs} +1 -1
  63. package/dist/cli/{chunk-FTXIJTV2.mjs → chunk-KSHAFYYG.mjs} +2 -2
  64. package/dist/cli/{chunk-6YO4OJPM.mjs → chunk-KVCQL6SP.mjs} +99 -24
  65. package/dist/cli/{chunk-RC366IJS.mjs → chunk-L2P2XRPO.mjs} +38 -6
  66. package/dist/cli/{chunk-R5MP3CIY.mjs → chunk-L4QPBQUX.mjs} +3 -3
  67. package/dist/cli/{chunk-4RB74KJX.js → chunk-L6KA4ENU.js} +47 -15
  68. package/dist/cli/{chunk-MJFVF5AW.mjs → chunk-L6L57RSG.mjs} +2 -2
  69. package/dist/cli/{chunk-F6EQWY4E.mjs → chunk-MWZNMWR2.mjs} +2 -2
  70. package/dist/cli/{chunk-LCCFGSV7.mjs → chunk-ODWTFVE4.mjs} +2 -2
  71. package/dist/cli/{chunk-AUQQVDAB.js → chunk-PKV5CD3W.js} +1 -0
  72. package/dist/cli/{chunk-UUH4GQRL.mjs → chunk-QOEI42IU.mjs} +2 -2
  73. package/dist/cli/{chunk-JHBRJDUC.js → chunk-QSRWBOPV.js} +11 -10
  74. package/dist/cli/{chunk-4OLXMJ2L.js → chunk-RLX5ZFNX.js} +8 -6
  75. package/dist/cli/{chunk-EANFUHRM.mjs → chunk-RPFNIMUO.mjs} +1 -1
  76. package/dist/cli/{chunk-DJOLMS2A.js → chunk-S3XQH7DW.js} +2 -2
  77. package/dist/cli/{chunk-DEJIN4DF.mjs → chunk-SAW3FBCA.mjs} +5 -0
  78. package/dist/cli/{chunk-GDSZWTJK.mjs → chunk-TLQXN4ZZ.mjs} +12 -12
  79. package/dist/cli/{chunk-O2FB42N2.js → chunk-USWLB4KV.js} +234 -234
  80. package/dist/cli/{chunk-BDUFZSUL.js → chunk-VMPM2FKT.js} +8 -8
  81. package/dist/cli/{chunk-4GJIJHRQ.mjs → chunk-WCZBIE5L.mjs} +1 -1
  82. package/dist/cli/{chunk-NF7NUKWF.js → chunk-WP45PUPW.js} +132 -57
  83. package/dist/cli/{chunk-FPLN7PHP.js → chunk-X6HIIHQO.js} +5 -5
  84. package/dist/cli/{chunk-B2JE3HD6.js → chunk-Y4GRL533.js} +3 -3
  85. package/dist/cli/{chunk-ZDTPSVGF.js → chunk-ZZD245Z2.js} +10 -10
  86. package/dist/cli/command-docs.js +2 -2
  87. package/dist/cli/command-docs.mjs +1 -1
  88. package/dist/cli/{csv-JGJNDRSA.js → csv-QD7JJGSP.js} +13 -13
  89. package/dist/cli/{csv-VGXGV7YM.mjs → csv-UBW4ID5D.mjs} +4 -4
  90. package/dist/cli/{db-W52WJ6E5.js → db-AARR3WYD.js} +28 -28
  91. package/dist/cli/{db-OYG27ZBM.mjs → db-QFDXKIVD.mjs} +7 -7
  92. package/dist/cli/describe-OBVIAC2H.mjs +50 -0
  93. package/dist/cli/describe-RYJ6HDYD.js +50 -0
  94. package/dist/cli/describe-core.d.mts +5 -11
  95. package/dist/cli/describe-core.d.ts +5 -11
  96. package/dist/cli/describe-core.js +5 -5
  97. package/dist/cli/describe-core.mjs +4 -4
  98. package/dist/cli/{executions-EVE4KUGL.mjs → executions-IZYUDYTZ.mjs} +7 -7
  99. package/dist/cli/{executions-LAJHZGPY.js → executions-KXY7KMZY.js} +9 -9
  100. package/dist/cli/{feedback-ZABCN7RT.js → feedback-3334HBPD.js} +8 -8
  101. package/dist/cli/{feedback-75QB7KVG.mjs → feedback-IVCVBERN.mjs} +4 -4
  102. package/dist/cli/getting-started.d.mts +12 -10
  103. package/dist/cli/getting-started.d.ts +12 -10
  104. package/dist/cli/getting-started.js +4 -2
  105. package/dist/cli/getting-started.mjs +3 -1
  106. package/dist/cli/git-4VLYFHNU.js +25 -0
  107. package/dist/cli/{git-QIFEYQGY.mjs → git-JHNVET5A.mjs} +5 -5
  108. package/dist/cli/index.js +143 -143
  109. package/dist/cli/index.mjs +43 -43
  110. package/dist/cli/{legacy-noops-2TBIAMCM.js → legacy-noops-DBA32JCV.js} +8 -8
  111. package/dist/cli/{legacy-noops-PNTWBBGY.mjs → legacy-noops-WGVBUOCC.mjs} +5 -5
  112. package/dist/cli/{monitors-UKBOEGBS.js → monitors-GHWZ5AZS.js} +169 -129
  113. package/dist/cli/{monitors-LOHUYJEI.mjs → monitors-ZGANC7JY.mjs} +49 -9
  114. package/dist/cli/{org-JRUKUOUF.mjs → org-CUS42N2T.mjs} +7 -7
  115. package/dist/cli/{org-E7A6QLBW.js → org-S7JWP264.js} +73 -73
  116. package/dist/cli/{pages-K76HA473.mjs → pages-IH56T6L6.mjs} +7 -7
  117. package/dist/cli/{pages-EUDFFLLD.js → pages-QXRZDEJW.js} +18 -18
  118. package/dist/cli/{play-UWHNUJRA.js → play-4C5PYS62.js} +661 -566
  119. package/dist/cli/{play-DG2N66SV.mjs → play-Z65ZFOQH.mjs} +147 -52
  120. package/dist/cli/{providers-RUTTPUZD.mjs → providers-FSZSJX4Z.mjs} +7 -7
  121. package/dist/cli/{providers-DZX6TTC6.js → providers-XYQGYF3O.js} +10 -10
  122. package/dist/cli/{quickstart-RGZZN2YE.mjs → quickstart-DHWVE32I.mjs} +5 -5
  123. package/dist/cli/{quickstart-U4NMD7KX.js → quickstart-ZA25RJT3.js} +13 -13
  124. package/dist/cli/{run-5UNF4FHG.js → run-5MP6LEHM.js} +45 -44
  125. package/dist/cli/{run-MOJWQYFQ.mjs → run-WRPPEPLG.mjs} +30 -29
  126. package/dist/cli/search-4SQFVNTB.js +32 -0
  127. package/dist/cli/{search-5B3ZDU7H.mjs → search-A6NVJPKX.mjs} +8 -8
  128. package/dist/cli/{search-output-QS4IWWHA.mjs → search-output-PAOUMVXY.mjs} +7 -4
  129. package/dist/cli/{search-output-VQWJS3FN.js → search-output-YA6TXWGO.js} +9 -6
  130. package/dist/cli/{secrets-S3PJMEAC.js → secrets-AZYOGH3I.js} +16 -16
  131. package/dist/cli/{secrets-V5XVDBIS.mjs → secrets-ZGF7JOBI.mjs} +7 -7
  132. package/dist/cli/{sessions-Y5QMEZ3D.js → sessions-GCIN5VXT.js} +6 -6
  133. package/dist/cli/{sessions-5V3X24XI.mjs → sessions-RNEAXZPV.mjs} +5 -5
  134. package/dist/cli/{settings-3U6RRO5F.js → settings-LMEZNLBB.js} +80 -80
  135. package/dist/cli/{settings-LHZYY5PT.mjs → settings-NO5KXQJF.mjs} +13 -13
  136. package/dist/cli/{setup-AJLWXYAN.mjs → setup-GCYB4IFS.mjs} +13 -13
  137. package/dist/cli/{setup-MLLIGO2S.js → setup-XKTZPYYH.js} +57 -57
  138. package/dist/cli/{skills-5O2MUWKK.mjs → skills-TY4HHIKH.mjs} +10 -10
  139. package/dist/cli/skills-V4APQA2I.js +36 -0
  140. package/dist/cli/tools-HKQLQ7HT.js +57 -0
  141. package/dist/cli/{tools-PWNMI5CD.mjs → tools-RDTHHYJ3.mjs} +21 -21
  142. package/dist/cli/{update-SXT4QW7S.mjs → update-BRLLTTCS.mjs} +10 -10
  143. package/dist/cli/update-Z4MUAHWM.js +34 -0
  144. package/dist/cli/{workflow-KPRM6ARO.mjs → workflow-F72EVZWM.mjs} +8 -8
  145. package/dist/cli/{workflow-3WTF5IYT.js → workflow-YHA4WE3K.js} +18 -18
  146. package/dist/{client-Cb1ej1Vr.d.ts → client-97yTcdLl.d.ts} +1 -1
  147. package/dist/{client-vWpbLNCB.d.mts → client-CFo9qalW.d.mts} +1 -1
  148. package/dist/{client-core-BmVs6SP0.d.ts → client-core-BRZrY13B.d.ts} +15 -8
  149. package/dist/{client-core-CoBTvsXG.d.mts → client-core-Dl6xgfLq.d.mts} +15 -8
  150. package/dist/{compiler-manifest-BFTwq1HI.d.mts → compiler-manifest-CPEF48NM.d.mts} +91 -0
  151. package/dist/{compiler-manifest-BFTwq1HI.d.ts → compiler-manifest-CPEF48NM.d.ts} +91 -0
  152. package/dist/{errors-c3pMsylw.d.ts → errors-B-PJXveg.d.ts} +1 -1
  153. package/dist/{errors-w31ybrQM.d.mts → errors-BWbPzqwo.d.mts} +1 -1
  154. package/dist/{index-DvNtxucX.d.mts → index-BJ8AA1F9.d.mts} +1 -1
  155. package/dist/{index-CQ-15-QL.d.ts → index-CvVxPpE8.d.ts} +1 -1
  156. package/dist/index.d.mts +7 -7
  157. package/dist/index.d.ts +7 -7
  158. package/dist/index.js +27 -19
  159. package/dist/index.mjs +16 -8
  160. package/dist/install-integrity.json +123 -122
  161. package/dist/plays/bundle-play-file.d.mts +3 -3
  162. package/dist/plays/bundle-play-file.d.ts +3 -3
  163. package/dist/plays/play-description.d.mts +2 -2
  164. package/dist/plays/play-description.d.ts +2 -2
  165. package/dist/plays/run-request.d.mts +2 -2
  166. package/dist/plays/run-request.d.ts +2 -2
  167. package/dist/plays/run-request.js +2 -2
  168. package/dist/plays/run-request.mjs +1 -1
  169. package/dist/release.d.mts +2 -2
  170. package/dist/release.d.ts +2 -2
  171. package/dist/release.js +2 -2
  172. package/dist/release.mjs +1 -1
  173. package/dist/server.d.mts +4 -4
  174. package/dist/server.d.ts +4 -4
  175. package/dist/server.js +6 -6
  176. package/dist/server.mjs +4 -4
  177. package/package.json +1 -1
  178. package/dist/cli/auth-7BCLZU6K.js +0 -43
  179. package/dist/cli/describe-FIXCRO5N.mjs +0 -50
  180. package/dist/cli/describe-G3O6OUBG.js +0 -50
  181. package/dist/cli/git-QBAR46NW.js +0 -25
  182. package/dist/cli/search-3DAEJL6S.js +0 -32
  183. package/dist/cli/skills-BBLIML5M.js +0 -36
  184. package/dist/cli/tools-X5SQXUMM.js +0 -57
  185. package/dist/cli/update-AEJ2ZSZQ.js +0 -34
@@ -2,11 +2,11 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkOGNIB64Wjs = require('./chunk-OGNIB64W.js');
5
+ var _chunk4ZKZS43Njs = require('./chunk-4ZKZS43N.js');
6
6
 
7
7
 
8
8
 
9
- var _chunkJHBRJDUCjs = require('./chunk-JHBRJDUC.js');
9
+ var _chunkQSRWBOPVjs = require('./chunk-QSRWBOPV.js');
10
10
 
11
11
 
12
12
 
@@ -25,10 +25,10 @@ var _chunkJHBRJDUCjs = require('./chunk-JHBRJDUC.js');
25
25
 
26
26
 
27
27
 
28
- var _chunkYNWET57Zjs = require('./chunk-YNWET57Z.js');
28
+ var _chunkGBICEYUAjs = require('./chunk-GBICEYUA.js');
29
29
 
30
30
 
31
- var _chunk4IP5MLWUjs = require('./chunk-4IP5MLWU.js');
31
+ var _chunkJO5FFSR7js = require('./chunk-JO5FFSR7.js');
32
32
 
33
33
 
34
34
  var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
@@ -48,10 +48,10 @@ var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
48
48
  var _chunkHGFFYVXNjs = require('./chunk-HGFFYVXN.js');
49
49
 
50
50
 
51
- var _chunkE47VAVARjs = require('./chunk-E47VAVAR.js');
51
+ var _chunkBU5Y7HODjs = require('./chunk-BU5Y7HOD.js');
52
52
 
53
53
 
54
- var _chunkTVUE4CPWjs = require('./chunk-TVUE4CPW.js');
54
+ var _chunkCK5MA6S6js = require('./chunk-CK5MA6S6.js');
55
55
 
56
56
 
57
57
  var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
@@ -61,18 +61,18 @@ var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
61
61
 
62
62
 
63
63
 
64
- var _chunkOTDX4A4Wjs = require('./chunk-OTDX4A4W.js');
64
+ var _chunkBNI653WNjs = require('./chunk-BNI653WN.js');
65
65
 
66
66
 
67
67
 
68
68
 
69
- var _chunkEFFHRXKBjs = require('./chunk-EFFHRXKB.js');
69
+ var _chunkJ3UHNUWIjs = require('./chunk-J3UHNUWI.js');
70
70
 
71
71
 
72
72
 
73
73
 
74
74
 
75
- var _chunkO2FB42N2js = require('./chunk-O2FB42N2.js');
75
+ var _chunkUSWLB4KVjs = require('./chunk-USWLB4KV.js');
76
76
 
77
77
 
78
78
 
@@ -80,12 +80,12 @@ var _chunkO2FB42N2js = require('./chunk-O2FB42N2.js');
80
80
 
81
81
 
82
82
 
83
- var _chunkZDTPSVGFjs = require('./chunk-ZDTPSVGF.js');
83
+ var _chunkZZD245Z2js = require('./chunk-ZZD245Z2.js');
84
84
 
85
85
 
86
86
 
87
87
 
88
- var _chunkB2JE3HD6js = require('./chunk-B2JE3HD6.js');
88
+ var _chunkY4GRL533js = require('./chunk-Y4GRL533.js');
89
89
 
90
90
 
91
91
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
@@ -191,10 +191,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
191
191
  }
192
192
  };
193
193
  function pendingToolExecutionPath(input) {
194
- const config = _chunkB2JE3HD6js.resolveConfig.call(void 0, );
194
+ const config = _chunkY4GRL533js.resolveConfig.call(void 0, );
195
195
  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");
196
196
  return _path.join.call(void 0,
197
- _chunkB2JE3HD6js.sdkCliStateDirPath.call(void 0, config.baseUrl),
197
+ _chunkY4GRL533js.sdkCliStateDirPath.call(void 0, config.baseUrl),
198
198
  `${PENDING_PREFIX}${fingerprint}.json`
199
199
  );
200
200
  }
@@ -346,13 +346,13 @@ var TOOL_COMMAND_TEMPLATES = {
346
346
  execute: "deepline run <toolId> --input '{...}'"
347
347
  };
348
348
  function toListedTool(tool) {
349
- if (_chunkYNWET57Zjs.isPlayLikeTool.call(void 0, tool)) {
349
+ if (_chunkGBICEYUAjs.isPlayLikeTool.call(void 0, tool)) {
350
350
  return {
351
351
  ...tool,
352
352
  description: listedToolDescription(tool),
353
353
  id: tool.toolId,
354
354
  type: "play",
355
- executeCommand: _chunkYNWET57Zjs.playRunCommandForTool.call(void 0, tool, tool.toolId)
355
+ executeCommand: _chunkGBICEYUAjs.playRunCommandForTool.call(void 0, tool, tool.toolId)
356
356
  };
357
357
  }
358
358
  return {
@@ -434,16 +434,16 @@ function firstSentence(text) {
434
434
  return (match ? match[0] : clean).trim();
435
435
  }
436
436
  function requiredInputIds(tool) {
437
- const inputSchema = _chunkYNWET57Zjs.recordField.call(void 0,
437
+ const inputSchema = _chunkGBICEYUAjs.recordField.call(void 0,
438
438
  tool,
439
439
  "inputSchema",
440
440
  "input_schema"
441
441
  );
442
- return _chunkYNWET57Zjs.toolInputFieldsForDisplay.call(void 0, inputSchema).filter((field) => field.required === true).map((field) => String(_nullishCoalesce(field.name, () => ( "")))).filter(Boolean);
442
+ return _chunkGBICEYUAjs.toolInputFieldsForDisplay.call(void 0, inputSchema).filter((field) => field.required === true).map((field) => String(_nullishCoalesce(field.name, () => ( "")))).filter(Boolean);
443
443
  }
444
444
  function notConnectedSuffix(tool) {
445
445
  const record = tool;
446
- const status = _chunkYNWET57Zjs.stringField.call(void 0, record, "credentialStatus", "credential_status");
446
+ const status = _chunkGBICEYUAjs.stringField.call(void 0, record, "credentialStatus", "credential_status");
447
447
  const connected = record.connected;
448
448
  const message = toolConnectionStatusMessage({
449
449
  connected: connected === false ? false : void 0,
@@ -452,18 +452,18 @@ function notConnectedSuffix(tool) {
452
452
  return message ? ` - \u26A0 ${message}` : "";
453
453
  }
454
454
  function shortPricingHint(tool) {
455
- const pricing = _chunkYNWET57Zjs.recordField.call(void 0,
455
+ const pricing = _chunkGBICEYUAjs.recordField.call(void 0,
456
456
  tool,
457
457
  "pricing"
458
458
  );
459
459
  const credits = numberField(pricing, "creditsPerUnit", "credits_per_unit");
460
- const unit = _chunkYNWET57Zjs.stringField.call(void 0, pricing, "unit");
460
+ const unit = _chunkGBICEYUAjs.stringField.call(void 0, pricing, "unit");
461
461
  if (credits !== null) {
462
462
  return `${formatDecimal(credits)} cr/${unit || "unit"}`;
463
463
  }
464
- const summary = _chunkYNWET57Zjs.stringField.call(void 0, pricing, "summary");
464
+ const summary = _chunkGBICEYUAjs.stringField.call(void 0, pricing, "summary");
465
465
  if (summary) return summary;
466
- const displayText = _chunkYNWET57Zjs.stringField.call(void 0, pricing, "displayText", "display_text");
466
+ const displayText = _chunkGBICEYUAjs.stringField.call(void 0, pricing, "displayText", "display_text");
467
467
  return displayText || null;
468
468
  }
469
469
  function aggregateCategorySummaries(tools) {
@@ -507,13 +507,13 @@ function categoryEnumerationRender(summaries) {
507
507
  };
508
508
  }
509
509
  async function listToolCategories(emitJson, compact) {
510
- const client = new (0, _chunkE47VAVARjs.DeeplineClient)();
510
+ const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
511
511
  if (!emitJson) {
512
512
  const summaries2 = (await client.listToolCategories()).map((category) => ({
513
513
  ...category,
514
514
  description: describeToolCategory(category.name)
515
515
  }));
516
- _chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
516
+ _chunkZZD245Z2js.printCommandEnvelope.call(void 0,
517
517
  { categories: summaries2, render: categoryEnumerationRender(summaries2) },
518
518
  { json: false }
519
519
  );
@@ -523,7 +523,7 @@ async function listToolCategories(emitJson, compact) {
523
523
  const items = rawTools.map(toListedTool);
524
524
  const summaries = aggregateCategorySummaries(rawTools);
525
525
  const outputItems = compact ? items.map(compactTool) : items;
526
- _chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
526
+ _chunkZZD245Z2js.printCommandEnvelope.call(void 0,
527
527
  {
528
528
  tools: outputItems,
529
529
  count: outputItems.length,
@@ -542,7 +542,7 @@ function unknownCategoryError(category, summaries, emitJson) {
542
542
  const known = summaries.map((item) => item.name);
543
543
  const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
544
544
  if (emitJson) {
545
- _chunkZDTPSVGFjs.printJson.call(void 0, {
545
+ _chunkZZD245Z2js.printJson.call(void 0, {
546
546
  ok: false,
547
547
  exitCode: 4,
548
548
  code: "TOOL_CATEGORY_NOT_FOUND",
@@ -556,13 +556,13 @@ function unknownCategoryError(category, summaries, emitJson) {
556
556
  const render = categoryEnumerationRender(summaries);
557
557
  console.error(message);
558
558
  console.error("");
559
- console.error(_chunkZDTPSVGFjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
559
+ console.error(_chunkZZD245Z2js.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
560
560
  console.error("");
561
561
  console.error(`Valid categories: ${known.join(", ")}`);
562
562
  return 4;
563
563
  }
564
564
  async function listToolsInCategory(category, emitJson) {
565
- const client = new (0, _chunkE47VAVARjs.DeeplineClient)();
565
+ const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
566
566
  const { tools: rawTools, categories } = await client.listToolsInCategory(category);
567
567
  const summaries = categories.map((item) => ({
568
568
  ...item,
@@ -598,7 +598,7 @@ async function listToolsInCategory(category, emitJson) {
598
598
  }
599
599
  ]
600
600
  };
601
- _chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
601
+ _chunkZZD245Z2js.printCommandEnvelope.call(void 0,
602
602
  {
603
603
  category,
604
604
  total: rows.length,
@@ -611,7 +611,7 @@ async function listToolsInCategory(category, emitJson) {
611
611
  return 0;
612
612
  }
613
613
  async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
614
- const client = new (0, _chunkE47VAVARjs.DeeplineClient)();
614
+ const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
615
615
  const items = (await client.listTools({
616
616
  categories: requestedCategories.join(","),
617
617
  compact
@@ -640,7 +640,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
640
640
  ]
641
641
  };
642
642
  const outputItems = compact ? items.map(compactTool) : items;
643
- _chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
643
+ _chunkZZD245Z2js.printCommandEnvelope.call(void 0,
644
644
  {
645
645
  tools: outputItems,
646
646
  count: outputItems.length,
@@ -659,13 +659,13 @@ async function listTools(category, options = {}) {
659
659
  const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
660
660
  const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
661
661
  const compact = options.compact !== false;
662
- const emitJson = options.json === true || _chunkZDTPSVGFjs.shouldEmitJson.call(void 0, );
662
+ const emitJson = options.json === true || _chunkZZD245Z2js.shouldEmitJson.call(void 0, );
663
663
  if (positional && flagCategories.length > 0) {
664
664
  const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
665
665
  if (!flagIsSameSingle) {
666
666
  const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
667
667
  if (emitJson) {
668
- _chunkZDTPSVGFjs.printJson.call(void 0, {
668
+ _chunkZZD245Z2js.printJson.call(void 0, {
669
669
  ok: false,
670
670
  exitCode: 2,
671
671
  code: "TOOL_LIST_CATEGORY_CONFLICT",
@@ -692,7 +692,7 @@ async function grepTools(queryInput, options = {}) {
692
692
  console.error("Usage: deepline tools grep <query> [--json]");
693
693
  return 1;
694
694
  }
695
- const client = new (0, _chunkE47VAVARjs.DeeplineClient)();
695
+ const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
696
696
  const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
697
697
  const mode = _nullishCoalesce(options.mode, () => ( "all"));
698
698
  const jsonOutput = options.json === true;
@@ -716,7 +716,7 @@ async function grepTools(queryInput, options = {}) {
716
716
  query,
717
717
  mode
718
718
  }) : null;
719
- _chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
719
+ _chunkZZD245Z2js.printCommandEnvelope.call(void 0,
720
720
  {
721
721
  tools: outputTools,
722
722
  count: outputTools.length,
@@ -734,7 +734,7 @@ async function grepTools(queryInput, options = {}) {
734
734
  } : {},
735
735
  commandTemplates: TOOL_COMMAND_TEMPLATES
736
736
  },
737
- { json: options.json || _chunkZDTPSVGFjs.shouldEmitJson.call(void 0, ) }
737
+ { json: options.json || _chunkZZD245Z2js.shouldEmitJson.call(void 0, ) }
738
738
  );
739
739
  return 0;
740
740
  }
@@ -789,8 +789,8 @@ function printPlayAliasToolError(toolId, play) {
789
789
  console.error(playAliasToolErrorMessage(toolId, play));
790
790
  }
791
791
  function playLikeToolExecuteErrorMessage(toolId, tool) {
792
- const playReference = tool ? _chunkYNWET57Zjs.playReferenceForTool.call(void 0, tool) : null;
793
- const nextStep = playReference ? `Use: deepline run ${playReference} --input '{...}'` : `Find the maintained workflow with: ${_chunkYNWET57Zjs.playSearchCommandForToolId.call(void 0, toolId)}`;
792
+ const playReference = tool ? _chunkGBICEYUAjs.playReferenceForTool.call(void 0, tool) : null;
793
+ const nextStep = playReference ? `Use: deepline run ${playReference} --input '{...}'` : `Find the maintained workflow with: ${_chunkGBICEYUAjs.playSearchCommandForToolId.call(void 0, toolId)}`;
794
794
  return [
795
795
  `${toolId} is a workflow/play entry, not an atomic provider tool.`,
796
796
  nextStep,
@@ -845,7 +845,7 @@ Output:
845
845
  if (options.preset !== void 0 && (options.scopes !== void 0 || options.optionalScopes !== void 0))
846
846
  throw new Error("Use --preset or individual scopes, not both.");
847
847
  const splitScopes = (value) => value.split(",").map((scope) => scope.trim()).filter(Boolean);
848
- const result2 = await new (0, _chunkE47VAVARjs.DeeplineClient)().startIntegrationOAuth(
848
+ const result2 = await new (0, _chunkBU5Y7HODjs.DeeplineClient)().startIntegrationOAuth(
849
849
  provider,
850
850
  {
851
851
  ...options.preset !== void 0 ? { preset: options.preset } : {},
@@ -857,7 +857,7 @@ Output:
857
857
  throw new Error(
858
858
  "The API did not return an OAuth authorization URL."
859
859
  );
860
- if (_chunkZDTPSVGFjs.shouldEmitJson.call(void 0, options.json))
860
+ if (_chunkZZD245Z2js.shouldEmitJson.call(void 0, options.json))
861
861
  console.log(
862
862
  JSON.stringify({ provider, redirect_url: result2.redirect_url })
863
863
  );
@@ -883,7 +883,7 @@ Output:
883
883
  "--credentials-file must contain a nonempty JSON object of string credential values."
884
884
  );
885
885
  }
886
- const result = await new (0, _chunkE47VAVARjs.DeeplineClient)().setIntegrationCredentials(
886
+ const result = await new (0, _chunkBU5Y7HODjs.DeeplineClient)().setIntegrationCredentials(
887
887
  provider,
888
888
  credentials
889
889
  );
@@ -893,7 +893,7 @@ Output:
893
893
  );
894
894
  }
895
895
  const confirmation = { provider, credential_saved: true };
896
- if (_chunkZDTPSVGFjs.shouldEmitJson.call(void 0, options.json))
896
+ if (_chunkZZD245Z2js.shouldEmitJson.call(void 0, options.json))
897
897
  console.log(JSON.stringify(confirmation));
898
898
  else
899
899
  console.log(
@@ -933,7 +933,7 @@ Examples:
933
933
  json: Boolean(options.json)
934
934
  });
935
935
  });
936
- _chunkJHBRJDUCjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
936
+ _chunkQSRWBOPVjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
937
937
  tools.command("grep <query>").description(
938
938
  "Regex grep over tool ids, descriptions, categories, and input fields."
939
939
  ).addHelpText(
@@ -968,7 +968,7 @@ Examples:
968
968
  });
969
969
  const addToolMetadataCommand = (command) => {
970
970
  let compatibilityMetadata;
971
- _chunkOTDX4A4Wjs.registerCompatibilityCatalog.call(void 0, command, () => ({
971
+ _chunkBNI653WNjs.registerCompatibilityCatalog.call(void 0, command, () => ({
972
972
  toolId: command.args[0],
973
973
  acceptMetadata: (metadata) => {
974
974
  compatibilityMetadata = metadata;
@@ -1038,7 +1038,7 @@ Examples:
1038
1038
  process.exitCode = await narrowView();
1039
1039
  return;
1040
1040
  }
1041
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-G3O6OUBG.js")));
1041
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-RYJ6HDYD.js")));
1042
1042
  process.exitCode = await describeAnything(
1043
1043
  toolId,
1044
1044
  {
@@ -1053,7 +1053,7 @@ Examples:
1053
1053
  });
1054
1054
  };
1055
1055
  addToolMetadataCommand(
1056
- _chunkOGNIB64Wjs.addDescribeOptions.call(void 0,
1056
+ _chunk4ZKZS43Njs.addDescribeOptions.call(void 0,
1057
1057
  tools.command("describe <toolId>", { hidden: true }).alias("get"),
1058
1058
  { json: false }
1059
1059
  )
@@ -1122,7 +1122,7 @@ Examples:
1122
1122
  options,
1123
1123
  void 0,
1124
1124
  true,
1125
- _chunkEFFHRXKBjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
1125
+ _chunkJ3UHNUWIjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
1126
1126
  );
1127
1127
  }
1128
1128
  );
@@ -1130,13 +1130,13 @@ Examples:
1130
1130
  function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1131
1131
  let metadata;
1132
1132
  const startedAt = performance.now();
1133
- const baseUrl = _chunkB2JE3HD6js.resolveConfig.call(void 0, ).baseUrl;
1134
- _chunkEFFHRXKBjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
1135
- const result = _chunkOTDX4A4Wjs.runToolExecuteStage.call(void 0,
1133
+ const baseUrl = _chunkY4GRL533js.resolveConfig.call(void 0, ).baseUrl;
1134
+ _chunkJ3UHNUWIjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
1135
+ const result = _chunkBNI653WNjs.runToolExecuteStage.call(void 0,
1136
1136
  "SDK compatibility",
1137
- () => _chunkO2FB42N2js.checkSdkCompatibility.call(void 0, baseUrl, {
1137
+ () => _chunkUSWLB4KVjs.checkSdkCompatibility.call(void 0, baseUrl, {
1138
1138
  command: "tools execute",
1139
- skillsVersion: _chunkB2JE3HD6js.readSdkSkillsLocalVersion.call(void 0, baseUrl),
1139
+ skillsVersion: _chunkY4GRL533js.readSdkSkillsLocalVersion.call(void 0, baseUrl),
1140
1140
  persistCache: false,
1141
1141
  timeoutMs: TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS,
1142
1142
  catalog: {
@@ -1150,7 +1150,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1150
1150
  })
1151
1151
  ).then(
1152
1152
  (compatibility) => {
1153
- _chunkEFFHRXKBjs.recordCliTrace.call(void 0, {
1153
+ _chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
1154
1154
  phase: "cli.tool_execute_compatibility_ready",
1155
1155
  ms: performance.now() - startedAt,
1156
1156
  ok: compatibility.error === null,
@@ -1159,7 +1159,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1159
1159
  return compatibility;
1160
1160
  },
1161
1161
  (error) => {
1162
- _chunkEFFHRXKBjs.recordCliTrace.call(void 0, {
1162
+ _chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
1163
1163
  phase: "cli.tool_execute_compatibility_ready",
1164
1164
  ms: performance.now() - startedAt,
1165
1165
  ok: false
@@ -1174,7 +1174,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1174
1174
  console.error("Usage: deepline tools describe <toolId> [--json]");
1175
1175
  return 1;
1176
1176
  }
1177
- const client = new (0, _chunkE47VAVARjs.DeeplineClient)();
1177
+ const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
1178
1178
  let tool;
1179
1179
  try {
1180
1180
  tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
@@ -1228,12 +1228,12 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1228
1228
  const lines = toolPricingOnlyLines(tool, toolId);
1229
1229
  if (inferenceQuote)
1230
1230
  lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
1231
- _chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
1231
+ _chunkZZD245Z2js.printCommandEnvelope.call(void 0,
1232
1232
  {
1233
1233
  toolId: String(tool.toolId || toolId),
1234
1234
  cost: _chunkXK5DMLZEjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
1235
1235
  ...modelDescription ? { modelOptions: modelDescription } : {},
1236
- ..._chunkYNWET57Zjs.isMonitorTypeTool.call(void 0, tool) ? { pricing: _chunkYNWET57Zjs.recordField.call(void 0, tool, "pricing") } : {},
1236
+ ..._chunkGBICEYUAjs.isMonitorTypeTool.call(void 0, tool) ? { pricing: _chunkGBICEYUAjs.recordField.call(void 0, tool, "pricing") } : {},
1237
1237
  ...inferenceQuote ? { inferenceQuote } : {}
1238
1238
  },
1239
1239
  {
@@ -1244,14 +1244,14 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1244
1244
  );
1245
1245
  return 0;
1246
1246
  }
1247
- if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !_chunkYNWET57Zjs.isMonitorTypeTool.call(void 0, tool) && !_chunkYNWET57Zjs.isPlayLikeTool.call(void 0, tool) && (options.json || options.contractJson)) {
1248
- const contract = _chunkYNWET57Zjs.toolContractJsonForDescribe.call(void 0,
1247
+ if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !_chunkGBICEYUAjs.isMonitorTypeTool.call(void 0, tool) && !_chunkGBICEYUAjs.isPlayLikeTool.call(void 0, tool) && (options.json || options.contractJson)) {
1248
+ const contract = _chunkGBICEYUAjs.toolContractJsonForDescribe.call(void 0,
1249
1249
  tool,
1250
1250
  toolId,
1251
1251
  void 0,
1252
1252
  seedToolListScript
1253
1253
  );
1254
- _chunkZDTPSVGFjs.printCompactJson.call(void 0, {
1254
+ _chunkZZD245Z2js.printCompactJson.call(void 0, {
1255
1255
  toolId: contract.toolId,
1256
1256
  ...options.schemaOnly ? {
1257
1257
  inputSchema: contract.inputSchema,
@@ -1274,8 +1274,8 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1274
1274
  return 0;
1275
1275
  }
1276
1276
  if (options.contractJson) {
1277
- _chunkZDTPSVGFjs.printCompactJson.call(void 0, {
1278
- ..._chunkYNWET57Zjs.toolContractJsonForDescribe.call(void 0,
1277
+ _chunkZZD245Z2js.printCompactJson.call(void 0, {
1278
+ ..._chunkGBICEYUAjs.toolContractJsonForDescribe.call(void 0,
1279
1279
  tool,
1280
1280
  toolId,
1281
1281
  void 0,
@@ -1288,8 +1288,8 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1288
1288
  }
1289
1289
  const emitJson = options.json === true;
1290
1290
  if (emitJson) {
1291
- _chunkZDTPSVGFjs.printCompactJson.call(void 0, {
1292
- ..._chunkYNWET57Zjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
1291
+ _chunkZZD245Z2js.printCompactJson.call(void 0, {
1292
+ ..._chunkGBICEYUAjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
1293
1293
  ...modelDescription ? { modelOptions: modelDescription } : {},
1294
1294
  ...inferenceQuote ? { inferenceQuote } : {}
1295
1295
  });
@@ -1314,7 +1314,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1314
1314
  printCompactToolContract(tool, toolId);
1315
1315
  if (modelDescription) {
1316
1316
  process.stdout.write(`
1317
- ${_chunkYNWET57Zjs.formatModelDescription.call(void 0, modelDescription)}`);
1317
+ ${_chunkGBICEYUAjs.formatModelDescription.call(void 0, modelDescription)}`);
1318
1318
  }
1319
1319
  if (inferenceQuote) printInferenceQuoteSummary(inferenceQuote);
1320
1320
  return 0;
@@ -1322,7 +1322,7 @@ ${_chunkYNWET57Zjs.formatModelDescription.call(void 0, modelDescription)}`);
1322
1322
  printCompactToolContract(tool, toolId);
1323
1323
  if (modelDescription) {
1324
1324
  process.stdout.write(`
1325
- ${_chunkYNWET57Zjs.formatModelDescription.call(void 0, modelDescription)}`);
1325
+ ${_chunkGBICEYUAjs.formatModelDescription.call(void 0, modelDescription)}`);
1326
1326
  }
1327
1327
  if (inferenceQuote) printInferenceQuoteSummary(inferenceQuote);
1328
1328
  return 0;
@@ -1339,10 +1339,10 @@ function printInferenceQuoteSummary(quote) {
1339
1339
  for (const line of inferenceQuoteSummaryLines(quote)) console.log(line);
1340
1340
  }
1341
1341
  function printMonitorTypeFilters(tool) {
1342
- const schema = _chunkYNWET57Zjs.recordField.call(void 0, tool, "payload_schema", "payloadSchema");
1343
- const properties = _chunkYNWET57Zjs.recordField.call(void 0, schema, "properties");
1342
+ const schema = _chunkGBICEYUAjs.recordField.call(void 0, tool, "payload_schema", "payloadSchema");
1343
+ const properties = _chunkGBICEYUAjs.recordField.call(void 0, schema, "properties");
1344
1344
  const required = new Set(
1345
- _chunkYNWET57Zjs.arrayField.call(void 0, schema, "required").filter(
1345
+ _chunkGBICEYUAjs.arrayField.call(void 0, schema, "required").filter(
1346
1346
  (v) => typeof v === "string"
1347
1347
  )
1348
1348
  );
@@ -1353,24 +1353,24 @@ function printMonitorTypeFilters(tool) {
1353
1353
  }
1354
1354
  console.log("Deploy filters (set in the monitor payload):");
1355
1355
  for (const name of names) {
1356
- const field = _chunkYNWET57Zjs.isRecord.call(void 0, properties[name]) ? properties[name] : {};
1356
+ const field = _chunkGBICEYUAjs.isRecord.call(void 0, properties[name]) ? properties[name] : {};
1357
1357
  const star = required.has(name) ? "*" : "";
1358
- const enumVals = _chunkYNWET57Zjs.arrayField.call(void 0, field, "enum").filter(
1358
+ const enumVals = _chunkGBICEYUAjs.arrayField.call(void 0, field, "enum").filter(
1359
1359
  (v) => typeof v === "string"
1360
1360
  );
1361
- const type = enumVals.length ? `one of [${enumVals.join(", ")}]` : _chunkYNWET57Zjs.stringField.call(void 0, field, "type") || "string";
1362
- const desc = _chunkYNWET57Zjs.stringField.call(void 0, field, "description");
1361
+ const type = enumVals.length ? `one of [${enumVals.join(", ")}]` : _chunkGBICEYUAjs.stringField.call(void 0, field, "type") || "string";
1362
+ const desc = _chunkGBICEYUAjs.stringField.call(void 0, field, "description");
1363
1363
  console.log(`- ${name}${star}: ${type}${desc ? ` - ${desc}` : ""}`);
1364
1364
  }
1365
1365
  }
1366
1366
  function printMonitorTypeFilterExamples(tool) {
1367
- const documentation = _chunkYNWET57Zjs.recordField.call(void 0, tool, "documentation");
1368
- const fields = _chunkYNWET57Zjs.recordField.call(void 0, documentation, "fields");
1367
+ const documentation = _chunkGBICEYUAjs.recordField.call(void 0, tool, "documentation");
1368
+ const fields = _chunkGBICEYUAjs.recordField.call(void 0, documentation, "fields");
1369
1369
  const examples = Object.entries(fields).flatMap(([name, rawField]) => {
1370
- const grammar = _chunkYNWET57Zjs.recordField.call(void 0, _chunkYNWET57Zjs.isRecord.call(void 0, rawField) ? rawField : {}, "grammar");
1371
- const example = _chunkYNWET57Zjs.stringField.call(void 0, grammar, "example");
1370
+ const grammar = _chunkGBICEYUAjs.recordField.call(void 0, _chunkGBICEYUAjs.isRecord.call(void 0, rawField) ? rawField : {}, "grammar");
1371
+ const example = _chunkGBICEYUAjs.stringField.call(void 0, grammar, "example");
1372
1372
  const values = [
1373
- ..._chunkYNWET57Zjs.arrayField.call(void 0, grammar, "examples").filter(
1373
+ ..._chunkGBICEYUAjs.arrayField.call(void 0, grammar, "examples").filter(
1374
1374
  (value) => typeof value === "string" && Boolean(value)
1375
1375
  ),
1376
1376
  ...example ? [example] : []
@@ -1385,21 +1385,21 @@ function printMonitorTypeFilterExamples(tool) {
1385
1385
  }
1386
1386
  }
1387
1387
  function printMonitorTypeStreams(tool) {
1388
- const streams = _chunkYNWET57Zjs.arrayField.call(void 0, tool, "streams", "output_streams").filter(
1389
- _chunkYNWET57Zjs.isRecord
1388
+ const streams = _chunkGBICEYUAjs.arrayField.call(void 0, tool, "streams", "output_streams").filter(
1389
+ _chunkGBICEYUAjs.isRecord
1390
1390
  );
1391
1391
  if (!streams.length) return;
1392
1392
  console.log("");
1393
1393
  console.log("Filter columns (a play's sqlListeners.where, per stream):");
1394
1394
  for (const stream of streams) {
1395
- const name = _chunkYNWET57Zjs.stringField.call(void 0, stream, "stream");
1396
- const cols = _chunkYNWET57Zjs.arrayField.call(void 0, stream, "columns").filter(_chunkYNWET57Zjs.isRecord).map((col) => _chunkYNWET57Zjs.stringField.call(void 0, col, "name")).filter(Boolean);
1395
+ const name = _chunkGBICEYUAjs.stringField.call(void 0, stream, "stream");
1396
+ const cols = _chunkGBICEYUAjs.arrayField.call(void 0, stream, "columns").filter(_chunkGBICEYUAjs.isRecord).map((col) => _chunkGBICEYUAjs.stringField.call(void 0, col, "name")).filter(Boolean);
1397
1397
  console.log(`- ${name}: ${cols.join(", ")}`);
1398
1398
  }
1399
1399
  }
1400
1400
  function monitorTypePricingLines(tool) {
1401
- const pricing = _chunkYNWET57Zjs.recordField.call(void 0, tool, "pricing");
1402
- const byType = _chunkYNWET57Zjs.recordField.call(void 0,
1401
+ const pricing = _chunkGBICEYUAjs.recordField.call(void 0, tool, "pricing");
1402
+ const byType = _chunkGBICEYUAjs.recordField.call(void 0,
1403
1403
  pricing,
1404
1404
  "pricing_by_radar_type",
1405
1405
  "pricingByRadarType"
@@ -1410,9 +1410,9 @@ function monitorTypePricingLines(tool) {
1410
1410
  }
1411
1411
  const lines = ["Pricing (Deepline credits per accepted event):"];
1412
1412
  for (const key of keys) {
1413
- const entry = _chunkYNWET57Zjs.isRecord.call(void 0, byType[key]) ? byType[key] : {};
1413
+ const entry = _chunkGBICEYUAjs.isRecord.call(void 0, byType[key]) ? byType[key] : {};
1414
1414
  const credits = numberField(entry, "deepline_credits", "deeplineCredits");
1415
- const display = _chunkYNWET57Zjs.stringField.call(void 0, entry, "display");
1415
+ const display = _chunkGBICEYUAjs.stringField.call(void 0, entry, "display");
1416
1416
  const shown = display || (credits !== null ? `${formatDecimal(credits)} credits/event` : "not listed");
1417
1417
  lines.push(`- ${key}: ${shown}`);
1418
1418
  }
@@ -1422,20 +1422,20 @@ function printMonitorTypePricing(tool) {
1422
1422
  for (const line of monitorTypePricingLines(tool)) console.log(line);
1423
1423
  }
1424
1424
  function printMonitorTypeDeploy(tool) {
1425
- const deploy = _chunkYNWET57Zjs.recordField.call(void 0, tool, "deploy");
1426
- const toolId = _chunkYNWET57Zjs.stringField.call(void 0, tool, "toolId");
1427
- const example = _chunkYNWET57Zjs.stringField.call(void 0, deploy, "example") || `deepline monitors deploy '{"key":"...","tool":"${toolId}","payload":{...}}'`;
1425
+ const deploy = _chunkGBICEYUAjs.recordField.call(void 0, tool, "deploy");
1426
+ const toolId = _chunkGBICEYUAjs.stringField.call(void 0, tool, "toolId");
1427
+ const example = _chunkGBICEYUAjs.stringField.call(void 0, deploy, "example") || `deepline monitors deploy '{"key":"...","tool":"${toolId}","payload":{...}}'`;
1428
1428
  console.log("Deploy (a monitor type is deployed, not executed):");
1429
1429
  console.log(` ${example}`);
1430
1430
  }
1431
1431
  function printMonitorTypeContract(tool, requestedToolId) {
1432
- const toolId = _chunkYNWET57Zjs.stringField.call(void 0, tool, "toolId") || requestedToolId;
1432
+ const toolId = _chunkGBICEYUAjs.stringField.call(void 0, tool, "toolId") || requestedToolId;
1433
1433
  console.log(toolId);
1434
- const displayName = _chunkYNWET57Zjs.stringField.call(void 0, tool, "displayName");
1434
+ const displayName = _chunkGBICEYUAjs.stringField.call(void 0, tool, "displayName");
1435
1435
  if (displayName) console.log(`Best for: ${displayName}`);
1436
- const description = _chunkYNWET57Zjs.stringField.call(void 0, tool, "description");
1436
+ const description = _chunkGBICEYUAjs.stringField.call(void 0, tool, "description");
1437
1437
  if (description) console.log(`Description: ${description}`);
1438
- const categories = _chunkYNWET57Zjs.arrayField.call(void 0, tool, "categories").filter(
1438
+ const categories = _chunkGBICEYUAjs.arrayField.call(void 0, tool, "categories").filter(
1439
1439
  (v) => typeof v === "string"
1440
1440
  );
1441
1441
  if (categories.length) console.log(`Tags: ${categories.join(", ")}`);
@@ -1455,31 +1455,31 @@ function printMonitorTypeContract(tool, requestedToolId) {
1455
1455
  console.log(`More: deepline describe ${toolId}`);
1456
1456
  }
1457
1457
  function toolGuidanceLines(guidance) {
1458
- const record = _chunkYNWET57Zjs.isRecord.call(void 0, guidance) ? guidance : {};
1459
- const toolGuidance = _chunkYNWET57Zjs.stringField.call(void 0, record, "tool");
1460
- const providerGuidance = _chunkYNWET57Zjs.stringField.call(void 0, record, "provider");
1458
+ const record = _chunkGBICEYUAjs.isRecord.call(void 0, guidance) ? guidance : {};
1459
+ const toolGuidance = _chunkGBICEYUAjs.stringField.call(void 0, record, "tool");
1460
+ const providerGuidance = _chunkGBICEYUAjs.stringField.call(void 0, record, "provider");
1461
1461
  return [
1462
1462
  ...toolGuidance ? [`- This tool: ${toolGuidance}`] : [],
1463
1463
  ...providerGuidance ? [`- Provider: ${providerGuidance}`] : []
1464
1464
  ];
1465
1465
  }
1466
1466
  function printCompactToolContract(tool, requestedToolId) {
1467
- if (_chunkYNWET57Zjs.isMonitorTypeTool.call(void 0, tool)) {
1467
+ if (_chunkGBICEYUAjs.isMonitorTypeTool.call(void 0, tool)) {
1468
1468
  printMonitorTypeContract(tool, requestedToolId);
1469
1469
  return;
1470
1470
  }
1471
- const contract = _chunkYNWET57Zjs.toolContractJsonForDescribe.call(void 0,
1471
+ const contract = _chunkGBICEYUAjs.toolContractJsonForDescribe.call(void 0,
1472
1472
  tool,
1473
1473
  requestedToolId,
1474
1474
  void 0,
1475
1475
  seedToolListScript
1476
1476
  );
1477
- const cost = _chunkYNWET57Zjs.isRecord.call(void 0, contract.cost) ? contract.cost : {};
1478
- const getters = _chunkYNWET57Zjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1477
+ const cost = _chunkGBICEYUAjs.isRecord.call(void 0, contract.cost) ? contract.cost : {};
1478
+ const getters = _chunkGBICEYUAjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1479
1479
  const listGetters = Array.isArray(getters.extractedLists) ? getters.extractedLists : [];
1480
1480
  const valueGetters = Array.isArray(getters.extractedValues) ? getters.extractedValues : [];
1481
- const inputFields = _chunkYNWET57Zjs.recursiveToolInputFieldsForDisplay.call(void 0,
1482
- _chunkYNWET57Zjs.recordField.call(void 0, contract, "inputSchema")
1481
+ const inputFields = _chunkGBICEYUAjs.recursiveToolInputFieldsForDisplay.call(void 0,
1482
+ _chunkGBICEYUAjs.recordField.call(void 0, contract, "inputSchema")
1483
1483
  );
1484
1484
  console.log(String(contract.toolId));
1485
1485
  if (contract.displayName) console.log(`Best for: ${contract.displayName}`);
@@ -1496,9 +1496,9 @@ function printCompactToolContract(tool, requestedToolId) {
1496
1496
  printToolOutputArrayShape(contract);
1497
1497
  printToolExecutionHints(contract);
1498
1498
  if (contract.deprecated === true) {
1499
- const deprecation = _chunkYNWET57Zjs.isRecord.call(void 0, contract.deprecation) ? contract.deprecation : {};
1500
- const message = _chunkYNWET57Zjs.stringField.call(void 0, deprecation, "message");
1501
- const replacementToolId = _chunkYNWET57Zjs.stringField.call(void 0,
1499
+ const deprecation = _chunkGBICEYUAjs.isRecord.call(void 0, contract.deprecation) ? contract.deprecation : {};
1500
+ const message = _chunkGBICEYUAjs.stringField.call(void 0, deprecation, "message");
1501
+ const replacementToolId = _chunkGBICEYUAjs.stringField.call(void 0,
1502
1502
  deprecation,
1503
1503
  "replacementToolId",
1504
1504
  "replacement_tool_id"
@@ -1521,12 +1521,12 @@ function printCompactToolContract(tool, requestedToolId) {
1521
1521
  console.log("");
1522
1522
  console.log("Inputs:");
1523
1523
  for (const field of inputFields) {
1524
- if (!_chunkYNWET57Zjs.isRecord.call(void 0, field)) continue;
1525
- const name = _chunkYNWET57Zjs.stringField.call(void 0, field, "name");
1524
+ if (!_chunkGBICEYUAjs.isRecord.call(void 0, field)) continue;
1525
+ const name = _chunkGBICEYUAjs.stringField.call(void 0, field, "name");
1526
1526
  if (!name) continue;
1527
1527
  const required = field.required ? "*" : "";
1528
- const type = _chunkYNWET57Zjs.stringField.call(void 0, field, "type") || "unknown";
1529
- const description = _chunkYNWET57Zjs.stringField.call(void 0, field, "description");
1528
+ const type = _chunkGBICEYUAjs.stringField.call(void 0, field, "type") || "unknown";
1529
+ const description = _chunkGBICEYUAjs.stringField.call(void 0, field, "description");
1530
1530
  const enumValues = Array.isArray(field.enum) ? field.enum : [];
1531
1531
  const enumSuffix = enumValues.length ? ` enum=${enumValues.map(String).join("|")}` : "";
1532
1532
  const itemBoundsSuffix = arrayItemBoundsSuffix(field);
@@ -1541,8 +1541,8 @@ function printCompactToolContract(tool, requestedToolId) {
1541
1541
  }
1542
1542
  console.log("");
1543
1543
  printToolExamplesOnly(tool, requestedToolId);
1544
- const starterScript = _chunkYNWET57Zjs.isRecord.call(void 0, contract.starterScript) ? contract.starterScript : {};
1545
- const starterPath = _chunkYNWET57Zjs.stringField.call(void 0, starterScript, "path");
1544
+ const starterScript = _chunkGBICEYUAjs.isRecord.call(void 0, contract.starterScript) ? contract.starterScript : {};
1545
+ const starterPath = _chunkGBICEYUAjs.stringField.call(void 0, starterScript, "path");
1546
1546
  if (starterPath) {
1547
1547
  console.log("");
1548
1548
  console.log(`Starter script: ${starterPath}`);
@@ -1553,16 +1553,16 @@ function printCompactToolContract(tool, requestedToolId) {
1553
1553
  console.log("Getters:");
1554
1554
  if (listGetters.length) console.log(listGetterHeading());
1555
1555
  for (const entry of listGetters) {
1556
- if (_chunkYNWET57Zjs.isRecord.call(void 0, entry))
1556
+ if (_chunkGBICEYUAjs.isRecord.call(void 0, entry))
1557
1557
  console.log(
1558
- `- ${_chunkYNWET57Zjs.stringField.call(void 0, entry, "name")}: ${_chunkYNWET57Zjs.playResultExpression.call(void 0, entry)}`
1558
+ `- ${_chunkGBICEYUAjs.stringField.call(void 0, entry, "name")}: ${_chunkGBICEYUAjs.playResultExpression.call(void 0, entry)}`
1559
1559
  );
1560
1560
  }
1561
1561
  if (valueGetters.length) console.log("Values:");
1562
1562
  for (const entry of valueGetters) {
1563
- if (_chunkYNWET57Zjs.isRecord.call(void 0, entry))
1563
+ if (_chunkGBICEYUAjs.isRecord.call(void 0, entry))
1564
1564
  console.log(
1565
- `- ${_chunkYNWET57Zjs.stringField.call(void 0, entry, "name")}: ${_chunkYNWET57Zjs.playResultExpression.call(void 0, entry)}`
1565
+ `- ${_chunkGBICEYUAjs.stringField.call(void 0, entry, "name")}: ${_chunkGBICEYUAjs.playResultExpression.call(void 0, entry)}`
1566
1566
  );
1567
1567
  }
1568
1568
  }
@@ -1573,19 +1573,19 @@ function printCompactToolContract(tool, requestedToolId) {
1573
1573
  console.log(`More: deepline describe ${contract.toolId}`);
1574
1574
  }
1575
1575
  function toolPricingOnlyLines(tool, requestedToolId, options = {}) {
1576
- if (_chunkYNWET57Zjs.isMonitorTypeTool.call(void 0, tool)) {
1576
+ if (_chunkGBICEYUAjs.isMonitorTypeTool.call(void 0, tool)) {
1577
1577
  return monitorTypePricingLines(tool);
1578
1578
  }
1579
1579
  const toolId = String(tool.toolId || requestedToolId);
1580
1580
  const cost = _chunkXK5DMLZEjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1581
- const pricingModel = _chunkYNWET57Zjs.stringField.call(void 0, cost, "pricingModel") || "unknown";
1582
- const billing = _chunkYNWET57Zjs.stringField.call(void 0, cost, "billingSourceLabel") || _chunkYNWET57Zjs.stringField.call(void 0, cost, "billingSource") || _chunkYNWET57Zjs.stringField.call(void 0, cost, "billingMode") || "unknown";
1583
- const explicitUnit = _chunkYNWET57Zjs.stringField.call(void 0, cost, "unit");
1581
+ const pricingModel = _chunkGBICEYUAjs.stringField.call(void 0, cost, "pricingModel") || "unknown";
1582
+ const billing = _chunkGBICEYUAjs.stringField.call(void 0, cost, "billingSourceLabel") || _chunkGBICEYUAjs.stringField.call(void 0, cost, "billingSource") || _chunkGBICEYUAjs.stringField.call(void 0, cost, "billingMode") || "unknown";
1583
+ const explicitUnit = _chunkGBICEYUAjs.stringField.call(void 0, cost, "unit");
1584
1584
  const unit = explicitUnit || (pricingModel === "per_page" ? "page" : pricingModel === "per_result" ? "result" : pricingModel === "fixed" ? "call" : pricingModel.replace(/^per_/, "") || "unit");
1585
1585
  const credits = numberField(cost, "deeplineCreditsPerPricingUnit");
1586
1586
  const usd = numberField(cost, "deeplineUsdPerPricingUnit");
1587
- const displayText = _chunkYNWET57Zjs.stringField.call(void 0, cost, "displayText");
1588
- const summary = _chunkYNWET57Zjs.stringField.call(void 0, cost, "summary");
1587
+ const displayText = _chunkGBICEYUAjs.stringField.call(void 0, cost, "displayText");
1588
+ const summary = _chunkGBICEYUAjs.stringField.call(void 0, cost, "summary");
1589
1589
  const price = displayText || summary || (credits !== null ? `${formatDecimal(credits)} Deepline credits${usd !== null ? ` / ${formatUsd(usd)}` : ""} per ${unit}` : "pricing unavailable");
1590
1590
  return [
1591
1591
  `${_nullishCoalesce(options.heading, () => ( `Pricing: ${toolId}`))}: ${price}`,
@@ -1602,19 +1602,19 @@ function printToolPricingOnly(tool, requestedToolId, options = {}) {
1602
1602
  console.log(line);
1603
1603
  }
1604
1604
  function printToolSchemaOnly(tool, requestedToolId) {
1605
- if (_chunkYNWET57Zjs.isMonitorTypeTool.call(void 0, tool)) {
1605
+ if (_chunkGBICEYUAjs.isMonitorTypeTool.call(void 0, tool)) {
1606
1606
  printMonitorTypeFilters(tool);
1607
1607
  printMonitorTypeStreams(tool);
1608
1608
  return;
1609
1609
  }
1610
- const contract = _chunkYNWET57Zjs.toolContractJsonForDescribe.call(void 0,
1610
+ const contract = _chunkGBICEYUAjs.toolContractJsonForDescribe.call(void 0,
1611
1611
  tool,
1612
1612
  requestedToolId,
1613
1613
  void 0,
1614
1614
  seedToolListScript
1615
1615
  );
1616
- const inputFields = _chunkYNWET57Zjs.recursiveToolInputFieldsForDisplay.call(void 0,
1617
- _chunkYNWET57Zjs.recordField.call(void 0, contract, "inputSchema")
1616
+ const inputFields = _chunkGBICEYUAjs.recursiveToolInputFieldsForDisplay.call(void 0,
1617
+ _chunkGBICEYUAjs.recordField.call(void 0, contract, "inputSchema")
1618
1618
  );
1619
1619
  console.log(`Schema: ${contract.toolId}`);
1620
1620
  if (!inputFields.length) {
@@ -1641,27 +1641,27 @@ function printToolSchemaOnly(tool, requestedToolId) {
1641
1641
  }
1642
1642
  printToolOutputArrayShape(contract);
1643
1643
  const declaredSchema = declaredToolJsonSchema(
1644
- _chunkYNWET57Zjs.recordField.call(void 0, contract, "inputSchema")
1644
+ _chunkGBICEYUAjs.recordField.call(void 0, contract, "inputSchema")
1645
1645
  );
1646
1646
  if (declaredSchema) {
1647
1647
  console.log("Declared input JSON Schema:");
1648
1648
  console.log(JSON.stringify(declaredSchema, null, 2));
1649
1649
  }
1650
- if (_chunkYNWET57Zjs.isRecord.call(void 0, contract.responseSchema)) {
1650
+ if (_chunkGBICEYUAjs.isRecord.call(void 0, contract.responseSchema)) {
1651
1651
  console.log("Deepline execution response JSON Schema:");
1652
1652
  console.log(JSON.stringify(contract.responseSchema, null, 2));
1653
1653
  }
1654
1654
  }
1655
1655
  function printToolExamplesOnly(tool, requestedToolId) {
1656
- if (_chunkYNWET57Zjs.isMonitorTypeTool.call(void 0, tool)) {
1656
+ if (_chunkGBICEYUAjs.isMonitorTypeTool.call(void 0, tool)) {
1657
1657
  printMonitorTypeDeploy(tool);
1658
1658
  return;
1659
1659
  }
1660
- if (_chunkYNWET57Zjs.isPlayLikeTool.call(void 0, tool)) {
1660
+ if (_chunkGBICEYUAjs.isPlayLikeTool.call(void 0, tool)) {
1661
1661
  printPlayLikeToolUsage(tool, requestedToolId);
1662
1662
  return;
1663
1663
  }
1664
- const contract = _chunkYNWET57Zjs.toolContractJsonForDescribe.call(void 0,
1664
+ const contract = _chunkGBICEYUAjs.toolContractJsonForDescribe.call(void 0,
1665
1665
  tool,
1666
1666
  requestedToolId,
1667
1667
  void 0,
@@ -1669,9 +1669,9 @@ function printToolExamplesOnly(tool, requestedToolId) {
1669
1669
  );
1670
1670
  const toolId = String(contract.toolId);
1671
1671
  const inputFields = Array.isArray(contract.inputFields) ? contract.inputFields : [];
1672
- const examples = _chunkYNWET57Zjs.arrayField.call(void 0, tool, "examples").filter(_chunkYNWET57Zjs.isRecord);
1672
+ const examples = _chunkGBICEYUAjs.arrayField.call(void 0, tool, "examples").filter(_chunkGBICEYUAjs.isRecord);
1673
1673
  const firstExample = examples[0];
1674
- const sampleInput = firstExample && _chunkYNWET57Zjs.isRecord.call(void 0, firstExample.input) ? firstExample.input : _nullishCoalesce(samplePayload(_chunkYNWET57Zjs.recordField.call(void 0, tool, "samples"), "request"), () => ( _chunkYNWET57Zjs.samplePayloadForInputFields.call(void 0, inputFields)));
1674
+ const sampleInput = firstExample && _chunkGBICEYUAjs.isRecord.call(void 0, firstExample.input) ? firstExample.input : _nullishCoalesce(samplePayload(_chunkGBICEYUAjs.recordField.call(void 0, tool, "samples"), "request"), () => ( _chunkGBICEYUAjs.samplePayloadForInputFields.call(void 0, inputFields)));
1675
1675
  console.log("Example input payload:");
1676
1676
  console.log(JSON.stringify(sampleInput, null, 2));
1677
1677
  console.log(`Use in a play:`);
@@ -1685,32 +1685,32 @@ function printToolExamplesOnly(tool, requestedToolId) {
1685
1685
  );
1686
1686
  console.log("});");
1687
1687
  console.log("const response = result.toolResponse.rawV2;");
1688
- const getters = _chunkYNWET57Zjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1688
+ const getters = _chunkGBICEYUAjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1689
1689
  const valueGetters = Array.isArray(getters.extractedValues) ? getters.extractedValues : [];
1690
1690
  const listGetters = Array.isArray(getters.extractedLists) ? getters.extractedLists : [];
1691
- const firstGetter = valueGetters.find(_chunkYNWET57Zjs.isRecord);
1691
+ const firstGetter = valueGetters.find(_chunkGBICEYUAjs.isRecord);
1692
1692
  if (firstGetter) {
1693
- const name = _chunkYNWET57Zjs.stringField.call(void 0, firstGetter, "name") || "value";
1694
- const expression = _chunkYNWET57Zjs.stringField.call(void 0, firstGetter, "expression");
1693
+ const name = _chunkGBICEYUAjs.stringField.call(void 0, firstGetter, "name") || "value";
1694
+ const expression = _chunkGBICEYUAjs.stringField.call(void 0, firstGetter, "expression");
1695
1695
  if (expression)
1696
1696
  console.log(
1697
1697
  `const ${safeIdentifier(name)} = ${expression.replace(/^toolExecutionResult\./, "result.")};`
1698
1698
  );
1699
1699
  }
1700
1700
  const arrayNames = new Set(
1701
- _chunkYNWET57Zjs.recursiveToolInputFieldsForDisplay.call(void 0,
1702
- _chunkYNWET57Zjs.recordField.call(void 0, tool, "outputSchema", "output_schema")
1701
+ _chunkGBICEYUAjs.recursiveToolInputFieldsForDisplay.call(void 0,
1702
+ _chunkGBICEYUAjs.recordField.call(void 0, tool, "outputSchema", "output_schema")
1703
1703
  ).filter((field) => String(field.type).split("|").includes("array")).map((field) => String(field.name).split(".").at(-1))
1704
1704
  );
1705
1705
  const firstList = _nullishCoalesce(listGetters.find(
1706
- (entry) => _chunkYNWET57Zjs.isRecord.call(void 0, entry) && arrayNames.has(_chunkYNWET57Zjs.stringField.call(void 0, entry, "name"))
1707
- ), () => ( listGetters.find(_chunkYNWET57Zjs.isRecord)));
1708
- if (_chunkYNWET57Zjs.isRecord.call(void 0, firstList)) {
1709
- const name = safeIdentifier(_chunkYNWET57Zjs.stringField.call(void 0, firstList, "name") || "list");
1706
+ (entry) => _chunkGBICEYUAjs.isRecord.call(void 0, entry) && arrayNames.has(_chunkGBICEYUAjs.stringField.call(void 0, entry, "name"))
1707
+ ), () => ( listGetters.find(_chunkGBICEYUAjs.isRecord)));
1708
+ if (_chunkGBICEYUAjs.isRecord.call(void 0, firstList)) {
1709
+ const name = safeIdentifier(_chunkGBICEYUAjs.stringField.call(void 0, firstList, "name") || "list");
1710
1710
  if (_chunkJ33TSWO5js.playToolListGetterMode.call(void 0, ) === "array") {
1711
- console.log(`const ${name}_rows = ${_chunkYNWET57Zjs.playResultExpression.call(void 0, firstList)};`);
1711
+ console.log(`const ${name}_rows = ${_chunkGBICEYUAjs.playResultExpression.call(void 0, firstList)};`);
1712
1712
  } else {
1713
- console.log(`const ${name}_ds = ${_chunkYNWET57Zjs.playResultExpression.call(void 0, firstList)};`);
1713
+ console.log(`const ${name}_ds = ${_chunkGBICEYUAjs.playResultExpression.call(void 0, firstList)};`);
1714
1714
  console.log(
1715
1715
  "// Complete small list from this response; throws above the memory cap."
1716
1716
  );
@@ -1720,7 +1720,7 @@ function printToolExamplesOnly(tool, requestedToolId) {
1720
1720
  console.log("```");
1721
1721
  if (firstList) printListGetterConsumption();
1722
1722
  for (const example of examples) {
1723
- const description = _chunkYNWET57Zjs.stringField.call(void 0, example, "description");
1723
+ const description = _chunkGBICEYUAjs.stringField.call(void 0, example, "description");
1724
1724
  if (description) console.log(description);
1725
1725
  console.log("Example Deepline execution response:");
1726
1726
  console.log(JSON.stringify(example.response, null, 2));
@@ -1735,14 +1735,14 @@ function printToolExamplesOnly(tool, requestedToolId) {
1735
1735
  }
1736
1736
  function printPlayLikeToolUsage(tool, requestedToolId) {
1737
1737
  const toolId = String(tool.toolId || requestedToolId);
1738
- const inputFields = _chunkYNWET57Zjs.toolInputFieldsForDisplay.call(void 0,
1739
- _chunkYNWET57Zjs.recordField.call(void 0, tool, "inputSchema", "input_schema")
1738
+ const inputFields = _chunkGBICEYUAjs.toolInputFieldsForDisplay.call(void 0,
1739
+ _chunkGBICEYUAjs.recordField.call(void 0, tool, "inputSchema", "input_schema")
1740
1740
  );
1741
- const sampleInput = _chunkYNWET57Zjs.samplePayloadForInputFields.call(void 0, inputFields);
1742
- const playReference = _chunkYNWET57Zjs.playReferenceForTool.call(void 0, tool);
1741
+ const sampleInput = _chunkGBICEYUAjs.samplePayloadForInputFields.call(void 0, inputFields);
1742
+ const playReference = _chunkGBICEYUAjs.playReferenceForTool.call(void 0, tool);
1743
1743
  console.log("Run as a play:");
1744
1744
  console.log(
1745
- _chunkYNWET57Zjs.playRunCommandForTool.call(void 0,
1745
+ _chunkGBICEYUAjs.playRunCommandForTool.call(void 0,
1746
1746
  tool,
1747
1747
  toolId,
1748
1748
  Object.keys(sampleInput).length ? sampleInput : void 0
@@ -1753,13 +1753,13 @@ function printPlayLikeToolUsage(tool, requestedToolId) {
1753
1753
  }
1754
1754
  }
1755
1755
  function printToolGettersOnly(tool, requestedToolId) {
1756
- const contract = _chunkYNWET57Zjs.toolContractJsonForDescribe.call(void 0,
1756
+ const contract = _chunkGBICEYUAjs.toolContractJsonForDescribe.call(void 0,
1757
1757
  tool,
1758
1758
  requestedToolId,
1759
1759
  void 0,
1760
1760
  seedToolListScript
1761
1761
  );
1762
- const getters = _chunkYNWET57Zjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1762
+ const getters = _chunkGBICEYUAjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1763
1763
  const listGetters = Array.isArray(getters.extractedLists) ? getters.extractedLists : [];
1764
1764
  const valueGetters = Array.isArray(getters.extractedValues) ? getters.extractedValues : [];
1765
1765
  console.log(`Getters: ${contract.toolId}`);
@@ -1770,9 +1770,9 @@ function printToolGettersOnly(tool, requestedToolId) {
1770
1770
  if (listGetters.length) {
1771
1771
  console.log(listGetterHeading());
1772
1772
  for (const entry of listGetters) {
1773
- if (_chunkYNWET57Zjs.isRecord.call(void 0, entry))
1773
+ if (_chunkGBICEYUAjs.isRecord.call(void 0, entry))
1774
1774
  console.log(
1775
- `- ${_chunkYNWET57Zjs.stringField.call(void 0, entry, "name")}: ${_chunkYNWET57Zjs.playResultExpression.call(void 0, entry)}`
1775
+ `- ${_chunkGBICEYUAjs.stringField.call(void 0, entry, "name")}: ${_chunkGBICEYUAjs.playResultExpression.call(void 0, entry)}`
1776
1776
  );
1777
1777
  }
1778
1778
  printListGetterConsumption();
@@ -1780,9 +1780,9 @@ function printToolGettersOnly(tool, requestedToolId) {
1780
1780
  if (valueGetters.length) {
1781
1781
  console.log("Values:");
1782
1782
  for (const entry of valueGetters) {
1783
- if (_chunkYNWET57Zjs.isRecord.call(void 0, entry))
1783
+ if (_chunkGBICEYUAjs.isRecord.call(void 0, entry))
1784
1784
  console.log(
1785
- `- ${_chunkYNWET57Zjs.stringField.call(void 0, entry, "name")}: ${_chunkYNWET57Zjs.playResultExpression.call(void 0, entry)}`
1785
+ `- ${_chunkGBICEYUAjs.stringField.call(void 0, entry, "name")}: ${_chunkGBICEYUAjs.playResultExpression.call(void 0, entry)}`
1786
1786
  );
1787
1787
  }
1788
1788
  }
@@ -1820,22 +1820,22 @@ function listedToolDescription(tool) {
1820
1820
  }
1821
1821
  function formatListedToolCost(tool) {
1822
1822
  const record = tool;
1823
- if (_chunkYNWET57Zjs.stringField.call(void 0, record, "billingSource", "billing_source") === "free") {
1823
+ if (_chunkGBICEYUAjs.stringField.call(void 0, record, "billingSource", "billing_source") === "free") {
1824
1824
  return "Cost: Free";
1825
1825
  }
1826
- const pricing = _chunkYNWET57Zjs.recordField.call(void 0, record, "pricing");
1827
- const displayText = _chunkYNWET57Zjs.stringField.call(void 0, pricing, "displayText", "display_text");
1826
+ const pricing = _chunkGBICEYUAjs.recordField.call(void 0, record, "pricing");
1827
+ const displayText = _chunkGBICEYUAjs.stringField.call(void 0, pricing, "displayText", "display_text");
1828
1828
  return displayText ? `Cost: ${displayText}` : "";
1829
1829
  }
1830
1830
  function printToolOutputArrayShape(tool) {
1831
- const outputFields = _chunkYNWET57Zjs.toolOutputFieldsForDisplay.call(void 0,
1832
- _chunkYNWET57Zjs.recordField.call(void 0, _chunkYNWET57Zjs.isRecord.call(void 0, tool) ? tool : {}, "outputSchema", "output_schema")
1831
+ const outputFields = _chunkGBICEYUAjs.toolOutputFieldsForDisplay.call(void 0,
1832
+ _chunkGBICEYUAjs.recordField.call(void 0, _chunkGBICEYUAjs.isRecord.call(void 0, tool) ? tool : {}, "outputSchema", "output_schema")
1833
1833
  );
1834
1834
  if (outputFields.length === 0) return;
1835
1835
  console.log(" Output array shape (declared schema):");
1836
1836
  for (const field of outputFields.slice(0, 60)) {
1837
1837
  const name = String(field.name);
1838
- const type = _chunkYNWET57Zjs.stringField.call(void 0, field, "type") || "unknown";
1838
+ const type = _chunkGBICEYUAjs.stringField.call(void 0, field, "type") || "unknown";
1839
1839
  const itemBounds = arrayItemBoundsSuffix(field);
1840
1840
  console.log(` - ${name}: ${type}${itemBounds}`);
1841
1841
  }
@@ -1844,14 +1844,14 @@ function printToolOutputArrayShape(tool) {
1844
1844
  }
1845
1845
  }
1846
1846
  function declaredToolJsonSchema(inputSchema) {
1847
- if (_chunkYNWET57Zjs.isRecord.call(void 0, inputSchema.jsonSchema)) {
1847
+ if (_chunkGBICEYUAjs.isRecord.call(void 0, inputSchema.jsonSchema)) {
1848
1848
  return inputSchema.jsonSchema;
1849
1849
  }
1850
1850
  return Array.isArray(inputSchema.fields) ? null : inputSchema;
1851
1851
  }
1852
1852
  function arrayItemBoundsSuffix(field) {
1853
- const itemSchema = _chunkYNWET57Zjs.isRecord.call(void 0, field.items) ? field.items : null;
1854
- const itemType = itemSchema ? typeof itemSchema.type === "string" ? itemSchema.type : _chunkYNWET57Zjs.isRecord.call(void 0, itemSchema.properties) ? "object" : "unknown" : null;
1853
+ const itemSchema = _chunkGBICEYUAjs.isRecord.call(void 0, field.items) ? field.items : null;
1854
+ const itemType = itemSchema ? typeof itemSchema.type === "string" ? itemSchema.type : _chunkGBICEYUAjs.isRecord.call(void 0, itemSchema.properties) ? "object" : "unknown" : null;
1855
1855
  const itemEnum = Array.isArray(_optionalChain([itemSchema, 'optionalAccess', _14 => _14.enum])) ? ` enum=${itemSchema.enum.map(String).join("|")}` : "";
1856
1856
  const itemTypeSuffix = itemType && itemType !== "unknown" ? ` items=${itemType}${itemEnum}` : "";
1857
1857
  const minItems = typeof field.minItems === "number" && Number.isFinite(field.minItems) ? field.minItems : null;
@@ -1864,21 +1864,21 @@ function arrayItemBoundsSuffix(field) {
1864
1864
  return itemTypeSuffix;
1865
1865
  }
1866
1866
  function printToolExecutionHints(value) {
1867
- const batchCapabilityRecord = _chunkYNWET57Zjs.recordField.call(void 0,
1868
- _chunkYNWET57Zjs.isRecord.call(void 0, value) ? value : {},
1867
+ const batchCapabilityRecord = _chunkGBICEYUAjs.recordField.call(void 0,
1868
+ _chunkGBICEYUAjs.isRecord.call(void 0, value) ? value : {},
1869
1869
  "batchCapability",
1870
1870
  "batch_capability"
1871
1871
  );
1872
1872
  const batchCapability = Object.keys(batchCapabilityRecord).length > 0 ? batchCapabilityRecord : null;
1873
- const executionMetadata = _chunkYNWET57Zjs.recordField.call(void 0,
1874
- _chunkYNWET57Zjs.isRecord.call(void 0, value) ? value : {},
1873
+ const executionMetadata = _chunkGBICEYUAjs.recordField.call(void 0,
1874
+ _chunkGBICEYUAjs.isRecord.call(void 0, value) ? value : {},
1875
1875
  "executionMetadata",
1876
1876
  "execution_metadata"
1877
1877
  );
1878
1878
  if (batchCapability) {
1879
- const status = _chunkYNWET57Zjs.stringField.call(void 0, batchCapability, "status") || "unknown";
1880
- const surface = _chunkYNWET57Zjs.stringField.call(void 0, batchCapability, "surface");
1881
- const operation = _chunkYNWET57Zjs.stringField.call(void 0,
1879
+ const status = _chunkGBICEYUAjs.stringField.call(void 0, batchCapability, "status") || "unknown";
1880
+ const surface = _chunkGBICEYUAjs.stringField.call(void 0, batchCapability, "surface");
1881
+ const operation = _chunkGBICEYUAjs.stringField.call(void 0,
1882
1882
  batchCapability,
1883
1883
  "batchOperation",
1884
1884
  "batch_operation"
@@ -1888,7 +1888,7 @@ function printToolExecutionHints(value) {
1888
1888
  "maxBatchSize",
1889
1889
  "max_batch_size"
1890
1890
  );
1891
- const notes = _chunkYNWET57Zjs.stringField.call(void 0, batchCapability, "notes");
1891
+ const notes = _chunkGBICEYUAjs.stringField.call(void 0, batchCapability, "notes");
1892
1892
  console.log("");
1893
1893
  console.log("Batching:");
1894
1894
  console.log(`- Catalog status: ${status}${surface ? ` (${surface})` : ""}`);
@@ -1907,11 +1907,11 @@ function printToolExecutionHints(value) {
1907
1907
  }
1908
1908
  if (notes) console.log(`- Details: ${notes}`);
1909
1909
  }
1910
- const configuredRateLimits = _chunkYNWET57Zjs.arrayField.call(void 0,
1910
+ const configuredRateLimits = _chunkGBICEYUAjs.arrayField.call(void 0,
1911
1911
  executionMetadata,
1912
1912
  "configuredRateLimits",
1913
1913
  "configured_rate_limits"
1914
- ).filter(_chunkYNWET57Zjs.isRecord);
1914
+ ).filter(_chunkGBICEYUAjs.isRecord);
1915
1915
  if (configuredRateLimits.length > 0) {
1916
1916
  console.log("");
1917
1917
  console.log(
@@ -1921,7 +1921,7 @@ function printToolExecutionHints(value) {
1921
1921
  const requests = numberField(limit, "requestsPerWindow");
1922
1922
  const windowMs = numberField(limit, "windowMs");
1923
1923
  if (requests === null || windowMs === null) continue;
1924
- const usage = _chunkYNWET57Zjs.stringField.call(void 0, limit, "usage") || "unknown";
1924
+ const usage = _chunkGBICEYUAjs.stringField.call(void 0, limit, "usage") || "unknown";
1925
1925
  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;
1926
1926
  const explicitMaxConcurrency = numberField(
1927
1927
  limit,
@@ -1930,11 +1930,11 @@ function printToolExecutionHints(value) {
1930
1930
  );
1931
1931
  const concurrencyText = explicitMaxConcurrency === null ? "no explicit concurrency limit" : `explicit concurrency limit ${explicitMaxConcurrency}`;
1932
1932
  console.log(
1933
- `- ${requests} requests per ${formatRateWindow(windowMs)}${_chunk4IP5MLWUjs.rateLimitQualifier.call(void 0, limit)} (${usageText}; ${concurrencyText})`
1933
+ `- ${requests} requests per ${formatRateWindow(windowMs)}${_chunkJO5FFSR7js.rateLimitQualifier.call(void 0, limit)} (${usageText}; ${concurrencyText})`
1934
1934
  );
1935
1935
  }
1936
1936
  }
1937
- const queueHint = _chunkYNWET57Zjs.recordField.call(void 0, executionMetadata, "queueHint", "queue_hint");
1937
+ const queueHint = _chunkGBICEYUAjs.recordField.call(void 0, executionMetadata, "queueHint", "queue_hint");
1938
1938
  const requestsPerSecondHint = numberField(
1939
1939
  queueHint,
1940
1940
  "requestsPerSecondHint",
@@ -1960,25 +1960,25 @@ function formatRateWindow(windowMs) {
1960
1960
  }
1961
1961
  function samplePayload(samples, key) {
1962
1962
  const entry = samples[key];
1963
- if (!_chunkYNWET57Zjs.isRecord.call(void 0, entry)) return void 0;
1963
+ if (!_chunkGBICEYUAjs.isRecord.call(void 0, entry)) return void 0;
1964
1964
  return Object.prototype.hasOwnProperty.call(entry, "payload") ? entry.payload : entry;
1965
1965
  }
1966
1966
  function commandEnvelopeFromRawResponse(rawResponse) {
1967
- return _chunkYNWET57Zjs.isRecord.call(void 0, rawResponse) ? { ...rawResponse } : { status: "completed", result: rawResponse };
1967
+ return _chunkGBICEYUAjs.isRecord.call(void 0, rawResponse) ? { ...rawResponse } : { status: "completed", result: rawResponse };
1968
1968
  }
1969
1969
  function toolExecuteExitCode(envelope) {
1970
1970
  return envelope.status === "failed" || envelope.ok === false ? 1 : 0;
1971
1971
  }
1972
1972
  function extractToolExecutionWarningMessages(rawResponse) {
1973
- if (!_chunkYNWET57Zjs.isRecord.call(void 0, rawResponse)) return [];
1973
+ if (!_chunkGBICEYUAjs.isRecord.call(void 0, rawResponse)) return [];
1974
1974
  const candidates = [
1975
- _chunkYNWET57Zjs.recordField.call(void 0, _chunkYNWET57Zjs.recordField.call(void 0, rawResponse, "toolResponse"), "meta"),
1976
- _chunkYNWET57Zjs.recordField.call(void 0,
1977
- _chunkYNWET57Zjs.recordField.call(void 0, _chunkYNWET57Zjs.recordField.call(void 0, rawResponse, "toolResponse"), "raw"),
1975
+ _chunkGBICEYUAjs.recordField.call(void 0, _chunkGBICEYUAjs.recordField.call(void 0, rawResponse, "toolResponse"), "meta"),
1976
+ _chunkGBICEYUAjs.recordField.call(void 0,
1977
+ _chunkGBICEYUAjs.recordField.call(void 0, _chunkGBICEYUAjs.recordField.call(void 0, rawResponse, "toolResponse"), "raw"),
1978
1978
  "meta"
1979
1979
  ),
1980
- _chunkYNWET57Zjs.recordField.call(void 0, rawResponse, "meta"),
1981
- _chunkYNWET57Zjs.recordField.call(void 0, _chunkYNWET57Zjs.recordField.call(void 0, rawResponse, "result"), "meta")
1980
+ _chunkGBICEYUAjs.recordField.call(void 0, rawResponse, "meta"),
1981
+ _chunkGBICEYUAjs.recordField.call(void 0, _chunkGBICEYUAjs.recordField.call(void 0, rawResponse, "result"), "meta")
1982
1982
  ];
1983
1983
  const messages = [];
1984
1984
  for (const candidate of candidates) {
@@ -1987,8 +1987,8 @@ function extractToolExecutionWarningMessages(rawResponse) {
1987
1987
  for (const warning of warnings) {
1988
1988
  if (typeof warning === "string" && warning.trim()) {
1989
1989
  messages.push(warning.trim());
1990
- } else if (_chunkYNWET57Zjs.isRecord.call(void 0, warning)) {
1991
- const message = _chunkYNWET57Zjs.stringField.call(void 0, warning, "message");
1990
+ } else if (_chunkGBICEYUAjs.isRecord.call(void 0, warning)) {
1991
+ const message = _chunkGBICEYUAjs.stringField.call(void 0, warning, "message");
1992
1992
  if (message) messages.push(message);
1993
1993
  }
1994
1994
  }
@@ -1996,20 +1996,20 @@ function extractToolExecutionWarningMessages(rawResponse) {
1996
1996
  return [...new Set(messages)];
1997
1997
  }
1998
1998
  function apifySyncRecoveryNext(rawResponse) {
1999
- if (!_chunkYNWET57Zjs.isRecord.call(void 0, rawResponse) || rawResponse.status !== "running") return null;
2000
- const toolResponse = _chunkYNWET57Zjs.recordField.call(void 0, rawResponse, "toolResponse");
2001
- const raw = _chunkYNWET57Zjs.recordField.call(void 0, toolResponse, "raw");
1999
+ if (!_chunkGBICEYUAjs.isRecord.call(void 0, rawResponse) || rawResponse.status !== "running") return null;
2000
+ const toolResponse = _chunkGBICEYUAjs.recordField.call(void 0, rawResponse, "toolResponse");
2001
+ const raw = _chunkGBICEYUAjs.recordField.call(void 0, toolResponse, "raw");
2002
2002
  if (raw.state !== "awaiting_apify") return null;
2003
- const next = _chunkYNWET57Zjs.recordField.call(void 0, raw, "next");
2004
- const getActorRun = _chunkYNWET57Zjs.recordField.call(void 0, next, "getActorRun");
2005
- const getActorRunTool = _chunkYNWET57Zjs.stringField.call(void 0, getActorRun, "tool");
2006
- const getActorRunPayload = _chunkYNWET57Zjs.recordField.call(void 0, getActorRun, "payload");
2003
+ const next = _chunkGBICEYUAjs.recordField.call(void 0, raw, "next");
2004
+ const getActorRun = _chunkGBICEYUAjs.recordField.call(void 0, next, "getActorRun");
2005
+ const getActorRunTool = _chunkGBICEYUAjs.stringField.call(void 0, getActorRun, "tool");
2006
+ const getActorRunPayload = _chunkGBICEYUAjs.recordField.call(void 0, getActorRun, "payload");
2007
2007
  if (!getActorRunTool || Object.keys(getActorRunPayload).length === 0) {
2008
2008
  return null;
2009
2009
  }
2010
- const getDatasetItems = _chunkYNWET57Zjs.recordField.call(void 0, next, "getDatasetItems");
2011
- const getDatasetItemsTool = _chunkYNWET57Zjs.stringField.call(void 0, getDatasetItems, "tool");
2012
- const getDatasetItemsPayload = _chunkYNWET57Zjs.recordField.call(void 0, getDatasetItems, "payload");
2010
+ const getDatasetItems = _chunkGBICEYUAjs.recordField.call(void 0, next, "getDatasetItems");
2011
+ const getDatasetItemsTool = _chunkGBICEYUAjs.stringField.call(void 0, getDatasetItems, "tool");
2012
+ const getDatasetItemsPayload = _chunkGBICEYUAjs.recordField.call(void 0, getDatasetItems, "payload");
2013
2013
  return {
2014
2014
  getActorRun: `deepline run ${getActorRunTool} --input ${_chunkAID3OYVJjs.shellQuote.call(void 0, JSON.stringify(getActorRunPayload))}`,
2015
2015
  ...getDatasetItemsTool && Object.keys(getDatasetItemsPayload).length > 0 ? {
@@ -2019,7 +2019,7 @@ function apifySyncRecoveryNext(rawResponse) {
2019
2019
  }
2020
2020
  function listExtractorPathsFromUsageGuidance(tool) {
2021
2021
  const toolExecutionResult = _optionalChain([tool, 'access', _16 => _16.usageGuidance, 'optionalAccess', _17 => _17.toolExecutionResult]);
2022
- const extractedLists = Array.isArray(_optionalChain([toolExecutionResult, 'optionalAccess', _18 => _18.extractedLists])) ? toolExecutionResult.extractedLists : _chunkYNWET57Zjs.isRecord.call(void 0, _optionalChain([toolExecutionResult, 'optionalAccess', _19 => _19.extractedLists])) ? Object.values(toolExecutionResult.extractedLists) : [];
2022
+ const extractedLists = Array.isArray(_optionalChain([toolExecutionResult, 'optionalAccess', _18 => _18.extractedLists])) ? toolExecutionResult.extractedLists : _chunkGBICEYUAjs.isRecord.call(void 0, _optionalChain([toolExecutionResult, 'optionalAccess', _19 => _19.extractedLists])) ? Object.values(toolExecutionResult.extractedLists) : [];
2023
2023
  return extractedLists.flatMap((entry) => {
2024
2024
  const paths = _nullishCoalesce(_optionalChain([entry, 'access', _20 => _20.details, 'optionalAccess', _21 => _21.candidatePaths]), () => ( _optionalChain([entry, 'access', _22 => _22.details, 'optionalAccess', _23 => _23.rawToolOutputPaths])));
2025
2025
  if (!Array.isArray(paths)) return [];
@@ -2104,7 +2104,7 @@ function parseJsonObjectArgument(raw, flagName) {
2104
2104
  }
2105
2105
  throw invalidJsonError(flagName, message);
2106
2106
  }
2107
- if (!_chunkYNWET57Zjs.isRecord.call(void 0, parsed)) {
2107
+ if (!_chunkGBICEYUAjs.isRecord.call(void 0, parsed)) {
2108
2108
  throw invalidJsonError(flagName, "expected an object.");
2109
2109
  }
2110
2110
  return parsed;
@@ -2148,7 +2148,7 @@ function parseExecuteOptions(toolId, options, output) {
2148
2148
  outputFormat = normalizeOutputFormat(options.outputFormat);
2149
2149
  }
2150
2150
  if (options.idempotencyKey !== void 0) {
2151
- _chunkTVUE4CPWjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2151
+ _chunkCK5MA6S6js.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2152
2152
  }
2153
2153
  if (options.recoveryTimeoutMs !== void 0) {
2154
2154
  const parsed = Number(options.recoveryTimeoutMs);
@@ -2277,7 +2277,7 @@ function buildToolExecuteBaseEnvelope(input) {
2277
2277
  kind: summaryEntries.length > 0 ? "object" : "raw",
2278
2278
  summary: input.summary
2279
2279
  };
2280
- const envelopeHasCanonicalOutput = _chunkYNWET57Zjs.isRecord.call(void 0, envelope.toolResponse) && Object.prototype.hasOwnProperty.call(envelope.toolResponse, "raw");
2280
+ const envelopeHasCanonicalOutput = _chunkGBICEYUAjs.isRecord.call(void 0, envelope.toolResponse) && Object.prototype.hasOwnProperty.call(envelope.toolResponse, "raw");
2281
2281
  const envelopeHasDeclaredOutput = Object.prototype.hasOwnProperty.call(
2282
2282
  envelope,
2283
2283
  "output"
@@ -2305,7 +2305,7 @@ function buildToolExecuteBaseEnvelope(input) {
2305
2305
  return {
2306
2306
  ...envelope,
2307
2307
  ...input.idempotencyKey ? { idempotency_key: input.idempotencyKey } : {},
2308
- ..._chunkYNWET57Zjs.isRecord.call(void 0, input.rawResponse) && _chunkYNWET57Zjs.isRecord.call(void 0, input.rawResponse.executionRecovery) ? { execution_recovery: input.rawResponse.executionRecovery } : {},
2308
+ ..._chunkGBICEYUAjs.isRecord.call(void 0, input.rawResponse) && _chunkGBICEYUAjs.isRecord.call(void 0, input.rawResponse.executionRecovery) ? { execution_recovery: input.rawResponse.executionRecovery } : {},
2309
2309
  ...envelopeHasCanonicalOutput || envelopeHasDeclaredOutput ? { output_preview: outputPreview } : { output: outputPreview },
2310
2310
  ...summaryEntries.length > 0 ? { summary: input.summary } : {},
2311
2311
  ...warningMessages.length > 0 ? { warnings: warningMessages } : {},
@@ -2366,7 +2366,7 @@ function buildToolExecuteRowArtifactEnvelope(input) {
2366
2366
  void _render;
2367
2367
  void _next;
2368
2368
  void _local;
2369
- const billingLookup = _chunkYNWET57Zjs.isRecord.call(void 0, input.baseEnvelope.next) && typeof input.baseEnvelope.next.billing === "string" ? input.baseEnvelope.next.billing : null;
2369
+ const billingLookup = _chunkGBICEYUAjs.isRecord.call(void 0, input.baseEnvelope.next) && typeof input.baseEnvelope.next.billing === "string" ? input.baseEnvelope.next.billing : null;
2370
2370
  const inspection = toolExecutionInspection(input);
2371
2371
  return {
2372
2372
  ...base,
@@ -2462,7 +2462,7 @@ function printToolExecutionWarnings(toolId, params, metadata) {
2462
2462
  }
2463
2463
  }
2464
2464
  function assertExecutableToolMetadata(toolId, metadata) {
2465
- if (_chunkYNWET57Zjs.isPlayLikeTool.call(void 0, metadata)) {
2465
+ if (_chunkGBICEYUAjs.isPlayLikeTool.call(void 0, metadata)) {
2466
2466
  throw new (0, _chunkDIAWYWT5js.DeeplineError)(
2467
2467
  playLikeToolExecuteErrorMessage(
2468
2468
  toolId,
@@ -2480,7 +2480,7 @@ function valueAt(value, path) {
2480
2480
  for (const [index, part] of parts.entries()) {
2481
2481
  const each = part === "*" || part.endsWith("[*]");
2482
2482
  if (part !== "*") {
2483
- at = _chunkYNWET57Zjs.isRecord.call(void 0, at) ? at[each ? part.slice(0, -3) : part] : void 0;
2483
+ at = _chunkGBICEYUAjs.isRecord.call(void 0, at) ? at[each ? part.slice(0, -3) : part] : void 0;
2484
2484
  }
2485
2485
  if (!each) continue;
2486
2486
  if (!Array.isArray(at)) return void 0;
@@ -2496,7 +2496,7 @@ function declaredOutputs(metadata, envelope, data) {
2496
2496
  const getters = ["extractedValues", "extractedLists"].flatMap(
2497
2497
  (kind) => {
2498
2498
  const group = _optionalChain([result, 'optionalAccess', _28 => _28[kind]]);
2499
- return Array.isArray(group) ? group : _chunkYNWET57Zjs.isRecord.call(void 0, group) ? Object.entries(group).map(([name, getter]) => ({
2499
+ return Array.isArray(group) ? group : _chunkGBICEYUAjs.isRecord.call(void 0, group) ? Object.entries(group).map(([name, getter]) => ({
2500
2500
  name,
2501
2501
  ...getter
2502
2502
  })) : [];
@@ -2521,13 +2521,13 @@ function declaredOutputs(metadata, envelope, data) {
2521
2521
  }
2522
2522
  function writeToolReceipt(input) {
2523
2523
  const { response, metadata } = input;
2524
- const envelope = _chunkYNWET57Zjs.isRecord.call(void 0, response) ? response : {};
2524
+ const envelope = _chunkGBICEYUAjs.isRecord.call(void 0, response) ? response : {};
2525
2525
  const jobId = typeof envelope.job_id === "string" ? envelope.job_id : null;
2526
- const toolResponse = _chunkYNWET57Zjs.recordField.call(void 0, envelope, "toolResponse");
2526
+ const toolResponse = _chunkGBICEYUAjs.recordField.call(void 0, envelope, "toolResponse");
2527
2527
  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;
2528
2528
  const status = typeof envelope.status === "string" ? envelope.status : "completed";
2529
- const charged = _chunkYNWET57Zjs.recordField.call(void 0, envelope, "billing").credits_charged;
2530
- _chunkOGNIB64Wjs.writeExecutionOutput.call(void 0,
2529
+ const charged = _chunkGBICEYUAjs.recordField.call(void 0, envelope, "billing").credits_charged;
2530
+ _chunk4ZKZS43Njs.writeExecutionOutput.call(void 0,
2531
2531
  {
2532
2532
  id: _nullishCoalesce(input.key, () => ( jobId)),
2533
2533
  status,
@@ -2558,8 +2558,8 @@ async function executeToolForReceipt(input) {
2558
2558
  let retryKey = null;
2559
2559
  let received = false;
2560
2560
  try {
2561
- const cliInvocationId = _nullishCoalesce(_chunkOTDX4A4Wjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkOTDX4A4Wjs.beginToolExecuteCommand.call(void 0, )));
2562
- const client = new (0, _chunkE47VAVARjs.DeeplineClient)();
2561
+ const cliInvocationId = _nullishCoalesce(_chunkBNI653WNjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkBNI653WNjs.beginToolExecuteCommand.call(void 0, )));
2562
+ const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
2563
2563
  const metadata = assertExecutableToolMetadata(
2564
2564
  toolId,
2565
2565
  await _asyncNullishCoalesce(input.metadata, async () => ( await client.getTool(toolId, { cliInvocationId })))
@@ -2580,9 +2580,9 @@ async function executeToolForReceipt(input) {
2580
2580
  ...input.timeoutMs !== void 0 ? { timeout: input.timeoutMs } : {},
2581
2581
  ..._optionalChain([metadata, 'access', _35 => _35.executionMetadata, 'optionalAccess', _36 => _36.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {},
2582
2582
  ...key ? { idempotencyKey: key } : {},
2583
- searchRef: _chunkJHBRJDUCjs.recentSearchRef.call(void 0, ),
2583
+ searchRef: _chunkQSRWBOPVjs.recentSearchRef.call(void 0, ),
2584
2584
  cliInvocationId,
2585
- onResponseReceived: _chunkOGNIB64Wjs.recordApiResponse
2585
+ onResponseReceived: _chunk4ZKZS43Njs.recordApiResponse
2586
2586
  }).catch((error) => {
2587
2587
  const guidance = toolGuidanceLines(metadata.guidance);
2588
2588
  if (guidance.length)
@@ -2605,7 +2605,7 @@ async function executeToolForReceipt(input) {
2605
2605
  if (received) throw error;
2606
2606
  const outcomeKnown = answeredWithFailure(error);
2607
2607
  if (outcomeKnown) _optionalChain([retryKey, 'optionalAccess', _37 => _37.discard, 'call', _38 => _38()]);
2608
- _chunkOGNIB64Wjs.writeExecutionOutput.call(void 0,
2608
+ _chunk4ZKZS43Njs.writeExecutionOutput.call(void 0,
2609
2609
  {
2610
2610
  id: outcomeKnown ? null : key,
2611
2611
  status: "failed",
@@ -2629,11 +2629,11 @@ function answeredWithFailure(error) {
2629
2629
  error.statusCode !== 408 && error.code !== "EXECUTION_OUTCOME_UNKNOWN";
2630
2630
  }
2631
2631
  async function getToolExecutionReceipt(key, output) {
2632
- const client = new (0, _chunkE47VAVARjs.DeeplineClient)();
2632
+ const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
2633
2633
  const execution = await client.executions.getByKey(key);
2634
2634
  output.label = `${execution.toolId} (tool)`;
2635
2635
  if (execution.response === void 0) {
2636
- _chunkOGNIB64Wjs.writeExecutionOutput.call(void 0,
2636
+ _chunk4ZKZS43Njs.writeExecutionOutput.call(void 0,
2637
2637
  {
2638
2638
  id: key,
2639
2639
  status: execution.executionRecovery.state,
@@ -2662,19 +2662,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2662
2662
  parsed = parseExecuteOptions(toolId, options, output);
2663
2663
  } catch (error) {
2664
2664
  if (wantsJson) {
2665
- _chunkZDTPSVGFjs.printJsonError.call(void 0, error);
2665
+ _chunkZZD245Z2js.printJsonError.call(void 0, error);
2666
2666
  } else {
2667
2667
  console.error(error instanceof Error ? error.message : String(error));
2668
2668
  }
2669
2669
  return error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
2670
2670
  }
2671
- const cliInvocationId = _nullishCoalesce(_chunkOTDX4A4Wjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkOTDX4A4Wjs.beginToolExecuteCommand.call(void 0, )));
2671
+ const cliInvocationId = _nullishCoalesce(_chunkBNI653WNjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkBNI653WNjs.beginToolExecuteCommand.call(void 0, )));
2672
2672
  const deferredCompatibility = deferCompatibility ? beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) : void 0;
2673
- const tracing = _chunkEFFHRXKBjs.isCliTraceEnabled.call(void 0, );
2673
+ const tracing = _chunkJ3UHNUWIjs.isCliTraceEnabled.call(void 0, );
2674
2674
  const clientStartedAt = tracing ? performance.now() : void 0;
2675
- const client = new (0, _chunkE47VAVARjs.DeeplineClient)();
2675
+ const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
2676
2676
  if (clientStartedAt !== void 0) {
2677
- _chunkEFFHRXKBjs.recordCliTrace.call(void 0, {
2677
+ _chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
2678
2678
  phase: "cli.tool_execute_client_setup",
2679
2679
  ms: performance.now() - clientStartedAt
2680
2680
  });
@@ -2683,13 +2683,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2683
2683
  const readMetadata = async () => {
2684
2684
  if (metadata) return assertExecutableToolMetadata(parsed.toolId, metadata);
2685
2685
  try {
2686
- metadata = await _chunkOTDX4A4Wjs.runToolExecuteStage.call(void 0,
2686
+ metadata = await _chunkBNI653WNjs.runToolExecuteStage.call(void 0,
2687
2687
  "tool metadata lookup",
2688
2688
  () => client.getTool(parsed.toolId, { cliInvocationId })
2689
2689
  );
2690
2690
  } catch (error) {
2691
2691
  if (isMissingToolMetadataError(error)) {
2692
- const play = await _chunkOTDX4A4Wjs.runToolExecuteStage.call(void 0,
2692
+ const play = await _chunkBNI653WNjs.runToolExecuteStage.call(void 0,
2693
2693
  "play alias lookup",
2694
2694
  () => findPlayForToolId(client, parsed.toolId, cliInvocationId)
2695
2695
  );
@@ -2718,7 +2718,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2718
2718
  assertExecutableToolMetadata(parsed.toolId, metadata);
2719
2719
  } catch (error) {
2720
2720
  if (error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2721
- if (wantsJson) _chunkZDTPSVGFjs.printJsonError.call(void 0, error);
2721
+ if (wantsJson) _chunkZZD245Z2js.printJsonError.call(void 0, error);
2722
2722
  else console.error(error.message);
2723
2723
  return 2;
2724
2724
  }
@@ -2730,7 +2730,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2730
2730
  metadata = await readMetadata();
2731
2731
  } catch (error) {
2732
2732
  if (error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2733
- if (wantsJson) _chunkZDTPSVGFjs.printJsonError.call(void 0, error);
2733
+ if (wantsJson) _chunkZZD245Z2js.printJsonError.call(void 0, error);
2734
2734
  else console.error(error.message);
2735
2735
  return 2;
2736
2736
  }
@@ -2746,7 +2746,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2746
2746
  metadata = await readMetadata();
2747
2747
  } catch (error) {
2748
2748
  if (error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2749
- if (wantsJson) _chunkZDTPSVGFjs.printJsonError.call(void 0, error);
2749
+ if (wantsJson) _chunkZZD245Z2js.printJsonError.call(void 0, error);
2750
2750
  else console.error(error.message);
2751
2751
  return 2;
2752
2752
  }
@@ -2772,11 +2772,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2772
2772
  responseIntent,
2773
2773
  ...idempotencyKey ? { idempotencyKey } : {},
2774
2774
  ...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
2775
- searchRef: _chunkJHBRJDUCjs.recentSearchRef.call(void 0, ),
2775
+ searchRef: _chunkQSRWBOPVjs.recentSearchRef.call(void 0, ),
2776
2776
  cliInvocationId,
2777
- onResponseReceived: _chunkOGNIB64Wjs.recordApiResponse,
2777
+ onResponseReceived: _chunk4ZKZS43Njs.recordApiResponse,
2778
2778
  ...tracing ? {
2779
- onServerTiming: (serverTiming) => _chunkEFFHRXKBjs.recordCliTrace.call(void 0, {
2779
+ onServerTiming: (serverTiming) => _chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
2780
2780
  phase: "tool_execute_server_timing",
2781
2781
  cliInvocationId,
2782
2782
  serverTiming,
@@ -2787,13 +2787,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2787
2787
  let rawResponse;
2788
2788
  let successfulCompatibilityResponse;
2789
2789
  try {
2790
- const executeResult = await _chunkOTDX4A4Wjs.runToolExecuteStage.call(void 0,
2790
+ const executeResult = await _chunkBNI653WNjs.runToolExecuteStage.call(void 0,
2791
2791
  "execute request",
2792
2792
  async () => {
2793
2793
  try {
2794
2794
  if (tracing) {
2795
2795
  submissionStartedAt = performance.now();
2796
- _chunkEFFHRXKBjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2796
+ _chunkJ3UHNUWIjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2797
2797
  }
2798
2798
  return await client.executeTool(parsed.toolId, parsed.params, {
2799
2799
  ...executeOptions,
@@ -2803,34 +2803,34 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2803
2803
  } catch (error) {
2804
2804
  if (!(error instanceof _chunkDIAWYWT5js.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
2805
2805
  throw error;
2806
- const baseUrl = _chunkB2JE3HD6js.resolveConfig.call(void 0, ).baseUrl;
2806
+ const baseUrl = _chunkY4GRL533js.resolveConfig.call(void 0, ).baseUrl;
2807
2807
  if (maintenancePolicy !== "off") {
2808
- _chunkO2FB42N2js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
2808
+ _chunkUSWLB4KVjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
2809
2809
  }
2810
- const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunkOTDX4A4Wjs.runToolExecuteStage.call(void 0,
2810
+ const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunkBNI653WNjs.runToolExecuteStage.call(void 0,
2811
2811
  "SDK compatibility",
2812
- () => _chunkO2FB42N2js.checkSdkCompatibility.call(void 0, baseUrl, {
2812
+ () => _chunkUSWLB4KVjs.checkSdkCompatibility.call(void 0, baseUrl, {
2813
2813
  command: "tools execute",
2814
- skillsVersion: _chunkB2JE3HD6js.readSdkSkillsLocalVersion.call(void 0, baseUrl),
2814
+ skillsVersion: _chunkY4GRL533js.readSdkSkillsLocalVersion.call(void 0, baseUrl),
2815
2815
  persistCache: maintenancePolicy !== "off"
2816
2816
  })
2817
2817
  );
2818
2818
  if (compatibility.error) throw compatibility.error;
2819
2819
  metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _44 => _44.readMetadata, 'call', _45 => _45()]), () => ( metadata));
2820
- if (maintenancePolicy !== "off" && await _chunkOTDX4A4Wjs.maybeAutoUpdateAndRelaunch.call(void 0,
2820
+ if (maintenancePolicy !== "off" && await _chunkBNI653WNjs.maybeAutoUpdateAndRelaunch.call(void 0,
2821
2821
  compatibility.response,
2822
2822
  baseUrl,
2823
2823
  maintenancePolicy
2824
2824
  )) {
2825
2825
  return void 0;
2826
2826
  }
2827
- _chunkO2FB42N2js.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
2827
+ _chunkUSWLB4KVjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
2828
2828
  quietAdvisory: wantsJson
2829
2829
  });
2830
2830
  if (maintenancePolicy !== "off") {
2831
- await _chunkOTDX4A4Wjs.runToolExecuteStage.call(void 0,
2831
+ await _chunkBNI653WNjs.runToolExecuteStage.call(void 0,
2832
2832
  "agent skills sync",
2833
- () => _chunkO2FB42N2js.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
2833
+ () => _chunkUSWLB4KVjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
2834
2834
  update: _optionalChain([compatibility, 'access', _46 => _46.response, 'optionalAccess', _47 => _47.skills]),
2835
2835
  mode: "detached"
2836
2836
  })
@@ -2839,7 +2839,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2839
2839
  const legacyMetadata = await readMetadata();
2840
2840
  if (tracing) {
2841
2841
  submissionStartedAt = performance.now();
2842
- _chunkEFFHRXKBjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2842
+ _chunkJ3UHNUWIjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2843
2843
  }
2844
2844
  return client.executeTool(parsed.toolId, parsed.params, {
2845
2845
  ...executeOptions,
@@ -2862,8 +2862,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2862
2862
  metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
2863
2863
  const updateRequiredBeforeExecution = error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
2864
2864
  if (updateRequiredBeforeExecution && maintenancePolicy !== "off" && compatibility && !compatibility.error) {
2865
- const baseUrl = _chunkB2JE3HD6js.resolveConfig.call(void 0, ).baseUrl;
2866
- if (await _chunkOTDX4A4Wjs.maybeAutoUpdateAndRelaunch.call(void 0,
2865
+ const baseUrl = _chunkY4GRL533js.resolveConfig.call(void 0, ).baseUrl;
2866
+ if (await _chunkBNI653WNjs.maybeAutoUpdateAndRelaunch.call(void 0,
2867
2867
  compatibility.response,
2868
2868
  baseUrl,
2869
2869
  maintenancePolicy
@@ -2887,7 +2887,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2887
2887
  }
2888
2888
  }
2889
2889
  if (failure instanceof _chunkDIAWYWT5js.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
2890
- if (wantsJson) _chunkZDTPSVGFjs.printJsonError.call(void 0, failure);
2890
+ if (wantsJson) _chunkZZD245Z2js.printJsonError.call(void 0, failure);
2891
2891
  else console.error(failure.message);
2892
2892
  return 2;
2893
2893
  }
@@ -2914,9 +2914,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2914
2914
  successfulCompatibilityResponse = _nullishCoalesce(compatibilityResponse, () => ( void 0));
2915
2915
  const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _54 => _54.auto_update]);
2916
2916
  if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _55 => _55.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
2917
- await _chunkOTDX4A4Wjs.maybeAutoUpdateAndRelaunch.call(void 0,
2917
+ await _chunkBNI653WNjs.maybeAutoUpdateAndRelaunch.call(void 0,
2918
2918
  compatibilityResponse,
2919
- _chunkB2JE3HD6js.resolveConfig.call(void 0, ).baseUrl,
2919
+ _chunkY4GRL533js.resolveConfig.call(void 0, ).baseUrl,
2920
2920
  maintenancePolicy
2921
2921
  );
2922
2922
  }
@@ -2934,8 +2934,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2934
2934
  );
2935
2935
  }
2936
2936
  }
2937
- const responseMetadata = _chunkYNWET57Zjs.recordField.call(void 0,
2938
- _chunkYNWET57Zjs.recordField.call(void 0, rawResponse, "_metadata"),
2937
+ const responseMetadata = _chunkGBICEYUAjs.recordField.call(void 0,
2938
+ _chunkGBICEYUAjs.recordField.call(void 0, rawResponse, "_metadata"),
2939
2939
  "tool"
2940
2940
  );
2941
2941
  const listOutputPaths = responseMetadata.listOutputPaths;
@@ -2947,11 +2947,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2947
2947
  await readMetadata()
2948
2948
  );
2949
2949
  }
2950
- if (_chunkYNWET57Zjs.isRecord.call(void 0, rawResponse)) {
2950
+ if (_chunkGBICEYUAjs.isRecord.call(void 0, rawResponse)) {
2951
2951
  const { _metadata, ...execution } = rawResponse;
2952
2952
  rawResponse = execution;
2953
2953
  }
2954
- const { listConversion, summary, baseEnvelope } = await _chunkOTDX4A4Wjs.runToolExecuteStage.call(void 0,
2954
+ const { listConversion, summary, baseEnvelope } = await _chunkBNI653WNjs.runToolExecuteStage.call(void 0,
2955
2955
  "result formatting",
2956
2956
  async () => {
2957
2957
  const listConversion2 = _chunkHGFFYVXNjs.tryConvertToList.call(void 0, rawResponse, {
@@ -2986,9 +2986,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2986
2986
  }
2987
2987
  skillsSyncAttempted = true;
2988
2988
  try {
2989
- await _chunkOTDX4A4Wjs.runToolExecuteStage.call(void 0,
2989
+ await _chunkBNI653WNjs.runToolExecuteStage.call(void 0,
2990
2990
  "agent skills sync",
2991
- () => _chunkO2FB42N2js.syncSdkSkillsIfNeeded.call(void 0, _chunkB2JE3HD6js.resolveConfig.call(void 0, ).baseUrl, {
2991
+ () => _chunkUSWLB4KVjs.syncSdkSkillsIfNeeded.call(void 0, _chunkY4GRL533js.resolveConfig.call(void 0, ).baseUrl, {
2992
2992
  update: deliveredCompatibilityResponse.skills,
2993
2993
  mode: "detached"
2994
2994
  })
@@ -2999,15 +2999,15 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2999
2999
  );
3000
3000
  }
3001
3001
  };
3002
- const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkZDTPSVGFjs.printCommandEnvelope.call(void 0, envelope, {
3002
+ const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkZZD245Z2js.printCommandEnvelope.call(void 0, envelope, {
3003
3003
  ...options2,
3004
3004
  json: _nullishCoalesce(options2.json, () => ( wantsJson))
3005
3005
  });
3006
3006
  const printDeliveredJsonEnvelope = async (envelope, options2 = {}) => {
3007
3007
  await syncSkillsForDeliveredOutput();
3008
- _chunkZDTPSVGFjs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
3008
+ _chunkZZD245Z2js.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
3009
3009
  };
3010
- const delivered = await _chunkOTDX4A4Wjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
3010
+ const delivered = await _chunkBNI653WNjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
3011
3011
  if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
3012
3012
  await printDeliveredJsonEnvelope(baseEnvelope);
3013
3013
  return true;
@@ -3020,7 +3020,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3020
3020
  await printDeliveredJsonEnvelope({
3021
3021
  ...baseEnvelope,
3022
3022
  local: {
3023
- ..._chunkYNWET57Zjs.isRecord.call(void 0, baseEnvelope.local) ? baseEnvelope.local : {},
3023
+ ..._chunkGBICEYUAjs.isRecord.call(void 0, baseEnvelope.local) ? baseEnvelope.local : {},
3024
3024
  payload_file: jsonPath
3025
3025
  }
3026
3026
  });
@@ -3036,7 +3036,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3036
3036
  `${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
3037
3037
  );
3038
3038
  if (wantsJson) {
3039
- _chunkZDTPSVGFjs.printJsonError.call(void 0, error);
3039
+ _chunkZZD245Z2js.printJsonError.call(void 0, error);
3040
3040
  } else {
3041
3041
  console.error(error.message);
3042
3042
  }
@@ -3131,13 +3131,13 @@ inspect: ${inspection.inspect}
3131
3131
  return true;
3132
3132
  });
3133
3133
  if (delivered) {
3134
- await _chunkOTDX4A4Wjs.runToolExecuteStage.call(void 0,
3134
+ await _chunkBNI653WNjs.runToolExecuteStage.call(void 0,
3135
3135
  "acknowledge delivery",
3136
3136
  () => recovery.acknowledgeDelivery()
3137
3137
  );
3138
3138
  }
3139
3139
  if (delivered && deliveredCompatibilityResponse && deliveredCompatibilityResponse.update_required !== true) {
3140
- _chunkO2FB42N2js.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
3140
+ _chunkUSWLB4KVjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
3141
3141
  quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _58 => _58.auto_update, 'optionalAccess', _59 => _59.should_auto_update]) === true
3142
3142
  });
3143
3143
  }