deepline 0.3.564 → 0.3.566
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 +51 -0
- package/dist/bundling-sources/sdk/src/connector-sync.ts +241 -0
- package/dist/bundling-sources/sdk/src/index.ts +10 -0
- package/dist/bundling-sources/sdk/src/integrations.ts +7 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/action-actor.ts +5 -0
- package/dist/cli/{auth-PXZ7JZUT.mjs → auth-HSFDBHVB.mjs} +5 -5
- package/dist/cli/auth-RGFZEMFX.js +44 -0
- package/dist/cli/{billing-AMYFMDZL.mjs → billing-6T7HH6DE.mjs} +9 -9
- package/dist/cli/{billing-OY2ZN5XJ.js → billing-NG5W2PDU.js} +102 -102
- package/dist/cli/{chunk-HEWVHSNN.mjs → chunk-3PNU3FEI.mjs} +4 -4
- package/dist/cli/{chunk-4JQ6MHE7.js → chunk-5J6VEC75.js} +4 -4
- package/dist/cli/{chunk-I4XWKMGR.js → chunk-6F6DMBEJ.js} +15 -15
- package/dist/cli/{chunk-HGGIWRA5.js → chunk-7GLVIFDO.js} +48 -48
- package/dist/cli/{chunk-ZOITMXVO.mjs → chunk-AD47OWTE.mjs} +1 -1
- package/dist/cli/{chunk-TVF7XVPN.mjs → chunk-AGDRIXF2.mjs} +1 -1
- package/dist/cli/{chunk-Y2FZJRRM.js → chunk-AHELFBG5.js} +2 -2
- package/dist/cli/{chunk-YIDXJD5L.mjs → chunk-AIF7ZHCF.mjs} +1 -1
- package/dist/cli/{chunk-DHZOC2QX.mjs → chunk-ARUXRZR4.mjs} +2 -2
- package/dist/cli/{chunk-CXN574UU.mjs → chunk-BILFWD6F.mjs} +1 -1
- package/dist/cli/{search-output-AXVUC3TF.js → chunk-C5IA2OYE.js} +2 -199
- package/dist/cli/{chunk-2SKEXMFV.js → chunk-CQX5MWHH.js} +5 -5
- package/dist/cli/{chunk-DTTMFSNG.mjs → chunk-CSXMBYEW.mjs} +1 -1
- package/dist/cli/{chunk-IW3N7ARM.js → chunk-CXK6ZEOQ.js} +159 -9
- package/dist/cli/{chunk-655PNNU7.mjs → chunk-E44TMICV.mjs} +1 -1
- package/dist/cli/{chunk-GWTFA5GD.js → chunk-EIYQIY3C.js} +3 -3
- package/dist/cli/{chunk-MY45K7SA.mjs → chunk-FPKKYS7V.mjs} +5 -5
- package/dist/cli/{chunk-DYTTZHYX.mjs → chunk-FUTXULX5.mjs} +5 -5
- package/dist/cli/{chunk-WDXXHTIF.js → chunk-FXSDDRVX.js} +23 -23
- package/dist/cli/{chunk-KR76WIOX.js → chunk-GY7MY2IJ.js} +1 -1
- package/dist/cli/{chunk-RKG2E2JF.js → chunk-H6BQIQEJ.js} +9 -9
- package/dist/cli/{chunk-V2SNCH5X.js → chunk-ILTX6ZAH.js} +6 -6
- package/dist/cli/{chunk-I2GVGCMM.js → chunk-JSVNTY47.js} +12 -12
- package/dist/cli/{chunk-2ISK6CUL.mjs → chunk-K3DEHKV7.mjs} +11 -11
- package/dist/cli/{chunk-RBTOZO5M.js → chunk-K5QLALHC.js} +41 -41
- package/dist/cli/{chunk-JVSHMUGE.mjs → chunk-KCD4LM2D.mjs} +3 -3
- package/dist/cli/{chunk-OCLHNDVN.mjs → chunk-KDPGBC5U.mjs} +5 -5
- package/dist/cli/{chunk-XP6ALUAZ.mjs → chunk-KKC7U4UJ.mjs} +2 -2
- package/dist/cli/{chunk-VACBPVIR.mjs → chunk-KOMEYB7H.mjs} +104 -0
- package/dist/cli/{chunk-HPXN5QZZ.js → chunk-KXGUMGCU.js} +20 -20
- package/dist/cli/{chunk-BRQVKZWJ.js → chunk-L2P3672R.js} +7 -7
- package/dist/cli/{chunk-2PMHEUED.mjs → chunk-L5N4DSH4.mjs} +3 -3
- package/dist/cli/{chunk-4NNNJLAZ.mjs → chunk-LAQNXNVR.mjs} +2 -2
- package/dist/cli/{chunk-WXB7PU3O.mjs → chunk-MEBKPVHE.mjs} +1 -1
- package/dist/cli/{search-output-N44NPUN6.mjs → chunk-MI5Q5FOD.mjs} +1 -198
- package/dist/cli/{chunk-KBGP4CS5.js → chunk-MIS3V2C3.js} +10 -10
- package/dist/cli/{chunk-5CNHEUGJ.js → chunk-OEVCKW2M.js} +104 -0
- package/dist/cli/{chunk-7DU4VODD.mjs → chunk-OFEARTQO.mjs} +2 -2
- package/dist/cli/{chunk-XWDCKDUP.js → chunk-OL3WYX7L.js} +26 -26
- package/dist/cli/{chunk-TK6YKQ45.mjs → chunk-P7Q27COZ.mjs} +1 -1
- package/dist/cli/{chunk-UWX4TTJU.mjs → chunk-PLXQIHRM.mjs} +2 -2
- package/dist/cli/{chunk-V2GHSOQB.js → chunk-PRM3WYG7.js} +100 -100
- package/dist/cli/{chunk-QHBYLHOG.mjs → chunk-QBX4UJMY.mjs} +2 -2
- package/dist/cli/{chunk-RW6PFYT5.mjs → chunk-RIV2AZLY.mjs} +5 -5
- package/dist/cli/{chunk-YMQOTCLU.js → chunk-RUVYG5TT.js} +2 -2
- package/dist/cli/{chunk-RK5EKJAT.mjs → chunk-SR7IUISM.mjs} +152 -2
- package/dist/cli/{chunk-XVYU3J2J.js → chunk-T3RKLPPS.js} +13 -13
- package/dist/cli/{chunk-WSEMXB7X.js → chunk-TVGGBQFG.js} +20 -20
- package/dist/cli/{chunk-56P2BEVI.mjs → chunk-TYKMBPNE.mjs} +2 -2
- package/dist/cli/{chunk-R5555CB5.js → chunk-UF5MVM6L.js} +2 -2
- package/dist/cli/{chunk-ZJ23RI3B.mjs → chunk-VHRYJACF.mjs} +2 -2
- package/dist/cli/{chunk-7NSHH3NB.js → chunk-VRWMQUFO.js} +5 -5
- package/dist/cli/{chunk-QQTZ6KG4.mjs → chunk-YFP7YZUU.mjs} +4 -4
- package/dist/cli/{chunk-ZZW5A4HZ.js → chunk-YJEBAR3C.js} +5 -5
- package/dist/cli/{chunk-HXZSXPT2.js → chunk-Z5BLACQ3.js} +53 -53
- package/dist/cli/{chunk-4SV43Z64.js → chunk-ZYXQIOWE.js} +3 -3
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/concurrent-runs-help-3QVRXAZG.js +22 -0
- package/dist/cli/{concurrent-runs-help-5GPKNDAY.mjs → concurrent-runs-help-TNMN4C74.mjs} +6 -6
- package/dist/cli/{csv-X3FHV56H.js → csv-77H4JMDW.js} +13 -13
- package/dist/cli/{csv-ARPN6J6K.mjs → csv-KAZRKSLV.mjs} +4 -4
- package/dist/cli/{db-WINZJRWC.js → db-MM6R2466.js} +27 -27
- package/dist/cli/{db-2HWSS3MA.mjs → db-XQQAVLWO.mjs} +6 -6
- package/dist/cli/describe-H43UIBVP.js +50 -0
- package/dist/cli/{describe-333JCD22.mjs → describe-P5N56GPA.mjs} +18 -18
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-JYYXIRE6.mjs → executions-EGEQZV5V.mjs} +6 -6
- package/dist/cli/{executions-UHZHVQLO.js → executions-EGPCT2OK.js} +8 -8
- package/dist/cli/{feedback-6G4SDI7M.js → feedback-ALMW7OR5.js} +14 -14
- package/dist/cli/{feedback-KNGQ4VMG.mjs → feedback-IWUJAF6O.mjs} +6 -6
- package/dist/cli/{git-DREIWOYN.mjs → git-4CQQWLZP.mjs} +5 -5
- package/dist/cli/git-UYYH53Q6.js +26 -0
- package/dist/cli/index.js +147 -147
- package/dist/cli/index.mjs +46 -46
- package/dist/cli/integrations-LS73NWU7.mjs +284 -0
- package/dist/cli/integrations-Y7W5L7DW.js +284 -0
- package/dist/cli/{legacy-noops-FSL5Y4TO.mjs → legacy-noops-V45TJGK3.mjs} +6 -6
- package/dist/cli/{legacy-noops-7LZ2HNLB.js → legacy-noops-WXGSAZ6O.js} +9 -9
- package/dist/cli/{mcp-TAVIRUQC.js → mcp-3QRLMKFF.js} +24 -24
- package/dist/cli/{mcp-WDJV3OCV.mjs → mcp-4IHB3LCG.mjs} +4 -4
- package/dist/cli/{monitors-HGT2RVR5.js → monitors-4I2QDCOV.js} +100 -100
- package/dist/cli/{monitors-L5FSJSVD.mjs → monitors-K46XW6QH.mjs} +7 -7
- package/dist/cli/{org-4LNYSIEM.js → org-CBJY5DO5.js} +121 -121
- package/dist/cli/{org-J5DJCLTU.mjs → org-H3GYWKFC.mjs} +6 -6
- package/dist/cli/{outcomes-5DZ5EZ5Q.mjs → outcomes-AE6ZPY6O.mjs} +6 -6
- package/dist/cli/{outcomes-4QO264GU.js → outcomes-KHZ3S3SG.js} +14 -14
- package/dist/cli/{play-FZY7NZAM.js → play-SY2PCUMD.js} +324 -324
- package/dist/cli/{play-SETNQCBB.mjs → play-YQS3OI2Q.mjs} +19 -19
- package/dist/cli/{providers-754HLYAW.js → providers-IT2YALZM.js} +9 -9
- package/dist/cli/{providers-PIS6IQVA.mjs → providers-WJBBSM76.mjs} +6 -6
- package/dist/cli/{quickstart-5P4NYWZK.mjs → quickstart-TYMROAQG.mjs} +4 -4
- package/dist/cli/{quickstart-2TIUCHQF.js → quickstart-VMLHHXFD.js} +6 -6
- package/dist/cli/{run-OQNK7G3I.js → run-GQOWNUD2.js} +44 -44
- package/dist/cli/{run-WAN4VZMS.mjs → run-TSOLGWTK.mjs} +23 -23
- package/dist/cli/search-B23QXBNF.js +32 -0
- package/dist/cli/{search-PTX7IMBB.mjs → search-MJAL37NP.mjs} +7 -7
- package/dist/cli/search-output-AUVP4ZLR.js +205 -0
- package/dist/cli/search-output-IKVGU3MZ.mjs +205 -0
- package/dist/cli/{secrets-ZODIPUMI.mjs → secrets-4KYGVJJJ.mjs} +6 -6
- package/dist/cli/{secrets-32WRPZB2.js → secrets-NO6ZD2OZ.js} +15 -15
- package/dist/cli/sessions-DJLG57FC.js +23 -0
- package/dist/cli/{sessions-JRIS3JMT.mjs → sessions-S2O24LRW.mjs} +6 -6
- package/dist/cli/{settings-OI3OHCD5.mjs → settings-NSZNSX67.mjs} +12 -12
- package/dist/cli/{settings-YIZUG6T3.js → settings-O5BELZRA.js} +85 -85
- package/dist/cli/{setup-4QQ33WUA.mjs → setup-3VTTPHKI.mjs} +9 -9
- package/dist/cli/{setup-AF3I4UPE.js → setup-IGJKIVJ7.js} +49 -49
- package/dist/cli/skills-76W4VCHP.js +37 -0
- package/dist/cli/{skills-EITRSX56.mjs → skills-JMSX77S3.mjs} +7 -7
- package/dist/cli/{tools-CMOLGIDR.mjs → tools-MITGT2JM.mjs} +17 -17
- package/dist/cli/tools-OS32SFJD.js +57 -0
- package/dist/cli/update-UGLA7TLH.js +37 -0
- package/dist/cli/{update-PGEARBAI.mjs → update-YXASQQWE.mjs} +9 -9
- package/dist/cli/{views-2H77STII.mjs → views-7ZMS2B55.mjs} +6 -6
- package/dist/cli/{views-KFLXOZ5N.js → views-Y5CA3JWP.js} +21 -21
- package/dist/cli/{workflow-XWMAYWVX.mjs → workflow-GBXWHYDL.mjs} +7 -7
- package/dist/cli/{workflow-HCEMVZAZ.js → workflow-U7KXZLKI.js} +17 -17
- package/dist/{client-CnphYDTe.d.mts → client-B5cSKEi4.d.mts} +1 -1
- package/dist/{client-core-DQOTt3yV.d.mts → client-core-BP19BoBb.d.mts} +107 -2
- package/dist/{client-core-Yad6-K7-.d.ts → client-core-Deqov12F.d.ts} +107 -2
- package/dist/{client-BSxuaObS.d.ts → client-vUZGmXT9.d.ts} +1 -1
- 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 +121 -118
- 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-645UXOAZ.js +0 -44
- package/dist/cli/concurrent-runs-help-QKZXIMSW.js +0 -22
- package/dist/cli/describe-6TJYCPFQ.js +0 -50
- package/dist/cli/git-TQNP4MAD.js +0 -26
- package/dist/cli/integrations-UY3T3ZHA.mjs +0 -129
- package/dist/cli/integrations-V6EO6JAM.js +0 -129
- package/dist/cli/search-VXKJDQA5.js +0 -32
- package/dist/cli/sessions-MW3SUF7R.js +0 -23
- package/dist/cli/skills-ECMGSQM4.js +0 -37
- package/dist/cli/tools-QTTCIEQM.js +0 -57
- package/dist/cli/update-N3YQGALD.js +0 -37
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkL2P3672Rjs = require('./chunk-L2P3672R.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -11,11 +11,11 @@ var _chunkBRQVKZWJjs = require('./chunk-BRQVKZWJ.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkJSVNTY47js = require('./chunk-JSVNTY47.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkMIS3V2C3js = require('./chunk-MIS3V2C3.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 _chunkVRWMQUFOjs = require('./chunk-VRWMQUFO.js');
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
var
|
|
63
|
+
var _chunkCXK6ZEOQjs = require('./chunk-CXK6ZEOQ.js');
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunkFXSDDRVXjs = require('./chunk-FXSDDRVX.js');
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
|
|
75
|
-
var
|
|
75
|
+
var _chunkUF5MVM6Ljs = require('./chunk-UF5MVM6L.js');
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
var
|
|
82
|
+
var _chunk7GLVIFDOjs = require('./chunk-7GLVIFDO.js');
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
|
|
@@ -88,12 +88,12 @@ var _chunkHGGIWRA5js = require('./chunk-HGGIWRA5.js');
|
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
|
|
91
|
-
var
|
|
91
|
+
var _chunkTVGGBQFGjs = require('./chunk-TVGGBQFG.js');
|
|
92
92
|
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
|
|
96
|
-
var
|
|
96
|
+
var _chunkZYXQIOWEjs = require('./chunk-ZYXQIOWE.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 = _chunkZYXQIOWEjs.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
|
+
_chunkZYXQIOWEjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
|
|
209
209
|
`${PENDING_PREFIX}${fingerprint}.json`
|
|
210
210
|
);
|
|
211
211
|
}
|
|
@@ -585,13 +585,13 @@ function categoryEnumerationRender(summaries) {
|
|
|
585
585
|
};
|
|
586
586
|
}
|
|
587
587
|
async function listToolCategories(emitJson, compact) {
|
|
588
|
-
const client = new (0,
|
|
588
|
+
const client = new (0, _chunkVRWMQUFOjs.DeeplineClient)();
|
|
589
589
|
if (!emitJson) {
|
|
590
590
|
const summaries2 = (await client.listToolCategories()).map((category) => ({
|
|
591
591
|
...category,
|
|
592
592
|
description: describeToolCategory(category.name)
|
|
593
593
|
}));
|
|
594
|
-
|
|
594
|
+
_chunkTVGGBQFGjs.printCommandEnvelope.call(void 0,
|
|
595
595
|
{ categories: summaries2, render: categoryEnumerationRender(summaries2) },
|
|
596
596
|
{ json: false }
|
|
597
597
|
);
|
|
@@ -601,7 +601,7 @@ async function listToolCategories(emitJson, compact) {
|
|
|
601
601
|
const items = rawTools.map(toListedTool);
|
|
602
602
|
const summaries = aggregateCategorySummaries(rawTools);
|
|
603
603
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
604
|
-
|
|
604
|
+
_chunkTVGGBQFGjs.printCommandEnvelope.call(void 0,
|
|
605
605
|
{
|
|
606
606
|
tools: outputItems,
|
|
607
607
|
count: outputItems.length,
|
|
@@ -620,7 +620,7 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
620
620
|
const known = summaries.map((item) => item.name);
|
|
621
621
|
const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
|
|
622
622
|
if (emitJson) {
|
|
623
|
-
|
|
623
|
+
_chunkTVGGBQFGjs.printJson.call(void 0, {
|
|
624
624
|
ok: false,
|
|
625
625
|
exitCode: 4,
|
|
626
626
|
code: "TOOL_CATEGORY_NOT_FOUND",
|
|
@@ -634,13 +634,13 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
634
634
|
const render = categoryEnumerationRender(summaries);
|
|
635
635
|
console.error(message);
|
|
636
636
|
console.error("");
|
|
637
|
-
console.error(
|
|
637
|
+
console.error(_chunkTVGGBQFGjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
|
|
638
638
|
console.error("");
|
|
639
639
|
console.error(`Valid categories: ${known.join(", ")}`);
|
|
640
640
|
return 4;
|
|
641
641
|
}
|
|
642
642
|
async function listToolsInCategory(category, emitJson) {
|
|
643
|
-
const client = new (0,
|
|
643
|
+
const client = new (0, _chunkVRWMQUFOjs.DeeplineClient)();
|
|
644
644
|
const { tools: rawTools, categories } = await client.listToolsInCategory(category);
|
|
645
645
|
const summaries = categories.map((item) => ({
|
|
646
646
|
...item,
|
|
@@ -676,7 +676,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
676
676
|
}
|
|
677
677
|
]
|
|
678
678
|
};
|
|
679
|
-
|
|
679
|
+
_chunkTVGGBQFGjs.printCommandEnvelope.call(void 0,
|
|
680
680
|
{
|
|
681
681
|
category,
|
|
682
682
|
total: rows.length,
|
|
@@ -689,7 +689,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
689
689
|
return 0;
|
|
690
690
|
}
|
|
691
691
|
async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
|
|
692
|
-
const client = new (0,
|
|
692
|
+
const client = new (0, _chunkVRWMQUFOjs.DeeplineClient)();
|
|
693
693
|
const items = (await client.listTools({
|
|
694
694
|
categories: requestedCategories.join(","),
|
|
695
695
|
compact
|
|
@@ -718,7 +718,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
|
|
|
718
718
|
]
|
|
719
719
|
};
|
|
720
720
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
721
|
-
|
|
721
|
+
_chunkTVGGBQFGjs.printCommandEnvelope.call(void 0,
|
|
722
722
|
{
|
|
723
723
|
tools: outputItems,
|
|
724
724
|
count: outputItems.length,
|
|
@@ -737,13 +737,13 @@ async function listTools(category, options = {}) {
|
|
|
737
737
|
const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _12 => _12.trim, 'call', _13 => _13()]), () => ( ""));
|
|
738
738
|
const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
|
|
739
739
|
const compact = options.compact !== false;
|
|
740
|
-
const emitJson = options.json === true ||
|
|
740
|
+
const emitJson = options.json === true || _chunkTVGGBQFGjs.shouldEmitJson.call(void 0, );
|
|
741
741
|
if (positional && flagCategories.length > 0) {
|
|
742
742
|
const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
|
|
743
743
|
if (!flagIsSameSingle) {
|
|
744
744
|
const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
|
|
745
745
|
if (emitJson) {
|
|
746
|
-
|
|
746
|
+
_chunkTVGGBQFGjs.printJson.call(void 0, {
|
|
747
747
|
ok: false,
|
|
748
748
|
exitCode: 2,
|
|
749
749
|
code: "TOOL_LIST_CATEGORY_CONFLICT",
|
|
@@ -770,7 +770,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
770
770
|
console.error("Usage: deepline tools grep <query> [--json]");
|
|
771
771
|
return 1;
|
|
772
772
|
}
|
|
773
|
-
const client = new (0,
|
|
773
|
+
const client = new (0, _chunkVRWMQUFOjs.DeeplineClient)();
|
|
774
774
|
const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
|
|
775
775
|
const mode = _nullishCoalesce(options.mode, () => ( "all"));
|
|
776
776
|
const jsonOutput = options.json === true;
|
|
@@ -794,7 +794,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
794
794
|
query,
|
|
795
795
|
mode
|
|
796
796
|
}) : null;
|
|
797
|
-
|
|
797
|
+
_chunkTVGGBQFGjs.printCommandEnvelope.call(void 0,
|
|
798
798
|
{
|
|
799
799
|
tools: outputTools,
|
|
800
800
|
count: outputTools.length,
|
|
@@ -812,7 +812,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
812
812
|
} : {},
|
|
813
813
|
commandTemplates: TOOL_COMMAND_TEMPLATES
|
|
814
814
|
},
|
|
815
|
-
{ json: options.json ||
|
|
815
|
+
{ json: options.json || _chunkTVGGBQFGjs.shouldEmitJson.call(void 0, ) }
|
|
816
816
|
);
|
|
817
817
|
return 0;
|
|
818
818
|
}
|
|
@@ -908,13 +908,13 @@ Output:
|
|
|
908
908
|
activity.
|
|
909
909
|
`
|
|
910
910
|
);
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
911
|
+
_chunkJSVNTY47js.registerIntegrationBalanceCommand.call(void 0, tools, true);
|
|
912
|
+
_chunkJSVNTY47js.registerWorkspaceConnectionListCommand.call(void 0, tools, "workspace-connections", true);
|
|
913
|
+
_chunkJSVNTY47js.registerLegacyHubSpotMembersCommand.call(void 0, tools, true);
|
|
914
|
+
_chunkJSVNTY47js.registerLegacyWorkspaceConnectionCommand.call(void 0, tools, true);
|
|
915
|
+
_chunkJSVNTY47js.registerLegacyCalendarDelegationCommand.call(void 0, tools, true);
|
|
916
|
+
_chunkJSVNTY47js.registerLegacyAvailabilityCalendarsCommand.call(void 0, tools, true);
|
|
917
|
+
_chunkJSVNTY47js.registerIntegrationConnectCommand.call(void 0, tools, false, true);
|
|
918
918
|
tools.command("list [category]").description("Browse tool categories, or list every tool in a category.").addHelpText(
|
|
919
919
|
"after",
|
|
920
920
|
`
|
|
@@ -947,7 +947,7 @@ Examples:
|
|
|
947
947
|
json: Boolean(options.json)
|
|
948
948
|
});
|
|
949
949
|
});
|
|
950
|
-
|
|
950
|
+
_chunkMIS3V2C3js.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
|
|
951
951
|
tools.command("grep <query>").description(
|
|
952
952
|
"Regex grep over tool ids, descriptions, categories, and input fields."
|
|
953
953
|
).addHelpText(
|
|
@@ -982,7 +982,7 @@ Examples:
|
|
|
982
982
|
});
|
|
983
983
|
const addToolMetadataCommand = (command) => {
|
|
984
984
|
let compatibilityMetadata;
|
|
985
|
-
|
|
985
|
+
_chunkFXSDDRVXjs.registerCompatibilityCatalog.call(void 0, command, () => ({
|
|
986
986
|
toolId: command.args[0],
|
|
987
987
|
acceptMetadata: (metadata) => {
|
|
988
988
|
compatibilityMetadata = metadata;
|
|
@@ -1052,7 +1052,7 @@ Examples:
|
|
|
1052
1052
|
process.exitCode = await narrowView();
|
|
1053
1053
|
return;
|
|
1054
1054
|
}
|
|
1055
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
1055
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-H43UIBVP.js")));
|
|
1056
1056
|
process.exitCode = await describeAnything(
|
|
1057
1057
|
toolId,
|
|
1058
1058
|
{
|
|
@@ -1067,7 +1067,7 @@ Examples:
|
|
|
1067
1067
|
});
|
|
1068
1068
|
};
|
|
1069
1069
|
addToolMetadataCommand(
|
|
1070
|
-
|
|
1070
|
+
_chunkL2P3672Rjs.addDescribeOptions.call(void 0,
|
|
1071
1071
|
tools.command("describe <toolId>", { hidden: true }).alias("get"),
|
|
1072
1072
|
{ json: false }
|
|
1073
1073
|
)
|
|
@@ -1136,7 +1136,7 @@ Examples:
|
|
|
1136
1136
|
options,
|
|
1137
1137
|
void 0,
|
|
1138
1138
|
true,
|
|
1139
|
-
|
|
1139
|
+
_chunkUF5MVM6Ljs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
1140
1140
|
);
|
|
1141
1141
|
}
|
|
1142
1142
|
);
|
|
@@ -1144,13 +1144,13 @@ Examples:
|
|
|
1144
1144
|
function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
1145
1145
|
let metadata;
|
|
1146
1146
|
const startedAt = performance.now();
|
|
1147
|
-
const baseUrl =
|
|
1148
|
-
|
|
1149
|
-
const result =
|
|
1147
|
+
const baseUrl = _chunkZYXQIOWEjs.resolveConfig.call(void 0, ).baseUrl;
|
|
1148
|
+
_chunkUF5MVM6Ljs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
|
|
1149
|
+
const result = _chunkFXSDDRVXjs.runToolExecuteStage.call(void 0,
|
|
1150
1150
|
"SDK compatibility",
|
|
1151
|
-
() =>
|
|
1151
|
+
() => _chunk7GLVIFDOjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
1152
1152
|
command: "tools execute",
|
|
1153
|
-
skillsVersion:
|
|
1153
|
+
skillsVersion: _chunkZYXQIOWEjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
|
|
1154
1154
|
persistCache: false,
|
|
1155
1155
|
timeoutMs: TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS,
|
|
1156
1156
|
catalog: {
|
|
@@ -1164,7 +1164,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
|
1164
1164
|
})
|
|
1165
1165
|
).then(
|
|
1166
1166
|
(compatibility) => {
|
|
1167
|
-
|
|
1167
|
+
_chunkUF5MVM6Ljs.recordCliTrace.call(void 0, {
|
|
1168
1168
|
phase: "cli.tool_execute_compatibility_ready",
|
|
1169
1169
|
ms: performance.now() - startedAt,
|
|
1170
1170
|
ok: compatibility.error === null,
|
|
@@ -1173,7 +1173,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
|
1173
1173
|
return compatibility;
|
|
1174
1174
|
},
|
|
1175
1175
|
(error) => {
|
|
1176
|
-
|
|
1176
|
+
_chunkUF5MVM6Ljs.recordCliTrace.call(void 0, {
|
|
1177
1177
|
phase: "cli.tool_execute_compatibility_ready",
|
|
1178
1178
|
ms: performance.now() - startedAt,
|
|
1179
1179
|
ok: false
|
|
@@ -1188,7 +1188,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1188
1188
|
console.error("Usage: deepline tools describe <toolId> [--json]");
|
|
1189
1189
|
return 1;
|
|
1190
1190
|
}
|
|
1191
|
-
const client = new (0,
|
|
1191
|
+
const client = new (0, _chunkVRWMQUFOjs.DeeplineClient)();
|
|
1192
1192
|
let tool;
|
|
1193
1193
|
try {
|
|
1194
1194
|
tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
|
|
@@ -1247,7 +1247,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1247
1247
|
const lines = toolPricingOnlyLines(tool, toolId);
|
|
1248
1248
|
if (inferenceQuote)
|
|
1249
1249
|
lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
|
|
1250
|
-
|
|
1250
|
+
_chunkTVGGBQFGjs.printCommandEnvelope.call(void 0,
|
|
1251
1251
|
{
|
|
1252
1252
|
toolId: String(tool.toolId || toolId),
|
|
1253
1253
|
cost: _chunkTBLP7HDLjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
@@ -1270,7 +1270,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1270
1270
|
void 0,
|
|
1271
1271
|
seedToolListScript
|
|
1272
1272
|
);
|
|
1273
|
-
|
|
1273
|
+
_chunkTVGGBQFGjs.printCompactJson.call(void 0, {
|
|
1274
1274
|
toolId: contract.toolId,
|
|
1275
1275
|
...options.schemaOnly ? {
|
|
1276
1276
|
inputSchema: contract.inputSchema,
|
|
@@ -1293,7 +1293,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1293
1293
|
return 0;
|
|
1294
1294
|
}
|
|
1295
1295
|
if (options.contractJson) {
|
|
1296
|
-
|
|
1296
|
+
_chunkTVGGBQFGjs.printCompactJson.call(void 0, {
|
|
1297
1297
|
..._chunkTBLP7HDLjs.toolContractJsonForDescribe.call(void 0,
|
|
1298
1298
|
tool,
|
|
1299
1299
|
toolId,
|
|
@@ -1307,7 +1307,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1307
1307
|
}
|
|
1308
1308
|
const emitJson = options.json === true;
|
|
1309
1309
|
if (emitJson) {
|
|
1310
|
-
|
|
1310
|
+
_chunkTVGGBQFGjs.printCompactJson.call(void 0, {
|
|
1311
1311
|
..._chunkTBLP7HDLjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
|
|
1312
1312
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1313
1313
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -2181,7 +2181,7 @@ function parseExecuteOptions(toolId, options, output) {
|
|
|
2181
2181
|
outputFormat = normalizeOutputFormat(options.outputFormat);
|
|
2182
2182
|
}
|
|
2183
2183
|
if (options.idempotencyKey !== void 0) {
|
|
2184
|
-
|
|
2184
|
+
_chunkCXK6ZEOQjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
|
|
2185
2185
|
}
|
|
2186
2186
|
if (options.connection !== void 0 && (options.recover || options.idempotencyKey !== void 0)) {
|
|
2187
2187
|
throw new Error(
|
|
@@ -2570,7 +2570,7 @@ function writeToolReceipt(input) {
|
|
|
2570
2570
|
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;
|
|
2571
2571
|
const status = typeof envelope.status === "string" ? envelope.status : "completed";
|
|
2572
2572
|
const charged = _chunkTBLP7HDLjs.recordField.call(void 0, envelope, "billing").credits_charged;
|
|
2573
|
-
|
|
2573
|
+
_chunkL2P3672Rjs.writeExecutionOutput.call(void 0,
|
|
2574
2574
|
{
|
|
2575
2575
|
id: _nullishCoalesce(input.key, () => ( jobId)),
|
|
2576
2576
|
status,
|
|
@@ -2601,8 +2601,8 @@ async function executeToolForReceipt(input) {
|
|
|
2601
2601
|
let retryKey = null;
|
|
2602
2602
|
let received = false;
|
|
2603
2603
|
try {
|
|
2604
|
-
const cliInvocationId = _nullishCoalesce(
|
|
2605
|
-
const client = new (0,
|
|
2604
|
+
const cliInvocationId = _nullishCoalesce(_chunkFXSDDRVXjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkFXSDDRVXjs.beginToolExecuteCommand.call(void 0, )));
|
|
2605
|
+
const client = new (0, _chunkVRWMQUFOjs.DeeplineClient)();
|
|
2606
2606
|
const metadata = assertExecutableToolMetadata(
|
|
2607
2607
|
toolId,
|
|
2608
2608
|
await _asyncNullishCoalesce(input.metadata, async () => ( await client.getTool(toolId, { cliInvocationId })))
|
|
@@ -2624,9 +2624,9 @@ async function executeToolForReceipt(input) {
|
|
|
2624
2624
|
...input.timeoutMs !== void 0 ? { timeout: input.timeoutMs } : {},
|
|
2625
2625
|
..._optionalChain([metadata, 'access', _37 => _37.executionMetadata, 'optionalAccess', _38 => _38.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {},
|
|
2626
2626
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
2627
|
-
searchRef:
|
|
2627
|
+
searchRef: _chunkMIS3V2C3js.recentSearchRef.call(void 0, toolId),
|
|
2628
2628
|
cliInvocationId,
|
|
2629
|
-
onResponseReceived:
|
|
2629
|
+
onResponseReceived: _chunkL2P3672Rjs.recordApiResponse
|
|
2630
2630
|
});
|
|
2631
2631
|
const response = await call(key).catch((error) => {
|
|
2632
2632
|
if (!key || !refusedRetryKey(error)) throw error;
|
|
@@ -2662,11 +2662,11 @@ async function executeToolForReceipt(input) {
|
|
|
2662
2662
|
if (received) throw error;
|
|
2663
2663
|
const outcomeKnown = answeredWithFailure(error);
|
|
2664
2664
|
if (outcomeKnown) _optionalChain([retryKey, 'optionalAccess', _39 => _39.discard, 'call', _40 => _40()]);
|
|
2665
|
-
|
|
2665
|
+
_chunkL2P3672Rjs.writeExecutionOutput.call(void 0,
|
|
2666
2666
|
{
|
|
2667
2667
|
id: outcomeKnown ? null : key,
|
|
2668
2668
|
status: "failed",
|
|
2669
|
-
error:
|
|
2669
|
+
error: _chunkTVGGBQFGjs.errorToJsonPayload.call(void 0, error).error,
|
|
2670
2670
|
...key && !outcomeKnown ? {
|
|
2671
2671
|
next: {
|
|
2672
2672
|
retry: "Run the same command again: it picks up this call without paying twice."
|
|
@@ -2698,11 +2698,11 @@ function answeredWithFailure(error) {
|
|
|
2698
2698
|
!(error.code === "IDEMPOTENCY_NOT_SUPPORTED" && !serverBodyHasCode(_optionalChain([error, 'access', _43 => _43.details, 'optionalAccess', _44 => _44.response]), "IDEMPOTENCY_NOT_SUPPORTED"));
|
|
2699
2699
|
}
|
|
2700
2700
|
async function getToolExecutionReceipt(key, output) {
|
|
2701
|
-
const client = new (0,
|
|
2701
|
+
const client = new (0, _chunkVRWMQUFOjs.DeeplineClient)();
|
|
2702
2702
|
const execution = await client.executions.getByKey(key);
|
|
2703
2703
|
output.label = `${execution.toolId} (tool)`;
|
|
2704
2704
|
if (execution.response === void 0) {
|
|
2705
|
-
|
|
2705
|
+
_chunkL2P3672Rjs.writeExecutionOutput.call(void 0,
|
|
2706
2706
|
{
|
|
2707
2707
|
id: key,
|
|
2708
2708
|
status: execution.executionRecovery.state,
|
|
@@ -2731,19 +2731,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2731
2731
|
parsed = parseExecuteOptions(toolId, options, output);
|
|
2732
2732
|
} catch (error) {
|
|
2733
2733
|
if (wantsJson) {
|
|
2734
|
-
|
|
2734
|
+
_chunkTVGGBQFGjs.printJsonError.call(void 0, error);
|
|
2735
2735
|
} else {
|
|
2736
2736
|
console.error(error instanceof Error ? error.message : String(error));
|
|
2737
2737
|
}
|
|
2738
2738
|
return error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
|
|
2739
2739
|
}
|
|
2740
|
-
const cliInvocationId = _nullishCoalesce(
|
|
2740
|
+
const cliInvocationId = _nullishCoalesce(_chunkFXSDDRVXjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkFXSDDRVXjs.beginToolExecuteCommand.call(void 0, )));
|
|
2741
2741
|
const deferredCompatibility = deferCompatibility ? beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) : void 0;
|
|
2742
|
-
const tracing =
|
|
2742
|
+
const tracing = _chunkUF5MVM6Ljs.isCliTraceEnabled.call(void 0, );
|
|
2743
2743
|
const clientStartedAt = tracing ? performance.now() : void 0;
|
|
2744
|
-
const client = new (0,
|
|
2744
|
+
const client = new (0, _chunkVRWMQUFOjs.DeeplineClient)();
|
|
2745
2745
|
if (clientStartedAt !== void 0) {
|
|
2746
|
-
|
|
2746
|
+
_chunkUF5MVM6Ljs.recordCliTrace.call(void 0, {
|
|
2747
2747
|
phase: "cli.tool_execute_client_setup",
|
|
2748
2748
|
ms: performance.now() - clientStartedAt
|
|
2749
2749
|
});
|
|
@@ -2752,13 +2752,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2752
2752
|
const readMetadata = async () => {
|
|
2753
2753
|
if (metadata) return assertExecutableToolMetadata(parsed.toolId, metadata);
|
|
2754
2754
|
try {
|
|
2755
|
-
metadata = await
|
|
2755
|
+
metadata = await _chunkFXSDDRVXjs.runToolExecuteStage.call(void 0,
|
|
2756
2756
|
"tool metadata lookup",
|
|
2757
2757
|
() => client.getTool(parsed.toolId, { cliInvocationId })
|
|
2758
2758
|
);
|
|
2759
2759
|
} catch (error) {
|
|
2760
2760
|
if (isMissingToolMetadataError(error)) {
|
|
2761
|
-
const play = await
|
|
2761
|
+
const play = await _chunkFXSDDRVXjs.runToolExecuteStage.call(void 0,
|
|
2762
2762
|
"play alias lookup",
|
|
2763
2763
|
() => findPlayForToolId(client, parsed.toolId, cliInvocationId)
|
|
2764
2764
|
);
|
|
@@ -2781,7 +2781,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2781
2781
|
toolMetadata = await readMetadata();
|
|
2782
2782
|
} catch (error) {
|
|
2783
2783
|
if (error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2784
|
-
if (wantsJson)
|
|
2784
|
+
if (wantsJson) _chunkTVGGBQFGjs.printJsonError.call(void 0, error);
|
|
2785
2785
|
else console.error(error.message);
|
|
2786
2786
|
return 2;
|
|
2787
2787
|
}
|
|
@@ -2809,7 +2809,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2809
2809
|
assertExecutableToolMetadata(parsed.toolId, metadata);
|
|
2810
2810
|
} catch (error) {
|
|
2811
2811
|
if (error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2812
|
-
if (wantsJson)
|
|
2812
|
+
if (wantsJson) _chunkTVGGBQFGjs.printJsonError.call(void 0, error);
|
|
2813
2813
|
else console.error(error.message);
|
|
2814
2814
|
return 2;
|
|
2815
2815
|
}
|
|
@@ -2821,7 +2821,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2821
2821
|
metadata = await readMetadata();
|
|
2822
2822
|
} catch (error) {
|
|
2823
2823
|
if (error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2824
|
-
if (wantsJson)
|
|
2824
|
+
if (wantsJson) _chunkTVGGBQFGjs.printJsonError.call(void 0, error);
|
|
2825
2825
|
else console.error(error.message);
|
|
2826
2826
|
return 2;
|
|
2827
2827
|
}
|
|
@@ -2837,7 +2837,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2837
2837
|
metadata = await readMetadata();
|
|
2838
2838
|
} catch (error) {
|
|
2839
2839
|
if (error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2840
|
-
if (wantsJson)
|
|
2840
|
+
if (wantsJson) _chunkTVGGBQFGjs.printJsonError.call(void 0, error);
|
|
2841
2841
|
else console.error(error.message);
|
|
2842
2842
|
return 2;
|
|
2843
2843
|
}
|
|
@@ -2864,11 +2864,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2864
2864
|
...parsed.connection !== void 0 ? { connection: parsed.connection } : {},
|
|
2865
2865
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
2866
2866
|
...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
|
|
2867
|
-
searchRef:
|
|
2867
|
+
searchRef: _chunkMIS3V2C3js.recentSearchRef.call(void 0, parsed.toolId),
|
|
2868
2868
|
cliInvocationId,
|
|
2869
|
-
onResponseReceived:
|
|
2869
|
+
onResponseReceived: _chunkL2P3672Rjs.recordApiResponse,
|
|
2870
2870
|
...tracing ? {
|
|
2871
|
-
onServerTiming: (serverTiming) =>
|
|
2871
|
+
onServerTiming: (serverTiming) => _chunkUF5MVM6Ljs.recordCliTrace.call(void 0, {
|
|
2872
2872
|
phase: "tool_execute_server_timing",
|
|
2873
2873
|
cliInvocationId,
|
|
2874
2874
|
serverTiming,
|
|
@@ -2879,13 +2879,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2879
2879
|
let rawResponse;
|
|
2880
2880
|
let successfulCompatibilityResponse;
|
|
2881
2881
|
try {
|
|
2882
|
-
const executeResult = await
|
|
2882
|
+
const executeResult = await _chunkFXSDDRVXjs.runToolExecuteStage.call(void 0,
|
|
2883
2883
|
"execute request",
|
|
2884
2884
|
async () => {
|
|
2885
2885
|
try {
|
|
2886
2886
|
if (tracing) {
|
|
2887
2887
|
submissionStartedAt = performance.now();
|
|
2888
|
-
|
|
2888
|
+
_chunkUF5MVM6Ljs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
|
|
2889
2889
|
}
|
|
2890
2890
|
return await client.executeTool(parsed.toolId, parsed.params, {
|
|
2891
2891
|
...executeOptions,
|
|
@@ -2895,34 +2895,34 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2895
2895
|
} catch (error) {
|
|
2896
2896
|
if (parsed.connection !== void 0 || !(error instanceof _chunkLFQJW4S2js.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
|
|
2897
2897
|
throw error;
|
|
2898
|
-
const baseUrl =
|
|
2898
|
+
const baseUrl = _chunkZYXQIOWEjs.resolveConfig.call(void 0, ).baseUrl;
|
|
2899
2899
|
if (maintenancePolicy !== "off") {
|
|
2900
|
-
|
|
2900
|
+
_chunk7GLVIFDOjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
2901
2901
|
}
|
|
2902
2902
|
const preflight = deferredCompatibility ? await deferredCompatibility.result.catch(() => null) : null;
|
|
2903
|
-
const compatibilityResponse = _optionalChain([preflight, 'optionalAccess', _50 => _50.live]) === true ? preflight.response : await
|
|
2903
|
+
const compatibilityResponse = _optionalChain([preflight, 'optionalAccess', _50 => _50.live]) === true ? preflight.response : await _chunkFXSDDRVXjs.runToolExecuteStage.call(void 0,
|
|
2904
2904
|
"SDK compatibility",
|
|
2905
|
-
() =>
|
|
2905
|
+
() => _chunk7GLVIFDOjs.requireSdkCompatibility.call(void 0, baseUrl, {
|
|
2906
2906
|
command: "tools execute",
|
|
2907
|
-
skillsVersion:
|
|
2907
|
+
skillsVersion: _chunkZYXQIOWEjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
|
|
2908
2908
|
persistCache: maintenancePolicy !== "off"
|
|
2909
2909
|
})
|
|
2910
2910
|
);
|
|
2911
2911
|
metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _51 => _51.readMetadata, 'call', _52 => _52()]), () => ( metadata));
|
|
2912
|
-
if (maintenancePolicy !== "off" && await
|
|
2912
|
+
if (maintenancePolicy !== "off" && await _chunkFXSDDRVXjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2913
2913
|
compatibilityResponse,
|
|
2914
2914
|
baseUrl,
|
|
2915
2915
|
maintenancePolicy
|
|
2916
2916
|
)) {
|
|
2917
2917
|
return void 0;
|
|
2918
2918
|
}
|
|
2919
|
-
|
|
2919
|
+
_chunk7GLVIFDOjs.enforceSdkCompatibilityResponse.call(void 0, compatibilityResponse, {
|
|
2920
2920
|
quietAdvisory: wantsJson
|
|
2921
2921
|
});
|
|
2922
2922
|
if (maintenancePolicy !== "off") {
|
|
2923
|
-
await
|
|
2923
|
+
await _chunkFXSDDRVXjs.runToolExecuteStage.call(void 0,
|
|
2924
2924
|
"agent skills sync",
|
|
2925
|
-
() =>
|
|
2925
|
+
() => _chunk7GLVIFDOjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
|
|
2926
2926
|
update: _optionalChain([compatibilityResponse, 'optionalAccess', _53 => _53.skills]),
|
|
2927
2927
|
mode: "detached"
|
|
2928
2928
|
})
|
|
@@ -2931,7 +2931,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2931
2931
|
const legacyMetadata = await readMetadata();
|
|
2932
2932
|
if (tracing) {
|
|
2933
2933
|
submissionStartedAt = performance.now();
|
|
2934
|
-
|
|
2934
|
+
_chunkUF5MVM6Ljs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
|
|
2935
2935
|
}
|
|
2936
2936
|
return client.executeTool(parsed.toolId, parsed.params, {
|
|
2937
2937
|
...executeOptions,
|
|
@@ -2954,8 +2954,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2954
2954
|
metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
|
|
2955
2955
|
const updateRequiredBeforeExecution = error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
|
|
2956
2956
|
if (updateRequiredBeforeExecution && maintenancePolicy !== "off" && compatibility && !compatibility.error) {
|
|
2957
|
-
const baseUrl =
|
|
2958
|
-
if (await
|
|
2957
|
+
const baseUrl = _chunkZYXQIOWEjs.resolveConfig.call(void 0, ).baseUrl;
|
|
2958
|
+
if (await _chunkFXSDDRVXjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2959
2959
|
compatibility.response,
|
|
2960
2960
|
baseUrl,
|
|
2961
2961
|
maintenancePolicy
|
|
@@ -2979,7 +2979,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2979
2979
|
}
|
|
2980
2980
|
}
|
|
2981
2981
|
if (failure instanceof _chunkLFQJW4S2js.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2982
|
-
if (wantsJson)
|
|
2982
|
+
if (wantsJson) _chunkTVGGBQFGjs.printJsonError.call(void 0, failure);
|
|
2983
2983
|
else console.error(failure.message);
|
|
2984
2984
|
return 2;
|
|
2985
2985
|
}
|
|
@@ -3006,9 +3006,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3006
3006
|
successfulCompatibilityResponse = _nullishCoalesce(compatibilityResponse, () => ( void 0));
|
|
3007
3007
|
const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _60 => _60.auto_update]);
|
|
3008
3008
|
if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _61 => _61.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
3009
|
-
await
|
|
3009
|
+
await _chunkFXSDDRVXjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
3010
3010
|
compatibilityResponse,
|
|
3011
|
-
|
|
3011
|
+
_chunkZYXQIOWEjs.resolveConfig.call(void 0, ).baseUrl,
|
|
3012
3012
|
maintenancePolicy
|
|
3013
3013
|
);
|
|
3014
3014
|
}
|
|
@@ -3043,7 +3043,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3043
3043
|
const { _metadata, ...execution } = rawResponse;
|
|
3044
3044
|
rawResponse = execution;
|
|
3045
3045
|
}
|
|
3046
|
-
const { listConversion, summary, baseEnvelope } = await
|
|
3046
|
+
const { listConversion, summary, baseEnvelope } = await _chunkFXSDDRVXjs.runToolExecuteStage.call(void 0,
|
|
3047
3047
|
"result formatting",
|
|
3048
3048
|
async () => {
|
|
3049
3049
|
const listConversion2 = _chunkHGFFYVXNjs.tryConvertToList.call(void 0, rawResponse, {
|
|
@@ -3078,9 +3078,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3078
3078
|
}
|
|
3079
3079
|
skillsSyncAttempted = true;
|
|
3080
3080
|
try {
|
|
3081
|
-
await
|
|
3081
|
+
await _chunkFXSDDRVXjs.runToolExecuteStage.call(void 0,
|
|
3082
3082
|
"agent skills sync",
|
|
3083
|
-
() =>
|
|
3083
|
+
() => _chunk7GLVIFDOjs.syncSdkSkillsIfNeeded.call(void 0, _chunkZYXQIOWEjs.resolveConfig.call(void 0, ).baseUrl, {
|
|
3084
3084
|
update: deliveredCompatibilityResponse.skills,
|
|
3085
3085
|
mode: "detached"
|
|
3086
3086
|
})
|
|
@@ -3091,15 +3091,15 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3091
3091
|
);
|
|
3092
3092
|
}
|
|
3093
3093
|
};
|
|
3094
|
-
const printDeliveredEnvelope = (envelope, options2 = {}) =>
|
|
3094
|
+
const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkTVGGBQFGjs.printCommandEnvelope.call(void 0, envelope, {
|
|
3095
3095
|
...options2,
|
|
3096
3096
|
json: _nullishCoalesce(options2.json, () => ( wantsJson))
|
|
3097
3097
|
});
|
|
3098
3098
|
const printDeliveredJsonEnvelope = async (envelope, options2 = {}) => {
|
|
3099
3099
|
await syncSkillsForDeliveredOutput();
|
|
3100
|
-
|
|
3100
|
+
_chunkTVGGBQFGjs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
|
|
3101
3101
|
};
|
|
3102
|
-
const delivered = await
|
|
3102
|
+
const delivered = await _chunkFXSDDRVXjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
|
|
3103
3103
|
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
|
|
3104
3104
|
await printDeliveredJsonEnvelope(baseEnvelope);
|
|
3105
3105
|
return true;
|
|
@@ -3128,7 +3128,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3128
3128
|
`${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
|
|
3129
3129
|
);
|
|
3130
3130
|
if (wantsJson) {
|
|
3131
|
-
|
|
3131
|
+
_chunkTVGGBQFGjs.printJsonError.call(void 0, error);
|
|
3132
3132
|
} else {
|
|
3133
3133
|
console.error(error.message);
|
|
3134
3134
|
}
|
|
@@ -3223,13 +3223,13 @@ inspect: ${inspection.inspect}
|
|
|
3223
3223
|
return true;
|
|
3224
3224
|
});
|
|
3225
3225
|
if (delivered) {
|
|
3226
|
-
await
|
|
3226
|
+
await _chunkFXSDDRVXjs.runToolExecuteStage.call(void 0,
|
|
3227
3227
|
"acknowledge delivery",
|
|
3228
3228
|
() => recovery.acknowledgeDelivery()
|
|
3229
3229
|
);
|
|
3230
3230
|
}
|
|
3231
3231
|
if (delivered && deliveredCompatibilityResponse && deliveredCompatibilityResponse.update_required !== true) {
|
|
3232
|
-
|
|
3232
|
+
_chunk7GLVIFDOjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
|
|
3233
3233
|
quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _64 => _64.auto_update, 'optionalAccess', _65 => _65.should_auto_update]) === true
|
|
3234
3234
|
});
|
|
3235
3235
|
}
|