u1s1-cli 1.17.0 → 1.18.0

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/README.md +25 -50
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -1,72 +1,47 @@
1
- # u1s1 — 有一说一,最省心的 AI 编程搭子
1
+ # u1s1 — an AI coding buddy in your terminal
2
2
 
3
- 在终端里用中文说需求,AI 帮你读文件、改代码、跑命令。不用买模型、不用配 API、不用懂那些名词,默认 DeepSeek Flash **每天免费 $2**(北京时间 0 点恢复),新用户另送一次性 $10 加量。
3
+ Describe what you need in plain words; u1s1 reads your files, edits code and runs commands. No model setup, no API keys to manage: sign in with your u1s1.dev account and start.
4
4
 
5
- ## 三步开始
5
+ ## Install
6
6
 
7
- ### 🚀 一键安装(推荐)
8
- 不需要提前装任何东西,复制下面一行到终端粘贴运行:
7
+ **One-line installer (recommended, bundles its own Node.js)**
9
8
 
10
- **Linux / macOS**
9
+ macOS / Linux
11
10
  ```bash
12
- curl -fsSL https://u1s1app.com/releases/install.sh | bash
11
+ curl -fsSL https://u1s1.dev/releases/install.sh | bash
13
12
  ```
14
13
 
15
- **Windows**
14
+ Windows (PowerShell)
16
15
  ```powershell
17
- powershell -c "irm https://u1s1app.com/releases/install.ps1 | iex"
16
+ irm https://u1s1.dev/releases/install.ps1 | iex
18
17
  ```
19
18
 
20
- 脚本会自动帮你安装 Node.js 和 u1s1,一行搞定。
21
-
22
- ### 或者,手动安装(需要 Node.js 20+)
19
+ **Or with npm (Node.js 22.19+)**
23
20
  ```bash
24
21
  npm i -g u1s1-cli
25
22
  ```
26
23
 
27
- ### 安装好后
24
+ This package connects to the international site, u1s1.dev. If this computer was already set up for another site, u1s1 keeps that setup; to switch, run `u1s1 login --site global`.
25
+
26
+ ## Get started
28
27
  ```bash
29
- # 第一次运行会引导你去 u1s1app.com 注册领 Key(30 秒,不用绑卡)
28
+ # First run walks you through signing in at u1s1.dev
30
29
  u1s1
31
30
 
32
- # 进到你的项目文件夹,像发微信一样说需求
33
- cd 我的项目
31
+ # Then, inside your project
32
+ cd my-project
34
33
  u1s1
35
34
  ```
36
35
 
37
- ## 常用命令
36
+ ## Common commands
38
37
 
39
- | 命令 | 作用 |
38
+ | Command | What it does |
40
39
  |---|---|
41
- | `u1s1` | 进入交互模式,直接开聊 |
42
- | `u1s1 -p "把 README 里的错别字修一下"` | 一句话模式,干完就退出 |
43
- | `u1s1 usage` | 看额度用了多少 |
44
- | `u1s1 model` | 看/切默认模型:`u1s1 model grok` 切 Grok 4.6,`u1s1 model deepseek` 切回(对话里 `/model` 同样会记住) |
45
- | `u1s1 update` | 升级 u1s1 到最新版 |
46
- | `u1s1 import` | 从 Claude Code / Codex 导入历史对话,之后 `/resume` 就能接着聊 |
47
- | `u1s1 login` / `u1s1 logout` | 登录 / 退出 |
48
-
49
- ## 长会话自动压缩
50
-
51
- 对话越长,每一轮上传的历史越多,回复会变慢、也更容易出错。u1s1 会在上下文接近 **200K token** 时自动压缩(把早期对话浓缩成摘要,最近 2 万 token 原文保留),压缩时界面有提示;`/context` 可以随时看当前占用、预算和触发点,`/compact` 可以手动压缩。
52
-
53
- 这只改变压缩时机,不改变模型能力。想调整或关闭,编辑 `~/.u1s1/agent/settings.json`:
54
-
55
- ```json
56
- { "compaction": { "maxContextTokens": 200000 } }
57
- ```
58
-
59
- `0` 表示不限(按模型自身窗口,如 DeepSeek Flash 的 1M)。改完重启 u1s1 生效。
60
-
61
- ## 在终端粘贴图片
62
-
63
- 默认模型 DeepSeek Flash 支持视觉输入,复制截图或图片后,在 u1s1 输入框按 `Ctrl+V` 即可附加图片。macOS 这里也使用 `Ctrl+V`;`Cmd+V` 由 Terminal/iTerm 接管,只适合粘贴文本,无法把剪贴板图片交给 CLI。
64
-
65
- ## 有一说一
66
-
67
- - **背后模型**:默认 DeepSeek Flash(1M 上下文,每天免费 $2);难题可随时 `u1s1 model grok` 切 Grok 4.6。对话里 `/model` 也会记住,下次启动还是这个。
68
- - **怎么收费**:DeepSeek Flash 每天有 $2 免费用量,北京时间 0 点恢复且不累计。免费用完或切换其他模型后,按 API 实际成本从永久余额扣,不加价;新用户另送一次性 $10 加量。
69
- - **额度不够**:邀请朋友,你俩各得 $1 永久加量 → [u1s1app.com/dashboard](https://u1s1app.com/dashboard)
70
- - **内核**:基于开源的 [pi](https://pi.dev) coding agent,会话管理、斜杠命令、皮肤等能力全都有。
71
-
72
- 官网:[u1s1app.com](https://u1s1app.com)
40
+ | `u1s1` | Interactive mode |
41
+ | `u1s1 -p "fix the typos in README"` | One-shot mode: do the task, then exit |
42
+ | `u1s1 usage` | See how much credit you've used |
43
+ | `u1s1 model` | Show or change the default model |
44
+ | `u1s1 update` | Update u1s1 to the latest version |
45
+ | `u1s1 login` / `u1s1 logout` | Sign in / sign out |
46
+
47
+ Website: [u1s1.dev](https://u1s1.dev)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "u1s1-cli",
3
- "version": "1.17.0",
4
- "description": "u1s1 — 有一说一,最省心的 AI 编程搭子。终端里用中文说需求,AI 帮你读文件、改代码、跑命令。",
3
+ "version": "1.18.0",
4
+ "description": "u1s1 — an AI coding buddy in your terminal. Describe what you need; it reads files, edits code and runs commands.",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "u1s1": "dist/index.js"
@@ -39,7 +39,7 @@
39
39
  "u1s1"
40
40
  ],
41
41
  "license": "MIT",
42
- "homepage": "https://u1s1app.com",
42
+ "homepage": "https://u1s1.dev",
43
43
  "dependencies": {
44
44
  "@earendil-works/pi-agent-core": "1.5.2",
45
45
  "@earendil-works/pi-ai": "1.5.2",
@@ -58,6 +58,6 @@
58
58
  "typescript": "^5.9.3"
59
59
  },
60
60
  "u1s1": {
61
- "defaultSite": "cn"
61
+ "defaultSite": "intl"
62
62
  }
63
63
  }