deepline 0.3.468 → 0.3.470
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.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +0 -5
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-errors.ts +0 -9
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-identity-claims.ts +2 -31
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-priority-execution.ts +0 -39
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/admission/postgres-adapter.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +42 -10
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +17 -8
- package/dist/cli/auth-4DBOZZDX.js +41 -0
- package/dist/cli/{auth-CXQRTOBC.mjs → auth-7J52UEWO.mjs} +5 -5
- package/dist/cli/{billing-JSIPTXM6.js → billing-ASNWVDQG.js} +79 -79
- package/dist/cli/{billing-HDKO5VQI.mjs → billing-ORB3UZ73.mjs} +6 -6
- package/dist/cli/{chunk-NZQPALPW.mjs → chunk-262PYO4I.mjs} +2 -2
- package/dist/cli/{chunk-ERQJLYIS.mjs → chunk-3P4WOCRB.mjs} +5 -5
- package/dist/cli/{chunk-UNLLMHY7.mjs → chunk-3XLJPLXZ.mjs} +1 -1
- package/dist/cli/{chunk-U37BWQZH.js → chunk-44UR3BU2.js} +9 -9
- package/dist/cli/{chunk-RSMFUWCP.js → chunk-4BQQ3Q3J.js} +8 -8
- package/dist/cli/{chunk-YD2KV7RT.js → chunk-57F5VKHV.js} +7 -7
- package/dist/cli/{chunk-TNOTKGZC.mjs → chunk-5ADROBCY.mjs} +2 -2
- package/dist/cli/{chunk-UU4GMU7A.mjs → chunk-6B7XLHIE.mjs} +4 -4
- package/dist/cli/{chunk-ECY6QP3M.js → chunk-6R5UKWRW.js} +16 -16
- package/dist/cli/{chunk-SFWU7IJJ.mjs → chunk-7WILY2XM.mjs} +2 -2
- package/dist/cli/{chunk-OAF5U6SN.js → chunk-A7THVTRN.js} +51 -51
- package/dist/cli/{chunk-LQ2KVMOD.js → chunk-AGIEKE3L.js} +4 -4
- package/dist/cli/{chunk-X4U763KU.mjs → chunk-BWLXHUKH.mjs} +3 -3
- package/dist/cli/{chunk-54SVGPMK.js → chunk-C7EA2VNR.js} +5 -5
- package/dist/cli/{chunk-YI6TIURR.js → chunk-CNQBCLQP.js} +3 -3
- package/dist/cli/{chunk-GCHTTVC7.mjs → chunk-CTDWQYBW.mjs} +2 -2
- package/dist/cli/{chunk-CXYMJSRQ.mjs → chunk-DSOTGAXS.mjs} +1 -1
- package/dist/cli/{chunk-747ZYPXB.js → chunk-EM2E7YIS.js} +53 -53
- package/dist/cli/{chunk-FLH4D33O.js → chunk-ETTUFFBS.js} +36 -36
- package/dist/cli/{chunk-QI2LOENC.js → chunk-F2XK4UN6.js} +3 -3
- package/dist/cli/{chunk-FPFBYOR6.mjs → chunk-F4L7WMLK.mjs} +2 -2
- package/dist/cli/{chunk-AXTZID4V.js → chunk-F6OB5L74.js} +6 -6
- package/dist/cli/{chunk-ZA6UUGOZ.js → chunk-GDFO3ERN.js} +2 -2
- package/dist/cli/{chunk-EOWMLNCV.mjs → chunk-GLSFZYZB.mjs} +1 -1
- package/dist/cli/{chunk-F52TY2QC.js → chunk-KBNAI5BY.js} +21 -21
- package/dist/cli/{chunk-QWJ3V3GI.js → chunk-MXAB4W6E.js} +8 -8
- package/dist/cli/{chunk-VPCS5KOF.js → chunk-N72VIY7R.js} +2 -2
- package/dist/cli/{chunk-37Z2W7OS.js → chunk-NNCDHMCT.js} +26 -26
- package/dist/cli/{chunk-EXXXRDCC.js → chunk-NSAKJQLX.js} +1 -1
- package/dist/cli/{chunk-2NE3LCEA.js → chunk-ORO2GFH4.js} +5 -5
- package/dist/cli/{chunk-WNS5YEZN.mjs → chunk-PJX7BA7T.mjs} +2 -2
- package/dist/cli/{chunk-54CKAYKK.js → chunk-PWXHZPHK.js} +10 -10
- package/dist/cli/{chunk-NOQRM7LV.mjs → chunk-QG7UPPOK.mjs} +2 -2
- package/dist/cli/{chunk-7PBIHKB4.mjs → chunk-QW6HNDS7.mjs} +1 -1
- package/dist/cli/{chunk-QKGHYF7A.mjs → chunk-RVQ333NB.mjs} +1 -1
- package/dist/cli/{chunk-CHD7NMZD.mjs → chunk-SETIOXN4.mjs} +1 -1
- package/dist/cli/{chunk-F3YSH2CY.mjs → chunk-SHB7BUNQ.mjs} +3 -3
- package/dist/cli/{chunk-UA42Q7R3.mjs → chunk-SOME764Z.mjs} +4 -4
- package/dist/cli/{chunk-PZZNEIE3.mjs → chunk-SV3B6KW4.mjs} +5 -5
- package/dist/cli/{chunk-6PN2RUXL.mjs → chunk-SXQZYTUW.mjs} +1 -1
- package/dist/cli/{chunk-DQHMXKDT.js → chunk-VBKN6ISP.js} +93 -93
- package/dist/cli/{chunk-TVDBGEVP.mjs → chunk-VL7OL7YR.mjs} +1 -1
- package/dist/cli/{chunk-ZJRHPVJU.js → chunk-Y4OE46HH.js} +6 -6
- package/dist/cli/{chunk-DDUCF63F.mjs → chunk-YBDQUVDE.mjs} +10 -10
- package/dist/cli/{chunk-Q7NNU6KB.mjs → chunk-YFKOA4HW.mjs} +4 -4
- package/dist/cli/{chunk-5RXVB6UK.js → chunk-YTFCKCII.js} +3 -3
- package/dist/cli/{csv-H2656YID.mjs → csv-D3JPZVUN.mjs} +4 -4
- package/dist/cli/{csv-EIXI4D7F.js → csv-FSXDIWBP.js} +13 -13
- package/dist/cli/{db-CABNKWAS.mjs → db-3UWDQXLF.mjs} +6 -6
- package/dist/cli/{db-7AQJE7CP.js → db-DZQUPWI3.js} +27 -27
- package/dist/cli/describe-2ENX4O3U.js +48 -0
- package/dist/cli/{describe-5RUFO5ZR.mjs → describe-APG2GVFG.mjs} +17 -17
- package/dist/cli/{executions-OHOBXCPD.js → executions-BFAPMPG2.js} +8 -8
- package/dist/cli/{executions-4GUJEBEC.mjs → executions-TDUX3575.mjs} +6 -6
- package/dist/cli/{feedback-JIJWTK2H.js → feedback-2KNPCYTH.js} +8 -8
- package/dist/cli/{feedback-N3CSL3OV.mjs → feedback-BMV7PUDL.mjs} +4 -4
- package/dist/cli/{git-Z5DTMOAQ.mjs → git-KBVONNE5.mjs} +5 -5
- package/dist/cli/git-LUW3GBSD.js +25 -0
- package/dist/cli/index.js +135 -135
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-XTLI64KX.mjs → legacy-noops-GZDRRUFE.mjs} +5 -5
- package/dist/cli/{legacy-noops-ZEJRXMTS.js → legacy-noops-LE6LJO7F.js} +8 -8
- package/dist/cli/{monitors-3MDJEWZB.mjs → monitors-CW22L3VL.mjs} +7 -7
- package/dist/cli/{monitors-E3TTJB3S.js → monitors-PGBHMKOU.js} +91 -91
- package/dist/cli/{org-722NMZ4T.js → org-3V2VAH5D.js} +72 -72
- package/dist/cli/{org-AJUXWQ6P.mjs → org-K5C23LAV.mjs} +6 -6
- package/dist/cli/{pages-CPCWTTPD.js → pages-2F73VVWC.js} +17 -17
- package/dist/cli/{pages-Y6AC7PBJ.mjs → pages-7V2C7GWU.mjs} +6 -6
- package/dist/cli/{play-ACQ54HNN.js → play-62KSZGJQ.js} +304 -304
- package/dist/cli/{play-TYHP7UNL.mjs → play-VT7TPJUH.mjs} +17 -17
- package/dist/cli/{providers-UDG7V7WU.js → providers-3SI3QBT3.js} +9 -9
- package/dist/cli/{providers-BSXILLKJ.mjs → providers-LX562YG7.mjs} +6 -6
- package/dist/cli/{quickstart-ZW7VOPFN.js → quickstart-5HA5IFTB.js} +6 -6
- package/dist/cli/{quickstart-66MNFG2G.mjs → quickstart-ADE7FV26.mjs} +4 -4
- package/dist/cli/{run-KPS3O2VA.js → run-4ZV4UDKP.js} +36 -36
- package/dist/cli/{run-JSAI5PRF.mjs → run-OITZJ6QZ.mjs} +22 -22
- package/dist/cli/{search-GQGB3JIE.mjs → search-BI5VZQMD.mjs} +7 -7
- package/dist/cli/search-PXFM3MGW.js +32 -0
- package/dist/cli/{secrets-LGGKGT3A.mjs → secrets-A2R36AZ6.mjs} +6 -6
- package/dist/cli/{secrets-UVQKUCBM.js → secrets-UAKNTMYB.js} +15 -15
- package/dist/cli/{sessions-MPZ42HUS.js → sessions-3JM3OXME.js} +6 -6
- package/dist/cli/{sessions-JYPDKPVA.mjs → sessions-PPOFUFBW.mjs} +5 -5
- package/dist/cli/{settings-E7VTIIRT.js → settings-C4M5HOD4.js} +78 -78
- package/dist/cli/{settings-5UVSGJ72.mjs → settings-PZA6TBOL.mjs} +11 -11
- package/dist/cli/{setup-FM6VKRER.mjs → setup-245XVTBR.mjs} +9 -9
- package/dist/cli/{setup-NQ5BQ3ZY.js → setup-TY2OSI6D.js} +44 -44
- package/dist/cli/skills-UYNRYDDI.js +31 -0
- package/dist/cli/{skills-WOCXEASX.mjs → skills-ZAN23KLR.mjs} +7 -7
- package/dist/cli/{tools-QZRDZS45.mjs → tools-GG4KDQBM.mjs} +16 -16
- package/dist/cli/tools-OBESOBG7.js +55 -0
- package/dist/cli/update-2VMXTKBN.js +33 -0
- package/dist/cli/{update-OW2FEGGG.mjs → update-XKXIL6DU.mjs} +9 -9
- package/dist/cli/{workflow-QRGUHBKL.mjs → workflow-LVQVTFUJ.mjs} +7 -7
- package/dist/cli/{workflow-QJM2ELOS.js → workflow-VN7M3D2U.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +96 -96
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-MDWIVGZQ.js +0 -41
- package/dist/cli/describe-ODBO2AMO.js +0 -48
- package/dist/cli/git-TWNEROIX.js +0 -25
- package/dist/cli/search-JUXEQ5HQ.js +0 -32
- package/dist/cli/skills-OLIMNV35.js +0 -31
- package/dist/cli/tools-IZNJT6RU.js +0 -55
- package/dist/cli/update-4JVVAYI4.js +0 -33
|
@@ -1,10 +1,10 @@
|
|
|
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
|
|
3
|
+
var _chunkORO2GFH4js = require('./chunk-ORO2GFH4.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkY4OE46HHjs = require('./chunk-Y4OE46HH.js');
|
|
8
8
|
require('./chunk-E4CABWXL.js');
|
|
9
9
|
require('./chunk-JKVRBCZL.js');
|
|
10
10
|
require('./chunk-NMU3VR5U.js');
|
|
@@ -15,9 +15,9 @@ require('./chunk-XDVT3GOM.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
19
|
-
require('./chunk-
|
|
20
|
-
require('./chunk-
|
|
18
|
+
var _chunk57F5VKHVjs = require('./chunk-57F5VKHV.js');
|
|
19
|
+
require('./chunk-CNQBCLQP.js');
|
|
20
|
+
require('./chunk-AGIEKE3L.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -26,7 +26,7 @@ require('./chunk-XNYIZMNQ.js');
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
29
|
-
require('./chunk-
|
|
29
|
+
require('./chunk-NSAKJQLX.js');
|
|
30
30
|
require('./chunk-OG64RBAC.js');
|
|
31
31
|
require('./chunk-COGTRVWW.js');
|
|
32
32
|
|
|
@@ -75,7 +75,7 @@ function reportBillingFailure(failure, options) {
|
|
|
75
75
|
if (failure.next) {
|
|
76
76
|
textLines.push(`Next: ${failure.next}`);
|
|
77
77
|
}
|
|
78
|
-
|
|
78
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
79
79
|
{
|
|
80
80
|
ok: false,
|
|
81
81
|
exitCode: failure.exitCode,
|
|
@@ -96,7 +96,7 @@ function parseTopUpCredits(raw) {
|
|
|
96
96
|
return parsed;
|
|
97
97
|
}
|
|
98
98
|
function topUpIdempotencyKey(raw) {
|
|
99
|
-
return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` :
|
|
99
|
+
return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` : _chunkY4OE46HHjs.requireBillingIdempotencyKey.call(void 0, raw);
|
|
100
100
|
}
|
|
101
101
|
function targetBillingIdempotencyKey(raw) {
|
|
102
102
|
return typeof raw === "string" ? raw : `cli_target_billing:${Date.now()}:${_crypto.randomUUID.call(void 0, )}`;
|
|
@@ -315,7 +315,7 @@ function defaultLedgerExportPath() {
|
|
|
315
315
|
);
|
|
316
316
|
}
|
|
317
317
|
async function handleBalance(options) {
|
|
318
|
-
const { http } =
|
|
318
|
+
const { http } = _chunk57F5VKHVjs.getAuthedHttpClient.call(void 0, );
|
|
319
319
|
const payload = await http.get(
|
|
320
320
|
"/api/v2/billing/balance"
|
|
321
321
|
);
|
|
@@ -399,7 +399,7 @@ async function handleBalance(options) {
|
|
|
399
399
|
...options.verbose ? detail : [],
|
|
400
400
|
...lines.slice(1)
|
|
401
401
|
];
|
|
402
|
-
|
|
402
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
403
403
|
{
|
|
404
404
|
...payload,
|
|
405
405
|
...recovery ? { recovery } : {},
|
|
@@ -435,7 +435,7 @@ async function handleUsageEvents(options) {
|
|
|
435
435
|
);
|
|
436
436
|
return;
|
|
437
437
|
}
|
|
438
|
-
const client = new (0,
|
|
438
|
+
const client = new (0, _chunkORO2GFH4js.DeeplineClient)();
|
|
439
439
|
let payload;
|
|
440
440
|
try {
|
|
441
441
|
payload = await client.billing.usageEvents({
|
|
@@ -466,7 +466,7 @@ async function handleUsageEvents(options) {
|
|
|
466
466
|
),
|
|
467
467
|
...nextPage ? [`Next page: ${nextPage}`] : []
|
|
468
468
|
];
|
|
469
|
-
|
|
469
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
470
470
|
{
|
|
471
471
|
...payload,
|
|
472
472
|
next: { page: nextPage },
|
|
@@ -477,7 +477,7 @@ async function handleUsageEvents(options) {
|
|
|
477
477
|
}
|
|
478
478
|
async function handleUsage(options) {
|
|
479
479
|
if (options.events) return handleUsageEvents(options);
|
|
480
|
-
const { http } =
|
|
480
|
+
const { http } = _chunk57F5VKHVjs.getAuthedHttpClient.call(void 0, );
|
|
481
481
|
const params = new URLSearchParams();
|
|
482
482
|
if (options.requestId !== void 0) {
|
|
483
483
|
const requestId = options.requestId.trim();
|
|
@@ -558,7 +558,7 @@ async function handleUsage(options) {
|
|
|
558
558
|
"No continuation is available for this view. Use deepline billing ledger export all for the full ledger."
|
|
559
559
|
] : []
|
|
560
560
|
];
|
|
561
|
-
|
|
561
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
562
562
|
{
|
|
563
563
|
...payload,
|
|
564
564
|
recent: {
|
|
@@ -572,7 +572,7 @@ async function handleUsage(options) {
|
|
|
572
572
|
);
|
|
573
573
|
}
|
|
574
574
|
async function handleLimit(options) {
|
|
575
|
-
const { http } =
|
|
575
|
+
const { http } = _chunk57F5VKHVjs.getAuthedHttpClient.call(void 0, );
|
|
576
576
|
const payload = await http.get(
|
|
577
577
|
"/api/v2/billing/limit"
|
|
578
578
|
);
|
|
@@ -580,7 +580,7 @@ async function handleLimit(options) {
|
|
|
580
580
|
`Monthly usage cap: ${_nullishCoalesce(payload.monthly_credits_limit, () => ( "(unknown)"))}`,
|
|
581
581
|
"Enforcement: checked before new calls; in-flight work can exceed the cap."
|
|
582
582
|
] : ["Monthly usage cap: off"];
|
|
583
|
-
|
|
583
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
584
584
|
{
|
|
585
585
|
...payload,
|
|
586
586
|
render: { sections: [{ title: "billing limit", lines }] }
|
|
@@ -589,12 +589,12 @@ async function handleLimit(options) {
|
|
|
589
589
|
);
|
|
590
590
|
}
|
|
591
591
|
async function handleSetLimit(credits, options) {
|
|
592
|
-
const { http } =
|
|
592
|
+
const { http } = _chunk57F5VKHVjs.getAuthedHttpClient.call(void 0, );
|
|
593
593
|
const payload = await http.request("/api/v2/billing/limit", {
|
|
594
594
|
method: "PUT",
|
|
595
595
|
body: { monthly_credits_limit: Number.parseInt(credits, 10) }
|
|
596
596
|
});
|
|
597
|
-
|
|
597
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
598
598
|
{
|
|
599
599
|
...payload,
|
|
600
600
|
render: {
|
|
@@ -610,11 +610,11 @@ async function handleSetLimit(credits, options) {
|
|
|
610
610
|
);
|
|
611
611
|
}
|
|
612
612
|
async function handleLimitOff(options) {
|
|
613
|
-
const { http } =
|
|
613
|
+
const { http } = _chunk57F5VKHVjs.getAuthedHttpClient.call(void 0, );
|
|
614
614
|
const payload = await http.request("/api/v2/billing/limit", {
|
|
615
615
|
method: "DELETE"
|
|
616
616
|
});
|
|
617
|
-
|
|
617
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
618
618
|
{
|
|
619
619
|
...payload,
|
|
620
620
|
render: {
|
|
@@ -634,7 +634,7 @@ async function exportLedger(http, outputPath, options) {
|
|
|
634
634
|
let initialized = false;
|
|
635
635
|
let pageNumber = 0;
|
|
636
636
|
console.error(`Exporting billing ledger to ${outputPath}`);
|
|
637
|
-
for await (const entries of
|
|
637
|
+
for await (const entries of _chunkY4OE46HHjs.iterateCursorPages.call(void 0, async (cursor) => {
|
|
638
638
|
pageNumber += 1;
|
|
639
639
|
console.error(
|
|
640
640
|
`Fetching page ${pageNumber}; ${summary.row_count} rows written.`
|
|
@@ -673,7 +673,7 @@ async function exportLedger(http, outputPath, options) {
|
|
|
673
673
|
return summary;
|
|
674
674
|
}
|
|
675
675
|
async function handleHistory(options) {
|
|
676
|
-
const { http } =
|
|
676
|
+
const { http } = _chunk57F5VKHVjs.getAuthedHttpClient.call(void 0, );
|
|
677
677
|
const windows = {
|
|
678
678
|
"1d": 86400,
|
|
679
679
|
"1w": 604800,
|
|
@@ -685,10 +685,10 @@ async function handleHistory(options) {
|
|
|
685
685
|
process.cwd(),
|
|
686
686
|
"deepline",
|
|
687
687
|
"data",
|
|
688
|
-
|
|
688
|
+
_chunk57F5VKHVjs.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
|
|
689
689
|
);
|
|
690
690
|
const summary = await exportLedger(http, outputPath, { sinceAt });
|
|
691
|
-
|
|
691
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
692
692
|
{
|
|
693
693
|
output_path: outputPath,
|
|
694
694
|
row_count: summary.row_count,
|
|
@@ -725,14 +725,14 @@ async function handleLedgerExportAll(options) {
|
|
|
725
725
|
);
|
|
726
726
|
return;
|
|
727
727
|
}
|
|
728
|
-
const { http } =
|
|
728
|
+
const { http } = _chunk57F5VKHVjs.getAuthedHttpClient.call(void 0, );
|
|
729
729
|
const outputPath = options.output ? _path.resolve.call(void 0, String(options.output)) : defaultLedgerExportPath();
|
|
730
730
|
const summary = await exportLedger(http, outputPath, {
|
|
731
731
|
sinceAt,
|
|
732
732
|
runId: options.runId,
|
|
733
733
|
operation: options.operation
|
|
734
734
|
});
|
|
735
|
-
|
|
735
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
736
736
|
{
|
|
737
737
|
output_path: outputPath,
|
|
738
738
|
row_count: summary.row_count,
|
|
@@ -771,7 +771,7 @@ function targetPlanLine(plan) {
|
|
|
771
771
|
return `${plan.name} (${plan.sku}) | ${planPriceText(plan.recurring_price_usd, plan.interval)} | ${plan.included_credits} included credits/month | $${plan.purchased_credit_price_usd}/purchased credit | ${plan.acquisition_enabled ? "available" : "unavailable"}`;
|
|
772
772
|
}
|
|
773
773
|
async function handlePlans(options) {
|
|
774
|
-
const client = new (0,
|
|
774
|
+
const client = new (0, _chunkORO2GFH4js.DeeplineClient)();
|
|
775
775
|
const payload = await client.billing.targetPlans();
|
|
776
776
|
const listedCurrentPlan = payload.plans.find(
|
|
777
777
|
(plan) => plan.sku === payload.current_plan_sku
|
|
@@ -784,8 +784,8 @@ async function handlePlans(options) {
|
|
|
784
784
|
...payload.plans.length === 0 ? ["Plans: none available"] : ["Plans:", ...payload.plans.map(targetPlanLine)],
|
|
785
785
|
"Change plan: deepline billing change-plan <plan_sku>"
|
|
786
786
|
];
|
|
787
|
-
const legacyPayload =
|
|
788
|
-
|
|
787
|
+
const legacyPayload = _chunk57F5VKHVjs.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
|
|
788
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
789
789
|
{
|
|
790
790
|
..._nullishCoalesce(legacyPayload, () => ( payload)),
|
|
791
791
|
...legacyPayload ? { target_billing: payload } : {},
|
|
@@ -795,7 +795,7 @@ async function handlePlans(options) {
|
|
|
795
795
|
);
|
|
796
796
|
}
|
|
797
797
|
async function handleSubscribe(planVersionId, options) {
|
|
798
|
-
const { http } =
|
|
798
|
+
const { http } = _chunk57F5VKHVjs.getAuthedHttpClient.call(void 0, );
|
|
799
799
|
const payload = await http.request(
|
|
800
800
|
"/api/v2/billing/subscription/checkout",
|
|
801
801
|
{
|
|
@@ -804,8 +804,8 @@ async function handleSubscribe(planVersionId, options) {
|
|
|
804
804
|
}
|
|
805
805
|
);
|
|
806
806
|
const url = String(payload.checkout_url || "");
|
|
807
|
-
if (!options.json && options.open !== false && url)
|
|
808
|
-
|
|
807
|
+
if (!options.json && options.open !== false && url) _chunk57F5VKHVjs.openInBrowser.call(void 0, url);
|
|
808
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
809
809
|
{
|
|
810
810
|
...payload,
|
|
811
811
|
render: {
|
|
@@ -821,7 +821,7 @@ async function handleSubscribe(planVersionId, options) {
|
|
|
821
821
|
);
|
|
822
822
|
}
|
|
823
823
|
async function handleSubscriptionStatus(options) {
|
|
824
|
-
const client = new (0,
|
|
824
|
+
const client = new (0, _chunkORO2GFH4js.DeeplineClient)();
|
|
825
825
|
const payload = await client.billing.subscription.status();
|
|
826
826
|
const pools = _nullishCoalesce(payload.credit_pools, () => ( []));
|
|
827
827
|
const lines = [
|
|
@@ -841,7 +841,7 @@ async function handleSubscriptionStatus(options) {
|
|
|
841
841
|
],
|
|
842
842
|
`Assigned by: ${_nullishCoalesce(payload.assigned_by, () => ( "default"))}`
|
|
843
843
|
];
|
|
844
|
-
|
|
844
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
845
845
|
{
|
|
846
846
|
...payload,
|
|
847
847
|
render: { sections: [{ title: "billing subscription", lines }] }
|
|
@@ -850,7 +850,7 @@ async function handleSubscriptionStatus(options) {
|
|
|
850
850
|
);
|
|
851
851
|
}
|
|
852
852
|
async function handleSubscriptionCancel(options) {
|
|
853
|
-
const client = new (0,
|
|
853
|
+
const client = new (0, _chunkORO2GFH4js.DeeplineClient)();
|
|
854
854
|
const action = options.undo ? "undo_cancel" : "cancel";
|
|
855
855
|
if (options.dryRun) {
|
|
856
856
|
const status = await client.billing.subscription.status();
|
|
@@ -867,7 +867,7 @@ async function handleSubscriptionCancel(options) {
|
|
|
867
867
|
return;
|
|
868
868
|
}
|
|
869
869
|
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.";
|
|
870
|
-
|
|
870
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
871
871
|
{
|
|
872
872
|
ok: true,
|
|
873
873
|
dry_run: true,
|
|
@@ -922,7 +922,7 @@ async function handleSubscriptionCancel(options) {
|
|
|
922
922
|
"Remaining credits are yours to keep \u2014 cancellation never removes credits.",
|
|
923
923
|
"Undo with: deepline billing subscription cancel --undo"
|
|
924
924
|
];
|
|
925
|
-
|
|
925
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
926
926
|
{
|
|
927
927
|
ok: true,
|
|
928
928
|
...result,
|
|
@@ -976,7 +976,7 @@ async function handleInvoices(options) {
|
|
|
976
976
|
return;
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
|
-
const client = new (0,
|
|
979
|
+
const client = new (0, _chunkORO2GFH4js.DeeplineClient)();
|
|
980
980
|
let payload;
|
|
981
981
|
try {
|
|
982
982
|
payload = await client.billing.invoices.list(
|
|
@@ -1005,7 +1005,7 @@ async function handleInvoices(options) {
|
|
|
1005
1005
|
url: entry.url
|
|
1006
1006
|
}))
|
|
1007
1007
|
} : { ...payload, count: entries.length };
|
|
1008
|
-
|
|
1008
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
1009
1009
|
{
|
|
1010
1010
|
...envelope,
|
|
1011
1011
|
render: { sections: [{ title: "billing invoices", lines }] }
|
|
@@ -1014,7 +1014,7 @@ async function handleInvoices(options) {
|
|
|
1014
1014
|
);
|
|
1015
1015
|
}
|
|
1016
1016
|
async function handleCheckout(options) {
|
|
1017
|
-
const { http } =
|
|
1017
|
+
const { http } = _chunk57F5VKHVjs.getAuthedHttpClient.call(void 0, );
|
|
1018
1018
|
const payload = await http.post(
|
|
1019
1019
|
"/api/v2/billing/checkout",
|
|
1020
1020
|
{
|
|
@@ -1024,8 +1024,8 @@ async function handleCheckout(options) {
|
|
|
1024
1024
|
}
|
|
1025
1025
|
);
|
|
1026
1026
|
const url = String(payload.url || payload.checkout_url || "");
|
|
1027
|
-
if (!options.json && !options.noOpen && url)
|
|
1028
|
-
|
|
1027
|
+
if (!options.json && !options.noOpen && url) _chunk57F5VKHVjs.openInBrowser.call(void 0, url);
|
|
1028
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
1029
1029
|
{
|
|
1030
1030
|
...payload,
|
|
1031
1031
|
render: {
|
|
@@ -1070,7 +1070,7 @@ async function handleTopUp(creditsRaw, options) {
|
|
|
1070
1070
|
return;
|
|
1071
1071
|
}
|
|
1072
1072
|
if (options.dryRun) {
|
|
1073
|
-
|
|
1073
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
1074
1074
|
{
|
|
1075
1075
|
ok: true,
|
|
1076
1076
|
dry_run: true,
|
|
@@ -1100,7 +1100,7 @@ async function handleTopUp(creditsRaw, options) {
|
|
|
1100
1100
|
);
|
|
1101
1101
|
return;
|
|
1102
1102
|
}
|
|
1103
|
-
const client = new (0,
|
|
1103
|
+
const client = new (0, _chunkORO2GFH4js.DeeplineClient)();
|
|
1104
1104
|
let payload;
|
|
1105
1105
|
try {
|
|
1106
1106
|
payload = await client.billing.topUpWithReceipt({
|
|
@@ -1117,7 +1117,7 @@ async function handleTopUp(creditsRaw, options) {
|
|
|
1117
1117
|
return;
|
|
1118
1118
|
}
|
|
1119
1119
|
if (payload.status === "pending") {
|
|
1120
|
-
|
|
1120
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
1121
1121
|
{
|
|
1122
1122
|
ok: true,
|
|
1123
1123
|
...payload,
|
|
@@ -1181,17 +1181,17 @@ async function handleTopUp(creditsRaw, options) {
|
|
|
1181
1181
|
]
|
|
1182
1182
|
}
|
|
1183
1183
|
};
|
|
1184
|
-
|
|
1184
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0, options.compact ? compactEnvelope : fullEnvelope, {
|
|
1185
1185
|
json: options.json
|
|
1186
1186
|
});
|
|
1187
1187
|
}
|
|
1188
1188
|
async function handleTargetStatus(options) {
|
|
1189
|
-
const client = new (0,
|
|
1189
|
+
const client = new (0, _chunkORO2GFH4js.DeeplineClient)();
|
|
1190
1190
|
const payload = await client.billing.targetStatus();
|
|
1191
1191
|
const balanceCommand = "deepline billing balance";
|
|
1192
1192
|
const recentChargesCommand = "deepline billing usage --limit 5";
|
|
1193
1193
|
const exactChargeCommand = "deepline billing usage --request-id <job_id>";
|
|
1194
|
-
|
|
1194
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
1195
1195
|
{
|
|
1196
1196
|
ok: true,
|
|
1197
1197
|
...payload,
|
|
@@ -1227,10 +1227,10 @@ function formatComputeMinutes(minutes) {
|
|
|
1227
1227
|
return minutes < 120 ? `${Number(minutes.toFixed(1)).toLocaleString("en-US")} minutes` : `${Number((minutes / 60).toFixed(1)).toLocaleString("en-US")} hours`;
|
|
1228
1228
|
}
|
|
1229
1229
|
async function handleIncludedCompute(options) {
|
|
1230
|
-
const client = new (0,
|
|
1230
|
+
const client = new (0, _chunkORO2GFH4js.DeeplineClient)();
|
|
1231
1231
|
const payload = options.enable ? await client.billing.enableIncludedCompute() : await client.billing.includedCompute();
|
|
1232
1232
|
const plan = `${formatComputeMinutes(payload.plan.included_minutes)} included per month, then ${Math.round(payload.plan.credits_per_minute * 60)} credits/hour`;
|
|
1233
|
-
|
|
1233
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
1234
1234
|
{
|
|
1235
1235
|
ok: true,
|
|
1236
1236
|
...payload,
|
|
@@ -1256,8 +1256,8 @@ async function handleIncludedCompute(options) {
|
|
|
1256
1256
|
);
|
|
1257
1257
|
}
|
|
1258
1258
|
async function handleEntitlements(options) {
|
|
1259
|
-
const payload = await new (0,
|
|
1260
|
-
|
|
1259
|
+
const payload = await new (0, _chunkORO2GFH4js.DeeplineClient)().billing.entitlements();
|
|
1260
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
1261
1261
|
{
|
|
1262
1262
|
ok: true,
|
|
1263
1263
|
...payload,
|
|
@@ -1290,7 +1290,7 @@ async function handleEntitlements(options) {
|
|
|
1290
1290
|
);
|
|
1291
1291
|
}
|
|
1292
1292
|
async function handleAutoRechargeStatus(options) {
|
|
1293
|
-
const payload = await new (0,
|
|
1293
|
+
const payload = await new (0, _chunkORO2GFH4js.DeeplineClient)().billing.autoRecharge.get();
|
|
1294
1294
|
const state = payload.available ? payload.enabled ? "on" : "off" : "unavailable";
|
|
1295
1295
|
const lines = [
|
|
1296
1296
|
`State: ${state}`,
|
|
@@ -1300,7 +1300,7 @@ async function handleAutoRechargeStatus(options) {
|
|
|
1300
1300
|
`Automatic credit purchase cap: ${payload.purchase_limit_credits} credits per rolling 30 days`
|
|
1301
1301
|
] : []
|
|
1302
1302
|
];
|
|
1303
|
-
|
|
1303
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
1304
1304
|
{
|
|
1305
1305
|
ok: true,
|
|
1306
1306
|
...payload,
|
|
@@ -1349,7 +1349,7 @@ async function handleAutoRechargeSet(options) {
|
|
|
1349
1349
|
}
|
|
1350
1350
|
const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
|
|
1351
1351
|
if (options.dryRun) {
|
|
1352
|
-
|
|
1352
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
1353
1353
|
{
|
|
1354
1354
|
ok: true,
|
|
1355
1355
|
dry_run: true,
|
|
@@ -1370,7 +1370,7 @@ async function handleAutoRechargeSet(options) {
|
|
|
1370
1370
|
);
|
|
1371
1371
|
return;
|
|
1372
1372
|
}
|
|
1373
|
-
const payload = await new (0,
|
|
1373
|
+
const payload = await new (0, _chunkORO2GFH4js.DeeplineClient)().billing.autoRecharge.update({
|
|
1374
1374
|
enabled: true,
|
|
1375
1375
|
thresholdCredits,
|
|
1376
1376
|
refillToCredits,
|
|
@@ -1378,7 +1378,7 @@ async function handleAutoRechargeSet(options) {
|
|
|
1378
1378
|
...rollingLimitCredits !== void 0 ? { purchaseLimitCredits: rollingLimitCredits } : {},
|
|
1379
1379
|
idempotencyKey
|
|
1380
1380
|
});
|
|
1381
|
-
|
|
1381
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
1382
1382
|
{ ok: true, idempotency_key: idempotencyKey, ...payload },
|
|
1383
1383
|
{ json: options.json }
|
|
1384
1384
|
);
|
|
@@ -1386,7 +1386,7 @@ async function handleAutoRechargeSet(options) {
|
|
|
1386
1386
|
async function handleAutoRechargeOff(options) {
|
|
1387
1387
|
const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
|
|
1388
1388
|
if (options.dryRun) {
|
|
1389
|
-
|
|
1389
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
1390
1390
|
{
|
|
1391
1391
|
ok: true,
|
|
1392
1392
|
dry_run: true,
|
|
@@ -1401,11 +1401,11 @@ async function handleAutoRechargeOff(options) {
|
|
|
1401
1401
|
);
|
|
1402
1402
|
return;
|
|
1403
1403
|
}
|
|
1404
|
-
const payload = await new (0,
|
|
1404
|
+
const payload = await new (0, _chunkORO2GFH4js.DeeplineClient)().billing.autoRecharge.update({
|
|
1405
1405
|
enabled: false,
|
|
1406
1406
|
idempotencyKey
|
|
1407
1407
|
});
|
|
1408
|
-
|
|
1408
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
1409
1409
|
{ ok: true, idempotency_key: idempotencyKey, ...payload },
|
|
1410
1410
|
{ json: options.json }
|
|
1411
1411
|
);
|
|
@@ -1424,11 +1424,11 @@ async function handleBuyCredits(creditsRaw, options) {
|
|
|
1424
1424
|
return;
|
|
1425
1425
|
}
|
|
1426
1426
|
const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
|
|
1427
|
-
const payload = await new (0,
|
|
1427
|
+
const payload = await new (0, _chunkORO2GFH4js.DeeplineClient)().billing.purchaseCredits({
|
|
1428
1428
|
credits,
|
|
1429
1429
|
idempotencyKey
|
|
1430
1430
|
});
|
|
1431
|
-
|
|
1431
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
1432
1432
|
{ ok: true, idempotency_key: idempotencyKey, ...payload },
|
|
1433
1433
|
{ json: options.json }
|
|
1434
1434
|
);
|
|
@@ -1464,7 +1464,7 @@ async function handleTopUpRecover(creditsRaw, options) {
|
|
|
1464
1464
|
return;
|
|
1465
1465
|
}
|
|
1466
1466
|
if (options.dryRun) {
|
|
1467
|
-
|
|
1467
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
1468
1468
|
{
|
|
1469
1469
|
ok: true,
|
|
1470
1470
|
dry_run: true,
|
|
@@ -1477,12 +1477,12 @@ async function handleTopUpRecover(creditsRaw, options) {
|
|
|
1477
1477
|
);
|
|
1478
1478
|
return;
|
|
1479
1479
|
}
|
|
1480
|
-
const payload = await new (0,
|
|
1480
|
+
const payload = await new (0, _chunkORO2GFH4js.DeeplineClient)().billing.recoverCreditPurchase({
|
|
1481
1481
|
credits,
|
|
1482
1482
|
orgId: options.orgId,
|
|
1483
1483
|
idempotencyKey: options.idempotencyKey
|
|
1484
1484
|
});
|
|
1485
|
-
|
|
1485
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
1486
1486
|
{ ok: true, idempotency_key: options.idempotencyKey, ...payload },
|
|
1487
1487
|
{ json: options.json }
|
|
1488
1488
|
);
|
|
@@ -1502,37 +1502,37 @@ async function handleTargetPlan(planSku, options) {
|
|
|
1502
1502
|
return;
|
|
1503
1503
|
}
|
|
1504
1504
|
const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
|
|
1505
|
-
const payload = await new (0,
|
|
1505
|
+
const payload = await new (0, _chunkORO2GFH4js.DeeplineClient)().billing.transitionPlan({
|
|
1506
1506
|
action: "start_or_change",
|
|
1507
1507
|
targetPlanSku: planSku,
|
|
1508
1508
|
...options.billingEmail ? { billingEmail: options.billingEmail } : {},
|
|
1509
1509
|
idempotencyKey
|
|
1510
1510
|
});
|
|
1511
|
-
|
|
1511
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
1512
1512
|
{ ok: true, idempotency_key: idempotencyKey, ...payload },
|
|
1513
1513
|
{ json: options.json }
|
|
1514
1514
|
);
|
|
1515
1515
|
}
|
|
1516
1516
|
async function handleTargetPlanCancellation(options) {
|
|
1517
1517
|
const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
|
|
1518
|
-
const payload = await new (0,
|
|
1518
|
+
const payload = await new (0, _chunkORO2GFH4js.DeeplineClient)().billing.transitionPlan({
|
|
1519
1519
|
action: options.undo ? "undo_cancel" : "cancel",
|
|
1520
1520
|
idempotencyKey
|
|
1521
1521
|
});
|
|
1522
|
-
|
|
1522
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
1523
1523
|
{ ok: true, idempotency_key: idempotencyKey, ...payload },
|
|
1524
1524
|
{ json: options.json }
|
|
1525
1525
|
);
|
|
1526
1526
|
}
|
|
1527
1527
|
async function handleTargetPortal(options) {
|
|
1528
|
-
const payload = await new (0,
|
|
1528
|
+
const payload = await new (0, _chunkORO2GFH4js.DeeplineClient)().billing.portalSession(
|
|
1529
1529
|
options.billingAddress ? { flow: "customer_update" } : void 0
|
|
1530
1530
|
);
|
|
1531
|
-
if (!options.json && !options.noOpen)
|
|
1532
|
-
|
|
1531
|
+
if (!options.json && !options.noOpen) _chunk57F5VKHVjs.openInBrowser.call(void 0, payload.url);
|
|
1532
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
|
|
1533
1533
|
}
|
|
1534
1534
|
async function handleRedeemCode(code, options) {
|
|
1535
|
-
const { http } =
|
|
1535
|
+
const { http } = _chunk57F5VKHVjs.getAuthedHttpClient.call(void 0, );
|
|
1536
1536
|
const payload = await http.post(
|
|
1537
1537
|
"/api/v2/billing/checkout",
|
|
1538
1538
|
{
|
|
@@ -1540,8 +1540,8 @@ async function handleRedeemCode(code, options) {
|
|
|
1540
1540
|
}
|
|
1541
1541
|
);
|
|
1542
1542
|
const url = String(payload.url || payload.checkout_url || "");
|
|
1543
|
-
if (!options.json && !options.noOpen && url)
|
|
1544
|
-
|
|
1543
|
+
if (!options.json && !options.noOpen && url) _chunk57F5VKHVjs.openInBrowser.call(void 0, url);
|
|
1544
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0,
|
|
1545
1545
|
{
|
|
1546
1546
|
...payload,
|
|
1547
1547
|
render: {
|
|
@@ -1599,14 +1599,14 @@ Examples:
|
|
|
1599
1599
|
if (!Number.isSafeInteger(quantity) || quantity <= 0) {
|
|
1600
1600
|
throw new Error("--quantity must be a positive safe integer.");
|
|
1601
1601
|
}
|
|
1602
|
-
const quote = await new (0,
|
|
1602
|
+
const quote = await new (0, _chunkORO2GFH4js.DeeplineClient)().billing.quote({
|
|
1603
1603
|
quantity,
|
|
1604
1604
|
sandbox_runtime: {
|
|
1605
1605
|
timeout: options.sandboxTimeout,
|
|
1606
1606
|
size: "standard"
|
|
1607
1607
|
}
|
|
1608
1608
|
});
|
|
1609
|
-
|
|
1609
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0, quote, {
|
|
1610
1610
|
json: options.json,
|
|
1611
1611
|
text: `Sandbox session ceiling: ${quote.maximum_credits} Deepline credits (${quote.quantity} session${quote.quantity === 1 ? "" : "s"}).
|
|
1612
1612
|
${quote.explanation}
|
|
@@ -1851,8 +1851,8 @@ Examples:
|
|
|
1851
1851
|
new (0, _commander.Command)("trigger").description(
|
|
1852
1852
|
"Evaluate capped automatic recharge and resume any pending purchase."
|
|
1853
1853
|
).option("--json", "Emit JSON output").action(async (options) => {
|
|
1854
|
-
const result = await new (0,
|
|
1855
|
-
|
|
1854
|
+
const result = await new (0, _chunkORO2GFH4js.DeeplineClient)().billing.autoRecharge.trigger();
|
|
1855
|
+
_chunk57F5VKHVjs.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
|
|
1856
1856
|
})
|
|
1857
1857
|
);
|
|
1858
1858
|
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,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CTDWQYBW.mjs";
|
|
4
4
|
import {
|
|
5
5
|
iterateCursorPages,
|
|
6
6
|
requireBillingIdempotencyKey
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QW6HNDS7.mjs";
|
|
8
8
|
import "./chunk-L2VKAASU.mjs";
|
|
9
9
|
import "./chunk-FAG4DFUC.mjs";
|
|
10
10
|
import "./chunk-S3A4IXBQ.mjs";
|
|
@@ -15,9 +15,9 @@ import {
|
|
|
15
15
|
openInBrowser,
|
|
16
16
|
printCommandEnvelope,
|
|
17
17
|
shouldEmitJson
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-QG7UPPOK.mjs";
|
|
19
|
+
import "./chunk-VL7OL7YR.mjs";
|
|
20
|
+
import "./chunk-SETIOXN4.mjs";
|
|
21
21
|
import {
|
|
22
22
|
AuthError,
|
|
23
23
|
ConfigError
|
|
@@ -26,7 +26,7 @@ import "./chunk-DLIRSHV6.mjs";
|
|
|
26
26
|
import {
|
|
27
27
|
DeeplineError
|
|
28
28
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-DSOTGAXS.mjs";
|
|
30
30
|
import "./chunk-WZYKRD7T.mjs";
|
|
31
31
|
import "./chunk-KRD6H754.mjs";
|
|
32
32
|
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-F6QV42MC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseLogLevel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QW6HNDS7.mjs";
|
|
7
7
|
import {
|
|
8
8
|
setDottedInputValue
|
|
9
9
|
} from "./chunk-FAG4DFUC.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
argsWantJson,
|
|
12
12
|
jsonFieldArgs,
|
|
13
13
|
parseJsonFields
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QG7UPPOK.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError
|
|
17
17
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SV3B6KW4.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YFKOA4HW.mjs";
|
|
11
11
|
import {
|
|
12
12
|
addJsonNotice,
|
|
13
13
|
isJsonOutputMode
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QG7UPPOK.mjs";
|
|
15
15
|
import {
|
|
16
16
|
resolveApiKeyForBaseUrl
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-VL7OL7YR.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_VERSION
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-SETIOXN4.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/compatibility-catalog.ts
|
|
23
23
|
var readers = /* @__PURE__ */ new WeakMap();
|