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
29 changes: 14 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,22 @@ jobs:
- name: Verify plugin.json copies are in sync
run: |
set -eu
COPIES=(
".github/plugin/plugin.json"
)
failed=0
for root in plugins/*/plugin.json; do
dir=$(dirname "$root")
for rel in "${COPIES[@]}"; do
copy="$dir/$rel"
if [ ! -f "$copy" ]; then
echo "::error file=$copy::missing copy of $root"
failed=1
continue
fi
if ! diff -u "$root" "$copy"; then
echo "::error file=$copy::differs from $root"
failed=1
fi
done
copy="$dir/.claude-plugin/plugin.json"
if [ ! -f "$copy" ]; then
echo "::error file=$copy::missing copy of $root"
failed=1
continue
fi
# Strip $schema from root (not present in .claude-plugin/plugin.json) before comparing
root_stripped=$(jq 'del(.["$schema"])' "$root")
copy_content=$(jq '.' "$copy")
if [ "$root_stripped" != "$copy_content" ]; then
diff <(echo "$root_stripped") <(echo "$copy_content") || true
echo "::error file=$copy::differs from $root"
failed=1
fi
done
exit $failed
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"singleQuote": false,
"overrides": [
{
"files": ["**/plugin.json"],
"files": ["**/plugin.json", "**/mcp.json", "**/.mcp.json"],
"options": {
"parser": "json-stringify"
}
Expand Down
10 changes: 6 additions & 4 deletions docs/Development.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ Here's how a release comes together:
2. On every push to `main`, release-please quietly keeps a release pull request up to date (you'll recognize it by its `release: vX.Y.Z` title). It collects the pending changes into [CHANGELOG.md](../CHANGELOG.md) and bumps the version in every `plugin.json`.
3. When you're ready to ship, **rebase and merge that pull request.** release-please takes it from there: it tags the commit `vX.Y.Z` and cuts the matching GitHub Release.

One thing worth knowing: thanks to the `extra-files` setting in [release-please-config.json](../release-please-config.json), the version gets bumped in *two* copies of each plugin's manifest:
Each plugin contains four files that the version bump must keep in sync. Thanks to the `extra-files` setting in [release-please-config.json](../release-please-config.json), release-please bumps the version in the two `plugin.json` copies automatically:

- `plugins/<name>/plugin.json` — the one Claude Code actually reads.
- `plugins/<name>/.github/plugin/plugin.json` — a duplicate that the GitHub Copilot `awesome-copilot` smoke test insists on.
- `plugins/<name>/plugin.json` — the agent-plugin spec manifest (used by both marketplaces); carries a `$schema` field.
- `plugins/<name>/mcp.json` — the agent-plugin spec MCP server config; carries a `$schema` field.
- `plugins/<name>/.claude-plugin/plugin.json` — the Claude Code-specific copy of the manifest (no `$schema`).
- `plugins/<name>/.mcp.json` — the Claude Code-specific MCP server config (no `$schema`).

To make sure those two never quietly drift apart, [CI](../.github/workflows/ci.yml) checks that the `.github/plugin/plugin.json` copy is identical to the root one down to the byte.
The root `plugin.json` and its `.claude-plugin/plugin.json` counterpart must stay identical except for the `$schema` field. [CI](../.github/workflows/ci.yml) enforces this by stripping `$schema` from both files before comparing them.

Once the release is out, jot down the version it produced — specifically the Git tag `vX.Y.Z`. You'll need it for the GitHub Copilot marketplace below.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"knip": "knip",
"lint:commit": "commitlint",
"prepare": "node ./.husky/skip.js || husky",
"prettier": "prettier **/.mcp.json **/plugin.json",
"prettier": "prettier **/.mcp.json **/mcp.json **/plugin.json",
"prettier:write": "npm run prettier -- --write",
"prettier:check": "npm run prettier -- --check",
"test": "npm run prettier:check && npm run knip && npm run check-licenses && npm run vally",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,5 @@
"linter",
"upgrade"
],
"license": "Apache-2.0",
"skills": [
"./skills/"
]
"license": "Apache-2.0"
}
5 changes: 4 additions & 1 deletion plugins/ui5-modernization/.mcp.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": ["-y", "chrome-devtools-mcp@latest"]
"args": [
"-y",
"chrome-devtools-mcp@latest"
]
}
}
}
13 changes: 13 additions & 0 deletions plugins/ui5-modernization/mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",
"mcpServers": {
"chrome-devtools": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"chrome-devtools-mcp@latest"
]
}
}
}
6 changes: 2 additions & 4 deletions plugins/ui5-modernization/plugin.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
"name": "ui5-modernization",
"version": "0.1.9",
"description": "Complete UI5 modernization toolkit with workflow and specialized fix patterns for modernizing SAPUI5/OpenUI5 applications",
Expand All @@ -15,8 +16,5 @@
"linter",
"upgrade"
],
"license": "Apache-2.0",
"skills": [
"./skills/"
]
"license": "Apache-2.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,5 @@
"plugin",
"typescript",
"conversion"
],
"skills": [
"./skills/"
]
}
4 changes: 1 addition & 3 deletions plugins/ui5-typescript-conversion/plugin.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
"name": "ui5-typescript-conversion",
"version": "0.1.9",
"description": "SAPUI5 / OpenUI5 plugin for coding agents. Converts JavaScript-based UI5 projects to TypeScript.",
Expand All @@ -16,8 +17,5 @@
"plugin",
"typescript",
"conversion"
],
"skills": [
"./skills/"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,5 @@
"api-documentation",
"development-guidelines",
"best-practices"
],
"skills": [
"./skills/"
]
}
5 changes: 4 additions & 1 deletion plugins/ui5/.mcp.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"mcpServers": {
"ui5-mcp-server": {
"command": "npx",
"args": ["-y", "@ui5/mcp-server@0.3.3"]
"args": [
"-y",
"@ui5/mcp-server@0.3.3"
]
}
}
}
13 changes: 13 additions & 0 deletions plugins/ui5/mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",
"mcpServers": {
"ui5-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ui5/mcp-server@0.3.3"
]
}
}
}
4 changes: 1 addition & 3 deletions plugins/ui5/plugin.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
"name": "ui5",
"version": "0.1.9",
"description": "SAPUI5 / OpenUI5 plugin for coding agents. Creates and validates UI5 projects, accesses API documentation, runs UI5 linter, retrieves development guidelines and best practices for UI5 development.",
Expand All @@ -20,8 +21,5 @@
"api-documentation",
"development-guidelines",
"best-practices"
],
"skills": [
"./skills/"
]
}
6 changes: 3 additions & 3 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
},
{
"type": "json",
"path": "plugins/ui5/.github/plugin/plugin.json",
"path": "plugins/ui5/.claude-plugin/plugin.json",
"jsonpath": "$..version"
},
{
Expand All @@ -81,7 +81,7 @@
},
{
"type": "json",
"path": "plugins/ui5-typescript-conversion/.github/plugin/plugin.json",
"path": "plugins/ui5-typescript-conversion/.claude-plugin/plugin.json",
"jsonpath": "$..version"
},
{
Expand All @@ -91,7 +91,7 @@
},
{
"type": "json",
"path": "plugins/ui5-modernization/.github/plugin/plugin.json",
"path": "plugins/ui5-modernization/.claude-plugin/plugin.json",
"jsonpath": "$..version"
}
]
Expand Down
3 changes: 2 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
{
"customType": "regex",
"managerFilePatterns": [
"/plugins/ui5/\\.mcp\\.json/"
"/plugins/ui5/\\.mcp\\.json/",
"/plugins/ui5/mcp\\.json/"
],
"matchStrings": [
"@ui5/mcp-server@(?<currentValue>[^\"]+)"
Expand Down