@beastmode-develeap/beastmode 0.1.8 → 0.1.10
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 +10 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4338,7 +4338,11 @@ ${summary.join("\n")}`;
|
|
|
4338
4338
|
}
|
|
4339
4339
|
const scopeContext = scope !== "factory" ? `
|
|
4340
4340
|
You are scoped to project "${scope}". Focus answers on this project only.` : "\nYou have factory-wide scope. Answer questions about any/all projects.";
|
|
4341
|
-
|
|
4341
|
+
let prompt;
|
|
4342
|
+
if (session.claudeSessionId) {
|
|
4343
|
+
prompt = content;
|
|
4344
|
+
} else {
|
|
4345
|
+
prompt = `IMPORTANT CONTEXT \u2014 READ BEFORE RESPONDING:
|
|
4342
4346
|
You are the BeastMode chat assistant. You have ALL the data you need below. Do NOT use curl, do NOT reference Monday.com, do NOT ask for permissions. The task board data is provided inline.
|
|
4343
4347
|
${scopeContext}
|
|
4344
4348
|
|
|
@@ -4350,9 +4354,10 @@ Factory path: ${session.factoryPath}
|
|
|
4350
4354
|
USER QUESTION: ${content}
|
|
4351
4355
|
|
|
4352
4356
|
Respond concisely using the board data above. Do not try to fetch data externally.`;
|
|
4357
|
+
}
|
|
4353
4358
|
const args = [
|
|
4354
4359
|
"-p",
|
|
4355
|
-
|
|
4360
|
+
prompt,
|
|
4356
4361
|
"--output-format",
|
|
4357
4362
|
"stream-json",
|
|
4358
4363
|
"--verbose"
|
|
@@ -4401,7 +4406,9 @@ Respond concisely using the board data above. Do not try to fetch data externall
|
|
|
4401
4406
|
});
|
|
4402
4407
|
child.stderr?.on("data", (data) => {
|
|
4403
4408
|
const text = data.toString("utf-8").trim();
|
|
4404
|
-
if (text)
|
|
4409
|
+
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("Not logged in") || text.includes("CLAUDE_CODE_")) return;
|
|
4411
|
+
sendToClient(session, { type: "error", message: text });
|
|
4405
4412
|
});
|
|
4406
4413
|
child.on("exit", () => {
|
|
4407
4414
|
session.process = null;
|