@beastmode-develeap/beastmode 0.1.10 → 0.1.11
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/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4400,19 +4400,27 @@ Respond concisely using the board data above. Do not try to fetch data externall
|
|
|
4400
4400
|
const transformed = transformCliEvent(parsed);
|
|
4401
4401
|
if (transformed) sendToClient(session, transformed);
|
|
4402
4402
|
} catch {
|
|
4403
|
-
|
|
4403
|
+
if (line.trim() && !line.startsWith("\u256D") && !line.startsWith("\u2570") && !line.startsWith("\u2502") && line.length > 2) {
|
|
4404
|
+
sendToClient(session, { type: "text", content: line });
|
|
4405
|
+
}
|
|
4404
4406
|
}
|
|
4405
4407
|
}
|
|
4406
4408
|
});
|
|
4407
4409
|
child.stderr?.on("data", (data) => {
|
|
4408
4410
|
const text = data.toString("utf-8").trim();
|
|
4409
4411
|
if (!text) return;
|
|
4410
|
-
if (text.includes("configuration file not found") || text.includes("backup file exists") || text.includes("manually restore it by running") || text.includes("
|
|
4412
|
+
if (text.includes("configuration file not found") || text.includes("backup file exists") || text.includes("manually restore it by running") || text.includes("CLAUDE_CODE_")) return;
|
|
4411
4413
|
sendToClient(session, { type: "error", message: text });
|
|
4412
4414
|
});
|
|
4413
|
-
child.on("exit", () => {
|
|
4415
|
+
child.on("exit", (code) => {
|
|
4414
4416
|
session.process = null;
|
|
4415
4417
|
session.busy = false;
|
|
4418
|
+
if (!collectedText && code !== 0 && session.claudeSessionId) {
|
|
4419
|
+
session.claudeSessionId = null;
|
|
4420
|
+
sendToClient(session, { type: "system", message: "Session expired \u2014 starting fresh conversation." });
|
|
4421
|
+
runViaCli(session, content, scope);
|
|
4422
|
+
return;
|
|
4423
|
+
}
|
|
4416
4424
|
if (collectedText) {
|
|
4417
4425
|
session.conversationHistory.push({ role: "assistant", content: collectedText });
|
|
4418
4426
|
}
|