taias 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -80,11 +80,13 @@ return {
80
80
 
81
81
  ### `defineFlow(flowId, builder)`
82
82
 
83
- Creates a flow definition. Each step is a logic statement: a match condition paired with a decision.
83
+ Creates a flow definition. Each step is a logic statement: a match condition paired with a decision. Match condition fields support operators (`is`, `isNot`); bare strings are sugar for `{ is: "..." }`.
84
84
 
85
85
  ```ts
86
86
  const myFlow = defineFlow("my_flow", (flow) => {
87
- flow.step({ toolName: "tool_name" }, { nextTool: "next_tool_name" });
87
+ flow.step({ toolName: { is: "tool_a" } }, { nextTool: "tool_b" }); // explicit equality
88
+ flow.step({ toolName: { isNot: "abort" } }, { nextTool: "continue" }); // negation
89
+ flow.step({ toolName: "tool_a" }, { nextTool: "tool_b" }); // bare string = sugar for { is: "tool_a" }
88
90
  });
89
91
  ```
90
92
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taias",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "type": "module",
5
5
  "description": "Taias - Give your MCP server an opinion, guide your users to achieve outcomes",
6
6
  "license": "Apache-2.0",