Repository navigation
agentscope v0.7.0: the whole browser surface, a side panel, and the Quota tab - #11
Merged
Merged
Conversation
…uota tab The canvas is the viewport (innerWidth/innerHeight times devicePixelRatio), laid out again on every resize, with no page scrollbars. The graph takes every pixel the header and the tab strip leave and flows its clusters into more columns as the width grows; the metric scale follows the device pixel ratio. The sessions table and the details are a side panel in a toolkit Overlay, closed by default; the Sessions button and the key t toggle it and selecting a node opens it. The state is ViewModel state. A second tab, Quota, shows the official usage windows from aiquota (recorded as a bounded JSON-lines history, read at most every 5 minutes; a window that is not available is listed, never drawn as 0) and the local consumption derived from the transcripts (tokens per model family, output and cache-read apart, one API message counted once, scanned incrementally with cached per-bucket sums). Spans: 5 h, 7 days, and four 7-day windows aligned on the weekly reset aiquota reports, as stacked bars per week and cumulative lines by day. Needs go-widgets/toolkit v0.386.0. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
agentscope v0.7.0.
The canvas now follows the viewport exactly (CSS size times the device pixel ratio, laid out again on resize, no scrollbars, no maximum width) and the graph uses all of it, with more cluster columns as the width grows. The layout is in logical pixels and the toolkit metric scale is the device pixel ratio. An edge update still never moves a node.
The sessions table and the details become a side panel in a toolkit Overlay: closed by default, toggled by the header button or the key t, opened by selecting a node, 420 logical pixels (a Splitter did not fit an overlay layer). Panel state is ViewModel state.
New Quota tab (a toolkit Notebook strip). Official usage comes from aiquota, recorded as a bounded JSON-lines history; a window that is not available is listed, not drawn as 0. Local consumption comes from the transcripts: tokens per model family, output and cache-read apart, one API message counted once per file, scanned incrementally with per-bucket sums cached under the user cache directory. Spans: 5 h, 7 days, and four 7-day windows aligned on the weekly reset aiquota reports (bars per week, cumulative lines by day).
Tests: both sides of the dedup rule and of a week boundary, a history with a gap and a not-available window, resize and 2x scale, panel behaviour. Coverage: ui 100, model 100, quota 98.8, usage 97.1. Parsers have fuzz targets with committed seeds. The cold-scan timing is not reported: the machine was at load 28.
Needs go-widgets/toolkit v0.386.0 (Refs go-widgets/toolkit#601).
🤖 Generated with Claude Code