dsh-pet 0.1.4 → 0.1.5

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.
Files changed (110) hide show
  1. package/README.en.md +10 -10
  2. package/README.md +11 -11
  3. package/assets/config.jsonc +83 -0
  4. package/assets/thumb//344/270/211/347/220/203/346/212/233/346/216/245.webm +0 -0
  5. package/assets/thumb//344/270/213/344/272/224/345/255/220/346/243/213.webm +0 -0
  6. package/assets/thumb//344/270/234/345/274/240/350/245/277/346/234/233.webm +0 -0
  7. package/assets/thumb//344/270/255/347/247/213/350/265/217/346/234/210/345/220/203/346/234/210/351/245/274.webm +0 -0
  8. package/assets/thumb//344/274/230/351/233/205/345/245/263/344/273/206/350/210/236.webm +0 -0
  9. package/assets/thumb//345/201/267/345/220/203/351/233/266/351/243/237/350/242/253/346/212/223/344/275/217.webm +0 -0
  10. package/assets/thumb//345/206/231/344/273/243/347/240/201.webm +0 -0
  11. package/assets/thumb//345/206/231/347/246/217/345/255/227.webm +0 -0
  12. package/assets/thumb//345/207/255/347/251/272/347/224/237/350/212/261.webm +0 -0
  13. package/assets/thumb//345/212/250/347/211/251/347/216/257/347/273/225.webm +0 -0
  14. package/assets/thumb//345/216/237/345/234/260/344/270/223/345/277/203/347/216/251/351/255/224/346/226/271.webm +0 -0
  15. package/assets/thumb//345/216/237/345/234/260/345/260/217/346/206/251/346/262/211/347/234/240.webm +0 -0
  16. package/assets/thumb//345/216/237/345/234/260/345/267/246/350/275/254/345/245/224/350/267/221.webm +0 -0
  17. package/assets/thumb//345/216/237/345/234/260/346/225/262/345/207/273/346/241/214/351/235/242/344/272/222/345/212/250.webm +0 -0
  18. package/assets/thumb//345/216/237/345/234/260/346/274/202/346/265/256/350/270/217/346/255/245.webm +0 -0
  19. package/assets/thumb//345/216/237/345/234/260/350/267/263/350/267/203/346/212/223/347/242/216/345/244/264/351/241/266/347/211/251/345/223/201.webm +0 -0
  20. package/assets/thumb//345/216/237/345/234/260/350/271/262/344/270/213/347/216/251/347/216/251/345/205/267/346/261/275/350/275/246.webm +0 -0
  21. package/assets/thumb//345/216/237/345/234/260/351/207/215/345/212/233/344/270/213/350/271/262/345/216/213/347/274/251.webm +0 -0
  22. package/assets/thumb//345/217/230/351/270/275/345/255/220.webm +0 -0
  23. package/assets/thumb//345/217/257/347/210/261/345/256/205/350/210/236.webm +0 -0
  24. package/assets/thumb//345/220/203Token.webm +0 -0
  25. package/assets/thumb//345/220/203/345/206/260/346/267/207/346/267/213/350/236/215/345/214/226.webm +0 -0
  26. package/assets/thumb//345/220/203/345/215/210/351/244/220.webm +0 -0
  27. package/assets/thumb//345/220/203/345/244/247/351/227/270/350/237/271.webm +0 -0
  28. package/assets/thumb//345/220/203/345/271/264/347/263/225.webm +0 -0
  29. package/assets/thumb//345/220/203/346/227/251/351/244/220.webm +0 -0
  30. package/assets/thumb//345/220/203/346/231/232/351/244/220.webm +0 -0
  31. package/assets/thumb//345/220/203/346/261/244/345/234/206.webm +0 -0
  32. package/assets/thumb//345/220/203/347/231/275/351/245/255.webm +0 -0
  33. package/assets/thumb//345/220/203/347/262/275/345/255/220.webm +0 -0
  34. package/assets/thumb//345/220/203/347/263/226/350/221/253/350/212/246.webm +0 -0
  35. package/assets/thumb//345/220/203/350/205/212/345/205/253/347/262/245.webm +0 -0
  36. package/assets/thumb//345/220/203/350/245/277/347/223/234.webm +0 -0
  37. package/assets/thumb//345/220/203/351/207/215/351/230/263/347/263/225.webm +0 -0
  38. package/assets/thumb//345/220/203/351/225/277/345/257/277/351/235/242.webm +0 -0
  39. package/assets/thumb//345/220/203/351/235/222/345/233/242.webm +0 -0
  40. package/assets/thumb//345/220/203/351/245/272/345/255/220.webm +0 -0
  41. package/assets/thumb//345/220/271/346/260/224/347/220/203.webm +0 -0
  42. package/assets/thumb//345/220/271/347/254/233/345/255/220.webm +0 -0
  43. package/assets/thumb//345/223/210/346/254/240/350/277/236/345/244/251.webm +0 -0
  44. package/assets/thumb//345/240/206/351/233/252/344/272/272.webm +0 -0
  45. package/assets/thumb//345/244/247/345/217/243/345/220/203/351/233/266/351/243/237.webm +0 -0
  46. package/assets/thumb//345/245/263/344/273/206/345/261/210/350/206/235/347/244/274/344/273/252.webm +0 -0
  47. package/assets/thumb//345/260/217/345/271/205/345/272/246/345/216/237/345/234/260360/345/272/246/346/227/213/350/275/254/345/261/225/347/244/272.webm +0 -0
  48. package/assets/thumb//345/260/217/346/217/220/347/220/264/346/274/224/345/245/217.webm +0 -0
  49. package/assets/thumb//345/276/205/346/234/272/345/221/274/345/220/270/344/274/221/351/227/262.webm +0 -0
  50. package/assets/thumb//346/202/240/351/227/262/345/223/274/346/255/214.webm +0 -0
  51. package/assets/thumb//346/211/221/345/205/213/351/255/224/346/234/257.webm +0 -0
  52. package/assets/thumb//346/211/223/347/236/214/347/235/241/350/242/253/346/203/212/351/206/222.webm +0 -0
  53. package/assets/thumb//346/212/275/351/231/200/350/236/272.webm +0 -0
  54. package/assets/thumb//346/213/206/347/244/274/347/211/251.webm +0 -0
  55. package/assets/thumb//346/217/222/350/214/261/350/220/270/350/265/217/350/217/212.webm +0 -0
  56. package/assets/thumb//346/221/207/346/211/207/347/272/263/345/207/211.webm +0 -0
  57. package/assets/thumb//346/222/270/347/214/253.webm +0 -0
  58. package/assets/thumb//346/224/266/347/272/242/345/214/205.webm +0 -0
  59. package/assets/thumb//346/224/276/345/255/224/346/230/216/347/201/257.webm +0 -0
  60. package/assets/thumb//346/224/276/346/262/263/347/201/257.webm +0 -0
  61. package/assets/thumb//346/224/276/347/203/237/350/212/261.webm +0 -0
  62. package/assets/thumb//346/224/276/351/243/216/347/255/235.webm +0 -0
  63. package/assets/thumb//346/225/264/344/275/223/346/215/242/350/243/205/350/257/225/350/211/262.webm +0 -0
  64. package/assets/thumb//346/230/257/345/225/212/357/274/214/345/220/203/344/273/200/344/271/210.webm +0 -0
  65. package/assets/thumb//346/231/250/351/227/264/345/210/267/347/211/231.webm +0 -0
  66. package/assets/thumb//346/266/256/347/201/253/351/224/205.webm +0 -0
  67. package/assets/thumb//346/267/261/345/272/246/346/200/235/350/200/203/347/242/216/347/242/216/345/277/265.webm +0 -0
  68. package/assets/thumb//347/202/271/345/207/273/345/233/236/345/272/224-/345/202/262/345/250/207/347/224/237/346/260/224.webm +0 -0
  69. package/assets/thumb//347/202/271/345/207/273/345/233/236/345/272/224-/345/205/203/346/260/224/346/214/245/346/211/213.webm +0 -0
  70. package/assets/thumb//347/202/271/345/207/273/345/233/236/345/272/224-/345/256/263/347/276/236/346/203/212/350/256/266.webm +0 -0
  71. package/assets/thumb//347/202/271/345/207/273/345/233/236/345/272/224-/345/274/200/345/277/203/350/267/203/345/212/250.webm +0 -0
  72. package/assets/thumb//347/202/271/345/207/273/345/233/236/345/272/224-/346/214/240/347/227/222/345/222/257/345/222/257/347/254/221.webm +0 -0
  73. package/assets/thumb//347/205/247/351/225/234/345/255/220.webm +0 -0
  74. package/assets/thumb//347/216/251/346/260/264/346/236/252.webm +0 -0
  75. package/assets/thumb//347/216/251/346/270/270/346/210/217/346/260/224/346/200/245/350/264/245/345/235/217.webm +0 -0
  76. package/assets/thumb//347/224/250/351/262/270/351/261/274/345/260/276/345/267/264/346/213/215/346/211/223/345/234/260/351/235/242.webm +0 -0
  77. package/assets/thumb//347/251/277/351/222/210/344/271/236/345/267/247.webm +0 -0
  78. package/assets/thumb//350/210/236/347/213/256/345/244/264.webm +0 -0
  79. package/assets/thumb//350/215/241/347/247/213/345/215/203.webm +0 -0
  80. package/assets/thumb//350/220/214/345/214/226/345/260/217/345/271/275/347/201/265.webm +0 -0
  81. package/assets/thumb//350/223/235/351/262/270/347/216/260/344/270/226.webm +0 -0
  82. package/assets/thumb//350/235/264/350/235/266/350/234/234/350/234/202/347/216/257/347/273/225/345/244/264/351/241/266/345/274/200/350/212/261.webm +0 -0
  83. package/assets/thumb//350/236/203/350/237/271/350/265/260/350/267/257.webm +0 -0
  84. package/assets/thumb//350/242/253/345/220/223/344/270/200/350/267/263.webm +0 -0
  85. package/assets/thumb//350/242/253/350/220/275/345/217/266/346/267/271/346/262/241.webm +0 -0
  86. package/assets/thumb//350/242/253/351/274/240/346/240/207/346/213/226/346/213/275/346/202/254/347/251/272/345/217/215/351/246/210.webm +0 -0
  87. package/assets/thumb//350/243/205/347/202/271/345/234/243/350/257/236/346/240/221.webm +0 -0
  88. package/assets/thumb//350/256/250/347/263/226/345/215/227/347/223/234/347/201/257.webm +0 -0
  89. package/assets/thumb//350/266/205/345/244/247/344/274/270/346/207/222/350/205/260.webm +0 -0
  90. package/assets/thumb//350/270/242/346/257/275/345/255/220.webm +0 -0
  91. package/assets/thumb//350/275/273/345/277/253/346/221/207/346/221/206/350/210/236.webm +0 -0
  92. package/assets/thumb//350/275/273/345/277/253/350/256/260/345/275/225.webm +0 -0
  93. package/assets/thumb//351/252/221/346/234/250/351/251/254.webm +0 -0
  94. package/assets/thumb//351/262/270/351/261/274/345/220/220/346/263/241/346/263/241/347/211/271/346/225/210.webm +0 -0
  95. package/lib/client.js +568 -693
  96. package/lib/index.js +80 -125
  97. package/package.json +20 -6
  98. package/src/client/app.ts +452 -0
  99. package/src/client/config.ts +77 -0
  100. package/src/client/constants.ts +9 -0
  101. package/src/client/index.ts +15 -0
  102. package/src/client/pickers.ts +30 -0
  103. package/src/client/types.ts +37 -0
  104. package/src/env.d.ts +6 -0
  105. package/src/host/index.ts +119 -0
  106. package/assets/thumb//345/260/217/345/271/205/345/272/246/345/216/237/345/234/260 360 /345/272/246/346/227/213/350/275/254/345/261/225/347/244/272.webm +0 -0
  107. package/assets/thumb//347/202/271/345/207/273/345/233/236/345/272/224 - /345/202/262/345/250/207/347/224/237/346/260/224/357/274/210/344/276/247/350/272/253/345/261/225/347/244/272/357/274/211.webm +0 -0
  108. package/assets/thumb//347/202/271/345/207/273/345/233/236/345/272/224 - /345/256/263/347/276/236/346/203/212/350/256/266.webm +0 -0
  109. package/assets/thumb//347/202/271/345/207/273/345/233/236/345/272/224 - /345/274/200/345/277/203/350/267/203/345/212/250.webm +0 -0
  110. package/assets/thumb//350/242/253/345/220/223/344/270/200/350/267/263/357/274/210/347/202/270/346/257/233/357/274/211.webm +0 -0
package/README.en.md CHANGED
@@ -8,7 +8,7 @@
8
8
  <a href="https://github.com/PC2005-cloud/dsh-pet/blob/master/LICENSE"><img alt="license" src="https://img.shields.io/github/license/PC2005-cloud/dsh-pet?color=orange"></a>
9
9
  <a href="https://awesome-dsh-plugin.com"><img alt="awesome dsh plugin" src="https://awesome-dsh-plugin.com/badge.svg"></a>
10
10
  <img alt="platform" src="https://img.shields.io/badge/platform-DeepSeek%20Harness%20Web-8A2BE2">
11
- <img alt="assets" src="https://img.shields.io/badge/assets-51%20animations-ff69b4">
11
+ <img alt="assets" src="https://img.shields.io/badge/assets-dynamic%20animations-ff69b4">
12
12
  </p>
13
13
 
14
14
  > A floating desktop pet for the [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) Web UI: idle breathing, random actions (including dozing off), occasional turns, screen wandering, click reactions, and draggable.
@@ -21,14 +21,14 @@
21
21
  dsh plugin --profile web add dsh-pet
22
22
  ```
23
23
 
24
- Restart `dsh web` and the pet appears in the bottom-right corner — 51 transparent animations, ready to use out of the box, no generation pipeline required.
24
+ Restart `dsh web` and the pet appears in the bottom-right corner — all transparent animations, ready to use out of the box, no generation pipeline required.
25
25
 
26
26
  > 💡 Want to craft your own one-of-a-kind pet? Clone [PC2005-cloud/dsh-pet](https://github.com/PC2005-cloud/dsh-pet) and use the bundled asset pipeline (AI prompts → green-screen video → transparent animation, generated with Doubao) to generate one from scratch — fully reproducible.
27
27
 
28
28
  ## ✨ Features
29
29
 
30
30
  - **A pure pet, nothing else**: no business features — no weather, no monitoring, no agent-state sensing; just a companion. Zero core changes, zero model cost (no LLM/API calls at runtime)
31
- - **51 hand-drawn style transparent animations**: idle breathing, dozing off, playing with a Rubik's cube, humming, hair-raising, blowing bubbles, playing with a water gun, playing violin, the whale emerging, eating rice, looking in the mirror, three dances, writing code, seasonal actions (kite flying, snowman building, ice cream eating, fireworks…) — all seamlessly chained
31
+ - **Hand-drawn style transparent animations**: idle breathing, dozing off, playing with a Rubik's cube, humming, hair-raising, blowing bubbles, playing with a water gun, playing violin, the whale emerging, eating rice, looking in the mirror, three dances, writing code, seasonal actions (kite flying, snowman building, ice cream eating, fireworks…) — all seamlessly chained
32
32
  - **Never-ending animation chain**: when each animation finishes, the next one is picked instantly by probability (30% idle / 10% turn / 40% action / 20% move)
33
33
  - **Screen wandering**: walks toward its facing direction, checks the space ahead and never walks off screen
34
34
  - **Click / drag**: click triggers a random reaction animation (happy / shy / tsundere); drag it anywhere
@@ -67,15 +67,15 @@ What the pet looks like running inside the DSH Web UI:
67
67
  > The animations have transparent backgrounds; in these GIF previews the transparent areas show the page background color, while the actual playback (webm) is transparent.
68
68
 
69
69
  <p>
70
- <img src="https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/dsh-pet/assets/preview/%E5%BE%85%E6%9C%BA%E5%91%BC%E5%90%B8%E4%BC%91%E9%97%B2.gif" width="160" alt="Idle breathing & chill" title="Idle breathing & chill">
71
- <img src="https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/dsh-pet/assets/preview/%E4%B8%9C%E5%BC%A0%E8%A5%BF%E6%9C%9B.gif" width="160" alt="Looking around" title="Looking around">
72
- <img src="https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/dsh-pet/assets/preview/%E5%8E%9F%E5%9C%B0%E6%BC%82%E6%B5%AE%E8%B8%8F%E6%AD%A5.gif" width="160" alt="Floating in place" title="Floating in place">
73
- <img src="https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/dsh-pet/assets/preview/%E5%8E%9F%E5%9C%B0%E5%B0%8F%E6%86%A9%E6%B2%89%E7%9C%A0.gif" width="160" alt="Napping" title="Napping">
74
- <img src="https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/dsh-pet/assets/preview/%E7%82%B9%E5%87%BB%E5%9B%9E%E5%BA%94%20-%20%E5%BC%80%E5%BF%83%E8%B7%83%E5%8A%A8.gif" width="160" alt="Click response - happy bounce" title="Click response - happy bounce">
75
- <img src="https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/dsh-pet/assets/preview/%E8%A2%AB%E9%BC%A0%E6%A0%87%E6%8B%96%E6%8B%BD%E6%82%AC%E7%A9%BA%E5%8F%8D%E9%A6%88.gif" width="160" alt="Dragged by the mouse" title="Dragged by the mouse">
70
+ <img src="https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/dsh-pet/assets/preview/daiji-huxi-xiuxian.gif" width="160" alt="Idle breathing & chill" title="Idle breathing & chill">
71
+ <img src="https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/dsh-pet/assets/preview/dongzhangxiwang.gif" width="160" alt="Looking around" title="Looking around">
72
+ <img src="https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/dsh-pet/assets/preview/yuandi-piaofu-tabu.gif" width="160" alt="Floating in place" title="Floating in place">
73
+ <img src="https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/dsh-pet/assets/preview/yuandi-xiaoqi-chenmian.gif" width="160" alt="Napping" title="Napping">
74
+ <img src="https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/dsh-pet/assets/preview/dianji-huiying-kaixin-yuedong.gif" width="160" alt="Click response - happy bounce" title="Click response - happy bounce">
75
+ <img src="https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/dsh-pet/assets/preview/beishubiao-tuozhuai-xuankong-fankui.gif" width="160" alt="Dragged by the mouse" title="Dragged by the mouse">
76
76
  </p>
77
77
 
78
- All 51 animations live in the repo under `dsh-pet/assets/thumb/`.
78
+ All animations live in the repo under `dsh-pet/assets/thumb/`.
79
79
 
80
80
  ## 📚 A Complete Project (More Than a Plugin)
81
81
 
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  <a href="https://github.com/PC2005-cloud/dsh-pet/blob/master/LICENSE"><img alt="license" src="https://img.shields.io/github/license/PC2005-cloud/dsh-pet?color=orange"></a>
9
9
  <a href="https://awesome-dsh-plugin.com"><img alt="awesome dsh plugin" src="https://awesome-dsh-plugin.com/badge.svg"></a>
10
10
  <img alt="platform" src="https://img.shields.io/badge/platform-DeepSeek%20Harness%20Web-8A2BE2">
11
- <img alt="assets" src="https://img.shields.io/badge/assets-51%20animations-ff69b4">
11
+ <img alt="assets" src="https://img.shields.io/badge/assets-dynamic%20animations-ff69b4">
12
12
  </p>
13
13
 
14
14
  > A floating desktop pet for the [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) Web UI.
@@ -22,14 +22,14 @@
22
22
  dsh plugin --profile web add dsh-pet
23
23
  ```
24
24
 
25
- 重启 `dsh web`,宠物出现在界面右下角——51 个透明动画开箱即用,无需任何生成流程。
25
+ 重启 `dsh web`,宠物出现在界面右下角——全部透明动画开箱即用,无需任何生成流程。
26
26
 
27
27
  > 💡 想自己造一只专属宠物?克隆 [PC2005-cloud/dsh-pet](https://github.com/PC2005-cloud/dsh-pet) 仓库,用内置素材链(AI 提示词 → 绿幕视频 → 透明动画,素材由豆包生成)从零生成,全流程可复现。
28
28
 
29
29
  ## ✨ 功能特性
30
30
 
31
31
  - **纯粹的桌宠**:不掺业务功能——没有天气查询、系统监控、Agent 状态感知,就一件事:陪你。零核心改动、零模型成本(运行时零 LLM/API 调用)
32
- - **51 个手绘风透明动画**:待机呼吸、打瞌睡、玩魔方、哼歌、炸毛、吐泡泡、玩水枪、小提琴演奏、蓝鲸现世、吃白饭、照镜子、三支舞、写代码、四季动作(放风筝、堆雪人、吃冰淇淋、放烟花……)全部无缝衔接
32
+ - **手绘风透明动画**:待机呼吸、打瞌睡、玩魔方、哼歌、炸毛、吐泡泡、玩水枪、小提琴演奏、蓝鲸现世、吃白饭、照镜子、三支舞、写代码、四季动作(放风筝、堆雪人、吃冰淇淋、放烟花……)全部无缝衔接
33
33
  - **永不停止的动画链**:每段动画播完立即按概率选下一个(30% 待机 / 10% 转向 / 40% 动作 / 20% 移动)
34
34
  - **屏幕漫游**:朝 facing 方向行走,自动检查空间、不走出屏幕
35
35
  - **点击 / 拖拽**:点击有随机回应动画(开心 / 害羞 / 傲娇),可拖到任意位置
@@ -68,15 +68,15 @@ dsh plugin --profile web remove dsh-pet
68
68
  > 动画为透明背景;GIF 预览中透明部分显示为页面底色,实际播放为透明。
69
69
 
70
70
  <p>
71
- <img src="https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/dsh-pet/assets/preview/%E5%BE%85%E6%9C%BA%E5%91%BC%E5%90%B8%E4%BC%91%E9%97%B2.gif" width="160" alt="待机呼吸休闲" title="待机呼吸休闲">
72
- <img src="https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/dsh-pet/assets/preview/%E4%B8%9C%E5%BC%A0%E8%A5%BF%E6%9C%9B.gif" width="160" alt="东张西望" title="东张西望">
73
- <img src="https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/dsh-pet/assets/preview/%E5%8E%9F%E5%9C%B0%E6%BC%82%E6%B5%AE%E8%B8%8F%E6%AD%A5.gif" width="160" alt="原地漂浮踏步" title="原地漂浮踏步">
74
- <img src="https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/dsh-pet/assets/preview/%E5%8E%9F%E5%9C%B0%E5%B0%8F%E6%86%A9%E6%B2%89%E7%9C%A0.gif" width="160" alt="原地小憩沉眠" title="原地小憩沉眠">
75
- <img src="https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/dsh-pet/assets/preview/%E7%82%B9%E5%87%BB%E5%9B%9E%E5%BA%94%20-%20%E5%BC%80%E5%BF%83%E8%B7%83%E5%8A%A8.gif" width="160" alt="点击回应 - 开心跃动" title="点击回应 - 开心跃动">
76
- <img src="https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/dsh-pet/assets/preview/%E8%A2%AB%E9%BC%A0%E6%A0%87%E6%8B%96%E6%8B%BD%E6%82%AC%E7%A9%BA%E5%8F%8D%E9%A6%88.gif" width="160" alt="被鼠标拖拽悬空反馈" title="被鼠标拖拽悬空反馈">
71
+ <img src="https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/dsh-pet/assets/preview/daiji-huxi-xiuxian.gif" width="160" alt="待机呼吸休闲" title="待机呼吸休闲">
72
+ <img src="https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/dsh-pet/assets/preview/dongzhangxiwang.gif" width="160" alt="东张西望" title="东张西望">
73
+ <img src="https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/dsh-pet/assets/preview/yuandi-piaofu-tabu.gif" width="160" alt="原地漂浮踏步" title="原地漂浮踏步">
74
+ <img src="https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/dsh-pet/assets/preview/yuandi-xiaoqi-chenmian.gif" width="160" alt="原地小憩沉眠" title="原地小憩沉眠">
75
+ <img src="https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/dsh-pet/assets/preview/dianji-huiying-kaixin-yuedong.gif" width="160" alt="点击回应 - 开心跃动" title="点击回应 - 开心跃动">
76
+ <img src="https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/main/dsh-pet/assets/preview/beishubiao-tuozhuai-xuankong-fankui.gif" width="160" alt="被鼠标拖拽悬空反馈" title="被鼠标拖拽悬空反馈">
77
77
  </p>
78
78
 
79
- 全部 51 个动画见仓库:`dsh-pet/assets/thumb/`。
79
+ 全部动画见仓库:`dsh-pet/assets/thumb/`。
80
80
 
81
81
  ## 📚 完整项目(不止是插件)
82
82
 
@@ -98,4 +98,4 @@ AI 生成动画的配方 源视频 → 透明动画的管线 运行在 DS
98
98
  ## 📄 许可
99
99
 
100
100
  - 代码:MIT
101
- - 素材(动画/提示词):见仓库说明
101
+ - 素材(动画/提示词/源视频):MIT,可自由使用(含商用、修改、再分发)
@@ -0,0 +1,83 @@
1
+ // dsh-pet 配置(JSONC:允许 // 和 /* */ 注释)
2
+ // 说明:浏览器端启动时通过 /pet/config.jsonc 拉取;任何字段缺失/写错都会
3
+ // 回退到 client.js 的代码默认值,不会导致插件崩溃。
4
+ {
5
+ // 桌宠尺寸(宽度 px;高度自动 = size × 9/16)
6
+ "size": 462,
7
+ // 桌宠初始位置
8
+ // corner: top-left | top-right | bottom-left | bottom-right(默认 bottom-right)
9
+ // marginX / marginY: 距所属角落对应边缘的偏移(px,相对角落方向)
10
+ "position": {
11
+ "corner": "top-right",
12
+ "marginX": 24,
13
+ "marginY": 100
14
+ },
15
+
16
+ // ===================== 动作动画池配置 =====================
17
+ "animations": {
18
+ // 待机动画池(数组,可放多个,等概率抽)
19
+ "idle": ["待机呼吸休闲"],
20
+ // 转向动画池(数组;每一项都必须是“播完会翻转朝向”的动画,如东张西望)
21
+ "turn": ["东张西望"],
22
+ // 拖拽动画池(数组;每一项都必须是“被无形抓起悬空”的姿势)
23
+ "drag": ["被鼠标拖拽悬空反馈"],
24
+ // 点击回应动画池(点按宠物时触发,随机抽 1 个)
25
+ "clicks": [
26
+ "点击回应-开心跃动",
27
+ "点击回应-害羞惊讶",
28
+ "点击回应-傲娇生气",
29
+ "点击回应-挠痒咯咯笑",
30
+ "点击回应-元气挥手"
31
+ ],
32
+ // 移动动画池:default 是每个动作都用的默认参数;actions 里每项可覆盖部分参数,
33
+ // 未写的字段取 default。minDist/maxDist=单次行进距离(px)、margin=贴边安全距、
34
+ // leadSec/tailSec=动画首尾各多少秒原地不动。
35
+ "moves": {
36
+ "default": { "minDist": 60, "maxDist": 240, "margin": 20, "leadSec": 2, "tailSec": 2 },
37
+ "actions": [
38
+ { "name": "螃蟹走路" },
39
+ { "name": "原地漂浮踏步", "params": { "minDist": 40, "maxDist": 120 } },
40
+ { "name": "原地左转奔跑", "params": { "minDist": 120, "maxDist": 320 } }
41
+ ]
42
+ },
43
+ // 随机动作:分类池。weight 为该分类出现权重;noMirror: true 表示“带文字、镜像会颠倒,
44
+ // 宠物面向右(被镜像)时不播放该类”。所有分类 weight 合计应与 animationWeights 里
45
+ // 顶层权重和的余量(100 − idle − turn − move)相等。
46
+ "categories": [
47
+ { "id": "小动作", "weight": 20, "actions": [
48
+ "悠闲哼歌", "超大伸懒腰", "原地敲击桌面互动", "原地重力下蹲压缩", "哈欠连天",
49
+ "原地小憩沉眠", "女仆屈膝礼仪", "被吓一跳", "小幅度原地360度旋转展示",
50
+ "偷吃零食被抓住", "用鲸鱼尾巴拍打地面", "打瞌睡被惊醒", "照镜子", "整体换装试色",
51
+ "轻快记录", "写代码", "摇扇纳凉", "晨间刷牙"
52
+ ] },
53
+ { "id": "玩耍", "weight": 20, "actions": [
54
+ "原地专心玩魔方", "原地蹲下玩玩具汽车", "鲸鱼吐泡泡特效", "原地跳跃抓碎头顶物品",
55
+ "玩游戏气急败坏", "玩水枪", "小提琴演奏", "蓝鲸现世", "优雅女仆舞", "轻快摇摆舞",
56
+ "可爱宅舞", "吹气球", "动物环绕", "放风筝", "拆礼物", "变鸽子", "扑克魔术",
57
+ "抽陀螺", "吹笛子", "蝴蝶蜜蜂环绕头顶开花", "撸猫", "凭空生花", "骑木马",
58
+ "三球抛接", "踢毽子", "下五子棋", "荡秋千"
59
+ ] },
60
+ { "id": "吃什么", "weight": 16, "actions": [
61
+ "吃白饭", "大口吃零食", "吃Token", "吃早餐", "吃午餐", "吃晚餐", "吃冰淇淋融化",
62
+ "吃大闸蟹", "吃糖葫芦", "吃长寿面", "吃西瓜", "涮火锅"
63
+ ] },
64
+ { "id": "时节", "weight": 14, "actions": [
65
+ "被落叶淹没", "中秋赏月吃月饼", "堆雪人", "放烟花", "吃粽子", "吃年糕", "吃青团",
66
+ "吃腊八粥", "吃重阳糕", "收红包", "写福字", "穿针乞巧", "舞狮头", "讨糖南瓜灯",
67
+ "插茱萸赏菊", "放河灯", "萌化小幽灵", "装点圣诞树", "放孔明灯", "吃汤圆", "吃饺子"
68
+ ] },
69
+ { "id": "文字", "weight": 10, "noMirror": true, "actions": [
70
+ "是啊,吃什么", "深度思考碎碎念"
71
+ ] }
72
+ ]
73
+ },
74
+
75
+ // ===================== 动画链顶层权重 =====================
76
+ // idle/turn/move 的权重 + 上面各分类 weight 合计 = 100
77
+ // 当前:10 + 5 + 5 + (20+20+16+14+10=80) = 100
78
+ "animationWeights": {
79
+ "idle": 10,
80
+ "turn": 5,
81
+ "move": 5
82
+ }
83
+ }
Binary file