Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
import { createContext, useContext } from 'react';
/** The slice of auth the question-card microphone needs. Kept out of AuthContext so card tests do not load the auth native graph. */
export type AskCardAuth = {
getAccessToken(): Promise<string | null>;
refreshAccessToken(): Promise<string | null>;
apiFetch(path: string, opts: object): Promise<unknown>;
};
export const AskCardAuthContext = createContext<AskCardAuth | null>(null);
export function useAskCardAuth(): AskCardAuth | null {
return useContext(AskCardAuthContext);
}