Update Documentation #10
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: Update Documentation | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'src/**' | |
| - 'package.json' | |
| workflow_dispatch: | |
| jobs: | |
| update-docs: | |
| runs-on: ubuntu-latest | |
| if: "github.event_name == 'workflow_dispatch' || !startsWith(github.event.head_commit.message, 'docs:')" | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 10 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - uses: anthropics/claude-code-action@v1 | |
| with: | |
| anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} | |
| claude_args: '--model claude-sonnet-4-6 --max-turns 30' | |
| prompt: | | |
| Update documentation to match the current source code. Be efficient — read only what you need. | |
| Step 1: Run `git log --oneline -5` to see recent changes. | |
| Step 2: Read src/cli.ts (the command definitions, lines 60-120 are the command table). | |
| Step 3: Read src/operations-server.ts (grep for app.get/app.post to find HTTP endpoints). | |
| Step 4: For each doc file below, check if it matches the code. Only edit files with actual discrepancies. | |
| Doc files: | |
| - README.md — commands table, HTTP API table, examples | |
| - CLAUDE.md — database tables description | |
| - man/mor.1 — commands, options, version number in header | |
| - website/src/content/docs/cli.md — commands table, examples | |
| - website/src/content/docs/getting-started.md — quick start examples | |
| - website/src/content/docs/storage.md — database tables list | |
| - website/src/content/docs/integration/mcp.md — tools table | |
| - website/src/content/docs/integration/http.md — REST API table | |
| Rules: | |
| - Only fix factual inaccuracies — wrong flags, missing commands, outdated examples | |
| - Do NOT rewrite prose, add sections, or change tone | |
| - Do NOT edit any file under src/ | |
| - If docs are already correct, make no changes and stop early |