deepline 0.3.551 → 0.3.552

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 (167) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +23 -0
  2. package/dist/bundling-sources/sdk/src/http-core.ts +6 -2
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +58 -29
  5. package/dist/bundling-sources/shared_libs/monitors/package.json +2 -0
  6. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +80 -13
  7. package/dist/bundling-sources/shared_libs/monitors/tamradar-countries.ts +285 -0
  8. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +144 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +137 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +14 -2
  11. package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +20 -16
  12. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +47 -14
  13. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +48 -3
  14. package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +9 -0
  15. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +32 -10
  16. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +37 -7
  17. package/dist/cli/{auth-E7BH4GMJ.mjs → auth-KVSBJZOX.mjs} +5 -5
  18. package/dist/cli/auth-MMNVWATX.js +43 -0
  19. package/dist/cli/{billing-OXKU462W.mjs → billing-54RHFEBI.mjs} +19 -12
  20. package/dist/cli/{billing-DNQAZGX7.js → billing-FQREA7UA.js} +105 -98
  21. package/dist/cli/{chunk-5VVSEU67.js → chunk-3FD5EQ62.js} +6 -6
  22. package/dist/cli/{chunk-WKBHUB6R.js → chunk-45PVGZST.js} +99 -99
  23. package/dist/cli/{chunk-COGREZAO.js → chunk-4MK42735.js} +44 -44
  24. package/dist/cli/{chunk-T2B5BVZE.js → chunk-4NQF6KJ3.js} +13 -13
  25. package/dist/cli/{chunk-V6SCP4B7.mjs → chunk-4TALT2M3.mjs} +1 -1
  26. package/dist/cli/{chunk-C4CUZH57.js → chunk-4UUR4TCH.js} +2 -2
  27. package/dist/cli/{chunk-PM7MO62Y.mjs → chunk-57VZVF5D.mjs} +3 -3
  28. package/dist/cli/{chunk-VTGG2RT3.js → chunk-634ZDA3F.js} +1 -1
  29. package/dist/cli/{chunk-E64HFB4L.mjs → chunk-6O5HOODW.mjs} +11 -11
  30. package/dist/cli/{chunk-GGB3JYCW.mjs → chunk-6PRW5UBA.mjs} +2 -2
  31. package/dist/cli/{chunk-GVYLCCKN.mjs → chunk-6RZOWL2V.mjs} +1 -1
  32. package/dist/cli/{chunk-POLUE7D5.js → chunk-6YCA5NKJ.js} +7 -7
  33. package/dist/cli/{chunk-5LUF4LAR.mjs → chunk-6ZORHRKB.mjs} +1 -0
  34. package/dist/cli/{chunk-PPSDCN6C.js → chunk-77AAAGVB.js} +2 -2
  35. package/dist/cli/{chunk-UDXULACQ.js → chunk-7IKQKKNX.js} +3 -3
  36. package/dist/cli/{chunk-2ZYRBMQM.js → chunk-ADRC5I3R.js} +22 -22
  37. package/dist/cli/{chunk-2UXDHFSF.mjs → chunk-AQWQ2BFX.mjs} +1 -1
  38. package/dist/cli/{chunk-D6M5HFBB.mjs → chunk-AWJPDPMA.mjs} +1 -1
  39. package/dist/cli/{chunk-CLRAANWH.mjs → chunk-AZQ264ID.mjs} +1 -1
  40. package/dist/cli/{chunk-NMWGZD6Y.js → chunk-BAIST2BR.js} +26 -26
  41. package/dist/cli/{chunk-5S6PHKRV.mjs → chunk-DJ2JDK4O.mjs} +1 -1
  42. package/dist/cli/{chunk-MNSTCJMX.mjs → chunk-EOPEYCY7.mjs} +3 -3
  43. package/dist/cli/{chunk-HEHVGEZV.mjs → chunk-EUPVF4SU.mjs} +5 -5
  44. package/dist/cli/{chunk-3G6QZACZ.js → chunk-F2LH7TGF.js} +15 -15
  45. package/dist/cli/{chunk-BIIJATTX.mjs → chunk-FTJLJCE5.mjs} +1 -1
  46. package/dist/cli/{chunk-XYE5XPGF.js → chunk-G4O75EXF.js} +9 -9
  47. package/dist/cli/{chunk-Z2FIOG3V.js → chunk-GKYAYLRI.js} +12 -12
  48. package/dist/cli/{chunk-3KYBDAR3.js → chunk-HO3XK3R7.js} +5 -5
  49. package/dist/cli/{chunk-FOTGUFVK.mjs → chunk-HYC4MKGK.mjs} +2 -2
  50. package/dist/cli/{chunk-44I675YK.js → chunk-IDVVIXPJ.js} +41 -41
  51. package/dist/cli/{chunk-ZCDKE4UH.js → chunk-IHRKLXZN.js} +5 -5
  52. package/dist/cli/{chunk-6PWJKMFQ.mjs → chunk-IYSTRCLX.mjs} +4 -4
  53. package/dist/cli/{chunk-CQ6JYQSW.js → chunk-JWUAX6OP.js} +10 -10
  54. package/dist/cli/{chunk-W2ZWQUHT.js → chunk-MF2GHZDO.js} +2 -2
  55. package/dist/cli/{chunk-LPJPCGT3.js → chunk-PFO3ISXA.js} +26 -15
  56. package/dist/cli/{chunk-W425ERWN.mjs → chunk-PTVD2GVQ.mjs} +5 -5
  57. package/dist/cli/{chunk-5IL7SC45.mjs → chunk-QAORXEY3.mjs} +2 -2
  58. package/dist/cli/{chunk-RE5MJBEV.mjs → chunk-QILKGXYF.mjs} +2 -2
  59. package/dist/cli/{chunk-VWLHRZFG.mjs → chunk-QPKH23EC.mjs} +4 -4
  60. package/dist/cli/{chunk-7DOQ3OEX.mjs → chunk-QX7LFGJR.mjs} +1 -1
  61. package/dist/cli/{chunk-3T65J5RG.mjs → chunk-QY3ZNU6Z.mjs} +2 -2
  62. package/dist/cli/{chunk-PACD5DGC.js → chunk-RBEUVDZF.js} +10 -6
  63. package/dist/cli/{chunk-4OMAGJ6U.js → chunk-RQZQVFCJ.js} +2 -2
  64. package/dist/cli/{chunk-MR5LTVHD.js → chunk-S46HWQKO.js} +53 -53
  65. package/dist/cli/{chunk-44KSACJW.mjs → chunk-S5S355UY.mjs} +2 -2
  66. package/dist/cli/{chunk-QM6Y6S4E.js → chunk-SHLFOPD6.js} +5 -5
  67. package/dist/cli/{chunk-MXGA6JFI.mjs → chunk-U7QRMBIY.mjs} +2 -2
  68. package/dist/cli/{chunk-R7J7CJPZ.js → chunk-V436Z54K.js} +1 -0
  69. package/dist/cli/{chunk-ZDQFBJPO.js → chunk-VQALXEXO.js} +19 -19
  70. package/dist/cli/{chunk-7WQNWJQW.mjs → chunk-WE5HES3H.mjs} +5 -5
  71. package/dist/cli/{chunk-54EEYLTF.js → chunk-WLN3SUIA.js} +3 -3
  72. package/dist/cli/{chunk-7RSIFA72.js → chunk-XVB7V4N7.js} +16 -16
  73. package/dist/cli/{chunk-I4VKGNAQ.mjs → chunk-YJHE3O5M.mjs} +5 -5
  74. package/dist/cli/{chunk-4D3WIZST.mjs → chunk-YLTMXJFC.mjs} +7 -3
  75. package/dist/cli/{chunk-ZMNGZ6XS.mjs → chunk-Z5TSLLOW.mjs} +19 -8
  76. package/dist/cli/{chunk-S7IZWGUA.mjs → chunk-ZIAXDBXX.mjs} +2 -2
  77. package/dist/cli/command-docs.js +3 -3
  78. package/dist/cli/command-docs.mjs +2 -2
  79. package/dist/cli/concurrent-runs-help-FQAIHKKC.js +21 -0
  80. package/dist/cli/{concurrent-runs-help-C6L6I5OR.mjs → concurrent-runs-help-Q4KPAUJX.mjs} +6 -6
  81. package/dist/cli/{csv-SYSDXFEM.mjs → csv-2PTVDNO6.mjs} +4 -4
  82. package/dist/cli/{csv-QMF4FWE7.js → csv-F5VAGX4K.js} +13 -13
  83. package/dist/cli/{db-Q7HURWRZ.mjs → db-IEDXAUF7.mjs} +6 -6
  84. package/dist/cli/{db-YSHPPA4H.js → db-Z3OIUFMM.js} +27 -27
  85. package/dist/cli/{describe-YGMQBV44.mjs → describe-QDANCTS3.mjs} +18 -18
  86. package/dist/cli/describe-VUTT5ZKU.js +50 -0
  87. package/dist/cli/describe-core.d.mts +2 -2
  88. package/dist/cli/describe-core.d.ts +2 -2
  89. package/dist/cli/{executions-MWBC5TAW.js → executions-H6H5655J.js} +8 -8
  90. package/dist/cli/{executions-G7U3VUXN.mjs → executions-R3LP74QN.mjs} +6 -6
  91. package/dist/cli/{feedback-SD55OY6H.js → feedback-VFOUR66B.js} +14 -14
  92. package/dist/cli/{feedback-GMHIFLBJ.mjs → feedback-WL3MRVT5.mjs} +6 -6
  93. package/dist/cli/git-ETB3GH3K.js +25 -0
  94. package/dist/cli/{git-HPE45OPD.mjs → git-YX2J4GCI.mjs} +5 -5
  95. package/dist/cli/index.js +147 -147
  96. package/dist/cli/index.mjs +46 -46
  97. package/dist/cli/{integrations-2W4MGIQR.mjs → integrations-5ZK5KLVP.mjs} +7 -7
  98. package/dist/cli/{integrations-HFKVBY6G.js → integrations-E2JZYKHS.js} +15 -15
  99. package/dist/cli/{legacy-noops-SXVNDEXN.js → legacy-noops-3VW4IJTH.js} +9 -9
  100. package/dist/cli/{legacy-noops-GZYKNU2Z.mjs → legacy-noops-SMN3GSXY.mjs} +6 -6
  101. package/dist/cli/{mcp-PJRHQHHU.js → mcp-UQV2K4EW.js} +24 -24
  102. package/dist/cli/{mcp-BWA6KULG.mjs → mcp-V6MGCYAG.mjs} +4 -4
  103. package/dist/cli/{monitors-SYQKCATO.mjs → monitors-GGKS5W6M.mjs} +7 -7
  104. package/dist/cli/{monitors-K2WSI6CR.js → monitors-R3BBDCRC.js} +100 -100
  105. package/dist/cli/{org-YQ2CR32B.js → org-GRYVMNSW.js} +88 -88
  106. package/dist/cli/{org-5KD7X7IA.mjs → org-Z37NGJV4.mjs} +6 -6
  107. package/dist/cli/{play-SZXY2F2S.js → play-2MVO27VO.js} +319 -319
  108. package/dist/cli/{play-TTMABJEI.mjs → play-MDWPR4XG.mjs} +18 -18
  109. package/dist/cli/{providers-YDHCTZAF.js → providers-2AACRUZH.js} +9 -9
  110. package/dist/cli/{providers-GQIOMRQO.mjs → providers-AKDYFZJZ.mjs} +6 -6
  111. package/dist/cli/{quickstart-BNYOXQXG.js → quickstart-H6IV3PV3.js} +6 -6
  112. package/dist/cli/{quickstart-PHSSMKCA.mjs → quickstart-QDGRJFZY.mjs} +4 -4
  113. package/dist/cli/{run-GFIAZXVL.js → run-2634REDK.js} +43 -43
  114. package/dist/cli/{run-74C3C75C.mjs → run-RTSQNGRD.mjs} +23 -23
  115. package/dist/cli/{search-3SWUB7KX.mjs → search-6AOJ4XPP.mjs} +7 -7
  116. package/dist/cli/search-VTW2YNBS.js +32 -0
  117. package/dist/cli/{search-output-K2SWHVHQ.mjs → search-output-6ADMTOU5.mjs} +4 -4
  118. package/dist/cli/{search-output-6JF3S4TP.js → search-output-S5ODBL5E.js} +6 -6
  119. package/dist/cli/{secrets-2SAKLH2H.js → secrets-LHCIIHMT.js} +15 -15
  120. package/dist/cli/{secrets-2M4XWEKE.mjs → secrets-TFIFBFB3.mjs} +6 -6
  121. package/dist/cli/sessions-CJ4FJ2WB.js +22 -0
  122. package/dist/cli/{sessions-A64BCXTO.mjs → sessions-WHBVUHVW.mjs} +6 -6
  123. package/dist/cli/{settings-HV64WIJF.js → settings-CP4FVK2W.js} +85 -85
  124. package/dist/cli/{settings-SVGEC3FI.mjs → settings-EBONWL5C.mjs} +12 -12
  125. package/dist/cli/{setup-EDC3NEJ3.mjs → setup-I5AZE3IU.mjs} +9 -9
  126. package/dist/cli/{setup-FHXOLQGQ.js → setup-LFGHTNLQ.js} +49 -49
  127. package/dist/cli/skills-R7EBXREW.js +36 -0
  128. package/dist/cli/{skills-3HGHZMXB.mjs → skills-W76AO5XE.mjs} +7 -7
  129. package/dist/cli/{tools-P2QS6A6Q.mjs → tools-7IJHGF6W.mjs} +17 -17
  130. package/dist/cli/tools-V7U2BDXM.js +57 -0
  131. package/dist/cli/update-4COPZETK.js +34 -0
  132. package/dist/cli/{update-552BYQM4.mjs → update-GFOPZTHY.mjs} +9 -9
  133. package/dist/cli/{views-PA25NAE3.js → views-BPL2TQJ4.js} +21 -21
  134. package/dist/cli/{views-LD5HXJYY.mjs → views-D4NX4SBG.mjs} +6 -6
  135. package/dist/cli/{workflow-LDYFGBYP.mjs → workflow-YXP42FUI.mjs} +7 -7
  136. package/dist/cli/{workflow-FIDBUQV6.js → workflow-ZYNAUCKC.js} +17 -17
  137. package/dist/{client-t9HZAkFD.d.ts → client-Bf3IpUKN.d.ts} +1 -1
  138. package/dist/{client-DuDFiJDU.d.mts → client-CyXGrO4D.d.mts} +1 -1
  139. package/dist/{client-core-CJRzLanv.d.ts → client-core-BWd0lX0Z.d.ts} +17 -0
  140. package/dist/{client-core-DydMQOft.d.mts → client-core-BxsLnXlm.d.mts} +17 -0
  141. package/dist/index.d.mts +3 -3
  142. package/dist/index.d.ts +3 -3
  143. package/dist/index.js +9 -9
  144. package/dist/index.mjs +6 -6
  145. package/dist/install-integrity.json +119 -118
  146. package/dist/plays/play-description.d.mts +1 -1
  147. package/dist/plays/play-description.d.ts +1 -1
  148. package/dist/plays/run-request.d.mts +1 -1
  149. package/dist/plays/run-request.d.ts +1 -1
  150. package/dist/release.d.mts +1 -1
  151. package/dist/release.d.ts +1 -1
  152. package/dist/release.js +2 -2
  153. package/dist/release.mjs +1 -1
  154. package/dist/server.d.mts +2 -2
  155. package/dist/server.d.ts +2 -2
  156. package/dist/server.js +5 -5
  157. package/dist/server.mjs +3 -3
  158. package/package.json +1 -1
  159. package/dist/cli/auth-B4PI7GVY.js +0 -43
  160. package/dist/cli/concurrent-runs-help-JEFQZTJI.js +0 -21
  161. package/dist/cli/describe-PXTSBJTL.js +0 -50
  162. package/dist/cli/git-I3JV7IGH.js +0 -25
  163. package/dist/cli/search-2RRRF4LW.js +0 -32
  164. package/dist/cli/sessions-SBH27JNW.js +0 -22
  165. package/dist/cli/skills-Y3SRLOYD.js +0 -36
  166. package/dist/cli/tools-OFYPUPUV.js +0 -57
  167. package/dist/cli/update-SOUSCLB7.js +0 -34
@@ -1,25 +1,25 @@
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 _chunk3KYBDAR3js = require('./chunk-3KYBDAR3.js');
4
- require('./chunk-MR5LTVHD.js');
3
+ var _chunkHO3XK3R7js = require('./chunk-HO3XK3R7.js');
4
+ require('./chunk-S46HWQKO.js');
5
5
 
6
6
 
7
- var _chunkQM6Y6S4Ejs = require('./chunk-QM6Y6S4E.js');
7
+ var _chunkSHLFOPD6js = require('./chunk-SHLFOPD6.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkLPJPCGT3js = require('./chunk-LPJPCGT3.js');
11
+ var _chunkPFO3ISXAjs = require('./chunk-PFO3ISXA.js');
12
12
  require('./chunk-4WAM6TLD.js');
13
13
  require('./chunk-SL6MYJYM.js');
14
14
  require('./chunk-PMH4GLMD.js');
15
15
  require('./chunk-XDVT3GOM.js');
16
16
 
17
17
 
18
- var _chunkC4CUZH57js = require('./chunk-C4CUZH57.js');
18
+ var _chunk4UUR4TCHjs = require('./chunk-4UUR4TCH.js');
19
19
 
20
20
 
21
21
  var _chunkH4ALLC2Xjs = require('./chunk-H4ALLC2X.js');
22
- require('./chunk-R7J7CJPZ.js');
22
+ require('./chunk-V436Z54K.js');
23
23
 
24
24
 
25
25
  var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
@@ -29,9 +29,9 @@ var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
29
29
 
30
30
 
31
31
 
32
- var _chunkZDQFBJPOjs = require('./chunk-ZDQFBJPO.js');
33
- require('./chunk-UDXULACQ.js');
34
- require('./chunk-PACD5DGC.js');
32
+ var _chunkVQALXEXOjs = require('./chunk-VQALXEXO.js');
33
+ require('./chunk-7IKQKKNX.js');
34
+ require('./chunk-RBEUVDZF.js');
35
35
 
36
36
 
37
37
 
@@ -40,7 +40,7 @@ require('./chunk-XNYIZMNQ.js');
40
40
 
41
41
 
42
42
  var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
43
- require('./chunk-VTGG2RT3.js');
43
+ require('./chunk-634ZDA3F.js');
44
44
  require('./chunk-OG64RBAC.js');
45
45
  require('./chunk-COGTRVWW.js');
46
46
 
@@ -89,7 +89,7 @@ function reportBillingFailure(failure, options) {
89
89
  if (failure.next) {
90
90
  textLines.push(`Next: ${failure.next}`);
91
91
  }
92
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
92
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
93
93
  {
94
94
  ok: false,
95
95
  exitCode: failure.exitCode,
@@ -110,7 +110,7 @@ function parseTopUpCredits(raw) {
110
110
  return parsed;
111
111
  }
112
112
  function topUpIdempotencyKey(raw) {
113
- return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` : _chunkLPJPCGT3js.requireBillingIdempotencyKey.call(void 0, raw);
113
+ return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` : _chunkPFO3ISXAjs.requireBillingIdempotencyKey.call(void 0, raw);
114
114
  }
115
115
  function targetBillingIdempotencyKey(raw) {
116
116
  return typeof raw === "string" ? raw : `cli_target_billing:${Date.now()}:${_crypto.randomUUID.call(void 0, )}`;
@@ -329,7 +329,7 @@ function defaultLedgerExportPath() {
329
329
  );
330
330
  }
331
331
  async function handleBalance(options) {
332
- const { http } = _chunkZDQFBJPOjs.getAuthedHttpClient.call(void 0, );
332
+ const { http } = _chunkVQALXEXOjs.getAuthedHttpClient.call(void 0, );
333
333
  const payload = await http.get(
334
334
  "/api/v2/billing/balance"
335
335
  );
@@ -413,7 +413,7 @@ async function handleBalance(options) {
413
413
  ...options.verbose ? detail : [],
414
414
  ...lines.slice(1)
415
415
  ];
416
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
416
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
417
417
  {
418
418
  ...payload,
419
419
  ...recovery ? { recovery } : {},
@@ -449,7 +449,7 @@ async function handleUsageEvents(options) {
449
449
  );
450
450
  return;
451
451
  }
452
- const client = new (0, _chunkQM6Y6S4Ejs.DeeplineClient)();
452
+ const client = new (0, _chunkSHLFOPD6js.DeeplineClient)();
453
453
  let payload;
454
454
  try {
455
455
  payload = await client.billing.usageEvents({
@@ -480,7 +480,7 @@ async function handleUsageEvents(options) {
480
480
  ),
481
481
  ...nextPage ? [`Next page: ${nextPage}`] : []
482
482
  ];
483
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
483
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
484
484
  {
485
485
  ...payload,
486
486
  next: { page: nextPage },
@@ -502,7 +502,7 @@ async function handleUsage(options) {
502
502
  return;
503
503
  }
504
504
  if (options.events) return handleUsageEvents(options);
505
- const { http } = _chunkZDQFBJPOjs.getAuthedHttpClient.call(void 0, );
505
+ const { http } = _chunkVQALXEXOjs.getAuthedHttpClient.call(void 0, );
506
506
  const params = new URLSearchParams();
507
507
  if (options.requestId !== void 0) {
508
508
  const requestId = options.requestId.trim();
@@ -586,7 +586,7 @@ async function handleUsage(options) {
586
586
  "No continuation is available for this view. Use deepline billing ledger export all for the full ledger."
587
587
  ] : []
588
588
  ];
589
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
589
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
590
590
  {
591
591
  ...payload,
592
592
  recent: {
@@ -600,7 +600,7 @@ async function handleUsage(options) {
600
600
  );
601
601
  }
602
602
  async function handleLimit(options) {
603
- const { http } = _chunkZDQFBJPOjs.getAuthedHttpClient.call(void 0, );
603
+ const { http } = _chunkVQALXEXOjs.getAuthedHttpClient.call(void 0, );
604
604
  const payload = await http.get(
605
605
  "/api/v2/billing/limit"
606
606
  );
@@ -608,7 +608,7 @@ async function handleLimit(options) {
608
608
  `Monthly usage cap: ${_nullishCoalesce(payload.monthly_credits_limit, () => ( "(unknown)"))}`,
609
609
  "Enforcement: checked before new calls; in-flight work can exceed the cap."
610
610
  ] : ["Monthly usage cap: off"];
611
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
611
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
612
612
  {
613
613
  ...payload,
614
614
  render: { sections: [{ title: "billing limit", lines }] }
@@ -617,12 +617,12 @@ async function handleLimit(options) {
617
617
  );
618
618
  }
619
619
  async function handleSetLimit(credits, options) {
620
- const { http } = _chunkZDQFBJPOjs.getAuthedHttpClient.call(void 0, );
620
+ const { http } = _chunkVQALXEXOjs.getAuthedHttpClient.call(void 0, );
621
621
  const payload = await http.request("/api/v2/billing/limit", {
622
622
  method: "PUT",
623
623
  body: { monthly_credits_limit: Number.parseInt(credits, 10) }
624
624
  });
625
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
625
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
626
626
  {
627
627
  ...payload,
628
628
  render: {
@@ -638,11 +638,11 @@ async function handleSetLimit(credits, options) {
638
638
  );
639
639
  }
640
640
  async function handleLimitOff(options) {
641
- const { http } = _chunkZDQFBJPOjs.getAuthedHttpClient.call(void 0, );
641
+ const { http } = _chunkVQALXEXOjs.getAuthedHttpClient.call(void 0, );
642
642
  const payload = await http.request("/api/v2/billing/limit", {
643
643
  method: "DELETE"
644
644
  });
645
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
645
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
646
646
  {
647
647
  ...payload,
648
648
  render: {
@@ -662,7 +662,7 @@ async function exportLedger(http, outputPath, options) {
662
662
  let initialized = false;
663
663
  let pageNumber = 0;
664
664
  console.error(`Exporting billing ledger to ${outputPath}`);
665
- for await (const entries of _chunkLPJPCGT3js.iterateCursorPages.call(void 0, async (cursor) => {
665
+ for await (const entries of _chunkPFO3ISXAjs.iterateCursorPages.call(void 0, async (cursor) => {
666
666
  pageNumber += 1;
667
667
  console.error(
668
668
  `Fetching page ${pageNumber}; ${summary.row_count} rows written.`
@@ -701,7 +701,7 @@ async function exportLedger(http, outputPath, options) {
701
701
  return summary;
702
702
  }
703
703
  async function handleHistory(options) {
704
- const { http } = _chunkZDQFBJPOjs.getAuthedHttpClient.call(void 0, );
704
+ const { http } = _chunkVQALXEXOjs.getAuthedHttpClient.call(void 0, );
705
705
  const windows = {
706
706
  "1d": 86400,
707
707
  "1w": 604800,
@@ -713,10 +713,10 @@ async function handleHistory(options) {
713
713
  process.cwd(),
714
714
  "deepline",
715
715
  "data",
716
- _chunkZDQFBJPOjs.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
716
+ _chunkVQALXEXOjs.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
717
717
  );
718
718
  const summary = await exportLedger(http, outputPath, { sinceAt });
719
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
719
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
720
720
  {
721
721
  output_path: outputPath,
722
722
  row_count: summary.row_count,
@@ -753,14 +753,14 @@ async function handleLedgerExportAll(options) {
753
753
  );
754
754
  return;
755
755
  }
756
- const { http } = _chunkZDQFBJPOjs.getAuthedHttpClient.call(void 0, );
756
+ const { http } = _chunkVQALXEXOjs.getAuthedHttpClient.call(void 0, );
757
757
  const outputPath = options.output ? _path.resolve.call(void 0, String(options.output)) : defaultLedgerExportPath();
758
758
  const summary = await exportLedger(http, outputPath, {
759
759
  sinceAt,
760
760
  runId: options.runId,
761
761
  operation: options.operation
762
762
  });
763
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
763
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
764
764
  {
765
765
  output_path: outputPath,
766
766
  row_count: summary.row_count,
@@ -798,10 +798,11 @@ function planPriceText(priceUsd, priceInterval) {
798
798
  function targetPlanLine(plan) {
799
799
  const firstMonth = plan.first_month_price_usd != null ? ` (first month $${plan.first_month_price_usd})` : "";
800
800
  const bonus = plan.bonus_credits != null ? ` (+${plan.bonus_credits} bonus credits once paid)` : "";
801
- return `${_nullishCoalesce(plan.display_name, () => ( plan.name))} (${plan.sku}) | ${planPriceText(plan.recurring_price_usd, plan.interval)}${firstMonth}${bonus} | ${plan.included_credits} included credits/month | $${plan.purchased_credit_price_usd}/purchased credit | ${plan.acquisition_enabled ? "available" : "unavailable"}`;
801
+ const annual = plan.annual_price_usd != null ? ` (or $${plan.annual_price_usd}/year with --annual${plan.annual_offer_label ? `, ${plan.annual_offer_label}` : ""})` : "";
802
+ return `${_nullishCoalesce(plan.display_name, () => ( plan.name))} (${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"}`;
802
803
  }
803
804
  async function handlePlans(options) {
804
- const client = new (0, _chunkQM6Y6S4Ejs.DeeplineClient)();
805
+ const client = new (0, _chunkSHLFOPD6js.DeeplineClient)();
805
806
  const payload = await client.billing.targetPlans(
806
807
  options.promoCode ? { promoCode: options.promoCode } : void 0
807
808
  );
@@ -821,8 +822,8 @@ async function handlePlans(options) {
821
822
  ...payload.plans.length === 0 ? ["Plans: none available"] : ["Plans:", ...payload.plans.map(targetPlanLine)],
822
823
  _optionalChain([promo, 'optionalAccess', _8 => _8.status]) === "applied" ? `Change plan: deepline billing change-plan <plan_sku> --promo-code ${promo.code}` : "Change plan: deepline billing change-plan <plan_sku>"
823
824
  ];
824
- const legacyPayload = _chunkZDQFBJPOjs.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
825
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
825
+ const legacyPayload = _chunkVQALXEXOjs.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
826
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
826
827
  {
827
828
  ..._nullishCoalesce(legacyPayload, () => ( payload)),
828
829
  ...legacyPayload ? { target_billing: payload } : {},
@@ -832,7 +833,7 @@ async function handlePlans(options) {
832
833
  );
833
834
  }
834
835
  async function handleSubscribe(planVersionId, options) {
835
- const { http } = _chunkZDQFBJPOjs.getAuthedHttpClient.call(void 0, );
836
+ const { http } = _chunkVQALXEXOjs.getAuthedHttpClient.call(void 0, );
836
837
  const payload = await http.request(
837
838
  "/api/v2/billing/subscription/checkout",
838
839
  {
@@ -841,8 +842,8 @@ async function handleSubscribe(planVersionId, options) {
841
842
  }
842
843
  );
843
844
  const url = String(payload.checkout_url || "");
844
- if (!options.json && options.open !== false && url) _chunkZDQFBJPOjs.openInBrowser.call(void 0, url);
845
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
845
+ if (!options.json && options.open !== false && url) _chunkVQALXEXOjs.openInBrowser.call(void 0, url);
846
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
846
847
  {
847
848
  ...payload,
848
849
  render: {
@@ -858,7 +859,7 @@ async function handleSubscribe(planVersionId, options) {
858
859
  );
859
860
  }
860
861
  async function handleSubscriptionStatus(options) {
861
- const client = new (0, _chunkQM6Y6S4Ejs.DeeplineClient)();
862
+ const client = new (0, _chunkSHLFOPD6js.DeeplineClient)();
862
863
  const payload = await client.billing.subscription.status();
863
864
  const pools = _nullishCoalesce(payload.credit_pools, () => ( []));
864
865
  const lines = [
@@ -878,7 +879,7 @@ async function handleSubscriptionStatus(options) {
878
879
  ],
879
880
  `Assigned by: ${_nullishCoalesce(payload.assigned_by, () => ( "default"))}`
880
881
  ];
881
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
882
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
882
883
  {
883
884
  ...payload,
884
885
  render: { sections: [{ title: "billing subscription", lines }] }
@@ -887,7 +888,7 @@ async function handleSubscriptionStatus(options) {
887
888
  );
888
889
  }
889
890
  async function handleSubscriptionCancel(options) {
890
- const client = new (0, _chunkQM6Y6S4Ejs.DeeplineClient)();
891
+ const client = new (0, _chunkSHLFOPD6js.DeeplineClient)();
891
892
  const action = options.undo ? "undo_cancel" : "cancel";
892
893
  if (options.dryRun) {
893
894
  const status = await client.billing.subscription.status();
@@ -904,7 +905,7 @@ async function handleSubscriptionCancel(options) {
904
905
  return;
905
906
  }
906
907
  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.";
907
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
908
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
908
909
  {
909
910
  ok: true,
910
911
  dry_run: true,
@@ -960,7 +961,7 @@ async function handleSubscriptionCancel(options) {
960
961
  "Remaining credits are yours to keep \u2014 cancellation never removes credits.",
961
962
  "Undo with: deepline billing subscription cancel --undo"
962
963
  ];
963
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
964
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
964
965
  {
965
966
  ok: true,
966
967
  ...result,
@@ -1014,7 +1015,7 @@ async function handleInvoices(options) {
1014
1015
  return;
1015
1016
  }
1016
1017
  }
1017
- const client = new (0, _chunkQM6Y6S4Ejs.DeeplineClient)();
1018
+ const client = new (0, _chunkSHLFOPD6js.DeeplineClient)();
1018
1019
  let payload;
1019
1020
  try {
1020
1021
  payload = await client.billing.invoices.list(
@@ -1043,7 +1044,7 @@ async function handleInvoices(options) {
1043
1044
  url: entry.url
1044
1045
  }))
1045
1046
  } : { ...payload, count: entries.length };
1046
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
1047
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1047
1048
  {
1048
1049
  ...envelope,
1049
1050
  render: { sections: [{ title: "billing invoices", lines }] }
@@ -1052,7 +1053,7 @@ async function handleInvoices(options) {
1052
1053
  );
1053
1054
  }
1054
1055
  async function handleCheckout(options) {
1055
- const { http } = _chunkZDQFBJPOjs.getAuthedHttpClient.call(void 0, );
1056
+ const { http } = _chunkVQALXEXOjs.getAuthedHttpClient.call(void 0, );
1056
1057
  const payload = await http.post(
1057
1058
  "/api/v2/billing/checkout",
1058
1059
  {
@@ -1062,8 +1063,8 @@ async function handleCheckout(options) {
1062
1063
  }
1063
1064
  );
1064
1065
  const url = String(payload.url || payload.checkout_url || "");
1065
- if (!options.json && !options.noOpen && url) _chunkZDQFBJPOjs.openInBrowser.call(void 0, url);
1066
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
1066
+ if (!options.json && !options.noOpen && url) _chunkVQALXEXOjs.openInBrowser.call(void 0, url);
1067
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1067
1068
  {
1068
1069
  ...payload,
1069
1070
  render: {
@@ -1108,7 +1109,7 @@ async function handleTopUp(creditsRaw, options) {
1108
1109
  return;
1109
1110
  }
1110
1111
  if (options.dryRun) {
1111
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
1112
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1112
1113
  {
1113
1114
  ok: true,
1114
1115
  dry_run: true,
@@ -1138,7 +1139,7 @@ async function handleTopUp(creditsRaw, options) {
1138
1139
  );
1139
1140
  return;
1140
1141
  }
1141
- const client = new (0, _chunkQM6Y6S4Ejs.DeeplineClient)();
1142
+ const client = new (0, _chunkSHLFOPD6js.DeeplineClient)();
1142
1143
  let payload;
1143
1144
  try {
1144
1145
  payload = await client.billing.topUpWithReceipt({
@@ -1155,7 +1156,7 @@ async function handleTopUp(creditsRaw, options) {
1155
1156
  return;
1156
1157
  }
1157
1158
  if (payload.status === "pending") {
1158
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
1159
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1159
1160
  {
1160
1161
  ok: true,
1161
1162
  ...payload,
@@ -1219,17 +1220,17 @@ async function handleTopUp(creditsRaw, options) {
1219
1220
  ]
1220
1221
  }
1221
1222
  };
1222
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0, options.compact ? compactEnvelope : fullEnvelope, {
1223
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0, options.compact ? compactEnvelope : fullEnvelope, {
1223
1224
  json: options.json
1224
1225
  });
1225
1226
  }
1226
1227
  async function handleTargetStatus(options) {
1227
- const client = new (0, _chunkQM6Y6S4Ejs.DeeplineClient)();
1228
+ const client = new (0, _chunkSHLFOPD6js.DeeplineClient)();
1228
1229
  const payload = await client.billing.targetStatus();
1229
1230
  const balanceCommand = "deepline billing balance";
1230
1231
  const recentChargesCommand = "deepline billing usage --limit 5";
1231
1232
  const exactChargeCommand = "deepline billing usage --request-id <job_id>";
1232
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
1233
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1233
1234
  {
1234
1235
  ok: true,
1235
1236
  ...payload,
@@ -1267,13 +1268,13 @@ function formatComputeAmount(minutes, credits) {
1267
1268
  return `${time} ${minutes === 1 ? "minute" : "minutes"} (${cost} ${credits === 1 ? "credit" : "credits"})`;
1268
1269
  }
1269
1270
  async function handleIncludedCompute(options) {
1270
- const client = new (0, _chunkQM6Y6S4Ejs.DeeplineClient)();
1271
+ const client = new (0, _chunkSHLFOPD6js.DeeplineClient)();
1271
1272
  const payload = options.enable ? await client.billing.enableIncludedCompute({ includeOverage: true }) : await client.billing.includedCompute({ includeOverage: true });
1272
1273
  const rate = _nullishCoalesce(payload.credits_per_minute, () => ( 0));
1273
1274
  const includedCredits = _nullishCoalesce(payload.included_credits_used, () => ( payload.included_minutes_used * rate));
1274
1275
  const includedMinutes = payload.included_credits_used !== void 0 && rate > 0 ? includedCredits / rate : payload.included_minutes_used;
1275
1276
  const overage = payload.overage_credits;
1276
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
1277
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1277
1278
  {
1278
1279
  ok: true,
1279
1280
  ...payload,
@@ -1288,13 +1289,13 @@ async function handleIncludedCompute(options) {
1288
1289
  ] : [],
1289
1290
  `Standard sandbox price: ${formatComputeAmount(60, Math.round(rate * 60))}`,
1290
1291
  `Allowance resets: ${payload.period_end_at.slice(0, 10)} (UTC)`,
1291
- _chunkC4CUZH57js.PLAY_RUNTIME_PRICING_NOTE,
1292
+ _chunk4UUR4TCHjs.PLAY_RUNTIME_PRICING_NOTE,
1292
1293
  _chunkH4ALLC2Xjs.PRICING_PAGE_NOTE
1293
1294
  ] : payload.status === "off" ? [
1294
1295
  "Included compute: off; Play compute is billed at provider cost.",
1295
1296
  `Allowance if enabled: ${formatComputeAmount(payload.plan.included_minutes, payload.plan.included_minutes * payload.plan.credits_per_minute)} per month`,
1296
1297
  `Standard sandbox price if enabled: ${formatComputeAmount(60, Math.round(payload.plan.credits_per_minute * 60))}`,
1297
- _chunkC4CUZH57js.PLAY_RUNTIME_PRICING_NOTE,
1298
+ _chunk4UUR4TCHjs.PLAY_RUNTIME_PRICING_NOTE,
1298
1299
  "Run deepline billing compute --enable to turn on included compute. It cannot be turned off again.",
1299
1300
  _chunkH4ALLC2Xjs.PRICING_PAGE_NOTE
1300
1301
  ] : [
@@ -1308,8 +1309,8 @@ async function handleIncludedCompute(options) {
1308
1309
  );
1309
1310
  }
1310
1311
  async function handleEntitlements(options) {
1311
- const payload = await new (0, _chunkQM6Y6S4Ejs.DeeplineClient)().billing.entitlements();
1312
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
1312
+ const payload = await new (0, _chunkSHLFOPD6js.DeeplineClient)().billing.entitlements();
1313
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1313
1314
  {
1314
1315
  ok: true,
1315
1316
  ...payload,
@@ -1319,7 +1320,7 @@ async function handleEntitlements(options) {
1319
1320
  title: "billing entitlements",
1320
1321
  lines: [
1321
1322
  `Plan: ${_nullishCoalesce(_optionalChain([payload, 'access', _12 => _12.plan, 'optionalAccess', _13 => _13.name]), () => ( "Legacy billing"))}`,
1322
- ..._chunk3KYBDAR3js.concurrentRunsLine.call(void 0, payload) ? [`Concurrent runs: ${_chunk3KYBDAR3js.concurrentRunsLine.call(void 0, payload)}`] : [],
1323
+ ..._chunkHO3XK3R7js.concurrentRunsLine.call(void 0, payload) ? [`Concurrent runs: ${_chunkHO3XK3R7js.concurrentRunsLine.call(void 0, payload)}`] : [],
1323
1324
  ...Object.entries(payload.benefits).flatMap(
1324
1325
  ([key, grant]) => "value" in grant ? [
1325
1326
  `${key}: ${grant.status}, ${JSON.stringify(grant.value)}${grant.expiresAt === void 0 ? "" : `, expires ${new Date(grant.expiresAt).toISOString()}`}`
@@ -1344,7 +1345,7 @@ async function handleEntitlements(options) {
1344
1345
  );
1345
1346
  }
1346
1347
  async function handleAutoRechargeStatus(options) {
1347
- const payload = await new (0, _chunkQM6Y6S4Ejs.DeeplineClient)().billing.autoRecharge.get();
1348
+ const payload = await new (0, _chunkSHLFOPD6js.DeeplineClient)().billing.autoRecharge.get();
1348
1349
  const state = payload.available ? payload.enabled ? "on" : "off" : "unavailable";
1349
1350
  const lines = [
1350
1351
  `State: ${state}`,
@@ -1354,7 +1355,7 @@ async function handleAutoRechargeStatus(options) {
1354
1355
  `Automatic credit purchase cap: ${payload.purchase_limit_credits} credits per rolling 30 days`
1355
1356
  ] : []
1356
1357
  ];
1357
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
1358
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1358
1359
  {
1359
1360
  ok: true,
1360
1361
  ...payload,
@@ -1403,7 +1404,7 @@ async function handleAutoRechargeSet(options) {
1403
1404
  }
1404
1405
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1405
1406
  if (options.dryRun) {
1406
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
1407
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1407
1408
  {
1408
1409
  ok: true,
1409
1410
  dry_run: true,
@@ -1424,7 +1425,7 @@ async function handleAutoRechargeSet(options) {
1424
1425
  );
1425
1426
  return;
1426
1427
  }
1427
- const payload = await new (0, _chunkQM6Y6S4Ejs.DeeplineClient)().billing.autoRecharge.update({
1428
+ const payload = await new (0, _chunkSHLFOPD6js.DeeplineClient)().billing.autoRecharge.update({
1428
1429
  enabled: true,
1429
1430
  thresholdCredits,
1430
1431
  refillToCredits,
@@ -1432,7 +1433,7 @@ async function handleAutoRechargeSet(options) {
1432
1433
  ...rollingLimitCredits !== void 0 ? { purchaseLimitCredits: rollingLimitCredits } : {},
1433
1434
  idempotencyKey
1434
1435
  });
1435
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
1436
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1436
1437
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1437
1438
  { json: options.json }
1438
1439
  );
@@ -1440,7 +1441,7 @@ async function handleAutoRechargeSet(options) {
1440
1441
  async function handleAutoRechargeOff(options) {
1441
1442
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1442
1443
  if (options.dryRun) {
1443
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
1444
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1444
1445
  {
1445
1446
  ok: true,
1446
1447
  dry_run: true,
@@ -1455,11 +1456,11 @@ async function handleAutoRechargeOff(options) {
1455
1456
  );
1456
1457
  return;
1457
1458
  }
1458
- const payload = await new (0, _chunkQM6Y6S4Ejs.DeeplineClient)().billing.autoRecharge.update({
1459
+ const payload = await new (0, _chunkSHLFOPD6js.DeeplineClient)().billing.autoRecharge.update({
1459
1460
  enabled: false,
1460
1461
  idempotencyKey
1461
1462
  });
1462
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
1463
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1463
1464
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1464
1465
  { json: options.json }
1465
1466
  );
@@ -1485,18 +1486,18 @@ function savedCardLines(cards, hasMore) {
1485
1486
  async function handleCardsList(options) {
1486
1487
  const limit = options.limit === void 0 ? void 0 : Number(options.limit);
1487
1488
  if (limit !== void 0 && (!Number.isInteger(limit) || limit < 1 || limit > 100)) {
1488
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
1489
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1489
1490
  { ok: false, error: "--limit must be a whole number from 1 to 100." },
1490
1491
  { json: options.json }
1491
1492
  );
1492
1493
  process.exitCode = 1;
1493
1494
  return;
1494
1495
  }
1495
- const payload = await new (0, _chunkQM6Y6S4Ejs.DeeplineClient)().billing.cards.list({
1496
+ const payload = await new (0, _chunkSHLFOPD6js.DeeplineClient)().billing.cards.list({
1496
1497
  ...limit !== void 0 ? { limit } : {},
1497
1498
  ...options.cursor ? { cursor: options.cursor } : {}
1498
1499
  });
1499
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
1500
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1500
1501
  {
1501
1502
  ok: true,
1502
1503
  ...payload,
@@ -1514,8 +1515,8 @@ async function handleCardsList(options) {
1514
1515
  }
1515
1516
  async function handleCardsAdd(options) {
1516
1517
  const makeDefault = options.makeDefault === true;
1517
- const payload = await new (0, _chunkQM6Y6S4Ejs.DeeplineClient)().billing.cards.add({ makeDefault });
1518
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
1518
+ const payload = await new (0, _chunkSHLFOPD6js.DeeplineClient)().billing.cards.add({ makeDefault });
1519
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1519
1520
  {
1520
1521
  ok: true,
1521
1522
  make_default: makeDefault,
@@ -1540,7 +1541,7 @@ async function handleCardChange(action, cardId, options) {
1540
1541
  const changeId = _nullishCoalesce(options.changeId, () => ( _crypto.randomUUID.call(void 0, )));
1541
1542
  const path = `/api/v2/billing/payment-methods/${action}`;
1542
1543
  if (options.dryRun) {
1543
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
1544
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1544
1545
  {
1545
1546
  ok: true,
1546
1547
  dry_run: true,
@@ -1555,9 +1556,9 @@ async function handleCardChange(action, cardId, options) {
1555
1556
  );
1556
1557
  return;
1557
1558
  }
1558
- const cards = new (0, _chunkQM6Y6S4Ejs.DeeplineClient)().billing.cards;
1559
+ const cards = new (0, _chunkSHLFOPD6js.DeeplineClient)().billing.cards;
1559
1560
  const payload = action === "default" ? await cards.setDefault({ cardId, changeId }) : await cards.remove({ cardId, changeId });
1560
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
1561
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1561
1562
  {
1562
1563
  ...payload,
1563
1564
  render: {
@@ -1591,11 +1592,11 @@ async function handleBuyCredits(creditsRaw, options) {
1591
1592
  return;
1592
1593
  }
1593
1594
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1594
- const payload = await new (0, _chunkQM6Y6S4Ejs.DeeplineClient)().billing.purchaseCredits({
1595
+ const payload = await new (0, _chunkSHLFOPD6js.DeeplineClient)().billing.purchaseCredits({
1595
1596
  credits,
1596
1597
  idempotencyKey
1597
1598
  });
1598
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
1599
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1599
1600
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1600
1601
  { json: options.json }
1601
1602
  );
@@ -1631,7 +1632,7 @@ async function handleTopUpRecover(creditsRaw, options) {
1631
1632
  return;
1632
1633
  }
1633
1634
  if (options.dryRun) {
1634
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
1635
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1635
1636
  {
1636
1637
  ok: true,
1637
1638
  dry_run: true,
@@ -1644,12 +1645,12 @@ async function handleTopUpRecover(creditsRaw, options) {
1644
1645
  );
1645
1646
  return;
1646
1647
  }
1647
- const payload = await new (0, _chunkQM6Y6S4Ejs.DeeplineClient)().billing.recoverCreditPurchase({
1648
+ const payload = await new (0, _chunkSHLFOPD6js.DeeplineClient)().billing.recoverCreditPurchase({
1648
1649
  credits,
1649
1650
  orgId: options.orgId,
1650
1651
  idempotencyKey: options.idempotencyKey
1651
1652
  });
1652
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
1653
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1653
1654
  { ok: true, idempotency_key: options.idempotencyKey, ...payload },
1654
1655
  { json: options.json }
1655
1656
  );
@@ -1669,38 +1670,39 @@ async function handleTargetPlan(planSku, options) {
1669
1670
  return;
1670
1671
  }
1671
1672
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1672
- const payload = await new (0, _chunkQM6Y6S4Ejs.DeeplineClient)().billing.transitionPlan({
1673
+ const payload = await new (0, _chunkSHLFOPD6js.DeeplineClient)().billing.transitionPlan({
1673
1674
  action: "start_or_change",
1674
1675
  targetPlanSku: planSku,
1675
1676
  ...options.billingEmail ? { billingEmail: options.billingEmail } : {},
1676
1677
  ...options.promoCode ? { promoCode: options.promoCode } : {},
1678
+ ...options.annual ? { billingInterval: "year" } : {},
1677
1679
  idempotencyKey
1678
1680
  });
1679
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
1681
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1680
1682
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1681
1683
  { json: options.json }
1682
1684
  );
1683
1685
  }
1684
1686
  async function handleTargetPlanCancellation(options) {
1685
1687
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1686
- const payload = await new (0, _chunkQM6Y6S4Ejs.DeeplineClient)().billing.transitionPlan({
1688
+ const payload = await new (0, _chunkSHLFOPD6js.DeeplineClient)().billing.transitionPlan({
1687
1689
  action: options.undo ? "undo_cancel" : "cancel",
1688
1690
  idempotencyKey
1689
1691
  });
1690
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
1692
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1691
1693
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1692
1694
  { json: options.json }
1693
1695
  );
1694
1696
  }
1695
1697
  async function handleTargetPortal(options) {
1696
- const payload = await new (0, _chunkQM6Y6S4Ejs.DeeplineClient)().billing.portalSession(
1698
+ const payload = await new (0, _chunkSHLFOPD6js.DeeplineClient)().billing.portalSession(
1697
1699
  options.billingAddress ? { flow: "customer_update" } : void 0
1698
1700
  );
1699
- if (!options.json && !options.noOpen) _chunkZDQFBJPOjs.openInBrowser.call(void 0, payload.url);
1700
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1701
+ if (!options.json && !options.noOpen) _chunkVQALXEXOjs.openInBrowser.call(void 0, payload.url);
1702
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1701
1703
  }
1702
1704
  async function handleRedeemCode(code, options) {
1703
- const { http } = _chunkZDQFBJPOjs.getAuthedHttpClient.call(void 0, );
1705
+ const { http } = _chunkVQALXEXOjs.getAuthedHttpClient.call(void 0, );
1704
1706
  const payload = await http.post(
1705
1707
  "/api/v2/billing/checkout",
1706
1708
  {
@@ -1708,8 +1710,8 @@ async function handleRedeemCode(code, options) {
1708
1710
  }
1709
1711
  );
1710
1712
  const url = String(payload.url || payload.checkout_url || "");
1711
- if (!options.json && !options.noOpen && url) _chunkZDQFBJPOjs.openInBrowser.call(void 0, url);
1712
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
1713
+ if (!options.json && !options.noOpen && url) _chunkVQALXEXOjs.openInBrowser.call(void 0, url);
1714
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1713
1715
  {
1714
1716
  ...payload,
1715
1717
  render: {
@@ -1770,14 +1772,14 @@ Examples:
1770
1772
  if (!Number.isSafeInteger(quantity) || quantity <= 0) {
1771
1773
  throw new Error("--quantity must be a positive safe integer.");
1772
1774
  }
1773
- const quote = await new (0, _chunkQM6Y6S4Ejs.DeeplineClient)().billing.quote({
1775
+ const quote = await new (0, _chunkSHLFOPD6js.DeeplineClient)().billing.quote({
1774
1776
  quantity,
1775
1777
  sandbox_runtime: {
1776
1778
  timeout: options.sandboxTimeout,
1777
1779
  size: options.sandboxSize
1778
1780
  }
1779
1781
  });
1780
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0, quote, {
1782
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0, quote, {
1781
1783
  json: options.json,
1782
1784
  text: `Sandbox session ceiling: ${quote.maximum_credits} Deepline credits (${quote.quantity} session${quote.quantity === 1 ? "" : "s"}).
1783
1785
  ${quote.explanation}
@@ -1806,9 +1808,9 @@ Examples:
1806
1808
  billing.command("reuse").description(
1807
1809
  "Show recorded reused tool results for this workspace; no credit estimate."
1808
1810
  ).option("--json", "Return the workspace reuse summary as JSON").action(async (options) => {
1809
- const { http } = _chunkZDQFBJPOjs.getAuthedHttpClient.call(void 0, );
1811
+ const { http } = _chunkVQALXEXOjs.getAuthedHttpClient.call(void 0, );
1810
1812
  const payload = await http.get("/api/v2/usage/reuse");
1811
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0,
1813
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
1812
1814
  {
1813
1815
  status: "ok",
1814
1816
  data: payload,
@@ -2049,8 +2051,8 @@ Examples:
2049
2051
  new (0, _commander.Command)("trigger").description(
2050
2052
  "Evaluate capped automatic recharge and resume any pending purchase."
2051
2053
  ).option("--json", "Emit JSON output").action(async (options) => {
2052
- const result = await new (0, _chunkQM6Y6S4Ejs.DeeplineClient)().billing.autoRecharge.trigger();
2053
- _chunkZDQFBJPOjs.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
2054
+ const result = await new (0, _chunkSHLFOPD6js.DeeplineClient)().billing.autoRecharge.trigger();
2055
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
2054
2056
  })
2055
2057
  );
2056
2058
  billing.command("cards").description("List, add, choose the default of, and remove saved cards.").addHelpText(
@@ -2091,6 +2093,9 @@ Examples:
2091
2093
  ).option(
2092
2094
  "--promo-code <code>",
2093
2095
  "Plan promo code; an unknown, expired, or used code refuses the change"
2096
+ ).option(
2097
+ "--annual",
2098
+ "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"
2094
2099
  ).option("--idempotency-key <key>", "Stable retry key").option("--json", "Emit JSON output").action(handleTargetPlan);
2095
2100
  billing.command("cancel-plan").description("Cancel a target subscription at period end, or undo it.").option("--undo", "Undo a pending period-end cancellation").option("--idempotency-key <key>", "Stable retry key").option("--json", "Emit JSON output").action(handleTargetPlanCancellation);
2096
2101
  billing.command("portal").description("Open the Stripe-hosted billing recovery portal.").option("--billing-address", "Open the billing address editor directly").option("--no-open", "Print the URL without opening a browser").option("--json", "Emit JSON output").action(handleTargetPortal);
@@ -2103,7 +2108,9 @@ Notes:
2103
2108
  and current acquisition availability. All amounts are Deepline credits and
2104
2109
  Deepline-facing USD, never raw provider spend. Change to an available plan
2105
2110
  with: deepline billing change-plan <plan_sku>. A first-month price or bonus
2106
- credits appear on a plan when the workspace is offered them. With
2111
+ credits appear on a plan when the workspace is offered them. An annual
2112
+ price appears when the workspace may pay for a year up front; buy it with
2113
+ change-plan <plan_sku> --annual. With
2107
2114
  --promo-code, prices are quoted with that code and its outcome is shown;
2108
2115
  pass the same code to change-plan.
2109
2116