Skip to content

Releases

v0.2.3

Choose a tag to compare

@buhuikongpan buhuikongpan released this 27 Aug 03:31

回退到原始 GitBashRow 自定义卡片设计。

v0.2.2

Choose a tag to compare

@buhuikongpan buhuikongpan released this 26 Aug 10:15

gitbash 卡片默认折叠,点击展开查看输出。

v0.2.1

Choose a tag to compare

@buhuikongpan buhuikongpan released this 26 Aug 03:19

修复 gitbash 调用被显示为 "Tool call",改为紧凑终端卡片。

v0.2.0

Choose a tag to compare

@buhuikongpan buhuikongpan released this 26 Aug 02:34

{"value" => "复用 pwsh 内置终端卡片,移除自定义大卡片。\n", "PSPath" => "C:\Users\Administrator\Desktop\gitbash\rl.txt", "PSParentPath" => "C:\Users\Administrator\Desktop\gitbash", "PSChildName" => "rl.txt", "PSDrive" => {"CurrentLocation" => "Users\Administrator\Desktop\gitbash", "Name" => "C", "Provider" => "Microsoft.PowerShell.Core\FileSystem", "Root" => "C:\", "Description" => "系统", "MaximumSize" => nil, "Credential" => "System.Management.Automation.PSCredential", "DisplayRoot" => nil}, "PSProvider" => {"ImplementingType" => "Microsoft.PowerShell.Commands.FileSystemProvider", "HelpFile" => "System.Management.Automation.dll-Help.xml", "Name" => "FileSystem", "PSSnapIn" => "Microsoft.PowerShell.Core", "ModuleName" => "Microsoft.PowerShell.Core", "Module" => nil, "Description" => "", "Capabilities" => 52, "Home" => "C:\Users\Administrator", "Drives" => "C D"}, "ReadCount" => 1}

dsh-tool-gitbash v0.1.2

Choose a tag to compare

@buhuikongpan buhuikongpan released this 21 Aug 03:58

🐛 Bug Fix

  • 修复 dsh web 启动竞态中断 (#3, PR #4):apply() 不再在启动阶段同步读取 ctx.sandbox(该后端由 dsh-sandbox-local 提供、加载 native addon 较慢,与其他插件并行加载时会产生时序竞态,随机报 ctx.sandbox is missing 中断启动)。
    现在 apply() 只用 ctx.sandboxPolicy.defaultMode 判断 confining,把 ctx.get('sandbox') 推迟到 execute()(工具被调用时,所有插件已加载)再延迟读取,与官方 dsh-tool-pwsh 做法对齐。

安装

dsh plugin add dsh-tool-gitbash

(Note:v0.1.1 已用于 PR #2 的发布,本次为含该修复的新版本。)

v0.1.1

Choose a tag to compare

@buhuikongpan buhuikongpan released this 19 Aug 11:55

Behaviors aligned with native pwsh/bash tools:

  • run_in_background is only exposed when enableRunInBackground is on; otherwise the description reports background as unavailable.
  • Mirrored native confined detection (sandbox-policy defaultMode + fail-close check).
  • Sandbox escalation now routes through an approveEscalation helper identical to the native tools (double-condition trigger via ctx.approval).
  • resolveWorkdir matches native bash: sandbox root first, canonical session cwd.
  • Merged PR #2: detect Git Bash at custom install paths (scoop/PATH) and bashPath config override.

Docs updated to note the behavior alignment.