agentline

package
v0.0.10-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CommandMetaMode is the metadata key used to mark command mode.
	CommandMetaMode = "mode"
	// CommandMetaModeAgent indicates the command should run in agent mode.
	CommandMetaModeAgent = "agent"
	// CommandMetaAgentCommand marks a command as an agent command.
	CommandMetaAgentCommand = "agent.command"
	// CommandMetaAgentEntry marks a command as an agent entry command.
	CommandMetaAgentEntry = "agent.entry"

	// CommandName is the built-in agentline command name.
	CommandName = "agentline"
	// InitialArgKey is the hidden argument key used for bootstrap argv injection.
	InitialArgKey = "initial-arg"
)

Variables

This section is empty.

Functions

func AgentCommandMetadata

func AgentCommandMetadata() map[string]string

AgentCommandMetadata returns metadata marking a command as an agent command.

func AgentEntryMetadata

func AgentEntryMetadata() map[string]string

AgentEntryMetadata returns metadata marking a command as an agent entry.

func BuildBootstrapArgs

func BuildBootstrapArgs(initialArgv []string) []string

BuildBootstrapArgs converts raw argv into repeated hidden-flag format.

func IsAgentCommand

func IsAgentCommand(metadata map[string]string) bool

IsAgentCommand reports whether metadata marks a command as agent command.

func IsAgentEntryCommand

func IsAgentEntryCommand(metadata map[string]string) bool

IsAgentEntryCommand reports whether metadata marks a command as an interactive entry that should auto-route to agentline.

func Meta

func Meta(metadata map[string]string, key string) string

Meta returns metadata value by key. Key lookup is case-insensitive.

Types

This section is empty.

Jump to

Keyboard shortcuts

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