docs: add plugin check examples

This commit is contained in:
Vincent Koc 2026-04-27 00:53:27 -07:00
parent 2f78758348
commit a3623deb6d
No known key found for this signature in database
4 changed files with 42 additions and 0 deletions

View File

@ -73,6 +73,9 @@ Then run:
plugin-inspector check --config plugin-inspector.config.json
```
Copy-ready examples live in `examples/plugin-inspector.config.json` and
`examples/github-actions-plugin-inspector.yml`.
Fixture-set configs are still supported for crabpot-style compatibility suites:
```bash

View File

@ -0,0 +1,23 @@
name: plugin-inspector
on:
pull_request:
push:
branches: [main]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm run plugin:check
- uses: actions/upload-artifact@v5
if: always()
with:
name: plugin-inspector-reports
path: reports/plugin-inspector-*

View File

@ -0,0 +1,15 @@
{
"version": 1,
"plugin": {
"id": "weather",
"priority": "high",
"seams": ["dynamic-tool"],
"sourceRoot": "src",
"expect": {
"registrations": ["registerTool"]
}
},
"openclaw": {
"defaultCheckoutPath": "../openclaw"
}
}

View File

@ -38,6 +38,7 @@
},
"files": [
"src",
"examples",
"README.md",
"LICENSE"
],