@aigne/doc-smith 0.8.11-beta.6 → 0.8.11-beta.7
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 +2 -0
- package/.aigne/doc-smith/output/structure-plan.json +2 -2
- package/.aigne/doc-smith/preferences.yml +28 -20
- package/.aigne/doc-smith/upload-cache.yaml +702 -0
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +13 -0
- package/README.md +1 -1
- package/agents/generate/document-structure-tools/add-document.mjs +35 -10
- package/agents/generate/document-structure-tools/delete-document.mjs +35 -12
- package/agents/generate/document-structure-tools/move-document.mjs +43 -17
- package/agents/generate/document-structure-tools/update-document.mjs +37 -10
- package/agents/generate/update-document-structure.yaml +1 -7
- package/agents/generate/user-review-document-structure.mjs +5 -4
- package/agents/translate/translate-document.yaml +1 -9
- package/agents/update/check-update-is-single.mjs +2 -1
- package/agents/update/document-tools/update-document-content.mjs +24 -14
- package/agents/update/fs-tools/glob.mjs +184 -0
- package/agents/update/fs-tools/grep.mjs +317 -0
- package/agents/update/fs-tools/read-file.mjs +307 -0
- package/agents/update/generate-document.yaml +4 -7
- package/agents/update/update-document-detail.yaml +6 -10
- package/agents/update/user-review-document.mjs +13 -13
- package/assets/screenshots/doc-complete-setup.png +0 -0
- package/assets/screenshots/doc-generate-docs.png +0 -0
- package/assets/screenshots/doc-generate.png +0 -0
- package/assets/screenshots/doc-generated-successfully.png +0 -0
- package/assets/screenshots/doc-publish.png +0 -0
- package/assets/screenshots/doc-regenerate.png +0 -0
- package/assets/screenshots/doc-translate-langs.png +0 -0
- package/assets/screenshots/doc-translate.png +0 -0
- package/assets/screenshots/doc-update.png +0 -0
- package/docs/advanced-how-it-works.ja.md +31 -31
- package/docs/advanced-how-it-works.md +9 -9
- package/docs/advanced-how-it-works.zh-TW.md +24 -24
- package/docs/advanced-how-it-works.zh.md +20 -20
- package/docs/advanced-quality-assurance.ja.md +57 -61
- package/docs/advanced-quality-assurance.md +57 -61
- package/docs/advanced-quality-assurance.zh-TW.md +57 -61
- package/docs/advanced-quality-assurance.zh.md +57 -61
- package/docs/advanced.ja.md +8 -4
- package/docs/advanced.md +7 -3
- package/docs/advanced.zh-TW.md +9 -5
- package/docs/advanced.zh.md +9 -5
- package/docs/changelog.ja.md +206 -29
- package/docs/changelog.md +177 -0
- package/docs/changelog.zh-TW.md +229 -52
- package/docs/changelog.zh.md +204 -27
- package/docs/cli-reference.ja.md +82 -52
- package/docs/cli-reference.md +56 -26
- package/docs/cli-reference.zh-TW.md +82 -52
- package/docs/cli-reference.zh.md +70 -40
- package/docs/configuration-interactive-setup.ja.md +45 -42
- package/docs/configuration-interactive-setup.md +8 -5
- package/docs/configuration-interactive-setup.zh-TW.md +26 -23
- package/docs/configuration-interactive-setup.zh.md +25 -22
- package/docs/configuration-language-support.ja.md +33 -63
- package/docs/configuration-language-support.md +32 -62
- package/docs/configuration-language-support.zh-TW.md +35 -65
- package/docs/configuration-language-support.zh.md +32 -62
- package/docs/configuration-llm-setup.ja.md +25 -23
- package/docs/configuration-llm-setup.md +20 -18
- package/docs/configuration-llm-setup.zh-TW.md +21 -19
- package/docs/configuration-llm-setup.zh.md +20 -18
- package/docs/configuration-preferences.ja.md +67 -52
- package/docs/configuration-preferences.md +56 -41
- package/docs/configuration-preferences.zh-TW.md +69 -54
- package/docs/configuration-preferences.zh.md +68 -53
- package/docs/configuration.ja.md +65 -81
- package/docs/configuration.md +19 -35
- package/docs/configuration.zh-TW.md +62 -79
- package/docs/configuration.zh.md +50 -67
- package/docs/features-generate-documentation.ja.md +44 -69
- package/docs/features-generate-documentation.md +36 -61
- package/docs/features-generate-documentation.zh-TW.md +42 -67
- package/docs/features-generate-documentation.zh.md +41 -67
- package/docs/features-publish-your-docs.ja.md +36 -36
- package/docs/features-publish-your-docs.md +2 -2
- package/docs/features-publish-your-docs.zh-TW.md +21 -21
- package/docs/features-publish-your-docs.zh.md +23 -23
- package/docs/features-translate-documentation.ja.md +40 -31
- package/docs/features-translate-documentation.md +15 -6
- package/docs/features-translate-documentation.zh-TW.md +37 -28
- package/docs/features-translate-documentation.zh.md +23 -14
- package/docs/features-update-and-refine.ja.md +68 -118
- package/docs/features-update-and-refine.md +58 -108
- package/docs/features-update-and-refine.zh-TW.md +67 -116
- package/docs/features-update-and-refine.zh.md +64 -114
- package/docs/features.ja.md +29 -19
- package/docs/features.md +25 -15
- package/docs/features.zh-TW.md +28 -18
- package/docs/features.zh.md +31 -21
- package/docs/getting-started.ja.md +40 -43
- package/docs/getting-started.md +36 -39
- package/docs/getting-started.zh-TW.md +38 -41
- package/docs/getting-started.zh.md +45 -48
- package/docs/overview.ja.md +63 -11
- package/docs/overview.md +60 -8
- package/docs/overview.zh-TW.md +67 -15
- package/docs/overview.zh.md +62 -10
- package/media.md +9 -9
- package/package.json +1 -1
- package/prompts/detail/custom/custom-components.md +304 -188
- package/prompts/detail/document-rules.md +4 -4
- package/prompts/detail/generate-document.md +21 -8
- package/prompts/detail/update-document.md +8 -12
- package/prompts/structure/update-document-structure.md +12 -8
- package/prompts/utils/feedback-refiner.md +3 -3
- package/tests/agents/generate/document-structure-tools/move-document.test.mjs +9 -9
- package/tests/agents/generate/user-review-document-structure.test.mjs +29 -8
- package/tests/agents/update/document-tools/update-document-content.test.mjs +115 -112
- package/tests/agents/update/fs-tools/glob.test.mjs +438 -0
- package/tests/agents/update/fs-tools/grep.test.mjs +279 -0
- package/tests/agents/update/fs-tools/read-file.test.mjs +553 -0
- package/tests/agents/update/user-review-document.test.mjs +48 -27
- package/types/document-schema.mjs +5 -6
- package/types/document-structure-schema.mjs +20 -8
package/docs/cli-reference.ja.md
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
# CLI
|
|
1
|
+
# CLIコマンドリファレンス
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
このガイドは、利用可能なすべての`aigne doc`サブコマンド、その引数、およびオプションに関する包括的なリファレンスを提供します。コマンドラインインターフェースを最大限に活用したいユーザーを対象としています。
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
一般的な構文は次のとおりです:
|
|
6
6
|
|
|
7
|
-
```bash command
|
|
7
|
+
```bash command icon=lucide:terminal
|
|
8
8
|
aigne doc <command> [options]
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
### コマンドのワークフロー
|
|
12
12
|
|
|
13
|
-
以下の図は、DocSmithのCLI
|
|
13
|
+
以下の図は、DocSmithのCLIコマンドを使用してドキュメントを作成および維持する一般的なライフサイクルと、それらが相互作用するデータを示しています。
|
|
14
14
|
|
|
15
15
|
```d2
|
|
16
16
|
direction: down
|
|
@@ -73,11 +73,11 @@ Utilities: {
|
|
|
73
73
|
grid-columns: 2
|
|
74
74
|
|
|
75
75
|
prefs: {
|
|
76
|
-
label: "
|
|
76
|
+
label: "設定管理\n`aigne doc prefs`"
|
|
77
77
|
shape: rectangle
|
|
78
78
|
}
|
|
79
79
|
clear: {
|
|
80
|
-
label: "
|
|
80
|
+
label: "データ消去\n`aigne doc clear`"
|
|
81
81
|
shape: rectangle
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -87,8 +87,8 @@ Utilities: {
|
|
|
87
87
|
|
|
88
88
|
# Setup and Generation
|
|
89
89
|
Lifecycle.init -> Configuration: "作成"
|
|
90
|
-
Source-Code -> Lifecycle.generate: "
|
|
91
|
-
Configuration -> Lifecycle.generate: "
|
|
90
|
+
Source-Code -> Lifecycle.generate: "読み込み"
|
|
91
|
+
Configuration -> Lifecycle.generate: "読み込み"
|
|
92
92
|
Lifecycle.generate -> Generated-Docs: "作成 / 上書き"
|
|
93
93
|
Lifecycle.generate -> Lifecycle.init: {
|
|
94
94
|
label: "設定がない場合に実行"
|
|
@@ -96,14 +96,14 @@ Lifecycle.generate -> Lifecycle.init: {
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
# Refinement Loop
|
|
99
|
-
Generated-Docs <-> Lifecycle.Refinement: "
|
|
99
|
+
Generated-Docs <-> Lifecycle.Refinement: "読み書き"
|
|
100
100
|
|
|
101
101
|
# Publishing
|
|
102
102
|
Lifecycle.Refinement -> Lifecycle.publish
|
|
103
|
-
Lifecycle.publish -> Published-Docs: "
|
|
103
|
+
Lifecycle.publish -> Published-Docs: "アップロード"
|
|
104
104
|
|
|
105
105
|
# Utility Connections
|
|
106
|
-
Utilities.prefs -> Configuration: "
|
|
106
|
+
Utilities.prefs -> Configuration: "読み込み"
|
|
107
107
|
Utilities.clear -> Configuration: "削除"
|
|
108
108
|
Utilities.clear -> Generated-Docs: "削除"
|
|
109
109
|
```
|
|
@@ -116,11 +116,12 @@ Utilities.clear -> Generated-Docs: "削除"
|
|
|
116
116
|
|
|
117
117
|
### 使用例
|
|
118
118
|
|
|
119
|
-
|
|
119
|
+
**セットアップウィザードを起動します:**
|
|
120
120
|
|
|
121
121
|
```bash
|
|
122
122
|
aigne doc init
|
|
123
123
|
```
|
|
124
|
+

|
|
124
125
|
|
|
125
126
|
DocSmithをニーズに合わせて調整する方法の詳細については、[設定ガイド](./configuration.md)を参照してください。
|
|
126
127
|
|
|
@@ -128,37 +129,39 @@ DocSmithをニーズに合わせて調整する方法の詳細については、
|
|
|
128
129
|
|
|
129
130
|
## `aigne doc generate`
|
|
130
131
|
|
|
131
|
-
|
|
132
|
+
ソースコードを分析し、設定に基づいて完全なドキュメントセットを生成します。設定が見つからない場合は、自動的に対話式のセットアップウィザード(`aigne doc init`)を起動します。
|
|
133
|
+
|
|
134
|
+

|
|
132
135
|
|
|
133
136
|
### オプション
|
|
134
137
|
|
|
135
|
-
| オプション
|
|
136
|
-
|
|
|
137
|
-
| `--forceRegenerate` | boolean | 既存のコンテンツを破棄し、すべてのドキュメントを最初から再生成します。
|
|
138
|
-
| `--feedback`
|
|
139
|
-
| `--model`
|
|
138
|
+
| オプション | タイプ | 説明 |
|
|
139
|
+
| :------------------ | :------ | :------------------------------------------------------------------------------------------------------- |
|
|
140
|
+
| `--forceRegenerate` | boolean | 既存のコンテンツを破棄し、すべてのドキュメントを最初から再生成します。 |
|
|
141
|
+
| `--feedback` | string | ドキュメント全体の構造を調整・改良するためのフィードバックを提供します。 |
|
|
142
|
+
| `--model` | string | 生成に使用する特定の言語モデルを指定します(例:`openai:gpt-4o`)。デフォルト設定を上書きします。 |
|
|
140
143
|
|
|
141
144
|
### 使用例
|
|
142
145
|
|
|
143
|
-
|
|
146
|
+
**ドキュメントを生成または更新します:**
|
|
144
147
|
|
|
145
148
|
```bash
|
|
146
149
|
aigne doc generate
|
|
147
150
|
```
|
|
148
151
|
|
|
149
|
-
|
|
152
|
+
**すべてのドキュメントの完全な再生成を強制します:**
|
|
150
153
|
|
|
151
154
|
```bash
|
|
152
155
|
aigne doc generate --forceRegenerate
|
|
153
156
|
```
|
|
154
157
|
|
|
155
|
-
|
|
158
|
+
**フィードバックを反映してドキュメント構造を改良します:**
|
|
156
159
|
|
|
157
160
|
```bash
|
|
158
161
|
aigne doc generate --feedback "APIの例のセクションを新しく追加し、「概要」ページを削除してください。"
|
|
159
162
|
```
|
|
160
163
|
|
|
161
|
-
|
|
164
|
+
**特定のモデルを使用して生成します:**
|
|
162
165
|
|
|
163
166
|
```bash
|
|
164
167
|
aigne doc generate --model openai:gpt-4o
|
|
@@ -168,59 +171,63 @@ aigne doc generate --model openai:gpt-4o
|
|
|
168
171
|
|
|
169
172
|
## `aigne doc update`
|
|
170
173
|
|
|
171
|
-
|
|
174
|
+
特定のドキュメントを最適化し、再生成します。対話形式で実行してドキュメントを選択するか、オプションで直接指定できます。これは、プロジェクト全体を再生成することなく、フィードバックに基づいて的を絞った改善を行うのに役立ちます。
|
|
175
|
+
|
|
176
|
+

|
|
172
177
|
|
|
173
178
|
### オプション
|
|
174
179
|
|
|
175
|
-
| オプション
|
|
176
|
-
|
|
|
177
|
-
| `--docs`
|
|
178
|
-
| `--feedback` | string | 選択したドキュメントのコンテンツを改善するための具体的なフィードバックを提供します。
|
|
180
|
+
| オプション | タイプ | 説明 |
|
|
181
|
+
| :--------- | :---- | :-------------------------------------------------------------------------- |
|
|
182
|
+
| `--docs` | array | 再生成するドキュメントのパスのリスト。複数回指定できます。 |
|
|
183
|
+
| `--feedback` | string | 選択したドキュメントのコンテンツを改善するための具体的なフィードバックを提供します。 |
|
|
179
184
|
|
|
180
185
|
### 使用例
|
|
181
186
|
|
|
182
|
-
|
|
187
|
+
**対話セッションを開始して更新するドキュメントを選択します:**
|
|
183
188
|
|
|
184
189
|
```bash
|
|
185
190
|
aigne doc update
|
|
186
191
|
```
|
|
187
192
|
|
|
188
|
-
|
|
193
|
+
**特定のドキュメントを的を絞ったフィードバックで更新します:**
|
|
189
194
|
|
|
190
195
|
```bash
|
|
191
|
-
aigne doc update --docs /overview
|
|
196
|
+
aigne doc update --docs /overview --feedback "より詳細なFAQ項目を追加してください"
|
|
192
197
|
```
|
|
193
198
|
|
|
194
199
|
---
|
|
195
200
|
|
|
196
201
|
## `aigne doc translate`
|
|
197
202
|
|
|
198
|
-
既存のドキュメントを1
|
|
203
|
+
既存のドキュメントを1つ以上の言語に翻訳します。対話形式で実行してドキュメントや言語を選択することも、引数として指定して非対話形式で実行することもできます。
|
|
204
|
+
|
|
205
|
+

|
|
199
206
|
|
|
200
207
|
### オプション
|
|
201
208
|
|
|
202
|
-
| オプション
|
|
203
|
-
|
|
|
204
|
-
| `--docs`
|
|
205
|
-
| `--langs`
|
|
206
|
-
| `--feedback`
|
|
207
|
-
| `--glossary`
|
|
209
|
+
| オプション | タイプ | 説明 |
|
|
210
|
+
| :--------- | :---- | :----------------------------------------------------------------------------------- |
|
|
211
|
+
| `--docs` | array | 翻訳するドキュメントのパスのリスト。複数回指定できます。 |
|
|
212
|
+
| `--langs` | array | 翻訳先の言語コードのリスト(例:`zh-CN`、`ja`)。複数回指定できます。 |
|
|
213
|
+
| `--feedback` | string | 翻訳の質を向上させるためのフィードバックを提供します。 |
|
|
214
|
+
| `--glossary` | string | 言語間で一貫した用語を確保するための用語集ファイルへのパス。`@path/to/glossary.md`を使用します。 |
|
|
208
215
|
|
|
209
216
|
### 使用例
|
|
210
217
|
|
|
211
|
-
|
|
218
|
+
**対話式の翻訳セッションを開始します:**
|
|
212
219
|
|
|
213
220
|
```bash
|
|
214
221
|
aigne doc translate
|
|
215
222
|
```
|
|
216
223
|
|
|
217
|
-
|
|
224
|
+
**特定のドキュメントを中国語と日本語に翻訳します:**
|
|
218
225
|
|
|
219
226
|
```bash
|
|
220
|
-
aigne doc translate --langs zh-CN --langs ja --docs /features/generate-documentation
|
|
227
|
+
aigne doc translate --langs zh-CN --langs ja --docs /features/generate-documentation --docs /overview
|
|
221
228
|
```
|
|
222
229
|
|
|
223
|
-
|
|
230
|
+
**用語集とフィードバックを使用して翻訳品質を向上させます:**
|
|
224
231
|
|
|
225
232
|
```bash
|
|
226
233
|
aigne doc translate --glossary @glossary.md --feedback "技術用語を一貫して使用してください"
|
|
@@ -232,21 +239,23 @@ aigne doc translate --glossary @glossary.md --feedback "技術用語を一貫し
|
|
|
232
239
|
|
|
233
240
|
ドキュメントを公開し、共有可能なリンクを生成します。このコマンドは、コンテンツをDiscuss Kitインスタンスにアップロードします。公式のAIGNE DocSmithプラットフォームを使用するか、独自の[Discuss Kit](https://www.web3kit.rocks/discuss-kit)インスタンスを実行できます。
|
|
234
241
|
|
|
242
|
+

|
|
243
|
+
|
|
235
244
|
### オプション
|
|
236
245
|
|
|
237
|
-
| オプション
|
|
238
|
-
|
|
|
239
|
-
| `--appUrl` | string | セルフホストしている
|
|
246
|
+
| オプション | タイプ | 説明 |
|
|
247
|
+
| :------- | :----- | :------------------------------------------------------------------------------------------------------ |
|
|
248
|
+
| `--appUrl` | string | セルフホストしているDiscuss KitインスタンスのURL。指定しない場合、コマンドは対話形式で実行されます。 |
|
|
240
249
|
|
|
241
250
|
### 使用例
|
|
242
251
|
|
|
243
|
-
|
|
252
|
+
**対話式の公開セッションを開始します:**
|
|
244
253
|
|
|
245
254
|
```bash
|
|
246
255
|
aigne doc publish
|
|
247
256
|
```
|
|
248
257
|
|
|
249
|
-
|
|
258
|
+
**セルフホストのインスタンスに直接公開します:**
|
|
250
259
|
|
|
251
260
|
```bash
|
|
252
261
|
aigne doc publish --appUrl https://your-discuss-kit-instance.com
|
|
@@ -256,25 +265,46 @@ aigne doc publish --appUrl https://your-discuss-kit-instance.com
|
|
|
256
265
|
|
|
257
266
|
## `aigne doc prefs`
|
|
258
267
|
|
|
259
|
-
|
|
268
|
+
ユーザー設定とフィードバックに基づくルールを管理します。DocSmithは時間とともにフィードバックから学習し、永続的な設定を作成します。このコマンドを使用すると、これらの学習済みルールを表示、切り替え、または削除できます。
|
|
269
|
+
|
|
270
|
+
### オプション
|
|
271
|
+
|
|
272
|
+
| オプション | タイプ | 説明 |
|
|
273
|
+
| :------- | :------ | :------------------------------------------------------------------------- |
|
|
274
|
+
| `--list` | boolean | 保存されているすべての設定を一覧表示します。 |
|
|
275
|
+
| `--remove` | boolean | 対話形式で1つ以上の設定を選択して削除するように促します。 |
|
|
276
|
+
| `--toggle` | boolean | 対話形式で設定を選択し、その有効状態を切り替えるように促します。 |
|
|
277
|
+
| `--id` | array | 直接削除または切り替える1つ以上の設定IDを指定します。 |
|
|
260
278
|
|
|
261
279
|
### 使用例
|
|
262
280
|
|
|
263
|
-
|
|
281
|
+
**保存されているすべての設定を一覧表示します:**
|
|
282
|
+
|
|
283
|
+
```bash
|
|
284
|
+
aigne doc prefs --list
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
**対話式の削除モードを開始します:**
|
|
288
|
+
|
|
289
|
+
```bash
|
|
290
|
+
aigne doc prefs --remove
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
**IDで特定の設定を切り替えます:**
|
|
264
294
|
|
|
265
295
|
```bash
|
|
266
|
-
aigne doc prefs
|
|
296
|
+
aigne doc prefs --toggle --id "pref_2a1dfe2b09695aab"
|
|
267
297
|
```
|
|
268
298
|
|
|
269
299
|
---
|
|
270
300
|
|
|
271
301
|
## `aigne doc clear`
|
|
272
302
|
|
|
273
|
-
|
|
303
|
+
ローカルに保存されたデータを消去するための対話セッションを起動します。これを使用して、生成されたドキュメント、ドキュメント構造の設定、またはキャッシュされた認証トークンを削除できます。
|
|
274
304
|
|
|
275
305
|
### 使用例
|
|
276
306
|
|
|
277
|
-
|
|
307
|
+
**対話式のクリーンアッププロセスを開始します:**
|
|
278
308
|
|
|
279
309
|
```bash
|
|
280
310
|
aigne doc clear
|
package/docs/cli-reference.md
CHANGED
|
@@ -4,7 +4,7 @@ This guide provides a comprehensive reference for all available `aigne doc` sub-
|
|
|
4
4
|
|
|
5
5
|
The general syntax is:
|
|
6
6
|
|
|
7
|
-
```bash command
|
|
7
|
+
```bash command icon=lucide:terminal
|
|
8
8
|
aigne doc <command> [options]
|
|
9
9
|
```
|
|
10
10
|
|
|
@@ -73,7 +73,7 @@ Utilities: {
|
|
|
73
73
|
grid-columns: 2
|
|
74
74
|
|
|
75
75
|
prefs: {
|
|
76
|
-
label: "
|
|
76
|
+
label: "Manage Prefs\n`aigne doc prefs`"
|
|
77
77
|
shape: rectangle
|
|
78
78
|
}
|
|
79
79
|
clear: {
|
|
@@ -121,6 +121,7 @@ Manually starts the interactive configuration wizard. This is useful for setting
|
|
|
121
121
|
```bash
|
|
122
122
|
aigne doc init
|
|
123
123
|
```
|
|
124
|
+

|
|
124
125
|
|
|
125
126
|
For more details on how to tailor DocSmith to your needs, see the [Configuration Guide](./configuration.md).
|
|
126
127
|
|
|
@@ -130,13 +131,15 @@ For more details on how to tailor DocSmith to your needs, see the [Configuration
|
|
|
130
131
|
|
|
131
132
|
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 (`aigne doc init`).
|
|
132
133
|
|
|
134
|
+

|
|
135
|
+
|
|
133
136
|
### Options
|
|
134
137
|
|
|
135
|
-
| Option | Type | Description
|
|
136
|
-
|
|
|
137
|
-
| `--forceRegenerate` | boolean | Discards existing content and regenerates all documentation from scratch.
|
|
138
|
-
| `--feedback` | string | Provides feedback to adjust and refine the overall documentation structure.
|
|
139
|
-
| `--model` | string | Specifies a particular large language model to use for generation (e.g., `
|
|
138
|
+
| Option | Type | Description |
|
|
139
|
+
| :------------------ | :------ | :------------------------------------------------------------------------------------------------------- |
|
|
140
|
+
| `--forceRegenerate` | boolean | Discards existing content and regenerates all documentation from scratch. |
|
|
141
|
+
| `--feedback` | string | Provides feedback to adjust and refine the overall documentation structure. |
|
|
142
|
+
| `--model` | string | Specifies a particular large language model to use for generation (e.g., `openai:gpt-4o`). Overrides the default. |
|
|
140
143
|
|
|
141
144
|
### Usage Examples
|
|
142
145
|
|
|
@@ -170,12 +173,14 @@ aigne doc generate --model openai:gpt-4o
|
|
|
170
173
|
|
|
171
174
|
Optimizes and regenerates specific documents. You can run it interactively to select documents or specify them directly with options. This is useful for making targeted improvements based on feedback without regenerating the entire project.
|
|
172
175
|
|
|
176
|
+

|
|
177
|
+
|
|
173
178
|
### Options
|
|
174
179
|
|
|
175
|
-
| Option | Type | Description
|
|
176
|
-
|
|
|
177
|
-
| `--docs` | array | A list of document paths to regenerate. Can be specified multiple times.
|
|
178
|
-
| `--feedback` | string
|
|
180
|
+
| Option | Type | Description |
|
|
181
|
+
| :--------- | :---- | :-------------------------------------------------------------------------- |
|
|
182
|
+
| `--docs` | array | A list of document paths to regenerate. Can be specified multiple times. |
|
|
183
|
+
| `--feedback` | string | Provides specific feedback to improve the content of the selected document(s). |
|
|
179
184
|
|
|
180
185
|
### Usage Examples
|
|
181
186
|
|
|
@@ -188,7 +193,7 @@ aigne doc update
|
|
|
188
193
|
**Update a specific document with targeted feedback:**
|
|
189
194
|
|
|
190
195
|
```bash
|
|
191
|
-
aigne doc update --docs /overview
|
|
196
|
+
aigne doc update --docs /overview --feedback "Add more detailed FAQ entries"
|
|
192
197
|
```
|
|
193
198
|
|
|
194
199
|
---
|
|
@@ -197,14 +202,16 @@ aigne doc update --docs /overview.md --feedback "Add more detailed FAQ entries"
|
|
|
197
202
|
|
|
198
203
|
Translates existing documentation into one or more languages. It can be run interactively to select documents and languages, or non-interactively by specifying them as arguments.
|
|
199
204
|
|
|
205
|
+

|
|
206
|
+
|
|
200
207
|
### Options
|
|
201
208
|
|
|
202
|
-
| Option
|
|
203
|
-
|
|
|
204
|
-
| `--docs`
|
|
205
|
-
| `--langs`
|
|
206
|
-
| `--feedback`
|
|
207
|
-
| `--glossary`
|
|
209
|
+
| Option | Type | Description |
|
|
210
|
+
| :--------- | :---- | :----------------------------------------------------------------------------------- |
|
|
211
|
+
| `--docs` | array | A list of document paths to translate. Can be specified multiple times. |
|
|
212
|
+
| `--langs` | array | A list of target language codes (e.g., `zh-CN`, `ja`). Can be specified multiple times. |
|
|
213
|
+
| `--feedback` | string | Provides feedback to improve the quality of the translation. |
|
|
214
|
+
| `--glossary` | string | Path to a glossary file to ensure consistent terminology across languages. Use `@path/to/glossary.md`. |
|
|
208
215
|
|
|
209
216
|
### Usage Examples
|
|
210
217
|
|
|
@@ -217,7 +224,7 @@ aigne doc translate
|
|
|
217
224
|
**Translate specific documents into Chinese and Japanese:**
|
|
218
225
|
|
|
219
226
|
```bash
|
|
220
|
-
aigne doc translate --langs zh-CN --langs ja --docs /features/generate-documentation
|
|
227
|
+
aigne doc translate --langs zh-CN --langs ja --docs /features/generate-documentation --docs /overview
|
|
221
228
|
```
|
|
222
229
|
|
|
223
230
|
**Translate with a glossary and feedback for improved quality:**
|
|
@@ -232,10 +239,12 @@ aigne doc translate --glossary @glossary.md --feedback "Use technical terminolog
|
|
|
232
239
|
|
|
233
240
|
Publishes your documentation and generates a shareable link. This command uploads your content to a Discuss Kit instance. You can use the official AIGNE DocSmith platform or run your own instance of [Discuss Kit](https://www.web3kit.rocks/discuss-kit).
|
|
234
241
|
|
|
242
|
+

|
|
243
|
+
|
|
235
244
|
### Options
|
|
236
245
|
|
|
237
|
-
| Option
|
|
238
|
-
|
|
|
246
|
+
| Option | Type | Description |
|
|
247
|
+
| :------- | :----- | :------------------------------------------------------------------------------------------------------ |
|
|
239
248
|
| `--appUrl` | string | The URL of your self-hosted Discuss Kit instance. If not provided, the command runs interactively. |
|
|
240
249
|
|
|
241
250
|
### Usage Examples
|
|
@@ -256,14 +265,35 @@ aigne doc publish --appUrl https://your-discuss-kit-instance.com
|
|
|
256
265
|
|
|
257
266
|
## `aigne doc prefs`
|
|
258
267
|
|
|
259
|
-
|
|
268
|
+
Manages user preferences and feedback-driven rules. Over time, DocSmith learns from your feedback and creates persistent preferences. This command allows you to view, toggle, or remove these learned rules.
|
|
260
269
|
|
|
261
|
-
###
|
|
270
|
+
### Options
|
|
271
|
+
|
|
272
|
+
| Option | Type | Description |
|
|
273
|
+
| :------- | :------ | :------------------------------------------------------------------------- |
|
|
274
|
+
| `--list` | boolean | Lists all saved preferences. |
|
|
275
|
+
| `--remove` | boolean | Interactively prompts to select and remove one or more preferences. |
|
|
276
|
+
| `--toggle` | boolean | Interactively prompts to select and toggle the active state of preferences. |
|
|
277
|
+
| `--id` | array | Specifies one or more preference IDs to remove or toggle directly. |
|
|
278
|
+
|
|
279
|
+
### Usage Examples
|
|
262
280
|
|
|
263
|
-
**
|
|
281
|
+
**List all saved preferences:**
|
|
264
282
|
|
|
265
283
|
```bash
|
|
266
|
-
aigne doc prefs
|
|
284
|
+
aigne doc prefs --list
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
**Start interactive removal mode:**
|
|
288
|
+
|
|
289
|
+
```bash
|
|
290
|
+
aigne doc prefs --remove
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
**Toggle a specific preference by ID:**
|
|
294
|
+
|
|
295
|
+
```bash
|
|
296
|
+
aigne doc prefs --toggle --id "pref_2a1dfe2b09695aab"
|
|
267
297
|
```
|
|
268
298
|
|
|
269
299
|
---
|
|
@@ -278,4 +308,4 @@ Launches an interactive session to clear locally stored data. This can be used t
|
|
|
278
308
|
|
|
279
309
|
```bash
|
|
280
310
|
aigne doc clear
|
|
281
|
-
```
|
|
311
|
+
```
|