Documentation
¶
Index ¶
- func GetInitScript(shell string) string
- func IsInTmux() bool
- func IsMCPManageSubcommand(s string) bool
- func RunCLI(ctx context.Context, cfg types.Config, shellJobs *wizmcp.ShellJobs, ...) error
- func RunMCP(ctx context.Context, cfg types.Config, args []string, ...) error
- func RunMCPCommand(args []string) int
- func RunPluginCommand(args []string) int
- func RunSkillCommand(args []string) int
- func RunTUI(ctx context.Context, cfg types.Config, height int, shellJobs *wizmcp.ShellJobs, ...) error
- func RunTmuxSplit(height string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInitScript ¶
getInitScript returns the shell integration script for the given shell
func IsMCPManageSubcommand ¶ added in v0.3.0
IsMCPManageSubcommand reports whether `nib mcp <s>` is a management command (as opposed to the server-serving forms: bare, --http, --stdio, --addr).
func RunMCP ¶ added in v0.2.0
func RunMCP(ctx context.Context, cfg types.Config, args []string, shellJobs *wizmcp.ShellJobs, transports ...mcp.Transport) error
RunMCP serves nib's agent as an MCP server. args are the tokens after `nib mcp`; shellJobs is the shared background-shell registry; transports are the agent's tool servers.
func RunMCPCommand ¶ added in v0.3.0
RunMCPCommand dispatches `nib mcp <sub> ...` and returns an exit code.
func RunPluginCommand ¶
RunPluginCommand dispatches `nib plugin <sub> ...` and returns an exit code.
func RunSkillCommand ¶
RunSkillCommand dispatches `nib skill <sub> ...` and returns an exit code.
func RunTUI ¶
func RunTUI(ctx context.Context, cfg types.Config, height int, shellJobs *wizmcp.ShellJobs, transports ...mcp.Transport) error
runTUI runs the Bubble Tea TUI
func RunTmuxSplit ¶
runTmuxSplit runs nib in a tmux split pane (like fzf-tmux -d).
`tmux split-window` returns as soon as the pane is spawned, not when its command exits, so we can't capture the inner nib's selected command from its stdout directly. Instead the inner nib writes its command to a temp file and signals a tmux channel on exit; we block on that channel, then relay the file to our own stdout — which is what the Ctrl+Space shell widget captures.
Types ¶
This section is empty.