@auto-engineer/message-bus 1.145.0 → 1.147.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.145.0 build /home/runner/work/auto-engineer/auto-engineer/packages/message-bus
2
+ > @auto-engineer/message-bus@1.147.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.144.0 test /home/runner/work/auto-engineer/auto-engineer/packages/message-bus
2
+ > @auto-engineer/message-bus@1.146.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  07:42:43
13
-  Duration  1.92s (transform 340ms, setup 0ms, collect 403ms, tests 28ms, environment 0ms, prepare 588ms)
12
+  Start at  19:11:22
13
+  Duration  2.14s (transform 574ms, setup 0ms, collect 607ms, tests 40ms, environment 0ms, prepare 603ms)
14
14
 
@@ -1,4 +1,4 @@
1
1
 
2
- > @auto-engineer/message-bus@1.144.0 type-check /home/runner/work/auto-engineer/auto-engineer/packages/message-bus
2
+ > @auto-engineer/message-bus@1.146.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,70 @@
1
1
  # @auto-engineer/message-bus
2
2
 
3
+ ## 1.147.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`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
8
+ - **server-generator-apollo-emmett**: compute crossSceneGivens in template data
9
+ - **react-gen**: clean stale src/ subdirectories in scaffold step
10
+ - **server-generator-apollo-emmett**: return single object for id-lookup query resolvers
11
+ - **server-generator-apollo-emmett**: use narrative prefix in cross-scene import paths
12
+
13
+ ### Patch Changes
14
+
15
+ - [`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
16
+
17
+ - [`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
18
+
19
+ - [`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
20
+
21
+ - [`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
22
+
23
+ - [`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
24
+ - Eliminated phantom Event types appearing in generated events.ts files
25
+ - Eliminated phantom case handlers appearing in generated evolve.ts files
26
+
27
+ - [`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
28
+
29
+ - [`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
30
+ - Command handlers now correctly operate on a single stream, aligning with Emmett's event sourcing model
31
+ - Cross-aggregate data should be passed via command enrichment instead of pre-loading from other streams
32
+
33
+ ## 1.146.0
34
+
35
+ ### Minor Changes
36
+
37
+ - [`d5786a1`](https://github.com/BeOnAuto/auto-engineer/commit/d5786a13f0a725715c6a7cf460576ec5ae2cf006) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Added cross-scene Given event detection that identifies when a Given step references events produced by a different scene
38
+ - Computes source stream patterns and links stream pattern variables to command fields for proper event resolution in handle templates
39
+
40
+ - [`f919ab8`](https://github.com/BeOnAuto/auto-engineer/commit/f919ab8b5954397a2c73a4c6f2ea0f781fb42373) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Added automatic pre-loading of cross-scene Given events in generated command handlers
41
+ - Generated handle.ts now reads external aggregate state from the event store before processing commands
42
+ - Ensures cross-scene events are available at runtime, matching test behavior
43
+
44
+ - [`b43f4e5`](https://github.com/BeOnAuto/auto-engineer/commit/b43f4e5cea147bc94d2baa31ca41694fa8ac0648) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Added automatic cleanup of stale source directories during project scaffolding to prevent validation failures from prior generations
45
+
46
+ - [`08b1aac`](https://github.com/BeOnAuto/auto-engineer/commit/08b1aac466fcaa402bae5f347b29d26309c07533) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - - **narrative**: replace UISchema with UISpecSchema for JSON Render specs
47
+ - **global**: version packages
48
+
49
+ ### Patch Changes
50
+
51
+ - [`1bb3450`](https://github.com/BeOnAuto/auto-engineer/commit/1bb3450e2a717095a729567b10c7cdd4c2cc0ee3) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Fixed cross-scene import paths to include the narrative prefix in directory names, resolving broken references between scenes in generated Apollo/Emmett server code
52
+
53
+ - [`5c461e2`](https://github.com/BeOnAuto/auto-engineer/commit/5c461e2a0b179196f5fee1bc6e97f12d786869f4) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Added plan for cleaning up stale directories in the React generator
54
+
55
+ - [`e50042b`](https://github.com/BeOnAuto/auto-engineer/commit/e50042b4aa74c6927f21d3fa4cead565ebe1b321) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Added source scene directory name to Message type to support correct cross-scene import path resolution
56
+
57
+ - [`20c1f72`](https://github.com/BeOnAuto/auto-engineer/commit/20c1f7251a75f01c874908b535689f5b005f480d) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Finalized cleanup plan for removing stale directories during React code generation scaffolding
58
+
59
+ - [`ee01249`](https://github.com/BeOnAuto/auto-engineer/commit/ee01249e68270d940039bf9721d14f7e120f5424) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Finalized planning for cross-scene Given events support in the Apollo Emmett server generator
60
+
61
+ - [`d2d750d`](https://github.com/BeOnAuto/auto-engineer/commit/d2d750dc7d4f0e7d350fd1b4f7f2cafc2f4d249b) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Per-entity query resolvers that look up by ID now return a single object (or null) instead of an array
62
+ - Automatically detects ID-lookup queries based on argument mapping to the entity's ID field
63
+
64
+ - [`bb63e07`](https://github.com/BeOnAuto/auto-engineer/commit/bb63e071efadb52a838efa1c677caf1640fdf69f) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Added planning for cross-scene Given event support in server command handlers
65
+
66
+ - [`2a893a3`](https://github.com/BeOnAuto/auto-engineer/commit/2a893a38f3a7b568fd608ec0e09644984167a95b) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - Finalized plan for G1 and G3 fixes in the Apollo Emmett server generator
67
+
3
68
  ## 1.145.0
4
69
 
5
70
  ### 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.145.0",
20
+ "version": "1.147.0",
21
21
  "scripts": {
22
22
  "build": "tsc && tsx ../../scripts/fix-esm-imports.ts",
23
23
  "clean": "rm -rf dist",