DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

PerryLink /

PerryLink/dsh-os

仅 Topic 仓库

OS-level primitives for DeepSeek Harness: actions, grants, clipboard, workspace, environment, canary, triggers, evidence, memory, windows, approvals.

★ 2 Stars0 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub项目主页
README来源: main@260a1710
dsh-os: a real dsh-os list catalog — Act 0.1.1, Allow 0.1.2 and Check 0.2.0, scoped where npm requires it — with the 6/6 grant-gate demo and the green 20-package conformance on the right

dsh-os

OS-level primitives for DeepSeek Harness — twenty small packages that stay independent.

11 core modules + 5 optional + a contract, a React shell, a catalog CLI and a dependency-only kit; one Host service per module, zero runtime dependencies, and a write that never runs without a human Grant.

简体中文 · Español · Português · हिन्दी

License Node


A family of OS-level primitives for DeepSeek Harness: 11 core modules (Act, Allow, Snip, Check, Nest, Trigger, Seek, Trace, Stage, Ring, Root), 5 optional modules (Help, Context, Cost, Backup, Notify), plus a thin contract, an optional UI shell, a catalog CLI and a dependency-only kit.

The modules stay small and independent: one Host service, ≤6 agent tools, zero runtime dependencies, independent semver, no cross-module imports. The contract (@perrylink/dsh-os-contract) and the optional shell are the only shared layers; the kit contains no business code.

Not affiliated with DeepSeek. DeepSeek and DeepSeek Harness are trademarks of their respective owners. These are independent community packages, published under MIT.

Terminal card: dsh-check prints "Check REGRESSION" and exits 1

Runnable in 10 minutes: examples/os-kit has two dependency-free demos — Allow + Act + Snip (deny → 30-minute Grant → allow → revoke → deny) and the Check regression gate. node examples/os-kit/demo.mjs needs only Node 22+; nothing is installed or published.

Docs: Quickstart · Validation plan · 0.2.0 smoke · Recipes (CI gate, agent writes, clipboard) · Troubleshooting.

Packages

Product Package Status Design
Act dsh-act 0.1.1 MVP design
Allow dsh-allow 0.1.2 MVP (security hardening) design
Snip dsh-snip 0.2.0 (Win/mac/Linux capture) design
Check @perrylink/dsh-check 0.2.0 (headless runner + diff) design
Nest dsh-nest 0.1.0 MVP design
Trigger dsh-trigger 0.2.0 (agent/fs/webhook sources) design
Seek dsh-seek 0.2.0 (locator + memento providers) design
Trace @perrylink/dsh-trace 0.2.0 (memento adapter) design
Stage dsh-stage 0.2.0 (macOS/Windows adapters) design
Ring dsh-ring 0.2.0 (webhook/ntfy/console) design
Root @perrylink/dsh-root 0.1.2 MVP design
Help dsh-help 0.1.0 optional install doctor / first run
Context @perrylink/dsh-context 0.1.0 optional context provider protocol
Cost @perrylink/dsh-cost 0.1.0 optional adapter for dsh-cost-meter
Backup @perrylink/dsh-backup 0.1.0 optional snapshot manifest / restore plan
Notify @perrylink/dsh-notify 0.1.0 optional channel registry / attention router
Shell @perrylink/dsh-os-shell 0.2.0 optional React client (Act/Snip/Check tabs)
CLI @perrylink/dsh-os-cli 0.1.0 tool dsh-os list/doctor/install
Contract @perrylink/dsh-os-contract 0.1.0 library constants, refs, manifest/tool validation
Kit dsh-os-kit 0.2.0 meta bundle installs Act + Allow + Snip + Check 0.2.0

Check, Trace, Root, Context, Cost, Backup, Notify, Shell, CLI and Contract use the @perrylink/ scope where npm's name-similarity rules require it; the product names stay bare.

dsh-os structure: packages/* becomes standalone DSH bundles, each with its own cordis.patch.yml layer, installed by dsh plugin add (or the dependency-only dsh-os-kit) and exposing one ctx service; test-all, conformance, pack-smoke, check-versions and examples-smoke are the local gates, and the dsh-check gate diffs two run JSON files to a REGRESSION

Structure: package → patch layer → service → gate; dsh-os-kit installs Act + Allow + Snip + Check in one command, and the same gates run in CI and locally. The token labels inside the diagram are the real package, service and command names, so the same picture serves all five languages.

Install

# one-shot: the four core modules
dsh plugin --profile web add dsh-os-kit

# or individually
dsh plugin --profile web add dsh-act
dsh plugin --profile web add dsh-allow
dsh plugin --profile web add dsh-snip
dsh plugin --profile web add dsh-nest
dsh plugin --profile web add dsh-trigger
dsh plugin --profile web add dsh-seek
dsh plugin --profile web add dsh-stage
dsh plugin --profile web add dsh-ring
dsh plugin --profile web add @perrylink/dsh-check
dsh plugin --profile web add @perrylink/dsh-root
dsh plugin --profile web add @perrylink/dsh-trace

# optional small modules
dsh plugin --profile web add dsh-help
dsh plugin --profile web add @perrylink/dsh-context
dsh plugin --profile web add @perrylink/dsh-cost
dsh plugin --profile web add @perrylink/dsh-backup
dsh plugin --profile web add @perrylink/dsh-notify
dsh plugin --profile web add @perrylink/dsh-os-shell

# catalog CLI (no network, prints install plans)
npm i -g @perrylink/dsh-os-cli
dsh-os list
dsh-os doctor

Repository layout

packages/    one npm package per primitive
examples/    dependency-free runnable demos
docs/        design notes and the implementation contract
scripts/     scaffold, test and publish helpers

Status

Twenty packages ship a 0.1.x/0.2.x MVP: services, agent tools, tests and a bundle manifest (libraries/CLI where applicable). 0.2.0 adds the first real adapters: Check headless runner, Snip clipboard capture, Trigger agent/fs/webhook sources, Seek locator/memento providers, Stage macOS/Windows windows, Trace memento adapter, Ring webhook/ntfy/console channels and the React shell. node scripts/test-all.mjs runs 21 suites; npm run verify runs the full four-gate release check.

Development

dsh-os real run: the zero-install demo walks deny → 30-minute Grant → allow → revoke → deny in 6/6 steps, the dsh-check gate reports a REGRESSION and exits 1, and conformance passes 20 packages with 0 errors

Animated: the real stdout of node examples/os-kit/demo.mjs, bash examples/os-kit/check-demo/run-check-demo.sh and node scripts/conformance.mjs on 2026-11-21 (selected lines; Grant ids and clipboard:// handles differ per run). Nothing is installed and no network is used.

node scripts/scaffold.mjs
node scripts/test-all.mjs
node scripts/publish.mjs act allow   # requires NPM_TOKEN

CI and release

CI (.github/workflows/ci.yml) runs on a Node 22 + 24 matrix with the npm cache enabled, and executes four gates in order:

node scripts/test-all.mjs
node scripts/conformance.mjs
node scripts/pack-smoke.mjs
node scripts/check-versions.mjs
  • pack-smoke runs npm pack --dry-run --json for every packages/* and fails if the tarball lacks package.json, index.js, cordis.patch.yml, README.md or LICENSE.
  • check-versions fails on an invalid version, an engines.dsh range without an upper bound, a publishConfig.registry that is not npmjs, or a non-empty dependencies.

The same sequence, including the package tests, runs locally as npm run verify.

Releases are never published automatically. .github/workflows/release.yml is workflow_dispatch-only: it takes a comma-separated package input (directory names such as act,allow or npm names such as dsh-act), runs the same gates on Node 24, then npm packs only the selected packages and uploads the tarballs as a build artifact. Publishing is a manual maintainer step: it needs the NPM_TOKEN repository secret (a granular npm token allowed to publish dsh-* and @perrylink/*), an approval-protected environment, and an explicit npm publish of the reviewed tarballs. The workflow never runs npm publish.

Community, RFCs and feedback

  • Launch and support notes: docs/community/launch.md — what works today, what is still 0.3.0, and the official post / directory submission drafts.
  • Upstream RFCs (suggestions, not requirements): ctx.actions, ctx.grant, ctx.triggers.
  • Telemetry: docs/telemetry.md — off by default; no telemetry or network code ships in 0.1.x.
  • Contributing: CONTRIBUTING.md, issue templates and the pull request template.
  • Not affiliated with DeepSeek. DeepSeek and DeepSeek Harness are trademarks of their respective owners.

License

MIT.

—/ 5

暂无评分

需要先验证清单

Commit 260a1710fcf4

社区评论

还没有评论,来写第一条。

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于