deepline 0.3.421 → 0.3.422
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +6 -6
- package/dist/cli/{auth-56JTC4Q7.mjs → auth-DMLBSXLV.mjs} +4 -4
- package/dist/cli/auth-HD5AM2WM.js +40 -0
- package/dist/cli/{billing-C5LR6FA7.js → billing-IFGFPGJV.js} +73 -73
- package/dist/cli/{billing-ZXOOZEUW.mjs → billing-SEXKROBQ.mjs} +4 -4
- package/dist/cli/{chunk-UCI4QROZ.mjs → chunk-2JKQORUX.mjs} +1 -1
- package/dist/cli/{chunk-JJQLBZEW.js → chunk-2LVM22ZU.js} +2 -2
- package/dist/cli/{chunk-4NS4EZHN.mjs → chunk-3CE3WGKP.mjs} +2 -2
- package/dist/cli/{chunk-VC3E5HFO.mjs → chunk-4CAVSRQH.mjs} +1 -1
- package/dist/cli/{chunk-NSJRLP7R.js → chunk-4EV2FKBI.js} +16 -16
- package/dist/cli/{chunk-ZOL3CIKN.mjs → chunk-7OJEYJ6G.mjs} +3 -3
- package/dist/cli/{chunk-7TSF7E3B.mjs → chunk-AXDEH2AM.mjs} +2 -2
- package/dist/cli/{chunk-GIJ47TAV.js → chunk-AYM2KZN3.js} +6 -6
- package/dist/cli/{chunk-HP5FD2LI.js → chunk-BL3LY54Y.js} +8 -8
- package/dist/cli/{chunk-RURYN2BE.mjs → chunk-CO3VMH33.mjs} +8 -8
- package/dist/cli/{chunk-RJLFCJ23.mjs → chunk-FEKJENBB.mjs} +3 -3
- package/dist/cli/{chunk-C25ZYL6U.js → chunk-HCYNAIHZ.js} +4 -4
- package/dist/cli/{chunk-QJV2ALPN.js → chunk-JRSULUPQ.js} +2 -2
- package/dist/cli/{chunk-VEYAPBS4.js → chunk-K4X472AT.js} +79 -79
- package/dist/cli/{chunk-4I26IVFC.js → chunk-KBJP3UAU.js} +35 -35
- package/dist/cli/{chunk-F4V4JJED.mjs → chunk-KXPIFC5S.mjs} +3 -3
- package/dist/cli/{chunk-5KYK4DGY.js → chunk-LXRDHISW.js} +8 -8
- package/dist/cli/{chunk-AZGJNNNE.mjs → chunk-M6SXXFMT.mjs} +2 -2
- package/dist/cli/{chunk-5E55HHW3.mjs → chunk-MLP4CAY7.mjs} +4 -4
- package/dist/cli/{chunk-WR4M5VWK.js → chunk-OZHPZCAU.js} +52 -52
- package/dist/cli/{chunk-VYLZS7X4.mjs → chunk-PXO253DP.mjs} +1 -1
- package/dist/cli/{chunk-ZSVWCV3G.mjs → chunk-QNBHQM5R.mjs} +1 -1
- package/dist/cli/{chunk-6UKY4LBW.js → chunk-S4KGXRCV.js} +20 -20
- package/dist/cli/{chunk-5F6W5NWV.mjs → chunk-SDCIROIS.mjs} +5 -5
- package/dist/cli/{chunk-EKQH4IUU.mjs → chunk-TP26TAAF.mjs} +1 -1
- package/dist/cli/{chunk-2XKDLS5P.js → chunk-UQQRMCOL.js} +6 -6
- package/dist/cli/{chunk-2WOVAVJ3.js → chunk-V4RAH5D6.js} +26 -26
- package/dist/cli/{chunk-ZZBXD5VX.js → chunk-VRI3ABTK.js} +50 -50
- package/dist/cli/{chunk-SPLOMS4N.mjs → chunk-VT6WJ26Y.mjs} +1 -1
- package/dist/cli/{chunk-ZLPT2RZ5.mjs → chunk-W74RDGRL.mjs} +2 -2
- package/dist/cli/{chunk-FB5H5OOH.js → chunk-WGO2DY4L.js} +10 -10
- package/dist/cli/{chunk-7SRVIWGT.js → chunk-WP7T4BPE.js} +1 -1
- package/dist/cli/{csv-EJ4QRLA2.mjs → csv-J7UVP4KB.mjs} +3 -3
- package/dist/cli/{csv-G6H3U4XV.js → csv-Y4YWZSLB.js} +12 -12
- package/dist/cli/{db-PBIIALJ5.mjs → db-CQ6NHMLG.mjs} +4 -4
- package/dist/cli/{db-WKQFXUWI.js → db-SVFCM6YZ.js} +25 -25
- package/dist/cli/{describe-ZCU36ES2.js → describe-FSDW6LTN.js} +16 -16
- package/dist/cli/{describe-DMRK4UNO.mjs → describe-Y65BU7ZY.mjs} +12 -12
- package/dist/cli/{executions-JAHW6GMA.mjs → executions-IW762OIJ.mjs} +4 -4
- package/dist/cli/{executions-SBA3UYMH.js → executions-SJIKBRHT.js} +6 -6
- package/dist/cli/{feedback-QAE4V2NY.js → feedback-RCYSUOB3.js} +7 -7
- package/dist/cli/{feedback-PKBUYHMD.mjs → feedback-VMJIWAMT.mjs} +3 -3
- package/dist/cli/git-JAW3UEGA.js +24 -0
- package/dist/cli/{git-GAO3SJAQ.mjs → git-Q2WY3K6X.mjs} +4 -4
- package/dist/cli/index.js +131 -131
- package/dist/cli/index.mjs +36 -36
- package/dist/cli/{legacy-noops-5PY2ZZF3.mjs → legacy-noops-JVEE2VHK.mjs} +4 -4
- package/dist/cli/{legacy-noops-JCMVW5BL.js → legacy-noops-U4YPPYXU.js} +7 -7
- package/dist/cli/{monitors-GVYAZRMB.mjs → monitors-AY4KQRTC.mjs} +4 -4
- package/dist/cli/{monitors-YPS4LPDG.js → monitors-BMAOQ37R.js} +84 -84
- package/dist/cli/{org-OBVAU6K7.js → org-G5IURX74.js} +64 -64
- package/dist/cli/{org-R7AKPKUB.mjs → org-ME4X6HWH.mjs} +4 -4
- package/dist/cli/{play-3LFM2SV2.mjs → play-WLYU7WQL.mjs} +10 -10
- package/dist/cli/{play-MTHQQHR6.js → play-X5GSZOKZ.js} +283 -283
- package/dist/cli/{providers-IRICPDKU.mjs → providers-2LBMNB7B.mjs} +4 -4
- package/dist/cli/{providers-CTIROUI3.js → providers-AHEUVD3R.js} +7 -7
- package/dist/cli/{quickstart-5FBQVZ5B.mjs → quickstart-DBLYGHJP.mjs} +3 -3
- package/dist/cli/{quickstart-OZDVFNF2.js → quickstart-DP2SKLIG.js} +5 -5
- package/dist/cli/search-4K3VSDS5.js +30 -0
- package/dist/cli/{search-FYM47QFU.mjs → search-YKJHY3ZJ.mjs} +5 -5
- package/dist/cli/{secrets-43GJUDAE.js → secrets-2P3I3OEZ.js} +13 -13
- package/dist/cli/{secrets-ENBXU3O3.mjs → secrets-ECLARBO6.mjs} +4 -4
- package/dist/cli/{sessions-7IQJOH5Z.mjs → sessions-3GDFID7R.mjs} +4 -4
- package/dist/cli/{sessions-RXX5IHG6.js → sessions-MC4ZCTSN.js} +5 -5
- package/dist/cli/{settings-Z2CWWV7P.js → settings-7SVR2OVL.js} +75 -75
- package/dist/cli/{settings-EZGDTS3K.mjs → settings-RTPJXMOA.mjs} +8 -8
- package/dist/cli/{setup-2ON3TUXP.js → setup-4WLIJX36.js} +42 -42
- package/dist/cli/{setup-N5UMUBBV.mjs → setup-OKAZZGAW.mjs} +7 -7
- package/dist/cli/{skills-4MR2Z2M5.mjs → skills-2CVL6RG5.mjs} +5 -5
- package/dist/cli/skills-ZNSQOXO2.js +29 -0
- package/dist/cli/{tools-MCEIWE3I.mjs → tools-KAFHP6J4.mjs} +12 -12
- package/dist/cli/tools-W4U4FT3R.js +44 -0
- package/dist/cli/{update-2JDBGLTX.mjs → update-3ZV3W7I4.mjs} +7 -7
- package/dist/cli/update-IE2FPLB5.js +31 -0
- package/dist/cli/{workflow-7UDXYU5Y.mjs → workflow-DKSUNZXE.mjs} +5 -5
- package/dist/cli/{workflow-7DNBY4WJ.js → workflow-GULDFFP3.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +78 -78
- 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-ZQMAF7W5.js +0 -40
- package/dist/cli/git-54INNT33.js +0 -24
- package/dist/cli/search-XIKHDZJ3.js +0 -30
- package/dist/cli/skills-2WIHNEOS.js +0 -29
- package/dist/cli/tools-YUUSOKYX.js +0 -44
- package/dist/cli/update-PWX4MJ3R.js +0 -31
|
@@ -5,7 +5,7 @@ var _chunk27GJKC5Qjs = require('./chunk-27GJKC5Q.js');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkBL3LY54Yjs = require('./chunk-BL3LY54Y.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 _chunkWGO2DY4Ljs = require('./chunk-WGO2DY4L.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 _chunkS4KGXRCVjs = require('./chunk-S4KGXRCV.js');
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
var
|
|
63
|
+
var _chunk2LVM22ZUjs = require('./chunk-2LVM22ZU.js');
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
var
|
|
69
|
+
var _chunkOZHPZCAUjs = require('./chunk-OZHPZCAU.js');
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
|
|
@@ -74,12 +74,12 @@ var _chunkWR4M5VWKjs = require('./chunk-WR4M5VWK.js');
|
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
var
|
|
77
|
+
var _chunkAYM2KZN3js = require('./chunk-AYM2KZN3.js');
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
var
|
|
82
|
+
var _chunkHCYNAIHZjs = require('./chunk-HCYNAIHZ.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 = _chunkHCYNAIHZjs.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
|
+
_chunkHCYNAIHZjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
|
|
165
165
|
`pending-tool-execution-${fingerprint}.json`
|
|
166
166
|
);
|
|
167
167
|
}
|
|
@@ -437,13 +437,13 @@ function categoryEnumerationRender(summaries) {
|
|
|
437
437
|
};
|
|
438
438
|
}
|
|
439
439
|
async function listToolCategories(emitJson, compact) {
|
|
440
|
-
const client = new (0,
|
|
440
|
+
const client = new (0, _chunkWGO2DY4Ljs.DeeplineClient)();
|
|
441
441
|
if (!emitJson) {
|
|
442
442
|
const summaries2 = (await client.listToolCategories()).map((category) => ({
|
|
443
443
|
...category,
|
|
444
444
|
description: describeToolCategory(category.name)
|
|
445
445
|
}));
|
|
446
|
-
|
|
446
|
+
_chunkAYM2KZN3js.printCommandEnvelope.call(void 0,
|
|
447
447
|
{ categories: summaries2, render: categoryEnumerationRender(summaries2) },
|
|
448
448
|
{ json: false }
|
|
449
449
|
);
|
|
@@ -453,7 +453,7 @@ async function listToolCategories(emitJson, compact) {
|
|
|
453
453
|
const items = rawTools.map(toListedTool);
|
|
454
454
|
const summaries = aggregateCategorySummaries(rawTools);
|
|
455
455
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
456
|
-
|
|
456
|
+
_chunkAYM2KZN3js.printCommandEnvelope.call(void 0,
|
|
457
457
|
{
|
|
458
458
|
tools: outputItems,
|
|
459
459
|
count: outputItems.length,
|
|
@@ -472,7 +472,7 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
472
472
|
const known = summaries.map((item) => item.name);
|
|
473
473
|
const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
|
|
474
474
|
if (emitJson) {
|
|
475
|
-
|
|
475
|
+
_chunkAYM2KZN3js.printJson.call(void 0, {
|
|
476
476
|
ok: false,
|
|
477
477
|
exitCode: 4,
|
|
478
478
|
code: "TOOL_CATEGORY_NOT_FOUND",
|
|
@@ -486,13 +486,13 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
486
486
|
const render = categoryEnumerationRender(summaries);
|
|
487
487
|
console.error(message);
|
|
488
488
|
console.error("");
|
|
489
|
-
console.error(
|
|
489
|
+
console.error(_chunkAYM2KZN3js.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
|
|
490
490
|
console.error("");
|
|
491
491
|
console.error(`Valid categories: ${known.join(", ")}`);
|
|
492
492
|
return 4;
|
|
493
493
|
}
|
|
494
494
|
async function listToolsInCategory(category, emitJson) {
|
|
495
|
-
const client = new (0,
|
|
495
|
+
const client = new (0, _chunkWGO2DY4Ljs.DeeplineClient)();
|
|
496
496
|
const { tools: rawTools, categories } = await client.listToolsInCategory(category);
|
|
497
497
|
const summaries = categories.map((item) => ({
|
|
498
498
|
...item,
|
|
@@ -528,7 +528,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
528
528
|
}
|
|
529
529
|
]
|
|
530
530
|
};
|
|
531
|
-
|
|
531
|
+
_chunkAYM2KZN3js.printCommandEnvelope.call(void 0,
|
|
532
532
|
{
|
|
533
533
|
category,
|
|
534
534
|
total: rows.length,
|
|
@@ -541,7 +541,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
541
541
|
return 0;
|
|
542
542
|
}
|
|
543
543
|
async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
|
|
544
|
-
const client = new (0,
|
|
544
|
+
const client = new (0, _chunkWGO2DY4Ljs.DeeplineClient)();
|
|
545
545
|
const items = (await client.listTools({
|
|
546
546
|
categories: requestedCategories.join(","),
|
|
547
547
|
compact
|
|
@@ -570,7 +570,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
|
|
|
570
570
|
]
|
|
571
571
|
};
|
|
572
572
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
573
|
-
|
|
573
|
+
_chunkAYM2KZN3js.printCommandEnvelope.call(void 0,
|
|
574
574
|
{
|
|
575
575
|
tools: outputItems,
|
|
576
576
|
count: outputItems.length,
|
|
@@ -589,13 +589,13 @@ async function listTools(category, options = {}) {
|
|
|
589
589
|
const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
|
|
590
590
|
const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
|
|
591
591
|
const compact = options.compact !== false;
|
|
592
|
-
const emitJson = options.json === true ||
|
|
592
|
+
const emitJson = options.json === true || _chunkAYM2KZN3js.shouldEmitJson.call(void 0, );
|
|
593
593
|
if (positional && flagCategories.length > 0) {
|
|
594
594
|
const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
|
|
595
595
|
if (!flagIsSameSingle) {
|
|
596
596
|
const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
|
|
597
597
|
if (emitJson) {
|
|
598
|
-
|
|
598
|
+
_chunkAYM2KZN3js.printJson.call(void 0, {
|
|
599
599
|
ok: false,
|
|
600
600
|
exitCode: 2,
|
|
601
601
|
code: "TOOL_LIST_CATEGORY_CONFLICT",
|
|
@@ -622,7 +622,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
622
622
|
console.error("Usage: deepline tools grep <query> [--json]");
|
|
623
623
|
return 1;
|
|
624
624
|
}
|
|
625
|
-
const client = new (0,
|
|
625
|
+
const client = new (0, _chunkWGO2DY4Ljs.DeeplineClient)();
|
|
626
626
|
const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
|
|
627
627
|
const mode = _nullishCoalesce(options.mode, () => ( "all"));
|
|
628
628
|
const jsonOutput = options.json === true;
|
|
@@ -646,7 +646,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
646
646
|
query,
|
|
647
647
|
mode
|
|
648
648
|
}) : null;
|
|
649
|
-
|
|
649
|
+
_chunkAYM2KZN3js.printCommandEnvelope.call(void 0,
|
|
650
650
|
{
|
|
651
651
|
tools: outputTools,
|
|
652
652
|
count: outputTools.length,
|
|
@@ -664,7 +664,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
664
664
|
} : {},
|
|
665
665
|
commandTemplates: TOOL_COMMAND_TEMPLATES
|
|
666
666
|
},
|
|
667
|
-
{ json: options.json ||
|
|
667
|
+
{ json: options.json || _chunkAYM2KZN3js.shouldEmitJson.call(void 0, ) }
|
|
668
668
|
);
|
|
669
669
|
return 0;
|
|
670
670
|
}
|
|
@@ -781,7 +781,7 @@ Output:
|
|
|
781
781
|
"--credentials-file must contain a nonempty JSON object of string credential values."
|
|
782
782
|
);
|
|
783
783
|
}
|
|
784
|
-
const result = await new (0,
|
|
784
|
+
const result = await new (0, _chunkWGO2DY4Ljs.DeeplineClient)().setIntegrationCredentials(
|
|
785
785
|
provider,
|
|
786
786
|
credentials
|
|
787
787
|
);
|
|
@@ -791,7 +791,7 @@ Output:
|
|
|
791
791
|
);
|
|
792
792
|
}
|
|
793
793
|
const confirmation = { provider, credential_saved: true };
|
|
794
|
-
if (
|
|
794
|
+
if (_chunkAYM2KZN3js.shouldEmitJson.call(void 0, options.json))
|
|
795
795
|
console.log(JSON.stringify(confirmation));
|
|
796
796
|
else
|
|
797
797
|
console.log(
|
|
@@ -831,7 +831,7 @@ Examples:
|
|
|
831
831
|
json: Boolean(options.json)
|
|
832
832
|
});
|
|
833
833
|
});
|
|
834
|
-
|
|
834
|
+
_chunkBL3LY54Yjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
|
|
835
835
|
tools.command("grep <query>").description(
|
|
836
836
|
"Regex grep over tool ids, descriptions, categories, and input fields."
|
|
837
837
|
).addHelpText(
|
|
@@ -866,7 +866,7 @@ Examples:
|
|
|
866
866
|
});
|
|
867
867
|
const addToolMetadataCommand = (command) => {
|
|
868
868
|
let compatibilityMetadata;
|
|
869
|
-
|
|
869
|
+
_chunkS4KGXRCVjs.registerCompatibilityCatalog.call(void 0, command, () => ({
|
|
870
870
|
toolId: command.args[0],
|
|
871
871
|
acceptMetadata: (metadata) => {
|
|
872
872
|
compatibilityMetadata = metadata;
|
|
@@ -936,7 +936,7 @@ Examples:
|
|
|
936
936
|
process.exitCode = await narrowView();
|
|
937
937
|
return;
|
|
938
938
|
}
|
|
939
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
939
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-FSDW6LTN.js")));
|
|
940
940
|
process.exitCode = await describeAnything(
|
|
941
941
|
toolId,
|
|
942
942
|
{
|
|
@@ -1020,7 +1020,7 @@ Examples:
|
|
|
1020
1020
|
options,
|
|
1021
1021
|
void 0,
|
|
1022
1022
|
true,
|
|
1023
|
-
|
|
1023
|
+
_chunk2LVM22ZUjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
1024
1024
|
);
|
|
1025
1025
|
}
|
|
1026
1026
|
);
|
|
@@ -1028,13 +1028,13 @@ Examples:
|
|
|
1028
1028
|
function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
1029
1029
|
let metadata;
|
|
1030
1030
|
const startedAt = performance.now();
|
|
1031
|
-
const baseUrl =
|
|
1032
|
-
|
|
1033
|
-
const result =
|
|
1031
|
+
const baseUrl = _chunkHCYNAIHZjs.resolveConfig.call(void 0, ).baseUrl;
|
|
1032
|
+
_chunk2LVM22ZUjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
|
|
1033
|
+
const result = _chunkS4KGXRCVjs.runToolExecuteStage.call(void 0,
|
|
1034
1034
|
"SDK compatibility",
|
|
1035
|
-
() =>
|
|
1035
|
+
() => _chunkOZHPZCAUjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
1036
1036
|
command: "tools execute",
|
|
1037
|
-
skillsVersion:
|
|
1037
|
+
skillsVersion: _chunkHCYNAIHZjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
|
|
1038
1038
|
persistCache: false,
|
|
1039
1039
|
timeoutMs: TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS,
|
|
1040
1040
|
catalog: {
|
|
@@ -1048,7 +1048,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
|
1048
1048
|
})
|
|
1049
1049
|
).then(
|
|
1050
1050
|
(compatibility) => {
|
|
1051
|
-
|
|
1051
|
+
_chunk2LVM22ZUjs.recordCliTrace.call(void 0, {
|
|
1052
1052
|
phase: "cli.tool_execute_compatibility_ready",
|
|
1053
1053
|
ms: performance.now() - startedAt,
|
|
1054
1054
|
ok: compatibility.error === null,
|
|
@@ -1057,7 +1057,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
|
|
|
1057
1057
|
return compatibility;
|
|
1058
1058
|
},
|
|
1059
1059
|
(error) => {
|
|
1060
|
-
|
|
1060
|
+
_chunk2LVM22ZUjs.recordCliTrace.call(void 0, {
|
|
1061
1061
|
phase: "cli.tool_execute_compatibility_ready",
|
|
1062
1062
|
ms: performance.now() - startedAt,
|
|
1063
1063
|
ok: false
|
|
@@ -1072,7 +1072,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1072
1072
|
console.error("Usage: deepline tools describe <toolId> [--json]");
|
|
1073
1073
|
return 1;
|
|
1074
1074
|
}
|
|
1075
|
-
const client = new (0,
|
|
1075
|
+
const client = new (0, _chunkWGO2DY4Ljs.DeeplineClient)();
|
|
1076
1076
|
let tool;
|
|
1077
1077
|
try {
|
|
1078
1078
|
tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
|
|
@@ -1126,7 +1126,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1126
1126
|
const lines = toolPricingOnlyLines(tool, toolId);
|
|
1127
1127
|
if (inferenceQuote)
|
|
1128
1128
|
lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
|
|
1129
|
-
|
|
1129
|
+
_chunkAYM2KZN3js.printCommandEnvelope.call(void 0,
|
|
1130
1130
|
{
|
|
1131
1131
|
toolId: String(tool.toolId || toolId),
|
|
1132
1132
|
cost: _chunkZM2YPJQJjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
@@ -1149,7 +1149,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1149
1149
|
void 0,
|
|
1150
1150
|
seedToolListScript
|
|
1151
1151
|
);
|
|
1152
|
-
|
|
1152
|
+
_chunkAYM2KZN3js.printCompactJson.call(void 0, {
|
|
1153
1153
|
toolId: contract.toolId,
|
|
1154
1154
|
...options.schemaOnly ? {
|
|
1155
1155
|
inputSchema: contract.inputSchema,
|
|
@@ -1172,7 +1172,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1172
1172
|
return 0;
|
|
1173
1173
|
}
|
|
1174
1174
|
if (options.contractJson) {
|
|
1175
|
-
|
|
1175
|
+
_chunkAYM2KZN3js.printCompactJson.call(void 0, {
|
|
1176
1176
|
..._chunkAD47BXN2js.toolContractJsonForDescribe.call(void 0,
|
|
1177
1177
|
tool,
|
|
1178
1178
|
toolId,
|
|
@@ -1186,7 +1186,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1186
1186
|
}
|
|
1187
1187
|
const emitJson = options.json === true;
|
|
1188
1188
|
if (emitJson) {
|
|
1189
|
-
|
|
1189
|
+
_chunkAYM2KZN3js.printCompactJson.call(void 0, {
|
|
1190
1190
|
..._chunkAD47BXN2js.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
|
|
1191
1191
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1192
1192
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -2047,7 +2047,7 @@ function parseExecuteOptions(toolId, options, output) {
|
|
|
2047
2047
|
outputFormat = normalizeOutputFormat(options.outputFormat);
|
|
2048
2048
|
}
|
|
2049
2049
|
if (options.idempotencyKey !== void 0) {
|
|
2050
|
-
|
|
2050
|
+
_chunkWGO2DY4Ljs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
|
|
2051
2051
|
}
|
|
2052
2052
|
if (options.recoveryTimeoutMs !== void 0) {
|
|
2053
2053
|
const parsed = Number(options.recoveryTimeoutMs);
|
|
@@ -2367,19 +2367,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2367
2367
|
parsed = parseExecuteOptions(toolId, options, output);
|
|
2368
2368
|
} catch (error) {
|
|
2369
2369
|
if (wantsJson) {
|
|
2370
|
-
|
|
2370
|
+
_chunkAYM2KZN3js.printJsonError.call(void 0, error);
|
|
2371
2371
|
} else {
|
|
2372
2372
|
console.error(error instanceof Error ? error.message : String(error));
|
|
2373
2373
|
}
|
|
2374
2374
|
return error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
|
|
2375
2375
|
}
|
|
2376
|
-
const cliInvocationId = _nullishCoalesce(
|
|
2376
|
+
const cliInvocationId = _nullishCoalesce(_chunkS4KGXRCVjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkS4KGXRCVjs.beginToolExecuteCommand.call(void 0, )));
|
|
2377
2377
|
const deferredCompatibility = deferCompatibility ? beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) : void 0;
|
|
2378
|
-
const tracing =
|
|
2378
|
+
const tracing = _chunk2LVM22ZUjs.isCliTraceEnabled.call(void 0, );
|
|
2379
2379
|
const clientStartedAt = tracing ? performance.now() : void 0;
|
|
2380
|
-
const client = new (0,
|
|
2380
|
+
const client = new (0, _chunkWGO2DY4Ljs.DeeplineClient)();
|
|
2381
2381
|
if (clientStartedAt !== void 0) {
|
|
2382
|
-
|
|
2382
|
+
_chunk2LVM22ZUjs.recordCliTrace.call(void 0, {
|
|
2383
2383
|
phase: "cli.tool_execute_client_setup",
|
|
2384
2384
|
ms: performance.now() - clientStartedAt
|
|
2385
2385
|
});
|
|
@@ -2388,13 +2388,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2388
2388
|
const readMetadata = async () => {
|
|
2389
2389
|
if (metadata) return metadata;
|
|
2390
2390
|
try {
|
|
2391
|
-
metadata = await
|
|
2391
|
+
metadata = await _chunkS4KGXRCVjs.runToolExecuteStage.call(void 0,
|
|
2392
2392
|
"tool metadata lookup",
|
|
2393
2393
|
() => client.getTool(parsed.toolId, { cliInvocationId })
|
|
2394
2394
|
);
|
|
2395
2395
|
} catch (error) {
|
|
2396
2396
|
if (isMissingToolMetadataError(error)) {
|
|
2397
|
-
const play = await
|
|
2397
|
+
const play = await _chunkS4KGXRCVjs.runToolExecuteStage.call(void 0,
|
|
2398
2398
|
"play alias lookup",
|
|
2399
2399
|
() => findPlayForToolId(client, parsed.toolId, cliInvocationId)
|
|
2400
2400
|
);
|
|
@@ -2433,7 +2433,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2433
2433
|
metadata = await readMetadata();
|
|
2434
2434
|
} catch (error) {
|
|
2435
2435
|
if (error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2436
|
-
if (wantsJson)
|
|
2436
|
+
if (wantsJson) _chunkAYM2KZN3js.printJsonError.call(void 0, error);
|
|
2437
2437
|
else console.error(error.message);
|
|
2438
2438
|
return 2;
|
|
2439
2439
|
}
|
|
@@ -2449,7 +2449,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2449
2449
|
metadata = await readMetadata();
|
|
2450
2450
|
} catch (error) {
|
|
2451
2451
|
if (error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2452
|
-
if (wantsJson)
|
|
2452
|
+
if (wantsJson) _chunkAYM2KZN3js.printJsonError.call(void 0, error);
|
|
2453
2453
|
else console.error(error.message);
|
|
2454
2454
|
return 2;
|
|
2455
2455
|
}
|
|
@@ -2475,11 +2475,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2475
2475
|
responseIntent,
|
|
2476
2476
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
2477
2477
|
...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
|
|
2478
|
-
searchRef:
|
|
2478
|
+
searchRef: _chunkBL3LY54Yjs.recentSearchRef.call(void 0, ),
|
|
2479
2479
|
cliInvocationId,
|
|
2480
2480
|
onResponseReceived: _chunk27GJKC5Qjs.recordApiResponse,
|
|
2481
2481
|
...tracing ? {
|
|
2482
|
-
onServerTiming: (serverTiming) =>
|
|
2482
|
+
onServerTiming: (serverTiming) => _chunk2LVM22ZUjs.recordCliTrace.call(void 0, {
|
|
2483
2483
|
phase: "tool_execute_server_timing",
|
|
2484
2484
|
cliInvocationId,
|
|
2485
2485
|
serverTiming,
|
|
@@ -2490,13 +2490,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2490
2490
|
let rawResponse;
|
|
2491
2491
|
let successfulCompatibilityResponse;
|
|
2492
2492
|
try {
|
|
2493
|
-
const executeResult = await
|
|
2493
|
+
const executeResult = await _chunkS4KGXRCVjs.runToolExecuteStage.call(void 0,
|
|
2494
2494
|
"execute request",
|
|
2495
2495
|
async () => {
|
|
2496
2496
|
try {
|
|
2497
2497
|
if (tracing) {
|
|
2498
2498
|
submissionStartedAt = performance.now();
|
|
2499
|
-
|
|
2499
|
+
_chunk2LVM22ZUjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
|
|
2500
2500
|
}
|
|
2501
2501
|
return await client.executeTool(parsed.toolId, parsed.params, {
|
|
2502
2502
|
...executeOptions,
|
|
@@ -2505,34 +2505,34 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2505
2505
|
} catch (error) {
|
|
2506
2506
|
if (!(error instanceof _chunkPPDBRJRWjs.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
|
|
2507
2507
|
throw error;
|
|
2508
|
-
const baseUrl =
|
|
2508
|
+
const baseUrl = _chunkHCYNAIHZjs.resolveConfig.call(void 0, ).baseUrl;
|
|
2509
2509
|
if (maintenancePolicy !== "off") {
|
|
2510
|
-
|
|
2510
|
+
_chunkOZHPZCAUjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
2511
2511
|
}
|
|
2512
|
-
const compatibility = deferredCompatibility ? await deferredCompatibility.result : await
|
|
2512
|
+
const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunkS4KGXRCVjs.runToolExecuteStage.call(void 0,
|
|
2513
2513
|
"SDK compatibility",
|
|
2514
|
-
() =>
|
|
2514
|
+
() => _chunkOZHPZCAUjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
2515
2515
|
command: "tools execute",
|
|
2516
|
-
skillsVersion:
|
|
2516
|
+
skillsVersion: _chunkHCYNAIHZjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
|
|
2517
2517
|
persistCache: maintenancePolicy !== "off"
|
|
2518
2518
|
})
|
|
2519
2519
|
);
|
|
2520
2520
|
if (compatibility.error) throw compatibility.error;
|
|
2521
2521
|
metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _28 => _28.readMetadata, 'call', _29 => _29()]), () => ( metadata));
|
|
2522
|
-
if (maintenancePolicy !== "off" && await
|
|
2522
|
+
if (maintenancePolicy !== "off" && await _chunkS4KGXRCVjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2523
2523
|
compatibility.response,
|
|
2524
2524
|
baseUrl,
|
|
2525
2525
|
maintenancePolicy
|
|
2526
2526
|
)) {
|
|
2527
2527
|
return void 0;
|
|
2528
2528
|
}
|
|
2529
|
-
|
|
2529
|
+
_chunkOZHPZCAUjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
2530
2530
|
quietAdvisory: wantsJson
|
|
2531
2531
|
});
|
|
2532
2532
|
if (maintenancePolicy !== "off") {
|
|
2533
|
-
await
|
|
2533
|
+
await _chunkS4KGXRCVjs.runToolExecuteStage.call(void 0,
|
|
2534
2534
|
"agent skills sync",
|
|
2535
|
-
() =>
|
|
2535
|
+
() => _chunkOZHPZCAUjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
|
|
2536
2536
|
update: _optionalChain([compatibility, 'access', _30 => _30.response, 'optionalAccess', _31 => _31.skills]),
|
|
2537
2537
|
mode: "detached"
|
|
2538
2538
|
})
|
|
@@ -2541,7 +2541,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2541
2541
|
const legacyMetadata = await readMetadata();
|
|
2542
2542
|
if (tracing) {
|
|
2543
2543
|
submissionStartedAt = performance.now();
|
|
2544
|
-
|
|
2544
|
+
_chunk2LVM22ZUjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
|
|
2545
2545
|
}
|
|
2546
2546
|
return client.executeTool(parsed.toolId, parsed.params, {
|
|
2547
2547
|
...executeOptions,
|
|
@@ -2562,8 +2562,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2562
2562
|
metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
|
|
2563
2563
|
const updateRequiredBeforeExecution = error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
|
|
2564
2564
|
if (updateRequiredBeforeExecution && maintenancePolicy !== "off" && compatibility && !compatibility.error) {
|
|
2565
|
-
const baseUrl =
|
|
2566
|
-
if (await
|
|
2565
|
+
const baseUrl = _chunkHCYNAIHZjs.resolveConfig.call(void 0, ).baseUrl;
|
|
2566
|
+
if (await _chunkS4KGXRCVjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2567
2567
|
compatibility.response,
|
|
2568
2568
|
baseUrl,
|
|
2569
2569
|
maintenancePolicy
|
|
@@ -2582,7 +2582,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2582
2582
|
failure = diagnosticError;
|
|
2583
2583
|
}
|
|
2584
2584
|
if (failure instanceof _chunkPPDBRJRWjs.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
|
|
2585
|
-
if (wantsJson)
|
|
2585
|
+
if (wantsJson) _chunkAYM2KZN3js.printJsonError.call(void 0, failure);
|
|
2586
2586
|
else console.error(failure.message);
|
|
2587
2587
|
return 2;
|
|
2588
2588
|
}
|
|
@@ -2609,9 +2609,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2609
2609
|
successfulCompatibilityResponse = _nullishCoalesce(compatibilityResponse, () => ( void 0));
|
|
2610
2610
|
const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _37 => _37.auto_update]);
|
|
2611
2611
|
if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _38 => _38.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
2612
|
-
await
|
|
2612
|
+
await _chunkS4KGXRCVjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
2613
2613
|
compatibilityResponse,
|
|
2614
|
-
|
|
2614
|
+
_chunkHCYNAIHZjs.resolveConfig.call(void 0, ).baseUrl,
|
|
2615
2615
|
maintenancePolicy
|
|
2616
2616
|
);
|
|
2617
2617
|
}
|
|
@@ -2646,7 +2646,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2646
2646
|
const { _metadata, ...execution } = rawResponse;
|
|
2647
2647
|
rawResponse = execution;
|
|
2648
2648
|
}
|
|
2649
|
-
const { listConversion, summary, baseEnvelope } = await
|
|
2649
|
+
const { listConversion, summary, baseEnvelope } = await _chunkS4KGXRCVjs.runToolExecuteStage.call(void 0,
|
|
2650
2650
|
"result formatting",
|
|
2651
2651
|
async () => {
|
|
2652
2652
|
const listConversion2 = _chunkHGFFYVXNjs.tryConvertToList.call(void 0, rawResponse, {
|
|
@@ -2681,9 +2681,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2681
2681
|
}
|
|
2682
2682
|
skillsSyncAttempted = true;
|
|
2683
2683
|
try {
|
|
2684
|
-
await
|
|
2684
|
+
await _chunkS4KGXRCVjs.runToolExecuteStage.call(void 0,
|
|
2685
2685
|
"agent skills sync",
|
|
2686
|
-
() =>
|
|
2686
|
+
() => _chunkOZHPZCAUjs.syncSdkSkillsIfNeeded.call(void 0, _chunkHCYNAIHZjs.resolveConfig.call(void 0, ).baseUrl, {
|
|
2687
2687
|
update: deliveredCompatibilityResponse.skills,
|
|
2688
2688
|
mode: "detached"
|
|
2689
2689
|
})
|
|
@@ -2694,15 +2694,15 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2694
2694
|
);
|
|
2695
2695
|
}
|
|
2696
2696
|
};
|
|
2697
|
-
const printDeliveredEnvelope = (envelope, options2 = {}) =>
|
|
2697
|
+
const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkAYM2KZN3js.printCommandEnvelope.call(void 0, envelope, {
|
|
2698
2698
|
...options2,
|
|
2699
2699
|
json: _nullishCoalesce(options2.json, () => ( wantsJson))
|
|
2700
2700
|
});
|
|
2701
2701
|
const printDeliveredJsonEnvelope = async (envelope, options2 = {}) => {
|
|
2702
2702
|
await syncSkillsForDeliveredOutput();
|
|
2703
|
-
|
|
2703
|
+
_chunkAYM2KZN3js.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
|
|
2704
2704
|
};
|
|
2705
|
-
const delivered = await
|
|
2705
|
+
const delivered = await _chunkS4KGXRCVjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
|
|
2706
2706
|
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
|
|
2707
2707
|
await printDeliveredJsonEnvelope(baseEnvelope);
|
|
2708
2708
|
return true;
|
|
@@ -2731,7 +2731,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2731
2731
|
`${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
|
|
2732
2732
|
);
|
|
2733
2733
|
if (wantsJson) {
|
|
2734
|
-
|
|
2734
|
+
_chunkAYM2KZN3js.printJsonError.call(void 0, error);
|
|
2735
2735
|
} else {
|
|
2736
2736
|
console.error(error.message);
|
|
2737
2737
|
}
|
|
@@ -2826,13 +2826,13 @@ inspect: ${inspection.inspect}
|
|
|
2826
2826
|
return true;
|
|
2827
2827
|
});
|
|
2828
2828
|
if (delivered) {
|
|
2829
|
-
await
|
|
2829
|
+
await _chunkS4KGXRCVjs.runToolExecuteStage.call(void 0,
|
|
2830
2830
|
"acknowledge delivery",
|
|
2831
2831
|
() => recovery.acknowledgeDelivery()
|
|
2832
2832
|
);
|
|
2833
2833
|
}
|
|
2834
2834
|
if (delivered && deliveredCompatibilityResponse && deliveredCompatibilityResponse.update_required !== true) {
|
|
2835
|
-
|
|
2835
|
+
_chunkOZHPZCAUjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
|
|
2836
2836
|
quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _40 => _40.auto_update, 'optionalAccess', _41 => _41.should_auto_update]) === true
|
|
2837
2837
|
});
|
|
2838
2838
|
}
|