Fix ACP agent commands: claude-agent-acp, remove stale ts-expect-error
This commit is contained in:
parent
583b03eb3b
commit
a76d20b27b
|
|
@ -22,7 +22,7 @@
|
|||
{
|
||||
"identifier": "shell:allow-spawn",
|
||||
"allow": [
|
||||
{ "name": "claude-code-acp", "cmd": "claude-code-acp", "args": true },
|
||||
{ "name": "claude-agent-acp", "cmd": "claude-agent-acp", "args": true },
|
||||
{ "name": "codex-acp", "cmd": "codex-acp", "args": true },
|
||||
{ "name": "gemini", "cmd": "gemini", "args": true },
|
||||
{ "name": "openpencil-mcp", "cmd": "openpencil-mcp", "args": true }
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ export interface ACPAgentDef {
|
|||
}
|
||||
|
||||
export const ACP_AGENTS: ACPAgentDef[] = [
|
||||
{ id: 'claude-code', name: 'Claude Code', command: 'claude-code-acp', args: [] },
|
||||
{ id: 'claude-code', name: 'Claude Code', command: 'claude-agent-acp', args: [] },
|
||||
{ id: 'codex', name: 'Codex', command: 'codex-acp', args: [] },
|
||||
{ id: 'gemini-cli', name: 'Gemini CLI', command: 'gemini', args: ['--acp'] }
|
||||
]
|
||||
|
|
|
|||
|
|
@ -157,7 +157,6 @@ export class ACPChatTransport implements ChatTransport<UIMessage> {
|
|||
}
|
||||
|
||||
private async spawnAgent(): Promise<ACPSession> {
|
||||
// @ts-expect-error — Tauri runtime-only module, not resolvable in lint/test environments
|
||||
const { Command } = await import('@tauri-apps/plugin-shell')
|
||||
|
||||
const command = Command.create(this.agentDef.command, this.agentDef.args, {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ export async function spawnMcpIfNeeded(): Promise<(() => void) | null> {
|
|||
|
||||
if (await checkHealth()) return null
|
||||
|
||||
// @ts-expect-error — Tauri runtime-only module, not resolvable in lint/test environments
|
||||
const { Command } = await import('@tauri-apps/plugin-shell')
|
||||
const command = Command.create('openpencil-mcp', [])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue