create-auto-app 1.82.0 → 1.84.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-auto-app",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.84.0",
|
|
4
4
|
"description": "Create Auto Engineer apps with no configuration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"fs-extra": "^11.2.0",
|
|
34
34
|
"inquirer": "^9.2.15",
|
|
35
35
|
"ora": "^8.0.1",
|
|
36
|
-
"@auto-engineer/id": "1.
|
|
36
|
+
"@auto-engineer/id": "1.84.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -2,6 +2,7 @@ import type { Event } from "@auto-engineer/message-bus";
|
|
|
2
2
|
import type { ConcurrencyConfig } from "@auto-engineer/pipeline";
|
|
3
3
|
import { define } from "@auto-engineer/pipeline";
|
|
4
4
|
import type { AllCheckFailedEvents } from "@auto-engineer/server-checks";
|
|
5
|
+
import type { ServerGenerationFailedEvent } from "@auto-engineer/server-generator-apollo-emmett";
|
|
5
6
|
import type { SliceImplementedEvent } from "@auto-engineer/server-implementer";
|
|
6
7
|
|
|
7
8
|
export const fileId = "typical-example-1";
|
|
@@ -150,13 +151,56 @@ export const pipeline = define("typical-example")
|
|
|
150
151
|
fix: true,
|
|
151
152
|
}))
|
|
152
153
|
|
|
154
|
+
.on("ServerGenerationFailed")
|
|
155
|
+
.emit("SubmitBugReport", (e: ServerGenerationFailedEvent) => ({
|
|
156
|
+
payload: {
|
|
157
|
+
type: e.type,
|
|
158
|
+
data: {
|
|
159
|
+
error: e.data.error,
|
|
160
|
+
model: e.data.model,
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
}))
|
|
164
|
+
|
|
165
|
+
.on("SliceGenerationFailed")
|
|
166
|
+
.when((e: { data: { error: string } }) => {
|
|
167
|
+
if (reportedSliceErrors.has(e.data.error)) return false;
|
|
168
|
+
reportedSliceErrors.add(e.data.error);
|
|
169
|
+
return true;
|
|
170
|
+
})
|
|
171
|
+
.emit(
|
|
172
|
+
"SubmitBugReport",
|
|
173
|
+
(e: {
|
|
174
|
+
type: string;
|
|
175
|
+
data: {
|
|
176
|
+
error: string;
|
|
177
|
+
model: unknown;
|
|
178
|
+
flowName: string;
|
|
179
|
+
sliceName: string;
|
|
180
|
+
sliceType: string;
|
|
181
|
+
};
|
|
182
|
+
}) => ({
|
|
183
|
+
payload: {
|
|
184
|
+
type: e.type,
|
|
185
|
+
data: {
|
|
186
|
+
error: e.data.error,
|
|
187
|
+
model: e.data.model,
|
|
188
|
+
flowName: e.data.flowName,
|
|
189
|
+
sliceName: e.data.sliceName,
|
|
190
|
+
sliceType: e.data.sliceType,
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
}),
|
|
194
|
+
)
|
|
195
|
+
|
|
153
196
|
.build();
|
|
154
197
|
|
|
155
|
-
|
|
156
|
-
|
|
198
|
+
|
|
199
|
+
|
|
157
200
|
|
|
158
201
|
export function resetState(): void {
|
|
159
202
|
sliceRetryState.clear();
|
|
203
|
+
reportedSliceErrors.clear();
|
|
160
204
|
projectRoot = "";
|
|
161
205
|
}
|
|
162
206
|
|
|
@@ -219,6 +263,7 @@ function incrementRetryCount(slicePath: string): number {
|
|
|
219
263
|
|
|
220
264
|
const MAX_RETRIES = 4;
|
|
221
265
|
const sliceRetryState = new Map<string, number>();
|
|
266
|
+
const reportedSliceErrors = new Set<string>();
|
|
222
267
|
let projectRoot = "";
|
|
223
268
|
|
|
224
269
|
function resolvePath(relativePath: string): string {
|