mateclaw/mateclaw-server/src/test/java/vip/mate/tool/builtin
matevip fa4e7018a0 feat(delegation): 本轮 token 总量页脚 + 子 Agent 用量向上滚加
- 新增 DelegatedUsageAccumulator:按根会话累加每个完成子 Agent 用量,根 Agent
  在 _usage_final 处一次性 drain 整棵子树、中间层得 0,每个子只计一次、无重复计数
- runSingleChild 增 accumulateToParent:同步/并行/计划步骤委派计入父轮,游离异步不计
- ReAct / Plan-Execute 在 _usage_final 处 drain 并加进 token + 附委派分解字段,
  doFinally 清理防泄漏;该事件同时驱动实时 SSE 与 mate_message 落库,实时/刷新一致
- 前端消息底部新增 Σ<total> tok 徽标(tooltip 含委派分解),总量仅取 message 用量
- 测试:补 DelegatedUsageAccumulator 接线,委派全套 59 绿
2026-06-30 17:21:10 +08:00
..
CodeExecuteToolArgsTest.java feat(tool): surface files written by execute_code as one-click downloads 2026-06-30 11:31:14 +08:00
CodeExecuteToolArtifactTest.java feat(tool): surface execute_shell_command artifacts; fix download filename 2026-06-30 14:01:48 +08:00
CronJobToolIdPrecisionTest.java fix(tool): keep Snowflake ids precise across the tool boundary (#319) 2026-06-11 15:17:51 +08:00
DatasourceToolIdPrecisionTest.java fix(tool): keep Snowflake ids precise across the tool boundary (#319) 2026-06-11 15:17:51 +08:00
DelegateAgentToolContextInheritanceTest.java chore(test): backfill mateclaw-server/src/test/ that earlier PRIVATE_ITEMS pattern accidentally excluded 2026-05-12 17:38:08 +08:00
DelegateAgentToolDenyListTest.java feat(delegation): 本轮 token 总量页脚 + 子 Agent 用量向上滚加 2026-06-30 17:21:10 +08:00
DelegateAgentToolTest.java feat(delegation): 本轮 token 总量页脚 + 子 Agent 用量向上滚加 2026-06-30 17:21:10 +08:00
DelegateAsyncTaskOutputAttributionTest.java feat(delegation): 本轮 token 总量页脚 + 子 Agent 用量向上滚加 2026-06-30 17:21:10 +08:00
DelegateAsyncToolTest.java feat(delegation): 本轮 token 总量页脚 + 子 Agent 用量向上滚加 2026-06-30 17:21:10 +08:00
DelegateEventSequenceTest.java feat(delegation): 本轮 token 总量页脚 + 子 Agent 用量向上滚加 2026-06-30 17:21:10 +08:00
DelegationContextTest.java Harden goal approval and workspace flows 2026-05-23 22:55:16 +08:00
DocumentExtractToolReadableRatioTest.java chore(test): backfill mateclaw-server/src/test/ that earlier PRIVATE_ITEMS pattern accidentally excluded 2026-05-12 17:38:08 +08:00
DocumentExtractToolTrustedPathTest.java fix(wiki): extract uploaded documents via a sandbox-exempt path (#323) 2026-06-13 07:29:39 +08:00
EnableExtensionToolTest.java feat(tool,skill,ui): progressive tool/skill disclosure (load_skill + enable_tool + tier UI) 2026-05-23 09:07:45 +08:00
GoalManagementToolTest.java feat(goal): deterministic completion + remaining-criteria followup + auto-followup gates 2026-06-03 21:19:26 +08:00
ImageAnalyzeToolTest.java feat(tool): add image_analyze for on-demand image re-analysis (#303) 2026-06-11 13:53:56 +08:00
MateClawDocServiceTest.java feat(docs): expose bundled help docs via in-app viewer 2026-06-15 07:48:49 +08:00
ProgressLedgerToolTest.java feat(agent): echo full ledger snapshot in progress_update tool result 2026-05-24 23:00:24 +08:00
ReadFileToolLargeLineTest.java feat(tool): read_file can page through an oversized single line via startColumn (#190) 2026-05-21 22:27:09 +08:00
SessionListToolTest.java feat(agent): SessionListTool discovers persisted sub-agent sessions for send 2026-06-23 18:22:45 +08:00
SessionSendToolTest.java feat(agent): register send continuations in the sub-agent registry 2026-06-23 18:22:56 +08:00
ShellExecuteToolShellSelectionTest.java chore(test): backfill mateclaw-server/src/test/ that earlier PRIVATE_ITEMS pattern accidentally excluded 2026-05-12 17:38:08 +08:00
SkillFileToolTest.java test(skill): fix listAvailableSkills arity and cover agent-binding enforcement 2026-06-07 17:34:43 +08:00
SkillLoadToolTest.java feat(tool,skill,ui): progressive tool/skill disclosure (load_skill + enable_tool + tier UI) 2026-05-23 09:07:45 +08:00
SkillManageToolWriteFileTest.java feat(skill): self-evolving skills — out-of-band reflection, curator consolidation, agent-authored skill files 2026-06-23 13:51:04 +08:00
SkillScriptToolArgsTest.java fix(skill): normalize runSkillScript JSON args 2026-05-19 09:56:33 +08:00
TikaExtractorTest.java chore(test): backfill mateclaw-server/src/test/ that earlier PRIVATE_ITEMS pattern accidentally excluded 2026-05-12 17:38:08 +08:00