Documentation
¶
Index ¶
- func CreateAgent(name, scope string) error
- func ImportAgentIn(deps Deps, name, projectPath string) error
- func NewAgentsCmd(deps Deps) *cobra.Command
- func PromoteAgentIn(name, projectPath string, force bool) error
- func RemoveAgentIn(deps Deps, name, projectPath string, purge bool) error
- type Deps
- type GlobalFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAgent ¶
CreateAgent creates a new agent directory under ~/.agents/agents/<scope>/<name>/.
func ImportAgentIn ¶
ImportAgentIn links ~/.agents/agents/<project>/<name>/ into the repo as symlinks and ensures .agentsrc.json lists the agent.
func NewAgentsCmd ¶
NewAgentsCmd builds the `da agents` command tree from injected dependencies.
func PromoteAgentIn ¶
PromoteAgentIn promotes a repo-local agent (.agents/agents/<name>/) into the shared agents store. The canonical location (~/.agents/agents/<project>/<name>/) becomes the real directory, and the repo-local path is converted to a managed symlink pointing at it.
Types ¶
type Deps ¶
type Deps struct {
Flags GlobalFlags
ErrorWithHints func(message string, hints ...string) error
UsageError func(message string, hints ...string) error
MaximumNArgsWithHints func(n int, hints ...string) cobra.PositionalArgs
RangeArgsWithHints func(min, max int, hints ...string) cobra.PositionalArgs
ExactArgsWithHints func(n int, hints ...string) cobra.PositionalArgs
}
Deps carries UX helpers from commands without an import cycle.
type GlobalFlags ¶
type GlobalFlags struct {
Yes bool
}
GlobalFlags mirrors the subset of commands.Flags used by agents subcommands.