Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
"plugins": [
{
"name": "ecc",
"source": "./",
"source": {
"source": "github",
"repo": "affaan-m/ECC"
},
"description": "Harness-native ECC operator layer - 67 agents, 281 skills, 94 legacy command shims, reusable hooks, rules, selective install profiles, and production-ready workflows for Claude Code, Codex, OpenCode, Cursor, and related agent harnesses",
"version": "2.1.0",
"author": {
Expand Down
14 changes: 14 additions & 0 deletions tests/plugin-manifest.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,20 @@ test('claude marketplace.json plugin version matches package.json', () => {
assert.strictEqual(claudeMarketplace.plugins[0].version, expectedVersion);
});

test('claude marketplace.json plugin source is a remote-sync object, not a string (#2542)', () => {
// Claude Cowork's REMOTE marketplace sync (server-side clone) rejects string
// sources such as "./" with:
// External plugin sources must be objects with a 'source' field
// (github, url, or git-subdir).
// Local `/plugin marketplace add` tolerates the string shorthand, which is why
// the CLI succeeds while Cowork fails. Keep the object form so remote sync works.
const src = claudeMarketplace.plugins[0].source;
assert.ok(src && typeof src === 'object' && !Array.isArray(src), `Expected plugins[0].source to be an object, got: ${JSON.stringify(src)}`);
// Assert the exact expected remote-sync object so an incomplete/partial object
// form (missing `repo`, wrong `source`, or extra keys) cannot satisfy the test.
assert.deepStrictEqual(src, { source: 'github', repo: 'affaan-m/ECC' }, `Expected plugins[0].source to be exactly { source: 'github', repo: 'affaan-m/ECC' }, got: ${JSON.stringify(src)}`);
});

// ── Codex plugin manifest ─────────────────────────────────────────────────────
// Per official docs: https://platform.openai.com/docs/codex/plugins
// - .codex-plugin/plugin.json is the required manifest
Expand Down
Loading