research-agent-ui 0.1.82 → 0.1.84
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/dist/api/handlers/chat-title.d.ts +9 -0
- package/dist/api/index.d.ts +1 -0
- package/dist/api.cjs +4 -4
- package/dist/api.mjs +114 -86
- package/dist/index.cjs +13 -13
- package/dist/index.mjs +1478 -1390
- package/dist/lib/chatTitle.d.ts +8 -0
- package/dist/lib/relative-time.d.ts +6 -0
- package/dist/types/research.d.ts +2 -0
- package/package.json +6 -6
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Message } from "../components/ChatConversation/ChatWindow";
|
|
2
|
+
/**
|
|
3
|
+
* Requests an LLM-generated title summarising a conversation. For
|
|
4
|
+
* authenticated users the server persists the title on the chat; for guests
|
|
5
|
+
* the caller is responsible for storing the returned title locally. Returns
|
|
6
|
+
* an empty string on failure so callers can keep the existing title.
|
|
7
|
+
*/
|
|
8
|
+
export declare const generateChatTitle: (chatId: string, chatHistory: Message[]) => Promise<string>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Formats a timestamp as a compact "time ago" string (e.g. "5 min ago",
|
|
3
|
+
* "2 hr ago", "3 days ago"). Used by chat history to show how long ago a
|
|
4
|
+
* conversation was last active.
|
|
5
|
+
*/
|
|
6
|
+
export declare function formatRelativeTime(input: string | number | Date): string;
|
package/dist/types/research.d.ts
CHANGED
|
@@ -74,6 +74,8 @@ export interface Chat {
|
|
|
74
74
|
id: string;
|
|
75
75
|
title: string;
|
|
76
76
|
createdAt: string;
|
|
77
|
+
/** Timestamp of the most recent message, used for "last active" display. */
|
|
78
|
+
lastMessageAt?: string | null;
|
|
77
79
|
focusMode: string;
|
|
78
80
|
userId?: string | null;
|
|
79
81
|
files?: ChatFile[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "research-agent-ui",
|
|
3
3
|
"description": "Chat research agent UI: conversation window, article reader, search config, file uploads, and chat history",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.84",
|
|
5
5
|
"author": "vtempest",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -65,19 +65,19 @@
|
|
|
65
65
|
"@radix-ui/react-slot": "^1.2.5",
|
|
66
66
|
"@radix-ui/react-tooltip": "^1.2.9",
|
|
67
67
|
"@ricky0123/vad-web": "^0.0.30",
|
|
68
|
-
"chat-agent-toolkit": "^1.2.
|
|
69
|
-
"domain-rank": "^0.1.
|
|
68
|
+
"chat-agent-toolkit": "^1.2.108",
|
|
69
|
+
"domain-rank": "^0.1.97",
|
|
70
70
|
"drizzle-orm": "^0.45.2",
|
|
71
71
|
"fuse.js": "^7.1.0",
|
|
72
72
|
"class-variance-authority": "^0.7.1",
|
|
73
73
|
"clsx": "^2.1.1",
|
|
74
74
|
"dompurify": "^3.4.9",
|
|
75
|
-
"extract-webpage": "^1.2.
|
|
76
|
-
"search-web-api": "^1.0.
|
|
75
|
+
"extract-webpage": "^1.2.108",
|
|
76
|
+
"search-web-api": "^1.0.66",
|
|
77
77
|
"framer-motion": "^12.40.0",
|
|
78
78
|
"grab-url": "^1.6.22",
|
|
79
79
|
"kokoro-js": "^1.2.1",
|
|
80
|
-
"qwksearch-api-client": "^0.9.
|
|
80
|
+
"qwksearch-api-client": "^0.9.55",
|
|
81
81
|
"html2canvas": "^1.4.1",
|
|
82
82
|
"lucide-react": "^1.17.0",
|
|
83
83
|
"markdown-to-jsx": "^9.8.2",
|