Commit Graph
4 Commits
Author SHA1 Message Date
liuzhandCopilot 2adbfa56bc feat: 支持OpenAI/Anthropic双API提供者切换,Banner显示URL和模型
通过 claude-code.provider 配置切换API提供者:
- openai(默认): 使用 OpenAI 兼容 API,支持各种代理服务
- anthropic: 使用 Anthropic 原生 API

配置方式:
- 环境变量: CLAUDE_CODE_PROVIDER=openai|anthropic
- application.yml: claude-code.provider

Banner 增强:
- 启动时显示当前 Provider、Model、API URL
- Scanner降级模式也显示同样信息

启动脚本更新:
- run.ps1/run.bat 添加完整的双provider配置说明

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-01 21:06:09 +08:00
liuzhandCopilot 1c74bbdcdb fix: 关闭Spring Boot banner和启动日志,添加run.bat启动脚本
- application.yml: banner-mode=off, 所有日志级别提升到WARN
- 启动时不再显示Spring Boot ASCII art和INFO日志
- 控制台只显示Claude Code自己的输出
- run.bat: 预配置JDK25环境变量的一键启动脚本

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-01 20:29:41 +08:00
liuzhandCopilot 70c9ebed2b fix: 解决ChatModel多Bean冲突和JVM内存不足问题
- AppConfig中用@Qualifier指定anthropicChatModel
- spring-boot-maven-plugin配置-Xmx512m限制堆内存
- application.yml关闭web-application-type为none

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-01 19:41:40 +08:00
liuzhandCopilot d67f41358d feat: Phase1 项目骨架 - Maven项目结构、核心AgentLoop、6个工具、命令系统、控制台渲染、REPL会话
实现内容:
- pom.xml: JDK25 + Spring AI 2.0.0-M4 + JLine3 + Picocli
- core/AgentLoop: 基于ChatModel的显式工具循环(非ChatClient)
- tool/: Tool接口 + ToolRegistry + ToolCallbackAdapter(适配Spring AI)
- tool/impl/: BashTool, FileReadTool, FileWriteTool, FileEditTool, GlobTool, GrepTool
- command/: SlashCommand接口 + CommandRegistry + /help, /clear, /exit
- console/: AnsiStyle, BannerPrinter, ToolStatusRenderer, ThinkingRenderer, SpinnerAnimation, MarkdownRenderer
- context/: SystemPromptBuilder, ClaudeMdLoader(多级CLAUDE.md加载)
- repl/ReplSession: REPL主循环(Scanner降级方案)
- config/AppConfig: Spring Bean装配
- application.yml: Anthropic/OpenAI双模型配置

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-01 19:22:04 +08:00