executant 2.0.2 → 2.0.3

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 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2695,7 +2695,14 @@ var INIT_STATE = {
2695
2695
  stepStartMs: 0
2696
2696
  };
2697
2697
  function appendLog(logFile, text) {
2698
- if (logFile) appendFileSync(logFile, text + "\n");
2698
+ if (!logFile) return;
2699
+ try {
2700
+ appendFileSync(logFile, text + "\n");
2701
+ } catch (err) {
2702
+ if (err.code !== "ENOENT") throw err;
2703
+ mkdirSync3(dirname3(logFile), { recursive: true });
2704
+ appendFileSync(logFile, text + "\n");
2705
+ }
2699
2706
  }
2700
2707
  function onWorkflowStart(ctx, s) {
2701
2708
  mkdirSync3(ctx.logDir, { recursive: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "executant",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "Harness for YAML-defined workflows that enables stepping through Claude sessions and bash commands",
5
5
  "repository": {
6
6
  "type": "git",