suzmii 3673f6f92b
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Failing after 4m39s
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Failing after 3m50s
Project CI / AI game creator shell Rust crates (pull_request) Failing after 5m4s
Project CI / Frontend tests (pull_request) Successful in 2m36s
Project CI / Repository checks (pull_request) Failing after 3m34s
Project CI / Backend tests (pull_request) Successful in 9m4s
Project CI / AI game creator shell web tests (pull_request) Successful in 2m54s
Project CI / Native shell tests (pull_request) Has been cancelled
fix(agc): AGC 壳生产门禁按交付平台收窄到 Windows,修 Linux CI 红因
背景(CI run 3603 证据):lane 1/2 在 Linux 上报 `error: could not compile genarrative-ai-game-creator-shell (bin) due to 54 previous errors`,逐条是 `never used`(acl_repair_gate 的 AclRepairGateResult/AclRepairPolicy/ACL_REPAIR_POLICY/LeaderGuard、Windows 策略路径 normalize_windows_policy_path、编辑器 RPC managed_editor_rpc/execute_unity_editor_code/execute_godot_editor_code、process_session_bridge 的 verdict 枚举与桥服务、configure_windows_background_tokio_command 等)。这些项在 Windows 上都被真实调用(本地 Windows bin 口径 0 warning 可证),在 Linux 上因大量 Windows 专用实现被整块编掉而变成未用项。

修法:main.rs 顶部由 `#![cfg_attr(not(test), deny(warnings))]` 改为 `#![cfg_attr(all(not(test), windows), deny(warnings))]`,并把注释写清两个条件(not(test) = 隔离 test harness 实例假死;windows = 交付面是 WebView2/Windows,Linux 构建存在的未用项是“编译剔除”产物)。

CI 无外部 RUSTFLAGS/-D warnings 注入(已全仓核对 .gitea/scripts/package.json),因此 Linux 构建只会把它们当普通 warning,不会红。

同步更新 dev 运维文档「Rust 编译告警门禁」的 AGC 特例条目:记录 cfg(windows) 的来历与 54 条实测数字,并保留 not(test) 的原有说明。

验证(Windows,门禁仍生效):bin 口径 0 warning / EXIT=0;--all-targets EXIT=0(test harness 实例 336 条,全部属测试构建产物);cargo fmt --all --check、npm run check:encoding(5406 文件)、git diff --check 全 rc=0;零新增 #[allow]。

同批还包含:合并 origin/master(merge commit 2a3d1b3d6),满足 CI 守卫步骤 “pull request head 必须包含最新 base commit”(此前 Backend tests 因此 exit=1)。
2026-10-06 19:06:57 +08:00
2026-09-30 14:07:06 +08:00
2026-08-21 12:20:43 +08:00
2026-04-26 18:06:23 +08:00
2026-07-07 14:04:08 +08:00
2026-07-16 18:33:06 +08:00
2026-10-01 11:35:27 +08:00
2026-05-08 17:58:33 +08:00
2026-07-17 22:07:52 +08:00
1
2026-05-14 14:21:17 +08:00
2026-09-22 12:42:27 +08:00

Genarrative / 陶泥儿

一个 AI 原生互动内容与小游戏平台,当前主站聚焦图片画布创作、项目与素材管理,以及账号、钱包和后台管理等平台公共能力。

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

  • 图片画布编辑、项目与素材管理
  • 图片、视频、音频等外部生成任务
  • 账号、钱包、充值、兑换码与个人资料
  • 后台运营、配置与生产运维工具
  • AI 游戏创作独立 App

运行

前置条件:

  • Node.js
  • Rust / Cargo
  • SpacetimeDB CLI

安装依赖:

npm install

该命令会按根 package.json 的 npm workspaces 一次安装主站、Admin、Mobile、Desktop、AGC、Preview Deployer、内部 packages 与工具依赖;仓库只使用根 package-lock.json,不要在子目录单独执行 npm install / npm ci 或提交嵌套 lockfile。

准备环境变量:

  • 复制 .env.example 为 .env.local
  • 只填写本次联调所需配置;不要提交 .env.local、密钥、Token 或其它本地认证信息
  • api-server 环境变量和 Provider 配置以 .env.example 及当前开发运维文档为准

启动开发环境:

npm run dev

补充说明:

  • npm run dev 会启动 SpacetimeDB standalone、独立 bgfilter-worker、Rust api-server、主站 Vite 与后台 Vite,适合完整联调;内部 worker ready 后才启动 API。
  • 主站默认地址是 http://127.0.0.1:3000,后台可从 http://127.0.0.1:3000/admin/ 进入,也可直连 http://127.0.0.1:3102。
  • 五个模块可独立启动:npm run dev:spacetime、npm run dev:api-server、npm run dev:bgfilter-worker、npm run dev:web、npm run dev:admin-web;其中 dev:api-server 会安全带起同 runner 的 BgFilter worker 依赖。
  • 如需自动刷新后端模块,使用 npm run dev -- --watch;其中 spacetime-module 改动后只会重新发布模块,不会重启 standalone,Rust 源码改动会把 api-server 与 bgfilter-worker 作为一个组合单元重启。主站和后台前端源码变化交给 Vite 自身 HMR,不由外层 watcher 重启。非 watch 模式下可在 npm run dev 终端输入 rs api-server、rs bgfilter-worker、rs web、rs admin-web、rs spacetime 或 rs all,其中 rs spacetime 也是只重新发布模块。

构建生产包:

npm run build

常用检查

类型检查:

npm run lint

编码检查:

npm run check:encoding

主要结构

主运行时:

创作与项目能力:

文档入口

docs/ 已在 2026-08-25 按当前代码与运行态重新收口。旧 PRD、设计、审计、阶段计划和技术流水账不再作为实现依据;专题文档的现役清单统一从 docs/README.md 进入:

S
Description
叙世
Readme 1 GiB
Languages
Rust 48.7%
TypeScript 31.2%
JavaScript 9.2%
Java 3.6%
Go 3.1%
Other 3.9%