deepline 0.3.575 → 0.3.576
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 +13 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +145 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +153 -10
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +41 -5
- package/dist/cli/{agents-ULGDKUTM.mjs → agents-BLJR2Y3X.mjs} +35 -4
- package/dist/cli/{agents-BCLO3KQJ.js → agents-CJQ7KBFT.js} +61 -30
- package/dist/cli/auth-GSDYP4ZN.js +44 -0
- package/dist/cli/{auth-4WCL7A6W.mjs → auth-SLZIRCPE.mjs} +5 -5
- package/dist/cli/{billing-7JQ6EUQU.mjs → billing-6Q4SK5KF.mjs} +9 -9
- package/dist/cli/{billing-BF5LVXOM.js → billing-IECMVARO.js} +102 -102
- package/dist/cli/{chunk-2T7XOKVL.mjs → chunk-2UHEJPSS.mjs} +5 -5
- package/dist/cli/{chunk-AO56MZ7D.js → chunk-36254433.js} +3 -3
- package/dist/cli/{chunk-EZIXKNKM.js → chunk-45POZK3F.js} +3 -3
- package/dist/cli/{chunk-5H6254MJ.js → chunk-4KIIXV5Z.js} +16 -16
- package/dist/cli/{chunk-GQZFZG6R.mjs → chunk-5VABOJ4M.mjs} +2 -2
- package/dist/cli/{chunk-TTBZ7QXX.mjs → chunk-66K7F7LR.mjs} +1 -1
- package/dist/cli/{chunk-HEOM3FAC.js → chunk-6JQZC6HX.js} +20 -20
- package/dist/cli/{chunk-XFV353R2.js → chunk-6RY5COUY.js} +23 -23
- package/dist/cli/{chunk-RHRRY2BX.mjs → chunk-7DI34I73.mjs} +3 -3
- package/dist/cli/{chunk-ZYSJND73.js → chunk-ANPHEXTT.js} +9 -9
- package/dist/cli/{chunk-JGLCK2XF.mjs → chunk-AUR24RQB.mjs} +2 -2
- package/dist/cli/{chunk-FDCU3VAJ.mjs → chunk-AZFSCPYK.mjs} +18 -1
- package/dist/cli/{chunk-YNAXKA23.js → chunk-BRPUB6UA.js} +5 -5
- package/dist/cli/{chunk-BM536WWR.mjs → chunk-CUIFDMNP.mjs} +11 -1
- package/dist/cli/{chunk-SYQTBHRX.mjs → chunk-D5LWYP2H.mjs} +3 -3
- package/dist/cli/{chunk-ZQXJYO5P.js → chunk-DGY4EYIX.js} +5 -5
- package/dist/cli/{chunk-2UM3I2MY.js → chunk-E4M4QZBP.js} +11 -1
- package/dist/cli/{chunk-V5XLENWK.js → chunk-EQO77FQZ.js} +5 -5
- package/dist/cli/{chunk-H6JMRLAZ.js → chunk-F4H26PP6.js} +100 -100
- package/dist/cli/{chunk-MN7JLH2T.mjs → chunk-GI57Q7JU.mjs} +2 -2
- package/dist/cli/{chunk-ZS6DT4LD.js → chunk-GZ7KYGYE.js} +15 -15
- package/dist/cli/{chunk-TMFR2B45.mjs → chunk-HE53AI2E.mjs} +3 -3
- package/dist/cli/{chunk-6IKLITVH.js → chunk-HHMO3CON.js} +6 -6
- package/dist/cli/{chunk-X47J55ZJ.mjs → chunk-JPFAD6G6.mjs} +2 -2
- package/dist/cli/{chunk-EV3OPDHF.js → chunk-JSIOLCTK.js} +20 -20
- package/dist/cli/{chunk-QKP3WYSZ.mjs → chunk-KQTZO6NT.mjs} +2 -2
- package/dist/cli/{chunk-636GD4IR.js → chunk-L6H72AIX.js} +2 -2
- package/dist/cli/{chunk-IAJ65IDZ.mjs → chunk-LKC7PHDX.mjs} +4 -4
- package/dist/cli/{chunk-HO76C7AE.js → chunk-M23G33MH.js} +2 -2
- package/dist/cli/{chunk-KNCNFL76.js → chunk-MDJ4LPQ5.js} +4 -4
- package/dist/cli/{chunk-DMPGJCNZ.js → chunk-MXPCTF57.js} +18 -1
- package/dist/cli/{chunk-FXXERR52.js → chunk-NQFZ7FYN.js} +10 -10
- package/dist/cli/{chunk-MWLOBURN.mjs → chunk-OMVBBAQP.mjs} +2 -2
- package/dist/cli/{chunk-737Y7QGT.js → chunk-OXRG325T.js} +41 -41
- package/dist/cli/{chunk-CVY4MBXH.mjs → chunk-PU5VCDCJ.mjs} +5 -5
- package/dist/cli/{chunk-5VSHQG5E.js → chunk-PYFMNPTA.js} +8 -8
- package/dist/cli/{chunk-IOWLFWWG.mjs → chunk-QCD7BQ5Z.mjs} +2 -2
- package/dist/cli/{chunk-QEDRUURT.mjs → chunk-R5NKLZL2.mjs} +1 -1
- package/dist/cli/{chunk-E4RYSSXX.mjs → chunk-S4IW4NAI.mjs} +1 -1
- package/dist/cli/{chunk-7DLAJ6JJ.js → chunk-SBZSJQEI.js} +53 -53
- package/dist/cli/{chunk-BQUAE6LQ.mjs → chunk-SY3OKOI5.mjs} +1 -1
- package/dist/cli/{chunk-NF722E6C.mjs → chunk-TZHS2W5Z.mjs} +1 -1
- package/dist/cli/{chunk-AS5XGOZY.js → chunk-UD6M2ZTY.js} +2 -2
- package/dist/cli/{chunk-56N3XAT6.mjs → chunk-UGIH4462.mjs} +5 -5
- package/dist/cli/{chunk-PQYDO72W.js → chunk-V25CXBR2.js} +26 -26
- package/dist/cli/{chunk-GB4IZ5TV.js → chunk-WDWV77SJ.js} +13 -13
- package/dist/cli/{chunk-G4WPDCXA.js → chunk-WPGZ6V36.js} +48 -48
- package/dist/cli/{chunk-UQZP7XBQ.mjs → chunk-X5V6S5KI.mjs} +5 -5
- package/dist/cli/{chunk-IBYMGR5Y.mjs → chunk-XJNJ3BWU.mjs} +1 -1
- package/dist/cli/{chunk-G2H6SQQY.js → chunk-Y4A6Y5EY.js} +7 -7
- package/dist/cli/{chunk-5D7OJY4W.mjs → chunk-YHM64N5C.mjs} +1 -1
- package/dist/cli/{chunk-H3CG72RZ.mjs → chunk-ZIGMC2X4.mjs} +11 -11
- package/dist/cli/{chunk-3PVKXUSJ.mjs → chunk-ZRC52APB.mjs} +1 -1
- package/dist/cli/{chunk-BONMEBWZ.mjs → chunk-ZYN6S6G2.mjs} +4 -4
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{concurrent-runs-help-HITK6EOO.mjs → concurrent-runs-help-H3SA7J6H.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-PB7GT6F2.js +22 -0
- package/dist/cli/{csv-RS7XHQ4P.js → csv-6DEKR3QQ.js} +13 -13
- package/dist/cli/{csv-V2T23MXT.mjs → csv-ICXI7JAS.mjs} +4 -4
- package/dist/cli/{db-WFIVRPKY.js → db-AG7INMLP.js} +27 -27
- package/dist/cli/{db-OQ4RNTGE.mjs → db-VI7T5E6O.mjs} +6 -6
- package/dist/cli/describe-LMHIG3DP.js +50 -0
- package/dist/cli/{describe-AXV2EEX3.mjs → describe-S6NFWWGK.mjs} +18 -18
- package/dist/cli/{executions-5H2RIWZ3.js → executions-M5R5QHIA.js} +8 -8
- package/dist/cli/{executions-THP5ZDBQ.mjs → executions-MK7H4Q2H.mjs} +6 -6
- package/dist/cli/{feedback-UOI6UEGA.js → feedback-L3L4FEQL.js} +14 -14
- package/dist/cli/{feedback-2EJPILGE.mjs → feedback-ZHATL2XF.mjs} +6 -6
- package/dist/cli/{git-DI3LJIAT.mjs → git-W5DHNH2Q.mjs} +5 -5
- package/dist/cli/git-WYNCLDHD.js +26 -0
- package/dist/cli/index.js +148 -148
- package/dist/cli/index.mjs +47 -47
- package/dist/cli/{integrations-DJYS5VRK.mjs → integrations-73YSN2LI.mjs} +7 -7
- package/dist/cli/{integrations-TYN2BSQ6.js → integrations-IBWNO3YP.js} +29 -29
- package/dist/cli/{legacy-noops-Z457BB6O.mjs → legacy-noops-4LFZJTDX.mjs} +6 -6
- package/dist/cli/{legacy-noops-GXQHNLGJ.js → legacy-noops-AE6DBYJM.js} +9 -9
- package/dist/cli/{mcp-WMBOOTQL.js → mcp-BKL6M6OI.js} +24 -24
- package/dist/cli/{mcp-NAW3GFNN.mjs → mcp-E6PTSNDE.mjs} +4 -4
- package/dist/cli/{monitors-A7NYAXSJ.mjs → monitors-MXJ27KQK.mjs} +7 -7
- package/dist/cli/{monitors-OOQVE7XR.js → monitors-SW7ZCPPT.js} +100 -100
- package/dist/cli/{org-7YCDUSZE.mjs → org-HYAJ2MIK.mjs} +6 -6
- package/dist/cli/{org-D2AMIVBS.js → org-XJ44KZ5I.js} +121 -121
- package/dist/cli/{outcomes-2FKZDJSQ.js → outcomes-PTXGG4BZ.js} +14 -14
- package/dist/cli/{outcomes-TNTKCUEO.mjs → outcomes-PUMAXRGD.mjs} +6 -6
- package/dist/cli/{play-NWKHCHVZ.js → play-EPDZ3GDV.js} +336 -336
- package/dist/cli/{play-L6CVHSN4.mjs → play-QN3X6IAE.mjs} +19 -19
- package/dist/cli/{providers-PZGOI5CN.js → providers-GNJFGNDH.js} +9 -9
- package/dist/cli/{providers-22LO747B.mjs → providers-JIN5UQ7Z.mjs} +6 -6
- package/dist/cli/{quickstart-3ZRVKGMH.mjs → quickstart-4EBFHGB7.mjs} +4 -4
- package/dist/cli/{quickstart-LLWOC2GR.js → quickstart-YH6NNC5I.js} +6 -6
- package/dist/cli/{run-SNF23STR.js → run-4DRF7KQJ.js} +44 -44
- package/dist/cli/{run-D46W2GUA.mjs → run-5467KBCP.mjs} +23 -23
- package/dist/cli/search-B2KCWPUV.js +32 -0
- package/dist/cli/{search-XWVCICIX.mjs → search-ZERTOGH6.mjs} +7 -7
- package/dist/cli/{search-output-YM5QXFQQ.mjs → search-output-OAVJXRFO.mjs} +4 -4
- package/dist/cli/{search-output-36GHD67U.js → search-output-OMNZN2LP.js} +6 -6
- package/dist/cli/{secrets-UXCIHG5I.js → secrets-7XK2BGYX.js} +15 -15
- package/dist/cli/{secrets-7PTZEFRC.mjs → secrets-KAVDYB4P.mjs} +6 -6
- package/dist/cli/sessions-PUQURPPC.js +23 -0
- package/dist/cli/{sessions-DTXJKRP4.mjs → sessions-TNPI6XWB.mjs} +6 -6
- package/dist/cli/{settings-74B6UOS4.mjs → settings-KUABXRAJ.mjs} +12 -12
- package/dist/cli/{settings-EYSDZE37.js → settings-RQ3Z3JCM.js} +85 -85
- package/dist/cli/{setup-2QRZ36CH.mjs → setup-6IX6BSS7.mjs} +9 -9
- package/dist/cli/{setup-E7PVXBPL.js → setup-TDOWNKYN.js} +49 -49
- package/dist/cli/skills-AACRY2TV.js +37 -0
- package/dist/cli/{skills-2WZ7N3UW.mjs → skills-Z6NBJ4KP.mjs} +7 -7
- package/dist/cli/{tools-YK5SCUZD.mjs → tools-LQKFWK7J.mjs} +17 -17
- package/dist/cli/tools-OTYA4722.js +57 -0
- package/dist/cli/update-JTGMI6OJ.js +37 -0
- package/dist/cli/{update-563YQK53.mjs → update-RUB4EIKW.mjs} +9 -9
- package/dist/cli/{views-ISNCRZUP.mjs → views-D7WY5QPR.mjs} +6 -6
- package/dist/cli/{views-OLPS6TPG.js → views-FFLXLAGC.js} +21 -21
- package/dist/cli/{workflow-B3ZKU3OR.mjs → workflow-BV2OTEQD.mjs} +7 -7
- package/dist/cli/{workflow-CUSCTYMW.js → workflow-QW7QVODA.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +116 -116
- package/dist/release.d.mts +9 -1
- package/dist/release.d.ts +9 -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-DXUHEL5I.js +0 -44
- package/dist/cli/concurrent-runs-help-JLWY54WL.js +0 -22
- package/dist/cli/describe-33PBWO5O.js +0 -50
- package/dist/cli/git-2OPYEPYW.js +0 -26
- package/dist/cli/search-H57MZPLF.js +0 -32
- package/dist/cli/sessions-JJZMQSH4.js +0 -23
- package/dist/cli/skills-RIF2DCZI.js +0 -37
- package/dist/cli/tools-7VRQ4GSI.js +0 -57
- package/dist/cli/update-CMZAIAES.js +0 -37
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkY4A6Y5EYjs = require('./chunk-Y4A6Y5EY.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -11,11 +11,11 @@ var _chunkG2H6SQQYjs = require('./chunk-G2H6SQQY.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkGZ7KYGYEjs = require('./chunk-GZ7KYGYE.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkNQFZ7FYNjs = require('./chunk-NQFZ7FYN.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -57,29 +57,29 @@ var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
|
|
|
57
57
|
var _chunkHGFFYVXNjs = require('./chunk-HGFFYVXN.js');
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
var
|
|
60
|
+
var _chunkBRPUB6UAjs = require('./chunk-BRPUB6UA.js');
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
var
|
|
63
|
+
var _chunkPYFMNPTAjs = require('./chunk-PYFMNPTA.js');
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunk6RY5COUYjs = require('./chunk-6RY5COUY.js');
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
|
|
75
|
-
var
|
|
75
|
+
var _chunkL6H72AIXjs = require('./chunk-L6H72AIX.js');
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
var
|
|
82
|
+
var _chunkWPGZ6V36js = require('./chunk-WPGZ6V36.js');
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
|
|
@@ -88,12 +88,12 @@ var _chunkG4WPDCXAjs = require('./chunk-G4WPDCXA.js');
|
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
|
|
91
|
-
var
|
|
91
|
+
var _chunkJSIOLCTKjs = require('./chunk-JSIOLCTK.js');
|
|
92
92
|
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
|
|
96
|
-
var
|
|
96
|
+
var _chunk36254433js = require('./chunk-36254433.js');
|
|
97
97
|
|
|
98
98
|
|
|
99
99
|
var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
@@ -202,10 +202,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
|
|
|
202
202
|
}
|
|
203
203
|
};
|
|
204
204
|
function pendingToolExecutionPath(input) {
|
|
205
|
-
const config =
|
|
205
|
+
const config = _chunk36254433js.resolveConfig.call(void 0, );
|
|
206
206
|
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(_chunkCFJFUVX2js.stableStringify.call(void 0, input.params)).update("\0").update(input.responseIntent).digest("hex");
|
|
207
207
|
return _path.join.call(void 0,
|
|
208
|
-
|
|
208
|
+
_chunk36254433js.sdkCliStateDirPath.call(void 0, config.baseUrl),
|
|
209
209
|
`${PENDING_PREFIX}${fingerprint}.json`
|
|
210
210
|
);
|
|
211
211
|
}
|
|
@@ -589,13 +589,13 @@ function categoryEnumerationRender(summaries) {
|
|
|
589
589
|
};
|
|
590
590
|
}
|
|
591
591
|
async function listToolCategories(emitJson, compact) {
|
|
592
|
-
const client = new (0,
|
|
592
|
+
const client = new (0, _chunkBRPUB6UAjs.DeeplineClient)();
|
|
593
593
|
if (!emitJson) {
|
|
594
594
|
const summaries2 = (await client.listToolCategories()).map((category) => ({
|
|
595
595
|
...category,
|
|
596
596
|
description: describeToolCategory(category.name)
|
|
597
597
|
}));
|
|
598
|
-
|
|
598
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
599
599
|
{ categories: summaries2, render: categoryEnumerationRender(summaries2) },
|
|
600
600
|
{ json: false }
|
|
601
601
|
);
|
|
@@ -605,7 +605,7 @@ async function listToolCategories(emitJson, compact) {
|
|
|
605
605
|
const items = rawTools.map(toListedTool);
|
|
606
606
|
const summaries = aggregateCategorySummaries(rawTools);
|
|
607
607
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
608
|
-
|
|
608
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
609
609
|
{
|
|
610
610
|
tools: outputItems,
|
|
611
611
|
count: outputItems.length,
|
|
@@ -624,7 +624,7 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
624
624
|
const known = summaries.map((item) => item.name);
|
|
625
625
|
const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
|
|
626
626
|
if (emitJson) {
|
|
627
|
-
|
|
627
|
+
_chunkJSIOLCTKjs.printJson.call(void 0, {
|
|
628
628
|
ok: false,
|
|
629
629
|
exitCode: 4,
|
|
630
630
|
code: "TOOL_CATEGORY_NOT_FOUND",
|
|
@@ -638,13 +638,13 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
638
638
|
const render = categoryEnumerationRender(summaries);
|
|
639
639
|
console.error(message);
|
|
640
640
|
console.error("");
|
|
641
|
-
console.error(
|
|
641
|
+
console.error(_chunkJSIOLCTKjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
|
|
642
642
|
console.error("");
|
|
643
643
|
console.error(`Valid categories: ${known.join(", ")}`);
|
|
644
644
|
return 4;
|
|
645
645
|
}
|
|
646
646
|
async function listToolsInCategory(category, emitJson) {
|
|
647
|
-
const client = new (0,
|
|
647
|
+
const client = new (0, _chunkBRPUB6UAjs.DeeplineClient)();
|
|
648
648
|
const { tools: rawTools, categories } = await client.listToolsInCategory(category);
|
|
649
649
|
const summaries = categories.map((item) => ({
|
|
650
650
|
...item,
|
|
@@ -681,7 +681,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
681
681
|
}
|
|
682
682
|
]
|
|
683
683
|
};
|
|
684
|
-
|
|
684
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
685
685
|
{
|
|
686
686
|
category,
|
|
687
687
|
total: rows.length,
|
|
@@ -694,7 +694,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
694
694
|
return 0;
|
|
695
695
|
}
|
|
696
696
|
async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
|
|
697
|
-
const client = new (0,
|
|
697
|
+
const client = new (0, _chunkBRPUB6UAjs.DeeplineClient)();
|
|
698
698
|
const items = (await client.listTools({
|
|
699
699
|
categories: requestedCategories.join(","),
|
|
700
700
|
compact
|
|
@@ -723,7 +723,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
|
|
|
723
723
|
]
|
|
724
724
|
};
|
|
725
725
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
726
|
-
|
|
726
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
727
727
|
{
|
|
728
728
|
tools: outputItems,
|
|
729
729
|
count: outputItems.length,
|
|
@@ -742,13 +742,13 @@ async function listTools(category, options = {}) {
|
|
|
742
742
|
const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _12 => _12.trim, 'call', _13 => _13()]), () => ( ""));
|
|
743
743
|
const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
|
|
744
744
|
const compact = options.compact !== false;
|
|
745
|
-
const emitJson = options.json === true ||
|
|
745
|
+
const emitJson = options.json === true || _chunkJSIOLCTKjs.shouldEmitJson.call(void 0, );
|
|
746
746
|
if (positional && flagCategories.length > 0) {
|
|
747
747
|
const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
|
|
748
748
|
if (!flagIsSameSingle) {
|
|
749
749
|
const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
|
|
750
750
|
if (emitJson) {
|
|
751
|
-
|
|
751
|
+
_chunkJSIOLCTKjs.printJson.call(void 0, {
|
|
752
752
|
ok: false,
|
|
753
753
|
exitCode: 2,
|
|
754
754
|
code: "TOOL_LIST_CATEGORY_CONFLICT",
|
|
@@ -775,7 +775,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
775
775
|
console.error("Usage: deepline tools grep <query> [--json]");
|
|
776
776
|
return 1;
|
|
777
777
|
}
|
|
778
|
-
const client = new (0,
|
|
778
|
+
const client = new (0, _chunkBRPUB6UAjs.DeeplineClient)();
|
|
779
779
|
const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
|
|
780
780
|
const mode = _nullishCoalesce(options.mode, () => ( "all"));
|
|
781
781
|
const jsonOutput = options.json === true;
|
|
@@ -799,7 +799,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
799
799
|
query,
|
|
800
800
|
mode
|
|
801
801
|
}) : null;
|
|
802
|
-
|
|
802
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
803
803
|
{
|
|
804
804
|
tools: outputTools,
|
|
805
805
|
count: outputTools.length,
|
|
@@ -817,7 +817,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
817
817
|
} : {},
|
|
818
818
|
commandTemplates: TOOL_COMMAND_TEMPLATES
|
|
819
819
|
},
|
|
820
|
-
{ json: options.json ||
|
|
820
|
+
{ json: options.json || _chunkJSIOLCTKjs.shouldEmitJson.call(void 0, ) }
|
|
821
821
|
);
|
|
822
822
|
return 0;
|
|
823
823
|
}
|
|
@@ -913,13 +913,13 @@ Output:
|
|
|
913
913
|
activity.
|
|
914
914
|
`
|
|
915
915
|
);
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
916
|
+
_chunkGZ7KYGYEjs.registerIntegrationBalanceCommand.call(void 0, tools, true);
|
|
917
|
+
_chunkGZ7KYGYEjs.registerWorkspaceConnectionListCommand.call(void 0, tools, "workspace-connections", true);
|
|
918
|
+
_chunkGZ7KYGYEjs.registerLegacyHubSpotMembersCommand.call(void 0, tools, true);
|
|
919
|
+
_chunkGZ7KYGYEjs.registerLegacyWorkspaceConnectionCommand.call(void 0, tools, true);
|
|
920
|
+
_chunkGZ7KYGYEjs.registerLegacyCalendarDelegationCommand.call(void 0, tools, true);
|
|
921
|
+
_chunkGZ7KYGYEjs.registerLegacyAvailabilityCalendarsCommand.call(void 0, tools, true);
|
|
922
|
+
_chunkGZ7KYGYEjs.registerIntegrationConnectCommand.call(void 0, tools, false, true);
|
|
923
923
|
tools.command("list [category]").description("Browse tool categories, or list every tool in a category.").addHelpText(
|
|
924
924
|
"after",
|
|
925
925
|
`
|
|
@@ -952,7 +952,7 @@ Examples:
|
|
|
952
952
|
json: Boolean(options.json)
|
|
953
953
|
});
|
|
954
954
|
});
|
|
955
|
-
|
|
955
|
+
_chunkNQFZ7FYNjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
|
|
956
956
|
tools.command("grep <query>").description(
|
|
957
957
|
"Regex grep over tool ids, descriptions, categories, and input fields."
|
|
958
958
|
).addHelpText(
|
|
@@ -987,7 +987,7 @@ Examples:
|
|
|
987
987
|
});
|
|
988
988
|
const addToolMetadataCommand = (command) => {
|
|
989
989
|
let compatibilityMetadata;
|
|
990
|
-
|
|
990
|
+
_chunk6RY5COUYjs.registerCompatibilityCatalog.call(void 0, command, () => ({
|
|
991
991
|
toolId: command.args[0],
|
|
992
992
|
acceptMetadata: (metadata) => {
|
|
993
993
|
compatibilityMetadata = metadata;
|
|
@@ -1057,7 +1057,7 @@ Examples:
|
|
|
1057
1057
|
process.exitCode = await narrowView();
|
|
1058
1058
|
return;
|
|
1059
1059
|
}
|
|
1060
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
1060
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-LMHIG3DP.js")));
|
|
1061
1061
|
process.exitCode = await describeAnything(
|
|
1062
1062
|
toolId,
|
|
1063
1063
|
{
|
|
@@ -1072,7 +1072,7 @@ Examples:
|
|
|
1072
1072
|
});
|
|
1073
1073
|
};
|
|
1074
1074
|
addToolMetadataCommand(
|
|
1075
|
-
|
|
1075
|
+
_chunkY4A6Y5EYjs.addDescribeOptions.call(void 0,
|
|
1076
1076
|
tools.command("describe <toolId>", { hidden: true }).alias("get"),
|
|
1077
1077
|
{ json: false }
|
|
1078
1078
|
)
|
|
@@ -1141,7 +1141,7 @@ Examples:
|
|
|
1141
1141
|
options,
|
|
1142
1142
|
void 0,
|
|
1143
1143
|
true,
|
|
1144
|
-
|
|
1144
|
+
_chunkL6H72AIXjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
1145
1145
|
);
|
|
1146
1146
|
}
|
|
1147
1147
|
);
|
|
@@ -1149,13 +1149,13 @@ Examples:
|
|
|
1149
1149
|
function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
1150
1150
|
let metadata;
|
|
1151
1151
|
const startedAt = performance.now();
|
|
1152
|
-
const baseUrl =
|
|
1153
|
-
|
|
1154
|
-
const result =
|
|
1152
|
+
const baseUrl = _chunk36254433js.resolveConfig.call(void 0, ).baseUrl;
|
|
1153
|
+
_chunkL6H72AIXjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
|
|
1154
|
+
const result = _chunk6RY5COUYjs.runToolExecuteStage.call(void 0,
|
|
1155
1155
|
"SDK compatibility",
|
|
1156
|
-
() =>
|
|
1156
|
+
() => _chunkWPGZ6V36js.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
1157
1157
|
command: "tools execute",
|
|
1158
|
-
skillsVersion:
|
|
1158
|
+
skillsVersion: _chunk36254433js.readSdkSkillsLocalVersion.call(void 0, baseUrl),
|
|
1159
1159
|
persistCache: false,
|
|
1160
1160
|
timeoutMs: TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS,
|
|
1161
1161
|
catalog: {
|
|
@@ -1169,7 +1169,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
|
1169
1169
|
})
|
|
1170
1170
|
).then(
|
|
1171
1171
|
(compatibility) => {
|
|
1172
|
-
|
|
1172
|
+
_chunkL6H72AIXjs.recordCliTrace.call(void 0, {
|
|
1173
1173
|
phase: "cli.tool_execute_compatibility_ready",
|
|
1174
1174
|
ms: performance.now() - startedAt,
|
|
1175
1175
|
ok: compatibility.error === null,
|
|
@@ -1178,7 +1178,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
|
1178
1178
|
return compatibility;
|
|
1179
1179
|
},
|
|
1180
1180
|
(error) => {
|
|
1181
|
-
|
|
1181
|
+
_chunkL6H72AIXjs.recordCliTrace.call(void 0, {
|
|
1182
1182
|
phase: "cli.tool_execute_compatibility_ready",
|
|
1183
1183
|
ms: performance.now() - startedAt,
|
|
1184
1184
|
ok: false
|
|
@@ -1193,7 +1193,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1193
1193
|
console.error("Usage: deepline tools describe <toolId> [--json]");
|
|
1194
1194
|
return 1;
|
|
1195
1195
|
}
|
|
1196
|
-
const client = new (0,
|
|
1196
|
+
const client = new (0, _chunkBRPUB6UAjs.DeeplineClient)();
|
|
1197
1197
|
let tool;
|
|
1198
1198
|
try {
|
|
1199
1199
|
tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
|
|
@@ -1252,7 +1252,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1252
1252
|
const lines = toolPricingOnlyLines(tool, toolId);
|
|
1253
1253
|
if (inferenceQuote)
|
|
1254
1254
|
lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
|
|
1255
|
-
|
|
1255
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
1256
1256
|
{
|
|
1257
1257
|
toolId: String(tool.toolId || toolId),
|
|
1258
1258
|
cost: _chunkSKHUWQZEjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
@@ -1275,7 +1275,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1275
1275
|
void 0,
|
|
1276
1276
|
seedToolListScript
|
|
1277
1277
|
);
|
|
1278
|
-
|
|
1278
|
+
_chunkJSIOLCTKjs.printCompactJson.call(void 0, {
|
|
1279
1279
|
toolId: contract.toolId,
|
|
1280
1280
|
...options.schemaOnly ? {
|
|
1281
1281
|
inputSchema: contract.inputSchema,
|
|
@@ -1298,7 +1298,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1298
1298
|
return 0;
|
|
1299
1299
|
}
|
|
1300
1300
|
if (options.contractJson) {
|
|
1301
|
-
|
|
1301
|
+
_chunkJSIOLCTKjs.printCompactJson.call(void 0, {
|
|
1302
1302
|
..._chunkSKHUWQZEjs.toolContractJsonForDescribe.call(void 0,
|
|
1303
1303
|
tool,
|
|
1304
1304
|
toolId,
|
|
@@ -1312,7 +1312,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1312
1312
|
}
|
|
1313
1313
|
const emitJson = options.json === true;
|
|
1314
1314
|
if (emitJson) {
|
|
1315
|
-
|
|
1315
|
+
_chunkJSIOLCTKjs.printCompactJson.call(void 0, {
|
|
1316
1316
|
..._chunkSKHUWQZEjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
|
|
1317
1317
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1318
1318
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -2186,7 +2186,7 @@ function parseExecuteOptions(toolId, options, output) {
|
|
|
2186
2186
|
outputFormat = normalizeOutputFormat(options.outputFormat);
|
|
2187
2187
|
}
|
|
2188
2188
|
if (options.idempotencyKey !== void 0) {
|
|
2189
|
-
|
|
2189
|
+
_chunkPYFMNPTAjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
|
|
2190
2190
|
}
|
|
2191
2191
|
if (options.connection !== void 0 && (options.recover || options.idempotencyKey !== void 0)) {
|
|
2192
2192
|
throw new Error(
|
|
@@ -2575,7 +2575,7 @@ function writeToolReceipt(input) {
|
|
|
2575
2575
|
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;
|
|
2576
2576
|
const status = typeof envelope.status === "string" ? envelope.status : "completed";
|
|
2577
2577
|
const charged = _chunkSKHUWQZEjs.recordField.call(void 0, envelope, "billing").credits_charged;
|
|
2578
|
-
|
|
2578
|
+
_chunkY4A6Y5EYjs.writeExecutionOutput.call(void 0,
|
|
2579
2579
|
{
|
|
2580
2580
|
id: _nullishCoalesce(input.key, () => ( jobId)),
|
|
2581
2581
|
status,
|
|
@@ -2606,8 +2606,8 @@ async function executeToolForReceipt(input) {
|
|
|
2606
2606
|
let retryKey = null;
|
|
2607
2607
|
let received = false;
|
|
2608
2608
|
try {
|
|
2609
|
-
const cliInvocationId = _nullishCoalesce(
|
|
2610
|
-
const client = new (0,
|
|
2609
|
+
const cliInvocationId = _nullishCoalesce(_chunk6RY5COUYjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunk6RY5COUYjs.beginToolExecuteCommand.call(void 0, )));
|
|
2610
|
+
const client = new (0, _chunkBRPUB6UAjs.DeeplineClient)();
|
|
2611
2611
|
const metadata = assertExecutableToolMetadata(
|
|
2612
2612
|
toolId,
|
|
2613
2613
|
await _asyncNullishCoalesce(input.metadata, async () => ( await client.getTool(toolId, { cliInvocationId })))
|
|
@@ -2629,9 +2629,9 @@ async function executeToolForReceipt(input) {
|
|
|
2629
2629
|
...input.timeoutMs !== void 0 ? { timeout: input.timeoutMs } : {},
|
|
2630
2630
|
..._optionalChain([metadata, 'access', _37 => _37.executionMetadata, 'optionalAccess', _38 => _38.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {},
|
|
2631
2631
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
2632
|
-
searchRef:
|
|
2632
|
+
searchRef: _chunkNQFZ7FYNjs.recentSearchRef.call(void 0, toolId),
|
|
2633
2633
|
cliInvocationId,
|
|
2634
|
-
onResponseReceived:
|
|
2634
|
+
onResponseReceived: _chunkY4A6Y5EYjs.recordApiResponse
|
|
2635
2635
|
});
|
|
2636
2636
|
const response = await call(key).catch((error) => {
|
|
2637
2637
|
if (!key || !refusedRetryKey(error)) throw error;
|
|
@@ -2667,11 +2667,11 @@ async function executeToolForReceipt(input) {
|
|
|
2667
2667
|
if (received) throw error;
|
|
2668
2668
|
const outcomeKnown = answeredWithFailure(error);
|
|
2669
2669
|
if (outcomeKnown) _optionalChain([retryKey, 'optionalAccess', _39 => _39.discard, 'call', _40 => _40()]);
|
|
2670
|
-
|
|
2670
|
+
_chunkY4A6Y5EYjs.writeExecutionOutput.call(void 0,
|
|
2671
2671
|
{
|
|
2672
2672
|
id: outcomeKnown ? null : key,
|
|
2673
2673
|
status: "failed",
|
|
2674
|
-
error:
|
|
2674
|
+
error: _chunkJSIOLCTKjs.errorToJsonPayload.call(void 0, error).error,
|
|
2675
2675
|
...key && !outcomeKnown ? {
|
|
2676
2676
|
next: {
|
|
2677
2677
|
retry: "Run the same command again: it picks up this call without paying twice."
|
|
@@ -2703,11 +2703,11 @@ function answeredWithFailure(error) {
|
|
|
2703
2703
|
!(error.code === "IDEMPOTENCY_NOT_SUPPORTED" && !serverBodyHasCode(_optionalChain([error, 'access', _43 => _43.details, 'optionalAccess', _44 => _44.response]), "IDEMPOTENCY_NOT_SUPPORTED"));
|
|
2704
2704
|
}
|
|
2705
2705
|
async function getToolExecutionReceipt(key, output) {
|
|
2706
|
-
const client = new (0,
|
|
2706
|
+
const client = new (0, _chunkBRPUB6UAjs.DeeplineClient)();
|
|
2707
2707
|
const execution = await client.executions.getByKey(key);
|
|
2708
2708
|
output.label = `${execution.toolId} (tool)`;
|
|
2709
2709
|
if (execution.response === void 0) {
|
|
2710
|
-
|
|
2710
|
+
_chunkY4A6Y5EYjs.writeExecutionOutput.call(void 0,
|
|
2711
2711
|
{
|
|
2712
2712
|
id: key,
|
|
2713
2713
|
status: execution.executionRecovery.state,
|
|
@@ -2736,19 +2736,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2736
2736
|
parsed = parseExecuteOptions(toolId, options, output);
|
|
2737
2737
|
} catch (error) {
|
|
2738
2738
|
if (wantsJson) {
|
|
2739
|
-
|
|
2739
|
+
_chunkJSIOLCTKjs.printJsonError.call(void 0, error);
|
|
2740
2740
|
} else {
|
|
2741
2741
|
console.error(error instanceof Error ? error.message : String(error));
|
|
2742
2742
|
}
|
|
2743
2743
|
return error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
|
|
2744
2744
|
}
|
|
2745
|
-
const cliInvocationId = _nullishCoalesce(
|
|
2745
|
+
const cliInvocationId = _nullishCoalesce(_chunk6RY5COUYjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunk6RY5COUYjs.beginToolExecuteCommand.call(void 0, )));
|
|
2746
2746
|
const deferredCompatibility = deferCompatibility ? beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) : void 0;
|
|
2747
|
-
const tracing =
|
|
2747
|
+
const tracing = _chunkL6H72AIXjs.isCliTraceEnabled.call(void 0, );
|
|
2748
2748
|
const clientStartedAt = tracing ? performance.now() : void 0;
|
|
2749
|
-
const client = new (0,
|
|
2749
|
+
const client = new (0, _chunkBRPUB6UAjs.DeeplineClient)();
|
|
2750
2750
|
if (clientStartedAt !== void 0) {
|
|
2751
|
-
|
|
2751
|
+
_chunkL6H72AIXjs.recordCliTrace.call(void 0, {
|
|
2752
2752
|
phase: "cli.tool_execute_client_setup",
|
|
2753
2753
|
ms: performance.now() - clientStartedAt
|
|
2754
2754
|
});
|
|
@@ -2757,13 +2757,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2757
2757
|
const readMetadata = async () => {
|
|
2758
2758
|
if (metadata) return assertExecutableToolMetadata(parsed.toolId, metadata);
|
|
2759
2759
|
try {
|
|
2760
|
-
metadata = await
|
|
2760
|
+
metadata = await _chunk6RY5COUYjs.runToolExecuteStage.call(void 0,
|
|
2761
2761
|
"tool metadata lookup",
|
|
2762
2762
|
() => client.getTool(parsed.toolId, { cliInvocationId })
|
|
2763
2763
|
);
|
|
2764
2764
|
} catch (error) {
|
|
2765
2765
|
if (isMissingToolMetadataError(error)) {
|
|
2766
|
-
const play = await
|
|
2766
|
+
const play = await _chunk6RY5COUYjs.runToolExecuteStage.call(void 0,
|
|
2767
2767
|
"play alias lookup",
|
|
2768
2768
|
() => findPlayForToolId(client, parsed.toolId, cliInvocationId)
|
|
2769
2769
|
);
|
|
@@ -2786,7 +2786,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2786
2786
|
toolMetadata = await readMetadata();
|
|
2787
2787
|
} catch (error) {
|
|
2788
2788
|
if (error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2789
|
-
if (wantsJson)
|
|
2789
|
+
if (wantsJson) _chunkJSIOLCTKjs.printJsonError.call(void 0, error);
|
|
2790
2790
|
else console.error(error.message);
|
|
2791
2791
|
return 2;
|
|
2792
2792
|
}
|
|
@@ -2814,7 +2814,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2814
2814
|
assertExecutableToolMetadata(parsed.toolId, metadata);
|
|
2815
2815
|
} catch (error) {
|
|
2816
2816
|
if (error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2817
|
-
if (wantsJson)
|
|
2817
|
+
if (wantsJson) _chunkJSIOLCTKjs.printJsonError.call(void 0, error);
|
|
2818
2818
|
else console.error(error.message);
|
|
2819
2819
|
return 2;
|
|
2820
2820
|
}
|
|
@@ -2826,7 +2826,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2826
2826
|
metadata = await readMetadata();
|
|
2827
2827
|
} catch (error) {
|
|
2828
2828
|
if (error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2829
|
-
if (wantsJson)
|
|
2829
|
+
if (wantsJson) _chunkJSIOLCTKjs.printJsonError.call(void 0, error);
|
|
2830
2830
|
else console.error(error.message);
|
|
2831
2831
|
return 2;
|
|
2832
2832
|
}
|
|
@@ -2842,7 +2842,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2842
2842
|
metadata = await readMetadata();
|
|
2843
2843
|
} catch (error) {
|
|
2844
2844
|
if (error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2845
|
-
if (wantsJson)
|
|
2845
|
+
if (wantsJson) _chunkJSIOLCTKjs.printJsonError.call(void 0, error);
|
|
2846
2846
|
else console.error(error.message);
|
|
2847
2847
|
return 2;
|
|
2848
2848
|
}
|
|
@@ -2869,11 +2869,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2869
2869
|
...parsed.connection !== void 0 ? { connection: parsed.connection } : {},
|
|
2870
2870
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
2871
2871
|
...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
|
|
2872
|
-
searchRef:
|
|
2872
|
+
searchRef: _chunkNQFZ7FYNjs.recentSearchRef.call(void 0, parsed.toolId),
|
|
2873
2873
|
cliInvocationId,
|
|
2874
|
-
onResponseReceived:
|
|
2874
|
+
onResponseReceived: _chunkY4A6Y5EYjs.recordApiResponse,
|
|
2875
2875
|
...tracing ? {
|
|
2876
|
-
onServerTiming: (serverTiming) =>
|
|
2876
|
+
onServerTiming: (serverTiming) => _chunkL6H72AIXjs.recordCliTrace.call(void 0, {
|
|
2877
2877
|
phase: "tool_execute_server_timing",
|
|
2878
2878
|
cliInvocationId,
|
|
2879
2879
|
serverTiming,
|
|
@@ -2884,13 +2884,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2884
2884
|
let rawResponse;
|
|
2885
2885
|
let successfulCompatibilityResponse;
|
|
2886
2886
|
try {
|
|
2887
|
-
const executeResult = await
|
|
2887
|
+
const executeResult = await _chunk6RY5COUYjs.runToolExecuteStage.call(void 0,
|
|
2888
2888
|
"execute request",
|
|
2889
2889
|
async () => {
|
|
2890
2890
|
try {
|
|
2891
2891
|
if (tracing) {
|
|
2892
2892
|
submissionStartedAt = performance.now();
|
|
2893
|
-
|
|
2893
|
+
_chunkL6H72AIXjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
|
|
2894
2894
|
}
|
|
2895
2895
|
return await client.executeTool(parsed.toolId, parsed.params, {
|
|
2896
2896
|
...executeOptions,
|
|
@@ -2900,34 +2900,34 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2900
2900
|
} catch (error) {
|
|
2901
2901
|
if (parsed.connection !== void 0 || !(error instanceof _chunkLFQJW4S2js.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
|
|
2902
2902
|
throw error;
|
|
2903
|
-
const baseUrl =
|
|
2903
|
+
const baseUrl = _chunk36254433js.resolveConfig.call(void 0, ).baseUrl;
|
|
2904
2904
|
if (maintenancePolicy !== "off") {
|
|
2905
|
-
|
|
2905
|
+
_chunkWPGZ6V36js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
2906
2906
|
}
|
|
2907
2907
|
const preflight = deferredCompatibility ? await deferredCompatibility.result.catch(() => null) : null;
|
|
2908
|
-
const compatibilityResponse = _optionalChain([preflight, 'optionalAccess', _50 => _50.live]) === true ? preflight.response : await
|
|
2908
|
+
const compatibilityResponse = _optionalChain([preflight, 'optionalAccess', _50 => _50.live]) === true ? preflight.response : await _chunk6RY5COUYjs.runToolExecuteStage.call(void 0,
|
|
2909
2909
|
"SDK compatibility",
|
|
2910
|
-
() =>
|
|
2910
|
+
() => _chunkWPGZ6V36js.requireSdkCompatibility.call(void 0, baseUrl, {
|
|
2911
2911
|
command: "tools execute",
|
|
2912
|
-
skillsVersion:
|
|
2912
|
+
skillsVersion: _chunk36254433js.readSdkSkillsLocalVersion.call(void 0, baseUrl),
|
|
2913
2913
|
persistCache: maintenancePolicy !== "off"
|
|
2914
2914
|
})
|
|
2915
2915
|
);
|
|
2916
2916
|
metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _51 => _51.readMetadata, 'call', _52 => _52()]), () => ( metadata));
|
|
2917
|
-
if (maintenancePolicy !== "off" && await
|
|
2917
|
+
if (maintenancePolicy !== "off" && await _chunk6RY5COUYjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2918
2918
|
compatibilityResponse,
|
|
2919
2919
|
baseUrl,
|
|
2920
2920
|
maintenancePolicy
|
|
2921
2921
|
)) {
|
|
2922
2922
|
return void 0;
|
|
2923
2923
|
}
|
|
2924
|
-
|
|
2924
|
+
_chunkWPGZ6V36js.enforceSdkCompatibilityResponse.call(void 0, compatibilityResponse, {
|
|
2925
2925
|
quietAdvisory: wantsJson
|
|
2926
2926
|
});
|
|
2927
2927
|
if (maintenancePolicy !== "off") {
|
|
2928
|
-
await
|
|
2928
|
+
await _chunk6RY5COUYjs.runToolExecuteStage.call(void 0,
|
|
2929
2929
|
"agent skills sync",
|
|
2930
|
-
() =>
|
|
2930
|
+
() => _chunkWPGZ6V36js.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
|
|
2931
2931
|
update: _optionalChain([compatibilityResponse, 'optionalAccess', _53 => _53.skills]),
|
|
2932
2932
|
mode: "detached"
|
|
2933
2933
|
})
|
|
@@ -2936,7 +2936,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2936
2936
|
const legacyMetadata = await readMetadata();
|
|
2937
2937
|
if (tracing) {
|
|
2938
2938
|
submissionStartedAt = performance.now();
|
|
2939
|
-
|
|
2939
|
+
_chunkL6H72AIXjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
|
|
2940
2940
|
}
|
|
2941
2941
|
return client.executeTool(parsed.toolId, parsed.params, {
|
|
2942
2942
|
...executeOptions,
|
|
@@ -2959,8 +2959,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2959
2959
|
metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
|
|
2960
2960
|
const updateRequiredBeforeExecution = error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
|
|
2961
2961
|
if (updateRequiredBeforeExecution && maintenancePolicy !== "off" && compatibility && !compatibility.error) {
|
|
2962
|
-
const baseUrl =
|
|
2963
|
-
if (await
|
|
2962
|
+
const baseUrl = _chunk36254433js.resolveConfig.call(void 0, ).baseUrl;
|
|
2963
|
+
if (await _chunk6RY5COUYjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2964
2964
|
compatibility.response,
|
|
2965
2965
|
baseUrl,
|
|
2966
2966
|
maintenancePolicy
|
|
@@ -2984,7 +2984,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2984
2984
|
}
|
|
2985
2985
|
}
|
|
2986
2986
|
if (failure instanceof _chunkLFQJW4S2js.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2987
|
-
if (wantsJson)
|
|
2987
|
+
if (wantsJson) _chunkJSIOLCTKjs.printJsonError.call(void 0, failure);
|
|
2988
2988
|
else console.error(failure.message);
|
|
2989
2989
|
return 2;
|
|
2990
2990
|
}
|
|
@@ -3011,9 +3011,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3011
3011
|
successfulCompatibilityResponse = _nullishCoalesce(compatibilityResponse, () => ( void 0));
|
|
3012
3012
|
const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _60 => _60.auto_update]);
|
|
3013
3013
|
if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _61 => _61.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
3014
|
-
await
|
|
3014
|
+
await _chunk6RY5COUYjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
3015
3015
|
compatibilityResponse,
|
|
3016
|
-
|
|
3016
|
+
_chunk36254433js.resolveConfig.call(void 0, ).baseUrl,
|
|
3017
3017
|
maintenancePolicy
|
|
3018
3018
|
);
|
|
3019
3019
|
}
|
|
@@ -3048,7 +3048,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3048
3048
|
const { _metadata, ...execution } = rawResponse;
|
|
3049
3049
|
rawResponse = execution;
|
|
3050
3050
|
}
|
|
3051
|
-
const { listConversion, summary, baseEnvelope } = await
|
|
3051
|
+
const { listConversion, summary, baseEnvelope } = await _chunk6RY5COUYjs.runToolExecuteStage.call(void 0,
|
|
3052
3052
|
"result formatting",
|
|
3053
3053
|
async () => {
|
|
3054
3054
|
const listConversion2 = _chunkHGFFYVXNjs.tryConvertToList.call(void 0, rawResponse, {
|
|
@@ -3083,9 +3083,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3083
3083
|
}
|
|
3084
3084
|
skillsSyncAttempted = true;
|
|
3085
3085
|
try {
|
|
3086
|
-
await
|
|
3086
|
+
await _chunk6RY5COUYjs.runToolExecuteStage.call(void 0,
|
|
3087
3087
|
"agent skills sync",
|
|
3088
|
-
() =>
|
|
3088
|
+
() => _chunkWPGZ6V36js.syncSdkSkillsIfNeeded.call(void 0, _chunk36254433js.resolveConfig.call(void 0, ).baseUrl, {
|
|
3089
3089
|
update: deliveredCompatibilityResponse.skills,
|
|
3090
3090
|
mode: "detached"
|
|
3091
3091
|
})
|
|
@@ -3096,15 +3096,15 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3096
3096
|
);
|
|
3097
3097
|
}
|
|
3098
3098
|
};
|
|
3099
|
-
const printDeliveredEnvelope = (envelope, options2 = {}) =>
|
|
3099
|
+
const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkJSIOLCTKjs.printCommandEnvelope.call(void 0, envelope, {
|
|
3100
3100
|
...options2,
|
|
3101
3101
|
json: _nullishCoalesce(options2.json, () => ( wantsJson))
|
|
3102
3102
|
});
|
|
3103
3103
|
const printDeliveredJsonEnvelope = async (envelope, options2 = {}) => {
|
|
3104
3104
|
await syncSkillsForDeliveredOutput();
|
|
3105
|
-
|
|
3105
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
|
|
3106
3106
|
};
|
|
3107
|
-
const delivered = await
|
|
3107
|
+
const delivered = await _chunk6RY5COUYjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
|
|
3108
3108
|
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
|
|
3109
3109
|
await printDeliveredJsonEnvelope(baseEnvelope);
|
|
3110
3110
|
return true;
|
|
@@ -3133,7 +3133,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3133
3133
|
`${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
|
|
3134
3134
|
);
|
|
3135
3135
|
if (wantsJson) {
|
|
3136
|
-
|
|
3136
|
+
_chunkJSIOLCTKjs.printJsonError.call(void 0, error);
|
|
3137
3137
|
} else {
|
|
3138
3138
|
console.error(error.message);
|
|
3139
3139
|
}
|
|
@@ -3228,13 +3228,13 @@ inspect: ${inspection.inspect}
|
|
|
3228
3228
|
return true;
|
|
3229
3229
|
});
|
|
3230
3230
|
if (delivered) {
|
|
3231
|
-
await
|
|
3231
|
+
await _chunk6RY5COUYjs.runToolExecuteStage.call(void 0,
|
|
3232
3232
|
"acknowledge delivery",
|
|
3233
3233
|
() => recovery.acknowledgeDelivery()
|
|
3234
3234
|
);
|
|
3235
3235
|
}
|
|
3236
3236
|
if (delivered && deliveredCompatibilityResponse && deliveredCompatibilityResponse.update_required !== true) {
|
|
3237
|
-
|
|
3237
|
+
_chunkWPGZ6V36js.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
|
|
3238
3238
|
quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _64 => _64.auto_update, 'optionalAccess', _65 => _65.should_auto_update]) === true
|
|
3239
3239
|
});
|
|
3240
3240
|
}
|