bravecode-cli 0.1.47 → 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 +20 -11
- package/dist/cli-main.mjs.map +2 -2
- package/package.json +1 -1
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
|
-
"
|
|
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
|
|
37446
|
-
"- Tool results
|
|
37447
|
-
"- After receiving
|
|
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.
|
|
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
|
|
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.
|
|
40914
|
-
2.
|
|
40915
|
-
3.
|
|
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.
|
|
40923
|
+
|
|
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.
|
|
40916
40925
|
|
|
40917
|
-
Be concise
|
|
40926
|
+
Be concise. One short sentence between tool calls is fine.`,
|
|
40918
40927
|
temperature: 0.7,
|
|
40919
40928
|
maxIterations: 20
|
|
40920
40929
|
},
|