gm-skill 2.0.1347 → 2.0.1348
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 +32 -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.1348",
|
|
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": {
|
|
@@ -2061,11 +2061,27 @@ async function runSpoolWatcher(instance, spoolDir) {
|
|
|
2061
2061
|
}, 5000);
|
|
2062
2062
|
|
|
2063
2063
|
const _instanceVersionAtBoot = readInstanceVersion(instance);
|
|
2064
|
+
let _driftLoggedOnce = false;
|
|
2064
2065
|
setInterval(() => {
|
|
2065
2066
|
try {
|
|
2066
2067
|
const fileV = readFileVersionOnly();
|
|
2067
2068
|
const instV = _instanceVersionAtBoot;
|
|
2068
2069
|
if (!fileV || !instV || fileV === instV) return;
|
|
2070
|
+
const bootReason = process.env.PLUGKIT_BOOT_REASON || 'unknown';
|
|
2071
|
+
const unsupervised = bootReason === 'direct-no-supervisor';
|
|
2072
|
+
if (unsupervised) {
|
|
2073
|
+
if (_driftLoggedOnce) return;
|
|
2074
|
+
_driftLoggedOnce = true;
|
|
2075
|
+
logEvent('plugkit', 'version.drift-detected-no-exit', {
|
|
2076
|
+
instance_version: instV,
|
|
2077
|
+
file_version: fileV,
|
|
2078
|
+
action: 'suppress-exit',
|
|
2079
|
+
reason: 'no-supervisor-to-respawn',
|
|
2080
|
+
boot_reason: bootReason,
|
|
2081
|
+
});
|
|
2082
|
+
console.error(`[plugkit-wasm] version drift detected: instance=${instV} file=${fileV} — exit SUPPRESSED (boot_reason=${bootReason}; no supervisor to respawn)`);
|
|
2083
|
+
return;
|
|
2084
|
+
}
|
|
2069
2085
|
logEvent('plugkit', 'version.drift', {
|
|
2070
2086
|
instance_version: instV,
|
|
2071
2087
|
file_version: fileV,
|
|
@@ -2096,12 +2112,28 @@ async function runSpoolWatcher(instance, spoolDir) {
|
|
|
2096
2112
|
const _crypto = require('crypto');
|
|
2097
2113
|
_wrapperShaAtBoot = _crypto.createHash('sha256').update(fs.readFileSync(_wrapperPathInstalled)).digest('hex');
|
|
2098
2114
|
} catch (_) {}
|
|
2115
|
+
let _wrapperDriftLoggedOnce = false;
|
|
2099
2116
|
setInterval(() => {
|
|
2100
2117
|
try {
|
|
2101
2118
|
if (!_wrapperShaAtBoot) return;
|
|
2102
2119
|
const _crypto = require('crypto');
|
|
2103
2120
|
const cur = _crypto.createHash('sha256').update(fs.readFileSync(_wrapperPathInstalled)).digest('hex');
|
|
2104
2121
|
if (cur === _wrapperShaAtBoot) return;
|
|
2122
|
+
const bootReason = process.env.PLUGKIT_BOOT_REASON || 'unknown';
|
|
2123
|
+
const unsupervised = bootReason === 'direct-no-supervisor';
|
|
2124
|
+
if (unsupervised) {
|
|
2125
|
+
if (_wrapperDriftLoggedOnce) return;
|
|
2126
|
+
_wrapperDriftLoggedOnce = true;
|
|
2127
|
+
logEvent('plugkit', 'wrapper.drift-detected-no-exit', {
|
|
2128
|
+
boot_sha: _wrapperShaAtBoot.slice(0, 12),
|
|
2129
|
+
file_sha: cur.slice(0, 12),
|
|
2130
|
+
action: 'suppress-exit',
|
|
2131
|
+
reason: 'no-supervisor-to-respawn',
|
|
2132
|
+
boot_reason: bootReason,
|
|
2133
|
+
});
|
|
2134
|
+
console.error(`[plugkit-wasm] wrapper.js drift detected — exit SUPPRESSED (boot_reason=${bootReason}; no supervisor to respawn)`);
|
|
2135
|
+
return;
|
|
2136
|
+
}
|
|
2105
2137
|
logEvent('plugkit', 'wrapper.drift', {
|
|
2106
2138
|
boot_sha: _wrapperShaAtBoot.slice(0, 12),
|
|
2107
2139
|
file_sha: cur.slice(0, 12),
|
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.1348",
|
|
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",
|