d5743cd4b8
Project CI / AI game creator shell Rust shard 1/4 (push) Has been cancelled
Project CI / AI game creator shell Rust shard 2/4 (push) Has been cancelled
Project CI / AI game creator shell Rust shard 3/4 (push) Has been cancelled
Project CI / AI game creator shell Rust shard 4/4 (push) Has been cancelled
Project CI / AI game creator shell Rust smoke (push) Has been cancelled
Project CI / AI game creator shell Rust crates (push) Has been cancelled
Project CI / Backend tests (push) Has been cancelled
Project CI / Native shell tests (push) Has been cancelled
Project CI / Frontend tests (push) Has been cancelled
Project CI / Repository checks (push) Has been cancelled
Project CI / AI game creator shell web tests (push) Has been cancelled
## 目的 资源画布支持引擎(Cocos Creator)资源的**只读预览**:能被发现、登记、进入画布,并按类型出预览。 ## 主要改动 - 发现层识别 Cocos 资源并区分 `model` / `binary` 两个发现类别;`.meta` 等导入侧车文件仍只可发现 - 登记层按扩展名写入**既有** canonical kind(模型/场景/预制体 → `scene`,动画 → `character-animation`,材质/特效 → `code`,图集与容器 → `document`),不新增 manifest 契约字段 - 引擎工程的 `library/` / `temp/` / `profiles/` / `local/` 不再进入发现结果(仅当目录确实是 Cocos 工程),同名目录在非引擎工程里照常列出 - 资源画布新增三个卡面分支:模型缩略图(整页共用一个 WebGL 上下文)、结构摘要(Cocos 序列化资源)、类型卡(客户端解不了的容器) - 新增模型放大预览浮层:左键旋转 / 右键或中键平移 / 滚轮缩放 / 复位视角 - 模型预览上限 32 MiB;缩略图按布局尺寸 2 倍超采样,缓存键改用稳定身份 - 引擎图像容器(tga/tif/tiff/hdr)在原生侧转码成 PNG 后复用既有图片预览链路 - 修复资源卡状态边框吃掉内容盒导致的卡面与角标位移 - 同步 Agent 提示词与 AGC 技能文档,并补里程碑与踩坑文档 ## 验证 - `cargo check`、`cargo fmt --check` - Rust 定向:`cargo test … cocos` 9 条、`resource_inspect::tests` 7 条、`agent_asset_import_tests` 9 条、生成目录过滤用例 - 前端:`resource` + `project` 套件 52 文件 / 546 用例;`appSurface` 450 通过 / 20 跳过;app `tsc --noEmit` - `npm run check:encoding`、`git diff --check`、`npm run check:doc-index` - 真机:在真实客户端内打开本地 Cocos 夹具工程,逐栏核对模型缩略图 / 结构摘要 / TGA 转码 / 类型卡,并量过卡片在指针移开、悬停、选中三态下几何完全一致 ## 未验证 - 模型缩略图与放大预览的真机视觉只覆盖自带夹具工程;多文件 glTF(外部 .bin/贴图)与超大模型仍是类型卡 --------- Co-authored-by: kdletters <61648117+kdletters@users.noreply.github.com> Reviewed-on: http://192.168.35.82/git/GenarrativeAI/Genarrative/pulls/413
103 lines
4.0 KiB
TOML
103 lines
4.0 KiB
TOML
[package]
|
|
name = "genarrative-ai-game-creator-shell"
|
|
version = "0.1.47"
|
|
edition = "2021"
|
|
publish = false
|
|
|
|
[features]
|
|
default = []
|
|
# 模板库假数据注入(仅本地页面压测/演示用):只有显式开启该 feature 才会编译并在读取清单后
|
|
# 把条目循环补齐成假数据;计数由 AGC_TEMPLATE_LIBRARY_SYNTHETIC_COUNT 控制(默认 1000)。
|
|
template-library-fixtures = []
|
|
cocos-editor = ["cocos-editor-bridge/process-discovery"]
|
|
cocos-editor-execute = ["cocos-editor", "cocos-editor-bridge/windows-bootstrap"]
|
|
cocos-editor-injection = ["cocos-editor-execute", "cocos-editor-bridge/windows-injection"]
|
|
|
|
[build-dependencies]
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
sha2 = "0.10"
|
|
shared-contracts = { path = "../../../server-rs/crates/shared-contracts", default-features = false }
|
|
tauri-build = { version = "2.6.2", features = [] }
|
|
|
|
[dependencies]
|
|
ts-rs = "12.0.1"
|
|
typed_floats = { version = "1.0.7", features = ["serde"] }
|
|
nalgebra = { version = "0.35.0", features = ["serde-serialize"] }
|
|
agent-runtime-core = { path = "../../../server-rs/crates/agent-runtime-core" }
|
|
cocos-editor-bridge = { path = "../../../plugins/agc-cocos-editor/native/cocos-editor-bridge", default-features = false }
|
|
editor-adapter-api = { path = "../../../server-rs/crates/editor-adapter-api" }
|
|
base64 = "0.22"
|
|
axum = "0.8"
|
|
chromiumoxide = "0.9.1"
|
|
futures = "0.3"
|
|
getrandom = "0.3"
|
|
http = "1"
|
|
# `tga` / `tiff` / `hdr` 只服务资源画布的只读预览:引擎图像容器(Cocos 的
|
|
# .tga/.tif/.hdr 等)在浏览器里没有解码器,必须先在原生侧转码成 PNG 再送给前端。
|
|
# 刻意不开 `exr`:它要求 `exr ^1.74.0`,当前依赖源只能到 1.73,打不开就先让
|
|
# `.exr` 走「类型卡」而不是留一半解不出来的预览分支。
|
|
image = { version = "0.25", default-features = false, features = ["jpeg", "png", "webp", "tga", "tiff", "hdr"] }
|
|
jsonschema = { version = "0.49.3", default-features = false }
|
|
oxc_allocator = "0.143.0"
|
|
oxc_ast = "0.143.0"
|
|
oxc_ast_visit = "0.143.0"
|
|
oxc_parser = "0.143.0"
|
|
oxc_semantic = "0.143.0"
|
|
oxc_span = "0.143.0"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
serde_yaml = "0.9"
|
|
schemars = "1.2.1"
|
|
sha2 = "0.10"
|
|
similar = "2.7"
|
|
platform-llm = { path = "../../../server-rs/crates/platform-llm" }
|
|
platform-agent = { path = "../../../server-rs/crates/platform-agent" }
|
|
portable-pty = "0.9"
|
|
reqwest = { version = "0.12", default-features = false, features = ["json", "multipart", "native-tls", "stream"] }
|
|
regex = "1"
|
|
shared-contracts = { path = "../../../server-rs/crates/shared-contracts", default-features = false }
|
|
tauri = { version = "2.11.2", features = [] }
|
|
tauri-plugin-dialog = "2.7.1"
|
|
tauri-plugin-http = { version = "2.5.9", default-features = false, features = ["charset", "cookies", "http2", "rustls-tls"] }
|
|
tauri-plugin-opener = "2"
|
|
tauri-plugin-updater = "2.11.0"
|
|
tempfile = "3"
|
|
toml = "0.8"
|
|
ttf-parser = "0.25.1"
|
|
tokio = { version = "1", features = ["io-util", "macros", "process", "rt-multi-thread", "signal", "sync", "time"] }
|
|
url = "2"
|
|
unicode-normalization = "0.1"
|
|
uuid = { version = "1", features = ["v4"] }
|
|
zip = { version = "2", default-features = false, features = ["deflate"] }
|
|
tauri-plugin-clipboard-manager = "2.3.2"
|
|
maud = "0.27.0"
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = "0.2"
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows-sys = { version = "0.61", features = ["Wdk_Storage_FileSystem", "Win32_Foundation", "Win32_Storage_FileSystem", "Win32_System_Diagnostics_ToolHelp", "Win32_System_IO", "Win32_System_JobObjects", "Win32_System_Threading", "Win32_UI_WindowsAndMessaging"] }
|
|
|
|
[profile.dev]
|
|
opt-level = 0
|
|
debug = 1
|
|
codegen-units = 256
|
|
lto = "off"
|
|
incremental = true
|
|
|
|
# Runner 启动阶段会对当前 Debug 可执行文件计算 SHA-256。仅优化密码学依赖,
|
|
# 保持业务代码的 Debug 编译速度,同时避免整份 Debug 构建因未优化 hash 热点而阻塞启动。
|
|
[profile.dev.package.sha2]
|
|
opt-level = 3
|
|
|
|
[profile.dev.package.digest]
|
|
opt-level = 3
|
|
|
|
[profile.test]
|
|
opt-level = 0
|
|
debug = 1
|
|
codegen-units = 256
|
|
lto = "off"
|
|
incremental = false
|