afucontext 0.1.19 → 0.1.20
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
CHANGED
|
@@ -20,13 +20,13 @@ Install and sign in to your host first. You need npm, Node.js **22.19+ (22.x) or
|
|
|
20
20
|
|
|
21
21
|
| Host | System | Install | Launch after installation | Tested version |
|
|
22
22
|
| --- | --- | --- | --- | --- |
|
|
23
|
-
| <a id="afu-claude"></a>Claude Code | macOS / Linux | `npx --yes --registry=https://registry.npmjs.org afucontext@0.1.
|
|
24
|
-
| <a id="afu-codex"></a>Codex CLI | macOS / Linux | `npx --yes --registry=https://registry.npmjs.org afucontext@0.1.
|
|
25
|
-
| <a id="afu-pi"></a>Pi | macOS / Linux | `npx --yes --registry=https://registry.npmjs.org afucontext@0.1.
|
|
26
|
-
| <a id="afu-dsh"></a>DSH | macOS / Linux | `npx --yes --registry=https://registry.npmjs.org afucontext@0.1.
|
|
27
|
-
| Codex CLI | Windows 10/11¹ | `npx.cmd --yes --registry=https://registry.npmjs.org "afucontext@0.1.
|
|
28
|
-
| Pi | Windows 10/11¹ | `npx.cmd --yes --registry=https://registry.npmjs.org "afucontext@0.1.
|
|
29
|
-
| DSH | Windows 10/11¹ | `npx.cmd --yes --registry=https://registry.npmjs.org "afucontext@0.1.
|
|
23
|
+
| <a id="afu-claude"></a>Claude Code | macOS / Linux | `npx --yes --registry=https://registry.npmjs.org afucontext@0.1.20 install claude` | `claude` | 2.1.293 |
|
|
24
|
+
| <a id="afu-codex"></a>Codex CLI | macOS / Linux | `npx --yes --registry=https://registry.npmjs.org afucontext@0.1.20 install codex` | `codex` | 0.153.4 |
|
|
25
|
+
| <a id="afu-pi"></a>Pi | macOS / Linux | `npx --yes --registry=https://registry.npmjs.org afucontext@0.1.20 install pi` | `pi` | 0.84.4, 1.5.0 |
|
|
26
|
+
| <a id="afu-dsh"></a>DSH | macOS / Linux | `npx --yes --registry=https://registry.npmjs.org afucontext@0.1.20 install dsh --profile YOUR_PROFILE` | `dsh --profile YOUR_PROFILE` | 0.2.2-rc.1 |
|
|
27
|
+
| Codex CLI | Windows 10/11¹ | `npx.cmd --yes --registry=https://registry.npmjs.org "afucontext@0.1.20" install codex` | `codex` | preview, not yet tested; official in the next release |
|
|
28
|
+
| Pi | Windows 10/11¹ | `npx.cmd --yes --registry=https://registry.npmjs.org "afucontext@0.1.20" install pi` | `pi` | preview, not yet tested; official in the next release |
|
|
29
|
+
| DSH | Windows 10/11¹ | `npx.cmd --yes --registry=https://registry.npmjs.org "afucontext@0.1.20" install dsh --profile YOUR_PROFILE` | `dsh --profile YOUR_PROFILE` | preview, not yet tested; official in the next release |
|
|
30
30
|
|
|
31
31
|
Supported on macOS (Apple Silicon) and Linux x64. Start a new session after installing.
|
|
32
32
|
|
|
@@ -113,8 +113,8 @@ Type `/afuctx:status` in Claude Code, `$afuctx-status` in Codex, `/afuctx-status
|
|
|
113
113
|
Without the terminal commands (for example when `~/.local/bin` is not on `PATH`), use the full npx commands. For Codex; for another host replace `codex` with `claude`, `pi` or `dsh`:
|
|
114
114
|
|
|
115
115
|
```sh
|
|
116
|
-
npx --yes --registry=https://registry.npmjs.org afucontext@0.1.
|
|
117
|
-
npx --yes --registry=https://registry.npmjs.org afucontext@0.1.
|
|
116
|
+
npx --yes --registry=https://registry.npmjs.org afucontext@0.1.20 status codex --brief
|
|
117
|
+
npx --yes --registry=https://registry.npmjs.org afucontext@0.1.20 ui
|
|
118
118
|
```
|
|
119
119
|
|
|
120
120
|
### What the dashboard shows
|
|
@@ -160,12 +160,12 @@ Run the same install command with options, then start a new session. For Codex;
|
|
|
160
160
|
|
|
161
161
|
```sh
|
|
162
162
|
# Trigger at 30% of a manually set 200,000-token window (60,000 tokens)
|
|
163
|
-
npx --yes --registry=https://registry.npmjs.org afucontext@0.1.
|
|
163
|
+
npx --yes --registry=https://registry.npmjs.org afucontext@0.1.20 install codex --context-window 200000 --ratio 0.3
|
|
164
164
|
# Restore automatic settings
|
|
165
|
-
npx --yes --registry=https://registry.npmjs.org afucontext@0.1.
|
|
165
|
+
npx --yes --registry=https://registry.npmjs.org afucontext@0.1.20 install codex --context-window auto --ratio auto
|
|
166
166
|
```
|
|
167
167
|
|
|
168
|
-
For frequent use, run `npm install -g --registry=https://registry.npmjs.org afucontext@0.1.
|
|
168
|
+
For frequent use, run `npm install -g --registry=https://registry.npmjs.org afucontext@0.1.20` and use `afuctx` in place of the full `npx` invocation. For example, `afuctx dashboard --prices ./afu-prices.json` opens the dashboard with your price file to estimate costs.
|
|
169
169
|
|
|
170
170
|
## Upgrade and remove
|
|
171
171
|
|
|
@@ -187,8 +187,8 @@ npx --yes --registry=https://registry.npmjs.org afucontext@latest status --brief
|
|
|
187
187
|
To upgrade or remove one host:
|
|
188
188
|
|
|
189
189
|
```sh
|
|
190
|
-
npx --yes --registry=https://registry.npmjs.org afucontext@0.1.
|
|
191
|
-
npx --yes --registry=https://registry.npmjs.org afucontext@0.1.
|
|
190
|
+
npx --yes --registry=https://registry.npmjs.org afucontext@0.1.20 upgrade codex
|
|
191
|
+
npx --yes --registry=https://registry.npmjs.org afucontext@0.1.20 remove codex
|
|
192
192
|
```
|
|
193
193
|
|
|
194
194
|
Use `remove pi` or `remove dsh` for those integrations. In Windows PowerShell, use `npx.cmd` and double-quote the package name.
|
package/README.zh-CN.md
CHANGED
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
|
|
21
21
|
| 宿主 | 系统 | 一键安装 | 安装后启动 | 实测版本 |
|
|
22
22
|
| --- | --- | --- | --- | --- |
|
|
23
|
-
| <a id="afu-claude"></a>Claude Code | macOS / Linux | `npx --yes --registry=https://registry.npmjs.org afucontext@0.1.
|
|
24
|
-
| <a id="afu-codex"></a>Codex CLI | macOS / Linux | `npx --yes --registry=https://registry.npmjs.org afucontext@0.1.
|
|
25
|
-
| <a id="afu-pi"></a>Pi | macOS / Linux | `npx --yes --registry=https://registry.npmjs.org afucontext@0.1.
|
|
26
|
-
| <a id="afu-dsh"></a>DSH | macOS / Linux | `npx --yes --registry=https://registry.npmjs.org afucontext@0.1.
|
|
27
|
-
| Codex CLI | Windows 10/11¹ | `npx.cmd --yes --registry=https://registry.npmjs.org "afucontext@0.1.
|
|
28
|
-
| Pi | Windows 10/11¹ | `npx.cmd --yes --registry=https://registry.npmjs.org "afucontext@0.1.
|
|
29
|
-
| DSH | Windows 10/11¹ | `npx.cmd --yes --registry=https://registry.npmjs.org "afucontext@0.1.
|
|
23
|
+
| <a id="afu-claude"></a>Claude Code | macOS / Linux | `npx --yes --registry=https://registry.npmjs.org afucontext@0.1.20 install claude` | `claude` | 2.1.293 |
|
|
24
|
+
| <a id="afu-codex"></a>Codex CLI | macOS / Linux | `npx --yes --registry=https://registry.npmjs.org afucontext@0.1.20 install codex` | `codex` | 0.153.4 |
|
|
25
|
+
| <a id="afu-pi"></a>Pi | macOS / Linux | `npx --yes --registry=https://registry.npmjs.org afucontext@0.1.20 install pi` | `pi` | 0.84.4、1.5.0 |
|
|
26
|
+
| <a id="afu-dsh"></a>DSH | macOS / Linux | `npx --yes --registry=https://registry.npmjs.org afucontext@0.1.20 install dsh --profile YOUR_PROFILE` | `dsh --profile YOUR_PROFILE` | 0.2.2-rc.1 |
|
|
27
|
+
| Codex CLI | Windows 10/11¹ | `npx.cmd --yes --registry=https://registry.npmjs.org "afucontext@0.1.20" install codex` | `codex` | 预览,未实测,下一版本正式提供 |
|
|
28
|
+
| Pi | Windows 10/11¹ | `npx.cmd --yes --registry=https://registry.npmjs.org "afucontext@0.1.20" install pi` | `pi` | 预览,未实测,下一版本正式提供 |
|
|
29
|
+
| DSH | Windows 10/11¹ | `npx.cmd --yes --registry=https://registry.npmjs.org "afucontext@0.1.20" install dsh --profile YOUR_PROFILE` | `dsh --profile YOUR_PROFILE` | 预览,未实测,下一版本正式提供 |
|
|
30
30
|
|
|
31
31
|
支持 macOS(Apple Silicon)和 x64 Linux;安装后新开会话即可。
|
|
32
32
|
|
|
@@ -113,8 +113,8 @@ Claude Code 输入 `/afuctx:status`,Codex 输入 `$afuctx-status`,Pi 和 DSH
|
|
|
113
113
|
没有上面的终端命令时(例如 `~/.local/bin` 不在 `PATH` 中),可以用完整的 npx 命令。以 Codex 为例,其它宿主将 `codex` 换成 `claude`、`pi` 或 `dsh`:
|
|
114
114
|
|
|
115
115
|
```sh
|
|
116
|
-
npx --yes --registry=https://registry.npmjs.org afucontext@0.1.
|
|
117
|
-
npx --yes --registry=https://registry.npmjs.org afucontext@0.1.
|
|
116
|
+
npx --yes --registry=https://registry.npmjs.org afucontext@0.1.20 status codex --brief
|
|
117
|
+
npx --yes --registry=https://registry.npmjs.org afucontext@0.1.20 ui
|
|
118
118
|
```
|
|
119
119
|
|
|
120
120
|
### 面板内容
|
|
@@ -160,12 +160,12 @@ npx --yes --registry=https://registry.npmjs.org afucontext@0.1.19 ui
|
|
|
160
160
|
|
|
161
161
|
```sh
|
|
162
162
|
# 在 30% 触发,并手动指定 200,000 的窗口(即 60,000 触发)
|
|
163
|
-
npx --yes --registry=https://registry.npmjs.org afucontext@0.1.
|
|
163
|
+
npx --yes --registry=https://registry.npmjs.org afucontext@0.1.20 install codex --context-window 200000 --ratio 0.3
|
|
164
164
|
# 恢复自动设置
|
|
165
|
-
npx --yes --registry=https://registry.npmjs.org afucontext@0.1.
|
|
165
|
+
npx --yes --registry=https://registry.npmjs.org afucontext@0.1.20 install codex --context-window auto --ratio auto
|
|
166
166
|
```
|
|
167
167
|
|
|
168
|
-
如果经常使用 AFU,可运行 `npm install -g --registry=https://registry.npmjs.org afucontext@0.1.
|
|
168
|
+
如果经常使用 AFU,可运行 `npm install -g --registry=https://registry.npmjs.org afucontext@0.1.20`,以后用 `afuctx` 代替完整的 `npx` 命令。例如,`afuctx dashboard --prices ./afu-prices.json` 用自己的单价文件打开面板估算费用。
|
|
169
169
|
|
|
170
170
|
## 升级与移除
|
|
171
171
|
|
|
@@ -187,8 +187,8 @@ npx --yes --registry=https://registry.npmjs.org afucontext@latest status --brief
|
|
|
187
187
|
只升级或移除某一个宿主:
|
|
188
188
|
|
|
189
189
|
```sh
|
|
190
|
-
npx --yes --registry=https://registry.npmjs.org afucontext@0.1.
|
|
191
|
-
npx --yes --registry=https://registry.npmjs.org afucontext@0.1.
|
|
190
|
+
npx --yes --registry=https://registry.npmjs.org afucontext@0.1.20 upgrade codex
|
|
191
|
+
npx --yes --registry=https://registry.npmjs.org afucontext@0.1.20 remove codex
|
|
192
192
|
```
|
|
193
193
|
|
|
194
194
|
Pi 和 DSH 可分别用 `remove pi` 或 `remove dsh` 撤销。Windows PowerShell 请使用 `npx.cmd` 并将包名放在双引号中。
|
package/package.json
CHANGED
|
Binary file
|
package/release.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.1.
|
|
2
|
+
"version": "0.1.20",
|
|
3
3
|
"name": "afucontext",
|
|
4
|
-
"build": "
|
|
5
|
-
"wheel": "afu_context_local-0.1.
|
|
4
|
+
"build": "7103b588cc60356b806eefbe524a14ee65eb28e04c9536bf6c022892af50c437",
|
|
5
|
+
"wheel": "afu_context_local-0.1.20-py3-none-any.whl",
|
|
6
6
|
"prebuilt": false
|
|
7
7
|
}
|