Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .antigravity-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://antigravity.google/schemas/v1/plugin.json",
"name": "opencode-dev-plugin",
"version": "0.1.0",
"name": "opencode-dev",
"version": "0.2.0",
"description": "Skills for working with opencode v2: building plugins (@opencode/plugin, SDK, client), the CLI and TUI, the server HTTP API, and OpenCode Console administration and inference, with cached upstream docs.",
"author": {
"name": "rjstone",
Expand Down
6 changes: 3 additions & 3 deletions .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "opencode-dev-plugin",
"name": "opencode-dev",
"owner": {
"name": "rjstone"
},
"description": "Single-plugin marketplace for opencode-dev-plugin. The plugin is the repository root.",
"description": "Single-plugin marketplace for opencode-dev. The plugin is the repository root.",
"plugins": [
{
"name": "opencode-dev-plugin",
"name": "opencode-dev",
"source": "./",
"description": "Skills for working with opencode v2: building plugins (@opencode/plugin, SDK, client), the CLI and TUI, the server HTTP API, and OpenCode Console administration and inference, with cached upstream docs."
}
Expand Down
4 changes: 2 additions & 2 deletions .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opencode-dev-plugin",
"version": "0.1.0",
"name": "opencode-dev",
"version": "0.2.0",
"description": "Skills for working with opencode v2: building plugins (@opencode/plugin, SDK, client), the CLI and TUI, the server HTTP API, and OpenCode Console administration and inference, with cached upstream docs.",
"author": {
"name": "rjstone",
Expand Down
4 changes: 2 additions & 2 deletions .cursor-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opencode-dev-plugin",
"version": "0.1.0",
"name": "opencode-dev",
"version": "0.2.0",
"description": "Skills for working with opencode v2: building plugins (@opencode/plugin, SDK, client), the CLI and TUI, the server HTTP API, and OpenCode Console administration and inference, with cached upstream docs.",
"author": {
"name": "rjstone",
Expand Down
97 changes: 4 additions & 93 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,100 +1,11 @@
# Generator tests and freshness, type check, and Claude Code validation (both profiles).
# On pushes to main, the "badges" job renders README badges (scripts/badges.sh) and
# force-pushes them as the single commit of the orphan branch "badges".
# Actions are pinned to commit SHAs (the version is in the comment).
# Runs this repo's checks (scripts/ci.sh), Claude Code validation and, on main, the badges.
# The steps live in rjstone/plugin-ci (reusable workflow, called at @main).
name: check
on: [push, pull_request]
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
outputs:
tests_passed: ${{ steps.counts.outputs.passed }}
tests_failed: ${{ steps.counts.outputs.failed }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 22
- name: Generator tests
shell: bash
run: npm test 2>&1 | tee "$RUNNER_TEMP/node-test.log"
- name: Skill tests (Python, stdlib only)
run: python3 -m unittest discover -s tests -v
- name: Generated files are up to date
run: node scripts/build.ts --check
- name: Type-check the generator and tests
run: npm run typecheck
- name: Validate the Claude Code plugin and marketplace
run: |
npx -y @anthropic-ai/claude-code@2.1.332 plugin validate .
npx -y @anthropic-ai/claude-code@2.1.332 plugin validate . --profile directory
- name: Count tests for the badge
id: counts
if: always()
shell: bash
run: |
log="$RUNNER_TEMP/node-test.log"
passed=0; failed=0
if [ -f "$log" ]; then
passed=$(sed -n 's/^# pass \([0-9]*\)$/\1/p' "$log" | tail -1)
failed=$(sed -n 's/^# fail \([0-9]*\)$/\1/p' "$log" | tail -1)
fi
echo "passed=${passed:-0}" >> "$GITHUB_OUTPUT"
echo "failed=${failed:-0}" >> "$GITHUB_OUTPUT"

badges:
needs: check
if: always() && github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: badges
cancel-in-progress: true
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 22
- name: Render badges
env:
RESULT: ${{ needs.check.result }}
PASSED: ${{ needs.check.outputs.tests_passed }}
FAILED: ${{ needs.check.outputs.tests_failed }}
run: |
case "$RESULT" in
success) check="passing|brightgreen" ;;
failure) check="failing|red" ;;
*) check="$RESULT|lightgrey" ;;
esac
if [ "${FAILED:-0}" != 0 ]; then tests="$FAILED failed|red"
elif [ "${PASSED:-0}" != 0 ]; then tests="$PASSED passed|brightgreen"
else tests="unknown|lightgrey"; fi
version=$(node -p "require('./plugin.config.json').version")
license=$(node -p "require('./plugin.config.json').license")
{
echo "check|check|$check"
echo "tests|tests|$tests"
echo "version|version|v$version|blue"
echo "license|license|$license|blue"
} > "$RUNNER_TEMP/badges.txt"
bash scripts/badges.sh "$RUNNER_TEMP/badges.txt" "$RUNNER_TEMP/badges"
- name: Push to the badges branch
env:
GH_TOKEN: ${{ github.token }}
REPO: ${{ github.repository }}
SHA: ${{ github.sha }}
run: |
cd "$RUNNER_TEMP/badges"
git init -q -b badges
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
git commit -q -m "badges for $SHA"
git push -q --force "https://x-access-token:$GH_TOKEN@github.com/$REPO.git" badges
contents: write # for the nested badges job; the nested check job lowers it to read
uses: rjstone/plugin-ci/.github/workflows/check.yml@main
71 changes: 10 additions & 61 deletions .github/workflows/notify-marketplace.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
# Starts rjstone/plugin-marketplace's update workflow so a new release is listed within minutes
# instead of at the marketplace's next daily run. Copied from that repo's
# docs/plugin-repo-release-workflow.yml, plus a manual trigger.
#
# Runs on a release tag push (vX.Y.Z or X.Y.Z), or by hand (Actions > notify-marketplace > Run
# workflow) for a tag pushed before this workflow existed. The marketplace resolves the latest
# release tag itself; the tag sent here only labels its run.
#
# Setup in THIS repo (Settings -> Secrets and variables -> Actions):
# - variable MARKETPLACE_APP_CLIENT_ID: the GitHub App's Client ID (App settings page, "Iv...")
# - secret MARKETPLACE_APP_PRIVATE_KEY: a private key (.pem) generated for that App
# The App needs only "Actions: Read and write" and is installed on the marketplace repo.
# Actions are pinned to commit SHAs (the version is in the comment).
# Starts rjstone/plugin-marketplace's update workflow when a release tag is pushed, or by hand.
# The steps live in rjstone/plugin-ci (reusable workflow, called at @main).
# Setup in this repo: variable MARKETPLACE_APP_CLIENT_ID and secret MARKETPLACE_APP_PRIVATE_KEY
# (the GitHub App needs only "Actions: Read and write" on the marketplace repo).
name: notify-marketplace
on:
push:
Expand All @@ -21,55 +12,13 @@ on:
description: Release tag to report (empty = the latest vX.Y.Z tag)
required: false
type: string

permissions:
contents: read

env:
MARKETPLACE_OWNER: rjstone
MARKETPLACE_REPO: plugin-marketplace

jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Find the tag
id: tag
env:
GH_TOKEN: ${{ github.token }}
EVENT: ${{ github.event_name }}
REF_NAME: ${{ github.ref_name }}
INPUT_TAG: ${{ inputs.tag }}
REPO: ${{ github.repository }}
run: |
if [ "$EVENT" = push ]; then
tag="$REF_NAME"
elif [ -n "$INPUT_TAG" ]; then
tag="$INPUT_TAG"
else
tag=$(gh api "repos/$REPO/tags" --paginate --jq '.[].name' \
| grep -E '^v?[0-9]+\.[0-9]+\.[0-9]+$' | sort -V | tail -1)
fi
# Only a plain release tag goes on (no shell or output injection through a tag name).
if ! printf '%s' "$tag" | grep -Eqx 'v?[0-9]+\.[0-9]+\.[0-9]+'; then
echo "not a release tag: '$tag'"; exit 1
fi
echo "tag=$tag" >> "$GITHUB_OUTPUT"
echo "reporting $tag"
- uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0
id: token
with:
client-id: ${{ vars.MARKETPLACE_APP_CLIENT_ID }}
private-key: ${{ secrets.MARKETPLACE_APP_PRIVATE_KEY }}
owner: ${{ env.MARKETPLACE_OWNER }}
repositories: ${{ env.MARKETPLACE_REPO }}
- name: Start the marketplace update workflow
env:
GH_TOKEN: ${{ steps.token.outputs.token }}
REPO: ${{ github.repository }}
TAG: ${{ steps.tag.outputs.tag }}
run: |
gh api -X POST "repos/$MARKETPLACE_OWNER/$MARKETPLACE_REPO/actions/workflows/update.yml/dispatches" \
-f ref=main \
-f "inputs[repo]=$REPO" \
-f "inputs[tag]=$TAG"
uses: rjstone/plugin-ci/.github/workflows/notify-marketplace.yml@main
with:
tag: ${{ inputs.tag }}
client-id: ${{ vars.MARKETPLACE_APP_CLIENT_ID }}
secrets:
private-key: ${{ secrets.MARKETPLACE_APP_PRIVATE_KEY }}
23 changes: 3 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,12 @@
# On a release tag (vX.Y.Z): build that release's notes with git-cliff (cliff.toml) and publish
# a GitHub Release. The tag itself is created by the maintainer (see AGENTS.md, "Releases").
# Actions are pinned to commit SHAs (the version is in the comment).
# Publishes a GitHub Release with git-cliff notes when a vX.Y.Z tag is pushed.
# The steps live in rjstone/plugin-ci (reusable workflow, called at @main).
name: release
on:
push:
tags: ['v[0-9]+.[0-9]+.[0-9]+']
permissions: {}
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- name: Release notes
uses: orhun/git-cliff-action@a9a95522b26fe6403f7bb24031f21fb573d0f5ff # v4.9.1
with:
config: cliff.toml
args: --latest --strip header
env:
OUTPUT: RELEASE_NOTES.md
- name: Publish the release
uses: softprops/action-gh-release@8a0cd651e5b2365bd640854a3fa5dfc70e4875f3 # v3.0.4
with:
body_path: RELEASE_NOTES.md
uses: rjstone/plugin-ci/.github/workflows/release.yml@main
4 changes: 2 additions & 2 deletions .kimi-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opencode-dev-plugin",
"version": "0.1.0",
"name": "opencode-dev",
"version": "0.2.0",
"description": "Skills for working with opencode v2: building plugins (@opencode/plugin, SDK, client), the CLI and TUI, the server HTTP API, and OpenCode Console administration and inference, with cached upstream docs.",
"author": {
"name": "rjstone",
Expand Down
Loading