Documentation
¶
Overview ¶
Package launch renders how a user continues a moved session: the first message that tells the agent what happened, and the command line for the user's shell.
Index ¶
- func DefaultShell() string
- func OSName(goos string) string
- func OldSessionNotice(targetLocation, targetCWD, newName string, fork bool) string
- func PSQuote(s string) string
- func SessionName(title, location string) string
- func ShQuote(s string) string
- func Shell(c agent.Command, promptFile, family string) string
- func StartPrompt(c Context) string
- type Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OldSessionNotice ¶
OldSessionNotice is the text for the user to paste into the old session when the agent cannot deliver it.
func SessionName ¶
SessionName is a short name for Remote Control and session lists: "fix-tests@laptop".
func Shell ¶
Shell renders a command for a shell family ("posix" or "powershell"). When promptFile is set, the command's last argument (the prompt) is read from that file instead of being inlined.
func StartPrompt ¶
StartPrompt is the first message of a moved session: what happened, what that implies, and a request to check the environment before continuing.
Types ¶
type Context ¶
type Context struct {
AgentName string // the agent that resumes ("Claude Code")
SourceLocation string
SourceOS string
SourceVersion string // the agent version that last wrote the session
SourceCWD string
TargetLocation string
TargetOS string
TargetCWD string
Branch string
WorktreeNote string
Unpushed int
Dirty int
SecretsFound int
Redacted bool
OtherAccount bool // account-bound content was removed
Live bool // the source session was still running
Fork bool // the source keeps running
Notify string // the module's instruction for telling the old session, if any
}
Context is what the moved session should know about its move.