Skip to content

Commit 6f239d4

Browse files
authored
release/v5.0.0 (#27)
* upgrade file read tool * upgrade file edit tool * task ui cleanups * cleanup UI * clean up search and cmd tool + rename app
1 parent 72eef7c commit 6f239d4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+495
-738
lines changed

apps/kilocode-docs/docs/advanced-usage/custom-rules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
url="https://youtu.be/GF0vjB8NxYg"
55
/>
66

7-
Custom rules provide a powerful way to define project-specific and global behaviors and constraints for the Axon Code AI agent. With custom rules, you can ensure consistent formatting, restrict access to sensitive files, enforce coding standards, and customize the AI's behavior for your specific project needs or across all projects.
7+
Custom rules provide a powerful way to define project-specific and global behaviors and constraints for the Axon AI Coding Agent | Code Reviews. With custom rules, you can ensure consistent formatting, restrict access to sensitive files, enforce coding standards, and customize the AI's behavior for your specific project needs or across all projects.
88

99
## Overview
1010

apps/storybook/.storybook/theme-variables.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ classes at build time based on the @theme */
4646
--sideBarSectionHeader-background: var(--vscode-sideBarSectionHeader-background);
4747
--sideBarSectionHeader-border: var(--vscode-sideBarSectionHeader-border);
4848
--charts-green: var(--vscode-charts-green);
49-
--charts-yellow: var(--vscode-charts-yellow);
49+
--charts-yellow: var(--color-matterai-yellow);
5050
--charts-red: var(--vscode-charts-red);
5151
--charts-blue: var(--vscode-charts-blue);
5252
--charts-orange: var(--vscode-charts-orange);
@@ -85,7 +85,7 @@ classes at build time based on the @theme */
8585
--ring: var(--vscode-input-border);
8686
--chart-1: var(--vscode-charts-red);
8787
--chart-2: var(--vscode-charts-blue);
88-
--chart-3: var(--vscode-charts-yellow);
88+
--chart-3: var(--color-matterai-yellow);
8989
--chart-4: var(--vscode-charts-orange);
9090
--chart-5: var(--vscode-charts-green);
9191

@@ -133,7 +133,6 @@ classes at build time based on the @theme */
133133
--radius-md: calc(var(--radius) - 2px);
134134
--radius-sm: calc(var(--radius) - 4px);
135135

136-
137136
/* Tailwind color delegations for semantic colors */
138137
--color-background: var(--background);
139138
--color-foreground: var(--foreground);
@@ -202,7 +201,7 @@ classes at build time based on the @theme */
202201
--color-vscode-sideBarSectionHeader-background: var(--vscode-sideBarSectionHeader-background);
203202
--color-vscode-sideBarSectionHeader-border: var(--vscode-sideBarSectionHeader-border);
204203
--color-vscode-charts-green: var(--vscode-charts-green);
205-
--color-vscode-charts-yellow: var(--vscode-charts-yellow);
204+
--color-vscode-charts-yellow: var(--color-matterai-yellow);
206205
--color-vscode-charts-red: var(--vscode-charts-red);
207206
--color-vscode-charts-blue: var(--vscode-charts-blue);
208207
--color-vscode-charts-orange: var(--vscode-charts-orange);

jetbrains/plugin/src/main/resources/META-INF/plugin.xml.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ SPDX-License-Identifier: Apache-2.0
2424
Simple HTML elements (text formatting, paragraphs, and lists) can be added inside of <![CDATA[ ]]> tag.
2525
Guidelines: https://plugins.jetbrains.com/docs/marketplace/plugin-overview-page.html#plugin-description -->
2626
<description><![CDATA[
27-
<h1>Axon Code AI Agent</h1>
27+
<h1>Axon AI Coding Agent | Code Reviews</h1>
2828
<p>Open Source AI coding assistant for planning, building, and fixing code.</p>
2929
]]></description>
3030

jetbrains/plugin/src/main/resources/themes/theme-variables.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ classes at build time based on the @theme */
4646
--sideBarSectionHeader-background: var(--vscode-sideBarSectionHeader-background);
4747
--sideBarSectionHeader-border: var(--vscode-sideBarSectionHeader-border);
4848
--charts-green: var(--vscode-charts-green);
49-
--charts-yellow: var(--vscode-charts-yellow);
49+
--charts-yellow: var(--color-matterai-yellow);
5050
--charts-red: var(--vscode-charts-red);
5151
--charts-blue: var(--vscode-charts-blue);
5252
--charts-orange: var(--vscode-charts-orange);
@@ -85,7 +85,7 @@ classes at build time based on the @theme */
8585
--ring: var(--vscode-input-border);
8686
--chart-1: var(--vscode-charts-red);
8787
--chart-2: var(--vscode-charts-blue);
88-
--chart-3: var(--vscode-charts-yellow);
88+
--chart-3: var(--color-matterai-yellow);
8989
--chart-4: var(--vscode-charts-orange);
9090
--chart-5: var(--vscode-charts-green);
9191

@@ -201,7 +201,7 @@ classes at build time based on the @theme */
201201
--color-vscode-sideBarSectionHeader-background: var(--vscode-sideBarSectionHeader-background);
202202
--color-vscode-sideBarSectionHeader-border: var(--vscode-sideBarSectionHeader-border);
203203
--color-vscode-charts-green: var(--vscode-charts-green);
204-
--color-vscode-charts-yellow: var(--vscode-charts-yellow);
204+
--color-vscode-charts-yellow: var(--color-matterai-yellow);
205205
--color-vscode-charts-red: var(--vscode-charts-red);
206206
--color-vscode-charts-blue: var(--vscode-charts-blue);
207207
--color-vscode-charts-orange: var(--vscode-charts-orange);

src/core/assistant-message/presentAssistantMessage.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,12 @@ export async function presentAssistantMessage(cline: Task) {
204204
case "insert_content":
205205
return `[${block.name} for '${block.params.path}']`
206206
case "file_edit":
207-
return `[${block.name} for '${block.params.target_file}']`
207+
return `[${block.name} for '${(block.params as any).file_path || block.params.target_file}']`
208208
case "search_and_replace":
209209
return `[${block.name} for '${block.params.path}']`
210210
// kilocode_change start: Morph fast apply
211211
case "edit_file":
212-
return `[${block.name} for '${block.params.target_file}']`
212+
return `[${block.name} for '${(block.params as any).file_path || block.params.target_file}']`
213213
// kilocode_change end
214214
case "list_files":
215215
return `[${block.name} for '${block.params.path}']`
@@ -257,7 +257,8 @@ export async function presentAssistantMessage(cline: Task) {
257257
const pushToolResult_withToolUseId_kilocode = (
258258
...items: (Anthropic.TextBlockParam | Anthropic.ImageBlockParam)[]
259259
) => {
260-
if (block.toolUseId) {
260+
// Check for non-empty toolUseId - empty string should be treated as missing
261+
if (block.toolUseId && block.toolUseId.length > 0) {
261262
cline.userMessageContent.push({ type: "tool_result", tool_use_id: block.toolUseId, content: items })
262263
} else {
263264
cline.userMessageContent.push(...items)
@@ -295,8 +296,8 @@ export async function presentAssistantMessage(cline: Task) {
295296
const pushToolResult = (content: ToolResponse) => {
296297
// kilocode_change start
297298
const items = new Array<Anthropic.TextBlockParam | Anthropic.ImageBlockParam>()
298-
items.push({ type: "text", text: `${toolDescription()} Result:` })
299299

300+
// No prefix - just return raw tool output
300301
if (typeof content === "string") {
301302
items.push({ type: "text", text: content || "(tool did not return anything)" })
302303
} else {

0 commit comments

Comments
 (0)