@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 +2 -2
- package/bin/postinstall.js +24 -9
- package/package.json +1 -1
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
|
-
|
|
8
|
-
|
|
7
|
+

|
|
8
|
+

|
|
9
9
|
[](LICENSE)
|
|
10
10
|
[](https://nodejs.org)
|
|
11
11
|
[](https://python.org)
|
package/bin/postinstall.js
CHANGED
|
@@ -2,26 +2,41 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* postinstall.js — Auto-install Python MCP servers after npm install -g
|
|
4
4
|
*
|
|
5
|
-
* npm 7+
|
|
6
|
-
*
|
|
7
|
-
*
|
|
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
|
|
11
|
-
*
|
|
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
|
-
// ──
|
|
16
|
-
|
|
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
|
|
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.
|
|
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",
|