INNER CODE UNIT · TypeScript

invokeAuthCommand

openclaw/mcporter · src/cli.ts:455

async function invokeAuthCommand(runtimeOptions: RuntimeOptions, args: string[]): Promise<void> {
  const [{ createRuntime }, { handleAuth: importedHandleAuth }] = await Promise.all([
    import('./runtime.js'),
    import('./cli/auth-command.js'),
  ]);
  const runtime = await createRuntime(runtimeOptions);
  try {
    await importedHandleAuth(runtime, args, { oauthTimeoutMs: runtimeOptions.oauthTimeoutMs });
  } finally {
    await runtime.close().catch(() => {});
  }
}

async function maybeHandleDaemonFastCall(
  command: string,
  args: string[],
  configResolution: { path: string; explicit: boolean },
  rootDir: string | undefined

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…