gm-kilo 2.0.480 → 2.0.481

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-kilo.mjs +12 -1
  2. package/package.json +1 -1
package/gm-kilo.mjs CHANGED
@@ -180,6 +180,17 @@ export async function GmPlugin({ directory }) {
180
180
  }
181
181
  const result = runExecSync(m[1]||'', m[2], output.args.workdir || directory);
182
182
  output.args = { ...output.args, command: safePrintf('exec:'+(m[1]||'nodejs')+' output:\n\n'+result) };
183
- }
183
+ },
184
+ 'message.updated': async (input, output) => {
185
+ try {
186
+ const role = input && input.message && input.message.info && input.message.info.role;
187
+ if (role !== 'user') return;
188
+ runPlugkit(['hook', 'prompt-submit']);
189
+ } catch(e) {}
190
+ },
191
+ 'session.closing': async (input, output) => {
192
+ try { runPlugkit(['hook', 'stop']); } catch(e) {}
193
+ try { runPlugkit(['hook', 'stop-git']); } catch(e) {}
194
+ },
184
195
  };
185
196
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-kilo",
3
- "version": "2.0.480",
3
+ "version": "2.0.481",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",