deepline 0.3.558 → 0.3.560

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 (157) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +14 -0
  2. package/dist/bundling-sources/sdk/src/index.ts +2 -0
  3. package/dist/bundling-sources/sdk/src/integrations.ts +62 -0
  4. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  5. package/dist/bundling-sources/shared_libs/observability/redaction.ts +23 -1
  6. package/dist/bundling-sources/shared_libs/observability/telemetry.ts +4 -1
  7. package/dist/cli/{auth-JJXTMFWH.mjs → auth-5DIOQ3MO.mjs} +5 -5
  8. package/dist/cli/auth-R2S7KYAA.js +44 -0
  9. package/dist/cli/{billing-RBFJMAI5.mjs → billing-K7EJAM55.mjs} +9 -9
  10. package/dist/cli/{billing-V3TJKUHY.js → billing-N5NS5CU6.js} +102 -102
  11. package/dist/cli/{chunk-FH55SB63.js → chunk-24GZT76F.js} +7 -7
  12. package/dist/cli/{chunk-NAJAAIEE.js → chunk-4CQ7LVRT.js} +48 -48
  13. package/dist/cli/{chunk-DDI4LNVC.js → chunk-4GRIMNDO.js} +41 -41
  14. package/dist/cli/{chunk-P3SLGOGA.mjs → chunk-4MAY2TA3.mjs} +2 -2
  15. package/dist/cli/{chunk-P2MVPTFJ.mjs → chunk-4PBYS3PS.mjs} +1 -1
  16. package/dist/cli/{chunk-YI4ADWTN.js → chunk-5CNHEUGJ.js} +12 -2
  17. package/dist/cli/{chunk-QGDU23YW.js → chunk-5QMEJPN5.js} +206 -180
  18. package/dist/cli/{chunk-6BDLYZYL.js → chunk-5VC6K4NJ.js} +26 -26
  19. package/dist/cli/{chunk-AL4QQKUK.mjs → chunk-5XMABMQU.mjs} +2 -2
  20. package/dist/cli/{chunk-4CTBC6Q7.js → chunk-7ZE6DF6B.js} +3 -3
  21. package/dist/cli/{chunk-XPSSXKBT.mjs → chunk-A4X2O75M.mjs} +2 -2
  22. package/dist/cli/{chunk-6PIQC2XE.mjs → chunk-A62A73U6.mjs} +3 -3
  23. package/dist/cli/{chunk-GAQ6VSRS.mjs → chunk-AMUMEL4C.mjs} +1 -1
  24. package/dist/cli/{chunk-I57JNBKA.mjs → chunk-BQ2Z6PSE.mjs} +5 -5
  25. package/dist/cli/{chunk-6LFPPAMD.js → chunk-BW4NVW5T.js} +3 -3
  26. package/dist/cli/{chunk-CEEUL7ER.mjs → chunk-CQJMFUMK.mjs} +1 -1
  27. package/dist/cli/{chunk-PAJLUB37.js → chunk-CQS5E6D2.js} +100 -100
  28. package/dist/cli/{chunk-DJAP2M5M.mjs → chunk-DOAD7ZCA.mjs} +1 -1
  29. package/dist/cli/{chunk-YVWINBZL.js → chunk-E76MM3SC.js} +20 -20
  30. package/dist/cli/{chunk-FF3BWNLL.mjs → chunk-F5CZ3Q2I.mjs} +150 -124
  31. package/dist/cli/{chunk-5V45LY6Y.js → chunk-FW2WRBZO.js} +9 -9
  32. package/dist/cli/{chunk-CB5DIX5K.mjs → chunk-G33LSF4T.mjs} +2 -2
  33. package/dist/cli/{chunk-BWWLLK56.mjs → chunk-GKONGPVW.mjs} +5 -5
  34. package/dist/cli/{chunk-2FFZ5SEU.mjs → chunk-GR5WG72L.mjs} +2 -2
  35. package/dist/cli/{chunk-KMNLER7F.mjs → chunk-GTRGJITW.mjs} +11 -11
  36. package/dist/cli/{chunk-BFM2RCC3.js → chunk-I7CQJ7JP.js} +2 -2
  37. package/dist/cli/{chunk-WJ7RY3PJ.mjs → chunk-JHS7WKRS.mjs} +3 -3
  38. package/dist/cli/{chunk-7Q5I4KEG.mjs → chunk-JQDVX3D4.mjs} +4 -4
  39. package/dist/cli/{chunk-RIQYBKHK.js → chunk-JYT6P2M2.js} +2 -2
  40. package/dist/cli/{chunk-XV4DHKZ2.js → chunk-KP4B3JOT.js} +13 -13
  41. package/dist/cli/{chunk-M4CJGF53.js → chunk-LMY7CGI7.js} +5 -5
  42. package/dist/cli/{chunk-I3PX6NGG.js → chunk-MBLPUJ5I.js} +5 -5
  43. package/dist/cli/{chunk-YJ46MJMT.js → chunk-MCGR7NG3.js} +6 -6
  44. package/dist/cli/{chunk-YBJSDL34.mjs → chunk-NNKZ4JYP.mjs} +5 -5
  45. package/dist/cli/{chunk-NADXF2C5.js → chunk-OPT36HX4.js} +53 -53
  46. package/dist/cli/{chunk-MAN4IEO4.mjs → chunk-OS3FDGKX.mjs} +4 -4
  47. package/dist/cli/{chunk-FCG42RQZ.js → chunk-Q77PM7U2.js} +20 -20
  48. package/dist/cli/{chunk-T6W7SKE7.mjs → chunk-RQKCNQ5Q.mjs} +2 -2
  49. package/dist/cli/{chunk-CG3R4ZFS.mjs → chunk-SCM6BR4Q.mjs} +1 -1
  50. package/dist/cli/{chunk-A5MRMCMW.js → chunk-TE2NSUT5.js} +5 -5
  51. package/dist/cli/{chunk-BHHCQGUY.mjs → chunk-UI7BBF2O.mjs} +5 -5
  52. package/dist/cli/{chunk-7Q3EXOLC.js → chunk-UTPANENL.js} +12 -12
  53. package/dist/cli/{chunk-4SVFZCCI.mjs → chunk-V7OFUYMO.mjs} +2 -2
  54. package/dist/cli/{chunk-OWOUDGHO.js → chunk-V7ZOAXZ4.js} +23 -23
  55. package/dist/cli/{chunk-BTKVXI3G.mjs → chunk-VACBPVIR.mjs} +12 -2
  56. package/dist/cli/{chunk-LIS6UJSC.mjs → chunk-WOZKGI6H.mjs} +1 -1
  57. package/dist/cli/{chunk-D4GCU735.mjs → chunk-XLM7L4UY.mjs} +1 -1
  58. package/dist/cli/{chunk-QGJ4DYGE.js → chunk-Y5CZWGO4.js} +1 -1
  59. package/dist/cli/{chunk-IS67LBNV.js → chunk-YDWFE7MX.js} +2 -2
  60. package/dist/cli/{chunk-67J4K4G2.js → chunk-Z4FWF237.js} +15 -15
  61. package/dist/cli/{chunk-ARGJDP77.mjs → chunk-ZJJUVUP6.mjs} +2 -2
  62. package/dist/cli/{chunk-6GBQNS6L.mjs → chunk-ZSDZ3Q5P.mjs} +1 -1
  63. package/dist/cli/{chunk-C7BQBKRZ.js → chunk-ZXB2Y3SG.js} +4 -4
  64. package/dist/cli/{chunk-VPJ663PV.js → chunk-ZY64JRBV.js} +10 -10
  65. package/dist/cli/command-docs.js +2 -2
  66. package/dist/cli/command-docs.mjs +1 -1
  67. package/dist/cli/{concurrent-runs-help-ZWWMHCK4.mjs → concurrent-runs-help-TCB2EKTR.mjs} +6 -6
  68. package/dist/cli/concurrent-runs-help-TKAZVMA4.js +22 -0
  69. package/dist/cli/{csv-V2FR4SO2.js → csv-DWC44DLD.js} +13 -13
  70. package/dist/cli/{csv-D76CXYOL.mjs → csv-R45YJYUO.mjs} +4 -4
  71. package/dist/cli/{db-B23O6Q4O.js → db-XIN3KF47.js} +27 -27
  72. package/dist/cli/{db-2D7PD7A3.mjs → db-XZXNKW7B.mjs} +6 -6
  73. package/dist/cli/{describe-3LG6VO3D.mjs → describe-6KSAHJBD.mjs} +18 -18
  74. package/dist/cli/describe-WLRAQDYC.js +50 -0
  75. package/dist/cli/describe-core.d.mts +2 -2
  76. package/dist/cli/describe-core.d.ts +2 -2
  77. package/dist/cli/{executions-4P4UBPMX.js → executions-C3UZLR7Y.js} +8 -8
  78. package/dist/cli/{executions-ORWO4SR4.mjs → executions-RSPQRWYL.mjs} +6 -6
  79. package/dist/cli/{feedback-AY47IRDD.mjs → feedback-7RCSKLW4.mjs} +6 -6
  80. package/dist/cli/{feedback-LPHCSOJT.js → feedback-A7WP67XL.js} +14 -14
  81. package/dist/cli/git-E6XV5MEY.js +26 -0
  82. package/dist/cli/{git-LQGZNBZM.mjs → git-JE6TFEK4.mjs} +5 -5
  83. package/dist/cli/index.js +147 -147
  84. package/dist/cli/index.mjs +46 -46
  85. package/dist/cli/{integrations-NEUZIBQT.mjs → integrations-DEU3ZW5P.mjs} +40 -7
  86. package/dist/cli/{integrations-QEOUALDR.js → integrations-L2D3EY3H.js} +48 -15
  87. package/dist/cli/{legacy-noops-PUO5VKHN.js → legacy-noops-AHTEO6EF.js} +9 -9
  88. package/dist/cli/{legacy-noops-4G3DXN57.mjs → legacy-noops-TL5PBCVQ.mjs} +6 -6
  89. package/dist/cli/{mcp-EWAZKABW.js → mcp-KXR7YJEG.js} +24 -24
  90. package/dist/cli/{mcp-USM2QUKK.mjs → mcp-PVRF5CGK.mjs} +4 -4
  91. package/dist/cli/{monitors-T6FJSZCP.mjs → monitors-BMGSROH3.mjs} +7 -7
  92. package/dist/cli/{monitors-2BI5J46A.js → monitors-YHF6RQGU.js} +100 -100
  93. package/dist/cli/{org-V6V3E7F7.js → org-IQJO6DJ7.js} +121 -121
  94. package/dist/cli/{org-BT45O64S.mjs → org-OO6LQPS6.mjs} +6 -6
  95. package/dist/cli/{outcomes-2T6W554M.mjs → outcomes-6QO6NEKO.mjs} +6 -6
  96. package/dist/cli/{outcomes-B6RPHM6M.js → outcomes-NAEAOCNT.js} +14 -14
  97. package/dist/cli/{play-CBBGJPRI.mjs → play-MZQSOYVV.mjs} +19 -19
  98. package/dist/cli/{play-YCFVGEWK.js → play-TYIBTW4E.js} +324 -324
  99. package/dist/cli/{providers-AGRUGBIY.js → providers-JDSSPMWH.js} +9 -9
  100. package/dist/cli/{providers-RHBUQFFO.mjs → providers-JR4OWXRX.mjs} +6 -6
  101. package/dist/cli/{quickstart-OPR5NLIQ.mjs → quickstart-JBX6BKGZ.mjs} +4 -4
  102. package/dist/cli/{quickstart-6N2KPWII.js → quickstart-T363ASLH.js} +6 -6
  103. package/dist/cli/{run-HAU2STMQ.mjs → run-6PWTGRJI.mjs} +23 -23
  104. package/dist/cli/{run-MMANMS4E.js → run-J3KWBIXA.js} +44 -44
  105. package/dist/cli/search-DPVHT5MJ.js +32 -0
  106. package/dist/cli/{search-TGWQMQ2C.mjs → search-XQG7UXAE.mjs} +7 -7
  107. package/dist/cli/{search-output-DZBYNJEO.mjs → search-output-DNONJFPF.mjs} +4 -4
  108. package/dist/cli/{search-output-VVM3DO2H.js → search-output-YZYLNDU6.js} +6 -6
  109. package/dist/cli/{secrets-Z6NEKNWM.mjs → secrets-MR7VXG74.mjs} +6 -6
  110. package/dist/cli/{secrets-V5WD552F.js → secrets-SCKPXIT7.js} +15 -15
  111. package/dist/cli/{sessions-C5GNXSPB.mjs → sessions-MPIJTGWQ.mjs} +6 -6
  112. package/dist/cli/sessions-VNWLXJR2.js +23 -0
  113. package/dist/cli/{settings-QUDVUIOJ.mjs → settings-Y5NW74ER.mjs} +12 -12
  114. package/dist/cli/{settings-EZPZXJDG.js → settings-YPKR5JFF.js} +85 -85
  115. package/dist/cli/{setup-BCJBVQTI.mjs → setup-5RJCLRZI.mjs} +9 -9
  116. package/dist/cli/{setup-QY5VVGWQ.js → setup-673Q3LGR.js} +49 -49
  117. package/dist/cli/{skills-LY2WZ22U.mjs → skills-2QVBD4LD.mjs} +7 -7
  118. package/dist/cli/skills-YGFFPGCR.js +37 -0
  119. package/dist/cli/tools-2BC7K3ZU.js +57 -0
  120. package/dist/cli/{tools-FNCTTFWA.mjs → tools-627KG34F.mjs} +17 -17
  121. package/dist/cli/{update-YKQAC4AQ.mjs → update-535TTARD.mjs} +9 -9
  122. package/dist/cli/update-HWEOSPDS.js +37 -0
  123. package/dist/cli/{views-5R5NVYHL.mjs → views-3M24ZTXA.mjs} +6 -6
  124. package/dist/cli/{views-NBTOBB67.js → views-FQNWZUWB.js} +21 -21
  125. package/dist/cli/{workflow-HBDW43GT.mjs → workflow-CN46XZPG.mjs} +7 -7
  126. package/dist/cli/{workflow-VNPT5VQS.js → workflow-H6F7WAOE.js} +17 -17
  127. package/dist/{client-BoayTB7p.d.ts → client-BSxuaObS.d.ts} +1 -1
  128. package/dist/{client-1ogYQqUw.d.mts → client-CnphYDTe.d.mts} +1 -1
  129. package/dist/{client-core-Ch8CXaX4.d.mts → client-core-DQOTt3yV.d.mts} +37 -2
  130. package/dist/{client-core-DySw9x_E.d.ts → client-core-Yad6-K7-.d.ts} +37 -2
  131. package/dist/index.d.mts +3 -3
  132. package/dist/index.d.ts +3 -3
  133. package/dist/index.js +9 -9
  134. package/dist/index.mjs +6 -6
  135. package/dist/install-integrity.json +118 -118
  136. package/dist/plays/play-description.d.mts +1 -1
  137. package/dist/plays/play-description.d.ts +1 -1
  138. package/dist/plays/run-request.d.mts +1 -1
  139. package/dist/plays/run-request.d.ts +1 -1
  140. package/dist/release.d.mts +1 -1
  141. package/dist/release.d.ts +1 -1
  142. package/dist/release.js +2 -2
  143. package/dist/release.mjs +1 -1
  144. package/dist/server.d.mts +2 -2
  145. package/dist/server.d.ts +2 -2
  146. package/dist/server.js +5 -5
  147. package/dist/server.mjs +3 -3
  148. package/package.json +1 -1
  149. package/dist/cli/auth-TWSGYOWI.js +0 -44
  150. package/dist/cli/concurrent-runs-help-4VRUNL3T.js +0 -22
  151. package/dist/cli/describe-QE4ITFPG.js +0 -50
  152. package/dist/cli/git-XXVGEPEM.js +0 -26
  153. package/dist/cli/search-7LMUBMDC.js +0 -32
  154. package/dist/cli/sessions-VYIPZBSR.js +0 -23
  155. package/dist/cli/skills-PKNTNDYL.js +0 -37
  156. package/dist/cli/tools-D6CKFZL3.js +0 -57
  157. package/dist/cli/update-E2H2DWH4.js +0 -37
@@ -1,21 +1,21 @@
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 _chunkI3PX6NGGjs = require('./chunk-I3PX6NGG.js');
4
- require('./chunk-NADXF2C5.js');
3
+ var _chunkMBLPUJ5Ijs = require('./chunk-MBLPUJ5I.js');
4
+ require('./chunk-OPT36HX4.js');
5
5
 
6
6
 
7
- var _chunkM4CJGF53js = require('./chunk-M4CJGF53.js');
7
+ var _chunkLMY7CGI7js = require('./chunk-LMY7CGI7.js');
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkQGDU23YWjs = require('./chunk-QGDU23YW.js');
12
+ var _chunk5QMEJPN5js = require('./chunk-5QMEJPN5.js');
13
13
  require('./chunk-4WAM6TLD.js');
14
14
  require('./chunk-MJTVX4QK.js');
15
15
  require('./chunk-PMH4GLMD.js');
16
16
 
17
17
 
18
- var _chunkYI4ADWTNjs = require('./chunk-YI4ADWTN.js');
18
+ var _chunk5CNHEUGJjs = require('./chunk-5CNHEUGJ.js');
19
19
 
20
20
 
21
21
  var _chunkH4ALLC2Xjs = require('./chunk-H4ALLC2X.js');
@@ -32,9 +32,9 @@ var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
32
32
 
33
33
 
34
34
 
35
- var _chunkYVWINBZLjs = require('./chunk-YVWINBZL.js');
36
- require('./chunk-4CTBC6Q7.js');
37
- require('./chunk-C7BQBKRZ.js');
35
+ var _chunkE76MM3SCjs = require('./chunk-E76MM3SC.js');
36
+ require('./chunk-7ZE6DF6B.js');
37
+ require('./chunk-ZXB2Y3SG.js');
38
38
 
39
39
 
40
40
 
@@ -44,7 +44,7 @@ require('./chunk-XNYIZMNQ.js');
44
44
 
45
45
  var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
46
46
  require('./chunk-CFJFUVX2.js');
47
- require('./chunk-QGJ4DYGE.js');
47
+ require('./chunk-Y5CZWGO4.js');
48
48
  require('./chunk-OG64RBAC.js');
49
49
  require('./chunk-COGTRVWW.js');
50
50
 
@@ -140,7 +140,7 @@ function reportBillingFailure(failure, options) {
140
140
  if (failure.next) {
141
141
  textLines.push(`Next: ${failure.next}`);
142
142
  }
143
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
143
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
144
144
  {
145
145
  ok: false,
146
146
  exitCode: failure.exitCode,
@@ -161,7 +161,7 @@ function parseTopUpCredits(raw) {
161
161
  return parsed;
162
162
  }
163
163
  function topUpIdempotencyKey(raw) {
164
- return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` : _chunkQGDU23YWjs.requireBillingIdempotencyKey.call(void 0, raw);
164
+ return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` : _chunk5QMEJPN5js.requireBillingIdempotencyKey.call(void 0, raw);
165
165
  }
166
166
  function targetBillingIdempotencyKey(raw) {
167
167
  return typeof raw === "string" ? raw : `cli_target_billing:${Date.now()}:${_crypto.randomUUID.call(void 0, )}`;
@@ -380,7 +380,7 @@ function defaultLedgerExportPath() {
380
380
  );
381
381
  }
382
382
  async function handleBalance(options) {
383
- const { http } = _chunkYVWINBZLjs.getAuthedHttpClient.call(void 0, );
383
+ const { http } = _chunkE76MM3SCjs.getAuthedHttpClient.call(void 0, );
384
384
  const payload = await http.get(
385
385
  "/api/v2/billing/balance"
386
386
  );
@@ -470,7 +470,7 @@ async function handleBalance(options) {
470
470
  ...options.verbose ? detail : [],
471
471
  ...lines.slice(1)
472
472
  ];
473
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
473
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
474
474
  {
475
475
  ...payload,
476
476
  ...recovery ? { recovery } : {},
@@ -506,7 +506,7 @@ async function handleUsageEvents(options) {
506
506
  );
507
507
  return;
508
508
  }
509
- const client = new (0, _chunkM4CJGF53js.DeeplineClient)();
509
+ const client = new (0, _chunkLMY7CGI7js.DeeplineClient)();
510
510
  let payload;
511
511
  try {
512
512
  payload = await client.billing.usageEvents({
@@ -537,7 +537,7 @@ async function handleUsageEvents(options) {
537
537
  ),
538
538
  ...nextPage ? [`Next page: ${nextPage}`] : []
539
539
  ];
540
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
540
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
541
541
  {
542
542
  ...payload,
543
543
  next: { page: nextPage },
@@ -559,7 +559,7 @@ async function handleUsage(options) {
559
559
  return;
560
560
  }
561
561
  if (options.events) return handleUsageEvents(options);
562
- const { http } = _chunkYVWINBZLjs.getAuthedHttpClient.call(void 0, );
562
+ const { http } = _chunkE76MM3SCjs.getAuthedHttpClient.call(void 0, );
563
563
  const params = new URLSearchParams();
564
564
  if (options.requestId !== void 0) {
565
565
  const requestId = options.requestId.trim();
@@ -643,7 +643,7 @@ async function handleUsage(options) {
643
643
  "No continuation is available for this view. Use deepline billing ledger export all for the full ledger."
644
644
  ] : []
645
645
  ];
646
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
646
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
647
647
  {
648
648
  ...payload,
649
649
  recent: {
@@ -657,7 +657,7 @@ async function handleUsage(options) {
657
657
  );
658
658
  }
659
659
  async function handleLimit(options) {
660
- const { http } = _chunkYVWINBZLjs.getAuthedHttpClient.call(void 0, );
660
+ const { http } = _chunkE76MM3SCjs.getAuthedHttpClient.call(void 0, );
661
661
  const payload = await http.get(
662
662
  "/api/v2/billing/limit"
663
663
  );
@@ -665,7 +665,7 @@ async function handleLimit(options) {
665
665
  `Monthly usage cap: ${_nullishCoalesce(payload.monthly_credits_limit, () => ( "(unknown)"))}`,
666
666
  "Enforcement: checked before new calls; in-flight work can exceed the cap."
667
667
  ] : ["Monthly usage cap: off"];
668
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
668
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
669
669
  {
670
670
  ...payload,
671
671
  render: { sections: [{ title: "billing limit", lines }] }
@@ -674,12 +674,12 @@ async function handleLimit(options) {
674
674
  );
675
675
  }
676
676
  async function handleSetLimit(credits, options) {
677
- const { http } = _chunkYVWINBZLjs.getAuthedHttpClient.call(void 0, );
677
+ const { http } = _chunkE76MM3SCjs.getAuthedHttpClient.call(void 0, );
678
678
  const payload = await http.request("/api/v2/billing/limit", {
679
679
  method: "PUT",
680
680
  body: { monthly_credits_limit: Number.parseInt(credits, 10) }
681
681
  });
682
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
682
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
683
683
  {
684
684
  ...payload,
685
685
  render: {
@@ -695,11 +695,11 @@ async function handleSetLimit(credits, options) {
695
695
  );
696
696
  }
697
697
  async function handleLimitOff(options) {
698
- const { http } = _chunkYVWINBZLjs.getAuthedHttpClient.call(void 0, );
698
+ const { http } = _chunkE76MM3SCjs.getAuthedHttpClient.call(void 0, );
699
699
  const payload = await http.request("/api/v2/billing/limit", {
700
700
  method: "DELETE"
701
701
  });
702
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
702
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
703
703
  {
704
704
  ...payload,
705
705
  render: {
@@ -719,7 +719,7 @@ async function exportLedger(http, outputPath, options) {
719
719
  let initialized = false;
720
720
  let pageNumber = 0;
721
721
  console.error(`Exporting billing ledger to ${outputPath}`);
722
- for await (const entries of _chunkQGDU23YWjs.iterateCursorPages.call(void 0, async (cursor) => {
722
+ for await (const entries of _chunk5QMEJPN5js.iterateCursorPages.call(void 0, async (cursor) => {
723
723
  pageNumber += 1;
724
724
  console.error(
725
725
  `Fetching page ${pageNumber}; ${summary.row_count} rows written.`
@@ -758,7 +758,7 @@ async function exportLedger(http, outputPath, options) {
758
758
  return summary;
759
759
  }
760
760
  async function handleHistory(options) {
761
- const { http } = _chunkYVWINBZLjs.getAuthedHttpClient.call(void 0, );
761
+ const { http } = _chunkE76MM3SCjs.getAuthedHttpClient.call(void 0, );
762
762
  const windows = {
763
763
  "1d": 86400,
764
764
  "1w": 604800,
@@ -770,10 +770,10 @@ async function handleHistory(options) {
770
770
  process.cwd(),
771
771
  "deepline",
772
772
  "data",
773
- _chunkYVWINBZLjs.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
773
+ _chunkE76MM3SCjs.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
774
774
  );
775
775
  const summary = await exportLedger(http, outputPath, { sinceAt });
776
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
776
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
777
777
  {
778
778
  output_path: outputPath,
779
779
  row_count: summary.row_count,
@@ -810,14 +810,14 @@ async function handleLedgerExportAll(options) {
810
810
  );
811
811
  return;
812
812
  }
813
- const { http } = _chunkYVWINBZLjs.getAuthedHttpClient.call(void 0, );
813
+ const { http } = _chunkE76MM3SCjs.getAuthedHttpClient.call(void 0, );
814
814
  const outputPath = options.output ? _path.resolve.call(void 0, String(options.output)) : defaultLedgerExportPath();
815
815
  const summary = await exportLedger(http, outputPath, {
816
816
  sinceAt,
817
817
  runId: options.runId,
818
818
  operation: options.operation
819
819
  });
820
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
820
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
821
821
  {
822
822
  output_path: outputPath,
823
823
  row_count: summary.row_count,
@@ -859,7 +859,7 @@ function targetPlanLine(plan) {
859
859
  return `${_nullishCoalesce(plan.display_name, () => ( plan.name))} (${_nullishCoalesce(plan.public_sku, () => ( plan.sku))}) | ${planPriceText(plan.recurring_price_usd, plan.interval)}${firstMonth}${bonus}${annual} | ${plan.included_credits} included credits/month | $${plan.purchased_credit_price_usd}/purchased credit | ${plan.acquisition_enabled ? "available" : "unavailable"}`;
860
860
  }
861
861
  async function handlePlans(options) {
862
- const client = new (0, _chunkM4CJGF53js.DeeplineClient)();
862
+ const client = new (0, _chunkLMY7CGI7js.DeeplineClient)();
863
863
  const payload = await client.billing.targetPlans(
864
864
  options.promoCode ? { promoCode: options.promoCode } : void 0
865
865
  );
@@ -885,8 +885,8 @@ async function handlePlans(options) {
885
885
  ...plans.length === 0 ? ["Plans: none available"] : ["Plans:", ...plans.map(targetPlanLine)],
886
886
  _optionalChain([promo, 'optionalAccess', _15 => _15.status]) === "applied" ? `Change plan: deepline billing change-plan <plan_sku> --promo-code ${promo.code}` : "Change plan: deepline billing change-plan <plan_sku>"
887
887
  ];
888
- const legacyPayload = _chunkYVWINBZLjs.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
889
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
888
+ const legacyPayload = _chunkE76MM3SCjs.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
889
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
890
890
  {
891
891
  ..._nullishCoalesce(legacyPayload, () => ( payload)),
892
892
  ...legacyPayload ? { target_billing: payload } : {},
@@ -896,7 +896,7 @@ async function handlePlans(options) {
896
896
  );
897
897
  }
898
898
  async function handleSubscribe(planVersionId, options) {
899
- const { http } = _chunkYVWINBZLjs.getAuthedHttpClient.call(void 0, );
899
+ const { http } = _chunkE76MM3SCjs.getAuthedHttpClient.call(void 0, );
900
900
  const payload = await http.request(
901
901
  "/api/v2/billing/subscription/checkout",
902
902
  {
@@ -905,8 +905,8 @@ async function handleSubscribe(planVersionId, options) {
905
905
  }
906
906
  );
907
907
  const url = String(payload.checkout_url || "");
908
- if (!options.json && options.open !== false && url) _chunkYVWINBZLjs.openInBrowser.call(void 0, url);
909
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
908
+ if (!options.json && options.open !== false && url) _chunkE76MM3SCjs.openInBrowser.call(void 0, url);
909
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
910
910
  {
911
911
  ...payload,
912
912
  render: {
@@ -922,7 +922,7 @@ async function handleSubscribe(planVersionId, options) {
922
922
  );
923
923
  }
924
924
  async function handleSubscriptionStatus(options) {
925
- const client = new (0, _chunkM4CJGF53js.DeeplineClient)();
925
+ const client = new (0, _chunkLMY7CGI7js.DeeplineClient)();
926
926
  const payload = await client.billing.subscription.status();
927
927
  const pools = _nullishCoalesce(payload.credit_pools, () => ( []));
928
928
  const lines = [
@@ -942,7 +942,7 @@ async function handleSubscriptionStatus(options) {
942
942
  ],
943
943
  `Assigned by: ${_nullishCoalesce(payload.assigned_by, () => ( "default"))}`
944
944
  ];
945
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
945
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
946
946
  {
947
947
  ...payload,
948
948
  render: { sections: [{ title: "billing subscription", lines }] }
@@ -951,7 +951,7 @@ async function handleSubscriptionStatus(options) {
951
951
  );
952
952
  }
953
953
  async function handleSubscriptionCancel(options) {
954
- const client = new (0, _chunkM4CJGF53js.DeeplineClient)();
954
+ const client = new (0, _chunkLMY7CGI7js.DeeplineClient)();
955
955
  const action = options.undo ? "undo_cancel" : "cancel";
956
956
  if (options.dryRun) {
957
957
  const status = await client.billing.subscription.status();
@@ -968,7 +968,7 @@ async function handleSubscriptionCancel(options) {
968
968
  return;
969
969
  }
970
970
  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.";
971
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
971
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
972
972
  {
973
973
  ok: true,
974
974
  dry_run: true,
@@ -1024,7 +1024,7 @@ async function handleSubscriptionCancel(options) {
1024
1024
  "Remaining credits are yours to keep \u2014 cancellation never removes credits.",
1025
1025
  "Undo with: deepline billing subscription cancel --undo"
1026
1026
  ];
1027
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1027
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
1028
1028
  {
1029
1029
  ok: true,
1030
1030
  ...result,
@@ -1078,7 +1078,7 @@ async function handleInvoices(options) {
1078
1078
  return;
1079
1079
  }
1080
1080
  }
1081
- const client = new (0, _chunkM4CJGF53js.DeeplineClient)();
1081
+ const client = new (0, _chunkLMY7CGI7js.DeeplineClient)();
1082
1082
  let payload;
1083
1083
  try {
1084
1084
  payload = await client.billing.invoices.list(
@@ -1107,7 +1107,7 @@ async function handleInvoices(options) {
1107
1107
  url: entry.url
1108
1108
  }))
1109
1109
  } : { ...payload, count: entries.length };
1110
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1110
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
1111
1111
  {
1112
1112
  ...envelope,
1113
1113
  render: { sections: [{ title: "billing invoices", lines }] }
@@ -1116,7 +1116,7 @@ async function handleInvoices(options) {
1116
1116
  );
1117
1117
  }
1118
1118
  async function handleCheckout(options) {
1119
- const { http } = _chunkYVWINBZLjs.getAuthedHttpClient.call(void 0, );
1119
+ const { http } = _chunkE76MM3SCjs.getAuthedHttpClient.call(void 0, );
1120
1120
  const payload = await http.post(
1121
1121
  "/api/v2/billing/checkout",
1122
1122
  {
@@ -1126,8 +1126,8 @@ async function handleCheckout(options) {
1126
1126
  }
1127
1127
  );
1128
1128
  const url = String(payload.url || payload.checkout_url || "");
1129
- if (!options.json && !options.noOpen && url) _chunkYVWINBZLjs.openInBrowser.call(void 0, url);
1130
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1129
+ if (!options.json && !options.noOpen && url) _chunkE76MM3SCjs.openInBrowser.call(void 0, url);
1130
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
1131
1131
  {
1132
1132
  ...payload,
1133
1133
  render: {
@@ -1172,7 +1172,7 @@ async function handleTopUp(creditsRaw, options) {
1172
1172
  return;
1173
1173
  }
1174
1174
  if (options.dryRun) {
1175
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1175
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
1176
1176
  {
1177
1177
  ok: true,
1178
1178
  dry_run: true,
@@ -1202,7 +1202,7 @@ async function handleTopUp(creditsRaw, options) {
1202
1202
  );
1203
1203
  return;
1204
1204
  }
1205
- const client = new (0, _chunkM4CJGF53js.DeeplineClient)();
1205
+ const client = new (0, _chunkLMY7CGI7js.DeeplineClient)();
1206
1206
  let payload;
1207
1207
  try {
1208
1208
  payload = await client.billing.topUpWithReceipt({
@@ -1219,7 +1219,7 @@ async function handleTopUp(creditsRaw, options) {
1219
1219
  return;
1220
1220
  }
1221
1221
  if (payload.status === "pending") {
1222
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1222
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
1223
1223
  {
1224
1224
  ok: true,
1225
1225
  ...payload,
@@ -1283,17 +1283,17 @@ async function handleTopUp(creditsRaw, options) {
1283
1283
  ]
1284
1284
  }
1285
1285
  };
1286
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, options.compact ? compactEnvelope : fullEnvelope, {
1286
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0, options.compact ? compactEnvelope : fullEnvelope, {
1287
1287
  json: options.json
1288
1288
  });
1289
1289
  }
1290
1290
  async function handleTargetStatus(options) {
1291
- const client = new (0, _chunkM4CJGF53js.DeeplineClient)();
1291
+ const client = new (0, _chunkLMY7CGI7js.DeeplineClient)();
1292
1292
  const payload = await client.billing.targetStatus();
1293
1293
  const balanceCommand = "deepline billing balance";
1294
1294
  const recentChargesCommand = "deepline billing usage --limit 5";
1295
1295
  const exactChargeCommand = "deepline billing usage --request-id <job_id>";
1296
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1296
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
1297
1297
  {
1298
1298
  ok: true,
1299
1299
  ...payload,
@@ -1331,13 +1331,13 @@ function formatComputeAmount(minutes, credits) {
1331
1331
  return `${time} ${minutes === 1 ? "minute" : "minutes"} (${cost} ${credits === 1 ? "credit" : "credits"})`;
1332
1332
  }
1333
1333
  async function handleIncludedCompute(options) {
1334
- const client = new (0, _chunkM4CJGF53js.DeeplineClient)();
1334
+ const client = new (0, _chunkLMY7CGI7js.DeeplineClient)();
1335
1335
  const payload = options.enable ? await client.billing.enableIncludedCompute({ includeOverage: true }) : await client.billing.includedCompute({ includeOverage: true });
1336
1336
  const rate = _nullishCoalesce(payload.credits_per_minute, () => ( 0));
1337
1337
  const includedCredits = _nullishCoalesce(payload.included_credits_used, () => ( payload.included_minutes_used * rate));
1338
1338
  const includedMinutes = payload.included_credits_used !== void 0 && rate > 0 ? includedCredits / rate : payload.included_minutes_used;
1339
1339
  const overage = payload.overage_credits;
1340
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1340
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
1341
1341
  {
1342
1342
  ok: true,
1343
1343
  ...payload,
@@ -1355,7 +1355,7 @@ async function handleIncludedCompute(options) {
1355
1355
  ] : [],
1356
1356
  `Standard sandbox price: ${formatComputeAmount(60, Math.round(rate * 60))}`,
1357
1357
  `Allowance resets: ${payload.period_end_at.slice(0, 10)} (UTC)`,
1358
- _chunkYI4ADWTNjs.PLAY_RUNTIME_PRICING_NOTE,
1358
+ _chunk5CNHEUGJjs.PLAY_RUNTIME_PRICING_NOTE,
1359
1359
  _chunkH4ALLC2Xjs.PRICING_PAGE_NOTE
1360
1360
  ] : payload.status === "off" ? [
1361
1361
  ..._optionalChain([payload, 'access', _21 => _21.database, 'optionalAccess', _22 => _22.enabled]) ? [
@@ -1364,7 +1364,7 @@ async function handleIncludedCompute(options) {
1364
1364
  "Included compute: off; Play compute is billed at provider cost.",
1365
1365
  `Allowance if enabled: ${formatComputeAmount(payload.plan.included_minutes, payload.plan.included_minutes * payload.plan.credits_per_minute)} per month`,
1366
1366
  `Standard sandbox price if enabled: ${formatComputeAmount(60, Math.round(payload.plan.credits_per_minute * 60))}`,
1367
- _chunkYI4ADWTNjs.PLAY_RUNTIME_PRICING_NOTE,
1367
+ _chunk5CNHEUGJjs.PLAY_RUNTIME_PRICING_NOTE,
1368
1368
  "Run deepline billing compute --enable to turn on included compute. It cannot be turned off again.",
1369
1369
  _chunkH4ALLC2Xjs.PRICING_PAGE_NOTE
1370
1370
  ] : ["Included compute is not available for this org yet."]
@@ -1376,8 +1376,8 @@ async function handleIncludedCompute(options) {
1376
1376
  );
1377
1377
  }
1378
1378
  async function handleEntitlements(options) {
1379
- const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().billing.entitlements();
1380
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1379
+ const payload = await new (0, _chunkLMY7CGI7js.DeeplineClient)().billing.entitlements();
1380
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
1381
1381
  {
1382
1382
  ok: true,
1383
1383
  ...payload,
@@ -1387,7 +1387,7 @@ async function handleEntitlements(options) {
1387
1387
  title: "billing entitlements",
1388
1388
  lines: [
1389
1389
  `Plan: ${_nullishCoalesce(_optionalChain([payload, 'access', _23 => _23.plan, 'optionalAccess', _24 => _24.name]), () => ( "Legacy billing"))}`,
1390
- ..._chunkI3PX6NGGjs.concurrentRunsLine.call(void 0, payload) ? [`Concurrent runs: ${_chunkI3PX6NGGjs.concurrentRunsLine.call(void 0, payload)}`] : [],
1390
+ ..._chunkMBLPUJ5Ijs.concurrentRunsLine.call(void 0, payload) ? [`Concurrent runs: ${_chunkMBLPUJ5Ijs.concurrentRunsLine.call(void 0, payload)}`] : [],
1391
1391
  ...Object.entries(payload.benefits).flatMap(
1392
1392
  ([key, grant]) => "value" in grant ? [
1393
1393
  `${key}: ${grant.status}, ${JSON.stringify(grant.value)}${grant.expiresAt === void 0 ? "" : `, expires ${new Date(grant.expiresAt).toISOString()}`}`
@@ -1412,7 +1412,7 @@ async function handleEntitlements(options) {
1412
1412
  );
1413
1413
  }
1414
1414
  async function handleAutoRechargeStatus(options) {
1415
- const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().billing.autoRecharge.get();
1415
+ const payload = await new (0, _chunkLMY7CGI7js.DeeplineClient)().billing.autoRecharge.get();
1416
1416
  const state = payload.available ? payload.enabled ? "on" : "off" : "unavailable";
1417
1417
  const lines = [
1418
1418
  `State: ${state}`,
@@ -1422,7 +1422,7 @@ async function handleAutoRechargeStatus(options) {
1422
1422
  `Automatic credit purchase cap: ${payload.purchase_limit_credits} credits per rolling 30 days`
1423
1423
  ] : []
1424
1424
  ];
1425
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1425
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
1426
1426
  {
1427
1427
  ok: true,
1428
1428
  ...payload,
@@ -1471,7 +1471,7 @@ async function handleAutoRechargeSet(options) {
1471
1471
  }
1472
1472
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1473
1473
  if (options.dryRun) {
1474
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1474
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
1475
1475
  {
1476
1476
  ok: true,
1477
1477
  dry_run: true,
@@ -1492,7 +1492,7 @@ async function handleAutoRechargeSet(options) {
1492
1492
  );
1493
1493
  return;
1494
1494
  }
1495
- const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().billing.autoRecharge.update({
1495
+ const payload = await new (0, _chunkLMY7CGI7js.DeeplineClient)().billing.autoRecharge.update({
1496
1496
  enabled: true,
1497
1497
  thresholdCredits,
1498
1498
  refillToCredits,
@@ -1500,7 +1500,7 @@ async function handleAutoRechargeSet(options) {
1500
1500
  ...rollingLimitCredits !== void 0 ? { purchaseLimitCredits: rollingLimitCredits } : {},
1501
1501
  idempotencyKey
1502
1502
  });
1503
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1503
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
1504
1504
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1505
1505
  { json: options.json }
1506
1506
  );
@@ -1508,7 +1508,7 @@ async function handleAutoRechargeSet(options) {
1508
1508
  async function handleAutoRechargeOff(options) {
1509
1509
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1510
1510
  if (options.dryRun) {
1511
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1511
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
1512
1512
  {
1513
1513
  ok: true,
1514
1514
  dry_run: true,
@@ -1523,11 +1523,11 @@ async function handleAutoRechargeOff(options) {
1523
1523
  );
1524
1524
  return;
1525
1525
  }
1526
- const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().billing.autoRecharge.update({
1526
+ const payload = await new (0, _chunkLMY7CGI7js.DeeplineClient)().billing.autoRecharge.update({
1527
1527
  enabled: false,
1528
1528
  idempotencyKey
1529
1529
  });
1530
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1530
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
1531
1531
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1532
1532
  { json: options.json }
1533
1533
  );
@@ -1553,18 +1553,18 @@ function savedCardLines(cards, hasMore) {
1553
1553
  async function handleCardsList(options) {
1554
1554
  const limit = options.limit === void 0 ? void 0 : Number(options.limit);
1555
1555
  if (limit !== void 0 && (!Number.isInteger(limit) || limit < 1 || limit > 100)) {
1556
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1556
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
1557
1557
  { ok: false, error: "--limit must be a whole number from 1 to 100." },
1558
1558
  { json: options.json }
1559
1559
  );
1560
1560
  process.exitCode = 1;
1561
1561
  return;
1562
1562
  }
1563
- const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().billing.cards.list({
1563
+ const payload = await new (0, _chunkLMY7CGI7js.DeeplineClient)().billing.cards.list({
1564
1564
  ...limit !== void 0 ? { limit } : {},
1565
1565
  ...options.cursor ? { cursor: options.cursor } : {}
1566
1566
  });
1567
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1567
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
1568
1568
  {
1569
1569
  ok: true,
1570
1570
  ...payload,
@@ -1582,8 +1582,8 @@ async function handleCardsList(options) {
1582
1582
  }
1583
1583
  async function handleCardsAdd(options) {
1584
1584
  const makeDefault = options.makeDefault === true;
1585
- const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().billing.cards.add({ makeDefault });
1586
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1585
+ const payload = await new (0, _chunkLMY7CGI7js.DeeplineClient)().billing.cards.add({ makeDefault });
1586
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
1587
1587
  {
1588
1588
  ok: true,
1589
1589
  make_default: makeDefault,
@@ -1608,7 +1608,7 @@ async function handleCardChange(action, cardId, options) {
1608
1608
  const changeId = _nullishCoalesce(options.changeId, () => ( _crypto.randomUUID.call(void 0, )));
1609
1609
  const path = `/api/v2/billing/payment-methods/${action}`;
1610
1610
  if (options.dryRun) {
1611
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1611
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
1612
1612
  {
1613
1613
  ok: true,
1614
1614
  dry_run: true,
@@ -1623,9 +1623,9 @@ async function handleCardChange(action, cardId, options) {
1623
1623
  );
1624
1624
  return;
1625
1625
  }
1626
- const cards = new (0, _chunkM4CJGF53js.DeeplineClient)().billing.cards;
1626
+ const cards = new (0, _chunkLMY7CGI7js.DeeplineClient)().billing.cards;
1627
1627
  const payload = action === "default" ? await cards.setDefault({ cardId, changeId }) : await cards.remove({ cardId, changeId });
1628
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1628
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
1629
1629
  {
1630
1630
  ...payload,
1631
1631
  render: {
@@ -1659,11 +1659,11 @@ async function handleBuyCredits(creditsRaw, options) {
1659
1659
  return;
1660
1660
  }
1661
1661
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1662
- const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().billing.purchaseCredits({
1662
+ const payload = await new (0, _chunkLMY7CGI7js.DeeplineClient)().billing.purchaseCredits({
1663
1663
  credits,
1664
1664
  idempotencyKey
1665
1665
  });
1666
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1666
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
1667
1667
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1668
1668
  { json: options.json }
1669
1669
  );
@@ -1699,7 +1699,7 @@ async function handleTopUpRecover(creditsRaw, options) {
1699
1699
  return;
1700
1700
  }
1701
1701
  if (options.dryRun) {
1702
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1702
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
1703
1703
  {
1704
1704
  ok: true,
1705
1705
  dry_run: true,
@@ -1712,12 +1712,12 @@ async function handleTopUpRecover(creditsRaw, options) {
1712
1712
  );
1713
1713
  return;
1714
1714
  }
1715
- const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().billing.recoverCreditPurchase({
1715
+ const payload = await new (0, _chunkLMY7CGI7js.DeeplineClient)().billing.recoverCreditPurchase({
1716
1716
  credits,
1717
1717
  orgId: options.orgId,
1718
1718
  idempotencyKey: options.idempotencyKey
1719
1719
  });
1720
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1720
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
1721
1721
  { ok: true, idempotency_key: options.idempotencyKey, ...payload },
1722
1722
  { json: options.json }
1723
1723
  );
@@ -1734,7 +1734,7 @@ async function handleTargetPlan(planSku, options) {
1734
1734
  );
1735
1735
  return;
1736
1736
  }
1737
- const targetPlanSku = _nullishCoalesce([..._chunkQGDU23YWjs.PUBLIC_PLAN_SKUS, ...COMPATIBLE_PLAN_SKUS].find(
1737
+ const targetPlanSku = _nullishCoalesce([..._chunk5QMEJPN5js.PUBLIC_PLAN_SKUS, ...COMPATIBLE_PLAN_SKUS].find(
1738
1738
  (sku) => sku === planSku
1739
1739
  ), () => ( // Retained Canary requests may replay their original operation. The API
1740
1740
  // rejects new acquisition even when a caller supplies an idempotency key.
@@ -1744,14 +1744,14 @@ async function handleTargetPlan(planSku, options) {
1744
1744
  {
1745
1745
  exitCode: 2,
1746
1746
  code: "INVALID_PLAN",
1747
- message: `Plan must be one of ${_chunkQGDU23YWjs.PUBLIC_PLAN_SKUS.join(", ")}. Run deepline billing plans to see workspace availability.`
1747
+ message: `Plan must be one of ${_chunk5QMEJPN5js.PUBLIC_PLAN_SKUS.join(", ")}. Run deepline billing plans to see workspace availability.`
1748
1748
  },
1749
1749
  options
1750
1750
  );
1751
1751
  return;
1752
1752
  }
1753
1753
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1754
- const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().billing.transitionPlan({
1754
+ const payload = await new (0, _chunkLMY7CGI7js.DeeplineClient)().billing.transitionPlan({
1755
1755
  action: "start_or_change",
1756
1756
  targetPlanSku,
1757
1757
  ...options.billingEmail ? { billingEmail: options.billingEmail } : {},
@@ -1760,14 +1760,14 @@ async function handleTargetPlan(planSku, options) {
1760
1760
  ...options.invoice ? { paymentMethod: "invoice" } : {},
1761
1761
  idempotencyKey
1762
1762
  });
1763
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1763
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
1764
1764
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1765
1765
  { json: options.json }
1766
1766
  );
1767
1767
  }
1768
1768
  async function handleBillingDetailsShow(options) {
1769
- const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().billing.getDetails();
1770
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1769
+ const payload = await new (0, _chunkLMY7CGI7js.DeeplineClient)().billing.getDetails();
1770
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1771
1771
  }
1772
1772
  async function handleBillingDetailsSet(options) {
1773
1773
  const separator = _nullishCoalesce(_optionalChain([options, 'access', _28 => _28.taxId, 'optionalAccess', _29 => _29.indexOf, 'call', _30 => _30(":")]), () => ( -1));
@@ -1784,7 +1784,7 @@ async function handleBillingDetailsSet(options) {
1784
1784
  );
1785
1785
  return;
1786
1786
  }
1787
- const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().billing.setDetails({
1787
+ const payload = await new (0, _chunkLMY7CGI7js.DeeplineClient)().billing.setDetails({
1788
1788
  ...options.name !== void 0 ? { name: options.name } : {},
1789
1789
  ...options.line1 !== void 0 ? {
1790
1790
  address: {
@@ -1803,28 +1803,28 @@ async function handleBillingDetailsSet(options) {
1803
1803
  }
1804
1804
  } : {}
1805
1805
  });
1806
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1806
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1807
1807
  }
1808
1808
  async function handleTargetPlanCancellation(options) {
1809
1809
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1810
- const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().billing.transitionPlan({
1810
+ const payload = await new (0, _chunkLMY7CGI7js.DeeplineClient)().billing.transitionPlan({
1811
1811
  action: options.undo ? "undo_cancel" : "cancel",
1812
1812
  idempotencyKey
1813
1813
  });
1814
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1814
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
1815
1815
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1816
1816
  { json: options.json }
1817
1817
  );
1818
1818
  }
1819
1819
  async function handleTargetPortal(options) {
1820
- const payload = await new (0, _chunkM4CJGF53js.DeeplineClient)().billing.portalSession(
1820
+ const payload = await new (0, _chunkLMY7CGI7js.DeeplineClient)().billing.portalSession(
1821
1821
  options.billingAddress ? { flow: "customer_update" } : void 0
1822
1822
  );
1823
- if (!options.json && !options.noOpen) _chunkYVWINBZLjs.openInBrowser.call(void 0, payload.url);
1824
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1823
+ if (!options.json && !options.noOpen) _chunkE76MM3SCjs.openInBrowser.call(void 0, payload.url);
1824
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1825
1825
  }
1826
1826
  async function handleRedeemCode(code, options) {
1827
- const { http } = _chunkYVWINBZLjs.getAuthedHttpClient.call(void 0, );
1827
+ const { http } = _chunkE76MM3SCjs.getAuthedHttpClient.call(void 0, );
1828
1828
  const payload = await http.post(
1829
1829
  "/api/v2/billing/checkout",
1830
1830
  {
@@ -1832,8 +1832,8 @@ async function handleRedeemCode(code, options) {
1832
1832
  }
1833
1833
  );
1834
1834
  const url = String(payload.url || payload.checkout_url || "");
1835
- if (!options.json && !options.noOpen && url) _chunkYVWINBZLjs.openInBrowser.call(void 0, url);
1836
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1835
+ if (!options.json && !options.noOpen && url) _chunkE76MM3SCjs.openInBrowser.call(void 0, url);
1836
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
1837
1837
  {
1838
1838
  ...payload,
1839
1839
  render: {
@@ -1894,14 +1894,14 @@ Examples:
1894
1894
  if (!Number.isSafeInteger(quantity) || quantity <= 0) {
1895
1895
  throw new Error("--quantity must be a positive safe integer.");
1896
1896
  }
1897
- const quote = await new (0, _chunkM4CJGF53js.DeeplineClient)().billing.quote({
1897
+ const quote = await new (0, _chunkLMY7CGI7js.DeeplineClient)().billing.quote({
1898
1898
  quantity,
1899
1899
  sandbox_runtime: {
1900
1900
  timeout: options.sandboxTimeout,
1901
1901
  size: options.sandboxSize
1902
1902
  }
1903
1903
  });
1904
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, quote, {
1904
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0, quote, {
1905
1905
  json: options.json,
1906
1906
  text: `Sandbox session ceiling: ${quote.maximum_credits} Deepline credits (${quote.quantity} session${quote.quantity === 1 ? "" : "s"}).
1907
1907
  ${quote.explanation}
@@ -1930,9 +1930,9 @@ Examples:
1930
1930
  billing.command("reuse").description(
1931
1931
  "Show recorded reused tool results for this org; no credit estimate."
1932
1932
  ).option("--json", "Return the org reuse summary as JSON").action(async (options) => {
1933
- const { http } = _chunkYVWINBZLjs.getAuthedHttpClient.call(void 0, );
1933
+ const { http } = _chunkE76MM3SCjs.getAuthedHttpClient.call(void 0, );
1934
1934
  const payload = await http.get("/api/v2/usage/reuse");
1935
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
1935
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0,
1936
1936
  {
1937
1937
  status: "ok",
1938
1938
  data: payload,
@@ -2173,8 +2173,8 @@ Examples:
2173
2173
  new (0, _commander.Command)("trigger").description(
2174
2174
  "Evaluate capped automatic recharge and resume any pending purchase."
2175
2175
  ).option("--json", "Emit JSON output").action(async (options) => {
2176
- const result = await new (0, _chunkM4CJGF53js.DeeplineClient)().billing.autoRecharge.trigger();
2177
- _chunkYVWINBZLjs.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
2176
+ const result = await new (0, _chunkLMY7CGI7js.DeeplineClient)().billing.autoRecharge.trigger();
2177
+ _chunkE76MM3SCjs.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
2178
2178
  })
2179
2179
  );
2180
2180
  billing.command("cards").description("List, add, choose the default of, and remove saved cards.").addHelpText(
@@ -2208,7 +2208,7 @@ Examples:
2208
2208
  );
2209
2209
  billing.command("change-plan").description("Start or change the target billing plan.").argument(
2210
2210
  "<plan_sku>",
2211
- `${_chunkQGDU23YWjs.PUBLIC_PLAN_SKUS.join(", ")}. Run deepline billing plans to see workspace availability.`
2211
+ `${_chunk5QMEJPN5js.PUBLIC_PLAN_SKUS.join(", ")}. Run deepline billing plans to see workspace availability.`
2212
2212
  ).option(
2213
2213
  "--billing-email <email>",
2214
2214
  "Invoice recipient: required with --invoice, otherwise used when the account has no billing email"