Skip to content

B2: GetTerminalCompletion — 终端命令补全 #14

Open

Description

@lijinhan

难度:低 | 价值:高 | 依赖:A2

Proto 结构:

  • Request: GetTerminalCompletionRequest{CurrentCommand, CommandHistory[], CurrentFolder, CurrentFolderStructure[], RelevantFiles[]}
  • Response: GetTerminalCompletionResponse{Command string}

实现:

  • 新建 internal/agent/terminal_completion.go
  • 组装上下文(命令历史+目录结构+相关文件)→ "补全这个终端命令" prompt → collectSingleResponse()
  • 路由: /aiserver.v1.AiService/GetTerminalCompletion

验证: 终端中输入部分命令 → 出现补全建议

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions