-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathempty_state_improvement.diff
More file actions
49 lines (46 loc) · 1.6 KB
/
empty_state_improvement.diff
File metadata and controls
49 lines (46 loc) · 1.6 KB
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
44
45
46
47
48
49
diff --git a/src/commands/agent/project/list.ts b/src/commands/agent/project/list.ts
index 4b8c2a1..e7f9d4b 100644
--- a/src/commands/agent/project/list.ts
+++ b/src/commands/agent/project/list.ts
@@ -30,7 +30,8 @@ export class ProjectListHandler implements CommandHandler {
projects = projects.filter(project => project.status !== 'archived');
}
- return {
+ return {
projects,
- };
+ count: projects.length
+ };
} catch (error) {
throw new Error(`Failed to list projects: ${error instanceof Error ? error.message : 'Unknown error'}`);
}
diff --git a/src/commands/agent/roadmap/list.ts b/src/commands/agent/roadmap/list.ts
index 6c9d4e2..a3f8b5c 100644
--- a/src/commands/agent/roadmap/list.ts
+++ b/src/commands/agent/roadmap/list.ts
@@ -58,7 +58,8 @@ export class RoadmapListHandler implements CommandHandler {
);
}
- return {
+ return {
roadmaps
- };
+ count: roadmaps.length
+ };
} catch (error) {
throw new Error(`Failed to list roadmaps: ${(error as Error).message}`);
}
diff --git a/src/commands/agent/chat/list.ts b/src/commands/agent/chat/list.ts
index 2a4c6e8..f5d9a3b 100644
--- a/src/commands/agent/chat/list.ts
+++ b/src/commands/agent/chat/list.ts
@@ -30,7 +30,8 @@ export class ChatListHandler implements CommandHandler {
return {
- chats: response.data.chats
- };
+ chats: response.data.chats,
+ count: response.data.chats.length
+ };
} catch (error) {
throw new Error(`Failed to list chats: ${(error as Error).message}`);
}