deepline 0.3.504 → 0.3.506

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 (165) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +121 -5
  2. package/dist/bundling-sources/sdk/src/index.ts +3 -0
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/sdk/src/types.ts +5 -0
  5. package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +2 -0
  6. package/dist/bundling-sources/shared_libs/monitors/fleets/issues.ts +176 -0
  7. package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +17 -0
  8. package/dist/bundling-sources/shared_libs/monitors/fleets/overview.ts +118 -0
  9. package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +29 -1
  10. package/dist/bundling-sources/shared_libs/monitors/legacy-radar-retirement.ts +29 -10
  11. package/dist/bundling-sources/shared_libs/monitors/package.json +4 -0
  12. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +9 -9
  13. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +52 -5
  14. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +48 -5
  15. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +157 -47
  16. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +36 -3
  17. package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-egress.ts +55 -0
  18. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +66 -0
  19. package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +18 -0
  20. package/dist/bundling-sources/shared_libs/product-notifications/onboarding-unsubscribe.ts +23 -0
  21. package/dist/cli/auth-MMHG2OFE.js +43 -0
  22. package/dist/cli/{auth-3L5AA5AX.mjs → auth-ZHFONT2D.mjs} +5 -5
  23. package/dist/cli/{billing-HOGXVE2V.js → billing-3Z7N4WTL.js} +101 -91
  24. package/dist/cli/{billing-E7EASVPO.mjs → billing-B2YEMNHE.mjs} +27 -17
  25. package/dist/cli/{chunk-UXQQPMYO.js → chunk-26DJ4BDY.js} +2 -2
  26. package/dist/cli/{chunk-3MLFFWDM.mjs → chunk-2CFTDVEP.mjs} +2 -2
  27. package/dist/cli/{chunk-QOLX2O2S.mjs → chunk-2IXXB7OA.mjs} +93 -34
  28. package/dist/cli/{chunk-6JNBMTCZ.js → chunk-2OY5DXTC.js} +1 -1
  29. package/dist/cli/{chunk-SVFTZTCI.mjs → chunk-3BFZEHBH.mjs} +1 -1
  30. package/dist/cli/{chunk-67OI26OE.js → chunk-3F676QXJ.js} +96 -37
  31. package/dist/cli/{chunk-KCKAFTPY.js → chunk-5ARG7J7A.js} +6 -6
  32. package/dist/cli/{chunk-5CHBIJIM.mjs → chunk-6RYVIZRP.mjs} +2 -2
  33. package/dist/cli/{chunk-QKKU2FH4.js → chunk-75NAFY36.js} +7 -7
  34. package/dist/cli/{chunk-7P2QVMBP.js → chunk-AD2WJUZA.js} +91 -48
  35. package/dist/cli/{chunk-UFYJTRSF.mjs → chunk-AFSYNOG4.mjs} +42 -7
  36. package/dist/cli/{chunk-VJVJWZ6I.mjs → chunk-BJ5OX62J.mjs} +5 -5
  37. package/dist/cli/{chunk-HUX5DZO6.mjs → chunk-BQBPVUFJ.mjs} +3 -3
  38. package/dist/cli/{chunk-MLMWM5DV.mjs → chunk-CHGRURBN.mjs} +5 -5
  39. package/dist/cli/{chunk-22OCKCYS.mjs → chunk-D7OCORZ7.mjs} +1 -1
  40. package/dist/cli/{chunk-SMSQVRHE.js → chunk-DB54ROPH.js} +5 -5
  41. package/dist/cli/{chunk-KGUGNEKL.js → chunk-E554XCJI.js} +96 -96
  42. package/dist/cli/{chunk-GGBXNQCR.mjs → chunk-EN7GXLFX.mjs} +4 -4
  43. package/dist/cli/{chunk-2W77YCKH.js → chunk-F53SGS3C.js} +5 -5
  44. package/dist/cli/{chunk-6SMR7LU7.js → chunk-F7IQQYKV.js} +2 -2
  45. package/dist/cli/chunk-FFGQR5J3.mjs +405 -0
  46. package/dist/cli/{chunk-UJMBG5JU.js → chunk-FWSEGIT6.js} +4 -4
  47. package/dist/cli/{chunk-GJ2DA35C.js → chunk-GDHLL5EQ.js} +42 -7
  48. package/dist/cli/{chunk-XHZSPMNC.mjs → chunk-GJNIC2CO.mjs} +84 -441
  49. package/dist/cli/chunk-GRESJ3H3.js +405 -0
  50. package/dist/cli/{chunk-WZSFIJMG.js → chunk-HINTYT5H.js} +113 -470
  51. package/dist/cli/{chunk-A6LA42JY.js → chunk-LRSRJJPD.js} +16 -16
  52. package/dist/cli/{chunk-WBIDPDKJ.js → chunk-MHRR47VQ.js} +3 -3
  53. package/dist/cli/{chunk-FTRVCIGC.js → chunk-N7G36GXB.js} +26 -26
  54. package/dist/cli/{chunk-BTWUNKKX.mjs → chunk-ND4WPLTE.mjs} +2 -2
  55. package/dist/cli/{chunk-NZ7Z7WNM.mjs → chunk-O4DZG4VA.mjs} +2 -2
  56. package/dist/cli/{chunk-LHXYCZYO.js → chunk-OD6TASBP.js} +8 -8
  57. package/dist/cli/{chunk-GRAGUYIE.js → chunk-OHNMJ5XQ.js} +41 -41
  58. package/dist/cli/{chunk-OX2D6BG4.mjs → chunk-ONBXTEFQ.mjs} +46 -3
  59. package/dist/cli/{chunk-7F4OEHQK.mjs → chunk-OPBXKB57.mjs} +1 -1
  60. package/dist/cli/{chunk-Y7VEHKID.mjs → chunk-OUGJUM5X.mjs} +6 -6
  61. package/dist/cli/{chunk-USTJEEND.js → chunk-PRIHD5XS.js} +9 -9
  62. package/dist/cli/{chunk-IGNQKOWT.mjs → chunk-QAY5AS2H.mjs} +12 -12
  63. package/dist/cli/{chunk-5Z6EULD5.js → chunk-QP333GFE.js} +7 -7
  64. package/dist/cli/{chunk-JPR2546F.js → chunk-SUJIVF6L.js} +16 -16
  65. package/dist/cli/{chunk-DEAJVQEG.mjs → chunk-TEMORCEE.mjs} +1 -1
  66. package/dist/cli/{chunk-YOQ2NNDO.mjs → chunk-TS4KFQKS.mjs} +1 -1
  67. package/dist/cli/{chunk-4CC67XH5.mjs → chunk-XUY7WQ2R.mjs} +3 -3
  68. package/dist/cli/{chunk-Z6FXUDIL.mjs → chunk-YEX6RPUO.mjs} +1 -1
  69. package/dist/cli/{chunk-MJTK6Q3G.js → chunk-YJKKOSXS.js} +3 -3
  70. package/dist/cli/{chunk-Y6XKCEPK.mjs → chunk-YVOS5KSG.mjs} +1 -1
  71. package/dist/cli/{chunk-2ABRDH3B.mjs → chunk-YWZEBPXK.mjs} +2 -2
  72. package/dist/cli/{chunk-BX45XMXZ.mjs → chunk-Z7EHY2MF.mjs} +2 -2
  73. package/dist/cli/{chunk-FISP4LCK.js → chunk-ZM5BJ5MP.js} +53 -53
  74. package/dist/cli/{chunk-IPAMOMGP.js → chunk-ZZDTWVCQ.js} +21 -21
  75. package/dist/cli/command-docs.js +2 -2
  76. package/dist/cli/command-docs.mjs +1 -1
  77. package/dist/cli/{csv-2XWGPITO.js → csv-7K7LK63Y.js} +13 -13
  78. package/dist/cli/{csv-433JEHLQ.mjs → csv-ARHQ54HA.mjs} +4 -4
  79. package/dist/cli/{db-K747DH43.mjs → db-JBX24NJY.mjs} +6 -6
  80. package/dist/cli/{db-PJJMD4VH.js → db-V4Z2I6DY.js} +27 -27
  81. package/dist/cli/describe-AYXVS6DZ.js +50 -0
  82. package/dist/cli/{describe-VEDDYW4P.mjs → describe-RBDSGSZ7.mjs} +18 -17
  83. package/dist/cli/describe-core.d.mts +3 -3
  84. package/dist/cli/describe-core.d.ts +3 -3
  85. package/dist/cli/{executions-JWRX3XCT.mjs → executions-BAZEU63W.mjs} +6 -6
  86. package/dist/cli/{executions-HM5T72H6.js → executions-XEZKV5QU.js} +8 -8
  87. package/dist/cli/{feedback-34UG4BO3.js → feedback-LOERESRU.js} +8 -8
  88. package/dist/cli/{feedback-MNSIA63Y.mjs → feedback-YDSWBHCO.mjs} +4 -4
  89. package/dist/cli/{git-ZKEOXV3A.mjs → git-4Z3W2CQU.mjs} +5 -5
  90. package/dist/cli/git-T6WKO7EA.js +25 -0
  91. package/dist/cli/index.js +146 -148
  92. package/dist/cli/index.mjs +53 -55
  93. package/dist/cli/{legacy-noops-YXSI4FVU.js → legacy-noops-4QIQPVE5.js} +8 -8
  94. package/dist/cli/{legacy-noops-5M4T4ZVT.mjs → legacy-noops-E4HH7S5O.mjs} +5 -5
  95. package/dist/cli/{monitors-C65OC4AW.mjs → monitors-FPDW5DDM.mjs} +305 -8
  96. package/dist/cli/{monitors-O25GDOYE.js → monitors-QBHDSDA7.js} +423 -126
  97. package/dist/cli/{org-2GSPLY2A.js → org-JO4GGSAH.js} +72 -72
  98. package/dist/cli/{org-ZRMG5NS2.mjs → org-UCDHIHAD.mjs} +6 -6
  99. package/dist/cli/{pages-TZZUFBRO.mjs → pages-6V52IZXY.mjs} +6 -6
  100. package/dist/cli/{pages-45DPADK6.js → pages-FJAAXAWO.js} +18 -18
  101. package/dist/cli/{play-RCGMND6X.js → play-F3AENS6W.js} +317 -316
  102. package/dist/cli/{play-3D7HH273.mjs → play-MF4DWROJ.mjs} +18 -17
  103. package/dist/cli/{providers-PSAKV6CJ.mjs → providers-NJJLTECA.mjs} +6 -6
  104. package/dist/cli/{providers-3N3ECMTY.js → providers-XXOQLPX7.js} +9 -9
  105. package/dist/cli/{quickstart-6R6AIXM6.js → quickstart-JCE3XGQG.js} +6 -6
  106. package/dist/cli/{quickstart-2A35SMGC.mjs → quickstart-Z5MSMI7S.mjs} +4 -4
  107. package/dist/cli/{run-F3TLDGUO.mjs → run-56UGPIRL.mjs} +23 -22
  108. package/dist/cli/{run-F6ZXTASZ.js → run-X2DNIW3F.js} +41 -40
  109. package/dist/cli/search-B753RTKC.js +33 -0
  110. package/dist/cli/{search-CZLCY3D2.mjs → search-SZYI4NBB.mjs} +8 -7
  111. package/dist/cli/{search-output-R5XDNILW.js → search-output-7UNT6EMP.js} +6 -6
  112. package/dist/cli/{search-output-MQTSTLN5.mjs → search-output-T35QNZUF.mjs} +4 -4
  113. package/dist/cli/{secrets-DCJYHDSY.js → secrets-JMUAVIVC.js} +15 -15
  114. package/dist/cli/{secrets-D3GF4B2Z.mjs → secrets-Q36VC35L.mjs} +6 -6
  115. package/dist/cli/{sessions-QGEQ2UYZ.mjs → sessions-HG6I3HMY.mjs} +5 -5
  116. package/dist/cli/{sessions-Z4JYJSDP.js → sessions-SUXU7OM7.js} +6 -6
  117. package/dist/cli/{settings-UVXXAT4A.js → settings-UIELQ5CV.js} +106 -78
  118. package/dist/cli/{settings-G7QEXA4N.mjs → settings-Z76XW4KF.mjs} +39 -11
  119. package/dist/cli/{setup-5I42W7D4.js → setup-2L7H5P2O.js} +50 -49
  120. package/dist/cli/{setup-QHJU3DUI.mjs → setup-OXNYAOQ4.mjs} +10 -9
  121. package/dist/cli/skills-DEVXYGYH.js +37 -0
  122. package/dist/cli/{skills-5LRF4UKX.mjs → skills-XSNLXJGI.mjs} +8 -7
  123. package/dist/cli/tools-SCGHABDL.js +57 -0
  124. package/dist/cli/{tools-PUT6STVG.mjs → tools-SUSFAYFH.mjs} +17 -16
  125. package/dist/cli/update-BSIILGO3.js +35 -0
  126. package/dist/cli/{update-CJ2GA64X.mjs → update-ENSTG3QO.mjs} +10 -9
  127. package/dist/cli/{workflow-O67MEBCP.js → workflow-FMBZNY4F.js} +17 -17
  128. package/dist/cli/{workflow-HVEWRTXD.mjs → workflow-Z33QE6VT.mjs} +7 -7
  129. package/dist/{client-DYAfJpaN.d.mts → client-BDbouy3Y.d.mts} +1 -1
  130. package/dist/{client-CIwenMFS.d.ts → client-Cx0420fs.d.ts} +1 -1
  131. package/dist/{client-core-CRjtyMAI.d.ts → client-core-B4hq0-m2.d.ts} +56 -4
  132. package/dist/{client-core-DlzP8vEs.d.mts → client-core-CwiVaMZ5.d.mts} +56 -4
  133. package/dist/{compiler-manifest-DaJrA2KV.d.mts → compiler-manifest-BeURaD5Y.d.mts} +2 -0
  134. package/dist/{compiler-manifest-DaJrA2KV.d.ts → compiler-manifest-BeURaD5Y.d.ts} +2 -0
  135. package/dist/{errors-KLga4bLr.d.ts → errors-BoPXPrSy.d.ts} +1 -1
  136. package/dist/{errors-BKnSYueU.d.mts → errors-kBuT4kGK.d.mts} +1 -1
  137. package/dist/{index-C5nAZ-VS.d.ts → index-D0crdGM1.d.ts} +1 -1
  138. package/dist/{index-C-8AFpWy.d.mts → index-DC7oRAAC.d.mts} +1 -1
  139. package/dist/index.d.mts +7 -7
  140. package/dist/index.d.ts +7 -7
  141. package/dist/index.js +9 -9
  142. package/dist/index.mjs +6 -6
  143. package/dist/install-integrity.json +116 -110
  144. package/dist/plays/bundle-play-file.d.mts +3 -3
  145. package/dist/plays/bundle-play-file.d.ts +3 -3
  146. package/dist/plays/play-description.d.mts +2 -2
  147. package/dist/plays/play-description.d.ts +2 -2
  148. package/dist/plays/run-request.d.mts +2 -2
  149. package/dist/plays/run-request.d.ts +2 -2
  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 +4 -4
  155. package/dist/server.d.ts +4 -4
  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-UPK4IIIN.js +0 -43
  160. package/dist/cli/describe-OYS7LZJD.js +0 -49
  161. package/dist/cli/git-5YQJSJFR.js +0 -25
  162. package/dist/cli/search-R5VEWJO2.js +0 -32
  163. package/dist/cli/skills-FB6TV52O.js +0 -36
  164. package/dist/cli/tools-L2364RPA.js +0 -56
  165. package/dist/cli/update-ESYJGYVZ.js +0 -34
@@ -1,17 +1,17 @@
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 _chunkSMSQVRHEjs = require('./chunk-SMSQVRHE.js');
3
+ var _chunkDB54ROPHjs = require('./chunk-DB54ROPH.js');
4
4
 
5
5
 
6
6
 
7
- var _chunk7P2QVMBPjs = require('./chunk-7P2QVMBP.js');
7
+ var _chunkAD2WJUZAjs = require('./chunk-AD2WJUZA.js');
8
8
  require('./chunk-E4CABWXL.js');
9
9
  require('./chunk-RNSHCJME.js');
10
10
  require('./chunk-NMU3VR5U.js');
11
11
  require('./chunk-WSGXBROE.js');
12
12
 
13
13
 
14
- var _chunkGJ2DA35Cjs = require('./chunk-GJ2DA35C.js');
14
+ var _chunkGDHLL5EQjs = require('./chunk-GDHLL5EQ.js');
15
15
  require('./chunk-R7J7CJPZ.js');
16
16
 
17
17
 
@@ -22,9 +22,9 @@ var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkQKKU2FH4js = require('./chunk-QKKU2FH4.js');
26
- require('./chunk-WBIDPDKJ.js');
27
- require('./chunk-UJMBG5JU.js');
25
+ var _chunk75NAFY36js = require('./chunk-75NAFY36.js');
26
+ require('./chunk-MHRR47VQ.js');
27
+ require('./chunk-FWSEGIT6.js');
28
28
 
29
29
 
30
30
 
@@ -33,7 +33,7 @@ require('./chunk-XNYIZMNQ.js');
33
33
 
34
34
 
35
35
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
36
- require('./chunk-6JNBMTCZ.js');
36
+ require('./chunk-2OY5DXTC.js');
37
37
  require('./chunk-OG64RBAC.js');
38
38
  require('./chunk-COGTRVWW.js');
39
39
 
@@ -82,7 +82,7 @@ function reportBillingFailure(failure, options) {
82
82
  if (failure.next) {
83
83
  textLines.push(`Next: ${failure.next}`);
84
84
  }
85
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
85
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
86
86
  {
87
87
  ok: false,
88
88
  exitCode: failure.exitCode,
@@ -103,7 +103,7 @@ function parseTopUpCredits(raw) {
103
103
  return parsed;
104
104
  }
105
105
  function topUpIdempotencyKey(raw) {
106
- return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` : _chunk7P2QVMBPjs.requireBillingIdempotencyKey.call(void 0, raw);
106
+ return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` : _chunkAD2WJUZAjs.requireBillingIdempotencyKey.call(void 0, raw);
107
107
  }
108
108
  function targetBillingIdempotencyKey(raw) {
109
109
  return typeof raw === "string" ? raw : `cli_target_billing:${Date.now()}:${_crypto.randomUUID.call(void 0, )}`;
@@ -322,7 +322,7 @@ function defaultLedgerExportPath() {
322
322
  );
323
323
  }
324
324
  async function handleBalance(options) {
325
- const { http } = _chunkQKKU2FH4js.getAuthedHttpClient.call(void 0, );
325
+ const { http } = _chunk75NAFY36js.getAuthedHttpClient.call(void 0, );
326
326
  const payload = await http.get(
327
327
  "/api/v2/billing/balance"
328
328
  );
@@ -406,7 +406,7 @@ async function handleBalance(options) {
406
406
  ...options.verbose ? detail : [],
407
407
  ...lines.slice(1)
408
408
  ];
409
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
409
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
410
410
  {
411
411
  ...payload,
412
412
  ...recovery ? { recovery } : {},
@@ -442,7 +442,7 @@ async function handleUsageEvents(options) {
442
442
  );
443
443
  return;
444
444
  }
445
- const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
445
+ const client = new (0, _chunkDB54ROPHjs.DeeplineClient)();
446
446
  let payload;
447
447
  try {
448
448
  payload = await client.billing.usageEvents({
@@ -473,7 +473,7 @@ async function handleUsageEvents(options) {
473
473
  ),
474
474
  ...nextPage ? [`Next page: ${nextPage}`] : []
475
475
  ];
476
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
476
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
477
477
  {
478
478
  ...payload,
479
479
  next: { page: nextPage },
@@ -495,7 +495,7 @@ async function handleUsage(options) {
495
495
  return;
496
496
  }
497
497
  if (options.events) return handleUsageEvents(options);
498
- const { http } = _chunkQKKU2FH4js.getAuthedHttpClient.call(void 0, );
498
+ const { http } = _chunk75NAFY36js.getAuthedHttpClient.call(void 0, );
499
499
  const params = new URLSearchParams();
500
500
  if (options.requestId !== void 0) {
501
501
  const requestId = options.requestId.trim();
@@ -579,7 +579,7 @@ async function handleUsage(options) {
579
579
  "No continuation is available for this view. Use deepline billing ledger export all for the full ledger."
580
580
  ] : []
581
581
  ];
582
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
582
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
583
583
  {
584
584
  ...payload,
585
585
  recent: {
@@ -593,7 +593,7 @@ async function handleUsage(options) {
593
593
  );
594
594
  }
595
595
  async function handleLimit(options) {
596
- const { http } = _chunkQKKU2FH4js.getAuthedHttpClient.call(void 0, );
596
+ const { http } = _chunk75NAFY36js.getAuthedHttpClient.call(void 0, );
597
597
  const payload = await http.get(
598
598
  "/api/v2/billing/limit"
599
599
  );
@@ -601,7 +601,7 @@ async function handleLimit(options) {
601
601
  `Monthly usage cap: ${_nullishCoalesce(payload.monthly_credits_limit, () => ( "(unknown)"))}`,
602
602
  "Enforcement: checked before new calls; in-flight work can exceed the cap."
603
603
  ] : ["Monthly usage cap: off"];
604
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
604
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
605
605
  {
606
606
  ...payload,
607
607
  render: { sections: [{ title: "billing limit", lines }] }
@@ -610,12 +610,12 @@ async function handleLimit(options) {
610
610
  );
611
611
  }
612
612
  async function handleSetLimit(credits, options) {
613
- const { http } = _chunkQKKU2FH4js.getAuthedHttpClient.call(void 0, );
613
+ const { http } = _chunk75NAFY36js.getAuthedHttpClient.call(void 0, );
614
614
  const payload = await http.request("/api/v2/billing/limit", {
615
615
  method: "PUT",
616
616
  body: { monthly_credits_limit: Number.parseInt(credits, 10) }
617
617
  });
618
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
618
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
619
619
  {
620
620
  ...payload,
621
621
  render: {
@@ -631,11 +631,11 @@ async function handleSetLimit(credits, options) {
631
631
  );
632
632
  }
633
633
  async function handleLimitOff(options) {
634
- const { http } = _chunkQKKU2FH4js.getAuthedHttpClient.call(void 0, );
634
+ const { http } = _chunk75NAFY36js.getAuthedHttpClient.call(void 0, );
635
635
  const payload = await http.request("/api/v2/billing/limit", {
636
636
  method: "DELETE"
637
637
  });
638
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
638
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
639
639
  {
640
640
  ...payload,
641
641
  render: {
@@ -655,7 +655,7 @@ async function exportLedger(http, outputPath, options) {
655
655
  let initialized = false;
656
656
  let pageNumber = 0;
657
657
  console.error(`Exporting billing ledger to ${outputPath}`);
658
- for await (const entries of _chunk7P2QVMBPjs.iterateCursorPages.call(void 0, async (cursor) => {
658
+ for await (const entries of _chunkAD2WJUZAjs.iterateCursorPages.call(void 0, async (cursor) => {
659
659
  pageNumber += 1;
660
660
  console.error(
661
661
  `Fetching page ${pageNumber}; ${summary.row_count} rows written.`
@@ -694,7 +694,7 @@ async function exportLedger(http, outputPath, options) {
694
694
  return summary;
695
695
  }
696
696
  async function handleHistory(options) {
697
- const { http } = _chunkQKKU2FH4js.getAuthedHttpClient.call(void 0, );
697
+ const { http } = _chunk75NAFY36js.getAuthedHttpClient.call(void 0, );
698
698
  const windows = {
699
699
  "1d": 86400,
700
700
  "1w": 604800,
@@ -706,10 +706,10 @@ async function handleHistory(options) {
706
706
  process.cwd(),
707
707
  "deepline",
708
708
  "data",
709
- _chunkQKKU2FH4js.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
709
+ _chunk75NAFY36js.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
710
710
  );
711
711
  const summary = await exportLedger(http, outputPath, { sinceAt });
712
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
712
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
713
713
  {
714
714
  output_path: outputPath,
715
715
  row_count: summary.row_count,
@@ -746,14 +746,14 @@ async function handleLedgerExportAll(options) {
746
746
  );
747
747
  return;
748
748
  }
749
- const { http } = _chunkQKKU2FH4js.getAuthedHttpClient.call(void 0, );
749
+ const { http } = _chunk75NAFY36js.getAuthedHttpClient.call(void 0, );
750
750
  const outputPath = options.output ? _path.resolve.call(void 0, String(options.output)) : defaultLedgerExportPath();
751
751
  const summary = await exportLedger(http, outputPath, {
752
752
  sinceAt,
753
753
  runId: options.runId,
754
754
  operation: options.operation
755
755
  });
756
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
756
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
757
757
  {
758
758
  output_path: outputPath,
759
759
  row_count: summary.row_count,
@@ -793,7 +793,7 @@ function targetPlanLine(plan) {
793
793
  return `${plan.name} (${plan.sku}) | ${planPriceText(plan.recurring_price_usd, plan.interval)}${firstMonth} | ${plan.included_credits} included credits/month | $${plan.purchased_credit_price_usd}/purchased credit | ${plan.acquisition_enabled ? "available" : "unavailable"}`;
794
794
  }
795
795
  async function handlePlans(options) {
796
- const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
796
+ const client = new (0, _chunkDB54ROPHjs.DeeplineClient)();
797
797
  const payload = await client.billing.targetPlans();
798
798
  const listedCurrentPlan = payload.plans.find(
799
799
  (plan) => plan.sku === payload.current_plan_sku
@@ -806,8 +806,8 @@ async function handlePlans(options) {
806
806
  ...payload.plans.length === 0 ? ["Plans: none available"] : ["Plans:", ...payload.plans.map(targetPlanLine)],
807
807
  "Change plan: deepline billing change-plan <plan_sku>"
808
808
  ];
809
- const legacyPayload = _chunkQKKU2FH4js.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
810
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
809
+ const legacyPayload = _chunk75NAFY36js.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
810
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
811
811
  {
812
812
  ..._nullishCoalesce(legacyPayload, () => ( payload)),
813
813
  ...legacyPayload ? { target_billing: payload } : {},
@@ -817,7 +817,7 @@ async function handlePlans(options) {
817
817
  );
818
818
  }
819
819
  async function handleSubscribe(planVersionId, options) {
820
- const { http } = _chunkQKKU2FH4js.getAuthedHttpClient.call(void 0, );
820
+ const { http } = _chunk75NAFY36js.getAuthedHttpClient.call(void 0, );
821
821
  const payload = await http.request(
822
822
  "/api/v2/billing/subscription/checkout",
823
823
  {
@@ -826,8 +826,8 @@ async function handleSubscribe(planVersionId, options) {
826
826
  }
827
827
  );
828
828
  const url = String(payload.checkout_url || "");
829
- if (!options.json && options.open !== false && url) _chunkQKKU2FH4js.openInBrowser.call(void 0, url);
830
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
829
+ if (!options.json && options.open !== false && url) _chunk75NAFY36js.openInBrowser.call(void 0, url);
830
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
831
831
  {
832
832
  ...payload,
833
833
  render: {
@@ -843,7 +843,7 @@ async function handleSubscribe(planVersionId, options) {
843
843
  );
844
844
  }
845
845
  async function handleSubscriptionStatus(options) {
846
- const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
846
+ const client = new (0, _chunkDB54ROPHjs.DeeplineClient)();
847
847
  const payload = await client.billing.subscription.status();
848
848
  const pools = _nullishCoalesce(payload.credit_pools, () => ( []));
849
849
  const lines = [
@@ -863,7 +863,7 @@ async function handleSubscriptionStatus(options) {
863
863
  ],
864
864
  `Assigned by: ${_nullishCoalesce(payload.assigned_by, () => ( "default"))}`
865
865
  ];
866
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
866
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
867
867
  {
868
868
  ...payload,
869
869
  render: { sections: [{ title: "billing subscription", lines }] }
@@ -872,7 +872,7 @@ async function handleSubscriptionStatus(options) {
872
872
  );
873
873
  }
874
874
  async function handleSubscriptionCancel(options) {
875
- const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
875
+ const client = new (0, _chunkDB54ROPHjs.DeeplineClient)();
876
876
  const action = options.undo ? "undo_cancel" : "cancel";
877
877
  if (options.dryRun) {
878
878
  const status = await client.billing.subscription.status();
@@ -889,7 +889,7 @@ async function handleSubscriptionCancel(options) {
889
889
  return;
890
890
  }
891
891
  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.";
892
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
892
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
893
893
  {
894
894
  ok: true,
895
895
  dry_run: true,
@@ -944,7 +944,7 @@ async function handleSubscriptionCancel(options) {
944
944
  "Remaining credits are yours to keep \u2014 cancellation never removes credits.",
945
945
  "Undo with: deepline billing subscription cancel --undo"
946
946
  ];
947
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
947
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
948
948
  {
949
949
  ok: true,
950
950
  ...result,
@@ -998,7 +998,7 @@ async function handleInvoices(options) {
998
998
  return;
999
999
  }
1000
1000
  }
1001
- const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
1001
+ const client = new (0, _chunkDB54ROPHjs.DeeplineClient)();
1002
1002
  let payload;
1003
1003
  try {
1004
1004
  payload = await client.billing.invoices.list(
@@ -1027,7 +1027,7 @@ async function handleInvoices(options) {
1027
1027
  url: entry.url
1028
1028
  }))
1029
1029
  } : { ...payload, count: entries.length };
1030
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1030
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
1031
1031
  {
1032
1032
  ...envelope,
1033
1033
  render: { sections: [{ title: "billing invoices", lines }] }
@@ -1036,7 +1036,7 @@ async function handleInvoices(options) {
1036
1036
  );
1037
1037
  }
1038
1038
  async function handleCheckout(options) {
1039
- const { http } = _chunkQKKU2FH4js.getAuthedHttpClient.call(void 0, );
1039
+ const { http } = _chunk75NAFY36js.getAuthedHttpClient.call(void 0, );
1040
1040
  const payload = await http.post(
1041
1041
  "/api/v2/billing/checkout",
1042
1042
  {
@@ -1046,8 +1046,8 @@ async function handleCheckout(options) {
1046
1046
  }
1047
1047
  );
1048
1048
  const url = String(payload.url || payload.checkout_url || "");
1049
- if (!options.json && !options.noOpen && url) _chunkQKKU2FH4js.openInBrowser.call(void 0, url);
1050
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1049
+ if (!options.json && !options.noOpen && url) _chunk75NAFY36js.openInBrowser.call(void 0, url);
1050
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
1051
1051
  {
1052
1052
  ...payload,
1053
1053
  render: {
@@ -1092,7 +1092,7 @@ async function handleTopUp(creditsRaw, options) {
1092
1092
  return;
1093
1093
  }
1094
1094
  if (options.dryRun) {
1095
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1095
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
1096
1096
  {
1097
1097
  ok: true,
1098
1098
  dry_run: true,
@@ -1122,7 +1122,7 @@ async function handleTopUp(creditsRaw, options) {
1122
1122
  );
1123
1123
  return;
1124
1124
  }
1125
- const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
1125
+ const client = new (0, _chunkDB54ROPHjs.DeeplineClient)();
1126
1126
  let payload;
1127
1127
  try {
1128
1128
  payload = await client.billing.topUpWithReceipt({
@@ -1139,7 +1139,7 @@ async function handleTopUp(creditsRaw, options) {
1139
1139
  return;
1140
1140
  }
1141
1141
  if (payload.status === "pending") {
1142
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1142
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
1143
1143
  {
1144
1144
  ok: true,
1145
1145
  ...payload,
@@ -1203,17 +1203,17 @@ async function handleTopUp(creditsRaw, options) {
1203
1203
  ]
1204
1204
  }
1205
1205
  };
1206
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, options.compact ? compactEnvelope : fullEnvelope, {
1206
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0, options.compact ? compactEnvelope : fullEnvelope, {
1207
1207
  json: options.json
1208
1208
  });
1209
1209
  }
1210
1210
  async function handleTargetStatus(options) {
1211
- const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
1211
+ const client = new (0, _chunkDB54ROPHjs.DeeplineClient)();
1212
1212
  const payload = await client.billing.targetStatus();
1213
1213
  const balanceCommand = "deepline billing balance";
1214
1214
  const recentChargesCommand = "deepline billing usage --limit 5";
1215
1215
  const exactChargeCommand = "deepline billing usage --request-id <job_id>";
1216
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1216
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
1217
1217
  {
1218
1218
  ok: true,
1219
1219
  ...payload,
@@ -1245,30 +1245,40 @@ async function handleTargetStatus(options) {
1245
1245
  function formatAllowanceAmount(value) {
1246
1246
  return Number(value.toFixed(2)).toLocaleString("en-US");
1247
1247
  }
1248
- function formatComputeMinutes(minutes) {
1249
- return minutes < 120 ? `${Number(minutes.toFixed(1)).toLocaleString("en-US")} minutes` : `${Number((minutes / 60).toFixed(1)).toLocaleString("en-US")} hours`;
1248
+ function formatComputeAmount(minutes, credits) {
1249
+ const time = minutes.toLocaleString("en-US", { maximumFractionDigits: 5 });
1250
+ const cost = credits.toLocaleString("en-US", { maximumFractionDigits: 5 });
1251
+ return `${time} ${minutes === 1 ? "minute" : "minutes"} (${cost} ${credits === 1 ? "credit" : "credits"})`;
1250
1252
  }
1251
1253
  async function handleIncludedCompute(options) {
1252
- const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
1253
- const payload = options.enable ? await client.billing.enableIncludedCompute() : await client.billing.includedCompute();
1254
- const plan = `${formatComputeMinutes(payload.plan.included_minutes)} standard-equivalent compute included per month, then ${Math.round(payload.plan.credits_per_minute * 60)} credits/standard hour`;
1255
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1254
+ const client = new (0, _chunkDB54ROPHjs.DeeplineClient)();
1255
+ const payload = options.enable ? await client.billing.enableIncludedCompute({ includeOverage: true }) : await client.billing.includedCompute({ includeOverage: true });
1256
+ const rate = _nullishCoalesce(payload.credits_per_minute, () => ( 0));
1257
+ const includedCredits = _nullishCoalesce(payload.included_credits_used, () => ( payload.included_minutes_used * rate));
1258
+ const includedMinutes = payload.included_credits_used !== void 0 && rate > 0 ? includedCredits / rate : payload.included_minutes_used;
1259
+ const overage = payload.overage_credits;
1260
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
1256
1261
  {
1257
1262
  ok: true,
1258
1263
  ...payload,
1259
1264
  render: {
1260
1265
  sections: [
1261
1266
  {
1262
- title: "billing compute",
1267
+ title: payload.status === "unavailable" ? "billing compute" : "billing compute (standard-equivalent minutes)",
1263
1268
  lines: payload.status === "on" ? [
1264
- `Included compute: on, ${formatComputeMinutes(payload.included_minutes)} standard-equivalent per month, then ${Math.round((_nullishCoalesce(payload.credits_per_minute, () => ( 0))) * 60)} credits/standard hour`,
1265
- `Used: ${formatComputeMinutes(payload.included_minutes_used)} standard-equivalent included, ${formatComputeMinutes(payload.minutes_used)} elapsed since ${payload.period_start_at.slice(0, 10)}`,
1266
- _chunkGJ2DA35Cjs.PLAY_RUNTIME_PRICING_NOTE
1269
+ `Allowance used: ${formatComputeAmount(includedMinutes, includedCredits)} of ${formatComputeAmount(payload.included_minutes, payload.included_minutes * rate)}`,
1270
+ ...overage === void 0 || rate <= 0 ? ["Overage: unavailable"] : overage > 0 ? [
1271
+ `Overage: ${formatComputeAmount(overage / rate, overage)} charged`
1272
+ ] : [],
1273
+ `Standard sandbox price: ${formatComputeAmount(60, Math.round(rate * 60))}`,
1274
+ `Allowance resets: ${payload.period_end_at.slice(0, 10)} (UTC)`,
1275
+ _chunkGDHLL5EQjs.PLAY_RUNTIME_PRICING_NOTE
1267
1276
  ] : payload.status === "off" ? [
1268
1277
  "Included compute: off; Play compute is billed at provider cost.",
1269
- `Used: ${formatComputeMinutes(payload.minutes_used)} since ${payload.period_start_at.slice(0, 10)}`,
1270
- `Turning it on gives ${plan}. Run deepline billing compute --enable; it cannot be turned off again.`,
1271
- _chunkGJ2DA35Cjs.PLAY_RUNTIME_PRICING_NOTE
1278
+ `Allowance if enabled: ${formatComputeAmount(payload.plan.included_minutes, payload.plan.included_minutes * payload.plan.credits_per_minute)} per month`,
1279
+ `Standard sandbox price if enabled: ${formatComputeAmount(60, Math.round(payload.plan.credits_per_minute * 60))}`,
1280
+ _chunkGDHLL5EQjs.PLAY_RUNTIME_PRICING_NOTE,
1281
+ "Run deepline billing compute --enable to turn on included compute. It cannot be turned off again."
1272
1282
  ] : [
1273
1283
  "Included compute is not available for this workspace yet."
1274
1284
  ]
@@ -1280,8 +1290,8 @@ async function handleIncludedCompute(options) {
1280
1290
  );
1281
1291
  }
1282
1292
  async function handleEntitlements(options) {
1283
- const payload = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().billing.entitlements();
1284
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1293
+ const payload = await new (0, _chunkDB54ROPHjs.DeeplineClient)().billing.entitlements();
1294
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
1285
1295
  {
1286
1296
  ok: true,
1287
1297
  ...payload,
@@ -1314,7 +1324,7 @@ async function handleEntitlements(options) {
1314
1324
  );
1315
1325
  }
1316
1326
  async function handleAutoRechargeStatus(options) {
1317
- const payload = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().billing.autoRecharge.get();
1327
+ const payload = await new (0, _chunkDB54ROPHjs.DeeplineClient)().billing.autoRecharge.get();
1318
1328
  const state = payload.available ? payload.enabled ? "on" : "off" : "unavailable";
1319
1329
  const lines = [
1320
1330
  `State: ${state}`,
@@ -1324,7 +1334,7 @@ async function handleAutoRechargeStatus(options) {
1324
1334
  `Automatic credit purchase cap: ${payload.purchase_limit_credits} credits per rolling 30 days`
1325
1335
  ] : []
1326
1336
  ];
1327
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1337
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
1328
1338
  {
1329
1339
  ok: true,
1330
1340
  ...payload,
@@ -1373,7 +1383,7 @@ async function handleAutoRechargeSet(options) {
1373
1383
  }
1374
1384
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1375
1385
  if (options.dryRun) {
1376
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1386
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
1377
1387
  {
1378
1388
  ok: true,
1379
1389
  dry_run: true,
@@ -1394,7 +1404,7 @@ async function handleAutoRechargeSet(options) {
1394
1404
  );
1395
1405
  return;
1396
1406
  }
1397
- const payload = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().billing.autoRecharge.update({
1407
+ const payload = await new (0, _chunkDB54ROPHjs.DeeplineClient)().billing.autoRecharge.update({
1398
1408
  enabled: true,
1399
1409
  thresholdCredits,
1400
1410
  refillToCredits,
@@ -1402,7 +1412,7 @@ async function handleAutoRechargeSet(options) {
1402
1412
  ...rollingLimitCredits !== void 0 ? { purchaseLimitCredits: rollingLimitCredits } : {},
1403
1413
  idempotencyKey
1404
1414
  });
1405
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1415
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
1406
1416
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1407
1417
  { json: options.json }
1408
1418
  );
@@ -1410,7 +1420,7 @@ async function handleAutoRechargeSet(options) {
1410
1420
  async function handleAutoRechargeOff(options) {
1411
1421
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1412
1422
  if (options.dryRun) {
1413
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1423
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
1414
1424
  {
1415
1425
  ok: true,
1416
1426
  dry_run: true,
@@ -1425,11 +1435,11 @@ async function handleAutoRechargeOff(options) {
1425
1435
  );
1426
1436
  return;
1427
1437
  }
1428
- const payload = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().billing.autoRecharge.update({
1438
+ const payload = await new (0, _chunkDB54ROPHjs.DeeplineClient)().billing.autoRecharge.update({
1429
1439
  enabled: false,
1430
1440
  idempotencyKey
1431
1441
  });
1432
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1442
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
1433
1443
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1434
1444
  { json: options.json }
1435
1445
  );
@@ -1448,11 +1458,11 @@ async function handleBuyCredits(creditsRaw, options) {
1448
1458
  return;
1449
1459
  }
1450
1460
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1451
- const payload = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().billing.purchaseCredits({
1461
+ const payload = await new (0, _chunkDB54ROPHjs.DeeplineClient)().billing.purchaseCredits({
1452
1462
  credits,
1453
1463
  idempotencyKey
1454
1464
  });
1455
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1465
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
1456
1466
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1457
1467
  { json: options.json }
1458
1468
  );
@@ -1488,7 +1498,7 @@ async function handleTopUpRecover(creditsRaw, options) {
1488
1498
  return;
1489
1499
  }
1490
1500
  if (options.dryRun) {
1491
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1501
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
1492
1502
  {
1493
1503
  ok: true,
1494
1504
  dry_run: true,
@@ -1501,12 +1511,12 @@ async function handleTopUpRecover(creditsRaw, options) {
1501
1511
  );
1502
1512
  return;
1503
1513
  }
1504
- const payload = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().billing.recoverCreditPurchase({
1514
+ const payload = await new (0, _chunkDB54ROPHjs.DeeplineClient)().billing.recoverCreditPurchase({
1505
1515
  credits,
1506
1516
  orgId: options.orgId,
1507
1517
  idempotencyKey: options.idempotencyKey
1508
1518
  });
1509
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1519
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
1510
1520
  { ok: true, idempotency_key: options.idempotencyKey, ...payload },
1511
1521
  { json: options.json }
1512
1522
  );
@@ -1526,37 +1536,37 @@ async function handleTargetPlan(planSku, options) {
1526
1536
  return;
1527
1537
  }
1528
1538
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1529
- const payload = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().billing.transitionPlan({
1539
+ const payload = await new (0, _chunkDB54ROPHjs.DeeplineClient)().billing.transitionPlan({
1530
1540
  action: "start_or_change",
1531
1541
  targetPlanSku: planSku,
1532
1542
  ...options.billingEmail ? { billingEmail: options.billingEmail } : {},
1533
1543
  idempotencyKey
1534
1544
  });
1535
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1545
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
1536
1546
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1537
1547
  { json: options.json }
1538
1548
  );
1539
1549
  }
1540
1550
  async function handleTargetPlanCancellation(options) {
1541
1551
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1542
- const payload = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().billing.transitionPlan({
1552
+ const payload = await new (0, _chunkDB54ROPHjs.DeeplineClient)().billing.transitionPlan({
1543
1553
  action: options.undo ? "undo_cancel" : "cancel",
1544
1554
  idempotencyKey
1545
1555
  });
1546
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1556
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
1547
1557
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1548
1558
  { json: options.json }
1549
1559
  );
1550
1560
  }
1551
1561
  async function handleTargetPortal(options) {
1552
- const payload = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().billing.portalSession(
1562
+ const payload = await new (0, _chunkDB54ROPHjs.DeeplineClient)().billing.portalSession(
1553
1563
  options.billingAddress ? { flow: "customer_update" } : void 0
1554
1564
  );
1555
- if (!options.json && !options.noOpen) _chunkQKKU2FH4js.openInBrowser.call(void 0, payload.url);
1556
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1565
+ if (!options.json && !options.noOpen) _chunk75NAFY36js.openInBrowser.call(void 0, payload.url);
1566
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1557
1567
  }
1558
1568
  async function handleRedeemCode(code, options) {
1559
- const { http } = _chunkQKKU2FH4js.getAuthedHttpClient.call(void 0, );
1569
+ const { http } = _chunk75NAFY36js.getAuthedHttpClient.call(void 0, );
1560
1570
  const payload = await http.post(
1561
1571
  "/api/v2/billing/checkout",
1562
1572
  {
@@ -1564,8 +1574,8 @@ async function handleRedeemCode(code, options) {
1564
1574
  }
1565
1575
  );
1566
1576
  const url = String(payload.url || payload.checkout_url || "");
1567
- if (!options.json && !options.noOpen && url) _chunkQKKU2FH4js.openInBrowser.call(void 0, url);
1568
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1577
+ if (!options.json && !options.noOpen && url) _chunk75NAFY36js.openInBrowser.call(void 0, url);
1578
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0,
1569
1579
  {
1570
1580
  ...payload,
1571
1581
  render: {
@@ -1626,14 +1636,14 @@ Examples:
1626
1636
  if (!Number.isSafeInteger(quantity) || quantity <= 0) {
1627
1637
  throw new Error("--quantity must be a positive safe integer.");
1628
1638
  }
1629
- const quote = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().billing.quote({
1639
+ const quote = await new (0, _chunkDB54ROPHjs.DeeplineClient)().billing.quote({
1630
1640
  quantity,
1631
1641
  sandbox_runtime: {
1632
1642
  timeout: options.sandboxTimeout,
1633
1643
  size: options.sandboxSize
1634
1644
  }
1635
1645
  });
1636
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, quote, {
1646
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0, quote, {
1637
1647
  json: options.json,
1638
1648
  text: `Sandbox session ceiling: ${quote.maximum_credits} Deepline credits (${quote.quantity} session${quote.quantity === 1 ? "" : "s"}).
1639
1649
  ${quote.explanation}
@@ -1881,8 +1891,8 @@ Examples:
1881
1891
  new (0, _commander.Command)("trigger").description(
1882
1892
  "Evaluate capped automatic recharge and resume any pending purchase."
1883
1893
  ).option("--json", "Emit JSON output").action(async (options) => {
1884
- const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().billing.autoRecharge.trigger();
1885
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
1894
+ const result = await new (0, _chunkDB54ROPHjs.DeeplineClient)().billing.autoRecharge.trigger();
1895
+ _chunk75NAFY36js.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
1886
1896
  })
1887
1897
  );
1888
1898
  billing.command("change-plan").description("Start or change the target billing plan.").argument("<plan_sku>", "payg-v1, builder-v1, growth-v1, or team-v1").option(