@calmo/task-runner 3.8.3 → 3.8.4

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 (47) hide show
  1. package/AGENTS.md +2 -0
  2. package/CHANGELOG.md +5 -0
  3. package/coverage/coverage-final.json +1 -1
  4. package/coverage/index.html +1 -1
  5. package/coverage/lcov-report/index.html +1 -1
  6. package/coverage/lcov-report/src/EventBus.ts.html +1 -1
  7. package/coverage/lcov-report/src/ExecutionConstants.ts.html +1 -1
  8. package/coverage/lcov-report/src/TaskGraphValidationError.ts.html +1 -1
  9. package/coverage/lcov-report/src/TaskGraphValidator.ts.html +4 -10
  10. package/coverage/lcov-report/src/TaskRunner.ts.html +1 -1
  11. package/coverage/lcov-report/src/TaskRunnerBuilder.ts.html +1 -1
  12. package/coverage/lcov-report/src/TaskRunnerExecutionConfig.ts.html +1 -1
  13. package/coverage/lcov-report/src/TaskStateManager.ts.html +1 -1
  14. package/coverage/lcov-report/src/WorkflowExecutor.ts.html +1 -1
  15. package/coverage/lcov-report/src/contracts/ErrorTypes.ts.html +1 -1
  16. package/coverage/lcov-report/src/contracts/RunnerEvents.ts.html +1 -1
  17. package/coverage/lcov-report/src/contracts/index.html +1 -1
  18. package/coverage/lcov-report/src/index.html +1 -1
  19. package/coverage/lcov-report/src/strategies/DryRunExecutionStrategy.ts.html +1 -1
  20. package/coverage/lcov-report/src/strategies/RetryingExecutionStrategy.ts.html +1 -1
  21. package/coverage/lcov-report/src/strategies/StandardExecutionStrategy.ts.html +1 -1
  22. package/coverage/lcov-report/src/strategies/index.html +1 -1
  23. package/coverage/lcov.info +18 -18
  24. package/coverage/src/EventBus.ts.html +1 -1
  25. package/coverage/src/ExecutionConstants.ts.html +1 -1
  26. package/coverage/src/TaskGraphValidationError.ts.html +1 -1
  27. package/coverage/src/TaskGraphValidator.ts.html +4 -10
  28. package/coverage/src/TaskRunner.ts.html +1 -1
  29. package/coverage/src/TaskRunnerBuilder.ts.html +1 -1
  30. package/coverage/src/TaskRunnerExecutionConfig.ts.html +1 -1
  31. package/coverage/src/TaskStateManager.ts.html +1 -1
  32. package/coverage/src/WorkflowExecutor.ts.html +1 -1
  33. package/coverage/src/contracts/ErrorTypes.ts.html +1 -1
  34. package/coverage/src/contracts/RunnerEvents.ts.html +1 -1
  35. package/coverage/src/contracts/index.html +1 -1
  36. package/coverage/src/index.html +1 -1
  37. package/coverage/src/strategies/DryRunExecutionStrategy.ts.html +1 -1
  38. package/coverage/src/strategies/RetryingExecutionStrategy.ts.html +1 -1
  39. package/coverage/src/strategies/StandardExecutionStrategy.ts.html +1 -1
  40. package/coverage/src/strategies/index.html +1 -1
  41. package/dist/TaskGraphValidator.js +2 -4
  42. package/dist/TaskGraphValidator.js.map +1 -1
  43. package/openspec/changes/feat-continue-on-error/proposal.md +20 -0
  44. package/openspec/changes/feat-continue-on-error/tasks.md +17 -0
  45. package/package.json +1 -1
  46. package/src/TaskGraphValidator.ts +2 -4
  47. package/test-report.xml +143 -143
@@ -139,7 +139,7 @@ export interface TaskRunnerExecutionConfig {
139
139
  <div class='footer quiet pad2 space-top1 center small'>
140
140
  Code coverage generated by
141
141
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
142
- at 2026-01-21T01:20:30.153Z
142
+ at 2026-01-21T21:46:28.723Z
143
143
  </div>
144
144
  <script src="../prettify.js"></script>
145
145
  <script>
@@ -514,7 +514,7 @@ export class TaskStateManager&lt;TContext&gt; {
514
514
  <div class='footer quiet pad2 space-top1 center small'>
515
515
  Code coverage generated by
516
516
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
517
- at 2026-01-21T01:20:30.153Z
517
+ at 2026-01-21T21:46:28.723Z
518
518
  </div>
519
519
  <script src="../prettify.js"></script>
520
520
  <script>
@@ -697,7 +697,7 @@ export class WorkflowExecutor&lt;TContext&gt; {
697
697
  <div class='footer quiet pad2 space-top1 center small'>
698
698
  Code coverage generated by
699
699
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
700
- at 2026-01-21T01:20:30.153Z
700
+ at 2026-01-21T21:46:28.723Z
701
701
  </div>
702
702
  <script src="../prettify.js"></script>
703
703
  <script>
@@ -88,7 +88,7 @@ export const ERROR_CYCLE = "cycle" as const;
88
88
  <div class='footer quiet pad2 space-top1 center small'>
89
89
  Code coverage generated by
90
90
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
91
- at 2026-01-21T01:20:30.153Z
91
+ at 2026-01-21T21:46:28.723Z
92
92
  </div>
93
93
  <script src="../../prettify.js"></script>
94
94
  <script>
@@ -202,7 +202,7 @@ export type ListenerMap&lt;TContext&gt; = {
202
202
  <div class='footer quiet pad2 space-top1 center small'>
203
203
  Code coverage generated by
204
204
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
205
- at 2026-01-21T01:20:30.153Z
205
+ at 2026-01-21T21:46:28.723Z
206
206
  </div>
207
207
  <script src="../../prettify.js"></script>
208
208
  <script>
@@ -116,7 +116,7 @@
116
116
  <div class='footer quiet pad2 space-top1 center small'>
117
117
  Code coverage generated by
118
118
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
119
- at 2026-01-21T01:20:30.153Z
119
+ at 2026-01-21T21:46:28.723Z
120
120
  </div>
121
121
  <script src="../../prettify.js"></script>
122
122
  <script>
@@ -221,7 +221,7 @@
221
221
  <div class='footer quiet pad2 space-top1 center small'>
222
222
  Code coverage generated by
223
223
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
224
- at 2026-01-21T01:20:30.153Z
224
+ at 2026-01-21T21:46:28.723Z
225
225
  </div>
226
226
  <script src="../prettify.js"></script>
227
227
  <script>
@@ -163,7 +163,7 @@ export class DryRunExecutionStrategy&lt;
163
163
  <div class='footer quiet pad2 space-top1 center small'>
164
164
  Code coverage generated by
165
165
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
166
- at 2026-01-21T01:20:30.153Z
166
+ at 2026-01-21T21:46:28.723Z
167
167
  </div>
168
168
  <script src="../../prettify.js"></script>
169
169
  <script>
@@ -358,7 +358,7 @@ export class RetryingExecutionStrategy&lt;
358
358
  <div class='footer quiet pad2 space-top1 center small'>
359
359
  Code coverage generated by
360
360
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
361
- at 2026-01-21T01:20:30.153Z
361
+ at 2026-01-21T21:46:28.723Z
362
362
  </div>
363
363
  <script src="../../prettify.js"></script>
364
364
  <script>
@@ -175,7 +175,7 @@ export class StandardExecutionStrategy&lt;
175
175
  <div class='footer quiet pad2 space-top1 center small'>
176
176
  Code coverage generated by
177
177
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
178
- at 2026-01-21T01:20:30.153Z
178
+ at 2026-01-21T21:46:28.723Z
179
179
  </div>
180
180
  <script src="../../prettify.js"></script>
181
181
  <script>
@@ -131,7 +131,7 @@
131
131
  <div class='footer quiet pad2 space-top1 center small'>
132
132
  Code coverage generated by
133
133
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
134
- at 2026-01-21T01:20:30.153Z
134
+ at 2026-01-21T21:46:28.723Z
135
135
  </div>
136
136
  <script src="../../prettify.js"></script>
137
137
  <script>
@@ -103,8 +103,7 @@ export class TaskGraphValidator {
103
103
  stack.push({
104
104
  taskId: startTaskId,
105
105
  index: 0,
106
- /* v8 ignore next */
107
- dependencies: adjacencyList.get(startTaskId) ?? [],
106
+ dependencies: adjacencyList.get(startTaskId),
108
107
  });
109
108
  while (stack.length > 0) {
110
109
  const frame = stack[stack.length - 1];
@@ -124,8 +123,7 @@ export class TaskGraphValidator {
124
123
  stack.push({
125
124
  taskId: dependenceId,
126
125
  index: 0,
127
- /* v8 ignore next */
128
- dependencies: adjacencyList.get(dependenceId) ?? [],
126
+ dependencies: adjacencyList.get(dependenceId),
129
127
  });
130
128
  }
131
129
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TaskGraphValidator.js","sourceRoot":"","sources":["../src/TaskGraphValidator.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,WAAW,EACX,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,OAAO,kBAAkB;IAC7B;;;;;;;;;OASG;IACH,QAAQ,CAAC,SAAoB;QAC3B,MAAM,MAAM,GAAsB,EAAE,CAAC;QAErC,+BAA+B;QAC/B,MAAM,OAAO,GAAG,IAAI,CAAC,mBAAmB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAE5D,oCAAoC;QACpC,IAAI,CAAC,wBAAwB,CAAC,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAE1D,sBAAsB;QACtB,8GAA8G;QAC9G,MAAM,sBAAsB,GAAG,MAAM,CAAC,IAAI,CACxC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,wBAAwB,CAC3C,CAAC;QAEF,IAAI,CAAC,sBAAsB,EAAE,CAAC;YAC5B,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QACtC,CAAC;QAED,OAAO;YACL,OAAO,EAAE,MAAM,CAAC,MAAM,KAAK,CAAC;YAC5B,MAAM;SACP,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,kBAAkB,CAAC,MAAwB;QACzC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QACzD,OAAO,iCAAiC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;IACpE,CAAC;IAEO,mBAAmB,CACzB,SAAoB,EACpB,MAAyB;QAEzB,MAAM,OAAO,GAAG,IAAI,GAAG,EAAU,CAAC;QAClC,KAAK,MAAM,IAAI,IAAI,SA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 ## Why
4
+
5
+ Currently, if a task fails, all tasks that depend on it are automatically skipped. This is a safe default, but it prevents users from defining "non-critical" tasks (e.g., "Cleanup Temp Files", "Send Optional Notification") that should not block the workflow if they fail. Users often want downstream tasks to continue executing even if a specific non-essential dependency fails.
6
+
7
+ ## What Changes
8
+
9
+ - Update `TaskStep` interface to include an optional `continueOnError: boolean` property (defaulting to `false`).
10
+ - Update `TaskStateManager` to be aware of task definitions.
11
+ - Update `TaskStateManager.processDependencies` logic:
12
+ - If a dependency failed but has `continueOnError: true`, treat it as "satisfied" for the purpose of unblocking dependents.
13
+ - The dependent task will execute as if the dependency succeeded.
14
+ - The failed task's result remains `status: "failure"`, preserving visibility of the error.
15
+
16
+ ## Impact
17
+
18
+ - Affected specs: `001-generic-task-runner`
19
+ - Affected code: `src/TaskStep.ts`, `src/TaskStateManager.ts`
20
+ - **Non-breaking change**: The default behavior remains (stop on error). Users must opt-in by setting the flag.
@@ -0,0 +1,17 @@
1
+ # Tasks: Continue On Error
2
+
3
+ - [ ] **Update TaskStep Interface**
4
+ - [ ] Add `continueOnError?: boolean` to `TaskStep<TContext>` in `src/TaskStep.ts`.
5
+ - [ ] Update documentation comments for the new property.
6
+
7
+ - [ ] **Update TaskStateManager**
8
+ - [ ] Modify `TaskStateManager` to store the full `TaskStep` definitions map (name -> step) during initialization (`initialize` method).
9
+ - [ ] Update `processDependencies` to check `continueOnError` property when a dependency is in "failure" state.
10
+ - [ ] If `continueOnError` is true, allow the dependent task to proceed (do not mark as skipped).
11
+
12
+ - [ ] **Tests**
13
+ - [ ] Create a new test file `tests/continueOnError.test.ts`.
14
+ - [ ] Test case: Task A fails (default) -> Task B is skipped. (Regression check)
15
+ - [ ] Test case: Task A fails (continueOnError: true) -> Task B runs.
16
+ - [ ] Test case: Task A fails (continueOnError: true) -> Task B runs -> Task C runs.
17
+ - [ ] Test case: Task A fails (continueOnError: true) -> Task B fails (continueOnError: false) -> Task C skipped.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calmo/task-runner",
3
- "version": "3.8.3",
3
+ "version": "3.8.4",
4
4
  "description": "A lightweight, type-safe, and domain-agnostic task orchestration engine. It resolves a Directed Acyclic Graph (DAG) of steps, executes independent tasks in parallel, and manages a shared context across the pipeline.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -145,8 +145,7 @@ export class TaskGraphValidator implements ITaskGraphValidator {
145
145
  stack.push({
146
146
  taskId: startTaskId,
147
147
  index: 0,
148
- /* v8 ignore next */
149
- dependencies: adjacencyList.get(startTaskId) ?? [],
148
+ dependencies: adjacencyList.get(startTaskId)!,
150
149
  });
151
150
 
152
151
  while (stack.length > 0) {
@@ -171,8 +170,7 @@ export class TaskGraphValidator implements ITaskGraphValidator {
171
170
  stack.push({
172
171
  taskId: dependenceId,
173
172
  index: 0,
174
- /* v8 ignore next */
175
- dependencies: adjacencyList.get(dependenceId) ?? [],
173
+ dependencies: adjacencyList.get(dependenceId)!,
176
174
  });
177
175
  }
178
176
  } else {