@aigne/doc-smith 0.8.11-beta.6 → 0.8.11

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.
Files changed (116) hide show
  1. package/.aigne/doc-smith/config.yaml +2 -0
  2. package/.aigne/doc-smith/output/structure-plan.json +2 -2
  3. package/.aigne/doc-smith/preferences.yml +28 -20
  4. package/.aigne/doc-smith/upload-cache.yaml +702 -0
  5. package/.release-please-manifest.json +1 -1
  6. package/CHANGELOG.md +20 -0
  7. package/README.md +1 -1
  8. package/agents/generate/document-structure-tools/add-document.mjs +35 -10
  9. package/agents/generate/document-structure-tools/delete-document.mjs +35 -12
  10. package/agents/generate/document-structure-tools/move-document.mjs +43 -17
  11. package/agents/generate/document-structure-tools/update-document.mjs +37 -10
  12. package/agents/generate/update-document-structure.yaml +1 -7
  13. package/agents/generate/user-review-document-structure.mjs +5 -4
  14. package/agents/translate/translate-document.yaml +1 -9
  15. package/agents/update/check-update-is-single.mjs +2 -1
  16. package/agents/update/document-tools/update-document-content.mjs +24 -14
  17. package/agents/update/fs-tools/glob.mjs +184 -0
  18. package/agents/update/fs-tools/grep.mjs +317 -0
  19. package/agents/update/fs-tools/read-file.mjs +307 -0
  20. package/agents/update/generate-document.yaml +4 -7
  21. package/agents/update/update-document-detail.yaml +6 -10
  22. package/agents/update/user-review-document.mjs +13 -13
  23. package/assets/screenshots/doc-complete-setup.png +0 -0
  24. package/assets/screenshots/doc-generate-docs.png +0 -0
  25. package/assets/screenshots/doc-generate.png +0 -0
  26. package/assets/screenshots/doc-generated-successfully.png +0 -0
  27. package/assets/screenshots/doc-publish.png +0 -0
  28. package/assets/screenshots/doc-regenerate.png +0 -0
  29. package/assets/screenshots/doc-translate-langs.png +0 -0
  30. package/assets/screenshots/doc-translate.png +0 -0
  31. package/assets/screenshots/doc-update.png +0 -0
  32. package/docs/advanced-how-it-works.ja.md +31 -31
  33. package/docs/advanced-how-it-works.md +9 -9
  34. package/docs/advanced-how-it-works.zh-TW.md +24 -24
  35. package/docs/advanced-how-it-works.zh.md +20 -20
  36. package/docs/advanced-quality-assurance.ja.md +57 -61
  37. package/docs/advanced-quality-assurance.md +57 -61
  38. package/docs/advanced-quality-assurance.zh-TW.md +57 -61
  39. package/docs/advanced-quality-assurance.zh.md +57 -61
  40. package/docs/advanced.ja.md +8 -4
  41. package/docs/advanced.md +7 -3
  42. package/docs/advanced.zh-TW.md +9 -5
  43. package/docs/advanced.zh.md +9 -5
  44. package/docs/changelog.ja.md +206 -29
  45. package/docs/changelog.md +177 -0
  46. package/docs/changelog.zh-TW.md +229 -52
  47. package/docs/changelog.zh.md +204 -27
  48. package/docs/cli-reference.ja.md +82 -52
  49. package/docs/cli-reference.md +56 -26
  50. package/docs/cli-reference.zh-TW.md +82 -52
  51. package/docs/cli-reference.zh.md +70 -40
  52. package/docs/configuration-interactive-setup.ja.md +45 -42
  53. package/docs/configuration-interactive-setup.md +8 -5
  54. package/docs/configuration-interactive-setup.zh-TW.md +26 -23
  55. package/docs/configuration-interactive-setup.zh.md +25 -22
  56. package/docs/configuration-language-support.ja.md +33 -63
  57. package/docs/configuration-language-support.md +32 -62
  58. package/docs/configuration-language-support.zh-TW.md +35 -65
  59. package/docs/configuration-language-support.zh.md +32 -62
  60. package/docs/configuration-llm-setup.ja.md +25 -23
  61. package/docs/configuration-llm-setup.md +20 -18
  62. package/docs/configuration-llm-setup.zh-TW.md +21 -19
  63. package/docs/configuration-llm-setup.zh.md +20 -18
  64. package/docs/configuration-preferences.ja.md +67 -52
  65. package/docs/configuration-preferences.md +56 -41
  66. package/docs/configuration-preferences.zh-TW.md +69 -54
  67. package/docs/configuration-preferences.zh.md +68 -53
  68. package/docs/configuration.ja.md +65 -81
  69. package/docs/configuration.md +19 -35
  70. package/docs/configuration.zh-TW.md +62 -79
  71. package/docs/configuration.zh.md +50 -67
  72. package/docs/features-generate-documentation.ja.md +44 -69
  73. package/docs/features-generate-documentation.md +36 -61
  74. package/docs/features-generate-documentation.zh-TW.md +42 -67
  75. package/docs/features-generate-documentation.zh.md +41 -67
  76. package/docs/features-publish-your-docs.ja.md +36 -36
  77. package/docs/features-publish-your-docs.md +2 -2
  78. package/docs/features-publish-your-docs.zh-TW.md +21 -21
  79. package/docs/features-publish-your-docs.zh.md +23 -23
  80. package/docs/features-translate-documentation.ja.md +40 -31
  81. package/docs/features-translate-documentation.md +15 -6
  82. package/docs/features-translate-documentation.zh-TW.md +37 -28
  83. package/docs/features-translate-documentation.zh.md +23 -14
  84. package/docs/features-update-and-refine.ja.md +68 -118
  85. package/docs/features-update-and-refine.md +58 -108
  86. package/docs/features-update-and-refine.zh-TW.md +67 -116
  87. package/docs/features-update-and-refine.zh.md +64 -114
  88. package/docs/features.ja.md +29 -19
  89. package/docs/features.md +25 -15
  90. package/docs/features.zh-TW.md +28 -18
  91. package/docs/features.zh.md +31 -21
  92. package/docs/getting-started.ja.md +40 -43
  93. package/docs/getting-started.md +36 -39
  94. package/docs/getting-started.zh-TW.md +38 -41
  95. package/docs/getting-started.zh.md +45 -48
  96. package/docs/overview.ja.md +63 -11
  97. package/docs/overview.md +60 -8
  98. package/docs/overview.zh-TW.md +67 -15
  99. package/docs/overview.zh.md +62 -10
  100. package/media.md +9 -9
  101. package/package.json +1 -1
  102. package/prompts/detail/custom/custom-components.md +304 -188
  103. package/prompts/detail/document-rules.md +4 -4
  104. package/prompts/detail/generate-document.md +21 -8
  105. package/prompts/detail/update-document.md +8 -12
  106. package/prompts/structure/update-document-structure.md +12 -8
  107. package/prompts/utils/feedback-refiner.md +3 -3
  108. package/tests/agents/generate/document-structure-tools/move-document.test.mjs +9 -9
  109. package/tests/agents/generate/user-review-document-structure.test.mjs +29 -8
  110. package/tests/agents/update/document-tools/update-document-content.test.mjs +115 -112
  111. package/tests/agents/update/fs-tools/glob.test.mjs +438 -0
  112. package/tests/agents/update/fs-tools/grep.test.mjs +279 -0
  113. package/tests/agents/update/fs-tools/read-file.test.mjs +553 -0
  114. package/tests/agents/update/user-review-document.test.mjs +48 -27
  115. package/types/document-schema.mjs +5 -6
  116. package/types/document-structure-schema.mjs +20 -8
@@ -1,16 +1,16 @@
1
- # CLI コマンドリファレンス
1
+ # CLIコマンドリファレンス
2
2
 
3
- このガイドは、利用可能なすべての `aigne doc` サブコマンド、その引数、およびオプションに関する包括的なリファレンスを提供します。コマンドラインインターフェースを最大限に活用したいユーザーを対象としています。
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: "設定の表示\n`aigne doc prefs`"
76
+ label: "設定管理\n`aigne doc prefs`"
77
77
  shape: rectangle
78
78
  }
79
79
  clear: {
80
- label: "データのクリア\n`aigne doc clear`"
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
+ ![対話型セットアップウィザード完了のスクリーンショット。](../assets/screenshots/doc-complete-setup.png)
124
125
 
125
126
  DocSmithをニーズに合わせて調整する方法の詳細については、[設定ガイド](./configuration.md)を参照してください。
126
127
 
@@ -128,37 +129,39 @@ DocSmithをニーズに合わせて調整する方法の詳細については、
128
129
 
129
130
  ## `aigne doc generate`
130
131
 
131
- ソースコードを分析し、設定に基づいてドキュメントの完全なセットを生成します。設定が見つからない場合は、対話式の設​​定ウィザード (`aigne doc init`) が自動的に起動します。
132
+ ソースコードを分析し、設定に基づいて完全なドキュメントセットを生成します。設定が見つからない場合は、自動的に対話式のセットアップウィザード(`aigne doc init`)を起動します。
133
+
134
+ ![generateコマンド実行中のスクリーンショット。](../assets/screenshots/doc-generate.png)
132
135
 
133
136
  ### オプション
134
137
 
135
- | オプション | タイプ | 説明 |
136
- | ------------------- | ------- | ------------------------------------------------------------------------------------------------------------- |
137
- | `--forceRegenerate` | boolean | 既存のコンテンツを破棄し、すべてのドキュメントを最初から再生成します。 |
138
- | `--feedback` | string | ドキュメント全体の構造を調整および改良するためのフィードバックを提供します。 |
139
- | `--model` | string | 生成に使用する特定の言語モデルを指定します (例: `anthropic:claude-3-5-sonnet`)。デフォルトを上書きします。 |
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
+ ![updateコマンド実行中のスクリーンショット。](../assets/screenshots/doc-update.png)
172
177
 
173
178
  ### オプション
174
179
 
175
- | オプション | タイプ | 説明 |
176
- | ---------- | ----- | ------------------------------------------------------------------------------------------- |
177
- | `--docs` | array | 再生成するドキュメントパスのリスト。複数回指定できます。 |
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.md --feedback "より詳細なFAQ項目を追加してください"
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
+ ![translateコマンド実行中のスクリーンショット。](../assets/screenshots/doc-translate.png)
199
206
 
200
207
  ### オプション
201
208
 
202
- | オプション | タイプ | 説明 |
203
- | ------------ | ----- | ---------------------------------------------------------------------------------------------------------- |
204
- | `--docs` | array | 翻訳するドキュメントパスのリスト。複数回指定できます。 |
205
- | `--langs` | array | ターゲット言語コードのリスト (例: `zh-CN`, `ja`)。複数回指定できます。 |
206
- | `--feedback` | string | 翻訳の品質を向上させるためのフィードバックを提供します。 |
207
- | `--glossary` | string | 言語間で一貫した用語を確保するための用語集ファイルへのパス。`@path/to/glossary.md` を使用します。 |
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.md --docs /overview.md
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
+ ![publishコマンド実行中のスクリーンショット。](../assets/screenshots/doc-publish.png)
243
+
235
244
  ### オプション
236
245
 
237
- | オプション | タイプ | 説明 |
238
- | ---------- | ------ | ---------------------------------------------------------------------------------------------------- |
239
- | `--appUrl` | string | セルフホストしている Discuss Kit インスタンスの URL。指定しない場合、コマンドは対話形式で実行されます。 |
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
- プロジェクトの現在の設定を表示します。これは読み取り専用のコマンドで、`init` または `generate` プロセス中に適用された設定を確認するのに役立ちます。
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
@@ -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: "View Config\n`aigne doc prefs`"
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
+ ![Screenshot of the interactive setup wizard completion.](../assets/screenshots/doc-complete-setup.png)
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
+ ![Screenshot of the generate command running.](../assets/screenshots/doc-generate.png)
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., `anthropic:claude-3-5-sonnet`). Overrides the default. |
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
+ ![Screenshot of the update command running.](../assets/screenshots/doc-update.png)
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 | Provides specific feedback to improve the content of the selected document(s). |
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.md --feedback "Add more detailed FAQ entries"
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
+ ![Screenshot of the translate command running.](../assets/screenshots/doc-translate.png)
206
+
200
207
  ### Options
201
208
 
202
- | Option | Type | Description |
203
- | ------------ | ----- | ---------------------------------------------------------------------------------------------------------- |
204
- | `--docs` | array | A list of document paths to translate. Can be specified multiple times. |
205
- | `--langs` | array | A list of target language codes (e.g., `zh-CN`, `ja`). Can be specified multiple times. |
206
- | `--feedback` | string | Provides feedback to improve the quality of the translation. |
207
- | `--glossary` | string | Path to a glossary file to ensure consistent terminology across languages. Use `@path/to/glossary.md`. |
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.md --docs /overview.md
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
+ ![Screenshot of the publish command running.](../assets/screenshots/doc-publish.png)
243
+
235
244
  ### Options
236
245
 
237
- | Option | Type | Description |
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
- Displays the current configuration settings for the project. This is a read-only command that helps you verify the settings applied during the `init` or `generate` process.
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
- ### Usage Example
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
- **View current project configuration:**
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
+ ```