@botconnector/bccli 0.4.0-beta.27 → 0.4.0-beta.28
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/{chunk-CJEIJ5VW.js → chunk-DJR4EAVL.js} +1 -1
- package/dist/{chunk-IXAVAK7R.js → chunk-WWQVALA5.js} +1 -0
- package/dist/cli.js +8 -7
- package/dist/{login-MOXJVDKB.js → login-HUPT4247.js} +1 -1
- package/dist/{providerCli-G5OGC2UN.js → providerCli-II7TQDYQ.js} +1 -1
- package/package.json +1 -1
|
@@ -35,7 +35,7 @@ function readSecret(prompt) {
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
async function runLogin(providerId, cwd) {
|
|
38
|
-
const { runProviderCommand } = await import("./providerCli-
|
|
38
|
+
const { runProviderCommand } = await import("./providerCli-II7TQDYQ.js");
|
|
39
39
|
const { parseCliArgs } = await import("./args-XQYEBOKB.js");
|
|
40
40
|
return runProviderCommand(parseCliArgs(["provider", "add", providerId]), {
|
|
41
41
|
env: process.env,
|
|
@@ -285,6 +285,7 @@ function lunaToolPlan(tools, enableProgrammaticToolCalling = false, programmatic
|
|
|
285
285
|
name: tool.function.name,
|
|
286
286
|
description: tool.function.description,
|
|
287
287
|
parameters: tool.function.parameters,
|
|
288
|
+
...tool.function.output_schema ? { output_schema: tool.function.output_schema } : {},
|
|
288
289
|
strict: false
|
|
289
290
|
}));
|
|
290
291
|
const mcpIndexes = native.map((tool, index) => String(tool.name).startsWith("mcp__") ? index : -1).filter((index) => index >= 0);
|
package/dist/cli.js
CHANGED
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
createProvider,
|
|
23
23
|
hasPendingProgrammaticReplay,
|
|
24
24
|
listAllModels
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-WWQVALA5.js";
|
|
26
26
|
import {
|
|
27
27
|
providerName,
|
|
28
28
|
readGlobalConfigFile
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
import "./chunk-SN3ODJZN.js";
|
|
31
31
|
import {
|
|
32
32
|
runLogin
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-DJR4EAVL.js";
|
|
34
34
|
import {
|
|
35
35
|
Session,
|
|
36
36
|
pruneSessions
|
|
@@ -783,7 +783,7 @@ var ALL_TOOLS = [readTool, writeTool, editTool, bashTool, grepTool, globTool, fe
|
|
|
783
783
|
function toolDefinitions(tools) {
|
|
784
784
|
return tools.map((tool) => {
|
|
785
785
|
const { $schema: _ignored, ...parameters } = tool.jsonSchema ?? z8.toJSONSchema(tool.schema);
|
|
786
|
-
return { type: "function", function: { name: tool.name, description: tool.description, parameters } };
|
|
786
|
+
return { type: "function", function: { name: tool.name, description: tool.description, parameters, ...tool.outputJsonSchema ? { output_schema: tool.outputJsonSchema } : {} } };
|
|
787
787
|
});
|
|
788
788
|
}
|
|
789
789
|
|
|
@@ -1247,6 +1247,7 @@ var McpManager = class {
|
|
|
1247
1247
|
description: `[MCP ${server}] ${tool.description ?? tool.name}`.slice(0, 1024),
|
|
1248
1248
|
schema: z9.record(z9.string(), z9.unknown()),
|
|
1249
1249
|
jsonSchema: tool.inputSchema,
|
|
1250
|
+
...tool.outputSchema ? { outputJsonSchema: tool.outputSchema } : {},
|
|
1250
1251
|
kind: "mcp",
|
|
1251
1252
|
programmaticSafe: tool.annotations?.readOnlyHint === true,
|
|
1252
1253
|
target: (input) => {
|
|
@@ -1661,7 +1662,7 @@ function createRuntime(opts) {
|
|
|
1661
1662
|
}
|
|
1662
1663
|
|
|
1663
1664
|
// src/version.ts
|
|
1664
|
-
var VERSION = true ? "0.4.0-beta.
|
|
1665
|
+
var VERSION = true ? "0.4.0-beta.28" : "0.0.0-dev";
|
|
1665
1666
|
|
|
1666
1667
|
// src/cli.ts
|
|
1667
1668
|
function chooseLanguage(argv) {
|
|
@@ -1687,12 +1688,12 @@ async function main() {
|
|
|
1687
1688
|
if (args.command === "login") return runLogin(args.loginProvider ?? "bc-cloud", cwd);
|
|
1688
1689
|
if (args.command === "mcp") {
|
|
1689
1690
|
const { runMcpCommand } = await import("./mcpCli-J43FHF2H.js");
|
|
1690
|
-
const { readSecret } = await import("./login-
|
|
1691
|
+
const { readSecret } = await import("./login-HUPT4247.js");
|
|
1691
1692
|
return runMcpCommand(args, { env: process.env, cwd, out: (s) => console.log(s), err: (s) => console.error(s), readSecret });
|
|
1692
1693
|
}
|
|
1693
1694
|
if (args.command === "provider") {
|
|
1694
|
-
const { runProviderCommand } = await import("./providerCli-
|
|
1695
|
-
const { readSecret } = await import("./login-
|
|
1695
|
+
const { runProviderCommand } = await import("./providerCli-II7TQDYQ.js");
|
|
1696
|
+
const { readSecret } = await import("./login-HUPT4247.js");
|
|
1696
1697
|
return runProviderCommand(args, { env: process.env, cwd, out: (s) => console.log(s), err: (s) => console.error(s), readSecret });
|
|
1697
1698
|
}
|
|
1698
1699
|
if (args.command === "connect" || args.command === "disconnect" || args.command === "integrations") {
|