deepline 0.3.485 → 0.3.486
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/play-runtime/ledger-safe-payload.ts +8 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +37 -44
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +2 -9
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +7 -26
- package/dist/cli/auth-ARKH3OAU.js +43 -0
- package/dist/cli/{auth-OWMUENCU.mjs → auth-B4DJO4FB.mjs} +5 -5
- package/dist/cli/{billing-2FMNQGOX.js → billing-GDWAMARK.js} +79 -79
- package/dist/cli/{billing-JX4H3VFF.mjs → billing-IIQ3VNXU.mjs} +6 -6
- package/dist/cli/{chunk-3Z24NKW7.mjs → chunk-2DVFQYPG.mjs} +10 -10
- package/dist/cli/{chunk-T4G2T5DS.js → chunk-5DUP4ZUE.js} +21 -21
- package/dist/cli/{chunk-KZTNNLIL.mjs → chunk-5QYZ4MEW.mjs} +2 -2
- package/dist/cli/{chunk-TSCUWWTM.mjs → chunk-5RLVCOKH.mjs} +1 -1
- package/dist/cli/{chunk-JD6HKNKD.mjs → chunk-5Y7LLRWO.mjs} +1 -1
- package/dist/cli/{chunk-ECIXZNSW.js → chunk-5YILTBF7.js} +53 -53
- package/dist/cli/{chunk-JQXUWYWX.js → chunk-7FTQKEZ6.js} +10 -10
- package/dist/cli/{chunk-TMCC7ORQ.mjs → chunk-A456YVDE.mjs} +1 -1
- package/dist/cli/{chunk-S3WQJ5VG.js → chunk-BJL7RYQN.js} +3 -3
- package/dist/cli/{chunk-IHMYIHF4.js → chunk-BNB2RK4L.js} +5 -5
- package/dist/cli/{chunk-BSKPQB2P.js → chunk-BYEDI5PM.js} +7 -7
- package/dist/cli/{chunk-5DCQWQCP.js → chunk-C4GFBB52.js} +26 -26
- package/dist/cli/{chunk-DMNVM34J.js → chunk-DFHS5XVZ.js} +4 -4
- package/dist/cli/{chunk-E73JXJA3.mjs → chunk-F3G2HAUQ.mjs} +1 -1
- package/dist/cli/{chunk-UQ3LQ6IF.js → chunk-FCAKAW6S.js} +5 -5
- package/dist/cli/{chunk-W33OL4F2.mjs → chunk-FGPJXQEJ.mjs} +2 -2
- package/dist/cli/{chunk-C6QWRSMQ.js → chunk-FSCOYTRV.js} +6 -6
- package/dist/cli/{chunk-NKPTM7SK.js → chunk-GCEUOHJW.js} +7 -7
- package/dist/cli/{chunk-3OF7NSGR.js → chunk-KPIVQFXZ.js} +94 -94
- package/dist/cli/{chunk-GHHJWCMD.mjs → chunk-MJ56FCYU.mjs} +1 -1
- package/dist/cli/{chunk-TVW6USSG.js → chunk-NSPMJLYA.js} +3 -3
- package/dist/cli/{chunk-3DBW6C7M.mjs → chunk-P6KGYOCM.mjs} +2 -2
- package/dist/cli/{chunk-NLRTFJGH.js → chunk-PCYZDTDC.js} +9 -9
- package/dist/cli/{chunk-U6WEGDD3.js → chunk-PHWFY26F.js} +2 -2
- package/dist/cli/{chunk-FJY6K3BG.mjs → chunk-PKOFEHZL.mjs} +1 -1
- package/dist/cli/{chunk-L352NOE3.mjs → chunk-PQHDZHZG.mjs} +2 -2
- package/dist/cli/{chunk-NRNWPWBW.js → chunk-PTM3QRAT.js} +37 -37
- package/dist/cli/{chunk-YDA3PMKK.mjs → chunk-PV7AYBKQ.mjs} +2 -2
- package/dist/cli/{chunk-ACTUAZYP.mjs → chunk-PYDHVRAF.mjs} +4 -4
- package/dist/cli/{chunk-775AZTO7.js → chunk-QD22TY33.js} +7 -7
- package/dist/cli/{chunk-EC2CVPN5.js → chunk-QEQ3KHVY.js} +3 -3
- package/dist/cli/{chunk-L7IQ3DFH.js → chunk-S5EYODEG.js} +53 -53
- package/dist/cli/{chunk-HKGXGGIV.js → chunk-S7OILDJH.js} +1 -1
- package/dist/cli/{chunk-G5PI3RNT.mjs → chunk-T3Q6BMVH.mjs} +1 -1
- package/dist/cli/{chunk-RZE5I2XJ.mjs → chunk-TBE2K5W4.mjs} +4 -4
- package/dist/cli/{chunk-CW6TAQBF.mjs → chunk-TE2QT2MX.mjs} +4 -4
- package/dist/cli/{chunk-AFADYKFE.js → chunk-TNHY3ATN.js} +8 -8
- package/dist/cli/{chunk-3DYU3JQN.mjs → chunk-U23L57VU.mjs} +2 -2
- package/dist/cli/{chunk-VZYTLWOM.mjs → chunk-UEJLWUJ3.mjs} +2 -2
- package/dist/cli/{chunk-676NZ7K4.mjs → chunk-VJLL5XIP.mjs} +1 -1
- package/dist/cli/{chunk-2ZEQ43B7.mjs → chunk-WCOJH4W4.mjs} +3 -3
- package/dist/cli/{chunk-SR6S4EYG.mjs → chunk-XAZWUW6I.mjs} +5 -5
- package/dist/cli/{chunk-UPHXGZCE.mjs → chunk-YIKHNZ6B.mjs} +4 -4
- package/dist/cli/{chunk-2ILND7XX.js → chunk-YS6JOYYS.js} +2 -2
- package/dist/cli/{chunk-62PJ6PK7.mjs → chunk-ZMRZ3BXG.mjs} +5 -5
- package/dist/cli/{chunk-OW4OTEFF.js → chunk-ZQI26KE4.js} +16 -16
- package/dist/cli/{csv-HFEQPGNY.js → csv-3PSMPZM5.js} +13 -13
- package/dist/cli/{csv-OHF3Y5KB.mjs → csv-LFCT3WQ4.mjs} +4 -4
- package/dist/cli/{db-M456OUXD.mjs → db-HULKVAMU.mjs} +6 -6
- package/dist/cli/{db-VLQKCYQS.js → db-R7I2PPTV.js} +27 -27
- package/dist/cli/{describe-M6VXFYVL.mjs → describe-D55V42LH.mjs} +17 -17
- package/dist/cli/describe-H47BLOEP.js +49 -0
- package/dist/cli/{executions-4FGRBPJF.mjs → executions-ICVVOYVG.mjs} +6 -6
- package/dist/cli/{executions-GKINJZI6.js → executions-O37FN2SK.js} +8 -8
- package/dist/cli/{feedback-D2WMGK3V.mjs → feedback-3K3QPGCQ.mjs} +4 -4
- package/dist/cli/{feedback-ZH5K7WV7.js → feedback-MAZQ7C6S.js} +8 -8
- package/dist/cli/{git-OCIJ5ME4.mjs → git-2MMD5KJS.mjs} +5 -5
- package/dist/cli/git-RQ2XLFYZ.js +25 -0
- package/dist/cli/index.js +137 -137
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-QNIVP7LO.js → legacy-noops-2OX2Y3Y2.js} +8 -8
- package/dist/cli/{legacy-noops-V6Q2X34P.mjs → legacy-noops-VLSWJ6VE.mjs} +5 -5
- package/dist/cli/{monitors-2USHTG5G.mjs → monitors-2NODQQWG.mjs} +7 -7
- package/dist/cli/{monitors-5DNK7W2K.js → monitors-UCSV5FOR.js} +91 -91
- package/dist/cli/{org-RPGM5AN4.js → org-4YY73VTW.js} +72 -72
- package/dist/cli/{org-TL2YPYSE.mjs → org-W7AUQCDE.mjs} +6 -6
- package/dist/cli/{pages-PNUKPFWV.js → pages-FBZEUMXK.js} +17 -17
- package/dist/cli/{pages-XDEW6EE3.mjs → pages-ZRP7U5PO.mjs} +6 -6
- package/dist/cli/{play-F5LHRKV5.js → play-LFCTQJXA.js} +312 -312
- package/dist/cli/{play-WINNQ4HZ.mjs → play-XF2BSGTP.mjs} +17 -17
- package/dist/cli/{providers-BD4IS5U5.js → providers-5456JNHP.js} +9 -9
- package/dist/cli/{providers-PXGL3FRE.mjs → providers-SICAPKGI.mjs} +6 -6
- package/dist/cli/{quickstart-7LVF6HZF.js → quickstart-2KLLIPIU.js} +6 -6
- package/dist/cli/{quickstart-XTH3UQWZ.mjs → quickstart-IBVG6GX6.mjs} +4 -4
- package/dist/cli/{run-NH2BAWPA.js → run-DNLDGJRC.js} +36 -36
- package/dist/cli/{run-MBMUENR7.mjs → run-XPIZIQ7H.mjs} +22 -22
- package/dist/cli/search-2KQA65LH.js +32 -0
- package/dist/cli/{search-BMRWBV66.mjs → search-PW22AEAL.mjs} +7 -7
- package/dist/cli/{search-output-5NNT337U.js → search-output-H6F6QMRF.js} +6 -6
- package/dist/cli/{search-output-QKKRD4MF.mjs → search-output-JFD53H2N.mjs} +4 -4
- package/dist/cli/{secrets-AWEXBTJV.mjs → secrets-542CTZRZ.mjs} +6 -6
- package/dist/cli/{secrets-KQSTOREN.js → secrets-LCCRRAN7.js} +15 -15
- package/dist/cli/{sessions-DSPLZYCJ.js → sessions-5FYDQE3N.js} +6 -6
- package/dist/cli/{sessions-RO25Q67X.mjs → sessions-CALLS2XD.mjs} +5 -5
- package/dist/cli/{settings-JMGXGK4Z.mjs → settings-GSKPHUEC.mjs} +11 -11
- package/dist/cli/{settings-7JXIKNKI.js → settings-ORGKOBP6.js} +78 -78
- package/dist/cli/{setup-5QFAQQRW.js → setup-4BUWJKB6.js} +47 -47
- package/dist/cli/{setup-ZQZ47FHB.mjs → setup-V57GHVAF.mjs} +9 -9
- package/dist/cli/skills-KYZPPGSN.js +33 -0
- package/dist/cli/{skills-W3H2DL56.mjs → skills-NGLCFQFT.mjs} +7 -7
- package/dist/cli/tools-AFYXUEMD.js +56 -0
- package/dist/cli/{tools-2BZCVNBS.mjs → tools-G2YNCFNX.mjs} +16 -16
- package/dist/cli/{update-GAWYMGAW.mjs → update-IZ3Z5T5C.mjs} +9 -9
- package/dist/cli/update-T6JJ7A3K.js +33 -0
- package/dist/cli/{workflow-ZPTDFPKW.js → workflow-7AHST2XV.js} +17 -17
- package/dist/cli/{workflow-M6LLHQ2I.mjs → workflow-L7ROQIM7.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +98 -98
- 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-ABZBH55L.js +0 -43
- package/dist/cli/describe-CP35DZ5Z.js +0 -49
- package/dist/cli/git-IDALMZDN.js +0 -25
- package/dist/cli/search-R3MQJQMT.js +0 -32
- package/dist/cli/skills-EDZXY7DV.js +0 -33
- package/dist/cli/tools-2EY2ETCZ.js +0 -56
- package/dist/cli/update-UKDQKNBY.js +0 -33
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkNSPMJLYAjs = require('./chunk-NSPMJLYA.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkGCEUOHJWjs = require('./chunk-GCEUOHJW.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -48,10 +48,10 @@ var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
|
|
|
48
48
|
var _chunkHGFFYVXNjs = require('./chunk-HGFFYVXN.js');
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
var
|
|
51
|
+
var _chunkBNB2RK4Ljs = require('./chunk-BNB2RK4L.js');
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
var
|
|
54
|
+
var _chunkQD22TY33js = require('./chunk-QD22TY33.js');
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
|
|
@@ -61,18 +61,18 @@ var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
|
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
var
|
|
64
|
+
var _chunk5DUP4ZUEjs = require('./chunk-5DUP4ZUE.js');
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
var
|
|
69
|
+
var _chunkPHWFY26Fjs = require('./chunk-PHWFY26F.js');
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
|
|
75
|
-
var
|
|
75
|
+
var _chunk5YILTBF7js = require('./chunk-5YILTBF7.js');
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
|
|
@@ -80,12 +80,12 @@ var _chunkECIXZNSWjs = require('./chunk-ECIXZNSW.js');
|
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
var
|
|
83
|
+
var _chunkBYEDI5PMjs = require('./chunk-BYEDI5PM.js');
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
|
|
87
87
|
|
|
88
|
-
var
|
|
88
|
+
var _chunkBJL7RYQNjs = require('./chunk-BJL7RYQN.js');
|
|
89
89
|
|
|
90
90
|
|
|
91
91
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -191,10 +191,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
|
|
|
191
191
|
}
|
|
192
192
|
};
|
|
193
193
|
function pendingToolExecutionPath(input) {
|
|
194
|
-
const config =
|
|
194
|
+
const config = _chunkBJL7RYQNjs.resolveConfig.call(void 0, );
|
|
195
195
|
const fingerprint = _crypto.createHash.call(void 0, "sha256").update(config.baseUrl).update("\0").update(_crypto.createHash.call(void 0, "sha256").update(config.apiKey).digest("hex")).update("\0").update(input.toolId).update("\0").update(_chunkXDVT3GOMjs.stableStringify.call(void 0, input.params)).update("\0").update(input.responseIntent).digest("hex");
|
|
196
196
|
return _path.join.call(void 0,
|
|
197
|
-
|
|
197
|
+
_chunkBJL7RYQNjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
|
|
198
198
|
`${PENDING_PREFIX}${fingerprint}.json`
|
|
199
199
|
);
|
|
200
200
|
}
|
|
@@ -507,13 +507,13 @@ function categoryEnumerationRender(summaries) {
|
|
|
507
507
|
};
|
|
508
508
|
}
|
|
509
509
|
async function listToolCategories(emitJson, compact) {
|
|
510
|
-
const client = new (0,
|
|
510
|
+
const client = new (0, _chunkBNB2RK4Ljs.DeeplineClient)();
|
|
511
511
|
if (!emitJson) {
|
|
512
512
|
const summaries2 = (await client.listToolCategories()).map((category) => ({
|
|
513
513
|
...category,
|
|
514
514
|
description: describeToolCategory(category.name)
|
|
515
515
|
}));
|
|
516
|
-
|
|
516
|
+
_chunkBYEDI5PMjs.printCommandEnvelope.call(void 0,
|
|
517
517
|
{ categories: summaries2, render: categoryEnumerationRender(summaries2) },
|
|
518
518
|
{ json: false }
|
|
519
519
|
);
|
|
@@ -523,7 +523,7 @@ async function listToolCategories(emitJson, compact) {
|
|
|
523
523
|
const items = rawTools.map(toListedTool);
|
|
524
524
|
const summaries = aggregateCategorySummaries(rawTools);
|
|
525
525
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
526
|
-
|
|
526
|
+
_chunkBYEDI5PMjs.printCommandEnvelope.call(void 0,
|
|
527
527
|
{
|
|
528
528
|
tools: outputItems,
|
|
529
529
|
count: outputItems.length,
|
|
@@ -542,7 +542,7 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
542
542
|
const known = summaries.map((item) => item.name);
|
|
543
543
|
const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
|
|
544
544
|
if (emitJson) {
|
|
545
|
-
|
|
545
|
+
_chunkBYEDI5PMjs.printJson.call(void 0, {
|
|
546
546
|
ok: false,
|
|
547
547
|
exitCode: 4,
|
|
548
548
|
code: "TOOL_CATEGORY_NOT_FOUND",
|
|
@@ -556,13 +556,13 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
556
556
|
const render = categoryEnumerationRender(summaries);
|
|
557
557
|
console.error(message);
|
|
558
558
|
console.error("");
|
|
559
|
-
console.error(
|
|
559
|
+
console.error(_chunkBYEDI5PMjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
|
|
560
560
|
console.error("");
|
|
561
561
|
console.error(`Valid categories: ${known.join(", ")}`);
|
|
562
562
|
return 4;
|
|
563
563
|
}
|
|
564
564
|
async function listToolsInCategory(category, emitJson) {
|
|
565
|
-
const client = new (0,
|
|
565
|
+
const client = new (0, _chunkBNB2RK4Ljs.DeeplineClient)();
|
|
566
566
|
const { tools: rawTools, categories } = await client.listToolsInCategory(category);
|
|
567
567
|
const summaries = categories.map((item) => ({
|
|
568
568
|
...item,
|
|
@@ -598,7 +598,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
598
598
|
}
|
|
599
599
|
]
|
|
600
600
|
};
|
|
601
|
-
|
|
601
|
+
_chunkBYEDI5PMjs.printCommandEnvelope.call(void 0,
|
|
602
602
|
{
|
|
603
603
|
category,
|
|
604
604
|
total: rows.length,
|
|
@@ -611,7 +611,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
611
611
|
return 0;
|
|
612
612
|
}
|
|
613
613
|
async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
|
|
614
|
-
const client = new (0,
|
|
614
|
+
const client = new (0, _chunkBNB2RK4Ljs.DeeplineClient)();
|
|
615
615
|
const items = (await client.listTools({
|
|
616
616
|
categories: requestedCategories.join(","),
|
|
617
617
|
compact
|
|
@@ -640,7 +640,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
|
|
|
640
640
|
]
|
|
641
641
|
};
|
|
642
642
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
643
|
-
|
|
643
|
+
_chunkBYEDI5PMjs.printCommandEnvelope.call(void 0,
|
|
644
644
|
{
|
|
645
645
|
tools: outputItems,
|
|
646
646
|
count: outputItems.length,
|
|
@@ -659,13 +659,13 @@ async function listTools(category, options = {}) {
|
|
|
659
659
|
const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
|
|
660
660
|
const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
|
|
661
661
|
const compact = options.compact !== false;
|
|
662
|
-
const emitJson = options.json === true ||
|
|
662
|
+
const emitJson = options.json === true || _chunkBYEDI5PMjs.shouldEmitJson.call(void 0, );
|
|
663
663
|
if (positional && flagCategories.length > 0) {
|
|
664
664
|
const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
|
|
665
665
|
if (!flagIsSameSingle) {
|
|
666
666
|
const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
|
|
667
667
|
if (emitJson) {
|
|
668
|
-
|
|
668
|
+
_chunkBYEDI5PMjs.printJson.call(void 0, {
|
|
669
669
|
ok: false,
|
|
670
670
|
exitCode: 2,
|
|
671
671
|
code: "TOOL_LIST_CATEGORY_CONFLICT",
|
|
@@ -692,7 +692,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
692
692
|
console.error("Usage: deepline tools grep <query> [--json]");
|
|
693
693
|
return 1;
|
|
694
694
|
}
|
|
695
|
-
const client = new (0,
|
|
695
|
+
const client = new (0, _chunkBNB2RK4Ljs.DeeplineClient)();
|
|
696
696
|
const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
|
|
697
697
|
const mode = _nullishCoalesce(options.mode, () => ( "all"));
|
|
698
698
|
const jsonOutput = options.json === true;
|
|
@@ -716,7 +716,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
716
716
|
query,
|
|
717
717
|
mode
|
|
718
718
|
}) : null;
|
|
719
|
-
|
|
719
|
+
_chunkBYEDI5PMjs.printCommandEnvelope.call(void 0,
|
|
720
720
|
{
|
|
721
721
|
tools: outputTools,
|
|
722
722
|
count: outputTools.length,
|
|
@@ -734,7 +734,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
734
734
|
} : {},
|
|
735
735
|
commandTemplates: TOOL_COMMAND_TEMPLATES
|
|
736
736
|
},
|
|
737
|
-
{ json: options.json ||
|
|
737
|
+
{ json: options.json || _chunkBYEDI5PMjs.shouldEmitJson.call(void 0, ) }
|
|
738
738
|
);
|
|
739
739
|
return 0;
|
|
740
740
|
}
|
|
@@ -845,7 +845,7 @@ Output:
|
|
|
845
845
|
if (options.preset !== void 0 && (options.scopes !== void 0 || options.optionalScopes !== void 0))
|
|
846
846
|
throw new Error("Use --preset or individual scopes, not both.");
|
|
847
847
|
const splitScopes = (value) => value.split(",").map((scope) => scope.trim()).filter(Boolean);
|
|
848
|
-
const result2 = await new (0,
|
|
848
|
+
const result2 = await new (0, _chunkBNB2RK4Ljs.DeeplineClient)().startIntegrationOAuth(
|
|
849
849
|
provider,
|
|
850
850
|
{
|
|
851
851
|
...options.preset !== void 0 ? { preset: options.preset } : {},
|
|
@@ -857,7 +857,7 @@ Output:
|
|
|
857
857
|
throw new Error(
|
|
858
858
|
"The API did not return an OAuth authorization URL."
|
|
859
859
|
);
|
|
860
|
-
if (
|
|
860
|
+
if (_chunkBYEDI5PMjs.shouldEmitJson.call(void 0, options.json))
|
|
861
861
|
console.log(
|
|
862
862
|
JSON.stringify({ provider, redirect_url: result2.redirect_url })
|
|
863
863
|
);
|
|
@@ -883,7 +883,7 @@ Output:
|
|
|
883
883
|
"--credentials-file must contain a nonempty JSON object of string credential values."
|
|
884
884
|
);
|
|
885
885
|
}
|
|
886
|
-
const result = await new (0,
|
|
886
|
+
const result = await new (0, _chunkBNB2RK4Ljs.DeeplineClient)().setIntegrationCredentials(
|
|
887
887
|
provider,
|
|
888
888
|
credentials
|
|
889
889
|
);
|
|
@@ -893,7 +893,7 @@ Output:
|
|
|
893
893
|
);
|
|
894
894
|
}
|
|
895
895
|
const confirmation = { provider, credential_saved: true };
|
|
896
|
-
if (
|
|
896
|
+
if (_chunkBYEDI5PMjs.shouldEmitJson.call(void 0, options.json))
|
|
897
897
|
console.log(JSON.stringify(confirmation));
|
|
898
898
|
else
|
|
899
899
|
console.log(
|
|
@@ -933,7 +933,7 @@ Examples:
|
|
|
933
933
|
json: Boolean(options.json)
|
|
934
934
|
});
|
|
935
935
|
});
|
|
936
|
-
|
|
936
|
+
_chunkGCEUOHJWjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
|
|
937
937
|
tools.command("grep <query>").description(
|
|
938
938
|
"Regex grep over tool ids, descriptions, categories, and input fields."
|
|
939
939
|
).addHelpText(
|
|
@@ -968,7 +968,7 @@ Examples:
|
|
|
968
968
|
});
|
|
969
969
|
const addToolMetadataCommand = (command) => {
|
|
970
970
|
let compatibilityMetadata;
|
|
971
|
-
|
|
971
|
+
_chunk5DUP4ZUEjs.registerCompatibilityCatalog.call(void 0, command, () => ({
|
|
972
972
|
toolId: command.args[0],
|
|
973
973
|
acceptMetadata: (metadata) => {
|
|
974
974
|
compatibilityMetadata = metadata;
|
|
@@ -1038,7 +1038,7 @@ Examples:
|
|
|
1038
1038
|
process.exitCode = await narrowView();
|
|
1039
1039
|
return;
|
|
1040
1040
|
}
|
|
1041
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
1041
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-H47BLOEP.js")));
|
|
1042
1042
|
process.exitCode = await describeAnything(
|
|
1043
1043
|
toolId,
|
|
1044
1044
|
{
|
|
@@ -1053,7 +1053,7 @@ Examples:
|
|
|
1053
1053
|
});
|
|
1054
1054
|
};
|
|
1055
1055
|
addToolMetadataCommand(
|
|
1056
|
-
|
|
1056
|
+
_chunkNSPMJLYAjs.addDescribeOptions.call(void 0,
|
|
1057
1057
|
tools.command("describe <toolId>", { hidden: true }).alias("get"),
|
|
1058
1058
|
{ json: false }
|
|
1059
1059
|
)
|
|
@@ -1122,7 +1122,7 @@ Examples:
|
|
|
1122
1122
|
options,
|
|
1123
1123
|
void 0,
|
|
1124
1124
|
true,
|
|
1125
|
-
|
|
1125
|
+
_chunkPHWFY26Fjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
1126
1126
|
);
|
|
1127
1127
|
}
|
|
1128
1128
|
);
|
|
@@ -1130,13 +1130,13 @@ Examples:
|
|
|
1130
1130
|
function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
1131
1131
|
let metadata;
|
|
1132
1132
|
const startedAt = performance.now();
|
|
1133
|
-
const baseUrl =
|
|
1134
|
-
|
|
1135
|
-
const result =
|
|
1133
|
+
const baseUrl = _chunkBJL7RYQNjs.resolveConfig.call(void 0, ).baseUrl;
|
|
1134
|
+
_chunkPHWFY26Fjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
|
|
1135
|
+
const result = _chunk5DUP4ZUEjs.runToolExecuteStage.call(void 0,
|
|
1136
1136
|
"SDK compatibility",
|
|
1137
|
-
() =>
|
|
1137
|
+
() => _chunk5YILTBF7js.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
1138
1138
|
command: "tools execute",
|
|
1139
|
-
skillsVersion:
|
|
1139
|
+
skillsVersion: _chunkBJL7RYQNjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
|
|
1140
1140
|
persistCache: false,
|
|
1141
1141
|
timeoutMs: TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS,
|
|
1142
1142
|
catalog: {
|
|
@@ -1150,7 +1150,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
|
1150
1150
|
})
|
|
1151
1151
|
).then(
|
|
1152
1152
|
(compatibility) => {
|
|
1153
|
-
|
|
1153
|
+
_chunkPHWFY26Fjs.recordCliTrace.call(void 0, {
|
|
1154
1154
|
phase: "cli.tool_execute_compatibility_ready",
|
|
1155
1155
|
ms: performance.now() - startedAt,
|
|
1156
1156
|
ok: compatibility.error === null,
|
|
@@ -1159,7 +1159,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
|
1159
1159
|
return compatibility;
|
|
1160
1160
|
},
|
|
1161
1161
|
(error) => {
|
|
1162
|
-
|
|
1162
|
+
_chunkPHWFY26Fjs.recordCliTrace.call(void 0, {
|
|
1163
1163
|
phase: "cli.tool_execute_compatibility_ready",
|
|
1164
1164
|
ms: performance.now() - startedAt,
|
|
1165
1165
|
ok: false
|
|
@@ -1174,7 +1174,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1174
1174
|
console.error("Usage: deepline tools describe <toolId> [--json]");
|
|
1175
1175
|
return 1;
|
|
1176
1176
|
}
|
|
1177
|
-
const client = new (0,
|
|
1177
|
+
const client = new (0, _chunkBNB2RK4Ljs.DeeplineClient)();
|
|
1178
1178
|
let tool;
|
|
1179
1179
|
try {
|
|
1180
1180
|
tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
|
|
@@ -1228,7 +1228,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1228
1228
|
const lines = toolPricingOnlyLines(tool, toolId);
|
|
1229
1229
|
if (inferenceQuote)
|
|
1230
1230
|
lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
|
|
1231
|
-
|
|
1231
|
+
_chunkBYEDI5PMjs.printCommandEnvelope.call(void 0,
|
|
1232
1232
|
{
|
|
1233
1233
|
toolId: String(tool.toolId || toolId),
|
|
1234
1234
|
cost: _chunkXK5DMLZEjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
@@ -1251,7 +1251,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1251
1251
|
void 0,
|
|
1252
1252
|
seedToolListScript
|
|
1253
1253
|
);
|
|
1254
|
-
|
|
1254
|
+
_chunkBYEDI5PMjs.printCompactJson.call(void 0, {
|
|
1255
1255
|
toolId: contract.toolId,
|
|
1256
1256
|
...options.schemaOnly ? {
|
|
1257
1257
|
inputSchema: contract.inputSchema,
|
|
@@ -1274,7 +1274,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1274
1274
|
return 0;
|
|
1275
1275
|
}
|
|
1276
1276
|
if (options.contractJson) {
|
|
1277
|
-
|
|
1277
|
+
_chunkBYEDI5PMjs.printCompactJson.call(void 0, {
|
|
1278
1278
|
..._chunkLOX3BISDjs.toolContractJsonForDescribe.call(void 0,
|
|
1279
1279
|
tool,
|
|
1280
1280
|
toolId,
|
|
@@ -1288,7 +1288,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1288
1288
|
}
|
|
1289
1289
|
const emitJson = options.json === true;
|
|
1290
1290
|
if (emitJson) {
|
|
1291
|
-
|
|
1291
|
+
_chunkBYEDI5PMjs.printCompactJson.call(void 0, {
|
|
1292
1292
|
..._chunkLOX3BISDjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
|
|
1293
1293
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1294
1294
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -2148,7 +2148,7 @@ function parseExecuteOptions(toolId, options, output) {
|
|
|
2148
2148
|
outputFormat = normalizeOutputFormat(options.outputFormat);
|
|
2149
2149
|
}
|
|
2150
2150
|
if (options.idempotencyKey !== void 0) {
|
|
2151
|
-
|
|
2151
|
+
_chunkQD22TY33js.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
|
|
2152
2152
|
}
|
|
2153
2153
|
if (options.recoveryTimeoutMs !== void 0) {
|
|
2154
2154
|
const parsed = Number(options.recoveryTimeoutMs);
|
|
@@ -2527,7 +2527,7 @@ function writeToolReceipt(input) {
|
|
|
2527
2527
|
const data = Object.hasOwn(toolResponse, "rawV2") ? toolResponse.rawV2 : Object.hasOwn(toolResponse, "raw") ? toolResponse.raw : Object.hasOwn(envelope, "output") ? envelope.output : Object.hasOwn(envelope, "result") ? envelope.result : response;
|
|
2528
2528
|
const status = typeof envelope.status === "string" ? envelope.status : "completed";
|
|
2529
2529
|
const charged = _chunkLOX3BISDjs.recordField.call(void 0, envelope, "billing").credits_charged;
|
|
2530
|
-
|
|
2530
|
+
_chunkNSPMJLYAjs.writeExecutionOutput.call(void 0,
|
|
2531
2531
|
{
|
|
2532
2532
|
id: _nullishCoalesce(input.key, () => ( jobId)),
|
|
2533
2533
|
status,
|
|
@@ -2558,8 +2558,8 @@ async function executeToolForReceipt(input) {
|
|
|
2558
2558
|
let retryKey = null;
|
|
2559
2559
|
let received = false;
|
|
2560
2560
|
try {
|
|
2561
|
-
const cliInvocationId = _nullishCoalesce(
|
|
2562
|
-
const client = new (0,
|
|
2561
|
+
const cliInvocationId = _nullishCoalesce(_chunk5DUP4ZUEjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunk5DUP4ZUEjs.beginToolExecuteCommand.call(void 0, )));
|
|
2562
|
+
const client = new (0, _chunkBNB2RK4Ljs.DeeplineClient)();
|
|
2563
2563
|
const metadata = assertExecutableToolMetadata(
|
|
2564
2564
|
toolId,
|
|
2565
2565
|
await _asyncNullishCoalesce(input.metadata, async () => ( await client.getTool(toolId, { cliInvocationId })))
|
|
@@ -2580,9 +2580,9 @@ async function executeToolForReceipt(input) {
|
|
|
2580
2580
|
...input.timeoutMs !== void 0 ? { timeout: input.timeoutMs } : {},
|
|
2581
2581
|
..._optionalChain([metadata, 'access', _35 => _35.executionMetadata, 'optionalAccess', _36 => _36.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {},
|
|
2582
2582
|
...key ? { idempotencyKey: key } : {},
|
|
2583
|
-
searchRef:
|
|
2583
|
+
searchRef: _chunkGCEUOHJWjs.recentSearchRef.call(void 0, ),
|
|
2584
2584
|
cliInvocationId,
|
|
2585
|
-
onResponseReceived:
|
|
2585
|
+
onResponseReceived: _chunkNSPMJLYAjs.recordApiResponse
|
|
2586
2586
|
}).catch((error) => {
|
|
2587
2587
|
const guidance = toolGuidanceLines(metadata.guidance);
|
|
2588
2588
|
if (guidance.length)
|
|
@@ -2605,7 +2605,7 @@ async function executeToolForReceipt(input) {
|
|
|
2605
2605
|
if (received) throw error;
|
|
2606
2606
|
const outcomeKnown = answeredWithFailure(error);
|
|
2607
2607
|
if (outcomeKnown) _optionalChain([retryKey, 'optionalAccess', _37 => _37.discard, 'call', _38 => _38()]);
|
|
2608
|
-
|
|
2608
|
+
_chunkNSPMJLYAjs.writeExecutionOutput.call(void 0,
|
|
2609
2609
|
{
|
|
2610
2610
|
id: outcomeKnown ? null : key,
|
|
2611
2611
|
status: "failed",
|
|
@@ -2629,11 +2629,11 @@ function answeredWithFailure(error) {
|
|
|
2629
2629
|
error.statusCode !== 408 && error.code !== "EXECUTION_OUTCOME_UNKNOWN";
|
|
2630
2630
|
}
|
|
2631
2631
|
async function getToolExecutionReceipt(key, output) {
|
|
2632
|
-
const client = new (0,
|
|
2632
|
+
const client = new (0, _chunkBNB2RK4Ljs.DeeplineClient)();
|
|
2633
2633
|
const execution = await client.executions.getByKey(key);
|
|
2634
2634
|
output.label = `${execution.toolId} (tool)`;
|
|
2635
2635
|
if (execution.response === void 0) {
|
|
2636
|
-
|
|
2636
|
+
_chunkNSPMJLYAjs.writeExecutionOutput.call(void 0,
|
|
2637
2637
|
{
|
|
2638
2638
|
id: key,
|
|
2639
2639
|
status: execution.executionRecovery.state,
|
|
@@ -2662,19 +2662,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2662
2662
|
parsed = parseExecuteOptions(toolId, options, output);
|
|
2663
2663
|
} catch (error) {
|
|
2664
2664
|
if (wantsJson) {
|
|
2665
|
-
|
|
2665
|
+
_chunkBYEDI5PMjs.printJsonError.call(void 0, error);
|
|
2666
2666
|
} else {
|
|
2667
2667
|
console.error(error instanceof Error ? error.message : String(error));
|
|
2668
2668
|
}
|
|
2669
2669
|
return error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
|
|
2670
2670
|
}
|
|
2671
|
-
const cliInvocationId = _nullishCoalesce(
|
|
2671
|
+
const cliInvocationId = _nullishCoalesce(_chunk5DUP4ZUEjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunk5DUP4ZUEjs.beginToolExecuteCommand.call(void 0, )));
|
|
2672
2672
|
const deferredCompatibility = deferCompatibility ? beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) : void 0;
|
|
2673
|
-
const tracing =
|
|
2673
|
+
const tracing = _chunkPHWFY26Fjs.isCliTraceEnabled.call(void 0, );
|
|
2674
2674
|
const clientStartedAt = tracing ? performance.now() : void 0;
|
|
2675
|
-
const client = new (0,
|
|
2675
|
+
const client = new (0, _chunkBNB2RK4Ljs.DeeplineClient)();
|
|
2676
2676
|
if (clientStartedAt !== void 0) {
|
|
2677
|
-
|
|
2677
|
+
_chunkPHWFY26Fjs.recordCliTrace.call(void 0, {
|
|
2678
2678
|
phase: "cli.tool_execute_client_setup",
|
|
2679
2679
|
ms: performance.now() - clientStartedAt
|
|
2680
2680
|
});
|
|
@@ -2683,13 +2683,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2683
2683
|
const readMetadata = async () => {
|
|
2684
2684
|
if (metadata) return assertExecutableToolMetadata(parsed.toolId, metadata);
|
|
2685
2685
|
try {
|
|
2686
|
-
metadata = await
|
|
2686
|
+
metadata = await _chunk5DUP4ZUEjs.runToolExecuteStage.call(void 0,
|
|
2687
2687
|
"tool metadata lookup",
|
|
2688
2688
|
() => client.getTool(parsed.toolId, { cliInvocationId })
|
|
2689
2689
|
);
|
|
2690
2690
|
} catch (error) {
|
|
2691
2691
|
if (isMissingToolMetadataError(error)) {
|
|
2692
|
-
const play = await
|
|
2692
|
+
const play = await _chunk5DUP4ZUEjs.runToolExecuteStage.call(void 0,
|
|
2693
2693
|
"play alias lookup",
|
|
2694
2694
|
() => findPlayForToolId(client, parsed.toolId, cliInvocationId)
|
|
2695
2695
|
);
|
|
@@ -2718,7 +2718,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2718
2718
|
assertExecutableToolMetadata(parsed.toolId, metadata);
|
|
2719
2719
|
} catch (error) {
|
|
2720
2720
|
if (error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2721
|
-
if (wantsJson)
|
|
2721
|
+
if (wantsJson) _chunkBYEDI5PMjs.printJsonError.call(void 0, error);
|
|
2722
2722
|
else console.error(error.message);
|
|
2723
2723
|
return 2;
|
|
2724
2724
|
}
|
|
@@ -2730,7 +2730,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2730
2730
|
metadata = await readMetadata();
|
|
2731
2731
|
} catch (error) {
|
|
2732
2732
|
if (error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2733
|
-
if (wantsJson)
|
|
2733
|
+
if (wantsJson) _chunkBYEDI5PMjs.printJsonError.call(void 0, error);
|
|
2734
2734
|
else console.error(error.message);
|
|
2735
2735
|
return 2;
|
|
2736
2736
|
}
|
|
@@ -2746,7 +2746,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2746
2746
|
metadata = await readMetadata();
|
|
2747
2747
|
} catch (error) {
|
|
2748
2748
|
if (error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2749
|
-
if (wantsJson)
|
|
2749
|
+
if (wantsJson) _chunkBYEDI5PMjs.printJsonError.call(void 0, error);
|
|
2750
2750
|
else console.error(error.message);
|
|
2751
2751
|
return 2;
|
|
2752
2752
|
}
|
|
@@ -2772,11 +2772,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2772
2772
|
responseIntent,
|
|
2773
2773
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
2774
2774
|
...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
|
|
2775
|
-
searchRef:
|
|
2775
|
+
searchRef: _chunkGCEUOHJWjs.recentSearchRef.call(void 0, ),
|
|
2776
2776
|
cliInvocationId,
|
|
2777
|
-
onResponseReceived:
|
|
2777
|
+
onResponseReceived: _chunkNSPMJLYAjs.recordApiResponse,
|
|
2778
2778
|
...tracing ? {
|
|
2779
|
-
onServerTiming: (serverTiming) =>
|
|
2779
|
+
onServerTiming: (serverTiming) => _chunkPHWFY26Fjs.recordCliTrace.call(void 0, {
|
|
2780
2780
|
phase: "tool_execute_server_timing",
|
|
2781
2781
|
cliInvocationId,
|
|
2782
2782
|
serverTiming,
|
|
@@ -2787,13 +2787,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2787
2787
|
let rawResponse;
|
|
2788
2788
|
let successfulCompatibilityResponse;
|
|
2789
2789
|
try {
|
|
2790
|
-
const executeResult = await
|
|
2790
|
+
const executeResult = await _chunk5DUP4ZUEjs.runToolExecuteStage.call(void 0,
|
|
2791
2791
|
"execute request",
|
|
2792
2792
|
async () => {
|
|
2793
2793
|
try {
|
|
2794
2794
|
if (tracing) {
|
|
2795
2795
|
submissionStartedAt = performance.now();
|
|
2796
|
-
|
|
2796
|
+
_chunkPHWFY26Fjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
|
|
2797
2797
|
}
|
|
2798
2798
|
return await client.executeTool(parsed.toolId, parsed.params, {
|
|
2799
2799
|
...executeOptions,
|
|
@@ -2803,34 +2803,34 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2803
2803
|
} catch (error) {
|
|
2804
2804
|
if (!(error instanceof _chunkDIAWYWT5js.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
|
|
2805
2805
|
throw error;
|
|
2806
|
-
const baseUrl =
|
|
2806
|
+
const baseUrl = _chunkBJL7RYQNjs.resolveConfig.call(void 0, ).baseUrl;
|
|
2807
2807
|
if (maintenancePolicy !== "off") {
|
|
2808
|
-
|
|
2808
|
+
_chunk5YILTBF7js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
2809
2809
|
}
|
|
2810
|
-
const compatibility = deferredCompatibility ? await deferredCompatibility.result : await
|
|
2810
|
+
const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunk5DUP4ZUEjs.runToolExecuteStage.call(void 0,
|
|
2811
2811
|
"SDK compatibility",
|
|
2812
|
-
() =>
|
|
2812
|
+
() => _chunk5YILTBF7js.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
2813
2813
|
command: "tools execute",
|
|
2814
|
-
skillsVersion:
|
|
2814
|
+
skillsVersion: _chunkBJL7RYQNjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
|
|
2815
2815
|
persistCache: maintenancePolicy !== "off"
|
|
2816
2816
|
})
|
|
2817
2817
|
);
|
|
2818
2818
|
if (compatibility.error) throw compatibility.error;
|
|
2819
2819
|
metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _44 => _44.readMetadata, 'call', _45 => _45()]), () => ( metadata));
|
|
2820
|
-
if (maintenancePolicy !== "off" && await
|
|
2820
|
+
if (maintenancePolicy !== "off" && await _chunk5DUP4ZUEjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2821
2821
|
compatibility.response,
|
|
2822
2822
|
baseUrl,
|
|
2823
2823
|
maintenancePolicy
|
|
2824
2824
|
)) {
|
|
2825
2825
|
return void 0;
|
|
2826
2826
|
}
|
|
2827
|
-
|
|
2827
|
+
_chunk5YILTBF7js.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
2828
2828
|
quietAdvisory: wantsJson
|
|
2829
2829
|
});
|
|
2830
2830
|
if (maintenancePolicy !== "off") {
|
|
2831
|
-
await
|
|
2831
|
+
await _chunk5DUP4ZUEjs.runToolExecuteStage.call(void 0,
|
|
2832
2832
|
"agent skills sync",
|
|
2833
|
-
() =>
|
|
2833
|
+
() => _chunk5YILTBF7js.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
|
|
2834
2834
|
update: _optionalChain([compatibility, 'access', _46 => _46.response, 'optionalAccess', _47 => _47.skills]),
|
|
2835
2835
|
mode: "detached"
|
|
2836
2836
|
})
|
|
@@ -2839,7 +2839,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2839
2839
|
const legacyMetadata = await readMetadata();
|
|
2840
2840
|
if (tracing) {
|
|
2841
2841
|
submissionStartedAt = performance.now();
|
|
2842
|
-
|
|
2842
|
+
_chunkPHWFY26Fjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
|
|
2843
2843
|
}
|
|
2844
2844
|
return client.executeTool(parsed.toolId, parsed.params, {
|
|
2845
2845
|
...executeOptions,
|
|
@@ -2862,8 +2862,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2862
2862
|
metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
|
|
2863
2863
|
const updateRequiredBeforeExecution = error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
|
|
2864
2864
|
if (updateRequiredBeforeExecution && maintenancePolicy !== "off" && compatibility && !compatibility.error) {
|
|
2865
|
-
const baseUrl =
|
|
2866
|
-
if (await
|
|
2865
|
+
const baseUrl = _chunkBJL7RYQNjs.resolveConfig.call(void 0, ).baseUrl;
|
|
2866
|
+
if (await _chunk5DUP4ZUEjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2867
2867
|
compatibility.response,
|
|
2868
2868
|
baseUrl,
|
|
2869
2869
|
maintenancePolicy
|
|
@@ -2887,7 +2887,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2887
2887
|
}
|
|
2888
2888
|
}
|
|
2889
2889
|
if (failure instanceof _chunkDIAWYWT5js.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2890
|
-
if (wantsJson)
|
|
2890
|
+
if (wantsJson) _chunkBYEDI5PMjs.printJsonError.call(void 0, failure);
|
|
2891
2891
|
else console.error(failure.message);
|
|
2892
2892
|
return 2;
|
|
2893
2893
|
}
|
|
@@ -2914,9 +2914,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2914
2914
|
successfulCompatibilityResponse = _nullishCoalesce(compatibilityResponse, () => ( void 0));
|
|
2915
2915
|
const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _54 => _54.auto_update]);
|
|
2916
2916
|
if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _55 => _55.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
2917
|
-
await
|
|
2917
|
+
await _chunk5DUP4ZUEjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2918
2918
|
compatibilityResponse,
|
|
2919
|
-
|
|
2919
|
+
_chunkBJL7RYQNjs.resolveConfig.call(void 0, ).baseUrl,
|
|
2920
2920
|
maintenancePolicy
|
|
2921
2921
|
);
|
|
2922
2922
|
}
|
|
@@ -2951,7 +2951,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2951
2951
|
const { _metadata, ...execution } = rawResponse;
|
|
2952
2952
|
rawResponse = execution;
|
|
2953
2953
|
}
|
|
2954
|
-
const { listConversion, summary, baseEnvelope } = await
|
|
2954
|
+
const { listConversion, summary, baseEnvelope } = await _chunk5DUP4ZUEjs.runToolExecuteStage.call(void 0,
|
|
2955
2955
|
"result formatting",
|
|
2956
2956
|
async () => {
|
|
2957
2957
|
const listConversion2 = _chunkHGFFYVXNjs.tryConvertToList.call(void 0, rawResponse, {
|
|
@@ -2986,9 +2986,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2986
2986
|
}
|
|
2987
2987
|
skillsSyncAttempted = true;
|
|
2988
2988
|
try {
|
|
2989
|
-
await
|
|
2989
|
+
await _chunk5DUP4ZUEjs.runToolExecuteStage.call(void 0,
|
|
2990
2990
|
"agent skills sync",
|
|
2991
|
-
() =>
|
|
2991
|
+
() => _chunk5YILTBF7js.syncSdkSkillsIfNeeded.call(void 0, _chunkBJL7RYQNjs.resolveConfig.call(void 0, ).baseUrl, {
|
|
2992
2992
|
update: deliveredCompatibilityResponse.skills,
|
|
2993
2993
|
mode: "detached"
|
|
2994
2994
|
})
|
|
@@ -2999,15 +2999,15 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2999
2999
|
);
|
|
3000
3000
|
}
|
|
3001
3001
|
};
|
|
3002
|
-
const printDeliveredEnvelope = (envelope, options2 = {}) =>
|
|
3002
|
+
const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkBYEDI5PMjs.printCommandEnvelope.call(void 0, envelope, {
|
|
3003
3003
|
...options2,
|
|
3004
3004
|
json: _nullishCoalesce(options2.json, () => ( wantsJson))
|
|
3005
3005
|
});
|
|
3006
3006
|
const printDeliveredJsonEnvelope = async (envelope, options2 = {}) => {
|
|
3007
3007
|
await syncSkillsForDeliveredOutput();
|
|
3008
|
-
|
|
3008
|
+
_chunkBYEDI5PMjs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
|
|
3009
3009
|
};
|
|
3010
|
-
const delivered = await
|
|
3010
|
+
const delivered = await _chunk5DUP4ZUEjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
|
|
3011
3011
|
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
|
|
3012
3012
|
await printDeliveredJsonEnvelope(baseEnvelope);
|
|
3013
3013
|
return true;
|
|
@@ -3036,7 +3036,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3036
3036
|
`${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
|
|
3037
3037
|
);
|
|
3038
3038
|
if (wantsJson) {
|
|
3039
|
-
|
|
3039
|
+
_chunkBYEDI5PMjs.printJsonError.call(void 0, error);
|
|
3040
3040
|
} else {
|
|
3041
3041
|
console.error(error.message);
|
|
3042
3042
|
}
|
|
@@ -3131,13 +3131,13 @@ inspect: ${inspection.inspect}
|
|
|
3131
3131
|
return true;
|
|
3132
3132
|
});
|
|
3133
3133
|
if (delivered) {
|
|
3134
|
-
await
|
|
3134
|
+
await _chunk5DUP4ZUEjs.runToolExecuteStage.call(void 0,
|
|
3135
3135
|
"acknowledge delivery",
|
|
3136
3136
|
() => recovery.acknowledgeDelivery()
|
|
3137
3137
|
);
|
|
3138
3138
|
}
|
|
3139
3139
|
if (delivered && deliveredCompatibilityResponse && deliveredCompatibilityResponse.update_required !== true) {
|
|
3140
|
-
|
|
3140
|
+
_chunk5YILTBF7js.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
|
|
3141
3141
|
quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _58 => _58.auto_update, 'optionalAccess', _59 => _59.should_auto_update]) === true
|
|
3142
3142
|
});
|
|
3143
3143
|
}
|