Commit Graph

1077 Commits

Author SHA1 Message Date
kdletters e24e494955 Merge branch 'master' into feat/agc-use-ui-design
Project CI / Repository checks (pull_request) Successful in 3m44s
Project CI / Frontend tests (pull_request) Successful in 4m15s
Project CI / Backend tests (pull_request) Successful in 7m59s
Project CI / Native shell tests (pull_request) Successful in 16m2s
2026-09-02 15:50:18 +08:00
kdletters fe35fcf264 修复 AGC Windows NSIS 打包工具缓存
Project CI / Backend tests (push) Successful in 6m48s
Project CI / Repository checks (push) Successful in 2m46s
Project CI / Frontend tests (push) Successful in 3m16s
Project CI / Native shell tests (push) Successful in 15m39s
启用 Tauri 项目级 NSIS 工具缓存,避开 Jenkins systemprofile AppData。

补充 Windows 配置门禁,防止 useLocalToolsDir 回退。

增强 Jenkins 预检与失败诊断,记录实际用户和 makensis 路径。

同步 AGC 发布文档与 NSIS 排障记忆。
2026-09-02 15:24:07 +08:00
lhk229 65d7a57eb7 AGC对主站的请求添加header (#241)
Project CI / Frontend tests (push) Successful in 4m0s
Project CI / Repository checks (push) Successful in 4m4s
Project CI / Backend tests (push) Successful in 8m40s
Project CI / Native shell tests (push) Successful in 17m56s
Project CI / Frontend tests (pull_request) Successful in 5m16s
Project CI / Repository checks (pull_request) Successful in 6m57s
Project CI / Backend tests (pull_request) Successful in 6m31s
Project CI / Native shell tests (pull_request) Successful in 16m57s
Reviewed-on: http://192.168.35.82/git/GenarrativeAI/Genarrative/pulls/241
Co-authored-by: Linghong <ink29535@proton.me>
Co-committed-by: Linghong <ink29535@proton.me>
2026-09-02 14:39:01 +08:00
kdletters a75dc94f20 稳定 GDD 审批响应标识测试
Project CI / Repository checks (push) Successful in 3m2s
Project CI / Frontend tests (push) Successful in 3m46s
Project CI / Backend tests (push) Successful in 7m10s
Project CI / Native shell tests (push) Successful in 16m58s
等待审批提交按钮恢复可用后再触发重试

消除慢环境下 React 状态更新未完成导致的偶发红灯
2026-09-02 11:36:00 +08:00
k88936 aefc8b79b8 更新技能包版本与文档说明
Project CI / Repository checks (pull_request) Has been cancelled
Project CI / Frontend tests (pull_request) Has been cancelled
Project CI / Backend tests (pull_request) Has been cancelled
Project CI / Native shell tests (pull_request) Has been cancelled
2026-09-02 10:42:15 +08:00
k88936 4046b187e1 修复 GDD 审批弹层的 hydrate 竞态
Project CI / Repository checks (pull_request) Successful in 4m6s
Project CI / Frontend tests (pull_request) Successful in 5m16s
Project CI / Backend tests (pull_request) Successful in 8m47s
Project CI / Native shell tests (pull_request) Failing after 16m46s
移除后台 hydrate 对已加载审批决定的瞬时禁用

保留 recoveryPending 与决定请求 busy 门控

同步 Fast GDD 技术方案和共享决策记录
2026-09-02 10:29:19 +08:00
k88936 35062d4449 补充径向填充前后端一致性测试
Project CI / Frontend tests (pull_request) Successful in 4m59s
Project CI / Repository checks (pull_request) Successful in 3m6s
Project CI / Backend tests (pull_request) Successful in 7m35s
Project CI / Native shell tests (pull_request) Failing after 5m52s
覆盖 Radial90 四个角点的顺时针与逆时针部分填充

锁定编辑器预览与 Rust 导出共享起始角约定
2026-09-01 20:31:37 +08:00
k88936 a63a477a6b Merge branch 'master' into feat/agc-use-ui-design
Project CI / Repository checks (pull_request) Successful in 4m32s
Project CI / Frontend tests (pull_request) Successful in 4m4s
Project CI / Backend tests (pull_request) Successful in 7m17s
Project CI / Native shell tests (pull_request) Failing after 17m10s
2026-09-01 20:20:17 +08:00
kdletters eb14cec0b8 修复客户端更新代码格式
Project CI / Frontend tests (push) Successful in 4m4s
Project CI / Backend tests (push) Successful in 8m3s
Project CI / Repository checks (push) Successful in 2m48s
Project CI / Native shell tests (push) Failing after 17m21s
同步 Rust 更新下载与重启逻辑的 rustfmt 输出
2026-09-01 20:17:42 +08:00
lhk229 b14e42d9bb AGC支持安装扩展skill、MCP (#233)
Project CI / Repository checks (push) Failing after 1m45s
Project CI / Frontend tests (push) Successful in 4m1s
Project CI / Backend tests (push) Successful in 6m55s
Project CI / Native shell tests (push) Failing after 16m22s
Co-authored-by: 段舒康 <kdletters@qq.com>
Reviewed-on: http://192.168.35.82/git/GenarrativeAI/Genarrative/pulls/233
Co-authored-by: Linghong <ink29535@proton.me>
Co-committed-by: Linghong <ink29535@proton.me>
2026-09-01 20:13:48 +08:00
k88936 1126f2e2ea 修复 Rust 格式检查失败
Project CI / Repository checks (pull_request) Failing after 14s
Project CI / Backend tests (pull_request) Failing after 13s
Project CI / Native shell tests (pull_request) Has been cancelled
Project CI / Frontend tests (pull_request) Has been cancelled
按 rustfmt 规范调整更新下载代码排版

按 rustfmt 规范调整预览路径回归测试排版
2026-09-01 20:13:29 +08:00
k88936 2fa5b79ae6 Merge branch 'master' into feat/agc-use-ui-design
Project CI / Backend tests (pull_request) Successful in 9m48s
Project CI / Repository checks (pull_request) Failing after 2m21s
Project CI / Frontend tests (pull_request) Successful in 4m5s
Project CI / Native shell tests (pull_request) Has been cancelled
2026-09-01 20:04:10 +08:00
k88936 7917b6b406 修复 UI 工作流保存生成竞态
Project CI / Repository checks (pull_request) Failing after 15s
Project CI / Backend tests (pull_request) Failing after 15s
Project CI / Frontend tests (pull_request) Has been cancelled
Project CI / Native shell tests (pull_request) Has been cancelled
统一保存、生成、加载与 AI 工作流动作的忙碌禁用状态

让保存和生成序列共享 editor 状态锁并在动作入口校验

阻止工作流步骤切换在异步操作期间插入
2026-09-01 20:02:48 +08:00
k88936 8ce775c08e 修复顺时针径向填充角度
让 Radial180 与 Radial360 顺时针导出起始角与编辑器预览一致

保留逆时针角度并补方向回归测试
2026-09-01 19:57:54 +08:00
k88936 13f23a1fad 补充字体 CSS 格式回归测试
验证 TTF 与 OTF 导出使用标准 truetype 与 opentype 格式

覆盖 html_renderer @font-face 实际输出
2026-09-01 19:55:35 +08:00
k88936 14de561408 修复预览界面资源路径
将 /ui 资源映射到项目根 ui 目录

允许 legacy 布局安全访问 ui 目录并补 HTTP 响应回归测试
2026-09-01 19:52:39 +08:00
k88936 97ed504a88 修复越界锚点持久化兼容
移除持久化层对有序越界 anchor 的错误范围限制

同步移除编辑器中的越界锚点误导警告

新增越界 anchor 保存加载往返回归测试
2026-09-01 19:46:32 +08:00
kdletters a7e810b999 添加 AGC 客户端更新检查与下载能力 (#230)
Project CI / Backend tests (push) Successful in 7m40s
Project CI / Native shell tests (push) Failing after 18m53s
Project CI / Repository checks (push) Failing after 1m11s
Project CI / Frontend tests (push) Failing after 2m27s
实现 AGC 启动版本检测与 OSS 安装包下载。

- 每次客户端打开时从 OSS latest.json 检查新版本
- 新版本提示支持 releaseNotes,并通过 Tauri 命令下载到系统下载目录
- 下载地址限制受信任 OSS、HTTPS、大小与可选 SHA-256 校验
- 补充 Tauri capability/CSP、单测和发布文档

Closes #224

Reviewed-on: http://192.168.35.82/git/GenarrativeAI/Genarrative/pulls/230
2026-09-01 19:23:55 +08:00
k88936 e776a8d8af 修正导出字体的 CSS 格式声明
Project CI / Backend tests (pull_request) Failing after 15s
Project CI / Native shell tests (pull_request) Failing after 17m20s
Project CI / Repository checks (pull_request) Failing after 9s
Project CI / Frontend tests (pull_request) Successful in 3m5s
将 TrueType/OpenType 映射为标准的 truetype/opentype format() 字符串

补充四种字体格式的 CSS 名称单元测试
2026-09-01 19:09:45 +08:00
k88936 e708e09c91 修复 UI 编辑器导出与预览一致性
Project CI / Repository checks (pull_request) Successful in 3m5s
Project CI / Frontend tests (pull_request) Successful in 3m40s
Project CI / Backend tests (pull_request) Successful in 7m32s
Project CI / Native shell tests (pull_request) Failing after 15m42s
修复保存按钮在 AI 运行期间的禁用状态与生成成功提示失效

加强字体资源路径校验并复用生成代码字体 CSS

让布局错误显式传播并为生成文件名追加 asset ID 摘要

统一前端与 Rust 的 Radial90 顺时针填充方向

补充代码生成不推进项目 revision 的技术方案与决策记录
2026-09-01 18:55:12 +08:00
k88936 4b9f857a4f 合并主分支
Project CI / Repository checks (pull_request) Successful in 2m35s
Project CI / Frontend tests (pull_request) Successful in 4m26s
Project CI / Backend tests (pull_request) Successful in 8m37s
Project CI / Native shell tests (pull_request) Failing after 18m3s
解决合并冲突
2026-09-01 17:10:39 +08:00
k88936 913c51264a 明确 Tiled fill_center 暂不支持
Project CI / Repository checks (pull_request) Has been cancelled
Project CI / Frontend tests (pull_request) Has been cancelled
Project CI / Backend tests (pull_request) Has been cancelled
Project CI / Native shell tests (pull_request) Has been cancelled
在前端预览与 Rust HTML 渲染两侧保留 repeat fallback 并添加 TODO。

在 UI 编辑器布局契约中明确 Tiled.fill_center=false 当前不支持及后续迁移要求。
2026-09-01 17:07:29 +08:00
k88936 43ab4464ed 修复 UI 编辑器保存与代码生成状态
普通保存和资源切换时清理生成提示与进行中状态。

为生成前置条件拦截补充可见错误,并修正保存确认按钮文案。

补齐 IUiDesignStateStore 测试替身的必需非 nullable generateCode 实现。

修正 Rust HTML 树分隔注释并同步更新 UI 编辑会话约定。
2026-09-01 17:03:20 +08:00
kdletters b489244e03 修复原生壳 CI 格式化兼容
Project CI / Frontend tests (push) Successful in 3m44s
Project CI / Repository checks (push) Successful in 3m1s
Project CI / Backend tests (push) Successful in 7m54s
Project CI / Native shell tests (push) Failing after 17m32s
放宽移动壳能力数组导出解析的空白匹配

兼容格式化后的移动壳源码断言换行

放宽桌面壳能力数组导出解析的空白匹配
2026-09-01 17:00:44 +08:00
k88936 96f971df5b 合并 origin/master 至 feat/agc-use-ui-design
- 修复 ui-editor 调用 LLM 与实际配置不一致 (#235)
- 本地资源注册与后台表查询 (#232)
- 清除策划 agent 不可达分支 (#234)
- Direct 首轮带上本轮附件的项目路径映射 (#223)
- 修复项目页布局高度 (#228)
- 修复 AGC Windows ACL 提权与文件访问边界 (#211)
- 批准 GDD 回填做游戏入口 (#210)
- 优化 Game Agent 资源画布展示与默认缩放 (#208)

Co-authored-by: Junie <junie@jetbrains.com>
2026-09-01 16:45:15 +08:00
kdletters 071faa482c 统一 Rust 与 TypeScript 格式化门禁
纳入 AGC Cargo workspace 的统一 rustfmt 检查与格式化入口

完成项目 TypeScript/Prettier 与 Rust 全量格式化

修复 Pingora expected executable 门禁的空白敏感误报

同步开发运维文档与 AGC skill pack 格式化忽略规则
2026-09-01 16:28:34 +08:00
k88936 cb10902459 补充 UI Editor 资源使用说明
说明 UI Editor JSON 由 Tauri 管理并通过生成的 ui 模块接入游戏

同步 AGC skill pack manifest 版本与内容指纹
2026-09-01 16:05:20 +08:00
k88936 6558119c2e 放宽 UI 生成代码文件上限
为生成 JavaScript 引入独立的 8 倍 State 大小上限

保留原子写入流程并让错误提示使用实际代码上限
2026-09-01 15:34:29 +08:00
k88936 d0abec8ba9 在保存阶段校验 UI Anchor 范围
拒绝超出 0..=1 的 Transform Anchor,避免生成溢出 CSS

生成阶段复用保存后的校验结果,不重复执行领域检查
2026-09-01 15:34:21 +08:00
k88936 cdca55e82b 为 UI 树导出名追加根节点标识
使用根节点 ID 的十六进制后缀避免清洗后导出名重复

保留现有导出名主体,降低调用方迁移成本
2026-09-01 15:30:26 +08:00
k88936 0564121dfc 拒绝 UI 资源路径反斜杠
阻止浏览器路径归一化导致的资源目录逃逸

当前资源尚未上线,不增加迁移流程
2026-09-01 15:28:44 +08:00
k88936 5e30ad8eac 加固 UI HTML 注释转义
循环替换连续连字符,防止注释边界被提前闭合
2026-09-01 15:28:35 +08:00
k88936 7d88e58e35 修正 Web Mock 代码生成提示
Tauri 不可用的内存存储不再伪报代码生成成功

统一返回明确的当前环境不支持生成代码错误
2026-09-01 15:27:55 +08:00
k88936 7fb6692793 约束 UI 编辑器保存与生成并发
提取按钮文案条件并在保存、生成及保存并返回入口统一互斥状态

要求生成基于已加载的持久化 revision,并同步更新会话边界文档
2026-09-01 15:27:43 +08:00
k88936 2f331a3785 修复未使用的 MCP 根路径参数
将未使用参数恢复为下划线前缀,消除 Rust 编译警告

其余工作区改动保持未暂存
2026-09-01 15:27:30 +08:00
k88936 ae79d50b14 Fix/修复ui-editor调用llm与实际配置不一致 (#235)
Project CI / Repository checks (push) Successful in 2m54s
Project CI / Frontend tests (push) Successful in 4m56s
Project CI / Backend tests (push) Successful in 6m39s
Project CI / Native shell tests (push) Successful in 14m28s
复用统一的LLM调用, 原来的方法内部会默认不stream传输,
一些上游要求流式传输会出现问题

---------

Co-authored-by: 段舒康 <kdletters@qq.com>
Reviewed-on: http://192.168.35.82/git/GenarrativeAI/Genarrative/pulls/235
Co-authored-by: 王德宇 <kvtodev@outlook.com>
Co-committed-by: 王德宇 <kvtodev@outlook.com>
2026-09-01 14:35:45 +08:00
k88936 9370160845 重构文档
Project CI / Repository checks (pull_request) Failing after 14s
Project CI / Backend tests (pull_request) Failing after 14s
Project CI / Frontend tests (pull_request) Successful in 3m38s
Project CI / Native shell tests (pull_request) Successful in 14m27s
生成 HTML in js 样例时添加说明
2026-09-01 14:32:21 +08:00
suzmii f0142f7019 Close213/215 本地资源注册与后台表查询 (#232)
Project CI / Repository checks (push) Successful in 4m8s
Project CI / Frontend tests (push) Successful in 4m52s
Project CI / Backend tests (push) Successful in 6m35s
Project CI / Native shell tests (push) Successful in 16m33s
## 关联 Issue

- Close #213:补充本地资源注册类型
- Close #215:后台表查询添加字段查询

## 背景

本 PR 合并处理两个规模较小、已完成统一 review 的客户端与后台能力改动,整体已基于远端最新 master。

## 本地资源注册(#213)

- AGC 本地项目资源支持图片、字体、音频、视频、文档和代码类型。
- 支持 PNG/JPEG/WEBP/GIF/SVG/AVIF/BMP、TTF/OTF/WOFF/WOFF2、MP3/WAV/OGG/FLAC/M4A/AAC/OPUS、MP4/WEBM/MOV,以及常见文本、配置和源码扩展名。
- 同步更新 Direct Tool Bridge、MCP schema、Runtime/Provider Prompt、AGC Skill 文档和技术方案。
- 保留项目相对路径、敏感目录、符号链接、文件大小、字体解析、UTF-8、项目锁、manifest/revision 和幂等语义。
- 修复从 game 等目录复制到 assets/uploads 时扩展名退化为 .bin 的问题。

## 后台表查询(#215)

- 使用结构化筛选条件替换手写筛选 JSON。
- 支持多条件、比较、包含、前后缀、列表、空值和旧 JSON object 兼容。
- 优化预览表格、详情复制、Toast、JSON 预览和排序交互。
- 修复数字范围筛选,包括数据库字符串化数字的数值比较。
- 补充前后端回归测试与文档。

## 验证

- AGC 本地资源导入测试:6/6
- AGC Direct/MCP 工具测试:8/8
- 本地资源扩展名与 Prompt 映射回归测试通过
- 后台 admin 数据库测试:17/17
- 后台页面 Vitest:16/16
- `npm run admin-web:typecheck`
- `npm run admin-web:build`
- `npm run check:encoding`
- `git diff --check`
- `rustfmt --edition 2024 --check server-rs/crates/api-server/src/admin.rs`

## 限制

- 未执行真实生产 SpacetimeDB、OSS 或其它付费服务验证。
- Native shell CI 及其它 PR CI 以最新 head 的远端结果为准。
- 当前 PR 保持 WIP,待 reviewer 基于最新 head 重新 review。

Reviewed-on: http://192.168.35.82/git/GenarrativeAI/Genarrative/pulls/232
Co-authored-by: 董羽秦 <suzmii@qq.com>
Co-committed-by: 董羽秦 <suzmii@qq.com>
2026-09-01 14:27:39 +08:00
k88936 c0d10b4025 移除旧 UI HTML Agent 工具
删除 ui.design.to_html 与 agc_ui_design_to_html 的工具目录和分发逻辑

清理 Runtime policy、native catalog 与 DirectProject prompt 引用

保留 UI 编辑器直接生成代码能力
2026-09-01 13:26:26 +08:00
k88936 5eea689537 生成 UI 设计代码并接入编辑器按钮
新增 State 到 JS 模块的生成与原子写入

接入保存并生成代码按钮及状态反馈

统一树节点元数据与 ui-node-id 标记

暂置旧 UI HTML 工具为空实现
2026-09-01 13:19:29 +08:00
lhk229 933da91fa3 清除策划agent不可达分支 (#234)
Project CI / Repository checks (push) Successful in 3m37s
Project CI / Frontend tests (push) Successful in 4m28s
Project CI / Backend tests (push) Successful in 7m31s
Project CI / Native shell tests (push) Successful in 17m25s
Reviewed-on: http://192.168.35.82/git/GenarrativeAI/Genarrative/pulls/234
Co-authored-by: Linghong <ink29535@proton.me>
Co-committed-by: Linghong <ink29535@proton.me>
2026-09-01 10:30:23 +08:00
lhk229 d7fc4c5b6f 让 Direct 首轮带上本轮附件的项目路径映射 (#223)
Project CI / Repository checks (push) Successful in 3m4s
Project CI / Frontend tests (push) Successful in 3m24s
Project CI / Backend tests (push) Successful in 6m10s
Project CI / Native shell tests (push) Successful in 15m8s
抽出 Home/Project 共用的 DirectCodexTurnAttachment 与渲染函数
Direct command 在进 Codex 前拼接有界 sidecar,jsonl 与气泡仍写用户原文
首页建项 latch 把导入附件传给 Direct 首轮,后续手打消息不带 attachments
做方案首轮仍走 Supervisor,不注入 sidecar
补齐 Rust 渲染测试与 home.suite 附件断言
记录路径映射合同与决策

Reviewed-on: http://192.168.35.82/git/GenarrativeAI/Genarrative/pulls/223
Co-authored-by: 孔令弘 <ink29535@proton.me>
Co-committed-by: 孔令弘 <ink29535@proton.me>
2026-08-31 19:47:23 +08:00
k88936 43f64b3e70 添加简要文档
生成 HTML 样例时添加说明
2026-08-31 19:26:51 +08:00
k88936 8a32d4b48f 按预览容器尺寸渲染 UI 树
移除设计图宽高计算与 aspect-ratio 约束

让树容器填充调用方父容器尺寸

整理组件渲染子模块路径
2026-08-31 19:23:19 +08:00
k88936 0e0c40a69d 移除 UI 设计尺寸暴露字段
删除 --ui-design-width 与 --ui-design-height 自定义属性

不再在树元数据注释中暴露设计图宽高
2026-08-31 19:16:38 +08:00
k88936 56be007ec9 删除临时 UI HTML 测试工具
移除 ui-design-to-html standalone bin

保留 Runtime ui.design.to_html 作为唯一 HTML 生成入口
2026-08-31 19:07:56 +08:00
k88936 7915d58038 拆分 UI State 到 HTML 渲染器
拆分 html_renderer 为资源、节点、容器、文本和图片模块

接入 ui.design.to_html Runtime 工具

保留临时 ui-design-to-html 测试 bin

生产渲染器输出带元数据注释的 HTML 片段
2026-08-31 19:04:36 +08:00
k88936 6d2c275d32 修复项目页布局高度 (#228)
Project CI / Repository checks (push) Successful in 2m18s
Project CI / Frontend tests (push) Successful in 4m11s
Project CI / Backend tests (push) Successful in 6m17s
Project CI / Native shell tests (push) Successful in 14m19s
项目页父级改为纵向 flex 并填满可用高度
项目列表容器与表格占满剩余空间

before:
![shotmd-1788154666.jpg](/attachments/3a02fdae-22b1-49d7-9f20-6739fddb88b9)
![shotmd-1788143842.png](/attachments/7522543f-7f58-46f1-aa72-ee5d13d2819f)

after:
![shotmd-1788154694.jpg](/attachments/cd3fb3ea-fd55-4343-9e11-210af6fc767a)
![shotmd-1788155214.jpg](/attachments/2d39b273-57be-427e-9e08-2ffe994531fb)

---------

Co-authored-by: 段舒康 <kdletters@qq.com>
Reviewed-on: http://192.168.35.82/git/GenarrativeAI/Genarrative/pulls/228
Co-authored-by: 王德宇 <kvtodev@outlook.com>
Co-committed-by: 王德宇 <kvtodev@outlook.com>
2026-08-31 18:58:54 +08:00
suzmii 80b8238d0a 修复 AGC Windows ACL 提权与文件访问边界 (#211)
Project CI / Frontend tests (push) Successful in 4m30s
Project CI / Repository checks (push) Successful in 2m26s
Project CI / Backend tests (push) Successful in 8m12s
Project CI / Native shell tests (push) Successful in 17m46s
### 背景

Windows 下 AGC 读取配置目录、项目文件和本地资源时,可能先于 ACL 校验阶段就因继承权限、错误 owner 或拒绝访问而失败,表现为 `拒绝访问。 (os error 5)`。

此前自定义 `--config-dir` 场景还存在 scope 无法传递到提权子进程的问题;native picker 路径也缺少进程内来源证明,递归索引可能跟随 junction/reparse point,新建文件在权限加固失败时可能留下残留文件。

### 本次变更

1. 修复自定义 `--config-dir` 的 `managed / user-selected` scope 传递与提权票据校验。
2. 增加 native picker 文件/目录路径的短期 provenance 授权;未经过 picker 授权的任意 IPC 绝对路径不能触发 `user-selected` 自动提权。
3. 项目文件列表和索引递归改用 `symlink_metadata()`,拒绝 symlink、junction 和 Windows reparse point。
4. 统一在 metadata/read/open 前完成 ACL 准备,对 ACL 导致的 metadata 失败执行一次受控修复和重试。
5. 新建 conversation、导出包、Agent DB、资源、字体等文件在 harden 失败时关闭句柄并清理刚创建的文件。
6. 修复 UAC 提权授权票据以 `share_mode(0)` 独占打开后与 `GetNamedSecurityInfoW/SetNamedSecurityInfoW` 产生共享冲突的问题。
7. 同步 AGC Windows ACL 技术方案与安全回归测试。

### 安全行为

- UAC 取消返回 `1223`,不会被当作成功。
- 提权子进程重新校验目标路径、scope、当前用户 SID、nonce、有效期和票据一次性消费。
- symlink、junction、reparse point 和非普通文件对象保持失败关闭。
- 自定义配置目录可以位于用户 profile 外部,但仍受 owner、DACL 和路径类型校验。

### 验证结果

已执行并通过:

```
cargo check --locked --manifest-path apps/ai-game-creator-shell/src-tauri/Cargo.toml
cargo test --locked --manifest-path apps/ai-game-creator-shell/src-tauri/Cargo.toml private_path_elevation_policy_tests -- --nocapture
# 10 passed

cargo test --locked --manifest-path apps/ai-game-creator-shell/src-tauri/Cargo.toml local_project -- --nocapture
# 20 passed

cargo test --locked --manifest-path apps/ai-game-creator-shell/src-tauri/Cargo.toml checkpoint::security_tests -- --nocapture
# 10 passed

cargo test --locked --manifest-path apps/ai-game-creator-shell/src-tauri/Cargo.toml private_file_write_tests -- --nocapture
# 2 passed

npm run check:encoding
# 5554 files passed

git diff --check
# passed
```

另外确认:

- `origin/master` 是当前分支祖先。
- 交接文档已删除,且原本不在 Git 跟踪列表中。
- 全量 `cargo test` 未作为通过依据;此前存在与 ACL 无关的失败项。
- `cargo fmt --check` 仍受仓库已有格式漂移影响,本次未执行全仓库格式化。
- 真实 Windows UAC 点击“Yes”的手工回归仍需在目标机器上确认。

### 手工验收

使用:

```powershell
& "C:\Users\dongy\workspace\Genarrative\.worktrees\agc-windows-acl-fix\apps\ai-game-creator-shell\src-tauri\target\debug\genarrative-ai-game-creator-shell.exe" `
  --config-dir "C:\Users\dongy\AppData\Local\Temp\agc-acl-live-20260830\deny-config-2"
```

验收标准:

1. 选择“否”:进程返回 `exit code 1223`。
2. 重新启动并选择“Yes”:不再返回 `exit code 1`,ACL 修复完成后继续启动。
3. 再次启动同一配置目录:不应重复弹出修复。
4. 检查目录 owner 和 DACL,确认归当前用户所有且为私有权限。

---------

Co-authored-by: 段舒康 <kdletters@qq.com>
Reviewed-on: http://192.168.35.82/git/GenarrativeAI/Genarrative/pulls/211
Co-authored-by: 董羽秦 <suzmii@qq.com>
Co-committed-by: 董羽秦 <suzmii@qq.com>
2026-08-31 14:37:34 +08:00
lhk229 aa0e0ce5fa 批准 GDD 回填做游戏入口 (#210)
Project CI / Repository checks (push) Successful in 2m51s
Project CI / Backend tests (push) Successful in 6m32s
Project CI / Native shell tests (push) Successful in 17m8s
Project CI / Frontend tests (push) Successful in 4m4s
新增批准态 GDD 的做成游戏按钮与 Launcher 回调链

读取 game/fast_gdd.md 并回首页预填做游戏参考附件

补充不触发创建项目和 Runtime 的 appSurface 回归

同步 Fast GDD 技术方案与共享决策记录

Reviewed-on: http://192.168.35.82/git/GenarrativeAI/Genarrative/pulls/210
Co-authored-by: 孔令弘 <ink29535@proton.me>
Co-committed-by: 孔令弘 <ink29535@proton.me>
2026-08-31 14:37:16 +08:00