sideby 0.16.1 → 0.18.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.
- package/README.md +7 -3
- package/ai-tasks.json +90 -0
- package/dist/build.json +1 -1
- package/dist/src/cli/commands.d.ts +25 -1
- package/dist/src/cli/commands.js +802 -15
- package/dist/src/cli/json-schemas.js +252 -1
- package/dist/src/cli/main.js +143 -4
- package/dist/src/core/after-install.d.ts +54 -0
- package/dist/src/core/after-install.js +78 -0
- package/dist/src/core/ask.d.ts +222 -0
- package/dist/src/core/ask.js +465 -0
- package/dist/src/core/attachments.d.ts +50 -0
- package/dist/src/core/attachments.js +442 -0
- package/dist/src/core/autostart.d.ts +118 -0
- package/dist/src/core/autostart.js +302 -0
- package/dist/src/core/brand-mark.d.ts +49 -11
- package/dist/src/core/brand-mark.js +116 -38
- package/dist/src/core/config.d.ts +102 -0
- package/dist/src/core/config.js +289 -11
- package/dist/src/core/desktop-app.d.ts +1 -1
- package/dist/src/core/desktop-app.js +2 -2
- package/dist/src/core/edit-settings.d.ts +24 -0
- package/dist/src/core/edit-settings.js +97 -0
- package/dist/src/core/handoff-brief.d.ts +4 -2
- package/dist/src/core/handoff-brief.js +6 -1
- package/dist/src/core/handoff-chain.d.ts +24 -0
- package/dist/src/core/handoff-chain.js +2 -0
- package/dist/src/core/handoff-run.d.ts +4 -3
- package/dist/src/core/handoff-run.js +14 -9
- package/dist/src/core/launch.d.ts +17 -4
- package/dist/src/core/launch.js +32 -24
- package/dist/src/core/local-build.d.ts +17 -5
- package/dist/src/core/local-build.js +61 -23
- package/dist/src/core/lock.d.ts +30 -0
- package/dist/src/core/lock.js +143 -0
- package/dist/src/core/probe.d.ts +78 -0
- package/dist/src/core/probe.js +127 -0
- package/dist/src/core/quota-levels.d.ts +6 -1
- package/dist/src/core/quota-levels.js +16 -5
- package/dist/src/core/same-login.d.ts +9 -4
- package/dist/src/core/same-login.js +9 -4
- package/dist/src/core/secret-file.d.ts +26 -0
- package/dist/src/core/secret-file.js +126 -7
- package/dist/src/core/task-spec.d.ts +95 -0
- package/dist/src/core/task-spec.js +209 -0
- package/dist/src/core/terminal.d.ts +93 -0
- package/dist/src/core/terminal.js +376 -0
- package/dist/src/core/update.d.ts +34 -12
- package/dist/src/core/update.js +96 -84
- package/dist/src/desktop/icon.js +12 -15
- package/dist/src/families/claude/ai-task.d.ts +8 -0
- package/dist/src/families/claude/ai-task.js +38 -0
- package/dist/src/families/claude/handoff-hook.js +4 -4
- package/dist/src/families/claude/index.js +6 -0
- package/dist/src/families/claude/quota-cache.d.ts +24 -7
- package/dist/src/families/claude/quota-cache.js +72 -21
- package/dist/src/families/codex/handoff-hook.js +4 -4
- package/dist/src/families/codex/index.js +16 -0
- package/dist/src/families/codex/login-key.d.ts +8 -0
- package/dist/src/families/codex/login-key.js +33 -0
- package/dist/src/families/grok/handoff-hook.js +4 -4
- package/dist/src/families/grok/index.js +4 -0
- package/dist/src/families/login-keys.d.ts +6 -0
- package/dist/src/families/login-keys.js +6 -0
- package/dist/src/families/pi/index.js +5 -0
- package/dist/src/handoff/hook.js +51 -30
- package/dist/src/handoff/levels.d.ts +24 -0
- package/dist/src/handoff/levels.js +70 -0
- package/dist/src/handoff/messages.d.ts +6 -3
- package/dist/src/handoff/messages.js +20 -7
- package/dist/src/handoff/reader.d.ts +6 -3
- package/dist/src/menubar/agent.d.ts +3 -0
- package/dist/src/menubar/agent.js +21 -0
- package/dist/src/menubar/script.d.ts +8 -0
- package/dist/src/menubar/script.js +457 -0
- package/dist/src/menubar/snapshot.d.ts +115 -0
- package/dist/src/menubar/snapshot.js +255 -0
- package/dist/src/menubar/strings.d.ts +87 -0
- package/dist/src/menubar/strings.js +88 -0
- package/dist/src/panel/background.js +15 -21
- package/dist/src/panel/handler.d.ts +41 -2
- package/dist/src/panel/handler.js +394 -10
- package/dist/src/panel/i18n.d.ts +205 -2
- package/dist/src/panel/i18n.js +441 -35
- package/dist/src/panel/page-logic.d.ts +301 -0
- package/dist/src/panel/page-logic.js +532 -0
- package/dist/src/panel/page-script.js +1135 -185
- package/dist/src/panel/page-styles.js +111 -32
- package/dist/src/panel/page.d.ts +12 -0
- package/dist/src/panel/page.js +7 -0
- package/dist/src/panel/server.d.ts +16 -2
- package/dist/src/panel/server.js +41 -13
- package/dist/src/plugins/check.d.ts +47 -0
- package/dist/src/plugins/check.js +544 -0
- package/dist/src/plugins/scaffold.d.ts +21 -0
- package/dist/src/plugins/scaffold.js +123 -0
- package/dist/src/quota/statusline-tap.js +1 -1
- package/dist/src/runtime.d.ts +19 -1
- package/dist/src/runtime.js +53 -14
- package/dist/src/types.d.ts +33 -0
- package/package.json +4 -3
- package/schemas/ask-choices.json +168 -0
- package/schemas/ask-print.json +87 -0
- package/schemas/ask.json +180 -0
- package/schemas/autostart.json +165 -0
- package/schemas/config-get.json +132 -0
- package/schemas/config-set.json +107 -0
- package/schemas/config.json +90 -7
- package/schemas/edit.json +119 -0
- package/schemas/error.json +4 -0
- package/schemas/families.json +4 -0
- package/schemas/key.json +93 -0
- package/schemas/list.json +4 -0
- package/schemas/local.json +1 -1
- package/schemas/menubar-snapshot.json +646 -0
- package/schemas/menubar-start.json +112 -0
- package/schemas/menubar.json +165 -0
- package/schemas/plugins-check.json +113 -0
- package/schemas/plugins-new.json +87 -0
- package/schemas/terminal.json +152 -0
- package/schemas/try.json +109 -0
- package/schemas/update.json +4 -0
- package/skills/sideby/SKILL.md +16 -6
- package/skills/sideby/references/accounts.md +1 -1
- package/skills/sideby/references/ai-tasks.md +126 -0
- package/skills/sideby/references/handoff.md +3 -1
- package/skills/sideby/references/panel.md +20 -0
- package/skills/sideby/references/update.md +1 -1
package/schemas/config.json
CHANGED
|
@@ -6,6 +6,79 @@
|
|
|
6
6
|
"$schema": {
|
|
7
7
|
"type": "string"
|
|
8
8
|
},
|
|
9
|
+
"panel": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"theme": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": [
|
|
15
|
+
"system",
|
|
16
|
+
"light",
|
|
17
|
+
"dark"
|
|
18
|
+
],
|
|
19
|
+
"description": "Panel colours: follow the system (default), always light, or always dark."
|
|
20
|
+
},
|
|
21
|
+
"language": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"enum": [
|
|
24
|
+
"auto",
|
|
25
|
+
"en",
|
|
26
|
+
"zh"
|
|
27
|
+
],
|
|
28
|
+
"description": "Panel language: the browser's (default), English, or Chinese."
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"description": "How the Panel looks (spec §3.29)."
|
|
33
|
+
},
|
|
34
|
+
"menubar": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"properties": {
|
|
37
|
+
"hotkey": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"pattern": "^(off|((ctrl|opt|cmd|shift)\\+)+[a-z0-9])$",
|
|
40
|
+
"description": "The shortcut that opens the menu bar item from anywhere, such as `opt+cmd+s` (default), or `off`."
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"additionalProperties": false,
|
|
44
|
+
"description": "The Menu Bar Item on macOS (spec §3.31)."
|
|
45
|
+
},
|
|
46
|
+
"terminal": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"properties": {
|
|
49
|
+
"preferred": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"enum": [
|
|
52
|
+
"terminal",
|
|
53
|
+
"iterm2",
|
|
54
|
+
"ghostty",
|
|
55
|
+
"orca",
|
|
56
|
+
"wezterm",
|
|
57
|
+
"kitty",
|
|
58
|
+
"alacritty",
|
|
59
|
+
"custom"
|
|
60
|
+
],
|
|
61
|
+
"description": "The terminal sideby opens for AI Tasks; without it sideby picks the one you use."
|
|
62
|
+
},
|
|
63
|
+
"custom": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"description": "Your own launch command for `preferred: custom`, with `{cwd}` and `{cmd}` placeholders."
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"additionalProperties": false,
|
|
69
|
+
"description": "The terminal AI Tasks open in (spec §3.28)."
|
|
70
|
+
},
|
|
71
|
+
"ask": {
|
|
72
|
+
"type": "object",
|
|
73
|
+
"properties": {
|
|
74
|
+
"account": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"description": "The account AI Tasks start (`<family>:<name>` or a short command); sideby picks one without it."
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"additionalProperties": false,
|
|
80
|
+
"description": "AI Tasks (spec §3.28)."
|
|
81
|
+
},
|
|
9
82
|
"accounts": {
|
|
10
83
|
"type": "object",
|
|
11
84
|
"patternProperties": {
|
|
@@ -16,7 +89,8 @@
|
|
|
16
89
|
"type": "array",
|
|
17
90
|
"items": {
|
|
18
91
|
"type": "string"
|
|
19
|
-
}
|
|
92
|
+
},
|
|
93
|
+
"description": "Host arguments sideby starts the account with; `sideby config` and `sideby model` set only the model and effort ones."
|
|
20
94
|
}
|
|
21
95
|
},
|
|
22
96
|
"additionalProperties": false
|
|
@@ -143,7 +217,8 @@
|
|
|
143
217
|
"additionalProperties": false
|
|
144
218
|
}
|
|
145
219
|
}
|
|
146
|
-
}
|
|
220
|
+
},
|
|
221
|
+
"description": "Per family, more items each account shares with the main account: `{ path, mode }` with a relative path."
|
|
147
222
|
},
|
|
148
223
|
"accountTitle": {
|
|
149
224
|
"type": "boolean",
|
|
@@ -174,7 +249,11 @@
|
|
|
174
249
|
"type": "integer",
|
|
175
250
|
"minimum": 1,
|
|
176
251
|
"maximum": 100,
|
|
177
|
-
"description": "Quota Pressure at which the Handoff begins (default 95)."
|
|
252
|
+
"description": "Quota Pressure at which the Handoff begins (default 95). With `adaptive`, a window uses it until the run has measured a turn of it."
|
|
253
|
+
},
|
|
254
|
+
"adaptive": {
|
|
255
|
+
"type": "boolean",
|
|
256
|
+
"description": "Hand over by each window’s own pace: when it has less room left than 1.5 times its largest recent turn, between `prepareAt` and 99 (default true; ADR-0032). False uses `threshold` for every window."
|
|
178
257
|
},
|
|
179
258
|
"waitIfResetWithinMinutes": {
|
|
180
259
|
"type": "integer",
|
|
@@ -209,13 +288,15 @@
|
|
|
209
288
|
"type": "string",
|
|
210
289
|
"const": "order"
|
|
211
290
|
}
|
|
212
|
-
]
|
|
291
|
+
],
|
|
292
|
+
"description": "`pressure` picks the account with the most Quota left; `order` follows `order`."
|
|
213
293
|
},
|
|
214
294
|
"order": {
|
|
215
295
|
"type": "array",
|
|
216
296
|
"items": {
|
|
217
297
|
"type": "string"
|
|
218
|
-
}
|
|
298
|
+
},
|
|
299
|
+
"description": "Accounts (ref or short command) to try, in order."
|
|
219
300
|
}
|
|
220
301
|
},
|
|
221
302
|
"additionalProperties": false
|
|
@@ -317,11 +398,13 @@
|
|
|
317
398
|
"properties": {
|
|
318
399
|
"zsh": {
|
|
319
400
|
"type": "string",
|
|
320
|
-
"minLength": 1
|
|
401
|
+
"minLength": 1,
|
|
402
|
+
"description": "The file for zsh."
|
|
321
403
|
},
|
|
322
404
|
"bash": {
|
|
323
405
|
"type": "string",
|
|
324
|
-
"minLength": 1
|
|
406
|
+
"minLength": 1,
|
|
407
|
+
"description": "The file for bash."
|
|
325
408
|
}
|
|
326
409
|
},
|
|
327
410
|
"additionalProperties": false,
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "sideby/edit.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": [
|
|
6
|
+
"schemaVersion",
|
|
7
|
+
"ref",
|
|
8
|
+
"family",
|
|
9
|
+
"file",
|
|
10
|
+
"path",
|
|
11
|
+
"sharedWith",
|
|
12
|
+
"opened"
|
|
13
|
+
],
|
|
14
|
+
"properties": {
|
|
15
|
+
"schemaVersion": {
|
|
16
|
+
"type": "number",
|
|
17
|
+
"const": 1
|
|
18
|
+
},
|
|
19
|
+
"ref": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"family": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"file": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "The settings file as the family names it, such as `settings.json`."
|
|
28
|
+
},
|
|
29
|
+
"path": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "The file inside the account directory."
|
|
32
|
+
},
|
|
33
|
+
"target": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"description": "Where the file really is; only when `path` is a link."
|
|
36
|
+
},
|
|
37
|
+
"sharedWith": {
|
|
38
|
+
"type": "array",
|
|
39
|
+
"items": {
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
"description": "Other accounts of the family whose settings file is this same file, so a change applies to them too."
|
|
43
|
+
},
|
|
44
|
+
"opened": {
|
|
45
|
+
"type": "boolean",
|
|
46
|
+
"description": "False with --path, which only says where the file is."
|
|
47
|
+
},
|
|
48
|
+
"command": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"description": "The program and arguments that opened the file."
|
|
54
|
+
},
|
|
55
|
+
"_notice": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"properties": {
|
|
58
|
+
"update": {
|
|
59
|
+
"type": "object",
|
|
60
|
+
"required": [
|
|
61
|
+
"current",
|
|
62
|
+
"latest",
|
|
63
|
+
"command",
|
|
64
|
+
"message"
|
|
65
|
+
],
|
|
66
|
+
"properties": {
|
|
67
|
+
"current": {
|
|
68
|
+
"type": "string"
|
|
69
|
+
},
|
|
70
|
+
"latest": {
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
"command": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"description": "Run it after the user agrees: it shows the plan and exits 10; then --yes."
|
|
76
|
+
},
|
|
77
|
+
"message": {
|
|
78
|
+
"type": "string"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"skill": {
|
|
83
|
+
"type": "object",
|
|
84
|
+
"required": [
|
|
85
|
+
"installed",
|
|
86
|
+
"current",
|
|
87
|
+
"command",
|
|
88
|
+
"message"
|
|
89
|
+
],
|
|
90
|
+
"properties": {
|
|
91
|
+
"installed": {
|
|
92
|
+
"anyOf": [
|
|
93
|
+
{
|
|
94
|
+
"type": "string"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"type": "null"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"description": "The skill's version; null when it has none."
|
|
101
|
+
},
|
|
102
|
+
"current": {
|
|
103
|
+
"type": "string"
|
|
104
|
+
},
|
|
105
|
+
"command": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"description": "`sideby update`, which updates the skill with sideby: run it after the user agrees; it shows the plan and exits 10, then --yes."
|
|
108
|
+
},
|
|
109
|
+
"message": {
|
|
110
|
+
"type": "string"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"description": "Not the answer to the task: mention it briefly afterwards and offer to update."
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"title": "sideby edit --json"
|
|
119
|
+
}
|
package/schemas/error.json
CHANGED
|
@@ -20,6 +20,10 @@
|
|
|
20
20
|
"type": "string",
|
|
21
21
|
"description": "`usage` for a malformed command line (exit 2), a reason such as `no-quota-source` or `alias-invalid`, or `error`."
|
|
22
22
|
},
|
|
23
|
+
"reason": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "Same as `code`, for a refused Task Spec (`sideby ask --spec -`): `spec-invalid`, `spec-too-large`, `bad-cwd`, or `spec-version` (exit 2: update sideby)."
|
|
26
|
+
},
|
|
23
27
|
"_notice": {
|
|
24
28
|
"type": "object",
|
|
25
29
|
"properties": {
|
package/schemas/families.json
CHANGED
package/schemas/key.json
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "sideby/key.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": [
|
|
6
|
+
"schemaVersion",
|
|
7
|
+
"account",
|
|
8
|
+
"var",
|
|
9
|
+
"written",
|
|
10
|
+
"path"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"schemaVersion": {
|
|
14
|
+
"type": "number",
|
|
15
|
+
"const": 1
|
|
16
|
+
},
|
|
17
|
+
"account": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"var": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"written": {
|
|
24
|
+
"type": "boolean",
|
|
25
|
+
"const": true
|
|
26
|
+
},
|
|
27
|
+
"path": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"_notice": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"properties": {
|
|
33
|
+
"update": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"required": [
|
|
36
|
+
"current",
|
|
37
|
+
"latest",
|
|
38
|
+
"command",
|
|
39
|
+
"message"
|
|
40
|
+
],
|
|
41
|
+
"properties": {
|
|
42
|
+
"current": {
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
"latest": {
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
"command": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"description": "Run it after the user agrees: it shows the plan and exits 10; then --yes."
|
|
51
|
+
},
|
|
52
|
+
"message": {
|
|
53
|
+
"type": "string"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"skill": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"required": [
|
|
60
|
+
"installed",
|
|
61
|
+
"current",
|
|
62
|
+
"command",
|
|
63
|
+
"message"
|
|
64
|
+
],
|
|
65
|
+
"properties": {
|
|
66
|
+
"installed": {
|
|
67
|
+
"anyOf": [
|
|
68
|
+
{
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"type": "null"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"description": "The skill's version; null when it has none."
|
|
76
|
+
},
|
|
77
|
+
"current": {
|
|
78
|
+
"type": "string"
|
|
79
|
+
},
|
|
80
|
+
"command": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"description": "`sideby update`, which updates the skill with sideby: run it after the user agrees; it shows the plan and exits 10, then --yes."
|
|
83
|
+
},
|
|
84
|
+
"message": {
|
|
85
|
+
"type": "string"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"description": "Not the answer to the task: mention it briefly afterwards and offer to update."
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
package/schemas/list.json
CHANGED
package/schemas/local.json
CHANGED
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
},
|
|
101
101
|
"skillSynced": {
|
|
102
102
|
"type": "boolean",
|
|
103
|
-
"description": "Back on npm, `sideby update --yes` brought the sideby skill to that version (true) or failed (false)."
|
|
103
|
+
"description": "Back on npm, `sideby update --skill --yes` brought the sideby skill to that version (true) or failed (false)."
|
|
104
104
|
},
|
|
105
105
|
"_notice": {
|
|
106
106
|
"type": "object",
|