Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodePath ¶
EncodePath converts an absolute path to CC's encoded project directory name. CC replaces / and . with - (e.g. /Users/neil/clawd -> -Users-neil-clawd).
Types ¶
type AgentWatcher ¶
type AgentWatcher struct {
// contains filtered or unexported fields
}
AgentWatcher watches a single agent's CC project directory for JSONL output.
func NewAgentWatcher ¶
func NewAgentWatcher(agentName, workDir string, send SendTextFunc) *AgentWatcher
NewAgentWatcher creates a watcher for a single CC agent's JSONL output.
func (*AgentWatcher) Run ¶
func (w *AgentWatcher) Run(done <-chan struct{})
Run starts watching the agent's project dir for JSONL writes. Blocks until done is closed.
type QuestionFunc ¶
QuestionFunc is called when an AskUserQuestion is detected in CC JSONL.
type SendFunc ¶
type SendFunc func(teamName, agentName, text string)
SendFunc is the callback for sending a message to Telegram. teamName and agentName identify the agent, text is the assistant text block.
type SendTextFunc ¶
type SendTextFunc func(text string)
SendTextFunc is called when new assistant text is detected.