@klarkxy/dsh-git-commit 0.3.1 → 0.3.3
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/README.md +9 -6
- package/docs/README.zh-CN.md +9 -6
- package/lib/client.inner.cjs +760 -88
- package/lib/client.inner.cjs.map +1 -1
- package/lib/client.js +760 -88
- package/lib/contracts.d.ts +1801 -5
- package/lib/contracts.js +2 -35
- package/lib/contracts2.d.ts +2 -0
- package/lib/contracts2.js +85 -0
- package/lib/contracts2.js.map +1 -0
- package/lib/index.d.ts +10 -3
- package/lib/index.js +3935 -22
- package/lib/index.js.map +1 -1
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +10 -6
- package/lib/contracts.js.map +0 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[简体中文](docs/README.zh-CN.md)
|
|
6
6
|
|
|
7
|
-
Commit workspace changes
|
|
7
|
+
Commit workspace changes directly from the conversation. A model groups your changes into a few sensible commits and writes their messages.
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
@@ -21,17 +21,20 @@ Replace `web` with your profile name and restart it if DSH asks.
|
|
|
21
21
|
3. Check the branch, file count, and model, then confirm.
|
|
22
22
|
4. The panel lists the commits it created.
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
Inside the Commit panel you can choose the **Commit planning model** — your pick is saved as the default for future runs — and turn on **Commit even without a model plan**, which makes one single commit when the model is unavailable.
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
When the planning model is left empty the feature follows the **default auxiliary model**; with no default set it uses the current session model, then the host default chat model. The default auxiliary model is shared: set it once under **Settings → Session Management**, and every feature that follows it uses the same one.
|
|
27
|
+
|
|
28
|
+
When the model list fails to load or some providers are unavailable, use **Retry** beside the model picker; your saved model stays selected.
|
|
27
29
|
|
|
28
30
|
## Good to know
|
|
29
31
|
|
|
30
32
|
- The repository follows the conversation's current working directory; changing directories while a commit is being planned stops the run.
|
|
31
33
|
- All uncommitted changes are included, including new files.
|
|
32
|
-
-
|
|
33
|
-
- If the run stops partway, finished commits stay and the panel shows what
|
|
34
|
-
-
|
|
34
|
+
- The plugin creates local commits only; pushing stays manual.
|
|
35
|
+
- If the run stops partway, finished commits stay and the panel shows what remains for you to handle.
|
|
36
|
+
- Each planning call rebuilds its input from the workspace's current changes; earlier plans are never reused. If the shared default auxiliary model cannot be read, the run fails rather than planning on a model you did not choose.
|
|
37
|
+
- The button is active while the session is idle.
|
|
35
38
|
|
|
36
39
|
## License
|
|
37
40
|
|
package/docs/README.zh-CN.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[English](../README.md)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
在对话里直接提交工作区改动。模型会把改动分成几个合理的提交,并写好提交信息。
|
|
8
8
|
|
|
9
9
|
## 安装
|
|
10
10
|
|
|
@@ -21,17 +21,20 @@ dsh plugin --profile web add @klarkxy/dsh-git-commit
|
|
|
21
21
|
3. 确认分支、文件数和模型后提交。
|
|
22
22
|
4. 面板会列出创建的提交。
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
在「提交」面板里可以选择**提交规划模型**——选择会保存为以后提交的默认值,也可以打开**模型不可用时仍然提交**,在模型不可用时合并为单次提交。
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
规划模型留空时跟随「默认辅助模型」;没有设置默认辅助模型时,使用当前会话模型,再回落到宿主默认对话模型。默认辅助模型是共享设置:在「设置 → 会话管理」里设置一次,所有跟随它的功能都用同一个模型。
|
|
27
|
+
|
|
28
|
+
模型列表读取失败或部分提供商不可用时,可在模型选择器旁点击「重试」;已保存的模型选择会保留。
|
|
27
29
|
|
|
28
30
|
## 注意
|
|
29
31
|
|
|
30
32
|
- 仓库跟随对话当前的工作目录;规划提交期间切换目录会停止本次提交。
|
|
31
33
|
- 会提交仓库里全部未提交的改动,包括新文件。
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
34
|
+
- 仅在本地创建提交,推送由你自行决定。
|
|
35
|
+
- 中途停止时,已完成的提交会保留,面板显示剩余待处理内容。
|
|
36
|
+
- 每次规划都根据工作区当前改动重新组织输入,不会复用以前的规划结果;共享默认辅助模型读取失败时本次运行直接失败,而不是换一个你没选过的模型。
|
|
37
|
+
- 按钮在会话空闲时可用。
|
|
35
38
|
|
|
36
39
|
## 许可证
|
|
37
40
|
|