{"versions":{"0.1.6":{"name":"dsh-client-liang-intensity-skin","version":"0.1.6","description":"滑动变祖：an opt-in adaptive reasoning slider skin for DeepSeek Harness","repository":{"type":"git","url":"git+https://github.com/kingOfSoySauce/dsh-liang-skin.git"},"homepage":"https://github.com/kingOfSoySauce/dsh-liang-skin#readme","bugs":{"url":"https://github.com/kingOfSoySauce/dsh-liang-skin/issues"},"type":"module","main":"./src/index.js","exports":{".":"./src/index.js","./client":"./lib/client.js","./package.json":"./package.json"},"scripts":{"build":"node ./scripts/build-client.mjs","test":"vitest run","verify:package":"node ./scripts/verify-package.mjs","pack:check":"npm run verify:package && npm pack --dry-run","pack":"npm run verify:package && npm pack","check":"npm run build && npm test && npm run pack:check","debug":"node ./scripts/debug-install.mjs","prepublishOnly":"npm run check"},"engines":{"node":">=20.19"},"keywords":["deepseek-harness","dsh","dsh-plugin","skin","web"],"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web","inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-ui-conversation","@deepseek-ai/dsh-client-ui-model-selection","@deepseek-ai/dsh-client-ui-settings","@deepseek-ai/dsh-client-ui-theme","@deepseek-ai/dsh-client-ui-settings-general","@deepseek-ai/dsh-client-locale","@deepseek-ai/dsh-api-remotes"]}},"devDependencies":{"@types/react":"~18.3.1","esbuild":"^0.25.0","vitest":"^4.1.10"},"gitHead":"f65bf387a4a3e3f4680dd6bb63e7f30d20455543","_id":"dsh-client-liang-intensity-skin@0.1.6","_nodeVersion":"24.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-4sdGOlhZJDNOWwbIB95EoisINw9pL/nDNdhCNHhhrXCj4wddCZkatJfUgkcyq3axPO0SCcXwuwfrudCPWvwnMA==","shasum":"42b8063088e3d46d206aa7715a50919e26d0df1b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dsh-client-liang-intensity-skin/-/dsh-client-liang-intensity-skin-0.1.6.tgz","fileCount":32,"unpackedSize":30899484,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAdjEnND74JT4N5ss8ZtmiV3eKT1Vx0SaBYPHApIGJSRAiEAkn/i2wKBfJoINwsRuSbJMBJOT/ODs11GIhDLhTq6jU0="}],"size":30787603},"_npmUser":{"name":"anonymous","email":"wspankai@163.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"wspankai@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-client-liang-intensity-skin_0.1.6_1787153773290_0.18145838632796707"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-19T15:36:13.810Z","publish_time":1787153773810,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"0.1.6"},"name":"dsh-client-liang-intensity-skin","time":{"created":"2026-08-19T15:37:23.723Z","modified":"2026-08-19T15:37:26.591Z","0.1.6":"2026-08-19T15:36:13.810Z"},"readme":"# 滑动变祖 · DeepSeek Harness 皮肤\n\n## 安装\n\n- #### 方法一， 提示词安装：\n<details>\n   <summary>&emsp;&emsp;点击展开提示词</summary>\n\n复制以下提示词给 DSH；会先排查冲突再安装，所以较长：\n\n```text\n请把“滑动变祖”皮肤安装到 DSH 的 web profile。必须先检查冲突，确认可以继续后再安装。\n\n1. 安装前只读检查 web profile 的 package.json（dependencies 与 dsh.profile.bundles）、profile 的 cordis.patch.yml 和 $DSH_HOME/cordis.patch.yml（如有）。\n2. 从当前启用的 bundles 中识别其他皮肤、主题或外观插件：排除 @deepseek-ai/dsh-base、@deepseek-ai/dsh-web-app、dsh-skin-market 和本次目标 dsh-client-liang-intensity-skin；读取候选 package.json 的名称、描述、dsh.client/dsh.bundle 声明，必要时再读 README。\n3. 如果发现其他已启用的皮肤插件，列出它们并停在安装前，提醒我先停用；未经我确认不得修改任何 profile 文件，也不得执行安装。\n4. 如果没有冲突，明确说“未检测到其他已启用的皮肤插件”，然后执行：\n\ndsh plugin --profile web add 'github:kingOfSoySauce/dsh-liang-skin'\n\n5. 安装后读取 web profile 的 package.json，确认 dependencies 和 dsh.profile.bundles 中都有 dsh-client-liang-intensity-skin；再检查目标 package.json 的 dsh.client/dsh.bundle 声明和 liang-intensity-skin loader 注册项。任一缺失都要报告安装或注册失败。\n6. 告诉我如何重启 DSH Web。不要替我安装、停用或卸载其他皮肤。\n```\n\n</details>\n\n-  #### 方法二(推荐)，安装[皮肤市场](https://github.com/kingOfSoySauce/dsh-skin-market#安装皮肤市场)插件后，搜索“滑动变祖”，一键安装\n\n-  #### 方法三， 或者[命令安装](#cli-install)；运行前请关闭其他皮肤插件，避免冲突\n\n## 更多 DSH 皮肤\n\n更多社区皮肤，点击[在线浏览皮肤市场](https://kingofsoysauce.github.io/dsh-skin-market/)\n\n## 效果展示\n\n<table>\n  <tr>\n    <td width=\"50%\" align=\"center\">\n      <img src=\"docs/preview.png\" alt=\"滑动变祖皮肤效果截图\" width=\"100%\">\n      <br>\n    </td>\n    <td width=\"50%\" align=\"center\">\n      <img src=\"docs/demo.gif\" alt=\"滑动变祖交互演示\" width=\"100%\">\n      <br>\n    </td>\n  </tr>\n</table>\n\n\n## 交互规则\n\n- 档位直接读取当前模型的 `reasoning.efforts`，不写死数量或名称。\n- 任意 N 个档位均匀落在 0–30：两档为 `0 / 30`，三档为 `0 / 15 / 30`，五档为 `0 / 7.5 / 15 / 22.5 / 30`。\n- 拖动期间只做连续视觉预览；指针松开、键盘操作完成或控件失焦时，才吸附到最近档位并通过官方 ModelDirectory 提交该档位原始 ID。\n- 不支持推理或只有一个可选档位的模型不显示滑块。\n- addressed subagent 不显示也不提交滑块。\n\n## 外观开关\n\n入口位于 `设置 → 通用设置 → 外观皮肤`：\n\n- `滑动变祖`：显示滑块并启用人物、背景和自适应配色。\n- `原生`：移除背景层、皮肤变量和滑块，恢复 Harness 原生界面。\n\n选择保存在当前浏览器本地，不会改动模型配置。\n\n<a id=\"cli-install\"></a>\n\n## 命令安装\n\n需要先安装 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)；当前版本已在 `0.1.0-rc.6` 上验证。安装本身可以在 DSH 运行时执行（只改动磁盘配置），重启后生效。四种方式任选其一：\n\n> 安装前请确保已关闭其他皮肤插件，避免冲突。\n\n### 方式一：从 npm 安装（推荐）\n\n```sh\ndsh plugin --profile web add dsh-client-liang-intensity-skin\ndsh --profile web --dump-config | grep -B1 -A2 liang-intensity\n```\n\nnpm 包内包含预构建的 `lib/client.js`，安装时不需要执行构建脚本。\n\n### 方式二：从 GitHub 安装最新版\n\n```sh\ndsh plugin --profile web add 'github:kingOfSoySauce/dsh-liang-skin'\ndsh --profile web --dump-config | grep -B1 -A2 liang-intensity\n```\n\n### 方式三：从 GitHub Release tarball 安装\n\n从本仓库 [Releases](https://github.com/kingOfSoySauce/dsh-liang-skin/releases) 页面下载 `dsh-client-liang-intensity-skin-0.1.6.tgz`（包内已包含构建好的 `lib/client.js`，安装时不需要执行任何 prepare 脚本），然后：\n\n```sh\ndsh plugin --profile web add ./dsh-client-liang-intensity-skin-0.1.6.tgz\n```\n\n\n适合不方便走 git 的环境；相对路径按你运行命令的目录解析。\n\n### 方式四：克隆后从本地路径安装（开发迭代）\n\n```sh\ngit clone https://github.com/kingOfSoySauce/dsh-liang-skin.git\ncd dsh-liang-skin\ndsh plugin --profile web add .\n```\n\n\n`dsh plugin` 会把相对路径锚定到**你运行命令的目录**（而不是 profile 目录），所以在克隆目录里执行 `add .` 装的是指向克隆目录的 link 依赖：改完源码运行 `npm run build`，重启 DSH 即生效，无需重新安装。\n\n也可以使用项目脚本完成构建和 link 安装：\n\n```sh\nnpm ci\nnpm run debug -- --profile web\n```\n\n### 验证与重启\n\n安装成功后 `dsh plugin` 会自动把插件注册进 profile 的 `dsh.profile.bundles`（见 `~/.dsh/profiles/web/package.json`），无需手动改配置；`--dump-config` 的输出中应出现 `dsh-client-liang-intensity-skin` 配置层（上面命令里的 grep 就是为此准备的）。\n\n如果正式 DSH 正在运行，让执行安装的 agent 给用户两个选择：\n\n- **a. agent 自行重启**：agent 终止旧进程后重新运行 `dsh web`；\n- **b. 用户手动重启（推荐）**：在运行 DSH 的终端按 Ctrl+C，再运行 `dsh web`。\n\n重启后浏览器会自动加载新的客户端插件，无需强制刷新。当前会话会中断，但 DSH 会话有磁盘持久化，重启后可以恢复。\n\n### 卸载\n\n```sh\ndsh plugin --profile web remove dsh-client-liang-intensity-skin\n```\n\n`remove` 会自动把插件从 `dsh.profile.bundles` 中摘除；重启后设置入口完全移除。\n\n### 常见问题\n\n- **pnpm 阻止构建脚本**：pnpm ≥ 10 默认不执行第三方依赖的 build/prepare 脚本。当前皮肤没有 prepare 脚本，正常不会触发；若 pnpm 安装失败并给出提示，按 dsh 打印的说明在 `~/.dsh/profiles/web/pnpm-workspace.yaml` 的 `allowBuilds` 下加入对应 key 后重试。\n- **网络**：方式一需要能访问 github.com（pnpm 经 codeload 拉取）；方式二只需能下载 GitHub Release 附件。\n- **pnpm 缺失**：`dsh plugin` 依赖 PATH 里的 pnpm，缺失时会明确提示。\n- **端口占用**：`dsh web` 默认监听 3080（可用 `--port` 修改），重启前确认旧进程已退出。\n\n## 本地开发\n\n```sh\nnpm install\nnpm test\nnpm run build\n```\n\n修改 client 源码后需要运行 `npm run build`，并一起提交更新后的 `lib/client.js` 和 source map。\n\n发布前运行 `npm run check`，它会依次执行构建、测试、manifest 校验和 `npm pack --dry-run`。确认 npm 登录状态和版本号后执行 `npm publish --access public`。\n\n更完整的实施与验收记录见 [`docs/PLAN.md`](docs/PLAN.md)。\n\n## 灵感与素材来源\n\n本插件的“滑动变祖”视觉概念与人物图片素材源自\n[Lichtspektrum/liang-intensity-calibrator](https://github.com/Lichtspektrum/liang-intensity-calibrator)。插件在原项目 0–30 强度轴的基础上，将视觉变化接入 DeepSeek Harness 的推理等级选择。\n\n运行时素材已包含在插件中，安装后不需要额外下载。当前接入 24 张经过审核的人像锚点，滑动时直接切换最近锚点，不做图片交叉渐变。","users":{}}