Overview
dsh-model-cascade
README / EN
Package documentation
Registry summary
dsh.pub verifies the pinned bundle contract, runtime facts, and distribution semantics. The complete README remains in the source repository.
Read the full README on GitHubLIMITATIONS
Known limitations
- **声明依赖与实际 require 不一致**:`package.json` 的 `dsh.client.inject` 声明了 `@deepseek-ai/dsh-client-locale` 与 `@deepseek-ai/dsh-client-ui-model-selection`; 而 `lib/client.js` 实际 `require` 的是 `react`、`react/jsx-runtime`、 `@deepseek-ai/dsh-client-ui-primitives`(用到 `Toast`、`IconCheckOutline16`、 `IconChevronRightOutline14`、`IconChevronDownOutline14`、`IconChevronLeftOutline14`、 `IconWarningOutline16`)。也就是说:真正被 require 的 `ui-primitives` 未声明, 声明的 `ui-model-selection` 从未被 require(它只作为被遮蔽的服务提供方间接存在)。 - `lib/client.js` 是**预构建产物**(`window.__ModuleLoader__.load` 工厂 + `react/jsx-runtime` 编译后的 `jsx`/`jsxs` 调用),不是可直接阅读的 ESM/JSX 源码;源码形态未随包提供。 - **系列分组是启发式的**:完全按 id 文本切分,不看模型元数据。同一系列命名不统一 (例如带版本号的 `-v4` 前缀差异)会裂成多个系列;这仅是显示层的分组,选择时提交的始终是 供应商分组 id + 完整模型 id。 - **CSS 与锚点硬编码**:样式只注入一次,判重键是 `data-plugin-css="dsh-model-cascade/ModelCascadeSelect.module.css"`;Toast 的 `anchor` 依赖 `[data-composer-card]` 这个属性选择器;宽度/高度用的是 `min(280px, 100vw - 32px)` 与 `min(420px, 100vh - 96px)` 固定值。 - 宿主半**没有任何行为**:无服务、无 model 工具、无命令、无事件监听、无 HTTP 路由、无设置命名空间—— 想通过它暴露能力需要另行扩展 `lib/index.js`。 - `modelDirectories` / `sessions.subagentAddress` / `remote.session` 等都是 DSH 0.1.5-rc.1 服务层的内部契约;服务重命名或签名变化时,本插件会在注册阶段或首次 `directoryFor` 时失败。
