Repository navigation
v0.2.0
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 onlyNO_COLOR,TERM,PAGERandGIT_PAGER, and it never writesPATH,process.envor the working directory. by @T-Auto - Injects two prompt sections, both controlled by
promptPolicyand enabled by default: a host-shell rule and a command-execution ladder rendered from the rungs the model can actually reach — FastCtx (ops_*), thenops_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 --pwshdownloads it from the pin, the bundle patch re-points the host'spwsh-sandboxrow at a usable copy through a!!jspwshPath, probing the provisioned versions, the@dsh-ops/pwsh-<platform>-<arch>platform package and the vendored copy in order withlstat; when none is usable it returnsundefinedand 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, thetools/pre-executefence stays and the reason is reported once. by @T-Auto - Adds the
provision-shellsandladderCLI 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(defaulttrue) andallowSystemShellFallback(defaulttrue). 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, thenPATHand 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, orfastctxonPATH. by @T-Auto
Bug Fixes
- Fixes the
ops_bashoutput schema being rejected by the host's schema gate because it used type arrays, which prevented the tool from registering at all; everytypeis now a single type andexitCode/signalare optional properties, so an unknown exit fact omits the key instead of sendingnull. by @T-Auto
Chores
- Removes the
pwshPathandoverridePwshExecutorconfig keys, which now fail as unknown keys; thepwsh-sandboxoverride moves to the bundle patch'spwshPathentry. by @T-Auto - Removes the
@deepseek-ai/dsh-mcp-clientdependency and theBRIDGE_PACKAGEdeclaration; 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, somcp__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