@auto-engineer/message-bus 1.146.0 → 1.148.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/message-bus@1.146.0 build /home/runner/work/auto-engineer/auto-engineer/packages/message-bus
2
+ > @auto-engineer/message-bus@1.148.0 build /home/runner/work/auto-engineer/auto-engineer/packages/message-bus
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/message-bus@1.145.0 test /home/runner/work/auto-engineer/auto-engineer/packages/message-bus
2
+ > @auto-engineer/message-bus@1.147.0 test /home/runner/work/auto-engineer/auto-engineer/packages/message-bus
3
3
  > vitest run --reporter=dot
4
4
 
5
5
 
@@ -9,6 +9,6 @@
9
9
 
10
10
   Test Files  1 passed (1)
11
11
   Tests  7 passed (7)
12
-  Start at  14:01:48
13
-  Duration  1.58s (transform 380ms, setup 0ms, collect 335ms, tests 32ms, environment 0ms, prepare 472ms)
12
+  Start at  21:35:27
13
+  Duration  1.24s (transform 339ms, setup 0ms, collect 438ms, tests 32ms, environment 0ms, prepare 285ms)
14
14
 
@@ -1,4 +1,4 @@
1
1
 
2
- > @auto-engineer/message-bus@1.145.0 type-check /home/runner/work/auto-engineer/auto-engineer/packages/message-bus
2
+ > @auto-engineer/message-bus@1.147.0 type-check /home/runner/work/auto-engineer/auto-engineer/packages/message-bus
3
3
  > tsc --noEmit
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,66 @@
1
1
  # @auto-engineer/message-bus
2
2
 
3
+ ## 1.148.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`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
8
+
9
+ - [`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
10
+
11
+ - [`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
12
+
13
+ - [`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
14
+
15
+ - [`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
16
+ - Simplified template specs by removing inline duplicate definitions in favor of the shared helpers
17
+
18
+ ### Patch Changes
19
+
20
+ - [`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
21
+ - **server-generator-apollo-emmett**: filter state refs from given() in decide.specs.ts.ejs
22
+ - **server-generator-apollo-emmett**: move CS Given states from events to states array
23
+ - **global**: version packages
24
+ - **server-generator-apollo-emmett**: mark G1+G2 ketchup plan complete
25
+
26
+ - [`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
27
+ - Marked generator bug fix milestones G1 and G2 as complete
28
+
29
+ - [`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
30
+ - Prevented contradictory instructions from appearing in generated code when Given clauses contain only state references
31
+
32
+ - [`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
33
+
34
+ ## 1.147.0
35
+
36
+ ### Minor Changes
37
+
38
+ - [`e2d4008`](https://github.com/BeOnAuto/auto-engineer/commit/e2d4008281a41617cf5f9d569ed22badcf0cd065) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - - **server-generator-apollo-emmett**: generate aggregateStream pre-loading for cross-scene Givens
39
+ - **server-generator-apollo-emmett**: compute crossSceneGivens in template data
40
+ - **react-gen**: clean stale src/ subdirectories in scaffold step
41
+ - **server-generator-apollo-emmett**: return single object for id-lookup query resolvers
42
+ - **server-generator-apollo-emmett**: use narrative prefix in cross-scene import paths
43
+
44
+ ### Patch Changes
45
+
46
+ - [`6b87393`](https://github.com/BeOnAuto/auto-engineer/commit/6b873936a12636585cbddf03e4d752dde9080155) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Added planning documentation for fixing cross-stream Given states in the server generator
47
+
48
+ - [`0316cef`](https://github.com/BeOnAuto/auto-engineer/commit/0316cefd25f16e986418290337a9e813fa8395b1) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Added planning document for fixing generator bugs related to G1 and G2 scenarios
49
+
50
+ - [`cde9ffa`](https://github.com/BeOnAuto/auto-engineer/commit/cde9ffa01867f4a989ecdb79a0849246021b9e86) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Fixed empty files being generated in scaffold output for query/projection moments that have no local events
51
+
52
+ - [`53d65dd`](https://github.com/BeOnAuto/auto-engineer/commit/53d65dd80a3c348bc584c474bd2dc8ab5e9737cb) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Marked the G1+G2 ketchup plan as complete for the Apollo Emmett server generator
53
+
54
+ - [`1c99de6`](https://github.com/BeOnAuto/auto-engineer/commit/1c99de6e21e406d879fa964372ecb58e84f5b616) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Fixed incorrect placement of Given-step state references (e.g. WorkoutDraft, UserProfile) that were being added to the events array instead of the states array
55
+ - Eliminated phantom Event types appearing in generated events.ts files
56
+ - Eliminated phantom case handlers appearing in generated evolve.ts files
57
+
58
+ - [`f6cb5c2`](https://github.com/BeOnAuto/auto-engineer/commit/f6cb5c2908dc7cabf2a1d93c9000ad9682452cf7) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Fixed generated test files incorrectly using state references as events in the given() setup, ensuring only actual event references are included
59
+
60
+ - [`54b5163`](https://github.com/BeOnAuto/auto-engineer/commit/54b5163e6752ce2a2438aae1d759810d5460a687) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Reverted cross-stream aggregate pre-loading in generated command handlers
61
+ - Command handlers now correctly operate on a single stream, aligning with Emmett's event sourcing model
62
+ - Cross-aggregate data should be passed via command enrichment instead of pre-loading from other streams
63
+
3
64
  ## 1.146.0
4
65
 
5
66
  ### Minor Changes
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "tsx": "^4.20.3",
18
18
  "typescript": "^5.0.0"
19
19
  },
20
- "version": "1.146.0",
20
+ "version": "1.148.0",
21
21
  "scripts": {
22
22
  "build": "tsc && tsx ../../scripts/fix-esm-imports.ts",
23
23
  "clean": "rm -rf dist",