deepline 0.3.545 → 0.3.547

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 (222) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +13 -0
  2. package/dist/bundling-sources/sdk/src/errors.ts +1 -1
  3. package/dist/bundling-sources/sdk/src/http-core.ts +41 -12
  4. package/dist/bundling-sources/sdk/src/index.ts +7 -1
  5. package/dist/bundling-sources/sdk/src/integrations.ts +17 -7
  6. package/dist/bundling-sources/sdk/src/play.ts +71 -0
  7. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  8. package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +13 -4
  9. package/dist/bundling-sources/sdk/src/types.ts +33 -0
  10. package/dist/bundling-sources/shared_libs/integration-contracts/calendar-delegation.ts +7 -0
  11. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +2 -0
  12. package/dist/bundling-sources/shared_libs/monitors/tracking-provider-guidance.ts +1 -0
  13. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +21 -3
  14. package/dist/bundling-sources/shared_libs/play-data-plane/contracts.ts +5 -0
  15. package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +17 -2
  16. package/dist/bundling-sources/shared_libs/play-data-plane/sheet-contract.ts +27 -0
  17. package/dist/bundling-sources/shared_libs/play-runtime/async-operation.ts +57 -5
  18. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +299 -52
  19. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +18 -1
  20. package/dist/bundling-sources/shared_libs/play-runtime/docflow-decision-tracker.ts +135 -0
  21. package/dist/bundling-sources/shared_libs/play-runtime/docflow-fail-open.ts +177 -0
  22. package/dist/bundling-sources/shared_libs/play-runtime/docflow-node-io.ts +99 -2
  23. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +16 -10
  24. package/dist/bundling-sources/shared_libs/play-runtime/fenced-call-diagnostics.ts +211 -0
  25. package/dist/bundling-sources/shared_libs/play-runtime/fleet-sandbox-sweep.ts +40 -3
  26. package/dist/bundling-sources/shared_libs/play-runtime/modal-runtime-config.ts +19 -3
  27. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +18 -4
  28. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +441 -103
  29. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox-egress.ts +322 -0
  30. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +200 -64
  31. package/dist/bundling-sources/shared_libs/play-runtime/runtime-capacity-policy.ts +52 -14
  32. package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +65 -2
  33. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +5 -3
  34. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +53 -2
  35. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +206 -12
  36. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +18 -0
  37. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +68 -0
  38. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +11 -3
  39. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +30 -2
  40. package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +9 -1
  41. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +48 -0
  42. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +36 -2
  43. package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +716 -51
  44. package/dist/bundling-sources/shared_libs/plays/docflow-decision-arms.ts +146 -0
  45. package/dist/bundling-sources/shared_libs/plays/docflow-flow-order.ts +94 -0
  46. package/dist/bundling-sources/shared_libs/plays/docflow-unreached-reason.ts +10 -1
  47. package/dist/bundling-sources/shared_libs/plays/docflow.ts +787 -117
  48. package/dist/bundling-sources/shared_libs/plays/share/static-pipeline-summary.ts +8 -2
  49. package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +41 -2
  50. package/dist/bundling-sources/shared_libs/plays/trigger-config-contract.ts +13 -0
  51. package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +25 -0
  52. package/dist/bundling-sources/shared_libs/security/email-blacklist.ts +35 -1
  53. package/dist/bundling-sources/shared_libs/security/email-domain.ts +19 -0
  54. package/dist/bundling-sources/shared_libs/security/secret-redaction.ts +58 -0
  55. package/dist/cli/auth-AC5277PI.js +43 -0
  56. package/dist/cli/{auth-VZAMAMFW.mjs → auth-WJEY4IDX.mjs} +6 -6
  57. package/dist/cli/{billing-ASZJDFH2.js → billing-IJITDDRQ.js} +99 -99
  58. package/dist/cli/{billing-DADQUQEZ.mjs → billing-PHJUDYF3.mjs} +11 -11
  59. package/dist/cli/{chunk-FB7UPZ6M.js → chunk-2AHY47SI.js} +3 -3
  60. package/dist/cli/{chunk-CJ7DBYEQ.js → chunk-2HPTLBNB.js} +8 -8
  61. package/dist/cli/{chunk-TI6DTURF.js → chunk-4WAM6TLD.js} +7 -1
  62. package/dist/cli/{chunk-LTCEZWPZ.mjs → chunk-56MEAGWA.mjs} +2 -2
  63. package/dist/cli/{chunk-YWTRCKGD.mjs → chunk-5SFHPMBY.mjs} +11 -11
  64. package/dist/cli/{chunk-D3SXB2NX.js → chunk-ABLTVG3J.js} +41 -41
  65. package/dist/cli/{chunk-KRW727W6.mjs → chunk-AEQ5VWZ5.mjs} +4 -4
  66. package/dist/cli/{chunk-Z7QM244Q.mjs → chunk-CKIRKYW7.mjs} +3 -3
  67. package/dist/cli/{chunk-2JHYYB3F.js → chunk-CSPHSNBW.js} +3 -3
  68. package/dist/cli/{chunk-OGQYAJSO.js → chunk-D6OIEH47.js} +5 -5
  69. package/dist/cli/{chunk-2HFSYH7V.mjs → chunk-DIUNDLSX.mjs} +2 -2
  70. package/dist/cli/{chunk-3M2QH3KA.mjs → chunk-DJI5CLLW.mjs} +22 -12
  71. package/dist/cli/{chunk-N4LADLCO.js → chunk-DZC7LMYM.js} +6 -6
  72. package/dist/cli/{chunk-CXETRZ3G.js → chunk-E2OIYPB4.js} +10 -10
  73. package/dist/cli/{chunk-Z4Y4BLW7.mjs → chunk-ECUD4QPD.mjs} +3 -3
  74. package/dist/cli/{chunk-2GJZLIKW.js → chunk-EITMD3A5.js} +1 -1
  75. package/dist/cli/{chunk-NAN3A4IF.mjs → chunk-ESCVHDNY.mjs} +5 -5
  76. package/dist/cli/{chunk-C6XYSTBW.js → chunk-FFBXLFKV.js} +1 -1
  77. package/dist/cli/{chunk-HLUNTJBO.mjs → chunk-FMQXAOVE.mjs} +4 -4
  78. package/dist/cli/{chunk-HXIR3VQL.mjs → chunk-FZHMNK6F.mjs} +7 -1
  79. package/dist/cli/{chunk-4NZ3OZNO.mjs → chunk-G6KW764N.mjs} +1 -1
  80. package/dist/cli/{chunk-LWPFMYSO.mjs → chunk-G6XTCG3J.mjs} +2 -2
  81. package/dist/cli/{chunk-NCX2JH2F.js → chunk-GIGAYLY6.js} +12 -12
  82. package/dist/cli/{chunk-BLYW6FFB.js → chunk-GJA2PRHJ.js} +2 -2
  83. package/dist/cli/{chunk-G5TV6WLV.js → chunk-GJOGFWX3.js} +20 -20
  84. package/dist/cli/{chunk-7MFATEUC.mjs → chunk-GPAWLXW3.mjs} +2 -2
  85. package/dist/cli/{chunk-DZTVDL2X.js → chunk-GZFZZQL4.js} +289 -268
  86. package/dist/cli/{chunk-XBYQZEUE.mjs → chunk-HARZ4AAX.mjs} +1 -1
  87. package/dist/cli/{chunk-QI57XUGA.js → chunk-HFIFKP3A.js} +5 -5
  88. package/dist/cli/{chunk-WP36UBRY.mjs → chunk-IGAK22XO.mjs} +1 -1
  89. package/dist/cli/{chunk-XMUPZINS.mjs → chunk-IKYN6PLO.mjs} +5 -5
  90. package/dist/cli/{chunk-HPX7LLAM.mjs → chunk-ITLZBDSR.mjs} +3 -3
  91. package/dist/cli/{chunk-QM7PHHYZ.js → chunk-IVFFCAV2.js} +44 -44
  92. package/dist/cli/{chunk-IYJO3RWR.js → chunk-K3GMDSUX.js} +5 -5
  93. package/dist/cli/{chunk-EK5C2R7S.js → chunk-L5J6UJ2X.js} +15 -15
  94. package/dist/cli/{chunk-EWA3M54M.mjs → chunk-L6QE2XVM.mjs} +1 -1
  95. package/dist/cli/{chunk-3NG43NXB.js → chunk-LMLSOHTU.js} +53 -53
  96. package/dist/cli/{chunk-7MHBJU73.js → chunk-MBQELFL7.js} +22 -22
  97. package/dist/cli/{chunk-Z7SXGOIQ.mjs → chunk-MF7PCM6C.mjs} +1 -1
  98. package/dist/cli/{chunk-DGKDCZGC.js → chunk-MO7TGNXB.js} +13 -13
  99. package/dist/cli/{chunk-7P72EGLK.mjs → chunk-MOZEAGSR.mjs} +1 -1
  100. package/dist/cli/{chunk-34UKDHRL.js → chunk-N63U5CRG.js} +26 -26
  101. package/dist/cli/{chunk-5YYWZ43J.js → chunk-NBYFQZ6O.js} +2 -2
  102. package/dist/cli/{chunk-CQBIO6HW.mjs → chunk-NURW5XH4.mjs} +1 -1
  103. package/dist/cli/{chunk-TQKHXMV3.js → chunk-OVYXYTEP.js} +16 -16
  104. package/dist/cli/{chunk-XGEUPU3L.mjs → chunk-PBMO36BP.mjs} +2 -2
  105. package/dist/cli/{chunk-4JQEAYN3.js → chunk-PVQCX6KQ.js} +55 -8
  106. package/dist/cli/{chunk-KYO2FICL.mjs → chunk-QLE3QKJ2.mjs} +5 -5
  107. package/dist/cli/{chunk-2FF3O2Y2.js → chunk-QU3K3IY6.js} +12 -12
  108. package/dist/cli/{chunk-HR5BT42R.js → chunk-REAFIEV5.js} +99 -99
  109. package/dist/cli/{chunk-Y3T5GWYK.mjs → chunk-RMCCB3XY.mjs} +55 -8
  110. package/dist/cli/{chunk-3TCHX7YK.mjs → chunk-RXRC2COC.mjs} +2 -2
  111. package/dist/cli/{chunk-YRQKRQDU.js → chunk-SAJWYN4B.js} +36 -26
  112. package/dist/cli/{chunk-JL5JU3LD.mjs → chunk-TNJG4ZPN.mjs} +3 -3
  113. package/dist/cli/{chunk-NZDZGK35.js → chunk-VNOQEDVC.js} +7 -7
  114. package/dist/cli/{chunk-2CBX43LP.mjs → chunk-VPF54TXQ.mjs} +5 -5
  115. package/dist/cli/{chunk-2HSZCQMT.mjs → chunk-WYT3H6JD.mjs} +1 -1
  116. package/dist/cli/{chunk-GWDPNOA7.mjs → chunk-XMBVHJPR.mjs} +29 -8
  117. package/dist/cli/{chunk-52C6W7FG.mjs → chunk-XNTDTAKC.mjs} +1 -1
  118. package/dist/cli/{chunk-ERLW6RPA.js → chunk-YURGAKI3.js} +2 -2
  119. package/dist/cli/{chunk-GFRJU2KB.js → chunk-YVKLF7RW.js} +2 -2
  120. package/dist/cli/{chunk-7JZ27AFH.mjs → chunk-Z2YGQZWV.mjs} +2 -2
  121. package/dist/cli/command-docs.js +2 -2
  122. package/dist/cli/command-docs.mjs +1 -1
  123. package/dist/cli/{concurrent-runs-help-YP7ALTDB.mjs → concurrent-runs-help-ZNGP563R.mjs} +7 -7
  124. package/dist/cli/concurrent-runs-help-ZYISYOQA.js +21 -0
  125. package/dist/cli/{csv-D5ITFSYI.mjs → csv-VAHQHYYV.mjs} +5 -5
  126. package/dist/cli/{csv-67WT5EGR.js → csv-X6D4ZELE.js} +14 -14
  127. package/dist/cli/{db-SZYBRFYG.mjs → db-4G4S2VOV.mjs} +8 -8
  128. package/dist/cli/{db-GZS76X7R.js → db-YA5ZGVEX.js} +33 -33
  129. package/dist/cli/{describe-YJ7ZLLLI.mjs → describe-EVXEM2S6.mjs} +20 -20
  130. package/dist/cli/describe-GYYSLZLV.js +50 -0
  131. package/dist/cli/describe-core.d.mts +4 -4
  132. package/dist/cli/describe-core.d.ts +4 -4
  133. package/dist/cli/describe-core.js +1 -1
  134. package/dist/cli/describe-core.mjs +1 -1
  135. package/dist/cli/{executions-O5USTYGL.js → executions-5YC7ABF6.js} +10 -10
  136. package/dist/cli/{executions-HMYGR32E.mjs → executions-HR6CTN5M.mjs} +8 -8
  137. package/dist/cli/{feedback-Z3NXWYUO.mjs → feedback-GEU5SPLR.mjs} +7 -7
  138. package/dist/cli/{feedback-RHLFDCRS.js → feedback-MJHSYLFF.js} +15 -15
  139. package/dist/cli/git-FZIQZNI4.js +25 -0
  140. package/dist/cli/{git-CLFKXELB.mjs → git-NPFF6QUS.mjs} +6 -6
  141. package/dist/cli/index.js +150 -150
  142. package/dist/cli/index.mjs +46 -46
  143. package/dist/cli/{integrations-TZ4QEQGV.js → integrations-YPHFI77G.js} +20 -18
  144. package/dist/cli/{integrations-FOACOBQB.mjs → integrations-Z7EGVBHF.mjs} +12 -10
  145. package/dist/cli/{legacy-noops-QRDOS33V.js → legacy-noops-246E3KKG.js} +10 -10
  146. package/dist/cli/{legacy-noops-6F6Y3BV7.mjs → legacy-noops-5IYCFWWX.mjs} +7 -7
  147. package/dist/cli/{mcp-UXRCWOZU.mjs → mcp-WUYGZXPI.mjs} +5 -5
  148. package/dist/cli/{mcp-ETMMDDGB.js → mcp-YTYTW67G.js} +25 -25
  149. package/dist/cli/{monitors-6XEWR46R.mjs → monitors-73DQKCU7.mjs} +27 -9
  150. package/dist/cli/{monitors-DITT7QTV.js → monitors-SA6ILD6Z.js} +121 -103
  151. package/dist/cli/{org-CVSSH73G.mjs → org-WVQRB2KX.mjs} +8 -8
  152. package/dist/cli/{org-4DE37X3L.js → org-X7ELDV7B.js} +90 -90
  153. package/dist/cli/{play-Y5NCHOKK.mjs → play-QI6V2EUQ.mjs} +296 -68
  154. package/dist/cli/{play-RH6P45CI.js → play-QTYOAJPE.js} +898 -670
  155. package/dist/cli/{providers-VHUHC4IZ.mjs → providers-DPVMVDS4.mjs} +8 -8
  156. package/dist/cli/{providers-DU42DLOL.js → providers-XXFLVREV.js} +11 -11
  157. package/dist/cli/{quickstart-XJ43JLEC.js → quickstart-33ISXQJU.js} +7 -7
  158. package/dist/cli/{quickstart-HJY5YYE5.mjs → quickstart-YWGNHULM.mjs} +5 -5
  159. package/dist/cli/{run-JXUS7QFI.js → run-BWHZXLTD.js} +46 -46
  160. package/dist/cli/{run-JAIXHVH7.mjs → run-J6FCAKQC.mjs} +26 -26
  161. package/dist/cli/search-JCWJX2XD.js +32 -0
  162. package/dist/cli/{search-RDMNM2AX.mjs → search-Z3UU3WBB.mjs} +9 -9
  163. package/dist/cli/{search-output-ZKTR3WTJ.mjs → search-output-OJYY4J7E.mjs} +5 -5
  164. package/dist/cli/{search-output-RKAM2HBH.js → search-output-YIPV74ME.js} +7 -7
  165. package/dist/cli/{secrets-TKFVMAYX.js → secrets-UXRJCEN4.js} +17 -17
  166. package/dist/cli/{secrets-WSW3FTF6.mjs → secrets-YZZN2WST.mjs} +8 -8
  167. package/dist/cli/{sessions-724BK6VP.mjs → sessions-ITCGPD7Z.mjs} +7 -7
  168. package/dist/cli/sessions-NA4SJH6Q.js +22 -0
  169. package/dist/cli/{settings-5LJZDAZU.js → settings-LAFYMILP.js} +87 -87
  170. package/dist/cli/{settings-YRC7J75G.mjs → settings-ZP2LSVNM.mjs} +14 -14
  171. package/dist/cli/{setup-2F3DBSOS.js → setup-4AL3XYM5.js} +50 -50
  172. package/dist/cli/{setup-STNPX5MK.mjs → setup-WEQAQSYC.mjs} +10 -10
  173. package/dist/cli/{skills-D5PK56FO.mjs → skills-NQH4HFW2.mjs} +8 -8
  174. package/dist/cli/skills-XZ4Y6SZ7.js +36 -0
  175. package/dist/cli/{tools-WOGWMBA3.mjs → tools-CXK2GSI4.mjs} +19 -19
  176. package/dist/cli/tools-WJQ6Y7E4.js +57 -0
  177. package/dist/cli/{update-PC6XSWMI.mjs → update-3ROF3Z75.mjs} +10 -10
  178. package/dist/cli/update-ZLRLTBRD.js +34 -0
  179. package/dist/cli/{views-IIHT4RYQ.mjs → views-AOUHVGV2.mjs} +8 -8
  180. package/dist/cli/{views-HLCLAPWN.js → views-XJFO5CEH.js} +23 -23
  181. package/dist/cli/{workflow-CCZ2A7DI.js → workflow-GY3DBHXX.js} +19 -19
  182. package/dist/cli/{workflow-HK4MZ7LK.mjs → workflow-KBS2QJK6.mjs} +9 -9
  183. package/dist/{client-DfdUc_MY.d.mts → client-D1uWA2Vc.d.mts} +1 -1
  184. package/dist/{client-BQ6yuSjM.d.ts → client-Hz7SsBXs.d.ts} +1 -1
  185. package/dist/{client-core-3GQ8WMuk.d.ts → client-core-D3Ad7Flt.d.ts} +554 -504
  186. package/dist/{client-core-ClsNRytk.d.mts → client-core-Db_e63Hb.d.mts} +554 -504
  187. package/dist/{compiler-manifest-BWFtsQIC.d.mts → compiler-manifest-BqwVrOri.d.mts} +73 -18
  188. package/dist/{compiler-manifest-BWFtsQIC.d.ts → compiler-manifest-BqwVrOri.d.ts} +73 -18
  189. package/dist/{errors-Lm9_vJHZ.d.ts → errors-BU8FB99X.d.mts} +2 -2
  190. package/dist/{errors-CwKXXtuu.d.mts → errors-DfVN_FUG.d.ts} +2 -2
  191. package/dist/{index-3vJ-V9yw.d.ts → index-BGnvtYGc.d.ts} +6 -1
  192. package/dist/{index-DjwsAt82.d.mts → index-DjZgwpGw.d.mts} +6 -1
  193. package/dist/index.d.mts +28 -8
  194. package/dist/index.d.ts +28 -8
  195. package/dist/index.js +65 -40
  196. package/dist/index.mjs +33 -8
  197. package/dist/install-integrity.json +137 -130
  198. package/dist/plays/bundle-play-file.d.mts +3 -3
  199. package/dist/plays/bundle-play-file.d.ts +3 -3
  200. package/dist/plays/bundle-play-file.mjs +640 -125
  201. package/dist/plays/play-description.d.mts +3 -3
  202. package/dist/plays/play-description.d.ts +3 -3
  203. package/dist/plays/run-request.d.mts +2 -2
  204. package/dist/plays/run-request.d.ts +2 -2
  205. package/dist/release.d.mts +1 -1
  206. package/dist/release.d.ts +1 -1
  207. package/dist/release.js +2 -2
  208. package/dist/release.mjs +1 -1
  209. package/dist/server.d.mts +4 -4
  210. package/dist/server.d.ts +4 -4
  211. package/dist/server.js +11 -11
  212. package/dist/server.mjs +5 -5
  213. package/package.json +1 -1
  214. package/dist/cli/auth-455MB4K6.js +0 -43
  215. package/dist/cli/concurrent-runs-help-GFWXOKF5.js +0 -21
  216. package/dist/cli/describe-ZRGYAEBT.js +0 -50
  217. package/dist/cli/git-RC4XDATD.js +0 -25
  218. package/dist/cli/search-O5VVMXII.js +0 -32
  219. package/dist/cli/sessions-3PWFWCHO.js +0 -22
  220. package/dist/cli/skills-RFOMVXIT.js +0 -36
  221. package/dist/cli/tools-CAO6EVUW.js +0 -57
  222. package/dist/cli/update-L4DQZY3G.js +0 -34
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  handleDeploymentGet,
3
3
  handleDeploymentsList
4
- } from "./chunk-LTCEZWPZ.mjs";
4
+ } from "./chunk-56MEAGWA.mjs";
5
5
  import {
6
6
  DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS,
7
7
  MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS,
@@ -9,7 +9,7 @@ import {
9
9
  parsePlayRunHeaderFlag,
10
10
  parsePlayRunOptions,
11
11
  resolvePlayRunCliOptions
12
- } from "./chunk-HPX7LLAM.mjs";
12
+ } from "./chunk-ITLZBDSR.mjs";
13
13
  import {
14
14
  ExecutionOutputError,
15
15
  TABLE_EXPORT_ERROR_COLUMN,
@@ -22,10 +22,10 @@ import {
22
22
  underscoreKeysLast,
23
23
  writeExecutionOutput,
24
24
  writeRunDatasetCsv
25
- } from "./chunk-7P72EGLK.mjs";
25
+ } from "./chunk-MOZEAGSR.mjs";
26
26
  import {
27
27
  registerDeprecatedSearchCommand
28
- } from "./chunk-KRW727W6.mjs";
28
+ } from "./chunk-AEQ5VWZ5.mjs";
29
29
  import "./chunk-5AEDYVB6.mjs";
30
30
  import {
31
31
  buildPlayDashboardUrl,
@@ -41,20 +41,20 @@ import {
41
41
  isAstNode,
42
42
  listPlayFileExports,
43
43
  parsePlaySourceForAnalysis
44
- } from "./chunk-2HSZCQMT.mjs";
44
+ } from "./chunk-WYT3H6JD.mjs";
45
45
  import {
46
46
  resolveEnabledExecutionProfile
47
- } from "./chunk-Z7SXGOIQ.mjs";
47
+ } from "./chunk-MF7PCM6C.mjs";
48
48
  import {
49
49
  parseCsvDataInput
50
50
  } from "./chunk-FSIVF2SI.mjs";
51
51
  import {
52
52
  pinLocalPlayImports,
53
53
  planLocalPlayExecution
54
- } from "./chunk-7JZ27AFH.mjs";
54
+ } from "./chunk-Z2YGQZWV.mjs";
55
55
  import {
56
56
  DeeplineClient
57
- } from "./chunk-3TCHX7YK.mjs";
57
+ } from "./chunk-RXRC2COC.mjs";
58
58
  import {
59
59
  RUN_EVENT_SEARCH_KIND_VALUES,
60
60
  RunEventQueryInputError,
@@ -67,8 +67,8 @@ import {
67
67
  normalizePlayStatus,
68
68
  normalizeRunEventOperationRequest,
69
69
  parseLogLevel
70
- } from "./chunk-GWDPNOA7.mjs";
71
- import "./chunk-HXIR3VQL.mjs";
70
+ } from "./chunk-XMBVHJPR.mjs";
71
+ import "./chunk-FZHMNK6F.mjs";
72
72
  import {
73
73
  CSV_DATA_INPUT_KEY,
74
74
  CliPlayAdmissionCallerIntentV2UnsupportedError,
@@ -91,18 +91,18 @@ import "./chunk-UBKA33KY.mjs";
91
91
  import {
92
92
  checkPlayRunCompatibility,
93
93
  usesCliPlayAdmission
94
- } from "./chunk-2HFSYH7V.mjs";
94
+ } from "./chunk-DIUNDLSX.mjs";
95
95
  import {
96
96
  isCliTraceEnabled,
97
97
  recordCliTrace,
98
98
  resolveCliMaintenancePolicy,
99
99
  traceCliSpan
100
- } from "./chunk-4NZ3OZNO.mjs";
101
- import "./chunk-2CBX43LP.mjs";
100
+ } from "./chunk-G6KW764N.mjs";
101
+ import "./chunk-VPF54TXQ.mjs";
102
102
  import {
103
103
  createCliProgress,
104
104
  getActiveCliProgress
105
- } from "./chunk-EWA3M54M.mjs";
105
+ } from "./chunk-L6QE2XVM.mjs";
106
106
  import {
107
107
  formatNonStandardSandboxRuntimeWarning
108
108
  } from "./chunk-5LUF4LAR.mjs";
@@ -122,17 +122,17 @@ import {
122
122
  printJsonError,
123
123
  renderCommandEnvelopeText,
124
124
  shouldEmitJson
125
- } from "./chunk-JL5JU3LD.mjs";
126
- import "./chunk-7MFATEUC.mjs";
125
+ } from "./chunk-TNJG4ZPN.mjs";
126
+ import "./chunk-GPAWLXW3.mjs";
127
127
  import {
128
128
  fetchWithDeploymentProtection
129
- } from "./chunk-3M2QH3KA.mjs";
130
- import "./chunk-CQBIO6HW.mjs";
129
+ } from "./chunk-DJI5CLLW.mjs";
130
+ import "./chunk-NURW5XH4.mjs";
131
131
  import "./chunk-DLIRSHV6.mjs";
132
132
  import {
133
133
  DeeplineError
134
134
  } from "./chunk-JL2OTMSG.mjs";
135
- import "./chunk-52C6W7FG.mjs";
135
+ import "./chunk-XNTDTAKC.mjs";
136
136
  import "./chunk-WZYKRD7T.mjs";
137
137
  import {
138
138
  __commonJS,
@@ -1067,13 +1067,13 @@ var require_parse = __commonJS({
1067
1067
  consume(token.value);
1068
1068
  };
1069
1069
  const negate = () => {
1070
- let count2 = 1;
1070
+ let count3 = 1;
1071
1071
  while (peek() === "!" && (peek(2) !== "(" || peek(3) === "?")) {
1072
1072
  advance();
1073
1073
  state.start++;
1074
- count2++;
1074
+ count3++;
1075
1075
  }
1076
- if (count2 % 2 === 0) {
1076
+ if (count3 % 2 === 0) {
1077
1077
  return false;
1078
1078
  }
1079
1079
  state.negated = true;
@@ -2476,7 +2476,8 @@ Cron and webhook triggers are declared in the Play source. set-* and clear-*
2476
2476
  rewrite that declaration in the live revision and publish it as a new live
2477
2477
  version, exactly as a CLI publish would. Repeating a command whose change is
2478
2478
  already live does nothing. Git-deployed Plays are read-only here: change the
2479
- trigger in the repository.
2479
+ trigger in the repository. A Play with no live version gets its triggers after
2480
+ a publish; \`get\` prints the exact \`deepline plays publish --revision-id\`.
2480
2481
 
2481
2482
  Examples:
2482
2483
  deepline plays trigger get --play daily-sync
@@ -2505,6 +2506,11 @@ function triggerLines(view) {
2505
2506
  view.webhook ? `Webhook: ${view.webhook.url ?? "(URL issued on publish)"} \u2014 ${describeAuth(view.webhook.auth)}` : "Webhook: off"
2506
2507
  ];
2507
2508
  if (view.readOnly) lines.push(`Read-only: ${view.readOnly.message}`);
2509
+ if (view.publishCandidate) {
2510
+ lines.push(
2511
+ ` publish: deepline plays publish ${shellQuote(view.name)} --revision-id ${view.publishCandidate.revisionId}`
2512
+ );
2513
+ }
2508
2514
  return lines;
2509
2515
  }
2510
2516
  function printView(view, json) {
@@ -3593,12 +3599,12 @@ function executionSummary(value, conflictingPopulation) {
3593
3599
  continue;
3594
3600
  }
3595
3601
  const [, numerator, denominator, percentage] = match;
3596
- const count2 = Number(numerator), total2 = Number(denominator), percent = Number(percentage);
3597
- if (![count2, total2, percent].every(Number.isSafeInteger) || count2 > total2 || percent !== (total2 ? Math.round(count2 * 100 / total2) : 0))
3602
+ const count3 = Number(numerator), total2 = Number(denominator), percent = Number(percentage);
3603
+ if (![count3, total2, percent].every(Number.isSafeInteger) || count3 > total2 || percent !== (total2 ? Math.round(count3 * 100 / total2) : 0))
3598
3604
  valid = false;
3599
3605
  totals.add(total2);
3600
- sum += count2;
3601
- if (count2 !== 0) states[name] = { count: count2, percent };
3606
+ sum += count3;
3607
+ if (count3 !== 0) states[name] = { count: count3, percent };
3602
3608
  }
3603
3609
  const total = totals.size === 1 ? [...totals][0] : null;
3604
3610
  const reconciled = valid && total !== null && sum === total && DATASET_EXECUTION_BUCKETS.every((name) => name in source);
@@ -3909,8 +3915,8 @@ var MALFORMED_STORED_JSON = Symbol("malformed-stored-json");
3909
3915
  function normalizeRunRetrySummary(value) {
3910
3916
  const source = record2(value);
3911
3917
  const recoveries = record2(source?.platformRecoveries);
3912
- const count2 = (field) => Number.isSafeInteger(field) && field >= 0;
3913
- if (!source || !recoveries || source.scope !== "current_epoch" || !count2(source.resumeEpoch) || !count2(recoveries.preCode) || !count2(recoveries.postCode) || !RUN_RETRY_RECOVERY_OUTCOMES.includes(
3918
+ const count3 = (field) => Number.isSafeInteger(field) && field >= 0;
3919
+ if (!source || !recoveries || source.scope !== "current_epoch" || !count3(source.resumeEpoch) || !count3(recoveries.preCode) || !count3(recoveries.postCode) || !RUN_RETRY_RECOVERY_OUTCOMES.includes(
3914
3920
  source.recoveryOutcome
3915
3921
  )) {
3916
3922
  return void 0;
@@ -3937,6 +3943,72 @@ function formatRunRetrySummary(summary) {
3937
3943
  return parts.join(" \xB7 ");
3938
3944
  }
3939
3945
 
3946
+ // ../plays/docflow-flow-order.ts
3947
+ function docflowFlowOrder(docflow) {
3948
+ const subgraphs = docflow.subgraphs ?? [];
3949
+ const regionOf = /* @__PURE__ */ new Map();
3950
+ for (const region of subgraphs) {
3951
+ for (const memberId of region.memberIds) regionOf.set(memberId, region.id);
3952
+ if (region.parentId) regionOf.set(region.id, region.parentId);
3953
+ }
3954
+ const endpoints = [
3955
+ ...docflow.nodes.map((node) => node.id),
3956
+ ...subgraphs.map((region) => region.id)
3957
+ ];
3958
+ const known = new Set(endpoints);
3959
+ const next = /* @__PURE__ */ new Map();
3960
+ const indegree = new Map(endpoints.map((id) => [id, 0]));
3961
+ for (const edge of docflow.edges) {
3962
+ if (!known.has(edge.from) || !known.has(edge.to)) continue;
3963
+ next.set(edge.from, [...next.get(edge.from) ?? [], edge.to]);
3964
+ indegree.set(edge.to, (indegree.get(edge.to) ?? 0) + 1);
3965
+ }
3966
+ const layer = /* @__PURE__ */ new Map();
3967
+ const queue = endpoints.filter((id) => indegree.get(id) === 0);
3968
+ for (const id of queue) layer.set(id, 0);
3969
+ for (let head = 0; head < queue.length; head += 1) {
3970
+ const current = queue[head];
3971
+ for (const target of next.get(current) ?? []) {
3972
+ layer.set(
3973
+ target,
3974
+ Math.max(layer.get(target) ?? 0, (layer.get(current) ?? 0) + 1)
3975
+ );
3976
+ const remaining = (indegree.get(target) ?? 0) - 1;
3977
+ indegree.set(target, remaining);
3978
+ if (remaining === 0) queue.push(target);
3979
+ }
3980
+ }
3981
+ const onCycle = Math.max(0, ...layer.values()) + 1;
3982
+ const depthOf = (id) => {
3983
+ const own = indegree.get(id) === 0 ? layer.get(id) ?? 0 : onCycle;
3984
+ const region = regionOf.get(id);
3985
+ return Math.max(own, region ? depthOf(region) : 0);
3986
+ };
3987
+ const ordered = docflow.nodes.map((node, index) => ({ id: node.id, index })).sort(
3988
+ (left, right) => depthOf(left.id) - depthOf(right.id) || left.index - right.index
3989
+ ).map(({ id }) => id);
3990
+ const result = [];
3991
+ const placed = /* @__PURE__ */ new Set();
3992
+ const place = (id) => {
3993
+ if (placed.has(id)) return;
3994
+ const region = regionOf.get(id);
3995
+ if (region && !placed.has(region)) {
3996
+ place(region);
3997
+ return;
3998
+ }
3999
+ placed.add(id);
4000
+ result.push(id);
4001
+ if (known.has(id) && subgraphs.some((candidate) => candidate.id === id)) {
4002
+ for (const member of ordered) if (regionOf.get(member) === id) place(member);
4003
+ for (const child of subgraphs)
4004
+ if (regionOf.get(child.id) === id) place(child.id);
4005
+ }
4006
+ };
4007
+ for (const id of ordered) place(id);
4008
+ for (const region of subgraphs) place(region.id);
4009
+ return result;
4010
+ }
4011
+
3940
4012
  // src/cli/play-check-output.ts
3941
4013
  var record3 = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
3942
4014
  function projectCheckedPlay(outcome, full = false) {
@@ -3988,12 +4060,15 @@ function projectCheckedPlay(outcome, full = false) {
3988
4060
  );
3989
4061
  }
3990
4062
  if (pipeline) diagnostics.staticPipeline = pipeline;
4063
+ const located = issues.map((issue) => locateDiagramIssue(issue));
4064
+ const diagram = summarizeDiagram(checkedDocflow(pipeline), located);
3991
4065
  return {
3992
4066
  name: outcome.playName,
3993
4067
  exportName: outcome.exportName,
3994
4068
  valid: result.valid,
3995
4069
  ...outcome.stage ? { stage: outcome.stage } : {},
3996
- issues,
4070
+ issues: located,
4071
+ ...diagram ? { diagram } : {},
3997
4072
  ...contract?.inputSchema ? { inputSchema: contract.inputSchema } : {},
3998
4073
  recognized: {
3999
4074
  ...recognized,
@@ -4045,11 +4120,122 @@ function buildPlayCheckOutput(input) {
4045
4120
  }
4046
4121
  };
4047
4122
  }
4048
- function renderPlayCheckOutput(output) {
4049
- return Object.entries(output).map(
4050
- ([key, value]) => typeof value === "object" && value !== null ? `${key}:
4051
- ${JSON.stringify(value, null, 2)}` : `${key}: ${String(value)}`
4052
- ).join("\n");
4123
+ function checkedDocflow(pipeline) {
4124
+ const docflow = record3(pipeline?.docflow);
4125
+ return docflow && Array.isArray(docflow.nodes) && Array.isArray(docflow.edges) ? docflow : null;
4126
+ }
4127
+ var isDiagramIssue = (issue) => issue.code.startsWith("docflow_");
4128
+ var isOptionalDiagramNudge = (issue) => issue.code === "docflow_visualization_missing" && issue.message.startsWith("HIGHLY RECOMMENDED");
4129
+ function locateDiagramIssue(issue) {
4130
+ if (!isDiagramIssue(issue) || issue.node) return issue;
4131
+ const node = /^docflow\.(?:nodes|subgraphs)\.([^.[\]]+)/.exec(
4132
+ issue.path ?? ""
4133
+ )?.[1];
4134
+ return node ? { ...issue, node } : issue;
4135
+ }
4136
+ function summarizeDiagram(docflow, issues) {
4137
+ const diagramIssues = issues.filter(
4138
+ (issue) => isDiagramIssue(issue) && !isOptionalDiagramNudge(issue)
4139
+ );
4140
+ if (!docflow && diagramIssues.length === 0) return void 0;
4141
+ const nodes = docflow?.nodes ?? [];
4142
+ const bound = new Set((docflow?.bindings ?? []).map((b) => b.nodeId));
4143
+ return {
4144
+ drawn: Boolean(docflow),
4145
+ boxes: nodes.length,
4146
+ bound: nodes.filter((node) => bound.has(node.id)).length,
4147
+ sketched: nodes.filter((node) => node.sketch).length,
4148
+ errors: diagramIssues.filter((issue) => issue.severity === "error").length,
4149
+ warnings: diagramIssues.filter((issue) => issue.severity === "warning").length
4150
+ };
4151
+ }
4152
+ var count2 = (n2, one, many) => `${n2} ${n2 === 1 ? one : many}`;
4153
+ function renderDiagramVerdict(summary) {
4154
+ const shape = !summary.drawn ? "not drawn" : [
4155
+ count2(summary.boxes, "box", "boxes"),
4156
+ summary.bound === summary.boxes ? "all bound" : `${summary.bound} bound`,
4157
+ ...summary.sketched ? [`${summary.sketched} sketched`] : []
4158
+ ].join(", ");
4159
+ const found = [
4160
+ ...summary.errors ? [count2(summary.errors, "error", "errors")] : [],
4161
+ ...summary.warnings ? [count2(summary.warnings, "warning", "warnings")] : []
4162
+ ];
4163
+ return `Diagram: ${shape} \xB7 ${found.length ? found.join(", ") : "clean"}`;
4164
+ }
4165
+ function renderIssueBlock(issue, subject) {
4166
+ const head = [
4167
+ issue.severity,
4168
+ subject,
4169
+ ...issue.line ? [`line ${issue.line}`] : []
4170
+ ].join(" \xB7 ");
4171
+ const lines = [head, ` ${issue.message.trim()}`];
4172
+ const hint = issue.hint?.trim();
4173
+ if (hint && issue.fix) lines.push(` Fix: ${hint}`, ` ${issue.fix}`);
4174
+ else if (issue.fix) lines.push(` Fix: ${issue.fix}`);
4175
+ else if (hint) lines.push(` Fix: ${hint}`);
4176
+ return lines;
4177
+ }
4178
+ function renderPlayIssues(play, docflow) {
4179
+ const issues = (Array.isArray(play.issues) ? play.issues : []).filter((issue) => !isOptionalDiagramNudge(issue));
4180
+ const lines = [];
4181
+ for (const issue of issues.filter((issue2) => !isDiagramIssue(issue2))) {
4182
+ lines.push(...renderIssueBlock(issue, issue.code), "");
4183
+ }
4184
+ const order = docflow ? docflowFlowOrder(docflow) : [];
4185
+ const rank = (issue) => {
4186
+ if (!issue.node) return -1;
4187
+ const index = order.indexOf(issue.node);
4188
+ return index < 0 ? order.length : index;
4189
+ };
4190
+ const diagramIssues = issues.filter(isDiagramIssue).map((issue, index) => ({ issue, index })).sort(
4191
+ (left, right) => rank(left.issue) - rank(right.issue) || left.index - right.index
4192
+ ).map(({ issue }) => issue);
4193
+ for (const issue of diagramIssues) {
4194
+ const label = docflow?.nodes.find((node) => node.id === issue.node)?.label ?? docflow?.subgraphs?.find((region) => region.id === issue.node)?.label;
4195
+ const subject = issue.node ? `${issue.node}${label && label !== issue.node ? ` "${label}"` : ""}` : "diagram";
4196
+ lines.push(...renderIssueBlock(issue, subject), "");
4197
+ }
4198
+ const summary = record3(play.diagram);
4199
+ if (summary) lines.push(renderDiagramVerdict(summary));
4200
+ else if (lines.at(-1) === "") lines.pop();
4201
+ return lines;
4202
+ }
4203
+ function renderPlayCheckOutput(output, docflows = /* @__PURE__ */ new Map()) {
4204
+ const plays = Array.isArray(output.exports) ? output.exports : "issues" in output ? [output] : [];
4205
+ const withoutIssues = (value) => Object.fromEntries(
4206
+ Object.entries(value).filter(
4207
+ ([key]) => key !== "issues" && key !== "diagram"
4208
+ )
4209
+ );
4210
+ const dump = Object.entries(withoutIssues(output)).map(([key, value]) => {
4211
+ const shown = key === "exports" && Array.isArray(value) ? value.map((play) => withoutIssues(play)) : value;
4212
+ return typeof shown === "object" && shown !== null ? `${key}:
4213
+ ${JSON.stringify(shown, null, 2)}` : `${key}: ${String(shown)}`;
4214
+ }).join("\n");
4215
+ const sections = plays.flatMap((play) => {
4216
+ const lines = renderPlayIssues(
4217
+ play,
4218
+ docflows.get(String(play.exportName ?? "default")) ?? null
4219
+ );
4220
+ if (lines.length === 0) return [];
4221
+ return plays.length > 1 ? [
4222
+ `
4223
+ export ${String(play.exportName)}:`,
4224
+ ...lines.map((line) => line ? ` ${line}` : "")
4225
+ ] : ["", ...lines];
4226
+ });
4227
+ return [dump, ...sections].join("\n");
4228
+ }
4229
+ function checkedDocflows(outcomes) {
4230
+ return new Map(
4231
+ outcomes.map((outcome) => {
4232
+ const raw = outcome.result;
4233
+ const pipeline = record3(
4234
+ outcome.result.staticPipeline ?? record3(raw.authoringContract)?.staticPipeline
4235
+ );
4236
+ return [outcome.exportName, checkedDocflow(pipeline)];
4237
+ })
4238
+ );
4053
4239
  }
4054
4240
 
4055
4241
  // src/cli/commands/play.ts
@@ -4420,15 +4606,15 @@ function cascadeFalloff(input) {
4420
4606
  });
4421
4607
  return { total, steps, noResult: total - answered };
4422
4608
  }
4423
- function formatHitRate(count2, total) {
4609
+ function formatHitRate(count3, total) {
4424
4610
  if (total <= 0) return "\u2014";
4425
- const share = count2 / total * 100;
4611
+ const share = count3 / total * 100;
4426
4612
  const percent = share === 0 || share === 100 ? share.toString() : share >= 10 ? Math.min(99, Math.round(share)).toString() : share < 1 ? "<1" : share.toFixed(1).replace(/\.0$/, "");
4427
4613
  return `${percent}%`;
4428
4614
  }
4429
- function formatHitShare(count2, total) {
4430
- if (total <= 0) return count2.toLocaleString("en-US");
4431
- return `${count2.toLocaleString("en-US")} \xB7 ${formatHitRate(count2, total)}`;
4615
+ function formatHitShare(count3, total) {
4616
+ if (total <= 0) return count3.toLocaleString("en-US");
4617
+ return `${count3.toLocaleString("en-US")} \xB7 ${formatHitRate(count3, total)}`;
4432
4618
  }
4433
4619
 
4434
4620
  // src/cli/run-hit-counts.ts
@@ -4444,8 +4630,8 @@ function runTableHitCounts(tableNamespace, summary) {
4444
4630
  if (column.includes(".")) continue;
4445
4631
  const physical = sqlSafePlayColumnName(column);
4446
4632
  if (legColumns.has(physical)) continue;
4447
- const count2 = filled[physical];
4448
- if (typeof count2 === "number") columns[column] = count2;
4633
+ const count3 = filled[physical];
4634
+ if (typeof count3 === "number") columns[column] = count3;
4449
4635
  }
4450
4636
  const cascades = {};
4451
4637
  for (const [step, cascade] of Object.entries(summary.cascades ?? {})) {
@@ -4475,9 +4661,9 @@ function formatRunHitCountLines(tables) {
4475
4661
  ` ${step}: ${[...attempts, `no result ${formatHitShare(falloff.noResult, falloff.total)}`].join(" \u2192 ")}`
4476
4662
  );
4477
4663
  }
4478
- for (const [column, count2] of Object.entries(table.columns)) {
4664
+ for (const [column, count3] of Object.entries(table.columns)) {
4479
4665
  if (table.cascades[column]) continue;
4480
- lines.push(` ${column}: ${formatHitShare(count2, table.rows)}`);
4666
+ lines.push(` ${column}: ${formatHitShare(count3, table.rows)}`);
4481
4667
  }
4482
4668
  }
4483
4669
  return lines;
@@ -8317,7 +8503,7 @@ function getProgressLinesFromLiveEvent(event) {
8317
8503
  const calls = readRecord(payload.calls);
8318
8504
  const callCounts = calls ? [calls.logicalCalls, calls.providerRequests, calls.provider429s] : [];
8319
8505
  if (callCounts.length === 3 && callCounts.every(
8320
- (count2) => typeof count2 === "number" && Number.isSafeInteger(count2) && count2 >= 0
8506
+ (count3) => typeof count3 === "number" && Number.isSafeInteger(count3) && count3 >= 0
8321
8507
  )) {
8322
8508
  lines.push(
8323
8509
  `progress calls: ${formatInteger(callCounts[0])} logical, ${formatInteger(callCounts[1])} provider requests, ${formatInteger(callCounts[2])} provider 429s${calls?.confirmed === true ? "" : " (observed)"}`
@@ -9748,10 +9934,10 @@ function collectDatasetHandleLines(value, path = "result") {
9748
9934
  }
9749
9935
  if (isDatasetHandle(value)) {
9750
9936
  const record4 = value;
9751
- const count2 = typeof record4.count === "number" ? record4.count : typeof record4.rowCount === "number" ? record4.rowCount : null;
9937
+ const count3 = typeof record4.count === "number" ? record4.count : typeof record4.rowCount === "number" ? record4.rowCount : null;
9752
9938
  const preview = Array.isArray(record4.preview) ? record4.preview : [];
9753
9939
  const lines2 = [
9754
- ` dataset ${typeof record4.path === "string" ? record4.path : path}: rows=${count2 === null ? "-" : formatInteger(count2)} preview=${formatInteger(preview.length)}`
9940
+ ` dataset ${typeof record4.path === "string" ? record4.path : path}: rows=${count3 === null ? "-" : formatInteger(count3)} preview=${formatInteger(preview.length)}`
9755
9941
  ];
9756
9942
  if (typeof record4.queryDatasetCommand === "string") {
9757
9943
  lines2.push(` query dataset: ${record4.queryDatasetCommand}`);
@@ -9845,8 +10031,8 @@ function getNumericField(value, key) {
9845
10031
  const field = getRecordField(value, key);
9846
10032
  return typeof field === "number" && Number.isFinite(field) ? field : null;
9847
10033
  }
9848
- function formatSupersededRowsNotice(count2) {
9849
- return `${formatInteger(count2)} row${count2 === 1 ? "" : "s"} skipped because a newer Runtime Sheet write took precedence`;
10034
+ function formatSupersededRowsNotice(count3) {
10035
+ return `${formatInteger(count3)} row${count3 === 1 ? "" : "s"} skipped because a newer Runtime Sheet write took precedence`;
9850
10036
  }
9851
10037
  function readRowOutcomeSummary(value) {
9852
10038
  const record4 = getRecordField(value, "rowOutcomes");
@@ -10395,7 +10581,7 @@ function formatTopValuesPart(value) {
10395
10581
  if (entries.length === 0) {
10396
10582
  return null;
10397
10583
  }
10398
- return `top_values=${entries.map(([topValue, count2]) => `${topValue}=${String(count2)}`).join(", ")}`;
10584
+ return `top_values=${entries.map(([topValue, count3]) => `${topValue}=${String(count3)}`).join(", ")}`;
10399
10585
  }
10400
10586
  function formatPackageDatasetSummaryLines(summary, indent = " ") {
10401
10587
  const record4 = readRecord(summary);
@@ -10524,9 +10710,9 @@ function formatRunStepProgress(progress, includeRowOutcomes = false) {
10524
10710
  ]) {
10525
10711
  if (!includeRowOutcomes && (key === "skipped" || key === "failed"))
10526
10712
  continue;
10527
- const count2 = readNonNegativeInteger(progress[key]);
10528
- if (count2 !== null && (count2 > 0 || key === "pending" || key === "activeRows"))
10529
- parts.push(`${formatInteger(count2)} ${label}`);
10713
+ const count3 = readNonNegativeInteger(progress[key]);
10714
+ if (count3 !== null && (count3 > 0 || key === "pending" || key === "activeRows"))
10715
+ parts.push(`${formatInteger(count3)} ${label}`);
10530
10716
  }
10531
10717
  return parts.join(" \xB7 ");
10532
10718
  }
@@ -10824,11 +11010,11 @@ function buildRunActivityTextLines(run) {
10824
11010
  }
10825
11011
  function formatObservedRunCounter(value) {
10826
11012
  const counter = readRecord(value);
10827
- const count2 = counter?.value;
10828
- if (typeof count2 !== "number" || !Number.isSafeInteger(count2) || count2 < 0) {
11013
+ const count3 = counter?.value;
11014
+ if (typeof count3 !== "number" || !Number.isSafeInteger(count3) || count3 < 0) {
10829
11015
  return "unknown";
10830
11016
  }
10831
- return counter?.confirmed === true ? formatInteger(count2) : `${formatInteger(count2)} observed`;
11017
+ return counter?.confirmed === true ? formatInteger(count3) : `${formatInteger(count3)} observed`;
10832
11018
  }
10833
11019
  function buildRunStatusEvidenceTextLines(packaged) {
10834
11020
  const evidence = readRecord(packaged.runStatus);
@@ -12028,7 +12214,7 @@ function renderServerResultView(value) {
12028
12214
  Array.isArray(table.waterfallIds) && table.waterfallIds.length ? `waterfalls=${table.waterfallIds.join(",")}` : null,
12029
12215
  table.columnCounts && typeof table.columnCounts === "object" && !Array.isArray(table.columnCounts) ? `columns=${Object.entries(
12030
12216
  table.columnCounts
12031
- ).map(([key, count2]) => `${key}:${String(count2)}`).join(",")}` : null
12217
+ ).map(([key, count3]) => `${key}:${String(count3)}`).join(",")}` : null
12032
12218
  ].filter(Boolean);
12033
12219
  const rowLabel = typeof table.rowCount === "number" ? `rows=${formatInteger(table.rowCount)} ` : "";
12034
12220
  const lineLabel = typeof table.sourceLines === "string" ? ` lines ${table.sourceLines}` : "";
@@ -12572,7 +12758,7 @@ async function handlePlayCheck(args) {
12572
12758
  printCommandEnvelope(output, {
12573
12759
  json: options.jsonOutput,
12574
12760
  fields: options.jsonFields,
12575
- text: renderPlayCheckOutput(output) + "\n"
12761
+ text: renderPlayCheckOutput(output, checkedDocflows(outcomes)) + "\n"
12576
12762
  });
12577
12763
  return output.valid ? 0 : 1;
12578
12764
  }
@@ -13908,7 +14094,7 @@ async function handleRunLifecycleStatus(args) {
13908
14094
  console.log(`Scalar lifecycle status is not available for run ${runId}.`);
13909
14095
  return 0;
13910
14096
  }
13911
- const formatCount = (count2) => count2.value === null ? "unknown" : `${count2.value}${count2.confirmed ? "" : " (unconfirmed)"}`;
14097
+ const formatCount = (count3) => count3.value === null ? "unknown" : `${count3.value}${count3.confirmed ? "" : " (unconfirmed)"}`;
13912
14098
  console.log(`${status.lifecycle.status} \xB7 ${runId}`);
13913
14099
  console.log(
13914
14100
  `Map-step work (summed, not unique rows): completed ${formatCount(status.mapStepWork.completed)} / ${formatCount(status.mapStepWork.total)}, failed ${formatCount(status.mapStepWork.failed)}`
@@ -13977,9 +14163,11 @@ async function handleRunsRerun(args) {
13977
14163
  }
13978
14164
  return runRunsRerunCommand(runId, options);
13979
14165
  }
14166
+ var RUNS_LIST_STEPS_LIMIT_MAX = 50;
13980
14167
  async function handleRunsList(args) {
13981
- const usage2 = "Usage: deepline runs list [--play <play-name>] [--node <mermaid-node-id>] [--status <status>] [--limit <count>] [--offset <count>] [--json] [--timing]";
14168
+ const usage2 = "Usage: deepline runs list [--play <play-name>] [--node <mermaid-node-id> | --steps] [--status <status>] [--limit <count>] [--offset <count>] [--json] [--timing]";
13982
14169
  const timing = args.includes("--timing");
14170
+ const wantsSteps = args.includes("--steps");
13983
14171
  let playName = null;
13984
14172
  let nodeId = null;
13985
14173
  let statusFilter = null;
@@ -14017,7 +14205,7 @@ async function handleRunsList(args) {
14017
14205
  index += 1;
14018
14206
  continue;
14019
14207
  }
14020
- if (arg === "--json" || arg === "--compact") {
14208
+ if (arg === "--json" || arg === "--compact" || arg === "--steps") {
14021
14209
  continue;
14022
14210
  }
14023
14211
  }
@@ -14045,6 +14233,20 @@ Active runs: ${next.running}`
14045
14233
  console.error("--node requires --play.");
14046
14234
  return 1;
14047
14235
  }
14236
+ if (wantsSteps && !playName) {
14237
+ console.error("--steps requires --play.");
14238
+ return 1;
14239
+ }
14240
+ if (wantsSteps && nodeId) {
14241
+ console.error("--steps and --node cannot be combined.");
14242
+ return 1;
14243
+ }
14244
+ if (wantsSteps && limit !== void 0 && limit > RUNS_LIST_STEPS_LIMIT_MAX) {
14245
+ console.error(
14246
+ `--steps reads at most ${RUNS_LIST_STEPS_LIMIT_MAX} runs per page; use --limit ${RUNS_LIST_STEPS_LIMIT_MAX} with --offset.`
14247
+ );
14248
+ return 1;
14249
+ }
14048
14250
  if ((offset ?? 0) > 0 && !playName) {
14049
14251
  console.error("--offset requires --play.");
14050
14252
  return 1;
@@ -14058,10 +14260,13 @@ Active runs: ${next.running}`
14058
14260
  ...playName ? { play: playName } : {},
14059
14261
  ...statusFilter ? { status: statusFilter } : {},
14060
14262
  ...nodeId ? { node: nodeId } : {},
14263
+ ...wantsSteps ? { steps: true } : {},
14061
14264
  ...limit !== void 0 ? { limit } : {},
14062
14265
  ...offset !== void 0 ? { offset } : {}
14063
14266
  })
14064
14267
  );
14268
+ const stepNodes = wantsSteps ? page.stepNodes ?? [] : [];
14269
+ const stepLabels = new Map(stepNodes.map((node) => [node.id, node.label]));
14065
14270
  const runs = page.runs.map((run) => ({
14066
14271
  id: run.workflowId,
14067
14272
  runId: run.workflowId,
@@ -14085,7 +14290,8 @@ Active runs: ${next.running}`
14085
14290
  billingTotalCredits: run.billingTotalCredits,
14086
14291
  billingMaxCreditsPerRun: run.billingMaxCreditsPerRun,
14087
14292
  playName: run.playName ?? run.memo?.playName ?? playName ?? null,
14088
- ...nodeId ? { nodeObservation: run.nodeObservation ?? null } : {}
14293
+ ...nodeId ? { nodeObservation: run.nodeObservation ?? null } : {},
14294
+ ...wantsSteps ? { steps: run.steps ?? [] } : {}
14089
14295
  }));
14090
14296
  const lines = runs.length === 0 ? [
14091
14297
  playName ? `No runs found for ${playName}.` : `No runs found for status ${statusFilter}.`
@@ -14113,10 +14319,20 @@ Active runs: ${next.running}`
14113
14319
  } else if (nodeId) {
14114
14320
  lines2.push(` node ${nodeId}: not recorded`);
14115
14321
  }
14322
+ if (wantsSteps) {
14323
+ const steps = run.steps ?? [];
14324
+ if (!steps.length) lines2.push(" steps: none recorded");
14325
+ for (const step of steps) {
14326
+ const outcome = step.status === "failed" ? `failed${step.error ? `: ${step.error}` : ""}` : step.arm ?? step.label ?? step.status;
14327
+ lines2.push(
14328
+ ` step ${step.nodeId} (${stepLabels.get(step.nodeId) ?? step.nodeId}): ${outcome}`
14329
+ );
14330
+ }
14331
+ }
14116
14332
  return lines2.join("\n");
14117
14333
  });
14118
14334
  const nextOffset = (page.offset ?? offset ?? 0) + runs.length;
14119
- const nextPage = page.hasMore && playName ? `deepline runs list --play ${shellQuote(playName)}${nodeId ? ` --node ${shellQuote(nodeId)}` : ""}${statusFilter ? ` --status ${shellQuote(statusFilter)}` : ""} --limit ${page.limit ?? limit ?? 20} --offset ${nextOffset}${argsWantJson(args) ? " --json" : ""}` : null;
14335
+ const nextPage = page.hasMore && playName ? `deepline runs list --play ${shellQuote(playName)}${nodeId ? ` --node ${shellQuote(nodeId)}` : ""}${wantsSteps ? " --steps" : ""}${statusFilter ? ` --status ${shellQuote(statusFilter)}` : ""} --limit ${page.limit ?? limit ?? 20} --offset ${nextOffset}${argsWantJson(args) ? " --json" : ""}` : null;
14120
14336
  if (page.hasMore) {
14121
14337
  lines.push("List truncated \u2014 more runs match this filter.");
14122
14338
  lines.push(
@@ -14126,6 +14342,10 @@ Active runs: ${next.running}`
14126
14342
  printCommandEnvelope(
14127
14343
  {
14128
14344
  runs,
14345
+ ...wantsSteps ? {
14346
+ stepNodes,
14347
+ ...page.stepsUnavailable ? { stepsUnavailable: page.stepsUnavailable } : {}
14348
+ } : {},
14129
14349
  count: runs.length,
14130
14350
  ...page.total !== void 0 ? { total: page.total } : {},
14131
14351
  offset: page.offset ?? offset ?? 0,
@@ -14774,9 +14994,9 @@ function padColumn(value, width) {
14774
14994
  return value.length >= width ? value : value + " ".repeat(width - value.length);
14775
14995
  }
14776
14996
  function buildStopAllDryRunTextLines(result) {
14777
- const count2 = result.candidateCount;
14997
+ const count3 = result.candidateCount;
14778
14998
  const lines = [
14779
- `Dry run: ${count2} active run${count2 === 1 ? "" : "s"} would be stopped`,
14999
+ `Dry run: ${count3} active run${count3 === 1 ? "" : "s"} would be stopped`,
14780
15000
  `Scope: ${result.scope}`,
14781
15001
  `Includes child runs: ${result.includesChildren ? "yes" : "no"}`
14782
15002
  ];
@@ -16786,7 +17006,7 @@ Examples:
16786
17006
  process.exitCode = await ownView();
16787
17007
  return;
16788
17008
  }
16789
- const { describeAnything } = await import("./describe-YJ7ZLLLI.mjs");
17009
+ const { describeAnything } = await import("./describe-EVXEM2S6.mjs");
16790
17010
  process.exitCode = await describeAnything(
16791
17011
  name,
16792
17012
  {
@@ -17129,7 +17349,7 @@ Examples:
17129
17349
  new Option2("--log-failed", "Attach terminal-failure logs").hideHelp()
17130
17350
  ).action(async (runId, options) => {
17131
17351
  if (TOOL_EXECUTION_ID.test(runId)) {
17132
- const { getToolExecutionReceipt } = await import("./tools-WOGWMBA3.mjs");
17352
+ const { getToolExecutionReceipt } = await import("./tools-CXK2GSI4.mjs");
17133
17353
  process.exitCode = await getToolExecutionReceipt(runId, {
17134
17354
  receiptJson: options.json !== void 0
17135
17355
  });
@@ -17216,6 +17436,9 @@ Notes:
17216
17436
  Bounded inventory for a play's recent runs. Use --compact for agent loops.
17217
17437
  Use the exact qualified Play reference, such as workspace/my-play or prebuilt/my-play.
17218
17438
  --offset requires --play; narrow status-only lists with a Play reference to paginate.
17439
+ --steps adds runs[].steps (each reached diagram step: nodeId, status, label,
17440
+ arm, error) and stepNodes (the diagram's steps in flow order). Unreached steps
17441
+ are absent. At most 50 runs per page.
17219
17442
  Common statuses include running, completed, failed, and stopped.
17220
17443
  JSON runs[].id is the public ID accepted by runs get, watch, export, and stop.
17221
17444
  runId and workflowId are compatibility aliases; temporalRunId is not the public ID.
@@ -17226,15 +17449,20 @@ Examples:
17226
17449
  deepline runs list --play my-play
17227
17450
  deepline runs list --play workspace/my-play
17228
17451
  deepline runs list --play my-play --status failed --compact
17452
+ deepline runs list --play my-play --steps --limit 20 --json
17229
17453
  deepline runs list --status running --compact
17230
17454
  `
17231
- ).option("--play <name>", "Play name to filter runs").option("--node <id>", "Mermaid node id to filter runs").option("--status <status>", "Filter by run status").option("--limit <count>", "Maximum runs to return").option("--offset <count>", "Zero-based page offset (requires --play)").option("--compact", "Drop verbose fields from JSON output").option("--json", "Emit JSON output").option(
17455
+ ).option("--play <name>", "Play name to filter runs").option("--node <id>", "Mermaid node id to filter runs").option(
17456
+ "--steps",
17457
+ "Include each run's outcome at every diagram step (requires --play; at most 50 runs per page)"
17458
+ ).option("--status <status>", "Filter by run status").option("--limit <count>", "Maximum runs to return").option("--offset <count>", "Zero-based page offset (requires --play)").option("--compact", "Drop verbose fields from JSON output").option("--json", "Emit JSON output").option(
17232
17459
  "--timing",
17233
17460
  "Report the inventory request duration and periodic long-read updates to stderr"
17234
17461
  ).action(async (options) => {
17235
17462
  process.exitCode = await handleRunsList([
17236
17463
  ...options.play ? ["--play", options.play] : [],
17237
17464
  ...options.node ? ["--node", options.node] : [],
17465
+ ...options.steps ? ["--steps"] : [],
17238
17466
  ...options.status ? ["--status", options.status] : [],
17239
17467
  ...options.limit ? ["--limit", options.limit] : [],
17240
17468
  ...options.offset ? ["--offset", options.offset] : [],