gm-plugkit 2.0.1697 → 2.0.1699

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-plugkit",
3
- "version": "2.0.1697",
3
+ "version": "2.0.1699",
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": {
@@ -1242,8 +1242,18 @@ function waitForCdpReady(port, deadlineMs) {
1242
1242
  }
1243
1243
 
1244
1244
  function startManagedBrowser(pw, profileDir) {
1245
- const headless = process.env.GM_BROWSER_HEADLESS === '1';
1246
- logEvent('plugkit', 'browser.headless-mode-resolved', { headless, source: headless ? 'GM_BROWSER_HEADLESS=1' : 'default-headful' });
1245
+ const rawHeadlessEnv = process.env.GM_BROWSER_HEADLESS;
1246
+ const headless = rawHeadlessEnv === '1';
1247
+ const unexpectedHeadlessEnv = rawHeadlessEnv !== undefined && rawHeadlessEnv !== '1';
1248
+ logEvent('plugkit', 'browser.headless-mode-resolved', {
1249
+ headless,
1250
+ source: headless ? 'GM_BROWSER_HEADLESS=1' : 'default-headful',
1251
+ raw_env_value: rawHeadlessEnv === undefined ? null : rawHeadlessEnv,
1252
+ unexpected_env_value: unexpectedHeadlessEnv,
1253
+ });
1254
+ if (unexpectedHeadlessEnv) {
1255
+ logEvent('plugkit', 'browser.headless-env-unexpected-value', { raw_env_value: rawHeadlessEnv });
1256
+ }
1247
1257
  let browserBin = findInstalledChromiumBinary();
1248
1258
  if (!browserBin) {
1249
1259
  logEvent('plugkit', 'browser.chromium-installing', {});
package/plugkit.version CHANGED
@@ -1 +1 @@
1
- 0.1.743
1
+ 0.1.744