feat(codex_account): 改用 shell 取得登入帳號 #5

Merged
admin merged 6 commits from ai-review-resolve/develop-20260629-094754 into develop 2026-09-07 06:45:24 +00:00
Member

變更摘要

  • 將 app/codex_account.py 改為純 bash helper,透過 codex app-server、JSON-RPC 與 jq 取得目前登入帳號 email。
  • 更新 composite action,在安裝階段補齊 jq,並在無 prompt 時改用 bash 執行帳號 helper。
  • 新增以 ubuntu:latest 為基底的 Dockerfile,提供可重現的 codex-account 執行環境。
  • 更新 README,改為說明 shell helper、jq 前置條件與 Docker 使用方式。

影響範圍

  • 取消帳號查詢路徑對 Python runtime 的依賴。
  • 執行環境需要 jq;action 會在 apt-get 可用時自動安裝。
  • Docker image 會安裝 bash、jq、Node.js/npm 與 @openai/codex。

驗證

  • bash -n app/codex_account.py
  • git diff --check
  • 使用假的 codex app-server stub 驗證可從 JSON-RPC account/read 回應輸出 user@example.com

注意事項

  • 本機環境沒有 Docker daemon,因此未能在此環境實際執行 docker build。
## 變更摘要 - 將 `app/codex_account.py` 改為純 bash helper,透過 `codex app-server`、JSON-RPC 與 `jq` 取得目前登入帳號 email。 - 更新 composite action,在安裝階段補齊 `jq`,並在無 prompt 時改用 bash 執行帳號 helper。 - 新增以 `ubuntu:latest` 為基底的 Dockerfile,提供可重現的 `codex-account` 執行環境。 - 更新 README,改為說明 shell helper、`jq` 前置條件與 Docker 使用方式。 ## 影響範圍 - 取消帳號查詢路徑對 Python runtime 的依賴。 - 執行環境需要 `jq`;action 會在 apt-get 可用時自動安裝。 - Docker image 會安裝 `bash`、`jq`、Node.js/npm 與 `@openai/codex`。 ## 驗證 - `bash -n app/codex_account.py` - `git diff --check` - 使用假的 `codex app-server` stub 驗證可從 JSON-RPC `account/read` 回應輸出 `user@example.com` ## 注意事項 - 本機環境沒有 Docker daemon,因此未能在此環境實際執行 `docker build`。
jiantw83 added 2 commits 2026-06-29 09:49:07 +00:00
jiantw83 added 1 commit 2026-06-29 09:53:12 +00:00
refactor(codex_account): 改用 Node.js 實作帳號查詢
CI / Release Tag Version (pull_request) Successful in 4s
CI / Codex (pull_request) Successful in 13s
68c78e6736
jiantw83 added 1 commit 2026-06-29 10:10:35 +00:00
chore(Dockerfile): 驗證 Codex 帳號電子郵件
CI / Release Tag Version (pull_request) Successful in 4s
CI / Codex (pull_request) Successful in 14s
77b6bc3b80
jiantw83 added 1 commit 2026-06-29 10:14:06 +00:00
chore(Dockerfile): 建置時驗證 Codex 帳號電子郵件
CI / Release Tag Version (pull_request) Successful in 4s
CI / Codex (pull_request) Successful in 14s
15dc62d929
jiantw83 added 1 commit 2026-06-29 10:19:01 +00:00
chore(Dockerfile): 改為純安裝 Codex CLI
CI / Release Tag Version (pull_request) Successful in 3s
CI / Codex (pull_request) Successful in 14s
ba47c2fd9f
admin merged commit dd99d0f269 into develop 2026-09-07 06:45:24 +00:00
admin deleted branch ai-review-resolve/develop-20260629-094754 2026-09-07 06:45:24 +00:00
This repo is archived. You cannot comment on pull requests.
No Reviewers
No labels
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: old-composite-actions/codex#5