bravecode-cli 0.1.46 → 0.1.48

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/cli-main.mjs CHANGED
@@ -37432,9 +37432,11 @@ var init_provider = __esm({
37432
37432
  Arguments schema: ${params}`;
37433
37433
  });
37434
37434
  return [
37435
- "# Tool Calling",
37435
+ "# Tool Calling \u2014 MANDATORY",
37436
37436
  "",
37437
- "You can invoke tools to help complete the task. To invoke a tool, emit a block in exactly this format:",
37437
+ "To create, read, edit, search, or run anything, you MUST emit a tool call block. Do not describe actions in prose; do not output code blocks in lieu of tool calls. Files are only created/modified when you use a tool.",
37438
+ "",
37439
+ "Emit a block in EXACTLY this format:",
37438
37440
  "",
37439
37441
  "<tool_call>",
37440
37442
  '{"name": "<tool-name>", "arguments": {<json-args>}}',
@@ -37442,9 +37444,14 @@ var init_provider = __esm({
37442
37444
  "",
37443
37445
  "Rules:",
37444
37446
  '- The text inside <tool_call> tags must be valid JSON with a "name" and an "arguments" object.',
37445
- "- You may emit multiple tool call blocks if several tools are needed, then stop and wait.",
37446
- "- Tool results are returned in a later message prefixed with '[Tool result for <tool-name>]'. Never invent results.",
37447
- "- After receiving tool results, continue the task or give the final answer.",
37447
+ "- You may emit multiple <tool_call> blocks if needed, then STOP and wait for results.",
37448
+ "- Tool results arrive in a later user message prefixed with '[Tool result for <tool-name>]'. Never invent results.",
37449
+ "- After receiving results, either call another tool or give a brief final answer.",
37450
+ "",
37451
+ "Example:",
37452
+ "<tool_call>",
37453
+ '{"name": "write", "arguments": {"path": "src/foo.ts", "content": "export const x = 1;\\n"}}',
37454
+ "</tool_call>",
37448
37455
  "",
37449
37456
  "## Available tools",
37450
37457
  ...toolLines
@@ -38185,7 +38192,7 @@ var APP_VERSION, APP_NAME;
38185
38192
  var init_version = __esm({
38186
38193
  "src/version.ts"() {
38187
38194
  "use strict";
38188
- APP_VERSION = "0.1.46";
38195
+ APP_VERSION = "0.1.48";
38189
38196
  APP_NAME = "BraveCode";
38190
38197
  }
38191
38198
  });
@@ -40907,14 +40914,16 @@ var init_agent = __esm({
40907
40914
  name: "Build Agent",
40908
40915
  description: "Full access to tools for development work",
40909
40916
  model: "codestral-latest",
40910
- systemPrompt: `You are BraveCode AI, an expert software engineer. You have access to tools to read, write, edit files, and execute commands.
40917
+ systemPrompt: `You are BraveCode AI, an expert software engineer. You MUST use the provided tools to make file changes \u2014 do NOT narrate or describe actions in prose.
40911
40918
 
40912
40919
  When asked to make changes:
40913
- 1. First understand the codebase by reading relevant files
40914
- 2. Make the necessary changes using edit/write tools
40915
- 3. Verify your changes work by running tests or commands
40920
+ 1. Call the appropriate tool (read, write, edit, bash) \u2014 do not describe what you would do.
40921
+ 2. Verify changes by running tests or commands with the bash tool.
40922
+ 3. After every tool result, continue with the next step or give a brief final answer.
40916
40923
 
40917
- Be concise and direct. Show code when relevant.`,
40924
+ Important: every file you create or modify must be done via a tool call. Writing code blocks in your response without calling a tool does not create or modify any files.
40925
+
40926
+ Be concise. One short sentence between tool calls is fine.`,
40918
40927
  temperature: 0.7,
40919
40928
  maxIterations: 20
40920
40929
  },
@@ -44133,11 +44142,13 @@ function StatusBar() {
44133
44142
  },
44134
44143
  children: [
44135
44144
  /* @__PURE__ */ jsx("text", { fg: colors2.textMuted, children: s(cwd) }),
44136
- /* @__PURE__ */ jsxs("text", { fg: colors2.textMuted, children: [
44137
- s(tokenStr),
44138
- " (",
44139
- pct,
44140
- "%)",
44145
+ /* @__PURE__ */ jsxs("box", { style: { flexDirection: "row" }, children: [
44146
+ /* @__PURE__ */ jsxs("text", { fg: colors2.textMuted, children: [
44147
+ s(tokenStr),
44148
+ " (",
44149
+ pct,
44150
+ "%)"
44151
+ ] }),
44141
44152
  /* @__PURE__ */ jsx("text", { fg: colors2.info, children: " ctrl+p " }),
44142
44153
  /* @__PURE__ */ jsx("text", { fg: colors2.textMuted, children: "commands" }),
44143
44154
  isRunning ? /* @__PURE__ */ jsx("text", { fg: colors2.warning, children: " esc interrupt" }) : null