Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/kilocode-docs/docs/advanced-usage/custom-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
url="https://youtu.be/GF0vjB8NxYg"
/>

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.
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.

## Overview

Expand Down
7 changes: 3 additions & 4 deletions apps/storybook/.storybook/theme-variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ classes at build time based on the @theme */
--sideBarSectionHeader-background: var(--vscode-sideBarSectionHeader-background);
--sideBarSectionHeader-border: var(--vscode-sideBarSectionHeader-border);
--charts-green: var(--vscode-charts-green);
--charts-yellow: var(--vscode-charts-yellow);
--charts-yellow: var(--color-matterai-yellow);
--charts-red: var(--vscode-charts-red);
--charts-blue: var(--vscode-charts-blue);
--charts-orange: var(--vscode-charts-orange);
Expand Down Expand Up @@ -85,7 +85,7 @@ classes at build time based on the @theme */
--ring: var(--vscode-input-border);
--chart-1: var(--vscode-charts-red);
--chart-2: var(--vscode-charts-blue);
--chart-3: var(--vscode-charts-yellow);
--chart-3: var(--color-matterai-yellow);
--chart-4: var(--vscode-charts-orange);
--chart-5: var(--vscode-charts-green);

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


/* Tailwind color delegations for semantic colors */
--color-background: var(--background);
--color-foreground: var(--foreground);
Expand Down Expand Up @@ -202,7 +201,7 @@ classes at build time based on the @theme */
--color-vscode-sideBarSectionHeader-background: var(--vscode-sideBarSectionHeader-background);
--color-vscode-sideBarSectionHeader-border: var(--vscode-sideBarSectionHeader-border);
--color-vscode-charts-green: var(--vscode-charts-green);
--color-vscode-charts-yellow: var(--vscode-charts-yellow);
--color-vscode-charts-yellow: var(--color-matterai-yellow);
--color-vscode-charts-red: var(--vscode-charts-red);
--color-vscode-charts-blue: var(--vscode-charts-blue);
--color-vscode-charts-orange: var(--vscode-charts-orange);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ SPDX-License-Identifier: Apache-2.0
Simple HTML elements (text formatting, paragraphs, and lists) can be added inside of <![CDATA[ ]]> tag.
Guidelines: https://plugins.jetbrains.com/docs/marketplace/plugin-overview-page.html#plugin-description -->
<description><![CDATA[
<h1>Axon Code AI Agent</h1>
<h1>Axon AI Coding Agent | Code Reviews</h1>
<p>Open Source AI coding assistant for planning, building, and fixing code.</p>
]]></description>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ classes at build time based on the @theme */
--sideBarSectionHeader-background: var(--vscode-sideBarSectionHeader-background);
--sideBarSectionHeader-border: var(--vscode-sideBarSectionHeader-border);
--charts-green: var(--vscode-charts-green);
--charts-yellow: var(--vscode-charts-yellow);
--charts-yellow: var(--color-matterai-yellow);
--charts-red: var(--vscode-charts-red);
--charts-blue: var(--vscode-charts-blue);
--charts-orange: var(--vscode-charts-orange);
Expand Down Expand Up @@ -85,7 +85,7 @@ classes at build time based on the @theme */
--ring: var(--vscode-input-border);
--chart-1: var(--vscode-charts-red);
--chart-2: var(--vscode-charts-blue);
--chart-3: var(--vscode-charts-yellow);
--chart-3: var(--color-matterai-yellow);
--chart-4: var(--vscode-charts-orange);
--chart-5: var(--vscode-charts-green);

Expand Down Expand Up @@ -201,7 +201,7 @@ classes at build time based on the @theme */
--color-vscode-sideBarSectionHeader-background: var(--vscode-sideBarSectionHeader-background);
--color-vscode-sideBarSectionHeader-border: var(--vscode-sideBarSectionHeader-border);
--color-vscode-charts-green: var(--vscode-charts-green);
--color-vscode-charts-yellow: var(--vscode-charts-yellow);
--color-vscode-charts-yellow: var(--color-matterai-yellow);
--color-vscode-charts-red: var(--vscode-charts-red);
--color-vscode-charts-blue: var(--vscode-charts-blue);
--color-vscode-charts-orange: var(--vscode-charts-orange);
Expand Down
9 changes: 5 additions & 4 deletions src/core/assistant-message/presentAssistantMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,12 @@ export async function presentAssistantMessage(cline: Task) {
case "insert_content":
return `[${block.name} for '${block.params.path}']`
case "file_edit":
return `[${block.name} for '${block.params.target_file}']`
return `[${block.name} for '${(block.params as any).file_path || block.params.target_file}']`
case "search_and_replace":
return `[${block.name} for '${block.params.path}']`
// kilocode_change start: Morph fast apply
case "edit_file":
return `[${block.name} for '${block.params.target_file}']`
return `[${block.name} for '${(block.params as any).file_path || block.params.target_file}']`
// kilocode_change end
case "list_files":
return `[${block.name} for '${block.params.path}']`
Expand Down Expand Up @@ -257,7 +257,8 @@ export async function presentAssistantMessage(cline: Task) {
const pushToolResult_withToolUseId_kilocode = (
...items: (Anthropic.TextBlockParam | Anthropic.ImageBlockParam)[]
) => {
if (block.toolUseId) {
// Check for non-empty toolUseId - empty string should be treated as missing
if (block.toolUseId && block.toolUseId.length > 0) {
cline.userMessageContent.push({ type: "tool_result", tool_use_id: block.toolUseId, content: items })
} else {
cline.userMessageContent.push(...items)
Expand Down Expand Up @@ -295,8 +296,8 @@ export async function presentAssistantMessage(cline: Task) {
const pushToolResult = (content: ToolResponse) => {
// kilocode_change start
const items = new Array<Anthropic.TextBlockParam | Anthropic.ImageBlockParam>()
items.push({ type: "text", text: `${toolDescription()} Result:` })

// No prefix - just return raw tool output
if (typeof content === "string") {
items.push({ type: "text", text: content || "(tool did not return anything)" })
} else {
Expand Down
Loading
Loading