executant 1.11.0 → 1.12.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.
Files changed (2) hide show
  1. package/dist/index.js +8 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -639,6 +639,14 @@ async function* runForEach(task, from) {
639
639
  const total = items.length;
640
640
  const innerTotal = task.inner.length;
641
641
  const startIteration = from?.[0] ?? 1;
642
+ if (startIteration > 1 && startIteration > total) {
643
+ yield {
644
+ type: "log",
645
+ level: "warn",
646
+ text: `[from-step] No iterations to run: target iteration ${startIteration} exceeds total ${total} in "${task.name}"`
647
+ };
648
+ return;
649
+ }
642
650
  for (const [i, item] of items.entries()) {
643
651
  const iteration = i + 1;
644
652
  if (iteration < startIteration) continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "executant",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "description": "Harness for YAML-defined workflows that enables stepping through Claude sessions and bash commands",
5
5
  "repository": {
6
6
  "type": "git",