mateclaw/mateclaw-server/src/main/java/vip/mate/wiki/service
倪程伟 28f2ba973d feat(wiki): honour KB pageType profile in transformations, agent pages & UI
Wiki page classification was only profile-aware in the main ingest pipeline.
Transformation outputs hard-coded "synthesis", agent-created pages were left
untyped, and the frontend hard-coded the built-in ten types for ordering,
colouring and labels — so custom/synthesis types sank to the bottom, rendered
grey and showed raw keys.

Backend:
- Add nullable target_page_type column to mate_wiki_transformation (V142,
  mysql + h2) plus the entity field and CRUD normalization (blank = use
  profile fallbackType; membership validated at save time, not edit time).
- Route transformation single-run + KB-aggregate page saves through
  WikiPageTypeProfileService.normalizePageType so output joins the KB
  classification; agent wiki_create_page now lands on the profile fallbackType
  instead of an untyped page.

Frontend:
- Load + parse the KB pageType profile into the wiki store (order, labels,
  fallbackType) on KB select / refresh.
- New useWikiPageType composable: profile-driven label (3-tier fallback) and
  colour (built-in fixed + deterministic hash palette for custom types).
- Sidebar grouping order, graph colouring, node panel, graph filter and the
  page header badge now follow the profile; transformation editor gains a
  target-type dropdown sourced from the profile when output target is a page.

Refs #292
2026-06-08 21:02:50 +08:00
..
DocumentPreprocessService.java feat(wiki): PR-1c preprocessor + chunk metadata + search exposure 2026-04-25 09:56:18 +08:00
HybridRetriever.java feat(wiki): page-level embedding so synthesis pages enter semantic search 2026-05-12 14:10:23 +08:00
PdfImageExtractor.java fix(wiki): skip vision pipeline entirely when wiki.ocr.enabled is off 2026-05-02 19:05:05 +08:00
RawTitleLookup.java feat(wiki): enrich chunk embedding input with raw title and structural metadata 2026-05-12 08:44:26 +08:00
RawTitleLookups.java feat(wiki): enrich chunk embedding input with raw title and structural metadata 2026-05-12 08:44:26 +08:00
WikiBatchCreateParser.java feat(skill): BuiltinSkillSeedService — close SQL/SKILL.md double-write 2026-04-24 06:55:18 +08:00
WikiChunkService.java feat(wiki): PR-1a infra — content hash split, chunk metadata columns, kb-default model 2026-04-25 09:56:17 +08:00
WikiCitationService.java feat(wiki): PR-4 on-demand compile + multi-page read tools 2026-04-25 09:56:19 +08:00
WikiCompileService.java feat(wiki): instrument compile / relation / retrieval with WikiMetrics 2026-05-02 19:04:19 +08:00
WikiContentNormalizer.java test(wiki): add adversarial HTML normalization tests and harden skeleton-tag handling 2026-05-19 21:23:13 +08:00
WikiContextService.java fix(memory): prefer recalled personal memory over knowledge base for user/project questions 2026-05-29 18:03:13 +08:00
WikiDependencyService.java feat(wiki): fact/experience dependency graph and stale propagation engine 2026-05-31 07:56:10 +08:00
WikiDirectoryScanService.java fix(wiki): match glob against symlink-resolved scan root 2026-06-08 20:51:03 +08:00
WikiEmbeddingInputBuilder.java feat(wiki): enrich chunk embedding input with raw title and structural metadata 2026-05-12 08:44:26 +08:00
WikiEmbeddingService.java feat(wiki): page-level embedding so synthesis pages enter semantic search 2026-05-12 14:10:23 +08:00
WikiEnrichmentApplier.java feat(wiki): analyze-stage slug whitelist + code-aware enrich applier 2026-05-28 08:17:27 +08:00
WikiImageCaptionCacheService.java feat(wiki): add SHA-256 keyed image caption cache 2026-05-02 19:04:25 +08:00
WikiKnowledgeBaseService.java feat(agent): scope agent knowledge base access to a bound subset (#261) 2026-06-07 22:41:14 +08:00
WikiLinkEnrichmentService.java feat(wiki): enrich batch — N pages per LLM call 2026-04-25 19:02:34 +08:00
WikiLinkService.java feat(wiki): cascade delete + rename to keep wikilinks consistent 2026-05-28 08:17:19 +08:00
WikiLintJobService.java fix(wiki): cascade + scan must not null content/summary via FieldStrategy.ALWAYS 2026-05-28 08:17:42 +08:00
WikiLogService.java feat(wiki): LLM-narrated overview section with debounced regen + Recent Updates list + scaffold self-heal 2026-04-26 19:53:12 +08:00
WikiNarrativeService.java feat(wiki): LLM-narrated overview section with debounced regen + Recent Updates list + scaffold self-heal 2026-04-26 19:53:12 +08:00
WikiOverviewService.java feat(wiki): LLM-narrated overview section with debounced regen + Recent Updates list + scaffold self-heal 2026-04-26 19:53:12 +08:00
WikiPageService.java feat(wiki): wire layer derivation and fact-dependency persistence into ingest 2026-05-31 07:59:20 +08:00
WikiPageTypePermissionService.java feat(wiki): per-agent pageType permission config API and pending-approval recording 2026-05-31 07:59:48 +08:00
WikiProcessingService.java feat(wiki): pipeline definition CRUD/YAML API, run query API, page-created trigger 2026-05-31 07:59:41 +08:00
WikiRawMaterialService.java refactor(wiki): drop ineffective @Transactional on self-invoked scan-update methods 2026-06-07 19:53:12 +08:00
WikiRelationService.java feat(wiki): instrument compile / relation / retrieval with WikiMetrics 2026-05-02 19:04:19 +08:00
WikiResearchService.java refactor(prompt): clean up prompt corpus, fix summary_budget bug, route fallbacks through i18n 2026-04-19 09:02:37 +08:00
WikiScaffoldService.java feat(wiki): LLM-narrated overview section with debounced regen + Recent Updates list + scaffold self-heal 2026-04-26 19:53:12 +08:00
WikiSourcePathValidator.java feat(wiki): support multi-path and glob patterns for KB source directory 2026-06-07 18:05:04 +08:00
WikiSourceWatcherService.java feat(wiki): pluggable ingest-source SPI + source-watcher status API 2026-05-31 07:59:34 +08:00
WikiStalePropagationListener.java feat(wiki): propagate staleness when a fact page is updated during ingest 2026-05-31 07:59:27 +08:00
WikiTransformationAggregator.java feat(wiki): honour KB pageType profile in transformations, agent pages & UI 2026-06-08 21:02:50 +08:00
WikiTransformationCitationExtractor.java feat(wiki): reverse-citation extractor — bind synthesis pages to the exact source chunks they cite 2026-05-12 14:10:47 +08:00
WikiTransformationExecutor.java feat(wiki): honour KB pageType profile in transformations, agent pages & UI 2026-06-08 21:02:50 +08:00
WikiTransformationService.java feat(wiki): honour KB pageType profile in transformations, agent pages & UI 2026-06-08 21:02:50 +08:00