chore(release): synchronise plugin manifest versions on engine releases

The Cursor and Codex plugin manifests had drifted from the engine
version because the previous `release-it` `after:bump` hook only
updated `.claude-plugin/plugin.json`. Replace the inline-JS hook with
`scripts/bump-plugin-versions.mjs`, which iterates every known plugin
manifest (Claude / Cursor / Codex plus the upcoming
`extension/package.json`) and skips any that don't yet exist. This
keeps every distribution channel in lockstep on subsequent releases.

Bring `.cursor-plugin/plugin.json` and `.codex-plugin/plugin.json` up
to v1.7.2 so they reflect the current engine release. Tidy up the
plugin descriptions in the same pass (replace decorative dashes with
colons, no semantic change).
This commit is contained in:
Giancarlo Erra
2026-05-02 18:30:53 +01:00
parent 2bf07d8798
commit 6a91febe45
5 changed files with 55 additions and 8 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
{
"name": "socraticode",
"version": "1.4.1",
"description": "Codebase intelligence — semantic search workflows, dependency graph analysis, and context artifact exploration for SocratiCode",
"version": "1.7.2",
"description": "Codebase intelligence: semantic search workflows, dependency graph analysis, and context artifact exploration for SocratiCode",
"author": {
"name": "Giancarlo Erra",
"email": "giancarlo@altaire.com",
@@ -22,7 +22,7 @@
"mcpServers": "./.mcp.json",
"interface": {
"displayName": "SocratiCode",
"shortDescription": "Codebase intelligence — semantic search, dependency graphs, and context artifacts",
"shortDescription": "Codebase intelligence: semantic search, dependency graphs, and context artifacts",
"longDescription": "SocratiCode provides codebase intelligence through semantic search workflows, dependency graph analysis, and context artifact exploration. Index your codebase, search with hybrid semantic + keyword search, visualize module dependencies, and manage context artifacts.",
"developerName": "Giancarlo Erra",
"category": "Development",
+2 -2
View File
@@ -5,13 +5,13 @@
"email": "giancarlo@altaire.com"
},
"metadata": {
"description": "SocratiCode — codebase intelligence plugin"
"description": "SocratiCode: codebase intelligence plugin"
},
"plugins": [
{
"name": "socraticode",
"source": "./",
"description": "Codebase intelligence — semantic search workflows, dependency graph analysis, and context artifact exploration",
"description": "Codebase intelligence: semantic search workflows, dependency graph analysis, and context artifact exploration",
"category": "development"
}
]
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "socraticode",
"version": "1.4.1",
"description": "Codebase intelligence — semantic search workflows, dependency graph analysis, and context artifact exploration for SocratiCode",
"version": "1.7.2",
"description": "Codebase intelligence: semantic search workflows, dependency graph analysis, and context artifact exploration for SocratiCode",
"author": {
"name": "Giancarlo Erra",
"email": "giancarlo@altaire.com"
+1 -1
View File
@@ -1,6 +1,6 @@
{
"hooks": {
"after:bump": "node -e \"const fs=require('fs'); const p=JSON.parse(fs.readFileSync('.claude-plugin/plugin.json','utf8')); p.version='${version}'; fs.writeFileSync('.claude-plugin/plugin.json', JSON.stringify(p,null,2)+'\\n');\""
"after:bump": "node scripts/bump-plugin-versions.mjs ${version}"
},
"git": {
"commitMessage": "chore: release v${version}",
+47
View File
@@ -0,0 +1,47 @@
#!/usr/bin/env node
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright (C) 2026 Giancarlo Erra - Altaire Limited
//
// release-it `after:bump` hook. Synchronises the version field across
// every plugin / extension manifest in the repo so a single engine
// release also bumps the Claude / Cursor / Codex plugins and the
// VS Code / Open VSX extension. Skips manifests that don't exist.
//
// Usage: node scripts/bump-plugin-versions.mjs <version>
import { existsSync, readFileSync, writeFileSync } from "node:fs";
import { resolve } from "node:path";
const MANIFESTS = [
".claude-plugin/plugin.json",
".cursor-plugin/plugin.json",
".codex-plugin/plugin.json",
"extension/package.json",
];
const version = process.argv[2];
if (!version) {
console.error("Usage: bump-plugin-versions.mjs <version>");
process.exit(1);
}
let touched = 0;
for (const rel of MANIFESTS) {
const path = resolve(process.cwd(), rel);
if (!existsSync(path)) continue;
try {
const json = JSON.parse(readFileSync(path, "utf8"));
if (json.version === version) continue;
json.version = version;
writeFileSync(path, `${JSON.stringify(json, null, 2)}\n`);
console.log(`bumped ${rel} -> ${version}`);
touched += 1;
} catch (err) {
console.error(`failed to bump ${rel}:`, err.message);
process.exit(1);
}
}
if (touched === 0) {
console.log("no manifests needed bumping");
}