deepline 0.3.320 → 0.3.321
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 +23 -7
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +62 -0
- package/dist/bundling-sources/shared_libs/security/receipt-admission-token.ts +32 -0
- package/dist/cli/auth-AF2MEC7K.js +31 -0
- package/dist/cli/{auth-NYSK66KD.mjs → auth-OXD3QIJW.mjs} +4 -4
- package/dist/cli/{billing-ZBWBLIP7.js → billing-6YZHF6FJ.js} +70 -70
- package/dist/cli/{billing-XYVBZJU5.mjs → billing-XT3T2V6Z.mjs} +4 -4
- package/dist/cli/{chunk-PIZ6SO36.js → chunk-23LWIJU5.js} +1 -1
- package/dist/cli/{chunk-TSJMXXYQ.mjs → chunk-4QF3GTLM.mjs} +3 -3
- package/dist/cli/{chunk-J4GZ6UGF.js → chunk-57VCSLVP.js} +6 -6
- package/dist/cli/{chunk-37ONQE44.mjs → chunk-7V6BVNXM.mjs} +1 -1
- package/dist/cli/{chunk-RLTEXU3S.js → chunk-FBJSFMZM.js} +4 -4
- package/dist/cli/{chunk-TETXFI7D.mjs → chunk-GCKI434X.mjs} +4 -4
- package/dist/cli/{chunk-LCTFVXCB.js → chunk-GNXG6BQI.js} +50 -50
- package/dist/cli/{chunk-TRHCY3DR.js → chunk-KLY2SA5G.js} +60 -60
- package/dist/cli/{chunk-QYZ4O7PR.js → chunk-KN5AMK2N.js} +48 -48
- package/dist/cli/{chunk-PW66AZ2A.js → chunk-KZ4S6URN.js} +6 -6
- package/dist/cli/{chunk-HSK7KXT5.mjs → chunk-LXVHOTPH.mjs} +5 -5
- package/dist/cli/{chunk-W5YKTQSP.mjs → chunk-MMIICHOJ.mjs} +2 -2
- package/dist/cli/{chunk-3NEPTMWE.js → chunk-N7FB2EYO.js} +220 -220
- package/dist/cli/{chunk-UMEP46YY.mjs → chunk-P5BBV56E.mjs} +1 -1
- package/dist/cli/{chunk-XBNAQNFP.js → chunk-PVHEPQR6.js} +6 -6
- package/dist/cli/{chunk-3PTRR2TW.js → chunk-PVSES2RR.js} +15 -15
- package/dist/cli/{chunk-6YZISVBR.mjs → chunk-Q7I47LE7.mjs} +1 -1
- package/dist/cli/{chunk-6A6T4G7T.mjs → chunk-QVH4OR5R.mjs} +1 -1
- package/dist/cli/{chunk-AX3TZAV5.mjs → chunk-SIU6LJAM.mjs} +2 -2
- package/dist/cli/{chunk-ZU55LRWM.mjs → chunk-SLAJLTYQ.mjs} +2 -2
- package/dist/cli/{chunk-Z5JM4OEH.mjs → chunk-T6BFDDO7.mjs} +1 -1
- package/dist/cli/{chunk-VUARZ4ZE.mjs → chunk-TFNUR4VK.mjs} +6 -6
- package/dist/cli/{chunk-RGOSOAIT.js → chunk-VF3SOXGE.js} +26 -26
- package/dist/cli/{chunk-PYRNYGFW.js → chunk-WRS3ZBVF.js} +2 -2
- package/dist/cli/{chunk-T6P6HH2G.mjs → chunk-Y2O2LTUU.mjs} +1 -1
- package/dist/cli/{chunk-4HZUNBCY.js → chunk-ZEO3FTS5.js} +6 -6
- package/dist/cli/{client-VTPKOO4Z.mjs → client-GEADN6HT.mjs} +3 -3
- package/dist/cli/client-LXTQ44XR.js +20 -0
- package/dist/cli/{csv-MJJEVKN5.mjs → csv-47ALCDUF.mjs} +3 -3
- package/dist/cli/{csv-AQ7BK42T.js → csv-72X7YZWZ.js} +12 -12
- package/dist/cli/{db-MFYFYQMS.js → db-22ZO4JUX.js} +20 -20
- package/dist/cli/{db-VSLFUXRH.mjs → db-LOC34Z5E.mjs} +4 -4
- package/dist/cli/{describe-EGCCLMIG.mjs → describe-4W6RA7DZ.mjs} +8 -8
- package/dist/cli/{describe-PZXQHRZC.js → describe-TWBIOBVP.js} +15 -15
- package/dist/cli/{executions-Z34FIL2V.js → executions-7RGT2PNM.js} +6 -6
- package/dist/cli/{executions-RDQRQOQA.mjs → executions-MVY4577L.mjs} +4 -4
- package/dist/cli/{feedback-KCC6WF2Z.mjs → feedback-IFQH4TNG.mjs} +3 -3
- package/dist/cli/{feedback-6JOSGSDK.js → feedback-TQMC2VPS.js} +6 -6
- package/dist/cli/git-ADCE7DM6.js +23 -0
- package/dist/cli/{git-DZFULAET.mjs → git-F7G4NWNH.mjs} +4 -4
- package/dist/cli/index.js +75 -75
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-FJU7A3FQ.mjs → legacy-noops-DNGJQ2LB.mjs} +4 -4
- package/dist/cli/{legacy-noops-7J4EK3K5.js → legacy-noops-T6TPBUI7.js} +7 -7
- package/dist/cli/{monitors-BGITITUE.mjs → monitors-6LOEYFPU.mjs} +4 -4
- package/dist/cli/{monitors-MJA6SOAO.js → monitors-7ZCIBU3A.js} +85 -85
- package/dist/cli/{org-FSQSD4PN.js → org-IY5J5UV2.js} +60 -60
- package/dist/cli/{org-AXLMRMVO.mjs → org-QNOMTNYG.mjs} +4 -4
- package/dist/cli/{play-C2CW2RIA.mjs → play-DYYJFFCL.mjs} +7 -7
- package/dist/cli/play-EMBNMGQ6.js +152 -0
- package/dist/cli/{providers-5QU7XHEC.js → providers-MLRLAH37.js} +7 -7
- package/dist/cli/{providers-KJVUG5C7.mjs → providers-Y54CW33F.mjs} +4 -4
- package/dist/cli/{quickstart-QSN4CEN5.js → quickstart-EIWX6I5X.js} +5 -5
- package/dist/cli/{quickstart-4544CITN.mjs → quickstart-K2FFBJEQ.mjs} +3 -3
- package/dist/cli/{search-BBZ3PAH3.mjs → search-2YJQBUPV.mjs} +5 -5
- package/dist/cli/search-7EADPPFV.js +26 -0
- package/dist/cli/{secrets-TDVMAWYN.js → secrets-5MY6G5EO.js} +13 -13
- package/dist/cli/{secrets-ULXLPXCV.mjs → secrets-BBPVDWHE.mjs} +4 -4
- package/dist/cli/{sessions-5VDQB2L7.js → sessions-LYULGDRK.js} +5 -5
- package/dist/cli/{sessions-PGYBZWYC.mjs → sessions-SKSMKVXC.mjs} +4 -4
- package/dist/cli/{settings-Q2WUSTBE.mjs → settings-CIV5JY2A.mjs} +7 -7
- package/dist/cli/{settings-CPVJ6CAJ.js → settings-HTAZHDQ3.js} +74 -74
- package/dist/cli/{setup-S5HRTXGS.js → setup-EWRGRIO2.js} +41 -41
- package/dist/cli/{setup-GSP4CRQI.mjs → setup-UJDC3MCT.mjs} +6 -6
- package/dist/cli/skills-6BXDE3J6.js +28 -0
- package/dist/cli/{skills-YTO4QBNQ.mjs → skills-C7YBNTJW.mjs} +4 -4
- package/dist/cli/{tools-SLP5JY6Y.mjs → tools-LHIQZLYY.mjs} +6 -6
- package/dist/cli/tools-VYQ34FFN.js +38 -0
- package/dist/cli/update-4RZHBEJL.js +28 -0
- package/dist/cli/{update-WFKVOWE2.mjs → update-G5SWXA67.mjs} +6 -6
- package/dist/cli/{workflow-6CNJLEXB.js → workflow-7HKDO6QM.js} +15 -15
- package/dist/cli/{workflow-VT5MZAE4.mjs → workflow-TJOJJJT5.mjs} +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +74 -74
- 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/package.json +1 -1
- package/dist/cli/auth-4G7N6GA3.js +0 -31
- package/dist/cli/client-SH53CVTP.js +0 -20
- package/dist/cli/git-T657HSFR.js +0 -23
- package/dist/cli/play-ANDR7I7L.js +0 -152
- package/dist/cli/search-W7S7BRKC.js +0 -26
- package/dist/cli/skills-PO3LZZP4.js +0 -28
- package/dist/cli/tools-IRJOZZOP.js +0 -38
- package/dist/cli/update-UD7ABWPP.js +0 -28
|
@@ -1,7 +1,7 @@
|
|
|
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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkPVHEPQR6js = require('./chunk-PVHEPQR6.js');
|
|
5
5
|
require('./chunk-LA46MMTL.js');
|
|
6
6
|
|
|
7
7
|
|
|
@@ -9,13 +9,13 @@ require('./chunk-LA46MMTL.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk57VCSLVPjs = require('./chunk-57VCSLVP.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkFBJSFMZMjs = require('./chunk-FBJSFMZM.js');
|
|
17
17
|
require('./chunk-XNYIZMNQ.js');
|
|
18
|
-
require('./chunk-
|
|
18
|
+
require('./chunk-23LWIJU5.js');
|
|
19
19
|
require('./chunk-S6R3OX7B.js');
|
|
20
20
|
|
|
21
21
|
|
|
@@ -34,7 +34,7 @@ var SUBSCRIPTION_CANCEL_PATH = "/api/v2/billing/subscription/cancel";
|
|
|
34
34
|
var BILLING_TOP_UP_PATH = "/api/v2/billing/top-up";
|
|
35
35
|
var DEFAULT_BALANCE_RECOVERY_CREDITS = 100;
|
|
36
36
|
function billingFailureFromError(error, options) {
|
|
37
|
-
if (error instanceof
|
|
37
|
+
if (error instanceof _chunkFBJSFMZMjs.AuthError) {
|
|
38
38
|
return {
|
|
39
39
|
exitCode: 3,
|
|
40
40
|
code: "AUTH_ERROR",
|
|
@@ -68,7 +68,7 @@ function reportBillingFailure(failure, options) {
|
|
|
68
68
|
if (failure.next) {
|
|
69
69
|
textLines.push(`Next: ${failure.next}`);
|
|
70
70
|
}
|
|
71
|
-
|
|
71
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
72
72
|
{
|
|
73
73
|
ok: false,
|
|
74
74
|
exitCode: failure.exitCode,
|
|
@@ -130,7 +130,7 @@ function apiErrorCode(error) {
|
|
|
130
130
|
return _nullishCoalesce(error.code, () => ( "BILLING_API_ERROR"));
|
|
131
131
|
}
|
|
132
132
|
function billingTopUpFailureFromError(error, input) {
|
|
133
|
-
if (error instanceof
|
|
133
|
+
if (error instanceof _chunkFBJSFMZMjs.AuthError || error instanceof _chunkFBJSFMZMjs.ConfigError) {
|
|
134
134
|
return {
|
|
135
135
|
exitCode: 3,
|
|
136
136
|
code: "AUTH_ERROR",
|
|
@@ -299,7 +299,7 @@ function defaultLedgerExportPath() {
|
|
|
299
299
|
);
|
|
300
300
|
}
|
|
301
301
|
async function handleBalance(options) {
|
|
302
|
-
const { http } =
|
|
302
|
+
const { http } = _chunk57VCSLVPjs.getAuthedHttpClient.call(void 0, );
|
|
303
303
|
const payload = await http.get(
|
|
304
304
|
"/api/v2/billing/balance"
|
|
305
305
|
);
|
|
@@ -361,7 +361,7 @@ async function handleBalance(options) {
|
|
|
361
361
|
lines.push(`If the user approves, run: ${recovery.top_up_command}`);
|
|
362
362
|
lines.push(`If checkout is required, run: ${recovery.checkout_command}`);
|
|
363
363
|
}
|
|
364
|
-
|
|
364
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
365
365
|
{
|
|
366
366
|
...payload,
|
|
367
367
|
...recovery ? { recovery } : {},
|
|
@@ -375,7 +375,7 @@ function quoteShellArgument(value) {
|
|
|
375
375
|
return `'${value.replace(/'/g, `'\\''`)}'`;
|
|
376
376
|
}
|
|
377
377
|
async function handleUsage(options) {
|
|
378
|
-
const { http } =
|
|
378
|
+
const { http } = _chunk57VCSLVPjs.getAuthedHttpClient.call(void 0, );
|
|
379
379
|
const params = new URLSearchParams();
|
|
380
380
|
if (options.requestId !== void 0) {
|
|
381
381
|
const requestId = options.requestId.trim();
|
|
@@ -456,7 +456,7 @@ async function handleUsage(options) {
|
|
|
456
456
|
"No continuation is available for this view. Use deepline billing ledger export all --json for the full ledger."
|
|
457
457
|
] : []
|
|
458
458
|
];
|
|
459
|
-
|
|
459
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
460
460
|
{
|
|
461
461
|
...payload,
|
|
462
462
|
recent: {
|
|
@@ -470,7 +470,7 @@ async function handleUsage(options) {
|
|
|
470
470
|
);
|
|
471
471
|
}
|
|
472
472
|
async function handleLimit(options) {
|
|
473
|
-
const { http } =
|
|
473
|
+
const { http } = _chunk57VCSLVPjs.getAuthedHttpClient.call(void 0, );
|
|
474
474
|
const payload = await http.get(
|
|
475
475
|
"/api/v2/billing/limit"
|
|
476
476
|
);
|
|
@@ -478,7 +478,7 @@ async function handleLimit(options) {
|
|
|
478
478
|
`Monthly usage cap: ${_nullishCoalesce(payload.monthly_credits_limit, () => ( "(unknown)"))}`,
|
|
479
479
|
"Enforcement: checked before new calls; in-flight work can exceed the cap."
|
|
480
480
|
] : ["Monthly usage cap: off"];
|
|
481
|
-
|
|
481
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
482
482
|
{
|
|
483
483
|
...payload,
|
|
484
484
|
render: { sections: [{ title: "billing limit", lines }] }
|
|
@@ -487,12 +487,12 @@ async function handleLimit(options) {
|
|
|
487
487
|
);
|
|
488
488
|
}
|
|
489
489
|
async function handleSetLimit(credits, options) {
|
|
490
|
-
const { http } =
|
|
490
|
+
const { http } = _chunk57VCSLVPjs.getAuthedHttpClient.call(void 0, );
|
|
491
491
|
const payload = await http.request("/api/v2/billing/limit", {
|
|
492
492
|
method: "PUT",
|
|
493
493
|
body: { monthly_credits_limit: Number.parseInt(credits, 10) }
|
|
494
494
|
});
|
|
495
|
-
|
|
495
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
496
496
|
{
|
|
497
497
|
...payload,
|
|
498
498
|
render: {
|
|
@@ -508,11 +508,11 @@ async function handleSetLimit(credits, options) {
|
|
|
508
508
|
);
|
|
509
509
|
}
|
|
510
510
|
async function handleLimitOff(options) {
|
|
511
|
-
const { http } =
|
|
511
|
+
const { http } = _chunk57VCSLVPjs.getAuthedHttpClient.call(void 0, );
|
|
512
512
|
const payload = await http.request("/api/v2/billing/limit", {
|
|
513
513
|
method: "DELETE"
|
|
514
514
|
});
|
|
515
|
-
|
|
515
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
516
516
|
{
|
|
517
517
|
...payload,
|
|
518
518
|
render: {
|
|
@@ -532,7 +532,7 @@ async function exportLedger(http, outputPath, options) {
|
|
|
532
532
|
let initialized = false;
|
|
533
533
|
let pageNumber = 0;
|
|
534
534
|
console.error(`Exporting billing ledger to ${outputPath}`);
|
|
535
|
-
for await (const entries of
|
|
535
|
+
for await (const entries of _chunkPVHEPQR6js.iterateCursorPages.call(void 0, async (cursor) => {
|
|
536
536
|
pageNumber += 1;
|
|
537
537
|
console.error(
|
|
538
538
|
`Fetching page ${pageNumber}; ${summary.row_count} rows written.`
|
|
@@ -571,7 +571,7 @@ async function exportLedger(http, outputPath, options) {
|
|
|
571
571
|
return summary;
|
|
572
572
|
}
|
|
573
573
|
async function handleHistory(options) {
|
|
574
|
-
const { http } =
|
|
574
|
+
const { http } = _chunk57VCSLVPjs.getAuthedHttpClient.call(void 0, );
|
|
575
575
|
const windows = {
|
|
576
576
|
"1d": 86400,
|
|
577
577
|
"1w": 604800,
|
|
@@ -583,10 +583,10 @@ async function handleHistory(options) {
|
|
|
583
583
|
process.cwd(),
|
|
584
584
|
"deepline",
|
|
585
585
|
"data",
|
|
586
|
-
|
|
586
|
+
_chunk57VCSLVPjs.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
|
|
587
587
|
);
|
|
588
588
|
const summary = await exportLedger(http, outputPath, { sinceAt });
|
|
589
|
-
|
|
589
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
590
590
|
{
|
|
591
591
|
output_path: outputPath,
|
|
592
592
|
row_count: summary.row_count,
|
|
@@ -623,14 +623,14 @@ async function handleLedgerExportAll(options) {
|
|
|
623
623
|
);
|
|
624
624
|
return;
|
|
625
625
|
}
|
|
626
|
-
const { http } =
|
|
626
|
+
const { http } = _chunk57VCSLVPjs.getAuthedHttpClient.call(void 0, );
|
|
627
627
|
const outputPath = options.output ? _path.resolve.call(void 0, String(options.output)) : defaultLedgerExportPath();
|
|
628
628
|
const summary = await exportLedger(http, outputPath, {
|
|
629
629
|
sinceAt,
|
|
630
630
|
runId: options.runId,
|
|
631
631
|
operation: options.operation
|
|
632
632
|
});
|
|
633
|
-
|
|
633
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
634
634
|
{
|
|
635
635
|
output_path: outputPath,
|
|
636
636
|
row_count: summary.row_count,
|
|
@@ -669,7 +669,7 @@ function targetPlanLine(plan) {
|
|
|
669
669
|
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"}`;
|
|
670
670
|
}
|
|
671
671
|
async function handlePlans(options) {
|
|
672
|
-
const client = new (0,
|
|
672
|
+
const client = new (0, _chunkPVHEPQR6js.DeeplineClient)();
|
|
673
673
|
const payload = await client.billing.targetPlans();
|
|
674
674
|
const listedCurrentPlan = payload.plans.find(
|
|
675
675
|
(plan) => plan.sku === payload.current_plan_sku
|
|
@@ -682,8 +682,8 @@ async function handlePlans(options) {
|
|
|
682
682
|
...payload.plans.length === 0 ? ["Plans: none available"] : ["Plans:", ...payload.plans.map(targetPlanLine)],
|
|
683
683
|
"Change plan: deepline billing change-plan <plan_sku> --json"
|
|
684
684
|
];
|
|
685
|
-
const legacyPayload =
|
|
686
|
-
|
|
685
|
+
const legacyPayload = _chunk57VCSLVPjs.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
|
|
686
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
687
687
|
{
|
|
688
688
|
..._nullishCoalesce(legacyPayload, () => ( payload)),
|
|
689
689
|
...legacyPayload ? { target_billing: payload } : {},
|
|
@@ -693,7 +693,7 @@ async function handlePlans(options) {
|
|
|
693
693
|
);
|
|
694
694
|
}
|
|
695
695
|
async function handleSubscribe(planVersionId, options) {
|
|
696
|
-
const { http } =
|
|
696
|
+
const { http } = _chunk57VCSLVPjs.getAuthedHttpClient.call(void 0, );
|
|
697
697
|
const payload = await http.request(
|
|
698
698
|
"/api/v2/billing/subscription/checkout",
|
|
699
699
|
{
|
|
@@ -702,8 +702,8 @@ async function handleSubscribe(planVersionId, options) {
|
|
|
702
702
|
}
|
|
703
703
|
);
|
|
704
704
|
const url = String(payload.checkout_url || "");
|
|
705
|
-
if (!options.json && options.open !== false && url)
|
|
706
|
-
|
|
705
|
+
if (!options.json && options.open !== false && url) _chunk57VCSLVPjs.openInBrowser.call(void 0, url);
|
|
706
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
707
707
|
{
|
|
708
708
|
...payload,
|
|
709
709
|
render: {
|
|
@@ -719,7 +719,7 @@ async function handleSubscribe(planVersionId, options) {
|
|
|
719
719
|
);
|
|
720
720
|
}
|
|
721
721
|
async function handleSubscriptionStatus(options) {
|
|
722
|
-
const client = new (0,
|
|
722
|
+
const client = new (0, _chunkPVHEPQR6js.DeeplineClient)();
|
|
723
723
|
const payload = await client.billing.subscription.status();
|
|
724
724
|
const pools = _nullishCoalesce(payload.credit_pools, () => ( []));
|
|
725
725
|
const lines = [
|
|
@@ -739,7 +739,7 @@ async function handleSubscriptionStatus(options) {
|
|
|
739
739
|
],
|
|
740
740
|
`Assigned by: ${_nullishCoalesce(payload.assigned_by, () => ( "default"))}`
|
|
741
741
|
];
|
|
742
|
-
|
|
742
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
743
743
|
{
|
|
744
744
|
...payload,
|
|
745
745
|
render: { sections: [{ title: "billing subscription", lines }] }
|
|
@@ -748,7 +748,7 @@ async function handleSubscriptionStatus(options) {
|
|
|
748
748
|
);
|
|
749
749
|
}
|
|
750
750
|
async function handleSubscriptionCancel(options) {
|
|
751
|
-
const client = new (0,
|
|
751
|
+
const client = new (0, _chunkPVHEPQR6js.DeeplineClient)();
|
|
752
752
|
const action = options.undo ? "undo_cancel" : "cancel";
|
|
753
753
|
if (options.dryRun) {
|
|
754
754
|
const status = await client.billing.subscription.status();
|
|
@@ -765,7 +765,7 @@ async function handleSubscriptionCancel(options) {
|
|
|
765
765
|
return;
|
|
766
766
|
}
|
|
767
767
|
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.";
|
|
768
|
-
|
|
768
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
769
769
|
{
|
|
770
770
|
ok: true,
|
|
771
771
|
dry_run: true,
|
|
@@ -820,7 +820,7 @@ async function handleSubscriptionCancel(options) {
|
|
|
820
820
|
"Remaining credits are yours to keep \u2014 cancellation never removes credits.",
|
|
821
821
|
"Undo with: deepline billing subscription cancel --undo"
|
|
822
822
|
];
|
|
823
|
-
|
|
823
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
824
824
|
{
|
|
825
825
|
ok: true,
|
|
826
826
|
...result,
|
|
@@ -874,7 +874,7 @@ async function handleInvoices(options) {
|
|
|
874
874
|
return;
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
|
-
const client = new (0,
|
|
877
|
+
const client = new (0, _chunkPVHEPQR6js.DeeplineClient)();
|
|
878
878
|
let payload;
|
|
879
879
|
try {
|
|
880
880
|
payload = await client.billing.invoices.list(
|
|
@@ -903,7 +903,7 @@ async function handleInvoices(options) {
|
|
|
903
903
|
url: entry.url
|
|
904
904
|
}))
|
|
905
905
|
} : { ...payload, count: entries.length };
|
|
906
|
-
|
|
906
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
907
907
|
{
|
|
908
908
|
...envelope,
|
|
909
909
|
render: { sections: [{ title: "billing invoices", lines }] }
|
|
@@ -912,7 +912,7 @@ async function handleInvoices(options) {
|
|
|
912
912
|
);
|
|
913
913
|
}
|
|
914
914
|
async function handleCheckout(options) {
|
|
915
|
-
const { http } =
|
|
915
|
+
const { http } = _chunk57VCSLVPjs.getAuthedHttpClient.call(void 0, );
|
|
916
916
|
const payload = await http.post(
|
|
917
917
|
"/api/v2/billing/checkout",
|
|
918
918
|
{
|
|
@@ -922,8 +922,8 @@ async function handleCheckout(options) {
|
|
|
922
922
|
}
|
|
923
923
|
);
|
|
924
924
|
const url = String(payload.url || payload.checkout_url || "");
|
|
925
|
-
if (!options.json && !options.noOpen && url)
|
|
926
|
-
|
|
925
|
+
if (!options.json && !options.noOpen && url) _chunk57VCSLVPjs.openInBrowser.call(void 0, url);
|
|
926
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
927
927
|
{
|
|
928
928
|
...payload,
|
|
929
929
|
render: {
|
|
@@ -954,7 +954,7 @@ async function handleTopUp(creditsRaw, options) {
|
|
|
954
954
|
}
|
|
955
955
|
const idempotencyKey = topUpIdempotencyKey(options.idempotencyKey);
|
|
956
956
|
if (options.dryRun) {
|
|
957
|
-
|
|
957
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
958
958
|
{
|
|
959
959
|
ok: true,
|
|
960
960
|
dry_run: true,
|
|
@@ -983,7 +983,7 @@ async function handleTopUp(creditsRaw, options) {
|
|
|
983
983
|
);
|
|
984
984
|
return;
|
|
985
985
|
}
|
|
986
|
-
const client = new (0,
|
|
986
|
+
const client = new (0, _chunkPVHEPQR6js.DeeplineClient)();
|
|
987
987
|
let payload;
|
|
988
988
|
try {
|
|
989
989
|
payload = await client.billing.topUpWithReceipt({
|
|
@@ -1000,7 +1000,7 @@ async function handleTopUp(creditsRaw, options) {
|
|
|
1000
1000
|
return;
|
|
1001
1001
|
}
|
|
1002
1002
|
if (payload.status === "pending") {
|
|
1003
|
-
|
|
1003
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
1004
1004
|
{
|
|
1005
1005
|
ok: true,
|
|
1006
1006
|
...payload,
|
|
@@ -1064,17 +1064,17 @@ async function handleTopUp(creditsRaw, options) {
|
|
|
1064
1064
|
]
|
|
1065
1065
|
}
|
|
1066
1066
|
};
|
|
1067
|
-
|
|
1067
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0, options.compact ? compactEnvelope : fullEnvelope, {
|
|
1068
1068
|
json: options.json
|
|
1069
1069
|
});
|
|
1070
1070
|
}
|
|
1071
1071
|
async function handleTargetStatus(options) {
|
|
1072
|
-
const client = new (0,
|
|
1072
|
+
const client = new (0, _chunkPVHEPQR6js.DeeplineClient)();
|
|
1073
1073
|
const payload = await client.billing.targetStatus();
|
|
1074
1074
|
const balanceCommand = "deepline billing balance --json";
|
|
1075
1075
|
const recentChargesCommand = "deepline billing usage --limit 5 --json";
|
|
1076
1076
|
const exactChargeCommand = "deepline billing usage --request-id <job_id> --json";
|
|
1077
|
-
|
|
1077
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
1078
1078
|
{
|
|
1079
1079
|
ok: true,
|
|
1080
1080
|
...payload,
|
|
@@ -1104,7 +1104,7 @@ async function handleTargetStatus(options) {
|
|
|
1104
1104
|
);
|
|
1105
1105
|
}
|
|
1106
1106
|
async function handleAutoRechargeStatus(options) {
|
|
1107
|
-
const payload = await new (0,
|
|
1107
|
+
const payload = await new (0, _chunkPVHEPQR6js.DeeplineClient)().billing.autoRecharge.get();
|
|
1108
1108
|
const state = payload.available ? payload.enabled ? "on" : "off" : "unavailable";
|
|
1109
1109
|
const lines = [
|
|
1110
1110
|
`State: ${state}`,
|
|
@@ -1114,7 +1114,7 @@ async function handleAutoRechargeStatus(options) {
|
|
|
1114
1114
|
`Automatic credit purchase cap: ${payload.purchase_limit_credits} credits per rolling 30 days`
|
|
1115
1115
|
] : []
|
|
1116
1116
|
];
|
|
1117
|
-
|
|
1117
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
1118
1118
|
{
|
|
1119
1119
|
ok: true,
|
|
1120
1120
|
...payload,
|
|
@@ -1163,7 +1163,7 @@ async function handleAutoRechargeSet(options) {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
|
|
1165
1165
|
if (options.dryRun) {
|
|
1166
|
-
|
|
1166
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
1167
1167
|
{
|
|
1168
1168
|
ok: true,
|
|
1169
1169
|
dry_run: true,
|
|
@@ -1184,7 +1184,7 @@ async function handleAutoRechargeSet(options) {
|
|
|
1184
1184
|
);
|
|
1185
1185
|
return;
|
|
1186
1186
|
}
|
|
1187
|
-
const payload = await new (0,
|
|
1187
|
+
const payload = await new (0, _chunkPVHEPQR6js.DeeplineClient)().billing.autoRecharge.update({
|
|
1188
1188
|
enabled: true,
|
|
1189
1189
|
thresholdCredits,
|
|
1190
1190
|
refillToCredits,
|
|
@@ -1192,7 +1192,7 @@ async function handleAutoRechargeSet(options) {
|
|
|
1192
1192
|
...rollingLimitCredits !== void 0 ? { purchaseLimitCredits: rollingLimitCredits } : {},
|
|
1193
1193
|
idempotencyKey
|
|
1194
1194
|
});
|
|
1195
|
-
|
|
1195
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
1196
1196
|
{ ok: true, idempotency_key: idempotencyKey, ...payload },
|
|
1197
1197
|
{ json: options.json }
|
|
1198
1198
|
);
|
|
@@ -1200,7 +1200,7 @@ async function handleAutoRechargeSet(options) {
|
|
|
1200
1200
|
async function handleAutoRechargeOff(options) {
|
|
1201
1201
|
const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
|
|
1202
1202
|
if (options.dryRun) {
|
|
1203
|
-
|
|
1203
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
1204
1204
|
{
|
|
1205
1205
|
ok: true,
|
|
1206
1206
|
dry_run: true,
|
|
@@ -1215,11 +1215,11 @@ async function handleAutoRechargeOff(options) {
|
|
|
1215
1215
|
);
|
|
1216
1216
|
return;
|
|
1217
1217
|
}
|
|
1218
|
-
const payload = await new (0,
|
|
1218
|
+
const payload = await new (0, _chunkPVHEPQR6js.DeeplineClient)().billing.autoRecharge.update({
|
|
1219
1219
|
enabled: false,
|
|
1220
1220
|
idempotencyKey
|
|
1221
1221
|
});
|
|
1222
|
-
|
|
1222
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
1223
1223
|
{ ok: true, idempotency_key: idempotencyKey, ...payload },
|
|
1224
1224
|
{ json: options.json }
|
|
1225
1225
|
);
|
|
@@ -1238,11 +1238,11 @@ async function handleBuyCredits(creditsRaw, options) {
|
|
|
1238
1238
|
return;
|
|
1239
1239
|
}
|
|
1240
1240
|
const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
|
|
1241
|
-
const payload = await new (0,
|
|
1241
|
+
const payload = await new (0, _chunkPVHEPQR6js.DeeplineClient)().billing.purchaseCredits({
|
|
1242
1242
|
credits,
|
|
1243
1243
|
idempotencyKey
|
|
1244
1244
|
});
|
|
1245
|
-
|
|
1245
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
1246
1246
|
{ ok: true, idempotency_key: idempotencyKey, ...payload },
|
|
1247
1247
|
{ json: options.json }
|
|
1248
1248
|
);
|
|
@@ -1278,7 +1278,7 @@ async function handleTopUpRecover(creditsRaw, options) {
|
|
|
1278
1278
|
return;
|
|
1279
1279
|
}
|
|
1280
1280
|
if (options.dryRun) {
|
|
1281
|
-
|
|
1281
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
1282
1282
|
{
|
|
1283
1283
|
ok: true,
|
|
1284
1284
|
dry_run: true,
|
|
@@ -1291,12 +1291,12 @@ async function handleTopUpRecover(creditsRaw, options) {
|
|
|
1291
1291
|
);
|
|
1292
1292
|
return;
|
|
1293
1293
|
}
|
|
1294
|
-
const payload = await new (0,
|
|
1294
|
+
const payload = await new (0, _chunkPVHEPQR6js.DeeplineClient)().billing.recoverCreditPurchase({
|
|
1295
1295
|
credits,
|
|
1296
1296
|
orgId: options.orgId,
|
|
1297
1297
|
idempotencyKey: options.idempotencyKey
|
|
1298
1298
|
});
|
|
1299
|
-
|
|
1299
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
1300
1300
|
{ ok: true, idempotency_key: options.idempotencyKey, ...payload },
|
|
1301
1301
|
{ json: options.json }
|
|
1302
1302
|
);
|
|
@@ -1316,37 +1316,37 @@ async function handleTargetPlan(planSku, options) {
|
|
|
1316
1316
|
return;
|
|
1317
1317
|
}
|
|
1318
1318
|
const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
|
|
1319
|
-
const payload = await new (0,
|
|
1319
|
+
const payload = await new (0, _chunkPVHEPQR6js.DeeplineClient)().billing.transitionPlan({
|
|
1320
1320
|
action: "start_or_change",
|
|
1321
1321
|
targetPlanSku: planSku,
|
|
1322
1322
|
...options.billingEmail ? { billingEmail: options.billingEmail } : {},
|
|
1323
1323
|
idempotencyKey
|
|
1324
1324
|
});
|
|
1325
|
-
|
|
1325
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
1326
1326
|
{ ok: true, idempotency_key: idempotencyKey, ...payload },
|
|
1327
1327
|
{ json: options.json }
|
|
1328
1328
|
);
|
|
1329
1329
|
}
|
|
1330
1330
|
async function handleTargetPlanCancellation(options) {
|
|
1331
1331
|
const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
|
|
1332
|
-
const payload = await new (0,
|
|
1332
|
+
const payload = await new (0, _chunkPVHEPQR6js.DeeplineClient)().billing.transitionPlan({
|
|
1333
1333
|
action: options.undo ? "undo_cancel" : "cancel",
|
|
1334
1334
|
idempotencyKey
|
|
1335
1335
|
});
|
|
1336
|
-
|
|
1336
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
1337
1337
|
{ ok: true, idempotency_key: idempotencyKey, ...payload },
|
|
1338
1338
|
{ json: options.json }
|
|
1339
1339
|
);
|
|
1340
1340
|
}
|
|
1341
1341
|
async function handleTargetPortal(options) {
|
|
1342
|
-
const payload = await new (0,
|
|
1342
|
+
const payload = await new (0, _chunkPVHEPQR6js.DeeplineClient)().billing.portalSession(
|
|
1343
1343
|
options.billingAddress ? { flow: "customer_update" } : void 0
|
|
1344
1344
|
);
|
|
1345
|
-
if (!options.json && !options.noOpen)
|
|
1346
|
-
|
|
1345
|
+
if (!options.json && !options.noOpen) _chunk57VCSLVPjs.openInBrowser.call(void 0, payload.url);
|
|
1346
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
|
|
1347
1347
|
}
|
|
1348
1348
|
async function handleRedeemCode(code, options) {
|
|
1349
|
-
const { http } =
|
|
1349
|
+
const { http } = _chunk57VCSLVPjs.getAuthedHttpClient.call(void 0, );
|
|
1350
1350
|
const payload = await http.post(
|
|
1351
1351
|
"/api/v2/billing/checkout",
|
|
1352
1352
|
{
|
|
@@ -1354,8 +1354,8 @@ async function handleRedeemCode(code, options) {
|
|
|
1354
1354
|
}
|
|
1355
1355
|
);
|
|
1356
1356
|
const url = String(payload.url || payload.checkout_url || "");
|
|
1357
|
-
if (!options.json && !options.noOpen && url)
|
|
1358
|
-
|
|
1357
|
+
if (!options.json && !options.noOpen && url) _chunk57VCSLVPjs.openInBrowser.call(void 0, url);
|
|
1358
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0,
|
|
1359
1359
|
{
|
|
1360
1360
|
...payload,
|
|
1361
1361
|
render: {
|
|
@@ -1616,8 +1616,8 @@ Examples:
|
|
|
1616
1616
|
new (0, _commander.Command)("trigger").description(
|
|
1617
1617
|
"Evaluate capped automatic recharge and resume any pending purchase."
|
|
1618
1618
|
).option("--json", "Emit JSON output").action(async (options) => {
|
|
1619
|
-
const result = await new (0,
|
|
1620
|
-
|
|
1619
|
+
const result = await new (0, _chunkPVHEPQR6js.DeeplineClient)().billing.autoRecharge.trigger();
|
|
1620
|
+
_chunk57VCSLVPjs.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
|
|
1621
1621
|
})
|
|
1622
1622
|
);
|
|
1623
1623
|
billing.command("change-plan").description("Start or change the target billing plan.").argument("<plan_sku>", "payg-v1, builder-v1, growth-v1, or team-v1").option(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient,
|
|
3
3
|
iterateCursorPages
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7V6BVNXM.mjs";
|
|
5
5
|
import "./chunk-CBVIJSHF.mjs";
|
|
6
6
|
import {
|
|
7
7
|
createTimestampedName,
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
openInBrowser,
|
|
10
10
|
printCommandEnvelope,
|
|
11
11
|
shouldEmitJson
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-P5BBV56E.mjs";
|
|
13
13
|
import {
|
|
14
14
|
AuthError,
|
|
15
15
|
ConfigError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-T6BFDDO7.mjs";
|
|
17
17
|
import "./chunk-DLIRSHV6.mjs";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-QVH4OR5R.mjs";
|
|
19
19
|
import "./chunk-6IKARAYD.mjs";
|
|
20
20
|
import {
|
|
21
21
|
DeeplineError
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.321",
|
|
53
53
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
54
54
|
packageCapabilities: {
|
|
55
55
|
updatePreferences: 1
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7V6BVNXM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-P5BBV56E.mjs";
|
|
7
7
|
import {
|
|
8
8
|
resolveConfig,
|
|
9
9
|
sdkCliStateDirPath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-T6BFDDO7.mjs";
|
|
11
11
|
|
|
12
12
|
// src/cli/search-ref.ts
|
|
13
13
|
import { mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkFBJSFMZMjs = require('./chunk-FBJSFMZM.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -136,8 +136,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
136
136
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
137
137
|
var defaultBrowserCommandRunner = childProcess;
|
|
138
138
|
function getAuthedHttpClient() {
|
|
139
|
-
const config =
|
|
140
|
-
return { config, http: new (0,
|
|
139
|
+
const config = _chunkFBJSFMZMjs.resolveConfig.call(void 0, );
|
|
140
|
+
return { config, http: new (0, _chunkFBJSFMZMjs.HttpClient)(config) };
|
|
141
141
|
}
|
|
142
142
|
function stableOsUserId() {
|
|
143
143
|
try {
|
|
@@ -477,7 +477,7 @@ function collectLocalEnvInfo() {
|
|
|
477
477
|
os: `${process.platform} ${process.arch}`,
|
|
478
478
|
node_version: process.version,
|
|
479
479
|
home_dir: homeDir,
|
|
480
|
-
agent_runtime:
|
|
480
|
+
agent_runtime: _chunkFBJSFMZMjs.detectAgentRuntime.call(void 0, )
|
|
481
481
|
};
|
|
482
482
|
const env = process.env;
|
|
483
483
|
const optional = {
|
|
@@ -725,9 +725,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
725
725
|
}
|
|
726
726
|
function withAgentCommandContext(value) {
|
|
727
727
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
728
|
-
return
|
|
728
|
+
return _chunkFBJSFMZMjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
729
729
|
...valueRecord,
|
|
730
|
-
command_context:
|
|
730
|
+
command_context: _chunkFBJSFMZMjs.resolveCliCommandContext.call(void 0, )
|
|
731
731
|
} : value;
|
|
732
732
|
}
|
|
733
733
|
function printJson(value, fields) {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk23LWIJU5js = require('./chunk-23LWIJU5.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -721,9 +721,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
|
|
|
721
721
|
}
|
|
722
722
|
|
|
723
723
|
// src/version.ts
|
|
724
|
-
var SDK_VERSION =
|
|
725
|
-
var SDK_API_MAJOR =
|
|
726
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
724
|
+
var SDK_VERSION = _chunk23LWIJU5js.SDK_RELEASE.version;
|
|
725
|
+
var SDK_API_MAJOR = _chunk23LWIJU5js.SDK_RELEASE.contracts.api.currentMajor;
|
|
726
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunk23LWIJU5js.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
727
727
|
|
|
728
728
|
// src/agent-runtime.ts
|
|
729
729
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Q7I47LE7.mjs";
|
|
5
5
|
import {
|
|
6
6
|
resolveShellSpawn,
|
|
7
7
|
runSkillsCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MMIICHOJ.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-P5BBV56E.mjs";
|
|
12
12
|
import {
|
|
13
13
|
autoDetectBaseUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-T6BFDDO7.mjs";
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
import { spawn, spawnSync } from "child_process";
|