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
@@ -647,6 +647,7 @@ Cost: Does not spend credits.`,
647
647
  core: `Purpose: Reauthorize an existing named workspace connection.
648
648
  Input: the exact name from list; --provider disambiguates repeated names.
649
649
  Google Workspace approvals also require --verification-email in that domain.
650
+ After Google Admin approves the scope, use --list-calendars to verify calendar listing.
650
651
  Output: OAuth URL requiring browser consent, or the Google approval verification result.
651
652
  Uses the current stored ID and revision; stale changes fail. --dry-run reads
652
653
  current state and prints the planned change without OAuth, Google calls, or writes.
@@ -678,6 +679,7 @@ Input: the approved domain and --verification-email for a user in that domain.
678
679
  Complete the Google Admin approval in the dashboard setup wizard first.
679
680
  Use --booking after approving calendar.events.owned to enable meetings on the
680
681
  organizer's primary calendar. The Play supplies organizerEmail and attendees.
682
+ Use --list-calendars after approving calendar.calendarlist.readonly to list calendars in that Google Workspace. Existing scopes are included in verification.
681
683
  The CLI reads the current revision, verifies the requested Google scopes, and saves
682
684
  the approval. Repeating verification refreshes the existing domain approval.
683
685
  Output: enabled or validation_failed, revision and provider readiness evidence.
@@ -1140,7 +1142,11 @@ Authoring rules:
1140
1142
  first (name, company, email, the final answer, status) and ids, raw
1141
1143
  provider payloads and intermediate attempts toward the end. Each run
1142
1144
  records its own order, so reordering a Play's columns shows from its next
1143
- run on. A column whose name starts with _ is kept with the row but hidden
1145
+ run on. When dependencies force a raw result or cascade first, list what
1146
+ readers should see first: .run({ columnOrder: ['full_name', 'email'] }).
1147
+ The rest keep their declared order. Use literal names; plays check warns
1148
+ about one it cannot find.
1149
+ A column whose name starts with _ is kept with the row but hidden
1144
1150
  from the run page: use it for values people do not need to see (raw
1145
1151
  payloads, internal ids). _key, _status, _error, _stage, _provider and
1146
1152
  _run_id are reserved.
@@ -1179,8 +1185,10 @@ Authoring rules:
1179
1185
  Name the list when the tool declares several: result.rows('people').
1180
1186
  Reuse before rebuilding: deepline.runPlay(key, 'prebuilt/<name>', input,
1181
1187
  { description }) runs a
1182
- prebuilt as one stage. Independent calls run together with Promise.all;
1183
- a call that needs another's result waits for it.
1188
+ prebuilt as one stage. The reference may also be a workspace play name or
1189
+ an imported play (import child from './child.play'), which runs inline.
1190
+ Independent calls run together with Promise.all; a call that needs
1191
+ another's result waits for it.
1184
1192
  Retries: a call whose provider keeps failing (an outage, a 5xx other than
1185
1193
  a 504 timeout, a 429 past its pacing, a refusal for credits outside a
1186
1194
  map) is retried on a durable timer under
@@ -1225,9 +1233,38 @@ Authoring rules:
1225
1233
  whether it was validated, the outcome, the reason) and keep evidence
1226
1234
  under _dl_meta, including result._metadata.execution.receiptKey. Unknown
1227
1235
  stays null, not false.
1228
- Diagram: a /** @mermaid */ block at the top of the play draws it in the
1229
- dashboard, with // @mermaid-node <id> out:"<identifier>" above the
1230
- statement each box stands for. [[cli:plays check]][[mcp:deepline_check_play]] validates it.
1236
+ Diagram: a /** @mermaid */ flowchart at the top of the play draws it in
1237
+ the dashboard. Bind a box with // @mermaid-node <id> key:"value" ... on
1238
+ the line above its statement:
1239
+ in:"a,input.b,col" what the statement reads.
1240
+ out:"x" the variable it declares, the column its withColumn
1241
+ adds, or $output for the return.
1242
+ type:"decision|dataset|play" when the box is one (id{\u2026} is a
1243
+ decision; a double-bracket box is a child play,
1244
+ including an imported one). A deepline.csv or
1245
+ deepline.dataset statement is type:"dataset".
1246
+ arm:"run|else" this box is that side of a per-row runIf column:
1247
+ .withColumn('t1', { run, runIf: (row) => row.hot })
1248
+ label:"\u2026" overrides the drawn label.
1249
+ show:"a,b.c" the fields a reader sees for an object value;
1250
+ without it, the first field and a field count.
1251
+ %% @input show:"\u2026" inside the block names the input fields Start shows.
1252
+ A decision binds the value its if reads and draws one labeled edge per
1253
+ outcome (work -->|Personal| reject), including else and review. Bind a
1254
+ const inside each branch so the run records its arm. A subgraph is a
1255
+ phase: put each decision inside the subgraph holding its arms and label
1256
+ every edge leaving it. class <ids> sketch marks boxes no statement runs:
1257
+ the event that starts a play, never a step it takes.
1258
+ Warnings: a sketched step, a box without in: or out:, an object without
1259
+ show:, a title over 48 characters, over 8 arms on one decision, or over
1260
+ 12 boxes in one view (a folded subgraph counts as one box).
1261
+ Diagram problems never block check, publish or run: what does not
1262
+ resolve is left off the drawing, and an unreadable block is not drawn.
1263
+ Quote labels with brackets, parentheses or pipes: id["Label (x)"].
1264
+ [[cli:plays check <file>]][[mcp:deepline_check_play]] judges it: each
1265
+ warning names the box, its line and the fix to paste. Make it clean, not
1266
+ only valid.[[cli: runs list --play <name> --steps --json shows each
1267
+ run's visited boxes and decision arms.]]
1231
1268
  `
1232
1269
  },
1233
1270
  "plays grep": {
@@ -1421,13 +1458,17 @@ When:
1421
1458
  every time.
1422
1459
  [[cli:
1423
1460
  Input:
1424
- A local path ending in .play.ts, or a play reference. --json prints JSON.
1461
+ A local path ending in .play.ts, or a play reference. --full adds the
1462
+ diagnostics (static pipeline and diagram); --json prints JSON.
1425
1463
  ]]
1426
1464
  [[cli:
1427
1465
  Output (JSON):
1428
1466
  valid (boolean), target, name, reference, inputSchema, outputSchema,
1429
1467
  runtimeLimit, note, and for local files any errors or warnings with the
1430
- repair steps.
1468
+ repair steps. A diagram issue adds node, line and fix (one line to paste);
1469
+ diagram counts its boxes, bound, sketched, errors and warnings. Text output
1470
+ lists diagram issues by box in flow order and ends with the verdict, e.g.
1471
+ Diagram: 11 boxes, all bound \xB7 2 warnings.
1431
1472
  ]]
1432
1473
  Cost:
1433
1474
  Free.
@@ -1894,12 +1935,18 @@ When:
1894
1935
  Input:
1895
1936
  --play <ref> and/or --status <queued|running|completed|failed|stopped>
1896
1937
  (at least one). --limit, --offset (with --play), --compact, --json.
1938
+ --steps (with --play, at most 50 runs per page): what each run did at
1939
+ every diagram step.
1897
1940
  ]]
1898
1941
  [[cli:
1899
1942
  Output (JSON):
1900
1943
  runs[] {id, status, playName, createdAtIso, startedAtIso, finishedAtIso,
1901
1944
  billingTotalCredits}, count, total, has_more, next, render.sections (one
1902
1945
  line per run: id, status, start time, credits).
1946
+ With --steps: runs[].steps[] {nodeId, status, label, arm, error} for each
1947
+ reached step (unreached steps are absent; label/arm at most 80 characters,
1948
+ error at most 160), and stepNodes[] {id, label, kind, regionId,
1949
+ regionLabel} in flow order.
1903
1950
  ]]
1904
1951
  Cost:
1905
1952
  Free.
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-GWDPNOA7.mjs";
3
+ } from "./chunk-XMBVHJPR.mjs";
4
4
  import {
5
5
  HttpClient,
6
6
  resolveConfig
7
- } from "./chunk-7MFATEUC.mjs";
7
+ } from "./chunk-GPAWLXW3.mjs";
8
8
 
9
9
  // src/client.ts
10
10
  var DeeplineClient2 = class extends DeeplineClient {
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk2GJZLIKWjs = require('./chunk-2GJZLIKW.js');
5
+ var _chunkEITMD3A5js = require('./chunk-EITMD3A5.js');
6
6
 
7
7
 
8
8
 
@@ -17,12 +17,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
17
17
  var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
18
18
 
19
19
 
20
- var _chunkC6XYSTBWjs = require('./chunk-C6XYSTBW.js');
20
+ var _chunkFFBXLFKVjs = require('./chunk-FFBXLFKV.js');
21
21
 
22
22
  // src/version.ts
23
- var SDK_VERSION = _chunkC6XYSTBWjs.SDK_RELEASE.version;
24
- var SDK_API_MAJOR = _chunkC6XYSTBWjs.SDK_RELEASE.contracts.api.currentMajor;
25
- var SDK_API_CONTRACT = _nullishCoalesce(_chunkC6XYSTBWjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
23
+ var SDK_VERSION = _chunkFFBXLFKVjs.SDK_RELEASE.version;
24
+ var SDK_API_MAJOR = _chunkFFBXLFKVjs.SDK_RELEASE.contracts.api.currentMajor;
25
+ var SDK_API_CONTRACT = _nullishCoalesce(_chunkFFBXLFKVjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
26
26
 
27
27
  // src/agent-runtime.ts
28
28
  var _fs = require('fs');
@@ -479,7 +479,7 @@ var HttpClient = class {
479
479
  }
480
480
  let lastError = null;
481
481
  const candidateUrls = _optionalChain([options, 'optionalAccess', _129 => _129.exactUrlOnly]) ? [url] : buildCandidateUrls(url);
482
- let retryAfterDelayMs = null;
482
+ let retryAfterHint = null;
483
483
  let totalRetryWaitMs = 0;
484
484
  let maxRetries = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _130 => _130.maxRetries]), () => ( this.config.maxRetries));
485
485
  requestAttempts: for (let attempt = 0; attempt <= maxRetries; attempt++) {
@@ -490,8 +490,8 @@ var HttpClient = class {
490
490
  }
491
491
  if (attempt > 0) {
492
492
  const backoffMs = Math.min(1e3 * Math.pow(2, attempt - 1), 3e4);
493
- const delayMs = retryAfterDelayMs === null ? backoffMs : Math.max(backoffMs, retryAfterDelayMs);
494
- retryAfterDelayMs = null;
493
+ const delayMs = retryAfterHint === null ? backoffMs : retryAfterHint.exact && attempt === 1 ? retryAfterHint.delayMs : Math.max(backoffMs, retryAfterHint.delayMs);
494
+ retryAfterHint = null;
495
495
  if (totalRetryWaitMs + delayMs > MAX_AUTOMATIC_RETRY_WAIT_MS) {
496
496
  break requestAttempts;
497
497
  }
@@ -565,12 +565,15 @@ var HttpClient = class {
565
565
  if (response.status === 429) {
566
566
  const retryAfter = parseRetryAfter(response);
567
567
  const failure = _chunkBBTKAASQjs.serializeToolExecutionFailure.call(void 0, structuredToolError);
568
- lastError = failure === null ? structuredToolError : new (0, _chunk2GJZLIKWjs.ToolRateLimitError)(structuredToolError.message, {
568
+ lastError = failure === null ? structuredToolError : new (0, _chunkEITMD3A5js.ToolRateLimitError)(structuredToolError.message, {
569
569
  ...failure,
570
570
  retryAfterMs: _nullishCoalesce(failure.retryAfterMs, () => ( Math.max(0, retryAfter)))
571
571
  });
572
572
  if (responseRetryAllowed && attempt < maxRetries) {
573
- retryAfterDelayMs = retryAfter;
573
+ retryAfterHint = _nullishCoalesce(parseRetryAfterHint(response), () => ( {
574
+ delayMs: retryAfter,
575
+ exact: false
576
+ }));
574
577
  break;
575
578
  }
576
579
  throw _chunkBBTKAASQjs.attachToolUpstreamResponse.call(void 0, lastError, parsed);
@@ -587,15 +590,18 @@ var HttpClient = class {
587
590
  );
588
591
  }
589
592
  const retryAfter = parseRetryAfter(response);
590
- lastError = new (0, _chunk2GJZLIKWjs.RateLimitError)(retryAfter);
593
+ lastError = new (0, _chunkEITMD3A5js.RateLimitError)(retryAfter);
591
594
  if (responseRetryAllowed && attempt < maxRetries) {
592
- retryAfterDelayMs = retryAfter;
595
+ retryAfterHint = _nullishCoalesce(parseRetryAfterHint(response), () => ( {
596
+ delayMs: retryAfter,
597
+ exact: false
598
+ }));
593
599
  break;
594
600
  }
595
601
  throw _optionalChain([options, 'optionalAccess', _151 => _151.toolId]) ? _chunkBBTKAASQjs.attachToolUpstreamResponse.call(void 0, lastError, parsed) : lastError;
596
602
  }
597
603
  if (response.status === 401 && !isProviderOriginatedHttpError(parsed)) {
598
- throw new (0, _chunk2GJZLIKWjs.AuthError)(_chunkXNYIZMNQjs.apiErrorMessage.call(void 0, parsed, response.status));
604
+ throw new (0, _chunkEITMD3A5js.AuthError)(_chunkXNYIZMNQjs.apiErrorMessage.call(void 0, parsed, response.status));
599
605
  }
600
606
  if (!response.ok) {
601
607
  const retryableApiError = _optionalChain([options, 'optionalAccess', _152 => _152.retryApiErrors]) === true && responseRetryAllowed && isRetryableApiErrorResponse(response.status);
@@ -615,7 +621,7 @@ var HttpClient = class {
615
621
  }
616
622
  );
617
623
  if (retryableApiError && attempt < maxRetries) {
618
- retryAfterDelayMs = parseOptionalRetryAfter(response);
624
+ retryAfterHint = parseRetryAfterHint(response);
619
625
  break;
620
626
  }
621
627
  throw lastError;
@@ -627,7 +633,7 @@ var HttpClient = class {
627
633
  response: parsed
628
634
  });
629
635
  if (retryableApiError && attempt < maxRetries) {
630
- retryAfterDelayMs = parseOptionalRetryAfter(response);
636
+ retryAfterHint = parseRetryAfterHint(response);
631
637
  break;
632
638
  }
633
639
  throw _optionalChain([options, 'optionalAccess', _153 => _153.toolId]) ? _chunkBBTKAASQjs.attachToolUpstreamResponse.call(void 0, lastError, parsed) : lastError;
@@ -654,10 +660,10 @@ var HttpClient = class {
654
660
  lastError = requestCancelledError(options.signal);
655
661
  break requestAttempts;
656
662
  }
657
- if (error instanceof _chunk2GJZLIKWjs.AuthError || error instanceof _chunkBBTKAASQjs.DeeplineError) {
663
+ if (error instanceof _chunkEITMD3A5js.AuthError || error instanceof _chunkBBTKAASQjs.DeeplineError) {
658
664
  throw error;
659
665
  }
660
- if (error instanceof _chunk2GJZLIKWjs.RateLimitError) {
666
+ if (error instanceof _chunkEITMD3A5js.RateLimitError) {
661
667
  lastError = error;
662
668
  break;
663
669
  }
@@ -773,7 +779,7 @@ var HttpClient = class {
773
779
  const body = await response.text();
774
780
  const parsed = parseResponseBody(body);
775
781
  if (response.status === 401 && !isProviderOriginatedHttpError(parsed)) {
776
- throw new (0, _chunk2GJZLIKWjs.AuthError)(_chunkXNYIZMNQjs.apiErrorMessage.call(void 0, parsed, response.status));
782
+ throw new (0, _chunkEITMD3A5js.AuthError)(_chunkXNYIZMNQjs.apiErrorMessage.call(void 0, parsed, response.status));
777
783
  }
778
784
  const htmlError = detectHtmlErrorBody(
779
785
  body,
@@ -804,7 +810,7 @@ var HttpClient = class {
804
810
  yield* decodeSseStream(response.body);
805
811
  return;
806
812
  } catch (error) {
807
- if (error instanceof _chunk2GJZLIKWjs.AuthError || error instanceof _chunkBBTKAASQjs.DeeplineError) {
813
+ if (error instanceof _chunkEITMD3A5js.AuthError || error instanceof _chunkBBTKAASQjs.DeeplineError) {
808
814
  throw error;
809
815
  }
810
816
  const normalized = error instanceof Error ? error : new Error(String(error));
@@ -933,14 +939,18 @@ function detectHtmlErrorBody(body, contentType) {
933
939
  };
934
940
  }
935
941
  function parseRetryAfter(response) {
936
- return _nullishCoalesce(parseOptionalRetryAfter(response), () => ( 5e3));
942
+ return _nullishCoalesce(_optionalChain([parseRetryAfterHint, 'call', _185 => _185(response), 'optionalAccess', _186 => _186.delayMs]), () => ( 5e3));
937
943
  }
938
- function parseOptionalRetryAfter(response) {
944
+ function parseRetryAfterHint(response) {
945
+ const exactMs = Number(_nullishCoalesce(response.headers.get("retry-after-ms"), () => ( "")));
946
+ if (Number.isFinite(exactMs) && exactMs > 0) {
947
+ return { delayMs: Math.ceil(exactMs), exact: true };
948
+ }
939
949
  const header = response.headers.get("retry-after");
940
950
  if (header) {
941
951
  const seconds = Number(header);
942
952
  if (Number.isFinite(seconds) && seconds > 0) {
943
- return seconds * 1e3;
953
+ return { delayMs: seconds * 1e3, exact: false };
944
954
  }
945
955
  }
946
956
  return null;
@@ -999,20 +1009,20 @@ function decodeSseFrame(frame) {
999
1009
  }
1000
1010
  function sleep(ms, signal) {
1001
1011
  return new Promise((resolve, reject) => {
1002
- if (_optionalChain([signal, 'optionalAccess', _185 => _185.aborted])) {
1012
+ if (_optionalChain([signal, 'optionalAccess', _187 => _187.aborted])) {
1003
1013
  reject(requestCancelledError(signal));
1004
1014
  return;
1005
1015
  }
1006
1016
  const timeoutId = setTimeout(() => {
1007
- _optionalChain([signal, 'optionalAccess', _186 => _186.removeEventListener, 'call', _187 => _187("abort", abort)]);
1017
+ _optionalChain([signal, 'optionalAccess', _188 => _188.removeEventListener, 'call', _189 => _189("abort", abort)]);
1008
1018
  resolve();
1009
1019
  }, ms);
1010
1020
  const abort = () => {
1011
1021
  clearTimeout(timeoutId);
1012
- _optionalChain([signal, 'optionalAccess', _188 => _188.removeEventListener, 'call', _189 => _189("abort", abort)]);
1022
+ _optionalChain([signal, 'optionalAccess', _190 => _190.removeEventListener, 'call', _191 => _191("abort", abort)]);
1013
1023
  reject(requestCancelledError(signal));
1014
1024
  };
1015
- _optionalChain([signal, 'optionalAccess', _190 => _190.addEventListener, 'call', _191 => _191("abort", abort, { once: true })]);
1025
+ _optionalChain([signal, 'optionalAccess', _192 => _192.addEventListener, 'call', _193 => _193("abort", abort, { once: true })]);
1016
1026
  });
1017
1027
  }
1018
1028
  function withCoworkNetworkHint(message) {
@@ -4,13 +4,13 @@ import {
4
4
  resolveApiKeyForBaseUrl,
5
5
  resolveCliCommandContext,
6
6
  resolveConfig
7
- } from "./chunk-7MFATEUC.mjs";
7
+ } from "./chunk-GPAWLXW3.mjs";
8
8
  import {
9
9
  SDK_VERSION,
10
10
  agentSessionIdFromEnvironment,
11
11
  deploymentProtectionHeaders,
12
12
  detectAgentRuntime
13
- } from "./chunk-3M2QH3KA.mjs";
13
+ } from "./chunk-DJI5CLLW.mjs";
14
14
  import {
15
15
  DeeplineError,
16
16
  normalizeToolExecutionFailure,
@@ -26,7 +26,7 @@ var RUN_FIELDS = new Set(
26
26
  );
27
27
  var ROOTS = {
28
28
  describe: "name playKey reference displayName description pinned toolCategories tags origin ownerType canEdit canClone aliases inputSchema outputSchema staticPipeline csvInput rowOutputSchema runCommand examples cloneEditStarter currentPublishedVersion liveVersion triggerStatus triggerMetadata isDraftDirty latestRunId runtimeLimit activeScheduledPlays dashboardUrl command_context",
29
- check: "kind target checked scope name exportName valid stage issues inputSchema outputSchema recognized triggers runtimeLimit limits featureFlags sourceHash artifactHash graphHash toolGetterHints exports actions diagnostics reference origin ownerType activeScheduledPlays command_context",
29
+ check: "kind target checked scope name exportName valid stage issues diagram inputSchema outputSchema recognized triggers runtimeLimit limits featureFlags sourceHash artifactHash graphHash toolGetterHints exports actions diagnostics reference origin ownerType activeScheduledPlays command_context",
30
30
  run: "schemaVersion kind run datasets actions apiVersion rateLimited dashboardUrl runUrl progress rowOutcomes steps errors error warnings result resultState execution command_context diagnostics",
31
31
  get: "schemaVersion kind run dashboardUrl runUrl runStatus steps failures errorDetails rowOutcomes warnings failedLogs datasets result resultState actions diagnostics command_context",
32
32
  config: "runId contract command_context",
@@ -9,7 +9,7 @@ var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
9
9
 
10
10
 
11
11
 
12
- var _chunkG5TV6WLVjs = require('./chunk-G5TV6WLV.js');
12
+ var _chunkGJOGFWX3js = require('./chunk-GJOGFWX3.js');
13
13
 
14
14
  // src/cli/describe-options.ts
15
15
  function addDescribeOptions(command, options = {}) {
@@ -250,7 +250,7 @@ function projectRunDatasetCell(value) {
250
250
  const logicalValue = parseSerializedDatasetValue(value);
251
251
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
252
252
  if (typeof logicalValue === "object") {
253
- return _chunkG5TV6WLVjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
253
+ return _chunkGJOGFWX3js.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
254
254
  }
255
255
  return logicalValue;
256
256
  }
@@ -642,7 +642,7 @@ function csvText(rows, columns = []) {
642
642
  rows: rows.map((row) => record(row) ? row : { value: row }),
643
643
  columns
644
644
  });
645
- return _chunkG5TV6WLVjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
645
+ return _chunkGJOGFWX3js.csvStringFromRows.call(void 0, projection.rows, projection.columns);
646
646
  }
647
647
  function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
648
648
  let temp;
@@ -769,7 +769,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
769
769
  };
770
770
  if (options.receiptOut && !skipReceiptFile) {
771
771
  persist(options.receiptOut, jsonText(receipt));
772
- _chunkG5TV6WLVjs.markJsonOutputHandled.call(void 0, );
772
+ _chunkGJOGFWX3js.markJsonOutputHandled.call(void 0, );
773
773
  } else {
774
774
  printReceipt(receipt, options, {
775
775
  data: hasData ? result.data : void 0,
@@ -937,7 +937,7 @@ function receiptText(receipt, options, extra) {
937
937
  problems.push(
938
938
  `Error: ${record(error) && typeof error.message === "string" ? error.message : JSON.stringify(error)}`
939
939
  );
940
- const diagnostic = _chunkG5TV6WLVjs.formatCliFailureDiagnostic.call(void 0, error);
940
+ const diagnostic = _chunkGJOGFWX3js.formatCliFailureDiagnostic.call(void 0, error);
941
941
  if (diagnostic) problems.push(...diagnostic.split("\n"));
942
942
  if (record(error) && typeof error.recoveryFile === "string") {
943
943
  problems.push(
@@ -1030,8 +1030,8 @@ function printReceipt(receipt, options, extra) {
1030
1030
  const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
1031
1031
  ` : receiptText(receipt, options, extra);
1032
1032
  if (options.receiptOut !== void 0) {
1033
- _chunkG5TV6WLVjs.writeRawStderr.call(void 0, text);
1034
- _chunkG5TV6WLVjs.markJsonOutputHandled.call(void 0, );
1033
+ _chunkGJOGFWX3js.writeRawStderr.call(void 0, text);
1034
+ _chunkGJOGFWX3js.markJsonOutputHandled.call(void 0, );
1035
1035
  } else {
1036
1036
  (dataOnStdout(options) ? process.stderr : process.stdout).write(text);
1037
1037
  }
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getActiveCliProgress
3
- } from "./chunk-EWA3M54M.mjs";
3
+ } from "./chunk-L6QE2XVM.mjs";
4
4
  import {
5
5
  maybeReportAutomaticSkillsSyncFailure
6
- } from "./chunk-JL5JU3LD.mjs";
6
+ } from "./chunk-TNJG4ZPN.mjs";
7
7
  import {
8
8
  DEFAULT_SKILL_AGENTS,
9
9
  KNOWN_SKILL_AGENTS,
@@ -14,17 +14,17 @@ import {
14
14
  sdkCliStateDirPath,
15
15
  skillsAgentPathSegment,
16
16
  writeSdkSkillsLocalVersion
17
- } from "./chunk-7MFATEUC.mjs";
17
+ } from "./chunk-GPAWLXW3.mjs";
18
18
  import {
19
19
  SDK_API_CONTRACT,
20
20
  SDK_API_MAJOR,
21
21
  SDK_VERSION,
22
22
  deploymentProtectionHeaders,
23
23
  detectAgentRuntime
24
- } from "./chunk-3M2QH3KA.mjs";
24
+ } from "./chunk-DJI5CLLW.mjs";
25
25
  import {
26
26
  SDK_RELEASE
27
- } from "./chunk-52C6W7FG.mjs";
27
+ } from "./chunk-XNTDTAKC.mjs";
28
28
 
29
29
  // src/compat.ts
30
30
  import { randomUUID } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isToolConnectionName
3
- } from "./chunk-HXIR3VQL.mjs";
3
+ } from "./chunk-FZHMNK6F.mjs";
4
4
 
5
5
  // ../plays/script-entry.ts
6
6
  import { basename } from "path";
@@ -1,13 +1,14 @@
1
1
  import {
2
+ GOOGLE_WORKSPACE_AVAILABILITY_SCOPE,
2
3
  GOOGLE_WORKSPACE_BOOKING_SCOPE,
3
- GOOGLE_WORKSPACE_BOOKING_SCOPES,
4
+ GOOGLE_WORKSPACE_CALENDAR_LIST_SCOPE,
4
5
  GOOGLE_WORKSPACE_DOMAIN_PATTERN,
5
6
  PLAY_RUNTIME_BACKENDS,
6
7
  RAW_V2_TOOL_RESPONSE_CONTRACT,
7
8
  isToolConnectionName,
8
9
  legacyRawFromToolResponseRawV2,
9
10
  providerMetaFromToolResponseRawV2
10
- } from "./chunk-HXIR3VQL.mjs";
11
+ } from "./chunk-FZHMNK6F.mjs";
11
12
  import {
12
13
  CLI_PLAY_RUN_CALLER_INTENT_V2_START_STREAM_PATH,
13
14
  CLI_PLAY_RUN_START_STREAM_PATH,
@@ -36,10 +37,10 @@ import {
36
37
  RETAINED_PIPELINE_RECEIVERS_HEADER,
37
38
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
38
39
  SDK_API_MAJOR
39
- } from "./chunk-3M2QH3KA.mjs";
40
+ } from "./chunk-DJI5CLLW.mjs";
40
41
  import {
41
42
  CustomerDbQueryOutcomeUnknownError
42
- } from "./chunk-CQBIO6HW.mjs";
43
+ } from "./chunk-NURW5XH4.mjs";
43
44
  import {
44
45
  DeeplineError,
45
46
  TOOL_EXECUTION_ERROR_SCHEMA_HEADER,
@@ -2444,6 +2445,8 @@ async function changeConnection(client, action, name, options) {
2444
2445
  const row = await findConnection(client, name, options.provider);
2445
2446
  if (options.booking && (action !== "reconnect" || row.type !== "workspace_delegation"))
2446
2447
  invalid("Use --booking with Google Workspace verify or reconnect.");
2448
+ if (options.listCalendars && (action !== "reconnect" || row.type !== "workspace_delegation"))
2449
+ invalid("Use --list-calendars with Google Workspace verify or reconnect.");
2447
2450
  if (row.type === "workspace_delegation") {
2448
2451
  if (row.provider !== CALENDAR_PROVIDER || !row.domain)
2449
2452
  invalid("The workspace approval is missing its provider or domain.");
@@ -2502,14 +2505,21 @@ async function verifyWorkspace(client, domain, options, existing) {
2502
2505
  } : await client.getCalendarDelegation(void 0, void 0, domain);
2503
2506
  if (settings.grantRevision === void 0)
2504
2507
  invalid("The API did not return a workspace approval revision.");
2505
- const requestedScopes = options.booking ? [...GOOGLE_WORKSPACE_BOOKING_SCOPES] : settings.grantedScopes;
2508
+ const requestedScopes = [
2509
+ .../* @__PURE__ */ new Set([
2510
+ GOOGLE_WORKSPACE_AVAILABILITY_SCOPE,
2511
+ ...settings.grantedScopes ?? [],
2512
+ ...options.booking ? [GOOGLE_WORKSPACE_BOOKING_SCOPE] : [],
2513
+ ...options.listCalendars ? [GOOGLE_WORKSPACE_CALENDAR_LIST_SCOPE] : []
2514
+ ])
2515
+ ];
2506
2516
  const change = {
2507
2517
  action: "enable_workspace",
2508
2518
  domain,
2509
2519
  grantRevision: settings.grantRevision,
2510
2520
  ...settings.connectionId ? { connectionId: settings.connectionId } : {},
2511
2521
  verificationEmail: email,
2512
- ...requestedScopes?.includes(GOOGLE_WORKSPACE_BOOKING_SCOPE) ? { requestedScopes } : {}
2522
+ ...requestedScopes.length > 1 ? { requestedScopes } : {}
2513
2523
  };
2514
2524
  if (options.dryRun) return change;
2515
2525
  return client.changeCalendarDelegation(change);
@@ -3064,6 +3074,8 @@ function diffPlayRunStreamEvents(input) {
3064
3074
  var RUN_WATCH_POLL_INTERVAL_MS = 2e3;
3065
3075
  var RUN_WATCH_STARTUP_POLL_INTERVAL_MS = 300;
3066
3076
  var RUN_WATCH_STARTUP_WINDOW_MS = 6e3;
3077
+ var RUN_WATCH_INTERACTIVE_POLL_INTERVAL_MS = 500;
3078
+ var RUN_WATCH_INTERACTIVE_WINDOW_MS = 3e4;
3067
3079
  var RUN_WATCH_SERVER_WAIT_MS = 0;
3068
3080
  var RUN_WATCH_SERVER_WAIT_FROM_START = false;
3069
3081
  var TERMINAL_LOG_PROJECTION_RETRY_LIMIT = 3;
@@ -3163,9 +3175,11 @@ async function* watchRunEvents(options) {
3163
3175
  while (!signal?.aborted) {
3164
3176
  const pollStartedAt = Date.now();
3165
3177
  const poll = ++pollCount;
3166
- const pastStartup = pollStartedAt - watchStartedAt >= RUN_WATCH_STARTUP_WINDOW_MS;
3178
+ const watchedMs = pollStartedAt - watchStartedAt;
3179
+ const pastStartup = watchedMs >= RUN_WATCH_STARTUP_WINDOW_MS;
3180
+ const pastInteractive = watchedMs >= RUN_WATCH_INTERACTIVE_WINDOW_MS;
3167
3181
  const serverWaitMs = options.pollIntervalMs === void 0 && options.deferLogs && (pastStartup || RUN_WATCH_SERVER_WAIT_FROM_START) && RUN_WATCH_SERVER_WAIT_MS > 0 ? RUN_WATCH_SERVER_WAIT_MS : 0;
3168
- const pollIntervalMs = options.pollIntervalMs ?? (serverWaitMs > 0 ? 0 : pastStartup ? RUN_WATCH_POLL_INTERVAL_MS : RUN_WATCH_STARTUP_POLL_INTERVAL_MS);
3182
+ const pollIntervalMs = options.pollIntervalMs ?? (serverWaitMs > 0 ? 0 : pastInteractive ? RUN_WATCH_POLL_INTERVAL_MS : pastStartup ? RUN_WATCH_INTERACTIVE_POLL_INTERVAL_MS : RUN_WATCH_STARTUP_POLL_INTERVAL_MS);
3169
3183
  let snapshot;
3170
3184
  let terminalStatus;
3171
3185
  let responseStatus;
@@ -5113,6 +5127,13 @@ var DeeplineClient = class _DeeplineClient {
5113
5127
  );
5114
5128
  params.set("node", node);
5115
5129
  }
5130
+ if (options.steps) {
5131
+ if (!playName)
5132
+ throw new Error("runs.list options.steps requires options.play.");
5133
+ if (node)
5134
+ throw new Error("runs.list options.steps cannot be combined with node.");
5135
+ params.set("steps", "true");
5136
+ }
5116
5137
  if (typeof options.limit === "number" && Number.isFinite(options.limit)) {
5117
5138
  params.set("limit", String(Math.max(1, Math.floor(options.limit))));
5118
5139
  }
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
49
49
  // getters keep their established compatibility behavior.
50
50
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
51
51
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
52
- version: "0.3.545",
52
+ version: "0.3.547",
53
53
  updateSummary: {
54
54
  introducedIn: "0.3.90",
55
55
  summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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; }
2
2
 
3
- var _chunkG5TV6WLVjs = require('./chunk-G5TV6WLV.js');
3
+ var _chunkGJOGFWX3js = require('./chunk-GJOGFWX3.js');
4
4
 
5
5
  // src/cli/feedback-preferences.ts
6
6
 
@@ -57,7 +57,7 @@ function rejectRestrictedFeedback(options) {
57
57
  const code = restriction === "off" ? "FEEDBACK_DISABLED" : "FEEDBACK_APPROVAL_REQUIRED";
58
58
  const message = restriction === "off" ? 'Feedback is in mode "off". Do not ask the user if they want to send feedback. Use --requested only if they explicitly request it without being prompted.' : "Ask the user if they wish to send feedback. If they agree, rerun the send command with --requested. To change the setting, run deepline settings feedback --help. Agents must get user approval before turning feedback on.";
59
59
  if (options.json) {
60
- _chunkG5TV6WLVjs.printCommandEnvelope.call(void 0,
60
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
61
61
  { ok: false, code, exitCode: 2, message },
62
62
  { json: true }
63
63
  );
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkG5TV6WLVjs = require('./chunk-G5TV6WLV.js');
3
+ var _chunkGJOGFWX3js = require('./chunk-GJOGFWX3.js');
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  var _commander = require('commander');
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
33
33
  sinceStartMs: now - cliTraceStartedAt,
34
34
  ...event
35
35
  };
36
- _chunkG5TV6WLVjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
36
+ _chunkGJOGFWX3js.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
37
37
  `);
38
38
  }
39
39
  async function traceCliSpan(phase, fields, run) {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  PlayClient
3
- } from "./chunk-GWDPNOA7.mjs";
3
+ } from "./chunk-XMBVHJPR.mjs";
4
4
  import {
5
5
  HttpClient,
6
6
  resolveConfig
7
- } from "./chunk-7MFATEUC.mjs";
7
+ } from "./chunk-GPAWLXW3.mjs";
8
8
 
9
9
  // src/plays/local-play-execution.ts
10
10
  function importedNodes(graph) {
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
 
10
- var _chunk4JQEAYN3js = require('./chunk-4JQEAYN3.js');
10
+ var _chunkPVQCX6KQjs = require('./chunk-PVQCX6KQ.js');
11
11
  require('./chunk-UV4RU2TE.js');
12
12
  require('./chunk-R7J7CJPZ.js');
13
13
  require('./chunk-YGCKMI5P.js');
@@ -21,4 +21,4 @@ require('./chunk-COGTRVWW.js');
21
21
 
22
22
 
23
23
 
24
- exports.CLI_DOC_SURFACE = _chunk4JQEAYN3js.CLI_DOC_SURFACE; exports.COMMAND_DOCS = _chunk4JQEAYN3js.COMMAND_DOCS; exports.PLAY_RUNTIME_PRICING_NOTE = _chunk4JQEAYN3js.PLAY_RUNTIME_PRICING_NOTE; exports.commandDocKey = _chunk4JQEAYN3js.commandDocKey; exports.helpDetailFromArgv = _chunk4JQEAYN3js.helpDetailFromArgv; exports.renderActionExplanation = _chunk4JQEAYN3js.renderActionExplanation; exports.renderCommandExplanation = _chunk4JQEAYN3js.renderCommandExplanation; exports.renderDocText = _chunk4JQEAYN3js.renderDocText;
24
+ exports.CLI_DOC_SURFACE = _chunkPVQCX6KQjs.CLI_DOC_SURFACE; exports.COMMAND_DOCS = _chunkPVQCX6KQjs.COMMAND_DOCS; exports.PLAY_RUNTIME_PRICING_NOTE = _chunkPVQCX6KQjs.PLAY_RUNTIME_PRICING_NOTE; exports.commandDocKey = _chunkPVQCX6KQjs.commandDocKey; exports.helpDetailFromArgv = _chunkPVQCX6KQjs.helpDetailFromArgv; exports.renderActionExplanation = _chunkPVQCX6KQjs.renderActionExplanation; exports.renderCommandExplanation = _chunkPVQCX6KQjs.renderCommandExplanation; exports.renderDocText = _chunkPVQCX6KQjs.renderDocText;
@@ -7,7 +7,7 @@ import {
7
7
  renderActionExplanation,
8
8
  renderCommandExplanation,
9
9
  renderDocText
10
- } from "./chunk-Y3T5GWYK.mjs";
10
+ } from "./chunk-RMCCB3XY.mjs";
11
11
  import "./chunk-NIPLY25A.mjs";
12
12
  import "./chunk-5LUF4LAR.mjs";
13
13
  import "./chunk-7I4B6V2S.mjs";
@@ -2,16 +2,16 @@ import {
2
2
  CONCURRENT_RUNS_HELP_COMMANDS,
3
3
  concurrentRunsHelpStatus,
4
4
  concurrentRunsLine
5
- } from "./chunk-LWPFMYSO.mjs";
6
- import "./chunk-Z7QM244Q.mjs";
5
+ } from "./chunk-G6XTCG3J.mjs";
6
+ import "./chunk-CKIRKYW7.mjs";
7
7
  import "./chunk-NIPLY25A.mjs";
8
- import "./chunk-JL5JU3LD.mjs";
9
- import "./chunk-7MFATEUC.mjs";
10
- import "./chunk-3M2QH3KA.mjs";
11
- import "./chunk-CQBIO6HW.mjs";
8
+ import "./chunk-TNJG4ZPN.mjs";
9
+ import "./chunk-GPAWLXW3.mjs";
10
+ import "./chunk-DJI5CLLW.mjs";
11
+ import "./chunk-NURW5XH4.mjs";
12
12
  import "./chunk-DLIRSHV6.mjs";
13
13
  import "./chunk-JL2OTMSG.mjs";
14
- import "./chunk-52C6W7FG.mjs";
14
+ import "./chunk-XNTDTAKC.mjs";
15
15
  import "./chunk-WZYKRD7T.mjs";
16
16
  import "./chunk-KRD6H754.mjs";
17
17
  export {