chore: bump manifest version to 2026.01.16 #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sync Claude Code Plugins | |
| on: | |
| workflow_dispatch: # Manual trigger | |
| push: | |
| branches: [master] | |
| paths: | |
| - 'bottles/*/manifest.json' # Trigger on manifest changes | |
| permissions: | |
| contents: write | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Read versions from manifest | |
| id: versions | |
| run: | | |
| echo "ba=$(jq -r '.tools.ba' bottles/stable/manifest.json)" >> $GITHUB_OUTPUT | |
| echo "wm=$(jq -r '.tools.wm' bottles/stable/manifest.json)" >> $GITHUB_OUTPUT | |
| echo "superego=$(jq -r '.tools.superego' bottles/stable/manifest.json)" >> $GITHUB_OUTPUT | |
| echo "oh_mcp=$(jq -r '.tools["oh-mcp"]' bottles/stable/manifest.json)" >> $GITHUB_OUTPUT | |
| # miranda doesn't have a tool version, use main | |
| echo "miranda=main" >> $GITHUB_OUTPUT | |
| - name: Sync ba plugin (v${{ steps.versions.outputs.ba }}) | |
| run: | | |
| git clone --depth 1 --branch "v${{ steps.versions.outputs.ba }}" https://github.com/open-horizon-labs/ba /tmp/ba || \ | |
| git clone --depth 1 https://github.com/open-horizon-labs/ba /tmp/ba | |
| [ -d /tmp/ba/plugin ] || { echo "ERROR: ba plugin/ not found"; exit 1; } | |
| rm -rf .claude-plugin/plugins/ba | |
| mkdir -p .claude-plugin/plugins/ba | |
| cp -r /tmp/ba/plugin/. .claude-plugin/plugins/ba/ | |
| - name: Sync wm plugin (v${{ steps.versions.outputs.wm }}) | |
| run: | | |
| git clone --depth 1 --branch "v${{ steps.versions.outputs.wm }}" https://github.com/open-horizon-labs/wm /tmp/wm || \ | |
| git clone --depth 1 https://github.com/open-horizon-labs/wm /tmp/wm | |
| [ -d /tmp/wm/plugin ] || { echo "ERROR: wm plugin/ not found"; exit 1; } | |
| rm -rf .claude-plugin/plugins/wm | |
| mkdir -p .claude-plugin/plugins/wm | |
| cp -r /tmp/wm/plugin/. .claude-plugin/plugins/wm/ | |
| - name: Sync superego plugin (v${{ steps.versions.outputs.superego }}) | |
| run: | | |
| git clone --depth 1 --branch "v${{ steps.versions.outputs.superego }}" https://github.com/open-horizon-labs/superego /tmp/superego || \ | |
| git clone --depth 1 https://github.com/open-horizon-labs/superego /tmp/superego | |
| [ -d /tmp/superego/plugin ] || { echo "ERROR: superego plugin/ not found"; exit 1; } | |
| rm -rf .claude-plugin/plugins/superego | |
| mkdir -p .claude-plugin/plugins/superego | |
| cp -r /tmp/superego/plugin/. .claude-plugin/plugins/superego/ | |
| - name: Sync oh-mcp plugin (v${{ steps.versions.outputs.oh_mcp }}) | |
| run: | | |
| git clone --depth 1 --branch "v${{ steps.versions.outputs.oh_mcp }}" https://github.com/open-horizon-labs/oh-mcp-server /tmp/oh-mcp-server || \ | |
| git clone --depth 1 https://github.com/open-horizon-labs/oh-mcp-server /tmp/oh-mcp-server | |
| [ -d /tmp/oh-mcp-server/plugin ] || { echo "ERROR: oh-mcp-server plugin/ not found"; exit 1; } | |
| rm -rf .claude-plugin/plugins/oh-mcp | |
| mkdir -p .claude-plugin/plugins/oh-mcp | |
| cp -r /tmp/oh-mcp-server/plugin/. .claude-plugin/plugins/oh-mcp/ | |
| - name: Sync miranda plugin | |
| run: | | |
| git clone --depth 1 https://github.com/open-horizon-labs/miranda /tmp/miranda | |
| [ -d /tmp/miranda/plugin ] || { echo "ERROR: miranda plugin/ not found"; exit 1; } | |
| rm -rf .claude-plugin/plugins/miranda | |
| mkdir -p .claude-plugin/plugins/miranda | |
| cp -r /tmp/miranda/plugin/. .claude-plugin/plugins/miranda/ | |
| - name: Commit and push | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add .claude-plugin/plugins/ | |
| git commit -m "chore: sync Claude Code plugins from source repos" || echo "No changes to commit" | |
| git push |