@auto-engineer/job-graph-processor 1.147.0 → 1.149.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.
- package/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-test.log +3 -3
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +51 -0
- package/README.md +13 -4
- package/package.json +3 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @auto-engineer/job-graph-processor@1.
|
|
2
|
+
> @auto-engineer/job-graph-processor@1.149.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/
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @auto-engineer/job-graph-processor@1.
|
|
2
|
+
> @auto-engineer/job-graph-processor@1.148.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
|
[2m Test Files [22m [1m[32m12 passed[39m[22m[90m (12)[39m
|
|
11
11
|
[2m Tests [22m [1m[32m83 passed[39m[22m[90m (83)[39m
|
|
12
|
-
[2m Start at [22m
|
|
13
|
-
[2m Duration [22m 14.
|
|
12
|
+
[2m Start at [22m 07:23:13
|
|
13
|
+
[2m Duration [22m 14.90s[2m (transform 4.18s, setup 0ms, collect 11.96s, tests 4.50s, environment 7ms, prepare 9.52s)[22m
|
|
14
14
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @auto-engineer/job-graph-processor@1.
|
|
2
|
+
> @auto-engineer/job-graph-processor@1.148.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,56 @@
|
|
|
1
1
|
# @auto-engineer/job-graph-processor
|
|
2
2
|
|
|
3
|
+
## 1.149.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`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
|
|
8
|
+
- **server-generator-apollo-emmett**: context-aware nonCommandField instructions
|
|
9
|
+
- **server-generator-apollo-emmett**: add state context instruction
|
|
10
|
+
- **server-generator-apollo-emmett**: extract shared template helpers
|
|
11
|
+
- **server-generator-apollo-emmett**: filter state refs from hasGivenEvents in decide.ts.ejs
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`d38c81e`](https://github.com/BeOnAuto/auto-engineer/commit/d38c81e7bb442a39626564cf4f6d8d55b60d0a38) Thanks [@SamHatoum](https://github.com/SamHatoum)! -
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [[`d38c81e`](https://github.com/BeOnAuto/auto-engineer/commit/d38c81e7bb442a39626564cf4f6d8d55b60d0a38), [`e1eebbd`](https://github.com/BeOnAuto/auto-engineer/commit/e1eebbdf4f209780e790094d2e6887c4fa809f98)]:
|
|
18
|
+
- @auto-engineer/message-bus@1.149.0
|
|
19
|
+
|
|
20
|
+
## 1.148.0
|
|
21
|
+
|
|
22
|
+
### Minor Changes
|
|
23
|
+
|
|
24
|
+
- [`d5ba3a0`](https://github.com/BeOnAuto/auto-engineer/commit/d5ba3a0e3fb0f6a9ad7a3a8b1815590ea77a5b42) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Added state context instruction to generated decide handlers, preventing unnecessary narrowing when Given steps contain only state references
|
|
25
|
+
|
|
26
|
+
- [`e0cdc4e`](https://github.com/BeOnAuto/auto-engineer/commit/e0cdc4e3363ad84d4bc49996a600ac75c97ccc38) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Added context-aware classification of non-command fields in generated decide.ts scaffolds, distinguishing between date-derived, state-derived, and not-yet-tested fields
|
|
27
|
+
|
|
28
|
+
- [`9195db7`](https://github.com/BeOnAuto/auto-engineer/commit/9195db78cb707d658866cee99a1c73d34fb4efde) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Extracted shared template helpers into a dedicated module for cleaner code generation
|
|
29
|
+
|
|
30
|
+
- [`abb6540`](https://github.com/BeOnAuto/auto-engineer/commit/abb6540db7196ed7935c8a8610695828f9035fc3) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Added status variant hints from Given state references to the state template, helping implementers create matching discriminated union variants
|
|
31
|
+
|
|
32
|
+
- [`9195db7`](https://github.com/BeOnAuto/auto-engineer/commit/9195db78cb707d658866cee99a1c73d34fb4efde) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Extracted shared template helper functions into a dedicated module for better code reuse across generators
|
|
33
|
+
- Simplified template specs by removing inline duplicate definitions in favor of the shared helpers
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- [`88fb1da`](https://github.com/BeOnAuto/auto-engineer/commit/88fb1da2b222de04dd4959d87657395ee960a6ce) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - - **server-generator-apollo-emmett**: skip empty file plans in scaffold output
|
|
38
|
+
- **server-generator-apollo-emmett**: filter state refs from given() in decide.specs.ts.ejs
|
|
39
|
+
- **server-generator-apollo-emmett**: move CS Given states from events to states array
|
|
40
|
+
- **global**: version packages
|
|
41
|
+
- **server-generator-apollo-emmett**: mark G1+G2 ketchup plan complete
|
|
42
|
+
|
|
43
|
+
- [`4255f6d`](https://github.com/BeOnAuto/auto-engineer/commit/4255f6db0d128979e573244a615886482ce799b0) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Updated ketchup plan for state reference fix in decide template generator
|
|
44
|
+
- Marked generator bug fix milestones G1 and G2 as complete
|
|
45
|
+
|
|
46
|
+
- [`62f1ea3`](https://github.com/BeOnAuto/auto-engineer/commit/62f1ea3dd1b4275211574e3df9d9a6571ae9b27a) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Fixed scaffold generation to correctly distinguish between event and state references in decision handlers
|
|
47
|
+
- Prevented contradictory instructions from appearing in generated code when Given clauses contain only state references
|
|
48
|
+
|
|
49
|
+
- [`ba4f5c9`](https://github.com/BeOnAuto/auto-engineer/commit/ba4f5c9749fb1c15d444e78ca9a2689817f039cb) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Added implementation plan for decide.ts code generation fixes in the Apollo Emmett server generator
|
|
50
|
+
|
|
51
|
+
- Updated dependencies [[`88fb1da`](https://github.com/BeOnAuto/auto-engineer/commit/88fb1da2b222de04dd4959d87657395ee960a6ce), [`d5ba3a0`](https://github.com/BeOnAuto/auto-engineer/commit/d5ba3a0e3fb0f6a9ad7a3a8b1815590ea77a5b42), [`e0cdc4e`](https://github.com/BeOnAuto/auto-engineer/commit/e0cdc4e3363ad84d4bc49996a600ac75c97ccc38), [`4255f6d`](https://github.com/BeOnAuto/auto-engineer/commit/4255f6db0d128979e573244a615886482ce799b0), [`9195db7`](https://github.com/BeOnAuto/auto-engineer/commit/9195db78cb707d658866cee99a1c73d34fb4efde), [`abb6540`](https://github.com/BeOnAuto/auto-engineer/commit/abb6540db7196ed7935c8a8610695828f9035fc3), [`9195db7`](https://github.com/BeOnAuto/auto-engineer/commit/9195db78cb707d658866cee99a1c73d34fb4efde), [`62f1ea3`](https://github.com/BeOnAuto/auto-engineer/commit/62f1ea3dd1b4275211574e3df9d9a6571ae9b27a), [`ba4f5c9`](https://github.com/BeOnAuto/auto-engineer/commit/ba4f5c9749fb1c15d444e78ca9a2689817f039cb)]:
|
|
52
|
+
- @auto-engineer/message-bus@1.148.0
|
|
53
|
+
|
|
3
54
|
## 1.147.0
|
|
4
55
|
|
|
5
56
|
### 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
|
|
406
|
-
|
|
|
407
|
-
|
|
|
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.
|
|
9
|
+
"@auto-engineer/message-bus": "1.149.0"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@auto-engineer/pipeline": "1.
|
|
12
|
+
"@auto-engineer/pipeline": "1.149.0"
|
|
13
13
|
},
|
|
14
14
|
"publishConfig": {
|
|
15
15
|
"access": "public"
|
|
16
16
|
},
|
|
17
|
-
"version": "1.
|
|
17
|
+
"version": "1.149.0",
|
|
18
18
|
"scripts": {
|
|
19
19
|
"build": "tsc && tsx ../../scripts/fix-esm-imports.ts",
|
|
20
20
|
"test": "vitest run --reporter=dot",
|