@admin-layout/ai-chat-ext-browser 12.2.4-alpha.66
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/LICENSE +21 -0
- package/lib/components/ChatSettingsPanel/ChatSettingsPanel.d.ts +39 -0
- package/lib/components/ChatSettingsPanel/ChatSettingsPanel.d.ts.map +1 -0
- package/lib/components/ChatSettingsPanel/ChatSettingsPanel.js +1191 -0
- package/lib/components/ChatSettingsPanel/ChatSettingsPanel.js.map +1 -0
- package/lib/components/ChatSettingsPanel/ConnectedChatSettingsPanel.d.ts +19 -0
- package/lib/components/ChatSettingsPanel/ConnectedChatSettingsPanel.d.ts.map +1 -0
- package/lib/components/ChatSettingsPanel/ConnectedChatSettingsPanel.js +83 -0
- package/lib/components/ChatSettingsPanel/ConnectedChatSettingsPanel.js.map +1 -0
- package/lib/components/ChatSettingsPanel/index.d.ts +5 -0
- package/lib/components/ChatSettingsPanel/index.d.ts.map +1 -0
- package/lib/components/MessageWidgets/MessageAiAssistant.d.ts +13 -0
- package/lib/components/MessageWidgets/MessageAiAssistant.d.ts.map +1 -0
- package/lib/components/MessageWidgets/MessageAiAssistant.js +79 -0
- package/lib/components/MessageWidgets/MessageAiAssistant.js.map +1 -0
- package/lib/components/MessageWidgets/MessageCodeBlock.d.ts +14 -0
- package/lib/components/MessageWidgets/MessageCodeBlock.d.ts.map +1 -0
- package/lib/components/MessageWidgets/MessageCodeBlock.js +78 -0
- package/lib/components/MessageWidgets/MessageCodeBlock.js.map +1 -0
- package/lib/components/MessageWidgets/MessageService.d.ts +13 -0
- package/lib/components/MessageWidgets/MessageService.d.ts.map +1 -0
- package/lib/components/MessageWidgets/MessageService.js +74 -0
- package/lib/components/MessageWidgets/MessageService.js.map +1 -0
- package/lib/components/MessageWidgets/MessageThinking.d.ts +13 -0
- package/lib/components/MessageWidgets/MessageThinking.d.ts.map +1 -0
- package/lib/components/MessageWidgets/MessageThinking.js +41 -0
- package/lib/components/MessageWidgets/MessageThinking.js.map +1 -0
- package/lib/components/MessageWidgets/MessageToolUse.d.ts +14 -0
- package/lib/components/MessageWidgets/MessageToolUse.d.ts.map +1 -0
- package/lib/components/MessageWidgets/MessageToolUse.js +92 -0
- package/lib/components/MessageWidgets/MessageToolUse.js.map +1 -0
- package/lib/components/MessageWidgets/index.d.ts +11 -0
- package/lib/components/MessageWidgets/index.d.ts.map +1 -0
- package/lib/components/index.d.ts +4 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -0
- package/lib/interfaces/ai-chat.interface.d.ts +80 -0
- package/lib/interfaces/ai-chat.interface.d.ts.map +1 -0
- package/lib/interfaces/index.d.ts +2 -0
- package/lib/interfaces/index.d.ts.map +1 -0
- package/lib/module.d.ts +3 -0
- package/lib/module.d.ts.map +1 -0
- package/lib/module.js +21 -0
- package/lib/module.js.map +1 -0
- package/lib/routes.json +1 -0
- package/lib/slot-fill/chat-settings-fill.d.ts +3 -0
- package/lib/slot-fill/chat-settings-fill.d.ts.map +1 -0
- package/lib/slot-fill/chat-settings-fill.js +22 -0
- package/lib/slot-fill/chat-settings-fill.js.map +1 -0
- package/lib/slot-fill/index.d.ts +7 -0
- package/lib/slot-fill/index.d.ts.map +1 -0
- package/lib/slot-fill/message-ai-assistant-fill.d.ts +3 -0
- package/lib/slot-fill/message-ai-assistant-fill.d.ts.map +1 -0
- package/lib/slot-fill/message-ai-assistant-fill.js +12 -0
- package/lib/slot-fill/message-ai-assistant-fill.js.map +1 -0
- package/lib/slot-fill/message-codeblock-fill.d.ts +3 -0
- package/lib/slot-fill/message-codeblock-fill.d.ts.map +1 -0
- package/lib/slot-fill/message-codeblock-fill.js +18 -0
- package/lib/slot-fill/message-codeblock-fill.js.map +1 -0
- package/lib/slot-fill/message-service-fill.d.ts +3 -0
- package/lib/slot-fill/message-service-fill.d.ts.map +1 -0
- package/lib/slot-fill/message-service-fill.js +12 -0
- package/lib/slot-fill/message-service-fill.js.map +1 -0
- package/lib/slot-fill/message-thinking-fill.d.ts +3 -0
- package/lib/slot-fill/message-thinking-fill.d.ts.map +1 -0
- package/lib/slot-fill/message-thinking-fill.js +18 -0
- package/lib/slot-fill/message-thinking-fill.js.map +1 -0
- package/lib/slot-fill/message-tooluse-fill.d.ts +3 -0
- package/lib/slot-fill/message-tooluse-fill.d.ts.map +1 -0
- package/lib/slot-fill/message-tooluse-fill.js +18 -0
- package/lib/slot-fill/message-tooluse-fill.js.map +1 -0
- package/package.json +43 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import React,{useState}from'react';import {FiTool}from'@react-icons/all-files/fi/FiTool.js';import {FiChevronDown}from'@react-icons/all-files/fi/FiChevronDown.js';import {FiCheck}from'@react-icons/all-files/fi/FiCheck.js';import {FiAlertCircle}from'@react-icons/all-files/fi/FiAlertCircle.js';import {FiLoader}from'@react-icons/all-files/fi/FiLoader.js';/**
|
|
2
|
+
* Tool Use / Function Call card — like VS Code Copilot agent tool calls,
|
|
3
|
+
* ChatGPT function calling, or Claude tool use. Shows tool name, status,
|
|
4
|
+
* input args, and output.
|
|
5
|
+
*/
|
|
6
|
+
const MessageToolUse = props => {
|
|
7
|
+
const {
|
|
8
|
+
message,
|
|
9
|
+
index
|
|
10
|
+
} = props;
|
|
11
|
+
const {
|
|
12
|
+
attachment
|
|
13
|
+
} = message.propsConfiguration?.contents ?? {};
|
|
14
|
+
const [expanded, setExpanded] = useState(false);
|
|
15
|
+
if (!attachment) return null;
|
|
16
|
+
const statusConfig = {
|
|
17
|
+
pending: {
|
|
18
|
+
icon: React.createElement(FiLoader, {
|
|
19
|
+
className: "w-3.5 h-3.5 text-gray-400"
|
|
20
|
+
}),
|
|
21
|
+
label: 'Pending',
|
|
22
|
+
color: 'text-gray-500',
|
|
23
|
+
bg: 'bg-gray-100 dark:bg-gray-800'
|
|
24
|
+
},
|
|
25
|
+
running: {
|
|
26
|
+
icon: React.createElement(FiLoader, {
|
|
27
|
+
className: "w-3.5 h-3.5 text-blue-500 animate-spin"
|
|
28
|
+
}),
|
|
29
|
+
label: 'Running...',
|
|
30
|
+
color: 'text-blue-600 dark:text-blue-400',
|
|
31
|
+
bg: 'bg-blue-50 dark:bg-blue-900/20'
|
|
32
|
+
},
|
|
33
|
+
success: {
|
|
34
|
+
icon: React.createElement(FiCheck, {
|
|
35
|
+
className: "w-3.5 h-3.5 text-green-500"
|
|
36
|
+
}),
|
|
37
|
+
label: 'Success',
|
|
38
|
+
color: 'text-green-600 dark:text-green-400',
|
|
39
|
+
bg: 'bg-green-50 dark:bg-green-900/20'
|
|
40
|
+
},
|
|
41
|
+
error: {
|
|
42
|
+
icon: React.createElement(FiAlertCircle, {
|
|
43
|
+
className: "w-3.5 h-3.5 text-red-500"
|
|
44
|
+
}),
|
|
45
|
+
label: 'Error',
|
|
46
|
+
color: 'text-red-600 dark:text-red-400',
|
|
47
|
+
bg: 'bg-red-50 dark:bg-red-900/20'
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
const cfg = statusConfig[attachment.status] || statusConfig.pending;
|
|
51
|
+
const formatDuration = ms => {
|
|
52
|
+
if (ms < 1000) return `${ms}ms`;
|
|
53
|
+
return `${(ms / 1000).toFixed(1)}s`;
|
|
54
|
+
};
|
|
55
|
+
return React.createElement("div", {
|
|
56
|
+
key: `${index}`,
|
|
57
|
+
className: `my-2 mx-2 rounded-lg border border-gray-200 dark:border-gray-700 overflow-hidden ${cfg.bg}`
|
|
58
|
+
}, React.createElement("button", {
|
|
59
|
+
className: "flex items-center gap-2 w-full text-left px-3 py-2 hover:bg-black/5 dark:hover:bg-white/5 transition-colors",
|
|
60
|
+
onClick: () => setExpanded(!expanded)
|
|
61
|
+
}, React.createElement(FiTool, {
|
|
62
|
+
className: "w-4 h-4 text-gray-500 flex-shrink-0"
|
|
63
|
+
}), React.createElement("span", {
|
|
64
|
+
className: "text-xs font-mono font-semibold text-gray-700 dark:text-gray-300 truncate"
|
|
65
|
+
}, attachment.toolName), attachment.description && React.createElement("span", {
|
|
66
|
+
className: "text-xs text-gray-400 dark:text-gray-500 truncate hidden sm:inline"
|
|
67
|
+
}, "\u2014 ", attachment.description), React.createElement("div", {
|
|
68
|
+
className: "ml-auto flex items-center gap-1.5 flex-shrink-0"
|
|
69
|
+
}, attachment.durationMs != null && React.createElement("span", {
|
|
70
|
+
className: "text-[10px] text-gray-400"
|
|
71
|
+
}, formatDuration(attachment.durationMs)), React.createElement("span", {
|
|
72
|
+
className: `flex items-center gap-1 text-xs ${cfg.color}`
|
|
73
|
+
}, cfg.icon, " ", cfg.label), React.createElement(FiChevronDown, {
|
|
74
|
+
className: `w-3.5 h-3.5 text-gray-400 transition-transform ${expanded ? '' : '-rotate-90'}`
|
|
75
|
+
}))), expanded && React.createElement("div", {
|
|
76
|
+
className: "px-3 pb-3 border-t border-gray-200 dark:border-gray-700"
|
|
77
|
+
}, attachment.input && Object.keys(attachment.input).length > 0 && React.createElement("div", {
|
|
78
|
+
className: "mt-2"
|
|
79
|
+
}, React.createElement("p", {
|
|
80
|
+
className: "text-[10px] font-medium text-gray-400 uppercase tracking-wide mb-1"
|
|
81
|
+
}, "Input"), React.createElement("pre", {
|
|
82
|
+
className: "text-xs font-mono bg-white dark:bg-gray-900 rounded p-2 overflow-x-auto text-gray-700 dark:text-gray-300 max-h-40 overflow-y-auto"
|
|
83
|
+
}, JSON.stringify(attachment.input, null, 2))), attachment.output && React.createElement("div", {
|
|
84
|
+
className: "mt-2"
|
|
85
|
+
}, React.createElement("p", {
|
|
86
|
+
className: "text-[10px] font-medium text-gray-400 uppercase tracking-wide mb-1"
|
|
87
|
+
}, "Output"), React.createElement("pre", {
|
|
88
|
+
className: "text-xs font-mono bg-white dark:bg-gray-900 rounded p-2 overflow-x-auto text-gray-700 dark:text-gray-300 max-h-40 overflow-y-auto whitespace-pre-wrap"
|
|
89
|
+
}, attachment.output)), attachment.error && React.createElement("div", {
|
|
90
|
+
className: "mt-2 text-xs text-red-600 dark:text-red-400 bg-red-50 dark:bg-red-900/20 rounded p-2"
|
|
91
|
+
}, attachment.error)));
|
|
92
|
+
};export{MessageToolUse};//# sourceMappingURL=MessageToolUse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageToolUse.js","sources":["../../../src/components/MessageWidgets/MessageToolUse.tsx"],"sourcesContent":[null],"names":[],"mappings":"kWAeA;;;;AAIG;AACI,MAAM,cAAc,GAAG,KAAC,IAA6B;AACxD,EAAA,MAAA;AACA,IAAA,OAAM;IAIN;AAEA,GAAA,GAAA,KAAK;AAAY,EAAA,MAAA;AAEjB,IAAA;AACI,GAAA,GAAA,OAAA,CAAA,kBAAS,EAAA,QAAA,IAAA,EAAA;AACL,EAAA,MAAA,CAAA,UAAM,WAAA,CAAA,GAAA,QAAC,CAAA;AACP,EAAA,IAAA,CAAA,UAAK,EAAE,OAAA,IAAS;AAChB,EAAA,MAAA,YAAO,GAAA;AACP,IAAA,OAAA,EAAA;AACH,MAAA,IAAA,EAAA,KAAA,CAAA,aAAA,CAAA,QAAA,EAAA;AACD,QAAA,SAAS,EAAA;AACL,OAAA,CAAA;AACA,MAAA,KAAA,EAAA,SAAO;AACP,MAAA,KAAA,EAAA,eAAO;AACP,MAAA,EAAA,EAAA;AACH,KAAA;AACD,IAAA,OAAA,EAAA;AACI,MAAA,IAAA,EAAA,MAAM,aAAA,CAAA,QAAC,EAAA;AACP,QAAA,SAAK,EAAE;AACP,OAAA,CAAA;AACA,MAAA,KAAA,EAAA,YAAI;AACP,MAAA,KAAA,EAAA,kCAAA;AACD,MAAA,EAAA,EAAA;AACI,KAAA;AACA,IAAA,OAAA,EAAA;AACA,MAAA,IAAA,EAAA,KAAK,cAAE,CAAA,OAAA,EAAA;AACP,QAAA,SAAI,EAAA;AACP,OAAA,CAAA;MACH,KAAA,EAAA,SAAA;AAEF,MAAA,KAAM,EAAG,oCAAkC;AAE3C,MAAA,EAAA,EAAM;;;AAEF,MAAA,IAAA,EAAA,KAAO,CAAG,aAAY,CAAA,aAAc,EAAA;AACxC,QAAE,SAAA,EAAA;AAEF,OAAA,CAAA;AAMQ,MAAA,KAAA,EAAA,OAAA;AAII,MAAA,KAAA,EAAA,gCAAQ;AACR,MAAA,EAAA,EAAA;AAGC;;0BAEoB,CAAC,UAAA,CAAW,MAEhC,CAAA,IAAA,YAAA,CAAA,OAAA;sBACD,GAAA,EAAA,IAAA;AACK,IAAA,IAAA,EAAA,GAAA,IAAA,EAAA,OAAU,CAAC,EAAA,EAAA,CAAA,EAAA,CAAA;AAGZ,IAAA,OAAA,CAAA,EAAA,CAAA,EAAA,GAAA,IAAA,EAAA,OAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACK,EAAA,CAAA;;;AAEL,IAAA,SAAA,EAAA,CAAA,iFACe,EAAA,GAAA,CAAA,EAAA,CAAA;AAMtB,GAAA,EAAA,KAAA,CAAA,aACG,CAAA,QAAA,EAAA;aAEK,EAAA,6GACwB;mBACjB,WAAA,CAAA,CAAA,QAAA;AACA,GAAA,EAAA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA;AAOP,IAAA,SAAA,EAAA;yBAEO,CAAA,MAAA,EAAA;;AAQP,GAAA,EAAA,UAAA,CAAA,QAAW,CAAA,EAAA,UACR,CAAA,WAAA,IAAA,KAAA,CAAA,cAAe,MAAA,EAAA;AAQvC,IAAE,SAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { MessageAiAssistant } from './MessageAiAssistant';
|
|
2
|
+
export type { IMessageAiAssistantProps } from './MessageAiAssistant';
|
|
3
|
+
export { MessageThinking } from './MessageThinking';
|
|
4
|
+
export type { IMessageThinkingProps } from './MessageThinking';
|
|
5
|
+
export { MessageCodeBlock } from './MessageCodeBlock';
|
|
6
|
+
export type { IMessageCodeBlockProps } from './MessageCodeBlock';
|
|
7
|
+
export { MessageToolUse } from './MessageToolUse';
|
|
8
|
+
export type { IMessageToolUseProps } from './MessageToolUse';
|
|
9
|
+
export { MessageService } from './MessageService';
|
|
10
|
+
export type { IMessageServiceProps } from './MessageService';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MessageWidgets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { MessageAiAssistant, MessageThinking, MessageCodeBlock, MessageToolUse, MessageService, } from './MessageWidgets';
|
|
2
|
+
export { ChatSettingsPanel, ConnectedChatSettingsPanel } from './ChatSettingsPanel';
|
|
3
|
+
export type { ChatSettingsPanelProps, SettingsEntry, ConnectedChatSettingsPanelProps } from './ChatSettingsPanel';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,cAAc,GACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACpF,YAAY,EAAE,sBAAsB,EAAE,aAAa,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC"}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,UAAU,CAAC"}
|
package/lib/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{feature as default}from'./module.js';//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
export interface AiAssistantAttachmentsInterface {
|
|
2
|
+
/** The model that generated the response (e.g. "GPT-4o", "Claude 3.5") */
|
|
3
|
+
model?: string;
|
|
4
|
+
/** Markdown-formatted response body */
|
|
5
|
+
body: string;
|
|
6
|
+
/** Whether the response is still streaming */
|
|
7
|
+
isStreaming?: boolean;
|
|
8
|
+
/** Token usage info */
|
|
9
|
+
usage?: {
|
|
10
|
+
promptTokens?: number;
|
|
11
|
+
completionTokens?: number;
|
|
12
|
+
totalTokens?: number;
|
|
13
|
+
};
|
|
14
|
+
/** Optional sources / references cited */
|
|
15
|
+
sources?: Array<{
|
|
16
|
+
title: string;
|
|
17
|
+
url?: string;
|
|
18
|
+
snippet?: string;
|
|
19
|
+
}>;
|
|
20
|
+
}
|
|
21
|
+
export interface ThinkingAttachmentsInterface {
|
|
22
|
+
/** The thinking/reasoning text (may be markdown) */
|
|
23
|
+
thought: string;
|
|
24
|
+
/** Duration of thinking in ms */
|
|
25
|
+
durationMs?: number;
|
|
26
|
+
/** Label shown on the header (e.g. "Reasoning", "Thinking...") */
|
|
27
|
+
label?: string;
|
|
28
|
+
/** Whether thinking is still in progress */
|
|
29
|
+
isThinking?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface CodeBlockAttachmentsInterface {
|
|
32
|
+
/** The code content */
|
|
33
|
+
code: string;
|
|
34
|
+
/** Programming language for syntax highlighting */
|
|
35
|
+
language?: string;
|
|
36
|
+
/** Optional filename for context */
|
|
37
|
+
filename?: string;
|
|
38
|
+
/** Optional title/description above the code */
|
|
39
|
+
title?: string;
|
|
40
|
+
/** Whether this is a diff/patch */
|
|
41
|
+
isDiff?: boolean;
|
|
42
|
+
/** Action to apply (e.g. "create", "edit", "run") */
|
|
43
|
+
action?: 'create' | 'edit' | 'run' | 'copy';
|
|
44
|
+
}
|
|
45
|
+
export interface ToolUseAttachmentsInterface {
|
|
46
|
+
/** Tool/function name */
|
|
47
|
+
toolName: string;
|
|
48
|
+
/** Human-readable description of what the tool does */
|
|
49
|
+
description?: string;
|
|
50
|
+
/** Input arguments (displayed as JSON or key-value) */
|
|
51
|
+
input?: Record<string, unknown>;
|
|
52
|
+
/** Tool output/result */
|
|
53
|
+
output?: string;
|
|
54
|
+
/** Status of the tool execution */
|
|
55
|
+
status: 'pending' | 'running' | 'success' | 'error';
|
|
56
|
+
/** Duration of execution in ms */
|
|
57
|
+
durationMs?: number;
|
|
58
|
+
/** Error message if failed */
|
|
59
|
+
error?: string;
|
|
60
|
+
}
|
|
61
|
+
export interface ServiceAttachmentsInterface {
|
|
62
|
+
/** Notification title */
|
|
63
|
+
title: string;
|
|
64
|
+
/** Whether title is HTML */
|
|
65
|
+
isTitleHtml?: boolean;
|
|
66
|
+
/** Body text */
|
|
67
|
+
body?: string;
|
|
68
|
+
/** Severity level */
|
|
69
|
+
severity: 'info' | 'warning' | 'error' | 'success';
|
|
70
|
+
/** Optional icon name */
|
|
71
|
+
icon?: string;
|
|
72
|
+
/** Optional action button */
|
|
73
|
+
action?: {
|
|
74
|
+
title: string;
|
|
75
|
+
link: string;
|
|
76
|
+
};
|
|
77
|
+
/** Timestamp */
|
|
78
|
+
timestamp?: string;
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=ai-chat.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-chat.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/ai-chat.interface.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,+BAA+B;IAC5C,0EAA0E;IAC1E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,uBAAuB;IACvB,KAAK,CAAC,EAAE;QACJ,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,0CAA0C;IAC1C,OAAO,CAAC,EAAE,KAAK,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC,CAAC;CACN;AAGD,MAAM,WAAW,4BAA4B;IACzC,oDAAoD;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB,iCAAiC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAGD,MAAM,WAAW,6BAA6B;IAC1C,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,mDAAmD;IACnD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mCAAmC;IACnC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,qDAAqD;IACrD,MAAM,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;CAC/C;AAGD,MAAM,WAAW,2BAA2B;IACxC,yBAAyB;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,yBAAyB;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mCAAmC;IACnC,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IACpD,kCAAkC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAGD,MAAM,WAAW,2BAA2B;IACxC,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,4BAA4B;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gBAAgB;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IACnD,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,MAAM,CAAC,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,gBAAgB;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,+BAA+B,EAC/B,4BAA4B,EAC5B,6BAA6B,EAC7B,2BAA2B,EAC3B,2BAA2B,GAC9B,MAAM,qBAAqB,CAAC"}
|
package/lib/module.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAWrD,eAAO,MAAM,OAAO,SA2BlB,CAAC"}
|
package/lib/module.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {Feature}from'@common-stack/client-react';import {PostTypeEnum}from'common';import {MessageAiAssistantFill}from'./slot-fill/message-ai-assistant-fill.js';import {MessageThinkingFill}from'./slot-fill/message-thinking-fill.js';import {MessageCodeBlockFill}from'./slot-fill/message-codeblock-fill.js';import {MessageToolUseFill}from'./slot-fill/message-tooluse-fill.js';import {MessageServiceFill}from'./slot-fill/message-service-fill.js';import {ChatSettingsFill}from'./slot-fill/chat-settings-fill.js';const feature = new Feature({
|
|
2
|
+
componentFillPlugins: [{
|
|
3
|
+
name: PostTypeEnum.Aiassistant.toLowerCase(),
|
|
4
|
+
render: MessageAiAssistantFill
|
|
5
|
+
}, {
|
|
6
|
+
name: 'thinking',
|
|
7
|
+
render: MessageThinkingFill
|
|
8
|
+
}, {
|
|
9
|
+
name: 'codeblock',
|
|
10
|
+
render: MessageCodeBlockFill
|
|
11
|
+
}, {
|
|
12
|
+
name: 'tooluse',
|
|
13
|
+
render: MessageToolUseFill
|
|
14
|
+
}, {
|
|
15
|
+
name: PostTypeEnum.Service.toLowerCase(),
|
|
16
|
+
render: MessageServiceFill
|
|
17
|
+
}, {
|
|
18
|
+
name: 'chat-settings',
|
|
19
|
+
render: ChatSettingsFill
|
|
20
|
+
}]
|
|
21
|
+
});export{feature};//# sourceMappingURL=module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.js","sources":["../src/module.ts"],"sourcesContent":[null],"names":[],"mappings":"4fAWO,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC;AAC/B,EAAA,oBAAA,EAAoB,CAAA;AAChB,IAAA,IAAA,EAAA,YAAA,CAAA,WAAA,CAAA,WAAA,EAAA;AACI,IAAA,MAAA,EAAA;AACA,GAAA,EAAA;AACH,IAAA,IAAA,EAAA,UAAA;AACD,IAAA,MAAA,EAAA;AACI,GAAA,EAAA;AACA,IAAA,IAAA,EAAA,WAAQ;AACX,IAAA,MAAA,EAAA;AACD,GAAA,EAAA;AACI,IAAA,IAAA,EAAA,SAAM;AACN,IAAA,MAAA,EAAA;AACH,GAAA,EAAA;AACD,IAAA,IAAA,EAAA,YAAA,CAAA,OAAA,CAAA,WAAA,EAAA;AACI,IAAA,MAAA,EAAA;AACA,GAAA,EAAA;AACH,IAAA,IAAA,EAAA,eAAA;AACD,IAAA,MAAA,EAAA;AACI,GAAA;AACA,CAAA"}
|
package/lib/routes.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-settings-fill.d.ts","sourceRoot":"","sources":["../../src/slot-fill/chat-settings-fill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,eAAO,MAAM,gBAAgB,yBAuB5B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from'react';import {Fill}from'@common-stack/components-pro';import'@react-icons/all-files/fi/FiCpu.js';import'@react-icons/all-files/fi/FiChevronDown.js';import'@react-icons/all-files/fi/FiCopy.js';import'@react-icons/all-files/fi/FiCheck.js';import'@react-icons/all-files/fi/FiExternalLink.js';import'@react-icons/all-files/fi/FiCode.js';import'@react-icons/all-files/fi/FiFile.js';import'@react-icons/all-files/fi/FiTool.js';import'@react-icons/all-files/fi/FiAlertCircle.js';import'@react-icons/all-files/fi/FiLoader.js';import'@react-icons/all-files/fi/FiInfo.js';import'@react-icons/all-files/fi/FiAlertTriangle.js';import'@react-icons/all-files/fi/FiCheckCircle.js';import'html-react-parser';import'@react-icons/all-files/fi/FiSearch.js';import'@react-icons/all-files/fi/FiX.js';import'@react-icons/all-files/fi/FiRefreshCw.js';import'@react-icons/all-files/fi/FiEdit2.js';import'@react-icons/all-files/fi/FiPlus.js';import'@react-icons/all-files/fi/FiTrash2.js';import {ConnectedChatSettingsPanel}from'../components/ChatSettingsPanel/ConnectedChatSettingsPanel.js';/**
|
|
2
|
+
* Fill name: "chat-settings"
|
|
3
|
+
* Provides a <Slot name="chat-settings"> fill that renders the
|
|
4
|
+
* full chat configuration panel wherever asked for in the host app.
|
|
5
|
+
*
|
|
6
|
+
* Props forwarded: channelId?, compact?, className?, activeTab?
|
|
7
|
+
*/
|
|
8
|
+
const SETTINGS_FILL_NAME = 'chat-settings';
|
|
9
|
+
const ChatSettingsFill = () => {
|
|
10
|
+
return React.createElement(Fill, {
|
|
11
|
+
name: SETTINGS_FILL_NAME
|
|
12
|
+
}, props => {
|
|
13
|
+
if (props.active) {
|
|
14
|
+
return React.createElement(ConnectedChatSettingsPanel, {
|
|
15
|
+
channelId: props.channelId,
|
|
16
|
+
compact: props.compact,
|
|
17
|
+
className: props.className
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return null;
|
|
21
|
+
});
|
|
22
|
+
};export{ChatSettingsFill};//# sourceMappingURL=chat-settings-fill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-settings-fill.js","sources":["../../src/slot-fill/chat-settings-fill.tsx"],"sourcesContent":[null],"names":[],"mappings":"6jCAIA;;;;;;AAMG;AACH,MAAM,kBAAkB,GAAG,eAAe;AAEnC,MAAM,gBAAgB,GAAG,MAAK;SACjC,KACI,CAAA,aAAA,CAAA,IAAC,EAAA;AAQO,IAAA,IAAA,EAAA;cACI;QAOJ,KAAC,CAAA,MAAA,EAAA;AACD,MAAA,OAAA,MAAW,aAAC,CAAA,0BAAA,EAAA;QAGtB,SAAA,EAAA,KAAA,CAAA,SAAA;AACN,QAAE,OAAA,EAAA,KAAA,CAAA,OAAA;;;;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { MessageAiAssistantFill } from './message-ai-assistant-fill';
|
|
2
|
+
export { MessageThinkingFill } from './message-thinking-fill';
|
|
3
|
+
export { MessageCodeBlockFill } from './message-codeblock-fill';
|
|
4
|
+
export { MessageToolUseFill } from './message-tooluse-fill';
|
|
5
|
+
export { MessageServiceFill } from './message-service-fill';
|
|
6
|
+
export { ChatSettingsFill } from './chat-settings-fill';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/slot-fill/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-ai-assistant-fill.d.ts","sourceRoot":"","sources":["../../src/slot-fill/message-ai-assistant-fill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,eAAO,MAAM,sBAAsB,yBAWlC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from'react';import {Fill}from'@common-stack/components-pro';import {PostTypeEnum}from'common';import {MessageAiAssistant}from'../components/MessageWidgets/MessageAiAssistant.js';import'@react-icons/all-files/fi/FiChevronDown.js';import'@react-icons/all-files/fi/FiCode.js';import'@react-icons/all-files/fi/FiCopy.js';import'@react-icons/all-files/fi/FiCheck.js';import'@react-icons/all-files/fi/FiFile.js';import'@react-icons/all-files/fi/FiTool.js';import'@react-icons/all-files/fi/FiAlertCircle.js';import'@react-icons/all-files/fi/FiLoader.js';import'@react-icons/all-files/fi/FiInfo.js';import'@react-icons/all-files/fi/FiAlertTriangle.js';import'@react-icons/all-files/fi/FiCheckCircle.js';import'@react-icons/all-files/fi/FiExternalLink.js';import'html-react-parser';import'@react-icons/all-files/fi/FiSearch.js';import'@react-icons/all-files/fi/FiX.js';import'@react-icons/all-files/fi/FiRefreshCw.js';import'@react-icons/all-files/fi/FiEdit2.js';import'@react-icons/all-files/fi/FiPlus.js';import'@react-icons/all-files/fi/FiTrash2.js';import'../components/ChatSettingsPanel/ConnectedChatSettingsPanel.js';const MessageAiAssistantFill = () => {
|
|
2
|
+
return React.createElement(Fill, {
|
|
3
|
+
name: PostTypeEnum.Aiassistant.toLowerCase()
|
|
4
|
+
}, props => {
|
|
5
|
+
if (props.active) {
|
|
6
|
+
return React.createElement(MessageAiAssistant, {
|
|
7
|
+
...props
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
return null;
|
|
11
|
+
});
|
|
12
|
+
};export{MessageAiAssistantFill};//# sourceMappingURL=message-ai-assistant-fill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-ai-assistant-fill.js","sources":["../../src/slot-fill/message-ai-assistant-fill.tsx"],"sourcesContent":[null],"names":[],"mappings":"umCAMO,MAAM,sBAAsB,GAAG,MAAK;AACvC,EAAA,OAAA,KACI,CAAA,aAAA,CAAA,IAAC,EAAA;AAEO,IAAA,IAAA,EAAA,YAAU,CAAA,WAAS,CAAA,WAAA;AACf,GAAA,EAAA,KAAA,IAAA;QACJ,KAAC,CAAA,MAAA,EAAA;AACD,MAAA,OAAA,MAAW,aAAC,CAAA,kBAAA,EAAA;QAGtB,GAAA;AACN,OAAE,CAAA;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-codeblock-fill.d.ts","sourceRoot":"","sources":["../../src/slot-fill/message-codeblock-fill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,eAAO,MAAM,oBAAoB,yBAWhC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from'react';import {Fill}from'@common-stack/components-pro';import'@react-icons/all-files/fi/FiCpu.js';import'@react-icons/all-files/fi/FiChevronDown.js';import'@react-icons/all-files/fi/FiCopy.js';import'@react-icons/all-files/fi/FiCheck.js';import'@react-icons/all-files/fi/FiExternalLink.js';import {MessageCodeBlock}from'../components/MessageWidgets/MessageCodeBlock.js';import'@react-icons/all-files/fi/FiTool.js';import'@react-icons/all-files/fi/FiAlertCircle.js';import'@react-icons/all-files/fi/FiLoader.js';import'@react-icons/all-files/fi/FiInfo.js';import'@react-icons/all-files/fi/FiAlertTriangle.js';import'@react-icons/all-files/fi/FiCheckCircle.js';import'html-react-parser';import'@react-icons/all-files/fi/FiSearch.js';import'@react-icons/all-files/fi/FiX.js';import'@react-icons/all-files/fi/FiRefreshCw.js';import'@react-icons/all-files/fi/FiEdit2.js';import'@react-icons/all-files/fi/FiPlus.js';import'@react-icons/all-files/fi/FiTrash2.js';import'../components/ChatSettingsPanel/ConnectedChatSettingsPanel.js';/**
|
|
2
|
+
* Fill name: "codeblock"
|
|
3
|
+
* Note: PostTypeEnum doesn't have "CodeBlock" yet — we use a custom string.
|
|
4
|
+
* When added to the enum, switch to PostTypeEnum.Codeblock.toLowerCase().
|
|
5
|
+
*/
|
|
6
|
+
const CODEBLOCK_FILL_NAME = 'codeblock';
|
|
7
|
+
const MessageCodeBlockFill = () => {
|
|
8
|
+
return React.createElement(Fill, {
|
|
9
|
+
name: CODEBLOCK_FILL_NAME
|
|
10
|
+
}, props => {
|
|
11
|
+
if (props.active) {
|
|
12
|
+
return React.createElement(MessageCodeBlock, {
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return null;
|
|
17
|
+
});
|
|
18
|
+
};export{MessageCodeBlockFill};//# sourceMappingURL=message-codeblock-fill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-codeblock-fill.js","sources":["../../src/slot-fill/message-codeblock-fill.tsx"],"sourcesContent":[null],"names":[],"mappings":"ohCAKA;;;;AAIG;AACH,MAAM,mBAAmB,GAAG,WAAW;AAEhC,MAAM,oBAAoB,GAAG,MAAK;SACrC,KACI,CAAA,aAAA,CAAA,IAAC,EAAA;AAEO,IAAA,IAAA,EAAA;AACI,GAAA,EAAA,KAAA,IAAA;QACJ,KAAC,CAAA,MAAA,EAAA;AACD,MAAA,OAAA,MAAW,aAAC,CAAA,gBAAA,EAAA;QAGtB,GAAA;AACN,OAAE,CAAA;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-service-fill.d.ts","sourceRoot":"","sources":["../../src/slot-fill/message-service-fill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,eAAO,MAAM,kBAAkB,yBAW9B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from'react';import {Fill}from'@common-stack/components-pro';import {PostTypeEnum}from'common';import'@react-icons/all-files/fi/FiCpu.js';import'@react-icons/all-files/fi/FiChevronDown.js';import'@react-icons/all-files/fi/FiCopy.js';import'@react-icons/all-files/fi/FiCheck.js';import'@react-icons/all-files/fi/FiExternalLink.js';import'@react-icons/all-files/fi/FiCode.js';import'@react-icons/all-files/fi/FiFile.js';import'@react-icons/all-files/fi/FiTool.js';import'@react-icons/all-files/fi/FiAlertCircle.js';import'@react-icons/all-files/fi/FiLoader.js';import {MessageService}from'../components/MessageWidgets/MessageService.js';import'@react-icons/all-files/fi/FiSearch.js';import'@react-icons/all-files/fi/FiX.js';import'@react-icons/all-files/fi/FiRefreshCw.js';import'@react-icons/all-files/fi/FiEdit2.js';import'@react-icons/all-files/fi/FiPlus.js';import'@react-icons/all-files/fi/FiTrash2.js';import'../components/ChatSettingsPanel/ConnectedChatSettingsPanel.js';const MessageServiceFill = () => {
|
|
2
|
+
return React.createElement(Fill, {
|
|
3
|
+
name: PostTypeEnum.Service.toLowerCase()
|
|
4
|
+
}, props => {
|
|
5
|
+
if (props.active) {
|
|
6
|
+
return React.createElement(MessageService, {
|
|
7
|
+
...props
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
return null;
|
|
11
|
+
});
|
|
12
|
+
};export{MessageServiceFill};//# sourceMappingURL=message-service-fill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-service-fill.js","sources":["../../src/slot-fill/message-service-fill.tsx"],"sourcesContent":[null],"names":[],"mappings":"49BAMO,MAAM,kBAAkB,GAAG,MAAK;AACnC,EAAA,OAAA,KACI,CAAA,aAAA,CAAA,IAAC,EAAA;AAEO,IAAA,IAAA,EAAA,YAAU,CAAA,OAAS,CAAA,WAAA;AACf,GAAA,EAAA,KAAA,IAAA;QACJ,KAAC,CAAA,MAAA,EAAA;AACD,MAAA,OAAA,MAAW,aAAC,CAAA,cAAA,EAAA;QAGtB,GAAA;AACN,OAAE,CAAA;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-thinking-fill.d.ts","sourceRoot":"","sources":["../../src/slot-fill/message-thinking-fill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,eAAO,MAAM,mBAAmB,yBAW/B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from'react';import {Fill}from'@common-stack/components-pro';import'@react-icons/all-files/fi/FiCpu.js';import'@react-icons/all-files/fi/FiChevronDown.js';import'@react-icons/all-files/fi/FiCopy.js';import'@react-icons/all-files/fi/FiCheck.js';import'@react-icons/all-files/fi/FiExternalLink.js';import {MessageThinking}from'../components/MessageWidgets/MessageThinking.js';import'@react-icons/all-files/fi/FiCode.js';import'@react-icons/all-files/fi/FiFile.js';import'@react-icons/all-files/fi/FiTool.js';import'@react-icons/all-files/fi/FiAlertCircle.js';import'@react-icons/all-files/fi/FiLoader.js';import'@react-icons/all-files/fi/FiInfo.js';import'@react-icons/all-files/fi/FiAlertTriangle.js';import'@react-icons/all-files/fi/FiCheckCircle.js';import'html-react-parser';import'@react-icons/all-files/fi/FiSearch.js';import'@react-icons/all-files/fi/FiX.js';import'@react-icons/all-files/fi/FiRefreshCw.js';import'@react-icons/all-files/fi/FiEdit2.js';import'@react-icons/all-files/fi/FiPlus.js';import'@react-icons/all-files/fi/FiTrash2.js';import'../components/ChatSettingsPanel/ConnectedChatSettingsPanel.js';/**
|
|
2
|
+
* Fill name: "thinking"
|
|
3
|
+
* Note: PostTypeEnum doesn't have "Thinking" yet — we use a custom string.
|
|
4
|
+
* When added to the enum, switch to PostTypeEnum.Thinking.toLowerCase().
|
|
5
|
+
*/
|
|
6
|
+
const THINKING_FILL_NAME = 'thinking';
|
|
7
|
+
const MessageThinkingFill = () => {
|
|
8
|
+
return React.createElement(Fill, {
|
|
9
|
+
name: THINKING_FILL_NAME
|
|
10
|
+
}, props => {
|
|
11
|
+
if (props.active) {
|
|
12
|
+
return React.createElement(MessageThinking, {
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return null;
|
|
17
|
+
});
|
|
18
|
+
};export{MessageThinkingFill};//# sourceMappingURL=message-thinking-fill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-thinking-fill.js","sources":["../../src/slot-fill/message-thinking-fill.tsx"],"sourcesContent":[null],"names":[],"mappings":"0mCAKA;;;;AAIG;AACH,MAAM,kBAAkB,GAAG,UAAU;AAE9B,MAAM,mBAAmB,GAAG,MAAK;SACpC,KACI,CAAA,aAAA,CAAA,IAAC,EAAA;AAEO,IAAA,IAAA,EAAA;AACI,GAAA,EAAA,KAAA,IAAA;QACJ,KAAC,CAAA,MAAA,EAAA;AACD,MAAA,OAAA,MAAW,aAAC,CAAA,eAAA,EAAA;QAGtB,GAAA;AACN,OAAE,CAAA;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-tooluse-fill.d.ts","sourceRoot":"","sources":["../../src/slot-fill/message-tooluse-fill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,eAAO,MAAM,kBAAkB,yBAW9B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from'react';import {Fill}from'@common-stack/components-pro';import'@react-icons/all-files/fi/FiCpu.js';import'@react-icons/all-files/fi/FiChevronDown.js';import'@react-icons/all-files/fi/FiCopy.js';import'@react-icons/all-files/fi/FiCheck.js';import'@react-icons/all-files/fi/FiExternalLink.js';import'@react-icons/all-files/fi/FiCode.js';import'@react-icons/all-files/fi/FiFile.js';import {MessageToolUse}from'../components/MessageWidgets/MessageToolUse.js';import'@react-icons/all-files/fi/FiInfo.js';import'@react-icons/all-files/fi/FiAlertTriangle.js';import'@react-icons/all-files/fi/FiAlertCircle.js';import'@react-icons/all-files/fi/FiCheckCircle.js';import'html-react-parser';import'@react-icons/all-files/fi/FiSearch.js';import'@react-icons/all-files/fi/FiX.js';import'@react-icons/all-files/fi/FiRefreshCw.js';import'@react-icons/all-files/fi/FiEdit2.js';import'@react-icons/all-files/fi/FiPlus.js';import'@react-icons/all-files/fi/FiTrash2.js';import'../components/ChatSettingsPanel/ConnectedChatSettingsPanel.js';/**
|
|
2
|
+
* Fill name: "tooluse"
|
|
3
|
+
* Note: PostTypeEnum doesn't have "ToolUse" yet — we use a custom string.
|
|
4
|
+
* When added to the enum, switch to PostTypeEnum.Tooluse.toLowerCase().
|
|
5
|
+
*/
|
|
6
|
+
const TOOLUSE_FILL_NAME = 'tooluse';
|
|
7
|
+
const MessageToolUseFill = () => {
|
|
8
|
+
return React.createElement(Fill, {
|
|
9
|
+
name: TOOLUSE_FILL_NAME
|
|
10
|
+
}, props => {
|
|
11
|
+
if (props.active) {
|
|
12
|
+
return React.createElement(MessageToolUse, {
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return null;
|
|
17
|
+
});
|
|
18
|
+
};export{MessageToolUseFill};//# sourceMappingURL=message-tooluse-fill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-tooluse-fill.js","sources":["../../src/slot-fill/message-tooluse-fill.tsx"],"sourcesContent":[null],"names":[],"mappings":"8gCAKA;;;;AAIG;AACH,MAAM,iBAAiB,GAAG,SAAS;AAE5B,MAAM,kBAAkB,GAAG,MAAK;SACnC,KACI,CAAA,aAAA,CAAA,IAAC,EAAA;AAEO,IAAA,IAAA,EAAA;AACI,GAAA,EAAA,KAAA,IAAA;QACJ,KAAC,CAAA,MAAA,EAAA;AACD,MAAA,OAAA,MAAW,aAAC,CAAA,cAAA,EAAA;QAGtB,GAAA;AACN,OAAE,CAAA;;;;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@admin-layout/ai-chat-ext-browser",
|
|
3
|
+
"version": "12.2.4-alpha.66",
|
|
4
|
+
"description": "AI Chat extension for Messenger - supports AI assistant, thinking, code blocks, tool use, and service messages",
|
|
5
|
+
"license": "ISC",
|
|
6
|
+
"author": "CDMBase LLC",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "lib/index.js",
|
|
9
|
+
"module": "lib/index.js",
|
|
10
|
+
"typings": "lib/index.d.ts",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "npm run build:clean && npm run build:lib",
|
|
13
|
+
"build:clean": "rimraf lib",
|
|
14
|
+
"build:lib": "rollup -c rollup.config.mjs",
|
|
15
|
+
"build:lib:watch": "npm run build:lib -- --watch",
|
|
16
|
+
"jest": "./node_modules/.bin/jest",
|
|
17
|
+
"prepublish": "npm run build",
|
|
18
|
+
"test": "cross-env ENV_FILE=../../config/test/test.env jest",
|
|
19
|
+
"test:debug": "npm test -- --runInBand",
|
|
20
|
+
"test:watch": "npm test -- --watch",
|
|
21
|
+
"watch": "npm run build:lib:watch"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"html-react-parser": "^3.0.1"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"common": "link:../../../packages/common"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"@common-stack/client-react": "*",
|
|
31
|
+
"@common-stack/components-pro": "*",
|
|
32
|
+
"@messenger-box/platform-browser": "*",
|
|
33
|
+
"lodash-es": "*",
|
|
34
|
+
"react": ">=16.14.0"
|
|
35
|
+
},
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public"
|
|
38
|
+
},
|
|
39
|
+
"typescript": {
|
|
40
|
+
"definition": "lib/index.d.ts"
|
|
41
|
+
},
|
|
42
|
+
"gitHead": "e8a0dc6475f4596cf59177a973f4fd2638789783"
|
|
43
|
+
}
|