Releases: LAN-TINA-WS/dsh-windows-shell-policy
Releases · LAN-TINA-WS/dsh-windows-shell-policy
Release list
dsh-windows-shell-policy v0.0.5
v0.0.5 边框修复
修复
- 卡片边框黑色问题:React inline style 下
border简写 + CSS 变量拆解会丢失(border-color 回落 currentColor 黑色),全部改为长写属性(borderWidth/borderStyle/borderColor、borderTop*),折叠/展开边框颜色与官方卡片一致(品牌蓝 / label-dimmed)
升级
dsh plugin --profile web add dsh-windows-shell-policy@0.0.5dsh-windows-shell-policy v0.0.4
v0.0.4 视觉修复
修复
- 展开键图标对齐官方:卡片头部 chevron 由
▾字符替换为官方IconChevronDownOutline14等价 SVG(14x14,fill=currentColor),与「终端 / Agent 循环 / 网页搜索」卡片视觉一致;展开旋转 180deg 动画保留
升级
dsh plugin --profile web add dsh-windows-shell-policy@0.0.4dsh-windows-shell-policy v0.0.3
v0.0.3 功能版
新增
- run_in_background 后台执行:
run_in_background: true走 jobs 通道,job_output/job_kill收集与停止,与官方 shell 工具对齐 - 文件沙箱集成:standing policy +
sandbox.confine+sandbox_permissions/justification升级 + denial 检测标记 - bashPath 面板配置:卡片新增「bash 可执行文件路径」输入框(留空自动探测)
- 卡片实时刷新:监听 settings 文档变化自动刷新状态
- 注册失败状态显示:bash 工具注册失败时卡片显示具体错误
修复
- 非 Windows 平台跳过:Linux/macOS 不再误过滤官方 bash 工具(此前会导致 agent 无 shell 工具)
- workdir 语义:相对路径按 session cwd 解析
- types 声明:移除指向不存在文件的 exports types 行
升级
dsh plugin --profile web add dsh-windows-shell-policy@0.0.3dsh-windows-shell-policy v0.0.2
v0.0.2 修复版
修复
- [rc.7 兼容]
settings.plugin.itemslot 注册补key字段:DSH 0.1.0-rc.7 起该 slot 由kind:'list'改为kind:'keyed',注册缺 key 会抛keyed slot "settings.plugin.item" requires options.key导致设置面板加载失败(与 dsh-gui-customization issue #3 同类问题)。list 下多余 key 字段被忽略,向后兼容旧版本。
升级
dsh plugin --profile web add dsh-windows-shell-policy@0.0.2
# 或 GitHub 直装:dsh plugin --profile web add github:LAN-TINA-WS/dsh-windows-shell-policy@dsh-external/dsh-windows-shell-policy v0.0.1
v0.0.1 首版
Windows 默认 Shell 策略组合插件(hybrid 形态):探测 git-bash/MSYS2/Cygwin,在「设置 → 插件 → 插件配置」提供「默认 Shell」折叠卡片切换 bash/pwsh,动态注册 bash 工具并裁剪提示词工具面。
功能
- bash 探测:显式 bashPath → Git 常见安装路径 → MSYS2/Cygwin → PATH
- 配置面板折叠卡片(与官方卡片同构):自动 / bash / pwsh 三选一,staged 编辑 + 保存/放弃
- 策略生效:auto 时探测到 bash 则用 bash 否则 pwsh;切换下一次请求生效
- bash 工具:git-bash 执行(subprocess 通道),终端卡片展示(对话页可点击查看命令)
- 提示词裁剪:agent 工具面只保留一个 shell 工具
- 持久化:preferred 写入 settings 文档 shell-policy section
- 卸载即净:dev_uninject_plugin 一键还原
安装
DSH_CHECKOUT=<checkout> bash scripts/build.sh
dev_inject_plugin <本目录>
# 或:node <harness>\apps\cli\lib\bin.js plugin --profile web add link:<repo>