@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.
@@ -35,7 +35,7 @@ function readSecret(prompt) {
35
35
  });
36
36
  }
37
37
  async function runLogin(providerId, cwd) {
38
- const { runProviderCommand } = await import("./providerCli-G5OGC2UN.js");
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-IXAVAK7R.js";
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-CJEIJ5VW.js";
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.27" : "0.0.0-dev";
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-MOXJVDKB.js");
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-G5OGC2UN.js");
1695
- const { readSecret } = await import("./login-MOXJVDKB.js");
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") {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  readSecret,
4
4
  runLogin
5
- } from "./chunk-CJEIJ5VW.js";
5
+ } from "./chunk-DJR4EAVL.js";
6
6
  export {
7
7
  readSecret,
8
8
  runLogin
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  addProviderKey,
4
4
  runProviderCommand
5
- } from "./chunk-IXAVAK7R.js";
5
+ } from "./chunk-WWQVALA5.js";
6
6
  import "./chunk-K5JNR3HL.js";
7
7
  import "./chunk-SN3ODJZN.js";
8
8
  import "./chunk-EO7IVVX4.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botconnector/bccli",
3
- "version": "0.4.0-beta.27",
3
+ "version": "0.4.0-beta.28",
4
4
  "description": "BCCLI — BotConnector AI coding agent for the terminal",
5
5
  "type": "module",
6
6
  "bin": {