yao/registry/manager/robot/robot.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

32 lines
879 B
Go

// Package robot implements the Robot package manager for the Yao registry.
package robot
import (
"github.com/yaoapp/yao/registry"
agentmgr "github.com/yaoapp/yao/registry/manager/agent"
"github.com/yaoapp/yao/registry/manager/common"
mcpmgr "github.com/yaoapp/yao/registry/manager/mcp"
)
// Manager handles robot package operations (add only for P0).
type Manager struct {
client *registry.Client
appRoot string
prompter common.Prompter
agentMgr *agentmgr.Manager
mcpMgr *mcpmgr.Manager
}
// New creates a Robot 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,
agentMgr: agentmgr.New(client, appRoot, prompter),
mcpMgr: mcpmgr.New(client, appRoot, prompter),
}
}