paseo-plugin-account-switcher 0.3.4 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/client/components.tsx +2 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/server/launcher-artifact.ts +1 -1
- package/server/usage/README.md +7 -0
- package/server/usage/parsers.ts +27 -0
- package/shared/contracts.ts +2 -0
package/README.md
CHANGED
|
@@ -95,7 +95,7 @@ Different agents can use different accounts in parallel. Avoid sending from anot
|
|
|
95
95
|
|
|
96
96
|
## Read limits
|
|
97
97
|
|
|
98
|
-
Each account shows all reported limit windows, including zero usage. Measured windows show used and remaining percentages and a reset countdown. Expand details for exact local reset times, durations, fetch/check timestamps, and windows without data.
|
|
98
|
+
Each account shows all reported limit windows, including zero usage. Measured windows show used and remaining percentages and a reset countdown. Codex usage-based workspace plans show their monthly credit allowance as a limit, with the credits left; Claude enterprise seats show their monthly spend allowance the same way. Expand details for exact local reset times, durations, fetch/check timestamps, and windows without data.
|
|
99
99
|
|
|
100
100
|
- Checks run every **5 minutes** in the background and every **minute** while Accounts or the switcher is open.
|
|
101
101
|
- **Refresh** requests new data for one account; the header refresh action covers all accounts. Provider retry delays still apply.
|
package/client/components.tsx
CHANGED
|
@@ -123,7 +123,7 @@ export function QuotaWindowRow({ theme, quota, now }: ThemeProps & { quota: Usag
|
|
|
123
123
|
</View>
|
|
124
124
|
<Meter theme={theme} used={quota.usedPercent} />
|
|
125
125
|
<Text style={{ ...muted(theme), ...tabular, fontSize: 11, lineHeight: 14, color: expired ? theme.colors.statusWarning : theme.colors.foregroundMuted }}>
|
|
126
|
-
{expired ? "reset time passed · last known data" : shortCountdown(quota.resetsAt, now)}
|
|
126
|
+
{quota.detail ? `${quota.detail} · ` : ""}{expired ? "reset time passed · last known data" : shortCountdown(quota.resetsAt, now)}
|
|
127
127
|
</Text>
|
|
128
128
|
</View>;
|
|
129
129
|
}
|
|
@@ -161,6 +161,7 @@ export function QuotaSummary({ theme, snapshot, now, compact, onRefresh, refresh
|
|
|
161
161
|
<View style={{ gap: 4, paddingLeft: 18 }}>
|
|
162
162
|
{snapshot.windows.map((quota) => <DetailLine key={quota.id} theme={theme}>
|
|
163
163
|
{quota.label}: {quota.usedPercent === null ? "no data" : `${percent(quota.usedPercent)} used`}
|
|
164
|
+
{quota.detail ? ` · ${quota.detail}` : ""}
|
|
164
165
|
{quota.resetsAt ? ` · resets ${localDate(quota.resetsAt)}` : " · reset time unknown"}
|
|
165
166
|
{windowLength(quota.windowDurationMins) ? ` · period ${windowLength(quota.windowDurationMins)}` : ""}
|
|
166
167
|
</DetailLine>)}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "paseo-plugin-account-switcher",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "paseo-plugin-account-switcher",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.4.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@iarna/toml": "^2.2.5"
|