@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.
Files changed (54) hide show
  1. package/bin/CHANGELOG.md +97 -0
  2. package/bin/docs/cli.md +64 -3
  3. package/bin/docs/configuration.md +2 -0
  4. package/bin/docs/custom-provider.md +43 -4
  5. package/bin/docs/docs.json +8 -0
  6. package/bin/docs/extensions.md +55 -0
  7. package/bin/docs/keybindings.md +1 -1
  8. package/bin/docs/llama-cpp.md +13 -0
  9. package/bin/docs/mcp.md +188 -0
  10. package/bin/docs/models.md +35 -0
  11. package/bin/docs/packages.md +4 -2
  12. package/bin/docs/providers.md +1 -0
  13. package/bin/docs/rpc-commands.md +9 -3
  14. package/bin/docs/rpc.md +3 -1
  15. package/bin/docs/sdk.md +7 -2
  16. package/bin/docs/security.md +2 -0
  17. package/bin/docs/session-format.md +5 -1
  18. package/bin/docs/settings.md +20 -3
  19. package/bin/docs/themes.md +33 -7
  20. package/bin/docs/tui.md +18 -0
  21. package/bin/docs/virtual-models.md +114 -0
  22. package/bin/docs/windows.md +2 -0
  23. package/bin/examples/README.md +1 -1
  24. package/bin/examples/extensions/README.md +2 -0
  25. package/bin/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  26. package/bin/examples/extensions/custom-provider-anthropic/package.json +1 -1
  27. package/bin/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  28. package/bin/examples/extensions/custom-provider-gitlab-duo/test.ts +5 -5
  29. package/bin/examples/extensions/debug-provider.ts +90 -0
  30. package/bin/examples/extensions/gondolin/package-lock.json +2 -2
  31. package/bin/examples/extensions/gondolin/package.json +1 -1
  32. package/bin/examples/extensions/jev-router.ts +113 -0
  33. package/bin/examples/extensions/sandbox/package-lock.json +2 -2
  34. package/bin/examples/extensions/sandbox/package.json +1 -1
  35. package/bin/examples/extensions/with-deps/package-lock.json +2 -2
  36. package/bin/examples/extensions/with-deps/package.json +1 -1
  37. package/bin/examples/rpc-client.ts +1 -1
  38. package/bin/examples/rpc-extension-ui.ts +1 -1
  39. package/bin/examples/sdk/14-codemode-mcp.ts +61 -0
  40. package/bin/examples/sdk/README.md +2 -1
  41. package/bin/export-html/ansi-to-html.d.ts.map +1 -1
  42. package/bin/export-html/ansi-to-html.js.map +1 -1
  43. package/bin/export-html/index.d.ts.map +1 -1
  44. package/bin/export-html/index.js.map +1 -1
  45. package/bin/export-html/template.css +10 -0
  46. package/bin/export-html/template.js +66 -17
  47. package/bin/export-html/tool-renderer.d.ts.map +1 -1
  48. package/bin/export-html/tool-renderer.js.map +1 -1
  49. package/bin/package.json +14 -12
  50. package/bin/pi.exe +2 -2
  51. package/bin/theme/dark.json +59 -72
  52. package/bin/theme/light.json +57 -69
  53. package/bin/theme/theme-schema.json +7 -2
  54. package/package.json +1 -1
@@ -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
- "cyan": "#00d7ff",
6
- "blue": "#5f87ff",
7
- "green": "#b5bd68",
8
- "red": "#cc6666",
9
- "yellow": "#ffff00",
10
- "text": "#d4d4d4",
11
- "gray": "#808080",
12
- "dimGray": "#666666",
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": "accent",
24
- "border": "blue",
25
- "borderAccent": "cyan",
26
- "borderMuted": "darkGray",
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": "gray",
31
- "dim": "dimGray",
23
+ "muted": "muted",
24
+ "dim": "okhsl(229 8% 56%)",
32
25
  "text": "text",
33
- "thinkingText": "gray",
34
-
35
- "selectedBg": "selectedBg",
36
- "scrollbarTrack": "darkGray",
37
- "scrollbarThumb": "text",
38
- "searchMatchBg": "selectedBg",
39
- "searchMatchText": "text",
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": "customMsgBg",
43
- "customMessageText": "text",
44
- "customMessageLabel": "#9575cd",
45
- "toolPendingBg": "toolPendingBg",
46
- "toolSuccessBg": "toolSuccessBg",
47
- "toolErrorBg": "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": "gray",
50
-
51
- "mdHeading": "#f0c674",
52
- "mdLink": "#81a2be",
53
- "mdLinkUrl": "dimGray",
54
- "mdCode": "accent",
41
+ "toolOutput": "muted",
42
+ "mdHeading": "yellow",
43
+ "mdLink": "blue",
44
+ "mdLinkUrl": "muted",
45
+ "mdCode": "violet",
55
46
  "mdCodeBlock": "green",
56
- "mdCodeBlockBorder": "gray",
57
- "mdQuote": "gray",
58
- "mdQuoteBorder": "gray",
59
- "mdHr": "gray",
60
- "mdListBullet": "accent",
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": "gray",
65
-
66
- "syntaxComment": "#6A9955",
67
- "syntaxKeyword": "#569CD6",
68
- "syntaxFunction": "#DCDCAA",
69
- "syntaxVariable": "#9CDCFE",
70
- "syntaxString": "#CE9178",
71
- "syntaxNumber": "#B5CEA8",
72
- "syntaxType": "#4EC9B0",
73
- "syntaxOperator": "#D4D4D4",
74
- "syntaxPunctuation": "#D4D4D4",
75
-
76
- "thinkingOff": "darkGray",
77
- "thinkingMinimal": "#6e6e6e",
78
- "thinkingLow": "#5f87af",
79
- "thinkingMedium": "#81a2be",
80
- "thinkingHigh": "#b294bb",
81
- "thinkingXhigh": "#d183e8",
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": "#18181e",
88
- "cardBg": "#1e1e24",
89
- "infoBg": "#3c3728"
74
+ "pageBg": "okhsl(262 14% 16%)",
75
+ "cardBg": "okhsl(264 13% 19%)",
76
+ "infoBg": "okhsl(53 51% 24%)"
90
77
  }
91
78
  }
@@ -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
- "teal": "#5a8080",
6
- "blue": "#547da7",
7
- "green": "#588458",
8
- "red": "#aa5555",
9
- "yellow": "#9a7326",
10
- "text": "#1f2328",
11
- "mediumGray": "#6c6c6c",
12
- "dimGray": "#767676",
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": "teal",
23
- "border": "blue",
24
- "borderAccent": "teal",
25
- "borderMuted": "lightGray",
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": "mediumGray",
30
- "dim": "dimGray",
23
+ "muted": "muted",
24
+ "dim": "okhsl(229 7% 59%)",
31
25
  "text": "text",
32
- "thinkingText": "mediumGray",
33
-
34
- "selectedBg": "selectedBg",
35
- "scrollbarTrack": "lightGray",
36
- "scrollbarThumb": "text",
37
- "searchMatchBg": "selectedBg",
38
- "searchMatchText": "text",
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": "customMsgBg",
42
- "customMessageText": "text",
43
- "customMessageLabel": "#7e57c2",
44
- "toolPendingBg": "toolPendingBg",
45
- "toolSuccessBg": "toolSuccessBg",
46
- "toolErrorBg": "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": "mediumGray",
49
-
41
+ "toolOutput": "muted",
50
42
  "mdHeading": "yellow",
51
43
  "mdLink": "blue",
52
- "mdLinkUrl": "dimGray",
53
- "mdCode": "teal",
44
+ "mdLinkUrl": "muted",
45
+ "mdCode": "violet",
54
46
  "mdCodeBlock": "green",
55
- "mdCodeBlockBorder": "mediumGray",
56
- "mdQuote": "mediumGray",
57
- "mdQuoteBorder": "mediumGray",
58
- "mdHr": "mediumGray",
59
- "mdListBullet": "green",
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": "mediumGray",
64
-
65
- "syntaxComment": "#008000",
66
- "syntaxKeyword": "#0000FF",
67
- "syntaxFunction": "#795E26",
68
- "syntaxVariable": "#001080",
69
- "syntaxString": "#A31515",
70
- "syntaxNumber": "#098658",
71
- "syntaxType": "#267F99",
72
- "syntaxOperator": "#000000",
73
- "syntaxPunctuation": "#000000",
74
-
75
- "thinkingOff": "lightGray",
76
- "thinkingMinimal": "#767676",
77
- "thinkingLow": "blue",
78
- "thinkingMedium": "teal",
79
- "thinkingHigh": "#875f87",
80
- "thinkingXhigh": "#8b008b",
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": "#f8f8f8",
87
- "cardBg": "#ffffff",
88
- "infoBg": "#fffae6"
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kingingwang/pi-windows-arm64",
3
- "version": "0.87.1",
3
+ "version": "0.99.1",
4
4
  "description": "Pi standalone binary for windows-arm64 (fork distribution)",
5
5
  "license": "MIT",
6
6
  "os": [