feat(importer): add repository attribution from session metadata#7
Open
jmelloy wants to merge 1 commit into
Open
feat(importer): add repository attribution from session metadata#7jmelloy wants to merge 1 commit into
jmelloy wants to merge 1 commit into
Conversation
Owner
|
Hey, thanks for the PR! I pushed some changes on |
b980196 to
da54339
Compare
Owner
|
Thanks for putting this together. The direction makes sense to me: repository attribution would be valuable for AI Observer because it enables repo-level filtering, reporting, and analysis for imported Claude/Codex sessions. I reviewed the current diff and I don’t think it’s quite merge-ready yet. A few things I’d like to see addressed first:
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds repository attribution for imported Claude Code and Codex sessions.
pr-linkmetadata, Codexsession_meta.git.repository_url, on-disk git remotes, cwd/worktree paths, and mined GitHub references.repository,git_branch, and PR metadata to existing Claude transcript/API logs and token/cost metrics.Impact
Imported telemetry can now be grouped by repository more reliably, including worktree sessions and directories whose local name differs from the remote repository.
Validation
GOROOT=/opt/homebrew/Cellar/go/1.26.1/libexec go test ./internal/importerNote: plain
go testcurrently fails locally becausegoreports 1.26.1 whileGOROOTis set to a mise 1.24.0 install.