dsh-smooth-stream 0.4.3 → 0.5.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 +13 -0
- package/README.md +13 -0
- package/lib/client.js +801 -1040
- package/lib/client.js.map +1 -1
- package/lib/index.js +6 -6
- package/package.json +11 -5
- package/src/client/AgentRowEntrance.module.css +43 -0
- package/src/client/FollowHost.tsx +18 -1
- package/src/client/SmoothStreamCard.tsx +10 -10
- package/src/client/TypewriterAssistantNodeView.tsx +15 -5
- package/src/client/TypewriterToolNodeView.tsx +9 -1
- package/src/client/clientStore.ts +71 -12
- package/src/client/index.ts +13 -29
- package/src/client/locales.ts +5 -5
- package/src/client/smooth-stream-card-controller.ts +6 -6
- package/src/client/smooth-stream-settings-api.ts +4 -4
- package/src/client/teleprompterGlide.ts +1021 -75
- package/src/plugin.ts +7 -6
- package/src/settings-api.ts +2 -2
- package/src/settings.ts +6 -8
- package/src/client/auto-collapse-controller.ts +0 -1072
package/README.en.md
CHANGED
|
@@ -111,6 +111,19 @@ To uninstall: `pnpm dsh plugin --profile web remove dsh-smooth-stream`.
|
|
|
111
111
|
|
|
112
112
|
---
|
|
113
113
|
|
|
114
|
+
## Kernel Compatibility
|
|
115
|
+
|
|
116
|
+
| DSH kernel | This plugin |
|
|
117
|
+
|---|---|
|
|
118
|
+
| 0.1.0-rc.5 - 0.1.0-rc.7 | ✅ all versions |
|
|
119
|
+
| 0.1.1-rc.2 | ✅ all versions |
|
|
120
|
+
| 0.1.2-alpha.1 - 0.1.2-alpha.3 | ✅ 0.4.3+; 0.4.2 and earlier fail to load on 0.1.2 because they statically import the removed helper |
|
|
121
|
+
|
|
122
|
+
- ✅ = compatible. `0.1.2-alpha.3` is the current host kernel and has been verified live (built-artifact import + test suites); the remaining kernels are covered by the dual-kernel-compatible design (one build, one API surface).
|
|
123
|
+
- **Kernel 0.1.2 removed the `settingsNamespace()` runtime helper** (on ≤ 0.1.1 it was a validating identity function; 0.1.2 keeps only the same-named type). This plugin does not statically import that symbol any more — it inlines its namespace constant locally and asserts it as the `SettingsNamespace` type, which works on both old and new kernels.
|
|
124
|
+
- Since 0.4.3 the plugin no longer statically imports `settingsNamespace()` (see the compat fix in git history); older versions only work on kernels ≤ 0.1.1.
|
|
125
|
+
- **Never statically import runtime symbols from `@deepseek-ai/*` packages.** The host CLI starts via `node --import tsx/esm`, and tsx applies the host `tsconfig` `paths` mapping, so a bare `@deepseek-ai/*` import from an external plugin may be redirected into the host's own sources — any host-side rename or removal then explodes at boot as a module instantiation error. Type-only imports (`import type`) are unaffected.
|
|
126
|
+
|
|
114
127
|
## Presets & Configuration
|
|
115
128
|
|
|
116
129
|
The plugin defaults to `preset: balanced`. You can tune the cadence in your profile's `cordis.patch.yml`:
|
package/README.md
CHANGED
|
@@ -110,6 +110,19 @@ Host 日志中显示 `[dsh-smooth-stream] plugin loaded!` 即表示已成功加
|
|
|
110
110
|
|
|
111
111
|
---
|
|
112
112
|
|
|
113
|
+
## 内核兼容性
|
|
114
|
+
|
|
115
|
+
| DSH 内核 | 本插件支持情况 |
|
|
116
|
+
|---|---|
|
|
117
|
+
| 0.1.0-rc.5 ~ 0.1.0-rc.7 | ✅ 全部版本 |
|
|
118
|
+
| 0.1.1-rc.2 | ✅ 全部版本 |
|
|
119
|
+
| 0.1.2-alpha.1 ~ 0.1.2-alpha.3 | ✅ 0.4.3 起;0.4.2 及更早版本因静态导入已移除的助手而在 0.1.2 上加载失败 |
|
|
120
|
+
|
|
121
|
+
- ✅ = 兼容。`0.1.2-alpha.3` 为当前宿主内核,已实测(产物导入 + 测试套件);其余内核按双内核兼容设计支持(同一份构建、同一 API 面)。
|
|
122
|
+
- **0.1.2 起内核移除了 `settingsNamespace()` 运行时助手**(≤ 0.1.1 上它只是个校验恒等函数,0.1.2 仅保留同名类型)。本插件不静态导入该符号,而是在注册设置命名空间时本地内联常量并断言为 `SettingsNamespace` 类型,新旧内核通用。
|
|
123
|
+
- 0.4.3 起不再静态导入 `settingsNamespace()`(见 git 历史中的兼容修复);更早版本仅在 ≤ 0.1.1 内核上可用。
|
|
124
|
+
- **不要对 `@deepseek-ai/*` 包的运行时符号做静态导入**。宿主 CLI 经 `node --import tsx/esm` 启动,tsx 会应用宿主 `tsconfig` 的 `paths` 映射,外部插件对 `@deepseek-ai/*` 的裸导入可能被重定向进宿主源码,一旦宿主侧改名/删符号就会以模块实例化错误的形式炸掉启动。类型导入(`import type`)不受影响。
|
|
125
|
+
|
|
113
126
|
## 配置与手感预设
|
|
114
127
|
|
|
115
128
|
插件默认采用 `preset: balanced`。如需切换手感,可在对应 profile 的 `cordis.patch.yml` 中修改:
|