vibecoding-installer 1.1.56 โ 1.1.57-pre
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 +13 -7
- package/bin/vibecoding +68 -20
- package/bin/vibecoding-windows-amd64.exe +0 -0
- package/bin/vibecoding-windows-arm64.exe +0 -0
- package/package.json +23 -23
- package/scripts/postinstall.js +20 -3
package/README.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
> **Rename notice:** VibeCoding is now **MothX**. This legacy npm install name is `vibecoding-installer`; use `mothx` (`npm install -g mothx`) for new installs and future updates.
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# vibecoding-installer compatibility package
|
|
4
|
+
|
|
5
|
+
This package is kept for a smooth transition to **MothX**.
|
|
6
|
+
|
|
7
|
+
> `vibecoding-installer` is a compatibility package for this release. Future updates should use `mothx`.
|
|
4
8
|
|
|
5
9
|
A terminal-based AI coding assistant. One binary, multiple providers, sandbox, sessions, skills, and more.
|
|
6
10
|
|
|
@@ -8,6 +12,8 @@ A terminal-based AI coding assistant. One binary, multiple providers, sandbox, s
|
|
|
8
12
|
|
|
9
13
|
```bash
|
|
10
14
|
npm install -g vibecoding-installer
|
|
15
|
+
# Future updates:
|
|
16
|
+
npm install -g mothx
|
|
11
17
|
```
|
|
12
18
|
|
|
13
19
|
## Quick Start
|
|
@@ -69,9 +75,9 @@ Or configure in `~/.vibecoding/settings.json`:
|
|
|
69
75
|
|
|
70
76
|
## More Information
|
|
71
77
|
|
|
72
|
-
- **GitHub**: [github.com/startvibecoding/
|
|
73
|
-
- **Gitee (ๅฝๅ
)**: [gitee.com/startvibecoding/
|
|
74
|
-
- **Documentation**: [docs](https://github.com/startvibecoding/
|
|
78
|
+
- **GitHub**: [github.com/startvibecoding/mothx](https://github.com/startvibecoding/mothx)
|
|
79
|
+
- **Gitee (ๅฝๅ
)**: [gitee.com/startvibecoding/mothx](https://gitee.com/startvibecoding/mothx)
|
|
80
|
+
- **Documentation**: [docs](https://github.com/startvibecoding/mothx/tree/main/docs)
|
|
75
81
|
|
|
76
82
|
## Uninstall
|
|
77
83
|
|
|
@@ -80,10 +86,10 @@ Or configure in `~/.vibecoding/settings.json`:
|
|
|
80
86
|
npm uninstall -g vibecoding-installer
|
|
81
87
|
|
|
82
88
|
# Linux/macOS (one-line install)
|
|
83
|
-
curl -fsSL https://gitee.com/startvibecoding/
|
|
89
|
+
curl -fsSL https://gitee.com/startvibecoding/mothx/raw/main/install.sh | bash -s -- --uninstall
|
|
84
90
|
|
|
85
91
|
# Windows (one-line install)
|
|
86
|
-
irm https://gitee.com/startvibecoding/
|
|
92
|
+
irm https://gitee.com/startvibecoding/mothx/raw/main/install.ps1 | iex; Uninstall-VibeCoding
|
|
87
93
|
```
|
|
88
94
|
|
|
89
95
|
## License
|
package/bin/vibecoding
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// Wrapper script that resolves and executes the platform-specific binary.
|
|
4
|
-
// When installed via `npm i -g
|
|
4
|
+
// When installed via `npm i -g mothx`, this script finds the
|
|
5
5
|
// correct binary from the platform-specific optional dependency package.
|
|
6
6
|
|
|
7
7
|
const { execFileSync } = require('child_process');
|
|
@@ -10,18 +10,48 @@ const fs = require('fs');
|
|
|
10
10
|
|
|
11
11
|
// Map npm os/cpu to package name
|
|
12
12
|
const PLATFORM_MAP = {
|
|
13
|
-
'linux-x64-glibc': '
|
|
14
|
-
'linux-arm64-glibc': '
|
|
15
|
-
'linux-loong64-glibc': '
|
|
16
|
-
'linux-
|
|
17
|
-
'
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'
|
|
13
|
+
'linux-x64-glibc': 'mothx-linux-x64',
|
|
14
|
+
'linux-arm64-glibc': 'mothx-linux-arm64',
|
|
15
|
+
'linux-loong64-glibc': 'mothx-linux-loong64',
|
|
16
|
+
'linux-ppc64-glibc': 'mothx-linux-ppc64le',
|
|
17
|
+
'linux-s390x-glibc': 'mothx-linux-s390x',
|
|
18
|
+
'linux-riscv64-glibc': 'mothx-linux-riscv64',
|
|
19
|
+
'linux-x64-musl': 'mothx-linux-musl-x64',
|
|
20
|
+
'linux-arm64-musl': 'mothx-linux-musl-arm64',
|
|
21
|
+
'darwin-x64': 'mothx-darwin-x64',
|
|
22
|
+
'darwin-arm64': 'mothx-darwin-arm64',
|
|
23
|
+
'win32-x64': 'mothx-win32-x64',
|
|
24
|
+
'win32-arm64': 'mothx-win32-arm64',
|
|
25
|
+
'freebsd-x64': 'mothx-freebsd-x64',
|
|
26
|
+
'freebsd-arm64': 'mothx-freebsd-arm64',
|
|
27
|
+
'openbsd-x64': 'mothx-openbsd-x64',
|
|
28
|
+
'openbsd-arm64': 'mothx-openbsd-arm64',
|
|
29
|
+
'netbsd-x64': 'mothx-netbsd-x64',
|
|
23
30
|
};
|
|
24
31
|
|
|
32
|
+
function mainPackageName() {
|
|
33
|
+
try {
|
|
34
|
+
const pkgPath = path.join(__dirname, '..', 'package.json');
|
|
35
|
+
return JSON.parse(fs.readFileSync(pkgPath, 'utf8')).name || '';
|
|
36
|
+
} catch {
|
|
37
|
+
return '';
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function maybeWarnLegacyPackage() {
|
|
42
|
+
const packageName = mainPackageName();
|
|
43
|
+
const invoked = path.basename(process.argv[1] || '');
|
|
44
|
+
if (packageName !== 'vibecoding-installer' && invoked !== 'vibecoding') {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
if (process.env.MOTHX_HIDE_LEGACY_NPM_WARNING || process.env.VIBECODING_HIDE_LEGACY_NPM_WARNING) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
console.error('[mothx] vibecoding-installer is a compatibility package for this release.');
|
|
51
|
+
console.error('[mothx] Please update with: npm install -g mothx@latest');
|
|
52
|
+
console.error('');
|
|
53
|
+
}
|
|
54
|
+
|
|
25
55
|
function detectPlatform() {
|
|
26
56
|
const os = process.platform; // 'linux', 'darwin', 'win32'
|
|
27
57
|
const arch = process.arch; // 'x64', 'arm64'
|
|
@@ -76,7 +106,7 @@ function findBinary() {
|
|
|
76
106
|
addSearchDir(path.join(__dirname, '..', '..', packageName));
|
|
77
107
|
|
|
78
108
|
for (const pkgDir of searchDirs) {
|
|
79
|
-
const binName = process.platform === 'win32' ? '
|
|
109
|
+
const binName = process.platform === 'win32' ? 'mothx.exe' : 'mothx';
|
|
80
110
|
const binPath = path.join(pkgDir, 'bin', binName);
|
|
81
111
|
|
|
82
112
|
if (fs.existsSync(binPath)) {
|
|
@@ -88,29 +118,47 @@ function findBinary() {
|
|
|
88
118
|
// (old single-package layout, or development mode)
|
|
89
119
|
const fallbackBinName = (() => {
|
|
90
120
|
const suffix = process.platform === 'win32' ? '.exe' : '';
|
|
91
|
-
const osMap = {
|
|
92
|
-
|
|
93
|
-
|
|
121
|
+
const osMap = {
|
|
122
|
+
linux: 'linux',
|
|
123
|
+
darwin: 'darwin',
|
|
124
|
+
win32: 'windows',
|
|
125
|
+
freebsd: 'freebsd',
|
|
126
|
+
openbsd: 'openbsd',
|
|
127
|
+
netbsd: 'netbsd',
|
|
128
|
+
};
|
|
129
|
+
const archMap = {
|
|
130
|
+
x64: 'amd64',
|
|
131
|
+
arm64: 'arm64',
|
|
132
|
+
loong64: 'loong64',
|
|
133
|
+
ppc64: 'ppc64le',
|
|
134
|
+
s390x: 's390x',
|
|
135
|
+
riscv64: 'riscv64',
|
|
136
|
+
};
|
|
137
|
+
if (!osMap[process.platform] || !archMap[process.arch]) {
|
|
138
|
+
return '';
|
|
139
|
+
}
|
|
140
|
+
return `mothx-${osMap[process.platform]}-${archMap[process.arch]}${suffix}`;
|
|
94
141
|
})();
|
|
95
142
|
|
|
96
|
-
const fallbackPath = path.join(__dirname, fallbackBinName);
|
|
97
|
-
if (fs.existsSync(fallbackPath)) {
|
|
143
|
+
const fallbackPath = fallbackBinName ? path.join(__dirname, fallbackBinName) : '';
|
|
144
|
+
if (fallbackPath && fs.existsSync(fallbackPath)) {
|
|
98
145
|
return fallbackPath;
|
|
99
146
|
}
|
|
100
147
|
|
|
101
|
-
console.error(`Could not find
|
|
148
|
+
console.error(`Could not find mothx binary for platform: ${detectPlatform()}`);
|
|
102
149
|
console.error(`Searched for package: ${packageName}`);
|
|
103
150
|
console.error(`Searched in: ${searchDirs.join(', ')}`);
|
|
104
151
|
console.error('');
|
|
105
152
|
console.error('If you installed globally, try reinstalling:');
|
|
106
|
-
console.error(' npm install -g
|
|
153
|
+
console.error(' npm install -g mothx');
|
|
107
154
|
console.error('');
|
|
108
155
|
console.error('If the problem persists, install via one-line script instead:');
|
|
109
|
-
console.error(' curl -fsSL https://raw.githubusercontent.com/startvibecoding/
|
|
156
|
+
console.error(' curl -fsSL https://raw.githubusercontent.com/startvibecoding/mothx/main/install.sh | bash');
|
|
110
157
|
process.exit(1);
|
|
111
158
|
}
|
|
112
159
|
|
|
113
160
|
// Main
|
|
161
|
+
maybeWarnLegacyPackage();
|
|
114
162
|
const binaryPath = findBinary();
|
|
115
163
|
const args = process.argv.slice(2);
|
|
116
164
|
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibecoding-installer",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "
|
|
5
|
-
"bin": {
|
|
6
|
-
"vibecoding": "bin/vibecoding"
|
|
7
|
-
},
|
|
3
|
+
"version": "1.1.57-pre",
|
|
4
|
+
"description": "Compatibility installer for MothX. Use the mothx package for future updates.",
|
|
8
5
|
"scripts": {
|
|
9
6
|
"postinstall": "node scripts/postinstall.js"
|
|
10
7
|
},
|
|
@@ -27,29 +24,32 @@
|
|
|
27
24
|
"license": "MIT",
|
|
28
25
|
"repository": {
|
|
29
26
|
"type": "git",
|
|
30
|
-
"url": "https://github.com/startvibecoding/
|
|
27
|
+
"url": "https://github.com/startvibecoding/mothx.git",
|
|
31
28
|
"directory": "npm"
|
|
32
29
|
},
|
|
33
30
|
"engines": {
|
|
34
31
|
"node": ">=14"
|
|
35
32
|
},
|
|
36
33
|
"optionalDependencies": {
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
34
|
+
"mothx-darwin-arm64": "1.1.57-pre",
|
|
35
|
+
"mothx-darwin-x64": "1.1.57-pre",
|
|
36
|
+
"mothx-freebsd-arm64": "1.1.57-pre",
|
|
37
|
+
"mothx-freebsd-x64": "1.1.57-pre",
|
|
38
|
+
"mothx-linux-arm64": "1.1.57-pre",
|
|
39
|
+
"mothx-linux-loong64": "1.1.57-pre",
|
|
40
|
+
"mothx-linux-musl-arm64": "1.1.57-pre",
|
|
41
|
+
"mothx-linux-musl-x64": "1.1.57-pre",
|
|
42
|
+
"mothx-linux-ppc64le": "1.1.57-pre",
|
|
43
|
+
"mothx-linux-riscv64": "1.1.57-pre",
|
|
44
|
+
"mothx-linux-s390x": "1.1.57-pre",
|
|
45
|
+
"mothx-linux-x64": "1.1.57-pre",
|
|
46
|
+
"mothx-netbsd-x64": "1.1.57-pre",
|
|
47
|
+
"mothx-openbsd-arm64": "1.1.57-pre",
|
|
48
|
+
"mothx-openbsd-x64": "1.1.57-pre",
|
|
49
|
+
"mothx-win32-arm64": "1.1.57-pre",
|
|
50
|
+
"mothx-win32-x64": "1.1.57-pre"
|
|
51
|
+
},
|
|
52
|
+
"bin": {
|
|
53
|
+
"vibecoding": "bin/vibecoding"
|
|
54
54
|
}
|
|
55
55
|
}
|
package/scripts/postinstall.js
CHANGED
|
@@ -14,6 +14,7 @@ const DIM = '\x1b[2m';
|
|
|
14
14
|
const CYAN = '\x1b[36m';
|
|
15
15
|
const BRIGHT_CYAN = '\x1b[96m';
|
|
16
16
|
const WHITE = '\x1b[97m';
|
|
17
|
+
const YELLOW = '\x1b[33m';
|
|
17
18
|
|
|
18
19
|
const logo = [
|
|
19
20
|
' _ ___ __ ',
|
|
@@ -39,26 +40,42 @@ function pkgVersion() {
|
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
|
|
43
|
+
function pkgName() {
|
|
44
|
+
try {
|
|
45
|
+
return require('../package.json').name;
|
|
46
|
+
} catch {
|
|
47
|
+
return '';
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
42
51
|
const ver = pkgVersion();
|
|
43
52
|
const verStr = ver ? ` ${DIM}v${ver}${RESET}` : '';
|
|
53
|
+
const name = pkgName();
|
|
54
|
+
const legacy = name === 'vibecoding-installer';
|
|
55
|
+
const command = legacy ? 'vibecoding' : 'mothx';
|
|
44
56
|
|
|
45
57
|
console.log();
|
|
46
58
|
console.log(`${BRIGHT_CYAN}${BOLD}${logo}${RESET}${verStr}`);
|
|
47
59
|
console.log();
|
|
60
|
+
if (legacy) {
|
|
61
|
+
console.log(` ${YELLOW}${BOLD}vibecoding-installer is a compatibility package.${RESET}`);
|
|
62
|
+
console.log(` ${YELLOW}Future updates move to: npm install -g mothx@latest${RESET}`);
|
|
63
|
+
console.log();
|
|
64
|
+
}
|
|
48
65
|
console.log(` ${BOLD}${WHITE}Your AI pair programmer, right in the terminal.${RESET}`);
|
|
49
66
|
console.log();
|
|
50
67
|
console.log(` ${DIM}โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ${RESET}`);
|
|
51
68
|
console.log();
|
|
52
69
|
console.log(` ${BOLD}Quick Start${RESET}`);
|
|
53
70
|
console.log();
|
|
54
|
-
console.log(`
|
|
55
|
-
console.log(`
|
|
71
|
+
console.log(` ${command} ${DIM}Interactive mode${RESET}`);
|
|
72
|
+
console.log(` ${command} -P "write fizzbuzz in Go" ${DIM}One-shot mode${RESET}`);
|
|
56
73
|
console.log();
|
|
57
74
|
console.log(` ${BOLD}Setup${RESET}`);
|
|
58
75
|
console.log();
|
|
59
76
|
console.log(` In TUI, type ${CYAN}${BOLD}/auth${RESET} to add API keys and switch providers`);
|
|
60
77
|
console.log();
|
|
61
78
|
console.log(` ${BOLD}Docs${RESET} ${CYAN}https://startvibecoding.work/${RESET}`);
|
|
62
|
-
console.log(` ${BOLD}Code${RESET} ${CYAN}https://github.com/startvibecoding/
|
|
79
|
+
console.log(` ${BOLD}Code${RESET} ${CYAN}https://github.com/startvibecoding/mothx${RESET}`);
|
|
63
80
|
console.log(` ${BOLD}Config${RESET} ${DIM}${configPath()}${RESET}`);
|
|
64
81
|
console.log();
|