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,40 +1,48 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await 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; }
2
2
 
3
- var _chunkWWSGXX6Ujs = require('./chunk-WWSGXX6U.js');
4
- require('./chunk-XTM6NOJ6.js');
3
+ var _chunkPLGJG5FXjs = require('./chunk-PLGJG5FX.js');
5
4
 
6
5
 
7
- var _chunkUYCBG75Hjs = require('./chunk-UYCBG75H.js');
6
+ var _chunkMOZDEYQCjs = require('./chunk-MOZDEYQC.js');
7
+ require('./chunk-BVXIGOBZ.js');
8
+ require('./chunk-CNRPE3AE.js');
8
9
 
9
10
 
11
+ var _chunk3LP7J63Ljs = require('./chunk-3LP7J63L.js');
10
12
 
11
13
 
12
- var _chunk7HOYKXVYjs = require('./chunk-7HOYKXVY.js');
14
+
15
+
16
+
17
+ var _chunk5XVDZVCRjs = require('./chunk-5XVDZVCR.js');
13
18
  require('./chunk-4WAM6TLD.js');
14
19
  require('./chunk-MJTVX4QK.js');
15
20
  require('./chunk-PMH4GLMD.js');
16
21
 
17
22
 
18
- var _chunk44NTNNKCjs = require('./chunk-44NTNNKC.js');
23
+ var _chunkY36SQMSNjs = require('./chunk-Y36SQMSN.js');
19
24
 
20
25
 
21
26
  var _chunkTJCENACZjs = require('./chunk-TJCENACZ.js');
22
27
 
23
28
 
24
29
 
25
- var _chunkE2G2DNABjs = require('./chunk-E2G2DNAB.js');
30
+ var _chunkEP3GZAHKjs = require('./chunk-EP3GZAHK.js');
31
+
32
+
33
+ var _chunk2M3VVGMZjs = require('./chunk-2M3VVGMZ.js');
34
+
26
35
 
27
36
 
28
- var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
29
37
 
30
38
 
31
39
 
40
+ var _chunkVWPM4OICjs = require('./chunk-VWPM4OIC.js');
32
41
 
33
42
 
34
43
 
35
- var _chunkOOGP737Ijs = require('./chunk-OOGP737I.js');
36
- require('./chunk-TVAFWAOQ.js');
37
- require('./chunk-6MIEJJSO.js');
44
+ var _chunk2RLMHWXWjs = require('./chunk-2RLMHWXW.js');
45
+ require('./chunk-SNYH4QY2.js');
38
46
 
39
47
 
40
48
 
@@ -44,7 +52,7 @@ require('./chunk-XNYIZMNQ.js');
44
52
 
45
53
  var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
46
54
  require('./chunk-CFJFUVX2.js');
47
- require('./chunk-NOMO5GPI.js');
55
+ require('./chunk-FXSDDEAR.js');
48
56
  require('./chunk-OG64RBAC.js');
49
57
  require('./chunk-COGTRVWW.js');
50
58
 
@@ -56,7 +64,7 @@ var _path = require('path');
56
64
  var _sync = require('csv-stringify/sync');
57
65
 
58
66
  // ../billing/credit-pricing.ts
59
- var DEFAULT_CUSTOMER_CREDITS_PER_USD = 1 / _chunkE2G2DNABjs.DEFAULT_USD_PER_CUSTOMER_CREDIT;
67
+ var DEFAULT_CUSTOMER_CREDITS_PER_USD = 1 / _chunkEP3GZAHKjs.DEFAULT_USD_PER_CUSTOMER_CREDIT;
60
68
  var CREDIT_PURCHASE_MIN_USD = 10;
61
69
  var DEFAULT_CREDIT_PURCHASE_BANDS = [
62
70
  {
@@ -66,8 +74,8 @@ var DEFAULT_CREDIT_PURCHASE_BANDS = [
66
74
  }
67
75
  ];
68
76
  var DEFAULT_CREDIT_PRICING = {
69
- usdPerCredit: _chunkE2G2DNABjs.DEFAULT_USD_PER_CUSTOMER_CREDIT,
70
- providerMarkupMultiplier: _chunkE2G2DNABjs.DEFAULT_PROVIDER_MARKUP_MULTIPLIER,
77
+ usdPerCredit: _chunkEP3GZAHKjs.DEFAULT_USD_PER_CUSTOMER_CREDIT,
78
+ providerMarkupMultiplier: _chunkEP3GZAHKjs.DEFAULT_PROVIDER_MARKUP_MULTIPLIER,
71
79
  purchaseBands: DEFAULT_CREDIT_PURCHASE_BANDS.map((band) => ({
72
80
  minCredits: band.minCredits,
73
81
  maxCredits: band.maxCredits,
@@ -140,7 +148,7 @@ function reportBillingFailure(failure, options) {
140
148
  if (failure.next) {
141
149
  textLines.push(`Next: ${failure.next}`);
142
150
  }
143
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
151
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
144
152
  {
145
153
  ok: false,
146
154
  exitCode: failure.exitCode,
@@ -161,7 +169,7 @@ function parseTopUpCredits(raw) {
161
169
  return parsed;
162
170
  }
163
171
  function topUpIdempotencyKey(raw) {
164
- return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` : _chunk7HOYKXVYjs.requireBillingIdempotencyKey.call(void 0, raw);
172
+ return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` : _chunk5XVDZVCRjs.requireBillingIdempotencyKey.call(void 0, raw);
165
173
  }
166
174
  function targetBillingIdempotencyKey(raw) {
167
175
  return typeof raw === "string" ? raw : `cli_target_billing:${Date.now()}:${_crypto.randomUUID.call(void 0, )}`;
@@ -382,7 +390,7 @@ function defaultLedgerExportPath() {
382
390
  );
383
391
  }
384
392
  async function handleBalance(options) {
385
- const { http } = _chunkOOGP737Ijs.getAuthedHttpClient.call(void 0, );
393
+ const { http } = _chunkVWPM4OICjs.getAuthedHttpClient.call(void 0, );
386
394
  const payload = await http.get(
387
395
  "/api/v2/billing/balance"
388
396
  );
@@ -472,7 +480,7 @@ async function handleBalance(options) {
472
480
  ...options.verbose ? detail : [],
473
481
  ...lines.slice(1)
474
482
  ];
475
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
483
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
476
484
  {
477
485
  ...payload,
478
486
  ...recovery ? { recovery } : {},
@@ -508,7 +516,7 @@ async function handleUsageEvents(options) {
508
516
  );
509
517
  return;
510
518
  }
511
- const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
519
+ const client = new (0, _chunk3LP7J63Ljs.DeeplineClient)();
512
520
  let payload;
513
521
  try {
514
522
  payload = await client.billing.usageEvents({
@@ -539,7 +547,7 @@ async function handleUsageEvents(options) {
539
547
  ),
540
548
  ...nextPage ? [`Next page: ${nextPage}`] : []
541
549
  ];
542
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
550
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
543
551
  {
544
552
  ...payload,
545
553
  next: { page: nextPage },
@@ -561,7 +569,7 @@ async function handleUsage(options) {
561
569
  return;
562
570
  }
563
571
  if (options.events) return handleUsageEvents(options);
564
- const { http } = _chunkOOGP737Ijs.getAuthedHttpClient.call(void 0, );
572
+ const { http } = _chunkVWPM4OICjs.getAuthedHttpClient.call(void 0, );
565
573
  const params = new URLSearchParams();
566
574
  if (options.requestId !== void 0) {
567
575
  const requestId = options.requestId.trim();
@@ -645,7 +653,7 @@ async function handleUsage(options) {
645
653
  "No continuation is available for this view. Use deepline billing ledger export all for the full ledger."
646
654
  ] : []
647
655
  ];
648
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
656
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
649
657
  {
650
658
  ...payload,
651
659
  recent: {
@@ -659,7 +667,7 @@ async function handleUsage(options) {
659
667
  );
660
668
  }
661
669
  async function handleLimit(options) {
662
- const { http } = _chunkOOGP737Ijs.getAuthedHttpClient.call(void 0, );
670
+ const { http } = _chunkVWPM4OICjs.getAuthedHttpClient.call(void 0, );
663
671
  const payload = await http.get(
664
672
  "/api/v2/billing/limit"
665
673
  );
@@ -667,7 +675,7 @@ async function handleLimit(options) {
667
675
  `Monthly usage cap: ${_nullishCoalesce(payload.monthly_credits_limit, () => ( "(unknown)"))}`,
668
676
  "Enforcement: checked before new calls; in-flight work can exceed the cap."
669
677
  ] : ["Monthly usage cap: off"];
670
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
678
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
671
679
  {
672
680
  ...payload,
673
681
  render: { sections: [{ title: "billing limit", lines }] }
@@ -676,12 +684,12 @@ async function handleLimit(options) {
676
684
  );
677
685
  }
678
686
  async function handleSetLimit(credits, options) {
679
- const { http } = _chunkOOGP737Ijs.getAuthedHttpClient.call(void 0, );
687
+ const { http } = _chunkVWPM4OICjs.getAuthedHttpClient.call(void 0, );
680
688
  const payload = await http.request("/api/v2/billing/limit", {
681
689
  method: "PUT",
682
690
  body: { monthly_credits_limit: Number.parseInt(credits, 10) }
683
691
  });
684
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
692
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
685
693
  {
686
694
  ...payload,
687
695
  render: {
@@ -697,11 +705,11 @@ async function handleSetLimit(credits, options) {
697
705
  );
698
706
  }
699
707
  async function handleLimitOff(options) {
700
- const { http } = _chunkOOGP737Ijs.getAuthedHttpClient.call(void 0, );
708
+ const { http } = _chunkVWPM4OICjs.getAuthedHttpClient.call(void 0, );
701
709
  const payload = await http.request("/api/v2/billing/limit", {
702
710
  method: "DELETE"
703
711
  });
704
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
712
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
705
713
  {
706
714
  ...payload,
707
715
  render: {
@@ -721,7 +729,7 @@ async function exportLedger(http, outputPath, options) {
721
729
  let initialized = false;
722
730
  let pageNumber = 0;
723
731
  console.error(`Exporting billing ledger to ${outputPath}`);
724
- for await (const entries of _chunk7HOYKXVYjs.iterateCursorPages.call(void 0, async (cursor) => {
732
+ for await (const entries of _chunk5XVDZVCRjs.iterateCursorPages.call(void 0, async (cursor) => {
725
733
  pageNumber += 1;
726
734
  console.error(
727
735
  `Fetching page ${pageNumber}; ${summary.row_count} rows written.`
@@ -760,7 +768,7 @@ async function exportLedger(http, outputPath, options) {
760
768
  return summary;
761
769
  }
762
770
  async function handleHistory(options) {
763
- const { http } = _chunkOOGP737Ijs.getAuthedHttpClient.call(void 0, );
771
+ const { http } = _chunkVWPM4OICjs.getAuthedHttpClient.call(void 0, );
764
772
  const windows = {
765
773
  "1d": 86400,
766
774
  "1w": 604800,
@@ -772,10 +780,10 @@ async function handleHistory(options) {
772
780
  process.cwd(),
773
781
  "deepline",
774
782
  "data",
775
- _chunkOOGP737Ijs.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
783
+ _chunkVWPM4OICjs.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
776
784
  );
777
785
  const summary = await exportLedger(http, outputPath, { sinceAt });
778
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
786
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
779
787
  {
780
788
  output_path: outputPath,
781
789
  row_count: summary.row_count,
@@ -812,14 +820,14 @@ async function handleLedgerExportAll(options) {
812
820
  );
813
821
  return;
814
822
  }
815
- const { http } = _chunkOOGP737Ijs.getAuthedHttpClient.call(void 0, );
823
+ const { http } = _chunkVWPM4OICjs.getAuthedHttpClient.call(void 0, );
816
824
  const outputPath = options.output ? _path.resolve.call(void 0, String(options.output)) : defaultLedgerExportPath();
817
825
  const summary = await exportLedger(http, outputPath, {
818
826
  sinceAt,
819
827
  runId: options.runId,
820
828
  operation: options.operation
821
829
  });
822
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
830
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
823
831
  {
824
832
  output_path: outputPath,
825
833
  row_count: summary.row_count,
@@ -857,11 +865,11 @@ function planPriceText(priceUsd, priceInterval) {
857
865
  function targetPlanLine(plan) {
858
866
  const firstMonth = plan.first_month_price_usd != null ? ` (first month $${plan.first_month_price_usd})` : "";
859
867
  const bonus = plan.bonus_credits != null ? ` (+${plan.bonus_credits} bonus credits once paid)` : "";
860
- const annual = plan.annual_price_usd != null ? ` (or $${plan.annual_price_usd}/year with --annual${plan.annual_offer_label ? `, ${plan.annual_offer_label}` : ""})` : "";
868
+ const annual = plan.annual_price_usd != null ? ` (or $${plan.annual_price_usd}/year paid annually${plan.annual_offer_label ? `, ${plan.annual_offer_label}` : ""})` : "";
861
869
  return `${_nullishCoalesce(plan.display_name, () => ( plan.name))} (${_nullishCoalesce(plan.public_sku, () => ( plan.sku))}) | ${planPriceText(plan.recurring_price_usd, plan.interval)}${firstMonth}${bonus}${annual} | ${plan.included_credits} included credits/month | $${plan.purchased_credit_price_usd}/purchased credit | ${plan.acquisition_enabled ? "available" : "unavailable"}`;
862
870
  }
863
871
  async function handlePlans(options) {
864
- const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
872
+ const client = new (0, _chunk3LP7J63Ljs.DeeplineClient)();
865
873
  const payload = await client.billing.targetPlans(
866
874
  options.promoCode ? { promoCode: options.promoCode } : void 0
867
875
  );
@@ -885,10 +893,10 @@ async function handlePlans(options) {
885
893
  promo.status === "applied" ? `Promo code ${promo.code}: applied to ${promoPlanSkus.join(", ")}${promo.expires_at ? ` (until ${promo.expires_at})` : ""}` : `Promo code ${promo.code}: ${promo.status.replaceAll("_", " ")}`
886
894
  ] : [],
887
895
  ...plans.length === 0 ? ["Plans: none available"] : ["Plans:", ...plans.map(targetPlanLine)],
888
- _optionalChain([promo, 'optionalAccess', _15 => _15.status]) === "applied" ? `Change plan: deepline billing change-plan <plan_sku> --promo-code ${promo.code}` : "Change plan: deepline billing change-plan <plan_sku>"
896
+ _optionalChain([promo, 'optionalAccess', _15 => _15.status]) === "applied" ? `Change plan: deepline billing change-plan <plan_sku>, then enter promo code ${promo.code} in the browser` : "Change plan: deepline billing change-plan <plan_sku>"
889
897
  ];
890
- const legacyPayload = _chunkOOGP737Ijs.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
891
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
898
+ const legacyPayload = _chunkVWPM4OICjs.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
899
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
892
900
  {
893
901
  ..._nullishCoalesce(legacyPayload, () => ( payload)),
894
902
  ...legacyPayload ? { target_billing: payload } : {},
@@ -898,7 +906,7 @@ async function handlePlans(options) {
898
906
  );
899
907
  }
900
908
  async function handleSubscribe(planVersionId, options) {
901
- const { http } = _chunkOOGP737Ijs.getAuthedHttpClient.call(void 0, );
909
+ const { http } = _chunkVWPM4OICjs.getAuthedHttpClient.call(void 0, );
902
910
  const payload = await http.request(
903
911
  "/api/v2/billing/subscription/checkout",
904
912
  {
@@ -907,8 +915,8 @@ async function handleSubscribe(planVersionId, options) {
907
915
  }
908
916
  );
909
917
  const url = String(payload.checkout_url || "");
910
- if (!options.json && options.open !== false && url) _chunkOOGP737Ijs.openInBrowser.call(void 0, url);
911
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
918
+ if (!options.json && options.open !== false && url) _chunkVWPM4OICjs.openInBrowser.call(void 0, url);
919
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
912
920
  {
913
921
  ...payload,
914
922
  render: {
@@ -924,7 +932,7 @@ async function handleSubscribe(planVersionId, options) {
924
932
  );
925
933
  }
926
934
  async function handleSubscriptionStatus(options) {
927
- const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
935
+ const client = new (0, _chunk3LP7J63Ljs.DeeplineClient)();
928
936
  const payload = await client.billing.subscription.status();
929
937
  const pools = _nullishCoalesce(payload.credit_pools, () => ( []));
930
938
  const lines = [
@@ -944,7 +952,7 @@ async function handleSubscriptionStatus(options) {
944
952
  ],
945
953
  `Assigned by: ${_nullishCoalesce(payload.assigned_by, () => ( "default"))}`
946
954
  ];
947
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
955
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
948
956
  {
949
957
  ...payload,
950
958
  render: { sections: [{ title: "billing subscription", lines }] }
@@ -953,7 +961,7 @@ async function handleSubscriptionStatus(options) {
953
961
  );
954
962
  }
955
963
  async function handleSubscriptionCancel(options) {
956
- const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
964
+ const client = new (0, _chunk3LP7J63Ljs.DeeplineClient)();
957
965
  const action = options.undo ? "undo_cancel" : "cancel";
958
966
  if (options.dryRun) {
959
967
  const status = await client.billing.subscription.status();
@@ -970,7 +978,7 @@ async function handleSubscriptionCancel(options) {
970
978
  return;
971
979
  }
972
980
  const consequence = action === "cancel" ? `Would schedule cancellation at period end${status.current_period_end ? ` (${status.current_period_end})` : ""}. The subscription stays active until then and remaining credits are kept.` : "Would reverse the pending cancellation; the subscription would renew normally.";
973
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
981
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
974
982
  {
975
983
  ok: true,
976
984
  dry_run: true,
@@ -1026,7 +1034,7 @@ async function handleSubscriptionCancel(options) {
1026
1034
  "Remaining credits are yours to keep \u2014 cancellation never removes credits.",
1027
1035
  "Undo with: deepline billing subscription cancel --undo"
1028
1036
  ];
1029
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1037
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1030
1038
  {
1031
1039
  ok: true,
1032
1040
  ...result,
@@ -1080,7 +1088,7 @@ async function handleInvoices(options) {
1080
1088
  return;
1081
1089
  }
1082
1090
  }
1083
- const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
1091
+ const client = new (0, _chunk3LP7J63Ljs.DeeplineClient)();
1084
1092
  let payload;
1085
1093
  try {
1086
1094
  payload = await client.billing.invoices.list(
@@ -1109,7 +1117,7 @@ async function handleInvoices(options) {
1109
1117
  url: entry.url
1110
1118
  }))
1111
1119
  } : { ...payload, count: entries.length };
1112
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1120
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1113
1121
  {
1114
1122
  ...envelope,
1115
1123
  render: { sections: [{ title: "billing invoices", lines }] }
@@ -1118,7 +1126,7 @@ async function handleInvoices(options) {
1118
1126
  );
1119
1127
  }
1120
1128
  async function handleCheckout(options) {
1121
- const { http } = _chunkOOGP737Ijs.getAuthedHttpClient.call(void 0, );
1129
+ const { http } = _chunkVWPM4OICjs.getAuthedHttpClient.call(void 0, );
1122
1130
  const payload = await http.post(
1123
1131
  "/api/v2/billing/checkout",
1124
1132
  {
@@ -1128,8 +1136,8 @@ async function handleCheckout(options) {
1128
1136
  }
1129
1137
  );
1130
1138
  const url = String(payload.url || payload.checkout_url || "");
1131
- if (!options.json && !options.noOpen && url) _chunkOOGP737Ijs.openInBrowser.call(void 0, url);
1132
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1139
+ if (!options.json && !options.noOpen && url) _chunkVWPM4OICjs.openInBrowser.call(void 0, url);
1140
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1133
1141
  {
1134
1142
  ...payload,
1135
1143
  render: {
@@ -1174,7 +1182,7 @@ async function handleTopUp(creditsRaw, options) {
1174
1182
  return;
1175
1183
  }
1176
1184
  if (options.dryRun) {
1177
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1185
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1178
1186
  {
1179
1187
  ok: true,
1180
1188
  dry_run: true,
@@ -1204,7 +1212,7 @@ async function handleTopUp(creditsRaw, options) {
1204
1212
  );
1205
1213
  return;
1206
1214
  }
1207
- const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
1215
+ const client = new (0, _chunk3LP7J63Ljs.DeeplineClient)();
1208
1216
  let payload;
1209
1217
  try {
1210
1218
  payload = await client.billing.topUpWithReceipt({
@@ -1221,7 +1229,7 @@ async function handleTopUp(creditsRaw, options) {
1221
1229
  return;
1222
1230
  }
1223
1231
  if (payload.status === "pending") {
1224
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1232
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1225
1233
  {
1226
1234
  ok: true,
1227
1235
  ...payload,
@@ -1285,17 +1293,17 @@ async function handleTopUp(creditsRaw, options) {
1285
1293
  ]
1286
1294
  }
1287
1295
  };
1288
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, options.compact ? compactEnvelope : fullEnvelope, {
1296
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, options.compact ? compactEnvelope : fullEnvelope, {
1289
1297
  json: options.json
1290
1298
  });
1291
1299
  }
1292
1300
  async function handleTargetStatus(options) {
1293
- const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
1301
+ const client = new (0, _chunk3LP7J63Ljs.DeeplineClient)();
1294
1302
  const payload = await client.billing.targetStatus();
1295
1303
  const balanceCommand = "deepline billing balance";
1296
1304
  const recentChargesCommand = "deepline billing usage --limit 5";
1297
1305
  const exactChargeCommand = "deepline billing usage --request-id <job_id>";
1298
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1306
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1299
1307
  {
1300
1308
  ok: true,
1301
1309
  ...payload,
@@ -1333,13 +1341,13 @@ function formatComputeAmount(minutes, credits) {
1333
1341
  return `${time} ${minutes === 1 ? "minute" : "minutes"} (${cost} ${credits === 1 ? "credit" : "credits"})`;
1334
1342
  }
1335
1343
  async function handleIncludedCompute(options) {
1336
- const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
1344
+ const client = new (0, _chunk3LP7J63Ljs.DeeplineClient)();
1337
1345
  const payload = options.enable ? await client.billing.enableIncludedCompute({ includeOverage: true }) : await client.billing.includedCompute({ includeOverage: true });
1338
1346
  const rate = _nullishCoalesce(payload.credits_per_minute, () => ( 0));
1339
1347
  const includedCredits = _nullishCoalesce(payload.included_credits_used, () => ( payload.included_minutes_used * rate));
1340
1348
  const includedMinutes = payload.included_credits_used !== void 0 && rate > 0 ? includedCredits / rate : payload.included_minutes_used;
1341
1349
  const overage = payload.overage_credits;
1342
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1350
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1343
1351
  {
1344
1352
  ok: true,
1345
1353
  ...payload,
@@ -1357,7 +1365,7 @@ async function handleIncludedCompute(options) {
1357
1365
  ] : [],
1358
1366
  `Standard sandbox price: ${formatComputeAmount(60, Math.round(rate * 60))}`,
1359
1367
  `Allowance resets: ${payload.period_end_at.slice(0, 10)} (UTC)`,
1360
- _chunk44NTNNKCjs.PLAY_RUNTIME_PRICING_NOTE,
1368
+ _chunkY36SQMSNjs.PLAY_RUNTIME_PRICING_NOTE,
1361
1369
  _chunkTJCENACZjs.PRICING_PAGE_NOTE
1362
1370
  ] : payload.status === "off" ? [
1363
1371
  ..._optionalChain([payload, 'access', _21 => _21.database, 'optionalAccess', _22 => _22.enabled]) ? [
@@ -1366,7 +1374,7 @@ async function handleIncludedCompute(options) {
1366
1374
  "Included compute: off; Play compute is billed at provider cost.",
1367
1375
  `Allowance if enabled: ${formatComputeAmount(payload.plan.included_minutes, payload.plan.included_minutes * payload.plan.credits_per_minute)} per month`,
1368
1376
  `Standard sandbox price if enabled: ${formatComputeAmount(60, Math.round(payload.plan.credits_per_minute * 60))}`,
1369
- _chunk44NTNNKCjs.PLAY_RUNTIME_PRICING_NOTE,
1377
+ _chunkY36SQMSNjs.PLAY_RUNTIME_PRICING_NOTE,
1370
1378
  "Run deepline billing compute --enable to turn on included compute. It cannot be turned off again.",
1371
1379
  _chunkTJCENACZjs.PRICING_PAGE_NOTE
1372
1380
  ] : ["Included compute is not available for this org yet."]
@@ -1378,8 +1386,8 @@ async function handleIncludedCompute(options) {
1378
1386
  );
1379
1387
  }
1380
1388
  async function handleEntitlements(options) {
1381
- const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.entitlements();
1382
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1389
+ const payload = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().billing.entitlements();
1390
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1383
1391
  {
1384
1392
  ok: true,
1385
1393
  ...payload,
@@ -1389,7 +1397,7 @@ async function handleEntitlements(options) {
1389
1397
  title: "billing entitlements",
1390
1398
  lines: [
1391
1399
  `Plan: ${_nullishCoalesce(_optionalChain([payload, 'access', _23 => _23.plan, 'optionalAccess', _24 => _24.name]), () => ( "Legacy billing"))}`,
1392
- ..._chunkWWSGXX6Ujs.concurrentRunsLine.call(void 0, payload) ? [`Concurrent runs: ${_chunkWWSGXX6Ujs.concurrentRunsLine.call(void 0, payload)}`] : [],
1400
+ ..._chunkPLGJG5FXjs.concurrentRunsLine.call(void 0, payload) ? [`Concurrent runs: ${_chunkPLGJG5FXjs.concurrentRunsLine.call(void 0, payload)}`] : [],
1393
1401
  ...Object.entries(payload.benefits).flatMap(
1394
1402
  ([key, grant]) => "value" in grant ? [
1395
1403
  `${key}: ${grant.status}, ${JSON.stringify(grant.value)}${grant.expiresAt === void 0 ? "" : `, expires ${new Date(grant.expiresAt).toISOString()}`}`
@@ -1414,7 +1422,7 @@ async function handleEntitlements(options) {
1414
1422
  );
1415
1423
  }
1416
1424
  async function handleAutoRechargeStatus(options) {
1417
- const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.autoRecharge.get();
1425
+ const payload = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().billing.autoRecharge.get();
1418
1426
  const state = payload.available ? payload.enabled ? "on" : "off" : "unavailable";
1419
1427
  const lines = [
1420
1428
  `State: ${state}`,
@@ -1424,7 +1432,7 @@ async function handleAutoRechargeStatus(options) {
1424
1432
  `Automatic credit purchase cap: ${payload.purchase_limit_credits} credits per rolling 30 days`
1425
1433
  ] : []
1426
1434
  ];
1427
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1435
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1428
1436
  {
1429
1437
  ok: true,
1430
1438
  ...payload,
@@ -1473,7 +1481,7 @@ async function handleAutoRechargeSet(options) {
1473
1481
  }
1474
1482
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1475
1483
  if (options.dryRun) {
1476
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1484
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1477
1485
  {
1478
1486
  ok: true,
1479
1487
  dry_run: true,
@@ -1494,7 +1502,7 @@ async function handleAutoRechargeSet(options) {
1494
1502
  );
1495
1503
  return;
1496
1504
  }
1497
- const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.autoRecharge.update({
1505
+ const payload = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().billing.autoRecharge.update({
1498
1506
  enabled: true,
1499
1507
  thresholdCredits,
1500
1508
  refillToCredits,
@@ -1502,7 +1510,7 @@ async function handleAutoRechargeSet(options) {
1502
1510
  ...rollingLimitCredits !== void 0 ? { purchaseLimitCredits: rollingLimitCredits } : {},
1503
1511
  idempotencyKey
1504
1512
  });
1505
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1513
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1506
1514
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1507
1515
  { json: options.json }
1508
1516
  );
@@ -1510,7 +1518,7 @@ async function handleAutoRechargeSet(options) {
1510
1518
  async function handleAutoRechargeOff(options) {
1511
1519
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1512
1520
  if (options.dryRun) {
1513
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1521
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1514
1522
  {
1515
1523
  ok: true,
1516
1524
  dry_run: true,
@@ -1525,11 +1533,11 @@ async function handleAutoRechargeOff(options) {
1525
1533
  );
1526
1534
  return;
1527
1535
  }
1528
- const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.autoRecharge.update({
1536
+ const payload = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().billing.autoRecharge.update({
1529
1537
  enabled: false,
1530
1538
  idempotencyKey
1531
1539
  });
1532
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1540
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1533
1541
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1534
1542
  { json: options.json }
1535
1543
  );
@@ -1555,18 +1563,18 @@ function savedCardLines(cards, hasMore) {
1555
1563
  async function handleCardsList(options) {
1556
1564
  const limit = options.limit === void 0 ? void 0 : Number(options.limit);
1557
1565
  if (limit !== void 0 && (!Number.isInteger(limit) || limit < 1 || limit > 100)) {
1558
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1566
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1559
1567
  { ok: false, error: "--limit must be a whole number from 1 to 100." },
1560
1568
  { json: options.json }
1561
1569
  );
1562
1570
  process.exitCode = 1;
1563
1571
  return;
1564
1572
  }
1565
- const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.cards.list({
1573
+ const payload = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().billing.cards.list({
1566
1574
  ...limit !== void 0 ? { limit } : {},
1567
1575
  ...options.cursor ? { cursor: options.cursor } : {}
1568
1576
  });
1569
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1577
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1570
1578
  {
1571
1579
  ok: true,
1572
1580
  ...payload,
@@ -1584,8 +1592,8 @@ async function handleCardsList(options) {
1584
1592
  }
1585
1593
  async function handleCardsAdd(options) {
1586
1594
  const makeDefault = options.makeDefault === true;
1587
- const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.cards.add({ makeDefault });
1588
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1595
+ const payload = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().billing.cards.add({ makeDefault });
1596
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1589
1597
  {
1590
1598
  ok: true,
1591
1599
  make_default: makeDefault,
@@ -1610,7 +1618,7 @@ async function handleCardChange(action, cardId, options) {
1610
1618
  const changeId = _nullishCoalesce(options.changeId, () => ( _crypto.randomUUID.call(void 0, )));
1611
1619
  const path = `/api/v2/billing/payment-methods/${action}`;
1612
1620
  if (options.dryRun) {
1613
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1621
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1614
1622
  {
1615
1623
  ok: true,
1616
1624
  dry_run: true,
@@ -1625,9 +1633,9 @@ async function handleCardChange(action, cardId, options) {
1625
1633
  );
1626
1634
  return;
1627
1635
  }
1628
- const cards = new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.cards;
1636
+ const cards = new (0, _chunk3LP7J63Ljs.DeeplineClient)().billing.cards;
1629
1637
  const payload = action === "default" ? await cards.setDefault({ cardId, changeId }) : await cards.remove({ cardId, changeId });
1630
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1638
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1631
1639
  {
1632
1640
  ...payload,
1633
1641
  render: {
@@ -1661,11 +1669,11 @@ async function handleBuyCredits(creditsRaw, options) {
1661
1669
  return;
1662
1670
  }
1663
1671
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1664
- const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.purchaseCredits({
1672
+ const payload = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().billing.purchaseCredits({
1665
1673
  credits,
1666
1674
  idempotencyKey
1667
1675
  });
1668
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1676
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1669
1677
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1670
1678
  { json: options.json }
1671
1679
  );
@@ -1701,7 +1709,7 @@ async function handleTopUpRecover(creditsRaw, options) {
1701
1709
  return;
1702
1710
  }
1703
1711
  if (options.dryRun) {
1704
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1712
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1705
1713
  {
1706
1714
  ok: true,
1707
1715
  dry_run: true,
@@ -1714,62 +1722,57 @@ async function handleTopUpRecover(creditsRaw, options) {
1714
1722
  );
1715
1723
  return;
1716
1724
  }
1717
- const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.recoverCreditPurchase({
1725
+ const payload = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().billing.recoverCreditPurchase({
1718
1726
  credits,
1719
1727
  orgId: options.orgId,
1720
1728
  idempotencyKey: options.idempotencyKey
1721
1729
  });
1722
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1730
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1723
1731
  { ok: true, idempotency_key: options.idempotencyKey, ...payload },
1724
1732
  { json: options.json }
1725
1733
  );
1726
1734
  }
1727
1735
  async function handleTargetPlan(planSku, options) {
1728
- if (options.invoice && !options.billingEmail) {
1729
- reportBillingFailure(
1730
- {
1731
- exitCode: 2,
1732
- code: "INVALID_REQUEST",
1733
- message: "--invoice needs --billing-email <email>."
1734
- },
1735
- options
1736
- );
1737
- return;
1738
- }
1739
- const targetPlanSku = _nullishCoalesce([..._chunk7HOYKXVYjs.PUBLIC_PLAN_SKUS, ...COMPATIBLE_PLAN_SKUS].find(
1736
+ const targetPlanSku = planSku === void 0 ? void 0 : [..._chunk5XVDZVCRjs.PUBLIC_PLAN_SKUS, ...COMPATIBLE_PLAN_SKUS].find(
1740
1737
  (sku) => sku === planSku
1741
- ), () => ( // Retained Canary requests may replay their original operation. The API
1742
- // rejects new acquisition even when a caller supplies an idempotency key.
1743
- (planSku === "growth-canary-v1" && options.idempotencyKey ? planSku : void 0)));
1744
- if (!targetPlanSku) {
1738
+ );
1739
+ if (planSku !== void 0 && !targetPlanSku) {
1745
1740
  reportBillingFailure(
1746
1741
  {
1747
1742
  exitCode: 2,
1748
1743
  code: "INVALID_PLAN",
1749
- message: `Plan must be one of ${_chunk7HOYKXVYjs.PUBLIC_PLAN_SKUS.join(", ")}. Run deepline billing plans to see workspace availability.`
1744
+ message: `Plan must be one of ${_chunk5XVDZVCRjs.PUBLIC_PLAN_SKUS.join(", ")}. Run deepline billing plans to see workspace availability.`
1750
1745
  },
1751
1746
  options
1752
1747
  );
1753
1748
  return;
1754
1749
  }
1755
- const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1756
- const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.transitionPlan({
1757
- action: "start_or_change",
1758
- targetPlanSku,
1759
- ...options.billingEmail ? { billingEmail: options.billingEmail } : {},
1760
- ...options.promoCode ? { promoCode: options.promoCode } : {},
1761
- ...options.annual ? { billingInterval: "year" } : {},
1762
- ...options.invoice ? { paymentMethod: "invoice" } : {},
1763
- idempotencyKey
1764
- });
1765
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1766
- { ok: true, idempotency_key: idempotencyKey, ...payload },
1750
+ const baseUrl = _chunk2RLMHWXWjs.resolveBaseUrlOnly.call(void 0, );
1751
+ const link = _chunkMOZDEYQCjs.buildDashboardUrl.call(void 0,
1752
+ baseUrl,
1753
+ targetPlanSku ? `/dashboard/billing?plan=${encodeURIComponent(_chunk5XVDZVCRjs.resolvePublicPlanSku.call(void 0, targetPlanSku))}` : "/dashboard/billing?plan",
1754
+ _chunk2RLMHWXWjs.resolveCliDashboardOrgId.call(void 0, baseUrl)
1755
+ );
1756
+ if (!options.json && options.open !== false) _chunkVWPM4OICjs.openInBrowser.call(void 0, link);
1757
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1758
+ {
1759
+ ok: true,
1760
+ url: link,
1761
+ render: {
1762
+ sections: [
1763
+ {
1764
+ title: "billing change-plan",
1765
+ lines: [`Open this link to choose and confirm the plan: ${link}`]
1766
+ }
1767
+ ]
1768
+ }
1769
+ },
1767
1770
  { json: options.json }
1768
1771
  );
1769
1772
  }
1770
1773
  async function handleBillingDetailsShow(options) {
1771
- const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.getDetails();
1772
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1774
+ const payload = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().billing.getDetails();
1775
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1773
1776
  }
1774
1777
  async function handleBillingDetailsSet(options) {
1775
1778
  const separator = _nullishCoalesce(_optionalChain([options, 'access', _28 => _28.taxId, 'optionalAccess', _29 => _29.indexOf, 'call', _30 => _30(":")]), () => ( -1));
@@ -1786,7 +1789,7 @@ async function handleBillingDetailsSet(options) {
1786
1789
  );
1787
1790
  return;
1788
1791
  }
1789
- const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.setDetails({
1792
+ const payload = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().billing.setDetails({
1790
1793
  ...options.name !== void 0 ? { name: options.name } : {},
1791
1794
  ...options.line1 !== void 0 ? {
1792
1795
  address: {
@@ -1805,28 +1808,28 @@ async function handleBillingDetailsSet(options) {
1805
1808
  }
1806
1809
  } : {}
1807
1810
  });
1808
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1811
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1809
1812
  }
1810
1813
  async function handleTargetPlanCancellation(options) {
1811
1814
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1812
- const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.transitionPlan({
1815
+ const payload = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().billing.transitionPlan({
1813
1816
  action: options.undo ? "undo_cancel" : "cancel",
1814
1817
  idempotencyKey
1815
1818
  });
1816
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1819
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1817
1820
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1818
1821
  { json: options.json }
1819
1822
  );
1820
1823
  }
1821
1824
  async function handleTargetPortal(options) {
1822
- const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.portalSession(
1825
+ const payload = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().billing.portalSession(
1823
1826
  options.billingAddress ? { flow: "customer_update" } : void 0
1824
1827
  );
1825
- if (!options.json && !options.noOpen) _chunkOOGP737Ijs.openInBrowser.call(void 0, payload.url);
1826
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1828
+ if (!options.json && !options.noOpen) _chunkVWPM4OICjs.openInBrowser.call(void 0, payload.url);
1829
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1827
1830
  }
1828
1831
  async function handleRedeemCode(code, options) {
1829
- const { http } = _chunkOOGP737Ijs.getAuthedHttpClient.call(void 0, );
1832
+ const { http } = _chunkVWPM4OICjs.getAuthedHttpClient.call(void 0, );
1830
1833
  const payload = await http.post(
1831
1834
  "/api/v2/billing/checkout",
1832
1835
  {
@@ -1834,8 +1837,8 @@ async function handleRedeemCode(code, options) {
1834
1837
  }
1835
1838
  );
1836
1839
  const url = String(payload.url || payload.checkout_url || "");
1837
- if (!options.json && !options.noOpen && url) _chunkOOGP737Ijs.openInBrowser.call(void 0, url);
1838
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1840
+ if (!options.json && !options.noOpen && url) _chunkVWPM4OICjs.openInBrowser.call(void 0, url);
1841
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1839
1842
  {
1840
1843
  ...payload,
1841
1844
  render: {
@@ -1889,21 +1892,21 @@ Examples:
1889
1892
  "--sandbox-timeout <duration>",
1890
1893
  "Runtime timeout, such as 30m or 2h"
1891
1894
  ).addOption(
1892
- new (0, _commander.Option)("--sandbox-size <size>", "Runtime memory profile").choices([..._chunkYGCKMI5Pjs.PLAY_SANDBOX_SIZE_INPUTS]).default("standard")
1895
+ new (0, _commander.Option)("--sandbox-size <size>", "Runtime memory profile").choices([..._chunk2M3VVGMZjs.PLAY_SANDBOX_SIZE_INPUTS]).default("standard")
1893
1896
  ).option("--quantity <sessions>", "Number of sandbox sessions", "1").option("--json", "Emit the bounded component quotation as JSON").action(
1894
1897
  async (options) => {
1895
1898
  const quantity = Number(options.quantity);
1896
1899
  if (!Number.isSafeInteger(quantity) || quantity <= 0) {
1897
1900
  throw new Error("--quantity must be a positive safe integer.");
1898
1901
  }
1899
- const quote = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.quote({
1902
+ const quote = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().billing.quote({
1900
1903
  quantity,
1901
1904
  sandbox_runtime: {
1902
1905
  timeout: options.sandboxTimeout,
1903
1906
  size: options.sandboxSize
1904
1907
  }
1905
1908
  });
1906
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, quote, {
1909
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, quote, {
1907
1910
  json: options.json,
1908
1911
  text: `Sandbox session ceiling: ${quote.maximum_credits} Deepline credits (${quote.quantity} session${quote.quantity === 1 ? "" : "s"}).
1909
1912
  ${quote.explanation}
@@ -1932,9 +1935,9 @@ Examples:
1932
1935
  billing.command("reuse").description(
1933
1936
  "Show recorded reused tool results for this org; no credit estimate."
1934
1937
  ).option("--json", "Return the org reuse summary as JSON").action(async (options) => {
1935
- const { http } = _chunkOOGP737Ijs.getAuthedHttpClient.call(void 0, );
1938
+ const { http } = _chunkVWPM4OICjs.getAuthedHttpClient.call(void 0, );
1936
1939
  const payload = await http.get("/api/v2/usage/reuse");
1937
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1940
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
1938
1941
  {
1939
1942
  status: "ok",
1940
1943
  data: payload,
@@ -2175,8 +2178,8 @@ Examples:
2175
2178
  new (0, _commander.Command)("trigger").description(
2176
2179
  "Evaluate capped automatic recharge and resume any pending purchase."
2177
2180
  ).option("--json", "Emit JSON output").action(async (options) => {
2178
- const result = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.autoRecharge.trigger();
2179
- _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
2181
+ const result = await new (0, _chunk3LP7J63Ljs.DeeplineClient)().billing.autoRecharge.trigger();
2182
+ _chunkVWPM4OICjs.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
2180
2183
  })
2181
2184
  );
2182
2185
  billing.command("cards").description("List, add, choose the default of, and remove saved cards.").addHelpText(
@@ -2208,22 +2211,25 @@ Examples:
2208
2211
  (cardId, options) => handleCardChange("remove", cardId, options)
2209
2212
  )
2210
2213
  );
2211
- billing.command("change-plan").description("Start or change the target billing plan.").argument(
2212
- "<plan_sku>",
2213
- `${_chunk7HOYKXVYjs.PUBLIC_PLAN_SKUS.join(", ")}. Run deepline billing plans to see workspace availability.`
2214
- ).option(
2215
- "--billing-email <email>",
2216
- "Invoice recipient: required with --invoice, otherwise used when the account has no billing email"
2217
- ).option(
2218
- "--promo-code <code>",
2219
- "Plan promo code; an unknown, expired, or used code refuses the change"
2220
- ).option(
2221
- "--annual",
2222
- "Pay for a year up front where `billing plans` shows an annual price; credits stay monthly and a cancellation takes effect at the end of the paid year"
2223
- ).option(
2224
- "--invoice",
2225
- "Email an invoice to --billing-email instead of charging a card (monthly or with --annual, starting from Solo); the plan starts once it is paid (due in 27 days). Set company name, address and tax ID first with `billing details set`"
2226
- ).option("--idempotency-key <key>", "Stable retry key").option("--json", "Emit JSON output").action(handleTargetPlan);
2214
+ billing.command("change-plan").description(
2215
+ "Print and open a billing page link with the plan dialog open; the plan changes only once you confirm it in the browser."
2216
+ ).addHelpText(
2217
+ "after",
2218
+ `
2219
+ Notes:
2220
+ Makes no change itself. A named plan opens its confirmation in the browser;
2221
+ without one, the plan picker opens. Annual billing and promo codes are
2222
+ chosen in the browser. Agents: give the user the printed link.
2223
+
2224
+ Examples:
2225
+ deepline billing change-plan
2226
+ deepline billing change-plan team
2227
+ deepline billing change-plan scale --no-open
2228
+ `
2229
+ ).argument(
2230
+ "[plan_sku]",
2231
+ `${_chunk5XVDZVCRjs.PUBLIC_PLAN_SKUS.join(", ")}. Opens that plan's confirmation; omit to open the plan picker.`
2232
+ ).option("--no-open", "Print the link without opening a browser").option("--json", "Emit JSON output").action(handleTargetPlan);
2227
2233
  const details = billing.command("details").description(
2228
2234
  "Show the company name, billing address and tax ID printed on invoices."
2229
2235
  ).option("--json", "Emit JSON output").action(handleBillingDetailsShow);
@@ -2242,15 +2248,12 @@ Notes:
2242
2248
  Read-only. Shows the current target billing plan, pending plan, and every
2243
2249
  visible plan's recurring price, included credits, purchased-credit price,
2244
2250
  and current acquisition availability. All amounts are Deepline credits and
2245
- Deepline-facing USD, never raw provider spend. Change to an available plan
2246
- with: deepline billing change-plan <plan_sku>. A first-month price or bonus
2247
- credits appear on a plan when the org is offered them. An annual
2248
- price appears when the org may pay for a year up front; buy it with
2249
- change-plan <plan_sku> --annual. Where offered, any plan can be invoiced
2250
- instead of charged: add --invoice --billing-email <email> (billing details set adds the company
2251
- name, address and tax ID). With
2252
- --promo-code, prices are quoted with that code and its outcome is shown;
2253
- pass the same code to change-plan.
2251
+ Deepline-facing USD, never raw provider spend. Get a link to change to an
2252
+ available plan with: deepline billing change-plan <plan_sku>. A first-month
2253
+ price or bonus credits appear on a plan when the org is offered them. An
2254
+ annual price appears when the org may pay for a year up front; choose it in
2255
+ the browser. With --promo-code, prices are quoted with that code and its
2256
+ outcome is shown; enter the same code in the browser.
2254
2257
 
2255
2258
  Examples:
2256
2259
  deepline billing plans