Skip to content

v0.2.0 — 迭代 2:AST 结构化搜索/批量重写

Choose a tag to compare

@KeynoWu KeynoWu released this 21 Aug 00:52
· 4 commits to main since this release

v0.2.0(迭代 2)

新增:astgrep 模块(src/modules/astgrep/)

  • ast_search:AST 结构化搜索(ast-grep 模式语法,16 语言,避开注释/字符串噪音)
  • ast_edit:AST 批量重写(dry-run 预览 + ctx.fs 审批写盘,写操作走 DSH 文件审批)
  • 设置页 OMP Tools 新增 AST 搜索 tab:二进制状态 + 一键安装引导(npm i -g @ast-grep/cli)

架构:设置页 OMP Tools 重构

  • settings section 改为 tabs 组织能力模块(官方 Plugins 同款模式),LSP 语言 / AST 搜索 两个 tab

修复:多 remote 约束链(4 层坑,全部入档设计文档 §11.3)

  • $mount 只能一次(typert 按 package 注册)→ 合并 descriptors 根壳统一挂载
  • 方法名 vs @Remote 参数:install → installBinary(保留名冲突)
  • RPC 信封解包:ctx.get('remote.X').describe() 返回 {ok, value} → 组件解包
  • JSON 安全边界:gateway 返回统一 jsonSafe()(assertJsonValue 拒绝 undefined 字段)

历史

  • v0.1.0:融合仓库建立(dsh-lsp-plugin → dsh-omp-tools,LSP 模块 M1–M4 全部能力,完整 git 历史保留)
  • 前身 dsh-lsp-plugin(KeynoWu/dsh-lsp-plugin,已归档)