@athenaintel/react 0.11.0 → 0.11.1
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/README.md +123 -3
- package/dist/index.cjs +233 -45
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +233 -45
- package/dist/index.js.map +1 -1
- package/dist/tools/tool-uis.d.ts +18 -0
- package/package.json +3 -3
package/dist/tools/tool-uis.d.ts
CHANGED
|
@@ -24,7 +24,24 @@ export declare function ExpandableSection({ label, children, defaultOpen, }: {
|
|
|
24
24
|
}): import("react/jsx-runtime").JSX.Element;
|
|
25
25
|
export declare const WebSearchToolUI: ToolCallMessagePartComponent;
|
|
26
26
|
export declare const BrowseToolUI: ToolCallMessagePartComponent;
|
|
27
|
+
/** Short human date for an email row: "Aug 24" this year, "Aug 24, 2025"
|
|
28
|
+
* otherwise, time-of-day for today. Unparseable input passes through. */
|
|
29
|
+
export declare function formatEmailDate(raw: string | undefined): string | undefined;
|
|
30
|
+
/** Turn a raw search query ("received:2026-08-24..2026-08-26 from:kim budget")
|
|
31
|
+
* into a readable phrase ("Aug 24 – Aug 26 · from kim · “budget”"). */
|
|
32
|
+
export declare function humanizeEmailQuery(query: string): string;
|
|
27
33
|
export declare const EmailSearchToolUI: ToolCallMessagePartComponent;
|
|
34
|
+
interface EmailAccount {
|
|
35
|
+
address?: string;
|
|
36
|
+
provider?: string;
|
|
37
|
+
name?: string;
|
|
38
|
+
isDefault?: boolean;
|
|
39
|
+
}
|
|
40
|
+
/** Lenient decode of the unified `list accounts` payload
|
|
41
|
+
* (`{accounts: [{email_address, provider, account_name, is_default}]}`,
|
|
42
|
+
* with older field spellings tolerated). */
|
|
43
|
+
export declare function parseEmailAccounts(data: Record<string, unknown>): EmailAccount[];
|
|
44
|
+
export declare const EmailAccountsToolUI: ToolCallMessagePartComponent;
|
|
28
45
|
export declare function resetAssetAutoOpen(): void;
|
|
29
46
|
export declare const CreateDocumentToolUI: ToolCallMessagePartComponent;
|
|
30
47
|
export declare const CreateSheetToolUI: ToolCallMessagePartComponent;
|
|
@@ -68,3 +85,4 @@ export declare const CaptureMomentToolUI: ToolCallMessagePartComponent;
|
|
|
68
85
|
export declare const CaptureSlideScreenshotToolUI: ToolCallMessagePartComponent;
|
|
69
86
|
export declare const OpenBrowserToolUI: ToolCallMessagePartComponent;
|
|
70
87
|
export declare const TOOL_UI_REGISTRY: Record<string, ToolCallMessagePartComponent>;
|
|
88
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@athenaintel/react",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "Athena React SDK — Build AI-powered chat applications with the Athena platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@assistant-ui/core": "0.3.15",
|
|
50
50
|
"@assistant-ui/react": "0.15.16",
|
|
51
51
|
"@assistant-ui/react-langgraph": "0.14.24",
|
|
52
|
-
"@assistant-ui/react-statewire": "^0.
|
|
52
|
+
"@assistant-ui/react-statewire": "^0.22.0",
|
|
53
53
|
"@assistant-ui/tap": "0.9.14",
|
|
54
54
|
"@floating-ui/react": "^0.27.7",
|
|
55
55
|
"@tanstack/react-query": "5.99.2",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"cnfast": "0.0.8",
|
|
71
71
|
"lucide-react": "^0.575.0",
|
|
72
72
|
"radix-ui": "^1.4.3",
|
|
73
|
-
"statewire": "^0.
|
|
73
|
+
"statewire": "^0.13.0",
|
|
74
74
|
"tiptap-markdown": "^0.9.0",
|
|
75
75
|
"zod": "^3.24.0",
|
|
76
76
|
"zustand": "^5.0.11"
|