@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.
- package/.aigne/doc-smith/config.yaml +3 -1
- 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 +22 -2
- package/README.md +2 -2
- package/agents/clear/choose-contents.mjs +2 -2
- package/agents/clear/clear-document-structure.mjs +8 -8
- package/agents/clear/index.yaml +1 -1
- package/agents/evaluate/document-structure.yaml +1 -1
- package/agents/generate/check-document-structure.yaml +3 -3
- package/agents/generate/check-need-generate-structure.mjs +8 -8
- package/agents/generate/document-structure-tools/add-document.mjs +38 -13
- package/agents/generate/document-structure-tools/delete-document.mjs +37 -14
- package/agents/generate/document-structure-tools/move-document.mjs +46 -19
- package/agents/generate/document-structure-tools/update-document.mjs +39 -12
- package/agents/generate/generate-structure.yaml +1 -1
- package/agents/generate/update-document-structure.yaml +3 -9
- package/agents/generate/user-review-document-structure.mjs +15 -14
- package/agents/translate/translate-document.yaml +1 -9
- package/agents/update/batch-generate-document.yaml +1 -1
- package/agents/update/check-document.mjs +2 -2
- 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/agents/utils/check-feedback-refiner.mjs +1 -1
- package/agents/utils/choose-docs.mjs +1 -1
- package/agents/utils/load-document-all-content.mjs +3 -3
- package/agents/utils/load-sources.mjs +1 -1
- package/agents/utils/save-docs.mjs +7 -28
- package/aigne.yaml +2 -2
- 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/_sidebar.md +1 -1
- package/docs/advanced-how-it-works.ja.md +31 -31
- package/docs/advanced-how-it-works.md +10 -10
- 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 +181 -80
- package/docs/cli-reference.md +168 -67
- package/docs/cli-reference.zh-TW.md +177 -76
- package/docs/cli-reference.zh.md +172 -71
- package/docs/configuration-interactive-setup.ja.md +45 -42
- package/docs/configuration-interactive-setup.md +9 -6
- 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 +55 -40
- package/docs/configuration-preferences.zh-TW.md +69 -54
- package/docs/configuration-preferences.zh.md +68 -53
- package/docs/configuration.ja.md +98 -58
- package/docs/configuration.md +42 -2
- package/docs/configuration.zh-TW.md +86 -46
- package/docs/configuration.zh.md +76 -36
- package/docs/features-generate-documentation.ja.md +49 -55
- package/docs/features-generate-documentation.md +49 -55
- package/docs/features-generate-documentation.zh-TW.md +54 -60
- package/docs/features-generate-documentation.zh.md +48 -54
- package/docs/features-publish-your-docs.ja.md +68 -45
- package/docs/features-publish-your-docs.md +65 -42
- package/docs/features-publish-your-docs.zh-TW.md +74 -51
- package/docs/features-publish-your-docs.zh.md +67 -44
- package/docs/features-translate-documentation.ja.md +46 -35
- package/docs/features-translate-documentation.md +39 -28
- package/docs/features-translate-documentation.zh-TW.md +45 -34
- package/docs/features-translate-documentation.zh.md +39 -28
- package/docs/features-update-and-refine.ja.md +75 -71
- package/docs/features-update-and-refine.md +67 -63
- package/docs/features-update-and-refine.zh-TW.md +72 -67
- package/docs/features-update-and-refine.zh.md +71 -67
- 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 +43 -46
- package/docs/getting-started.md +36 -39
- package/docs/getting-started.zh-TW.md +41 -44
- package/docs/getting-started.zh.md +39 -42
- package/docs/overview.ja.md +63 -11
- package/docs/overview.md +62 -10
- package/docs/overview.zh-TW.md +67 -15
- package/docs/overview.zh.md +62 -10
- package/docs-mcp/analyze-docs-relevance.yaml +6 -6
- package/docs-mcp/docs-search.yaml +1 -1
- package/media.md +9 -9
- package/package.json +2 -2
- package/prompts/common/document-structure/conflict-resolution-guidance.md +3 -3
- package/prompts/common/document-structure/document-structure-rules.md +2 -2
- package/prompts/detail/custom/custom-components.md +304 -188
- package/prompts/detail/document-rules.md +5 -5
- package/prompts/detail/generate-document.md +21 -8
- package/prompts/detail/update-document.md +8 -12
- package/prompts/evaluate/document-structure.md +6 -6
- package/prompts/structure/check-document-structure.md +10 -10
- package/prompts/structure/document-rules.md +2 -2
- package/prompts/structure/generate-structure-system.md +3 -3
- package/prompts/structure/structure-example.md +1 -1
- package/prompts/structure/structure-getting-started.md +1 -1
- package/prompts/structure/update-document-structure.md +18 -14
- package/prompts/utils/feedback-refiner.md +3 -3
- package/tests/agents/clear/choose-contents.test.mjs +1 -1
- package/tests/agents/clear/clear-document-structure.test.mjs +36 -30
- package/tests/agents/evaluate/generate-report.test.mjs +1 -1
- package/tests/agents/generate/check-need-generate-structure.test.mjs +1 -1
- package/tests/agents/generate/document-structure-tools/add-document.test.mjs +2 -2
- package/tests/agents/generate/document-structure-tools/delete-document.test.mjs +4 -4
- package/tests/agents/generate/document-structure-tools/move-document.test.mjs +12 -12
- package/tests/agents/generate/document-structure-tools/update-document.test.mjs +3 -3
- package/tests/agents/generate/user-review-document-structure.test.mjs +36 -13
- package/tests/agents/update/check-document.test.mjs +1 -1
- 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/tests/agents/utils/format-document-structure.test.mjs +5 -5
- package/tests/agents/utils/load-sources.test.mjs +4 -4
- package/tests/agents/utils/save-docs.test.mjs +1 -1
- package/tests/utils/conflict-detector.test.mjs +1 -1
- package/tests/utils/docs-finder-utils.test.mjs +8 -8
- package/types/document-schema.mjs +5 -6
- package/types/document-structure-schema.mjs +25 -13
- package/utils/conflict-detector.mjs +1 -1
- package/utils/constants/index.mjs +4 -4
- package/utils/docs-finder-utils.mjs +11 -11
- package/utils/markdown-checker.mjs +1 -1
package/docs/cli-reference.md
CHANGED
|
@@ -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
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
# Artifacts
|
|
19
|
+
Source-Code: {
|
|
20
|
+
label: "Source Code"
|
|
21
|
+
shape: cylinder
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
shape: rectangle
|
|
23
|
+
Configuration: {
|
|
24
|
+
label: "Configuration\n(.aigne/doc-smith/config.yml)"
|
|
25
|
+
shape: cylinder
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
39
|
-
label: "
|
|
45
|
+
generate: {
|
|
46
|
+
label: "2. Generate\n`aigne doc generate`"
|
|
47
|
+
shape: rectangle
|
|
40
48
|
}
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
48
|
-
|
|
64
|
+
publish: {
|
|
65
|
+
label: "4. Publish\n`aigne doc publish`"
|
|
66
|
+
shape: rectangle
|
|
67
|
+
}
|
|
49
68
|
}
|
|
50
69
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
-
|
|
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
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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
|
+

|
|
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
|
+

|
|
73
135
|
|
|
74
136
|
### Options
|
|
75
137
|
|
|
76
|
-
| Option | Type | Description
|
|
77
|
-
|
|
|
78
|
-
| `--
|
|
79
|
-
| `--
|
|
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
|
|
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
|
|
164
|
+
**Generate using a specific model:**
|
|
103
165
|
|
|
104
166
|
```bash
|
|
105
|
-
aigne doc generate --model
|
|
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
|
+

|
|
177
|
+
|
|
114
178
|
### Options
|
|
115
179
|
|
|
116
|
-
| Option | Type | Description
|
|
117
|
-
|
|
|
118
|
-
| `--docs` | array | A list of document paths to regenerate. Can be
|
|
119
|
-
| `--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). |
|
|
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
|
|
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
|
+

|
|
206
|
+
|
|
141
207
|
### Options
|
|
142
208
|
|
|
143
|
-
| Option
|
|
144
|
-
|
|
|
145
|
-
| `--docs`
|
|
146
|
-
| `--langs`
|
|
147
|
-
| `--feedback`
|
|
148
|
-
| `--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`. |
|
|
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
|
|
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
|
|
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
|
|
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
|
+

|
|
175
243
|
|
|
176
244
|
### Options
|
|
177
245
|
|
|
178
|
-
| Option
|
|
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
|
|
266
|
+
## `aigne doc prefs`
|
|
199
267
|
|
|
200
|
-
|
|
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
|
-
###
|
|
270
|
+
### Options
|
|
203
271
|
|
|
204
|
-
|
|
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
|
|
284
|
+
aigne doc prefs --list
|
|
208
285
|
```
|
|
209
286
|
|
|
210
|
-
|
|
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
|
+
```
|