pi-crew 0.6.4 → 0.7.2
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/CHANGELOG.md +62 -0
- package/README.md +68 -0
- package/package.json +2 -1
- package/src/errors.ts +20 -2
- package/src/extension/knowledge-injection.ts +71 -0
- package/src/extension/pi-api.ts +47 -0
- package/src/extension/register.ts +19 -6
- package/src/extension/registration/commands.ts +40 -1
- package/src/extension/registration/compaction-guard.ts +154 -14
- package/src/extension/team-tool/handle-settings.ts +57 -0
- package/src/extension/team-tool/inspect.ts +4 -1
- package/src/extension/team-tool/plan.ts +8 -1
- package/src/runtime/intercom-bridge.ts +5 -1
- package/src/runtime/replace.ts +555 -0
- package/src/runtime/resilient-edit.ts +166 -0
- package/src/runtime/single-agent-compose.ts +87 -0
- package/src/runtime/task-runner/prompt-builder.ts +6 -0
- package/src/runtime/team-runner.ts +24 -7
- package/src/schema/team-tool-schema.ts +6 -0
- package/src/state/usage.ts +73 -0
- package/src/ui/card-colors.ts +126 -0
- package/src/ui/deploy-bundled-themes.ts +71 -0
- package/src/ui/render-diff.ts +37 -3
- package/src/ui/settings-overlay.ts +70 -7
- package/src/ui/syntax-highlight.ts +42 -23
- package/src/ui/theme-discovery.ts +188 -0
- package/src/ui/tool-renderers/index.ts +27 -14
- package/themes/crew-catppuccin-latte.json +96 -0
- package/themes/crew-catppuccin-mocha.json +93 -0
- package/themes/crew-dark.json +90 -0
- package/themes/crew-dracula.json +83 -0
- package/themes/crew-gruvbox-dark.json +83 -0
- package/themes/crew-gruvbox-light.json +90 -0
- package/themes/crew-nord.json +85 -0
- package/themes/crew-one-dark.json +89 -0
- package/themes/crew-solarized-dark.json +90 -0
- package/themes/crew-solarized-light.json +92 -0
- package/themes/crew-tokyo-night.json +85 -0
- package/src/extension/registration/brief-tool-overrides.ts +0 -400
- package/src/runtime/budget-tracker.ts +0 -354
- package/src/state/memory-store.ts +0 -244
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/earendil-works/pi/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json",
|
|
3
|
+
"name": "crew-one-dark",
|
|
4
|
+
"vars": {
|
|
5
|
+
"bg": "#282c34",
|
|
6
|
+
"fg": "#abb2bf",
|
|
7
|
+
"blue": "#61afef",
|
|
8
|
+
"purple": "#c678dd",
|
|
9
|
+
"red": "#e06c75",
|
|
10
|
+
"orange": "#d19a66",
|
|
11
|
+
"yellow": "#e5c07b",
|
|
12
|
+
"green": "#98c379",
|
|
13
|
+
"cyan": "#56b6c2",
|
|
14
|
+
"gray": "#5c6370",
|
|
15
|
+
"dimGray": "#4b5263",
|
|
16
|
+
"darkGray": "#3e4451",
|
|
17
|
+
"darkerGray": "#2c313c",
|
|
18
|
+
"selection": "#3e4451",
|
|
19
|
+
"userMsgBg": "#21252b",
|
|
20
|
+
"customMsgBg": "#21252b",
|
|
21
|
+
"toolPending": "#1b1f27",
|
|
22
|
+
"toolSuccess": "#1f2a1d",
|
|
23
|
+
"toolError": "#2d1a1e"
|
|
24
|
+
},
|
|
25
|
+
"colors": {
|
|
26
|
+
"accent": "blue",
|
|
27
|
+
"border": "darkGray",
|
|
28
|
+
"borderAccent": "blue",
|
|
29
|
+
"borderMuted": "darkerGray",
|
|
30
|
+
"success": "green",
|
|
31
|
+
"error": "red",
|
|
32
|
+
"warning": "yellow",
|
|
33
|
+
"muted": "gray",
|
|
34
|
+
"dim": "dimGray",
|
|
35
|
+
"text": "fg",
|
|
36
|
+
"thinkingText": "gray",
|
|
37
|
+
|
|
38
|
+
"selectedBg": "selection",
|
|
39
|
+
"userMessageBg": "userMsgBg",
|
|
40
|
+
"userMessageText": "fg",
|
|
41
|
+
"customMessageBg": "customMsgBg",
|
|
42
|
+
"customMessageText": "fg",
|
|
43
|
+
"customMessageLabel": "purple",
|
|
44
|
+
"toolPendingBg": "toolPending",
|
|
45
|
+
"toolSuccessBg": "toolSuccess",
|
|
46
|
+
"toolErrorBg": "toolError",
|
|
47
|
+
"toolTitle": "cyan",
|
|
48
|
+
"toolOutput": "gray",
|
|
49
|
+
|
|
50
|
+
"mdHeading": "yellow",
|
|
51
|
+
"mdLink": "blue",
|
|
52
|
+
"mdLinkUrl": "dimGray",
|
|
53
|
+
"mdCode": "green",
|
|
54
|
+
"mdCodeBlock": "#56b6c2",
|
|
55
|
+
"mdCodeBlockBorder": "darkGray",
|
|
56
|
+
"mdQuote": "gray",
|
|
57
|
+
"mdQuoteBorder": "darkGray",
|
|
58
|
+
"mdHr": "darkGray",
|
|
59
|
+
"mdListBullet": "blue",
|
|
60
|
+
|
|
61
|
+
"toolDiffAdded": "green",
|
|
62
|
+
"toolDiffRemoved": "red",
|
|
63
|
+
"toolDiffContext": "gray",
|
|
64
|
+
|
|
65
|
+
"syntaxComment": "#5c6370",
|
|
66
|
+
"syntaxKeyword": "#c678dd",
|
|
67
|
+
"syntaxFunction": "#61afef",
|
|
68
|
+
"syntaxVariable": "#e06c75",
|
|
69
|
+
"syntaxString": "#98c379",
|
|
70
|
+
"syntaxNumber": "#d19a66",
|
|
71
|
+
"syntaxType": "#e5c07b",
|
|
72
|
+
"syntaxOperator": "#56b6c2",
|
|
73
|
+
"syntaxPunctuation": "#abb2bf",
|
|
74
|
+
|
|
75
|
+
"thinkingOff": "darkerGray",
|
|
76
|
+
"thinkingMinimal": "#4b5263",
|
|
77
|
+
"thinkingLow": "blue",
|
|
78
|
+
"thinkingMedium": "cyan",
|
|
79
|
+
"thinkingHigh": "purple",
|
|
80
|
+
"thinkingXhigh": "red",
|
|
81
|
+
|
|
82
|
+
"bashMode": "green"
|
|
83
|
+
},
|
|
84
|
+
"export": {
|
|
85
|
+
"pageBg": "#282c34",
|
|
86
|
+
"cardBg": "#21252b",
|
|
87
|
+
"infoBg": "#3e4451"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/earendil-works/pi/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json",
|
|
3
|
+
"name": "crew-solarized-dark",
|
|
4
|
+
"vars": {
|
|
5
|
+
"bg": "#002b36",
|
|
6
|
+
"fg": "#93a1a1",
|
|
7
|
+
"blue": "#268bd2",
|
|
8
|
+
"green": "#859900",
|
|
9
|
+
"cyan": "#2aa198",
|
|
10
|
+
"yellow": "#b58900",
|
|
11
|
+
"orange": "#cb4b16",
|
|
12
|
+
"red": "#dc322f",
|
|
13
|
+
"magenta": "#d33682",
|
|
14
|
+
"violet": "#6c71c4",
|
|
15
|
+
"gray": "#657b83",
|
|
16
|
+
"dimGray": "#586e75",
|
|
17
|
+
"darkGray": "#073642",
|
|
18
|
+
"darkerGray": "#073642",
|
|
19
|
+
"selection": "#073642",
|
|
20
|
+
"userMsgBg": "#073642",
|
|
21
|
+
"customMsgBg": "#073642",
|
|
22
|
+
"toolPending": "#003640",
|
|
23
|
+
"toolSuccess": "#0f3a1c",
|
|
24
|
+
"toolError": "#3a1a1d"
|
|
25
|
+
},
|
|
26
|
+
"colors": {
|
|
27
|
+
"accent": "blue",
|
|
28
|
+
"border": "darkGray",
|
|
29
|
+
"borderAccent": "blue",
|
|
30
|
+
"borderMuted": "darkerGray",
|
|
31
|
+
"success": "green",
|
|
32
|
+
"error": "red",
|
|
33
|
+
"warning": "yellow",
|
|
34
|
+
"muted": "gray",
|
|
35
|
+
"dim": "dimGray",
|
|
36
|
+
"text": "fg",
|
|
37
|
+
"thinkingText": "gray",
|
|
38
|
+
|
|
39
|
+
"selectedBg": "selection",
|
|
40
|
+
"userMessageBg": "userMsgBg",
|
|
41
|
+
"userMessageText": "fg",
|
|
42
|
+
"customMessageBg": "customMsgBg",
|
|
43
|
+
"customMessageText": "fg",
|
|
44
|
+
"customMessageLabel": "violet",
|
|
45
|
+
"toolPendingBg": "toolPending",
|
|
46
|
+
"toolSuccessBg": "toolSuccess",
|
|
47
|
+
"toolErrorBg": "toolError",
|
|
48
|
+
"toolTitle": "cyan",
|
|
49
|
+
"toolOutput": "gray",
|
|
50
|
+
|
|
51
|
+
"mdHeading": "yellow",
|
|
52
|
+
"mdLink": "blue",
|
|
53
|
+
"mdLinkUrl": "dimGray",
|
|
54
|
+
"mdCode": "green",
|
|
55
|
+
"mdCodeBlock": "#2aa198",
|
|
56
|
+
"mdCodeBlockBorder": "darkGray",
|
|
57
|
+
"mdQuote": "gray",
|
|
58
|
+
"mdQuoteBorder": "darkGray",
|
|
59
|
+
"mdHr": "darkGray",
|
|
60
|
+
"mdListBullet": "blue",
|
|
61
|
+
|
|
62
|
+
"toolDiffAdded": "green",
|
|
63
|
+
"toolDiffRemoved": "red",
|
|
64
|
+
"toolDiffContext": "gray",
|
|
65
|
+
|
|
66
|
+
"syntaxComment": "#586e75",
|
|
67
|
+
"syntaxKeyword": "#859900",
|
|
68
|
+
"syntaxFunction": "#268bd2",
|
|
69
|
+
"syntaxVariable": "#cb4b16",
|
|
70
|
+
"syntaxString": "#2aa198",
|
|
71
|
+
"syntaxNumber": "#d33682",
|
|
72
|
+
"syntaxType": "#b58900",
|
|
73
|
+
"syntaxOperator": "#6c71c4",
|
|
74
|
+
"syntaxPunctuation": "#93a1a1",
|
|
75
|
+
|
|
76
|
+
"thinkingOff": "darkerGray",
|
|
77
|
+
"thinkingMinimal": "#586e75",
|
|
78
|
+
"thinkingLow": "violet",
|
|
79
|
+
"thinkingMedium": "blue",
|
|
80
|
+
"thinkingHigh": "cyan",
|
|
81
|
+
"thinkingXhigh": "magenta",
|
|
82
|
+
|
|
83
|
+
"bashMode": "green"
|
|
84
|
+
},
|
|
85
|
+
"export": {
|
|
86
|
+
"pageBg": "#002b36",
|
|
87
|
+
"cardBg": "#073642",
|
|
88
|
+
"infoBg": "#073642"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/earendil-works/pi/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json",
|
|
3
|
+
"name": "crew-solarized-light",
|
|
4
|
+
"vars": {
|
|
5
|
+
"bg": "#fdf6e3",
|
|
6
|
+
"fg": "#586e75",
|
|
7
|
+
"blue": "#268bd2",
|
|
8
|
+
"cyan": "#2aa198",
|
|
9
|
+
"green": "#859900",
|
|
10
|
+
"yellow": "#b58900",
|
|
11
|
+
"orange": "#cb4b16",
|
|
12
|
+
"red": "#dc322f",
|
|
13
|
+
"magenta": "#d33682",
|
|
14
|
+
"violet": "#6c71c4",
|
|
15
|
+
"base0": "#839496",
|
|
16
|
+
"base00": "#657b83",
|
|
17
|
+
"gray": "#93a1a1",
|
|
18
|
+
"dimGray": "#93a1a1",
|
|
19
|
+
"darkGray": "#eee8d5",
|
|
20
|
+
"darkerGray": "#eee8d5",
|
|
21
|
+
"selection": "#e5edf5",
|
|
22
|
+
"userMsgBg": "#eee8d5",
|
|
23
|
+
"customMsgBg": "#eee8d5",
|
|
24
|
+
"toolPending": "#eee8d5",
|
|
25
|
+
"toolSuccess": "#e8efd9",
|
|
26
|
+
"toolError": "#f5e0df"
|
|
27
|
+
},
|
|
28
|
+
"colors": {
|
|
29
|
+
"accent": "blue",
|
|
30
|
+
"border": "darkGray",
|
|
31
|
+
"borderAccent": "blue",
|
|
32
|
+
"borderMuted": "darkerGray",
|
|
33
|
+
"success": "green",
|
|
34
|
+
"error": "red",
|
|
35
|
+
"warning": "yellow",
|
|
36
|
+
"muted": "gray",
|
|
37
|
+
"dim": "dimGray",
|
|
38
|
+
"text": "fg",
|
|
39
|
+
"thinkingText": "gray",
|
|
40
|
+
|
|
41
|
+
"selectedBg": "selection",
|
|
42
|
+
"userMessageBg": "userMsgBg",
|
|
43
|
+
"userMessageText": "fg",
|
|
44
|
+
"customMessageBg": "customMsgBg",
|
|
45
|
+
"customMessageText": "fg",
|
|
46
|
+
"customMessageLabel": "magenta",
|
|
47
|
+
"toolPendingBg": "toolPending",
|
|
48
|
+
"toolSuccessBg": "toolSuccess",
|
|
49
|
+
"toolErrorBg": "toolError",
|
|
50
|
+
"toolTitle": "cyan",
|
|
51
|
+
"toolOutput": "gray",
|
|
52
|
+
|
|
53
|
+
"mdHeading": "yellow",
|
|
54
|
+
"mdLink": "blue",
|
|
55
|
+
"mdLinkUrl": "dimGray",
|
|
56
|
+
"mdCode": "green",
|
|
57
|
+
"mdCodeBlock": "#2aa198",
|
|
58
|
+
"mdCodeBlockBorder": "darkGray",
|
|
59
|
+
"mdQuote": "gray",
|
|
60
|
+
"mdQuoteBorder": "darkGray",
|
|
61
|
+
"mdHr": "darkGray",
|
|
62
|
+
"mdListBullet": "blue",
|
|
63
|
+
|
|
64
|
+
"toolDiffAdded": "green",
|
|
65
|
+
"toolDiffRemoved": "red",
|
|
66
|
+
"toolDiffContext": "gray",
|
|
67
|
+
|
|
68
|
+
"syntaxComment": "#93a1a1",
|
|
69
|
+
"syntaxKeyword": "green",
|
|
70
|
+
"syntaxFunction": "blue",
|
|
71
|
+
"syntaxVariable": "orange",
|
|
72
|
+
"syntaxString": "cyan",
|
|
73
|
+
"syntaxNumber": "magenta",
|
|
74
|
+
"syntaxType": "yellow",
|
|
75
|
+
"syntaxOperator": "cyan",
|
|
76
|
+
"syntaxPunctuation": "fg",
|
|
77
|
+
|
|
78
|
+
"thinkingOff": "darkerGray",
|
|
79
|
+
"thinkingMinimal": "dimGray",
|
|
80
|
+
"thinkingLow": "violet",
|
|
81
|
+
"thinkingMedium": "blue",
|
|
82
|
+
"thinkingHigh": "cyan",
|
|
83
|
+
"thinkingXhigh": "#3daee9",
|
|
84
|
+
|
|
85
|
+
"bashMode": "green"
|
|
86
|
+
},
|
|
87
|
+
"export": {
|
|
88
|
+
"pageBg": "#fdf6e3",
|
|
89
|
+
"cardBg": "#eee8d5",
|
|
90
|
+
"infoBg": "#e5edf5"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/earendil-works/pi/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json",
|
|
3
|
+
"name": "crew-tokyo-night",
|
|
4
|
+
"vars": {
|
|
5
|
+
"bg": "#1a1b26",
|
|
6
|
+
"fg": "#c0caf5",
|
|
7
|
+
"blue": "#7aa2f7",
|
|
8
|
+
"cyan": "#7dcfff",
|
|
9
|
+
"magenta": "#bb9af7",
|
|
10
|
+
"purple": "#9d7cd8",
|
|
11
|
+
"orange": "#ff9e64",
|
|
12
|
+
"yellow": "#e0af68",
|
|
13
|
+
"green": "#9ece6a",
|
|
14
|
+
"green1": "#73daca",
|
|
15
|
+
"red": "#f7768e",
|
|
16
|
+
"gray": "#737aa2",
|
|
17
|
+
"dimGray": "#565f89",
|
|
18
|
+
"darkGray": "#292e42",
|
|
19
|
+
"darkerGray": "#16161e",
|
|
20
|
+
"selection": "#283457",
|
|
21
|
+
"userMsgBg": "#1f2335",
|
|
22
|
+
"customMsgBg": "#1f2335",
|
|
23
|
+
"toolPending": "#16161e",
|
|
24
|
+
"toolSuccess": "#1a2e1e",
|
|
25
|
+
"toolError": "#2e1a1e"
|
|
26
|
+
},
|
|
27
|
+
"colors": {
|
|
28
|
+
"accent": "blue",
|
|
29
|
+
"border": "darkGray",
|
|
30
|
+
"borderAccent": "blue",
|
|
31
|
+
"borderMuted": "darkerGray",
|
|
32
|
+
"success": "green",
|
|
33
|
+
"error": "red",
|
|
34
|
+
"warning": "yellow",
|
|
35
|
+
"muted": "gray",
|
|
36
|
+
"dim": "dimGray",
|
|
37
|
+
"text": "fg",
|
|
38
|
+
"thinkingText": "gray",
|
|
39
|
+
"selectedBg": "selection",
|
|
40
|
+
"userMessageBg": "userMsgBg",
|
|
41
|
+
"userMessageText": "fg",
|
|
42
|
+
"customMessageBg": "customMsgBg",
|
|
43
|
+
"customMessageText": "fg",
|
|
44
|
+
"customMessageLabel": "magenta",
|
|
45
|
+
"toolPendingBg": "toolPending",
|
|
46
|
+
"toolSuccessBg": "toolSuccess",
|
|
47
|
+
"toolErrorBg": "toolError",
|
|
48
|
+
"toolTitle": "cyan",
|
|
49
|
+
"toolOutput": "gray",
|
|
50
|
+
"mdHeading": "yellow",
|
|
51
|
+
"mdLink": "blue",
|
|
52
|
+
"mdLinkUrl": "dimGray",
|
|
53
|
+
"mdCode": "green",
|
|
54
|
+
"mdCodeBlock": "#9ece6a",
|
|
55
|
+
"mdCodeBlockBorder": "darkGray",
|
|
56
|
+
"mdQuote": "gray",
|
|
57
|
+
"mdQuoteBorder": "darkGray",
|
|
58
|
+
"mdHr": "darkGray",
|
|
59
|
+
"mdListBullet": "blue",
|
|
60
|
+
"toolDiffAdded": "green",
|
|
61
|
+
"toolDiffRemoved": "red",
|
|
62
|
+
"toolDiffContext": "gray",
|
|
63
|
+
"syntaxComment": "#565f89",
|
|
64
|
+
"syntaxKeyword": "magenta",
|
|
65
|
+
"syntaxFunction": "blue",
|
|
66
|
+
"syntaxVariable": "orange",
|
|
67
|
+
"syntaxString": "green",
|
|
68
|
+
"syntaxNumber": "orange",
|
|
69
|
+
"syntaxType": "cyan",
|
|
70
|
+
"syntaxOperator": "magenta",
|
|
71
|
+
"syntaxPunctuation": "fg",
|
|
72
|
+
"thinkingOff": "darkerGray",
|
|
73
|
+
"thinkingMinimal": "#565f89",
|
|
74
|
+
"thinkingLow": "blue",
|
|
75
|
+
"thinkingMedium": "#7aa2f7",
|
|
76
|
+
"thinkingHigh": "cyan",
|
|
77
|
+
"thinkingXhigh": "magenta",
|
|
78
|
+
"bashMode": "green"
|
|
79
|
+
},
|
|
80
|
+
"export": {
|
|
81
|
+
"pageBg": "#1a1b26",
|
|
82
|
+
"cardBg": "#1f2335",
|
|
83
|
+
"infoBg": "#283457"
|
|
84
|
+
}
|
|
85
|
+
}
|