@kioku-memory/plugin-opencode 0.6.2-edge.20261127114349.gd6926c6 → 0.6.2-edge.20261130224350.gd0f4abc
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/README.md +1 -1
- package/lib/kioku.mjs +1 -0
- package/lib/run.mjs +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
## 安装与配置
|
|
11
11
|
|
|
12
|
-
先在 Kioku 管理界面的「设置 →
|
|
12
|
+
先在 Kioku 管理界面的「设置 → 终端与密钥」为 `OpenCode`(`opencode`)签发访问密钥(或跳过这一步,直接用下面的浏览器授权),然后运行:
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
15
|
npx @kioku-memory/cli setup opencode --server-url https://kioku.example.com
|
package/lib/kioku.mjs
CHANGED
package/lib/run.mjs
CHANGED
|
@@ -74,7 +74,8 @@ export const USAGE = `用法:kioku run -e 变量=<标识>[#<字段>] [-e …]
|
|
|
74
74
|
命令不经过 shell 直接执行。参数里写的 $变量 会被外层的 shell 提前展开成空值;
|
|
75
75
|
要在参数里用变量,或者要用管道、重定向时,写成 sh -c '…',整段用单引号,变量放在双引号里:
|
|
76
76
|
|
|
77
|
-
kioku run -e PGPASSWORD=pg-main
|
|
77
|
+
kioku run -e PGPASSWORD=pg-main#password -- psql -h db.example.com -U app
|
|
78
|
+
kioku run -e DB_HOST=pg-main#host -e PGPASSWORD=pg-main#password -- sh -c 'psql -h "$DB_HOST" -U app'
|
|
78
79
|
kioku run -e TOKEN=github-token --purpose '查看 issue' -- sh -c 'curl -H "Authorization: Bearer $TOKEN" https://api.example.com/issues'
|
|
79
80
|
|
|
80
81
|
退出码与命令相同,命令被信号结束时 kioku 也以同一个信号结束;参数不对、取值失败时为 2。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kioku-memory/plugin-opencode",
|
|
3
|
-
"version": "0.6.2-edge.
|
|
3
|
+
"version": "0.6.2-edge.20261130224350.gd0f4abc",
|
|
4
4
|
"description": "Kioku 长期记忆的 OpenCode 插件:会话开始注入启动加载,每轮输入注入召回候选,并自动注册 Kioku MCP 服务",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/lonelyman0108/kioku-plugins/tree/main/plugins/opencode",
|