deepline 0.3.544 → 0.3.546

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 (192) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +5 -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/release.ts +1 -1
  5. package/dist/bundling-sources/shared_libs/monitors/fleets/errors.ts +5 -0
  6. package/dist/bundling-sources/shared_libs/monitors/fleets/issues.ts +5 -1
  7. package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +6 -0
  8. package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +35 -3
  9. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +2 -2
  10. package/dist/bundling-sources/shared_libs/play-data-plane/contracts.ts +5 -0
  11. package/dist/bundling-sources/shared_libs/play-data-plane/sheet-contract.ts +27 -0
  12. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +4 -0
  13. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +8 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/fleet-sandbox-sweep.ts +40 -3
  15. package/dist/bundling-sources/shared_libs/play-runtime/modal-runtime-config.ts +19 -3
  16. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +18 -4
  17. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +441 -103
  18. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox-egress.ts +322 -0
  19. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +200 -64
  20. package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +65 -2
  21. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +5 -3
  22. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +32 -0
  23. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +206 -12
  24. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +10 -1
  25. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +30 -2
  26. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +30 -1
  27. package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +35 -2
  28. package/dist/bundling-sources/shared_libs/security/email-blacklist.ts +35 -1
  29. package/dist/bundling-sources/shared_libs/security/email-domain.ts +19 -0
  30. package/dist/bundling-sources/shared_libs/security/secret-redaction.ts +2 -0
  31. package/dist/cli/{auth-IMWJAHPU.mjs → auth-KFWG72AZ.mjs} +6 -6
  32. package/dist/cli/auth-W32GMYND.js +43 -0
  33. package/dist/cli/{billing-YQMW3QJI.mjs → billing-MMZ336HO.mjs} +10 -10
  34. package/dist/cli/{billing-Y55PR2PV.js → billing-OQVOAZ4S.js} +98 -98
  35. package/dist/cli/{chunk-RJPDCSTD.mjs → chunk-3DUNNZB6.mjs} +4 -4
  36. package/dist/cli/{chunk-G26VJCNT.js → chunk-4AZLGNXV.js} +36 -26
  37. package/dist/cli/{chunk-Y3T5GWYK.mjs → chunk-5OEFXAKP.mjs} +5 -1
  38. package/dist/cli/{chunk-RG34YBDE.js → chunk-5V7NZKGG.js} +2 -2
  39. package/dist/cli/{chunk-UHIAQPVA.js → chunk-5VNQMVCU.js} +26 -26
  40. package/dist/cli/{chunk-PDJ4UDCO.js → chunk-5W4ENHWM.js} +12 -12
  41. package/dist/cli/{chunk-3JDA23NN.mjs → chunk-6FBDTYR2.mjs} +2 -2
  42. package/dist/cli/{chunk-KE6CSCUF.js → chunk-6LG7MLJ2.js} +44 -44
  43. package/dist/cli/{chunk-HXM2JUGD.mjs → chunk-6Y5TU3R7.mjs} +2 -2
  44. package/dist/cli/{chunk-PFGOCUH3.mjs → chunk-7MY7KWJS.mjs} +1 -1
  45. package/dist/cli/{chunk-57G4NYOL.mjs → chunk-7ZW67ME6.mjs} +1 -1
  46. package/dist/cli/{chunk-JBWOE6AP.js → chunk-BTFUAGHC.js} +16 -16
  47. package/dist/cli/{chunk-5PR4VLLL.mjs → chunk-EEG46QZY.mjs} +2 -2
  48. package/dist/cli/{chunk-3I26HMJ7.js → chunk-EEJHB76U.js} +9 -9
  49. package/dist/cli/{chunk-2GJZLIKW.js → chunk-EITMD3A5.js} +1 -1
  50. package/dist/cli/{chunk-Z44YTSTA.js → chunk-F2VEFMU5.js} +13 -13
  51. package/dist/cli/{chunk-4JQEAYN3.js → chunk-F5YQXCP3.js} +5 -1
  52. package/dist/cli/{chunk-BEQ7RQLT.mjs → chunk-GOOF7E2B.mjs} +5 -5
  53. package/dist/cli/{chunk-PMW5YP72.mjs → chunk-GYTSDSQD.mjs} +11 -11
  54. package/dist/cli/{chunk-ZY6FL4O4.js → chunk-H7Q5IDO3.js} +19 -19
  55. package/dist/cli/{chunk-GV45TTI6.mjs → chunk-HJR2DDJS.mjs} +2 -2
  56. package/dist/cli/{chunk-7HMMTSDA.js → chunk-IVWU7SJC.js} +5 -5
  57. package/dist/cli/{chunk-WBSGPLH5.mjs → chunk-J65HJCJO.mjs} +2 -2
  58. package/dist/cli/{chunk-REEOMNCO.mjs → chunk-JA633HRV.mjs} +3 -3
  59. package/dist/cli/{chunk-HVJQF5BI.mjs → chunk-JARZ47OP.mjs} +2 -2
  60. package/dist/cli/{chunk-IFIJ4DBJ.js → chunk-JCH4UNNS.js} +2 -2
  61. package/dist/cli/{chunk-COJHT2KF.js → chunk-JCWNF44W.js} +22 -22
  62. package/dist/cli/{chunk-3KGMM4KS.js → chunk-JVOUQFHT.js} +1 -1
  63. package/dist/cli/{chunk-W7X4KH45.js → chunk-JYG4XZLT.js} +99 -99
  64. package/dist/cli/{chunk-HBSWATOU.mjs → chunk-K2XELBPF.mjs} +5 -5
  65. package/dist/cli/{chunk-HAQRF6DJ.mjs → chunk-KUK7ARXA.mjs} +2 -2
  66. package/dist/cli/{chunk-WUEORIOY.mjs → chunk-LHE2TSV6.mjs} +1 -1
  67. package/dist/cli/{chunk-7GNZEOTH.js → chunk-LIJKRDDG.js} +6 -6
  68. package/dist/cli/{chunk-SKS53WM6.mjs → chunk-LX2TC3HO.mjs} +4 -4
  69. package/dist/cli/{chunk-GQHRGBHV.js → chunk-MEGHIX4M.js} +5 -5
  70. package/dist/cli/{chunk-H4SAHB3Q.mjs → chunk-MI7X6V6V.mjs} +3 -3
  71. package/dist/cli/{chunk-ON56ISO6.js → chunk-MXQP7CXZ.js} +8 -8
  72. package/dist/cli/{chunk-PKRW76XG.js → chunk-ND7SFRQL.js} +2 -2
  73. package/dist/cli/{chunk-CQBIO6HW.mjs → chunk-NURW5XH4.mjs} +1 -1
  74. package/dist/cli/{chunk-Q7ZOWNKR.mjs → chunk-OAKWSLKS.mjs} +2 -2
  75. package/dist/cli/{chunk-SK3HPU2J.mjs → chunk-P7A3H6G5.mjs} +1 -1
  76. package/dist/cli/{chunk-UNMNGRPB.js → chunk-PMDHY2YK.js} +7 -7
  77. package/dist/cli/{chunk-LW274RO7.mjs → chunk-PU3ZAG6V.mjs} +1 -1
  78. package/dist/cli/{chunk-ZHY4T5M6.mjs → chunk-RO66FPTS.mjs} +22 -12
  79. package/dist/cli/{chunk-DYDHLBSK.js → chunk-SH32HL7I.js} +53 -53
  80. package/dist/cli/{chunk-DF2X7GJG.js → chunk-SYTWWVIQ.js} +5 -5
  81. package/dist/cli/{chunk-JWVG7ZPX.js → chunk-TBWYZOSV.js} +3 -3
  82. package/dist/cli/{chunk-RUFR4PUO.js → chunk-UQJBV5PM.js} +10 -10
  83. package/dist/cli/{chunk-LPUBBUKX.mjs → chunk-UREAIHUU.mjs} +2 -2
  84. package/dist/cli/{chunk-22OBDYHP.js → chunk-VAT2SXFF.js} +12 -12
  85. package/dist/cli/{chunk-LQ6RRYXN.mjs → chunk-VPERQ3U6.mjs} +5 -5
  86. package/dist/cli/{chunk-456RRXAP.mjs → chunk-VTK3HGMN.mjs} +5 -5
  87. package/dist/cli/{chunk-DVDWAC2M.mjs → chunk-VXTTAYOT.mjs} +2 -2
  88. package/dist/cli/{chunk-4PKHFW56.js → chunk-WKHPLBJK.js} +15 -15
  89. package/dist/cli/{chunk-YIRVKMON.mjs → chunk-X5KOHDJN.mjs} +1 -1
  90. package/dist/cli/{chunk-C4P2KLWT.js → chunk-Z3UEBFIN.js} +41 -41
  91. package/dist/cli/command-docs.js +2 -2
  92. package/dist/cli/command-docs.mjs +1 -1
  93. package/dist/cli/concurrent-runs-help-6QT7ZR4W.js +21 -0
  94. package/dist/cli/{concurrent-runs-help-KBWPKSTP.mjs → concurrent-runs-help-C2O5YKQA.mjs} +7 -7
  95. package/dist/cli/{csv-XGGDZTQI.js → csv-MJDNOIQJ.js} +14 -14
  96. package/dist/cli/{csv-M5EBEMZH.mjs → csv-Z4DNGR54.mjs} +5 -5
  97. package/dist/cli/{db-M6FJ6J6E.mjs → db-4RL2BNOF.mjs} +7 -7
  98. package/dist/cli/{db-CVPR54XK.js → db-S5QVPK5E.js} +32 -32
  99. package/dist/cli/{describe-X6QA2U3C.mjs → describe-L4P5SZLQ.mjs} +19 -19
  100. package/dist/cli/describe-VLU2LUDJ.js +50 -0
  101. package/dist/cli/describe-core.d.mts +3 -3
  102. package/dist/cli/describe-core.d.ts +3 -3
  103. package/dist/cli/describe-core.js +1 -1
  104. package/dist/cli/describe-core.mjs +1 -1
  105. package/dist/cli/{executions-VJEEWN22.js → executions-MFZ2Z36O.js} +9 -9
  106. package/dist/cli/{executions-EHTS2XJX.mjs → executions-RR6O3XK5.mjs} +7 -7
  107. package/dist/cli/{feedback-76VGY4GP.mjs → feedback-EQBQ3ABB.mjs} +7 -7
  108. package/dist/cli/{feedback-DQPUCUXO.js → feedback-YDAG7VH2.js} +15 -15
  109. package/dist/cli/git-E6W44F5M.js +25 -0
  110. package/dist/cli/{git-IY6DKKLR.mjs → git-YGLCCU35.mjs} +6 -6
  111. package/dist/cli/index.js +150 -150
  112. package/dist/cli/index.mjs +46 -46
  113. package/dist/cli/{integrations-242LE3TQ.mjs → integrations-FWYXSBHK.mjs} +8 -8
  114. package/dist/cli/{integrations-CQSTIKFY.js → integrations-IQXYMRMW.js} +16 -16
  115. package/dist/cli/{legacy-noops-SWTSTMRY.mjs → legacy-noops-I4YRIX5F.mjs} +7 -7
  116. package/dist/cli/{legacy-noops-U72DO6ZF.js → legacy-noops-U7LI7UXC.js} +10 -10
  117. package/dist/cli/{mcp-L473BKLJ.js → mcp-GX2UKKWU.js} +25 -25
  118. package/dist/cli/{mcp-JJH6JR52.mjs → mcp-QJBMB6VS.mjs} +5 -5
  119. package/dist/cli/{monitors-3TF2DOFD.js → monitors-WCJYINGX.js} +164 -106
  120. package/dist/cli/{monitors-VSYHUBKC.mjs → monitors-Z6EGKYJP.mjs} +70 -12
  121. package/dist/cli/{org-YKVI2ZTI.js → org-7SKG423N.js} +89 -89
  122. package/dist/cli/{org-S5VIKU2E.mjs → org-NNHICBR2.mjs} +7 -7
  123. package/dist/cli/{play-DOWEG45Y.js → play-4P4DTG3Q.js} +318 -318
  124. package/dist/cli/{play-C7T5A3QM.mjs → play-CXDFPJ7Z.mjs} +18 -18
  125. package/dist/cli/{providers-TAZPPFTB.js → providers-EE4TUE3O.js} +10 -10
  126. package/dist/cli/{providers-BMVVX3VD.mjs → providers-VQLQ7DTR.mjs} +7 -7
  127. package/dist/cli/{quickstart-A3WKMKTW.mjs → quickstart-IYNJRB5G.mjs} +5 -5
  128. package/dist/cli/{quickstart-HD6FQXGR.js → quickstart-RVXHK4WA.js} +7 -7
  129. package/dist/cli/{run-BVVV2UX7.js → run-R3F34KU3.js} +44 -44
  130. package/dist/cli/{run-FV7TWNOC.mjs → run-VBQPPMEX.mjs} +24 -24
  131. package/dist/cli/{search-MGK6WIKS.mjs → search-B7R62HX5.mjs} +8 -8
  132. package/dist/cli/search-UUVFXZRA.js +32 -0
  133. package/dist/cli/{search-output-GM7LDZKE.mjs → search-output-LNQQXIGZ.mjs} +5 -5
  134. package/dist/cli/{search-output-6Y7KEPIE.js → search-output-LWHWEPOT.js} +7 -7
  135. package/dist/cli/{secrets-4RFAR7YI.mjs → secrets-NM3VAJLO.mjs} +7 -7
  136. package/dist/cli/{secrets-SISXIXSZ.js → secrets-QBOZ7WTD.js} +16 -16
  137. package/dist/cli/sessions-K3PD73Q2.js +22 -0
  138. package/dist/cli/{sessions-CE3OMEG7.mjs → sessions-R5BSIJ4I.mjs} +7 -7
  139. package/dist/cli/{settings-4HPM3K4A.js → settings-POYWKNRD.js} +86 -86
  140. package/dist/cli/{settings-E22IDSX2.mjs → settings-S4PN7WLY.mjs} +13 -13
  141. package/dist/cli/{setup-BK65MDZ6.mjs → setup-PFLXVBTL.mjs} +10 -10
  142. package/dist/cli/{setup-BDRSNLKX.js → setup-VHB4Z654.js} +50 -50
  143. package/dist/cli/skills-QNE2EYT3.js +36 -0
  144. package/dist/cli/{skills-FI2GZMR4.mjs → skills-W2TELEU7.mjs} +8 -8
  145. package/dist/cli/tools-3RLI4HGF.js +57 -0
  146. package/dist/cli/{tools-HMMWYUNW.mjs → tools-M4FA6N3Y.mjs} +18 -18
  147. package/dist/cli/update-UT6KIW2W.js +34 -0
  148. package/dist/cli/{update-WDKBSXV5.mjs → update-W7LIHEA7.mjs} +10 -10
  149. package/dist/cli/{views-775AUDWQ.js → views-DJXAGD7V.js} +22 -22
  150. package/dist/cli/{views-JYIJCO23.mjs → views-KTVPV6UP.mjs} +7 -7
  151. package/dist/cli/{workflow-FKKHE3IU.mjs → workflow-LGKCRODX.mjs} +8 -8
  152. package/dist/cli/{workflow-4H6KQRFQ.js → workflow-NVZDJKH2.js} +18 -18
  153. package/dist/{client-DD_FyJVd.d.ts → client-CCyWJqAI.d.ts} +1 -1
  154. package/dist/{client-ANT3pyoa.d.mts → client-Tp1LSULB.d.mts} +1 -1
  155. package/dist/{client-core-QHmo73k1.d.ts → client-core-BpYiYEfu.d.ts} +10 -1
  156. package/dist/{client-core-Dg9tKhdB.d.mts → client-core-D8eCZz3O.d.mts} +10 -1
  157. package/dist/{compiler-manifest-BWFtsQIC.d.ts → compiler-manifest-EBWEUj0b.d.mts} +35 -0
  158. package/dist/{compiler-manifest-BWFtsQIC.d.mts → compiler-manifest-EBWEUj0b.d.ts} +35 -0
  159. package/dist/{errors-Lm9_vJHZ.d.ts → errors-CParKUQR.d.mts} +2 -2
  160. package/dist/{errors-CwKXXtuu.d.mts → errors-Qt0OTA7_.d.ts} +2 -2
  161. package/dist/{index-DjwsAt82.d.mts → index-BMUVCNp7.d.mts} +1 -1
  162. package/dist/{index-3vJ-V9yw.d.ts → index-CoqDkIw0.d.ts} +1 -1
  163. package/dist/index.d.mts +7 -7
  164. package/dist/index.d.ts +7 -7
  165. package/dist/index.js +10 -10
  166. package/dist/index.mjs +7 -7
  167. package/dist/install-integrity.json +126 -124
  168. package/dist/plays/bundle-play-file.d.mts +3 -3
  169. package/dist/plays/bundle-play-file.d.ts +3 -3
  170. package/dist/plays/bundle-play-file.mjs +20 -1
  171. package/dist/plays/play-description.d.mts +2 -2
  172. package/dist/plays/play-description.d.ts +2 -2
  173. package/dist/plays/run-request.d.mts +2 -2
  174. package/dist/plays/run-request.d.ts +2 -2
  175. package/dist/release.d.mts +1 -1
  176. package/dist/release.d.ts +1 -1
  177. package/dist/release.js +2 -2
  178. package/dist/release.mjs +1 -1
  179. package/dist/server.d.mts +4 -4
  180. package/dist/server.d.ts +4 -4
  181. package/dist/server.js +10 -10
  182. package/dist/server.mjs +4 -4
  183. package/package.json +1 -1
  184. package/dist/cli/auth-ENBXAKQS.js +0 -43
  185. package/dist/cli/concurrent-runs-help-TOMLCMV7.js +0 -21
  186. package/dist/cli/describe-RUODIS6M.js +0 -50
  187. package/dist/cli/git-RLHTSYRY.js +0 -25
  188. package/dist/cli/search-VJFCWUZN.js +0 -32
  189. package/dist/cli/sessions-OWWZJZXH.js +0 -22
  190. package/dist/cli/skills-ZLBFUAFR.js +0 -36
  191. package/dist/cli/tools-3K72VE33.js +0 -57
  192. package/dist/cli/update-QZV6DH5V.js +0 -34
@@ -1,8 +1,8 @@
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 _chunkDF2X7GJGjs = require('./chunk-DF2X7GJG.js');
5
- require('./chunk-PDJ4UDCO.js');
4
+ var _chunkSYTWWVIQjs = require('./chunk-SYTWWVIQ.js');
5
+ require('./chunk-5W4ENHWM.js');
6
6
  require('./chunk-TI6DTURF.js');
7
7
  require('./chunk-SL6MYJYM.js');
8
8
  require('./chunk-PMH4GLMD.js');
@@ -18,23 +18,23 @@ require('./chunk-UNEMDKXN.js');
18
18
  var _chunkU2LVWCTDjs = require('./chunk-U2LVWCTD.js');
19
19
 
20
20
 
21
- var _chunkJWVG7ZPXjs = require('./chunk-JWVG7ZPX.js');
21
+ var _chunkTBWYZOSVjs = require('./chunk-TBWYZOSV.js');
22
22
 
23
23
 
24
24
 
25
25
 
26
26
 
27
- var _chunkZY6FL4O4js = require('./chunk-ZY6FL4O4.js');
28
- require('./chunk-ON56ISO6.js');
29
- require('./chunk-G26VJCNT.js');
27
+ var _chunkH7Q5IDO3js = require('./chunk-H7Q5IDO3.js');
28
+ require('./chunk-MXQP7CXZ.js');
29
+ require('./chunk-4AZLGNXV.js');
30
30
 
31
31
 
32
- var _chunk2GJZLIKWjs = require('./chunk-2GJZLIKW.js');
32
+ var _chunkEITMD3A5js = require('./chunk-EITMD3A5.js');
33
33
  require('./chunk-XNYIZMNQ.js');
34
34
 
35
35
 
36
36
  var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
37
- require('./chunk-3KGMM4KS.js');
37
+ require('./chunk-JVOUQFHT.js');
38
38
  require('./chunk-OG64RBAC.js');
39
39
  require('./chunk-COGTRVWW.js');
40
40
 
@@ -65,7 +65,7 @@ var MonitorDryRunUnsupportedError = (_class2 = class extends Error {
65
65
  function monitorsErrorExitCode(error) {
66
66
  if (error instanceof MonitorsUsageError) return 2;
67
67
  if (error instanceof MonitorFleetStateError) return 6;
68
- if (error instanceof _chunk2GJZLIKWjs.AuthError) return 3;
68
+ if (error instanceof _chunkEITMD3A5js.AuthError) return 3;
69
69
  if (error instanceof _chunkBBTKAASQjs.DeeplineError) {
70
70
  const status = error.statusCode;
71
71
  if (status === 401 || status === 403) return 3;
@@ -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 = _chunkZY6FL4O4js.shouldEmitJson.call(void 0, process.argv.includes("--json"));
115
+ const wantsJson = _chunkH7Q5IDO3js.shouldEmitJson.call(void 0, process.argv.includes("--json"));
116
116
  if (wantsJson) {
117
- const payload = _chunkZY6FL4O4js.errorToJsonPayload.call(void 0, error);
118
- _chunkZY6FL4O4js.printJson.call(void 0, {
117
+ const payload = _chunkH7Q5IDO3js.errorToJsonPayload.call(void 0, error);
118
+ _chunkH7Q5IDO3js.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, _chunkDF2X7GJGjs.DeeplineClient)().monitors.status();
538
+ const payload = await new (0, _chunkSYTWWVIQjs.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
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
545
+ _chunkH7Q5IDO3js.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, _chunkDF2X7GJGjs.DeeplineClient)().monitors.available(tool, {
611
+ const payload = await new (0, _chunkSYTWWVIQjs.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
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, payload, {
618
+ _chunkH7Q5IDO3js.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, _chunkDF2X7GJGjs.DeeplineClient)().monitors.list({
725
+ const payload = await new (0, _chunkSYTWWVIQjs.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
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, payload, {
732
+ _chunkH7Q5IDO3js.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, _chunkDF2X7GJGjs.DeeplineClient)();
823
+ const client = new (0, _chunkSYTWWVIQjs.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
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, payload2, { json: options.json });
833
+ _chunkH7Q5IDO3js.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
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, payload2, { json: options.json });
838
+ _chunkH7Q5IDO3js.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
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, payload, {
862
+ _chunkH7Q5IDO3js.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, _chunkDF2X7GJGjs.DeeplineClient)().monitors.check(
874
+ const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.check(
875
875
  body
876
876
  );
877
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, payload, { json: options.json });
877
+ _chunkH7Q5IDO3js.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 = _chunkZY6FL4O4js.shouldEmitJson.call(void 0, options.json);
935
+ const wantsJson = _chunkH7Q5IDO3js.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 = _chunkJWVG7ZPXjs.createCliProgress.call(void 0, !wantsJson);
942
+ const progress = _chunkTBWYZOSVjs.createCliProgress.call(void 0, !wantsJson);
943
943
  progress.phase(`Preview key: ${idempotencyKey}`);
944
944
  try {
945
- const payload = await new (0, _chunkDF2X7GJGjs.DeeplineClient)().monitors.preview(
945
+ const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.preview(
946
946
  body,
947
947
  { idempotencyKey, ...limit === void 0 ? {} : { limit } }
948
948
  );
949
949
  progress.complete();
950
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, payload, {
950
+ _chunkH7Q5IDO3js.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, _chunkDF2X7GJGjs.DeeplineClient)();
995
+ const client = new (0, _chunkSYTWWVIQjs.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
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
1003
+ _chunkH7Q5IDO3js.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
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, payload, {
1013
+ _chunkH7Q5IDO3js.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, _chunkDF2X7GJGjs.DeeplineClient)().monitors.sync(body, {
1025
+ const payload = await new (0, _chunkSYTWWVIQjs.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
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
1031
+ _chunkH7Q5IDO3js.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
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, payload, {
1037
+ _chunkH7Q5IDO3js.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, _chunkDF2X7GJGjs.DeeplineClient)().monitors[action](key, {
1043
+ const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors[action](key, {
1044
1044
  ...options.dryRun ? { dryRun: true } : {},
1045
1045
  idempotencyKey: _nullishCoalesce(options.idempotencyKey, () => ( monitorJobIdempotencyKey(`${action}-${key}`, void 0)))
1046
1046
  });
1047
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, payload, {
1047
+ _chunkH7Q5IDO3js.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, _chunkDF2X7GJGjs.DeeplineClient)().monitors.batch.deploy(
1136
+ const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.batch.deploy(
1137
1137
  lint.normalized.monitors,
1138
1138
  { idempotencyKey }
1139
1139
  );
1140
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
1140
+ _chunkH7Q5IDO3js.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
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
1173
+ _chunkH7Q5IDO3js.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, _chunkDF2X7GJGjs.DeeplineClient)().monitors.batches.sync(
1190
+ const payload = await new (0, _chunkSYTWWVIQjs.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
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
1198
+ _chunkH7Q5IDO3js.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
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
1205
+ _chunkH7Q5IDO3js.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, _chunkDF2X7GJGjs.DeeplineClient)().monitors.batches[intent](batchId, {
1221
+ const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.batches[intent](batchId, {
1222
1222
  idempotencyKey
1223
1223
  });
1224
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
1224
+ _chunkH7Q5IDO3js.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, _chunkDF2X7GJGjs.DeeplineClient)().monitors.batches.get(batchId);
1231
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, payload, {
1230
+ const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.batches.get(batchId);
1231
+ _chunkH7Q5IDO3js.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
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
1245
+ _chunkH7Q5IDO3js.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
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
1265
+ _chunkH7Q5IDO3js.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, _chunkDF2X7GJGjs.DeeplineClient)().monitors.jobs.get(jobId);
1278
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, payload, {
1277
+ const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.jobs.get(jobId);
1278
+ _chunkH7Q5IDO3js.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, _chunkDF2X7GJGjs.DeeplineClient)().monitors.jobs.wait(jobId, {
1284
+ const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.jobs.wait(jobId, {
1285
1285
  timeoutMs: fleetTimeoutMs(options.timeout),
1286
1286
  pollIntervalMs: FLEET_POLL_INTERVAL_MS
1287
1287
  });
1288
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, payload, {
1288
+ _chunkH7Q5IDO3js.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, _chunkDF2X7GJGjs.DeeplineClient)().monitors.jobs.logs(jobId, {
1295
+ const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.jobs.logs(jobId, {
1296
1296
  ...limit === void 0 ? {} : { limit }
1297
1297
  });
1298
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, payload, { json: options.json });
1298
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, { json: options.json });
1299
1299
  }
1300
1300
  async function handleMonitorJobCancel(jobId, options) {
1301
- const payload = await new (0, _chunkDF2X7GJGjs.DeeplineClient)().monitors.jobs.cancel(jobId);
1302
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, payload, {
1301
+ const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.jobs.cancel(jobId);
1302
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, {
1303
1303
  json: options.json,
1304
1304
  text: renderMonitorJob(payload)
1305
1305
  });
@@ -1527,6 +1527,11 @@ function renderFleetGet(payload) {
1527
1527
  return `${lines.join("\n")}
1528
1528
  `;
1529
1529
  }
1530
+ function fleetDriftPriority(convergence) {
1531
+ const order = ["failed", "blocked", "rate_limited", "submitting", "pending"];
1532
+ const index = order.indexOf(convergence);
1533
+ return index === -1 ? order.length : index;
1534
+ }
1530
1535
  function renderFleetDriftRows(payload) {
1531
1536
  const drift = Array.isArray(payload.drift) ? payload.drift : void 0;
1532
1537
  if (!drift) return [];
@@ -1540,17 +1545,18 @@ function renderFleetDriftRows(payload) {
1540
1545
  since: _nullishCoalesce(asString(row.since), () => ( "-")),
1541
1546
  detail: _nullishCoalesce(asString(row.error), () => ( (asString(row.blocked_by) ? `blocked_by ${asString(row.blocked_by)}` : asString(row.next_attempt_at) ? `next_attempt_at ${asString(row.next_attempt_at)}` : "")))
1542
1547
  })).sort(
1543
- (left, right) => left.monitorKey.localeCompare(right.monitorKey) || left.entityKey.localeCompare(right.entityKey)
1548
+ (left, right) => fleetDriftPriority(left.convergence) - fleetDriftPriority(right.convergence) || left.monitorKey.localeCompare(right.monitorKey) || left.entityKey.localeCompare(right.entityKey)
1544
1549
  );
1545
1550
  if (rows.length === 0) {
1546
1551
  return [` drift none${payload.truncated === true ? " (truncated)" : ""}`];
1547
1552
  }
1553
+ const outstanding = fleetOutstandingCount(payload);
1548
1554
  const width = (values) => values.reduce((max, value) => Math.max(max, value.length), 0);
1549
1555
  const monitorWidth = width(rows.map((row) => row.monitorKey));
1550
1556
  const entityWidth = width(rows.map((row) => row.entityKey));
1551
1557
  const convergenceWidth = width(rows.map((row) => row.convergence));
1552
1558
  const lines = [
1553
- ` drift (${rows.length}${payload.truncated === true ? ", truncated" : ""})`
1559
+ payload.truncated === true ? ` drift (${rows.length}${outstanding === void 0 ? "" : ` of ${outstanding}`}, truncated; failed and blocked first)` : ` drift (${rows.length})`
1554
1560
  ];
1555
1561
  for (const row of rows) {
1556
1562
  lines.push(
@@ -1619,7 +1625,7 @@ function renderFleetDeactivatePlan(payload, fleetId) {
1619
1625
  `;
1620
1626
  }
1621
1627
  function reportFleetState(payload, error, options) {
1622
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
1628
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1623
1629
  {
1624
1630
  ...payload,
1625
1631
  code: error.code,
@@ -1753,7 +1759,7 @@ async function handleMonitorFleetsInit(fleetId, options) {
1753
1759
  _fs.writeFileSync.call(void 0, file, `${JSON.stringify(definition, null, 2)}
1754
1760
  `, "utf8");
1755
1761
  const next = `deepline monitors fleets deploy --file ${fleetShellArg(file)} --dry-run`;
1756
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
1762
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1757
1763
  { schemaVersion: 2, file, definition, next },
1758
1764
  {
1759
1765
  json: options.json,
@@ -1816,7 +1822,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
1816
1822
  'The Fleet definition has no id. Add a top-level "id" and re-run.'
1817
1823
  );
1818
1824
  }
1819
- const client = new (0, _chunkDF2X7GJGjs.DeeplineClient)();
1825
+ const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
1820
1826
  const payload = await client.monitors.fleets.sync(
1821
1827
  _nullishCoalesce(definition, () => ( fleetId)),
1822
1828
  {
@@ -1839,7 +1845,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
1839
1845
  }
1840
1846
  const accepted = { ...payload, idempotency_key: idempotencyKey };
1841
1847
  if (!options.wait || options.dryRun) {
1842
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, accepted, {
1848
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, accepted, {
1843
1849
  json: options.json,
1844
1850
  text: renderFleetSync(payload, {
1845
1851
  fleetId,
@@ -1865,7 +1871,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
1865
1871
  const status = fleetStatus(final);
1866
1872
  const summary = renderFleetGet(final);
1867
1873
  if (status === "converged") {
1868
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
1874
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
1869
1875
  return;
1870
1876
  }
1871
1877
  if (status === "billing_suspended") {
@@ -1898,6 +1904,22 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
1898
1904
  { json: options.json, text: summary }
1899
1905
  );
1900
1906
  }
1907
+ var FLEET_DRIFT_MAX_LIMIT = 200;
1908
+ function fleetOutstandingCount(payload) {
1909
+ const counts = asRecord(payload.counts);
1910
+ if (!counts) return void 0;
1911
+ let total = 0;
1912
+ for (const state of [
1913
+ "pending",
1914
+ "submitting",
1915
+ "rate_limited",
1916
+ "blocked",
1917
+ "failed"
1918
+ ]) {
1919
+ total += _nullishCoalesce(asFiniteNumber(counts[state]), () => ( 0));
1920
+ }
1921
+ return total;
1922
+ }
1901
1923
  async function handleMonitorFleetsGet(fleetId, options) {
1902
1924
  if (options.drift && !fleetId) {
1903
1925
  throw new MonitorsUsageError(
@@ -1905,14 +1927,20 @@ async function handleMonitorFleetsGet(fleetId, options) {
1905
1927
  );
1906
1928
  }
1907
1929
  const limit = options.limit === void 0 ? void 0 : fleetIntegerOption(options.limit, "--limit");
1908
- const client = new (0, _chunkDF2X7GJGjs.DeeplineClient)();
1930
+ if (options.drift && limit !== void 0 && limit > FLEET_DRIFT_MAX_LIMIT) {
1931
+ process.stderr.write(
1932
+ `--limit ${limit} is over the drift maximum; showing at most ${FLEET_DRIFT_MAX_LIMIT}. Run deepline monitors fleets issues ${fleetShellArg(fleetId)} for every failed or blocked member.
1933
+ `
1934
+ );
1935
+ }
1936
+ const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
1909
1937
  const payload = await client.monitors.fleets.get(fleetId, {
1910
1938
  ...options.drift ? { drift: true } : {},
1911
1939
  ...limit !== void 0 ? { limit } : {}
1912
1940
  });
1913
1941
  const text = fleetId ? renderFleetGet(payload) : renderFleetList(payload);
1914
1942
  if (!options.check) {
1915
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
1943
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
1916
1944
  return;
1917
1945
  }
1918
1946
  const statuses = fleetId ? [fleetStatus(payload)] : (Array.isArray(payload.fleets) ? payload.fleets : []).map(
@@ -1920,7 +1948,7 @@ async function handleMonitorFleetsGet(fleetId, options) {
1920
1948
  );
1921
1949
  const unconverged = statuses.filter((status) => status !== "converged");
1922
1950
  if (unconverged.length === 0) {
1923
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
1951
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
1924
1952
  return;
1925
1953
  }
1926
1954
  const target = _nullishCoalesce(fleetId, () => ( "<fleet-id>"));
@@ -2083,7 +2111,7 @@ function renderFleetIssuePage(payload) {
2083
2111
  }
2084
2112
  async function handleMonitorFleetsOverviewRead(fleetId, options) {
2085
2113
  const window = fleetChoice(options.window, LEDGER_WINDOWS, "--window");
2086
- const client = new (0, _chunkDF2X7GJGjs.DeeplineClient)();
2114
+ const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
2087
2115
  if (fleetId) {
2088
2116
  const listOnly = [
2089
2117
  options.q !== void 0 ? "--q" : "",
@@ -2098,7 +2126,7 @@ async function handleMonitorFleetsOverviewRead(fleetId, options) {
2098
2126
  const payload2 = await client.monitors.fleets.overview(fleetId, {
2099
2127
  ...window ? { window } : {}
2100
2128
  });
2101
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, payload2, {
2129
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload2, {
2102
2130
  json: options.json,
2103
2131
  text: renderFleetOverviewDetail(payload2, window)
2104
2132
  });
@@ -2114,7 +2142,7 @@ async function handleMonitorFleetsOverviewRead(fleetId, options) {
2114
2142
  ...sort ? { sort } : {},
2115
2143
  ...window ? { window } : {}
2116
2144
  });
2117
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, payload, {
2145
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, {
2118
2146
  json: options.json,
2119
2147
  text: renderFleetOverviewList(payload)
2120
2148
  });
@@ -2125,13 +2153,13 @@ async function handleMonitorFleetsIssues(fleetId, options) {
2125
2153
  if (limit !== void 0 && (limit < 1 || limit > 100)) {
2126
2154
  throw new MonitorsUsageError("--limit must be an integer from 1 to 100.");
2127
2155
  }
2128
- const payload = await new (0, _chunkDF2X7GJGjs.DeeplineClient)().monitors.fleets.issues(fleetId, {
2156
+ const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.fleets.issues(fleetId, {
2129
2157
  ...group ? { group } : {},
2130
2158
  ...options.cause ? { cause: options.cause } : {},
2131
2159
  ...options.cursor ? { cursor: options.cursor } : {},
2132
2160
  ...limit !== void 0 ? { limit } : {}
2133
2161
  });
2134
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, payload, {
2162
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, {
2135
2163
  json: options.json,
2136
2164
  text: renderFleetIssuePage(payload)
2137
2165
  });
@@ -2160,13 +2188,13 @@ async function handleMonitorFleetsReactivate(fleetId, options, idempotencyKey) {
2160
2188
  ${fleetReactivateCommandLine(fleetId, options)}`
2161
2189
  );
2162
2190
  }
2163
- const client = new (0, _chunkDF2X7GJGjs.DeeplineClient)();
2191
+ const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
2164
2192
  const payload = await client.monitors.fleets.reactivate(fleetId, {
2165
2193
  idempotencyKey
2166
2194
  });
2167
2195
  const accepted = { ...payload, idempotency_key: idempotencyKey };
2168
2196
  if (!options.wait) {
2169
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, accepted, {
2197
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, accepted, {
2170
2198
  json: options.json,
2171
2199
  text: `Fleet ${fleetId} \u2014 ${readMonitorState(payload) ? `state ${readMonitorState(payload)}` : "reactivation accepted"}
2172
2200
  idempotency key ${idempotencyKey}
@@ -2189,7 +2217,7 @@ async function handleMonitorFleetsReactivate(fleetId, options, idempotencyKey) {
2189
2217
  const envelope = { ...accepted, ...final };
2190
2218
  const text = renderFleetGet(final);
2191
2219
  if (fleetStatus(final) === "converged") {
2192
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, envelope, { json: options.json, text });
2220
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, envelope, { json: options.json, text });
2193
2221
  return;
2194
2222
  }
2195
2223
  if (fleetStatus(final) === "billing_suspended") {
@@ -2238,7 +2266,7 @@ async function confirmFleetDeactivate(fleetId, plan) {
2238
2266
  }
2239
2267
  }
2240
2268
  async function handleMonitorFleetsDeactivate(fleetId, options, idempotencyKey) {
2241
- const client = new (0, _chunkDF2X7GJGjs.DeeplineClient)();
2269
+ const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
2242
2270
  if (options.dryRun) {
2243
2271
  const plan = await client.monitors.fleets.deactivate(fleetId, {
2244
2272
  dryRun: true,
@@ -2248,7 +2276,7 @@ async function handleMonitorFleetsDeactivate(fleetId, options, idempotencyKey) {
2248
2276
  command: "deepline monitors fleets deactivate",
2249
2277
  mutation: "fleet deactivate"
2250
2278
  });
2251
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, plan, {
2279
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, plan, {
2252
2280
  json: options.json,
2253
2281
  text: renderFleetDeactivatePlan(plan, fleetId)
2254
2282
  });
@@ -2286,7 +2314,7 @@ Preview the blast radius first:
2286
2314
  });
2287
2315
  const accepted = { ...payload, idempotency_key: idempotencyKey };
2288
2316
  if (payload.already === true) {
2289
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, accepted, {
2317
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, accepted, {
2290
2318
  json: options.json,
2291
2319
  text: `Fleet ${fleetId} is already deactivated.
2292
2320
  `
@@ -2298,7 +2326,7 @@ Preview the blast radius first:
2298
2326
  ` + (fleetServerNext(payload) ? `Next: ${fleetServerNext(payload)}
2299
2327
  ` : "");
2300
2328
  if (!options.wait) {
2301
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, accepted, {
2329
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, accepted, {
2302
2330
  json: options.json,
2303
2331
  text: acceptedText
2304
2332
  });
@@ -2320,7 +2348,7 @@ Preview the blast radius first:
2320
2348
  const envelope = { ...accepted, ...final };
2321
2349
  const summary = renderFleetGet(final);
2322
2350
  if (fleetStatus(final) === "deactivated") {
2323
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
2351
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
2324
2352
  return;
2325
2353
  }
2326
2354
  if (fleetStatus(final) === "billing_suspended") {
@@ -2359,7 +2387,7 @@ function handleMonitorFleetsOverview(options) {
2359
2387
  "Agent notes:",
2360
2388
  ...MONITOR_FLEET_AGENT_NOTES.map((note) => ` ${note}`)
2361
2389
  ];
2362
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
2390
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
2363
2391
  {
2364
2392
  schemaVersion: 1,
2365
2393
  lifecycle: MONITOR_FLEET_LIFECYCLE,
@@ -2521,7 +2549,7 @@ function renderMonitorGet(payload) {
2521
2549
  `;
2522
2550
  }
2523
2551
  async function handleMonitorsGet(key, options) {
2524
- const client = new (0, _chunkDF2X7GJGjs.DeeplineClient)();
2552
+ const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
2525
2553
  const payload = await client.monitors.get(key);
2526
2554
  const boundPlays = Array.isArray(payload.bound_plays) ? payload.bound_plays : null;
2527
2555
  const dependents = boundPlays ? {
@@ -2529,24 +2557,24 @@ async function handleMonitorsGet(key, options) {
2529
2557
  truncated: payload.consumer_health_truncated === true
2530
2558
  } : await client.monitors.dependents(key);
2531
2559
  const detail = { ...payload, dependents };
2532
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, detail, {
2560
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, detail, {
2533
2561
  json: options.json,
2534
2562
  text: renderMonitorGet(detail)
2535
2563
  });
2536
2564
  }
2537
2565
  async function handleMonitorsTest(key, payload, options) {
2538
2566
  const explicitPayload = parseJsonObjectArg(payload, "<payload>");
2539
- const result = await new (0, _chunkDF2X7GJGjs.DeeplineClient)().monitors.test(key, explicitPayload);
2567
+ const result = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.test(key, explicitPayload);
2540
2568
  const text = `Monitor diagnostic for ${key}: ${result.accepted === true ? "accepted" : "rejected"}
2541
2569
  mode: validation_only (no rows written, credits spent, or Plays dispatched)
2542
2570
  persisted rows: ${_nullishCoalesce(asFiniteNumber(result.persisted_rows), () => ( 0))}
2543
2571
  dispatched bound Plays: ${_nullishCoalesce(asFiniteNumber(result.dispatched_bound_plays), () => ( 0))}
2544
2572
  `;
2545
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, result, { json: options.json, text });
2573
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, result, { json: options.json, text });
2546
2574
  }
2547
2575
  async function handleMonitorsValidate(key, options) {
2548
- const result = await new (0, _chunkDF2X7GJGjs.DeeplineClient)().monitors.validate(key);
2549
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, result, { json: options.json });
2576
+ const result = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.validate(key);
2577
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, result, { json: options.json });
2550
2578
  if (result.valid === false) process.exitCode = 7;
2551
2579
  }
2552
2580
  async function confirmMonitorDelete(key) {
@@ -2564,14 +2592,14 @@ async function confirmMonitorDelete(key) {
2564
2592
  }
2565
2593
  }
2566
2594
  async function handleMonitorsDelete(key, options) {
2567
- const client = new (0, _chunkDF2X7GJGjs.DeeplineClient)();
2595
+ const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
2568
2596
  if (options.dryRun) {
2569
2597
  const payload2 = await client.monitors.delete(key, { dryRun: true });
2570
2598
  assertMonitorDryRunAcknowledged(payload2, {
2571
2599
  command: "deepline monitors delete",
2572
2600
  mutation: "delete"
2573
2601
  });
2574
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, payload2, {
2602
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload2, {
2575
2603
  json: options.json,
2576
2604
  text: renderMonitorDeletePlan(payload2, key)
2577
2605
  });
@@ -2591,7 +2619,7 @@ async function handleMonitorsDelete(key, options) {
2591
2619
  }
2592
2620
  }
2593
2621
  const payload = await client.monitors.delete(key);
2594
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, payload, { json: options.json });
2622
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, { json: options.json });
2595
2623
  }
2596
2624
  async function handleMonitorsUpdate(key, patch, options) {
2597
2625
  const body = resolveMonitorJsonBody({
@@ -2600,25 +2628,25 @@ async function handleMonitorsUpdate(key, patch, options) {
2600
2628
  argLabel: "<patch>",
2601
2629
  command: `deepline monitors update ${key}`
2602
2630
  });
2603
- const payload = await new (0, _chunkDF2X7GJGjs.DeeplineClient)().monitors.update(key, body);
2604
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, payload, { json: options.json });
2631
+ const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.update(key, body);
2632
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, { json: options.json });
2605
2633
  }
2606
2634
  async function handleMonitorsReactivate(key, options) {
2607
- const client = new (0, _chunkDF2X7GJGjs.DeeplineClient)();
2635
+ const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
2608
2636
  if (options.dryRun) {
2609
2637
  const payload2 = await client.monitors.reactivate(key, { dryRun: true });
2610
2638
  assertMonitorDryRunAcknowledged(payload2, {
2611
2639
  command: "deepline monitors reactivate",
2612
2640
  mutation: "reactivate"
2613
2641
  });
2614
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, payload2, {
2642
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload2, {
2615
2643
  json: options.json,
2616
2644
  text: renderMonitorReactivatePlan(payload2, key)
2617
2645
  });
2618
2646
  return;
2619
2647
  }
2620
2648
  const payload = await client.monitors.reactivate(key);
2621
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, payload, { json: options.json });
2649
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, payload, { json: options.json });
2622
2650
  }
2623
2651
  var MONITOR_VERB_POLL_INTERVAL_MS = 2e3;
2624
2652
  function monitorHealthLine(health) {
@@ -2693,8 +2721,19 @@ function monitorHealthText(health) {
2693
2721
  lines.push(
2694
2722
  ` ${operation.kind} ${operation.run_id} \xB7 ${operation.state}${retry}`
2695
2723
  );
2724
+ lines.push(
2725
+ ` inspect: deepline monitors batch get ${operation.run_id}`
2726
+ );
2696
2727
  }
2697
2728
  }
2729
+ const fleetMembers = health.fleet_members;
2730
+ if (fleetMembers && fleetMembers.failed + fleetMembers.blocked > 0) {
2731
+ lines.push("");
2732
+ lines.push(
2733
+ `fleet members not live: ${fleetMembers.failed} failed, ${fleetMembers.blocked} blocked`
2734
+ );
2735
+ if (fleetMembers.next) lines.push(` next: ${fleetMembers.next}`);
2736
+ }
2698
2737
  if (health.deactivation_reasons.length > 0) {
2699
2738
  lines.push("");
2700
2739
  lines.push("deactivated by Deepline:");
@@ -2740,7 +2779,7 @@ function monitorHealthText(health) {
2740
2779
  `;
2741
2780
  }
2742
2781
  async function handleMonitorsAudit(options) {
2743
- const client = new (0, _chunkDF2X7GJGjs.DeeplineClient)();
2782
+ const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
2744
2783
  const fleetId = _optionalChain([options, 'access', _106 => _106.fleet, 'optionalAccess', _107 => _107.trim, 'call', _108 => _108()]) || void 0;
2745
2784
  const scope = fleetId ? { fleetId } : {};
2746
2785
  let result = await client.monitors.audit(scope);
@@ -2784,7 +2823,7 @@ async function handleMonitorsAudit(options) {
2784
2823
  "",
2785
2824
  monitorHealthText(health)
2786
2825
  ].join("\n");
2787
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
2826
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
2788
2827
  { ...result, audit: { ...result.audit, totals }, health },
2789
2828
  { json: options.json, text }
2790
2829
  );
@@ -2797,10 +2836,10 @@ async function handleMonitorsRepair(options) {
2797
2836
  }
2798
2837
  async function handleMonitorsHealth(options) {
2799
2838
  const fleetId = _optionalChain([options, 'access', _112 => _112.fleet, 'optionalAccess', _113 => _113.trim, 'call', _114 => _114()]) || void 0;
2800
- const health = await new (0, _chunkDF2X7GJGjs.DeeplineClient)().monitors.health(
2839
+ const health = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.health(
2801
2840
  fleetId ? { fleetId } : {}
2802
2841
  );
2803
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, health, {
2842
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, health, {
2804
2843
  json: options.json,
2805
2844
  text: monitorHealthText(health)
2806
2845
  });
@@ -2874,14 +2913,14 @@ async function handleMonitorBatchDeploy(options) {
2874
2913
  "deploy",
2875
2914
  options.idempotencyKey
2876
2915
  );
2877
- const result = await new (0, _chunkDF2X7GJGjs.DeeplineClient)().monitors.batch.submit({
2916
+ const result = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.batch.submit({
2878
2917
  kind: "deploy",
2879
2918
  manifestNdjson,
2880
2919
  dryRun: options.dryRun === true,
2881
2920
  idempotencyKey
2882
2921
  });
2883
2922
  const operation = result.operation;
2884
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
2923
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
2885
2924
  { ...result, idempotency_key: idempotencyKey },
2886
2925
  {
2887
2926
  json: options.json,
@@ -2909,7 +2948,7 @@ async function handleMonitorBatch(kind, options) {
2909
2948
  kind,
2910
2949
  options.idempotencyKey
2911
2950
  );
2912
- const result = await new (0, _chunkDF2X7GJGjs.DeeplineClient)().monitors.batch.submit({
2951
+ const result = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.batch.submit({
2913
2952
  kind,
2914
2953
  scope,
2915
2954
  dryRun: options.dryRun === true,
@@ -2922,14 +2961,14 @@ async function handleMonitorBatch(kind, options) {
2922
2961
  `state ${operation.state} \xB7 retry key ${idempotencyKey}`,
2923
2962
  `inspect: deepline monitors batch get ${operation.runId}`
2924
2963
  ].join("\n");
2925
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
2964
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
2926
2965
  { ...result, idempotency_key: idempotencyKey },
2927
2966
  { json: options.json, text: `${text}
2928
2967
  ` }
2929
2968
  );
2930
2969
  }
2931
2970
  async function handleMonitorBatchGet(operationId, options) {
2932
- const result = await new (0, _chunkDF2X7GJGjs.DeeplineClient)().monitors.batch.get(operationId, {
2971
+ const result = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().monitors.batch.get(operationId, {
2933
2972
  ...options.cursor ? { cursor: options.cursor } : {}
2934
2973
  });
2935
2974
  const summary = _nullishCoalesce(result.operation.summary, () => ( {}));
@@ -2941,7 +2980,7 @@ async function handleMonitorBatchGet(operationId, options) {
2941
2980
  `results ${result.results.page.length}${result.results.isDone ? "" : " (more; pass --cursor)"}`
2942
2981
  ] : []
2943
2982
  ].join("\n");
2944
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, result, { json: options.json, text: `${text}
2983
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, result, { json: options.json, text: `${text}
2945
2984
  ` });
2946
2985
  }
2947
2986
  function registerMonitorsCommands(program) {
@@ -3657,6 +3696,17 @@ ${MONITOR_FLEET_HELP_EPILOG}`
3657
3696
  withJsonOption(
3658
3697
  fleets.command("lint").description(
3659
3698
  "Validate and normalize Fleet JSON without network or provider work."
3699
+ ).addHelpText(
3700
+ "after",
3701
+ `
3702
+ Notes:
3703
+ lint checks the Fleet file's own structure. It does not know each monitor
3704
+ tool's payload rules (for example, contact_job_changes needs a domain), and
3705
+ it never reads source rows. \`fleets sync --file <fleet.json> --dry-run\`
3706
+ checks every rendered member against its tool's rules before anything is
3707
+ sent: a template that is wrong for every row exits 7 naming the field, and
3708
+ individual bad rows are planned as blocked (monitor.invalid_payload).
3709
+ `
3660
3710
  ).requiredOption("--file <path>", "Fleet JSON file, or - for stdin")
3661
3711
  ).action(monitorsAction(handleMonitorFleetLint));
3662
3712
  withJsonOption(
@@ -3703,6 +3753,11 @@ Notes:
3703
3753
  BEFORE any network call: a definition that fails the contract exits 2 and
3704
3754
  never becomes a request. A bare <fleet-id> re-plans the stored definition.
3705
3755
  The plan always shows blocked members; they are never hidden.
3756
+ Every rendered member is checked against its monitor tool's payload rules,
3757
+ dry run included. A template that breaks them for every row exits 7 and
3758
+ names the field; individual bad rows are planned blocked as
3759
+ monitor.invalid_payload, listed by field under invalid_payloads, and the
3760
+ rest of the fleet syncs. Fix the rows, then sync again.
3706
3761
  --wait polls until Deepline reports a terminal status: converged exits 0,
3707
3762
  degraded or billing_suspended exits 6 at once, and a timeout exits 6
3708
3763
  without implying anything broke.
@@ -3762,7 +3817,10 @@ Examples:
3762
3817
  Notes:
3763
3818
  Status is the server's verdict. --check turns it into an exit code so a
3764
3819
  script can branch without parsing output: 0 converged, 6 anything else.
3765
- --drift lists the members that have not settled and why. The detail also
3820
+ --drift lists the members that have not settled and why: failed first, then
3821
+ blocked, then those still in progress. --limit is at most 200; the reply says
3822
+ when more remain. \`fleets issues <fleet-id>\` lists every failed or blocked
3823
+ member by cause with its message, paginated. The detail also
3766
3824
  shows the current Plays that observe this Fleet's output; those bindings are
3767
3825
  read-only here and are defined by each Play's sqlListeners.
3768
3826
 
@@ -3772,7 +3830,7 @@ Examples:
3772
3830
  deepline monitors fleets get account-job-openings --drift --limit 50
3773
3831
  deepline monitors fleets get account-job-openings --check
3774
3832
  `
3775
- ).option("--drift", "Include the members that have not settled, and why").option("--limit <n>", "Maximum drift rows to return").option(
3833
+ ).option("--drift", "Include the members that have not settled, and why").option("--limit <n>", "Maximum drift rows to return (at most 200)").option(
3776
3834
  "--check",
3777
3835
  "Exit 0 when converged and 6 otherwise, for scripts and agents"
3778
3836
  )