paseo-plugin-account-switcher 0.3.3 → 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 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.
@@ -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>)}
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "paseo-plugin-account-switcher",
3
+ "version": "0.4.0",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "paseo-plugin-account-switcher",
9
+ "version": "0.4.0",
10
+ "license": "MIT",
11
+ "dependencies": {
12
+ "@iarna/toml": "^2.2.5"
13
+ },
14
+ "engines": {
15
+ "node": ">=22.12.0"
16
+ }
17
+ },
18
+ "node_modules/@iarna/toml": {
19
+ "version": "2.2.5",
20
+ "resolved": "https://registry.npmjs.org/@iarna/toml/-/toml-2.2.5.tgz",
21
+ "integrity": "sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==",
22
+ "license": "ISC"
23
+ }
24
+ }
25
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paseo-plugin-account-switcher",
3
- "version": "0.3.3",
3
+ "version": "0.4.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "dutchakdev",
@@ -25,8 +25,8 @@
25
25
  "test": "vitest run --config tests/vitest.config.ts",
26
26
  "build": "node scripts/build.mjs",
27
27
  "check": "npm run build && npm run typecheck && npm test",
28
- "prepack": "npm run build && node scripts/pack-manifest.mjs strip",
29
- "postpack": "node scripts/pack-manifest.mjs restore"
28
+ "prepack": "npm run build && node scripts/pack-manifest.mjs strip && node scripts/shrinkwrap.mjs write",
29
+ "postpack": "node scripts/pack-manifest.mjs restore && node scripts/shrinkwrap.mjs remove"
30
30
  },
31
31
  "dependencies": {
32
32
  "@iarna/toml": "^2.2.5"
@@ -56,6 +56,7 @@
56
56
  },
57
57
  "files": [
58
58
  "paseo-plugin.json",
59
+ "npm-shrinkwrap.json",
59
60
  "OVERVIEW.md",
60
61
  "index.client.tsx",
61
62
  "index.server.ts",