gm-oc 2.0.41 → 2.0.43

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.
Files changed (2) hide show
  1. package/gm.mjs +2 -4
  2. package/package.json +1 -1
package/gm.mjs CHANGED
@@ -21,7 +21,7 @@ export async function GmPlugin({ directory }) {
21
21
  const runCodeSearch = (query) => new Promise((resolve) => {
22
22
  const q = query.replace(/"/g, '\\"').substring(0, 200);
23
23
  exec('bun x codebasesearch@latest "' + q + '"', {
24
- encoding: 'utf-8', cwd: directory, timeout: 55000
24
+ encoding: 'utf-8', cwd: directory, timeout: 300000
25
25
  }, (err, stdout) => {
26
26
  if (err) return resolve('');
27
27
  const lines = (stdout || '').split('\n');
@@ -50,8 +50,6 @@ export async function GmPlugin({ directory }) {
50
50
  const prd = existsSync(prdFile) ? readFileSync(prdFile, 'utf-8').trim() : '';
51
51
  let content = rules || '';
52
52
  if (prd) content += '\n\nPENDING WORK (.prd):\n' + prd;
53
- // On every user prompt: run thorns + codebasesearch fresh in parallel
54
- // Skip if last message is from assistant (tool result inject, no new user input)
55
53
  const msgs = input?.messages || [];
56
54
  const lastMsg = msgs.length > 0 ? msgs[msgs.length - 1] : null;
57
55
  const hasNewUserPrompt = !lastMsg || lastMsg.role === 'user';
@@ -62,7 +60,7 @@ export async function GmPlugin({ directory }) {
62
60
  userQuery ? runCodeSearch(userQuery) : Promise.resolve('')
63
61
  ]);
64
62
  if (thorns) content += '\n\n=== Repository Analysis (mcp-thorns) ===\n' + thorns;
65
- if (search) content += '\n\n=== Semantic code search results ===\n' + search;
63
+ if (search) content += '\n\n=== Semantic Code Search Results ===\n' + search;
66
64
  }
67
65
  if (content) output.system.push(content);
68
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-oc",
3
- "version": "2.0.41",
3
+ "version": "2.0.43",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",