gulp-mu-gulp-api 0.3.8 → 0.3.9

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
@@ -12,6 +12,9 @@
12
12
  </a>
13
13
  </p>
14
14
 
15
+ <p align="center"><strong>Rock your Gulp!</strong><br/>
16
+ µGulp™, the interactive near-zero-latency task orchestrator with rich visuals, webview controls, and audio feedback.</p>
17
+
15
18
  Public task API of the **µGulp™** orchestrator — progress reporting, i18x console output and interactive dashboard inputs from within gulp tasks.
16
19
 
17
20
  [![npm version](https://img.shields.io/npm/v/gulp-mu-gulp-api.svg)](https://www.npmjs.com/package/gulp-mu-gulp-api) · [µGulp™ on GitHub](https://github.com/mamekudz/microGulp) · [source tree](https://github.com/mamekudz/microGulp/tree/main/gulp-mu-gulp-api)
@@ -22,6 +25,8 @@ Public task API of the **µGulp™** orchestrator — progress reporting, i18x c
22
25
 
23
26
  # English
24
27
 
28
+ **Rock your Gulp!** — µGulp™, the interactive near-zero-latency task orchestrator with rich visuals, webview controls, and audio feedback.
29
+
25
30
  **gulp-mu-gulp-api** gives gulp tasks (and any npm package inside the task stream) access to the extended µGulp™ dashboard features: progress bars, validated text inputs, color and font pickers, single and multi selections, sliders and complete forms.
26
31
 
27
32
  The module is deliberately **dependency-free** and knows nothing about µGulp™ internals: when the task runs under µGulp™, it talks directly to the engine over the worker process IPC channel. When the gulpfile runs through the classic gulp CLI, every function degrades gracefully — progress renders on the terminal, inputs are asked via readline (TTY) or answered with the declared defaults (CI/non-TTY). Tasks stay fully runnable without µGulp™.
@@ -249,6 +254,9 @@ $env:NPM_OTP="123456"; npm run publish:api
249
254
 
250
255
  # Deutsch
251
256
 
257
+ <p align="center"><strong>Rock your Gulp!</strong><br/>
258
+ µGulp™ — der interaktive Task-Orchestrator mit nahezu null Latenz, stylischer Dashboard-Ausgabe, Webview-Steuerung und akustischem Feedback.</p>
259
+
252
260
  **gulp-mu-gulp-api** ist die öffentliche Task-API des **µGulp™**-Orchestrators. Gulp-Tasks (und beliebige npm-Pakete innerhalb des Task-Streams) erhalten damit Zugriff auf die erweiterten µGulp™-Dashboard-Funktionen: Fortschrittsanzeige, i18x-Konsolenausgabe, Texteingaben mit Validierung, Farb- und Schriftart-Auswahl, Einzel- und Mehrfachauswahl, Slider und komplette Formulare.
253
261
 
254
262
  [![npm version](https://img.shields.io/npm/v/gulp-mu-gulp-api.svg)](https://www.npmjs.com/package/gulp-mu-gulp-api) · [µGulp™ auf GitHub](https://github.com/mamekudz/microGulp)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gulp-mu-gulp-api",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
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
@@ -717,9 +717,22 @@ function _AsciiChart(_payload) {
717
717
  return lines;
718
718
  }
719
719
 
720
+ /**
721
+ * Asks µGulp to re-evaluate dynamic task metadata (µEnabled predicates,
722
+ * disabled tooltips) and refresh the dashboard task list. Call after
723
+ * changing module-level state that drives enable/disable rules.
724
+ * No-op outside a µGulp worker.
725
+ */
726
+ export function NotifyTasksChanged() {
727
+ if (typeof process.send === 'function') {
728
+ process.send({ type: 'refresh-tasks' });
729
+ }
730
+ }
731
+
720
732
  export default {
721
733
  IsMicroGulp,
722
734
  IsµGulp,
735
+ NotifyTasksChanged,
723
736
  ReportProgress,
724
737
  CreateProgress,
725
738
  PlaySignal,