Commit Graph
216 Commits
Author SHA1 Message Date
lix-2026 ee0643041a feat: enrich page ai ACP runtime UI 2026-05-17 21:21:59 +08:00
lix-2026 bb2f190f50 feat: stabilize page AI ACP runtimes
实现并稳定页面 AI 的 ACP Hermes / ACP Reasonix 运行路径。

主要内容:

- 分离 profile 与 acpRuntime,ACP Hermes 按所选 Hermes profile 启动并注入 provider key。

- 修复 Reasonix ACP wrapper 的 API key 读取、ToolRegistry 注册、LoopEvent role 映射和 reasoning/final 分流。

- 修复 ACP agent_thought_chunk 被 untagged enum 误解析为 message.delta 的问题,补充 thought 相关单测。

- 补充页面 AI 浏览器验证 skill 证据到 7-15 设计稿,并记录严格验收标准。

- 同步提交当前仓库中已存在的 rust-web / Hermes tools / SSE / bug 文档相关改动。

验证:

- node --check scripts/reasonix-acp-wrapper.mjs

- cargo test -p mnote-web acp -- --nocapture

- 页面 AI ACP 浏览器验证:tmp/page-ai-acp-browser-UAYwyM/
2026-05-17 20:11:39 +08:00
lix-2026 2ea559beaa chore: move 3-14 WS push design to done/ 2026-05-17 16:15:52 +08:00
lix-2026 3f43020603 feat(mnote-web): add local file read support to mnote.doc.fetch + WS push design doc
## mnote.doc.fetch: local file path support
- Detect local file paths (starting with `/` or `./`) and bypass Convex aggregate
- Read .md file directly via fs::read_to_string
- Return source: "local_fs" in response
- Support maxChars truncation for local files
- Online Convex path unchanged

## Design: WS push migration (3-14)
- New: design/03-rust-web/process/3-14-rust-web-tree-realtime-ws-push-v1.md
- Documents commit 9d8e361e WebSocket push migration rationale,
  architecture, and verification

## Updated design doc references
- 3-3: Mark SSE as fallback transport (WS push is primary)
- 08 checklist: Note WS push in Tree Realtime section
- AGENTS.md: Update tree/realtime references to reflect WS push

## Housekeeping
- desktop-hot.js: remove 3 stale log messages about disabled services
- page_ai_workflow.rs: fix 5 warnings (unused import, dead_code)
2026-05-17 15:57:40 +08:00
lix-2026 46ede5e251 08 定向 Bug Hunt + 架构文档刷新
## 08 定向 Bug Hunt(3.5)

- Bug 1: 侧栏「复制页面」从 `/api/documents/duplicate` 迁移到
  `copyTreeCommand()` → `/api/tree/commands`(`tree.subtree.copy`)
- Bug 2: 侧栏「清空垃圾箱」标注 TODO,等待 Rust `tree.trash.empty`
- Bug 3: 文档页「应用模板」标注 TODO,等待 Rust `tree.page.template`
- Bug 4: 删除 `createChildDocumentCommand` 死代码(函数 + 类型 + 旧
  Next.js `/api/documents/create-child` 路由)
- 归档 4 份 bug 文档到 `bugs/04-tree-domain/done/` 和
  `bugs/05-editor-mainline/done/`

## 架构文档刷新

- ARCHITECTURE.md: MVP 状态标记、三层树模型(§6.4)、8.4 AI 方向按 7-14 v2
  修正、新增 8.5 定向 Bug Hunt 节、刷新 §5 和 §9 卡点描述
- AGENTS.md: 匹配 ARCHITECTURE.md 的 AI 方向和三层模型口径
- 08 checklist: 标记 7-14 v2 影响(Phase A/B/C 重命名、新增 9 项 checklist)

关联设计稿: 7-14 v2, 08
2026-05-16 23:48:41 +08:00
lix-2026 f292c6710a feat: EditorRuntimeActor - 三层缓存/delta/事件架构
Phase A — EditorRuntimeActor 内存缓存层
- 新增 editor_actor.rs: EditorBlockDocument 内存态 + apply_command + load_or_init
- block.rs 四个写工具(replace/insert/delete/move)接入 actor 路径
- editor_actor feature flag(MNOTE_WEB_ENABLE_EDITOR_ACTOR=true 默认开启)
- bridge-runtime 三个核心函数公开化
- rust-toolchain: 1.89 → stable(修复 spike WASM 编译阻塞)

Phase B — 编辑器增量 delta channel
- BlockDelta/DeltaOperation 类型 + actor.build_block_delta()
- leptos-tiptap spike: mnote:editor:block-delta CustomEvent 监听 + JSON patch
- DocumentAiAgentPanel: 拦截 blockDelta → window dispatchEvent
- 工具响应含 blockDelta 字段供前端消费

Phase C — 事件 stream delta
- broadcast channel 在 AppState/actor/SSE 三层贯通
- tree_events SSE 端点发 block.delta 事件
- 旧客户端降级兼容

环境修复
- rustc recursion_limit = 1024(修复 Leptos SSR 类型深度溢出)
- run-convex-deploy.js(封装 Convex function 部署到本地后端 3210)

ref: design/07-ai/process/7-13-page-block-editor-runtime-actor-v1.md
2026-05-16 22:03:30 +08:00
lix-2026 d8bfaea306 1.0 mvp 2026-05-16 12:34:48 +08:00
lix-2026 f9336257a5 chore(tree): remove legacy iframe tree shell
Remove the active TreeShellIframeHost path and legacy env flag so rust_family only mounts the Rust/WASM DOM shell host.

Move legacy iframe host files to ignored recycle storage, clear tracked recycle cache entries, and update tree-domain design wording to the current no-iframe position.

Align filetree default active rows with doc:<documentId> and update the renderer artifact bridge contract to dom_wasm.
2026-05-16 08:57:40 +08:00
lix-2026 384da4e44c feat(tree): checkpoint resource lifecycle work
提交当前顶层 mnote Git 工作区,范围集中在 04-tree-domain 的 resource/trash/filetree 生命周期、mnote-web resource_trash 路由、Convex/Next 兼容接口、sidebar/file-tree 客户端适配、smoke 脚本与对应设计/bug 记录。

不包含被 ignore 的 design/05-editor-mainline/reference-code/leptos-tiptap 嵌套仓库改动。新增 smoke 的测试密码改为运行时读取 MNOTE_E2E_PASSWORD,避免提交明文 credential assignment。
2026-05-16 07:38:45 +08:00
lix-2026 01fdd2a8c3 feat: complete hermes page ai runtime bff 2026-05-15 23:20:25 +08:00
lix-2026 0fc9fa7551 feat: complete page ai hermes control checklist 2026-05-14 18:24:30 +08:00
lix-2026 f257b2a014 feat: expand page ai hermes control surface 2026-05-14 17:04:17 +08:00
lix-2026 d1d19f755c docs(design): 归档 10-review 到 done
将 10-review 的 01-06 文档统一迁入 done/,根目录 README 收缩为索引。

补充各历史审查稿的归档说明,并把 06 的活跃引用改到 done/ 下,避免后续重复把已完成审查当成当前待办。
2026-05-14 16:30:13 +08:00
lix-2026 9816035491 feat(ai): switch page ai to hermes panel 2026-05-14 15:10:33 +08:00
lix-2026 e9188716e6 docs(design): 固化 3000 主文档壳刷新验收口径
明确 File Tree / Page Tree 的 no-refresh 验收必须在 3000 /documents/<id> 主文档壳执行,不能再用 3001/Next 或 /tree debug route 替代。

补充页面 tree.node.create、页面 delete/purge、页面内 mindmap create 三条链路的独立验收;mindmap create 按 /api/mindmap/<doc>/<mindmap> 资产写入链路单独验证。

记录 task426 主入口 smoke 作为后续回归入口。
2026-05-14 10:18:31 +08:00
lix-2026 96e03645f7 chore: 收口 review 执行清单与 runtime 验证
- 补齐 design/10-review 执行清单、验收标准与相关设计治理记录

- 迁移已完成的 tree、mindmap、runtime fallback、AI kernel 等设计和缺陷条目

- 推进 Rust Web runtime、tree/sidebar、page aggregate、mindmap 与 OnlyOffice 路由侧验证支撑

- 增加 task177-task180 smoke/audit 脚本及前端相关测试覆盖
2026-05-14 05:52:08 +08:00
lix-2026 b4a452a8b7 20260513 mindmap优化01 2026-05-13 22:43:16 +08:00
lix-2026 b5eb27fabc feat: 收口 mindmap Phase 6 Leptos UI shell 2026-05-11 12:27:40 +08:00
lix-2026 2f9ef85350 docs: codify fallback retirement direction 2026-05-10 08:46:43 +08:00
lix-2026 b7ceb7afae feat: wire page options through aggregate AI flow 2026-05-10 08:40:16 +08:00
lix-2026 3adc2b5e85 docs: 继续收口设计稿状态与主线口径 2026-05-09 21:12:57 +08:00
lix-2026 ac7023988e docs: 同步架构口径并整理设计稿状态
- 同步 AGENTS、ARCHITECTURE 与 01-05 总览中的 page aggregate / tree realtime 当前口径\n- 更新 3-3、5-5、5-6 对当前 Rust-first page aggregate 与 tree live stream 进展的描述\n- 将已被 wolai-aline 流程取代的 5-8 迁入 old 并标记 recycle
2026-05-09 20:51:43 +08:00
lix-2026 d148e1ccc2 feat: 收口本地文件夹入口并推进 page aggregate rust-first
- 为 Rust Web 主入口补齐本地文件夹/云空间切换、最近目录与路径回填体验\n- 对齐 local markdown media 与 inline marks 的 Rust shell / TipTap converter 语义\n- 让 documents/page 优先消费 Rust page aggregate snapshot,并保留 TS fallback\n- 补强 tree live、local markdown 与主入口 smoke,并同步设计稿状态
2026-05-09 19:05:06 +08:00
lix-2026 71146de5f0 050901 非全量刷新 2026-05-09 06:24:50 +08:00
lix-2026 3d5e0c9d5a feat: finish rust web dual pane document shell 2026-05-08 23:15:00 +08:00
lix-2026 b183d24ba5 Implement local Markdown GFM parser and live refresh 2026-05-08 10:57:24 +08:00
lix-2026 e082e71b5d design expand gfm parser migration checklist 2026-05-08 00:48:12 +08:00
lix-2026 ffab095d86 design rust web gfm ast markdown parser migration 2026-05-08 00:44:19 +08:00
lix-2026 c620b9e40c checkpoint before gfm ast parser design 2026-05-08 00:41:03 +08:00
lix-2026 e8ba12e461 收口 Rust Web 入口与 AI 写入链
- 将 3000 主入口继续收口到 mnote-web,补齐 /favicon.ico、/api/auth、session alias、AI run 等 Rust Web 路由边界。

- 更新登录页与 Convex Auth 代理,支持测试账号快速登录写入真实 Convex Auth cookie。

- 推进页面设置、Wolai 对齐、Phase 7 AI kernel/CLI-first 设计文档与相关 smoke 脚本。

- 更新 leptos-tiptap 生成资产、mnote-cli/bridge-runtime、前端依赖和 dev/prod 启动脚本。
2026-05-06 21:44:20 +08:00
lix-2026 98b6360595 Checkpoint current workspace 2026-05-02 06:25:26 +08:00
lix-2026 015ad5bedd fix editor page transform true source 2026-04-30 22:45:43 +08:00
lix-2026 c7cfe85d87 add editor transform to page parity 2026-04-30 22:14:37 +08:00
lix-2026 7565976810 fix editor block handle and menu parity 2026-04-30 21:50:40 +08:00
lix-2026 2b88ecb4b9 对齐 Wolai 编辑器搜索与文档画布 2026-04-30 18:36:50 +08:00
lix-2026 afb2a5b8a0 对齐 Wolai 侧栏体验并收拢设计入库 2026-04-30 16:18:54 +08:00
lix-2026 559c5ce652 docs: update rust web design status 2026-04-29 16:33:15 +08:00
lix-2026 6ddc95412c fix: align rust web stitch sidebar tabs 2026-04-29 16:23:49 +08:00
lix-2026 33ddda9dfd fix: relink rust web tree editor runtime 2026-04-29 14:36:24 +08:00
lix-2026 6c3d20ca55 docs: plan rust web tree editor integration 2026-04-29 12:28:36 +08:00
lix-2026 048fe28a4d feat: cut over rust web main shell 2026-04-29 12:24:44 +08:00
lix-2026 7965c6c107 feat(tree): close rust family shell cutover 2026-04-28 16:30:51 +08:00
lix-2026 4ab36a9386 feat(tree): complete rust family runtime checklist
- add tree shell runtime artifact contracts and page/filetree/picker runtime reducers
- sink tree.subtree.move write operation through Rust and formalize command event plans
- harden file tree search projection contract and route thin-proxy boundaries
- record completed harness tasks and move design docs into process/done
2026-04-27 10:27:15 +08:00
lix-2026 41e958769e feat: land page aggregate and phase7 document ai mainline
- 收口 page aggregate 读取、本地状态与命令客户端\n- 接入 phase7 document ai sidecar 与前端编排入口\n- 更新 architecture 与 design 状态迁移
2026-04-23 07:38:34 +08:00
lix-2026 111a87d4fd feat: complete tree shell cutover and regression coverage 2026-04-18 09:38:16 +08:00
lix-2026 ddf285b82d feat(kernel): finish phase3 bridge cutover and phase4 tree projection
- add generic mnote-web query transport and bridge routes for workspace/request/trace

- route sidebar compat traffic through mnote-web and tighten fixture fallback to dev/test

- unify sidebar/page tree/file tree/picker consumers on page_tree projection

- sync phase3/phase4 checklist, breakdown docs, and harness progress state
2026-04-17 00:25:28 +08:00
lix-2026 b1d5d97142 feat(kernel): complete tree-first graph tasks 074-080 2026-04-16 22:01:51 +08:00
lix-2026 71fb1aee7e 0.5 缩减重构 2026-04-13 19:21:42 +08:00
liaibo af92c4b149 0.4.0 convex及界面修改 2026-02-01 08:47:40 +08:00
liaibo d1f055f51a 0.3.9修复onlyoffice 的打开问题 2026-01-26 13:19:48 +08:00