gm-kilo 2.0.913 → 2.0.914

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 +4 -4
  2. package/package.json +1 -1
package/gm-kilo.mjs CHANGED
@@ -181,12 +181,12 @@ export async function GmPlugin({ directory }) {
181
181
  throw new Error('Plan mode is disabled. Use the gm skill (PLAN→EXECUTE→EMIT→VERIFY→COMPLETE state machine) instead.');
182
182
  }
183
183
  if (input.tool === 'Task' && input.args?.subagent_type === 'Explore') {
184
- throw new Error('The Explore agent is blocked. Use exec:codesearch in the Bash tool instead.\n\nexec:codesearch\n<natural language description of what to find>');
184
+ throw new Error('The Explore agent is blocked. Use exec:codesearch in the Bash tool instead.\n\nexec:codesearch\n<natural language description of what to find>\n\nFor raw JIT execution, write code to `.gm/exec-spool/in/<task>.json` and let the spool watcher execute it.');
185
185
  }
186
186
  if (input.tool === 'Skill') {
187
187
  const skill = ((input.args && input.args.skill) || '').toLowerCase().replace(/^gm:/,'');
188
188
  if (skill === 'explore' || skill === 'search') {
189
- throw new Error('The search/explore skill is blocked. Use exec:codesearch instead.\n\nexec:codesearch\n<natural language description>');
189
+ throw new Error('The search/explore skill is blocked. Use exec:codesearch instead.\n\nexec:codesearch\n<natural language description>\n\nFor raw JIT execution, write code to `.gm/exec-spool/in/<task>.json` and let the spool watcher execute it.');
190
190
  }
191
191
  }
192
192
  if (input.tool === 'write' || input.tool === 'Write' || input.tool === 'edit' || input.tool === 'Edit') {
@@ -205,12 +205,12 @@ export async function GmPlugin({ directory }) {
205
205
  if (/^\s*git(?:\s|$)/.test(cmd)) return;
206
206
  const m = cmd.match(/^exec(?::(\S+))?\n([\s\S]+)$/);
207
207
  if (!m) {
208
- throw new Error('Use exec: prefix for Bash. The command must start with `exec` or `exec:<lang>` on its own line, then the body on the next line. Examples:\n\nexec\nls -la\n\nexec:nodejs\nconsole.log("hello")\n\nexec:bash\ngit status\n\nLanguages: nodejs (default), bash, python, typescript, go, rust, deno, cmd. File I/O via exec:nodejs + require("fs"). Codebase search: exec:codesearch on its own line, then a two-word query.');
208
+ throw new Error('Use exec: prefix for Bash. The command must start with `exec` or `exec:<lang>` on its own line, then the body on the next line. Examples:\n\nexec\nls -la\n\nexec:nodejs\nconsole.log("hello")\n\nexec:bash\ngit status\n\nLanguages: nodejs (default), bash, python, typescript, go, rust, deno, cmd. File I/O via exec:nodejs + require("fs"). Raw JIT execution can also use `.gm/exec-spool/in/<task>.json`; the spool watcher executes it and writes `.gm/exec-spool/out/<task>.json`. Codebase search: exec:codesearch on its own line, then a two-word query.');
209
209
  }
210
210
  const rawLang = (m[1]||'').toLowerCase();
211
211
  if (rawLang === 'bash' || rawLang === 'sh' || rawLang === '') {
212
212
  const banned = bashBannedTool(m[2]);
213
- if (banned) throw new Error('`'+banned+'` is blocked in exec:bash. Use exec:codesearch instead.');
213
+ if (banned) throw new Error('`'+banned+'` is blocked in exec:bash. Use exec:codesearch instead. For raw JIT execution, write code to `.gm/exec-spool/in/<task>.json` and let the spool watcher execute it.');
214
214
  }
215
215
  const result = runExecSync(m[1]||'', m[2], output.args.workdir || directory);
216
216
  output.args = { ...output.args, command: safePrintf('exec:'+(m[1]||'nodejs')+' output:\n\n'+result) };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-kilo",
3
- "version": "2.0.913",
3
+ "version": "2.0.914",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",