dsh-code 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 unlinearity
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # dsh-code
2
+
3
+ English | [中文](README.zh.md)
4
+
5
+ A Claude-Code-style interactive terminal (TUI) bundle for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (`dsh`), installed as an out-of-tree plugin bundle over the official `@deepseek-ai/dsh-base` — the same plugin ecosystem the official web surface composes, nothing forked.
6
+
7
+ ## What you get
8
+
9
+ - DeepSeek-blue banner: the whale wordmark rasterized half-block from the exact FishLogo path, in a compact content-hugging header
10
+ - Live transcript streamed from the durable session log: user prompts, streaming assistant text, compact tool-call rows with running/done/error marks, todo snapshots
11
+ - A blended status line: Claude-Code-style identity facts (model, working directory, git branch, session) beside the web composer's figures (turns/steps, llm and tool wall time, cache hit, token totals)
12
+ - `/help`, `/clear`, `/quit` local commands; Ctrl+C/Ctrl+D quits after flushing the session
13
+
14
+ ## Install
15
+
16
+ Requires Node `^22.19 || >=24` and the `dsh` CLI (`npm i -g @deepseek-ai/dsh@next`).
17
+
18
+ ```sh
19
+ dsh plugin --profile cli add dsh-code # from npm, once published
20
+ dsh plugin --profile cli add github:unlinearity/dsh-code # track this repo
21
+ dsh plugin --profile cli add file:C:/path/to/dsh-code # local checkout
22
+ ```
23
+
24
+ Then:
25
+
26
+ ```sh
27
+ dsh --profile cli
28
+ ```
29
+
30
+ Set `DEEPSEEK_API_KEY` in your environment (or a `.env` in the launch directory or `$DSH_HOME`).
31
+
32
+ Git-hosted plugins build on install via their install scripts, which pnpm blocks until allowed: if an `add` fails, append the key it prints under `allowBuilds` in `~/.dsh/profiles/cli/pnpm-workspace.yaml` and re-run.
33
+
34
+ ## Develop
35
+
36
+ ```sh
37
+ pnpm install
38
+ pnpm test # vitest unit tests
39
+ pnpm typecheck
40
+ pnpm build # tsdown bundles lib/*.mjs, tsc emits lib/types
41
+ pnpm run gen:whale # regenerate src/whale-glyph.ts from the vendored logo path
42
+ ```
43
+
44
+ The whale glyph is generated from the DeepSeek fish-logo path vendored in `scripts/fish-logo.ts` (source: [deepseek-harness](https://github.com/deepseek-ai/deepseek-harness), MIT).
45
+
46
+ ## License
47
+
48
+ [MIT](LICENSE). The vendored fish-logo geometry is from DeepSeek Harness (MIT).
package/README.zh.md ADDED
@@ -0,0 +1,48 @@
1
+ # dsh-code
2
+
3
+ [English](README.md) | 中文
4
+
5
+ 为 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)(`dsh`)打造的 Claude-Code 式交互终端(TUI)bundle,以树外插件 bundle 的形式组合在官方 `@deepseek-ai/dsh-base` 之上——与官方 Web 界面同一套插件生态,零 fork。
6
+
7
+ ## 功能
8
+
9
+ - DeepSeek 蓝横幅:鲸鱼字标由官方 FishLogo 精确路径半块栅格化,头部贴内容宽度、紧凑不占满
10
+ - 实时会话流:直接从持久会话日志投影——用户输入、流式助手文本、紧凑工具调用行(运行/完成/出错标记)、todo 快照
11
+ - 融合型状态栏:Claude Code 式身份信息(模型、工作目录、git 分支、会话)+ Web 作曲栏指标(轮数/步数、llm 与 tool 累计时长、缓存命中、token 总量)
12
+ - 本地命令 `/help`、`/clear`、`/quit`;Ctrl+C/Ctrl+D 退出前先 flush 会话
13
+
14
+ ## 安装
15
+
16
+ 需要 Node `^22.19 || >=24` 与 `dsh` CLI(`npm i -g @deepseek-ai/dsh@next`)。
17
+
18
+ ```sh
19
+ dsh plugin --profile cli add dsh-code # npm 发布后
20
+ dsh plugin --profile cli add github:unlinearity/dsh-code # 跟踪本仓库
21
+ dsh plugin --profile cli add file:C:/path/to/dsh-code # 本地目录
22
+ ```
23
+
24
+ 然后:
25
+
26
+ ```sh
27
+ dsh --profile cli
28
+ ```
29
+
30
+ 在环境变量(或启动目录 / `$DSH_HOME` 的 `.env`)里设置 `DEEPSEEK_API_KEY`。
31
+
32
+ git 安装会在安装期执行构建脚本,pnpm 会先行拦截:若 `add` 失败,按提示把对应键加入 `~/.dsh/profiles/cli/pnpm-workspace.yaml` 的 `allowBuilds` 后重试。
33
+
34
+ ## 开发
35
+
36
+ ```sh
37
+ pnpm install
38
+ pnpm test # vitest 单元测试
39
+ pnpm typecheck
40
+ pnpm build # tsdown 打包 lib/*.mjs,tsc 产出 lib/types
41
+ pnpm run gen:whale # 从 vendor 的官方路径重新生成 src/whale-glyph.ts
42
+ ```
43
+
44
+ 鲸鱼点阵由 `scripts/fish-logo.ts` 中 vendor 的 DeepSeek 鱼形 Logo 路径生成(来源:[deepseek-harness](https://github.com/deepseek-ai/deepseek-harness),MIT)。
45
+
46
+ ## 许可
47
+
48
+ [MIT](LICENSE)。vendor 的鱼形 Logo 几何数据来自 DeepSeek Harness(MIT)。
@@ -0,0 +1,28 @@
1
+ # The dsh-tui bundle patch: the interactive terminal app over dsh-base.
2
+ # It mounts no Host, HTTP server, or browser plugin. The runner creates one
3
+ # Agent through the core registry, renders the live session stream as an
4
+ # Ink TUI (DeepSeek blue, whale wordmark), and folds submitted prompts back
5
+ # into the same durable session until the user quits.
6
+
7
+ - id: system-prompt
8
+ config:
9
+ persona: >-
10
+ You are a coding agent powered by the {{model}} model. Your working directory is {{cwd}}.
11
+
12
+ # The shared module-reload HMR row stays off; the launcher's watch-only
13
+ # fallback still keeps the user patch layers live until the app exits.
14
+ - id: hmr
15
+ disabled: true
16
+
17
+ - id: tools
18
+ config:
19
+ # Keep the same temporary process-wide Code Mode opt-in as the Web surface.
20
+ mode: !!js process.env.DSH_TOOLS_MODE
21
+
22
+ - insert:
23
+ # Code Mode is a core execution capability, not a Web component.
24
+ - id: code-runtime
25
+ name: '@deepseek-ai/dsh-code-runtime-worker-thread'
26
+
27
+ - id: tui-runner
28
+ name: 'dsh-code'