deepline 0.3.483 → 0.3.485

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 (217) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +91 -30
  2. package/dist/bundling-sources/sdk/src/compat.ts +13 -0
  3. package/dist/bundling-sources/sdk/src/plays/client-core.ts +4 -1
  4. package/dist/bundling-sources/sdk/src/plays/run-request.ts +143 -9
  5. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  6. package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +31 -4
  7. package/dist/bundling-sources/sdk/src/tool-calls.ts +1 -1
  8. package/dist/bundling-sources/sdk/src/types.ts +7 -1
  9. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +100 -9
  10. package/dist/bundling-sources/shared_libs/play-data-plane/sheet-column-storage.ts +32 -3
  11. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +126 -41
  12. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +231 -25
  13. package/dist/bundling-sources/shared_libs/play-runtime/daytona-runtime-config.ts +9 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machines.ts +130 -19
  15. package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-registry.ts +105 -0
  16. package/dist/bundling-sources/shared_libs/play-runtime/execute-server-timing.ts +4 -2
  17. package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +194 -56
  18. package/dist/bundling-sources/shared_libs/play-runtime/log-provenance.ts +11 -6
  19. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/job.ts +3 -0
  20. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/ports.ts +2 -0
  21. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/postgres-adapter.ts +2 -1
  22. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +30 -0
  23. package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +195 -2
  24. package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +20 -1
  25. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger-projection-contract.ts +15 -0
  26. package/dist/bundling-sources/shared_libs/play-runtime/run-snapshot-stream.ts +2 -2
  27. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +102 -23
  28. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/progress-sidecar.ts +9 -1
  29. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-control-transport.ts +25 -5
  30. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +133 -82
  31. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +58 -16
  32. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-sandbox-absence.ts +171 -0
  33. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-session-execution.ts +69 -0
  34. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +100 -40
  35. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/types.ts +8 -0
  36. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +67 -9
  37. package/dist/bundling-sources/shared_libs/play-runtime/runtime-incident-drills.ts +5 -5
  38. package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-store-adapter.ts +6 -3
  39. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-errors.ts +14 -0
  40. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-row-writer.ts +87 -31
  41. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/contract.ts +18 -0
  42. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/index.ts +19 -0
  43. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +14 -0
  44. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +204 -6
  45. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +39 -0
  46. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/ambiguous-modal-create-state.ts +21 -0
  47. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/compute-billing-job-state.ts +23 -0
  48. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/integration-operation-value-retirement-state.ts +25 -0
  49. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/integration-operation-value-retirement.ts +15 -1
  50. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/outbox-repair-operation-state.ts +30 -0
  51. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/play-run-recovery.ts +12 -1
  52. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +26 -0
  53. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-scope.ts +44 -15
  54. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +60 -11
  55. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +743 -70
  56. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +6 -1
  57. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +17 -0
  58. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +34 -34
  59. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/sandbox-cleanup-job-state.ts +23 -0
  60. package/dist/bundling-sources/shared_libs/play-runtime/suspension.ts +12 -0
  61. package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +21 -0
  62. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +1 -1
  63. package/dist/bundling-sources/shared_libs/plays/source-authoring-edition.ts +1 -1
  64. package/dist/bundling-sources/shared_libs/product-notifications/destination-state.ts +93 -0
  65. package/dist/cli/auth-ABZBH55L.js +43 -0
  66. package/dist/cli/{auth-2NXF6Q3Q.mjs → auth-OWMUENCU.mjs} +5 -5
  67. package/dist/cli/{billing-5PW4L5WD.js → billing-2FMNQGOX.js} +80 -80
  68. package/dist/cli/{billing-W2Y4EOZP.mjs → billing-JX4H3VFF.mjs} +7 -7
  69. package/dist/cli/{chunk-UGBZ6MCR.js → chunk-2ILND7XX.js} +2 -2
  70. package/dist/cli/{chunk-25IGCYJP.mjs → chunk-2ZEQ43B7.mjs} +3 -3
  71. package/dist/cli/{chunk-J7S3DJB4.mjs → chunk-3DBW6C7M.mjs} +13 -4
  72. package/dist/cli/{chunk-7APXZ3CX.mjs → chunk-3DYU3JQN.mjs} +2 -2
  73. package/dist/cli/{chunk-VFEW53L5.js → chunk-3OF7NSGR.js} +322 -294
  74. package/dist/cli/{chunk-UDF2CY4D.mjs → chunk-3Z24NKW7.mjs} +62 -34
  75. package/dist/cli/{chunk-62XGOB2D.js → chunk-5DCQWQCP.js} +26 -26
  76. package/dist/cli/{chunk-4X23YY2E.mjs → chunk-62PJ6PK7.mjs} +5 -5
  77. package/dist/cli/{chunk-YL64JIQ7.mjs → chunk-676NZ7K4.mjs} +1 -1
  78. package/dist/cli/{chunk-T5GZZJ7O.js → chunk-775AZTO7.js} +323 -247
  79. package/dist/cli/{chunk-C3LJSOQ6.mjs → chunk-ACTUAZYP.mjs} +5 -5
  80. package/dist/cli/{chunk-R2OR4RHV.js → chunk-AFADYKFE.js} +8 -8
  81. package/dist/cli/{chunk-GVAENVIG.js → chunk-AUQQVDAB.js} +110 -21
  82. package/dist/cli/{chunk-GONUMUBM.js → chunk-BSKPQB2P.js} +7 -7
  83. package/dist/cli/chunk-C6QWRSMQ.js +42 -0
  84. package/dist/cli/{chunk-AK7UKQ5R.js → chunk-CSBMKHTV.js} +5 -5
  85. package/dist/cli/{chunk-PRL7EKJZ.mjs → chunk-CW6TAQBF.mjs} +15 -4
  86. package/dist/cli/{chunk-75IIHFN6.js → chunk-DMNVM34J.js} +5 -4
  87. package/dist/cli/{chunk-IEV5UWPN.mjs → chunk-E73JXJA3.mjs} +1 -1
  88. package/dist/cli/{chunk-DS455RPF.js → chunk-EC2CVPN5.js} +3 -3
  89. package/dist/cli/{chunk-B7HQL77V.js → chunk-ECIXZNSW.js} +87 -76
  90. package/dist/cli/{chunk-JJSLEMQQ.mjs → chunk-FJY6K3BG.mjs} +93 -17
  91. package/dist/cli/{chunk-FK47YUPC.mjs → chunk-G5PI3RNT.mjs} +1 -1
  92. package/dist/cli/{chunk-GRE3ID5E.mjs → chunk-GHHJWCMD.mjs} +2 -1
  93. package/dist/cli/{chunk-2JWG2H2N.js → chunk-HKGXGGIV.js} +1 -1
  94. package/dist/cli/{chunk-2MKX3HV3.js → chunk-IHMYIHF4.js} +5 -5
  95. package/dist/cli/{chunk-SD7QWZTV.mjs → chunk-INW22YP7.mjs} +1 -1
  96. package/dist/cli/{chunk-OWUZKXE7.mjs → chunk-J7EENGKJ.mjs} +1 -1
  97. package/dist/cli/{chunk-AWAFYRFV.mjs → chunk-JD6HKNKD.mjs} +1 -1
  98. package/dist/cli/{chunk-UY7OXFVU.js → chunk-JQXUWYWX.js} +13 -13
  99. package/dist/cli/{chunk-GGJQ4HJW.mjs → chunk-KZTNNLIL.mjs} +2 -2
  100. package/dist/cli/{chunk-NREZRYPU.mjs → chunk-L352NOE3.mjs} +2 -2
  101. package/dist/cli/{chunk-WI2HNYQX.js → chunk-L7IQ3DFH.js} +53 -53
  102. package/dist/cli/{chunk-4IOY2SCQ.js → chunk-LOX3BISD.js} +4 -4
  103. package/dist/cli/{chunk-XRIQN6EP.js → chunk-NKPTM7SK.js} +7 -7
  104. package/dist/cli/{chunk-5ICAG4RE.js → chunk-NLRTFJGH.js} +14 -14
  105. package/dist/cli/{chunk-WKB6Y43W.js → chunk-NRNWPWBW.js} +37 -37
  106. package/dist/cli/{chunk-HNRELVCS.mjs → chunk-ONONSV2Q.mjs} +96 -7
  107. package/dist/cli/{chunk-MYB6JVSD.js → chunk-OW4OTEFF.js} +16 -16
  108. package/dist/cli/{chunk-ISP7ZENV.mjs → chunk-RZE5I2XJ.mjs} +4 -4
  109. package/dist/cli/{chunk-5LHU7NUS.js → chunk-S3WQJ5VG.js} +3 -3
  110. package/dist/cli/{chunk-EDMCD7MX.mjs → chunk-SR6S4EYG.mjs} +5 -5
  111. package/dist/cli/{chunk-2T4OSJEH.js → chunk-T4G2T5DS.js} +21 -21
  112. package/dist/cli/{chunk-EGHYGTJM.mjs → chunk-TMCC7ORQ.mjs} +1 -1
  113. package/dist/cli/{chunk-SCPFOH5Z.mjs → chunk-TSCUWWTM.mjs} +1 -1
  114. package/dist/cli/{chunk-7TKLISLM.js → chunk-TVW6USSG.js} +3 -3
  115. package/dist/cli/{chunk-QSYA6VE4.js → chunk-U6WEGDD3.js} +2 -2
  116. package/dist/cli/{chunk-FGEC5SWP.mjs → chunk-UPHXGZCE.mjs} +4 -4
  117. package/dist/cli/{chunk-5JCXS4MP.js → chunk-UQ3LQ6IF.js} +5 -5
  118. package/dist/cli/{chunk-JYEZ6BWX.mjs → chunk-VZYTLWOM.mjs} +2 -2
  119. package/dist/cli/{chunk-FAZTLYJO.mjs → chunk-W33OL4F2.mjs} +2 -2
  120. package/dist/cli/{chunk-ZM2YPJQJ.js → chunk-XK5DMLZE.js} +5 -1
  121. package/dist/cli/{chunk-LJ5747UC.mjs → chunk-XRDXNAAY.mjs} +5 -1
  122. package/dist/cli/{chunk-S24CK3CJ.mjs → chunk-YDA3PMKK.mjs} +3 -3
  123. package/dist/cli/{csv-EKEFLUIW.js → csv-HFEQPGNY.js} +13 -13
  124. package/dist/cli/{csv-DIFVIR23.mjs → csv-OHF3Y5KB.mjs} +4 -4
  125. package/dist/cli/{db-DOW4EVEU.mjs → db-M456OUXD.mjs} +7 -7
  126. package/dist/cli/{db-S7DDRUHX.js → db-VLQKCYQS.js} +28 -28
  127. package/dist/cli/describe-CP35DZ5Z.js +49 -0
  128. package/dist/cli/{describe-KSZFOWKV.mjs → describe-M6VXFYVL.mjs} +21 -21
  129. package/dist/cli/describe-core.d.mts +3 -3
  130. package/dist/cli/describe-core.d.ts +3 -3
  131. package/dist/cli/describe-core.js +4 -4
  132. package/dist/cli/describe-core.mjs +3 -3
  133. package/dist/cli/{executions-CAG7YC5K.mjs → executions-4FGRBPJF.mjs} +7 -7
  134. package/dist/cli/{executions-3DU5IXB6.js → executions-GKINJZI6.js} +9 -9
  135. package/dist/cli/{feedback-BQMPTE47.mjs → feedback-D2WMGK3V.mjs} +4 -4
  136. package/dist/cli/{feedback-I65JMCP2.js → feedback-ZH5K7WV7.js} +8 -8
  137. package/dist/cli/git-IDALMZDN.js +25 -0
  138. package/dist/cli/{git-UQUCD7XZ.mjs → git-OCIJ5ME4.mjs} +5 -5
  139. package/dist/cli/index.js +142 -139
  140. package/dist/cli/index.mjs +45 -42
  141. package/dist/cli/{legacy-noops-OLNT2BG5.js → legacy-noops-QNIVP7LO.js} +8 -8
  142. package/dist/cli/{legacy-noops-JXKLHUI3.mjs → legacy-noops-V6Q2X34P.mjs} +5 -5
  143. package/dist/cli/{monitors-DLTHHAFQ.mjs → monitors-2USHTG5G.mjs} +8 -8
  144. package/dist/cli/{monitors-Z5X56AZN.js → monitors-5DNK7W2K.js} +92 -92
  145. package/dist/cli/{org-XBHJLKUG.js → org-RPGM5AN4.js} +73 -73
  146. package/dist/cli/{org-6EZZHD3M.mjs → org-TL2YPYSE.mjs} +7 -7
  147. package/dist/cli/{pages-XVJ34SCN.js → pages-PNUKPFWV.js} +18 -18
  148. package/dist/cli/{pages-MYXROSVK.mjs → pages-XDEW6EE3.mjs} +7 -7
  149. package/dist/cli/{play-ACC4T2XQ.js → play-F5LHRKV5.js} +858 -632
  150. package/dist/cli/{play-5PV4LAHE.mjs → play-WINNQ4HZ.mjs} +372 -146
  151. package/dist/cli/{providers-JCI3KNE4.js → providers-BD4IS5U5.js} +10 -10
  152. package/dist/cli/{providers-2DLUGIFF.mjs → providers-PXGL3FRE.mjs} +7 -7
  153. package/dist/cli/{quickstart-PDSQEDLD.js → quickstart-7LVF6HZF.js} +6 -6
  154. package/dist/cli/{quickstart-NSL3C76K.mjs → quickstart-XTH3UQWZ.mjs} +4 -4
  155. package/dist/cli/{run-X5MXCM4P.mjs → run-MBMUENR7.mjs} +26 -26
  156. package/dist/cli/{run-UCFMHOQC.js → run-NH2BAWPA.js} +41 -41
  157. package/dist/cli/{search-RPEMXV6N.mjs → search-BMRWBV66.mjs} +8 -8
  158. package/dist/cli/search-R3MQJQMT.js +32 -0
  159. package/dist/cli/{search-output-MZH3HLVE.js → search-output-5NNT337U.js} +22 -16
  160. package/dist/cli/{search-output-6UO47B7G.mjs → search-output-QKKRD4MF.mjs} +14 -8
  161. package/dist/cli/{secrets-NLEQURD3.mjs → secrets-AWEXBTJV.mjs} +7 -7
  162. package/dist/cli/{secrets-UFBASYGY.js → secrets-KQSTOREN.js} +16 -16
  163. package/dist/cli/{sessions-JYH4DBEE.js → sessions-DSPLZYCJ.js} +6 -6
  164. package/dist/cli/{sessions-3ALFLWVU.mjs → sessions-RO25Q67X.mjs} +5 -5
  165. package/dist/cli/{settings-MQYKNAMB.js → settings-7JXIKNKI.js} +79 -79
  166. package/dist/cli/{settings-YPRILREA.mjs → settings-JMGXGK4Z.mjs} +12 -12
  167. package/dist/cli/{setup-5IGSHH4E.js → setup-5QFAQQRW.js} +47 -47
  168. package/dist/cli/{setup-DK4GM227.mjs → setup-ZQZ47FHB.mjs} +9 -9
  169. package/dist/cli/skills-EDZXY7DV.js +33 -0
  170. package/dist/cli/{skills-KYBZH3IT.mjs → skills-W3H2DL56.mjs} +7 -7
  171. package/dist/cli/{tools-4B2MHNBN.mjs → tools-2BZCVNBS.mjs} +19 -19
  172. package/dist/cli/tools-2EY2ETCZ.js +56 -0
  173. package/dist/cli/{update-S6VEO7NB.mjs → update-GAWYMGAW.mjs} +9 -9
  174. package/dist/cli/update-UKDQKNBY.js +33 -0
  175. package/dist/cli/{workflow-KXZZYFEF.mjs → workflow-M6LLHQ2I.mjs} +8 -8
  176. package/dist/cli/{workflow-FU2XVPUK.js → workflow-ZPTDFPKW.js} +18 -18
  177. package/dist/{client-DJ3r8VQJ.d.mts → client-BkbDHRIg.d.mts} +1 -1
  178. package/dist/{client-JPSNljtj.d.ts → client-D3hVHXjK.d.ts} +1 -1
  179. package/dist/{client-core-3SJlNsKU.d.mts → client-core-BZoSMKcY.d.mts} +30 -15
  180. package/dist/{client-core-rCoQ5Xz3.d.ts → client-core-DUdVqO_m.d.ts} +30 -15
  181. package/dist/{compiler-manifest-gkO9ZkVg.d.mts → compiler-manifest-BFTwq1HI.d.mts} +1 -1
  182. package/dist/{compiler-manifest-gkO9ZkVg.d.ts → compiler-manifest-BFTwq1HI.d.ts} +1 -1
  183. package/dist/{errors-Cc92LKH-.d.ts → errors-c3pMsylw.d.ts} +1 -1
  184. package/dist/{errors-CeCCOKSA.d.mts → errors-w31ybrQM.d.mts} +1 -1
  185. package/dist/{index-DJQKdV76.d.ts → index-CQ-15-QL.d.ts} +1 -1
  186. package/dist/{index-DsqWJL3Q.d.mts → index-DvNtxucX.d.mts} +1 -1
  187. package/dist/index.d.mts +7 -7
  188. package/dist/index.d.ts +7 -7
  189. package/dist/index.js +10 -10
  190. package/dist/index.mjs +7 -7
  191. package/dist/install-integrity.json +123 -116
  192. package/dist/plays/bundle-play-file.d.mts +3 -3
  193. package/dist/plays/bundle-play-file.d.ts +3 -3
  194. package/dist/plays/bundle-play-file.mjs +2 -2
  195. package/dist/plays/play-description.d.mts +2 -2
  196. package/dist/plays/play-description.d.ts +2 -2
  197. package/dist/plays/run-request.d.mts +2 -2
  198. package/dist/plays/run-request.d.ts +2 -2
  199. package/dist/plays/run-request.js +12 -2
  200. package/dist/plays/run-request.mjs +11 -1
  201. package/dist/release.d.mts +1 -1
  202. package/dist/release.d.ts +1 -1
  203. package/dist/release.js +2 -2
  204. package/dist/release.mjs +1 -1
  205. package/dist/server.d.mts +4 -4
  206. package/dist/server.d.ts +4 -4
  207. package/dist/server.js +6 -6
  208. package/dist/server.mjs +4 -4
  209. package/package.json +1 -1
  210. package/dist/cli/auth-JHQKM6QY.js +0 -43
  211. package/dist/cli/chunk-PHDEQ6W3.js +0 -33
  212. package/dist/cli/describe-RXYQCJRR.js +0 -49
  213. package/dist/cli/git-ADIABNMQ.js +0 -25
  214. package/dist/cli/search-YILJZD36.js +0 -32
  215. package/dist/cli/skills-I4IUZN3U.js +0 -33
  216. package/dist/cli/tools-NLZR7ABS.js +0 -56
  217. package/dist/cli/update-RVDEUJTE.js +0 -33
@@ -2,11 +2,11 @@ import {
2
2
  addDescribeOptions,
3
3
  recordApiResponse,
4
4
  writeExecutionOutput
5
- } from "./chunk-AWAFYRFV.mjs";
5
+ } from "./chunk-JD6HKNKD.mjs";
6
6
  import {
7
7
  recentSearchRef,
8
8
  registerDeprecatedSearchCommand
9
- } from "./chunk-ISP7ZENV.mjs";
9
+ } from "./chunk-RZE5I2XJ.mjs";
10
10
  import {
11
11
  arrayField,
12
12
  formatModelDescription,
@@ -25,7 +25,7 @@ import {
25
25
  toolInputFieldsForDisplay,
26
26
  toolMetadataJsonForDescribe,
27
27
  toolOutputFieldsForDisplay
28
- } from "./chunk-SD7QWZTV.mjs";
28
+ } from "./chunk-INW22YP7.mjs";
29
29
  import {
30
30
  rateLimitQualifier
31
31
  } from "./chunk-JVHOS3K3.mjs";
@@ -35,7 +35,7 @@ import {
35
35
  import {
36
36
  Capability,
37
37
  observedMaxText
38
- } from "./chunk-LJ5747UC.mjs";
38
+ } from "./chunk-XRDXNAAY.mjs";
39
39
  import {
40
40
  playToolListGetterMode
41
41
  } from "./chunk-FR2ILQ4G.mjs";
@@ -48,10 +48,10 @@ import {
48
48
  } from "./chunk-FIVKWNMT.mjs";
49
49
  import {
50
50
  DeeplineClient
51
- } from "./chunk-7APXZ3CX.mjs";
51
+ } from "./chunk-3DYU3JQN.mjs";
52
52
  import {
53
53
  validateExecutionIdempotencyKey
54
- } from "./chunk-JJSLEMQQ.mjs";
54
+ } from "./chunk-FJY6K3BG.mjs";
55
55
  import {
56
56
  stableStringify
57
57
  } from "./chunk-UBKA33KY.mjs";
@@ -61,18 +61,18 @@ import {
61
61
  maybeAutoUpdateAndRelaunch,
62
62
  registerCompatibilityCatalog,
63
63
  runToolExecuteStage
64
- } from "./chunk-4X23YY2E.mjs";
64
+ } from "./chunk-62PJ6PK7.mjs";
65
65
  import {
66
66
  isCliTraceEnabled,
67
67
  recordCliTrace,
68
68
  resolveCliMaintenancePolicy
69
- } from "./chunk-YL64JIQ7.mjs";
69
+ } from "./chunk-676NZ7K4.mjs";
70
70
  import {
71
71
  checkSdkCompatibility,
72
72
  enforceSdkCompatibilityResponse,
73
73
  flushDeferredSkillsSyncNotices,
74
74
  syncSdkSkillsIfNeeded
75
- } from "./chunk-PRL7EKJZ.mjs";
75
+ } from "./chunk-CW6TAQBF.mjs";
76
76
  import {
77
77
  printCommandEnvelope,
78
78
  printCompactJson,
@@ -80,12 +80,12 @@ import {
80
80
  printJsonError,
81
81
  renderCommandEnvelopeText,
82
82
  shouldEmitJson
83
- } from "./chunk-NREZRYPU.mjs";
83
+ } from "./chunk-L352NOE3.mjs";
84
84
  import {
85
85
  readSdkSkillsLocalVersion,
86
86
  resolveConfig,
87
87
  sdkCliStateDirPath
88
- } from "./chunk-FK47YUPC.mjs";
88
+ } from "./chunk-G5PI3RNT.mjs";
89
89
  import {
90
90
  DeeplineError
91
91
  } from "./chunk-HBL4PM5Q.mjs";
@@ -1038,7 +1038,7 @@ Examples:
1038
1038
  process.exitCode = await narrowView();
1039
1039
  return;
1040
1040
  }
1041
- const { describeAnything } = await import("./describe-KSZFOWKV.mjs");
1041
+ const { describeAnything } = await import("./describe-M6VXFYVL.mjs");
1042
1042
  process.exitCode = await describeAnything(
1043
1043
  toolId,
1044
1044
  {
@@ -2461,6 +2461,19 @@ function printToolExecutionWarnings(toolId, params, metadata) {
2461
2461
  console.error(`Warning: ${requestWarning.message}`);
2462
2462
  }
2463
2463
  }
2464
+ function assertExecutableToolMetadata(toolId, metadata) {
2465
+ if (isPlayLikeTool(metadata)) {
2466
+ throw new DeeplineError(
2467
+ playLikeToolExecuteErrorMessage(
2468
+ toolId,
2469
+ metadata
2470
+ ),
2471
+ 400,
2472
+ "PLAY_ALIAS_USED_AS_TOOL"
2473
+ );
2474
+ }
2475
+ return metadata;
2476
+ }
2464
2477
  function valueAt(value, path) {
2465
2478
  const parts = path.split(".");
2466
2479
  let at = value;
@@ -2547,7 +2560,10 @@ async function executeToolForReceipt(input) {
2547
2560
  try {
2548
2561
  const cliInvocationId = getToolExecuteInvocationId() ?? beginToolExecuteCommand();
2549
2562
  const client = new DeeplineClient();
2550
- const metadata = input.metadata ?? await client.getTool(toolId, { cliInvocationId });
2563
+ const metadata = assertExecutableToolMetadata(
2564
+ toolId,
2565
+ input.metadata ?? await client.getTool(toolId, { cliInvocationId })
2566
+ );
2551
2567
  printToolExecutionWarnings(toolId, params, metadata);
2552
2568
  const responseIntent = output.csvOut?.length ? "row_artifact" : "raw";
2553
2569
  const recovery = ToolCallRecovery.open({
@@ -2627,7 +2643,10 @@ async function getToolExecutionReceipt(key, output) {
2627
2643
  );
2628
2644
  return 1;
2629
2645
  }
2630
- const metadata = await client.getTool(execution.toolId);
2646
+ const metadata = assertExecutableToolMetadata(
2647
+ execution.toolId,
2648
+ await client.getTool(execution.toolId)
2649
+ );
2631
2650
  return writeToolReceipt({
2632
2651
  key,
2633
2652
  metadata,
@@ -2662,7 +2681,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2662
2681
  }
2663
2682
  let metadata = compatibilityMetadata;
2664
2683
  const readMetadata = async () => {
2665
- if (metadata) return metadata;
2684
+ if (metadata) return assertExecutableToolMetadata(parsed.toolId, metadata);
2666
2685
  try {
2667
2686
  metadata = await runToolExecuteStage(
2668
2687
  "tool metadata lookup",
@@ -2684,17 +2703,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2684
2703
  }
2685
2704
  throw error;
2686
2705
  }
2687
- if (isPlayLikeTool(metadata)) {
2688
- throw new DeeplineError(
2689
- playLikeToolExecuteErrorMessage(
2690
- parsed.toolId,
2691
- metadata
2692
- ),
2693
- 400,
2694
- "PLAY_ALIAS_USED_AS_TOOL"
2695
- );
2696
- }
2697
- return metadata;
2706
+ return assertExecutableToolMetadata(parsed.toolId, metadata);
2698
2707
  };
2699
2708
  let executionWarningsPrinted = false;
2700
2709
  if (deferredCompatibility) {
@@ -2704,7 +2713,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2704
2713
  } catch {
2705
2714
  }
2706
2715
  metadata = deferredCompatibility.readMetadata() ?? metadata;
2707
- if (!metadata && preflightCompatibility?.response?.update_required !== true) {
2716
+ if (metadata) {
2717
+ try {
2718
+ assertExecutableToolMetadata(parsed.toolId, metadata);
2719
+ } catch (error) {
2720
+ if (error instanceof DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2721
+ if (wantsJson) printJsonError(error);
2722
+ else console.error(error.message);
2723
+ return 2;
2724
+ }
2725
+ throw error;
2726
+ }
2727
+ }
2728
+ if (!metadata && preflightCompatibility?.response?.update_required !== true && !preflightCompatibility?.error) {
2708
2729
  try {
2709
2730
  metadata = await readMetadata();
2710
2731
  } catch (error) {
@@ -2830,11 +2851,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2830
2851
  if (executeResult === void 0) return 0;
2831
2852
  rawResponse = executeResult;
2832
2853
  } catch (error) {
2854
+ let compatibility;
2855
+ let compatibilityReadFailed = false;
2833
2856
  if (deferredCompatibility) {
2834
- let compatibility;
2835
2857
  try {
2836
2858
  compatibility = await deferredCompatibility.result;
2837
2859
  } catch {
2860
+ compatibilityReadFailed = true;
2838
2861
  }
2839
2862
  metadata = deferredCompatibility.readMetadata() ?? metadata;
2840
2863
  const updateRequiredBeforeExecution = error instanceof DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
@@ -2852,11 +2875,16 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2852
2875
  if (error instanceof DeeplineError && error.code === "SDK_UPDATE_REQUIRED")
2853
2876
  throw error;
2854
2877
  let failure = error;
2855
- try {
2856
- await readMetadata();
2857
- } catch (diagnosticError) {
2858
- if (diagnosticError instanceof DeeplineError && diagnosticError.code === "PLAY_ALIAS_USED_AS_TOOL")
2859
- failure = diagnosticError;
2878
+ if (!(failure instanceof DeeplineError) || failure.code !== "PLAY_ALIAS_USED_AS_TOOL") {
2879
+ const warningPreflightWasAvailable = !deferredCompatibility || !compatibilityReadFailed && !compatibility?.error;
2880
+ if (metadata || warningPreflightWasAvailable) {
2881
+ try {
2882
+ await readMetadata();
2883
+ } catch (diagnosticError) {
2884
+ if (diagnosticError instanceof DeeplineError && diagnosticError.code === "PLAY_ALIAS_USED_AS_TOOL")
2885
+ failure = diagnosticError;
2886
+ }
2887
+ }
2860
2888
  }
2861
2889
  if (failure instanceof DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
2862
2890
  if (wantsJson) printJsonError(failure);
@@ -2892,7 +2920,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2892
2920
  maintenancePolicy
2893
2921
  );
2894
2922
  }
2895
- if (!metadata) {
2923
+ if (!metadata && !compatibility?.error) {
2896
2924
  try {
2897
2925
  metadata = await readMetadata();
2898
2926
  } catch {
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkGONUMUBMjs = require('./chunk-GONUMUBM.js');
5
+ var _chunkBSKPQB2Pjs = require('./chunk-BSKPQB2P.js');
6
6
 
7
7
 
8
- var _chunk5LHU7NUSjs = require('./chunk-5LHU7NUS.js');
8
+ var _chunkS3WQJ5VGjs = require('./chunk-S3WQJ5VG.js');
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
32
32
  return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
33
33
  }
34
34
  async function handleList(options) {
35
- const { http } = _chunkGONUMUBMjs.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunkBSKPQB2Pjs.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
39
+ _chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
40
40
  {
41
41
  projects: payload.projects,
42
42
  count: payload.projects.length,
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
73
73
  }
74
74
  }
75
75
  async function handleStatus(options) {
76
- const { http } = _chunkGONUMUBMjs.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunkBSKPQB2Pjs.getAuthedHttpClient.call(void 0, );
77
77
  const payload = await http.get("/api/v2/github/installation");
78
78
  const installation = payload.installation;
79
79
  const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
@@ -136,7 +136,7 @@ async function handleStatus(options) {
136
136
  )
137
137
  );
138
138
  }
139
- _chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
139
+ _chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
140
140
  {
141
141
  installation,
142
142
  installations: _nullishCoalesce(payload.installations, () => ( [])),
@@ -147,10 +147,10 @@ async function handleStatus(options) {
147
147
  );
148
148
  }
149
149
  async function handleRepos(options) {
150
- const { http } = _chunkGONUMUBMjs.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunkBSKPQB2Pjs.getAuthedHttpClient.call(void 0, );
151
151
  const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
152
152
  const payload = await http.get(`/api/v2/github/repos${query}`);
153
- _chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
153
+ _chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
154
154
  {
155
155
  installation: payload.installation,
156
156
  repositories: payload.repositories,
@@ -171,7 +171,7 @@ async function handleRepos(options) {
171
171
  }
172
172
  async function resolveRepoId(repo, installation) {
173
173
  if (/^\d+$/.test(repo)) return Number(repo);
174
- const { http } = _chunkGONUMUBMjs.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunkBSKPQB2Pjs.getAuthedHttpClient.call(void 0, );
175
175
  const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
176
176
  const payload = await http.get(
177
177
  `/api/v2/github/repos${query}`
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
188
188
  }
189
189
  async function handleLink(repo, options) {
190
190
  const repoId = await resolveRepoId(repo, options.installation);
191
- const { http } = _chunkGONUMUBMjs.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunkBSKPQB2Pjs.getAuthedHttpClient.call(void 0, );
192
192
  const payload = await http.post("/api/v2/play-projects", {
193
193
  repoId,
194
194
  ...options.installation !== void 0 ? { installationId: options.installation } : {},
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
197
197
  ...options.branch !== void 0 ? { productionBranch: options.branch } : {},
198
198
  ...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
199
199
  });
200
- _chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
200
+ _chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
201
201
  {
202
202
  project: payload.project,
203
203
  render: {
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
220
220
  );
221
221
  }
222
222
  async function handleGet(id, options) {
223
- const { http } = _chunkGONUMUBMjs.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunkBSKPQB2Pjs.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
227
+ _chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
228
228
  {
229
229
  project: payload.project,
230
230
  render: {
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
240
240
  );
241
241
  }
242
242
  async function handleSet(id, options) {
243
- const { http } = _chunkGONUMUBMjs.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunkBSKPQB2Pjs.getAuthedHttpClient.call(void 0, );
244
244
  const payload = await http.patch(
245
245
  `/api/v2/play-projects/${encodeURIComponent(id)}`,
246
246
  {
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
251
251
  ...options.disabled !== void 0 ? { disabled: options.disabled } : {}
252
252
  }
253
253
  );
254
- _chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
254
+ _chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
255
255
  {
256
256
  project: payload.project,
257
257
  render: {
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
264
264
  );
265
265
  }
266
266
  async function handleUnlink(id, options) {
267
- const { http } = _chunkGONUMUBMjs.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunkBSKPQB2Pjs.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
269
+ _chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
270
270
  {
271
271
  ok: true,
272
272
  id,
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
286
286
  );
287
287
  }
288
288
  async function handleConnect(options) {
289
- const baseUrl = _chunk5LHU7NUSjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkS3WQJ5VGjs.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkGONUMUBMjs.openInBrowser.call(void 0, connectUrl);
292
- _chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
291
+ const opened = _chunkBSKPQB2Pjs.openInBrowser.call(void 0, connectUrl);
292
+ _chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
293
293
  {
294
294
  connectUrl,
295
295
  browser: opened,
@@ -311,7 +311,7 @@ async function handleConnect(options) {
311
311
  );
312
312
  }
313
313
  async function handleDeploymentsList(options) {
314
- const { http } = _chunkGONUMUBMjs.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunkBSKPQB2Pjs.getAuthedHttpClient.call(void 0, );
315
315
  const query = new URLSearchParams();
316
316
  if (options.repo) query.set("projectId", options.repo);
317
317
  if (options.limit) query.set("limit", options.limit);
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
319
319
  const payload = await http.get(
320
320
  `/api/v2/deployments${suffix}`
321
321
  );
322
- _chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
322
+ _chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
323
323
  {
324
324
  deployments: payload.deployments,
325
325
  count: payload.deployments.length,
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
363
363
  ]);
364
364
  }
365
365
  async function handleDeploymentGet(id, options) {
366
- const { http } = _chunkGONUMUBMjs.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunkBSKPQB2Pjs.getAuthedHttpClient.call(void 0, );
367
367
  const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
368
368
  const playLines = renderDeploymentPlayLines(payload.deployment.results);
369
369
  const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
370
370
  const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
371
- _chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
371
+ _chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
372
372
  {
373
373
  deployment: payload.deployment,
374
374
  project: payload.project,
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
387
387
  );
388
388
  }
389
389
  async function handleDeploymentCancel(id, options) {
390
- const { http } = _chunkGONUMUBMjs.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunkBSKPQB2Pjs.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
392
+ _chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,
@@ -4,20 +4,20 @@ import {
4
4
  resolveUpdatePlan,
5
5
  runAutomaticUpdatePlan,
6
6
  shouldRunCliAutoUpdate
7
- } from "./chunk-EDMCD7MX.mjs";
7
+ } from "./chunk-SR6S4EYG.mjs";
8
8
  import {
9
9
  isCiEnvironment
10
- } from "./chunk-PRL7EKJZ.mjs";
10
+ } from "./chunk-CW6TAQBF.mjs";
11
11
  import {
12
12
  addJsonNotice,
13
13
  isJsonOutputMode
14
- } from "./chunk-NREZRYPU.mjs";
14
+ } from "./chunk-L352NOE3.mjs";
15
15
  import {
16
16
  resolveApiKeyForBaseUrl
17
- } from "./chunk-FK47YUPC.mjs";
17
+ } from "./chunk-G5PI3RNT.mjs";
18
18
  import {
19
19
  SDK_VERSION
20
- } from "./chunk-GRE3ID5E.mjs";
20
+ } from "./chunk-GHHJWCMD.mjs";
21
21
 
22
22
  // src/cli/compatibility-catalog.ts
23
23
  var readers = /* @__PURE__ */ new WeakMap();
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeRawStderr
3
- } from "./chunk-NREZRYPU.mjs";
3
+ } from "./chunk-L352NOE3.mjs";
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  import { InvalidArgumentError } from "commander";