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 +8 -4
- package/gm.json +1 -1
- package/package.json +1 -1
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 === '
|
|
36
|
-
|
|
37
|
-
|
|
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
|
|
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