gm-skill 2.0.1397 → 2.0.1398
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-plugkit/package.json +1 -1
- package/gm-plugkit/plugkit-wasm-wrapper.js +17 -4
- package/gm.json +1 -1
- package/package.json +1 -1
package/gm-plugkit/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm-plugkit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1398",
|
|
4
4
|
"description": "Bootstrap and daemon-spawn tool for gm plugkit binary. Downloads the correct platform binary, verifies SHA256, and starts the spool watcher daemon. Includes plugkit-wasm-wrapper for WASM-based spool watching.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -2287,11 +2287,10 @@ async function runSpoolWatcher(instance, spoolDir) {
|
|
|
2287
2287
|
action: 'spawn-replacement-and-exit',
|
|
2288
2288
|
boot_reason: bootReason,
|
|
2289
2289
|
});
|
|
2290
|
-
console.error(`[plugkit-wasm] wrapper.js drift detected — spawning replacement
|
|
2290
|
+
console.error(`[plugkit-wasm] wrapper.js drift detected — spawning replacement directly from installed wrapper then exiting`);
|
|
2291
2291
|
try {
|
|
2292
2292
|
const cp = require('child_process');
|
|
2293
|
-
const
|
|
2294
|
-
const child = cp.spawn(bunPath, ['x', 'gm-plugkit@latest', 'spool'], {
|
|
2293
|
+
const child = cp.spawn(process.execPath, [_wrapperPathInstalled, 'spool'], {
|
|
2295
2294
|
cwd: process.cwd(),
|
|
2296
2295
|
detached: true,
|
|
2297
2296
|
stdio: 'ignore',
|
|
@@ -2300,7 +2299,21 @@ async function runSpoolWatcher(instance, spoolDir) {
|
|
|
2300
2299
|
});
|
|
2301
2300
|
child.unref();
|
|
2302
2301
|
} catch (e) {
|
|
2303
|
-
console.error(`[plugkit-wasm]
|
|
2302
|
+
console.error(`[plugkit-wasm] direct node spawn failed: ${e.message}; falling back to bun x`);
|
|
2303
|
+
try {
|
|
2304
|
+
const cp = require('child_process');
|
|
2305
|
+
const bunPath = process.env.GM_BUN_PATH || 'bun';
|
|
2306
|
+
const child = cp.spawn(bunPath, ['x', 'gm-plugkit@latest', 'spool'], {
|
|
2307
|
+
cwd: process.cwd(),
|
|
2308
|
+
detached: true,
|
|
2309
|
+
stdio: 'ignore',
|
|
2310
|
+
windowsHide: true,
|
|
2311
|
+
env: { ...process.env, PLUGKIT_BOOT_REASON: 'self-respawn-from-wrapper-drift-fallback' },
|
|
2312
|
+
});
|
|
2313
|
+
child.unref();
|
|
2314
|
+
} catch (e2) {
|
|
2315
|
+
console.error(`[plugkit-wasm] fallback bun-x also failed: ${e2.message}`);
|
|
2316
|
+
}
|
|
2304
2317
|
}
|
|
2305
2318
|
try { fs.writeFileSync(path.join(spoolDir, '.shutdown-reason.json'), JSON.stringify({ reason: 'wrapper-drift-unsupervised', ts: Date.now(), pid: process.pid, boot_sha: _wrapperShaAtBoot.slice(0, 12), file_sha: cur.slice(0, 12) })); } catch (_) {}
|
|
2306
2319
|
try { releaseLock(); } catch (_) {}
|
package/gm.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm-skill",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1398",
|
|
4
4
|
"description": "Canonical universal harness — AI-native software engineering via skill-driven orchestration; bootstraps plugkit for task execution and session isolation. Install in any AI coding agent host.",
|
|
5
5
|
"author": "AnEntrypoint",
|
|
6
6
|
"license": "MIT",
|