This commit is contained in:
lpf
2026-03-02 19:13:43 +08:00
parent d2f680debb
commit 06c9501be9
2 changed files with 24 additions and 24 deletions

View File

@@ -54,7 +54,7 @@ jobs:
npm install --prefix webui npm install --prefix webui
fi fi
npm run build --prefix webui npm run build --prefix webui
tar -czf build/clawgo-webui-dist-${{ github.sha }}.tar.gz -C webui dist tar -czf build/webui.tar.gz -C webui dist
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4

View File

@@ -179,7 +179,7 @@ func gatewayCmd() {
registryServer.SetConfigPath(getConfigPath()) registryServer.SetConfigPath(getConfigPath())
registryServer.SetWorkspacePath(cfg.WorkspacePath()) registryServer.SetWorkspacePath(cfg.WorkspacePath())
registryServer.SetLogFilePath(cfg.LogFilePath()) registryServer.SetLogFilePath(cfg.LogFilePath())
registryServer.SetWebUIDir(filepath.Join(cfg.WorkspacePath(), "webui-dist")) registryServer.SetWebUIDir(filepath.Join(cfg.WorkspacePath(), "webui"))
registryServer.SetChatHandler(func(cctx context.Context, sessionKey, content string) (string, error) { registryServer.SetChatHandler(func(cctx context.Context, sessionKey, content string) (string, error) {
if strings.TrimSpace(content) == "" { if strings.TrimSpace(content) == "" {
return "", nil return "", nil
@@ -965,29 +965,29 @@ func buildAutonomyEngine(cfg *config.Config, msgBus *bus.MessageBus) *autonomy.E
notifyAllowFrom = append(notifyAllowFrom, cfg.Channels.DingTalk.AllowFrom...) notifyAllowFrom = append(notifyAllowFrom, cfg.Channels.DingTalk.AllowFrom...)
} }
return autonomy.NewEngine(autonomy.Options{ return autonomy.NewEngine(autonomy.Options{
Enabled: a.Enabled, Enabled: a.Enabled,
TickIntervalSec: a.TickIntervalSec, TickIntervalSec: a.TickIntervalSec,
MinRunIntervalSec: a.MinRunIntervalSec, MinRunIntervalSec: a.MinRunIntervalSec,
MaxPendingDurationSec: a.MaxPendingDurationSec, MaxPendingDurationSec: a.MaxPendingDurationSec,
MaxConsecutiveStalls: a.MaxConsecutiveStalls, MaxConsecutiveStalls: a.MaxConsecutiveStalls,
MaxDispatchPerTick: a.MaxDispatchPerTick, MaxDispatchPerTick: a.MaxDispatchPerTick,
NotifyCooldownSec: a.NotifyCooldownSec, NotifyCooldownSec: a.NotifyCooldownSec,
NotifySameReasonCooldownSec: a.NotifySameReasonCooldownSec, NotifySameReasonCooldownSec: a.NotifySameReasonCooldownSec,
QuietHours: a.QuietHours, QuietHours: a.QuietHours,
UserIdleResumeSec: a.UserIdleResumeSec, UserIdleResumeSec: a.UserIdleResumeSec,
MaxRoundsWithoutUser: maxRoundsWithoutUser, MaxRoundsWithoutUser: maxRoundsWithoutUser,
TaskHistoryRetentionDays: a.TaskHistoryRetentionDays, TaskHistoryRetentionDays: a.TaskHistoryRetentionDays,
WaitingResumeDebounceSec: a.WaitingResumeDebounceSec, WaitingResumeDebounceSec: a.WaitingResumeDebounceSec,
IdleRoundBudgetReleaseSec: idleRoundBudgetReleaseSec, IdleRoundBudgetReleaseSec: idleRoundBudgetReleaseSec,
AllowedTaskKeywords: a.AllowedTaskKeywords, AllowedTaskKeywords: a.AllowedTaskKeywords,
ImportantKeywords: cfg.Agents.Defaults.Texts.AutonomyImportantKeywords, ImportantKeywords: cfg.Agents.Defaults.Texts.AutonomyImportantKeywords,
CompletionTemplate: cfg.Agents.Defaults.Texts.AutonomyCompletionTemplate, CompletionTemplate: cfg.Agents.Defaults.Texts.AutonomyCompletionTemplate,
BlockedTemplate: cfg.Agents.Defaults.Texts.AutonomyBlockedTemplate, BlockedTemplate: cfg.Agents.Defaults.Texts.AutonomyBlockedTemplate,
EKGConsecutiveErrorThreshold: a.EKGConsecutiveErrorThreshold, EKGConsecutiveErrorThreshold: a.EKGConsecutiveErrorThreshold,
Workspace: cfg.WorkspacePath(), Workspace: cfg.WorkspacePath(),
DefaultNotifyChannel: notifyChannel, DefaultNotifyChannel: notifyChannel,
DefaultNotifyChatID: notifyChatID, DefaultNotifyChatID: notifyChatID,
NotifyAllowFrom: notifyAllowFrom, NotifyAllowFrom: notifyAllowFrom,
}, msgBus) }, msgBus)
} }