diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index e97e23e..b1ac01b 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -10,7 +10,7 @@ "plugins": [ { "name": "graphify", - "source": "./", + "source": "./plugins/graphify", "description": "Search indexed code, trace dependencies, assess change impact, and retrieve repository memory through Graphify's authenticated MCP server.", "category": "development" } diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index b711731..6bb6d0a 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -22,4 +22,6 @@ jobs: - name: Install Claude Code CLI run: npm install -g @anthropic-ai/claude-code@2.1.326 - name: Validate the plugin - run: claude plugin validate . --strict --profile directory + run: claude plugin validate plugins/graphify --strict --profile directory + - name: Validate the marketplace + run: claude plugin validate . diff --git a/README.md b/README.md index ef7ef5a..c4261e0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ -![Graphify](assets/logo.png) # Graphify @@ -46,7 +45,7 @@ This repository is the Claude Code plugin only. 1. Sign in at [app.graphify.com](https://app.graphify.com), connect a repository you are allowed to use, and wait until indexing finishes. 2. Install the plugin as above. -3. When Claude Code asks you to sign in to Graphify, finish the browser prompt and return. There is no API key to paste into this repo. You may need to sign in again when a session expires. +3. When Claude Code asks you to sign in to Graphify, finish the browser prompt and return. Nothing needs to be pasted into this repo; sign-in happens in the browser. You may need to sign in again when a session expires. Ask Claude to list your Graphify workspaces and repositories, then name the repository you want. Confirm before it changes workspace. `set_workspace` can change the workspace selected for later sessions. diff --git a/docs/claude-submission.md b/docs/claude-submission.md index 174415f..faa356d 100644 --- a/docs/claude-submission.md +++ b/docs/claude-submission.md @@ -36,7 +36,7 @@ The portal reads the public listing from `plugin.json` and `README.md`. Do not t | Support contact | safi@graphify.com | Use this on the form. `plugin.json` `supportUrl` is https://graphify.com/contact | | Privacy URL | https://graphify.com/privacy | `plugin.json` `privacyPolicyUrl` | | Terms URL | https://graphify.com/terms | `plugin.json` `termsOfServiceUrl` | -| Logo | `assets/logo.png` | `plugin.json` `icon` is `./assets/logo.png`. PNG, 400 by 400, the same file as the Cursor plugin logo | +| Logo | `plugins/graphify/assets/logo.png` | `plugin.json` `icon` is `./assets/logo.png`. PNG, 400 by 400, the same file as the Cursor plugin logo | ## Data handling diff --git a/.claude-plugin/plugin.json b/plugins/graphify/.claude-plugin/plugin.json similarity index 70% rename from .claude-plugin/plugin.json rename to plugins/graphify/.claude-plugin/plugin.json index 6010397..87bb5a4 100644 --- a/.claude-plugin/plugin.json +++ b/plugins/graphify/.claude-plugin/plugin.json @@ -1,6 +1,5 @@ { "name": "graphify", - "displayName": "Graphify", "version": "0.1.2", "description": "Search indexed code, trace dependencies, assess change impact, and retrieve repository memory through Graphify's authenticated MCP server.", "author": { @@ -20,8 +19,5 @@ "symbols" ], "icon": "./assets/logo.png", - "documentationUrl": "https://docs.graphify.com/integrations/claude-code", - "supportUrl": "https://graphify.com/contact", - "privacyPolicyUrl": "https://graphify.com/privacy", - "termsOfServiceUrl": "https://graphify.com/terms" + "privacyPolicyUrl": "https://graphify.com/privacy" } diff --git a/.mcp.json b/plugins/graphify/.mcp.json similarity index 100% rename from .mcp.json rename to plugins/graphify/.mcp.json diff --git a/assets/logo.png b/plugins/graphify/assets/logo.png similarity index 100% rename from assets/logo.png rename to plugins/graphify/assets/logo.png diff --git a/skills/graphify/SKILL.md b/plugins/graphify/skills/graphify/SKILL.md similarity index 100% rename from skills/graphify/SKILL.md rename to plugins/graphify/skills/graphify/SKILL.md diff --git a/scripts/validate-plugin.mjs b/scripts/validate-plugin.mjs index 26d25e3..2a71aa0 100644 --- a/scripts/validate-plugin.mjs +++ b/scripts/validate-plugin.mjs @@ -38,13 +38,13 @@ function requireString(object, key, label) { return object[key]; } -const plugin = readJson(".claude-plugin/plugin.json"); +const PLUGIN_DIR = "plugins/graphify"; +const plugin = readJson(`${PLUGIN_DIR}/.claude-plugin/plugin.json`); const marketplace = readJson(".claude-plugin/marketplace.json"); -const mcp = readJson(".mcp.json"); +const mcp = readJson(`${PLUGIN_DIR}/.mcp.json`); const allowedPluginFields = new Set([ "name", - "displayName", "version", "description", "author", @@ -53,10 +53,7 @@ const allowedPluginFields = new Set([ "license", "keywords", "icon", - "documentationUrl", - "supportUrl", "privacyPolicyUrl", - "termsOfServiceUrl", ]); if (plugin) { @@ -68,7 +65,6 @@ if (plugin) { if (plugin.name !== "graphify") { fail('plugin.json name must stay "graphify"'); } - requireString(plugin, "displayName", "plugin.json displayName"); requireString(plugin, "version", "plugin.json version"); requireString(plugin, "description", "plugin.json description"); if (plugin.license !== "Apache-2.0") { @@ -86,7 +82,7 @@ if (plugin) { if (!Array.isArray(plugin.keywords) || plugin.keywords.length === 0) { fail("plugin.json keywords must be a nonempty array"); } - for (const urlField of ["documentationUrl", "supportUrl", "privacyPolicyUrl", "termsOfServiceUrl"]) { + for (const urlField of ["privacyPolicyUrl"]) { const value = requireString(plugin, urlField, `plugin.json ${urlField}`); if (value && !value.startsWith("https://")) { fail(`plugin.json ${urlField} must be an https URL`); @@ -95,7 +91,7 @@ if (plugin) { if (plugin.icon !== "./assets/logo.png") { fail('plugin.json icon must be "./assets/logo.png"'); } else { - const logo = path.join(root, "assets/logo.png"); + const logo = path.join(root, PLUGIN_DIR, "assets/logo.png"); if (!existsSync(logo) || !statSync(logo).isFile()) { fail("assets/logo.png is missing"); } @@ -117,8 +113,8 @@ if (marketplace) { if (entry.name !== "graphify") { fail('marketplace plugin name must be "graphify"'); } - if (entry.source !== "./") { - fail('marketplace plugin source must be "./"'); + if (entry.source !== "./plugins/graphify") { + fail('marketplace plugin source must be "./plugins/graphify"'); } requireString(entry, "description", "marketplace plugin description"); } @@ -143,7 +139,7 @@ if (mcp) { } } -const skillPath = path.join(root, "skills/graphify/SKILL.md"); +const skillPath = path.join(root, PLUGIN_DIR, "skills/graphify/SKILL.md"); if (!existsSync(skillPath)) { fail("skills/graphify/SKILL.md is missing"); } else {