refactor(core): reuse plugin response wrapper (#45648)

This commit is contained in:
Kit Langton
2026-08-28 13:25:40 -04:00
committed by GitHub
Unverified
parent f367c202d9
commit e50c89834e
+1 -1
View File
@@ -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) =>