mateclaw/mateclaw-server/src/main/java/vip/mate/agent
倪程伟 f6156f6093 feat(webchat): expose agent-bound wiki pages to API-Key callers
Add GET /api/v1/channels/webchat/wiki/pages mirroring /skills, so
downstream integrators can build a [[slug]] picker UI that points the
LLM at specific wiki pages. The picker token format is the universal
Obsidian/Wikipedia wikilink convention; the LLM consumes [[slug]] via
the existing wiki_read_page(slug=...) tool, so no agent-runtime changes
are needed.

- AgentBindingResolver.getBoundKbIds(agentId): three-state mirror of
  getBoundSkillIds. null = no rows (fall through to workspace-wide KBs),
  Set.of() = explicitly scoped to zero KBs, non-empty = explicit scope.
- WebChatController.listWikiPages: API Key + visitorToken auth chain,
  agentId workspace anti-escalation, visibility excludes pageType=
  synthesis (LLM intermediate artifacts), 100-page cap forces keyword
  filter, response carries only display-level metadata.
- WebChatWikiPageView DTO: kbId/kbName/slug/title/summary/pageType;
  content/embedding/sourceRawIds deliberately stay admin-console-only.
- WikiTool.wiki_read_page @Tool description: document the [[slug]]
  convention so the LLM treats each token as a wiki-page reference.
- WebChatWikiPageListTest: 8 cases covering happy path, keyword filter,
  synthesis exclusion, anti-escalation, auth failures, cap behavior,
  and the no-binding → workspace-wide fallback.

Closes #381.
2026-06-20 07:21:07 +08:00
..
binding feat(webchat): expose agent-bound wiki pages to API-Key callers 2026-06-20 07:21:07 +08:00
context feat(agent): render runtime model identity line in RuntimeContextInjector 2026-06-08 20:53:39 +08:00
controller feat(agent): one-sentence AI employee creation wizard 2026-06-17 17:38:42 +08:00
delegation feat(agent,ui): multi-level subagent delegation tree 2026-05-22 13:44:01 +08:00
event feat(agent,trigger): wire agent_lifecycle as a real event source 2026-05-08 15:07:18 +08:00
graph feat(agent): loop-engineering robustness — goal continuation, plan re-plan, stall detection 2026-06-17 06:37:08 +08:00
model feat(agent): add knowledge base binding tab to agent editor (#237) 2026-05-29 06:00:52 +08:00
progress fix(agent): stop ProgressLedger from pinning virtual-thread carriers under parallel progress_update 2026-06-12 11:07:55 +08:00
prompt refactor(prompt): clean up prompt corpus, fix summary_budget bug, route fallbacks through i18n 2026-04-19 09:02:37 +08:00
repository Initial commit: MateClaw — Java + Vue 3 AI Assistant System 2026-04-04 19:03:49 +08:00
runtime feat(agent,ui): multi-level subagent delegation tree 2026-05-22 13:44:01 +08:00
service feat(agent): one-sentence AI employee creation wizard 2026-06-17 17:38:42 +08:00
vo feat(agent): one-sentence AI employee creation wizard 2026-06-17 17:38:42 +08:00
AgentAuthoringTool.java feat(agent): digital-employee builder skill to auto-create agents and chain them into a workflow (#165) 2026-05-21 16:26:04 +08:00
AgentGraphBuilder.java feat(agent): loop-engineering robustness — goal continuation, plan re-plan, stall detection 2026-06-17 06:37:08 +08:00
AgentService.java fix(mcp): refresh agent cache on MCP connection change + non-blocking connect (#289) 2026-06-09 14:14:08 +08:00
AgentState.java Initial commit: MateClaw — Java + Vue 3 AI Assistant System 2026-04-04 19:03:49 +08:00
AgentToolSet.java feat(tool,skill,ui): progressive tool/skill disclosure (load_skill + enable_tool + tier UI) 2026-05-23 09:07:45 +08:00
BaseAgent.java feat(agent): retain image context across turns for follow-ups (#303) 2026-06-11 13:53:56 +08:00
GraphEventPublisher.java feat(agent,ui): recovery affordance card for non-transient LLM errors 2026-05-10 19:15:57 +08:00
StructuredStreamCapable.java Initial commit: MateClaw — Java + Vue 3 AI Assistant System 2026-04-04 19:03:49 +08:00