gm-skill 2.0.1498 → 2.0.1500
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 +42 -0
- package/gm.json +2 -2
- package/package.json +1 -1
package/bin/plugkit.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.616
|
package/bin/plugkit.wasm.sha256
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
e7d08f9beebc7de8c62f9731e20b31a9bf837cb1723ce007b3c46e97f9f59bf9 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.1500",
|
|
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": {
|
|
@@ -3263,6 +3263,48 @@ async function runSpoolWatcher(instance, spoolDir) {
|
|
|
3263
3263
|
setTimeout(checkForUpdate, 10_000);
|
|
3264
3264
|
setInterval(checkForUpdate, UPDATE_CHECK_INTERVAL_MS);
|
|
3265
3265
|
|
|
3266
|
+
function periodicSkillMdRefresh() {
|
|
3267
|
+
try {
|
|
3268
|
+
const skillCandidates = [
|
|
3269
|
+
path.join(wrapperDir, 'SKILL.md'),
|
|
3270
|
+
path.join(wrapperDir, '..', 'gm-skill', 'skills', 'gm-skill', 'SKILL.md'),
|
|
3271
|
+
path.join(wrapperDir, '..', '..', 'gm-skill', 'skills', 'gm-skill', 'SKILL.md'),
|
|
3272
|
+
path.join(wrapperDir, '..', 'skills', 'gm-skill', 'SKILL.md'),
|
|
3273
|
+
];
|
|
3274
|
+
const bundledPath = skillCandidates.find(p => { try { return fs.existsSync(p); } catch (_) { return false; } });
|
|
3275
|
+
if (!bundledPath) return;
|
|
3276
|
+
const bundled = fs.readFileSync(bundledPath, 'utf-8');
|
|
3277
|
+
const bundledHash = crypto.createHash('sha256').update(bundled).digest('hex');
|
|
3278
|
+
const home = process.env.HOME || process.env.USERPROFILE || os.homedir();
|
|
3279
|
+
const targets = [
|
|
3280
|
+
path.join(home, '.agents', 'skills', 'gm-skill', 'SKILL.md'),
|
|
3281
|
+
path.join(home, '.claude', 'skills', 'gm-skill', 'SKILL.md'),
|
|
3282
|
+
];
|
|
3283
|
+
const refreshed = [];
|
|
3284
|
+
for (const target of targets) {
|
|
3285
|
+
try {
|
|
3286
|
+
let needsWrite = true;
|
|
3287
|
+
if (fs.existsSync(target)) {
|
|
3288
|
+
const existingHash = crypto.createHash('sha256').update(fs.readFileSync(target, 'utf-8')).digest('hex');
|
|
3289
|
+
if (existingHash === bundledHash) needsWrite = false;
|
|
3290
|
+
}
|
|
3291
|
+
if (needsWrite) {
|
|
3292
|
+
fs.mkdirSync(path.dirname(target), { recursive: true });
|
|
3293
|
+
const tmp = target + '.tmp';
|
|
3294
|
+
fs.writeFileSync(tmp, bundled);
|
|
3295
|
+
fs.renameSync(tmp, target);
|
|
3296
|
+
refreshed.push(target);
|
|
3297
|
+
}
|
|
3298
|
+
} catch (_) {}
|
|
3299
|
+
}
|
|
3300
|
+
if (refreshed.length > 0) {
|
|
3301
|
+
try { logEvent('plugkit', 'skill-md.refreshed-periodic', { hash: bundledHash.slice(0, 12), targets: refreshed.length, source: bundledPath }); } catch (_) {}
|
|
3302
|
+
}
|
|
3303
|
+
} catch (_) {}
|
|
3304
|
+
}
|
|
3305
|
+
setTimeout(periodicSkillMdRefresh, 12_000);
|
|
3306
|
+
setInterval(periodicSkillMdRefresh, UPDATE_CHECK_INTERVAL_MS);
|
|
3307
|
+
|
|
3266
3308
|
const pollInterval = setInterval(async () => {
|
|
3267
3309
|
const existing = walkDir(inDir);
|
|
3268
3310
|
if (existing.length > 0) markActivity('poll');
|
package/gm.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1500",
|
|
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.616"
|
|
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.1500",
|
|
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",
|