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 后缀
18 lines
600 B
Go
18 lines
600 B
Go
package seq
|
||
|
||
import (
|
||
"github.com/JianFeeeee/HologramAgent/internal/plugin"
|
||
"github.com/JianFeeeee/HologramAgent/internal/sdk"
|
||
)
|
||
|
||
// 插件注册:与其它内置插件同一范式(见 skillmgr/plugin.go 的 init)。
|
||
//
|
||
// 之所以用 init + factory 而非在 all.go 里直接 new:内置插件统一由
|
||
// registry 按名字工厂化加载,all.go 只负责 import 触发注册。
|
||
func init() {
|
||
plugin.RegisterPluginMeta("seq", "工具序列", "Tool Sequence")
|
||
plugin.RegisterFactory("seq", func(name string, _ map[string]interface{}) (sdk.Plugin, error) {
|
||
return New(name), nil
|
||
})
|
||
}
|