Skip to content
Open
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
1 change: 1 addition & 0 deletions packages/types/src/global-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ export const globalSettingsSchema = z.object({
hasOpenedModeSelector: z.boolean().optional(),
lastModeExportPath: z.string().optional(),
lastModeImportPath: z.string().optional(),
gitlabExtensionStatus: z.boolean().optional(),
})

export type GlobalSettings = z.infer<typeof globalSettingsSchema>
Expand Down
3 changes: 3 additions & 0 deletions packages/types/src/tool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ export const toolNames = [
"new_rule",
"report_bug",
"condense",
"git_branch",
"git_commit",
"git_push",
// kilocode_change end
"update_todo_list",
"run_slash_command",
Expand Down
18 changes: 18 additions & 0 deletions src/core/assistant-message/presentAssistantMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ import { newTaskTool } from "../tools/newTaskTool"
import { updateTodoListTool } from "../tools/updateTodoListTool"
import { runSlashCommandTool } from "../tools/runSlashCommandTool"
import { generateImageTool } from "../tools/generateImageTool"
import { gitBranchTool } from "../tools/gitBranchTool" // kilocode_change
import { gitCommitTool } from "../tools/gitCommitTool" // kilocode_change
import { gitPushTool } from "../tools/gitPushTool" // kilocode_change

import { formatResponse } from "../prompts/responses"
import { validateToolUse } from "../tools/validateToolUse"
Expand Down Expand Up @@ -240,6 +243,12 @@ export async function presentAssistantMessage(cline: Task) {
return `[${block.name}]`
case "condense":
return `[${block.name}]`
case "git_branch":
return `[${block.name} for '${block.params.branch_name}']`
case "git_commit":
return `[${block.name} for '${block.params.commit_message}']`
case "git_push":
return `[${block.name}]`
// kilocode_change end
case "run_slash_command":
return `[${block.name} for '${block.params.command}'${block.params.args ? ` with args: ${block.params.args}` : ""}]`
Expand Down Expand Up @@ -600,6 +609,15 @@ export async function presentAssistantMessage(cline: Task) {
case "condense":
await condenseTool(cline, block, askApproval, handleError, pushToolResult, removeClosingTag)
break
case "git_branch":
await gitBranchTool(cline, block, askApproval, handleError, pushToolResult, removeClosingTag)
break
case "git_commit":
await gitCommitTool(cline, block, askApproval, handleError, pushToolResult, removeClosingTag)
break
case "git_push":
await gitPushTool(cline, block, askApproval, handleError, pushToolResult, removeClosingTag)
break
// kilocode_change end
case "run_slash_command":
await runSlashCommandTool(cline, block, askApproval, handleError, pushToolResult, removeClosingTag)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading