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
feat(plugins): version the npm packages apart from the plugin
0x0a0b8a8f7e5ab
diff --git a/plugins/ego/README.md b/plugins/ego/README.mdindex 3bae6b9..788ab16 100644--- a/plugins/ego/README.md+++ b/plugins/ego/README.md@@ -42,7 +42,9 @@ root. The GitHub Copilot ZIP carries its marketplace file the same way, becauseCopilot CLI deprecates installing a plugin directly from a local path.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;+be confused by package caches. They are versioned apart from the plugin:+`npmVersion` in `package.json` sets their version, while the archive names and+the Pi gallery image follow the plugin version. All ten packages contain real Skill files;none depends on the source checkout.Every host that reads a plugin logo uses the Skill'sdiff --git a/plugins/ego/package.json b/plugins/ego/package.jsonindex 60426b4..53918de 100644--- a/plugins/ego/package.json+++ b/plugins/ego/package.json@@ -37,6 +37,7 @@"deepseek-harness": "@ego-lite/dsh-plugin","pi": "@ego-lite/pi-plugin"},+ "npmVersion": "1.0.0","keywords": ["agent-plugin","browser",diff --git a/plugins/ego/tests/plugin-packaging.test.mjs b/plugins/ego/tests/plugin-packaging.test.mjsindex 08e4475..441f8cc 100644--- a/plugins/ego/tests/plugin-packaging.test.mjs+++ b/plugins/ego/tests/plugin-packaging.test.mjs@@ -67,7 +67,7 @@ function writeJson(path, value) {write(path, `${JSON.stringify(value, null, 2)}\n`);}-function addPlugin(root, name, version, skillName, npmPackages) {+function addPlugin(root, name, version, skillName, npmPackages, npmVersion) {const pluginRoot = join(root, "plugins", name);const manifest = {name,@@ -103,6 +103,7 @@ function addPlugin(root, name, version, skillName, npmPackages) {},dsh: { bundle: { patch: "./cordis.patch.yml" } },npmPackages,+ npmVersion,keywords: ["agent-plugin"],});write(join(pluginRoot, "index.js"), "export default async () => ({});\n");@@ -140,7 +141,7 @@ function createFixture() {join(repositoryRoot, "plugins", "scripts", "package-plugins.mjs"),join(root, "plugins", "scripts", "package-plugins.mjs"),);- addPlugin(root, "ego", "1.3.1", "ego-browser", npmNames);+ addPlugin(root, "ego", "1.3.1", "ego-browser", npmNames, "1.0.0");addPlugin(root, "sample", "2.4.0", "sample-skill");return root;}@@ -262,7 +263,12 @@ function assertArtifacts(root, output, name, version, skillName) {"only ego names its npm packages; other plugins derive theirs",);assert.equal(pkg.npmPackages, undefined);- assert.equal(pkg.version, version);+ assert.equal(pkg.npmVersion, undefined);+ assert.equal(+ pkg.version,+ sourcePackage.npmVersion ?? version,+ "npm packages take npmVersion when the plugin sets one",+ );assert.equal(pkg.scripts,undefined,@@ -286,7 +292,7 @@ function assertArtifacts(root, output, name, version, skillName) {assert.equal(pkg.pi.image,`https://raw.githubusercontent.com/citrolabs/ego-lite/v${sourcePackage.version}/skills/ego-browser/assets/logo.png`,- "the gallery image is pinned to the release tag",+ "the gallery image is pinned to the plugin's release tag",);} else {assert.deepEqual(pkg.exports, {diff --git a/plugins/scripts/package-plugins.mjs b/plugins/scripts/package-plugins.mjsindex d70420c..46b4846 100755--- a/plugins/scripts/package-plugins.mjs+++ b/plugins/scripts/package-plugins.mjs@@ -389,6 +389,8 @@ async function packagePlugin(repositoryRoot, name, outputRoot) {name:sourcePackage.npmPackages?.[target.id] ??`${sourcePackage.name}-${target.id}`,+ // npm releases may be numbered apart from the plugin.+ version: sourcePackage.npmVersion ?? sourcePackage.version,files: ["LICENSE", "README.md", "skills", ...target.files],keywords: [...target.keywords, ...sourcePackage.keywords],exports: target.exports,@@ -396,6 +398,7 @@ async function packagePlugin(repositoryRoot, name, outputRoot) {};delete pkg.scripts;delete pkg.npmPackages;+ delete pkg.npmVersion;if (target.id === "deepseek-harness") {const patchPath = join(payloadRoot, "cordis.patch.yml");const patch = await readFile(patchPath, "utf8");