deepline 0.3.307 → 0.3.308
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/README.md +2 -1
- package/dist/bundling-sources/sdk/src/client.ts +270 -11
- package/dist/bundling-sources/sdk/src/compat.ts +27 -9
- package/dist/bundling-sources/sdk/src/index.ts +35 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/batch-runtime.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/batching-types.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +46 -16
- package/dist/bundling-sources/shared_libs/play-runtime/fullenrich-batching.ts +24 -1
- package/dist/bundling-sources/shared_libs/play-runtime/run-event-query.ts +872 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +595 -0
- package/dist/cli/auth-LWNR7TQB.js +31 -0
- package/dist/cli/{auth-AJPTFFC7.mjs → auth-ZWX4BF5K.mjs} +4 -4
- package/dist/cli/{billing-LPDYJLIL.mjs → billing-CLV5QRFQ.mjs} +4 -4
- package/dist/cli/{billing-SPBWUEOS.js → billing-H24FGAKE.js} +70 -70
- package/dist/cli/{chunk-O4OESDIN.mjs → chunk-3GIUCJAT.mjs} +1 -1
- package/dist/cli/{chunk-D55NIPGU.mjs → chunk-ABMGEW3C.mjs} +1 -1
- package/dist/cli/{chunk-RXYYANYP.mjs → chunk-ASWZTTKT.mjs} +13 -5
- package/dist/cli/{chunk-G4SSYZND.mjs → chunk-BPD7TR27.mjs} +1 -1
- package/dist/cli/{chunk-ZGICKTW7.mjs → chunk-CXU7ME5X.mjs} +2 -2
- package/dist/cli/{chunk-HWCB5MHF.js → chunk-GBFIAI4L.js} +68 -60
- package/dist/cli/{chunk-MZQP7CIL.js → chunk-GONK2N7U.js} +1 -1
- package/dist/cli/{chunk-TLTKAJ6S.mjs → chunk-HGI6RGHB.mjs} +653 -5
- package/dist/cli/{chunk-K2CQ2RBJ.js → chunk-IFIGQWHC.js} +6 -6
- package/dist/cli/{chunk-7ONALPWY.mjs → chunk-JUAVGRD7.mjs} +4 -4
- package/dist/cli/{chunk-GUIQWUCB.js → chunk-O7NNH76S.js} +6 -6
- package/dist/cli/{chunk-2IKIG333.js → chunk-QJBJZVG6.js} +15 -4
- package/dist/cli/{chunk-AKE6ZFIJ.js → chunk-QTCFSRGC.js} +4 -4
- package/dist/cli/{chunk-ZIF6JOOI.js → chunk-SRZ6XDX3.js} +26 -26
- package/dist/cli/{chunk-MPVXXDWH.mjs → chunk-T3P4NRZU.mjs} +1 -1
- package/dist/cli/{chunk-KCHBE2J3.js → chunk-TH3YBIJT.js} +852 -204
- package/dist/cli/{chunk-DF3XJ2V2.js → chunk-UGTYNMRX.js} +48 -48
- package/dist/cli/{chunk-76MFV3AC.js → chunk-WEZVPZPE.js} +2 -2
- package/dist/cli/{chunk-UABLQKTZ.mjs → chunk-WXLOW623.mjs} +11 -0
- package/dist/cli/{chunk-ILOCS73R.mjs → chunk-XFYVL7EM.mjs} +2 -2
- package/dist/cli/{chunk-BDFVIOLY.mjs → chunk-XSDL3NHZ.mjs} +3 -3
- package/dist/cli/{chunk-JNHXSZPB.js → chunk-YEJMVAD3.js} +6 -6
- package/dist/cli/{chunk-QACDLYNO.mjs → chunk-YSZSERRZ.mjs} +1 -1
- package/dist/cli/{chunk-IVXD2KA2.js → chunk-ZHHF24O5.js} +15 -15
- package/dist/cli/client-3J76AMVE.js +20 -0
- package/dist/cli/{client-7ZL4ROII.mjs → client-A5ILG5GT.mjs} +3 -3
- package/dist/cli/{csv-Y3LYCTGD.mjs → csv-NZ7KAYEF.mjs} +3 -3
- package/dist/cli/{csv-JUDFG7JV.js → csv-VSSAAXFX.js} +12 -12
- package/dist/cli/{db-5IXGEXNT.js → db-ICLEBSNO.js} +20 -20
- package/dist/cli/{db-GCOJD2BD.mjs → db-YSAJUBLD.mjs} +4 -4
- package/dist/cli/{executions-FIICTMSY.mjs → executions-MUJRAT5R.mjs} +4 -4
- package/dist/cli/{executions-LIEQKFT7.js → executions-XCAJB5TF.js} +6 -6
- package/dist/cli/{feedback-3OVAA3C7.mjs → feedback-6C7Y2SCJ.mjs} +3 -3
- package/dist/cli/{feedback-FAADYNAR.js → feedback-DBZMBHZG.js} +6 -6
- package/dist/cli/git-2NSE4WIK.js +23 -0
- package/dist/cli/{git-ESMYCYJO.mjs → git-EAH67ITA.mjs} +4 -4
- package/dist/cli/index.js +79 -77
- package/dist/cli/index.mjs +33 -31
- package/dist/cli/{legacy-noops-PKI3RFZW.js → legacy-noops-EJTOLTVO.js} +7 -7
- package/dist/cli/{legacy-noops-KP5CPZRK.mjs → legacy-noops-O5INQP6Q.mjs} +4 -4
- package/dist/cli/{monitors-KCFBLAFZ.js → monitors-5OYO2DPJ.js} +85 -85
- package/dist/cli/{monitors-A6KGGSBO.mjs → monitors-SBBBMUFY.mjs} +4 -4
- package/dist/cli/{org-WI6DEXZQ.js → org-SJRPJG42.js} +60 -60
- package/dist/cli/{org-DHI24UOK.mjs → org-Z7LTOL3H.mjs} +4 -4
- package/dist/cli/{play-2YXLQD24.mjs → play-2JTIEOZM.mjs} +472 -55
- package/dist/cli/{play-4EUUN76H.js → play-VQJ6ABZ2.js} +961 -544
- package/dist/cli/{providers-DWS3XIM6.js → providers-43MR5XOV.js} +7 -7
- package/dist/cli/{providers-2WZ6KHH2.mjs → providers-MX4CV2EH.mjs} +4 -4
- package/dist/cli/{quickstart-TDTDKM6F.js → quickstart-A6W3HEE2.js} +5 -5
- package/dist/cli/{quickstart-ZFZVG6UO.mjs → quickstart-Y4YLKRZ3.mjs} +3 -3
- package/dist/cli/{search-GMPXRQF4.js → search-AMUFSAFP.js} +6 -6
- package/dist/cli/{search-BBE2ZMCI.mjs → search-FRKDLJQG.mjs} +5 -5
- package/dist/cli/{secrets-JEJL3KIM.mjs → secrets-E4EX7O3J.mjs} +4 -4
- package/dist/cli/{secrets-SMBX4IE6.js → secrets-XITHKZW2.js} +13 -13
- package/dist/cli/{sessions-S6AWG747.js → sessions-6HJFDIR2.js} +5 -5
- package/dist/cli/{sessions-AVU353UT.mjs → sessions-6YXAUJII.mjs} +4 -4
- package/dist/cli/{settings-KBW4ROHC.js → settings-J5NRLCV2.js} +74 -74
- package/dist/cli/{settings-GY5CYRLF.mjs → settings-LBJSZIET.mjs} +7 -7
- package/dist/cli/{setup-WSVIDSEV.js → setup-2ES4CTO5.js} +41 -41
- package/dist/cli/{setup-4CW3XGGX.mjs → setup-75FENNVH.mjs} +6 -6
- package/dist/cli/skills-VLTAVA4K.js +28 -0
- package/dist/cli/{skills-U3NXFSFK.mjs → skills-XGZDUXW6.mjs} +4 -4
- package/dist/cli/{tools-XU6KLJZT.mjs → tools-2LEKXOGY.mjs} +58 -42
- package/dist/cli/{tools-KZKELW25.js → tools-ZOQOGDKI.js} +111 -95
- package/dist/cli/update-5CZOVYQT.js +28 -0
- package/dist/cli/{update-RZLH46DR.mjs → update-SNK3IN3I.mjs} +6 -6
- package/dist/cli/{workflow-ZQUKQI35.mjs → workflow-G7ZM3MAC.mjs} +5 -5
- package/dist/cli/{workflow-GDOGDGTZ.js → workflow-W3AYTB3J.js} +15 -15
- package/dist/{client-Dj8MAkDc.d.mts → client-DpnkGBn-.d.mts} +324 -11
- package/dist/{client-DsrFGXJf.d.ts → client-ypdBvf1o.d.ts} +324 -11
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -6
- package/dist/index.mjs +5 -3
- package/dist/install-integrity.json +73 -72
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-TUQTQIH4.js +0 -31
- package/dist/cli/client-S3MIFPM2.js +0 -20
- package/dist/cli/git-GG6LWE2R.js +0 -23
- package/dist/cli/skills-6AU3RRAD.js +0 -28
- package/dist/cli/update-LVXXQF4A.js +0 -28
|
@@ -1,7 +1,7 @@
|
|
|
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; }
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await 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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkO7NNH76Sjs = require('./chunk-O7NNH76S.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -12,14 +12,14 @@ var _chunkGUIQWUCBjs = require('./chunk-GUIQWUCB.js');
|
|
|
12
12
|
var _chunkNXDRDJ4Kjs = require('./chunk-NXDRDJ4K.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkTH3YBIJTjs = require('./chunk-TH3YBIJT.js');
|
|
16
16
|
require('./chunk-LA46MMTL.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var _chunk2IKIG333js = require('./chunk-2IKIG333.js');
|
|
22
21
|
|
|
22
|
+
var _chunkQJBJZVG6js = require('./chunk-QJBJZVG6.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
@@ -27,13 +27,14 @@ var _chunk2IKIG333js = require('./chunk-2IKIG333.js');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var _chunkJNHXSZPBjs = require('./chunk-JNHXSZPB.js');
|
|
31
30
|
|
|
31
|
+
var _chunkYEJMVAD3js = require('./chunk-YEJMVAD3.js');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
|
|
35
|
+
var _chunkQTCFSRGCjs = require('./chunk-QTCFSRGC.js');
|
|
35
36
|
require('./chunk-XNYIZMNQ.js');
|
|
36
|
-
require('./chunk-
|
|
37
|
+
require('./chunk-GONK2N7U.js');
|
|
37
38
|
require('./chunk-S6R3OX7B.js');
|
|
38
39
|
|
|
39
40
|
|
|
@@ -81,10 +82,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
|
|
|
81
82
|
}
|
|
82
83
|
};
|
|
83
84
|
function pendingToolExecutionPath(input) {
|
|
84
|
-
const config =
|
|
85
|
+
const config = _chunkQTCFSRGCjs.resolveConfig.call(void 0, );
|
|
85
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");
|
|
86
87
|
return _path.join.call(void 0,
|
|
87
|
-
|
|
88
|
+
_chunkQTCFSRGCjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
|
|
88
89
|
`pending-tool-execution-${fingerprint}.json`
|
|
89
90
|
);
|
|
90
91
|
}
|
|
@@ -516,12 +517,12 @@ function categoryEnumerationRender(summaries) {
|
|
|
516
517
|
};
|
|
517
518
|
}
|
|
518
519
|
async function listToolCategories(emitJson, compact) {
|
|
519
|
-
const client = new (0,
|
|
520
|
+
const client = new (0, _chunkTH3YBIJTjs.DeeplineClient)();
|
|
520
521
|
const rawTools = await client.listTools({ compact });
|
|
521
522
|
const items = rawTools.map(toListedTool);
|
|
522
523
|
const summaries = aggregateCategorySummaries(rawTools);
|
|
523
524
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
524
|
-
|
|
525
|
+
_chunkYEJMVAD3js.printCommandEnvelope.call(void 0,
|
|
525
526
|
{
|
|
526
527
|
tools: outputItems,
|
|
527
528
|
count: outputItems.length,
|
|
@@ -540,7 +541,7 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
540
541
|
const known = summaries.map((item) => item.name);
|
|
541
542
|
const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
|
|
542
543
|
if (emitJson) {
|
|
543
|
-
|
|
544
|
+
_chunkYEJMVAD3js.printJson.call(void 0, {
|
|
544
545
|
ok: false,
|
|
545
546
|
exitCode: 4,
|
|
546
547
|
code: "TOOL_CATEGORY_NOT_FOUND",
|
|
@@ -554,13 +555,13 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
554
555
|
const render = categoryEnumerationRender(summaries);
|
|
555
556
|
console.error(message);
|
|
556
557
|
console.error("");
|
|
557
|
-
console.error(
|
|
558
|
+
console.error(_chunkYEJMVAD3js.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
|
|
558
559
|
console.error("");
|
|
559
560
|
console.error(`Valid categories: ${known.join(", ")}`);
|
|
560
561
|
return 4;
|
|
561
562
|
}
|
|
562
563
|
async function listToolsInCategory(category, emitJson) {
|
|
563
|
-
const client = new (0,
|
|
564
|
+
const client = new (0, _chunkTH3YBIJTjs.DeeplineClient)();
|
|
564
565
|
const rawTools = await client.listTools({
|
|
565
566
|
categories: category,
|
|
566
567
|
compact: false
|
|
@@ -599,7 +600,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
599
600
|
}
|
|
600
601
|
]
|
|
601
602
|
};
|
|
602
|
-
|
|
603
|
+
_chunkYEJMVAD3js.printCommandEnvelope.call(void 0,
|
|
603
604
|
{
|
|
604
605
|
category,
|
|
605
606
|
total: rows.length,
|
|
@@ -612,7 +613,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
612
613
|
return 0;
|
|
613
614
|
}
|
|
614
615
|
async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
|
|
615
|
-
const client = new (0,
|
|
616
|
+
const client = new (0, _chunkTH3YBIJTjs.DeeplineClient)();
|
|
616
617
|
const items = (await client.listTools({
|
|
617
618
|
categories: requestedCategories.join(","),
|
|
618
619
|
compact
|
|
@@ -641,7 +642,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
|
|
|
641
642
|
]
|
|
642
643
|
};
|
|
643
644
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
644
|
-
|
|
645
|
+
_chunkYEJMVAD3js.printCommandEnvelope.call(void 0,
|
|
645
646
|
{
|
|
646
647
|
tools: outputItems,
|
|
647
648
|
count: outputItems.length,
|
|
@@ -660,13 +661,13 @@ async function listTools(category, options = {}) {
|
|
|
660
661
|
const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]), () => ( ""));
|
|
661
662
|
const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
|
|
662
663
|
const compact = options.compact !== false;
|
|
663
|
-
const emitJson = options.json === true ||
|
|
664
|
+
const emitJson = options.json === true || _chunkYEJMVAD3js.shouldEmitJson.call(void 0, );
|
|
664
665
|
if (positional && flagCategories.length > 0) {
|
|
665
666
|
const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
|
|
666
667
|
if (!flagIsSameSingle) {
|
|
667
668
|
const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
|
|
668
669
|
if (emitJson) {
|
|
669
|
-
|
|
670
|
+
_chunkYEJMVAD3js.printJson.call(void 0, {
|
|
670
671
|
ok: false,
|
|
671
672
|
exitCode: 2,
|
|
672
673
|
code: "TOOL_LIST_CATEGORY_CONFLICT",
|
|
@@ -693,7 +694,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
693
694
|
console.error("Usage: deepline tools grep <query> [--json]");
|
|
694
695
|
return 1;
|
|
695
696
|
}
|
|
696
|
-
const client = new (0,
|
|
697
|
+
const client = new (0, _chunkTH3YBIJTjs.DeeplineClient)();
|
|
697
698
|
const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
|
|
698
699
|
const mode = _nullishCoalesce(options.mode, () => ( "all"));
|
|
699
700
|
const jsonOutput = options.json === true;
|
|
@@ -736,7 +737,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
736
737
|
query,
|
|
737
738
|
mode
|
|
738
739
|
}) : null;
|
|
739
|
-
|
|
740
|
+
_chunkYEJMVAD3js.printCommandEnvelope.call(void 0,
|
|
740
741
|
{
|
|
741
742
|
tools: outputTools,
|
|
742
743
|
count: outputTools.length,
|
|
@@ -754,7 +755,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
754
755
|
} : {},
|
|
755
756
|
commandTemplates: TOOL_COMMAND_TEMPLATES
|
|
756
757
|
},
|
|
757
|
-
{ json: options.json ||
|
|
758
|
+
{ json: options.json || _chunkYEJMVAD3js.shouldEmitJson.call(void 0, ) }
|
|
758
759
|
);
|
|
759
760
|
return 0;
|
|
760
761
|
}
|
|
@@ -902,7 +903,7 @@ Examples:
|
|
|
902
903
|
json: Boolean(options.json)
|
|
903
904
|
});
|
|
904
905
|
});
|
|
905
|
-
|
|
906
|
+
_chunkO7NNH76Sjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
|
|
906
907
|
tools.command("grep <query>").description(
|
|
907
908
|
"Literal grep over tool ids, descriptions, categories, and input fields."
|
|
908
909
|
).addHelpText(
|
|
@@ -931,9 +932,17 @@ Examples:
|
|
|
931
932
|
mode
|
|
932
933
|
});
|
|
933
934
|
});
|
|
934
|
-
const addToolMetadataCommand = (command) =>
|
|
935
|
-
|
|
936
|
-
|
|
935
|
+
const addToolMetadataCommand = (command) => {
|
|
936
|
+
let compatibilityMetadata;
|
|
937
|
+
_chunkQJBJZVG6js.registerCompatibilityCatalog.call(void 0, command, () => ({
|
|
938
|
+
toolId: command.args[0],
|
|
939
|
+
acceptMetadata: (metadata) => {
|
|
940
|
+
compatibilityMetadata = metadata;
|
|
941
|
+
}
|
|
942
|
+
}));
|
|
943
|
+
return command.description("Show metadata for a tool.").addHelpText(
|
|
944
|
+
"after",
|
|
945
|
+
`
|
|
937
946
|
Notes:
|
|
938
947
|
Shows the compact agent contract by default: what the tool does, cost,
|
|
939
948
|
required inputs, play getters, input and full Deepline response examples,
|
|
@@ -954,38 +963,45 @@ Examples:
|
|
|
954
963
|
deepline tools describe ai_evaluate --estimate-payload @payload.json --json
|
|
955
964
|
deepline tools execute hunter_email_verifier --input '{"email":"a@b.com"}'
|
|
956
965
|
`
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
966
|
+
).option("--json", "Emit JSON output. Also automatic when stdout is piped").option(
|
|
967
|
+
"--model <model>",
|
|
968
|
+
"For language tools, include AI Gateway metadata; for ai_evaluate, set the quote payload model"
|
|
969
|
+
).option(
|
|
970
|
+
"--estimate-payload <payload>",
|
|
971
|
+
"Quote an ai_evaluate, ai_inference, or deeplineagent JSON payload (inline or @file)"
|
|
972
|
+
).option("--pricing-only", "Only print pricing and billing semantics").option("--schema-only", "Only print input schema fields").option(
|
|
973
|
+
"--examples-only",
|
|
974
|
+
"Only print input payload and full Deepline execution response examples"
|
|
975
|
+
).option("--getters-only", "Only print extracted list/value getters").addOption(
|
|
976
|
+
new (0, _commander.Option)(
|
|
977
|
+
"--compact",
|
|
978
|
+
"Compatibility alias for the default compact view"
|
|
979
|
+
).hideHelp()
|
|
980
|
+
).addOption(
|
|
981
|
+
new (0, _commander.Option)(
|
|
982
|
+
"--contract-json",
|
|
983
|
+
"Compatibility alias for compact contract JSON"
|
|
984
|
+
).hideHelp()
|
|
985
|
+
).action(async (toolId, options) => {
|
|
986
|
+
const metadata = compatibilityMetadata;
|
|
987
|
+
compatibilityMetadata = void 0;
|
|
988
|
+
process.exitCode = await getTool(
|
|
989
|
+
toolId,
|
|
990
|
+
{
|
|
991
|
+
json: Boolean(options.json),
|
|
992
|
+
compact: Boolean(options.compact),
|
|
993
|
+
contractJson: Boolean(options.contractJson),
|
|
994
|
+
pricingOnly: Boolean(options.pricingOnly),
|
|
995
|
+
schemaOnly: Boolean(options.schemaOnly),
|
|
996
|
+
examplesOnly: Boolean(options.examplesOnly),
|
|
997
|
+
gettersOnly: Boolean(options.gettersOnly),
|
|
998
|
+
model: typeof options.model === "string" ? options.model : void 0,
|
|
999
|
+
estimatePayload: typeof options.estimatePayload === "string" ? options.estimatePayload : void 0
|
|
1000
|
+
},
|
|
1001
|
+
metadata
|
|
1002
|
+
);
|
|
987
1003
|
});
|
|
988
|
-
}
|
|
1004
|
+
};
|
|
989
1005
|
addToolMetadataCommand(tools.command("describe <toolId>").alias("get"));
|
|
990
1006
|
tools.command("execute <toolId>").description("Execute a tool by id.").addHelpText(
|
|
991
1007
|
"after",
|
|
@@ -1064,15 +1080,15 @@ Examples:
|
|
|
1064
1080
|
process.exitCode = await executeTool(args);
|
|
1065
1081
|
});
|
|
1066
1082
|
}
|
|
1067
|
-
async function getTool(toolId, options = {}) {
|
|
1083
|
+
async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
1068
1084
|
if (!toolId) {
|
|
1069
1085
|
console.error("Usage: deepline tools describe <toolId> [--json]");
|
|
1070
1086
|
return 1;
|
|
1071
1087
|
}
|
|
1072
|
-
const client = new (0,
|
|
1088
|
+
const client = new (0, _chunkTH3YBIJTjs.DeeplineClient)();
|
|
1073
1089
|
let tool;
|
|
1074
1090
|
try {
|
|
1075
|
-
tool = await client.getTool(toolId);
|
|
1091
|
+
tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
|
|
1076
1092
|
} catch (error) {
|
|
1077
1093
|
if (isMissingToolMetadataError(error)) {
|
|
1078
1094
|
const play = await findPlayForToolId(client, toolId);
|
|
@@ -1123,7 +1139,7 @@ async function getTool(toolId, options = {}) {
|
|
|
1123
1139
|
const lines = toolPricingOnlyLines(tool, toolId);
|
|
1124
1140
|
if (inferenceQuote)
|
|
1125
1141
|
lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
|
|
1126
|
-
|
|
1142
|
+
_chunkYEJMVAD3js.printCommandEnvelope.call(void 0,
|
|
1127
1143
|
{
|
|
1128
1144
|
toolId: String(tool.toolId || toolId),
|
|
1129
1145
|
cost: Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
@@ -1141,7 +1157,7 @@ async function getTool(toolId, options = {}) {
|
|
|
1141
1157
|
}
|
|
1142
1158
|
if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !isMonitorTypeTool(tool) && !isPlayLikeTool(tool) && (options.json || options.contractJson)) {
|
|
1143
1159
|
const contract = toolContractJsonForDescribe(tool, toolId);
|
|
1144
|
-
|
|
1160
|
+
_chunkYEJMVAD3js.printCompactJson.call(void 0, {
|
|
1145
1161
|
toolId: contract.toolId,
|
|
1146
1162
|
...options.schemaOnly ? {
|
|
1147
1163
|
inputSchema: contract.inputSchema,
|
|
@@ -1164,7 +1180,7 @@ async function getTool(toolId, options = {}) {
|
|
|
1164
1180
|
return 0;
|
|
1165
1181
|
}
|
|
1166
1182
|
if (options.contractJson) {
|
|
1167
|
-
|
|
1183
|
+
_chunkYEJMVAD3js.printCompactJson.call(void 0, {
|
|
1168
1184
|
...toolContractJsonForDescribe(tool, toolId),
|
|
1169
1185
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1170
1186
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -1173,7 +1189,7 @@ async function getTool(toolId, options = {}) {
|
|
|
1173
1189
|
}
|
|
1174
1190
|
const emitJson = options.json === true;
|
|
1175
1191
|
if (emitJson) {
|
|
1176
|
-
|
|
1192
|
+
_chunkYEJMVAD3js.printCompactJson.call(void 0, {
|
|
1177
1193
|
...toolMetadataJsonForDescribe(tool, toolId),
|
|
1178
1194
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1179
1195
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -1204,8 +1220,8 @@ ${formatModelDescription(modelDescription)}`);
|
|
|
1204
1220
|
if (inferenceQuote) printInferenceQuoteSummary(inferenceQuote);
|
|
1205
1221
|
return 0;
|
|
1206
1222
|
}
|
|
1207
|
-
if (
|
|
1208
|
-
|
|
1223
|
+
if (_chunkYEJMVAD3js.shouldEmitJson.call(void 0, )) {
|
|
1224
|
+
_chunkYEJMVAD3js.printCompactJson.call(void 0, {
|
|
1209
1225
|
...toolContractJsonForDescribe(tool, toolId),
|
|
1210
1226
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1211
1227
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -2759,30 +2775,30 @@ async function executeTool(args) {
|
|
|
2759
2775
|
try {
|
|
2760
2776
|
parsed = parseExecuteOptions(args);
|
|
2761
2777
|
} catch (error) {
|
|
2762
|
-
if (
|
|
2763
|
-
|
|
2778
|
+
if (_chunkYEJMVAD3js.argsWantJson.call(void 0, args)) {
|
|
2779
|
+
_chunkYEJMVAD3js.printJsonError.call(void 0, error);
|
|
2764
2780
|
} else {
|
|
2765
2781
|
console.error(error instanceof Error ? error.message : String(error));
|
|
2766
2782
|
}
|
|
2767
2783
|
return 1;
|
|
2768
2784
|
}
|
|
2769
|
-
const cliInvocationId = _nullishCoalesce(
|
|
2770
|
-
const client = new (0,
|
|
2785
|
+
const cliInvocationId = _nullishCoalesce(_chunkQJBJZVG6js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkQJBJZVG6js.beginToolExecuteCommand.call(void 0, )));
|
|
2786
|
+
const client = new (0, _chunkTH3YBIJTjs.DeeplineClient)();
|
|
2771
2787
|
let metadata;
|
|
2772
2788
|
try {
|
|
2773
|
-
metadata = await
|
|
2789
|
+
metadata = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0,
|
|
2774
2790
|
"tool metadata lookup",
|
|
2775
2791
|
() => client.getTool(parsed.toolId, { cliInvocationId })
|
|
2776
2792
|
);
|
|
2777
2793
|
} catch (error) {
|
|
2778
2794
|
if (isMissingToolMetadataError(error)) {
|
|
2779
|
-
const play = await
|
|
2795
|
+
const play = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0,
|
|
2780
2796
|
"play alias lookup",
|
|
2781
2797
|
() => findPlayForToolId(client, parsed.toolId, cliInvocationId)
|
|
2782
2798
|
);
|
|
2783
2799
|
if (play) {
|
|
2784
|
-
if (
|
|
2785
|
-
|
|
2800
|
+
if (_chunkYEJMVAD3js.argsWantJson.call(void 0, args)) {
|
|
2801
|
+
_chunkYEJMVAD3js.printJsonError.call(void 0,
|
|
2786
2802
|
new Error(playAliasToolErrorMessage(parsed.toolId, play))
|
|
2787
2803
|
);
|
|
2788
2804
|
} else {
|
|
@@ -2794,8 +2810,8 @@ async function executeTool(args) {
|
|
|
2794
2810
|
throw error;
|
|
2795
2811
|
}
|
|
2796
2812
|
if (isPlayLikeTool(metadata)) {
|
|
2797
|
-
if (
|
|
2798
|
-
|
|
2813
|
+
if (_chunkYEJMVAD3js.argsWantJson.call(void 0, args)) {
|
|
2814
|
+
_chunkYEJMVAD3js.printJsonError.call(void 0,
|
|
2799
2815
|
new Error(
|
|
2800
2816
|
playLikeToolExecuteErrorMessage(
|
|
2801
2817
|
parsed.toolId,
|
|
@@ -2823,7 +2839,7 @@ async function executeTool(args) {
|
|
|
2823
2839
|
if (idempotencyKey) {
|
|
2824
2840
|
console.error(`Tool execution recovery key: ${idempotencyKey}`);
|
|
2825
2841
|
}
|
|
2826
|
-
const rawResponse = await
|
|
2842
|
+
const rawResponse = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0,
|
|
2827
2843
|
"execute request",
|
|
2828
2844
|
() => client.executeTool(parsed.toolId, parsed.params, {
|
|
2829
2845
|
...parsed.timeoutMs !== void 0 ? { timeout: parsed.timeoutMs } : {},
|
|
@@ -2831,7 +2847,7 @@ async function executeTool(args) {
|
|
|
2831
2847
|
responseIntent,
|
|
2832
2848
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
2833
2849
|
...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
|
|
2834
|
-
searchRef:
|
|
2850
|
+
searchRef: _chunkO7NNH76Sjs.recentSearchRef.call(void 0, ),
|
|
2835
2851
|
cliInvocationId
|
|
2836
2852
|
}).catch((error) => {
|
|
2837
2853
|
const guidanceLines = toolGuidanceLines(metadata.guidance);
|
|
@@ -2847,7 +2863,7 @@ async function executeTool(args) {
|
|
|
2847
2863
|
throw error;
|
|
2848
2864
|
})
|
|
2849
2865
|
);
|
|
2850
|
-
const { listConversion, summary, baseEnvelope } = await
|
|
2866
|
+
const { listConversion, summary, baseEnvelope } = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0,
|
|
2851
2867
|
"result formatting",
|
|
2852
2868
|
() => {
|
|
2853
2869
|
const listExtractorPaths = listExtractorPathsFromUsageGuidance(metadata);
|
|
@@ -2869,9 +2885,9 @@ async function executeTool(args) {
|
|
|
2869
2885
|
}
|
|
2870
2886
|
);
|
|
2871
2887
|
const executeExitCode = toolExecuteExitCode(baseEnvelope);
|
|
2872
|
-
const delivered = await
|
|
2873
|
-
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" &&
|
|
2874
|
-
|
|
2888
|
+
const delivered = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0, "output delivery", () => {
|
|
2889
|
+
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && _chunkYEJMVAD3js.shouldEmitJson.call(void 0, ))) {
|
|
2890
|
+
_chunkYEJMVAD3js.printCommandEnvelope.call(void 0, baseEnvelope, { json: true });
|
|
2875
2891
|
return true;
|
|
2876
2892
|
}
|
|
2877
2893
|
if (parsed.outputFormat === "json_file") {
|
|
@@ -2879,7 +2895,7 @@ async function executeTool(args) {
|
|
|
2879
2895
|
rawResponse,
|
|
2880
2896
|
`payload_${parsed.toolId}`
|
|
2881
2897
|
);
|
|
2882
|
-
|
|
2898
|
+
_chunkYEJMVAD3js.printCommandEnvelope.call(void 0,
|
|
2883
2899
|
{
|
|
2884
2900
|
...baseEnvelope,
|
|
2885
2901
|
local: {
|
|
@@ -2896,8 +2912,8 @@ async function executeTool(args) {
|
|
|
2896
2912
|
const error = new Error(
|
|
2897
2913
|
`${parsed.toolId} did not expose row-shaped output to write as CSV. Re-run with --json to inspect the raw tool response.`
|
|
2898
2914
|
);
|
|
2899
|
-
if (
|
|
2900
|
-
|
|
2915
|
+
if (_chunkYEJMVAD3js.argsWantJson.call(void 0, args)) {
|
|
2916
|
+
_chunkYEJMVAD3js.printJsonError.call(void 0, error);
|
|
2901
2917
|
} else {
|
|
2902
2918
|
console.error(error.message);
|
|
2903
2919
|
}
|
|
@@ -2908,18 +2924,18 @@ async function executeTool(args) {
|
|
|
2908
2924
|
rawResponse,
|
|
2909
2925
|
`payload_${parsed.toolId}`
|
|
2910
2926
|
);
|
|
2911
|
-
|
|
2927
|
+
_chunkYEJMVAD3js.printCommandEnvelope.call(void 0,
|
|
2912
2928
|
{
|
|
2913
2929
|
...baseEnvelope,
|
|
2914
2930
|
local: {
|
|
2915
2931
|
payload_file: jsonPath
|
|
2916
2932
|
}
|
|
2917
2933
|
},
|
|
2918
|
-
{ json: parsed.outputFormat === "csv_file" ||
|
|
2934
|
+
{ json: parsed.outputFormat === "csv_file" || _chunkYEJMVAD3js.shouldEmitJson.call(void 0, ) }
|
|
2919
2935
|
);
|
|
2920
2936
|
return true;
|
|
2921
2937
|
}
|
|
2922
|
-
|
|
2938
|
+
_chunkYEJMVAD3js.printCommandEnvelope.call(void 0, baseEnvelope, { json: false });
|
|
2923
2939
|
return true;
|
|
2924
2940
|
}
|
|
2925
2941
|
const rowOutput = _chunkNXDRDJ4Kjs.projectRowOutput.call(void 0, listConversion);
|
|
@@ -2941,19 +2957,19 @@ async function executeTool(args) {
|
|
|
2941
2957
|
seededScript
|
|
2942
2958
|
});
|
|
2943
2959
|
if (parsed.outputFormat === "csv_file") {
|
|
2944
|
-
|
|
2960
|
+
_chunkYEJMVAD3js.printCommandEnvelope.call(void 0, materializedEnvelope, { json: true });
|
|
2945
2961
|
return true;
|
|
2946
2962
|
}
|
|
2947
2963
|
if (parsed.outPath) {
|
|
2948
|
-
|
|
2949
|
-
json:
|
|
2964
|
+
_chunkYEJMVAD3js.printCommandEnvelope.call(void 0, materializedEnvelope, {
|
|
2965
|
+
json: _chunkYEJMVAD3js.argsWantJson.call(void 0, args) || _chunkYEJMVAD3js.shouldEmitJson.call(void 0, ),
|
|
2950
2966
|
text: `Wrote ${csv.rowCount} row(s) to ${csv.path}
|
|
2951
2967
|
`
|
|
2952
2968
|
});
|
|
2953
2969
|
return true;
|
|
2954
2970
|
}
|
|
2955
2971
|
if (parsed.noPreview) {
|
|
2956
|
-
|
|
2972
|
+
_chunkYEJMVAD3js.printCommandEnvelope.call(void 0,
|
|
2957
2973
|
{
|
|
2958
2974
|
...materializedEnvelope,
|
|
2959
2975
|
local: {
|
|
@@ -2961,16 +2977,16 @@ async function executeTool(args) {
|
|
|
2961
2977
|
output_path: csv.path
|
|
2962
2978
|
}
|
|
2963
2979
|
},
|
|
2964
|
-
{ json:
|
|
2980
|
+
{ json: _chunkYEJMVAD3js.shouldEmitJson.call(void 0, ), text: `${csv.path}
|
|
2965
2981
|
` }
|
|
2966
2982
|
);
|
|
2967
2983
|
return true;
|
|
2968
2984
|
}
|
|
2969
|
-
|
|
2985
|
+
_chunkYEJMVAD3js.printCommandEnvelope.call(void 0, materializedEnvelope, { json: false });
|
|
2970
2986
|
return true;
|
|
2971
2987
|
});
|
|
2972
2988
|
if (delivered) {
|
|
2973
|
-
await
|
|
2989
|
+
await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0,
|
|
2974
2990
|
"acknowledge delivery",
|
|
2975
2991
|
() => recovery.acknowledgeDelivery()
|
|
2976
2992
|
);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkZHHF24O5js = require('./chunk-ZHHF24O5.js');
|
|
10
|
+
require('./chunk-WEZVPZPE.js');
|
|
11
|
+
require('./chunk-GBFIAI4L.js');
|
|
12
|
+
require('./chunk-WJYPBHTE.js');
|
|
13
|
+
require('./chunk-YEJMVAD3.js');
|
|
14
|
+
require('./chunk-QTCFSRGC.js');
|
|
15
|
+
require('./chunk-XNYIZMNQ.js');
|
|
16
|
+
require('./chunk-GONK2N7U.js');
|
|
17
|
+
require('./chunk-7P5AA3SN.js');
|
|
18
|
+
require('./chunk-OG64RBAC.js');
|
|
19
|
+
require('./chunk-COGTRVWW.js');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
exports.canAutomaticallyApplyUpdatePlan = _chunkZHHF24O5js.canAutomaticallyApplyUpdatePlan; exports.publishedVersionSupportsPin = _chunkZHHF24O5js.publishedVersionSupportsPin; exports.registerUpdateCommand = _chunkZHHF24O5js.registerUpdateCommand; exports.resolveUpdatePlan = _chunkZHHF24O5js.resolveUpdatePlan; exports.runAutomaticUpdatePlan = _chunkZHHF24O5js.runAutomaticUpdatePlan; exports.runUpdateCommand = _chunkZHHF24O5js.runUpdateCommand; exports.runUpdatePlan = _chunkZHHF24O5js.runUpdatePlan;
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
runAutomaticUpdatePlan,
|
|
7
7
|
runUpdateCommand,
|
|
8
8
|
runUpdatePlan
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-JUAVGRD7.mjs";
|
|
10
|
+
import "./chunk-BPD7TR27.mjs";
|
|
11
|
+
import "./chunk-ASWZTTKT.mjs";
|
|
12
12
|
import "./chunk-GAMFK2ZP.mjs";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-ABMGEW3C.mjs";
|
|
14
|
+
import "./chunk-T3P4NRZU.mjs";
|
|
15
15
|
import "./chunk-DLIRSHV6.mjs";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-YSZSERRZ.mjs";
|
|
17
17
|
import "./chunk-NXGCO4JB.mjs";
|
|
18
18
|
import "./chunk-WZYKRD7T.mjs";
|
|
19
19
|
import "./chunk-KRD6H754.mjs";
|
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
} from "./chunk-ITOFSXIU.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HGI6RGHB.mjs";
|
|
7
7
|
import "./chunk-CBVIJSHF.mjs";
|
|
8
8
|
import {
|
|
9
9
|
printCommandEnvelope,
|
|
10
10
|
printJson,
|
|
11
11
|
shouldEmitJson,
|
|
12
12
|
sleep
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-ABMGEW3C.mjs";
|
|
14
|
+
import "./chunk-T3P4NRZU.mjs";
|
|
15
15
|
import "./chunk-DLIRSHV6.mjs";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-YSZSERRZ.mjs";
|
|
17
17
|
import {
|
|
18
18
|
collectInlineSecretFindings
|
|
19
19
|
} from "./chunk-H7HIDGZ7.mjs";
|
|
@@ -1673,7 +1673,7 @@ async function transformOne(api, workflowId, outDir, publish) {
|
|
|
1673
1673
|
await writeFile(file, compiled.sourceCode, "utf8");
|
|
1674
1674
|
let published = false;
|
|
1675
1675
|
if (publish) {
|
|
1676
|
-
const { handlePlayPublish } = await import("./play-
|
|
1676
|
+
const { handlePlayPublish } = await import("./play-2JTIEOZM.mjs");
|
|
1677
1677
|
const code = await handlePlayPublish([file]);
|
|
1678
1678
|
if (code !== 0) {
|
|
1679
1679
|
return {
|