@xbzbing/dsh-git-panel 0.1.0 → 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 CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  [English](README_EN.md) | 简体中文
4
4
 
5
+ ![dsh-git-panel](docs/assets/banner-zh.png)
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、暂存、丢弃)都有明确入口。
@@ -10,10 +12,10 @@
10
12
 
11
13
  ```bash
12
14
  # npm(默认)
13
- dsh plugin add @xbzbing/dsh-git-panel
15
+ dsh plugin --profile web add @xbzbing/dsh-git-panel@latest
14
16
 
15
17
  # 或从 GitHub 仓库安装(仓库已提交构建产物,无需本地构建)
16
- dsh plugin add github:xbzbing/dsh-git-panel
18
+ dsh plugin --profile web add github:xbzbing/dsh-git-panel
17
19
  ```
18
20
 
19
21
  安装后重启或刷新 Web GUI,工作区标签栏(「对话」「轨迹」之后)就会出现 **Git** 面板。
@@ -35,9 +37,9 @@ dsh plugin add github:xbzbing/dsh-git-panel
35
37
 
36
38
  | Git 总览 | 文件差异 modal |
37
39
  | :---: | :---: |
38
- | ![Git 总览:分支、提交历史图、提交详情与 hover 卡片](docs/assets/screenshots/1-git-panel-overview.png) | ![文件差异 modal:语法高亮的 side-by-side 对照](docs/assets/screenshots/2-overview-tab.png) |
39
- | 变更记录 | 插件详情 |
40
- | ![变更记录:统计条、未提交变更列表、提交框与差异对照](docs/assets/screenshots/3-changes.png) | ![DSH 插件页中的 Git 面板](docs/assets/screenshots/4-plugin-detail.png) |
40
+ | ![Git 总览:分支、提交历史图、提交详情与 hover 卡片](docs/assets/screenshots/1-git-panel-overview.png) | ![文件差异 modal:语法高亮的 side-by-side 对照、块间按需展开与词级高亮](docs/assets/screenshots/2-overview-tab.png) |
41
+ | 变更记录 | |
42
+ | ![变更记录:统计条、未提交变更列表、提交框与差异对照](docs/assets/screenshots/3-changes.png) | |
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
+ ![dsh-git-panel](docs/assets/banner.png)
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.
@@ -10,10 +12,10 @@ The panel only reads the Git repository at the current session's working directo
10
12
 
11
13
  ```bash
12
14
  # npm (default)
13
- dsh plugin add @xbzbing/dsh-git-panel
15
+ dsh plugin --profile web add @xbzbing/dsh-git-panel@latest
14
16
 
15
17
  # or from the GitHub repository (the built tree is committed, no local build needed)
16
- dsh plugin add github:xbzbing/dsh-git-panel
18
+ dsh plugin --profile web add github:xbzbing/dsh-git-panel
17
19
  ```
18
20
 
19
21
  Restart or refresh the Web GUI afterwards and the **Git** panel appears in the workspace tab bar (after Chat and Trajectory).
@@ -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
- | ![Overview: branches, commit graph, commit detail, hover card](docs/assets/screenshots/1-git-panel-overview.png) | ![File-diff modal: syntax-highlighted side-by-side diff](docs/assets/screenshots/2-overview-tab.png) |
39
- | Changes | Plugin detail |
40
- | ![Changes: stats bar, uncommitted list, commit box, diff](docs/assets/screenshots/3-changes.png) | ![The Git panel in the DSH plugins page](docs/assets/screenshots/4-plugin-detail.png) |
40
+ | ![Overview: branches, commit graph, commit detail, hover card](docs/assets/screenshots/1-git-panel-overview.png) | ![File-diff modal: syntax-highlighted side-by-side diff with on-demand gap expansion and word-level emphasis](docs/assets/screenshots/2-overview-tab.png) |
41
+ | Changes | |
42
+ | ![Changes: stats bar, uncommitted list, commit box, diff](docs/assets/screenshots/3-changes.png) | |
41
43
 
42
44
  ## Architecture
43
45
 
package/cordis.patch.yml CHANGED
@@ -4,7 +4,7 @@
4
4
  # metadata composes the browser half (lib/client.js).
5
5
  - insert:
6
6
  - id: git-panel
7
- name: dsh-git-panel
7
+ name: '@xbzbing/dsh-git-panel'
8
8
  config:
9
9
  timeoutMs: 8000
10
10
  maxBytes: 4194304