gm-qwen 2.0.868 → 2.0.869
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 +7 -1
- package/gm.json +1 -1
- package/package.json +1 -1
package/bin/plugkit.js
CHANGED
|
@@ -31,7 +31,13 @@ async function main() {
|
|
|
31
31
|
if (isHook) {
|
|
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 });
|
|
38
|
+
process.exit(0);
|
|
39
|
+
}
|
|
40
|
+
process.stderr.write(`[plugkit] hook ${hookSubcmd} skipped: binary not yet installed (cache miss). Enforcement disabled until bootstrap completes.\n`);
|
|
35
41
|
obsEvent('plugkit_wrapper', 'hook_skip_uncached', { argv: args.slice(0, 4), dur_ms: Date.now() - startedAt });
|
|
36
42
|
process.exit(0);
|
|
37
43
|
}
|
package/gm.json
CHANGED