deepline 0.3.462 → 0.3.463
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/billing/tamradar.ts +17 -17
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +2 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +28 -1
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +12 -9
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +17 -7
- package/dist/cli/{auth-JDLEY7VU.mjs → auth-LZLBR4C3.mjs} +5 -5
- package/dist/cli/auth-XPGKBJKB.js +41 -0
- package/dist/cli/{billing-HXAXB3XZ.js → billing-6TJPNJQD.js} +77 -77
- package/dist/cli/{billing-SDHLBLMV.mjs → billing-OTOP5RE4.mjs} +6 -6
- package/dist/cli/{chunk-NBLSCHKK.js → chunk-2NISBXMN.js} +51 -51
- package/dist/cli/{chunk-XANRM3QA.js → chunk-2ZIRCBYG.js} +6 -6
- package/dist/cli/{chunk-7VZHXVOQ.js → chunk-3BOIOCNX.js} +1 -1
- package/dist/cli/{chunk-4KQ6SIBC.mjs → chunk-3BVLLJ3H.mjs} +2 -2
- package/dist/cli/{chunk-PHSEINNH.mjs → chunk-3U5EAP6E.mjs} +5 -5
- package/dist/cli/{chunk-WIY6U6GD.mjs → chunk-4YZKBBLZ.mjs} +4 -4
- package/dist/cli/{chunk-UAJFWWZE.js → chunk-5DRNNC72.js} +5 -5
- package/dist/cli/{chunk-3ACMRZRV.js → chunk-5LHXOIPT.js} +7 -7
- package/dist/cli/{chunk-V3MEA7NB.mjs → chunk-7D6X7IXW.mjs} +4 -4
- package/dist/cli/{chunk-OMQ23IXL.js → chunk-7FCYPAPP.js} +2 -2
- package/dist/cli/{chunk-I6VHOU5O.js → chunk-7XYDDCQ2.js} +26 -26
- package/dist/cli/{chunk-OPJAJBD4.js → chunk-ALZBANZI.js} +8 -8
- package/dist/cli/{chunk-PKHVSIJG.mjs → chunk-BAPTQDLF.mjs} +2 -2
- package/dist/cli/{chunk-Y4DPU4OM.js → chunk-BGNWI3KH.js} +3 -3
- package/dist/cli/{chunk-LFXLQEZN.mjs → chunk-C25QE4CH.mjs} +1 -1
- package/dist/cli/{chunk-GEGW5HPZ.js → chunk-CBZP6J3V.js} +21 -21
- package/dist/cli/{chunk-ZUK6LIJB.mjs → chunk-CTQ56DXP.mjs} +1 -1
- package/dist/cli/{chunk-7U3XNPOA.mjs → chunk-CVQ7N5CV.mjs} +10 -10
- package/dist/cli/{chunk-6NNVJDVR.mjs → chunk-DHXCBITQ.mjs} +3 -3
- package/dist/cli/{chunk-D6DXOUTO.mjs → chunk-F2RHUPVH.mjs} +1 -1
- package/dist/cli/{chunk-7LFIMWMW.js → chunk-FK2HNDCN.js} +2 -2
- package/dist/cli/{chunk-MUUQZIOF.mjs → chunk-GUT7CLOL.mjs} +3 -3
- package/dist/cli/{chunk-6RNQGWFD.mjs → chunk-I624J4H5.mjs} +1 -1
- package/dist/cli/{chunk-3KZCFOZ6.mjs → chunk-IKWRUNAP.mjs} +1 -1
- package/dist/cli/{chunk-ULK7JGGI.js → chunk-JVDKZJUH.js} +93 -93
- package/dist/cli/{chunk-FKVYR3QA.mjs → chunk-LYFKBLJI.mjs} +1 -1
- package/dist/cli/{chunk-QJZ6WNWD.js → chunk-NAPTMYTY.js} +8 -8
- package/dist/cli/{chunk-VFGVXXZP.js → chunk-NDHJR2WZ.js} +36 -36
- package/dist/cli/{chunk-7MJ6VI2T.mjs → chunk-NTLI6P6Y.mjs} +2 -2
- package/dist/cli/{chunk-S6UAJR6V.mjs → chunk-O3BJYD6D.mjs} +2 -2
- package/dist/cli/{chunk-EM4TXCCI.js → chunk-PVY4DPPF.js} +10 -10
- package/dist/cli/{chunk-UDRPEZ5F.mjs → chunk-RD6IQ2JY.mjs} +1 -1
- package/dist/cli/{chunk-7SWNPNML.js → chunk-RGOUCIIZ.js} +3 -3
- package/dist/cli/{chunk-O2RX5A66.mjs → chunk-S4XQCFES.mjs} +5 -5
- package/dist/cli/{chunk-JF3TLIMQ.js → chunk-SKU6ECIY.js} +5 -5
- package/dist/cli/{chunk-LROWFPGN.js → chunk-TIRBDQ3W.js} +16 -16
- package/dist/cli/{chunk-BGTPIMSM.js → chunk-UC4SFYNU.js} +6 -6
- package/dist/cli/{chunk-S42YIQNE.mjs → chunk-UIURR26V.mjs} +4 -4
- package/dist/cli/{chunk-HUB3CCM2.js → chunk-UROQDCVW.js} +3 -3
- package/dist/cli/{chunk-AT636LLU.mjs → chunk-VDGTTH7K.mjs} +2 -2
- package/dist/cli/{chunk-V335HGX5.js → chunk-VY2GBNTX.js} +9 -9
- package/dist/cli/{chunk-NHRWZPWZ.mjs → chunk-WUMIYOXQ.mjs} +2 -2
- package/dist/cli/{chunk-ZGQSFYD2.js → chunk-WUZS2HK6.js} +53 -53
- package/dist/cli/{chunk-XZAFIOUQ.mjs → chunk-XDWS2JJT.mjs} +1 -1
- package/dist/cli/{chunk-CKSOY47X.mjs → chunk-XW2JIYG7.mjs} +2 -2
- package/dist/cli/{chunk-YT5EODJO.js → chunk-YGGIZ3VT.js} +4 -4
- package/dist/cli/{csv-C56GSCEU.js → csv-EH5QWR4O.js} +13 -13
- package/dist/cli/{csv-L54JS7TF.mjs → csv-OK45Z5XQ.mjs} +4 -4
- package/dist/cli/{db-MOGRMZTA.js → db-3ESJKETS.js} +27 -27
- package/dist/cli/{db-YVBUW2DX.mjs → db-6Z5E4HKN.mjs} +6 -6
- package/dist/cli/{describe-NLZKKT7C.mjs → describe-PNDQB7YS.mjs} +17 -17
- package/dist/cli/describe-QUF7VTTR.js +48 -0
- package/dist/cli/{executions-ZBGSTT37.mjs → executions-2NTWQFEG.mjs} +6 -6
- package/dist/cli/{executions-A7L4ULPP.js → executions-KUOBRX5V.js} +8 -8
- package/dist/cli/{feedback-G6GU37FD.mjs → feedback-7RPRMSGY.mjs} +4 -4
- package/dist/cli/{feedback-OHLY7RYD.js → feedback-UPHAZJ4C.js} +8 -8
- package/dist/cli/{git-PKZW3QD5.mjs → git-SCYP6WSZ.mjs} +5 -5
- package/dist/cli/git-UH653WHV.js +25 -0
- package/dist/cli/index.js +135 -135
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-5LM3D724.js → legacy-noops-7XMFCVRG.js} +8 -8
- package/dist/cli/{legacy-noops-LJJYG6YA.mjs → legacy-noops-A4KYAGI6.mjs} +5 -5
- package/dist/cli/{monitors-72QV4ALO.mjs → monitors-FLC5J7RI.mjs} +7 -7
- package/dist/cli/{monitors-UX3H5DC2.js → monitors-NZV6IX5H.js} +91 -91
- package/dist/cli/{org-IF7ISUVB.js → org-IZ7UP3XF.js} +68 -68
- package/dist/cli/{org-6RRRKOCP.mjs → org-LUETJ7Z5.mjs} +6 -6
- package/dist/cli/{pages-3SU3HKL7.js → pages-22ML3O7O.js} +17 -17
- package/dist/cli/{pages-DXDYYKEK.mjs → pages-EUX5EAGF.mjs} +6 -6
- package/dist/cli/{play-AHASKRLA.mjs → play-CDHPAKKM.mjs} +17 -17
- package/dist/cli/{play-EUIUVLUH.js → play-USJBQADG.js} +304 -304
- package/dist/cli/{providers-GWGE3WY3.mjs → providers-CCXZ3SQF.mjs} +6 -6
- package/dist/cli/{providers-V5WU4VXJ.js → providers-WFEUNPGC.js} +9 -9
- package/dist/cli/{quickstart-QP65I5PF.js → quickstart-O4JSUORZ.js} +6 -6
- package/dist/cli/{quickstart-OXKQ5ZST.mjs → quickstart-ZUULI635.mjs} +4 -4
- package/dist/cli/{run-F3FTYS56.js → run-ISDJYJMU.js} +36 -36
- package/dist/cli/{run-6MM72IGL.mjs → run-QJ4NX5F5.mjs} +22 -22
- package/dist/cli/{search-ZMEBVJZB.mjs → search-IX3XKZJ3.mjs} +7 -7
- package/dist/cli/search-TIFNLRPM.js +32 -0
- package/dist/cli/{secrets-XRCJFF3L.mjs → secrets-7VUDXTUZ.mjs} +6 -6
- package/dist/cli/{secrets-ACND5N6A.js → secrets-ELQSNCTR.js} +15 -15
- package/dist/cli/{sessions-ZGRJPCFF.js → sessions-A3FG3AZX.js} +6 -6
- package/dist/cli/{sessions-RTK3CEW6.mjs → sessions-VOIQ62GB.mjs} +5 -5
- package/dist/cli/{settings-XDRBPRDE.mjs → settings-S6N6EFBG.mjs} +11 -11
- package/dist/cli/{settings-PD5KWQQZ.js → settings-ZTXQEMZI.js} +78 -78
- package/dist/cli/{setup-3HPYAOCC.mjs → setup-AYPIK4JE.mjs} +9 -9
- package/dist/cli/{setup-E2Q6PXHC.js → setup-Y3WOIFLS.js} +44 -44
- package/dist/cli/{skills-OOQFMPOV.mjs → skills-5SF5QWNI.mjs} +7 -7
- package/dist/cli/skills-MWFRMG3H.js +31 -0
- package/dist/cli/{tools-C5ZT3UIC.mjs → tools-3XNZ4J64.mjs} +16 -16
- package/dist/cli/tools-XEC4OD3R.js +55 -0
- package/dist/cli/{update-ZWJTADIW.mjs → update-3U4OVX5R.mjs} +9 -9
- package/dist/cli/update-DWYEYTZE.js +33 -0
- package/dist/cli/{workflow-23NMPAJ7.mjs → workflow-2M5JP7SA.mjs} +7 -7
- package/dist/cli/{workflow-TCXU5YJV.js → workflow-RM7H7555.js} +17 -17
- package/dist/index.js +10 -10
- package/dist/index.mjs +7 -7
- package/dist/install-integrity.json +96 -96
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-UXKY6TCC.js +0 -41
- package/dist/cli/describe-KYEULWPG.js +0 -48
- package/dist/cli/git-P76N4NDQ.js +0 -25
- package/dist/cli/search-OYKOOI7A.js +0 -32
- package/dist/cli/skills-XYWV52KB.js +0 -31
- package/dist/cli/tools-ASCDZJCK.js +0 -55
- package/dist/cli/update-5RQSEIFM.js +0 -33
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkRGOUCIIZjs = require('./chunk-RGOUCIIZ.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkALZBANZIjs = require('./chunk-ALZBANZI.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 _chunkSKU6ECIYjs = require('./chunk-SKU6ECIY.js');
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
var
|
|
54
|
+
var _chunkUC4SFYNUjs = require('./chunk-UC4SFYNU.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 _chunkCBZP6J3Vjs = require('./chunk-CBZP6J3V.js');
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
var
|
|
69
|
+
var _chunkFK2HNDCNjs = require('./chunk-FK2HNDCN.js');
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
|
|
75
|
-
var
|
|
75
|
+
var _chunkWUZS2HK6js = require('./chunk-WUZS2HK6.js');
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
|
|
@@ -80,12 +80,12 @@ var _chunkZGQSFYD2js = require('./chunk-ZGQSFYD2.js');
|
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
var
|
|
83
|
+
var _chunk5LHXOIPTjs = require('./chunk-5LHXOIPT.js');
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
|
|
87
87
|
|
|
88
|
-
var
|
|
88
|
+
var _chunkBGNWI3KHjs = require('./chunk-BGNWI3KH.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 = _chunkBGNWI3KHjs.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
|
+
_chunkBGNWI3KHjs.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, _chunkSKU6ECIYjs.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
|
+
_chunk5LHXOIPTjs.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
|
+
_chunk5LHXOIPTjs.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
|
+
_chunk5LHXOIPTjs.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(_chunk5LHXOIPTjs.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, _chunkSKU6ECIYjs.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
|
+
_chunk5LHXOIPTjs.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, _chunkSKU6ECIYjs.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
|
+
_chunk5LHXOIPTjs.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 || _chunk5LHXOIPTjs.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
|
+
_chunk5LHXOIPTjs.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, _chunkSKU6ECIYjs.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
|
+
_chunk5LHXOIPTjs.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 || _chunk5LHXOIPTjs.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, _chunkSKU6ECIYjs.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 (_chunk5LHXOIPTjs.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, _chunkSKU6ECIYjs.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 (_chunk5LHXOIPTjs.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
|
+
_chunkALZBANZIjs.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
|
+
_chunkCBZP6J3Vjs.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-QUF7VTTR.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
|
+
_chunkRGOUCIIZjs.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
|
+
_chunkFK2HNDCNjs.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 = _chunkBGNWI3KHjs.resolveConfig.call(void 0, ).baseUrl;
|
|
1134
|
+
_chunkFK2HNDCNjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
|
|
1135
|
+
const result = _chunkCBZP6J3Vjs.runToolExecuteStage.call(void 0,
|
|
1136
1136
|
"SDK compatibility",
|
|
1137
|
-
() =>
|
|
1137
|
+
() => _chunkWUZS2HK6js.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
1138
1138
|
command: "tools execute",
|
|
1139
|
-
skillsVersion:
|
|
1139
|
+
skillsVersion: _chunkBGNWI3KHjs.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
|
+
_chunkFK2HNDCNjs.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
|
+
_chunkFK2HNDCNjs.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, _chunkSKU6ECIYjs.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
|
+
_chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
|
|
1232
1232
|
{
|
|
1233
1233
|
toolId: String(tool.toolId || toolId),
|
|
1234
1234
|
cost: _chunkZM2YPJQJjs.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
|
+
_chunk5LHXOIPTjs.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
|
+
_chunk5LHXOIPTjs.printCompactJson.call(void 0, {
|
|
1278
1278
|
..._chunk5LEAXRHVjs.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
|
+
_chunk5LHXOIPTjs.printCompactJson.call(void 0, {
|
|
1292
1292
|
..._chunk5LEAXRHVjs.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
|
+
_chunkUC4SFYNUjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
|
|
2152
2152
|
}
|
|
2153
2153
|
if (options.recoveryTimeoutMs !== void 0) {
|
|
2154
2154
|
const parsed = Number(options.recoveryTimeoutMs);
|
|
@@ -2500,7 +2500,7 @@ function writeToolReceipt(input) {
|
|
|
2500
2500
|
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;
|
|
2501
2501
|
const status = typeof envelope.status === "string" ? envelope.status : "completed";
|
|
2502
2502
|
const charged = _chunk5LEAXRHVjs.recordField.call(void 0, envelope, "billing").credits_charged;
|
|
2503
|
-
|
|
2503
|
+
_chunkRGOUCIIZjs.writeExecutionOutput.call(void 0,
|
|
2504
2504
|
{
|
|
2505
2505
|
id: _nullishCoalesce(input.key, () => ( jobId)),
|
|
2506
2506
|
status,
|
|
@@ -2531,8 +2531,8 @@ async function executeToolForReceipt(input) {
|
|
|
2531
2531
|
let retryKey = null;
|
|
2532
2532
|
let received = false;
|
|
2533
2533
|
try {
|
|
2534
|
-
const cliInvocationId = _nullishCoalesce(
|
|
2535
|
-
const client = new (0,
|
|
2534
|
+
const cliInvocationId = _nullishCoalesce(_chunkCBZP6J3Vjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkCBZP6J3Vjs.beginToolExecuteCommand.call(void 0, )));
|
|
2535
|
+
const client = new (0, _chunkSKU6ECIYjs.DeeplineClient)();
|
|
2536
2536
|
const metadata = await _asyncNullishCoalesce(input.metadata, async () => ( await client.getTool(toolId, { cliInvocationId })));
|
|
2537
2537
|
printToolExecutionWarnings(toolId, params, metadata);
|
|
2538
2538
|
const responseIntent = _optionalChain([output, 'access', _33 => _33.csvOut, 'optionalAccess', _34 => _34.length]) ? "row_artifact" : "raw";
|
|
@@ -2550,9 +2550,9 @@ async function executeToolForReceipt(input) {
|
|
|
2550
2550
|
...input.timeoutMs !== void 0 ? { timeout: input.timeoutMs } : {},
|
|
2551
2551
|
..._optionalChain([metadata, 'access', _35 => _35.executionMetadata, 'optionalAccess', _36 => _36.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {},
|
|
2552
2552
|
...key ? { idempotencyKey: key } : {},
|
|
2553
|
-
searchRef:
|
|
2553
|
+
searchRef: _chunkALZBANZIjs.recentSearchRef.call(void 0, ),
|
|
2554
2554
|
cliInvocationId,
|
|
2555
|
-
onResponseReceived:
|
|
2555
|
+
onResponseReceived: _chunkRGOUCIIZjs.recordApiResponse
|
|
2556
2556
|
}).catch((error) => {
|
|
2557
2557
|
const guidance = toolGuidanceLines(metadata.guidance);
|
|
2558
2558
|
if (guidance.length)
|
|
@@ -2575,7 +2575,7 @@ async function executeToolForReceipt(input) {
|
|
|
2575
2575
|
if (received) throw error;
|
|
2576
2576
|
const outcomeKnown = answeredWithFailure(error);
|
|
2577
2577
|
if (outcomeKnown) _optionalChain([retryKey, 'optionalAccess', _37 => _37.discard, 'call', _38 => _38()]);
|
|
2578
|
-
|
|
2578
|
+
_chunkRGOUCIIZjs.writeExecutionOutput.call(void 0,
|
|
2579
2579
|
{
|
|
2580
2580
|
id: outcomeKnown ? null : key,
|
|
2581
2581
|
status: "failed",
|
|
@@ -2599,11 +2599,11 @@ function answeredWithFailure(error) {
|
|
|
2599
2599
|
error.statusCode !== 408 && error.code !== "EXECUTION_OUTCOME_UNKNOWN";
|
|
2600
2600
|
}
|
|
2601
2601
|
async function getToolExecutionReceipt(key, output) {
|
|
2602
|
-
const client = new (0,
|
|
2602
|
+
const client = new (0, _chunkSKU6ECIYjs.DeeplineClient)();
|
|
2603
2603
|
const execution = await client.executions.getByKey(key);
|
|
2604
2604
|
output.label = `${execution.toolId} (tool)`;
|
|
2605
2605
|
if (execution.response === void 0) {
|
|
2606
|
-
|
|
2606
|
+
_chunkRGOUCIIZjs.writeExecutionOutput.call(void 0,
|
|
2607
2607
|
{
|
|
2608
2608
|
id: key,
|
|
2609
2609
|
status: execution.executionRecovery.state,
|
|
@@ -2629,19 +2629,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2629
2629
|
parsed = parseExecuteOptions(toolId, options, output);
|
|
2630
2630
|
} catch (error) {
|
|
2631
2631
|
if (wantsJson) {
|
|
2632
|
-
|
|
2632
|
+
_chunk5LHXOIPTjs.printJsonError.call(void 0, error);
|
|
2633
2633
|
} else {
|
|
2634
2634
|
console.error(error instanceof Error ? error.message : String(error));
|
|
2635
2635
|
}
|
|
2636
2636
|
return error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
|
|
2637
2637
|
}
|
|
2638
|
-
const cliInvocationId = _nullishCoalesce(
|
|
2638
|
+
const cliInvocationId = _nullishCoalesce(_chunkCBZP6J3Vjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkCBZP6J3Vjs.beginToolExecuteCommand.call(void 0, )));
|
|
2639
2639
|
const deferredCompatibility = deferCompatibility ? beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) : void 0;
|
|
2640
|
-
const tracing =
|
|
2640
|
+
const tracing = _chunkFK2HNDCNjs.isCliTraceEnabled.call(void 0, );
|
|
2641
2641
|
const clientStartedAt = tracing ? performance.now() : void 0;
|
|
2642
|
-
const client = new (0,
|
|
2642
|
+
const client = new (0, _chunkSKU6ECIYjs.DeeplineClient)();
|
|
2643
2643
|
if (clientStartedAt !== void 0) {
|
|
2644
|
-
|
|
2644
|
+
_chunkFK2HNDCNjs.recordCliTrace.call(void 0, {
|
|
2645
2645
|
phase: "cli.tool_execute_client_setup",
|
|
2646
2646
|
ms: performance.now() - clientStartedAt
|
|
2647
2647
|
});
|
|
@@ -2650,13 +2650,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2650
2650
|
const readMetadata = async () => {
|
|
2651
2651
|
if (metadata) return metadata;
|
|
2652
2652
|
try {
|
|
2653
|
-
metadata = await
|
|
2653
|
+
metadata = await _chunkCBZP6J3Vjs.runToolExecuteStage.call(void 0,
|
|
2654
2654
|
"tool metadata lookup",
|
|
2655
2655
|
() => client.getTool(parsed.toolId, { cliInvocationId })
|
|
2656
2656
|
);
|
|
2657
2657
|
} catch (error) {
|
|
2658
2658
|
if (isMissingToolMetadataError(error)) {
|
|
2659
|
-
const play = await
|
|
2659
|
+
const play = await _chunkCBZP6J3Vjs.runToolExecuteStage.call(void 0,
|
|
2660
2660
|
"play alias lookup",
|
|
2661
2661
|
() => findPlayForToolId(client, parsed.toolId, cliInvocationId)
|
|
2662
2662
|
);
|
|
@@ -2695,7 +2695,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2695
2695
|
metadata = await readMetadata();
|
|
2696
2696
|
} catch (error) {
|
|
2697
2697
|
if (error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2698
|
-
if (wantsJson)
|
|
2698
|
+
if (wantsJson) _chunk5LHXOIPTjs.printJsonError.call(void 0, error);
|
|
2699
2699
|
else console.error(error.message);
|
|
2700
2700
|
return 2;
|
|
2701
2701
|
}
|
|
@@ -2711,7 +2711,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2711
2711
|
metadata = await readMetadata();
|
|
2712
2712
|
} catch (error) {
|
|
2713
2713
|
if (error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2714
|
-
if (wantsJson)
|
|
2714
|
+
if (wantsJson) _chunk5LHXOIPTjs.printJsonError.call(void 0, error);
|
|
2715
2715
|
else console.error(error.message);
|
|
2716
2716
|
return 2;
|
|
2717
2717
|
}
|
|
@@ -2737,11 +2737,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2737
2737
|
responseIntent,
|
|
2738
2738
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
2739
2739
|
...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
|
|
2740
|
-
searchRef:
|
|
2740
|
+
searchRef: _chunkALZBANZIjs.recentSearchRef.call(void 0, ),
|
|
2741
2741
|
cliInvocationId,
|
|
2742
|
-
onResponseReceived:
|
|
2742
|
+
onResponseReceived: _chunkRGOUCIIZjs.recordApiResponse,
|
|
2743
2743
|
...tracing ? {
|
|
2744
|
-
onServerTiming: (serverTiming) =>
|
|
2744
|
+
onServerTiming: (serverTiming) => _chunkFK2HNDCNjs.recordCliTrace.call(void 0, {
|
|
2745
2745
|
phase: "tool_execute_server_timing",
|
|
2746
2746
|
cliInvocationId,
|
|
2747
2747
|
serverTiming,
|
|
@@ -2752,13 +2752,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2752
2752
|
let rawResponse;
|
|
2753
2753
|
let successfulCompatibilityResponse;
|
|
2754
2754
|
try {
|
|
2755
|
-
const executeResult = await
|
|
2755
|
+
const executeResult = await _chunkCBZP6J3Vjs.runToolExecuteStage.call(void 0,
|
|
2756
2756
|
"execute request",
|
|
2757
2757
|
async () => {
|
|
2758
2758
|
try {
|
|
2759
2759
|
if (tracing) {
|
|
2760
2760
|
submissionStartedAt = performance.now();
|
|
2761
|
-
|
|
2761
|
+
_chunkFK2HNDCNjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
|
|
2762
2762
|
}
|
|
2763
2763
|
return await client.executeTool(parsed.toolId, parsed.params, {
|
|
2764
2764
|
...executeOptions,
|
|
@@ -2768,34 +2768,34 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2768
2768
|
} catch (error) {
|
|
2769
2769
|
if (!(error instanceof _chunkDIAWYWT5js.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
|
|
2770
2770
|
throw error;
|
|
2771
|
-
const baseUrl =
|
|
2771
|
+
const baseUrl = _chunkBGNWI3KHjs.resolveConfig.call(void 0, ).baseUrl;
|
|
2772
2772
|
if (maintenancePolicy !== "off") {
|
|
2773
|
-
|
|
2773
|
+
_chunkWUZS2HK6js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
2774
2774
|
}
|
|
2775
|
-
const compatibility = deferredCompatibility ? await deferredCompatibility.result : await
|
|
2775
|
+
const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunkCBZP6J3Vjs.runToolExecuteStage.call(void 0,
|
|
2776
2776
|
"SDK compatibility",
|
|
2777
|
-
() =>
|
|
2777
|
+
() => _chunkWUZS2HK6js.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
2778
2778
|
command: "tools execute",
|
|
2779
|
-
skillsVersion:
|
|
2779
|
+
skillsVersion: _chunkBGNWI3KHjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
|
|
2780
2780
|
persistCache: maintenancePolicy !== "off"
|
|
2781
2781
|
})
|
|
2782
2782
|
);
|
|
2783
2783
|
if (compatibility.error) throw compatibility.error;
|
|
2784
2784
|
metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _43 => _43.readMetadata, 'call', _44 => _44()]), () => ( metadata));
|
|
2785
|
-
if (maintenancePolicy !== "off" && await
|
|
2785
|
+
if (maintenancePolicy !== "off" && await _chunkCBZP6J3Vjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2786
2786
|
compatibility.response,
|
|
2787
2787
|
baseUrl,
|
|
2788
2788
|
maintenancePolicy
|
|
2789
2789
|
)) {
|
|
2790
2790
|
return void 0;
|
|
2791
2791
|
}
|
|
2792
|
-
|
|
2792
|
+
_chunkWUZS2HK6js.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
2793
2793
|
quietAdvisory: wantsJson
|
|
2794
2794
|
});
|
|
2795
2795
|
if (maintenancePolicy !== "off") {
|
|
2796
|
-
await
|
|
2796
|
+
await _chunkCBZP6J3Vjs.runToolExecuteStage.call(void 0,
|
|
2797
2797
|
"agent skills sync",
|
|
2798
|
-
() =>
|
|
2798
|
+
() => _chunkWUZS2HK6js.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
|
|
2799
2799
|
update: _optionalChain([compatibility, 'access', _45 => _45.response, 'optionalAccess', _46 => _46.skills]),
|
|
2800
2800
|
mode: "detached"
|
|
2801
2801
|
})
|
|
@@ -2804,7 +2804,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2804
2804
|
const legacyMetadata = await readMetadata();
|
|
2805
2805
|
if (tracing) {
|
|
2806
2806
|
submissionStartedAt = performance.now();
|
|
2807
|
-
|
|
2807
|
+
_chunkFK2HNDCNjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
|
|
2808
2808
|
}
|
|
2809
2809
|
return client.executeTool(parsed.toolId, parsed.params, {
|
|
2810
2810
|
...executeOptions,
|
|
@@ -2825,8 +2825,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2825
2825
|
metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
|
|
2826
2826
|
const updateRequiredBeforeExecution = error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
|
|
2827
2827
|
if (updateRequiredBeforeExecution && maintenancePolicy !== "off" && compatibility && !compatibility.error) {
|
|
2828
|
-
const baseUrl =
|
|
2829
|
-
if (await
|
|
2828
|
+
const baseUrl = _chunkBGNWI3KHjs.resolveConfig.call(void 0, ).baseUrl;
|
|
2829
|
+
if (await _chunkCBZP6J3Vjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2830
2830
|
compatibility.response,
|
|
2831
2831
|
baseUrl,
|
|
2832
2832
|
maintenancePolicy
|
|
@@ -2845,7 +2845,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2845
2845
|
failure = diagnosticError;
|
|
2846
2846
|
}
|
|
2847
2847
|
if (failure instanceof _chunkDIAWYWT5js.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2848
|
-
if (wantsJson)
|
|
2848
|
+
if (wantsJson) _chunk5LHXOIPTjs.printJsonError.call(void 0, failure);
|
|
2849
2849
|
else console.error(failure.message);
|
|
2850
2850
|
return 2;
|
|
2851
2851
|
}
|
|
@@ -2872,9 +2872,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2872
2872
|
successfulCompatibilityResponse = _nullishCoalesce(compatibilityResponse, () => ( void 0));
|
|
2873
2873
|
const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _52 => _52.auto_update]);
|
|
2874
2874
|
if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _53 => _53.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
2875
|
-
await
|
|
2875
|
+
await _chunkCBZP6J3Vjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2876
2876
|
compatibilityResponse,
|
|
2877
|
-
|
|
2877
|
+
_chunkBGNWI3KHjs.resolveConfig.call(void 0, ).baseUrl,
|
|
2878
2878
|
maintenancePolicy
|
|
2879
2879
|
);
|
|
2880
2880
|
}
|
|
@@ -2909,7 +2909,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2909
2909
|
const { _metadata, ...execution } = rawResponse;
|
|
2910
2910
|
rawResponse = execution;
|
|
2911
2911
|
}
|
|
2912
|
-
const { listConversion, summary, baseEnvelope } = await
|
|
2912
|
+
const { listConversion, summary, baseEnvelope } = await _chunkCBZP6J3Vjs.runToolExecuteStage.call(void 0,
|
|
2913
2913
|
"result formatting",
|
|
2914
2914
|
async () => {
|
|
2915
2915
|
const listConversion2 = _chunkHGFFYVXNjs.tryConvertToList.call(void 0, rawResponse, {
|
|
@@ -2944,9 +2944,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2944
2944
|
}
|
|
2945
2945
|
skillsSyncAttempted = true;
|
|
2946
2946
|
try {
|
|
2947
|
-
await
|
|
2947
|
+
await _chunkCBZP6J3Vjs.runToolExecuteStage.call(void 0,
|
|
2948
2948
|
"agent skills sync",
|
|
2949
|
-
() =>
|
|
2949
|
+
() => _chunkWUZS2HK6js.syncSdkSkillsIfNeeded.call(void 0, _chunkBGNWI3KHjs.resolveConfig.call(void 0, ).baseUrl, {
|
|
2950
2950
|
update: deliveredCompatibilityResponse.skills,
|
|
2951
2951
|
mode: "detached"
|
|
2952
2952
|
})
|
|
@@ -2957,15 +2957,15 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2957
2957
|
);
|
|
2958
2958
|
}
|
|
2959
2959
|
};
|
|
2960
|
-
const printDeliveredEnvelope = (envelope, options2 = {}) =>
|
|
2960
|
+
const printDeliveredEnvelope = (envelope, options2 = {}) => _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0, envelope, {
|
|
2961
2961
|
...options2,
|
|
2962
2962
|
json: _nullishCoalesce(options2.json, () => ( wantsJson))
|
|
2963
2963
|
});
|
|
2964
2964
|
const printDeliveredJsonEnvelope = async (envelope, options2 = {}) => {
|
|
2965
2965
|
await syncSkillsForDeliveredOutput();
|
|
2966
|
-
|
|
2966
|
+
_chunk5LHXOIPTjs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
|
|
2967
2967
|
};
|
|
2968
|
-
const delivered = await
|
|
2968
|
+
const delivered = await _chunkCBZP6J3Vjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
|
|
2969
2969
|
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
|
|
2970
2970
|
await printDeliveredJsonEnvelope(baseEnvelope);
|
|
2971
2971
|
return true;
|
|
@@ -2994,7 +2994,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2994
2994
|
`${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
|
|
2995
2995
|
);
|
|
2996
2996
|
if (wantsJson) {
|
|
2997
|
-
|
|
2997
|
+
_chunk5LHXOIPTjs.printJsonError.call(void 0, error);
|
|
2998
2998
|
} else {
|
|
2999
2999
|
console.error(error.message);
|
|
3000
3000
|
}
|
|
@@ -3089,13 +3089,13 @@ inspect: ${inspection.inspect}
|
|
|
3089
3089
|
return true;
|
|
3090
3090
|
});
|
|
3091
3091
|
if (delivered) {
|
|
3092
|
-
await
|
|
3092
|
+
await _chunkCBZP6J3Vjs.runToolExecuteStage.call(void 0,
|
|
3093
3093
|
"acknowledge delivery",
|
|
3094
3094
|
() => recovery.acknowledgeDelivery()
|
|
3095
3095
|
);
|
|
3096
3096
|
}
|
|
3097
3097
|
if (delivered && deliveredCompatibilityResponse && deliveredCompatibilityResponse.update_required !== true) {
|
|
3098
|
-
|
|
3098
|
+
_chunkWUZS2HK6js.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
|
|
3099
3099
|
quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _55 => _55.auto_update, 'optionalAccess', _56 => _56.should_auto_update]) === true
|
|
3100
3100
|
});
|
|
3101
3101
|
}
|