gm-skill 2.0.1932 → 2.0.1933
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 +1 -0
- package/gm-plugkit/supervisor.js +4 -10
- 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.1933",
|
|
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": {
|
|
@@ -4788,6 +4788,7 @@ async function runSpoolWatcher(instance, spoolDir) {
|
|
|
4788
4788
|
phase,
|
|
4789
4789
|
last_skill: lastSkill,
|
|
4790
4790
|
prd_pending: prdPending,
|
|
4791
|
+
prd_pending_count: prdPending,
|
|
4791
4792
|
last_instruction_ts: lastInstructionTs,
|
|
4792
4793
|
last_instruction_age_ms: lastInstructionAgeMs,
|
|
4793
4794
|
long_gap_threshold_ms: 300000,
|
package/gm-plugkit/supervisor.js
CHANGED
|
@@ -6,12 +6,11 @@ const path = require('path');
|
|
|
6
6
|
const os = require('os');
|
|
7
7
|
const crypto = require('crypto');
|
|
8
8
|
const { spawn, spawnSync } = require('child_process');
|
|
9
|
+
const { gmToolsDir } = require('./bootstrap');
|
|
9
10
|
|
|
10
11
|
function wrapperSha12OnDisk() {
|
|
11
12
|
try {
|
|
12
|
-
const
|
|
13
|
-
const fallback = path.join(os.homedir(), '.claude', 'gm-tools', 'plugkit-wasm-wrapper.js');
|
|
14
|
-
const wp = fs.existsSync(primary) ? primary : fallback;
|
|
13
|
+
const wp = path.join(gmToolsDir(), 'plugkit-wasm-wrapper.js');
|
|
15
14
|
return crypto.createHash('sha256').update(fs.readFileSync(wp)).digest('hex').slice(0, 12);
|
|
16
15
|
} catch (_) { return null; }
|
|
17
16
|
}
|
|
@@ -200,9 +199,7 @@ function spawnWatcher(bootReason) {
|
|
|
200
199
|
return;
|
|
201
200
|
}
|
|
202
201
|
|
|
203
|
-
const
|
|
204
|
-
const fallbackWrapper = path.join(os.homedir(), '.claude', 'gm-tools', 'plugkit-wasm-wrapper.js');
|
|
205
|
-
const wrapper = fs.existsSync(primaryWrapper) ? primaryWrapper : fallbackWrapper;
|
|
202
|
+
const wrapper = path.join(gmToolsDir(), 'plugkit-wasm-wrapper.js');
|
|
206
203
|
if (!fs.existsSync(wrapper)) {
|
|
207
204
|
logEvent('supervisor.wrapper-missing', { wrapper, severity: 'critical' });
|
|
208
205
|
writeSupervisorStatus('error', { error: 'wrapper-missing' });
|
|
@@ -379,10 +376,7 @@ function checkWatcherHealth() {
|
|
|
379
376
|
severity: 'critical',
|
|
380
377
|
});
|
|
381
378
|
try {
|
|
382
|
-
const
|
|
383
|
-
const gmTools = fs.existsSync(path.join(home, '.gm-tools'))
|
|
384
|
-
? path.join(home, '.gm-tools')
|
|
385
|
-
: path.join(home, '.claude', 'gm-tools');
|
|
379
|
+
const gmTools = gmToolsDir();
|
|
386
380
|
for (const f of ['plugkit.wasm', 'plugkit.version', 'plugkit.wasm.sha256']) {
|
|
387
381
|
try { fs.unlinkSync(path.join(gmTools, f)); } catch (_) {}
|
|
388
382
|
}
|
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.1933",
|
|
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",
|