gm-skill 2.0.1353 → 2.0.1354
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 +43 -0
- 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.1354",
|
|
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": {
|
|
@@ -2060,6 +2060,49 @@ async function runSpoolWatcher(instance, spoolDir) {
|
|
|
2060
2060
|
try { reapTimedOutTasks(); } catch (_) {}
|
|
2061
2061
|
}, 5000);
|
|
2062
2062
|
|
|
2063
|
+
let _selfStaleLoggedOnce = false;
|
|
2064
|
+
function probeGmPlugkitSelfStale() {
|
|
2065
|
+
try {
|
|
2066
|
+
const ownPkgPath = path.join(__dirname, 'package.json');
|
|
2067
|
+
if (!fs.existsSync(ownPkgPath)) return;
|
|
2068
|
+
const own = JSON.parse(fs.readFileSync(ownPkgPath, 'utf-8')).version;
|
|
2069
|
+
if (!own) return;
|
|
2070
|
+
const https = require('https');
|
|
2071
|
+
const req = https.get('https://registry.npmjs.org/gm-plugkit/latest', { timeout: 3000 }, (res) => {
|
|
2072
|
+
let body = '';
|
|
2073
|
+
res.on('data', (c) => body += c);
|
|
2074
|
+
res.on('end', () => {
|
|
2075
|
+
try {
|
|
2076
|
+
const latest = JSON.parse(body).version;
|
|
2077
|
+
const stalePath = path.join(spoolDir, '.gm-plugkit-stale.json');
|
|
2078
|
+
if (!latest || latest === own) {
|
|
2079
|
+
if (fs.existsSync(stalePath)) { try { fs.unlinkSync(stalePath); } catch (_) {} }
|
|
2080
|
+
return;
|
|
2081
|
+
}
|
|
2082
|
+
const marker = {
|
|
2083
|
+
ts: new Date().toISOString(),
|
|
2084
|
+
reason: 'gm-plugkit-self-stale',
|
|
2085
|
+
running_version: own,
|
|
2086
|
+
latest_version: latest,
|
|
2087
|
+
instruction: `gm-plugkit running ${own} but npm has ${latest}. The npx/bun cache served a stale copy. Clear the cache so the next invocation picks up the latest wrapper fixes: bun pm cache rm; or npx clear-npx-cache; or rm -rf ~/.npm/_npx ~/AppData/Local/npm-cache/_npx`,
|
|
2088
|
+
detected_by: 'watcher-periodic-probe',
|
|
2089
|
+
};
|
|
2090
|
+
try { fs.writeFileSync(stalePath, JSON.stringify(marker, null, 2)); } catch (_) {}
|
|
2091
|
+
if (!_selfStaleLoggedOnce) {
|
|
2092
|
+
_selfStaleLoggedOnce = true;
|
|
2093
|
+
try { logEvent('plugkit', 'gm-plugkit.self-stale', { running_version: own, latest_version: latest, detected_by: 'watcher-periodic-probe' }); } catch (_) {}
|
|
2094
|
+
console.error(`[plugkit-wasm] gm-plugkit self-stale: running ${own}, latest npm ${latest} (marker at .gm/exec-spool/.gm-plugkit-stale.json)`);
|
|
2095
|
+
}
|
|
2096
|
+
} catch (_) {}
|
|
2097
|
+
});
|
|
2098
|
+
});
|
|
2099
|
+
req.on('error', () => {});
|
|
2100
|
+
req.on('timeout', () => { try { req.destroy(); } catch (_) {} });
|
|
2101
|
+
} catch (_) {}
|
|
2102
|
+
}
|
|
2103
|
+
setTimeout(probeGmPlugkitSelfStale, 5000);
|
|
2104
|
+
setInterval(probeGmPlugkitSelfStale, 300_000);
|
|
2105
|
+
|
|
2063
2106
|
const _instanceVersionAtBoot = readInstanceVersion(instance);
|
|
2064
2107
|
let _driftLoggedOnce = false;
|
|
2065
2108
|
setInterval(() => {
|
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.1354",
|
|
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",
|