sideby 0.22.0 → 0.23.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.
Files changed (52) hide show
  1. package/ai-tasks.json +14 -0
  2. package/dist/build.json +1 -1
  3. package/dist/src/cli/commands.d.ts +7 -0
  4. package/dist/src/cli/commands.js +326 -21
  5. package/dist/src/cli/json-schemas.js +76 -1
  6. package/dist/src/cli/main.js +32 -4
  7. package/dist/src/core/ask.js +6 -1
  8. package/dist/src/core/config.d.ts +5 -1
  9. package/dist/src/core/config.js +18 -3
  10. package/dist/src/core/quota-levels.d.ts +7 -2
  11. package/dist/src/core/quota-levels.js +13 -3
  12. package/dist/src/core/themes.d.ts +107 -0
  13. package/dist/src/core/themes.js +463 -0
  14. package/dist/src/menubar/snapshot.d.ts +10 -0
  15. package/dist/src/menubar/snapshot.js +14 -6
  16. package/dist/src/menubar/strings.d.ts +6 -0
  17. package/dist/src/menubar/strings.js +6 -0
  18. package/dist/src/panel/handler.d.ts +2 -0
  19. package/dist/src/panel/handler.js +125 -1
  20. package/dist/src/panel/i18n.d.ts +49 -0
  21. package/dist/src/panel/i18n.js +104 -6
  22. package/dist/src/panel/page-logic.d.ts +20 -1
  23. package/dist/src/panel/page-logic.js +41 -0
  24. package/dist/src/panel/page-script.js +268 -39
  25. package/dist/src/panel/page-styles.d.ts +2 -0
  26. package/dist/src/panel/page-styles.js +57 -31
  27. package/dist/src/panel/theme.d.ts +6 -1
  28. package/dist/src/panel/theme.js +4 -0
  29. package/dist/src/panel/themes.d.ts +14 -0
  30. package/dist/src/panel/themes.js +162 -0
  31. package/dist/src/runtime.d.ts +4 -0
  32. package/package.json +1 -1
  33. package/schemas/config.json +29 -1
  34. package/schemas/families.json +5 -0
  35. package/schemas/hide.json +157 -0
  36. package/schemas/list.json +10 -0
  37. package/schemas/order.json +26 -1
  38. package/schemas/pin.json +17 -0
  39. package/schemas/theme-check.json +140 -0
  40. package/schemas/theme-export.json +86 -0
  41. package/schemas/theme-import.json +92 -0
  42. package/schemas/theme-preview.json +86 -0
  43. package/schemas/theme-remove.json +87 -0
  44. package/schemas/theme-use.json +88 -0
  45. package/schemas/theme.json +137 -0
  46. package/schemas/unhide.json +157 -0
  47. package/schemas/unpin.json +17 -0
  48. package/skills/sideby/SKILL.md +3 -1
  49. package/skills/sideby/references/ai-tasks.md +1 -1
  50. package/skills/sideby/references/panel.md +9 -0
  51. package/skills/sideby/references/quota.md +1 -1
  52. package/skills/sideby/references/themes.md +47 -0
@@ -42,6 +42,23 @@
42
42
  }
43
43
  }
44
44
  }
45
+ },
46
+ "hiddenFamilies": {
47
+ "type": "array",
48
+ "items": {
49
+ "type": "string"
50
+ }
51
+ },
52
+ "hidden": {
53
+ "type": "object",
54
+ "patternProperties": {
55
+ "^.*$": {
56
+ "type": "array",
57
+ "items": {
58
+ "type": "string"
59
+ }
60
+ }
61
+ }
45
62
  }
46
63
  }
47
64
  },
@@ -51,12 +68,16 @@
51
68
  "type": "object",
52
69
  "required": [
53
70
  "family",
71
+ "hidden",
54
72
  "accounts"
55
73
  ],
56
74
  "properties": {
57
75
  "family": {
58
76
  "type": "string"
59
77
  },
78
+ "hidden": {
79
+ "type": "boolean"
80
+ },
60
81
  "accounts": {
61
82
  "type": "array",
62
83
  "items": {
@@ -64,7 +85,8 @@
64
85
  "required": [
65
86
  "name",
66
87
  "ref",
67
- "pinned"
88
+ "pinned",
89
+ "hidden"
68
90
  ],
69
91
  "properties": {
70
92
  "name": {
@@ -75,6 +97,9 @@
75
97
  },
76
98
  "pinned": {
77
99
  "type": "boolean"
100
+ },
101
+ "hidden": {
102
+ "type": "boolean"
78
103
  }
79
104
  }
80
105
  }
package/schemas/pin.json CHANGED
@@ -57,6 +57,23 @@
57
57
  }
58
58
  }
59
59
  }
60
+ },
61
+ "hiddenFamilies": {
62
+ "type": "array",
63
+ "items": {
64
+ "type": "string"
65
+ }
66
+ },
67
+ "hidden": {
68
+ "type": "object",
69
+ "patternProperties": {
70
+ "^.*$": {
71
+ "type": "array",
72
+ "items": {
73
+ "type": "string"
74
+ }
75
+ }
76
+ }
60
77
  }
61
78
  }
62
79
  },
@@ -0,0 +1,140 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "sideby/theme-check.json",
4
+ "type": "object",
5
+ "required": [
6
+ "schemaVersion",
7
+ "id",
8
+ "ok",
9
+ "pairs",
10
+ "warnings"
11
+ ],
12
+ "properties": {
13
+ "schemaVersion": {
14
+ "type": "number",
15
+ "const": 1
16
+ },
17
+ "id": {
18
+ "type": "string"
19
+ },
20
+ "ok": {
21
+ "type": "boolean",
22
+ "description": "Every pair passes; the command exits 1 otherwise."
23
+ },
24
+ "pairs": {
25
+ "type": "array",
26
+ "items": {
27
+ "type": "object",
28
+ "required": [
29
+ "mode",
30
+ "fg",
31
+ "bg",
32
+ "min",
33
+ "ok"
34
+ ],
35
+ "properties": {
36
+ "mode": {
37
+ "anyOf": [
38
+ {
39
+ "type": "string",
40
+ "const": "light"
41
+ },
42
+ {
43
+ "type": "string",
44
+ "const": "dark"
45
+ }
46
+ ]
47
+ },
48
+ "fg": {
49
+ "type": "string"
50
+ },
51
+ "bg": {
52
+ "type": "string"
53
+ },
54
+ "ratio": {
55
+ "type": "number",
56
+ "description": "WCAG 2 contrast; missing when a value is not #rrggbb."
57
+ },
58
+ "min": {
59
+ "type": "number"
60
+ },
61
+ "ok": {
62
+ "type": "boolean"
63
+ },
64
+ "suggest": {
65
+ "type": "string",
66
+ "description": "A value for fg that passes."
67
+ }
68
+ }
69
+ }
70
+ },
71
+ "warnings": {
72
+ "type": "array",
73
+ "items": {
74
+ "type": "string"
75
+ }
76
+ },
77
+ "_notice": {
78
+ "type": "object",
79
+ "properties": {
80
+ "update": {
81
+ "type": "object",
82
+ "required": [
83
+ "current",
84
+ "latest",
85
+ "command",
86
+ "message"
87
+ ],
88
+ "properties": {
89
+ "current": {
90
+ "type": "string"
91
+ },
92
+ "latest": {
93
+ "type": "string"
94
+ },
95
+ "command": {
96
+ "type": "string",
97
+ "description": "Run it after the user agrees: it shows the plan and exits 10; then --yes."
98
+ },
99
+ "message": {
100
+ "type": "string"
101
+ }
102
+ }
103
+ },
104
+ "skill": {
105
+ "type": "object",
106
+ "required": [
107
+ "installed",
108
+ "current",
109
+ "command",
110
+ "message"
111
+ ],
112
+ "properties": {
113
+ "installed": {
114
+ "anyOf": [
115
+ {
116
+ "type": "string"
117
+ },
118
+ {
119
+ "type": "null"
120
+ }
121
+ ],
122
+ "description": "The skill's version; null when it has none."
123
+ },
124
+ "current": {
125
+ "type": "string"
126
+ },
127
+ "command": {
128
+ "type": "string",
129
+ "description": "`sideby update`, which updates the skill with sideby: run it after the user agrees; it shows the plan and exits 10, then --yes."
130
+ },
131
+ "message": {
132
+ "type": "string"
133
+ }
134
+ }
135
+ }
136
+ },
137
+ "description": "Not the answer to the task: mention it briefly afterwards and offer to update."
138
+ }
139
+ }
140
+ }
@@ -0,0 +1,86 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "sideby/theme-export.json",
4
+ "type": "object",
5
+ "required": [
6
+ "schemaVersion",
7
+ "id"
8
+ ],
9
+ "properties": {
10
+ "schemaVersion": {
11
+ "type": "number",
12
+ "const": 1
13
+ },
14
+ "id": {
15
+ "type": "string"
16
+ },
17
+ "out": {
18
+ "type": "string"
19
+ },
20
+ "theme": {
21
+ "description": "The Theme File, when no --out was given."
22
+ },
23
+ "_notice": {
24
+ "type": "object",
25
+ "properties": {
26
+ "update": {
27
+ "type": "object",
28
+ "required": [
29
+ "current",
30
+ "latest",
31
+ "command",
32
+ "message"
33
+ ],
34
+ "properties": {
35
+ "current": {
36
+ "type": "string"
37
+ },
38
+ "latest": {
39
+ "type": "string"
40
+ },
41
+ "command": {
42
+ "type": "string",
43
+ "description": "Run it after the user agrees: it shows the plan and exits 10; then --yes."
44
+ },
45
+ "message": {
46
+ "type": "string"
47
+ }
48
+ }
49
+ },
50
+ "skill": {
51
+ "type": "object",
52
+ "required": [
53
+ "installed",
54
+ "current",
55
+ "command",
56
+ "message"
57
+ ],
58
+ "properties": {
59
+ "installed": {
60
+ "anyOf": [
61
+ {
62
+ "type": "string"
63
+ },
64
+ {
65
+ "type": "null"
66
+ }
67
+ ],
68
+ "description": "The skill's version; null when it has none."
69
+ },
70
+ "current": {
71
+ "type": "string"
72
+ },
73
+ "command": {
74
+ "type": "string",
75
+ "description": "`sideby update`, which updates the skill with sideby: 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
+ },
83
+ "description": "Not the answer to the task: mention it briefly afterwards and offer to update."
84
+ }
85
+ }
86
+ }
@@ -0,0 +1,92 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "sideby/theme-import.json",
4
+ "type": "object",
5
+ "required": [
6
+ "schemaVersion",
7
+ "id",
8
+ "path",
9
+ "replaced"
10
+ ],
11
+ "properties": {
12
+ "schemaVersion": {
13
+ "type": "number",
14
+ "const": 1
15
+ },
16
+ "id": {
17
+ "type": "string"
18
+ },
19
+ "path": {
20
+ "type": "string"
21
+ },
22
+ "replaced": {
23
+ "type": "boolean"
24
+ },
25
+ "exists": {
26
+ "type": "boolean",
27
+ "description": "A Theme File of that name exists; rerun with --yes to replace it."
28
+ },
29
+ "_notice": {
30
+ "type": "object",
31
+ "properties": {
32
+ "update": {
33
+ "type": "object",
34
+ "required": [
35
+ "current",
36
+ "latest",
37
+ "command",
38
+ "message"
39
+ ],
40
+ "properties": {
41
+ "current": {
42
+ "type": "string"
43
+ },
44
+ "latest": {
45
+ "type": "string"
46
+ },
47
+ "command": {
48
+ "type": "string",
49
+ "description": "Run it after the user agrees: it shows the plan and exits 10; then --yes."
50
+ },
51
+ "message": {
52
+ "type": "string"
53
+ }
54
+ }
55
+ },
56
+ "skill": {
57
+ "type": "object",
58
+ "required": [
59
+ "installed",
60
+ "current",
61
+ "command",
62
+ "message"
63
+ ],
64
+ "properties": {
65
+ "installed": {
66
+ "anyOf": [
67
+ {
68
+ "type": "string"
69
+ },
70
+ {
71
+ "type": "null"
72
+ }
73
+ ],
74
+ "description": "The skill's version; null when it has none."
75
+ },
76
+ "current": {
77
+ "type": "string"
78
+ },
79
+ "command": {
80
+ "type": "string",
81
+ "description": "`sideby update`, which updates the skill with sideby: run it after the user agrees; it shows the plan and exits 10, then --yes."
82
+ },
83
+ "message": {
84
+ "type": "string"
85
+ }
86
+ }
87
+ }
88
+ },
89
+ "description": "Not the answer to the task: mention it briefly afterwards and offer to update."
90
+ }
91
+ }
92
+ }
@@ -0,0 +1,86 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "sideby/theme-preview.json",
4
+ "type": "object",
5
+ "required": [
6
+ "schemaVersion",
7
+ "opened"
8
+ ],
9
+ "properties": {
10
+ "schemaVersion": {
11
+ "type": "number",
12
+ "const": 1
13
+ },
14
+ "opened": {
15
+ "type": "boolean"
16
+ },
17
+ "url": {
18
+ "type": "string"
19
+ },
20
+ "hint": {
21
+ "type": "string"
22
+ },
23
+ "_notice": {
24
+ "type": "object",
25
+ "properties": {
26
+ "update": {
27
+ "type": "object",
28
+ "required": [
29
+ "current",
30
+ "latest",
31
+ "command",
32
+ "message"
33
+ ],
34
+ "properties": {
35
+ "current": {
36
+ "type": "string"
37
+ },
38
+ "latest": {
39
+ "type": "string"
40
+ },
41
+ "command": {
42
+ "type": "string",
43
+ "description": "Run it after the user agrees: it shows the plan and exits 10; then --yes."
44
+ },
45
+ "message": {
46
+ "type": "string"
47
+ }
48
+ }
49
+ },
50
+ "skill": {
51
+ "type": "object",
52
+ "required": [
53
+ "installed",
54
+ "current",
55
+ "command",
56
+ "message"
57
+ ],
58
+ "properties": {
59
+ "installed": {
60
+ "anyOf": [
61
+ {
62
+ "type": "string"
63
+ },
64
+ {
65
+ "type": "null"
66
+ }
67
+ ],
68
+ "description": "The skill's version; null when it has none."
69
+ },
70
+ "current": {
71
+ "type": "string"
72
+ },
73
+ "command": {
74
+ "type": "string",
75
+ "description": "`sideby update`, which updates the skill with sideby: 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
+ },
83
+ "description": "Not the answer to the task: mention it briefly afterwards and offer to update."
84
+ }
85
+ }
86
+ }
@@ -0,0 +1,87 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "sideby/theme-remove.json",
4
+ "type": "object",
5
+ "required": [
6
+ "schemaVersion",
7
+ "id",
8
+ "removed"
9
+ ],
10
+ "properties": {
11
+ "schemaVersion": {
12
+ "type": "number",
13
+ "const": 1
14
+ },
15
+ "id": {
16
+ "type": "string"
17
+ },
18
+ "removed": {
19
+ "type": "boolean"
20
+ },
21
+ "wasActive": {
22
+ "type": "boolean"
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,88 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "sideby/theme-use.json",
4
+ "type": "object",
5
+ "required": [
6
+ "schemaVersion",
7
+ "before",
8
+ "after",
9
+ "changed"
10
+ ],
11
+ "properties": {
12
+ "schemaVersion": {
13
+ "type": "number",
14
+ "const": 1
15
+ },
16
+ "before": {
17
+ "type": "string"
18
+ },
19
+ "after": {
20
+ "type": "string"
21
+ },
22
+ "changed": {
23
+ "type": "boolean"
24
+ },
25
+ "_notice": {
26
+ "type": "object",
27
+ "properties": {
28
+ "update": {
29
+ "type": "object",
30
+ "required": [
31
+ "current",
32
+ "latest",
33
+ "command",
34
+ "message"
35
+ ],
36
+ "properties": {
37
+ "current": {
38
+ "type": "string"
39
+ },
40
+ "latest": {
41
+ "type": "string"
42
+ },
43
+ "command": {
44
+ "type": "string",
45
+ "description": "Run it after the user agrees: it shows the plan and exits 10; then --yes."
46
+ },
47
+ "message": {
48
+ "type": "string"
49
+ }
50
+ }
51
+ },
52
+ "skill": {
53
+ "type": "object",
54
+ "required": [
55
+ "installed",
56
+ "current",
57
+ "command",
58
+ "message"
59
+ ],
60
+ "properties": {
61
+ "installed": {
62
+ "anyOf": [
63
+ {
64
+ "type": "string"
65
+ },
66
+ {
67
+ "type": "null"
68
+ }
69
+ ],
70
+ "description": "The skill's version; null when it has none."
71
+ },
72
+ "current": {
73
+ "type": "string"
74
+ },
75
+ "command": {
76
+ "type": "string",
77
+ "description": "`sideby update`, which updates the skill with sideby: run it after the user agrees; it shows the plan and exits 10, then --yes."
78
+ },
79
+ "message": {
80
+ "type": "string"
81
+ }
82
+ }
83
+ }
84
+ },
85
+ "description": "Not the answer to the task: mention it briefly afterwards and offer to update."
86
+ }
87
+ }
88
+ }