{
  "cli.usage.usage_prefix": "用法：",
  "cli.usage.header": "cortex-spm — Cortex 服务项目管理器",
  "cli.usage.commands": "命令：",
  "cli.usage.flags": "选项：",
  "cli.usage.examples": "示例：",
  "cli.usage.command.start": "启动服务守护进程",
  "cli.usage.command.stop": "停止服务守护进程",
  "cli.usage.command.restart": "重启服务守护进程",
  "cli.usage.command.status": "显示当前守护进程状态",
  "cli.usage.command.token": "管理认证令牌",
  "cli.usage.flag.port": "绑定端口（默认：16888）",
  "cli.usage.flag.host": "绑定主机地址（默认：0.0.0.0）",
  "cli.usage.flag.log_level": "日志级别：debug, info, warn, error（默认：info）",
  "cli.usage.flag.verbose": "启用详细输出",
  "cli.usage.flag.lang": "语言：en, zh（默认：en）",
  "cli.usage.flag.help": "显示此帮助信息",
  "cli.usage.flag.version": "显示版本",
  "cli.usage.env": "环境变量：",
  "cli.usage.env.port": "默认端口",
  "cli.usage.env.host": "默认主机",
  "cli.usage.env.log_level": "默认日志级别",
  "cli.usage.env.lang": "默认语言 (en|zh)",

  "cli.startup.starting_daemon": "正在启动守护进程...",
  "cli.startup.daemon_started": "守护进程已成功启动，端口 {port}",
  "cli.startup.daemon_started_verbose": "守护进程已成功启动（PID: {pid}，端口: {port}，主机: {host}，日志级别: {logLevel}）",
  "cli.startup.daemon_stopped": "守护进程已成功停止（PID: {pid}）",
  "cli.startup.daemon_restarted": "守护进程已成功重启",
  "cli.startup.pid_file_missing": "错误：守护进程已启动但未写入 PID 文件",

  "cli.error.already_running": "错误：cortex-spm 已在运行（PID: {pid}）",
  "cli.error.not_running": "提示：未发现运行中的守护进程",
  "cli.error.bind_failed": "错误：无法绑定到端口 {port}：{reason}",
  "cli.error.token_missing": "需要认证令牌。运行：cortex-spm token generate",
  "cli.error.token_invalid": "认证令牌无效或已过期",
  "cli.error.command_failed": "命令执行失败：{message}",
  "cli.error.unknown_command": "错误：未知命令：{command}",
  "cli.error.invalid_flag": "错误：{detail}",
  "cli.error.fatal": "致命错误：{message}",
  "cli.error.daemon_failed": "错误：守护进程启动失败（退出码：{code}）",
  "cli.error.start_failed": "错误：启动守护进程失败：{message}",
  "cli.error.stop_failed": "错误：停止守护进程失败（PID: {pid}）",
  "cli.error.force_kill": "警告：守护进程未能正常停止，已强制终止（PID: {pid}）",
  "cli.error.invalid_port": "错误：无效端口：{port}",
  "cli.error.invalid_log_level": "错误：无效日志级别：{level}。必须是以下之一：{allowed}",
  "cli.error.unknown_flag": "错误：未知选项：{flag}",
  "cli.error.flag_missing_value": "错误：{flag} 需要一个值",
  "cli.error.unknown_subcommand": "错误：未知令牌子命令：{subcommand}",
  "cli.error.subcommand_required": "错误：token 命令需要一个子命令：generate, list, revoke",
  "cli.error.token_file_read": "错误：无法读取令牌文件：{message}",
  "cli.error.no_token_to_revoke": "错误：未提供用于撤销的令牌值",
  "cli.error.invalid_language": "错误：无效语言代码：{lang}。必须是以下之一：en, zh",
  "cli.error.token_revoked": "令牌已成功撤销",
  "cli.error.cli_not_found": "错误：未找到 cortex-cli。请通过以下方式安装 cortex-cli：\n  npm install -g @lwelliott/cortex-cli",
  "cli.error.cli_timeout_startup": "错误：未找到 cortex-cli（超时）。请通过以下方式安装 cortex-cli：\n  npm install -g @lwelliott/cortex-cli",
  "cli.warn.cli_empty_registry": "警告：cortex-cli 中没有注册的项目。仪表盘将显示空项目列表。",

  "cli.status.running": "状态：运行中（PID: {pid}，端口: {port}，运行时长: {uptime}）",
  "cli.status.stopped": "状态：已停止",
  "cli.status.version": "cortex-spm 版本 {version}",

  "cli.token.no_active": "无活跃令牌",
  "cli.token.list_header": "活跃令牌：",
  "cli.token.list_entry": "  [{id}] {label}（创建于：{created}）",
  "cli.token.revoked": "令牌已成功撤销",

  "server.error.unauthorized": "未授权。请提供有效的认证令牌。",
  "server.error.empty_token": "未授权：空令牌",
  "server.error.token_too_long": "未授权：令牌过长",
  "server.error.invalid_token": "未授权：令牌无效或已撤销",
  "server.error.missing_token": "未授权。请提供有效的认证令牌。",
  "server.error.not_found": "未找到请求的资源。",
  "server.error.internal_error": "发生内部服务器错误。请重试或查看日志。",
  "server.error.invalid_request": "无效请求：{detail}",
  "server.error.parse_failure": "无法解析服务器响应。请查看日志了解详情。",
  "server.error.cli_unavailable": "无法执行 cortex-cli 命令。请确认它已安装并加入系统 PATH。",
  "server.error.cli_timeout": "cortex-cli 在 {seconds} 秒后超时",
  "server.error.cli_error": "cortex-cli 返回错误（退出码 {code}）：{message}",
  "server.error.parse_error": "无法解析 cortex-cli 输出。CLI 返回的数据格式不符合预期。",
  "server.error.invalid_json": "请求体中的 JSON 无效",
  "server.error.missing_field": "缺少必填字段：{field}",
  "server.error.missing_path": "缺少必填路径参数：{id}",
  "server.error.missing_field_or_id": "缺少必填字段：{field} 或 {altField}",
  "server.error.update_required": "至少需要更新一个字段（{fields}）",
  "server.error.cli_token_missing": "请输入令牌",
  "server.error.cli_token_invalid": "令牌无效或已撤销",
  "server.error.cli_token_expired": "令牌已过期，请生成新令牌。",
  "server.error.source_not_found": "未找到源文件：{path}",
  "server.error.source_read_error": "无法读取源文件：{path}（{message}）",
  "server.error.project_root_not_configured": "项目根目录未配置。请传递 project 查询参数，或确保已安装 cortex-cli 并已注册项目。",
  "server.error.project_context_not_specified": "项目上下文未指定。请传递 project 查询参数以限定请求范围。",
  "server.error.project_not_found": "项目 \"{name}\" 在 cortex-cli 注册表中未找到。",
  "server.status.ok": "正常",
  "server.status.healthy": "服务运行正常。",

  "login.subtitle": "基于 sprint 的项目管理仪表盘，支持 AI 驱动的冲刺协调、阶段门控评审和实时团队协作。",
  "login.feature1": "看板与任务 — 实时冲刺跟踪，基于状态管理的任务管理",
  "login.feature2": "AI 助手 — 与 AI 对话协调冲刺工作、状态更新和推荐",
  "login.feature3": "评审关卡 — 阶段门控质量保证，自动生成评审报告",
  "login.feature4": "文档管理 — URD、SS、SAD、测试用例和追溯在一处管理",
  "login.welcomeBack": "欢迎回来",
  "login.desc": "输入访问令牌以继续使用仪表盘。",
  "login.serverUrl": "服务器地址",
  "login.accessToken": "访问令牌",
  "login.tokenPlaceholder": "cspm-xxxx-xxxx-xxxx-xxxx",
  "login.rememberMe": "记住令牌",
  "login.signIn": "登录",
  "login.footerHint": "使用以下命令生成令牌：{code}",
  "login.error": "令牌无效，请检查后重试。",
  "login.tokenExpired": "令牌已过期，请使用CLI生成新令牌。",
  "login.advanced": "高级",
  "login.authenticating": "验证中...",

  "chat.drop_zone_label": "拖放文件到此处",
  "chat.attachment_remove": "移除附件",
  "chat.attachment_size_bytes": "{count} 字节",
  "chat.attachment_size_kb": "{count} KB",
  "chat.attachment_size_mb": "{count} MB",
  "chat.connection.idle": "未连接",
  "chat.connection.connecting": "连接中…",
  "chat.connection.connected": "已连接",
  "chat.connection.error": "连接错误",
  "chat.connection.disconnected": "已断开",
  "chat.connection.retryButton": "重试",
  "chat.connection.error.authentication_failed": "认证失败",
  "chat.connection.error.backend_unreachable": "后端无法访问",
  "chat.connection.error.connection_timed_out": "连接超时",
  "chat.connection.error.connection_closed_unexpectedly": "连接异常关闭",
  "chat.connection.error.agent_command_not_configured": "未配置代理命令",
  "chat.connection.error.subprocess_failed_to_start": "子进程启动失败",
  "chat.connection.error.handshake_failed": "握手失败",
  "chat.connection.error.connection_lost": "连接丢失",
  "chat.connection.error.fallback": "发生意外错误",
  "chat.input.notConnected": "未连接",
  "chat.input.send": "发送",
  "chat.input.emptyTooltip": "请先输入消息",
  "chat.input.sending": "发送中…",
  "chat.input.sendingTooltip": "等待响应",
  "chat.input.placeholder": "输入消息（Enter 发送，Shift+Enter 换行）",
  "chat.input.attachFile": "添加文件",
  "chat.input.fileTooLarge": "文件过大：{name}（最大 {maxSize} MB）",
  "chat.markdown.copyButton": "复制",
  "chat.markdown.copied": "已复制！",
  "chat.markdown.failed": "失败",
  "chat.markdown.copyCodeLabel": "复制代码",
  "chat.thinking.label": "思考",
  "chat.question.title": "智能体提问",
  "chat.question.submit": "提交",
  "chat.question.dismiss": "忽略",
  "chat.question.multiSelect": "多选",
  "chat.question.ariaLabel": "智能体提问 — 方向键选择，空格切换，回车提交",
  "chat.tasks.title": "智能体任务",
  "chat.tasks.empty": "此会话暂无智能体任务",
  "chat.tasks.blockedBy": "被阻塞于",
  "chat.tasks.noSubject": "（无主题）",
  "chat.resume.fallbackNotice": "本次回复从全新会话开始（无法恢复原会话）。",
  "chat.draft.restorePrompt": "上一条消息未能完成，已保留为草稿。",
  "chat.draft.restore": "恢复草稿",
  "chat.draft.discard": "放弃"
}
