pi-dynamic-help 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.1
4
+
5
+ - 移除 `/help` 输出中硬编码的 MCP 用法示例(包含特定服务器名 chrome-devtools/screenshot)
6
+ - 移除 `/help` 输出中硬编码的"示例"工作流部分(需求分析/系统设计//goal//brainstorm)
7
+ - `/help` 现在只显示动态生成的内容,不再包含可能不一致的硬编码示例
3
8
  ## 0.2.0
4
9
 
5
10
  - Refactor the extension into maintainable modules for state, identity, resource indexing, rendering, and extension wiring.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-dynamic-help",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Dynamic /help dashboard for Pi commands, tools, MCP servers, and packages.",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -57,13 +57,6 @@ export function buildMarkdown(index: ResourceIndex, updatedAt: number | undefine
57
57
 
58
58
  const updated = updatedAt ? new Date(updatedAt).toLocaleString() : new Date().toLocaleString();
59
59
  const title = normalizedQuery ? `动态帮助 · 搜索:${escapeMarkdownInline(query?.trim())}` : "动态帮助";
60
- const mcpUsageLines = [
61
- "### 用法",
62
- "- `mcp({})` 查看状态",
63
- "- `mcp({ server: \"chrome-devtools\" })` 列出服务器工具",
64
- "- `mcp({ search: \"screenshot\" })` 搜索工具",
65
- "- `mcp({ tool: \"...\", args: '{\"...\"}' })` 调用工具",
66
- ].join("\n");
67
60
 
68
61
  return [
69
62
  `# ${title}`,
@@ -89,8 +82,6 @@ export function buildMarkdown(index: ResourceIndex, updatedAt: number | undefine
89
82
  "### 网关",
90
83
  gatewayItems.length > 0 ? gatewayItems.map(formatItem).join("\n") : "- 暂无",
91
84
  "",
92
- mcpUsageLines,
93
- "",
94
85
  "### 服务器",
95
86
  serverItems.length > 0 ? serverItems.map(formatItem).join("\n") : "- 暂无",
96
87
  "",
@@ -102,13 +93,5 @@ export function buildMarkdown(index: ResourceIndex, updatedAt: number | undefine
102
93
  "- `/help pin <词>` 固定匹配项",
103
94
  "- `/help unpin <词>` 取消固定",
104
95
  "- `/help refresh` 重新扫描并刷新使用统计",
105
- "",
106
- "## 示例",
107
- "- `需求分析:...`",
108
- "- `系统设计:...`",
109
- "- `实现:...`",
110
- "- `审查:...`",
111
- "- `/goal ...`",
112
- "- `/brainstorm ...`",
113
96
  ].join("\n");
114
97
  }