Skip to content

🤖 Open-source, local-first alternative to Grok Bot, OpenAI dots and Claude Duet. Your own AI bots on any model: GPT, Claude, Gemini, Grok, DeepSeek, Kimi, GLM and 70+ more through one Modelflare key. Reach them in the app, WeChat or Feishu; they remember you, work in the background, run commands and use your computer. Pay per use.

760 B
Raw Blame
/**
 * 崩溃测试用的子进程:起一个真实 App(外部模型端点 + mock iLink,不开网页),打印 READY 后一直运行,直到被 kill -9。
 * 用法:node --import tsx test/fixtures/app-child.ts <dataDir> <llmUrl> <ilinkUrl> <cdnBase>
 */
import { App } from "../../src/app.js";
import { loadConfig } from "../../src/config.js";

const [dataDir, llmUrl, ilinkUrl, cdnBase] = process.argv.slice(2);
const app = new App(
  loadConfig({ dataDir, env: { AMB_MAGPIE_BASE_URL: `${llmUrl}/v1`, AMB_MAGPIE_API_KEY: "gw-key", AMB_UI_PORT: "0", AMB_WEIXIN_API_BASE: ilinkUrl, AMB_WEIXIN_CDN_BASE: cdnBase, AMB_AGENT: "off" } }),
  { weixinPollTimeoutMs: 2000, printQrToTerminal: false, noWeb: true },
);
await app.start();
console.log("READY");