feat webui react+vite responsive app with clawgo api adapter

This commit is contained in:
DBT
2026-02-25 12:59:16 +00:00
parent b435589060
commit b2ac3afcf4
11 changed files with 2009 additions and 0 deletions

View File

@@ -179,6 +179,7 @@ func gatewayCmd() {
registryServer := nodes.NewRegistryServer(cfg.Gateway.Host, cfg.Gateway.Port, cfg.Gateway.Token, nodes.DefaultManager())
registryServer.SetConfigPath(getConfigPath())
registryServer.SetWebUIDir(filepath.Join(cfg.WorkspacePath(), "webui-dist"))
registryServer.SetChatHandler(func(cctx context.Context, sessionKey, content string) (string, error) {
if strings.TrimSpace(content) == "" {
return "", nil