sideby 0.32.1 → 0.32.2
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/dist/build.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"20261030T183500-1af3ae"}
|
|
@@ -129,9 +129,10 @@ export declare function menubarHotkey(value: string | undefined): MenubarHotkey
|
|
|
129
129
|
/** `2h 5m`, `3d 4h` or `12m` until `at`; at least one minute. */
|
|
130
130
|
export declare function untilText(at: string, now: Date, s: MenubarStrings): string;
|
|
131
131
|
/**
|
|
132
|
-
* The model groups of a Quota
|
|
133
|
-
* as the Panel shows them: each with its own windows, so the menu draws a line per group
|
|
134
|
-
*
|
|
132
|
+
* The model groups of a Quota, from its windows that cover one group (Antigravity CLI's, Cursor's "Other models"), in
|
|
133
|
+
* the order the Host lists them, as the Panel shows them: each with its own windows, so the menu draws a line per group
|
|
134
|
+
* with its `5h` and `7d` bars. Windows that cover every model stay on the account's own line. Null when no window
|
|
135
|
+
* covers a single group.
|
|
135
136
|
*/
|
|
136
137
|
export declare function quotaGroups(quota: QuotaResult): {
|
|
137
138
|
name: string;
|
|
@@ -80,16 +80,18 @@ function durationText(minutes, s) {
|
|
|
80
80
|
return fill(s.minutes, { m });
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
|
-
* The model groups of a Quota
|
|
84
|
-
* as the Panel shows them: each with its own windows, so the menu draws a line per group
|
|
85
|
-
*
|
|
83
|
+
* The model groups of a Quota, from its windows that cover one group (Antigravity CLI's, Cursor's "Other models"), in
|
|
84
|
+
* the order the Host lists them, as the Panel shows them: each with its own windows, so the menu draws a line per group
|
|
85
|
+
* with its `5h` and `7d` bars. Windows that cover every model stay on the account's own line. Null when no window
|
|
86
|
+
* covers a single group.
|
|
86
87
|
*/
|
|
87
88
|
export function quotaGroups(quota) {
|
|
88
|
-
if (quota.status !== 'ok' || !quota.windows.
|
|
89
|
+
if (quota.status !== 'ok' || !quota.windows.some((w) => w.name))
|
|
89
90
|
return null;
|
|
90
91
|
const groups = new Map();
|
|
91
92
|
for (const { name, ...w } of quota.windows)
|
|
92
|
-
|
|
93
|
+
if (name)
|
|
94
|
+
groups.set(name, [...(groups.get(name) ?? []), w]);
|
|
93
95
|
return [...groups].map(([name, windows]) => ({ name, quota: { ...quota, windows } }));
|
|
94
96
|
}
|
|
95
97
|
/** A model group's name over its line, without a trailing "models" so it fits. */
|
|
@@ -187,19 +189,30 @@ function row(a, plan, now, s, refreshable) {
|
|
|
187
189
|
];
|
|
188
190
|
const groups = quotaGroups(quota);
|
|
189
191
|
if (groups) {
|
|
190
|
-
// One line per model group under the account, each with its own 5h and 7d bars (spec §3.31).
|
|
192
|
+
// One line per model group under the account, each with its own 5h and 7d bars (spec §3.31). Windows that cover
|
|
193
|
+
// every model (Cursor's plan total) keep their bars on the account's own line.
|
|
191
194
|
const drawnGroups = groups.map((g) => ({ name: g.name, d: drawn(g.quota, now, s) }));
|
|
192
195
|
const groupTip = (g) => [g.name, ...g.d.lines.map((l) => ` ${l}`)];
|
|
196
|
+
const all = openWindows(quota, now) ? drawn(quota, now, s) : null;
|
|
193
197
|
return {
|
|
194
198
|
...base,
|
|
195
199
|
observedAt: quota.observedAt,
|
|
196
200
|
stale,
|
|
197
201
|
detail: [
|
|
202
|
+
...(all ? [all.parts.join(' ')] : []),
|
|
198
203
|
...drawnGroups.map((g) => `${groupLabel(g.name)} ${g.d.parts.join(' ')}`),
|
|
199
204
|
...(stale ? [s.olderReading] : []),
|
|
200
205
|
].join(s.sep),
|
|
201
|
-
level: drawnGroups.reduce((l, g) => worseLevel(l, g.d.level), 'ok'),
|
|
202
|
-
tip: [
|
|
206
|
+
level: drawnGroups.reduce((l, g) => worseLevel(l, g.d.level), all?.level ?? 'ok'),
|
|
207
|
+
tip: [
|
|
208
|
+
...head,
|
|
209
|
+
'',
|
|
210
|
+
...(all ? [...all.lines, ''] : []),
|
|
211
|
+
...drawnGroups.flatMap(groupTip),
|
|
212
|
+
'',
|
|
213
|
+
startTip,
|
|
214
|
+
].join('\n'),
|
|
215
|
+
...(all ? { bars: all.bars, reset: all.reset } : {}),
|
|
203
216
|
groups: drawnGroups.map((g) => ({
|
|
204
217
|
label: groupLabel(g.name),
|
|
205
218
|
bars: g.d.bars,
|
package/package.json
CHANGED
package/skills/sideby/SKILL.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: sideby
|
|
3
3
|
description: Use when the user runs, or wants to run, several AI coding accounts (Claude Code, Codex, Grok Build, pi) side by side. Covers installing sideby and setting up a new account ("install sideby", "set up another Claude account", "add cc008", "配置一个 cc00x", "再加一个 Codex 账号"), explaining what accounts share and what stays separate ("what do my accounts share?", "这些账号共享了什么"), showing which account a session is ("show [cc001] in the status line", "加上账号标识"), finding a past session of any account ("找一下我上周改登录页的那个会话"), telling another running session something, in any account ("告诉 cc002 ……", "给跑构建的那个会话发消息"; Claude Code's own SendMessage reaches only sessions of the same account), seeing accounts, quota and usage, moving on when one hits its 5-hour or weekly limit, moving the current task to another account ("用 cc008 继续", "交回 cc008"), adding a short command (alias) or a pick command that starts whichever account has the most quota ("加个 cc"), adding an API account from a vendor's docs ("加一个 DeepSeek API 账号"), supporting a new tool, and repairing drifted account directories (skills, hooks, rules or settings not shared, wrong symlinks, credential file permissions). Drives the `sideby` CLI with `--json`; the agent does every step except browser sign-in, filling in secrets and starting interactive sessions, which it hands to the user as one command (inside an Auto Handoff session, `sideby handoff ready --to` moves the task itself).
|
|
4
4
|
metadata:
|
|
5
|
-
version: "0.32.
|
|
5
|
+
version: "0.32.2"
|
|
6
6
|
requires:
|
|
7
7
|
bins: [sideby, node]
|
|
8
8
|
cliHelp: sideby --help
|