diff --git a/README.md b/README.md index 4a68e1d..8559aa4 100644 --- a/README.md +++ b/README.md @@ -16,13 +16,12 @@ ### windows 方式一: - `winget install --id SST.opencode` -- vscode中安装opencode插件 +- vscode中安装opencode插件,通过"从VSIX安装"方式安装插件,插件安装包处于installations目录 方式二: 1. 通过Node.js安装,终端输入安装命令:`npm i -g opencode-ai` 2. 在PowerShell终端中输入`opencode --version`指令,如果显示版本号,说明安装成功 -3. 在代码项目目录下执行`opencode` 启动Opencode TUI,即可针对该项目进行对话,如 `PS D:\01-Codes\jianmu> opencode` - +3. vscode中安装opencode插件 ### 模型切换(替换为私有部署大模型) > 前提:本地或内网部署的模型服务API端点 `http://127.0.0.1:11434/v1`,以Ollama为例 @@ -60,13 +59,20 @@ * baseURL: 本地 Ollama 服务地址,默认为 http://localhost:11434/v1 * models: 模型映射,键为 Ollama 模型名称(执行`ollama list`查看),值为显示名称 2. 切换模型 - 在 Opencode TUI 页面输入框输入`/models`,按回车,方向键选择刚配置的模型,按回车使用该模型。 + 在 Opencode TUI 、 VSCode opencode插件页面输入框输入`/models`,按回车,方向键选择刚配置的模型,按回车使用该模型。 #### Linux 与Window操作同理,编辑 `~/.config/opencode/opencode.json` ## Semgrep +### 安装步骤 +对于 Ubuntu、Windows 到 Linux 的 Windows 子系统 (WSL)、Linux、macOS: +1. 使用pip安装: +`python3 -m pip install semgrep` +2. 验证安装: +`semgrep --version` + ### 服务私有化部署(Linux服务器) diff --git a/installations/sst-dev.opencode-0.0.13.vsix b/installations/sst-dev.opencode-0.0.13.vsix new file mode 100644 index 0000000..ff15110 Binary files /dev/null and b/installations/sst-dev.opencode-0.0.13.vsix differ