wave-code 1.1.2 → 1.1.3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wave-code",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "CLI-based code assistant powered by AI, built with React and Ink",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"wrap-ansi": "^10.0.0",
|
|
57
57
|
"yargs": "^17.7.2",
|
|
58
58
|
"zod": "^3.23.8",
|
|
59
|
-
"wave-agent-sdk": "1.1.
|
|
59
|
+
"wave-agent-sdk": "1.1.3"
|
|
60
60
|
},
|
|
61
61
|
"engines": {
|
|
62
62
|
"node": ">=22"
|
|
@@ -7,7 +7,6 @@ import { ToolDisplay } from "./ToolDisplay.js";
|
|
|
7
7
|
import { CompactDisplay } from "./CompactDisplay.js";
|
|
8
8
|
import { ReasoningDisplay } from "./ReasoningDisplay.js";
|
|
9
9
|
import { Markdown } from "./Markdown.js";
|
|
10
|
-
import { TaskNotificationMessage } from "./TaskNotificationMessage.js";
|
|
11
10
|
import { streamingTail } from "../utils/streamingText.js";
|
|
12
11
|
|
|
13
12
|
export interface MessageBlockItemProps {
|
|
@@ -84,10 +83,6 @@ export const MessageBlockItem = ({
|
|
|
84
83
|
{block.type === "reasoning" && (
|
|
85
84
|
<ReasoningDisplay block={block} isExpanded={isExpanded} />
|
|
86
85
|
)}
|
|
87
|
-
|
|
88
|
-
{block.type === "task_notification" && (
|
|
89
|
-
<TaskNotificationMessage block={block} />
|
|
90
|
-
)}
|
|
91
86
|
</Box>
|
|
92
87
|
);
|
|
93
88
|
};
|
package/src/stdio/agentBridge.ts
CHANGED
|
@@ -1570,6 +1570,13 @@ export class AgentBridge {
|
|
|
1570
1570
|
ctx.registeredSessionId,
|
|
1571
1571
|
);
|
|
1572
1572
|
},
|
|
1573
|
+
onCompactionContentUpdate: (content: string) => {
|
|
1574
|
+
this.emit(
|
|
1575
|
+
"compactionContentUpdate",
|
|
1576
|
+
{ content },
|
|
1577
|
+
ctx.registeredSessionId,
|
|
1578
|
+
);
|
|
1579
|
+
},
|
|
1573
1580
|
};
|
|
1574
1581
|
}
|
|
1575
1582
|
|
package/src/stdio/protocol.ts
CHANGED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Box, Text } from "ink";
|
|
3
|
-
import type { TaskNotificationBlock } from "wave-agent-sdk";
|
|
4
|
-
|
|
5
|
-
export interface TaskNotificationMessageProps {
|
|
6
|
-
block: TaskNotificationBlock;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const statusColor: Record<TaskNotificationBlock["status"], string> = {
|
|
10
|
-
completed: "green",
|
|
11
|
-
failed: "red",
|
|
12
|
-
killed: "yellow",
|
|
13
|
-
aborted: "gray",
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export const TaskNotificationMessage = ({
|
|
17
|
-
block,
|
|
18
|
-
}: TaskNotificationMessageProps) => {
|
|
19
|
-
const color = statusColor[block.status];
|
|
20
|
-
|
|
21
|
-
return (
|
|
22
|
-
<Box flexDirection="column">
|
|
23
|
-
<Box>
|
|
24
|
-
<Text color={color}>◆ </Text>
|
|
25
|
-
<Text color="white">{block.summary}</Text>
|
|
26
|
-
</Box>
|
|
27
|
-
</Box>
|
|
28
|
-
);
|
|
29
|
-
};
|