Commit Graph

1080 Commits

Author SHA1 Message Date
k88936 ad775aaaee Merge remote-tracking branch 'origin/master' into feat/error-report
Project CI / Repository checks (pull_request) Successful in 2m30s
Project CI / Frontend tests (pull_request) Successful in 3m42s
Project CI / Backend tests (pull_request) Has been cancelled
Project CI / Native shell tests (pull_request) Has been cancelled
# Conflicts:
#	docs/project-memory/shared-memory/decision-log.md
2026-09-02 19:27:27 +08:00
k88936 3477248776 为错误报告详情增加处理备注
在管理员详情弹窗提供备注编辑器

支持独立保存备注并保留状态更新流程
2026-09-02 19:10:57 +08:00
k88936 7cf6a4c683 优化错误报告更新响应
PATCH 更新直接返回元数据,避免重复下载归档

管理后台保留已加载详情并合并最新状态
2026-09-02 19:00:55 +08:00
k88936 c6a5824223 修复错误报告链路中的局部问题
修复 Agent Runtime 失败上报脱敏与过期会话误报

修复错误通知忽略 ack、队列快照竞态和管理后台分页

修复诊断日志读取、路径清理、归档大小及时间戳处理

修复 OSS object key 使用、重复 Tauri 注册和重复错误上报

整理 spacetime-client active 模块路径并缓存诊断正则
2026-09-02 18:52:40 +08:00
kdletters 97b0231afc 优化 AGC 会话恢复超时与 Runner 启动校验 (#253)
Project CI / Frontend tests (push) Successful in 4m33s
Project CI / Repository checks (push) Successful in 4m48s
Project CI / Backend tests (push) Successful in 8m38s
Project CI / Native shell tests (push) Successful in 18m37s
## 变更内容

- 增加启动会话恢复阶段、等待时间和可操作错误提示。
- 为客户端 HTTP 请求增加默认超时、AbortController 取消和可选长请求豁免。
- 会话恢复失败后提供重试,并隔离旧请求的迟到结果。
- 让 Runner 启动探测严格遵守剩余启动时间预算。
- 补充前端、HTTP、Runner 定向测试并同步技术方案。

## 验证

- npm run typecheck --workspace @genarrative/ai-game-creator-shell
- npm run check:encoding
- clientHttp 定向测试
- AuthenticatedClient 定向测试
- Runner 启动探测测试
- cargo fmt --check
- git diff --check

Reviewed-on: http://192.168.35.82/git/GenarrativeAI/Genarrative/pulls/253
Co-authored-by: kdletters <kdletters@qq.com>
Co-committed-by: kdletters <kdletters@qq.com>
2026-09-02 18:15:38 +08:00
k88936 5de9554426 Feat/ui编辑器与code agent整合 (#237)
Project CI / Repository checks (push) Successful in 3m36s
Project CI / Frontend tests (push) Successful in 4m30s
Project CI / Native shell tests (push) Successful in 18m33s
Project CI / Backend tests (push) Successful in 8m12s
实现:
在ui编辑器保存旁增加一个保存并生成代码(js)
生成的是js字符串形式的html, 在整个js前有文档说明
code agent使用js直接注入已经生成的 export的html片段,
每次保存会直接覆盖这些html片段, 依靠动态注入实现编辑器的微调反映到游戏中.
每个节点提供了稳定的id用于code agent在生成html的基础上进行功能实现, 节点增删

目前是作为一个自说明的文件直接让code agent阅读使用, 都是用户调整保存顺便生成, 不提供工具调用.
希望以skill的形式使用

---------

Co-authored-by: 段舒康 <kdletters@qq.com>
Co-authored-by: 孔令弘 <ink29535@proton.me>
Reviewed-on: http://192.168.35.82/git/GenarrativeAI/Genarrative/pulls/237
Co-authored-by: 王德宇 <kvtodev@outlook.com>
Co-committed-by: 王德宇 <kvtodev@outlook.com>
2026-09-02 16:49:19 +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
k88936 64f3a75ba0 Merge branch 'master' into feat/error-report
Project CI / Repository checks (pull_request) Successful in 3m25s
Project CI / Frontend tests (pull_request) Successful in 5m4s
Project CI / Backend tests (pull_request) Successful in 10m10s
Project CI / Native shell tests (pull_request) Successful in 18m20s
2026-09-02 14:42:22 +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
k88936 b9fb811fe5 将错误报告组件样式迁移至 Tailwind
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
错误提示改用内联 Tailwind 类

错误报告对话框改用内联 Tailwind 类

移除对应全局 CSS 规则
2026-09-02 14:28:46 +08:00
k88936 49e872a64d 修复错误报告提交与本地确认解耦
服务端报告成功后立即反馈成功,不再让本地队列 ack 失败覆盖提交结果。

为同一批事件复用稳定 submissionId,并对本地 ack 增加有限重试和日志记录。

补充客户端回归测试与错误报告链路文档。
2026-09-02 14:20:34 +08:00
k88936 24ab773283 稳定 GDD 恢复弹层测试时序
Project CI / Repository checks (pull_request) Successful in 3m47s
Project CI / Frontend tests (pull_request) Successful in 5m14s
Project CI / Backend tests (pull_request) Successful in 7m38s
Project CI / Native shell tests (pull_request) Successful in 15m45s
等待初始 hydrate 完成后再断言提交按钮可用
保留恢复期间禁用提交和输入内容回归验证
2026-09-02 13:15:34 +08:00
k88936 45d8bad188 Merge branch 'master' into feat/error-report
Project CI / Repository checks (pull_request) Successful in 3m6s
Project CI / Frontend tests (pull_request) Successful in 4m12s
Project CI / Native shell tests (pull_request) Failing after 5m5s
Project CI / Backend tests (pull_request) Successful in 6m40s
2026-09-02 11:42:39 +08:00
k88936 a699638a1d 调整 ErrorReportLogInput 的导入顺序
Project CI / Frontend tests (pull_request) Has been cancelled
Project CI / Repository checks (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 11:41:48 +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 04c5a92f2a 修复 Tauri 错误报告事件订阅拒绝
错误报告桥在浏览器和未初始化 WebView 中安全降级
优先复用全局 Tauri 事件桥并收口订阅拒绝
新增无 Tauri 环境回归测试
补充事件桥 fail-safe 排障记忆
2026-09-02 11:32:31 +08:00
k88936 97eabbf4c6 Merge remote-tracking branch 'origin/master' into feat/error-report
Project CI / Repository checks (pull_request) Failing after 1m40s
Project CI / Frontend tests (pull_request) Failing after 2m37s
Project CI / Backend tests (pull_request) Failing after 5m16s
Project CI / Native shell tests (pull_request) Failing after 5m26s
# Conflicts:
#	apps/ai-game-creator-shell/src-tauri/src/main.rs
#	apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/merge.rs
#	apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/recognition.rs
#	apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/ui_design_suggestion.rs
#	docs/technical/【后台管理】多账号与Tab访问权限方案-2026-07-14.md
2026-09-02 11:09:42 +08:00
k88936 3cde591b67 修复错误报告审查中的次要问题
Project CI / Backend tests (pull_request) Failing after 14s
Project CI / Repository checks (pull_request) Failing after 14s
Project CI / Frontend tests (pull_request) Failing after 3m16s
Project CI / Native shell tests (pull_request) Failing after 6m16s
修复后台错误报告刷新竞态、下载并发与查询参数构建复用。

修复错误报告清理分页、归档大小限制、分页总数和下载响应头异常。

修复 OSS 流式读取上限与 Codex 高频调试日志阻塞。

同步错误报告技术方案与项目决策记录,并在 review.txt 保留待决 breaking 项。
2026-09-01 23:37:36 +08:00
k88936 35ec049138 补齐 AGC Runtime 错误采集
Rust Runtime 终态失败、预算耗尽和启动确认失败统一进入错误队列

Direct Codex 与专业 Agent 前台裸 invoke 补充采集并统一上下文去重

归一化 Codex app-server 错误类别并新增回归测试与技术方案
2026-09-01 21:43:03 +08:00
k88936 de671b2e0d 修复 AGC 错误通知可重放展示
移除 Rust 错误队列 notified 状态与标记命令

将 error-report-updated 收敛为 generation 唤醒并补齐竞态重试

让 WebView 通过快照查询、重载恢复并新增回归测试

同步更新 AGC 错误报告技术方案
2026-09-01 20:30:26 +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 7f0d4605eb 补齐 AGC 错误通知重载恢复
Project CI / Repository checks (pull_request) Failing after 11s
Project CI / Backend tests (pull_request) Failing after 11s
Project CI / Frontend tests (pull_request) Failing after 2m23s
Project CI / Native shell tests (pull_request) Has been cancelled
挂载时读取 Rust 错误快照并恢复未通知事件

提交报告时移除 Rust 内部 notified 字段
2026-09-01 19:54:09 +08:00
k88936 584eabd1fd 重构 AGC 错误报告为 Rust 队列
新增 Rust 内存错误队列、脱敏、通知聚合和 Tauri commands

前端改用 bridge,拆分通知与报告弹窗 UI

补充 Vitest、Rust 单测及错误报告技术方案
2026-09-01 19:52:27 +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 2f0005ecad 接入显式 Tauri 诊断采集
Project CI / Backend tests (pull_request) Failing after 22s
Project CI / Repository checks (pull_request) Failing after 9s
Project CI / Frontend tests (pull_request) Successful in 3m40s
Project CI / Native shell tests (pull_request) Successful in 16m47s
为 GDD 审批失败使用 diagnostic invoke 包装器

更新命令静态检查器识别诊断调用
2026-09-01 19:10:04 +08:00
k88936 3c7fcfb6cd 补充错误采集状态过滤测试
覆盖预期认证四xx与可报告网络状态
2026-09-01 19:07:15 +08:00
k88936 de1982f84e 收紧错误采集条件
排除预期四xx认证失败

增加显式 Tauri 诊断调用辅助函数
2026-09-01 19:05:08 +08:00
k88936 ba74c1af30 实现自动错误通知与报告面板
新增五秒聚合的非阻塞错误通知

支持事件选择并在日志读取完成前禁止提交

扩大移动端关闭按钮触控区域
2026-09-01 19:04:51 +08:00
k88936 5315a3e338 移除错误报告手动入口
删除 /bug-report 聊天命令与崩溃页报告按钮

同步项目摘要文案和 AGC 错误报告方案
2026-09-01 19:04:24 +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 d9a7260996 为错误报告列表增加分页
扩展管理员列表契约支持 offset、total 和 hasMore

后台页面增加页码状态、上一页和下一页操作
2026-09-01 16:28:41 +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 8d45623d34 补充手动报告流程的 React hook 引入
导入 useCallback 以通过客户端类型检查
2026-09-01 15:26:29 +08:00
k88936 c96a311ffb 移除无效启动日志写入
删除 startup_log 始终为空时永远不会执行的重复记录
2026-09-01 15:24:15 +08:00
k88936 0a731bb4ae 清理错误报告对话框无效样式
移除不存在的 header 段落选择器和 flex 下无效的 grid 列定义
2026-09-01 15:23:46 +08:00
k88936 88c1bebaab 抽取客户端 API 错误状态采集
统一普通与二进制请求的服务端错误报告逻辑
2026-09-01 15:23:00 +08:00
k88936 4950153ab1 统一手动错误报告打开流程
复用异步错误采集 helper 并在打开面板前完成事件登记
2026-09-01 15:22:45 +08:00
k88936 fdc155d8fa 加强客户端错误日志脱敏与指纹稳定性
覆盖 Bearer 授权值并在 WebView 日志桥接处执行二次脱敏

使用首个调用点参与指纹,避免相同消息合并不同调用位置
2026-09-01 15:22:32 +08:00
k88936 a2207cb208 改进后台错误报告列表交互
防止列表请求过期响应覆盖当前筛选结果

为报告行增加键盘打开详情支持

截断详情事件预览并延迟回收下载对象 URL
2026-09-01 15:21:53 +08:00
k88936 372a38c3e0 修复试玩快捷键测试监听器清理
使用 try/finally 确保错误报告事件监听器始终移除
2026-09-01 15:21:32 +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
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 a0daa550c3 收紧错误报告归档与私有对象边界
按用户隔离提交幂等并处理重复日志名

拒绝 agc 私有前缀的公共对象读写与链接日志读取

保持归档和元数据清理时间一致并补充回归测试

同步错误报告技术文档与项目决策记录
2026-09-01 11:47:40 +08:00
k88936 6f810b6d01 修复客户端错误报告采集与后台交互
统一错误报告打开事件常量并补充快捷入口断言

修复后台详情竞态、下载兼容性、状态选项和错误提示

加强客户端脱敏、指纹降级并过滤预期鉴权错误
2026-09-01 11:43:44 +08:00
k88936 734ae175b0 将 AGC 诊断日志改为持久化原始日志
Rust app_log 输出同时保留 stderr 并写入 AppData application.log。

将 WebView console 输出镜像到同一普通文本日志并保留滚动备份。

移除结构化错误事件写盘路径,事件仅在内存中合并并于提交时生成 events.jsonl。

清理旧 Tauri command、共享类型和同步更新诊断上传文档。
2026-09-01 11:16:26 +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
k88936 4671c5fb52 新增后台错误报告查看器
增加错误报告列表、详情和状态筛选页面。

支持管理员受控下载诊断包并接入错误报告 Tab 权限。

补充前端 API 类型、客户端请求和详情弹窗样式。
2026-09-01 10:11:43 +08:00
k88936 5a4ac48575 接入 AGC 客户端错误采集与报告面板
在当前进程按指纹合并客户端错误并持久化应用诊断日志。

新增登录态批量提交、用户说明和可选日志上传面板。

将 /bug-report 快捷入口改为打开报告问题面板并更新端到端断言。
2026-09-01 10:10:48 +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