dsh-quay-bot 0.0.0-stage → 1.0.0
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 +113 -2
- package/avatar/LICENSE +21 -0
- package/avatar/build.mjs +81 -0
- package/avatar/catalog.json +421 -0
- package/avatar/dist/avatar-engine.js +1 -0
- package/avatar/gallery/droid.json +14 -0
- package/avatar/gallery/ghost.json +14 -0
- package/avatar/gallery/grok-pod.json +14 -0
- package/avatar/gallery/guardian.json +14 -0
- package/avatar/gallery/mecha.json +14 -0
- package/avatar/gallery/mochi.json +14 -0
- package/avatar/gallery/neko.json +14 -0
- package/avatar/gallery/orbiter.json +14 -0
- package/avatar/gallery/relay.json +14 -0
- package/avatar/gallery/spark.json +14 -0
- package/avatar/src/bot/clay.ts +135 -0
- package/avatar/src/bot/effects.ts +100 -0
- package/avatar/src/bot/grok-bot.ts +626 -0
- package/avatar/src/bot/index.ts +15 -0
- package/avatar/src/bot/palettes.ts +62 -0
- package/avatar/src/bot/ring.ts +219 -0
- package/avatar/src/bot/scheduler.ts +239 -0
- package/avatar/src/bot/shapes.ts +277 -0
- package/avatar/src/bot/spring.ts +196 -0
- package/avatar/src/core/color.ts +92 -0
- package/avatar/src/core/eyes.ts +297 -0
- package/avatar/src/core/field.ts +482 -0
- package/avatar/src/core/frame.ts +655 -0
- package/avatar/src/core/fx.ts +375 -0
- package/avatar/src/core/index.ts +49 -0
- package/avatar/src/core/paint.ts +331 -0
- package/avatar/src/core/path.ts +495 -0
- package/avatar/src/core/pose.ts +581 -0
- package/avatar/src/core/svg.ts +98 -0
- package/avatar/src/core/types.ts +153 -0
- package/avatar/src/core/validate.ts +296 -0
- package/avatar/src/core/volume.ts +681 -0
- package/avatar/src/entry.ts +260 -0
- package/bin/doctor.mjs +148 -0
- package/botscreen/__init__.py +2 -0
- package/botscreen/__main__.py +5 -0
- package/botscreen/artifacts.py +388 -0
- package/botscreen/audit.py +94 -0
- package/botscreen/cgroup.py +293 -0
- package/botscreen/config.py +320 -0
- package/botscreen/desktop/assets/chrome.png +0 -0
- package/botscreen/desktop/assets/codex.png +0 -0
- package/botscreen/desktop/assets/drive.png +0 -0
- package/botscreen/desktop/assets/folder.png +0 -0
- package/botscreen/desktop/assets/search.png +0 -0
- package/botscreen/desktop/assets/terminal.png +0 -0
- package/botscreen/desktop/assets/trash.png +0 -0
- package/botscreen/desktop/assets/wallpaper.png +0 -0
- package/botscreen/desktop.py +244 -0
- package/botscreen/driver.py +832 -0
- package/botscreen/gateway.py +2089 -0
- package/botscreen/iconlayer.py +841 -0
- package/botscreen/mcp_server.py +435 -0
- package/botscreen/requirements-offline.txt +11 -0
- package/botscreen/requirements.txt +8 -0
- package/botscreen/resources.py +494 -0
- package/botscreen/screen.py +1282 -0
- package/botscreen/session.py +706 -0
- package/botscreen/state.py +330 -0
- package/botscreen/streamer.py +388 -0
- package/builtin-skills/artifact-delivery/SKILL.md +33 -0
- package/builtin-skills/bot-team-control/SKILL.md +85 -0
- package/builtin-skills/browser-desktop-automation/SKILL.md +84 -0
- package/builtin-skills/memory-hygiene/SKILL.md +24 -0
- package/builtin-skills/room-completion/SKILL.md +30 -0
- package/builtin-skills/scheduled-routines/SKILL.md +79 -0
- package/builtin-skills/team-collaboration/SKILL.md +28 -0
- package/client.js +8479 -0
- package/cordis.patch.yml +3 -0
- package/docs/DETAIL.md +58 -0
- package/docs/remote-dialog.png +0 -0
- package/host/api.js +2695 -0
- package/host/approvals.js +458 -0
- package/host/artifacts.js +242 -0
- package/host/avatar.js +355 -0
- package/host/channels.js +412 -0
- package/host/cron.js +200 -0
- package/host/dispatch.js +907 -0
- package/host/isolation.js +1060 -0
- package/host/mcp.js +494 -0
- package/host/memory/catalog.js +323 -0
- package/host/memory/installer.js +250 -0
- package/host/memory/manager.js +553 -0
- package/host/memory/protocol.js +164 -0
- package/host/memory/providers/builtin/index.js +43 -0
- package/host/memory/providers/builtin/plugin.json +20 -0
- package/host/memory/providers/local_sqlite/index.js +121 -0
- package/host/memory/providers/local_sqlite/plugin.json +31 -0
- package/host/memory/providers/memory_tencentdb/client.js +129 -0
- package/host/memory/providers/memory_tencentdb/fallback.js +456 -0
- package/host/memory/providers/memory_tencentdb/index.js +478 -0
- package/host/memory/providers/memory_tencentdb/plugin.json +78 -0
- package/host/models.js +210 -0
- package/host/persona.js +281 -0
- package/host/qr.js +436 -0
- package/host/remote.js +304 -0
- package/host/room-locks.js +224 -0
- package/host/room-protocol.js +759 -0
- package/host/rooms.js +1916 -0
- package/host/routines.js +280 -0
- package/host/scheduler/deliver.js +89 -0
- package/host/scheduler/executor.js +330 -0
- package/host/scheduler/model.js +191 -0
- package/host/scheduler/runs.js +126 -0
- package/host/scheduler/schedule.js +223 -0
- package/host/scheduler/scheduler.js +334 -0
- package/host/scheduler/service.js +320 -0
- package/host/screen.js +1832 -0
- package/host/store.js +832 -0
- package/icon.svg +14 -0
- package/index.js +1832 -0
- package/locale/en.json +7 -0
- package/locale/zh.json +7 -0
- package/market/index.json +41 -0
- package/package.json +72 -4
- package/vendor/pip/pip-25.1.1-py3-none-any.whl +0 -0
- package/vendor/pip/setuptools-78.1.1-py3-none-any.whl +0 -0
- package/vendor/wheels/any/annotated_doc-0.0.7-py3-none-any.whl +0 -0
- package/vendor/wheels/any/annotated_types-0.8.0-py3-none-any.whl +0 -0
- package/vendor/wheels/any/anyio-4.16.0-py3-none-any.whl +0 -0
- package/vendor/wheels/any/certifi-2026.11.20-py3-none-any.whl +0 -0
- package/vendor/wheels/any/click-8.5.1-py3-none-any.whl +0 -0
- package/vendor/wheels/any/fastapi-0.165.0-py3-none-any.whl +0 -0
- package/vendor/wheels/any/h11-0.16.0-py3-none-any.whl +0 -0
- package/vendor/wheels/any/httpcore-1.0.9-py3-none-any.whl +0 -0
- package/vendor/wheels/any/httpx-0.29.0-py3-none-any.whl +0 -0
- package/vendor/wheels/any/idna-3.20-py3-none-any.whl +0 -0
- package/vendor/wheels/any/mss-10.2.0-py3-none-any.whl +0 -0
- package/vendor/wheels/any/opentelemetry_api-1.45.2-py3-none-any.whl +0 -0
- package/vendor/wheels/any/pydantic-2.14.4-py3-none-any.whl +0 -0
- package/vendor/wheels/any/python_multipart-0.0.34-py3-none-any.whl +0 -0
- package/vendor/wheels/any/python_xlib-0.33-py2.py3-none-any.whl +0 -0
- package/vendor/wheels/any/six-1.17.0-py2.py3-none-any.whl +0 -0
- package/vendor/wheels/any/starlette-1.10.0-py3-none-any.whl +0 -0
- package/vendor/wheels/any/typing_extensions-4.16.0-py3-none-any.whl +0 -0
- package/vendor/wheels/any/typing_inspection-0.4.5-py3-none-any.whl +0 -0
- package/vendor/wheels/any/uvicorn-0.54.0-py3-none-any.whl +0 -0
- package/vendor/wheels/linux-aarch64/pillow-12.2.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl +0 -0
- package/vendor/wheels/linux-aarch64/pydantic_core-2.50.5-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl +0 -0
- package/vendor/wheels/linux-aarch64/websockets-17.4-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl +0 -0
- package/vendor/wheels/linux-x86_64/pillow-12.2.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl +0 -0
- package/vendor/wheels/linux-x86_64/pydantic_core-2.50.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl +0 -0
- package/vendor/wheels/linux-x86_64/websockets-17.4-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 kdczyz
|
|
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
|
@@ -1,3 +1,114 @@
|
|
|
1
|
-
#
|
|
1
|
+
# dsh-quay-bot
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
DeepSeek Harness 的 **Bot 团队模式**插件(Host + Web Client 双半区),并内置一套自举的 **BotScreen 虚拟桌面**(X + 窗口管理器 + 把画面流进 Web UI)。装完即用:Python 依赖走包内 wheel,系统组件在首次启动时自动补装,不需要手工 `pip install` / `apt install`。
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
dsh plugin install dsh-quay-bot # 在目标 profile 里
|
|
7
|
+
# 或在 DSH 桌面端 Plugin Manager → Install → 输入 dsh-quay-bot
|
|
8
|
+
# 或在 Discover 页把下面「Market index」里的 URL 加成索引源后直接搜索安装
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## 1. 这个包做了什么
|
|
14
|
+
|
|
15
|
+
- 每个 Bot 独立目录、`SOUL.md` / `MEMORY.md`、永久私聊会话,以及**按房间隔离的隐藏 Group Session**(支持房间共享工程目录 `workDir`)
|
|
16
|
+
- 每个 Bot 可单独绑定模型:DSH 默认(空绑定,每轮重读)、provider/model、思考档位;模型目录标注是否支持图片输入
|
|
17
|
+
- Bot 聊天可发图片(PNG/JPEG/WebP/GIF,≤6 张 × 12 MB),纯文本模型在 Host 入队前拒绝
|
|
18
|
+
- `message_agent` 异步队友消息(会话级 FIFO、跳数护栏 `MAX_AGENT_HOPS=4`、同链去重、回信降级、>16k 落盘、群聊隐藏会话禁止)
|
|
19
|
+
- **Group Room(2–6 人)**:`auto`(并发协作 + `@` 接力)/ `everyone`(全员并发审阅)/ `lead`(Lead 派工与验收);全异步 `BotActor` 总线 + `snapshotSeq` 水位线防漏看;3 种显式终态(`completed` / `settled` / `waiting_user`);3 个病态探针(`idle_spin` / `paused_error` / `token_budget`);共享任务板 `claim_subtask(taskId, paths)` + 文件软锁;前端按 `botId` 分轨流式渲染;人类中途发言走 Soft Steer 软插话
|
|
20
|
+
- **Memory Hub**:`memory_tencentdb`(v3 HTTP Gateway `127.0.0.1:8420`,熔断后自动降级 Node 原生 SQLite FTS5)、`local_sqlite`、`builtin`,支持页面/命令一键下载安装第三方记忆库
|
|
21
|
+
- Host 持久 Routines(cron + 冷会话唤醒)、审批与提问桥(`approval/request`、`user-questions/request`)
|
|
22
|
+
- **BotScreen 屏幕工具**:`screen_screenshot` / `screen_click` / `screen_type` / `screen_key` / `screen_scroll` / `screen_drag` / `screen_open_app` / `screen_windows` / `screen_request_help`,网关 `127.0.0.1:6200`
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 2. 依赖:一个都不用手动装
|
|
27
|
+
|
|
28
|
+
| 层 | 内容 | 包内自带? |
|
|
29
|
+
|---|---|---|
|
|
30
|
+
| Node | ≥ 22.13(`node:sqlite` 需无 flag 版本);DSH 本体要求 ≥ 24.9 | DSH 侧负责 |
|
|
31
|
+
| DSH | `>= 0.2.2-rc.3`(写进 `engines.dsh`,不满足会被安装器拦下) | — |
|
|
32
|
+
| JS 依赖 | **零**(无 `dependencies`;只动态 `import` 可选的 `@deepseek-ai/dsh-mcp-client`,缺失自动降级) | ✅ |
|
|
33
|
+
| Web Client | `dsh-client-locale` / `ui-layout` / `ui-sidebar` / `ui-workspace` / `dsh-api-session-controller` | 由 DSH 提供 |
|
|
34
|
+
| Python | `fastapi uvicorn python-multipart Pillow python-xlib websockets httpx mss` | ✅ `vendor/wheels/` 离线 wheel(linux **x86_64 + aarch64**,CPython **3.12**) |
|
|
35
|
+
| pip 自身 | `vendor/pip/` 内置 `pip` + `setuptools` wheel(宿主机没有 ensurepip 也能建 venv) | ✅ |
|
|
36
|
+
| 系统组件 | `xvfb x11vnc websockify novnc xauth xfwm4 xfdesktop4 xfconf dbus-x11 tint2 picom pcmanfm xterm xdotool xclip glib-networking gvfs gvfs-daemons feh adwaita-icon-theme fonts-noto-color-emoji fonts-noto-cjk` | 首次启动自动 `apt-get install`(需 root 或无密码 sudo) |
|
|
37
|
+
| 运行时底座 | cgroup v2 unified(屏幕冻结)、`Xvfb`(或 KasmVNC 提供的 `Xvnc`) | 检测/自动装 Xvfb;KasmVNC 可选 |
|
|
38
|
+
|
|
39
|
+
首次启动的顺序(`host/screen.js` → `bootstrapVenv` / `ensureSystemDependencies`):
|
|
40
|
+
|
|
41
|
+
1. 探活 `127.0.0.1:6200/healthz`,已就绪直接复用;
|
|
42
|
+
2. 找 Python:`BOTSCREEN_PYTHON` → `$DSH_HOME/botmode/screen-venv` → 插件内 `.venv` → 仓库 `.venv` → `python3`(只要它的 import 探针通过就原地用);
|
|
43
|
+
3. 否则建 venv,用包内 pip wheel 播种,再 **离线** `pip install --no-index --find-links vendor/wheels/{any,linux-<arch>}`;wheel 不匹配解释器(如 3.10/3.11/3.13)时回退 PyPI,仍是全自动;
|
|
44
|
+
4. 逐项探测 14 个系统 bin,缺哪个就 `apt-get install` 全套一次(无 root/免密 sudo 时打印可复制的一行命令,不阻断其它功能);
|
|
45
|
+
5. 拉起 `python -m botscreen`,写日志 `$DSH_HOME/botmode/botscreen-gateway.log`。
|
|
46
|
+
|
|
47
|
+
关掉自动安装:`BOTSCREEN_AUTO_INSTALL_DEPS=0`。
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## 3. 自检
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
npx dsh-quay-bot # 人类可读报告(node / python / 系统 bin / 内置 wheel / 网关)
|
|
55
|
+
npx dsh-quay-bot --json # 给脚本用
|
|
56
|
+
npx dsh-quay-bot --fix-hint # 只输出需要执行的命令
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
常见环境变量:`DSH_HOME`、`BOTSCREEN_DATA_ROOT`(默认 `/data/botscreen`)、`BOTSCREEN_PORT`(6200)、`BOTSCREEN_PYTHON`、`BOTSCREEN_X_BACKEND`(`xvfb`/`x11vnc`)、`BOTSCREEN_WM`(`openbox`/`xfwm4`)、`BOTSCREEN_WIDTH` / `BOTSCREEN_HEIGHT`、`BOTSCREEN_IDLE_MODE`。
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## 4. Market index(Discover 页搜索)
|
|
64
|
+
|
|
65
|
+
包内提供一份符合 DSH plugin market format 1 的索引:`market/index.json`。把它放到任意 https 可访问地址(或本机 http),在 DSH 的 Discover / 插件市场设置里添加为索引源,即可在页面里搜到 `dsh-quay-bot` 并一键安装:
|
|
66
|
+
|
|
67
|
+
```json
|
|
68
|
+
{
|
|
69
|
+
"format": 1,
|
|
70
|
+
"title": { "en": "Quay Bot", "zh": "Quay Bot 团队模式" },
|
|
71
|
+
"metadata": { "updated": 1764276000 },
|
|
72
|
+
"plugins": [
|
|
73
|
+
{
|
|
74
|
+
"name": "dsh-quay-bot",
|
|
75
|
+
"versions": [
|
|
76
|
+
{ "version": "1.0.0", "publishTimestamp": 1764276000, "source": { "type": "npm" }, "engines": { "dsh": ">=0.2.2-rc.3" } }
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
索引 URL 必须能被 DSH 以 `https:`(或同源的 http)读取;`source.type: "npm"` 会解析成 `dsh-quay-bot@1.0.0` 交给 profile 的包管理器。
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## 5. 安装后去哪里找
|
|
88
|
+
|
|
89
|
+
- Host 行:`include:botmode`,模块 `dsh-quay-bot`
|
|
90
|
+
- Client 模块:`dsh-quay-bot/client`(侧边栏底部「Bot 模式」+ 机器人图标 → `main` 面板 `botmode`)
|
|
91
|
+
- 状态根:`$DSH_HOME/botmode`(`state.json` v4、`rooms/`、`bots/`、`memory-data/`、`memory-plugins/`、网关日志)
|
|
92
|
+
- HTTP:`/botmode/api/state`、`/models`、`/memory`、`/image`、`/command`、`/screen/*`、`/avatar/*`、`/artifacts/*`
|
|
93
|
+
|
|
94
|
+
改代码后:Plugin Manager 里关再开 `include:botmode` 重载 Host;Client 改动刷新页面即可(跑着 `pnpm run dev:web` 会热更新)。
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## 6. 测试
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
node test/host.test.mjs && node test/screen.test.mjs && node test/avatar.test.mjs \
|
|
102
|
+
&& node test/artifacts.test.mjs && node test/routines.test.mjs && node test/qr.test.mjs \
|
|
103
|
+
&& node test/remote.test.mjs && node test/isolation.test.mjs && node test/governance-channels.test.mjs
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
覆盖 cron 解析、store/身份文件、会话隔离与 FIFO、模型与图片能力、Group Room 协议纯函数与多轮状态机、`message_agent` 护栏、Memory Hub(含降级路径)、审批策略、全部 HTTP 端点、venv 自举与系统依赖探测。
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## 7. 与 `@local/dsh-botmode` 的关系
|
|
111
|
+
|
|
112
|
+
本包是同一套源码的**公开发布版**:包名、`dsh.bundle.patch` 的插件名、`client` 模块 id 改为 `dsh-quay-bot`;补上 `builtin-skills/**` 与 `vendor/wheels/**`;`bootstrapVenv` 改为离线优先;`ensureSystemDependencies` 从「5 个 bin」扩到「14 个 bin」。状态根、数据格式、`teamId=dsh-botmode` 保持不变,已有 Bot / 房间 / 记忆库可原样沿用。
|
|
113
|
+
|
|
114
|
+
同一 profile 里不要与 `@local/dsh-botmode` 同时启用(两者都插入 `include:botmode`)。
|
package/avatar/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Avatar Forge contributors
|
|
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/avatar/build.mjs
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build script for the embedded Image-bot (Avatar Forge) module.
|
|
3
|
+
*
|
|
4
|
+
* Outputs:
|
|
5
|
+
* 1. `avatar/dist/avatar-engine.js` — zero-dependency browser bundle (IIFE) exposing
|
|
6
|
+
* `<grok-bot>` and `window.__DSH_AVATAR_ENGINE__`.
|
|
7
|
+
* 2. `avatar/catalog.json` — static 19-avatar catalog + 12 clay palettes consumed by
|
|
8
|
+
* the zero-dependency Node Host (`host/avatar.js`) and `/botmode/api/avatar/catalog`.
|
|
9
|
+
*
|
|
10
|
+
* Usage:
|
|
11
|
+
* node packages/dsh-botmode/avatar/build.mjs
|
|
12
|
+
*/
|
|
13
|
+
import { execFileSync } from 'node:child_process'
|
|
14
|
+
import { existsSync, mkdirSync, writeFileSync } from 'node:fs'
|
|
15
|
+
import { dirname, join, resolve } from 'node:path'
|
|
16
|
+
import { fileURLToPath } from 'node:url'
|
|
17
|
+
import { createRequire } from 'node:module'
|
|
18
|
+
|
|
19
|
+
const __dirname = dirname(fileURLToPath(import.meta.url))
|
|
20
|
+
const entryPath = join(__dirname, 'src', 'entry.ts')
|
|
21
|
+
const distDir = join(__dirname, 'dist')
|
|
22
|
+
const bundlePath = join(distDir, 'avatar-engine.js')
|
|
23
|
+
const catalogPath = join(__dirname, 'catalog.json')
|
|
24
|
+
|
|
25
|
+
const esbuildCandidates = [
|
|
26
|
+
process.env.ESBUILD_BIN,
|
|
27
|
+
resolve(__dirname, 'node_modules/.bin/esbuild'),
|
|
28
|
+
'/home/ubuntu/Desktop/Image-bot/node_modules/.bin/esbuild',
|
|
29
|
+
].filter(Boolean)
|
|
30
|
+
|
|
31
|
+
const esbuildBin = esbuildCandidates.find((p) => existsSync(p))
|
|
32
|
+
if (!esbuildBin) {
|
|
33
|
+
throw new Error(`esbuild binary not found in: ${esbuildCandidates.join(', ')}`)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
mkdirSync(distDir, { recursive: true })
|
|
37
|
+
|
|
38
|
+
// 1. Build browser IIFE bundle
|
|
39
|
+
execFileSync(esbuildBin, [
|
|
40
|
+
entryPath,
|
|
41
|
+
'--bundle',
|
|
42
|
+
'--format=iife',
|
|
43
|
+
'--global-name=__DSH_AVATAR_BUNDLE__',
|
|
44
|
+
'--target=es2020',
|
|
45
|
+
'--minify',
|
|
46
|
+
`--outfile=${bundlePath}`,
|
|
47
|
+
], { stdio: 'inherit' })
|
|
48
|
+
|
|
49
|
+
// 2. Build a temporary CJS bundle to evaluate and emit `catalog.json` cleanly without tsx
|
|
50
|
+
const tmpCjs = join(distDir, '.catalog-gen.cjs')
|
|
51
|
+
execFileSync(esbuildBin, [
|
|
52
|
+
entryPath,
|
|
53
|
+
'--bundle',
|
|
54
|
+
'--platform=node',
|
|
55
|
+
'--format=cjs',
|
|
56
|
+
'--target=node20',
|
|
57
|
+
`--outfile=${tmpCjs}`,
|
|
58
|
+
], { stdio: 'inherit' })
|
|
59
|
+
|
|
60
|
+
if (typeof globalThis.HTMLElement === 'undefined') {
|
|
61
|
+
globalThis.HTMLElement = class {}
|
|
62
|
+
}
|
|
63
|
+
const require = createRequire(import.meta.url)
|
|
64
|
+
const mod = require(tmpCjs)
|
|
65
|
+
const catalog = {
|
|
66
|
+
version: 1,
|
|
67
|
+
defaultAvatarId: mod.DEFAULT_AVATAR_ID,
|
|
68
|
+
defaultColor: mod.DEFAULT_AVATAR_COLOR,
|
|
69
|
+
defaultEyeColor: mod.DEFAULT_AVATAR_EYE_COLOR,
|
|
70
|
+
items: mod.ALL_AVATARS,
|
|
71
|
+
palettes: mod.PALETTES,
|
|
72
|
+
eyeSwatches: ['#151515', '#1b1b1b', '#ffffff', '#0a7cff', '#e11d48'],
|
|
73
|
+
materials: ['flat', 'fluffy'],
|
|
74
|
+
states: ['idle', 'thinking', 'working', 'waiting', 'blocked', 'done', 'alert'],
|
|
75
|
+
moods: mod.EXPRESSIONS,
|
|
76
|
+
}
|
|
77
|
+
writeFileSync(catalogPath, `${JSON.stringify(catalog, null, 2)}\n`, 'utf8')
|
|
78
|
+
|
|
79
|
+
// Clean up temporary CJS artifact
|
|
80
|
+
execFileSync('rm', ['-f', tmpCjs])
|
|
81
|
+
console.log(`Built avatar-engine.js and catalog.json (${catalog.items.length} avatars, ${catalog.palettes.length} palettes).`)
|
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"defaultAvatarId": "mochi",
|
|
4
|
+
"defaultColor": "#ff8a1f",
|
|
5
|
+
"defaultEyeColor": "#1b1b1b",
|
|
6
|
+
"items": [
|
|
7
|
+
{
|
|
8
|
+
"version": 1,
|
|
9
|
+
"id": "droid",
|
|
10
|
+
"name": "Droid",
|
|
11
|
+
"body": {
|
|
12
|
+
"path": "M37 14L63 14A18 18 0 0 1 81 32L81 38A18 18 0 0 1 63 56L37 56A18 18 0 0 1 19 38L19 32A18 18 0 0 1 37 14ZM45 52L55 52A4 4 0 0 1 59 56L59 58A4 4 0 0 1 55 62L45 62A4 4 0 0 1 41 58L41 56A4 4 0 0 1 45 52ZM40 59L60 59A12 12 0 0 1 72 71L72 76A12 12 0 0 1 60 88L40 88A12 12 0 0 1 28 76L28 71A12 12 0 0 1 40 59Z"
|
|
13
|
+
},
|
|
14
|
+
"eyes": {
|
|
15
|
+
"x": 50,
|
|
16
|
+
"y": 34,
|
|
17
|
+
"spacing": 17,
|
|
18
|
+
"scale": 1.08
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"version": 1,
|
|
23
|
+
"id": "ghost",
|
|
24
|
+
"name": "Phantom",
|
|
25
|
+
"body": {
|
|
26
|
+
"path": "M24 50C24 27 35 12 50 12C65 12 76 27 76 50L77 78C77 84 72 87 67 87C62 87 60 83 58 80C56 84 53 87 50 87C47 87 44 84 42 80C40 83 38 87 33 87C28 87 23 84 23 78Z"
|
|
27
|
+
},
|
|
28
|
+
"eyes": {
|
|
29
|
+
"x": 50,
|
|
30
|
+
"y": 43,
|
|
31
|
+
"spacing": 16,
|
|
32
|
+
"scale": 1.15
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"version": 1,
|
|
37
|
+
"id": "grok-pod",
|
|
38
|
+
"name": "Grok Pod",
|
|
39
|
+
"body": {
|
|
40
|
+
"path": "M14 46A36 33 0 1 1 86 46A36 33 0 1 1 14 46ZM34 70L66 70A8 8 0 0 1 74 78L74 78A8 8 0 0 1 66 86L34 86A8 8 0 0 1 26 78L26 78A8 8 0 0 1 34 70Z"
|
|
41
|
+
},
|
|
42
|
+
"eyes": {
|
|
43
|
+
"x": 50,
|
|
44
|
+
"y": 45,
|
|
45
|
+
"spacing": 18,
|
|
46
|
+
"scale": 1.15
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"version": 1,
|
|
51
|
+
"id": "guardian",
|
|
52
|
+
"name": "Guardian",
|
|
53
|
+
"body": {
|
|
54
|
+
"path": "M50 11C59.82 11 75.62 13.67 81 20C86.38 26.33 85.58 42.13 84 51C82.42 59.87 76.38 69.98 71 76C65.62 82.02 56.65 89 50 89C43.35 89 34.38 82.02 29 76C23.62 69.98 17.58 59.87 16 51C14.42 42.13 13.62 26.33 19 20C24.38 13.67 40.18 11 50 11Z"
|
|
55
|
+
},
|
|
56
|
+
"eyes": {
|
|
57
|
+
"x": 50,
|
|
58
|
+
"y": 46,
|
|
59
|
+
"spacing": 17,
|
|
60
|
+
"scale": 1.12
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"version": 1,
|
|
65
|
+
"id": "mecha",
|
|
66
|
+
"name": "Mecha",
|
|
67
|
+
"body": {
|
|
68
|
+
"path": "M42 20L58 20A22 22 0 0 1 80 42L80 60A22 22 0 0 1 58 82L42 82A22 22 0 0 1 20 60L20 42A22 22 0 0 1 42 20ZM17 36L17 36A7 7 0 0 1 24 43L24 59A7 7 0 0 1 17 66L17 66A7 7 0 0 1 10 59L10 43A7 7 0 0 1 17 36ZM83 36L83 36A7 7 0 0 1 90 43L90 59A7 7 0 0 1 83 66L83 66A7 7 0 0 1 76 59L76 43A7 7 0 0 1 83 36Z"
|
|
69
|
+
},
|
|
70
|
+
"eyes": {
|
|
71
|
+
"x": 50,
|
|
72
|
+
"y": 49,
|
|
73
|
+
"spacing": 17,
|
|
74
|
+
"scale": 1.1
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"version": 1,
|
|
79
|
+
"id": "mochi",
|
|
80
|
+
"name": "Mochi",
|
|
81
|
+
"body": {
|
|
82
|
+
"path": "M50 14C56.65 14 65.46 15.25 71 20C76.54 24.75 82.47 36.4 85 44C87.53 51.6 89.22 61.35 87 68C84.78 74.65 76.86 82.83 71 86C65.14 89.17 56.65 88 50 88C43.35 88 34.86 89.17 29 86C23.14 82.83 15.22 74.65 13 68C10.78 61.35 12.47 51.6 15 44C17.53 36.4 23.46 24.75 29 20C34.54 15.25 43.35 14 50 14Z"
|
|
83
|
+
},
|
|
84
|
+
"eyes": {
|
|
85
|
+
"x": 50,
|
|
86
|
+
"y": 50,
|
|
87
|
+
"spacing": 17,
|
|
88
|
+
"scale": 1.15
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"version": 1,
|
|
93
|
+
"id": "neko",
|
|
94
|
+
"name": "Neko",
|
|
95
|
+
"body": {
|
|
96
|
+
"path": "M16 54A34 31 0 1 1 84 54A34 31 0 1 1 16 54ZM20 42C17.02 39.88 17.88 15.84 21 14C24.12 12.16 42.14 25.03 42 29C41.86 32.97 22.98 44.13 20 42ZM80 42C82.98 39.88 82.12 15.84 79 14C75.88 12.16 57.86 25.03 58 29C58.14 32.97 77.03 44.13 80 42Z"
|
|
97
|
+
},
|
|
98
|
+
"eyes": {
|
|
99
|
+
"x": 50,
|
|
100
|
+
"y": 52,
|
|
101
|
+
"spacing": 17,
|
|
102
|
+
"scale": 1.1
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"version": 1,
|
|
107
|
+
"id": "orbiter",
|
|
108
|
+
"name": "Orbiter",
|
|
109
|
+
"body": {
|
|
110
|
+
"path": "M23 49A27 27 0 1 1 77 49A27 27 0 1 1 23 49ZM46.92 42.4L51.37 41.3L55.81 40.35L60.17 39.57L64.41 38.98L68.47 38.57L72.29 38.36L75.84 38.35L79.05 38.53L81.91 38.91L84.36 39.47L86.38 40.22L87.94 41.14L89.03 42.23L89.62 43.46L89.72 44.82L89.32 46.3L88.42 47.88L87.04 49.54L85.19 51.25L82.9 52.99L80.2 54.75L77.12 56.49L73.69 58.21L69.97 59.87L66 61.46L61.82 62.96L57.5 64.34L53.08 65.6L48.63 66.7L44.19 67.65L39.83 68.43L35.59 69.02L31.53 69.43L27.71 69.64L24.16 69.65L20.95 69.47L18.09 69.09L15.64 68.53L13.62 67.78L12.06 66.86L10.97 65.77L10.38 64.54L10.28 63.18L10.68 61.7L11.58 60.12L12.96 58.46L14.81 56.75L17.1 55.01L19.8 53.25L22.88 51.51L26.31 49.79L30.03 48.13L34 46.54L38.18 45.04L42.5 43.66ZM44.86 49.71L41.2 50.79L37.65 51.91L34.26 53.06L31.06 54.22L28.11 55.37L25.42 56.51L23.05 57.62L21.02 58.68L19.35 59.68L18.06 60.62L17.18 61.46L16.71 62.22L16.66 62.87L17.03 63.41L17.81 63.83L19 64.13L20.57 64.3L22.52 64.34L24.81 64.25L27.42 64.03L30.32 63.69L33.46 63.22L36.81 62.64L40.32 61.95L43.96 61.16L47.67 60.27L51.41 59.32L55.14 58.29L58.8 57.21L62.35 56.09L65.74 54.94L68.94 53.78L71.89 52.63L74.58 51.49L76.95 50.38L78.98 49.32L80.65 48.32L81.94 47.38L82.82 46.54L83.29 45.78L83.34 45.13L82.97 44.59L82.19 44.17L81 43.87L79.43 43.7L77.48 43.66L75.19 43.75L72.58 43.97L69.68 44.31L66.54 44.78L63.19 45.36L59.68 46.05L56.04 46.84L52.33 47.73L48.59 48.68Z"
|
|
111
|
+
},
|
|
112
|
+
"eyes": {
|
|
113
|
+
"x": 50,
|
|
114
|
+
"y": 46,
|
|
115
|
+
"spacing": 15,
|
|
116
|
+
"scale": 1.05
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"version": 1,
|
|
121
|
+
"id": "relay",
|
|
122
|
+
"name": "Relay",
|
|
123
|
+
"body": {
|
|
124
|
+
"path": "M40 30L60 30A24 24 0 0 1 84 54L84 62A24 24 0 0 1 60 86L40 86A24 24 0 0 1 16 62L16 54A24 24 0 0 1 40 30ZM49 16L51 16A4 4 0 0 1 55 20L55 30A4 4 0 0 1 51 34L49 34A4 4 0 0 1 45 30L45 20A4 4 0 0 1 49 16ZM43 15A7 7 0 1 1 57 15A7 7 0 1 1 43 15Z"
|
|
125
|
+
},
|
|
126
|
+
"eyes": {
|
|
127
|
+
"x": 50,
|
|
128
|
+
"y": 56,
|
|
129
|
+
"spacing": 18,
|
|
130
|
+
"scale": 1.12
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"version": 1,
|
|
135
|
+
"id": "shape-blob",
|
|
136
|
+
"name": "Blob",
|
|
137
|
+
"body": {
|
|
138
|
+
"path": "M50 12C57.33 12 66.17 12.33 72 16C77.83 19.67 82.5 26.5 85 34C87.5 41.5 88.83 52.83 87 61C85.17 69.17 80.17 78.5 74 83C67.83 87.5 58 88 50 88C42 88 32.17 87.5 26 83C19.83 78.5 14.83 69.17 13 61C11.17 52.83 12.5 41.5 15 34C17.5 26.5 22.17 19.67 28 16C33.83 12.33 42.67 12 50 12Z"
|
|
139
|
+
},
|
|
140
|
+
"eyes": {
|
|
141
|
+
"x": 50,
|
|
142
|
+
"y": 50,
|
|
143
|
+
"spacing": 18,
|
|
144
|
+
"scale": 1.15
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"version": 1,
|
|
149
|
+
"id": "shape-capsule",
|
|
150
|
+
"name": "Capsule",
|
|
151
|
+
"body": {
|
|
152
|
+
"path": "M43 17H57A33 33 0 0 1 90 50A33 33 0 0 1 57 83H43A33 33 0 0 1 10 50A33 33 0 0 1 43 17Z"
|
|
153
|
+
},
|
|
154
|
+
"eyes": {
|
|
155
|
+
"x": 50,
|
|
156
|
+
"y": 49,
|
|
157
|
+
"spacing": 18,
|
|
158
|
+
"scale": 1.1
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"version": 1,
|
|
163
|
+
"id": "shape-circle",
|
|
164
|
+
"name": "Circle",
|
|
165
|
+
"body": {
|
|
166
|
+
"path": "M11 50A39 39 0 1 1 89 50A39 39 0 1 1 11 50Z"
|
|
167
|
+
},
|
|
168
|
+
"eyes": {
|
|
169
|
+
"x": 50,
|
|
170
|
+
"y": 48,
|
|
171
|
+
"spacing": 18,
|
|
172
|
+
"scale": 1.15
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"version": 1,
|
|
177
|
+
"id": "shape-cloud",
|
|
178
|
+
"name": "Cloud",
|
|
179
|
+
"body": {
|
|
180
|
+
"path": "M24 76C17.83 74.1 12.9 70.59 11 66C9.1 61.41 9.94 51.59 12 47C14.06 42.41 20.83 41.12 24 37C27.17 32.88 27.88 24.17 32 21C36.12 17.83 44.3 16.84 50 17C55.7 17.16 63.88 18.83 68 22C72.12 25.17 72.83 33.04 76 37C79.17 40.96 85.94 42.41 88 47C90.06 51.59 90.9 61.41 89 66C87.1 70.59 82.18 74.1 76 76C69.83 77.9 58.23 78 50 78C41.77 78 30.18 77.9 24 76Z"
|
|
181
|
+
},
|
|
182
|
+
"eyes": {
|
|
183
|
+
"x": 50,
|
|
184
|
+
"y": 52,
|
|
185
|
+
"spacing": 17,
|
|
186
|
+
"scale": 1.05
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"version": 1,
|
|
191
|
+
"id": "shape-droplet",
|
|
192
|
+
"name": "Droplet",
|
|
193
|
+
"body": {
|
|
194
|
+
"path": "M50 11C55.7 11 62.62 18.14 68 24C73.38 29.86 81.15 40.56 84 48C86.85 55.44 87.9 64.98 86 71C84.1 77.02 77.7 83.15 72 86C66.3 88.85 56.97 89 50 89C43.03 89 33.7 88.85 28 86C22.3 83.15 15.9 77.02 14 71C12.1 64.98 13.15 55.44 16 48C18.85 40.56 26.62 29.86 32 24C37.38 18.14 44.3 11 50 11Z"
|
|
195
|
+
},
|
|
196
|
+
"eyes": {
|
|
197
|
+
"x": 50,
|
|
198
|
+
"y": 57,
|
|
199
|
+
"spacing": 16,
|
|
200
|
+
"scale": 1.08
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"version": 1,
|
|
205
|
+
"id": "shape-hexagon",
|
|
206
|
+
"name": "Hexagon",
|
|
207
|
+
"body": {
|
|
208
|
+
"path": "M40.47 15.5Q50 10 59.53 15.5L75.11 24.5Q84.64 30 84.64 41L84.64 59Q84.64 70 75.11 75.5L59.53 84.5Q50 90 40.47 84.5L24.89 75.5Q15.36 70 15.36 59L15.36 41Q15.36 30 24.89 24.5Z"
|
|
209
|
+
},
|
|
210
|
+
"eyes": {
|
|
211
|
+
"x": 50,
|
|
212
|
+
"y": 49,
|
|
213
|
+
"spacing": 17,
|
|
214
|
+
"scale": 1.1
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"version": 1,
|
|
219
|
+
"id": "shape-sphere",
|
|
220
|
+
"name": "Sphere",
|
|
221
|
+
"body": {
|
|
222
|
+
"path": "M11 50A39 39 0 1 1 89 50A39 39 0 1 1 11 50Z"
|
|
223
|
+
},
|
|
224
|
+
"eyes": {
|
|
225
|
+
"x": 50,
|
|
226
|
+
"y": 48,
|
|
227
|
+
"spacing": 18,
|
|
228
|
+
"scale": 1.12
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"version": 1,
|
|
233
|
+
"id": "shape-squircle",
|
|
234
|
+
"name": "Squircle",
|
|
235
|
+
"body": {
|
|
236
|
+
"path": "M88 50C88 54.32 87.94 61.42 87.84 64.41C87.75 67.41 87.57 68.52 87.38 69.96C87.19 71.41 86.88 72.95 86.59 74.05C86.31 75.15 85.87 76.42 85.48 77.32C85.1 78.21 84.52 79.27 84.03 80C83.54 80.74 82.82 81.61 82.22 82.22C81.61 82.82 80.74 83.54 80 84.03C79.27 84.52 78.21 85.1 77.32 85.48C76.42 85.87 75.15 86.31 74.05 86.59C72.95 86.88 71.41 87.19 69.96 87.38C68.52 87.57 67.41 87.75 64.41 87.84C61.42 87.94 54.32 88 50 88C45.68 88 38.58 87.94 35.59 87.84C32.59 87.75 31.48 87.57 30.04 87.38C28.59 87.19 27.05 86.88 25.95 86.59C24.85 86.31 23.58 85.87 22.68 85.48C21.79 85.1 20.73 84.52 20 84.03C19.26 83.54 18.39 82.82 17.78 82.22C17.18 81.61 16.46 80.74 15.97 80C15.48 79.27 14.9 78.21 14.52 77.32C14.13 76.42 13.69 75.15 13.41 74.05C13.12 72.95 12.81 71.41 12.62 69.96C12.43 68.52 12.25 67.41 12.16 64.41C12.06 61.42 12 54.32 12 50C12 45.68 12.06 38.58 12.16 35.59C12.25 32.59 12.43 31.48 12.62 30.04C12.81 28.59 13.12 27.05 13.41 25.95C13.69 24.85 14.13 23.58 14.52 22.68C14.9 21.79 15.48 20.73 15.97 20C16.46 19.26 17.18 18.39 17.78 17.78C18.39 17.18 19.26 16.46 20 15.97C20.73 15.48 21.79 14.9 22.68 14.52C23.58 14.13 24.85 13.69 25.95 13.41C27.05 13.12 28.59 12.81 30.04 12.62C31.48 12.43 32.59 12.25 35.59 12.16C38.58 12.06 45.68 12 50 12C54.32 12 61.42 12.06 64.41 12.16C67.41 12.25 68.52 12.43 69.96 12.62C71.41 12.81 72.95 13.12 74.05 13.41C75.15 13.69 76.42 14.13 77.32 14.52C78.21 14.9 79.27 15.48 80 15.97C80.74 16.46 81.61 17.18 82.22 17.78C82.82 18.39 83.54 19.26 84.03 20C84.52 20.73 85.1 21.79 85.48 22.68C85.87 23.58 86.31 24.85 86.59 25.95C86.88 27.05 87.19 28.59 87.38 30.04C87.57 31.48 87.75 32.59 87.84 35.59C87.94 38.58 88 45.68 88 50Z"
|
|
237
|
+
},
|
|
238
|
+
"eyes": {
|
|
239
|
+
"x": 50,
|
|
240
|
+
"y": 48,
|
|
241
|
+
"spacing": 18,
|
|
242
|
+
"scale": 1.15
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"version": 1,
|
|
247
|
+
"id": "shape-star",
|
|
248
|
+
"name": "Star",
|
|
249
|
+
"body": {
|
|
250
|
+
"path": "M44.26 16.93Q50 10 55.74 16.93L60.13 22.23Q65.87 29.16 74.24 32.48L80.63 35.01Q88.99 38.33 84.18 45.93L80.5 51.74Q75.68 59.34 75.11 68.33L74.67 75.19Q74.1 84.17 65.38 81.94L58.72 80.23Q50 78 41.28 80.23L34.62 81.94Q25.9 84.17 25.33 75.19L24.89 68.33Q24.32 59.34 19.5 51.74L15.82 45.93Q11.01 38.33 19.37 35.01L25.76 32.48Q34.13 29.16 39.87 22.23Z"
|
|
251
|
+
},
|
|
252
|
+
"eyes": {
|
|
253
|
+
"x": 50,
|
|
254
|
+
"y": 51,
|
|
255
|
+
"spacing": 15,
|
|
256
|
+
"scale": 0.96
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"version": 1,
|
|
261
|
+
"id": "spark",
|
|
262
|
+
"name": "Spark",
|
|
263
|
+
"body": {
|
|
264
|
+
"path": "M50 10C53.6 10 56 28 62 34C68 40 90 45.2 90 50C90 54.8 68 60 62 66C56 72 53.6 90 50 90C46.4 90 44 72 38 66C32 60 10 54.8 10 50C10 45.2 32 40 38 34C44 28 46.4 10 50 10Z"
|
|
265
|
+
},
|
|
266
|
+
"eyes": {
|
|
267
|
+
"x": 50,
|
|
268
|
+
"y": 50,
|
|
269
|
+
"spacing": 15,
|
|
270
|
+
"scale": 1.05
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
],
|
|
274
|
+
"palettes": [
|
|
275
|
+
{
|
|
276
|
+
"id": "coral",
|
|
277
|
+
"name": "赤陶橙",
|
|
278
|
+
"base": "#ff6a1a",
|
|
279
|
+
"highlight": "#ffd4b8",
|
|
280
|
+
"shadow": "#8c2800",
|
|
281
|
+
"eye": "#141622",
|
|
282
|
+
"accent": "#ffaa66"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"id": "cobalt",
|
|
286
|
+
"name": "钴蓝",
|
|
287
|
+
"base": "#2563eb",
|
|
288
|
+
"highlight": "#bfdbfe",
|
|
289
|
+
"shadow": "#132a73",
|
|
290
|
+
"eye": "#fafaff",
|
|
291
|
+
"accent": "#60a5fa"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"id": "emerald",
|
|
295
|
+
"name": "薄荷翠",
|
|
296
|
+
"base": "#10b981",
|
|
297
|
+
"highlight": "#ccfbf1",
|
|
298
|
+
"shadow": "#064e3b",
|
|
299
|
+
"eye": "#141622",
|
|
300
|
+
"accent": "#5eead4"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"id": "amber",
|
|
304
|
+
"name": "琥珀金",
|
|
305
|
+
"base": "#f59e0b",
|
|
306
|
+
"highlight": "#fef3c7",
|
|
307
|
+
"shadow": "#78350f",
|
|
308
|
+
"eye": "#141622",
|
|
309
|
+
"accent": "#fcd34d"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"id": "crimson",
|
|
313
|
+
"name": "绯红",
|
|
314
|
+
"base": "#ef4444",
|
|
315
|
+
"highlight": "#fecaca",
|
|
316
|
+
"shadow": "#7f1d1d",
|
|
317
|
+
"eye": "#fafaff",
|
|
318
|
+
"accent": "#fca5a5"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"id": "violet",
|
|
322
|
+
"name": "暮紫",
|
|
323
|
+
"base": "#8b5cf6",
|
|
324
|
+
"highlight": "#ede9fe",
|
|
325
|
+
"shadow": "#4c1d95",
|
|
326
|
+
"eye": "#fafaff",
|
|
327
|
+
"accent": "#c4b5fd"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"id": "teal",
|
|
331
|
+
"name": "深海青",
|
|
332
|
+
"base": "#0d9488",
|
|
333
|
+
"highlight": "#ccfbf1",
|
|
334
|
+
"shadow": "#11423e",
|
|
335
|
+
"eye": "#fafaff",
|
|
336
|
+
"accent": "#2dd4bf"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"id": "rose",
|
|
340
|
+
"name": "蔷薇粉",
|
|
341
|
+
"base": "#ec4899",
|
|
342
|
+
"highlight": "#fce7f3",
|
|
343
|
+
"shadow": "#831843",
|
|
344
|
+
"eye": "#fafaff",
|
|
345
|
+
"accent": "#f9a8d4"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"id": "indigo",
|
|
349
|
+
"name": "靛青",
|
|
350
|
+
"base": "#4f46e5",
|
|
351
|
+
"highlight": "#e0e7ff",
|
|
352
|
+
"shadow": "#1e1b4b",
|
|
353
|
+
"eye": "#fafaff",
|
|
354
|
+
"accent": "#818cf8"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"id": "lime",
|
|
358
|
+
"name": "青柠",
|
|
359
|
+
"base": "#84cc16",
|
|
360
|
+
"highlight": "#f7fee7",
|
|
361
|
+
"shadow": "#365314",
|
|
362
|
+
"eye": "#141622",
|
|
363
|
+
"accent": "#bef264"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"id": "obsidian",
|
|
367
|
+
"name": "黑曜石",
|
|
368
|
+
"base": "#27272a",
|
|
369
|
+
"highlight": "#71717a",
|
|
370
|
+
"shadow": "#09090b",
|
|
371
|
+
"eye": "#fafaff",
|
|
372
|
+
"accent": "#a1a1aa"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"id": "pearl",
|
|
376
|
+
"name": "陶瓷白",
|
|
377
|
+
"base": "#ede9e2",
|
|
378
|
+
"highlight": "#ffffff",
|
|
379
|
+
"shadow": "#9c9284",
|
|
380
|
+
"eye": "#141622",
|
|
381
|
+
"accent": "#ff6a1a"
|
|
382
|
+
}
|
|
383
|
+
],
|
|
384
|
+
"eyeSwatches": [
|
|
385
|
+
"#151515",
|
|
386
|
+
"#1b1b1b",
|
|
387
|
+
"#ffffff",
|
|
388
|
+
"#0a7cff",
|
|
389
|
+
"#e11d48"
|
|
390
|
+
],
|
|
391
|
+
"materials": [
|
|
392
|
+
"flat",
|
|
393
|
+
"fluffy"
|
|
394
|
+
],
|
|
395
|
+
"states": [
|
|
396
|
+
"idle",
|
|
397
|
+
"thinking",
|
|
398
|
+
"working",
|
|
399
|
+
"waiting",
|
|
400
|
+
"blocked",
|
|
401
|
+
"done",
|
|
402
|
+
"alert"
|
|
403
|
+
],
|
|
404
|
+
"moods": [
|
|
405
|
+
"neutral",
|
|
406
|
+
"happy",
|
|
407
|
+
"joy",
|
|
408
|
+
"love",
|
|
409
|
+
"surprised",
|
|
410
|
+
"curious",
|
|
411
|
+
"skeptical",
|
|
412
|
+
"sleepy",
|
|
413
|
+
"bored",
|
|
414
|
+
"sad",
|
|
415
|
+
"angry",
|
|
416
|
+
"focused",
|
|
417
|
+
"confused",
|
|
418
|
+
"shy",
|
|
419
|
+
"smug"
|
|
420
|
+
]
|
|
421
|
+
}
|