clawcompany 0.28.0 → 0.28.1
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 +7 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2116,7 +2116,7 @@ import { join } from "path";
|
|
|
2116
2116
|
import { existsSync, readFileSync, writeFileSync, mkdirSync } from "fs";
|
|
2117
2117
|
function banner() {
|
|
2118
2118
|
console.log("");
|
|
2119
|
-
console.log(" \u{1F99E} ClawCompany v0.28.
|
|
2119
|
+
console.log(" \u{1F99E} ClawCompany v0.28.1");
|
|
2120
2120
|
console.log(" Build for OPC. Every human being is a chairman.");
|
|
2121
2121
|
console.log("");
|
|
2122
2122
|
}
|
|
@@ -3497,15 +3497,15 @@ Decompose into work streams. For each, specify:
|
|
|
3497
3497
|
- requiredTools (array)
|
|
3498
3498
|
|
|
3499
3499
|
IMPORTANT RULES:
|
|
3500
|
-
1. You MUST create at least 3 different work streams using at least 3 different roles
|
|
3500
|
+
1. You MUST create at least 3 different work streams using at least ${Math.min(3, roles.length)} different roles
|
|
3501
3501
|
2. NEVER assign the entire mission to one person \u2014 that is lazy and unacceptable
|
|
3502
|
-
3.
|
|
3503
|
-
4.
|
|
3502
|
+
3. You may ONLY use roles from "Your team" above: ${roles.map((r) => r.id).join(", ")}
|
|
3503
|
+
4. Distribute work across roles based on each role's description. Use every available role if possible.
|
|
3504
3504
|
5. A mission with only 1 work stream will be REJECTED automatically
|
|
3505
3505
|
|
|
3506
3506
|
Respond ONLY with JSON:
|
|
3507
3507
|
{
|
|
3508
|
-
"workStreams": [ { "id": "ws_1", "title": "...", "description": "...", "assignTo": "worker", "dependencies": [], "estimatedComplexity": "low", "requiredTools": ["http"] } ]
|
|
3508
|
+
"workStreams": [ { "id": "ws_1", "title": "...", "description": "...", "assignTo": "${roles[0]?.id ?? "worker"}", "dependencies": [], "estimatedComplexity": "low", "requiredTools": ["http"] } ]
|
|
3509
3509
|
}`
|
|
3510
3510
|
}
|
|
3511
3511
|
]);
|
|
@@ -3518,12 +3518,13 @@ Respond ONLY with JSON:
|
|
|
3518
3518
|
status: "pending"
|
|
3519
3519
|
}));
|
|
3520
3520
|
} catch {
|
|
3521
|
+
const fallbackRole = roles[0]?.id ?? leader.id;
|
|
3521
3522
|
return [{
|
|
3522
3523
|
id: "ws_1",
|
|
3523
3524
|
missionId: mission.id,
|
|
3524
3525
|
title: mission.content.slice(0, 100),
|
|
3525
3526
|
description: mission.content,
|
|
3526
|
-
assignTo:
|
|
3527
|
+
assignTo: fallbackRole,
|
|
3527
3528
|
dependencies: [],
|
|
3528
3529
|
estimatedComplexity: "medium",
|
|
3529
3530
|
requiredTools: [],
|
package/package.json
CHANGED