Repository navigation
Adopt unified ToolInfo and contract 0.9 - #47
Merged
Merged
Conversation
Record the plan for moving Workshop's pins to contract 0.9, updating `WorkshopBroker::chat` to `ToolInfo`, and flattening `ToolInfo` onto `ContractResponse` for `/prompts/contract`. Plan: /plan/2026-12-02-2-unified-tool-info.plan.md
Move Workshop's pins of the Harness, `runvil-plugin-sdk`, and the three library Plugins to contract 0.9 and unified `ToolInfo`. The root `Cargo.toml` pins each dependency at its merged commit, `Cargo.lock` updates to match, and `InferenceBroker` on `WorkshopBroker` switches `tools` from `Vec<ToolSchema>` to `Vec<Arc<ToolInfo>>`. - `runvil`, `harness-gateway-client`, and `plugin-mcp` move to `64b085369f9432073f0baa9e40d9cbdbe0a720cd`, and `runvil-plugin-sdk` moves to version `0.9.0` at `4c10a7d4d26c11e6a3055c6f6c4b5657f1bf2faa`. - `std-plugin` moves to `d45fa9e1746ed1afa099dee9392925d819c475d6`, `bashkit-plugin` to `f41b5002ae5a1412b04443236483ea6350197199`, and `web-plugin` to `0f2189478645a9d5ae892a13ab9b6879438ca794`. - The prompt contract route and the Run window client remain unchanged in this commit. Plan: /plan/2026-12-02-2-unified-tool-info.plan.md
Expose a prompt's callable tool metadata directly in the Run window's contract wire shape. `ContractResponse` flattens `Prompt::tool_info` via `#[serde(flatten)]` in `crates/workshop/server/src/routes/prompts.rs`, and `parseContract` in `crates/workshop/ui/src/services/run-api.ts` narrows `input_schema`, `title`, and the four hint keys onto `RunContract`. - `ContractResponse` replaces `args` with `input_schema` from `ToolInfo`, emits `title`, `read_only_hint`, `destructive_hint`, `idempotent_hint`, and `open_world_hint` only when set, and preserves `null` for absent `runvil` and `max_tool_iterations`. - `parseContract` maps missing or `null` `title` and hint keys to `null` on `RunContract` and rejects non-string or non-boolean values. - `renderContractRows` in `crates/workshop/ui/src/parts/run/run-rows.ts` reads `contract.inputSchema` and renders no rows for `title` or behavior hints. Plan: /plan/2026-12-02-2-unified-tool-info.plan.md
This was referenced Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves Workshop to unified
ToolInfoand contract 0.9 across three commits:plan/2026-12-02-2-unified-tool-info.plan.md.runvil,harness-gateway-client, andplugin-mcpat64b085369f9432073f0baa9e40d9cbdbe0a720cd,runvil-plugin-sdk0.9.0at4c10a7d4d26c11e6a3055c6f6c4b5657f1bf2faa,std-pluginatd45fa9e1746ed1afa099dee9392925d819c475d6,bashkit-pluginatf41b5002ae5a1412b04443236483ea6350197199, andweb-pluginat0f2189478645a9d5ae892a13ab9b6879438ca794, and switchWorkshopBroker::chattoVec<Arc<ToolInfo>>.Prompt::tool_infoontoContractResponseforPOST /prompts/contract(input_schemaplus optionaltitleand behavior hints, keeping explicitnullfor absentrunvilandmax_tool_iterations) and narrow the new fields inRunContractwith server and UI tests.Summary by CodeRabbit