yongle-dadian 1.1.0 → 1.2.1
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 +10 -9
- package/bin/install.js +429 -429
- package/commands/sync.md +38 -38
- package/package.json +46 -42
- package/scripts/yongle-bg-archiver.js +4 -1
- package/scripts/yongle-config.js +1 -0
- package/scripts/yongle-db.js +126 -126
- package/scripts/yongle-update.js +375 -375
- package/workflows/yongle-confirm.md +109 -109
- package/workflows/yongle-postmortem.md +230 -230
package/README.md
CHANGED
|
@@ -102,27 +102,29 @@ graph TD
|
|
|
102
102
|
|
|
103
103
|
### 3. 安装与配置说明
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
支持丰富的 AI Agent 宿主环境(例如 `--antigravity`, `--gemini`, `--claude`, `--cursor`, `--windsurf`, `--trae`, `--trae-cn`, `--catpawai`, `--qoder` 等):
|
|
106
106
|
|
|
107
107
|
#### 📦 途径 A:通过 npm 全局安装(推荐)
|
|
108
108
|
```powershell
|
|
109
109
|
npx yongle-dadian --global --antigravity
|
|
110
|
+
# 或针对其他运行时: npx yongle-dadian --global --trae-cn
|
|
110
111
|
```
|
|
111
112
|
*这会自动将永乐大典注册到你的系统环境变量及宿主 Agent 工作流中。*
|
|
112
113
|
|
|
113
114
|
#### 🔧 途径 B:本地源码安装(适合定制开发)
|
|
114
115
|
1. 克隆仓库:
|
|
115
116
|
```powershell
|
|
116
|
-
git clone https://github.com/
|
|
117
|
-
cd
|
|
117
|
+
git clone https://github.com/TwotwoPiggy/Yongle-Dadian.git
|
|
118
|
+
cd Yongle-Dadian
|
|
118
119
|
```
|
|
119
|
-
2.
|
|
120
|
+
2. 安装依赖并注册本地全局软链接:
|
|
120
121
|
```powershell
|
|
121
122
|
npm install
|
|
123
|
+
npm link
|
|
122
124
|
```
|
|
123
|
-
3.
|
|
125
|
+
3. 注入技能到宿主 Agent:
|
|
124
126
|
```powershell
|
|
125
|
-
|
|
127
|
+
yongle-dadian --global --antigravity
|
|
126
128
|
```
|
|
127
129
|
|
|
128
130
|
#### 🔄 如何更新
|
|
@@ -133,7 +135,7 @@ npx yongle-dadian --global --antigravity
|
|
|
133
135
|
```markdown
|
|
134
136
|
@[/yongle-update]
|
|
135
137
|
```
|
|
136
|
-
该命令会自动识别安装模式(npm 全局 / Git
|
|
138
|
+
该命令会自动识别安装模式(npm 全局 / Git 源码克隆)。在 Git 源码模式下,将**优先自动追踪并签出远端最新发布的稳定里程碑 Tag**(确保环境极度稳定),同时执行必要的依赖更新并完成重注入。
|
|
137
139
|
|
|
138
140
|
- **手动升级**:
|
|
139
141
|
- **途径 A(npm 全局)**:直接再次运行 `npx` 即可拉取最新版:
|
|
@@ -142,8 +144,7 @@ npx yongle-dadian --global --antigravity
|
|
|
142
144
|
```
|
|
143
145
|
- **途径 B(源码克隆)**:拉取最新代码并重新运行安装器:
|
|
144
146
|
```powershell
|
|
145
|
-
git
|
|
146
|
-
npm install
|
|
147
|
+
git fetch --tags
|
|
147
148
|
node bin/install.js --global --antigravity
|
|
148
149
|
```
|
|
149
150
|
|