deepline 0.3.579 → 0.3.581

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 (179) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +13 -2
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/monitors/billing/public-pricing.ts +470 -15
  4. package/dist/bundling-sources/shared_libs/monitors/billing/tamradar.ts +12 -0
  5. package/dist/bundling-sources/shared_libs/monitors/billing/types.ts +59 -0
  6. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +5 -3
  7. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +42 -2
  8. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +49 -11
  9. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +13 -4
  10. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +139 -16
  11. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +39 -2
  12. package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +12 -0
  13. package/dist/bundling-sources/shared_libs/plays/sandbox-runtime-limits.ts +20 -0
  14. package/dist/cli/{agents-D5RZEVXQ.js → agents-UDTRMWPA.js} +81 -39
  15. package/dist/cli/{agents-FJTRTYCL.mjs → agents-VDQSVDSM.mjs} +51 -9
  16. package/dist/cli/{auth-OMYIDVXZ.mjs → auth-SRN5FXUQ.mjs} +5 -5
  17. package/dist/cli/auth-UYQHRHYR.js +44 -0
  18. package/dist/cli/{billing-EWFUDLQ7.js → billing-HGHIOFSA.js} +162 -159
  19. package/dist/cli/{billing-XK3LBNYS.mjs → billing-PR2SIEJM.mjs} +69 -66
  20. package/dist/cli/{chunk-I2TSRLOI.mjs → chunk-2MIJMDGF.mjs} +1 -1
  21. package/dist/cli/{chunk-TVAFWAOQ.js → chunk-2RLMHWXW.js} +3 -3
  22. package/dist/cli/{chunk-OSRATALX.mjs → chunk-3FMGBMT3.mjs} +1 -1
  23. package/dist/cli/{chunk-KIIOKQFY.mjs → chunk-3I6GA5QW.mjs} +7 -3
  24. package/dist/cli/{chunk-UYCBG75H.js → chunk-3LP7J63L.js} +5 -5
  25. package/dist/cli/{chunk-QA55PGJH.js → chunk-3S5KFHQH.js} +7 -7
  26. package/dist/cli/{chunk-SZIWFQI2.mjs → chunk-46EBSUZF.mjs} +3 -3
  27. package/dist/cli/{chunk-7HOYKXVY.js → chunk-5XVDZVCR.js} +217 -213
  28. package/dist/cli/{chunk-PLWZ3NB7.js → chunk-6U3THMRI.js} +5 -5
  29. package/dist/cli/{chunk-LRZGS6RZ.mjs → chunk-7MMEW2WU.mjs} +1 -1
  30. package/dist/cli/{chunk-KWQHQG53.js → chunk-7VOSQARZ.js} +6 -6
  31. package/dist/cli/{chunk-72TWLORR.js → chunk-A4IOPFEJ.js} +3 -3
  32. package/dist/cli/{chunk-S2OXA7QS.mjs → chunk-ALXIC5U5.mjs} +7 -7
  33. package/dist/cli/{chunk-6EVVUVU3.mjs → chunk-BDNQDWGI.mjs} +2 -2
  34. package/dist/cli/{chunk-HEZW2IDK.js → chunk-BQL34VOQ.js} +279 -276
  35. package/dist/cli/{chunk-FKXSIIR4.js → chunk-BULUFFST.js} +15 -15
  36. package/dist/cli/{chunk-NONMY5CY.mjs → chunk-CDIMI54H.mjs} +2 -2
  37. package/dist/cli/{chunk-NWZU6HL4.js → chunk-CN4MXBZ3.js} +13 -13
  38. package/dist/cli/{chunk-XTM6NOJ6.js → chunk-CNRPE3AE.js} +53 -53
  39. package/dist/cli/{chunk-LYBZLA6F.mjs → chunk-DZMQV5FL.mjs} +2 -2
  40. package/dist/cli/{chunk-NKUXW4WB.js → chunk-E2EGQNOS.js} +2 -2
  41. package/dist/cli/{chunk-BLEYV4BJ.js → chunk-E5ITZIWK.js} +21 -21
  42. package/dist/cli/{chunk-N6X2UKYQ.mjs → chunk-E5O4CMHZ.mjs} +2 -2
  43. package/dist/cli/{chunk-X6LPC3SU.mjs → chunk-EHTD65FE.mjs} +1 -1
  44. package/dist/cli/{chunk-E2G2DNAB.js → chunk-EP3GZAHK.js} +7 -7
  45. package/dist/cli/{chunk-NOMO5GPI.js → chunk-FXSDDEAR.js} +1 -1
  46. package/dist/cli/{chunk-AP7PIGL5.js → chunk-INRXX4SX.js} +41 -41
  47. package/dist/cli/{chunk-XQYBBCFI.mjs → chunk-INXRW5AF.mjs} +2 -2
  48. package/dist/cli/{chunk-7JMCRYXU.js → chunk-IT3F7P6O.js} +10 -10
  49. package/dist/cli/{chunk-LYJ2NSHD.js → chunk-J6ITN2X6.js} +13 -13
  50. package/dist/cli/{chunk-LCPJR3IY.js → chunk-JQK42HZQ.js} +2 -2
  51. package/dist/cli/{chunk-HGUFTSB5.mjs → chunk-KDITCSPN.mjs} +27 -1
  52. package/dist/cli/{chunk-VFIIRK7S.mjs → chunk-KLBIHDZB.mjs} +2 -2
  53. package/dist/cli/{chunk-Y2ND6PPW.js → chunk-KO6OLYSD.js} +48 -48
  54. package/dist/cli/{chunk-K2BU67UC.js → chunk-LJZESBNY.js} +2 -2
  55. package/dist/cli/{chunk-PGRRMVQ5.js → chunk-MOZDEYQC.js} +2 -1
  56. package/dist/cli/{chunk-DH736ASH.js → chunk-MSCYYFLY.js} +20 -20
  57. package/dist/cli/{chunk-JFS4KHA3.mjs → chunk-N5VJVVVV.mjs} +5 -5
  58. package/dist/cli/{chunk-G5CZDRY3.js → chunk-O5FIWG2O.js} +26 -26
  59. package/dist/cli/{chunk-YCWRKSLB.mjs → chunk-OVJWDFIL.mjs} +2 -2
  60. package/dist/cli/{chunk-WQQQP3FH.mjs → chunk-P5ZZY4RM.mjs} +4 -4
  61. package/dist/cli/{chunk-WWSGXX6U.js → chunk-PLGJG5FX.js} +5 -5
  62. package/dist/cli/{chunk-BZ4M7OFO.mjs → chunk-QXQBTTRD.mjs} +1 -1
  63. package/dist/cli/{chunk-F57NDSKT.mjs → chunk-RA3BWUTD.mjs} +5 -5
  64. package/dist/cli/{chunk-Q4VKMF3B.js → chunk-S2YKIWCD.js} +17 -17
  65. package/dist/cli/{chunk-DTQBQSUU.mjs → chunk-SECFDB27.mjs} +1 -0
  66. package/dist/cli/{chunk-6MIEJJSO.js → chunk-SNYH4QY2.js} +4 -4
  67. package/dist/cli/{chunk-6GON36H3.mjs → chunk-SZ76UE7C.mjs} +17 -14
  68. package/dist/cli/{chunk-6DMGKAWO.mjs → chunk-ULU4MEXN.mjs} +2 -2
  69. package/dist/cli/{chunk-ABH6PUDZ.js → chunk-VJR4CKYJ.js} +23 -23
  70. package/dist/cli/{chunk-TFNDOH4W.mjs → chunk-VNW454PP.mjs} +1 -1
  71. package/dist/cli/{chunk-7SZCJC4R.mjs → chunk-VTPMBOHZ.mjs} +2 -2
  72. package/dist/cli/{chunk-6NYHMXC7.mjs → chunk-VVENTTSA.mjs} +1 -1
  73. package/dist/cli/{chunk-OOGP737I.js → chunk-VWPM4OIC.js} +20 -20
  74. package/dist/cli/{chunk-27ZYRIQC.mjs → chunk-WCNJSZHC.mjs} +5 -5
  75. package/dist/cli/{chunk-KQAEXBVQ.mjs → chunk-WS5ZX4RB.mjs} +3 -3
  76. package/dist/cli/{chunk-SUHCW7U5.mjs → chunk-WVFDPC4K.mjs} +3 -3
  77. package/dist/cli/{chunk-44NTNNKC.js → chunk-Y36SQMSN.js} +28 -2
  78. package/dist/cli/{chunk-LV2LGW2Q.mjs → chunk-YTPXKG4C.mjs} +1 -1
  79. package/dist/cli/{chunk-3Z4TVZE7.mjs → chunk-Z3MJX3PP.mjs} +1 -1
  80. package/dist/cli/{chunk-LQ45LCH7.js → chunk-ZAKNDIK7.js} +9 -9
  81. package/dist/cli/{chunk-M4YWN5BT.mjs → chunk-ZTKLJADJ.mjs} +4 -4
  82. package/dist/cli/command-docs.js +4 -4
  83. package/dist/cli/command-docs.mjs +3 -3
  84. package/dist/cli/concurrent-runs-help-QWDTLZUX.js +22 -0
  85. package/dist/cli/{concurrent-runs-help-IQBZBTD5.mjs → concurrent-runs-help-Z27MIIH3.mjs} +6 -6
  86. package/dist/cli/{csv-T7TWLIGD.js → csv-4TP36F5O.js} +13 -13
  87. package/dist/cli/{csv-6BEOWTGM.mjs → csv-4YFTMVWQ.mjs} +4 -4
  88. package/dist/cli/{db-MFTUN3DF.js → db-L5EGGO72.js} +27 -27
  89. package/dist/cli/{db-FA5QGXZ7.mjs → db-U5KR6SYI.mjs} +6 -6
  90. package/dist/cli/describe-G3SUS76P.js +50 -0
  91. package/dist/cli/{describe-TITEQNVE.mjs → describe-LZXXSQ26.mjs} +21 -21
  92. package/dist/cli/describe-core.d.mts +2 -2
  93. package/dist/cli/describe-core.d.ts +2 -2
  94. package/dist/cli/describe-core.js +4 -4
  95. package/dist/cli/describe-core.mjs +3 -3
  96. package/dist/cli/{executions-QW3L7G7J.js → executions-VZKRFDGM.js} +8 -8
  97. package/dist/cli/{executions-DMYJJIRB.mjs → executions-ZWEC5DDR.mjs} +6 -6
  98. package/dist/cli/{feedback-6JZGE7OQ.js → feedback-BTJIJCQF.js} +14 -14
  99. package/dist/cli/{feedback-WPSNSFRC.mjs → feedback-HXQTHXEZ.mjs} +6 -6
  100. package/dist/cli/{git-GO65XRM3.mjs → git-P6A45MMT.mjs} +5 -5
  101. package/dist/cli/git-QU673DBV.js +26 -0
  102. package/dist/cli/index.js +150 -150
  103. package/dist/cli/index.mjs +49 -49
  104. package/dist/cli/{integrations-EEBPETH2.mjs → integrations-4POM2CJ3.mjs} +7 -7
  105. package/dist/cli/{integrations-T5JPSZXN.js → integrations-VSJQBRFS.js} +29 -29
  106. package/dist/cli/{legacy-noops-XDNZ46IR.mjs → legacy-noops-I65MIKH2.mjs} +6 -6
  107. package/dist/cli/{legacy-noops-B55OMNH7.js → legacy-noops-QOJGSGVO.js} +9 -9
  108. package/dist/cli/{mcp-4QIUAAWS.mjs → mcp-TGY6SRAC.mjs} +4 -4
  109. package/dist/cli/{mcp-3YA333TQ.js → mcp-WTKBSLSD.js} +24 -24
  110. package/dist/cli/{monitors-BVUPS4CE.mjs → monitors-E2ENT4RY.mjs} +16 -11
  111. package/dist/cli/{monitors-FOS7MWZO.js → monitors-TLWVEXW6.js} +109 -104
  112. package/dist/cli/{org-TCMRRVFC.mjs → org-J2LGW5ZR.mjs} +6 -6
  113. package/dist/cli/{org-CYM7HFLN.js → org-PZPJJU7K.js} +121 -121
  114. package/dist/cli/{outcomes-2JSWXWQ3.mjs → outcomes-TMJDASU5.mjs} +6 -6
  115. package/dist/cli/{outcomes-VDJVP5YC.js → outcomes-Z6ZNBJ3U.js} +14 -14
  116. package/dist/cli/{play-CPP4EBYF.mjs → play-S3Z24HUS.mjs} +22 -22
  117. package/dist/cli/{play-U3G73VIR.js → play-ZOOC57X4.js} +355 -355
  118. package/dist/cli/{providers-RVMIX5ED.mjs → providers-ETD6YLFL.mjs} +6 -6
  119. package/dist/cli/{providers-2ZB67TK7.js → providers-O4Y2YBS7.js} +9 -9
  120. package/dist/cli/{quickstart-V3Y7XZ47.js → quickstart-NZALIRBP.js} +6 -6
  121. package/dist/cli/{quickstart-L3YO3OWZ.mjs → quickstart-QZX32Y5T.mjs} +4 -4
  122. package/dist/cli/{run-M2CADJ6E.js → run-5UXSWJ7N.js} +48 -48
  123. package/dist/cli/{run-PQ3Z2GOF.mjs → run-HCVBRE2P.mjs} +26 -26
  124. package/dist/cli/search-T3SLR55O.js +32 -0
  125. package/dist/cli/{search-QVLGI7SZ.mjs → search-Z247K76U.mjs} +7 -7
  126. package/dist/cli/{search-output-PN3V7MSO.mjs → search-output-XCJI3XRA.mjs} +5 -5
  127. package/dist/cli/{search-output-IUANVHWU.js → search-output-XFKEGUJA.js} +8 -8
  128. package/dist/cli/{secrets-HK25G4K2.mjs → secrets-7JZXHLRU.mjs} +6 -6
  129. package/dist/cli/{secrets-AOW6F67J.js → secrets-VUQLTUTM.js} +15 -15
  130. package/dist/cli/sessions-GHW2H7N2.js +23 -0
  131. package/dist/cli/{sessions-YN2OIAGR.mjs → sessions-UNGJ342N.mjs} +6 -6
  132. package/dist/cli/{settings-7UW5TWSM.mjs → settings-67TIT4MZ.mjs} +12 -12
  133. package/dist/cli/{settings-6EV2FPGF.js → settings-WG5YNHC5.js} +85 -85
  134. package/dist/cli/{setup-ZQPD2R5K.js → setup-IYUNW5ZP.js} +49 -49
  135. package/dist/cli/{setup-BG56SHKH.mjs → setup-KMAAJOZM.mjs} +9 -9
  136. package/dist/cli/skills-JVLCEUBF.js +37 -0
  137. package/dist/cli/{skills-MQV2TNUZ.mjs → skills-UVS4DODN.mjs} +7 -7
  138. package/dist/cli/{tools-RGI4OE5T.mjs → tools-B42JY4BX.mjs} +19 -19
  139. package/dist/cli/tools-ETA3BJNM.js +57 -0
  140. package/dist/cli/{update-SQKGHQKF.mjs → update-EBYZZ7BW.mjs} +9 -9
  141. package/dist/cli/update-XZEBQCEY.js +37 -0
  142. package/dist/cli/{views-BUKVHCRD.js → views-DOUEKLEV.js} +37 -24
  143. package/dist/cli/{views-734T2CXF.mjs → views-QK3AFD2D.mjs} +21 -8
  144. package/dist/cli/{workflow-LPJC6RHP.js → workflow-TAKT2T7A.js} +17 -17
  145. package/dist/cli/{workflow-JNRRBMEK.mjs → workflow-UBJPGRKF.mjs} +7 -7
  146. package/dist/{client-CNYctEBh.d.mts → client-CmG8MT0x.d.mts} +1 -1
  147. package/dist/{client-C1AubrWJ.d.ts → client-QznpkWrk.d.ts} +1 -1
  148. package/dist/{client-core-D6zAE46g.d.ts → client-core-CXDqfeiB.d.ts} +5 -1
  149. package/dist/{client-core-Bb06TCx5.d.mts → client-core-CY0jNW0e.d.mts} +5 -1
  150. package/dist/index.d.mts +3 -3
  151. package/dist/index.d.ts +3 -3
  152. package/dist/index.js +9 -9
  153. package/dist/index.mjs +6 -6
  154. package/dist/install-integrity.json +130 -130
  155. package/dist/plays/bundle-play-file.mjs +1 -1
  156. package/dist/plays/play-description.d.mts +1 -1
  157. package/dist/plays/play-description.d.ts +1 -1
  158. package/dist/plays/run-request.d.mts +1 -1
  159. package/dist/plays/run-request.d.ts +1 -1
  160. package/dist/release.d.mts +1 -1
  161. package/dist/release.d.ts +1 -1
  162. package/dist/release.js +2 -2
  163. package/dist/release.mjs +1 -1
  164. package/dist/server.d.mts +2 -2
  165. package/dist/server.d.ts +2 -2
  166. package/dist/server.js +5 -5
  167. package/dist/server.mjs +3 -3
  168. package/package.json +1 -1
  169. package/dist/cli/auth-Q4O7MJU4.js +0 -44
  170. package/dist/cli/concurrent-runs-help-D6XH3FY5.js +0 -22
  171. package/dist/cli/describe-TYZ5YH3V.js +0 -50
  172. package/dist/cli/git-UGGRLGTQ.js +0 -26
  173. package/dist/cli/search-RHPPZZFG.js +0 -32
  174. package/dist/cli/sessions-AEGGTZ3K.js +0 -23
  175. package/dist/cli/skills-C6ZEZWBE.js +0 -37
  176. package/dist/cli/tools-PM3MC3RR.js +0 -57
  177. package/dist/cli/update-ZHUPF2HT.js +0 -37
  178. /package/dist/cli/{chunk-YGCKMI5P.js → chunk-2M3VVGMZ.js} +0 -0
  179. /package/dist/cli/{chunk-7I4B6V2S.mjs → chunk-VMGJIFSB.mjs} +0 -0
@@ -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 _chunkUYCBG75Hjs = require('./chunk-UYCBG75H.js');
5
- require('./chunk-7HOYKXVY.js');
4
+ var _chunk3LP7J63Ljs = require('./chunk-3LP7J63L.js');
5
+ require('./chunk-5XVDZVCR.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 _chunk72TWLORRjs = require('./chunk-72TWLORR.js');
20
+ var _chunkA4IOPFEJjs = require('./chunk-A4IOPFEJ.js');
21
21
 
22
22
 
23
23
 
24
24
 
25
25
 
26
- var _chunkOOGP737Ijs = require('./chunk-OOGP737I.js');
27
- require('./chunk-TVAFWAOQ.js');
28
- require('./chunk-6MIEJJSO.js');
26
+ var _chunkVWPM4OICjs = require('./chunk-VWPM4OIC.js');
27
+ require('./chunk-2RLMHWXW.js');
28
+ require('./chunk-SNYH4QY2.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-NOMO5GPI.js');
37
+ require('./chunk-FXSDDEAR.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 = _chunkOOGP737Ijs.shouldEmitJson.call(void 0, process.argv.includes("--json"));
115
+ const wantsJson = _chunkVWPM4OICjs.shouldEmitJson.call(void 0, process.argv.includes("--json"));
116
116
  if (wantsJson) {
117
- const payload = _chunkOOGP737Ijs.errorToJsonPayload.call(void 0, error);
118
- _chunkOOGP737Ijs.printJson.call(void 0, {
117
+ const payload = _chunkVWPM4OICjs.errorToJsonPayload.call(void 0, error);
118
+ _chunkVWPM4OICjs.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, _chunkUYCBG75Hjs.DeeplineClient)().monitors.status();
540
+ const payload = await new (0, _chunk3LP7J63Ljs.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
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
547
+ _chunkVWPM4OICjs.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, _chunkUYCBG75Hjs.DeeplineClient)().monitors.available(tool, {
618
+ const payload = await new (0, _chunk3LP7J63Ljs.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
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, payload, {
625
+ _chunkVWPM4OICjs.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, _chunkUYCBG75Hjs.DeeplineClient)().monitors.list({
732
+ const payload = await new (0, _chunk3LP7J63Ljs.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
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, payload, {
739
+ _chunkVWPM4OICjs.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, _chunkUYCBG75Hjs.DeeplineClient)();
840
+ const client = new (0, _chunk3LP7J63Ljs.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
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, payload2, { json: options.json });
850
+ _chunkVWPM4OICjs.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
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, payload2, { json: options.json });
855
+ _chunkVWPM4OICjs.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
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, payload, {
879
+ _chunkVWPM4OICjs.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, _chunkUYCBG75Hjs.DeeplineClient)().monitors.check(
891
+ const payload = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().monitors.check(
892
892
  body
893
893
  );
894
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, payload, { json: options.json });
894
+ _chunkVWPM4OICjs.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() : "-";
@@ -928,6 +928,8 @@ function renderMonitorPreviewText(payload) {
928
928
  default:
929
929
  lines.push("This preview was not charged.");
930
930
  }
931
+ const pricingLine = monitorPricingLine(payload.pricing);
932
+ if (pricingLine) lines.push(`Deployed, this monitor costs: ${pricingLine}`);
931
933
  if (Array.isArray(payload.ignored_fields) && payload.ignored_fields.length) {
932
934
  lines.push(
933
935
  `Ignored for the preview: ${payload.ignored_fields.join(", ")} (still used on deploy).`
@@ -949,22 +951,22 @@ async function handleMonitorsPreview(definition, options) {
949
951
  if (limit !== void 0 && !Number.isInteger(limit)) {
950
952
  throw new MonitorsUsageError("--limit must be a whole number from 1 to 3.");
951
953
  }
952
- const wantsJson = _chunkOOGP737Ijs.shouldEmitJson.call(void 0, options.json);
954
+ const wantsJson = _chunkVWPM4OICjs.shouldEmitJson.call(void 0, options.json);
953
955
  if (options.idempotencyKey === void 0 && wantsJson) {
954
956
  throw new MonitorsUsageError(
955
957
  "--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
958
  );
957
959
  }
958
960
  const idempotencyKey = _nullishCoalesce(options.idempotencyKey, () => ( `monitor-preview-${_crypto.randomUUID.call(void 0, )}`));
959
- const progress = _chunk72TWLORRjs.createCliProgress.call(void 0, !wantsJson);
961
+ const progress = _chunkA4IOPFEJjs.createCliProgress.call(void 0, !wantsJson);
960
962
  progress.phase(`Preview key: ${idempotencyKey}`);
961
963
  try {
962
- const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().monitors.preview(
964
+ const payload = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().monitors.preview(
963
965
  body,
964
966
  { idempotencyKey, ...limit === void 0 ? {} : { limit } }
965
967
  );
966
968
  progress.complete();
967
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, payload, {
969
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, payload, {
968
970
  json: options.json,
969
971
  text: renderMonitorPreviewText(payload)
970
972
  });
@@ -1009,7 +1011,7 @@ async function handleMonitorsDeploy(definition, options) {
1009
1011
  argLabel: "<definition>",
1010
1012
  command: "deepline monitors deploy"
1011
1013
  });
1012
- const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
1014
+ const client = new (0, _chunk3LP7J63Ljs.DeeplineClient)();
1013
1015
  const definitionArg = body;
1014
1016
  if (options.dryRun) {
1015
1017
  const payload2 = await client.monitors.deploy(definitionArg, {
@@ -1017,7 +1019,7 @@ async function handleMonitorsDeploy(definition, options) {
1017
1019
  });
1018
1020
  const valid = payload2.valid !== false;
1019
1021
  const hasIdentityConflict = Boolean(_optionalChain([asRecord, 'call', _42 => _42(payload2), 'optionalAccess', _43 => _43.identity_conflict]));
1020
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1022
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1021
1023
  { dry_run: true, ...payload2 },
1022
1024
  { json: options.json, text: renderMonitorDeployPlan(payload2) }
1023
1025
  );
@@ -1027,7 +1029,7 @@ async function handleMonitorsDeploy(definition, options) {
1027
1029
  return;
1028
1030
  }
1029
1031
  const payload = await client.monitors.deploy(definitionArg);
1030
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, payload, {
1032
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, payload, {
1031
1033
  json: options.json,
1032
1034
  text: renderMonitorDeployCompletion(payload)
1033
1035
  });
@@ -1039,29 +1041,29 @@ async function handleMonitorsSync(definition, options) {
1039
1041
  argLabel: "<definition>",
1040
1042
  command: "deepline monitors sync"
1041
1043
  });
1042
- const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().monitors.sync(body, {
1044
+ const payload = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().monitors.sync(body, {
1043
1045
  ...options.dryRun ? { dryRun: true } : {},
1044
1046
  idempotencyKey: _nullishCoalesce(options.idempotencyKey, () => ( monitorJobIdempotencyKey("scalar-sync", void 0)))
1045
1047
  });
1046
1048
  if (options.dryRun) {
1047
1049
  const plan = payload;
1048
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1050
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1049
1051
  { dry_run: true, ...plan },
1050
1052
  { json: options.json, text: renderMonitorDeployPlan(plan) }
1051
1053
  );
1052
1054
  return;
1053
1055
  }
1054
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, payload, {
1056
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, payload, {
1055
1057
  json: options.json,
1056
1058
  text: renderMonitorJob(payload)
1057
1059
  });
1058
1060
  }
1059
1061
  async function handleScalarMonitorLifecycle(action, key, options) {
1060
- const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().monitors[action](key, {
1062
+ const payload = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().monitors[action](key, {
1061
1063
  ...options.dryRun ? { dryRun: true } : {},
1062
1064
  idempotencyKey: _nullishCoalesce(options.idempotencyKey, () => ( monitorJobIdempotencyKey(`${action}-${key}`, void 0)))
1063
1065
  });
1064
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, payload, {
1066
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, payload, {
1065
1067
  json: options.json,
1066
1068
  text: options.dryRun ? void 0 : renderMonitorJob(payload)
1067
1069
  });
@@ -1150,11 +1152,11 @@ async function handleMonitorJobBatchDeploy(options, idempotencyKey) {
1150
1152
  lint.issues.filter((issue) => issue.severity === "error").map((issue) => `${issue.path || "batch"}: ${issue.message}`).join("; ")
1151
1153
  );
1152
1154
  }
1153
- const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().monitors.batch.deploy(
1155
+ const payload = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().monitors.batch.deploy(
1154
1156
  lint.normalized.monitors,
1155
1157
  { idempotencyKey }
1156
1158
  );
1157
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1159
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1158
1160
  {
1159
1161
  ...payload,
1160
1162
  idempotency_key: idempotencyKey,
@@ -1187,7 +1189,7 @@ async function handleNamedMonitorBatchSync(batchId, options) {
1187
1189
  );
1188
1190
  }
1189
1191
  if (options.dryRun) {
1190
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1192
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1191
1193
  {
1192
1194
  ok: true,
1193
1195
  dry_run: true,
@@ -1204,7 +1206,7 @@ async function handleNamedMonitorBatchSync(batchId, options) {
1204
1206
  "sync",
1205
1207
  options.idempotencyKey
1206
1208
  );
1207
- const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().monitors.batches.sync(
1209
+ const payload = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().monitors.batches.sync(
1208
1210
  batchId,
1209
1211
  lint.normalized.monitors,
1210
1212
  {
@@ -1212,14 +1214,14 @@ async function handleNamedMonitorBatchSync(batchId, options) {
1212
1214
  ...parsedGeneration === void 0 ? {} : { expectedGeneration: parsedGeneration }
1213
1215
  }
1214
1216
  );
1215
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1217
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1216
1218
  { ...payload, idempotency_key: idempotencyKey },
1217
1219
  { json: options.json, text: renderMonitorJob(payload) }
1218
1220
  );
1219
1221
  }
1220
1222
  async function handleNamedMonitorBatchLifecycle(batchId, intent, options) {
1221
1223
  if (options.dryRun) {
1222
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1224
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1223
1225
  {
1224
1226
  ok: true,
1225
1227
  dry_run: true,
@@ -1235,17 +1237,17 @@ async function handleNamedMonitorBatchLifecycle(batchId, intent, options) {
1235
1237
  intent,
1236
1238
  options.idempotencyKey
1237
1239
  );
1238
- const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().monitors.batches[intent](batchId, {
1240
+ const payload = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().monitors.batches[intent](batchId, {
1239
1241
  idempotencyKey
1240
1242
  });
1241
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1243
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1242
1244
  { ...payload, idempotency_key: idempotencyKey },
1243
1245
  { json: options.json, text: renderMonitorJob(payload) }
1244
1246
  );
1245
1247
  }
1246
1248
  async function handleNamedMonitorBatchGet(batchId, options) {
1247
- const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().monitors.batches.get(batchId);
1248
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, payload, {
1249
+ const payload = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().monitors.batches.get(batchId);
1250
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, payload, {
1249
1251
  json: options.json,
1250
1252
  text: renderMonitorJob(payload)
1251
1253
  });
@@ -1259,7 +1261,7 @@ async function handleMonitorBatchLint(options) {
1259
1261
  const result = _chunkU2LVWCTDjs.lintMonitorBatchInput.call(void 0,
1260
1262
  readMonitorDefinitionsJsonFile(options.file)
1261
1263
  );
1262
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1264
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1263
1265
  {
1264
1266
  ok: !result.issues.some((issue) => issue.severity === "error"),
1265
1267
  ...result.normalized ? { normalized: result.normalized } : {},
@@ -1279,7 +1281,7 @@ async function handleMonitorFleetLint(options) {
1279
1281
  const result = _chunkWOQO3GV4js.lintMonitorFleetInput.call(void 0,
1280
1282
  readMonitorDefinitionsJsonFile(options.file)
1281
1283
  );
1282
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1284
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1283
1285
  {
1284
1286
  ok: !result.issues.some((issue) => issue.severity === "error"),
1285
1287
  ...result.normalized ? { normalized: result.normalized } : {},
@@ -1291,32 +1293,32 @@ async function handleMonitorFleetLint(options) {
1291
1293
  process.exitCode = 2;
1292
1294
  }
1293
1295
  async function handleMonitorJobGet(jobId, options) {
1294
- const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().monitors.jobs.get(jobId);
1295
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, payload, {
1296
+ const payload = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().monitors.jobs.get(jobId);
1297
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, payload, {
1296
1298
  json: options.json,
1297
1299
  text: renderMonitorJob(payload)
1298
1300
  });
1299
1301
  }
1300
1302
  async function handleMonitorJobWait(jobId, options) {
1301
- const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().monitors.jobs.wait(jobId, {
1303
+ const payload = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().monitors.jobs.wait(jobId, {
1302
1304
  timeoutMs: fleetTimeoutMs(options.timeout),
1303
1305
  pollIntervalMs: FLEET_POLL_INTERVAL_MS
1304
1306
  });
1305
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, payload, {
1307
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, payload, {
1306
1308
  json: options.json,
1307
1309
  text: renderMonitorJob(payload)
1308
1310
  });
1309
1311
  }
1310
1312
  async function handleMonitorJobLogs(jobId, options) {
1311
1313
  const limit = options.limit ? fleetIntegerOption(options.limit, "--limit") : void 0;
1312
- const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().monitors.jobs.logs(jobId, {
1314
+ const payload = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().monitors.jobs.logs(jobId, {
1313
1315
  ...limit === void 0 ? {} : { limit }
1314
1316
  });
1315
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, payload, { json: options.json });
1317
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
1316
1318
  }
1317
1319
  async function handleMonitorJobCancel(jobId, options) {
1318
- const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().monitors.jobs.cancel(jobId);
1319
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, payload, {
1320
+ const payload = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().monitors.jobs.cancel(jobId);
1321
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, payload, {
1320
1322
  json: options.json,
1321
1323
  text: renderMonitorJob(payload)
1322
1324
  });
@@ -1659,7 +1661,7 @@ function renderFleetDeactivatePlan(payload, fleetId) {
1659
1661
  `;
1660
1662
  }
1661
1663
  function reportFleetState(payload, error, options) {
1662
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1664
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1663
1665
  {
1664
1666
  ...payload,
1665
1667
  code: error.code,
@@ -1793,7 +1795,7 @@ async function handleMonitorFleetsInit(fleetId, options) {
1793
1795
  _fs.writeFileSync.call(void 0, file, `${JSON.stringify(definition, null, 2)}
1794
1796
  `, "utf8");
1795
1797
  const next = `deepline monitors fleets deploy --file ${fleetShellArg(file)} --dry-run`;
1796
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1798
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1797
1799
  { schemaVersion: 2, file, definition, next },
1798
1800
  {
1799
1801
  json: options.json,
@@ -1859,7 +1861,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
1859
1861
  'The Fleet definition has no id. Add a top-level "id" and re-run.'
1860
1862
  );
1861
1863
  }
1862
- const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
1864
+ const client = new (0, _chunk3LP7J63Ljs.DeeplineClient)();
1863
1865
  const payload = await client.monitors.fleets.sync(
1864
1866
  _nullishCoalesce(definition, () => ( fleetId)),
1865
1867
  {
@@ -1897,7 +1899,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
1897
1899
  }
1898
1900
  const accepted = { ...payload, idempotency_key: idempotencyKey };
1899
1901
  if (!options.wait || options.dryRun) {
1900
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, accepted, {
1902
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, accepted, {
1901
1903
  json: options.json,
1902
1904
  text: renderFleetSync(payload, {
1903
1905
  fleetId,
@@ -1923,7 +1925,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
1923
1925
  const status = fleetStatus(final);
1924
1926
  const summary = renderFleetGet(final);
1925
1927
  if (status === "converged") {
1926
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
1928
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
1927
1929
  return;
1928
1930
  }
1929
1931
  if (status === "billing_suspended") {
@@ -1985,14 +1987,14 @@ async function handleMonitorFleetsGet(fleetId, options) {
1985
1987
  `
1986
1988
  );
1987
1989
  }
1988
- const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
1990
+ const client = new (0, _chunk3LP7J63Ljs.DeeplineClient)();
1989
1991
  const payload = await client.monitors.fleets.get(fleetId, {
1990
1992
  ...options.drift ? { drift: true } : {},
1991
1993
  ...limit !== void 0 ? { limit } : {}
1992
1994
  });
1993
1995
  const text = fleetId ? renderFleetGet(payload) : renderFleetList(payload);
1994
1996
  if (!options.check) {
1995
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
1997
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
1996
1998
  return;
1997
1999
  }
1998
2000
  const statuses = fleetId ? [fleetStatus(payload)] : (Array.isArray(payload.fleets) ? payload.fleets : []).map(
@@ -2000,7 +2002,7 @@ async function handleMonitorFleetsGet(fleetId, options) {
2000
2002
  );
2001
2003
  const unconverged = statuses.filter((status) => status !== "converged");
2002
2004
  if (unconverged.length === 0) {
2003
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
2005
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
2004
2006
  return;
2005
2007
  }
2006
2008
  const target = _nullishCoalesce(fleetId, () => ( "<fleet-id>"));
@@ -2165,7 +2167,7 @@ function renderFleetIssuePage(payload) {
2165
2167
  }
2166
2168
  async function handleMonitorFleetsOverviewRead(fleetId, options) {
2167
2169
  const window = fleetChoice(options.window, LEDGER_WINDOWS, "--window");
2168
- const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
2170
+ const client = new (0, _chunk3LP7J63Ljs.DeeplineClient)();
2169
2171
  if (fleetId) {
2170
2172
  const listOnly = [
2171
2173
  options.q !== void 0 ? "--q" : "",
@@ -2180,7 +2182,7 @@ async function handleMonitorFleetsOverviewRead(fleetId, options) {
2180
2182
  const payload2 = await client.monitors.fleets.overview(fleetId, {
2181
2183
  ...window ? { window } : {}
2182
2184
  });
2183
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, payload2, {
2185
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, payload2, {
2184
2186
  json: options.json,
2185
2187
  text: renderFleetOverviewDetail(payload2, window)
2186
2188
  });
@@ -2196,7 +2198,7 @@ async function handleMonitorFleetsOverviewRead(fleetId, options) {
2196
2198
  ...sort ? { sort } : {},
2197
2199
  ...window ? { window } : {}
2198
2200
  });
2199
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, payload, {
2201
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, payload, {
2200
2202
  json: options.json,
2201
2203
  text: renderFleetOverviewList(payload)
2202
2204
  });
@@ -2207,13 +2209,13 @@ async function handleMonitorFleetsIssues(fleetId, options) {
2207
2209
  if (limit !== void 0 && (limit < 1 || limit > 100)) {
2208
2210
  throw new MonitorsUsageError("--limit must be an integer from 1 to 100.");
2209
2211
  }
2210
- const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().monitors.fleets.issues(fleetId, {
2212
+ const payload = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().monitors.fleets.issues(fleetId, {
2211
2213
  ...group ? { group } : {},
2212
2214
  ...options.cause ? { cause: options.cause } : {},
2213
2215
  ...options.cursor ? { cursor: options.cursor } : {},
2214
2216
  ...limit !== void 0 ? { limit } : {}
2215
2217
  });
2216
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, payload, {
2218
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, payload, {
2217
2219
  json: options.json,
2218
2220
  text: renderFleetIssuePage(payload)
2219
2221
  });
@@ -2242,13 +2244,13 @@ async function handleMonitorFleetsReactivate(fleetId, options, idempotencyKey) {
2242
2244
  ${fleetReactivateCommandLine(fleetId, options)}`
2243
2245
  );
2244
2246
  }
2245
- const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
2247
+ const client = new (0, _chunk3LP7J63Ljs.DeeplineClient)();
2246
2248
  const payload = await client.monitors.fleets.reactivate(fleetId, {
2247
2249
  idempotencyKey
2248
2250
  });
2249
2251
  const accepted = { ...payload, idempotency_key: idempotencyKey };
2250
2252
  if (!options.wait) {
2251
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, accepted, {
2253
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, accepted, {
2252
2254
  json: options.json,
2253
2255
  text: `Fleet ${fleetId} \u2014 ${readMonitorState(payload) ? `state ${readMonitorState(payload)}` : "reactivation accepted"}
2254
2256
  idempotency key ${idempotencyKey}
@@ -2271,7 +2273,7 @@ async function handleMonitorFleetsReactivate(fleetId, options, idempotencyKey) {
2271
2273
  const envelope = { ...accepted, ...final };
2272
2274
  const text = renderFleetGet(final);
2273
2275
  if (fleetStatus(final) === "converged") {
2274
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text });
2276
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text });
2275
2277
  return;
2276
2278
  }
2277
2279
  if (fleetStatus(final) === "billing_suspended") {
@@ -2320,7 +2322,7 @@ async function confirmFleetDeactivate(fleetId, plan) {
2320
2322
  }
2321
2323
  }
2322
2324
  async function handleMonitorFleetsDeactivate(fleetId, options, idempotencyKey) {
2323
- const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
2325
+ const client = new (0, _chunk3LP7J63Ljs.DeeplineClient)();
2324
2326
  if (options.dryRun) {
2325
2327
  const plan = await client.monitors.fleets.deactivate(fleetId, {
2326
2328
  dryRun: true,
@@ -2330,7 +2332,7 @@ async function handleMonitorFleetsDeactivate(fleetId, options, idempotencyKey) {
2330
2332
  command: "deepline monitors fleets deactivate",
2331
2333
  mutation: "fleet deactivate"
2332
2334
  });
2333
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, plan, {
2335
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, plan, {
2334
2336
  json: options.json,
2335
2337
  text: renderFleetDeactivatePlan(plan, fleetId)
2336
2338
  });
@@ -2368,7 +2370,7 @@ Preview the blast radius first:
2368
2370
  });
2369
2371
  const accepted = { ...payload, idempotency_key: idempotencyKey };
2370
2372
  if (payload.already === true) {
2371
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, accepted, {
2373
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, accepted, {
2372
2374
  json: options.json,
2373
2375
  text: `Fleet ${fleetId} is already deactivated.
2374
2376
  `
@@ -2380,7 +2382,7 @@ Preview the blast radius first:
2380
2382
  ` + (fleetServerNext(payload) ? `Next: ${fleetServerNext(payload)}
2381
2383
  ` : "");
2382
2384
  if (!options.wait) {
2383
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, accepted, {
2385
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, accepted, {
2384
2386
  json: options.json,
2385
2387
  text: acceptedText
2386
2388
  });
@@ -2402,7 +2404,7 @@ Preview the blast radius first:
2402
2404
  const envelope = { ...accepted, ...final };
2403
2405
  const summary = renderFleetGet(final);
2404
2406
  if (fleetStatus(final) === "deactivated") {
2405
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
2407
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
2406
2408
  return;
2407
2409
  }
2408
2410
  if (fleetStatus(final) === "billing_suspended") {
@@ -2441,7 +2443,7 @@ function handleMonitorFleetsOverview(options) {
2441
2443
  "Agent notes:",
2442
2444
  ...MONITOR_FLEET_AGENT_NOTES.map((note) => ` ${note}`)
2443
2445
  ];
2444
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
2446
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
2445
2447
  {
2446
2448
  schemaVersion: 1,
2447
2449
  lifecycle: MONITOR_FLEET_LIFECYCLE,
@@ -2618,7 +2620,7 @@ function renderMonitorGet(payload) {
2618
2620
  `;
2619
2621
  }
2620
2622
  async function handleMonitorsGet(key, options) {
2621
- const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
2623
+ const client = new (0, _chunk3LP7J63Ljs.DeeplineClient)();
2622
2624
  const payload = await client.monitors.get(key);
2623
2625
  const boundPlays = Array.isArray(payload.bound_plays) ? payload.bound_plays : null;
2624
2626
  const dependents = boundPlays ? {
@@ -2626,24 +2628,24 @@ async function handleMonitorsGet(key, options) {
2626
2628
  truncated: payload.consumer_health_truncated === true
2627
2629
  } : await client.monitors.dependents(key);
2628
2630
  const detail = { ...payload, dependents };
2629
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, detail, {
2631
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, detail, {
2630
2632
  json: options.json,
2631
2633
  text: renderMonitorGet(detail)
2632
2634
  });
2633
2635
  }
2634
2636
  async function handleMonitorsTest(key, payload, options) {
2635
2637
  const explicitPayload = parseJsonObjectArg(payload, "<payload>");
2636
- const result = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().monitors.test(key, explicitPayload);
2638
+ const result = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().monitors.test(key, explicitPayload);
2637
2639
  const text = `Monitor diagnostic for ${key}: ${result.accepted === true ? "accepted" : "rejected"}
2638
2640
  mode: validation_only (no rows written, credits spent, or Plays dispatched)
2639
2641
  persisted rows: ${_nullishCoalesce(asFiniteNumber(result.persisted_rows), () => ( 0))}
2640
2642
  dispatched bound Plays: ${_nullishCoalesce(asFiniteNumber(result.dispatched_bound_plays), () => ( 0))}
2641
2643
  `;
2642
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, result, { json: options.json, text });
2644
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, result, { json: options.json, text });
2643
2645
  }
2644
2646
  async function handleMonitorsValidate(key, options) {
2645
- const result = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().monitors.validate(key);
2646
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, result, { json: options.json });
2647
+ const result = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().monitors.validate(key);
2648
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, result, { json: options.json });
2647
2649
  if (result.valid === false) process.exitCode = 7;
2648
2650
  }
2649
2651
  async function confirmMonitorDelete(key) {
@@ -2661,14 +2663,14 @@ async function confirmMonitorDelete(key) {
2661
2663
  }
2662
2664
  }
2663
2665
  async function handleMonitorsDelete(key, options) {
2664
- const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
2666
+ const client = new (0, _chunk3LP7J63Ljs.DeeplineClient)();
2665
2667
  if (options.dryRun) {
2666
2668
  const payload2 = await client.monitors.delete(key, { dryRun: true });
2667
2669
  assertMonitorDryRunAcknowledged(payload2, {
2668
2670
  command: "deepline monitors delete",
2669
2671
  mutation: "delete"
2670
2672
  });
2671
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, payload2, {
2673
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, payload2, {
2672
2674
  json: options.json,
2673
2675
  text: renderMonitorDeletePlan(payload2, key)
2674
2676
  });
@@ -2688,7 +2690,7 @@ async function handleMonitorsDelete(key, options) {
2688
2690
  }
2689
2691
  }
2690
2692
  const payload = await client.monitors.delete(key);
2691
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, payload, { json: options.json });
2693
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
2692
2694
  }
2693
2695
  async function handleMonitorsUpdate(key, patch, options) {
2694
2696
  const body = resolveMonitorJsonBody({
@@ -2697,25 +2699,25 @@ async function handleMonitorsUpdate(key, patch, options) {
2697
2699
  argLabel: "<patch>",
2698
2700
  command: `deepline monitors update ${key}`
2699
2701
  });
2700
- const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().monitors.update(key, body);
2701
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, payload, { json: options.json });
2702
+ const payload = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().monitors.update(key, body);
2703
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
2702
2704
  }
2703
2705
  async function handleMonitorsReactivate(key, options) {
2704
- const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
2706
+ const client = new (0, _chunk3LP7J63Ljs.DeeplineClient)();
2705
2707
  if (options.dryRun) {
2706
2708
  const payload2 = await client.monitors.reactivate(key, { dryRun: true });
2707
2709
  assertMonitorDryRunAcknowledged(payload2, {
2708
2710
  command: "deepline monitors reactivate",
2709
2711
  mutation: "reactivate"
2710
2712
  });
2711
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, payload2, {
2713
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, payload2, {
2712
2714
  json: options.json,
2713
2715
  text: renderMonitorReactivatePlan(payload2, key)
2714
2716
  });
2715
2717
  return;
2716
2718
  }
2717
2719
  const payload = await client.monitors.reactivate(key);
2718
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, payload, { json: options.json });
2720
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
2719
2721
  }
2720
2722
  var MONITOR_VERB_POLL_INTERVAL_MS = 2e3;
2721
2723
  function monitorHealthLine(health) {
@@ -2848,7 +2850,7 @@ function monitorHealthText(health) {
2848
2850
  `;
2849
2851
  }
2850
2852
  async function handleMonitorsAudit(options) {
2851
- const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
2853
+ const client = new (0, _chunk3LP7J63Ljs.DeeplineClient)();
2852
2854
  const fleetId = _optionalChain([options, 'access', _109 => _109.fleet, 'optionalAccess', _110 => _110.trim, 'call', _111 => _111()]) || void 0;
2853
2855
  const scope = fleetId ? { fleetId } : {};
2854
2856
  let result = await client.monitors.audit(scope);
@@ -2892,7 +2894,7 @@ async function handleMonitorsAudit(options) {
2892
2894
  "",
2893
2895
  monitorHealthText(health)
2894
2896
  ].join("\n");
2895
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
2897
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
2896
2898
  { ...result, audit: { ...result.audit, totals }, health },
2897
2899
  { json: options.json, text }
2898
2900
  );
@@ -2905,10 +2907,10 @@ async function handleMonitorsRepair(options) {
2905
2907
  }
2906
2908
  async function handleMonitorsHealth(options) {
2907
2909
  const fleetId = _optionalChain([options, 'access', _115 => _115.fleet, 'optionalAccess', _116 => _116.trim, 'call', _117 => _117()]) || void 0;
2908
- const health = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().monitors.health(
2910
+ const health = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().monitors.health(
2909
2911
  fleetId ? { fleetId } : {}
2910
2912
  );
2911
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, health, {
2913
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, health, {
2912
2914
  json: options.json,
2913
2915
  text: monitorHealthText(health)
2914
2916
  });
@@ -2982,14 +2984,14 @@ async function handleMonitorBatchDeploy(options) {
2982
2984
  "deploy",
2983
2985
  options.idempotencyKey
2984
2986
  );
2985
- const result = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().monitors.batch.submit({
2987
+ const result = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().monitors.batch.submit({
2986
2988
  kind: "deploy",
2987
2989
  manifestNdjson,
2988
2990
  dryRun: options.dryRun === true,
2989
2991
  idempotencyKey
2990
2992
  });
2991
2993
  const operation = result.operation;
2992
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
2994
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
2993
2995
  { ...result, idempotency_key: idempotencyKey },
2994
2996
  {
2995
2997
  json: options.json,
@@ -3017,7 +3019,7 @@ async function handleMonitorBatch(kind, options) {
3017
3019
  kind,
3018
3020
  options.idempotencyKey
3019
3021
  );
3020
- const result = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().monitors.batch.submit({
3022
+ const result = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().monitors.batch.submit({
3021
3023
  kind,
3022
3024
  scope,
3023
3025
  dryRun: options.dryRun === true,
@@ -3030,14 +3032,14 @@ async function handleMonitorBatch(kind, options) {
3030
3032
  `state ${operation.state} \xB7 retry key ${idempotencyKey}`,
3031
3033
  `inspect: deepline monitors batch get ${operation.runId}`
3032
3034
  ].join("\n");
3033
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
3035
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
3034
3036
  { ...result, idempotency_key: idempotencyKey },
3035
3037
  { json: options.json, text: `${text}
3036
3038
  ` }
3037
3039
  );
3038
3040
  }
3039
3041
  async function handleMonitorBatchGet(operationId, options) {
3040
- const result = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().monitors.batch.get(operationId, {
3042
+ const result = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().monitors.batch.get(operationId, {
3041
3043
  ...options.cursor ? { cursor: options.cursor } : {}
3042
3044
  });
3043
3045
  const summary = _nullishCoalesce(result.operation.summary, () => ( {}));
@@ -3049,7 +3051,7 @@ async function handleMonitorBatchGet(operationId, options) {
3049
3051
  `results ${result.results.page.length}${result.results.isDone ? "" : " (more; pass --cursor)"}`
3050
3052
  ] : []
3051
3053
  ].join("\n");
3052
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, result, { json: options.json, text: `${text}
3054
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, result, { json: options.json, text: `${text}
3053
3055
  ` });
3054
3056
  }
3055
3057
  function registerMonitorsCommands(program) {
@@ -3523,7 +3525,7 @@ Examples:
3523
3525
  ).action(monitorsAction(handleMonitorsCheck));
3524
3526
  withJsonOption(
3525
3527
  monitors.command("preview [definition]").description(
3526
- "Sample a few recent matches for a monitor definition before deploying it. Costs credits."
3528
+ "Sample a few recent matches for a monitor definition before deploying it. Each returned match is charged like one finding."
3527
3529
  ).addHelpText(
3528
3530
  "after",
3529
3531
  `
@@ -3533,7 +3535,9 @@ Notes:
3533
3535
  company_new_hires. Any other tool or radar type answers
3534
3536
  monitor_preview_unavailable without spending anything: run check, then deploy.
3535
3537
  Each returned match costs the same as one match the deployed monitor would
3536
- deliver. An empty preview is free. --limit is 1-3 (default 3).
3538
+ deliver. An empty preview is free. --limit is 1-3 (default 3). The result's
3539
+ pricing says what the deployed monitor charges per finding, on deploy, and
3540
+ per period.
3537
3541
  Run previews one at a time. A preview is a sample: it can miss matches, and
3538
3542
  an empty one does not mean the monitor will find nothing. Read "updates".
3539
3543
  payload.updates_since is ignored for the preview and still used on deploy.
@@ -3566,8 +3570,9 @@ Notes:
3566
3570
  object with key, tool, optional name, and payload. Pass it positionally, via
3567
3571
  --file <path>, or from stdin with --file -.
3568
3572
  --dry-run validates the definition and shows the plan (deploy cost in Deepline
3569
- credits when the server reports it, plus any existing monitors that may
3570
- already cover this scope) WITHOUT deploying. Exits 0 when valid, 7 when not.
3573
+ credits when the server reports it, the selected pricing per finding, on
3574
+ deploy and per period, plus any existing monitors that may already cover this
3575
+ scope) WITHOUT deploying. Exits 0 when valid, 7 when not.
3571
3576
  Deploy is a full desired definition for its key: omitting a previously stored
3572
3577
  field removes it and can replace the upstream resource. Use \`monitors update\`
3573
3578
  for a patch-style change.