@copilotkitnext/angular 0.0.20 → 0.0.21-alpha.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/dist/esm2022/lib/components/chat/copilot-chat-user-message-branch-navigation.mjs +6 -26
- package/dist/esm2022/lib/components/chat/copilot-chat-user-message.mjs +36 -34
- package/dist/esm2022/lib/components/chat/copilot-chat-user-message.types.mjs +1 -1
- package/dist/esm2022/lib/render-tool-calls.mjs +3 -2
- package/dist/fesm2022/copilotkitnext-angular.mjs +41 -58
- package/dist/fesm2022/copilotkitnext-angular.mjs.map +1 -1
- package/dist/lib/agent.d.ts +16 -1
- package/dist/lib/components/chat/copilot-chat-assistant-message.d.ts +32 -2
- package/dist/lib/components/chat/copilot-chat-message-view.d.ts +112 -7
- package/dist/lib/components/chat/copilot-chat-tool-calls-view.d.ts +16 -1
- package/dist/lib/components/chat/copilot-chat-user-message-branch-navigation.d.ts +17 -2
- package/dist/lib/components/chat/copilot-chat-user-message.d.ts +18 -2
- package/dist/lib/components/chat/copilot-chat-user-message.types.d.ts +1 -7
- package/dist/lib/components/chat/copilot-chat-view-scroll-view.d.ts +16 -1
- package/dist/lib/components/chat/copilot-chat-view.d.ts +48 -3
- package/dist/lib/components/chat/copilot-chat.d.ts +16 -1
- package/dist/lib/render-tool-calls.d.ts +16 -1
- package/package.json +7 -7
- package/vitest.config.mts.timestamp-1760727629337-603c9e5c1f334.mjs +0 -49
package/dist/lib/agent.d.ts
CHANGED
|
@@ -31,7 +31,17 @@ export declare class AgentStore {
|
|
|
31
31
|
} | {
|
|
32
32
|
id: string;
|
|
33
33
|
role: "user";
|
|
34
|
-
content: string
|
|
34
|
+
content: string | ({
|
|
35
|
+
type: "text";
|
|
36
|
+
text: string;
|
|
37
|
+
} | {
|
|
38
|
+
type: "binary";
|
|
39
|
+
mimeType: string;
|
|
40
|
+
id?: string;
|
|
41
|
+
url?: string;
|
|
42
|
+
data?: string;
|
|
43
|
+
filename?: string;
|
|
44
|
+
})[];
|
|
35
45
|
name?: string;
|
|
36
46
|
} | {
|
|
37
47
|
id: string;
|
|
@@ -39,6 +49,11 @@ export declare class AgentStore {
|
|
|
39
49
|
content: string;
|
|
40
50
|
toolCallId: string;
|
|
41
51
|
error?: string;
|
|
52
|
+
} | {
|
|
53
|
+
id: string;
|
|
54
|
+
role: "activity";
|
|
55
|
+
content: Record<string, any>;
|
|
56
|
+
activityType: string;
|
|
42
57
|
})[]>;
|
|
43
58
|
readonly state: Signal<any>;
|
|
44
59
|
constructor(abstractAgent: AbstractAgent, destroyRef: DestroyRef);
|
|
@@ -71,7 +71,17 @@ export declare class CopilotChatAssistantMessage {
|
|
|
71
71
|
} | {
|
|
72
72
|
id: string;
|
|
73
73
|
role: "user";
|
|
74
|
-
content: string
|
|
74
|
+
content: string | ({
|
|
75
|
+
type: "text";
|
|
76
|
+
text: string;
|
|
77
|
+
} | {
|
|
78
|
+
type: "binary";
|
|
79
|
+
mimeType: string;
|
|
80
|
+
id?: string;
|
|
81
|
+
url?: string;
|
|
82
|
+
data?: string;
|
|
83
|
+
filename?: string;
|
|
84
|
+
})[];
|
|
75
85
|
name?: string;
|
|
76
86
|
} | {
|
|
77
87
|
id: string;
|
|
@@ -79,6 +89,11 @@ export declare class CopilotChatAssistantMessage {
|
|
|
79
89
|
content: string;
|
|
80
90
|
toolCallId: string;
|
|
81
91
|
error?: string;
|
|
92
|
+
} | {
|
|
93
|
+
id: string;
|
|
94
|
+
role: "activity";
|
|
95
|
+
content: Record<string, any>;
|
|
96
|
+
activityType: string;
|
|
82
97
|
})[]>;
|
|
83
98
|
readonly isLoading: import("@angular/core").InputSignal<boolean>;
|
|
84
99
|
readonly additionalToolbarItems: import("@angular/core").InputSignal<TemplateRef<any>>;
|
|
@@ -157,7 +172,17 @@ export declare class CopilotChatAssistantMessage {
|
|
|
157
172
|
} | {
|
|
158
173
|
id: string;
|
|
159
174
|
role: "user";
|
|
160
|
-
content: string
|
|
175
|
+
content: string | ({
|
|
176
|
+
type: "text";
|
|
177
|
+
text: string;
|
|
178
|
+
} | {
|
|
179
|
+
type: "binary";
|
|
180
|
+
mimeType: string;
|
|
181
|
+
id?: string;
|
|
182
|
+
url?: string;
|
|
183
|
+
data?: string;
|
|
184
|
+
filename?: string;
|
|
185
|
+
})[];
|
|
161
186
|
name?: string;
|
|
162
187
|
} | {
|
|
163
188
|
id: string;
|
|
@@ -165,6 +190,11 @@ export declare class CopilotChatAssistantMessage {
|
|
|
165
190
|
content: string;
|
|
166
191
|
toolCallId: string;
|
|
167
192
|
error?: string;
|
|
193
|
+
} | {
|
|
194
|
+
id: string;
|
|
195
|
+
role: "activity";
|
|
196
|
+
content: Record<string, any>;
|
|
197
|
+
activityType: string;
|
|
168
198
|
})[];
|
|
169
199
|
isLoading: boolean;
|
|
170
200
|
}>;
|
|
@@ -36,7 +36,17 @@ export declare class CopilotChatMessageView {
|
|
|
36
36
|
} | {
|
|
37
37
|
id: string;
|
|
38
38
|
role: "user";
|
|
39
|
-
content: string
|
|
39
|
+
content: string | ({
|
|
40
|
+
type: "text";
|
|
41
|
+
text: string;
|
|
42
|
+
} | {
|
|
43
|
+
type: "binary";
|
|
44
|
+
mimeType: string;
|
|
45
|
+
id?: string;
|
|
46
|
+
url?: string;
|
|
47
|
+
data?: string;
|
|
48
|
+
filename?: string;
|
|
49
|
+
})[];
|
|
40
50
|
name?: string;
|
|
41
51
|
} | {
|
|
42
52
|
id: string;
|
|
@@ -44,6 +54,11 @@ export declare class CopilotChatMessageView {
|
|
|
44
54
|
content: string;
|
|
45
55
|
toolCallId: string;
|
|
46
56
|
error?: string;
|
|
57
|
+
} | {
|
|
58
|
+
id: string;
|
|
59
|
+
role: "activity";
|
|
60
|
+
content: Record<string, any>;
|
|
61
|
+
activityType: string;
|
|
47
62
|
})[]>;
|
|
48
63
|
showCursor: import("@angular/core").InputSignal<boolean>;
|
|
49
64
|
isLoading: import("@angular/core").InputSignal<boolean>;
|
|
@@ -105,7 +120,17 @@ export declare class CopilotChatMessageView {
|
|
|
105
120
|
} | {
|
|
106
121
|
id: string;
|
|
107
122
|
role: "user";
|
|
108
|
-
content: string
|
|
123
|
+
content: string | ({
|
|
124
|
+
type: "text";
|
|
125
|
+
text: string;
|
|
126
|
+
} | {
|
|
127
|
+
type: "binary";
|
|
128
|
+
mimeType: string;
|
|
129
|
+
id?: string;
|
|
130
|
+
url?: string;
|
|
131
|
+
data?: string;
|
|
132
|
+
filename?: string;
|
|
133
|
+
})[];
|
|
109
134
|
name?: string;
|
|
110
135
|
} | {
|
|
111
136
|
id: string;
|
|
@@ -113,6 +138,11 @@ export declare class CopilotChatMessageView {
|
|
|
113
138
|
content: string;
|
|
114
139
|
toolCallId: string;
|
|
115
140
|
error?: string;
|
|
141
|
+
} | {
|
|
142
|
+
id: string;
|
|
143
|
+
role: "activity";
|
|
144
|
+
content: Record<string, any>;
|
|
145
|
+
activityType: string;
|
|
116
146
|
})[]>;
|
|
117
147
|
protected showCursorValue: import("@angular/core").Signal<boolean>;
|
|
118
148
|
protected isLoadingValue: import("@angular/core").Signal<boolean>;
|
|
@@ -145,7 +175,17 @@ export declare class CopilotChatMessageView {
|
|
|
145
175
|
} | {
|
|
146
176
|
id: string;
|
|
147
177
|
role: "user";
|
|
148
|
-
content: string
|
|
178
|
+
content: string | ({
|
|
179
|
+
type: "text";
|
|
180
|
+
text: string;
|
|
181
|
+
} | {
|
|
182
|
+
type: "binary";
|
|
183
|
+
mimeType: string;
|
|
184
|
+
id?: string;
|
|
185
|
+
url?: string;
|
|
186
|
+
data?: string;
|
|
187
|
+
filename?: string;
|
|
188
|
+
})[];
|
|
149
189
|
name?: string;
|
|
150
190
|
} | {
|
|
151
191
|
id: string;
|
|
@@ -153,6 +193,11 @@ export declare class CopilotChatMessageView {
|
|
|
153
193
|
content: string;
|
|
154
194
|
toolCallId: string;
|
|
155
195
|
error?: string;
|
|
196
|
+
} | {
|
|
197
|
+
id: string;
|
|
198
|
+
role: "activity";
|
|
199
|
+
content: Record<string, any>;
|
|
200
|
+
activityType: string;
|
|
156
201
|
})[];
|
|
157
202
|
showCursor: boolean;
|
|
158
203
|
messageElements: ({
|
|
@@ -181,7 +226,17 @@ export declare class CopilotChatMessageView {
|
|
|
181
226
|
} | {
|
|
182
227
|
id: string;
|
|
183
228
|
role: "user";
|
|
184
|
-
content: string
|
|
229
|
+
content: string | ({
|
|
230
|
+
type: "text";
|
|
231
|
+
text: string;
|
|
232
|
+
} | {
|
|
233
|
+
type: "binary";
|
|
234
|
+
mimeType: string;
|
|
235
|
+
id?: string;
|
|
236
|
+
url?: string;
|
|
237
|
+
data?: string;
|
|
238
|
+
filename?: string;
|
|
239
|
+
})[];
|
|
185
240
|
name?: string;
|
|
186
241
|
} | {
|
|
187
242
|
id: string;
|
|
@@ -189,6 +244,11 @@ export declare class CopilotChatMessageView {
|
|
|
189
244
|
content: string;
|
|
190
245
|
toolCallId: string;
|
|
191
246
|
error?: string;
|
|
247
|
+
} | {
|
|
248
|
+
id: string;
|
|
249
|
+
role: "activity";
|
|
250
|
+
content: Record<string, any>;
|
|
251
|
+
activityType: string;
|
|
192
252
|
})[];
|
|
193
253
|
}>;
|
|
194
254
|
assistantMessageSlot: import("@angular/core").Signal<string | Type<any>>;
|
|
@@ -221,7 +281,17 @@ export declare class CopilotChatMessageView {
|
|
|
221
281
|
} | {
|
|
222
282
|
id: string;
|
|
223
283
|
role: "user";
|
|
224
|
-
content: string
|
|
284
|
+
content: string | ({
|
|
285
|
+
type: "text";
|
|
286
|
+
text: string;
|
|
287
|
+
} | {
|
|
288
|
+
type: "binary";
|
|
289
|
+
mimeType: string;
|
|
290
|
+
id?: string;
|
|
291
|
+
url?: string;
|
|
292
|
+
data?: string;
|
|
293
|
+
filename?: string;
|
|
294
|
+
})[];
|
|
225
295
|
name?: string;
|
|
226
296
|
} | {
|
|
227
297
|
id: string;
|
|
@@ -229,6 +299,11 @@ export declare class CopilotChatMessageView {
|
|
|
229
299
|
content: string;
|
|
230
300
|
toolCallId: string;
|
|
231
301
|
error?: string;
|
|
302
|
+
} | {
|
|
303
|
+
id: string;
|
|
304
|
+
role: "activity";
|
|
305
|
+
content: Record<string, any>;
|
|
306
|
+
activityType: string;
|
|
232
307
|
};
|
|
233
308
|
messages: ({
|
|
234
309
|
id: string;
|
|
@@ -256,7 +331,17 @@ export declare class CopilotChatMessageView {
|
|
|
256
331
|
} | {
|
|
257
332
|
id: string;
|
|
258
333
|
role: "user";
|
|
259
|
-
content: string
|
|
334
|
+
content: string | ({
|
|
335
|
+
type: "text";
|
|
336
|
+
text: string;
|
|
337
|
+
} | {
|
|
338
|
+
type: "binary";
|
|
339
|
+
mimeType: string;
|
|
340
|
+
id?: string;
|
|
341
|
+
url?: string;
|
|
342
|
+
data?: string;
|
|
343
|
+
filename?: string;
|
|
344
|
+
})[];
|
|
260
345
|
name?: string;
|
|
261
346
|
} | {
|
|
262
347
|
id: string;
|
|
@@ -264,6 +349,11 @@ export declare class CopilotChatMessageView {
|
|
|
264
349
|
content: string;
|
|
265
350
|
toolCallId: string;
|
|
266
351
|
error?: string;
|
|
352
|
+
} | {
|
|
353
|
+
id: string;
|
|
354
|
+
role: "activity";
|
|
355
|
+
content: Record<string, any>;
|
|
356
|
+
activityType: string;
|
|
267
357
|
})[];
|
|
268
358
|
isLoading: boolean;
|
|
269
359
|
inputClass: string;
|
|
@@ -295,7 +385,17 @@ export declare class CopilotChatMessageView {
|
|
|
295
385
|
} | {
|
|
296
386
|
id: string;
|
|
297
387
|
role: "user";
|
|
298
|
-
content: string
|
|
388
|
+
content: string | ({
|
|
389
|
+
type: "text";
|
|
390
|
+
text: string;
|
|
391
|
+
} | {
|
|
392
|
+
type: "binary";
|
|
393
|
+
mimeType: string;
|
|
394
|
+
id?: string;
|
|
395
|
+
url?: string;
|
|
396
|
+
data?: string;
|
|
397
|
+
filename?: string;
|
|
398
|
+
})[];
|
|
299
399
|
name?: string;
|
|
300
400
|
} | {
|
|
301
401
|
id: string;
|
|
@@ -303,6 +403,11 @@ export declare class CopilotChatMessageView {
|
|
|
303
403
|
content: string;
|
|
304
404
|
toolCallId: string;
|
|
305
405
|
error?: string;
|
|
406
|
+
} | {
|
|
407
|
+
id: string;
|
|
408
|
+
role: "activity";
|
|
409
|
+
content: Record<string, any>;
|
|
410
|
+
activityType: string;
|
|
306
411
|
};
|
|
307
412
|
inputClass: string;
|
|
308
413
|
};
|
|
@@ -40,7 +40,17 @@ export declare class CopilotChatToolCallsView {
|
|
|
40
40
|
} | {
|
|
41
41
|
id: string;
|
|
42
42
|
role: "user";
|
|
43
|
-
content: string
|
|
43
|
+
content: string | ({
|
|
44
|
+
type: "text";
|
|
45
|
+
text: string;
|
|
46
|
+
} | {
|
|
47
|
+
type: "binary";
|
|
48
|
+
mimeType: string;
|
|
49
|
+
id?: string;
|
|
50
|
+
url?: string;
|
|
51
|
+
data?: string;
|
|
52
|
+
filename?: string;
|
|
53
|
+
})[];
|
|
44
54
|
name?: string;
|
|
45
55
|
} | {
|
|
46
56
|
id: string;
|
|
@@ -48,6 +58,11 @@ export declare class CopilotChatToolCallsView {
|
|
|
48
58
|
content: string;
|
|
49
59
|
toolCallId: string;
|
|
50
60
|
error?: string;
|
|
61
|
+
} | {
|
|
62
|
+
id: string;
|
|
63
|
+
role: "activity";
|
|
64
|
+
content: Record<string, any>;
|
|
65
|
+
activityType: string;
|
|
51
66
|
})[]>;
|
|
52
67
|
readonly isLoading: import("@angular/core").InputSignal<boolean>;
|
|
53
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<CopilotChatToolCallsView, never>;
|
|
@@ -1,9 +1,24 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type CopilotChatUserMessageOnSwitchToBranchProps } from "./copilot-chat-user-message.types";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class CopilotChatUserMessageBranchNavigation {
|
|
4
4
|
currentBranch: import("@angular/core").InputSignal<number>;
|
|
5
5
|
numberOfBranches: import("@angular/core").InputSignal<number>;
|
|
6
|
-
message: import("@angular/core").InputSignal<
|
|
6
|
+
message: import("@angular/core").InputSignal<{
|
|
7
|
+
id: string;
|
|
8
|
+
role: "user";
|
|
9
|
+
content: string | ({
|
|
10
|
+
type: "text";
|
|
11
|
+
text: string;
|
|
12
|
+
} | {
|
|
13
|
+
type: "binary";
|
|
14
|
+
mimeType: string;
|
|
15
|
+
id?: string;
|
|
16
|
+
url?: string;
|
|
17
|
+
data?: string;
|
|
18
|
+
filename?: string;
|
|
19
|
+
})[];
|
|
20
|
+
name?: string;
|
|
21
|
+
}>;
|
|
7
22
|
inputClass: import("@angular/core").InputSignal<string>;
|
|
8
23
|
switchToBranch: import("@angular/core").OutputEmitterRef<CopilotChatUserMessageOnSwitchToBranchProps>;
|
|
9
24
|
readonly ChevronLeftIcon: import("lucide-angular").LucideIconData;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TemplateRef, Type } from "@angular/core";
|
|
2
|
-
import { type
|
|
2
|
+
import { type CopilotChatUserMessageOnEditMessageProps, type CopilotChatUserMessageOnSwitchToBranchProps, type MessageRendererContext, type CopyButtonContext, type EditButtonContext, type BranchNavigationContext, type UserMessageToolbarContext } from "./copilot-chat-user-message.types";
|
|
3
3
|
import { CopilotChatUserMessageRenderer } from "./copilot-chat-user-message-renderer";
|
|
4
4
|
import { CopilotChatUserMessageCopyButton, CopilotChatUserMessageEditButton } from "./copilot-chat-user-message-buttons";
|
|
5
5
|
import { CopilotChatUserMessageToolbar } from "./copilot-chat-user-message-toolbar";
|
|
@@ -21,7 +21,22 @@ export declare class CopilotChatUserMessage {
|
|
|
21
21
|
copyButtonComponent: import("@angular/core").InputSignal<Type<any>>;
|
|
22
22
|
editButtonComponent: import("@angular/core").InputSignal<Type<any>>;
|
|
23
23
|
branchNavigationComponent: import("@angular/core").InputSignal<Type<any>>;
|
|
24
|
-
message: import("@angular/core").InputSignal<
|
|
24
|
+
message: import("@angular/core").InputSignal<{
|
|
25
|
+
id: string;
|
|
26
|
+
role: "user";
|
|
27
|
+
content: string | ({
|
|
28
|
+
type: "text";
|
|
29
|
+
text: string;
|
|
30
|
+
} | {
|
|
31
|
+
type: "binary";
|
|
32
|
+
mimeType: string;
|
|
33
|
+
id?: string;
|
|
34
|
+
url?: string;
|
|
35
|
+
data?: string;
|
|
36
|
+
filename?: string;
|
|
37
|
+
})[];
|
|
38
|
+
name?: string;
|
|
39
|
+
}>;
|
|
25
40
|
branchIndex: import("@angular/core").InputSignal<number>;
|
|
26
41
|
numberOfBranches: import("@angular/core").InputSignal<number>;
|
|
27
42
|
additionalToolbarItems: import("@angular/core").InputSignal<TemplateRef<any>>;
|
|
@@ -37,6 +52,7 @@ export declare class CopilotChatUserMessage {
|
|
|
37
52
|
CopilotChatUserMessageBranchNavigation: typeof CopilotChatUserMessageBranchNavigation;
|
|
38
53
|
showBranchNavigation: import("@angular/core").Signal<boolean>;
|
|
39
54
|
computedClass: import("@angular/core").Signal<string>;
|
|
55
|
+
flattenedContent: import("@angular/core").Signal<string>;
|
|
40
56
|
messageRendererContext: import("@angular/core").Signal<MessageRendererContext>;
|
|
41
57
|
copyButtonOutputs: {
|
|
42
58
|
clicked: () => void;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
id: string;
|
|
3
|
-
content?: string;
|
|
4
|
-
role: "user";
|
|
5
|
-
timestamp?: Date;
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
}
|
|
1
|
+
import type { UserMessage } from "@ag-ui/core";
|
|
8
2
|
export interface CopilotChatUserMessageOnEditMessageProps {
|
|
9
3
|
message: UserMessage;
|
|
10
4
|
}
|
|
@@ -40,7 +40,17 @@ export declare class CopilotChatViewScrollView implements OnInit, AfterViewInit,
|
|
|
40
40
|
} | {
|
|
41
41
|
id: string;
|
|
42
42
|
role: "user";
|
|
43
|
-
content: string
|
|
43
|
+
content: string | ({
|
|
44
|
+
type: "text";
|
|
45
|
+
text: string;
|
|
46
|
+
} | {
|
|
47
|
+
type: "binary";
|
|
48
|
+
mimeType: string;
|
|
49
|
+
id?: string;
|
|
50
|
+
url?: string;
|
|
51
|
+
data?: string;
|
|
52
|
+
filename?: string;
|
|
53
|
+
})[];
|
|
44
54
|
name?: string;
|
|
45
55
|
} | {
|
|
46
56
|
id: string;
|
|
@@ -48,6 +58,11 @@ export declare class CopilotChatViewScrollView implements OnInit, AfterViewInit,
|
|
|
48
58
|
content: string;
|
|
49
59
|
toolCallId: string;
|
|
50
60
|
error?: string;
|
|
61
|
+
} | {
|
|
62
|
+
id: string;
|
|
63
|
+
role: "activity";
|
|
64
|
+
content: Record<string, any>;
|
|
65
|
+
activityType: string;
|
|
51
66
|
})[]>;
|
|
52
67
|
messageView: import("@angular/core").InputSignal<any>;
|
|
53
68
|
messageViewClass: import("@angular/core").InputSignal<string>;
|
|
@@ -51,7 +51,17 @@ export declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit
|
|
|
51
51
|
} | {
|
|
52
52
|
id: string;
|
|
53
53
|
role: "user";
|
|
54
|
-
content: string
|
|
54
|
+
content: string | ({
|
|
55
|
+
type: "text";
|
|
56
|
+
text: string;
|
|
57
|
+
} | {
|
|
58
|
+
type: "binary";
|
|
59
|
+
mimeType: string;
|
|
60
|
+
id?: string;
|
|
61
|
+
url?: string;
|
|
62
|
+
data?: string;
|
|
63
|
+
filename?: string;
|
|
64
|
+
})[];
|
|
55
65
|
name?: string;
|
|
56
66
|
} | {
|
|
57
67
|
id: string;
|
|
@@ -59,6 +69,11 @@ export declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit
|
|
|
59
69
|
content: string;
|
|
60
70
|
toolCallId: string;
|
|
61
71
|
error?: string;
|
|
72
|
+
} | {
|
|
73
|
+
id: string;
|
|
74
|
+
role: "activity";
|
|
75
|
+
content: Record<string, any>;
|
|
76
|
+
activityType: string;
|
|
62
77
|
})[]>;
|
|
63
78
|
autoScroll: import("@angular/core").InputSignal<boolean>;
|
|
64
79
|
showCursor: import("@angular/core").InputSignal<boolean>;
|
|
@@ -143,7 +158,17 @@ export declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit
|
|
|
143
158
|
} | {
|
|
144
159
|
id: string;
|
|
145
160
|
role: "user";
|
|
146
|
-
content: string
|
|
161
|
+
content: string | ({
|
|
162
|
+
type: "text";
|
|
163
|
+
text: string;
|
|
164
|
+
} | {
|
|
165
|
+
type: "binary";
|
|
166
|
+
mimeType: string;
|
|
167
|
+
id?: string;
|
|
168
|
+
url?: string;
|
|
169
|
+
data?: string;
|
|
170
|
+
filename?: string;
|
|
171
|
+
})[];
|
|
147
172
|
name?: string;
|
|
148
173
|
} | {
|
|
149
174
|
id: string;
|
|
@@ -151,6 +176,11 @@ export declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit
|
|
|
151
176
|
content: string;
|
|
152
177
|
toolCallId: string;
|
|
153
178
|
error?: string;
|
|
179
|
+
} | {
|
|
180
|
+
id: string;
|
|
181
|
+
role: "activity";
|
|
182
|
+
content: Record<string, any>;
|
|
183
|
+
activityType: string;
|
|
154
184
|
})[]>;
|
|
155
185
|
protected autoScrollSignal: import("@angular/core").Signal<boolean>;
|
|
156
186
|
protected showCursorSignal: import("@angular/core").Signal<boolean>;
|
|
@@ -199,7 +229,17 @@ export declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit
|
|
|
199
229
|
} | {
|
|
200
230
|
id: string;
|
|
201
231
|
role: "user";
|
|
202
|
-
content: string
|
|
232
|
+
content: string | ({
|
|
233
|
+
type: "text";
|
|
234
|
+
text: string;
|
|
235
|
+
} | {
|
|
236
|
+
type: "binary";
|
|
237
|
+
mimeType: string;
|
|
238
|
+
id?: string;
|
|
239
|
+
url?: string;
|
|
240
|
+
data?: string;
|
|
241
|
+
filename?: string;
|
|
242
|
+
})[];
|
|
203
243
|
name?: string;
|
|
204
244
|
} | {
|
|
205
245
|
id: string;
|
|
@@ -207,6 +247,11 @@ export declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit
|
|
|
207
247
|
content: string;
|
|
208
248
|
toolCallId: string;
|
|
209
249
|
error?: string;
|
|
250
|
+
} | {
|
|
251
|
+
id: string;
|
|
252
|
+
role: "activity";
|
|
253
|
+
content: Record<string, any>;
|
|
254
|
+
activityType: string;
|
|
210
255
|
})[];
|
|
211
256
|
messageView: Type<any> | TemplateRef<any>;
|
|
212
257
|
messageViewClass: string;
|
|
@@ -45,7 +45,17 @@ export declare class CopilotChat implements ChatState {
|
|
|
45
45
|
} | {
|
|
46
46
|
id: string;
|
|
47
47
|
role: "user";
|
|
48
|
-
content: string
|
|
48
|
+
content: string | ({
|
|
49
|
+
type: "text";
|
|
50
|
+
text: string;
|
|
51
|
+
} | {
|
|
52
|
+
type: "binary";
|
|
53
|
+
mimeType: string;
|
|
54
|
+
id?: string;
|
|
55
|
+
url?: string;
|
|
56
|
+
data?: string;
|
|
57
|
+
filename?: string;
|
|
58
|
+
})[];
|
|
49
59
|
name?: string;
|
|
50
60
|
} | {
|
|
51
61
|
id: string;
|
|
@@ -53,6 +63,11 @@ export declare class CopilotChat implements ChatState {
|
|
|
53
63
|
content: string;
|
|
54
64
|
toolCallId: string;
|
|
55
65
|
error?: string;
|
|
66
|
+
} | {
|
|
67
|
+
id: string;
|
|
68
|
+
role: "activity";
|
|
69
|
+
content: Record<string, any>;
|
|
70
|
+
activityType: string;
|
|
56
71
|
})[]>;
|
|
57
72
|
protected isRunning: import("@angular/core").Signal<boolean>;
|
|
58
73
|
protected showCursor: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -56,7 +56,17 @@ export declare class RenderToolCalls {
|
|
|
56
56
|
} | {
|
|
57
57
|
id: string;
|
|
58
58
|
role: "user";
|
|
59
|
-
content: string
|
|
59
|
+
content: string | ({
|
|
60
|
+
type: "text";
|
|
61
|
+
text: string;
|
|
62
|
+
} | {
|
|
63
|
+
type: "binary";
|
|
64
|
+
mimeType: string;
|
|
65
|
+
id?: string;
|
|
66
|
+
url?: string;
|
|
67
|
+
data?: string;
|
|
68
|
+
filename?: string;
|
|
69
|
+
})[];
|
|
60
70
|
name?: string;
|
|
61
71
|
} | {
|
|
62
72
|
id: string;
|
|
@@ -64,6 +74,11 @@ export declare class RenderToolCalls {
|
|
|
64
74
|
content: string;
|
|
65
75
|
toolCallId: string;
|
|
66
76
|
error?: string;
|
|
77
|
+
} | {
|
|
78
|
+
id: string;
|
|
79
|
+
role: "activity";
|
|
80
|
+
content: Record<string, any>;
|
|
81
|
+
activityType: string;
|
|
67
82
|
})[]>;
|
|
68
83
|
readonly isLoading: import("@angular/core").InputSignal<boolean>;
|
|
69
84
|
protected pickRenderer(name: string): ToolCallHandler | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@copilotkitnext/angular",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21-alpha.0",
|
|
4
4
|
"description": "Angular library for CopilotKit",
|
|
5
5
|
"main": "dist/fesm2022/copilotkitnext-angular.mjs",
|
|
6
6
|
"module": "dist/fesm2022/copilotkitnext-angular.mjs",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"./styles.css": "./dist/styles.css"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@ag-ui/client": "0.0.40-alpha.
|
|
23
|
-
"@ag-ui/core": "0.0.40-alpha.
|
|
22
|
+
"@ag-ui/client": "0.0.40-alpha.11",
|
|
23
|
+
"@ag-ui/core": "0.0.40-alpha.11",
|
|
24
24
|
"clsx": "^2.1.1",
|
|
25
25
|
"highlight.js": "^11.11.1",
|
|
26
26
|
"katex": "^0.16.22",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"rxjs": "^7.8.1",
|
|
30
30
|
"tailwind-merge": "^2.6.0",
|
|
31
31
|
"zod": "^3.22.4",
|
|
32
|
-
"@copilotkitnext/
|
|
33
|
-
"@copilotkitnext/
|
|
32
|
+
"@copilotkitnext/shared": "0.0.21-alpha.0",
|
|
33
|
+
"@copilotkitnext/core": "0.0.21-alpha.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@angular/cdk": "^18.0.0 || ^19.0.0",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"vite": "^7.1.4",
|
|
74
74
|
"vitest": "^2.0.5",
|
|
75
75
|
"zone.js": "^0.14.0",
|
|
76
|
-
"@copilotkitnext/
|
|
77
|
-
"@copilotkitnext/
|
|
76
|
+
"@copilotkitnext/typescript-config": "0.0.0",
|
|
77
|
+
"@copilotkitnext/eslint-config": "0.0.0"
|
|
78
78
|
},
|
|
79
79
|
"publishConfig": {
|
|
80
80
|
"access": "public"
|