fogact 1.1.3 → 1.1.4
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 +7 -7
- package/README.zh-CN.md +7 -7
- package/install.sh +3 -3
- package/lib/services/cliproxy-api.js +1 -1
- package/lib/services/newapi.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -17,13 +17,13 @@ Do not use `npm fogact`; npm treats that as a built-in npm subcommand. Use `npx
|
|
|
17
17
|
For a clean VPS without Node.js/npm, copy this command. It can install Node.js automatically when missing, install the latest `fogact` npm package, and prepare the CLI without requiring git or npx.
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
curl -fsSL https://raw.githubusercontent.com/FogMaly/
|
|
20
|
+
curl -fsSL https://raw.githubusercontent.com/FogMaly/fogact/main/install.sh | sh
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
Install and activate Codex with an activation code:
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
curl -fsSL https://raw.githubusercontent.com/FogMaly/
|
|
26
|
+
curl -fsSL https://raw.githubusercontent.com/FogMaly/fogact/main/install.sh | sh -s -- \
|
|
27
27
|
--service codex \
|
|
28
28
|
--code YOUR_ACTIVATION_CODE \
|
|
29
29
|
--cliproxy-api-base https://your-activator.example.com
|
|
@@ -32,7 +32,7 @@ curl -fsSL https://raw.githubusercontent.com/FogMaly/cliproxy-activator/main/ins
|
|
|
32
32
|
Install and activate Claude Code with an activation code:
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
curl -fsSL https://raw.githubusercontent.com/FogMaly/
|
|
35
|
+
curl -fsSL https://raw.githubusercontent.com/FogMaly/fogact/main/install.sh | sh -s -- \
|
|
36
36
|
--service claude \
|
|
37
37
|
--code YOUR_ACTIVATION_CODE \
|
|
38
38
|
--cliproxy-api-base https://your-activator.example.com
|
|
@@ -41,7 +41,7 @@ curl -fsSL https://raw.githubusercontent.com/FogMaly/cliproxy-activator/main/ins
|
|
|
41
41
|
Install and activate directly with a NewAPI key:
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
|
-
curl -fsSL https://raw.githubusercontent.com/FogMaly/
|
|
44
|
+
curl -fsSL https://raw.githubusercontent.com/FogMaly/fogact/main/install.sh | sh -s -- \
|
|
45
45
|
--service codex \
|
|
46
46
|
--base-url https://newapi.example.com \
|
|
47
47
|
--api-key sk-your-upstream-key
|
|
@@ -50,7 +50,7 @@ curl -fsSL https://raw.githubusercontent.com/FogMaly/cliproxy-activator/main/ins
|
|
|
50
50
|
Start the local Web UI after install:
|
|
51
51
|
|
|
52
52
|
```bash
|
|
53
|
-
curl -fsSL https://raw.githubusercontent.com/FogMaly/
|
|
53
|
+
curl -fsSL https://raw.githubusercontent.com/FogMaly/fogact/main/install.sh | sh -s -- --web
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
> Minimum bootstrap requirement: the machine needs `curl` or `wget` to download the script. The script handles Node.js/npm installation on common Linux distributions.
|
|
@@ -96,7 +96,7 @@ fogact
|
|
|
96
96
|
### GitHub source
|
|
97
97
|
|
|
98
98
|
```bash
|
|
99
|
-
git clone https://github.com/FogMaly/
|
|
99
|
+
git clone https://github.com/FogMaly/fogact.git
|
|
100
100
|
cd cliproxy-activator
|
|
101
101
|
npm install
|
|
102
102
|
node bin/cli.js --help
|
|
@@ -107,7 +107,7 @@ node bin/cli.js --help
|
|
|
107
107
|
The bootstrap installs from npm by default. To clone and run directly from GitHub source instead:
|
|
108
108
|
|
|
109
109
|
```bash
|
|
110
|
-
curl -fsSL https://raw.githubusercontent.com/FogMaly/
|
|
110
|
+
curl -fsSL https://raw.githubusercontent.com/FogMaly/fogact/main/install.sh | sh -s -- --method github
|
|
111
111
|
```
|
|
112
112
|
|
|
113
113
|
## Activation Usage
|
package/README.zh-CN.md
CHANGED
|
@@ -17,13 +17,13 @@ npx fogact
|
|
|
17
17
|
如果是没有 Node.js/npm 的干净 VPS,再复制下面命令即可。脚本会在缺少 Node.js 时自动安装 Node.js,然后安装最新的 `fogact` npm 包;不要求机器预装 git 或 npx。
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
curl -fsSL https://raw.githubusercontent.com/FogMaly/
|
|
20
|
+
curl -fsSL https://raw.githubusercontent.com/FogMaly/fogact/main/install.sh | sh
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
使用激活码安装并激活 Codex:
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
curl -fsSL https://raw.githubusercontent.com/FogMaly/
|
|
26
|
+
curl -fsSL https://raw.githubusercontent.com/FogMaly/fogact/main/install.sh | sh -s -- \
|
|
27
27
|
--service codex \
|
|
28
28
|
--code YOUR_ACTIVATION_CODE \
|
|
29
29
|
--cliproxy-api-base https://your-activator.example.com
|
|
@@ -32,7 +32,7 @@ curl -fsSL https://raw.githubusercontent.com/FogMaly/cliproxy-activator/main/ins
|
|
|
32
32
|
使用激活码安装并激活 Claude Code:
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
curl -fsSL https://raw.githubusercontent.com/FogMaly/
|
|
35
|
+
curl -fsSL https://raw.githubusercontent.com/FogMaly/fogact/main/install.sh | sh -s -- \
|
|
36
36
|
--service claude \
|
|
37
37
|
--code YOUR_ACTIVATION_CODE \
|
|
38
38
|
--cliproxy-api-base https://your-activator.example.com
|
|
@@ -41,7 +41,7 @@ curl -fsSL https://raw.githubusercontent.com/FogMaly/cliproxy-activator/main/ins
|
|
|
41
41
|
使用 NewAPI Key 直连安装并激活:
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
|
-
curl -fsSL https://raw.githubusercontent.com/FogMaly/
|
|
44
|
+
curl -fsSL https://raw.githubusercontent.com/FogMaly/fogact/main/install.sh | sh -s -- \
|
|
45
45
|
--service codex \
|
|
46
46
|
--base-url https://newapi.example.com \
|
|
47
47
|
--api-key sk-your-upstream-key
|
|
@@ -50,7 +50,7 @@ curl -fsSL https://raw.githubusercontent.com/FogMaly/cliproxy-activator/main/ins
|
|
|
50
50
|
安装后启动本地 Web UI:
|
|
51
51
|
|
|
52
52
|
```bash
|
|
53
|
-
curl -fsSL https://raw.githubusercontent.com/FogMaly/
|
|
53
|
+
curl -fsSL https://raw.githubusercontent.com/FogMaly/fogact/main/install.sh | sh -s -- --web
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
> 最低引导要求:机器至少需要 `curl` 或 `wget` 用来下载脚本。常见 Linux 发行版上的 Node.js/npm 安装会由脚本自动处理。
|
|
@@ -96,7 +96,7 @@ fogact
|
|
|
96
96
|
### GitHub 源码
|
|
97
97
|
|
|
98
98
|
```bash
|
|
99
|
-
git clone https://github.com/FogMaly/
|
|
99
|
+
git clone https://github.com/FogMaly/fogact.git
|
|
100
100
|
cd cliproxy-activator
|
|
101
101
|
npm install
|
|
102
102
|
node bin/cli.js --help
|
|
@@ -107,7 +107,7 @@ node bin/cli.js --help
|
|
|
107
107
|
bootstrap 默认安装 npm 包。如果想直接克隆并运行 GitHub 源码版:
|
|
108
108
|
|
|
109
109
|
```bash
|
|
110
|
-
curl -fsSL https://raw.githubusercontent.com/FogMaly/
|
|
110
|
+
curl -fsSL https://raw.githubusercontent.com/FogMaly/fogact/main/install.sh | sh -s -- --method github
|
|
111
111
|
```
|
|
112
112
|
|
|
113
113
|
## 激活用法
|
package/install.sh
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
set -eu
|
|
3
3
|
|
|
4
4
|
PACKAGE_NAME="${FOGIDC_PACKAGE:-fogact}"
|
|
5
|
-
GITHUB_REPO="${FOGIDC_GITHUB_REPO:-FogMaly/
|
|
5
|
+
GITHUB_REPO="${FOGIDC_GITHUB_REPO:-FogMaly/fogact}"
|
|
6
6
|
GIT_REF="${FOGIDC_GIT_REF:-main}"
|
|
7
7
|
INSTALL_METHOD="${FOGIDC_INSTALL_METHOD:-npm}"
|
|
8
8
|
INSTALL_DIR="${FOGIDC_INSTALL_DIR:-}"
|
|
@@ -32,8 +32,8 @@ usage() {
|
|
|
32
32
|
FogAct bootstrap installer
|
|
33
33
|
|
|
34
34
|
Usage:
|
|
35
|
-
curl -fsSL https://raw.githubusercontent.com/FogMaly/
|
|
36
|
-
curl -fsSL https://raw.githubusercontent.com/FogMaly/
|
|
35
|
+
curl -fsSL https://raw.githubusercontent.com/FogMaly/fogact/main/install.sh | sh
|
|
36
|
+
curl -fsSL https://raw.githubusercontent.com/FogMaly/fogact/main/install.sh | sh -s -- --service codex --code YOUR_CODE
|
|
37
37
|
|
|
38
38
|
Options:
|
|
39
39
|
--service <codex|claude> Activate a specific service after install
|
package/lib/services/newapi.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fogact",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "FogAct multi-platform activator — Activate Codex, Claude Code, OpenCode and OpenClaw",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fogact",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"activator"
|
|
13
13
|
],
|
|
14
14
|
"license": "MIT",
|
|
15
|
-
"homepage": "https://github.com/FogMaly/
|
|
15
|
+
"homepage": "https://github.com/FogMaly/fogact",
|
|
16
16
|
"bugs": {
|
|
17
|
-
"url": "https://github.com/FogMaly/
|
|
17
|
+
"url": "https://github.com/FogMaly/fogact/issues"
|
|
18
18
|
},
|
|
19
19
|
"bin": {
|
|
20
20
|
"fogact": "bin/cli.js",
|
|
@@ -48,6 +48,6 @@
|
|
|
48
48
|
},
|
|
49
49
|
"repository": {
|
|
50
50
|
"type": "git",
|
|
51
|
-
"url": "git+https://github.com/FogMaly/
|
|
51
|
+
"url": "git+https://github.com/FogMaly/fogact.git"
|
|
52
52
|
}
|
|
53
53
|
}
|