补齐Agent Git工作树审阅与聊天状态交互

This commit is contained in:
AIGameCreator App
2026-07-13 11:21:29 +08:00
parent 5c3b8ec267
commit 5e1d4ddeee
10 changed files with 720 additions and 22 deletions
@@ -21,13 +21,14 @@ pub struct GameCreationAppCommandDescriptor {
pub permission: GameCreationAppPermission,
}
pub const GAME_CREATION_APP_COMMANDS: [GameCreationAppCommandDescriptor; 53] = [
pub const GAME_CREATION_APP_COMMANDS: [GameCreationAppCommandDescriptor; 54] = [
command("help.show", GameCreationAppPermission::Auto),
command("project.create", GameCreationAppPermission::Confirm),
command("project.status", GameCreationAppPermission::Auto),
command("project.index", GameCreationAppPermission::Auto),
command("project.checkpoint", GameCreationAppPermission::Confirm),
command("project.diff", GameCreationAppPermission::Auto),
command("project.git_inspect", GameCreationAppPermission::Auto),
command("project.patchset", GameCreationAppPermission::Confirm),
command("project.restore", GameCreationAppPermission::Confirm),
command("project.verify", GameCreationAppPermission::Confirm),
@@ -638,7 +639,7 @@ mod tests {
#[test]
fn command_contract_keeps_expected_permissions() {
assert_eq!(GAME_CREATION_APP_COMMANDS.len(), 53);
assert_eq!(GAME_CREATION_APP_COMMANDS.len(), 54);
let command_ids = GAME_CREATION_APP_COMMANDS
.iter()
@@ -681,6 +682,15 @@ mod tests {
GameCreationAppPermission::Confirm
);
let project_git_inspect = GAME_CREATION_APP_COMMANDS
.iter()
.find(|command| command.id == "project.git_inspect")
.expect("project.git_inspect command should exist");
assert_eq!(
project_git_inspect.permission,
GameCreationAppPermission::Auto
);
let project_verify = GAME_CREATION_APP_COMMANDS
.iter()
.find(|command| command.id == "project.verify")