mateclaw/mateclaw-server/src/main/java/vip/mate/wiki
倪程伟 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
..
controller feat(wiki): entity-level knowledge graph extraction (#336) 2026-06-17 14:17:54 +08:00
dto feat(wiki): entity-level knowledge graph extraction (#336) 2026-06-17 14:17:54 +08:00
event feat(wiki): pipeline definition CRUD/YAML API, run query API, page-created trigger 2026-05-31 07:59:41 +08:00
hotcache feat(wiki): admin endpoints for hot cache — get / regenerate / reset 2026-05-02 21:46:02 +08:00
job feat(wiki): entity-level knowledge graph extraction (#336) 2026-06-17 14:17:54 +08:00
metrics feat(wiki): add WikiMetrics gateway for compile/relation/retrieval/vision 2026-05-02 19:03:59 +08:00
model feat(wiki): entity-level knowledge graph extraction (#336) 2026-06-17 14:17:54 +08:00
pipeline feat(wiki): pipeline definition CRUD/YAML API, run query API, page-created trigger 2026-05-31 07:59:41 +08:00
profile fix(wiki,agent): tidy up post-merge review nits 2026-06-08 22:48:53 +08:00
relation chore: sync multiple commits from private dev 2026-04-19 18:37:44 +08:00
repository feat(wiki): entity-level knowledge graph extraction (#336) 2026-06-17 14:17:54 +08:00
retrieval chore: sync multiple commits from private dev 2026-04-19 18:37:44 +08:00
service feat(wiki): configurable entity types, type legend filter & theme-aligned graph colors (#336) 2026-06-19 07:18:09 +08:00
source feat(wiki): pluggable ingest-source SPI + source-watcher status API 2026-05-31 07:59:34 +08:00
sse feat(wiki): real-time SSE progress + parallel page generation + partial-resume; fix concurrent slug collisions; fix skill overwrite + hub retry 2026-04-15 10:34:11 +08:00
tool feat(webchat): expose agent-bound wiki pages to API-Key callers 2026-06-20 07:21:07 +08:00
WikiAutoConfiguration.java fix(wiki): recover raw materials stuck in processing on server restart 2026-04-19 19:37:50 +08:00
WikiProperties.java fix(wiki): dedup pages by title and bound route prompt growth (#321) 2026-06-12 15:17:32 +08:00