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
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "sideby/menubar-start.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": [
|
|
6
|
+
"schemaVersion",
|
|
7
|
+
"task",
|
|
8
|
+
"account",
|
|
9
|
+
"terminal",
|
|
10
|
+
"opened",
|
|
11
|
+
"command"
|
|
12
|
+
],
|
|
13
|
+
"properties": {
|
|
14
|
+
"schemaVersion": {
|
|
15
|
+
"type": "number",
|
|
16
|
+
"const": 1
|
|
17
|
+
},
|
|
18
|
+
"task": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"account": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"terminal": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"opened": {
|
|
28
|
+
"type": "boolean"
|
|
29
|
+
},
|
|
30
|
+
"command": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "The command the terminal runs; paste it into a terminal when `opened` is false."
|
|
33
|
+
},
|
|
34
|
+
"reason": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"enum": [
|
|
37
|
+
"not-installed",
|
|
38
|
+
"automation-denied",
|
|
39
|
+
"npx-cache",
|
|
40
|
+
"unsafe-path",
|
|
41
|
+
"failed",
|
|
42
|
+
"unsupported-platform"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"detail": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"description": "What to do next, for a person."
|
|
48
|
+
},
|
|
49
|
+
"_notice": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"properties": {
|
|
52
|
+
"update": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"required": [
|
|
55
|
+
"current",
|
|
56
|
+
"latest",
|
|
57
|
+
"command",
|
|
58
|
+
"message"
|
|
59
|
+
],
|
|
60
|
+
"properties": {
|
|
61
|
+
"current": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
"latest": {
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
"command": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"description": "Run it after the user agrees: it shows the plan and exits 10; then --yes."
|
|
70
|
+
},
|
|
71
|
+
"message": {
|
|
72
|
+
"type": "string"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"skill": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"required": [
|
|
79
|
+
"installed",
|
|
80
|
+
"current",
|
|
81
|
+
"command",
|
|
82
|
+
"message"
|
|
83
|
+
],
|
|
84
|
+
"properties": {
|
|
85
|
+
"installed": {
|
|
86
|
+
"anyOf": [
|
|
87
|
+
{
|
|
88
|
+
"type": "string"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"type": "null"
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"description": "The skill's version; null when it has none."
|
|
95
|
+
},
|
|
96
|
+
"current": {
|
|
97
|
+
"type": "string"
|
|
98
|
+
},
|
|
99
|
+
"command": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"description": "`sideby update`, which updates the skill with sideby: run it after the user agrees; it shows the plan and exits 10, then --yes."
|
|
102
|
+
},
|
|
103
|
+
"message": {
|
|
104
|
+
"type": "string"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"description": "Not the answer to the task: mention it briefly afterwards and offer to update."
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "sideby/menubar.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": [
|
|
6
|
+
"schemaVersion",
|
|
7
|
+
"supported",
|
|
8
|
+
"state",
|
|
9
|
+
"path",
|
|
10
|
+
"current"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"schemaVersion": {
|
|
14
|
+
"type": "number",
|
|
15
|
+
"const": 1
|
|
16
|
+
},
|
|
17
|
+
"supported": {
|
|
18
|
+
"type": "boolean",
|
|
19
|
+
"description": "False on a system sideby cannot start at login yet; `reason` says so."
|
|
20
|
+
},
|
|
21
|
+
"reason": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"state": {
|
|
25
|
+
"anyOf": [
|
|
26
|
+
{
|
|
27
|
+
"type": "string",
|
|
28
|
+
"const": "off"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"type": "string",
|
|
32
|
+
"const": "on"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": "string",
|
|
36
|
+
"const": "stale"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"type": "string",
|
|
40
|
+
"const": "foreign"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"description": "`stale`: the Node or sideby it starts no longer exists; `foreign`: a file at that path that sideby did not write."
|
|
44
|
+
},
|
|
45
|
+
"path": {
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
"programArguments": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"current": {
|
|
55
|
+
"type": "boolean",
|
|
56
|
+
"description": "The menu bar item runs this sideby with this Node."
|
|
57
|
+
},
|
|
58
|
+
"missing": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"items": {
|
|
61
|
+
"type": "string"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"action": {
|
|
65
|
+
"anyOf": [
|
|
66
|
+
{
|
|
67
|
+
"type": "string",
|
|
68
|
+
"const": "on"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"type": "string",
|
|
72
|
+
"const": "off"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"changed": {
|
|
77
|
+
"type": "boolean"
|
|
78
|
+
},
|
|
79
|
+
"applied": {
|
|
80
|
+
"type": "boolean"
|
|
81
|
+
},
|
|
82
|
+
"content": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"description": "The file `on` writes."
|
|
85
|
+
},
|
|
86
|
+
"commands": {
|
|
87
|
+
"type": "array",
|
|
88
|
+
"items": {
|
|
89
|
+
"type": "array",
|
|
90
|
+
"items": {
|
|
91
|
+
"type": "string"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"loaded": {
|
|
96
|
+
"type": "boolean",
|
|
97
|
+
"description": "launchd took the change now."
|
|
98
|
+
},
|
|
99
|
+
"note": {
|
|
100
|
+
"type": "string"
|
|
101
|
+
},
|
|
102
|
+
"_notice": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"properties": {
|
|
105
|
+
"update": {
|
|
106
|
+
"type": "object",
|
|
107
|
+
"required": [
|
|
108
|
+
"current",
|
|
109
|
+
"latest",
|
|
110
|
+
"command",
|
|
111
|
+
"message"
|
|
112
|
+
],
|
|
113
|
+
"properties": {
|
|
114
|
+
"current": {
|
|
115
|
+
"type": "string"
|
|
116
|
+
},
|
|
117
|
+
"latest": {
|
|
118
|
+
"type": "string"
|
|
119
|
+
},
|
|
120
|
+
"command": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"description": "Run it after the user agrees: it shows the plan and exits 10; then --yes."
|
|
123
|
+
},
|
|
124
|
+
"message": {
|
|
125
|
+
"type": "string"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"skill": {
|
|
130
|
+
"type": "object",
|
|
131
|
+
"required": [
|
|
132
|
+
"installed",
|
|
133
|
+
"current",
|
|
134
|
+
"command",
|
|
135
|
+
"message"
|
|
136
|
+
],
|
|
137
|
+
"properties": {
|
|
138
|
+
"installed": {
|
|
139
|
+
"anyOf": [
|
|
140
|
+
{
|
|
141
|
+
"type": "string"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"type": "null"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"description": "The skill's version; null when it has none."
|
|
148
|
+
},
|
|
149
|
+
"current": {
|
|
150
|
+
"type": "string"
|
|
151
|
+
},
|
|
152
|
+
"command": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"description": "`sideby update`, which updates the skill with sideby: run it after the user agrees; it shows the plan and exits 10, then --yes."
|
|
155
|
+
},
|
|
156
|
+
"message": {
|
|
157
|
+
"type": "string"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"description": "Not the answer to the task: mention it briefly afterwards and offer to update."
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "sideby/plugins-check.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": [
|
|
6
|
+
"schemaVersion",
|
|
7
|
+
"ok",
|
|
8
|
+
"families",
|
|
9
|
+
"problems"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"schemaVersion": {
|
|
13
|
+
"type": "number",
|
|
14
|
+
"const": 1
|
|
15
|
+
},
|
|
16
|
+
"ok": {
|
|
17
|
+
"type": "boolean"
|
|
18
|
+
},
|
|
19
|
+
"plugin": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"families": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"problems": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"items": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"required": [
|
|
33
|
+
"code",
|
|
34
|
+
"message",
|
|
35
|
+
"fix"
|
|
36
|
+
],
|
|
37
|
+
"properties": {
|
|
38
|
+
"code": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"message": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"fix": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"_notice": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"properties": {
|
|
53
|
+
"update": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"required": [
|
|
56
|
+
"current",
|
|
57
|
+
"latest",
|
|
58
|
+
"command",
|
|
59
|
+
"message"
|
|
60
|
+
],
|
|
61
|
+
"properties": {
|
|
62
|
+
"current": {
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
"latest": {
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
"command": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"description": "Run it after the user agrees: it shows the plan and exits 10; then --yes."
|
|
71
|
+
},
|
|
72
|
+
"message": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"skill": {
|
|
78
|
+
"type": "object",
|
|
79
|
+
"required": [
|
|
80
|
+
"installed",
|
|
81
|
+
"current",
|
|
82
|
+
"command",
|
|
83
|
+
"message"
|
|
84
|
+
],
|
|
85
|
+
"properties": {
|
|
86
|
+
"installed": {
|
|
87
|
+
"anyOf": [
|
|
88
|
+
{
|
|
89
|
+
"type": "string"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"type": "null"
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"description": "The skill's version; null when it has none."
|
|
96
|
+
},
|
|
97
|
+
"current": {
|
|
98
|
+
"type": "string"
|
|
99
|
+
},
|
|
100
|
+
"command": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"description": "`sideby update`, which updates the skill with sideby: run it after the user agrees; it shows the plan and exits 10, then --yes."
|
|
103
|
+
},
|
|
104
|
+
"message": {
|
|
105
|
+
"type": "string"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"description": "Not the answer to the task: mention it briefly afterwards and offer to update."
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "sideby/plugins-new.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": [
|
|
6
|
+
"schemaVersion",
|
|
7
|
+
"dir",
|
|
8
|
+
"files"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"schemaVersion": {
|
|
12
|
+
"type": "number",
|
|
13
|
+
"const": 1
|
|
14
|
+
},
|
|
15
|
+
"dir": {
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
"files": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"items": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"_notice": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"update": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"required": [
|
|
30
|
+
"current",
|
|
31
|
+
"latest",
|
|
32
|
+
"command",
|
|
33
|
+
"message"
|
|
34
|
+
],
|
|
35
|
+
"properties": {
|
|
36
|
+
"current": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"latest": {
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
"command": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"description": "Run it after the user agrees: it shows the plan and exits 10; then --yes."
|
|
45
|
+
},
|
|
46
|
+
"message": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"skill": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"required": [
|
|
54
|
+
"installed",
|
|
55
|
+
"current",
|
|
56
|
+
"command",
|
|
57
|
+
"message"
|
|
58
|
+
],
|
|
59
|
+
"properties": {
|
|
60
|
+
"installed": {
|
|
61
|
+
"anyOf": [
|
|
62
|
+
{
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type": "null"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"description": "The skill's version; null when it has none."
|
|
70
|
+
},
|
|
71
|
+
"current": {
|
|
72
|
+
"type": "string"
|
|
73
|
+
},
|
|
74
|
+
"command": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"description": "`sideby update`, which updates the skill with sideby: run it after the user agrees; it shows the plan and exits 10, then --yes."
|
|
77
|
+
},
|
|
78
|
+
"message": {
|
|
79
|
+
"type": "string"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"description": "Not the answer to the task: mention it briefly afterwards and offer to update."
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "sideby/terminal.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"required": [
|
|
6
|
+
"schemaVersion",
|
|
7
|
+
"preferred",
|
|
8
|
+
"guess",
|
|
9
|
+
"installed",
|
|
10
|
+
"terminals"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"schemaVersion": {
|
|
14
|
+
"type": "number",
|
|
15
|
+
"const": 1
|
|
16
|
+
},
|
|
17
|
+
"preferred": {
|
|
18
|
+
"anyOf": [
|
|
19
|
+
{
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"type": "null"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"guess": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"required": [
|
|
30
|
+
"id",
|
|
31
|
+
"source"
|
|
32
|
+
],
|
|
33
|
+
"properties": {
|
|
34
|
+
"id": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
"source": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"enum": [
|
|
40
|
+
"config",
|
|
41
|
+
"env",
|
|
42
|
+
"default"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"installed": {
|
|
48
|
+
"type": "array",
|
|
49
|
+
"items": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"required": [
|
|
52
|
+
"id"
|
|
53
|
+
],
|
|
54
|
+
"properties": {
|
|
55
|
+
"id": {
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
"appPath": {
|
|
59
|
+
"type": "string"
|
|
60
|
+
},
|
|
61
|
+
"executable": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"terminals": {
|
|
68
|
+
"type": "array",
|
|
69
|
+
"items": {
|
|
70
|
+
"type": "object",
|
|
71
|
+
"required": [
|
|
72
|
+
"id",
|
|
73
|
+
"name",
|
|
74
|
+
"installed"
|
|
75
|
+
],
|
|
76
|
+
"properties": {
|
|
77
|
+
"id": {
|
|
78
|
+
"type": "string"
|
|
79
|
+
},
|
|
80
|
+
"name": {
|
|
81
|
+
"type": "string"
|
|
82
|
+
},
|
|
83
|
+
"installed": {
|
|
84
|
+
"type": "boolean"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"_notice": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"properties": {
|
|
92
|
+
"update": {
|
|
93
|
+
"type": "object",
|
|
94
|
+
"required": [
|
|
95
|
+
"current",
|
|
96
|
+
"latest",
|
|
97
|
+
"command",
|
|
98
|
+
"message"
|
|
99
|
+
],
|
|
100
|
+
"properties": {
|
|
101
|
+
"current": {
|
|
102
|
+
"type": "string"
|
|
103
|
+
},
|
|
104
|
+
"latest": {
|
|
105
|
+
"type": "string"
|
|
106
|
+
},
|
|
107
|
+
"command": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"description": "Run it after the user agrees: it shows the plan and exits 10; then --yes."
|
|
110
|
+
},
|
|
111
|
+
"message": {
|
|
112
|
+
"type": "string"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"skill": {
|
|
117
|
+
"type": "object",
|
|
118
|
+
"required": [
|
|
119
|
+
"installed",
|
|
120
|
+
"current",
|
|
121
|
+
"command",
|
|
122
|
+
"message"
|
|
123
|
+
],
|
|
124
|
+
"properties": {
|
|
125
|
+
"installed": {
|
|
126
|
+
"anyOf": [
|
|
127
|
+
{
|
|
128
|
+
"type": "string"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"type": "null"
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"description": "The skill's version; null when it has none."
|
|
135
|
+
},
|
|
136
|
+
"current": {
|
|
137
|
+
"type": "string"
|
|
138
|
+
},
|
|
139
|
+
"command": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"description": "`sideby update`, which updates the skill with sideby: run it after the user agrees; it shows the plan and exits 10, then --yes."
|
|
142
|
+
},
|
|
143
|
+
"message": {
|
|
144
|
+
"type": "string"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"description": "Not the answer to the task: mention it briefly afterwards and offer to update."
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|