sideby 0.35.9 → 0.36.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.
Files changed (66) hide show
  1. package/dist/build.json +1 -1
  2. package/dist/src/cli/commands.d.ts +12 -0
  3. package/dist/src/cli/commands.js +480 -6
  4. package/dist/src/cli/format.d.ts +12 -1
  5. package/dist/src/cli/format.js +23 -3
  6. package/dist/src/cli/json-schemas.js +166 -1
  7. package/dist/src/cli/main.js +18 -4
  8. package/dist/src/core/advisor.d.ts +176 -0
  9. package/dist/src/core/advisor.js +472 -0
  10. package/dist/src/core/browser-profiles.d.ts +16 -0
  11. package/dist/src/core/browser-profiles.js +45 -0
  12. package/dist/src/core/cli-commands.js +25 -1
  13. package/dist/src/core/config.d.ts +29 -0
  14. package/dist/src/core/config.js +25 -0
  15. package/dist/src/core/handoff-select.d.ts +13 -2
  16. package/dist/src/core/handoff-select.js +6 -2
  17. package/dist/src/core/launch.d.ts +4 -0
  18. package/dist/src/core/launch.js +7 -0
  19. package/dist/src/core/limit-reset.d.ts +198 -0
  20. package/dist/src/core/limit-reset.js +299 -0
  21. package/dist/src/core/quota-fetch.d.ts +57 -2
  22. package/dist/src/core/quota-fetch.js +291 -13
  23. package/dist/src/core/quota-levels.d.ts +70 -0
  24. package/dist/src/core/quota-levels.js +80 -0
  25. package/dist/src/core/quota-store.d.ts +15 -1
  26. package/dist/src/core/quota-store.js +26 -1
  27. package/dist/src/core/same-login.d.ts +8 -0
  28. package/dist/src/core/same-login.js +39 -2
  29. package/dist/src/core/search-catalog.js +38 -0
  30. package/dist/src/families/claude/index.js +2 -0
  31. package/dist/src/families/codex/index.js +3 -1
  32. package/dist/src/families/codex/quota.d.ts +23 -1
  33. package/dist/src/families/codex/quota.js +122 -21
  34. package/dist/src/families/grok/quota-log.d.ts +1 -0
  35. package/dist/src/menubar/script.js +70 -18
  36. package/dist/src/menubar/snapshot.d.ts +33 -1
  37. package/dist/src/menubar/snapshot.js +79 -11
  38. package/dist/src/menubar/strings.d.ts +16 -0
  39. package/dist/src/menubar/strings.js +16 -0
  40. package/dist/src/panel/handler.d.ts +21 -0
  41. package/dist/src/panel/handler.js +111 -9
  42. package/dist/src/panel/i18n.d.ts +87 -0
  43. package/dist/src/panel/i18n.js +174 -0
  44. package/dist/src/panel/page-logic.d.ts +17 -0
  45. package/dist/src/panel/page-logic.js +23 -0
  46. package/dist/src/panel/page-script.js +440 -19
  47. package/dist/src/panel/page-styles.js +38 -2
  48. package/dist/src/plugins/loader.d.ts +2 -0
  49. package/dist/src/plugins/loader.js +27 -0
  50. package/dist/src/runtime.d.ts +63 -1
  51. package/dist/src/runtime.js +529 -9
  52. package/dist/src/types.d.ts +67 -0
  53. package/package.json +1 -1
  54. package/schemas/advisor.json +332 -0
  55. package/schemas/config.json +22 -0
  56. package/schemas/error.json +4 -0
  57. package/schemas/menubar-reset.json +93 -0
  58. package/schemas/menubar-snapshot.json +70 -2
  59. package/schemas/quota-reset.json +369 -0
  60. package/schemas/quota.json +30 -0
  61. package/schemas/update.json +4 -0
  62. package/skills/sideby/SKILL.md +6 -2
  63. package/skills/sideby/references/ai-tasks.md +1 -1
  64. package/skills/sideby/references/panel.md +14 -0
  65. package/skills/sideby/references/quota.md +27 -0
  66. package/skills/sideby/references/update.md +1 -1
@@ -299,6 +299,11 @@ export interface FamilyDef {
299
299
  readTuning?(account: Account, ctx: ReadContext): Promise<TuningResult>;
300
300
  /** One-time, reversible change that lets the Host report Quota (Claude: status line wrapper). */
301
301
  quotaSetup?: QuotaSetup;
302
+ /**
303
+ * How a user spends a Limit Reset of this Family's Accounts (ADR-0072); at least one of `use` and `vendorPage`.
304
+ * Public contract, additive only: a Family without it offers nothing.
305
+ */
306
+ limitReset?: FamilyLimitReset;
302
307
  /**
303
308
  * The session these Host arguments resume by id (UUID-shaped), or undefined when they start a new session or
304
309
  * pick one another way. With `sessionWrittenAt` it lets `sideby resume` find the Account (ADR-0007).
@@ -465,6 +470,66 @@ export interface QuotaWindow {
465
470
  usedPercent: number;
466
471
  /** ISO timestamp. */
467
472
  resetsAt: string;
473
+ /**
474
+ * When this window was read, when that is not the Quota's `observedAt` (ISO timestamp; ADR-0073). Left out, the
475
+ * window is as old as the Quota. sideby sets it on the windows a newer reading did not cover.
476
+ */
477
+ observedAt?: string;
478
+ /** Where this window was read from, when that is not the Quota's `source`. */
479
+ source?: string;
480
+ }
481
+ /**
482
+ * The Limit Resets an Account holds (ADR-0072): one-time credits its vendor gave it, each restoring Quota ahead of a
483
+ * window's own reset time when spent. Only a Host that tells the count reports it; a Host that cannot tell leaves
484
+ * `limitResets` out, which never means zero.
485
+ */
486
+ export interface LimitResets {
487
+ /** How many the Account can spend now; 0 when the Host says it holds none. */
488
+ available: number;
489
+ /** When the count was read (ISO timestamp). */
490
+ observedAt: string;
491
+ /** When the next one to expire does (ISO timestamp); left out when no expiry is known for every one of them. */
492
+ nextExpiresAt?: string;
493
+ }
494
+ /** What the Host answered to one spend of a Limit Reset (ADR-0072). */
495
+ export type LimitResetOutcome =
496
+ /** One Limit Reset was spent and the windows it applies to were reset. */
497
+ 'reset'
498
+ /** No window can be reset now; nothing was spent. */
499
+ | 'nothing-to-reset'
500
+ /** The Account holds no Limit Reset; nothing was spent. */
501
+ | 'none-left'
502
+ /** The same `idempotencyKey` already spent one: this request spent nothing more. */
503
+ | 'already-done';
504
+ export interface LimitResetContext extends QuotaFetchContext {
505
+ /**
506
+ * Names this one spend. sideby keeps it before calling `use` and passes the same key again when it retries, so
507
+ * pass it to the Host unchanged: a Host that sees a key twice must spend at most once.
508
+ */
509
+ idempotencyKey: string;
510
+ }
511
+ /**
512
+ * How a Limit Reset of this Family is spent (ADR-0072). sideby owns the confirmation, the lock, the record of the
513
+ * attempt, the timeout and the Quota read afterwards; a Family only sends the one request, or names the page.
514
+ */
515
+ export interface FamilyLimitReset {
516
+ /**
517
+ * Spends one Limit Reset of `account` through the Host's own CLI and says what the Host answered. Called only
518
+ * after the user confirmed this one spend; it cannot be undone. Send `ctx.idempotencyKey` with it, run the Host
519
+ * with `ctx.hostEnv`, and stop when `ctx.signal` aborts. Throw when the Host gave no final answer: sideby then
520
+ * keeps the attempt as unresolved and retries it with the same key. Set `sent: false` on the thrown error only
521
+ * when the request certainly never reached the Host (it is not installed, it does not know the request): sideby
522
+ * then tells the user nothing was spent. Never read a credential for it. The Family also needs `identity`: sideby
523
+ * compares the login an Account is signed in as when the plan is shown with the one right before the request, and
524
+ * refuses when it cannot tell them to be the same, so a confirmed spend never goes to another login.
525
+ */
526
+ use?(account: Account, ctx: LimitResetContext): Promise<LimitResetOutcome>;
527
+ /**
528
+ * The vendor's own page where a Limit Reset is spent, for a Host whose CLI cannot do it (Claude Code:
529
+ * `https://claude.ai/settings/usage`). An https address under the same rules as `website.url`. sideby only opens
530
+ * it, in the Account's Browser Profile when one is known, else the default browser.
531
+ */
532
+ vendorPage?: string;
468
533
  }
469
534
  export type QuotaUnavailableReason = 'not-enabled' | 'no-session' | 'unrecognized' | 'no-source' | 'api-account'
470
535
  /** A `fetchQuota` answer failed; `detail` says why and what to do. */
@@ -475,6 +540,8 @@ export type QuotaResult = {
475
540
  observedAt: string;
476
541
  source: string;
477
542
  plan?: string;
543
+ /** The Limit Resets the Account holds, from a Host that tells (ADR-0072); left out when it cannot tell. */
544
+ limitResets?: LimitResets;
478
545
  /**
479
546
  * Set by sideby, never by a Family's reader: the Account this reading was taken from, when it is another
480
547
  * Account signed in as the same login (spec §3.21). `observedAt` is that Account's time.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sideby",
3
- "version": "0.35.9",
3
+ "version": "0.36.0",
4
4
  "description": "Run work, personal and API-key accounts at the same time, without their configs drifting apart.",
5
5
  "license": "MIT",
6
6
  "author": "Adonis0123 (https://github.com/Adonis0123)",
@@ -0,0 +1,332 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "sideby/advisor.json",
4
+ "type": "object",
5
+ "required": [
6
+ "schemaVersion",
7
+ "action"
8
+ ],
9
+ "properties": {
10
+ "schemaVersion": {
11
+ "type": "number",
12
+ "const": 1
13
+ },
14
+ "action": {
15
+ "anyOf": [
16
+ {
17
+ "type": "string",
18
+ "const": "status"
19
+ },
20
+ {
21
+ "type": "string",
22
+ "const": "set"
23
+ },
24
+ {
25
+ "type": "string",
26
+ "const": "undo"
27
+ },
28
+ {
29
+ "type": "string",
30
+ "const": "unlock"
31
+ }
32
+ ]
33
+ },
34
+ "to": {
35
+ "anyOf": [
36
+ {
37
+ "type": "string",
38
+ "const": "fable"
39
+ },
40
+ {
41
+ "type": "string",
42
+ "const": "opus"
43
+ },
44
+ {
45
+ "type": "string",
46
+ "const": "sonnet"
47
+ },
48
+ {
49
+ "type": "string",
50
+ "const": "off"
51
+ },
52
+ {
53
+ "type": "string",
54
+ "const": "on"
55
+ }
56
+ ],
57
+ "description": "For set: the model chosen, or off. For unlock: on or off."
58
+ },
59
+ "applied": {
60
+ "type": "boolean",
61
+ "description": "True once the change was written (or undone)."
62
+ },
63
+ "groups": {
64
+ "type": "array",
65
+ "items": {
66
+ "type": "object",
67
+ "required": [
68
+ "file",
69
+ "accounts",
70
+ "state",
71
+ "undo"
72
+ ],
73
+ "properties": {
74
+ "file": {
75
+ "type": "string"
76
+ },
77
+ "accounts": {
78
+ "type": "array",
79
+ "items": {
80
+ "type": "string"
81
+ },
82
+ "description": "Claude subscription accounts whose settings.json is this file."
83
+ },
84
+ "state": {
85
+ "anyOf": [
86
+ {
87
+ "type": "string",
88
+ "const": "fable"
89
+ },
90
+ {
91
+ "type": "string",
92
+ "const": "opus"
93
+ },
94
+ {
95
+ "type": "string",
96
+ "const": "sonnet"
97
+ },
98
+ {
99
+ "type": "string",
100
+ "const": "other"
101
+ },
102
+ {
103
+ "type": "string",
104
+ "const": "off"
105
+ },
106
+ {
107
+ "type": "string",
108
+ "const": "missing"
109
+ },
110
+ {
111
+ "type": "string",
112
+ "const": "blocked"
113
+ }
114
+ ],
115
+ "description": "fable, opus, sonnet: advisorModel names that model; other: another value (see model); off: not set or empty; missing: no settings.json; blocked: cannot be changed safely (see reason)."
116
+ },
117
+ "model": {
118
+ "type": "string"
119
+ },
120
+ "betasOff": {
121
+ "type": "boolean",
122
+ "const": true,
123
+ "description": "The file's env sets CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS to a true value, which turns off Claude Code's experimental features, the advisor among them. Choosing a model removes it."
124
+ },
125
+ "betasValue": {
126
+ "type": "string",
127
+ "description": "That value as JSON, such as \"1\"; only with betasOff."
128
+ },
129
+ "apiAccounts": {
130
+ "type": "array",
131
+ "items": {
132
+ "type": "string"
133
+ },
134
+ "description": "Claude API accounts that use this same file. Where the variable is removed, config claude.apiBetasOff gives it to them at launch instead."
135
+ },
136
+ "why": {
137
+ "anyOf": [
138
+ {
139
+ "type": "string",
140
+ "const": "no-settings"
141
+ },
142
+ {
143
+ "type": "string",
144
+ "const": "broken-link"
145
+ },
146
+ {
147
+ "type": "string",
148
+ "const": "unsafe"
149
+ }
150
+ ]
151
+ },
152
+ "reason": {
153
+ "type": "string"
154
+ },
155
+ "undo": {
156
+ "type": "boolean",
157
+ "description": "sideby changed it here and can put the earlier value back."
158
+ },
159
+ "undoApiBetas": {
160
+ "type": "boolean",
161
+ "const": true,
162
+ "description": "With undo: that change turned config claude.apiBetasOff on for this file, and undo puts it back."
163
+ }
164
+ }
165
+ },
166
+ "description": "For status, every file; for a preview, the files that would change."
167
+ },
168
+ "skipped": {
169
+ "type": "array",
170
+ "items": {
171
+ "type": "object",
172
+ "required": [
173
+ "file",
174
+ "accounts",
175
+ "state"
176
+ ],
177
+ "properties": {
178
+ "file": {
179
+ "type": "string"
180
+ },
181
+ "accounts": {
182
+ "type": "array",
183
+ "items": {
184
+ "type": "string"
185
+ }
186
+ },
187
+ "state": {
188
+ "type": "string"
189
+ },
190
+ "reason": {
191
+ "type": "string"
192
+ }
193
+ }
194
+ },
195
+ "description": "For a preview: files of the scope sideby cannot change (no settings.json, or unsafe)."
196
+ },
197
+ "unlock": {
198
+ "type": "boolean",
199
+ "description": "Config advisor.unlock: sessions sideby starts for Claude subscription accounts get CLAUDE_CODE_ENABLE_EXPERIMENTAL_ADVISOR_TOOL=1."
200
+ },
201
+ "unlocks": {
202
+ "type": "boolean",
203
+ "description": "For a preview: the change also turns advisor.unlock on."
204
+ },
205
+ "removesBetas": {
206
+ "type": "boolean",
207
+ "description": "For a preview of a model: the listed groups with betasOff also lose env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS in the same write."
208
+ },
209
+ "unlocked": {
210
+ "type": "boolean",
211
+ "description": "This change turned advisor.unlock on."
212
+ },
213
+ "apiBetasOff": {
214
+ "type": "boolean",
215
+ "description": "Config claude.apiBetasOff: Claude API accounts sideby starts get CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1 (a value in their proxy.env or the environment wins). After a change, its new value."
216
+ },
217
+ "apiAccounts": {
218
+ "type": "array",
219
+ "items": {
220
+ "type": "string"
221
+ },
222
+ "description": "For a preview of a model: API accounts whose settings file loses the variable; they keep it through claude.apiBetasOff."
223
+ },
224
+ "apiBetasOn": {
225
+ "type": "boolean",
226
+ "description": "For a preview of a model: the change also turns claude.apiBetasOff on."
227
+ },
228
+ "apiBetasBack": {
229
+ "type": "boolean",
230
+ "description": "For a preview of undo: claude.apiBetasOff also goes back to its earlier value."
231
+ },
232
+ "envOff": {
233
+ "type": "string",
234
+ "description": "A variable in the environment that makes Claude Code hide the advisor."
235
+ },
236
+ "results": {
237
+ "type": "array",
238
+ "items": {
239
+ "type": "object",
240
+ "required": [
241
+ "file",
242
+ "accounts",
243
+ "ok",
244
+ "message"
245
+ ],
246
+ "properties": {
247
+ "file": {
248
+ "type": "string"
249
+ },
250
+ "accounts": {
251
+ "type": "array",
252
+ "items": {
253
+ "type": "string"
254
+ }
255
+ },
256
+ "ok": {
257
+ "type": "boolean"
258
+ },
259
+ "message": {
260
+ "type": "string"
261
+ }
262
+ }
263
+ }
264
+ },
265
+ "message": {
266
+ "type": "string"
267
+ },
268
+ "_notice": {
269
+ "type": "object",
270
+ "properties": {
271
+ "update": {
272
+ "type": "object",
273
+ "required": [
274
+ "current",
275
+ "latest",
276
+ "command",
277
+ "message"
278
+ ],
279
+ "properties": {
280
+ "current": {
281
+ "type": "string"
282
+ },
283
+ "latest": {
284
+ "type": "string"
285
+ },
286
+ "command": {
287
+ "type": "string",
288
+ "description": "Run it after the user agrees: it shows the plan and exits 10; then --yes."
289
+ },
290
+ "message": {
291
+ "type": "string"
292
+ }
293
+ }
294
+ },
295
+ "skill": {
296
+ "type": "object",
297
+ "required": [
298
+ "installed",
299
+ "current",
300
+ "command",
301
+ "message"
302
+ ],
303
+ "properties": {
304
+ "installed": {
305
+ "anyOf": [
306
+ {
307
+ "type": "string"
308
+ },
309
+ {
310
+ "type": "null"
311
+ }
312
+ ],
313
+ "description": "The skill's version; null when it has none."
314
+ },
315
+ "current": {
316
+ "type": "string"
317
+ },
318
+ "command": {
319
+ "type": "string",
320
+ "description": "`sideby update`, which updates the skill with sideby: run it after the user agrees; it shows the plan and exits 10, then --yes."
321
+ },
322
+ "message": {
323
+ "type": "string"
324
+ }
325
+ }
326
+ }
327
+ },
328
+ "description": "Not the answer to the task: mention it briefly afterwards and offer to update."
329
+ }
330
+ },
331
+ "title": "sideby advisor [fable|opus|sonnet|off|undo|unlock on|off] --json"
332
+ }
@@ -407,6 +407,28 @@
407
407
  "additionalProperties": false,
408
408
  "description": "Network Guard (spec §3.35, ADR-0053)."
409
409
  },
410
+ "advisor": {
411
+ "type": "object",
412
+ "properties": {
413
+ "unlock": {
414
+ "type": "boolean",
415
+ "description": "Unlock Claude Code's advisor (`/advisor`) in the sessions sideby starts for Claude subscription accounts, by setting `CLAUDE_CODE_ENABLE_EXPERIMENTAL_ADVISOR_TOOL=1` at launch (never when `CLAUDE_CODE_DISABLE_ADVISOR_TOOL` is set). Off by default; choosing a model with `sideby advisor <model>` turns it on."
416
+ }
417
+ },
418
+ "additionalProperties": false,
419
+ "description": "Advisor (spec §3.41, ADR-0074)."
420
+ },
421
+ "claude": {
422
+ "type": "object",
423
+ "properties": {
424
+ "apiBetasOff": {
425
+ "type": "boolean",
426
+ "description": "Give Claude API accounts `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1` when sideby starts them, for gateways that reject Claude Code's `anthropic-beta` headers. The account's own proxy.env and a value already in the environment win. Off by default; `sideby advisor <model>` turns it on when it removes that variable from a settings file API accounts share."
427
+ }
428
+ },
429
+ "additionalProperties": false,
430
+ "description": "Claude Code launches (spec §3.41, ADR-0074)."
431
+ },
410
432
  "unattended": {
411
433
  "type": "object",
412
434
  "properties": {
@@ -24,6 +24,10 @@
24
24
  "type": "string",
25
25
  "description": "Same as `code`, for a refused Task Spec (`sideby ask --spec -`): `spec-invalid`, `spec-too-large`, `bad-cwd`, or `spec-version` (exit 2: update sideby)."
26
26
  },
27
+ "operationId": {
28
+ "type": "string",
29
+ "description": "Only from `sideby quota reset`: the operation this failure belongs to. With `code: outcome-unknown` the Host gave no final answer; run `sideby quota reset <account> --yes --operation <operationId>` to ask again with the same request, which cannot use a second limit reset. With `code: outcome-not-saved` the Host answered (`error` says what) but sideby could not record it; run the same command once the file `error` names can be written."
30
+ },
27
31
  "_notice": {
28
32
  "type": "object",
29
33
  "properties": {
@@ -0,0 +1,93 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "sideby/menubar-reset.json",
4
+ "type": "object",
5
+ "required": [
6
+ "schemaVersion",
7
+ "account",
8
+ "url",
9
+ "opened"
10
+ ],
11
+ "properties": {
12
+ "schemaVersion": {
13
+ "type": "number",
14
+ "const": 1
15
+ },
16
+ "account": {
17
+ "type": "string"
18
+ },
19
+ "url": {
20
+ "type": "string",
21
+ "description": "The page that was opened: the Panel on this account's limit reset confirmation, or the vendor's page where a limit reset is used. Opening it uses nothing."
22
+ },
23
+ "opened": {
24
+ "type": "boolean"
25
+ },
26
+ "profile": {
27
+ "type": "string",
28
+ "description": "The Browser Profile it opened in, when not the default browser."
29
+ },
30
+ "_notice": {
31
+ "type": "object",
32
+ "properties": {
33
+ "update": {
34
+ "type": "object",
35
+ "required": [
36
+ "current",
37
+ "latest",
38
+ "command",
39
+ "message"
40
+ ],
41
+ "properties": {
42
+ "current": {
43
+ "type": "string"
44
+ },
45
+ "latest": {
46
+ "type": "string"
47
+ },
48
+ "command": {
49
+ "type": "string",
50
+ "description": "Run it after the user agrees: it shows the plan and exits 10; then --yes."
51
+ },
52
+ "message": {
53
+ "type": "string"
54
+ }
55
+ }
56
+ },
57
+ "skill": {
58
+ "type": "object",
59
+ "required": [
60
+ "installed",
61
+ "current",
62
+ "command",
63
+ "message"
64
+ ],
65
+ "properties": {
66
+ "installed": {
67
+ "anyOf": [
68
+ {
69
+ "type": "string"
70
+ },
71
+ {
72
+ "type": "null"
73
+ }
74
+ ],
75
+ "description": "The skill's version; null when it has none."
76
+ },
77
+ "current": {
78
+ "type": "string"
79
+ },
80
+ "command": {
81
+ "type": "string",
82
+ "description": "`sideby update`, which updates the skill with sideby: run it after the user agrees; it shows the plan and exits 10, then --yes."
83
+ },
84
+ "message": {
85
+ "type": "string"
86
+ }
87
+ }
88
+ }
89
+ },
90
+ "description": "Not the answer to the task: mention it briefly afterwards and offer to update."
91
+ }
92
+ }
93
+ }
@@ -325,7 +325,11 @@
325
325
  },
326
326
  "stale": {
327
327
  "type": "boolean",
328
- "description": "The quota is old, undated, or its last query failed."
328
+ "description": "The quota is old, undated, or its last query failed; true when any window of the row is."
329
+ },
330
+ "barsStale": {
331
+ "type": "boolean",
332
+ "description": "Whether the account's own bars are old, when that differs from `stale` (a model group under them was read at another time); left out, `stale` stands for them."
329
333
  },
330
334
  "tip": {
331
335
  "type": "string",
@@ -583,6 +587,10 @@
583
587
  },
584
588
  "tip": {
585
589
  "type": "string"
590
+ },
591
+ "stale": {
592
+ "type": "boolean",
593
+ "description": "This group's numbers are old by their own read time; left out, the row's `stale` stands for it."
586
594
  }
587
595
  }
588
596
  }
@@ -618,6 +626,32 @@
618
626
  "note": {
619
627
  "type": "string",
620
628
  "description": "A no-quota explanation, or an old-reading warning beside the bars."
629
+ },
630
+ "limitResets": {
631
+ "type": "string",
632
+ "description": "The Limit Resets the account holds, in words (`1 reset available`); left out for none or when the Host cannot tell."
633
+ },
634
+ "useReset": {
635
+ "type": "object",
636
+ "required": [
637
+ "title",
638
+ "tip"
639
+ ],
640
+ "properties": {
641
+ "title": {
642
+ "type": "string",
643
+ "description": "The words of the line, such as `Use a reset…`."
644
+ },
645
+ "tip": {
646
+ "type": "string",
647
+ "description": "Its hover text: which page a click opens."
648
+ }
649
+ },
650
+ "description": "A line under the account that leads to using a Limit Reset; a click runs `sideby menubar reset <account>`, which opens the Panel on that account's confirmation or the vendor's page and never uses one. Left out when nothing is offered."
651
+ },
652
+ "age": {
653
+ "type": "string",
654
+ "description": "How old the numbers are, in words (`read 25m ago`), once older than the Family's check interval or old; left out while they are current."
621
655
  }
622
656
  }
623
657
  },
@@ -703,7 +737,11 @@
703
737
  },
704
738
  "stale": {
705
739
  "type": "boolean",
706
- "description": "The quota is old, undated, or its last query failed."
740
+ "description": "The quota is old, undated, or its last query failed; true when any window of the row is."
741
+ },
742
+ "barsStale": {
743
+ "type": "boolean",
744
+ "description": "Whether the account's own bars are old, when that differs from `stale` (a model group under them was read at another time); left out, `stale` stands for them."
707
745
  },
708
746
  "tip": {
709
747
  "type": "string",
@@ -961,6 +999,10 @@
961
999
  },
962
1000
  "tip": {
963
1001
  "type": "string"
1002
+ },
1003
+ "stale": {
1004
+ "type": "boolean",
1005
+ "description": "This group's numbers are old by their own read time; left out, the row's `stale` stands for it."
964
1006
  }
965
1007
  }
966
1008
  }
@@ -996,6 +1038,32 @@
996
1038
  "note": {
997
1039
  "type": "string",
998
1040
  "description": "A no-quota explanation, or an old-reading warning beside the bars."
1041
+ },
1042
+ "limitResets": {
1043
+ "type": "string",
1044
+ "description": "The Limit Resets the account holds, in words (`1 reset available`); left out for none or when the Host cannot tell."
1045
+ },
1046
+ "useReset": {
1047
+ "type": "object",
1048
+ "required": [
1049
+ "title",
1050
+ "tip"
1051
+ ],
1052
+ "properties": {
1053
+ "title": {
1054
+ "type": "string",
1055
+ "description": "The words of the line, such as `Use a reset…`."
1056
+ },
1057
+ "tip": {
1058
+ "type": "string",
1059
+ "description": "Its hover text: which page a click opens."
1060
+ }
1061
+ },
1062
+ "description": "A line under the account that leads to using a Limit Reset; a click runs `sideby menubar reset <account>`, which opens the Panel on that account's confirmation or the vendor's page and never uses one. Left out when nothing is offered."
1063
+ },
1064
+ "age": {
1065
+ "type": "string",
1066
+ "description": "How old the numbers are, in words (`read 25m ago`), once older than the Family's check interval or old; left out while they are current."
999
1067
  }
1000
1068
  }
1001
1069
  }