- OpenCode 2.x
- OpenCode 1.x
在终端中安装插件:
opencode plugin add lagune
或者把它添加到 plugins 列表(位于 opencode.json):
{
"plugins": ["lagune"]
}
在终端中把插件安装到你的项目里,或者加上 -g 为你的所有项目安装:
opencode plugin lagune
或者把它添加到 plugin 列表(位于 opencode.json):
{
"plugin": ["lagune"]
}
更新
- OpenCode 2.x
- OpenCode 1.x
运行以下命令更新 Lagune:
opencode plugin update lagune
opencode reload
直接在旧版本上安装新版本即可更新 Lagune。如果你是为所有项目安装的,就加上 -g:
opencode plugin lagune@0.16.0 --force
命令
- OpenCode 2.x
- OpenCode 1.x
输入 @ 并选择命令,例如 @lagune-charter,然后在同一条消息中写下你的输入。
直接输入命令名,例如 /lagune-charter。这些命令列在 /skills 中,而不是 / 菜单里。
引擎通过两个工具运行:lagune_read 只读取你的项目,lagune_write 只写入 .lagune/。OpenCode 运行它们时不会询问。
常见问题
在 OpenCode 2.x 中,运行 opencode plugin add lagune。在 OpenCode 1.x 中,运行 opencode plugin lagune,加上 -g 可为你的所有项目安装。
在 OpenCode 2.x 中,运行 opencode plugin update lagune,然后运行 opencode reload。在 OpenCode 1.x 中,运行 opencode plugin lagune@0.16.0 --force。
在 OpenCode 2.x 中,输入 @ 并选择命令,例如 @lagune-charter,然后在同一条消息中写下你的输入。在 OpenCode 1.x 中,直接输入命令名,例如 /lagune-charter,或者在 /skills 中找到它们。
不会。OpenCode 会直接运行引擎的两个工具 lagune_read 和 lagune_write,不会询问。
