@auto-engineer/server-generator-nestjs 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.
Files changed (2) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,75 @@
1
1
  # @auto-engineer/server-generator-nestjs
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/narrative@1.147.0
34
+
35
+ ## 1.146.0
36
+
37
+ ### Minor Changes
38
+
39
+ - [`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
40
+ - Computes source stream patterns and links stream pattern variables to command fields for proper event resolution in handle templates
41
+
42
+ - [`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
43
+ - Generated handle.ts now reads external aggregate state from the event store before processing commands
44
+ - Ensures cross-scene events are available at runtime, matching test behavior
45
+
46
+ - [`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
47
+
48
+ - [`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
49
+ - **global**: version packages
50
+
51
+ ### Patch Changes
52
+
53
+ - [`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
54
+
55
+ - [`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
56
+
57
+ - [`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
58
+
59
+ - [`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
60
+
61
+ - [`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
62
+
63
+ - [`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
64
+ - Automatically detects ID-lookup queries based on argument mapping to the entity's ID field
65
+
66
+ - [`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
67
+
68
+ - [`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
69
+
70
+ - 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)]:
71
+ - @auto-engineer/narrative@1.146.0
72
+
3
73
  ## 1.145.0
4
74
 
5
75
  ### Minor Changes
package/package.json CHANGED
@@ -40,7 +40,7 @@
40
40
  "ts-node": "^10.9.2",
41
41
  "type-fest": "^4.41.0",
42
42
  "uuid": "^11.0.0",
43
- "@auto-engineer/narrative": "1.145.0"
43
+ "@auto-engineer/narrative": "1.147.0"
44
44
  },
45
45
  "publishConfig": {
46
46
  "access": "public"
@@ -52,9 +52,9 @@
52
52
  "tsx": "^4.19.2",
53
53
  "typescript": "^5.8.3",
54
54
  "vitest": "^3.2.4",
55
- "@auto-engineer/cli": "1.145.0"
55
+ "@auto-engineer/cli": "1.147.0"
56
56
  },
57
- "version": "1.145.0",
57
+ "version": "1.147.0",
58
58
  "scripts": {
59
59
  "generate:server": "tsx src/cli/index.ts",
60
60
  "-DISABLE-build": "tsc && tsx ../../scripts/fix-esm-imports.ts && rm -rf dist/src/codegen/templates && mkdir -p dist/src/codegen && cp -r src/codegen/templates dist/src/codegen/templates && cp -r src/shared dist/src",