@camunda/copilot-chat 0.0.0-alpha2 → 0.0.0-alpha4

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.
Files changed (58) hide show
  1. package/dist/CopilotChat.d.ts +7 -4
  2. package/dist/CopilotChat.d.ts.map +1 -1
  3. package/dist/components/ChatInput/ChatInput.d.ts +9 -0
  4. package/dist/components/ChatInput/ChatInput.d.ts.map +1 -0
  5. package/dist/components/ChatInput/index.d.ts +2 -0
  6. package/dist/components/ChatInput/index.d.ts.map +1 -0
  7. package/dist/components/ChatMessage/ChatMessage.d.ts +7 -0
  8. package/dist/components/ChatMessage/ChatMessage.d.ts.map +1 -0
  9. package/dist/components/ChatMessage/index.d.ts +2 -0
  10. package/dist/components/ChatMessage/index.d.ts.map +1 -0
  11. package/dist/components/ChatMessageList/ChatMessageList.d.ts +9 -0
  12. package/dist/components/ChatMessageList/ChatMessageList.d.ts.map +1 -0
  13. package/dist/components/ChatMessageList/index.d.ts +2 -0
  14. package/dist/components/ChatMessageList/index.d.ts.map +1 -0
  15. package/dist/components/CopilotHeader.d.ts +7 -0
  16. package/dist/components/CopilotHeader.d.ts.map +1 -0
  17. package/dist/components/CopilotLauncher.d.ts +2 -3
  18. package/dist/components/CopilotLauncher.d.ts.map +1 -1
  19. package/dist/components/CopilotStopButton.d.ts +7 -0
  20. package/dist/components/CopilotStopButton.d.ts.map +1 -0
  21. package/dist/components/MarkdownRenderer/MarkdownRenderer.d.ts +6 -0
  22. package/dist/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -0
  23. package/dist/components/MarkdownRenderer/index.d.ts +2 -0
  24. package/dist/components/MarkdownRenderer/index.d.ts.map +1 -0
  25. package/dist/components/ThinkingIndicator/ThinkingIndicator.d.ts +9 -0
  26. package/dist/components/ThinkingIndicator/ThinkingIndicator.d.ts.map +1 -0
  27. package/dist/components/ThinkingIndicator/index.d.ts +2 -0
  28. package/dist/components/ThinkingIndicator/index.d.ts.map +1 -0
  29. package/dist/constants/theme.d.ts +79 -0
  30. package/dist/constants/theme.d.ts.map +1 -0
  31. package/dist/hooks/index.d.ts +4 -0
  32. package/dist/hooks/index.d.ts.map +1 -0
  33. package/dist/hooks/useCopilotAgent.d.ts +11 -0
  34. package/dist/hooks/useCopilotAgent.d.ts.map +1 -0
  35. package/dist/index.css +29632 -81
  36. package/dist/index.d.ts +2 -0
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/index.js +29742 -81
  39. package/dist/package.json +6 -4
  40. package/dist/services/agentService.d.ts +25 -0
  41. package/dist/services/agentService.d.ts.map +1 -0
  42. package/dist/services/index.d.ts +2 -0
  43. package/dist/services/index.d.ts.map +1 -0
  44. package/dist/store/chatStore.d.ts +20 -0
  45. package/dist/store/chatStore.d.ts.map +1 -0
  46. package/dist/store/index.d.ts +2 -0
  47. package/dist/store/index.d.ts.map +1 -0
  48. package/dist/test-setup.d.ts +1 -0
  49. package/dist/test-setup.d.ts.map +1 -0
  50. package/dist/types/agentTypes.d.ts +64 -0
  51. package/dist/types/agentTypes.d.ts.map +1 -0
  52. package/dist/types/chatTypes.d.ts +24 -0
  53. package/dist/types/chatTypes.d.ts.map +1 -0
  54. package/dist/types/index.d.ts +3 -0
  55. package/dist/types/index.d.ts.map +1 -0
  56. package/package.json +5 -3
  57. package/dist/jsx-runtime.d.ts +0 -7
  58. package/dist/jsx-runtime.d.ts.map +0 -1
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/copilot-chat",
3
- "version": "0.0.0-alpha1",
3
+ "version": "0.0.0-alpha4",
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",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "repository": {
27
27
  "type": "git",
28
- "url": "https://github.com/camunda/camunda-copilot-client.git",
28
+ "url": "git+https://github.com/camunda/camunda-copilot-client.git",
29
29
  "directory": "packages/copilot-chat"
30
30
  },
31
31
  "keywords": [
@@ -44,8 +44,10 @@
44
44
  "npm": ">=9.0.0"
45
45
  },
46
46
  "dependencies": {
47
- "@carbon/ai-chat": "^1.2.0",
48
- "@carbon/react": "1.95.0"
47
+ "@carbon/react": "1.95.0",
48
+ "@carbon/styles": "^1.68.0",
49
+ "react-markdown": "^9.0.1",
50
+ "zustand": "^5.0.2"
49
51
  },
50
52
  "peerDependencies": {
51
53
  "react": ">=18.0.0 <20.0.0",
@@ -0,0 +1,25 @@
1
+ import { AgentEvent, AgentResponse, CopilotAgentConfig, ToolResultContentTypeValue } from '../types';
2
+ interface EventListener {
3
+ (event: AgentEvent): void;
4
+ }
5
+ export declare class CopilotAgentService {
6
+ private readonly config;
7
+ private state;
8
+ private readonly eventListeners;
9
+ constructor(config: CopilotAgentConfig);
10
+ addEventListener(listener: EventListener): () => void;
11
+ private emitEvent;
12
+ invoke(userMessage: string): Promise<AgentResponse>;
13
+ continueWithToolResult(toolName: string, toolResult: string, contentType?: ToolResultContentTypeValue): Promise<AgentResponse>;
14
+ cancel(): void;
15
+ private cleanup;
16
+ private executeRequest;
17
+ private executeContinueRequest;
18
+ private postRequest;
19
+ private listenForResponse;
20
+ get conversationId(): string | null;
21
+ get messageId(): string | null;
22
+ }
23
+ export declare function createAgentService(config: CopilotAgentConfig): CopilotAgentService;
24
+ export {};
25
+ //# sourceMappingURL=agentService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agentService.d.ts","sourceRoot":"","sources":["../../src/services/agentService.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,UAAU,EAIV,aAAa,EAEb,kBAAkB,EAElB,0BAA0B,EAC3B,MAAM,UAAU,CAAC;AAsBlB,UAAU,aAAa;IACrB,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;CAC3B;AAUD,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAC5C,OAAO,CAAC,KAAK,CAAoB;IACjC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAqB;gBAExC,MAAM,EAAE,kBAAkB;IAYtC,gBAAgB,CAAC,QAAQ,EAAE,aAAa,GAAG,MAAM,IAAI;IAKrD,OAAO,CAAC,SAAS;IAIX,MAAM,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IA2BnD,sBAAsB,CAC1B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,WAAW,GAAE,0BAAuD,GACnE,OAAO,CAAC,aAAa,CAAC;IAiBzB,MAAM,IAAI,IAAI;IAId,OAAO,CAAC,OAAO;YAOD,cAAc;YAWd,sBAAsB;YAWtB,WAAW;IAoBzB,OAAO,CAAC,iBAAiB;IAoEzB,IAAI,cAAc,IAAI,MAAM,GAAG,IAAI,CAElC;IAED,IAAI,SAAS,IAAI,MAAM,GAAG,IAAI,CAE7B;CACF;AAED,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,kBAAkB,GACzB,mBAAmB,CAErB"}
@@ -0,0 +1,2 @@
1
+ export { CopilotAgentService, createAgentService } from './agentService';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { ChatMessage, MessageStatus } from '../types';
2
+ interface ChatState {
3
+ readonly messages: readonly ChatMessage[];
4
+ readonly isStreaming: boolean;
5
+ readonly streamingMessageId: string | null;
6
+ }
7
+ interface ChatActions {
8
+ readonly addUserMessage: (content: string) => string;
9
+ readonly addAssistantMessage: (id: string) => void;
10
+ readonly appendToMessage: (id: string, content: string) => void;
11
+ readonly setMessageContent: (id: string, content: string) => void;
12
+ readonly updateMessageStatus: (id: string, status: MessageStatus) => void;
13
+ readonly updateMessageEventType: (id: string, eventType: string, toolName?: string) => void;
14
+ readonly setStreaming: (isStreaming: boolean, messageId?: string | null) => void;
15
+ readonly clearMessages: () => void;
16
+ }
17
+ type ChatStore = ChatState & ChatActions;
18
+ export declare const useChatStore: import('zustand').UseBoundStore<import('zustand').StoreApi<ChatStore>>;
19
+ export {};
20
+ //# sourceMappingURL=chatStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chatStore.d.ts","sourceRoot":"","sources":["../../src/store/chatStore.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE3D,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;CAC5C;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,MAAM,KAAK,IAAI,CAAC;IAChE,QAAQ,CAAC,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAClE,QAAQ,CAAC,mBAAmB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;IAC1E,QAAQ,CAAC,sBAAsB,EAAE,CAC/B,EAAE,EAAE,MAAM,EACV,SAAS,EAAE,MAAM,EACjB,QAAQ,CAAC,EAAE,MAAM,KACd,IAAI,CAAC;IACV,QAAQ,CAAC,YAAY,EAAE,CACrB,WAAW,EAAE,OAAO,EACpB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,KACtB,IAAI,CAAC;IACV,QAAQ,CAAC,aAAa,EAAE,MAAM,IAAI,CAAC;CACpC;AAED,KAAK,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;AAKzC,eAAO,MAAM,YAAY,wEA+FtB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { useChatStore } from './chatStore';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=test-setup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-setup.d.ts","sourceRoot":"","sources":["../src/test-setup.ts"],"names":[],"mappings":""}
@@ -0,0 +1,64 @@
1
+ export declare const AgentEventType: {
2
+ readonly THINKING: "THINKING";
3
+ readonly EXECUTION_PLAN: "EXECUTION_PLAN";
4
+ readonly TOOL_PLANNING: "TOOL_PLANNING";
5
+ readonly TOOL_INVOKE: "TOOL_INVOKE";
6
+ readonly TOOL_RESULT: "TOOL_RESULT";
7
+ };
8
+ export type AgentEventTypeValue = (typeof AgentEventType)[keyof typeof AgentEventType];
9
+ export declare const AgentEventStatus: {
10
+ readonly IN_PROGRESS: "IN_PROGRESS";
11
+ readonly COMPLETED: "COMPLETED";
12
+ readonly ERROR: "ERROR";
13
+ };
14
+ export type AgentEventStatusValue = (typeof AgentEventStatus)[keyof typeof AgentEventStatus];
15
+ export interface AgentEvent {
16
+ readonly conversationId: string;
17
+ readonly type: AgentEventTypeValue;
18
+ readonly status: AgentEventStatusValue;
19
+ readonly content?: string;
20
+ readonly toolName?: string;
21
+ readonly toolArguments?: string;
22
+ readonly toolResult?: string;
23
+ }
24
+ export interface FrontendToolSpecification {
25
+ readonly name: string;
26
+ readonly description: string;
27
+ readonly parametersSchema: string;
28
+ }
29
+ export type ToolInvokeHandler = (toolName: string, toolArguments: Record<string, unknown>) => Promise<string | Record<string, unknown>>;
30
+ export declare const ToolResultContentType: {
31
+ readonly TEXT: "TEXT";
32
+ readonly BPMN: "BPMN";
33
+ readonly JSON: "JSON";
34
+ };
35
+ export type ToolResultContentTypeValue = (typeof ToolResultContentType)[keyof typeof ToolResultContentType];
36
+ export interface AgentInvokeRequest {
37
+ readonly conversationId: string;
38
+ readonly messageId: string;
39
+ readonly content: string;
40
+ readonly frontendTools?: FrontendToolSpecification[];
41
+ }
42
+ export interface ContinueWithToolResultRequest {
43
+ readonly conversationId: string;
44
+ readonly toolName: string;
45
+ readonly toolResult: string;
46
+ readonly contentType?: ToolResultContentTypeValue;
47
+ }
48
+ export interface AgentResponse {
49
+ readonly type: 'complete' | 'toolInvoke';
50
+ readonly content?: string;
51
+ readonly toolName?: string;
52
+ readonly toolArguments?: Record<string, unknown>;
53
+ }
54
+ export interface CopilotAgentConfig {
55
+ readonly apiBaseUrl: string;
56
+ readonly converseEndpoint?: string;
57
+ readonly continueEndpoint?: string;
58
+ readonly timeout?: number;
59
+ readonly getHeaders?: () => Promise<Record<string, string>> | Record<string, string>;
60
+ readonly subscribeToEvents: (conversationId: string, onEvent: (event: AgentEvent) => void) => () => void;
61
+ readonly frontendTools?: FrontendToolSpecification[];
62
+ readonly onToolInvoke?: ToolInvokeHandler;
63
+ }
64
+ //# sourceMappingURL=agentTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agentTypes.d.ts","sourceRoot":"","sources":["../../src/types/agentTypes.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,24 @@
1
+ export type MessageRole = 'user' | 'assistant';
2
+ export type MessageStatus = 'pending' | 'streaming' | 'complete' | 'error';
3
+ export interface ChatMessage {
4
+ readonly id: string;
5
+ readonly role: MessageRole;
6
+ readonly content: string;
7
+ readonly status: MessageStatus;
8
+ readonly timestamp: number;
9
+ readonly eventType?: string;
10
+ readonly toolName?: string;
11
+ }
12
+ export interface StreamChunk {
13
+ readonly type: 'chunk';
14
+ readonly content: string;
15
+ readonly itemId: string;
16
+ readonly responseId: string;
17
+ }
18
+ export interface StreamFinal {
19
+ readonly type: 'final';
20
+ readonly content: string;
21
+ readonly responseId: string;
22
+ }
23
+ export type StreamEvent = StreamChunk | StreamFinal;
24
+ //# sourceMappingURL=chatTypes.d.ts.map
@@ -0,0 +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;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './chatTypes';
2
+ export * from './agentTypes';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAQA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/copilot-chat",
3
- "version": "0.0.0-alpha2",
3
+ "version": "0.0.0-alpha4",
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",
@@ -44,8 +44,10 @@
44
44
  "npm": ">=9.0.0"
45
45
  },
46
46
  "dependencies": {
47
- "@carbon/ai-chat": "^1.2.0",
48
- "@carbon/react": "1.95.0"
47
+ "@carbon/react": "1.95.0",
48
+ "@carbon/styles": "^1.68.0",
49
+ "react-markdown": "^9.0.1",
50
+ "zustand": "^5.0.2"
49
51
  },
50
52
  "peerDependencies": {
51
53
  "react": ">=18.0.0 <20.0.0",
@@ -1,7 +0,0 @@
1
- import { default as React } from 'react';
2
- declare const jsx: (type: React.ElementType, props: Record<string, unknown> | null | undefined, key?: React.Key) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
3
- declare const jsxs: (type: React.ElementType, props: Record<string, unknown> | null | undefined, key?: React.Key) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
4
- declare const jsxDEV: (type: React.ElementType, props: Record<string, unknown> | null | undefined, key?: React.Key, _isStaticChildren?: boolean, _source?: unknown, _self?: unknown) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
5
- declare const Fragment: React.ExoticComponent<React.FragmentProps>;
6
- export { jsx, jsxs, jsxDEV, Fragment };
7
- //# sourceMappingURL=jsx-runtime.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jsx-runtime.d.ts","sourceRoot":"","sources":["../src/jsx-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,QAAA,MAAM,GAAG,GACP,MAAM,KAAK,CAAC,WAAW,EACvB,OAAO,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,EACjD,MAAM,KAAK,CAAC,GAAG,uEACa,CAAC;AAE/B,QAAA,MAAM,IAAI,SALF,KAAK,CAAC,WAAW,SAChB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,QAC3C,KAAK,CAAC,GAAG,uEAGD,CAAC;AAEjB,QAAA,MAAM,MAAM,GACV,MAAM,KAAK,CAAC,WAAW,EACvB,OAAO,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,EACjD,MAAM,KAAK,CAAC,GAAG,EACf,oBAAoB,OAAO,EAC3B,UAAU,OAAO,EACjB,QAAQ,OAAO,uEACa,CAAC;AAE/B,QAAA,MAAM,QAAQ,4CAAiB,CAAC;AAEhC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC"}