mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-08-28 05:25:25 +00:00
chore: Sync Claude plugin manifests with the 1.6.6 release (#2090)
* Initial plan * fix: sync Claude plugin manifest versions * test: fold manifest sync check into existing node suite * chore(autofix): apply prettier + eslint fixes via /autofix command * test: run manifest sync guard in always-on suite --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
2cf7e7fa88
commit
689e6ef1f8
4 changed files with 37 additions and 3 deletions
|
|
@ -11,7 +11,7 @@
|
|||
"plugins": [
|
||||
{
|
||||
"name": "gitnexus",
|
||||
"version": "1.3.3",
|
||||
"version": "1.6.6",
|
||||
"source": "./gitnexus-claude-plugin",
|
||||
"description": "Code intelligence powered by a knowledge graph. Provides execution flow tracing, blast radius analysis, and augmented search across your codebase."
|
||||
}
|
||||
|
|
|
|||
|
|
@ -157,7 +157,12 @@ routes between two modes based on the triggering event:
|
|||
suffix; RC tags are excluded at trigger via a negative glob). Publishes to
|
||||
the `latest` dist-tag with a changelog-backed GitHub release. Maintainers
|
||||
are expected to tag from `main` as a convention; the workflow itself does
|
||||
not enforce branch reachability. No Docker build (RC-only).
|
||||
not enforce branch reachability. No Docker build (RC-only). Before cutting a
|
||||
stable release, keep `gitnexus/package.json`,
|
||||
`gitnexus-claude-plugin/.claude-plugin/plugin.json`,
|
||||
`.claude-plugin/marketplace.json`, and the matching `CHANGELOG.md` entry in
|
||||
lockstep — the always-on `gitnexus` unit suite now fails if those manifest
|
||||
versions drift.
|
||||
- **Release-candidate mode** — runs on every push to `main` (typically a
|
||||
merged PR) plus manual `workflow_dispatch`. Docs-only changes are skipped
|
||||
via `paths-ignore`. Publishes to the `rc` dist-tag with version
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "gitnexus",
|
||||
"description": "Code intelligence powered by a knowledge graph. Provides execution flow tracing, blast radius analysis, and augmented search across your codebase.",
|
||||
"version": "1.3.6",
|
||||
"version": "1.6.6",
|
||||
"author": {
|
||||
"name": "GitNexus"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,5 +1,14 @@
|
|||
import fs from 'node:fs/promises';
|
||||
import path from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { describe, it, expect, vi } from 'vitest';
|
||||
|
||||
const REPO_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..', '..');
|
||||
|
||||
async function readRepoJson<T>(relativePath: string): Promise<T> {
|
||||
return JSON.parse(await fs.readFile(path.join(REPO_ROOT, relativePath), 'utf8')) as T;
|
||||
}
|
||||
|
||||
// Mock all the heavy imports before importing index
|
||||
vi.mock('../../src/cli/analyze.js', () => ({
|
||||
analyzeCommand: vi.fn(),
|
||||
|
|
@ -20,6 +29,26 @@ describe('CLI commands', () => {
|
|||
const pkg = await import('../../package.json', { with: { type: 'json' } });
|
||||
expect(pkg.default.version).toMatch(/^\d+\.\d+\.\d+/);
|
||||
});
|
||||
|
||||
it('keeps Claude plugin manifests aligned with the gitnexus release version', async () => {
|
||||
const pkg = await import('../../package.json', { with: { type: 'json' } });
|
||||
const pluginManifest = await readRepoJson<{ version: string }>(
|
||||
'gitnexus-claude-plugin/.claude-plugin/plugin.json',
|
||||
);
|
||||
const marketplaceManifest = await readRepoJson<{
|
||||
plugins?: Array<{ name: string; version: string }>;
|
||||
}>('.claude-plugin/marketplace.json');
|
||||
|
||||
expect(Array.isArray(marketplaceManifest.plugins)).toBe(true);
|
||||
|
||||
const gitnexusEntries = (marketplaceManifest.plugins ?? []).filter(
|
||||
(plugin) => plugin.name === 'gitnexus',
|
||||
);
|
||||
|
||||
expect(gitnexusEntries).toHaveLength(1);
|
||||
expect(pluginManifest.version).toBe(pkg.default.version);
|
||||
expect(gitnexusEntries[0]?.version).toBe(pkg.default.version);
|
||||
});
|
||||
});
|
||||
|
||||
describe('package.json scripts', () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue