@only1btayy/g2w 1.0.8 → 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 +8 -0
- package/lib/install.js +4 -2
- package/package.json +3 -2
- package/scripts/postinstall.js +5 -0
- package/scripts/preuninstall.js +1 -0
package/README.md
CHANGED
|
@@ -150,6 +150,14 @@ npm install -g @only1btayy/g2w
|
|
|
150
150
|
|
|
151
151
|
That's it. G2W installs globally into `~/.claude/` automatically — skills and hooks ready in every project, everywhere.
|
|
152
152
|
|
|
153
|
+
To uninstall:
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
npm uninstall -g @only1btayy/g2w
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
Skills and hooks are removed from `~/.claude/` automatically.
|
|
160
|
+
|
|
153
161
|
> **Tip:** The logo renders in **bright green** in any terminal. On Windows Terminal or iTerm2, enable Retro/Bloom effects for the full glow.
|
|
154
162
|
|
|
155
163
|
---
|
package/lib/install.js
CHANGED
|
@@ -5,8 +5,10 @@ const { LOGO } = require('./logo');
|
|
|
5
5
|
|
|
6
6
|
function writeTTY(text) {
|
|
7
7
|
try {
|
|
8
|
-
const
|
|
9
|
-
|
|
8
|
+
const devName = process.platform === 'win32' ? 'CONOUT$' : '/dev/tty';
|
|
9
|
+
const fd = fs.openSync(devName, 'w');
|
|
10
|
+
fs.writeSync(fd, text);
|
|
11
|
+
fs.closeSync(fd);
|
|
10
12
|
} catch {
|
|
11
13
|
process.stderr.write(text);
|
|
12
14
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@only1btayy/g2w",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"description": "G2W — a relationship protocol for building trust with AI",
|
|
5
5
|
"bin": {
|
|
6
6
|
"g2w": "bin/g2w.js"
|
|
7
7
|
},
|
|
8
8
|
"scripts": {
|
|
9
|
-
"postinstall": "node scripts/postinstall.js"
|
|
9
|
+
"postinstall": "node scripts/postinstall.js",
|
|
10
|
+
"preuninstall": "node scripts/preuninstall.js"
|
|
10
11
|
},
|
|
11
12
|
"files": [
|
|
12
13
|
"bin/",
|
package/scripts/postinstall.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require('../lib/install').uninstall();
|