feat(autoresearch): expand Claude RTK rewriting for chains, guarded find, and rg #12561
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: Build | |
| on: | |
| pull_request: | |
| concurrency: | |
| group: build-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| changes: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: read | |
| outputs: | |
| code: ${{ steps.filter.outputs.code }} | |
| workflow: ${{ steps.filter.outputs.workflow }} | |
| steps: | |
| - name: Detect relevant changes | |
| id: filter | |
| uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 | |
| with: | |
| predicate-quantifier: every | |
| filters: | | |
| # Wider excludes than code-quality.yml, which keeps .github/scripts | |
| # and .vscode/.claude in scope because Biome lints them. | |
| code: | |
| - "!**/*.md" | |
| - "!docs/**" | |
| - "!.github/**" | |
| - "!.vscode/**" | |
| - "!.claude/**" | |
| - "!.husky/**" | |
| - "!LICENSE" | |
| - "!.gitignore" | |
| - "!.env.example" | |
| workflow: | |
| - ".github/workflows/build.yml" | |
| build: | |
| needs: changes | |
| # Fail closed: if change detection itself failed, run instead of skipping. | |
| if: ${{ !cancelled() && (needs.changes.result != 'success' || needs.changes.outputs.code == 'true' || needs.changes.outputs.workflow == 'true') }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: 22 | |
| cache: "pnpm" | |
| - name: Restore turbo cache | |
| uses: ./.github/actions/restore-turbo-cache | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| env: | |
| # The packaged app is never launched, so the Electron-ABI rebuild is unused. | |
| SKIP_ELECTRON_REBUILD: "1" | |
| - name: Build packages | |
| run: pnpm run build:deps | |
| - name: Build code | |
| run: pnpm --filter code build |