@aeondave/pi-theme-1337 0.5.1 → 0.6.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/src/width.ts CHANGED
@@ -222,7 +222,7 @@ export function isImageProtocolLine(line: string): boolean {
222
222
  }
223
223
 
224
224
  /** Clip text rows to `width` without an ellipsis; image-protocol rows pass through untouched. */
225
- export function clipTextRows(lines: string[], width: number): string[] {
225
+ export function clipTextRows(lines: readonly string[], width: number): string[] {
226
226
  return lines.map(line => isImageProtocolLine(line) ? line : truncateToWidth(line, width, ""));
227
227
  }
228
228
 
@@ -1,94 +1,94 @@
1
- {
2
- "$schema": "https://pi.dev/schemas/theme.schema.json",
3
- "name": "1337-amber",
4
- "vars": {
5
- "void": "#171009",
6
- "panel": "#281d11",
7
- "selected": "#3b2d19",
8
- "line": "#3c3125",
9
- "body": "#ffbd68",
10
- "accent": "#ffdda0",
11
- "success": "#a6df62",
12
- "error": "#ff765e",
13
- "warning": "#ffeb3b",
14
- "halo": "#fff0c5",
15
- "quiet": "#e8a94f",
16
- "dim": "#d99445",
17
- "userBg": "#281d11",
18
- "okBg": "#1b2414",
19
- "errBg": "#2a1715",
20
- "diff": "#ffbd68",
21
- "syn1": "#83cf56",
22
- "syn2": "#e3a446",
23
- "syn3": "#ffbd68",
24
- "syn4": "#ffdda0",
25
- "syn5": "#d99445",
26
- "syn6": "#d99445",
27
- "syn7": "#b97732",
28
- "think1": "#ffbd68",
29
- "think2": "#ffc777",
30
- "think3": "#ffd184",
31
- "think4": "#ffdda0",
32
- "think5": "#ffe9b8",
33
- "think6": "#fff0c5"
34
- },
35
- "colors": {
36
- "accent": "accent",
37
- "border": "line",
38
- "borderAccent": "halo",
39
- "borderMuted": "line",
40
- "success": "success",
41
- "error": "error",
42
- "warning": "warning",
43
- "muted": "quiet",
44
- "dim": "dim",
45
- "text": "body",
46
- "thinkingText": "quiet",
47
- "selectedBg": "selected",
48
- "userMessageBg": "panel",
49
- "userMessageText": "halo",
50
- "customMessageBg": "userBg",
51
- "customMessageText": "body",
52
- "customMessageLabel": "accent",
53
- "toolPendingBg": "panel",
54
- "toolSuccessBg": "okBg",
55
- "toolErrorBg": "errBg",
56
- "toolTitle": "halo",
57
- "toolOutput": "body",
58
- "mdHeading": "halo",
59
- "mdLink": "accent",
60
- "mdLinkUrl": "quiet",
61
- "mdCode": "syn1",
62
- "mdCodeBlock": "body",
63
- "mdCodeBlockBorder": "quiet",
64
- "mdQuote": "quiet",
65
- "mdQuoteBorder": "dim",
66
- "mdHr": "quiet",
67
- "mdListBullet": "accent",
68
- "toolDiffAdded": "success",
69
- "toolDiffRemoved": "error",
70
- "toolDiffContext": "diff",
71
- "syntaxComment": "dim",
72
- "syntaxKeyword": "accent",
73
- "syntaxFunction": "halo",
74
- "syntaxVariable": "body",
75
- "syntaxString": "syn1",
76
- "syntaxNumber": "warning",
77
- "syntaxType": "syn2",
78
- "syntaxOperator": "syn3",
79
- "syntaxPunctuation": "syn4",
80
- "thinkingOff": "think1",
81
- "thinkingMinimal": "think2",
82
- "thinkingLow": "think3",
83
- "thinkingMedium": "think4",
84
- "thinkingHigh": "think5",
85
- "thinkingXhigh": "think6",
86
- "bashMode": "warning"
87
- },
88
- "export": {
89
- "pageBg": "#171009",
90
- "cardBg": "#281d11",
91
- "infoBg": "#3b2d19"
92
- },
93
- "appearance": "dark"
94
- }
1
+ {
2
+ "$schema": "https://pi.dev/schemas/theme.schema.json",
3
+ "name": "1337-amber",
4
+ "vars": {
5
+ "void": "#171009",
6
+ "panel": "#281d11",
7
+ "selected": "#3b2d19",
8
+ "line": "#3c3125",
9
+ "body": "#ffbd68",
10
+ "accent": "#ffdda0",
11
+ "success": "#a6df62",
12
+ "error": "#ff765e",
13
+ "warning": "#ffeb3b",
14
+ "halo": "#fff0c5",
15
+ "quiet": "#e8a94f",
16
+ "dim": "#d99445",
17
+ "userBg": "#281d11",
18
+ "okBg": "#1b2414",
19
+ "errBg": "#2a1715",
20
+ "diff": "#ffbd68",
21
+ "syn1": "#83cf56",
22
+ "syn2": "#e3a446",
23
+ "syn3": "#ffbd68",
24
+ "syn4": "#ffdda0",
25
+ "syn5": "#d99445",
26
+ "syn6": "#d99445",
27
+ "syn7": "#b97732",
28
+ "think1": "#ffbd68",
29
+ "think2": "#ffc777",
30
+ "think3": "#ffd184",
31
+ "think4": "#ffdda0",
32
+ "think5": "#ffe9b8",
33
+ "think6": "#fff0c5"
34
+ },
35
+ "colors": {
36
+ "accent": "accent",
37
+ "border": "line",
38
+ "borderAccent": "halo",
39
+ "borderMuted": "line",
40
+ "success": "success",
41
+ "error": "error",
42
+ "warning": "warning",
43
+ "muted": "quiet",
44
+ "dim": "dim",
45
+ "text": "body",
46
+ "thinkingText": "quiet",
47
+ "selectedBg": "selected",
48
+ "userMessageBg": "panel",
49
+ "userMessageText": "halo",
50
+ "customMessageBg": "userBg",
51
+ "customMessageText": "body",
52
+ "customMessageLabel": "accent",
53
+ "toolPendingBg": "panel",
54
+ "toolSuccessBg": "okBg",
55
+ "toolErrorBg": "errBg",
56
+ "toolTitle": "halo",
57
+ "toolOutput": "body",
58
+ "mdHeading": "halo",
59
+ "mdLink": "accent",
60
+ "mdLinkUrl": "quiet",
61
+ "mdCode": "syn1",
62
+ "mdCodeBlock": "body",
63
+ "mdCodeBlockBorder": "quiet",
64
+ "mdQuote": "quiet",
65
+ "mdQuoteBorder": "dim",
66
+ "mdHr": "quiet",
67
+ "mdListBullet": "accent",
68
+ "toolDiffAdded": "success",
69
+ "toolDiffRemoved": "error",
70
+ "toolDiffContext": "diff",
71
+ "syntaxComment": "dim",
72
+ "syntaxKeyword": "accent",
73
+ "syntaxFunction": "halo",
74
+ "syntaxVariable": "body",
75
+ "syntaxString": "syn1",
76
+ "syntaxNumber": "warning",
77
+ "syntaxType": "syn2",
78
+ "syntaxOperator": "syn3",
79
+ "syntaxPunctuation": "syn4",
80
+ "thinkingOff": "think1",
81
+ "thinkingMinimal": "think2",
82
+ "thinkingLow": "think3",
83
+ "thinkingMedium": "think4",
84
+ "thinkingHigh": "think5",
85
+ "thinkingXhigh": "think6",
86
+ "bashMode": "warning"
87
+ },
88
+ "export": {
89
+ "pageBg": "#171009",
90
+ "cardBg": "#281d11",
91
+ "infoBg": "#3b2d19"
92
+ },
93
+ "appearance": "dark"
94
+ }
@@ -1,94 +1,94 @@
1
- {
2
- "$schema": "https://pi.dev/schemas/theme.schema.json",
3
- "name": "1337-fallout",
4
- "vars": {
5
- "void": "#111608",
6
- "panel": "#202a12",
7
- "selected": "#303d1d",
8
- "line": "#323924",
9
- "body": "#c8f96c",
10
- "accent": "#e7ff72",
11
- "success": "#90d83e",
12
- "error": "#ff9a4d",
13
- "warning": "#ffdc35",
14
- "halo": "#f2ffd0",
15
- "quiet": "#9cd845",
16
- "dim": "#75b52d",
17
- "userBg": "#202a12",
18
- "okBg": "#1d2411",
19
- "errBg": "#2b1b10",
20
- "diff": "#c8f96c",
21
- "syn1": "#a3e83c",
22
- "syn2": "#c8f96c",
23
- "syn3": "#d8ff88",
24
- "syn4": "#ffe36d",
25
- "syn5": "#b1ed55",
26
- "syn6": "#d8ff88",
27
- "syn7": "#9cdb43",
28
- "think1": "#c8f96c",
29
- "think2": "#d1ff76",
30
- "think3": "#d8ff91",
31
- "think4": "#e0ffab",
32
- "think5": "#e9ffc1",
33
- "think6": "#f2ffd0"
34
- },
35
- "colors": {
36
- "accent": "accent",
37
- "border": "line",
38
- "borderAccent": "halo",
39
- "borderMuted": "line",
40
- "success": "success",
41
- "error": "error",
42
- "warning": "warning",
43
- "muted": "quiet",
44
- "dim": "dim",
45
- "text": "body",
46
- "thinkingText": "quiet",
47
- "selectedBg": "selected",
48
- "userMessageBg": "panel",
49
- "userMessageText": "halo",
50
- "customMessageBg": "userBg",
51
- "customMessageText": "body",
52
- "customMessageLabel": "accent",
53
- "toolPendingBg": "panel",
54
- "toolSuccessBg": "okBg",
55
- "toolErrorBg": "errBg",
56
- "toolTitle": "halo",
57
- "toolOutput": "body",
58
- "mdHeading": "halo",
59
- "mdLink": "accent",
60
- "mdLinkUrl": "quiet",
61
- "mdCode": "syn1",
62
- "mdCodeBlock": "body",
63
- "mdCodeBlockBorder": "quiet",
64
- "mdQuote": "quiet",
65
- "mdQuoteBorder": "dim",
66
- "mdHr": "quiet",
67
- "mdListBullet": "accent",
68
- "toolDiffAdded": "success",
69
- "toolDiffRemoved": "error",
70
- "toolDiffContext": "diff",
71
- "syntaxComment": "dim",
72
- "syntaxKeyword": "syn1",
73
- "syntaxFunction": "accent",
74
- "syntaxVariable": "body",
75
- "syntaxString": "syn2",
76
- "syntaxNumber": "warning",
77
- "syntaxType": "syn3",
78
- "syntaxOperator": "syn3",
79
- "syntaxPunctuation": "syn4",
80
- "thinkingOff": "think1",
81
- "thinkingMinimal": "think2",
82
- "thinkingLow": "think3",
83
- "thinkingMedium": "think4",
84
- "thinkingHigh": "think5",
85
- "thinkingXhigh": "think6",
86
- "bashMode": "warning"
87
- },
88
- "export": {
89
- "pageBg": "#111608",
90
- "cardBg": "#202a12",
91
- "infoBg": "#303d1d"
92
- },
93
- "appearance": "dark"
94
- }
1
+ {
2
+ "$schema": "https://pi.dev/schemas/theme.schema.json",
3
+ "name": "1337-fallout",
4
+ "vars": {
5
+ "void": "#111608",
6
+ "panel": "#202a12",
7
+ "selected": "#303d1d",
8
+ "line": "#323924",
9
+ "body": "#c8f96c",
10
+ "accent": "#e7ff72",
11
+ "success": "#90d83e",
12
+ "error": "#ff9a4d",
13
+ "warning": "#ffdc35",
14
+ "halo": "#f2ffd0",
15
+ "quiet": "#9cd845",
16
+ "dim": "#75b52d",
17
+ "userBg": "#202a12",
18
+ "okBg": "#1d2411",
19
+ "errBg": "#2b1b10",
20
+ "diff": "#c8f96c",
21
+ "syn1": "#a3e83c",
22
+ "syn2": "#c8f96c",
23
+ "syn3": "#d8ff88",
24
+ "syn4": "#ffe36d",
25
+ "syn5": "#b1ed55",
26
+ "syn6": "#d8ff88",
27
+ "syn7": "#9cdb43",
28
+ "think1": "#c8f96c",
29
+ "think2": "#d1ff76",
30
+ "think3": "#d8ff91",
31
+ "think4": "#e0ffab",
32
+ "think5": "#e9ffc1",
33
+ "think6": "#f2ffd0"
34
+ },
35
+ "colors": {
36
+ "accent": "accent",
37
+ "border": "line",
38
+ "borderAccent": "halo",
39
+ "borderMuted": "line",
40
+ "success": "success",
41
+ "error": "error",
42
+ "warning": "warning",
43
+ "muted": "quiet",
44
+ "dim": "dim",
45
+ "text": "body",
46
+ "thinkingText": "quiet",
47
+ "selectedBg": "selected",
48
+ "userMessageBg": "panel",
49
+ "userMessageText": "halo",
50
+ "customMessageBg": "userBg",
51
+ "customMessageText": "body",
52
+ "customMessageLabel": "accent",
53
+ "toolPendingBg": "panel",
54
+ "toolSuccessBg": "okBg",
55
+ "toolErrorBg": "errBg",
56
+ "toolTitle": "halo",
57
+ "toolOutput": "body",
58
+ "mdHeading": "halo",
59
+ "mdLink": "accent",
60
+ "mdLinkUrl": "quiet",
61
+ "mdCode": "syn1",
62
+ "mdCodeBlock": "body",
63
+ "mdCodeBlockBorder": "quiet",
64
+ "mdQuote": "quiet",
65
+ "mdQuoteBorder": "dim",
66
+ "mdHr": "quiet",
67
+ "mdListBullet": "accent",
68
+ "toolDiffAdded": "success",
69
+ "toolDiffRemoved": "error",
70
+ "toolDiffContext": "diff",
71
+ "syntaxComment": "dim",
72
+ "syntaxKeyword": "syn1",
73
+ "syntaxFunction": "accent",
74
+ "syntaxVariable": "body",
75
+ "syntaxString": "syn2",
76
+ "syntaxNumber": "warning",
77
+ "syntaxType": "syn3",
78
+ "syntaxOperator": "syn3",
79
+ "syntaxPunctuation": "syn4",
80
+ "thinkingOff": "think1",
81
+ "thinkingMinimal": "think2",
82
+ "thinkingLow": "think3",
83
+ "thinkingMedium": "think4",
84
+ "thinkingHigh": "think5",
85
+ "thinkingXhigh": "think6",
86
+ "bashMode": "warning"
87
+ },
88
+ "export": {
89
+ "pageBg": "#111608",
90
+ "cardBg": "#202a12",
91
+ "infoBg": "#303d1d"
92
+ },
93
+ "appearance": "dark"
94
+ }
@@ -1,94 +1,94 @@
1
- {
2
- "$schema": "https://pi.dev/schemas/theme.schema.json",
3
- "name": "1337-ice",
4
- "vars": {
5
- "void": "#0b151d",
6
- "panel": "#142630",
7
- "selected": "#263b47",
8
- "line": "#2e3941",
9
- "body": "#9de4ff",
10
- "accent": "#aff5ff",
11
- "success": "#71e8c0",
12
- "error": "#ff8c9c",
13
- "warning": "#ffe36d",
14
- "halo": "#d8f8ff",
15
- "quiet": "#83d8f4",
16
- "dim": "#5bb7e3",
17
- "userBg": "#142630",
18
- "okBg": "#12221e",
19
- "errBg": "#291a1c",
20
- "diff": "#9de4ff",
21
- "syn1": "#55b8e8",
22
- "syn2": "#7bd4f5",
23
- "syn3": "#9de4ff",
24
- "syn4": "#5fe0d5",
25
- "syn5": "#72c9eb",
26
- "syn6": "#aff5ff",
27
- "syn7": "#4ba8d5",
28
- "think1": "#9de4ff",
29
- "think2": "#a6eaff",
30
- "think3": "#aff5ff",
31
- "think4": "#bdf7ff",
32
- "think5": "#cbf9ff",
33
- "think6": "#d8fcff"
34
- },
35
- "colors": {
36
- "accent": "accent",
37
- "border": "line",
38
- "borderAccent": "halo",
39
- "borderMuted": "line",
40
- "success": "success",
41
- "error": "error",
42
- "warning": "warning",
43
- "muted": "quiet",
44
- "dim": "dim",
45
- "text": "body",
46
- "thinkingText": "quiet",
47
- "selectedBg": "selected",
48
- "userMessageBg": "panel",
49
- "userMessageText": "halo",
50
- "customMessageBg": "userBg",
51
- "customMessageText": "body",
52
- "customMessageLabel": "accent",
53
- "toolPendingBg": "panel",
54
- "toolSuccessBg": "okBg",
55
- "toolErrorBg": "errBg",
56
- "toolTitle": "halo",
57
- "toolOutput": "body",
58
- "mdHeading": "halo",
59
- "mdLink": "accent",
60
- "mdLinkUrl": "quiet",
61
- "mdCode": "syn1",
62
- "mdCodeBlock": "body",
63
- "mdCodeBlockBorder": "quiet",
64
- "mdQuote": "quiet",
65
- "mdQuoteBorder": "dim",
66
- "mdHr": "quiet",
67
- "mdListBullet": "accent",
68
- "toolDiffAdded": "success",
69
- "toolDiffRemoved": "error",
70
- "toolDiffContext": "diff",
71
- "syntaxComment": "dim",
72
- "syntaxKeyword": "accent",
73
- "syntaxFunction": "halo",
74
- "syntaxVariable": "body",
75
- "syntaxString": "syn1",
76
- "syntaxNumber": "warning",
77
- "syntaxType": "syn2",
78
- "syntaxOperator": "syn3",
79
- "syntaxPunctuation": "syn4",
80
- "thinkingOff": "think1",
81
- "thinkingMinimal": "think2",
82
- "thinkingLow": "think3",
83
- "thinkingMedium": "think4",
84
- "thinkingHigh": "think5",
85
- "thinkingXhigh": "think6",
86
- "bashMode": "warning"
87
- },
88
- "export": {
89
- "pageBg": "#0b151d",
90
- "cardBg": "#142630",
91
- "infoBg": "#263b47"
92
- },
93
- "appearance": "dark"
94
- }
1
+ {
2
+ "$schema": "https://pi.dev/schemas/theme.schema.json",
3
+ "name": "1337-ice",
4
+ "vars": {
5
+ "void": "#0b151d",
6
+ "panel": "#142630",
7
+ "selected": "#263b47",
8
+ "line": "#2e3941",
9
+ "body": "#9de4ff",
10
+ "accent": "#aff5ff",
11
+ "success": "#71e8c0",
12
+ "error": "#ff8c9c",
13
+ "warning": "#ffe36d",
14
+ "halo": "#d8f8ff",
15
+ "quiet": "#83d8f4",
16
+ "dim": "#5bb7e3",
17
+ "userBg": "#142630",
18
+ "okBg": "#12221e",
19
+ "errBg": "#291a1c",
20
+ "diff": "#9de4ff",
21
+ "syn1": "#55b8e8",
22
+ "syn2": "#7bd4f5",
23
+ "syn3": "#9de4ff",
24
+ "syn4": "#5fe0d5",
25
+ "syn5": "#72c9eb",
26
+ "syn6": "#aff5ff",
27
+ "syn7": "#4ba8d5",
28
+ "think1": "#9de4ff",
29
+ "think2": "#a6eaff",
30
+ "think3": "#aff5ff",
31
+ "think4": "#bdf7ff",
32
+ "think5": "#cbf9ff",
33
+ "think6": "#d8fcff"
34
+ },
35
+ "colors": {
36
+ "accent": "accent",
37
+ "border": "line",
38
+ "borderAccent": "halo",
39
+ "borderMuted": "line",
40
+ "success": "success",
41
+ "error": "error",
42
+ "warning": "warning",
43
+ "muted": "quiet",
44
+ "dim": "dim",
45
+ "text": "body",
46
+ "thinkingText": "quiet",
47
+ "selectedBg": "selected",
48
+ "userMessageBg": "panel",
49
+ "userMessageText": "halo",
50
+ "customMessageBg": "userBg",
51
+ "customMessageText": "body",
52
+ "customMessageLabel": "accent",
53
+ "toolPendingBg": "panel",
54
+ "toolSuccessBg": "okBg",
55
+ "toolErrorBg": "errBg",
56
+ "toolTitle": "halo",
57
+ "toolOutput": "body",
58
+ "mdHeading": "halo",
59
+ "mdLink": "accent",
60
+ "mdLinkUrl": "quiet",
61
+ "mdCode": "syn1",
62
+ "mdCodeBlock": "body",
63
+ "mdCodeBlockBorder": "quiet",
64
+ "mdQuote": "quiet",
65
+ "mdQuoteBorder": "dim",
66
+ "mdHr": "quiet",
67
+ "mdListBullet": "accent",
68
+ "toolDiffAdded": "success",
69
+ "toolDiffRemoved": "error",
70
+ "toolDiffContext": "diff",
71
+ "syntaxComment": "dim",
72
+ "syntaxKeyword": "accent",
73
+ "syntaxFunction": "halo",
74
+ "syntaxVariable": "body",
75
+ "syntaxString": "syn1",
76
+ "syntaxNumber": "warning",
77
+ "syntaxType": "syn2",
78
+ "syntaxOperator": "syn3",
79
+ "syntaxPunctuation": "syn4",
80
+ "thinkingOff": "think1",
81
+ "thinkingMinimal": "think2",
82
+ "thinkingLow": "think3",
83
+ "thinkingMedium": "think4",
84
+ "thinkingHigh": "think5",
85
+ "thinkingXhigh": "think6",
86
+ "bashMode": "warning"
87
+ },
88
+ "export": {
89
+ "pageBg": "#0b151d",
90
+ "cardBg": "#142630",
91
+ "infoBg": "#263b47"
92
+ },
93
+ "appearance": "dark"
94
+ }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "background": "on",
3
- "spinner": { "frames": [[" ▲ ", "△ △"], [" △ ", "▲ △"], [" △ ", "△ ▲"]], "intervalMs": 180, "color": "#d51f2a" }
3
+ "spinner": { "frames": [[" ▲ ", "△ △"], [" △ ", "▲ △"], [" △ ", "△ ▲"]], "intervalMs": 180, "color": "#ff5f6b" }
4
4
  }