sideby 0.11.0 → 0.12.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.
@@ -0,0 +1,115 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "sideby/update.json",
4
+ "type": "object",
5
+ "required": [
6
+ "schemaVersion",
7
+ "current",
8
+ "latest",
9
+ "available",
10
+ "method",
11
+ "command",
12
+ "canRun",
13
+ "releaseNotes",
14
+ "updated"
15
+ ],
16
+ "properties": {
17
+ "schemaVersion": {
18
+ "type": "number",
19
+ "const": 1
20
+ },
21
+ "current": {
22
+ "type": "string",
23
+ "description": "The running sideby version."
24
+ },
25
+ "latest": {
26
+ "type": "string",
27
+ "description": "The `latest` version on the npm registry."
28
+ },
29
+ "available": {
30
+ "type": "boolean",
31
+ "description": "`latest` is newer than `current`."
32
+ },
33
+ "method": {
34
+ "type": "object",
35
+ "required": [
36
+ "kind",
37
+ "canUpdate"
38
+ ],
39
+ "properties": {
40
+ "kind": {
41
+ "anyOf": [
42
+ {
43
+ "type": "string",
44
+ "const": "npm"
45
+ },
46
+ {
47
+ "type": "string",
48
+ "const": "pnpm"
49
+ },
50
+ {
51
+ "type": "string",
52
+ "const": "bun"
53
+ },
54
+ {
55
+ "type": "string",
56
+ "const": "volta"
57
+ },
58
+ {
59
+ "type": "string",
60
+ "const": "npx"
61
+ },
62
+ {
63
+ "type": "string",
64
+ "const": "project"
65
+ },
66
+ {
67
+ "type": "string",
68
+ "const": "source"
69
+ }
70
+ ],
71
+ "description": "How this copy was installed."
72
+ },
73
+ "canUpdate": {
74
+ "type": "boolean",
75
+ "description": "sideby can run the Update itself."
76
+ },
77
+ "reason": {
78
+ "type": "string",
79
+ "description": "Why it cannot."
80
+ }
81
+ }
82
+ },
83
+ "command": {
84
+ "type": "string",
85
+ "description": "What an Update runs, or what to run by hand when `canRun` is false."
86
+ },
87
+ "canRun": {
88
+ "type": "boolean"
89
+ },
90
+ "releaseNotes": {
91
+ "type": "string",
92
+ "description": "The release notes of `latest`."
93
+ },
94
+ "updated": {
95
+ "type": "boolean",
96
+ "description": "False when only the plan was shown (exit 10 with --yes still to add) or nothing to do."
97
+ },
98
+ "message": {
99
+ "type": "string"
100
+ },
101
+ "restartedPanel": {
102
+ "type": "boolean",
103
+ "description": "A background Panel was running and starts again with the new version."
104
+ },
105
+ "skill": {
106
+ "type": "string",
107
+ "description": "The command that updates the sideby skill; sideby never runs it."
108
+ },
109
+ "output": {
110
+ "type": "string",
111
+ "description": "What the failed install command printed."
112
+ }
113
+ },
114
+ "title": "sideby update --json"
115
+ }
@@ -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, moving the current task to another account ("用 cc008 继续", "交回 cc008"), 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 (inside an Auto Handoff session, `sideby handoff ready --to` moves the task itself).
4
4
  metadata:
5
- version: "0.11.0"
5
+ version: "0.12.1"
6
6
  requires:
7
7
  bins: [sideby, node]
8
8
  cliHelp: sideby --help
@@ -65,6 +65,10 @@ Grok Bot is not a grok account's app: it signs in with a Cursor account, apart f
65
65
 
66
66
  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.
67
67
 
68
+ ## Updating sideby
69
+
70
+ To update sideby, run `sideby update --json` yourself: it shows `current`, `latest`, the `command` and whether sideby can run it (`canRun`; exit 10). Ask the user, then run `sideby update --yes --json`. When `canRun` is false (npx, a project dependency, a source checkout, a global folder they cannot write), hand them the `command` as one line instead. Updating restarts a background panel by itself; a `sideby ui` in a terminal and running sessions keep the old version until restarted. sideby checks the registry once a day on its own and turns that off with `NO_UPDATE_NOTIFIER=1` or config `"update": { "check": false }`; `"update": { "auto": true }` (off by default) installs new non-major versions by itself. Never turn Auto Update on without the user asking.
71
+
68
72
  ## Keeping this skill current
69
73
 
70
74
  If `sideby doctor --json` reports `skill.outdated`, this skill was written for another sideby version. Tell the user to update it with `npx skills add Adonis0123/sideby -g`.