gm-skill 2.0.1375 → 2.0.1376
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 +22 -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.1376",
|
|
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": {
|
|
@@ -2188,14 +2188,32 @@ async function runSpoolWatcher(instance, spoolDir) {
|
|
|
2188
2188
|
if (unsupervised) {
|
|
2189
2189
|
if (_driftLoggedOnce) return;
|
|
2190
2190
|
_driftLoggedOnce = true;
|
|
2191
|
-
logEvent('plugkit', 'version.drift-
|
|
2191
|
+
logEvent('plugkit', 'version.drift-self-respawn', {
|
|
2192
2192
|
instance_version: instV,
|
|
2193
2193
|
file_version: fileV,
|
|
2194
|
-
action: '
|
|
2195
|
-
reason: 'no-supervisor-to-respawn',
|
|
2194
|
+
action: 'spawn-replacement-and-exit',
|
|
2196
2195
|
boot_reason: bootReason,
|
|
2197
2196
|
});
|
|
2198
|
-
console.error(`[plugkit-wasm] version drift detected: instance=${instV} file=${fileV} —
|
|
2197
|
+
console.error(`[plugkit-wasm] version drift detected: instance=${instV} file=${fileV} — spawning replacement via bun x gm-plugkit@latest spool then exiting`);
|
|
2198
|
+
try {
|
|
2199
|
+
const cp = require('child_process');
|
|
2200
|
+
const bunPath = process.env.GM_BUN_PATH || 'bun';
|
|
2201
|
+
const child = cp.spawn(bunPath, ['x', 'gm-plugkit@latest', 'spool'], {
|
|
2202
|
+
cwd: process.cwd(),
|
|
2203
|
+
detached: true,
|
|
2204
|
+
stdio: 'ignore',
|
|
2205
|
+
windowsHide: true,
|
|
2206
|
+
env: { ...process.env, PLUGKIT_BOOT_REASON: 'self-respawn-from-drift' },
|
|
2207
|
+
});
|
|
2208
|
+
child.unref();
|
|
2209
|
+
} catch (e) {
|
|
2210
|
+
console.error(`[plugkit-wasm] failed to spawn replacement: ${e.message}; exiting anyway so next agent dispatch boots fresh`);
|
|
2211
|
+
}
|
|
2212
|
+
try { fs.writeFileSync(path.join(spoolDir, '.shutdown-reason.json'), JSON.stringify({ reason: 'version-change-unsupervised', ts: Date.now(), pid: process.pid, instance_version: instV, file_version: fileV })); } catch (_) {}
|
|
2213
|
+
try { releaseLock(); } catch (_) {}
|
|
2214
|
+
try { fs.unlinkSync(STATUS_PATH_FOR_TEARDOWN); } catch (_) {}
|
|
2215
|
+
try { clearBootActive(); } catch (_) {}
|
|
2216
|
+
setTimeout(() => process.exit(0), 2000);
|
|
2199
2217
|
return;
|
|
2200
2218
|
}
|
|
2201
2219
|
logEvent('plugkit', 'version.drift', {
|
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.1376",
|
|
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",
|