Documentation
¶
Overview ¶
Package launchcmd builds the shell command used to launch a worker or reviewer session.
BuildResumeCommand constructs a gatekeeper-wrapped claude --resume invocation for Claude Code workers and reviewers (JSONL session pattern). BuildCodexGatekeeperCommand constructs the legacy gatekeeper-wrapped codex invocation for Codex workers until #321 (Codex JSONL resume support) lands.
Index ¶
- func BuildCCSessionCommand(ttalBin, workDir string, sessCfg breathe.SessionConfig, ...) (sessionPath, cmd string, err error)
- func BuildCodexGatekeeperCommand(ttalBin, taskFile string) (string, error)
- func BuildResumeCommand(ttalBin, sessionID string, rt runtime.Runtime, model, agent, trigger string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCCSessionCommand ¶ added in v1.6.0
func BuildCCSessionCommand( ttalBin, workDir string, sessCfg breathe.SessionConfig, model, agent, trigger string, ) (sessionPath, cmd string, err error)
BuildCCSessionCommand resolves the CC project dir, writes a synthetic JSONL session, and returns the gatekeeper-wrapped claude --resume command. sessionPath is the full path to the JSONL file — pass to os.Remove if subsequent steps (e.g. tmux.NewSession) fail, to avoid orphaned session files. agent: --agent flag value (empty = omit). trigger: positional arg (empty = omit).
func BuildCodexGatekeeperCommand ¶ added in v1.6.0
BuildCodexGatekeeperCommand builds a gatekeeper-wrapped codex command using the legacy task-file pattern. Claude Code uses BuildResumeCommand instead. This will be removed when Codex supports JSONL resume (#321).
func BuildResumeCommand ¶ added in v1.6.0
func BuildResumeCommand(ttalBin, sessionID string, rt runtime.Runtime, model, agent, trigger string) (string, error)
BuildResumeCommand builds a gatekeeper-wrapped claude --resume command. sessionID: the synthetic JSONL session to resume. trigger: prompt passed as positional arg (may contain newlines; empty = omit entirely). agent: CC agent identity (empty = omit --agent flag). Currently only supports ClaudeCode. Codex support tracked in #321.
Types ¶
This section is empty.