deepline 0.3.420 → 0.3.421
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/cli/{auth-OUHAOA5F.mjs → auth-56JTC4Q7.mjs} +4 -4
- package/dist/cli/auth-ZQMAF7W5.js +40 -0
- package/dist/cli/{billing-PKVUYBJB.js → billing-C5LR6FA7.js} +73 -73
- package/dist/cli/{billing-VIZQ6D4L.mjs → billing-ZXOOZEUW.mjs} +4 -4
- package/dist/cli/{chunk-OJ64RXJW.js → chunk-2WOVAVJ3.js} +26 -26
- package/dist/cli/{chunk-VESCW5LD.js → chunk-2XKDLS5P.js} +6 -6
- package/dist/cli/{chunk-R4TF44FZ.js → chunk-4I26IVFC.js} +35 -35
- package/dist/cli/{chunk-LJ7ZOBTQ.mjs → chunk-4NS4EZHN.mjs} +2 -2
- package/dist/cli/{chunk-SVJPQHHN.mjs → chunk-5E55HHW3.mjs} +4 -4
- package/dist/cli/{chunk-A2CPK2UC.mjs → chunk-5F6W5NWV.mjs} +5 -5
- package/dist/cli/{chunk-4T242WLH.js → chunk-5KYK4DGY.js} +8 -8
- package/dist/cli/{chunk-LUQE4CFH.js → chunk-6UKY4LBW.js} +20 -20
- package/dist/cli/{chunk-ZCPJ3L43.js → chunk-7SRVIWGT.js} +1 -1
- package/dist/cli/{chunk-R62A6ZXG.mjs → chunk-7TSF7E3B.mjs} +2 -2
- package/dist/cli/{chunk-KLNF7MWP.mjs → chunk-AZGJNNNE.mjs} +2 -2
- package/dist/cli/{chunk-NQAWJ65E.js → chunk-C25ZYL6U.js} +4 -4
- package/dist/cli/{chunk-LFSHGNT2.mjs → chunk-CTNA5QY2.mjs} +7 -6
- package/dist/cli/{chunk-JP35BUED.mjs → chunk-EKQH4IUU.mjs} +1 -1
- package/dist/cli/{chunk-3L734JBM.mjs → chunk-F4V4JJED.mjs} +3 -3
- package/dist/cli/{chunk-OGII53LE.js → chunk-FB5H5OOH.js} +10 -10
- package/dist/cli/{chunk-QJA6OAJF.js → chunk-GIJ47TAV.js} +6 -6
- package/dist/cli/{chunk-HGYUUQJG.js → chunk-HP5FD2LI.js} +8 -8
- package/dist/cli/{chunk-XXOUOHBO.js → chunk-JJQLBZEW.js} +2 -2
- package/dist/cli/{chunk-5VPN2HZQ.js → chunk-NSJRLP7R.js} +16 -16
- package/dist/cli/{chunk-5MLCBXXU.js → chunk-PKBPSMOT.js} +7 -6
- package/dist/cli/{chunk-PZVB72XS.js → chunk-QJV2ALPN.js} +2 -2
- package/dist/cli/{chunk-7AIHQR5X.mjs → chunk-RJLFCJ23.mjs} +3 -3
- package/dist/cli/{chunk-YHOGJQR7.mjs → chunk-RURYN2BE.mjs} +25 -57
- package/dist/cli/{chunk-LPNB7RIE.mjs → chunk-SPLOMS4N.mjs} +1 -1
- package/dist/cli/{chunk-WVF6T2MI.mjs → chunk-UCI4QROZ.mjs} +1 -1
- package/dist/cli/{chunk-SNLYCNAO.mjs → chunk-VC3E5HFO.mjs} +1 -1
- package/dist/cli/{chunk-M4AYMLCK.js → chunk-VEYAPBS4.js} +96 -128
- package/dist/cli/{chunk-IZ3QC7OE.mjs → chunk-VYLZS7X4.mjs} +1 -1
- package/dist/cli/{chunk-J55AD562.js → chunk-WR4M5VWK.js} +52 -52
- package/dist/cli/{chunk-UBNWFLYB.mjs → chunk-ZLPT2RZ5.mjs} +2 -2
- package/dist/cli/{chunk-AOPQ46ZW.mjs → chunk-ZOL3CIKN.mjs} +3 -3
- package/dist/cli/{chunk-TK7V5NQO.mjs → chunk-ZSVWCV3G.mjs} +1 -1
- package/dist/cli/{chunk-YSJVAPJE.js → chunk-ZZBXD5VX.js} +50 -50
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-OJLORQ3N.mjs → csv-EJ4QRLA2.mjs} +3 -3
- package/dist/cli/{csv-CLKRVS6Q.js → csv-G6H3U4XV.js} +12 -12
- package/dist/cli/{db-VIY56Q3E.mjs → db-PBIIALJ5.mjs} +4 -4
- package/dist/cli/{db-PURJUV2P.js → db-WKQFXUWI.js} +25 -25
- package/dist/cli/{describe-PDLBLRNY.mjs → describe-DMRK4UNO.mjs} +12 -12
- package/dist/cli/{describe-P2OJ5B4Q.js → describe-ZCU36ES2.js} +16 -16
- package/dist/cli/{executions-6PA6Q2BU.mjs → executions-JAHW6GMA.mjs} +4 -4
- package/dist/cli/{executions-5CMSUI47.js → executions-SBA3UYMH.js} +6 -6
- package/dist/cli/{feedback-IU7JRPUB.mjs → feedback-PKBUYHMD.mjs} +3 -3
- package/dist/cli/{feedback-WBKYOIOV.js → feedback-QAE4V2NY.js} +7 -7
- package/dist/cli/git-54INNT33.js +24 -0
- package/dist/cli/{git-RZVL3FY6.mjs → git-GAO3SJAQ.mjs} +4 -4
- package/dist/cli/index.js +135 -135
- package/dist/cli/index.mjs +37 -37
- package/dist/cli/{legacy-noops-S4MMABPX.mjs → legacy-noops-5PY2ZZF3.mjs} +4 -4
- package/dist/cli/{legacy-noops-UQKVJEZT.js → legacy-noops-JCMVW5BL.js} +7 -7
- package/dist/cli/{monitors-AIS4RRVX.mjs → monitors-GVYAZRMB.mjs} +4 -4
- package/dist/cli/{monitors-42RY2EQJ.js → monitors-YPS4LPDG.js} +84 -84
- package/dist/cli/{org-GMMSVSCM.js → org-OBVAU6K7.js} +64 -64
- package/dist/cli/{org-DOIEU3KC.mjs → org-R7AKPKUB.mjs} +4 -4
- package/dist/cli/{play-6Z2D3FHI.mjs → play-3LFM2SV2.mjs} +10 -10
- package/dist/cli/{play-GHUPSQIT.js → play-MTHQQHR6.js} +283 -283
- package/dist/cli/{providers-T6O7AAHV.js → providers-CTIROUI3.js} +7 -7
- package/dist/cli/{providers-HTKPCZHW.mjs → providers-IRICPDKU.mjs} +4 -4
- package/dist/cli/{quickstart-V7CQS7CK.mjs → quickstart-5FBQVZ5B.mjs} +3 -3
- package/dist/cli/{quickstart-UVHSZ5R4.js → quickstart-OZDVFNF2.js} +5 -5
- package/dist/cli/{search-GZLYNCII.mjs → search-FYM47QFU.mjs} +5 -5
- package/dist/cli/search-XIKHDZJ3.js +30 -0
- package/dist/cli/{secrets-L24W7HSZ.js → secrets-43GJUDAE.js} +13 -13
- package/dist/cli/{secrets-HT2CNTXQ.mjs → secrets-ENBXU3O3.mjs} +4 -4
- package/dist/cli/{sessions-VWOBR4BP.mjs → sessions-7IQJOH5Z.mjs} +4 -4
- package/dist/cli/{sessions-JTQPPC66.js → sessions-RXX5IHG6.js} +5 -5
- package/dist/cli/{settings-7OOY3WN4.mjs → settings-EZGDTS3K.mjs} +8 -8
- package/dist/cli/{settings-57PNA6CO.js → settings-Z2CWWV7P.js} +75 -75
- package/dist/cli/{setup-MDIJTSFP.js → setup-2ON3TUXP.js} +42 -42
- package/dist/cli/{setup-EE6JK7EG.mjs → setup-N5UMUBBV.mjs} +7 -7
- package/dist/cli/skills-2WIHNEOS.js +29 -0
- package/dist/cli/{skills-JDORGABC.mjs → skills-4MR2Z2M5.mjs} +5 -5
- package/dist/cli/{tools-LVXONRMU.mjs → tools-MCEIWE3I.mjs} +12 -12
- package/dist/cli/tools-YUUSOKYX.js +44 -0
- package/dist/cli/{update-JX2ZOYD3.mjs → update-2JDBGLTX.mjs} +7 -7
- package/dist/cli/update-PWX4MJ3R.js +31 -0
- package/dist/cli/{workflow-ATUJZTWI.js → workflow-7DNBY4WJ.js} +15 -15
- package/dist/cli/{workflow-G4B6ON6F.mjs → workflow-7UDXYU5Y.mjs} +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +80 -80
- 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/package.json +1 -1
- package/dist/cli/auth-FMFNRZCM.js +0 -40
- package/dist/cli/git-SS34WXCG.js +0 -24
- package/dist/cli/search-CAQRDWHR.js +0 -30
- package/dist/cli/skills-S4KMUPPF.js +0 -29
- package/dist/cli/tools-CHZV3D7R.js +0 -44
- package/dist/cli/update-2XCGK53M.js +0 -31
|
@@ -5,7 +5,7 @@ var _chunk27GJKC5Qjs = require('./chunk-27GJKC5Q.js');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkHP5FD2LIjs = require('./chunk-HP5FD2LI.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -45,7 +45,7 @@ var _chunkHGFFYVXNjs = require('./chunk-HGFFYVXN.js');
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
var
|
|
48
|
+
var _chunkFB5H5OOHjs = require('./chunk-FB5H5OOH.js');
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
|
|
@@ -55,18 +55,18 @@ var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
|
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
var
|
|
58
|
+
var _chunk6UKY4LBWjs = require('./chunk-6UKY4LBW.js');
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
var
|
|
63
|
+
var _chunkJJQLBZEWjs = require('./chunk-JJQLBZEW.js');
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
var
|
|
69
|
+
var _chunkWR4M5VWKjs = require('./chunk-WR4M5VWK.js');
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
|
|
@@ -74,12 +74,12 @@ var _chunkJ55AD562js = require('./chunk-J55AD562.js');
|
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
var
|
|
77
|
+
var _chunkGIJ47TAVjs = require('./chunk-GIJ47TAV.js');
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
var
|
|
82
|
+
var _chunkC25ZYL6Ujs = require('./chunk-C25ZYL6U.js');
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
|
|
@@ -158,10 +158,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
|
|
|
158
158
|
}
|
|
159
159
|
};
|
|
160
160
|
function pendingToolExecutionPath(input) {
|
|
161
|
-
const config =
|
|
161
|
+
const config = _chunkC25ZYL6Ujs.resolveConfig.call(void 0, );
|
|
162
162
|
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");
|
|
163
163
|
return _path.join.call(void 0,
|
|
164
|
-
|
|
164
|
+
_chunkC25ZYL6Ujs.sdkCliStateDirPath.call(void 0, config.baseUrl),
|
|
165
165
|
`pending-tool-execution-${fingerprint}.json`
|
|
166
166
|
);
|
|
167
167
|
}
|
|
@@ -293,32 +293,13 @@ function toListedTool(tool) {
|
|
|
293
293
|
executeCommand: `deepline tools execute ${tool.toolId}`
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
|
-
function normalizeGrepText(value) {
|
|
297
|
-
if (value === null || value === void 0) return "";
|
|
298
|
-
if (typeof value === "string") return value.toLowerCase();
|
|
299
|
-
if (typeof value === "number" || typeof value === "boolean") {
|
|
300
|
-
return String(value).toLowerCase();
|
|
301
|
-
}
|
|
302
|
-
if (Array.isArray(value)) return value.map(normalizeGrepText).join(" ");
|
|
303
|
-
if (typeof value === "object") {
|
|
304
|
-
return Object.values(value).map(normalizeGrepText).join(" ");
|
|
305
|
-
}
|
|
306
|
-
return "";
|
|
307
|
-
}
|
|
308
296
|
function parseGrepTerms(query, mode) {
|
|
309
|
-
const trimmed = query.trim()
|
|
297
|
+
const trimmed = query.trim();
|
|
310
298
|
if (!trimmed) return [];
|
|
311
299
|
if (mode === "phrase") return [trimmed];
|
|
312
300
|
const matches = _nullishCoalesce(trimmed.match(/"([^"]+)"|'([^']+)'|\S+/g), () => ( []));
|
|
313
301
|
return matches.map((term) => term.replace(/^["']|["']$/g, "").trim()).filter(Boolean);
|
|
314
302
|
}
|
|
315
|
-
function matchesGrepQuery(value, query, mode) {
|
|
316
|
-
const terms = parseGrepTerms(query, mode);
|
|
317
|
-
if (terms.length === 0) return true;
|
|
318
|
-
const haystack = normalizeGrepText(value);
|
|
319
|
-
if (mode === "any") return terms.some((term) => haystack.includes(term));
|
|
320
|
-
return terms.every((term) => haystack.includes(term));
|
|
321
|
-
}
|
|
322
303
|
function shellCommandArg(value) {
|
|
323
304
|
return `'${value.replace(/'/g, `'\\''`)}'`;
|
|
324
305
|
}
|
|
@@ -338,7 +319,7 @@ function zeroMatchToolGuidance(options) {
|
|
|
338
319
|
},
|
|
339
320
|
...options.mode === "all" ? [
|
|
340
321
|
{
|
|
341
|
-
label: "Relax
|
|
322
|
+
label: "Relax grep from AND to OR matching",
|
|
342
323
|
command: `deepline tools grep --mode any -- ${shellCommandArg(query)}`
|
|
343
324
|
}
|
|
344
325
|
] : []
|
|
@@ -456,13 +437,13 @@ function categoryEnumerationRender(summaries) {
|
|
|
456
437
|
};
|
|
457
438
|
}
|
|
458
439
|
async function listToolCategories(emitJson, compact) {
|
|
459
|
-
const client = new (0,
|
|
440
|
+
const client = new (0, _chunkFB5H5OOHjs.DeeplineClient)();
|
|
460
441
|
if (!emitJson) {
|
|
461
442
|
const summaries2 = (await client.listToolCategories()).map((category) => ({
|
|
462
443
|
...category,
|
|
463
444
|
description: describeToolCategory(category.name)
|
|
464
445
|
}));
|
|
465
|
-
|
|
446
|
+
_chunkGIJ47TAVjs.printCommandEnvelope.call(void 0,
|
|
466
447
|
{ categories: summaries2, render: categoryEnumerationRender(summaries2) },
|
|
467
448
|
{ json: false }
|
|
468
449
|
);
|
|
@@ -472,7 +453,7 @@ async function listToolCategories(emitJson, compact) {
|
|
|
472
453
|
const items = rawTools.map(toListedTool);
|
|
473
454
|
const summaries = aggregateCategorySummaries(rawTools);
|
|
474
455
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
475
|
-
|
|
456
|
+
_chunkGIJ47TAVjs.printCommandEnvelope.call(void 0,
|
|
476
457
|
{
|
|
477
458
|
tools: outputItems,
|
|
478
459
|
count: outputItems.length,
|
|
@@ -491,7 +472,7 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
491
472
|
const known = summaries.map((item) => item.name);
|
|
492
473
|
const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
|
|
493
474
|
if (emitJson) {
|
|
494
|
-
|
|
475
|
+
_chunkGIJ47TAVjs.printJson.call(void 0, {
|
|
495
476
|
ok: false,
|
|
496
477
|
exitCode: 4,
|
|
497
478
|
code: "TOOL_CATEGORY_NOT_FOUND",
|
|
@@ -505,13 +486,13 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
505
486
|
const render = categoryEnumerationRender(summaries);
|
|
506
487
|
console.error(message);
|
|
507
488
|
console.error("");
|
|
508
|
-
console.error(
|
|
489
|
+
console.error(_chunkGIJ47TAVjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
|
|
509
490
|
console.error("");
|
|
510
491
|
console.error(`Valid categories: ${known.join(", ")}`);
|
|
511
492
|
return 4;
|
|
512
493
|
}
|
|
513
494
|
async function listToolsInCategory(category, emitJson) {
|
|
514
|
-
const client = new (0,
|
|
495
|
+
const client = new (0, _chunkFB5H5OOHjs.DeeplineClient)();
|
|
515
496
|
const { tools: rawTools, categories } = await client.listToolsInCategory(category);
|
|
516
497
|
const summaries = categories.map((item) => ({
|
|
517
498
|
...item,
|
|
@@ -547,7 +528,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
547
528
|
}
|
|
548
529
|
]
|
|
549
530
|
};
|
|
550
|
-
|
|
531
|
+
_chunkGIJ47TAVjs.printCommandEnvelope.call(void 0,
|
|
551
532
|
{
|
|
552
533
|
category,
|
|
553
534
|
total: rows.length,
|
|
@@ -560,7 +541,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
560
541
|
return 0;
|
|
561
542
|
}
|
|
562
543
|
async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
|
|
563
|
-
const client = new (0,
|
|
544
|
+
const client = new (0, _chunkFB5H5OOHjs.DeeplineClient)();
|
|
564
545
|
const items = (await client.listTools({
|
|
565
546
|
categories: requestedCategories.join(","),
|
|
566
547
|
compact
|
|
@@ -589,7 +570,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
|
|
|
589
570
|
]
|
|
590
571
|
};
|
|
591
572
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
592
|
-
|
|
573
|
+
_chunkGIJ47TAVjs.printCommandEnvelope.call(void 0,
|
|
593
574
|
{
|
|
594
575
|
tools: outputItems,
|
|
595
576
|
count: outputItems.length,
|
|
@@ -608,13 +589,13 @@ async function listTools(category, options = {}) {
|
|
|
608
589
|
const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
|
|
609
590
|
const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
|
|
610
591
|
const compact = options.compact !== false;
|
|
611
|
-
const emitJson = options.json === true ||
|
|
592
|
+
const emitJson = options.json === true || _chunkGIJ47TAVjs.shouldEmitJson.call(void 0, );
|
|
612
593
|
if (positional && flagCategories.length > 0) {
|
|
613
594
|
const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
|
|
614
595
|
if (!flagIsSameSingle) {
|
|
615
596
|
const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
|
|
616
597
|
if (emitJson) {
|
|
617
|
-
|
|
598
|
+
_chunkGIJ47TAVjs.printJson.call(void 0, {
|
|
618
599
|
ok: false,
|
|
619
600
|
exitCode: 2,
|
|
620
601
|
code: "TOOL_LIST_CATEGORY_CONFLICT",
|
|
@@ -641,7 +622,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
641
622
|
console.error("Usage: deepline tools grep <query> [--json]");
|
|
642
623
|
return 1;
|
|
643
624
|
}
|
|
644
|
-
const client = new (0,
|
|
625
|
+
const client = new (0, _chunkFB5H5OOHjs.DeeplineClient)();
|
|
645
626
|
const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
|
|
646
627
|
const mode = _nullishCoalesce(options.mode, () => ( "all"));
|
|
647
628
|
const jsonOutput = options.json === true;
|
|
@@ -658,33 +639,14 @@ async function grepTools(queryInput, options = {}) {
|
|
|
658
639
|
(item) => requestedCategories.length === 0 || requestedCategories.some(
|
|
659
640
|
(category) => item.categories.includes(category)
|
|
660
641
|
)
|
|
661
|
-
).filter(
|
|
662
|
-
(item) => apiCompact ? true : matchesGrepQuery(
|
|
663
|
-
{
|
|
664
|
-
id: item.toolId,
|
|
665
|
-
toolId: item.toolId,
|
|
666
|
-
provider: item.provider,
|
|
667
|
-
displayName: item.displayName,
|
|
668
|
-
description: item.description,
|
|
669
|
-
categories: item.categories,
|
|
670
|
-
operation: item.operation,
|
|
671
|
-
operationAliases: item.operationAliases,
|
|
672
|
-
inputSchema: item.inputSchema,
|
|
673
|
-
outputSchema: item.outputSchema,
|
|
674
|
-
inputFields: item.inputFields
|
|
675
|
-
},
|
|
676
|
-
query,
|
|
677
|
-
mode
|
|
678
|
-
)
|
|
679
642
|
);
|
|
680
|
-
const
|
|
681
|
-
const outputTools = shouldCompact ? tools.slice(0, 8).map(compactTool) : tools;
|
|
643
|
+
const outputTools = apiCompact ? tools.map(compactTool) : tools;
|
|
682
644
|
const emptyResult = tools.length === 0 ? zeroMatchToolGuidance({
|
|
683
645
|
categories: requestedCategories,
|
|
684
646
|
query,
|
|
685
647
|
mode
|
|
686
648
|
}) : null;
|
|
687
|
-
|
|
649
|
+
_chunkGIJ47TAVjs.printCommandEnvelope.call(void 0,
|
|
688
650
|
{
|
|
689
651
|
tools: outputTools,
|
|
690
652
|
count: outputTools.length,
|
|
@@ -702,7 +664,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
702
664
|
} : {},
|
|
703
665
|
commandTemplates: TOOL_COMMAND_TEMPLATES
|
|
704
666
|
},
|
|
705
|
-
{ json: options.json ||
|
|
667
|
+
{ json: options.json || _chunkGIJ47TAVjs.shouldEmitJson.call(void 0, ) }
|
|
706
668
|
);
|
|
707
669
|
return 0;
|
|
708
670
|
}
|
|
@@ -714,6 +676,7 @@ function compactTool(tool) {
|
|
|
714
676
|
const listed = toListedTool(tool);
|
|
715
677
|
const searchScore = numericToolField(tool, "searchScore");
|
|
716
678
|
const search_score = numericToolField(tool, "search_score");
|
|
679
|
+
const matchedFields = tool.matchedFields;
|
|
717
680
|
return {
|
|
718
681
|
id: listed.id,
|
|
719
682
|
toolId: listed.toolId,
|
|
@@ -724,7 +687,8 @@ function compactTool(tool) {
|
|
|
724
687
|
description: listed.description,
|
|
725
688
|
categories: listed.categories,
|
|
726
689
|
type: listed.type,
|
|
727
|
-
executeCommand: listed.executeCommand
|
|
690
|
+
executeCommand: listed.executeCommand,
|
|
691
|
+
...Array.isArray(matchedFields) ? { matchedFields } : {}
|
|
728
692
|
};
|
|
729
693
|
}
|
|
730
694
|
function playIdentifiers(play) {
|
|
@@ -817,7 +781,7 @@ Output:
|
|
|
817
781
|
"--credentials-file must contain a nonempty JSON object of string credential values."
|
|
818
782
|
);
|
|
819
783
|
}
|
|
820
|
-
const result = await new (0,
|
|
784
|
+
const result = await new (0, _chunkFB5H5OOHjs.DeeplineClient)().setIntegrationCredentials(
|
|
821
785
|
provider,
|
|
822
786
|
credentials
|
|
823
787
|
);
|
|
@@ -827,7 +791,7 @@ Output:
|
|
|
827
791
|
);
|
|
828
792
|
}
|
|
829
793
|
const confirmation = { provider, credential_saved: true };
|
|
830
|
-
if (
|
|
794
|
+
if (_chunkGIJ47TAVjs.shouldEmitJson.call(void 0, options.json))
|
|
831
795
|
console.log(JSON.stringify(confirmation));
|
|
832
796
|
else
|
|
833
797
|
console.log(
|
|
@@ -867,22 +831,26 @@ Examples:
|
|
|
867
831
|
json: Boolean(options.json)
|
|
868
832
|
});
|
|
869
833
|
});
|
|
870
|
-
|
|
834
|
+
_chunkHP5FD2LIjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
|
|
871
835
|
tools.command("grep <query>").description(
|
|
872
|
-
"
|
|
836
|
+
"Regex grep over tool ids, descriptions, categories, and input fields."
|
|
873
837
|
).addHelpText(
|
|
874
838
|
"after",
|
|
875
839
|
`
|
|
876
840
|
Notes:
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
841
|
+
Each whitespace-separated term is a case-insensitive regular expression
|
|
842
|
+
(RE2 syntax), tested against each field on its own: tool id, provider,
|
|
843
|
+
display name, categories, aliases, input field names, and descriptions.
|
|
844
|
+
Results list id matches first, and matchedFields says where each tool
|
|
845
|
+
matched. Use --mode any for OR, the default --mode all for AND, and
|
|
846
|
+
--mode phrase to treat the whole query, spaces included, as one pattern.
|
|
847
|
+
A term that is not valid RE2 (for example c++) is matched literally.
|
|
881
848
|
|
|
882
849
|
Examples:
|
|
850
|
+
deepline tools grep '^hubspot_'
|
|
851
|
+
deepline tools grep 'twilio|telesign|vonage'
|
|
852
|
+
deepline tools grep 'hubspot.*(call|engagement)'
|
|
883
853
|
deepline tools grep email --categories email_finder
|
|
884
|
-
deepline tools grep "phone validate" --mode all
|
|
885
|
-
deepline tools grep hunter --mode phrase
|
|
886
854
|
`
|
|
887
855
|
).option(
|
|
888
856
|
"--categories <categories>",
|
|
@@ -898,7 +866,7 @@ Examples:
|
|
|
898
866
|
});
|
|
899
867
|
const addToolMetadataCommand = (command) => {
|
|
900
868
|
let compatibilityMetadata;
|
|
901
|
-
|
|
869
|
+
_chunk6UKY4LBWjs.registerCompatibilityCatalog.call(void 0, command, () => ({
|
|
902
870
|
toolId: command.args[0],
|
|
903
871
|
acceptMetadata: (metadata) => {
|
|
904
872
|
compatibilityMetadata = metadata;
|
|
@@ -968,7 +936,7 @@ Examples:
|
|
|
968
936
|
process.exitCode = await narrowView();
|
|
969
937
|
return;
|
|
970
938
|
}
|
|
971
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
939
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-ZCU36ES2.js")));
|
|
972
940
|
process.exitCode = await describeAnything(
|
|
973
941
|
toolId,
|
|
974
942
|
{
|
|
@@ -1052,7 +1020,7 @@ Examples:
|
|
|
1052
1020
|
options,
|
|
1053
1021
|
void 0,
|
|
1054
1022
|
true,
|
|
1055
|
-
|
|
1023
|
+
_chunkJJQLBZEWjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
1056
1024
|
);
|
|
1057
1025
|
}
|
|
1058
1026
|
);
|
|
@@ -1060,13 +1028,13 @@ Examples:
|
|
|
1060
1028
|
function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
1061
1029
|
let metadata;
|
|
1062
1030
|
const startedAt = performance.now();
|
|
1063
|
-
const baseUrl =
|
|
1064
|
-
|
|
1065
|
-
const result =
|
|
1031
|
+
const baseUrl = _chunkC25ZYL6Ujs.resolveConfig.call(void 0, ).baseUrl;
|
|
1032
|
+
_chunkJJQLBZEWjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
|
|
1033
|
+
const result = _chunk6UKY4LBWjs.runToolExecuteStage.call(void 0,
|
|
1066
1034
|
"SDK compatibility",
|
|
1067
|
-
() =>
|
|
1035
|
+
() => _chunkWR4M5VWKjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
1068
1036
|
command: "tools execute",
|
|
1069
|
-
skillsVersion:
|
|
1037
|
+
skillsVersion: _chunkC25ZYL6Ujs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
|
|
1070
1038
|
persistCache: false,
|
|
1071
1039
|
timeoutMs: TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS,
|
|
1072
1040
|
catalog: {
|
|
@@ -1080,7 +1048,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
|
1080
1048
|
})
|
|
1081
1049
|
).then(
|
|
1082
1050
|
(compatibility) => {
|
|
1083
|
-
|
|
1051
|
+
_chunkJJQLBZEWjs.recordCliTrace.call(void 0, {
|
|
1084
1052
|
phase: "cli.tool_execute_compatibility_ready",
|
|
1085
1053
|
ms: performance.now() - startedAt,
|
|
1086
1054
|
ok: compatibility.error === null,
|
|
@@ -1089,7 +1057,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
|
1089
1057
|
return compatibility;
|
|
1090
1058
|
},
|
|
1091
1059
|
(error) => {
|
|
1092
|
-
|
|
1060
|
+
_chunkJJQLBZEWjs.recordCliTrace.call(void 0, {
|
|
1093
1061
|
phase: "cli.tool_execute_compatibility_ready",
|
|
1094
1062
|
ms: performance.now() - startedAt,
|
|
1095
1063
|
ok: false
|
|
@@ -1104,7 +1072,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1104
1072
|
console.error("Usage: deepline tools describe <toolId> [--json]");
|
|
1105
1073
|
return 1;
|
|
1106
1074
|
}
|
|
1107
|
-
const client = new (0,
|
|
1075
|
+
const client = new (0, _chunkFB5H5OOHjs.DeeplineClient)();
|
|
1108
1076
|
let tool;
|
|
1109
1077
|
try {
|
|
1110
1078
|
tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
|
|
@@ -1158,7 +1126,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1158
1126
|
const lines = toolPricingOnlyLines(tool, toolId);
|
|
1159
1127
|
if (inferenceQuote)
|
|
1160
1128
|
lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
|
|
1161
|
-
|
|
1129
|
+
_chunkGIJ47TAVjs.printCommandEnvelope.call(void 0,
|
|
1162
1130
|
{
|
|
1163
1131
|
toolId: String(tool.toolId || toolId),
|
|
1164
1132
|
cost: _chunkZM2YPJQJjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
@@ -1181,7 +1149,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1181
1149
|
void 0,
|
|
1182
1150
|
seedToolListScript
|
|
1183
1151
|
);
|
|
1184
|
-
|
|
1152
|
+
_chunkGIJ47TAVjs.printCompactJson.call(void 0, {
|
|
1185
1153
|
toolId: contract.toolId,
|
|
1186
1154
|
...options.schemaOnly ? {
|
|
1187
1155
|
inputSchema: contract.inputSchema,
|
|
@@ -1204,7 +1172,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1204
1172
|
return 0;
|
|
1205
1173
|
}
|
|
1206
1174
|
if (options.contractJson) {
|
|
1207
|
-
|
|
1175
|
+
_chunkGIJ47TAVjs.printCompactJson.call(void 0, {
|
|
1208
1176
|
..._chunkAD47BXN2js.toolContractJsonForDescribe.call(void 0,
|
|
1209
1177
|
tool,
|
|
1210
1178
|
toolId,
|
|
@@ -1218,7 +1186,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1218
1186
|
}
|
|
1219
1187
|
const emitJson = options.json === true;
|
|
1220
1188
|
if (emitJson) {
|
|
1221
|
-
|
|
1189
|
+
_chunkGIJ47TAVjs.printCompactJson.call(void 0, {
|
|
1222
1190
|
..._chunkAD47BXN2js.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
|
|
1223
1191
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1224
1192
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -2079,7 +2047,7 @@ function parseExecuteOptions(toolId, options, output) {
|
|
|
2079
2047
|
outputFormat = normalizeOutputFormat(options.outputFormat);
|
|
2080
2048
|
}
|
|
2081
2049
|
if (options.idempotencyKey !== void 0) {
|
|
2082
|
-
|
|
2050
|
+
_chunkFB5H5OOHjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
|
|
2083
2051
|
}
|
|
2084
2052
|
if (options.recoveryTimeoutMs !== void 0) {
|
|
2085
2053
|
const parsed = Number(options.recoveryTimeoutMs);
|
|
@@ -2399,19 +2367,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2399
2367
|
parsed = parseExecuteOptions(toolId, options, output);
|
|
2400
2368
|
} catch (error) {
|
|
2401
2369
|
if (wantsJson) {
|
|
2402
|
-
|
|
2370
|
+
_chunkGIJ47TAVjs.printJsonError.call(void 0, error);
|
|
2403
2371
|
} else {
|
|
2404
2372
|
console.error(error instanceof Error ? error.message : String(error));
|
|
2405
2373
|
}
|
|
2406
2374
|
return error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
|
|
2407
2375
|
}
|
|
2408
|
-
const cliInvocationId = _nullishCoalesce(
|
|
2376
|
+
const cliInvocationId = _nullishCoalesce(_chunk6UKY4LBWjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunk6UKY4LBWjs.beginToolExecuteCommand.call(void 0, )));
|
|
2409
2377
|
const deferredCompatibility = deferCompatibility ? beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) : void 0;
|
|
2410
|
-
const tracing =
|
|
2378
|
+
const tracing = _chunkJJQLBZEWjs.isCliTraceEnabled.call(void 0, );
|
|
2411
2379
|
const clientStartedAt = tracing ? performance.now() : void 0;
|
|
2412
|
-
const client = new (0,
|
|
2380
|
+
const client = new (0, _chunkFB5H5OOHjs.DeeplineClient)();
|
|
2413
2381
|
if (clientStartedAt !== void 0) {
|
|
2414
|
-
|
|
2382
|
+
_chunkJJQLBZEWjs.recordCliTrace.call(void 0, {
|
|
2415
2383
|
phase: "cli.tool_execute_client_setup",
|
|
2416
2384
|
ms: performance.now() - clientStartedAt
|
|
2417
2385
|
});
|
|
@@ -2420,13 +2388,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2420
2388
|
const readMetadata = async () => {
|
|
2421
2389
|
if (metadata) return metadata;
|
|
2422
2390
|
try {
|
|
2423
|
-
metadata = await
|
|
2391
|
+
metadata = await _chunk6UKY4LBWjs.runToolExecuteStage.call(void 0,
|
|
2424
2392
|
"tool metadata lookup",
|
|
2425
2393
|
() => client.getTool(parsed.toolId, { cliInvocationId })
|
|
2426
2394
|
);
|
|
2427
2395
|
} catch (error) {
|
|
2428
2396
|
if (isMissingToolMetadataError(error)) {
|
|
2429
|
-
const play = await
|
|
2397
|
+
const play = await _chunk6UKY4LBWjs.runToolExecuteStage.call(void 0,
|
|
2430
2398
|
"play alias lookup",
|
|
2431
2399
|
() => findPlayForToolId(client, parsed.toolId, cliInvocationId)
|
|
2432
2400
|
);
|
|
@@ -2465,7 +2433,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2465
2433
|
metadata = await readMetadata();
|
|
2466
2434
|
} catch (error) {
|
|
2467
2435
|
if (error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2468
|
-
if (wantsJson)
|
|
2436
|
+
if (wantsJson) _chunkGIJ47TAVjs.printJsonError.call(void 0, error);
|
|
2469
2437
|
else console.error(error.message);
|
|
2470
2438
|
return 2;
|
|
2471
2439
|
}
|
|
@@ -2481,7 +2449,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2481
2449
|
metadata = await readMetadata();
|
|
2482
2450
|
} catch (error) {
|
|
2483
2451
|
if (error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2484
|
-
if (wantsJson)
|
|
2452
|
+
if (wantsJson) _chunkGIJ47TAVjs.printJsonError.call(void 0, error);
|
|
2485
2453
|
else console.error(error.message);
|
|
2486
2454
|
return 2;
|
|
2487
2455
|
}
|
|
@@ -2507,11 +2475,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2507
2475
|
responseIntent,
|
|
2508
2476
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
2509
2477
|
...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
|
|
2510
|
-
searchRef:
|
|
2478
|
+
searchRef: _chunkHP5FD2LIjs.recentSearchRef.call(void 0, ),
|
|
2511
2479
|
cliInvocationId,
|
|
2512
2480
|
onResponseReceived: _chunk27GJKC5Qjs.recordApiResponse,
|
|
2513
2481
|
...tracing ? {
|
|
2514
|
-
onServerTiming: (serverTiming) =>
|
|
2482
|
+
onServerTiming: (serverTiming) => _chunkJJQLBZEWjs.recordCliTrace.call(void 0, {
|
|
2515
2483
|
phase: "tool_execute_server_timing",
|
|
2516
2484
|
cliInvocationId,
|
|
2517
2485
|
serverTiming,
|
|
@@ -2522,13 +2490,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2522
2490
|
let rawResponse;
|
|
2523
2491
|
let successfulCompatibilityResponse;
|
|
2524
2492
|
try {
|
|
2525
|
-
const executeResult = await
|
|
2493
|
+
const executeResult = await _chunk6UKY4LBWjs.runToolExecuteStage.call(void 0,
|
|
2526
2494
|
"execute request",
|
|
2527
2495
|
async () => {
|
|
2528
2496
|
try {
|
|
2529
2497
|
if (tracing) {
|
|
2530
2498
|
submissionStartedAt = performance.now();
|
|
2531
|
-
|
|
2499
|
+
_chunkJJQLBZEWjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
|
|
2532
2500
|
}
|
|
2533
2501
|
return await client.executeTool(parsed.toolId, parsed.params, {
|
|
2534
2502
|
...executeOptions,
|
|
@@ -2537,34 +2505,34 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2537
2505
|
} catch (error) {
|
|
2538
2506
|
if (!(error instanceof _chunkPPDBRJRWjs.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
|
|
2539
2507
|
throw error;
|
|
2540
|
-
const baseUrl =
|
|
2508
|
+
const baseUrl = _chunkC25ZYL6Ujs.resolveConfig.call(void 0, ).baseUrl;
|
|
2541
2509
|
if (maintenancePolicy !== "off") {
|
|
2542
|
-
|
|
2510
|
+
_chunkWR4M5VWKjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
2543
2511
|
}
|
|
2544
|
-
const compatibility = deferredCompatibility ? await deferredCompatibility.result : await
|
|
2512
|
+
const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunk6UKY4LBWjs.runToolExecuteStage.call(void 0,
|
|
2545
2513
|
"SDK compatibility",
|
|
2546
|
-
() =>
|
|
2514
|
+
() => _chunkWR4M5VWKjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
2547
2515
|
command: "tools execute",
|
|
2548
|
-
skillsVersion:
|
|
2516
|
+
skillsVersion: _chunkC25ZYL6Ujs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
|
|
2549
2517
|
persistCache: maintenancePolicy !== "off"
|
|
2550
2518
|
})
|
|
2551
2519
|
);
|
|
2552
2520
|
if (compatibility.error) throw compatibility.error;
|
|
2553
2521
|
metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _28 => _28.readMetadata, 'call', _29 => _29()]), () => ( metadata));
|
|
2554
|
-
if (maintenancePolicy !== "off" && await
|
|
2522
|
+
if (maintenancePolicy !== "off" && await _chunk6UKY4LBWjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2555
2523
|
compatibility.response,
|
|
2556
2524
|
baseUrl,
|
|
2557
2525
|
maintenancePolicy
|
|
2558
2526
|
)) {
|
|
2559
2527
|
return void 0;
|
|
2560
2528
|
}
|
|
2561
|
-
|
|
2529
|
+
_chunkWR4M5VWKjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
2562
2530
|
quietAdvisory: wantsJson
|
|
2563
2531
|
});
|
|
2564
2532
|
if (maintenancePolicy !== "off") {
|
|
2565
|
-
await
|
|
2533
|
+
await _chunk6UKY4LBWjs.runToolExecuteStage.call(void 0,
|
|
2566
2534
|
"agent skills sync",
|
|
2567
|
-
() =>
|
|
2535
|
+
() => _chunkWR4M5VWKjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
|
|
2568
2536
|
update: _optionalChain([compatibility, 'access', _30 => _30.response, 'optionalAccess', _31 => _31.skills]),
|
|
2569
2537
|
mode: "detached"
|
|
2570
2538
|
})
|
|
@@ -2573,7 +2541,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2573
2541
|
const legacyMetadata = await readMetadata();
|
|
2574
2542
|
if (tracing) {
|
|
2575
2543
|
submissionStartedAt = performance.now();
|
|
2576
|
-
|
|
2544
|
+
_chunkJJQLBZEWjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
|
|
2577
2545
|
}
|
|
2578
2546
|
return client.executeTool(parsed.toolId, parsed.params, {
|
|
2579
2547
|
...executeOptions,
|
|
@@ -2594,8 +2562,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2594
2562
|
metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
|
|
2595
2563
|
const updateRequiredBeforeExecution = error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
|
|
2596
2564
|
if (updateRequiredBeforeExecution && maintenancePolicy !== "off" && compatibility && !compatibility.error) {
|
|
2597
|
-
const baseUrl =
|
|
2598
|
-
if (await
|
|
2565
|
+
const baseUrl = _chunkC25ZYL6Ujs.resolveConfig.call(void 0, ).baseUrl;
|
|
2566
|
+
if (await _chunk6UKY4LBWjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2599
2567
|
compatibility.response,
|
|
2600
2568
|
baseUrl,
|
|
2601
2569
|
maintenancePolicy
|
|
@@ -2614,7 +2582,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2614
2582
|
failure = diagnosticError;
|
|
2615
2583
|
}
|
|
2616
2584
|
if (failure instanceof _chunkPPDBRJRWjs.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2617
|
-
if (wantsJson)
|
|
2585
|
+
if (wantsJson) _chunkGIJ47TAVjs.printJsonError.call(void 0, failure);
|
|
2618
2586
|
else console.error(failure.message);
|
|
2619
2587
|
return 2;
|
|
2620
2588
|
}
|
|
@@ -2641,9 +2609,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2641
2609
|
successfulCompatibilityResponse = _nullishCoalesce(compatibilityResponse, () => ( void 0));
|
|
2642
2610
|
const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _37 => _37.auto_update]);
|
|
2643
2611
|
if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _38 => _38.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
2644
|
-
await
|
|
2612
|
+
await _chunk6UKY4LBWjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2645
2613
|
compatibilityResponse,
|
|
2646
|
-
|
|
2614
|
+
_chunkC25ZYL6Ujs.resolveConfig.call(void 0, ).baseUrl,
|
|
2647
2615
|
maintenancePolicy
|
|
2648
2616
|
);
|
|
2649
2617
|
}
|
|
@@ -2678,7 +2646,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2678
2646
|
const { _metadata, ...execution } = rawResponse;
|
|
2679
2647
|
rawResponse = execution;
|
|
2680
2648
|
}
|
|
2681
|
-
const { listConversion, summary, baseEnvelope } = await
|
|
2649
|
+
const { listConversion, summary, baseEnvelope } = await _chunk6UKY4LBWjs.runToolExecuteStage.call(void 0,
|
|
2682
2650
|
"result formatting",
|
|
2683
2651
|
async () => {
|
|
2684
2652
|
const listConversion2 = _chunkHGFFYVXNjs.tryConvertToList.call(void 0, rawResponse, {
|
|
@@ -2713,9 +2681,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2713
2681
|
}
|
|
2714
2682
|
skillsSyncAttempted = true;
|
|
2715
2683
|
try {
|
|
2716
|
-
await
|
|
2684
|
+
await _chunk6UKY4LBWjs.runToolExecuteStage.call(void 0,
|
|
2717
2685
|
"agent skills sync",
|
|
2718
|
-
() =>
|
|
2686
|
+
() => _chunkWR4M5VWKjs.syncSdkSkillsIfNeeded.call(void 0, _chunkC25ZYL6Ujs.resolveConfig.call(void 0, ).baseUrl, {
|
|
2719
2687
|
update: deliveredCompatibilityResponse.skills,
|
|
2720
2688
|
mode: "detached"
|
|
2721
2689
|
})
|
|
@@ -2726,15 +2694,15 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2726
2694
|
);
|
|
2727
2695
|
}
|
|
2728
2696
|
};
|
|
2729
|
-
const printDeliveredEnvelope = (envelope, options2 = {}) =>
|
|
2697
|
+
const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkGIJ47TAVjs.printCommandEnvelope.call(void 0, envelope, {
|
|
2730
2698
|
...options2,
|
|
2731
2699
|
json: _nullishCoalesce(options2.json, () => ( wantsJson))
|
|
2732
2700
|
});
|
|
2733
2701
|
const printDeliveredJsonEnvelope = async (envelope, options2 = {}) => {
|
|
2734
2702
|
await syncSkillsForDeliveredOutput();
|
|
2735
|
-
|
|
2703
|
+
_chunkGIJ47TAVjs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
|
|
2736
2704
|
};
|
|
2737
|
-
const delivered = await
|
|
2705
|
+
const delivered = await _chunk6UKY4LBWjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
|
|
2738
2706
|
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
|
|
2739
2707
|
await printDeliveredJsonEnvelope(baseEnvelope);
|
|
2740
2708
|
return true;
|
|
@@ -2763,7 +2731,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2763
2731
|
`${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
|
|
2764
2732
|
);
|
|
2765
2733
|
if (wantsJson) {
|
|
2766
|
-
|
|
2734
|
+
_chunkGIJ47TAVjs.printJsonError.call(void 0, error);
|
|
2767
2735
|
} else {
|
|
2768
2736
|
console.error(error.message);
|
|
2769
2737
|
}
|
|
@@ -2858,13 +2826,13 @@ inspect: ${inspection.inspect}
|
|
|
2858
2826
|
return true;
|
|
2859
2827
|
});
|
|
2860
2828
|
if (delivered) {
|
|
2861
|
-
await
|
|
2829
|
+
await _chunk6UKY4LBWjs.runToolExecuteStage.call(void 0,
|
|
2862
2830
|
"acknowledge delivery",
|
|
2863
2831
|
() => recovery.acknowledgeDelivery()
|
|
2864
2832
|
);
|
|
2865
2833
|
}
|
|
2866
2834
|
if (delivered && deliveredCompatibilityResponse && deliveredCompatibilityResponse.update_required !== true) {
|
|
2867
|
-
|
|
2835
|
+
_chunkWR4M5VWKjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
|
|
2868
2836
|
quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _40 => _40.auto_update, 'optionalAccess', _41 => _41.should_auto_update]) === true
|
|
2869
2837
|
});
|
|
2870
2838
|
}
|