@auto-engineer/narrative 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/narrative@1.145.0 build /home/runner/work/auto-engineer/auto-engineer/packages/narrative
2
+ > @auto-engineer/narrative@1.147.0 build /home/runner/work/auto-engineer/auto-engineer/packages/narrative
3
3
  > tsx scripts/build.ts
4
4
 
5
5
  Running: tsc
@@ -1,5 +1,5 @@
1
1
 
2
- > @auto-engineer/narrative@1.144.0 test /home/runner/work/auto-engineer/auto-engineer/packages/narrative
2
+ > @auto-engineer/narrative@1.146.0 test /home/runner/work/auto-engineer/auto-engineer/packages/narrative
3
3
  > vitest run --reporter=dot
4
4
 
5
5
 
@@ -9,6 +9,6 @@
9
9
 
10
10
   Test Files  22 passed (22)
11
11
   Tests  352 passed (352)
12
-  Start at  07:42:59
13
-  Duration  43.79s (transform 8.27s, setup 0ms, collect 56.25s, tests 29.99s, environment 23ms, prepare 15.57s)
12
+  Start at  19:11:53
13
+  Duration  49.23s (transform 9.86s, setup 0ms, collect 62.10s, tests 33.40s, environment 40ms, prepare 16.62s)
14
14
 
@@ -1,4 +1,4 @@
1
1
 
2
- > @auto-engineer/narrative@1.144.0 type-check /home/runner/work/auto-engineer/auto-engineer/packages/narrative
2
+ > @auto-engineer/narrative@1.146.0 type-check /home/runner/work/auto-engineer/auto-engineer/packages/narrative
3
3
  > tsc --noEmit
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,79 @@
1
1
  # @auto-engineer/flow
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
+ - Updated dependencies [[`6b87393`](https://github.com/BeOnAuto/auto-engineer/commit/6b873936a12636585cbddf03e4d752dde9080155), [`0316cef`](https://github.com/BeOnAuto/auto-engineer/commit/0316cefd25f16e986418290337a9e813fa8395b1), [`cde9ffa`](https://github.com/BeOnAuto/auto-engineer/commit/cde9ffa01867f4a989ecdb79a0849246021b9e86), [`53d65dd`](https://github.com/BeOnAuto/auto-engineer/commit/53d65dd80a3c348bc584c474bd2dc8ab5e9737cb), [`1c99de6`](https://github.com/BeOnAuto/auto-engineer/commit/1c99de6e21e406d879fa964372ecb58e84f5b616), [`e2d4008`](https://github.com/BeOnAuto/auto-engineer/commit/e2d4008281a41617cf5f9d569ed22badcf0cd065), [`f6cb5c2`](https://github.com/BeOnAuto/auto-engineer/commit/f6cb5c2908dc7cabf2a1d93c9000ad9682452cf7), [`54b5163`](https://github.com/BeOnAuto/auto-engineer/commit/54b5163e6752ce2a2438aae1d759810d5460a687)]:
33
+ - @auto-engineer/file-store@1.147.0
34
+ - @auto-engineer/id@1.147.0
35
+ - @auto-engineer/message-bus@1.147.0
36
+
37
+ ## 1.146.0
38
+
39
+ ### Minor Changes
40
+
41
+ - [`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
42
+ - Computes source stream patterns and links stream pattern variables to command fields for proper event resolution in handle templates
43
+
44
+ - [`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
45
+ - Generated handle.ts now reads external aggregate state from the event store before processing commands
46
+ - Ensures cross-scene events are available at runtime, matching test behavior
47
+
48
+ - [`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
49
+
50
+ - [`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
51
+ - **global**: version packages
52
+
53
+ ### Patch Changes
54
+
55
+ - [`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
56
+
57
+ - [`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
58
+
59
+ - [`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
60
+
61
+ - [`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
62
+
63
+ - [`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
64
+
65
+ - [`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
66
+ - Automatically detects ID-lookup queries based on argument mapping to the entity's ID field
67
+
68
+ - [`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
69
+
70
+ - [`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
71
+
72
+ - Updated dependencies [[`1bb3450`](https://github.com/BeOnAuto/auto-engineer/commit/1bb3450e2a717095a729567b10c7cdd4c2cc0ee3), [`5c461e2`](https://github.com/BeOnAuto/auto-engineer/commit/5c461e2a0b179196f5fee1bc6e97f12d786869f4), [`d5786a1`](https://github.com/BeOnAuto/auto-engineer/commit/d5786a13f0a725715c6a7cf460576ec5ae2cf006), [`e50042b`](https://github.com/BeOnAuto/auto-engineer/commit/e50042b4aa74c6927f21d3fa4cead565ebe1b321), [`20c1f72`](https://github.com/BeOnAuto/auto-engineer/commit/20c1f7251a75f01c874908b535689f5b005f480d), [`ee01249`](https://github.com/BeOnAuto/auto-engineer/commit/ee01249e68270d940039bf9721d14f7e120f5424), [`d2d750d`](https://github.com/BeOnAuto/auto-engineer/commit/d2d750dc7d4f0e7d350fd1b4f7f2cafc2f4d249b), [`f919ab8`](https://github.com/BeOnAuto/auto-engineer/commit/f919ab8b5954397a2c73a4c6f2ea0f781fb42373), [`b43f4e5`](https://github.com/BeOnAuto/auto-engineer/commit/b43f4e5cea147bc94d2baa31ca41694fa8ac0648), [`08b1aac`](https://github.com/BeOnAuto/auto-engineer/commit/08b1aac466fcaa402bae5f347b29d26309c07533), [`bb63e07`](https://github.com/BeOnAuto/auto-engineer/commit/bb63e071efadb52a838efa1c677caf1640fdf69f), [`2a893a3`](https://github.com/BeOnAuto/auto-engineer/commit/2a893a38f3a7b568fd608ec0e09644984167a95b)]:
73
+ - @auto-engineer/file-store@1.146.0
74
+ - @auto-engineer/id@1.146.0
75
+ - @auto-engineer/message-bus@1.146.0
76
+
3
77
  ## 1.145.0
4
78
 
5
79
  ### Minor Changes
package/package.json CHANGED
@@ -26,9 +26,9 @@
26
26
  "typescript": "^5.9.2",
27
27
  "zod": "^3.22.4",
28
28
  "zod-to-json-schema": "^3.22.3",
29
- "@auto-engineer/file-store": "1.145.0",
30
- "@auto-engineer/id": "1.145.0",
31
- "@auto-engineer/message-bus": "1.145.0"
29
+ "@auto-engineer/file-store": "1.147.0",
30
+ "@auto-engineer/id": "1.147.0",
31
+ "@auto-engineer/message-bus": "1.147.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "^20.0.0",
@@ -38,7 +38,7 @@
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "version": "1.145.0",
41
+ "version": "1.147.0",
42
42
  "scripts": {
43
43
  "build": "tsx scripts/build.ts",
44
44
  "test": "vitest run --reporter=dot",