sideby 0.19.1 → 0.20.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 (159) hide show
  1. package/README.md +7 -4
  2. package/ai-tasks.json +28 -0
  3. package/dist/build.json +1 -1
  4. package/dist/src/cli/commands.d.ts +22 -1
  5. package/dist/src/cli/commands.js +815 -21
  6. package/dist/src/cli/format.d.ts +4 -0
  7. package/dist/src/cli/format.js +42 -4
  8. package/dist/src/cli/json-schemas.js +334 -4
  9. package/dist/src/cli/main.js +159 -13
  10. package/dist/src/core/accounts.d.ts +6 -0
  11. package/dist/src/core/accounts.js +12 -0
  12. package/dist/src/core/autostart.d.ts +11 -0
  13. package/dist/src/core/autostart.js +32 -5
  14. package/dist/src/core/browser-profiles.d.ts +23 -2
  15. package/dist/src/core/browser-profiles.js +148 -37
  16. package/dist/src/core/claude-settings-file.d.ts +18 -0
  17. package/dist/src/core/claude-settings-file.js +52 -3
  18. package/dist/src/core/config.d.ts +5 -0
  19. package/dist/src/core/config.js +12 -1
  20. package/dist/src/core/edit-settings.d.ts +7 -0
  21. package/dist/src/core/edit-settings.js +10 -5
  22. package/dist/src/core/history-group.d.ts +28 -0
  23. package/dist/src/core/history-group.js +47 -0
  24. package/dist/src/core/history-index.d.ts +145 -0
  25. package/dist/src/core/history-index.js +447 -0
  26. package/dist/src/core/history-project.d.ts +13 -0
  27. package/dist/src/core/history-project.js +87 -0
  28. package/dist/src/core/history.d.ts +210 -0
  29. package/dist/src/core/history.js +952 -0
  30. package/dist/src/core/inbound.d.ts +62 -0
  31. package/dist/src/core/inbound.js +215 -0
  32. package/dist/src/core/launch.d.ts +9 -1
  33. package/dist/src/core/launch.js +58 -24
  34. package/dist/src/core/live-sessions-copy.d.ts +5 -0
  35. package/dist/src/core/live-sessions-copy.js +46 -0
  36. package/dist/src/core/live-sessions-procs.d.ts +89 -0
  37. package/dist/src/core/live-sessions-procs.js +296 -0
  38. package/dist/src/core/live-sessions-title.d.ts +28 -0
  39. package/dist/src/core/live-sessions-title.js +80 -0
  40. package/dist/src/core/live-sessions.d.ts +68 -0
  41. package/dist/src/core/live-sessions.js +163 -0
  42. package/dist/src/core/login-check.d.ts +15 -0
  43. package/dist/src/core/login-check.js +32 -0
  44. package/dist/src/core/messages.d.ts +83 -0
  45. package/dist/src/core/messages.js +433 -0
  46. package/dist/src/core/project-categories.d.ts +14 -0
  47. package/dist/src/core/project-categories.js +48 -0
  48. package/dist/src/core/quota-fetch.d.ts +3 -3
  49. package/dist/src/core/quota-fetch.js +5 -5
  50. package/dist/src/core/quota-levels.d.ts +5 -0
  51. package/dist/src/core/quota-levels.js +5 -0
  52. package/dist/src/core/remote-control.d.ts +2 -0
  53. package/dist/src/core/remote-control.js +34 -59
  54. package/dist/src/core/run-link.d.ts +76 -0
  55. package/dist/src/core/run-link.js +245 -0
  56. package/dist/src/core/same-login.d.ts +4 -3
  57. package/dist/src/core/same-login.js +10 -7
  58. package/dist/src/core/session-select.d.ts +31 -0
  59. package/dist/src/core/session-select.js +44 -0
  60. package/dist/src/families/browser.d.ts +7 -18
  61. package/dist/src/families/browser.js +19 -8
  62. package/dist/src/families/claude/deliver.d.ts +2 -0
  63. package/dist/src/families/claude/deliver.js +43 -0
  64. package/dist/src/families/claude/history.d.ts +2 -0
  65. package/dist/src/families/claude/history.js +192 -0
  66. package/dist/src/families/claude/live-sessions.d.ts +13 -0
  67. package/dist/src/families/claude/live-sessions.js +117 -0
  68. package/dist/src/families/claude/messaging.d.ts +69 -0
  69. package/dist/src/families/claude/messaging.js +165 -0
  70. package/dist/src/families/claude/mod.d.ts +26 -0
  71. package/dist/src/families/claude/mod.js +105 -0
  72. package/dist/src/families/claude/session-files.d.ts +21 -0
  73. package/dist/src/families/claude/session-files.js +54 -0
  74. package/dist/src/families/codex/deliver.d.ts +5 -0
  75. package/dist/src/families/codex/deliver.js +76 -0
  76. package/dist/src/families/codex/history.d.ts +7 -0
  77. package/dist/src/families/codex/history.js +174 -0
  78. package/dist/src/families/codex/index.js +2 -0
  79. package/dist/src/families/codex/live-sessions.d.ts +12 -0
  80. package/dist/src/families/codex/live-sessions.js +193 -0
  81. package/dist/src/families/codex/quota.d.ts +3 -0
  82. package/dist/src/families/codex/quota.js +123 -0
  83. package/dist/src/families/codex/rate-limits.js +2 -0
  84. package/dist/src/families/codex/rollout.js +1 -1
  85. package/dist/src/families/grok/browser.d.ts +3 -0
  86. package/dist/src/families/grok/browser.js +5 -0
  87. package/dist/src/families/grok/history.d.ts +2 -0
  88. package/dist/src/families/grok/history.js +157 -0
  89. package/dist/src/families/grok/live-sessions.d.ts +4 -0
  90. package/dist/src/families/grok/live-sessions.js +80 -0
  91. package/dist/src/families/grok/login-key.d.ts +14 -0
  92. package/dist/src/families/grok/login-key.js +37 -0
  93. package/dist/src/families/history.d.ts +20 -0
  94. package/dist/src/families/history.js +81 -0
  95. package/dist/src/families/live-sessions.d.ts +26 -0
  96. package/dist/src/families/live-sessions.js +9 -0
  97. package/dist/src/families/login-keys.js +5 -1
  98. package/dist/src/families/messaging.d.ts +27 -0
  99. package/dist/src/families/messaging.js +6 -0
  100. package/dist/src/families/pi/history.d.ts +2 -0
  101. package/dist/src/families/pi/history.js +124 -0
  102. package/dist/src/families/pi/live-sessions.d.ts +2 -0
  103. package/dist/src/families/pi/live-sessions.js +70 -0
  104. package/dist/src/families/shared/history-text.d.ts +65 -0
  105. package/dist/src/families/shared/history-text.js +261 -0
  106. package/dist/src/menubar/hotkey.d.ts +86 -0
  107. package/dist/src/menubar/hotkey.js +159 -0
  108. package/dist/src/menubar/script.d.ts +2 -0
  109. package/dist/src/menubar/script.js +118 -22
  110. package/dist/src/menubar/snapshot.d.ts +8 -4
  111. package/dist/src/menubar/snapshot.js +45 -13
  112. package/dist/src/menubar/strings.d.ts +24 -6
  113. package/dist/src/menubar/strings.js +24 -6
  114. package/dist/src/panel/handler.d.ts +69 -0
  115. package/dist/src/panel/handler.js +686 -15
  116. package/dist/src/panel/i18n.d.ts +304 -3
  117. package/dist/src/panel/i18n.js +620 -18
  118. package/dist/src/panel/orca.d.ts +48 -0
  119. package/dist/src/panel/orca.js +153 -0
  120. package/dist/src/panel/page-logic.d.ts +255 -13
  121. package/dist/src/panel/page-logic.js +483 -1
  122. package/dist/src/panel/page-script.js +2260 -204
  123. package/dist/src/panel/page-styles.js +404 -32
  124. package/dist/src/panel/page.js +1 -0
  125. package/dist/src/plugins/check.js +16 -4
  126. package/dist/src/plugins/loader.d.ts +8 -1
  127. package/dist/src/plugins/loader.js +72 -7
  128. package/dist/src/runtime.d.ts +5 -0
  129. package/dist/src/runtime.js +27 -5
  130. package/dist/src/types.d.ts +116 -1
  131. package/dist/testing/index.d.ts +5 -0
  132. package/dist/testing/index.js +5 -0
  133. package/mods/claude/.claude-plugin/plugin.json +7 -0
  134. package/mods/claude/hooks/hooks.json +1 -0
  135. package/mods/claude/hooks/register.js +261 -0
  136. package/package.json +5 -2
  137. package/schemas/autostart.json +74 -1
  138. package/schemas/browser-set.json +110 -0
  139. package/schemas/browser.json +22 -2
  140. package/schemas/config.json +26 -1
  141. package/schemas/history-index.json +209 -0
  142. package/schemas/history-projects.json +133 -0
  143. package/schemas/history-show.json +275 -0
  144. package/schemas/history.json +410 -0
  145. package/schemas/menubar-hotkey.json +139 -0
  146. package/schemas/menubar-snapshot.json +36 -2
  147. package/schemas/menubar.json +74 -1
  148. package/schemas/messages-inbound.json +258 -0
  149. package/schemas/messages.json +164 -0
  150. package/schemas/send.json +165 -0
  151. package/schemas/sessions-copy.json +113 -0
  152. package/schemas/sessions-open-run.json +97 -0
  153. package/schemas/sessions.json +237 -0
  154. package/skills/sideby/SKILL.md +10 -5
  155. package/skills/sideby/references/accounts.md +11 -0
  156. package/skills/sideby/references/ai-tasks.md +17 -1
  157. package/skills/sideby/references/panel.md +6 -4
  158. package/skills/sideby/references/quota.md +2 -2
  159. package/skills/sideby/references/sessions.md +79 -0
package/README.md CHANGED
@@ -56,7 +56,7 @@ https://github.com/user-attachments/assets/d1d7e8dd-1df1-4881-ac88-e468c2dd4a1d
56
56
  <img alt="sideby panel: every account's 5h and 7d quota, 7-day token usage and health in one page" src="https://raw.githubusercontent.com/Adonis0123/sideby/main/docs/assets/panel.png" width="1280">
57
57
  </picture>
58
58
 
59
- On macOS, the same quota sits in the menu bar (`sideby menubar on`): click or press `⌥⌘S` to open it, and click an account to start it in the terminal.
59
+ On macOS, the same quota sits in the menu bar (`sideby menubar on`): click or press `⌥X` to open it, and click an account to start it in the terminal.
60
60
 
61
61
  <picture>
62
62
  <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/Adonis0123/sideby/main/docs/assets/menubar-dark.png">
@@ -80,6 +80,9 @@ cc-switch's docs describe that switch: it writes the live settings file ([README
80
80
 
81
81
  | You want to | Run | Guide |
82
82
  |---|---|---|
83
+ | Find any past session of any account by what you remember, grouped by project, read it and continue it where it was | **Sessions › History** in the panel, or `sideby history "fix login" --project .` | [History](docs/guide/panel.md#history) |
84
+ | See what every account is running right now and copy one session for another AI | **Sessions › Running** in the panel, or `sideby sessions` | [Sessions](docs/guide/panel.md#sessions) |
85
+ | Send a running session a message, screenshots included | **Send to it** on a running session, or `sideby send claude:work "run the tests"` | [Send to a session](docs/guide/panel.md#send-to-a-session) |
83
86
  | Hand a task to your own AI from the panel: set up an account, fix a problem, support a new tool | **Let AI do it** in the panel, or `sideby ask` | [Let AI do it](docs/guide/panel.md#let-ai-do-it) |
84
87
  | See quota at a glance in the macOS menu bar | **Settings › Startup** in the panel, or `sideby menubar on` | [Quota in the menu bar](docs/guide/usage.md#quota-in-the-menu-bar) |
85
88
  | Have the panel ready in the background whenever you log in | **Settings › Startup** in the panel, or `sideby autostart on` | [Start at login](docs/guide/usage.md#start-at-login) |
@@ -98,7 +101,7 @@ cc-switch's docs describe that switch: it writes the live settings file ([README
98
101
  | Keep several Grok Bot windows open, each signed in to its own account (macOS) | `sideby desktop grok-bot:002` (or the panel) | [Grok Bot windows](docs/guide/usage.md#grok-bot-windows) |
99
102
  | Open the panel from the Dock or app menu | `sideby app install` | [Panel app](docs/guide/panel.md#panel-app) |
100
103
  | Show the panel inside your own local page | `createPanelHandler()` | [Embed the panel](docs/guide/panel.md#embed-the-panel) |
101
- | Add a Host or a pre-launch check | a local plugin | [Plugins](docs/guide/plugins.md) |
104
+ | Add a Host, a pre-launch check, or your own project categories for History | a local plugin | [Plugins](docs/guide/plugins.md) |
102
105
 
103
106
  ## Supported hosts
104
107
 
@@ -135,8 +138,8 @@ Usage questions and ideas go in [Discussions](https://github.com/Adonis0123/side
135
138
  - [Using sideby](docs/guide/usage.md): accounts, API accounts, Doctor, quota, Handoff, Host notes
136
139
  - [Commands](docs/guide/commands.md): every command, exit codes and `--json`
137
140
  - [Configuration](docs/guide/configuration.md): `config.json`, aliases, shell functions
138
- - [Panel](docs/guide/panel.md): the panel, panel app and embedding
139
- - [Plugins](docs/guide/plugins.md): write your own Family or launch hook
141
+ - [Panel](docs/guide/panel.md): the panel, sessions and their history, panel app and embedding
142
+ - [Plugins](docs/guide/plugins.md): write your own Family, launch hook or project categories
140
143
  - [FAQ](docs/guide/faq.md): terms of service, data locations, alternatives, uninstall
141
144
  - [Changelog](https://github.com/Adonis0123/sideby/releases)
142
145
 
package/ai-tasks.json CHANGED
@@ -83,6 +83,34 @@
83
83
  { "en": "Use my team account last", "zh": "团队账号放到最后" },
84
84
  { "en": "Explain how a handoff works first", "zh": "先讲讲接力是怎么工作的" }
85
85
  ]
86
+ },
87
+ {
88
+ "id": "menubar",
89
+ "native": true,
90
+ "title": { "en": "Let AI find the menu bar icon", "zh": "让 AI 帮我找图标" },
91
+ "placeholder": {
92
+ "en": "Anything to add? For example: I use Bartender",
93
+ "zh": "想补充什么?比如:我装了 Bartender"
94
+ },
95
+ "examples": [
96
+ { "en": "It disappeared after an update", "zh": "更新之后就不见了" },
97
+ { "en": "I use a menu bar organizer", "zh": "我用了菜单栏整理工具" },
98
+ { "en": "The shortcut does nothing either", "zh": "按快捷键也没反应" }
99
+ ]
100
+ },
101
+ {
102
+ "id": "hotkey",
103
+ "native": true,
104
+ "title": { "en": "Let AI pick a shortcut", "zh": "让 AI 帮我挑" },
105
+ "placeholder": {
106
+ "en": "Anything to add? For example: I use Raycast",
107
+ "zh": "想补充什么?比如:我装了 Raycast"
108
+ },
109
+ "examples": [
110
+ { "en": "I press shortcuts with my left hand", "zh": "我习惯左手按快捷键" },
111
+ { "en": "Nothing happens when I press it", "zh": "按了没反应" },
112
+ { "en": "Two keys at most", "zh": "最多两个键" }
113
+ ]
86
114
  }
87
115
  ]
88
116
  }
package/dist/build.json CHANGED
@@ -1 +1 @@
1
- {"id":"20261019T145027-572ca5"}
1
+ {"id":"20261021T033928-239af7"}
@@ -51,7 +51,7 @@ export declare function cmdDoctor(a: ParsedArgs, io: Io): Promise<number>;
51
51
  * `sideby remote-control [on|off|undo] [--yes] [--json]` (spec §3.22, ADR-0017): whether Claude sessions connect to
52
52
  * claude.ai by themselves, and turning that on or off for every Account (a preview with exit 10 until --yes).
53
53
  */
54
- export declare function cmdRemoteControl(a: ParsedArgs, io: Io): Promise<number>;
54
+ export declare function cmdRemoteControl(a: ParsedArgs, io: Io, runtime?: Runtime): Promise<number>;
55
55
  /**
56
56
  * `sideby model <account> [<model>|default] [--effort <level>|default] [--yes]` (spec §3.19, ADR-0014): shows the
57
57
  * Account's model and effort; with a change, shows it (exit 10) and writes it with --yes.
@@ -111,3 +111,24 @@ export declare function cmdAutostart(a: ParsedArgs, io: Io): Promise<number>;
111
111
  export declare function cmdMenubar(a: ParsedArgs, io: Io): Promise<number>;
112
112
  /** `sideby config get|set|unset` (spec §3.29): every setting has a command. */
113
113
  export declare function cmdConfig(a: ParsedArgs, io: Io): Promise<number>;
114
+ /**
115
+ * `sideby sessions [<account>|<family>]`: the Live Sessions of every Account (spec §3.32);
116
+ * `sideby sessions copy <account|session-id> [--as reference|id|resume]` copies one of them for another AI;
117
+ * `sideby sessions open-run <account|session-id>` opens the Run Board of one (spec §3.32 step 2b).
118
+ */
119
+ export declare function cmdSessions(a: ParsedArgs, io: Io, runtime?: Runtime): Promise<number>;
120
+ export declare function cmdHistory(a: ParsedArgs, io: Io): Promise<number>;
121
+ export interface SendArgs extends ParsedArgs {
122
+ /** Every `--image` given, in order (main.ts collects them; parseArgs keeps only the last). */
123
+ images?: string[];
124
+ }
125
+ /**
126
+ * `sideby send <account|session> "<text>" [--image <path>]...` (spec §3.32 step 2, ADR-0040): keeps the Message as a
127
+ * file, delivers it through the Host's own channel where it has one (Claude Code), else copies the line to paste.
128
+ */
129
+ export declare function cmdSend(a: SendArgs, io: Io): Promise<number>;
130
+ /**
131
+ * `sideby messages [--to <account|session>] [--limit <n>]`: the Messages sideby kept and how far each got;
132
+ * `sideby messages inbound [accept|undo] [--yes]`: whether Claude sessions show them at once.
133
+ */
134
+ export declare function cmdMessages(a: ParsedArgs, io: Io, runtime?: Runtime): Promise<number>;