@auto-engineer/job-graph-processor 1.148.0 → 1.150.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @auto-engineer/job-graph-processor@1.148.0 build /home/runner/work/auto-engineer/auto-engineer/packages/job-graph-processor
2
+ > @auto-engineer/job-graph-processor@1.150.0 build /home/runner/work/auto-engineer/auto-engineer/packages/job-graph-processor
3
3
  > tsc && tsx ../../scripts/fix-esm-imports.ts
4
4
 
5
5
  Fixed ESM imports in dist/
@@ -1,5 +1,5 @@
1
1
 
2
- > @auto-engineer/job-graph-processor@1.147.0 test /home/runner/work/auto-engineer/auto-engineer/packages/job-graph-processor
2
+ > @auto-engineer/job-graph-processor@1.149.0 test /home/runner/work/auto-engineer/auto-engineer/packages/job-graph-processor
3
3
  > vitest run --reporter=dot
4
4
 
5
5
 
@@ -9,6 +9,6 @@
9
9
 
10
10
   Test Files  12 passed (12)
11
11
   Tests  83 passed (83)
12
-  Start at  21:36:01
13
-  Duration  14.73s (transform 3.50s, setup 0ms, collect 11.55s, tests 4.56s, environment 3ms, prepare 9.76s)
12
+  Start at  12:21:17
13
+  Duration  14.16s (transform 4.00s, setup 0ms, collect 11.82s, tests 4.86s, environment 5ms, prepare 9.55s)
14
14
 
@@ -1,4 +1,4 @@
1
1
 
2
- > @auto-engineer/job-graph-processor@1.147.0 type-check /home/runner/work/auto-engineer/auto-engineer/packages/job-graph-processor
2
+ > @auto-engineer/job-graph-processor@1.149.0 type-check /home/runner/work/auto-engineer/auto-engineer/packages/job-graph-processor
3
3
  > tsc --noEmit
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,43 @@
1
1
  # @auto-engineer/job-graph-processor
2
2
 
3
+ ## 1.150.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`a502d47`](https://github.com/BeOnAuto/auto-engineer/commit/a502d472df528a1c5d53905898220c2a3a49d8a5) Thanks [@osamanar](https://github.com/osamanar)! -
8
+
9
+ - [`c96a70e`](https://github.com/BeOnAuto/auto-engineer/commit/c96a70e49f9f64213450d0b9840bc9a8b2b1d77d) Thanks [@osamanar](https://github.com/osamanar)! -
10
+
11
+ - [`4343bca`](https://github.com/BeOnAuto/auto-engineer/commit/4343bcaa2576703ae578fd9b7f5ec5b9776702a9) Thanks [@osamanar](https://github.com/osamanar)! -
12
+
13
+ - [`28ffce9`](https://github.com/BeOnAuto/auto-engineer/commit/28ffce9c8b95f0c3ca61728bd1f667fa9416d461) Thanks [@osamanar](https://github.com/osamanar)! -
14
+
15
+ - [`3fd5dbf`](https://github.com/BeOnAuto/auto-engineer/commit/3fd5dbfbfb4f7a5fe71ae53105b31a1b0f30f911) Thanks [@osamanar](https://github.com/osamanar)! -
16
+
17
+ ### Patch Changes
18
+
19
+ - [`41f3df3`](https://github.com/BeOnAuto/auto-engineer/commit/41f3df3025445ba92208c2b007b8e29a40489309) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - - **global**: version packages
20
+ - **global**: major refresh to all the docs
21
+ - Updated dependencies [[`a502d47`](https://github.com/BeOnAuto/auto-engineer/commit/a502d472df528a1c5d53905898220c2a3a49d8a5), [`c96a70e`](https://github.com/BeOnAuto/auto-engineer/commit/c96a70e49f9f64213450d0b9840bc9a8b2b1d77d), [`4343bca`](https://github.com/BeOnAuto/auto-engineer/commit/4343bcaa2576703ae578fd9b7f5ec5b9776702a9), [`28ffce9`](https://github.com/BeOnAuto/auto-engineer/commit/28ffce9c8b95f0c3ca61728bd1f667fa9416d461), [`41f3df3`](https://github.com/BeOnAuto/auto-engineer/commit/41f3df3025445ba92208c2b007b8e29a40489309), [`3fd5dbf`](https://github.com/BeOnAuto/auto-engineer/commit/3fd5dbfbfb4f7a5fe71ae53105b31a1b0f30f911)]:
22
+ - @auto-engineer/message-bus@1.150.0
23
+
24
+ ## 1.149.0
25
+
26
+ ### Minor Changes
27
+
28
+ - [`e1eebbd`](https://github.com/BeOnAuto/auto-engineer/commit/e1eebbdf4f209780e790094d2e6887c4fa809f98) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - - **server-generator-apollo-emmett**: add Given state ref hints to state.ts.ejs
29
+ - **server-generator-apollo-emmett**: context-aware nonCommandField instructions
30
+ - **server-generator-apollo-emmett**: add state context instruction
31
+ - **server-generator-apollo-emmett**: extract shared template helpers
32
+ - **server-generator-apollo-emmett**: filter state refs from hasGivenEvents in decide.ts.ejs
33
+
34
+ ### Patch Changes
35
+
36
+ - [`d38c81e`](https://github.com/BeOnAuto/auto-engineer/commit/d38c81e7bb442a39626564cf4f6d8d55b60d0a38) Thanks [@SamHatoum](https://github.com/SamHatoum)! -
37
+
38
+ - Updated dependencies [[`d38c81e`](https://github.com/BeOnAuto/auto-engineer/commit/d38c81e7bb442a39626564cf4f6d8d55b60d0a38), [`e1eebbd`](https://github.com/BeOnAuto/auto-engineer/commit/e1eebbdf4f209780e790094d2e6887c4fa809f98)]:
39
+ - @auto-engineer/message-bus@1.149.0
40
+
3
41
  ## 1.148.0
4
42
 
5
43
  ### Minor Changes
package/README.md CHANGED
@@ -217,6 +217,7 @@ import {
217
217
  getReadyJobs,
218
218
  getTransitiveDependents,
219
219
  isGraphComplete,
220
+ hasFailedJobs,
220
221
  applyPolicy,
221
222
  validateGraph,
222
223
  classifyJobEvent,
@@ -284,6 +285,10 @@ Returns job IDs whose dependencies are all resolved (respects `continue` policy)
284
285
 
285
286
  Returns `true` when every job has reached a terminal status.
286
287
 
288
+ #### `hasFailedJobs(state): boolean`
289
+
290
+ Returns `true` if any job has a `failed`, `skipped`, or `timed-out` status.
291
+
287
292
  #### `getTransitiveDependents(state, jobId): string[]`
288
293
 
289
294
  BFS traversal returning all downstream dependents of a job.
@@ -312,6 +317,10 @@ Extracts graph and job identifiers from a `graph:<graphId>:<jobId>` string.
312
317
 
313
318
  Returns `true` if the event's data contains an `error` field.
314
319
 
320
+ #### `handleProcessGraph(command): Promise<Event | Event[]>`
321
+
322
+ Standalone command handler that validates the graph and returns `JobDispatched` events for ready jobs, or a `GraphFailed` event on validation error. Does not wire up correlation-based event routing (use `createGraphProcessor` for that).
323
+
315
324
  #### `createTimeoutManager(onTimeout): TimeoutManager`
316
325
 
317
326
  Per-job timeout tracking with `start`, `clear`, and `clearAll`.
@@ -399,10 +408,10 @@ flowchart LR
399
408
  | Package | Usage |
400
409
  | ---------------------------- | ---------------------------------- |
401
410
  | `@auto-engineer/message-bus` | Correlation subscriptions, pub/sub |
411
+ | `@auto-engineer/pipeline` | Dev dependency (integration tests) |
402
412
 
403
413
  **External:**
404
414
 
405
- | Package | Usage |
406
- | ------------------------- | ---------------------- |
407
- | `@event-driven-io/emmett` | Event type import only |
408
- | `nanoid` | Unique ID generation |
415
+ | Package | Usage |
416
+ | -------- | -------------------- |
417
+ | `nanoid` | Unique ID generation |
package/package.json CHANGED
@@ -6,15 +6,15 @@
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "dependencies": {
8
8
  "nanoid": "^5.0.0",
9
- "@auto-engineer/message-bus": "1.148.0"
9
+ "@auto-engineer/message-bus": "1.150.0"
10
10
  },
11
11
  "devDependencies": {
12
- "@auto-engineer/pipeline": "1.148.0"
12
+ "@auto-engineer/pipeline": "1.150.0"
13
13
  },
14
14
  "publishConfig": {
15
15
  "access": "public"
16
16
  },
17
- "version": "1.148.0",
17
+ "version": "1.150.0",
18
18
  "scripts": {
19
19
  "build": "tsc && tsx ../../scripts/fix-esm-imports.ts",
20
20
  "test": "vitest run --reporter=dot",