lunel-cli 0.1.120 → 0.1.121
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/dist/ai/opencode.js +13 -4
- package/package.json +1 -1
package/dist/ai/opencode.js
CHANGED
|
@@ -102,10 +102,19 @@ function normalizeOpenCodePart(part) {
|
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
else if (status === "error") {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
105
|
+
if (metadata.interrupted === true) {
|
|
106
|
+
normalized.state = "completed";
|
|
107
|
+
normalized.interrupted = true;
|
|
108
|
+
const interruptedOutput = readString(metadata.output);
|
|
109
|
+
if (interruptedOutput)
|
|
110
|
+
normalized.output = interruptedOutput;
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
normalized.error = readString(state.error) ?? "Tool failed";
|
|
114
|
+
const errorMessage = readString(state.error);
|
|
115
|
+
if (errorMessage)
|
|
116
|
+
normalized.output = errorMessage;
|
|
117
|
+
}
|
|
109
118
|
}
|
|
110
119
|
const attachments = Array.isArray(state.attachments) ? state.attachments : [];
|
|
111
120
|
if (attachments.length > 0) {
|