@auto-engineer/server-generator-apollo-emmett 1.75.0 → 1.77.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/server-generator-apollo-emmett@1.75.0 build /home/runner/work/auto-engineer/auto-engineer/packages/server-generator-apollo-emmett
2
+ > @auto-engineer/server-generator-apollo-emmett@1.77.0 build /home/runner/work/auto-engineer/auto-engineer/packages/server-generator-apollo-emmett
3
3
  > 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 src/server.ts dist/src && cp -r src/utils dist/src && cp -r src/domain dist/src
4
4
 
5
5
  Fixed ESM imports in dist/
@@ -1,5 +1,5 @@
1
1
 
2
- > @auto-engineer/server-generator-apollo-emmett@1.74.0 test /home/runner/work/auto-engineer/auto-engineer/packages/server-generator-apollo-emmett
2
+ > @auto-engineer/server-generator-apollo-emmett@1.76.0 test /home/runner/work/auto-engineer/auto-engineer/packages/server-generator-apollo-emmett
3
3
  > vitest run --reporter=dot
4
4
 
5
5
 
@@ -9,6 +9,6 @@
9
9
 
10
10
   Test Files  30 passed | 1 skipped (31)
11
11
   Tests  174 passed | 1 skipped (175)
12
-  Start at  08:04:17
13
-  Duration  24.65s (transform 4.90s, setup 0ms, collect 50.52s, tests 9.93s, environment 7ms, prepare 4.88s)
12
+  Start at  15:19:55
13
+  Duration  27.22s (transform 4.86s, setup 0ms, collect 57.13s, tests 11.06s, environment 7ms, prepare 4.86s)
14
14
 
@@ -1,4 +1,4 @@
1
1
 
2
- > @auto-engineer/server-generator-apollo-emmett@1.74.0 type-check /home/runner/work/auto-engineer/auto-engineer/packages/server-generator-apollo-emmett
2
+ > @auto-engineer/server-generator-apollo-emmett@1.76.0 type-check /home/runner/work/auto-engineer/auto-engineer/packages/server-generator-apollo-emmett
3
3
  > tsc --noEmit --project tsconfig.json
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,52 @@
1
1
  # @auto-engineer/server-generator-apollo-emmett
2
2
 
3
+ ## 1.77.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`86f1663`](https://github.com/BeOnAuto/auto-engineer/commit/86f166399983a32804d3cc43ea51638b044c0ecc) Thanks [@osamanar](https://github.com/osamanar)! - - Fixed component generation in the React component implementer
8
+
9
+ - [`2040186`](https://github.com/BeOnAuto/auto-engineer/commit/2040186f95edbc78748e79d79b9e606e058bce08) Thanks [@osamanar](https://github.com/osamanar)! - - **react-component-implementer**: add comprehensive visual design system to prompt
10
+
11
+ ### Patch Changes
12
+
13
+ - [`b668102`](https://github.com/BeOnAuto/auto-engineer/commit/b668102043e71071c4fb5f776fdcd68b357606ee) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - - **dev-server**: kill stale port holders before spawning services
14
+ - **dev-server**: make port-cleanup a pure utility with no lifecycle side effects
15
+ - **server-generator-apollo-emmett**: remove try/catch that swallows command errors
16
+ - **global**: version packages
17
+ - **dev-server**: finalize ketchup plan for port-cleanup fix
18
+ - Updated dependencies [[`86f1663`](https://github.com/BeOnAuto/auto-engineer/commit/86f166399983a32804d3cc43ea51638b044c0ecc), [`2040186`](https://github.com/BeOnAuto/auto-engineer/commit/2040186f95edbc78748e79d79b9e606e058bce08), [`b668102`](https://github.com/BeOnAuto/auto-engineer/commit/b668102043e71071c4fb5f776fdcd68b357606ee)]:
19
+ - @auto-engineer/message-bus@1.77.0
20
+ - @auto-engineer/narrative@1.77.0
21
+
22
+ ## 1.76.0
23
+
24
+ ### Minor Changes
25
+
26
+ - [`28eb621`](https://github.com/BeOnAuto/auto-engineer/commit/28eb6214532f2e63e4d8c87b8e2ff7b2ac6d97e6) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - - **pipeline**: add lastDurationMs tracking to node status
27
+ - **pipeline**: add startedAt/endedAt timing to item status projection
28
+ - **pipeline**: include timestamp in /messages endpoint response
29
+ - **server-generator-apollo-emmett**: pass an empty object to reactor.close call
30
+ - **server-generator-apollo-emmett**: remove extra argument in reactor.close call
31
+
32
+ - [`d0844fb`](https://github.com/BeOnAuto/auto-engineer/commit/d0844fb796931e5aa1064ed4c6205e53afa8d3b4) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - **dev-server**: wire registerPort into start-server, start-client, start-storybook
33
+ - **server-generator-apollo-emmett**: remove try/catch that swallows command errors
34
+ - **dev-server**: killActivePortHolders is a no-op when port is free
35
+
36
+ ### Patch Changes
37
+
38
+ - [`5c950af`](https://github.com/BeOnAuto/auto-engineer/commit/5c950af09d795a0d983bde748a45bf8fa56cf1b5) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - **dev-server**: update ketchup plan for port-cleanup fix
39
+
40
+ - [`87bb859`](https://github.com/BeOnAuto/auto-engineer/commit/87bb859bc3d29410363231d8b685d7bfe8a0c6bf) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - **dev-server**: make port-cleanup a pure utility with no lifecycle side effects
41
+
42
+ - [`443df2d`](https://github.com/BeOnAuto/auto-engineer/commit/443df2dbad31ed42e3f15fe31c1758c4138735f3) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - **dev-server**: kill stale port holders before spawning services
43
+
44
+ - [`8cafdcd`](https://github.com/BeOnAuto/auto-engineer/commit/8cafdcd489f65e4212cc23d952ce59824742845d) Thanks [@rami-hatoum](https://github.com/rami-hatoum)! - - **dev-server**: finalize ketchup plan for port-cleanup fix
45
+
46
+ - Updated dependencies [[`5c950af`](https://github.com/BeOnAuto/auto-engineer/commit/5c950af09d795a0d983bde748a45bf8fa56cf1b5), [`28eb621`](https://github.com/BeOnAuto/auto-engineer/commit/28eb6214532f2e63e4d8c87b8e2ff7b2ac6d97e6), [`87bb859`](https://github.com/BeOnAuto/auto-engineer/commit/87bb859bc3d29410363231d8b685d7bfe8a0c6bf), [`443df2d`](https://github.com/BeOnAuto/auto-engineer/commit/443df2dbad31ed42e3f15fe31c1758c4138735f3), [`8cafdcd`](https://github.com/BeOnAuto/auto-engineer/commit/8cafdcd489f65e4212cc23d952ce59824742845d), [`d0844fb`](https://github.com/BeOnAuto/auto-engineer/commit/d0844fb796931e5aa1064ed4c6205e53afa8d3b4)]:
47
+ - @auto-engineer/message-bus@1.76.0
48
+ - @auto-engineer/narrative@1.76.0
49
+
3
50
  ## 1.75.0
4
51
 
5
52
  ### Minor Changes
@@ -122,15 +122,8 @@ describe('generateScaffoldFilePlans', () => {
122
122
  export const handle = async (eventStore: EventStore, command: CreateListing): Promise<MessageHandlerResult> => {
123
123
  const streamId = \`listings-\${command.data.propertyId}\`;
124
124
 
125
- try {
126
- await handler(eventStore, streamId, (state) => decide(command, state));
127
- return undefined; // success
128
- } catch (error: unknown) {
129
- return {
130
- type: 'SKIP',
131
- reason: \`Command failed: \${error instanceof Error ? error.message : 'Unknown'}\`,
132
- };
133
- }
125
+ await handler(eventStore, streamId, (state) => decide(command, state));
126
+ return undefined;
134
127
  };
135
128
  "
136
129
  `);
@@ -316,31 +309,24 @@ describe('generateScaffoldFilePlans', () => {
316
309
  export const handle = async (eventStore: EventStore, command: SuggestItems): Promise<MessageHandlerResult> => {
317
310
  const streamId = \`session-\${command.data.sessionId}\`;
318
311
 
319
- try {
320
- // TODO: Map fields from the incoming command to this integration input.
321
- // - Use relevant fields from \`command.data\` to populate the required inputs below.
322
- // - Some fields may require transformation or enrichment.
323
- // - If additional context is needed, construct it here.
324
- // const products: Products | undefined = await AI.Commands?.DoChat<Products>({
325
- // type: 'DoChat',
326
- // data: {
327
- // // sessionId: ???
328
- // prompt: ???
329
- // systemPrompt: ???
330
- // },
331
- // });
312
+ // TODO: Map fields from the incoming command to this integration input.
313
+ // - Use relevant fields from \`command.data\` to populate the required inputs below.
314
+ // - Some fields may require transformation or enrichment.
315
+ // - If additional context is needed, construct it here.
316
+ // const products: Products | undefined = await AI.Commands?.DoChat<Products>({
317
+ // type: 'DoChat',
318
+ // data: {
319
+ // // sessionId: ???
320
+ // prompt: ???
321
+ // systemPrompt: ???
322
+ // },
323
+ // });
332
324
 
333
- await handler(eventStore, streamId, (state) =>
334
- // TODO: add products as a parameter to decide once implemented above
335
- decide(command, state /* products */),
336
- );
337
- return undefined; // success
338
- } catch (error: unknown) {
339
- return {
340
- type: 'SKIP',
341
- reason: \`Command failed: \${error instanceof Error ? error.message : 'Unknown'}\`,
342
- };
343
- }
325
+ await handler(eventStore, streamId, (state) =>
326
+ // TODO: add products as a parameter to decide once implemented above
327
+ decide(command, state /* products */),
328
+ );
329
+ return undefined;
344
330
  };
345
331
  "
346
332
  `);
@@ -91,7 +91,6 @@ command: <%= commands.map(c => pascalCase(c.type)).join(' | ') %>
91
91
  const streamId = '<%= stream?.pattern ?? 'unknown-stream' %>';
92
92
  <% } -%>
93
93
 
94
- try {
95
94
  <% integrationCalls.forEach(({ call }) => { -%>
96
95
  <%= call %>
97
96
 
@@ -101,11 +100,5 @@ command: <%= commands.map(c => pascalCase(c.type)).join(' | ') %>
101
100
  ? ` // TODO: add ${resultVarName} as a parameter to decide once implemented above\n decide(command, state, /* ${resultVarName} */)`
102
101
  : ` decide(command, state)` %>
103
102
  );
104
- return undefined; // success
105
- } catch (error: unknown) {
106
- return {
107
- type: 'SKIP',
108
- reason: `Command failed: ${error instanceof Error ? error.message : 'Unknown'}`,
109
- };
110
- }
103
+ return undefined;
111
104
  };
package/package.json CHANGED
@@ -32,8 +32,8 @@
32
32
  "uuid": "^11.0.0",
33
33
  "web-streams-polyfill": "^4.1.0",
34
34
  "zod": "^3.22.4",
35
- "@auto-engineer/narrative": "1.75.0",
36
- "@auto-engineer/message-bus": "1.75.0"
35
+ "@auto-engineer/narrative": "1.77.0",
36
+ "@auto-engineer/message-bus": "1.77.0"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"
@@ -44,9 +44,9 @@
44
44
  "typescript": "^5.8.3",
45
45
  "vitest": "^3.2.4",
46
46
  "tsx": "^4.19.2",
47
- "@auto-engineer/cli": "1.75.0"
47
+ "@auto-engineer/cli": "1.77.0"
48
48
  },
49
- "version": "1.75.0",
49
+ "version": "1.77.0",
50
50
  "scripts": {
51
51
  "generate:server": "tsx src/cli/index.ts",
52
52
  "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 src/server.ts dist/src && cp -r src/utils dist/src && cp -r src/domain dist/src",
@@ -122,15 +122,8 @@ describe('generateScaffoldFilePlans', () => {
122
122
  export const handle = async (eventStore: EventStore, command: CreateListing): Promise<MessageHandlerResult> => {
123
123
  const streamId = \`listings-\${command.data.propertyId}\`;
124
124
 
125
- try {
126
- await handler(eventStore, streamId, (state) => decide(command, state));
127
- return undefined; // success
128
- } catch (error: unknown) {
129
- return {
130
- type: 'SKIP',
131
- reason: \`Command failed: \${error instanceof Error ? error.message : 'Unknown'}\`,
132
- };
133
- }
125
+ await handler(eventStore, streamId, (state) => decide(command, state));
126
+ return undefined;
134
127
  };
135
128
  "
136
129
  `);
@@ -316,31 +309,24 @@ describe('generateScaffoldFilePlans', () => {
316
309
  export const handle = async (eventStore: EventStore, command: SuggestItems): Promise<MessageHandlerResult> => {
317
310
  const streamId = \`session-\${command.data.sessionId}\`;
318
311
 
319
- try {
320
- // TODO: Map fields from the incoming command to this integration input.
321
- // - Use relevant fields from \`command.data\` to populate the required inputs below.
322
- // - Some fields may require transformation or enrichment.
323
- // - If additional context is needed, construct it here.
324
- // const products: Products | undefined = await AI.Commands?.DoChat<Products>({
325
- // type: 'DoChat',
326
- // data: {
327
- // // sessionId: ???
328
- // prompt: ???
329
- // systemPrompt: ???
330
- // },
331
- // });
312
+ // TODO: Map fields from the incoming command to this integration input.
313
+ // - Use relevant fields from \`command.data\` to populate the required inputs below.
314
+ // - Some fields may require transformation or enrichment.
315
+ // - If additional context is needed, construct it here.
316
+ // const products: Products | undefined = await AI.Commands?.DoChat<Products>({
317
+ // type: 'DoChat',
318
+ // data: {
319
+ // // sessionId: ???
320
+ // prompt: ???
321
+ // systemPrompt: ???
322
+ // },
323
+ // });
332
324
 
333
- await handler(eventStore, streamId, (state) =>
334
- // TODO: add products as a parameter to decide once implemented above
335
- decide(command, state /* products */),
336
- );
337
- return undefined; // success
338
- } catch (error: unknown) {
339
- return {
340
- type: 'SKIP',
341
- reason: \`Command failed: \${error instanceof Error ? error.message : 'Unknown'}\`,
342
- };
343
- }
325
+ await handler(eventStore, streamId, (state) =>
326
+ // TODO: add products as a parameter to decide once implemented above
327
+ decide(command, state /* products */),
328
+ );
329
+ return undefined;
344
330
  };
345
331
  "
346
332
  `);
@@ -91,7 +91,6 @@ command: <%= commands.map(c => pascalCase(c.type)).join(' | ') %>
91
91
  const streamId = '<%= stream?.pattern ?? 'unknown-stream' %>';
92
92
  <% } -%>
93
93
 
94
- try {
95
94
  <% integrationCalls.forEach(({ call }) => { -%>
96
95
  <%= call %>
97
96
 
@@ -101,11 +100,5 @@ command: <%= commands.map(c => pascalCase(c.type)).join(' | ') %>
101
100
  ? ` // TODO: add ${resultVarName} as a parameter to decide once implemented above\n decide(command, state, /* ${resultVarName} */)`
102
101
  : ` decide(command, state)` %>
103
102
  );
104
- return undefined; // success
105
- } catch (error: unknown) {
106
- return {
107
- type: 'SKIP',
108
- reason: `Command failed: ${error instanceof Error ? error.message : 'Unknown'}`,
109
- };
110
- }
103
+ return undefined;
111
104
  };