Skip to content

v0.4.2

Choose a tag to compare

@T-Auto T-Auto released this 27 Oct 10:56
· 790 commits to main since this release

中文 | English

0.4.2 补丁版本,汇总了自 v0.4.1 以来的主要变更;组件切换方式改为按预设模式管理,已有 profile 的旧组件覆盖需要迁移。

新增功能

  • 新增 Minimal、Standard、PTC、Cordis 四个预设模式组件与兼容模式开关,替换旧 shell、file、ptc 和 hide-official 行;模式仅增强对应预设的会话,Standard/Cordis 自动替换官方读取与搜索工具,Windows 使用 ops_bash 替换官方 shell,兼容模式可保留官方工具。 @T-Auto
  • 新增 macOS 13+ Intel 原生运行时,与 Windows x64、Linux x64、Apple Silicon 一起分发。 @OldLigant
  • grep 新增 exactTotal: false 有界前缀查询,满足所需匹配数后提前停止并明确返回下界;默认查询及 summary 仍保留完整扫描。 @Haoming9527
  • 新增显式 dsh-ops review snapshot 命令,汇总有界 PR、认领、准确 head 的 CI 和隔离合并预演证据,缺失证据保持 unknown,不修改源分支或 GitHub。 @Haoming9527

体验优化

  • Bash 输出支持宿主终端卡片;成功的 Native 前台调用可将大型完整 JSON 输出显示为有限样本及完整输出路径,保留 stderr、退出状态与 PTC 原始值。 @Haoming9527
  • 提示词工具名与发布快照改读作用域视图,避免重复深拷贝 schema;PTC、discovery 与 Bash 按受影响会话及继承族增量更新,保留未变化的定义与缓存。 @ikliml666 @T-Auto @ccch1mneyyy
  • 基准报告整合成本、行为、成功率、逐任务耗时和逐请求开销;模型、思考档位、平台与 candidate 组件开关纳入条件记录,拒绝不兼容的比较。 @Richeir @Haoming9527
  • 为按需发现的文件工具补充字段说明、glob 数组示例、搜索默认值和预览语义,保持校验约束及运行时行为不变。 @ccch1mneyyy

问题修复

  • 修复 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

其他变更

  • 当前发行版统一为 MIT 许可;历史版本、FastCtx 归属文本及第三方载荷仍保留各自许可声明。 @T-Auto
  • 明确 DSH 0.2.0-rc.2 与 0.2.1-rc.2 兼容范围,补充停止宿主后的升级卸载、组件迁移和发现失败排查说明。 @Haoming9527

The 0.4.2 patch release summarizes the main changes since v0.4.1; component switches now follow preset modes, and existing profiles need to migrate overrides for the retired components.

New Features

  • 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_bash instead 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 snapshot command 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

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

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, restoring ref:// paging and session cleanup without widening access to other directories. by @ccch1mneyyy @T-Auto
  • Refuse public access to reserved .dsh-ops audit directories and bound each replacement output to 32 MiB before publication. Restore UNC enumeration with directory identity checks and report unsupported update locks as LOCK_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_CODE with 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

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.2 and 0.2.1-rc.2, and document stopped-host upgrades/removal, component migration and discovery failure diagnosis. by @Haoming9527

Full Changelog: v0.4.1...v0.4.2