Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

20.7 KB
Raw Blame
const resources = {
  operations: {
    page: {
      placeholder: '运维面板能力尚未接入。',
    },
  },
  requestLogs: {
    accessRequired: {
      description:
        '当前连接身份尚未确认。请在“连接设置”中检查服务地址、身份和认证配置。',
      title: '需要确认连接身份',
    },
    clear: '清空',
    description:
      '查看当前身份下服务端审计到的 API 请求,包括状态、耗时和请求标识。',
    disabled: {
      description: '用量和审计功能尚未初始化,暂无服务端请求日志。',
      title: '审计日志不可用',
    },
    details: {
      code: '错误代码',
      data: '错误详情',
      hide: '收起错误详情',
      message: '错误信息',
      show: '展开错误详情',
    },
    empty: {
      description: '先开始您的第一次可审计调用吧!',
      filteredDescription: '调整搜索内容或状态筛选,扩大可见日志范围。',
      filteredTitle: '没有匹配的请求',
      title: '当前无日志信息',
      upload: '上传文件',
    },
    error: {
      description: '无法从服务端加载审计请求日志。',
      title: '请求失败',
    },
    eyebrow: '服务端 API 请求记录',
    filters: {
      all: '所有日志',
      apiTypePlaceholder: 'API 类型',
      error: '错误日志',
      requestIdPlaceholder: '精确请求 ID',
      statusCodePlaceholder: '状态码',
    },
    loading: '正在加载请求日志...',
    metrics: {
      successRate: '成功率',
      total: '总调用次数',
    },
    pagination: {
      next: '下一页',
      pageSize: '每页条数',
      pageSizeValue: '每页 {{count}} 条',
      previous: '上一页',
      summary: '共 {{total}} 条,第 {{page}} / {{pageCount}} 页',
    },
    query: '查询',
    refresh: '刷新',
    reset: '重置',
    searchPlaceholder: '筛选方法、路径或状态码',
    scope: {
      currentIdentity: '当前范围:当前连接身份',
      currentIdentityWithName: '当前范围:当前连接身份({{identity}})',
    },
    status: {
      error: '错误',
      pending: '等待中',
      success: '成功',
    },
    table: {
      accountId: '账号 ID',
      apiType: 'API 类型',
      duration: '耗时',
      method: '方法',
      path: '路径',
      requestId: '请求 ID',
      status: '状态',
      time: '时间',
      title: '捕获的请求',
      userId: '用户 ID',
    },
    title: '请求日志',
  },
  addResource: {
    title: '添加资源',
    description: '上传本地文件到服务器,文件类型通过 magic bytes 自动检测。',
    dropzone: {
      title: '拖拽文件到此处,或点击选择文件',
      hint: '每次最多上传 10 个文件。',
      supportedFormats:
        '支持 PDF、Word、PPTX、Excel、Markdown、代码文件、图片等',
    },
    fileInfo: {
      name: '文件',
      size: '大小',
      type: '类型',
      unknown: '未知类型',
      remove: '移除',
    },
    targetUri: '目标 URI',
    'targetUri.placeholder': 'viking://resources/',
    'targetUri.hint': '选择资源的存储位置,默认为 viking://resources/。',
    'targetUri.browse': '浏览',
    destination: {
      parent: '父目录',
      exact: '精确位置',
      parentHint: '资源名称由来源自动生成,并保存到该父目录下。',
      exactHint: '将资源写入该精确 URI;TOS 导入必须使用此模式。',
      tosHint: 'TOS 导入必须使用精确目标 URI,因为服务端不会自动生成资源名称。',
    },
    advancedOptions: '高级选项',
    upload: '上传文件',
    'upload.processing': '文件已上传,正在处理中...',
    uploading: '上传中…',
    result: {
      success: '上传完成!',
      skippedFiles: '{{count}} 个文件被跳过(不支持的格式)',
    },
    cancelUpload: '取消',
    startProcessing: '开始处理',
    success: '资源添加成功',
    fileBlocked: '"{{name}}" 不是支持的文件类型。',
    fileTooLarge: '"{{name}}" 超过 {{size}} 文件大小限制。',
    tooManyFiles: '仅保留前 {{count}} 个文件,其余已忽略。',
    error: '请求失败',
    dirPicker: {
      scope: '资源范围',
      mine: '我的资源',
      shared: '公共资源',

      title: '选择目录',
      select: '选择',
      cancel: '取消',
      empty: '空目录',
      error: '加载目录失败',
      selected: '已选择:',
    },
    mode: {
      upload: '上传文件',
      remote: '远程资源',
    },
    remoteUrl: '远程资源地址',
    'remoteUrl.placeholder': '粘贴远程资源地址',
    'remoteUrl.hint': 'HTTP(S) 链接、Git 仓库地址或其他远程资源地址。',
    sourceKind: {
      feishu: '飞书 / Lark',
      feishuHint: '支持文档、知识库、电子表格和多维表格链接。',
      git: 'Git 仓库',
      gitHint: '支持公开或私有 Git 仓库,并可指定分支或提交。',
      remoteFile: '远程文件',
      remoteFileHint: '将下载并解析该远程文件。',
      tos: 'TOS',
      tosHint: '通过已配置的 Connector 导入 TOS 路径。',
      webFeed: '整站 / 订阅源',
      webFeedHint: '将按 Sitemap、RSS 或 Atom 订阅源导入内容。',
      webPage: '网页',
      webPageHint: '支持导入单页或沿同域链接递归抓取。',
    },
    sourcePicker: {
      title: '支持的远程资源类型',
      hint: '以下类型均有服务端处理链路;选择后可填写对应参数,也可以保持自动识别。',
      feishu: '飞书 / Lark',
      feishuHint: '文档、知识库、电子表格和多维表格',
      feishuExample: 'https://example.feishu.cn/docx/...',
      git: 'Git 仓库',
      gitHint: '公开或私有仓库,可指定分支或提交',
      gitExample: 'https://github.com/org/repo',
      webPage: '网页 / 站点',
      webPageHint: '单页、递归抓取、Sitemap、RSS 和 Atom',
      webPageExample: 'https://example.com/docs',
      remoteFile: '远程文件',
      remoteFileHint: 'PDF、Office、Markdown、媒体文件等',
      remoteFileExample: 'https://example.com/file.pdf',
      tos: 'TOS',
      tosHint: '需服务端启用并允许 TOS Connector',
      tosExample: 'tos://bucket/path',
    },
    configurationGuide: {
      title: '如何配置?',
      documentation: '查看服务端配置文档',
    },
    feishu: {
      auth: {
        title: '访问方式',
        hint: '选择 OpenViking 访问该飞书资源时使用的身份。',
        app: '服务端应用凭证',
        appHint: '使用服务端配置的 FEISHU_APP_ID 和 FEISHU_APP_SECRET。',
        user: '用户授权',
        userHint: '使用当前用户的飞书访问令牌访问私有文档。',
      },
      accessToken: '访问令牌',
      'accessToken.placeholder': 'u-...',
      'accessToken.hint': '访问令牌仅用于本次导入,不会保存。',
      refreshToken: '刷新令牌',
      'refreshToken.placeholder': 'r-...',
      'refreshToken.hint':
        '定时同步需要刷新令牌;服务端还需配置签发该令牌的同一个飞书应用。',
      configuration: {
        credentials: '在飞书开放平台获取应用的 App ID 和 App Secret。',
        server:
          '在服务端设置 FEISHU_APP_ID、FEISHU_APP_SECRET,或写入 ov.conf 的 feishu.app_id、feishu.app_secret。',
        restart: '重启 OpenViking 服务,使配置生效;无需额外开启开关。',
      },
    },
    git: {
      refType: '版本定位',
      branch: '分支',
      'branch.placeholder': 'main',
      commit: '提交',
      'commit.placeholder': '完整或短格式的提交 SHA',
      auth: {
        title: '仓库访问方式',
        public: '公开仓库',
        publicHint: '无需凭证,直接访问仓库。',
        token: 'HTTPS 令牌',
        tokenHint: '通过 HTTPS Basic Auth 访问私有仓库。',
        httpsOnly: '令牌认证仅支持 HTTPS Git 地址。',
      },
      username: '用户名',
      'username.placeholder': 'oauth2',
      token: '访问令牌',
      'token.placeholder': '个人访问令牌',
      'token.hint':
        '凭证会随请求发送;开启定时同步后,还会保存在私有凭证存储中。',
    },
    web: {
      mode: {
        title: '导入方式',
        auto: '自动识别',
        autoHint: '根据地址自动选择单页或订阅源。',
        single: '单页',
        singleHint: '只导入当前页面,不跟随链接。',
        recursive: '递归抓取',
        recursiveHint: '沿同域链接按深度抓取。',
        site: '整站 / 订阅源',
        siteHint: '自动发现 Sitemap、RSS 或 Atom。',
      },
      depth: '抓取深度',
      maxPages: '最大页面数',
      includePaths: '包含路径前缀',
      'includePaths.placeholder': '/docs, /zh/',
      excludePaths: '排除路径前缀',
      'excludePaths.placeholder': '/changelog, /archive',
      allowExternalLinks: '允许抓取外部链接',
      skipDownloadLinks: '跳过页面中的下载链接',
    },
    watch: {
      enabled: '定时同步',
      hint: '定期检查该远程资源,并导入最新内容。',
      unsupported: 'TOS 导入暂不支持定时同步。',
      requiredUnsupported: '该资源类型不支持创建定时同步,请选择其他类型。',
      interval: '同步周期(分钟)',
      intervalHint: '例如每小时填写 60,每天填写 1440。',
    },
    tosOptions: {
      title: 'TOS 导入',
      hint: '从 TOS URI 导入对象或目录前缀。',
      limitations:
        '需服务端启用并允许 TOS Connector;导入使用精确目标位置,暂不支持定时同步和解析布局选项。',
      configuration: {
        service: '先部署可处理 TOS 导入的 Connector 服务。',
        endpoints:
          '在 ov.conf 中设置 connector.enable=true;connector.connector 填写完整的 doc/add 接口 URL,connector.tracker 填写完整的 task/info 接口 URL。',
        allow: '将 tos 加入 connector.allowed_add_types。',
        restart: '重启 OpenViking 服务后,再使用 tos://bucket/path 导入。',
        noDocumentation:
          'Connector 服务地址由部署方提供,Studio 不会自动填写;当前暂无独立的 TOS Connector 部署文档。',
      },
    },
    strict: '严格模式',
    'strict.hint':
      '开启时,服务器会拒绝不支持或无法识别类型的文件,而非静默跳过。',
    directlyUploadMedia: '直接上传媒体文件',
    'directlyUploadMedia.hint':
      '开启时,媒体文件(图片、音频、视频)原样存储。关闭后,媒体文件会先通过 AI 视觉/音频管道提取内容再存储。',
    createParent: '自动创建父文件夹',
    'createParent.hint': '开启时,若目标父目录不存在则自动创建。',
    preserveStructure: '保留目录结构',
    'preserveStructure.serverDefault': '使用服务端默认值',
    'preserveStructure.preserve': '保留目录结构',
    'preserveStructure.flatten': '平铺文件',
    parseMode: '解析布局',
    'parseMode.default': '默认拆分',
    'parseMode.noSplit': '每个文档一个 Markdown 正文',
    processingMode: '处理模式',
    'processingMode.semantic': '语义理解并生成向量',
    'processingMode.vectorsOnly': '仅生成向量',
    waitForProcessing: '等待处理完成后返回',
    timeout: '等待超时(秒)',
    'timeout.placeholder': '不填写则不限制',
    sourceName: '资源名称',
    'sourceName.placeholder': '可选,覆盖自动识别的来源名称',
    tags: '检索标签',
    'tags.placeholder': 'team=docs, env=production',
    tagMode: '标签写入方式',
    'tagMode.replace': '替换',
    'tagMode.append': '追加',
    'tagMode.clear': '清空',
    reason: '添加原因',
    'reason.placeholder': '为什么要添加这个资源?',
    instruction: '处理指令',
    'instruction.placeholder': '针对该资源的特殊处理指令。',
    directoryScan: {
      title: '目录扫描选项',
      ignoreDirs: '忽略目录',
      'ignoreDirs.placeholder': 'node_modules, .git, __pycache__',
      include: '包含模式',
      'include.placeholder': '*.py, *.md',
      exclude: '排除模式',
      'exclude.placeholder': '*.log, *.tmp',
    },
  },
  resources: {
    processingTasks: {
      title: '文件处理任务',
      empty: '暂无处理任务',
      toggleError: '展开或收起错误详情',
      errors: {
        tempUploadMissingId: '临时上传未返回文件 ID。',
        cancelled: '处理已取消',
        failed: '处理失败',
      },
      columns: {
        fileName: '文件名',
        status: '状态',
        size: '大小',
      },
      status: {
        cancelled: '已取消',
        processing: '处理中',
        success: '处理成功',
        failed: '处理失败',
      },
    },
    searchPalette: {
      modes: {
        name: '文件名',
        switchHint: '切换模式',
      },
      ariaLabel: '搜索',
      openContainingDirectory: '打开所在目录',
      placeholder: '搜索',
      scope: {
        global: '搜索范围: 全局',
        current: '搜索范围: {{name}}',
        resetToGlobal: '点击重置为全局搜索',
      },
      scopeState: {
        validatingTitle: '正在校验搜索范围',
        validatingPrefix: '正在检查',
        validatingSuffix: '是否存在',
        switchTitle: '切换搜索范围',
        switchPrefix: '按',
        switchMiddle: '切换到',
        invalidTitle: '搜索范围不存在',
        invalidPrefix: '路径',
        invalidSuffix: '无法访问,不能切换',
      },
      empty: {
        title: '搜索文件和目录',
      },
      browseDirHint: {
        before: '输入',
        after: '浏览目录结构',
      },
      globalScopeHint: {
        before: '输入',
        after: '切换搜索范围到全局',
      },
      error: '搜索出错',
      emptyResults: {
        title: '没有找到匹配的文件或目录',
        subtitle: '试试换个关键词?',
      },
      footer: {
        dirMode: {
          select: '选择',
          level: '层级',
          confirm: '确定',
          cancel: '取消',
        },
        resultMode: {
          navigate: '导航',
          open: '打开',
          close: '关闭',
          count: '{{count}} 个结果',
        },
      },
    },
    dirBrowser: {
      back: '返回上一级',
      loading: '正在加载目录',
      filesSection: '文件',
      error: '加载目录失败',
      empty: {
        title: '空目录',
        subtitle: '这一层目前没有可继续展开的子目录',
      },
    },
    filePreview: {
      editFailed: '无法读取完整文件用于编辑。',
      saveFailed: '文件保存失败。',
      directoryLevels: {
        abstractLabel: '摘要',
        overviewLabel: '概览',
        abstractDescription: '简短的语义摘要',
        overviewDescription: '目录内容概览',
      },
      cancel: '取消',
      edit: '编辑',
      emptyFile: '(空文件)',
      emptyPrompt: '选择文件后在这里预览',
      formattingJson: '正在格式化 JSON...',
      imageFailed: '图片加载失败。',
      imageLoading: '正在加载图片...',
      largeFileSkipped: '文件较大,默认不自动加载。',
      jsonFormatFailed: 'JSON 格式化失败,已显示原始内容。',
      loadFile: '仍然加载',
      loadingContent: '正在读取内容...',
      loadingEditor: '加载编辑器...',
      markdownPreview: '预览',
      markdownSource: '源码',
      mermaid: {
        diagramLabel: 'Mermaid 图表',
        errorDetails: '错误详情',
        loading: '正在渲染 Mermaid 图表...',
        renderFailed: '无法渲染 Mermaid 图表。',
        showSource: '查看 Mermaid 源码',
        unknownError: '未知的 Mermaid 渲染错误。',
      },
      noDirectoryContext: '这个目录暂无摘要或概览。',
      save: '保存',
      selectDirectoryContext: '选择一个标签查看目录上下文。',
      unsupportedBinary: '二进制文件不支持文本预览。',
      yamlMetadata: {
        ariaLabel: '目录元数据',
        directory: '所属目录',
        generatedBy: '生成组件',
        trigger: '触发方式',
        source: '来源',
        freshness: '新鲜度',
        coverage: '已采样 {{sampled}} / {{total}}',
        unsampled: '{{count}} 条未采样',
        pendingChanges: '待处理变更:{{count}}',
        rawYaml: 'YAML 元数据',
      },
      jsonl: {
        collapse: '收起',
        dialogMode: '对话模式',
        emptyJsonl: '空 JSONL。',
        emptyMessage: '空消息',
        expand: '展开',
        noArguments: '无参数',
        recordCount: '{{count}} 条记录',
        recordCount_other: '{{count}} 条记录',
        toolcall: '工具调用',
      },
    },
  },
  retrieval: {
    modeDescriptions: {
      find: '按语义查找相关上下文,适合单次问题。',
      search: '按语义检索,可结合会话上下文查找相关内容。',
      grep: '按文本或正则表达式匹配文件内容。',
      glob: '按路径通配符查找文件,例如 **/*.md。',
    },
    title: '检索',
    searchPlaceholder: '输入检索内容',
    placeholders: {
      find: '输入语义检索内容',
      search: '输入需要结合会话理解的问题',
      grep: '输入正则表达式或精确文本',
      glob: '输入文件模式,例如 **/*.md',
    },
    send: '检索',
    controls: {
      function: '检索函数',
      modes: {
        find: 'find',
        search: 'search',
        grep: 'grep',
        glob: 'glob',
      },
      ignoreCase: '忽略大小写',
      resultCount: '返回数量',
      path: '路径',
      pathPlaceholder: '/',
      scope: '检索范围',
      customScope: '自定义范围',
      customScopePlaceholder: 'resources/project 或 viking://...',
      effectiveScope: '范围',
      allContexts: '全部上下文',
      scopes: {
        all: {
          label: '全部上下文',
        },
        resources: {
          label: '资源库',
        },
        custom: {
          label: '自定义 URI',
        },
      },
      sessionId: '会话 ID',
      sessionPlaceholder: 'session_id(可选)',
    },
    advanced: {
      title: '更多筛选',
      contextTypes: '上下文类型',
      levels: '内容层级',
      scoreThreshold: '最低相关度',
      tags: '检索标签',
      tagsPlaceholder: '例如 env=prod, team=search',
      tagsInvalid: '标签必须使用 key=value 格式,多个标签用逗号分隔',
      timeRange: '时间范围',
      since: '开始时间,如 7d',
      until: '结束时间,如 2026-07-27',
      anyTime: '不限时间',
      quickRange: '快捷范围',
      last24Hours: '近 24 小时',
      last7Days: '近 7 天',
      last30Days: '近 30 天',
      customRange: '自定义日期',
      startDate: '开始日期',
      endDate: '结束日期',
      clearTimeRange: '清除时间范围',
      timeField: '时间字段',
      updatedAt: '更新时间',
      createdAt: '创建时间',
      provenance: '返回检索过程',
      reset: '重置筛选',
    },
    detail: {
      score: '相关度',
      level: '层级',
      openFilesystem: '在文件系统中打开',
      uri: 'URI',
      summary: '摘要',
      noSummary: '暂无可展示的摘要',
      matchReason: '匹配原因',
    },
    results: {
      title: '检索结果',
      topN: '检索结果(Top{{count}})',
      line: '第 {{line}} 行',
      lineLabel: '行号',
      score: '相关度',
      uri: 'URI',
      description: '描述',
      provenance: '检索过程({{count}})',
    },
    types: {
      resource: '资源',
      memory: '记忆',
      skill: '技能',
    },
    queryPlan: {
      title: '查询计划 {{count}} 条',
      more: '+{{count}} 条',
    },
    loading: {
      vector: '正在检索向量索引...',
      scan: '扫描知识库层级结构...',
      match: '匹配语义相关内容...',
      rerank: '对结果重排序...',
    },
    empty: {
      checking: '正在检查可检索上下文...',
      readyTitle: '已有可检索上下文',
      readyDescription: '输入关键词后按 Enter 开始检索',
      title: '当前还没有可检索的上下文',
      description: '先上传您的第一份资源吧~',
      upload: '上传文件',
    },
    error: {
      title: '检索失败',
      fallback: '请求未能完成,请稍后重试。',
      network:
        '请求未能到达 OpenViking 服务,请检查连接地址、服务状态或跨域配置。',
      code: '错误码',
      status: 'HTTP 状态',
      requestId: '请求 ID',
    },
    noResults: {
      title: '没有找到匹配的内容',
      subtitle: '试试换个关键词或调整路径范围',
    },
  },
} as const

export default resources