@civilization/dsh-experimental-git 0.0.0-stage → 0.2.1-rc.2

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 DeepSeek
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,13 @@
1
+ # Bilingual-pair consistency record for README.md (docs/i18n/README.md): per heading
2
+ # section, a hash of its English and Chinese blocks outside code blocks and generated regions.
3
+ # After editing either side, bring the other along and re-record with:
4
+ # pnpm run verify-translation-pairing --write packages/experimental/git/README.md
5
+ /deepseek-ai-dsh-experimental-git:
6
+ en: a9f8b3077c7d1868
7
+ zh: 331b57a60c68d93d
8
+ /deepseek-ai-dsh-experimental-git/features:
9
+ en: 21a4c324aa57b278
10
+ zh: 5067855f9806f18e
11
+ /deepseek-ai-dsh-experimental-git/configuration:
12
+ en: d0c0945fd77f1b56
13
+ zh: 1fa8c3e5227763a0
package/README.md CHANGED
@@ -1,3 +1,23 @@
1
- # Temporary Holding Version
1
+ # @deepseek-ai/dsh-experimental-git
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ English | [中文](README.zh.md)
4
+
5
+ Experimental Git source control plugin for inspecting project repository status, file changes, unified diffs, and commit history.
6
+
7
+ ## Features
8
+
9
+ - **Right Sidebar Panel**: Integrated `git` tab in the right sidebar. Displays current branch, ahead/behind counters, and HEAD commit info.
10
+ - **Working Tree Changes**: Clear grouping of staged changes, unstaged changes, and untracked files with status indicators (`M`, `A`, `D`, `U`).
11
+ - **Inline Unified Diff Viewer**: Click any changed file to view additions (+) and deletions (-) directly in the sidebar.
12
+ - **Commit History**: Browse recent commits with author, relative date, and hash badge.
13
+ - **Agent Tool**: Exposes `git_view` tool for model agents to query git status, logs, and diffs during conversations.
14
+ - **Shortcut**: Toggle the Git panel via `Ctrl+Shift+G` (or `Cmd+Shift+G` on macOS).
15
+
16
+ ## Configuration
17
+
18
+ Enable the plugin via profile bundle or `cordis.patch.yml`:
19
+
20
+ ```yaml
21
+ - id: optional-git
22
+ name: '@deepseek-ai/dsh-experimental-git'
23
+ ```
package/README.zh.md ADDED
@@ -0,0 +1,23 @@
1
+ # @deepseek-ai/dsh-experimental-git
2
+
3
+ [English](README.md) | 中文
4
+
5
+ 实验性 Git 版本控制查看插件,为开发者提供项目 Git 仓库状态、文件变更、代码差异比对(Diff)与提交历史查看功能。
6
+
7
+ ## Features
8
+
9
+ - **右侧边栏直观展示**:在右侧边栏集成 `git` 标签页。顶部显示当前所在分支、领先/落后提交数以及最新提交说明。
10
+ - **工作区变更列表**:分组展示已暂存更改、未暂存更改与未跟踪文件,带有状态标记(`M`、`A`、`D`、`U`)。
11
+ - **内联差异查看器**:点击任意修改文件,直接在侧边栏中查看统一差异对比(+ 新增,- 删除)。
12
+ - **提交历史记录**:浏览最近的 Commit 历史(提交说明、作者、相对时间以及短 Commit Hash 徽章)。
13
+ - **AI 智能体工具**:提供 `git_view` 模型工具,允许智能体在对话中直接查询仓库状态、日志与差异。
14
+ - **全局快捷键**:支持使用快捷键 `Ctrl+Shift+G`(macOS 上为 `Cmd+Shift+G`)快速打开或聚焦右侧 Git 面板。
15
+
16
+ ## Configuration
17
+
18
+ 在 profile bundle 或 `cordis.patch.yml` 中启用该插件:
19
+
20
+ ```yaml
21
+ - id: optional-git
22
+ name: '@deepseek-ai/dsh-experimental-git'
23
+ ```
@@ -0,0 +1,3 @@
1
+ - insert:
2
+ - id: optional-git
3
+ name: '@civilization/dsh-experimental-git'
package/icon.svg ADDED
@@ -0,0 +1,26 @@
1
+ <svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <defs>
3
+ <linearGradient id="git-line-grad" x1="10" y1="8" x2="26" y2="28" gradientUnits="userSpaceOnUse">
4
+ <stop stop-color="#F05133" />
5
+ <stop offset="1" stop-color="#E24329" />
6
+ </linearGradient>
7
+ <linearGradient id="git-node-main" x1="8" y1="8" x2="16" y2="16" gradientUnits="userSpaceOnUse">
8
+ <stop stop-color="#FF7A60" />
9
+ <stop offset="1" stop-color="#F05133" />
10
+ </linearGradient>
11
+ <linearGradient id="git-node-branch" x1="20" y1="12" x2="28" y2="20" gradientUnits="userSpaceOnUse">
12
+ <stop stop-color="#4E95FF" />
13
+ <stop offset="1" stop-color="#2D72D9" />
14
+ </linearGradient>
15
+ </defs>
16
+ <!-- Main commit trunk line -->
17
+ <line x1="12" y1="10" x2="12" y2="26" stroke="url(#git-line-grad)" stroke-width="2.5" stroke-linecap="round" />
18
+ <!-- Branch fork curve -->
19
+ <path d="M12 21C12 18 15 15 18 15H22C23.5 15 24 14.5 24 13V12" stroke="url(#git-line-grad)" stroke-width="2.5" stroke-linecap="round" fill="none" />
20
+ <!-- Lower root node -->
21
+ <circle cx="12" cy="25" r="3.5" fill="#FFFFFF" stroke="url(#git-node-main)" stroke-width="2.5" />
22
+ <!-- Upper main node -->
23
+ <circle cx="12" cy="10" r="3.5" fill="#FFFFFF" stroke="url(#git-node-main)" stroke-width="2.5" />
24
+ <!-- Branch node -->
25
+ <circle cx="24" cy="11" r="3.5" fill="#FFFFFF" stroke="url(#git-node-branch)" stroke-width="2.5" />
26
+ </svg>