@copilotkitnext/angular 1.52.0-next.7 → 1.52.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 +312 -161
- 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 +1 -0
- package/dist/lib/copilotkit.d.ts +6 -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
|
@@ -18,20 +18,20 @@ export declare class CopilotChatViewScrollView implements OnInit, AfterViewInit,
|
|
|
18
18
|
role: "developer";
|
|
19
19
|
content: string;
|
|
20
20
|
id: string;
|
|
21
|
-
name?: string;
|
|
22
|
-
encryptedValue?: string;
|
|
21
|
+
name?: string | undefined;
|
|
22
|
+
encryptedValue?: string | undefined;
|
|
23
23
|
} | {
|
|
24
24
|
role: "system";
|
|
25
25
|
content: string;
|
|
26
26
|
id: string;
|
|
27
|
-
name?: string;
|
|
28
|
-
encryptedValue?: string;
|
|
27
|
+
name?: string | undefined;
|
|
28
|
+
encryptedValue?: string | undefined;
|
|
29
29
|
} | {
|
|
30
30
|
role: "assistant";
|
|
31
31
|
id: string;
|
|
32
|
-
content?: string;
|
|
33
|
-
name?: string;
|
|
34
|
-
encryptedValue?: string;
|
|
32
|
+
content?: string | undefined;
|
|
33
|
+
name?: string | undefined;
|
|
34
|
+
encryptedValue?: string | undefined;
|
|
35
35
|
toolCalls?: {
|
|
36
36
|
function: {
|
|
37
37
|
name: string;
|
|
@@ -39,8 +39,8 @@ export declare class CopilotChatViewScrollView implements OnInit, AfterViewInit,
|
|
|
39
39
|
};
|
|
40
40
|
type: "function";
|
|
41
41
|
id: string;
|
|
42
|
-
encryptedValue?: string;
|
|
43
|
-
}[];
|
|
42
|
+
encryptedValue?: string | undefined;
|
|
43
|
+
}[] | undefined;
|
|
44
44
|
} | {
|
|
45
45
|
role: "user";
|
|
46
46
|
content: string | ({
|
|
@@ -49,21 +49,21 @@ export declare class CopilotChatViewScrollView implements OnInit, AfterViewInit,
|
|
|
49
49
|
} | {
|
|
50
50
|
type: "binary";
|
|
51
51
|
mimeType: string;
|
|
52
|
-
id?: string;
|
|
53
|
-
url?: string;
|
|
54
|
-
data?: string;
|
|
55
|
-
filename?: string;
|
|
52
|
+
id?: string | undefined;
|
|
53
|
+
url?: string | undefined;
|
|
54
|
+
data?: string | undefined;
|
|
55
|
+
filename?: string | undefined;
|
|
56
56
|
})[];
|
|
57
57
|
id: string;
|
|
58
|
-
name?: string;
|
|
59
|
-
encryptedValue?: string;
|
|
58
|
+
name?: string | undefined;
|
|
59
|
+
encryptedValue?: string | undefined;
|
|
60
60
|
} | {
|
|
61
61
|
role: "tool";
|
|
62
62
|
toolCallId: string;
|
|
63
63
|
content: string;
|
|
64
64
|
id: string;
|
|
65
|
-
encryptedValue?: string;
|
|
66
|
-
error?: string;
|
|
65
|
+
encryptedValue?: string | undefined;
|
|
66
|
+
error?: string | undefined;
|
|
67
67
|
} | {
|
|
68
68
|
role: "activity";
|
|
69
69
|
content: Record<string, any>;
|
|
@@ -73,7 +73,7 @@ export declare class CopilotChatViewScrollView implements OnInit, AfterViewInit,
|
|
|
73
73
|
role: "reasoning";
|
|
74
74
|
content: string;
|
|
75
75
|
id: string;
|
|
76
|
-
encryptedValue?: string;
|
|
76
|
+
encryptedValue?: string | undefined;
|
|
77
77
|
})[]>;
|
|
78
78
|
messageView: import("@angular/core").InputSignal<any>;
|
|
79
79
|
messageViewClass: import("@angular/core").InputSignal<string>;
|
|
@@ -29,20 +29,20 @@ export declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit
|
|
|
29
29
|
role: "developer";
|
|
30
30
|
content: string;
|
|
31
31
|
id: string;
|
|
32
|
-
name?: string;
|
|
33
|
-
encryptedValue?: string;
|
|
32
|
+
name?: string | undefined;
|
|
33
|
+
encryptedValue?: string | undefined;
|
|
34
34
|
} | {
|
|
35
35
|
role: "system";
|
|
36
36
|
content: string;
|
|
37
37
|
id: string;
|
|
38
|
-
name?: string;
|
|
39
|
-
encryptedValue?: string;
|
|
38
|
+
name?: string | undefined;
|
|
39
|
+
encryptedValue?: string | undefined;
|
|
40
40
|
} | {
|
|
41
41
|
role: "assistant";
|
|
42
42
|
id: string;
|
|
43
|
-
content?: string;
|
|
44
|
-
name?: string;
|
|
45
|
-
encryptedValue?: string;
|
|
43
|
+
content?: string | undefined;
|
|
44
|
+
name?: string | undefined;
|
|
45
|
+
encryptedValue?: string | undefined;
|
|
46
46
|
toolCalls?: {
|
|
47
47
|
function: {
|
|
48
48
|
name: string;
|
|
@@ -50,8 +50,8 @@ export declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit
|
|
|
50
50
|
};
|
|
51
51
|
type: "function";
|
|
52
52
|
id: string;
|
|
53
|
-
encryptedValue?: string;
|
|
54
|
-
}[];
|
|
53
|
+
encryptedValue?: string | undefined;
|
|
54
|
+
}[] | undefined;
|
|
55
55
|
} | {
|
|
56
56
|
role: "user";
|
|
57
57
|
content: string | ({
|
|
@@ -60,21 +60,21 @@ export declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit
|
|
|
60
60
|
} | {
|
|
61
61
|
type: "binary";
|
|
62
62
|
mimeType: string;
|
|
63
|
-
id?: string;
|
|
64
|
-
url?: string;
|
|
65
|
-
data?: string;
|
|
66
|
-
filename?: string;
|
|
63
|
+
id?: string | undefined;
|
|
64
|
+
url?: string | undefined;
|
|
65
|
+
data?: string | undefined;
|
|
66
|
+
filename?: string | undefined;
|
|
67
67
|
})[];
|
|
68
68
|
id: string;
|
|
69
|
-
name?: string;
|
|
70
|
-
encryptedValue?: string;
|
|
69
|
+
name?: string | undefined;
|
|
70
|
+
encryptedValue?: string | undefined;
|
|
71
71
|
} | {
|
|
72
72
|
role: "tool";
|
|
73
73
|
toolCallId: string;
|
|
74
74
|
content: string;
|
|
75
75
|
id: string;
|
|
76
|
-
encryptedValue?: string;
|
|
77
|
-
error?: string;
|
|
76
|
+
encryptedValue?: string | undefined;
|
|
77
|
+
error?: string | undefined;
|
|
78
78
|
} | {
|
|
79
79
|
role: "activity";
|
|
80
80
|
content: Record<string, any>;
|
|
@@ -84,7 +84,7 @@ export declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit
|
|
|
84
84
|
role: "reasoning";
|
|
85
85
|
content: string;
|
|
86
86
|
id: string;
|
|
87
|
-
encryptedValue?: string;
|
|
87
|
+
encryptedValue?: string | undefined;
|
|
88
88
|
})[]>;
|
|
89
89
|
autoScroll: import("@angular/core").InputSignal<boolean>;
|
|
90
90
|
showCursor: import("@angular/core").InputSignal<boolean>;
|
|
@@ -147,20 +147,20 @@ export declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit
|
|
|
147
147
|
role: "developer";
|
|
148
148
|
content: string;
|
|
149
149
|
id: string;
|
|
150
|
-
name?: string;
|
|
151
|
-
encryptedValue?: string;
|
|
150
|
+
name?: string | undefined;
|
|
151
|
+
encryptedValue?: string | undefined;
|
|
152
152
|
} | {
|
|
153
153
|
role: "system";
|
|
154
154
|
content: string;
|
|
155
155
|
id: string;
|
|
156
|
-
name?: string;
|
|
157
|
-
encryptedValue?: string;
|
|
156
|
+
name?: string | undefined;
|
|
157
|
+
encryptedValue?: string | undefined;
|
|
158
158
|
} | {
|
|
159
159
|
role: "assistant";
|
|
160
160
|
id: string;
|
|
161
|
-
content?: string;
|
|
162
|
-
name?: string;
|
|
163
|
-
encryptedValue?: string;
|
|
161
|
+
content?: string | undefined;
|
|
162
|
+
name?: string | undefined;
|
|
163
|
+
encryptedValue?: string | undefined;
|
|
164
164
|
toolCalls?: {
|
|
165
165
|
function: {
|
|
166
166
|
name: string;
|
|
@@ -168,8 +168,8 @@ export declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit
|
|
|
168
168
|
};
|
|
169
169
|
type: "function";
|
|
170
170
|
id: string;
|
|
171
|
-
encryptedValue?: string;
|
|
172
|
-
}[];
|
|
171
|
+
encryptedValue?: string | undefined;
|
|
172
|
+
}[] | undefined;
|
|
173
173
|
} | {
|
|
174
174
|
role: "user";
|
|
175
175
|
content: string | ({
|
|
@@ -178,21 +178,21 @@ export declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit
|
|
|
178
178
|
} | {
|
|
179
179
|
type: "binary";
|
|
180
180
|
mimeType: string;
|
|
181
|
-
id?: string;
|
|
182
|
-
url?: string;
|
|
183
|
-
data?: string;
|
|
184
|
-
filename?: string;
|
|
181
|
+
id?: string | undefined;
|
|
182
|
+
url?: string | undefined;
|
|
183
|
+
data?: string | undefined;
|
|
184
|
+
filename?: string | undefined;
|
|
185
185
|
})[];
|
|
186
186
|
id: string;
|
|
187
|
-
name?: string;
|
|
188
|
-
encryptedValue?: string;
|
|
187
|
+
name?: string | undefined;
|
|
188
|
+
encryptedValue?: string | undefined;
|
|
189
189
|
} | {
|
|
190
190
|
role: "tool";
|
|
191
191
|
toolCallId: string;
|
|
192
192
|
content: string;
|
|
193
193
|
id: string;
|
|
194
|
-
encryptedValue?: string;
|
|
195
|
-
error?: string;
|
|
194
|
+
encryptedValue?: string | undefined;
|
|
195
|
+
error?: string | undefined;
|
|
196
196
|
} | {
|
|
197
197
|
role: "activity";
|
|
198
198
|
content: Record<string, any>;
|
|
@@ -202,7 +202,7 @@ export declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit
|
|
|
202
202
|
role: "reasoning";
|
|
203
203
|
content: string;
|
|
204
204
|
id: string;
|
|
205
|
-
encryptedValue?: string;
|
|
205
|
+
encryptedValue?: string | undefined;
|
|
206
206
|
})[]>;
|
|
207
207
|
protected autoScrollSignal: import("@angular/core").Signal<boolean>;
|
|
208
208
|
protected showCursorSignal: import("@angular/core").Signal<boolean>;
|
|
@@ -229,20 +229,20 @@ export declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit
|
|
|
229
229
|
role: "developer";
|
|
230
230
|
content: string;
|
|
231
231
|
id: string;
|
|
232
|
-
name?: string;
|
|
233
|
-
encryptedValue?: string;
|
|
232
|
+
name?: string | undefined;
|
|
233
|
+
encryptedValue?: string | undefined;
|
|
234
234
|
} | {
|
|
235
235
|
role: "system";
|
|
236
236
|
content: string;
|
|
237
237
|
id: string;
|
|
238
|
-
name?: string;
|
|
239
|
-
encryptedValue?: string;
|
|
238
|
+
name?: string | undefined;
|
|
239
|
+
encryptedValue?: string | undefined;
|
|
240
240
|
} | {
|
|
241
241
|
role: "assistant";
|
|
242
242
|
id: string;
|
|
243
|
-
content?: string;
|
|
244
|
-
name?: string;
|
|
245
|
-
encryptedValue?: string;
|
|
243
|
+
content?: string | undefined;
|
|
244
|
+
name?: string | undefined;
|
|
245
|
+
encryptedValue?: string | undefined;
|
|
246
246
|
toolCalls?: {
|
|
247
247
|
function: {
|
|
248
248
|
name: string;
|
|
@@ -250,8 +250,8 @@ export declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit
|
|
|
250
250
|
};
|
|
251
251
|
type: "function";
|
|
252
252
|
id: string;
|
|
253
|
-
encryptedValue?: string;
|
|
254
|
-
}[];
|
|
253
|
+
encryptedValue?: string | undefined;
|
|
254
|
+
}[] | undefined;
|
|
255
255
|
} | {
|
|
256
256
|
role: "user";
|
|
257
257
|
content: string | ({
|
|
@@ -260,21 +260,21 @@ export declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit
|
|
|
260
260
|
} | {
|
|
261
261
|
type: "binary";
|
|
262
262
|
mimeType: string;
|
|
263
|
-
id?: string;
|
|
264
|
-
url?: string;
|
|
265
|
-
data?: string;
|
|
266
|
-
filename?: string;
|
|
263
|
+
id?: string | undefined;
|
|
264
|
+
url?: string | undefined;
|
|
265
|
+
data?: string | undefined;
|
|
266
|
+
filename?: string | undefined;
|
|
267
267
|
})[];
|
|
268
268
|
id: string;
|
|
269
|
-
name?: string;
|
|
270
|
-
encryptedValue?: string;
|
|
269
|
+
name?: string | undefined;
|
|
270
|
+
encryptedValue?: string | undefined;
|
|
271
271
|
} | {
|
|
272
272
|
role: "tool";
|
|
273
273
|
toolCallId: string;
|
|
274
274
|
content: string;
|
|
275
275
|
id: string;
|
|
276
|
-
encryptedValue?: string;
|
|
277
|
-
error?: string;
|
|
276
|
+
encryptedValue?: string | undefined;
|
|
277
|
+
error?: string | undefined;
|
|
278
278
|
} | {
|
|
279
279
|
role: "activity";
|
|
280
280
|
content: Record<string, any>;
|
|
@@ -284,7 +284,7 @@ export declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit
|
|
|
284
284
|
role: "reasoning";
|
|
285
285
|
content: string;
|
|
286
286
|
id: string;
|
|
287
|
-
encryptedValue?: string;
|
|
287
|
+
encryptedValue?: string | undefined;
|
|
288
288
|
})[];
|
|
289
289
|
messageView: Type<any> | TemplateRef<any>;
|
|
290
290
|
messageViewClass: string;
|
|
@@ -24,20 +24,20 @@ export declare class CopilotChat implements ChatState {
|
|
|
24
24
|
role: "developer";
|
|
25
25
|
content: string;
|
|
26
26
|
id: string;
|
|
27
|
-
name?: string;
|
|
28
|
-
encryptedValue?: string;
|
|
27
|
+
name?: string | undefined;
|
|
28
|
+
encryptedValue?: string | undefined;
|
|
29
29
|
} | {
|
|
30
30
|
role: "system";
|
|
31
31
|
content: string;
|
|
32
32
|
id: string;
|
|
33
|
-
name?: string;
|
|
34
|
-
encryptedValue?: string;
|
|
33
|
+
name?: string | undefined;
|
|
34
|
+
encryptedValue?: string | undefined;
|
|
35
35
|
} | {
|
|
36
36
|
role: "assistant";
|
|
37
37
|
id: string;
|
|
38
|
-
content?: string;
|
|
39
|
-
name?: string;
|
|
40
|
-
encryptedValue?: string;
|
|
38
|
+
content?: string | undefined;
|
|
39
|
+
name?: string | undefined;
|
|
40
|
+
encryptedValue?: string | undefined;
|
|
41
41
|
toolCalls?: {
|
|
42
42
|
function: {
|
|
43
43
|
name: string;
|
|
@@ -45,8 +45,8 @@ export declare class CopilotChat implements ChatState {
|
|
|
45
45
|
};
|
|
46
46
|
type: "function";
|
|
47
47
|
id: string;
|
|
48
|
-
encryptedValue?: string;
|
|
49
|
-
}[];
|
|
48
|
+
encryptedValue?: string | undefined;
|
|
49
|
+
}[] | undefined;
|
|
50
50
|
} | {
|
|
51
51
|
role: "user";
|
|
52
52
|
content: string | ({
|
|
@@ -55,21 +55,21 @@ export declare class CopilotChat implements ChatState {
|
|
|
55
55
|
} | {
|
|
56
56
|
type: "binary";
|
|
57
57
|
mimeType: string;
|
|
58
|
-
id?: string;
|
|
59
|
-
url?: string;
|
|
60
|
-
data?: string;
|
|
61
|
-
filename?: string;
|
|
58
|
+
id?: string | undefined;
|
|
59
|
+
url?: string | undefined;
|
|
60
|
+
data?: string | undefined;
|
|
61
|
+
filename?: string | undefined;
|
|
62
62
|
})[];
|
|
63
63
|
id: string;
|
|
64
|
-
name?: string;
|
|
65
|
-
encryptedValue?: string;
|
|
64
|
+
name?: string | undefined;
|
|
65
|
+
encryptedValue?: string | undefined;
|
|
66
66
|
} | {
|
|
67
67
|
role: "tool";
|
|
68
68
|
toolCallId: string;
|
|
69
69
|
content: string;
|
|
70
70
|
id: string;
|
|
71
|
-
encryptedValue?: string;
|
|
72
|
-
error?: string;
|
|
71
|
+
encryptedValue?: string | undefined;
|
|
72
|
+
error?: string | undefined;
|
|
73
73
|
} | {
|
|
74
74
|
role: "activity";
|
|
75
75
|
content: Record<string, any>;
|
|
@@ -79,7 +79,7 @@ export declare class CopilotChat implements ChatState {
|
|
|
79
79
|
role: "reasoning";
|
|
80
80
|
content: string;
|
|
81
81
|
id: string;
|
|
82
|
-
encryptedValue?: string;
|
|
82
|
+
encryptedValue?: string | undefined;
|
|
83
83
|
})[]>;
|
|
84
84
|
protected isRunning: import("@angular/core").Signal<boolean>;
|
|
85
85
|
protected showCursor: import("@angular/core").WritableSignal<boolean>;
|
package/dist/lib/config.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { ClientTool, FrontendToolConfig, HumanInTheLoopConfig, RenderToolCallCon
|
|
|
4
4
|
export interface CopilotKitConfig {
|
|
5
5
|
runtimeUrl?: string;
|
|
6
6
|
headers?: Record<string, string>;
|
|
7
|
+
licenseKey?: string;
|
|
7
8
|
properties?: Record<string, unknown>;
|
|
8
9
|
agents?: Record<string, AbstractAgent>;
|
|
9
10
|
tools?: ClientTool[];
|
package/dist/lib/copilotkit.d.ts
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { AbstractAgent } from "@ag-ui/client";
|
|
2
|
-
import { CopilotKitCore } from "@copilotkitnext/core";
|
|
2
|
+
import { CopilotKitCore, CopilotKitCoreRuntimeConnectionStatus, CopilotRuntimeTransport } from "@copilotkitnext/core";
|
|
3
3
|
import { Injector, Signal } from "@angular/core";
|
|
4
4
|
import { FrontendToolConfig, HumanInTheLoopConfig, RenderToolCallConfig } from "./tools";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class CopilotKit {
|
|
7
7
|
#private;
|
|
8
8
|
readonly agents: Signal<Record<string, AbstractAgent>>;
|
|
9
|
+
readonly runtimeConnectionStatus: Signal<CopilotKitCoreRuntimeConnectionStatus>;
|
|
10
|
+
readonly runtimeUrl: Signal<string>;
|
|
11
|
+
readonly runtimeTransport: Signal<CopilotRuntimeTransport>;
|
|
12
|
+
readonly headers: Signal<Record<string, string>>;
|
|
9
13
|
readonly core: CopilotKitCore;
|
|
10
14
|
readonly toolCallRenderConfigs: Signal<RenderToolCallConfig[]>;
|
|
11
15
|
readonly clientToolCallRenderConfigs: Signal<FrontendToolConfig[]>;
|
|
@@ -20,6 +24,7 @@ export declare class CopilotKit {
|
|
|
20
24
|
getAgent(agentId: string): AbstractAgent | undefined;
|
|
21
25
|
updateRuntime(options: {
|
|
22
26
|
runtimeUrl?: string;
|
|
27
|
+
runtimeTransport?: CopilotRuntimeTransport;
|
|
23
28
|
headers?: Record<string, string>;
|
|
24
29
|
properties?: Record<string, unknown>;
|
|
25
30
|
agents?: Record<string, AbstractAgent>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ensureLicenseWatermark(headers?: Record<string, string>): void;
|
|
@@ -19,9 +19,9 @@ export declare class RenderToolCalls {
|
|
|
19
19
|
readonly message: import("@angular/core").InputSignal<{
|
|
20
20
|
role: "assistant";
|
|
21
21
|
id: string;
|
|
22
|
-
content?: string;
|
|
23
|
-
name?: string;
|
|
24
|
-
encryptedValue?: string;
|
|
22
|
+
content?: string | undefined;
|
|
23
|
+
name?: string | undefined;
|
|
24
|
+
encryptedValue?: string | undefined;
|
|
25
25
|
toolCalls?: {
|
|
26
26
|
function: {
|
|
27
27
|
name: string;
|
|
@@ -29,27 +29,27 @@ export declare class RenderToolCalls {
|
|
|
29
29
|
};
|
|
30
30
|
type: "function";
|
|
31
31
|
id: string;
|
|
32
|
-
encryptedValue?: string;
|
|
33
|
-
}[];
|
|
32
|
+
encryptedValue?: string | undefined;
|
|
33
|
+
}[] | undefined;
|
|
34
34
|
}>;
|
|
35
35
|
readonly messages: import("@angular/core").InputSignal<({
|
|
36
36
|
role: "developer";
|
|
37
37
|
content: string;
|
|
38
38
|
id: string;
|
|
39
|
-
name?: string;
|
|
40
|
-
encryptedValue?: string;
|
|
39
|
+
name?: string | undefined;
|
|
40
|
+
encryptedValue?: string | undefined;
|
|
41
41
|
} | {
|
|
42
42
|
role: "system";
|
|
43
43
|
content: string;
|
|
44
44
|
id: string;
|
|
45
|
-
name?: string;
|
|
46
|
-
encryptedValue?: string;
|
|
45
|
+
name?: string | undefined;
|
|
46
|
+
encryptedValue?: string | undefined;
|
|
47
47
|
} | {
|
|
48
48
|
role: "assistant";
|
|
49
49
|
id: string;
|
|
50
|
-
content?: string;
|
|
51
|
-
name?: string;
|
|
52
|
-
encryptedValue?: string;
|
|
50
|
+
content?: string | undefined;
|
|
51
|
+
name?: string | undefined;
|
|
52
|
+
encryptedValue?: string | undefined;
|
|
53
53
|
toolCalls?: {
|
|
54
54
|
function: {
|
|
55
55
|
name: string;
|
|
@@ -57,8 +57,8 @@ export declare class RenderToolCalls {
|
|
|
57
57
|
};
|
|
58
58
|
type: "function";
|
|
59
59
|
id: string;
|
|
60
|
-
encryptedValue?: string;
|
|
61
|
-
}[];
|
|
60
|
+
encryptedValue?: string | undefined;
|
|
61
|
+
}[] | undefined;
|
|
62
62
|
} | {
|
|
63
63
|
role: "user";
|
|
64
64
|
content: string | ({
|
|
@@ -67,21 +67,21 @@ export declare class RenderToolCalls {
|
|
|
67
67
|
} | {
|
|
68
68
|
type: "binary";
|
|
69
69
|
mimeType: string;
|
|
70
|
-
id?: string;
|
|
71
|
-
url?: string;
|
|
72
|
-
data?: string;
|
|
73
|
-
filename?: string;
|
|
70
|
+
id?: string | undefined;
|
|
71
|
+
url?: string | undefined;
|
|
72
|
+
data?: string | undefined;
|
|
73
|
+
filename?: string | undefined;
|
|
74
74
|
})[];
|
|
75
75
|
id: string;
|
|
76
|
-
name?: string;
|
|
77
|
-
encryptedValue?: string;
|
|
76
|
+
name?: string | undefined;
|
|
77
|
+
encryptedValue?: string | undefined;
|
|
78
78
|
} | {
|
|
79
79
|
role: "tool";
|
|
80
80
|
toolCallId: string;
|
|
81
81
|
content: string;
|
|
82
82
|
id: string;
|
|
83
|
-
encryptedValue?: string;
|
|
84
|
-
error?: string;
|
|
83
|
+
encryptedValue?: string | undefined;
|
|
84
|
+
error?: string | undefined;
|
|
85
85
|
} | {
|
|
86
86
|
role: "activity";
|
|
87
87
|
content: Record<string, any>;
|
|
@@ -91,7 +91,7 @@ export declare class RenderToolCalls {
|
|
|
91
91
|
role: "reasoning";
|
|
92
92
|
content: string;
|
|
93
93
|
id: string;
|
|
94
|
-
encryptedValue?: string;
|
|
94
|
+
encryptedValue?: string | undefined;
|
|
95
95
|
})[]>;
|
|
96
96
|
readonly isLoading: import("@angular/core").InputSignal<boolean>;
|
|
97
97
|
protected pickRenderer(name: string): ToolCallHandler | undefined;
|
package/dist/styles.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@copilotkitnext/angular",
|
|
3
|
-
"version": "1.52.0
|
|
3
|
+
"version": "1.52.0",
|
|
4
4
|
"description": "Angular library for CopilotKit",
|
|
5
5
|
"main": "dist/fesm2022/copilotkitnext-angular.mjs",
|
|
6
6
|
"module": "dist/fesm2022/copilotkitnext-angular.mjs",
|
|
@@ -24,25 +24,25 @@
|
|
|
24
24
|
"tailwind-merge": "^2.6.0",
|
|
25
25
|
"zod": "^3.22.4",
|
|
26
26
|
"tslib": "^2.6.0",
|
|
27
|
-
"@copilotkitnext/core": "1.52.0
|
|
28
|
-
"@copilotkitnext/shared": "1.52.0
|
|
27
|
+
"@copilotkitnext/core": "1.52.0",
|
|
28
|
+
"@copilotkitnext/shared": "1.52.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@angular/cdk": "^
|
|
32
|
-
"@angular/common": "^
|
|
33
|
-
"@angular/core": "^
|
|
31
|
+
"@angular/cdk": "^19.0.0",
|
|
32
|
+
"@angular/common": "^19.0.0",
|
|
33
|
+
"@angular/core": "^19.0.0",
|
|
34
34
|
"rxjs": "^7.8.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@analogjs/vite-plugin-angular": "^1.20.2",
|
|
38
38
|
"@analogjs/vitest-angular": "^1.20.2",
|
|
39
|
-
"@angular/cdk": "^
|
|
40
|
-
"@angular/common": "^
|
|
41
|
-
"@angular/compiler": "^
|
|
42
|
-
"@angular/compiler-cli": "^
|
|
43
|
-
"@angular/core": "^
|
|
44
|
-
"@angular/platform-browser": "^
|
|
45
|
-
"@angular/platform-browser-dynamic": "^
|
|
39
|
+
"@angular/cdk": "^19.0.0",
|
|
40
|
+
"@angular/common": "^19.0.0",
|
|
41
|
+
"@angular/compiler": "^19.0.0",
|
|
42
|
+
"@angular/compiler-cli": "^19.0.0",
|
|
43
|
+
"@angular/core": "^19.0.0",
|
|
44
|
+
"@angular/platform-browser": "^19.0.0",
|
|
45
|
+
"@angular/platform-browser-dynamic": "^19.0.0",
|
|
46
46
|
"eslint": "^9.17.0",
|
|
47
47
|
"@eslint/js": "^9.30.0",
|
|
48
48
|
"@lucide/build-icons": "^1.1.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"autoprefixer": "^10.4.16",
|
|
56
56
|
"concurrently": "^9.1.0",
|
|
57
57
|
"jsdom": "^24.0.0",
|
|
58
|
-
"ng-packagr": "^
|
|
58
|
+
"ng-packagr": "^19.0.0",
|
|
59
59
|
"postcss": "^8.4.31",
|
|
60
60
|
"reflect-metadata": "^0.2.2",
|
|
61
61
|
"rimraf": "^6.0.1",
|
|
@@ -63,13 +63,13 @@
|
|
|
63
63
|
"tailwindcss": "^4.0.8",
|
|
64
64
|
"tslib": "^2.8.1",
|
|
65
65
|
"tw-animate-css": "^1.3.5",
|
|
66
|
-
"typescript": "
|
|
66
|
+
"typescript": "5.8.2",
|
|
67
67
|
"typescript-eslint": "^8.35.0",
|
|
68
68
|
"vite": "^7.1.4",
|
|
69
69
|
"vitest": "^3.2.4",
|
|
70
70
|
"zone.js": "^0.14.0",
|
|
71
|
-
"@copilotkitnext/eslint-config": "1.52.0
|
|
72
|
-
"@copilotkitnext/typescript-config": "1.52.0
|
|
71
|
+
"@copilotkitnext/eslint-config": "1.52.0",
|
|
72
|
+
"@copilotkitnext/typescript-config": "1.52.0"
|
|
73
73
|
},
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"url": "https://github.com/CopilotKit/CopilotKit.git",
|
|
80
80
|
"directory": "packages/angular"
|
|
81
81
|
},
|
|
82
|
-
"license": "
|
|
82
|
+
"license": "Commercial",
|
|
83
83
|
"scripts": {
|
|
84
84
|
"build": "ng-packagr -p ng-package.json && npm run build:css",
|
|
85
85
|
"build:css": "tailwindcss -i ./src/styles/globals.css -o ./dist/styles.css && node scripts/scope-preflight.mjs ./dist/styles.css",
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './index';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29waWxvdGtpdG5leHQtYW5ndWxhci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb3BpbG90a2l0bmV4dC1hbmd1bGFyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
|
package/dist/esm2022/index.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from "./public-api";
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi9wdWJsaWMtYXBpXCI7XG4iXX0=
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { effect, inject, Injector, runInInjectionContext, } from "@angular/core";
|
|
2
|
-
import { CopilotKit } from "./copilotkit";
|
|
3
|
-
/**
|
|
4
|
-
* Connects context to the agent.
|
|
5
|
-
*
|
|
6
|
-
* @param context - The context (or a signal of context) to connect to the agent.
|
|
7
|
-
* @param config - Optional configuration for connecting the context.
|
|
8
|
-
*/
|
|
9
|
-
export function connectAgentContext(context, config) {
|
|
10
|
-
const injector = inject(Injector, { optional: true }) ?? config?.injector;
|
|
11
|
-
if (!injector) {
|
|
12
|
-
throw new Error("Injector not found. You must call connectAgentContext in an injector context or pass an injector in the config");
|
|
13
|
-
}
|
|
14
|
-
runInInjectionContext(injector, () => {
|
|
15
|
-
const copilotkit = inject(CopilotKit);
|
|
16
|
-
effect((teardown) => {
|
|
17
|
-
const contextValue = typeof context === "function" ? context() : context;
|
|
18
|
-
const id = copilotkit.core.addContext(contextValue);
|
|
19
|
-
teardown(() => {
|
|
20
|
-
copilotkit.core.removeContext(id);
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWdlbnQtY29udGV4dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvYWdlbnQtY29udGV4dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsTUFBTSxFQUNOLE1BQU0sRUFDTixRQUFRLEVBQ1IscUJBQXFCLEdBRXRCLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFNMUM7Ozs7O0dBS0c7QUFDSCxNQUFNLFVBQVUsbUJBQW1CLENBQ2pDLE9BQWtDLEVBQ2xDLE1BQWtDO0lBRWxDLE1BQU0sUUFBUSxHQUFHLE1BQU0sQ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