sideby 0.19.0 → 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.
- package/README.md +7 -4
- package/ai-tasks.json +28 -0
- package/dist/build.json +1 -1
- package/dist/src/cli/commands.d.ts +22 -1
- package/dist/src/cli/commands.js +815 -21
- package/dist/src/cli/format.d.ts +4 -0
- package/dist/src/cli/format.js +42 -4
- package/dist/src/cli/json-schemas.js +334 -4
- package/dist/src/cli/main.js +159 -13
- package/dist/src/core/accounts.d.ts +6 -0
- package/dist/src/core/accounts.js +12 -0
- package/dist/src/core/autostart.d.ts +11 -0
- package/dist/src/core/autostart.js +32 -5
- package/dist/src/core/browser-profiles.d.ts +23 -2
- package/dist/src/core/browser-profiles.js +148 -37
- package/dist/src/core/claude-settings-file.d.ts +18 -0
- package/dist/src/core/claude-settings-file.js +52 -3
- package/dist/src/core/config.d.ts +5 -0
- package/dist/src/core/config.js +12 -1
- package/dist/src/core/edit-settings.d.ts +7 -0
- package/dist/src/core/edit-settings.js +10 -5
- package/dist/src/core/file-memo.js +26 -4
- package/dist/src/core/history-group.d.ts +28 -0
- package/dist/src/core/history-group.js +47 -0
- package/dist/src/core/history-index.d.ts +145 -0
- package/dist/src/core/history-index.js +447 -0
- package/dist/src/core/history-project.d.ts +13 -0
- package/dist/src/core/history-project.js +87 -0
- package/dist/src/core/history.d.ts +210 -0
- package/dist/src/core/history.js +952 -0
- package/dist/src/core/inbound.d.ts +62 -0
- package/dist/src/core/inbound.js +215 -0
- package/dist/src/core/launch.d.ts +9 -1
- package/dist/src/core/launch.js +58 -24
- package/dist/src/core/live-sessions-copy.d.ts +5 -0
- package/dist/src/core/live-sessions-copy.js +46 -0
- package/dist/src/core/live-sessions-procs.d.ts +89 -0
- package/dist/src/core/live-sessions-procs.js +296 -0
- package/dist/src/core/live-sessions-title.d.ts +28 -0
- package/dist/src/core/live-sessions-title.js +80 -0
- package/dist/src/core/live-sessions.d.ts +68 -0
- package/dist/src/core/live-sessions.js +163 -0
- package/dist/src/core/login-check.d.ts +15 -0
- package/dist/src/core/login-check.js +32 -0
- package/dist/src/core/messages.d.ts +83 -0
- package/dist/src/core/messages.js +433 -0
- package/dist/src/core/project-categories.d.ts +14 -0
- package/dist/src/core/project-categories.js +48 -0
- package/dist/src/core/quota-fetch.d.ts +3 -3
- package/dist/src/core/quota-fetch.js +5 -5
- package/dist/src/core/quota-levels.d.ts +5 -0
- package/dist/src/core/quota-levels.js +5 -0
- package/dist/src/core/remote-control.d.ts +2 -0
- package/dist/src/core/remote-control.js +34 -59
- package/dist/src/core/run-link.d.ts +76 -0
- package/dist/src/core/run-link.js +245 -0
- package/dist/src/core/same-login.d.ts +4 -3
- package/dist/src/core/same-login.js +10 -7
- package/dist/src/core/session-select.d.ts +31 -0
- package/dist/src/core/session-select.js +44 -0
- package/dist/src/families/browser.d.ts +7 -18
- package/dist/src/families/browser.js +19 -8
- package/dist/src/families/claude/deliver.d.ts +2 -0
- package/dist/src/families/claude/deliver.js +43 -0
- package/dist/src/families/claude/history.d.ts +2 -0
- package/dist/src/families/claude/history.js +192 -0
- package/dist/src/families/claude/live-sessions.d.ts +13 -0
- package/dist/src/families/claude/live-sessions.js +117 -0
- package/dist/src/families/claude/messaging.d.ts +69 -0
- package/dist/src/families/claude/messaging.js +165 -0
- package/dist/src/families/claude/mod.d.ts +26 -0
- package/dist/src/families/claude/mod.js +105 -0
- package/dist/src/families/claude/session-files.d.ts +21 -0
- package/dist/src/families/claude/session-files.js +54 -0
- package/dist/src/families/codex/deliver.d.ts +5 -0
- package/dist/src/families/codex/deliver.js +76 -0
- package/dist/src/families/codex/history.d.ts +7 -0
- package/dist/src/families/codex/history.js +174 -0
- package/dist/src/families/codex/index.js +2 -0
- package/dist/src/families/codex/live-sessions.d.ts +12 -0
- package/dist/src/families/codex/live-sessions.js +193 -0
- package/dist/src/families/codex/quota.d.ts +3 -0
- package/dist/src/families/codex/quota.js +123 -0
- package/dist/src/families/codex/rate-limits.js +2 -0
- package/dist/src/families/codex/rollout.js +1 -1
- package/dist/src/families/grok/browser.d.ts +3 -0
- package/dist/src/families/grok/browser.js +5 -0
- package/dist/src/families/grok/history.d.ts +2 -0
- package/dist/src/families/grok/history.js +157 -0
- package/dist/src/families/grok/live-sessions.d.ts +4 -0
- package/dist/src/families/grok/live-sessions.js +80 -0
- package/dist/src/families/grok/login-key.d.ts +14 -0
- package/dist/src/families/grok/login-key.js +37 -0
- package/dist/src/families/history.d.ts +20 -0
- package/dist/src/families/history.js +81 -0
- package/dist/src/families/live-sessions.d.ts +26 -0
- package/dist/src/families/live-sessions.js +9 -0
- package/dist/src/families/login-keys.js +5 -1
- package/dist/src/families/messaging.d.ts +27 -0
- package/dist/src/families/messaging.js +6 -0
- package/dist/src/families/pi/history.d.ts +2 -0
- package/dist/src/families/pi/history.js +124 -0
- package/dist/src/families/pi/live-sessions.d.ts +2 -0
- package/dist/src/families/pi/live-sessions.js +70 -0
- package/dist/src/families/shared/history-text.d.ts +65 -0
- package/dist/src/families/shared/history-text.js +261 -0
- package/dist/src/menubar/hotkey.d.ts +86 -0
- package/dist/src/menubar/hotkey.js +159 -0
- package/dist/src/menubar/script.d.ts +2 -0
- package/dist/src/menubar/script.js +118 -22
- package/dist/src/menubar/snapshot.d.ts +8 -4
- package/dist/src/menubar/snapshot.js +45 -13
- package/dist/src/menubar/strings.d.ts +24 -6
- package/dist/src/menubar/strings.js +24 -6
- package/dist/src/panel/handler.d.ts +69 -0
- package/dist/src/panel/handler.js +686 -15
- package/dist/src/panel/i18n.d.ts +304 -3
- package/dist/src/panel/i18n.js +669 -67
- package/dist/src/panel/orca.d.ts +48 -0
- package/dist/src/panel/orca.js +153 -0
- package/dist/src/panel/page-logic.d.ts +255 -13
- package/dist/src/panel/page-logic.js +483 -1
- package/dist/src/panel/page-script.js +2265 -207
- package/dist/src/panel/page-styles.js +404 -32
- package/dist/src/panel/page.js +1 -0
- package/dist/src/plugins/account-script.js +61 -27
- package/dist/src/plugins/check.js +16 -4
- package/dist/src/plugins/loader.d.ts +8 -1
- package/dist/src/plugins/loader.js +72 -7
- package/dist/src/runtime.d.ts +5 -0
- package/dist/src/runtime.js +27 -5
- package/dist/src/types.d.ts +116 -1
- package/dist/testing/index.d.ts +5 -0
- package/dist/testing/index.js +5 -0
- package/mods/claude/.claude-plugin/plugin.json +7 -0
- package/mods/claude/hooks/hooks.json +1 -0
- package/mods/claude/hooks/register.js +261 -0
- package/package.json +5 -2
- package/schemas/autostart.json +74 -1
- package/schemas/browser-set.json +110 -0
- package/schemas/browser.json +22 -2
- package/schemas/config.json +26 -1
- package/schemas/history-index.json +209 -0
- package/schemas/history-projects.json +133 -0
- package/schemas/history-show.json +275 -0
- package/schemas/history.json +410 -0
- package/schemas/menubar-hotkey.json +139 -0
- package/schemas/menubar-snapshot.json +36 -2
- package/schemas/menubar.json +74 -1
- package/schemas/messages-inbound.json +258 -0
- package/schemas/messages.json +164 -0
- package/schemas/send.json +165 -0
- package/schemas/sessions-copy.json +113 -0
- package/schemas/sessions-open-run.json +97 -0
- package/schemas/sessions.json +237 -0
- package/skills/sideby/SKILL.md +10 -5
- package/skills/sideby/references/accounts.md +11 -0
- package/skills/sideby/references/ai-tasks.md +17 -1
- package/skills/sideby/references/panel.md +6 -4
- package/skills/sideby/references/quota.md +2 -2
- package/skills/sideby/references/sessions.md +79 -0
package/schemas/menubar.json
CHANGED
|
@@ -94,11 +94,84 @@
|
|
|
94
94
|
},
|
|
95
95
|
"loaded": {
|
|
96
96
|
"type": "boolean",
|
|
97
|
-
"description": "launchd took the
|
|
97
|
+
"description": "After a change: launchd took it now. In a status of the menu bar item: launchd holds it now; false means it is on but not running until `sideby menubar on` or the next login."
|
|
98
98
|
},
|
|
99
99
|
"note": {
|
|
100
100
|
"type": "string"
|
|
101
101
|
},
|
|
102
|
+
"hotkey": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"required": [
|
|
105
|
+
"keys",
|
|
106
|
+
"label",
|
|
107
|
+
"enabled",
|
|
108
|
+
"isDefault",
|
|
109
|
+
"registered"
|
|
110
|
+
],
|
|
111
|
+
"properties": {
|
|
112
|
+
"keys": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"description": "As config `menubar.hotkey` holds it, or the default: `opt+x`, `off`."
|
|
115
|
+
},
|
|
116
|
+
"label": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"description": "As macOS writes it, such as `⌥⌘S`; empty when off."
|
|
119
|
+
},
|
|
120
|
+
"enabled": {
|
|
121
|
+
"type": "boolean"
|
|
122
|
+
},
|
|
123
|
+
"isDefault": {
|
|
124
|
+
"type": "boolean"
|
|
125
|
+
},
|
|
126
|
+
"registered": {
|
|
127
|
+
"anyOf": [
|
|
128
|
+
{
|
|
129
|
+
"type": "boolean"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"type": "null"
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"description": "Whether the menu bar item could register it: false means another app or macOS holds it; null when it has not said yet or it is off."
|
|
136
|
+
},
|
|
137
|
+
"problem": {
|
|
138
|
+
"type": "object",
|
|
139
|
+
"required": [
|
|
140
|
+
"code",
|
|
141
|
+
"message"
|
|
142
|
+
],
|
|
143
|
+
"properties": {
|
|
144
|
+
"code": {
|
|
145
|
+
"type": "string"
|
|
146
|
+
},
|
|
147
|
+
"message": {
|
|
148
|
+
"type": "string"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"description": "A value config allows but a new choice would be refused for; it still works."
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"icon": {
|
|
156
|
+
"type": "object",
|
|
157
|
+
"required": [
|
|
158
|
+
"visible"
|
|
159
|
+
],
|
|
160
|
+
"properties": {
|
|
161
|
+
"visible": {
|
|
162
|
+
"anyOf": [
|
|
163
|
+
{
|
|
164
|
+
"type": "boolean"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"type": "null"
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
"description": "Whether macOS shows the menu bar icon right now: false when it sits behind « (the menu bar is full) or is covered; null when the item has not said in the last 15 minutes."
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"description": "Only while the menu bar item is on."
|
|
174
|
+
},
|
|
102
175
|
"_notice": {
|
|
103
176
|
"type": "object",
|
|
104
177
|
"properties": {
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "sideby/messages-inbound.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": [
|
|
6
|
+
"schemaVersion",
|
|
7
|
+
"action"
|
|
8
|
+
],
|
|
9
|
+
"properties": {
|
|
10
|
+
"schemaVersion": {
|
|
11
|
+
"type": "number",
|
|
12
|
+
"const": 1
|
|
13
|
+
},
|
|
14
|
+
"action": {
|
|
15
|
+
"anyOf": [
|
|
16
|
+
{
|
|
17
|
+
"type": "string",
|
|
18
|
+
"const": "status"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"type": "string",
|
|
22
|
+
"const": "accept"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"type": "string",
|
|
26
|
+
"const": "undo"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"applied": {
|
|
31
|
+
"type": "boolean",
|
|
32
|
+
"description": "True once the change was written (or undone)."
|
|
33
|
+
},
|
|
34
|
+
"groups": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"items": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"required": [
|
|
39
|
+
"file",
|
|
40
|
+
"accounts",
|
|
41
|
+
"state",
|
|
42
|
+
"undo"
|
|
43
|
+
],
|
|
44
|
+
"properties": {
|
|
45
|
+
"file": {
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
"accounts": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"description": "Claude accounts whose settings.json is this file."
|
|
54
|
+
},
|
|
55
|
+
"state": {
|
|
56
|
+
"anyOf": [
|
|
57
|
+
{
|
|
58
|
+
"type": "string",
|
|
59
|
+
"const": "accept"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"type": "string",
|
|
63
|
+
"const": "hold"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type": "string",
|
|
67
|
+
"const": "refuse"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "string",
|
|
71
|
+
"const": "default"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"type": "string",
|
|
75
|
+
"const": "other"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"type": "string",
|
|
79
|
+
"const": "missing"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"type": "string",
|
|
83
|
+
"const": "blocked"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"description": "crossSessionInbound is accept, hold or refuse; default: not set (bypass sessions hold messages); other: a value sideby does not know; missing: no settings.json; blocked: cannot be changed safely (see reason)."
|
|
87
|
+
},
|
|
88
|
+
"reason": {
|
|
89
|
+
"type": "string"
|
|
90
|
+
},
|
|
91
|
+
"undo": {
|
|
92
|
+
"type": "boolean",
|
|
93
|
+
"description": "sideby set it here and can put the earlier value back."
|
|
94
|
+
},
|
|
95
|
+
"change": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"required": [
|
|
98
|
+
"key",
|
|
99
|
+
"from",
|
|
100
|
+
"to"
|
|
101
|
+
],
|
|
102
|
+
"properties": {
|
|
103
|
+
"key": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"const": "crossSessionInbound"
|
|
106
|
+
},
|
|
107
|
+
"from": {
|
|
108
|
+
"anyOf": [
|
|
109
|
+
{
|
|
110
|
+
"type": "string"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"type": "null"
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"description": "Its value now; null: not set."
|
|
117
|
+
},
|
|
118
|
+
"to": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"const": "accept"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"description": "In an accept preview: the one key this file gets and its new value."
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"description": "For status, every file; for a preview, the files that would change."
|
|
128
|
+
},
|
|
129
|
+
"leftAlone": {
|
|
130
|
+
"type": "array",
|
|
131
|
+
"items": {
|
|
132
|
+
"type": "object",
|
|
133
|
+
"required": [
|
|
134
|
+
"file",
|
|
135
|
+
"accounts",
|
|
136
|
+
"state",
|
|
137
|
+
"undo"
|
|
138
|
+
],
|
|
139
|
+
"properties": {
|
|
140
|
+
"file": {
|
|
141
|
+
"type": "string"
|
|
142
|
+
},
|
|
143
|
+
"accounts": {
|
|
144
|
+
"type": "array",
|
|
145
|
+
"items": {
|
|
146
|
+
"type": "string"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"state": {
|
|
150
|
+
"type": "string"
|
|
151
|
+
},
|
|
152
|
+
"reason": {
|
|
153
|
+
"type": "string"
|
|
154
|
+
},
|
|
155
|
+
"undo": {
|
|
156
|
+
"type": "boolean"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"description": "In a preview: the files accept never changes (refuse, an unknown value, blocked, no settings.json), each with its reason."
|
|
161
|
+
},
|
|
162
|
+
"results": {
|
|
163
|
+
"type": "array",
|
|
164
|
+
"items": {
|
|
165
|
+
"type": "object",
|
|
166
|
+
"required": [
|
|
167
|
+
"file",
|
|
168
|
+
"accounts",
|
|
169
|
+
"ok",
|
|
170
|
+
"message"
|
|
171
|
+
],
|
|
172
|
+
"properties": {
|
|
173
|
+
"file": {
|
|
174
|
+
"type": "string"
|
|
175
|
+
},
|
|
176
|
+
"accounts": {
|
|
177
|
+
"type": "array",
|
|
178
|
+
"items": {
|
|
179
|
+
"type": "string"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"ok": {
|
|
183
|
+
"type": "boolean"
|
|
184
|
+
},
|
|
185
|
+
"message": {
|
|
186
|
+
"type": "string"
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"message": {
|
|
192
|
+
"type": "string"
|
|
193
|
+
},
|
|
194
|
+
"_notice": {
|
|
195
|
+
"type": "object",
|
|
196
|
+
"properties": {
|
|
197
|
+
"update": {
|
|
198
|
+
"type": "object",
|
|
199
|
+
"required": [
|
|
200
|
+
"current",
|
|
201
|
+
"latest",
|
|
202
|
+
"command",
|
|
203
|
+
"message"
|
|
204
|
+
],
|
|
205
|
+
"properties": {
|
|
206
|
+
"current": {
|
|
207
|
+
"type": "string"
|
|
208
|
+
},
|
|
209
|
+
"latest": {
|
|
210
|
+
"type": "string"
|
|
211
|
+
},
|
|
212
|
+
"command": {
|
|
213
|
+
"type": "string",
|
|
214
|
+
"description": "Run it after the user agrees: it shows the plan and exits 10; then --yes."
|
|
215
|
+
},
|
|
216
|
+
"message": {
|
|
217
|
+
"type": "string"
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"skill": {
|
|
222
|
+
"type": "object",
|
|
223
|
+
"required": [
|
|
224
|
+
"installed",
|
|
225
|
+
"current",
|
|
226
|
+
"command",
|
|
227
|
+
"message"
|
|
228
|
+
],
|
|
229
|
+
"properties": {
|
|
230
|
+
"installed": {
|
|
231
|
+
"anyOf": [
|
|
232
|
+
{
|
|
233
|
+
"type": "string"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"type": "null"
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
"description": "The skill's version; null when it has none."
|
|
240
|
+
},
|
|
241
|
+
"current": {
|
|
242
|
+
"type": "string"
|
|
243
|
+
},
|
|
244
|
+
"command": {
|
|
245
|
+
"type": "string",
|
|
246
|
+
"description": "`sideby update`, which updates the skill with sideby: run it after the user agrees; it shows the plan and exits 10, then --yes."
|
|
247
|
+
},
|
|
248
|
+
"message": {
|
|
249
|
+
"type": "string"
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"description": "Not the answer to the task: mention it briefly afterwards and offer to update."
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"title": "sideby messages inbound [accept|undo] --json"
|
|
258
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "sideby/messages.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": [
|
|
6
|
+
"schemaVersion",
|
|
7
|
+
"messages"
|
|
8
|
+
],
|
|
9
|
+
"properties": {
|
|
10
|
+
"schemaVersion": {
|
|
11
|
+
"type": "number",
|
|
12
|
+
"const": 1
|
|
13
|
+
},
|
|
14
|
+
"messages": {
|
|
15
|
+
"type": "array",
|
|
16
|
+
"items": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": [
|
|
19
|
+
"id",
|
|
20
|
+
"to",
|
|
21
|
+
"toSessionId",
|
|
22
|
+
"toAccount",
|
|
23
|
+
"status",
|
|
24
|
+
"file",
|
|
25
|
+
"attachments",
|
|
26
|
+
"pasteText",
|
|
27
|
+
"sentAt"
|
|
28
|
+
],
|
|
29
|
+
"properties": {
|
|
30
|
+
"id": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "Short id, also in the delivered text, so the target record shows when it was read."
|
|
33
|
+
},
|
|
34
|
+
"to": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "The target session's Session Label."
|
|
37
|
+
},
|
|
38
|
+
"toSessionId": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"toAccount": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"description": "The account ref that holds the target session."
|
|
44
|
+
},
|
|
45
|
+
"from": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"description": "The Session Label of the session that sent it, when sideby could tell."
|
|
48
|
+
},
|
|
49
|
+
"status": {
|
|
50
|
+
"anyOf": [
|
|
51
|
+
{
|
|
52
|
+
"type": "string",
|
|
53
|
+
"const": "stored"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"type": "string",
|
|
57
|
+
"const": "delivered"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "string",
|
|
61
|
+
"const": "read"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"type": "string",
|
|
65
|
+
"const": "paste-needed"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"description": "stored: kept as a file only; delivered: the host's own channel took it; read: it shows in the target's record; paste-needed: the user pastes pasteText into the target."
|
|
69
|
+
},
|
|
70
|
+
"file": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"description": "The Message file (mode 600) in sideby's state folder."
|
|
73
|
+
},
|
|
74
|
+
"attachments": {
|
|
75
|
+
"type": "array",
|
|
76
|
+
"items": {
|
|
77
|
+
"type": "string"
|
|
78
|
+
},
|
|
79
|
+
"description": "Screenshots copied next to the Message file."
|
|
80
|
+
},
|
|
81
|
+
"pasteText": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"description": "One line that tells the target AI to read the Message file."
|
|
84
|
+
},
|
|
85
|
+
"note": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"description": "Why a paste is needed, or that the target must approve it (bypass mode)."
|
|
88
|
+
},
|
|
89
|
+
"needsApproval": {
|
|
90
|
+
"type": "boolean",
|
|
91
|
+
"description": "true while a delivered Message waits for the user to approve it in the target terminal (ADR-0045); dropped once it is read, and after 6 minutes unread the status becomes paste-needed."
|
|
92
|
+
},
|
|
93
|
+
"sentAt": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"description": "Messages sideby kept, newest first (20 unless --limit says otherwise)."
|
|
99
|
+
},
|
|
100
|
+
"_notice": {
|
|
101
|
+
"type": "object",
|
|
102
|
+
"properties": {
|
|
103
|
+
"update": {
|
|
104
|
+
"type": "object",
|
|
105
|
+
"required": [
|
|
106
|
+
"current",
|
|
107
|
+
"latest",
|
|
108
|
+
"command",
|
|
109
|
+
"message"
|
|
110
|
+
],
|
|
111
|
+
"properties": {
|
|
112
|
+
"current": {
|
|
113
|
+
"type": "string"
|
|
114
|
+
},
|
|
115
|
+
"latest": {
|
|
116
|
+
"type": "string"
|
|
117
|
+
},
|
|
118
|
+
"command": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"description": "Run it after the user agrees: it shows the plan and exits 10; then --yes."
|
|
121
|
+
},
|
|
122
|
+
"message": {
|
|
123
|
+
"type": "string"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"skill": {
|
|
128
|
+
"type": "object",
|
|
129
|
+
"required": [
|
|
130
|
+
"installed",
|
|
131
|
+
"current",
|
|
132
|
+
"command",
|
|
133
|
+
"message"
|
|
134
|
+
],
|
|
135
|
+
"properties": {
|
|
136
|
+
"installed": {
|
|
137
|
+
"anyOf": [
|
|
138
|
+
{
|
|
139
|
+
"type": "string"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"type": "null"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"description": "The skill's version; null when it has none."
|
|
146
|
+
},
|
|
147
|
+
"current": {
|
|
148
|
+
"type": "string"
|
|
149
|
+
},
|
|
150
|
+
"command": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"description": "`sideby update`, which updates the skill with sideby: run it after the user agrees; it shows the plan and exits 10, then --yes."
|
|
153
|
+
},
|
|
154
|
+
"message": {
|
|
155
|
+
"type": "string"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"description": "Not the answer to the task: mention it briefly afterwards and offer to update."
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"title": "sideby messages --json"
|
|
164
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "sideby/send.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": [
|
|
6
|
+
"schemaVersion",
|
|
7
|
+
"message",
|
|
8
|
+
"copied"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"schemaVersion": {
|
|
12
|
+
"type": "number",
|
|
13
|
+
"const": 1
|
|
14
|
+
},
|
|
15
|
+
"message": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"required": [
|
|
18
|
+
"id",
|
|
19
|
+
"to",
|
|
20
|
+
"toSessionId",
|
|
21
|
+
"toAccount",
|
|
22
|
+
"status",
|
|
23
|
+
"file",
|
|
24
|
+
"attachments",
|
|
25
|
+
"pasteText",
|
|
26
|
+
"sentAt"
|
|
27
|
+
],
|
|
28
|
+
"properties": {
|
|
29
|
+
"id": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "Short id, also in the delivered text, so the target record shows when it was read."
|
|
32
|
+
},
|
|
33
|
+
"to": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"description": "The target session's Session Label."
|
|
36
|
+
},
|
|
37
|
+
"toSessionId": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"toAccount": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "The account ref that holds the target session."
|
|
43
|
+
},
|
|
44
|
+
"from": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "The Session Label of the session that sent it, when sideby could tell."
|
|
47
|
+
},
|
|
48
|
+
"status": {
|
|
49
|
+
"anyOf": [
|
|
50
|
+
{
|
|
51
|
+
"type": "string",
|
|
52
|
+
"const": "stored"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"type": "string",
|
|
56
|
+
"const": "delivered"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"type": "string",
|
|
60
|
+
"const": "read"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"type": "string",
|
|
64
|
+
"const": "paste-needed"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"description": "stored: kept as a file only; delivered: the host's own channel took it; read: it shows in the target's record; paste-needed: the user pastes pasteText into the target."
|
|
68
|
+
},
|
|
69
|
+
"file": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"description": "The Message file (mode 600) in sideby's state folder."
|
|
72
|
+
},
|
|
73
|
+
"attachments": {
|
|
74
|
+
"type": "array",
|
|
75
|
+
"items": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
"description": "Screenshots copied next to the Message file."
|
|
79
|
+
},
|
|
80
|
+
"pasteText": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"description": "One line that tells the target AI to read the Message file."
|
|
83
|
+
},
|
|
84
|
+
"note": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"description": "Why a paste is needed, or that the target must approve it (bypass mode)."
|
|
87
|
+
},
|
|
88
|
+
"needsApproval": {
|
|
89
|
+
"type": "boolean",
|
|
90
|
+
"description": "true while a delivered Message waits for the user to approve it in the target terminal (ADR-0045); dropped once it is read, and after 6 minutes unread the status becomes paste-needed."
|
|
91
|
+
},
|
|
92
|
+
"sentAt": {
|
|
93
|
+
"type": "string"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"copied": {
|
|
98
|
+
"type": "boolean",
|
|
99
|
+
"description": "Whether pasteText went onto the clipboard; only tried when status is paste-needed, false otherwise."
|
|
100
|
+
},
|
|
101
|
+
"_notice": {
|
|
102
|
+
"type": "object",
|
|
103
|
+
"properties": {
|
|
104
|
+
"update": {
|
|
105
|
+
"type": "object",
|
|
106
|
+
"required": [
|
|
107
|
+
"current",
|
|
108
|
+
"latest",
|
|
109
|
+
"command",
|
|
110
|
+
"message"
|
|
111
|
+
],
|
|
112
|
+
"properties": {
|
|
113
|
+
"current": {
|
|
114
|
+
"type": "string"
|
|
115
|
+
},
|
|
116
|
+
"latest": {
|
|
117
|
+
"type": "string"
|
|
118
|
+
},
|
|
119
|
+
"command": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"description": "Run it after the user agrees: it shows the plan and exits 10; then --yes."
|
|
122
|
+
},
|
|
123
|
+
"message": {
|
|
124
|
+
"type": "string"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"skill": {
|
|
129
|
+
"type": "object",
|
|
130
|
+
"required": [
|
|
131
|
+
"installed",
|
|
132
|
+
"current",
|
|
133
|
+
"command",
|
|
134
|
+
"message"
|
|
135
|
+
],
|
|
136
|
+
"properties": {
|
|
137
|
+
"installed": {
|
|
138
|
+
"anyOf": [
|
|
139
|
+
{
|
|
140
|
+
"type": "string"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"type": "null"
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"description": "The skill's version; null when it has none."
|
|
147
|
+
},
|
|
148
|
+
"current": {
|
|
149
|
+
"type": "string"
|
|
150
|
+
},
|
|
151
|
+
"command": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"description": "`sideby update`, which updates the skill with sideby: run it after the user agrees; it shows the plan and exits 10, then --yes."
|
|
154
|
+
},
|
|
155
|
+
"message": {
|
|
156
|
+
"type": "string"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"description": "Not the answer to the task: mention it briefly afterwards and offer to update."
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"title": "sideby send --json"
|
|
165
|
+
}
|