Skip to content

请求: 暴露项目级 API (JSON-RPC/HTTP) #6

Closed

Description

@dahai80

背景

Fusion Studio 正在构建项目级知识库功能 (对标 Claude.ai Projects),需要调用 fusion-code 的 memdir/session/CLAUDE.md 解析能力。

当前状态

fusion-code 的以下功能仅在 CLI 内部使用,无法从外部程序调用:

  • memdir (MEMORY.md 管理)
  • session history
  • CLAUDE.md 解析
  • agent memory

请求

暴露项目级 API,供 Fusion Studio 通过 HTTP/JSON-RPC 调用:

  1. 项目上下文 API: GET /api/project/context — 返回项目 CLAUDE.md + MEMORY.md 内容
  2. Session History API: GET /api/sessions / GET /api/sessions/:id — 列出/获取会话历史
  3. Memory API: GET /api/memory / POST /api/memory — 读写项目记忆

用例

  • Fusion Studio ProjectsPanel 展示项目上下文
  • 对话历史恢复
  • 项目记忆持久化

优先级

P0 — 阻塞 Fusion Studio 项目级对话绑定功能

Activity

  1. dahai80 commented on Jul 29, 2026

    @dahai80
    OwnerAuthor

    PR: #15

  2. added 3 commits that reference this issue on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions