🤖 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.
Python ai-agentai-assistantchatbotclaudecomputer-usedeepseekdesktop-appdshelectronfeishugeminigptgrokllmlocal-firstmodelflaremulti-modelopenai-compatiblepersonal-ai-agentwechat
// rules(3d):zh 与 en 的键必须一一对应(en 的类型由 zh 推出,少一个多一个都过不了类型检查)。
// 用户看得到的规则文字:时间表的话、状态、运行记录的一行、「需要你」、推送的暂停那句、建规则时建议的回复、接口的报错。
// 给模型看的(规则段、第一条输入、工具说明和工具返回里的指示)不在这里。
import type { Catalog } from "../types.js";
export const zh = {
// 时间表的话(tasks/schedule.ts describe)
daily: "每天 {time}",
weekdays: "每个工作日 {time}",
weekends: "每个周末 {time}",
weekly: "每{days} {time}",
daysSep: "、",
everyMin: { other: "每 {count} 分钟" },
everyHour: { other: "每 {count} 小时" },
once: "{date} {time}",
cron: "cron {cron}",
withZone: "{text}({tz})",
event: "事件 {source}",
// 状态(tasks/rules.ts ruleState)
statePaused: "已暂停",
stateOff: "已关闭",
stateDone: "已结束",
stateRemind: "提醒",
stateObserve: "观察中",
stateAct: "执行中",
// 运行记录的一行(tasks/rules.ts runLine;排队中、已停止、预算用完用 tasks.* 的)
running: "正在运行",
skipped: "跳过:{why}",
failed: "失败:{why}",
interrupted: "中断:应用重启了",
reminded: "已提醒:“{text}”",
sent: "已发送:“{text}”",
pending: "待发送:“{text}”",
unsent: "未送达:“{text}”",
wouldSend: "本会发送:“{text}”",
wouldDo: "本会做:{text}",
wouldQuiet: "本会保持安静",
wouldQuietNote: "本会保持安静:{note}",
quiet: "保持安静",
quietNote: "保持安静:{note}",
needsApproval: "需要批准:{what}",
permReadOnly: "只读",
permWorkspace: "可写工作区",
// 跳过、失败的原因(存的是代码,显示时再翻;没有给出结果、模型一直出错、代理没能启动 / 不可用用 tasks.* 的)
whyAppOff: "电脑没开",
whyBusy: "一直在忙",
whyOverlap: "上次还没跑完",
whyRestart: "应用重启了",
whyPaused: "后台工作已暂停",
whyTimeout: "超时",
whyApprovalTimeout: "批准超时",
// 花费与预算(3e):运行记录、「需要你」、推送、接口的报错
whyRunBudget: "超出单次预算",
whyMonthBudget: "本月预算用完",
whyReserve: "机器人预算留给聊天",
budgetStopped: "停下:{why}",
monthPaused: "本月预算用完",
monthLine: "已用约 {spent},下月自动恢复。再给 {add} 继续?",
monthPush: "⚠️ 规则「{title}」本月预算用完(约 {spent}),已暂停,下月自动恢复。",
monthUsed: "本月预算已用完(约 {spent})",
// 「需要你」
subject: "规则「{title}」",
failingPaused: { other: "连续失败 {count} 次,已暂停" },
failing: { other: "连续失败 {count} 次" },
suggest: { other: "规则「{title}」已观察 {count} 次,需要你来决定是否执行" },
// 「需要你」那一行的那一句(不带机器人名)
headAnswer: "规则「{title}」在等你回答",
headApproval: "规则「{title}」在等你批准",
headFailing: { other: "规则「{title}」连续失败 {count} 次" },
headFailingPaused: { other: "规则「{title}」连续失败 {count} 次,已暂停" },
headMonth: "规则「{title}」本月预算用完了",
// 推送:连续失败暂停了(执行中的规则)
pausedPush: "⚠️ 规则「{title}」连续失败 {count} 次,已暂停:{why}",
// 建规则时建议给用户的那句(经聊天代理转述):新规则直接执行;用户说了先观察的才观察
createdReply: "已建好规则:{when} {title},有值得说的就告诉你。",
createdObserveReply: "已建好规则:{when} {title},先观察几天,只记录不打扰你。",
remindReply: "好,{when} 提醒你。",
weixinNote: "微信只在你 24 小时内发过消息时才能主动发给你;否则会在你下次发消息时一起送到,并显示在桌面端。",
// /tasks、/stop 编号(行的写法、提示语用 tasks.* 的)
listHead: "规则:",
turnedOff: "已关闭规则「{title}」。",
// 接口和编辑的报错
notFound: "规则不存在",
runNotFound: "没有这次运行",
badSchedule: "时间表不对",
badMode: "模式只能是关、观察或执行",
createFailed: "没能建好",
saveFailed: "没能保存",
nameEmpty: "名称不能为空",
wordsEmpty: "规则不能为空",
messageEmpty: "提醒的话不能为空",
noConversation: "没有这个会话",
eventNoSchedule: "这条规则由事件触发,没有时间表",
remindNoObserve: "提醒没有观察模式",
isOff: "规则关着",
isPaused: "后台工作已暂停",
isRunning: "正在运行",
// 时间表的报错(tasks/schedule.ts normalizeSchedule)
needTime: "缺少时间",
pastTime: "这个时间已经过了",
timeFormat: "时间要写成 08:00 这样",
pickDays: "选一天或几天",
minEvery: "间隔至少 {min} 分钟",
maxEvery: "间隔最长 7 天",
cronFields: "cron 要写 5 段:分 时 日 月 星期",
unknownSchedule: "不认识的时间表",
} satisfies Catalog;
export const en: Catalog<typeof zh> = {
daily: "Daily {time}",
weekdays: "Weekdays {time}",
weekends: "Weekends {time}",
weekly: "Every {days} {time}",
daysSep: ", ",
everyMin: { other: "Every {count} min" },
everyHour: { one: "Every hour", other: "Every {count} hours" },
once: "{date} {time}",
cron: "cron {cron}",
withZone: "{text} ({tz})",
event: "Event {source}",
statePaused: "Paused",
stateOff: "Off",
stateDone: "Done",
stateRemind: "Reminder",
stateObserve: "Observing",
stateAct: "Acting",
running: "Running",
skipped: "Skipped: {why}",
failed: "Failed: {why}",
interrupted: "Interrupted: the app restarted",
reminded: "Reminded: “{text}”",
sent: "Sent: “{text}”",
pending: "Waiting to send: “{text}”",
unsent: "Not delivered: “{text}”",
wouldSend: "Would send: “{text}”",
wouldDo: "Would do: {text}",
wouldQuiet: "Would stay quiet",
wouldQuietNote: "Would stay quiet: {note}",
quiet: "Stayed quiet",
quietNote: "Stayed quiet: {note}",
needsApproval: "Needs approval: {what}",
permReadOnly: "Read-only",
permWorkspace: "Can write the workspace",
whyAppOff: "the computer was off",
whyBusy: "no free slot",
whyOverlap: "the last run was still going",
whyRestart: "the app restarted",
whyPaused: "background work was paused",
whyTimeout: "timed out",
whyApprovalTimeout: "approval timed out",
whyRunBudget: "over the per-run budget",
whyMonthBudget: "this month's budget is used up",
whyReserve: "the bot's budget is kept for chat",
budgetStopped: "Stopped: {why}",
monthPaused: "Monthly budget used up",
monthLine: "Used about {spent}; resumes next month. Add {add} and continue?",
monthPush: "⚠️ Rule “{title}” used this month's budget (about {spent}) and is paused until next month.",
monthUsed: "This month's budget is used up (about {spent})",
subject: "Rule “{title}”",
failingPaused: { one: "Failed {count} time in a row, paused", other: "Failed {count} times in a row, paused" },
failing: { one: "Failed {count} time in a row", other: "Failed {count} times in a row" },
suggest: { one: "Rule “{title}” has run {count} time in observe mode; decide whether it should act", other: "Rule “{title}” has run {count} times in observe mode; decide whether it should act" },
headAnswer: "Rule “{title}” is waiting for your answer",
headApproval: "Rule “{title}” is waiting for your approval",
headFailing: { one: "Rule “{title}” failed {count} time in a row", other: "Rule “{title}” failed {count} times in a row" },
headFailingPaused: { one: "Rule “{title}” failed {count} time in a row and is paused", other: "Rule “{title}” failed {count} times in a row and is paused" },
headMonth: "Rule “{title}” used up this month's budget",
pausedPush: "⚠️ Rule “{title}” failed {count} times in a row and is paused: {why}",
createdReply: "Rule set: {title}, {when}. I'll tell you when something matters.",
createdObserveReply: "Rule set: {title}, {when}. It watches quietly for a few days and sends nothing.",
remindReply: "OK, reminder set for {when}.",
weixinNote: "WeChat lets the bot message you only within 24 hours of your last message. Otherwise it arrives with your next message and shows on the desktop.",
listHead: "Rules:",
turnedOff: "Rule “{title}” is off.",
notFound: "Rule not found",
runNotFound: "No such run",
badSchedule: "Invalid schedule",
badMode: "Mode must be off, observe or act",
createFailed: "Couldn't create the rule",
saveFailed: "Couldn't save",
nameEmpty: "Name can't be empty",
wordsEmpty: "The rule can't be empty",
messageEmpty: "The reminder text can't be empty",
noConversation: "No such conversation",
eventNoSchedule: "This rule runs on events and has no schedule",
remindNoObserve: "Reminders have no observe mode",
isOff: "The rule is off",
isPaused: "Background work is paused",
isRunning: "Already running",
needTime: "Pick a time",
pastTime: "That time has passed",
timeFormat: "Write the time like 08:00",
pickDays: "Pick one or more days",
minEvery: "The interval must be at least {min} minutes",
maxEvery: "The interval can be at most 7 days",
cronFields: "cron needs 5 fields: minute hour day month weekday",
unknownSchedule: "Unknown schedule",
};