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.

12.6 KB
Raw Blame
// runtime:zh 与 en 的键必须一一对应(en 的类型由 zh 推出,少一个多一个都过不了类型检查)。
import type { Catalog } from "../types.js";

export const zh = {
  help: [
    "可用命令:",
    "/model — 列出可用模型(带编号)",
    "/model <编号或模型名> — 切换当前会话的模型",
    "/reset — 清空当前会话的上下文(代理模式下同时开启新的代理会话;长期记忆保留)",
    "/new — 开始新的一段对话:旧对话归档并生成交接便条,长期记忆保留",
    "/bot — 看有哪些机器人,/bot <编号或名字> — 换一个机器人聊(聊天软件里才有)",
    "/status — 查看当前模型、代理状态和正在处理的消息走到了哪一步",
    "/stop — 中止正在处理的消息(只停这个会话,机器人的其它会话照常进行)",
    "/tasks — 列出这个会话的后台任务和规则",
    "/stop <编号> — 停止 /tasks 里的一个后台任务或规则",
    "/help — 显示本帮助",
  ].join("\n"),
  botList: "可以聊的机器人:\n{list}\n\n发 /bot <编号或名字> 换一个。",
  botCurrent: "(现在)",
  botMissing: "没找到机器人「{name}」。发 /bot 看看有哪些。",
  botSwitched: "好的,现在是 {name} 在和你聊。",
  noModels: "没有可用模型:请先连接 Modelflare(设置 → Modelflare)",
  startingNote: "(代理还在启动,这条消息先由模型直接回答;启动完成后会自动用回代理。)",
  emptyReply: "(模型没有返回内容)",
  interrupted: "⚠️ 生成中断:{error}",
  modelFailed: "⚠️ 模型调用失败({model}):{error}",
  // /status
  autoModel: "(自动:第一个可用模型)",
  modeAgent: "代理模式(DeepSeek Harness,{sandbox})",
  sandboxWorkspace: "工作区沙箱",
  sandboxReadonly: "只读沙箱",
  sandboxFull: "完全权限:不经沙箱",
  fullWarning: "注意:完全权限下命令以你的用户身份直接运行,可以读写你电脑上的任何文件(包括 AnyModelBot 自己的数据);只有递归删除仍会先问你。在机器人设置里可以改回「工作区可写」。",
  backgroundTasks: "后台任务:{list}",
  backgroundTask: "「{title}」{stage}",
  modeChat: "纯对话模式",
  pendingApproval: "待批准 {code}",
  pendingQuestion: "待回答 {code}",
  cuCodex: "Codex 桥",
  cuOn: "已启用",
  cuOff: "未启用",
  cuLine: "电脑操作:{backend},{state}——{reason}",
  busy: "本会话上一条消息还在处理(已 {s} 秒),新消息会排在它后面",
  currentModel: "当前模型:{model}{suffix}",
  convSetting: "(会话设置)",
  runMode: "运行方式:{mode}",
  pending: "未决:{list}",
  listSep: ",",
  // 卡片按钮
  requestMissing: "请求不存在",
  requestDone: "请求 {code} 已处理或已过期",
  approvedOnce: "已批准 {code}(仅本次)",
  rejected: "已拒绝 {code}",
  expired: "已过期",
  submitted: "已提交",
  submitFailed: "提交失败",
  unknownAction: "未知操作",
  allowOnce: "允许(仅本次)",
  deny: "拒绝",
  // 代理回合
  agentReady: "代理已就绪,正在处理…",
  agentStarting: "代理正在启动…{elapsed}{first}",
  agentStartingElapsed: "(已 {s} 秒)",
  agentStartingFirst: "首次启动可能需要几分钟。",
  doneNoText: "(已完成,没有文字回复)",
  agentFailed: "⚠️ 代理执行失败:{error}",
  localProxyRefused: "本机网络代理 {address} 拒绝连接。请启动代理软件并确认端口;若已不使用代理,请清除系统或环境变量中的对应代理设置,然后彻底退出并重开 AnyModelBot 后重试。",
  // 命令
  resetDone: "✅ 已清空本会话上下文",
  newAgentOnly: "⚠️ /new 只在代理模式下可用;纯对话模式请用 /reset",
  alreadyNew: "当前已经是新的一段对话",
  newFailed: "⚠️ 开新段失败:{error}",
  newDone: "✅ 已开始新的一段对话(旧对话已归档并留下交接便条,长期记忆保留)",
  modelListFailed: "⚠️ 获取模型列表失败:{error}",
  modelListEmpty: "暂无可用模型:请先连接 Modelflare(设置 → Modelflare)。",
  modelListHead: "可用模型(回复 /model 编号 切换):",
  modelCurrent: "  ← 当前",
  modelReset: "✅ 已恢复为机器人默认模型",
  modelNotFound: "⚠️ 找不到模型「{name}」,发送 /model 查看列表",
  modelSwitched: "✅ 本会话已切换到 {model}",
  saveFailed: "保存到工作区失败",
  stopped: "已中止(处理了 {d})。",
  steerAck: "收到,这条会并入正在进行的处理,稍后一起回复。",
  stoppedMark: "(已中止)",
  tasksAgentOnly: "后台任务只在代理模式下可用。",
  stopHint: "\n后台任务在进行:{list}。发 /stop 编号 可停止。",
  listSepStrong: ";",
  nothingToStop: "当前没有正在处理的消息。{hint}",
  stoppingPrev: "正在中止上一条消息(已处理 {d})…",
  queuedBehind: "上一条消息还在处理(已 {d}{now}),这条会排在它后面。发送 /stop 可以中止。",
  nowDoing: ",现在:{step}",
  jobResult: "后台命令的结果",
  jobDoneNoText: "(后台任务已结束,没有文字回复)",
  busyFor: "已 {d}",
  busySteps: { other: "{count} 步" },
  busyWaitingAgent: "还在等代理进程接手",
  busyNow: "现在:{step}",
  busyIdle: "{d}没有新进展",
  busySteer: "本会话上一条消息还在处理({parts}),新消息会并入正在进行的处理。发送 /stop 可以中止",
  busyQueue: "本会话上一条消息还在处理({parts}),新消息会排在它后面。发送 /stop 可以中止",
  stuckAt: "卡在:{step}。",
  lastStep: "最后一步:{step}。",
  andRestarted: "并重启代理进程",
  restartedNote: "代理进程已重启,",
  stoppedByUser: "已中止(处理了 {d})。{restarted}可以继续发消息。",
  stoppedIdle: "⚠️ 代理 {d}没有任何进展,已自动中止{restart}。{where}可以重新发送,或用 /model 换个模型试试。",
  stoppedLimit: "⚠️ 这条消息处理超过了 {d}的上限,已中止{restart}。{where}可以把任务拆小一点再发。",
  runtimeRestarted: "⚠️ 代理进程重启了(可能是同一机器人的另一个会话中止了卡住的消息),这条消息没有处理完,请重新发送。",
} satisfies Catalog;

export const en: Catalog<typeof zh> = {
  help: [
    "Commands:",
    "/model — list available models (numbered)",
    "/model <number or name> — switch the model for this conversation",
    "/reset — clear this conversation's context (in agent mode, also starts a new agent session; long-term memory is kept)",
    "/new — start a new conversation: the old one is archived with a handoff note; long-term memory is kept",
    "/bot — list the bots; /bot <number or name> — talk to a different bot (in chat apps only)",
    "/status — show the current model, the agent's state and how far the message in progress has got",
    "/stop — stop the message in progress (only this conversation; the bot's other conversations carry on)",
    "/tasks — list this conversation's background tasks and rules",
    "/stop <number> — stop a background task or rule listed by /tasks",
    "/help — show this help",
  ].join("\n"),
  botList: "Bots you can talk to:\n{list}\n\nSend /bot <number or name> to switch.",
  botCurrent: " (now)",
  botMissing: "There's no bot \"{name}\". Send /bot to see them.",
  botSwitched: "OK, you're now talking to {name}.",
  noModels: "No models available: connect Modelflare first (Settings → Modelflare)",
  startingNote: "(The agent is still starting, so the model answered this message directly; the agent takes over automatically once it's ready.)",
  emptyReply: "(The model returned nothing)",
  interrupted: "⚠️ Generation interrupted: {error}",
  modelFailed: "⚠️ Model call failed ({model}): {error}",
  autoModel: "(auto: first available model)",
  modeAgent: "agent mode (DeepSeek Harness, {sandbox})",
  sandboxWorkspace: "workspace sandbox",
  sandboxReadonly: "read-only sandbox",
  sandboxFull: "full access: no sandbox",
  fullWarning: "Note: with full access, commands run directly as your user and can read and change any file on your computer (including AnyModelBot's own data); only recursive deletes still ask first. You can switch back to \"Workspace write\" in bot settings.",
  backgroundTasks: "Background tasks: {list}",
  backgroundTask: "\"{title}\" {stage}",
  modeChat: "chat-only mode",
  pendingApproval: "awaiting approval {code}",
  pendingQuestion: "awaiting answer {code}",
  cuCodex: "Codex bridge",
  cuOn: "on",
  cuOff: "off",
  cuLine: "Computer use: {backend}, {state} — {reason}",
  busy: "The previous message in this conversation is still being processed ({s}s so far); new messages queue behind it",
  currentModel: "Current model: {model}{suffix}",
  convSetting: " (conversation setting)",
  runMode: "Mode: {mode}",
  pending: "Pending: {list}",
  listSep: ", ",
  requestMissing: "Request not found",
  requestDone: "Request {code} was already handled or has expired",
  approvedOnce: "Approved {code} (this time only)",
  rejected: "Denied {code}",
  expired: "Expired",
  submitted: "Submitted",
  submitFailed: "Couldn't submit",
  unknownAction: "Unknown action",
  allowOnce: "Allow (this time only)",
  deny: "Deny",
  agentReady: "Agent ready, working on it…",
  agentStarting: "Agent starting…{elapsed}{first}",
  agentStartingElapsed: " ({s}s so far)",
  agentStartingFirst: " The first start can take a few minutes.",
  doneNoText: "(Done, no text reply)",
  agentFailed: "⚠️ Agent run failed: {error}",
  localProxyRefused: "The local network proxy at {address} refused the connection. Start your proxy app and check its port, or remove the unused proxy from system settings or environment variables. Then fully quit and reopen AnyModelBot to retry.",
  resetDone: "✅ Cleared this conversation's context",
  newAgentOnly: "⚠️ /new only works in agent mode; in chat-only mode use /reset",
  alreadyNew: "This is already a new conversation",
  newFailed: "⚠️ Couldn't start a new conversation: {error}",
  newDone: "✅ Started a new conversation (the old one is archived with a handoff note; long-term memory is kept)",
  modelListFailed: "⚠️ Couldn't get the model list: {error}",
  modelListEmpty: "No models available: connect Modelflare first (Settings → Modelflare).",
  modelListHead: "Available models (reply /model <number> to switch):",
  modelCurrent: "  ← current",
  modelReset: "✅ Back to the bot's default model",
  modelNotFound: "⚠️ No model \"{name}\"; send /model to see the list",
  modelSwitched: "✅ This conversation now uses {model}",
  saveFailed: "Couldn't save to the workspace",
  stopped: "Stopped (ran for {d}).",
  steerAck: "Got it. This joins the reply in progress; you'll get one answer for both.",
  stoppedMark: "(stopped)",
  tasksAgentOnly: "Background tasks are only available in agent mode.",
  stopHint: "\nBackground tasks running: {list}. Send /stop <number> to stop one.",
  listSepStrong: "; ",
  nothingToStop: "Nothing is being processed right now.{hint}",
  stoppingPrev: "Stopping the previous message (ran for {d})…",
  queuedBehind: "The previous message is still being processed ({d} so far{now}); this one will wait behind it. Send /stop to stop it.",
  nowDoing: ", now: {step}",
  jobResult: "result of a background command",
  jobDoneNoText: "(The background task finished without a text reply)",
  busyFor: "{d} so far",
  busySteps: { one: "{count} step", other: "{count} steps" },
  busyWaitingAgent: "still waiting for the agent process",
  busyNow: "now: {step}",
  busyIdle: "no progress for {d}",
  busySteer: "The previous message in this conversation is still being processed ({parts}); new messages join it. Send /stop to stop it",
  busyQueue: "The previous message in this conversation is still being processed ({parts}); new messages wait behind it. Send /stop to stop it",
  stuckAt: "Stuck at: {step}. ",
  lastStep: "Last step: {step}. ",
  andRestarted: " and restarted the agent process",
  restartedNote: "The agent process was restarted. ",
  stoppedByUser: "Stopped (ran for {d}). {restarted}You can keep sending messages.",
  stoppedIdle: "⚠️ The agent made no progress for {d}, so it was stopped automatically{restart}. {where}Send it again, or try another model with /model.",
  stoppedLimit: "⚠️ This message took longer than the {d} limit and was stopped{restart}. {where}Try splitting the task into smaller pieces.",
  runtimeRestarted: "⚠️ The agent process restarted (another conversation with the same bot may have stopped a stuck message), so this message wasn't finished. Please send it again.",
};