company-skill 2.2.1 → 2.2.2
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/hooks/stop-guard.js +6 -4
- package/package.json +1 -1
package/hooks/stop-guard.js
CHANGED
|
@@ -28,8 +28,9 @@ if (fs.existsSync(criteriaPath)) {
|
|
|
28
28
|
|
|
29
29
|
const failList = failing.map(c => c.description).join(', ');
|
|
30
30
|
console.log(JSON.stringify({
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
continue: false,
|
|
32
|
+
stopReason: failing.length + "/" + all.length + " criteria not met. Continue working.",
|
|
33
|
+
systemMessage: "COMPANY GOAL NOT ACHIEVED. " + failing.length + " criteria still failing: " + failList + ". Read .company/criteria.json and start the next THINK > EXECUTE > VERIFY cycle."
|
|
33
34
|
}));
|
|
34
35
|
process.exit(0);
|
|
35
36
|
} catch (e) {
|
|
@@ -46,6 +47,7 @@ if (fs.existsSync(statusPath)) {
|
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
console.log(JSON.stringify({
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
continue: false,
|
|
51
|
+
stopReason: "Company goal not yet achieved.",
|
|
52
|
+
systemMessage: "COMPANY GOAL NOT ACHIEVED. Read .company/criteria.json and .company/GOAL.md. Start the next THINK > EXECUTE > VERIFY cycle."
|
|
51
53
|
}));
|