deepline 0.3.506 → 0.3.507
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/client-core.ts +27 -6
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/deactivation-reasons.ts +38 -1
- package/dist/bundling-sources/shared_libs/monitors/fleets/verdict.ts +4 -2
- package/dist/bundling-sources/shared_libs/monitors/package.json +2 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-errors.ts +15 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-state.ts +24 -4
- package/dist/bundling-sources/shared_libs/monitors/provider-resource-failure.ts +405 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +6 -1
- package/dist/cli/auth-6PJ4G5PC.js +43 -0
- package/dist/cli/{auth-ZHFONT2D.mjs → auth-BNP3M27C.mjs} +5 -5
- package/dist/cli/{billing-3Z7N4WTL.js → billing-7HIVX4YJ.js} +79 -79
- package/dist/cli/{billing-B2YEMNHE.mjs → billing-JKJ2AEZ6.mjs} +6 -6
- package/dist/cli/{chunk-YEX6RPUO.mjs → chunk-2OKEMB5A.mjs} +1 -1
- package/dist/cli/{chunk-LRSRJJPD.js → chunk-2ZINJVWW.js} +16 -16
- package/dist/cli/{chunk-HINTYT5H.js → chunk-3D5ZNYYI.js} +44 -44
- package/dist/cli/{chunk-SUJIVF6L.js → chunk-56SRWY5F.js} +16 -16
- package/dist/cli/{chunk-TEMORCEE.mjs → chunk-5A66OJZD.mjs} +1 -1
- package/dist/cli/{chunk-CHGRURBN.mjs → chunk-5I2XKXLS.mjs} +5 -5
- package/dist/cli/{chunk-FWSEGIT6.js → chunk-5PXGAA2M.js} +4 -4
- package/dist/cli/{chunk-75NAFY36.js → chunk-6AQO5OJ5.js} +7 -7
- package/dist/cli/{chunk-5ARG7J7A.js → chunk-76R5I7HR.js} +6 -6
- package/dist/cli/{chunk-2IXXB7OA.mjs → chunk-7TZA6LJI.mjs} +5 -5
- package/dist/cli/{chunk-OD6TASBP.js → chunk-AXYLMDU3.js} +8 -8
- package/dist/cli/{chunk-FFGQR5J3.mjs → chunk-D2T4W5LR.mjs} +2 -2
- package/dist/cli/{chunk-OHNMJ5XQ.js → chunk-E5HGDYU3.js} +41 -41
- package/dist/cli/{chunk-3F676QXJ.js → chunk-E7YIIEZU.js} +11 -11
- package/dist/cli/{chunk-6RYVIZRP.mjs → chunk-EEJLV77L.mjs} +2 -2
- package/dist/cli/{chunk-BQBPVUFJ.mjs → chunk-EYZJDHXA.mjs} +3 -3
- package/dist/cli/{chunk-Z7EHY2MF.mjs → chunk-GMRWVXU2.mjs} +2 -2
- package/dist/cli/{chunk-2CFTDVEP.mjs → chunk-H334EFON.mjs} +2 -2
- package/dist/cli/{chunk-QAY5AS2H.mjs → chunk-H6PABDS4.mjs} +10 -10
- package/dist/cli/{chunk-F53SGS3C.js → chunk-HPZONIDF.js} +5 -5
- package/dist/cli/{chunk-O4DZG4VA.mjs → chunk-IBKWVFWP.mjs} +2 -2
- package/dist/cli/{chunk-ZZDTWVCQ.js → chunk-ILUZ7IHP.js} +21 -21
- package/dist/cli/{chunk-YVOS5KSG.mjs → chunk-IWZRQ6YW.mjs} +1 -1
- package/dist/cli/{chunk-GJNIC2CO.mjs → chunk-JCE2JNGD.mjs} +5 -5
- package/dist/cli/{chunk-2OY5DXTC.js → chunk-JPN6OBPW.js} +1 -1
- package/dist/cli/{chunk-OUGJUM5X.mjs → chunk-LSONU2E2.mjs} +6 -6
- package/dist/cli/{chunk-PRIHD5XS.js → chunk-MN5HO2PN.js} +9 -9
- package/dist/cli/{chunk-N7G36GXB.js → chunk-MQRT5NYP.js} +26 -26
- package/dist/cli/{chunk-YWZEBPXK.mjs → chunk-NJRJGXVF.mjs} +2 -2
- package/dist/cli/{chunk-AD2WJUZA.js → chunk-OBATCFZO.js} +7 -7
- package/dist/cli/{chunk-XUY7WQ2R.mjs → chunk-OPEJASMJ.mjs} +2 -2
- package/dist/cli/{chunk-QP333GFE.js → chunk-QWRSWQ7Z.js} +6 -6
- package/dist/cli/{chunk-E554XCJI.js → chunk-REFT4DMJ.js} +96 -96
- package/dist/cli/{chunk-GRESJ3H3.js → chunk-RFJANXCC.js} +14 -14
- package/dist/cli/{chunk-ONBXTEFQ.mjs → chunk-RTLWYERT.mjs} +1 -1
- package/dist/cli/{chunk-3BFZEHBH.mjs → chunk-T6FUNWXX.mjs} +1 -1
- package/dist/cli/{chunk-D7OCORZ7.mjs → chunk-TVR4R2E6.mjs} +1 -1
- package/dist/cli/{chunk-MHRR47VQ.js → chunk-TZ7APOBM.js} +3 -3
- package/dist/cli/{chunk-F7IQQYKV.js → chunk-V2K34NAO.js} +2 -2
- package/dist/cli/{chunk-YJKKOSXS.js → chunk-V4GGTOCX.js} +3 -3
- package/dist/cli/{chunk-EN7GXLFX.mjs → chunk-VGEBRTHF.mjs} +4 -4
- package/dist/cli/{chunk-BJ5OX62J.mjs → chunk-VQLD5M43.mjs} +5 -5
- package/dist/cli/{chunk-ZM5BJ5MP.js → chunk-WOPWSAGS.js} +53 -53
- package/dist/cli/{chunk-ND4WPLTE.mjs → chunk-WQAHMVBT.mjs} +2 -2
- package/dist/cli/{chunk-DB54ROPH.js → chunk-WTY2R4R3.js} +5 -5
- package/dist/cli/{chunk-OPBXKB57.mjs → chunk-XKGNEN4P.mjs} +1 -1
- package/dist/cli/{chunk-TS4KFQKS.mjs → chunk-YAAJHS6W.mjs} +1 -1
- package/dist/cli/{chunk-26DJ4BDY.js → chunk-ZCNGMQVD.js} +2 -2
- package/dist/cli/{csv-ARHQ54HA.mjs → csv-LZTQOPP2.mjs} +4 -4
- package/dist/cli/{csv-7K7LK63Y.js → csv-WYJVU5HV.js} +13 -13
- package/dist/cli/{db-JBX24NJY.mjs → db-D6XFOQP3.mjs} +6 -6
- package/dist/cli/{db-V4Z2I6DY.js → db-UCUXPY7S.js} +27 -27
- package/dist/cli/{describe-RBDSGSZ7.mjs → describe-HKL2XK67.mjs} +18 -18
- package/dist/cli/describe-XS4OIASD.js +50 -0
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-XEZKV5QU.js → executions-5CF5NM7V.js} +8 -8
- package/dist/cli/{executions-BAZEU63W.mjs → executions-AFHYXH73.mjs} +6 -6
- package/dist/cli/{feedback-LOERESRU.js → feedback-GJAX3JZE.js} +8 -8
- package/dist/cli/{feedback-YDSWBHCO.mjs → feedback-MLKQ572F.mjs} +4 -4
- package/dist/cli/{git-4Z3W2CQU.mjs → git-BMLROZOU.mjs} +5 -5
- package/dist/cli/git-RIXUHRDL.js +25 -0
- package/dist/cli/index.js +138 -138
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-4QIQPVE5.js → legacy-noops-FHRDF7MC.js} +8 -8
- package/dist/cli/{legacy-noops-E4HH7S5O.mjs → legacy-noops-Y7JSQVLQ.mjs} +5 -5
- package/dist/cli/{monitors-QBHDSDA7.js → monitors-Z6RPIQIH.js} +127 -112
- package/dist/cli/{monitors-FPDW5DDM.mjs → monitors-ZEVK3UD7.mjs} +34 -19
- package/dist/cli/{org-UCDHIHAD.mjs → org-PFLVANIN.mjs} +6 -6
- package/dist/cli/{org-JO4GGSAH.js → org-TXJ3RES5.js} +72 -72
- package/dist/cli/{pages-6V52IZXY.mjs → pages-BKEMQ2J7.mjs} +6 -6
- package/dist/cli/{pages-FJAAXAWO.js → pages-ESKKBK5Y.js} +18 -18
- package/dist/cli/{play-MF4DWROJ.mjs → play-4Z6Z7KVY.mjs} +18 -18
- package/dist/cli/{play-F3AENS6W.js → play-AAFOZJKQ.js} +317 -317
- package/dist/cli/{providers-NJJLTECA.mjs → providers-KYP2UWDV.mjs} +6 -6
- package/dist/cli/{providers-XXOQLPX7.js → providers-WEU4UNKY.js} +9 -9
- package/dist/cli/{quickstart-Z5MSMI7S.mjs → quickstart-7EUDF4IL.mjs} +4 -4
- package/dist/cli/{quickstart-JCE3XGQG.js → quickstart-DXYZCOJY.js} +6 -6
- package/dist/cli/{run-X2DNIW3F.js → run-3YN6P26W.js} +41 -41
- package/dist/cli/{run-56UGPIRL.mjs → run-MB2R5PQ7.mjs} +23 -23
- package/dist/cli/{search-SZYI4NBB.mjs → search-MIFBESRE.mjs} +8 -8
- package/dist/cli/search-Z7GUKVFE.js +33 -0
- package/dist/cli/{search-output-T35QNZUF.mjs → search-output-2IR3UA4W.mjs} +4 -4
- package/dist/cli/{search-output-7UNT6EMP.js → search-output-NUWL47SR.js} +6 -6
- package/dist/cli/{secrets-JMUAVIVC.js → secrets-6UT6BIDJ.js} +15 -15
- package/dist/cli/{secrets-Q36VC35L.mjs → secrets-E6WIYONW.mjs} +6 -6
- package/dist/cli/{sessions-HG6I3HMY.mjs → sessions-AP7L6YCL.mjs} +5 -5
- package/dist/cli/{sessions-SUXU7OM7.js → sessions-NF2RBXMJ.js} +6 -6
- package/dist/cli/{settings-UIELQ5CV.js → settings-FZWXYP4W.js} +82 -82
- package/dist/cli/{settings-Z76XW4KF.mjs → settings-MMLHJ5E5.mjs} +12 -12
- package/dist/cli/{setup-OXNYAOQ4.mjs → setup-WJNN2CZZ.mjs} +10 -10
- package/dist/cli/{setup-2L7H5P2O.js → setup-YHXAAJNZ.js} +50 -50
- package/dist/cli/skills-4YYUFNMS.js +37 -0
- package/dist/cli/{skills-XSNLXJGI.mjs → skills-KXZ5PJU2.mjs} +8 -8
- package/dist/cli/{tools-SUSFAYFH.mjs → tools-K6S7RX7B.mjs} +17 -17
- package/dist/cli/tools-OCYEMMUP.js +57 -0
- package/dist/cli/{update-ENSTG3QO.mjs → update-2SFWEVM6.mjs} +10 -10
- package/dist/cli/update-WQIPUQ4K.js +35 -0
- package/dist/cli/{workflow-Z33QE6VT.mjs → workflow-IR3RCVHZ.mjs} +7 -7
- package/dist/cli/{workflow-FMBZNY4F.js → workflow-SM3Q45X5.js} +17 -17
- package/dist/{client-Cx0420fs.d.ts → client-BlwD-G4v.d.ts} +1 -1
- package/dist/{client-BDbouy3Y.d.mts → client-DMpsMNH9.d.mts} +1 -1
- package/dist/{client-core-CwiVaMZ5.d.mts → client-core-CITtRTbB.d.mts} +27 -8
- package/dist/{client-core-B4hq0-m2.d.ts → client-core-DwBLuEkm.d.ts} +27 -8
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +105 -104
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- 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.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-MMHG2OFE.js +0 -43
- package/dist/cli/describe-AYXVS6DZ.js +0 -50
- package/dist/cli/git-T6WKO7EA.js +0 -25
- package/dist/cli/search-B753RTKC.js +0 -33
- package/dist/cli/skills-DEVXYGYH.js +0 -37
- package/dist/cli/tools-SCGHABDL.js +0 -57
- package/dist/cli/update-BSIILGO3.js +0 -35
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk76R5I7HRjs = require('./chunk-76R5I7HR.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkE7YIIEZUjs = require('./chunk-E7YIIEZU.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -46,10 +46,10 @@ var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
|
|
|
46
46
|
var _chunkHGFFYVXNjs = require('./chunk-HGFFYVXN.js');
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
var
|
|
49
|
+
var _chunkWTY2R4R3js = require('./chunk-WTY2R4R3.js');
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
var
|
|
52
|
+
var _chunkOBATCFZOjs = require('./chunk-OBATCFZO.js');
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
var _chunkWSGXBROEjs = require('./chunk-WSGXBROE.js');
|
|
@@ -59,18 +59,18 @@ var _chunkWSGXBROEjs = require('./chunk-WSGXBROE.js');
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunkILUZ7IHPjs = require('./chunk-ILUZ7IHP.js');
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
var
|
|
67
|
+
var _chunkZCNGMQVDjs = require('./chunk-ZCNGMQVD.js');
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
var
|
|
73
|
+
var _chunk3D5ZNYYIjs = require('./chunk-3D5ZNYYI.js');
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
|
|
@@ -78,12 +78,12 @@ var _chunkHINTYT5Hjs = require('./chunk-HINTYT5H.js');
|
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
var
|
|
81
|
+
var _chunk6AQO5OJ5js = require('./chunk-6AQO5OJ5.js');
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
|
|
86
|
-
var
|
|
86
|
+
var _chunkTZ7APOBMjs = require('./chunk-TZ7APOBM.js');
|
|
87
87
|
|
|
88
88
|
|
|
89
89
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -189,10 +189,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
|
|
|
189
189
|
}
|
|
190
190
|
};
|
|
191
191
|
function pendingToolExecutionPath(input) {
|
|
192
|
-
const config =
|
|
192
|
+
const config = _chunkTZ7APOBMjs.resolveConfig.call(void 0, );
|
|
193
193
|
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(_chunkWSGXBROEjs.stableStringify.call(void 0, input.params)).update("\0").update(input.responseIntent).digest("hex");
|
|
194
194
|
return _path.join.call(void 0,
|
|
195
|
-
|
|
195
|
+
_chunkTZ7APOBMjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
|
|
196
196
|
`${PENDING_PREFIX}${fingerprint}.json`
|
|
197
197
|
);
|
|
198
198
|
}
|
|
@@ -505,13 +505,13 @@ function categoryEnumerationRender(summaries) {
|
|
|
505
505
|
};
|
|
506
506
|
}
|
|
507
507
|
async function listToolCategories(emitJson, compact) {
|
|
508
|
-
const client = new (0,
|
|
508
|
+
const client = new (0, _chunkWTY2R4R3js.DeeplineClient)();
|
|
509
509
|
if (!emitJson) {
|
|
510
510
|
const summaries2 = (await client.listToolCategories()).map((category) => ({
|
|
511
511
|
...category,
|
|
512
512
|
description: describeToolCategory(category.name)
|
|
513
513
|
}));
|
|
514
|
-
|
|
514
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
515
515
|
{ categories: summaries2, render: categoryEnumerationRender(summaries2) },
|
|
516
516
|
{ json: false }
|
|
517
517
|
);
|
|
@@ -521,7 +521,7 @@ async function listToolCategories(emitJson, compact) {
|
|
|
521
521
|
const items = rawTools.map(toListedTool);
|
|
522
522
|
const summaries = aggregateCategorySummaries(rawTools);
|
|
523
523
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
524
|
-
|
|
524
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
525
525
|
{
|
|
526
526
|
tools: outputItems,
|
|
527
527
|
count: outputItems.length,
|
|
@@ -540,7 +540,7 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
540
540
|
const known = summaries.map((item) => item.name);
|
|
541
541
|
const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
|
|
542
542
|
if (emitJson) {
|
|
543
|
-
|
|
543
|
+
_chunk6AQO5OJ5js.printJson.call(void 0, {
|
|
544
544
|
ok: false,
|
|
545
545
|
exitCode: 4,
|
|
546
546
|
code: "TOOL_CATEGORY_NOT_FOUND",
|
|
@@ -554,13 +554,13 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
554
554
|
const render = categoryEnumerationRender(summaries);
|
|
555
555
|
console.error(message);
|
|
556
556
|
console.error("");
|
|
557
|
-
console.error(
|
|
557
|
+
console.error(_chunk6AQO5OJ5js.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
|
|
558
558
|
console.error("");
|
|
559
559
|
console.error(`Valid categories: ${known.join(", ")}`);
|
|
560
560
|
return 4;
|
|
561
561
|
}
|
|
562
562
|
async function listToolsInCategory(category, emitJson) {
|
|
563
|
-
const client = new (0,
|
|
563
|
+
const client = new (0, _chunkWTY2R4R3js.DeeplineClient)();
|
|
564
564
|
const { tools: rawTools, categories } = await client.listToolsInCategory(category);
|
|
565
565
|
const summaries = categories.map((item) => ({
|
|
566
566
|
...item,
|
|
@@ -596,7 +596,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
596
596
|
}
|
|
597
597
|
]
|
|
598
598
|
};
|
|
599
|
-
|
|
599
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
600
600
|
{
|
|
601
601
|
category,
|
|
602
602
|
total: rows.length,
|
|
@@ -609,7 +609,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
609
609
|
return 0;
|
|
610
610
|
}
|
|
611
611
|
async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
|
|
612
|
-
const client = new (0,
|
|
612
|
+
const client = new (0, _chunkWTY2R4R3js.DeeplineClient)();
|
|
613
613
|
const items = (await client.listTools({
|
|
614
614
|
categories: requestedCategories.join(","),
|
|
615
615
|
compact
|
|
@@ -638,7 +638,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
|
|
|
638
638
|
]
|
|
639
639
|
};
|
|
640
640
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
641
|
-
|
|
641
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
642
642
|
{
|
|
643
643
|
tools: outputItems,
|
|
644
644
|
count: outputItems.length,
|
|
@@ -657,13 +657,13 @@ async function listTools(category, options = {}) {
|
|
|
657
657
|
const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
|
|
658
658
|
const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
|
|
659
659
|
const compact = options.compact !== false;
|
|
660
|
-
const emitJson = options.json === true ||
|
|
660
|
+
const emitJson = options.json === true || _chunk6AQO5OJ5js.shouldEmitJson.call(void 0, );
|
|
661
661
|
if (positional && flagCategories.length > 0) {
|
|
662
662
|
const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
|
|
663
663
|
if (!flagIsSameSingle) {
|
|
664
664
|
const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
|
|
665
665
|
if (emitJson) {
|
|
666
|
-
|
|
666
|
+
_chunk6AQO5OJ5js.printJson.call(void 0, {
|
|
667
667
|
ok: false,
|
|
668
668
|
exitCode: 2,
|
|
669
669
|
code: "TOOL_LIST_CATEGORY_CONFLICT",
|
|
@@ -690,7 +690,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
690
690
|
console.error("Usage: deepline tools grep <query> [--json]");
|
|
691
691
|
return 1;
|
|
692
692
|
}
|
|
693
|
-
const client = new (0,
|
|
693
|
+
const client = new (0, _chunkWTY2R4R3js.DeeplineClient)();
|
|
694
694
|
const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
|
|
695
695
|
const mode = _nullishCoalesce(options.mode, () => ( "all"));
|
|
696
696
|
const jsonOutput = options.json === true;
|
|
@@ -714,7 +714,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
714
714
|
query,
|
|
715
715
|
mode
|
|
716
716
|
}) : null;
|
|
717
|
-
|
|
717
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
718
718
|
{
|
|
719
719
|
tools: outputTools,
|
|
720
720
|
count: outputTools.length,
|
|
@@ -732,7 +732,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
732
732
|
} : {},
|
|
733
733
|
commandTemplates: TOOL_COMMAND_TEMPLATES
|
|
734
734
|
},
|
|
735
|
-
{ json: options.json ||
|
|
735
|
+
{ json: options.json || _chunk6AQO5OJ5js.shouldEmitJson.call(void 0, ) }
|
|
736
736
|
);
|
|
737
737
|
return 0;
|
|
738
738
|
}
|
|
@@ -847,10 +847,10 @@ Output:
|
|
|
847
847
|
).option("--json", "Print JSON without credential values").action(
|
|
848
848
|
async (provider, options) => {
|
|
849
849
|
if (options.link) {
|
|
850
|
-
const link = await new (0,
|
|
850
|
+
const link = await new (0, _chunkWTY2R4R3js.DeeplineClient)().getIntegrationConnectLink(
|
|
851
851
|
provider
|
|
852
852
|
);
|
|
853
|
-
if (
|
|
853
|
+
if (_chunk6AQO5OJ5js.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(link));
|
|
854
854
|
else console.log(link.connect_url);
|
|
855
855
|
return;
|
|
856
856
|
}
|
|
@@ -860,7 +860,7 @@ Output:
|
|
|
860
860
|
if (options.preset !== void 0 && (options.scopes !== void 0 || options.optionalScopes !== void 0))
|
|
861
861
|
throw new Error("Use --preset or individual scopes, not both.");
|
|
862
862
|
const splitScopes = (value) => value.split(",").map((scope) => scope.trim()).filter(Boolean);
|
|
863
|
-
const result2 = await new (0,
|
|
863
|
+
const result2 = await new (0, _chunkWTY2R4R3js.DeeplineClient)().startIntegrationOAuth(
|
|
864
864
|
provider,
|
|
865
865
|
{
|
|
866
866
|
...options.preset !== void 0 ? { preset: options.preset } : {},
|
|
@@ -872,7 +872,7 @@ Output:
|
|
|
872
872
|
throw new Error(
|
|
873
873
|
"The API did not return an OAuth authorization URL."
|
|
874
874
|
);
|
|
875
|
-
if (
|
|
875
|
+
if (_chunk6AQO5OJ5js.shouldEmitJson.call(void 0, options.json))
|
|
876
876
|
console.log(
|
|
877
877
|
JSON.stringify({ provider, redirect_url: result2.redirect_url })
|
|
878
878
|
);
|
|
@@ -898,7 +898,7 @@ Output:
|
|
|
898
898
|
"--credentials-file must contain a nonempty JSON object of string credential values."
|
|
899
899
|
);
|
|
900
900
|
}
|
|
901
|
-
const result = await new (0,
|
|
901
|
+
const result = await new (0, _chunkWTY2R4R3js.DeeplineClient)().setIntegrationCredentials(
|
|
902
902
|
provider,
|
|
903
903
|
credentials
|
|
904
904
|
);
|
|
@@ -908,7 +908,7 @@ Output:
|
|
|
908
908
|
);
|
|
909
909
|
}
|
|
910
910
|
const confirmation = { provider, credential_saved: true };
|
|
911
|
-
if (
|
|
911
|
+
if (_chunk6AQO5OJ5js.shouldEmitJson.call(void 0, options.json))
|
|
912
912
|
console.log(JSON.stringify(confirmation));
|
|
913
913
|
else
|
|
914
914
|
console.log(
|
|
@@ -948,7 +948,7 @@ Examples:
|
|
|
948
948
|
json: Boolean(options.json)
|
|
949
949
|
});
|
|
950
950
|
});
|
|
951
|
-
|
|
951
|
+
_chunkE7YIIEZUjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
|
|
952
952
|
tools.command("grep <query>").description(
|
|
953
953
|
"Regex grep over tool ids, descriptions, categories, and input fields."
|
|
954
954
|
).addHelpText(
|
|
@@ -983,7 +983,7 @@ Examples:
|
|
|
983
983
|
});
|
|
984
984
|
const addToolMetadataCommand = (command) => {
|
|
985
985
|
let compatibilityMetadata;
|
|
986
|
-
|
|
986
|
+
_chunkILUZ7IHPjs.registerCompatibilityCatalog.call(void 0, command, () => ({
|
|
987
987
|
toolId: command.args[0],
|
|
988
988
|
acceptMetadata: (metadata) => {
|
|
989
989
|
compatibilityMetadata = metadata;
|
|
@@ -1053,7 +1053,7 @@ Examples:
|
|
|
1053
1053
|
process.exitCode = await narrowView();
|
|
1054
1054
|
return;
|
|
1055
1055
|
}
|
|
1056
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
1056
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-XS4OIASD.js")));
|
|
1057
1057
|
process.exitCode = await describeAnything(
|
|
1058
1058
|
toolId,
|
|
1059
1059
|
{
|
|
@@ -1068,7 +1068,7 @@ Examples:
|
|
|
1068
1068
|
});
|
|
1069
1069
|
};
|
|
1070
1070
|
addToolMetadataCommand(
|
|
1071
|
-
|
|
1071
|
+
_chunk76R5I7HRjs.addDescribeOptions.call(void 0,
|
|
1072
1072
|
tools.command("describe <toolId>", { hidden: true }).alias("get"),
|
|
1073
1073
|
{ json: false }
|
|
1074
1074
|
)
|
|
@@ -1137,7 +1137,7 @@ Examples:
|
|
|
1137
1137
|
options,
|
|
1138
1138
|
void 0,
|
|
1139
1139
|
true,
|
|
1140
|
-
|
|
1140
|
+
_chunkZCNGMQVDjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
1141
1141
|
);
|
|
1142
1142
|
}
|
|
1143
1143
|
);
|
|
@@ -1145,13 +1145,13 @@ Examples:
|
|
|
1145
1145
|
function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
1146
1146
|
let metadata;
|
|
1147
1147
|
const startedAt = performance.now();
|
|
1148
|
-
const baseUrl =
|
|
1149
|
-
|
|
1150
|
-
const result =
|
|
1148
|
+
const baseUrl = _chunkTZ7APOBMjs.resolveConfig.call(void 0, ).baseUrl;
|
|
1149
|
+
_chunkZCNGMQVDjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
|
|
1150
|
+
const result = _chunkILUZ7IHPjs.runToolExecuteStage.call(void 0,
|
|
1151
1151
|
"SDK compatibility",
|
|
1152
|
-
() =>
|
|
1152
|
+
() => _chunk3D5ZNYYIjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
1153
1153
|
command: "tools execute",
|
|
1154
|
-
skillsVersion:
|
|
1154
|
+
skillsVersion: _chunkTZ7APOBMjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
|
|
1155
1155
|
persistCache: false,
|
|
1156
1156
|
timeoutMs: TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS,
|
|
1157
1157
|
catalog: {
|
|
@@ -1165,7 +1165,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
|
1165
1165
|
})
|
|
1166
1166
|
).then(
|
|
1167
1167
|
(compatibility) => {
|
|
1168
|
-
|
|
1168
|
+
_chunkZCNGMQVDjs.recordCliTrace.call(void 0, {
|
|
1169
1169
|
phase: "cli.tool_execute_compatibility_ready",
|
|
1170
1170
|
ms: performance.now() - startedAt,
|
|
1171
1171
|
ok: compatibility.error === null,
|
|
@@ -1174,7 +1174,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
|
1174
1174
|
return compatibility;
|
|
1175
1175
|
},
|
|
1176
1176
|
(error) => {
|
|
1177
|
-
|
|
1177
|
+
_chunkZCNGMQVDjs.recordCliTrace.call(void 0, {
|
|
1178
1178
|
phase: "cli.tool_execute_compatibility_ready",
|
|
1179
1179
|
ms: performance.now() - startedAt,
|
|
1180
1180
|
ok: false
|
|
@@ -1189,7 +1189,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1189
1189
|
console.error("Usage: deepline tools describe <toolId> [--json]");
|
|
1190
1190
|
return 1;
|
|
1191
1191
|
}
|
|
1192
|
-
const client = new (0,
|
|
1192
|
+
const client = new (0, _chunkWTY2R4R3js.DeeplineClient)();
|
|
1193
1193
|
let tool;
|
|
1194
1194
|
try {
|
|
1195
1195
|
tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
|
|
@@ -1243,7 +1243,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1243
1243
|
const lines = toolPricingOnlyLines(tool, toolId);
|
|
1244
1244
|
if (inferenceQuote)
|
|
1245
1245
|
lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
|
|
1246
|
-
|
|
1246
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0,
|
|
1247
1247
|
{
|
|
1248
1248
|
toolId: String(tool.toolId || toolId),
|
|
1249
1249
|
cost: _chunkBN5VKY4Xjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
@@ -1266,7 +1266,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1266
1266
|
void 0,
|
|
1267
1267
|
seedToolListScript
|
|
1268
1268
|
);
|
|
1269
|
-
|
|
1269
|
+
_chunk6AQO5OJ5js.printCompactJson.call(void 0, {
|
|
1270
1270
|
toolId: contract.toolId,
|
|
1271
1271
|
...options.schemaOnly ? {
|
|
1272
1272
|
inputSchema: contract.inputSchema,
|
|
@@ -1289,7 +1289,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1289
1289
|
return 0;
|
|
1290
1290
|
}
|
|
1291
1291
|
if (options.contractJson) {
|
|
1292
|
-
|
|
1292
|
+
_chunk6AQO5OJ5js.printCompactJson.call(void 0, {
|
|
1293
1293
|
..._chunkBN5VKY4Xjs.toolContractJsonForDescribe.call(void 0,
|
|
1294
1294
|
tool,
|
|
1295
1295
|
toolId,
|
|
@@ -1303,7 +1303,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1303
1303
|
}
|
|
1304
1304
|
const emitJson = options.json === true;
|
|
1305
1305
|
if (emitJson) {
|
|
1306
|
-
|
|
1306
|
+
_chunk6AQO5OJ5js.printCompactJson.call(void 0, {
|
|
1307
1307
|
..._chunkBN5VKY4Xjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
|
|
1308
1308
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1309
1309
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -2166,7 +2166,7 @@ function parseExecuteOptions(toolId, options, output) {
|
|
|
2166
2166
|
outputFormat = normalizeOutputFormat(options.outputFormat);
|
|
2167
2167
|
}
|
|
2168
2168
|
if (options.idempotencyKey !== void 0) {
|
|
2169
|
-
|
|
2169
|
+
_chunkOBATCFZOjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
|
|
2170
2170
|
}
|
|
2171
2171
|
if (options.recoveryTimeoutMs !== void 0) {
|
|
2172
2172
|
const parsed = Number(options.recoveryTimeoutMs);
|
|
@@ -2545,7 +2545,7 @@ function writeToolReceipt(input) {
|
|
|
2545
2545
|
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;
|
|
2546
2546
|
const status = typeof envelope.status === "string" ? envelope.status : "completed";
|
|
2547
2547
|
const charged = _chunkBN5VKY4Xjs.recordField.call(void 0, envelope, "billing").credits_charged;
|
|
2548
|
-
|
|
2548
|
+
_chunk76R5I7HRjs.writeExecutionOutput.call(void 0,
|
|
2549
2549
|
{
|
|
2550
2550
|
id: _nullishCoalesce(input.key, () => ( jobId)),
|
|
2551
2551
|
status,
|
|
@@ -2576,8 +2576,8 @@ async function executeToolForReceipt(input) {
|
|
|
2576
2576
|
let retryKey = null;
|
|
2577
2577
|
let received = false;
|
|
2578
2578
|
try {
|
|
2579
|
-
const cliInvocationId = _nullishCoalesce(
|
|
2580
|
-
const client = new (0,
|
|
2579
|
+
const cliInvocationId = _nullishCoalesce(_chunkILUZ7IHPjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkILUZ7IHPjs.beginToolExecuteCommand.call(void 0, )));
|
|
2580
|
+
const client = new (0, _chunkWTY2R4R3js.DeeplineClient)();
|
|
2581
2581
|
const metadata = assertExecutableToolMetadata(
|
|
2582
2582
|
toolId,
|
|
2583
2583
|
await _asyncNullishCoalesce(input.metadata, async () => ( await client.getTool(toolId, { cliInvocationId })))
|
|
@@ -2598,9 +2598,9 @@ async function executeToolForReceipt(input) {
|
|
|
2598
2598
|
...input.timeoutMs !== void 0 ? { timeout: input.timeoutMs } : {},
|
|
2599
2599
|
..._optionalChain([metadata, 'access', _35 => _35.executionMetadata, 'optionalAccess', _36 => _36.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {},
|
|
2600
2600
|
...key ? { idempotencyKey: key } : {},
|
|
2601
|
-
searchRef:
|
|
2601
|
+
searchRef: _chunkE7YIIEZUjs.recentSearchRef.call(void 0, toolId),
|
|
2602
2602
|
cliInvocationId,
|
|
2603
|
-
onResponseReceived:
|
|
2603
|
+
onResponseReceived: _chunk76R5I7HRjs.recordApiResponse
|
|
2604
2604
|
}).catch((error) => {
|
|
2605
2605
|
const guidance = toolGuidanceLines(metadata.guidance);
|
|
2606
2606
|
if (guidance.length)
|
|
@@ -2623,7 +2623,7 @@ async function executeToolForReceipt(input) {
|
|
|
2623
2623
|
if (received) throw error;
|
|
2624
2624
|
const outcomeKnown = answeredWithFailure(error);
|
|
2625
2625
|
if (outcomeKnown) _optionalChain([retryKey, 'optionalAccess', _37 => _37.discard, 'call', _38 => _38()]);
|
|
2626
|
-
|
|
2626
|
+
_chunk76R5I7HRjs.writeExecutionOutput.call(void 0,
|
|
2627
2627
|
{
|
|
2628
2628
|
id: outcomeKnown ? null : key,
|
|
2629
2629
|
status: "failed",
|
|
@@ -2647,11 +2647,11 @@ function answeredWithFailure(error) {
|
|
|
2647
2647
|
error.statusCode !== 408 && error.code !== "EXECUTION_OUTCOME_UNKNOWN";
|
|
2648
2648
|
}
|
|
2649
2649
|
async function getToolExecutionReceipt(key, output) {
|
|
2650
|
-
const client = new (0,
|
|
2650
|
+
const client = new (0, _chunkWTY2R4R3js.DeeplineClient)();
|
|
2651
2651
|
const execution = await client.executions.getByKey(key);
|
|
2652
2652
|
output.label = `${execution.toolId} (tool)`;
|
|
2653
2653
|
if (execution.response === void 0) {
|
|
2654
|
-
|
|
2654
|
+
_chunk76R5I7HRjs.writeExecutionOutput.call(void 0,
|
|
2655
2655
|
{
|
|
2656
2656
|
id: key,
|
|
2657
2657
|
status: execution.executionRecovery.state,
|
|
@@ -2680,19 +2680,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2680
2680
|
parsed = parseExecuteOptions(toolId, options, output);
|
|
2681
2681
|
} catch (error) {
|
|
2682
2682
|
if (wantsJson) {
|
|
2683
|
-
|
|
2683
|
+
_chunk6AQO5OJ5js.printJsonError.call(void 0, error);
|
|
2684
2684
|
} else {
|
|
2685
2685
|
console.error(error instanceof Error ? error.message : String(error));
|
|
2686
2686
|
}
|
|
2687
2687
|
return error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
|
|
2688
2688
|
}
|
|
2689
|
-
const cliInvocationId = _nullishCoalesce(
|
|
2689
|
+
const cliInvocationId = _nullishCoalesce(_chunkILUZ7IHPjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkILUZ7IHPjs.beginToolExecuteCommand.call(void 0, )));
|
|
2690
2690
|
const deferredCompatibility = deferCompatibility ? beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) : void 0;
|
|
2691
|
-
const tracing =
|
|
2691
|
+
const tracing = _chunkZCNGMQVDjs.isCliTraceEnabled.call(void 0, );
|
|
2692
2692
|
const clientStartedAt = tracing ? performance.now() : void 0;
|
|
2693
|
-
const client = new (0,
|
|
2693
|
+
const client = new (0, _chunkWTY2R4R3js.DeeplineClient)();
|
|
2694
2694
|
if (clientStartedAt !== void 0) {
|
|
2695
|
-
|
|
2695
|
+
_chunkZCNGMQVDjs.recordCliTrace.call(void 0, {
|
|
2696
2696
|
phase: "cli.tool_execute_client_setup",
|
|
2697
2697
|
ms: performance.now() - clientStartedAt
|
|
2698
2698
|
});
|
|
@@ -2701,13 +2701,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2701
2701
|
const readMetadata = async () => {
|
|
2702
2702
|
if (metadata) return assertExecutableToolMetadata(parsed.toolId, metadata);
|
|
2703
2703
|
try {
|
|
2704
|
-
metadata = await
|
|
2704
|
+
metadata = await _chunkILUZ7IHPjs.runToolExecuteStage.call(void 0,
|
|
2705
2705
|
"tool metadata lookup",
|
|
2706
2706
|
() => client.getTool(parsed.toolId, { cliInvocationId })
|
|
2707
2707
|
);
|
|
2708
2708
|
} catch (error) {
|
|
2709
2709
|
if (isMissingToolMetadataError(error)) {
|
|
2710
|
-
const play = await
|
|
2710
|
+
const play = await _chunkILUZ7IHPjs.runToolExecuteStage.call(void 0,
|
|
2711
2711
|
"play alias lookup",
|
|
2712
2712
|
() => findPlayForToolId(client, parsed.toolId, cliInvocationId)
|
|
2713
2713
|
);
|
|
@@ -2736,7 +2736,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2736
2736
|
assertExecutableToolMetadata(parsed.toolId, metadata);
|
|
2737
2737
|
} catch (error) {
|
|
2738
2738
|
if (error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2739
|
-
if (wantsJson)
|
|
2739
|
+
if (wantsJson) _chunk6AQO5OJ5js.printJsonError.call(void 0, error);
|
|
2740
2740
|
else console.error(error.message);
|
|
2741
2741
|
return 2;
|
|
2742
2742
|
}
|
|
@@ -2748,7 +2748,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2748
2748
|
metadata = await readMetadata();
|
|
2749
2749
|
} catch (error) {
|
|
2750
2750
|
if (error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2751
|
-
if (wantsJson)
|
|
2751
|
+
if (wantsJson) _chunk6AQO5OJ5js.printJsonError.call(void 0, error);
|
|
2752
2752
|
else console.error(error.message);
|
|
2753
2753
|
return 2;
|
|
2754
2754
|
}
|
|
@@ -2764,7 +2764,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2764
2764
|
metadata = await readMetadata();
|
|
2765
2765
|
} catch (error) {
|
|
2766
2766
|
if (error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2767
|
-
if (wantsJson)
|
|
2767
|
+
if (wantsJson) _chunk6AQO5OJ5js.printJsonError.call(void 0, error);
|
|
2768
2768
|
else console.error(error.message);
|
|
2769
2769
|
return 2;
|
|
2770
2770
|
}
|
|
@@ -2790,11 +2790,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2790
2790
|
responseIntent,
|
|
2791
2791
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
2792
2792
|
...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
|
|
2793
|
-
searchRef:
|
|
2793
|
+
searchRef: _chunkE7YIIEZUjs.recentSearchRef.call(void 0, parsed.toolId),
|
|
2794
2794
|
cliInvocationId,
|
|
2795
|
-
onResponseReceived:
|
|
2795
|
+
onResponseReceived: _chunk76R5I7HRjs.recordApiResponse,
|
|
2796
2796
|
...tracing ? {
|
|
2797
|
-
onServerTiming: (serverTiming) =>
|
|
2797
|
+
onServerTiming: (serverTiming) => _chunkZCNGMQVDjs.recordCliTrace.call(void 0, {
|
|
2798
2798
|
phase: "tool_execute_server_timing",
|
|
2799
2799
|
cliInvocationId,
|
|
2800
2800
|
serverTiming,
|
|
@@ -2805,13 +2805,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2805
2805
|
let rawResponse;
|
|
2806
2806
|
let successfulCompatibilityResponse;
|
|
2807
2807
|
try {
|
|
2808
|
-
const executeResult = await
|
|
2808
|
+
const executeResult = await _chunkILUZ7IHPjs.runToolExecuteStage.call(void 0,
|
|
2809
2809
|
"execute request",
|
|
2810
2810
|
async () => {
|
|
2811
2811
|
try {
|
|
2812
2812
|
if (tracing) {
|
|
2813
2813
|
submissionStartedAt = performance.now();
|
|
2814
|
-
|
|
2814
|
+
_chunkZCNGMQVDjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
|
|
2815
2815
|
}
|
|
2816
2816
|
return await client.executeTool(parsed.toolId, parsed.params, {
|
|
2817
2817
|
...executeOptions,
|
|
@@ -2821,34 +2821,34 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2821
2821
|
} catch (error) {
|
|
2822
2822
|
if (!(error instanceof _chunkDIAWYWT5js.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
|
|
2823
2823
|
throw error;
|
|
2824
|
-
const baseUrl =
|
|
2824
|
+
const baseUrl = _chunkTZ7APOBMjs.resolveConfig.call(void 0, ).baseUrl;
|
|
2825
2825
|
if (maintenancePolicy !== "off") {
|
|
2826
|
-
|
|
2826
|
+
_chunk3D5ZNYYIjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
2827
2827
|
}
|
|
2828
|
-
const compatibility = deferredCompatibility ? await deferredCompatibility.result : await
|
|
2828
|
+
const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunkILUZ7IHPjs.runToolExecuteStage.call(void 0,
|
|
2829
2829
|
"SDK compatibility",
|
|
2830
|
-
() =>
|
|
2830
|
+
() => _chunk3D5ZNYYIjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
2831
2831
|
command: "tools execute",
|
|
2832
|
-
skillsVersion:
|
|
2832
|
+
skillsVersion: _chunkTZ7APOBMjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
|
|
2833
2833
|
persistCache: maintenancePolicy !== "off"
|
|
2834
2834
|
})
|
|
2835
2835
|
);
|
|
2836
2836
|
if (compatibility.error) throw compatibility.error;
|
|
2837
2837
|
metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _44 => _44.readMetadata, 'call', _45 => _45()]), () => ( metadata));
|
|
2838
|
-
if (maintenancePolicy !== "off" && await
|
|
2838
|
+
if (maintenancePolicy !== "off" && await _chunkILUZ7IHPjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2839
2839
|
compatibility.response,
|
|
2840
2840
|
baseUrl,
|
|
2841
2841
|
maintenancePolicy
|
|
2842
2842
|
)) {
|
|
2843
2843
|
return void 0;
|
|
2844
2844
|
}
|
|
2845
|
-
|
|
2845
|
+
_chunk3D5ZNYYIjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
2846
2846
|
quietAdvisory: wantsJson
|
|
2847
2847
|
});
|
|
2848
2848
|
if (maintenancePolicy !== "off") {
|
|
2849
|
-
await
|
|
2849
|
+
await _chunkILUZ7IHPjs.runToolExecuteStage.call(void 0,
|
|
2850
2850
|
"agent skills sync",
|
|
2851
|
-
() =>
|
|
2851
|
+
() => _chunk3D5ZNYYIjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
|
|
2852
2852
|
update: _optionalChain([compatibility, 'access', _46 => _46.response, 'optionalAccess', _47 => _47.skills]),
|
|
2853
2853
|
mode: "detached"
|
|
2854
2854
|
})
|
|
@@ -2857,7 +2857,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2857
2857
|
const legacyMetadata = await readMetadata();
|
|
2858
2858
|
if (tracing) {
|
|
2859
2859
|
submissionStartedAt = performance.now();
|
|
2860
|
-
|
|
2860
|
+
_chunkZCNGMQVDjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
|
|
2861
2861
|
}
|
|
2862
2862
|
return client.executeTool(parsed.toolId, parsed.params, {
|
|
2863
2863
|
...executeOptions,
|
|
@@ -2880,8 +2880,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2880
2880
|
metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
|
|
2881
2881
|
const updateRequiredBeforeExecution = error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
|
|
2882
2882
|
if (updateRequiredBeforeExecution && maintenancePolicy !== "off" && compatibility && !compatibility.error) {
|
|
2883
|
-
const baseUrl =
|
|
2884
|
-
if (await
|
|
2883
|
+
const baseUrl = _chunkTZ7APOBMjs.resolveConfig.call(void 0, ).baseUrl;
|
|
2884
|
+
if (await _chunkILUZ7IHPjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2885
2885
|
compatibility.response,
|
|
2886
2886
|
baseUrl,
|
|
2887
2887
|
maintenancePolicy
|
|
@@ -2905,7 +2905,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2905
2905
|
}
|
|
2906
2906
|
}
|
|
2907
2907
|
if (failure instanceof _chunkDIAWYWT5js.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2908
|
-
if (wantsJson)
|
|
2908
|
+
if (wantsJson) _chunk6AQO5OJ5js.printJsonError.call(void 0, failure);
|
|
2909
2909
|
else console.error(failure.message);
|
|
2910
2910
|
return 2;
|
|
2911
2911
|
}
|
|
@@ -2932,9 +2932,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2932
2932
|
successfulCompatibilityResponse = _nullishCoalesce(compatibilityResponse, () => ( void 0));
|
|
2933
2933
|
const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _54 => _54.auto_update]);
|
|
2934
2934
|
if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _55 => _55.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
2935
|
-
await
|
|
2935
|
+
await _chunkILUZ7IHPjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2936
2936
|
compatibilityResponse,
|
|
2937
|
-
|
|
2937
|
+
_chunkTZ7APOBMjs.resolveConfig.call(void 0, ).baseUrl,
|
|
2938
2938
|
maintenancePolicy
|
|
2939
2939
|
);
|
|
2940
2940
|
}
|
|
@@ -2969,7 +2969,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2969
2969
|
const { _metadata, ...execution } = rawResponse;
|
|
2970
2970
|
rawResponse = execution;
|
|
2971
2971
|
}
|
|
2972
|
-
const { listConversion, summary, baseEnvelope } = await
|
|
2972
|
+
const { listConversion, summary, baseEnvelope } = await _chunkILUZ7IHPjs.runToolExecuteStage.call(void 0,
|
|
2973
2973
|
"result formatting",
|
|
2974
2974
|
async () => {
|
|
2975
2975
|
const listConversion2 = _chunkHGFFYVXNjs.tryConvertToList.call(void 0, rawResponse, {
|
|
@@ -3004,9 +3004,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3004
3004
|
}
|
|
3005
3005
|
skillsSyncAttempted = true;
|
|
3006
3006
|
try {
|
|
3007
|
-
await
|
|
3007
|
+
await _chunkILUZ7IHPjs.runToolExecuteStage.call(void 0,
|
|
3008
3008
|
"agent skills sync",
|
|
3009
|
-
() =>
|
|
3009
|
+
() => _chunk3D5ZNYYIjs.syncSdkSkillsIfNeeded.call(void 0, _chunkTZ7APOBMjs.resolveConfig.call(void 0, ).baseUrl, {
|
|
3010
3010
|
update: deliveredCompatibilityResponse.skills,
|
|
3011
3011
|
mode: "detached"
|
|
3012
3012
|
})
|
|
@@ -3017,15 +3017,15 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3017
3017
|
);
|
|
3018
3018
|
}
|
|
3019
3019
|
};
|
|
3020
|
-
const printDeliveredEnvelope = (envelope, options2 = {}) =>
|
|
3020
|
+
const printDeliveredEnvelope = (envelope, options2 = {}) => _chunk6AQO5OJ5js.printCommandEnvelope.call(void 0, envelope, {
|
|
3021
3021
|
...options2,
|
|
3022
3022
|
json: _nullishCoalesce(options2.json, () => ( wantsJson))
|
|
3023
3023
|
});
|
|
3024
3024
|
const printDeliveredJsonEnvelope = async (envelope, options2 = {}) => {
|
|
3025
3025
|
await syncSkillsForDeliveredOutput();
|
|
3026
|
-
|
|
3026
|
+
_chunk6AQO5OJ5js.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
|
|
3027
3027
|
};
|
|
3028
|
-
const delivered = await
|
|
3028
|
+
const delivered = await _chunkILUZ7IHPjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
|
|
3029
3029
|
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
|
|
3030
3030
|
await printDeliveredJsonEnvelope(baseEnvelope);
|
|
3031
3031
|
return true;
|
|
@@ -3054,7 +3054,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3054
3054
|
`${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
|
|
3055
3055
|
);
|
|
3056
3056
|
if (wantsJson) {
|
|
3057
|
-
|
|
3057
|
+
_chunk6AQO5OJ5js.printJsonError.call(void 0, error);
|
|
3058
3058
|
} else {
|
|
3059
3059
|
console.error(error.message);
|
|
3060
3060
|
}
|
|
@@ -3149,13 +3149,13 @@ inspect: ${inspection.inspect}
|
|
|
3149
3149
|
return true;
|
|
3150
3150
|
});
|
|
3151
3151
|
if (delivered) {
|
|
3152
|
-
await
|
|
3152
|
+
await _chunkILUZ7IHPjs.runToolExecuteStage.call(void 0,
|
|
3153
3153
|
"acknowledge delivery",
|
|
3154
3154
|
() => recovery.acknowledgeDelivery()
|
|
3155
3155
|
);
|
|
3156
3156
|
}
|
|
3157
3157
|
if (delivered && deliveredCompatibilityResponse && deliveredCompatibilityResponse.update_required !== true) {
|
|
3158
|
-
|
|
3158
|
+
_chunk3D5ZNYYIjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
|
|
3159
3159
|
quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _58 => _58.auto_update, 'optionalAccess', _59 => _59.should_auto_update]) === true
|
|
3160
3160
|
});
|
|
3161
3161
|
}
|