gulp-mu-gulp-api 0.3.9 → 0.3.10

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/README.md CHANGED
@@ -37,6 +37,10 @@ The module is deliberately **dependency-free** and knows nothing about µGulp™
37
37
  npm install gulp-mu-gulp-api
38
38
  ```
39
39
 
40
+ ### 0.3.10
41
+
42
+ - **Fixed** `IsMicroGulp()` / `IsµGulp()` — returns `true` only when `MICROGULP=1` **and** `typeof process.send === 'function'`. Child processes that inherit `MICROGULP` without an IPC channel (nested gulp runs, test subprocesses) no longer crash on `process.send`.
43
+
40
44
  ### 0.3.8
41
45
 
42
46
  - **Added** structured log elements rendered directly in the run log (JSON payloads, Content-Security-Policy safe, no plugin/iframe needed): `LogCallout()` (info/success/warning/error box), `LogKeyValue()` (metrics/summary list), `LogBadges()` (status chips), `LogCode()` (monospace code block) and `LogChart()` (inline-SVG bar chart).
@@ -269,6 +273,10 @@ Das Modul ist bewusst **abhängigkeitsfrei** und kennt keine µGulp™-Interna:
269
273
  npm install gulp-mu-gulp-api
270
274
  ```
271
275
 
276
+ ### 0.3.10
277
+
278
+ - **Fixed** `IsMicroGulp()` / `IsµGulp()` — returns `true` only when `MICROGULP=1` **and** `typeof process.send === 'function'`. Child processes that inherit `MICROGULP` without an IPC channel (nested gulp runs, test subprocesses) no longer crash on `process.send`.
279
+
272
280
  ### 0.3.8
273
281
 
274
282
  - **Neu** strukturierte Log-Elemente, die direkt im Run-Log gerendert werden (JSON-Payloads, Content-Security-Policy-sicher, ohne Plugin/iframe): `LogCallout()` (Info/Success/Warning/Error-Box), `LogKeyValue()` (Metriken/Zusammenfassung), `LogBadges()` (Status-Chips), `LogCode()` (Monospace-Codeblock) und `LogChart()` (Inline-SVG-Balkendiagramm).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gulp-mu-gulp-api",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "description": "Public task API for the µGulp orchestrator: progress reporting, sound signals, speech output, localized console output (i18x) and interactive UI inputs (text, password, number, textarea, color, font, select, radio, multi-select checkbox, range slider, date/time, file) from within gulp tasks — with graceful CLI fallbacks when running without µGulp.",
5
5
  "type": "module",
6
6
  "main": "src/index.mjs",
package/src/index.mjs CHANGED
@@ -44,10 +44,11 @@ const pendingUiRequests = new Map();
44
44
  * attached dashboard (progress and inputs are rendered in the webview)
45
45
  */
46
46
  export function IsMicroGulp() {
47
- // The worker pool sets MICROGULP=1 for every forked task process. Relying
48
- // only on process.send was too strict — some hosts still stream stdout
49
- // correctly while structured IPC must be attempted separately.
50
- return process.env.MICROGULP === '1';
47
+ // The worker pool sets MICROGULP=1 for every forked task process and
48
+ // connects an IPC channel (process.send). Child processes spawned from
49
+ // within a task inherit the env flag but not IPC — they must not be
50
+ // treated as dashboard workers.
51
+ return process.env.MICROGULP === '1' && typeof process.send === 'function';
51
52
  }
52
53
 
53
54
  /** Brand-aligned alias for {@link IsMicroGulp}. */