实现项目名称修改与自动提炼
Project CI / Repository checks (pull_request) Failing after 12s
Project CI / Backend tests (pull_request) Failing after 9s
Project CI / Frontend tests (pull_request) Successful in 3m34s
Project CI / Native shell tests (pull_request) Successful in 21m10s

- 新增项目重命名 Tauri 命令、名称校验和 manifest 写入边界

- 项目页支持行内重命名并同步当前上下文、窗口标题和最近项目

- 首页自动建项前增加单次 LLM 命名提炼和失败回退

- 补充共享命令契约与 Rust、前端回归测试
This commit is contained in:
2026-09-02 15:58:00 +08:00
parent 41461584f9
commit 4a03e7bdb8
14 changed files with 830 additions and 69 deletions
@@ -19,7 +19,7 @@ describe('AI 游戏创作 App 共享契约', () => {
it('keeps command permissions explicit', () => {
const commandIds = GAME_CREATION_APP_COMMANDS.map((command) => command.id);
expect(GAME_CREATION_APP_COMMANDS).toHaveLength(63);
expect(GAME_CREATION_APP_COMMANDS).toHaveLength(64);
expect(commandIds).toContain('project.git_inspect');
expect(commandIds).toContain('project.git_commit');
expect(commandIds).toContain('project.patchset');
@@ -60,6 +60,11 @@ describe('AI 游戏创作 App 共享契约', () => {
(command) => command.id === 'command.run_limited',
)?.permission,
).toBe('confirm');
expect(
GAME_CREATION_APP_COMMANDS.find(
(command) => command.id === 'project.rename',
)?.permission,
).toBe('confirm');
expect(
GAME_CREATION_APP_COMMANDS.find(
(command) => command.id === 'command.exec',
@@ -15,6 +15,7 @@ export interface GameCreationAppCommandDescriptor {
export const GAME_CREATION_APP_COMMANDS = [
{ id: 'help.show', permission: 'auto' },
{ id: 'project.create', permission: 'confirm' },
{ id: 'project.rename', permission: 'confirm' },
{ id: 'project.status', permission: 'auto' },
{ id: 'project.index', permission: 'auto' },
{ id: 'project.checkpoint', permission: 'confirm' },