DeepSeek Harness 插件

TwinsEarth/NewAgentUniverseByDeepSeek#dsh

Star 数 ★ 1 下载量(近 30 天) 667 分类 工具与能力 收录于 2026-10-17 npm @twinsearth/nau-dsh-plugin

把 NewAgentUniverseByDeepSeek 节点接入 DSH:五个只读工具,覆盖版本与上游出处、数据目录恢复状态与账本审计、一致性向量、精确十进制换算,以及节点可达性探测。刻意不暴露启动/停止守护进程、存款、发总线消息这类在本项目里受审计的特权操作。

安装

# npm 包(预构建)

dsh plugin --profile web add @twinsearth/nau-dsh-plugin

# Release 预构建包

dsh plugin --profile web add -w "https://github.com/TwinsEarth/NewAgentUniverseByDeepSeek/releases/download/v3.4.5/twinsearth-nau-dsh-plugin-3.4.5.tgz"

# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)

dsh plugin --profile web add github:TwinsEarth/NewAgentUniverseByDeepSeek#path:/integrations/dsh

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。

README

该插件的 README 只有英文版本。

NewAgentUniverseByDeepSeek tools for DeepSeek Harness.

What this is

A DSH bundle: an npm package a profile lists in dsh.profile.bundles, contributing one Cordis plugin — @twinsearth/nau-dsh-plugin/tools — which registers five read-only tools over the nau command line.

Tool Answers
nau_version project version, wire protocol, and both upstream releases this build names
nau_inspect what a data directory restores to, plus the ledger audit — without starting a daemon
nau_conformance whether this build still agrees with the shared conformance vectors
nau_amount an exact decimal as the integer minor units this project stores
nau_node_status whether something is listening on a host and port, and which binary would be used

Install

dsh plugin --profile <profile> add @twinsearth/nau-dsh-plugin

Or from a checkout or tarball:

dsh plugin --profile <profile> add /path/to/nau-dsh-plugin
dsh plugin --profile <profile> add ./twinsearth-nau-dsh-plugin-3.4.5.tgz

The manager installs, validates, and rolls back if validation fails — so a bad package leaves the profile as it was.

Point it at your binary

The tools run nau. Resolution order:

  1. config.bin on the patch entry (what the shipped cordis.patch.yml sets),
  2. NAU_BIN in the environment,
  3. nau on PATH.

When none of them finds an executable the tool returns an error naming the setting to fix rather than an empty success. Edit the bin: line in cordis.patch.yml, or drop it and set NAU_BIN.

What is deliberately not here

Driving the node is not exposed. Starting or stopping a daemon, depositing funds and sending bus messages are privileged, audited operations in this project with their own refusals. A tool that reached past them to execFile would make the audit trail optional, so the honest surface today is read-only. A privileged surface belongs here only when it can carry the project's own approval rules — not as a shell wrapper that happens to be shaped like a tool.

Fail-closed choices

  • Arguments are passed as an array, never a shell string: nothing here can make a caller's text be interpreted as a command.
  • Every invocation is bounded by a timeout and an output cap.
  • A non-zero exit is reported with its stderr, not thrown away: the CLI's refusals are answers, and hiding them would discard the most useful part.
  • nau_node_status says only whether a TCP connection was accepted, and says so in the answer — a port that answers is not a node that agrees with you.

Provenance

Built by the NewAgentUniverseByDeepSeek project; the tools report that project's own version rather than this package's. See https://github.com/TwinsEarth/NewAgentUniverseByDeepSeek.

Licence: MIT.

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

社区评论

评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。