The fastest browser for AI agents to run browser automation, built for sharing your logged-in browser state with your AI agents, like Codex or Claude Code, without disturbing you. Zero cost, zero config.
JavaScript agent-skillsai-agentautomationbrowserbrowser-automationclaude-codecodexhermes-agentskillsskills-sh
fix(plugins): align host packages with current host specs
0x0ca6ceeb9e510
diff --git a/plugins/ego/.claude-plugin/plugin.json b/plugins/ego/.claude-plugin/plugin.jsonindex 22c07ec..a501372 100644--- a/plugins/ego/.claude-plugin/plugin.json+++ b/plugins/ego/.claude-plugin/plugin.json@@ -6,5 +6,6 @@"name": "citrolabs","email": "[email protected]"},- "homepage": "https://github.com/citrolabs/ego-lite"+ "homepage": "https://github.com/citrolabs/ego-lite",+ "icon": "./skills/ego-browser/assets/logo.png"}diff --git a/plugins/ego/.cursor-plugin/plugin.json b/plugins/ego/.cursor-plugin/plugin.jsonindex 10da3bb..ae4600e 100644--- a/plugins/ego/.cursor-plugin/plugin.json+++ b/plugins/ego/.cursor-plugin/plugin.json@@ -11,5 +11,8 @@"repository": "https://github.com/citrolabs/ego-lite","license": "MIT","keywords": ["browser", "automation", "skill", "playwright"],+ "logo": "skills/ego-browser/assets/logo.png",+ "category": "developer-tools",+ "tags": ["browser", "automation", "testing"],"skills": "./skills/"}diff --git a/plugins/ego/.workbuddy-plugin/plugin.json b/plugins/ego/.workbuddy-plugin/plugin.jsondeleted file mode 100644index ebd3933..0000000--- a/plugins/ego/.workbuddy-plugin/plugin.json+++ /dev/null@@ -1,15 +0,0 @@-{- "name": "ego",- "displayName": "ego",- "version": "2.2.0",- "description": "Browser automation with the ego-browser Skill",- "author": {- "name": "citrolabs",- "email": "[email protected]"- },- "homepage": "https://github.com/citrolabs/ego-lite",- "repository": "https://github.com/citrolabs/ego-lite",- "license": "MIT",- "keywords": ["browser", "automation", "skill", "playwright"],- "skills": ["./skills/ego-browser"]-}diff --git a/plugins/ego/README.md b/plugins/ego/README.mdindex 8b254c8..1edb206 100644--- a/plugins/ego/README.md+++ b/plugins/ego/README.md@@ -1,6 +1,6 @@# ego agent plugin-Package the same `ego-browser` Skill for nine agent hosts. Each distribution+Package the same `ego-browser` Skill for ten agent hosts. Each distributioncontains only its host entry points, a complete copy of the canonical Skill,and installation instructions for that host.@@ -12,7 +12,7 @@ and installation instructions for that host.## Packaging-From the repository root, build all nine artifacts with one command:+From the repository root, build all ten artifacts with one command:```bashnpm --prefix plugins/ego run package@@ -20,29 +20,36 @@ npm --prefix plugins/ego run packageThe output directory is `dist/plugins/ego-v2.2.0/`:-| Host | Artifact | Contents |-| ---------------- | --------------------------------- | --------------------------------------------------- |-| Claude Code | `ego-claude-code-v2.2.0.zip` | Claude plugin |-| Codex | `ego-codex-v2.2.0.zip` | Codex plugin at the archive root, plus marketplace |-| Cursor | `ego-cursor-v2.2.0.zip` | Cursor plugin |-| GitHub Copilot | `ego-github-copilot-v2.2.0.zip` | Claude-compatible plugin |-| Grok Build | `ego-grok-build-v2.2.0.zip` | Agent Plugins manifest and Skill |-| WorkBuddy | `ego-workbuddy-v2.2.0.zip` | Local marketplace and WorkBuddy/CodeBuddy manifests |-| QwenWork Desktop | `ego-qwenwork-v2.2.0.zip` | Claude-compatible expert kit |-| OpenCode | `ego-opencode-v2.2.0.tgz` | `@citrolabs/ego-opencode` npm package |-| DeepSeek Harness | `ego-deepseek-harness-v2.2.0.tgz` | `@citrolabs/ego-deepseek-harness` npm bundle |+| Host | Artifact | Contents |+| ---------------- | --------------------------------- | -------------------------------------------------- |+| Claude Code | `ego-claude-code-v2.2.0.zip` | Claude plugin |+| Codex | `ego-codex-v2.2.0.zip` | Codex plugin at the archive root, plus marketplace |+| Cursor | `ego-cursor-v2.2.0.zip` | Cursor plugin |+| GitHub Copilot | `ego-github-copilot-v2.2.0.zip` | Agent Plugins plugin, plus marketplace |+| Grok Build | `ego-grok-build-v2.2.0.zip` | Agent Plugins and Claude-compatible manifests |+| WorkBuddy | `ego-workbuddy-v2.2.0.zip` | Local marketplace and CodeBuddy manifest |+| QwenWork Desktop | `ego-qwenwork-v2.2.0.zip` | Claude-compatible expert kit |+| OpenCode | `ego-opencode-v2.2.0.tgz` | `@citrolabs/ego-opencode` npm package |+| DeepSeek Harness | `ego-deepseek-harness-v2.2.0.tgz` | `@citrolabs/ego-deepseek-harness` npm bundle |+| Pi | `ego-pi-v2.2.0.tgz` | `@citrolabs/ego-pi` Pi package |Every ZIP includes a host-specific `README.md` at its root; npm archives includeit under `package/`. The WorkBuddy ZIP contains a marketplace root with theplugin under `plugins/ego/`. Other ZIPs start directly at the plugin root. TheCodex ZIP starts there too and carries its marketplace file alongside, becausethe public plugin directory rejects an archive whose manifest is not at the-root.+root. The GitHub Copilot ZIP carries its marketplace file the same way, because+Copilot CLI deprecates installing a plugin directly from a local path.-The two npm packages have separate names and exports so their adapters cannot-be confused by package caches. All nine packages contain real Skill files;+The three npm packages have separate names and exports so their adapters cannot+be confused by package caches. All ten packages contain real Skill files;none depends on the source checkout or its symlink.+Every host that reads a plugin logo uses the Skill's+`assets/logo.png`: Codex `interface.logo`, Claude Code `icon`, Cursor `logo`,+and the Pi gallery `pi.image`. The Codex composer icon is the same mark at+256 px.+Override the output parent directory, or package all plugin directories:```bash@@ -51,7 +58,7 @@ node plugins/scripts/package-plugins.mjs --all```Each plugin gets its own `<name>-v<version>/` directory. Rebuilding replaces the-nine named artifacts only after all nine have been built. A build failure leaves+ten named artifacts only after all ten have been built. A build failure leavesprevious artifacts intact. Older universal ZIP/npm outputs outside the versiondirectory are left untouched and are no longer generated.@@ -75,8 +82,13 @@ claude --plugin-dir /absolute/path/to/ego-claude-code```Use `/ego:ego-browser`. This flag loads the plugin for that session. Persistent-installation uses a plugin marketplace; the repository marketplace exposes-`ego@ego-agent-skills` when that source version is available.+installation uses a plugin marketplace. The repository marketplace exposes+`ego@ego-agent-skills` at the version on its default branch:++```bash+claude plugin marketplace add citrolabs/ego-lite+claude plugin install ego@ego-agent-skills+```See the [Claude Code plugin reference](https://code.claude.com/docs/en/plugins-reference).@@ -111,61 +123,80 @@ See the [OpenAI plugin guide](https://developers.openai.com/plugins/build/plugin### Cursor-Extract the Cursor ZIP and load it with Cursor CLI:+Extract the Cursor ZIP and load it for a Cursor CLI session:```bash-cursor-agent --plugin-dir /absolute/path/to/ego-cursor+agent --plugin-dir /absolute/path/to/ego-cursor```-The package declares its Skill through `.cursor-plugin/plugin.json`. Use-`/ego-browser` in the session. This command does not install a Cursor Desktop-marketplace entry.+`cursor-agent` is the legacy name of the `agent` command. To load the plugin in+Cursor Desktop, extract the ZIP to `~/.cursor/plugins/local/ego`, then run+**Developer: Reload Window**.++The package declares its Skill, logo, category, and tags through+`.cursor-plugin/plugin.json`. Use `/ego-browser` in the session. The Cursor+Marketplace takes submissions as public Git repositories, not ZIP uploads.++See the [Cursor plugin guide](https://cursor.com/docs/plugins).### GitHub Copilot-Extract the GitHub Copilot ZIP and load it with Copilot CLI:+Extract the GitHub Copilot ZIP into a persistent directory. Copilot reads its+root `plugin.json`, an Agent Plugins 1.0 manifest, and+`.github/plugin/marketplace.json` lists the plugin at the archive root. Install+it with Copilot CLI:```bash-copilot --plugin-dir /absolute/path/to/ego-github-copilot+copilot plugin marketplace add /absolute/path/to/ego-github-copilot+copilot plugin install ego@ego-github-copilot-local```-Use `/ego-browser`. This local session uses the packaged Claude-compatible-manifest. VS Code marketplace installation is a separate host workflow.+To load it for one session instead, run+`copilot --plugin-dir /absolute/path/to/ego-github-copilot`. Use `/ego-browser`,+and confirm that `copilot skill list` shows `ego-browser` under **Plugin+skills**. Copilot CLI deprecates `copilot plugin install` from a local path, so+use the marketplace route for a persistent install.-Check the Skill's source when a personal `ego-browser` Skill is already-installed. In the tested Copilot CLI, the personal copy takes precedence over-the plugin copy, and a disabled personal copy prevents the plugin Skill from-being invoked. Resolve that duplicate and enable the plugin Skill before use.+Personal and project Skills take precedence over plugin Skills with the same+name. When a personal `ego-browser` Skill is installed, `copilot skill list`+shows it under **Personal skills** and hides the plugin copy. Remove that+duplicate before use.See the [GitHub Copilot plugin guide](https://docs.github.com/en/copilot/concepts/agents/about-plugins).### Grok Build-Extract the Grok Build ZIP, then install the local directory:+Extract the Grok Build ZIP, check it, then install the local directory:```bash-grok plugin install /absolute/path/to/ego-grok-build+grok plugin validate /absolute/path/to/ego-grok-build+grok plugin install /absolute/path/to/ego-grok-build --trust```-Use `/ego-browser`. The package contains the Agent Plugins `plugin.json` and-Skill directory. Remove it with `grok plugin uninstall ego`.+Without `--trust`, `grok plugin install` exits and tells you to re-run it with+`--trust`. Use `/ego-browser`. Remove it with `grok plugin uninstall ego`.++Grok Build reads the Agent Plugins `plugin.json` first. The package also+carries `.claude-plugin/plugin.json`, because the Grok plugin marketplace+catalog reads only branded manifests.### WorkBuddy-Extract the WorkBuddy ZIP as a marketplace root. It contains-`.claude-plugin/marketplace.json` and `plugins/ego/`, including-`.codebuddy-plugin/plugin.json`, `.workbuddy-plugin/plugin.json`, and the-Claude-compatible manifest.+The WorkBuddy ZIP is a marketplace root. It contains+`.codebuddy-plugin/marketplace.json` and `plugins/ego/` with+`.codebuddy-plugin/plugin.json`, the manifest WorkBuddy reads first.-For WorkBuddy versions that expose **添加市场** with local sources, add the-absolute path of the extracted root, select **ego-workbuddy-local**, and install-**ego**. Start a new task and ask it to use the ego-browser Skill.+Extract the ZIP into a persistent directory. In **添加市场**, enter the absolute+path of the extracted root, select **ego-workbuddy-local**, install **ego**,+then start a new task and ask it to use the ego-browser Skill. A directory+marketplace runs the plugin from that directory, so keep it in place. The+bundled CodeBuddy CLI also accepts the ZIP path itself as a marketplace and+copies the plugin into its cache.-Local marketplace import still needs verification in WorkBuddy Desktop. The-[official WorkBuddy plugin guide](https://www.codebuddy.cn/docs/workbuddy/From-Beginner-to-Expert-Guide/Function-Description/Plug-In)-documents marketplace installation but does not establish a direct ZIP import-workflow. If the installed version only accepts a published marketplace, this-local archive must be distributed through that supported marketplace first.+The repository is a marketplace too: add `citrolabs/ego-lite` and install+`ego@ego-agent-skills`, which tracks the version on its default branch.++See the [CodeBuddy plugin marketplace guide](https://www.codebuddy.cn/docs/cli/plugin-marketplaces).### QwenWork Desktop@@ -173,45 +204,48 @@ Upload the QwenWork ZIP directly through **扩展 → 专家套件 → + 添加then click **安装**. Start a new task and ask it to use ego-browser.This package uses `.claude-plugin/plugin.json`, an explicitly supported expert-kit format. The older `.qoder-plugin/plugin.json` source manifest is not used-for this artifact. See the [QwenWork expert-kit guide](https://qwenwork.cn/docs/desktop/expert-kits).+kit format. QwenWork was formed from QoderWork, MuleRun, and Wukong; the+source `.qoder-plugin/plugin.json` manifest from QoderWork is not used for this+artifact. See the [QwenWork expert-kit guide](https://qwenwork.cn/docs/desktop/expert-kits).### OpenCode-Extract the local npm archive into a persistent directory, then register its-JavaScript entry point:+Extract the local npm archive into a persistent directory, then register the+extracted package directory:```bashmkdir -p /absolute/path/to/ego-opencodetar -xzf /absolute/path/to/ego-opencode-v2.2.0.tgz -C /absolute/path/to/ego-opencode-opencode plugin "file:///absolute/path/to/ego-opencode/package/index.js" -g+opencode plugin /absolute/path/to/ego-opencode/package -g```-Keep the extracted directory in place. OpenCode 1.14.30 accepts a local `.tgz`-in its installer but fails to resolve that archive's server entry at startup;-the extracted file URL loads successfully. Remove any earlier `.tgz` entry-from the config's `plugin` array when switching to the file URL.+Keep the extracted directory in place. OpenCode does not install the `.tgz`+itself. Once the package is published, install it by name instead:+`opencode plugin @citrolabs/ego-opencode -g`.The package is named `@citrolabs/ego-opencode`. Its `.` and `./server` exports-load `index.js`, which adds the packaged Skill instructions and `/ego-browser`-command. To remove it, delete its entry from the applicable `opencode.json`-`plugin` array.+load `index.js`, which adds the packaged `skills/` directory to OpenCode's+Skill paths. OpenCode then lists ego-browser as a Skill and offers it as the+`/ego-browser` command. To remove the plugin, delete its entry from the+`plugin` array of the applicable `opencode.json` or `opencode.jsonc`.See the [OpenCode plugin guide](https://opencode.ai/docs/plugins/).### DeepSeek Harness-Extract the npm archive into a persistent directory, then add its `package/`-directory to the desired profile:+Add the npm archive to the desired profile:```bash-mkdir -p /absolute/path/to/ego-deepseek-harness-tar -xzf /absolute/path/to/ego-deepseek-harness-v2.2.0.tgz -C /absolute/path/to/ego-deepseek-harness-dsh plugin --profile web add /absolute/path/to/ego-deepseek-harness/package+dsh plugin --profile web add /absolute/path/to/ego-deepseek-harness-v2.2.0.tgzdsh --profile web --dump-configdsh --profile web```+DSH copies the archive into the profile. Once the package is published, add it+by name instead, `dsh plugin --profile web add @citrolabs/ego-deepseek-harness`;+only a package added by name receives update notices. The bundle declares+`engines.dsh` as `>=0.2.0 <0.3.0`, and DSH refuses it outside that range.+The package is named `@citrolabs/ego-deepseek-harness`. Its bundle patch loads`@citrolabs/ego-deepseek-harness/dsh` and registers the packaged Skill. Use`/ego-browser`. Remove it with@@ -219,17 +253,41 @@ The package is named `@citrolabs/ego-deepseek-harness`. Its bundle patch loadsAn existing personal `ego-browser` Skill takes precedence over this bundledprovider. Check the base directory returned by the Skill tool: it must point-inside this extracted package when validating the plugin. Resolve the duplicate+inside the package installed in the profile when validating the plugin. Resolve the duplicatepersonal Skill if you want named invocation to use the plugin copy.See the [DeepSeek Harness local package guide](https://github.com/deepseek-ai/deepseek-harness/blob/master/docs/user/develop/basic/publish.md).+### Pi++Install the npm package, or the downloaded archive before it is published:++```bash+pi install npm:@citrolabs/ego-pi+pi install "npm:@citrolabs/ego-pi@file:/absolute/path/to/ego-pi-v2.2.0.tgz"+```++Pass the archive through the `npm:` source: a bare `.tgz` path installs without+loading any Skill. Use `/skill:ego-browser`. Remove it with+`pi remove npm:@citrolabs/ego-pi`.++The package declares the `pi-package` keyword, which makes a published package+eligible for the [Pi package gallery](https://pi.dev/packages), and `pi.image`+for its gallery preview. The ego-browser Skill that ego lite installs in+`~/.agents/skills` takes precedence over this package copy, even when it is an+older version: Pi reports the package copy as skipped under **Skill+conflicts**. Both are the thin entry Skill, and the ego lite copy matches the+installed app.++See the [Pi packages guide](https://pi.dev/docs/latest/packages).+## Verification-Packaging tests check all nine payloads, marketplace paths, canonical Skill+Packaging tests check all ten payloads, marketplace paths, canonical Skillcontents, source symlink preservation, repeat builds, and failed-batch handling.-They load both npm adapters after extraction outside the repository. These-checks do not establish end-to-end compatibility in all nine host applications.+They load the OpenCode and DeepSeek Harness adapters after extraction outside+the repository. These checks do not establish end-to-end compatibility in all+ten host applications.After installation, confirm that the host discovers ego-browser and can run:diff --git a/plugins/ego/index.js b/plugins/ego/index.jsindex bd7ea7d..c9b8d95 100644--- a/plugins/ego/index.js+++ b/plugins/ego/index.js@@ -1,21 +1,15 @@import { fileURLToPath } from "node:url";-const skillPath = fileURLToPath(- new URL("./skills/ego-browser/SKILL.md", import.meta.url),-);+const skillsPath = fileURLToPath(new URL("./skills", import.meta.url));export const EgoBrowserPlugin = async () => ({config: async (config) => {- config.instructions ??= [];- if (!config.instructions.includes(skillPath)) {- config.instructions.push(skillPath);+ // OpenCode hands plugins its normalized config, which keeps extra Skill+ // folders in skills.paths. Each discovered Skill also becomes a command.+ config.skills ??= {};+ config.skills.paths ??= [];+ if (!config.skills.paths.includes(skillsPath)) {+ config.skills.paths.push(skillsPath);}-- config.command ??= {};- config.command["ego-browser"] ??= {- description: "Automate the browser with ego-browser",- template:- "Follow the installed ego-browser Skill for this request: $ARGUMENTS",- };},});diff --git a/plugins/ego/package.json b/plugins/ego/package.jsonindex c3b78b2..60772c1 100644--- a/plugins/ego/package.json+++ b/plugins/ego/package.json@@ -19,7 +19,6 @@".codex-plugin",".cursor-plugin",".codebuddy-plugin",- ".workbuddy-plugin",".qoder-plugin","index.js","cordis.patch.yml",@@ -34,8 +33,6 @@},"keywords": ["agent-plugin",- "deepseek-harness",- "opencode","browser","automation","skill"@@ -43,6 +40,7 @@"author": "citrolabs","license": "MIT","homepage": "https://github.com/citrolabs/ego-lite",+ "repository": "https://github.com/citrolabs/ego-lite","publishConfig": {"access": "public"}diff --git a/plugins/ego/tests/cross-host-plugin.test.mjs b/plugins/ego/tests/cross-host-plugin.test.mjsindex 09d337e..68b11ef 100644--- a/plugins/ego/tests/cross-host-plugin.test.mjs+++ b/plugins/ego/tests/cross-host-plugin.test.mjs@@ -54,7 +54,6 @@ test("branded hosts expose explicit pure-Skill manifests", () => {for (const [host, path, skills] of [["Cursor", ".cursor-plugin/plugin.json", "./skills/"],["CodeBuddy", ".codebuddy-plugin/plugin.json", ["./skills/ego-browser"]],- ["WorkBuddy", ".workbuddy-plugin/plugin.json", ["./skills/ego-browser"]],["QoderWork", ".qoder-plugin/plugin.json", ["./skills/ego-browser"]],]) {const source = read(`${pluginRoot}/${path}`);@@ -82,19 +81,12 @@ test("branded hosts expose explicit pure-Skill manifests", () => {assertPureSkillText(source, `${host} manifest`);}- assert.deepEqual(- json(`${pluginRoot}/.codebuddy-plugin/plugin.json`),- json(`${pluginRoot}/.workbuddy-plugin/plugin.json`),- "WorkBuddy's authoritative and branded manifests must not drift",- );-for (const path of ["plugin.json",".claude-plugin",".codex-plugin",".cursor-plugin",".codebuddy-plugin",- ".workbuddy-plugin",".qoder-plugin",]) {assert.ok(pkg.files.includes(path), `${path} must ship in the npm package`);@@ -239,7 +231,7 @@ test("Codex listing metadata satisfies the plugin directory", () => {}});-test("OpenCode adapter injects only instructions and the Skill slash command", async () => {+test("OpenCode adapter registers only the packaged Skill path", async () => {const pkgSource = read(`${pluginRoot}/package.json`);const pkg = JSON.parse(pkgSource);assert.equal(pkg.name, "@citrolabs/ego");@@ -258,19 +250,46 @@ test("OpenCode adapter injects only instructions and the Skill slash command", aconst hooks = await EgoBrowserPlugin({});const config = {};await hooks.config(config);+ await hooks.config(config);assert.equal(config.mcp, undefined);- assert.equal(config.instructions.length, 1);- assert.match(- config.instructions[0],- /plugins\/ego\/skills\/ego-browser\/SKILL\.md$/,+ assert.equal(config.instructions, undefined);+ assert.equal(+ config.command,+ undefined,+ "OpenCode derives /ego-browser from the Skill",);- assert.match(config.command["ego-browser"].template, /\$ARGUMENTS/);- assertPureSkillText(adapterSource, "OpenCode adapter");- assertPureSkillText(- config.command["ego-browser"].template,- "OpenCode slash command",+ // OpenCode reads only skills.paths from the normalized config, even when+ // the user's file lists Skill folders as a plain array.+ assert.equal(+ config.skills.paths.length,+ 1,+ "repeated hooks add the path once",);+ assert.match(config.skills.paths[0], /plugins\/ego\/skills$/);++ const user = { skills: { paths: ["/user/skills"], urls: [] } };+ await hooks.config(user);+ assert.deepEqual(user.skills, {+ paths: ["/user/skills", config.skills.paths[0]],+ urls: [],+ });+ assertPureSkillText(adapterSource, "OpenCode adapter");+});++test("every host that shows a plugin logo uses the Skill logo", () => {+ const logo = "skills/ego-browser/assets/logo.png";+ for (const [label, value] of [+ [+ "Codex interface.logo",+ json(`${pluginRoot}/.codex-plugin/plugin.json`).interface.logo,+ ],+ ["Claude icon", json(`${pluginRoot}/.claude-plugin/plugin.json`).icon],+ ["Cursor logo", json(`${pluginRoot}/.cursor-plugin/plugin.json`).logo],+ ]) {+ assert.equal(value.replace(/^\.\//, ""), logo, `${label} must be ${logo}`);+ }+ assert.equal(existsSync(repoFile(`${pluginRoot}/${logo}`)), true);});test("portable Skill is the standalone entry Skill without runtime tools", () => {@@ -346,21 +365,22 @@ test("plugin README documents every host as a pure-Skill install", () => {"QwenWork Desktop","OpenCode","DeepSeek Harness",+ "Pi",]) {assert.match(readme, new RegExp(`### ${host}\\b`));}assert.match(readme, /claude --plugin-dir/);assert.match(readme, /codex plugin add ego@ego-codex-local/);- assert.match(readme, /cursor-agent[\s\\]*--plugin-dir/);+ assert.match(readme, /agent --plugin-dir/);assert.match(readme, /\.cursor-plugin\/plugin\.json/);assert.match(readme, /copilot --plugin-dir/);- assert.match(readme, /grok plugin install \/absolute\/path/);+ assert.match(readme, /grok plugin install \/absolute\/path\S* --trust/);assert.match(readme, /\.codebuddy-plugin\/plugin\.json/);- assert.match(readme, /\.workbuddy-plugin\/plugin\.json/);assert.match(readme, /\.qoder-plugin\/plugin\.json/);- assert.match(readme, /opencode plugin "file:/);+ assert.match(readme, /opencode plugin \/absolute\/path/);assert.match(readme, /dsh plugin --profile web add \/absolute\/path/);+ assert.match(readme, /pi install npm:@citrolabs\/ego-pi/);assert.match(readme,new RegExp(diff --git a/plugins/ego/tests/plugin-packaging.test.mjs b/plugins/ego/tests/plugin-packaging.test.mjsindex 6ed1000..0d7dc29 100644--- a/plugins/ego/tests/plugin-packaging.test.mjs+++ b/plugins/ego/tests/plugin-packaging.test.mjs@@ -29,18 +29,30 @@ const targets = [true,],["cursor", "Cursor", [".cursor-plugin"]],- ["github-copilot", "GitHub Copilot", [".claude-plugin"]],- ["grok-build", "Grok Build", []],+ [+ "github-copilot",+ "GitHub Copilot",+ [],+ ".github/plugin/marketplace.json",+ true,+ ],+ ["grok-build", "Grok Build", [".claude-plugin"]],["workbuddy","WorkBuddy",- [".claude-plugin", ".codebuddy-plugin", ".workbuddy-plugin"],- ".claude-plugin/marketplace.json",+ [".codebuddy-plugin"],+ ".codebuddy-plugin/marketplace.json",],["qwenwork", "QwenWork Desktop", [".claude-plugin"]],["opencode", "OpenCode"],["deepseek-harness", "DeepSeek Harness"],+ ["pi", "Pi"],];+const npmKeywords = {+ opencode: "opencode",+ "deepseek-harness": "deepseek-harness",+ pi: "pi-package",+};function write(path, value) {mkdirSync(dirname(path), { recursive: true });@@ -85,6 +97,7 @@ function addPlugin(root, name, version, skillName) {"./dsh": "./dsh/src/index.js",},dsh: { bundle: { patch: "./cordis.patch.yml" } },+ keywords: ["agent-plugin"],});write(join(pluginRoot, "index.js"), "export default async () => ({});\n");write(@@ -176,7 +189,7 @@ function assertArtifacts(root, output, name, version, skillName) {assert.equal(existsSync(release),true,- "packaging must create a version directory with nine host artifacts",+ "packaging must create a version directory with ten host artifacts",);assert.deepEqual(readdirSync(release).sort(),@@ -228,9 +241,11 @@ function assertArtifacts(root, output, name, version, skillName) {} else {expected.push("package.json",- ...(id === "opencode"- ? ["index.js"]- : ["cordis.patch.yml", "dsh/src/index.js"]),+ ...{+ opencode: ["index.js"],+ "deepseek-harness": ["cordis.patch.yml", "dsh/src/index.js"],+ pi: [],+ }[id],);const pkg = JSON.parse(readFileSync(join(plugin, "package.json"), "utf8"),@@ -242,14 +257,31 @@ function assertArtifacts(root, output, name, version, skillName) {undefined,"source lifecycle and development scripts must not ship",);+ assert.deepEqual(+ pkg.keywords,+ [npmKeywords[id], ...sourcePackage.keywords],+ "each npm package names only its own host",+ );if (id === "opencode") {assert.deepEqual(pkg.exports, {".": "./index.js","./server": "./index.js",});assert.equal(pkg.dsh, undefined);+ } else if (id === "pi") {+ assert.equal(pkg.exports, undefined);+ assert.equal(pkg.dsh, undefined);+ assert.deepEqual(pkg.pi.skills, ["./skills"]);+ assert.match(+ pkg.pi.image,+ /^https:\/\/raw\.githubusercontent\.com\/citrolabs\/ego-lite\/main\/skills\/ego-browser\/assets\/logo\.png$/,+ );} else {- assert.deepEqual(pkg.exports, { "./dsh": "./dsh/src/index.js" });+ assert.deepEqual(pkg.exports, {+ "./dsh": "./dsh/src/index.js",+ "./package.json": "./package.json",+ });+ assert.deepEqual(pkg.engines, { dsh: ">=0.2.0 <0.3.0" });assert.deepEqual(pkg.dsh, {bundle: { patch: "./cordis.patch.yml" },});@@ -292,7 +324,9 @@ function assertArtifacts(root, output, name, version, skillName) {marketplace.plugins[0].source,id === "codex"? { source: "local", path: "./" }- : `./plugins/${name}`,+ : flat+ ? "./"+ : `./plugins/${name}`,);assert.deepEqual(files(contents),@@ -319,11 +353,11 @@ function assertArtifacts(root, output, name, version, skillName) {`import assert from 'node:assert/strict';import { existsSync } from 'node:fs';+ import { join } from 'node:path';import { EgoBrowserPlugin } from '@citrolabs/ego-opencode/server';const config = {};await (await EgoBrowserPlugin()).config(config);- assert.ok(existsSync(config.instructions[0]));- assert.ok(config.command['ego-browser']);+ assert.ok(existsSync(join(config.skills.paths[0], 'ego-browser', 'SKILL.md')));`,],{ cwd: packages.get("opencode"), encoding: "utf8" },@@ -357,7 +391,7 @@ function assertArtifacts(root, output, name, version, skillName) {}}-test("one command builds nine independent host packages without changing source links", () => {+test("one command builds ten independent host packages without changing source links", () => {const root = createFixture();const output = join(root, "plugins", "ego", "release-output");const link = join(root, "plugins", "ego", "skills", "ego-browser");@@ -383,7 +417,7 @@ test("one command builds nine independent host packages without changing source}});-test("--all creates nine artifacts per plugin in separate version directories", () => {+test("--all creates ten artifacts per plugin in separate version directories", () => {const root = createFixture();const output = join(root, "release");try {@@ -498,7 +532,7 @@ test("invalid selectors fail with clear errors", () => {}});-test("the documented npm command builds all nine artifacts with working isolated adapters", () => {+test("the documented npm command builds all ten artifacts with working isolated adapters", () => {const output = mkdtempSync(join(tmpdir(), "ego-plugin-npm-"));try {assertSuccess(diff --git a/plugins/scripts/package-plugins.mjs b/plugins/scripts/package-plugins.mjsindex 065ad67..779636e 100755--- a/plugins/scripts/package-plugins.mjs+++ b/plugins/scripts/package-plugins.mjs@@ -33,30 +33,59 @@ const TARGETS = [{id: "github-copilot",title: "GitHub Copilot",+ files: [],+ marketplace: ".github/plugin/marketplace.json",+ flat: true,+ },+ {+ id: "grok-build",+ title: "Grok Build",files: [".claude-plugin/plugin.json"],},- { id: "grok-build", title: "Grok Build", files: [] },{id: "workbuddy",title: "WorkBuddy",- files: [- ".claude-plugin/plugin.json",- ".codebuddy-plugin/plugin.json",- ".workbuddy-plugin/plugin.json",- ],- marketplace: ".claude-plugin/marketplace.json",+ files: [".codebuddy-plugin/plugin.json"],+ marketplace: ".codebuddy-plugin/marketplace.json",},{id: "qwenwork",title: "QwenWork Desktop",files: [".claude-plugin/plugin.json"],},- { id: "opencode", title: "OpenCode", files: ["index.js"], npm: true },+ {+ id: "opencode",+ title: "OpenCode",+ files: ["index.js"],+ npm: true,+ keywords: ["opencode"],+ exports: { ".": "./index.js", "./server": "./index.js" },+ },{id: "deepseek-harness",title: "DeepSeek Harness",files: ["cordis.patch.yml", "dsh/src/index.js"],npm: true,+ keywords: ["deepseek-harness"],+ exports: {+ "./dsh": "./dsh/src/index.js",+ "./package.json": "./package.json",+ },+ package: { engines: { dsh: ">=0.2.0 <0.3.0" } },+ },+ {+ id: "pi",+ title: "Pi",+ files: [],+ npm: true,+ keywords: ["pi-package"],+ package: {+ pi: {+ skills: ["./skills"],+ image:+ "https://raw.githubusercontent.com/citrolabs/ego-lite/main/skills/ego-browser/assets/logo.png",+ },+ },},];@@ -65,7 +94,7 @@ function usage() {node plugins/scripts/package-plugins.mjs <plugin> [--output <directory>]node plugins/scripts/package-plugins.mjs --all [--output <directory>]-Builds nine host artifacts per plugin (seven ZIPs and two npm archives).`;+Builds ten host artifacts per plugin (seven ZIPs and three npm archives).`;}function parseArguments(args) {@@ -355,21 +384,20 @@ async function packagePlugin(repositoryRoot, name, outputRoot) {...sourcePackage,name: `${sourcePackage.name}-${target.id}`,files: ["LICENSE", "README.md", "skills", ...target.files],- exports:- target.id === "opencode"- ? { ".": "./index.js", "./server": "./index.js" }- : { "./dsh": "./dsh/src/index.js" },+ keywords: [...target.keywords, ...sourcePackage.keywords],+ exports: target.exports,+ ...target.package,};delete pkg.scripts;- if (target.id === "opencode") {- delete pkg.dsh;- } else {+ if (target.id === "deepseek-harness") {const patchPath = join(payloadRoot, "cordis.patch.yml");const patch = await readFile(patchPath, "utf8");await writeFile(patchPath,patch.replaceAll(`${sourcePackage.name}/dsh`, `${pkg.name}/dsh`),);+ } else {+ delete pkg.dsh;}await writeJson(join(payloadRoot, "package.json"), pkg);}