@promptctl/cc-candybar 1.56.1 → 1.57.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.
@@ -158,8 +158,45 @@
158
158
  "first-line"
159
159
  ]
160
160
  },
161
- "regex": {
162
- "type": "string"
161
+ "parse": {
162
+ "anyOf": [
163
+ {
164
+ "type": "object",
165
+ "properties": {
166
+ "text": {
167
+ "const": true
168
+ }
169
+ },
170
+ "required": [
171
+ "text"
172
+ ],
173
+ "additionalProperties": false
174
+ },
175
+ {
176
+ "type": "object",
177
+ "properties": {
178
+ "regex": {
179
+ "type": "string"
180
+ }
181
+ },
182
+ "required": [
183
+ "regex"
184
+ ],
185
+ "additionalProperties": false
186
+ },
187
+ {
188
+ "type": "object",
189
+ "properties": {
190
+ "json": {
191
+ "const": true
192
+ }
193
+ },
194
+ "required": [
195
+ "json"
196
+ ],
197
+ "additionalProperties": false
198
+ }
199
+ ]
163
200
  },
164
201
  "cache": {
165
202
  "anyOf": [
@@ -229,7 +266,14 @@
229
266
  ]
230
267
  },
231
268
  "default": {
232
- "type": "string"
269
+ "type": [
270
+ "string",
271
+ "number",
272
+ "boolean",
273
+ "array",
274
+ "object"
275
+ ],
276
+ "description": "The value published when the source fails: a string under the text/regex parse arms, any non-null JSON value under the json arm"
233
277
  }
234
278
  },
235
279
  "required": [
@@ -248,8 +292,45 @@
248
292
  "command": {
249
293
  "type": "string"
250
294
  },
251
- "regex": {
252
- "type": "string"
295
+ "parse": {
296
+ "anyOf": [
297
+ {
298
+ "type": "object",
299
+ "properties": {
300
+ "text": {
301
+ "const": true
302
+ }
303
+ },
304
+ "required": [
305
+ "text"
306
+ ],
307
+ "additionalProperties": false
308
+ },
309
+ {
310
+ "type": "object",
311
+ "properties": {
312
+ "regex": {
313
+ "type": "string"
314
+ }
315
+ },
316
+ "required": [
317
+ "regex"
318
+ ],
319
+ "additionalProperties": false
320
+ },
321
+ {
322
+ "type": "object",
323
+ "properties": {
324
+ "json": {
325
+ "const": true
326
+ }
327
+ },
328
+ "required": [
329
+ "json"
330
+ ],
331
+ "additionalProperties": false
332
+ }
333
+ ]
253
334
  },
254
335
  "cache": {
255
336
  "anyOf": [
@@ -319,7 +400,14 @@
319
400
  ]
320
401
  },
321
402
  "default": {
322
- "type": "string"
403
+ "type": [
404
+ "string",
405
+ "number",
406
+ "boolean",
407
+ "array",
408
+ "object"
409
+ ],
410
+ "description": "The value published when the source fails: a string under the text/regex parse arms, any non-null JSON value under the json arm"
323
411
  }
324
412
  },
325
413
  "required": [
@@ -702,8 +790,45 @@
702
790
  "first-line"
703
791
  ]
704
792
  },
705
- "regex": {
706
- "type": "string"
793
+ "parse": {
794
+ "anyOf": [
795
+ {
796
+ "type": "object",
797
+ "properties": {
798
+ "text": {
799
+ "const": true
800
+ }
801
+ },
802
+ "required": [
803
+ "text"
804
+ ],
805
+ "additionalProperties": false
806
+ },
807
+ {
808
+ "type": "object",
809
+ "properties": {
810
+ "regex": {
811
+ "type": "string"
812
+ }
813
+ },
814
+ "required": [
815
+ "regex"
816
+ ],
817
+ "additionalProperties": false
818
+ },
819
+ {
820
+ "type": "object",
821
+ "properties": {
822
+ "json": {
823
+ "const": true
824
+ }
825
+ },
826
+ "required": [
827
+ "json"
828
+ ],
829
+ "additionalProperties": false
830
+ }
831
+ ]
707
832
  },
708
833
  "cache": {
709
834
  "anyOf": [
@@ -773,7 +898,14 @@
773
898
  ]
774
899
  },
775
900
  "default": {
776
- "type": "string"
901
+ "type": [
902
+ "string",
903
+ "number",
904
+ "boolean",
905
+ "array",
906
+ "object"
907
+ ],
908
+ "description": "The value published when the source fails: a string under the text/regex parse arms, any non-null JSON value under the json arm"
777
909
  }
778
910
  },
779
911
  "required": [
@@ -792,8 +924,45 @@
792
924
  "command": {
793
925
  "type": "string"
794
926
  },
795
- "regex": {
796
- "type": "string"
927
+ "parse": {
928
+ "anyOf": [
929
+ {
930
+ "type": "object",
931
+ "properties": {
932
+ "text": {
933
+ "const": true
934
+ }
935
+ },
936
+ "required": [
937
+ "text"
938
+ ],
939
+ "additionalProperties": false
940
+ },
941
+ {
942
+ "type": "object",
943
+ "properties": {
944
+ "regex": {
945
+ "type": "string"
946
+ }
947
+ },
948
+ "required": [
949
+ "regex"
950
+ ],
951
+ "additionalProperties": false
952
+ },
953
+ {
954
+ "type": "object",
955
+ "properties": {
956
+ "json": {
957
+ "const": true
958
+ }
959
+ },
960
+ "required": [
961
+ "json"
962
+ ],
963
+ "additionalProperties": false
964
+ }
965
+ ]
797
966
  },
798
967
  "cache": {
799
968
  "anyOf": [
@@ -863,7 +1032,14 @@
863
1032
  ]
864
1033
  },
865
1034
  "default": {
866
- "type": "string"
1035
+ "type": [
1036
+ "string",
1037
+ "number",
1038
+ "boolean",
1039
+ "array",
1040
+ "object"
1041
+ ],
1042
+ "description": "The value published when the source fails: a string under the text/regex parse arms, any non-null JSON value under the json arm"
867
1043
  }
868
1044
  },
869
1045
  "required": [
@@ -1,36 +0,0 @@
1
- {
2
- "theme": "replace:THEME",
3
- "display": {
4
- "style": "replace:STYLE",
5
- "charset": "replace:CHARSET",
6
- "colorCompatibility": "auto",
7
- "autoWrap": true,
8
- "padding": 1,
9
- "lines": [
10
- {
11
- "segments": {
12
- "directory": { "enabled": true, "style": "fish" },
13
- "git": { "enabled": true },
14
- "model": { "enabled": true }
15
- }
16
- },
17
- {
18
- "segments": {
19
- "context": {
20
- "enabled": true,
21
- "showPercentageOnly": false,
22
- "displayStyle": "replace:BAR_STYLE",
23
- "autocompactBuffer": 33000
24
- }
25
- }
26
- }
27
- ]
28
- },
29
- "budget": {
30
- "session": { "warningThreshold": 80 }
31
- },
32
- "modelContextLimits": {
33
- "sonnet": 1000000,
34
- "opus": 200000
35
- }
36
- }
@@ -1,55 +0,0 @@
1
- {
2
- "theme": "replace:THEME",
3
- "display": {
4
- "style": "replace:STYLE",
5
- "charset": "replace:CHARSET",
6
- "colorCompatibility": "auto",
7
- "autoWrap": true,
8
- "padding": 1,
9
- "lines": [
10
- {
11
- "segments": {
12
- "directory": { "enabled": true, "style": "fish" },
13
- "git": { "enabled": true },
14
- "model": { "enabled": true },
15
- "session": { "enabled": true, "type": "tokens", "costSource": "calculated" }
16
- }
17
- },
18
- {
19
- "segments": {
20
- "today": { "enabled": true, "type": "cost" },
21
- "block": { "enabled": true, "displayStyle": "replace:BAR_STYLE" },
22
- "weekly": { "enabled": true, "displayStyle": "replace:BAR_STYLE" },
23
- "context": {
24
- "enabled": true,
25
- "showPercentageOnly": false,
26
- "displayStyle": "replace:BAR_STYLE",
27
- "autocompactBuffer": 33000
28
- }
29
- }
30
- },
31
- {
32
- "segments": {
33
- "metrics": {
34
- "enabled": true,
35
- "showResponseTime": false,
36
- "showLastResponseTime": false,
37
- "showDuration": true,
38
- "showMessageCount": true,
39
- "showLinesAdded": false,
40
- "showLinesRemoved": false
41
- },
42
- "version": { "enabled": true }
43
- }
44
- }
45
- ]
46
- },
47
- "budget": {
48
- "session": { "warningThreshold": 80 },
49
- "today": { "amount": "replace:TODAY_BUDGET", "warningThreshold": 80 }
50
- },
51
- "modelContextLimits": {
52
- "sonnet": 1000000,
53
- "opus": 200000
54
- }
55
- }
@@ -1,39 +0,0 @@
1
- {
2
- "theme": "replace:THEME",
3
- "display": {
4
- "style": "replace:STYLE",
5
- "charset": "replace:CHARSET",
6
- "colorCompatibility": "auto",
7
- "autoWrap": true,
8
- "padding": 1,
9
- "lines": [
10
- {
11
- "segments": {
12
- "directory": { "enabled": true, "style": "fish" },
13
- "git": { "enabled": true },
14
- "model": { "enabled": true },
15
- "session": { "enabled": true, "type": "tokens", "costSource": "calculated" }
16
- }
17
- },
18
- {
19
- "segments": {
20
- "today": { "enabled": true, "type": "cost" },
21
- "context": {
22
- "enabled": true,
23
- "showPercentageOnly": false,
24
- "displayStyle": "replace:BAR_STYLE",
25
- "autocompactBuffer": 33000
26
- }
27
- }
28
- }
29
- ]
30
- },
31
- "budget": {
32
- "session": { "warningThreshold": 80 },
33
- "today": { "amount": "replace:TODAY_BUDGET", "warningThreshold": 80 }
34
- },
35
- "modelContextLimits": {
36
- "sonnet": 1000000,
37
- "opus": 200000
38
- }
39
- }
@@ -1,48 +0,0 @@
1
- {
2
- "theme": "replace:THEME",
3
- "display": {
4
- "style": "tui",
5
- "charset": "replace:CHARSET",
6
- "colorCompatibility": "auto",
7
- "autoWrap": true,
8
- "tui": {
9
- "fitContent": true,
10
- "minWidth": 30,
11
- "padding": { "horizontal": 1 },
12
- "separator": { "column": "" },
13
- "title": {
14
- "left": "{model}",
15
- "right": "{dir}"
16
- },
17
- "breakpoints": [
18
- {
19
- "minWidth": 0,
20
- "areas": [
21
- "git.icon git.headVal . git.working",
22
- "---",
23
- "context.icon context.bar context.pct context.tokens"
24
- ],
25
- "columns": ["auto", "1fr", "auto", "auto"],
26
- "align": ["left", "left", "right", "right"]
27
- }
28
- ]
29
- },
30
- "lines": [
31
- {
32
- "segments": {
33
- "directory": { "enabled": true, "showBasename": true },
34
- "git": { "enabled": true },
35
- "model": { "enabled": true },
36
- "context": { "enabled": true, "autocompactBuffer": 0 }
37
- }
38
- }
39
- ]
40
- },
41
- "budget": {
42
- "session": { "warningThreshold": 80 }
43
- },
44
- "modelContextLimits": {
45
- "sonnet": 1000000,
46
- "opus": 200000
47
- }
48
- }
@@ -1,89 +0,0 @@
1
- {
2
- "theme": "replace:THEME",
3
- "display": {
4
- "style": "tui",
5
- "charset": "replace:CHARSET",
6
- "colorCompatibility": "auto",
7
- "autoWrap": true,
8
- "tui": {
9
- "fitContent": true,
10
- "minWidth": 60,
11
- "padding": { "horizontal": 1 },
12
- "separator": { "column": "" },
13
- "title": {
14
- "left": "{model.icon} {model.value}",
15
- "right": "{dir}"
16
- },
17
- "footer": {
18
- "left": "{activity.durationIcon} {activity.durationVal} {activity.messagesIcon} {activity.messagesVal}",
19
- "right": "{metrics.lastResponse}"
20
- },
21
- "segments": {
22
- "git.headVal": {
23
- "items": ["{branch}", "{status}", "{ahead}", "{behind}"],
24
- "gap": 1
25
- }
26
- },
27
- "breakpoints": [
28
- {
29
- "minWidth": 55,
30
- "areas": [
31
- "git.icon git.headVal git.headVal git.headVal git.working",
32
- "---",
33
- "context.icon context.bar context.bar context.pct context.tokens",
34
- "block.icon block.bar block.bar block.value block.time",
35
- "weekly.icon weekly.bar weekly.bar weekly.pct weekly.time",
36
- "---",
37
- "session session session today today"
38
- ],
39
- "columns": ["auto", "1fr", "auto", "auto", "auto"],
40
- "align": ["left", "left", "right", "right", "right"]
41
- },
42
- {
43
- "minWidth": 0,
44
- "areas": [
45
- "git.head",
46
- "git.working",
47
- "---",
48
- "context",
49
- "block",
50
- "---",
51
- "session",
52
- "today"
53
- ],
54
- "columns": ["1fr"],
55
- "align": ["left"]
56
- }
57
- ]
58
- },
59
- "lines": [
60
- {
61
- "segments": {
62
- "directory": { "enabled": true, "style": "fish" },
63
- "git": { "enabled": true, "showAheadBehind": true },
64
- "model": { "enabled": true },
65
- "context": { "enabled": true, "autocompactBuffer": 0 },
66
- "block": { "enabled": true, "type": "tokens" },
67
- "session": { "enabled": true, "type": "tokens" },
68
- "today": { "enabled": true, "type": "cost" },
69
- "weekly": { "enabled": true },
70
- "metrics": {
71
- "enabled": true,
72
- "showLastResponseTime": true,
73
- "showResponseTime": false,
74
- "showDuration": true,
75
- "showMessageCount": true
76
- }
77
- }
78
- }
79
- ]
80
- },
81
- "budget": {
82
- "session": { "warningThreshold": 80 },
83
- "today": { "amount": "replace:TODAY_BUDGET", "warningThreshold": 80 }
84
- },
85
- "modelContextLimits": {
86
- "sonnet": 1000000,
87
- "opus": 200000
88
- }
89
- }
@@ -1,56 +0,0 @@
1
- {
2
- "theme": "replace:THEME",
3
- "display": {
4
- "style": "tui",
5
- "charset": "replace:CHARSET",
6
- "colorCompatibility": "auto",
7
- "autoWrap": true,
8
- "tui": {
9
- "fitContent": true,
10
- "minWidth": 45,
11
- "padding": { "horizontal": 1 },
12
- "separator": { "column": "" },
13
- "title": {
14
- "left": "{model}",
15
- "right": "{dir}"
16
- },
17
- "segments": {
18
- "git.headVal": {
19
- "items": ["{branch}", "{status}", "{ahead}", "{behind}"],
20
- "gap": 1
21
- }
22
- },
23
- "breakpoints": [
24
- {
25
- "minWidth": 0,
26
- "areas": [
27
- "git.icon git.headVal git.headVal git.headVal git.working",
28
- "---",
29
- "context.icon context.bar context.bar context.pct context.tokens",
30
- "block.icon block.bar block.bar block.value block.time"
31
- ],
32
- "columns": ["auto", "1fr", "auto", "auto", "auto"],
33
- "align": ["left", "left", "right", "right", "right"]
34
- }
35
- ]
36
- },
37
- "lines": [
38
- {
39
- "segments": {
40
- "directory": { "enabled": true, "showBasename": true },
41
- "git": { "enabled": true, "showAheadBehind": true },
42
- "model": { "enabled": true },
43
- "context": { "enabled": true, "autocompactBuffer": 0 },
44
- "block": { "enabled": true, "type": "tokens" }
45
- }
46
- }
47
- ]
48
- },
49
- "budget": {
50
- "session": { "warningThreshold": 80 }
51
- },
52
- "modelContextLimits": {
53
- "sonnet": 1000000,
54
- "opus": 200000
55
- }
56
- }
@@ -1,18 +0,0 @@
1
- {
2
- "theme": "replace:THEME",
3
- "display": {
4
- "style": "tui",
5
- "charset": "replace:CHARSET",
6
- "colorCompatibility": "auto",
7
- "autoWrap": true,
8
- "padding": 0
9
- },
10
- "budget": {
11
- "session": { "warningThreshold": 80 },
12
- "today": { "amount": "replace:TODAY_BUDGET", "warningThreshold": 80 }
13
- },
14
- "modelContextLimits": {
15
- "sonnet": 1000000,
16
- "opus": 200000
17
- }
18
- }