deepline 0.3.508 → 0.3.509
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/observability/scheduled-jobs.json +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/db-session-plan.ts +47 -6
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +1 -0
- package/dist/cli/{auth-2URIN52G.mjs → auth-6IR2QH4N.mjs} +5 -5
- package/dist/cli/auth-SUTQ4SZQ.js +43 -0
- package/dist/cli/{billing-R2HY2ZVJ.js → billing-SYBK3ZYU.js} +82 -82
- package/dist/cli/{billing-IW23GSR5.mjs → billing-WEWHH6ST.mjs} +7 -7
- package/dist/cli/{chunk-3XBI4KZM.mjs → chunk-25MAOMVS.mjs} +2 -2
- package/dist/cli/{chunk-63MCLOR2.mjs → chunk-2U7Z4LFG.mjs} +6 -6
- package/dist/cli/{chunk-AYNO4VFW.js → chunk-2ZJRCAHG.js} +11 -11
- package/dist/cli/{chunk-2LY42EZJ.mjs → chunk-3CZHC24N.mjs} +1 -1
- package/dist/cli/{chunk-3ZNPIJX6.js → chunk-4DVANPBN.js} +41 -41
- package/dist/cli/{chunk-JEB6BNIU.mjs → chunk-54YPOG5W.mjs} +2 -2
- package/dist/cli/{chunk-3BZ74K27.js → chunk-5Y3I5LEQ.js} +16 -16
- package/dist/cli/{chunk-DZ7JCRAL.mjs → chunk-6KBVQ76G.mjs} +2 -2
- package/dist/cli/{chunk-JRHMPZJX.js → chunk-6TBRWRJ2.js} +7 -7
- package/dist/cli/{chunk-JUYW6TSU.js → chunk-726UDAV2.js} +7 -7
- package/dist/cli/{chunk-74UO7THC.js → chunk-7KALZEDZ.js} +4 -4
- package/dist/cli/{chunk-7PELFO3C.js → chunk-7NMPGX3W.js} +21 -21
- package/dist/cli/{chunk-RUD77W2Y.js → chunk-AD45WJHN.js} +5 -5
- package/dist/cli/{chunk-ESVK4Z7S.js → chunk-AO63MXT6.js} +1 -1
- package/dist/cli/{chunk-JYNHHO3J.js → chunk-CMSPA5VX.js} +6 -6
- package/dist/cli/{chunk-63BGKU3A.js → chunk-DGOSW42X.js} +96 -96
- package/dist/cli/{chunk-C6TP4DR3.mjs → chunk-E3HWUGDT.mjs} +1 -1
- package/dist/cli/{chunk-3C6VBHNW.mjs → chunk-EEEWADSR.mjs} +2 -2
- package/dist/cli/{chunk-2PYFXXYA.mjs → chunk-FNLGMMJJ.mjs} +2 -2
- package/dist/cli/{chunk-OWH7SSBO.mjs → chunk-FQCIYGQY.mjs} +2 -2
- package/dist/cli/{chunk-P7GOQTUN.js → chunk-GTAU4C44.js} +14 -14
- package/dist/cli/{chunk-J3LJ37WD.js → chunk-HMAETS53.js} +3 -3
- package/dist/cli/{chunk-K4RME7AV.mjs → chunk-IZW7IOD6.mjs} +1 -1
- package/dist/cli/{chunk-GDHLL5EQ.js → chunk-J5P4PDRT.js} +3 -0
- package/dist/cli/{chunk-ZL2ME3UT.js → chunk-JZJNA57M.js} +6 -6
- package/dist/cli/{chunk-Q4I5YKN4.mjs → chunk-K2RCVD7S.mjs} +1 -1
- package/dist/cli/{chunk-M37I4A2Z.js → chunk-O527H5GY.js} +16 -16
- package/dist/cli/{chunk-QBZECLNG.mjs → chunk-OOD5LGUS.mjs} +3 -3
- package/dist/cli/{chunk-N5HRBS4K.js → chunk-Q5UO2ENN.js} +3 -3
- package/dist/cli/{chunk-D73YB5NQ.js → chunk-Q7G6WORO.js} +2 -2
- package/dist/cli/{chunk-FRT5MFLF.mjs → chunk-R2KNJMOY.mjs} +1 -1
- package/dist/cli/{chunk-TVADI7K5.js → chunk-RA2NKHV5.js} +5 -5
- package/dist/cli/{chunk-KSQO32L5.mjs → chunk-RSKAPLST.mjs} +1 -1
- package/dist/cli/{chunk-RNZQ7RDW.mjs → chunk-S7JEF2MR.mjs} +2 -2
- package/dist/cli/{chunk-IF242BIJ.mjs → chunk-SEQIB5WJ.mjs} +5 -5
- package/dist/cli/{chunk-XSOLA2ED.mjs → chunk-T67NAGSD.mjs} +4 -4
- package/dist/cli/{chunk-NC2FIUPX.mjs → chunk-UART6FGK.mjs} +1 -1
- package/dist/cli/{chunk-DWV7KM6H.mjs → chunk-VH522HUP.mjs} +10 -10
- package/dist/cli/{chunk-FXKKFM7J.js → chunk-VTVZ7EUA.js} +9 -9
- package/dist/cli/{chunk-RWXHMG6F.js → chunk-VZ773N7G.js} +8 -8
- package/dist/cli/{chunk-VXNL4HLE.mjs → chunk-WJ6H2W3O.mjs} +5 -5
- package/dist/cli/{chunk-2YOM5J3G.js → chunk-WPBTWRKG.js} +26 -26
- package/dist/cli/{chunk-4DAR2GYV.mjs → chunk-WUKNKFB3.mjs} +2 -2
- package/dist/cli/{chunk-UDH3YMBI.mjs → chunk-XEQH65DT.mjs} +1 -1
- package/dist/cli/{chunk-GRGZKXLL.mjs → chunk-XIBNY6H6.mjs} +5 -5
- package/dist/cli/{chunk-R4S2AK3Q.js → chunk-XPKBYMJH.js} +53 -53
- package/dist/cli/{chunk-JXYVBF5L.mjs → chunk-Y4M5HPQV.mjs} +5 -5
- package/dist/cli/{chunk-AFSYNOG4.mjs → chunk-YJM3NOME.mjs} +3 -0
- package/dist/cli/{chunk-IZZ7FFWP.js → chunk-Z2LVZDO5.js} +44 -44
- package/dist/cli/{chunk-ZLIAUR2E.js → chunk-ZXGMWXZW.js} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-CMJSMC2I.mjs → csv-4LAJ2ZKG.mjs} +4 -4
- package/dist/cli/{csv-DPDO6BU6.js → csv-5KNONIAX.js} +13 -13
- package/dist/cli/{db-PPPKNTT5.js → db-5PEXOSN3.js} +27 -27
- package/dist/cli/{db-SL3EFN6V.mjs → db-BEVCJI66.mjs} +6 -6
- package/dist/cli/{describe-XLN33FJX.mjs → describe-TDJIUSD6.mjs} +18 -18
- package/dist/cli/describe-ZB6G6DOV.js +50 -0
- package/dist/cli/{executions-6YDTV2J6.js → executions-36GV3A27.js} +8 -8
- package/dist/cli/{executions-O6Z5B5NY.mjs → executions-KXCPU6YC.mjs} +6 -6
- package/dist/cli/{feedback-DP7LPWAD.mjs → feedback-GEUUT4S7.mjs} +4 -4
- package/dist/cli/{feedback-BZ434BN4.js → feedback-SPQABV33.js} +8 -8
- package/dist/cli/{git-MI7E5WGL.mjs → git-AE36X2R6.mjs} +5 -5
- package/dist/cli/git-UX7L6R32.js +25 -0
- package/dist/cli/index.js +142 -142
- package/dist/cli/index.mjs +42 -42
- package/dist/cli/{legacy-noops-6VYXF2MG.mjs → legacy-noops-LUEDAK7J.mjs} +5 -5
- package/dist/cli/{legacy-noops-65WNPQVZ.js → legacy-noops-TKPHN7WT.js} +8 -8
- package/dist/cli/{monitors-BYUCTVSC.js → monitors-B2EAIGZI.js} +100 -100
- package/dist/cli/{monitors-Y7I5ZVCN.mjs → monitors-JHJZ5XG7.mjs} +7 -7
- package/dist/cli/{org-IW3YD6JZ.mjs → org-GUICCEBZ.mjs} +6 -6
- package/dist/cli/{org-F2ASWTFY.js → org-PYCPXEAU.js} +72 -72
- package/dist/cli/{pages-X6HLRQNV.js → pages-CV4TQNFY.js} +18 -18
- package/dist/cli/{pages-H2CXNIDB.mjs → pages-Y2XI36HY.mjs} +6 -6
- package/dist/cli/{play-H2EM7DTI.js → play-MTVK66JK.js} +468 -429
- package/dist/cli/{play-LLEEDXRX.mjs → play-VWCQNGZZ.mjs} +93 -54
- package/dist/cli/{providers-6R2SPOEV.js → providers-N72BUCXZ.js} +9 -9
- package/dist/cli/{providers-BZR5JONN.mjs → providers-ZOZTST3A.mjs} +6 -6
- package/dist/cli/{quickstart-KVES7R6D.mjs → quickstart-DXIC3NHS.mjs} +4 -4
- package/dist/cli/{quickstart-PW7ONQUH.js → quickstart-FK53VZB3.js} +6 -6
- package/dist/cli/{run-RDI3Q6GO.mjs → run-IL2KI33N.mjs} +23 -23
- package/dist/cli/{run-HVUQROBE.js → run-NNAYDCEN.js} +41 -41
- package/dist/cli/{search-3TJ24CUF.mjs → search-7IPVMQCO.mjs} +8 -8
- package/dist/cli/search-OZHP5ZE2.js +33 -0
- package/dist/cli/{search-output-JHT553SL.js → search-output-YHTWLSDE.js} +6 -6
- package/dist/cli/{search-output-Y57OBQXX.mjs → search-output-ZY2GE35S.mjs} +4 -4
- package/dist/cli/{secrets-OZK7GRD5.mjs → secrets-BGUMHDZ7.mjs} +6 -6
- package/dist/cli/{secrets-U5JHWAXU.js → secrets-ZML76SH2.js} +15 -15
- package/dist/cli/{sessions-D6DSEQ2T.mjs → sessions-F5XO6HZJ.mjs} +5 -5
- package/dist/cli/{sessions-PNMYAJNB.js → sessions-WDINUUZ3.js} +6 -6
- package/dist/cli/{settings-ITLSLT2R.mjs → settings-73SMIICV.mjs} +12 -12
- package/dist/cli/{settings-DLPEHYGS.js → settings-TOX2P5M5.js} +82 -82
- package/dist/cli/{setup-Y5ZYEC6U.js → setup-DNFHFQ7N.js} +50 -50
- package/dist/cli/{setup-XTYLF2CF.mjs → setup-FDJZYBMS.mjs} +10 -10
- package/dist/cli/{skills-C4WCAVII.mjs → skills-6HJ2IAY6.mjs} +8 -8
- package/dist/cli/skills-NE7WN5PP.js +37 -0
- package/dist/cli/{tools-ZESAPVOW.mjs → tools-4FJIIE4R.mjs} +17 -17
- package/dist/cli/tools-ETX4MNNO.js +57 -0
- package/dist/cli/update-N2DMPSUH.js +35 -0
- package/dist/cli/{update-4PCKVDCS.mjs → update-UMRPPILV.mjs} +10 -10
- package/dist/cli/{workflow-42CL4TVR.mjs → workflow-LSFOG5VU.mjs} +7 -7
- package/dist/cli/{workflow-XXKXMPTI.js → workflow-SK3BUHB4.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +102 -102
- 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-LFU77QDI.js +0 -43
- package/dist/cli/describe-JKZ67X3E.js +0 -50
- package/dist/cli/git-U5N6CTML.js +0 -25
- package/dist/cli/search-NKEEGLY6.js +0 -33
- package/dist/cli/skills-K6FVG3BX.js +0 -37
- package/dist/cli/tools-LSALTN7I.js +0 -57
- package/dist/cli/update-P5KGNFNL.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
|
|
3
|
+
var _chunkRA2NKHV5js = require('./chunk-RA2NKHV5.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk6TBRWRJ2js = require('./chunk-6TBRWRJ2.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
|
|
14
|
+
var _chunkJ5P4PDRTjs = require('./chunk-J5P4PDRT.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
|
|
26
|
-
require('./chunk-
|
|
27
|
-
require('./chunk-
|
|
25
|
+
var _chunk726UDAV2js = require('./chunk-726UDAV2.js');
|
|
26
|
+
require('./chunk-HMAETS53.js');
|
|
27
|
+
require('./chunk-7KALZEDZ.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-
|
|
36
|
+
require('./chunk-AO63MXT6.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
|
-
|
|
85
|
+
_chunk726UDAV2js.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, )}` :
|
|
106
|
+
return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` : _chunk6TBRWRJ2js.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 } =
|
|
325
|
+
const { http } = _chunk726UDAV2js.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
|
-
|
|
409
|
+
_chunk726UDAV2js.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,
|
|
445
|
+
const client = new (0, _chunkRA2NKHV5js.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
|
-
|
|
476
|
+
_chunk726UDAV2js.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 } =
|
|
498
|
+
const { http } = _chunk726UDAV2js.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
|
-
|
|
582
|
+
_chunk726UDAV2js.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 } =
|
|
596
|
+
const { http } = _chunk726UDAV2js.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
|
-
|
|
604
|
+
_chunk726UDAV2js.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 } =
|
|
613
|
+
const { http } = _chunk726UDAV2js.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
|
-
|
|
618
|
+
_chunk726UDAV2js.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 } =
|
|
634
|
+
const { http } = _chunk726UDAV2js.getAuthedHttpClient.call(void 0, );
|
|
635
635
|
const payload = await http.request("/api/v2/billing/limit", {
|
|
636
636
|
method: "DELETE"
|
|
637
637
|
});
|
|
638
|
-
|
|
638
|
+
_chunk726UDAV2js.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
|
|
658
|
+
for await (const entries of _chunk6TBRWRJ2js.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 } =
|
|
697
|
+
const { http } = _chunk726UDAV2js.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
|
-
|
|
709
|
+
_chunk726UDAV2js.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
|
|
710
710
|
);
|
|
711
711
|
const summary = await exportLedger(http, outputPath, { sinceAt });
|
|
712
|
-
|
|
712
|
+
_chunk726UDAV2js.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 } =
|
|
749
|
+
const { http } = _chunk726UDAV2js.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
|
-
|
|
756
|
+
_chunk726UDAV2js.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,
|
|
796
|
+
const client = new (0, _chunkRA2NKHV5js.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 =
|
|
810
|
-
|
|
809
|
+
const legacyPayload = _chunk726UDAV2js.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
|
|
810
|
+
_chunk726UDAV2js.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 } =
|
|
820
|
+
const { http } = _chunk726UDAV2js.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)
|
|
830
|
-
|
|
829
|
+
if (!options.json && options.open !== false && url) _chunk726UDAV2js.openInBrowser.call(void 0, url);
|
|
830
|
+
_chunk726UDAV2js.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,
|
|
846
|
+
const client = new (0, _chunkRA2NKHV5js.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
|
-
|
|
866
|
+
_chunk726UDAV2js.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,
|
|
875
|
+
const client = new (0, _chunkRA2NKHV5js.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
|
-
|
|
892
|
+
_chunk726UDAV2js.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
|
-
|
|
947
|
+
_chunk726UDAV2js.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,
|
|
1001
|
+
const client = new (0, _chunkRA2NKHV5js.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
|
-
|
|
1030
|
+
_chunk726UDAV2js.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 } =
|
|
1039
|
+
const { http } = _chunk726UDAV2js.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)
|
|
1050
|
-
|
|
1049
|
+
if (!options.json && !options.noOpen && url) _chunk726UDAV2js.openInBrowser.call(void 0, url);
|
|
1050
|
+
_chunk726UDAV2js.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
|
-
|
|
1095
|
+
_chunk726UDAV2js.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,
|
|
1125
|
+
const client = new (0, _chunkRA2NKHV5js.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
|
-
|
|
1142
|
+
_chunk726UDAV2js.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
|
-
|
|
1206
|
+
_chunk726UDAV2js.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,
|
|
1211
|
+
const client = new (0, _chunkRA2NKHV5js.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
|
-
|
|
1216
|
+
_chunk726UDAV2js.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,
|
|
1254
|
+
const client = new (0, _chunkRA2NKHV5js.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
|
-
|
|
1260
|
+
_chunk726UDAV2js.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
|
-
|
|
1275
|
+
_chunkJ5P4PDRTjs.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
|
-
|
|
1280
|
+
_chunkJ5P4PDRTjs.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,
|
|
1294
|
-
|
|
1293
|
+
const payload = await new (0, _chunkRA2NKHV5js.DeeplineClient)().billing.entitlements();
|
|
1294
|
+
_chunk726UDAV2js.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,
|
|
1327
|
+
const payload = await new (0, _chunkRA2NKHV5js.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
|
-
|
|
1337
|
+
_chunk726UDAV2js.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
|
-
|
|
1386
|
+
_chunk726UDAV2js.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,
|
|
1407
|
+
const payload = await new (0, _chunkRA2NKHV5js.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
|
-
|
|
1415
|
+
_chunk726UDAV2js.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
|
-
|
|
1423
|
+
_chunk726UDAV2js.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,
|
|
1438
|
+
const payload = await new (0, _chunkRA2NKHV5js.DeeplineClient)().billing.autoRecharge.update({
|
|
1439
1439
|
enabled: false,
|
|
1440
1440
|
idempotencyKey
|
|
1441
1441
|
});
|
|
1442
|
-
|
|
1442
|
+
_chunk726UDAV2js.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,
|
|
1461
|
+
const payload = await new (0, _chunkRA2NKHV5js.DeeplineClient)().billing.purchaseCredits({
|
|
1462
1462
|
credits,
|
|
1463
1463
|
idempotencyKey
|
|
1464
1464
|
});
|
|
1465
|
-
|
|
1465
|
+
_chunk726UDAV2js.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
|
-
|
|
1501
|
+
_chunk726UDAV2js.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,
|
|
1514
|
+
const payload = await new (0, _chunkRA2NKHV5js.DeeplineClient)().billing.recoverCreditPurchase({
|
|
1515
1515
|
credits,
|
|
1516
1516
|
orgId: options.orgId,
|
|
1517
1517
|
idempotencyKey: options.idempotencyKey
|
|
1518
1518
|
});
|
|
1519
|
-
|
|
1519
|
+
_chunk726UDAV2js.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,
|
|
1539
|
+
const payload = await new (0, _chunkRA2NKHV5js.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
|
-
|
|
1545
|
+
_chunk726UDAV2js.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,
|
|
1552
|
+
const payload = await new (0, _chunkRA2NKHV5js.DeeplineClient)().billing.transitionPlan({
|
|
1553
1553
|
action: options.undo ? "undo_cancel" : "cancel",
|
|
1554
1554
|
idempotencyKey
|
|
1555
1555
|
});
|
|
1556
|
-
|
|
1556
|
+
_chunk726UDAV2js.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,
|
|
1562
|
+
const payload = await new (0, _chunkRA2NKHV5js.DeeplineClient)().billing.portalSession(
|
|
1563
1563
|
options.billingAddress ? { flow: "customer_update" } : void 0
|
|
1564
1564
|
);
|
|
1565
|
-
if (!options.json && !options.noOpen)
|
|
1566
|
-
|
|
1565
|
+
if (!options.json && !options.noOpen) _chunk726UDAV2js.openInBrowser.call(void 0, payload.url);
|
|
1566
|
+
_chunk726UDAV2js.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
|
|
1567
1567
|
}
|
|
1568
1568
|
async function handleRedeemCode(code, options) {
|
|
1569
|
-
const { http } =
|
|
1569
|
+
const { http } = _chunk726UDAV2js.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)
|
|
1578
|
-
|
|
1577
|
+
if (!options.json && !options.noOpen && url) _chunk726UDAV2js.openInBrowser.call(void 0, url);
|
|
1578
|
+
_chunk726UDAV2js.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,
|
|
1639
|
+
const quote = await new (0, _chunkRA2NKHV5js.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
|
-
|
|
1646
|
+
_chunk726UDAV2js.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,
|
|
1895
|
-
|
|
1894
|
+
const result = await new (0, _chunkRA2NKHV5js.DeeplineClient)().billing.autoRecharge.trigger();
|
|
1895
|
+
_chunk726UDAV2js.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,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FQCIYGQY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
iterateCursorPages,
|
|
6
6
|
requireBillingIdempotencyKey
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-K2RCVD7S.mjs";
|
|
8
8
|
import "./chunk-L2VKAASU.mjs";
|
|
9
9
|
import "./chunk-N4TR6QRI.mjs";
|
|
10
10
|
import "./chunk-S3A4IXBQ.mjs";
|
|
11
11
|
import "./chunk-BMCRTI6Z.mjs";
|
|
12
12
|
import {
|
|
13
13
|
PLAY_RUNTIME_PRICING_NOTE
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YJM3NOME.mjs";
|
|
15
15
|
import "./chunk-5LUF4LAR.mjs";
|
|
16
16
|
import {
|
|
17
17
|
PLAY_SANDBOX_SIZE_INPUTS
|
|
@@ -22,9 +22,9 @@ import {
|
|
|
22
22
|
openInBrowser,
|
|
23
23
|
printCommandEnvelope,
|
|
24
24
|
shouldEmitJson
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-6KBVQ76G.mjs";
|
|
26
|
+
import "./chunk-R2KNJMOY.mjs";
|
|
27
|
+
import "./chunk-3CZHC24N.mjs";
|
|
28
28
|
import {
|
|
29
29
|
AuthError,
|
|
30
30
|
ConfigError
|
|
@@ -33,7 +33,7 @@ import "./chunk-DLIRSHV6.mjs";
|
|
|
33
33
|
import {
|
|
34
34
|
DeeplineError
|
|
35
35
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-RSKAPLST.mjs";
|
|
37
37
|
import "./chunk-WZYKRD7T.mjs";
|
|
38
38
|
import "./chunk-KRD6H754.mjs";
|
|
39
39
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoDetectBaseUrl,
|
|
3
3
|
resolveApiKeyForBaseUrl
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-R2KNJMOY.mjs";
|
|
5
5
|
import {
|
|
6
6
|
SDK_VERSION,
|
|
7
7
|
agentSessionIdFromEnvironment,
|
|
8
8
|
deploymentProtectionHeaders,
|
|
9
9
|
detectAgentRuntime
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3CZHC24N.mjs";
|
|
11
11
|
import {
|
|
12
12
|
DeeplineError
|
|
13
13
|
} from "./chunk-HBL4PM5Q.mjs";
|