@kingingwang/pi-windows-arm64 0.87.1 → 0.99.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.
- package/bin/CHANGELOG.md +97 -0
- package/bin/docs/cli.md +64 -3
- package/bin/docs/configuration.md +2 -0
- package/bin/docs/custom-provider.md +43 -4
- package/bin/docs/docs.json +8 -0
- package/bin/docs/extensions.md +55 -0
- package/bin/docs/keybindings.md +1 -1
- package/bin/docs/llama-cpp.md +13 -0
- package/bin/docs/mcp.md +188 -0
- package/bin/docs/models.md +35 -0
- package/bin/docs/packages.md +4 -2
- package/bin/docs/providers.md +1 -0
- package/bin/docs/rpc-commands.md +9 -3
- package/bin/docs/rpc.md +3 -1
- package/bin/docs/sdk.md +7 -2
- package/bin/docs/security.md +2 -0
- package/bin/docs/session-format.md +5 -1
- package/bin/docs/settings.md +20 -3
- package/bin/docs/themes.md +33 -7
- package/bin/docs/tui.md +18 -0
- package/bin/docs/virtual-models.md +114 -0
- package/bin/docs/windows.md +2 -0
- package/bin/examples/README.md +1 -1
- package/bin/examples/extensions/README.md +2 -0
- package/bin/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/bin/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/bin/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/bin/examples/extensions/custom-provider-gitlab-duo/test.ts +5 -5
- package/bin/examples/extensions/debug-provider.ts +90 -0
- package/bin/examples/extensions/gondolin/package-lock.json +2 -2
- package/bin/examples/extensions/gondolin/package.json +1 -1
- package/bin/examples/extensions/jev-router.ts +113 -0
- package/bin/examples/extensions/sandbox/package-lock.json +2 -2
- package/bin/examples/extensions/sandbox/package.json +1 -1
- package/bin/examples/extensions/with-deps/package-lock.json +2 -2
- package/bin/examples/extensions/with-deps/package.json +1 -1
- package/bin/examples/rpc-client.ts +1 -1
- package/bin/examples/rpc-extension-ui.ts +1 -1
- package/bin/examples/sdk/14-codemode-mcp.ts +61 -0
- package/bin/examples/sdk/README.md +2 -1
- package/bin/export-html/ansi-to-html.d.ts.map +1 -1
- package/bin/export-html/ansi-to-html.js.map +1 -1
- package/bin/export-html/index.d.ts.map +1 -1
- package/bin/export-html/index.js.map +1 -1
- package/bin/export-html/template.css +10 -0
- package/bin/export-html/template.js +66 -17
- package/bin/export-html/tool-renderer.d.ts.map +1 -1
- package/bin/export-html/tool-renderer.js.map +1 -1
- package/bin/package.json +14 -12
- package/bin/pi.exe +2 -2
- package/bin/theme/dark.json +59 -72
- package/bin/theme/light.json +57 -69
- package/bin/theme/theme-schema.json +7 -2
- package/package.json +1 -1
package/bin/theme/dark.json
CHANGED
|
@@ -1,91 +1,78 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/earendil-works/pi/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json",
|
|
3
3
|
"name": "dark",
|
|
4
|
+
"appearance": "dark",
|
|
4
5
|
"vars": {
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"darkGray": "#505050",
|
|
14
|
-
"accent": "#8abeb7",
|
|
15
|
-
"selectedBg": "#3a3a4a",
|
|
16
|
-
"userMsgBg": "#343541",
|
|
17
|
-
"toolPendingBg": "#282832",
|
|
18
|
-
"toolSuccessBg": "#283228",
|
|
19
|
-
"toolErrorBg": "#3c2828",
|
|
20
|
-
"customMsgBg": "#2d2838"
|
|
6
|
+
"text": "okhsl(234 3% 89%)",
|
|
7
|
+
"muted": "okhsl(229 6% 67%)",
|
|
8
|
+
"violet": "okhsl(295 50% 67%)",
|
|
9
|
+
"blue": "okhsl(232 54% 67%)",
|
|
10
|
+
"green": "okhsl(159 59% 67%)",
|
|
11
|
+
"red": "okhsl(20 72% 67%)",
|
|
12
|
+
"yellow": "okhsl(83 88% 67%)",
|
|
13
|
+
"blueBg": "okhsl(233 41% 24%)"
|
|
21
14
|
},
|
|
22
15
|
"colors": {
|
|
23
|
-
"accent": "
|
|
24
|
-
"border": "
|
|
25
|
-
"borderAccent": "
|
|
26
|
-
"borderMuted": "
|
|
16
|
+
"accent": "violet",
|
|
17
|
+
"border": "okhsl(231 57% 65%)",
|
|
18
|
+
"borderAccent": "okhsl(295 53% 64%)",
|
|
19
|
+
"borderMuted": "okhsl(229 8% 53%)",
|
|
27
20
|
"success": "green",
|
|
28
21
|
"error": "red",
|
|
29
22
|
"warning": "yellow",
|
|
30
|
-
"muted": "
|
|
31
|
-
"dim": "
|
|
23
|
+
"muted": "muted",
|
|
24
|
+
"dim": "okhsl(229 8% 56%)",
|
|
32
25
|
"text": "text",
|
|
33
|
-
"thinkingText": "
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"userMessageBg": "userMsgBg",
|
|
26
|
+
"thinkingText": "okhsl(226 7% 65%)",
|
|
27
|
+
"selectedBg": "blueBg",
|
|
28
|
+
"scrollbarTrack": "okhsl(237 7% 33%)",
|
|
29
|
+
"scrollbarThumb": "okhsl(232 7% 65%)",
|
|
30
|
+
"searchMatchBg": "okhsl(53 51% 24%)",
|
|
31
|
+
"searchMatchText": "muted",
|
|
32
|
+
"userMessageBg": "blueBg",
|
|
41
33
|
"userMessageText": "text",
|
|
42
|
-
"customMessageBg": "
|
|
43
|
-
"customMessageText": "
|
|
44
|
-
"customMessageLabel": "
|
|
45
|
-
"toolPendingBg": "
|
|
46
|
-
"toolSuccessBg": "
|
|
47
|
-
"toolErrorBg": "
|
|
34
|
+
"customMessageBg": "okhsl(295 42% 24%)",
|
|
35
|
+
"customMessageText": "muted",
|
|
36
|
+
"customMessageLabel": "violet",
|
|
37
|
+
"toolPendingBg": "okhsl(229 5% 24%)",
|
|
38
|
+
"toolSuccessBg": "okhsl(158 46% 25%)",
|
|
39
|
+
"toolErrorBg": "okhsl(19 54% 25%)",
|
|
48
40
|
"toolTitle": "text",
|
|
49
|
-
"toolOutput": "
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"mdCode": "accent",
|
|
41
|
+
"toolOutput": "muted",
|
|
42
|
+
"mdHeading": "yellow",
|
|
43
|
+
"mdLink": "blue",
|
|
44
|
+
"mdLinkUrl": "muted",
|
|
45
|
+
"mdCode": "violet",
|
|
55
46
|
"mdCodeBlock": "green",
|
|
56
|
-
"mdCodeBlockBorder": "
|
|
57
|
-
"mdQuote": "
|
|
58
|
-
"mdQuoteBorder": "
|
|
59
|
-
"mdHr": "
|
|
60
|
-
"mdListBullet": "
|
|
61
|
-
|
|
47
|
+
"mdCodeBlockBorder": "muted",
|
|
48
|
+
"mdQuote": "muted",
|
|
49
|
+
"mdQuoteBorder": "muted",
|
|
50
|
+
"mdHr": "muted",
|
|
51
|
+
"mdListBullet": "violet",
|
|
62
52
|
"toolDiffAdded": "green",
|
|
63
53
|
"toolDiffRemoved": "red",
|
|
64
|
-
"toolDiffContext": "
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"thinkingMax": "#ff5fff",
|
|
83
|
-
|
|
84
|
-
"bashMode": "green"
|
|
54
|
+
"toolDiffContext": "muted",
|
|
55
|
+
"syntaxComment": "muted",
|
|
56
|
+
"syntaxKeyword": "blue",
|
|
57
|
+
"syntaxFunction": "yellow",
|
|
58
|
+
"syntaxVariable": "okhsl(202 58% 67%)",
|
|
59
|
+
"syntaxString": "okhsl(52 67% 67%)",
|
|
60
|
+
"syntaxNumber": "green",
|
|
61
|
+
"syntaxType": "violet",
|
|
62
|
+
"syntaxOperator": "muted",
|
|
63
|
+
"syntaxPunctuation": "muted",
|
|
64
|
+
"thinkingOff": "okhsl(229 8% 49%)",
|
|
65
|
+
"thinkingMinimal": "okhsl(232 20% 52%)",
|
|
66
|
+
"thinkingLow": "okhsl(232 45% 54%)",
|
|
67
|
+
"thinkingMedium": "okhsl(263 59% 56%)",
|
|
68
|
+
"thinkingHigh": "okhsl(295 73% 59%)",
|
|
69
|
+
"thinkingXhigh": "okhsl(337 81% 61%)",
|
|
70
|
+
"thinkingMax": "okhsl(20 99% 63%)",
|
|
71
|
+
"bashMode": "okhsl(159 64% 65%)"
|
|
85
72
|
},
|
|
86
73
|
"export": {
|
|
87
|
-
"pageBg": "
|
|
88
|
-
"cardBg": "
|
|
89
|
-
"infoBg": "
|
|
74
|
+
"pageBg": "okhsl(262 14% 16%)",
|
|
75
|
+
"cardBg": "okhsl(264 13% 19%)",
|
|
76
|
+
"infoBg": "okhsl(53 51% 24%)"
|
|
90
77
|
}
|
|
91
78
|
}
|
package/bin/theme/light.json
CHANGED
|
@@ -1,90 +1,78 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/earendil-works/pi/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json",
|
|
3
3
|
"name": "light",
|
|
4
|
+
"appearance": "light",
|
|
4
5
|
"vars": {
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"lightGray": "#b0b0b0",
|
|
14
|
-
"selectedBg": "#d0d0e0",
|
|
15
|
-
"userMsgBg": "#e8e8e8",
|
|
16
|
-
"toolPendingBg": "#e8e8f0",
|
|
17
|
-
"toolSuccessBg": "#e8f0e8",
|
|
18
|
-
"toolErrorBg": "#f0e8e8",
|
|
19
|
-
"customMsgBg": "#ede7f6"
|
|
6
|
+
"text": "okhsl(225 5% 27%)",
|
|
7
|
+
"muted": "okhsl(229 8% 47%)",
|
|
8
|
+
"violet": "okhsl(295 60% 46%)",
|
|
9
|
+
"blue": "okhsl(231 68% 47%)",
|
|
10
|
+
"green": "okhsl(159 75% 46%)",
|
|
11
|
+
"red": "okhsl(20 91% 47%)",
|
|
12
|
+
"yellow": "okhsl(83 99% 47%)",
|
|
13
|
+
"blueBg": "okhsl(235 19% 91%)"
|
|
20
14
|
},
|
|
21
15
|
"colors": {
|
|
22
|
-
"accent": "
|
|
23
|
-
"border": "
|
|
24
|
-
"borderAccent": "
|
|
25
|
-
"borderMuted": "
|
|
16
|
+
"accent": "violet",
|
|
17
|
+
"border": "okhsl(231 67% 55%)",
|
|
18
|
+
"borderAccent": "okhsl(295 59% 55%)",
|
|
19
|
+
"borderMuted": "okhsl(235 7% 66%)",
|
|
26
20
|
"success": "green",
|
|
27
21
|
"error": "red",
|
|
28
22
|
"warning": "yellow",
|
|
29
|
-
"muted": "
|
|
30
|
-
"dim": "
|
|
23
|
+
"muted": "muted",
|
|
24
|
+
"dim": "okhsl(229 7% 59%)",
|
|
31
25
|
"text": "text",
|
|
32
|
-
"thinkingText": "
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"userMessageBg": "userMsgBg",
|
|
26
|
+
"thinkingText": "okhsl(234 8% 55%)",
|
|
27
|
+
"selectedBg": "blueBg",
|
|
28
|
+
"scrollbarTrack": "okhsl(248 3% 90%)",
|
|
29
|
+
"scrollbarThumb": "okhsl(226 7% 65%)",
|
|
30
|
+
"searchMatchBg": "okhsl(56 22% 91%)",
|
|
31
|
+
"searchMatchText": "muted",
|
|
32
|
+
"userMessageBg": "blueBg",
|
|
40
33
|
"userMessageText": "text",
|
|
41
|
-
"customMessageBg": "
|
|
42
|
-
"customMessageText": "
|
|
43
|
-
"customMessageLabel": "
|
|
44
|
-
"toolPendingBg": "
|
|
45
|
-
"toolSuccessBg": "
|
|
46
|
-
"toolErrorBg": "
|
|
34
|
+
"customMessageBg": "okhsl(295 25% 91%)",
|
|
35
|
+
"customMessageText": "muted",
|
|
36
|
+
"customMessageLabel": "violet",
|
|
37
|
+
"toolPendingBg": "okhsl(248 3% 91%)",
|
|
38
|
+
"toolSuccessBg": "okhsl(156 21% 91%)",
|
|
39
|
+
"toolErrorBg": "okhsl(24 23% 91%)",
|
|
47
40
|
"toolTitle": "text",
|
|
48
|
-
"toolOutput": "
|
|
49
|
-
|
|
41
|
+
"toolOutput": "muted",
|
|
50
42
|
"mdHeading": "yellow",
|
|
51
43
|
"mdLink": "blue",
|
|
52
|
-
"mdLinkUrl": "
|
|
53
|
-
"mdCode": "
|
|
44
|
+
"mdLinkUrl": "muted",
|
|
45
|
+
"mdCode": "violet",
|
|
54
46
|
"mdCodeBlock": "green",
|
|
55
|
-
"mdCodeBlockBorder": "
|
|
56
|
-
"mdQuote": "
|
|
57
|
-
"mdQuoteBorder": "
|
|
58
|
-
"mdHr": "
|
|
59
|
-
"mdListBullet": "
|
|
60
|
-
|
|
47
|
+
"mdCodeBlockBorder": "muted",
|
|
48
|
+
"mdQuote": "muted",
|
|
49
|
+
"mdQuoteBorder": "muted",
|
|
50
|
+
"mdHr": "muted",
|
|
51
|
+
"mdListBullet": "violet",
|
|
61
52
|
"toolDiffAdded": "green",
|
|
62
53
|
"toolDiffRemoved": "red",
|
|
63
|
-
"toolDiffContext": "
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"thinkingMax": "#af005f",
|
|
82
|
-
|
|
83
|
-
"bashMode": "green"
|
|
54
|
+
"toolDiffContext": "muted",
|
|
55
|
+
"syntaxComment": "muted",
|
|
56
|
+
"syntaxKeyword": "blue",
|
|
57
|
+
"syntaxFunction": "yellow",
|
|
58
|
+
"syntaxVariable": "okhsl(203 73% 46%)",
|
|
59
|
+
"syntaxString": "okhsl(52 84% 46%)",
|
|
60
|
+
"syntaxNumber": "green",
|
|
61
|
+
"syntaxType": "violet",
|
|
62
|
+
"syntaxOperator": "muted",
|
|
63
|
+
"syntaxPunctuation": "muted",
|
|
64
|
+
"thinkingOff": "okhsl(223 5% 80%)",
|
|
65
|
+
"thinkingMinimal": "okhsl(229 14% 78%)",
|
|
66
|
+
"thinkingLow": "okhsl(232 33% 76%)",
|
|
67
|
+
"thinkingMedium": "okhsl(264 48% 74%)",
|
|
68
|
+
"thinkingHigh": "okhsl(295 62% 72%)",
|
|
69
|
+
"thinkingXhigh": "okhsl(337 74% 70%)",
|
|
70
|
+
"thinkingMax": "okhsl(20 98% 68%)",
|
|
71
|
+
"bashMode": "okhsl(159 74% 55%)"
|
|
84
72
|
},
|
|
85
73
|
"export": {
|
|
86
|
-
"pageBg": "
|
|
87
|
-
"cardBg": "
|
|
88
|
-
"infoBg": "
|
|
74
|
+
"pageBg": "okhsl(17 3% 94%)",
|
|
75
|
+
"cardBg": "okhsl(17 5% 97%)",
|
|
76
|
+
"infoBg": "okhsl(56 22% 91%)"
|
|
89
77
|
}
|
|
90
78
|
}
|
|
@@ -14,6 +14,11 @@
|
|
|
14
14
|
"pattern": "^[^/]+$",
|
|
15
15
|
"description": "Theme name. Must not contain '/' because it is reserved for automatic light/dark theme settings."
|
|
16
16
|
},
|
|
17
|
+
"appearance": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": ["dark", "light"],
|
|
20
|
+
"description": "Background the theme is designed for. Detected from the theme colors when omitted."
|
|
21
|
+
},
|
|
17
22
|
"vars": {
|
|
18
23
|
"type": "object",
|
|
19
24
|
"description": "Reusable color variables",
|
|
@@ -21,7 +26,7 @@
|
|
|
21
26
|
"oneOf": [
|
|
22
27
|
{
|
|
23
28
|
"type": "string",
|
|
24
|
-
"description": "Hex color (#RRGGBB), variable reference, or empty string for terminal default"
|
|
29
|
+
"description": "Hex color (#RGB or #RRGGBB), OKLCH or OKHSL color, variable reference, or empty string for terminal default"
|
|
25
30
|
},
|
|
26
31
|
{
|
|
27
32
|
"type": "integer",
|
|
@@ -342,7 +347,7 @@
|
|
|
342
347
|
"oneOf": [
|
|
343
348
|
{
|
|
344
349
|
"type": "string",
|
|
345
|
-
"description": "Hex color (#RRGGBB), variable reference, or empty string for terminal default"
|
|
350
|
+
"description": "Hex color (#RGB or #RRGGBB), OKLCH or OKHSL color, variable reference, or empty string for terminal default"
|
|
346
351
|
},
|
|
347
352
|
{
|
|
348
353
|
"type": "integer",
|