Feature request: VS Code-style plugin/extension system (server and web UI)

未关闭
#3,962 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
18/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
活跃
技术栈
typescript
领域
api, tooling

调研方向

This is an architecture proposal, not a scoped task: it asks maintainers three open questions (roadmap fit, server hooks vs web UI first, existing forks) before any implementation. Start by reading the server entry points and the web UI shell in the TypeScript sources to learn how routes, MCP tools and toolbar actions are currently registered, and look at how the existing agent integrations (Claude Code, OpenCode, Gemini) plug in. Done here means a maintainer decision on scope and a written design for manifests, contribution points and lifecycle, not a patch.

由索引模型根据 Issue 内容生成。

描述

Feature request: VS Code-style plugin/extension system (server and web UI)

  • AI written
  • Human reviewed

Summary

Today, adding custom behavior to the Plannotator server or web UI requires modifying the core or maintaining a fork—which breaks on upgrades and keeps useful features trapped in local patches. Existing integrations (Claude Code, OpenCode, Gemini, etc.) only extend the agent side.

I'd like to propose a lightweight, VS Code-style extension system so users can add server and UI features without touching the core.

Core Idea

An extension would be a self-contained folder (e.g., in ~/.plannotator/extensions/<name>/ or installed via CLI/git URL) with a single manifest defining its metadata, required apiVersion, and contributions:

  • Server API: Register namespaced HTTP routes (/ext/<name>/...), custom MCP tools, lifecycle hooks (e.g., message received/sent, thread created), and isolated storage.
  • Web UI SDK (@plannotator/extension-sdk): Register UI contribution points (toolbar buttons, command palette actions, sidebar panels, custom message renderers) with lazy activation and access to core theme tokens.
  • Safety & Lifecycle: Broken extensions fail gracefully without crashing the server/UI, and plannotator extension list/add/remove manages them cleanly.

Example Use Cases

  • Integrations: A toolbar button to export an annotation straight to Jira/Linear, or a custom Inbox delivery channel.
  • Custom UI: A sidebar view grouping threads by project, or an inline diff/chart renderer for specific message types.
  • Team Workflows: Pre-send redaction rules or custom notification formatting.

Non-goals (v1)

  • A hosted marketplace/registry (local folders and git URLs are enough to start).
  • Full code sandboxing (extensions run as trusted code, like VS Code).
  • Replacing existing agent-side integrations.

Open Questions

Before diving into implementation details, I'd love to hear from the maintainers and community:

  1. Does a plugin architecture align with Plannotator's roadmap?
  2. Which side would bring the most value first: server hooks, web UI extensions, or both?
  3. Are any of you currently maintaining local patches/forks that an extension system would solve?
主要语言
TypeScript
星标
8.7k
派生
649
平均合并
16 小时 1 分钟
30 天内合并 PR
756

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

backnotprop/plannotator 的其他 Issue

查看 backnotprop/plannotator 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。