Conversation
Wire the GET /api/v1/repos/blame gateway endpoint into all three SDKs as `Repo.getBlame` (TS), `Repo.get_blame` (Python), and `Repo.GetBlame` (Go), mirroring the GetCommit (#20) integration shape — required `path`, optional `ref`/`ephemeral`/`start_line`/`end_line`/`detect_moves`, JWT minted with `git:read`, response transformed from snake_case wire to camelCase result. The response surfaces a top-level `commit` (the SHA the input ref resolved to) distinct from `commits` (deduped per-authoring-commit metadata referenced by `lines[]`). Author and committer timestamps are parsed to native date types while preserving the raw RFC strings. SKILL.md and the TS/Python READMEs document the endpoint, two-step `lines → commits` lookup, and that omitting `ref` falls back to the repository default branch. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The initial GetBlame implementation in all three SDKs decoded against the storage-layer connectrpc proto shape, but the gateway HTTP route flattens that before it goes on the wire. Production responses would have failed to parse (TS zod, Python KeyError) or silently dropped per-line author metadata (Go). Reshape the SDK types to the gateway shape (gateway/internal/gitapi/blame.go): - Top-level field renamed `commit` -> `commit_sha`. - `lines[]` carries `previous_commit_sha`, `author_*`, `committer_*`, and `summary` inline; the separate top-level `commits` map is gone. - The nonexistent `text` field is removed from BlameLine. - BlameCommit type / TypedDict / struct is dropped. Updates the SKILL.md response example and unit tests across all three packages to the same shape. Verified against the monorepo gateway TestBlameResponse_JSONFieldNames golden JSON. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
@codex review |
|
To use Codex here, create a Codex account and connect to github. |
|
The ones reported by Claude seems valid? 1. README examples reference fields the SDK doesn't return. Both const author = blame.commits[line.commitSha];
console.log(`${line.lineNumber}: ${author.authorName}\t${line.text}`);Neither 2. TS README's 3. Possible schema rejection of valid server responses. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ce5100824c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dac2f1c82d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
@codex review |
|
It seems dead 😂 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0e7c65d3dc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| // BlameOptions configures a per-line blame lookup. | ||
| type BlameOptions struct { |
There was a problem hiding this comment.
Adding BlameOptions/Repo.GetBlame changes the public Go SDK surface, but packages/code-storage-go/README.md still has no blame/GetBlame mention (checked with rg). The root AGENTS.md says to "Update docs when public API shapes change", and the TypeScript/Python READMEs were updated in this commit, so Go users are left without the new method's options/response shape or an example.
Useful? React with 👍 / 👎.
implemented sdk corresponds with https://github.com/pierredotco/monorepo/pull/1235