@aigne/doc-smith 0.8.11-beta.5 → 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.
Files changed (159) hide show
  1. package/.aigne/doc-smith/config.yaml +3 -1
  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 +22 -2
  7. package/README.md +2 -2
  8. package/agents/clear/choose-contents.mjs +2 -2
  9. package/agents/clear/clear-document-structure.mjs +8 -8
  10. package/agents/clear/index.yaml +1 -1
  11. package/agents/evaluate/document-structure.yaml +1 -1
  12. package/agents/generate/check-document-structure.yaml +3 -3
  13. package/agents/generate/check-need-generate-structure.mjs +8 -8
  14. package/agents/generate/document-structure-tools/add-document.mjs +38 -13
  15. package/agents/generate/document-structure-tools/delete-document.mjs +37 -14
  16. package/agents/generate/document-structure-tools/move-document.mjs +46 -19
  17. package/agents/generate/document-structure-tools/update-document.mjs +39 -12
  18. package/agents/generate/generate-structure.yaml +1 -1
  19. package/agents/generate/update-document-structure.yaml +3 -9
  20. package/agents/generate/user-review-document-structure.mjs +15 -14
  21. package/agents/translate/translate-document.yaml +1 -9
  22. package/agents/update/batch-generate-document.yaml +1 -1
  23. package/agents/update/check-document.mjs +2 -2
  24. package/agents/update/check-update-is-single.mjs +2 -1
  25. package/agents/update/document-tools/update-document-content.mjs +24 -14
  26. package/agents/update/fs-tools/glob.mjs +184 -0
  27. package/agents/update/fs-tools/grep.mjs +317 -0
  28. package/agents/update/fs-tools/read-file.mjs +307 -0
  29. package/agents/update/generate-document.yaml +4 -7
  30. package/agents/update/update-document-detail.yaml +6 -10
  31. package/agents/update/user-review-document.mjs +13 -13
  32. package/agents/utils/check-feedback-refiner.mjs +1 -1
  33. package/agents/utils/choose-docs.mjs +1 -1
  34. package/agents/utils/load-document-all-content.mjs +3 -3
  35. package/agents/utils/load-sources.mjs +1 -1
  36. package/agents/utils/save-docs.mjs +7 -28
  37. package/aigne.yaml +2 -2
  38. package/assets/screenshots/doc-complete-setup.png +0 -0
  39. package/assets/screenshots/doc-generate-docs.png +0 -0
  40. package/assets/screenshots/doc-generate.png +0 -0
  41. package/assets/screenshots/doc-generated-successfully.png +0 -0
  42. package/assets/screenshots/doc-publish.png +0 -0
  43. package/assets/screenshots/doc-regenerate.png +0 -0
  44. package/assets/screenshots/doc-translate-langs.png +0 -0
  45. package/assets/screenshots/doc-translate.png +0 -0
  46. package/assets/screenshots/doc-update.png +0 -0
  47. package/docs/_sidebar.md +1 -1
  48. package/docs/advanced-how-it-works.ja.md +31 -31
  49. package/docs/advanced-how-it-works.md +10 -10
  50. package/docs/advanced-how-it-works.zh-TW.md +24 -24
  51. package/docs/advanced-how-it-works.zh.md +20 -20
  52. package/docs/advanced-quality-assurance.ja.md +57 -61
  53. package/docs/advanced-quality-assurance.md +57 -61
  54. package/docs/advanced-quality-assurance.zh-TW.md +57 -61
  55. package/docs/advanced-quality-assurance.zh.md +57 -61
  56. package/docs/advanced.ja.md +8 -4
  57. package/docs/advanced.md +7 -3
  58. package/docs/advanced.zh-TW.md +9 -5
  59. package/docs/advanced.zh.md +9 -5
  60. package/docs/changelog.ja.md +206 -29
  61. package/docs/changelog.md +177 -0
  62. package/docs/changelog.zh-TW.md +229 -52
  63. package/docs/changelog.zh.md +204 -27
  64. package/docs/cli-reference.ja.md +181 -80
  65. package/docs/cli-reference.md +168 -67
  66. package/docs/cli-reference.zh-TW.md +177 -76
  67. package/docs/cli-reference.zh.md +172 -71
  68. package/docs/configuration-interactive-setup.ja.md +45 -42
  69. package/docs/configuration-interactive-setup.md +9 -6
  70. package/docs/configuration-interactive-setup.zh-TW.md +26 -23
  71. package/docs/configuration-interactive-setup.zh.md +25 -22
  72. package/docs/configuration-language-support.ja.md +33 -63
  73. package/docs/configuration-language-support.md +32 -62
  74. package/docs/configuration-language-support.zh-TW.md +35 -65
  75. package/docs/configuration-language-support.zh.md +32 -62
  76. package/docs/configuration-llm-setup.ja.md +25 -23
  77. package/docs/configuration-llm-setup.md +20 -18
  78. package/docs/configuration-llm-setup.zh-TW.md +21 -19
  79. package/docs/configuration-llm-setup.zh.md +20 -18
  80. package/docs/configuration-preferences.ja.md +67 -52
  81. package/docs/configuration-preferences.md +55 -40
  82. package/docs/configuration-preferences.zh-TW.md +69 -54
  83. package/docs/configuration-preferences.zh.md +68 -53
  84. package/docs/configuration.ja.md +98 -58
  85. package/docs/configuration.md +42 -2
  86. package/docs/configuration.zh-TW.md +86 -46
  87. package/docs/configuration.zh.md +76 -36
  88. package/docs/features-generate-documentation.ja.md +49 -55
  89. package/docs/features-generate-documentation.md +49 -55
  90. package/docs/features-generate-documentation.zh-TW.md +54 -60
  91. package/docs/features-generate-documentation.zh.md +48 -54
  92. package/docs/features-publish-your-docs.ja.md +68 -45
  93. package/docs/features-publish-your-docs.md +65 -42
  94. package/docs/features-publish-your-docs.zh-TW.md +74 -51
  95. package/docs/features-publish-your-docs.zh.md +67 -44
  96. package/docs/features-translate-documentation.ja.md +46 -35
  97. package/docs/features-translate-documentation.md +39 -28
  98. package/docs/features-translate-documentation.zh-TW.md +45 -34
  99. package/docs/features-translate-documentation.zh.md +39 -28
  100. package/docs/features-update-and-refine.ja.md +75 -71
  101. package/docs/features-update-and-refine.md +67 -63
  102. package/docs/features-update-and-refine.zh-TW.md +72 -67
  103. package/docs/features-update-and-refine.zh.md +71 -67
  104. package/docs/features.ja.md +29 -19
  105. package/docs/features.md +25 -15
  106. package/docs/features.zh-TW.md +28 -18
  107. package/docs/features.zh.md +31 -21
  108. package/docs/getting-started.ja.md +43 -46
  109. package/docs/getting-started.md +36 -39
  110. package/docs/getting-started.zh-TW.md +41 -44
  111. package/docs/getting-started.zh.md +39 -42
  112. package/docs/overview.ja.md +63 -11
  113. package/docs/overview.md +62 -10
  114. package/docs/overview.zh-TW.md +67 -15
  115. package/docs/overview.zh.md +62 -10
  116. package/docs-mcp/analyze-docs-relevance.yaml +6 -6
  117. package/docs-mcp/docs-search.yaml +1 -1
  118. package/media.md +9 -9
  119. package/package.json +2 -2
  120. package/prompts/common/document-structure/conflict-resolution-guidance.md +3 -3
  121. package/prompts/common/document-structure/document-structure-rules.md +2 -2
  122. package/prompts/detail/custom/custom-components.md +304 -188
  123. package/prompts/detail/document-rules.md +5 -5
  124. package/prompts/detail/generate-document.md +21 -8
  125. package/prompts/detail/update-document.md +8 -12
  126. package/prompts/evaluate/document-structure.md +6 -6
  127. package/prompts/structure/check-document-structure.md +10 -10
  128. package/prompts/structure/document-rules.md +2 -2
  129. package/prompts/structure/generate-structure-system.md +3 -3
  130. package/prompts/structure/structure-example.md +1 -1
  131. package/prompts/structure/structure-getting-started.md +1 -1
  132. package/prompts/structure/update-document-structure.md +18 -14
  133. package/prompts/utils/feedback-refiner.md +3 -3
  134. package/tests/agents/clear/choose-contents.test.mjs +1 -1
  135. package/tests/agents/clear/clear-document-structure.test.mjs +36 -30
  136. package/tests/agents/evaluate/generate-report.test.mjs +1 -1
  137. package/tests/agents/generate/check-need-generate-structure.test.mjs +1 -1
  138. package/tests/agents/generate/document-structure-tools/add-document.test.mjs +2 -2
  139. package/tests/agents/generate/document-structure-tools/delete-document.test.mjs +4 -4
  140. package/tests/agents/generate/document-structure-tools/move-document.test.mjs +12 -12
  141. package/tests/agents/generate/document-structure-tools/update-document.test.mjs +3 -3
  142. package/tests/agents/generate/user-review-document-structure.test.mjs +36 -13
  143. package/tests/agents/update/check-document.test.mjs +1 -1
  144. package/tests/agents/update/document-tools/update-document-content.test.mjs +115 -112
  145. package/tests/agents/update/fs-tools/glob.test.mjs +438 -0
  146. package/tests/agents/update/fs-tools/grep.test.mjs +279 -0
  147. package/tests/agents/update/fs-tools/read-file.test.mjs +553 -0
  148. package/tests/agents/update/user-review-document.test.mjs +48 -27
  149. package/tests/agents/utils/format-document-structure.test.mjs +5 -5
  150. package/tests/agents/utils/load-sources.test.mjs +4 -4
  151. package/tests/agents/utils/save-docs.test.mjs +1 -1
  152. package/tests/utils/conflict-detector.test.mjs +1 -1
  153. package/tests/utils/docs-finder-utils.test.mjs +8 -8
  154. package/types/document-schema.mjs +5 -6
  155. package/types/document-structure-schema.mjs +25 -13
  156. package/utils/conflict-detector.mjs +1 -1
  157. package/utils/constants/index.mjs +4 -4
  158. package/utils/docs-finder-utils.mjs +11 -11
  159. package/utils/markdown-checker.mjs +1 -1
@@ -1,82 +1,144 @@
1
1
  # CLI Command Reference
2
2
 
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.
3
+ This guide provides a comprehensive reference for all available `aigne doc` sub-commands, their arguments, and options. It is intended for users who want to utilize the command-line interface to its full potential.
4
4
 
5
5
  The general syntax is:
6
6
 
7
- ```bash
7
+ ```bash command icon=lucide:terminal
8
8
  aigne doc <command> [options]
9
9
  ```
10
10
 
11
11
  ### Command Workflow
12
12
 
13
- The following diagram illustrates the typical lifecycle of creating and maintaining documentation with DocSmith's CLI commands:
13
+ The following diagram illustrates the typical lifecycle of creating and maintaining documentation with DocSmith's CLI commands, along with the data they interact with.
14
14
 
15
15
  ```d2
16
16
  direction: down
17
17
 
18
- Start: {
19
- label: "Project Setup"
20
- shape: circle
18
+ # Artifacts
19
+ Source-Code: {
20
+ label: "Source Code"
21
+ shape: cylinder
21
22
  }
22
-
23
- init: {
24
- label: "aigne doc init\n(Interactive Setup)"
25
- shape: rectangle
23
+ Configuration: {
24
+ label: "Configuration\n(.aigne/doc-smith/config.yml)"
25
+ shape: cylinder
26
26
  }
27
-
28
- generate: {
29
- label: "aigne doc generate\n(Create/Update All Docs)"
30
- shape: rectangle
27
+ Generated-Docs: {
28
+ label: "Generated Docs"
29
+ shape: cylinder
30
+ }
31
+ Published-Docs: {
32
+ label: "Published Site"
33
+ shape: cylinder
31
34
  }
32
35
 
33
- refinement-cycle: {
34
- label: "Refinement Cycle"
35
- shape: rectangle
36
- grid-columns: 2
36
+ # --- Core Workflow ---
37
+ Lifecycle: {
38
+ label: "Documentation Lifecycle"
39
+
40
+ init: {
41
+ label: "1. Init\n`aigne doc init`"
42
+ shape: rectangle
43
+ }
37
44
 
38
- update: {
39
- label: "aigne doc update\n(Refine Single Doc)"
45
+ generate: {
46
+ label: "2. Generate\n`aigne doc generate`"
47
+ shape: rectangle
40
48
  }
41
- translate: {
42
- label: "aigne doc translate\n(Localize Content)"
49
+
50
+ Refinement: {
51
+ label: "3. Refine (Iterative)"
52
+ grid-columns: 2
53
+
54
+ update: {
55
+ label: "Update\n`aigne doc update`"
56
+ shape: rectangle
57
+ }
58
+ translate: {
59
+ label: "Translate\n`aigne doc translate`"
60
+ shape: rectangle
61
+ }
43
62
  }
44
- }
45
63
 
46
- publish: {
47
- label: "aigne doc publish\n(Deploy Docs)"
48
- shape: rectangle
64
+ publish: {
65
+ label: "4. Publish\n`aigne doc publish`"
66
+ shape: rectangle
67
+ }
49
68
  }
50
69
 
51
- End: {
52
- label: "Docs Live"
53
- shape: circle
54
- style.fill: "#a2eeaf"
70
+ # --- Utility Commands ---
71
+ Utilities: {
72
+ label: "Utility Commands"
73
+ grid-columns: 2
74
+
75
+ prefs: {
76
+ label: "Manage Prefs\n`aigne doc prefs`"
77
+ shape: rectangle
78
+ }
79
+ clear: {
80
+ label: "Clear Data\n`aigne doc clear`"
81
+ shape: rectangle
82
+ }
55
83
  }
56
84
 
57
- Start -> init: "Optional" {
85
+
86
+ # --- Connections ---
87
+
88
+ # Setup and Generation
89
+ Lifecycle.init -> Configuration: "Creates"
90
+ Source-Code -> Lifecycle.generate: "Reads"
91
+ Configuration -> Lifecycle.generate: "Reads"
92
+ Lifecycle.generate -> Generated-Docs: "Creates / Overwrites"
93
+ Lifecycle.generate -> Lifecycle.init: {
94
+ label: "Runs if no config"
58
95
  style.stroke-dash: 4
59
96
  }
60
- init -> generate: "Configure"
61
- Start -> generate: "Direct"
62
- generate -> refinement-cycle: "Refine"
63
- refinement-cycle -> publish: "Ready"
64
- generate -> publish: "Direct Deploy"
65
- publish -> End
97
+
98
+ # Refinement Loop
99
+ Generated-Docs <-> Lifecycle.Refinement: "Reads & Writes"
100
+
101
+ # Publishing
102
+ Lifecycle.Refinement -> Lifecycle.publish
103
+ Lifecycle.publish -> Published-Docs: "Uploads to"
104
+
105
+ # Utility Connections
106
+ Utilities.prefs -> Configuration: "Reads"
107
+ Utilities.clear -> Configuration: "Deletes"
108
+ Utilities.clear -> Generated-Docs: "Deletes"
66
109
  ```
67
110
 
68
111
  ---
69
112
 
113
+ ## `aigne doc init`
114
+
115
+ Manually starts the interactive configuration wizard. This is useful for setting up a new project or modifying the configuration of an existing one. The wizard guides you through defining source code paths, setting output directories, choosing languages, and defining the documentation's style and target audience.
116
+
117
+ ### Usage Example
118
+
119
+ **Launch the setup wizard:**
120
+
121
+ ```bash
122
+ aigne doc init
123
+ ```
124
+ ![Screenshot of the interactive setup wizard completion.](../assets/screenshots/doc-complete-setup.png)
125
+
126
+ For more details on how to tailor DocSmith to your needs, see the [Configuration Guide](./configuration.md).
127
+
128
+ ---
129
+
70
130
  ## `aigne doc generate`
71
131
 
72
- 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.
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`).
133
+
134
+ ![Screenshot of the generate command running.](../assets/screenshots/doc-generate.png)
73
135
 
74
136
  ### Options
75
137
 
76
- | Option | Type | Description |
77
- | ------------------- | ------- | ------------------------------------------------------------------------------------------------------------- |
78
- | `--feedback` | string | Provides feedback to adjust and refine the overall documentation structure. |
79
- | `--forceRegenerate` | boolean | Discards existing content and regenerates all documentation from scratch. |
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. |
80
142
  | `--model` | string | Specifies a particular large language model to use for generation (e.g., `openai:gpt-4o`). Overrides the default. |
81
143
 
82
144
  ### Usage Examples
@@ -93,16 +155,16 @@ aigne doc generate
93
155
  aigne doc generate --forceRegenerate
94
156
  ```
95
157
 
96
- **Refine the document structure with feedback:**
158
+ **Refine the documentation structure with feedback:**
97
159
 
98
160
  ```bash
99
161
  aigne doc generate --feedback "Add a new section for API examples and remove the 'About' page."
100
162
  ```
101
163
 
102
- **Generate using a specific model from AIGNE Hub:**
164
+ **Generate using a specific model:**
103
165
 
104
166
  ```bash
105
- aigne doc generate --model google:gemini-1.5-flash
167
+ aigne doc generate --model openai:gpt-4o
106
168
  ```
107
169
 
108
170
  ---
@@ -111,12 +173,14 @@ aigne doc generate --model google:gemini-1.5-flash
111
173
 
112
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.
113
175
 
176
+ ![Screenshot of the update command running.](../assets/screenshots/doc-update.png)
177
+
114
178
  ### Options
115
179
 
116
- | Option | Type | Description |
117
- | ---------- | ----- | ------------------------------------------------------------------------------------------- |
118
- | `--docs` | array | A list of document paths to regenerate. Can be used multiple times. |
119
- | `--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). |
120
184
 
121
185
  ### Usage Examples
122
186
 
@@ -129,7 +193,7 @@ aigne doc update
129
193
  **Update a specific document with targeted feedback:**
130
194
 
131
195
  ```bash
132
- aigne doc update --docs overview.md --feedback "Add more detailed FAQ entries"
196
+ aigne doc update --docs /overview --feedback "Add more detailed FAQ entries"
133
197
  ```
134
198
 
135
199
  ---
@@ -138,14 +202,16 @@ aigne doc update --docs overview.md --feedback "Add more detailed FAQ entries"
138
202
 
139
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.
140
204
 
205
+ ![Screenshot of the translate command running.](../assets/screenshots/doc-translate.png)
206
+
141
207
  ### Options
142
208
 
143
- | Option | Type | Description |
144
- | ------------ | ----- | ---------------------------------------------------------------------------------------------------------- |
145
- | `--docs` | array | A list of document paths to translate. Can be used multiple times. |
146
- | `--langs` | array | A list of target language codes (e.g., `zh`, `ja`). Can be used multiple times. |
147
- | `--feedback` | string | Provides feedback to improve the quality of the translation. |
148
- | `--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`. |
149
215
 
150
216
  ### Usage Examples
151
217
 
@@ -158,10 +224,10 @@ aigne doc translate
158
224
  **Translate specific documents into Chinese and Japanese:**
159
225
 
160
226
  ```bash
161
- aigne doc translate --langs zh --langs ja --docs examples.md --docs overview.md
227
+ aigne doc translate --langs zh-CN --langs ja --docs /features/generate-documentation --docs /overview
162
228
  ```
163
229
 
164
- **Translate with a glossary and feedback for better quality:**
230
+ **Translate with a glossary and feedback for improved quality:**
165
231
 
166
232
  ```bash
167
233
  aigne doc translate --glossary @glossary.md --feedback "Use technical terminology consistently"
@@ -171,12 +237,14 @@ aigne doc translate --glossary @glossary.md --feedback "Use technical terminolog
171
237
 
172
238
  ## `aigne doc publish`
173
239
 
174
- Publishes your generated documentation to a Discuss Kit platform. You can publish to the official AIGNE DocSmith platform or to your own self-hosted instance.
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).
241
+
242
+ ![Screenshot of the publish command running.](../assets/screenshots/doc-publish.png)
175
243
 
176
244
  ### Options
177
245
 
178
- | Option | Type | Description |
179
- | ---------- | ------ | ---------------------------------------------------------------------------------------------------- |
246
+ | Option | Type | Description |
247
+ | :------- | :----- | :------------------------------------------------------------------------------------------------------ |
180
248
  | `--appUrl` | string | The URL of your self-hosted Discuss Kit instance. If not provided, the command runs interactively. |
181
249
 
182
250
  ### Usage Examples
@@ -195,16 +263,49 @@ aigne doc publish --appUrl https://your-discuss-kit-instance.com
195
263
 
196
264
  ---
197
265
 
198
- ## `aigne doc init`
266
+ ## `aigne doc prefs`
199
267
 
200
- Manually starts the interactive configuration wizard. This is useful for setting up a new project or modifying the configuration of an existing one. The wizard guides you through defining source code paths, setting output directories, choosing languages, and defining the documentation's style and target audience.
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.
201
269
 
202
- ### Usage Example
270
+ ### Options
203
271
 
204
- **Launch the setup wizard:**
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
280
+
281
+ **List all saved preferences:**
205
282
 
206
283
  ```bash
207
- aigne doc init
284
+ aigne doc prefs --list
208
285
  ```
209
286
 
210
- For more details on how to tailor DocSmith to your needs, see the [Configuration Guide](./configuration.md).
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"
297
+ ```
298
+
299
+ ---
300
+
301
+ ## `aigne doc clear`
302
+
303
+ Launches an interactive session to clear locally stored data. This can be used to remove the generated documentation, the document structure configuration, or cached authentication tokens.
304
+
305
+ ### Usage Example
306
+
307
+ **Start the interactive cleanup process:**
308
+
309
+ ```bash
310
+ aigne doc clear
311
+ ```