create-auto-app 1.139.0 → 1.140.1
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.140.1",
|
|
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.140.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -6812,7 +6812,7 @@
|
|
|
6812
6812
|
},
|
|
6813
6813
|
{
|
|
6814
6814
|
"id": "VariableID:9034:168718",
|
|
6815
|
-
"name": "custom colors/constructs/
|
|
6815
|
+
"name": "custom colors/constructs/scene backend",
|
|
6816
6816
|
"resolvedType": "COLOR",
|
|
6817
6817
|
"valuesByMode": {
|
|
6818
6818
|
"1:0": {
|
|
@@ -6828,7 +6828,7 @@
|
|
|
6828
6828
|
},
|
|
6829
6829
|
{
|
|
6830
6830
|
"id": "VariableID:9034:168719",
|
|
6831
|
-
"name": "custom colors/constructs/
|
|
6831
|
+
"name": "custom colors/constructs/scene moment",
|
|
6832
6832
|
"resolvedType": "COLOR",
|
|
6833
6833
|
"valuesByMode": {
|
|
6834
6834
|
"1:0": {
|
|
@@ -6844,7 +6844,7 @@
|
|
|
6844
6844
|
},
|
|
6845
6845
|
{
|
|
6846
6846
|
"id": "VariableID:9034:168720",
|
|
6847
|
-
"name": "custom colors/constructs/
|
|
6847
|
+
"name": "custom colors/constructs/scene frontend",
|
|
6848
6848
|
"resolvedType": "COLOR",
|
|
6849
6849
|
"valuesByMode": {
|
|
6850
6850
|
"1:0": {
|
|
@@ -10910,7 +10910,7 @@
|
|
|
10910
10910
|
},
|
|
10911
10911
|
{
|
|
10912
10912
|
"id": "VariableID:9054:130178",
|
|
10913
|
-
"name": "colors/constructs/
|
|
10913
|
+
"name": "colors/constructs/scene-backend-light",
|
|
10914
10914
|
"resolvedType": "COLOR",
|
|
10915
10915
|
"valuesByMode": {
|
|
10916
10916
|
"1:1": {
|
|
@@ -10924,7 +10924,7 @@
|
|
|
10924
10924
|
},
|
|
10925
10925
|
{
|
|
10926
10926
|
"id": "VariableID:9054:130179",
|
|
10927
|
-
"name": "colors/constructs/
|
|
10927
|
+
"name": "colors/constructs/scene-backend-dark",
|
|
10928
10928
|
"resolvedType": "COLOR",
|
|
10929
10929
|
"valuesByMode": {
|
|
10930
10930
|
"1:1": {
|
|
@@ -10938,7 +10938,7 @@
|
|
|
10938
10938
|
},
|
|
10939
10939
|
{
|
|
10940
10940
|
"id": "VariableID:9054:130180",
|
|
10941
|
-
"name": "colors/constructs/
|
|
10941
|
+
"name": "colors/constructs/scene-moment-light",
|
|
10942
10942
|
"resolvedType": "COLOR",
|
|
10943
10943
|
"valuesByMode": {
|
|
10944
10944
|
"1:1": {
|
|
@@ -10952,7 +10952,7 @@
|
|
|
10952
10952
|
},
|
|
10953
10953
|
{
|
|
10954
10954
|
"id": "VariableID:9054:130181",
|
|
10955
|
-
"name": "colors/constructs/
|
|
10955
|
+
"name": "colors/constructs/scene-moment-dark",
|
|
10956
10956
|
"resolvedType": "COLOR",
|
|
10957
10957
|
"valuesByMode": {
|
|
10958
10958
|
"1:1": {
|
|
@@ -10966,7 +10966,7 @@
|
|
|
10966
10966
|
},
|
|
10967
10967
|
{
|
|
10968
10968
|
"id": "VariableID:9054:130182",
|
|
10969
|
-
"name": "colors/constructs/
|
|
10969
|
+
"name": "colors/constructs/scene-frontend-light",
|
|
10970
10970
|
"resolvedType": "COLOR",
|
|
10971
10971
|
"valuesByMode": {
|
|
10972
10972
|
"1:1": {
|
|
@@ -10980,7 +10980,7 @@
|
|
|
10980
10980
|
},
|
|
10981
10981
|
{
|
|
10982
10982
|
"id": "VariableID:9054:130183",
|
|
10983
|
-
"name": "colors/constructs/
|
|
10983
|
+
"name": "colors/constructs/scene-frontend-dark",
|
|
10984
10984
|
"resolvedType": "COLOR",
|
|
10985
10985
|
"valuesByMode": {
|
|
10986
10986
|
"1:1": {
|
|
@@ -11106,7 +11106,7 @@
|
|
|
11106
11106
|
},
|
|
11107
11107
|
{
|
|
11108
11108
|
"id": "VariableID:9639:47821",
|
|
11109
|
-
"name": "colors/constructs/
|
|
11109
|
+
"name": "colors/constructs/moment-light",
|
|
11110
11110
|
"resolvedType": "COLOR",
|
|
11111
11111
|
"valuesByMode": {
|
|
11112
11112
|
"1:1": {
|
|
@@ -11120,7 +11120,7 @@
|
|
|
11120
11120
|
},
|
|
11121
11121
|
{
|
|
11122
11122
|
"id": "VariableID:9639:47822",
|
|
11123
|
-
"name": "colors/constructs/
|
|
11123
|
+
"name": "colors/constructs/moment-dark",
|
|
11124
11124
|
"resolvedType": "COLOR",
|
|
11125
11125
|
"valuesByMode": {
|
|
11126
11126
|
"1:1": {
|
|
@@ -13361,7 +13361,7 @@
|
|
|
13361
13361
|
},
|
|
13362
13362
|
{
|
|
13363
13363
|
"id": "VariableID:9054:134221",
|
|
13364
|
-
"name": "constructs/
|
|
13364
|
+
"name": "constructs/scene-backend",
|
|
13365
13365
|
"resolvedType": "COLOR",
|
|
13366
13366
|
"valuesByMode": {
|
|
13367
13367
|
"1:7": {
|
|
@@ -13379,7 +13379,7 @@
|
|
|
13379
13379
|
},
|
|
13380
13380
|
{
|
|
13381
13381
|
"id": "VariableID:9054:134222",
|
|
13382
|
-
"name": "constructs/
|
|
13382
|
+
"name": "constructs/scene-moment",
|
|
13383
13383
|
"resolvedType": "COLOR",
|
|
13384
13384
|
"valuesByMode": {
|
|
13385
13385
|
"1:7": {
|
|
@@ -13397,7 +13397,7 @@
|
|
|
13397
13397
|
},
|
|
13398
13398
|
{
|
|
13399
13399
|
"id": "VariableID:9054:134223",
|
|
13400
|
-
"name": "constructs/
|
|
13400
|
+
"name": "constructs/scene-frontend",
|
|
13401
13401
|
"resolvedType": "COLOR",
|
|
13402
13402
|
"valuesByMode": {
|
|
13403
13403
|
"1:7": {
|
|
@@ -13487,7 +13487,7 @@
|
|
|
13487
13487
|
},
|
|
13488
13488
|
{
|
|
13489
13489
|
"id": "VariableID:9639:47823",
|
|
13490
|
-
"name": "constructs/
|
|
13490
|
+
"name": "constructs/moment",
|
|
13491
13491
|
"resolvedType": "COLOR",
|
|
13492
13492
|
"valuesByMode": {
|
|
13493
13493
|
"1:7": {
|
|
@@ -13541,7 +13541,7 @@
|
|
|
13541
13541
|
},
|
|
13542
13542
|
{
|
|
13543
13543
|
"id": "VariableID:9880:2504",
|
|
13544
|
-
"name": "constructs/script-
|
|
13544
|
+
"name": "constructs/script-scene",
|
|
13545
13545
|
"resolvedType": "COLOR",
|
|
13546
13546
|
"valuesByMode": {
|
|
13547
13547
|
"1:7": {
|
|
@@ -6812,7 +6812,7 @@
|
|
|
6812
6812
|
},
|
|
6813
6813
|
{
|
|
6814
6814
|
"id": "VariableID:9034:168718",
|
|
6815
|
-
"name": "custom colors/constructs/
|
|
6815
|
+
"name": "custom colors/constructs/scene backend",
|
|
6816
6816
|
"resolvedType": "COLOR",
|
|
6817
6817
|
"valuesByMode": {
|
|
6818
6818
|
"1:0": {
|
|
@@ -6828,7 +6828,7 @@
|
|
|
6828
6828
|
},
|
|
6829
6829
|
{
|
|
6830
6830
|
"id": "VariableID:9034:168719",
|
|
6831
|
-
"name": "custom colors/constructs/
|
|
6831
|
+
"name": "custom colors/constructs/scene moment",
|
|
6832
6832
|
"resolvedType": "COLOR",
|
|
6833
6833
|
"valuesByMode": {
|
|
6834
6834
|
"1:0": {
|
|
@@ -6844,7 +6844,7 @@
|
|
|
6844
6844
|
},
|
|
6845
6845
|
{
|
|
6846
6846
|
"id": "VariableID:9034:168720",
|
|
6847
|
-
"name": "custom colors/constructs/
|
|
6847
|
+
"name": "custom colors/constructs/scene frontend",
|
|
6848
6848
|
"resolvedType": "COLOR",
|
|
6849
6849
|
"valuesByMode": {
|
|
6850
6850
|
"1:0": {
|
|
@@ -10910,7 +10910,7 @@
|
|
|
10910
10910
|
},
|
|
10911
10911
|
{
|
|
10912
10912
|
"id": "VariableID:9054:130178",
|
|
10913
|
-
"name": "colors/constructs/
|
|
10913
|
+
"name": "colors/constructs/scene-backend-light",
|
|
10914
10914
|
"resolvedType": "COLOR",
|
|
10915
10915
|
"valuesByMode": {
|
|
10916
10916
|
"1:1": {
|
|
@@ -10924,7 +10924,7 @@
|
|
|
10924
10924
|
},
|
|
10925
10925
|
{
|
|
10926
10926
|
"id": "VariableID:9054:130179",
|
|
10927
|
-
"name": "colors/constructs/
|
|
10927
|
+
"name": "colors/constructs/scene-backend-dark",
|
|
10928
10928
|
"resolvedType": "COLOR",
|
|
10929
10929
|
"valuesByMode": {
|
|
10930
10930
|
"1:1": {
|
|
@@ -10938,7 +10938,7 @@
|
|
|
10938
10938
|
},
|
|
10939
10939
|
{
|
|
10940
10940
|
"id": "VariableID:9054:130180",
|
|
10941
|
-
"name": "colors/constructs/
|
|
10941
|
+
"name": "colors/constructs/scene-moment-light",
|
|
10942
10942
|
"resolvedType": "COLOR",
|
|
10943
10943
|
"valuesByMode": {
|
|
10944
10944
|
"1:1": {
|
|
@@ -10952,7 +10952,7 @@
|
|
|
10952
10952
|
},
|
|
10953
10953
|
{
|
|
10954
10954
|
"id": "VariableID:9054:130181",
|
|
10955
|
-
"name": "colors/constructs/
|
|
10955
|
+
"name": "colors/constructs/scene-moment-dark",
|
|
10956
10956
|
"resolvedType": "COLOR",
|
|
10957
10957
|
"valuesByMode": {
|
|
10958
10958
|
"1:1": {
|
|
@@ -10966,7 +10966,7 @@
|
|
|
10966
10966
|
},
|
|
10967
10967
|
{
|
|
10968
10968
|
"id": "VariableID:9054:130182",
|
|
10969
|
-
"name": "colors/constructs/
|
|
10969
|
+
"name": "colors/constructs/scene-frontend-light",
|
|
10970
10970
|
"resolvedType": "COLOR",
|
|
10971
10971
|
"valuesByMode": {
|
|
10972
10972
|
"1:1": {
|
|
@@ -10980,7 +10980,7 @@
|
|
|
10980
10980
|
},
|
|
10981
10981
|
{
|
|
10982
10982
|
"id": "VariableID:9054:130183",
|
|
10983
|
-
"name": "colors/constructs/
|
|
10983
|
+
"name": "colors/constructs/scene-frontend-dark",
|
|
10984
10984
|
"resolvedType": "COLOR",
|
|
10985
10985
|
"valuesByMode": {
|
|
10986
10986
|
"1:1": {
|
|
@@ -11106,7 +11106,7 @@
|
|
|
11106
11106
|
},
|
|
11107
11107
|
{
|
|
11108
11108
|
"id": "VariableID:9639:47821",
|
|
11109
|
-
"name": "colors/constructs/
|
|
11109
|
+
"name": "colors/constructs/moment-light",
|
|
11110
11110
|
"resolvedType": "COLOR",
|
|
11111
11111
|
"valuesByMode": {
|
|
11112
11112
|
"1:1": {
|
|
@@ -11120,7 +11120,7 @@
|
|
|
11120
11120
|
},
|
|
11121
11121
|
{
|
|
11122
11122
|
"id": "VariableID:9639:47822",
|
|
11123
|
-
"name": "colors/constructs/
|
|
11123
|
+
"name": "colors/constructs/moment-dark",
|
|
11124
11124
|
"resolvedType": "COLOR",
|
|
11125
11125
|
"valuesByMode": {
|
|
11126
11126
|
"1:1": {
|
|
@@ -13361,7 +13361,7 @@
|
|
|
13361
13361
|
},
|
|
13362
13362
|
{
|
|
13363
13363
|
"id": "VariableID:9054:134221",
|
|
13364
|
-
"name": "constructs/
|
|
13364
|
+
"name": "constructs/scene-backend",
|
|
13365
13365
|
"resolvedType": "COLOR",
|
|
13366
13366
|
"valuesByMode": {
|
|
13367
13367
|
"1:7": {
|
|
@@ -13379,7 +13379,7 @@
|
|
|
13379
13379
|
},
|
|
13380
13380
|
{
|
|
13381
13381
|
"id": "VariableID:9054:134222",
|
|
13382
|
-
"name": "constructs/
|
|
13382
|
+
"name": "constructs/scene-moment",
|
|
13383
13383
|
"resolvedType": "COLOR",
|
|
13384
13384
|
"valuesByMode": {
|
|
13385
13385
|
"1:7": {
|
|
@@ -13397,7 +13397,7 @@
|
|
|
13397
13397
|
},
|
|
13398
13398
|
{
|
|
13399
13399
|
"id": "VariableID:9054:134223",
|
|
13400
|
-
"name": "constructs/
|
|
13400
|
+
"name": "constructs/scene-frontend",
|
|
13401
13401
|
"resolvedType": "COLOR",
|
|
13402
13402
|
"valuesByMode": {
|
|
13403
13403
|
"1:7": {
|
|
@@ -13487,7 +13487,7 @@
|
|
|
13487
13487
|
},
|
|
13488
13488
|
{
|
|
13489
13489
|
"id": "VariableID:9639:47823",
|
|
13490
|
-
"name": "constructs/
|
|
13490
|
+
"name": "constructs/moment",
|
|
13491
13491
|
"resolvedType": "COLOR",
|
|
13492
13492
|
"valuesByMode": {
|
|
13493
13493
|
"1:7": {
|
|
@@ -13541,7 +13541,7 @@
|
|
|
13541
13541
|
},
|
|
13542
13542
|
{
|
|
13543
13543
|
"id": "VariableID:9880:2504",
|
|
13544
|
-
"name": "constructs/script-
|
|
13544
|
+
"name": "constructs/script-scene",
|
|
13545
13545
|
"resolvedType": "COLOR",
|
|
13546
13546
|
"valuesByMode": {
|
|
13547
13547
|
"1:7": {
|
|
@@ -3,7 +3,7 @@ import type { ConcurrencyConfig } from "@auto-engineer/pipeline";
|
|
|
3
3
|
import { define } from "@auto-engineer/pipeline";
|
|
4
4
|
import type { AllCheckFailedEvents } from "@auto-engineer/checks";
|
|
5
5
|
import type { ServerGenerationFailedEvent } from "@auto-engineer/server-generator-apollo-emmett";
|
|
6
|
-
import type {
|
|
6
|
+
import type { MomentImplementedEvent } from "@auto-engineer/server-implementer";
|
|
7
7
|
import type { ReactAppGeneratedEvent } from "@auto-engineer/react-gen";
|
|
8
8
|
|
|
9
9
|
export const fileId = "typical-example-1";
|
|
@@ -31,44 +31,44 @@ export const pipeline = define("typical-example")
|
|
|
31
31
|
serverDirectory: resolvePath("./server"),
|
|
32
32
|
}))
|
|
33
33
|
|
|
34
|
-
.on("
|
|
35
|
-
.emit("
|
|
36
|
-
|
|
34
|
+
.on("MomentGenerated")
|
|
35
|
+
.emit("ImplementMoment", (e: MomentImplementedEvent) => ({
|
|
36
|
+
momentPath: resolvePath(e.data.momentPath),
|
|
37
37
|
context: { previousOutputs: "", attemptNumber: 0 },
|
|
38
38
|
// aiOptions: { maxTokens: 2000 },
|
|
39
39
|
}))
|
|
40
40
|
|
|
41
|
-
.on("
|
|
42
|
-
.emit("CheckTests", (e:
|
|
43
|
-
targetDirectory: e.data.
|
|
41
|
+
.on("MomentImplemented")
|
|
42
|
+
.emit("CheckTests", (e: MomentImplementedEvent) => ({
|
|
43
|
+
targetDirectory: e.data.momentPath,
|
|
44
44
|
scope: "slice",
|
|
45
45
|
}))
|
|
46
|
-
.emit("CheckTypes", (e:
|
|
47
|
-
targetDirectory: e.data.
|
|
46
|
+
.emit("CheckTypes", (e: MomentImplementedEvent) => ({
|
|
47
|
+
targetDirectory: e.data.momentPath,
|
|
48
48
|
scope: "slice",
|
|
49
49
|
}))
|
|
50
|
-
.emit("CheckLint", (e:
|
|
51
|
-
targetDirectory: e.data.
|
|
50
|
+
.emit("CheckLint", (e: MomentImplementedEvent) => ({
|
|
51
|
+
targetDirectory: e.data.momentPath,
|
|
52
52
|
scope: "slice",
|
|
53
53
|
fix: true,
|
|
54
54
|
}))
|
|
55
55
|
|
|
56
|
-
.settled(["CheckTests", "CheckTypes", "CheckLint"], "
|
|
57
|
-
.dispatch({ dispatches: ["
|
|
56
|
+
.settled(["CheckTests", "CheckTypes", "CheckLint"], "Moment Checks Settle")
|
|
57
|
+
.dispatch({ dispatches: ["ImplementMoment"] }, (events, send) => {
|
|
58
58
|
const allEvents = gatherAllCheckEvents(events);
|
|
59
59
|
|
|
60
60
|
if (!hasAnyFailures(allEvents)) {
|
|
61
|
-
const
|
|
62
|
-
sliceRetryState.delete(
|
|
61
|
+
const momentPath = extractMomentPath(events);
|
|
62
|
+
sliceRetryState.delete(momentPath);
|
|
63
63
|
return { persist: true };
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
const
|
|
66
|
+
const momentPath = extractMomentPath(events);
|
|
67
67
|
|
|
68
|
-
if (!shouldRetry(
|
|
68
|
+
if (!shouldRetry(momentPath)) {
|
|
69
69
|
const errors = collectErrors(allEvents);
|
|
70
70
|
console.error(
|
|
71
|
-
`
|
|
71
|
+
`Moment implementation failed after ${MAX_RETRIES} retries: ${momentPath}`,
|
|
72
72
|
);
|
|
73
73
|
if (errors) {
|
|
74
74
|
console.error(` Last errors:\n${errors}`);
|
|
@@ -76,9 +76,9 @@ export const pipeline = define("typical-example")
|
|
|
76
76
|
return;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
const retryAttempt = incrementRetryCount(
|
|
80
|
-
send("
|
|
81
|
-
|
|
79
|
+
const retryAttempt = incrementRetryCount(momentPath);
|
|
80
|
+
send("ImplementMoment", {
|
|
81
|
+
momentPath,
|
|
82
82
|
context: {
|
|
83
83
|
previousOutputs: collectErrors(allEvents),
|
|
84
84
|
attemptNumber: retryAttempt,
|
|
@@ -102,17 +102,17 @@ export const pipeline = define("typical-example")
|
|
|
102
102
|
data: {
|
|
103
103
|
error: e.data.error,
|
|
104
104
|
model: e.data.model,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
sceneName: e.data.sceneName,
|
|
106
|
+
momentName: e.data.momentName,
|
|
107
|
+
momentType: e.data.momentType,
|
|
108
108
|
},
|
|
109
109
|
},
|
|
110
110
|
}))
|
|
111
111
|
|
|
112
|
-
.on("
|
|
112
|
+
.on("MomentGenerationFailed")
|
|
113
113
|
.when((e: { data: { error: string } }) => {
|
|
114
|
-
if (
|
|
115
|
-
|
|
114
|
+
if (reportedMomentErrors.has(e.data.error)) return false;
|
|
115
|
+
reportedMomentErrors.add(e.data.error);
|
|
116
116
|
return true;
|
|
117
117
|
})
|
|
118
118
|
.emit(
|
|
@@ -122,9 +122,9 @@ export const pipeline = define("typical-example")
|
|
|
122
122
|
data: {
|
|
123
123
|
error: string;
|
|
124
124
|
model: unknown;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
sceneName: string;
|
|
126
|
+
momentName: string;
|
|
127
|
+
momentType: string;
|
|
128
128
|
};
|
|
129
129
|
}) => ({
|
|
130
130
|
payload: {
|
|
@@ -132,9 +132,9 @@ export const pipeline = define("typical-example")
|
|
|
132
132
|
data: {
|
|
133
133
|
error: e.data.error,
|
|
134
134
|
model: e.data.model,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
sceneName: e.data.sceneName,
|
|
136
|
+
momentName: e.data.momentName,
|
|
137
|
+
momentType: e.data.momentType,
|
|
138
138
|
},
|
|
139
139
|
},
|
|
140
140
|
}),
|
|
@@ -144,7 +144,7 @@ export const pipeline = define("typical-example")
|
|
|
144
144
|
|
|
145
145
|
export function resetState(): void {
|
|
146
146
|
sliceRetryState.clear();
|
|
147
|
-
|
|
147
|
+
reportedMomentErrors.clear();
|
|
148
148
|
projectRoot = "";
|
|
149
149
|
}
|
|
150
150
|
|
|
@@ -179,7 +179,7 @@ function collectErrors(events: Event[]): string {
|
|
|
179
179
|
.join("\n");
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
function
|
|
182
|
+
function extractMomentPath(events: Record<string, Event[]>): string {
|
|
183
183
|
const firstEvent =
|
|
184
184
|
events.CheckTests?.[0] ?? events.CheckTypes?.[0] ?? events.CheckLint?.[0];
|
|
185
185
|
const data = firstEvent?.data as AllCheckFailedEvents["data"] | undefined;
|
|
@@ -194,20 +194,20 @@ function gatherAllCheckEvents(events: Record<string, Event[]>): Event[] {
|
|
|
194
194
|
];
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
-
function shouldRetry(
|
|
198
|
-
const attempts = sliceRetryState.get(
|
|
197
|
+
function shouldRetry(momentPath: string): boolean {
|
|
198
|
+
const attempts = sliceRetryState.get(momentPath) ?? 0;
|
|
199
199
|
return attempts < MAX_RETRIES;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
function incrementRetryCount(
|
|
203
|
-
const attempts = sliceRetryState.get(
|
|
204
|
-
sliceRetryState.set(
|
|
202
|
+
function incrementRetryCount(momentPath: string): number {
|
|
203
|
+
const attempts = sliceRetryState.get(momentPath) ?? 0;
|
|
204
|
+
sliceRetryState.set(momentPath, attempts + 1);
|
|
205
205
|
return attempts + 1;
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
const MAX_RETRIES = 3;
|
|
209
209
|
const sliceRetryState = new Map<string, number>();
|
|
210
|
-
const
|
|
210
|
+
const reportedMomentErrors = new Set<string>();
|
|
211
211
|
let projectRoot = "";
|
|
212
212
|
|
|
213
213
|
function resolvePath(relativePath: string): string {
|