Compare commits

...
1 Commits
Author SHA1 Message Date
rekram1-node b963d3a7a7 docs(plugin): correct plugin state reference 2026-10-02 00:42:49 +00:00
2 changed files with 3 additions and 3 deletions

No files matched your search

@@ -699,7 +699,7 @@ interface MCPDomain extends Pick<McpApi<unknown>, "list"> {
### Plugins
List active, failed, and resolved plugins at the current location.
List active and failed plugins at the current location.
```ts
effect: (ctx) =>
@@ -718,7 +718,7 @@ effect: (ctx) =>
const plugin = ctx.plugin
const active = yield* plugin.list().pipe(
Effect.orDie,
Effect.map((result) => result.data.filter((item) => item.status === "active")),
Effect.map((result) => result.data.filter((item) => item.state.status === "active")),
)
yield* Effect.logInfo("active plugin count", { count: active.length })
}),
@@ -646,7 +646,7 @@ interface MCPEditor {
### Plugins
List the plugins currently active for a location.
List active and failed plugins at the current location.
```ts
const plugins = await ctx.plugin.list()