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,
|
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user