@only1btayy/g2w 1.0.10 → 1.0.11

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.
Files changed (2) hide show
  1. package/lib/install.js +5 -3
  2. package/package.json +1 -1
package/lib/install.js CHANGED
@@ -4,14 +4,16 @@ const os = require('os');
4
4
  const { LOGO } = require('./logo');
5
5
 
6
6
  function writeTTY(text) {
7
+ // Plain stderr first — npm shows this reliably
8
+ const plain = text.replace(/\x1b\[[0-9;]*m/g, '');
9
+ process.stderr.write(plain);
10
+ // Then try CONOUT$ for the colored version
7
11
  try {
8
12
  const devName = process.platform === 'win32' ? 'CONOUT$' : '/dev/tty';
9
13
  const fd = fs.openSync(devName, 'w');
10
14
  fs.writeSync(fd, text);
11
15
  fs.closeSync(fd);
12
- } catch {
13
- process.stderr.write(text);
14
- }
16
+ } catch {}
15
17
  }
16
18
  const SKILLS_SRC = path.join(__dirname, '../skills');
17
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@only1btayy/g2w",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "G2W — a relationship protocol for building trust with AI",
5
5
  "bin": {
6
6
  "g2w": "bin/g2w.js"