deepline 0.3.399 → 0.3.401
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/play-runtime/scheduler-backends/worker-resource-metrics.ts +57 -46
- package/dist/cli/{auth-QHVIMKL3.mjs → auth-4AWRW6ED.mjs} +4 -4
- package/dist/cli/auth-K6U65ROB.js +40 -0
- package/dist/cli/{billing-3V4GX5FX.mjs → billing-AMQDNFSL.mjs} +4 -4
- package/dist/cli/{billing-O2HRFIPG.js → billing-FPHECIIS.js} +73 -73
- package/dist/cli/{chunk-GT4NODCJ.js → chunk-5QD6F5TW.js} +1 -1
- package/dist/cli/{chunk-EMNKA5WK.js → chunk-72ESQ66A.js} +2 -2
- package/dist/cli/{chunk-A3T7YPEP.js → chunk-BHEJDACQ.js} +4 -4
- package/dist/cli/{chunk-T523SXCK.mjs → chunk-BXRIA6OQ.mjs} +2 -2
- package/dist/cli/{chunk-2S44J5UG.mjs → chunk-C7JATIE5.mjs} +1 -1
- package/dist/cli/{chunk-BX7ZF5Z7.js → chunk-D5KFELCC.js} +8 -8
- package/dist/cli/{chunk-CI4Q6UP4.js → chunk-GDKUYYCJ.js} +50 -50
- package/dist/cli/{chunk-AVTJXBXL.mjs → chunk-H4QOCJNY.mjs} +5 -5
- package/dist/cli/{chunk-CCH3ZVR5.mjs → chunk-JDA2E5MQ.mjs} +1 -1
- package/dist/cli/{chunk-EFEMS43P.js → chunk-LD7WUOAZ.js} +26 -26
- package/dist/cli/{chunk-ZKKXQQWL.js → chunk-M3R2BG3A.js} +8 -8
- package/dist/cli/{chunk-ZNWNAC7E.mjs → chunk-MSOOPRSP.mjs} +3 -3
- package/dist/cli/{chunk-BZZX56J2.js → chunk-OIODIUIC.js} +6 -6
- package/dist/cli/{chunk-XES27RSC.mjs → chunk-R2S7OCRB.mjs} +1 -1
- package/dist/cli/{chunk-DHLYCZWS.mjs → chunk-RMW6SXGP.mjs} +3 -3
- package/dist/cli/{chunk-IB6R2SZJ.js → chunk-RWVQQ7O4.js} +44 -44
- package/dist/cli/{chunk-YADFPKH2.js → chunk-S56LMBGA.js} +65 -65
- package/dist/cli/{chunk-HNHFC3PM.js → chunk-SXGVRWAW.js} +15 -15
- package/dist/cli/{chunk-VV6EPCDS.mjs → chunk-TPA6R5EF.mjs} +2 -2
- package/dist/cli/{chunk-CVTH2VUI.js → chunk-WSKN3U4U.js} +6 -6
- package/dist/cli/{chunk-XUHQWWJW.mjs → chunk-X6WLVELL.mjs} +1 -1
- package/dist/cli/{chunk-Y3MRTY2F.mjs → chunk-YGHWGZMF.mjs} +1 -1
- package/dist/cli/{chunk-PQB2PTMA.mjs → chunk-YJZM6SMA.mjs} +2 -2
- package/dist/cli/{chunk-ZPDNT7LJ.mjs → chunk-ZKV52IDD.mjs} +4 -4
- package/dist/cli/{csv-IDABZWW3.js → csv-ARB6UC2S.js} +12 -12
- package/dist/cli/{csv-Z5TYV7XE.mjs → csv-FICXQQRA.mjs} +3 -3
- package/dist/cli/{db-4KKNX3Y2.js → db-HFQAZHLR.js} +25 -25
- package/dist/cli/{db-23MIKNVU.mjs → db-OG5PJUEH.mjs} +4 -4
- package/dist/cli/{describe-RKZKZ7UR.js → describe-HSHMULQM.js} +10 -10
- package/dist/cli/{describe-XNGCKRPN.mjs → describe-OU3J552L.mjs} +6 -6
- package/dist/cli/{executions-XUKNAELQ.mjs → executions-6JBC2LEV.mjs} +4 -4
- package/dist/cli/{executions-NTXHTAM6.js → executions-74BX6WTW.js} +6 -6
- package/dist/cli/{feedback-LWJSTHZ2.mjs → feedback-DQMLYSYA.mjs} +3 -3
- package/dist/cli/{feedback-6INY66DC.js → feedback-QVDE26VJ.js} +7 -7
- package/dist/cli/git-62XASBWF.js +24 -0
- package/dist/cli/{git-CRKOKS7B.mjs → git-CLGBVWOE.mjs} +4 -4
- package/dist/cli/index.js +89 -89
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-LPTMKYC7.js → legacy-noops-3WGVVY3K.js} +7 -7
- package/dist/cli/{legacy-noops-VVQQ7VUO.mjs → legacy-noops-WRSE7SQJ.mjs} +4 -4
- package/dist/cli/{monitors-HG6KO4XZ.js → monitors-GY4VQLAC.js} +84 -84
- package/dist/cli/{monitors-GI2GTZSG.mjs → monitors-ZKFTF7YR.mjs} +4 -4
- package/dist/cli/{org-ZYKZP6CE.mjs → org-D3PC2XSX.mjs} +4 -4
- package/dist/cli/{org-L3KNS3OS.js → org-TYO2HXYG.js} +64 -64
- package/dist/cli/{play-64VPT37H.mjs → play-3OQWZXXS.mjs} +112 -33
- package/dist/cli/{play-537TGXWP.js → play-ZVHBPWSF.js} +375 -296
- package/dist/cli/{providers-ISRDMPLU.mjs → providers-FFGKI5TY.mjs} +4 -4
- package/dist/cli/{providers-6DBPDSLU.js → providers-PGMUOSED.js} +7 -7
- package/dist/cli/{quickstart-CACETI7N.mjs → quickstart-JCOPUMOG.mjs} +3 -3
- package/dist/cli/{quickstart-53Z7F4YI.js → quickstart-PSA6H2J4.js} +5 -5
- package/dist/cli/search-OLW7VOVW.js +30 -0
- package/dist/cli/{search-ZUOMRAIV.mjs → search-UBDRYRKV.mjs} +5 -5
- package/dist/cli/{secrets-TOUFAI3P.js → secrets-35D7PHB6.js} +13 -13
- package/dist/cli/{secrets-7TPCHJM5.mjs → secrets-KERFAL3Q.mjs} +4 -4
- package/dist/cli/{sessions-7JX2XZSO.js → sessions-FDQFQHRN.js} +5 -5
- package/dist/cli/{sessions-D3HZ2E3P.mjs → sessions-O2Z2KW6M.mjs} +4 -4
- package/dist/cli/{settings-IZ7FINUA.js → settings-4FANCMJK.js} +74 -74
- package/dist/cli/{settings-LSFSVH3T.mjs → settings-4ZS7FR2D.mjs} +7 -7
- package/dist/cli/{setup-FXSH7FIX.js → setup-DO7JN6D5.js} +41 -41
- package/dist/cli/{setup-ZF2VX7J5.mjs → setup-M2PE4H6S.mjs} +6 -6
- package/dist/cli/skills-OLGAL6KZ.js +29 -0
- package/dist/cli/{skills-I3ILXJPH.mjs → skills-TQBVDZRT.mjs} +4 -4
- package/dist/cli/{tools-GZHXAZBL.js → tools-3NNIOEWK.js} +7 -7
- package/dist/cli/{tools-LW7Z2BLN.mjs → tools-WNRMVURQ.mjs} +6 -6
- package/dist/cli/{update-BOK3AWHY.mjs → update-3MF6MZJC.mjs} +6 -6
- package/dist/cli/update-6CWJ56OJ.js +29 -0
- package/dist/cli/{workflow-5ZBCCWKH.js → workflow-EK3HMPGH.js} +15 -15
- package/dist/cli/{workflow-ZS3FBDO6.mjs → workflow-UJB633SZ.mjs} +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +70 -70
- 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-YYB4S5HO.js +0 -40
- package/dist/cli/git-2TH3NROT.js +0 -24
- package/dist/cli/search-GAF5BS6N.js +0 -30
- package/dist/cli/skills-JT6CP6MI.js +0 -29
- package/dist/cli/update-5TD6XRQK.js +0 -29
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-GAMFK2ZP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JDA2E5MQ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_SKILL_AGENTS,
|
|
9
9
|
KNOWN_SKILL_AGENTS,
|
|
@@ -22,13 +22,13 @@ import {
|
|
|
22
22
|
sdkCliStateDirPath,
|
|
23
23
|
skillsAgentPathSegment,
|
|
24
24
|
writeSdkSkillsLocalVersion
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-X6WLVELL.mjs";
|
|
26
26
|
import {
|
|
27
27
|
DeeplineError
|
|
28
28
|
} from "./chunk-NXGCO4JB.mjs";
|
|
29
29
|
import {
|
|
30
30
|
SDK_RELEASE
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-R2S7OCRB.mjs";
|
|
32
32
|
|
|
33
33
|
// src/cli/commands/skills.ts
|
|
34
34
|
import { spawn as spawn2 } from "child_process";
|
|
@@ -5,7 +5,7 @@ var _chunkZAAKSJASjs = require('./chunk-ZAAKSJAS.js');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkD5KFELCCjs = require('./chunk-D5KFELCC.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -45,7 +45,7 @@ var _chunkKB4SDX5Sjs = require('./chunk-KB4SDX5S.js');
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
var
|
|
48
|
+
var _chunkOIODIUICjs = require('./chunk-OIODIUIC.js');
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
|
|
@@ -62,11 +62,11 @@ var _chunkQJBJZVG6js = require('./chunk-QJBJZVG6.js');
|
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
var
|
|
65
|
+
var _chunkWSKN3U4Ujs = require('./chunk-WSKN3U4U.js');
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
var
|
|
69
|
+
var _chunkBHEJDACQjs = require('./chunk-BHEJDACQ.js');
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -145,10 +145,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
|
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
147
|
function pendingToolExecutionPath(input) {
|
|
148
|
-
const config =
|
|
148
|
+
const config = _chunkBHEJDACQjs.resolveConfig.call(void 0, );
|
|
149
149
|
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");
|
|
150
150
|
return _path.join.call(void 0,
|
|
151
|
-
|
|
151
|
+
_chunkBHEJDACQjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
|
|
152
152
|
`pending-tool-execution-${fingerprint}.json`
|
|
153
153
|
);
|
|
154
154
|
}
|
|
@@ -436,12 +436,12 @@ function categoryEnumerationRender(summaries) {
|
|
|
436
436
|
};
|
|
437
437
|
}
|
|
438
438
|
async function listToolCategories(emitJson, compact) {
|
|
439
|
-
const client = new (0,
|
|
439
|
+
const client = new (0, _chunkOIODIUICjs.DeeplineClient)();
|
|
440
440
|
const rawTools = await client.listTools({ compact });
|
|
441
441
|
const items = rawTools.map(toListedTool);
|
|
442
442
|
const summaries = aggregateCategorySummaries(rawTools);
|
|
443
443
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
444
|
-
|
|
444
|
+
_chunkWSKN3U4Ujs.printCommandEnvelope.call(void 0,
|
|
445
445
|
{
|
|
446
446
|
tools: outputItems,
|
|
447
447
|
count: outputItems.length,
|
|
@@ -460,7 +460,7 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
460
460
|
const known = summaries.map((item) => item.name);
|
|
461
461
|
const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
|
|
462
462
|
if (emitJson) {
|
|
463
|
-
|
|
463
|
+
_chunkWSKN3U4Ujs.printJson.call(void 0, {
|
|
464
464
|
ok: false,
|
|
465
465
|
exitCode: 4,
|
|
466
466
|
code: "TOOL_CATEGORY_NOT_FOUND",
|
|
@@ -474,13 +474,13 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
474
474
|
const render = categoryEnumerationRender(summaries);
|
|
475
475
|
console.error(message);
|
|
476
476
|
console.error("");
|
|
477
|
-
console.error(
|
|
477
|
+
console.error(_chunkWSKN3U4Ujs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
|
|
478
478
|
console.error("");
|
|
479
479
|
console.error(`Valid categories: ${known.join(", ")}`);
|
|
480
480
|
return 4;
|
|
481
481
|
}
|
|
482
482
|
async function listToolsInCategory(category, emitJson) {
|
|
483
|
-
const client = new (0,
|
|
483
|
+
const client = new (0, _chunkOIODIUICjs.DeeplineClient)();
|
|
484
484
|
const rawTools = await client.listTools({
|
|
485
485
|
categories: category,
|
|
486
486
|
compact: false
|
|
@@ -517,7 +517,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
517
517
|
}
|
|
518
518
|
]
|
|
519
519
|
};
|
|
520
|
-
|
|
520
|
+
_chunkWSKN3U4Ujs.printCommandEnvelope.call(void 0,
|
|
521
521
|
{
|
|
522
522
|
category,
|
|
523
523
|
total: rows.length,
|
|
@@ -530,7 +530,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
530
530
|
return 0;
|
|
531
531
|
}
|
|
532
532
|
async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
|
|
533
|
-
const client = new (0,
|
|
533
|
+
const client = new (0, _chunkOIODIUICjs.DeeplineClient)();
|
|
534
534
|
const items = (await client.listTools({
|
|
535
535
|
categories: requestedCategories.join(","),
|
|
536
536
|
compact
|
|
@@ -559,7 +559,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
|
|
|
559
559
|
]
|
|
560
560
|
};
|
|
561
561
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
562
|
-
|
|
562
|
+
_chunkWSKN3U4Ujs.printCommandEnvelope.call(void 0,
|
|
563
563
|
{
|
|
564
564
|
tools: outputItems,
|
|
565
565
|
count: outputItems.length,
|
|
@@ -578,13 +578,13 @@ async function listTools(category, options = {}) {
|
|
|
578
578
|
const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
|
|
579
579
|
const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
|
|
580
580
|
const compact = options.compact !== false;
|
|
581
|
-
const emitJson = options.json === true ||
|
|
581
|
+
const emitJson = options.json === true || _chunkWSKN3U4Ujs.shouldEmitJson.call(void 0, );
|
|
582
582
|
if (positional && flagCategories.length > 0) {
|
|
583
583
|
const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
|
|
584
584
|
if (!flagIsSameSingle) {
|
|
585
585
|
const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
|
|
586
586
|
if (emitJson) {
|
|
587
|
-
|
|
587
|
+
_chunkWSKN3U4Ujs.printJson.call(void 0, {
|
|
588
588
|
ok: false,
|
|
589
589
|
exitCode: 2,
|
|
590
590
|
code: "TOOL_LIST_CATEGORY_CONFLICT",
|
|
@@ -611,7 +611,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
611
611
|
console.error("Usage: deepline tools grep <query> [--json]");
|
|
612
612
|
return 1;
|
|
613
613
|
}
|
|
614
|
-
const client = new (0,
|
|
614
|
+
const client = new (0, _chunkOIODIUICjs.DeeplineClient)();
|
|
615
615
|
const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
|
|
616
616
|
const mode = _nullishCoalesce(options.mode, () => ( "all"));
|
|
617
617
|
const jsonOutput = options.json === true;
|
|
@@ -654,7 +654,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
654
654
|
query,
|
|
655
655
|
mode
|
|
656
656
|
}) : null;
|
|
657
|
-
|
|
657
|
+
_chunkWSKN3U4Ujs.printCommandEnvelope.call(void 0,
|
|
658
658
|
{
|
|
659
659
|
tools: outputTools,
|
|
660
660
|
count: outputTools.length,
|
|
@@ -672,7 +672,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
672
672
|
} : {},
|
|
673
673
|
commandTemplates: TOOL_COMMAND_TEMPLATES
|
|
674
674
|
},
|
|
675
|
-
{ json: options.json ||
|
|
675
|
+
{ json: options.json || _chunkWSKN3U4Ujs.shouldEmitJson.call(void 0, ) }
|
|
676
676
|
);
|
|
677
677
|
return 0;
|
|
678
678
|
}
|
|
@@ -790,7 +790,7 @@ Output:
|
|
|
790
790
|
"--credentials-file must contain a nonempty JSON object of string credential values."
|
|
791
791
|
);
|
|
792
792
|
}
|
|
793
|
-
const result = await new (0,
|
|
793
|
+
const result = await new (0, _chunkOIODIUICjs.DeeplineClient)().setIntegrationCredentials(
|
|
794
794
|
provider,
|
|
795
795
|
credentials
|
|
796
796
|
);
|
|
@@ -800,7 +800,7 @@ Output:
|
|
|
800
800
|
);
|
|
801
801
|
}
|
|
802
802
|
const confirmation = { provider, credential_saved: true };
|
|
803
|
-
if (
|
|
803
|
+
if (_chunkWSKN3U4Ujs.shouldEmitJson.call(void 0, options.json))
|
|
804
804
|
console.log(JSON.stringify(confirmation));
|
|
805
805
|
else
|
|
806
806
|
console.log(
|
|
@@ -840,7 +840,7 @@ Examples:
|
|
|
840
840
|
json: Boolean(options.json)
|
|
841
841
|
});
|
|
842
842
|
});
|
|
843
|
-
|
|
843
|
+
_chunkD5KFELCCjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
|
|
844
844
|
tools.command("grep <query>").description(
|
|
845
845
|
"Literal grep over tool ids, descriptions, categories, and input fields."
|
|
846
846
|
).addHelpText(
|
|
@@ -941,7 +941,7 @@ Examples:
|
|
|
941
941
|
process.exitCode = await narrowView();
|
|
942
942
|
return;
|
|
943
943
|
}
|
|
944
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
944
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-HSHMULQM.js")));
|
|
945
945
|
process.exitCode = await describeAnything(
|
|
946
946
|
toolId,
|
|
947
947
|
{
|
|
@@ -1027,7 +1027,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1027
1027
|
console.error("Usage: deepline tools describe <toolId> [--json]");
|
|
1028
1028
|
return 1;
|
|
1029
1029
|
}
|
|
1030
|
-
const client = new (0,
|
|
1030
|
+
const client = new (0, _chunkOIODIUICjs.DeeplineClient)();
|
|
1031
1031
|
let tool;
|
|
1032
1032
|
try {
|
|
1033
1033
|
tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
|
|
@@ -1081,7 +1081,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1081
1081
|
const lines = toolPricingOnlyLines(tool, toolId);
|
|
1082
1082
|
if (inferenceQuote)
|
|
1083
1083
|
lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
|
|
1084
|
-
|
|
1084
|
+
_chunkWSKN3U4Ujs.printCommandEnvelope.call(void 0,
|
|
1085
1085
|
{
|
|
1086
1086
|
toolId: String(tool.toolId || toolId),
|
|
1087
1087
|
cost: _chunkZM2YPJQJjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
@@ -1104,7 +1104,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1104
1104
|
void 0,
|
|
1105
1105
|
seedToolListScript
|
|
1106
1106
|
);
|
|
1107
|
-
|
|
1107
|
+
_chunkWSKN3U4Ujs.printCompactJson.call(void 0, {
|
|
1108
1108
|
toolId: contract.toolId,
|
|
1109
1109
|
...options.schemaOnly ? {
|
|
1110
1110
|
inputSchema: contract.inputSchema,
|
|
@@ -1127,7 +1127,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1127
1127
|
return 0;
|
|
1128
1128
|
}
|
|
1129
1129
|
if (options.contractJson) {
|
|
1130
|
-
|
|
1130
|
+
_chunkWSKN3U4Ujs.printCompactJson.call(void 0, {
|
|
1131
1131
|
..._chunk7DRPTGCKjs.toolContractJsonForDescribe.call(void 0,
|
|
1132
1132
|
tool,
|
|
1133
1133
|
toolId,
|
|
@@ -1141,7 +1141,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1141
1141
|
}
|
|
1142
1142
|
const emitJson = options.json === true;
|
|
1143
1143
|
if (emitJson) {
|
|
1144
|
-
|
|
1144
|
+
_chunkWSKN3U4Ujs.printCompactJson.call(void 0, {
|
|
1145
1145
|
..._chunk7DRPTGCKjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
|
|
1146
1146
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1147
1147
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -2002,7 +2002,7 @@ function parseExecuteOptions(toolId, options, output) {
|
|
|
2002
2002
|
outputFormat = normalizeOutputFormat(options.outputFormat);
|
|
2003
2003
|
}
|
|
2004
2004
|
if (options.idempotencyKey !== void 0) {
|
|
2005
|
-
|
|
2005
|
+
_chunkOIODIUICjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
|
|
2006
2006
|
}
|
|
2007
2007
|
if (options.recoveryTimeoutMs !== void 0) {
|
|
2008
2008
|
const parsed = Number(options.recoveryTimeoutMs);
|
|
@@ -2302,20 +2302,20 @@ function buildToolExecuteRowArtifactEnvelope(input) {
|
|
|
2302
2302
|
}
|
|
2303
2303
|
async function executeTool(toolId, options) {
|
|
2304
2304
|
const output = toolExecuteJsonOption(options.json);
|
|
2305
|
-
const wantsJson =
|
|
2305
|
+
const wantsJson = _chunkWSKN3U4Ujs.shouldEmitJson.call(void 0, output.requested) || (_nullishCoalesce(options.outputFormat, () => ( "auto"))).trim().toLowerCase() !== "csv";
|
|
2306
2306
|
let parsed;
|
|
2307
2307
|
try {
|
|
2308
2308
|
parsed = parseExecuteOptions(toolId, options, output);
|
|
2309
2309
|
} catch (error) {
|
|
2310
2310
|
if (wantsJson) {
|
|
2311
|
-
|
|
2311
|
+
_chunkWSKN3U4Ujs.printJsonError.call(void 0, error);
|
|
2312
2312
|
} else {
|
|
2313
2313
|
console.error(error instanceof Error ? error.message : String(error));
|
|
2314
2314
|
}
|
|
2315
2315
|
return error instanceof _chunk7P5AA3SNjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
|
|
2316
2316
|
}
|
|
2317
2317
|
const cliInvocationId = _nullishCoalesce(_chunkQJBJZVG6js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkQJBJZVG6js.beginToolExecuteCommand.call(void 0, )));
|
|
2318
|
-
const client = new (0,
|
|
2318
|
+
const client = new (0, _chunkOIODIUICjs.DeeplineClient)();
|
|
2319
2319
|
let metadata;
|
|
2320
2320
|
try {
|
|
2321
2321
|
metadata = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0,
|
|
@@ -2330,7 +2330,7 @@ async function executeTool(toolId, options) {
|
|
|
2330
2330
|
);
|
|
2331
2331
|
if (play) {
|
|
2332
2332
|
if (wantsJson) {
|
|
2333
|
-
|
|
2333
|
+
_chunkWSKN3U4Ujs.printJsonError.call(void 0,
|
|
2334
2334
|
new Error(playAliasToolErrorMessage(parsed.toolId, play))
|
|
2335
2335
|
);
|
|
2336
2336
|
} else {
|
|
@@ -2343,7 +2343,7 @@ async function executeTool(toolId, options) {
|
|
|
2343
2343
|
}
|
|
2344
2344
|
if (_chunk7DRPTGCKjs.isPlayLikeTool.call(void 0, metadata)) {
|
|
2345
2345
|
if (wantsJson) {
|
|
2346
|
-
|
|
2346
|
+
_chunkWSKN3U4Ujs.printJsonError.call(void 0,
|
|
2347
2347
|
new Error(
|
|
2348
2348
|
playLikeToolExecuteErrorMessage(
|
|
2349
2349
|
parsed.toolId,
|
|
@@ -2391,7 +2391,7 @@ async function executeTool(toolId, options) {
|
|
|
2391
2391
|
responseIntent,
|
|
2392
2392
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
2393
2393
|
...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
|
|
2394
|
-
searchRef:
|
|
2394
|
+
searchRef: _chunkD5KFELCCjs.recentSearchRef.call(void 0, ),
|
|
2395
2395
|
cliInvocationId,
|
|
2396
2396
|
onResponseReceived: _chunkZAAKSJASjs.recordApiResponse
|
|
2397
2397
|
}).catch((error) => {
|
|
@@ -2432,7 +2432,7 @@ async function executeTool(toolId, options) {
|
|
|
2432
2432
|
const executeExitCode = toolExecuteExitCode(baseEnvelope);
|
|
2433
2433
|
const delivered = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0, "output delivery", () => {
|
|
2434
2434
|
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
|
|
2435
|
-
|
|
2435
|
+
_chunkWSKN3U4Ujs.printCommandEnvelope.call(void 0, baseEnvelope, { json: true });
|
|
2436
2436
|
return true;
|
|
2437
2437
|
}
|
|
2438
2438
|
if (parsed.outputFormat === "json_file") {
|
|
@@ -2440,7 +2440,7 @@ async function executeTool(toolId, options) {
|
|
|
2440
2440
|
rawResponse,
|
|
2441
2441
|
`payload_${parsed.toolId}`
|
|
2442
2442
|
);
|
|
2443
|
-
|
|
2443
|
+
_chunkWSKN3U4Ujs.printCommandEnvelope.call(void 0,
|
|
2444
2444
|
{
|
|
2445
2445
|
...baseEnvelope,
|
|
2446
2446
|
local: {
|
|
@@ -2462,7 +2462,7 @@ async function executeTool(toolId, options) {
|
|
|
2462
2462
|
`${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
|
|
2463
2463
|
);
|
|
2464
2464
|
if (wantsJson) {
|
|
2465
|
-
|
|
2465
|
+
_chunkWSKN3U4Ujs.printJsonError.call(void 0, error);
|
|
2466
2466
|
} else {
|
|
2467
2467
|
console.error(error.message);
|
|
2468
2468
|
}
|
|
@@ -2473,7 +2473,7 @@ async function executeTool(toolId, options) {
|
|
|
2473
2473
|
rawResponse,
|
|
2474
2474
|
`payload_${parsed.toolId}`
|
|
2475
2475
|
);
|
|
2476
|
-
|
|
2476
|
+
_chunkWSKN3U4Ujs.printCommandEnvelope.call(void 0,
|
|
2477
2477
|
{
|
|
2478
2478
|
...baseEnvelope,
|
|
2479
2479
|
local: {
|
|
@@ -2484,7 +2484,7 @@ async function executeTool(toolId, options) {
|
|
|
2484
2484
|
);
|
|
2485
2485
|
return true;
|
|
2486
2486
|
}
|
|
2487
|
-
|
|
2487
|
+
_chunkWSKN3U4Ujs.printCommandEnvelope.call(void 0, baseEnvelope, { json: false });
|
|
2488
2488
|
return true;
|
|
2489
2489
|
}
|
|
2490
2490
|
const rowOutput = _chunkHGFFYVXNjs.projectRowOutput.call(void 0, listConversion);
|
|
@@ -2508,7 +2508,7 @@ async function executeTool(toolId, options) {
|
|
|
2508
2508
|
seededScript
|
|
2509
2509
|
});
|
|
2510
2510
|
if (parsed.outputFormat === "csv_file") {
|
|
2511
|
-
|
|
2511
|
+
_chunkWSKN3U4Ujs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: true });
|
|
2512
2512
|
return true;
|
|
2513
2513
|
}
|
|
2514
2514
|
if (parsed.outPath) {
|
|
@@ -2516,7 +2516,7 @@ async function executeTool(toolId, options) {
|
|
|
2516
2516
|
toolId: parsed.toolId,
|
|
2517
2517
|
idempotencyKey
|
|
2518
2518
|
});
|
|
2519
|
-
|
|
2519
|
+
_chunkWSKN3U4Ujs.printCommandEnvelope.call(void 0, materializedEnvelope, {
|
|
2520
2520
|
json: wantsJson,
|
|
2521
2521
|
text: `Wrote ${csv.rowCount} row(s) to ${csv.path}
|
|
2522
2522
|
inspect: ${inspection.inspect}
|
|
@@ -2525,7 +2525,7 @@ inspect: ${inspection.inspect}
|
|
|
2525
2525
|
return true;
|
|
2526
2526
|
}
|
|
2527
2527
|
if (parsed.noPreview) {
|
|
2528
|
-
|
|
2528
|
+
_chunkWSKN3U4Ujs.printCommandEnvelope.call(void 0,
|
|
2529
2529
|
{
|
|
2530
2530
|
...materializedEnvelope,
|
|
2531
2531
|
local: {
|
|
@@ -2538,7 +2538,7 @@ inspect: ${inspection.inspect}
|
|
|
2538
2538
|
);
|
|
2539
2539
|
return true;
|
|
2540
2540
|
}
|
|
2541
|
-
|
|
2541
|
+
_chunkWSKN3U4Ujs.printCommandEnvelope.call(void 0, materializedEnvelope, {
|
|
2542
2542
|
json: wantsJson && parsed.outputFormat !== "csv"
|
|
2543
2543
|
});
|
|
2544
2544
|
return true;
|