feat: companion 新增評估標籤管線與 rules.ts 規則表

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-14 07:52:36 +00:00
co-authored by Claude Sonnet 5.5
parent b47c838fd5
commit 31a45f0103
8 changed files with 206 additions and 24 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ export const register: Register = on => {
on('turn.complete', async ($, e, next) => {
replying = false
// 只有主迴圈正常答完、且這輪用過工具,才算做完一件事
if (e.reason === 'answer' && !e.agentId) companion?.onTurnComplete(usedTools).catch(() => {})
if (e.reason === 'answer' && !e.agentId) companion?.onTurnComplete(usedTools, e.answer).catch(() => {})
return next(e)
})