Skip to content

v0.2.0

Choose a tag to compare

@T-Auto T-Auto released this 08 Oct 07:25
· 1640 commits to main since this release

中文 | English

dsh-ops 的首个发布版本,汇总了初始的 ops_* 工具面、Windows 运行包与安装方式。

新增功能

  • 以标准 DSH bundle 托管本仓库维护的 FastCtx MCP 运行时,由插件自己启动该服务并沿 stdio 直接进行 MCP 通信,把它的九个工具以 ops_* 发布在自己的注册作用域里,不挂接桥、不改写共享注册表。 @T-Auto
  • 新增 ops_bash,用插件解析出的 bash 执行单条命令,经宿主 subprocess 服务运行,继承宿主的凭据擦除、输出溢出与进程终止;环境只含 NO_COLOR、TERM、PAGER、GIT_PAGER,不写 PATH、process.env 或工作目录。 @T-Auto
  • 系统提示词注入两段(均由 promptPolicy 控制、默认开启):宿主 shell 规则段,以及按模型实际可达层级渲染的命令执行阶梯——FastCtx(ops_*)→ ops_bash → PowerShell 7 → 宿主 shell,缺失的层级不出现、其余重编号。 @T-Auto
  • PowerShell 7 作为第三层:用 dsh-ops provision-shells --pwsh 按 pin 下载后,bundle patch 通过 !!js 的 pwshPath 把宿主 pwsh-sandbox 行指向可用副本,表达式依次探测已 provision 的版本、@dsh-ops/pwsh-<platform>-<arch> 平台包与 vendored 副本并逐个做 lstat 判定,全部不可用时返回 undefined、保持宿主原有解析。 @T-Auto
  • deny-host-shell 在每个新建 agent 的视图里隐藏配置的宿主 shell 工具,只在插件自有层级可用时生效,卸载即撤销;没有自有层级时保留 tools/pre-execute 拒绝并说明一次原因。 @T-Auto
  • CLI 新增 provision-shells 与 ladder:前者按 pin 在本机下载、核对摘要后解包到 <DSH_HOME>/dsh-ops/shells/,加载期不下载;后者打印每层是否可用及其可执行文件来源。 @T-Auto
  • 提供一个自带运行包 @dsh-ops/fastctx-<platform>-<arch>(本 fork 的 FastCtx 构建)与两个只带元数据的 shell pin;bash 与 pwsh 包记录上游地址、版本、字节数与摘要,不重新分发上游二进制。 @T-Auto
  • 新增 bashPath、publishBashTool(默认 true)与 allowSystemShellFallback(默认 true)三个配置键。 @T-Auto

体验优化

  • shell 与运行时解析新增优先层级:bash 依次取 config.bashPath、已 provision 的副本、随包副本、PATH 与系统中已知的 shell 位置,FastCtx 链优先取自带运行包,再回退到 vendored 源码构建、上游包或 PATH 上的 fastctx。 @T-Auto

问题修复

  • 修复 ops_bash 输出 schema 使用类型数组被宿主 schema 门禁拒绝、工具因此完全无法注册的问题;改为单一 type,exitCode 与 signal 改为可选属性,未知退出信息省略键而不是传 null。 @T-Auto

其他变更

  • 移除 pwshPath 与 overridePwshExecutor 配置键,二者现在作为未知键报错;pwsh-sandbox 的覆盖改由 bundle patch 的 pwshPath 入口完成。 @T-Auto
  • 移除 @deepseek-ai/dsh-mcp-client 依赖与 BRIDGE_PACKAGE 声明,插件自己持有到 FastCtx 服务的 MCP stdio 连接并发布工具。 @T-Auto
  • FastCtx 工具在注册边界统一改名为 ops_*,mcp__fastctx__* 不再出现在模型可见表面。 @T-Auto
  • vendored FastCtx 精简为纯 MCP server,删除上游控制终端、自更新与上游版本检测、Codex 集成以及分发与 CI 机器。 @T-Auto

The first release of dsh-ops, introducing the initial ops_* tool surface, Windows payloads and installation flow.

New Features

  • Hosts this repository's FastCtx MCP runtime as a standard DSH bundle: the plugin spawns the server itself, speaks MCP over stdio, and publishes its nine tools as ops_* in its own registration scope, without mounting a bridge or rewriting the shared registry. by @T-Auto
  • Adds ops_bash, which runs one command in the bash the plugin resolved through the host subprocess service, inheriting the harness's credential scrub, output spilling and process termination; its environment holds only NO_COLOR, TERM, PAGER and GIT_PAGER, and it never writes PATH, process.env or the working directory. by @T-Auto
  • Injects two prompt sections, both controlled by promptPolicy and enabled by default: a host-shell rule and a command-execution ladder rendered from the rungs the model can actually reach — FastCtx (ops_*), then ops_bash, then PowerShell 7, then the host's own shell — with missing rungs omitted and the rest renumbered. by @T-Auto
  • Makes PowerShell 7 the third rung: after dsh-ops provision-shells --pwsh downloads it from the pin, the bundle patch re-points the host's pwsh-sandbox row at a usable copy through a !!js pwshPath, probing the provisioned versions, the @dsh-ops/pwsh-<platform>-<arch> platform package and the vendored copy in order with lstat; when none is usable it returns undefined and the host's own resolution is left untouched. by @T-Auto
  • Under deny-host-shell, masks the configured host shell tools from each new agent's view while a rung of its own is live, lifting the mask on unload; with no rung of its own, the tools/pre-execute fence stays and the reason is reported once. by @T-Auto
  • Adds the provision-shells and ladder CLI commands: the first downloads a pin on the user's machine, checks its digest and unpacks it under <DSH_HOME>/dsh-ops/shells/, downloading nothing at load time; the second prints each rung's availability and the executable it came from. by @T-Auto
  • Ships one runtime package, @dsh-ops/fastctx-<platform>-<arch> carrying this fork's FastCtx build, plus two metadata-only shell pins; the bash and pwsh packages record the upstream URL, release, byte count and digest, and no upstream binary is redistributed. by @T-Auto
  • Adds three config keys: bashPath, publishBashTool (default true) and allowSystemShellFallback (default true). by @T-Auto

Improvements

  • Adds a preferred tier to shell and runtime resolution: bash tries config.bashPath, then a provisioned copy, then a packaged copy, then PATH and known system shell locations, while the FastCtx chain tries the bundled runtime package first and falls back to the vendored source build, the upstream package, or fastctx on PATH. by @T-Auto

Bug Fixes

  • Fixes the ops_bash output schema being rejected by the host's schema gate because it used type arrays, which prevented the tool from registering at all; every type is now a single type and exitCode/signal are optional properties, so an unknown exit fact omits the key instead of sending null. by @T-Auto

Chores

  • Removes the pwshPath and overridePwshExecutor config keys, which now fail as unknown keys; the pwsh-sandbox override moves to the bundle patch's pwshPath entry. by @T-Auto
  • Removes the @deepseek-ai/dsh-mcp-client dependency and the BRIDGE_PACKAGE declaration; the plugin holds the MCP stdio connection to the FastCtx server it spawns and publishes the tools itself. by @T-Auto
  • Publishes FastCtx tools uniformly as ops_* at the registration boundary, so mcp__fastctx__* no longer appears on the model-facing surface. by @T-Auto
  • Strips the vendored FastCtx down to its MCP server, deleting upstream's control terminal, self-updater and upstream-version check, Codex integration, and the distribution and CI machinery. by @T-Auto

Full Changelog: v0.2.0