Repository navigation
Releases
v0.2.3
v0.2.2
v0.2.1
修复 gitbash 调用被显示为 "Tool call",改为紧凑终端卡片。
v0.2.0
{"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
🐛 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
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.