gm-skill 2.0.1170 → 2.0.1172
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/README.md +1 -1
- package/gm-plugkit/plugkit-wasm-wrapper.js +36 -0
- package/gm.json +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ An earlier generation fanned out fifteen per-platform downstream repos (gm-cc, g
|
|
|
35
35
|
|
|
36
36
|
## Version
|
|
37
37
|
|
|
38
|
-
`2.0.
|
|
38
|
+
`2.0.1172` — auto-bumped from the canonical `gm` repo. Every push to `AnEntrypoint/gm` (or any cascading sibling crate) republishes this package.
|
|
39
39
|
|
|
40
40
|
## Source of truth
|
|
41
41
|
|
|
@@ -1115,6 +1115,41 @@ async function runSpoolWatcher(instance, spoolDir) {
|
|
|
1115
1115
|
}
|
|
1116
1116
|
}, 60_000);
|
|
1117
1117
|
|
|
1118
|
+
const _wrapperPathInstalled = path.join(os.homedir(), '.claude', 'gm-tools', 'plugkit-wasm-wrapper.js');
|
|
1119
|
+
let _wrapperShaAtBoot = '';
|
|
1120
|
+
try {
|
|
1121
|
+
const _crypto = require('crypto');
|
|
1122
|
+
_wrapperShaAtBoot = _crypto.createHash('sha256').update(fs.readFileSync(_wrapperPathInstalled)).digest('hex');
|
|
1123
|
+
} catch (_) {}
|
|
1124
|
+
setInterval(() => {
|
|
1125
|
+
try {
|
|
1126
|
+
if (!_wrapperShaAtBoot) return;
|
|
1127
|
+
const _crypto = require('crypto');
|
|
1128
|
+
const cur = _crypto.createHash('sha256').update(fs.readFileSync(_wrapperPathInstalled)).digest('hex');
|
|
1129
|
+
if (cur === _wrapperShaAtBoot) return;
|
|
1130
|
+
logEvent('plugkit', 'wrapper.drift', {
|
|
1131
|
+
boot_sha: _wrapperShaAtBoot.slice(0, 12),
|
|
1132
|
+
file_sha: cur.slice(0, 12),
|
|
1133
|
+
action: 'exit-for-respawn',
|
|
1134
|
+
});
|
|
1135
|
+
console.error(`[plugkit-wasm] wrapper.js drift detected → exiting so supervisor reloads fresh wrapper`);
|
|
1136
|
+
try {
|
|
1137
|
+
fs.writeFileSync(path.join(spoolDir, '.shutdown-reason.json'), JSON.stringify({
|
|
1138
|
+
reason: 'wrapper-change',
|
|
1139
|
+
ts: Date.now(),
|
|
1140
|
+
pid: process.pid,
|
|
1141
|
+
boot_sha: _wrapperShaAtBoot.slice(0, 12),
|
|
1142
|
+
file_sha: cur.slice(0, 12),
|
|
1143
|
+
}));
|
|
1144
|
+
} catch (_) {}
|
|
1145
|
+
try { releaseLock(); } catch (_) {}
|
|
1146
|
+
try { fs.unlinkSync(STATUS_PATH_FOR_TEARDOWN); } catch (_) {}
|
|
1147
|
+
process.exit(0);
|
|
1148
|
+
} catch (e) {
|
|
1149
|
+
console.error(`[wrapper-drift-check] error: ${e.message}`);
|
|
1150
|
+
}
|
|
1151
|
+
}, 60_000);
|
|
1152
|
+
|
|
1118
1153
|
setInterval(() => {
|
|
1119
1154
|
try {
|
|
1120
1155
|
const idleMs = Date.now() - lastActivityMs;
|
|
@@ -1448,6 +1483,7 @@ async function runSpoolWatcher(instance, spoolDir) {
|
|
|
1448
1483
|
let debounce = {};
|
|
1449
1484
|
watch(inDir, { recursive: true }, (eventType, filename) => {
|
|
1450
1485
|
if (!filename) return;
|
|
1486
|
+
if (/\.tmp\.\d+(\.|$)/.test(filename)) return;
|
|
1451
1487
|
const fullPath = path.join(inDir, filename);
|
|
1452
1488
|
markActivity('watch');
|
|
1453
1489
|
|
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.1172",
|
|
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",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"gm.json"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"gm-plugkit": "^2.0.
|
|
42
|
+
"gm-plugkit": "^2.0.1172"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": ">=16.0.0"
|