feat: Add direct raw file URL for single-file uploads#22
Merged
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #21
When uploading a single log file (not split into chunks), display a direct link to the raw file content in addition to the main URL. - For gists: Returns permanent raw_url from GitHub API - For repositories: Returns download_url with token - Adds warning about ~10 minute token expiration for private repos Fixes #21 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This reverts commit 5dcfba5.
Member
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
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
When uploading a single log file (not split into chunks), the tool now displays a direct link to the raw file content in addition to the repository/gist URL.
raw_urlfrom the GitHub API (accessible without authentication, even for secret gists)download_urlfrom the GitHub API (includes token for private repos that enables unauthenticated access)Example output:
For private repositories:
Changes
src/index.js: ModifieduploadAsGist()anduploadAsRepo()to fetch and return raw file URLs via GitHub APIsrc/cli.js: Updated CLI output to display raw URL with appropriate warnings for private reposdocs/case-studies/issue-21/: Added case study with research findings on GitHub raw URL mechanismsexperiments/test-raw-url.js: Added integration test script for raw URL functionality.changeset/direct-file-link.md: Added changeset for minor version bumpTest plan
bun run lint)bun run test)Fixes #21
🤖 Generated with Claude Code