@copilotkitnext/angular 1.54.1-next.9 → 1.54.2-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.
@@ -8,12 +8,60 @@ export declare class CopilotChatUserMessageBranchNavigation {
8
8
  content: string | ({
9
9
  type: "text";
10
10
  text: string;
11
+ } | {
12
+ type: "image";
13
+ source: {
14
+ type: "data";
15
+ value: string;
16
+ mimeType: string;
17
+ } | {
18
+ type: "url";
19
+ value: string;
20
+ mimeType?: string | undefined;
21
+ };
22
+ metadata?: unknown;
23
+ } | {
24
+ type: "audio";
25
+ source: {
26
+ type: "data";
27
+ value: string;
28
+ mimeType: string;
29
+ } | {
30
+ type: "url";
31
+ value: string;
32
+ mimeType?: string | undefined;
33
+ };
34
+ metadata?: unknown;
35
+ } | {
36
+ type: "video";
37
+ source: {
38
+ type: "data";
39
+ value: string;
40
+ mimeType: string;
41
+ } | {
42
+ type: "url";
43
+ value: string;
44
+ mimeType?: string | undefined;
45
+ };
46
+ metadata?: unknown;
47
+ } | {
48
+ type: "document";
49
+ source: {
50
+ type: "data";
51
+ value: string;
52
+ mimeType: string;
53
+ } | {
54
+ type: "url";
55
+ value: string;
56
+ mimeType?: string | undefined;
57
+ };
58
+ metadata?: unknown;
11
59
  } | {
12
60
  type: "binary";
13
61
  mimeType: string;
14
62
  id?: string | undefined;
15
- url?: string | undefined;
16
63
  data?: string | undefined;
64
+ url?: string | undefined;
17
65
  filename?: string | undefined;
18
66
  })[];
19
67
  id: string;
@@ -26,12 +26,60 @@ export declare class CopilotChatUserMessage {
26
26
  content: string | ({
27
27
  type: "text";
28
28
  text: string;
29
+ } | {
30
+ type: "image";
31
+ source: {
32
+ type: "data";
33
+ value: string;
34
+ mimeType: string;
35
+ } | {
36
+ type: "url";
37
+ value: string;
38
+ mimeType?: string | undefined;
39
+ };
40
+ metadata?: unknown;
41
+ } | {
42
+ type: "audio";
43
+ source: {
44
+ type: "data";
45
+ value: string;
46
+ mimeType: string;
47
+ } | {
48
+ type: "url";
49
+ value: string;
50
+ mimeType?: string | undefined;
51
+ };
52
+ metadata?: unknown;
53
+ } | {
54
+ type: "video";
55
+ source: {
56
+ type: "data";
57
+ value: string;
58
+ mimeType: string;
59
+ } | {
60
+ type: "url";
61
+ value: string;
62
+ mimeType?: string | undefined;
63
+ };
64
+ metadata?: unknown;
65
+ } | {
66
+ type: "document";
67
+ source: {
68
+ type: "data";
69
+ value: string;
70
+ mimeType: string;
71
+ } | {
72
+ type: "url";
73
+ value: string;
74
+ mimeType?: string | undefined;
75
+ };
76
+ metadata?: unknown;
29
77
  } | {
30
78
  type: "binary";
31
79
  mimeType: string;
32
80
  id?: string | undefined;
33
- url?: string | undefined;
34
81
  data?: string | undefined;
82
+ url?: string | undefined;
35
83
  filename?: string | undefined;
36
84
  })[];
37
85
  id: string;
@@ -46,12 +46,60 @@ export declare class CopilotChatViewScrollView implements OnInit, AfterViewInit,
46
46
  content: string | ({
47
47
  type: "text";
48
48
  text: string;
49
+ } | {
50
+ type: "image";
51
+ source: {
52
+ type: "data";
53
+ value: string;
54
+ mimeType: string;
55
+ } | {
56
+ type: "url";
57
+ value: string;
58
+ mimeType?: string | undefined;
59
+ };
60
+ metadata?: unknown;
61
+ } | {
62
+ type: "audio";
63
+ source: {
64
+ type: "data";
65
+ value: string;
66
+ mimeType: string;
67
+ } | {
68
+ type: "url";
69
+ value: string;
70
+ mimeType?: string | undefined;
71
+ };
72
+ metadata?: unknown;
73
+ } | {
74
+ type: "video";
75
+ source: {
76
+ type: "data";
77
+ value: string;
78
+ mimeType: string;
79
+ } | {
80
+ type: "url";
81
+ value: string;
82
+ mimeType?: string | undefined;
83
+ };
84
+ metadata?: unknown;
85
+ } | {
86
+ type: "document";
87
+ source: {
88
+ type: "data";
89
+ value: string;
90
+ mimeType: string;
91
+ } | {
92
+ type: "url";
93
+ value: string;
94
+ mimeType?: string | undefined;
95
+ };
96
+ metadata?: unknown;
49
97
  } | {
50
98
  type: "binary";
51
99
  mimeType: string;
52
100
  id?: string | undefined;
53
- url?: string | undefined;
54
101
  data?: string | undefined;
102
+ url?: string | undefined;
55
103
  filename?: string | undefined;
56
104
  })[];
57
105
  id: string;
@@ -57,12 +57,60 @@ export declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit
57
57
  content: string | ({
58
58
  type: "text";
59
59
  text: string;
60
+ } | {
61
+ type: "image";
62
+ source: {
63
+ type: "data";
64
+ value: string;
65
+ mimeType: string;
66
+ } | {
67
+ type: "url";
68
+ value: string;
69
+ mimeType?: string | undefined;
70
+ };
71
+ metadata?: unknown;
72
+ } | {
73
+ type: "audio";
74
+ source: {
75
+ type: "data";
76
+ value: string;
77
+ mimeType: string;
78
+ } | {
79
+ type: "url";
80
+ value: string;
81
+ mimeType?: string | undefined;
82
+ };
83
+ metadata?: unknown;
84
+ } | {
85
+ type: "video";
86
+ source: {
87
+ type: "data";
88
+ value: string;
89
+ mimeType: string;
90
+ } | {
91
+ type: "url";
92
+ value: string;
93
+ mimeType?: string | undefined;
94
+ };
95
+ metadata?: unknown;
96
+ } | {
97
+ type: "document";
98
+ source: {
99
+ type: "data";
100
+ value: string;
101
+ mimeType: string;
102
+ } | {
103
+ type: "url";
104
+ value: string;
105
+ mimeType?: string | undefined;
106
+ };
107
+ metadata?: unknown;
60
108
  } | {
61
109
  type: "binary";
62
110
  mimeType: string;
63
111
  id?: string | undefined;
64
- url?: string | undefined;
65
112
  data?: string | undefined;
113
+ url?: string | undefined;
66
114
  filename?: string | undefined;
67
115
  })[];
68
116
  id: string;
@@ -175,12 +223,60 @@ export declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit
175
223
  content: string | ({
176
224
  type: "text";
177
225
  text: string;
226
+ } | {
227
+ type: "image";
228
+ source: {
229
+ type: "data";
230
+ value: string;
231
+ mimeType: string;
232
+ } | {
233
+ type: "url";
234
+ value: string;
235
+ mimeType?: string | undefined;
236
+ };
237
+ metadata?: unknown;
238
+ } | {
239
+ type: "audio";
240
+ source: {
241
+ type: "data";
242
+ value: string;
243
+ mimeType: string;
244
+ } | {
245
+ type: "url";
246
+ value: string;
247
+ mimeType?: string | undefined;
248
+ };
249
+ metadata?: unknown;
250
+ } | {
251
+ type: "video";
252
+ source: {
253
+ type: "data";
254
+ value: string;
255
+ mimeType: string;
256
+ } | {
257
+ type: "url";
258
+ value: string;
259
+ mimeType?: string | undefined;
260
+ };
261
+ metadata?: unknown;
262
+ } | {
263
+ type: "document";
264
+ source: {
265
+ type: "data";
266
+ value: string;
267
+ mimeType: string;
268
+ } | {
269
+ type: "url";
270
+ value: string;
271
+ mimeType?: string | undefined;
272
+ };
273
+ metadata?: unknown;
178
274
  } | {
179
275
  type: "binary";
180
276
  mimeType: string;
181
277
  id?: string | undefined;
182
- url?: string | undefined;
183
278
  data?: string | undefined;
279
+ url?: string | undefined;
184
280
  filename?: string | undefined;
185
281
  })[];
186
282
  id: string;
@@ -257,12 +353,60 @@ export declare class CopilotChatView implements OnInit, OnChanges, AfterViewInit
257
353
  content: string | ({
258
354
  type: "text";
259
355
  text: string;
356
+ } | {
357
+ type: "image";
358
+ source: {
359
+ type: "data";
360
+ value: string;
361
+ mimeType: string;
362
+ } | {
363
+ type: "url";
364
+ value: string;
365
+ mimeType?: string | undefined;
366
+ };
367
+ metadata?: unknown;
368
+ } | {
369
+ type: "audio";
370
+ source: {
371
+ type: "data";
372
+ value: string;
373
+ mimeType: string;
374
+ } | {
375
+ type: "url";
376
+ value: string;
377
+ mimeType?: string | undefined;
378
+ };
379
+ metadata?: unknown;
380
+ } | {
381
+ type: "video";
382
+ source: {
383
+ type: "data";
384
+ value: string;
385
+ mimeType: string;
386
+ } | {
387
+ type: "url";
388
+ value: string;
389
+ mimeType?: string | undefined;
390
+ };
391
+ metadata?: unknown;
392
+ } | {
393
+ type: "document";
394
+ source: {
395
+ type: "data";
396
+ value: string;
397
+ mimeType: string;
398
+ } | {
399
+ type: "url";
400
+ value: string;
401
+ mimeType?: string | undefined;
402
+ };
403
+ metadata?: unknown;
260
404
  } | {
261
405
  type: "binary";
262
406
  mimeType: string;
263
407
  id?: string | undefined;
264
- url?: string | undefined;
265
408
  data?: string | undefined;
409
+ url?: string | undefined;
266
410
  filename?: string | undefined;
267
411
  })[];
268
412
  id: string;
@@ -52,12 +52,60 @@ export declare class CopilotChat implements ChatState {
52
52
  content: string | ({
53
53
  type: "text";
54
54
  text: string;
55
+ } | {
56
+ type: "image";
57
+ source: {
58
+ type: "data";
59
+ value: string;
60
+ mimeType: string;
61
+ } | {
62
+ type: "url";
63
+ value: string;
64
+ mimeType?: string | undefined;
65
+ };
66
+ metadata?: unknown;
67
+ } | {
68
+ type: "audio";
69
+ source: {
70
+ type: "data";
71
+ value: string;
72
+ mimeType: string;
73
+ } | {
74
+ type: "url";
75
+ value: string;
76
+ mimeType?: string | undefined;
77
+ };
78
+ metadata?: unknown;
79
+ } | {
80
+ type: "video";
81
+ source: {
82
+ type: "data";
83
+ value: string;
84
+ mimeType: string;
85
+ } | {
86
+ type: "url";
87
+ value: string;
88
+ mimeType?: string | undefined;
89
+ };
90
+ metadata?: unknown;
91
+ } | {
92
+ type: "document";
93
+ source: {
94
+ type: "data";
95
+ value: string;
96
+ mimeType: string;
97
+ } | {
98
+ type: "url";
99
+ value: string;
100
+ mimeType?: string | undefined;
101
+ };
102
+ metadata?: unknown;
55
103
  } | {
56
104
  type: "binary";
57
105
  mimeType: string;
58
106
  id?: string | undefined;
59
- url?: string | undefined;
60
107
  data?: string | undefined;
108
+ url?: string | undefined;
61
109
  filename?: string | undefined;
62
110
  })[];
63
111
  id: string;
@@ -64,12 +64,60 @@ export declare class RenderToolCalls {
64
64
  content: string | ({
65
65
  type: "text";
66
66
  text: string;
67
+ } | {
68
+ type: "image";
69
+ source: {
70
+ type: "data";
71
+ value: string;
72
+ mimeType: string;
73
+ } | {
74
+ type: "url";
75
+ value: string;
76
+ mimeType?: string | undefined;
77
+ };
78
+ metadata?: unknown;
79
+ } | {
80
+ type: "audio";
81
+ source: {
82
+ type: "data";
83
+ value: string;
84
+ mimeType: string;
85
+ } | {
86
+ type: "url";
87
+ value: string;
88
+ mimeType?: string | undefined;
89
+ };
90
+ metadata?: unknown;
91
+ } | {
92
+ type: "video";
93
+ source: {
94
+ type: "data";
95
+ value: string;
96
+ mimeType: string;
97
+ } | {
98
+ type: "url";
99
+ value: string;
100
+ mimeType?: string | undefined;
101
+ };
102
+ metadata?: unknown;
103
+ } | {
104
+ type: "document";
105
+ source: {
106
+ type: "data";
107
+ value: string;
108
+ mimeType: string;
109
+ } | {
110
+ type: "url";
111
+ value: string;
112
+ mimeType?: string | undefined;
113
+ };
114
+ metadata?: unknown;
67
115
  } | {
68
116
  type: "binary";
69
117
  mimeType: string;
70
118
  id?: string | undefined;
71
- url?: string | undefined;
72
119
  data?: string | undefined;
120
+ url?: string | undefined;
73
121
  filename?: string | undefined;
74
122
  })[];
75
123
  id: string;
package/package.json CHANGED
@@ -1,20 +1,29 @@
1
1
  {
2
2
  "name": "@copilotkitnext/angular",
3
- "version": "1.54.1-next.9",
3
+ "version": "1.54.2-next.0",
4
4
  "description": "Angular library for CopilotKit",
5
+ "license": "Commercial",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/CopilotKit/CopilotKit.git",
9
+ "directory": "packages/angular"
10
+ },
11
+ "type": "module",
5
12
  "main": "dist/fesm2022/copilotkitnext-angular.mjs",
6
13
  "module": "dist/fesm2022/copilotkitnext-angular.mjs",
7
14
  "types": "dist/index.d.ts",
8
- "type": "module",
9
15
  "exports": {
10
16
  ".": {
11
17
  "import": "./dist/fesm2022/copilotkitnext-angular.mjs"
12
18
  },
13
19
  "./styles.css": "./dist/styles.css"
14
20
  },
21
+ "publishConfig": {
22
+ "access": "public"
23
+ },
15
24
  "dependencies": {
16
- "@ag-ui/client": "0.0.48",
17
- "@ag-ui/core": "0.0.48",
25
+ "@ag-ui/client": "0.0.52",
26
+ "@ag-ui/core": "0.0.52",
18
27
  "clsx": "^2.1.1",
19
28
  "highlight.js": "^11.11.1",
20
29
  "katex": "^0.16.22",
@@ -23,14 +32,8 @@
23
32
  "rxjs": "^7.8.1",
24
33
  "tailwind-merge": "^2.6.0",
25
34
  "tslib": "^2.6.0",
26
- "@copilotkit/core": "1.55.0-next.9",
27
- "@copilotkit/shared": "1.55.0-next.9"
28
- },
29
- "peerDependencies": {
30
- "@angular/cdk": "^19.0.0",
31
- "@angular/common": "^19.0.0",
32
- "@angular/core": "^19.0.0",
33
- "rxjs": "^7.8.0"
35
+ "@copilotkit/core": "1.55.1-next.0",
36
+ "@copilotkit/shared": "1.55.1-next.0"
34
37
  },
35
38
  "devDependencies": {
36
39
  "@analogjs/vite-plugin-angular": "^1.20.2",
@@ -42,8 +45,6 @@
42
45
  "@angular/core": "^19.0.0",
43
46
  "@angular/platform-browser": "^19.0.0",
44
47
  "@angular/platform-browser-dynamic": "^19.0.0",
45
- "eslint": "^9.17.0",
46
- "@eslint/js": "^9.30.0",
47
48
  "@lucide/build-icons": "^1.1.0",
48
49
  "@tailwindcss/cli": "^4.1.11",
49
50
  "@tailwindcss/postcss": "^4.1.11",
@@ -63,29 +64,23 @@
63
64
  "tslib": "^2.8.1",
64
65
  "tw-animate-css": "^1.3.5",
65
66
  "typescript": "5.8.2",
66
- "typescript-eslint": "^8.35.0",
67
67
  "vite": "^7.1.4",
68
68
  "vitest": "^3.2.4",
69
69
  "zod": "^3.22.4",
70
70
  "zone.js": "^0.14.0",
71
- "@copilotkit/eslint-config": "1.55.0-next.9",
72
- "@copilotkit/typescript-config": "1.55.0-next.9"
73
- },
74
- "publishConfig": {
75
- "access": "public"
71
+ "@copilotkit/typescript-config": "1.55.0-next.8"
76
72
  },
77
- "repository": {
78
- "type": "git",
79
- "url": "https://github.com/CopilotKit/CopilotKit.git",
80
- "directory": "packages/angular"
73
+ "peerDependencies": {
74
+ "@angular/cdk": "^19.0.0",
75
+ "@angular/common": "^19.0.0",
76
+ "@angular/core": "^19.0.0",
77
+ "rxjs": "^7.8.0"
81
78
  },
82
- "license": "Commercial",
83
79
  "scripts": {
84
80
  "build": "ng-packagr -p ng-package.json && npm run build:css",
85
81
  "build:css": "tailwindcss -i ./src/styles/globals.css -o ./dist/styles.css && node scripts/scope-preflight.mjs ./dist/styles.css",
86
82
  "dev": "concurrently \"ng-packagr -p ng-package.json --watch\" \"npm run dev:css\"",
87
83
  "dev:css": "tailwindcss -i ./src/styles/globals.css -o ./dist/styles.css --watch",
88
- "lint": "eslint .",
89
84
  "check-types": "tsc --noEmit",
90
85
  "test": "vitest run",
91
86
  "test:watch": "vitest --watch",
@@ -19,8 +19,7 @@ if (!file) {
19
19
  /** Selectors that are already scoped and should be left alone. */
20
20
  function isAlreadyScoped(selector) {
21
21
  return (
22
- selector.includes("[data-copilot") ||
23
- selector.includes("[data-sidebar")
22
+ selector.includes("[data-copilot") || selector.includes("[data-sidebar")
24
23
  );
25
24
  }
26
25
 
package/vitest.config.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  /// <reference types="vitest" />
2
- import { defineConfig } from 'vite';
3
- import angular from '@analogjs/vite-plugin-angular';
4
- import { fileURLToPath } from 'node:url';
5
- import { dirname, resolve } from 'node:path';
2
+ import { defineConfig } from "vite";
3
+ import angular from "@analogjs/vite-plugin-angular";
4
+ import { fileURLToPath } from "node:url";
5
+ import { dirname, resolve } from "node:path";
6
6
 
7
7
  const __dirname = dirname(fileURLToPath(import.meta.url));
8
8
  const r = (...p: string[]) => resolve(__dirname, ...p);
@@ -11,37 +11,37 @@ export default defineConfig(({ mode }) => ({
11
11
  plugins: [angular()],
12
12
  resolve: {
13
13
  dedupe: [
14
- '@angular/core',
15
- '@angular/common',
16
- '@angular/platform-browser',
17
- '@angular/platform-browser-dynamic',
18
- '@angular/compiler',
19
- '@angular/core/testing',
14
+ "@angular/core",
15
+ "@angular/common",
16
+ "@angular/platform-browser",
17
+ "@angular/platform-browser-dynamic",
18
+ "@angular/compiler",
19
+ "@angular/core/testing",
20
20
  ],
21
21
  },
22
22
  test: {
23
23
  globals: true,
24
- environment: 'jsdom',
25
- setupFiles: [r('src/test-setup.ts')], // Use absolute path
26
- include: ['src/**/*.{spec,test}.{ts,tsx}'],
27
- pool: 'threads',
24
+ environment: "jsdom",
25
+ setupFiles: [r("src/test-setup.ts")], // Use absolute path
26
+ include: ["src/**/*.{spec,test}.{ts,tsx}"],
27
+ pool: "threads",
28
28
  poolOptions: { threads: { singleThread: true } },
29
- reporters: [['default', { summary: false }]],
29
+ reporters: [["default", { summary: false }]],
30
30
  silent: true,
31
31
  coverage: {
32
- provider: 'v8',
33
- reporter: ['text', 'json', 'html'],
32
+ provider: "v8",
33
+ reporter: ["text", "json", "html"],
34
34
  exclude: [
35
- 'node_modules/',
36
- 'dist/',
37
- '*.config.*',
38
- 'src/test-setup.ts',
39
- 'src/index.ts',
40
- 'src/public-api.ts',
35
+ "node_modules/",
36
+ "dist/",
37
+ "*.config.*",
38
+ "src/test-setup.ts",
39
+ "src/index.ts",
40
+ "src/public-api.ts",
41
41
  ],
42
42
  },
43
43
  },
44
44
  define: {
45
- 'import.meta.vitest': mode !== 'production',
45
+ "import.meta.vitest": mode !== "production",
46
46
  },
47
- }));
47
+ }));