pi-cc-extensions 0.8.6 → 0.8.8
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/README.md
CHANGED
|
@@ -86,7 +86,6 @@
|
|
|
86
86
|
|
|
87
87
|
`mode` 可取 `on`、`off` 或 `compact`。旧版 `enabled: true/false` 会自动迁移为 `on/off`。排除名单使用精确工具名;手动修改配置后执行 `/reload`。`Agent` 的专用 renderer 始终保留。
|
|
88
88
|
|
|
89
|
-
|
|
90
89
|
Compact transcript 行为改编自 [avhagedorn/pi-compact-transcript](https://github.com/avhagedorn/pi-compact-transcript) v0.6.2(MIT,Alan Hagedorn)。
|
|
91
90
|
|
|
92
91
|
### 上下文窗口查看
|
|
Binary file
|
|
@@ -88,7 +88,7 @@ export function createAgentAutocompleteProvider(
|
|
|
88
88
|
const [baseSuggestions, matches] = await Promise.all([
|
|
89
89
|
current.getSuggestions(lines, cursorLine, cursorCol, options),
|
|
90
90
|
Promise.resolve(query.trim()
|
|
91
|
-
? fuzzyFilter(agents, query, (a) =>
|
|
91
|
+
? fuzzyFilter(agents, query, (a) => a.name)
|
|
92
92
|
: agents),
|
|
93
93
|
]);
|
|
94
94
|
if (options.signal.aborted) return null;
|
|
@@ -101,8 +101,10 @@ export function createAgentAutocompleteProvider(
|
|
|
101
101
|
description: agent.description
|
|
102
102
|
+ (agent.model ? ` · ${agent.model}` : ""),
|
|
103
103
|
}));
|
|
104
|
-
const
|
|
105
|
-
|
|
104
|
+
const hasCompatibleBaseSuggestions = baseSuggestions?.prefix === `@${query}`;
|
|
105
|
+
const agentValues = new Set(agents.map((agent) => `@${agent.name}`));
|
|
106
|
+
const baseItems = hasCompatibleBaseSuggestions
|
|
107
|
+
? baseSuggestions.items.filter((item) => !agentValues.has(item.value))
|
|
106
108
|
: [];
|
|
107
109
|
const seen = new Set<string>();
|
|
108
110
|
const items = [...agentItems, ...baseItems].filter((item) => {
|
|
@@ -112,7 +114,7 @@ export function createAgentAutocompleteProvider(
|
|
|
112
114
|
return true;
|
|
113
115
|
});
|
|
114
116
|
|
|
115
|
-
if (items.length === 0) return baseSuggestions;
|
|
117
|
+
if (items.length === 0 && !hasCompatibleBaseSuggestions) return baseSuggestions;
|
|
116
118
|
return { items, prefix: `@${query}` };
|
|
117
119
|
},
|
|
118
120
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-cc-extensions",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.8",
|
|
4
4
|
"description": "A Pi productivity suite with Claude Code-style UI, context inspection, and agent/session references",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"files": [
|
|
21
21
|
"extensions",
|
|
22
22
|
"assets/readme",
|
|
23
|
+
"themes",
|
|
23
24
|
"README.md"
|
|
24
25
|
],
|
|
25
26
|
"pi": {
|
|
@@ -29,6 +30,9 @@
|
|
|
29
30
|
"./extensions/session-reference.ts",
|
|
30
31
|
"./extensions/agent-autocomplete.ts"
|
|
31
32
|
],
|
|
33
|
+
"themes": [
|
|
34
|
+
"./themes/github-dark-default.json"
|
|
35
|
+
],
|
|
32
36
|
"image": "https://raw.githubusercontent.com/minuque/pi-cc-extensions/main/assets/readme/welcome.webp"
|
|
33
37
|
},
|
|
34
38
|
"scripts": {
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/badlogic/pi-mono/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json",
|
|
3
|
+
"name": "github-dark-default",
|
|
4
|
+
"vars": {
|
|
5
|
+
"bg": "#0d1117",
|
|
6
|
+
"panel": "#010409",
|
|
7
|
+
"surface": "#161b22",
|
|
8
|
+
"border": "#30363d",
|
|
9
|
+
"borderMuted": "#21262d",
|
|
10
|
+
"editorBorder": "#8b949e",
|
|
11
|
+
"mediumBlue": "#58a6ff",
|
|
12
|
+
"deepBlue": "#1158c7",
|
|
13
|
+
"accent": "#2f81f7",
|
|
14
|
+
"focus": "#1f6feb",
|
|
15
|
+
"text": "#e6edf3",
|
|
16
|
+
"muted": "#7d8590",
|
|
17
|
+
"dim": "#6e7681",
|
|
18
|
+
"green": "#3fb950",
|
|
19
|
+
"red": "#f85149",
|
|
20
|
+
"yellow": "#d29922",
|
|
21
|
+
"purple": "#d2a8ff",
|
|
22
|
+
"orange": "#ffa657",
|
|
23
|
+
"cyan": "#79c0ff",
|
|
24
|
+
"string": "#a5d6ff",
|
|
25
|
+
"softGreen": "#7ee787",
|
|
26
|
+
"softRed": "#ff7b72"
|
|
27
|
+
},
|
|
28
|
+
"colors": {
|
|
29
|
+
"accent": "accent",
|
|
30
|
+
"border": "border",
|
|
31
|
+
"borderAccent": "focus",
|
|
32
|
+
"borderMuted": "borderMuted",
|
|
33
|
+
"success": "green",
|
|
34
|
+
"error": "red",
|
|
35
|
+
"warning": "yellow",
|
|
36
|
+
"muted": "muted",
|
|
37
|
+
"dim": "dim",
|
|
38
|
+
"text": "text",
|
|
39
|
+
"thinkingText": "muted",
|
|
40
|
+
|
|
41
|
+
"selectedBg": "#13233a",
|
|
42
|
+
"userMessageBg": "surface",
|
|
43
|
+
"userMessageText": "text",
|
|
44
|
+
"customMessageBg": "surface",
|
|
45
|
+
"customMessageText": "text",
|
|
46
|
+
"customMessageLabel": "accent",
|
|
47
|
+
"toolPendingBg": "surface",
|
|
48
|
+
"toolSuccessBg": "surface",
|
|
49
|
+
"toolErrorBg": "#2b1618",
|
|
50
|
+
"toolTitle": "accent",
|
|
51
|
+
"toolOutput": "muted",
|
|
52
|
+
|
|
53
|
+
"mdHeading": "cyan",
|
|
54
|
+
"mdLink": "accent",
|
|
55
|
+
"mdLinkUrl": "muted",
|
|
56
|
+
"mdCode": "cyan",
|
|
57
|
+
"mdCodeBlock": "text",
|
|
58
|
+
"mdCodeBlockBorder": "border",
|
|
59
|
+
"mdQuote": "muted",
|
|
60
|
+
"mdQuoteBorder": "border",
|
|
61
|
+
"mdHr": "borderMuted",
|
|
62
|
+
"mdListBullet": "orange",
|
|
63
|
+
|
|
64
|
+
"toolDiffAdded": "green",
|
|
65
|
+
"toolDiffRemoved": "red",
|
|
66
|
+
"toolDiffContext": "muted",
|
|
67
|
+
|
|
68
|
+
"syntaxComment": "#8b949e",
|
|
69
|
+
"syntaxKeyword": "softRed",
|
|
70
|
+
"syntaxFunction": "purple",
|
|
71
|
+
"syntaxVariable": "orange",
|
|
72
|
+
"syntaxString": "string",
|
|
73
|
+
"syntaxNumber": "cyan",
|
|
74
|
+
"syntaxType": "softGreen",
|
|
75
|
+
"syntaxOperator": "text",
|
|
76
|
+
"syntaxPunctuation": "dim",
|
|
77
|
+
"thinkingOff": "editorBorder",
|
|
78
|
+
"thinkingMinimal": "editorBorder",
|
|
79
|
+
"thinkingLow": "cyan",
|
|
80
|
+
"thinkingMedium": "mediumBlue",
|
|
81
|
+
"thinkingHigh": "accent",
|
|
82
|
+
"thinkingXhigh": "focus",
|
|
83
|
+
"thinkingMax": "deepBlue",
|
|
84
|
+
"bashMode": "green"
|
|
85
|
+
},
|
|
86
|
+
"export": {
|
|
87
|
+
"pageBg": "bg",
|
|
88
|
+
"cardBg": "panel",
|
|
89
|
+
"infoBg": "surface"
|
|
90
|
+
}
|
|
91
|
+
}
|