@auto-engineer/narrative 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/narrative@1.146.0 build /home/runner/work/auto-engineer/auto-engineer/packages/narrative
2
+ > @auto-engineer/narrative@1.148.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.145.0 test /home/runner/work/auto-engineer/auto-engineer/packages/narrative
2
+ > @auto-engineer/narrative@1.147.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  14:02:18
13
-  Duration  46.58s (transform 8.13s, setup 0ms, collect 58.73s, tests 33.22s, environment 14ms, prepare 16.03s)
12
+  Start at  21:35:57
13
+  Duration  45.58s (transform 10.50s, setup 0ms, collect 62.59s, tests 31.92s, environment 40ms, prepare 15.54s)
14
14
 
@@ -1,4 +1,4 @@
1
1
 
2
- > @auto-engineer/narrative@1.145.0 type-check /home/runner/work/auto-engineer/auto-engineer/packages/narrative
2
+ > @auto-engineer/narrative@1.147.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,75 @@
1
1
  # @auto-engineer/flow
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
+ - 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)]:
35
+ - @auto-engineer/file-store@1.148.0
36
+ - @auto-engineer/id@1.148.0
37
+ - @auto-engineer/message-bus@1.148.0
38
+
39
+ ## 1.147.0
40
+
41
+ ### Minor Changes
42
+
43
+ - [`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
44
+ - **server-generator-apollo-emmett**: compute crossSceneGivens in template data
45
+ - **react-gen**: clean stale src/ subdirectories in scaffold step
46
+ - **server-generator-apollo-emmett**: return single object for id-lookup query resolvers
47
+ - **server-generator-apollo-emmett**: use narrative prefix in cross-scene import paths
48
+
49
+ ### Patch Changes
50
+
51
+ - [`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
52
+
53
+ - [`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
54
+
55
+ - [`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
56
+
57
+ - [`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
58
+
59
+ - [`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
60
+ - Eliminated phantom Event types appearing in generated events.ts files
61
+ - Eliminated phantom case handlers appearing in generated evolve.ts files
62
+
63
+ - [`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
64
+
65
+ - [`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
66
+ - Command handlers now correctly operate on a single stream, aligning with Emmett's event sourcing model
67
+ - Cross-aggregate data should be passed via command enrichment instead of pre-loading from other streams
68
+ - 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)]:
69
+ - @auto-engineer/file-store@1.147.0
70
+ - @auto-engineer/id@1.147.0
71
+ - @auto-engineer/message-bus@1.147.0
72
+
3
73
  ## 1.146.0
4
74
 
5
75
  ### 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.146.0",
30
- "@auto-engineer/id": "1.146.0",
31
- "@auto-engineer/message-bus": "1.146.0"
29
+ "@auto-engineer/file-store": "1.148.0",
30
+ "@auto-engineer/id": "1.148.0",
31
+ "@auto-engineer/message-bus": "1.148.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.146.0",
41
+ "version": "1.148.0",
42
42
  "scripts": {
43
43
  "build": "tsx scripts/build.ts",
44
44
  "test": "vitest run --reporter=dot",