建立 AGC 稳定版生命周期基础合同 #348
Reference in New Issue
Block a user
Delete Branch "codex/agc-stable-lifecycle"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
变更内容
这是基于 PR #346 的稳定版生命周期基础切换,承接已完成的 HTTP body timeout、Runner blocking worker、最近项目逐项刷新和首页跨页防重:
ClientOperation合同,固定 operationId、requestId、phase、deadline、scope、cancellable 和 stale 判定;auth-refreshoperation;登录、401 refresh、退出共用平台 session generation,并由auth-transition投影 Runner phase/成功/失败/不确定状态;.app/dev-stack.json增加 instanceId、repoRoot、服务级 dataDir/instanceId,AGC Vite marker 增加 repoRoot/processId/port;缺身份的旧状态拒绝 AGC 后端复用;验证
npm --prefix apps/ai-game-creator-shell run typechecknpm --prefix apps/ai-game-creator-shell exec -- vitest run tests/clientOperation.test.ts tests/clientApi.test.ts tests/clientHttp.test.ts tests/recentProjectsModel.test.ts tests/start-dev-stack.test.ts tests/dev-port.test.ts --reporter=dot(61 passed,2 skipped)npm --prefix apps/ai-game-creator-shell exec -- vitest run tests/appSurface.test.ts --reporter=dot(423/423 passed)node --check scripts/dev.mjsnode --check apps/ai-game-creator-shell/scripts/start-dev-stack.mjsnpm run check:doc-indexnpm run check:encodinggit diff --checkscripts/dev.test.ts全量仍有 1 个 Windows 文件权限相关既有失败:bootstrap secret 测试在 Windows 上无法通过 chmod 模拟 0600;本变更未触及该逻辑。edfb2b5c2ctoadc3302c13