@athenaintel/react 0.9.24 → 0.10.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/dist/auth.cjs +40 -87
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.js +40 -87
- package/dist/auth.js.map +1 -1
- package/dist/index.cjs +948 -531
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +24 -3
- package/dist/index.js +948 -531
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -245,7 +245,7 @@ export declare interface AthenaOrg {
|
|
|
245
245
|
urlSafeOrgName: string;
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
export declare function AthenaProvider({ children, config, apiKey, token: tokenProp, agent, model, tools, frontendTools, apiUrl, backendUrl, appUrl, environment, workbench, knowledgeBase, systemPrompt, threadId: threadIdProp, enableThreadList, theme, linkClicks, citationLinks, posthog: posthogProp, }: AthenaProviderProps): ReactElement<unknown, string | JSXElementConstructor<any>> | null;
|
|
248
|
+
export declare function AthenaProvider({ children, config, apiKey, token: tokenProp, agent, model, tools, frontendTools, apiUrl, backendUrl, appUrl, environment, workbench, knowledgeBase, systemPrompt, customToolConfigs, threadId: threadIdProp, enableThreadList, theme, linkClicks, citationLinks, posthog: posthogProp, }: AthenaProviderProps): ReactElement<unknown, string | JSXElementConstructor<any>> | null;
|
|
249
249
|
|
|
250
250
|
export declare interface AthenaProviderConfig {
|
|
251
251
|
/** API key for standalone authentication when no token is provided. */
|
|
@@ -297,6 +297,19 @@ export declare interface AthenaProviderProps {
|
|
|
297
297
|
knowledgeBase?: string[];
|
|
298
298
|
/** System prompt override. */
|
|
299
299
|
systemPrompt?: string;
|
|
300
|
+
/** Custom tool configurations (e.g. MCP servers).
|
|
301
|
+
* Passed through as `custom_tool_configs` in runConfig.custom.
|
|
302
|
+
*
|
|
303
|
+
* @example
|
|
304
|
+
* <AthenaProvider customToolConfigs={{
|
|
305
|
+
* mcp: {
|
|
306
|
+
* "my-server": {
|
|
307
|
+
* config: { transport: "streamable_http", url: "https://..." },
|
|
308
|
+
* }
|
|
309
|
+
* }
|
|
310
|
+
* }}>
|
|
311
|
+
*/
|
|
312
|
+
customToolConfigs?: Record<string, unknown>;
|
|
300
313
|
/** Thread ID override. Auto-generated if not provided. */
|
|
301
314
|
threadId?: string;
|
|
302
315
|
/** Enable thread list management (sidebar thread switching). */
|
|
@@ -355,6 +368,8 @@ export declare interface AthenaRuntimeConfig {
|
|
|
355
368
|
knowledgeBase?: string[];
|
|
356
369
|
/** System prompt override. */
|
|
357
370
|
systemPrompt?: string;
|
|
371
|
+
/** Custom tool configurations (e.g. MCP servers). Passed as custom_tool_configs in runConfig. */
|
|
372
|
+
customToolConfigs?: Record<string, unknown>;
|
|
358
373
|
/** Thread ID override. Auto-generated if not provided. */
|
|
359
374
|
threadId?: string;
|
|
360
375
|
}
|
|
@@ -560,6 +575,8 @@ export declare const DEFAULT_APP_URL: string;
|
|
|
560
575
|
|
|
561
576
|
export declare const DEFAULT_BACKEND_URL: string;
|
|
562
577
|
|
|
578
|
+
export declare const DescribeDatabaseToolUI: ToolCallMessagePartComponent;
|
|
579
|
+
|
|
563
580
|
export declare const EmailSearchToolUI: ToolCallMessagePartComponent;
|
|
564
581
|
|
|
565
582
|
export declare function ExpandableSection({ label, children, defaultOpen, }: {
|
|
@@ -598,6 +615,8 @@ export declare function getAssetInfo(assetId: string): {
|
|
|
598
615
|
icon: AssetIconType;
|
|
599
616
|
};
|
|
600
617
|
|
|
618
|
+
export declare const GetDatabaseTableSchemaToolUI: ToolCallMessagePartComponent;
|
|
619
|
+
|
|
601
620
|
export declare function getPostHogInstance<TClient = unknown>(): TClient | null;
|
|
602
621
|
|
|
603
622
|
export declare const isAthenaCitationUrl: ({ href, appUrl, }: {
|
|
@@ -610,6 +629,8 @@ declare interface ItemCache {
|
|
|
610
629
|
items: Map<string, MenuItem>;
|
|
611
630
|
}
|
|
612
631
|
|
|
632
|
+
export declare const ListDatabaseTablesToolUI: ToolCallMessagePartComponent;
|
|
633
|
+
|
|
613
634
|
declare interface MentionSuggestionsState {
|
|
614
635
|
registry: ScopeRegistry;
|
|
615
636
|
cache: ItemCache;
|
|
@@ -713,6 +734,8 @@ export declare function resetAssetAutoOpen(): void;
|
|
|
713
734
|
|
|
714
735
|
export declare const RunPythonCodeToolUI: ToolCallMessagePartComponent;
|
|
715
736
|
|
|
737
|
+
export declare const RunSqlToolUI: ToolCallMessagePartComponent;
|
|
738
|
+
|
|
716
739
|
declare interface ScopeRegistry {
|
|
717
740
|
entries: Map<MenuScope, ScopeRegistryEntry>;
|
|
718
741
|
}
|
|
@@ -1037,8 +1060,6 @@ export declare const Toolkits: {
|
|
|
1037
1060
|
readonly MARKETING: "marketing_toolkit";
|
|
1038
1061
|
/** FDE implementations and workflows. */
|
|
1039
1062
|
readonly FDE: "fde_toolkit";
|
|
1040
|
-
/** Code repository search via Greptile. */
|
|
1041
|
-
readonly GREPTILE: "greptile_toolkit";
|
|
1042
1063
|
/** SharePoint / Google Drive / workspace file access. */
|
|
1043
1064
|
readonly EXTERNAL_DRIVE: "external_drive_toolkit";
|
|
1044
1065
|
/** Reusable playbooks and prompts. */
|