()
| 695 | } |
| 696 | |
| 697 | private helpText(): string { |
| 698 | const p = this.getMainPrefix(); |
| 699 | return ( |
| 700 | `<b>📚 DeepWiki 插件</b>\n\n` + |
| 701 | `DeepWiki通过与Github上的项目建立索引可以解决目前普遍的Ai信息滞后问题来精准回答您的提问\n\n` + |
| 702 | `<b>🗂️ 项目管理</b>\n` + |
| 703 | `• <code>${p}deepwiki add <tag> <url></code>(添加新的项目)\n` + |
| 704 | `• <code>${p}deepwiki lst</code>(已添加的项目)\n` + |
| 705 | `• <code>${p}deepwiki use <tag></code>(切换默认项目)\n` + |
| 706 | `• <code>${p}deepwiki del <tag></code>(删除指定项目)\n\n` + |
| 707 | `<b>📜 上下文管理</b>\n` + |
| 708 | `• <code>${p}deepwiki ctx</code>(上下文状态)\n` + |
| 709 | `• <code>${p}deepwiki ctx on/off</code>(开启或关闭上下文)\n` + |
| 710 | `• <code>${p}deepwiki ctx del</code>(清空当前项目上下文)\n` + |
| 711 | `• <code>${p}deepwiki ctx del <tag></code>(清空指定项目上下文)\n` + |
| 712 | `• <code>${p}deepwiki ctx del all</code>(清空全部项目上下文)\n\n` + |
| 713 | `<b>📌 使用说明</b>\n` + |
| 714 | `• <code>${p}deepwiki 你的问题</code>(发起默认项目提问)\n` + |
| 715 | `• <code>${p}deepwiki <tag> 你的问题</code>(发起指定项目提问)\n\n` + |
| 716 | `说明:项目需要能在 deepwiki.com 上正常访问(已索引)。` |
| 717 | ); |
| 718 | } |
| 719 | |
| 720 | private formatError(err: any): string { |
| 721 | if (err instanceof UserError) return `🚫 ${err.message}`; |
no test coverage detected