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,14 +1,15 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } async function _asyncOptionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = await fn(value); } else if (op === 'call' || op === 'optionalCall') { value = await fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;
2
2
 
3
3
 
4
+ var _chunkEHUG6EUTjs = require('./chunk-EHUG6EUT.js');
4
5
 
5
6
 
6
7
 
7
8
 
8
- var _chunkUKO6POLZjs = require('./chunk-UKO6POLZ.js');
9
9
 
10
10
 
11
11
 
12
+ var _chunk23D224GIjs = require('./chunk-23D224GI.js');
12
13
 
13
14
 
14
15
 
@@ -18,15 +19,14 @@ var _chunkUKO6POLZjs = require('./chunk-UKO6POLZ.js');
18
19
 
19
20
 
20
21
 
21
- var _chunkOK4JMVTMjs = require('./chunk-OK4JMVTM.js');
22
22
 
23
23
 
24
- var _chunkS6FF7Q5Pjs = require('./chunk-S6FF7Q5P.js');
25
- require('./chunk-D3BCSAN7.js');
26
24
 
25
+ var _chunkDUGTPVT7js = require('./chunk-DUGTPVT7.js');
27
26
 
28
27
 
29
- var _chunkKIYETQ6Kjs = require('./chunk-KIYETQ6K.js');
28
+ var _chunkYE3T73BVjs = require('./chunk-YE3T73BV.js');
29
+ require('./chunk-D3BCSAN7.js');
30
30
 
31
31
 
32
32
 
@@ -41,20 +41,20 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
41
41
 
42
42
 
43
43
 
44
- var _chunkKQSTV4MWjs = require('./chunk-KQSTV4MW.js');
44
+ var _chunkBLYW6FFBjs = require('./chunk-BLYW6FFB.js');
45
45
 
46
46
 
47
- var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
47
+ var _chunk2JHYYB3Fjs = require('./chunk-2JHYYB3F.js');
48
48
 
49
49
 
50
50
  var _chunkCBV7AKWMjs = require('./chunk-CBV7AKWM.js');
51
51
 
52
52
 
53
53
 
54
- var _chunkF3TLGM2Ujs = require('./chunk-F3TLGM2U.js');
54
+ var _chunkC35NLLSAjs = require('./chunk-C35NLLSA.js');
55
55
 
56
56
 
57
- var _chunkCNBPATLIjs = require('./chunk-CNBPATLI.js');
57
+ var _chunk3JZXU5OBjs = require('./chunk-3JZXU5OB.js');
58
58
 
59
59
 
60
60
 
@@ -67,8 +67,8 @@ var _chunkCNBPATLIjs = require('./chunk-CNBPATLI.js');
67
67
 
68
68
 
69
69
 
70
- var _chunk323I5KQ5js = require('./chunk-323I5KQ5.js');
71
- require('./chunk-E4CABWXL.js');
70
+ var _chunk46BEBZ3Mjs = require('./chunk-46BEBZ3M.js');
71
+ require('./chunk-TI6DTURF.js');
72
72
 
73
73
 
74
74
 
@@ -82,7 +82,7 @@ require('./chunk-E4CABWXL.js');
82
82
 
83
83
 
84
84
 
85
- var _chunkCQDQNZGHjs = require('./chunk-CQDQNZGH.js');
85
+ var _chunkSL6MYJYMjs = require('./chunk-SL6MYJYM.js');
86
86
 
87
87
 
88
88
 
@@ -91,18 +91,18 @@ require('./chunk-XDVT3GOM.js');
91
91
 
92
92
 
93
93
 
94
- var _chunkUXXFCOE3js = require('./chunk-UXXFCOE3.js');
94
+ var _chunkNLENABRUjs = require('./chunk-NLENABRU.js');
95
95
 
96
96
 
97
97
 
98
98
 
99
99
 
100
- var _chunk2TAGAPLLjs = require('./chunk-2TAGAPLL.js');
101
- require('./chunk-MPYM6TUO.js');
100
+ var _chunkNHKP2NSUjs = require('./chunk-NHKP2NSU.js');
101
+ require('./chunk-O2KLWUNI.js');
102
102
 
103
103
 
104
104
 
105
- var _chunk6TZEDCN7js = require('./chunk-6TZEDCN7.js');
105
+ var _chunk2LNTKICOjs = require('./chunk-2LNTKICO.js');
106
106
 
107
107
 
108
108
  var _chunkR7J7CJPZjs = require('./chunk-R7J7CJPZ.js');
@@ -122,17 +122,17 @@ var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
122
122
 
123
123
 
124
124
 
125
- var _chunkZD673XALjs = require('./chunk-ZD673XAL.js');
126
- require('./chunk-FOCNY4GV.js');
125
+ var _chunkPX7XAVUCjs = require('./chunk-PX7XAVUC.js');
126
+ require('./chunk-QFRMVI4S.js');
127
127
 
128
128
 
129
- var _chunkM6XIKHBSjs = require('./chunk-M6XIKHBS.js');
129
+ var _chunkGRCFX2EGjs = require('./chunk-GRCFX2EG.js');
130
130
  require('./chunk-2GJZLIKW.js');
131
131
  require('./chunk-XNYIZMNQ.js');
132
132
 
133
133
 
134
134
  var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
135
- require('./chunk-5N4ENMYE.js');
135
+ require('./chunk-TBCNL2T5.js');
136
136
  require('./chunk-OG64RBAC.js');
137
137
 
138
138
 
@@ -2114,7 +2114,7 @@ function resolveField(key, command) {
2114
2114
  function printSettings(result, json, name) {
2115
2115
  result = { ...result, settings: parsePlaySettings(result.settings) };
2116
2116
  const selected = fields.filter(([key]) => !name || key === name);
2117
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
2117
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
2118
2118
  {
2119
2119
  ...result,
2120
2120
  settings: Object.fromEntries(
@@ -2158,7 +2158,7 @@ function registerPlaySettingsCommands(plays) {
2158
2158
  valueSyntax: field.cli.valueSyntax,
2159
2159
  examples: field.cli.examples
2160
2160
  }));
2161
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
2161
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
2162
2162
  {
2163
2163
  fields: descriptions,
2164
2164
  render: {
@@ -2183,7 +2183,7 @@ function registerPlaySettingsCommands(plays) {
2183
2183
  async (options, command) => {
2184
2184
  if (options.name !== void 0) resolveField(options.name, command);
2185
2185
  printSettings(
2186
- await new (0, _chunkCNBPATLIjs.DeeplineClient)().getPlaySettings(options.play),
2186
+ await new (0, _chunk3JZXU5OBjs.DeeplineClient)().getPlaySettings(options.play),
2187
2187
  options.json,
2188
2188
  options.name
2189
2189
  );
@@ -2214,7 +2214,7 @@ function registerPlaySettingsCommands(plays) {
2214
2214
  );
2215
2215
  }
2216
2216
  if (options.dryRun) {
2217
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
2217
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
2218
2218
  {
2219
2219
  dryRun: true,
2220
2220
  play,
@@ -2235,7 +2235,7 @@ function registerPlaySettingsCommands(plays) {
2235
2235
  return;
2236
2236
  }
2237
2237
  printSettings(
2238
- await new (0, _chunkCNBPATLIjs.DeeplineClient)().updatePlaySettings(play, patch),
2238
+ await new (0, _chunk3JZXU5OBjs.DeeplineClient)().updatePlaySettings(play, patch),
2239
2239
  options.json
2240
2240
  );
2241
2241
  };
@@ -2261,13 +2261,13 @@ function registerPlaySettingsCommands(plays) {
2261
2261
  "--root must be person or team; --limit must be 1\u2013100.",
2262
2262
  { exitCode: 2 }
2263
2263
  );
2264
- const page = await new (0, _chunkCNBPATLIjs.DeeplineClient)().listPlaySettingsPaths({
2264
+ const page = await new (0, _chunk3JZXU5OBjs.DeeplineClient)().listPlaySettingsPaths({
2265
2265
  root: options.root,
2266
2266
  limit,
2267
2267
  cursor: options.cursor
2268
2268
  });
2269
2269
  const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
2270
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
2270
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
2271
2271
  {
2272
2272
  ...page,
2273
2273
  nextCommand,
@@ -2318,7 +2318,7 @@ function registerPlaySettingsCommands(plays) {
2318
2318
  root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
2319
2319
  folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
2320
2320
  };
2321
- const client = new (0, _chunkCNBPATLIjs.DeeplineClient)();
2321
+ const client = new (0, _chunk3JZXU5OBjs.DeeplineClient)();
2322
2322
  const paths = [];
2323
2323
  let cursor;
2324
2324
  do {
@@ -2380,7 +2380,7 @@ function registerPlaySettingsCommands(plays) {
2380
2380
  moved.push(move.playName);
2381
2381
  }
2382
2382
  }
2383
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
2383
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
2384
2384
  {
2385
2385
  dryRun: Boolean(options.dryRun),
2386
2386
  from: options.from,
@@ -2508,7 +2508,7 @@ function triggerLines(view) {
2508
2508
  return lines;
2509
2509
  }
2510
2510
  function printView(view, json) {
2511
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
2511
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
2512
2512
  {
2513
2513
  ...view,
2514
2514
  render: {
@@ -2521,7 +2521,7 @@ function printView(view, json) {
2521
2521
  );
2522
2522
  }
2523
2523
  function printResult(result, json) {
2524
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
2524
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
2525
2525
  {
2526
2526
  ...result,
2527
2527
  render: {
@@ -2551,7 +2551,7 @@ async function mutate(command, options, build) {
2551
2551
  usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
2552
2552
  }
2553
2553
  if (options.dryRun) {
2554
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
2554
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
2555
2555
  {
2556
2556
  dryRun: true,
2557
2557
  play: options.play,
@@ -2570,7 +2570,7 @@ async function mutate(command, options, build) {
2570
2570
  return;
2571
2571
  }
2572
2572
  printResult(
2573
- await new (0, _chunkCNBPATLIjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2573
+ await new (0, _chunk3JZXU5OBjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2574
2574
  options.json
2575
2575
  );
2576
2576
  }
@@ -2603,7 +2603,7 @@ function registerPlayTriggerConfigCommands(plays) {
2603
2603
  }).addHelpText("after", help2);
2604
2604
  trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON").addHelpText("after", help2).action(async (options) => {
2605
2605
  printView(
2606
- await new (0, _chunkCNBPATLIjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2606
+ await new (0, _chunk3JZXU5OBjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2607
2607
  options.json
2608
2608
  );
2609
2609
  });
@@ -2647,7 +2647,7 @@ function registerPlayTriggerConfigCommands(plays) {
2647
2647
  if (options.auth === void 0) {
2648
2648
  if (secrets.length || options.header || options.signaturePrefix)
2649
2649
  usage(setWebhook, "--secret/--header need --auth.");
2650
- const current = await new (0, _chunkCNBPATLIjs.DeeplineClient)().getPlayTriggerConfig(
2650
+ const current = await new (0, _chunk3JZXU5OBjs.DeeplineClient)().getPlayTriggerConfig(
2651
2651
  options.play
2652
2652
  );
2653
2653
  return {
@@ -2724,7 +2724,7 @@ var KIND_DESCRIPTIONS = {
2724
2724
  "receipt.skipped": "Saved work result: skipped.",
2725
2725
  "runtime.event": "Other event."
2726
2726
  };
2727
- var RUN_LOGS_KIND_HELP = _chunk323I5KQ5js.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2727
+ var RUN_LOGS_KIND_HELP = _chunk46BEBZ3Mjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2728
2728
  kind,
2729
2729
  description: KIND_DESCRIPTIONS[kind]
2730
2730
  }));
@@ -2861,9 +2861,9 @@ function configureRunQueryCommandErrors(command, resource) {
2861
2861
  const args = program.args;
2862
2862
  if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
2863
2863
  error.exitCode = 2;
2864
- if (_chunkZD673XALjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2865
- _chunkZD673XALjs.printJsonError.call(void 0,
2866
- Object.assign(new (0, _chunk323I5KQ5js.RunEventQueryInputError)(error.message), {
2864
+ if (_chunkPX7XAVUCjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2865
+ _chunkPX7XAVUCjs.printJsonError.call(void 0,
2866
+ Object.assign(new (0, _chunk46BEBZ3Mjs.RunEventQueryInputError)(error.message), {
2867
2867
  exitCode: 2,
2868
2868
  retryable: false
2869
2869
  })
@@ -2907,14 +2907,14 @@ function parseQuery(args, resource) {
2907
2907
  if (VALUE_FLAGS.has(flag)) {
2908
2908
  const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
2909
2909
  if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
2910
- throw new (0, _chunk323I5KQ5js.RunEventQueryInputError)(
2910
+ throw new (0, _chunk46BEBZ3Mjs.RunEventQueryInputError)(
2911
2911
  `${flag} requires a value. Use ${flag} <value>.`
2912
2912
  );
2913
2913
  }
2914
2914
  if (flag === "--sum") sums.push(value);
2915
2915
  else {
2916
2916
  if (values[flag] !== void 0) {
2917
- throw new (0, _chunk323I5KQ5js.RunEventQueryInputError)(
2917
+ throw new (0, _chunk46BEBZ3Mjs.RunEventQueryInputError)(
2918
2918
  `${flag} may only be supplied once.`
2919
2919
  );
2920
2920
  }
@@ -2928,12 +2928,12 @@ function parseQuery(args, resource) {
2928
2928
  }
2929
2929
  if (arg.startsWith("-")) {
2930
2930
  const correction = flag === "--log-level" ? "Use --level for structured severity filtering." : flag === "--out" || flag === "--failed" || flag === "--all" ? "Use this flag with a plain runs logs <run-id> text read." : "Use --step, --level, --query, --where, --count, --group-by or --fields; see runs logs --help.";
2931
- throw new (0, _chunk323I5KQ5js.RunEventQueryInputError)(
2931
+ throw new (0, _chunk46BEBZ3Mjs.RunEventQueryInputError)(
2932
2932
  `Unsupported query flag ${flag}. ${correction}`
2933
2933
  );
2934
2934
  }
2935
2935
  if (runId !== void 0) {
2936
- throw new (0, _chunk323I5KQ5js.RunEventQueryInputError)(
2936
+ throw new (0, _chunk46BEBZ3Mjs.RunEventQueryInputError)(
2937
2937
  `Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
2938
2938
  );
2939
2939
  }
@@ -2941,7 +2941,7 @@ function parseQuery(args, resource) {
2941
2941
  }
2942
2942
  if (switches.has("--fields")) {
2943
2943
  if (runId !== void 0) {
2944
- throw new (0, _chunk323I5KQ5js.RunEventQueryInputError)(
2944
+ throw new (0, _chunk46BEBZ3Mjs.RunEventQueryInputError)(
2945
2945
  "--fields does not use a run ID. Omit the positional run ID."
2946
2946
  );
2947
2947
  }
@@ -2954,18 +2954,18 @@ function parseQuery(args, resource) {
2954
2954
  )
2955
2955
  ];
2956
2956
  if (incompatible.length) {
2957
- throw new (0, _chunk323I5KQ5js.RunEventQueryInputError)(
2957
+ throw new (0, _chunk46BEBZ3Mjs.RunEventQueryInputError)(
2958
2958
  `--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
2959
2959
  );
2960
2960
  }
2961
2961
  }
2962
2962
  if (switches.has("--count") && values["--group-by"] !== void 0) {
2963
- throw new (0, _chunk323I5KQ5js.RunEventQueryInputError)(
2963
+ throw new (0, _chunk46BEBZ3Mjs.RunEventQueryInputError)(
2964
2964
  "--count cannot be combined with --group-by. Use --group-by for counts per group."
2965
2965
  );
2966
2966
  }
2967
2967
  if (sums.length && switches.has("--count")) {
2968
- throw new (0, _chunk323I5KQ5js.RunEventQueryInputError)(
2968
+ throw new (0, _chunk46BEBZ3Mjs.RunEventQueryInputError)(
2969
2969
  "--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
2970
2970
  );
2971
2971
  }
@@ -2973,7 +2973,7 @@ function parseQuery(args, resource) {
2973
2973
  if (operation === "count") {
2974
2974
  for (const flag of ["--limit", "--cursor", "--payloads"]) {
2975
2975
  if (values[flag] !== void 0 || switches.has(flag)) {
2976
- throw new (0, _chunk323I5KQ5js.RunEventQueryInputError)(
2976
+ throw new (0, _chunk46BEBZ3Mjs.RunEventQueryInputError)(
2977
2977
  `--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
2978
2978
  );
2979
2979
  }
@@ -3008,16 +3008,16 @@ function parseQuery(args, resource) {
3008
3008
  ];
3009
3009
  }
3010
3010
  }
3011
- const request = _chunk323I5KQ5js.normalizeRunEventOperationRequest.call(void 0, body);
3011
+ const request = _chunk46BEBZ3Mjs.normalizeRunEventOperationRequest.call(void 0, body);
3012
3012
  const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
3013
3013
  const backend = values["--runtime-backend"];
3014
3014
  if (backend && backend !== "daytona" && backend !== "modal") {
3015
- throw new (0, _chunk323I5KQ5js.RunEventQueryInputError)(
3015
+ throw new (0, _chunk46BEBZ3Mjs.RunEventQueryInputError)(
3016
3016
  "--runtime-backend must be daytona or modal."
3017
3017
  );
3018
3018
  }
3019
3019
  if (backend && !namespace) {
3020
- throw new (0, _chunk323I5KQ5js.RunEventQueryInputError)(
3020
+ throw new (0, _chunk46BEBZ3Mjs.RunEventQueryInputError)(
3021
3021
  "--runtime-backend requires --runtime-namespace."
3022
3022
  );
3023
3023
  }
@@ -3064,12 +3064,12 @@ async function handleRunEventQuery(args, resource = "logs") {
3064
3064
  const failure = error instanceof Error ? error : new Error(String(error));
3065
3065
  const record4 = failure;
3066
3066
  const status = record4.statusCode;
3067
- const exitCode = error instanceof _chunk323I5KQ5js.RunEventQueryInputError || status === 400 || status === 422 || record4.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record4.code === "CONFIG_ERROR" || record4.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
3067
+ const exitCode = error instanceof _chunk46BEBZ3Mjs.RunEventQueryInputError || status === 400 || status === 422 || record4.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record4.code === "CONFIG_ERROR" || record4.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
3068
3068
  const diagnostic = Object.assign(failure, {
3069
3069
  exitCode,
3070
3070
  retryable: exitCode === 5
3071
3071
  });
3072
- if (_chunkZD673XALjs.argsWantJson.call(void 0, args)) _chunkZD673XALjs.printJsonError.call(void 0, diagnostic);
3072
+ if (_chunkPX7XAVUCjs.argsWantJson.call(void 0, args)) _chunkPX7XAVUCjs.printJsonError.call(void 0, diagnostic);
3073
3073
  else console.error(`Error: ${diagnostic.message}`);
3074
3074
  return exitCode;
3075
3075
  }
@@ -3084,7 +3084,7 @@ async function executeRunEventQuery(args, resource) {
3084
3084
  ...criteria
3085
3085
  } = request;
3086
3086
  const options = { ...criteria, ...runtime ? { runtime } : {} };
3087
- const client = new (0, _chunkCNBPATLIjs.DeeplineClient)();
3087
+ const client = new (0, _chunk3JZXU5OBjs.DeeplineClient)();
3088
3088
  let result;
3089
3089
  if (request.operation === "fields") {
3090
3090
  result = await client.runs[resource].fields(runtime ? { runtime } : {});
@@ -3150,13 +3150,13 @@ async function executeRunEventQuery(args, resource) {
3150
3150
  lines.push(`Next page: ${nextPage}`);
3151
3151
  }
3152
3152
  }
3153
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
3153
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
3154
3154
  {
3155
3155
  ...result,
3156
3156
  ...nextPage ? { next: { page: nextPage } } : {},
3157
3157
  render: { sections: [{ title: `run ${resource}`, lines }] }
3158
3158
  },
3159
- { json: _chunkZD673XALjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3159
+ { json: _chunkPX7XAVUCjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3160
3160
  ` }
3161
3161
  );
3162
3162
  return 0;
@@ -3227,7 +3227,7 @@ function rowCountsFrom(input) {
3227
3227
  return { completed: c, failed: f, total: known };
3228
3228
  }
3229
3229
  function decodeRunStatus(status) {
3230
- return _chunkCQDQNZGHjs.decodePlayRunPublicStatus.call(void 0, status);
3230
+ return _chunkSL6MYJYMjs.decodePlayRunPublicStatus.call(void 0, status);
3231
3231
  }
3232
3232
  function deriveRunExecutionState(input) {
3233
3233
  const status = decodeRunStatus(input.status);
@@ -4118,7 +4118,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4118
4118
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
4119
4119
  );
4120
4120
  }
4121
- const response = await new (0, _chunkCNBPATLIjs.DeeplineClient)().runs.getReceipts(runId, {
4121
+ const response = await new (0, _chunk3JZXU5OBjs.DeeplineClient)().runs.getReceipts(runId, {
4122
4122
  keys
4123
4123
  });
4124
4124
  const failed = response.receipts.filter(
@@ -4130,7 +4130,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4130
4130
  JSON.stringify(response, null, 2) + "\n",
4131
4131
  { flag: "wx", mode: 384 }
4132
4132
  );
4133
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
4133
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
4134
4134
  {
4135
4135
  runId,
4136
4136
  out: options.out,
@@ -4140,7 +4140,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4140
4140
  { json: true }
4141
4141
  );
4142
4142
  } else {
4143
- _chunkZD673XALjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4143
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4144
4144
  }
4145
4145
  if (failed)
4146
4146
  process.exitCode = response.receipts.some(
@@ -4179,7 +4179,7 @@ includes nextCommand when another page is available.
4179
4179
  { exitCode: 2 }
4180
4180
  );
4181
4181
  }
4182
- const page = await new (0, _chunkCNBPATLIjs.DeeplineClient)().runs.children(parentRunId, {
4182
+ const page = await new (0, _chunk3JZXU5OBjs.DeeplineClient)().runs.children(parentRunId, {
4183
4183
  launchKey: options.launchKey,
4184
4184
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
4185
4185
  limit
@@ -4194,7 +4194,7 @@ includes nextCommand when another page is available.
4194
4194
  "--limit",
4195
4195
  String(limit)
4196
4196
  ].join(" ") : null;
4197
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
4197
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
4198
4198
  {
4199
4199
  parentRunId,
4200
4200
  launchKey: options.launchKey,
@@ -4230,7 +4230,7 @@ async function handleRunsHistory(options) {
4230
4230
  throw new Error("--limit must be a positive integer.");
4231
4231
  }
4232
4232
  }
4233
- const page = await new (0, _chunkCNBPATLIjs.DeeplineClient)().runs.history({
4233
+ const page = await new (0, _chunk3JZXU5OBjs.DeeplineClient)().runs.history({
4234
4234
  cursor: options.cursor,
4235
4235
  orgId: options.org,
4236
4236
  search: options.search,
@@ -4246,7 +4246,7 @@ async function handleRunsHistory(options) {
4246
4246
  );
4247
4247
  }
4248
4248
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
4249
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
4249
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
4250
4250
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
4251
4251
  options.json ? { json: true } : {}
4252
4252
  );
@@ -4299,12 +4299,12 @@ async function runRunsRerunCommand(runId, options) {
4299
4299
  }
4300
4300
  }
4301
4301
  if (options.notice) console.error(options.notice);
4302
- const result = await new (0, _chunkCNBPATLIjs.DeeplineClient)().runs.rerun(runId, {
4302
+ const result = await new (0, _chunk3JZXU5OBjs.DeeplineClient)().runs.rerun(runId, {
4303
4303
  ...idempotencyKey === void 0 ? {} : { idempotencyKey },
4304
4304
  ...inputOverrides === void 0 ? {} : { inputOverrides }
4305
4305
  });
4306
- if (_chunkZD673XALjs.shouldEmitJson.call(void 0, options.json)) {
4307
- _chunkZD673XALjs.printCommandEnvelope.call(void 0, result, { json: true });
4306
+ if (_chunkPX7XAVUCjs.shouldEmitJson.call(void 0, options.json)) {
4307
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0, result, { json: true });
4308
4308
  } else if (result.rateLimited) {
4309
4309
  console.log(`
4310
4310
  ${result.rateLimited.message}`);
@@ -4328,7 +4328,7 @@ Rerun started from ${runId}${inputOverrides ? " with input overrides" : ""}.`
4328
4328
  // src/cli/operations/runs-resume.ts
4329
4329
  async function runRunsResumeCommand(runId) {
4330
4330
  try {
4331
- const result = await new (0, _chunkCNBPATLIjs.DeeplineClient)().runs.resume(runId);
4331
+ const result = await new (0, _chunk3JZXU5OBjs.DeeplineClient)().runs.resume(runId);
4332
4332
  if (result.runId !== runId || result.resumed !== true || !Number.isSafeInteger(result.epoch) || result.epoch < 1)
4333
4333
  throw new Error(
4334
4334
  "Invalid resume receipt: expected the requested run and a new positive epoch."
@@ -4442,7 +4442,7 @@ function runTableHitCounts(tableNamespace, summary) {
4442
4442
  const columns = {};
4443
4443
  for (const column of Object.keys(_nullishCoalesce(summary.columns, () => ( {})))) {
4444
4444
  if (column.includes(".")) continue;
4445
- const physical = _chunkCQDQNZGHjs.sqlSafePlayColumnName.call(void 0, column);
4445
+ const physical = _chunkSL6MYJYMjs.sqlSafePlayColumnName.call(void 0, column);
4446
4446
  if (legColumns.has(physical)) continue;
4447
4447
  const count2 = filled[physical];
4448
4448
  if (typeof count2 === "number") columns[column] = count2;
@@ -5170,13 +5170,13 @@ var RunDataset = class _RunDataset {
5170
5170
  const absolutePath = _path.resolve.call(void 0, outPath);
5171
5171
  _fs.writeFileSync.call(void 0,
5172
5172
  absolutePath,
5173
- `${JSON.stringify(_chunkOK4JMVTMjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
5173
+ `${JSON.stringify(_chunkDUGTPVT7js.orderRunExportJson.call(void 0, this.rows), null, 2)}
5174
5174
  `,
5175
5175
  "utf-8"
5176
5176
  );
5177
5177
  return absolutePath;
5178
5178
  }
5179
- return _chunkOK4JMVTMjs.writeRunDatasetCsv.call(void 0, {
5179
+ return _chunkDUGTPVT7js.writeRunDatasetCsv.call(void 0, {
5180
5180
  rows: this.rows,
5181
5181
  columns: this.#info.columns,
5182
5182
  outPath
@@ -5788,10 +5788,10 @@ function resolveOwnedPlayReferenceName(reference, ownerSlug) {
5788
5788
  // ../plays/deploy/run-deployment.ts
5789
5789
  var RUN_PLAY_METHOD_NAMES = /* @__PURE__ */ new Set(["runPlay", "runPlayAsync"]);
5790
5790
  function isRunPlayReceiver(node) {
5791
- return _chunkKQSTV4MWjs.isAstNode.call(void 0, node) && node.type === "Identifier" && typeof node.name === "string" && (node.name === "ctx" || node.name.endsWith("Ctx"));
5791
+ return _chunkBLYW6FFBjs.isAstNode.call(void 0, node) && node.type === "Identifier" && typeof node.name === "string" && (node.name === "ctx" || node.name.endsWith("Ctx"));
5792
5792
  }
5793
5793
  function stringLiteralValue(node) {
5794
- if (!_chunkKQSTV4MWjs.isAstNode.call(void 0, node)) return null;
5794
+ if (!_chunkBLYW6FFBjs.isAstNode.call(void 0, node)) return null;
5795
5795
  if (node.type === "Literal" && typeof node.value === "string") {
5796
5796
  return node.value;
5797
5797
  }
@@ -5802,12 +5802,12 @@ function stringLiteralValue(node) {
5802
5802
  return null;
5803
5803
  }
5804
5804
  async function extractRunPlayStringTargets(sourceCode) {
5805
- const program = _chunkKQSTV4MWjs.parsePlaySourceForAnalysis.call(void 0, sourceCode);
5805
+ const program = _chunkBLYW6FFBjs.parsePlaySourceForAnalysis.call(void 0, sourceCode);
5806
5806
  if (!program) return await _asyncNullishCoalesce(await extractWithCompiler(sourceCode), async () => ( []));
5807
5807
  const targets = /* @__PURE__ */ new Set();
5808
5808
  const visit = (node) => {
5809
5809
  const callee = node.callee;
5810
- if (node.type === "CallExpression" && _chunkKQSTV4MWjs.isAstNode.call(void 0, callee) && callee.type === "MemberExpression" && callee.computed !== true && _chunkKQSTV4MWjs.isAstNode.call(void 0, callee.property) && RUN_PLAY_METHOD_NAMES.has(String(callee.property.name)) && isRunPlayReceiver(callee.object) && Array.isArray(node.arguments)) {
5810
+ if (node.type === "CallExpression" && _chunkBLYW6FFBjs.isAstNode.call(void 0, callee) && callee.type === "MemberExpression" && callee.computed !== true && _chunkBLYW6FFBjs.isAstNode.call(void 0, callee.property) && RUN_PLAY_METHOD_NAMES.has(String(callee.property.name)) && isRunPlayReceiver(callee.object) && Array.isArray(node.arguments)) {
5811
5811
  const playRef = stringLiteralValue(node.arguments[1]);
5812
5812
  const ownedName = playRef === null ? null : resolveOwnedPlayReferenceName(playRef);
5813
5813
  if (ownedName) targets.add(ownedName);
@@ -5815,7 +5815,7 @@ async function extractRunPlayStringTargets(sourceCode) {
5815
5815
  for (const [key, value] of Object.entries(node)) {
5816
5816
  if (key === "loc") continue;
5817
5817
  for (const child of Array.isArray(value) ? value : [value]) {
5818
- if (_chunkKQSTV4MWjs.isAstNode.call(void 0, child)) visit(child);
5818
+ if (_chunkBLYW6FFBjs.isAstNode.call(void 0, child)) visit(child);
5819
5819
  }
5820
5820
  }
5821
5821
  };
@@ -6681,7 +6681,7 @@ function renderOutcome(outcome) {
6681
6681
  function printResult2(input) {
6682
6682
  const failed = input.status === "failed" || input.status === "cancelled";
6683
6683
  if (failed) process.exitCode = 1;
6684
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
6684
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
6685
6685
  {
6686
6686
  deployment: { ...input.deployment, status: input.status },
6687
6687
  plays: input.outcomes,
@@ -6706,7 +6706,7 @@ async function handlePlaysDeploy(directory, options) {
6706
6706
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
6707
6707
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
6708
6708
  });
6709
- const { http, config } = _chunkZD673XALjs.getAuthedHttpClient.call(void 0, );
6709
+ const { http, config } = _chunkPX7XAVUCjs.getAuthedHttpClient.call(void 0, );
6710
6710
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
6711
6711
  const startDeployment = () => http.post("/api/v2/deployments", {
6712
6712
  deliveryId,
@@ -6733,7 +6733,7 @@ async function handlePlaysDeploy(directory, options) {
6733
6733
  },
6734
6734
  {
6735
6735
  bundle: bundleDeployPlayFile,
6736
- fetchImpl: _chunkM6XIKHBSjs.fetchWithDeploymentProtection,
6736
+ fetchImpl: _chunkGRCFX2EGjs.fetchWithDeploymentProtection,
6737
6737
  // The plays are already here: "opening" the source is naming it.
6738
6738
  openSource: async () => ({
6739
6739
  open: async () => ({ repoRoot: root })
@@ -6859,7 +6859,7 @@ async function checkLocalPlayGraph(input) {
6859
6859
  // src/cli/renderers/local-play-execution.ts
6860
6860
  function renderLocalPlayExecutionPlan(plan, options = {}) {
6861
6861
  if (options.dryRun) {
6862
- _chunkZD673XALjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
6862
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
6863
6863
  return;
6864
6864
  }
6865
6865
  process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
@@ -7031,7 +7031,7 @@ function traceCliSync(phase, fields2, run) {
7031
7031
  const startedAt = Date.now();
7032
7032
  try {
7033
7033
  const result = run();
7034
- _chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
7034
+ _chunkNHKP2NSUjs.recordCliTrace.call(void 0, {
7035
7035
  phase,
7036
7036
  ms: Date.now() - startedAt,
7037
7037
  ok: true,
@@ -7039,7 +7039,7 @@ function traceCliSync(phase, fields2, run) {
7039
7039
  });
7040
7040
  return result;
7041
7041
  } catch (error) {
7042
- _chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
7042
+ _chunkNHKP2NSUjs.recordCliTrace.call(void 0, {
7043
7043
  phase,
7044
7044
  ms: Date.now() - startedAt,
7045
7045
  ok: false,
@@ -7417,8 +7417,8 @@ async function ensureEditableRemotePlay(client, target) {
7417
7417
  return detail;
7418
7418
  }
7419
7419
  function writeInlinePlay(code) {
7420
- const filePath = _path.resolve.call(void 0, _chunkKQSTV4MWjs.INLINE_PLAY_FILE);
7421
- const source = _chunkKQSTV4MWjs.inlinePlaySource.call(void 0, code);
7420
+ const filePath = _path.resolve.call(void 0, _chunkBLYW6FFBjs.INLINE_PLAY_FILE);
7421
+ const source = _chunkBLYW6FFBjs.inlinePlaySource.call(void 0, code);
7422
7422
  try {
7423
7423
  _fs.writeFileSync.call(void 0, filePath, source, { flag: "wx" });
7424
7424
  } catch (error) {
@@ -7526,7 +7526,7 @@ function collectLocalFileInputRefs(value, inputPath, key, out) {
7526
7526
  if (!trimmed || isUrlValue(trimmed)) {
7527
7527
  return;
7528
7528
  }
7529
- const keyIsCsvData = key === _chunkCQDQNZGHjs.CSV_DATA_INPUT_KEY;
7529
+ const keyIsCsvData = key === _chunkSL6MYJYMjs.CSV_DATA_INPUT_KEY;
7530
7530
  const endsWithCsv = /\.csv$/i.test(trimmed);
7531
7531
  const looksLikeFile = /\.[a-z0-9]{1,8}$/i.test(trimmed);
7532
7532
  if (keyIsCsvData) {
@@ -7557,14 +7557,14 @@ function collectLocalFileInputRefs(value, inputPath, key, out) {
7557
7557
  }
7558
7558
  }
7559
7559
  function preflightLocalFileInputs(runtimeInput) {
7560
- if (_chunkCQDQNZGHjs.CSV_DATA_INPUT_KEY in runtimeInput) {
7561
- const csvValue = runtimeInput[_chunkCQDQNZGHjs.CSV_DATA_INPUT_KEY];
7560
+ if (_chunkSL6MYJYMjs.CSV_DATA_INPUT_KEY in runtimeInput) {
7561
+ const csvValue = runtimeInput[_chunkSL6MYJYMjs.CSV_DATA_INPUT_KEY];
7562
7562
  if (typeof csvValue === "string" && csvValue.trim().length === 0) {
7563
7563
  throw new (0, _chunkBBTKAASQjs.DeeplineError)(
7564
- `Input ${_chunkCQDQNZGHjs.CSV_DATA_INPUT_KEY} is an empty string. Provide a path to a CSV file (or a CSV URL). No run was created.`,
7564
+ `Input ${_chunkSL6MYJYMjs.CSV_DATA_INPUT_KEY} is an empty string. Provide a path to a CSV file (or a CSV URL). No run was created.`,
7565
7565
  void 0,
7566
7566
  "PLAY_INPUT_FILE_PREFLIGHT",
7567
- { inputPath: _chunkCQDQNZGHjs.CSV_DATA_INPUT_KEY, reason: "csv_empty_string" }
7567
+ { inputPath: _chunkSL6MYJYMjs.CSV_DATA_INPUT_KEY, reason: "csv_empty_string" }
7568
7568
  );
7569
7569
  }
7570
7570
  }
@@ -7631,7 +7631,7 @@ var NODE_STAGED_FILE_CODEC = {
7631
7631
  )
7632
7632
  };
7633
7633
  async function stageFileInputArgs(input) {
7634
- return _chunkCQDQNZGHjs.stageFileInputs.call(void 0, {
7634
+ return _chunkSL6MYJYMjs.stageFileInputs.call(void 0, {
7635
7635
  stage: (files) => input.client.stagePlayFiles(files),
7636
7636
  runtimeInput: input.runtimeInput,
7637
7637
  bindings: input.bindings,
@@ -7653,7 +7653,7 @@ function stageFile(logicalPath, absolutePath) {
7653
7653
  logicalPath,
7654
7654
  contentBase64: buffer.toString("base64"),
7655
7655
  contentHash: _crypto.createHash.call(void 0, "sha256").update(buffer).digest("hex"),
7656
- contentType: _chunkCQDQNZGHjs.stagedFileContentType.call(void 0, absolutePath),
7656
+ contentType: _chunkSL6MYJYMjs.stagedFileContentType.call(void 0, absolutePath),
7657
7657
  bytes: buffer.byteLength
7658
7658
  };
7659
7659
  }
@@ -7674,12 +7674,12 @@ function unresolvedPackagedFilesMessage(node) {
7674
7674
  const details = node.unresolvedFileReferences.map((unresolved) => `${unresolved.sourceFragment}: ${unresolved.message}`).join("; ");
7675
7675
  return `Failed to package local deepline.csv(...) files in ${node.filePath}: ${details}`;
7676
7676
  }
7677
- async function collectBundledPlayGraph(entryFile, profile = null, entryExportName = _chunkKQSTV4MWjs.PLAY_DEFAULT_EXPORT, options = {}) {
7677
+ async function collectBundledPlayGraph(entryFile, profile = null, entryExportName = _chunkBLYW6FFBjs.PLAY_DEFAULT_EXPORT, options = {}) {
7678
7678
  const playBundler = await loadPlayBundler();
7679
7679
  const nodes = /* @__PURE__ */ new Map();
7680
7680
  const diagnostics = [];
7681
7681
  const visited = /* @__PURE__ */ new Set();
7682
- const artifactKind = _chunkVLEVVDWGjs.resolveEnabledExecutionProfile.call(void 0, profile).artifactKind;
7682
+ const artifactKind = _chunk2JHYYB3Fjs.resolveEnabledExecutionProfile.call(void 0, profile).artifactKind;
7683
7683
  const rootPath = normalizePlayPath(entryFile);
7684
7684
  const visit = async (filePath) => {
7685
7685
  const absolutePath = normalizePlayPath(filePath);
@@ -7688,7 +7688,7 @@ async function collectBundledPlayGraph(entryFile, profile = null, entryExportNam
7688
7688
  const bundleResult = await playBundler.bundlePlayFile(absolutePath, {
7689
7689
  target: artifactKind,
7690
7690
  ...options.cache === false ? { cache: false } : {},
7691
- ...absolutePath === rootPath && entryExportName !== _chunkKQSTV4MWjs.PLAY_DEFAULT_EXPORT ? { exportName: entryExportName } : {}
7691
+ ...absolutePath === rootPath && entryExportName !== _chunkBLYW6FFBjs.PLAY_DEFAULT_EXPORT ? { exportName: entryExportName } : {}
7692
7692
  });
7693
7693
  if (bundleResult.success === false) {
7694
7694
  diagnostics.push(
@@ -7852,7 +7852,7 @@ function playStatusErrorText(status) {
7852
7852
  function isRetryablePendingStartFailure(status) {
7853
7853
  if (status.status !== "failed") return false;
7854
7854
  if (status.runId && status.runId !== "pending") return false;
7855
- return _chunk323I5KQ5js.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
7855
+ return _chunk46BEBZ3Mjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
7856
7856
  }
7857
7857
  function isAmbiguousPlayStartOutcomeError(error) {
7858
7858
  if (error instanceof _chunkBBTKAASQjs.DeeplineError && typeof error.statusCode === "number") {
@@ -7902,13 +7902,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkBBTKAASQjs.Deep
7902
7902
  }, _class);
7903
7903
  function watchSurfaceReaches(state, provenance, level) {
7904
7904
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
7905
- if (!_chunk323I5KQ5js.logLevelReaches.call(void 0, level, minimumLevel)) {
7905
+ if (!_chunk46BEBZ3Mjs.logLevelReaches.call(void 0, level, minimumLevel)) {
7906
7906
  return false;
7907
7907
  }
7908
- if (_chunk323I5KQ5js.logProvenanceReaches.call(void 0, provenance, "watch")) {
7908
+ if (_chunk46BEBZ3Mjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
7909
7909
  return true;
7910
7910
  }
7911
- return state.verbose === true && _chunk323I5KQ5js.logProvenanceReaches.call(void 0, provenance, "debug");
7911
+ return state.verbose === true && _chunk46BEBZ3Mjs.logProvenanceReaches.call(void 0, provenance, "debug");
7912
7912
  }
7913
7913
  function getEventPayload(event) {
7914
7914
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -8418,7 +8418,7 @@ function resolvePlayRunUrl(input) {
8418
8418
  }
8419
8419
  function openPlayDashboard(url, open2) {
8420
8420
  if (open2 && url) {
8421
- _chunkZD673XALjs.openInBrowser.call(void 0, url);
8421
+ _chunkPX7XAVUCjs.openInBrowser.call(void 0, url);
8422
8422
  }
8423
8423
  }
8424
8424
  function printPlayLogLines(input) {
@@ -8499,7 +8499,7 @@ async function waitForPlayCompletionByWatch(input) {
8499
8499
  ...input.fullJson === void 0 ? {} : { full: input.fullJson }
8500
8500
  });
8501
8501
  } catch (error) {
8502
- if (_chunk323I5KQ5js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
8502
+ if (_chunk46BEBZ3Mjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
8503
8503
  return null;
8504
8504
  }
8505
8505
  throw error;
@@ -8580,9 +8580,9 @@ async function waitForPlayCompletionByWatch(input) {
8580
8580
  signal: controller.signal,
8581
8581
  deferLogs: !input.emitLogs,
8582
8582
  omitTerminalLogs: !input.emitLogs,
8583
- ..._chunk2TAGAPLLjs.isCliTraceEnabled.call(void 0, ) ? {
8583
+ ..._chunkNHKP2NSUjs.isCliTraceEnabled.call(void 0, ) ? {
8584
8584
  onPoll: (observation) => {
8585
- _chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
8585
+ _chunkNHKP2NSUjs.recordCliTrace.call(void 0, {
8586
8586
  phase: "play_watch_poll",
8587
8587
  workflowId: input.workflowId,
8588
8588
  ms: observation.durationMs,
@@ -8596,7 +8596,7 @@ async function waitForPlayCompletionByWatch(input) {
8596
8596
  full: input.fullJson,
8597
8597
  billing: false,
8598
8598
  onStatus: async (status) => {
8599
- _chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
8599
+ _chunkNHKP2NSUjs.recordCliTrace.call(void 0, {
8600
8600
  phase: "play_watch_terminal_status",
8601
8601
  workflowId: input.workflowId,
8602
8602
  full: input.fullJson === true
@@ -8685,7 +8685,7 @@ async function startAndWaitForPlayCompletion(input) {
8685
8685
  signal: controller.signal,
8686
8686
  cliAdmission: useCliAdmission
8687
8687
  });
8688
- _chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
8688
+ _chunkNHKP2NSUjs.recordCliTrace.call(void 0, {
8689
8689
  phase: "cli.play_start_admission_attempt",
8690
8690
  ms: Date.now() - postStartedAt,
8691
8691
  ok: true,
@@ -8697,7 +8697,7 @@ async function startAndWaitForPlayCompletion(input) {
8697
8697
  });
8698
8698
  break;
8699
8699
  } catch (error) {
8700
- _chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
8700
+ _chunkNHKP2NSUjs.recordCliTrace.call(void 0, {
8701
8701
  phase: "cli.play_start_admission_attempt",
8702
8702
  ms: Date.now() - postStartedAt,
8703
8703
  ok: false,
@@ -8719,7 +8719,7 @@ async function startAndWaitForPlayCompletion(input) {
8719
8719
  prepared.workflowId
8720
8720
  );
8721
8721
  }
8722
- if (callerIntentV2 && error instanceof _chunkCQDQNZGHjs.CliPlayAdmissionCallerIntentV2UnsupportedError) {
8722
+ if (callerIntentV2 && error instanceof _chunkSL6MYJYMjs.CliPlayAdmissionCallerIntentV2UnsupportedError) {
8723
8723
  if (currentAttempt > 1) {
8724
8724
  throw new PlayStartOutcomeUnknownError(
8725
8725
  input.playName,
@@ -8740,7 +8740,7 @@ async function startAndWaitForPlayCompletion(input) {
8740
8740
  waitTimeoutMs: remaining === null ? null : Math.max(1, remaining)
8741
8741
  });
8742
8742
  }
8743
- if (useCliAdmission && error instanceof _chunkCQDQNZGHjs.CliPlayAdmissionUnsupportedError) {
8743
+ if (useCliAdmission && error instanceof _chunkSL6MYJYMjs.CliPlayAdmissionUnsupportedError) {
8744
8744
  if (currentAttempt > 1) {
8745
8745
  throw new PlayStartOutcomeUnknownError(
8746
8746
  input.playName,
@@ -8748,7 +8748,7 @@ async function startAndWaitForPlayCompletion(input) {
8748
8748
  prepared.workflowId
8749
8749
  );
8750
8750
  }
8751
- await _chunkUXXFCOE3js.checkPlayRunCompatibility.call(void 0,
8751
+ await _chunkNLENABRUjs.checkPlayRunCompatibility.call(void 0,
8752
8752
  input.client.baseUrl,
8753
8753
  input.maintenancePolicy
8754
8754
  );
@@ -8766,7 +8766,7 @@ async function startAndWaitForPlayCompletion(input) {
8766
8766
  `[play start] response was ambiguous; retrying the same caller intent (${error instanceof Error ? error.message : String(error)})`
8767
8767
  );
8768
8768
  }
8769
- _chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
8769
+ _chunkNHKP2NSUjs.recordCliTrace.call(void 0, {
8770
8770
  phase: "cli.play_start_json_retry",
8771
8771
  ms: 0,
8772
8772
  ok: true,
@@ -8846,7 +8846,7 @@ async function startAndWaitForPlayCompletion(input) {
8846
8846
  _nullishCoalesce(input.open, () => ( false))
8847
8847
  );
8848
8848
  input.progress.phase("running");
8849
- _chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
8849
+ _chunkNHKP2NSUjs.recordCliTrace.call(void 0, {
8850
8850
  phase: "cli.play_start_admitted",
8851
8851
  ms: Date.now() - startedAt,
8852
8852
  ok: true,
@@ -8864,7 +8864,7 @@ async function startAndWaitForPlayCompletion(input) {
8864
8864
  startedAt,
8865
8865
  waitTimeoutMs: input.waitTimeoutMs
8866
8866
  });
8867
- const initialStatus = _chunk323I5KQ5js.normalizePlayStatus.call(void 0, initialTerminal);
8867
+ const initialStatus = _chunk46BEBZ3Mjs.normalizePlayStatus.call(void 0, initialTerminal);
8868
8868
  const status2 = await resolvePlayRunOutputStatus({
8869
8869
  client: input.client,
8870
8870
  status: initialStatus,
@@ -8872,7 +8872,7 @@ async function startAndWaitForPlayCompletion(input) {
8872
8872
  jsonOutput: input.jsonOutput,
8873
8873
  fromDurableStatus: true
8874
8874
  });
8875
- _chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
8875
+ _chunkNHKP2NSUjs.recordCliTrace.call(void 0, {
8876
8876
  phase: "play_watch_terminal_status",
8877
8877
  workflowId,
8878
8878
  full: true,
@@ -8963,7 +8963,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
8963
8963
  notice.value
8964
8964
  );
8965
8965
  } catch (error) {
8966
- if (callerIntentV2 && error instanceof _chunkCQDQNZGHjs.CliPlayAdmissionCallerIntentV2UnsupportedError) {
8966
+ if (callerIntentV2 && error instanceof _chunkSL6MYJYMjs.CliPlayAdmissionCallerIntentV2UnsupportedError) {
8967
8967
  const remaining = input.waitTimeoutMs === null ? null : input.waitTimeoutMs - (Date.now() - admissionStartedAt);
8968
8968
  assertPlayWaitNotTimedOut({
8969
8969
  workflowId: "",
@@ -8976,8 +8976,8 @@ async function startAndWaitForPlayCompletionByStream(input) {
8976
8976
  waitTimeoutMs: remaining === null ? null : Math.max(1, remaining)
8977
8977
  });
8978
8978
  }
8979
- if (error instanceof _chunkCQDQNZGHjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
8980
- await _chunkUXXFCOE3js.checkPlayRunCompatibility.call(void 0,
8979
+ if (error instanceof _chunkSL6MYJYMjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
8980
+ await _chunkNLENABRUjs.checkPlayRunCompatibility.call(void 0,
8981
8981
  input.client.baseUrl,
8982
8982
  input.maintenancePolicy,
8983
8983
  admissionDeadline.signal
@@ -9018,7 +9018,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
9018
9018
  `[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
9019
9019
  );
9020
9020
  }
9021
- _chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
9021
+ _chunkNHKP2NSUjs.recordCliTrace.call(void 0, {
9022
9022
  phase: "cli.play_start_stream_retry",
9023
9023
  ms: 0,
9024
9024
  ok: true,
@@ -9039,7 +9039,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
9039
9039
  `[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
9040
9040
  );
9041
9041
  }
9042
- _chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
9042
+ _chunkNHKP2NSUjs.recordCliTrace.call(void 0, {
9043
9043
  phase: "cli.play_start_stream_retry",
9044
9044
  ms: 0,
9045
9045
  ok: true,
@@ -9096,7 +9096,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9096
9096
  if (launchConfirmed || !runId || runId === "pending") return;
9097
9097
  launchConfirmed = true;
9098
9098
  await _optionalChain([input, 'access', _314 => _314.onRunAdmitted, 'optionalCall', _315 => _315(runId)]);
9099
- _chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
9099
+ _chunkNHKP2NSUjs.recordCliTrace.call(void 0, {
9100
9100
  phase: "cli.play_start_admitted",
9101
9101
  ms: Date.now() - startedAt,
9102
9102
  ok: true,
@@ -9130,7 +9130,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9130
9130
  full: input.fullJson
9131
9131
  });
9132
9132
  } catch (error) {
9133
- if (_chunk323I5KQ5js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9133
+ if (_chunk46BEBZ3Mjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9134
9134
  return null;
9135
9135
  }
9136
9136
  throw error;
@@ -9272,7 +9272,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9272
9272
  let fromDurableStatus = reuseFullTerminal;
9273
9273
  let canonicalTerminal;
9274
9274
  const streamedTerminalPackage = getPlayRunPackage(finalStatus);
9275
- const streamedTerminalPlayRunPackage = _chunkCQDQNZGHjs.isPlayRunPackage.call(void 0,
9275
+ const streamedTerminalPlayRunPackage = _chunkSL6MYJYMjs.isPlayRunPackage.call(void 0,
9276
9276
  streamedTerminalPackage
9277
9277
  ) ? streamedTerminalPackage : null;
9278
9278
  const terminalEnvelopeIsComplete = finalStatus.status === "completed" && (event.type === "play.run.snapshot" || event.type === "play.run.final_status") && getEventPayload(event).replayed !== true && finalStatus.runId === lastKnownWorkflowId && !playRunPackageTextLedgerIncomplete(streamedTerminalPackage);
@@ -9301,7 +9301,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9301
9301
  };
9302
9302
  }
9303
9303
  if (!canonicalTerminal) {
9304
- _chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
9304
+ _chunkNHKP2NSUjs.recordCliTrace.call(void 0, {
9305
9305
  phase: "cli.play_start_stream_stale_terminal_ignored",
9306
9306
  ms: Date.now() - startedAt,
9307
9307
  ok: true,
@@ -9322,14 +9322,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9322
9322
  fromDurableStatus
9323
9323
  }) : canonicalTerminal;
9324
9324
  if (input.fullJson === true) {
9325
- _chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
9325
+ _chunkNHKP2NSUjs.recordCliTrace.call(void 0, {
9326
9326
  phase: "play_watch_terminal_status",
9327
9327
  workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
9328
9328
  full: true,
9329
9329
  source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
9330
9330
  });
9331
9331
  }
9332
- _chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
9332
+ _chunkNHKP2NSUjs.recordCliTrace.call(void 0, {
9333
9333
  phase: "cli.play_start_stream_terminal",
9334
9334
  ms: Date.now() - startedAt,
9335
9335
  ok: true,
@@ -9349,7 +9349,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9349
9349
  clearTimeout(timeout);
9350
9350
  }
9351
9351
  controller.abort();
9352
- _chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
9352
+ _chunkNHKP2NSUjs.recordCliTrace.call(void 0, {
9353
9353
  phase: "cli.play_start_stream_handoff_to_tail",
9354
9354
  ms: Date.now() - startedAt,
9355
9355
  ok: true,
@@ -9380,7 +9380,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9380
9380
  if (timedOut) {
9381
9381
  const terminal = await fetchKnownTerminalStatus();
9382
9382
  if (terminal) {
9383
- _chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
9383
+ _chunkNHKP2NSUjs.recordCliTrace.call(void 0, {
9384
9384
  phase: "cli.play_start_stream_timeout_status_reconcile",
9385
9385
  ms: Date.now() - startedAt,
9386
9386
  ok: true,
@@ -9400,7 +9400,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9400
9400
  lastPhase
9401
9401
  });
9402
9402
  }
9403
- if (lastKnownWorkflowId && (terminalWindowExpired || _chunk323I5KQ5js.isTransientPlayRunReadError.call(void 0, error))) {
9403
+ if (lastKnownWorkflowId && (terminalWindowExpired || _chunk46BEBZ3Mjs.isTransientPlayRunReadError.call(void 0, error))) {
9404
9404
  if (timeout) {
9405
9405
  clearTimeout(timeout);
9406
9406
  }
@@ -9411,7 +9411,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9411
9411
  `
9412
9412
  );
9413
9413
  }
9414
- _chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
9414
+ _chunkNHKP2NSUjs.recordCliTrace.call(void 0, {
9415
9415
  phase: "cli.play_start_stream_reconnect",
9416
9416
  ms: Date.now() - startedAt,
9417
9417
  ok: true,
@@ -9438,7 +9438,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9438
9438
  });
9439
9439
  }
9440
9440
  if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
9441
- _chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
9441
+ _chunkNHKP2NSUjs.recordCliTrace.call(void 0, {
9442
9442
  phase: "cli.play_start_stream_transient_failure",
9443
9443
  ms: Date.now() - startedAt,
9444
9444
  ok: false,
@@ -9466,7 +9466,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9466
9466
  `[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
9467
9467
  );
9468
9468
  }
9469
- _chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
9469
+ _chunkNHKP2NSUjs.recordCliTrace.call(void 0, {
9470
9470
  phase: "cli.play_start_stream_reconnect",
9471
9471
  ms: Date.now() - startedAt,
9472
9472
  ok: true,
@@ -9546,7 +9546,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
9546
9546
  "logs"
9547
9547
  ]);
9548
9548
  function formatPlayLogLine(rawLine, state) {
9549
- const classified = _chunk323I5KQ5js.classifyLogLine.call(void 0, rawLine);
9549
+ const classified = _chunk46BEBZ3Mjs.classifyLogLine.call(void 0, rawLine);
9550
9550
  const line = classified.line;
9551
9551
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
9552
9552
  const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _337 => _337[1]]) ? new Date(timestampMatch[1]) : null;
@@ -9561,14 +9561,14 @@ function formatPlayLogLine(rawLine, state) {
9561
9561
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
9562
9562
  const providerWait = formatProviderCapacityWaitLogLine(line);
9563
9563
  if (providerWait && !state.verbose) {
9564
- return _chunk323I5KQ5js.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
9564
+ return _chunk46BEBZ3Mjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
9565
9565
  }
9566
9566
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
9567
9567
  if (mapProgress && !state.verbose) {
9568
- return _chunk323I5KQ5js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
9568
+ return _chunk46BEBZ3Mjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
9569
9569
  }
9570
9570
  if (/\[worker\] picked up run\b/.test(message)) {
9571
- if (!_chunk323I5KQ5js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9571
+ if (!_chunk46BEBZ3Mjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9572
9572
  return null;
9573
9573
  }
9574
9574
  if (state.emittedRunnerStarted) {
@@ -9581,7 +9581,7 @@ function formatPlayLogLine(rawLine, state) {
9581
9581
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
9582
9582
  );
9583
9583
  if (mapStart) {
9584
- if (!_chunk323I5KQ5js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9584
+ if (!_chunk46BEBZ3Mjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9585
9585
  return null;
9586
9586
  }
9587
9587
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -9591,7 +9591,7 @@ function formatPlayLogLine(rawLine, state) {
9591
9591
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
9592
9592
  );
9593
9593
  if (mapDone) {
9594
- if (!_chunk323I5KQ5js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9594
+ if (!_chunk46BEBZ3Mjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9595
9595
  return null;
9596
9596
  }
9597
9597
  const [, results, executed, cached] = mapDone;
@@ -10913,7 +10913,7 @@ function formatRecentRunLogLines(value) {
10913
10913
  (line) => typeof line === "string"
10914
10914
  );
10915
10915
  if (tail.length === 0) return [];
10916
- const shown = tail.map((line) => _chunk323I5KQ5js.classifyLogLine.call(void 0, line)).filter(
10916
+ const shown = tail.map((line) => _chunk46BEBZ3Mjs.classifyLogLine.call(void 0, line)).filter(
10917
10917
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
10918
10918
  ).slice(-8);
10919
10919
  const total = readNonNegativeInteger(logs.totalCount);
@@ -11218,11 +11218,11 @@ function buildPlayCompletionTextLines(status) {
11218
11218
  }
11219
11219
  function writePlayResult(status, jsonOutput, options) {
11220
11220
  const packaged = getPlayRunPackage(status);
11221
- if (status.package) _chunkOK4JMVTMjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
11221
+ if (status.package) _chunkDUGTPVT7js.recordPlayTermination.call(void 0, buildRunOverview(status).run);
11222
11222
  const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _428 => _428.hits]), () => ( null));
11223
11223
  if (jsonOutput) {
11224
11224
  const payload2 = _optionalChain([options, 'optionalAccess', _429 => _429.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
11225
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
11225
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
11226
11226
  hits ? { ...payload2, hits } : payload2,
11227
11227
  { json: true, fields: _optionalChain([options, 'optionalAccess', _430 => _430.jsonFields]) }
11228
11228
  );
@@ -11238,7 +11238,7 @@ function writePlayResult(status, jsonOutput, options) {
11238
11238
  ...buildPlayCompletionTextLines(status),
11239
11239
  ...formatRunHitsLines(hits)
11240
11240
  ];
11241
- _chunkZD673XALjs.printCommandEnvelope.call(void 0, displayPackage, {
11241
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0, displayPackage, {
11242
11242
  json: false,
11243
11243
  text: `${lines2.join("\n")}
11244
11244
  `
@@ -11288,7 +11288,7 @@ function writePlayResult(status, jsonOutput, options) {
11288
11288
  lines.push(...buildBillingRollupTextLines(status));
11289
11289
  const compact = compactPlayStatus(status);
11290
11290
  const payload = _optionalChain([options, 'optionalAccess', _432 => _432.fullJson]) ? status : compact;
11291
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
11291
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
11292
11292
  {
11293
11293
  ...payload,
11294
11294
  render: {
@@ -11512,7 +11512,7 @@ async function fetchBackingDatasetRows(input) {
11512
11512
  }
11513
11513
  offset += page.rows.length;
11514
11514
  }
11515
- const withError = _chunkOK4JMVTMjs.tableExportHasFailedRows.call(void 0,
11515
+ const withError = _chunkDUGTPVT7js.tableExportHasFailedRows.call(void 0,
11516
11516
  sheetRows.filter(
11517
11517
  (row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
11518
11518
  )
@@ -11528,7 +11528,7 @@ async function fetchBackingDatasetRows(input) {
11528
11528
  return [
11529
11529
  withError ? {
11530
11530
  ...exported,
11531
- [_chunkOK4JMVTMjs.TABLE_EXPORT_ERROR_COLUMN]: _chunkOK4JMVTMjs.tableExportErrorCell.call(void 0,
11531
+ [_chunkDUGTPVT7js.TABLE_EXPORT_ERROR_COLUMN]: _chunkDUGTPVT7js.tableExportErrorCell.call(void 0,
11532
11532
  row
11533
11533
  )
11534
11534
  } : exported
@@ -12063,7 +12063,7 @@ function renderServerResultView(value) {
12063
12063
  function writeStartedPlayRun(input) {
12064
12064
  if (input.package && isPlayRunPackageValue(input.package)) {
12065
12065
  const run = input.package.run;
12066
- _chunkOK4JMVTMjs.recordPlayTermination.call(void 0, {
12066
+ _chunkDUGTPVT7js.recordPlayTermination.call(void 0, {
12067
12067
  id: run.id,
12068
12068
  status: run.status,
12069
12069
  finishedAt: run.finishedAt
@@ -12076,7 +12076,7 @@ function writeStartedPlayRun(input) {
12076
12076
  dashboardUrl: input.dashboardUrl,
12077
12077
  package: input.package
12078
12078
  };
12079
- _chunkZD673XALjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12079
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12080
12080
  json: true,
12081
12081
  fields: input.jsonFields
12082
12082
  });
@@ -12098,7 +12098,7 @@ function writeStartedPlayRun(input) {
12098
12098
  input.progress.writeLine(output2, process.stdout);
12099
12099
  return;
12100
12100
  }
12101
- _chunkZD673XALjs.printCommandEnvelope.call(void 0, input.package, {
12101
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0, input.package, {
12102
12102
  json: false,
12103
12103
  text: `${output2}
12104
12104
  `
@@ -12133,7 +12133,7 @@ function writeStartedPlayRun(input) {
12133
12133
  ) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
12134
12134
  ];
12135
12135
  if (input.jsonOutput) {
12136
- _chunkZD673XALjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12136
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12137
12137
  return;
12138
12138
  }
12139
12139
  const output = lines.join("\n");
@@ -12141,7 +12141,7 @@ function writeStartedPlayRun(input) {
12141
12141
  input.progress.writeLine(output, process.stdout);
12142
12142
  return;
12143
12143
  }
12144
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
12144
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
12145
12145
  {
12146
12146
  ...payload,
12147
12147
  render: { sections: [{ title: "play run", lines }] }
@@ -12151,7 +12151,7 @@ function writeStartedPlayRun(input) {
12151
12151
  );
12152
12152
  }
12153
12153
  function parsePlayCheckOptions(args) {
12154
- const selection = _chunkZD673XALjs.parseJsonFields.call(void 0, args, "check");
12154
+ const selection = _chunkPX7XAVUCjs.parseJsonFields.call(void 0, args, "check");
12155
12155
  args = selection.args;
12156
12156
  const target = args[0];
12157
12157
  if (!target || target.startsWith("-")) {
@@ -12163,7 +12163,7 @@ function parsePlayCheckOptions(args) {
12163
12163
  if (arg !== "--json" && arg !== "--full")
12164
12164
  throw new Error(`Unknown plays check option: ${arg}`);
12165
12165
  }
12166
- const jsonOutput = _chunkZD673XALjs.argsWantJson.call(void 0, args);
12166
+ const jsonOutput = _chunkPX7XAVUCjs.argsWantJson.call(void 0, args);
12167
12167
  return {
12168
12168
  target,
12169
12169
  jsonOutput,
@@ -12239,7 +12239,7 @@ ${PLAY_PUBLISH_USAGE}`
12239
12239
  useLatest,
12240
12240
  expectedArtifactHash,
12241
12241
  dryRun,
12242
- jsonOutput: _chunkZD673XALjs.argsWantJson.call(void 0, args)
12242
+ jsonOutput: _chunkPX7XAVUCjs.argsWantJson.call(void 0, args)
12243
12243
  };
12244
12244
  }
12245
12245
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--watch-play <play-reference>] [--dry-run] [--json]\nUse --watch-play to show invalid source on your own open working canvas while keeping the last valid diagram.";
@@ -12288,7 +12288,7 @@ ${PLAY_SAVE_USAGE}`);
12288
12288
  expectedArtifactHash,
12289
12289
  watchPlay,
12290
12290
  dryRun,
12291
- jsonOutput: _chunkZD673XALjs.argsWantJson.call(void 0, args)
12291
+ jsonOutput: _chunkPX7XAVUCjs.argsWantJson.call(void 0, args)
12292
12292
  };
12293
12293
  }
12294
12294
  function printScheduledPlayCapacity(capacity) {
@@ -12499,7 +12499,7 @@ function printBundledRuntimeWarning(bundle) {
12499
12499
  async function handlePlayCheck(args) {
12500
12500
  const options = parsePlayCheckOptions(args);
12501
12501
  if (!isFileTarget(options.target)) {
12502
- const client = new (0, _chunkCNBPATLIjs.DeeplineClient)();
12502
+ const client = new (0, _chunk3JZXU5OBjs.DeeplineClient)();
12503
12503
  try {
12504
12504
  await assertCanonicalNamedPlayReference(client, options.target, {
12505
12505
  command: "check"
@@ -12528,7 +12528,7 @@ async function handlePlayCheck(args) {
12528
12528
  },
12529
12529
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
12530
12530
  };
12531
- _chunkZD673XALjs.printCommandEnvelope.call(void 0, result, {
12531
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0, result, {
12532
12532
  json: options.jsonOutput,
12533
12533
  fields: options.jsonFields,
12534
12534
  text: renderPlayCheckOutput(result) + "\n"
@@ -12538,7 +12538,7 @@ async function handlePlayCheck(args) {
12538
12538
  const resolved = _path.resolve.call(void 0, options.target);
12539
12539
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
12540
12540
  if (options.jsonOutput) {
12541
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
12541
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
12542
12542
  {
12543
12543
  kind: "play_check",
12544
12544
  checked: "named_contract",
@@ -12560,7 +12560,7 @@ async function handlePlayCheck(args) {
12560
12560
  const sourceCode = _fs.readFileSync.call(void 0, absolutePlayPath, "utf-8");
12561
12561
  const outcomes = await checkPlayFileExports({ absolutePlayPath, sourceCode });
12562
12562
  const primary = outcomes.find(
12563
- (outcome) => outcome.exportName === _chunkKQSTV4MWjs.PLAY_DEFAULT_EXPORT
12563
+ (outcome) => outcome.exportName === _chunkBLYW6FFBjs.PLAY_DEFAULT_EXPORT
12564
12564
  );
12565
12565
  const output = buildPlayCheckOutput({
12566
12566
  outcomes,
@@ -12569,7 +12569,7 @@ async function handlePlayCheck(args) {
12569
12569
  detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
12570
12570
  publishCommand: _optionalChain([primary, 'optionalAccess', _482 => _482.result, 'access', _483 => _483.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
12571
12571
  });
12572
- _chunkZD673XALjs.printCommandEnvelope.call(void 0, output, {
12572
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0, output, {
12573
12573
  json: options.jsonOutput,
12574
12574
  fields: options.jsonFields,
12575
12575
  text: renderPlayCheckOutput(output) + "\n"
@@ -12577,8 +12577,8 @@ async function handlePlayCheck(args) {
12577
12577
  return output.valid ? 0 : 1;
12578
12578
  }
12579
12579
  function resolvePlayCheckExportNames(sourceCode) {
12580
- const exports = _chunkKQSTV4MWjs.listPlayFileExports.call(void 0, sourceCode);
12581
- if (!exports || exports.length === 0) return [_chunkKQSTV4MWjs.PLAY_DEFAULT_EXPORT];
12580
+ const exports = _chunkBLYW6FFBjs.listPlayFileExports.call(void 0, sourceCode);
12581
+ if (!exports || exports.length === 0) return [_chunkBLYW6FFBjs.PLAY_DEFAULT_EXPORT];
12582
12582
  return exports.map((entry) => entry.name);
12583
12583
  }
12584
12584
  function artifactForProductionCompatibilityCheck(artifact) {
@@ -12637,7 +12637,7 @@ async function checkOneExportedPlay(input) {
12637
12637
  }
12638
12638
  const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
12639
12639
  const authoringErrors = collectPlayGraphAuthoringErrors(graph);
12640
- const client = _nullishCoalesce(input.client, () => ( new (0, _chunkCNBPATLIjs.DeeplineClient)()));
12640
+ const client = _nullishCoalesce(input.client, () => ( new (0, _chunk3JZXU5OBjs.DeeplineClient)()));
12641
12641
  const integrationMode = resolveEvalIntegrationMode();
12642
12642
  const checked = await checkLocalPlayGraph({
12643
12643
  client,
@@ -12693,8 +12693,8 @@ async function handleFileBackedRun(options, hooks) {
12693
12693
  let prefetchClient;
12694
12694
  let admissionCapability;
12695
12695
  let cancelAdmissionCapability;
12696
- let cliAdmission = _chunkUXXFCOE3js.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
12697
- const progress = _nullishCoalesce(_chunk6TZEDCN7js.getActiveCliProgress.call(void 0, ), () => ( _chunk6TZEDCN7js.createCliProgress.call(void 0, !options.jsonOutput)));
12696
+ let cliAdmission = _chunkNLENABRUjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
12697
+ const progress = _nullishCoalesce(_chunk2LNTKICOjs.getActiveCliProgress.call(void 0, ), () => ( _chunk2LNTKICOjs.createCliProgress.call(void 0, !options.jsonOutput)));
12698
12698
  const reportError = _nullishCoalesce(_optionalChain([hooks, 'optionalAccess', _492 => _492.writeDryRunError]), () => ( ((error) => console.error(error instanceof Error ? error.message : String(error)))));
12699
12699
  const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
12700
12700
  progress.phase("compiling play");
@@ -12711,11 +12711,11 @@ async function handleFileBackedRun(options, hooks) {
12711
12711
  return 1;
12712
12712
  }
12713
12713
  if (!options.dryRun && options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !inputContainsLocalFilePath(runtimeInput)) {
12714
- const clientForPrefetch = new (0, _chunkCNBPATLIjs.DeeplineClient)(playRunClientOptions(options));
12714
+ const clientForPrefetch = new (0, _chunk3JZXU5OBjs.DeeplineClient)(playRunClientOptions(options));
12715
12715
  prefetchClient = clientForPrefetch;
12716
12716
  const capabilityController = new AbortController();
12717
12717
  cancelAdmissionCapability = () => capabilityController.abort();
12718
- admissionCapability = _chunk2TAGAPLLjs.traceCliSpan.call(void 0,
12718
+ admissionCapability = _chunkNHKP2NSUjs.traceCliSpan.call(void 0,
12719
12719
  "cli.play_admission_capability_prefetch",
12720
12720
  { targetKind: "file" },
12721
12721
  () => clientForPrefetch.prefetchPlayRunAdmissionCapability({
@@ -12726,20 +12726,20 @@ async function handleFileBackedRun(options, hooks) {
12726
12726
  }
12727
12727
  let graph;
12728
12728
  try {
12729
- graph = await _chunk2TAGAPLLjs.traceCliSpan.call(void 0,
12729
+ graph = await _chunkNHKP2NSUjs.traceCliSpan.call(void 0,
12730
12730
  "cli.play_file_bundle_graph",
12731
12731
  { targetKind: "file" },
12732
12732
  () => collectBundledPlayGraph(
12733
12733
  absolutePlayPath,
12734
12734
  options.profile,
12735
- _chunkKQSTV4MWjs.PLAY_DEFAULT_EXPORT,
12735
+ _chunkBLYW6FFBjs.PLAY_DEFAULT_EXPORT,
12736
12736
  { cache: !options.dryRun }
12737
12737
  )
12738
12738
  );
12739
12739
  assertPlayGraphAuthoring(graph);
12740
12740
  if (options.dryRun) {
12741
12741
  progress.complete();
12742
- const plan = _chunkF3TLGM2Ujs.planLocalPlayExecution.call(void 0, graph, {
12742
+ const plan = _chunkC35NLLSAjs.planLocalPlayExecution.call(void 0, graph, {
12743
12743
  runIdFile: options.runIdFile
12744
12744
  });
12745
12745
  if (_optionalChain([hooks, 'optionalAccess', _493 => _493.writeDryRunPlan])) hooks.writeDryRunPlan(plan);
@@ -12750,9 +12750,9 @@ async function handleFileBackedRun(options, hooks) {
12750
12750
  });
12751
12751
  return 0;
12752
12752
  }
12753
- client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunkCNBPATLIjs.DeeplineClient)(playRunClientOptions(options))));
12753
+ client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunk3JZXU5OBjs.DeeplineClient)(playRunClientOptions(options))));
12754
12754
  if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
12755
- await _chunkUXXFCOE3js.checkPlayRunCompatibility.call(void 0,
12755
+ await _chunkNLENABRUjs.checkPlayRunCompatibility.call(void 0,
12756
12756
  client.baseUrl,
12757
12757
  options.maintenancePolicy
12758
12758
  );
@@ -12765,7 +12765,7 @@ async function handleFileBackedRun(options, hooks) {
12765
12765
  });
12766
12766
  const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput) && !mayBindBareFileName(graph.root, runtimeInput);
12767
12767
  if (canDeferCompilerManifest) {
12768
- _chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
12768
+ _chunkNHKP2NSUjs.recordCliTrace.call(void 0, {
12769
12769
  phase: "cli.play_file_compile_manifests",
12770
12770
  ms: 0,
12771
12771
  ok: true,
@@ -12774,7 +12774,7 @@ async function handleFileBackedRun(options, hooks) {
12774
12774
  reason: "validated_by_run_route"
12775
12775
  });
12776
12776
  } else {
12777
- await _chunk2TAGAPLLjs.traceCliSpan.call(void 0,
12777
+ await _chunkNHKP2NSUjs.traceCliSpan.call(void 0,
12778
12778
  "cli.play_file_compile_manifests",
12779
12779
  { targetKind: "file", skipped: false },
12780
12780
  () => compileBundledPlayGraphManifests(client, graph)
@@ -12782,7 +12782,7 @@ async function handleFileBackedRun(options, hooks) {
12782
12782
  }
12783
12783
  progress.phase("compiled play");
12784
12784
  } catch (error) {
12785
- if (error instanceof _chunkOK4JMVTMjs.ExecutionOutputError) throw error;
12785
+ if (error instanceof _chunkDUGTPVT7js.ExecutionOutputError) throw error;
12786
12786
  progress.fail();
12787
12787
  reportError(normalizePlayValidationError(error));
12788
12788
  return 1;
@@ -12793,13 +12793,13 @@ async function handleFileBackedRun(options, hooks) {
12793
12793
  if (bundleResult.importedPlayDependencies.length > 0) {
12794
12794
  try {
12795
12795
  renderLocalPlayExecutionPlan(
12796
- _chunkF3TLGM2Ujs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
12796
+ _chunkC35NLLSAjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
12797
12797
  );
12798
12798
  progress.phase("pinning imported plays");
12799
- graph = await _chunk2TAGAPLLjs.traceCliSpan.call(void 0,
12799
+ graph = await _chunkNHKP2NSUjs.traceCliSpan.call(void 0,
12800
12800
  "cli.play_file_pin_imports",
12801
12801
  { targetKind: "file" },
12802
- () => _chunkF3TLGM2Ujs.pinLocalPlayImports.call(void 0, client, graph)
12802
+ () => _chunkC35NLLSAjs.pinLocalPlayImports.call(void 0, client, graph)
12803
12803
  );
12804
12804
  bundleResult = graph.root;
12805
12805
  } catch (error) {
@@ -12812,11 +12812,11 @@ async function handleFileBackedRun(options, hooks) {
12812
12812
  (file) => stageFile(file.logicalPath, file.absolutePath)
12813
12813
  );
12814
12814
  const compilerManifest = _nullishCoalesce(bundleResult.compilerManifest, () => ( null));
12815
- const fileInputBindings = _chunkCQDQNZGHjs.playRunFileInputBindings.call(void 0, {
12815
+ const fileInputBindings = _chunkSL6MYJYMjs.playRunFileInputBindings.call(void 0, {
12816
12816
  inputSchema: _optionalChain([compilerManifest, 'optionalAccess', _494 => _494.authoringContract, 'optionalAccess', _495 => _495.inputSchema]),
12817
12817
  staticPipeline: _optionalChain([compilerManifest, 'optionalAccess', _496 => _496.staticPipeline])
12818
12818
  });
12819
- const stagedFileInputs = await _chunk2TAGAPLLjs.traceCliSpan.call(void 0,
12819
+ const stagedFileInputs = await _chunkNHKP2NSUjs.traceCliSpan.call(void 0,
12820
12820
  "cli.play_stage_inputs",
12821
12821
  {
12822
12822
  targetKind: "file",
@@ -12856,6 +12856,7 @@ async function handleFileBackedRun(options, hooks) {
12856
12856
  ...stagedFileInputs.packagedFiles.length ? { packagedFiles: stagedFileInputs.packagedFiles } : {},
12857
12857
  ...options.force ? { force: true } : {},
12858
12858
  ...options.forceToolRefresh ? { forceToolRefresh: true } : {},
12859
+ ...options.cacheReuseWindowSeconds !== null ? { cacheReuseWindowSeconds: options.cacheReuseWindowSeconds } : {},
12859
12860
  ...options.maxConcurrentExternalCalls !== null ? { maxConcurrentExternalCalls: options.maxConcurrentExternalCalls } : {},
12860
12861
  ...options.maxConcurrentRows !== null ? { maxConcurrentRows: options.maxConcurrentRows } : {},
12861
12862
  ...options.maxCredits !== null ? { maxCredits: options.maxCredits } : {},
@@ -12866,7 +12867,7 @@ async function handleFileBackedRun(options, hooks) {
12866
12867
  };
12867
12868
  if (options.watch) {
12868
12869
  progress.phase("starting run");
12869
- const finalStatus = await _chunk2TAGAPLLjs.traceCliSpan.call(void 0,
12870
+ const finalStatus = await _chunkNHKP2NSUjs.traceCliSpan.call(void 0,
12870
12871
  "cli.play_start_watch",
12871
12872
  { targetKind: "file", playName },
12872
12873
  () => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
@@ -12928,7 +12929,7 @@ async function handleFileBackedRun(options, hooks) {
12928
12929
  return outputStatus.status === "completed" ? 0 : 1;
12929
12930
  }
12930
12931
  progress.phase("starting run");
12931
- const started = await _chunk2TAGAPLLjs.traceCliSpan.call(void 0,
12932
+ const started = await _chunkNHKP2NSUjs.traceCliSpan.call(void 0,
12932
12933
  "cli.play_start_unwatched",
12933
12934
  { targetKind: "file", playName },
12934
12935
  () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _503 => _503.onSubmission]) }).catch(async (error) => {
@@ -12994,9 +12995,9 @@ async function handleNamedRun(options, hooks) {
12994
12995
  if (options.target.kind !== "name") {
12995
12996
  throw new Error("Expected a named play run target.");
12996
12997
  }
12997
- const client = new (0, _chunkCNBPATLIjs.DeeplineClient)(playRunClientOptions(options));
12998
- let cliAdmission = _chunkUXXFCOE3js.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
12999
- const progress = _nullishCoalesce(_chunk6TZEDCN7js.getActiveCliProgress.call(void 0, ), () => ( _chunk6TZEDCN7js.createCliProgress.call(void 0, !options.jsonOutput)));
12998
+ const client = new (0, _chunk3JZXU5OBjs.DeeplineClient)(playRunClientOptions(options));
12999
+ let cliAdmission = _chunkNLENABRUjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
13000
+ const progress = _nullishCoalesce(_chunk2LNTKICOjs.getActiveCliProgress.call(void 0, ), () => ( _chunk2LNTKICOjs.createCliProgress.call(void 0, !options.jsonOutput)));
13000
13001
  const playName = options.target.name;
13001
13002
  const runtimeInput = options.input ? { ...options.input } : {};
13002
13003
  try {
@@ -13014,7 +13015,7 @@ async function handleNamedRun(options, hooks) {
13014
13015
  if (options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !needsPlayDefinition && !inputContainsLocalFilePath(runtimeInput)) {
13015
13016
  const capabilityController = new AbortController();
13016
13017
  cancelAdmissionCapability = () => capabilityController.abort();
13017
- admissionCapability = _chunk2TAGAPLLjs.traceCliSpan.call(void 0,
13018
+ admissionCapability = _chunkNHKP2NSUjs.traceCliSpan.call(void 0,
13018
13019
  "cli.play_admission_capability_prefetch",
13019
13020
  { targetKind: "name", playName },
13020
13021
  () => client.prefetchPlayRunAdmissionCapability({
@@ -13025,14 +13026,14 @@ async function handleNamedRun(options, hooks) {
13025
13026
  }
13026
13027
  const playDetail = needsPlayDefinition ? await (async () => {
13027
13028
  progress.phase("loading play definition");
13028
- return _chunk2TAGAPLLjs.traceCliSpan.call(void 0,
13029
+ return _chunkNHKP2NSUjs.traceCliSpan.call(void 0,
13029
13030
  "cli.play_load_definition",
13030
13031
  { targetKind: "name", playName, skipped: false },
13031
13032
  () => assertCanonicalNamedPlayReference(client, playName, {
13032
13033
  command: "run"
13033
13034
  })
13034
13035
  );
13035
- })() : (_chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
13036
+ })() : (_chunkNHKP2NSUjs.recordCliTrace.call(void 0, {
13036
13037
  phase: "cli.play_load_definition",
13037
13038
  ms: 0,
13038
13039
  ok: true,
@@ -13041,7 +13042,7 @@ async function handleNamedRun(options, hooks) {
13041
13042
  skipped: true
13042
13043
  }), null);
13043
13044
  progress.phase("selecting revision");
13044
- const selectedRevisionId = await _chunk2TAGAPLLjs.traceCliSpan.call(void 0,
13045
+ const selectedRevisionId = await _chunkNHKP2NSUjs.traceCliSpan.call(void 0,
13045
13046
  "cli.play_select_revision",
13046
13047
  {
13047
13048
  targetKind: "name",
@@ -13062,14 +13063,14 @@ async function handleNamedRun(options, hooks) {
13062
13063
  maxTotalCredits: options.maxTotalCredits
13063
13064
  });
13064
13065
  const fileInputBindings = playDetail ? [
13065
- ..._chunkCQDQNZGHjs.fileInputBindingsFromPlaySchema.call(void 0, playDetail.play.inputSchema),
13066
- ..._chunkCQDQNZGHjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
13066
+ ..._chunkSL6MYJYMjs.fileInputBindingsFromPlaySchema.call(void 0, playDetail.play.inputSchema),
13067
+ ..._chunkSL6MYJYMjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
13067
13068
  ] : [];
13068
13069
  if (cliAdmission && fileInputBindings.length > 0) {
13069
- await _chunkUXXFCOE3js.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
13070
+ await _chunkNLENABRUjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
13070
13071
  cliAdmission = false;
13071
13072
  }
13072
- const stagedFileInputs = await _chunk2TAGAPLLjs.traceCliSpan.call(void 0,
13073
+ const stagedFileInputs = await _chunkNHKP2NSUjs.traceCliSpan.call(void 0,
13073
13074
  "cli.play_stage_inputs",
13074
13075
  {
13075
13076
  targetKind: "name",
@@ -13092,7 +13093,7 @@ async function handleNamedRun(options, hooks) {
13092
13093
  const testPolicyOverrides = {
13093
13094
  ...options.debugMapLatency ? { mapLatencyProfile: true } : {}
13094
13095
  };
13095
- const startRequest = _chunkCQDQNZGHjs.buildNamedPlayRunRequest.call(void 0, {
13096
+ const startRequest = _chunkSL6MYJYMjs.buildNamedPlayRunRequest.call(void 0, {
13096
13097
  name: playName,
13097
13098
  revisionId: selectedRevisionId,
13098
13099
  runtimeInput,
@@ -13102,6 +13103,7 @@ async function handleNamedRun(options, hooks) {
13102
13103
  ...options.maxTotalCredits !== null ? { maxTotalCredits: options.maxTotalCredits } : {},
13103
13104
  ...options.force ? { force: true } : {},
13104
13105
  ...options.forceToolRefresh ? { forceToolRefresh: true } : {},
13106
+ ...options.cacheReuseWindowSeconds !== null ? { cacheReuseWindowSeconds: options.cacheReuseWindowSeconds } : {},
13105
13107
  ...options.maxConcurrentExternalCalls !== null ? { maxConcurrentExternalCalls: options.maxConcurrentExternalCalls } : {},
13106
13108
  ...options.maxConcurrentRows !== null ? { maxConcurrentRows: options.maxConcurrentRows } : {},
13107
13109
  ...options.maxCredits !== null ? { maxCredits: options.maxCredits } : {},
@@ -13113,7 +13115,7 @@ async function handleNamedRun(options, hooks) {
13113
13115
  });
13114
13116
  if (options.watch) {
13115
13117
  progress.phase("starting run");
13116
- const finalStatus = await _chunk2TAGAPLLjs.traceCliSpan.call(void 0,
13118
+ const finalStatus = await _chunkNHKP2NSUjs.traceCliSpan.call(void 0,
13117
13119
  "cli.play_start_watch",
13118
13120
  { targetKind: "name", playName },
13119
13121
  () => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
@@ -13178,7 +13180,7 @@ async function handleNamedRun(options, hooks) {
13178
13180
  return outputStatus.status === "completed" ? 0 : 1;
13179
13181
  }
13180
13182
  progress.phase("starting run");
13181
- const started = await _chunk2TAGAPLLjs.traceCliSpan.call(void 0,
13183
+ const started = await _chunkNHKP2NSUjs.traceCliSpan.call(void 0,
13182
13184
  "cli.play_start_unwatched",
13183
13185
  { targetKind: "name", playName },
13184
13186
  () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _516 => _516.onSubmission]) }).catch(async (error) => {
@@ -13238,7 +13240,7 @@ async function writePlayRunReceipt(client, status, output) {
13238
13240
  const next = { status: `deepline runs get ${status.runId}` };
13239
13241
  const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _524 => _524.exec, 'call', _525 => _525(status.runId), 'optionalAccess', _526 => _526[1]]), () => ( extractRunPlayName(status))), () => ( null));
13240
13242
  if (!terminal) {
13241
- _chunkOK4JMVTMjs.writeExecutionOutput.call(void 0,
13243
+ _chunkDUGTPVT7js.writeExecutionOutput.call(void 0,
13242
13244
  {
13243
13245
  id: status.runId,
13244
13246
  status: status.status,
@@ -13318,10 +13320,10 @@ async function writePlayRunReceipt(client, status, output) {
13318
13320
  };
13319
13321
  }
13320
13322
  const byRows = new Map(collections.map((c) => [c.rows, c]));
13321
- const allCollections = _chunkOK4JMVTMjs.outputCollections.call(void 0, data).map(
13323
+ const allCollections = _chunkDUGTPVT7js.outputCollections.call(void 0, data).map(
13322
13324
  (collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
13323
13325
  );
13324
- _chunkOK4JMVTMjs.writeExecutionOutput.call(void 0,
13326
+ _chunkDUGTPVT7js.writeExecutionOutput.call(void 0,
13325
13327
  {
13326
13328
  id: status.runId,
13327
13329
  status: status.status,
@@ -13342,7 +13344,7 @@ async function writePlayRunReceipt(client, status, output) {
13342
13344
  }
13343
13345
  var TOOL_EXECUTION_ID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
13344
13346
  async function handlePlayRun(args, hooks) {
13345
- const parsedOptions = Array.isArray(args) ? _chunkUKO6POLZjs.parsePlayRunOptions.call(void 0, args) : args;
13347
+ const parsedOptions = Array.isArray(args) ? _chunk23D224GIjs.parsePlayRunOptions.call(void 0, args) : args;
13346
13348
  const options = parsedOptions.runIdFile ? {
13347
13349
  ...parsedOptions,
13348
13350
  runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
@@ -13359,7 +13361,7 @@ async function handlePlayRun(args, hooks) {
13359
13361
  JSON.stringify({
13360
13362
  version: 1,
13361
13363
  admissionState: "submitted_unknown",
13362
- baseUrl: new (0, _chunkCNBPATLIjs.DeeplineClient)().baseUrl,
13364
+ baseUrl: new (0, _chunk3JZXU5OBjs.DeeplineClient)().baseUrl,
13363
13365
  ...intent
13364
13366
  })
13365
13367
  );
@@ -13612,7 +13614,7 @@ function renderRunOverviewText(overview, extras = {}) {
13612
13614
  );
13613
13615
  return `${lines.join("\n")}
13614
13616
 
13615
- ${_chunkZD673XALjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13617
+ ${_chunkPX7XAVUCjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13616
13618
  }
13617
13619
  var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
13618
13620
  async function withRunReadTiming(command, stage, enabled, action) {
@@ -13636,7 +13638,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
13636
13638
  }
13637
13639
  }
13638
13640
  async function handleRunGet(args) {
13639
- const selection = _chunkZD673XALjs.parseJsonFields.call(void 0,
13641
+ const selection = _chunkPX7XAVUCjs.parseJsonFields.call(void 0,
13640
13642
  args,
13641
13643
  args.includes("--config") ? "config" : "get"
13642
13644
  );
@@ -13649,7 +13651,7 @@ async function handleRunGet(args) {
13649
13651
  console.error(error instanceof Error ? error.message : usage2);
13650
13652
  return 1;
13651
13653
  }
13652
- const client = new (0, _chunkCNBPATLIjs.DeeplineClient)();
13654
+ const client = new (0, _chunk3JZXU5OBjs.DeeplineClient)();
13653
13655
  const timing = args.includes("--timing");
13654
13656
  const web = args.includes("--web");
13655
13657
  if (web || args.includes("--web-url")) {
@@ -13667,8 +13669,8 @@ async function handleRunGet(args) {
13667
13669
  const dashboardUrl2 = _chunkXYIECA7Mjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
13668
13670
  const runUrl2 = _chunkXYIECA7Mjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName2, runId);
13669
13671
  if (web) {
13670
- const opened = _chunkZD673XALjs.openInBrowser.call(void 0, runUrl2);
13671
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
13672
+ const opened = _chunkPX7XAVUCjs.openInBrowser.call(void 0, runUrl2);
13673
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
13672
13674
  { dashboardUrl: dashboardUrl2, runUrl: runUrl2, opened: opened === "opened" },
13673
13675
  {
13674
13676
  json: args.includes("--json"),
@@ -13679,7 +13681,7 @@ async function handleRunGet(args) {
13679
13681
  );
13680
13682
  return 0;
13681
13683
  }
13682
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
13684
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
13683
13685
  { dashboardUrl: dashboardUrl2, runUrl: runUrl2 },
13684
13686
  { json: args.includes("--json"), text: `${runUrl2}
13685
13687
  ` }
@@ -13704,7 +13706,7 @@ async function handleRunGet(args) {
13704
13706
  "This server does not support recorded configuration reads."
13705
13707
  );
13706
13708
  }
13707
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
13709
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
13708
13710
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
13709
13711
  { json: true, fields: selection.fields }
13710
13712
  );
@@ -13717,7 +13719,7 @@ async function handleRunGet(args) {
13717
13719
  timing,
13718
13720
  () => client.getRunInput(runId)
13719
13721
  );
13720
- _chunkZD673XALjs.printCommandEnvelope.call(void 0, input, { json: true });
13722
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0, input, { json: true });
13721
13723
  return 0;
13722
13724
  }
13723
13725
  const full = args.includes("--full");
@@ -13732,7 +13734,7 @@ async function handleRunGet(args) {
13732
13734
  failedLogs: args.includes("--log-failed")
13733
13735
  })
13734
13736
  );
13735
- if (status.package) _chunkOK4JMVTMjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
13737
+ if (status.package) _chunkDUGTPVT7js.recordPlayTermination.call(void 0, buildRunOverview(status).run);
13736
13738
  if (!status.package) {
13737
13739
  const legacyStatus = full ? await withRunReadTiming(
13738
13740
  "runs get",
@@ -13746,8 +13748,8 @@ async function handleRunGet(args) {
13746
13748
  const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
13747
13749
  const legacyDashboardUrl = legacyPlayName ? _chunkXYIECA7Mjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
13748
13750
  const legacyRunUrl = legacyPlayName ? _chunkXYIECA7Mjs.buildPlayRunUrl.call(void 0, client.baseUrl, legacyPlayName, runId) : null;
13749
- if (_chunkZD673XALjs.argsWantJson.call(void 0, args)) {
13750
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
13751
+ if (_chunkPX7XAVUCjs.argsWantJson.call(void 0, args)) {
13752
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
13751
13753
  {
13752
13754
  ...full ? legacyStatus : compactPlayStatus(legacyStatus),
13753
13755
  ...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {},
@@ -13758,7 +13760,7 @@ async function handleRunGet(args) {
13758
13760
  } else {
13759
13761
  writePlayResult(legacyStatus, false, { fullJson: full });
13760
13762
  if (legacyRunUrl)
13761
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
13763
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
13762
13764
  { dashboardUrl: legacyDashboardUrl, runUrl: legacyRunUrl },
13763
13765
  { json: false, text: `run page: ${legacyRunUrl}
13764
13766
  ` }
@@ -13788,11 +13790,11 @@ async function handleRunGet(args) {
13788
13790
  )
13789
13791
  ]);
13790
13792
  const hitLines = formatRunHitsLines(hits);
13791
- const json = _chunkZD673XALjs.argsWantJson.call(void 0, args);
13793
+ const json = _chunkPX7XAVUCjs.argsWantJson.call(void 0, args);
13792
13794
  const playName = resolveRunPlayName(status, runId);
13793
13795
  const dashboardUrl = playName ? _chunkXYIECA7Mjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
13794
13796
  const runUrl = playName ? _chunkXYIECA7Mjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName, runId) : void 0;
13795
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
13797
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
13796
13798
  {
13797
13799
  ...overview,
13798
13800
  ...dashboardUrl ? { dashboardUrl } : {},
@@ -13897,9 +13899,9 @@ async function handleRunLifecycleStatus(args) {
13897
13899
  console.error(error instanceof Error ? error.message : usage2);
13898
13900
  return 1;
13899
13901
  }
13900
- const status = await new (0, _chunkCNBPATLIjs.DeeplineClient)().runs.status(runId);
13901
- if (_chunkZD673XALjs.argsWantJson.call(void 0, args)) {
13902
- _chunkZD673XALjs.printCommandEnvelope.call(void 0, status, { json: true });
13902
+ const status = await new (0, _chunk3JZXU5OBjs.DeeplineClient)().runs.status(runId);
13903
+ if (_chunkPX7XAVUCjs.argsWantJson.call(void 0, args)) {
13904
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0, status, { json: true });
13903
13905
  return 0;
13904
13906
  }
13905
13907
  if (!status.available) {
@@ -13965,7 +13967,7 @@ async function handleRunsRerun(args) {
13965
13967
  console.error(error instanceof Error ? error.message : usage2);
13966
13968
  return 1;
13967
13969
  }
13968
- const options = { json: _chunkZD673XALjs.argsWantJson.call(void 0, args) };
13970
+ const options = { json: _chunkPX7XAVUCjs.argsWantJson.call(void 0, args) };
13969
13971
  for (let index = 0; index < args.length; index += 1) {
13970
13972
  if (args[index] === "--idempotency-key") {
13971
13973
  options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
@@ -14031,8 +14033,8 @@ ${usage2}
14031
14033
  Discover Plays: ${next.discover}
14032
14034
  Active runs: ${next.running}`
14033
14035
  );
14034
- if (_chunkZD673XALjs.argsWantJson.call(void 0, args)) {
14035
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
14036
+ if (_chunkPX7XAVUCjs.argsWantJson.call(void 0, args)) {
14037
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
14036
14038
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
14037
14039
  { json: true }
14038
14040
  );
@@ -14047,7 +14049,7 @@ Active runs: ${next.running}`
14047
14049
  console.error("--offset requires --play.");
14048
14050
  return 1;
14049
14051
  }
14050
- const client = new (0, _chunkCNBPATLIjs.DeeplineClient)();
14052
+ const client = new (0, _chunk3JZXU5OBjs.DeeplineClient)();
14051
14053
  const page = await withRunReadTiming(
14052
14054
  "runs list",
14053
14055
  "run inventory",
@@ -14114,14 +14116,14 @@ Active runs: ${next.running}`
14114
14116
  return lines2.join("\n");
14115
14117
  });
14116
14118
  const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
14117
- const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkAID3OYVJjs.shellQuote.call(void 0, nodeId)}` : ""}${statusFilter ? ` --status ${_chunkAID3OYVJjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${_chunkZD673XALjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
14119
+ const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkAID3OYVJjs.shellQuote.call(void 0, nodeId)}` : ""}${statusFilter ? ` --status ${_chunkAID3OYVJjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${_chunkPX7XAVUCjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
14118
14120
  if (page.hasMore) {
14119
14121
  lines.push("List truncated \u2014 more runs match this filter.");
14120
14122
  lines.push(
14121
14123
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
14122
14124
  );
14123
14125
  }
14124
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
14126
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
14125
14127
  {
14126
14128
  runs,
14127
14129
  count: runs.length,
@@ -14135,7 +14137,7 @@ Active runs: ${next.running}`
14135
14137
  },
14136
14138
  render: { sections: [{ title: "runs", lines }] }
14137
14139
  },
14138
- { json: _chunkZD673XALjs.argsWantJson.call(void 0, args) }
14140
+ { json: _chunkPX7XAVUCjs.argsWantJson.call(void 0, args) }
14139
14141
  );
14140
14142
  return 0;
14141
14143
  }
@@ -14165,7 +14167,7 @@ async function handleRunTail(args) {
14165
14167
  console.error("--log-level requires one of: debug, info, warn, error.");
14166
14168
  return 1;
14167
14169
  }
14168
- const parsed = _chunk323I5KQ5js.parseLogLevel.call(void 0, value);
14170
+ const parsed = _chunk46BEBZ3Mjs.parseLogLevel.call(void 0, value);
14169
14171
  if (!parsed) {
14170
14172
  console.error(
14171
14173
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14203,9 +14205,9 @@ async function handleRunTail(args) {
14203
14205
  );
14204
14206
  return 1;
14205
14207
  }
14206
- const client = new (0, _chunkCNBPATLIjs.DeeplineClient)();
14208
+ const client = new (0, _chunk3JZXU5OBjs.DeeplineClient)();
14207
14209
  const jsonLines = args.includes("--jsonl");
14208
- const jsonOutput = !jsonLines && _chunkZD673XALjs.argsWantJson.call(void 0, args);
14210
+ const jsonOutput = !jsonLines && _chunkPX7XAVUCjs.argsWantJson.call(void 0, args);
14209
14211
  const compact = args.includes("--compact");
14210
14212
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
14211
14213
  const compactState = {
@@ -14286,7 +14288,7 @@ async function handleRunLogs(args) {
14286
14288
  ]);
14287
14289
  const cursorIndex = args.indexOf("--cursor");
14288
14290
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
14289
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunk323I5KQ5js.isRunLogsCursor.call(void 0, cursorValue));
14291
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunk46BEBZ3Mjs.isRunLogsCursor.call(void 0, cursorValue));
14290
14292
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
14291
14293
  return handleRunEventSearch(args);
14292
14294
  }
@@ -14320,7 +14322,7 @@ async function handleRunLogs(args) {
14320
14322
  console.error("--log-level requires one of: debug, info, warn, error.");
14321
14323
  return 1;
14322
14324
  }
14323
- const parsed = _chunk323I5KQ5js.parseLogLevel.call(void 0, value);
14325
+ const parsed = _chunk46BEBZ3Mjs.parseLogLevel.call(void 0, value);
14324
14326
  if (!parsed) {
14325
14327
  console.error(
14326
14328
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14367,12 +14369,12 @@ async function handleRunLogs(args) {
14367
14369
  );
14368
14370
  return 1;
14369
14371
  }
14370
- const client = new (0, _chunkCNBPATLIjs.DeeplineClient)();
14372
+ const client = new (0, _chunk3JZXU5OBjs.DeeplineClient)();
14371
14373
  if (outPath) {
14372
14374
  const result2 = await client.runs.logs(runId, { all: true });
14373
- const logs = result2.entries.filter((line) => _chunk323I5KQ5js.logLevelReaches.call(void 0, _chunk323I5KQ5js.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunk323I5KQ5js.classifyLogLine.call(void 0, line).line);
14375
+ const logs = result2.entries.filter((line) => _chunk46BEBZ3Mjs.logLevelReaches.call(void 0, _chunk46BEBZ3Mjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunk46BEBZ3Mjs.classifyLogLine.call(void 0, line).line);
14374
14376
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
14375
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
14377
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
14376
14378
  {
14377
14379
  runId: result2.runId,
14378
14380
  log_path: outPath,
@@ -14395,7 +14397,7 @@ async function handleRunLogs(args) {
14395
14397
  ]
14396
14398
  }
14397
14399
  },
14398
- { json: _chunkZD673XALjs.argsWantJson.call(void 0, args) }
14400
+ { json: _chunkPX7XAVUCjs.argsWantJson.call(void 0, args) }
14399
14401
  );
14400
14402
  return 0;
14401
14403
  }
@@ -14426,7 +14428,7 @@ async function handleRunLogs(args) {
14426
14428
  }
14427
14429
  };
14428
14430
  const text = buildRunLogsText(filteredResult);
14429
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
14431
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
14430
14432
  {
14431
14433
  runId: result.runId,
14432
14434
  totalCount: result.totalCount,
@@ -14450,7 +14452,7 @@ async function handleRunLogs(args) {
14450
14452
  render: { sections: [{ title: "run logs", lines: entries }] }
14451
14453
  },
14452
14454
  {
14453
- json: _chunkZD673XALjs.argsWantJson.call(void 0, args),
14455
+ json: _chunkPX7XAVUCjs.argsWantJson.call(void 0, args),
14454
14456
  text
14455
14457
  }
14456
14458
  );
@@ -14474,7 +14476,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
14474
14476
  );
14475
14477
  }
14476
14478
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
14477
- (entry) => _chunk323I5KQ5js.logLevelReaches.call(void 0, _chunk323I5KQ5js.classifyLogLine.call(void 0, entry.line).level, logLevel)
14479
+ (entry) => _chunk46BEBZ3Mjs.logLevelReaches.call(void 0, _chunk46BEBZ3Mjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14478
14480
  );
14479
14481
  const selected = matching.slice(-limit);
14480
14482
  const olderMatchesExist = matching.length > selected.length;
@@ -14484,7 +14486,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
14484
14486
  lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _559 => _559.at, 'call', _560 => _560(-1), 'optionalAccess', _561 => _561.seq]), () => ( null)),
14485
14487
  truncated: result.truncated || olderMatchesExist,
14486
14488
  hasMore: olderMatchesExist,
14487
- nextCursor: olderMatchesExist ? _chunk323I5KQ5js.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14489
+ nextCursor: olderMatchesExist ? _chunk46BEBZ3Mjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14488
14490
  };
14489
14491
  }
14490
14492
  async function handleRunEventSearch(args) {
@@ -14551,7 +14553,7 @@ ${usage2}`);
14551
14553
  namespace,
14552
14554
  ...backend ? { backend } : {}
14553
14555
  } : void 0;
14554
- const client = new (0, _chunkCNBPATLIjs.DeeplineClient)();
14556
+ const client = new (0, _chunk3JZXU5OBjs.DeeplineClient)();
14555
14557
  const result = await client.runs.searchEvents({
14556
14558
  ...runId ? { runId } : {},
14557
14559
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -14623,7 +14625,7 @@ ${renderedDetails}` : ""}`;
14623
14625
  "--limit",
14624
14626
  String(limit)
14625
14627
  ].join(" ") : null;
14626
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
14628
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
14627
14629
  {
14628
14630
  events,
14629
14631
  nextCursor: result.nextCursor,
@@ -14634,14 +14636,14 @@ ${renderedDetails}` : ""}`;
14634
14636
  render: { sections: [{ title: "runtime events", lines }] }
14635
14637
  },
14636
14638
  {
14637
- json: _chunkZD673XALjs.argsWantJson.call(void 0, args),
14639
+ json: _chunkPX7XAVUCjs.argsWantJson.call(void 0, args),
14638
14640
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
14639
14641
  }
14640
14642
  );
14641
14643
  return 0;
14642
14644
  }
14643
14645
  function buildRunLogsText(result) {
14644
- const lines = result.entries.map((line) => _chunk323I5KQ5js.classifyLogLine.call(void 0, line).line);
14646
+ const lines = result.entries.map((line) => _chunk46BEBZ3Mjs.classifyLogLine.call(void 0, line).line);
14645
14647
  if (result.warning) {
14646
14648
  if (lines.length > 0) lines.push("");
14647
14649
  lines.push(`warning: ${result.warning}`);
@@ -14675,8 +14677,16 @@ async function handleRunStop(args) {
14675
14677
  reason = args[++index];
14676
14678
  }
14677
14679
  }
14678
- const client = new (0, _chunkCNBPATLIjs.DeeplineClient)();
14680
+ const client = new (0, _chunk3JZXU5OBjs.DeeplineClient)();
14679
14681
  const result = await client.runs.stop(runId, { reason });
14682
+ const communicationNotes = [
14683
+ ...result.communicationCancelledCount ? [
14684
+ `cancelled message waits: ${result.communicationCancelledCount}${result.communicationCancelledCountPartial ? "+" : ""}`
14685
+ ] : [],
14686
+ ...result.communicationCancellationPending ? [
14687
+ `warning: message wait cleanup is pending; retry 'deepline runs stop ${runId}'`
14688
+ ] : []
14689
+ ];
14680
14690
  const state = resolveRunStopState(result);
14681
14691
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
14682
14692
  if (state === "cancelling" && !hitlCleanupIncomplete) {
@@ -14687,10 +14697,11 @@ async function handleRunStop(args) {
14687
14697
  } = result;
14688
14698
  const lines2 = [
14689
14699
  `Cancelling run ${result.runId || runId}; sandbox cleanup and the final run update are pending.`,
14700
+ ...communicationNotes,
14690
14701
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
14691
14702
  `inspect: deepline runs get ${runId} --full`
14692
14703
  ];
14693
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
14704
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
14694
14705
  {
14695
14706
  ...cancelling,
14696
14707
  state,
@@ -14705,7 +14716,7 @@ async function handleRunStop(args) {
14705
14716
  ]
14706
14717
  }
14707
14718
  },
14708
- { json: _chunkZD673XALjs.argsWantJson.call(void 0, args) }
14719
+ { json: _chunkPX7XAVUCjs.argsWantJson.call(void 0, args) }
14709
14720
  );
14710
14721
  return 0;
14711
14722
  }
@@ -14713,6 +14724,7 @@ async function handleRunStop(args) {
14713
14724
  const detail = typeof result.error === "string" && result.error.trim() ? result.error.trim() : hitlCleanupIncomplete ? "cancellation is queued, but HITL cleanup is still pending" : result.staleSchedulerState === true ? "scheduler state for the run is stale" : "the server did not confirm the stop";
14714
14725
  const lines2 = [
14715
14726
  `Failed to stop run ${runId}: ${detail}.`,
14727
+ ...communicationNotes,
14716
14728
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
14717
14729
  ...result.hitlCancellationPending === true ? [
14718
14730
  "warning: HITL cancellation or same-card Slack refresh is still pending"
@@ -14722,7 +14734,7 @@ async function handleRunStop(args) {
14722
14734
  ];
14723
14735
  process.stderr.write(`${lines2.join("\n")}
14724
14736
  `);
14725
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
14737
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
14726
14738
  {
14727
14739
  ...result,
14728
14740
  render: {
@@ -14737,23 +14749,24 @@ async function handleRunStop(args) {
14737
14749
  ]
14738
14750
  }
14739
14751
  },
14740
- { json: _chunkZD673XALjs.argsWantJson.call(void 0, args) }
14752
+ { json: _chunkPX7XAVUCjs.argsWantJson.call(void 0, args) }
14741
14753
  );
14742
14754
  return 1;
14743
14755
  }
14744
14756
  const lines = [
14745
14757
  `Stopped ${result.runId}`,
14758
+ ...communicationNotes,
14746
14759
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
14747
14760
  ...result.hitlCancellationPending === true ? [
14748
14761
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
14749
14762
  ] : []
14750
14763
  ];
14751
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
14764
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
14752
14765
  {
14753
14766
  ...result,
14754
14767
  render: { sections: [{ title: "run stop", lines }] }
14755
14768
  },
14756
- { json: _chunkZD673XALjs.argsWantJson.call(void 0, args) }
14769
+ { json: _chunkPX7XAVUCjs.argsWantJson.call(void 0, args) }
14757
14770
  );
14758
14771
  return 0;
14759
14772
  }
@@ -14803,18 +14816,18 @@ async function handleRunStopAll(args) {
14803
14816
  reason = args[++index];
14804
14817
  }
14805
14818
  }
14806
- const client = new (0, _chunkCNBPATLIjs.DeeplineClient)();
14819
+ const client = new (0, _chunk3JZXU5OBjs.DeeplineClient)();
14807
14820
  if (dryRun) {
14808
14821
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
14809
14822
  const lines2 = buildStopAllDryRunTextLines(result2);
14810
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
14823
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
14811
14824
  {
14812
14825
  ...result2,
14813
14826
  render: {
14814
14827
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
14815
14828
  }
14816
14829
  },
14817
- { json: _chunkZD673XALjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14830
+ { json: _chunkPX7XAVUCjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14818
14831
  ` }
14819
14832
  );
14820
14833
  return 0;
@@ -14827,17 +14840,17 @@ async function handleRunStopAll(args) {
14827
14840
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
14828
14841
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
14829
14842
  ];
14830
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
14843
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
14831
14844
  {
14832
14845
  ...result,
14833
14846
  render: { sections: [{ title: "workspace stop-all", lines }] }
14834
14847
  },
14835
- { json: _chunkZD673XALjs.argsWantJson.call(void 0, args) }
14848
+ { json: _chunkPX7XAVUCjs.argsWantJson.call(void 0, args) }
14836
14849
  );
14837
14850
  return result.failed > 0 || result.partial ? 1 : 0;
14838
14851
  }
14839
14852
  async function handleRunExport(args) {
14840
- const selection = _chunkZD673XALjs.parseJsonFields.call(void 0, args, "export");
14853
+ const selection = _chunkPX7XAVUCjs.parseJsonFields.call(void 0, args, "export");
14841
14854
  args = selection.args;
14842
14855
  const usage2 = "Usage: deepline runs export <run-id> [--dataset result.rows] --out <path> [--format csv|json] [--summary full|counts] [--wait] [--timeout-ms 300000] [--metadata-out export.json] [--allow-empty] [--json]";
14843
14856
  let runId;
@@ -14908,17 +14921,17 @@ async function handleRunExport(args) {
14908
14921
  "INVALID_ARGUMENT"
14909
14922
  );
14910
14923
  }
14911
- const client = new (0, _chunkCNBPATLIjs.DeeplineClient)();
14924
+ const client = new (0, _chunk3JZXU5OBjs.DeeplineClient)();
14912
14925
  let status = await client.getPlayStatus(runId, { full: true });
14913
14926
  assertRunExportStatusIdentity(status, runId);
14914
14927
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
14915
- const progress = _chunk6TZEDCN7js.createCliProgress.call(void 0, !_chunkZD673XALjs.argsWantJson.call(void 0, args));
14928
+ const progress = _chunk2LNTKICOjs.createCliProgress.call(void 0, !_chunkPX7XAVUCjs.argsWantJson.call(void 0, args));
14916
14929
  try {
14917
14930
  await waitForPlayCompletionByWatch({
14918
14931
  client,
14919
14932
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
14920
14933
  workflowId: runId,
14921
- jsonOutput: _chunkZD673XALjs.argsWantJson.call(void 0, args),
14934
+ jsonOutput: _chunkPX7XAVUCjs.argsWantJson.call(void 0, args),
14922
14935
  emitLogs: false,
14923
14936
  waitTimeoutMs,
14924
14937
  startedAt: Date.now(),
@@ -14986,7 +14999,7 @@ async function handleRunExport(args) {
14986
14999
  rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _575 => _575.rowsInfo, 'access', _576 => _576.totalRows]), () => ( null)),
14987
15000
  ...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
14988
15001
  ...rowFailures ? { rowFailures } : {},
14989
- columns: _chunkOK4JMVTMjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _577 => _577.rowsInfo, 'access', _578 => _578.columns]), () => ( []))),
15002
+ columns: _chunkDUGTPVT7js.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _577 => _577.rowsInfo, 'access', _578 => _578.columns]), () => ( []))),
14990
15003
  ...currentTableNotice ? { notice: currentTableNotice } : {},
14991
15004
  ...metadataOutPath ? { metadata_path: metadataOutPath } : {},
14992
15005
  ...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
@@ -15020,8 +15033,8 @@ async function handleRunExport(args) {
15020
15033
  "utf-8"
15021
15034
  );
15022
15035
  }
15023
- _chunkZD673XALjs.printCommandEnvelope.call(void 0, payload, {
15024
- json: _chunkZD673XALjs.argsWantJson.call(void 0, args),
15036
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0, payload, {
15037
+ json: _chunkPX7XAVUCjs.argsWantJson.call(void 0, args),
15025
15038
  fields: selection.fields,
15026
15039
  text: `${lines.join("\n")}
15027
15040
  `
@@ -15055,10 +15068,10 @@ async function handlePlayGet(args) {
15055
15068
  );
15056
15069
  return 2;
15057
15070
  }
15058
- const client = new (0, _chunkCNBPATLIjs.DeeplineClient)();
15071
+ const client = new (0, _chunk3JZXU5OBjs.DeeplineClient)();
15059
15072
  const explicitJson = args.includes("--json");
15060
15073
  const sourceOutput = args.includes("--source");
15061
- const jsonOutput = sourceOutput ? explicitJson : _chunkZD673XALjs.argsWantJson.call(void 0, args);
15074
+ const jsonOutput = sourceOutput ? explicitJson : _chunkPX7XAVUCjs.argsWantJson.call(void 0, args);
15062
15075
  const requestedRevisionFlags = [
15063
15076
  args.includes("--working"),
15064
15077
  args.includes("--live"),
@@ -15121,7 +15134,7 @@ async function handlePlayGet(args) {
15121
15134
  }
15122
15135
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
15123
15136
  if (jsonOutput) {
15124
- _chunkZD673XALjs.printCompactJson.call(void 0, {
15137
+ _chunkPX7XAVUCjs.printCompactJson.call(void 0, {
15125
15138
  ...detail,
15126
15139
  ...materializedFile ? {
15127
15140
  message: loadedMessage,
@@ -15213,8 +15226,8 @@ async function handlePlayVersions(args) {
15213
15226
  console.error("Usage: deepline plays versions --name <name> [--json]");
15214
15227
  return 1;
15215
15228
  }
15216
- const client = new (0, _chunkCNBPATLIjs.DeeplineClient)();
15217
- const jsonOutput = _chunkZD673XALjs.argsWantJson.call(void 0, args);
15229
+ const client = new (0, _chunk3JZXU5OBjs.DeeplineClient)();
15230
+ const jsonOutput = _chunkPX7XAVUCjs.argsWantJson.call(void 0, args);
15218
15231
  await assertCanonicalNamedPlayReference(client, playName, {
15219
15232
  command: "versions"
15220
15233
  });
@@ -15222,7 +15235,7 @@ async function handlePlayVersions(args) {
15222
15235
  parseReferencedPlayTarget(playName).playName
15223
15236
  );
15224
15237
  if (jsonOutput) {
15225
- _chunkZD673XALjs.printCompactJson.call(void 0, { versions });
15238
+ _chunkPX7XAVUCjs.printCompactJson.call(void 0, { versions });
15226
15239
  return 0;
15227
15240
  }
15228
15241
  if (versions.length === 0) {
@@ -15261,8 +15274,8 @@ async function handlePlayCost(args) {
15261
15274
  console.error("Usage: deepline plays cost <play> [--json]");
15262
15275
  return 2;
15263
15276
  }
15264
- const result = await new (0, _chunkCNBPATLIjs.DeeplineClient)().getPlayCostEstimate(name);
15265
- if (_chunkZD673XALjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
15277
+ const result = await new (0, _chunk3JZXU5OBjs.DeeplineClient)().getPlayCostEstimate(name);
15278
+ if (_chunkPX7XAVUCjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
15266
15279
  else
15267
15280
  console.log(
15268
15281
  `${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
@@ -15270,9 +15283,9 @@ async function handlePlayCost(args) {
15270
15283
  return 0;
15271
15284
  }
15272
15285
  async function handlePlayList(args) {
15273
- const jsonOutput = _chunkZD673XALjs.argsWantJson.call(void 0, args);
15286
+ const jsonOutput = _chunkPX7XAVUCjs.argsWantJson.call(void 0, args);
15274
15287
  const showCost = args.includes("--show-cost");
15275
- const client = new (0, _chunkCNBPATLIjs.DeeplineClient)();
15288
+ const client = new (0, _chunk3JZXU5OBjs.DeeplineClient)();
15276
15289
  const categoriesIndex = args.indexOf("--categories");
15277
15290
  const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _597 => _597[categoriesIndex + 1], 'optionalAccess', _598 => _598.trim, 'call', _599 => _599()]) : void 0;
15278
15291
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
@@ -15370,7 +15383,7 @@ async function handlePlayList(args) {
15370
15383
  lines.push("List truncated \u2014 more plays are available.");
15371
15384
  lines.push(`Next page: ${nextPage}`);
15372
15385
  }
15373
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
15386
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
15374
15387
  {
15375
15388
  plays,
15376
15389
  count: plays.length,
@@ -15388,7 +15401,7 @@ async function handlePlayList(args) {
15388
15401
  }
15389
15402
  async function handlePlayPin(args, pinned) {
15390
15403
  const target = _optionalChain([args, 'access', _608 => _608.find, 'call', _609 => _609((arg) => !arg.startsWith("-")), 'optionalAccess', _610 => _610.trim, 'call', _611 => _611()]);
15391
- const jsonOutput = _chunkZD673XALjs.argsWantJson.call(void 0, args);
15404
+ const jsonOutput = _chunkPX7XAVUCjs.argsWantJson.call(void 0, args);
15392
15405
  const dryRun = args.includes("--dry-run");
15393
15406
  if (!target) {
15394
15407
  console.error(
@@ -15406,11 +15419,11 @@ async function handlePlayPin(args, pinned) {
15406
15419
  const name = parsedTarget.playName;
15407
15420
  const plan = { name, pinned, dryRun };
15408
15421
  if (dryRun) {
15409
- _chunkZD673XALjs.printCompactJson.call(void 0, plan);
15422
+ _chunkPX7XAVUCjs.printCompactJson.call(void 0, plan);
15410
15423
  return 0;
15411
15424
  }
15412
- const result = await new (0, _chunkCNBPATLIjs.DeeplineClient)().setPlayPinned(name, pinned);
15413
- if (jsonOutput) _chunkZD673XALjs.printCompactJson.call(void 0, result);
15425
+ const result = await new (0, _chunk3JZXU5OBjs.DeeplineClient)().setPlayPinned(name, pinned);
15426
+ if (jsonOutput) _chunkPX7XAVUCjs.printCompactJson.call(void 0, result);
15414
15427
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
15415
15428
  return 0;
15416
15429
  }
@@ -15536,12 +15549,12 @@ async function handlePlayGrep(args) {
15536
15549
  console.error("Usage: deepline plays grep <query> [--json]");
15537
15550
  return 1;
15538
15551
  }
15539
- const client = new (0, _chunkCNBPATLIjs.DeeplineClient)();
15552
+ const client = new (0, _chunk3JZXU5OBjs.DeeplineClient)();
15540
15553
  const results = (await client.listPlays({ grep: query })).map(
15541
15554
  summarizePlayGrepResult
15542
15555
  );
15543
- if (_chunkZD673XALjs.argsWantJson.call(void 0, args)) {
15544
- _chunkZD673XALjs.printCompactJson.call(void 0, {
15556
+ if (_chunkPX7XAVUCjs.argsWantJson.call(void 0, args)) {
15557
+ _chunkPX7XAVUCjs.printCompactJson.call(void 0, {
15545
15558
  plays: results,
15546
15559
  count: results.length,
15547
15560
  query,
@@ -15564,7 +15577,7 @@ async function handlePlayGrep(args) {
15564
15577
  return 0;
15565
15578
  }
15566
15579
  async function handlePlayDescribe(args) {
15567
- const selection = _chunkZD673XALjs.parseJsonFields.call(void 0, args, "describe");
15580
+ const selection = _chunkPX7XAVUCjs.parseJsonFields.call(void 0, args, "describe");
15568
15581
  args = selection.args;
15569
15582
  const playName = args[0];
15570
15583
  if (!playName) {
@@ -15598,8 +15611,8 @@ async function handlePlayDescribe(args) {
15598
15611
  `deepline plays check ${playName}`,
15599
15612
  ...definedName ? [`deepline describe <workspace>/${definedName}`] : []
15600
15613
  ];
15601
- if (_chunkZD673XALjs.argsWantJson.call(void 0, args)) {
15602
- _chunkZD673XALjs.printCompactJson.call(void 0, {
15614
+ if (_chunkPX7XAVUCjs.argsWantJson.call(void 0, args)) {
15615
+ _chunkPX7XAVUCjs.printCompactJson.call(void 0, {
15603
15616
  ok: false,
15604
15617
  error: { message },
15605
15618
  next
@@ -15613,7 +15626,7 @@ async function handlePlayDescribe(args) {
15613
15626
  }
15614
15627
  return 2;
15615
15628
  }
15616
- const client = new (0, _chunkCNBPATLIjs.DeeplineClient)();
15629
+ const client = new (0, _chunk3JZXU5OBjs.DeeplineClient)();
15617
15630
  await assertCanonicalNamedPlayReference(client, playName, {
15618
15631
  command: "describe"
15619
15632
  });
@@ -15623,9 +15636,9 @@ async function handlePlayDescribe(args) {
15623
15636
  compact: args.includes("--compact")
15624
15637
  }
15625
15638
  );
15626
- if (_chunkZD673XALjs.argsWantJson.call(void 0, args)) {
15627
- if (selection.fields) _chunkZD673XALjs.printJson.call(void 0, play, selection.fields);
15628
- else _chunkZD673XALjs.printCompactJson.call(void 0, play);
15639
+ if (_chunkPX7XAVUCjs.argsWantJson.call(void 0, args)) {
15640
+ if (selection.fields) _chunkPX7XAVUCjs.printJson.call(void 0, play, selection.fields);
15641
+ else _chunkPX7XAVUCjs.printCompactJson.call(void 0, play);
15629
15642
  return 0;
15630
15643
  }
15631
15644
  printPlayDescription(play);
@@ -15646,7 +15659,7 @@ async function handlePlaySave(args) {
15646
15659
  return 2;
15647
15660
  }
15648
15661
  const watchPlay = options.dryRun ? void 0 : options.watchPlay;
15649
- const client = watchPlay ? new (0, _chunkCNBPATLIjs.DeeplineClient)() : void 0;
15662
+ const client = watchPlay ? new (0, _chunk3JZXU5OBjs.DeeplineClient)() : void 0;
15650
15663
  let attempt;
15651
15664
  if (watchPlay && client) {
15652
15665
  try {
@@ -15670,7 +15683,7 @@ async function handlePlaySave(args) {
15670
15683
  };
15671
15684
  let graph;
15672
15685
  try {
15673
- graph = await _chunk2TAGAPLLjs.traceCliSpan.call(void 0,
15686
+ graph = await _chunkNHKP2NSUjs.traceCliSpan.call(void 0,
15674
15687
  "cli.play_save_bundle_graph",
15675
15688
  { targetKind: "file" },
15676
15689
  () => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
@@ -15699,7 +15712,7 @@ async function handlePlaySave(args) {
15699
15712
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
15700
15713
  };
15701
15714
  if (options.jsonOutput) {
15702
- _chunkZD673XALjs.printCompactJson.call(void 0, result);
15715
+ _chunkPX7XAVUCjs.printCompactJson.call(void 0, result);
15703
15716
  } else {
15704
15717
  console.error(result.message);
15705
15718
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -15721,7 +15734,7 @@ async function handlePlaySave(args) {
15721
15734
  };
15722
15735
  if (options.dryRun) {
15723
15736
  if (options.jsonOutput) {
15724
- _chunkZD673XALjs.printCompactJson.call(void 0, dryRun);
15737
+ _chunkPX7XAVUCjs.printCompactJson.call(void 0, dryRun);
15725
15738
  } else {
15726
15739
  console.log(`Dry run: ${playName}`);
15727
15740
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15730,14 +15743,14 @@ async function handlePlaySave(args) {
15730
15743
  }
15731
15744
  return 0;
15732
15745
  }
15733
- const saveClient = _nullishCoalesce(client, () => ( new (0, _chunkCNBPATLIjs.DeeplineClient)()));
15746
+ const saveClient = _nullishCoalesce(client, () => ( new (0, _chunk3JZXU5OBjs.DeeplineClient)()));
15734
15747
  try {
15735
- await _chunk2TAGAPLLjs.traceCliSpan.call(void 0,
15748
+ await _chunkNHKP2NSUjs.traceCliSpan.call(void 0,
15736
15749
  "cli.play_save_compile_manifests",
15737
15750
  { targetKind: "file", nodeCount: graph.nodes.size },
15738
15751
  () => compileBundledPlayGraphManifests(saveClient, graph)
15739
15752
  );
15740
- const saved = await _chunk2TAGAPLLjs.traceCliSpan.call(void 0,
15753
+ const saved = await _chunkNHKP2NSUjs.traceCliSpan.call(void 0,
15741
15754
  "cli.play_save_register_draft",
15742
15755
  { targetKind: "file", playName, artifactHash },
15743
15756
  () => saveClient.registerPlayArtifact({
@@ -15767,7 +15780,7 @@ async function handlePlaySave(args) {
15767
15780
  }
15768
15781
  };
15769
15782
  if (options.jsonOutput) {
15770
- _chunkZD673XALjs.printCompactJson.call(void 0, result);
15783
+ _chunkPX7XAVUCjs.printCompactJson.call(void 0, result);
15771
15784
  } else {
15772
15785
  console.log(
15773
15786
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -15796,7 +15809,7 @@ async function handlePlayPublish(args) {
15796
15809
  }
15797
15810
  const { target: playName, useLatest } = options;
15798
15811
  let revisionId = options.revisionId;
15799
- const client = new (0, _chunkCNBPATLIjs.DeeplineClient)();
15812
+ const client = new (0, _chunk3JZXU5OBjs.DeeplineClient)();
15800
15813
  if (isFileTarget(playName)) {
15801
15814
  if (revisionId || useLatest) {
15802
15815
  console.error(
@@ -15806,7 +15819,7 @@ async function handlePlayPublish(args) {
15806
15819
  }
15807
15820
  let graph;
15808
15821
  try {
15809
- graph = await _chunk2TAGAPLLjs.traceCliSpan.call(void 0,
15822
+ graph = await _chunkNHKP2NSUjs.traceCliSpan.call(void 0,
15810
15823
  "cli.play_publish_bundle_graph",
15811
15824
  { targetKind: "file" },
15812
15825
  () => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
@@ -15828,7 +15841,7 @@ async function handlePlayPublish(args) {
15828
15841
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
15829
15842
  };
15830
15843
  if (options.jsonOutput) {
15831
- _chunkZD673XALjs.printCompactJson.call(void 0, result3);
15844
+ _chunkPX7XAVUCjs.printCompactJson.call(void 0, result3);
15832
15845
  } else {
15833
15846
  console.error(result3.message);
15834
15847
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -15851,7 +15864,7 @@ async function handlePlayPublish(args) {
15851
15864
  };
15852
15865
  if (options.dryRun) {
15853
15866
  if (options.jsonOutput) {
15854
- _chunkZD673XALjs.printCompactJson.call(void 0, dryRun);
15867
+ _chunkPX7XAVUCjs.printCompactJson.call(void 0, dryRun);
15855
15868
  } else {
15856
15869
  console.log(`Dry run: ${rootPlayName}`);
15857
15870
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15870,12 +15883,12 @@ async function handlePlayPublish(args) {
15870
15883
  }
15871
15884
  }
15872
15885
  try {
15873
- await _chunk2TAGAPLLjs.traceCliSpan.call(void 0,
15886
+ await _chunkNHKP2NSUjs.traceCliSpan.call(void 0,
15874
15887
  "cli.play_publish_compile_manifests",
15875
15888
  { targetKind: "file", nodeCount: graph.nodes.size },
15876
15889
  () => compileBundledPlayGraphManifests(client, graph)
15877
15890
  );
15878
- await _chunk2TAGAPLLjs.traceCliSpan.call(void 0,
15891
+ await _chunkNHKP2NSUjs.traceCliSpan.call(void 0,
15879
15892
  "cli.play_publish_imports",
15880
15893
  { targetKind: "file", nodeCount: graph.nodes.size },
15881
15894
  () => publishImportedPlayDependencies(client, graph)
@@ -15884,7 +15897,7 @@ async function handlePlayPublish(args) {
15884
15897
  console.error(error instanceof Error ? error.message : String(error));
15885
15898
  return 1;
15886
15899
  }
15887
- const published = await _chunk2TAGAPLLjs.traceCliSpan.call(void 0,
15900
+ const published = await _chunkNHKP2NSUjs.traceCliSpan.call(void 0,
15888
15901
  "cli.play_publish_register_root",
15889
15902
  {
15890
15903
  targetKind: "file",
@@ -15919,7 +15932,7 @@ async function handlePlayPublish(args) {
15919
15932
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
15920
15933
  };
15921
15934
  if (options.jsonOutput) {
15922
- _chunkZD673XALjs.printCompactJson.call(void 0, result2);
15935
+ _chunkPX7XAVUCjs.printCompactJson.call(void 0, result2);
15923
15936
  } else {
15924
15937
  printPublishReceipt({
15925
15938
  name: rootPlayName,
@@ -15950,7 +15963,7 @@ async function handlePlayPublish(args) {
15950
15963
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
15951
15964
  latest: useLatest
15952
15965
  };
15953
- _chunkZD673XALjs.printCompactJson.call(void 0, result2);
15966
+ _chunkPX7XAVUCjs.printCompactJson.call(void 0, result2);
15954
15967
  return 0;
15955
15968
  }
15956
15969
  const resolvedName = parseReferencedPlayTarget(playName).playName;
@@ -15974,7 +15987,7 @@ async function handlePlayPublish(args) {
15974
15987
  revisionId ? { revisionId } : {}
15975
15988
  );
15976
15989
  if (options.jsonOutput) {
15977
- _chunkZD673XALjs.printCompactJson.call(void 0, result);
15990
+ _chunkPX7XAVUCjs.printCompactJson.call(void 0, result);
15978
15991
  } else {
15979
15992
  printPublishReceipt({
15980
15993
  name: result.name,
@@ -16014,7 +16027,7 @@ async function handlePlayDelete(args) {
16014
16027
  );
16015
16028
  return 2;
16016
16029
  }
16017
- const client = new (0, _chunkCNBPATLIjs.DeeplineClient)();
16030
+ const client = new (0, _chunk3JZXU5OBjs.DeeplineClient)();
16018
16031
  let detail;
16019
16032
  try {
16020
16033
  detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
@@ -16038,8 +16051,8 @@ async function handlePlayDelete(args) {
16038
16051
  name: resolvedName,
16039
16052
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
16040
16053
  };
16041
- if (_chunkZD673XALjs.argsWantJson.call(void 0, args)) {
16042
- _chunkZD673XALjs.printCompactJson.call(void 0, result2);
16054
+ if (_chunkPX7XAVUCjs.argsWantJson.call(void 0, args)) {
16055
+ _chunkPX7XAVUCjs.printCompactJson.call(void 0, result2);
16043
16056
  } else {
16044
16057
  process.stdout.write(
16045
16058
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -16049,8 +16062,8 @@ async function handlePlayDelete(args) {
16049
16062
  return 0;
16050
16063
  }
16051
16064
  const result = await client.deletePlay(resolvedName);
16052
- if (_chunkZD673XALjs.argsWantJson.call(void 0, args)) {
16053
- _chunkZD673XALjs.printCompactJson.call(void 0, result);
16065
+ if (_chunkPX7XAVUCjs.argsWantJson.call(void 0, args)) {
16066
+ _chunkPX7XAVUCjs.printCompactJson.call(void 0, result);
16054
16067
  return result.archived || result.alreadyArchived ? 0 : 4;
16055
16068
  }
16056
16069
  if (result.alreadyArchived) {
@@ -16089,13 +16102,13 @@ async function handlePlayRestore(args) {
16089
16102
  );
16090
16103
  return 2;
16091
16104
  }
16092
- const client = new (0, _chunkCNBPATLIjs.DeeplineClient)();
16105
+ const client = new (0, _chunk3JZXU5OBjs.DeeplineClient)();
16093
16106
  try {
16094
16107
  const result = await client.restorePlay(
16095
16108
  parseReferencedPlayTarget(playName).playName
16096
16109
  );
16097
- if (_chunkZD673XALjs.argsWantJson.call(void 0, args)) {
16098
- _chunkZD673XALjs.printCompactJson.call(void 0, result);
16110
+ if (_chunkPX7XAVUCjs.argsWantJson.call(void 0, args)) {
16111
+ _chunkPX7XAVUCjs.printCompactJson.call(void 0, result);
16099
16112
  return result.restored || result.alreadyActive ? 0 : 4;
16100
16113
  }
16101
16114
  if (result.alreadyActive) {
@@ -16222,21 +16235,21 @@ Common commands:
16222
16235
  resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
16223
16236
  }
16224
16237
  };
16225
- _chunkZD673XALjs.printCommandEnvelope.call(void 0, result2, {
16238
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0, result2, {
16226
16239
  json: options.json,
16227
16240
  text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
16228
16241
  `
16229
16242
  });
16230
16243
  return;
16231
16244
  }
16232
- const client = new (0, _chunkCNBPATLIjs.DeeplineClient)();
16245
+ const client = new (0, _chunk3JZXU5OBjs.DeeplineClient)();
16233
16246
  if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
16234
16247
  throw new Error(
16235
16248
  "The submission belongs to a different API origin. Select its original host before recovery."
16236
16249
  );
16237
16250
  }
16238
16251
  const result = await client.startPlayRun(saved.request);
16239
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
16252
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
16240
16253
  { ...result },
16241
16254
  {
16242
16255
  json: options.json,
@@ -16272,7 +16285,7 @@ Examples:
16272
16285
  ).action(async (target, options) => {
16273
16286
  process.exitCode = await handlePlayCheck([
16274
16287
  target,
16275
- ..._chunkZD673XALjs.jsonFieldArgs.call(void 0, options.json),
16288
+ ..._chunkPX7XAVUCjs.jsonFieldArgs.call(void 0, options.json),
16276
16289
  ...options.full ? ["--full"] : []
16277
16290
  ]);
16278
16291
  });
@@ -16319,10 +16332,10 @@ Notes:
16319
16332
  with a changed input is refused with a 409 conflict. Use one stable key per
16320
16333
  exact intent. Without a key, each invocation starts a new run.
16321
16334
  --max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
16322
- resident-work ceiling. Default: ${_chunkUKO6POLZjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkUKO6POLZjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
16335
+ resident-work ceiling. Default: ${_chunk23D224GIjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunk23D224GIjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
16323
16336
  Provider pacing and sandbox memory limits still apply.
16324
16337
  --max-concurrent-rows sets the run-wide default and ceiling for live map row
16325
- resolvers. Accepted range: 1-${_chunkUKO6POLZjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
16338
+ resolvers. Accepted range: 1-${_chunk23D224GIjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
16326
16339
  may lower it when source-row size exceeds the active-row memory budget.
16327
16340
  --max-credits replaces the play's billing.maxCreditsPerRun for this run.
16328
16341
  Tool calls that would exceed it are denied.
@@ -16447,11 +16460,17 @@ Examples:
16447
16460
  ).hideHelp()
16448
16461
  ).option(
16449
16462
  "--max-concurrent-external-calls <count>",
16450
- `Concurrent provider-tool and deepline.fetch executions (${_chunkUKO6POLZjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkUKO6POLZjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
16463
+ `Concurrent provider-tool and deepline.fetch executions (${_chunk23D224GIjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunk23D224GIjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
16451
16464
  ).option(
16452
16465
  "--max-concurrent-rows <count>",
16453
- `Run-wide dataset map row resolver ceiling (max ${_chunkUKO6POLZjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
16454
- ).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the run page in a browser after the run starts").option(
16466
+ `Run-wide dataset map row resolver ceiling (max ${_chunk23D224GIjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
16467
+ ).option("--max-credits <credits>", "Deepline-credit cap for this run").addOption(
16468
+ // Internal only: the server refuses it without play_run.cache_reuse_window.
16469
+ new (0, _commander.Option)(
16470
+ "--cache-reuse-window-seconds <seconds>",
16471
+ "Internal: reuse completed provider results up to this age"
16472
+ ).hideHelp()
16473
+ ).option("--open", "Open the run page in a browser after the run starts").option(
16455
16474
  "--debug-map-latency",
16456
16475
  "Internal diagnostics: emit one aggregate latency profile per dataset map"
16457
16476
  ).option(
@@ -16545,14 +16564,14 @@ JSON field selection:
16545
16564
  passthroughArgs.shift();
16546
16565
  }
16547
16566
  const exitCode = await handlePlayRun(
16548
- _chunkUKO6POLZjs.resolvePlayRunCliOptions.call(void 0,
16567
+ _chunk23D224GIjs.resolvePlayRunCliOptions.call(void 0,
16549
16568
  _nullishCoalesce(effectiveTarget, () => ( void 0)),
16550
16569
  options,
16551
16570
  passthroughArgs,
16552
- _chunk2TAGAPLLjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
16571
+ _chunkNHKP2NSUjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
16553
16572
  )
16554
16573
  );
16555
- _chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
16574
+ _chunkNHKP2NSUjs.recordCliTrace.call(void 0, {
16556
16575
  phase: "cli.play_command_exit",
16557
16576
  exitCode
16558
16577
  });
@@ -16601,9 +16620,9 @@ Examples:
16601
16620
  const limit = Number(options.historyLimit);
16602
16621
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
16603
16622
  throw new Error("--history-limit must be an integer from 1 to 30.");
16604
- const client = new (0, _chunkCNBPATLIjs.DeeplineClient)();
16623
+ const client = new (0, _chunk3JZXU5OBjs.DeeplineClient)();
16605
16624
  if (options.binding) {
16606
- _chunkZD673XALjs.printCompactJson.call(void 0,
16625
+ _chunkPX7XAVUCjs.printCompactJson.call(void 0,
16607
16626
  await client.getPlayTriggerHistory(options.binding, { limit })
16608
16627
  );
16609
16628
  return;
@@ -16611,7 +16630,7 @@ Examples:
16611
16630
  const result = await client.listPlayTriggerInventory({
16612
16631
  cursor: options.cursor
16613
16632
  });
16614
- _chunkZD673XALjs.printCompactJson.call(void 0, {
16633
+ _chunkPX7XAVUCjs.printCompactJson.call(void 0, {
16615
16634
  ...result,
16616
16635
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
16617
16636
  });
@@ -16670,7 +16689,7 @@ Examples:
16670
16689
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
16671
16690
  throw new Error("--group-by must be kind or trigger_source.");
16672
16691
  }
16673
- const result = await new (0, _chunkCNBPATLIjs.DeeplineClient)().getPlaysActivity({
16692
+ const result = await new (0, _chunk3JZXU5OBjs.DeeplineClient)().getPlaysActivity({
16674
16693
  timeZone: options.timeZone,
16675
16694
  days,
16676
16695
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -16684,7 +16703,7 @@ Examples:
16684
16703
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
16685
16704
  );
16686
16705
  }
16687
- _chunkZD673XALjs.printCommandEnvelope.call(void 0,
16706
+ _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
16688
16707
  { ...result },
16689
16708
  {
16690
16709
  json: Boolean(options.json),
@@ -16713,7 +16732,7 @@ Examples:
16713
16732
  false
16714
16733
  );
16715
16734
  });
16716
- _chunkS6FF7Q5Pjs.registerDeprecatedSearchCommand.call(void 0,
16735
+ _chunkYE3T73BVjs.registerDeprecatedSearchCommand.call(void 0,
16717
16736
  play,
16718
16737
  (options) => options.all ? ["prebuilts", "custom"] : ["prebuilts"]
16719
16738
  );
@@ -16754,9 +16773,9 @@ Examples:
16754
16773
  "--json [fields]",
16755
16774
  "JSON output; optionally select comma-separated dotted paths"
16756
16775
  );
16757
- _chunkOK4JMVTMjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16776
+ _chunkDUGTPVT7js.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16758
16777
  async (target, options) => {
16759
- const ownView = () => handlePlayDescribe(_chunkZD673XALjs.describeArgs.call(void 0, target, options));
16778
+ const ownView = () => handlePlayDescribe(_chunkPX7XAVUCjs.describeArgs.call(void 0, target, options));
16760
16779
  const [flagText] = [options.json].filter(
16761
16780
  (value) => typeof value === "string"
16762
16781
  );
@@ -16767,7 +16786,7 @@ Examples:
16767
16786
  process.exitCode = await ownView();
16768
16787
  return;
16769
16788
  }
16770
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-7MF5AHIU.js")));
16789
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-AC6PLEFP.js")));
16771
16790
  process.exitCode = await describeAnything(
16772
16791
  name,
16773
16792
  {
@@ -16890,7 +16909,7 @@ Examples:
16890
16909
  deepline plays deployments <deployment-id>
16891
16910
  `
16892
16911
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
16893
- async (id, options) => id ? _chunkKIYETQ6Kjs.handleDeploymentGet.call(void 0, id, options) : _chunkKIYETQ6Kjs.handleDeploymentsList.call(void 0, options)
16912
+ async (id, options) => id ? _chunkEHUG6EUTjs.handleDeploymentGet.call(void 0, id, options) : _chunkEHUG6EUTjs.handleDeploymentsList.call(void 0, options)
16894
16913
  );
16895
16914
  addPublishHelp(
16896
16915
  play.command("publish <target>").description(
@@ -17025,14 +17044,14 @@ Examples:
17025
17044
  const limit = Number(options.limit);
17026
17045
  if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
17027
17046
  throw new Error("--limit must be an integer from 1 to 1000.");
17028
- const result = await new (0, _chunkCNBPATLIjs.DeeplineClient)().runs.rowHistory({
17047
+ const result = await new (0, _chunk3JZXU5OBjs.DeeplineClient)().runs.rowHistory({
17029
17048
  playName: options.play,
17030
17049
  runId,
17031
17050
  tableNamespace: options.dataset,
17032
17051
  limit,
17033
17052
  cursor: options.cursor
17034
17053
  });
17035
- _chunkZD673XALjs.printCompactJson.call(void 0, {
17054
+ _chunkPX7XAVUCjs.printCompactJson.call(void 0, {
17036
17055
  ...result,
17037
17056
  ...result.nextCursor ? {
17038
17057
  next: `deepline runs rows-history ${_chunkAID3OYVJjs.shellQuote.call(void 0, runId)} --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.play)} --dataset ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.dataset)} --limit ${limit} --cursor ${_chunkAID3OYVJjs.shellQuote.call(void 0, result.nextCursor)} --json`
@@ -17110,7 +17129,7 @@ Examples:
17110
17129
  new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
17111
17130
  ).action(async (runId, options) => {
17112
17131
  if (TOOL_EXECUTION_ID.test(runId)) {
17113
- const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-D6STYBQG.js")));
17132
+ const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-MYBUMPKH.js")));
17114
17133
  process.exitCode = await getToolExecutionReceipt(runId, {
17115
17134
  receiptJson: options.json !== void 0
17116
17135
  });
@@ -17118,7 +17137,7 @@ Examples:
17118
17137
  }
17119
17138
  process.exitCode = await handleRunGet([
17120
17139
  runId,
17121
- ..._chunkZD673XALjs.jsonFieldArgs.call(void 0, options.json),
17140
+ ..._chunkPX7XAVUCjs.jsonFieldArgs.call(void 0, options.json),
17122
17141
  ...options.web ? ["--web"] : [],
17123
17142
  ...options.webUrl ? ["--web-url"] : [],
17124
17143
  ...options.full ? ["--full"] : [],
@@ -17440,7 +17459,7 @@ Examples:
17440
17459
  ...options.allowEmpty ? ["--allow-empty"] : [],
17441
17460
  ...options.wait ? ["--wait"] : [],
17442
17461
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
17443
- ..._chunkZD673XALjs.jsonFieldArgs.call(void 0, options.json)
17462
+ ..._chunkPX7XAVUCjs.jsonFieldArgs.call(void 0, options.json)
17444
17463
  ]);
17445
17464
  });
17446
17465
  const share = play.command("share").description(
@@ -17606,10 +17625,10 @@ async function handlePlayShareStatus(args) {
17606
17625
  return 2;
17607
17626
  }
17608
17627
  const name = parseReferencedPlayTarget(target).playName;
17609
- const status = await new (0, _chunkCNBPATLIjs.DeeplineClient)().getSharePage(name);
17628
+ const status = await new (0, _chunk3JZXU5OBjs.DeeplineClient)().getSharePage(name);
17610
17629
  const outputStatus = shareStatusForOutput(status);
17611
- if (_chunkZD673XALjs.argsWantJson.call(void 0, args)) {
17612
- _chunkZD673XALjs.printCompactJson.call(void 0, outputStatus);
17630
+ if (_chunkPX7XAVUCjs.argsWantJson.call(void 0, args)) {
17631
+ _chunkPX7XAVUCjs.printCompactJson.call(void 0, outputStatus);
17613
17632
  return 0;
17614
17633
  }
17615
17634
  if (!outputStatus.share) {
@@ -17648,7 +17667,7 @@ async function handlePlaySharePublish(args) {
17648
17667
  return 2;
17649
17668
  }
17650
17669
  const name = parseReferencedPlayTarget(target).playName;
17651
- const client = new (0, _chunkCNBPATLIjs.DeeplineClient)();
17670
+ const client = new (0, _chunk3JZXU5OBjs.DeeplineClient)();
17652
17671
  let revisionId = shareFlagValue(args, "--revision-id");
17653
17672
  let resolvedVersion;
17654
17673
  if (!revisionId) {
@@ -17679,8 +17698,8 @@ async function handlePlaySharePublish(args) {
17679
17698
  );
17680
17699
  if (!hasCompleted) {
17681
17700
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
17682
- if (_chunkZD673XALjs.argsWantJson.call(void 0, args)) {
17683
- _chunkZD673XALjs.printCompactJson.call(void 0, {
17701
+ if (_chunkPX7XAVUCjs.argsWantJson.call(void 0, args)) {
17702
+ _chunkPX7XAVUCjs.printCompactJson.call(void 0, {
17684
17703
  ok: false,
17685
17704
  code: "NO_SUCCESSFUL_RUN",
17686
17705
  message,
@@ -17704,8 +17723,8 @@ async function handlePlaySharePublish(args) {
17704
17723
  };
17705
17724
  if (args.includes("--dry-run")) {
17706
17725
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
17707
- if (_chunkZD673XALjs.argsWantJson.call(void 0, args)) {
17708
- _chunkZD673XALjs.printCompactJson.call(void 0, plan);
17726
+ if (_chunkPX7XAVUCjs.argsWantJson.call(void 0, args)) {
17727
+ _chunkPX7XAVUCjs.printCompactJson.call(void 0, plan);
17709
17728
  } else {
17710
17729
  console.log(
17711
17730
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -17715,8 +17734,8 @@ async function handlePlaySharePublish(args) {
17715
17734
  }
17716
17735
  const status = await client.publishSharePage(name, request);
17717
17736
  const outputStatus = shareStatusForOutput(status);
17718
- if (_chunkZD673XALjs.argsWantJson.call(void 0, args)) {
17719
- _chunkZD673XALjs.printCompactJson.call(void 0, outputStatus);
17737
+ if (_chunkPX7XAVUCjs.argsWantJson.call(void 0, args)) {
17738
+ _chunkPX7XAVUCjs.printCompactJson.call(void 0, outputStatus);
17720
17739
  return 0;
17721
17740
  }
17722
17741
  const urls = shareUrlFields(outputStatus);
@@ -17747,9 +17766,9 @@ async function handlePlayShareUpdate(args) {
17747
17766
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
17748
17767
  ...seoIndexing ? { seoIndexing } : {}
17749
17768
  };
17750
- const status = await new (0, _chunkCNBPATLIjs.DeeplineClient)().updateSharePage(name, request);
17751
- if (_chunkZD673XALjs.argsWantJson.call(void 0, args)) {
17752
- _chunkZD673XALjs.printCompactJson.call(void 0, status);
17769
+ const status = await new (0, _chunk3JZXU5OBjs.DeeplineClient)().updateSharePage(name, request);
17770
+ if (_chunkPX7XAVUCjs.argsWantJson.call(void 0, args)) {
17771
+ _chunkPX7XAVUCjs.printCompactJson.call(void 0, status);
17753
17772
  return 0;
17754
17773
  }
17755
17774
  console.log(`Updated ${name} share settings.`);
@@ -17764,7 +17783,7 @@ async function handlePlayShareRegenerate(args) {
17764
17783
  return 2;
17765
17784
  }
17766
17785
  const name = parseReferencedPlayTarget(target).playName;
17767
- const client = new (0, _chunkCNBPATLIjs.DeeplineClient)();
17786
+ const client = new (0, _chunk3JZXU5OBjs.DeeplineClient)();
17768
17787
  let revisionId = shareFlagValue(args, "--revision-id");
17769
17788
  const versionFlag = shareFlagValue(args, "--version");
17770
17789
  if (!revisionId && versionFlag) {
@@ -17781,8 +17800,8 @@ async function handlePlayShareRegenerate(args) {
17781
17800
  revisionId ? { revisionId } : {}
17782
17801
  );
17783
17802
  const outputStatus = shareStatusForOutput(status);
17784
- if (_chunkZD673XALjs.argsWantJson.call(void 0, args)) {
17785
- _chunkZD673XALjs.printCompactJson.call(void 0, outputStatus);
17803
+ if (_chunkPX7XAVUCjs.argsWantJson.call(void 0, args)) {
17804
+ _chunkPX7XAVUCjs.printCompactJson.call(void 0, outputStatus);
17786
17805
  return 0;
17787
17806
  }
17788
17807
  const urls = shareUrlFields(outputStatus);
@@ -17807,9 +17826,9 @@ async function handlePlayShareUnpublish(args) {
17807
17826
  return 2;
17808
17827
  }
17809
17828
  const name = parseReferencedPlayTarget(target).playName;
17810
- const status = await new (0, _chunkCNBPATLIjs.DeeplineClient)().unpublishSharePage(name);
17811
- if (_chunkZD673XALjs.argsWantJson.call(void 0, args)) {
17812
- _chunkZD673XALjs.printCompactJson.call(void 0, status);
17829
+ const status = await new (0, _chunk3JZXU5OBjs.DeeplineClient)().unpublishSharePage(name);
17830
+ if (_chunkPX7XAVUCjs.argsWantJson.call(void 0, args)) {
17831
+ _chunkPX7XAVUCjs.printCompactJson.call(void 0, status);
17813
17832
  return 0;
17814
17833
  }
17815
17834
  console.log(`Unpublished ${name}; the public page has been removed.`);
@@ -17887,4 +17906,4 @@ async function handlePlayShareUnpublish(args) {
17887
17906
 
17888
17907
 
17889
17908
 
17890
- exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.checkPlayFileExports = checkPlayFileExports; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag = _chunkUKO6POLZjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkUKO6POLZjs.parsePlayRunOptions; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.registerPlayCommands = registerPlayCommands; exports.renderRunOverviewText = renderRunOverviewText; exports.resolveDatasetByName = resolveDatasetByName; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; exports.resolvePlayRunUrl = resolvePlayRunUrl; exports.resolveRunStopState = resolveRunStopState; exports.selectRunLogTailPage = selectRunLogTailPage; exports.shouldPrintPlayProgressLine = shouldPrintPlayProgressLine; exports.startAndWaitForPlayCompletion = startAndWaitForPlayCompletion; exports.startAndWaitForPlayCompletionByStream = startAndWaitForPlayCompletionByStream; exports.takeFromRunRerunArgs = takeFromRunRerunArgs; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.writeInlinePlay = writeInlinePlay; exports.writePlayRunIdFile = writePlayRunIdFile; exports.writePlayRunReceipt = writePlayRunReceipt;
17909
+ exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.checkPlayFileExports = checkPlayFileExports; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag = _chunk23D224GIjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunk23D224GIjs.parsePlayRunOptions; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.registerPlayCommands = registerPlayCommands; exports.renderRunOverviewText = renderRunOverviewText; exports.resolveDatasetByName = resolveDatasetByName; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; exports.resolvePlayRunUrl = resolvePlayRunUrl; exports.resolveRunStopState = resolveRunStopState; exports.selectRunLogTailPage = selectRunLogTailPage; exports.shouldPrintPlayProgressLine = shouldPrintPlayProgressLine; exports.startAndWaitForPlayCompletion = startAndWaitForPlayCompletion; exports.startAndWaitForPlayCompletionByStream = startAndWaitForPlayCompletionByStream; exports.takeFromRunRerunArgs = takeFromRunRerunArgs; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.writeInlinePlay = writeInlinePlay; exports.writePlayRunIdFile = writePlayRunIdFile; exports.writePlayRunReceipt = writePlayRunReceipt;