executant 1.11.0 → 1.13.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 +10 -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;
@@ -1213,6 +1221,8 @@ function IterationRow({ record, tick }) {
1213
1221
  /* @__PURE__ */ jsx2(Text2, { dimColor: true, children: " " }),
1214
1222
  /* @__PURE__ */ jsx2(Text2, { color, children: icon }),
1215
1223
  /* @__PURE__ */ jsx2(Text2, { children: " " }),
1224
+ /* @__PURE__ */ jsx2(Text2, { dimColor: true, children: `[${record.iteration}/${record.total}]` }),
1225
+ /* @__PURE__ */ jsx2(Text2, { children: " " }),
1216
1226
  /* @__PURE__ */ jsxs2(
1217
1227
  Text2,
1218
1228
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "executant",
3
- "version": "1.11.0",
3
+ "version": "1.13.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",