pi-my-compact-ui 0.2.1 → 0.2.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/README.md +2 -2
- package/index.ts +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -53,8 +53,8 @@ reasoning content:
|
|
|
53
53
|
- Renders fenced code blocks as subtle theme-aware background panels with
|
|
54
54
|
syntax highlighting and one character of horizontal padding instead of
|
|
55
55
|
decorative top and bottom border rows.
|
|
56
|
-
- Preserves Pi's native execution semantics for `read`, `bash`, `
|
|
57
|
-
`find`, `grep`, and `ls`.
|
|
56
|
+
- Preserves Pi's native execution semantics for `read`, `bash`, `powershell`, `edit`,
|
|
57
|
+
`write`, `find`, `grep`, and `ls`.
|
|
58
58
|
- Gives compaction summaries a distinct, compact presentation.
|
|
59
59
|
|
|
60
60
|
## Installation
|
package/index.ts
CHANGED
|
@@ -30,6 +30,7 @@ import {
|
|
|
30
30
|
createFindTool,
|
|
31
31
|
createGrepTool,
|
|
32
32
|
createLsTool,
|
|
33
|
+
createPowerShellTool,
|
|
33
34
|
createReadTool,
|
|
34
35
|
createWriteTool,
|
|
35
36
|
getMarkdownTheme,
|
|
@@ -313,7 +314,8 @@ function refreshSealedThinkingTokens(reportedReasoning?: unknown): void {
|
|
|
313
314
|
function toolSummary(name: string, args: any): { name: string; content: string } {
|
|
314
315
|
switch (name) {
|
|
315
316
|
case "bash":
|
|
316
|
-
|
|
317
|
+
case "powershell":
|
|
318
|
+
return { name, content: oneLine(args?.command || "…") };
|
|
317
319
|
case "read":
|
|
318
320
|
return { name: "read", content: shortenPath(args?.path || "…") };
|
|
319
321
|
case "write":
|
|
@@ -1474,6 +1476,7 @@ function getTools(cwd: string): Record<string, AnyTool> {
|
|
|
1474
1476
|
tools = {
|
|
1475
1477
|
read: createReadTool(cwd),
|
|
1476
1478
|
bash: createBashTool(cwd),
|
|
1479
|
+
powershell: createPowerShellTool(cwd),
|
|
1477
1480
|
edit: createEditTool(cwd),
|
|
1478
1481
|
write: createWriteTool(cwd),
|
|
1479
1482
|
find: createFindTool(cwd),
|
|
@@ -1501,7 +1504,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
1501
1504
|
return getTools((ctx as { cwd: string }).cwd)[name].execute(toolCallId, params, signal, onUpdate);
|
|
1502
1505
|
};
|
|
1503
1506
|
|
|
1504
|
-
for (const name of ["read", "bash", "edit", "write", "find", "grep", "ls"] as const) {
|
|
1507
|
+
for (const name of ["read", "bash", "powershell", "edit", "write", "find", "grep", "ls"] as const) {
|
|
1505
1508
|
pi.registerTool({
|
|
1506
1509
|
name,
|
|
1507
1510
|
label: name,
|