feat: add OpenAI Platform and production release packaging - #4
Merged
Conversation
added 2 commits
August 12, 2026 15:29
新增 OpenAI Platform public plugin 與四個 standalone skill ZIP 的確定性封裝流程,包含固定檔案白名單、安全 archive path、品牌 PNG 驗證、原子發布與失敗回滾。 加入 host-neutral skill rewrite、促銷連結移除與 Developer mode app ID marketplace bundle;production source 保持不變,app ID 僅存在生成的本機 artifact。 補齊 OpenAI Platform 建置與提交文件、production logo/composer icon、develop bundle 排除規則,以及 public/developer packaging 的完整回歸測試。 Validated with: - python3 -m unittest discover -s tests -v (66 tests) - Codex/Claude detector and shortening workflow parity checks - OpenAI Platform bundle plus four standalone skill ZIP builds - git diff --cached --check
- build four deterministic host-neutral OpenAI skill archives - add a separate production marketplace bundle for Codex and Claude Code - package release artifacts from SemVer tags with GitHub Actions - keep develop packaging isolated while sharing the corrected production guides - validate detector UTF-8, repository identity, archive safety, and reproducibility - document the With MCP submission and local packaging workflows
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.
摘要
新增 lihi 的 OpenAI Platform With MCP 發布打包流程、production marketplace bundle,以及 SemVer tag release workflow。
OpenAI Platform 發布物改為四個獨立 skill ZIP;每個 ZIP 只有一個同名頂層 skill 目錄,不包含完整 plugin manifest、marketplace、MCP config、app config 或 app ID。Codex 與 Claude Code 的 production marketplace 另外由獨立 script 打包,既有 develop bundle 則繼續維持
lihi-devidentity 與 develop endpoint 隔離。OpenAI Platform skill bundles
新增
scripts/package_openai_platform_bundle.py,使用 Python 3.8 與純標準函式庫,從 Codex production skill 目錄直接讀取核准檔案並建立四個 ZIP:封裝行為:
major.minor.patch衍生發布版本;agents/openai.yaml的 production MCP dependency:lihi;https://app.lihi.io/mcp/v1/tools;codex mcp login、Claude/mcp與其他 host-specific OAuth 操作;.mcp.json或.app.json;Archive safety and reproducibility
OpenAI skill packager 會在發布前驗證:
四個 ZIP 會先全部在暫存區建立及驗證,再以同一組發布交易替換正式產物。驗證失敗不會改動既有 ZIP;發布途中失敗則會回復整組舊產物。
Production marketplace bundle
新增
scripts/package_production_bundle.py:輸出:
Production bundle:
.agents與.claude-pluginmarketplace manifests;lihi@lihiselector、四個 production skill names 與 production MCP endpoint;既有
scripts/package_develop_bundle.py保持獨立:lihi-dev@lihi-dev;https://app.lihidev.com/mcp/v1/tools;Tag release workflow
新增
.github/workflows/package-openai-platform.yml,在 push tag 時執行:v<major.minor.patch>或<major.minor.patch>;lihi-openai-skills-<tag>;lihi-agent-production-<tag>。Workflow 不會建立或修改 GitHub Release。
Brand assets and portal submission
加入 production listing assets:
這兩張圖片保留供 OpenAI submission portal 人工上傳,不是 skill packager 的輸入,也不會阻擋四個 skill ZIP 的建立。
docs/openai-platform-packaging.md記錄:測試覆蓋
OpenAI Platform packager
--app-id已移除且會被 CLI 拒絕;Production marketplace packager
測試與驗證
python3 -m unittest discover -s tests -v(71 tests passed)python3 -m compileall通過lihi-agent-0.3.1production marketplace bundlelihi-agent-0.3.1-develop.1develop marketplace bundlegit diff --checkReviewer 重點
.mcp.json、.app.json或 marketplace;