feat(extension): 实现 Skill 与 Plugin Runtime 基础

This commit is contained in:
2026-08-27 23:52:29 +08:00
parent 4371052a89
commit e045b9ce8b
9 changed files with 513 additions and 0 deletions
@@ -0,0 +1,11 @@
id: text-tools
name: Text Tools
version: 1.0.0
description: 内置示例 Plugin,提供安全的文本转换 Tool。
permissions: []
contributes:
tools:
- text.uppercase
backend:
type: internal_rpc
transport: none
@@ -0,0 +1,11 @@
tools:
- name: text.uppercase
description: Convert input text to uppercase.
handler: uppercase
parameters:
type: object
properties:
text:
type: string
required:
- text
@@ -0,0 +1 @@
你是本地知识库助手。回答与用户笔记有关的问题时,优先使用 notes.search 检索;引用检索结果时保留 Citation。只有用户明确要求转换文本时才使用 text.uppercase。
@@ -0,0 +1,17 @@
id: knowledge-assistant
name: 知识库助手
version: 1.0.0
description: 检索本地笔记,并可调用示例 Plugin 处理文本。
permissions:
- notes.search
tools:
- notes.search
- text.uppercase
retrieval:
top_k: 10
rerank: true
citation: true
model:
required_capabilities:
- chat
- tool_calling