PerryLink/dsh-os--packages-shell ↗★ 1

@perrylink/dsh-os-shell

Optional UI shell for dsh-os: a view contribution registry, an owner-only JSON bridge and a minimal React client for approvals, activity, Act, Snip and Check.

包名
@perrylink/dsh-os-shell
兼容性
待验证
Harness 依赖范围
>=0.2.1-rc.2 <0.3.0-0
版本
0.3.0
许可证
MIT
最近更新
2026年11月21日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add @perrylink/dsh-os-shell

Shell · @perrylink/dsh-os-shell

The shell is optional. It is a contribution registry, an owner-only JSON bridge and a minimal client page, not a product. No module requires it; removing it leaves Act, Allow, Snip, Check, Nest, Trigger, Seek, Trace, Stage, Ring and Root working headless (CLI and agent tools). In a Web profile it adds an OS panel; in a non-Web profile it adds nothing visible.

Status: 0.3.0 — human oversight. ctx.osShell keeps the 0.1 view registry and open history, plus snapshot(). The optional Web page adds an approval inbox and an activity feed on top of Act, Snip and Check. When the profile has ctx.webServer, owner-only /api/os-approvals and /api/os-activity routes project ctx.allow and ctx.act; the page lives in ui/client.js, which is a hand-written module bundle: React is provided by the DSH host, so this package has no React dependency, no JSX and no build step.

Install

dsh plugin --profile web add @perrylink/dsh-os-shell

Requires Node 22.19+ (or Node 24.9+) and a DSH host in the >=0.2.1-rc.2 **Artifact contract:** the hand-written ModuleLoader` bundle follows the

shape DSH currently emits for in-tree client plugins, not a public API. Treat it as pinned to the supported DSH range and re-test when upgrading DSH.

The existing dsh.os.ui manifest (ui/index.js, a lazy list of dsh-os view descriptors) is separate from ./client and retained for 0.1 compatibility.

Rendering (Host)

import { render } from '@perrylink/dsh-os-shell'

render(ctx.osShell.listViews())
// …

Titles, ids and module names are HTML-escaped. This markup is for adapters without a React surface; it is not the Web panel.

Agent tools

ToolArgumentsResult
os_shell_views{}{ views: [{ id, title, module, mountable }] }
os_shell_open{ id }{ view, state: 'opened' }
os_shell_close{ id }{ view, state: 'closed' }

All are plain ToolDefinition objects, with mount replaced by a boolean mountable flag so functions never cross the tool boundary.

Non-goals (0.3.0)

  • No routing, theme engine, window management or keyboard shortcuts.
  • No React/JSX build pipeline and no React package dependency.
  • No policy editor, grant issuance, batch approval or auto-approval. Allow owns every decision; the shell never mints a grant or widens a scope.
  • No Snip write operations, Check runner or persistence in the UI.
  • No network, telemetry or secret collection beyond the owner-only API.

Test

cd packages/shell && node --test

Covers the fake-webServer Host routes, snapshot aggregation, missing services, the approval list/approve/deny paths (missing by, machine identity, self-approval, invalid id, absent Allow), activity merging and the client bundle contract (node --check plus slot registration and tab/API markers).

License

MIT. Not affiliated with DeepSeek; DeepSeek and DeepSeek Harness are trademarks of their respective owners.