sessioncmd

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package sessioncmd implements the session-scoped commands an agent uses to talk to its running manager: naming the session and declaring review targets. The CLI subcommands and the MCP server both call these, so validation and behavior stay identical. Each command writes a mailbox file the manager poller applies on its next cycle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rename

func Rename(configDir, sessionID, name string) (string, error)

Rename records a session's self-chosen name for the running manager to apply on its next poll. It only writes the name file; the manager owns the database and the tmux label.

func ReviewBase

func ReviewBase(configDir, sessionID, cwd, ref string) (string, error)

ReviewBase records the base ref the session's branch scope diffs against, resolved in the repo holding cwd. An empty ref clears the override.

func ReviewRepo

func ReviewRepo(configDir, sessionID, target string) (string, error)

ReviewRepo records the repo a session is working in, so review opens there instead of guessing from the working directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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