mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-06 08:21:50 +00:00
refactor(acp): drop async from synchronous ACP.init (#25520)
This commit is contained in:
parent
61150f6391
commit
0956b15c52
2 changed files with 2 additions and 2 deletions
|
|
@ -130,7 +130,7 @@ async function sendUsageUpdate(
|
|||
})
|
||||
}
|
||||
|
||||
export async function init({ sdk: _sdk }: { sdk: OpencodeClient }) {
|
||||
export function init({ sdk: _sdk }: { sdk: OpencodeClient }) {
|
||||
return {
|
||||
create: (connection: AgentSideConnection, fullConfig: ACPConfig) => {
|
||||
return new Agent(connection, fullConfig)
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ export const AcpCommand = effectCmd({
|
|||
})
|
||||
|
||||
const stream = ndJsonStream(input, output)
|
||||
const agent = yield* Effect.promise(() => ACP.init({ sdk }))
|
||||
const agent = ACP.init({ sdk })
|
||||
|
||||
new AgentSideConnection((conn) => {
|
||||
return agent.create(conn, { sdk })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue