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
  import "./chunk-EXMLR72R.mjs";
2
2
  import {
3
3
  DeeplineClient
4
- } from "./chunk-GV45TTI6.mjs";
5
- import "./chunk-Q7ZOWNKR.mjs";
4
+ } from "./chunk-HJR2DDJS.mjs";
5
+ import "./chunk-OAKWSLKS.mjs";
6
6
  import "./chunk-HXIR3VQL.mjs";
7
7
  import "./chunk-LX35AXTN.mjs";
8
8
  import "./chunk-PSX3WHIH.mjs";
@@ -18,23 +18,23 @@ import {
18
18
  } from "./chunk-ZG7BOECV.mjs";
19
19
  import {
20
20
  createCliProgress
21
- } from "./chunk-YIRVKMON.mjs";
21
+ } from "./chunk-X5KOHDJN.mjs";
22
22
  import {
23
23
  errorToJsonPayload,
24
24
  printCommandEnvelope,
25
25
  printJson,
26
26
  shouldEmitJson
27
- } from "./chunk-DVDWAC2M.mjs";
28
- import "./chunk-HXM2JUGD.mjs";
29
- import "./chunk-ZHY4T5M6.mjs";
27
+ } from "./chunk-VXTTAYOT.mjs";
28
+ import "./chunk-6Y5TU3R7.mjs";
29
+ import "./chunk-RO66FPTS.mjs";
30
30
  import {
31
31
  AuthError
32
- } from "./chunk-CQBIO6HW.mjs";
32
+ } from "./chunk-NURW5XH4.mjs";
33
33
  import "./chunk-DLIRSHV6.mjs";
34
34
  import {
35
35
  DeeplineError
36
36
  } from "./chunk-JL2OTMSG.mjs";
37
- import "./chunk-PFGOCUH3.mjs";
37
+ import "./chunk-7MY7KWJS.mjs";
38
38
  import "./chunk-WZYKRD7T.mjs";
39
39
  import "./chunk-KRD6H754.mjs";
40
40
 
@@ -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: asString(row.since) ?? "-",
1541
1546
  detail: 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(
@@ -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 += 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,6 +1927,12 @@ async function handleMonitorFleetsGet(fleetId, options) {
1905
1927
  );
1906
1928
  }
1907
1929
  const limit = options.limit === void 0 ? void 0 : fleetIntegerOption(options.limit, "--limit");
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
+ }
1908
1936
  const client = new DeeplineClient();
1909
1937
  const payload = await client.monitors.fleets.get(fleetId, {
1910
1938
  ...options.drift ? { drift: true } : {},
@@ -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:");
@@ -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
  )