Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

feat: add Codex plugin support (#1379)

Ethereal49d3a5d5c2aee8
diff --git a/.agents/plugins/marketplace.json b/.agents/plugins/marketplace.json
new file mode 100644
index 00000000..0555d679
--- /dev/null
+++ b/.agents/plugins/marketplace.json
@@ -0,0 +1,15 @@
+{
+ "name": "pake",
+ "interface": { "displayName": "Pake" },
+ "plugins": [
+ {
+ "name": "pake",
+ "source": { "source": "local", "path": "./plugins/pake" },
+ "policy": {
+ "installation": "AVAILABLE",
+ "authentication": "ON_INSTALL"
+ },
+ "category": "Productivity"
+ }
+ ]
+}
diff --git a/AGENTS.md b/AGENTS.md
index 6edf2498..e75050fa 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -1,6 +1,6 @@
# AGENTS.md - Pake Project Knowledge Base
-> Project-specific Rust + Tauri rules: `.claude/rules/rust.md`. Skills live under `.agents/skills/` (`/release`, `/bugs`, `/github-ops`, `/code-review`; `.claude/skills/*` are symlinks into `.agents/skills/`, edit the `.agents` copy only). Exception: the `pake` skill's real source is `plugins/pake/skills/pake/SKILL.md` (shipped to users via the Claude Code plugin marketplace, `.claude-plugin/marketplace.json`); `.agents/skills/pake` is a symlink to it.
+> Project-specific Rust + Tauri rules: `.claude/rules/rust.md`. Skills live under `.agents/skills/` (`/release`, `/bugs`, `/github-ops`, `/code-review`; `.claude/skills/*` are symlinks into `.agents/skills/`, edit the `.agents` copy only). Exception: the `pake` skill's real source is `plugins/pake/skills/pake/SKILL.md` (shipped to users via the Claude Code and Codex plugin marketplaces, `.claude-plugin/marketplace.json` and `.agents/plugins/marketplace.json`); `.agents/skills/pake` is a symlink to it.
## Project Identity
@@ -31,7 +31,7 @@ Pake/
│ ├── advanced-usage.md # Customization guide
│ └── faq.md # Troubleshooting
├── schema/ # pake.schema.json: --config JSON schema (public contract)
-├── plugins/ # Claude Code plugin source (user-facing pake skill)
+├── plugins/ # Claude Code and Codex plugin source (shared user-facing pake skill)
├── llms.txt # Agent-facing contract summary (--json, --config, exit codes)
├── scripts/ # Utility scripts
├── tests/ # Unit, integration, and release-flow tests
@@ -200,7 +200,7 @@ For release follow-through, keep these boundaries explicit:
`.github/workflows/quality-and-test.yml` runs auto-format on push, Rust quality checks, and CLI/build validation across Linux, Windows, and macOS.
-Deployment-surface note: the Claude Code plugin (`.claude-plugin/marketplace.json` + `plugins/pake`) ships from `main` via git, independent of `V*` releases. Skill and manifest edits reach new installs as soon as they land on `main`; npm and app assets still wait for their release workflows.
+Deployment-surface note: the Claude Code and Codex plugins (`.claude-plugin/marketplace.json`, `.agents/plugins/marketplace.json`, and `plugins/pake`) ship from `main` via git, independent of `V*` releases. Skill and manifest edits reach new installs as soon as they land on `main`; npm and app assets still wait for their release workflows.
### Network Mirror Behavior
diff --git a/README.md b/README.md
index 695a4bbb..b4567197 100644
--- a/README.md
+++ b/README.md
@@ -192,7 +192,7 @@ pake https://weekly.tw93.fun --name Weekly --icon https://cdn.tw93.fun/pake/week
First-time packaging requires environment setup and may be slower, subsequent builds are fast. For complete parameter documentation, see [CLI Usage Guide](docs/cli-usage.md). Don't want to use CLI? Try [GitHub Actions Online Building](docs/github-actions-usage.md).
-Using Pake from a script or AI agent? Pass `--json` for machine-readable results, describe apps declaratively with `--config app.json` ([schema](schema/pake.schema.json)), and package local build output directly with `pake ./dist --name MyTool`. See [llms.txt](llms.txt) for the full agent contract. Claude Code users can install the official skill with `/plugin marketplace add tw93/Pake` and `/plugin install pake@pake`.
+Using Pake from a script or AI agent? Pass `--json` for machine-readable results, describe apps declaratively with `--config app.json` ([schema](schema/pake.schema.json)), and package local build output directly with `pake ./dist --name MyTool`. See [llms.txt](llms.txt) for the full agent contract. To install the official skill, run `/plugin marketplace add tw93/Pake` and `/plugin install pake@pake` in Claude Code, or `codex plugin marketplace add tw93/Pake` and `codex plugin add pake@pake` in Codex.
Copy this to your AI agent to get started:
diff --git a/README_CN.md b/README_CN.md
index 5fdd3d20..a2c1fb7d 100644
--- a/README_CN.md
+++ b/README_CN.md
@@ -193,7 +193,7 @@ pake https://weekly.tw93.fun --name Weekly --icon https://cdn.tw93.fun/pake/week
首次打包需要安装环境会比较慢,后续很快。完整参数说明查看 [CLI 使用指南](docs/cli-usage_CN.md),不想用命令行可以试试 [GitHub Actions 在线构建](docs/github-actions-usage_CN.md)。
-在脚本或 AI agent 里使用 Pake?加 `--json` 获得机器可读结果,用 `--config app.json` 声明式描述应用([schema](schema/pake.schema.json)),本地构建产物可直接 `pake ./dist --name MyTool` 打包。完整 agent 契约见 [llms.txt](llms.txt)。Claude Code 用户可通过 `/plugin marketplace add tw93/Pake` 和 `/plugin install pake@pake` 安装官方 skill。
+在脚本或 AI agent 里使用 Pake?加 `--json` 获得机器可读结果,用 `--config app.json` 声明式描述应用([schema](schema/pake.schema.json)),本地构建产物可直接 `pake ./dist --name MyTool` 打包。完整 agent 契约见 [llms.txt](llms.txt)。安装官方 skill 在 Claude Code 里运行 `/plugin marketplace add tw93/Pake` 和 `/plugin install pake@pake`,在 Codex 里运行 `codex plugin marketplace add tw93/Pake` 和 `codex plugin add pake@pake`。
把下面这段复制给你的 AI agent 即可开始:
diff --git a/plugins/pake/.codex-plugin/plugin.json b/plugins/pake/.codex-plugin/plugin.json
new file mode 100644
index 00000000..a6962f31
--- /dev/null
+++ b/plugins/pake/.codex-plugin/plugin.json
@@ -0,0 +1,19 @@
+{
+ "name": "pake",
+ "description": "Package any website or local web build into a lightweight desktop app with Pake CLI.",
+ "version": "1.0.0",
+ "author": { "name": "tw93" },
+ "homepage": "https://github.com/tw93/Pake",
+ "skills": "./skills/",
+ "interface": {
+ "displayName": "Pake",
+ "shortDescription": "Turn websites into lightweight desktop apps",
+ "longDescription": "Package websites or local web builds with Pake CLI, including app configuration, icons, proxies, and machine-readable build results.",
+ "developerName": "tw93",
+ "category": "Productivity",
+ "capabilities": ["Read", "Write"],
+ "defaultPrompt": [
+ "Use Pake to package a website or local web build as a desktop app."
+ ]
+ }
+}