dsh-code 1.2.0 → 1.3.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/README.en.md +5 -5
- package/README.md +5 -5
- package/lib/index.mjs +955 -233
- package/lib/startup.mjs +1 -1
- package/lib/{theme-7u5Qo3dF.mjs → theme-B3orFUYz.mjs} +8 -0
- package/lib/types/app.d.ts +20 -0
- package/lib/types/attachments.d.ts +16 -7
- package/lib/types/history.d.ts +10 -0
- package/lib/types/index.d.ts +1 -1
- package/lib/types/kernel-panels.d.ts +3 -1
- package/lib/types/locales/en.d.ts +49 -1
- package/lib/types/render/status.d.ts +4 -1
- package/lib/types/session-directory.d.ts +25 -1
- package/lib/types/session-switch.d.ts +8 -0
- package/lib/types/update-panel.d.ts +22 -1
- package/lib/types/version.d.ts +2 -0
- package/package.json +7 -5
- package/src/app.ts +288 -166
- package/src/attachments.ts +65 -19
- package/src/authorization-panel.ts +5 -2
- package/src/fork.ts +11 -7
- package/src/history.ts +14 -0
- package/src/index.ts +92 -53
- package/src/input-split.ts +24 -4
- package/src/kernel-panels.ts +60 -27
- package/src/locales/en.ts +50 -1
- package/src/locales/zh.ts +50 -1
- package/src/rainbow.ts +13 -3
- package/src/render/status.ts +80 -29
- package/src/render/text.ts +2 -1
- package/src/session-directory.ts +82 -3
- package/src/session-switch.ts +14 -0
- package/src/store.ts +19 -1
- package/src/update-panel.ts +112 -5
- package/src/version.ts +5 -0
package/README.en.md
CHANGED
|
@@ -31,16 +31,16 @@ Install from npm (recommended). `/update` and `deepseek update --apply` both wor
|
|
|
31
31
|
|
|
32
32
|
```sh
|
|
33
33
|
npm install -g @deepseek-ai/dsh@0.1.5-rc.2 pnpm
|
|
34
|
-
npm install -g dsh-code@1.
|
|
35
|
-
dsh plugin --profile cli add dsh-code@1.
|
|
34
|
+
npm install -g dsh-code@1.3.0
|
|
35
|
+
dsh plugin --profile cli add dsh-code@1.3.0
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
When npm is unreachable (restricted network, a mirror outage), install the GitHub Release tarball instead. CI builds it on every tag and attaches it to the release; lib is prebuilt, so the installing machine needs no toolchain:
|
|
39
39
|
|
|
40
40
|
```sh
|
|
41
41
|
npm install -g @deepseek-ai/dsh@0.1.5-rc.2 pnpm
|
|
42
|
-
npm install -g https://github.com/unlinearity/dsh-code/releases/download/1.
|
|
43
|
-
dsh plugin --profile cli add https://github.com/unlinearity/dsh-code/releases/download/1.
|
|
42
|
+
npm install -g https://github.com/unlinearity/dsh-code/releases/download/1.3.0/dsh-code-1.3.0.tgz
|
|
43
|
+
dsh plugin --profile cli add https://github.com/unlinearity/dsh-code/releases/download/1.3.0/dsh-code-1.3.0.tgz
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
> npm script prompts: npm 11.6+ may print `npm warn install-scripts` during a global install (unapproved build scripts for node-pty, koffi, and friends). The host ships prebuilt artifacts, so common platforms can ignore the warning; if a native-module error appears after installing, follow npm's own hint and rerun with `npm install -g --allow-scripts=<package list>`.
|
|
@@ -331,7 +331,7 @@ pnpm lint # type-aware ESLint over src, tests, scripts, and the root
|
|
|
331
331
|
pnpm typecheck # the build project (src)
|
|
332
332
|
pnpm typecheck:tests # the spec suite and scripts
|
|
333
333
|
pnpm test
|
|
334
|
-
pnpm test:coverage # coverage report
|
|
334
|
+
pnpm test:coverage # coverage report with a conservative regression floor
|
|
335
335
|
pnpm build
|
|
336
336
|
pnpm verify # lint + both typechecks + tests in one pass
|
|
337
337
|
pnpm run gen:whale # regenerate src/whale-glyph.ts from the vendored logo path
|
package/README.md
CHANGED
|
@@ -33,16 +33,16 @@ DeepSeek Harness 将模型、工具、存储、策略和界面作为插件,通
|
|
|
33
33
|
|
|
34
34
|
```sh
|
|
35
35
|
npm install -g @deepseek-ai/dsh@0.1.5-rc.2 pnpm
|
|
36
|
-
npm install -g dsh-code@1.
|
|
37
|
-
dsh plugin --profile cli add dsh-code@1.
|
|
36
|
+
npm install -g dsh-code@1.3.0
|
|
37
|
+
dsh plugin --profile cli add dsh-code@1.3.0
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
npm 不可达时(网络受限、镜像临时故障),改用 GitHub Release tarball。每次打 tag 由 CI 构建并挂到 Release,lib 已预构建,安装机不需要工具链:
|
|
41
41
|
|
|
42
42
|
```sh
|
|
43
43
|
npm install -g @deepseek-ai/dsh@0.1.5-rc.2 pnpm
|
|
44
|
-
npm install -g https://github.com/unlinearity/dsh-code/releases/download/1.
|
|
45
|
-
dsh plugin --profile cli add https://github.com/unlinearity/dsh-code/releases/download/1.
|
|
44
|
+
npm install -g https://github.com/unlinearity/dsh-code/releases/download/1.3.0/dsh-code-1.3.0.tgz
|
|
45
|
+
dsh plugin --profile cli add https://github.com/unlinearity/dsh-code/releases/download/1.3.0/dsh-code-1.3.0.tgz
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
> npm 脚本提示:npm 11.6+ 可能在全局安装时提示 `npm warn install-scripts`(node-pty、koffi 等原生依赖的构建脚本未获批准)。宿主随包自带预编译产物,常规平台可直接忽略;若安装后出现原生模块报错,按 npm 提示执行 `npm install -g --allow-scripts=<包名列表>` 后重装。
|
|
@@ -339,7 +339,7 @@ pnpm lint # ESLint(类型敏感):src、tests、scripts、根配
|
|
|
339
339
|
pnpm typecheck # 构建项目的类型检查(src)
|
|
340
340
|
pnpm typecheck:tests # 测试套件与 scripts 的类型检查
|
|
341
341
|
pnpm test
|
|
342
|
-
pnpm test:coverage #
|
|
342
|
+
pnpm test:coverage # 覆盖率报告,并执行保守的防退化门槛
|
|
343
343
|
pnpm build
|
|
344
344
|
pnpm verify # lint + 两个类型检查 + 测试,一次跑完
|
|
345
345
|
pnpm run gen:whale # 从 vendored Logo 路径重新生成 src/whale-glyph.ts
|