ci: 建立驗證與 develop packaging workflow,更新 lihi production endpoint - #2
Merged
Merged
Conversation
Add GitHub Actions jobs for Python 3.8 unit tests, syntax and mirrored-file checks, whitespace validation, and develop artifact packaging on non-PR develop pushes. Update the production MCP endpoint from app.lihi.com to app.lihi.io across both host runtimes, Codex dependency metadata, documentation, packaging constants, and contract tests. Refresh the Codex plugin cachebuster so hosts can detect the runtime update. Teach the develop README rewriter to recognize the lihi-io repository URL while preserving compatibility with the previous weedgood source path. Validated with: - python3 -m unittest discover -s tests -v (43 tests) - Codex/Claude detector, shortening workflow, and switch recovery byte comparisons - git diff --check - local develop bundle build - plugin-creator validate_plugin.py
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
這個 PR 為 lihi agent plugin 新增 GitHub Actions CI,將單元測試、Python 語法檢查、Codex/Claude mirrored files parity 與 develop bundle packaging 納入自動化流程。
同時將 production MCP endpoint 從
https://app.lihi.com/mcp/v1/tools更正為https://app.lihi.io/mcp/v1/tools。Codex 與 Claude Code plugin 的共同核心版本維持0.3.0,develop artifact 版本維持0.3.0-develop.<run>。主要變更
GitHub Actions CI
新增
.github/workflows/ci.yml,支援:develop;workflow_dispatch;contents: read;執行矩陣:
maindevelopmaintestjob 使用 Python 3.8 執行完整 unittest suite。code-checkjob 會執行:compileall檢查 scripts、tests 與兩份 URL detector;packagejob 只有在test與code-check成功後才會執行,使用 GitHub run number 與 commit SHA 建立隔離的 develop bundle。Workflow 直接上傳 packager 實際產生的 bundle 目錄、明確包含 hidden metadata,並設定 artifact 保留 14 天。Production endpoint 更正
Production MCP endpoint 統一改為:
更新範圍包含:
.mcp.json;agents/openai.yamlMCP dependency;Develop endpoint 維持不變:
相容性與影響
app.lihi.com不再出現在 runtime、文件、packager 或測試中。main的 push 或手動執行會進入 packaging job。驗證結果
python3 -m unittest discover -s tests -v(43 tests passed)plugin-creator validate_plugin.py通過lihi-agent-0.3.0-develop.999lihi-dev@lihi-dev與https://app.lihidev.com/mcp/v1/tools.agents、.claude-plugin、.codex-plugin與.mcp.jsonhidden metadatagit diff --check建議人工驗收
test與code-check。develop,確認兩個前置 jobs 成功後才開始package。main後,確認不會因 main push 再觸發一次 CI。lihi-devidentities 與 develop endpoint。app.lihi.io。0.3.0,Codex 只包含一個 cachebuster suffix。Reviewer 重點
developpush 執行驗證與 packaging、mainpush 不觸發。test與code-check成功後執行。https://app.lihi.io/mcp/v1/tools。https://app.lihidev.com/mcp/v1/tools。0.3.0。lihi-io。