gm-kilo 2.0.891 → 2.0.892
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-kilo.mjs +1 -2
- package/package.json +1 -1
package/gm-kilo.mjs
CHANGED
|
@@ -205,8 +205,7 @@ 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
|
-
|
|
209
|
-
return;
|
|
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.');
|
|
210
209
|
}
|
|
211
210
|
const rawLang = (m[1]||'').toLowerCase();
|
|
212
211
|
if (rawLang === 'bash' || rawLang === 'sh' || rawLang === '') {
|