mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-06 02:58:58 +08:00
Slim subagent runtime surface and remove legacy interfaces
This commit is contained in:
@@ -177,12 +177,10 @@ func gatewayCmd() {
|
||||
}
|
||||
configureGatewayNodeP2P(agentLoop, registryServer, cfg)
|
||||
registryServer.SetGatewayVersion(version)
|
||||
registryServer.SetWebUIVersion(version)
|
||||
registryServer.SetConfigPath(getConfigPath())
|
||||
registryServer.SetToken(cfg.Gateway.Token)
|
||||
registryServer.SetWorkspacePath(cfg.WorkspacePath())
|
||||
registryServer.SetLogFilePath(cfg.LogFilePath())
|
||||
registryServer.SetWebUIDir(filepath.Join(cfg.WorkspacePath(), "webui"))
|
||||
aistudioRelay := wsrelay.NewManager(wsrelay.Options{
|
||||
Path: "/v1/ws",
|
||||
ProviderFactory: func(r *http.Request) (string, error) {
|
||||
@@ -223,9 +221,6 @@ func gatewayCmd() {
|
||||
}
|
||||
return out
|
||||
})
|
||||
registryServer.SetSubagentHandler(func(cctx context.Context, action string, args map[string]interface{}) (interface{}, error) {
|
||||
return loop.HandleSubagentRuntime(cctx, action, args)
|
||||
})
|
||||
registryServer.SetNodeDispatchHandler(func(cctx context.Context, req nodes.Request, mode string) (nodes.Response, error) {
|
||||
return loop.DispatchNodeRequest(cctx, req, mode)
|
||||
})
|
||||
@@ -456,7 +451,6 @@ func gatewayCmd() {
|
||||
registryServer.SetToken(cfg.Gateway.Token)
|
||||
registryServer.SetWorkspacePath(cfg.WorkspacePath())
|
||||
registryServer.SetLogFilePath(cfg.LogFilePath())
|
||||
registryServer.SetWebUIDir(filepath.Join(cfg.WorkspacePath(), "webui"))
|
||||
configureGatewayNodeP2P(agentLoop, registryServer, cfg)
|
||||
fmt.Println("Config hot-reload applied (logging/metadata only)")
|
||||
return nil
|
||||
@@ -486,7 +480,6 @@ func gatewayCmd() {
|
||||
registryServer.SetToken(cfg.Gateway.Token)
|
||||
registryServer.SetWorkspacePath(cfg.WorkspacePath())
|
||||
registryServer.SetLogFilePath(cfg.LogFilePath())
|
||||
registryServer.SetWebUIDir(filepath.Join(cfg.WorkspacePath(), "webui"))
|
||||
configureGatewayNodeP2P(agentLoop, registryServer, cfg)
|
||||
registryServer.SetWhatsAppBridge(whatsAppBridge, embeddedWhatsAppBridgeBasePath)
|
||||
sentinelService.Stop()
|
||||
|
||||
Reference in New Issue
Block a user