sideby 0.45.0 → 0.45.1

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":"20261124T055449-607979"}
1
+ {"id":"20261124T100816-3f80d3"}
@@ -26,13 +26,14 @@ export async function pickTaskAccount(rt, opts = {}) {
26
26
  const a = await rt.resolve(opts.account);
27
27
  if (opts.family && a.family !== opts.family)
28
28
  throw new UserError('Choose an account of the requested family; run `sideby list`.');
29
- if (a.kind === 'api' || (await rt.status(a)).login === 'logged-in')
29
+ // A named Account runs unless known to be signed out: an `unknown` one (a Keychain sign-in) asks in its Host.
30
+ if (a.kind === 'api' || (await rt.status(a)).login !== 'logged-out')
30
31
  return { account: a };
31
32
  return { reason: 'none-signed-in' };
32
33
  }
33
- // A remembered choice may be an API Account; only the automatic pick below skips them.
34
+ // A remembered choice may be an API Account or one of unknown sign-in; only the automatic pick below skips them.
34
35
  const preferred = all.find((a) => a.ref === rt.config.ask?.account);
35
- if (preferred && (preferred.kind === 'api' || (await rt.status(preferred)).login === 'logged-in'))
36
+ if (preferred && (preferred.kind === 'api' || (await rt.status(preferred)).login !== 'logged-out'))
36
37
  return { account: preferred };
37
38
  if (!all.length)
38
39
  return { reason: 'no-accounts' };
@@ -185,13 +185,20 @@ export async function taskChoices(rt) {
185
185
  const pick = await pickTaskAccount(rt);
186
186
  const signedIn = [];
187
187
  const api = [];
188
+ // `unknown`: the sign-in is in the Keychain, which sideby never reads (agy); offered, since only the Host can tell.
189
+ const unknown = [];
188
190
  const signedOut = [];
189
191
  const all = [...(await rt.accounts())].sort((a, b) => (a.ref < b.ref ? -1 : a.ref > b.ref ? 1 : 0));
190
192
  for (const a of all) {
191
- if (a.kind === 'api')
193
+ if (a.kind === 'api') {
192
194
  api.push({ ref: a.ref, label: `${a.ref} · API`, signedIn: true });
193
- else if ((await rt.status(a)).login === 'logged-in')
195
+ continue;
196
+ }
197
+ const login = (await rt.status(a)).login;
198
+ if (login === 'logged-in')
194
199
  signedIn.push({ ref: a.ref, label: a.ref, signedIn: true });
200
+ else if (login === 'unknown')
201
+ unknown.push({ ref: a.ref, label: a.ref, signedIn: true });
195
202
  else
196
203
  signedOut.push({ ref: a.ref, label: a.ref, signedIn: false });
197
204
  }
@@ -200,7 +207,7 @@ export async function taskChoices(rt) {
200
207
  return {
201
208
  schemaVersion: 1,
202
209
  account: 'account' in pick ? pick.account.ref : null,
203
- accounts: [...signedIn, ...api, ...signedOut],
210
+ accounts: [...signedIn, ...api, ...unknown, ...signedOut],
204
211
  terminal: t.guess.id,
205
212
  terminals: t.installed.map((i) => ({ id: i.id, label: name(i.id) })),
206
213
  reason: 'reason' in pick ? pick.reason : null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sideby",
3
- "version": "0.45.0",
3
+ "version": "0.45.1",
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)",
@@ -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.45.0"
5
+ version: "0.45.1"
6
6
  requires:
7
7
  bins: [sideby, node]
8
8
  cliHelp: sideby --help