gm-kilo 2.0.1054 → 2.0.1056

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 +6 -1
  2. package/package.json +1 -1
package/gm-kilo.mjs CHANGED
@@ -126,7 +126,7 @@ export async function GmPlugin({ directory }) {
126
126
  const textPart = msg.parts && msg.parts.find(p => p.type === 'text' && p.text && p.text.trim());
127
127
  const prompt = textPart ? textPart.text.trim() : '';
128
128
  const parts = [];
129
- parts.push('Invoke the `gm` skill to begin. DO NOT use EnterPlanMode. Treat the `exec:` preamble as authoritative; host auto-detection is fallback only. Raw JIT code can also be written to `.gm/exec-spool/in/<lang>/<N>.<ext>` (e.g. in/nodejs/42.js) — the spool watcher executes it and writes out/<N>.json. Keep stale running tasks in view and prefer the latest task reminder over starting duplicate work.');
129
+ parts.push('Invoke the `gm` skill to begin. Treat the `exec:` preamble as authoritative; host auto-detection is fallback only. Raw JIT code can also be written to `.gm/exec-spool/in/<lang>/<N>.<ext>` (e.g. in/nodejs/42.js) — the spool watcher executes it and writes out/<N>.json. Keep stale running tasks in view and prefer the latest task reminder over starting duplicate work.');
130
130
  const insight = runPlugkit(['codeinsight', directory]);
131
131
  if (insight && !insight.startsWith('Error')) parts.push('=== codeinsight ===\n'+insight);
132
132
  if (prompt) {
@@ -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.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-kilo",
3
- "version": "2.0.1054",
3
+ "version": "2.0.1056",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",