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:
10
src/index.ts
10
src/index.ts
@@ -219,12 +219,12 @@ const OhMyOpenCodePlugin: Plugin = async (ctx) => {
|
||||
getSessionID: getSessionIDForMcp,
|
||||
});
|
||||
|
||||
const googleAuthHooks =
|
||||
const [googleAuthHooks, tmuxAvailable] = await Promise.all([
|
||||
pluginConfig.google_auth !== false
|
||||
? await createGoogleAntigravityAuthPlugin(ctx)
|
||||
: null;
|
||||
|
||||
const tmuxAvailable = await getTmuxPath();
|
||||
? createGoogleAntigravityAuthPlugin(ctx)
|
||||
: Promise.resolve(null),
|
||||
getTmuxPath(),
|
||||
]);
|
||||
|
||||
const configHandler = createConfigHandler({
|
||||
ctx,
|
||||
|
||||
Reference in New Issue
Block a user