feat(plugin): flat tool draft with namespace
Effect draft.add accepts flat tool objects matching Promise ergonomics. Migrate the tool grouping concept fully to namespace: rename MCP's group helper/registration to namespace and thread namespace through the flat Effect and Promise draft declarations.
This commit is contained in:
parent
64ca9b8d77
commit
6714f74433
13 changed files with 157 additions and 88 deletions
|
|
@ -135,7 +135,7 @@ describe("fromPromise", () => {
|
|||
await ctx.tool.transform((tools) => {
|
||||
tools.add({
|
||||
name: "hello",
|
||||
options: { codemode: false },
|
||||
codemode: false,
|
||||
description: "Hello",
|
||||
input: Schema.Struct({ name: Schema.String }),
|
||||
output: Schema.String,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue