update
This commit is contained in:
1
.opencode/plugin/agenat.ts
Normal file
1
.opencode/plugin/agenat.ts
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export { AgentPlugin } from "../../assistant/src/main.ts";
|
||||||
@@ -392,7 +392,8 @@ export const parseHomeArg = (homedir?: string) => {
|
|||||||
} else if (options.root) {
|
} else if (options.root) {
|
||||||
_configDir = options.root;
|
_configDir = options.root;
|
||||||
}
|
}
|
||||||
const isOpencode = execPath.includes('.opencode') || execPath.includes('opencode.exe');
|
const checkUrl = ['.opencode', 'bin/opencode', 'opencode.exe']
|
||||||
|
const isOpencode = checkUrl.some((item) => execPath.includes(item))
|
||||||
return {
|
return {
|
||||||
isOpencode,
|
isOpencode,
|
||||||
options,
|
options,
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ app.route({
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
}).define(async (ctx) => {
|
}).define(async (ctx) => {
|
||||||
const url = opencodeManager.getUrl();
|
const url = await opencodeManager.getUrl();
|
||||||
ctx.body = { content: url };
|
ctx.body = { content: url };
|
||||||
}).addTo(app);
|
}).addTo(app);
|
||||||
// 调用 path: opencode key: ls-projects
|
// 调用 path: opencode key: ls-projects
|
||||||
|
|||||||
Reference in New Issue
Block a user