gm-kilo 2.0.36 → 2.0.37
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/gm.mjs +2 -5
- package/package.json +1 -1
package/gm.mjs
CHANGED
|
@@ -31,9 +31,6 @@ export default async ({ project, client, $, directory, worktree }) => {
|
|
|
31
31
|
return thornsPromise;
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
// Kick off thorns immediately
|
|
35
|
-
startThorns();
|
|
36
|
-
|
|
37
34
|
const prdFile = path.join(directory, '.prd');
|
|
38
35
|
|
|
39
36
|
return {
|
|
@@ -42,8 +39,8 @@ export default async ({ project, client, $, directory, worktree }) => {
|
|
|
42
39
|
const prd = fs.existsSync(prdFile) ? fs.readFileSync(prdFile, 'utf-8').trim() : '';
|
|
43
40
|
let content = rules || '';
|
|
44
41
|
if (prd) content += '\n\nPENDING WORK (.prd):\n' + prd;
|
|
45
|
-
//
|
|
46
|
-
const thorns = await
|
|
42
|
+
// Await thorns fully on first call (starts and waits), cached on subsequent calls
|
|
43
|
+
const thorns = await startThorns();
|
|
47
44
|
if (thorns) content += '\n\n=== Repository Analysis (mcp-thorns) ===\n' + thorns;
|
|
48
45
|
if (content) output.system.push(content);
|
|
49
46
|
}
|