@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
|
@@ -1,83 +1,145 @@
|
|
|
1
|
-
# CLI
|
|
1
|
+
# CLI 指令參考
|
|
2
2
|
|
|
3
|
-
本指南為所有可用的 `aigne doc`
|
|
3
|
+
本指南為所有可用的 `aigne doc` 子指令、其參數和選項提供了全面的參考。它旨在幫助希望充分利用命令列介面的使用者。
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
一般語法是:
|
|
6
6
|
|
|
7
|
-
```bash
|
|
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
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
# 產物
|
|
19
|
+
Source-Code: {
|
|
20
|
+
label: "原始碼"
|
|
21
|
+
shape: cylinder
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
shape: rectangle
|
|
23
|
+
Configuration: {
|
|
24
|
+
label: "設定檔\n(.aigne/doc-smith/config.yml)"
|
|
25
|
+
shape: cylinder
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
Generated-Docs: {
|
|
28
|
+
label: "產生的文件"
|
|
29
|
+
shape: cylinder
|
|
30
|
+
}
|
|
31
|
+
Published-Docs: {
|
|
32
|
+
label: "發佈的網站"
|
|
33
|
+
shape: cylinder
|
|
31
34
|
}
|
|
32
35
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
# --- 核心工作流程 ---
|
|
37
|
+
Lifecycle: {
|
|
38
|
+
label: "文件生命週期"
|
|
39
|
+
|
|
40
|
+
init: {
|
|
41
|
+
label: "1. 初始化\n`aigne doc init`"
|
|
42
|
+
shape: rectangle
|
|
43
|
+
}
|
|
37
44
|
|
|
38
|
-
|
|
39
|
-
label: "aigne doc
|
|
45
|
+
generate: {
|
|
46
|
+
label: "2. 產生\n`aigne doc generate`"
|
|
47
|
+
shape: rectangle
|
|
40
48
|
}
|
|
41
|
-
|
|
42
|
-
|
|
49
|
+
|
|
50
|
+
Refinement: {
|
|
51
|
+
label: "3. 優化 (迭代)"
|
|
52
|
+
grid-columns: 2
|
|
53
|
+
|
|
54
|
+
update: {
|
|
55
|
+
label: "更新\n`aigne doc update`"
|
|
56
|
+
shape: rectangle
|
|
57
|
+
}
|
|
58
|
+
translate: {
|
|
59
|
+
label: "翻譯\n`aigne doc translate`"
|
|
60
|
+
shape: rectangle
|
|
61
|
+
}
|
|
43
62
|
}
|
|
44
|
-
}
|
|
45
63
|
|
|
46
|
-
publish: {
|
|
47
|
-
|
|
48
|
-
|
|
64
|
+
publish: {
|
|
65
|
+
label: "4. 發佈\n`aigne doc publish`"
|
|
66
|
+
shape: rectangle
|
|
67
|
+
}
|
|
49
68
|
}
|
|
50
69
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
70
|
+
# --- 工具指令 ---
|
|
71
|
+
Utilities: {
|
|
72
|
+
label: "工具指令"
|
|
73
|
+
grid-columns: 2
|
|
74
|
+
|
|
75
|
+
prefs: {
|
|
76
|
+
label: "管理偏好設定\n`aigne doc prefs`"
|
|
77
|
+
shape: rectangle
|
|
78
|
+
}
|
|
79
|
+
clear: {
|
|
80
|
+
label: "清除資料\n`aigne doc clear`"
|
|
81
|
+
shape: rectangle
|
|
82
|
+
}
|
|
55
83
|
}
|
|
56
84
|
|
|
57
|
-
|
|
85
|
+
|
|
86
|
+
# --- 連線 ---
|
|
87
|
+
|
|
88
|
+
# 設定與產生
|
|
89
|
+
Lifecycle.init -> Configuration: "建立"
|
|
90
|
+
Source-Code -> Lifecycle.generate: "讀取"
|
|
91
|
+
Configuration -> Lifecycle.generate: "讀取"
|
|
92
|
+
Lifecycle.generate -> Generated-Docs: "建立 / 覆寫"
|
|
93
|
+
Lifecycle.generate -> Lifecycle.init: {
|
|
94
|
+
label: "若無設定檔則執行"
|
|
58
95
|
style.stroke-dash: 4
|
|
59
96
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
97
|
+
|
|
98
|
+
# 優化迴圈
|
|
99
|
+
Generated-Docs <-> Lifecycle.Refinement: "讀取與寫入"
|
|
100
|
+
|
|
101
|
+
# 發佈
|
|
102
|
+
Lifecycle.Refinement -> Lifecycle.publish
|
|
103
|
+
Lifecycle.publish -> Published-Docs: "上傳至"
|
|
104
|
+
|
|
105
|
+
# 工具連線
|
|
106
|
+
Utilities.prefs -> Configuration: "讀取"
|
|
107
|
+
Utilities.clear -> Configuration: "刪除"
|
|
108
|
+
Utilities.clear -> Generated-Docs: "刪除"
|
|
66
109
|
```
|
|
67
110
|
|
|
68
111
|
---
|
|
69
112
|
|
|
113
|
+
## `aigne doc init`
|
|
114
|
+
|
|
115
|
+
手動啟動互動式設定精靈。這對於設定新專案或修改現有專案的設定很有用。此精靈會引導您定義原始碼路徑、設定輸出目錄、選擇語言,以及定義文件的風格和目標受眾。
|
|
116
|
+
|
|
117
|
+
### 使用範例
|
|
118
|
+
|
|
119
|
+
**啟動設定精靈:**
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
aigne doc init
|
|
123
|
+
```
|
|
124
|
+

|
|
125
|
+
|
|
126
|
+
有關如何根據您的需求客製化 DocSmith 的更多詳細資訊,請參閱 [設定指南](./configuration.md)。
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
70
130
|
## `aigne doc generate`
|
|
71
131
|
|
|
72
|
-
|
|
132
|
+
分析您的原始碼,並根據您的設定產生一套完整的文件。如果找不到設定檔,它會自動啟動互動式設定精靈 (`aigne doc init`)。
|
|
133
|
+
|
|
134
|
+

|
|
73
135
|
|
|
74
136
|
### 選項
|
|
75
137
|
|
|
76
|
-
|
|
|
77
|
-
|
|
|
78
|
-
| `--
|
|
79
|
-
| `--
|
|
80
|
-
| `--model`
|
|
138
|
+
| 選項 | 類型 | 說明 |
|
|
139
|
+
| :------------------ | :------ | :------------------------------------------------------------------------------------------------------- |
|
|
140
|
+
| `--forceRegenerate` | boolean | 捨棄現有內容,從頭開始重新產生所有文件。 |
|
|
141
|
+
| `--feedback` | string | 提供回饋以調整和優化整體文件結構。 |
|
|
142
|
+
| `--model` | string | 指定用於產生的特定大型語言模型 (例如:`openai:gpt-4o`)。這會覆寫預設值。 |
|
|
81
143
|
|
|
82
144
|
### 使用範例
|
|
83
145
|
|
|
@@ -99,28 +161,30 @@ aigne doc generate --forceRegenerate
|
|
|
99
161
|
aigne doc generate --feedback "Add a new section for API examples and remove the 'About' page."
|
|
100
162
|
```
|
|
101
163
|
|
|
102
|
-
|
|
164
|
+
**使用特定模型產生:**
|
|
103
165
|
|
|
104
166
|
```bash
|
|
105
|
-
aigne doc generate --model
|
|
167
|
+
aigne doc generate --model openai:gpt-4o
|
|
106
168
|
```
|
|
107
169
|
|
|
108
170
|
---
|
|
109
171
|
|
|
110
172
|
## `aigne doc update`
|
|
111
173
|
|
|
112
|
-
|
|
174
|
+
優化並重新產生特定文件。您可以以互動方式執行以選擇文件,或直接使用選項指定它們。這對於根據回饋進行針對性改進,而無需重新產生整個專案很有用。
|
|
175
|
+
|
|
176
|
+

|
|
113
177
|
|
|
114
178
|
### 選項
|
|
115
179
|
|
|
116
|
-
|
|
|
117
|
-
|
|
|
118
|
-
| `--docs`
|
|
119
|
-
| `--feedback` | string | 提供具體回饋以改善所選文件的內容。
|
|
180
|
+
| 選項 | 類型 | 說明 |
|
|
181
|
+
| :--------- | :---- | :-------------------------------------------------------------------------- |
|
|
182
|
+
| `--docs` | array | 要重新產生的文件路徑列表。可多次指定。 |
|
|
183
|
+
| `--feedback` | string | 提供具體回饋以改善所選文件的內容。 |
|
|
120
184
|
|
|
121
185
|
### 使用範例
|
|
122
186
|
|
|
123
|
-
|
|
187
|
+
**啟動互動式工作階段以選擇要更新的文件:**
|
|
124
188
|
|
|
125
189
|
```bash
|
|
126
190
|
aigne doc update
|
|
@@ -129,27 +193,29 @@ aigne doc update
|
|
|
129
193
|
**使用針對性回饋更新特定文件:**
|
|
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
|
---
|
|
136
200
|
|
|
137
201
|
## `aigne doc translate`
|
|
138
202
|
|
|
139
|
-
|
|
203
|
+
將現有文件翻譯成一種或多種語言。可以以互動方式執行以選擇文件和語言,或透過將它們指定為參數以非互動方式執行。
|
|
204
|
+
|
|
205
|
+

|
|
140
206
|
|
|
141
207
|
### 選項
|
|
142
208
|
|
|
143
|
-
|
|
|
144
|
-
|
|
|
145
|
-
| `--docs`
|
|
146
|
-
| `--langs`
|
|
147
|
-
| `--feedback`
|
|
148
|
-
| `--glossary`
|
|
209
|
+
| 選項 | 類型 | 說明 |
|
|
210
|
+
| :--------- | :---- | :----------------------------------------------------------------------------------- |
|
|
211
|
+
| `--docs` | array | 要翻譯的文件路徑列表。可多次指定。 |
|
|
212
|
+
| `--langs` | array | 目標語言代碼列表 (例如:`zh-CN`、`ja`)。可多次指定。 |
|
|
213
|
+
| `--feedback` | string | 提供回饋以改善翻譯品質。 |
|
|
214
|
+
| `--glossary` | string | 詞彙表檔案的路徑,以確保跨語言的術語一致性。使用 `@path/to/glossary.md`。 |
|
|
149
215
|
|
|
150
216
|
### 使用範例
|
|
151
217
|
|
|
152
|
-
|
|
218
|
+
**啟動互動式翻譯工作階段:**
|
|
153
219
|
|
|
154
220
|
```bash
|
|
155
221
|
aigne doc translate
|
|
@@ -158,10 +224,10 @@ aigne doc translate
|
|
|
158
224
|
**將特定文件翻譯成中文和日文:**
|
|
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
|
-
|
|
230
|
+
**使用詞彙表和回饋進行翻譯以提高品質:**
|
|
165
231
|
|
|
166
232
|
```bash
|
|
167
233
|
aigne doc translate --glossary @glossary.md --feedback "Use technical terminology consistently"
|
|
@@ -171,23 +237,25 @@ aigne doc translate --glossary @glossary.md --feedback "Use technical terminolog
|
|
|
171
237
|
|
|
172
238
|
## `aigne doc publish`
|
|
173
239
|
|
|
174
|
-
|
|
240
|
+
發佈您的文件並產生一個可分享的連結。此指令會將您的內容上傳到一個 Discuss Kit 執行個體。您可以使用官方的 AIGNE DocSmith 平台,或執行您自己的 [Discuss Kit](https://www.web3kit.rocks/discuss-kit) 執行個體。
|
|
241
|
+
|
|
242
|
+

|
|
175
243
|
|
|
176
244
|
### 選項
|
|
177
245
|
|
|
178
|
-
|
|
|
179
|
-
|
|
|
180
|
-
| `--appUrl` | string | 您自行託管的 Discuss Kit
|
|
246
|
+
| 選項 | 類型 | 說明 |
|
|
247
|
+
| :------- | :----- | :------------------------------------------------------------------------------------------------------ |
|
|
248
|
+
| `--appUrl` | string | 您自行託管的 Discuss Kit 執行個體的 URL。如果未提供,指令將以互動方式執行。 |
|
|
181
249
|
|
|
182
250
|
### 使用範例
|
|
183
251
|
|
|
184
|
-
|
|
252
|
+
**啟動互動式發佈工作階段:**
|
|
185
253
|
|
|
186
254
|
```bash
|
|
187
255
|
aigne doc publish
|
|
188
256
|
```
|
|
189
257
|
|
|
190
|
-
|
|
258
|
+
**直接發佈到自行託管的執行個體:**
|
|
191
259
|
|
|
192
260
|
```bash
|
|
193
261
|
aigne doc publish --appUrl https://your-discuss-kit-instance.com
|
|
@@ -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
|
+
管理使用者偏好設定和由回饋驅動的規則。隨著時間的推移,DocSmith 會從您的回饋中學習並建立持續性的偏好設定。此指令允許您查看、切換或移除這些學習到的規則。
|
|
269
|
+
|
|
270
|
+
### 選項
|
|
271
|
+
|
|
272
|
+
| 選項 | 類型 | 說明 |
|
|
273
|
+
| :------- | :------ | :------------------------------------------------------------------------- |
|
|
274
|
+
| `--list` | boolean | 列出所有已儲存的偏好設定。 |
|
|
275
|
+
| `--remove` | boolean | 以互動方式提示選擇並移除一個或多個偏好設定。 |
|
|
276
|
+
| `--toggle` | boolean | 以互動方式提示選擇並切換偏好設定的啟用狀態。 |
|
|
277
|
+
| `--id` | array | 直接指定一個或多個要移除或切換的偏好設定 ID。 |
|
|
201
278
|
|
|
202
279
|
### 使用範例
|
|
203
280
|
|
|
204
|
-
|
|
281
|
+
**列出所有已儲存的偏好設定:**
|
|
205
282
|
|
|
206
283
|
```bash
|
|
207
|
-
aigne doc
|
|
284
|
+
aigne doc prefs --list
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
**啟動互動式移除模式:**
|
|
288
|
+
|
|
289
|
+
```bash
|
|
290
|
+
aigne doc prefs --remove
|
|
208
291
|
```
|
|
209
292
|
|
|
210
|
-
|
|
293
|
+
**透過 ID 切換特定偏好設定:**
|
|
294
|
+
|
|
295
|
+
```bash
|
|
296
|
+
aigne doc prefs --toggle --id "pref_2a1dfe2b09695aab"
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
---
|
|
300
|
+
|
|
301
|
+
## `aigne doc clear`
|
|
302
|
+
|
|
303
|
+
啟動一個互動式工作階段以清除本機儲存的資料。這可用於移除產生的文件、文件結構設定或快取的驗證權杖。
|
|
304
|
+
|
|
305
|
+
### 使用範例
|
|
306
|
+
|
|
307
|
+
**啟動互動式清理過程:**
|
|
308
|
+
|
|
309
|
+
```bash
|
|
310
|
+
aigne doc clear
|
|
311
|
+
```
|