- Introduce new MCP and Robot command groups in the CLI, allowing for better organization of package management commands. - Add corresponding command descriptions for MCP and Robot functionalities to improve user guidance. - Update the agent command group to include additional commands for enhanced agent management. - Modify .gitignore to exclude specific design markdown files from version control. - Add environment variable for test application path in GitHub workflows to streamline testing setup.
26 lines
628 B
Go
26 lines
628 B
Go
// Package agent implements the assistant package manager for the Yao registry.
|
|
package agent
|
|
|
|
import (
|
|
"github.com/yaoapp/yao/registry"
|
|
"github.com/yaoapp/yao/registry/manager/common"
|
|
)
|
|
|
|
// Manager handles assistant package operations (add, update, push, fork).
|
|
type Manager struct {
|
|
client *registry.Client
|
|
appRoot string
|
|
prompter common.Prompter
|
|
}
|
|
|
|
// New creates an agent Manager.
|
|
func New(client *registry.Client, appRoot string, prompter common.Prompter) *Manager {
|
|
if prompter == nil {
|
|
prompter = &common.StdinPrompter{}
|
|
}
|
|
return &Manager{
|
|
client: client,
|
|
appRoot: appRoot,
|
|
prompter: prompter,
|
|
}
|
|
}
|