sideby 0.21.0 → 0.23.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 (97) hide show
  1. package/README.md +1 -0
  2. package/ai-tasks.json +14 -0
  3. package/dist/build.json +1 -1
  4. package/dist/src/cli/commands.d.ts +7 -0
  5. package/dist/src/cli/commands.js +441 -31
  6. package/dist/src/cli/format.js +3 -2
  7. package/dist/src/cli/json-schemas.js +157 -47
  8. package/dist/src/cli/main.js +38 -7
  9. package/dist/src/core/accounts.d.ts +6 -1
  10. package/dist/src/core/accounts.js +16 -3
  11. package/dist/src/core/ask.d.ts +2 -1
  12. package/dist/src/core/ask.js +12 -4
  13. package/dist/src/core/claude-settings-file.d.ts +57 -0
  14. package/dist/src/core/claude-settings-file.js +104 -2
  15. package/dist/src/core/config.d.ts +34 -16
  16. package/dist/src/core/config.js +58 -5
  17. package/dist/src/core/create.js +4 -1
  18. package/dist/src/core/desktop-app.js +5 -1
  19. package/dist/src/core/handoff-overview.d.ts +4 -1
  20. package/dist/src/core/handoff-overview.js +3 -2
  21. package/dist/src/core/handoff-rules.d.ts +34 -0
  22. package/dist/src/core/handoff-rules.js +115 -0
  23. package/dist/src/core/handoff-select.js +45 -28
  24. package/dist/src/core/handoff-status.d.ts +37 -7
  25. package/dist/src/core/handoff-status.js +95 -19
  26. package/dist/src/core/handoff.d.ts +4 -1
  27. package/dist/src/core/handoff.js +8 -5
  28. package/dist/src/core/inbound.d.ts +11 -3
  29. package/dist/src/core/inbound.js +26 -74
  30. package/dist/src/core/launch.js +6 -4
  31. package/dist/src/core/quota-levels.d.ts +13 -2
  32. package/dist/src/core/quota-levels.js +21 -3
  33. package/dist/src/core/remote-control.d.ts +10 -12
  34. package/dist/src/core/remote-control.js +29 -86
  35. package/dist/src/core/themes.d.ts +107 -0
  36. package/dist/src/core/themes.js +463 -0
  37. package/dist/src/core/tuning-apply.js +12 -20
  38. package/dist/src/families/agy/index.d.ts +8 -0
  39. package/dist/src/families/agy/index.js +53 -0
  40. package/dist/src/families/agy/quota.d.ts +9 -0
  41. package/dist/src/families/agy/quota.js +110 -0
  42. package/dist/src/families/index.js +7 -0
  43. package/dist/src/families/logos.d.ts +10 -0
  44. package/dist/src/families/logos.js +12 -1
  45. package/dist/src/menubar/script.js +26 -3
  46. package/dist/src/menubar/snapshot.d.ts +33 -6
  47. package/dist/src/menubar/snapshot.js +138 -43
  48. package/dist/src/menubar/strings.d.ts +18 -2
  49. package/dist/src/menubar/strings.js +18 -2
  50. package/dist/src/panel/handler.d.ts +4 -1
  51. package/dist/src/panel/handler.js +206 -46
  52. package/dist/src/panel/i18n.d.ts +106 -7
  53. package/dist/src/panel/i18n.js +260 -62
  54. package/dist/src/panel/page-logic.d.ts +67 -20
  55. package/dist/src/panel/page-logic.js +74 -7
  56. package/dist/src/panel/page-script.js +522 -124
  57. package/dist/src/panel/page-styles.d.ts +2 -0
  58. package/dist/src/panel/page-styles.js +157 -34
  59. package/dist/src/panel/page.js +3 -3
  60. package/dist/src/panel/theme.d.ts +6 -1
  61. package/dist/src/panel/theme.js +4 -0
  62. package/dist/src/panel/themes.d.ts +14 -0
  63. package/dist/src/panel/themes.js +162 -0
  64. package/dist/src/plugins/check.js +27 -13
  65. package/dist/src/plugins/loader.d.ts +11 -0
  66. package/dist/src/plugins/loader.js +47 -1
  67. package/dist/src/runtime.d.ts +9 -2
  68. package/dist/src/runtime.js +12 -5
  69. package/dist/src/types.d.ts +35 -5
  70. package/package.json +2 -2
  71. package/schemas/config.json +45 -2
  72. package/schemas/families.json +13 -5
  73. package/schemas/handoff-disable.json +22 -0
  74. package/schemas/handoff-enable.json +22 -0
  75. package/schemas/handoff-rules.json +302 -0
  76. package/schemas/handoff-status.json +26 -0
  77. package/schemas/hide.json +157 -0
  78. package/schemas/list.json +15 -0
  79. package/schemas/menubar-snapshot.json +309 -2
  80. package/schemas/order.json +26 -1
  81. package/schemas/pin.json +17 -0
  82. package/schemas/theme-check.json +140 -0
  83. package/schemas/theme-export.json +86 -0
  84. package/schemas/theme-import.json +92 -0
  85. package/schemas/theme-preview.json +86 -0
  86. package/schemas/theme-remove.json +87 -0
  87. package/schemas/theme-use.json +88 -0
  88. package/schemas/theme.json +137 -0
  89. package/schemas/unhide.json +157 -0
  90. package/schemas/unpin.json +17 -0
  91. package/skills/sideby/SKILL.md +5 -2
  92. package/skills/sideby/references/accounts.md +1 -0
  93. package/skills/sideby/references/ai-tasks.md +1 -1
  94. package/skills/sideby/references/handoff.md +7 -3
  95. package/skills/sideby/references/panel.md +9 -0
  96. package/skills/sideby/references/quota.md +3 -1
  97. package/skills/sideby/references/themes.md +47 -0
@@ -178,6 +178,49 @@
178
178
  "color": {
179
179
  "type": "string",
180
180
  "description": "Brand colour; without one the mark follows the text colour."
181
+ },
182
+ "gradients": {
183
+ "type": "array",
184
+ "items": {
185
+ "type": "object",
186
+ "required": [
187
+ "from",
188
+ "to",
189
+ "color"
190
+ ],
191
+ "properties": {
192
+ "from": {
193
+ "type": "array",
194
+ "additionalItems": false,
195
+ "items": [
196
+ {
197
+ "type": "number"
198
+ },
199
+ {
200
+ "type": "number"
201
+ }
202
+ ],
203
+ "minItems": 2
204
+ },
205
+ "to": {
206
+ "type": "array",
207
+ "additionalItems": false,
208
+ "items": [
209
+ {
210
+ "type": "number"
211
+ },
212
+ {
213
+ "type": "number"
214
+ }
215
+ ],
216
+ "minItems": 2
217
+ },
218
+ "color": {
219
+ "type": "string"
220
+ }
221
+ }
222
+ },
223
+ "description": "Colour washes over a multicoloured mark: each fades from `color` at `from` to clear at `to`."
181
224
  }
182
225
  }
183
226
  },
@@ -228,6 +271,7 @@
228
271
  "stale",
229
272
  "tip",
230
273
  "bars",
274
+ "groups",
231
275
  "reset",
232
276
  "note"
233
277
  ],
@@ -283,7 +327,7 @@
283
327
  },
284
328
  "tip": {
285
329
  "type": "string",
286
- "description": "Hover text: when each window resets, and what a click does."
330
+ "description": "Hover text: when the numbers were read, each window's use and reset, and what a click does."
287
331
  },
288
332
  "bars": {
289
333
  "anyOf": [
@@ -386,6 +430,137 @@
386
430
  ],
387
431
  "description": "The shorter window, then the longer one; a single window fills the second. Null without quota."
388
432
  },
433
+ "groups": {
434
+ "anyOf": [
435
+ {
436
+ "type": "array",
437
+ "items": {
438
+ "type": "object",
439
+ "required": [
440
+ "label",
441
+ "bars",
442
+ "reset",
443
+ "tip"
444
+ ],
445
+ "properties": {
446
+ "label": {
447
+ "type": "string"
448
+ },
449
+ "bars": {
450
+ "anyOf": [
451
+ {
452
+ "type": "array",
453
+ "additionalItems": false,
454
+ "items": [
455
+ {
456
+ "anyOf": [
457
+ {
458
+ "type": "object",
459
+ "required": [
460
+ "label",
461
+ "percent",
462
+ "level"
463
+ ],
464
+ "properties": {
465
+ "label": {
466
+ "type": "string"
467
+ },
468
+ "percent": {
469
+ "type": "number"
470
+ },
471
+ "level": {
472
+ "anyOf": [
473
+ {
474
+ "type": "string",
475
+ "const": "ok"
476
+ },
477
+ {
478
+ "type": "string",
479
+ "const": "warn"
480
+ },
481
+ {
482
+ "type": "string",
483
+ "const": "fail"
484
+ },
485
+ {
486
+ "type": "string",
487
+ "const": "none"
488
+ }
489
+ ]
490
+ }
491
+ }
492
+ },
493
+ {
494
+ "type": "null"
495
+ }
496
+ ]
497
+ },
498
+ {
499
+ "anyOf": [
500
+ {
501
+ "type": "object",
502
+ "required": [
503
+ "label",
504
+ "percent",
505
+ "level"
506
+ ],
507
+ "properties": {
508
+ "label": {
509
+ "type": "string"
510
+ },
511
+ "percent": {
512
+ "type": "number"
513
+ },
514
+ "level": {
515
+ "anyOf": [
516
+ {
517
+ "type": "string",
518
+ "const": "ok"
519
+ },
520
+ {
521
+ "type": "string",
522
+ "const": "warn"
523
+ },
524
+ {
525
+ "type": "string",
526
+ "const": "fail"
527
+ },
528
+ {
529
+ "type": "string",
530
+ "const": "none"
531
+ }
532
+ ]
533
+ }
534
+ }
535
+ },
536
+ {
537
+ "type": "null"
538
+ }
539
+ ]
540
+ }
541
+ ],
542
+ "minItems": 2
543
+ },
544
+ {
545
+ "type": "null"
546
+ }
547
+ ]
548
+ },
549
+ "reset": {
550
+ "type": "string"
551
+ },
552
+ "tip": {
553
+ "type": "string"
554
+ }
555
+ }
556
+ }
557
+ },
558
+ {
559
+ "type": "null"
560
+ }
561
+ ],
562
+ "description": "A Host whose every limit covers one model group: a line per group under the account, each with its own bars; the account's `bars` are then null."
563
+ },
389
564
  "reset": {
390
565
  "type": "string",
391
566
  "description": "Until the fullest window resets, such as `4d 17h`; empty when nothing is used."
@@ -424,6 +599,7 @@
424
599
  "stale",
425
600
  "tip",
426
601
  "bars",
602
+ "groups",
427
603
  "reset",
428
604
  "note"
429
605
  ],
@@ -479,7 +655,7 @@
479
655
  },
480
656
  "tip": {
481
657
  "type": "string",
482
- "description": "Hover text: when each window resets, and what a click does."
658
+ "description": "Hover text: when the numbers were read, each window's use and reset, and what a click does."
483
659
  },
484
660
  "bars": {
485
661
  "anyOf": [
@@ -582,6 +758,137 @@
582
758
  ],
583
759
  "description": "The shorter window, then the longer one; a single window fills the second. Null without quota."
584
760
  },
761
+ "groups": {
762
+ "anyOf": [
763
+ {
764
+ "type": "array",
765
+ "items": {
766
+ "type": "object",
767
+ "required": [
768
+ "label",
769
+ "bars",
770
+ "reset",
771
+ "tip"
772
+ ],
773
+ "properties": {
774
+ "label": {
775
+ "type": "string"
776
+ },
777
+ "bars": {
778
+ "anyOf": [
779
+ {
780
+ "type": "array",
781
+ "additionalItems": false,
782
+ "items": [
783
+ {
784
+ "anyOf": [
785
+ {
786
+ "type": "object",
787
+ "required": [
788
+ "label",
789
+ "percent",
790
+ "level"
791
+ ],
792
+ "properties": {
793
+ "label": {
794
+ "type": "string"
795
+ },
796
+ "percent": {
797
+ "type": "number"
798
+ },
799
+ "level": {
800
+ "anyOf": [
801
+ {
802
+ "type": "string",
803
+ "const": "ok"
804
+ },
805
+ {
806
+ "type": "string",
807
+ "const": "warn"
808
+ },
809
+ {
810
+ "type": "string",
811
+ "const": "fail"
812
+ },
813
+ {
814
+ "type": "string",
815
+ "const": "none"
816
+ }
817
+ ]
818
+ }
819
+ }
820
+ },
821
+ {
822
+ "type": "null"
823
+ }
824
+ ]
825
+ },
826
+ {
827
+ "anyOf": [
828
+ {
829
+ "type": "object",
830
+ "required": [
831
+ "label",
832
+ "percent",
833
+ "level"
834
+ ],
835
+ "properties": {
836
+ "label": {
837
+ "type": "string"
838
+ },
839
+ "percent": {
840
+ "type": "number"
841
+ },
842
+ "level": {
843
+ "anyOf": [
844
+ {
845
+ "type": "string",
846
+ "const": "ok"
847
+ },
848
+ {
849
+ "type": "string",
850
+ "const": "warn"
851
+ },
852
+ {
853
+ "type": "string",
854
+ "const": "fail"
855
+ },
856
+ {
857
+ "type": "string",
858
+ "const": "none"
859
+ }
860
+ ]
861
+ }
862
+ }
863
+ },
864
+ {
865
+ "type": "null"
866
+ }
867
+ ]
868
+ }
869
+ ],
870
+ "minItems": 2
871
+ },
872
+ {
873
+ "type": "null"
874
+ }
875
+ ]
876
+ },
877
+ "reset": {
878
+ "type": "string"
879
+ },
880
+ "tip": {
881
+ "type": "string"
882
+ }
883
+ }
884
+ }
885
+ },
886
+ {
887
+ "type": "null"
888
+ }
889
+ ],
890
+ "description": "A Host whose every limit covers one model group: a line per group under the account, each with its own bars; the account's `bars` are then null."
891
+ },
585
892
  "reset": {
586
893
  "type": "string",
587
894
  "description": "Until the fullest window resets, such as `4d 17h`; empty when nothing is used."
@@ -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
+ }