@camunda/copilot-chat 0.0.0-alpha5 → 0.0.0-alpha8
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/CopilotChat.d.ts +2 -1
- 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 +8 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4933 -24292
- package/dist/layout/SidecarLayoutManager.d.ts.map +1 -1
- package/dist/package.json +9 -5
- package/dist/store/agentStore.d.ts +28 -0
- package/dist/store/agentStore.d.ts.map +1 -0
- package/dist/store/index.d.ts +1 -0
- package/dist/store/index.d.ts.map +1 -1
- package/dist/styles/ensureSidecarStyles.d.ts.map +1 -1
- package/dist/types/agentTypes.d.ts +78 -0
- package/dist/types/agentTypes.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/index.d.ts +2 -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-alpha8",
|
|
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
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AgentEvent, AgentResult, FrontendTool, EventTypeValue } from '../types/agentTypes';
|
|
2
|
+
interface AgentStoreState {
|
|
3
|
+
readonly conversationId: string | null;
|
|
4
|
+
readonly currentMessageId: string | null;
|
|
5
|
+
readonly isBusy: boolean;
|
|
6
|
+
readonly currentEventType: EventTypeValue | null;
|
|
7
|
+
readonly currentToolName: string | null;
|
|
8
|
+
readonly pendingToolInvoke: {
|
|
9
|
+
readonly toolName: string;
|
|
10
|
+
readonly toolArguments: Record<string, unknown>;
|
|
11
|
+
} | null;
|
|
12
|
+
readonly frontendToolNames: ReadonlySet<string>;
|
|
13
|
+
readonly error: string | null;
|
|
14
|
+
}
|
|
15
|
+
interface AgentStoreActions {
|
|
16
|
+
readonly startConversation: (conversationId: string, messageId: string) => void;
|
|
17
|
+
readonly setFrontendTools: (tools: readonly FrontendTool[]) => void;
|
|
18
|
+
readonly processEvent: (event: AgentEvent) => AgentResult | null;
|
|
19
|
+
readonly clearPendingTool: () => void;
|
|
20
|
+
readonly setError: (error: string) => void;
|
|
21
|
+
readonly reset: () => void;
|
|
22
|
+
}
|
|
23
|
+
type AgentStore = AgentStoreState & AgentStoreActions;
|
|
24
|
+
export declare const selectIsBusy: (state: AgentStoreState) => boolean;
|
|
25
|
+
export declare const selectAgentState: (state: AgentStoreState) => string;
|
|
26
|
+
export declare const useAgentStore: import('zustand').UseBoundStore<import('zustand').StoreApi<AgentStore>>;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=agentStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
package/dist/store/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/store/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,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"}
|
|
@@ -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"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export declare const AgentState: {
|
|
2
|
+
readonly IDLE: "IDLE";
|
|
3
|
+
readonly BUSY: "BUSY";
|
|
4
|
+
readonly AWAITING_TOOL: "AWAITING_TOOL";
|
|
5
|
+
readonly ERROR: "ERROR";
|
|
6
|
+
};
|
|
7
|
+
export type AgentStateType = (typeof AgentState)[keyof typeof AgentState];
|
|
8
|
+
export declare const EventType: {
|
|
9
|
+
readonly THINKING: "THINKING";
|
|
10
|
+
readonly EXECUTION_PLAN: "EXECUTION_PLAN";
|
|
11
|
+
readonly TOOL_PLANNING: "TOOL_PLANNING";
|
|
12
|
+
readonly TOOL_INVOKE: "TOOL_INVOKE";
|
|
13
|
+
readonly TOOL_RESULT: "TOOL_RESULT";
|
|
14
|
+
readonly EXECUTION_COMPLETE: "EXECUTION_COMPLETE";
|
|
15
|
+
};
|
|
16
|
+
export type EventTypeValue = (typeof EventType)[keyof typeof EventType];
|
|
17
|
+
export declare const EventStatus: {
|
|
18
|
+
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
19
|
+
readonly COMPLETED: "COMPLETED";
|
|
20
|
+
readonly ERROR: "ERROR";
|
|
21
|
+
};
|
|
22
|
+
export type EventStatusValue = (typeof EventStatus)[keyof typeof EventStatus];
|
|
23
|
+
export declare const ResultType: {
|
|
24
|
+
readonly TOOL_INVOKE: "TOOL_INVOKE";
|
|
25
|
+
};
|
|
26
|
+
export type ResultTypeValue = (typeof ResultType)[keyof typeof ResultType];
|
|
27
|
+
export interface AgentEvent {
|
|
28
|
+
readonly conversationId: string;
|
|
29
|
+
readonly type: EventTypeValue;
|
|
30
|
+
readonly status: EventStatusValue;
|
|
31
|
+
readonly content?: string;
|
|
32
|
+
readonly toolName?: string;
|
|
33
|
+
readonly toolArguments?: string;
|
|
34
|
+
readonly toolResult?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface ToolInvokeResult {
|
|
37
|
+
readonly type: typeof ResultType.TOOL_INVOKE;
|
|
38
|
+
readonly toolName: string;
|
|
39
|
+
readonly toolArguments: Record<string, unknown>;
|
|
40
|
+
}
|
|
41
|
+
export type AgentResult = ToolInvokeResult;
|
|
42
|
+
export interface FrontendTool {
|
|
43
|
+
readonly name: string;
|
|
44
|
+
readonly description: string;
|
|
45
|
+
readonly parametersSchema: string;
|
|
46
|
+
}
|
|
47
|
+
export interface SendMessagePayload {
|
|
48
|
+
readonly conversationId: string;
|
|
49
|
+
readonly messageId: string;
|
|
50
|
+
readonly content: string;
|
|
51
|
+
readonly frontendTools: ReadonlyArray<FrontendTool>;
|
|
52
|
+
}
|
|
53
|
+
export interface ToolResultPayload {
|
|
54
|
+
readonly conversationId: string;
|
|
55
|
+
readonly type: 'TOOL_RESULT';
|
|
56
|
+
readonly toolName: string;
|
|
57
|
+
readonly toolResult: string;
|
|
58
|
+
readonly contentType: 'TEXT' | 'BPMN';
|
|
59
|
+
}
|
|
60
|
+
export interface AgentTransport {
|
|
61
|
+
subscribe(conversationId: string, onEvent: (event: AgentEvent) => void): void;
|
|
62
|
+
unsubscribe(conversationId: string): void;
|
|
63
|
+
sendMessage(payload: SendMessagePayload): Promise<void>;
|
|
64
|
+
sendToolResult(payload: ToolResultPayload): Promise<void>;
|
|
65
|
+
}
|
|
66
|
+
export interface AgentAdapterConfig {
|
|
67
|
+
readonly transport: AgentTransport;
|
|
68
|
+
readonly frontendTools?: ReadonlyArray<FrontendTool>;
|
|
69
|
+
readonly onToolInvoke?: (toolName: string, args: Record<string, unknown>) => Promise<unknown>;
|
|
70
|
+
readonly getStatusLabel?: (eventType: EventTypeValue, toolName?: string) => string;
|
|
71
|
+
}
|
|
72
|
+
export interface AgentAdapterReturn {
|
|
73
|
+
readonly sendMessage: (content: string) => Promise<void>;
|
|
74
|
+
readonly stopGeneration: () => void;
|
|
75
|
+
readonly resetConversation: () => void;
|
|
76
|
+
readonly isBusy: boolean;
|
|
77
|
+
}
|
|
78
|
+
//# 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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"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAQA,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAQA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,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"}
|
|
@@ -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-alpha8",
|
|
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 isStreaming?: boolean;
|
|
5
|
-
readonly placeholder?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const ChatInput: ({ onSend, onStop, isStreaming, 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,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,eAAO,MAAM,SAAS,GAAI,+CAKvB,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"}
|