deepline 0.3.546 → 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 (202) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +13 -0
  2. package/dist/bundling-sources/sdk/src/index.ts +7 -1
  3. package/dist/bundling-sources/sdk/src/integrations.ts +17 -7
  4. package/dist/bundling-sources/sdk/src/play.ts +71 -0
  5. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  6. package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +13 -4
  7. package/dist/bundling-sources/sdk/src/types.ts +33 -0
  8. package/dist/bundling-sources/shared_libs/integration-contracts/calendar-delegation.ts +7 -0
  9. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +2 -0
  10. package/dist/bundling-sources/shared_libs/monitors/tracking-provider-guidance.ts +1 -0
  11. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +19 -1
  12. package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +17 -2
  13. package/dist/bundling-sources/shared_libs/play-runtime/async-operation.ts +57 -5
  14. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +295 -52
  15. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +10 -1
  16. package/dist/bundling-sources/shared_libs/play-runtime/docflow-decision-tracker.ts +135 -0
  17. package/dist/bundling-sources/shared_libs/play-runtime/docflow-fail-open.ts +177 -0
  18. package/dist/bundling-sources/shared_libs/play-runtime/docflow-node-io.ts +99 -2
  19. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +16 -10
  20. package/dist/bundling-sources/shared_libs/play-runtime/fenced-call-diagnostics.ts +211 -0
  21. package/dist/bundling-sources/shared_libs/play-runtime/runtime-capacity-policy.ts +52 -14
  22. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +21 -2
  23. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +18 -0
  24. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +68 -0
  25. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +11 -3
  26. package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +9 -1
  27. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +48 -0
  28. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +6 -1
  29. package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +716 -51
  30. package/dist/bundling-sources/shared_libs/plays/docflow-decision-arms.ts +146 -0
  31. package/dist/bundling-sources/shared_libs/plays/docflow-flow-order.ts +94 -0
  32. package/dist/bundling-sources/shared_libs/plays/docflow-unreached-reason.ts +10 -1
  33. package/dist/bundling-sources/shared_libs/plays/docflow.ts +787 -117
  34. package/dist/bundling-sources/shared_libs/plays/share/static-pipeline-summary.ts +8 -2
  35. package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +6 -0
  36. package/dist/bundling-sources/shared_libs/plays/trigger-config-contract.ts +13 -0
  37. package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +25 -0
  38. package/dist/bundling-sources/shared_libs/security/secret-redaction.ts +56 -0
  39. package/dist/cli/auth-AC5277PI.js +43 -0
  40. package/dist/cli/{auth-KFWG72AZ.mjs → auth-WJEY4IDX.mjs} +5 -5
  41. package/dist/cli/{billing-OQVOAZ4S.js → billing-IJITDDRQ.js} +96 -96
  42. package/dist/cli/{billing-MMZ336HO.mjs → billing-PHJUDYF3.mjs} +10 -10
  43. package/dist/cli/{chunk-TBWYZOSV.js → chunk-2AHY47SI.js} +3 -3
  44. package/dist/cli/{chunk-MXQP7CXZ.js → chunk-2HPTLBNB.js} +3 -3
  45. package/dist/cli/{chunk-TI6DTURF.js → chunk-4WAM6TLD.js} +7 -1
  46. package/dist/cli/{chunk-JARZ47OP.mjs → chunk-56MEAGWA.mjs} +2 -2
  47. package/dist/cli/{chunk-GYTSDSQD.mjs → chunk-5SFHPMBY.mjs} +11 -11
  48. package/dist/cli/{chunk-Z3UEBFIN.js → chunk-ABLTVG3J.js} +41 -41
  49. package/dist/cli/{chunk-LX2TC3HO.mjs → chunk-AEQ5VWZ5.mjs} +4 -4
  50. package/dist/cli/{chunk-MI7X6V6V.mjs → chunk-CKIRKYW7.mjs} +3 -3
  51. package/dist/cli/{chunk-2JHYYB3F.js → chunk-CSPHSNBW.js} +3 -3
  52. package/dist/cli/{chunk-IVWU7SJC.js → chunk-D6OIEH47.js} +5 -5
  53. package/dist/cli/{chunk-KUK7ARXA.mjs → chunk-DIUNDLSX.mjs} +2 -2
  54. package/dist/cli/{chunk-RO66FPTS.mjs → chunk-DJI5CLLW.mjs} +1 -1
  55. package/dist/cli/{chunk-LIJKRDDG.js → chunk-DZC7LMYM.js} +6 -6
  56. package/dist/cli/{chunk-UQJBV5PM.js → chunk-E2OIYPB4.js} +10 -10
  57. package/dist/cli/{chunk-JA633HRV.mjs → chunk-ECUD4QPD.mjs} +3 -3
  58. package/dist/cli/{chunk-VPERQ3U6.mjs → chunk-ESCVHDNY.mjs} +5 -5
  59. package/dist/cli/{chunk-JVOUQFHT.js → chunk-FFBXLFKV.js} +1 -1
  60. package/dist/cli/{chunk-3DUNNZB6.mjs → chunk-FMQXAOVE.mjs} +4 -4
  61. package/dist/cli/{chunk-HXIR3VQL.mjs → chunk-FZHMNK6F.mjs} +7 -1
  62. package/dist/cli/{chunk-PU3ZAG6V.mjs → chunk-G6KW764N.mjs} +1 -1
  63. package/dist/cli/{chunk-EEG46QZY.mjs → chunk-G6XTCG3J.mjs} +2 -2
  64. package/dist/cli/{chunk-EEJHB76U.js → chunk-GIGAYLY6.js} +12 -12
  65. package/dist/cli/{chunk-BLYW6FFB.js → chunk-GJA2PRHJ.js} +2 -2
  66. package/dist/cli/{chunk-H7Q5IDO3.js → chunk-GJOGFWX3.js} +20 -20
  67. package/dist/cli/{chunk-6Y5TU3R7.mjs → chunk-GPAWLXW3.mjs} +1 -1
  68. package/dist/cli/{chunk-5W4ENHWM.js → chunk-GZFZZQL4.js} +285 -264
  69. package/dist/cli/{chunk-P7A3H6G5.mjs → chunk-HARZ4AAX.mjs} +1 -1
  70. package/dist/cli/{chunk-MEGHIX4M.js → chunk-HFIFKP3A.js} +5 -5
  71. package/dist/cli/{chunk-LHE2TSV6.mjs → chunk-IGAK22XO.mjs} +1 -1
  72. package/dist/cli/{chunk-VTK3HGMN.mjs → chunk-IKYN6PLO.mjs} +5 -5
  73. package/dist/cli/{chunk-UREAIHUU.mjs → chunk-ITLZBDSR.mjs} +3 -3
  74. package/dist/cli/{chunk-6LG7MLJ2.js → chunk-IVFFCAV2.js} +44 -44
  75. package/dist/cli/{chunk-SYTWWVIQ.js → chunk-K3GMDSUX.js} +5 -5
  76. package/dist/cli/{chunk-WKHPLBJK.js → chunk-L5J6UJ2X.js} +15 -15
  77. package/dist/cli/{chunk-X5KOHDJN.mjs → chunk-L6QE2XVM.mjs} +1 -1
  78. package/dist/cli/{chunk-SH32HL7I.js → chunk-LMLSOHTU.js} +53 -53
  79. package/dist/cli/{chunk-JCWNF44W.js → chunk-MBQELFL7.js} +22 -22
  80. package/dist/cli/{chunk-Z7SXGOIQ.mjs → chunk-MF7PCM6C.mjs} +1 -1
  81. package/dist/cli/{chunk-F2VEFMU5.js → chunk-MO7TGNXB.js} +13 -13
  82. package/dist/cli/{chunk-7ZW67ME6.mjs → chunk-MOZEAGSR.mjs} +1 -1
  83. package/dist/cli/{chunk-5VNQMVCU.js → chunk-N63U5CRG.js} +26 -26
  84. package/dist/cli/{chunk-JCH4UNNS.js → chunk-NBYFQZ6O.js} +2 -2
  85. package/dist/cli/{chunk-BTFUAGHC.js → chunk-OVYXYTEP.js} +16 -16
  86. package/dist/cli/{chunk-J65HJCJO.mjs → chunk-PBMO36BP.mjs} +2 -2
  87. package/dist/cli/{chunk-F5YQXCP3.js → chunk-PVQCX6KQ.js} +50 -7
  88. package/dist/cli/{chunk-K2XELBPF.mjs → chunk-QLE3QKJ2.mjs} +5 -5
  89. package/dist/cli/{chunk-VAT2SXFF.js → chunk-QU3K3IY6.js} +12 -12
  90. package/dist/cli/{chunk-JYG4XZLT.js → chunk-REAFIEV5.js} +99 -99
  91. package/dist/cli/{chunk-5OEFXAKP.mjs → chunk-RMCCB3XY.mjs} +50 -7
  92. package/dist/cli/{chunk-HJR2DDJS.mjs → chunk-RXRC2COC.mjs} +2 -2
  93. package/dist/cli/{chunk-4AZLGNXV.js → chunk-SAJWYN4B.js} +4 -4
  94. package/dist/cli/{chunk-VXTTAYOT.mjs → chunk-TNJG4ZPN.mjs} +3 -3
  95. package/dist/cli/{chunk-PMDHY2YK.js → chunk-VNOQEDVC.js} +7 -7
  96. package/dist/cli/{chunk-GOOF7E2B.mjs → chunk-VPF54TXQ.mjs} +5 -5
  97. package/dist/cli/{chunk-2HSZCQMT.mjs → chunk-WYT3H6JD.mjs} +1 -1
  98. package/dist/cli/{chunk-OAKWSLKS.mjs → chunk-XMBVHJPR.mjs} +28 -7
  99. package/dist/cli/{chunk-7MY7KWJS.mjs → chunk-XNTDTAKC.mjs} +1 -1
  100. package/dist/cli/{chunk-5V7NZKGG.js → chunk-YURGAKI3.js} +2 -2
  101. package/dist/cli/{chunk-ND7SFRQL.js → chunk-YVKLF7RW.js} +2 -2
  102. package/dist/cli/{chunk-6FBDTYR2.mjs → chunk-Z2YGQZWV.mjs} +2 -2
  103. package/dist/cli/command-docs.js +2 -2
  104. package/dist/cli/command-docs.mjs +1 -1
  105. package/dist/cli/{concurrent-runs-help-C2O5YKQA.mjs → concurrent-runs-help-ZNGP563R.mjs} +6 -6
  106. package/dist/cli/concurrent-runs-help-ZYISYOQA.js +21 -0
  107. package/dist/cli/{csv-Z4DNGR54.mjs → csv-VAHQHYYV.mjs} +4 -4
  108. package/dist/cli/{csv-MJDNOIQJ.js → csv-X6D4ZELE.js} +13 -13
  109. package/dist/cli/{db-4RL2BNOF.mjs → db-4G4S2VOV.mjs} +7 -7
  110. package/dist/cli/{db-S5QVPK5E.js → db-YA5ZGVEX.js} +28 -28
  111. package/dist/cli/{describe-L4P5SZLQ.mjs → describe-EVXEM2S6.mjs} +19 -19
  112. package/dist/cli/describe-GYYSLZLV.js +50 -0
  113. package/dist/cli/describe-core.d.mts +4 -4
  114. package/dist/cli/describe-core.d.ts +4 -4
  115. package/dist/cli/{executions-MFZ2Z36O.js → executions-5YC7ABF6.js} +9 -9
  116. package/dist/cli/{executions-RR6O3XK5.mjs → executions-HR6CTN5M.mjs} +7 -7
  117. package/dist/cli/{feedback-EQBQ3ABB.mjs → feedback-GEU5SPLR.mjs} +6 -6
  118. package/dist/cli/{feedback-YDAG7VH2.js → feedback-MJHSYLFF.js} +14 -14
  119. package/dist/cli/git-FZIQZNI4.js +25 -0
  120. package/dist/cli/{git-YGLCCU35.mjs → git-NPFF6QUS.mjs} +5 -5
  121. package/dist/cli/index.js +146 -146
  122. package/dist/cli/index.mjs +45 -45
  123. package/dist/cli/{integrations-IQXYMRMW.js → integrations-YPHFI77G.js} +19 -17
  124. package/dist/cli/{integrations-FWYXSBHK.mjs → integrations-Z7EGVBHF.mjs} +11 -9
  125. package/dist/cli/{legacy-noops-U7LI7UXC.js → legacy-noops-246E3KKG.js} +9 -9
  126. package/dist/cli/{legacy-noops-I4YRIX5F.mjs → legacy-noops-5IYCFWWX.mjs} +6 -6
  127. package/dist/cli/{mcp-QJBMB6VS.mjs → mcp-WUYGZXPI.mjs} +4 -4
  128. package/dist/cli/{mcp-GX2UKKWU.js → mcp-YTYTW67G.js} +24 -24
  129. package/dist/cli/{monitors-Z6EGKYJP.mjs → monitors-73DQKCU7.mjs} +26 -8
  130. package/dist/cli/{monitors-WCJYINGX.js → monitors-SA6ILD6Z.js} +119 -101
  131. package/dist/cli/{org-NNHICBR2.mjs → org-WVQRB2KX.mjs} +7 -7
  132. package/dist/cli/{org-7SKG423N.js → org-X7ELDV7B.js} +89 -89
  133. package/dist/cli/{play-CXDFPJ7Z.mjs → play-QI6V2EUQ.mjs} +295 -67
  134. package/dist/cli/{play-4P4DTG3Q.js → play-QTYOAJPE.js} +897 -669
  135. package/dist/cli/{providers-VQLQ7DTR.mjs → providers-DPVMVDS4.mjs} +7 -7
  136. package/dist/cli/{providers-EE4TUE3O.js → providers-XXFLVREV.js} +10 -10
  137. package/dist/cli/{quickstart-RVXHK4WA.js → quickstart-33ISXQJU.js} +6 -6
  138. package/dist/cli/{quickstart-IYNJRB5G.mjs → quickstart-YWGNHULM.mjs} +4 -4
  139. package/dist/cli/{run-R3F34KU3.js → run-BWHZXLTD.js} +45 -45
  140. package/dist/cli/{run-VBQPPMEX.mjs → run-J6FCAKQC.mjs} +25 -25
  141. package/dist/cli/search-JCWJX2XD.js +32 -0
  142. package/dist/cli/{search-B7R62HX5.mjs → search-Z3UU3WBB.mjs} +8 -8
  143. package/dist/cli/{search-output-LNQQXIGZ.mjs → search-output-OJYY4J7E.mjs} +4 -4
  144. package/dist/cli/{search-output-LWHWEPOT.js → search-output-YIPV74ME.js} +6 -6
  145. package/dist/cli/{secrets-QBOZ7WTD.js → secrets-UXRJCEN4.js} +16 -16
  146. package/dist/cli/{secrets-NM3VAJLO.mjs → secrets-YZZN2WST.mjs} +7 -7
  147. package/dist/cli/{sessions-R5BSIJ4I.mjs → sessions-ITCGPD7Z.mjs} +6 -6
  148. package/dist/cli/sessions-NA4SJH6Q.js +22 -0
  149. package/dist/cli/{settings-POYWKNRD.js → settings-LAFYMILP.js} +86 -86
  150. package/dist/cli/{settings-S4PN7WLY.mjs → settings-ZP2LSVNM.mjs} +13 -13
  151. package/dist/cli/{setup-VHB4Z654.js → setup-4AL3XYM5.js} +49 -49
  152. package/dist/cli/{setup-PFLXVBTL.mjs → setup-WEQAQSYC.mjs} +9 -9
  153. package/dist/cli/{skills-W2TELEU7.mjs → skills-NQH4HFW2.mjs} +7 -7
  154. package/dist/cli/skills-XZ4Y6SZ7.js +36 -0
  155. package/dist/cli/{tools-M4FA6N3Y.mjs → tools-CXK2GSI4.mjs} +18 -18
  156. package/dist/cli/tools-WJQ6Y7E4.js +57 -0
  157. package/dist/cli/{update-W7LIHEA7.mjs → update-3ROF3Z75.mjs} +9 -9
  158. package/dist/cli/update-ZLRLTBRD.js +34 -0
  159. package/dist/cli/{views-KTVPV6UP.mjs → views-AOUHVGV2.mjs} +7 -7
  160. package/dist/cli/{views-DJXAGD7V.js → views-XJFO5CEH.js} +22 -22
  161. package/dist/cli/{workflow-NVZDJKH2.js → workflow-GY3DBHXX.js} +18 -18
  162. package/dist/cli/{workflow-LGKCRODX.mjs → workflow-KBS2QJK6.mjs} +8 -8
  163. package/dist/{client-Tp1LSULB.d.mts → client-D1uWA2Vc.d.mts} +1 -1
  164. package/dist/{client-CCyWJqAI.d.ts → client-Hz7SsBXs.d.ts} +1 -1
  165. package/dist/{client-core-BpYiYEfu.d.ts → client-core-D3Ad7Flt.d.ts} +554 -504
  166. package/dist/{client-core-D8eCZz3O.d.mts → client-core-Db_e63Hb.d.mts} +554 -504
  167. package/dist/{compiler-manifest-EBWEUj0b.d.ts → compiler-manifest-BqwVrOri.d.mts} +38 -18
  168. package/dist/{compiler-manifest-EBWEUj0b.d.mts → compiler-manifest-BqwVrOri.d.ts} +38 -18
  169. package/dist/{errors-CParKUQR.d.mts → errors-BU8FB99X.d.mts} +1 -1
  170. package/dist/{errors-Qt0OTA7_.d.ts → errors-DfVN_FUG.d.ts} +1 -1
  171. package/dist/{index-CoqDkIw0.d.ts → index-BGnvtYGc.d.ts} +6 -1
  172. package/dist/{index-BMUVCNp7.d.mts → index-DjZgwpGw.d.mts} +6 -1
  173. package/dist/index.d.mts +28 -8
  174. package/dist/index.d.ts +28 -8
  175. package/dist/index.js +64 -39
  176. package/dist/index.mjs +32 -7
  177. package/dist/install-integrity.json +133 -128
  178. package/dist/plays/bundle-play-file.d.mts +3 -3
  179. package/dist/plays/bundle-play-file.d.ts +3 -3
  180. package/dist/plays/bundle-play-file.mjs +620 -124
  181. package/dist/plays/play-description.d.mts +3 -3
  182. package/dist/plays/play-description.d.ts +3 -3
  183. package/dist/plays/run-request.d.mts +2 -2
  184. package/dist/plays/run-request.d.ts +2 -2
  185. package/dist/release.d.mts +1 -1
  186. package/dist/release.d.ts +1 -1
  187. package/dist/release.js +2 -2
  188. package/dist/release.mjs +1 -1
  189. package/dist/server.d.mts +4 -4
  190. package/dist/server.d.ts +4 -4
  191. package/dist/server.js +6 -6
  192. package/dist/server.mjs +4 -4
  193. package/package.json +1 -1
  194. package/dist/cli/auth-W32GMYND.js +0 -43
  195. package/dist/cli/concurrent-runs-help-6QT7ZR4W.js +0 -21
  196. package/dist/cli/describe-VLU2LUDJ.js +0 -50
  197. package/dist/cli/git-E6W44F5M.js +0 -25
  198. package/dist/cli/search-UUVFXZRA.js +0 -32
  199. package/dist/cli/sessions-K3PD73Q2.js +0 -22
  200. package/dist/cli/skills-QNE2EYT3.js +0 -36
  201. package/dist/cli/tools-3RLI4HGF.js +0 -57
  202. package/dist/cli/update-UT6KIW2W.js +0 -34
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2;require('./chunk-I5YZLGMG.js');
2
2
 
3
3
 
4
- var _chunkSYTWWVIQjs = require('./chunk-SYTWWVIQ.js');
5
- require('./chunk-5W4ENHWM.js');
6
- require('./chunk-TI6DTURF.js');
4
+ var _chunkK3GMDSUXjs = require('./chunk-K3GMDSUX.js');
5
+ require('./chunk-GZFZZQL4.js');
6
+ require('./chunk-4WAM6TLD.js');
7
7
  require('./chunk-SL6MYJYM.js');
8
8
  require('./chunk-PMH4GLMD.js');
9
9
  require('./chunk-XDVT3GOM.js');
@@ -18,15 +18,15 @@ require('./chunk-UNEMDKXN.js');
18
18
  var _chunkU2LVWCTDjs = require('./chunk-U2LVWCTD.js');
19
19
 
20
20
 
21
- var _chunkTBWYZOSVjs = require('./chunk-TBWYZOSV.js');
21
+ var _chunk2AHY47SIjs = require('./chunk-2AHY47SI.js');
22
22
 
23
23
 
24
24
 
25
25
 
26
26
 
27
- var _chunkH7Q5IDO3js = require('./chunk-H7Q5IDO3.js');
28
- require('./chunk-MXQP7CXZ.js');
29
- require('./chunk-4AZLGNXV.js');
27
+ var _chunkGJOGFWX3js = require('./chunk-GJOGFWX3.js');
28
+ require('./chunk-2HPTLBNB.js');
29
+ require('./chunk-SAJWYN4B.js');
30
30
 
31
31
 
32
32
  var _chunkEITMD3A5js = require('./chunk-EITMD3A5.js');
@@ -34,7 +34,7 @@ require('./chunk-XNYIZMNQ.js');
34
34
 
35
35
 
36
36
  var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
37
- require('./chunk-JVOUQFHT.js');
37
+ require('./chunk-FFBXLFKV.js');
38
38
  require('./chunk-OG64RBAC.js');
39
39
  require('./chunk-COGTRVWW.js');
40
40
 
@@ -112,10 +112,10 @@ function reportMonitorsFailure(error, options) {
112
112
  const exitCode = monitorsErrorExitCode(error);
113
113
  const next = monitorsFailureNextCommand(error, exitCode, options);
114
114
  const retrySafe = exitCode === 5 && _optionalChain([options, 'optionalAccess', _9 => _9.retryCommand]) !== void 0;
115
- const wantsJson = _chunkH7Q5IDO3js.shouldEmitJson.call(void 0, process.argv.includes("--json"));
115
+ const wantsJson = _chunkGJOGFWX3js.shouldEmitJson.call(void 0, process.argv.includes("--json"));
116
116
  if (wantsJson) {
117
- const payload = _chunkH7Q5IDO3js.errorToJsonPayload.call(void 0, error);
118
- _chunkH7Q5IDO3js.printJson.call(void 0, {
117
+ const payload = _chunkGJOGFWX3js.errorToJsonPayload.call(void 0, error);
118
+ _chunkGJOGFWX3js.printJson.call(void 0, {
119
119
  ok: false,
120
120
  exitCode,
121
121
  ...next ? { next } : {},
@@ -535,14 +535,14 @@ Preview the plan first with:
535
535
  );
536
536
  }
537
537
  async function handleMonitorsStatus(options) {
538
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.status();
538
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().monitors.status();
539
539
  const hasAccess = payload.has_access === true;
540
540
  const reason = typeof payload.reason === "string" && payload.reason.trim() ? payload.reason.trim() : void 0;
541
541
  const text = hasAccess ? `\u2713 You have access to Deepline Monitors${reason ? `
542
542
  ${reason}` : ""}
543
543
  ` : `\u2717 No access to Deepline Monitors${reason ? ` \u2014 ${reason}` : ""}
544
544
  `;
545
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
545
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
546
546
  { has_access: hasAccess, ...reason ? { reason } : {} },
547
547
  { json: options.json, text }
548
548
  );
@@ -608,14 +608,14 @@ async function handleMonitorsAvailable(toolId, options) {
608
608
  }
609
609
  }
610
610
  const tool = _nullishCoalesce(toolId, () => ( options.tool));
611
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.available(tool, {
611
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().monitors.available(tool, {
612
612
  ...options.provider ? { provider: options.provider } : {},
613
613
  ...options.search ? { search: options.search } : {},
614
614
  ...options.limit ? { limit: options.limit } : {},
615
615
  ...options.full ? { full: true } : {},
616
616
  ...options.compact ? { compact: true } : {}
617
617
  });
618
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, {
618
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, payload, {
619
619
  json: options.json,
620
620
  // Human list view shows id + name + deployed_count ("deployed: N") so
621
621
  // can-deploy vs already-deployed is visible in one view. Describing a
@@ -722,14 +722,14 @@ async function handleMonitorsList(options) {
722
722
  "`--compact` is deprecated and now does nothing; returning the complete monitor records.\n"
723
723
  );
724
724
  }
725
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.list({
725
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().monitors.list({
726
726
  ...state ? { state } : {},
727
727
  ...options.status ? { status: options.status } : {},
728
728
  ...options.limit ? { limit: options.limit } : {},
729
729
  ...options.cursor ? { cursor: options.cursor } : {},
730
730
  ...options.includeConsumers ? { includeConsumers: true } : {}
731
731
  });
732
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, {
732
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, payload, {
733
733
  json: options.json,
734
734
  text: renderDeployedListText(
735
735
  payload,
@@ -820,7 +820,7 @@ function renderMonitorLedgerText(payload) {
820
820
  var LEDGER_SORTS = ["recent", "installed", "name", "findings"];
821
821
  var LEDGER_WINDOWS = ["1d", "7d", "30d", "90d", "1y"];
822
822
  async function handleMonitorsLedger(key, options) {
823
- const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
823
+ const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
824
824
  if (options.findings) {
825
825
  if (!key) {
826
826
  throw new MonitorsUsageError(
@@ -830,12 +830,12 @@ async function handleMonitorsLedger(key, options) {
830
830
  const payload2 = await client.monitors.ledgerFindings(key, {
831
831
  ...options.cursor ? { cursor: options.cursor } : {}
832
832
  });
833
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload2, { json: options.json });
833
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, payload2, { json: options.json });
834
834
  return;
835
835
  }
836
836
  if (key) {
837
837
  const payload2 = await client.monitors.ledgerGet(key);
838
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload2, { json: options.json });
838
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, payload2, { json: options.json });
839
839
  return;
840
840
  }
841
841
  if (options.sort !== void 0 && !LEDGER_SORTS.includes(options.sort)) {
@@ -859,7 +859,7 @@ async function handleMonitorsLedger(key, options) {
859
859
  ...options.limit ? { limit: options.limit } : {},
860
860
  ...options.cursor ? { cursor: options.cursor } : {}
861
861
  });
862
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, {
862
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, payload, {
863
863
  json: options.json,
864
864
  text: renderMonitorLedgerText(payload)
865
865
  });
@@ -871,10 +871,10 @@ async function handleMonitorsCheck(definition, options) {
871
871
  argLabel: "<definition>",
872
872
  command: "deepline monitors check"
873
873
  });
874
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.check(
874
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().monitors.check(
875
875
  body
876
876
  );
877
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, { json: options.json });
877
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, payload, { json: options.json });
878
878
  }
879
879
  function previewText(value) {
880
880
  return typeof value === "string" && value.trim() ? value.trim() : "-";
@@ -932,22 +932,22 @@ async function handleMonitorsPreview(definition, options) {
932
932
  if (limit !== void 0 && !Number.isInteger(limit)) {
933
933
  throw new MonitorsUsageError("--limit must be a whole number from 1 to 3.");
934
934
  }
935
- const wantsJson = _chunkH7Q5IDO3js.shouldEmitJson.call(void 0, options.json);
935
+ const wantsJson = _chunkGJOGFWX3js.shouldEmitJson.call(void 0, options.json);
936
936
  if (options.idempotencyKey === void 0 && wantsJson) {
937
937
  throw new MonitorsUsageError(
938
938
  "--json requires --idempotency-key <key>. Choose a new key for each new preview and keep it: rerunning with the same key returns the result without paying again."
939
939
  );
940
940
  }
941
941
  const idempotencyKey = _nullishCoalesce(options.idempotencyKey, () => ( `monitor-preview-${_crypto.randomUUID.call(void 0, )}`));
942
- const progress = _chunkTBWYZOSVjs.createCliProgress.call(void 0, !wantsJson);
942
+ const progress = _chunk2AHY47SIjs.createCliProgress.call(void 0, !wantsJson);
943
943
  progress.phase(`Preview key: ${idempotencyKey}`);
944
944
  try {
945
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.preview(
945
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().monitors.preview(
946
946
  body,
947
947
  { idempotencyKey, ...limit === void 0 ? {} : { limit } }
948
948
  );
949
949
  progress.complete();
950
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, {
950
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, payload, {
951
951
  json: options.json,
952
952
  text: renderMonitorPreviewText(payload)
953
953
  });
@@ -992,7 +992,7 @@ async function handleMonitorsDeploy(definition, options) {
992
992
  argLabel: "<definition>",
993
993
  command: "deepline monitors deploy"
994
994
  });
995
- const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
995
+ const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
996
996
  const definitionArg = body;
997
997
  if (options.dryRun) {
998
998
  const payload2 = await client.monitors.deploy(definitionArg, {
@@ -1000,7 +1000,7 @@ async function handleMonitorsDeploy(definition, options) {
1000
1000
  });
1001
1001
  const valid = payload2.valid !== false;
1002
1002
  const hasIdentityConflict = Boolean(_optionalChain([asRecord, 'call', _39 => _39(payload2), 'optionalAccess', _40 => _40.identity_conflict]));
1003
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1003
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1004
1004
  { dry_run: true, ...payload2 },
1005
1005
  { json: options.json, text: renderMonitorDeployPlan(payload2) }
1006
1006
  );
@@ -1010,7 +1010,7 @@ async function handleMonitorsDeploy(definition, options) {
1010
1010
  return;
1011
1011
  }
1012
1012
  const payload = await client.monitors.deploy(definitionArg);
1013
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, {
1013
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, payload, {
1014
1014
  json: options.json,
1015
1015
  text: renderMonitorDeployCompletion(payload)
1016
1016
  });
@@ -1022,29 +1022,29 @@ async function handleMonitorsSync(definition, options) {
1022
1022
  argLabel: "<definition>",
1023
1023
  command: "deepline monitors sync"
1024
1024
  });
1025
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.sync(body, {
1025
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().monitors.sync(body, {
1026
1026
  ...options.dryRun ? { dryRun: true } : {},
1027
1027
  idempotencyKey: _nullishCoalesce(options.idempotencyKey, () => ( monitorJobIdempotencyKey("scalar-sync", void 0)))
1028
1028
  });
1029
1029
  if (options.dryRun) {
1030
1030
  const plan = payload;
1031
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1031
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1032
1032
  { dry_run: true, ...plan },
1033
1033
  { json: options.json, text: renderMonitorDeployPlan(plan) }
1034
1034
  );
1035
1035
  return;
1036
1036
  }
1037
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, {
1037
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, payload, {
1038
1038
  json: options.json,
1039
1039
  text: renderMonitorJob(payload)
1040
1040
  });
1041
1041
  }
1042
1042
  async function handleScalarMonitorLifecycle(action, key, options) {
1043
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors[action](key, {
1043
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().monitors[action](key, {
1044
1044
  ...options.dryRun ? { dryRun: true } : {},
1045
1045
  idempotencyKey: _nullishCoalesce(options.idempotencyKey, () => ( monitorJobIdempotencyKey(`${action}-${key}`, void 0)))
1046
1046
  });
1047
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, {
1047
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, payload, {
1048
1048
  json: options.json,
1049
1049
  text: options.dryRun ? void 0 : renderMonitorJob(payload)
1050
1050
  });
@@ -1133,11 +1133,11 @@ async function handleMonitorJobBatchDeploy(options, idempotencyKey) {
1133
1133
  lint.issues.filter((issue) => issue.severity === "error").map((issue) => `${issue.path || "batch"}: ${issue.message}`).join("; ")
1134
1134
  );
1135
1135
  }
1136
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.batch.deploy(
1136
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().monitors.batch.deploy(
1137
1137
  lint.normalized.monitors,
1138
1138
  { idempotencyKey }
1139
1139
  );
1140
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1140
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1141
1141
  {
1142
1142
  ...payload,
1143
1143
  idempotency_key: idempotencyKey,
@@ -1170,7 +1170,7 @@ async function handleNamedMonitorBatchSync(batchId, options) {
1170
1170
  );
1171
1171
  }
1172
1172
  if (options.dryRun) {
1173
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1173
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1174
1174
  {
1175
1175
  ok: true,
1176
1176
  dry_run: true,
@@ -1187,7 +1187,7 @@ async function handleNamedMonitorBatchSync(batchId, options) {
1187
1187
  "sync",
1188
1188
  options.idempotencyKey
1189
1189
  );
1190
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.batches.sync(
1190
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().monitors.batches.sync(
1191
1191
  batchId,
1192
1192
  lint.normalized.monitors,
1193
1193
  {
@@ -1195,14 +1195,14 @@ async function handleNamedMonitorBatchSync(batchId, options) {
1195
1195
  ...parsedGeneration === void 0 ? {} : { expectedGeneration: parsedGeneration }
1196
1196
  }
1197
1197
  );
1198
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1198
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1199
1199
  { ...payload, idempotency_key: idempotencyKey },
1200
1200
  { json: options.json, text: renderMonitorJob(payload) }
1201
1201
  );
1202
1202
  }
1203
1203
  async function handleNamedMonitorBatchLifecycle(batchId, intent, options) {
1204
1204
  if (options.dryRun) {
1205
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1205
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1206
1206
  {
1207
1207
  ok: true,
1208
1208
  dry_run: true,
@@ -1218,17 +1218,17 @@ async function handleNamedMonitorBatchLifecycle(batchId, intent, options) {
1218
1218
  intent,
1219
1219
  options.idempotencyKey
1220
1220
  );
1221
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.batches[intent](batchId, {
1221
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().monitors.batches[intent](batchId, {
1222
1222
  idempotencyKey
1223
1223
  });
1224
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1224
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1225
1225
  { ...payload, idempotency_key: idempotencyKey },
1226
1226
  { json: options.json, text: renderMonitorJob(payload) }
1227
1227
  );
1228
1228
  }
1229
1229
  async function handleNamedMonitorBatchGet(batchId, options) {
1230
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.batches.get(batchId);
1231
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, {
1230
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().monitors.batches.get(batchId);
1231
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, payload, {
1232
1232
  json: options.json,
1233
1233
  text: renderMonitorJob(payload)
1234
1234
  });
@@ -1242,7 +1242,7 @@ async function handleMonitorBatchLint(options) {
1242
1242
  const result = _chunkU2LVWCTDjs.lintMonitorBatchInput.call(void 0,
1243
1243
  readMonitorDefinitionsJsonFile(options.file)
1244
1244
  );
1245
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1245
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1246
1246
  {
1247
1247
  ok: !result.issues.some((issue) => issue.severity === "error"),
1248
1248
  ...result.normalized ? { normalized: result.normalized } : {},
@@ -1262,7 +1262,7 @@ async function handleMonitorFleetLint(options) {
1262
1262
  const result = _chunkWOQO3GV4js.lintMonitorFleetInput.call(void 0,
1263
1263
  readMonitorDefinitionsJsonFile(options.file)
1264
1264
  );
1265
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1265
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1266
1266
  {
1267
1267
  ok: !result.issues.some((issue) => issue.severity === "error"),
1268
1268
  ...result.normalized ? { normalized: result.normalized } : {},
@@ -1274,32 +1274,32 @@ async function handleMonitorFleetLint(options) {
1274
1274
  process.exitCode = 2;
1275
1275
  }
1276
1276
  async function handleMonitorJobGet(jobId, options) {
1277
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.jobs.get(jobId);
1278
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, {
1277
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().monitors.jobs.get(jobId);
1278
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, payload, {
1279
1279
  json: options.json,
1280
1280
  text: renderMonitorJob(payload)
1281
1281
  });
1282
1282
  }
1283
1283
  async function handleMonitorJobWait(jobId, options) {
1284
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.jobs.wait(jobId, {
1284
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().monitors.jobs.wait(jobId, {
1285
1285
  timeoutMs: fleetTimeoutMs(options.timeout),
1286
1286
  pollIntervalMs: FLEET_POLL_INTERVAL_MS
1287
1287
  });
1288
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, {
1288
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, payload, {
1289
1289
  json: options.json,
1290
1290
  text: renderMonitorJob(payload)
1291
1291
  });
1292
1292
  }
1293
1293
  async function handleMonitorJobLogs(jobId, options) {
1294
1294
  const limit = options.limit ? fleetIntegerOption(options.limit, "--limit") : void 0;
1295
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.jobs.logs(jobId, {
1295
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().monitors.jobs.logs(jobId, {
1296
1296
  ...limit === void 0 ? {} : { limit }
1297
1297
  });
1298
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, { json: options.json });
1298
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, payload, { json: options.json });
1299
1299
  }
1300
1300
  async function handleMonitorJobCancel(jobId, options) {
1301
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.jobs.cancel(jobId);
1302
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, {
1301
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().monitors.jobs.cancel(jobId);
1302
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, payload, {
1303
1303
  json: options.json,
1304
1304
  text: renderMonitorJob(payload)
1305
1305
  });
@@ -1491,6 +1491,20 @@ function renderFleetSync(payload, input) {
1491
1491
  return `${lines.join("\n")}
1492
1492
  `;
1493
1493
  }
1494
+ function fleetBillingTransitionLine(payload) {
1495
+ const transition = asRecord(payload.billing_transition);
1496
+ if (!transition) return null;
1497
+ const verb = asString(transition.kind) === "suspend" ? "stopping" : "restarting";
1498
+ const total = _nullishCoalesce(asFiniteNumber(transition.total), () => ( 0));
1499
+ const done = asFiniteNumber(transition.done);
1500
+ if (done === void 0) {
1501
+ return ` billing ${verb} ${total} monitors; per-Fleet progress is not tracked for a workspace billing operation`;
1502
+ }
1503
+ const blocked = _nullishCoalesce(asFiniteNumber(transition.blocked), () => ( 0));
1504
+ const startedAt = asString(transition.started_at);
1505
+ const operationId = asString(transition.operation_id);
1506
+ return ` billing ${verb} monitors: ${done} of ${total} done${blocked ? ` \xB7 ${blocked} blocked` : ""}${startedAt ? ` \xB7 since ${startedAt}` : ""}${operationId ? ` \xB7 operation ${operationId}` : ""}`;
1507
+ }
1494
1508
  function renderFleetGet(payload) {
1495
1509
  const id = _nullishCoalesce(asString(payload.id), () => ( "unknown"));
1496
1510
  const state = _nullishCoalesce(readMonitorState(payload), () => ( "unknown"));
@@ -1501,6 +1515,8 @@ function renderFleetGet(payload) {
1501
1515
  ` counts ${fleetCountsLine(payload)}`,
1502
1516
  ` generation ${_nullishCoalesce(asFiniteNumber(payload.generation), () => ( "unknown"))} \xB7 converged generation ${_nullishCoalesce(asFiniteNumber(payload.converged_generation), () => ( "none"))}`
1503
1517
  ];
1518
+ const billingTransition = fleetBillingTransitionLine(payload);
1519
+ if (billingTransition) lines.push(billingTransition);
1504
1520
  const boundPlays = Array.isArray(payload.bound_plays) ? payload.bound_plays.flatMap((value) => {
1505
1521
  const play = asRecord(value);
1506
1522
  return play ? [play] : [];
@@ -1625,7 +1641,7 @@ function renderFleetDeactivatePlan(payload, fleetId) {
1625
1641
  `;
1626
1642
  }
1627
1643
  function reportFleetState(payload, error, options) {
1628
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1644
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1629
1645
  {
1630
1646
  ...payload,
1631
1647
  code: error.code,
@@ -1759,7 +1775,7 @@ async function handleMonitorFleetsInit(fleetId, options) {
1759
1775
  _fs.writeFileSync.call(void 0, file, `${JSON.stringify(definition, null, 2)}
1760
1776
  `, "utf8");
1761
1777
  const next = `deepline monitors fleets deploy --file ${fleetShellArg(file)} --dry-run`;
1762
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1778
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1763
1779
  { schemaVersion: 2, file, definition, next },
1764
1780
  {
1765
1781
  json: options.json,
@@ -1822,7 +1838,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
1822
1838
  'The Fleet definition has no id. Add a top-level "id" and re-run.'
1823
1839
  );
1824
1840
  }
1825
- const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
1841
+ const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
1826
1842
  const payload = await client.monitors.fleets.sync(
1827
1843
  _nullishCoalesce(definition, () => ( fleetId)),
1828
1844
  {
@@ -1845,7 +1861,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
1845
1861
  }
1846
1862
  const accepted = { ...payload, idempotency_key: idempotencyKey };
1847
1863
  if (!options.wait || options.dryRun) {
1848
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, accepted, {
1864
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, accepted, {
1849
1865
  json: options.json,
1850
1866
  text: renderFleetSync(payload, {
1851
1867
  fleetId,
@@ -1871,7 +1887,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
1871
1887
  const status = fleetStatus(final);
1872
1888
  const summary = renderFleetGet(final);
1873
1889
  if (status === "converged") {
1874
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
1890
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
1875
1891
  return;
1876
1892
  }
1877
1893
  if (status === "billing_suspended") {
@@ -1933,14 +1949,14 @@ async function handleMonitorFleetsGet(fleetId, options) {
1933
1949
  `
1934
1950
  );
1935
1951
  }
1936
- const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
1952
+ const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
1937
1953
  const payload = await client.monitors.fleets.get(fleetId, {
1938
1954
  ...options.drift ? { drift: true } : {},
1939
1955
  ...limit !== void 0 ? { limit } : {}
1940
1956
  });
1941
1957
  const text = fleetId ? renderFleetGet(payload) : renderFleetList(payload);
1942
1958
  if (!options.check) {
1943
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
1959
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
1944
1960
  return;
1945
1961
  }
1946
1962
  const statuses = fleetId ? [fleetStatus(payload)] : (Array.isArray(payload.fleets) ? payload.fleets : []).map(
@@ -1948,7 +1964,7 @@ async function handleMonitorFleetsGet(fleetId, options) {
1948
1964
  );
1949
1965
  const unconverged = statuses.filter((status) => status !== "converged");
1950
1966
  if (unconverged.length === 0) {
1951
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
1967
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
1952
1968
  return;
1953
1969
  }
1954
1970
  const target = _nullishCoalesce(fleetId, () => ( "<fleet-id>"));
@@ -2062,6 +2078,8 @@ function renderFleetOverviewDetail(payload, window) {
2062
2078
  ` last sync ${_nullishCoalesce(asString(payload.last_sync_attempt_at), () => ( "never"))} (attempt)`,
2063
2079
  ` findings ${fleetFindingsText(payload, windowLabel)}`
2064
2080
  ];
2081
+ const billingTransition = fleetBillingTransitionLine(payload);
2082
+ if (billingTransition) lines.push(billingTransition);
2065
2083
  const issues = _nullishCoalesce(asRecord(payload.issues), () => ( {}));
2066
2084
  const total = _nullishCoalesce(asFiniteNumber(issues.total), () => ( 0));
2067
2085
  lines.push("", `Issues (${total}):`);
@@ -2111,7 +2129,7 @@ function renderFleetIssuePage(payload) {
2111
2129
  }
2112
2130
  async function handleMonitorFleetsOverviewRead(fleetId, options) {
2113
2131
  const window = fleetChoice(options.window, LEDGER_WINDOWS, "--window");
2114
- const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
2132
+ const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
2115
2133
  if (fleetId) {
2116
2134
  const listOnly = [
2117
2135
  options.q !== void 0 ? "--q" : "",
@@ -2126,7 +2144,7 @@ async function handleMonitorFleetsOverviewRead(fleetId, options) {
2126
2144
  const payload2 = await client.monitors.fleets.overview(fleetId, {
2127
2145
  ...window ? { window } : {}
2128
2146
  });
2129
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload2, {
2147
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, payload2, {
2130
2148
  json: options.json,
2131
2149
  text: renderFleetOverviewDetail(payload2, window)
2132
2150
  });
@@ -2142,7 +2160,7 @@ async function handleMonitorFleetsOverviewRead(fleetId, options) {
2142
2160
  ...sort ? { sort } : {},
2143
2161
  ...window ? { window } : {}
2144
2162
  });
2145
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, {
2163
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, payload, {
2146
2164
  json: options.json,
2147
2165
  text: renderFleetOverviewList(payload)
2148
2166
  });
@@ -2153,13 +2171,13 @@ async function handleMonitorFleetsIssues(fleetId, options) {
2153
2171
  if (limit !== void 0 && (limit < 1 || limit > 100)) {
2154
2172
  throw new MonitorsUsageError("--limit must be an integer from 1 to 100.");
2155
2173
  }
2156
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.fleets.issues(fleetId, {
2174
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().monitors.fleets.issues(fleetId, {
2157
2175
  ...group ? { group } : {},
2158
2176
  ...options.cause ? { cause: options.cause } : {},
2159
2177
  ...options.cursor ? { cursor: options.cursor } : {},
2160
2178
  ...limit !== void 0 ? { limit } : {}
2161
2179
  });
2162
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, {
2180
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, payload, {
2163
2181
  json: options.json,
2164
2182
  text: renderFleetIssuePage(payload)
2165
2183
  });
@@ -2188,13 +2206,13 @@ async function handleMonitorFleetsReactivate(fleetId, options, idempotencyKey) {
2188
2206
  ${fleetReactivateCommandLine(fleetId, options)}`
2189
2207
  );
2190
2208
  }
2191
- const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
2209
+ const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
2192
2210
  const payload = await client.monitors.fleets.reactivate(fleetId, {
2193
2211
  idempotencyKey
2194
2212
  });
2195
2213
  const accepted = { ...payload, idempotency_key: idempotencyKey };
2196
2214
  if (!options.wait) {
2197
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, accepted, {
2215
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, accepted, {
2198
2216
  json: options.json,
2199
2217
  text: `Fleet ${fleetId} \u2014 ${readMonitorState(payload) ? `state ${readMonitorState(payload)}` : "reactivation accepted"}
2200
2218
  idempotency key ${idempotencyKey}
@@ -2217,7 +2235,7 @@ async function handleMonitorFleetsReactivate(fleetId, options, idempotencyKey) {
2217
2235
  const envelope = { ...accepted, ...final };
2218
2236
  const text = renderFleetGet(final);
2219
2237
  if (fleetStatus(final) === "converged") {
2220
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, envelope, { json: options.json, text });
2238
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, envelope, { json: options.json, text });
2221
2239
  return;
2222
2240
  }
2223
2241
  if (fleetStatus(final) === "billing_suspended") {
@@ -2266,7 +2284,7 @@ async function confirmFleetDeactivate(fleetId, plan) {
2266
2284
  }
2267
2285
  }
2268
2286
  async function handleMonitorFleetsDeactivate(fleetId, options, idempotencyKey) {
2269
- const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
2287
+ const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
2270
2288
  if (options.dryRun) {
2271
2289
  const plan = await client.monitors.fleets.deactivate(fleetId, {
2272
2290
  dryRun: true,
@@ -2276,7 +2294,7 @@ async function handleMonitorFleetsDeactivate(fleetId, options, idempotencyKey) {
2276
2294
  command: "deepline monitors fleets deactivate",
2277
2295
  mutation: "fleet deactivate"
2278
2296
  });
2279
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, plan, {
2297
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, plan, {
2280
2298
  json: options.json,
2281
2299
  text: renderFleetDeactivatePlan(plan, fleetId)
2282
2300
  });
@@ -2314,7 +2332,7 @@ Preview the blast radius first:
2314
2332
  });
2315
2333
  const accepted = { ...payload, idempotency_key: idempotencyKey };
2316
2334
  if (payload.already === true) {
2317
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, accepted, {
2335
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, accepted, {
2318
2336
  json: options.json,
2319
2337
  text: `Fleet ${fleetId} is already deactivated.
2320
2338
  `
@@ -2326,7 +2344,7 @@ Preview the blast radius first:
2326
2344
  ` + (fleetServerNext(payload) ? `Next: ${fleetServerNext(payload)}
2327
2345
  ` : "");
2328
2346
  if (!options.wait) {
2329
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, accepted, {
2347
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, accepted, {
2330
2348
  json: options.json,
2331
2349
  text: acceptedText
2332
2350
  });
@@ -2348,7 +2366,7 @@ Preview the blast radius first:
2348
2366
  const envelope = { ...accepted, ...final };
2349
2367
  const summary = renderFleetGet(final);
2350
2368
  if (fleetStatus(final) === "deactivated") {
2351
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
2369
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
2352
2370
  return;
2353
2371
  }
2354
2372
  if (fleetStatus(final) === "billing_suspended") {
@@ -2387,7 +2405,7 @@ function handleMonitorFleetsOverview(options) {
2387
2405
  "Agent notes:",
2388
2406
  ...MONITOR_FLEET_AGENT_NOTES.map((note) => ` ${note}`)
2389
2407
  ];
2390
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
2408
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
2391
2409
  {
2392
2410
  schemaVersion: 1,
2393
2411
  lifecycle: MONITOR_FLEET_LIFECYCLE,
@@ -2549,7 +2567,7 @@ function renderMonitorGet(payload) {
2549
2567
  `;
2550
2568
  }
2551
2569
  async function handleMonitorsGet(key, options) {
2552
- const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
2570
+ const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
2553
2571
  const payload = await client.monitors.get(key);
2554
2572
  const boundPlays = Array.isArray(payload.bound_plays) ? payload.bound_plays : null;
2555
2573
  const dependents = boundPlays ? {
@@ -2557,24 +2575,24 @@ async function handleMonitorsGet(key, options) {
2557
2575
  truncated: payload.consumer_health_truncated === true
2558
2576
  } : await client.monitors.dependents(key);
2559
2577
  const detail = { ...payload, dependents };
2560
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, detail, {
2578
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, detail, {
2561
2579
  json: options.json,
2562
2580
  text: renderMonitorGet(detail)
2563
2581
  });
2564
2582
  }
2565
2583
  async function handleMonitorsTest(key, payload, options) {
2566
2584
  const explicitPayload = parseJsonObjectArg(payload, "<payload>");
2567
- const result = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.test(key, explicitPayload);
2585
+ const result = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().monitors.test(key, explicitPayload);
2568
2586
  const text = `Monitor diagnostic for ${key}: ${result.accepted === true ? "accepted" : "rejected"}
2569
2587
  mode: validation_only (no rows written, credits spent, or Plays dispatched)
2570
2588
  persisted rows: ${_nullishCoalesce(asFiniteNumber(result.persisted_rows), () => ( 0))}
2571
2589
  dispatched bound Plays: ${_nullishCoalesce(asFiniteNumber(result.dispatched_bound_plays), () => ( 0))}
2572
2590
  `;
2573
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, result, { json: options.json, text });
2591
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, result, { json: options.json, text });
2574
2592
  }
2575
2593
  async function handleMonitorsValidate(key, options) {
2576
- const result = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.validate(key);
2577
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, result, { json: options.json });
2594
+ const result = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().monitors.validate(key);
2595
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, result, { json: options.json });
2578
2596
  if (result.valid === false) process.exitCode = 7;
2579
2597
  }
2580
2598
  async function confirmMonitorDelete(key) {
@@ -2592,14 +2610,14 @@ async function confirmMonitorDelete(key) {
2592
2610
  }
2593
2611
  }
2594
2612
  async function handleMonitorsDelete(key, options) {
2595
- const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
2613
+ const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
2596
2614
  if (options.dryRun) {
2597
2615
  const payload2 = await client.monitors.delete(key, { dryRun: true });
2598
2616
  assertMonitorDryRunAcknowledged(payload2, {
2599
2617
  command: "deepline monitors delete",
2600
2618
  mutation: "delete"
2601
2619
  });
2602
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload2, {
2620
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, payload2, {
2603
2621
  json: options.json,
2604
2622
  text: renderMonitorDeletePlan(payload2, key)
2605
2623
  });
@@ -2619,7 +2637,7 @@ async function handleMonitorsDelete(key, options) {
2619
2637
  }
2620
2638
  }
2621
2639
  const payload = await client.monitors.delete(key);
2622
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, { json: options.json });
2640
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, payload, { json: options.json });
2623
2641
  }
2624
2642
  async function handleMonitorsUpdate(key, patch, options) {
2625
2643
  const body = resolveMonitorJsonBody({
@@ -2628,25 +2646,25 @@ async function handleMonitorsUpdate(key, patch, options) {
2628
2646
  argLabel: "<patch>",
2629
2647
  command: `deepline monitors update ${key}`
2630
2648
  });
2631
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.update(key, body);
2632
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, { json: options.json });
2649
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().monitors.update(key, body);
2650
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, payload, { json: options.json });
2633
2651
  }
2634
2652
  async function handleMonitorsReactivate(key, options) {
2635
- const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
2653
+ const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
2636
2654
  if (options.dryRun) {
2637
2655
  const payload2 = await client.monitors.reactivate(key, { dryRun: true });
2638
2656
  assertMonitorDryRunAcknowledged(payload2, {
2639
2657
  command: "deepline monitors reactivate",
2640
2658
  mutation: "reactivate"
2641
2659
  });
2642
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload2, {
2660
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, payload2, {
2643
2661
  json: options.json,
2644
2662
  text: renderMonitorReactivatePlan(payload2, key)
2645
2663
  });
2646
2664
  return;
2647
2665
  }
2648
2666
  const payload = await client.monitors.reactivate(key);
2649
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, { json: options.json });
2667
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, payload, { json: options.json });
2650
2668
  }
2651
2669
  var MONITOR_VERB_POLL_INTERVAL_MS = 2e3;
2652
2670
  function monitorHealthLine(health) {
@@ -2779,7 +2797,7 @@ function monitorHealthText(health) {
2779
2797
  `;
2780
2798
  }
2781
2799
  async function handleMonitorsAudit(options) {
2782
- const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
2800
+ const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
2783
2801
  const fleetId = _optionalChain([options, 'access', _106 => _106.fleet, 'optionalAccess', _107 => _107.trim, 'call', _108 => _108()]) || void 0;
2784
2802
  const scope = fleetId ? { fleetId } : {};
2785
2803
  let result = await client.monitors.audit(scope);
@@ -2823,7 +2841,7 @@ async function handleMonitorsAudit(options) {
2823
2841
  "",
2824
2842
  monitorHealthText(health)
2825
2843
  ].join("\n");
2826
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
2844
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
2827
2845
  { ...result, audit: { ...result.audit, totals }, health },
2828
2846
  { json: options.json, text }
2829
2847
  );
@@ -2836,10 +2854,10 @@ async function handleMonitorsRepair(options) {
2836
2854
  }
2837
2855
  async function handleMonitorsHealth(options) {
2838
2856
  const fleetId = _optionalChain([options, 'access', _112 => _112.fleet, 'optionalAccess', _113 => _113.trim, 'call', _114 => _114()]) || void 0;
2839
- const health = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.health(
2857
+ const health = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().monitors.health(
2840
2858
  fleetId ? { fleetId } : {}
2841
2859
  );
2842
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, health, {
2860
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, health, {
2843
2861
  json: options.json,
2844
2862
  text: monitorHealthText(health)
2845
2863
  });
@@ -2913,14 +2931,14 @@ async function handleMonitorBatchDeploy(options) {
2913
2931
  "deploy",
2914
2932
  options.idempotencyKey
2915
2933
  );
2916
- const result = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.batch.submit({
2934
+ const result = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().monitors.batch.submit({
2917
2935
  kind: "deploy",
2918
2936
  manifestNdjson,
2919
2937
  dryRun: options.dryRun === true,
2920
2938
  idempotencyKey
2921
2939
  });
2922
2940
  const operation = result.operation;
2923
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
2941
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
2924
2942
  { ...result, idempotency_key: idempotencyKey },
2925
2943
  {
2926
2944
  json: options.json,
@@ -2948,7 +2966,7 @@ async function handleMonitorBatch(kind, options) {
2948
2966
  kind,
2949
2967
  options.idempotencyKey
2950
2968
  );
2951
- const result = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.batch.submit({
2969
+ const result = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().monitors.batch.submit({
2952
2970
  kind,
2953
2971
  scope,
2954
2972
  dryRun: options.dryRun === true,
@@ -2961,14 +2979,14 @@ async function handleMonitorBatch(kind, options) {
2961
2979
  `state ${operation.state} \xB7 retry key ${idempotencyKey}`,
2962
2980
  `inspect: deepline monitors batch get ${operation.runId}`
2963
2981
  ].join("\n");
2964
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
2982
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
2965
2983
  { ...result, idempotency_key: idempotencyKey },
2966
2984
  { json: options.json, text: `${text}
2967
2985
  ` }
2968
2986
  );
2969
2987
  }
2970
2988
  async function handleMonitorBatchGet(operationId, options) {
2971
- const result = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.batch.get(operationId, {
2989
+ const result = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().monitors.batch.get(operationId, {
2972
2990
  ...options.cursor ? { cursor: options.cursor } : {}
2973
2991
  });
2974
2992
  const summary = _nullishCoalesce(result.operation.summary, () => ( {}));
@@ -2980,7 +2998,7 @@ async function handleMonitorBatchGet(operationId, options) {
2980
2998
  `results ${result.results.page.length}${result.results.isDone ? "" : " (more; pass --cursor)"}`
2981
2999
  ] : []
2982
3000
  ].join("\n");
2983
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, result, { json: options.json, text: `${text}
3001
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, result, { json: options.json, text: `${text}
2984
3002
  ` });
2985
3003
  }
2986
3004
  function registerMonitorsCommands(program) {