Import packages/plugin/src/acp/adapters/claude-process.ts
This commit is contained in:
parent
bc9b5c230e
commit
b70e3ffab0
|
|
@ -20,7 +20,7 @@ export class ClaudeAcpClient extends CursorAcpClient {
|
||||||
|
|
||||||
constructor(binary = 'claude-agent-acp', logger?: SafeLogger, spawnAcp?: SpawnCursorAcp,
|
constructor(binary = 'claude-agent-acp', logger?: SafeLogger, spawnAcp?: SpawnCursorAcp,
|
||||||
options: Pick<CursorAcpOptions, 'args' | 'cwd'> = {}, backend: 'claude' | 'hermes' = 'claude') {
|
options: Pick<CursorAcpOptions, 'args' | 'cwd'> = {}, backend: 'claude' | 'hermes' = 'claude') {
|
||||||
const config = { ...options, args: options.args ?? [], authenticationMethod: null, modelBackend: backend }
|
const config = { ...options, args: options.args ?? [], authenticationMethod: null, modelBackend: backend, backend }
|
||||||
super(binary, logger, spawnAcp, config)
|
super(binary, logger, spawnAcp, config)
|
||||||
this.makeClient = () => new CursorAcpClient(binary, logger, spawnAcp, config)
|
this.makeClient = () => new CursorAcpClient(binary, logger, spawnAcp, config)
|
||||||
this.modelLabel = backend
|
this.modelLabel = backend
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue