@hef2024/llmasaservice-ui 0.16.8
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 +162 -0
- package/dist/index.css +3239 -0
- package/dist/index.d.mts +521 -0
- package/dist/index.d.ts +521 -0
- package/dist/index.js +5885 -0
- package/dist/index.mjs +5851 -0
- package/index.ts +28 -0
- package/package.json +70 -0
- package/src/AIAgentPanel.css +1354 -0
- package/src/AIAgentPanel.tsx +1883 -0
- package/src/AIChatPanel.css +1618 -0
- package/src/AIChatPanel.tsx +1725 -0
- package/src/AgentPanel.tsx +323 -0
- package/src/ChatPanel.css +1093 -0
- package/src/ChatPanel.tsx +3583 -0
- package/src/ChatStatus.tsx +40 -0
- package/src/EmailModal.tsx +56 -0
- package/src/ToolInfoModal.tsx +49 -0
- package/src/components/ui/Button.tsx +57 -0
- package/src/components/ui/Dialog.tsx +153 -0
- package/src/components/ui/Input.tsx +33 -0
- package/src/components/ui/ScrollArea.tsx +29 -0
- package/src/components/ui/Select.tsx +156 -0
- package/src/components/ui/Tooltip.tsx +73 -0
- package/src/components/ui/index.ts +20 -0
- package/src/hooks/useAgentRegistry.ts +349 -0
- package/src/hooks/useConversationStore.ts +313 -0
- package/src/mcpClient.ts +107 -0
- package/tsconfig.json +108 -0
- package/types/declarations.d.ts +22 -0
package/index.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Import the ChatPanel component and its props
|
|
2
|
+
import ChatPanel, { ChatPanelProps } from './src/ChatPanel';
|
|
3
|
+
|
|
4
|
+
// Export the ChatPanel component and its props
|
|
5
|
+
export { ChatPanel, ChatPanelProps };
|
|
6
|
+
|
|
7
|
+
import AgentPanel, { AgentPanelProps } from './src/AgentPanel';
|
|
8
|
+
export { AgentPanel, AgentPanelProps };
|
|
9
|
+
|
|
10
|
+
// Import and export AIAgentPanel (Cursor-inspired multi-agent panel)
|
|
11
|
+
import AIAgentPanel from './src/AIAgentPanel';
|
|
12
|
+
export { AIAgentPanel };
|
|
13
|
+
export type { AIAgentPanelProps, AgentContext, ContextSection, APIConversationSummary } from './src/AIAgentPanel';
|
|
14
|
+
|
|
15
|
+
// Import and export AIChatPanel (shadcn-style chat interface)
|
|
16
|
+
import AIChatPanel from './src/AIChatPanel';
|
|
17
|
+
export { AIChatPanel };
|
|
18
|
+
export type { AIChatPanelProps } from './src/AIChatPanel';
|
|
19
|
+
|
|
20
|
+
// Export hooks
|
|
21
|
+
export { useAgentRegistry } from './src/hooks/useAgentRegistry';
|
|
22
|
+
export type { AgentMetadata, AgentProfile, MCPServer } from './src/hooks/useAgentRegistry';
|
|
23
|
+
|
|
24
|
+
export { useConversationStore } from './src/hooks/useConversationStore';
|
|
25
|
+
export type { Conversation, ConversationGroup } from './src/hooks/useConversationStore';
|
|
26
|
+
|
|
27
|
+
// Export UI components
|
|
28
|
+
export * from './src/components/ui';
|
package/package.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@hef2024/llmasaservice-ui",
|
|
3
|
+
"version": "0.16.8",
|
|
4
|
+
"description": "Prebuilt UI components for LLMAsAService.io",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "tsup index.ts --format cjs,esm --dts",
|
|
10
|
+
"lint": "tsc",
|
|
11
|
+
"storybook": "storybook dev -p 6006",
|
|
12
|
+
"build-storybook": "storybook build",
|
|
13
|
+
"test": "vitest run",
|
|
14
|
+
"test:watch": "vitest"
|
|
15
|
+
},
|
|
16
|
+
"homepage": "https://llmasaservice.io",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/PredictabilityAtScale/llmasaservice-ui.git"
|
|
20
|
+
},
|
|
21
|
+
"author": "Predictability at Scale",
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@chromatic-com/storybook": "^2.0.2",
|
|
25
|
+
"@storybook/addon-essentials": "^8.3.6",
|
|
26
|
+
"@storybook/addon-interactions": "^8.3.6",
|
|
27
|
+
"@storybook/addon-links": "^8.3.6",
|
|
28
|
+
"@storybook/addon-onboarding": "^8.3.6",
|
|
29
|
+
"@storybook/addon-webpack5-compiler-swc": "^1.0.5",
|
|
30
|
+
"@storybook/blocks": "^8.3.6",
|
|
31
|
+
"@storybook/react": "^8.3.6",
|
|
32
|
+
"@storybook/react-webpack5": "^8.3.6",
|
|
33
|
+
"@storybook/test": "^8.3.6",
|
|
34
|
+
"@types/react": "^19.1.10",
|
|
35
|
+
"@types/react-dom": "^19.1.7",
|
|
36
|
+
"@types/react-syntax-highlighter": "^15.5.13",
|
|
37
|
+
"@testing-library/jest-dom": "^6.4.8",
|
|
38
|
+
"@testing-library/react": "^16.0.1",
|
|
39
|
+
"@testing-library/user-event": "^14.5.2",
|
|
40
|
+
"jsdom": "^24.1.3",
|
|
41
|
+
"react": "^19.1",
|
|
42
|
+
"react-dom": "^19.1",
|
|
43
|
+
"storybook": "^8.3.6",
|
|
44
|
+
"vitest": "^2.0.5",
|
|
45
|
+
"tsup": "^8.2.4",
|
|
46
|
+
"typescript": "^5.5.4"
|
|
47
|
+
},
|
|
48
|
+
"keywords": [
|
|
49
|
+
"react",
|
|
50
|
+
"llmasaservice",
|
|
51
|
+
"llm",
|
|
52
|
+
"openAI",
|
|
53
|
+
"chat"
|
|
54
|
+
],
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@modelcontextprotocol/sdk": "^1.10.2",
|
|
57
|
+
"dotenv": "^16.4.7",
|
|
58
|
+
"llmasaservice-client": "^0.10.4",
|
|
59
|
+
"process": "^0.11.10",
|
|
60
|
+
"react-markdown": "^9.0.1",
|
|
61
|
+
"react-syntax-highlighter": "^15.5.0",
|
|
62
|
+
"rehype-raw": "^7.0.0",
|
|
63
|
+
"remark-gfm": "^4.0.0",
|
|
64
|
+
"remark-html": "^16.0.1"
|
|
65
|
+
},
|
|
66
|
+
"peerDependencies": {
|
|
67
|
+
"react": "^19.1",
|
|
68
|
+
"react-dom": "^19.1"
|
|
69
|
+
}
|
|
70
|
+
}
|