JenkenB 097170836d Add UI-design asset extraction & spritesheet support
Introduce a new UI design asset extraction flow: add POST /api/editor/ui-designs/assets/extractions handler that always uses gpt-image-2 with the fixed prompt "提取画面中的所有独立并整理成spritesheet"; parse Data URL references, call OpenAI image edits, return a spritesheet and sliced icon assets. Increase request body limit for image Data URLs and wire the route with bearer auth. Add platform-image slicing: slice_generated_icon_spritesheet_all_by_connected_components (with auto-naming "素材 1..N", foreground estimation and heuristics) and export it. Add Rust tests for the handler, prompt constant, and slicing behavior. Update frontend client and integration tests to call the new extractEditorUiDesignAssets API and verify spritesheet + icon layers are added to the canvas and persisted. Update multiple docs to describe the extraction UI, toolbar placement, and related audio/playback pitfalls. Minor related updates: toolbar button ordering and audio duration / signed read-url notes.
2026-06-19 10:09:19 +08:00
2026-04-26 18:06:23 +08:00
2026-06-16 11:45:14 +08:00
2026-06-17 20:52:45 +08:00
2026-06-13 15:44:35 +08:00
1
2026-05-02 17:56:42 +08:00
2026-06-13 16:22:18 +08:00
2026-06-16 16:37:40 +08:00
2026-04-26 18:06:23 +08:00
1
2026-05-11 16:15:48 +08:00
2026-06-18 15:15:54 +08:00
2026-05-08 17:58:33 +08:00
2026-06-16 16:10:33 +08:00
2026-06-13 16:22:18 +08:00
1
2026-05-14 14:21:17 +08:00
1
2026-05-14 14:21:17 +08:00
2026-05-15 11:52:51 +08:00
2026-04-26 18:06:23 +08:00

AI Native Visual RPG

一个以“AI 叙事 + 本地规则 + 像素演出”为核心的视觉 RPG 原型。

当前已经具备这些主要能力:

  • 世界与角色选择
  • AI 剧情推进与流式对话
  • 战斗演出、NPC 战斗、切磋
  • NPC 交易、送礼、求助、招募
  • 宝藏交互
  • 同伴跟随与战斗
  • 游戏主流程内嵌的角色资产工坊、自定义世界实体编辑与角色形象编辑
  • 自动存档与继续游戏

运行

前置条件:

  • Node.js
  • Rust / Cargo
  • SpacetimeDB CLI

安装依赖:

npm install

准备环境变量:

  • 复制 .env.example.env.local
  • 填入 LLM_API_KEY / ARK_API_KEY
  • 按需设置 VITE_LLM_MODEL
  • 如需启用阿里云短信验证码登录,填写 ALIYUN_SMS_ACCESS_KEY_IDALIYUN_SMS_ACCESS_KEY_SECRET,并确认 SMS_AUTH_PROVIDER="aliyun"
  • 本地联调短信登录时,建议将 VITE_AUTH_ALLOW_DEV_GUEST 设为 false,避免开发模式自动进入游客账号而跳过登录页
  • 如需打印完整 prompt/output,可把 VITE_LLM_DEBUG_LOG 设为 true

启动开发环境:

npm run dev

补充说明:

  • npm run dev 会启动 SpacetimeDB standalone、Rust api-server、主站 Vite 与后台 Vite,适合完整联调。
  • 主站默认地址是 http://127.0.0.1:3000,后台可从 http://127.0.0.1:3000/admin/ 进入,也可直连 http://127.0.0.1:3102
  • 四个模块可独立启动:npm run dev:spacetimenpm run dev:api-servernpm run dev:webnpm run dev:admin-web
  • 如需自动刷新后端模块,使用 npm run dev -- --watch;其中 spacetime-module 改动后只会重新发布模块,不会重启 standalone,api-server 改动后会重启 Rust 进程。主站和后台前端源码变化交给 Vite 自身 HMR,不由外层 watcher 重启。非 watch 模式下可在 npm run dev 终端输入 rs api-serverrs webrs admin-webrs spacetimers all,其中 rs spacetime 也是只重新发布模块。

构建生产包:

npm run build

常用检查

类型检查:

npm run lint

编码检查:

npm run check:encoding

内容引用校验:

npm run check:data

编辑器 override 校验:

npm run check:overrides

关键内容 smoke 检查:

npm run check:smoke

一键内容检查:

npm run check:content

主要结构

主运行时:

主流程内嵌编辑能力:

核心数据:

文档入口

docs/ 已在 2026-05-15 完成压缩整理,旧 PRD、设计、审计、阶段计划和技术流水账不再作为实现依据。当前只读取:

S
Description
叙世
Readme 725 MiB
Languages
Rust 56.1%
TypeScript 24.4%
JavaScript 10%
Java 3.7%
Go 3.1%
Other 2.6%