sideby 0.5.0 → 0.7.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 (49) hide show
  1. package/README.md +5 -3
  2. package/dist/build.json +1 -1
  3. package/dist/src/cli/commands.d.ts +7 -0
  4. package/dist/src/cli/commands.js +96 -2
  5. package/dist/src/cli/json-schemas.js +52 -0
  6. package/dist/src/cli/main.js +31 -2
  7. package/dist/src/core/config.d.ts +14 -0
  8. package/dist/src/core/config.js +9 -0
  9. package/dist/src/core/desktop-app.d.ts +96 -0
  10. package/dist/src/core/desktop-app.js +371 -0
  11. package/dist/src/core/doctor.d.ts +6 -1
  12. package/dist/src/core/doctor.js +19 -0
  13. package/dist/src/core/model-choice.d.ts +41 -0
  14. package/dist/src/core/model-choice.js +128 -0
  15. package/dist/src/core/tuning-apply.js +1 -1
  16. package/dist/src/families/claude/desktop.d.ts +6 -0
  17. package/dist/src/families/claude/desktop.js +28 -0
  18. package/dist/src/families/claude/index.js +2 -0
  19. package/dist/src/families/claude/model.d.ts +2 -0
  20. package/dist/src/families/claude/model.js +42 -0
  21. package/dist/src/families/claude/usage.d.ts +2 -0
  22. package/dist/src/families/claude/usage.js +13 -1
  23. package/dist/src/families/codex/desktop.d.ts +7 -0
  24. package/dist/src/families/codex/desktop.js +25 -0
  25. package/dist/src/families/codex/index.js +2 -0
  26. package/dist/src/families/codex/model.d.ts +2 -0
  27. package/dist/src/families/codex/model.js +59 -0
  28. package/dist/src/families/codex/rollout.d.ts +5 -0
  29. package/dist/src/families/codex/rollout.js +45 -3
  30. package/dist/src/families/desktop.d.ts +27 -0
  31. package/dist/src/families/desktop.js +9 -0
  32. package/dist/src/families/shared/model-args.d.ts +7 -0
  33. package/dist/src/families/shared/model-args.js +28 -0
  34. package/dist/src/panel/handler.d.ts +3 -0
  35. package/dist/src/panel/handler.js +63 -5
  36. package/dist/src/panel/i18n.d.ts +27 -0
  37. package/dist/src/panel/i18n.js +54 -0
  38. package/dist/src/panel/page-logic.js +2 -2
  39. package/dist/src/panel/page-script.js +143 -2
  40. package/dist/src/panel/page-styles.js +5 -1
  41. package/dist/src/runtime.d.ts +16 -0
  42. package/dist/src/runtime.js +5 -0
  43. package/dist/src/types.d.ts +29 -0
  44. package/package.json +3 -2
  45. package/schemas/desktop.json +80 -0
  46. package/schemas/list.json +20 -0
  47. package/schemas/model.json +169 -0
  48. package/schemas/quota.json +6 -0
  49. package/skills/sideby/SKILL.md +5 -2
@@ -171,6 +171,12 @@
171
171
  },
172
172
  "lastActivityAt": {
173
173
  "type": "string"
174
+ },
175
+ "lastModel": {
176
+ "type": "string"
177
+ },
178
+ "lastEffort": {
179
+ "type": "string"
174
180
  }
175
181
  }
176
182
  },
@@ -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", "加上账号标识"), seeing accounts, quota and usage, moving on when one hits its 5-hour or weekly limit, adding a short command (alias), 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.
4
4
  metadata:
5
- version: "0.5.0"
5
+ version: "0.7.0"
6
6
  requires:
7
7
  bins: [sideby, node]
8
8
  cliHelp: sideby --help
@@ -45,6 +45,7 @@ Account refs are `<family>:<name>`; a bare `<name>` works only when it is unique
45
45
  | Turn on Auto Handoff ("自动交接", "hand over when quota runs low"), see what it still needs, hand this session over now, or pick an account with room for a subtask | `sideby handoff status --json`, `sideby handoff enable --json` (exit 10 first), `sideby handoff ready`, `sideby next <family> --json` | `references/handoff.md` |
46
46
  | Create an account with a given name, an API account, or a short command | `sideby new`, `sideby alias add` | `references/accounts.md` |
47
47
  | Tune the auto-compact threshold ("which compaction setting costs the fewest tokens"), use the suggestion or undo it | `sideby tune --json`, `sideby tune apply` (exit 10 first), `sideby tune undo` | `references/diagnose.md` |
48
+ | See or set the model and effort an account starts with ("用哪个模型", "set effort to high for cc002") | `sideby model <acct> --json`; `sideby model <acct> <model\|default> --effort <level\|default>` (exit 10 first, then `--yes` after the user agrees) | — |
48
49
  | See Claude quota (it shows `not-enabled`) | `sideby quota setup claude` (exits 10) | `references/quota.md` |
49
50
  | See everything at once | `sideby ui` (local panel on `127.0.0.1:17420`; `--no-open` prints the address) | — |
50
51
  | Start an account | give them `sideby run <ref> [-- host args]` | — |
@@ -57,7 +58,9 @@ Read only the reference the task needs.
57
58
 
58
59
  When a terminal manager such as Orca reopens a pane with a bare `claude --resume <id>` (or `codex resume <id>`, `grok --resume <id>`) and the Host says `No conversation found`, the session lives in another account. Suggest config `"resumeRouting": true` followed by `sideby shell-init --write` (or a new shell with `eval`): `shell-init` then defines Host-named functions that call `sideby resume <family>`, which starts the account holding that session. For a one-off, find it with `ls -d ~/.claude*/projects/*/<id>.jsonl` and run `sideby run <ref> -- --resume <id>`. When no account has that file, the session was opened but never got a message, so there is nothing to resume: `ls -d ~/.claude*/session-env/<id>` names the account that started it, and with routing on `sideby resume` starts a new session there by itself.
59
60
 
60
- For someone who would rather double-click than use a terminal, `sideby app install` adds a desktop app (macOS `~/Applications/sideby.app`, Linux app menu) that runs `sideby ui --background`; `sideby ui --stop` stops it and `sideby app uninstall` removes the app. Ask before `app install`: it writes outside sideby's own directories.
61
+ To open Claude Desktop or the Codex app as one account (macOS, subscription accounts), run `sideby desktop <ref> --json` yourself: it opens a new window for that account, or brings its open window to the front, and never closes anything. Relay its `notices`: the first Claude Desktop sign-in should happen while other Claude Desktop windows are closed, and a sign-in screen that suggests the main account ("Welcome back" in the Codex app) must not be used for another account.
62
+
63
+ For someone who would rather double-click than use a terminal, `sideby app install` adds a panel app (macOS `~/Applications/sideby.app`, Linux app menu) that runs `sideby ui --background`; `sideby ui --stop` stops it and `sideby app uninstall` removes the app. Ask before `app install`: it writes outside sideby's own directories.
61
64
 
62
65
  ## Keeping this skill current
63
66