fix: complete 0.5.1 demo workflows
This commit is contained in:
@@ -10,7 +10,7 @@ from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parent
|
||||
PACKAGES = [
|
||||
('plugin', 'markdown-workbench', ['plugin.yaml', 'commands.yaml', 'markdown-workbench.exe', 'example.md', 'README.md'], []),
|
||||
('plugin', 'markdown-workbench', ['plugin.yaml', 'tools.yaml', 'example.md', 'README.md'], []),
|
||||
('plugin', 'study-plan-kit', ['plugin.yaml', 'study-plan-kit.exe', 'README.md'], []),
|
||||
('skill', 'note-reviewer', ['skill.yaml', 'prompt.md', 'README.md'], ['markdown-workbench']),
|
||||
('skill', 'course-note-rewriter', ['skill.yaml', 'prompt.md', 'README.md'], ['markdown-workbench']),
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@
|
||||
"kind": "plugin",
|
||||
"version": "1.0.0",
|
||||
"file": "markdown-workbench-1.0.0.zip",
|
||||
"bytes": 405144,
|
||||
"sha256": "02203a73c7e6cac7b4001e98a6b1490a639296e76d74d13350f94b8facdb0d02",
|
||||
"bytes": 2445,
|
||||
"sha256": "4ca777a5f4fdffcaa3424d4f5d158a593e9f388fd88ab54783630aa59a3e8f59",
|
||||
"dependencies": [],
|
||||
"license": null,
|
||||
"publication_status": "local-preview"
|
||||
|
||||
Binary file not shown.
@@ -1,16 +1,15 @@
|
||||
# Markdown 笔记检查 1.0.0
|
||||
|
||||
真实的本地 MCP stdio Plugin,仅依赖 Python 3.11+ 标准库。需要 AI Core 主机能够运行 `python`;当前 NotesAgent 仅在 development 模式允许启动此类本地进程。
|
||||
生产环境可用的声明式本地 Plugin。分析逻辑由 OpenNexus 的白名单内置 Host 执行,不启动外部进程、不读取磁盘,也不连接网络。
|
||||
|
||||
## 功能
|
||||
|
||||
- Agent 工具 `markdown-workbench.inspect_markdown`:传入 `text`,返回行数、字符数、标题、任务、未完成任务、重复标题、标题跳级及未闭合代码围栏。结果包含 1 起始行号。
|
||||
- 命令 `检查选中 Markdown`:选择笔记中的文字后,在命令面板(Ctrl+P)执行;通知展示统计和前三条问题。不会修改选区。
|
||||
- `example.md` 是可独立检查的示例,预期 3 个标题、2 项任务(1 项未完成)、2 条提示(标题跳级、重复标题)。
|
||||
|
||||
## 安装
|
||||
|
||||
在 Plugin 页面安装 `markdown-workbench-1.0.0.zip`,再启用 Plugin。随后安装并启用配套 Skill `note-reviewer`。本 Plugin 不申请宿主权限,不读取磁盘笔记、不连接网络、不需要密钥;只分析宿主显式传入的文本。宿主本地进程隔离仍不是 OS 沙箱。
|
||||
在 Plugin 页面安装 `markdown-workbench-1.0.0.zip`,再启用 Plugin。随后安装并启用配套 Skill `course-note-rewriter` 或 `note-reviewer`。本 Plugin 不申请权限、不读取磁盘笔记、不连接网络、不需要密钥;只分析宿主显式传入的文本。
|
||||
|
||||
## 输入与限制
|
||||
|
||||
|
||||
@@ -5,11 +5,6 @@ description: 本地检查 Markdown 标题层级、重复标题、未完成任务
|
||||
permissions: []
|
||||
contributes:
|
||||
tools: [markdown-workbench.inspect_markdown]
|
||||
commands: [markdown-workbench.inspect-selection]
|
||||
backend:
|
||||
type: mcp
|
||||
transport: stdio
|
||||
command: ./markdown-workbench.exe
|
||||
args: []
|
||||
startup_timeout_seconds: 10
|
||||
tool_timeout_seconds: 10
|
||||
type: internal_rpc
|
||||
transport: none
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
tools:
|
||||
- name: markdown-workbench.inspect_markdown
|
||||
description: 本地检查 Markdown 标题层级、重复标题、任务项与代码围栏,并返回原文行号。
|
||||
handler: inspect_markdown
|
||||
parameters:
|
||||
type: object
|
||||
properties:
|
||||
text:
|
||||
type: string
|
||||
maxLength: 100000
|
||||
required: [text]
|
||||
additionalProperties: false
|
||||
Reference in New Issue
Block a user