decorated-pi 0.5.1 → 0.5.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/extensions/rtk.ts +10 -1
- package/package.json +49 -42
package/extensions/rtk.ts
CHANGED
|
@@ -173,8 +173,17 @@ export function setupRtkIntegration(pi: ExtensionAPI) {
|
|
|
173
173
|
|
|
174
174
|
if (baseRenderCall) {
|
|
175
175
|
bashTool.renderCall = (args, theme, context) => {
|
|
176
|
-
|
|
176
|
+
// Avoid calling baseRenderCall when args.command is not yet available
|
|
177
|
+
// to prevent flashing "<invalid command>" in TUI
|
|
177
178
|
const command = typeof args?.command === "string" ? args.command : "";
|
|
179
|
+
if (!command) {
|
|
180
|
+
const text = context.lastComponent ?? new Text("", 0, 0);
|
|
181
|
+
const placeholder = theme.fg("toolOutput", "...");
|
|
182
|
+
text.setText(theme.fg("toolTitle", theme.bold(`$ ${placeholder}`)));
|
|
183
|
+
return text;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
const component = baseRenderCall(args, theme, context);
|
|
178
187
|
const predicted = command
|
|
179
188
|
? (rewriteabilityCache.get(command) ?? (() => {
|
|
180
189
|
const value = rewriteWithRtk(command, rtkBinary!) !== null;
|
package/package.json
CHANGED
|
@@ -1,44 +1,51 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
2
|
+
"name": "decorated-pi",
|
|
3
|
+
"version": "0.5.2",
|
|
4
|
+
"description": "decorated-pi is a practical enhancement pack for pi — smarter tools that are token efficient and cache friendly.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pi",
|
|
7
|
+
"pi-package",
|
|
8
|
+
"pi-extension",
|
|
9
|
+
"rtk",
|
|
10
|
+
"mcp",
|
|
11
|
+
"security",
|
|
12
|
+
"lsp",
|
|
13
|
+
"language-server",
|
|
14
|
+
"secret-detection"
|
|
15
|
+
],
|
|
16
|
+
"type": "commonjs",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/lcwecker/decorated-pi.git"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://github.com/lcwecker/decorated-pi#readme",
|
|
23
|
+
"bugs": "https://github.com/lcwecker/decorated-pi/issues",
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
26
|
+
"file-type": "^21.3.4",
|
|
27
|
+
"openai": "^6.37.0"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"@earendil-works/pi-ai": "*",
|
|
31
|
+
"@earendil-works/pi-coding-agent": "*",
|
|
32
|
+
"@earendil-works/pi-tui": "*",
|
|
33
|
+
"typebox": "*"
|
|
34
|
+
},
|
|
35
|
+
"pi": {
|
|
36
|
+
"extensions": [
|
|
37
|
+
"./extensions/index.ts"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@types/node": "^22.15.3",
|
|
42
|
+
"depcheck": "^1.4.7",
|
|
43
|
+
"publint": "^0.3.21",
|
|
44
|
+
"vitest": "^4.1.6"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"prepack": "depcheck --fail-on-missing",
|
|
48
|
+
"test": "vitest run",
|
|
49
|
+
"prepublishOnly": "npm install --package-lock-only --no-audit --no-fund && npm test && depcheck --fail-on-missing && publint"
|
|
50
|
+
}
|
|
44
51
|
}
|