yuangs 1.3.2 → 1.3.5
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/.github/workflows/publish.yml +27 -0
- package/README.md +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: Publish to npm
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main # Or your default branch like 'master'
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
publish:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- name: Checkout repository
|
|
13
|
+
uses: actions/checkout@v3
|
|
14
|
+
|
|
15
|
+
- name: Set up Node.js
|
|
16
|
+
uses: actions/setup-node@v3
|
|
17
|
+
with:
|
|
18
|
+
node-version: '18' # Or your preferred Node.js version
|
|
19
|
+
registry-url: 'https://registry.npmjs.org/'
|
|
20
|
+
|
|
21
|
+
- name: Install dependencies
|
|
22
|
+
run: npm ci
|
|
23
|
+
|
|
24
|
+
- name: Publish to npm
|
|
25
|
+
run: npm publish
|
|
26
|
+
env:
|
|
27
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ Pong 游戏: https://wealth.want.biz/pages/pong.html
|
|
|
55
55
|
|
|
56
56
|
### v1.2.0 (2025-11-29)
|
|
57
57
|
|
|
58
|
-
* **新增** AI 命令交互模式:直接输入 `yuangs ai`
|
|
58
|
+
* **新增** AI 命令交互模式:直接输入 `yuangs ai` 即可进入一问一答模式,无需每次输入问题,quit或exit可退出。
|
|
59
59
|
* **新增** AI 命令模型参数 `-m` 简写:支持 `-m <模型名称>` 代替 `--model <模型名称>`。
|
|
60
60
|
* **新增** `help` 命令显示仓库地址:方便用户直接访问项目仓库。
|
|
61
61
|
* **优化** AI 请求错误提示:在处理 AI 请求出错时,提供更清晰的错误信息。
|
|
@@ -68,4 +68,4 @@ Pong 游戏: https://wealth.want.biz/pages/pong.html
|
|
|
68
68
|
|
|
69
69
|
## 维护者
|
|
70
70
|
|
|
71
|
-
yuanguangshan
|
|
71
|
+
@yuanguangshan
|