mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-30 03:53:35 +00:00
refactor(core): reuse plugin response wrapper (#45648)
This commit is contained in:
parent
f367c202d9
commit
e50c89834e
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ export const make = Effect.fn("PluginHost.make")(function* (plugin: Interface, p
|
|||
list: (input) => {
|
||||
const ref = locationRef(input)
|
||||
if (ref && !isCurrentLocation(ref)) return runtime.location.agent.list(ref)
|
||||
return agents.list().pipe(Effect.map((data) => ({ location: locationInfo(), data })))
|
||||
return response(agents.list())
|
||||
},
|
||||
reload: agents.reload,
|
||||
transform: (callback) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue