deepline 0.3.320 → 0.3.322
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 +23 -7
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +62 -0
- package/dist/bundling-sources/shared_libs/security/receipt-admission-token.ts +32 -0
- package/dist/cli/auth-MKFIE6KN.js +31 -0
- package/dist/cli/{auth-NYSK66KD.mjs → auth-VSXORUWX.mjs} +4 -4
- package/dist/cli/{billing-XYVBZJU5.mjs → billing-EH74RDBF.mjs} +4 -4
- package/dist/cli/{billing-ZBWBLIP7.js → billing-Q6WO5E2R.js} +70 -70
- package/dist/cli/{chunk-J4GZ6UGF.js → chunk-4F4XU2Z5.js} +6 -6
- package/dist/cli/{chunk-XBNAQNFP.js → chunk-5RPFAX7O.js} +6 -6
- package/dist/cli/{chunk-6YZISVBR.mjs → chunk-6JV2VSQN.mjs} +1 -1
- package/dist/cli/{chunk-VUARZ4ZE.mjs → chunk-6PE2VHSG.mjs} +6 -6
- package/dist/cli/{chunk-W5YKTQSP.mjs → chunk-A3THNBGB.mjs} +2 -2
- package/dist/cli/{chunk-RGOSOAIT.js → chunk-CMRWPMZS.js} +26 -26
- package/dist/cli/{chunk-3NEPTMWE.js → chunk-CNO37AI3.js} +220 -220
- package/dist/cli/{chunk-TRHCY3DR.js → chunk-GAFGAIVW.js} +60 -60
- package/dist/cli/{chunk-TETXFI7D.mjs → chunk-H52C7AHC.mjs} +4 -4
- package/dist/cli/{chunk-6A6T4G7T.mjs → chunk-I7UUOAZN.mjs} +1 -1
- package/dist/cli/{chunk-4HZUNBCY.js → chunk-JCZX5ZQW.js} +6 -6
- package/dist/cli/{chunk-37ONQE44.mjs → chunk-JWEYKLOV.mjs} +1 -1
- package/dist/cli/{chunk-3PTRR2TW.js → chunk-KAUABQOG.js} +15 -15
- package/dist/cli/{chunk-LCTFVXCB.js → chunk-KHRWZU6B.js} +50 -50
- package/dist/cli/{chunk-T6P6HH2G.mjs → chunk-LUAF3MIC.mjs} +1 -1
- package/dist/cli/{chunk-HSK7KXT5.mjs → chunk-LUTXK4ON.mjs} +5 -5
- package/dist/cli/{chunk-PYRNYGFW.js → chunk-M4TZIO5U.js} +2 -2
- package/dist/cli/{chunk-TSJMXXYQ.mjs → chunk-PMTJYMDJ.mjs} +3 -3
- package/dist/cli/{chunk-PIZ6SO36.js → chunk-PTOQKD2Y.js} +1 -1
- package/dist/cli/{chunk-PW66AZ2A.js → chunk-QXIPQYZZ.js} +6 -6
- package/dist/cli/{chunk-AX3TZAV5.mjs → chunk-SISYT2DM.mjs} +2 -2
- package/dist/cli/{chunk-RLTEXU3S.js → chunk-U6N6MS6N.js} +4 -4
- package/dist/cli/{chunk-Z5JM4OEH.mjs → chunk-WARD6DBW.mjs} +1 -1
- package/dist/cli/{chunk-QYZ4O7PR.js → chunk-Y3LPZJFE.js} +48 -48
- package/dist/cli/{chunk-ZU55LRWM.mjs → chunk-Z5TQC2ID.mjs} +2 -2
- package/dist/cli/{chunk-UMEP46YY.mjs → chunk-ZHIPP7YD.mjs} +1 -1
- package/dist/cli/client-NITVYMZK.js +20 -0
- package/dist/cli/{client-VTPKOO4Z.mjs → client-XRO4X5XF.mjs} +3 -3
- package/dist/cli/{csv-MJJEVKN5.mjs → csv-5B6JDXCN.mjs} +3 -3
- package/dist/cli/{csv-AQ7BK42T.js → csv-ALZ44QHM.js} +12 -12
- package/dist/cli/{db-MFYFYQMS.js → db-D6UHGVOU.js} +20 -20
- package/dist/cli/{db-VSLFUXRH.mjs → db-HJECAUNU.mjs} +4 -4
- package/dist/cli/{describe-EGCCLMIG.mjs → describe-FBAWTMDS.mjs} +8 -8
- package/dist/cli/{describe-PZXQHRZC.js → describe-YAN46NBC.js} +15 -15
- package/dist/cli/{executions-RDQRQOQA.mjs → executions-LWHMAUHH.mjs} +4 -4
- package/dist/cli/{executions-Z34FIL2V.js → executions-XSV7ZE4N.js} +6 -6
- package/dist/cli/{feedback-KCC6WF2Z.mjs → feedback-EPXMI55U.mjs} +3 -3
- package/dist/cli/{feedback-6JOSGSDK.js → feedback-RKT6F6W6.js} +6 -6
- package/dist/cli/git-B3L74RFF.js +23 -0
- package/dist/cli/{git-DZFULAET.mjs → git-BOXANJBI.mjs} +4 -4
- package/dist/cli/index.js +75 -75
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-7J4EK3K5.js → legacy-noops-7EBEYUQZ.js} +7 -7
- package/dist/cli/{legacy-noops-FJU7A3FQ.mjs → legacy-noops-VV7DRGA7.mjs} +4 -4
- package/dist/cli/{monitors-BGITITUE.mjs → monitors-NJPHRFYT.mjs} +4 -4
- package/dist/cli/{monitors-MJA6SOAO.js → monitors-RDRG3E4Y.js} +85 -85
- package/dist/cli/{org-AXLMRMVO.mjs → org-USE3QRY6.mjs} +4 -4
- package/dist/cli/{org-FSQSD4PN.js → org-ZFWDBQ7R.js} +60 -60
- package/dist/cli/{play-C2CW2RIA.mjs → play-3VEIZZJ5.mjs} +7 -7
- package/dist/cli/play-EONETVYE.js +152 -0
- package/dist/cli/{providers-KJVUG5C7.mjs → providers-PP4L5HLM.mjs} +4 -4
- package/dist/cli/{providers-5QU7XHEC.js → providers-SXWPIPKO.js} +7 -7
- package/dist/cli/{quickstart-4544CITN.mjs → quickstart-QCSPS2D5.mjs} +3 -3
- package/dist/cli/{quickstart-QSN4CEN5.js → quickstart-WVLEQQXO.js} +5 -5
- package/dist/cli/{search-BBZ3PAH3.mjs → search-LTC6R6IS.mjs} +5 -5
- package/dist/cli/search-XK2KJXQG.js +26 -0
- package/dist/cli/{secrets-ULXLPXCV.mjs → secrets-LV4FJNAL.mjs} +4 -4
- package/dist/cli/{secrets-TDVMAWYN.js → secrets-R5FGK6UC.js} +13 -13
- package/dist/cli/{sessions-PGYBZWYC.mjs → sessions-CFNRSRYX.mjs} +4 -4
- package/dist/cli/{sessions-5VDQB2L7.js → sessions-N6CMP6XZ.js} +5 -5
- package/dist/cli/{settings-Q2WUSTBE.mjs → settings-ADEYLHV7.mjs} +7 -7
- package/dist/cli/{settings-CPVJ6CAJ.js → settings-RNEJQGBL.js} +74 -74
- package/dist/cli/{setup-S5HRTXGS.js → setup-NJCUXN4H.js} +41 -41
- package/dist/cli/{setup-GSP4CRQI.mjs → setup-YLEOL7E7.mjs} +6 -6
- package/dist/cli/skills-VNAPDBFA.js +28 -0
- package/dist/cli/{skills-YTO4QBNQ.mjs → skills-WABXOGDA.mjs} +4 -4
- package/dist/cli/tools-XF5EQO4O.js +38 -0
- package/dist/cli/{tools-SLP5JY6Y.mjs → tools-XQCGEX5J.mjs} +6 -6
- package/dist/cli/update-3TQMEJO5.js +28 -0
- package/dist/cli/{update-WFKVOWE2.mjs → update-3W2NBTST.mjs} +6 -6
- package/dist/cli/{workflow-VT5MZAE4.mjs → workflow-GKFGFQ4D.mjs} +5 -5
- package/dist/cli/{workflow-6CNJLEXB.js → workflow-NUVM7LQR.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +74 -74
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/viewer/viewer.js +20 -3
- package/package.json +1 -1
- package/dist/cli/auth-4G7N6GA3.js +0 -31
- package/dist/cli/client-SH53CVTP.js +0 -20
- package/dist/cli/git-T657HSFR.js +0 -23
- package/dist/cli/play-ANDR7I7L.js +0 -152
- package/dist/cli/search-W7S7BRKC.js +0 -26
- package/dist/cli/skills-PO3LZZP4.js +0 -28
- package/dist/cli/tools-IRJOZZOP.js +0 -38
- package/dist/cli/update-UD7ABWPP.js +0 -28
|
@@ -7,7 +7,7 @@ var _chunkXNL3SEMCjs = require('./chunk-XNL3SEMC.js');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkQXIPQYZZjs = require('./chunk-QXIPQYZZ.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -18,7 +18,7 @@ var _chunkPW66AZ2Ajs = require('./chunk-PW66AZ2A.js');
|
|
|
18
18
|
var _chunkNXDRDJ4Kjs = require('./chunk-NXDRDJ4K.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunk5RPFAX7Ojs = require('./chunk-5RPFAX7O.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -33,11 +33,11 @@ var _chunkQJBJZVG6js = require('./chunk-QJBJZVG6.js');
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunk4F4XU2Z5js = require('./chunk-4F4XU2Z5.js');
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunkU6N6MS6Njs = require('./chunk-U6N6MS6N.js');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -82,10 +82,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
|
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
84
|
function pendingToolExecutionPath(input) {
|
|
85
|
-
const config =
|
|
85
|
+
const config = _chunkU6N6MS6Njs.resolveConfig.call(void 0, );
|
|
86
86
|
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(_chunkNXDRDJ4Kjs.stableStringify.call(void 0, input.params)).update("\0").update(input.responseIntent).digest("hex");
|
|
87
87
|
return _path.join.call(void 0,
|
|
88
|
-
|
|
88
|
+
_chunkU6N6MS6Njs.sdkCliStateDirPath.call(void 0, config.baseUrl),
|
|
89
89
|
`pending-tool-execution-${fingerprint}.json`
|
|
90
90
|
);
|
|
91
91
|
}
|
|
@@ -517,12 +517,12 @@ function categoryEnumerationRender(summaries) {
|
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
519
|
async function listToolCategories(emitJson, compact) {
|
|
520
|
-
const client = new (0,
|
|
520
|
+
const client = new (0, _chunk5RPFAX7Ojs.DeeplineClient)();
|
|
521
521
|
const rawTools = await client.listTools({ compact });
|
|
522
522
|
const items = rawTools.map(toListedTool);
|
|
523
523
|
const summaries = aggregateCategorySummaries(rawTools);
|
|
524
524
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
525
|
-
|
|
525
|
+
_chunk4F4XU2Z5js.printCommandEnvelope.call(void 0,
|
|
526
526
|
{
|
|
527
527
|
tools: outputItems,
|
|
528
528
|
count: outputItems.length,
|
|
@@ -541,7 +541,7 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
541
541
|
const known = summaries.map((item) => item.name);
|
|
542
542
|
const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
|
|
543
543
|
if (emitJson) {
|
|
544
|
-
|
|
544
|
+
_chunk4F4XU2Z5js.printJson.call(void 0, {
|
|
545
545
|
ok: false,
|
|
546
546
|
exitCode: 4,
|
|
547
547
|
code: "TOOL_CATEGORY_NOT_FOUND",
|
|
@@ -555,13 +555,13 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
555
555
|
const render = categoryEnumerationRender(summaries);
|
|
556
556
|
console.error(message);
|
|
557
557
|
console.error("");
|
|
558
|
-
console.error(
|
|
558
|
+
console.error(_chunk4F4XU2Z5js.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
|
|
559
559
|
console.error("");
|
|
560
560
|
console.error(`Valid categories: ${known.join(", ")}`);
|
|
561
561
|
return 4;
|
|
562
562
|
}
|
|
563
563
|
async function listToolsInCategory(category, emitJson) {
|
|
564
|
-
const client = new (0,
|
|
564
|
+
const client = new (0, _chunk5RPFAX7Ojs.DeeplineClient)();
|
|
565
565
|
const rawTools = await client.listTools({
|
|
566
566
|
categories: category,
|
|
567
567
|
compact: false
|
|
@@ -598,7 +598,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
598
598
|
}
|
|
599
599
|
]
|
|
600
600
|
};
|
|
601
|
-
|
|
601
|
+
_chunk4F4XU2Z5js.printCommandEnvelope.call(void 0,
|
|
602
602
|
{
|
|
603
603
|
category,
|
|
604
604
|
total: rows.length,
|
|
@@ -611,7 +611,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
611
611
|
return 0;
|
|
612
612
|
}
|
|
613
613
|
async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
|
|
614
|
-
const client = new (0,
|
|
614
|
+
const client = new (0, _chunk5RPFAX7Ojs.DeeplineClient)();
|
|
615
615
|
const items = (await client.listTools({
|
|
616
616
|
categories: requestedCategories.join(","),
|
|
617
617
|
compact
|
|
@@ -640,7 +640,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
|
|
|
640
640
|
]
|
|
641
641
|
};
|
|
642
642
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
643
|
-
|
|
643
|
+
_chunk4F4XU2Z5js.printCommandEnvelope.call(void 0,
|
|
644
644
|
{
|
|
645
645
|
tools: outputItems,
|
|
646
646
|
count: outputItems.length,
|
|
@@ -659,13 +659,13 @@ async function listTools(category, options = {}) {
|
|
|
659
659
|
const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]), () => ( ""));
|
|
660
660
|
const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
|
|
661
661
|
const compact = options.compact !== false;
|
|
662
|
-
const emitJson = options.json === true ||
|
|
662
|
+
const emitJson = options.json === true || _chunk4F4XU2Z5js.shouldEmitJson.call(void 0, );
|
|
663
663
|
if (positional && flagCategories.length > 0) {
|
|
664
664
|
const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
|
|
665
665
|
if (!flagIsSameSingle) {
|
|
666
666
|
const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
|
|
667
667
|
if (emitJson) {
|
|
668
|
-
|
|
668
|
+
_chunk4F4XU2Z5js.printJson.call(void 0, {
|
|
669
669
|
ok: false,
|
|
670
670
|
exitCode: 2,
|
|
671
671
|
code: "TOOL_LIST_CATEGORY_CONFLICT",
|
|
@@ -692,7 +692,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
692
692
|
console.error("Usage: deepline tools grep <query> [--json]");
|
|
693
693
|
return 1;
|
|
694
694
|
}
|
|
695
|
-
const client = new (0,
|
|
695
|
+
const client = new (0, _chunk5RPFAX7Ojs.DeeplineClient)();
|
|
696
696
|
const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
|
|
697
697
|
const mode = _nullishCoalesce(options.mode, () => ( "all"));
|
|
698
698
|
const jsonOutput = options.json === true;
|
|
@@ -735,7 +735,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
735
735
|
query,
|
|
736
736
|
mode
|
|
737
737
|
}) : null;
|
|
738
|
-
|
|
738
|
+
_chunk4F4XU2Z5js.printCommandEnvelope.call(void 0,
|
|
739
739
|
{
|
|
740
740
|
tools: outputTools,
|
|
741
741
|
count: outputTools.length,
|
|
@@ -753,7 +753,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
753
753
|
} : {},
|
|
754
754
|
commandTemplates: TOOL_COMMAND_TEMPLATES
|
|
755
755
|
},
|
|
756
|
-
{ json: options.json ||
|
|
756
|
+
{ json: options.json || _chunk4F4XU2Z5js.shouldEmitJson.call(void 0, ) }
|
|
757
757
|
);
|
|
758
758
|
return 0;
|
|
759
759
|
}
|
|
@@ -909,7 +909,7 @@ Examples:
|
|
|
909
909
|
json: Boolean(options.json)
|
|
910
910
|
});
|
|
911
911
|
});
|
|
912
|
-
|
|
912
|
+
_chunkQXIPQYZZjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
|
|
913
913
|
tools.command("grep <query>").description(
|
|
914
914
|
"Literal grep over tool ids, descriptions, categories, and input fields."
|
|
915
915
|
).addHelpText(
|
|
@@ -1010,7 +1010,7 @@ Examples:
|
|
|
1010
1010
|
process.exitCode = await narrowView();
|
|
1011
1011
|
return;
|
|
1012
1012
|
}
|
|
1013
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
1013
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-YAN46NBC.js")));
|
|
1014
1014
|
process.exitCode = await describeAnything(
|
|
1015
1015
|
toolId,
|
|
1016
1016
|
{ ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
|
|
@@ -1107,7 +1107,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1107
1107
|
console.error("Usage: deepline tools describe <toolId> [--json]");
|
|
1108
1108
|
return 1;
|
|
1109
1109
|
}
|
|
1110
|
-
const client = new (0,
|
|
1110
|
+
const client = new (0, _chunk5RPFAX7Ojs.DeeplineClient)();
|
|
1111
1111
|
let tool;
|
|
1112
1112
|
try {
|
|
1113
1113
|
tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
|
|
@@ -1161,7 +1161,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1161
1161
|
const lines = toolPricingOnlyLines(tool, toolId);
|
|
1162
1162
|
if (inferenceQuote)
|
|
1163
1163
|
lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
|
|
1164
|
-
|
|
1164
|
+
_chunk4F4XU2Z5js.printCommandEnvelope.call(void 0,
|
|
1165
1165
|
{
|
|
1166
1166
|
toolId: String(tool.toolId || toolId),
|
|
1167
1167
|
cost: Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
@@ -1179,7 +1179,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1179
1179
|
}
|
|
1180
1180
|
if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !isMonitorTypeTool(tool) && !isPlayLikeTool(tool) && (options.json || options.contractJson)) {
|
|
1181
1181
|
const contract = toolContractJsonForDescribe(tool, toolId);
|
|
1182
|
-
|
|
1182
|
+
_chunk4F4XU2Z5js.printCompactJson.call(void 0, {
|
|
1183
1183
|
toolId: contract.toolId,
|
|
1184
1184
|
...options.schemaOnly ? {
|
|
1185
1185
|
inputSchema: contract.inputSchema,
|
|
@@ -1202,7 +1202,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1202
1202
|
return 0;
|
|
1203
1203
|
}
|
|
1204
1204
|
if (options.contractJson) {
|
|
1205
|
-
|
|
1205
|
+
_chunk4F4XU2Z5js.printCompactJson.call(void 0, {
|
|
1206
1206
|
...toolContractJsonForDescribe(tool, toolId),
|
|
1207
1207
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1208
1208
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -1211,7 +1211,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1211
1211
|
}
|
|
1212
1212
|
const emitJson = options.json === true;
|
|
1213
1213
|
if (emitJson) {
|
|
1214
|
-
|
|
1214
|
+
_chunk4F4XU2Z5js.printCompactJson.call(void 0, {
|
|
1215
1215
|
...toolMetadataJsonForDescribe(tool, toolId),
|
|
1216
1216
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1217
1217
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -1242,8 +1242,8 @@ ${formatModelDescription(modelDescription)}`);
|
|
|
1242
1242
|
if (inferenceQuote) printInferenceQuoteSummary(inferenceQuote);
|
|
1243
1243
|
return 0;
|
|
1244
1244
|
}
|
|
1245
|
-
if (
|
|
1246
|
-
|
|
1245
|
+
if (_chunk4F4XU2Z5js.shouldEmitJson.call(void 0, )) {
|
|
1246
|
+
_chunk4F4XU2Z5js.printCompactJson.call(void 0, {
|
|
1247
1247
|
...toolContractJsonForDescribe(tool, toolId),
|
|
1248
1248
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1249
1249
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -2915,15 +2915,15 @@ async function executeTool(args) {
|
|
|
2915
2915
|
try {
|
|
2916
2916
|
parsed = parseExecuteOptions(args);
|
|
2917
2917
|
} catch (error) {
|
|
2918
|
-
if (
|
|
2919
|
-
|
|
2918
|
+
if (_chunk4F4XU2Z5js.argsWantJson.call(void 0, args)) {
|
|
2919
|
+
_chunk4F4XU2Z5js.printJsonError.call(void 0, error);
|
|
2920
2920
|
} else {
|
|
2921
2921
|
console.error(error instanceof Error ? error.message : String(error));
|
|
2922
2922
|
}
|
|
2923
2923
|
return 1;
|
|
2924
2924
|
}
|
|
2925
2925
|
const cliInvocationId = _nullishCoalesce(_chunkQJBJZVG6js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkQJBJZVG6js.beginToolExecuteCommand.call(void 0, )));
|
|
2926
|
-
const client = new (0,
|
|
2926
|
+
const client = new (0, _chunk5RPFAX7Ojs.DeeplineClient)();
|
|
2927
2927
|
let metadata;
|
|
2928
2928
|
try {
|
|
2929
2929
|
metadata = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0,
|
|
@@ -2937,8 +2937,8 @@ async function executeTool(args) {
|
|
|
2937
2937
|
() => findPlayForToolId(client, parsed.toolId, cliInvocationId)
|
|
2938
2938
|
);
|
|
2939
2939
|
if (play) {
|
|
2940
|
-
if (
|
|
2941
|
-
|
|
2940
|
+
if (_chunk4F4XU2Z5js.argsWantJson.call(void 0, args)) {
|
|
2941
|
+
_chunk4F4XU2Z5js.printJsonError.call(void 0,
|
|
2942
2942
|
new Error(playAliasToolErrorMessage(parsed.toolId, play))
|
|
2943
2943
|
);
|
|
2944
2944
|
} else {
|
|
@@ -2950,8 +2950,8 @@ async function executeTool(args) {
|
|
|
2950
2950
|
throw error;
|
|
2951
2951
|
}
|
|
2952
2952
|
if (isPlayLikeTool(metadata)) {
|
|
2953
|
-
if (
|
|
2954
|
-
|
|
2953
|
+
if (_chunk4F4XU2Z5js.argsWantJson.call(void 0, args)) {
|
|
2954
|
+
_chunk4F4XU2Z5js.printJsonError.call(void 0,
|
|
2955
2955
|
new Error(
|
|
2956
2956
|
playLikeToolExecuteErrorMessage(
|
|
2957
2957
|
parsed.toolId,
|
|
@@ -2987,7 +2987,7 @@ async function executeTool(args) {
|
|
|
2987
2987
|
responseIntent,
|
|
2988
2988
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
2989
2989
|
...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
|
|
2990
|
-
searchRef:
|
|
2990
|
+
searchRef: _chunkQXIPQYZZjs.recentSearchRef.call(void 0, ),
|
|
2991
2991
|
cliInvocationId
|
|
2992
2992
|
}).catch((error) => {
|
|
2993
2993
|
const guidanceLines = toolGuidanceLines(metadata.guidance);
|
|
@@ -3026,8 +3026,8 @@ async function executeTool(args) {
|
|
|
3026
3026
|
);
|
|
3027
3027
|
const executeExitCode = toolExecuteExitCode(baseEnvelope);
|
|
3028
3028
|
const delivered = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0, "output delivery", () => {
|
|
3029
|
-
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" &&
|
|
3030
|
-
|
|
3029
|
+
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && _chunk4F4XU2Z5js.shouldEmitJson.call(void 0, ))) {
|
|
3030
|
+
_chunk4F4XU2Z5js.printCommandEnvelope.call(void 0, baseEnvelope, { json: true });
|
|
3031
3031
|
return true;
|
|
3032
3032
|
}
|
|
3033
3033
|
if (parsed.outputFormat === "json_file") {
|
|
@@ -3035,7 +3035,7 @@ async function executeTool(args) {
|
|
|
3035
3035
|
rawResponse,
|
|
3036
3036
|
`payload_${parsed.toolId}`
|
|
3037
3037
|
);
|
|
3038
|
-
|
|
3038
|
+
_chunk4F4XU2Z5js.printCommandEnvelope.call(void 0,
|
|
3039
3039
|
{
|
|
3040
3040
|
...baseEnvelope,
|
|
3041
3041
|
local: {
|
|
@@ -3052,8 +3052,8 @@ async function executeTool(args) {
|
|
|
3052
3052
|
const error = new Error(
|
|
3053
3053
|
`${parsed.toolId} did not expose row-shaped output to write as CSV. Re-run with --json to inspect the raw tool response.`
|
|
3054
3054
|
);
|
|
3055
|
-
if (
|
|
3056
|
-
|
|
3055
|
+
if (_chunk4F4XU2Z5js.argsWantJson.call(void 0, args)) {
|
|
3056
|
+
_chunk4F4XU2Z5js.printJsonError.call(void 0, error);
|
|
3057
3057
|
} else {
|
|
3058
3058
|
console.error(error.message);
|
|
3059
3059
|
}
|
|
@@ -3064,18 +3064,18 @@ async function executeTool(args) {
|
|
|
3064
3064
|
rawResponse,
|
|
3065
3065
|
`payload_${parsed.toolId}`
|
|
3066
3066
|
);
|
|
3067
|
-
|
|
3067
|
+
_chunk4F4XU2Z5js.printCommandEnvelope.call(void 0,
|
|
3068
3068
|
{
|
|
3069
3069
|
...baseEnvelope,
|
|
3070
3070
|
local: {
|
|
3071
3071
|
payload_file: jsonPath
|
|
3072
3072
|
}
|
|
3073
3073
|
},
|
|
3074
|
-
{ json: parsed.outputFormat === "csv_file" ||
|
|
3074
|
+
{ json: parsed.outputFormat === "csv_file" || _chunk4F4XU2Z5js.shouldEmitJson.call(void 0, ) }
|
|
3075
3075
|
);
|
|
3076
3076
|
return true;
|
|
3077
3077
|
}
|
|
3078
|
-
|
|
3078
|
+
_chunk4F4XU2Z5js.printCommandEnvelope.call(void 0, baseEnvelope, { json: false });
|
|
3079
3079
|
return true;
|
|
3080
3080
|
}
|
|
3081
3081
|
const rowOutput = _chunkNXDRDJ4Kjs.projectRowOutput.call(void 0, listConversion);
|
|
@@ -3097,19 +3097,19 @@ async function executeTool(args) {
|
|
|
3097
3097
|
seededScript
|
|
3098
3098
|
});
|
|
3099
3099
|
if (parsed.outputFormat === "csv_file") {
|
|
3100
|
-
|
|
3100
|
+
_chunk4F4XU2Z5js.printCommandEnvelope.call(void 0, materializedEnvelope, { json: true });
|
|
3101
3101
|
return true;
|
|
3102
3102
|
}
|
|
3103
3103
|
if (parsed.outPath) {
|
|
3104
|
-
|
|
3105
|
-
json:
|
|
3104
|
+
_chunk4F4XU2Z5js.printCommandEnvelope.call(void 0, materializedEnvelope, {
|
|
3105
|
+
json: _chunk4F4XU2Z5js.argsWantJson.call(void 0, args) || _chunk4F4XU2Z5js.shouldEmitJson.call(void 0, ),
|
|
3106
3106
|
text: `Wrote ${csv.rowCount} row(s) to ${csv.path}
|
|
3107
3107
|
`
|
|
3108
3108
|
});
|
|
3109
3109
|
return true;
|
|
3110
3110
|
}
|
|
3111
3111
|
if (parsed.noPreview) {
|
|
3112
|
-
|
|
3112
|
+
_chunk4F4XU2Z5js.printCommandEnvelope.call(void 0,
|
|
3113
3113
|
{
|
|
3114
3114
|
...materializedEnvelope,
|
|
3115
3115
|
local: {
|
|
@@ -3117,12 +3117,12 @@ async function executeTool(args) {
|
|
|
3117
3117
|
output_path: csv.path
|
|
3118
3118
|
}
|
|
3119
3119
|
},
|
|
3120
|
-
{ json:
|
|
3120
|
+
{ json: _chunk4F4XU2Z5js.shouldEmitJson.call(void 0, ), text: `${csv.path}
|
|
3121
3121
|
` }
|
|
3122
3122
|
);
|
|
3123
3123
|
return true;
|
|
3124
3124
|
}
|
|
3125
|
-
|
|
3125
|
+
_chunk4F4XU2Z5js.printCommandEnvelope.call(void 0, materializedEnvelope, { json: false });
|
|
3126
3126
|
return true;
|
|
3127
3127
|
});
|
|
3128
3128
|
if (delivered) {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
recentSearchRef,
|
|
9
9
|
registerDeprecatedSearchCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PMTJYMDJ.mjs";
|
|
11
11
|
import {
|
|
12
12
|
extractSummaryFields,
|
|
13
13
|
projectRowOutput,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-MIMASXO4.mjs";
|
|
19
19
|
import {
|
|
20
20
|
DeeplineClient
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-JWEYKLOV.mjs";
|
|
22
22
|
import {
|
|
23
23
|
beginToolExecuteCommand,
|
|
24
24
|
getToolExecuteInvocationId,
|
|
@@ -33,11 +33,11 @@ import {
|
|
|
33
33
|
printJsonError,
|
|
34
34
|
renderCommandEnvelopeText,
|
|
35
35
|
shouldEmitJson
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-ZHIPP7YD.mjs";
|
|
37
37
|
import {
|
|
38
38
|
resolveConfig,
|
|
39
39
|
sdkCliStateDirPath
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-WARD6DBW.mjs";
|
|
41
41
|
import {
|
|
42
42
|
DeeplineError
|
|
43
43
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -1010,7 +1010,7 @@ Examples:
|
|
|
1010
1010
|
process.exitCode = await narrowView();
|
|
1011
1011
|
return;
|
|
1012
1012
|
}
|
|
1013
|
-
const { describeAnything } = await import("./describe-
|
|
1013
|
+
const { describeAnything } = await import("./describe-FBAWTMDS.mjs");
|
|
1014
1014
|
process.exitCode = await describeAnything(
|
|
1015
1015
|
toolId,
|
|
1016
1016
|
{ ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkGAFGAIVWjs = require('./chunk-GAFGAIVW.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/npm-script-policy.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
|
|
|
13
13
|
}
|
|
14
14
|
function readNpmVersion(env) {
|
|
15
15
|
try {
|
|
16
|
-
const plan =
|
|
16
|
+
const plan = _chunkGAFGAIVWjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JWEYKLOV.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZHIPP7YD.mjs";
|
|
7
7
|
import {
|
|
8
8
|
resolveConfig,
|
|
9
9
|
sdkCliStateDirPath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WARD6DBW.mjs";
|
|
11
11
|
|
|
12
12
|
// src/cli/search-ref.ts
|
|
13
13
|
import { mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.322",
|
|
53
53
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
54
54
|
packageCapabilities: {
|
|
55
55
|
updatePreferences: 1
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk5RPFAX7Ojs = require('./chunk-5RPFAX7O.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk4F4XU2Z5js = require('./chunk-4F4XU2Z5.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkU6N6MS6Njs = require('./chunk-U6N6MS6N.js');
|
|
11
11
|
|
|
12
12
|
// src/cli/search-ref.ts
|
|
13
13
|
var _fs = require('fs');
|
|
14
14
|
var _path = require('path');
|
|
15
15
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
16
16
|
function lastSearchPath() {
|
|
17
|
-
return _path.join.call(void 0,
|
|
17
|
+
return _path.join.call(void 0, _chunkU6N6MS6Njs.sdkCliStateDirPath.call(void 0, _chunkU6N6MS6Njs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
18
18
|
}
|
|
19
19
|
function rememberSearchRef(searchRef) {
|
|
20
20
|
try {
|
|
@@ -97,7 +97,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
97
97
|
console.error(USAGE);
|
|
98
98
|
return 1;
|
|
99
99
|
}
|
|
100
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
100
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunk5RPFAX7Ojs.DeeplineClient)().search({
|
|
101
101
|
query,
|
|
102
102
|
types,
|
|
103
103
|
exclude,
|
|
@@ -111,7 +111,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
111
111
|
});
|
|
112
112
|
if (searchRef) rememberSearchRef(searchRef);
|
|
113
113
|
pointAtDescribe(result);
|
|
114
|
-
|
|
114
|
+
_chunk4F4XU2Z5js.printCommandEnvelope.call(void 0, result, {
|
|
115
115
|
json: options.json === true
|
|
116
116
|
});
|
|
117
117
|
return 0;
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZHIPP7YD.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WARD6DBW.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkPTOQKD2Yjs = require('./chunk-PTOQKD2Y.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -721,9 +721,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
|
|
|
721
721
|
}
|
|
722
722
|
|
|
723
723
|
// src/version.ts
|
|
724
|
-
var SDK_VERSION =
|
|
725
|
-
var SDK_API_MAJOR =
|
|
726
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
724
|
+
var SDK_VERSION = _chunkPTOQKD2Yjs.SDK_RELEASE.version;
|
|
725
|
+
var SDK_API_MAJOR = _chunkPTOQKD2Yjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
726
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkPTOQKD2Yjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
727
727
|
|
|
728
728
|
// src/agent-runtime.ts
|
|
729
729
|
|