Documentation
¶
Index ¶
- Constants
- func BridgeAgentAvailable() bool
- func BridgeAgentChat(rpc clientrpc.MaliceRPCClient, sess *client.Session, ...) (*clientpb.Task, error)
- func Chat(rpc clientrpc.MaliceRPCClient, sess *client.Session, text string) (*clientpb.Task, error)
- func ChatCmd(cmd *cobra.Command, con *core.Console, args []string) error
- func Commands(con *core.Console) []*cobra.Command
- func DispatchChat(rpc clientrpc.MaliceRPCClient, sess *client.Session, opts ChatOptions) (*clientpb.Task, error)
- func ExecuteBridgeChat(rpc clientrpc.MaliceRPCClient, sess *client.Session, text string) (*clientpb.Task, error)
- func Register(con *core.Console)
- func RegisterChatFunc(con *core.Console)
- func RegisterTappingFunc(con *core.Console)
- func SkillCmd(cmd *cobra.Command, con *core.Console, args []string) error
- func SkillListCmd(cmd *cobra.Command, con *core.Console) error
- func SkillNameCompleter() carapace.Action
- func Tapping(rpc clientrpc.MaliceRPCClient, sess *client.Session) (*clientpb.Task, error)
- func TappingCmd(cmd *cobra.Command, con *core.Console) error
- func TappingOff(rpc clientrpc.MaliceRPCClient, sess *client.Session) (*clientpb.Task, error)
- func TappingOffCmd(cmd *cobra.Command, con *core.Console) error
- type ChatOptions
- type Skill
- type SkillInfo
Constants ¶
const ( ModuleTapping = "tapping" ModuleTappingOff = "tapping_off" )
const ModuleChat = "chat"
Variables ¶
This section is empty.
Functions ¶
func BridgeAgentAvailable ¶
func BridgeAgentAvailable() bool
func BridgeAgentChat ¶
func BridgeAgentChat(rpc clientrpc.MaliceRPCClient, sess *client.Session, text, model, provider string, maxTurns uint32) (*clientpb.Task, error)
BridgeAgentChat sends a BridgeAgentRequest carrying the selected provider/model from config ai.
func DispatchChat ¶
func DispatchChat(rpc clientrpc.MaliceRPCClient, sess *client.Session, opts ChatOptions) (*clientpb.Task, error)
func ExecuteBridgeChat ¶
func ExecuteBridgeChat(rpc clientrpc.MaliceRPCClient, sess *client.Session, text string) (*clientpb.Task, error)
ExecuteBridgeChat sends a natural-language chat request through the bridge-backed session path. The bridge injects the message into the hijacked agent session and streams back observe events as LLMEvent spites.
func RegisterChatFunc ¶
func RegisterTappingFunc ¶
RegisterTappingFunc registers the tapping command's DoneCallback for parsing LLMEvent spites and formatting them as readable output.
func SkillCmd ¶
SkillCmd loads a SKILL.md file, renders its Markdown body, and sends the result through the same unified chat dispatch path as the chat command.
func SkillListCmd ¶
SkillListCmd lists all discovered skills.
func SkillNameCompleter ¶
SkillNameCompleter returns a carapace.Action that completes skill names.
func Tapping ¶
Tapping sends a tapping request to the CLIProxyAPI bridge via ExecuteModule. The bridge acknowledges the module; observe events are continuously forwarded and displayed via the DoneCallback.
func TappingCmd ¶
TappingCmd handles the tapping command from the CLI.
func TappingOff ¶
TappingOff sends a tapping_off request to stop observe event forwarding.
Types ¶
type ChatOptions ¶
type Skill ¶
type Skill struct {
Name string `yaml:"name"`
Description string `yaml:"description"`
Body string // Markdown content after frontmatter
Dir string // directory containing SKILL.md
}
Skill represents a loaded SKILL.md file with parsed frontmatter and body.
type SkillInfo ¶
type SkillInfo struct {
Name string
Description string
Source string // "local", "global", or "builtin"
}
SkillInfo is a summary returned by DiscoverSkills for listing and completion.
func DiscoverSkills ¶
func DiscoverSkills() []SkillInfo
DiscoverSkills scans local, global, and embedded skills directories. Priority: local > global > builtin (embedded). Same-name skills are deduplicated.