mirror of
https://gitcode.com/JianFeeeee/HomeAgent.git
synced 2026-11-01 23:07:30 +00:00
批 1,不含 SDK 仓与目录改名。 - go.mod 第 1 行 module 路径 - 366 个 .go 文件的完整前缀 github.com/JianFeeeee/HomeAgent 机械替换 (857 处,仅完整前缀;展示名/注释里的 HomeAgent 字样留给批 5) - 未改:third_party 目录名、SDK 自身 go.mod module、go.mod replace 目标、 homed/waiter 可执行名、.hmap 后缀
22 lines
633 B
Go
22 lines
633 B
Go
//go:build !linux && !windows
|
|
|
|
package agentcli
|
|
|
|
import (
|
|
"github.com/JianFeeeee/HologramAgent/internal/plugin"
|
|
sdk "github.com/JianFeeeee/HologramAgent/internal/sdk"
|
|
)
|
|
|
|
func init() {
|
|
plugin.RegisterFactory("agentcli", func(name string, config map[string]interface{}) (sdk.Plugin, error) {
|
|
return &stubPlugin{}, nil
|
|
})
|
|
plugin.RegisterPluginMeta("agentcli", "终端交互", "Agent CLI")
|
|
}
|
|
|
|
type stubPlugin struct{}
|
|
|
|
func (p *stubPlugin) Name() string { return "agentcli" }
|
|
func (p *stubPlugin) Start(sdk *sdk.PluginSDK) error { return nil }
|
|
func (p *stubPlugin) Stop() error { return nil }
|