control

package
v0.260806.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2026 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package control is the host-facing assembly layer of the remote subsystem. Where remote/control/{bot,remoteagent,...} hold the runtime pieces, this file collapses the duplicated construction the two host entry points (the managed server path and the standalone CLI path) both used to spell out verbatim: the session manager and the agent service.

Keeping that core in one place is what makes "remote is a self-contained sub-service" true in code — a host wires it with one call instead of re-deriving the session/agent defaults each time.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

type Core struct {
	Session *session.Manager
	Agent   *agentboot.AgentService
}

Core bundles the two long-lived components every remote host entry point constructs: a session.Manager (transcript + lifecycle) and the agentboot AgentService that runs the Claude agent. Both are wired with the same defaults regardless of whether the host is the managed server or the standalone CLI, so they are built once here.

func NewCore

func NewCore(sessionStore session.SessionStore) (*Core, error)

NewCore builds the shared session manager and agent service from a session store. The session/agent defaults (30-minute timeout, 7-day retention, 30-minute agent execution timeout) are the sub-service's own contract — callers must not need to know them.

Directories

Path Synopsis
Package adapter is the host↔remote glue layer.
Package adapter is the host↔remote glue layer.
PairingManager and related types live in imbot/security so that any imbot application can reuse the TOFU pairing mechanism independently of the remote-control service.
PairingManager and related types live in imbot/security so that any imbot application can reuse the TOFU pairing mechanism independently of the remote-control service.
Package feature holds the remote-control chat features (action menu, bind flow, directory browser) that sit on top of imbot.
Package feature holds the remote-control chat features (action menu, bind flow, directory browser) that sit on top of imbot.
Package remoteagent implements the "remote_agent" bot purpose: controlling Claude Code (@cc) and the SmartGuide agent (@tb) from a chat.
Package remoteagent implements the "remote_agent" bot purpose: controlling Claude Code (@cc) and the SmartGuide agent (@tb) from a chat.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL