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.
Files changed (2) hide show
  1. package/index.mjs +5 -2
  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
- const ready = await init(client)
131
- if (ready) await loadRepos()
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openviking-opencode",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "OpenCode plugin for OpenViking — injects indexed repo context into the AI assistant and auto-installs the openviking skill",
5
5
  "type": "module",
6
6
  "main": "index.mjs",