feat: simplified todo tool to single operation interface
- Refactored `todo` tool to accept a single operation object instead of an `ops` array. - Implemented parameter normalization to maintain backward compatibility with legacy array-based tool calls. - Updated tool instructions, documentation, and UI rendering components to reflect the new interface. - Added compatibility tests to verify rendering and execution for both legacy and current operation formats.
This commit is contained in:
@@ -5,17 +5,14 @@ export const interactionFixtures: Record<string, GalleryFixture> = {
|
||||
todo: {
|
||||
label: "Todo",
|
||||
streamingArgs: {
|
||||
ops: [{ op: "init", list: [{ phase: "Foundation", items: ["Scaffold crate"] }] }],
|
||||
op: "init",
|
||||
list: [{ phase: "Foundation", items: ["Scaffold crate"] }],
|
||||
},
|
||||
args: {
|
||||
ops: [
|
||||
{
|
||||
op: "init",
|
||||
list: [
|
||||
{ phase: "Foundation", items: ["Scaffold crate", "Wire workspace"] },
|
||||
{ phase: "Auth", items: ["Port credential store", "Wire OAuth providers"] },
|
||||
],
|
||||
},
|
||||
op: "init",
|
||||
list: [
|
||||
{ phase: "Foundation", items: ["Scaffold crate", "Wire workspace"] },
|
||||
{ phase: "Auth", items: ["Port credential store", "Wire OAuth providers"] },
|
||||
],
|
||||
},
|
||||
result: {
|
||||
|
||||
Reference in New Issue
Block a user