Files
agent-skills/scripts/validate-versions-test.js
T
Andre Brait 9941ff26ca docs(omp): replace native bootstrap with marketplace setup guide
OMP installs the existing Claude Code marketplace plugin and routes skills
natively, so the bootstrap extension stacked a second router (see #574).
Drop the extension, root package.json, and its test; keep the setup guide
and README entry, now pointing at the marketplace install, with the OMP
tool mapping as a doc section.
2026-10-02 05:49:38 +00:00

32 lines
905 B
JavaScript

"use strict";
const assert = require("node:assert/strict");
const { readFileSync } = require("node:fs");
const test = require("node:test");
const manifestPaths = [
"plugin.json",
".codex-plugin/plugin.json",
".claude-plugin/plugin.json",
".claude-plugin/marketplace.json",
".agents/plugins/marketplace.json",
];
function readManifestVersion(manifestPath) {
const manifest = JSON.parse(readFileSync(manifestPath, "utf8"));
return manifest.version ?? manifest.plugins?.[0]?.version;
}
test("all plugin manifests use the root plugin.json version", () => {
const expectedVersion = readManifestVersion("plugin.json");
assert.ok(expectedVersion, "plugin.json must define a version");
for (const manifestPath of manifestPaths) {
assert.equal(
readManifestVersion(manifestPath),
expectedVersion,
`${manifestPath} must use version ${expectedVersion}`,
);
}
});