mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-17 13:55:50 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
55a932df68 | ||
|
|
230eb489b5 |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "claude-code-best",
|
"name": "claude-code-best",
|
||||||
"version": "2.6.9",
|
"version": "2.6.10",
|
||||||
"description": "Reverse-engineered Anthropic Claude Code CLI — interactive AI coding assistant in the terminal",
|
"description": "Reverse-engineered Anthropic Claude Code CLI — interactive AI coding assistant in the terminal",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"author": "claude-code-best <claude-code-best@proton.me>",
|
"author": "claude-code-best <claude-code-best@proton.me>",
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ import { getEmptyToolPermissionContext } from '../../Tool.js'
|
|||||||
import type { PermissionMode } from '../../types/permissions.js'
|
import type { PermissionMode } from '../../types/permissions.js'
|
||||||
import type { Command } from '../../types/command.js'
|
import type { Command } from '../../types/command.js'
|
||||||
import { getCommands } from '../../commands.js'
|
import { getCommands } from '../../commands.js'
|
||||||
|
import { getAgentDefinitionsWithOverrides } from '@claude-code-best/builtin-tools/tools/AgentTool/loadAgentsDir.js'
|
||||||
import {
|
import {
|
||||||
setOriginalCwd,
|
setOriginalCwd,
|
||||||
switchSession,
|
switchSession,
|
||||||
@@ -549,8 +550,14 @@ export class AcpAgent implements Agent {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load commands for slash command and skill support
|
// Load commands and agent definitions for subagent support
|
||||||
const commands = await getCommands(cwd)
|
const [commands, agentDefinitionsResult] = await Promise.all([
|
||||||
|
getCommands(cwd),
|
||||||
|
getAgentDefinitionsWithOverrides(cwd),
|
||||||
|
])
|
||||||
|
|
||||||
|
// Inject agent definitions into appState
|
||||||
|
appState.agentDefinitions = agentDefinitionsResult
|
||||||
|
|
||||||
// Build QueryEngine config
|
// Build QueryEngine config
|
||||||
const engineConfig: QueryEngineConfig = {
|
const engineConfig: QueryEngineConfig = {
|
||||||
@@ -558,7 +565,7 @@ export class AcpAgent implements Agent {
|
|||||||
tools,
|
tools,
|
||||||
commands,
|
commands,
|
||||||
mcpClients: [],
|
mcpClients: [],
|
||||||
agents: [],
|
agents: agentDefinitionsResult.activeAgents,
|
||||||
canUseTool,
|
canUseTool,
|
||||||
getAppState: () => appState,
|
getAppState: () => appState,
|
||||||
setAppState: (updater: (prev: AppState) => AppState) => {
|
setAppState: (updater: (prev: AppState) => AppState) => {
|
||||||
|
|||||||
@@ -827,6 +827,7 @@ export async function forwardSessionUpdates(
|
|||||||
{
|
{
|
||||||
clientCapabilities,
|
clientCapabilities,
|
||||||
cwd,
|
cwd,
|
||||||
|
parentToolUseId,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
for (const notification of notifications) {
|
for (const notification of notifications) {
|
||||||
|
|||||||
Reference in New Issue
Block a user