Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "v0.0.0-dev" Commit = "unknown" BuildTime = "unknown" )
Version, Commit, BuildTime are set via ldflags
View Source
var RootCmd = &cobra.Command{ Use: "hotplexd", Short: "HotPlex AI Agent Runtime Daemon", Long: `HotPlex is an AI Agent Runtime Engine that provides long-lived sessions for Claude Code and OpenCode CLI tools. Supports multiple chat platforms (Slack, Feishu, DingTalk, etc.) and provides session management, diagnostics, and admin APIs.`, Version: Version, }
RootCmd is the root command for hotplexd CLI.
Functions ¶
func DoAdminAPI ¶
func DoAdminAPI(cmd *cobra.Command, method, path string, body io.Reader, headers ...string) (*http.Response, error)
DoAdminAPI creates an authenticated HTTP request to the admin API. It reads --server-url and --admin-token flags, falling back to HOTPLEX_ADMIN_TOKEN env var. The body parameter supports POST requests; pass nil for GET. headers are optional extra headers (e.g., Content-Type).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.