deepline 0.3.504 → 0.3.505

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 (143) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/sdk/src/types.ts +5 -0
  3. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
  4. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +144 -7
  5. package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +18 -0
  6. package/dist/bundling-sources/shared_libs/product-notifications/onboarding-unsubscribe.ts +23 -0
  7. package/dist/cli/{auth-3L5AA5AX.mjs → auth-AHE2EDQA.mjs} +5 -5
  8. package/dist/cli/auth-SEPKNRHV.js +43 -0
  9. package/dist/cli/{billing-E7EASVPO.mjs → billing-7CPWTGGI.mjs} +7 -7
  10. package/dist/cli/{billing-HOGXVE2V.js → billing-JOIZPHON.js} +82 -82
  11. package/dist/cli/{chunk-67OI26OE.js → chunk-3YEOOXD4.js} +96 -37
  12. package/dist/cli/{chunk-IPAMOMGP.js → chunk-45XYW477.js} +21 -21
  13. package/dist/cli/{chunk-OX2D6BG4.mjs → chunk-4OFSAZN6.mjs} +1 -1
  14. package/dist/cli/{chunk-2ABRDH3B.mjs → chunk-52FPW2RD.mjs} +2 -2
  15. package/dist/cli/{chunk-NZ7Z7WNM.mjs → chunk-5XT4DZQL.mjs} +2 -2
  16. package/dist/cli/{chunk-FTRVCIGC.js → chunk-6FEN6VWZ.js} +26 -26
  17. package/dist/cli/{chunk-7F4OEHQK.mjs → chunk-6U3AGJWI.mjs} +1 -1
  18. package/dist/cli/{chunk-YOQ2NNDO.mjs → chunk-7AD565DO.mjs} +1 -1
  19. package/dist/cli/{chunk-JPR2546F.js → chunk-7DDACLMX.js} +16 -16
  20. package/dist/cli/{chunk-HUX5DZO6.mjs → chunk-7DDKLFOY.mjs} +3 -3
  21. package/dist/cli/{chunk-2W77YCKH.js → chunk-7QLK2GHL.js} +5 -5
  22. package/dist/cli/{chunk-XHZSPMNC.mjs → chunk-ACI6CUDX.mjs} +11 -401
  23. package/dist/cli/{chunk-7P2QVMBP.js → chunk-BWAYMJ23.js} +7 -7
  24. package/dist/cli/{chunk-UXQQPMYO.js → chunk-CA3SYXCS.js} +2 -2
  25. package/dist/cli/{chunk-SVFTZTCI.mjs → chunk-CSLLQWAB.mjs} +1 -1
  26. package/dist/cli/{chunk-QKKU2FH4.js → chunk-EMUFF6EU.js} +7 -7
  27. package/dist/cli/chunk-FIQ5UEIF.mjs +405 -0
  28. package/dist/cli/{chunk-KGUGNEKL.js → chunk-GAUNJCXQ.js} +96 -96
  29. package/dist/cli/{chunk-5Z6EULD5.js → chunk-GXMNOUHP.js} +6 -6
  30. package/dist/cli/{chunk-A6LA42JY.js → chunk-HASFFOSU.js} +16 -16
  31. package/dist/cli/{chunk-SMSQVRHE.js → chunk-IDAE5VDH.js} +5 -5
  32. package/dist/cli/{chunk-GGBXNQCR.mjs → chunk-IZYOYXG7.mjs} +4 -4
  33. package/dist/cli/{chunk-22OCKCYS.mjs → chunk-JA7YBRP4.mjs} +1 -1
  34. package/dist/cli/{chunk-6SMR7LU7.js → chunk-JSTKLYYD.js} +2 -2
  35. package/dist/cli/{chunk-UFYJTRSF.mjs → chunk-JVKEZT7L.mjs} +20 -6
  36. package/dist/cli/{chunk-GJ2DA35C.js → chunk-K26YOPDO.js} +20 -6
  37. package/dist/cli/{chunk-FISP4LCK.js → chunk-LC4FG34E.js} +53 -53
  38. package/dist/cli/{chunk-BTWUNKKX.mjs → chunk-MAFZ64RN.mjs} +2 -2
  39. package/dist/cli/{chunk-WZSFIJMG.js → chunk-MHZAG2ZQ.js} +80 -470
  40. package/dist/cli/{chunk-5CHBIJIM.mjs → chunk-NARJWXBR.mjs} +2 -2
  41. package/dist/cli/{chunk-VJVJWZ6I.mjs → chunk-OA6U5NVB.mjs} +5 -5
  42. package/dist/cli/{chunk-QOLX2O2S.mjs → chunk-OMEDQ77C.mjs} +93 -34
  43. package/dist/cli/{chunk-LHXYCZYO.js → chunk-OORPAQVC.js} +8 -8
  44. package/dist/cli/{chunk-Z6FXUDIL.mjs → chunk-PDLOPF5L.mjs} +1 -1
  45. package/dist/cli/{chunk-3MLFFWDM.mjs → chunk-PZN24YQQ.mjs} +2 -2
  46. package/dist/cli/{chunk-DEAJVQEG.mjs → chunk-QGNNAZ5M.mjs} +1 -1
  47. package/dist/cli/chunk-QYGYVCRI.js +405 -0
  48. package/dist/cli/{chunk-IGNQKOWT.mjs → chunk-RT3HJBIH.mjs} +12 -12
  49. package/dist/cli/{chunk-Y6XKCEPK.mjs → chunk-SHKRL7CW.mjs} +1 -1
  50. package/dist/cli/{chunk-UJMBG5JU.js → chunk-SPN7U3MV.js} +4 -4
  51. package/dist/cli/{chunk-MLMWM5DV.mjs → chunk-UZ24SF7N.mjs} +5 -5
  52. package/dist/cli/{chunk-USTJEEND.js → chunk-VXKWF3AD.js} +9 -9
  53. package/dist/cli/{chunk-Y7VEHKID.mjs → chunk-W6I4N4JN.mjs} +6 -6
  54. package/dist/cli/{chunk-MJTK6Q3G.js → chunk-WPCF7C6B.js} +3 -3
  55. package/dist/cli/{chunk-KCKAFTPY.js → chunk-WTQLUULB.js} +6 -6
  56. package/dist/cli/{chunk-BX45XMXZ.mjs → chunk-WTUC5VKB.mjs} +2 -2
  57. package/dist/cli/{chunk-6JNBMTCZ.js → chunk-XHPB6RGY.js} +1 -1
  58. package/dist/cli/{chunk-GRAGUYIE.js → chunk-Y52XY56V.js} +41 -41
  59. package/dist/cli/{chunk-4CC67XH5.mjs → chunk-YBIVVAL7.mjs} +2 -2
  60. package/dist/cli/{chunk-WBIDPDKJ.js → chunk-ZLN2B5YA.js} +3 -3
  61. package/dist/cli/command-docs.js +2 -2
  62. package/dist/cli/command-docs.mjs +1 -1
  63. package/dist/cli/{csv-2XWGPITO.js → csv-DZHVIW3G.js} +13 -13
  64. package/dist/cli/{csv-433JEHLQ.mjs → csv-WTPI6ZON.mjs} +4 -4
  65. package/dist/cli/{db-PJJMD4VH.js → db-D7LPPNCC.js} +27 -27
  66. package/dist/cli/{db-K747DH43.mjs → db-NR4PJ6AF.mjs} +6 -6
  67. package/dist/cli/describe-HVQBTKFM.js +50 -0
  68. package/dist/cli/{describe-VEDDYW4P.mjs → describe-NCKAJPUG.mjs} +18 -17
  69. package/dist/cli/describe-core.d.mts +2 -2
  70. package/dist/cli/describe-core.d.ts +2 -2
  71. package/dist/cli/{executions-JWRX3XCT.mjs → executions-RQVJ4LAB.mjs} +6 -6
  72. package/dist/cli/{executions-HM5T72H6.js → executions-UQG6LWEN.js} +8 -8
  73. package/dist/cli/{feedback-MNSIA63Y.mjs → feedback-RD4Y3YQR.mjs} +4 -4
  74. package/dist/cli/{feedback-34UG4BO3.js → feedback-TCHA67IA.js} +8 -8
  75. package/dist/cli/git-TUB2ZUEH.js +25 -0
  76. package/dist/cli/{git-ZKEOXV3A.mjs → git-Z7434B7Y.mjs} +5 -5
  77. package/dist/cli/index.js +143 -141
  78. package/dist/cli/index.mjs +49 -47
  79. package/dist/cli/{legacy-noops-YXSI4FVU.js → legacy-noops-23WRA7DH.js} +8 -8
  80. package/dist/cli/{legacy-noops-5M4T4ZVT.mjs → legacy-noops-LQJU4UIV.mjs} +5 -5
  81. package/dist/cli/{monitors-O25GDOYE.js → monitors-KOWN7M3V.js} +95 -95
  82. package/dist/cli/{monitors-C65OC4AW.mjs → monitors-Z6VYUZ2W.mjs} +7 -7
  83. package/dist/cli/{org-2GSPLY2A.js → org-2T5K2VP5.js} +72 -72
  84. package/dist/cli/{org-ZRMG5NS2.mjs → org-UBNRO5XO.mjs} +6 -6
  85. package/dist/cli/{pages-TZZUFBRO.mjs → pages-GHPJBVV3.mjs} +6 -6
  86. package/dist/cli/{pages-45DPADK6.js → pages-SRXTU7XO.js} +18 -18
  87. package/dist/cli/{play-RCGMND6X.js → play-2HMZ57EZ.js} +317 -316
  88. package/dist/cli/{play-3D7HH273.mjs → play-HRQKGTXA.mjs} +18 -17
  89. package/dist/cli/{providers-PSAKV6CJ.mjs → providers-JWJRFRR5.mjs} +6 -6
  90. package/dist/cli/{providers-3N3ECMTY.js → providers-P5O676MZ.js} +9 -9
  91. package/dist/cli/{quickstart-2A35SMGC.mjs → quickstart-S7NZUQRO.mjs} +4 -4
  92. package/dist/cli/{quickstart-6R6AIXM6.js → quickstart-YCY72TAO.js} +6 -6
  93. package/dist/cli/{run-F6ZXTASZ.js → run-MHLLGF4G.js} +41 -40
  94. package/dist/cli/{run-F3TLDGUO.mjs → run-QWMRIUIU.mjs} +23 -22
  95. package/dist/cli/{search-CZLCY3D2.mjs → search-4BFTQUEP.mjs} +8 -7
  96. package/dist/cli/search-QPUHOEIL.js +33 -0
  97. package/dist/cli/{search-output-R5XDNILW.js → search-output-62LBVZHN.js} +6 -6
  98. package/dist/cli/{search-output-MQTSTLN5.mjs → search-output-LIYHDTBP.mjs} +4 -4
  99. package/dist/cli/{secrets-D3GF4B2Z.mjs → secrets-GW27V77E.mjs} +6 -6
  100. package/dist/cli/{secrets-DCJYHDSY.js → secrets-KKKHVSOO.js} +15 -15
  101. package/dist/cli/{sessions-Z4JYJSDP.js → sessions-R3OEINAR.js} +6 -6
  102. package/dist/cli/{sessions-QGEQ2UYZ.mjs → sessions-R75LBGIL.mjs} +5 -5
  103. package/dist/cli/{settings-G7QEXA4N.mjs → settings-I3AQZSYG.mjs} +12 -11
  104. package/dist/cli/{settings-UVXXAT4A.js → settings-MQIHAEZN.js} +79 -78
  105. package/dist/cli/{setup-QHJU3DUI.mjs → setup-2YA5MYMS.mjs} +10 -9
  106. package/dist/cli/{setup-5I42W7D4.js → setup-X3QRJERP.js} +50 -49
  107. package/dist/cli/{skills-5LRF4UKX.mjs → skills-7252FOOI.mjs} +8 -7
  108. package/dist/cli/skills-BPZWMZSL.js +37 -0
  109. package/dist/cli/tools-F7RVQ3IK.js +57 -0
  110. package/dist/cli/{tools-PUT6STVG.mjs → tools-SKQTSVGE.mjs} +17 -16
  111. package/dist/cli/{update-CJ2GA64X.mjs → update-GNBBSKTB.mjs} +10 -9
  112. package/dist/cli/update-TLSY6LC2.js +35 -0
  113. package/dist/cli/{workflow-HVEWRTXD.mjs → workflow-OJSAL5FO.mjs} +7 -7
  114. package/dist/cli/{workflow-O67MEBCP.js → workflow-QB7YYWPP.js} +17 -17
  115. package/dist/{client-CIwenMFS.d.ts → client-B3GSaSFn.d.ts} +1 -1
  116. package/dist/{client-DYAfJpaN.d.mts → client-DEJg0CZn.d.mts} +1 -1
  117. package/dist/{client-core-DlzP8vEs.d.mts → client-core-C404E33V.d.mts} +5 -0
  118. package/dist/{client-core-CRjtyMAI.d.ts → client-core-GQmy3N8y.d.ts} +5 -0
  119. package/dist/index.d.mts +3 -3
  120. package/dist/index.d.ts +3 -3
  121. package/dist/index.js +9 -9
  122. package/dist/index.mjs +6 -6
  123. package/dist/install-integrity.json +107 -104
  124. package/dist/plays/play-description.d.mts +1 -1
  125. package/dist/plays/play-description.d.ts +1 -1
  126. package/dist/plays/run-request.d.mts +1 -1
  127. package/dist/plays/run-request.d.ts +1 -1
  128. package/dist/release.d.mts +1 -1
  129. package/dist/release.d.ts +1 -1
  130. package/dist/release.js +2 -2
  131. package/dist/release.mjs +1 -1
  132. package/dist/server.d.mts +2 -2
  133. package/dist/server.d.ts +2 -2
  134. package/dist/server.js +5 -5
  135. package/dist/server.mjs +3 -3
  136. package/package.json +1 -1
  137. package/dist/cli/auth-UPK4IIIN.js +0 -43
  138. package/dist/cli/describe-OYS7LZJD.js +0 -49
  139. package/dist/cli/git-5YQJSJFR.js +0 -25
  140. package/dist/cli/search-R5VEWJO2.js +0 -32
  141. package/dist/cli/skills-FB6TV52O.js +0 -36
  142. package/dist/cli/tools-L2364RPA.js +0 -56
  143. 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 _chunkIDAE5VDHjs = require('./chunk-IDAE5VDH.js');
4
4
 
5
5
 
6
6
 
7
- var _chunk7P2QVMBPjs = require('./chunk-7P2QVMBP.js');
7
+ var _chunkBWAYMJ23js = require('./chunk-BWAYMJ23.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 _chunkK26YOPDOjs = require('./chunk-K26YOPDO.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 _chunkEMUFF6EUjs = require('./chunk-EMUFF6EU.js');
26
+ require('./chunk-ZLN2B5YA.js');
27
+ require('./chunk-SPN7U3MV.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-XHPB6RGY.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
+ _chunkEMUFF6EUjs.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, )}` : _chunkBWAYMJ23js.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 } = _chunkEMUFF6EUjs.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
+ _chunkEMUFF6EUjs.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, _chunkIDAE5VDHjs.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
+ _chunkEMUFF6EUjs.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 } = _chunkEMUFF6EUjs.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
+ _chunkEMUFF6EUjs.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 } = _chunkEMUFF6EUjs.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
+ _chunkEMUFF6EUjs.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 } = _chunkEMUFF6EUjs.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
+ _chunkEMUFF6EUjs.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 } = _chunkEMUFF6EUjs.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
+ _chunkEMUFF6EUjs.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 _chunkBWAYMJ23js.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 } = _chunkEMUFF6EUjs.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
+ _chunkEMUFF6EUjs.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
+ _chunkEMUFF6EUjs.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 } = _chunkEMUFF6EUjs.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
+ _chunkEMUFF6EUjs.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, _chunkIDAE5VDHjs.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 = _chunkEMUFF6EUjs.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
810
+ _chunkEMUFF6EUjs.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 } = _chunkEMUFF6EUjs.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) _chunkEMUFF6EUjs.openInBrowser.call(void 0, url);
830
+ _chunkEMUFF6EUjs.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, _chunkIDAE5VDHjs.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
+ _chunkEMUFF6EUjs.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, _chunkIDAE5VDHjs.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
+ _chunkEMUFF6EUjs.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
+ _chunkEMUFF6EUjs.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, _chunkIDAE5VDHjs.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
+ _chunkEMUFF6EUjs.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 } = _chunkEMUFF6EUjs.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) _chunkEMUFF6EUjs.openInBrowser.call(void 0, url);
1050
+ _chunkEMUFF6EUjs.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
+ _chunkEMUFF6EUjs.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, _chunkIDAE5VDHjs.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
+ _chunkEMUFF6EUjs.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
+ _chunkEMUFF6EUjs.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, _chunkIDAE5VDHjs.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
+ _chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
1217
1217
  {
1218
1218
  ok: true,
1219
1219
  ...payload,
@@ -1249,10 +1249,10 @@ function formatComputeMinutes(minutes) {
1249
1249
  return minutes < 120 ? `${Number(minutes.toFixed(1)).toLocaleString("en-US")} minutes` : `${Number((minutes / 60).toFixed(1)).toLocaleString("en-US")} hours`;
1250
1250
  }
1251
1251
  async function handleIncludedCompute(options) {
1252
- const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
1252
+ const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
1253
1253
  const payload = options.enable ? await client.billing.enableIncludedCompute() : await client.billing.includedCompute();
1254
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,
1255
+ _chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
1256
1256
  {
1257
1257
  ok: true,
1258
1258
  ...payload,
@@ -1263,12 +1263,12 @@ async function handleIncludedCompute(options) {
1263
1263
  lines: payload.status === "on" ? [
1264
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
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
1266
+ _chunkK26YOPDOjs.PLAY_RUNTIME_PRICING_NOTE
1267
1267
  ] : payload.status === "off" ? [
1268
1268
  "Included compute: off; Play compute is billed at provider cost.",
1269
1269
  `Used: ${formatComputeMinutes(payload.minutes_used)} since ${payload.period_start_at.slice(0, 10)}`,
1270
1270
  `Turning it on gives ${plan}. Run deepline billing compute --enable; it cannot be turned off again.`,
1271
- _chunkGJ2DA35Cjs.PLAY_RUNTIME_PRICING_NOTE
1271
+ _chunkK26YOPDOjs.PLAY_RUNTIME_PRICING_NOTE
1272
1272
  ] : [
1273
1273
  "Included compute is not available for this workspace yet."
1274
1274
  ]
@@ -1280,8 +1280,8 @@ async function handleIncludedCompute(options) {
1280
1280
  );
1281
1281
  }
1282
1282
  async function handleEntitlements(options) {
1283
- const payload = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().billing.entitlements();
1284
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1283
+ const payload = await new (0, _chunkIDAE5VDHjs.DeeplineClient)().billing.entitlements();
1284
+ _chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
1285
1285
  {
1286
1286
  ok: true,
1287
1287
  ...payload,
@@ -1314,7 +1314,7 @@ async function handleEntitlements(options) {
1314
1314
  );
1315
1315
  }
1316
1316
  async function handleAutoRechargeStatus(options) {
1317
- const payload = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().billing.autoRecharge.get();
1317
+ const payload = await new (0, _chunkIDAE5VDHjs.DeeplineClient)().billing.autoRecharge.get();
1318
1318
  const state = payload.available ? payload.enabled ? "on" : "off" : "unavailable";
1319
1319
  const lines = [
1320
1320
  `State: ${state}`,
@@ -1324,7 +1324,7 @@ async function handleAutoRechargeStatus(options) {
1324
1324
  `Automatic credit purchase cap: ${payload.purchase_limit_credits} credits per rolling 30 days`
1325
1325
  ] : []
1326
1326
  ];
1327
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1327
+ _chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
1328
1328
  {
1329
1329
  ok: true,
1330
1330
  ...payload,
@@ -1373,7 +1373,7 @@ async function handleAutoRechargeSet(options) {
1373
1373
  }
1374
1374
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1375
1375
  if (options.dryRun) {
1376
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1376
+ _chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
1377
1377
  {
1378
1378
  ok: true,
1379
1379
  dry_run: true,
@@ -1394,7 +1394,7 @@ async function handleAutoRechargeSet(options) {
1394
1394
  );
1395
1395
  return;
1396
1396
  }
1397
- const payload = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().billing.autoRecharge.update({
1397
+ const payload = await new (0, _chunkIDAE5VDHjs.DeeplineClient)().billing.autoRecharge.update({
1398
1398
  enabled: true,
1399
1399
  thresholdCredits,
1400
1400
  refillToCredits,
@@ -1402,7 +1402,7 @@ async function handleAutoRechargeSet(options) {
1402
1402
  ...rollingLimitCredits !== void 0 ? { purchaseLimitCredits: rollingLimitCredits } : {},
1403
1403
  idempotencyKey
1404
1404
  });
1405
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1405
+ _chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
1406
1406
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1407
1407
  { json: options.json }
1408
1408
  );
@@ -1410,7 +1410,7 @@ async function handleAutoRechargeSet(options) {
1410
1410
  async function handleAutoRechargeOff(options) {
1411
1411
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1412
1412
  if (options.dryRun) {
1413
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1413
+ _chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
1414
1414
  {
1415
1415
  ok: true,
1416
1416
  dry_run: true,
@@ -1425,11 +1425,11 @@ async function handleAutoRechargeOff(options) {
1425
1425
  );
1426
1426
  return;
1427
1427
  }
1428
- const payload = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().billing.autoRecharge.update({
1428
+ const payload = await new (0, _chunkIDAE5VDHjs.DeeplineClient)().billing.autoRecharge.update({
1429
1429
  enabled: false,
1430
1430
  idempotencyKey
1431
1431
  });
1432
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1432
+ _chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
1433
1433
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1434
1434
  { json: options.json }
1435
1435
  );
@@ -1448,11 +1448,11 @@ async function handleBuyCredits(creditsRaw, options) {
1448
1448
  return;
1449
1449
  }
1450
1450
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1451
- const payload = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().billing.purchaseCredits({
1451
+ const payload = await new (0, _chunkIDAE5VDHjs.DeeplineClient)().billing.purchaseCredits({
1452
1452
  credits,
1453
1453
  idempotencyKey
1454
1454
  });
1455
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1455
+ _chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
1456
1456
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1457
1457
  { json: options.json }
1458
1458
  );
@@ -1488,7 +1488,7 @@ async function handleTopUpRecover(creditsRaw, options) {
1488
1488
  return;
1489
1489
  }
1490
1490
  if (options.dryRun) {
1491
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1491
+ _chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
1492
1492
  {
1493
1493
  ok: true,
1494
1494
  dry_run: true,
@@ -1501,12 +1501,12 @@ async function handleTopUpRecover(creditsRaw, options) {
1501
1501
  );
1502
1502
  return;
1503
1503
  }
1504
- const payload = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().billing.recoverCreditPurchase({
1504
+ const payload = await new (0, _chunkIDAE5VDHjs.DeeplineClient)().billing.recoverCreditPurchase({
1505
1505
  credits,
1506
1506
  orgId: options.orgId,
1507
1507
  idempotencyKey: options.idempotencyKey
1508
1508
  });
1509
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1509
+ _chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
1510
1510
  { ok: true, idempotency_key: options.idempotencyKey, ...payload },
1511
1511
  { json: options.json }
1512
1512
  );
@@ -1526,37 +1526,37 @@ async function handleTargetPlan(planSku, options) {
1526
1526
  return;
1527
1527
  }
1528
1528
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1529
- const payload = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().billing.transitionPlan({
1529
+ const payload = await new (0, _chunkIDAE5VDHjs.DeeplineClient)().billing.transitionPlan({
1530
1530
  action: "start_or_change",
1531
1531
  targetPlanSku: planSku,
1532
1532
  ...options.billingEmail ? { billingEmail: options.billingEmail } : {},
1533
1533
  idempotencyKey
1534
1534
  });
1535
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1535
+ _chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
1536
1536
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1537
1537
  { json: options.json }
1538
1538
  );
1539
1539
  }
1540
1540
  async function handleTargetPlanCancellation(options) {
1541
1541
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1542
- const payload = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().billing.transitionPlan({
1542
+ const payload = await new (0, _chunkIDAE5VDHjs.DeeplineClient)().billing.transitionPlan({
1543
1543
  action: options.undo ? "undo_cancel" : "cancel",
1544
1544
  idempotencyKey
1545
1545
  });
1546
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1546
+ _chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
1547
1547
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1548
1548
  { json: options.json }
1549
1549
  );
1550
1550
  }
1551
1551
  async function handleTargetPortal(options) {
1552
- const payload = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().billing.portalSession(
1552
+ const payload = await new (0, _chunkIDAE5VDHjs.DeeplineClient)().billing.portalSession(
1553
1553
  options.billingAddress ? { flow: "customer_update" } : void 0
1554
1554
  );
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 });
1555
+ if (!options.json && !options.noOpen) _chunkEMUFF6EUjs.openInBrowser.call(void 0, payload.url);
1556
+ _chunkEMUFF6EUjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1557
1557
  }
1558
1558
  async function handleRedeemCode(code, options) {
1559
- const { http } = _chunkQKKU2FH4js.getAuthedHttpClient.call(void 0, );
1559
+ const { http } = _chunkEMUFF6EUjs.getAuthedHttpClient.call(void 0, );
1560
1560
  const payload = await http.post(
1561
1561
  "/api/v2/billing/checkout",
1562
1562
  {
@@ -1564,8 +1564,8 @@ async function handleRedeemCode(code, options) {
1564
1564
  }
1565
1565
  );
1566
1566
  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,
1567
+ if (!options.json && !options.noOpen && url) _chunkEMUFF6EUjs.openInBrowser.call(void 0, url);
1568
+ _chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
1569
1569
  {
1570
1570
  ...payload,
1571
1571
  render: {
@@ -1626,14 +1626,14 @@ Examples:
1626
1626
  if (!Number.isSafeInteger(quantity) || quantity <= 0) {
1627
1627
  throw new Error("--quantity must be a positive safe integer.");
1628
1628
  }
1629
- const quote = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().billing.quote({
1629
+ const quote = await new (0, _chunkIDAE5VDHjs.DeeplineClient)().billing.quote({
1630
1630
  quantity,
1631
1631
  sandbox_runtime: {
1632
1632
  timeout: options.sandboxTimeout,
1633
1633
  size: options.sandboxSize
1634
1634
  }
1635
1635
  });
1636
- _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, quote, {
1636
+ _chunkEMUFF6EUjs.printCommandEnvelope.call(void 0, quote, {
1637
1637
  json: options.json,
1638
1638
  text: `Sandbox session ceiling: ${quote.maximum_credits} Deepline credits (${quote.quantity} session${quote.quantity === 1 ? "" : "s"}).
1639
1639
  ${quote.explanation}
@@ -1881,8 +1881,8 @@ Examples:
1881
1881
  new (0, _commander.Command)("trigger").description(
1882
1882
  "Evaluate capped automatic recharge and resume any pending purchase."
1883
1883
  ).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 });
1884
+ const result = await new (0, _chunkIDAE5VDHjs.DeeplineClient)().billing.autoRecharge.trigger();
1885
+ _chunkEMUFF6EUjs.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
1886
1886
  })
1887
1887
  );
1888
1888
  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(