dsh-gitbash-shell 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-gitbash-shell",
3
- "version": "0.18.0",
3
+ "version": "0.18.1",
4
4
  "main": "./src/index.js",
5
5
  "description": "Windows 全模式 Git Bash:用 Git for Windows bash 替换 PowerShell 执行器,并物化 standard/minimal/code/cordis 的 Git Bash 变体 preset。双 era 适配 dsh <= 0.1.1(内置 id 'code')与 >= 0.1.2(改名 'ptc'),启动探测自动选择,preset id 永不变。联动:dsh-ptc-cordis-preset(两者同装时 PTC 创造模式自动物化为 Git Bash 版)+ dsh-better-sidebar(终端 UI 标签与模型 terminal_* 工具自动切到 Git Bash)。",
6
6
  "engines": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-gitbash-shell",
3
- "version": "0.18.0",
3
+ "version": "0.18.1",
4
4
  "description": "Windows 上让 agent 的每条 shell 命令改经 Git for Windows bash 执行;物化四个内置预设的 Git Bash 变体,统一 MSYS 盘根路径方言,侧栏终端接管可开关。· Run every agent shell command through Git for Windows bash on Windows; materialize Git Bash variants of the built-in presets, unify the MSYS drive-root path dialect, and adopt the sidebar terminal behind a switch.",
5
5
  "type": "module",
6
6
  "repository": {
package/src/index.js CHANGED
@@ -1078,7 +1078,11 @@ function normalizeAbsolutePrefix(prefix, env) {
1078
1078
  */
1079
1079
  export function translateGlobArguments(args, env) {
1080
1080
  if (!args || typeof args !== 'object' || typeof args.pattern !== 'string') return args
1081
- const split = splitGlobPrefix(args.pattern)
1081
+ // Expand a leading variable shorthand first (v0.18.1): a pattern opening
1082
+ // with $HOME/... must become absolute before the split, or the splitter
1083
+ // rejects it and glob silently matches nothing.
1084
+ const expanded = env ? expandLeadingVar(args.pattern, env) : args.pattern
1085
+ const split = splitGlobPrefix(expanded)
1082
1086
  if (!split) return args
1083
1087
  const prefix = normalizeAbsolutePrefix(split.prefix, env)
1084
1088
  if (!prefix) return args