AGENTS.md
+3 −3
https://raw.githubusercontent.com/eclipsesource/review-guard/HEAD/AGENTS.md
− - **`src/github.ts`**: `GitHubReviewClient` class. The ONLY file that touches GitHub APIs. Uses GraphQL for resolved review-thread context and mutations, and REST for review summaries and general PR comments. Review-thread comments (GraphQL `reactionGroups`) and conversation comments (REST `reactions`) expose a normalized `reactions` map (content -> count, e.g. `THUMBS_DOWN`) so agents can see downvotes. Thread `isResolved`/`resolvedBy` are also returned. Review comments, review summaries and co− - **`src/server.ts`**: `createMcpServer(client)` factory. Registers `get_pr_review_context`, `list_pending_review`, `add_review_comments`, `modify_review_comment`, and `delete_pending_review` with Zod schemas. Additionally registers `submit` **only when** `client.allowedSubmitActions` is non-empty (its `action` enum is restricted to that set), and `resolve_review_thread` **only when** `client.resolveEnabled` (started with `--allow-resolve`). When `client.scopedPullRequest` is set, the PR tools o− - **`test/`**: vitest suite. `args.test.ts` covers CLI validation. `github.test.ts` covers the safety gates (submit refusal, fixed-body prefixing, scope assertion, own-thread resolve, PENDING tripwire) with mocked `gql`/`octokit` internals. `server.test.ts` covers tool registration and dispatch over an in-memory MCP transport. `server-json.test.ts` covers the MCP Registry entry (see Key conventions). Changes to the safety boundary must keep this coverage. `test/integration/review-guard.itest.ts`+ - **`src/github.ts`**: `GitHubReviewClient` class. The ONLY file that touches GitHub APIs. Uses GraphQL for resolved review-thread context and mutations, and REST for review summaries and general PR comments. Review-thread comments (GraphQL `reactionGroups`) and conversation comments (REST `reactions`) expose a normalized `reactions` map (content -> count, e.g. `THUMBS_DOWN`) so agents can see downvotes. Thread `isResolved`/`resolvedBy` are also returned. Review comments, review summaries and co+ - **`src/server.ts`**: `createMcpServer(client)` factory. Registers `get_pr_review_context`, `list_pending_review`, `add_review_comments`, `reply_to_review_threads`, `modify_review_comment`, and `delete_pending_review` with Zod schemas. Additionally registers `submit` **only when** `client.allowedSubmitActions` is non-empty (its `action` enum is restricted to that set), and `resolve_review_thread` **only when** `client.resolveEnabled` (started with `--allow-resolve`). When `client.scopedPullRequ+ - **`test/`**: vitest suite. `args.test.ts` covers CLI validation. `github.test.ts` covers the safety gates (submit refusal, fixed-body prefixing, scope assertion, own-thread resolve, reply thread checks, PENDING tripwire) with mocked `gql`/`octokit` internals. `server.test.ts` covers tool registration and dispatch over an in-memory MCP transport. `server-json.test.ts` covers the MCP Registry entry (see Key conventions). Changes to the safety boundary must keep this coverage. `test/integration/r