gm-plugkit 2.0.1325 → 2.0.1327
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/package.json +1 -1
- package/plugkit-wasm-wrapper.js +18 -0
- package/plugkit.version +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm-plugkit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1327",
|
|
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": {
|
package/plugkit-wasm-wrapper.js
CHANGED
|
@@ -2272,6 +2272,24 @@ async function runSpoolWatcher(instance, spoolDir) {
|
|
|
2272
2272
|
try { fs.unlinkSync(SHUTDOWN_REASON_PATH); } catch (_) {}
|
|
2273
2273
|
logEvent('plugkit', 'watcher.boot', { version: _bootVersion, in_dir: inDir, out_dir: outDir, spool_dir: spoolDir, ...restartContext });
|
|
2274
2274
|
|
|
2275
|
+
const PRE_SUPERVISED_MARKER = path.join(spoolDir, '.pre-supervised-watcher.json');
|
|
2276
|
+
if (_supervisorPid == null && _bootReason === 'direct-no-supervisor') {
|
|
2277
|
+
try {
|
|
2278
|
+
fs.writeFileSync(PRE_SUPERVISED_MARKER, JSON.stringify({
|
|
2279
|
+
ts: Date.now(),
|
|
2280
|
+
reason: 'running-watcher-has-no-supervisor',
|
|
2281
|
+
watcher_pid: process.pid,
|
|
2282
|
+
watcher_version: _bootVersion,
|
|
2283
|
+
boot_reason: _bootReason,
|
|
2284
|
+
severity: 'warn',
|
|
2285
|
+
instruction: 'A running watcher was started directly without supervisor.js. Unplanned-restart recovery and idle-teardown coordination are dormant. To migrate: stop the current watcher and let the next bootstrap (bun x gm-plugkit@latest spool) re-spawn it under supervisor.js.',
|
|
2286
|
+
}, null, 2));
|
|
2287
|
+
logEvent('plugkit', 'watcher.unsupervised-marker-written', { spool_dir: spoolDir, watcher_pid: process.pid });
|
|
2288
|
+
} catch (_) {}
|
|
2289
|
+
} else {
|
|
2290
|
+
try { fs.unlinkSync(PRE_SUPERVISED_MARKER); } catch (_) {}
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2275
2293
|
const PROCESSED_MAX = 10000;
|
|
2276
2294
|
const processed = new Map();
|
|
2277
2295
|
function markProcessed(key) {
|
package/plugkit.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.499
|