13.3 KB · updated 2026-05-19 · md

feature-map.zh.md

docs/i18n/feature-map.zh.md

功能地图

<!-- translations:start -->

English · 한국어 · 中文 · 日本語 · Русский · Español · Français · Deutsch

<!-- translations:end --> 本文档汇总了 Tesserae 当前已实现的功能,包括状态、源文件以及文档位置。

状态图例:✅ 已发布 · ⚠ 进行中 / 部分完成。

前端重设计 — 2026 年 4 月

以文档为中心的层级式 wiki 取代旧的图谱转储。逐路由导览见 MD0,三层模型见 MD1

Wiki 层(L2 markdown)

功能状态来源文档锚点
WikiPageStore(幂等 body-hash 写入、frontmatter 解析器)MD0architecture.md § 模块地图
WikiLayerProjector — 每个 wiki 层节点生成一个 md 页面MD0architecture.md § 流水线
sources/ 页面wiki_projector.pyfrontend-redesign.md § Sources
concepts/ 页面wiki_projector.pyfrontend-redesign.md § Concepts
entities/ 页面wiki_projector.pyfrontend-redesign.md § Entities
papers/ 页面wiki_projector.pyfrontend-redesign.md § Papers
repos/ 页面wiki_projector.pyfrontend-redesign.md § Repos
topics/ 页面wiki_projector.pyfrontend-redesign.md § Topics
questions/ 页面(开放问题)wiki_projector.pyfrontend-redesign.md § Questions
syntheses/ 页面MD0frontend-redesign.md § Syntheses

综合类型(L2 → 派生)

SynthesisProjector 生成七个确定性模板,并把 Synthesis 节点以及 synthesizes / summarizes 边写回图谱。

类型状态来源备注
pulse(全局一个,驱动 /synthesis.py每次 compile 都会重建。
daily_digestsynthesis.py每个 data/research/daily/<date>/ 一个。
weeklysynthesis.py每个 data/research/weekly/<iso-week>/ 一个。
topicsynthesis.py每个含 ≥ 3 篇 papers 的 ResearchTopic / ApproachFamily 集群一个。
comparisonsynthesis.py每对在同一任务上竞争的 ApproachFamily 一个。
field_overviewsynthesis.py每个 ResearchField 一个。
LLM 升级摘要(由环境标志启用)仅 hook已发布启发式基线;TESSERAE_SYNTHESIS_LLM=1 hook 保留为 stub。

静态站点路由

路由状态来源备注
/(首页,hero pulse)MD0 render_home统计行 + 精选入口 + 最近活动。
/sources/, /sources/<slug>.htmlpages.py::render_sources_index, render_source_detail
/concepts/, /concepts/<slug>.htmlpages.py::render_concepts_index, render_concept_detail
/entities/, /entities/<slug>.htmlpages.py::render_entities_index, render_entity_detail
/papers/, /papers/<slug>.htmlpages.py::render_papers_index, render_paper_detail
/repos/, /repos/<slug>.htmlpages.py::render_repos_index, render_repo_detail
/topics/, /topics/<slug>.htmlpages.py::render_topics_index, render_topic_detail
/syntheses/, /syntheses/<slug>.htmlpages.py::render_syntheses_index, render_synthesis_detail
/questions/, /questions/<slug>.htmlpages.py::render_questions_index, render_question_detail
/timeline/pages.py::render_timeline热力图 + 日期列表 + synthesis 侧栏。
/timeline/<YYYY-MM-DD>.html(每日详情)暂无热力图单元格暂时链接到当天的 digest.md 源页面。Subagent P 正在通过 StaticSiteBuilder 接入每日详情页。
/graph/(交互式 2D + 3D)pages.py::render_graph_view + js.py3d-force-graph + Three.js,悬停提示、边标签、以光标为锚点缩放。
/about.htmlpages.py::render_aboutSchema、构建信息。

AI 友好导出

工件状态来源目的
每页 <page>.txt 兄弟文件MD0 write_siblings单页纯文本视图(无导航、无样式)。
每页 <page>.json 兄弟文件exports.py::write_siblings{title, kind, body, body_text, links, source_path, frontmatter}
llms.txtexports.py::render_llms_txtllmstxt.org 短索引。
llms-full.txtexports.py::render_llms_full_txt所有页面正文,上限 5 MB。
graph.jsonldexports.py::render_graph_jsonldschema.org Dataset,仅 wiki 层节点。
graph.json__init__.py::write_site完整图谱载荷(含工具用代码节点)。
search-index.jsonMD0命令面板 + 页面搜索;仅 wiki 层类型。
sitemap.xmlexports.py::render_sitemap_xml所有生成路由,lastmod 来自 frontmatter。
rss.xmlexports.py::render_rss_xml最近 30 个 syntheses。
robots.txtexports.py::render_robots_txt宽松 — 允许抓取 + 索引。
ai-readme.mdexports.py::render_ai_readme机器可读站点地图。
manifest.json__init__.py::_manifest每个生成文件的 sha256 + 大小(幂等性 harness)。

视觉设计 + UX

功能状态来源备注
设计 token(浅色 + 深色主题、赤陶强调色)MD0assets/style.css 中的单个 CSS 包。
主题切换(持久化、无闪烁)MD0localStorage 中的 data-theme="dark",绘制前应用。
搜索面板(cmd+k / ctrl+k / /js.py基于 search-index.json 的模糊匹配;最近页面列表。
右侧固定 TOCpages.py + tokens.py仅桌面端;移动端通过 <details> 抽屉。
带月份 + 星期标签的活动热力图components.py::heatmap_svg26 周 SVG,单元格链接到当天 digest.md
Sparkline(每个概念/实体)components.py::sparkline_svg每周提及次数,最近 12 周。
移动端外壳(抽屉栏、底部导航、流式字号)tokens.py + pages.py触控目标 ≥ 44 px。
页面过渡(120 ms 透明度,prefers-reduced-motion)tokens.py
3D + 2D 图谱视图(悬停、边标签、以光标为锚点缩放)pages.py::render_graph_view + js.py3d-force-graph + Three.js,以 CDN 快照形式内置。
每页 AI 兄弟文件页脚components.py::ai_siblings_footer指向当前页 .txt.json 的内联链接。
Harness 会话历史页面MD0 + MD1显式 Claude Code/Codex 导入;/sessions/ 索引和详情页包含 markdown 轮次、左侧轮次栏、折叠的工具使用和搜索条目。

流水线 + CLI

功能状态来源备注
project compile 按顺序调用 synthesis + wiki + siteMD0重设计计划第 3 阶段。
独立 project build-siteproject.py + MD1读取 wiki/ + graph.json,写入 site/
project serve 本地 HTTPcli.py普通 stdlib 服务器。
project deploy → GitHub PagesMD0worktree push 到 gh-pages;可通过 gh CLI 选用 --enable-pages--build, --dry-run, --branch, --remote, --force
project sessions discover/import/listMD0 + cli.pyClaude Code/Codex 的入站会话历史;发现过程显式且限定在项目工作目录。
project watch 变更时重建MD0Subagent R 正在完成轮询 watcher — --interval, --debounce, --once, --paths, --quiet 参数表面已就绪;重建循环主体正在本轮落地。

既有功能(原样保留)

CLI 与安装

  • ✅ 通过 pyproject.toml 安装的 Python 包。
  • ✅ 控制台命令:tesserae, tesserae, tesserae_mcp
  • ✅ 用于 curl | bash 安装的 scripts/install.sh
  • ✅ 默认 editable 安装,便于快速本地开发。

抽取

  • ✅ 使用受控节点/边词汇表的确定性研究笔记抽取器。
  • ✅ Claude CLI/OAuth 抽取器,无需 API key 即可获得更高质量结构化抽取。
  • ✅ 按 glob 和预算限制选择性路由到 Claude。
  • ✅ 面向 Python 项目的确定性开发代码抽取器。
  • ✅ 支持内容哈希和 --changed-only 的批量摄取。
  • ✅ 容忍畸形 UTF-8 的源读取。

图谱治理

  • ✅ 受控 ResearchNodeType 列表 — 现在包含 SYNTHESIS
  • ✅ 受控边类型白名单 — 现在包含 synthesizes, summarizes
  • ✅ 拒绝 schema 漂移的验证。
  • ✅ 别名规范化。
  • ✅ 用于模糊近重复节点的审核队列。
  • ✅ 审核决策模板以及合并/保持分离工作流。
  • ✅ 基于每文件图谱的语料趋势总结。

持久化与报告

  • ✅ Graph JSON 导出。
  • ✅ SQLite 图存储。
  • ✅ 可选 Kuzu 图存储。
  • ✅ 图谱报告,包含计数、证据覆盖率、孤立节点、日期桶、别名密集节点。
  • ✅ 竞争性报告,描述从 MegaMem、Graphiti/Zep、MCP graph servers、agentic RAG 吸收的想法。

项目本地工作流

  • tesserae project init
  • tesserae project ingest
  • tesserae project compile
  • tesserae project mcp-config
  • tesserae project build-site
  • tesserae project serve
  • tesserae project deploy(新增 — GitHub Pages)
  • tesserae project sessions discover/import/list(显式本地 agent-history 导入)
  • tesserae project watch(进行中)
  • tesserae project export-agent-harness
  • tesserae project export-obsidian
  • tesserae project export-graphiti
  • tesserae project sync-graphiti

Obsidian

  • ✅ 可直接打开的 vault 导出。
  • .obsidian/app.json 和图谱设置。
  • ✅ Markdown 投影。
  • raw/assets/ 结构。
  • ✅ 带 Dataview 查询的 _meta/dashboard.md

Agent harnesses

生成的目标文件:

  • ✅ Claude Code: CLAUDE.md, .claude/settings.json
  • ✅ Codex: AGENTS.md, mcp.toml
  • ✅ Gemini: GEMINI.md, .gemini/settings.json
  • ✅ Kiro: steering 和 MCP 设置
  • ✅ Cursor: 项目规则和 MCP 配置
  • ✅ OpenCode: AGENTS.md, opencode.json

Graphiti / 时间事实

  • ✅ 带 provenance、currentness、confidence 和 invalidation 字段的时间事实投影。
  • ✅ 无依赖 Graphiti episode JSONL 导出。
  • ✅ 未安装 Graphiti 时的 sync-graphiti --dry-run 冒烟测试。
  • ✅ 使用 graphiti_core 和 Neo4j 的可选实时同步。

Cognee

  • ✅ Cognee JSONL 包(nodes.jsonl, edges.jsonl, manifest.json)。
  • ✅ 可选 add-only 直接导入。
  • ✅ 可选 Codex CLI/OAuth 支持的 Cognee cognify 适配器。
  • ✅ 用于无 API key 冒烟/质量工作流的确定性和 Ollama embedding 适配器路径。

MCP server

  • ✅ 基于 stdio JSON-RPC 的 tesserae_mcp / python3 -m tesserae.mcp_server
  • ✅ 工具:schema, graph_summary, search_nodes, node_context, search_facts, timeline
  • ✅ 多项目注册表。

测试

当前测试套件覆盖:

  • ✅ ontology guardrails(含新的 Synthesis 节点 + synthesizes / summarizes 边);
  • ✅ 确定性抽取;
  • ✅ Claude CLI wrapper 解析/验证;
  • ✅ 选择性 Claude 路由;
  • ✅ 规范化/审核工作流;
  • ✅ 批量摄取;
  • ✅ 报告;
  • ✅ SQLite/Kuzu 持久化;
  • ✅ Cognee bundles/import patches;
  • ✅ Graphiti export/sync dry-run;
  • ✅ 项目 CLI 工作流;
  • ✅ agent harness export;
  • ✅ Obsidian export;
  • ✅ 前端生成 + 链接完整性(无 nodes/codeclass-*.html);
  • ✅ wiki store 幂等性;
  • ✅ synthesis projector golden + 幂等性;
  • ✅ 站点组件、页面、导出、相关性;
  • ✅ AI 兄弟文件形状(每页 .txt + .json);
  • ✅ end-to-end 编译两次幂等性;
  • ✅ 包安装和安装器契约。