@camunda/copilot-chat 0.0.0-alpha7 → 0.0.0-alpha9
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 +58 -74
- package/dist/CopilotChat.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useAgentAdapter.d.ts +3 -0
- package/dist/hooks/useAgentAdapter.d.ts.map +1 -0
- package/dist/hooks/useCopilotSidecar.d.ts.map +1 -1
- package/dist/index.css +1 -29691
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5175 -24395
- package/dist/layout/SidecarLayoutManager.d.ts.map +1 -1
- package/dist/package.json +9 -5
- package/dist/store/agentStore.d.ts +5 -3
- package/dist/store/agentStore.d.ts.map +1 -1
- package/dist/store/chatStore.d.ts +5 -0
- package/dist/store/chatStore.d.ts.map +1 -1
- package/dist/store/index.d.ts +1 -0
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/messageContextStore.d.ts +21 -0
- package/dist/store/messageContextStore.d.ts.map +1 -0
- package/dist/styles/ensureSidecarStyles.d.ts.map +1 -1
- package/dist/types/agentTypes.d.ts +34 -0
- package/dist/types/agentTypes.d.ts.map +1 -1
- package/dist/types/chatTypes.d.ts +8 -1
- package/dist/types/chatTypes.d.ts.map +1 -1
- package/dist/utils/eventHandlers.d.ts +33 -0
- package/dist/utils/eventHandlers.d.ts.map +1 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/statusLabels.d.ts +3 -0
- package/dist/utils/statusLabels.d.ts.map +1 -0
- package/license.header +7 -0
- package/package.json +9 -5
- package/dist/components/ChatInput/ChatInput.d.ts +0 -9
- package/dist/components/ChatInput/ChatInput.d.ts.map +0 -1
- package/dist/components/ChatInput/index.d.ts +0 -2
- package/dist/components/ChatInput/index.d.ts.map +0 -1
- package/dist/components/ChatMessage/ChatMessage.d.ts +0 -7
- package/dist/components/ChatMessage/ChatMessage.d.ts.map +0 -1
- package/dist/components/ChatMessage/index.d.ts +0 -2
- package/dist/components/ChatMessage/index.d.ts.map +0 -1
- package/dist/components/ChatMessageList/ChatMessageList.d.ts +0 -9
- package/dist/components/ChatMessageList/ChatMessageList.d.ts.map +0 -1
- package/dist/components/ChatMessageList/index.d.ts +0 -2
- package/dist/components/ChatMessageList/index.d.ts.map +0 -1
- package/dist/components/CopilotHeader.d.ts +0 -7
- package/dist/components/CopilotHeader.d.ts.map +0 -1
- package/dist/components/CopilotLauncher.d.ts +0 -7
- package/dist/components/CopilotLauncher.d.ts.map +0 -1
- package/dist/components/CopilotStopButton.d.ts +0 -7
- package/dist/components/CopilotStopButton.d.ts.map +0 -1
- package/dist/components/MarkdownRenderer/MarkdownRenderer.d.ts +0 -6
- package/dist/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +0 -1
- package/dist/components/MarkdownRenderer/index.d.ts +0 -2
- package/dist/components/MarkdownRenderer/index.d.ts.map +0 -1
- package/dist/components/ThinkingIndicator/ThinkingIndicator.d.ts +0 -9
- package/dist/components/ThinkingIndicator/ThinkingIndicator.d.ts.map +0 -1
- package/dist/components/ThinkingIndicator/index.d.ts +0 -2
- package/dist/components/ThinkingIndicator/index.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidecarLayoutManager.d.ts","sourceRoot":"","sources":["../../src/layout/SidecarLayoutManager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidecarLayoutManager.d.ts","sourceRoot":"","sources":["../../src/layout/SidecarLayoutManager.ts"],"names":[],"mappings":"AAOA,OAAO,2BAA2B,CAAC;AAInC,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAsMD,eAAO,MAAM,mBAAmB,GAAI,4DAKjC,mBAAmB,eAqBrB,CAAC"}
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/copilot-chat",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-alpha9",
|
|
4
4
|
"description": "Camunda Copilot Client Library - React components and utilities for Camunda Platform 8",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
"require": "./dist/index.js",
|
|
14
14
|
"default": "./dist/index.js"
|
|
15
15
|
},
|
|
16
|
+
"./style.css": {
|
|
17
|
+
"import": "./dist/index.css",
|
|
18
|
+
"default": "./dist/index.css"
|
|
19
|
+
},
|
|
16
20
|
"./package.json": "./package.json"
|
|
17
21
|
},
|
|
18
22
|
"files": [
|
|
@@ -44,13 +48,13 @@
|
|
|
44
48
|
"npm": ">=9.0.0"
|
|
45
49
|
},
|
|
46
50
|
"dependencies": {
|
|
47
|
-
"@carbon/ai-chat-components": "^0.5.0",
|
|
48
|
-
"@carbon/react": "1.95.0",
|
|
49
|
-
"@carbon/styles": "^1.68.0",
|
|
50
|
-
"react-markdown": "^9.0.1",
|
|
51
51
|
"zustand": "^5.0.2"
|
|
52
52
|
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@camunda/copilot-components": "file:../copilot-components"
|
|
55
|
+
},
|
|
53
56
|
"peerDependencies": {
|
|
57
|
+
"@carbon/react": "^1.92.0",
|
|
54
58
|
"react": ">=18.0.0 <20.0.0",
|
|
55
59
|
"react-dom": ">=18.0.0 <20.0.0"
|
|
56
60
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AgentEvent, AgentResult, FrontendTool, EventTypeValue } from '../types/agentTypes';
|
|
2
2
|
interface AgentStoreState {
|
|
3
3
|
readonly conversationId: string | null;
|
|
4
4
|
readonly currentMessageId: string | null;
|
|
5
|
-
readonly
|
|
5
|
+
readonly isBusy: boolean;
|
|
6
|
+
readonly currentEventType: EventTypeValue | null;
|
|
7
|
+
readonly currentToolName: string | null;
|
|
6
8
|
readonly pendingToolInvoke: {
|
|
7
9
|
readonly toolName: string;
|
|
8
10
|
readonly toolArguments: Record<string, unknown>;
|
|
@@ -19,8 +21,8 @@ interface AgentStoreActions {
|
|
|
19
21
|
readonly reset: () => void;
|
|
20
22
|
}
|
|
21
23
|
type AgentStore = AgentStoreState & AgentStoreActions;
|
|
22
|
-
export declare const selectAgentState: (state: AgentStoreState) => AgentStateType;
|
|
23
24
|
export declare const selectIsBusy: (state: AgentStoreState) => boolean;
|
|
25
|
+
export declare const selectAgentState: (state: AgentStoreState) => string;
|
|
24
26
|
export declare const useAgentStore: import('zustand').UseBoundStore<import('zustand').StoreApi<AgentStore>>;
|
|
25
27
|
export {};
|
|
26
28
|
//# sourceMappingURL=agentStore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentStore.d.ts","sourceRoot":"","sources":["../../src/store/agentStore.ts"],"names":[],"mappings":"AASA,OAAO,
|
|
1
|
+
{"version":3,"file":"agentStore.d.ts","sourceRoot":"","sources":["../../src/store/agentStore.ts"],"names":[],"mappings":"AASA,OAAO,EAIL,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,cAAc,EACpB,MAAM,qBAAqB,CAAC;AAG7B,UAAU,eAAe;IACvB,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,gBAAgB,EAAE,cAAc,GAAG,IAAI,CAAC;IACjD,QAAQ,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,QAAQ,CAAC,iBAAiB,EAAE;QAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;QAC1B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACjD,GAAG,IAAI,CAAC;IACT,QAAQ,CAAC,iBAAiB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAChD,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,UAAU,iBAAiB;IACzB,QAAQ,CAAC,iBAAiB,EAAE,CAC1B,cAAc,EAAE,MAAM,EACtB,SAAS,EAAE,MAAM,KACd,IAAI,CAAC;IACV,QAAQ,CAAC,gBAAgB,EAAE,CAAC,KAAK,EAAE,SAAS,YAAY,EAAE,KAAK,IAAI,CAAC;IACpE,QAAQ,CAAC,YAAY,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,WAAW,GAAG,IAAI,CAAC;IACjE,QAAQ,CAAC,gBAAgB,EAAE,MAAM,IAAI,CAAC;IACtC,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,QAAQ,CAAC,KAAK,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,KAAK,UAAU,GAAG,eAAe,GAAG,iBAAiB,CAAC;AAatD,eAAO,MAAM,YAAY,GAAI,OAAO,eAAe,KAAG,OACJ,CAAC;AAEnD,eAAO,MAAM,gBAAgB,GAAI,OAAO,eAAe,KAAG,MAKzD,CAAC;AA0GF,eAAO,MAAM,aAAa,yEA2EvB,CAAC"}
|
|
@@ -3,6 +3,7 @@ interface ChatState {
|
|
|
3
3
|
readonly messages: readonly ChatMessage[];
|
|
4
4
|
readonly isStreaming: boolean;
|
|
5
5
|
readonly streamingMessageId: string | null;
|
|
6
|
+
readonly currentThinkingBlockId: string | null;
|
|
6
7
|
}
|
|
7
8
|
interface ChatActions {
|
|
8
9
|
readonly addUserMessage: (content: string) => string;
|
|
@@ -13,6 +14,10 @@ interface ChatActions {
|
|
|
13
14
|
readonly updateMessageStatusLabel: (id: string, statusLabel: string) => void;
|
|
14
15
|
readonly setStreaming: (isStreaming: boolean, messageId?: string | null) => void;
|
|
15
16
|
readonly clearMessages: () => void;
|
|
17
|
+
readonly addThinkingBlock: (messageId: string, blockId: string, label: string) => void;
|
|
18
|
+
readonly appendToThinkingBlock: (messageId: string, blockId: string, content: string) => void;
|
|
19
|
+
readonly completeThinkingBlock: (messageId: string, blockId: string) => void;
|
|
20
|
+
readonly completeAllThinkingBlocks: (messageId: string) => void;
|
|
16
21
|
}
|
|
17
22
|
type ChatStore = ChatState & ChatActions;
|
|
18
23
|
export declare const useChatStore: import('zustand').UseBoundStore<import('zustand').StoreApi<ChatStore>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatStore.d.ts","sourceRoot":"","sources":["../../src/store/chatStore.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"chatStore.d.ts","sourceRoot":"","sources":["../../src/store/chatStore.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAiB,MAAM,UAAU,CAAC;AAE1E,UAAU,SAAS;IACjB,QAAQ,CAAC,QAAQ,EAAE,SAAS,WAAW,EAAE,CAAC;IAC1C,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3C,QAAQ,CAAC,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;CAChD;AAED,UAAU,WAAW;IACnB,QAAQ,CAAC,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC;IACrD,QAAQ,CAAC,mBAAmB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD,QAAQ,CAAC,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE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E,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC7E,OAAO,EACL,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface MessageContextState {
|
|
2
|
+
readonly messageId: string | null;
|
|
3
|
+
readonly currentThinkingBlockId: string | null;
|
|
4
|
+
readonly lastThinkingContent: string;
|
|
5
|
+
readonly lastStatusLabel: string;
|
|
6
|
+
readonly accumulatedContent: string;
|
|
7
|
+
readonly blockCount: number;
|
|
8
|
+
}
|
|
9
|
+
interface MessageContextActions {
|
|
10
|
+
readonly initContext: (messageId: string) => void;
|
|
11
|
+
readonly updateThinkingBlock: (blockId: string | null, content: string) => void;
|
|
12
|
+
readonly updateStatusLabel: (label: string) => void;
|
|
13
|
+
readonly updateAccumulatedContent: (content: string) => void;
|
|
14
|
+
readonly incrementBlockCount: () => void;
|
|
15
|
+
readonly reset: () => void;
|
|
16
|
+
}
|
|
17
|
+
type MessageContextStore = MessageContextState & MessageContextActions;
|
|
18
|
+
export declare const useMessageContextStore: import('zustand').UseBoundStore<import('zustand').StoreApi<MessageContextStore>>;
|
|
19
|
+
export declare const selectMessageContext: (state: MessageContextStore) => MessageContextState;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=messageContextStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messageContextStore.d.ts","sourceRoot":"","sources":["../../src/store/messageContextStore.ts"],"names":[],"mappings":"AAUA,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/C,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED,UAAU,qBAAqB;IAC7B,QAAQ,CAAC,WAAW,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,QAAQ,CAAC,mBAAmB,EAAE,CAC5B,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,OAAO,EAAE,MAAM,KACZ,IAAI,CAAC;IACV,QAAQ,CAAC,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,QAAQ,CAAC,wBAAwB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7D,QAAQ,CAAC,mBAAmB,EAAE,MAAM,IAAI,CAAC;IACzC,QAAQ,CAAC,KAAK,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,KAAK,mBAAmB,GAAG,mBAAmB,GAAG,qBAAqB,CAAC;AAWvE,eAAO,MAAM,sBAAsB,kFAiBhC,CAAC;AAEJ,eAAO,MAAM,oBAAoB,GAC/B,OAAO,mBAAmB,KACzB,mBAOD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ensureSidecarStyles.d.ts","sourceRoot":"","sources":["../../src/styles/ensureSidecarStyles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ensureSidecarStyles.d.ts","sourceRoot":"","sources":["../../src/styles/ensureSidecarStyles.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,mBAAmB,YAc/B,CAAC"}
|
|
@@ -11,6 +11,7 @@ export declare const EventType: {
|
|
|
11
11
|
readonly TOOL_PLANNING: "TOOL_PLANNING";
|
|
12
12
|
readonly TOOL_INVOKE: "TOOL_INVOKE";
|
|
13
13
|
readonly TOOL_RESULT: "TOOL_RESULT";
|
|
14
|
+
readonly EXECUTION_COMPLETE: "EXECUTION_COMPLETE";
|
|
14
15
|
};
|
|
15
16
|
export type EventTypeValue = (typeof EventType)[keyof typeof EventType];
|
|
16
17
|
export declare const EventStatus: {
|
|
@@ -38,9 +39,42 @@ export interface ToolInvokeResult {
|
|
|
38
39
|
readonly toolArguments: Record<string, unknown>;
|
|
39
40
|
}
|
|
40
41
|
export type AgentResult = ToolInvokeResult;
|
|
42
|
+
export type ToolHandler = (args: Record<string, unknown>, onError: (toolName: string, error: Error) => void) => Promise<unknown>;
|
|
41
43
|
export interface FrontendTool {
|
|
42
44
|
readonly name: string;
|
|
43
45
|
readonly description: string;
|
|
44
46
|
readonly parametersSchema: string;
|
|
47
|
+
readonly handler?: ToolHandler;
|
|
48
|
+
}
|
|
49
|
+
export interface SendMessagePayload {
|
|
50
|
+
readonly conversationId: string;
|
|
51
|
+
readonly messageId: string;
|
|
52
|
+
readonly content: string;
|
|
53
|
+
readonly frontendTools: ReadonlyArray<FrontendTool>;
|
|
54
|
+
}
|
|
55
|
+
export interface ToolResultPayload {
|
|
56
|
+
readonly conversationId: string;
|
|
57
|
+
readonly type: 'TOOL_RESULT';
|
|
58
|
+
readonly toolName: string;
|
|
59
|
+
readonly toolResult: string;
|
|
60
|
+
readonly contentType: 'TEXT' | 'BPMN';
|
|
61
|
+
}
|
|
62
|
+
export interface AgentTransport {
|
|
63
|
+
subscribe(conversationId: string, onEvent: (event: AgentEvent) => void): void;
|
|
64
|
+
unsubscribe(conversationId: string): void;
|
|
65
|
+
sendMessage(payload: SendMessagePayload): Promise<void>;
|
|
66
|
+
sendToolResult(payload: ToolResultPayload): Promise<void>;
|
|
67
|
+
}
|
|
68
|
+
export interface AgentAdapterConfig {
|
|
69
|
+
readonly transport: AgentTransport;
|
|
70
|
+
readonly frontendTools?: ReadonlyArray<FrontendTool>;
|
|
71
|
+
readonly onToolInvoke?: (toolName: string, args: Record<string, unknown>) => Promise<unknown>;
|
|
72
|
+
readonly getStatusLabel?: (eventType: EventTypeValue, toolName?: string) => string;
|
|
73
|
+
}
|
|
74
|
+
export interface AgentAdapterReturn {
|
|
75
|
+
readonly sendMessage: (content: string) => Promise<void>;
|
|
76
|
+
readonly stopGeneration: () => void;
|
|
77
|
+
readonly resetConversation: () => void;
|
|
78
|
+
readonly isBusy: boolean;
|
|
45
79
|
}
|
|
46
80
|
//# sourceMappingURL=agentTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentTypes.d.ts","sourceRoot":"","sources":["../../src/types/agentTypes.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,UAAU;;;;;CAKb,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAE1E,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"agentTypes.d.ts","sourceRoot":"","sources":["../../src/types/agentTypes.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,UAAU;;;;;CAKb,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAE1E,eAAO,MAAM,SAAS;;;;;;;CAOZ,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAExE,eAAO,MAAM,WAAW;;;;CAId,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAE9E,eAAO,MAAM,UAAU;;CAEb,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAE3E,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,c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,CAAC,MAAM,EAAE,OAAO,CAAC;CAC1B"}
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
export type MessageRole = 'user' | 'assistant';
|
|
2
2
|
export type MessageStatus = 'pending' | 'streaming' | 'complete' | 'error';
|
|
3
|
+
export interface ThinkingBlock {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
readonly content: string;
|
|
6
|
+
readonly label: string;
|
|
7
|
+
readonly isComplete: boolean;
|
|
8
|
+
}
|
|
3
9
|
export interface ChatMessage {
|
|
4
10
|
readonly id: string;
|
|
5
11
|
readonly role: MessageRole;
|
|
6
12
|
readonly content: string;
|
|
7
13
|
readonly status: MessageStatus;
|
|
8
|
-
readonly timestamp
|
|
14
|
+
readonly timestamp?: number;
|
|
9
15
|
readonly statusLabel?: string;
|
|
16
|
+
readonly thinkingBlocks?: readonly ThinkingBlock[];
|
|
10
17
|
}
|
|
11
18
|
export interface StreamChunk {
|
|
12
19
|
readonly type: 'chunk';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatTypes.d.ts","sourceRoot":"","sources":["../../src/types/chatTypes.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,WAAW,CAAC;AAE/C,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,OAAO,CAAC;AAE3E,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAC/B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"chatTypes.d.ts","sourceRoot":"","sources":["../../src/types/chatTypes.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,WAAW,CAAC;AAE/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ETE_BLOCK' | 'COMPLETE_ALL';
|
|
4
|
+
readonly messageId: string;
|
|
5
|
+
readonly blockId: string;
|
|
6
|
+
readonly label: string;
|
|
7
|
+
readonly content: string;
|
|
8
|
+
}
|
|
9
|
+
export interface EventResult {
|
|
10
|
+
readonly statusLabel?: string;
|
|
11
|
+
readonly thinkingAction?: ThinkingBlockAction;
|
|
12
|
+
readonly finalContent?: string;
|
|
13
|
+
readonly error?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const formatToolResult: (toolName: string, result: unknown) => {
|
|
16
|
+
contentType: "TEXT" | "BPMN";
|
|
17
|
+
resultString: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const generateBlockId: () => string;
|
|
20
|
+
export declare const computeThinkingDelta: (newContent: string, lastContent: string) => string;
|
|
21
|
+
export declare const deriveStatusLabel: (event: AgentEvent, getStatusLabel: (type: EventTypeValue, toolName?: string) => string) => string | undefined;
|
|
22
|
+
export declare const deriveThinkingAction: (event: AgentEvent, messageId: string, currentBlockId: string | null, lastContent: string, statusLabel: string, blockCount: number) => {
|
|
23
|
+
action?: ThinkingBlockAction;
|
|
24
|
+
newBlockId: string | null;
|
|
25
|
+
newContent: string;
|
|
26
|
+
};
|
|
27
|
+
export declare const processAgentEvent: (event: AgentEvent, messageId: string | null, currentBlockId: string | null, lastThinkingContent: string, lastStatusLabel: string, blockCount: number, accumulatedContent: string, getStatusLabel: (type: EventTypeValue, toolName?: string) => string) => EventResult & {
|
|
28
|
+
newBlockId: string | null;
|
|
29
|
+
newThinkingContent: string;
|
|
30
|
+
newAccumulatedContent: string;
|
|
31
|
+
newBlockCount: number;
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=eventHandlers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventHandlers.d.ts","sourceRoot":"","sources":["../../src/utils/eventHandlers.ts"],"names":[],"mappings":"AAQA,OAAO,EAGL,KAAK,UAAU,EACf,KAAK,cAAc,EACpB,MAA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E,MAAM,CAAC;CA+BpB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,OAAO,UAAU,EACjB,WAAW,MAAM,GAAG,IAAI,EACxB,gBAAgB,MAAM,GAAG,IAAI,EAC7B,qBAAqB,MAAM,EAC3B,iBAAiB,MAAM,EACvB,YAAY,MAAM,EAClB,oBAAoB,MAAM,EAC1B,gBAAgB,CAAC,IAAI,EAAE,cAAc,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,MAAM,KAClE,WAAW,GAAG;IACf,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC;CAsHvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,KAAK,mBAAmB,EACxB,KAAK,WAAW,GACjB,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statusLabels.d.ts","sourceRoot":"","sources":["../../src/utils/statusLabels.ts"],"names":[],"mappings":"AAQA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAiB1D,eAAO,MAAM,qBAAqB,GAChC,WAAW,cAAc,EACzB,WAAW,MAAM,KAChB,MAMF,CAAC"}
|
package/license.header
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
|
|
3
|
+
* one or more contributor license agreements. See the NOTICE file distributed
|
|
4
|
+
* with this work for additional information regarding copyright ownership.
|
|
5
|
+
* Licensed under the Camunda License 1.0. You may not use this file
|
|
6
|
+
* except in compliance with the Camunda License 1.0.
|
|
7
|
+
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/copilot-chat",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-alpha9",
|
|
4
4
|
"description": "Camunda Copilot Client Library - React components and utilities for Camunda Platform 8",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
"require": "./dist/index.js",
|
|
14
14
|
"default": "./dist/index.js"
|
|
15
15
|
},
|
|
16
|
+
"./style.css": {
|
|
17
|
+
"import": "./dist/index.css",
|
|
18
|
+
"default": "./dist/index.css"
|
|
19
|
+
},
|
|
16
20
|
"./package.json": "./package.json"
|
|
17
21
|
},
|
|
18
22
|
"files": [
|
|
@@ -44,13 +48,13 @@
|
|
|
44
48
|
"npm": ">=9.0.0"
|
|
45
49
|
},
|
|
46
50
|
"dependencies": {
|
|
47
|
-
"@carbon/ai-chat-components": "^0.5.0",
|
|
48
|
-
"@carbon/react": "1.95.0",
|
|
49
|
-
"@carbon/styles": "^1.68.0",
|
|
50
|
-
"react-markdown": "^9.0.1",
|
|
51
51
|
"zustand": "^5.0.2"
|
|
52
52
|
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@camunda/copilot-components": "file:../copilot-components"
|
|
55
|
+
},
|
|
53
56
|
"peerDependencies": {
|
|
57
|
+
"@carbon/react": "^1.92.0",
|
|
54
58
|
"react": ">=18.0.0 <20.0.0",
|
|
55
59
|
"react-dom": ">=18.0.0 <20.0.0"
|
|
56
60
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface ChatInputProps {
|
|
2
|
-
readonly onSend: (message: string) => void;
|
|
3
|
-
readonly onStop?: () => void;
|
|
4
|
-
readonly isBusy?: boolean;
|
|
5
|
-
readonly placeholder?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const ChatInput: ({ onSend, onStop, isBusy, placeholder, }: ChatInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=ChatInput.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../src/components/ChatInput/ChatInput.tsx"],"names":[],"mappings":"AAaA,UAAU,cAAc;IACtB,QAAQ,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,eAAO,MAAM,SAAS,GAAI,0CAKvB,cAAc,4CA6FhB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ChatInput/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ChatMessage as ChatMessageType } from '../../types';
|
|
2
|
-
interface ChatMessageProps {
|
|
3
|
-
readonly message: ChatMessageType;
|
|
4
|
-
}
|
|
5
|
-
export declare const ChatMessage: ({ message }: ChatMessageProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export {};
|
|
7
|
-
//# sourceMappingURL=ChatMessage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMessage.d.ts","sourceRoot":"","sources":["../../../src/components/ChatMessage/ChatMessage.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,aAAa,CAAC;AAKlE,UAAU,gBAAgB;IACxB,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;CACnC;AAED,eAAO,MAAM,WAAW,GAAI,aAAa,gBAAgB,4CAyBxD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ChatMessage/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ChatMessage as ChatMessageType } from '../../types';
|
|
2
|
-
interface ChatMessageListProps {
|
|
3
|
-
readonly messages: readonly ChatMessageType[];
|
|
4
|
-
readonly emptyStateTitle?: string;
|
|
5
|
-
readonly emptyStateDescription?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const ChatMessageList: ({ messages, emptyStateTitle, emptyStateDescription, }: ChatMessageListProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=ChatMessageList.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMessageList.d.ts","sourceRoot":"","sources":["../../../src/components/ChatMessageList/ChatMessageList.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,aAAa,CAAC;AAIlE,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,QAAQ,EAAE,SAAS,eAAe,EAAE,CAAC;IAC9C,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CACzC;AAED,eAAO,MAAM,eAAe,GAAI,uDAI7B,oBAAoB,4CA6BtB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ChatMessageList/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface CopilotHeaderProps {
|
|
2
|
-
onMinimize: () => void;
|
|
3
|
-
onReset?: () => void;
|
|
4
|
-
}
|
|
5
|
-
export declare const CopilotHeader: ({ onMinimize, onReset }: CopilotHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export {};
|
|
7
|
-
//# sourceMappingURL=CopilotHeader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotHeader.d.ts","sourceRoot":"","sources":["../../src/components/CopilotHeader.tsx"],"names":[],"mappings":"AAYA,UAAU,kBAAkB;IAC1B,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,GAAI,yBAAyB,kBAAkB,4CA8BxE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotLauncher.d.ts","sourceRoot":"","sources":["../../src/components/CopilotLauncher.tsx"],"names":[],"mappings":"AAWA,UAAU,oBAAoB;IAC5B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,eAAe,GAAI,qBAAqB,oBAAoB,4CAkBxE,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface CopilotStopButtonProps {
|
|
2
|
-
onClick: () => void;
|
|
3
|
-
isVisible: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare const CopilotStopButton: ({ onClick, isVisible, }: CopilotStopButtonProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
|
-
export {};
|
|
7
|
-
//# sourceMappingURL=CopilotStopButton.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotStopButton.d.ts","sourceRoot":"","sources":["../../src/components/CopilotStopButton.tsx"],"names":[],"mappings":"AAWA,UAAU,sBAAsB;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,iBAAiB,GAAI,yBAG/B,sBAAsB,mDAgBxB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/MarkdownRenderer/MarkdownRenderer.tsx"],"names":[],"mappings":"AAWA,UAAU,qBAAqB;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,gBAAgB,GAAI,aAAa,qBAAqB,mDAUlE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MarkdownRenderer/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface ThinkingIndicatorProps {
|
|
2
|
-
readonly label?: string;
|
|
3
|
-
readonly completedLabel?: string;
|
|
4
|
-
readonly content?: string;
|
|
5
|
-
readonly isComplete: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const ThinkingIndicator: ({ label, completedLabel, content, isComplete, }: ThinkingIndicatorProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=ThinkingIndicator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThinkingIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/ThinkingIndicator/ThinkingIndicator.tsx"],"names":[],"mappings":"AAaA,UAAU,sBAAsB;IAC9B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,iBAAiB,GAAI,iDAK/B,sBAAsB,mDAiCxB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ThinkingIndicator/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
|