Skip to content

feat: add Codex CLI and Claude Code CLI translation services - #1449

Open
zhuolingli wants to merge 1 commit into
windingwind:mainfrom
zhuolingli:codex/add-cli-translators
Open

feat: add Codex CLI and Claude Code CLI translation services#1449
zhuolingli wants to merge 1 commit into
windingwind:mainfrom
zhuolingli:codex/add-cli-translators

Conversation

@zhuolingli

Copy link
Copy Markdown

Summary

  • add Codex CLI and Claude Code CLI as optional translation services
  • integrate with locally installed CLI tools without requiring provider API keys in Zotero
  • support configurable model, prompt, executable, and timeout settings
  • add English, Chinese, and Italian localization and setup documentation

Implementation

  • send source text through stdin and read translated text from stdout
  • invoke CLI processes directly without using a shell
  • run Codex in an ephemeral read-only session
  • run Claude Code with tools and session persistence disabled
  • report missing executables, timeouts, non-zero exits, and empty output as translation errors

Validation

  • npm run build
  • Prettier
  • ESLint
  • git diff --check upstream/main...HEAD

@cislunarspace

Copy link
Copy Markdown
Contributor

@zhuolingli 请问你是遇到什么问题,而想到需要添加这个功能?我认为仓库管理员不采纳这个PR的主要原因是缺少实际部署截图、性能分析和故事说明。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants