commands

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 50 Imported by: 0

Documentation

Overview

Package commands 提供 Golem CLI 的各个子命令实现。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApprovalCmd added in v0.4.0

func NewApprovalCmd() *cobra.Command

NewApprovalCmd 创建审批管理命令。

func NewAuthCmd added in v0.3.1

func NewAuthCmd() *cobra.Command

NewAuthCmd 创建身份认证管理命令。

func NewChannelsCmd added in v0.2.0

func NewChannelsCmd() *cobra.Command

func NewChatCmd

func NewChatCmd() *cobra.Command

NewChatCmd 创建交互式聊天命令。

func NewCronCmd added in v0.2.0

func NewCronCmd() *cobra.Command

NewCronCmd 创建定时任务管理命令。

func NewInitCmd

func NewInitCmd() *cobra.Command

NewInitCmd 创建初始化 Golem 配置与工作区的命令。

func NewMCPCmd added in v0.4.3

func NewMCPCmd() *cobra.Command

NewMCPCmd 创建 MCP 服务器管理命令。

func NewPolicyCmd added in v0.4.3

func NewPolicyCmd() *cobra.Command

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd 创建并配置 Golem 的根命令行对象。

func NewRunCmd

func NewRunCmd() *cobra.Command

NewRunCmd 创建启动服务器命令。

func NewSkillsCmd added in v0.2.0

func NewSkillsCmd() *cobra.Command

NewSkillsCmd 创建技能管理子命令。

func NewStatusCmd

func NewStatusCmd() *cobra.Command

func NewVersionCmd added in v0.5.4

func NewVersionCmd() *cobra.Command

NewVersionCmd creates the version command

Types

type ChatMessage added in v0.1.2

type ChatMessage struct {
	Role     string // "user", "golem", "system"
	Content  string
	Thinking string
	Tools    []ToolLog
	IsError  bool
	// contains filtered or unexported fields
}

type ToolLog added in v0.1.2

type ToolLog struct {
	Name   string
	Result string
	Err    error
}

结构化历史记录的数据结构

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL