Documentation
¶
Index ¶
- Variables
- func HandleSSHConnect(ctx context.Context, env *tools.Env, addr, path string, p *tea.Program, ...)
- func HandleSSHListDir(ctx context.Context, env *tools.Env, path string, p *tea.Program)
- func NewACPCmd() *cobra.Command
- func NewAutomationCmd() *cobra.Command
- func NewCloudCmd() *cobra.Command
- func NewDoctorCmd() *cobra.Command
- func NewLoginCmd() *cobra.Command
- func NewLogoutCmd() *cobra.Command
- func NewMCPCmd() *cobra.Command
- func NewMemoryCmd() *cobra.Command
- func NewSessionsCmd() *cobra.Command
- func NewUpdateCmd() *cobra.Command
- func NewVersionCmd() *cobra.Command
- func NewWebCmd() *cobra.Command
- func NewWorkflowCmd() *cobra.Command
- func RunInteractive(prompt, resumeUUID string, unsafe bool) error
Constants ¶
This section is empty.
Variables ¶
var ( Version = "0.0.1" BuildTime = "unknown" GitCommit = "unknown" )
Functions ¶
func HandleSSHConnect ¶
func HandleSSHConnect( ctx context.Context, env *tools.Env, addr, path string, p *tea.Program, systemPrompt *string, ag **adk.ChatModelAgent, chatModel einomodel.ToolCallingChatModel, createAgent func() (*adk.ChatModelAgent, error), skillDescriptions string, )
HandleSSHConnect connects to a remote machine via SSH and reconfigures the env. The pure connection + directory-listing logic lives in internal/remote so the web server can reuse it; this function keeps only the TUI glue (p.Send of status/dir messages).
func HandleSSHListDir ¶
HandleSSHListDir runs `ls` on the remote host and sends the results to the TUI directory picker.
func NewAutomationCmd ¶ added in v0.7.1
NewAutomationCmd builds the `jcode automation` command tree for managing automations from the terminal. Definition management works standalone (it only touches ~/.jcode/automations.json); periodic firing is owned by a running `jcode web` process.
func NewCloudCmd ¶ added in v0.11.1
NewCloudCmd returns the `jcode cloud` command group: pairing approval and E2E key management against the jcloud orchestrator. Like `jcode login` it prints to plain stdout — no TUI involved.
func NewDoctorCmd ¶
func NewLoginCmd ¶ added in v0.11.1
NewLoginCmd returns the `jcode login` command: RFC 8628 device-code sign-in to jcloud (see cloud/docs/17-jcode-device-relay.md §3). It prints to plain stdout like `jcode update` / `jcode sessions` — no TUI involved.
func NewLogoutCmd ¶ added in v0.11.1
NewLogoutCmd returns the `jcode logout` command: revoke the device token remotely (best effort) and clear local credentials.
func NewMemoryCmd ¶ added in v0.8.1
NewMemoryCmd returns the `jcode memory` command group: inspect, clear and (M2+) synchronize the cross-session learned memory store.
func NewSessionsCmd ¶
func NewUpdateCmd ¶ added in v0.0.3
func NewVersionCmd ¶
func NewWorkflowCmd ¶ added in v0.9.1
NewWorkflowCmd builds the `jcode workflow` (alias `flow`) command tree for listing, inspecting, and running dynamic workflows from the terminal.
func RunInteractive ¶
RunInteractive starts the interactive TUI session. The unsafe flag enables auto-approve for all tool calls and takes precedence over config.
Types ¶
This section is empty.