perf(init): parallelize googleAuth and tmuxPath initialization
🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
This commit is contained in:
parent
be2adff3ef
commit
e572c7c321
10
src/index.ts
10
src/index.ts
@ -219,12 +219,12 @@ const OhMyOpenCodePlugin: Plugin = async (ctx) => {
|
|||||||
getSessionID: getSessionIDForMcp,
|
getSessionID: getSessionIDForMcp,
|
||||||
});
|
});
|
||||||
|
|
||||||
const googleAuthHooks =
|
const [googleAuthHooks, tmuxAvailable] = await Promise.all([
|
||||||
pluginConfig.google_auth !== false
|
pluginConfig.google_auth !== false
|
||||||
? await createGoogleAntigravityAuthPlugin(ctx)
|
? createGoogleAntigravityAuthPlugin(ctx)
|
||||||
: null;
|
: Promise.resolve(null),
|
||||||
|
getTmuxPath(),
|
||||||
const tmuxAvailable = await getTmuxPath();
|
]);
|
||||||
|
|
||||||
const configHandler = createConfigHandler({
|
const configHandler = createConfigHandler({
|
||||||
ctx,
|
ctx,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user