@mingxy/opencode-mascot 0.5.6 → 0.5.8
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/LICENSE +21 -0
- package/README.md +8 -4
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 mingxy
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
| 形象 | 描述 | 颜色 |
|
|
12
12
|
|------|------|------|
|
|
13
|
-
| **月儿** (yueer) |
|
|
13
|
+
| **月儿** (yueer) | 紫发呆毛女孩,傲娇风格,默认形象 | `#8B7EB8` 淡紫 |
|
|
14
14
|
| **包子** (baozi) | 热气腾腾的包子,温暖治愈 | `#D4885A` 暖橙 |
|
|
15
15
|
|
|
16
16
|
每个形象包含 **5 种表情帧**:default / blink / happy / thinking / sleeping
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|---|------|------|------|
|
|
37
37
|
| 7 | 呆毛闪烁 | 随机(25%/1.5s) | ☆ ↔ ★ |
|
|
38
38
|
| 8 | 开心晃头 | happy 状态 | 脸左右摆 + 呆毛同步偏移 |
|
|
39
|
-
| 9 | 思考跺脚 | thinking 状态 |
|
|
39
|
+
| 9 | 思考跺脚 | thinking 状态 | 左脚固定 ║,右脚 ║↔_ 单脚跺 |
|
|
40
40
|
| 10 | 思考变脸 | thinking 状态 | 6种表情轮换(o_o / O_O / >_o / o_< / ⊙_⊙ / ◔_◔) |
|
|
41
41
|
| 11 | 火星文气泡 | busy/thinking | 12条上标火星文轮换 |
|
|
42
42
|
| 12 | 拖拽扇手 | 拖拽中 | 手臂 ┃███┃ ↔ ╱███╲ |
|
|
@@ -97,11 +97,14 @@
|
|
|
97
97
|
|
|
98
98
|
| 触发 | 效果 |
|
|
99
99
|
|------|------|
|
|
100
|
-
| session busy |
|
|
101
|
-
| session
|
|
100
|
+
| session busy | 火星文气泡 + 8色高亮闪烁 |
|
|
101
|
+
| session thinking | 跺脚 + 变脸 + 火星文气泡 |
|
|
102
|
+
| session happy | 晃头庆祝 3s |
|
|
102
103
|
| session idle 超时 | 自动睡觉 + 火星文 Zzz(`zᶻ...` → `zᶻᶻ...` → `zᶻᶻᶻ...`) |
|
|
103
104
|
| 拖拽睡眠中 | 惊醒到 idle + 扇手惊恐 |
|
|
104
105
|
|
|
106
|
+
> 默认所有状态使用月儿形象。可通过右键双击手动切换包子。
|
|
107
|
+
|
|
105
108
|
---
|
|
106
109
|
|
|
107
110
|
### 🚀 启动效果
|
|
@@ -130,6 +133,7 @@
|
|
|
130
133
|
- **@opentui/solid** — SolidJS 响应式 TUI 渲染
|
|
131
134
|
- **@opencode-ai/plugin** — OpenCode 插件 API
|
|
132
135
|
- 零运行时依赖(peer dep only)
|
|
136
|
+
- TypeScript 类型检查通过
|
|
133
137
|
|
|
134
138
|
## 📂 项目结构
|
|
135
139
|
|