dsh-ide-git 0.18.0 → 0.18.1

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/dsh.plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "id": "dsh-external/dsh-ide-git",
3
- "version": "0.18.0",
3
+ "version": "0.18.1",
4
4
  "main": "./src/index.js",
5
5
  "description": "IDE 级 Git 操作面板:分支树 + 提交图谱 + 变更/暂存/提交 + 提交详情。装了 dsh-better-sidebar 时挂成它的原生 tab(右侧栏 + 底部工作台);没装时直接挂 DSH 原生右侧栏,单独安装即可用。JetBrains 风格 Git 工具窗口 for DeepSeek Harness.",
6
6
  "engines": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-ide-git",
3
- "version": "0.18.0",
3
+ "version": "0.18.1",
4
4
  "description": "DSH plugin: an IDE-grade Git tool window as a native dsh-better-sidebar tab — branch tree, commit graph, changes, commit details, JetBrains-style actions, in the right sidebar and the bottom panel. | DSH 插件:IDE 级 Git 工具窗口,以 dsh-better-sidebar 原生 Tab 挂载——分支树 / 提交图谱 / 变更与提交详情 / JetBrains 风格操作,右侧栏与底部面板双布局自适应。",
5
5
  "type": "module",
6
6
  "repository": {
package/src/client.js CHANGED
@@ -9745,8 +9745,8 @@ window.__ModuleLoader__.load({
9745
9745
  className: 'dig-badge dig-badge-muted dig-badge-worktree',
9746
9746
  title: t('branches.worktree') + ': ' + entry.worktree,
9747
9747
  }, E(Icon, { name: 'folder', size: 10 })),
9748
- entry.ahead > 0 ? E('span', { className: 'dig-badge' }, '↑' + entry.ahead) : null,
9749
- entry.behind > 0 ? E('span', { className: 'dig-badge' }, '↓' + entry.behind) : null)
9748
+ entry.ahead > 0 ? E('span', { className: 'dig-badge dig-badge-ahead' }, '↑' + entry.ahead) : null,
9749
+ entry.behind > 0 ? E('span', { className: 'dig-badge dig-badge-behind' }, '↓' + entry.behind) : null)
9750
9750
  }
9751
9751
 
9752
9752
  function BranchTree(props) {
@@ -12207,7 +12207,8 @@ window.__ModuleLoader__.load({
12207
12207
  E('span', { className: 'dig-repo-name' }, branches.branch),
12208
12208
  E(Icon, { name: 'chevron', size: 12 }))),
12209
12209
  summary === null || summary.upstream === null ? null : E('span', { className: 'dig-track' },
12210
- (summary.ahead > 0 ? '↑' + summary.ahead : '') + (summary.behind > 0 ? ' ↓' + summary.behind : '')),
12210
+ summary.ahead > 0 ? E('span', { className: 'dig-track-ahead' }, '↑' + summary.ahead) : null,
12211
+ summary.behind > 0 ? E('span', { className: 'dig-track-behind' }, (summary.ahead > 0 ? ' ' : '') + '↓' + summary.behind) : null),
12211
12212
  operation === null ? null : E('span', { className: 'dig-opchip', title: t('operation.hint') }, t('operation.' + operation)),
12212
12213
  E('button', {
12213
12214
  type: 'button', className: 'dig-icon-btn dig-icon-btn-small',
@@ -13278,6 +13279,10 @@ window.__ModuleLoader__.load({
13278
13279
  '.dig-row-sub{color:var(--dsw-alias-label-tertiary);font-size:11px;flex:none;max-width:45%;overflow:hidden;text-overflow:ellipsis}',
13279
13280
  '.dig-row-dir{margin-left:auto;opacity:.75}',
13280
13281
  '.dig-badge{font-size:10px;padding:0 5px;border-radius:999px;corner-shape:round;background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-secondary);flex:none}',
13282
+ /* Ahead/behind colours (user request): pending pushes read green, pending
13283
+ pulls read blue — the same semantics in the tree rows and the top bar. */
13284
+ '.dig-badge-ahead,.dig-track-ahead{color:var(--dsw-alias-state-success-primary)}',
13285
+ '.dig-badge-behind,.dig-track-behind{color:var(--dsw-alias-state-business-primary,var(--dsw-alias-brand-primary))}',
13281
13286
  '.dig-badge-muted{opacity:.8}',
13282
13287
  '.dig-badge-worktree{padding:0 3px;display:inline-flex;align-items:center;height:14px}',
13283
13288
  '.dig-history{display:flex;flex-direction:column;min-height:0;flex:1}',