Skip to main content

Module daemon_client

Module daemon_client 

Source
Expand description

Daemon Client - CLI interface to the Smart Tree daemon

This module provides a client for communicating with the Smart Tree daemon. It handles:

  • Health checks to see if daemon is running
  • Auto-starting the daemon if not running
  • Sending commands to the daemon via HTTP
  • Managing daemon lifecycle (start/stop/status)

“The messenger between CLI and brain!” - Cheet

Structs§

ContextResponse
Response from daemon context endpoint
CreditsResponse
Response from daemon credits endpoint
DaemonClient
Daemon client configuration
DaemonInfo
Response from daemon info endpoint
ProjectInfo
Project info from daemon
ToolCallRequest
Tool call request
Transaction

Enums§

DaemonStatus
Status of the daemon

Constants§

DEFAULT_DAEMON_PORT
Default daemon port (Foken’s magic number!)

Functions§

print_context_summary
Print context summary from daemon
print_credits
Print credits summary
print_daemon_status
Print daemon status in a nice format
print_projects
Print projects list