Repository navigation
v0.5.0
0.5.0 正式版面向 DSH 0.2.2-rc.1 起的 0.2.2 发行线,汇总自 v0.4.0 以来(含 0.4.1–0.4.4 补丁版与 0.5.0 各预览版)并去重后的全部主要用户与开发者相关变更。破坏性变更:不再支持 0.2.2 之前的宿主。
新增功能与破坏性变更
- Windows 默认 Shell 改为随主包携带的完整官方 Niubash v1.5.0 载荷:逐条校验归档、源树与每次调用的执行副本,缺少载荷时不隐式回退到环境 Bash,并提供托管安装、状态、选择与卸载命令。 @T-Auto
- 内置极简、标准、PTC 与创造预设默认隐藏宿主 PowerShell,仅在 Bash 替代工具可调用、总闸允许且未开启 dsh-win-pwsh7 联动时生效;已保存的显式值与自定义预设保持原意。 @T-Auto
- 插件详情页改用 locale 的 meta.detail 展示专门编写的介绍文档,可含图片,不再直接使用仓库 README。 @T-Auto
- 0.5 系列原生面向 DSH 0.2.2-rc.1 起的 0.2.2 发行线,旧宿主不再支持。 @T-Auto
体验优化
- Bash 输出支持宿主终端卡片;成功的 Native 前台调用可将大型完整 JSON 输出显示为有限样本及完整输出路径,保留 stderr、退出状态与 PTC 原始值。 @Haoming9527
- 提示词工具名与发布快照改读作用域视图,避免重复深拷贝 schema;PTC、discovery 与 Bash 按受影响会话及继承族增量更新,保留未变化的定义与缓存。 @ikliml666 @T-Auto @ccch1mneyyy
- 基准报告整合成本、行为、成功率、逐任务耗时和逐请求开销;模型、思考档位、平台与 candidate 组件开关纳入条件记录,拒绝不兼容的比较。 @Richeir @Haoming9527
- 为按需发现的文件工具补充字段说明、glob 数组示例、搜索默认值和预览语义,保持校验约束及运行时行为不变。 @ccch1mneyyy
- 保持现有 Cordis 工具、提示词、权限、subprocess、PTC、结果与 UI 行为,同时为 adapter 边界增加回归保护。 @T-Auto
- 将插件配置集中到单个
dsh-ops行及详情页,统一管理四种预设、动态发现、数据采集与 TUI 联动,并提供独立运行时状态卡及安装、升级、移除操作。 @xinspark - 标准、PTC、创造模式提供独立的常驻工具与动态加载开关,极简模式不显示常驻选项;关闭常驻后仍可按需动态加载基础 API。 @T-Auto
- 限制同步 PowerShell 版本探测耗时,并根据实际检测结果控制伴生插件联动。 @xinspark
- 内置与外部预设共用消费者装配流程,执行、投影、发布与生命周期按职责解耦,Native 文本与 PTC 类型化结果保留各自契约。 @T-Auto
- 总开关保留预设保存意图,文件替换与宿主 PowerShell 隐藏独立控制。 @T-Auto
- 收敛会话发布与展示探测,减少未归属工具变化造成的逐会话装配和重复注册表扫描。 @ikliml666 @Haoming9527
- 批量文件读取最多重叠两个有界原生读取,保留输入顺序、逐文件回执与总预算。 @Haoming9527
- 搜索路径模式改为每请求准备一次,并提供显式启用、不含文件正文的阶段计时。 @Haoming9527
- Linux x64 worker 改为 musl 静态链接产物,避免依赖构建机的 glibc 版本。 @Golden-Pigeon
- 分离 Native 文件与 Bash 路由指导,并明确 Bash 与宿主 PowerShell 默认共存。 @T-Auto
问题修复
- 修复 PTC 呈现切换、嵌套掩码及旧探针迟到发布导致的工具缺失或错误拒绝;探测按继承族隔离,未返回的宿主 hook 不再阻塞无关会话,并兼容纯文本提示词 hook。 @T-Auto @Haoming9527
- 修复 Windows 多个受限 Bash 根进程访问当前用户 MSYS 共享段失败;隔离损坏 IPC 副本时采用有界重试,保留既有令牌与文件权限边界。 @Haoming9527 @Richeir @T-Auto
- Windows Bash 正确锚定
/d/...工作目录;必要私有 MSYS 路径之外保留用户 PATH 优先级,空 stdin 改用立即关闭的管道。 @ViscaOwO @Haoming9527 - 修复 PTC
run_code被官方工具替换就绪检查错误阻塞的问题,保持真正保留官方工具的作用域失败闭合。 @WeiLinCool @ViscaOwO - Linux bwrap 私有
/tmp中重新绑定经校验的会话结果缓存,恢复ref://分页与会话清理,不扩大其它目录访问。 @ccch1mneyyy @T-Auto - 文件工具统一拒绝公开访问保留的
.dsh-ops审计目录,替换前限制单文件产出为 32 MiB;恢复 UNC 枚举并校验目录身份,不支持更新锁时明确返回LOCK_UNSUPPORTED。 @ccch1mneyyy @Creeper5261 - 替换文件先恢复扩展属性、再写最终模式,保留只读文件属性;Bash 非零退出明确标为
EXIT_CODE并允许修改输入后重试,后台任务保留描述标签。 @Richeir @ccch1mneyyy @Y-fyan - TUI 根据有界展示元数据识别 Native 文件工具业务结果,不再解析精简模型文本。 @ccch1mneyyy
- 修复 scope 动态加载在服务卸载与重载场景中的生命周期竞态,避免残留注册和过期缓存。 @T-Auto
- Converge DSH product types, lazy scope loading and profile-carrier entrypoints behind the project-owned
adapter/dshboundary. by @T-Auto - 修复 DSH 延后附加工具数组时,隐藏原版工具校验错误阻断提示词组装及折叠
run_code作用域的问题,同时保留作用域内工具隐藏校验。 @WeiLinCool @ViscaOwO - 修复预设切换时 PTC 发布撤回与调用取消,保留其他会话的发现选择,并确保外部调用在自有包装内授权。 @T-Auto
- 修复显式集成挂载被旧 Loader 行退役防护误拦截的问题,并使 PTC 动态加载开关实际控制 SDK 按需加载。 @T-Auto
- 修复总 Bash 开关导致有效 Shell 配置无法激活、Native 发现开关连带关闭 PTC SDK,以及自定义开关组合无法保存的问题。 @T-Auto
- 修复派发前取消未返回规范失败结果、外部提供者阻塞卸载与内置发现调用未及时取消的问题。 @T-Auto
- 修复 Windows 构建的发布包丢失 Unix worker 执行权限,并拒绝异常运行时归档成员。 @T-Auto
- 修复 discovery 探测期间的反馈自激回路,并将同一请求的展示撤回限制为一次提示词重建。 @yukitakasama @elegant01 @Haoming9527
- 修复预设切换时 Bash 注册丢失及退役回调仍可执行的问题。 @Haoming9527
- 修复 Windows 新建文件的父目录 DACL 继承,并在暂存发布期间排除竞争写入。 @Haoming9527
- 修复多文件替换中断后遗漏部分回执,明确 create-only sentinel 与同轮 PTC 读改 CAS 契约。 @Haoming9527
- 修复完全访问会话为可选结果缓存准备工作区 ACL 的问题,旧宿主缓存不可用时明确返回有界输出。 @Haoming9527
- 拒绝未经适配的 Electron 自身 runner,避免 Bash 空输出假成功,并为 Windows DLL 初始化失败与 ConstrainedLanguage 提供具名诊断。 @Haoming9527
- 按失败阶段报告受限 Bash 准备错误,并回收过期的中断暂存副本。 @Nicholas023
- 修复 fork PR 的准确 head CI 与基线可合并性取证,保留 unknown/partial 证据边界。 @Haoming9527
- 修复联动插件检测被保存操作固化,以及非驻留 PTC SDK 未遵守允许工具池的问题。 @xinspark @T-Auto
- 修复非 ASCII 路径下 Windows Bash IPC 构建,并兼容 npm 12 的按包名组织打包报告。 @Haoming9527
其他变更
- 当前发行版统一为 MIT 许可;历史版本、FastCtx 归属文本及第三方载荷仍保留各自许可声明。 @T-Auto
- 明确 DSH
0.2.0-rc.2与0.2.1-rc.2兼容范围,补充停止宿主后的升级卸载、组件迁移和发现失败排查说明。 @Haoming9527 - Add Minimal, Standard, PTC and Cordis preset-mode components plus a Compatibility switch, replacing the old shell, file, ptc and hide-official rows. Modes enhance only their matching presets; Standard/Cordis replace official read/search tools, Windows uses
ops_bashinstead of the official shell, and Compatibility keeps official tools available. by @T-Auto - Add a native runtime for Intel Macs on macOS 13+, distributed alongside Windows x64, Linux x64 and Apple Silicon. by @OldLigant
- Add bounded grep prefix queries with
exactTotal: false, stopping after the requested matches and reporting a lower bound; default queries and summaries retain full scans. by @Haoming9527 - Add the explicit
dsh-ops review snapshotcommand for bounded PR, claim, exact-head CI and isolated merge-probe evidence. Missing evidence stays unknown, with no source-branch or GitHub mutation. by @Haoming9527 - 单行配置属于破坏性迁移:旧模式、发现、采集、TUI 及早期工具行的保存配置不再生效,需迁入
dsh-ops;兼容模式、可选客户端承载 bundle 与settings-profile命令移除,不自动重写 profile。 @xinspark - 补充集成 API、外部能力提供者、作用域诊断与预设嵌套边界文档。 @T-Auto
- Add explicit preset integration APIs with independent choices for file tools, Bash, Native/PTC, discovery, official-tool replacement and guidance; third-party presets no longer opt in implicitly. by @T-Auto
- Add opt-in external Native capability providers with original tool names and contracts, provider-owned authorization and per-instance selection invalidation. by @T-Auto
- Add current-scope
ops_statusand publicdiagnose(ctx, agent)diagnostics for integration, host, runtime, presentation and external-provider readiness without executing or activating capabilities. by @T-Auto - 更新单行迁移、公开集成接口及内部职责说明,移除已失效的兼容组件导出。 @T-Auto
- Configure custom presets from the single plugin page with independent native switches for files, residency, dynamic loading, Bash, official-tool hiding and routing guidance. by @T-Auto
- 补齐 PTC 与 Native 发现入口的清单目录,并增加 Windows 映像完整性只读诊断和运行时取证说明。 @Haoming9527
- 明确构建发行物与未构建 Git 源码安装通道的区别,记录安全编辑、符号导航与审阅工具的设计决策。 @yukitakasama @Haoming9527
- Add scoped on-demand Native tool and PTC SDK directories, plus a logged step-tail prompt contribution interface. by @T-Auto
- Add opt-in WSL readonly file delegation while preserving Windows authority and path boundaries, backend-bound cursors and Windows-owned result storage. by @Haoming9527
- Add configurable download guards and Bash/PowerShell alternative-command guidance without automatically executing replacements. by @BeiWay1145 @Haoming9527
- Suggest scoped host job waits after successful standalone long delays, with no prompt overhead before the trigger. by @Haoming9527
- Add a real-corpus grep/glob comparison benchmark dispatched through the actual host. by @OldLigant @Haoming9527
0.5.0 targets the DSH 0.2.2 release line from 0.2.2-rc.1 and consolidates every deduplicated user- and developer-facing change since v0.4.0, including the 0.4.1–0.4.4 patch releases and all 0.5.0 previews. Breaking: hosts older than 0.2.2 are no longer supported.
New Features and Breaking Changes
- The Windows default shell is now the complete official Niubash v1.5.0 payload shipped inside the package: the archive, source tree and every per-call execution copy are verified, a missing payload never falls back implicitly to ambient Bash, and managed install, status, select and remove commands are provided. by @T-Auto
- The built-in Minimal, Standard, PTC and Cordis presets hide the host PowerShell by default, only while their Bash replacement is callable, the global gate allows it and the pwsh7 link is off; saved explicit values and custom presets keep their meaning. by @T-Auto
- Plugin detail pages show a curated introduction document through the locale meta.detail entry, images included, instead of the repository README. by @T-Auto
- The 0.5 series targets the DSH 0.2.2 release line from 0.2.2-rc.1; older hosts are no longer supported. by @T-Auto
Improvements
- Present Bash output as host terminal cards; successful Native foreground calls can summarize large intact JSON with bounded samples and a full-output path while preserving stderr, exit status and canonical PTC values. by @Haoming9527
- Read prompt tool names and publication snapshots through scoped views instead of repeatedly deep-copying schemas. Update PTC, discovery and Bash incrementally by affected session and inheritance family, retaining unchanged definitions and caches. by @ikliml666 @T-Auto @ccch1mneyyy
- Combine cost, behavior, pass rates, per-task time and per-request overhead in benchmark reports. Record model, reasoning, platform and candidate component switches as conditions and reject incompatible comparisons. by @Richeir @Haoming9527
- Clarify discoverable file-tool fields with glob-array examples, search defaults and preview semantics without changing validation constraints or runtime behavior. by @ccch1mneyyy
- Preserve existing Cordis tools, prompts, policy, subprocess, PTC, result and UI behavior while adding regression protection for the adapter boundary. by @T-Auto
- Consolidate configuration into one
dsh-opsrow and detail page for all four presets, discovery, capture and TUI integration, with a separate runtime status card and install, upgrade and remove actions. by @xinspark - Separate resident-tool and dynamic-loading switches for Standard, PTC and Cordis, omit the resident option in Minimal, and retain on-demand baseline API access when residency is off. by @T-Auto
- Bound the synchronous PowerShell version probe and derive companion integration from actual detection results. by @xinspark
- Assemble built-in and external presets through one consumer pipeline, separating execution, projections, publication and lifetime responsibilities while retaining distinct Native text and typed PTC contracts. by @T-Auto
- Preserve saved preset intent under global gates and control file replacement independently from host PowerShell hiding. by @T-Auto
- Converge session publication and presentation probes to reduce per-session assemblies and repeated registry scans after unattributed tool changes. by @ikliml666 @Haoming9527
- Overlap at most two bounded native file reads while retaining request order, per-file receipts and aggregate budgets. by @Haoming9527
- Prepare search path patterns once per request and provide opt-in stage timings without file content. by @Haoming9527
- Ship a musl statically linked Linux x64 worker instead of depending on the build runner's glibc version. by @Golden-Pigeon
- Separate Native file and Bash routing guidance and make default Bash/host PowerShell coexistence explicit. by @T-Auto
Bug Fixes
- Fix missing tools and false refusals after PTC presentation changes, nested masks and late obsolete probes. Isolate probes by inheritance family so an unanswered host hook cannot block unrelated sessions, and accept text-only prompt hooks. by @T-Auto @Haoming9527
- Fix independent restricted Windows Bash roots reopening the current user's MSYS shared section. Retry quarantine of damaged IPC generations within a bounded budget while retaining existing token and filesystem boundaries. by @Haoming9527 @Richeir @T-Auto
- Anchor Windows Bash
/d/...workdirs correctly, preserve caller PATH precedence outside required private MSYS paths, and supply empty stdin through an immediately closed pipe. by @ViscaOwO @Haoming9527 - Stop official-tool replacement readiness checks from incorrectly blocking PTC
run_code, while scopes that actually retain selected official tools still fail closed. by @WeiLinCool @ViscaOwO - Rebind the verified session result cache inside Linux bwrap's private
/tmp, restoringref://paging and session cleanup without widening access to other directories. by @ccch1mneyyy @T-Auto - Refuse public access to reserved
.dsh-opsaudit directories and bound each replacement output to 32 MiB before publication. Restore UNC enumeration with directory identity checks and report unsupported update locks asLOCK_UNSUPPORTED. by @ccch1mneyyy @Creeper5261 - Restore extended attributes before applying the final file mode, preserving read-only file attributes. Classify ordinary nonzero Bash exits as
EXIT_CODEwith retry after input changes, and retain description labels for background jobs. by @Richeir @ccch1mneyyy @Y-fyan - Classify Native file outcomes in the TUI from bounded presentation metadata instead of parsing compact model text. by @ccch1mneyyy
- Fix a scope-loading lifecycle race during service unload and reload, preventing stale registrations and cached failures from surviving. by @T-Auto
- Fix official-tool hiding checks blocking prompt assembly and collapsed
run_codescopes when DSH attaches tool arrays later, while retaining scoped hiding checks. by @WeiLinCool @ViscaOwO - Withdraw PTC publication and cancel calls when leaving an integrated preset, preserve other sessions' discovery selections and authorize external calls in their owned wrapper. by @T-Auto
- Keep explicit integration mounts independent of retired Loader-row guards and make the PTC dynamic-loading switch control on-demand SDK loading. by @T-Auto
- Fix valid Shell consumers failing activation under the global Bash gate, Native discovery disabling the PTC SDK loader and invalid custom-switch save transitions. by @T-Auto
- Fix noncanonical pre-dispatch cancellation, external providers blocking unload and delayed cancellation of discovered built-in calls. by @T-Auto
- Preserve Unix worker executable permissions in Windows-built release packages and reject invalid runtime archive members. by @T-Auto
- Stop discovery feedback loops during presentation probes and limit presentation withdrawal to one prompt rebuild per request. by @yukitakasama @elegant01 @Haoming9527
- Fix lost Bash registrations during preset switches and prevent retired callbacks from executing. by @Haoming9527
- Restore parent DACL inheritance for newly created Windows files and exclude competing writers during staged publication. by @Haoming9527
- Retain partial receipts when multi-file replacement stops, and clarify the create-only sentinel and same-program PTC read/edit CAS contracts. by @Haoming9527
- Stop optional result caching from preparing workspace ACLs in full-access sessions, returning explicit bounded output when legacy-host storage is unavailable. by @Haoming9527
- Refuse unadapted Electron self-runners to prevent empty false Bash success, and name Windows DLL initialization and ConstrainedLanguage failures. by @Haoming9527
- Classify confined Bash preparation errors by stage and reclaim expired interrupted staging copies. by @Nicholas023
- Preserve exact-head fork PR CI and base-specific merge evidence while retaining unknown and partial states. by @Haoming9527
- Fix companion detection being frozen by saves and enforce the configured tool pool for nonresident PTC SDKs. by @xinspark @T-Auto
- Fix Windows Bash IPC builds under non-ASCII paths and accept npm 12 package-keyed pack reports. by @Haoming9527
Chores
- License the current distribution as MIT while preserving historical release notices, FastCtx attribution and the separate licenses of third-party payloads. by @T-Auto
- Declare compatibility with DSH
0.2.0-rc.2and0.2.1-rc.2, and document stopped-host upgrades/removal, component migration and discovery failure diagnosis. by @Haoming9527 - Introduce a breaking single-row migration: saved legacy mode, discovery, capture, TUI and earlier tool-row settings are no longer authoritative and must move into
dsh-ops; remove Compatibility mode, the optional client carrier bundle andsettings-profilewithout automatically rewriting profiles. by @xinspark - Document integration APIs, external providers, scoped diagnostics and the boundaries of nested preset integrations. by @T-Auto
- Update single-row migration, public integration and internal responsibility documentation, and remove the defunct compatibility component export. by @T-Auto
- Complete the PTC and Native discovery manifest inventory and add readonly Windows image-integrity diagnostics and runtime evidence guidance. by @Haoming9527
- Distinguish built distribution artifacts from unbuilt Git source installations and record design decisions for safe editing, symbol navigation and review tooling. by @yukitakasama @Haoming9527
Full Changelog: v0.4.0...v0.5.0
本次重建 / This rebuild (2026-11-06)
v0.5.0 的 tag 已指向更新后的 main(含运行时设置页调整),Release 资产由本次构建替换(gh release upload --clobber)。资产指纹以 SHA256SUMS 与本次 run summary 为准。
- 运行时状态卡片改为报告宿主对各模式的实际解析结果(随包 Niubash、托管副本、显式路径、PATH/标准位置的 Git Bash),不再把随包载荷报告为“未检测到”;安装预览改为真正会下载的固定 Niubash 归档、摘要与 DSH_HOME 目标。
- 配置页新增 Bash 执行器 卡片:在随包 Niubash(清除
bashPath)与一个 Git Bash/MSYS 可执行文件之间选择,可点选扫描到的安装或输入绝对路径,保存前由宿主校验;CLI 以bash-runtime niubash与bash-runtime git --path提供同一选择。 - 修复:Windows Store 的
%LOCALAPPDATA%\Microsoft\WindowsApps\bash.exe(WSL 别名)不再被当作 Git Bash 候选。 - 托管副本不再显示为“未安装”问题:仅当 DSH_HOME 真的存在托管副本、或随包载荷缺失需要恢复时才出现该行。
- 插件详情页说明进入设置页的路径:向下翻页后点击“包含的组件”内的“dsh-ops>”。
The v0.5.0 tag now points at the updated main (runtime settings changes) and the release assets were replaced by this build (gh release upload --clobber). Verify bytes through SHA256SUMS and this run's summary.
- The runtime card reports the executor the host resolves per mode (packaged Niubash, provisioned copy, explicit path, Git Bash from PATH or a well-known location) instead of an install inventory, so the packaged payload is never shown as “none detected”; the install preview names the pinned Niubash archive, its digest and the DSH_HOME target it really writes.
- New Bash executor card on the row page: choose the packaged Niubash rung (clears
bashPath) or one Git Bash/MSYS executable, picked from scanned installations or typed as an absolute path, validated by the host before the revision-checked save;bash-runtime niubashandbash-runtime git --pathexpose the same choice. - Fix: the Windows Store
%LOCALAPPDATA%\Microsoft\WindowsApps\bash.exeWSL alias is no longer offered as Git Bash. - The managed copy is no longer reported as a missing installation: the row appears only when one exists, or when installing is the recovery for an absent payload.
- The plugin detail page names the navigation into the settings page: scroll down, then open “dsh-ops>” inside “Included components”.