gm-kilo 2.0.1054 → 2.0.1055
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 +5 -0
- package/package.json +1 -1
package/gm-kilo.mjs
CHANGED
|
@@ -146,6 +146,11 @@ export async function GmPlugin({ directory }) {
|
|
|
146
146
|
const noMemoPath = join(gmDir, 'no-memorize-this-turn');
|
|
147
147
|
const tool = input.tool || '';
|
|
148
148
|
const args = (input.args || (output && output.args) || {});
|
|
149
|
+
if (!sessionStarted) {
|
|
150
|
+
sessionStarted = true;
|
|
151
|
+
try { runPlugkit(['hook', 'session-start']); } catch(e) {}
|
|
152
|
+
try { runPlugkit(['bootstrap', directory]); } catch(e) {}
|
|
153
|
+
}
|
|
149
154
|
const skillName = (args.skill || args.name || '').toString();
|
|
150
155
|
if (FORBIDDEN_TOOLS.has(input.tool)) {
|
|
151
156
|
throw new Error('Use the code-search skill for codebase exploration instead of '+input.tool+'. Describe what you need in plain language.');
|