gm-plugkit 2.0.1720 → 2.0.1721

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.
Files changed (3) hide show
  1. package/bootstrap.js +1 -0
  2. package/cli.js +2 -1
  3. package/package.json +1 -1
package/bootstrap.js CHANGED
@@ -1084,6 +1084,7 @@ module.exports = {
1084
1084
  writeDaemonVersion,
1085
1085
  daemonVersionSentinel,
1086
1086
  readVersionFile,
1087
+ ensureGmPlugkitVersionFresh,
1087
1088
  };
1088
1089
 
1089
1090
  if (require.main === module) {
package/cli.js CHANGED
@@ -5,7 +5,7 @@ const fs = require('fs');
5
5
  const os = require('os');
6
6
  const path = require('path');
7
7
  const cp = require('child_process');
8
- const { ensureReady, startSpoolDaemon, gmToolsDir, readVersionFile } = require('./bootstrap');
8
+ const { ensureReady, startSpoolDaemon, gmToolsDir, readVersionFile, ensureGmPlugkitVersionFresh } = require('./bootstrap');
9
9
 
10
10
  const usage = `gm-plugkit -- Bootstrap and daemon-spawn for gm plugkit binary.
11
11
 
@@ -203,6 +203,7 @@ function writeCliError(phase, err) {
203
203
  try { onDiskVersion = readVersionFile(); } catch (_) { onDiskVersion = null; }
204
204
  const versionDrifted = !!(already && onDiskVersion && already.version && already.version !== onDiskVersion);
205
205
  if (statusServing(already, 12000) && !versionDrifted) {
206
+ try { ensureGmPlugkitVersionFresh(); } catch (_) {}
206
207
  writeCliStatus({ phase: 'ready', already_serving: true, watcher_pid: already.pid });
207
208
  console.log(JSON.stringify({
208
209
  ok: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-plugkit",
3
- "version": "2.0.1720",
3
+ "version": "2.0.1721",
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": {