@only1btayy/g2w 1.0.6 → 1.0.7

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 +13 -1
  2. package/package.json +1 -1
package/lib/install.js CHANGED
@@ -2,6 +2,18 @@ const fs = require('fs');
2
2
  const path = require('path');
3
3
  const os = require('os');
4
4
  const { LOGO } = require('./logo');
5
+
6
+ function writeTTY(text) {
7
+ try {
8
+ const tty = process.platform === 'win32'
9
+ ? fs.createWriteStream('\\\\.\\CON', { flags: 'a' })
10
+ : fs.createWriteStream('/dev/tty', { flags: 'a' });
11
+ tty.write(text);
12
+ tty.end();
13
+ } catch {
14
+ process.stderr.write(text);
15
+ }
16
+ }
5
17
  const SKILLS_SRC = path.join(__dirname, '../skills');
6
18
 
7
19
  const G2W_HOOKS = {
@@ -113,7 +125,7 @@ async function run() {
113
125
  const { dest, count } = copySkills(base);
114
126
  const settingsPath = mergeHooks(base);
115
127
 
116
- process.stderr.write(`${LOGO}
128
+ writeTTY(`${LOGO}
117
129
  \x1b[32m✅ G2W installed at ${label}\x1b[0m
118
130
 
119
131
  ${count} skills → ${path.join(label, 'skills/g2w/')}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@only1btayy/g2w",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "G2W — a relationship protocol for building trust with AI",
5
5
  "bin": {
6
6
  "g2w": "bin/g2w.js"