@qa-gentic/stlc-agents 1.0.9 → 1.0.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
@@ -4,8 +4,8 @@
4
4
 
5
5
  Works with **GitHub Copilot** (VS Code Agent mode), **Claude Code**, **Cursor**, and **Windsurf**.
6
6
 
7
- [![npm version](https://img.shields.io/npm/v/@qa-gentic/stlc-agents)](https://www.npmjs.com/package/@qa-gentic/stlc-agents)
8
- [![PyPI version](https://img.shields.io/pypi/v/qa-gentic-stlc-agents)](https://pypi.org/project/qa-gentic-stlc-agents/)
7
+ ![npm version](https://img.shields.io/badge/npm-v1.0.10-blue)
8
+ ![PyPI version](https://img.shields.io/badge/pypi-v1.0.10-blue)
9
9
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
10
10
  [![Node.js >=18](https://img.shields.io/badge/node-%3E%3D18-brightgreen)](https://nodejs.org)
11
11
  [![Python >=3.10](https://img.shields.io/badge/python-%3E%3D3.10-blue)](https://python.org)
@@ -2,26 +2,41 @@
2
2
  /**
3
3
  * postinstall.js — Auto-install Python MCP servers after npm install -g
4
4
  *
5
- * npm 7+ runs lifecycle scripts with stdout suppressed by default (background
6
- * mode). To guarantee output is always visible we write exclusively to
7
- * stderr, which npm forwards to the terminal even in background mode.
5
+ * npm 7+ captures all stdout/stderr from lifecycle scripts for global installs,
6
+ * so normal process.stdout / process.stderr writes are swallowed.
7
+ *
8
+ * Fix: write directly to /dev/tty (Unix) which bypasses npm's pipe entirely.
9
+ * Falls back to process.stderr (visible for local installs / Windows CI).
8
10
  *
9
11
  * Interactive prompts (readline / TTY) require --foreground-scripts and are
10
- * therefore NOT used here. The user is instructed to run `qa-stlc init`
11
- * in their project after install — that command IS interactive.
12
+ * therefore NOT used here. The user is instructed to run `qa-stlc` in their
13
+ * project after install — that command IS interactive.
12
14
  */
13
15
  "use strict";
14
16
 
15
- // ── Route ALL output to stderr so it shows without --foreground-scripts ──────
16
- const _write = (msg) => process.stderr.write(msg + "\n");
17
+ // ── Open /dev/tty so writes go straight to the user's terminal ───────────────
18
+ // npm 7+ suppresses all stdout/stderr for global lifecycle scripts; /dev/tty
19
+ // bypasses that pipe entirely. Fall back to stderr on Windows / non-TTY CI.
20
+ const fs = require("fs");
21
+ let _tty = null;
22
+ try {
23
+ _tty = fs.openSync("/dev/tty", "w");
24
+ } catch (_) { /* Windows or no TTY — use stderr fallback */ }
25
+
26
+ const _write = (msg) => {
27
+ const line = msg + "\n";
28
+ if (_tty !== null) {
29
+ try { fs.writeSync(_tty, line); return; } catch (_) {}
30
+ }
31
+ process.stderr.write(line);
32
+ };
17
33
  console.log = _write;
18
34
  console.info = _write;
19
35
  console.warn = _write;
20
36
  console.error = _write;
21
37
 
22
38
  const { spawnSync } = require("child_process");
23
- const os = require("os");
24
- const fs = require("fs");
39
+ const os = require("os");
25
40
  const path = require("path");
26
41
  const pkg = require("../package.json");
27
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qa-gentic/stlc-agents",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "QA STLC Agents — five MCP servers + skills for AI-powered test case, Gherkin, Playwright generation, and Helix-QA file writing against Azure DevOps and Jira Cloud. Full pipeline for both: fetch → test cases → Gherkin → Playwright → Helix-QA. Works with Claude Code, GitHub Copilot, Cursor, Windsurf.",
5
5
  "keywords": [
6
6
  "playwright",