u1s1-cli 0.5.0 → 0.5.2

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
@@ -4,14 +4,32 @@
4
4
 
5
5
  ## 三步开始
6
6
 
7
+ ### 🚀 一键安装(推荐)
8
+ 不需要提前装任何东西,复制下面一行到终端粘贴运行:
9
+
10
+ **Linux / macOS**
11
+ ```bash
12
+ curl -fsSL https://u1s1.io/install.sh | bash
13
+ ```
14
+
15
+ **Windows**
16
+ ```powershell
17
+ powershell -c "irm https://u1s1.io/install.ps1 | iex"
18
+ ```
19
+
20
+ 脚本会自动帮你安装 Node.js 和 u1s1,一行搞定。
21
+
22
+ ### 或者,手动安装(需要 Node.js 20+)
7
23
  ```bash
8
- # 1. 安装(需要 Node.js 20+)
9
24
  npm i -g u1s1-cli
25
+ ```
10
26
 
11
- # 2. 第一次运行会引导你去 u1s1.io 注册领 Key(30 秒,不用绑卡)
27
+ ### 安装好后
28
+ ```bash
29
+ # 第一次运行会引导你去 u1s1.io 注册领 Key(30 秒,不用绑卡)
12
30
  u1s1
13
31
 
14
- # 3. 进到你的项目文件夹,像发微信一样说需求
32
+ # 进到你的项目文件夹,像发微信一样说需求
15
33
  cd 我的项目
16
34
  u1s1
17
35
  ```
package/dist/index.js CHANGED
@@ -47,6 +47,10 @@ function ensureDefaultSettings() {
47
47
  changed = true;
48
48
  }
49
49
  }
50
+ if (!("hideThinkingBlock" in settings)) {
51
+ settings["hideThinkingBlock"] = true;
52
+ changed = true;
53
+ }
50
54
  // ≤0.4.0 shipped branded themes and forced them as default; the files are
51
55
  // gone now, so a settings.json still pointing at them must fall back to
52
56
  // pi's default theme.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "u1s1-cli",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "u1s1 — 有一说一,最省心的 AI 编程搭子。终端里用中文说需求,AI 帮你读文件、改代码、跑命令。",
5
5
  "type": "module",
6
6
  "bin": {
@@ -16,7 +16,10 @@
16
16
  "build": "tsc",
17
17
  "dev": "tsx src/index.ts",
18
18
  "typecheck": "tsc --noEmit",
19
- "prepublishOnly": "npm run build"
19
+ "prepublishOnly": "npm run build",
20
+ "package": "bash ../../scripts/package.sh",
21
+ "upload-release": "bash ../../scripts/upload-release.sh",
22
+ "release": "npm run package && npm run upload-release"
20
23
  },
21
24
  "keywords": [
22
25
  "ai",
@@ -36,4 +39,4 @@
36
39
  "tsx": "^4.20.0",
37
40
  "typescript": "^5.9.2"
38
41
  }
39
- }
42
+ }