@xbzbing/dsh-git-panel 0.1.1 → 0.2.0
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 +5 -3
- package/README_EN.md +5 -3
- package/lib/client.js +36 -26
- package/lib/host/actions.d.ts +2 -3
- package/lib/host/core.d.ts +20 -1
- package/lib/host/git.d.ts +2 -0
- package/lib/host/index.js +319 -139
- package/lib/host/parser.d.ts +8 -1
- package/lib/host/types.d.ts +24 -4
- package/lib/host/validate.d.ts +10 -0
- package/lib/host/version.d.ts +6 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
[English](README_EN.md) | 简体中文
|
|
4
4
|
|
|
5
|
+

|
|
6
|
+
|
|
5
7
|
`dsh-git-panel` 是一个 DSH Web GUI 插件,在对话工作区里提供 IDE 风格的 Git 面板。它把分支列表、提交历史图、未提交变更的提交与 amend、语法高亮的差异对照集中到一个常驻标签页,并在输入框左侧放一个 zsh 风格的分支标记,让你在对话过程中随手查看仓库状态、提交改动,不必切到终端或另开 IDE。
|
|
6
8
|
|
|
7
9
|
面板只读取当前会话工作目录所在的 Git 仓库,所有 git 命令都以 argv 数组经宿主的 subprocess 服务执行,不拼接 shell 字符串,工作目录锁定在仓库根,并带超时与输出上限。插件不改动 git 配置,写操作(提交、amend、暂存、丢弃)都有明确入口。
|
|
@@ -35,9 +37,9 @@ dsh plugin --profile web add github:xbzbing/dsh-git-panel
|
|
|
35
37
|
|
|
36
38
|
| Git 总览 | 文件差异 modal |
|
|
37
39
|
| :---: | :---: |
|
|
38
|
-
|  |  |
|
|
40
|
+
|  |  |
|
|
41
|
+
| 变更记录 | |
|
|
42
|
+
|  | |
|
|
41
43
|
|
|
42
44
|
## 架构
|
|
43
45
|
|
package/README_EN.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
English | [简体中文](README.md)
|
|
4
4
|
|
|
5
|
+

|
|
6
|
+
|
|
5
7
|
`dsh-git-panel` is a DSH Web GUI plugin that brings an IDE-style Git panel into the conversation workspace. It gathers the branch list, commit history graph, uncommitted-change commit & amend, and syntax-highlighted diffs into one resident tab, and puts a zsh-style branch marker at the left of the input bar — so you can check repo status and commit changes mid-conversation without switching to a terminal or a separate IDE.
|
|
6
8
|
|
|
7
9
|
The panel only reads the Git repository at the current session's working directory. Every git command runs through the host subprocess service as an argv array — no shell string concatenation — with the working directory locked to the repository root and per-command timeout and output caps. The plugin never touches your git config, and every write (commit, amend, stage, discard) has an explicit entry point.
|
|
@@ -35,9 +37,9 @@ Restart or refresh the Web GUI afterwards and the **Git** panel appears in the w
|
|
|
35
37
|
|
|
36
38
|
| Overview | File-diff modal |
|
|
37
39
|
| :---: | :---: |
|
|
38
|
-
|  |  |
|
|
39
|
-
| Changes |
|
|
40
|
-
|  |
|
|
40
|
+
|  |  |
|
|
41
|
+
| Changes | |
|
|
42
|
+
|  | |
|
|
41
43
|
|
|
42
44
|
## Architecture
|
|
43
45
|
|