deepline 0.3.557 → 0.3.558

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 (142) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/cli/{auth-SGWFS2DS.mjs → auth-JJXTMFWH.mjs} +5 -5
  3. package/dist/cli/auth-TWSGYOWI.js +44 -0
  4. package/dist/cli/{billing-XJZX3JSG.mjs → billing-RBFJMAI5.mjs} +8 -8
  5. package/dist/cli/{billing-G6C2LUSN.js → billing-V3TJKUHY.js} +99 -99
  6. package/dist/cli/{chunk-CDLTF6M2.mjs → chunk-2FFZ5SEU.mjs} +2 -2
  7. package/dist/cli/{chunk-L5JD66EF.js → chunk-4CTBC6Q7.js} +3 -3
  8. package/dist/cli/{chunk-2TTAHHSJ.mjs → chunk-4SVFZCCI.mjs} +2 -2
  9. package/dist/cli/{chunk-DTMUYIUO.js → chunk-5V45LY6Y.js} +9 -9
  10. package/dist/cli/{chunk-B2V6NKX7.js → chunk-67J4K4G2.js} +20 -20
  11. package/dist/cli/{chunk-CPDXS2UK.js → chunk-6ASDTHEN.js} +17 -17
  12. package/dist/cli/{chunk-NWQZIBPY.js → chunk-6BDLYZYL.js} +26 -26
  13. package/dist/cli/{chunk-YUB7OX65.mjs → chunk-6GBQNS6L.mjs} +1 -1
  14. package/dist/cli/{chunk-ZAR6JSI6.js → chunk-6LFPPAMD.js} +3 -3
  15. package/dist/cli/{chunk-TPRMS2D7.mjs → chunk-6PIQC2XE.mjs} +3 -3
  16. package/dist/cli/{chunk-6ZBAXLOR.js → chunk-7Q3EXOLC.js} +12 -12
  17. package/dist/cli/{chunk-NW6NYTYM.mjs → chunk-7Q5I4KEG.mjs} +4 -4
  18. package/dist/cli/{chunk-A6FYP3KU.js → chunk-A5MRMCMW.js} +5 -5
  19. package/dist/cli/{chunk-ARYKF2YT.mjs → chunk-AL4QQKUK.mjs} +2 -2
  20. package/dist/cli/{chunk-5RVSMMQV.mjs → chunk-ARGJDP77.mjs} +2 -2
  21. package/dist/cli/{chunk-ODBQY6MD.js → chunk-BFM2RCC3.js} +2 -2
  22. package/dist/cli/{chunk-JX4X4KAZ.mjs → chunk-BHHCQGUY.mjs} +7 -7
  23. package/dist/cli/{chunk-VLXLKNR4.mjs → chunk-BM4GE67C.mjs} +2 -1
  24. package/dist/cli/{chunk-QUAPOFCA.mjs → chunk-BWWLLK56.mjs} +5 -5
  25. package/dist/cli/{chunk-5H7BLMNH.js → chunk-C7BQBKRZ.js} +4 -4
  26. package/dist/cli/{chunk-ZKLUGMPE.mjs → chunk-CB5DIX5K.mjs} +2 -2
  27. package/dist/cli/{chunk-24PL5QN5.mjs → chunk-CEEUL7ER.mjs} +1 -1
  28. package/dist/cli/{chunk-VVGGQBAV.mjs → chunk-CG3R4ZFS.mjs} +2 -2
  29. package/dist/cli/{chunk-GENZXMNR.mjs → chunk-D4GCU735.mjs} +1 -1
  30. package/dist/cli/{chunk-NHGQHMV7.js → chunk-DDI4LNVC.js} +41 -41
  31. package/dist/cli/{chunk-C6M5TIPZ.mjs → chunk-DJAP2M5M.mjs} +1 -1
  32. package/dist/cli/{chunk-4AE3A4SL.mjs → chunk-ENHQBPR5.mjs} +1 -1
  33. package/dist/cli/{chunk-MZSUMGWN.js → chunk-FCG42RQZ.js} +20 -20
  34. package/dist/cli/{chunk-WZKWSIZS.mjs → chunk-FF3BWNLL.mjs} +1 -1
  35. package/dist/cli/{chunk-JMDLLVIR.js → chunk-FH55SB63.js} +11 -11
  36. package/dist/cli/{chunk-U7LDRRRB.mjs → chunk-GAQ6VSRS.mjs} +1 -1
  37. package/dist/cli/{chunk-NXYBZSRL.mjs → chunk-HUJMFETO.mjs} +2 -2
  38. package/dist/cli/{chunk-K35ZLTN2.js → chunk-I3PX6NGG.js} +5 -5
  39. package/dist/cli/{chunk-XJUHHIH4.mjs → chunk-I57JNBKA.mjs} +5 -5
  40. package/dist/cli/{chunk-UP2CQTGX.js → chunk-IS67LBNV.js} +2 -2
  41. package/dist/cli/{chunk-TW7HFIQG.mjs → chunk-KMNLER7F.mjs} +13 -13
  42. package/dist/cli/{chunk-2YT2TFNX.js → chunk-LHPYCJNL.js} +2 -1
  43. package/dist/cli/{chunk-PITVKXY3.mjs → chunk-LIS6UJSC.mjs} +1 -1
  44. package/dist/cli/{chunk-JY2EJQL5.js → chunk-M4CJGF53.js} +5 -5
  45. package/dist/cli/{chunk-OOCGLW46.mjs → chunk-MAN4IEO4.mjs} +4 -4
  46. package/dist/cli/{chunk-5S2G32ZX.js → chunk-NADXF2C5.js} +53 -53
  47. package/dist/cli/{chunk-C46GRCHZ.js → chunk-NAJAAIEE.js} +48 -48
  48. package/dist/cli/{chunk-JWPJXCD2.js → chunk-OWOUDGHO.js} +23 -23
  49. package/dist/cli/{chunk-JORWYP5P.mjs → chunk-P2MVPTFJ.mjs} +1 -1
  50. package/dist/cli/{chunk-DUXL7U7U.mjs → chunk-P3SLGOGA.mjs} +2 -2
  51. package/dist/cli/{chunk-25SOYGAX.js → chunk-PAJLUB37.js} +274 -274
  52. package/dist/cli/{chunk-L7DGWNF7.js → chunk-QGDU23YW.js} +8 -8
  53. package/dist/cli/{chunk-7AMUXIZ5.js → chunk-QGJ4DYGE.js} +1 -1
  54. package/dist/cli/{chunk-T26CM5LC.js → chunk-RIQYBKHK.js} +2 -2
  55. package/dist/cli/{chunk-OBW2YFHR.mjs → chunk-T6W7SKE7.mjs} +2 -2
  56. package/dist/cli/{chunk-PK6MYC5E.js → chunk-TBLP7HDL.js} +7 -7
  57. package/dist/cli/{chunk-EZNYE6GZ.js → chunk-VPJ663PV.js} +10 -10
  58. package/dist/cli/{chunk-GC4HHDE4.mjs → chunk-WJ7RY3PJ.mjs} +3 -3
  59. package/dist/cli/{chunk-4YNKJTCP.mjs → chunk-XPSSXKBT.mjs} +2 -2
  60. package/dist/cli/{chunk-6C3E6ZZ3.js → chunk-XV4DHKZ2.js} +13 -13
  61. package/dist/cli/{chunk-YQDBHVYJ.mjs → chunk-YBJSDL34.mjs} +5 -5
  62. package/dist/cli/{chunk-WSX76BQX.js → chunk-YJ46MJMT.js} +6 -6
  63. package/dist/cli/{chunk-UVFR7FW4.js → chunk-YVWINBZL.js} +20 -20
  64. package/dist/cli/concurrent-runs-help-4VRUNL3T.js +22 -0
  65. package/dist/cli/{concurrent-runs-help-HSBXPVDN.mjs → concurrent-runs-help-ZWWMHCK4.mjs} +6 -6
  66. package/dist/cli/{csv-OQGWJ4HU.mjs → csv-D76CXYOL.mjs} +4 -4
  67. package/dist/cli/{csv-JEOU3DOF.js → csv-V2FR4SO2.js} +13 -13
  68. package/dist/cli/{db-YHCKYQJI.mjs → db-2D7PD7A3.mjs} +6 -6
  69. package/dist/cli/{db-75WPSR3C.js → db-B23O6Q4O.js} +27 -27
  70. package/dist/cli/{describe-TSW245QQ.mjs → describe-3LG6VO3D.mjs} +21 -21
  71. package/dist/cli/describe-QE4ITFPG.js +50 -0
  72. package/dist/cli/describe-core.js +4 -4
  73. package/dist/cli/describe-core.mjs +3 -3
  74. package/dist/cli/{executions-PNSETDOA.js → executions-4P4UBPMX.js} +8 -8
  75. package/dist/cli/{executions-NW3SQULX.mjs → executions-ORWO4SR4.mjs} +6 -6
  76. package/dist/cli/{feedback-R2Y4APBY.mjs → feedback-AY47IRDD.mjs} +6 -6
  77. package/dist/cli/{feedback-LXTVGS4E.js → feedback-LPHCSOJT.js} +14 -14
  78. package/dist/cli/{git-S7DESBSB.mjs → git-LQGZNBZM.mjs} +5 -5
  79. package/dist/cli/git-XXVGEPEM.js +26 -0
  80. package/dist/cli/index.js +143 -143
  81. package/dist/cli/index.mjs +45 -45
  82. package/dist/cli/{integrations-CQWODJ23.mjs → integrations-NEUZIBQT.mjs} +7 -7
  83. package/dist/cli/{integrations-ZLMM2CMG.js → integrations-QEOUALDR.js} +15 -15
  84. package/dist/cli/{legacy-noops-EGD7QOML.mjs → legacy-noops-4G3DXN57.mjs} +6 -6
  85. package/dist/cli/{legacy-noops-4UDVSN5R.js → legacy-noops-PUO5VKHN.js} +9 -9
  86. package/dist/cli/{mcp-5W4HWAMB.js → mcp-EWAZKABW.js} +24 -24
  87. package/dist/cli/{mcp-Q3SKD3A2.mjs → mcp-USM2QUKK.mjs} +4 -4
  88. package/dist/cli/{monitors-NA6QQRUK.js → monitors-2BI5J46A.js} +100 -100
  89. package/dist/cli/{monitors-ZXHOLBOO.mjs → monitors-T6FJSZCP.mjs} +7 -7
  90. package/dist/cli/{org-O3NSKVA7.mjs → org-BT45O64S.mjs} +6 -6
  91. package/dist/cli/{org-25E7SBZP.js → org-V6V3E7F7.js} +121 -121
  92. package/dist/cli/{outcomes-TEXVO2EV.mjs → outcomes-2T6W554M.mjs} +6 -6
  93. package/dist/cli/{outcomes-O5DS5XSH.js → outcomes-B6RPHM6M.js} +14 -14
  94. package/dist/cli/{play-UFAJEDX4.mjs → play-CBBGJPRI.mjs} +20 -20
  95. package/dist/cli/{play-2FVIRT7Z.js → play-YCFVGEWK.js} +337 -337
  96. package/dist/cli/{providers-4C4TJ5N3.js → providers-AGRUGBIY.js} +9 -9
  97. package/dist/cli/{providers-LCJA4VQ7.mjs → providers-RHBUQFFO.mjs} +6 -6
  98. package/dist/cli/{quickstart-2OAKQFLT.js → quickstart-6N2KPWII.js} +6 -6
  99. package/dist/cli/{quickstart-QOJLPGFW.mjs → quickstart-OPR5NLIQ.mjs} +4 -4
  100. package/dist/cli/{run-SNAFQJWR.mjs → run-HAU2STMQ.mjs} +26 -26
  101. package/dist/cli/{run-SV3EPJGU.js → run-MMANMS4E.js} +48 -48
  102. package/dist/cli/search-7LMUBMDC.js +32 -0
  103. package/dist/cli/{search-KIJZGURG.mjs → search-TGWQMQ2C.mjs} +7 -7
  104. package/dist/cli/{search-output-OESDMVBG.mjs → search-output-DZBYNJEO.mjs} +5 -5
  105. package/dist/cli/{search-output-WRHLYDZX.js → search-output-VVM3DO2H.js} +8 -8
  106. package/dist/cli/{secrets-GH6KF5VR.js → secrets-V5WD552F.js} +15 -15
  107. package/dist/cli/{secrets-5WCCHFM5.mjs → secrets-Z6NEKNWM.mjs} +6 -6
  108. package/dist/cli/{sessions-52MAEUFQ.mjs → sessions-C5GNXSPB.mjs} +6 -6
  109. package/dist/cli/sessions-VYIPZBSR.js +23 -0
  110. package/dist/cli/{settings-5RSARPXF.js → settings-EZPZXJDG.js} +85 -85
  111. package/dist/cli/{settings-HDOBMJ5A.mjs → settings-QUDVUIOJ.mjs} +12 -12
  112. package/dist/cli/{setup-UY3TSZZV.mjs → setup-BCJBVQTI.mjs} +9 -9
  113. package/dist/cli/{setup-4DTCFBOX.js → setup-QY5VVGWQ.js} +49 -49
  114. package/dist/cli/{skills-QUWJHOEZ.mjs → skills-LY2WZ22U.mjs} +7 -7
  115. package/dist/cli/skills-PKNTNDYL.js +37 -0
  116. package/dist/cli/tools-D6CKFZL3.js +57 -0
  117. package/dist/cli/{tools-U2LH642W.mjs → tools-FNCTTFWA.mjs} +19 -19
  118. package/dist/cli/update-E2H2DWH4.js +37 -0
  119. package/dist/cli/{update-3H4E5YJ7.mjs → update-YKQAC4AQ.mjs} +9 -9
  120. package/dist/cli/{views-7WOYBLLQ.mjs → views-5R5NVYHL.mjs} +6 -6
  121. package/dist/cli/{views-2LUZ3ATR.js → views-NBTOBB67.js} +21 -21
  122. package/dist/cli/{workflow-55OASFLG.mjs → workflow-HBDW43GT.mjs} +7 -7
  123. package/dist/cli/{workflow-YME2SGMA.js → workflow-VNPT5VQS.js} +17 -17
  124. package/dist/index.js +9 -9
  125. package/dist/index.mjs +6 -6
  126. package/dist/install-integrity.json +118 -118
  127. package/dist/release.d.mts +1 -1
  128. package/dist/release.d.ts +1 -1
  129. package/dist/release.js +2 -2
  130. package/dist/release.mjs +1 -1
  131. package/dist/server.js +5 -5
  132. package/dist/server.mjs +3 -3
  133. package/package.json +1 -1
  134. package/dist/cli/auth-F7QPLPTB.js +0 -44
  135. package/dist/cli/concurrent-runs-help-3KEUX2GA.js +0 -22
  136. package/dist/cli/describe-ZUATHN4Z.js +0 -50
  137. package/dist/cli/git-GAXMETIP.js +0 -26
  138. package/dist/cli/search-DCHBSXPZ.js +0 -32
  139. package/dist/cli/sessions-MYG6BH6T.js +0 -23
  140. package/dist/cli/skills-EOC2MSQK.js +0 -37
  141. package/dist/cli/tools-AGOX64LC.js +0 -57
  142. package/dist/cli/update-OLLOIH4U.js +0 -37
@@ -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 _chunkJY2EJQL5js = require('./chunk-JY2EJQL5.js');
5
- require('./chunk-L7DGWNF7.js');
4
+ var _chunkM4CJGF53js = require('./chunk-M4CJGF53.js');
5
+ require('./chunk-QGDU23YW.js');
6
6
  require('./chunk-4WAM6TLD.js');
7
7
  require('./chunk-MJTVX4QK.js');
8
8
  require('./chunk-PMH4GLMD.js');
@@ -17,15 +17,15 @@ require('./chunk-UNEMDKXN.js');
17
17
  var _chunkU2LVWCTDjs = require('./chunk-U2LVWCTD.js');
18
18
 
19
19
 
20
- var _chunkZAR6JSI6js = require('./chunk-ZAR6JSI6.js');
20
+ var _chunk6LFPPAMDjs = require('./chunk-6LFPPAMD.js');
21
21
 
22
22
 
23
23
 
24
24
 
25
25
 
26
- var _chunkUVFR7FW4js = require('./chunk-UVFR7FW4.js');
27
- require('./chunk-L5JD66EF.js');
28
- require('./chunk-5H7BLMNH.js');
26
+ var _chunkYVWINBZLjs = require('./chunk-YVWINBZL.js');
27
+ require('./chunk-4CTBC6Q7.js');
28
+ require('./chunk-C7BQBKRZ.js');
29
29
 
30
30
 
31
31
  var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
@@ -34,7 +34,7 @@ require('./chunk-XNYIZMNQ.js');
34
34
 
35
35
  var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
36
36
  require('./chunk-CFJFUVX2.js');
37
- require('./chunk-7AMUXIZ5.js');
37
+ require('./chunk-QGJ4DYGE.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 = _chunkUVFR7FW4js.shouldEmitJson.call(void 0, process.argv.includes("--json"));
115
+ const wantsJson = _chunkYVWINBZLjs.shouldEmitJson.call(void 0, process.argv.includes("--json"));
116
116
  if (wantsJson) {
117
- const payload = _chunkUVFR7FW4js.errorToJsonPayload.call(void 0, error);
118
- _chunkUVFR7FW4js.printJson.call(void 0, {
117
+ const payload = _chunkYVWINBZLjs.errorToJsonPayload.call(void 0, error);
118
+ _chunkYVWINBZLjs.printJson.call(void 0, {
119
119
  ok: false,
120
120
  exitCode,
121
121
  ...next ? { next } : {},
@@ -537,14 +537,14 @@ Preview the plan first with:
537
537
  );
538
538
  }
539
539
  async function handleMonitorsStatus(options) {
540
- const payload = await new (0, _chunkJY2EJQL5js.DeeplineClient)().monitors.status();
540
+ const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().monitors.status();
541
541
  const hasAccess = payload.has_access === true;
542
542
  const reason = typeof payload.reason === "string" && payload.reason.trim() ? payload.reason.trim() : void 0;
543
543
  const text = hasAccess ? `\u2713 You have access to Deepline Monitors${reason ? `
544
544
  ${reason}` : ""}
545
545
  ` : `\u2717 No access to Deepline Monitors${reason ? ` \u2014 ${reason}` : ""}
546
546
  `;
547
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
547
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
548
548
  { has_access: hasAccess, ...reason ? { reason } : {} },
549
549
  { json: options.json, text }
550
550
  );
@@ -615,14 +615,14 @@ async function handleMonitorsAvailable(toolId, options, command) {
615
615
  }
616
616
  }
617
617
  const tool = _nullishCoalesce(toolId, () => ( options.tool));
618
- const payload = await new (0, _chunkJY2EJQL5js.DeeplineClient)().monitors.available(tool, {
618
+ const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().monitors.available(tool, {
619
619
  ...options.provider ? { provider: options.provider } : {},
620
620
  ...options.search ? { search: options.search } : {},
621
621
  ...options.limit ? { limit: options.limit } : {},
622
622
  ...options.full ? { full: true } : {},
623
623
  ...options.compact ? { compact: true } : {}
624
624
  });
625
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, payload, {
625
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, payload, {
626
626
  json: options.json,
627
627
  // Human list view shows id + name + deployed_count ("deployed: N") so
628
628
  // can-deploy vs already-deployed is visible in one view. Describing a
@@ -729,14 +729,14 @@ async function handleMonitorsList(options) {
729
729
  "`--compact` is deprecated and now does nothing; returning the complete monitor records.\n"
730
730
  );
731
731
  }
732
- const payload = await new (0, _chunkJY2EJQL5js.DeeplineClient)().monitors.list({
732
+ const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().monitors.list({
733
733
  ...state ? { state } : {},
734
734
  ...options.status ? { status: options.status } : {},
735
735
  ...options.limit ? { limit: options.limit } : {},
736
736
  ...options.cursor ? { cursor: options.cursor } : {},
737
737
  ...options.includeConsumers ? { includeConsumers: true } : {}
738
738
  });
739
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, payload, {
739
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, payload, {
740
740
  json: options.json,
741
741
  text: renderDeployedListText(
742
742
  payload,
@@ -837,7 +837,7 @@ function renderMonitorLedgerText(payload) {
837
837
  var LEDGER_SORTS = ["recent", "installed", "name", "findings"];
838
838
  var LEDGER_WINDOWS = ["1d", "7d", "30d", "90d", "1y"];
839
839
  async function handleMonitorsLedger(key, options) {
840
- const client = new (0, _chunkJY2EJQL5js.DeeplineClient)();
840
+ const client = new (0, _chunkM4CJGF53js.DeeplineClient)();
841
841
  if (options.findings) {
842
842
  if (!key) {
843
843
  throw new MonitorsUsageError(
@@ -847,12 +847,12 @@ async function handleMonitorsLedger(key, options) {
847
847
  const payload2 = await client.monitors.ledgerFindings(key, {
848
848
  ...options.cursor ? { cursor: options.cursor } : {}
849
849
  });
850
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, payload2, { json: options.json });
850
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, payload2, { json: options.json });
851
851
  return;
852
852
  }
853
853
  if (key) {
854
854
  const payload2 = await client.monitors.ledgerGet(key);
855
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, payload2, { json: options.json });
855
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, payload2, { json: options.json });
856
856
  return;
857
857
  }
858
858
  if (options.sort !== void 0 && !LEDGER_SORTS.includes(options.sort)) {
@@ -876,7 +876,7 @@ async function handleMonitorsLedger(key, options) {
876
876
  ...options.limit ? { limit: options.limit } : {},
877
877
  ...options.cursor ? { cursor: options.cursor } : {}
878
878
  });
879
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, payload, {
879
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, payload, {
880
880
  json: options.json,
881
881
  text: renderMonitorLedgerText(payload)
882
882
  });
@@ -888,10 +888,10 @@ async function handleMonitorsCheck(definition, options) {
888
888
  argLabel: "<definition>",
889
889
  command: "deepline monitors check"
890
890
  });
891
- const payload = await new (0, _chunkJY2EJQL5js.DeeplineClient)().monitors.check(
891
+ const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().monitors.check(
892
892
  body
893
893
  );
894
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, payload, { json: options.json });
894
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
895
895
  }
896
896
  function previewText(value) {
897
897
  return typeof value === "string" && value.trim() ? value.trim() : "-";
@@ -949,22 +949,22 @@ async function handleMonitorsPreview(definition, options) {
949
949
  if (limit !== void 0 && !Number.isInteger(limit)) {
950
950
  throw new MonitorsUsageError("--limit must be a whole number from 1 to 3.");
951
951
  }
952
- const wantsJson = _chunkUVFR7FW4js.shouldEmitJson.call(void 0, options.json);
952
+ const wantsJson = _chunkYVWINBZLjs.shouldEmitJson.call(void 0, options.json);
953
953
  if (options.idempotencyKey === void 0 && wantsJson) {
954
954
  throw new MonitorsUsageError(
955
955
  "--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."
956
956
  );
957
957
  }
958
958
  const idempotencyKey = _nullishCoalesce(options.idempotencyKey, () => ( `monitor-preview-${_crypto.randomUUID.call(void 0, )}`));
959
- const progress = _chunkZAR6JSI6js.createCliProgress.call(void 0, !wantsJson);
959
+ const progress = _chunk6LFPPAMDjs.createCliProgress.call(void 0, !wantsJson);
960
960
  progress.phase(`Preview key: ${idempotencyKey}`);
961
961
  try {
962
- const payload = await new (0, _chunkJY2EJQL5js.DeeplineClient)().monitors.preview(
962
+ const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().monitors.preview(
963
963
  body,
964
964
  { idempotencyKey, ...limit === void 0 ? {} : { limit } }
965
965
  );
966
966
  progress.complete();
967
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, payload, {
967
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, payload, {
968
968
  json: options.json,
969
969
  text: renderMonitorPreviewText(payload)
970
970
  });
@@ -1009,7 +1009,7 @@ async function handleMonitorsDeploy(definition, options) {
1009
1009
  argLabel: "<definition>",
1010
1010
  command: "deepline monitors deploy"
1011
1011
  });
1012
- const client = new (0, _chunkJY2EJQL5js.DeeplineClient)();
1012
+ const client = new (0, _chunkM4CJGF53js.DeeplineClient)();
1013
1013
  const definitionArg = body;
1014
1014
  if (options.dryRun) {
1015
1015
  const payload2 = await client.monitors.deploy(definitionArg, {
@@ -1017,7 +1017,7 @@ async function handleMonitorsDeploy(definition, options) {
1017
1017
  });
1018
1018
  const valid = payload2.valid !== false;
1019
1019
  const hasIdentityConflict = Boolean(_optionalChain([asRecord, 'call', _42 => _42(payload2), 'optionalAccess', _43 => _43.identity_conflict]));
1020
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
1020
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1021
1021
  { dry_run: true, ...payload2 },
1022
1022
  { json: options.json, text: renderMonitorDeployPlan(payload2) }
1023
1023
  );
@@ -1027,7 +1027,7 @@ async function handleMonitorsDeploy(definition, options) {
1027
1027
  return;
1028
1028
  }
1029
1029
  const payload = await client.monitors.deploy(definitionArg);
1030
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, payload, {
1030
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, payload, {
1031
1031
  json: options.json,
1032
1032
  text: renderMonitorDeployCompletion(payload)
1033
1033
  });
@@ -1039,29 +1039,29 @@ async function handleMonitorsSync(definition, options) {
1039
1039
  argLabel: "<definition>",
1040
1040
  command: "deepline monitors sync"
1041
1041
  });
1042
- const payload = await new (0, _chunkJY2EJQL5js.DeeplineClient)().monitors.sync(body, {
1042
+ const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().monitors.sync(body, {
1043
1043
  ...options.dryRun ? { dryRun: true } : {},
1044
1044
  idempotencyKey: _nullishCoalesce(options.idempotencyKey, () => ( monitorJobIdempotencyKey("scalar-sync", void 0)))
1045
1045
  });
1046
1046
  if (options.dryRun) {
1047
1047
  const plan = payload;
1048
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
1048
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1049
1049
  { dry_run: true, ...plan },
1050
1050
  { json: options.json, text: renderMonitorDeployPlan(plan) }
1051
1051
  );
1052
1052
  return;
1053
1053
  }
1054
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, payload, {
1054
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, payload, {
1055
1055
  json: options.json,
1056
1056
  text: renderMonitorJob(payload)
1057
1057
  });
1058
1058
  }
1059
1059
  async function handleScalarMonitorLifecycle(action, key, options) {
1060
- const payload = await new (0, _chunkJY2EJQL5js.DeeplineClient)().monitors[action](key, {
1060
+ const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().monitors[action](key, {
1061
1061
  ...options.dryRun ? { dryRun: true } : {},
1062
1062
  idempotencyKey: _nullishCoalesce(options.idempotencyKey, () => ( monitorJobIdempotencyKey(`${action}-${key}`, void 0)))
1063
1063
  });
1064
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, payload, {
1064
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, payload, {
1065
1065
  json: options.json,
1066
1066
  text: options.dryRun ? void 0 : renderMonitorJob(payload)
1067
1067
  });
@@ -1150,11 +1150,11 @@ async function handleMonitorJobBatchDeploy(options, idempotencyKey) {
1150
1150
  lint.issues.filter((issue) => issue.severity === "error").map((issue) => `${issue.path || "batch"}: ${issue.message}`).join("; ")
1151
1151
  );
1152
1152
  }
1153
- const payload = await new (0, _chunkJY2EJQL5js.DeeplineClient)().monitors.batch.deploy(
1153
+ const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().monitors.batch.deploy(
1154
1154
  lint.normalized.monitors,
1155
1155
  { idempotencyKey }
1156
1156
  );
1157
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
1157
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1158
1158
  {
1159
1159
  ...payload,
1160
1160
  idempotency_key: idempotencyKey,
@@ -1187,7 +1187,7 @@ async function handleNamedMonitorBatchSync(batchId, options) {
1187
1187
  );
1188
1188
  }
1189
1189
  if (options.dryRun) {
1190
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
1190
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1191
1191
  {
1192
1192
  ok: true,
1193
1193
  dry_run: true,
@@ -1204,7 +1204,7 @@ async function handleNamedMonitorBatchSync(batchId, options) {
1204
1204
  "sync",
1205
1205
  options.idempotencyKey
1206
1206
  );
1207
- const payload = await new (0, _chunkJY2EJQL5js.DeeplineClient)().monitors.batches.sync(
1207
+ const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().monitors.batches.sync(
1208
1208
  batchId,
1209
1209
  lint.normalized.monitors,
1210
1210
  {
@@ -1212,14 +1212,14 @@ async function handleNamedMonitorBatchSync(batchId, options) {
1212
1212
  ...parsedGeneration === void 0 ? {} : { expectedGeneration: parsedGeneration }
1213
1213
  }
1214
1214
  );
1215
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
1215
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1216
1216
  { ...payload, idempotency_key: idempotencyKey },
1217
1217
  { json: options.json, text: renderMonitorJob(payload) }
1218
1218
  );
1219
1219
  }
1220
1220
  async function handleNamedMonitorBatchLifecycle(batchId, intent, options) {
1221
1221
  if (options.dryRun) {
1222
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
1222
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1223
1223
  {
1224
1224
  ok: true,
1225
1225
  dry_run: true,
@@ -1235,17 +1235,17 @@ async function handleNamedMonitorBatchLifecycle(batchId, intent, options) {
1235
1235
  intent,
1236
1236
  options.idempotencyKey
1237
1237
  );
1238
- const payload = await new (0, _chunkJY2EJQL5js.DeeplineClient)().monitors.batches[intent](batchId, {
1238
+ const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().monitors.batches[intent](batchId, {
1239
1239
  idempotencyKey
1240
1240
  });
1241
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
1241
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1242
1242
  { ...payload, idempotency_key: idempotencyKey },
1243
1243
  { json: options.json, text: renderMonitorJob(payload) }
1244
1244
  );
1245
1245
  }
1246
1246
  async function handleNamedMonitorBatchGet(batchId, options) {
1247
- const payload = await new (0, _chunkJY2EJQL5js.DeeplineClient)().monitors.batches.get(batchId);
1248
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, payload, {
1247
+ const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().monitors.batches.get(batchId);
1248
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, payload, {
1249
1249
  json: options.json,
1250
1250
  text: renderMonitorJob(payload)
1251
1251
  });
@@ -1259,7 +1259,7 @@ async function handleMonitorBatchLint(options) {
1259
1259
  const result = _chunkU2LVWCTDjs.lintMonitorBatchInput.call(void 0,
1260
1260
  readMonitorDefinitionsJsonFile(options.file)
1261
1261
  );
1262
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
1262
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1263
1263
  {
1264
1264
  ok: !result.issues.some((issue) => issue.severity === "error"),
1265
1265
  ...result.normalized ? { normalized: result.normalized } : {},
@@ -1279,7 +1279,7 @@ async function handleMonitorFleetLint(options) {
1279
1279
  const result = _chunkWOQO3GV4js.lintMonitorFleetInput.call(void 0,
1280
1280
  readMonitorDefinitionsJsonFile(options.file)
1281
1281
  );
1282
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
1282
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1283
1283
  {
1284
1284
  ok: !result.issues.some((issue) => issue.severity === "error"),
1285
1285
  ...result.normalized ? { normalized: result.normalized } : {},
@@ -1291,32 +1291,32 @@ async function handleMonitorFleetLint(options) {
1291
1291
  process.exitCode = 2;
1292
1292
  }
1293
1293
  async function handleMonitorJobGet(jobId, options) {
1294
- const payload = await new (0, _chunkJY2EJQL5js.DeeplineClient)().monitors.jobs.get(jobId);
1295
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, payload, {
1294
+ const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().monitors.jobs.get(jobId);
1295
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, payload, {
1296
1296
  json: options.json,
1297
1297
  text: renderMonitorJob(payload)
1298
1298
  });
1299
1299
  }
1300
1300
  async function handleMonitorJobWait(jobId, options) {
1301
- const payload = await new (0, _chunkJY2EJQL5js.DeeplineClient)().monitors.jobs.wait(jobId, {
1301
+ const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().monitors.jobs.wait(jobId, {
1302
1302
  timeoutMs: fleetTimeoutMs(options.timeout),
1303
1303
  pollIntervalMs: FLEET_POLL_INTERVAL_MS
1304
1304
  });
1305
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, payload, {
1305
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, payload, {
1306
1306
  json: options.json,
1307
1307
  text: renderMonitorJob(payload)
1308
1308
  });
1309
1309
  }
1310
1310
  async function handleMonitorJobLogs(jobId, options) {
1311
1311
  const limit = options.limit ? fleetIntegerOption(options.limit, "--limit") : void 0;
1312
- const payload = await new (0, _chunkJY2EJQL5js.DeeplineClient)().monitors.jobs.logs(jobId, {
1312
+ const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().monitors.jobs.logs(jobId, {
1313
1313
  ...limit === void 0 ? {} : { limit }
1314
1314
  });
1315
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, payload, { json: options.json });
1315
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
1316
1316
  }
1317
1317
  async function handleMonitorJobCancel(jobId, options) {
1318
- const payload = await new (0, _chunkJY2EJQL5js.DeeplineClient)().monitors.jobs.cancel(jobId);
1319
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, payload, {
1318
+ const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().monitors.jobs.cancel(jobId);
1319
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, payload, {
1320
1320
  json: options.json,
1321
1321
  text: renderMonitorJob(payload)
1322
1322
  });
@@ -1659,7 +1659,7 @@ function renderFleetDeactivatePlan(payload, fleetId) {
1659
1659
  `;
1660
1660
  }
1661
1661
  function reportFleetState(payload, error, options) {
1662
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
1662
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1663
1663
  {
1664
1664
  ...payload,
1665
1665
  code: error.code,
@@ -1793,7 +1793,7 @@ async function handleMonitorFleetsInit(fleetId, options) {
1793
1793
  _fs.writeFileSync.call(void 0, file, `${JSON.stringify(definition, null, 2)}
1794
1794
  `, "utf8");
1795
1795
  const next = `deepline monitors fleets deploy --file ${fleetShellArg(file)} --dry-run`;
1796
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
1796
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1797
1797
  { schemaVersion: 2, file, definition, next },
1798
1798
  {
1799
1799
  json: options.json,
@@ -1859,7 +1859,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
1859
1859
  'The Fleet definition has no id. Add a top-level "id" and re-run.'
1860
1860
  );
1861
1861
  }
1862
- const client = new (0, _chunkJY2EJQL5js.DeeplineClient)();
1862
+ const client = new (0, _chunkM4CJGF53js.DeeplineClient)();
1863
1863
  const payload = await client.monitors.fleets.sync(
1864
1864
  _nullishCoalesce(definition, () => ( fleetId)),
1865
1865
  {
@@ -1897,7 +1897,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
1897
1897
  }
1898
1898
  const accepted = { ...payload, idempotency_key: idempotencyKey };
1899
1899
  if (!options.wait || options.dryRun) {
1900
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, accepted, {
1900
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, accepted, {
1901
1901
  json: options.json,
1902
1902
  text: renderFleetSync(payload, {
1903
1903
  fleetId,
@@ -1923,7 +1923,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
1923
1923
  const status = fleetStatus(final);
1924
1924
  const summary = renderFleetGet(final);
1925
1925
  if (status === "converged") {
1926
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
1926
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
1927
1927
  return;
1928
1928
  }
1929
1929
  if (status === "billing_suspended") {
@@ -1985,14 +1985,14 @@ async function handleMonitorFleetsGet(fleetId, options) {
1985
1985
  `
1986
1986
  );
1987
1987
  }
1988
- const client = new (0, _chunkJY2EJQL5js.DeeplineClient)();
1988
+ const client = new (0, _chunkM4CJGF53js.DeeplineClient)();
1989
1989
  const payload = await client.monitors.fleets.get(fleetId, {
1990
1990
  ...options.drift ? { drift: true } : {},
1991
1991
  ...limit !== void 0 ? { limit } : {}
1992
1992
  });
1993
1993
  const text = fleetId ? renderFleetGet(payload) : renderFleetList(payload);
1994
1994
  if (!options.check) {
1995
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
1995
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
1996
1996
  return;
1997
1997
  }
1998
1998
  const statuses = fleetId ? [fleetStatus(payload)] : (Array.isArray(payload.fleets) ? payload.fleets : []).map(
@@ -2000,7 +2000,7 @@ async function handleMonitorFleetsGet(fleetId, options) {
2000
2000
  );
2001
2001
  const unconverged = statuses.filter((status) => status !== "converged");
2002
2002
  if (unconverged.length === 0) {
2003
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
2003
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
2004
2004
  return;
2005
2005
  }
2006
2006
  const target = _nullishCoalesce(fleetId, () => ( "<fleet-id>"));
@@ -2165,7 +2165,7 @@ function renderFleetIssuePage(payload) {
2165
2165
  }
2166
2166
  async function handleMonitorFleetsOverviewRead(fleetId, options) {
2167
2167
  const window = fleetChoice(options.window, LEDGER_WINDOWS, "--window");
2168
- const client = new (0, _chunkJY2EJQL5js.DeeplineClient)();
2168
+ const client = new (0, _chunkM4CJGF53js.DeeplineClient)();
2169
2169
  if (fleetId) {
2170
2170
  const listOnly = [
2171
2171
  options.q !== void 0 ? "--q" : "",
@@ -2180,7 +2180,7 @@ async function handleMonitorFleetsOverviewRead(fleetId, options) {
2180
2180
  const payload2 = await client.monitors.fleets.overview(fleetId, {
2181
2181
  ...window ? { window } : {}
2182
2182
  });
2183
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, payload2, {
2183
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, payload2, {
2184
2184
  json: options.json,
2185
2185
  text: renderFleetOverviewDetail(payload2, window)
2186
2186
  });
@@ -2196,7 +2196,7 @@ async function handleMonitorFleetsOverviewRead(fleetId, options) {
2196
2196
  ...sort ? { sort } : {},
2197
2197
  ...window ? { window } : {}
2198
2198
  });
2199
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, payload, {
2199
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, payload, {
2200
2200
  json: options.json,
2201
2201
  text: renderFleetOverviewList(payload)
2202
2202
  });
@@ -2207,13 +2207,13 @@ async function handleMonitorFleetsIssues(fleetId, options) {
2207
2207
  if (limit !== void 0 && (limit < 1 || limit > 100)) {
2208
2208
  throw new MonitorsUsageError("--limit must be an integer from 1 to 100.");
2209
2209
  }
2210
- const payload = await new (0, _chunkJY2EJQL5js.DeeplineClient)().monitors.fleets.issues(fleetId, {
2210
+ const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().monitors.fleets.issues(fleetId, {
2211
2211
  ...group ? { group } : {},
2212
2212
  ...options.cause ? { cause: options.cause } : {},
2213
2213
  ...options.cursor ? { cursor: options.cursor } : {},
2214
2214
  ...limit !== void 0 ? { limit } : {}
2215
2215
  });
2216
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, payload, {
2216
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, payload, {
2217
2217
  json: options.json,
2218
2218
  text: renderFleetIssuePage(payload)
2219
2219
  });
@@ -2242,13 +2242,13 @@ async function handleMonitorFleetsReactivate(fleetId, options, idempotencyKey) {
2242
2242
  ${fleetReactivateCommandLine(fleetId, options)}`
2243
2243
  );
2244
2244
  }
2245
- const client = new (0, _chunkJY2EJQL5js.DeeplineClient)();
2245
+ const client = new (0, _chunkM4CJGF53js.DeeplineClient)();
2246
2246
  const payload = await client.monitors.fleets.reactivate(fleetId, {
2247
2247
  idempotencyKey
2248
2248
  });
2249
2249
  const accepted = { ...payload, idempotency_key: idempotencyKey };
2250
2250
  if (!options.wait) {
2251
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, accepted, {
2251
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, accepted, {
2252
2252
  json: options.json,
2253
2253
  text: `Fleet ${fleetId} \u2014 ${readMonitorState(payload) ? `state ${readMonitorState(payload)}` : "reactivation accepted"}
2254
2254
  idempotency key ${idempotencyKey}
@@ -2271,7 +2271,7 @@ async function handleMonitorFleetsReactivate(fleetId, options, idempotencyKey) {
2271
2271
  const envelope = { ...accepted, ...final };
2272
2272
  const text = renderFleetGet(final);
2273
2273
  if (fleetStatus(final) === "converged") {
2274
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, envelope, { json: options.json, text });
2274
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text });
2275
2275
  return;
2276
2276
  }
2277
2277
  if (fleetStatus(final) === "billing_suspended") {
@@ -2320,7 +2320,7 @@ async function confirmFleetDeactivate(fleetId, plan) {
2320
2320
  }
2321
2321
  }
2322
2322
  async function handleMonitorFleetsDeactivate(fleetId, options, idempotencyKey) {
2323
- const client = new (0, _chunkJY2EJQL5js.DeeplineClient)();
2323
+ const client = new (0, _chunkM4CJGF53js.DeeplineClient)();
2324
2324
  if (options.dryRun) {
2325
2325
  const plan = await client.monitors.fleets.deactivate(fleetId, {
2326
2326
  dryRun: true,
@@ -2330,7 +2330,7 @@ async function handleMonitorFleetsDeactivate(fleetId, options, idempotencyKey) {
2330
2330
  command: "deepline monitors fleets deactivate",
2331
2331
  mutation: "fleet deactivate"
2332
2332
  });
2333
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, plan, {
2333
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, plan, {
2334
2334
  json: options.json,
2335
2335
  text: renderFleetDeactivatePlan(plan, fleetId)
2336
2336
  });
@@ -2368,7 +2368,7 @@ Preview the blast radius first:
2368
2368
  });
2369
2369
  const accepted = { ...payload, idempotency_key: idempotencyKey };
2370
2370
  if (payload.already === true) {
2371
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, accepted, {
2371
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, accepted, {
2372
2372
  json: options.json,
2373
2373
  text: `Fleet ${fleetId} is already deactivated.
2374
2374
  `
@@ -2380,7 +2380,7 @@ Preview the blast radius first:
2380
2380
  ` + (fleetServerNext(payload) ? `Next: ${fleetServerNext(payload)}
2381
2381
  ` : "");
2382
2382
  if (!options.wait) {
2383
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, accepted, {
2383
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, accepted, {
2384
2384
  json: options.json,
2385
2385
  text: acceptedText
2386
2386
  });
@@ -2402,7 +2402,7 @@ Preview the blast radius first:
2402
2402
  const envelope = { ...accepted, ...final };
2403
2403
  const summary = renderFleetGet(final);
2404
2404
  if (fleetStatus(final) === "deactivated") {
2405
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
2405
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
2406
2406
  return;
2407
2407
  }
2408
2408
  if (fleetStatus(final) === "billing_suspended") {
@@ -2441,7 +2441,7 @@ function handleMonitorFleetsOverview(options) {
2441
2441
  "Agent notes:",
2442
2442
  ...MONITOR_FLEET_AGENT_NOTES.map((note) => ` ${note}`)
2443
2443
  ];
2444
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
2444
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
2445
2445
  {
2446
2446
  schemaVersion: 1,
2447
2447
  lifecycle: MONITOR_FLEET_LIFECYCLE,
@@ -2618,7 +2618,7 @@ function renderMonitorGet(payload) {
2618
2618
  `;
2619
2619
  }
2620
2620
  async function handleMonitorsGet(key, options) {
2621
- const client = new (0, _chunkJY2EJQL5js.DeeplineClient)();
2621
+ const client = new (0, _chunkM4CJGF53js.DeeplineClient)();
2622
2622
  const payload = await client.monitors.get(key);
2623
2623
  const boundPlays = Array.isArray(payload.bound_plays) ? payload.bound_plays : null;
2624
2624
  const dependents = boundPlays ? {
@@ -2626,24 +2626,24 @@ async function handleMonitorsGet(key, options) {
2626
2626
  truncated: payload.consumer_health_truncated === true
2627
2627
  } : await client.monitors.dependents(key);
2628
2628
  const detail = { ...payload, dependents };
2629
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, detail, {
2629
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, detail, {
2630
2630
  json: options.json,
2631
2631
  text: renderMonitorGet(detail)
2632
2632
  });
2633
2633
  }
2634
2634
  async function handleMonitorsTest(key, payload, options) {
2635
2635
  const explicitPayload = parseJsonObjectArg(payload, "<payload>");
2636
- const result = await new (0, _chunkJY2EJQL5js.DeeplineClient)().monitors.test(key, explicitPayload);
2636
+ const result = await new (0, _chunkM4CJGF53js.DeeplineClient)().monitors.test(key, explicitPayload);
2637
2637
  const text = `Monitor diagnostic for ${key}: ${result.accepted === true ? "accepted" : "rejected"}
2638
2638
  mode: validation_only (no rows written, credits spent, or Plays dispatched)
2639
2639
  persisted rows: ${_nullishCoalesce(asFiniteNumber(result.persisted_rows), () => ( 0))}
2640
2640
  dispatched bound Plays: ${_nullishCoalesce(asFiniteNumber(result.dispatched_bound_plays), () => ( 0))}
2641
2641
  `;
2642
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, result, { json: options.json, text });
2642
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, result, { json: options.json, text });
2643
2643
  }
2644
2644
  async function handleMonitorsValidate(key, options) {
2645
- const result = await new (0, _chunkJY2EJQL5js.DeeplineClient)().monitors.validate(key);
2646
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, result, { json: options.json });
2645
+ const result = await new (0, _chunkM4CJGF53js.DeeplineClient)().monitors.validate(key);
2646
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, result, { json: options.json });
2647
2647
  if (result.valid === false) process.exitCode = 7;
2648
2648
  }
2649
2649
  async function confirmMonitorDelete(key) {
@@ -2661,14 +2661,14 @@ async function confirmMonitorDelete(key) {
2661
2661
  }
2662
2662
  }
2663
2663
  async function handleMonitorsDelete(key, options) {
2664
- const client = new (0, _chunkJY2EJQL5js.DeeplineClient)();
2664
+ const client = new (0, _chunkM4CJGF53js.DeeplineClient)();
2665
2665
  if (options.dryRun) {
2666
2666
  const payload2 = await client.monitors.delete(key, { dryRun: true });
2667
2667
  assertMonitorDryRunAcknowledged(payload2, {
2668
2668
  command: "deepline monitors delete",
2669
2669
  mutation: "delete"
2670
2670
  });
2671
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, payload2, {
2671
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, payload2, {
2672
2672
  json: options.json,
2673
2673
  text: renderMonitorDeletePlan(payload2, key)
2674
2674
  });
@@ -2688,7 +2688,7 @@ async function handleMonitorsDelete(key, options) {
2688
2688
  }
2689
2689
  }
2690
2690
  const payload = await client.monitors.delete(key);
2691
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, payload, { json: options.json });
2691
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
2692
2692
  }
2693
2693
  async function handleMonitorsUpdate(key, patch, options) {
2694
2694
  const body = resolveMonitorJsonBody({
@@ -2697,25 +2697,25 @@ async function handleMonitorsUpdate(key, patch, options) {
2697
2697
  argLabel: "<patch>",
2698
2698
  command: `deepline monitors update ${key}`
2699
2699
  });
2700
- const payload = await new (0, _chunkJY2EJQL5js.DeeplineClient)().monitors.update(key, body);
2701
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, payload, { json: options.json });
2700
+ const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().monitors.update(key, body);
2701
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
2702
2702
  }
2703
2703
  async function handleMonitorsReactivate(key, options) {
2704
- const client = new (0, _chunkJY2EJQL5js.DeeplineClient)();
2704
+ const client = new (0, _chunkM4CJGF53js.DeeplineClient)();
2705
2705
  if (options.dryRun) {
2706
2706
  const payload2 = await client.monitors.reactivate(key, { dryRun: true });
2707
2707
  assertMonitorDryRunAcknowledged(payload2, {
2708
2708
  command: "deepline monitors reactivate",
2709
2709
  mutation: "reactivate"
2710
2710
  });
2711
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, payload2, {
2711
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, payload2, {
2712
2712
  json: options.json,
2713
2713
  text: renderMonitorReactivatePlan(payload2, key)
2714
2714
  });
2715
2715
  return;
2716
2716
  }
2717
2717
  const payload = await client.monitors.reactivate(key);
2718
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, payload, { json: options.json });
2718
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
2719
2719
  }
2720
2720
  var MONITOR_VERB_POLL_INTERVAL_MS = 2e3;
2721
2721
  function monitorHealthLine(health) {
@@ -2848,7 +2848,7 @@ function monitorHealthText(health) {
2848
2848
  `;
2849
2849
  }
2850
2850
  async function handleMonitorsAudit(options) {
2851
- const client = new (0, _chunkJY2EJQL5js.DeeplineClient)();
2851
+ const client = new (0, _chunkM4CJGF53js.DeeplineClient)();
2852
2852
  const fleetId = _optionalChain([options, 'access', _109 => _109.fleet, 'optionalAccess', _110 => _110.trim, 'call', _111 => _111()]) || void 0;
2853
2853
  const scope = fleetId ? { fleetId } : {};
2854
2854
  let result = await client.monitors.audit(scope);
@@ -2892,7 +2892,7 @@ async function handleMonitorsAudit(options) {
2892
2892
  "",
2893
2893
  monitorHealthText(health)
2894
2894
  ].join("\n");
2895
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
2895
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
2896
2896
  { ...result, audit: { ...result.audit, totals }, health },
2897
2897
  { json: options.json, text }
2898
2898
  );
@@ -2905,10 +2905,10 @@ async function handleMonitorsRepair(options) {
2905
2905
  }
2906
2906
  async function handleMonitorsHealth(options) {
2907
2907
  const fleetId = _optionalChain([options, 'access', _115 => _115.fleet, 'optionalAccess', _116 => _116.trim, 'call', _117 => _117()]) || void 0;
2908
- const health = await new (0, _chunkJY2EJQL5js.DeeplineClient)().monitors.health(
2908
+ const health = await new (0, _chunkM4CJGF53js.DeeplineClient)().monitors.health(
2909
2909
  fleetId ? { fleetId } : {}
2910
2910
  );
2911
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, health, {
2911
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, health, {
2912
2912
  json: options.json,
2913
2913
  text: monitorHealthText(health)
2914
2914
  });
@@ -2982,14 +2982,14 @@ async function handleMonitorBatchDeploy(options) {
2982
2982
  "deploy",
2983
2983
  options.idempotencyKey
2984
2984
  );
2985
- const result = await new (0, _chunkJY2EJQL5js.DeeplineClient)().monitors.batch.submit({
2985
+ const result = await new (0, _chunkM4CJGF53js.DeeplineClient)().monitors.batch.submit({
2986
2986
  kind: "deploy",
2987
2987
  manifestNdjson,
2988
2988
  dryRun: options.dryRun === true,
2989
2989
  idempotencyKey
2990
2990
  });
2991
2991
  const operation = result.operation;
2992
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
2992
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
2993
2993
  { ...result, idempotency_key: idempotencyKey },
2994
2994
  {
2995
2995
  json: options.json,
@@ -3017,7 +3017,7 @@ async function handleMonitorBatch(kind, options) {
3017
3017
  kind,
3018
3018
  options.idempotencyKey
3019
3019
  );
3020
- const result = await new (0, _chunkJY2EJQL5js.DeeplineClient)().monitors.batch.submit({
3020
+ const result = await new (0, _chunkM4CJGF53js.DeeplineClient)().monitors.batch.submit({
3021
3021
  kind,
3022
3022
  scope,
3023
3023
  dryRun: options.dryRun === true,
@@ -3030,14 +3030,14 @@ async function handleMonitorBatch(kind, options) {
3030
3030
  `state ${operation.state} \xB7 retry key ${idempotencyKey}`,
3031
3031
  `inspect: deepline monitors batch get ${operation.runId}`
3032
3032
  ].join("\n");
3033
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0,
3033
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
3034
3034
  { ...result, idempotency_key: idempotencyKey },
3035
3035
  { json: options.json, text: `${text}
3036
3036
  ` }
3037
3037
  );
3038
3038
  }
3039
3039
  async function handleMonitorBatchGet(operationId, options) {
3040
- const result = await new (0, _chunkJY2EJQL5js.DeeplineClient)().monitors.batch.get(operationId, {
3040
+ const result = await new (0, _chunkM4CJGF53js.DeeplineClient)().monitors.batch.get(operationId, {
3041
3041
  ...options.cursor ? { cursor: options.cursor } : {}
3042
3042
  });
3043
3043
  const summary = _nullishCoalesce(result.operation.summary, () => ( {}));
@@ -3049,7 +3049,7 @@ async function handleMonitorBatchGet(operationId, options) {
3049
3049
  `results ${result.results.page.length}${result.results.isDone ? "" : " (more; pass --cursor)"}`
3050
3050
  ] : []
3051
3051
  ].join("\n");
3052
- _chunkUVFR7FW4js.printCommandEnvelope.call(void 0, result, { json: options.json, text: `${text}
3052
+ _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, result, { json: options.json, text: `${text}
3053
3053
  ` });
3054
3054
  }
3055
3055
  function registerMonitorsCommands(program) {