@auto-engineer/server-generator-apollo-emmett 1.74.0 → 1.76.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.
- package/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-test.log +3 -3
- package/.turbo/turbo-type-check.log +1 -1
- package/CHANGELOG.md +54 -0
- package/dist/src/codegen/templates/command/handle.specs.ts +19 -33
- package/dist/src/codegen/templates/command/handle.ts.ejs +1 -8
- package/package.json +4 -4
- package/src/codegen/templates/command/handle.specs.ts +19 -33
- package/src/codegen/templates/command/handle.ts.ejs +1 -8
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @auto-engineer/server-generator-apollo-emmett@1.
|
|
2
|
+
> @auto-engineer/server-generator-apollo-emmett@1.76.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/
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @auto-engineer/server-generator-apollo-emmett@1.
|
|
2
|
+
> @auto-engineer/server-generator-apollo-emmett@1.75.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
|
[2m Test Files [22m [1m[32m30 passed[39m[22m[2m | [22m[33m1 skipped[39m[90m (31)[39m
|
|
11
11
|
[2m Tests [22m [1m[32m174 passed[39m[22m[2m | [22m[33m1 skipped[39m[90m (175)[39m
|
|
12
|
-
[2m Start at [22m
|
|
13
|
-
[2m Duration [22m
|
|
12
|
+
[2m Start at [22m 14:33:08
|
|
13
|
+
[2m Duration [22m 26.83s[2m (transform 4.75s, setup 0ms, collect 54.46s, tests 12.53s, environment 7ms, prepare 4.84s)[22m
|
|
14
14
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @auto-engineer/server-generator-apollo-emmett@1.
|
|
2
|
+
> @auto-engineer/server-generator-apollo-emmett@1.75.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,59 @@
|
|
|
1
1
|
# @auto-engineer/server-generator-apollo-emmett
|
|
2
2
|
|
|
3
|
+
## 1.76.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`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
|
|
8
|
+
- **pipeline**: add startedAt/endedAt timing to item status projection
|
|
9
|
+
- **pipeline**: include timestamp in /messages endpoint response
|
|
10
|
+
- **server-generator-apollo-emmett**: pass an empty object to reactor.close call
|
|
11
|
+
- **server-generator-apollo-emmett**: remove extra argument in reactor.close call
|
|
12
|
+
|
|
13
|
+
- [`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
|
|
14
|
+
- **server-generator-apollo-emmett**: remove try/catch that swallows command errors
|
|
15
|
+
- **dev-server**: killActivePortHolders is a no-op when port is free
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`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
|
|
20
|
+
|
|
21
|
+
- [`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
|
|
22
|
+
|
|
23
|
+
- [`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
|
|
24
|
+
|
|
25
|
+
- [`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
|
|
26
|
+
|
|
27
|
+
- 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)]:
|
|
28
|
+
- @auto-engineer/message-bus@1.76.0
|
|
29
|
+
- @auto-engineer/narrative@1.76.0
|
|
30
|
+
|
|
31
|
+
## 1.75.0
|
|
32
|
+
|
|
33
|
+
### Minor Changes
|
|
34
|
+
|
|
35
|
+
- [`1658c1c`](https://github.com/BeOnAuto/auto-engineer/commit/1658c1c2c3933a02dd503771ec29437140d18cc1) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **pipeline**: include timestamp in /messages endpoint response
|
|
36
|
+
|
|
37
|
+
- [`37a6fb8`](https://github.com/BeOnAuto/auto-engineer/commit/37a6fb86e448227a9bea8bc0ba608c9fdf0e07ee) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **pipeline**: add lastDurationMs tracking to node status
|
|
38
|
+
|
|
39
|
+
- [`a15186f`](https://github.com/BeOnAuto/auto-engineer/commit/a15186fcb8c53cf4bb60076a55100f845d01a017) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **pipeline**: add startedAt/endedAt timing to item status projection
|
|
40
|
+
|
|
41
|
+
- [`3dcd1db`](https://github.com/BeOnAuto/auto-engineer/commit/3dcd1db09ea707ff1f4a56c2ca050a586923190e) Thanks [@github-actions[bot]](https://github.com/github-actions%5Bbot%5D)! - - **dev-server**: wire registerPort into start-server, start-client, start-storybook
|
|
42
|
+
- **dev-server**: killActivePortHolders kills child process holding a port
|
|
43
|
+
- **server-generator-apollo-emmett**: remove unused projectionType from template locals
|
|
44
|
+
- **server-generator-apollo-emmett**: use original-case projection name for collection name
|
|
45
|
+
- **global**: version packages
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- [`e94151f`](https://github.com/BeOnAuto/auto-engineer/commit/e94151f28fac06bbb4e681b667c2043b6a90eb6f) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - **server-generator-apollo-emmett**: remove extra argument in reactor.close call
|
|
50
|
+
|
|
51
|
+
- [`644a7ae`](https://github.com/BeOnAuto/auto-engineer/commit/644a7ae40d733612cef5cde067217f53038013fb) Thanks [@SamHatoum](https://github.com/SamHatoum)! - - Fixed an error in the Apollo Emmett server generator where the reactor close call was missing a required argument
|
|
52
|
+
|
|
53
|
+
- Updated dependencies [[`e94151f`](https://github.com/BeOnAuto/auto-engineer/commit/e94151f28fac06bbb4e681b667c2043b6a90eb6f), [`1658c1c`](https://github.com/BeOnAuto/auto-engineer/commit/1658c1c2c3933a02dd503771ec29437140d18cc1), [`37a6fb8`](https://github.com/BeOnAuto/auto-engineer/commit/37a6fb86e448227a9bea8bc0ba608c9fdf0e07ee), [`644a7ae`](https://github.com/BeOnAuto/auto-engineer/commit/644a7ae40d733612cef5cde067217f53038013fb), [`a15186f`](https://github.com/BeOnAuto/auto-engineer/commit/a15186fcb8c53cf4bb60076a55100f845d01a017), [`3dcd1db`](https://github.com/BeOnAuto/auto-engineer/commit/3dcd1db09ea707ff1f4a56c2ca050a586923190e)]:
|
|
54
|
+
- @auto-engineer/message-bus@1.75.0
|
|
55
|
+
- @auto-engineer/narrative@1.75.0
|
|
56
|
+
|
|
3
57
|
## 1.74.0
|
|
4
58
|
|
|
5
59
|
### 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
|
-
|
|
126
|
-
|
|
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
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
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
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
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;
|
|
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/
|
|
36
|
-
"@auto-engineer/
|
|
35
|
+
"@auto-engineer/message-bus": "1.76.0",
|
|
36
|
+
"@auto-engineer/narrative": "1.76.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.
|
|
47
|
+
"@auto-engineer/cli": "1.76.0"
|
|
48
48
|
},
|
|
49
|
-
"version": "1.
|
|
49
|
+
"version": "1.76.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
|
-
|
|
126
|
-
|
|
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
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
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
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
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;
|
|
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
|
};
|