@beastmode-develeap/beastmode 0.1.12 → 0.1.13
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 +21 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4352,24 +4352,40 @@ ${formatted}
|
|
|
4352
4352
|
---
|
|
4353
4353
|
`;
|
|
4354
4354
|
}
|
|
4355
|
-
const
|
|
4356
|
-
|
|
4355
|
+
const boardApiUrl = getBoardUrl(session.factoryPath);
|
|
4356
|
+
const boardParam = scope !== "factory" ? `?board=${scope}` : "";
|
|
4357
|
+
const prompt = `CRITICAL CONTEXT \u2014 YOU MUST READ THIS:
|
|
4358
|
+
You are the BeastMode chat assistant running inside a BeastMode factory.
|
|
4359
|
+
|
|
4360
|
+
IMPORTANT RULES:
|
|
4361
|
+
- Monday.com does NOT exist in this system. NEVER mention Monday.com. There is NO Monday.com integration.
|
|
4362
|
+
- This factory uses a LOCAL self-hosted BeastMode Board with a REST API.
|
|
4363
|
+
- You have tools available. You can execute bash commands. Use curl to interact with the board API.
|
|
4364
|
+
- NEVER ask for permissions. You have full access. Just do it.
|
|
4357
4365
|
${scopeContext}
|
|
4358
4366
|
|
|
4359
|
-
|
|
4367
|
+
BOARD API (use curl to manage tasks):
|
|
4368
|
+
- Base URL: ${boardApiUrl}
|
|
4369
|
+
- List items: curl -s '${boardApiUrl}/api/items${boardParam}'
|
|
4370
|
+
- Create item: curl -s -X POST '${boardApiUrl}/api/items${boardParam}' -H 'Content-Type: application/json' -d '{"name":"Task title","status":"","priority":"Medium","task_type":"deep-planning"}'
|
|
4371
|
+
(status="" means Draft/New. Valid statuses: "", "New", "Ready", "Working on it", "Done", etc.)
|
|
4372
|
+
- Update item: curl -s -X PATCH '${boardApiUrl}/api/items/ITEM_ID${boardParam}' -H 'Content-Type: application/json' -d '{"status":"Ready"}'
|
|
4373
|
+
|
|
4374
|
+
Current board items:
|
|
4360
4375
|
${boardContext}
|
|
4361
4376
|
|
|
4362
4377
|
Factory path: ${session.factoryPath}
|
|
4363
4378
|
${historyBlock}
|
|
4364
4379
|
USER MESSAGE: ${content}
|
|
4365
4380
|
|
|
4366
|
-
Respond concisely. Continue the conversation naturally
|
|
4381
|
+
Respond concisely. Continue the conversation naturally.`;
|
|
4367
4382
|
const args = [
|
|
4368
4383
|
"-p",
|
|
4369
4384
|
prompt,
|
|
4370
4385
|
"--output-format",
|
|
4371
4386
|
"stream-json",
|
|
4372
|
-
"--verbose"
|
|
4387
|
+
"--verbose",
|
|
4388
|
+
"--dangerously-skip-permissions"
|
|
4373
4389
|
];
|
|
4374
4390
|
const child = spawn("claude", args, {
|
|
4375
4391
|
cwd: session.factoryPath,
|