executant 1.7.0 → 1.9.0
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.
- package/README.md +19 -0
- package/dist/index.js +642 -293
- package/dist/prompts/plan-decompose.txt +40 -0
- package/dist/prompts/plan-judge.txt +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -87,6 +87,24 @@ steps:
|
|
|
87
87
|
command: npx eslint src/{{item}}
|
|
88
88
|
```
|
|
89
89
|
|
|
90
|
+
Use `steps:` inside a `forEach` or `repeat` to run **multiple child steps per iteration**:
|
|
91
|
+
|
|
92
|
+
```yaml
|
|
93
|
+
steps:
|
|
94
|
+
- name: verify each package
|
|
95
|
+
forEach: [packages/api, packages/web, packages/shared]
|
|
96
|
+
steps:
|
|
97
|
+
- name: lint {{item}}
|
|
98
|
+
type: script
|
|
99
|
+
command: npm run lint --workspace={{item}}
|
|
100
|
+
- name: test {{item}}
|
|
101
|
+
type: script
|
|
102
|
+
command: npm test --workspace={{item}}
|
|
103
|
+
- name: build {{item}}
|
|
104
|
+
type: script
|
|
105
|
+
command: npm run build --workspace={{item}}
|
|
106
|
+
```
|
|
107
|
+
|
|
90
108
|
Use `repeat: N` as shorthand when there is no meaningful list — just a count. `{{item}}` is the 1-based iteration number:
|
|
91
109
|
|
|
92
110
|
```yaml
|
|
@@ -110,6 +128,7 @@ steps:
|
|
|
110
128
|
| `hello-world.yaml` | Simple prompt steps |
|
|
111
129
|
| `mixed-workflow.yaml` | Script + prompt steps together |
|
|
112
130
|
| `foreach-demo.yaml` | Inline lists and shell command iteration |
|
|
131
|
+
| `nested-steps-demo.yaml` | Multiple child steps per forEach / repeat iteration |
|
|
113
132
|
| `vars-demo.yaml` | Variable substitution |
|
|
114
133
|
| `judge-demo.yaml` | LLM-as-judge retry loop |
|
|
115
134
|
| `logging-demo.yaml` | Log steps, self-healing, judge |
|