gm-skill 2.0.1390 → 2.0.1392
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/bin/plugkit.version +1 -1
- package/bin/plugkit.wasm.sha256 +1 -1
- package/gm-plugkit/package.json +1 -1
- package/gm-plugkit/plugkit-wasm-wrapper.js +51 -0
- package/gm.json +2 -2
- package/package.json +1 -1
package/bin/plugkit.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.541
|
package/bin/plugkit.wasm.sha256
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
2d43dbe0a82cd41226ff60553dc07b11972d51920ecdb7e0d0bc4758569641f7 plugkit.wasm
|
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.1392",
|
|
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": {
|
|
@@ -2742,6 +2742,57 @@ async function runSpoolWatcher(instance, spoolDir) {
|
|
|
2742
2742
|
setInterval(writeStatus, 5000);
|
|
2743
2743
|
writeStatus();
|
|
2744
2744
|
|
|
2745
|
+
const TURN_SUMMARY_PATH = path.join(spoolDir, '.turn-summary.json');
|
|
2746
|
+
function writeTurnSummary() {
|
|
2747
|
+
try {
|
|
2748
|
+
const cwd = process.cwd();
|
|
2749
|
+
const gmDir = path.join(cwd, '.gm');
|
|
2750
|
+
let phase = null, lastSkill = null, prdPending = 0, browserSessions = 0;
|
|
2751
|
+
let lastInstructionTs = null, lastInstructionAgeMs = null;
|
|
2752
|
+
try {
|
|
2753
|
+
const ts = JSON.parse(fs.readFileSync(path.join(gmDir, 'turn-state.json'), 'utf-8'));
|
|
2754
|
+
phase = ts.phase || null;
|
|
2755
|
+
lastSkill = ts.last_skill || null;
|
|
2756
|
+
} catch (_) {}
|
|
2757
|
+
try {
|
|
2758
|
+
const prdRaw = fs.readFileSync(path.join(gmDir, 'prd.yml'), 'utf-8');
|
|
2759
|
+
const openRe = /\n\s*status:\s*(pending|in_progress|unknown)\b/g;
|
|
2760
|
+
const matches = prdRaw.match(openRe);
|
|
2761
|
+
prdPending = matches ? matches.length : 0;
|
|
2762
|
+
} catch (_) {}
|
|
2763
|
+
try {
|
|
2764
|
+
const tsRaw = fs.readFileSync(path.join(gmDir, 'last-instruction-ts'), 'utf-8');
|
|
2765
|
+
const n = parseInt(tsRaw.trim(), 10);
|
|
2766
|
+
if (Number.isFinite(n) && n > 0) {
|
|
2767
|
+
lastInstructionTs = n;
|
|
2768
|
+
lastInstructionAgeMs = Date.now() - n;
|
|
2769
|
+
}
|
|
2770
|
+
} catch (_) {}
|
|
2771
|
+
try {
|
|
2772
|
+
const ports = readJsonFile(browserPortsFile(cwd), {});
|
|
2773
|
+
for (const entry of Object.values(ports)) {
|
|
2774
|
+
if (entry && Number.isFinite(entry.pid) && isProcessAliveSync(entry.pid)) browserSessions++;
|
|
2775
|
+
}
|
|
2776
|
+
} catch (_) {}
|
|
2777
|
+
const fileV = readFileVersionOnly() || null;
|
|
2778
|
+
const instV = _instanceVersionAtBoot || null;
|
|
2779
|
+
fs.writeFileSync(TURN_SUMMARY_PATH, JSON.stringify({
|
|
2780
|
+
ts: Date.now(),
|
|
2781
|
+
watcher_pid: process.pid,
|
|
2782
|
+
watcher_version: instV || fileV,
|
|
2783
|
+
phase,
|
|
2784
|
+
last_skill: lastSkill,
|
|
2785
|
+
prd_pending: prdPending,
|
|
2786
|
+
last_instruction_ts: lastInstructionTs,
|
|
2787
|
+
last_instruction_age_ms: lastInstructionAgeMs,
|
|
2788
|
+
long_gap_threshold_ms: 300000,
|
|
2789
|
+
browser_sessions_alive: browserSessions,
|
|
2790
|
+
}));
|
|
2791
|
+
} catch (_) {}
|
|
2792
|
+
}
|
|
2793
|
+
setInterval(writeTurnSummary, 5000);
|
|
2794
|
+
writeTurnSummary();
|
|
2795
|
+
|
|
2745
2796
|
const UPDATE_AVAILABLE_PATH = path.join(spoolDir, '.update-available.json');
|
|
2746
2797
|
const UPDATE_CHECK_INTERVAL_MS = 5 * 60 * 1000;
|
|
2747
2798
|
const UPDATE_CHECK_SHARED_CACHE = path.join(GM_TOOLS_ROOT, '.update-check-cache.json');
|
package/gm.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1392",
|
|
4
4
|
"description": "Spool-dispatch orchestration engine with unified state machine, skills, and automated git enforcement",
|
|
5
5
|
"author": "AnEntrypoint",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
|
-
"plugkitVersion": "0.1.
|
|
20
|
+
"plugkitVersion": "0.1.541"
|
|
21
21
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm-skill",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1392",
|
|
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",
|