yao/registry/manager/agent/agent.go
Max 44af6ba759 Enhance command structure with MCP and Robot functionalities
- 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.
2026-03-03 08:11:43 +08:00

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,
}
}