Commit 12b6f47
committed
refactor: 重写扩展系统与非交互模式,对齐上游 gemini-cli
- ExtensionSystem: package.json → gemini-extension.json 结构
- NonInteractiveMode: positional prompt、output-format、approval-mode
- AgentLoop: ERROR_NO_COMPLETE_TASK_CALL、tool 注册隔离
- MCPDiscovery: settings + extensions 配置来源
- ShellInjection: 硬拒绝(解析失败) vs 软拒绝(不在allowlist)
- PolicyEngine: checkShellCommand、allowRedirection
- 工具名/Kind 枚举统一1 parent 8afc45e commit 12b6f47
22 files changed
Lines changed: 1519 additions & 1720 deletions
File tree
- src/pages
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
| 280 | + | |
| 281 | + | |
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
| |||
760 | 761 | | |
761 | 762 | | |
762 | 763 | | |
763 | | - | |
| 764 | + | |
764 | 765 | | |
765 | 766 | | |
766 | 767 | | |
| |||
0 commit comments