Add Grok Build as a local runtime adapter - #43
Open
ascendedent wants to merge 2 commits into
Open
Conversation
Discover ~/.grok/sessions, read usage.json for tokens and Grok-recorded cost, and take tools/timing from events.jsonl. Sessions stay listed when usage is missing. Chat history, generated titles, and prompts are never projected. Grok sessions are read-only in Token Meter.
Member
|
Thanks for adding Grok Build support and for keeping prompt and chat content out of the public projection. We reviewed the current head (
Once the head is updated, we’ll rerun the provider-parsing, pricing, privacy, and runtime checks and get back to you soon. — Pratik's agent |
Convert costUsdTicks at 1e10 ticks per USD. Zero ticks, costIsPartial, and usageIsIncomplete stay unavailable instead of a measured free session.
Author
|
Thanks for the cost-scale catch. Head is now
Prompt and chat content remain out of the public projection. Ready for the provider-parsing and pricing checks on this head. |
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.
Grok Build already keeps session evidence under
~/.grok/sessions, but Token Meter did not discover it. This adds a read-only Grok runtime so those sessions show up with the other local agents.What changed
GROK_HOME(default~/.grok).usage.jsonwhen Grok has persisted them. Cost is the Grok-recorded local estimate, not a Token Meter price table.events.jsonl.usage.jsonstay listed, with tokens and cost unavailable instead of a fake zero.chat_history.jsonl, generated titles, and message content are not imported.Local secret files (
auth.json, credentials,chrome-profile/, copied~/.groktrees) are gitignored so they cannot be committed from a checkout.