deepline 0.3.511 → 0.3.513

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 (136) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +36 -0
  3. package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +2 -0
  4. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +9 -3
  5. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +35 -3
  6. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +4 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +23 -1
  8. package/dist/cli/{artifacts-G6JHRHY5.mjs → artifacts-AMM4RZNI.mjs} +6 -6
  9. package/dist/cli/{artifacts-PLF5ZUS7.js → artifacts-SZA52D3P.js} +18 -18
  10. package/dist/cli/{auth-2XMJMDWG.mjs → auth-3HQ7FXPX.mjs} +5 -5
  11. package/dist/cli/auth-THCURTEC.js +43 -0
  12. package/dist/cli/{billing-6C5AI42X.mjs → billing-7AIKDEQQ.mjs} +7 -7
  13. package/dist/cli/{billing-Z3XFXP3H.js → billing-SVFRN4BJ.js} +82 -82
  14. package/dist/cli/{chunk-VEOFISLZ.mjs → chunk-3SE4O52N.mjs} +1 -1
  15. package/dist/cli/{chunk-JYFLIQPE.js → chunk-3UKVFI2R.js} +7 -7
  16. package/dist/cli/{chunk-VQ74WMKG.mjs → chunk-3WHK7WCP.mjs} +3 -3
  17. package/dist/cli/{chunk-5WTLXL6O.mjs → chunk-46QVEEXR.mjs} +1 -1
  18. package/dist/cli/{chunk-2YVRIXVR.js → chunk-4EGBOZ53.js} +9 -9
  19. package/dist/cli/{chunk-FF25PDQ2.js → chunk-5IZXMA2L.js} +4 -1
  20. package/dist/cli/{chunk-HLEZQDEZ.mjs → chunk-5T4SZPVO.mjs} +2 -2
  21. package/dist/cli/{chunk-77DPQI6W.mjs → chunk-5UWWZLMX.mjs} +4 -1
  22. package/dist/cli/{chunk-KUDNPJ43.js → chunk-6JNRYX65.js} +2 -2
  23. package/dist/cli/{chunk-KZBKQPSA.js → chunk-6UVAYLQG.js} +2 -2
  24. package/dist/cli/{chunk-XXQZYLLL.mjs → chunk-7NIBAJML.mjs} +2 -2
  25. package/dist/cli/{chunk-JDDKJIZU.mjs → chunk-7UVKC5G4.mjs} +1 -1
  26. package/dist/cli/{chunk-LDZYGM7W.js → chunk-ADB6FD2Q.js} +41 -41
  27. package/dist/cli/{chunk-FTT2SBBH.mjs → chunk-B4BKATGX.mjs} +5 -5
  28. package/dist/cli/{chunk-OQ4YBPOQ.mjs → chunk-C5KH6FDN.mjs} +3 -3
  29. package/dist/cli/{chunk-S5C4CWSS.mjs → chunk-CEWRCUSH.mjs} +5 -5
  30. package/dist/cli/{chunk-O37BQ2CG.js → chunk-D72M5LBQ.js} +10 -10
  31. package/dist/cli/{chunk-D5VWSR4D.js → chunk-EAQQTYJL.js} +5 -5
  32. package/dist/cli/{chunk-ZYVR4A4P.mjs → chunk-FC6BR2OA.mjs} +10 -10
  33. package/dist/cli/{chunk-ISY7PBIK.mjs → chunk-FLG3VIDQ.mjs} +5 -5
  34. package/dist/cli/{chunk-K4JB2BZP.js → chunk-H6WD65CD.js} +96 -96
  35. package/dist/cli/{chunk-WDBEWOU6.js → chunk-HDDE4Y4V.js} +2 -2
  36. package/dist/cli/{chunk-FAGSSIOY.js → chunk-JA5PBN44.js} +6 -6
  37. package/dist/cli/{chunk-PI45LZ5B.js → chunk-JI2LKS5V.js} +11 -11
  38. package/dist/cli/{chunk-ASXOFBF7.mjs → chunk-JNNQ53BX.mjs} +2 -2
  39. package/dist/cli/{chunk-PCI4MMH7.mjs → chunk-K3CUVLW7.mjs} +1 -1
  40. package/dist/cli/{chunk-GJWL4KTY.mjs → chunk-KINDIV44.mjs} +4 -4
  41. package/dist/cli/{chunk-XZ6IZIQJ.mjs → chunk-LA66PYB4.mjs} +2 -2
  42. package/dist/cli/{chunk-BHV7JKXQ.js → chunk-MPOF4Z44.js} +1 -1
  43. package/dist/cli/{chunk-QDWNVTTO.mjs → chunk-OD72PULZ.mjs} +2 -2
  44. package/dist/cli/{chunk-IYWN7M4I.js → chunk-ORQVTTTM.js} +5 -5
  45. package/dist/cli/{chunk-JHBZBCU4.mjs → chunk-P2EHYH2Q.mjs} +1 -1
  46. package/dist/cli/{chunk-XSBGWMI6.mjs → chunk-P63SBUEW.mjs} +1 -1
  47. package/dist/cli/{chunk-LKSJXTRP.js → chunk-P6TG7COR.js} +53 -53
  48. package/dist/cli/{chunk-YX7E2VQM.js → chunk-PFEFK2FB.js} +26 -26
  49. package/dist/cli/{chunk-GGQHOLH6.js → chunk-PGHCBL5G.js} +3 -3
  50. package/dist/cli/{chunk-RPPU3XB3.mjs → chunk-PPQU263U.mjs} +2 -2
  51. package/dist/cli/{chunk-XGXXNT4O.js → chunk-QDGUDNVR.js} +7 -7
  52. package/dist/cli/{chunk-S6KEACD3.mjs → chunk-ROIFA4H7.mjs} +6 -6
  53. package/dist/cli/{chunk-KK6NZHAJ.mjs → chunk-ROJ55CXM.mjs} +1 -1
  54. package/dist/cli/{chunk-2Q4H2Y6N.js → chunk-SDD75XIU.js} +6 -6
  55. package/dist/cli/{chunk-FV4PASXH.js → chunk-TWHJ4WCA.js} +16 -16
  56. package/dist/cli/{chunk-VHFTN6VY.js → chunk-U5QR527Y.js} +44 -44
  57. package/dist/cli/{chunk-PUFEARWT.js → chunk-UDVX7HKU.js} +16 -16
  58. package/dist/cli/{chunk-GD3ES3JU.js → chunk-VMLZQ3VM.js} +14 -14
  59. package/dist/cli/{chunk-XREZY4FA.mjs → chunk-WFN6SB2B.mjs} +1 -1
  60. package/dist/cli/{chunk-KXGH4YUQ.mjs → chunk-XCP75LSJ.mjs} +1 -1
  61. package/dist/cli/{chunk-JIY25SUX.js → chunk-Y2SIHXYS.js} +4 -4
  62. package/dist/cli/{chunk-ZWGBQKW7.js → chunk-YZW4ZLU3.js} +21 -21
  63. package/dist/cli/{chunk-NVMNMKZW.js → chunk-Z52XVM5I.js} +3 -3
  64. package/dist/cli/{chunk-SI4QXATV.mjs → chunk-ZDO67LFA.mjs} +5 -5
  65. package/dist/cli/{chunk-ZFJ2U76O.mjs → chunk-ZKUXTF6X.mjs} +2 -2
  66. package/dist/cli/command-docs.js +2 -2
  67. package/dist/cli/command-docs.mjs +1 -1
  68. package/dist/cli/{csv-CNK6ZF3T.mjs → csv-56JWAO3Y.mjs} +4 -4
  69. package/dist/cli/{csv-S44OGG2O.js → csv-WKF5O6C4.js} +13 -13
  70. package/dist/cli/{db-AVO6QJU6.mjs → db-SENEFS45.mjs} +6 -6
  71. package/dist/cli/{db-WKZ6EXNG.js → db-UURETUXZ.js} +27 -27
  72. package/dist/cli/describe-GIJAGNZM.js +50 -0
  73. package/dist/cli/{describe-2HQRT5MI.mjs → describe-R3XKAGF5.mjs} +18 -18
  74. package/dist/cli/{executions-DKHOR7HD.mjs → executions-BAUUWHSW.mjs} +6 -6
  75. package/dist/cli/{executions-MTAHNARA.js → executions-WZUS3S2K.js} +8 -8
  76. package/dist/cli/{feedback-K6SJS4LG.mjs → feedback-5SCDE247.mjs} +5 -5
  77. package/dist/cli/{feedback-R2UABU3E.js → feedback-Z6A7WMJS.js} +10 -10
  78. package/dist/cli/{git-3EPA7433.mjs → git-246MRTK7.mjs} +5 -5
  79. package/dist/cli/git-D5UAIEQE.js +25 -0
  80. package/dist/cli/index.js +145 -145
  81. package/dist/cli/index.mjs +44 -44
  82. package/dist/cli/{legacy-noops-3Q2D2F24.js → legacy-noops-AKETAVNI.js} +9 -9
  83. package/dist/cli/{legacy-noops-66OPCJJD.mjs → legacy-noops-M242HT67.mjs} +6 -6
  84. package/dist/cli/{monitors-2PYPRWT4.mjs → monitors-N5T6PLCX.mjs} +7 -7
  85. package/dist/cli/{monitors-KHH4MZDF.js → monitors-QIHYTSKD.js} +100 -100
  86. package/dist/cli/{org-X5G36B2Q.js → org-BSCPIN7Y.js} +72 -72
  87. package/dist/cli/{org-WAW3OL7B.mjs → org-YMDLKBVM.mjs} +6 -6
  88. package/dist/cli/{pages-XDPHCHHU.js → pages-BYSQBWD5.js} +18 -18
  89. package/dist/cli/{pages-KABWXDGW.mjs → pages-FRLPAY6I.mjs} +6 -6
  90. package/dist/cli/{play-654B2HQU.mjs → play-CMJI6RNI.mjs} +18 -18
  91. package/dist/cli/{play-UE5FKQCO.js → play-OIJAMP5P.js} +317 -317
  92. package/dist/cli/{providers-QT2BZMJ7.js → providers-6Q7H2RYZ.js} +9 -9
  93. package/dist/cli/{providers-SKNGX6IT.mjs → providers-KWFIH3E7.mjs} +6 -6
  94. package/dist/cli/{quickstart-XWDVAQTT.js → quickstart-GU35UZPU.js} +6 -6
  95. package/dist/cli/{quickstart-BX7XMJIQ.mjs → quickstart-UZWAQ7VJ.mjs} +4 -4
  96. package/dist/cli/{run-JTU4K4MY.mjs → run-AJ24G4CT.mjs} +23 -23
  97. package/dist/cli/{run-C6YYD4AK.js → run-OYOQIVBM.js} +41 -41
  98. package/dist/cli/{search-NHV4Y4SX.mjs → search-2KNDV3DL.mjs} +8 -8
  99. package/dist/cli/search-UZM6U4MZ.js +33 -0
  100. package/dist/cli/{search-output-WLFFEGCY.js → search-output-526FOJQD.js} +6 -6
  101. package/dist/cli/{search-output-AAOMFK7K.mjs → search-output-X5TMIIA4.mjs} +4 -4
  102. package/dist/cli/{secrets-H4WTLQJJ.js → secrets-QL5SMK62.js} +15 -15
  103. package/dist/cli/{secrets-S66PZSRO.mjs → secrets-XEOGG6TV.mjs} +6 -6
  104. package/dist/cli/sessions-T27GUYZX.js +18 -0
  105. package/dist/cli/{sessions-PY6FJX3O.mjs → sessions-Z352OY5B.mjs} +6 -6
  106. package/dist/cli/{settings-V7BM42KQ.mjs → settings-AET5AKBY.mjs} +13 -13
  107. package/dist/cli/{settings-YO4FFPN6.js → settings-EKLYIRWJ.js} +86 -86
  108. package/dist/cli/{setup-IFZYYQ2W.js → setup-IJWDEYLG.js} +50 -50
  109. package/dist/cli/{setup-VUBM2HMH.mjs → setup-JPGTZYR2.mjs} +10 -10
  110. package/dist/cli/{skills-EYWRSQQJ.mjs → skills-DGCK6723.mjs} +8 -8
  111. package/dist/cli/skills-MLMVPHWG.js +37 -0
  112. package/dist/cli/tools-5WBKZRLQ.js +57 -0
  113. package/dist/cli/{tools-VZOW4MUD.mjs → tools-7GEQLQWX.mjs} +17 -17
  114. package/dist/cli/update-JK4NLT4H.js +35 -0
  115. package/dist/cli/{update-CQDJJYU2.mjs → update-SAN6LDPT.mjs} +10 -10
  116. package/dist/cli/{workflow-2VRDIPF3.mjs → workflow-C66GOHRB.mjs} +7 -7
  117. package/dist/cli/{workflow-XS3JEU6X.js → workflow-E4NGYGGM.js} +17 -17
  118. package/dist/index.js +9 -9
  119. package/dist/index.mjs +6 -6
  120. package/dist/install-integrity.json +106 -106
  121. package/dist/release.d.mts +1 -1
  122. package/dist/release.d.ts +1 -1
  123. package/dist/release.js +2 -2
  124. package/dist/release.mjs +1 -1
  125. package/dist/server.js +5 -5
  126. package/dist/server.mjs +3 -3
  127. package/dist/viewer/viewer.js +16 -7
  128. package/package.json +1 -1
  129. package/dist/cli/auth-PI2KS2CD.js +0 -43
  130. package/dist/cli/describe-CCK77NER.js +0 -50
  131. package/dist/cli/git-7L3PY2A4.js +0 -25
  132. package/dist/cli/search-RIFW5JCK.js +0 -33
  133. package/dist/cli/sessions-EFWO62XJ.js +0 -18
  134. package/dist/cli/skills-LFP53SWQ.js +0 -37
  135. package/dist/cli/tools-SR2Q7KC5.js +0 -57
  136. package/dist/cli/update-ADZBZZZS.js +0 -35
@@ -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 _chunkD5VWSR4Djs = require('./chunk-D5VWSR4D.js');
3
+ var _chunkEAQQTYJLjs = require('./chunk-EAQQTYJL.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkXGXXNT4Ojs = require('./chunk-XGXXNT4O.js');
7
+ var _chunkQDGUDNVRjs = require('./chunk-QDGUDNVR.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 _chunkFF25PDQ2js = require('./chunk-FF25PDQ2.js');
14
+ var _chunk5IZXMA2Ljs = require('./chunk-5IZXMA2L.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 _chunkJYFLIQPEjs = require('./chunk-JYFLIQPE.js');
26
- require('./chunk-GGQHOLH6.js');
27
- require('./chunk-JIY25SUX.js');
25
+ var _chunk3UKVFI2Rjs = require('./chunk-3UKVFI2R.js');
26
+ require('./chunk-PGHCBL5G.js');
27
+ require('./chunk-Y2SIHXYS.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-BHV7JKXQ.js');
36
+ require('./chunk-MPOF4Z44.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
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
85
+ _chunk3UKVFI2Rjs.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, )}` : _chunkXGXXNT4Ojs.requireBillingIdempotencyKey.call(void 0, raw);
106
+ return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` : _chunkQDGUDNVRjs.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 } = _chunkJYFLIQPEjs.getAuthedHttpClient.call(void 0, );
325
+ const { http } = _chunk3UKVFI2Rjs.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
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
409
+ _chunk3UKVFI2Rjs.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, _chunkD5VWSR4Djs.DeeplineClient)();
445
+ const client = new (0, _chunkEAQQTYJLjs.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
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
476
+ _chunk3UKVFI2Rjs.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 } = _chunkJYFLIQPEjs.getAuthedHttpClient.call(void 0, );
498
+ const { http } = _chunk3UKVFI2Rjs.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
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
582
+ _chunk3UKVFI2Rjs.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 } = _chunkJYFLIQPEjs.getAuthedHttpClient.call(void 0, );
596
+ const { http } = _chunk3UKVFI2Rjs.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
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
604
+ _chunk3UKVFI2Rjs.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 } = _chunkJYFLIQPEjs.getAuthedHttpClient.call(void 0, );
613
+ const { http } = _chunk3UKVFI2Rjs.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
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
618
+ _chunk3UKVFI2Rjs.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 } = _chunkJYFLIQPEjs.getAuthedHttpClient.call(void 0, );
634
+ const { http } = _chunk3UKVFI2Rjs.getAuthedHttpClient.call(void 0, );
635
635
  const payload = await http.request("/api/v2/billing/limit", {
636
636
  method: "DELETE"
637
637
  });
638
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
638
+ _chunk3UKVFI2Rjs.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 _chunkXGXXNT4Ojs.iterateCursorPages.call(void 0, async (cursor) => {
658
+ for await (const entries of _chunkQDGUDNVRjs.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 } = _chunkJYFLIQPEjs.getAuthedHttpClient.call(void 0, );
697
+ const { http } = _chunk3UKVFI2Rjs.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
- _chunkJYFLIQPEjs.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
709
+ _chunk3UKVFI2Rjs.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
710
710
  );
711
711
  const summary = await exportLedger(http, outputPath, { sinceAt });
712
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
712
+ _chunk3UKVFI2Rjs.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 } = _chunkJYFLIQPEjs.getAuthedHttpClient.call(void 0, );
749
+ const { http } = _chunk3UKVFI2Rjs.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
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
756
+ _chunk3UKVFI2Rjs.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, _chunkD5VWSR4Djs.DeeplineClient)();
796
+ const client = new (0, _chunkEAQQTYJLjs.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 = _chunkJYFLIQPEjs.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
810
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
809
+ const legacyPayload = _chunk3UKVFI2Rjs.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
810
+ _chunk3UKVFI2Rjs.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 } = _chunkJYFLIQPEjs.getAuthedHttpClient.call(void 0, );
820
+ const { http } = _chunk3UKVFI2Rjs.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) _chunkJYFLIQPEjs.openInBrowser.call(void 0, url);
830
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
829
+ if (!options.json && options.open !== false && url) _chunk3UKVFI2Rjs.openInBrowser.call(void 0, url);
830
+ _chunk3UKVFI2Rjs.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, _chunkD5VWSR4Djs.DeeplineClient)();
846
+ const client = new (0, _chunkEAQQTYJLjs.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
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
866
+ _chunk3UKVFI2Rjs.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, _chunkD5VWSR4Djs.DeeplineClient)();
875
+ const client = new (0, _chunkEAQQTYJLjs.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
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
892
+ _chunk3UKVFI2Rjs.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
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
947
+ _chunk3UKVFI2Rjs.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, _chunkD5VWSR4Djs.DeeplineClient)();
1001
+ const client = new (0, _chunkEAQQTYJLjs.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
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
1030
+ _chunk3UKVFI2Rjs.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 } = _chunkJYFLIQPEjs.getAuthedHttpClient.call(void 0, );
1039
+ const { http } = _chunk3UKVFI2Rjs.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) _chunkJYFLIQPEjs.openInBrowser.call(void 0, url);
1050
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
1049
+ if (!options.json && !options.noOpen && url) _chunk3UKVFI2Rjs.openInBrowser.call(void 0, url);
1050
+ _chunk3UKVFI2Rjs.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
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
1095
+ _chunk3UKVFI2Rjs.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, _chunkD5VWSR4Djs.DeeplineClient)();
1125
+ const client = new (0, _chunkEAQQTYJLjs.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
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
1142
+ _chunk3UKVFI2Rjs.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
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0, options.compact ? compactEnvelope : fullEnvelope, {
1206
+ _chunk3UKVFI2Rjs.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, _chunkD5VWSR4Djs.DeeplineClient)();
1211
+ const client = new (0, _chunkEAQQTYJLjs.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
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
1216
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
1217
1217
  {
1218
1218
  ok: true,
1219
1219
  ...payload,
@@ -1251,13 +1251,13 @@ function formatComputeAmount(minutes, credits) {
1251
1251
  return `${time} ${minutes === 1 ? "minute" : "minutes"} (${cost} ${credits === 1 ? "credit" : "credits"})`;
1252
1252
  }
1253
1253
  async function handleIncludedCompute(options) {
1254
- const client = new (0, _chunkD5VWSR4Djs.DeeplineClient)();
1254
+ const client = new (0, _chunkEAQQTYJLjs.DeeplineClient)();
1255
1255
  const payload = options.enable ? await client.billing.enableIncludedCompute({ includeOverage: true }) : await client.billing.includedCompute({ includeOverage: true });
1256
1256
  const rate = _nullishCoalesce(payload.credits_per_minute, () => ( 0));
1257
1257
  const includedCredits = _nullishCoalesce(payload.included_credits_used, () => ( payload.included_minutes_used * rate));
1258
1258
  const includedMinutes = payload.included_credits_used !== void 0 && rate > 0 ? includedCredits / rate : payload.included_minutes_used;
1259
1259
  const overage = payload.overage_credits;
1260
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
1260
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
1261
1261
  {
1262
1262
  ok: true,
1263
1263
  ...payload,
@@ -1272,12 +1272,12 @@ async function handleIncludedCompute(options) {
1272
1272
  ] : [],
1273
1273
  `Standard sandbox price: ${formatComputeAmount(60, Math.round(rate * 60))}`,
1274
1274
  `Allowance resets: ${payload.period_end_at.slice(0, 10)} (UTC)`,
1275
- _chunkFF25PDQ2js.PLAY_RUNTIME_PRICING_NOTE
1275
+ _chunk5IZXMA2Ljs.PLAY_RUNTIME_PRICING_NOTE
1276
1276
  ] : payload.status === "off" ? [
1277
1277
  "Included compute: off; Play compute is billed at provider cost.",
1278
1278
  `Allowance if enabled: ${formatComputeAmount(payload.plan.included_minutes, payload.plan.included_minutes * payload.plan.credits_per_minute)} per month`,
1279
1279
  `Standard sandbox price if enabled: ${formatComputeAmount(60, Math.round(payload.plan.credits_per_minute * 60))}`,
1280
- _chunkFF25PDQ2js.PLAY_RUNTIME_PRICING_NOTE,
1280
+ _chunk5IZXMA2Ljs.PLAY_RUNTIME_PRICING_NOTE,
1281
1281
  "Run deepline billing compute --enable to turn on included compute. It cannot be turned off again."
1282
1282
  ] : [
1283
1283
  "Included compute is not available for this workspace yet."
@@ -1290,8 +1290,8 @@ async function handleIncludedCompute(options) {
1290
1290
  );
1291
1291
  }
1292
1292
  async function handleEntitlements(options) {
1293
- const payload = await new (0, _chunkD5VWSR4Djs.DeeplineClient)().billing.entitlements();
1294
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
1293
+ const payload = await new (0, _chunkEAQQTYJLjs.DeeplineClient)().billing.entitlements();
1294
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
1295
1295
  {
1296
1296
  ok: true,
1297
1297
  ...payload,
@@ -1324,7 +1324,7 @@ async function handleEntitlements(options) {
1324
1324
  );
1325
1325
  }
1326
1326
  async function handleAutoRechargeStatus(options) {
1327
- const payload = await new (0, _chunkD5VWSR4Djs.DeeplineClient)().billing.autoRecharge.get();
1327
+ const payload = await new (0, _chunkEAQQTYJLjs.DeeplineClient)().billing.autoRecharge.get();
1328
1328
  const state = payload.available ? payload.enabled ? "on" : "off" : "unavailable";
1329
1329
  const lines = [
1330
1330
  `State: ${state}`,
@@ -1334,7 +1334,7 @@ async function handleAutoRechargeStatus(options) {
1334
1334
  `Automatic credit purchase cap: ${payload.purchase_limit_credits} credits per rolling 30 days`
1335
1335
  ] : []
1336
1336
  ];
1337
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
1337
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
1338
1338
  {
1339
1339
  ok: true,
1340
1340
  ...payload,
@@ -1383,7 +1383,7 @@ async function handleAutoRechargeSet(options) {
1383
1383
  }
1384
1384
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1385
1385
  if (options.dryRun) {
1386
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
1386
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
1387
1387
  {
1388
1388
  ok: true,
1389
1389
  dry_run: true,
@@ -1404,7 +1404,7 @@ async function handleAutoRechargeSet(options) {
1404
1404
  );
1405
1405
  return;
1406
1406
  }
1407
- const payload = await new (0, _chunkD5VWSR4Djs.DeeplineClient)().billing.autoRecharge.update({
1407
+ const payload = await new (0, _chunkEAQQTYJLjs.DeeplineClient)().billing.autoRecharge.update({
1408
1408
  enabled: true,
1409
1409
  thresholdCredits,
1410
1410
  refillToCredits,
@@ -1412,7 +1412,7 @@ async function handleAutoRechargeSet(options) {
1412
1412
  ...rollingLimitCredits !== void 0 ? { purchaseLimitCredits: rollingLimitCredits } : {},
1413
1413
  idempotencyKey
1414
1414
  });
1415
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
1415
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
1416
1416
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1417
1417
  { json: options.json }
1418
1418
  );
@@ -1420,7 +1420,7 @@ async function handleAutoRechargeSet(options) {
1420
1420
  async function handleAutoRechargeOff(options) {
1421
1421
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1422
1422
  if (options.dryRun) {
1423
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
1423
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
1424
1424
  {
1425
1425
  ok: true,
1426
1426
  dry_run: true,
@@ -1435,11 +1435,11 @@ async function handleAutoRechargeOff(options) {
1435
1435
  );
1436
1436
  return;
1437
1437
  }
1438
- const payload = await new (0, _chunkD5VWSR4Djs.DeeplineClient)().billing.autoRecharge.update({
1438
+ const payload = await new (0, _chunkEAQQTYJLjs.DeeplineClient)().billing.autoRecharge.update({
1439
1439
  enabled: false,
1440
1440
  idempotencyKey
1441
1441
  });
1442
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
1442
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
1443
1443
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1444
1444
  { json: options.json }
1445
1445
  );
@@ -1458,11 +1458,11 @@ async function handleBuyCredits(creditsRaw, options) {
1458
1458
  return;
1459
1459
  }
1460
1460
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1461
- const payload = await new (0, _chunkD5VWSR4Djs.DeeplineClient)().billing.purchaseCredits({
1461
+ const payload = await new (0, _chunkEAQQTYJLjs.DeeplineClient)().billing.purchaseCredits({
1462
1462
  credits,
1463
1463
  idempotencyKey
1464
1464
  });
1465
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
1465
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
1466
1466
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1467
1467
  { json: options.json }
1468
1468
  );
@@ -1498,7 +1498,7 @@ async function handleTopUpRecover(creditsRaw, options) {
1498
1498
  return;
1499
1499
  }
1500
1500
  if (options.dryRun) {
1501
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
1501
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
1502
1502
  {
1503
1503
  ok: true,
1504
1504
  dry_run: true,
@@ -1511,12 +1511,12 @@ async function handleTopUpRecover(creditsRaw, options) {
1511
1511
  );
1512
1512
  return;
1513
1513
  }
1514
- const payload = await new (0, _chunkD5VWSR4Djs.DeeplineClient)().billing.recoverCreditPurchase({
1514
+ const payload = await new (0, _chunkEAQQTYJLjs.DeeplineClient)().billing.recoverCreditPurchase({
1515
1515
  credits,
1516
1516
  orgId: options.orgId,
1517
1517
  idempotencyKey: options.idempotencyKey
1518
1518
  });
1519
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
1519
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
1520
1520
  { ok: true, idempotency_key: options.idempotencyKey, ...payload },
1521
1521
  { json: options.json }
1522
1522
  );
@@ -1536,37 +1536,37 @@ async function handleTargetPlan(planSku, options) {
1536
1536
  return;
1537
1537
  }
1538
1538
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1539
- const payload = await new (0, _chunkD5VWSR4Djs.DeeplineClient)().billing.transitionPlan({
1539
+ const payload = await new (0, _chunkEAQQTYJLjs.DeeplineClient)().billing.transitionPlan({
1540
1540
  action: "start_or_change",
1541
1541
  targetPlanSku: planSku,
1542
1542
  ...options.billingEmail ? { billingEmail: options.billingEmail } : {},
1543
1543
  idempotencyKey
1544
1544
  });
1545
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
1545
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
1546
1546
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1547
1547
  { json: options.json }
1548
1548
  );
1549
1549
  }
1550
1550
  async function handleTargetPlanCancellation(options) {
1551
1551
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1552
- const payload = await new (0, _chunkD5VWSR4Djs.DeeplineClient)().billing.transitionPlan({
1552
+ const payload = await new (0, _chunkEAQQTYJLjs.DeeplineClient)().billing.transitionPlan({
1553
1553
  action: options.undo ? "undo_cancel" : "cancel",
1554
1554
  idempotencyKey
1555
1555
  });
1556
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
1556
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
1557
1557
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1558
1558
  { json: options.json }
1559
1559
  );
1560
1560
  }
1561
1561
  async function handleTargetPortal(options) {
1562
- const payload = await new (0, _chunkD5VWSR4Djs.DeeplineClient)().billing.portalSession(
1562
+ const payload = await new (0, _chunkEAQQTYJLjs.DeeplineClient)().billing.portalSession(
1563
1563
  options.billingAddress ? { flow: "customer_update" } : void 0
1564
1564
  );
1565
- if (!options.json && !options.noOpen) _chunkJYFLIQPEjs.openInBrowser.call(void 0, payload.url);
1566
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1565
+ if (!options.json && !options.noOpen) _chunk3UKVFI2Rjs.openInBrowser.call(void 0, payload.url);
1566
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1567
1567
  }
1568
1568
  async function handleRedeemCode(code, options) {
1569
- const { http } = _chunkJYFLIQPEjs.getAuthedHttpClient.call(void 0, );
1569
+ const { http } = _chunk3UKVFI2Rjs.getAuthedHttpClient.call(void 0, );
1570
1570
  const payload = await http.post(
1571
1571
  "/api/v2/billing/checkout",
1572
1572
  {
@@ -1574,8 +1574,8 @@ async function handleRedeemCode(code, options) {
1574
1574
  }
1575
1575
  );
1576
1576
  const url = String(payload.url || payload.checkout_url || "");
1577
- if (!options.json && !options.noOpen && url) _chunkJYFLIQPEjs.openInBrowser.call(void 0, url);
1578
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0,
1577
+ if (!options.json && !options.noOpen && url) _chunk3UKVFI2Rjs.openInBrowser.call(void 0, url);
1578
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
1579
1579
  {
1580
1580
  ...payload,
1581
1581
  render: {
@@ -1636,14 +1636,14 @@ Examples:
1636
1636
  if (!Number.isSafeInteger(quantity) || quantity <= 0) {
1637
1637
  throw new Error("--quantity must be a positive safe integer.");
1638
1638
  }
1639
- const quote = await new (0, _chunkD5VWSR4Djs.DeeplineClient)().billing.quote({
1639
+ const quote = await new (0, _chunkEAQQTYJLjs.DeeplineClient)().billing.quote({
1640
1640
  quantity,
1641
1641
  sandbox_runtime: {
1642
1642
  timeout: options.sandboxTimeout,
1643
1643
  size: options.sandboxSize
1644
1644
  }
1645
1645
  });
1646
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0, quote, {
1646
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0, quote, {
1647
1647
  json: options.json,
1648
1648
  text: `Sandbox session ceiling: ${quote.maximum_credits} Deepline credits (${quote.quantity} session${quote.quantity === 1 ? "" : "s"}).
1649
1649
  ${quote.explanation}
@@ -1891,8 +1891,8 @@ Examples:
1891
1891
  new (0, _commander.Command)("trigger").description(
1892
1892
  "Evaluate capped automatic recharge and resume any pending purchase."
1893
1893
  ).option("--json", "Emit JSON output").action(async (options) => {
1894
- const result = await new (0, _chunkD5VWSR4Djs.DeeplineClient)().billing.autoRecharge.trigger();
1895
- _chunkJYFLIQPEjs.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
1894
+ const result = await new (0, _chunkEAQQTYJLjs.DeeplineClient)().billing.autoRecharge.trigger();
1895
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
1896
1896
  })
1897
1897
  );
1898
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(
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HttpClient,
3
3
  detectAgentRuntime
4
- } from "./chunk-JDDKJIZU.mjs";
4
+ } from "./chunk-7UVKC5G4.mjs";
5
5
  import {
6
6
  ConfigError
7
7
  } from "./chunk-4QF2K7TM.mjs";
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkGGQHOLH6js = require('./chunk-GGQHOLH6.js');
5
+ var _chunkPGHCBL5Gjs = require('./chunk-PGHCBL5G.js');
6
6
 
7
7
 
8
- var _chunkJIY25SUXjs = require('./chunk-JIY25SUX.js');
8
+ var _chunkY2SIHXYSjs = require('./chunk-Y2SIHXYS.js');
9
9
 
10
10
 
11
11
 
@@ -293,8 +293,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
293
293
  var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
294
294
  var defaultBrowserCommandRunner = childProcess;
295
295
  function getAuthedHttpClient() {
296
- const config = _chunkGGQHOLH6js.resolveConfig.call(void 0, );
297
- return { config, http: new (0, _chunkGGQHOLH6js.HttpClient)(config) };
296
+ const config = _chunkPGHCBL5Gjs.resolveConfig.call(void 0, );
297
+ return { config, http: new (0, _chunkPGHCBL5Gjs.HttpClient)(config) };
298
298
  }
299
299
  function stableOsUserId() {
300
300
  try {
@@ -634,7 +634,7 @@ function collectLocalEnvInfo() {
634
634
  os: `${process.platform} ${process.arch}`,
635
635
  node_version: process.version,
636
636
  home_dir: homeDir,
637
- agent_runtime: _chunkJIY25SUXjs.detectAgentRuntime.call(void 0, )
637
+ agent_runtime: _chunkY2SIHXYSjs.detectAgentRuntime.call(void 0, )
638
638
  };
639
639
  const env = process.env;
640
640
  const optional = {
@@ -881,9 +881,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
881
881
  }
882
882
  function withAgentCommandContext(value) {
883
883
  const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
884
- return _chunkJIY25SUXjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
884
+ return _chunkY2SIHXYSjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
885
885
  ...valueRecord,
886
- command_context: _chunkGGQHOLH6js.resolveCliCommandContext.call(void 0, )
886
+ command_context: _chunkPGHCBL5Gjs.resolveCliCommandContext.call(void 0, )
887
887
  } : value;
888
888
  }
889
889
  function printJson(value, fields) {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  rejectRestrictedFeedback
3
- } from "./chunk-XREZY4FA.mjs";
3
+ } from "./chunk-WFN6SB2B.mjs";
4
4
  import {
5
5
  getAuthedHttpClient,
6
6
  printCommandEnvelope
7
- } from "./chunk-HLEZQDEZ.mjs";
7
+ } from "./chunk-5T4SZPVO.mjs";
8
8
  import {
9
9
  agentSessionIdFromEnvironment
10
- } from "./chunk-JDDKJIZU.mjs";
10
+ } from "./chunk-7UVKC5G4.mjs";
11
11
 
12
12
  // src/cli/commands/sessions.ts
13
13
  import {