@aigne/doc-smith 0.8.3 → 0.8.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/.aigne/doc-smith/config.yaml +3 -3
- package/.aigne/doc-smith/preferences.yml +58 -12
- package/.aigne/doc-smith/upload-cache.yaml +600 -207
- package/CHANGELOG.md +22 -0
- package/README.md +77 -5
- package/agents/input-generator.mjs +12 -6
- package/agents/publish-docs.mjs +53 -4
- package/docs/_sidebar.md +1 -1
- package/docs/advanced-how-it-works.md +55 -60
- package/docs/advanced-how-it-works.zh.md +60 -65
- package/docs/advanced-quality-assurance.md +73 -38
- package/docs/advanced-quality-assurance.zh.md +73 -38
- package/docs/advanced.md +2 -14
- package/docs/advanced.zh.md +5 -17
- package/docs/changelog.md +41 -4
- package/docs/changelog.zh.md +77 -40
- package/docs/cli-reference.md +79 -13
- package/docs/cli-reference.zh.md +92 -26
- package/docs/configuration-interactive-setup.md +102 -49
- package/docs/configuration-interactive-setup.zh.md +102 -49
- package/docs/configuration-language-support.md +69 -39
- package/docs/configuration-language-support.zh.md +68 -38
- package/docs/configuration-llm-setup.md +25 -62
- package/docs/configuration-llm-setup.zh.md +25 -62
- package/docs/configuration-preferences.md +79 -67
- package/docs/configuration-preferences.zh.md +78 -67
- package/docs/configuration.md +122 -109
- package/docs/configuration.zh.md +130 -117
- package/docs/features-generate-documentation.md +44 -24
- package/docs/features-generate-documentation.zh.md +52 -32
- package/docs/features-publish-your-docs.md +41 -40
- package/docs/features-publish-your-docs.zh.md +50 -49
- package/docs/features-translate-documentation.md +73 -17
- package/docs/features-translate-documentation.zh.md +76 -20
- package/docs/features-update-and-refine.md +72 -21
- package/docs/features-update-and-refine.zh.md +80 -29
- package/docs/features.md +24 -28
- package/docs/features.zh.md +25 -29
- package/docs/getting-started.md +87 -38
- package/docs/getting-started.zh.md +88 -39
- package/docs/overview.md +17 -35
- package/docs/overview.zh.md +18 -36
- package/package.json +9 -8
- package/prompts/content-detail-generator.md +1 -0
- package/prompts/document/custom-code-block.md +101 -0
- package/prompts/document/d2-chart/rules.md +941 -1031
- package/prompts/document/detail-generator.md +7 -53
- package/tests/input-generator.test.mjs +2 -2
- package/tests/kroki-utils.test.mjs +88 -17
- package/utils/auth-utils.mjs +9 -2
- package/utils/blocklet.mjs +25 -6
- package/utils/constants.mjs +17 -1
- package/utils/deploy.mjs +404 -0
- package/utils/kroki-utils.mjs +22 -14
- package/utils/markdown-checker.mjs +1 -1
- package/utils/utils.mjs +3 -2
- package/prompts/document/d2-chart/diy-examples.md +0 -44
- package/prompts/document/d2-chart/shape-rules.md +0 -182
package/docs/changelog.zh.md
CHANGED
|
@@ -1,34 +1,71 @@
|
|
|
1
|
-
---
|
|
2
|
-
labels: ["Reference"]
|
|
3
|
-
---
|
|
4
|
-
|
|
5
1
|
# 更新日志
|
|
6
2
|
|
|
7
|
-
|
|
3
|
+
项目每个版本的所有重要变更、功能和错误修复的详细日志。
|
|
4
|
+
|
|
5
|
+
## [0.8.2](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.8.1...v0.8.2) (2025-09-04)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 其他杂项
|
|
9
|
+
|
|
10
|
+
* 发布 0.8.2 ([849bc69](https://github.com/AIGNE-io/aigne-doc-smith/commit/849bc694edf167187f65cb34f1dd9a3966efd96c))
|
|
11
|
+
|
|
12
|
+
## [0.8.1](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.8.0...v0.8.1) (2025-09-03)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### 功能
|
|
16
|
+
|
|
17
|
+
* 通过综合示例调整 d2 图表生成 ([#80](https://github.com/AIGNE-io/aigne-doc-smith/issues/80)) ([3423e4c](https://github.com/AIGNE-io/aigne-doc-smith/commit/3423e4cff24335552503916694a3489e5d91bf6c))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### 其他杂项
|
|
21
|
+
|
|
22
|
+
* 发布 0.8.1 ([21f64d4](https://github.com/AIGNE-io/aigne-doc-smith/commit/21f64d450377b1aef00f12613ba3b87aa4ef1d31))
|
|
23
|
+
|
|
24
|
+
## [0.8.0](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.7.2...v0.8.0) (2025-09-03)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### 功能
|
|
28
|
+
|
|
29
|
+
* **测试:**添加全面的工作流测试覆盖率 ([#76](https://github.com/AIGNE-io/aigne-doc-smith/issues/76)) ([d5f6062](https://github.com/AIGNE-io/aigne-doc-smith/commit/d5f6062311f36dc5b6394ae0768583fb8f3853a4))
|
|
30
|
+
* 更新自定义组件指南,增加格式限制 ([#79](https://github.com/AIGNE-io/aigne-doc-smith/issues/79)) ([76158de](https://github.com/AIGNE-io/aigne-doc-smith/commit/76158de236696e68c63c057f5ea4b8458a15e787))
|
|
31
|
+
|
|
32
|
+
## [0.7.2](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.7.1...v0.7.2) (2025-09-01)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### 其他杂项
|
|
36
|
+
|
|
37
|
+
* 发布 0.7.2 ([c3be232](https://github.com/AIGNE-io/aigne-doc-smith/commit/c3be2323e885cf5d11d654629fe30cc3720f79d3))
|
|
38
|
+
|
|
39
|
+
## [0.7.1](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.7.0...v0.7.1) (2025-08-31)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### 错误修复
|
|
43
|
+
|
|
44
|
+
* 修复 Tab 键路径选择错误 ([#72](https://github.com/AIGNE-io/aigne-doc-smith/issues/72)) ([369b342](https://github.com/AIGNE-io/aigne-doc-smith/commit/369b342d8ab8ce95b61a3b72e367157d2f71cce4))
|
|
8
45
|
|
|
9
46
|
## [0.7.0](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.6.0...v0.7.0) (2025-08-30)
|
|
10
47
|
|
|
11
48
|
|
|
12
49
|
### 功能
|
|
13
50
|
|
|
14
|
-
*
|
|
15
|
-
*
|
|
51
|
+
* 增加聊天模式支持 ([#60](https://github.com/AIGNE-io/aigne-doc-smith/issues/60)) ([9b2ce50](https://github.com/AIGNE-io/aigne-doc-smith/commit/9b2ce50014d1894a4e41bf043e699fdc4f1d74b7))
|
|
52
|
+
* 支持自定义组件和更强大的配置处理 ([#70](https://github.com/AIGNE-io/aigne-doc-smith/issues/70)) ([727ab42](https://github.com/AIGNE-io/aigne-doc-smith/commit/727ab429b00f924ef605530b35d2a12b4be77e3a))
|
|
16
53
|
* 在文档生成和发布工作流中支持 d2 图表 ([#69](https://github.com/AIGNE-io/aigne-doc-smith/issues/69)) ([bf95889](https://github.com/AIGNE-io/aigne-doc-smith/commit/bf958891516973636c4847b084c6fe75d1ea124b))
|
|
17
|
-
*
|
|
54
|
+
* 支持多用途文档规划和生成 ([#68](https://github.com/AIGNE-io/aigne-doc-smith/issues/68)) ([44152c5](https://github.com/AIGNE-io/aigne-doc-smith/commit/44152c53b7e8f82e3af1245a1affd77b9817486d))
|
|
18
55
|
|
|
19
56
|
## [0.6.0](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.5.1...v0.6.0) (2025-08-27)
|
|
20
57
|
|
|
21
58
|
|
|
22
59
|
### 功能
|
|
23
60
|
|
|
24
|
-
*
|
|
61
|
+
* 完成发布前媒体处理的全面支持 ([#63](https://github.com/AIGNE-io/aigne-doc-smith/issues/63)) ([5257ca1](https://github.com/AIGNE-io/aigne-doc-smith/commit/5257ca1756f47487b65a1813949e547b6fc51aca))
|
|
25
62
|
|
|
26
63
|
## [0.5.1](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.5.0...v0.5.1) (2025-08-26)
|
|
27
64
|
|
|
28
65
|
|
|
29
66
|
### 其他杂项
|
|
30
67
|
|
|
31
|
-
* 发布 0.5.1
|
|
68
|
+
* 发布 0.5.1 ([892d96e](https://github.com/AIGNE-io/aigne-doc-smith/commit/892d96e939a6404a42e8d2521f95bb7acfeabe27))
|
|
32
69
|
|
|
33
70
|
## [0.5.0](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.4.5...v0.5.0) (2025-08-26)
|
|
34
71
|
|
|
@@ -40,14 +77,14 @@ labels: ["Reference"]
|
|
|
40
77
|
|
|
41
78
|
### 错误修复
|
|
42
79
|
|
|
43
|
-
*
|
|
80
|
+
* 优化初始问题文案 ([#65](https://github.com/AIGNE-io/aigne-doc-smith/issues/65)) ([d4e8762](https://github.com/AIGNE-io/aigne-doc-smith/commit/d4e8762f26fd757bde43427860a0c1dade384269))
|
|
44
81
|
|
|
45
82
|
## [0.4.5](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.4.4...v0.4.5) (2025-08-25)
|
|
46
83
|
|
|
47
84
|
|
|
48
85
|
### 其他杂项
|
|
49
86
|
|
|
50
|
-
* 发布 0.4.5
|
|
87
|
+
* 发布 0.4.5 ([12aa6c3](https://github.com/AIGNE-io/aigne-doc-smith/commit/12aa6c340fdd95cbd74833662f4c3a80f19dfa30))
|
|
51
88
|
|
|
52
89
|
## [0.4.4](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.4.3...v0.4.4) (2025-08-22)
|
|
53
90
|
|
|
@@ -61,14 +98,14 @@ labels: ["Reference"]
|
|
|
61
98
|
|
|
62
99
|
### 其他杂项
|
|
63
100
|
|
|
64
|
-
* 发布 0.4.3
|
|
101
|
+
* 发布 0.4.3 ([f37ac7c](https://github.com/AIGNE-io/aigne-doc-smith/commit/f37ac7cd1fd129d8e3019cc7e952a0cf7dcb3db7))
|
|
65
102
|
|
|
66
103
|
## [0.4.2](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.4.1...v0.4.2) (2025-08-21)
|
|
67
104
|
|
|
68
105
|
|
|
69
106
|
### 其他杂项
|
|
70
107
|
|
|
71
|
-
* 发布 0.4.2
|
|
108
|
+
* 发布 0.4.2 ([9e36cf6](https://github.com/AIGNE-io/aigne-doc-smith/commit/9e36cf678ac51a0f4e7b3c19e4b5248e42b80437))
|
|
72
109
|
|
|
73
110
|
## [0.4.1](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.4.0...v0.4.1) (2025-08-21)
|
|
74
111
|
|
|
@@ -89,14 +126,14 @@ labels: ["Reference"]
|
|
|
89
126
|
|
|
90
127
|
### 错误修复
|
|
91
128
|
|
|
92
|
-
*
|
|
129
|
+
* 优化加载源模式 ([#48](https://github.com/AIGNE-io/aigne-doc-smith/issues/48)) ([5f83b91](https://github.com/AIGNE-io/aigne-doc-smith/commit/5f83b917ea6779ba79418e3ff2490eb692c3e48a))
|
|
93
130
|
|
|
94
131
|
## [0.3.0](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.2.11...v0.3.0) (2025-08-19)
|
|
95
132
|
|
|
96
133
|
|
|
97
134
|
### 功能
|
|
98
135
|
|
|
99
|
-
*
|
|
136
|
+
* **核心:**优化生成上下文收集工作流 ([#46](https://github.com/AIGNE-io/aigne-doc-smith/issues/46)) ([687d06a](https://github.com/AIGNE-io/aigne-doc-smith/commit/687d06afd648e0e697d25e85dcc841b17c3c311c))
|
|
100
137
|
|
|
101
138
|
|
|
102
139
|
### 错误修复
|
|
@@ -129,7 +166,7 @@ labels: ["Reference"]
|
|
|
129
166
|
|
|
130
167
|
### 其他杂项
|
|
131
168
|
|
|
132
|
-
* 发布 0.2.8
|
|
169
|
+
* 发布 0.2.8 ([da19bc0](https://github.com/AIGNE-io/aigne-doc-smith/commit/da19bc0b2c6c4e5fddaff84b4fa85c9d495b3ba0))
|
|
133
170
|
|
|
134
171
|
## [0.2.7](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.2.6...v0.2.7) (2025-08-12)
|
|
135
172
|
|
|
@@ -141,28 +178,28 @@ labels: ["Reference"]
|
|
|
141
178
|
|
|
142
179
|
### 其他杂项
|
|
143
180
|
|
|
144
|
-
* 发布 0.2.7
|
|
181
|
+
* 发布 0.2.7 ([3b807fe](https://github.com/AIGNE-io/aigne-doc-smith/commit/3b807fed833a5160931747bce37aac00cf11d9ac))
|
|
145
182
|
|
|
146
183
|
## [0.2.6](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.2.5...v0.2.6) (2025-08-12)
|
|
147
184
|
|
|
148
185
|
|
|
149
186
|
### 其他杂项
|
|
150
187
|
|
|
151
|
-
* 发布 0.2.6
|
|
188
|
+
* 发布 0.2.6 ([c5b5ea5](https://github.com/AIGNE-io/aigne-doc-smith/commit/c5b5ea5c404d44f3b0d420f0b57e4ae64ae5d624))
|
|
152
189
|
|
|
153
190
|
## [0.2.5](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.2.4...v0.2.5) (2025-08-08)
|
|
154
191
|
|
|
155
192
|
|
|
156
193
|
### 错误修复
|
|
157
194
|
|
|
158
|
-
* 优化
|
|
195
|
+
* 优化 CLI 流程 ([#17](https://github.com/AIGNE-io/aigne-doc-smith/issues/17)) ([4c94263](https://github.com/AIGNE-io/aigne-doc-smith/commit/4c9426378dff9ca3270bd0e455aa6fb1045f6abb))
|
|
159
196
|
|
|
160
197
|
## [0.2.4](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.2.3...v0.2.4) (2025-08-07)
|
|
161
198
|
|
|
162
199
|
|
|
163
200
|
### 错误修复
|
|
164
201
|
|
|
165
|
-
* 优化
|
|
202
|
+
* 优化 Agent 输出日志 ([40a2451](https://github.com/AIGNE-io/aigne-doc-smith/commit/40a245122ce4d8747e5b5dbe88be6986047c38ae))
|
|
166
203
|
|
|
167
204
|
## [0.2.3](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.2.2...v0.2.3) (2025-08-07)
|
|
168
205
|
|
|
@@ -176,21 +213,21 @@ labels: ["Reference"]
|
|
|
176
213
|
|
|
177
214
|
### 其他杂项
|
|
178
215
|
|
|
179
|
-
* 发布 0.2.2
|
|
216
|
+
* 发布 0.2.2 ([c3fb52a](https://github.com/AIGNE-io/aigne-doc-smith/commit/c3fb52a78b95676e1c13361b30ebec2914a89fa8))
|
|
180
217
|
|
|
181
218
|
## [0.2.1](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.2.0...v0.2.1) (2025-08-06)
|
|
182
219
|
|
|
183
220
|
|
|
184
221
|
### 其他杂项
|
|
185
222
|
|
|
186
|
-
* 发布 0.2.1
|
|
223
|
+
* 发布 0.2.1 ([e3a39ae](https://github.com/AIGNE-io/aigne-doc-smith/commit/e3a39aedcee129deae424e96942f9798b9191663))
|
|
187
224
|
|
|
188
225
|
## [0.2.0](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.1.4...v0.2.0) (2025-08-05)
|
|
189
226
|
|
|
190
227
|
|
|
191
228
|
### 功能
|
|
192
229
|
|
|
193
|
-
* 支持调用
|
|
230
|
+
* 支持调用 Agent 时自动初始化配置 ([24d29db](https://github.com/AIGNE-io/aigne-doc-smith/commit/24d29db4dd86709750aa22ff649e7dacc4124126))
|
|
194
231
|
* 源文件变更时更新文档 ([#9](https://github.com/AIGNE-io/aigne-doc-smith/issues/9)) ([4adcecf](https://github.com/AIGNE-io/aigne-doc-smith/commit/4adcecfb32e72c9e88d0b0bd8ce0a91022847ca7))
|
|
195
232
|
|
|
196
233
|
## [0.1.4](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.1.3...v0.1.4) (2025-08-04)
|
|
@@ -198,14 +235,14 @@ labels: ["Reference"]
|
|
|
198
235
|
|
|
199
236
|
### 其他杂项
|
|
200
237
|
|
|
201
|
-
* 发布 0.1.4
|
|
238
|
+
* 发布 0.1.4 ([4122cf5](https://github.com/AIGNE-io/aigne-doc-smith/commit/4122cf5cc0285bef2b96803f393e744121d22acf))
|
|
202
239
|
|
|
203
240
|
## [0.1.3](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.1.2...v0.1.3) (2025-08-04)
|
|
204
241
|
|
|
205
242
|
|
|
206
243
|
### 错误修复
|
|
207
244
|
|
|
208
|
-
* 从 options.context 访问
|
|
245
|
+
* 从 options.context 访问 Agent,而不是加载新的 AIGNE 实例 ([#6](https://github.com/AIGNE-io/aigne-doc-smith/issues/6)) ([0e7ce1d](https://github.com/AIGNE-io/aigne-doc-smith/commit/0e7ce1d3889aab435b029a511cb7ebdbb213ab8a))
|
|
209
246
|
|
|
210
247
|
## [0.1.2](https://github.com/AIGNE-io/aigne-doc-smith/compare/v0.1.1...v0.1.2) (2025-08-01)
|
|
211
248
|
|
|
@@ -219,7 +256,7 @@ labels: ["Reference"]
|
|
|
219
256
|
|
|
220
257
|
### 错误修复
|
|
221
258
|
|
|
222
|
-
*
|
|
259
|
+
* Agent 添加别名 ([7e25014](https://github.com/AIGNE-io/aigne-doc-smith/commit/7e250147309849fe0f4cc554077134d2e443d344))
|
|
223
260
|
* docs mcp 添加文档搜索 ([de96e0e](https://github.com/AIGNE-io/aigne-doc-smith/commit/de96e0e08455831dc6918d5fbc59d38b6a921373))
|
|
224
261
|
* 优化代码 ([8cb0a5c](https://github.com/AIGNE-io/aigne-doc-smith/commit/8cb0a5ce67cf009c672b2fb1aa9b89ef6d965a86))
|
|
225
262
|
|
|
@@ -228,33 +265,33 @@ labels: ["Reference"]
|
|
|
228
265
|
|
|
229
266
|
### 功能
|
|
230
267
|
|
|
231
|
-
* 为 mcp 服务器和
|
|
268
|
+
* 为 mcp 服务器和 CLI 添加入口 Agent ([fa85d65](https://github.com/AIGNE-io/aigne-doc-smith/commit/fa85d651e8dc723e2b97150fc2258b115c6c5bb0))
|
|
232
269
|
|
|
233
270
|
|
|
234
271
|
### 错误修复
|
|
235
272
|
|
|
236
273
|
* 优化命令参数 ([#3](https://github.com/AIGNE-io/aigne-doc-smith/issues/3)) ([003f6b8](https://github.com/AIGNE-io/aigne-doc-smith/commit/003f6b8ae2c9e1af55ba1841458fa8567a0eb2f0))
|
|
237
|
-
* 优化 docs mcp
|
|
274
|
+
* 优化 docs mcp Agent ([8654cd4](https://github.com/AIGNE-io/aigne-doc-smith/commit/8654cd4ea38034f3af0244f56b27acf66ba704e1))
|
|
238
275
|
|
|
239
276
|
## 0.0.2 (2025-07-30)
|
|
240
277
|
|
|
241
278
|
|
|
242
279
|
### 功能
|
|
243
280
|
|
|
244
|
-
*
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
281
|
+
* 添加自动创建看板 ([3ff06ad](https://github.com/AIGNE-io/aigne-doc-smith/commit/3ff06ad0241e208b09bcf828c52c2c5051c67ef8))
|
|
282
|
+
* 添加 docs-mcp ([a7508a1](https://github.com/AIGNE-io/aigne-doc-smith/commit/a7508a13abb2222968b1bc9c14948427af509f97))
|
|
283
|
+
* 添加输入生成器 Agent ([20c01bb](https://github.com/AIGNE-io/aigne-doc-smith/commit/20c01bbca6d6f9414695071fc907bd7cf43d7f62))
|
|
284
|
+
* 添加发布文档功能 ([41bb126](https://github.com/AIGNE-io/aigne-doc-smith/commit/41bb126caeb1c3c242c7a2be27abb114aeab9953))
|
|
285
|
+
* 添加对文档标签的支持 ([4522c07](https://github.com/AIGNE-io/aigne-doc-smith/commit/4522c07b1ceb05664a1f5b5fb4df06feee536eba))
|
|
286
|
+
* 详情添加审查 ([8f1aa4f](https://github.com/AIGNE-io/aigne-doc-smith/commit/8f1aa4f22e2d2e590d7aa37288c2e1ee7ea48f07))
|
|
250
287
|
* 初始提交 ([dafc40e](https://github.com/AIGNE-io/aigne-doc-smith/commit/dafc40e94f3c407e50b2c46ecb46237f23a15cf7))
|
|
251
|
-
*
|
|
288
|
+
* 结构规划添加审查 ([b56e83e](https://github.com/AIGNE-io/aigne-doc-smith/commit/b56e83e558f509302b422205f30e9b2adb42d452))
|
|
252
289
|
|
|
253
290
|
|
|
254
291
|
### 错误修复
|
|
255
292
|
|
|
256
|
-
* 优化
|
|
257
|
-
* 优化
|
|
293
|
+
* 优化 Agent 名称 ([25875a0](https://github.com/AIGNE-io/aigne-doc-smith/commit/25875a0688ebbca71f6c25bf4bd5246361f3dd2d))
|
|
294
|
+
* 优化 Agent 参数和描述 ([290eb24](https://github.com/AIGNE-io/aigne-doc-smith/commit/290eb240ce986b0f1f406bf42824ce1235df11e5))
|
|
258
295
|
* 优化代码 ([34f9a24](https://github.com/AIGNE-io/aigne-doc-smith/commit/34f9a24fc3748b4177cad2b5330fe6b3ccd99175))
|
|
259
296
|
* 优化代码 ([0343486](https://github.com/AIGNE-io/aigne-doc-smith/commit/0343486aa086bbe2ced8de849de6a4a42567719c))
|
|
260
297
|
* 优化代码 ([7b7dfb9](https://github.com/AIGNE-io/aigne-doc-smith/commit/7b7dfb925b3aa55956ef7a99ededc749fb6a42d7))
|
|
@@ -262,11 +299,11 @@ labels: ["Reference"]
|
|
|
262
299
|
* 优化代码 ([74fee51](https://github.com/AIGNE-io/aigne-doc-smith/commit/74fee51ad6337af8811a35f2a4334b67ec109439))
|
|
263
300
|
* 优化代码 ([7fa1675](https://github.com/AIGNE-io/aigne-doc-smith/commit/7fa1675b2cab6144d1fb9d4388130209c6cfa0bc))
|
|
264
301
|
* 优化文档审查 ([70374ab](https://github.com/AIGNE-io/aigne-doc-smith/commit/70374abed74946eafa7b0f87331c2e496fa61592))
|
|
265
|
-
*
|
|
302
|
+
* 优化输入生成器 Agent ([ae908bb](https://github.com/AIGNE-io/aigne-doc-smith/commit/ae908bbc0cb98b9b196e8b08f23149e5693e0abe))
|
|
266
303
|
* 优化结构规划 ([3a0a196](https://github.com/AIGNE-io/aigne-doc-smith/commit/3a0a196a97196ba445c4709d3466ff355917ac53))
|
|
267
304
|
* 保存文档时移除无用文档 ([bec5ba3](https://github.com/AIGNE-io/aigne-doc-smith/commit/bec5ba3afd462c990a0aa813bbe38ce9a61363ee))
|
|
268
305
|
|
|
269
306
|
|
|
270
307
|
### 其他杂项
|
|
271
308
|
|
|
272
|
-
* 发布 0.0.2
|
|
309
|
+
* 发布 0.0.2 ([73bf26a](https://github.com/AIGNE-io/aigne-doc-smith/commit/73bf26a5c55fa4726d866cff64bd48d1ca37a3b3))
|
package/docs/cli-reference.md
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
---
|
|
2
|
-
labels: ["Reference"]
|
|
3
|
-
---
|
|
4
|
-
|
|
5
1
|
# CLI Command Reference
|
|
6
2
|
|
|
7
|
-
This guide provides a
|
|
3
|
+
This guide provides a reference for all available `aigne doc` sub-commands, their arguments, and options. It is intended for users who want to use the command-line interface to its full potential.
|
|
8
4
|
|
|
9
5
|
The general syntax is:
|
|
10
6
|
|
|
@@ -12,13 +8,82 @@ The general syntax is:
|
|
|
12
8
|
aigne doc <command> [options]
|
|
13
9
|
```
|
|
14
10
|
|
|
11
|
+
### Command Workflow
|
|
12
|
+
|
|
13
|
+
The following diagram illustrates the typical lifecycle of creating and maintaining documentation with DocSmith's CLI commands:
|
|
14
|
+
|
|
15
|
+
```d2
|
|
16
|
+
direction: down
|
|
17
|
+
|
|
18
|
+
Start: {
|
|
19
|
+
label: "Project Setup"
|
|
20
|
+
shape: circle
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
init: {
|
|
24
|
+
label: "aigne doc init\n(Interactive Setup)"
|
|
25
|
+
shape: rectangle
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
generate: {
|
|
29
|
+
label: "aigne doc generate\n(Create/Update All Docs)"
|
|
30
|
+
shape: rectangle
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
refinement-cycle: {
|
|
34
|
+
label: "Refinement Cycle"
|
|
35
|
+
shape: rectangle
|
|
36
|
+
grid-columns: 2
|
|
37
|
+
|
|
38
|
+
update: {
|
|
39
|
+
label: "aigne doc update\n(Refine Single Doc)"
|
|
40
|
+
}
|
|
41
|
+
translate: {
|
|
42
|
+
label: "aigne doc translate\n(Localize Content)"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
publish: {
|
|
47
|
+
label: "aigne doc publish\n(Deploy Docs)"
|
|
48
|
+
shape: rectangle
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
End: {
|
|
52
|
+
label: "Docs Live"
|
|
53
|
+
shape: circle
|
|
54
|
+
style.fill: "#a2eeaf"
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
prefs: {
|
|
58
|
+
label: "aigne doc prefs\n(Manage Learned Rules)"
|
|
59
|
+
shape: cylinder
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
Start -> init: "Optional" {
|
|
63
|
+
style.stroke-dash: 4
|
|
64
|
+
}
|
|
65
|
+
init -> generate: "Configure"
|
|
66
|
+
Start -> generate: "Direct"
|
|
67
|
+
generate -> refinement-cycle: "Refine"
|
|
68
|
+
refinement-cycle -> publish: "Ready"
|
|
69
|
+
generate -> publish: "Direct Deploy"
|
|
70
|
+
publish -> End
|
|
71
|
+
|
|
72
|
+
prefs <-> generate: "Influences" {
|
|
73
|
+
style.stroke-dash: 2
|
|
74
|
+
}
|
|
75
|
+
prefs <-> refinement-cycle: "Influences" {
|
|
76
|
+
style.stroke-dash: 2
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
|
|
15
80
|
---
|
|
16
81
|
|
|
17
82
|
## `aigne doc generate`
|
|
18
83
|
|
|
19
84
|
**Aliases:** `gen`, `g`
|
|
20
85
|
|
|
21
|
-
|
|
86
|
+
Analyzes your source code and generates a complete set of documentation based on your configuration. If no configuration is found, it automatically launches the interactive setup wizard.
|
|
22
87
|
|
|
23
88
|
### Options
|
|
24
89
|
|
|
@@ -26,7 +91,7 @@ Automatically analyzes your source code and generates a complete set of document
|
|
|
26
91
|
|---|---|---|
|
|
27
92
|
| `--feedback` | string | Provides feedback to adjust and refine the overall document structure plan. |
|
|
28
93
|
| `--forceRegenerate` | boolean | Discards existing content and regenerates all documentation from scratch. |
|
|
29
|
-
| `--model` | string | Specifies a particular LLM to use for generation (e.g., `openai:gpt-4o
|
|
94
|
+
| `--model` | string | Specifies a particular LLM to use for generation (e.g., `openai:gpt-4o`). Overrides the default model. |
|
|
30
95
|
| `--glossary` | string | Path to a glossary file for consistent terminology. Use the format `@path/to/glossary.md`. |
|
|
31
96
|
|
|
32
97
|
### Usage Examples
|
|
@@ -63,9 +128,10 @@ Optimizes and regenerates specific documents. You can run it interactively to se
|
|
|
63
128
|
|
|
64
129
|
| Option | Type | Description |
|
|
65
130
|
|---|---|---|
|
|
66
|
-
| `--docs` | array | A list of document paths to regenerate (e.g., `--docs overview.md
|
|
131
|
+
| `--docs` | array | A list of document paths to regenerate (e.g., `--docs overview.md`). Can be used multiple times. |
|
|
67
132
|
| `--feedback` | string | Provides specific feedback to improve the content of the selected document(s). |
|
|
68
133
|
| `--glossary` | string | Path to a glossary file for consistent terminology. Use the format `@path/to/glossary.md`. |
|
|
134
|
+
| `--reset` | boolean | Ignores previous results and regenerates content from scratch for the selected documents. |
|
|
69
135
|
|
|
70
136
|
### Usage Examples
|
|
71
137
|
|
|
@@ -76,7 +142,7 @@ aigne doc update
|
|
|
76
142
|
|
|
77
143
|
**Update a specific document with targeted feedback:**
|
|
78
144
|
```bash
|
|
79
|
-
aigne doc update --docs /cli-reference
|
|
145
|
+
aigne doc update --docs /cli-reference --feedback "Clarify the difference between the --docs and --langs options."
|
|
80
146
|
```
|
|
81
147
|
|
|
82
148
|
---
|
|
@@ -89,8 +155,8 @@ Translates existing documentation into one or more languages. It can be run inte
|
|
|
89
155
|
|
|
90
156
|
| Option | Type | Description |
|
|
91
157
|
|---|---|---|
|
|
92
|
-
| `--docs` | array | A list of document paths to translate.
|
|
93
|
-
| `--langs` | array | A list of target language codes (e.g., `zh`, `ja`, `es`).
|
|
158
|
+
| `--docs` | array | A list of document paths to translate. Can be used multiple times. |
|
|
159
|
+
| `--langs` | array | A list of target language codes (e.g., `zh`, `ja`, `es`). Can be used multiple times. |
|
|
94
160
|
| `--feedback` | string | Provides feedback to improve the quality of the translation. |
|
|
95
161
|
| `--glossary` | string | Path to a glossary file to ensure consistent terminology across languages. Use `@path/to/glossary.md`. |
|
|
96
162
|
|
|
@@ -123,7 +189,7 @@ Publishes your generated documentation to a Discuss Kit platform. You can publis
|
|
|
123
189
|
|
|
124
190
|
| Option | Type | Description |
|
|
125
191
|
|---|---|---|
|
|
126
|
-
| `--appUrl` | string | The URL of your self-hosted Discuss Kit instance. If not provided, the command runs interactively
|
|
192
|
+
| `--appUrl` | string | The URL of your self-hosted Discuss Kit instance. If not provided, the command runs interactively. |
|
|
127
193
|
|
|
128
194
|
### Usage Examples
|
|
129
195
|
|
|
@@ -163,7 +229,7 @@ Manages user preferences that DocSmith learns from your feedback over time. Thes
|
|
|
163
229
|
| `--list` | boolean | Lists all saved preferences, showing their status (active/inactive), scope, and content. |
|
|
164
230
|
| `--remove` | boolean | Removes one or more preferences. Runs interactively if `--id` is not provided. |
|
|
165
231
|
| `--toggle` | boolean | Toggles the active status of one or more preferences. Runs interactively if `--id` is not provided. |
|
|
166
|
-
| `--id` | array | Specifies the preference ID(s) to act upon for `--remove` or `--toggle`. |
|
|
232
|
+
| `--id` | array | Specifies the preference ID(s) to act upon for `--remove` or `--toggle`. Can be used multiple times. |
|
|
167
233
|
|
|
168
234
|
### Usage Examples
|
|
169
235
|
|
package/docs/cli-reference.zh.md
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
---
|
|
2
|
-
labels: ["Reference"]
|
|
3
|
-
---
|
|
4
|
-
|
|
5
1
|
# CLI 命令参考
|
|
6
2
|
|
|
7
|
-
本指南为所有可用的 `aigne doc`
|
|
3
|
+
本指南为所有可用的 `aigne doc` 子命令及其参数和选项提供了参考。旨在帮助用户充分利用命令行界面。
|
|
8
4
|
|
|
9
5
|
通用语法如下:
|
|
10
6
|
|
|
@@ -12,21 +8,90 @@ labels: ["Reference"]
|
|
|
12
8
|
aigne doc <command> [options]
|
|
13
9
|
```
|
|
14
10
|
|
|
11
|
+
### 命令工作流
|
|
12
|
+
|
|
13
|
+
下图展示了使用 DocSmith 的 CLI 命令创建和维护文档的典型生命周期:
|
|
14
|
+
|
|
15
|
+
```d2
|
|
16
|
+
direction: down
|
|
17
|
+
|
|
18
|
+
Start: {
|
|
19
|
+
label: "项目设置"
|
|
20
|
+
shape: circle
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
init: {
|
|
24
|
+
label: "aigne doc init\n(交互式设置)"
|
|
25
|
+
shape: rectangle
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
generate: {
|
|
29
|
+
label: "aigne doc generate\n(创建/更新所有文档)"
|
|
30
|
+
shape: rectangle
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
refinement-cycle: {
|
|
34
|
+
label: "优化周期"
|
|
35
|
+
shape: rectangle
|
|
36
|
+
grid-columns: 2
|
|
37
|
+
|
|
38
|
+
update: {
|
|
39
|
+
label: "aigne doc update\n(优化单个文档)"
|
|
40
|
+
}
|
|
41
|
+
translate: {
|
|
42
|
+
label: "aigne doc translate\n(本地化内容)"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
publish: {
|
|
47
|
+
label: "aigne doc publish\n(部署文档)"
|
|
48
|
+
shape: rectangle
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
End: {
|
|
52
|
+
label: "文档上线"
|
|
53
|
+
shape: circle
|
|
54
|
+
style.fill: "#a2eeaf"
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
prefs: {
|
|
58
|
+
label: "aigne doc prefs\n(管理学习到的规则)"
|
|
59
|
+
shape: cylinder
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
Start -> init: "可选" {
|
|
63
|
+
style.stroke-dash: 4
|
|
64
|
+
}
|
|
65
|
+
init -> generate: "配置"
|
|
66
|
+
Start -> generate: "直接"
|
|
67
|
+
generate -> refinement-cycle: "优化"
|
|
68
|
+
refinement-cycle -> publish: "就绪"
|
|
69
|
+
generate -> publish: "直接部署"
|
|
70
|
+
publish -> End
|
|
71
|
+
|
|
72
|
+
prefs <-> generate: "影响" {
|
|
73
|
+
style.stroke-dash: 2
|
|
74
|
+
}
|
|
75
|
+
prefs <-> refinement-cycle: "影响" {
|
|
76
|
+
style.stroke-dash: 2
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
|
|
15
80
|
---
|
|
16
81
|
|
|
17
82
|
## `aigne doc generate`
|
|
18
83
|
|
|
19
84
|
**别名:** `gen`, `g`
|
|
20
85
|
|
|
21
|
-
|
|
86
|
+
分析您的源代码,并根据您的配置生成一套完整的文档。如果未找到配置,它将自动启动交互式设置向导。
|
|
22
87
|
|
|
23
88
|
### 选项
|
|
24
89
|
|
|
25
|
-
|
|
|
90
|
+
| Option | Type | Description |
|
|
26
91
|
|---|---|---|
|
|
27
92
|
| `--feedback` | string | 提供反馈以调整和优化整体文档结构规划。 |
|
|
28
|
-
| `--forceRegenerate` | boolean |
|
|
29
|
-
| `--model` | string | 指定用于生成的特定 LLM(例如,`openai:gpt-4o
|
|
93
|
+
| `--forceRegenerate` | boolean | 丢弃现有内容,从头开始重新生成所有文档。 |
|
|
94
|
+
| `--model` | string | 指定用于生成的特定 LLM(例如,`openai:gpt-4o`)。此选项将覆盖默认模型。 |
|
|
30
95
|
| `--glossary` | string | 用于保持术语一致性的术语表文件路径。使用 `@path/to/glossary.md` 格式。 |
|
|
31
96
|
|
|
32
97
|
### 使用示例
|
|
@@ -57,15 +122,16 @@ aigne doc generate --model google:gemini-1.5-flash
|
|
|
57
122
|
|
|
58
123
|
**别名:** `up`
|
|
59
124
|
|
|
60
|
-
|
|
125
|
+
优化并重新生成特定文档。您可以以交互方式运行以选择文档,或直接使用选项指定文档。此命令对于根据反馈进行有针对性的改进非常有用,无需重新生成整个项目。
|
|
61
126
|
|
|
62
127
|
### 选项
|
|
63
128
|
|
|
64
|
-
|
|
|
129
|
+
| Option | Type | Description |
|
|
65
130
|
|---|---|---|
|
|
66
|
-
| `--docs` | array | 要重新生成的文档路径列表(例如,`--docs overview.md
|
|
131
|
+
| `--docs` | array | 要重新生成的文档路径列表(例如,`--docs overview.md`)。可多次使用。 |
|
|
67
132
|
| `--feedback` | string | 提供具体反馈以改进所选文档的内容。 |
|
|
68
133
|
| `--glossary` | string | 用于保持术语一致性的术语表文件路径。使用 `@path/to/glossary.md` 格式。 |
|
|
134
|
+
| `--reset` | boolean | 忽略之前的结果,为所选文档从头开始重新生成内容。 |
|
|
69
135
|
|
|
70
136
|
### 使用示例
|
|
71
137
|
|
|
@@ -74,23 +140,23 @@ aigne doc generate --model google:gemini-1.5-flash
|
|
|
74
140
|
aigne doc update
|
|
75
141
|
```
|
|
76
142
|
|
|
77
|
-
|
|
143
|
+
**使用针对性反馈更新特定文档:**
|
|
78
144
|
```bash
|
|
79
|
-
aigne doc update --docs /cli-reference
|
|
145
|
+
aigne doc update --docs /cli-reference --feedback "阐明 --docs 和 --langs 选项之间的区别。"
|
|
80
146
|
```
|
|
81
147
|
|
|
82
148
|
---
|
|
83
149
|
|
|
84
150
|
## `aigne doc translate`
|
|
85
151
|
|
|
86
|
-
|
|
152
|
+
将现有文档翻译成一种或多种语言。可以以交互方式运行以选择文档和语言,也可以通过参数指定以非交互方式运行。
|
|
87
153
|
|
|
88
154
|
### 选项
|
|
89
155
|
|
|
90
|
-
|
|
|
156
|
+
| Option | Type | Description |
|
|
91
157
|
|---|---|---|
|
|
92
|
-
| `--docs` | array |
|
|
93
|
-
| `--langs` | array | 目标语言代码列表(例如,`zh`、`ja`、`es
|
|
158
|
+
| `--docs` | array | 要翻译的文档路径列表。可多次使用。 |
|
|
159
|
+
| `--langs` | array | 目标语言代码列表(例如,`zh`、`ja`、`es`)。可多次使用。 |
|
|
94
160
|
| `--feedback` | string | 提供反馈以提高翻译质量。 |
|
|
95
161
|
| `--glossary` | string | 用于确保跨语言术语一致性的术语表文件路径。使用 `@path/to/glossary.md`。 |
|
|
96
162
|
|
|
@@ -117,13 +183,13 @@ aigne doc translate --glossary @glossary.md --feedback "日语翻译请使用正
|
|
|
117
183
|
|
|
118
184
|
**别名:** `pub`, `p`
|
|
119
185
|
|
|
120
|
-
将您生成的文档发布到 Discuss Kit 平台。您可以发布到官方的 AIGNE DocSmith
|
|
186
|
+
将您生成的文档发布到 Discuss Kit 平台。您可以发布到官方的 AIGNE DocSmith 平台,也可以发布到您自己托管的实例。
|
|
121
187
|
|
|
122
188
|
### 选项
|
|
123
189
|
|
|
124
|
-
|
|
|
190
|
+
| Option | Type | Description |
|
|
125
191
|
|---|---|---|
|
|
126
|
-
| `--appUrl` | string | 您自托管的 Discuss Kit 实例的 URL
|
|
192
|
+
| `--appUrl` | string | 您自托管的 Discuss Kit 实例的 URL。如果未提供,该命令将以交互方式运行。 |
|
|
127
193
|
|
|
128
194
|
### 使用示例
|
|
129
195
|
|
|
@@ -141,7 +207,7 @@ aigne doc publish --appUrl https://docs.my-company.com
|
|
|
141
207
|
|
|
142
208
|
## `aigne doc init`
|
|
143
209
|
|
|
144
|
-
|
|
210
|
+
手动启动交互式配置向导。这对于设置新项目或修改现有项目的配置非常有用。该向导将引导您定义源代码路径、设置输出目录、选择语言以及定义文档的风格和目标受众。
|
|
145
211
|
|
|
146
212
|
### 使用示例
|
|
147
213
|
|
|
@@ -154,16 +220,16 @@ aigne doc init
|
|
|
154
220
|
|
|
155
221
|
## `aigne doc prefs`
|
|
156
222
|
|
|
157
|
-
管理 DocSmith
|
|
223
|
+
管理 DocSmith 随时间从您的反馈中学习到的用户偏好。这些偏好将在未来的生成和更新任务中作为规则应用,以保持与您的风格一致。
|
|
158
224
|
|
|
159
225
|
### 选项
|
|
160
226
|
|
|
161
|
-
|
|
|
227
|
+
| Option | Type | Description |
|
|
162
228
|
|---|---|---|
|
|
163
229
|
| `--list` | boolean | 列出所有已保存的偏好,显示其状态(激活/未激活)、范围和内容。 |
|
|
164
230
|
| `--remove` | boolean | 移除一个或多个偏好。如果未提供 `--id`,则以交互方式运行。 |
|
|
165
231
|
| `--toggle` | boolean | 切换一个或多个偏好的激活状态。如果未提供 `--id`,则以交互方式运行。 |
|
|
166
|
-
| `--id` | array |
|
|
232
|
+
| `--id` | array | 为 `--remove` 或 `--toggle` 指定要操作的偏好 ID。可多次使用。 |
|
|
167
233
|
|
|
168
234
|
### 使用示例
|
|
169
235
|
|
|
@@ -182,4 +248,4 @@ aigne doc prefs --remove
|
|
|
182
248
|
aigne doc prefs --toggle --id <preference-id>
|
|
183
249
|
```
|
|
184
250
|
|
|
185
|
-
有关如何根据您的需求定制 DocSmith 的更多详细信息,请参阅
|
|
251
|
+
有关如何根据您的需求定制 DocSmith 的更多详细信息,请参阅[配置指南](./configuration.md)。
|