@auto-engineer/job-graph-processor 1.148.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 +17 -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,22 @@
|
|
|
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
|
+
|
|
3
20
|
## 1.148.0
|
|
4
21
|
|
|
5
22
|
### 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",
|