{"versions":{"0.1.0":{"name":"dsh-live2d-pet","version":"0.1.0","description":"Live2D companion for DeepSeek Harness: render a Cubism model (e.g. the official Haru sample) in the web UI with state-driven expressions and mouse tracking. · DSH 桌宠的 Live2D 渲染插件","type":"module","main":"lib/index.mjs","exports":{".":"./lib/index.mjs","./client":"./lib/client.js","./package.json":"./package.json"},"private":false,"dsh":{"bundle":{"patch":"./cordis.patch.yml"},"client":{"inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-connection"],"platform":"web"}},"scripts":{"build":"tsdown","typecheck":"tsc --noEmit"},"dependencies":{"pixi.js":"^6.5.10","pixi-live2d-display":"^0.4.0","react":"^18.2.0"},"devDependencies":{"@deepseek-ai/cordis":"^4.0.1","@types/react":"~18.3.1","react-dom":"^18.2.0","tsdown":"^0.22.2","typescript":"^6.0.3"},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.1","react":"^18.2.0","react-dom":"^18.2.0"},"keywords":["deepseek-harness","dsh","cordis","plugin","live2d","cubism","pet","companion","vtub","pixi"],"license":"MIT","gitHead":"4e2f8409423c10e39c3c080216e62258cb89faf3","_id":"dsh-live2d-pet@0.1.0","_nodeVersion":"24.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-akytDudIlhReqppujI0xeztTdNhKS20fGUB8RPxBodDiSxoWLV+hIWLVPgAxSWfmTf7FzzpQqNTBz6rgSSALAw==","shasum":"1770c2cb320994e551ffc26967ea8a8eb25b7324","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dsh-live2d-pet/-/dsh-live2d-pet-0.1.0.tgz","fileCount":29,"unpackedSize":5060108,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC97o15EpgMo08uPCL4ymZy9h+UC8xKNB7aOjSHsQjF1AIgDjc2AlLq27+RLNN31UwjakE7W/c/Q1SBNyxn7jz4emo="}],"size":3272089},"_npmUser":{"name":"anonymous","email":"78797297@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"78797297@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-live2d-pet_0.1.0_1786899853681_0.97784890970227"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-16T17:04:13.924Z","publish_time":1786899853924,"_source_registry_name":"default","contributors":[]},"0.1.1":{"name":"dsh-live2d-pet","version":"0.1.1","description":"Live2D companion for DeepSeek Harness: render a Cubism model (e.g. the official Haru sample) in the web UI with state-driven expressions and mouse tracking. · DSH 桌宠的 Live2D 渲染插件","type":"module","main":"lib/index.mjs","exports":{".":"./lib/index.mjs","./client":"./lib/client.js","./package.json":"./package.json"},"private":false,"dsh":{"bundle":{"patch":"./cordis.patch.yml"},"client":{"inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-connection"],"platform":"web"}},"scripts":{"build":"tsdown","typecheck":"tsc --noEmit"},"dependencies":{"pixi.js":"^6.5.10","pixi-live2d-display":"^0.4.0","react":"^18.2.0"},"devDependencies":{"@deepseek-ai/cordis":"^4.0.1","@types/react":"~18.3.1","react-dom":"^18.2.0","tsdown":"^0.22.2","typescript":"^6.0.3"},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.1","react":"^18.2.0","react-dom":"^18.2.0"},"keywords":["deepseek-harness","dsh","cordis","plugin","live2d","cubism","pet","companion","vtub","pixi"],"license":"MIT","gitHead":"4e2f8409423c10e39c3c080216e62258cb89faf3","_id":"dsh-live2d-pet@0.1.1","_nodeVersion":"24.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-2IBiC1D6oz0haUh5HnFIPJBS4Uk7cCwl93e263Ka5M1fwU/5vooe1BKEhrufUs/LNDLPNtNACNJhpAwif81B3w==","shasum":"8b90d37889fef47952449039abc03e5d40e5af78","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dsh-live2d-pet/-/dsh-live2d-pet-0.1.1.tgz","fileCount":29,"unpackedSize":5060655,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDN7WmT76BnrjlNU3Cxp52VjoZ0NFP3D26lFYfuWFE91QIgJI9rk4MdMc6z+u/phVyG95h4rgy9b3h30Dg93ZK5/N8="}],"size":3272266},"_npmUser":{"name":"anonymous","email":"78797297@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"78797297@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-live2d-pet_0.1.1_1786900178948_0.9895846656083234"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-16T17:09:39.198Z","publish_time":1786900179198,"_source_registry_name":"default","contributors":[]},"0.1.2":{"name":"dsh-live2d-pet","version":"0.1.2","description":"Live2D companion for DeepSeek Harness: render a Cubism model (e.g. the official Haru sample) in the web UI with state-driven expressions and mouse tracking. · DSH 桌宠的 Live2D 渲染插件","type":"module","main":"lib/index.mjs","exports":{".":"./lib/index.mjs","./client":"./lib/client.js","./package.json":"./package.json"},"private":false,"dsh":{"bundle":{"patch":"./cordis.patch.yml"},"client":{"inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-connection","@deepseek-ai/dsh-client-ui-conversation","@deepseek-ai/dsh-client-ui-slots"],"platform":"web"}},"scripts":{"build":"tsdown","typecheck":"tsc --noEmit"},"dependencies":{"pixi.js":"^6.5.10","pixi-live2d-display":"^0.4.0","react":"^18.2.0"},"devDependencies":{"@deepseek-ai/cordis":"^4.0.1","@types/react":"~18.3.1","react-dom":"^18.2.0","tsdown":"^0.22.2","typescript":"^6.0.3"},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.1","react":"^18.2.0","react-dom":"^18.2.0"},"keywords":["deepseek-harness","dsh","cordis","plugin","live2d","cubism","pet","companion","vtub","pixi"],"license":"MIT","gitHead":"4d406c4c9f4c374c27abc2ae4072988f75c40f11","_id":"dsh-live2d-pet@0.1.2","_nodeVersion":"24.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-E1Cg8Kl++zT0qohcwVaMpZzeJ7Kc4ul6zc1cNIUc5ISa7jFnQOVVD4NvRYLbFTwHre63AWoGeEeJSZh+dWJjiw==","shasum":"9a15b209d4977af5c2345a8c1c95502ebf039d05","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/dsh-live2d-pet/-/dsh-live2d-pet-0.1.2.tgz","fileCount":34,"unpackedSize":5025519,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHBE6ojnbMcvyoTzvyKAp8VxurufUwH2Q347JLf6xM5PAiAgOO9ItNXBFQVm1FC4G7wiNopUYGtpwEU6gZYBtqg2FQ=="}],"size":3336564},"_npmUser":{"name":"anonymous","email":"78797297@qq.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"78797297@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-live2d-pet_0.1.2_1787847785115_0.8837467829166967"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-27T16:23:05.371Z","publish_time":1787847785371,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"0.1.2"},"name":"dsh-live2d-pet","time":{"created":"2026-08-16T17:04:27.220Z","modified":"2026-08-27T16:23:18.237Z","0.1.0":"2026-08-16T17:04:13.924Z","0.1.1":"2026-08-16T17:09:39.198Z","0.1.2":"2026-08-27T16:23:05.371Z"},"readme":"# dsh-live2d-pet\n\n> A Live2D companion pet for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) — renders a Cubism model as a floating companion in the Web UI, with state-driven expressions, mouse tracking, drag repositioning, and a header toggle button.\n>\n> DSH 桌宠 Live2D 插件：在 Web UI 里渲染一个 Cubism 模型作为浮动桌宠，支持状态联动表情、鼠标跟随、拖拽摆位、顶栏一键开关。\n\n![preview](docs/preview.png)\n\nThe bundled official **Haru** sample model ([Live2D Inc.](https://www.live2d.com/)):\n\n附带官方 Haru 示例模型（© Live2D Inc.）：\n\n![haru sample](docs/sample-img-haru-greeter.jpg)\n\n---\n\n## Table of Contents / 目录\n\n- [Features / 功能](#features--功能)\n- [Install / 安装](#install--安装)\n- [Enable / 启用（必读）](#enable--启用必读)\n- [Configuration / 配置](#configuration--配置)\n- [State → Expression map / 状态表情映射](#state--expression-map--状态表情映射)\n- [Debug handles / 调试句柄](#debug-handles--调试句柄)\n- [Bring your own model / 换自己的模型](#bring-your-own-model--换自己的模型)\n- [Architecture & pitfalls / 架构与排雷](#architecture--pitfalls--架构与排雷)\n- [Development / 开发](#development--开发)\n- [License / 许可](#license--许可)\n\n---\n\n## Features / 功能\n\n| | English | 中文 |\n|---|---|---|\n| 🐳 **Real Live2D** | Powered by [pixi-live2d-display](https://github.com/guansss/pixi-live2d-display) (Cubism 4), rendered on a transparent floating canvas | 基于 pixi-live2d-display（Cubism 4）渲染，透明浮动画布 |\n| 👀 **Mouse tracking** | Head turns and gaze follow your cursor (`ParamAngleX/Y`, `ParamEyeBallX/Y`); the iris is written every frame so expression snapshots can't clobber it | 头部与视线跟随鼠标；瞳孔每帧写入，表情快照覆盖不了 |\n| 😊 **State-driven expressions** | The model's `.exp3.json` expressions map to harness activity states (`idle/waiting/thinking/tool/done/failed/sleep/…`) plus hover & drag | 表情按 AI 活动状态切换（idle/waiting/thinking/tool/done/failed/sleep…）+ hover/拖拽反馈 |\n| 🎬 **Idle motion + fidgets** | The model's idle motion runs constantly; random tap motions play as idle micro-antics | 常驻待机动作；空闲时随机播小动作（发呆/挠头） |\n| 🎛️ **Config-driven geometry** | Size / position / offsets come from `cordis.patch.yml` — tweak without rebuilding | 大小/位置/偏移全在 `cordis.patch.yml` 配置，改配置不用重编译 |\n| 🖱️ **Drag repositioning** | Drag the pet anywhere; the offset persists in `localStorage` (with a viewport sanity-clamp against off-screen bugs) | 可拖拽到任意位置，偏移持久化（带防怼出屏幕的钳制） |\n| 💾 **Toggle button & persistence** | A ✨ header button (next to the 💰 wallet) shows/hides the pet instantly; state survives refreshes & restarts | 顶栏 ✨ 按钮（钱包旁边）一键开关，状态跨刷新/重启保留 |\n| 🔗 **Session state linkage** | Watches the DSH conversation session — deep thinking / sleep / celebrate are time-driven | 监听 DSH 会话——深思考 / 睡觉 / 庆祝等按时间驱动 |\n\n---\n\n## Install / 安装\n\n```bash\n# from a local checkout\ndsh plugin --profile web add link:/path/to/dsh-live2d-pet\n\n# or from npm (once published)\ndsh plugin --profile web add dsh-live2d-pet\n```\n\nUse a different profile by changing `--profile <name>` (e.g. `test`).\n\n> 换成自己的 profile 只需改 `--profile <name>`（例如测试端 `test`）。\n\n---\n\n## Enable / 启用（必读）\n\n> ⚠️ **The model does NOT appear automatically after install.** You must enable\n> it first — either click the ✨ button in the session header, or run one line\n> in the browser console.\n> ⚠️ **装完不会自动显示！** 必须先启用——点顶栏 ✨ 按钮，或在浏览器控制台执行下面这行：\n\n```js\nlocalStorage.setItem('dsh-live2d-pet', '1')\n```\n\n1. Open the DSH web page (the profile where you installed the plugin)\n2. Press `F12` → Console tab\n3. Paste `localStorage.setItem('dsh-live2d-pet', '1')` and press Enter\n4. Reload the page (`F5`)\n\nThe pet then floats at the anchor position (default: bottom-right / above the\ncomposer). The setting persists across refreshes and server restarts — you only\ndo this once per browser.\n\n启用后宠物出现在锚定位置（默认：右下/输入框上方）。设置跨刷新和重启保留，每个浏览器只需设置一次。\n\nTo disable / 关闭：\n\n```js\nlocalStorage.setItem('dsh-live2d-pet', '0')\n```\n\n---\n\n## Configuration / 配置\n\n`cordis.patch.yml` (in the plugin package):\n\n```yaml\n- insert:\n    - id: live2d-pet\n      name: dsh-live2d-pet\n      config:\n        model: haru/haru_greeter_t03.model3.json  # path under assets/live2d/\n        size: 320                                  # canvas size, px\n        right: 24                                  # distance from right edge, px\n        bottom: 100                                # distance from bottom edge, px\n        offsetX: 0                                 # extra horizontal shift, px\n        offsetY: 0                                 # extra vertical shift, px\n```\n\n| Key | Meaning / 含义 | Default / 默认 |\n|---|---|---|\n| `model` | Path to the `.model3.json` under `assets/live2d/` | `haru/haru_greeter_t03.model3.json` |\n| `size` | Canvas size in px (the model is scaled to fit by height) | `320` |\n| `right` | Distance from the right edge when not anchored | `24` |\n| `bottom` | Distance from the bottom edge when not anchored | `20` |\n| `offsetX` / `offsetY` | Extra shift applied on top of the anchor position (for fine-tuning) | `0` |\n\n> The pet anchors to the chat composer (`[data-composer-seat]`) every frame and\n> follows internal chat scrolling; `right/bottom` are only used as fallbacks.\n> `offsetX/offsetY` are the knobs for final fine-tuning.\n\n> 宠物每帧锚定到聊天输入框（`[data-composer-seat]`）并跟随内部滚动；`right/bottom`\n> 只是兜底位置。微调用 `offsetX/offsetY`。\n\n---\n\n## State → Expression map / 状态表情映射\n\nThe bundled **Haru** sample model ships expressions `f00..f08`. The default\nmapping (edit `PHASE_EXPRESSION` in `src/client/index.ts` to customize):\n\n附带模型 Haru 提供表情 `f00..f08`。默认映射如下（改 `src/client/index.ts` 的\n`PHASE_EXPRESSION` 可自定义）：\n\n| State / 状态 | Expression / 表情 | Meaning / 含义 |\n|---|---|---|\n| `idle` | `f00` | neutral / 中性 |\n| `waiting` | `f01` | expectant, mouth slightly open / 等待，微张嘴 |\n| `thinking` | `f02` | concentrating, brows knit / 思考，皱眉 |\n| `deep` (thinking > 5s) | `f02` | same concentration face / 深思考同款 |\n| `tool` (a tool is running) | `f03` | working, grin / 干活，咧嘴 |\n| `done` (turn finished) | `f04` | happy squint / 完成，眯眼笑 |\n| `celebrate` (done + ≥3 tools) | `f04` | happy / 庆祝同款 |\n| `failed` | `f00` | sample set has no sad face → neutral / 无委屈脸，用中性 |\n| `drag` (being dragged) | `f05` | big grin / 拖拽，大笑 |\n| `sleep` (idle > 60s) | `f08` | calm / 平静 |\n| hover (idle/sleep) | `f06` | surprise, wide eyes / 惊讶瞪眼 |\n\n**Motions / 动作**：Haru only ships `Idle` + `Tap` groups. The idle motion runs\nconstantly; random `Tap` motions play as idle fidgets. There are no per-state\nbody animations on the sample — custom models can add a `TOOL_MOTION` map.\n\nHaru 只带 `Idle` + `Tap` 两组动作：待机动作常驻，空闲时随机播 `Tap` 小动作。\n样例模型没有按状态的专属动作——自定义模型可加 `TOOL_MOTION` 映射。\n\n---\n\n## Debug handles / 调试句柄\n\nOpen the browser console (F12) on the page with the pet:\n\n| Handle / 句柄 | Purpose / 用途 |\n|---|---|\n| `window.__dshLive2dPetModel` | The loaded `Live2DModel` instance / 已加载的模型实例 |\n| `pet('expr','motion')` | One-shot test: set expression + play motion (either may be omitted) / 一句测试：设表情+播动作（可省略） |\n| `window.__dshLive2dPetToggle()` | Toggle the pet on/off programmatically / 编程式开关宠物 |\n| `window.__dshLive2dPetFreeze = true` | **Freeze automatic linkage** (manual tests stick) — set `false` to resume. ⚠️ While frozen, real DSH turns will NOT update the pet. / **冻结自动联动**（手动测试不被状态覆盖），`false` 恢复。⚠️ 冻结期间真实流程不会更新宠物 |\n| `window.__dshLive2dPetRoot` | The React root handle / React 根句柄 |\n\nExample / 示例：\n\n```js\npet('f02', 'Tap')   // thinking face + a random tap motion / 思考脸 + 随机小动作\npet('f04')          // done face only / 只切完成表情\nwindow.__dshLive2dPetFreeze = false   // resume auto linkage / 恢复自动联动\n```\n\n---\n\n## Bring your own model / 换自己的模型\n\n1. Put your model folder under `assets/live2d/<model>/` (`.model3.json`, `.moc3`,\n   textures, `.physics3.json`, `expressions/`, `motions/`).\n2. Point `cordis.patch.yml` `config.model` at it.\n3. Update `PHASE_EXPRESSION` (and optionally `TOOL_MOTION`) in\n   `src/client/index.ts` to your model's expression/motion group names, then\n   `pnpm build`.\n4. Sync `lib/` + `assets/` to the target profile's `node_modules/dsh-live2d-pet/`,\n   restart the server (patch/model changes), hard-refresh the page\n   (Ctrl+Shift+R) — model/expression changes need the hard refresh to load.\n\n> 把模型放进 `assets/live2d/<模型名>/`，配置 `model` 指向它，改好表情/动作映射，\n> `pnpm build` 后同步到目标 profile，重启服务端（patch/模型改动），硬刷新页面\n> （Ctrl+Shift+R，模型/表情改动必须硬刷新才加载）。\n\nThe architecture is model-agnostic — the pet is the harness, the model is the\nskin. / 架构与模型无关——宠物是壳，模型是皮。\n\n---\n\n## Architecture & pitfalls / 架构与排雷\n\n### How it works / 工作原理\n\n```\nDSH web page\n├─ <head> script src=\"/pet/live2d/live2dcubismcore.min.js\"   ← host half, injected via tapIndex\n├─ client bundle (lib/client.js, single inlined file)\n│   ├─ pixi.js + pixi-live2d-display/cubism4 (fully inlined)\n│   ├─ Live2DPet component: anchor / drag / expression / motion / mouse tracking\n│   └─ apply(): mount + session-state linkage + ✨ toggle button (slots)\n└─ host routes /pet/live2d/* (prefix, serves model assets)\n```\n\n### Design constraints (all battle-tested) / 关键约束（全部实战排雷）\n\n1. **No dynamic imports** — the DSH client module system can't load split\n   chunks (`missed the module table`). Everything is statically inlined into a\n   single file. / 禁止动态 import——DSH 客户端模块系统不认分包，必须全内联单文件。\n2. **Cubism core must load first** — `pixi-live2d-display` checks\n   `window.Live2DCubismCore` at module time; the host injects the core script\n   into `<head>` before the bundle evaluates. / Cubism core 必须先行——host 在\n   bundle 执行前注入到 head。\n3. **Use the `cubism4` sub-entry** — the main entry checks both Cubism 2 and\n   Cubism 4 runtimes; `import 'pixi-live2d-display/cubism4'` skips the Cubism 2\n   check. / 只用 cubism4 子入口——绕过 Cubism 2 运行时检查。\n4. **Prefix route without trailing slash** — the webserver matches prefixes\n   with `${prefix}/`, a trailing slash becomes `//` and never matches. /\n   前缀路由不带尾斜杠——带尾斜杠会拼成双斜杠匹配不上。\n5. **React must be external** — an inlined second React instance breaks hooks\n   in slots-rendered components (React error #321). `react`/`react-dom` come\n   from the DSH host module table (same as `dsh-emoji-wallet`). / React 必须\n   external——内联第二份 React 会让 slots 组件 hook 崩溃，从 DSH 模块表拿。\n6. **`ctx.slots` needs the inject declaration** — both the package.json\n   `dsh.client.inject` entry (`@deepseek-ai/dsh-client-ui-slots`) AND\n   `export const inject = ['slots']` in the bundle are required, or you get\n   \"cannot get property slots without inject\". / slots 按钮要双重 inject——\n   package.json 包名 + bundle 里 `export const inject = ['slots']`。\n7. **Physics output params are locked** — on some models, physics-driven\n   parameters (e.g. tail `Param_Angle_Rotation_*`) are overwritten every frame;\n   motions can't move them. / 物理输出参数被锁——物理每帧覆盖，动作曲线写不动。\n8. **Drag offset sanity clamp** — a leftover absurd `dsh-live2d-pet-drag`\n   localStorage value can push the pet off-screen; the loader clamps to the\n   viewport and drops bad values. / 拖拽偏移钳制——异常残留偏移会被自动清除，\n   防止宠物被怼出屏幕。\n9. **Toggle must reset the session identity** — `tearDownSession()` resets\n   `currentSessionId`/`lastKey`, otherwise toggling the pet off/on kills the\n   state-linkage refresh loop forever (pet renders but never reacts). /\n   toggle 必须重置会话身份——否则开关一次后状态联动永久死亡（宠物能显示但不再反应）。\n\n### Node builtins in dependencies\n\n`@pixi/utils` imports node's `url`; `scripts/url-shim.js` (a copy of the\n[dsh-client-url-shim](https://github.com/ankesu/dsh-client-url-shim) plugin)\nrewrites it to a browser-safe module at build time.\n\n---\n\n## Development / 开发\n\n```bash\npnpm install\npnpm build        # tsdown → lib/client.js (browser) + lib/index.mjs (node)\npnpm typecheck    # tsc --noEmit\n```\n\n### Generator scripts / 生成器脚本\n\nThe plugin ships model-agnostic tooling under `scripts/`:\n\n| Script / 脚本 | Purpose / 用途 |\n|---|---|\n| `scripts/gen-motions.mjs <assetsDir> [--force]` | Generate `motion3.json` actions + `exp3.json` expressions from code definitions. **Existing `*.exp3.json` are SKIPPED by default** (hand-tuned expressions win); `--force` overwrites them (use with care). / 从代码定义生成动作/表情；**默认跳过已存在的 exp3**（手动调参优先），`--force` 才覆盖 |\n| `scripts/sync-expressions.mjs <assetsDir>` | Refresh the generator's expression defaults from the live exp3 files (keeps the generator in sync with hand-tuned assets). / 从资产现成 exp3 刷新生成器的表情默认值 |\n| `scripts/expressions-data.mjs` | Generated data file (do not edit by hand). / 生成的数据文件，勿手改 |\n\n### Workflow for editing expressions / motions / 改表情/动作流程\n\n1. Hand-tune in **Live2D Cubism Viewer** (open the `.model3.json`, drag\n   parameters / keyframes, export the exp3/motion3) — or edit the generator\n   definitions.\n2. `node scripts/sync-expressions.mjs <assetsDir>` to refresh expression\n   defaults (hand-tuning wins; the generator never overwrites existing exp3).\n3. `pnpm build` → sync `lib/` + `assets/` to the target profile.\n4. Hard-refresh the page (Ctrl+Shift+R) — model/expression changes need it.\n\n> 人工调参用 **Live2D Cubism Viewer** 打开 `.model3.json` 拖参数/摆关键帧，导出\n> exp3/motion3 即生效。表情手动调参后跑同步脚本刷新生成器默认值——生成器永不覆盖\n> 已有表情文件。\n\n---\n\n## License / 许可\n\nMIT. The bundled **Haru** model is © Live2D Inc., distributed under its\nofficial sample-model license for testing — replace it for production use.\n\nMIT 许可。附带的 Haru 模型 © Live2D Inc.，按官方样例模型许可随附用于测试——\n生产环境请替换为自己的模型。","users":{}}