wave-code 0.16.12 → 0.16.13

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.
@@ -1 +1 @@
1
- {"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../src/components/MessageList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,OAAO,EAAgB,MAAM,gBAAgB,CAAC;AAG5D,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,WAAW,uFAOnB,gBAAgB,6CAiIpB,CAAC"}
1
+ {"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../src/components/MessageList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,OAAO,EAAgB,MAAM,gBAAgB,CAAC;AAM5D,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,WAAW,uFAOnB,gBAAgB,6CAkIpB,CAAC"}
@@ -3,10 +3,13 @@ import React from "react";
3
3
  import os from "os";
4
4
  import { Box, Text, Static } from "ink";
5
5
  import { MessageBlockItem } from "./MessageBlockItem.js";
6
+ const MAX_MESSAGES_COLLAPSED = 30;
7
+ const MAX_MESSAGES_EXPANDED = 10;
6
8
  export const MessageList = React.memo(({ messages, isExpanded = false, forceStatic = false, version, workdir, }) => {
9
+ const maxMessages = isExpanded
10
+ ? MAX_MESSAGES_EXPANDED
11
+ : MAX_MESSAGES_COLLAPSED;
7
12
  const welcomeMessage = (_jsxs(Box, { flexDirection: "column", paddingTop: 1, children: [_jsxs(Text, { color: "gray", children: ["WAVE", version ? ` v${version}` : ""] }), workdir && (_jsx(Text, { color: "gray", wrap: "truncate-middle", children: workdir.replace(os.homedir(), "~") }))] }));
8
- // Limit messages to prevent long rendering times
9
- const maxMessages = 10;
10
13
  // Filter out meta messages
11
14
  const visibleMessages = messages.filter((m) => !m.isMeta);
12
15
  const isRunning = (b) => (b.type === "tool" &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wave-code",
3
- "version": "0.16.12",
3
+ "version": "0.16.13",
4
4
  "description": "CLI-based code assistant powered by AI, built with React and Ink",
5
5
  "repository": {
6
6
  "type": "git",
@@ -42,7 +42,7 @@
42
42
  "semver": "^7.7.4",
43
43
  "yargs": "^17.7.2",
44
44
  "zod": "^3.23.8",
45
- "wave-agent-sdk": "0.16.12"
45
+ "wave-agent-sdk": "0.16.13"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/react": "^19.1.8",
@@ -4,6 +4,9 @@ import { Box, Text, Static } from "ink";
4
4
  import type { Message, MessageBlock } from "wave-agent-sdk";
5
5
  import { MessageBlockItem } from "./MessageBlockItem.js";
6
6
 
7
+ const MAX_MESSAGES_COLLAPSED = 30;
8
+ const MAX_MESSAGES_EXPANDED = 10;
9
+
7
10
  export interface MessageListProps {
8
11
  messages: Message[];
9
12
  isExpanded?: boolean;
@@ -20,6 +23,10 @@ export const MessageList = React.memo(
20
23
  version,
21
24
  workdir,
22
25
  }: MessageListProps) => {
26
+ const maxMessages = isExpanded
27
+ ? MAX_MESSAGES_EXPANDED
28
+ : MAX_MESSAGES_COLLAPSED;
29
+
23
30
  const welcomeMessage = (
24
31
  <Box flexDirection="column" paddingTop={1}>
25
32
  <Text color="gray">WAVE{version ? ` v${version}` : ""}</Text>
@@ -31,9 +38,6 @@ export const MessageList = React.memo(
31
38
  </Box>
32
39
  );
33
40
 
34
- // Limit messages to prevent long rendering times
35
- const maxMessages = 10;
36
-
37
41
  // Filter out meta messages
38
42
  const visibleMessages = messages.filter((m) => !m.isMeta);
39
43