openviking-opencode 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/index.mjs +5 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -127,8 +127,11 @@ async function init(client) {
|
|
|
127
127
|
export async function OpenVikingPlugin({ client }) {
|
|
128
128
|
installSkill()
|
|
129
129
|
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
// 后台初始化,不阻塞 opencode 启动
|
|
131
|
+
Promise.resolve().then(async () => {
|
|
132
|
+
const ready = await init(client)
|
|
133
|
+
if (ready) await loadRepos()
|
|
134
|
+
})
|
|
132
135
|
|
|
133
136
|
return {
|
|
134
137
|
"experimental.chat.system.transform": (_input, output) => {
|
package/package.json
CHANGED