Repository navigation
feat: read the log and profiles from the terminal - #92
Closed
prateekbhujel wants to merge 1 commit into
Closed
prateekbhujel wants to merge 1 commit into
prateekbhujel wants to merge 1 commit into
Conversation
prateekbhujel
force-pushed
the
feat/log-from-terminal
branch
2 times, most recently
from
October 15, 2026 16:57
74bdd87 to
0a8d2a3
Compare
nunomaduro
marked this pull request as draft
October 15, 2026 17:22
prateekbhujel
force-pushed
the
feat/log-from-terminal
branch
from
October 15, 2026 17:46
0a8d2a3 to
c5c86bc
Compare
prateekbhujel
marked this pull request as ready for review
October 15, 2026 17:48
prateekbhujel
force-pushed
the
feat/log-from-terminal
branch
from
October 15, 2026 18:02
c5c86bc to
3f89954
Compare
prateekbhujel
force-pushed
the
feat/log-from-terminal
branch
from
October 16, 2026 09:17
3f89954 to
13bb305
Compare
Member
|
Thank you! We discussed it and we're gonna go with a complete CLI instead, that will unlock more things |
Contributor
Author
|
Makes complete sense! Took your feedback to heart—instead of curling web routes with content negotiation, I opened #198 adding a dedicated |
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.
Hey @nunomaduro! 👋
Now that we can commit straight from the terminal with
curl .../commit | bash, opening a browser just to check the log felt like leaving the terminal too soon.This PR adds terminal reading via content negotiation: when curling devnull endpoints, you get a clean ANSI git graph DAG instead of unrendered HTML.
What this adds
1.
curl https://dev-null.sh/dev/nullbanner, product intro, and CLI commit instructions.2.
curl https://dev-null.sh/log(orhttps://dev-null.sh/log/everyone)When authenticated, renders the timeline as an ASCII git DAG rail with 24-bit TrueColor user lanes (and 16-color ANSI fallbacks):
3.
curl https://dev-null.sh/@nuno4.
curl https://dev-null.sh/@nuno/commits/{id}Implementation & Architecture
TerminalRenderer(app/Services/Terminal/): Zero external dependencies. Maps user lanes to TrueColor (\033[38;2;R;G;Bm) with standard 16-color ANSI fallback (?color=16orX-Color-Depth: 16), and honors theNO_COLORspecification.TerminalRenderer::sanitize()to strip ANSI escapes (\033[...]) and C0 control characters, preventing terminal display injection.PRODUCT.mdby default — unauthenticated curl requests receive landing or preview cards rather than bypassing the login requirement. (If you prefer opening the Everyone log to anonymous CLI curls, we can easily toggle that).Cli\LogControllerwith a RESTfulindex()method (passes Pest's Laravel presets and controller isolation rules).