feat(core): add plugin list endpoint
Adds a plugin.list HTTP endpoint that reports currently loaded plugins, wires it through protocol, server, and generated clients, and merges it into sdk-next's plugin API. Also updates the sample plugin to register a primary agent instead of a subagent for local testing.
This commit is contained in:
parent
f8626865b9
commit
6a91a682e4
13 changed files with 998 additions and 883 deletions
|
|
@ -44,7 +44,7 @@ export const create = Effect.fn("OpenCode.create")(function* () {
|
|||
// `PluginContext`, so `ctx.agent.transform` and every other hook behave exactly
|
||||
// as they do for a config-discovered plugin. Define agent profiles here at
|
||||
// startup, then select one per Session with `sessions.create({ agent })`.
|
||||
plugin: plugins.register,
|
||||
plugin: Object.assign(plugins.register, client.plugin),
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue