@copilotkitnext/angular 1.52.0-next.8 → 1.52.1-next.0
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 +225 -432
- package/dist/README.md +225 -432
- package/dist/fesm2022/copilotkitnext-angular.mjs +322 -164
- package/dist/fesm2022/copilotkitnext-angular.mjs.map +1 -1
- package/dist/lib/agent.d.ts +20 -20
- package/dist/lib/components/chat/copilot-chat-assistant-message.d.ts +46 -46
- package/dist/lib/components/chat/copilot-chat-message-view.d.ts +126 -126
- package/dist/lib/components/chat/copilot-chat-tool-calls-view.d.ts +23 -23
- package/dist/lib/components/chat/copilot-chat-user-message-branch-navigation.d.ts +6 -6
- package/dist/lib/components/chat/copilot-chat-user-message.d.ts +6 -6
- package/dist/lib/components/chat/copilot-chat-view-scroll-view.d.ts +18 -18
- package/dist/lib/components/chat/copilot-chat-view.d.ts +54 -54
- package/dist/lib/components/chat/copilot-chat.d.ts +18 -18
- package/dist/lib/config.d.ts +2 -0
- package/dist/lib/copilotkit.d.ts +7 -1
- package/dist/lib/license-watermark.d.ts +1 -0
- package/dist/lib/render-tool-calls.d.ts +23 -23
- package/dist/styles.css +3 -0
- package/package.json +18 -18
- package/dist/esm2022/copilotkitnext-angular.mjs +0 -5
- package/dist/esm2022/index.mjs +0 -2
- package/dist/esm2022/lib/agent-context.mjs +0 -25
- package/dist/esm2022/lib/agent.mjs +0 -73
- package/dist/esm2022/lib/chat-config.mjs +0 -35
- package/dist/esm2022/lib/chat-state.mjs +0 -18
- package/dist/esm2022/lib/components/chat/copilot-chat-assistant-message-buttons.mjs +0 -344
- package/dist/esm2022/lib/components/chat/copilot-chat-assistant-message-renderer.mjs +0 -260
- package/dist/esm2022/lib/components/chat/copilot-chat-assistant-message-toolbar.mjs +0 -22
- package/dist/esm2022/lib/components/chat/copilot-chat-assistant-message.mjs +0 -415
- package/dist/esm2022/lib/components/chat/copilot-chat-assistant-message.types.mjs +0 -2
- package/dist/esm2022/lib/components/chat/copilot-chat-audio-recorder.mjs +0 -196
- package/dist/esm2022/lib/components/chat/copilot-chat-buttons.mjs +0 -299
- package/dist/esm2022/lib/components/chat/copilot-chat-input-defaults.mjs +0 -39
- package/dist/esm2022/lib/components/chat/copilot-chat-input.mjs +0 -634
- package/dist/esm2022/lib/components/chat/copilot-chat-input.types.mjs +0 -10
- package/dist/esm2022/lib/components/chat/copilot-chat-message-view-cursor.mjs +0 -27
- package/dist/esm2022/lib/components/chat/copilot-chat-message-view.mjs +0 -269
- package/dist/esm2022/lib/components/chat/copilot-chat-message-view.types.mjs +0 -2
- package/dist/esm2022/lib/components/chat/copilot-chat-textarea.mjs +0 -139
- package/dist/esm2022/lib/components/chat/copilot-chat-tool-calls-view.mjs +0 -36
- package/dist/esm2022/lib/components/chat/copilot-chat-toolbar.mjs +0 -20
- package/dist/esm2022/lib/components/chat/copilot-chat-tools-menu.mjs +0 -203
- package/dist/esm2022/lib/components/chat/copilot-chat-user-message-branch-navigation.mjs +0 -118
- package/dist/esm2022/lib/components/chat/copilot-chat-user-message-buttons.mjs +0 -182
- package/dist/esm2022/lib/components/chat/copilot-chat-user-message-renderer.mjs +0 -28
- package/dist/esm2022/lib/components/chat/copilot-chat-user-message-toolbar.mjs +0 -25
- package/dist/esm2022/lib/components/chat/copilot-chat-user-message.mjs +0 -328
- package/dist/esm2022/lib/components/chat/copilot-chat-user-message.types.mjs +0 -2
- package/dist/esm2022/lib/components/chat/copilot-chat-view-disclaimer.mjs +0 -48
- package/dist/esm2022/lib/components/chat/copilot-chat-view-feather.mjs +0 -41
- package/dist/esm2022/lib/components/chat/copilot-chat-view-handlers.mjs +0 -19
- package/dist/esm2022/lib/components/chat/copilot-chat-view-input-container.mjs +0 -96
- package/dist/esm2022/lib/components/chat/copilot-chat-view-scroll-to-bottom-button.mjs +0 -89
- package/dist/esm2022/lib/components/chat/copilot-chat-view-scroll-view.mjs +0 -456
- package/dist/esm2022/lib/components/chat/copilot-chat-view.mjs +0 -404
- package/dist/esm2022/lib/components/chat/copilot-chat-view.types.mjs +0 -2
- package/dist/esm2022/lib/components/chat/copilot-chat.mjs +0 -165
- package/dist/esm2022/lib/config.mjs +0 -9
- package/dist/esm2022/lib/copilotkit.mjs +0 -125
- package/dist/esm2022/lib/directives/copilotkit-agent-context.mjs +0 -130
- package/dist/esm2022/lib/directives/stick-to-bottom.mjs +0 -170
- package/dist/esm2022/lib/directives/tooltip.mjs +0 -217
- package/dist/esm2022/lib/human-in-the-loop.mjs +0 -19
- package/dist/esm2022/lib/render-tool-calls.mjs +0 -167
- package/dist/esm2022/lib/resize-observer.mjs +0 -152
- package/dist/esm2022/lib/scroll-position.mjs +0 -123
- package/dist/esm2022/lib/slots/copilot-slot.mjs +0 -156
- package/dist/esm2022/lib/slots/index.mjs +0 -4
- package/dist/esm2022/lib/slots/slot.types.mjs +0 -6
- package/dist/esm2022/lib/slots/slot.utils.mjs +0 -235
- package/dist/esm2022/lib/tools.mjs +0 -31
- package/dist/esm2022/lib/utils.mjs +0 -10
- package/dist/esm2022/public-api.mjs +0 -48
package/dist/lib/agent.d.ts
CHANGED
|
@@ -9,20 +9,20 @@ export declare class AgentStore {
|
|
|
9
9
|
role: "developer";
|
|
10
10
|
content: string;
|
|
11
11
|
id: string;
|
|
12
|
-
name?: string;
|
|
13
|
-
encryptedValue?: string;
|
|
12
|
+
name?: string | undefined;
|
|
13
|
+
encryptedValue?: string | undefined;
|
|
14
14
|
} | {
|
|
15
15
|
role: "system";
|
|
16
16
|
content: string;
|
|
17
17
|
id: string;
|
|
18
|
-
name?: string;
|
|
19
|
-
encryptedValue?: string;
|
|
18
|
+
name?: string | undefined;
|
|
19
|
+
encryptedValue?: string | undefined;
|
|
20
20
|
} | {
|
|
21
21
|
role: "assistant";
|
|
22
22
|
id: string;
|
|
23
|
-
content?: string;
|
|
24
|
-
name?: string;
|
|
25
|
-
encryptedValue?: string;
|
|
23
|
+
content?: string | undefined;
|
|
24
|
+
name?: string | undefined;
|
|
25
|
+
encryptedValue?: string | undefined;
|
|
26
26
|
toolCalls?: {
|
|
27
27
|
function: {
|
|
28
28
|
name: string;
|
|
@@ -30,8 +30,8 @@ export declare class AgentStore {
|
|
|
30
30
|
};
|
|
31
31
|
type: "function";
|
|
32
32
|
id: string;
|
|
33
|
-
encryptedValue?: string;
|
|
34
|
-
}[];
|
|
33
|
+
encryptedValue?: string | undefined;
|
|
34
|
+
}[] | undefined;
|
|
35
35
|
} | {
|
|
36
36
|
role: "user";
|
|
37
37
|
content: string | ({
|
|
@@ -40,21 +40,21 @@ export declare class AgentStore {
|
|
|
40
40
|
} | {
|
|
41
41
|
type: "binary";
|
|
42
42
|
mimeType: string;
|
|
43
|
-
id?: string;
|
|
44
|
-
url?: string;
|
|
45
|
-
data?: string;
|
|
46
|
-
filename?: string;
|
|
43
|
+
id?: string | undefined;
|
|
44
|
+
url?: string | undefined;
|
|
45
|
+
data?: string | undefined;
|
|
46
|
+
filename?: string | undefined;
|
|
47
47
|
})[];
|
|
48
48
|
id: string;
|
|
49
|
-
name?: string;
|
|
50
|
-
encryptedValue?: string;
|
|
49
|
+
name?: string | undefined;
|
|
50
|
+
encryptedValue?: string | undefined;
|
|
51
51
|
} | {
|
|
52
52
|
role: "tool";
|
|
53
53
|
toolCallId: string;
|
|
54
54
|
content: string;
|
|
55
55
|
id: string;
|
|
56
|
-
encryptedValue?: string;
|
|
57
|
-
error?: string;
|
|
56
|
+
encryptedValue?: string | undefined;
|
|
57
|
+
error?: string | undefined;
|
|
58
58
|
} | {
|
|
59
59
|
role: "activity";
|
|
60
60
|
content: Record<string, any>;
|
|
@@ -64,7 +64,7 @@ export declare class AgentStore {
|
|
|
64
64
|
role: "reasoning";
|
|
65
65
|
content: string;
|
|
66
66
|
id: string;
|
|
67
|
-
encryptedValue?: string;
|
|
67
|
+
encryptedValue?: string | undefined;
|
|
68
68
|
})[]>;
|
|
69
69
|
readonly state: Signal<any>;
|
|
70
70
|
constructor(abstractAgent: AbstractAgent, destroyRef: DestroyRef);
|
|
@@ -72,8 +72,8 @@ export declare class AgentStore {
|
|
|
72
72
|
}
|
|
73
73
|
export declare class CopilotkitAgentFactory {
|
|
74
74
|
#private;
|
|
75
|
-
createAgentStoreSignal(agentId: Signal<string | undefined>, destroyRef: DestroyRef): Signal<AgentStore
|
|
75
|
+
createAgentStoreSignal(agentId: Signal<string | undefined>, destroyRef: DestroyRef): Signal<AgentStore>;
|
|
76
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotkitAgentFactory, never>;
|
|
77
77
|
static ɵprov: i0.ɵɵInjectableDeclaration<CopilotkitAgentFactory>;
|
|
78
78
|
}
|
|
79
|
-
export declare function injectAgentStore(agentId: string | Signal<string | undefined>): Signal<AgentStore
|
|
79
|
+
export declare function injectAgentStore(agentId: string | Signal<string | undefined>): Signal<AgentStore>;
|
|
@@ -34,9 +34,9 @@ export declare class CopilotChatAssistantMessage {
|
|
|
34
34
|
readonly message: import("@angular/core").InputSignal<{
|
|
35
35
|
role: "assistant";
|
|
36
36
|
id: string;
|
|
37
|
-
content?: string;
|
|
38
|
-
name?: string;
|
|
39
|
-
encryptedValue?: string;
|
|
37
|
+
content?: string | undefined;
|
|
38
|
+
name?: string | undefined;
|
|
39
|
+
encryptedValue?: string | undefined;
|
|
40
40
|
toolCalls?: {
|
|
41
41
|
function: {
|
|
42
42
|
name: string;
|
|
@@ -44,27 +44,27 @@ export declare class CopilotChatAssistantMessage {
|
|
|
44
44
|
};
|
|
45
45
|
type: "function";
|
|
46
46
|
id: string;
|
|
47
|
-
encryptedValue?: string;
|
|
48
|
-
}[];
|
|
47
|
+
encryptedValue?: string | undefined;
|
|
48
|
+
}[] | undefined;
|
|
49
49
|
}>;
|
|
50
50
|
readonly messages: import("@angular/core").InputSignal<({
|
|
51
51
|
role: "developer";
|
|
52
52
|
content: string;
|
|
53
53
|
id: string;
|
|
54
|
-
name?: string;
|
|
55
|
-
encryptedValue?: string;
|
|
54
|
+
name?: string | undefined;
|
|
55
|
+
encryptedValue?: string | undefined;
|
|
56
56
|
} | {
|
|
57
57
|
role: "system";
|
|
58
58
|
content: string;
|
|
59
59
|
id: string;
|
|
60
|
-
name?: string;
|
|
61
|
-
encryptedValue?: string;
|
|
60
|
+
name?: string | undefined;
|
|
61
|
+
encryptedValue?: string | undefined;
|
|
62
62
|
} | {
|
|
63
63
|
role: "assistant";
|
|
64
64
|
id: string;
|
|
65
|
-
content?: string;
|
|
66
|
-
name?: string;
|
|
67
|
-
encryptedValue?: string;
|
|
65
|
+
content?: string | undefined;
|
|
66
|
+
name?: string | undefined;
|
|
67
|
+
encryptedValue?: string | undefined;
|
|
68
68
|
toolCalls?: {
|
|
69
69
|
function: {
|
|
70
70
|
name: string;
|
|
@@ -72,8 +72,8 @@ export declare class CopilotChatAssistantMessage {
|
|
|
72
72
|
};
|
|
73
73
|
type: "function";
|
|
74
74
|
id: string;
|
|
75
|
-
encryptedValue?: string;
|
|
76
|
-
}[];
|
|
75
|
+
encryptedValue?: string | undefined;
|
|
76
|
+
}[] | undefined;
|
|
77
77
|
} | {
|
|
78
78
|
role: "user";
|
|
79
79
|
content: string | ({
|
|
@@ -82,21 +82,21 @@ export declare class CopilotChatAssistantMessage {
|
|
|
82
82
|
} | {
|
|
83
83
|
type: "binary";
|
|
84
84
|
mimeType: string;
|
|
85
|
-
id?: string;
|
|
86
|
-
url?: string;
|
|
87
|
-
data?: string;
|
|
88
|
-
filename?: string;
|
|
85
|
+
id?: string | undefined;
|
|
86
|
+
url?: string | undefined;
|
|
87
|
+
data?: string | undefined;
|
|
88
|
+
filename?: string | undefined;
|
|
89
89
|
})[];
|
|
90
90
|
id: string;
|
|
91
|
-
name?: string;
|
|
92
|
-
encryptedValue?: string;
|
|
91
|
+
name?: string | undefined;
|
|
92
|
+
encryptedValue?: string | undefined;
|
|
93
93
|
} | {
|
|
94
94
|
role: "tool";
|
|
95
95
|
toolCallId: string;
|
|
96
96
|
content: string;
|
|
97
97
|
id: string;
|
|
98
|
-
encryptedValue?: string;
|
|
99
|
-
error?: string;
|
|
98
|
+
encryptedValue?: string | undefined;
|
|
99
|
+
error?: string | undefined;
|
|
100
100
|
} | {
|
|
101
101
|
role: "activity";
|
|
102
102
|
content: Record<string, any>;
|
|
@@ -106,7 +106,7 @@ export declare class CopilotChatAssistantMessage {
|
|
|
106
106
|
role: "reasoning";
|
|
107
107
|
content: string;
|
|
108
108
|
id: string;
|
|
109
|
-
encryptedValue?: string;
|
|
109
|
+
encryptedValue?: string | undefined;
|
|
110
110
|
})[]>;
|
|
111
111
|
readonly isLoading: import("@angular/core").InputSignal<boolean>;
|
|
112
112
|
readonly additionalToolbarItems: import("@angular/core").InputSignal<TemplateRef<any>>;
|
|
@@ -148,9 +148,9 @@ export declare class CopilotChatAssistantMessage {
|
|
|
148
148
|
message: {
|
|
149
149
|
role: "assistant";
|
|
150
150
|
id: string;
|
|
151
|
-
content?: string;
|
|
152
|
-
name?: string;
|
|
153
|
-
encryptedValue?: string;
|
|
151
|
+
content?: string | undefined;
|
|
152
|
+
name?: string | undefined;
|
|
153
|
+
encryptedValue?: string | undefined;
|
|
154
154
|
toolCalls?: {
|
|
155
155
|
function: {
|
|
156
156
|
name: string;
|
|
@@ -158,27 +158,27 @@ export declare class CopilotChatAssistantMessage {
|
|
|
158
158
|
};
|
|
159
159
|
type: "function";
|
|
160
160
|
id: string;
|
|
161
|
-
encryptedValue?: string;
|
|
162
|
-
}[];
|
|
161
|
+
encryptedValue?: string | undefined;
|
|
162
|
+
}[] | undefined;
|
|
163
163
|
};
|
|
164
164
|
messages: ({
|
|
165
165
|
role: "developer";
|
|
166
166
|
content: string;
|
|
167
167
|
id: string;
|
|
168
|
-
name?: string;
|
|
169
|
-
encryptedValue?: string;
|
|
168
|
+
name?: string | undefined;
|
|
169
|
+
encryptedValue?: string | undefined;
|
|
170
170
|
} | {
|
|
171
171
|
role: "system";
|
|
172
172
|
content: string;
|
|
173
173
|
id: string;
|
|
174
|
-
name?: string;
|
|
175
|
-
encryptedValue?: string;
|
|
174
|
+
name?: string | undefined;
|
|
175
|
+
encryptedValue?: string | undefined;
|
|
176
176
|
} | {
|
|
177
177
|
role: "assistant";
|
|
178
178
|
id: string;
|
|
179
|
-
content?: string;
|
|
180
|
-
name?: string;
|
|
181
|
-
encryptedValue?: string;
|
|
179
|
+
content?: string | undefined;
|
|
180
|
+
name?: string | undefined;
|
|
181
|
+
encryptedValue?: string | undefined;
|
|
182
182
|
toolCalls?: {
|
|
183
183
|
function: {
|
|
184
184
|
name: string;
|
|
@@ -186,8 +186,8 @@ export declare class CopilotChatAssistantMessage {
|
|
|
186
186
|
};
|
|
187
187
|
type: "function";
|
|
188
188
|
id: string;
|
|
189
|
-
encryptedValue?: string;
|
|
190
|
-
}[];
|
|
189
|
+
encryptedValue?: string | undefined;
|
|
190
|
+
}[] | undefined;
|
|
191
191
|
} | {
|
|
192
192
|
role: "user";
|
|
193
193
|
content: string | ({
|
|
@@ -196,21 +196,21 @@ export declare class CopilotChatAssistantMessage {
|
|
|
196
196
|
} | {
|
|
197
197
|
type: "binary";
|
|
198
198
|
mimeType: string;
|
|
199
|
-
id?: string;
|
|
200
|
-
url?: string;
|
|
201
|
-
data?: string;
|
|
202
|
-
filename?: string;
|
|
199
|
+
id?: string | undefined;
|
|
200
|
+
url?: string | undefined;
|
|
201
|
+
data?: string | undefined;
|
|
202
|
+
filename?: string | undefined;
|
|
203
203
|
})[];
|
|
204
204
|
id: string;
|
|
205
|
-
name?: string;
|
|
206
|
-
encryptedValue?: string;
|
|
205
|
+
name?: string | undefined;
|
|
206
|
+
encryptedValue?: string | undefined;
|
|
207
207
|
} | {
|
|
208
208
|
role: "tool";
|
|
209
209
|
toolCallId: string;
|
|
210
210
|
content: string;
|
|
211
211
|
id: string;
|
|
212
|
-
encryptedValue?: string;
|
|
213
|
-
error?: string;
|
|
212
|
+
encryptedValue?: string | undefined;
|
|
213
|
+
error?: string | undefined;
|
|
214
214
|
} | {
|
|
215
215
|
role: "activity";
|
|
216
216
|
content: Record<string, any>;
|
|
@@ -220,7 +220,7 @@ export declare class CopilotChatAssistantMessage {
|
|
|
220
220
|
role: "reasoning";
|
|
221
221
|
content: string;
|
|
222
222
|
id: string;
|
|
223
|
-
encryptedValue?: string;
|
|
223
|
+
encryptedValue?: string | undefined;
|
|
224
224
|
})[];
|
|
225
225
|
isLoading: boolean;
|
|
226
226
|
}>;
|