Towards a More Autonomous Agent System
TypeScript
/**
* Bilingual UI dictionaries (`[zh, en]`) and glossary groupings, following the domain terms in `docs/001-domain.md`.
*/
import { USER_ERRORS } from '../core/errors.ts'
import { SETUP_PROBLEMS } from '../setup.ts'
import { HEALTH_TEXT } from '../sources/host.ts'
const TEXT = {
// Shared
title: ['Superagent', 'Superagent'],
close: ['关闭', 'Close'],
cancel: ['取消', 'Cancel'],
confirm: ['确定', 'Confirm'],
loading: ['正在读取…', 'Loading…'],
loadMore: ['加载更多', 'Load more'],
offline: ['无法连接到 dsh-superagent 服务。请确认它正在运行(dsh-superagent status),然后重试。', 'Cannot reach the dsh-superagent service. Check that it is running (dsh-superagent status), then retry.'],
serverError: ['dsh-superagent 服务内部错误({status}),请查看运行日志后重试。', 'dsh-superagent service error ({status}). Check the log, then retry.'],
requestFailed: ['请求失败({status})。', 'Request failed ({status}).'],
empty: ['—', '—'],
yes: ['是', 'Yes'],
no: ['否', 'No'],
'decision.accept': ['接单', 'Accept'],
'decision.reopen': ['续做', 'Reopen'],
'decision.stop': ['停止', 'Stop'],
'decision.ignore': ['忽略', 'Ignore'],
'decision.unavailable': ['未完成', 'Unavailable'],
'strength.explicit': ['明确', 'Explicit'],
'strength.inferred': ['推断', 'Inferred'],
'mode.off': ['关闭', 'Off'],
'mode.observe': ['仅观察', 'Observe'],
'mode.auto': ['自动接单', 'Auto'],
'source.feishu': ['飞书', 'Feishu'],
'source.github': ['GitHub', 'GitHub'],
'source.github-issue': ['GitHub Issue', 'GitHub Issue'],
'health.github': ['GitHub 来源', 'GitHub Source'],
'health.feishu': ['飞书来源', 'Feishu Source'],
'health.history': ['飞书补收', 'Feishu recovery'],
'health.runtime': ['dsh-superagent', 'dsh-superagent'],
'health.models': ['模型服务', 'Model service'],
'health.assessment': ['发给主 Session 的评估', 'Evals sent to the main Session'],
'health.launch': ['派工启动', 'Assignment launches'],
'health.delivery': ['输入送达', 'Input delivery to Assignments'],
'health.relay': ['转达给主 Session 的消息', 'Relays to the main Session'],
'health.notice': ['给主 Session 的通知', 'Notices to the main Session'],
'health.reply': ['发往渠道的消息', 'Messages to Channels'],
'health.worker': ['执行器事件处理', 'Executor event handling'],
'health.evals': ['未完成的评估', 'Unavailable Evals'],
none: ['暂无。', 'None.'],
openSession: ['打开 Session', 'Open Session'],
stop: ['停止', 'Stop'],
policyVersion: ['策略版本', 'Policy version'],
mediaMarker: ['[媒体]', '[Media]'],
forwardMarker: ['[合并转发]', '[Merged forward]'],
ticketId: ['工单 id', 'Ticket id'],
wouldAccept: ['忽略(可接单,仅观察)', 'Ignore (would accept; observe only)'],
timeline: ['触发时间线', 'Trigger timeline'],
groupMember: ['飞书用户', 'Feishu user'],
feishuBot: ['飞书机器人', 'Feishu bot'],
unknownMention: ['@某人', '@someone'],
automatedNotice: ['自动通知', 'Automated notice'],
requeue: ['重新评估', 'Evaluate again'],
imageMarker: ['[图片]', '[image]'],
rules: ['接单规则', 'Accept rules'],
remove: ['删除', 'Delete'],
'historySource.panel': ['管理页', 'Management page'],
'historySource.defaults': ['插件默认值', 'Plugin defaults'],
'historySource.tool': ['主 Session 工具', 'Main Session tool'],
'historySource.sync': ['从群同步', 'Sync'],
'historySource.web': ['管理页', 'Management page'],
'historySource.member-sync': ['成员同步', 'Member sync'],
'historySource.orchestrator-tool': ['主 Session 工具', 'Main Session tool'],
'historySource.internal': ['内部', 'Internal'],
'historySource.policy-sync': ['从群同步', 'Sync'],
'historySource.sections-migration': ['升级迁移', 'Upgrade migration'],
'historySource.vocabulary-migration': ['升级迁移', 'Upgrade migration'],
'historySource.settings-migration': ['升级迁移', 'Upgrade migration'],
listSeparator: ['、', ', '],
labelSeparator: [':', ': '],
lang: ['zh', 'en'],
automatedEarlier: ['同一发送者之前还有 {count} 条自动消息', '{count} earlier automated messages from the same sender'],
collapse: ['收起', 'Collapse'],
expand: ['展开全文', 'Show all'],
cardMarker: ['[卡片消息]', '[card message]'],
setupProblem: ['部署检查未通过:{detail}', 'Deployment check failed: {detail}'],
hostNotRunning: ['dsh-superagent 没有响应:它可能正在重启;持续如此时,DSH 的日志写明原因,常见的是配置有误。', 'dsh-superagent is not answering: it may be restarting; if this persists, the DSH log names the cause, often a configuration error.'],
savedRestarting: ['已保存,dsh-superagent 正在重启', 'Saved; dsh-superagent is restarting'],
problems: ['系统问题', 'System problems'],
dismiss: ['不再提示', 'Dismiss'],
saved: ['已保存', 'Saved'],
'tab.settings': ['设置', 'Settings'],
statusTitle: ['状态', 'Status'],
executingLabel: ['执行中', 'Executing'],
queuedLabel: ['排队', 'Queued'],
resumeProcessing: ['恢复处理', 'Resume processing'],
resumeProcessingConfirm: ['恢复后继续评估、派工和发送回复。', 'Resuming starts Evals, Assignments and replies again.'],
restartInterrupts: ['保存会重启 dsh-superagent:{count} 个进行中的派工会中断,并带恢复说明重新开始。', 'Saving restarts dsh-superagent: {count} running Assignments stop and start again with a recovery note.'],
sourceOff: ['已关闭', 'Off'],
executorWaitingSetup: ['执行器等待部署检查', 'Executor waiting for the deployment check'],
// Header, search, and tabs
panel: ['Superagent', 'Superagent'],
openMaster: ['打开主 Session', 'Open main Session'],
pagesLabel: ['dsh-superagent 页面', 'dsh-superagent pages'],
searchPlaceholder: ['搜索工单、线程、触发或链接', 'Search Tickets, Threads, Triggers or links'],
searchLabel: ['搜索', 'Search'],
searchFound: ['找到 {tickets} 个工单、{threads} 个线程、{items} 条触发', 'Found {tickets} Tickets, {threads} Threads and {items} Triggers'],
searchNone: ['没有找到。可以输入触发文字、GitHub PR 或 Issue 链接、#编号、飞书消息链接或 om_ 开头的消息 id。', 'Nothing found. Try Trigger text, a GitHub PR or Issue link, #number, a Feishu message link, or an om_ message id.'],
searchNoneGithub: ['没有找到。可以输入触发文字、GitHub PR 或 Issue 链接或 #编号。', 'Nothing found. Try Trigger text, a GitHub PR or Issue link, or #number.'],
'ticket.ended': ['已结束', 'ended'],
sessionListNotReady: ['Session 列表尚未加载,请稍后重试。', 'The Session list has not loaded yet; try again shortly.'],
sessionNotListed: ['这个 Session 不在当前会话列表里,可能已被归档或删除。', 'This Session is not in the current list; it may have been archived or deleted.'],
searchFiltered: ['被来源过滤:{reason}', 'Filtered by its Source: {reason}'],
searchFoundCapped: ['找到 {tickets} 个工单、{threads} 个线程、前 {items} 条触发(请缩小搜索范围)', 'Found {tickets} Tickets, {threads} Threads and the first {items} Triggers (narrow the search)'],
inThread: ['在 {thread}', 'in {thread}'],
'tab.overview': ['概览', 'Overview'],
'tab.source': ['来源', 'Source'],
'tab.trigger': ['触发', 'Trigger'],
'tab.eval': ['评估', 'Eval'],
'tab.execution': ['执行', 'Execution'],
// Overview
sourceError: ['{source} 来源异常', '{source} Source failing'],
needsYouNone: ['没有待处理的工单。', 'No pending Tickets.'],
pendingTickets: ['待处理工单', 'Pending Tickets'],
problemEvalOverdue: ['评估超时未决定:{thread}', 'Eval overdue: {thread}'],
problemSetup: ['部署检查未通过,dsh-superagent 暂不接单', 'Deployment check failed; dsh-superagent takes no work'],
problemNoSource: ['没有运行中的来源,不会收到任何触发', 'No Source is running; no Triggers arrive'],
actionOpenSources: ['去打开来源', 'Turn on a Source'],
problemPaused: ['处理已暂停:不开始新的评估,不派工,不发送回复', 'Processing paused: no new Evals, Assignments or replies'],
problemReply: ['{source} 回复发送失败(已重试 {attempts} 次)', '{source} reply failing (retried {attempts} times)'],
problemRuntime: ['运行异常:{name}', '{name} failing'],
problemEvalUnavailable: ['评估未完成:{thread}', 'Eval unavailable: {thread}'],
sourceErrorHint: ['来源会在每次轮询时自动重试。持续出现时检查网络和该来源的登录状态。', 'The Source retries on every poll. If this persists, check the network and the Source\'s sign-in.'],
details: ['详情 ›', 'Details ›'],
lastDay: ['过去 24 小时', 'Last 24 hours'],
flowReceivedLabel: ['到达', 'Arrived'],
flowFilteredLabel: ['被过滤', 'Filtered'],
flowDroppedLabel: ['放弃发送', 'Not sent'],
flowJudgedLabel: ['已评估', 'Evaluated'],
flowAcceptedLabel: ['接单或续做', 'Accepted or continued'],
idleLabel: ['等待新触发', 'Waiting for a Trigger'],
problemNoAllowed: ['没有人能发起工作:各来源上的名单都为空,任何请求都不会成为工单', 'No one may originate work: the lists on every Source are empty, so no request can become a Ticket'],
actionAddAllowed: ['去添加', 'Add senders'],
'problemSetupFix.github': ['在设置 › 来源的 GitHub 卡片修正后保存,会重新检查;在 dsh-superagent 之外修复的(例如登录 CLI),点“重新检查”。', 'Fix it on the GitHub card of the Source settings and save to check again; after a fix outside dsh-superagent, such as signing a CLI in, choose Check again.'],
'problemSetupFix.feishu': ['在设置 › 来源的飞书卡片修正后保存,会重新检查;在 dsh-superagent 之外修复的(例如配置机器人),点“重新检查”。', 'Fix it on the Feishu card of the Source settings and save to check again; after a fix outside dsh-superagent, such as configuring the bot, choose Check again.'],
'problemSetupFix.deployment': ['在部署设置里修正后保存,会重新检查;在 dsh-superagent 之外修复的(例如升级 git),点“重新检查”。', 'Fix it in the Deployment settings and save to check again; after a fix outside dsh-superagent, such as upgrading git, choose Check again.'],
problemSetupFeishu: ['飞书机器人检查未通过,飞书来源暂停', 'Feishu bot check failed; the Feishu Source is paused'],
// Source
labelsAdded: ['列表已更新,新增:{names}', 'List updated, added: {names}'],
labelsCurrent: ['列表已是最新', 'List is up to date'],
labelsFailed: ['读取失败,列表保持不变:{error}', 'Could not read the list; it stays as it was: {error}'],
sourceNotInstalled: ['插件未安装', 'Plugin not installed'],
sourceNotInstalledHint: ['提供这个来源的插件没有加载,配置按保存时的样子保留。', 'The plugin that provides this Source is not loaded; its configuration is kept as saved.'],
sourceEnable: ['运行来源:{name}', 'Run Source: {name}'],
addRow: ['添加', 'Add'],
removeRow: ['移除:{name}', 'Remove: {name}'],
sourceFilteredTitle: ['24 小时内最近被过滤的触发', 'Latest Triggers filtered in the last 24 hours'],
sourceDroppedTitle: ['24 小时内放弃发送的消息', 'Not sent in the last 24 hours'],
sourceDroppedHint: ['这些消息要发往的对话已无法接收,或来源已不再监听该对话,因此放弃发送。', 'Their conversation can no longer receive them, or the Source no longer listens to it, so they are not sent.'],
sourceStatusIntro: ['每个来源是否在运行、过去 24 小时到达和被过滤的触发,以及被过滤的原因。', 'Whether each Source runs, the Triggers that arrived and were filtered in the last 24 hours, and why they were filtered.'],
sourceReceivedLabel: ['24 小时到达', 'Arrived in 24 h'],
sourceFilteredLabel: ['被过滤', 'Filtered'],
sourceLatestLabel: ['最近', 'Latest'],
advanced: ['高级', 'Advanced'],
'sourceState.done': ['运行中', 'Running'],
'sourceState.ongoing': ['启动中', 'Starting'],
'sourceState.warning': ['待处理', 'Pending'],
'sourceState.error': ['出错', 'Failing'],
sourceOpenSettings: ['去设置', 'Open settings'],
'sourceState.setup': ['等待部署检查', 'Waiting for the deployment check'],
setupFixLink: ['去修正', 'Fix it'],
'openSettingsOf.deployment': ['去部署页修改', 'Change it on Deployment'],
// Trigger
loadEarlier: ['加载更早的触发', 'Load earlier Triggers'],
subscribedTickets: ['订阅此线程的工单', 'Tickets subscribed to this Thread'],
threadNotFound: ['找不到这个线程。', 'Thread not found.'],
threadsNone: ['没有符合条件的线程。', 'No matching Threads.'],
threadLatest: ['最近 {time}', 'Latest {time}'],
threadCreated: ['创建 {time}', 'Created {time}'],
threadEvaluating: ['评估进行中', 'Eval running'],
pollFailed: ['轮询失败:{error}', 'Polling failed: {error}'],
unsubscribe: ['取消订阅', 'Unsubscribe'],
unsubscribeTitle: ['取消订阅', 'Unsubscribe'],
unsubscribeConfirm: ['取消后,“{title}”的新触发不再扇出给工单,直到下一次接单或关联。', 'New Triggers in "{title}" will stop fanning out to Tickets until the next accept or attach.'],
unsubscribePending: ['已取消订阅,结果等待注入主 Session。', 'Unsubscribed; the receipt is waiting to reach the main Session.'],
openOriginal: ['打开原文', 'Open original'],
evaluatingBanner: ['评估进行中:{count} 条触发,{strength},{deadline} 到期。', 'Eval running: {count} Triggers, {strength}, due {deadline}.'],
noTriggers: ['没有保留的触发。', 'No retained Triggers.'],
dispositionQueued: ['已排队,等待评估', 'Queued for Eval'],
dispositionEvaluating: ['评估进行中', 'Eval running'],
dispositionFanout: ['扇出到 {count} 个工单', 'Fanned out to {count} Tickets'],
dispositionDelivered: ['已送达工单', 'Delivered to Ticket'],
dispositionDeliveredHint: ['有人在已有工单的线程上跟进时,消息直接送达工单的执行器,不经评估,也不产生决定。', 'A person\'s follow-up on a Thread with a Ticket goes straight to the Ticket\'s Executor, with no Eval and no Decision.'],
handedBack: ['“{ticket}”的执行器把这条触发交回评估:{reason}', 'The Executor of “{ticket}” handed it back for an Eval: {reason}'],
inputHandedBack: ['已交回评估:{reason}', 'Handed back for an Eval: {reason}'],
contextOnly: ['仅作上下文', 'Context only'],
contextOnlyHint: ['执行器关注这个线程只为了解情况:这里的消息会送达工单,但不带授权,也不会恢复已结束的工单。', 'The Executor follows this Thread only to stay informed: its messages reach the Ticket but grant nothing and resume no ended Ticket.'],
requeueAlready: ['这条触发已经在评估中。', 'This Trigger is already in an Eval.'],
andMore: ['等 {count} 个', ' and {count} more'],
newestFirst: ['最新在前', 'newest first'],
openTicket: ['查看工单', 'Open Ticket'],
tagFiltered: ['已过滤:{reason}', 'Filtered: {reason}'],
threadDormantShort: ['工单已结束', 'Tickets ended'],
threadPollFailed: ['轮询失败', 'Polling failed'],
threadQueued: ['排队 {count}', '{count} queued'],
threadSubscribed: ['已订阅', 'Subscribed'],
threadUnsubscribed: ['未订阅', 'Not subscribed'],
fanoutTo: ['扇出给', 'Fans out to'],
unsubscribeHint: ['取消订阅后,这个线程的新触发不再扇出给工单,直到下一次接单或关联。', 'After unsubscribing, new Triggers here stop fanning out to Tickets until the next accept or attach.'],
'threadFilter.subscribed': ['已被订阅', 'Subscribed'],
'threadFilter.evaluating': ['评估中', 'Evaluating'],
'threadFilter.recent': ['24 小时内有新触发', 'New Triggers in 24 h'],
'threadFilter.all': ['全部线程', 'All Threads'],
triggerIntro: ['触发按线程归组;线程决定它们扇出给哪些工单、由哪次评估处理。', 'Triggers grouped by Thread; the Thread decides which Tickets they fan out to and which Eval handles them.'],
threadDecisions: ['这个线程的决定 · {count}', 'Decisions in this Thread · {count}'],
// Eval
policyVersionHint: ['策略版本由接单规则、各来源上的策略和评估的接单模式决定;修改任何一项都会生成新版本,并通知进行中的工单。每个工单记下接单时的版本。', 'The rules, the Policy on each Source and the accept mode of Eval make up the Policy version; any change makes a new version and notifies open Tickets. Each Ticket records the version it was accepted under.'],
syncNeedsSave: ['请先保存或放弃修改,再同步。', 'Save or discard your changes before syncing.'],
acceptMode: ['接单模式', 'Accept mode'],
'modeOption.off': ['只处理明确的请求,不评估其他触发', 'Only explicit requests are handled; other Triggers are not evaluated'],
'modeOption.observe': ['评估其他触发并记录研判,但不接单', 'Other Triggers are evaluated and Assessments recorded, but nothing is accepted'],
'modeOption.auto': ['其他触发符合规则时接单', 'Other Triggers that match a rule are accepted'],
rulesHint: ['写明可以接什么、应忽略什么,也可以写明按这条规则接下的工单请谁审阅 PR。多条命中只接一单,有冲突或不明确时不接单。', 'State what to accept and what to ignore, and optionally who reviews the PRs of Tickets accepted under the rule. Several matches accept once; conflicts or ambiguity accept nothing.'],
addRule: ['添加规则', 'Add rule'],
rulesEmpty: ['暂无规则,不会主动接单。', 'No rules; nothing is accepted proactively.'],
ruleName: ['规则名称', 'Rule name'],
ruleInstruction: ['接单条件', 'Acceptance condition'],
ruleInstructionPlaceholder: ['例如:明确要求修正已有说明中的失效链接;不新增或改变产品承诺。', 'For example: explicit requests to fix broken links in existing docs; no new product promises.'],
ruleEnable: ['启用规则:{name}', 'Enable rule: {name}'],
newRule: ['新规则', 'New rule'],
duplicate: ['复制', 'Duplicate'],
copySuffix: [' 副本', ' copy'],
evalTimeout: ['单次评估时限 / 秒', 'Eval time limit / seconds'],
evalTimeoutHint: ['主 Session 读取上下文并研判。到期后记为未完成,后续触发重新评估。', 'The main Session reads context and assesses. When time runs out the Eval is unavailable and later Triggers are evaluated again.'],
evalIntro: ['评估决定一批触发是否成为工作:推断出的候选能否接单、评估时限和研判模型。', 'Eval decides whether a batch of Triggers becomes work: whether inferred candidates may be accepted, the time limit, and the assessor model.'],
evalSettings: ['评估设置', 'Eval settings'],
policyIntro: ['评估依据的规则:接单规则,以及各来源上谁能发起工作。修改会生成新的策略版本,并通知进行中的工单。', 'The rules Eval follows: the accept rules, and who may originate work on each Source. A change makes a new Policy version and notifies open Tickets.'],
assessorModel: ['研判模型', 'Assessor model'],
assessorModelHint: ['主 Session 的模型,负责研判和路由。保存后用于新建的主 Session,已有 Session 保持原选择。', 'Model of the main Session, which assesses and routes. Applies to a newly created main Session; existing Sessions keep their choice.'],
ruleLabel: ['规则', 'Rules'],
'decisionFilter.work': ['接单与续做', 'Accept and reopen'],
'decisionFilter.stop': ['停止', 'Stopped'],
'decisionFilter.ignore': ['忽略', 'Ignored'],
'decisionFilter.unavailable': ['未完成', 'Unavailable'],
'decisionFilter.all': ['全部', 'All'],
lastDayOnly: ['仅过去 24 小时到达的触发 ✕', 'Triggers from the last 24 hours only ✕'],
evalStatusIntro: ['评估按策略对触发做出的决定,每条写明理由。', 'The Decisions Eval made on Triggers under the Policy, each with its reason.'],
policyPerSource: ['在各来源上', 'On each Source'],
policyPerSourceHint: ['策略在每个来源上的部分:谁能通过这个来源发起工作,用这个来源自己的身份;不同来源之间不对应。要让智能体知道同一个人在各来源的账号,写在提示词里。', 'The Policy\'s part on each Source: who may originate work through it, in that Source\'s own identities, with no mapping between Sources. To tell the agents a person\'s account on each Source, write it in the prompts.'],
explicitRequest: ['明确的请求', 'Explicit request'],
admission: ['准入', 'Admission'],
admissionHint: ['每个接收范围里,谁的什么消息算明确的请求、推断的候选,或被忽略。行来自来源设置里的接收范围。计入策略版本。', 'For each receiving scope, whose messages are explicit requests, inferred candidates, or ignored. The rows come from the receiving scopes in the Source settings. Part of the Policy version.'],
admissionScope: ['接收范围', 'Receiving scope'],
admissionListed: ['名单内', 'On the list'],
admissionUnlisted: ['名单外', 'Not on the list'],
admissionAddressed: ['点名智能体', 'Addresses the agent'],
admissionUnaddressed: ['未 @', 'No mention'],
admissionNotReceived: ['这个范围收不到这类消息', 'This scope does not receive these messages'],
'admissionCell.listedUnaddressed': ['名单内 · 未 @', 'On the list · no mention'],
'admissionCell.unlistedAddressed': ['名单外 · 点名智能体', 'Not on the list · addresses the agent'],
'admissionCell.unlistedUnaddressed': ['名单外 · 未 @', 'Not on the list · no mention'],
'admissionValue.explicit': ['明确的请求', 'Explicit request'],
'admissionValue.inferred': ['推断的候选', 'Inferred candidate'],
'admissionValue.ignore': ['忽略', 'Ignore'],
admissionAnyoneWarning: ['这个范围里任何人点名智能体都能直接发起工作', 'Anyone here who addresses the agent can originate work directly'],
admissionFootnote: ['「推断的候选」按接单模式评估:模式为关闭时忽略。已有工单的线程里的跟进不看这张表。改成更弱的选项时,按这一格接下的进行中工单的授权失效。', 'Inferred candidates follow the accept mode and are ignored when it is off. Follow-ups on Threads that have Tickets do not use this table. Weakening a cell revokes the Mandates of open Tickets accepted under it.'],
syncDone: ['上次同步', 'Last synced'],
evalRecordsPaused: ['处理已暂停:新的触发会被记录,但不会被评估。', 'Processing is paused: new Triggers are recorded but not evaluated.'],
resumeWhere: ['在执行状态中恢复', 'Resume in the Execution status'],
// Execution
'outcome.completed': ['已完成', 'Completed'],
'outcome.merged': ['PR 已合并', 'Pull request merged'],
'outcome.closed': ['PR 已关闭(未合并)', 'Pull request closed unmerged'],
'outcome.dropped': ['无需处理', 'Nothing to do'],
'outcome.stopped': ['人工停止', 'Stopped by a person'],
'assignment.pending': ['待启动', 'Pending'],
'assignment.running': ['执行中', 'Running'],
'assignment.ended': ['已结束', 'Ended'],
'report.queued': ['排队', 'queued'],
'report.running': ['执行中', 'running'],
'report.progress': ['进展', 'progress'],
'report.waiting': ['等待', 'waiting'],
'report.ready': ['就绪', 'ready'],
'report.blocked': ['受阻', 'blocked'],
'report.failed': ['失败', 'failed'],
'report.dropped': ['无需处理', 'no action needed'],
'report.completed': ['已完成', 'completed'],
'report.merged': ['已合并', 'merged'],
'report.closed': ['PR 已关闭', 'PR closed'],
'report.stopped': ['已停止', 'stopped'],
'report.open': ['进行中', 'open'],
'input.trigger': ['触发', 'Trigger'],
'input.policy-changed': ['策略变更', 'Policy change'],
'input.reopen': ['续做', 'Reopened'],
'input.resumed': ['恢复:线程上有人发了新消息', 'Resumed by a new message on its thread'],
'input.text': ['dsh-superagent 说明', 'dsh-superagent note'],
'input.note': ['主 Session 的备注', 'Orchestrator note'],
attentionPrefix: ['待人工决定:', 'Attention: '],
stopConfirmTitle: ['停止工单', 'Stop Ticket'],
stopConfirm: ['停止“{title}”?当前派工结束,Session 和执行目录保留;停止收回授权,之后线程里的消息不再恢复它,要继续需要重新接单。', 'Stop "{title}"? Its current Assignment ends; its Session and directory stay. Stopping withdraws its Mandate: later messages on its Threads do not resume it, and continuing needs a new accept.'],
endedAt: ['{time} {outcome}:{reason}', '{time} {outcome}: {reason}'],
assignmentNumber: ['第 {number} 次派工', 'Assignment {number}'],
inputDelivered: ['已送达', 'Delivered'],
inputPausedHint: ['未送达:处理已暂停,恢复后送达', 'Undelivered: processing is paused; delivery resumes with it'],
inputWaitingHint: ['未送达:等待派工运行', 'Undelivered: waiting for the Assignment to run'],
inputRetryHint: ['未送达:会自动重试,直到送达', 'Undelivered: delivery is retried until it succeeds'],
deliveryFailedPrefix: ['送达失败:', 'Delivery failed: '],
subscribedThreads: ['订阅的线程', 'Subscribed Threads'],
answerIn: ['去{source}回答', 'Answer in {source}'],
ticketNotFound: ['找不到这个工单。', 'Ticket not found.'],
identifiers: ['标识', 'Identifiers'],
'basis.admission': ['准入', 'Admission'],
'basis.followup': ['线程内跟进', 'Follow-up in Thread'],
'basis.observation': ['接收全部消息的群', 'Chat receiving all messages'],
'basis.bot': ['名单内的机器人', 'Listed bot'],
'basis.mode': ['接单模式', 'Accept mode'],
'basis.rules': ['命中规则', 'Matched rules'],
'basis.legacyAuthority': ['旧版授权', 'Legacy authority'],
'legacy.explicit_mention': ['@ 智能体', 'Mention'],
'legacy.proactive_rule': ['主动规则', 'Proactive rule'],
'legacy.thread_followup': ['线程内跟进', 'Thread follow-up'],
ruleMatched: ['{rule} · 匹配:{reason}', '{rule} · matched: {reason}'],
ruleUnmatched: ['{rule} · 不匹配:{reason}', '{rule} · not matched: {reason}'],
directionLine: ['实施意图:{intent};修改依据:{basis};{design}', 'Implementation intent: {intent}; target: {basis}; {design}'],
intentYes: ['已明确', 'established'],
intentNo: ['未明确', 'not established'],
'targetBasis.specified': ['已明确目标', 'specified'],
'targetBasis.existing-standard': ['既有规范/已验证正确状态', 'existing standard or verified correct state'],
'targetBasis.undetermined': ['目标未定', 'undetermined'],
designNeeded: ['仍需产品/视觉设计决策', 'a product or design decision remains'],
designNotNeeded: ['无需新增设计决策', 'no new design decision'],
directionEvidence: ['方向证据:{evidence}', 'Evidence: {evidence}'],
maxWorkers: ['并行工单数', 'Concurrent Tickets'],
maxWorkersHint: ['超过并发上限的工单排队等待。', 'Tickets beyond the limit wait in a queue.'],
'basis.sender': ['发起人', 'Sender'],
'basis.addressed': ['点名方式', 'Addressed by'],
'addressed.mention': ['@ 智能体', 'Mention'],
'addressed.direct': ['私聊', 'Direct message'],
executorIntro: ['执行器执行派工:每个工单一个执行器 Session 和执行目录。', 'The Executor runs Assignments: one Executor Session and directory per Ticket.'],
executorModel: ['执行器模型', 'Executor model'],
executorModelHint: ['保存后用于新建的执行器 Session,已有 Session 保持原选择。留空继承 DSH 默认值。', 'Applies to new Executor Sessions; existing Sessions keep their choice. Leave empty to inherit the DSH default.'],
assignmentReportShort: ['报告:{state}', 'Report: {state}'],
assignmentSpan: ['{from} → {to}', '{from} → {to}'],
inputUndelivered: ['未送达', 'Undelivered'],
mandateDetails: ['授权详情', 'Mandate details'],
now: ['现在', 'now'],
stopHint: ['停止后当前派工结束,Session 和执行目录保留;停止收回授权,之后线程里的消息不再恢复它,要继续需要重新接单。', 'Stopping ends the current Assignment; its Session and directory stay. Stopping withdraws its Mandate: later messages on its Threads do not resume it, and continuing needs a new accept.'],
idleHint: ['执行器结束了当前回合,没有提出问题;这些工单订阅的线程收到新触发时继续。', 'The Executor ended its turn without asking anything; a new Trigger on a subscribed Thread resumes it.'],
'stage.answer': ['待回答', 'Awaiting answer'],
'stage.review': ['待验收', 'Awaiting review'],
'stage.blocked': ['待处理受阻', 'Blocked'],
'stage.failed': ['待处理失败', 'Failed'],
'stage.delivery': ['输入未送达', 'Input undelivered'],
'stage.queued': ['排队中', 'Queued'],
'stage.working': ['执行中', 'Working'],
'stage.idle': ['等待新触发', 'Waiting for a Trigger'],
deliveredInputs: ['已送达的输入 · {count}', 'Delivered Inputs · {count}'],
endedAtShort: ['{time} {outcome}', '{time} {outcome}'],
legacyAssignment: ['原始说明', 'Original brief'],
legacyScopeShort: ['未记录(旧版导入)', 'Not recorded (legacy import)'],
retry: ['重试', 'Retry'],
failedPrefix: ['失败:', 'Failed: '],
blockedPrefix: ['受阻:', 'Blocked: '],
retryConfirm: ['为“{title}”结束当前派工并重新派工?授权和订阅不变。', 'End the current Assignment of "{title}" and start a new one? Mandate and Subscriptions stay.'],
retryTitle: ['重试工单', 'Retry Ticket'],
undeliveredInputs: ['未送达的输入', 'Undelivered Inputs'],
executionStatusIntro: ['执行器的状态,以及按在等谁分组的工单。', 'The Executor\'s state, and the Tickets grouped by who they wait on.'],
ticketUndeliveredLabel: ['未送达', 'Undelivered'],
ticketMandateLabel: ['授权', 'Mandate'],
ticketActorLabel: ['发起', 'From'],
ticketUpdatedLabel: ['更新', 'Updated'],
executionDirectory: ['执行目录的根目录', 'Ticket directory root'],
executionDirectoryDefault: ['留空时用 {root}', 'Empty uses {root}'],
executionDirectoryEmpty: ['留空:默认目录', 'Empty: the default directory'],
openThread: ['打开 {source} 原文', 'Open on {source}'],
executionDirectoryHint: ['每个工单在这里有自己的目录,以工单短名命名;执行器 Session 在其中工作。这只按目录分开工单,不是安全边界。', 'Each Ticket gets its own directory here, named by its short name, where its Executor Session works. This separates Tickets by directory only; it is not a security boundary.'],
prepareCommand: ['准备命令', 'Prepare command'],
prepareCommandHint: ['新工单的目录建好前,在根目录下用 sh 运行一次,执行环境的变量是它的环境变量,例如用 git worktree 把仓库检出到 $DSH_SUPERAGENT_DIR。留空就是空目录。失败时工单显示失败,并附上命令的输出。', 'Runs once with sh in the root before a new Ticket\'s directory exists, with the execution environment\'s variables as its environment, for example to check a repository out to $DSH_SUPERAGENT_DIR with git worktree. Leave it empty for an empty directory. A failure fails the Ticket with the command\'s output.'],
prepareCommandEmpty: ['留空:空目录', 'Empty: an empty directory'],
blockedCommands: ['禁止调用的命令', 'Blocked commands'],
blockedCommandsHint: ['执行器 Session 调用这些命令名时直接失败,例如用你个人账号登录的 CLI。只拦按名字的调用,用绝对路径仍能运行,所以不是安全边界。gh、git、lark-cli 不能禁止。', 'Command names that fail when an Executor Session calls them, such as a CLI signed in to your own account. Only calls by name fail; an absolute path still runs, so this is not a security boundary. gh, git and lark-cli cannot be blocked.'],
blockedCommandsNone: ['以空格分隔;没有', 'Separated by spaces; none'],
environmentIntro: ['执行器和各来源向执行环境登记变量,每个有键、值和说明。准备命令以环境变量读取它们,执行器 Session 在指令里读到它们和说明。工单自己的值来自它的目录和接下它的触发,其余是部署的当前值;不含任何密钥。只能在管理页修改。', 'The Executor and the Sources register variables with the execution environment, each with a key, a value and a description. The prepare command reads them as environment variables, and the Executor Session reads them with their descriptions in its instructions. A Ticket\'s own values follow from its directory and the Trigger that started it; the others are the deployment\'s current values. None holds a credential. Only the management page can change these settings.'],
environmentVariables: ['可用的环境变量', 'Available variables'],
environmentPick: ['点击键名插入到准备命令。', 'Choose a key to insert it into the prepare command.'],
environmentKey: ['键', 'Key'],
environmentDescription: ['说明', 'Description'],
environmentOwner: ['注册者', 'Registered by'],
executorRunning: ['执行器运行中', 'Executor running'],
pauseProcessing: ['暂停处理', 'Pause processing'],
pauseProcessingConfirm: ['暂停后,来源继续记录触发,但不开始新的评估、不派工、不发送回复,直到恢复。', 'While paused, Sources keep recording Triggers, but no Evals or Assignments start and no replies are sent until processing resumes.'],
processingPaused: ['处理已暂停', 'Processing paused'],
'ticketFilter.open': ['进行中', 'Open'],
'ticketFilter.person': ['待处理', 'Pending'],
'ticketFilter.working': ['执行中', 'Working'],
'ticketFilter.idle': ['等待新触发', 'Waiting for a Trigger'],
'ticketFilter.ended': ['已结束', 'Ended'],
// Settings, drafts, and configuration history
policyVersionUnrecorded: ['最近的保存记录里没有策略版本 {version}:它来自更早的保存、首次启动时的设置或更早的数据。', 'The recent saves do not include Policy version {version}: an older save, the settings at the first start, or older data made it.'],
defaultModel: ['DSH 当前默认:{model}', 'DSH default: {model}'],
defaultModelUnavailable: ['DSH 默认模型暂不可用', 'DSH default model unavailable'],
modelProvider: ['服务商', 'Provider'],
modelName: ['模型', 'Model'],
modelEffort: ['推理强度(可选)', 'Reasoning effort (optional)'],
modelInherit: ['继承 DSH 默认值', 'Inherit the DSH default'],
modelEffortDefault: ['模型默认', 'Model default'],
modelCatalogError: ['无法加载模型建议,仍可填写已知的服务商和模型:{error}', 'Model suggestions are unavailable; known Provider and Model names still work: {error}'],
historyIntro: ['每次保存记一条;改变策略版本的保存(接单规则、各来源上的策略、接单模式)通知进行中的工单。', 'Each save is one entry; saves that change the Policy version (rules, the Policy on each Source, accept mode) notify open Tickets.'],
historyItem: ['第 {revision} 次保存 · {source}', 'Save {revision} · {source}'],
historyPolicyChanged: ['生成策略版本 {version}', 'New Policy version {version}'],
historyNoBaseline: ['上一个设置版本没有记录,无法比较。', 'The previous revision was not recorded; nothing to compare.'],
historyNoChanges: ['当前设置项没有变化。', 'No change to current settings.'],
historyNotified: ['因策略变更通知了 {count} 个进行中的工单:{titles}', 'Policy change notified {count} open Tickets: {titles}'],
historyEmpty: ['还没有记录的版本;下次保存后开始记录。', 'No revisions recorded yet; history starts with the next save.'],
'change.mode': ['接单模式:{from} → {to}', 'Accept mode: {from} → {to}'],
'change.timeout': ['评估时限:{from} → {to} 秒', 'Eval time limit: {from} → {to} s'],
'change.ruleAdded': ['新增规则:{name}', 'Rule added: {name}'],
'change.ruleRenamed': ['规则改名:{from} → {to}', 'Rule renamed: {from} → {to}'],
'change.ruleInstruction': ['规则条件修改:{name}', 'Rule condition changed: {name}'],
'change.ruleEnabled': ['规则启用:{name}', 'Rule enabled: {name}'],
'change.ruleDisabled': ['规则停用:{name}', 'Rule disabled: {name}'],
'change.ruleRemoved': ['删除规则:{name}', 'Rule removed: {name}'],
'change.paused': ['暂停处理', 'Processing paused'],
'change.resumed': ['恢复处理', 'Processing resumed'],
'change.maxWorkers': ['并行工单数:{from} → {to}', 'Concurrent Tickets: {from} → {to}'],
'change.executionDirectory': ['执行目录的根目录:{from} → {to}', 'Ticket directory root: {from} → {to}'],
'change.prepareCommand': ['准备命令', 'Prepare command'],
'change.blockedCommands': ['禁止调用的命令:{from} → {to}', 'Blocked commands: {from} → {to}'],
configHistory: ['配置历史', 'Configuration history'],
'change.evalModel': ['研判模型', 'Assessor model'],
'change.executorModel': ['执行器模型', 'Executor model'],
'change.sourceEnabled': ['启用来源:{source}', 'Source enabled: {source}'],
'change.sourceDisabled': ['停用来源:{source}', 'Source disabled: {source}'],
'change.sourceAdmission': ['{source} · 准入修改', '{source} · admission changed'],
'change.sourceField': ['{source} · {field}:{from} → {to}', '{source} · {field}: {from} → {to}'],
'change.sourceRowsAdded': ['{source} · {field} 新增:{items}', '{source} · {field} added: {items}'],
'change.sourceRowsRemoved': ['{source} · {field} 移除:{items}', '{source} · {field} removed: {items}'],
'change.sourceRowsChanged': ['{source} · {field} 修改:{items}', '{source} · {field} changed: {items}'],
draftRestored: ['未保存 · 已恢复草稿', 'Unsaved · draft restored'],
draftKept: ['未保存 · 草稿已保留', 'Unsaved · draft kept'],
draftFailed: ['无法保留草稿,请保存后再离开:{error}', 'Could not keep the draft; save before leaving: {error}'],
save: ['保存', 'Save'],
discard: ['放弃修改', 'Discard changes'],
saveConflict: ['设置已在别处修改,其中有你也改过的项;保存会以你的修改为准。', 'Settings changed elsewhere, including items you changed too; saving keeps your version of them.'],
saveMerged: ['设置已在别处修改,你的修改已合并到最新版本;请检查后保存。', 'Settings changed elsewhere; your changes are merged onto the latest version. Check them, then save.'],
saveRebasing: ['已在别处修改,正在读取最新版本…', 'Changed elsewhere; reading the latest version…'],
invalidSettings: ['这些字段无效:{fields}', 'Invalid fields: {fields}'],
'settingsGroup.source': ['来源', 'Sources'],
'settingsGroup.eval': ['评估', 'Eval'],
'settingsGroup.execution': ['执行', 'Execution'],
'settingsGroup.prompts': ['提示词', 'Prompts'],
'settingsGroup.deployment': ['部署', 'Deployment'],
unsetValue: ['未设置', 'not set'],
// Prompts
promptChanges: ['{count} 处修改', '{count} changes'],
unsaved: ['未保存', 'Unsaved'],
promptsDraftVersion: ['未保存 · 基于版本 {revision}', 'Unsaved · based on version {revision}'],
'promptPart.runtime/admission': ['主 Session 接单约束', 'Main Session accept constraints'],
'promptPart.runtime/policy': ['策略与启用的规则', 'Policy and enabled rules'],
'promptPart.runtime/handoff/orchestrator': ['工单交付与人工确认(主 Session)', 'Ticket handoff and human confirmation (main Session)'],
'promptPart.runtime/handoff/worker': ['工单交付与人工确认(执行器)', 'Ticket handoff and human confirmation (Executor)'],
'promptPart.runtime/policy/none': ['策略(没有启用的规则时)', 'Policy (when no rule is enabled)'],
'promptPart.skill/feishu': ['飞书技能', 'Feishu skill'],
'promptPart.skill/github': ['GitHub 技能', 'GitHub skill'],
'promptPart.runtime/environment': ['执行环境', 'Execution environment'],
promptViewEdit: ['编辑', 'Edit'],
promptViewFull: ['完整提示词', 'Full prompt'],
promptViewHistory: ['历史', 'History'],
promptSections: ['提示词段落', 'Prompt sections'],
promptTeamGroup: ['团队约定', 'Team agreements'],
promptSkillsGroup: ['技能', 'Skills'],
'promptPartHint.communication': ['何时通知人、消息的写法、GitHub 首行声明、Review 的回复与 review bot', 'When to notify people, how messages read, the GitHub first line, review replies and review bots'],
'promptPartHint.scope': ['工单何时继续、何时暂停并交草稿', 'When a Ticket goes on, and when it stops with a draft'],
'promptPartHint.delivery': ['PR 证据、自动合并条件、提交作者', 'PR evidence, the auto-merge condition, the commit author'],
'promptReadBy.both': ['主 Session 和执行器 Session 都会读到。', 'The main Session and Executor Sessions read it.'],
'promptReadBy.skill': ['Session 需要时按名字加载。', 'Sessions load it by name when they need it.'],
'promptReadBy.orchestrator': ['只有主 Session 会读到。', 'Only the main Session reads it.'],
'promptReadBy.worker': ['只有执行器 Session 会读到。', 'Only Executor Sessions read it.'],
promptBuiltInGroup: ['内置段落', 'Built-in parts'],
promptTemplateHint: ['这是模板:保留占位符 {placeholders},由系统填入内容。', 'A template: keep the placeholders {placeholders}, which the system fills in.'],
promptDefaultUpdated: ['默认内容已更新', 'Default updated'],
promptDefaultUpdatedHint: ['升级改了这一段的默认内容,你的文本保持不变。', 'An upgrade changed the default of this part; your text stays as it is.'],
promptDefaultUpdatedKnown: ['下面是默认内容的变化。', 'Below is how the default changed.'],
promptDefaultUpdatedUnknown: ['系统没有记录你编辑时的默认内容;下面是你的文本与新默认内容的对比。',
'The default you edited from was not recorded; below, your text against the new default.'],
promptRemovedParts: ['当前插件版本已没有这些段落,你为它们写的文本不再使用,下次保存时移除:{parts}',
'This version no longer has these parts; your text for them is unused and goes at the next save: {parts}'],
promptKeepMine: ['保留我的文本', 'Keep my text'],
promptTakeDefault: ['改用新的默认内容', 'Use the new default'],
promptFullState: ['共 {count} 段 · {chars} 字符 · {state}', '{count} sections · {chars} characters · {state}'],
promptCopyAll: ['复制全文', 'Copy all'],
promptChanged: ['已改', 'Changed'],
promptCompare: ['比较对象', 'Compare with'],
promptCompareSaved: ['与已保存比较', 'Against saved'],
promptCompareDefault: ['与默认比较', 'Against defaults'],
promptBuiltInFolded: ['按当前设置生成,不参与比较。', 'Generated from the current settings; not compared.'],
promptSameAsSaved: ['与已保存相同。', 'Same as saved.'],
promptSameLines: ['… 相同的 {count} 行 …', '… {count} unchanged lines …'],
copied: ['已复制', 'Copied'],
promptPartTeam: ['团队约定', 'Team agreement'],
promptPartFixed: ['内置', 'Built in'],
promptPartGenerated: ['内置 · 按当前设置生成', 'Built in · from the current settings'],
'promptPart.communication': ['沟通方式', 'Communication'],
'promptPart.scope': ['工单范围', 'Ticket scope'],
'promptPart.delivery': ['交付要求', 'Delivery requirements'],
'promptPart.legacy': ['早期版本的完整配置(载入后是内置文本加它的技能)', 'A complete configuration of an earlier version (loading it gives the built-in text and its skills)'],
'promptPart.runtime/shared': ['共享约定', 'Shared rules'],
'promptPart.runtime/orchestrator': ['主 Session 角色', 'Main Session role'],
'promptPart.runtime/worker': ['执行器角色', 'Executor role'],
'promptPart.runtime/subscriptions': ['订阅', 'Subscriptions'],
'promptPart.runtime/replies': ['回复与确认', 'Replies and acknowledgements'],
'promptPart.runtime/dispatch': ['路由', 'Routing'],
'promptPart.runtime/work': ['执行', 'Execution'],
promptViews: ['查看方式', 'View'],
promptBody: ['Markdown 正文', 'Markdown'],
promptResetSection: ['恢复此段默认内容', 'Restore this section default'],
promptPreviewTarget: ['预览目标', 'Preview target'],
promptPreviewDraft: ['未保存草稿', 'unsaved draft'],
promptPreviewSaved: ['版本 {revision}', 'version {revision}'],
promptEditSource: ['编辑此段', 'Edit section'],
promptHistoryHint: ['载入会替换整套草稿:三个团队段落和团队技能;保存后才生效。', 'Loading replaces the whole draft: the three team sections and the team skills; nothing changes until you save.'],
promptHistoryItem: ['版本 {revision} · {time} · {source}', 'Version {revision} · {time} · {source}'],
promptHistoryInitial: ['初始版本', 'initial'],
promptHistoryChanged: ['修改段:{parts}', 'Changed: {parts}'],
promptHistoryNone: ['初始版本或无内容变化', 'Initial version or no content change'],
promptOlder: ['更早版本', 'Older versions'],
promptRestore: ['将这个版本载入草稿', 'Load this version into the draft'],
promptDefaults: ['将整套默认内容载入草稿', 'Load all defaults into the draft'],
promptDraftFromHistory: ['整套草稿来自历史版本 {revision};保存将创建新版本', 'Draft loaded from version {revision}; saving creates a new version'],
promptDraftFromDefaults: ['整套草稿来自当前插件默认值', 'Draft loaded from the current plugin defaults'],
promptDraftSectionReset: ['已恢复此段默认内容:{part}', 'Restored the default of: {part}'],
promptAddSkill: ['添加自定义技能', 'Add a custom skill'],
promptSkillName: ['名称,例如 testing', 'Name, e.g. testing'],
promptAddSkillAction: ['添加到草稿', 'Add to draft'],
promptSkillNameInvalid: ['技能名称须唯一,仅使用小写字母、数字和连字符,以字母开头。', 'Skill names must be unique, start with a letter, and use lowercase letters, digits and hyphens.'],
promptConflict: ['提示词已被修改到版本 {revision}。已保留你的草稿;请比较后重新保存。', 'Prompts changed to version {revision}. Your draft is kept; compare and save again.'],
promptConflictParts: ['提示词已被修改到版本 {revision},其中 {parts} 你也改过;保存会以你的版本为准。', 'Prompts changed to version {revision}, including {parts}, which you changed too; saving keeps your version.'],
promptSavedPending: ['已保存;通知等待注入主 Session。', 'Saved; the notice is waiting to reach the main Session.'],
promptSessions: ['Session 最近使用的版本', 'Versions used by Sessions'],
promptSessionItem: ['{session}:版本 {revision}', '{session}: version {revision}'],
promptNoSessions: ['暂无模型请求', 'No model requests yet'],
'promptRole.orchestrator': ['主 Session', 'Main Session'],
'promptRole.worker': ['执行器 Session', 'Executor Session'],
// Deployment
deploymentIntro: ['这台机器上的 dsh-superagent 设置,存放在 DSH 配置文件的 dsh-superagent 条目里;保存后立即生效,不会重启 dsh-superagent。', 'dsh-superagent\'s settings on this machine, kept in the dsh-superagent entry of the DSH configuration; a saved change applies at once, without restarting dsh-superagent.'],
deploymentUnavailable: ['dsh-superagent 启动完成后才能修改这些值。', 'These values can be changed once dsh-superagent has started.'],
deploymentDerived: ['仓库与账号', 'Repository and accounts'],
deploymentDerivedHint: ['由来源设置里的仓库和 CLI 得出。', 'Derived from the repository and the CLIs in the Source settings.'],
deploymentRepository: ['仓库', 'Repository'],
deploymentAgent: ['智能体账号', 'Agent account'],
deploymentFeishu: ['飞书机器人', 'Feishu bot'],
deploymentFeishuNone: ['未设置', 'Not set'],
deploymentAccountsWhere: ['账号在 dsh-superagent 面板的来源设置里修改。', 'Accounts are changed in the Source settings of the dsh-superagent panel.'],
deploymentMachine: ['本机设置', 'This machine'],
deploymentStateDir: ['状态目录', 'State directory'],
deploymentStateDirHint: ['数据库、锁、执行器的命令和智能体的 git 配置所在目录,只能在 DSH 配置文件里修改。', 'Holds the database, locks, the Executor\'s commands and the agent\'s git configuration; change it only in the DSH configuration file.'],
deploymentLimits: ['上限', 'Limits'],
deploymentLimitsHint: ['本机资源的上限:保存的提示词最长多少字,评估读取线程上下文时最多读几页、每次读取最多等多久。', 'Resource limits on this machine: how long a saved prompt may be, and how many Thread pages Eval may read and how long one read may take.'],
deploymentPromptMaxChars: ['提示词配置的最大字符数', 'Largest prompt configuration / characters'],
deploymentContextPages: ['一次研判可读的线程页数', 'Thread pages one Assessment may read'],
deploymentContextTimeout: ['一次上下文读取的时限 / 毫秒', 'Time limit of one context read / ms'],
deploymentRefused: ['DSH 拒绝了这次修改:设置可能已在别处修改。放弃修改后可看到当前值。', 'DSH refused the change; the settings may have changed elsewhere. Discard to see the current values.'],
deploymentNoForms: ['这个 DSH 版本不提供配置表单,这些值只能在 DSH 配置文件的 dsh-superagent 条目里修改。', 'This DSH version has no configuration forms; change these values in the dsh-superagent entry of the DSH configuration file.'],
deploymentReadOnly: ['只有本机上的浏览器可以修改这些值。', 'Only a browser on this machine can change these values.'],
setupCheck: ['重新检查', 'Check again'],
setupChecking: ['正在重新检查,dsh-superagent 正在重启', 'Checking again; dsh-superagent is restarting'],
setupCheckInterrupts: ['重新检查会重启 dsh-superagent:{count} 个进行中的派工会中断,并带恢复说明重新开始。', 'Checking again restarts dsh-superagent: {count} running Assignments stop and start again with a recovery note.'],
// Reason codes; legacy English sentence reasons map to these in text.ts
'reason.not_human': ['自动消息', 'Automated message'],
'reason.not_a_member': ['发送者不在这个来源的名单里', 'Sender is not on this Source\'s list'],
'reason.no_mention': ['没有点名智能体,且这个来源不接收其余消息', 'Does not address the agent, and this Source does not receive the rest'],
'reason.admission_ignored': ['准入设为忽略', 'Admission set to ignore'],
'reason.chat_not_allowed': ['群不在监听的群里', 'Chat is not a listened chat'],
'reason.direct_messages_not_allowed': ['私聊未开放', 'Direct messages are off'],
'reason.observation_only': ['仅观察的群(旧版过滤)', 'Observe-only chat (legacy filter)'],
'reason.untracked_source': ['线程未被订阅', 'Thread not subscribed'],
'reason.issue_assigned': ['Issue 已有负责人', 'Issue has an assignee'],
'reason.issue_closed': ['Issue 已关闭', 'Issue is closed'],
'reason.issue_has_pull_request': ['Issue 已有关联 PR', 'Issue has a linked PR'],
'reason.issue_unclaimed_less_than_day': ['Issue 无人认领未满一天', 'Issue unclaimed for less than a day'],
'reason.task_ended': ['工单已结束', 'Ticket ended'],
'reason.task_paused': ['工单已暂停', 'Ticket paused'],
'reason.subscription_inactive': ['订阅未生效', 'Subscription inactive'],
'reason.subscription_removed': ['订阅已移除', 'Subscription removed'],
'reason.issue_awaiting_eligibility': ['等待 Issue 满足资格', 'Waiting for Issue eligibility'],
'reason.timeout': ['评估超时未决定', 'Eval timed out'],
'reason.policyChanged': ['评估期间策略已变更', 'Policy changed during the Eval'],
'reason.noAdmissible': ['没有可准入的触发', 'No admissible Trigger'],
'reason.startedTicket': ['已经开过工单 {ticket}', 'Already started Ticket {ticket}'],
'reason.acceptedBefore': ['触发 {trigger} 之前已接单', 'Trigger {trigger} was accepted before'],
'reason.routed': ['已转给工单 {ticket}', 'Routed to Ticket {ticket}'],
'reason.stopUnknown': ['要停止的工单不存在或已结束', 'The Ticket to stop is unknown or ended'],
'reason.stopNotExplicit': ['停止需要名单里的人明确要求', 'Stopping needs an explicit request from someone on the list'],
'reason.directionUnsettled': ['实现意图或目标未确定,或还要产品或设计决定', 'Intent or target not settled, or a product or design decision is still open'],
'reason.noRuleMatched': ['没有启用的准入规则匹配', 'No enabled admission rule matched'],
'reason.ignoredFromCard': ['仅凭候选卡片忽略,未经规则研判', 'Ignored from its card, without a rule assessment'],
'reason.observed': ['观察模式:本会接单({text})', 'Observe mode: would accept ({text})'],
'reason.explicitRouted': ['名单里的人明确请求,由主 Session 接单', 'Explicit request from someone on the list, accepted by the main Session'],
'reason.legacyImport': ['从旧版工单记录导入', 'Imported from a legacy Ticket record'],
'reason.channelGone': ['对话已无法接收消息', 'The conversation can no longer receive messages'],
'reason.channelIgnored': ['来源已不再监听这个对话', 'The Source no longer listens to this conversation'],
'reason.hostRestarted': ['dsh-superagent 重启', 'dsh-superagent restarted'],
'reason.retried': ['人工重试', 'Retried by a person'],
'reason.completed': ['已完成', 'Completed'],
'reason.dropped': ['无需处理,已关闭', 'No action needed; closed'],
'reason.merged': ['PR 已合并', 'PR merged'],
'reason.closed': ['PR 已关闭', 'PR closed'],
'reason.stopped': ['人工停止', 'Stopped by a human'],
'reason.revoked': ['授权已失效', 'Mandate no longer valid'],
'reason.humanStop': ['有人要求停止', 'Someone asked to stop'],
'reason.forwarded': ['已扇出给该线程的工单', 'Fanned out to the Thread\'s Ticket'],
'reason.senderNotMember': ['发送者不在这个来源的名单里', 'Sender is not on this Source\'s list'],
'reason.source_disabled': ['来源已停用', 'Source disabled'],
'reason.issue_sender_or_admission_disabled': ['Issue 发起人不在名单或主动接单已关闭', 'Issue sender not on the list, or proactive accept off'],
'reason.source_not_installed': ['来源插件未加载', 'Source plugin not loaded'],
'reason.issue_unclaimed_less_than_wait': ['Issue 无人认领未满等待时长', 'Issue unclaimed for less than the wait'],
// Glossary
glossary: ['术语表', 'Glossary'],
glossaryIntro: ['界面只显示一种语言;文档、代码和工具使用英文术语。', 'The interface shows one language; documents, code and tools use the English terms.'],
glossaryChinese: ['中文', '中文'],
glossaryEnglish: ['English', 'English'],
glossaryMeaning: ['含义', 'Meaning'],
'term.source': ['来源', 'Source'],
'term.trigger': ['触发', 'Trigger'],
'term.thread': ['线程', 'Thread'],
'term.correlation': ['关联', 'Correlation'],
'term.channel': ['渠道', 'Channel'],
'term.policy': ['策略', 'Policy'],
'term.eval': ['评估', 'Eval'],
'term.gate': ['准入', 'Gate'],
'term.assessment': ['研判', 'Assessment'],
'term.decision': ['决定', 'Decision'],
'term.mandate': ['授权', 'Mandate'],
'term.ticket': ['工单', 'Ticket'],
'term.assignment': ['派工', 'Assignment'],
'term.subscription': ['订阅', 'Subscription'],
'term.fanout': ['扇出', 'Fan-out'],
'term.executor': ['执行器', 'Executor'],
'term.report': ['报告', 'Report'],
'term.attention': ['待人工决定', 'Attention'],
'term.disposition': ['去向', 'Disposition'],
'term.input': ['输入', 'Input'],
'term.scope': ['范围', 'Scope'],
'term.strength': ['强度', 'Strength'],
'term.agent': ['智能体', 'Agent'],
'term.mainSession': ['主 Session', 'Main Session'],
'term.executorSession': ['执行器 Session', 'Executor Session'],
'term.policyVersion': ['策略版本', 'Policy version'],
'meaning.agent': ['以 dsh-superagent 身份工作的虚拟同事:通过 GitHub 账号、飞书机器人等身份在来源上行动', 'The virtual colleague dsh-superagent runs: it acts on the Sources through its identities, such as a GitHub account or a Feishu bot'],
'meaning.mainSession': ['评估触发、接单派工并回复的 DSH Session;提示词里称 orchestrator', 'The DSH Session that evaluates Triggers, accepts and dispatches work, and replies; prompts call it the orchestrator'],
'meaning.executorSession': ['执行器为一个工单运行的 DSH Session;提示词里称 worker', 'The DSH Session the Executor runs for one Ticket; prompts call it the worker'],
'meaning.policyVersion': ['接单规则、各来源上的策略和接单模式的一个组合的标识;每个工单记下接单时的版本', 'The identifier of one combination of rules, the Policy on each Source and accept mode; each Ticket records the version it was accepted under'],
'glossaryGroup.roles': ['角色', 'Roles'],
'meaning.source': ['产生触发的事件流;由插件提供的类型加一份配置(是否运行、监听什么)', 'An event stream that produces Triggers; a plugin-provided kind plus one configuration (whether it runs, what it listens to)'],
'meaning.trigger': ['来源产生的单个不可变事件', 'One immutable event produced by a Source'],
'meaning.thread': ['按时间排列的触发;同一时间只有一个评估', 'Triggers in time order; one Eval at a time'],
'meaning.correlation': ['一个触发同属多个线程时线程之间的关系,只用来补充上下文', 'Relation between Threads that share a Trigger; context only'],
'meaning.channel': ['线程的只写端,用于回复', 'The write-only side of a Thread, for replies'],
'meaning.policy': ['版本化的接单规则和各来源上的名单;决定谁能发起工作、接什么', 'Versioned rules and each Source\'s list; decides who may originate work and what is accepted'],
'meaning.eval': ['对一批触发做出决定的过程', 'The process that turns a batch of Triggers into a Decision'],
'meaning.gate': ['评估的第一层:谁能发起工作、强度多少', 'First Eval layer: who may originate work, and how strongly'],
'meaning.assessment': ['评估中的模型语义判断', 'Eval step where the model judges meaning'],
'meaning.decision': ['评估的结果', 'The result of an Eval'],
'meaning.mandate': ['接单时产出的授权:强度、范围、依据的策略版本', 'Authorization produced by accept: strength, scope and Policy version'],
'meaning.ticket': ['被授权的工作单位', 'An authorized unit of work'],
'meaning.assignment': ['工单与一个执行器 Session 的绑定', 'Binding of a Ticket to one Executor Session'],
'meaning.subscription': ['工单与线程的关系;主 Session 只在消息明确指向某个工单时才把线程关联给它,执行器可以退订与本工单无关的线程', 'Relation between a Ticket and a Thread; the main Session attaches a Thread only when its message points at the Ticket, and the Executor can drop a Thread unrelated to its Ticket'],
'meaning.fanout': ['订阅线程上的触发作为上下文送达工单,不带授权', 'Triggers on a subscribed Thread reach the Ticket as context, without authority'],
'meaning.executor': ['执行派工的一方:每个工单一个执行器 Session 和执行目录', 'What runs Assignments: one Executor Session and directory per Ticket'],
'meaning.report': ['派工向工单回报的状态', 'State an Assignment reports to its Ticket'],
'meaning.attention': ['工单上等待人回答的问题', 'A question on a Ticket waiting for a human'],
'meaning.disposition': ['一个触发被过滤、评估、扇出的记录', 'Where a Trigger went: filtered, evaluated, fanned out'],
'meaning.input': ['送达工单的上下文(扇出的触发、策略变更、恢复、文本)', 'Context delivered to a Ticket (fanned-out Triggers, Policy changes, resumes, text)'],
'meaning.scope': ['授权允许的工作范围', 'The work a Mandate allows'],
'meaning.strength': ['授权与评估的依据强度', 'How strong the grounds of a Mandate or Eval are'],
legendTitle: ['状态颜色', 'Status colors'],
'legend.done': ['完成、就绪或已接单', 'Done, ready or accepted'],
'legend.ongoing': ['执行中或评估中', 'Running or evaluating'],
'legend.warning': ['等待、受阻或需要人', 'Waiting, blocked or needs a person'],
'legend.error': ['失败或异常', 'Failed or failing'],
'legend.idle': ['已结束、已停用或无后续', 'Ended, disabled or no follow-up'],
'term.environment': ['执行环境', 'Execution environment'],
'meaning.environment': ['每个工单的执行器 Session 和准备命令运行的环境:执行器和各来源登记的变量,每个有键、值和说明', 'Where a Ticket\'s Executor Session and prepare command run: the variables the Executor and the Sources register, each with a key, a value and a description'],
// User and agent error codes; English reuses the host's own text read by agents
'userError.unknownTicket': ['找不到这个工单。', USER_ERRORS.unknownTicket[1]],
'userError.unknownProblem': ['找不到这个未完成的评估。', USER_ERRORS.unknownProblem[1]],
'userError.unknownTrigger': ['找不到这个触发。', USER_ERRORS.unknownTrigger[1]],
'userError.unknownAssignment': ['找不到这个派工。', USER_ERRORS.unknownAssignment[1]],
'userError.unknownBlock': ['没有这个设置块:{block}', USER_ERRORS.unknownBlock[1]],
'userError.unknownPromptRevision': ['没有提示词版本 {revision}。', USER_ERRORS.unknownPromptRevision[1]],
'userError.unknownPromptPart': ['没有内置提示词段落 {part}。', USER_ERRORS.unknownPromptPart[1]],
'userError.ticketEnded': ['工单已结束。', USER_ERRORS.ticketEnded[1]],
'userError.assignmentEnded': ['这个派工已结束,工单已由较新的派工接手。', USER_ERRORS.assignmentEnded[1]],
'userError.evalFinished': ['评估 {eval} 已结束,或已被之后的评估取代;请对这个触发当前的评估做决定。', USER_ERRORS.evalFinished[1]],
'userError.notAdmissible': ['这个触发未通过准入:{reason}', USER_ERRORS.notAdmissible[1]],
'userError.notExplicit': ['通过 orchestrator_route 接单只用于名单内发送者的明确请求;主动接单的候选请用 orchestrator_eval 和 orchestrator_eval_decide 研判。', USER_ERRORS.notExplicit[1]],
'userError.ticketStopped': ['有人停止了这个工单;新工作需要通过 orchestrator_route 接单。', USER_ERRORS.ticketStopped[1]],
'userError.mandateRevoked': ['按当前策略,这个工单的授权已失效;新工作需要通过 orchestrator_route 接单。', USER_ERRORS.mandateRevoked[1]],
'userError.notRetryable': ['只有进行中的工单可以重试,而且仅当执行器最近一次报告为失败或受阻且此后没有人发过消息,或者向执行器送达输入失败时才可以。', USER_ERRORS.notRetryable[1]],
'userError.sourceThread': ['这是工单开始时所在的线程,会保持订阅。', USER_ERRORS.sourceThread[1]],
'userError.followedThread': ['这是工单自己的线程,例如它的 PR,会保持订阅。', USER_ERRORS.followedThread[1]],
'userError.notFollowing': ['这个工单没有订阅那个线程。', USER_ERRORS.notFollowing[1]],
'userError.questionWithResult': ['给人的问题不能同时是就绪的结果或回答,请分开报告。', USER_ERRORS.questionWithResult[1]],
'userError.askerWithoutQuestion': ['提出问题的消息需要附上它提出的问题。', USER_ERRORS.askerWithoutQuestion[1]],
'userError.notAsker': ['问题必须指明提出它的那条人发的消息,且那条消息已送达这个工单。', USER_ERRORS.notAsker[1]],
'userError.notAnswerable': ['回答必须指明它所回答的、由人提出的问题,且这个问题已送达这个工单。', USER_ERRORS.notAnswerable[1]],
'userError.ackEnded': ['工单已结束,不要确认过去的请求。', USER_ERRORS.ackEnded[1]],
'userError.notReached': ['这个触发不属于这个执行器。', USER_ERRORS.notReached[1]],
'userError.handedBack': ['这个工单已经交回过这个触发。', USER_ERRORS.handedBack[1]],
'userError.handedBackHere': ['这个工单的执行器已把这个触发交回,认为它超出本工单的范围:请把它作为新工作接单、关联到另一个工单,或忽略它。', USER_ERRORS.handedBackHere[1]],
'userError.workerDecides': ['这条消息已通过所在线程送达工单 {tickets}:由工单的执行器判断它是否属于这个工单,不属于的会被交回,之后作为候选到达。只有停止例外,用 orchestrator_route 并把 kind 设为 stop。', USER_ERRORS.workerDecides[1]],
'userError.ackNoChannel': ['确认需要一条已派给这个执行器、由人发出的原始消息。', USER_ERRORS.ackNoChannel[1]],
'userError.ackNotPerson': ['请使用最初那条人发的触发,而不是机器人、CI 或执行器的报告。', USER_ERRORS.ackNotPerson[1]],
'userError.notReady': ['工单还不能交付。进展只在内部保留,等待经过验证的就绪报告;不要把进展当作回答,也不要通过其他渠道发送。', USER_ERRORS.notReady[1]],
'userError.notAttention': ['待人工决定的消息需要在 human_action 中写明工单当前待人工决定的问题。日常未完成的工作只在内部保留。', USER_ERRORS.notAttention[1]],
'userError.notQuestion': ['回答必须针对最初由人提出的问题,而不是执行器报告或自动触发。', USER_ERRORS.notQuestion[1]],
'userError.noAnswer': ['执行器还没有回答这条人发的触发。请等待执行器的报告,或用 orchestrator_ticket_request_status 请求一份(它只对处于等待状态的执行器起作用);普通进展不能当作回答。', USER_ERRORS.noAnswer[1]],
'userError.noChannel': ['这个工单或触发没有可以回复的渠道。', USER_ERRORS.noChannel[1]],
'userError.panelOnlyEnvironment': ['执行环境(执行目录、准备命令、禁止调用的命令)只能在管理页修改。', USER_ERRORS.panelOnlyEnvironment[1]],
'userError.panelOnlyAccounts': ['部署检查读取的来源字段(例如账号 CLI)只能在管理页修改。', USER_ERRORS.panelOnlyAccounts[1]],
'userError.setupComplete': ['部署检查已通过。', USER_ERRORS.setupComplete[1]],
'userError.modelUnavailable': ['{block} 的模型不可用:{error}', USER_ERRORS.modelUnavailable[1]],
'userError.promptTooLong': ['提示词配置超过 {limit} 个字符。', USER_ERRORS.promptTooLong[1]],
'userError.promptPlaceholders': ['「{part}」的模板必须保留占位符 {placeholders},由系统填入内容。', USER_ERRORS.promptPlaceholders[1]],
'userError.promptPartEmpty': ['「{part}」段落不能为空;要沿用内置文本,请恢复此段默认内容。', USER_ERRORS.promptPartEmpty[1]],
'userError.sourceNotInstalled': ['{source} 来源的插件没有安装。', USER_ERRORS.sourceNotInstalled[1]],
'userError.noLabels': ['这个来源没有可以刷新的名称。', USER_ERRORS.noLabels[1]],
'userError.nothingToSync': ['{source} 来源上的策略没有指定从哪里同步,或者这个来源已关闭或在等待部署检查。', USER_ERRORS.nothingToSync[1]],
// Setup problems and health codes; English reuses the host's own text read by the log and main Session
'setup.repositoryUnset': ['GitHub 来源没有设置监听的仓库。', SETUP_PROBLEMS.repositoryUnset[1]],
'setup.foreignFile': ['{file} 不是 dsh-superagent 写入的文件;移走它,或换一个状态目录。', SETUP_PROBLEMS.foreignFile[1]],
'setup.gitTooOld': ['git 没有读取 dsh-superagent 为 github.com 写的凭据配置;需要 git 2.32 或更新版本。', SETUP_PROBLEMS.gitTooOld[1]],
'setup.environmentFailed': ['准备智能体的运行环境失败。', SETUP_PROBLEMS.environmentFailed[1]],
'setup.agentCliUnset': ['没有设置智能体的 GitHub CLI。', SETUP_PROBLEMS.agentCliUnset[1]],
'setup.agentCliMissing': ['找不到智能体的 GitHub CLI。', SETUP_PROBLEMS.agentCliMissing[1]],
'setup.agentCliSignedOut': ['智能体的 GitHub CLI 读不到它的账号。', SETUP_PROBLEMS.agentCliSignedOut[1]],
'setup.agentCliNoAccount': ['智能体的 GitHub CLI 没有报告 GitHub 账号。', SETUP_PROBLEMS.agentCliNoAccount[1]],
'setup.repositoryUnreadable': ['@{account} 读不到 {repository}。', SETUP_PROBLEMS.repositoryUnreadable[1]],
'setup.repositoryUnreported': ['智能体的 GitHub CLI 没有返回 {repository}。', SETUP_PROBLEMS.repositoryUnreported[1]],
'setup.repositoryReadOnly': ['@{account} 没有 {repository} 的推送权限。', SETUP_PROBLEMS.repositoryReadOnly[1]],
'setup.feishuCliFailed': ['机器人的 lark-cli 不可用。', SETUP_PROBLEMS.feishuCliFailed[1]],
'setup.feishuNoApp': ['机器人的 lark-cli 的 auth status 没有报告应用。', SETUP_PROBLEMS.feishuNoApp[1]],
'setup.feishuBotNotReady': ['应用 {app} 的机器人身份状态是 {status};用 lark-cli 配置应用密钥。', SETUP_PROBLEMS.feishuBotNotReady[1]],
'setup.feishuUserIdentity': ['机器人的 lark-cli 允许用户身份(strict mode 为 {mode});按 docs/006-deployment.md 给机器人一份 strict mode 为 bot 的单独配置。', SETUP_PROBLEMS.feishuUserIdentity[1]],
'setup.feishuNoBot': ['飞书机器人接口没有返回机器人的 open_id。', SETUP_PROBLEMS.feishuNoBot[1]],
'healthCode.setupPending': ['等待部署检查', HEALTH_TEXT.setupPending],
'healthCode.sourceOff': ['已关闭', HEALTH_TEXT.sourceOff],
'healthCode.feishuCliUnset': ['来源已打开,还没有设置机器人的 lark-cli', HEALTH_TEXT.feishuCliUnset],
'healthCode.feishuBotMissing': ['等待飞书机器人', HEALTH_TEXT.feishuBotMissing],
'healthCode.pollFailures': ['连续 {count} 次轮询失败,最近一次:{error}', HEALTH_TEXT.pollFailures],
} as const satisfies Record<string, readonly [string, string]>
export type DshSuperagentKey = keyof typeof TEXT
const language = (index: 0 | 1) => Object.fromEntries(Object.entries(TEXT).map(([key, pair]) => [key, pair[index]])) as Record<DshSuperagentKey, string>
export const zh = language(0), en = language(1)
/** Glossary terms grouped by stage flow after the acting roles; each key maps to `term.<key>` and `meaning.<key>`. */
export const GLOSSARY = {
roles: ['agent', 'mainSession', 'executorSession'],
source: ['source', 'channel'],
trigger: ['trigger', 'thread', 'correlation', 'subscription', 'fanout', 'disposition'],
eval: ['policy', 'policyVersion', 'eval', 'gate', 'assessment', 'decision', 'mandate', 'scope', 'strength'],
execution: ['executor', 'environment', 'ticket', 'assignment', 'input', 'report', 'attention'],
} as const
export const GLOSSARY_VALUES = {
decision: ['decision.accept', 'decision.reopen', 'decision.stop', 'decision.ignore', 'decision.unavailable'], strength: ['strength.explicit', 'strength.inferred'],
ticket: ['stage.answer', 'stage.review', 'stage.blocked', 'stage.failed', 'stage.delivery', 'stage.queued', 'stage.working', 'stage.idle', 'ticket.ended'],
assignment: ['assignment.pending', 'assignment.running', 'assignment.ended'], report: ['report.progress', 'report.waiting', 'report.ready', 'report.blocked', 'report.failed', 'report.dropped'],
} as const
declare module '@deepseek-ai/dsh-client-ui-slots' {
interface LocaleNamespaceMap { dshSuperagent: DshSuperagentKey }
}