Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
import React from 'react';
import { createRoot } from 'react-dom/client';
import i18next from 'i18next';
import { initReactI18next } from 'react-i18next';
import { MemoryRouter } from 'react-router-dom';
import zh from '../../../../apps/desktop/src/renderer/i18n/locales/zh-CN/common.json';
import { defaultLight as cindyLight } from '../../../../apps/desktop/src/renderer/themes/builtin/default-light';
import '../../../../apps/desktop/src/renderer/themes/colors';
import { ThemeService } from '../../../../apps/desktop/src/renderer/themes/theme-service';
import { defaultDark as cindyDark } from '../../../../apps/desktop/src/renderer/themes/builtin/default-dark';
import { BotDirectMessageCard } from '../../../../apps/desktop/src/renderer/features/bots/BotDirectMessageCard';
const q = new URLSearchParams(location.search);
const dark = q.get('theme') === 'dark';
const theme = dark ? cindyDark : cindyLight;
new ThemeService().applyTheme(theme);
document.documentElement.classList.toggle('dark',dark);
await i18next.use(initReactI18next).init({ lng:'zh-CN', resources:{ 'zh-CN':{ translation:zh }}, interpolation:{ escapeValue:false }});
const meta = { v:1, threadId:'thread', viewerBotId:'viewer', peerBotId:'peer', peerBotName:'Aster', sequence:1, preview:'Synthetic private body', direction:'sent' };
createRoot(document.getElementById('root')!).render(<MemoryRouter><div className="fixture-caption">Desktop · {dark?'Dark':'Light'} · 当前主干组件参考(未修改)</div><main style={{maxWidth:700,margin:'28px auto'}}><h2>Aster</h2><div className="messages"><div className="user-bubble">请整理会议安排。</div><p>安排已整理好,会议将在周五下午举行。</p><BotDirectMessageCard data={meta} sessionId="fixture"/><BotDirectMessageCard data={{...meta,direction:'received'}} sessionId="fixture"/><p>已收到回复,完整安排已确认。</p></div><footer><div className="composer">继续对话…</div></footer></main></MemoryRouter>);