@ggui-ai/shared 0.1.0-rc.3 → 0.2.0-alpha.3
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.
|
@@ -17,12 +17,13 @@
|
|
|
17
17
|
export interface ComponentErrorReport {
|
|
18
18
|
/** Unique error ID for tracking */
|
|
19
19
|
errorId: string;
|
|
20
|
-
/**
|
|
21
|
-
|
|
20
|
+
/** Render that experienced the error. Post-Phase-B the old
|
|
21
|
+
* `sessionId` + `stackItemId` pair collapses to one `renderId` —
|
|
22
|
+
* every stack item is now a top-level render and the values were
|
|
23
|
+
* always identical anyway. */
|
|
24
|
+
renderId: string;
|
|
22
25
|
/** App ID */
|
|
23
26
|
appId: string;
|
|
24
|
-
/** Stack item ID of the failing component */
|
|
25
|
-
stackItemId: string;
|
|
26
27
|
/** Error details */
|
|
27
28
|
error: {
|
|
28
29
|
/** Error message */
|
|
@@ -62,8 +63,8 @@ export interface ComponentRepairResult {
|
|
|
62
63
|
success: boolean;
|
|
63
64
|
/** The error ID this repairs */
|
|
64
65
|
errorId: string;
|
|
65
|
-
/**
|
|
66
|
-
|
|
66
|
+
/** Render ID — the failing component's render identity. */
|
|
67
|
+
renderId: string;
|
|
67
68
|
/** Repaired compiled code (if successful) */
|
|
68
69
|
repairedCode?: string;
|
|
69
70
|
/** Repaired source code (if available) */
|
|
@@ -114,12 +115,12 @@ export interface SelfRepairEvents {
|
|
|
114
115
|
'component:error': ComponentErrorReport;
|
|
115
116
|
'component:repairing': {
|
|
116
117
|
errorId: string;
|
|
117
|
-
|
|
118
|
+
renderId: string;
|
|
118
119
|
};
|
|
119
120
|
'component:repaired': ComponentRepairResult;
|
|
120
121
|
'component:repair-failed': {
|
|
121
122
|
errorId: string;
|
|
122
|
-
|
|
123
|
+
renderId: string;
|
|
123
124
|
reason: string;
|
|
124
125
|
};
|
|
125
126
|
}
|
|
@@ -131,8 +132,8 @@ export interface RepairHistoryEntry {
|
|
|
131
132
|
errorId: string;
|
|
132
133
|
/** App ID */
|
|
133
134
|
appId: string;
|
|
134
|
-
/**
|
|
135
|
-
|
|
135
|
+
/** Render ID */
|
|
136
|
+
renderId: string;
|
|
136
137
|
/** Error type */
|
|
137
138
|
errorType: string;
|
|
138
139
|
/** Error message */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"self-repair.d.ts","sourceRoot":"","sources":["../../src/types/self-repair.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,mCAAmC;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB
|
|
1
|
+
{"version":3,"file":"self-repair.d.ts","sourceRoot":"","sources":["../../src/types/self-repair.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,mCAAmC;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB;;;mCAG+B;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa;IACb,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,KAAK,EAAE;QACL,oBAAoB;QACpB,OAAO,EAAE,MAAM,CAAC;QAChB,qDAAqD;QACrD,IAAI,EAAE,MAAM,CAAC;QACb,kBAAkB;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,uCAAuC;QACvC,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,8CAA8C;IAC9C,OAAO,EAAE;QACP,6CAA6C;QAC7C,MAAM,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,cAAc,CAAC;QACrE,4CAA4C;QAC5C,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAChC,yCAAyC;QACzC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC3C,+BAA+B;QAC/B,SAAS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