deepline 0.3.541 → 0.3.543

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 (243) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +106 -2
  2. package/dist/bundling-sources/sdk/src/index.ts +7 -0
  3. package/dist/bundling-sources/sdk/src/integrations.ts +198 -0
  4. package/dist/bundling-sources/sdk/src/plays/run-request.ts +3 -0
  5. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  6. package/dist/bundling-sources/sdk/src/tool-calls.ts +35 -11
  7. package/dist/bundling-sources/sdk/src/types.ts +17 -1
  8. package/dist/bundling-sources/shared_libs/integration-contracts/calendar-delegation.ts +132 -0
  9. package/dist/bundling-sources/shared_libs/integration-contracts/tool-connection.ts +13 -0
  10. package/dist/bundling-sources/shared_libs/monitors/package.json +1 -1
  11. package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
  12. package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
  13. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +5 -5
  14. package/dist/bundling-sources/shared_libs/play-data-plane/sheet-contract.ts +34 -0
  15. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +11 -5
  16. package/dist/bundling-sources/shared_libs/play-runtime/baked-runner-image.ts +9 -7
  17. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +235 -12
  18. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +20 -1
  19. package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-janitor.ts +39 -30
  20. package/dist/bundling-sources/shared_libs/play-runtime/event-wait-tools.ts +2 -0
  21. package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +10 -4
  22. package/dist/bundling-sources/shared_libs/play-runtime/fleet-sandbox-sweep.ts +209 -0
  23. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +4 -0
  24. package/dist/bundling-sources/shared_libs/play-runtime/play-run-recovery-policy.ts +24 -1
  25. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/contracts.ts +2 -1
  26. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +6 -1
  27. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +37 -0
  28. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +42 -3
  29. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +7 -0
  30. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +15 -0
  31. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +23 -5
  32. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +320 -836
  33. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/vercel-sandbox.ts +1061 -0
  34. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +862 -0
  35. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +45 -0
  36. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/sandbox-create-outcome.ts +3 -1
  37. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/types.ts +11 -5
  38. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-contract.ts +20 -2
  39. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-placement-policy.ts +71 -34
  40. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-provider-profile.ts +286 -0
  41. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/contract.ts +4 -1
  42. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +12 -3
  43. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +7 -0
  44. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +46 -55
  45. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-required-env.ts +127 -5
  46. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +7 -1
  47. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +214 -0
  48. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/managed-sandbox-resource-sql.ts +118 -0
  49. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +1 -0
  50. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +226 -144
  51. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +1 -1
  52. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +2 -1
  53. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +11 -13
  54. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-operation.ts +42 -7
  55. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +2 -1
  56. package/dist/bundling-sources/shared_libs/play-runtime/suspension.ts +2 -2
  57. package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +17 -0
  58. package/dist/bundling-sources/shared_libs/play-runtime/vercel-sandbox-runtime-config.ts +217 -0
  59. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +23 -0
  60. package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +1 -0
  61. package/dist/bundling-sources/shared_libs/plays/script-entry.ts +76 -6
  62. package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +1 -0
  63. package/dist/bundling-sources/shared_libs/security/credential-revision.ts +50 -0
  64. package/dist/bundling-sources/shared_libs/security/internal-actor.ts +2 -1
  65. package/dist/bundling-sources/shared_libs/security/receipt-admission-token.ts +37 -0
  66. package/dist/cli/{auth-WJXA7XGM.mjs → auth-ITAELTOA.mjs} +5 -5
  67. package/dist/cli/auth-S6B5WUU5.js +43 -0
  68. package/dist/cli/{billing-34IV5DSV.js → billing-33XVFDUJ.js} +101 -101
  69. package/dist/cli/{billing-SHS4HMWT.mjs → billing-WZ7RVZW4.mjs} +12 -12
  70. package/dist/cli/{chunk-UKO6POLZ.js → chunk-23D224GI.js} +37 -17
  71. package/dist/cli/{chunk-DF7ARQRB.mjs → chunk-274WKLSY.mjs} +2 -2
  72. package/dist/cli/{chunk-GBAT5NMI.mjs → chunk-2HSZCQMT.mjs} +48 -6
  73. package/dist/cli/{chunk-VLEVVDWG.js → chunk-2JHYYB3F.js} +3 -3
  74. package/dist/cli/{chunk-FVZ5Y5L6.js → chunk-2KTGZKRE.js} +18 -18
  75. package/dist/cli/{chunk-6TZEDCN7.js → chunk-2LNTKICO.js} +3 -3
  76. package/dist/cli/{chunk-FYQWTENQ.js → chunk-2NCJQEZH.js} +53 -53
  77. package/dist/cli/{chunk-CNBPATLI.js → chunk-3JZXU5OB.js} +5 -5
  78. package/dist/cli/{chunk-323I5KQ5.js → chunk-46BEBZ3M.js} +497 -328
  79. package/dist/cli/{chunk-V4EYJKGJ.js → chunk-4JQEAYN3.js} +156 -17
  80. package/dist/cli/{chunk-XO2SGONT.mjs → chunk-4SKDSSPU.mjs} +2 -2
  81. package/dist/cli/{chunk-53QZ24DP.mjs → chunk-52YK3EII.mjs} +2 -2
  82. package/dist/cli/{chunk-S7NKIEHL.js → chunk-5MN3BKNB.js} +16 -16
  83. package/dist/cli/{chunk-XTR32PMA.mjs → chunk-5VIPTLRX.mjs} +1 -1
  84. package/dist/cli/{chunk-OLH2PHMC.mjs → chunk-6P7TGCHQ.mjs} +1 -1
  85. package/dist/cli/{chunk-QI76LGE3.mjs → chunk-6SJZMMD5.mjs} +37 -190
  86. package/dist/cli/chunk-7AUQTNLB.mjs +455 -0
  87. package/dist/cli/{chunk-GLINYHY7.mjs → chunk-AACKPOGA.mjs} +1 -1
  88. package/dist/cli/{chunk-Q66ADD4O.js → chunk-BGAUADV4.js} +41 -41
  89. package/dist/cli/{chunk-KQSTV4MW.js → chunk-BLYW6FFB.js} +60 -18
  90. package/dist/cli/{chunk-F3TLGM2U.js → chunk-C35NLLSA.js} +5 -5
  91. package/dist/cli/{chunk-LRPFCB2P.mjs → chunk-D6YAU3CF.mjs} +182 -13
  92. package/dist/cli/{chunk-FRPJSFNL.mjs → chunk-DH43ECTN.mjs} +7 -3
  93. package/dist/cli/{chunk-IZXMX65M.js → chunk-DI3GL3T6.js} +316 -469
  94. package/dist/cli/{chunk-OK4JMVTM.js → chunk-DUGTPVT7.js} +7 -7
  95. package/dist/cli/{chunk-UNDLNT3V.js → chunk-ECWOIXAV.js} +1 -1
  96. package/dist/cli/{chunk-KIYETQ6K.js → chunk-EHUG6EUT.js} +26 -26
  97. package/dist/cli/chunk-F6VSQ5LN.js +455 -0
  98. package/dist/cli/{chunk-JZNKEHXQ.mjs → chunk-FNW2SGPD.mjs} +2 -2
  99. package/dist/cli/{chunk-M6XIKHBS.js → chunk-GRCFX2EG.js} +4 -4
  100. package/dist/cli/{chunk-OVX3Q5Q3.mjs → chunk-GWNYLIF7.mjs} +1 -1
  101. package/dist/cli/{chunk-FTKX7OGB.mjs → chunk-HKJ26NRN.mjs} +5 -5
  102. package/dist/cli/{chunk-L2VKAASU.mjs → chunk-HXIR3VQL.mjs} +21 -0
  103. package/dist/cli/{chunk-POZPEDW7.js → chunk-J2F6F5GL.js} +7 -7
  104. package/dist/cli/{chunk-7AUQSK24.mjs → chunk-JXG7HWBA.mjs} +1 -1
  105. package/dist/cli/{chunk-Z2XA6YU4.mjs → chunk-LX35AXTN.mjs} +1 -0
  106. package/dist/cli/{chunk-WIV3E6Y7.js → chunk-MCBUWK5K.js} +22 -22
  107. package/dist/cli/{chunk-2TAGAPLL.js → chunk-NHKP2NSU.js} +2 -2
  108. package/dist/cli/{chunk-FANIRW74.mjs → chunk-NIPLY25A.mjs} +0 -2
  109. package/dist/cli/{chunk-UXXFCOE3.js → chunk-NLENABRU.js} +6 -6
  110. package/dist/cli/{chunk-DHC7EGI7.mjs → chunk-NR3O56FT.mjs} +5 -5
  111. package/dist/cli/{chunk-MPYM6TUO.js → chunk-O2KLWUNI.js} +44 -44
  112. package/dist/cli/{chunk-BMNLD63A.mjs → chunk-OAFKUHN5.mjs} +4 -4
  113. package/dist/cli/{chunk-RYYGNUNO.mjs → chunk-OELJKQOL.mjs} +24 -4
  114. package/dist/cli/{chunk-ZD673XAL.js → chunk-PX7XAVUC.js} +24 -20
  115. package/dist/cli/{chunk-FOCNY4GV.js → chunk-QFRMVI4S.js} +3 -3
  116. package/dist/cli/{chunk-AU7ZKXW5.mjs → chunk-R57UCXQG.mjs} +1 -1
  117. package/dist/cli/{chunk-IPVRMYWT.js → chunk-RKF263LR.js} +5 -5
  118. package/dist/cli/{chunk-CQDQNZGH.js → chunk-SL6MYJYM.js} +1 -0
  119. package/dist/cli/{chunk-BUCTWJBM.js → chunk-STXG2LFC.js} +2 -2
  120. package/dist/cli/{chunk-ECPCZVDM.mjs → chunk-SU4K4SUU.mjs} +1 -1
  121. package/dist/cli/{chunk-ABDXKELH.mjs → chunk-SYOPHFKB.mjs} +6 -6
  122. package/dist/cli/{chunk-H74CLEMB.mjs → chunk-SZNJENGT.mjs} +3 -3
  123. package/dist/cli/{chunk-5N4ENMYE.js → chunk-TBCNL2T5.js} +1 -1
  124. package/dist/cli/{chunk-E4CABWXL.js → chunk-TI6DTURF.js} +22 -1
  125. package/dist/cli/{chunk-C2LYJ3EX.js → chunk-UJ6GOV7K.js} +13 -13
  126. package/dist/cli/{chunk-GWHA4DAC.js → chunk-UV4RU2TE.js} +0 -2
  127. package/dist/cli/{chunk-6PJAC3P5.mjs → chunk-VSJEOSYL.mjs} +1 -1
  128. package/dist/cli/{chunk-NB4AIXEA.mjs → chunk-W2OPPSAZ.mjs} +3 -3
  129. package/dist/cli/{chunk-5LNWLEO3.mjs → chunk-XBM3KABD.mjs} +3 -3
  130. package/dist/cli/{chunk-VMIIUMAN.mjs → chunk-XFPVFWZR.mjs} +1 -1
  131. package/dist/cli/{chunk-UC5QFQGC.mjs → chunk-XSN6BAZT.mjs} +5 -5
  132. package/dist/cli/{chunk-IDDKNMFX.mjs → chunk-Y3T5GWYK.mjs} +153 -14
  133. package/dist/cli/{chunk-S6FF7Q5P.js → chunk-YE3T73BV.js} +10 -10
  134. package/dist/cli/{chunk-CY5LW6DW.js → chunk-YJYKZ2U3.js} +2 -2
  135. package/dist/cli/{chunk-F6QV42MC.mjs → chunk-Z7SXGOIQ.mjs} +1 -1
  136. package/dist/cli/{chunk-ZL2DER5D.mjs → chunk-ZRT2PNYY.mjs} +1 -1
  137. package/dist/cli/{chunk-WZMG2M65.mjs → chunk-ZSPBJB7I.mjs} +4 -4
  138. package/dist/cli/command-docs.js +3 -3
  139. package/dist/cli/command-docs.mjs +2 -2
  140. package/dist/cli/concurrent-runs-help-E4OYD3DS.js +21 -0
  141. package/dist/cli/{concurrent-runs-help-ZJ77SAEU.mjs → concurrent-runs-help-Z6ODNL4E.mjs} +7 -7
  142. package/dist/cli/{csv-PX7F5YJN.mjs → csv-5QW2HPHT.mjs} +4 -4
  143. package/dist/cli/{csv-MJLIZZOR.js → csv-SSOFTXHU.js} +13 -13
  144. package/dist/cli/{db-BNCNAY4G.js → db-4LK5AJNO.js} +29 -29
  145. package/dist/cli/{db-KPKGTHPA.mjs → db-K2JMR6EM.mjs} +8 -8
  146. package/dist/cli/describe-AC6PLEFP.js +50 -0
  147. package/dist/cli/describe-AXHQZHTT.mjs +50 -0
  148. package/dist/cli/describe-core.d.mts +3 -3
  149. package/dist/cli/describe-core.d.ts +3 -3
  150. package/dist/cli/describe-core.js +3 -3
  151. package/dist/cli/describe-core.mjs +2 -2
  152. package/dist/cli/{executions-YNOFR7T2.js → executions-AATJQQAQ.js} +10 -10
  153. package/dist/cli/{executions-NMQY4GEY.mjs → executions-FY2XTX2W.mjs} +8 -8
  154. package/dist/cli/{feedback-LWYEO5LL.mjs → feedback-MKBPRGS6.mjs} +6 -6
  155. package/dist/cli/{feedback-RCP5DPO6.js → feedback-QPVJER75.js} +14 -14
  156. package/dist/cli/{git-3O4PFP3Q.mjs → git-AGRFZR3K.mjs} +5 -5
  157. package/dist/cli/git-RUYFQEJX.js +25 -0
  158. package/dist/cli/index.js +150 -146
  159. package/dist/cli/index.mjs +49 -45
  160. package/dist/cli/integrations-OUQ6U33M.mjs +98 -0
  161. package/dist/cli/integrations-R6OUFZXI.js +98 -0
  162. package/dist/cli/{legacy-noops-KFP674JT.mjs → legacy-noops-DVL2RRKL.mjs} +6 -6
  163. package/dist/cli/{legacy-noops-ZPZRG366.js → legacy-noops-H7INM2QN.js} +9 -9
  164. package/dist/cli/{mcp-OCYUXQ6L.mjs → mcp-2Z2YVOLK.mjs} +72 -15
  165. package/dist/cli/{mcp-HCXDW6PL.js → mcp-33F7D7WI.js} +89 -32
  166. package/dist/cli/{monitors-7Q7YT22Y.js → monitors-KDUJHAKJ.js} +102 -102
  167. package/dist/cli/{monitors-V5KJIJJE.mjs → monitors-NZD2WIKK.mjs} +9 -9
  168. package/dist/cli/{org-S37K6QYH.js → org-4PQGHLEB.js} +164 -88
  169. package/dist/cli/{org-C3QLHX7U.mjs → org-EJW45RUA.mjs} +84 -8
  170. package/dist/cli/{play-MXQ2DKML.mjs → play-3CM5RT5J.mjs} +44 -25
  171. package/dist/cli/{play-MLREAYHJ.js → play-MLHMQL4G.js} +374 -355
  172. package/dist/cli/{providers-FDJ4ZOST.mjs → providers-BHYBJI4R.mjs} +10 -9
  173. package/dist/cli/{providers-PPDWY7DH.js → providers-YBJG7277.js} +13 -12
  174. package/dist/cli/{quickstart-2Z57AMB7.mjs → quickstart-LL3MR562.mjs} +4 -4
  175. package/dist/cli/{quickstart-BOWQM7S7.js → quickstart-O7L2NNGJ.js} +6 -6
  176. package/dist/cli/{run-66HXNJNV.js → run-HJ2AR6CM.js} +49 -48
  177. package/dist/cli/{run-5RNJGPQ2.mjs → run-OK545H5Q.mjs} +28 -27
  178. package/dist/cli/search-UUNS6BCC.js +32 -0
  179. package/dist/cli/{search-7G4FYQYO.mjs → search-Z5ZKMRTX.mjs} +9 -9
  180. package/dist/cli/{search-output-6K4FHCVI.mjs → search-output-Q5VHNUWG.mjs} +4 -4
  181. package/dist/cli/{search-output-L6ICQDBL.js → search-output-SVW4DETG.js} +6 -6
  182. package/dist/cli/{secrets-PWFJKF7G.js → secrets-ENQWMCB5.js} +17 -17
  183. package/dist/cli/{secrets-FTQPCU7O.mjs → secrets-QIKIEFWB.mjs} +8 -8
  184. package/dist/cli/{sessions-YSSAAQVJ.mjs → sessions-AETO22RF.mjs} +6 -6
  185. package/dist/cli/sessions-FNSUDERA.js +22 -0
  186. package/dist/cli/{settings-KN7GNZ5J.mjs → settings-G5RGRPFV.mjs} +16 -16
  187. package/dist/cli/{settings-CZEMF2WD.js → settings-OFLIFTMZ.js} +89 -89
  188. package/dist/cli/{setup-5WLHGH57.mjs → setup-G4N3X6KG.mjs} +9 -9
  189. package/dist/cli/{setup-RW4X6DX4.js → setup-QW7Y62XD.js} +49 -49
  190. package/dist/cli/skills-3IXIY2IV.js +36 -0
  191. package/dist/cli/{skills-DLVI7IZK.mjs → skills-QRFQGHNA.mjs} +7 -7
  192. package/dist/cli/{tools-JVYQF7P3.mjs → tools-52BH7UTF.mjs} +20 -19
  193. package/dist/cli/tools-MYBUMPKH.js +57 -0
  194. package/dist/cli/update-GT7574UU.js +34 -0
  195. package/dist/cli/{update-XKLXU7YS.mjs → update-SDGZLAGL.mjs} +9 -9
  196. package/dist/cli/{views-QRRCWP6B.mjs → views-3BIJFJMQ.mjs} +8 -8
  197. package/dist/cli/{views-YNUYFS3S.js → views-5QKAWYPI.js} +23 -23
  198. package/dist/cli/{workflow-YUKADKCJ.js → workflow-G67RPWVY.js} +19 -19
  199. package/dist/cli/{workflow-KYFMA4LM.mjs → workflow-QAK773FR.mjs} +9 -9
  200. package/dist/{client-B1fixtK1.d.ts → client-D1ga52xq.d.ts} +1 -1
  201. package/dist/{client-CE4QBVbp.d.mts → client-bd4QQIXo.d.mts} +1 -1
  202. package/dist/{client-core-C-3FVlVq.d.ts → client-core-B6eMVx8h.d.ts} +335 -4
  203. package/dist/{client-core-2BkNBgrx.d.mts → client-core-CqfWNf2Q.d.mts} +335 -4
  204. package/dist/{compiler-manifest-Cys06iYg.d.ts → compiler-manifest-BWFtsQIC.d.mts} +21 -0
  205. package/dist/{compiler-manifest-Cys06iYg.d.mts → compiler-manifest-BWFtsQIC.d.ts} +21 -0
  206. package/dist/{errors-B6eMjKcr.d.mts → errors-CwKXXtuu.d.mts} +1 -1
  207. package/dist/{errors-rdOUqcU2.d.ts → errors-Lm9_vJHZ.d.ts} +1 -1
  208. package/dist/{index-ejWadAL5.d.ts → index-3vJ-V9yw.d.ts} +1 -1
  209. package/dist/{index-CZdYO81A.d.mts → index-DjwsAt82.d.mts} +1 -1
  210. package/dist/index.d.mts +7 -7
  211. package/dist/index.d.ts +7 -7
  212. package/dist/index.js +12 -12
  213. package/dist/index.mjs +8 -8
  214. package/dist/install-integrity.json +147 -133
  215. package/dist/plays/bundle-play-file.d.mts +3 -3
  216. package/dist/plays/bundle-play-file.d.ts +3 -3
  217. package/dist/plays/bundle-play-file.mjs +23 -4
  218. package/dist/plays/play-description.d.mts +2 -2
  219. package/dist/plays/play-description.d.ts +2 -2
  220. package/dist/plays/run-request.d.mts +2 -2
  221. package/dist/plays/run-request.d.ts +2 -2
  222. package/dist/plays/run-request.js +2 -2
  223. package/dist/plays/run-request.mjs +1 -1
  224. package/dist/release.d.mts +1 -1
  225. package/dist/release.d.ts +1 -1
  226. package/dist/release.js +2 -2
  227. package/dist/release.mjs +1 -1
  228. package/dist/server.d.mts +4 -4
  229. package/dist/server.d.ts +4 -4
  230. package/dist/server.js +7 -7
  231. package/dist/server.mjs +5 -5
  232. package/package.json +1 -1
  233. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal-resource-usage.ts +0 -222
  234. package/dist/cli/auth-V76O674K.js +0 -43
  235. package/dist/cli/concurrent-runs-help-MFEPUP6Y.js +0 -21
  236. package/dist/cli/describe-5OUJA5TH.mjs +0 -49
  237. package/dist/cli/describe-7MF5AHIU.js +0 -49
  238. package/dist/cli/git-WLQ3BS6K.js +0 -25
  239. package/dist/cli/search-LTUIIV6W.js +0 -32
  240. package/dist/cli/sessions-2IVFGTPA.js +0 -22
  241. package/dist/cli/skills-WT42AZVH.js +0 -36
  242. package/dist/cli/tools-D6STYBQG.js +0 -56
  243. package/dist/cli/update-XTUKBC3J.js +0 -34
@@ -1,15 +1,16 @@
1
1
  import {
2
2
  getAuthedHttpClient,
3
+ openInBrowser,
3
4
  printCommandEnvelope
4
- } from "./chunk-FRPJSFNL.mjs";
5
+ } from "./chunk-DH43ECTN.mjs";
5
6
  import {
6
7
  cliFeatureEnabled
7
- } from "./chunk-AU7ZKXW5.mjs";
8
- import "./chunk-7AUQSK24.mjs";
8
+ } from "./chunk-R57UCXQG.mjs";
9
+ import "./chunk-JXG7HWBA.mjs";
9
10
  import "./chunk-CQBIO6HW.mjs";
10
11
  import "./chunk-DLIRSHV6.mjs";
11
12
  import "./chunk-JL2OTMSG.mjs";
12
- import "./chunk-ZL2DER5D.mjs";
13
+ import "./chunk-ZRT2PNYY.mjs";
13
14
  import "./chunk-WZYKRD7T.mjs";
14
15
  import "./chunk-KRD6H754.mjs";
15
16
 
@@ -94,18 +95,27 @@ async function handleConnect(name, url, forbidden, options) {
94
95
  if (!AUTH_MODES.includes(authMode)) {
95
96
  throw new Error("--auth must be none, headers, or oauth.");
96
97
  }
98
+ if (authMode === "oauth" && headers) {
99
+ throw new Error("OAuth connections do not take headers.");
100
+ }
97
101
  const { http } = getAuthedHttpClient();
98
- const response = await http.post(
99
- "/api/v2/mcp-connections",
100
- {
101
- name,
102
- url,
103
- auth_mode: authMode,
104
- ...headers ? { headers } : {},
105
- ...options.displayName ? { display_name: options.displayName } : {}
106
- }
107
- );
102
+ const response = await http.post("/api/v2/mcp-connections", {
103
+ name,
104
+ url,
105
+ auth_mode: authMode,
106
+ ...headers ? { headers } : {},
107
+ ...options.displayName ? { display_name: options.displayName } : {}
108
+ });
108
109
  const connection = response.connection;
110
+ if (response.authorization_url) {
111
+ printAuthorization(
112
+ connection.slug,
113
+ response.authorization_url,
114
+ connection,
115
+ options
116
+ );
117
+ return;
118
+ }
109
119
  printCommandEnvelope(
110
120
  {
111
121
  connection,
@@ -124,6 +134,38 @@ async function handleConnect(name, url, forbidden, options) {
124
134
  { json: options.json }
125
135
  );
126
136
  }
137
+ function printAuthorization(slug, authorizationUrl, connection, options) {
138
+ const opened = options.open !== false && !options.json ? openInBrowser(authorizationUrl) === "opened" : false;
139
+ printCommandEnvelope(
140
+ {
141
+ ...connection ? { connection } : {},
142
+ authorization_url: authorizationUrl,
143
+ browser_opened: opened,
144
+ render: {
145
+ sections: [
146
+ {
147
+ title: "mcp authorization",
148
+ lines: [
149
+ ...connection ? [renderConnection(connection)] : [],
150
+ opened ? "Opened your browser to authorize. If it did not open, visit:" : "Open this URL to authorize (it expires in 10 minutes):",
151
+ authorizationUrl,
152
+ `After approving, run: deepline mcp list (then deepline mcp tools ${slug})`
153
+ ]
154
+ }
155
+ ]
156
+ }
157
+ },
158
+ { json: options.json }
159
+ );
160
+ }
161
+ async function handleReauth(slug, options) {
162
+ const { http } = getAuthedHttpClient();
163
+ const { authorization_url } = await http.post(
164
+ `${base(slug)}/oauth`,
165
+ {}
166
+ );
167
+ printAuthorization(slug, authorization_url, void 0, options);
168
+ }
127
169
  async function handleList(options) {
128
170
  const { http } = getAuthedHttpClient();
129
171
  const { connections } = await http.get(
@@ -299,11 +341,15 @@ Notes:
299
341
  deepline tools execute mcp.notion.search_pages. New tools start off. If a
300
342
  server changes a tool's schema, calls fail until you approve the new version
301
343
  with deepline mcp enable. Header values are never accepted as arguments.
344
+ --auth oauth prints an authorization URL (and opens it); the connection is
345
+ active once you approve. If its tokens stop working, run deepline mcp reauth.
302
346
 
303
347
  Examples:
304
348
  deepline mcp servers
305
349
  deepline mcp connect deepwiki https://mcp.deepwiki.com/mcp
306
350
  deepline mcp connect vendor https://mcp.example.com/mcp --header-env Authorization=VENDOR_AUTH
351
+ deepline mcp connect linear https://mcp.linear.app/mcp --auth oauth
352
+ deepline mcp reauth linear
307
353
  printf '{"X-Api-Key":"..."}' | deepline mcp connect vendor https://mcp.example.com/mcp --headers-stdin
308
354
  deepline mcp list
309
355
  deepline mcp tools deepwiki
@@ -320,7 +366,10 @@ Examples:
320
366
  "--header-env <Name=ENV_VAR>",
321
367
  "Send a header whose value comes from an environment variable (repeatable)",
322
368
  collect
323
- ).option("--headers-stdin", "Read headers as a JSON object from piped stdin").option("--display-name <name>", "Display name for a new server").option("--json", "Emit JSON output").action(
369
+ ).option("--headers-stdin", "Read headers as a JSON object from piped stdin").option("--display-name <name>", "Display name for a new server").option(
370
+ "--no-open",
371
+ "With --auth oauth, print the authorization URL without opening a browser"
372
+ ).option("--json", "Emit JSON output").action(
324
373
  async (name, url, forbidden, options) => handleConnect(name, url, forbidden ?? [], options)
325
374
  );
326
375
  mcp.command("list").description("List this workspace's MCP connections.").option("--json", "Emit JSON output").action(async (options) => handleList(options));
@@ -343,6 +392,14 @@ Examples:
343
392
  ).option("--headers-stdin", "Read headers as a JSON object from piped stdin").option("--json", "Emit JSON output").action(
344
393
  async (name, forbidden, options) => handleSetHeaders(name, forbidden ?? [], options)
345
394
  );
395
+ mcp.command("reauth").description(
396
+ "Authorize an OAuth connection again and print the URL to approve."
397
+ ).argument("<name>", "Connection name").option(
398
+ "--no-open",
399
+ "Print the authorization URL without opening a browser"
400
+ ).option("--json", "Emit JSON output").action(
401
+ async (name, options) => handleReauth(name, options)
402
+ );
346
403
  mcp.command("remove").description("Delete a connection and its stored credentials.").argument("<name>", "Connection name").option("--json", "Emit JSON output").action(
347
404
  async (name, options) => handleRemove(name, options)
348
405
  );
@@ -1,15 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
3
 
4
- var _chunkZD673XALjs = require('./chunk-ZD673XAL.js');
5
4
 
5
+ var _chunkPX7XAVUCjs = require('./chunk-PX7XAVUC.js');
6
6
 
7
- var _chunkFOCNY4GVjs = require('./chunk-FOCNY4GV.js');
8
- require('./chunk-M6XIKHBS.js');
7
+
8
+ var _chunkQFRMVI4Sjs = require('./chunk-QFRMVI4S.js');
9
+ require('./chunk-GRCFX2EG.js');
9
10
  require('./chunk-2GJZLIKW.js');
10
11
  require('./chunk-XNYIZMNQ.js');
11
12
  require('./chunk-BBTKAASQ.js');
12
- require('./chunk-5N4ENMYE.js');
13
+ require('./chunk-TBCNL2T5.js');
13
14
  require('./chunk-OG64RBAC.js');
14
15
  require('./chunk-COGTRVWW.js');
15
16
 
@@ -94,19 +95,28 @@ async function handleConnect(name, url, forbidden, options) {
94
95
  if (!AUTH_MODES.includes(authMode)) {
95
96
  throw new Error("--auth must be none, headers, or oauth.");
96
97
  }
97
- const { http } = _chunkZD673XALjs.getAuthedHttpClient.call(void 0, );
98
- const response = await http.post(
99
- "/api/v2/mcp-connections",
100
- {
101
- name,
102
- url,
103
- auth_mode: authMode,
104
- ...headers ? { headers } : {},
105
- ...options.displayName ? { display_name: options.displayName } : {}
106
- }
107
- );
98
+ if (authMode === "oauth" && headers) {
99
+ throw new Error("OAuth connections do not take headers.");
100
+ }
101
+ const { http } = _chunkPX7XAVUCjs.getAuthedHttpClient.call(void 0, );
102
+ const response = await http.post("/api/v2/mcp-connections", {
103
+ name,
104
+ url,
105
+ auth_mode: authMode,
106
+ ...headers ? { headers } : {},
107
+ ...options.displayName ? { display_name: options.displayName } : {}
108
+ });
108
109
  const connection = response.connection;
109
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
110
+ if (response.authorization_url) {
111
+ printAuthorization(
112
+ connection.slug,
113
+ response.authorization_url,
114
+ connection,
115
+ options
116
+ );
117
+ return;
118
+ }
119
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
110
120
  {
111
121
  connection,
112
122
  render: {
@@ -124,12 +134,44 @@ async function handleConnect(name, url, forbidden, options) {
124
134
  { json: options.json }
125
135
  );
126
136
  }
137
+ function printAuthorization(slug, authorizationUrl, connection, options) {
138
+ const opened = options.open !== false && !options.json ? _chunkPX7XAVUCjs.openInBrowser.call(void 0, authorizationUrl) === "opened" : false;
139
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
140
+ {
141
+ ...connection ? { connection } : {},
142
+ authorization_url: authorizationUrl,
143
+ browser_opened: opened,
144
+ render: {
145
+ sections: [
146
+ {
147
+ title: "mcp authorization",
148
+ lines: [
149
+ ...connection ? [renderConnection(connection)] : [],
150
+ opened ? "Opened your browser to authorize. If it did not open, visit:" : "Open this URL to authorize (it expires in 10 minutes):",
151
+ authorizationUrl,
152
+ `After approving, run: deepline mcp list (then deepline mcp tools ${slug})`
153
+ ]
154
+ }
155
+ ]
156
+ }
157
+ },
158
+ { json: options.json }
159
+ );
160
+ }
161
+ async function handleReauth(slug, options) {
162
+ const { http } = _chunkPX7XAVUCjs.getAuthedHttpClient.call(void 0, );
163
+ const { authorization_url } = await http.post(
164
+ `${base(slug)}/oauth`,
165
+ {}
166
+ );
167
+ printAuthorization(slug, authorization_url, void 0, options);
168
+ }
127
169
  async function handleList(options) {
128
- const { http } = _chunkZD673XALjs.getAuthedHttpClient.call(void 0, );
170
+ const { http } = _chunkPX7XAVUCjs.getAuthedHttpClient.call(void 0, );
129
171
  const { connections } = await http.get(
130
172
  "/api/v2/mcp-connections"
131
173
  );
132
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
174
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
133
175
  {
134
176
  connections,
135
177
  count: connections.length,
@@ -148,11 +190,11 @@ async function handleList(options) {
148
190
  );
149
191
  }
150
192
  async function handleServers(options) {
151
- const { http } = _chunkZD673XALjs.getAuthedHttpClient.call(void 0, );
193
+ const { http } = _chunkPX7XAVUCjs.getAuthedHttpClient.call(void 0, );
152
194
  const { servers } = await http.get(
153
195
  "/api/v2/mcp-connections/servers"
154
196
  );
155
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
197
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
156
198
  {
157
199
  servers,
158
200
  render: {
@@ -170,13 +212,13 @@ async function handleServers(options) {
170
212
  );
171
213
  }
172
214
  async function handleTools(slug, options) {
173
- const { http } = _chunkZD673XALjs.getAuthedHttpClient.call(void 0, );
215
+ const { http } = _chunkPX7XAVUCjs.getAuthedHttpClient.call(void 0, );
174
216
  const query = new URLSearchParams();
175
217
  if (options.cursor) query.set("cursor", options.cursor);
176
218
  if (options.limit) query.set("limit", options.limit);
177
219
  const suffix = query.size > 0 ? `?${query.toString()}` : "";
178
220
  const page = await http.get(`${base(slug)}/tools${suffix}`);
179
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
221
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
180
222
  {
181
223
  connection: page.connection,
182
224
  tools: page.tools,
@@ -200,7 +242,7 @@ async function handleTools(slug, options) {
200
242
  }
201
243
  async function handleSetEnabled(slug, tools, enabled, options) {
202
244
  if (tools.length === 0) throw new Error("Name at least one tool.");
203
- const { http } = _chunkZD673XALjs.getAuthedHttpClient.call(void 0, );
245
+ const { http } = _chunkPX7XAVUCjs.getAuthedHttpClient.call(void 0, );
204
246
  const result = await http.patch(
205
247
  `${base(slug)}/tools`,
206
248
  {
@@ -208,7 +250,7 @@ async function handleSetEnabled(slug, tools, enabled, options) {
208
250
  enabled
209
251
  }
210
252
  );
211
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
253
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
212
254
  {
213
255
  updated: result.updated,
214
256
  enabled,
@@ -225,9 +267,9 @@ async function handleSetEnabled(slug, tools, enabled, options) {
225
267
  );
226
268
  }
227
269
  async function handleRefresh(slug, options) {
228
- const { http } = _chunkZD673XALjs.getAuthedHttpClient.call(void 0, );
270
+ const { http } = _chunkPX7XAVUCjs.getAuthedHttpClient.call(void 0, );
229
271
  const result = await http.post(`${base(slug)}/refresh`, {});
230
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
272
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
231
273
  {
232
274
  ...result,
233
275
  render: {
@@ -257,12 +299,12 @@ async function handleSetHeaders(slug, forbidden, options) {
257
299
  "Pass headers with --header-env Name=ENV_VAR or --headers-stdin."
258
300
  );
259
301
  }
260
- const { http } = _chunkZD673XALjs.getAuthedHttpClient.call(void 0, );
302
+ const { http } = _chunkPX7XAVUCjs.getAuthedHttpClient.call(void 0, );
261
303
  const { connection } = await http.put(
262
304
  `${base(slug)}/headers`,
263
305
  { headers }
264
306
  );
265
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
307
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
266
308
  {
267
309
  connection,
268
310
  render: {
@@ -275,9 +317,9 @@ async function handleSetHeaders(slug, forbidden, options) {
275
317
  );
276
318
  }
277
319
  async function handleRemove(slug, options) {
278
- const { http } = _chunkZD673XALjs.getAuthedHttpClient.call(void 0, );
320
+ const { http } = _chunkPX7XAVUCjs.getAuthedHttpClient.call(void 0, );
279
321
  await http.delete(base(slug));
280
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
322
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
281
323
  {
282
324
  deleted: slug,
283
325
  render: {
@@ -289,7 +331,7 @@ async function handleRemove(slug, options) {
289
331
  }
290
332
  var MCP_CONNECTIONS_FEATURE = "mcp-connections";
291
333
  function registerMcpCommands(program) {
292
- const mcp = program.command("mcp", { hidden: !_chunkFOCNY4GVjs.cliFeatureEnabled.call(void 0, MCP_CONNECTIONS_FEATURE) }).description(
334
+ const mcp = program.command("mcp", { hidden: !_chunkQFRMVI4Sjs.cliFeatureEnabled.call(void 0, MCP_CONNECTIONS_FEATURE) }).description(
293
335
  "Connect your workspace's remote MCP servers and call their tools."
294
336
  ).addHelpText(
295
337
  "after",
@@ -299,11 +341,15 @@ Notes:
299
341
  deepline tools execute mcp.notion.search_pages. New tools start off. If a
300
342
  server changes a tool's schema, calls fail until you approve the new version
301
343
  with deepline mcp enable. Header values are never accepted as arguments.
344
+ --auth oauth prints an authorization URL (and opens it); the connection is
345
+ active once you approve. If its tokens stop working, run deepline mcp reauth.
302
346
 
303
347
  Examples:
304
348
  deepline mcp servers
305
349
  deepline mcp connect deepwiki https://mcp.deepwiki.com/mcp
306
350
  deepline mcp connect vendor https://mcp.example.com/mcp --header-env Authorization=VENDOR_AUTH
351
+ deepline mcp connect linear https://mcp.linear.app/mcp --auth oauth
352
+ deepline mcp reauth linear
307
353
  printf '{"X-Api-Key":"..."}' | deepline mcp connect vendor https://mcp.example.com/mcp --headers-stdin
308
354
  deepline mcp list
309
355
  deepline mcp tools deepwiki
@@ -320,7 +366,10 @@ Examples:
320
366
  "--header-env <Name=ENV_VAR>",
321
367
  "Send a header whose value comes from an environment variable (repeatable)",
322
368
  collect
323
- ).option("--headers-stdin", "Read headers as a JSON object from piped stdin").option("--display-name <name>", "Display name for a new server").option("--json", "Emit JSON output").action(
369
+ ).option("--headers-stdin", "Read headers as a JSON object from piped stdin").option("--display-name <name>", "Display name for a new server").option(
370
+ "--no-open",
371
+ "With --auth oauth, print the authorization URL without opening a browser"
372
+ ).option("--json", "Emit JSON output").action(
324
373
  async (name, url, forbidden, options) => handleConnect(name, url, _nullishCoalesce(forbidden, () => ( [])), options)
325
374
  );
326
375
  mcp.command("list").description("List this workspace's MCP connections.").option("--json", "Emit JSON output").action(async (options) => handleList(options));
@@ -343,6 +392,14 @@ Examples:
343
392
  ).option("--headers-stdin", "Read headers as a JSON object from piped stdin").option("--json", "Emit JSON output").action(
344
393
  async (name, forbidden, options) => handleSetHeaders(name, _nullishCoalesce(forbidden, () => ( [])), options)
345
394
  );
395
+ mcp.command("reauth").description(
396
+ "Authorize an OAuth connection again and print the URL to approve."
397
+ ).argument("<name>", "Connection name").option(
398
+ "--no-open",
399
+ "Print the authorization URL without opening a browser"
400
+ ).option("--json", "Emit JSON output").action(
401
+ async (name, options) => handleReauth(name, options)
402
+ );
346
403
  mcp.command("remove").description("Delete a connection and its stored credentials.").argument("<name>", "Connection name").option("--json", "Emit JSON output").action(
347
404
  async (name, options) => handleRemove(name, options)
348
405
  );