deepline 0.3.541 → 0.3.542
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/sdk/src/types.ts +7 -1
- package/dist/cli/auth-2PH6RSKL.js +43 -0
- package/dist/cli/{auth-WJXA7XGM.mjs → auth-IGBGOB4E.mjs} +5 -5
- package/dist/cli/{billing-34IV5DSV.js → billing-IB2TWE74.js} +92 -92
- package/dist/cli/{billing-SHS4HMWT.mjs → billing-N37W2I62.mjs} +8 -8
- package/dist/cli/{chunk-7AUQSK24.mjs → chunk-2VRKBHMD.mjs} +1 -1
- package/dist/cli/{chunk-RYYGNUNO.mjs → chunk-2ZGSHVZE.mjs} +2 -2
- package/dist/cli/{chunk-WZMG2M65.mjs → chunk-3LEUSRV3.mjs} +4 -4
- package/dist/cli/{chunk-MPYM6TUO.js → chunk-3XXXMSSP.js} +44 -44
- package/dist/cli/{chunk-5LNWLEO3.mjs → chunk-46V7QSJE.mjs} +2 -2
- package/dist/cli/{chunk-323I5KQ5.js → chunk-4I47NCRI.js} +8 -8
- package/dist/cli/{chunk-LRPFCB2P.mjs → chunk-5APOJWJF.mjs} +1 -1
- package/dist/cli/{chunk-FYQWTENQ.js → chunk-5CAVURVS.js} +53 -53
- package/dist/cli/{chunk-CNBPATLI.js → chunk-6SLEHAXX.js} +5 -5
- package/dist/cli/{chunk-FTKX7OGB.mjs → chunk-6WQDHEVF.mjs} +5 -5
- package/dist/cli/{chunk-JZNKEHXQ.mjs → chunk-ACVTMAW4.mjs} +2 -2
- package/dist/cli/{chunk-UXXFCOE3.js → chunk-AKY7KZRJ.js} +6 -6
- package/dist/cli/{chunk-S6FF7Q5P.js → chunk-AUFE624T.js} +10 -10
- package/dist/cli/{chunk-6TZEDCN7.js → chunk-AWLPERL3.js} +3 -3
- package/dist/cli/{chunk-DF7ARQRB.mjs → chunk-B5NP3SHX.mjs} +2 -2
- package/dist/cli/{chunk-KIYETQ6K.js → chunk-CFZCRM6R.js} +26 -26
- package/dist/cli/{chunk-UKO6POLZ.js → chunk-D44DP4KJ.js} +9 -9
- package/dist/cli/{chunk-OK4JMVTM.js → chunk-D7GWEBMF.js} +7 -7
- package/dist/cli/{chunk-XO2SGONT.mjs → chunk-DADH3WPE.mjs} +2 -2
- package/dist/cli/{chunk-CY5LW6DW.js → chunk-DMXLZ57N.js} +2 -2
- package/dist/cli/{chunk-WIV3E6Y7.js → chunk-DNGACHFX.js} +22 -22
- package/dist/cli/{chunk-ZD673XAL.js → chunk-E7B73LGT.js} +19 -19
- package/dist/cli/{chunk-NB4AIXEA.mjs → chunk-EGOCGWCI.mjs} +3 -3
- package/dist/cli/{chunk-M6XIKHBS.js → chunk-EHLCWGWN.js} +4 -4
- package/dist/cli/{chunk-XTR32PMA.mjs → chunk-FFDZT255.mjs} +1 -1
- package/dist/cli/{chunk-FVZ5Y5L6.js → chunk-FGGPCAGC.js} +15 -15
- package/dist/cli/{chunk-53QZ24DP.mjs → chunk-FX4OWXKK.mjs} +2 -2
- package/dist/cli/{chunk-Q66ADD4O.js → chunk-GM73TZ2W.js} +41 -41
- package/dist/cli/{chunk-S7NKIEHL.js → chunk-HAITCPCG.js} +16 -16
- package/dist/cli/{chunk-GLINYHY7.mjs → chunk-I5EAIFGO.mjs} +1 -1
- package/dist/cli/{chunk-BUCTWJBM.js → chunk-JPT6VE54.js} +2 -2
- package/dist/cli/{chunk-F3TLGM2U.js → chunk-LFMQVSEI.js} +5 -5
- package/dist/cli/{chunk-C2LYJ3EX.js → chunk-NDNEARE3.js} +13 -13
- package/dist/cli/{chunk-ABDXKELH.mjs → chunk-NLZHLEHD.mjs} +5 -5
- package/dist/cli/{chunk-DHC7EGI7.mjs → chunk-ORA5TMML.mjs} +5 -5
- package/dist/cli/{chunk-6PJAC3P5.mjs → chunk-P4MDTBAA.mjs} +1 -1
- package/dist/cli/{chunk-UC5QFQGC.mjs → chunk-PLIKPGOO.mjs} +5 -5
- package/dist/cli/{chunk-2TAGAPLL.js → chunk-Q7WDXLYO.js} +2 -2
- package/dist/cli/{chunk-VMIIUMAN.mjs → chunk-QONO7FRF.mjs} +1 -1
- package/dist/cli/{chunk-5N4ENMYE.js → chunk-QXNOSCYL.js} +1 -1
- package/dist/cli/{chunk-ECPCZVDM.mjs → chunk-SCLP5H4P.mjs} +1 -1
- package/dist/cli/{chunk-ZL2DER5D.mjs → chunk-SWO5QOXB.mjs} +1 -1
- package/dist/cli/{chunk-FRPJSFNL.mjs → chunk-TT4JUUC3.mjs} +2 -2
- package/dist/cli/{chunk-IZXMX65M.js → chunk-TTBHOMAA.js} +107 -107
- package/dist/cli/{chunk-FOCNY4GV.js → chunk-VHJUH3TB.js} +3 -3
- package/dist/cli/{chunk-H74CLEMB.mjs → chunk-WACIN4PR.mjs} +3 -3
- package/dist/cli/{chunk-POZPEDW7.js → chunk-WL2GUGNZ.js} +5 -5
- package/dist/cli/{chunk-QI76LGE3.mjs → chunk-YK7NNZD4.mjs} +10 -10
- package/dist/cli/{chunk-AU7ZKXW5.mjs → chunk-Z5YRKX7K.mjs} +1 -1
- package/dist/cli/{chunk-BMNLD63A.mjs → chunk-ZVNYBQ77.mjs} +4 -4
- package/dist/cli/concurrent-runs-help-BNIDBKML.js +21 -0
- package/dist/cli/{concurrent-runs-help-ZJ77SAEU.mjs → concurrent-runs-help-DIBGMEIN.mjs} +6 -6
- package/dist/cli/{csv-PX7F5YJN.mjs → csv-CAVA3EMS.mjs} +4 -4
- package/dist/cli/{csv-MJLIZZOR.js → csv-XZAM7EYZ.js} +13 -13
- package/dist/cli/{db-KPKGTHPA.mjs → db-HD332QI7.mjs} +6 -6
- package/dist/cli/{db-BNCNAY4G.js → db-PPGEOBNG.js} +27 -27
- package/dist/cli/describe-5TFFB2PM.js +49 -0
- package/dist/cli/{describe-5OUJA5TH.mjs → describe-THQU7N47.mjs} +17 -17
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-YNOFR7T2.js → executions-4ZKBL7IC.js} +8 -8
- package/dist/cli/{executions-NMQY4GEY.mjs → executions-AFEOLB4A.mjs} +6 -6
- package/dist/cli/{feedback-LWYEO5LL.mjs → feedback-J2YPLKMF.mjs} +6 -6
- package/dist/cli/{feedback-RCP5DPO6.js → feedback-M6Y33JKT.js} +14 -14
- package/dist/cli/{git-3O4PFP3Q.mjs → git-632RYEF6.mjs} +5 -5
- package/dist/cli/git-AQLQYWRI.js +25 -0
- package/dist/cli/index.js +141 -141
- package/dist/cli/index.mjs +43 -43
- package/dist/cli/{legacy-noops-ZPZRG366.js → legacy-noops-4Y62TKPC.js} +9 -9
- package/dist/cli/{legacy-noops-KFP674JT.mjs → legacy-noops-KWZMXYAU.mjs} +6 -6
- package/dist/cli/{mcp-HCXDW6PL.js → mcp-35QA6YG7.js} +21 -21
- package/dist/cli/{mcp-OCYUXQ6L.mjs → mcp-PESLHAAC.mjs} +4 -4
- package/dist/cli/{monitors-7Q7YT22Y.js → monitors-4DTUZLAI.js} +100 -100
- package/dist/cli/{monitors-V5KJIJJE.mjs → monitors-YVBKBJBU.mjs} +7 -7
- package/dist/cli/{org-C3QLHX7U.mjs → org-DJNKMFCZ.mjs} +82 -6
- package/dist/cli/{org-S37K6QYH.js → org-FWCBZMER.js} +162 -86
- package/dist/cli/{play-MLREAYHJ.js → play-FZ45M4KD.js} +317 -317
- package/dist/cli/{play-MXQ2DKML.mjs → play-PHVQEEEZ.mjs} +17 -17
- package/dist/cli/{providers-FDJ4ZOST.mjs → providers-46E67QG7.mjs} +6 -6
- package/dist/cli/{providers-PPDWY7DH.js → providers-QJU6FMDD.js} +9 -9
- package/dist/cli/{quickstart-2Z57AMB7.mjs → quickstart-6HMJJ4RR.mjs} +4 -4
- package/dist/cli/{quickstart-BOWQM7S7.js → quickstart-HOL7H5FS.js} +6 -6
- package/dist/cli/{run-5RNJGPQ2.mjs → run-2W2TJ6QA.mjs} +22 -22
- package/dist/cli/{run-66HXNJNV.js → run-WKSIRXEC.js} +42 -42
- package/dist/cli/{search-7G4FYQYO.mjs → search-Y2CFLSYB.mjs} +7 -7
- package/dist/cli/search-YLJFCJTK.js +32 -0
- package/dist/cli/{search-output-L6ICQDBL.js → search-output-2IK6ZZDY.js} +6 -6
- package/dist/cli/{search-output-6K4FHCVI.mjs → search-output-FCZ35PHF.mjs} +4 -4
- package/dist/cli/{secrets-PWFJKF7G.js → secrets-JVJIHGU4.js} +15 -15
- package/dist/cli/{secrets-FTQPCU7O.mjs → secrets-PNPNUZLX.mjs} +6 -6
- package/dist/cli/{sessions-YSSAAQVJ.mjs → sessions-GY5VVQGO.mjs} +6 -6
- package/dist/cli/sessions-TZ33UCPS.js +22 -0
- package/dist/cli/{settings-CZEMF2WD.js → settings-5WHMFRNQ.js} +85 -85
- package/dist/cli/{settings-KN7GNZ5J.mjs → settings-YQOPF3AI.mjs} +12 -12
- package/dist/cli/{setup-RW4X6DX4.js → setup-3VJMKDEU.js} +49 -49
- package/dist/cli/{setup-5WLHGH57.mjs → setup-O5U5IEVW.mjs} +9 -9
- package/dist/cli/{skills-DLVI7IZK.mjs → skills-G6J5PF35.mjs} +7 -7
- package/dist/cli/skills-WZY3XDT3.js +36 -0
- package/dist/cli/{tools-JVYQF7P3.mjs → tools-AG7SWL5Y.mjs} +16 -16
- package/dist/cli/tools-BXQBL72Q.js +56 -0
- package/dist/cli/{update-XKLXU7YS.mjs → update-K73DD6CR.mjs} +9 -9
- package/dist/cli/update-XYP5EII6.js +34 -0
- package/dist/cli/{views-YNUYFS3S.js → views-4D2OTLIO.js} +21 -21
- package/dist/cli/{views-QRRCWP6B.mjs → views-MO6DIOMR.mjs} +6 -6
- package/dist/cli/{workflow-KYFMA4LM.mjs → workflow-MMZMAELI.mjs} +7 -7
- package/dist/cli/{workflow-YUKADKCJ.js → workflow-ZEMFCS4Y.js} +17 -17
- package/dist/{client-CE4QBVbp.d.mts → client-DLG9mHDh.d.mts} +1 -1
- package/dist/{client-B1fixtK1.d.ts → client-X-FJD5Dp.d.ts} +1 -1
- package/dist/{client-core-C-3FVlVq.d.ts → client-core-0jmHfFBv.d.ts} +1 -1
- package/dist/{client-core-2BkNBgrx.d.mts → client-core-WtnqyBwY.d.mts} +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 +110 -110
- 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-V76O674K.js +0 -43
- package/dist/cli/concurrent-runs-help-MFEPUP6Y.js +0 -21
- package/dist/cli/describe-7MF5AHIU.js +0 -49
- package/dist/cli/git-WLQ3BS6K.js +0 -25
- package/dist/cli/search-LTUIIV6W.js +0 -32
- package/dist/cli/sessions-2IVFGTPA.js +0 -22
- package/dist/cli/skills-WT42AZVH.js +0 -36
- package/dist/cli/tools-D6STYBQG.js +0 -56
- package/dist/cli/update-XTUKBC3J.js +0 -34
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkD7GWEBMFjs = require('./chunk-D7GWEBMF.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkAUFE624Tjs = require('./chunk-AUFE624T.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -46,10 +46,10 @@ var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
|
|
|
46
46
|
var _chunkHGFFYVXNjs = require('./chunk-HGFFYVXN.js');
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
var
|
|
49
|
+
var _chunk6SLEHAXXjs = require('./chunk-6SLEHAXX.js');
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
var
|
|
52
|
+
var _chunk4I47NCRIjs = require('./chunk-4I47NCRI.js');
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
|
|
@@ -59,18 +59,18 @@ var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunkDNGACHFXjs = require('./chunk-DNGACHFX.js');
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
var
|
|
67
|
+
var _chunkQ7WDXLYOjs = require('./chunk-Q7WDXLYO.js');
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
var
|
|
73
|
+
var _chunk3XXXMSSPjs = require('./chunk-3XXXMSSP.js');
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
|
|
@@ -79,12 +79,12 @@ var _chunkMPYM6TUOjs = require('./chunk-MPYM6TUO.js');
|
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
var
|
|
82
|
+
var _chunkE7B73LGTjs = require('./chunk-E7B73LGT.js');
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
|
|
87
|
-
var
|
|
87
|
+
var _chunkVHJUH3TBjs = require('./chunk-VHJUH3TB.js');
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
|
|
@@ -190,10 +190,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
|
|
|
190
190
|
}
|
|
191
191
|
};
|
|
192
192
|
function pendingToolExecutionPath(input) {
|
|
193
|
-
const config =
|
|
193
|
+
const config = _chunkVHJUH3TBjs.resolveConfig.call(void 0, );
|
|
194
194
|
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");
|
|
195
195
|
return _path.join.call(void 0,
|
|
196
|
-
|
|
196
|
+
_chunkVHJUH3TBjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
|
|
197
197
|
`${PENDING_PREFIX}${fingerprint}.json`
|
|
198
198
|
);
|
|
199
199
|
}
|
|
@@ -501,13 +501,13 @@ function categoryEnumerationRender(summaries) {
|
|
|
501
501
|
};
|
|
502
502
|
}
|
|
503
503
|
async function listToolCategories(emitJson, compact) {
|
|
504
|
-
const client = new (0,
|
|
504
|
+
const client = new (0, _chunk6SLEHAXXjs.DeeplineClient)();
|
|
505
505
|
if (!emitJson) {
|
|
506
506
|
const summaries2 = (await client.listToolCategories()).map((category) => ({
|
|
507
507
|
...category,
|
|
508
508
|
description: describeToolCategory(category.name)
|
|
509
509
|
}));
|
|
510
|
-
|
|
510
|
+
_chunkE7B73LGTjs.printCommandEnvelope.call(void 0,
|
|
511
511
|
{ categories: summaries2, render: categoryEnumerationRender(summaries2) },
|
|
512
512
|
{ json: false }
|
|
513
513
|
);
|
|
@@ -517,7 +517,7 @@ async function listToolCategories(emitJson, compact) {
|
|
|
517
517
|
const items = rawTools.map(toListedTool);
|
|
518
518
|
const summaries = aggregateCategorySummaries(rawTools);
|
|
519
519
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
520
|
-
|
|
520
|
+
_chunkE7B73LGTjs.printCommandEnvelope.call(void 0,
|
|
521
521
|
{
|
|
522
522
|
tools: outputItems,
|
|
523
523
|
count: outputItems.length,
|
|
@@ -536,7 +536,7 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
536
536
|
const known = summaries.map((item) => item.name);
|
|
537
537
|
const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
|
|
538
538
|
if (emitJson) {
|
|
539
|
-
|
|
539
|
+
_chunkE7B73LGTjs.printJson.call(void 0, {
|
|
540
540
|
ok: false,
|
|
541
541
|
exitCode: 4,
|
|
542
542
|
code: "TOOL_CATEGORY_NOT_FOUND",
|
|
@@ -550,13 +550,13 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
550
550
|
const render = categoryEnumerationRender(summaries);
|
|
551
551
|
console.error(message);
|
|
552
552
|
console.error("");
|
|
553
|
-
console.error(
|
|
553
|
+
console.error(_chunkE7B73LGTjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
|
|
554
554
|
console.error("");
|
|
555
555
|
console.error(`Valid categories: ${known.join(", ")}`);
|
|
556
556
|
return 4;
|
|
557
557
|
}
|
|
558
558
|
async function listToolsInCategory(category, emitJson) {
|
|
559
|
-
const client = new (0,
|
|
559
|
+
const client = new (0, _chunk6SLEHAXXjs.DeeplineClient)();
|
|
560
560
|
const { tools: rawTools, categories } = await client.listToolsInCategory(category);
|
|
561
561
|
const summaries = categories.map((item) => ({
|
|
562
562
|
...item,
|
|
@@ -592,7 +592,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
592
592
|
}
|
|
593
593
|
]
|
|
594
594
|
};
|
|
595
|
-
|
|
595
|
+
_chunkE7B73LGTjs.printCommandEnvelope.call(void 0,
|
|
596
596
|
{
|
|
597
597
|
category,
|
|
598
598
|
total: rows.length,
|
|
@@ -605,7 +605,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
605
605
|
return 0;
|
|
606
606
|
}
|
|
607
607
|
async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
|
|
608
|
-
const client = new (0,
|
|
608
|
+
const client = new (0, _chunk6SLEHAXXjs.DeeplineClient)();
|
|
609
609
|
const items = (await client.listTools({
|
|
610
610
|
categories: requestedCategories.join(","),
|
|
611
611
|
compact
|
|
@@ -634,7 +634,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
|
|
|
634
634
|
]
|
|
635
635
|
};
|
|
636
636
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
637
|
-
|
|
637
|
+
_chunkE7B73LGTjs.printCommandEnvelope.call(void 0,
|
|
638
638
|
{
|
|
639
639
|
tools: outputItems,
|
|
640
640
|
count: outputItems.length,
|
|
@@ -653,13 +653,13 @@ async function listTools(category, options = {}) {
|
|
|
653
653
|
const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
|
|
654
654
|
const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
|
|
655
655
|
const compact = options.compact !== false;
|
|
656
|
-
const emitJson = options.json === true ||
|
|
656
|
+
const emitJson = options.json === true || _chunkE7B73LGTjs.shouldEmitJson.call(void 0, );
|
|
657
657
|
if (positional && flagCategories.length > 0) {
|
|
658
658
|
const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
|
|
659
659
|
if (!flagIsSameSingle) {
|
|
660
660
|
const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
|
|
661
661
|
if (emitJson) {
|
|
662
|
-
|
|
662
|
+
_chunkE7B73LGTjs.printJson.call(void 0, {
|
|
663
663
|
ok: false,
|
|
664
664
|
exitCode: 2,
|
|
665
665
|
code: "TOOL_LIST_CATEGORY_CONFLICT",
|
|
@@ -686,7 +686,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
686
686
|
console.error("Usage: deepline tools grep <query> [--json]");
|
|
687
687
|
return 1;
|
|
688
688
|
}
|
|
689
|
-
const client = new (0,
|
|
689
|
+
const client = new (0, _chunk6SLEHAXXjs.DeeplineClient)();
|
|
690
690
|
const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
|
|
691
691
|
const mode = _nullishCoalesce(options.mode, () => ( "all"));
|
|
692
692
|
const jsonOutput = options.json === true;
|
|
@@ -710,7 +710,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
710
710
|
query,
|
|
711
711
|
mode
|
|
712
712
|
}) : null;
|
|
713
|
-
|
|
713
|
+
_chunkE7B73LGTjs.printCommandEnvelope.call(void 0,
|
|
714
714
|
{
|
|
715
715
|
tools: outputTools,
|
|
716
716
|
count: outputTools.length,
|
|
@@ -728,7 +728,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
728
728
|
} : {},
|
|
729
729
|
commandTemplates: TOOL_COMMAND_TEMPLATES
|
|
730
730
|
},
|
|
731
|
-
{ json: options.json ||
|
|
731
|
+
{ json: options.json || _chunkE7B73LGTjs.shouldEmitJson.call(void 0, ) }
|
|
732
732
|
);
|
|
733
733
|
return 0;
|
|
734
734
|
}
|
|
@@ -827,10 +827,10 @@ Output:
|
|
|
827
827
|
tools.command("balance <provider>").description(
|
|
828
828
|
"Read a fresh balance using this workspace\u2019s own provider connection (LeadMagic)."
|
|
829
829
|
).option("--json", "Print the balance and observation timestamp as JSON").action(async (provider, options) => {
|
|
830
|
-
const balance = await new (0,
|
|
830
|
+
const balance = await new (0, _chunk6SLEHAXXjs.DeeplineClient)().getIntegrationBalance(
|
|
831
831
|
provider
|
|
832
832
|
);
|
|
833
|
-
if (
|
|
833
|
+
if (_chunkE7B73LGTjs.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(balance));
|
|
834
834
|
else
|
|
835
835
|
console.log(
|
|
836
836
|
`${balance.provider}: ${balance.balance.value} ${balance.unit} (observed ${balance.observedAt})`
|
|
@@ -839,8 +839,8 @@ Output:
|
|
|
839
839
|
tools.command("workspace-connections").description(
|
|
840
840
|
"List shared OAuth connections in a workspace enrolled in the pilot."
|
|
841
841
|
).option("--json", "Print connection summaries as JSON").action(async (options) => {
|
|
842
|
-
const { connections } = await new (0,
|
|
843
|
-
if (
|
|
842
|
+
const { connections } = await new (0, _chunk6SLEHAXXjs.DeeplineClient)().listWorkspaceIntegrationConnections();
|
|
843
|
+
if (_chunkE7B73LGTjs.shouldEmitJson.call(void 0, options.json))
|
|
844
844
|
console.log(JSON.stringify(connections));
|
|
845
845
|
else if (connections.length === 0)
|
|
846
846
|
console.log("No workspace connections.");
|
|
@@ -851,10 +851,10 @@ Output:
|
|
|
851
851
|
tools.command("hubspot-members").description(
|
|
852
852
|
"List personal HubSpot connection status for workspace members."
|
|
853
853
|
).option("--cursor <cursor>", "Read the next roster page").option("--json", "Print the roster page as JSON").action(async (options) => {
|
|
854
|
-
const page = await new (0,
|
|
854
|
+
const page = await new (0, _chunk6SLEHAXXjs.DeeplineClient)().listPersonalHubSpotMembers(
|
|
855
855
|
options.cursor
|
|
856
856
|
);
|
|
857
|
-
if (
|
|
857
|
+
if (_chunkE7B73LGTjs.shouldEmitJson.call(void 0, options.json)) {
|
|
858
858
|
console.log(JSON.stringify(page));
|
|
859
859
|
return;
|
|
860
860
|
}
|
|
@@ -877,7 +877,7 @@ Output:
|
|
|
877
877
|
throw new Error("Choose hubspot or google_calendar_availability.");
|
|
878
878
|
if (action !== "connect" && action !== "reconnect" && action !== "replace" && action !== "disconnect")
|
|
879
879
|
throw new Error("Choose connect, reconnect, replace, or disconnect.");
|
|
880
|
-
const client = new (0,
|
|
880
|
+
const client = new (0, _chunk6SLEHAXXjs.DeeplineClient)();
|
|
881
881
|
const { connections } = await client.listWorkspaceIntegrationConnections();
|
|
882
882
|
const row = connections.find(
|
|
883
883
|
(connection) => connection.provider === provider
|
|
@@ -888,15 +888,15 @@ Output:
|
|
|
888
888
|
connectionId: _optionalChain([row, 'optionalAccess', _14 => _14.id]),
|
|
889
889
|
authorizationVersion: _optionalChain([row, 'optionalAccess', _15 => _15.authorizationVersion])
|
|
890
890
|
});
|
|
891
|
-
if (
|
|
891
|
+
if (_chunkE7B73LGTjs.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(result));
|
|
892
892
|
else console.log(_nullishCoalesce(result.url, () => ( "Workspace connection disconnected.")));
|
|
893
893
|
}
|
|
894
894
|
);
|
|
895
895
|
tools.command("availability-calendars").description("Calendar discovery compatibility command for the pilot.").option("--cursor <cursor>", "Legacy calendar page cursor").option("--json", "Print the response as JSON").action(async (options) => {
|
|
896
|
-
const page = await new (0,
|
|
896
|
+
const page = await new (0, _chunk6SLEHAXXjs.DeeplineClient)().listAvailabilityCalendars(
|
|
897
897
|
options.cursor
|
|
898
898
|
);
|
|
899
|
-
if (
|
|
899
|
+
if (_chunkE7B73LGTjs.shouldEmitJson.call(void 0, options.json)) {
|
|
900
900
|
console.log(JSON.stringify(page));
|
|
901
901
|
return;
|
|
902
902
|
}
|
|
@@ -930,10 +930,10 @@ Output:
|
|
|
930
930
|
);
|
|
931
931
|
}
|
|
932
932
|
if (options.link) {
|
|
933
|
-
const link = await new (0,
|
|
933
|
+
const link = await new (0, _chunk6SLEHAXXjs.DeeplineClient)().getIntegrationConnectLink(
|
|
934
934
|
provider
|
|
935
935
|
);
|
|
936
|
-
if (
|
|
936
|
+
if (_chunkE7B73LGTjs.shouldEmitJson.call(void 0, options.json)) console.log(JSON.stringify(link));
|
|
937
937
|
else console.log(link.connect_url);
|
|
938
938
|
return;
|
|
939
939
|
}
|
|
@@ -943,7 +943,7 @@ Output:
|
|
|
943
943
|
if (options.preset !== void 0 && (options.scopes !== void 0 || options.optionalScopes !== void 0))
|
|
944
944
|
throw new Error("Use --preset or individual scopes, not both.");
|
|
945
945
|
const splitScopes = (value) => value.split(",").map((scope) => scope.trim()).filter(Boolean);
|
|
946
|
-
const result2 = await new (0,
|
|
946
|
+
const result2 = await new (0, _chunk6SLEHAXXjs.DeeplineClient)().startIntegrationOAuth(
|
|
947
947
|
provider,
|
|
948
948
|
{
|
|
949
949
|
...options.preset !== void 0 ? { preset: options.preset } : {},
|
|
@@ -955,7 +955,7 @@ Output:
|
|
|
955
955
|
throw new Error(
|
|
956
956
|
"The API did not return an OAuth authorization URL."
|
|
957
957
|
);
|
|
958
|
-
if (
|
|
958
|
+
if (_chunkE7B73LGTjs.shouldEmitJson.call(void 0, options.json))
|
|
959
959
|
console.log(
|
|
960
960
|
JSON.stringify({ provider, redirect_url: result2.redirect_url })
|
|
961
961
|
);
|
|
@@ -981,7 +981,7 @@ Output:
|
|
|
981
981
|
"--credentials-file must contain a nonempty JSON object of string credential values."
|
|
982
982
|
);
|
|
983
983
|
}
|
|
984
|
-
const result = await new (0,
|
|
984
|
+
const result = await new (0, _chunk6SLEHAXXjs.DeeplineClient)().setIntegrationCredentials(
|
|
985
985
|
provider,
|
|
986
986
|
credentials,
|
|
987
987
|
{ expectedConnectionId: options.expectedConnectionId }
|
|
@@ -992,7 +992,7 @@ Output:
|
|
|
992
992
|
);
|
|
993
993
|
}
|
|
994
994
|
const confirmation = { provider, credential_saved: true };
|
|
995
|
-
if (
|
|
995
|
+
if (_chunkE7B73LGTjs.shouldEmitJson.call(void 0, options.json))
|
|
996
996
|
console.log(JSON.stringify(confirmation));
|
|
997
997
|
else
|
|
998
998
|
console.log(
|
|
@@ -1032,7 +1032,7 @@ Examples:
|
|
|
1032
1032
|
json: Boolean(options.json)
|
|
1033
1033
|
});
|
|
1034
1034
|
});
|
|
1035
|
-
|
|
1035
|
+
_chunkAUFE624Tjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
|
|
1036
1036
|
tools.command("grep <query>").description(
|
|
1037
1037
|
"Regex grep over tool ids, descriptions, categories, and input fields."
|
|
1038
1038
|
).addHelpText(
|
|
@@ -1067,7 +1067,7 @@ Examples:
|
|
|
1067
1067
|
});
|
|
1068
1068
|
const addToolMetadataCommand = (command) => {
|
|
1069
1069
|
let compatibilityMetadata;
|
|
1070
|
-
|
|
1070
|
+
_chunkDNGACHFXjs.registerCompatibilityCatalog.call(void 0, command, () => ({
|
|
1071
1071
|
toolId: command.args[0],
|
|
1072
1072
|
acceptMetadata: (metadata) => {
|
|
1073
1073
|
compatibilityMetadata = metadata;
|
|
@@ -1137,7 +1137,7 @@ Examples:
|
|
|
1137
1137
|
process.exitCode = await narrowView();
|
|
1138
1138
|
return;
|
|
1139
1139
|
}
|
|
1140
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
1140
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-5TFFB2PM.js")));
|
|
1141
1141
|
process.exitCode = await describeAnything(
|
|
1142
1142
|
toolId,
|
|
1143
1143
|
{
|
|
@@ -1152,7 +1152,7 @@ Examples:
|
|
|
1152
1152
|
});
|
|
1153
1153
|
};
|
|
1154
1154
|
addToolMetadataCommand(
|
|
1155
|
-
|
|
1155
|
+
_chunkD7GWEBMFjs.addDescribeOptions.call(void 0,
|
|
1156
1156
|
tools.command("describe <toolId>", { hidden: true }).alias("get"),
|
|
1157
1157
|
{ json: false }
|
|
1158
1158
|
)
|
|
@@ -1221,7 +1221,7 @@ Examples:
|
|
|
1221
1221
|
options,
|
|
1222
1222
|
void 0,
|
|
1223
1223
|
true,
|
|
1224
|
-
|
|
1224
|
+
_chunkQ7WDXLYOjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
1225
1225
|
);
|
|
1226
1226
|
}
|
|
1227
1227
|
);
|
|
@@ -1229,13 +1229,13 @@ Examples:
|
|
|
1229
1229
|
function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
1230
1230
|
let metadata;
|
|
1231
1231
|
const startedAt = performance.now();
|
|
1232
|
-
const baseUrl =
|
|
1233
|
-
|
|
1234
|
-
const result =
|
|
1232
|
+
const baseUrl = _chunkVHJUH3TBjs.resolveConfig.call(void 0, ).baseUrl;
|
|
1233
|
+
_chunkQ7WDXLYOjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
|
|
1234
|
+
const result = _chunkDNGACHFXjs.runToolExecuteStage.call(void 0,
|
|
1235
1235
|
"SDK compatibility",
|
|
1236
|
-
() =>
|
|
1236
|
+
() => _chunk3XXXMSSPjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
1237
1237
|
command: "tools execute",
|
|
1238
|
-
skillsVersion:
|
|
1238
|
+
skillsVersion: _chunkVHJUH3TBjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
|
|
1239
1239
|
persistCache: false,
|
|
1240
1240
|
timeoutMs: TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS,
|
|
1241
1241
|
catalog: {
|
|
@@ -1249,7 +1249,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
|
1249
1249
|
})
|
|
1250
1250
|
).then(
|
|
1251
1251
|
(compatibility) => {
|
|
1252
|
-
|
|
1252
|
+
_chunkQ7WDXLYOjs.recordCliTrace.call(void 0, {
|
|
1253
1253
|
phase: "cli.tool_execute_compatibility_ready",
|
|
1254
1254
|
ms: performance.now() - startedAt,
|
|
1255
1255
|
ok: compatibility.error === null,
|
|
@@ -1258,7 +1258,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
|
1258
1258
|
return compatibility;
|
|
1259
1259
|
},
|
|
1260
1260
|
(error) => {
|
|
1261
|
-
|
|
1261
|
+
_chunkQ7WDXLYOjs.recordCliTrace.call(void 0, {
|
|
1262
1262
|
phase: "cli.tool_execute_compatibility_ready",
|
|
1263
1263
|
ms: performance.now() - startedAt,
|
|
1264
1264
|
ok: false
|
|
@@ -1273,7 +1273,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1273
1273
|
console.error("Usage: deepline tools describe <toolId> [--json]");
|
|
1274
1274
|
return 1;
|
|
1275
1275
|
}
|
|
1276
|
-
const client = new (0,
|
|
1276
|
+
const client = new (0, _chunk6SLEHAXXjs.DeeplineClient)();
|
|
1277
1277
|
let tool;
|
|
1278
1278
|
try {
|
|
1279
1279
|
tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
|
|
@@ -1327,7 +1327,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1327
1327
|
const lines = toolPricingOnlyLines(tool, toolId);
|
|
1328
1328
|
if (inferenceQuote)
|
|
1329
1329
|
lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
|
|
1330
|
-
|
|
1330
|
+
_chunkE7B73LGTjs.printCommandEnvelope.call(void 0,
|
|
1331
1331
|
{
|
|
1332
1332
|
toolId: String(tool.toolId || toolId),
|
|
1333
1333
|
cost: _chunkUNDLNT3Vjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
@@ -1350,7 +1350,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1350
1350
|
void 0,
|
|
1351
1351
|
seedToolListScript
|
|
1352
1352
|
);
|
|
1353
|
-
|
|
1353
|
+
_chunkE7B73LGTjs.printCompactJson.call(void 0, {
|
|
1354
1354
|
toolId: contract.toolId,
|
|
1355
1355
|
...options.schemaOnly ? {
|
|
1356
1356
|
inputSchema: contract.inputSchema,
|
|
@@ -1373,7 +1373,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1373
1373
|
return 0;
|
|
1374
1374
|
}
|
|
1375
1375
|
if (options.contractJson) {
|
|
1376
|
-
|
|
1376
|
+
_chunkE7B73LGTjs.printCompactJson.call(void 0, {
|
|
1377
1377
|
..._chunkUNDLNT3Vjs.toolContractJsonForDescribe.call(void 0,
|
|
1378
1378
|
tool,
|
|
1379
1379
|
toolId,
|
|
@@ -1387,7 +1387,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1387
1387
|
}
|
|
1388
1388
|
const emitJson = options.json === true;
|
|
1389
1389
|
if (emitJson) {
|
|
1390
|
-
|
|
1390
|
+
_chunkE7B73LGTjs.printCompactJson.call(void 0, {
|
|
1391
1391
|
..._chunkUNDLNT3Vjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
|
|
1392
1392
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1393
1393
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -2250,7 +2250,7 @@ function parseExecuteOptions(toolId, options, output) {
|
|
|
2250
2250
|
outputFormat = normalizeOutputFormat(options.outputFormat);
|
|
2251
2251
|
}
|
|
2252
2252
|
if (options.idempotencyKey !== void 0) {
|
|
2253
|
-
|
|
2253
|
+
_chunk4I47NCRIjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
|
|
2254
2254
|
}
|
|
2255
2255
|
if (options.recoveryTimeoutMs !== void 0) {
|
|
2256
2256
|
const parsed = Number(options.recoveryTimeoutMs);
|
|
@@ -2629,7 +2629,7 @@ function writeToolReceipt(input) {
|
|
|
2629
2629
|
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;
|
|
2630
2630
|
const status = typeof envelope.status === "string" ? envelope.status : "completed";
|
|
2631
2631
|
const charged = _chunkUNDLNT3Vjs.recordField.call(void 0, envelope, "billing").credits_charged;
|
|
2632
|
-
|
|
2632
|
+
_chunkD7GWEBMFjs.writeExecutionOutput.call(void 0,
|
|
2633
2633
|
{
|
|
2634
2634
|
id: _nullishCoalesce(input.key, () => ( jobId)),
|
|
2635
2635
|
status,
|
|
@@ -2660,8 +2660,8 @@ async function executeToolForReceipt(input) {
|
|
|
2660
2660
|
let retryKey = null;
|
|
2661
2661
|
let received = false;
|
|
2662
2662
|
try {
|
|
2663
|
-
const cliInvocationId = _nullishCoalesce(
|
|
2664
|
-
const client = new (0,
|
|
2663
|
+
const cliInvocationId = _nullishCoalesce(_chunkDNGACHFXjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkDNGACHFXjs.beginToolExecuteCommand.call(void 0, )));
|
|
2664
|
+
const client = new (0, _chunk6SLEHAXXjs.DeeplineClient)();
|
|
2665
2665
|
const metadata = assertExecutableToolMetadata(
|
|
2666
2666
|
toolId,
|
|
2667
2667
|
await _asyncNullishCoalesce(input.metadata, async () => ( await client.getTool(toolId, { cliInvocationId })))
|
|
@@ -2682,9 +2682,9 @@ async function executeToolForReceipt(input) {
|
|
|
2682
2682
|
...input.timeoutMs !== void 0 ? { timeout: input.timeoutMs } : {},
|
|
2683
2683
|
..._optionalChain([metadata, 'access', _37 => _37.executionMetadata, 'optionalAccess', _38 => _38.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {},
|
|
2684
2684
|
...key ? { idempotencyKey: key } : {},
|
|
2685
|
-
searchRef:
|
|
2685
|
+
searchRef: _chunkAUFE624Tjs.recentSearchRef.call(void 0, toolId),
|
|
2686
2686
|
cliInvocationId,
|
|
2687
|
-
onResponseReceived:
|
|
2687
|
+
onResponseReceived: _chunkD7GWEBMFjs.recordApiResponse
|
|
2688
2688
|
}).catch((error) => {
|
|
2689
2689
|
const guidance = toolGuidanceLines(metadata.guidance);
|
|
2690
2690
|
if (guidance.length)
|
|
@@ -2707,11 +2707,11 @@ async function executeToolForReceipt(input) {
|
|
|
2707
2707
|
if (received) throw error;
|
|
2708
2708
|
const outcomeKnown = answeredWithFailure(error);
|
|
2709
2709
|
if (outcomeKnown) _optionalChain([retryKey, 'optionalAccess', _39 => _39.discard, 'call', _40 => _40()]);
|
|
2710
|
-
|
|
2710
|
+
_chunkD7GWEBMFjs.writeExecutionOutput.call(void 0,
|
|
2711
2711
|
{
|
|
2712
2712
|
id: outcomeKnown ? null : key,
|
|
2713
2713
|
status: "failed",
|
|
2714
|
-
error:
|
|
2714
|
+
error: _chunkE7B73LGTjs.errorToJsonPayload.call(void 0, error).error,
|
|
2715
2715
|
...key && !outcomeKnown ? {
|
|
2716
2716
|
next: {
|
|
2717
2717
|
retry: "Run the same command again: it picks up this call without paying twice."
|
|
@@ -2728,11 +2728,11 @@ function answeredWithFailure(error) {
|
|
|
2728
2728
|
error.statusCode !== 408 && error.code !== "EXECUTION_OUTCOME_UNKNOWN";
|
|
2729
2729
|
}
|
|
2730
2730
|
async function getToolExecutionReceipt(key, output) {
|
|
2731
|
-
const client = new (0,
|
|
2731
|
+
const client = new (0, _chunk6SLEHAXXjs.DeeplineClient)();
|
|
2732
2732
|
const execution = await client.executions.getByKey(key);
|
|
2733
2733
|
output.label = `${execution.toolId} (tool)`;
|
|
2734
2734
|
if (execution.response === void 0) {
|
|
2735
|
-
|
|
2735
|
+
_chunkD7GWEBMFjs.writeExecutionOutput.call(void 0,
|
|
2736
2736
|
{
|
|
2737
2737
|
id: key,
|
|
2738
2738
|
status: execution.executionRecovery.state,
|
|
@@ -2761,19 +2761,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2761
2761
|
parsed = parseExecuteOptions(toolId, options, output);
|
|
2762
2762
|
} catch (error) {
|
|
2763
2763
|
if (wantsJson) {
|
|
2764
|
-
|
|
2764
|
+
_chunkE7B73LGTjs.printJsonError.call(void 0, error);
|
|
2765
2765
|
} else {
|
|
2766
2766
|
console.error(error instanceof Error ? error.message : String(error));
|
|
2767
2767
|
}
|
|
2768
2768
|
return error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
|
|
2769
2769
|
}
|
|
2770
|
-
const cliInvocationId = _nullishCoalesce(
|
|
2770
|
+
const cliInvocationId = _nullishCoalesce(_chunkDNGACHFXjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkDNGACHFXjs.beginToolExecuteCommand.call(void 0, )));
|
|
2771
2771
|
const deferredCompatibility = deferCompatibility ? beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) : void 0;
|
|
2772
|
-
const tracing =
|
|
2772
|
+
const tracing = _chunkQ7WDXLYOjs.isCliTraceEnabled.call(void 0, );
|
|
2773
2773
|
const clientStartedAt = tracing ? performance.now() : void 0;
|
|
2774
|
-
const client = new (0,
|
|
2774
|
+
const client = new (0, _chunk6SLEHAXXjs.DeeplineClient)();
|
|
2775
2775
|
if (clientStartedAt !== void 0) {
|
|
2776
|
-
|
|
2776
|
+
_chunkQ7WDXLYOjs.recordCliTrace.call(void 0, {
|
|
2777
2777
|
phase: "cli.tool_execute_client_setup",
|
|
2778
2778
|
ms: performance.now() - clientStartedAt
|
|
2779
2779
|
});
|
|
@@ -2782,13 +2782,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2782
2782
|
const readMetadata = async () => {
|
|
2783
2783
|
if (metadata) return assertExecutableToolMetadata(parsed.toolId, metadata);
|
|
2784
2784
|
try {
|
|
2785
|
-
metadata = await
|
|
2785
|
+
metadata = await _chunkDNGACHFXjs.runToolExecuteStage.call(void 0,
|
|
2786
2786
|
"tool metadata lookup",
|
|
2787
2787
|
() => client.getTool(parsed.toolId, { cliInvocationId })
|
|
2788
2788
|
);
|
|
2789
2789
|
} catch (error) {
|
|
2790
2790
|
if (isMissingToolMetadataError(error)) {
|
|
2791
|
-
const play = await
|
|
2791
|
+
const play = await _chunkDNGACHFXjs.runToolExecuteStage.call(void 0,
|
|
2792
2792
|
"play alias lookup",
|
|
2793
2793
|
() => findPlayForToolId(client, parsed.toolId, cliInvocationId)
|
|
2794
2794
|
);
|
|
@@ -2817,7 +2817,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2817
2817
|
assertExecutableToolMetadata(parsed.toolId, metadata);
|
|
2818
2818
|
} catch (error) {
|
|
2819
2819
|
if (error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2820
|
-
if (wantsJson)
|
|
2820
|
+
if (wantsJson) _chunkE7B73LGTjs.printJsonError.call(void 0, error);
|
|
2821
2821
|
else console.error(error.message);
|
|
2822
2822
|
return 2;
|
|
2823
2823
|
}
|
|
@@ -2829,7 +2829,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2829
2829
|
metadata = await readMetadata();
|
|
2830
2830
|
} catch (error) {
|
|
2831
2831
|
if (error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2832
|
-
if (wantsJson)
|
|
2832
|
+
if (wantsJson) _chunkE7B73LGTjs.printJsonError.call(void 0, error);
|
|
2833
2833
|
else console.error(error.message);
|
|
2834
2834
|
return 2;
|
|
2835
2835
|
}
|
|
@@ -2845,7 +2845,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2845
2845
|
metadata = await readMetadata();
|
|
2846
2846
|
} catch (error) {
|
|
2847
2847
|
if (error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2848
|
-
if (wantsJson)
|
|
2848
|
+
if (wantsJson) _chunkE7B73LGTjs.printJsonError.call(void 0, error);
|
|
2849
2849
|
else console.error(error.message);
|
|
2850
2850
|
return 2;
|
|
2851
2851
|
}
|
|
@@ -2871,11 +2871,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2871
2871
|
responseIntent,
|
|
2872
2872
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
2873
2873
|
...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
|
|
2874
|
-
searchRef:
|
|
2874
|
+
searchRef: _chunkAUFE624Tjs.recentSearchRef.call(void 0, parsed.toolId),
|
|
2875
2875
|
cliInvocationId,
|
|
2876
|
-
onResponseReceived:
|
|
2876
|
+
onResponseReceived: _chunkD7GWEBMFjs.recordApiResponse,
|
|
2877
2877
|
...tracing ? {
|
|
2878
|
-
onServerTiming: (serverTiming) =>
|
|
2878
|
+
onServerTiming: (serverTiming) => _chunkQ7WDXLYOjs.recordCliTrace.call(void 0, {
|
|
2879
2879
|
phase: "tool_execute_server_timing",
|
|
2880
2880
|
cliInvocationId,
|
|
2881
2881
|
serverTiming,
|
|
@@ -2886,13 +2886,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2886
2886
|
let rawResponse;
|
|
2887
2887
|
let successfulCompatibilityResponse;
|
|
2888
2888
|
try {
|
|
2889
|
-
const executeResult = await
|
|
2889
|
+
const executeResult = await _chunkDNGACHFXjs.runToolExecuteStage.call(void 0,
|
|
2890
2890
|
"execute request",
|
|
2891
2891
|
async () => {
|
|
2892
2892
|
try {
|
|
2893
2893
|
if (tracing) {
|
|
2894
2894
|
submissionStartedAt = performance.now();
|
|
2895
|
-
|
|
2895
|
+
_chunkQ7WDXLYOjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
|
|
2896
2896
|
}
|
|
2897
2897
|
return await client.executeTool(parsed.toolId, parsed.params, {
|
|
2898
2898
|
...executeOptions,
|
|
@@ -2902,34 +2902,34 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2902
2902
|
} catch (error) {
|
|
2903
2903
|
if (!(error instanceof _chunkBBTKAASQjs.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
|
|
2904
2904
|
throw error;
|
|
2905
|
-
const baseUrl =
|
|
2905
|
+
const baseUrl = _chunkVHJUH3TBjs.resolveConfig.call(void 0, ).baseUrl;
|
|
2906
2906
|
if (maintenancePolicy !== "off") {
|
|
2907
|
-
|
|
2907
|
+
_chunk3XXXMSSPjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
2908
2908
|
}
|
|
2909
|
-
const compatibility = deferredCompatibility ? await deferredCompatibility.result : await
|
|
2909
|
+
const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunkDNGACHFXjs.runToolExecuteStage.call(void 0,
|
|
2910
2910
|
"SDK compatibility",
|
|
2911
|
-
() =>
|
|
2911
|
+
() => _chunk3XXXMSSPjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
2912
2912
|
command: "tools execute",
|
|
2913
|
-
skillsVersion:
|
|
2913
|
+
skillsVersion: _chunkVHJUH3TBjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
|
|
2914
2914
|
persistCache: maintenancePolicy !== "off"
|
|
2915
2915
|
})
|
|
2916
2916
|
);
|
|
2917
2917
|
if (compatibility.error) throw compatibility.error;
|
|
2918
2918
|
metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _46 => _46.readMetadata, 'call', _47 => _47()]), () => ( metadata));
|
|
2919
|
-
if (maintenancePolicy !== "off" && await
|
|
2919
|
+
if (maintenancePolicy !== "off" && await _chunkDNGACHFXjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2920
2920
|
compatibility.response,
|
|
2921
2921
|
baseUrl,
|
|
2922
2922
|
maintenancePolicy
|
|
2923
2923
|
)) {
|
|
2924
2924
|
return void 0;
|
|
2925
2925
|
}
|
|
2926
|
-
|
|
2926
|
+
_chunk3XXXMSSPjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
2927
2927
|
quietAdvisory: wantsJson
|
|
2928
2928
|
});
|
|
2929
2929
|
if (maintenancePolicy !== "off") {
|
|
2930
|
-
await
|
|
2930
|
+
await _chunkDNGACHFXjs.runToolExecuteStage.call(void 0,
|
|
2931
2931
|
"agent skills sync",
|
|
2932
|
-
() =>
|
|
2932
|
+
() => _chunk3XXXMSSPjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
|
|
2933
2933
|
update: _optionalChain([compatibility, 'access', _48 => _48.response, 'optionalAccess', _49 => _49.skills]),
|
|
2934
2934
|
mode: "detached"
|
|
2935
2935
|
})
|
|
@@ -2938,7 +2938,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2938
2938
|
const legacyMetadata = await readMetadata();
|
|
2939
2939
|
if (tracing) {
|
|
2940
2940
|
submissionStartedAt = performance.now();
|
|
2941
|
-
|
|
2941
|
+
_chunkQ7WDXLYOjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
|
|
2942
2942
|
}
|
|
2943
2943
|
return client.executeTool(parsed.toolId, parsed.params, {
|
|
2944
2944
|
...executeOptions,
|
|
@@ -2961,8 +2961,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2961
2961
|
metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
|
|
2962
2962
|
const updateRequiredBeforeExecution = error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
|
|
2963
2963
|
if (updateRequiredBeforeExecution && maintenancePolicy !== "off" && compatibility && !compatibility.error) {
|
|
2964
|
-
const baseUrl =
|
|
2965
|
-
if (await
|
|
2964
|
+
const baseUrl = _chunkVHJUH3TBjs.resolveConfig.call(void 0, ).baseUrl;
|
|
2965
|
+
if (await _chunkDNGACHFXjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2966
2966
|
compatibility.response,
|
|
2967
2967
|
baseUrl,
|
|
2968
2968
|
maintenancePolicy
|
|
@@ -2986,7 +2986,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2986
2986
|
}
|
|
2987
2987
|
}
|
|
2988
2988
|
if (failure instanceof _chunkBBTKAASQjs.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2989
|
-
if (wantsJson)
|
|
2989
|
+
if (wantsJson) _chunkE7B73LGTjs.printJsonError.call(void 0, failure);
|
|
2990
2990
|
else console.error(failure.message);
|
|
2991
2991
|
return 2;
|
|
2992
2992
|
}
|
|
@@ -3013,9 +3013,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3013
3013
|
successfulCompatibilityResponse = _nullishCoalesce(compatibilityResponse, () => ( void 0));
|
|
3014
3014
|
const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _56 => _56.auto_update]);
|
|
3015
3015
|
if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _57 => _57.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
3016
|
-
await
|
|
3016
|
+
await _chunkDNGACHFXjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
3017
3017
|
compatibilityResponse,
|
|
3018
|
-
|
|
3018
|
+
_chunkVHJUH3TBjs.resolveConfig.call(void 0, ).baseUrl,
|
|
3019
3019
|
maintenancePolicy
|
|
3020
3020
|
);
|
|
3021
3021
|
}
|
|
@@ -3050,7 +3050,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3050
3050
|
const { _metadata, ...execution } = rawResponse;
|
|
3051
3051
|
rawResponse = execution;
|
|
3052
3052
|
}
|
|
3053
|
-
const { listConversion, summary, baseEnvelope } = await
|
|
3053
|
+
const { listConversion, summary, baseEnvelope } = await _chunkDNGACHFXjs.runToolExecuteStage.call(void 0,
|
|
3054
3054
|
"result formatting",
|
|
3055
3055
|
async () => {
|
|
3056
3056
|
const listConversion2 = _chunkHGFFYVXNjs.tryConvertToList.call(void 0, rawResponse, {
|
|
@@ -3085,9 +3085,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3085
3085
|
}
|
|
3086
3086
|
skillsSyncAttempted = true;
|
|
3087
3087
|
try {
|
|
3088
|
-
await
|
|
3088
|
+
await _chunkDNGACHFXjs.runToolExecuteStage.call(void 0,
|
|
3089
3089
|
"agent skills sync",
|
|
3090
|
-
() =>
|
|
3090
|
+
() => _chunk3XXXMSSPjs.syncSdkSkillsIfNeeded.call(void 0, _chunkVHJUH3TBjs.resolveConfig.call(void 0, ).baseUrl, {
|
|
3091
3091
|
update: deliveredCompatibilityResponse.skills,
|
|
3092
3092
|
mode: "detached"
|
|
3093
3093
|
})
|
|
@@ -3098,15 +3098,15 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3098
3098
|
);
|
|
3099
3099
|
}
|
|
3100
3100
|
};
|
|
3101
|
-
const printDeliveredEnvelope = (envelope, options2 = {}) =>
|
|
3101
|
+
const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkE7B73LGTjs.printCommandEnvelope.call(void 0, envelope, {
|
|
3102
3102
|
...options2,
|
|
3103
3103
|
json: _nullishCoalesce(options2.json, () => ( wantsJson))
|
|
3104
3104
|
});
|
|
3105
3105
|
const printDeliveredJsonEnvelope = async (envelope, options2 = {}) => {
|
|
3106
3106
|
await syncSkillsForDeliveredOutput();
|
|
3107
|
-
|
|
3107
|
+
_chunkE7B73LGTjs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
|
|
3108
3108
|
};
|
|
3109
|
-
const delivered = await
|
|
3109
|
+
const delivered = await _chunkDNGACHFXjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
|
|
3110
3110
|
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
|
|
3111
3111
|
await printDeliveredJsonEnvelope(baseEnvelope);
|
|
3112
3112
|
return true;
|
|
@@ -3135,7 +3135,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
3135
3135
|
`${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
|
|
3136
3136
|
);
|
|
3137
3137
|
if (wantsJson) {
|
|
3138
|
-
|
|
3138
|
+
_chunkE7B73LGTjs.printJsonError.call(void 0, error);
|
|
3139
3139
|
} else {
|
|
3140
3140
|
console.error(error.message);
|
|
3141
3141
|
}
|
|
@@ -3230,13 +3230,13 @@ inspect: ${inspection.inspect}
|
|
|
3230
3230
|
return true;
|
|
3231
3231
|
});
|
|
3232
3232
|
if (delivered) {
|
|
3233
|
-
await
|
|
3233
|
+
await _chunkDNGACHFXjs.runToolExecuteStage.call(void 0,
|
|
3234
3234
|
"acknowledge delivery",
|
|
3235
3235
|
() => recovery.acknowledgeDelivery()
|
|
3236
3236
|
);
|
|
3237
3237
|
}
|
|
3238
3238
|
if (delivered && deliveredCompatibilityResponse && deliveredCompatibilityResponse.update_required !== true) {
|
|
3239
|
-
|
|
3239
|
+
_chunk3XXXMSSPjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
|
|
3240
3240
|
quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _60 => _60.auto_update, 'optionalAccess', _61 => _61.should_auto_update]) === true
|
|
3241
3241
|
});
|
|
3242
3242
|
}
|