agentgui 1.0.739 → 1.0.740

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.
@@ -96,10 +96,17 @@ export function register(router, deps) {
96
96
  router.handle('conv.chunks', (p) => {
97
97
  if (!queries.getConversation(p.id)) notFound('Conversation not found');
98
98
  const since = parseInt(p.since || '0');
99
- const chunks = since > 0
100
- ? queries.getConversationChunksSince(p.id, since)
101
- : queries.getConversationChunks(p.id);
102
- return { ok: true, chunks };
99
+ const all = p.all === true || p.all === 'true';
100
+ const totalChunks = queries.getConversationChunkCount(p.id);
101
+ let chunks;
102
+ if (since > 0) {
103
+ chunks = queries.getConversationChunksSince(p.id, since);
104
+ } else if (all) {
105
+ chunks = queries.getConversationChunks(p.id);
106
+ } else {
107
+ chunks = queries.getRecentConversationChunks(p.id, 500);
108
+ }
109
+ return { ok: true, chunks, totalChunks };
103
110
  });
104
111
 
105
112
  router.handle('conv.chunks.earlier', (p) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.739",
3
+ "version": "1.0.740",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "electron/main.js",