gm-qwen 2.0.871 → 2.0.873

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/bin/plugkit.js CHANGED
@@ -32,12 +32,16 @@ async function main() {
32
32
  bin = resolveCachedBinary({ wrapperDir: dir }) || legacyFallback();
33
33
  if (!bin) {
34
34
  const hookSubcmd = args[1] || '';
35
- if (hookSubcmd === 'pre-tool-use') {
36
- process.stdout.write(JSON.stringify({ decision: 'block', reason: '[plugkit] binary not yet installed — bootstrap in progress. All tool use blocked until plugkit binary is downloaded and enforcement is active.' }));
37
- obsEvent('plugkit_wrapper', 'hook_block_uncached', { argv: args.slice(0, 4), dur_ms: Date.now() - startedAt });
35
+ if (hookSubcmd === 'session-start') {
36
+ obsEvent('plugkit_wrapper', 'hook_bootstrap_session_start', { argv: args.slice(0, 4) });
37
+ try {
38
+ await bootstrap({ wrapperDir: dir });
39
+ } catch (e) {
40
+ process.stderr.write(`[plugkit] session-start bootstrap failed: ${e.message}\n`);
41
+ }
38
42
  process.exit(0);
39
43
  }
40
- process.stderr.write(`[plugkit] hook ${hookSubcmd} skipped: binary not yet installed (cache miss). Enforcement disabled until bootstrap completes.\n`);
44
+ process.stderr.write(`[plugkit] hook ${hookSubcmd} skipped: binary not yet installed. Bootstrap will run on session-start.\n`);
41
45
  obsEvent('plugkit_wrapper', 'hook_skip_uncached', { argv: args.slice(0, 4), dur_ms: Date.now() - startedAt });
42
46
  process.exit(0);
43
47
  }
package/gm.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.871",
3
+ "version": "2.0.873",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-qwen",
3
- "version": "2.0.871",
3
+ "version": "2.0.873",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",