@copilotkitnext/angular 0.0.0-0.0.0-max-changeset-10101010101010-20260109191632
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/LICENSE +10 -0
- package/README.md +530 -0
- package/dist/LICENSE +10 -0
- package/dist/README.md +530 -0
- package/dist/esm2022/copilotkitnext-angular.mjs +5 -0
- package/dist/esm2022/index.mjs +2 -0
- package/dist/esm2022/lib/agent-context.mjs +25 -0
- package/dist/esm2022/lib/agent.mjs +73 -0
- package/dist/esm2022/lib/chat-config.mjs +35 -0
- package/dist/esm2022/lib/chat-state.mjs +18 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-assistant-message-buttons.mjs +344 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-assistant-message-renderer.mjs +260 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-assistant-message-toolbar.mjs +22 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-assistant-message.mjs +415 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-assistant-message.types.mjs +2 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-audio-recorder.mjs +196 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-buttons.mjs +299 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-input-defaults.mjs +39 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-input.mjs +634 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-input.types.mjs +10 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-message-view-cursor.mjs +27 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-message-view.mjs +268 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-message-view.types.mjs +2 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-textarea.mjs +139 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-tool-calls-view.mjs +36 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-toolbar.mjs +20 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-tools-menu.mjs +203 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-user-message-branch-navigation.mjs +98 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-user-message-buttons.mjs +182 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-user-message-renderer.mjs +28 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-user-message-toolbar.mjs +25 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-user-message.mjs +308 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-user-message.types.mjs +2 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-view-disclaimer.mjs +48 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-view-feather.mjs +41 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-view-handlers.mjs +19 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-view-input-container.mjs +96 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-view-scroll-to-bottom-button.mjs +89 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-view-scroll-view.mjs +456 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-view.mjs +404 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-view.types.mjs +2 -0
- package/dist/esm2022/lib/components/chat/copilot-chat.mjs +167 -0
- package/dist/esm2022/lib/config.mjs +9 -0
- package/dist/esm2022/lib/copilotkit.mjs +115 -0
- package/dist/esm2022/lib/directives/copilotkit-agent-context.mjs +130 -0
- package/dist/esm2022/lib/directives/stick-to-bottom.mjs +170 -0
- package/dist/esm2022/lib/directives/tooltip.mjs +217 -0
- package/dist/esm2022/lib/human-in-the-loop.mjs +19 -0
- package/dist/esm2022/lib/render-tool-calls.mjs +138 -0
- package/dist/esm2022/lib/resize-observer.mjs +152 -0
- package/dist/esm2022/lib/scroll-position.mjs +124 -0
- package/dist/esm2022/lib/slots/copilot-slot.mjs +156 -0
- package/dist/esm2022/lib/slots/index.mjs +4 -0
- package/dist/esm2022/lib/slots/slot.types.mjs +6 -0
- package/dist/esm2022/lib/slots/slot.utils.mjs +235 -0
- package/dist/esm2022/lib/tools.mjs +31 -0
- package/dist/esm2022/lib/utils.mjs +10 -0
- package/dist/esm2022/public-api.mjs +48 -0
- package/dist/fesm2022/copilotkitnext-angular.mjs +6310 -0
- package/dist/fesm2022/copilotkitnext-angular.mjs.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/lib/agent-context.d.ts +12 -0
- package/dist/lib/agent.d.ts +68 -0
- package/dist/lib/chat-config.d.ts +23 -0
- package/dist/lib/chat-state.d.ts +10 -0
- package/dist/lib/components/chat/copilot-chat-assistant-message-buttons.d.ts +68 -0
- package/dist/lib/components/chat/copilot-chat-assistant-message-renderer.d.ts +26 -0
- package/dist/lib/components/chat/copilot-chat-assistant-message-toolbar.d.ts +7 -0
- package/dist/lib/components/chat/copilot-chat-assistant-message.d.ts +208 -0
- package/dist/lib/components/chat/copilot-chat-assistant-message.types.d.ts +31 -0
- package/dist/lib/components/chat/copilot-chat-audio-recorder.d.ts +40 -0
- package/dist/lib/components/chat/copilot-chat-buttons.d.ts +65 -0
- package/dist/lib/components/chat/copilot-chat-input-defaults.d.ts +38 -0
- package/dist/lib/components/chat/copilot-chat-input.d.ts +133 -0
- package/dist/lib/components/chat/copilot-chat-input.types.d.ts +129 -0
- package/dist/lib/components/chat/copilot-chat-message-view-cursor.d.ts +11 -0
- package/dist/lib/components/chat/copilot-chat-message-view.d.ts +430 -0
- package/dist/lib/components/chat/copilot-chat-message-view.types.d.ts +24 -0
- package/dist/lib/components/chat/copilot-chat-textarea.d.ts +41 -0
- package/dist/lib/components/chat/copilot-chat-tool-calls-view.d.ts +70 -0
- package/dist/lib/components/chat/copilot-chat-toolbar.d.ts +7 -0
- package/dist/lib/components/chat/copilot-chat-tools-menu.d.ts +20 -0
- package/dist/lib/components/chat/copilot-chat-user-message-branch-navigation.d.ts +35 -0
- package/dist/lib/components/chat/copilot-chat-user-message-buttons.d.ts +35 -0
- package/dist/lib/components/chat/copilot-chat-user-message-renderer.d.ts +8 -0
- package/dist/lib/components/chat/copilot-chat-user-message-toolbar.d.ts +7 -0
- package/dist/lib/components/chat/copilot-chat-user-message.d.ts +71 -0
- package/dist/lib/components/chat/copilot-chat-user-message.types.d.ts +27 -0
- package/dist/lib/components/chat/copilot-chat-view-disclaimer.d.ts +15 -0
- package/dist/lib/components/chat/copilot-chat-view-feather.d.ts +15 -0
- package/dist/lib/components/chat/copilot-chat-view-handlers.d.ts +11 -0
- package/dist/lib/components/chat/copilot-chat-view-input-container.d.ts +23 -0
- package/dist/lib/components/chat/copilot-chat-view-scroll-to-bottom-button.d.ts +16 -0
- package/dist/lib/components/chat/copilot-chat-view-scroll-view.d.ts +129 -0
- package/dist/lib/components/chat/copilot-chat-view.d.ts +284 -0
- package/dist/lib/components/chat/copilot-chat-view.types.d.ts +42 -0
- package/dist/lib/components/chat/copilot-chat.d.ts +82 -0
- package/dist/lib/config.d.ts +16 -0
- package/dist/lib/copilotkit.d.ts +29 -0
- package/dist/lib/directives/copilotkit-agent-context.d.ts +68 -0
- package/dist/lib/directives/stick-to-bottom.d.ts +62 -0
- package/dist/lib/directives/tooltip.d.ts +33 -0
- package/dist/lib/human-in-the-loop.d.ts +13 -0
- package/dist/lib/render-tool-calls.d.ts +90 -0
- package/dist/lib/resize-observer.d.ts +44 -0
- package/dist/lib/scroll-position.d.ts +50 -0
- package/dist/lib/slots/copilot-slot.d.ts +34 -0
- package/dist/lib/slots/index.d.ts +3 -0
- package/dist/lib/slots/slot.types.d.ts +55 -0
- package/dist/lib/slots/slot.utils.d.ts +110 -0
- package/dist/lib/tools.d.ts +65 -0
- package/dist/lib/utils.d.ts +6 -0
- package/dist/public-api.d.ts +47 -0
- package/dist/styles.css +1882 -0
- package/eslint.config.mjs +20 -0
- package/package.json +101 -0
- package/tsconfig.json +33 -0
- package/vitest.config.mts +45 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import js from '@eslint/js';
|
|
2
|
+
import tseslint from 'typescript-eslint';
|
|
3
|
+
|
|
4
|
+
export default tseslint.config(
|
|
5
|
+
js.configs.recommended,
|
|
6
|
+
...tseslint.configs.recommended,
|
|
7
|
+
{
|
|
8
|
+
files: ['src/**/*.ts'],
|
|
9
|
+
rules: {
|
|
10
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
11
|
+
'@typescript-eslint/no-unused-vars': ['error', {
|
|
12
|
+
argsIgnorePattern: '^_',
|
|
13
|
+
varsIgnorePattern: '^_'
|
|
14
|
+
}]
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
ignores: ['dist/**', 'node_modules/**', '**/*.spec.ts', '**/*.test.ts']
|
|
19
|
+
}
|
|
20
|
+
);
|
package/package.json
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@copilotkitnext/angular",
|
|
3
|
+
"version": "0.0.0-0.0.0-max-changeset-10101010101010-20260109191632",
|
|
4
|
+
"description": "Angular library for CopilotKit",
|
|
5
|
+
"main": "dist/fesm2022/copilotkitnext-angular.mjs",
|
|
6
|
+
"module": "dist/fesm2022/copilotkitnext-angular.mjs",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/fesm2022/copilotkitnext-angular.mjs",
|
|
12
|
+
"default": "./dist/fesm2022/copilotkitnext-angular.mjs"
|
|
13
|
+
},
|
|
14
|
+
"./testing": {
|
|
15
|
+
"types": "./dist/testing/index.d.ts",
|
|
16
|
+
"import": "./dist/testing/index.mjs",
|
|
17
|
+
"default": "./dist/testing/index.mjs"
|
|
18
|
+
},
|
|
19
|
+
"./styles.css": "./dist/styles.css"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"clsx": "^2.1.1",
|
|
23
|
+
"highlight.js": "^11.11.1",
|
|
24
|
+
"katex": "^0.16.22",
|
|
25
|
+
"lucide-angular": "^0.540.0",
|
|
26
|
+
"marked": "^16.2.0",
|
|
27
|
+
"rxjs": "^7.8.1",
|
|
28
|
+
"tailwind-merge": "^2.6.0",
|
|
29
|
+
"zod": "^3.22.4"
|
|
30
|
+
},
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"@ag-ui/client": "0.0.42",
|
|
33
|
+
"@ag-ui/core": "0.0.42",
|
|
34
|
+
"@angular/cdk": "^18.0.0 || ^19.0.0",
|
|
35
|
+
"@angular/common": "^18.0.0 || ^19.0.0",
|
|
36
|
+
"@angular/core": "^18.0.0 || ^19.0.0",
|
|
37
|
+
"rxjs": "^7.8.0",
|
|
38
|
+
"tslib": "^2.6.0",
|
|
39
|
+
"@copilotkitnext/core": "0.0.0-0.0.0-max-changeset-10101010101010-20260109191632",
|
|
40
|
+
"@copilotkitnext/shared": "0.0.0-0.0.0-max-changeset-10101010101010-20260109191632"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@analogjs/vite-plugin-angular": "^1.20.2",
|
|
44
|
+
"@analogjs/vitest-angular": "^1.20.2",
|
|
45
|
+
"@angular/cdk": "^18.0.0",
|
|
46
|
+
"@angular/common": "^18.0.0",
|
|
47
|
+
"@angular/compiler": "^18.0.0",
|
|
48
|
+
"@angular/compiler-cli": "^18.0.0",
|
|
49
|
+
"@angular/core": "^18.0.0",
|
|
50
|
+
"@angular/platform-browser": "^18.0.0",
|
|
51
|
+
"@angular/platform-browser-dynamic": "^18.0.0",
|
|
52
|
+
"@eslint/js": "^9.30.0",
|
|
53
|
+
"@lucide/build-icons": "^1.1.0",
|
|
54
|
+
"@tailwindcss/cli": "^4.1.11",
|
|
55
|
+
"@tailwindcss/postcss": "^4.1.11",
|
|
56
|
+
"@tailwindcss/typography": "^0.5.16",
|
|
57
|
+
"@types/katex": "^0.16.7",
|
|
58
|
+
"@types/node": "^22.5.1",
|
|
59
|
+
"@vitest/ui": "^2.0.5",
|
|
60
|
+
"autoprefixer": "^10.4.16",
|
|
61
|
+
"concurrently": "^9.1.0",
|
|
62
|
+
"jsdom": "^24.0.0",
|
|
63
|
+
"ng-packagr": "^18.0.0",
|
|
64
|
+
"postcss": "^8.4.31",
|
|
65
|
+
"reflect-metadata": "^0.2.2",
|
|
66
|
+
"rimraf": "^6.0.1",
|
|
67
|
+
"rxjs": "^7.8.1",
|
|
68
|
+
"tailwindcss": "^4.0.8",
|
|
69
|
+
"tslib": "^2.8.1",
|
|
70
|
+
"tw-animate-css": "^1.3.5",
|
|
71
|
+
"typescript": "~5.4.5",
|
|
72
|
+
"typescript-eslint": "^8.35.0",
|
|
73
|
+
"vite": "^7.1.4",
|
|
74
|
+
"vitest": "^2.0.5",
|
|
75
|
+
"zone.js": "^0.14.0",
|
|
76
|
+
"@copilotkitnext/core": "0.0.0-0.0.0-max-changeset-10101010101010-20260109191632",
|
|
77
|
+
"@copilotkitnext/eslint-config": "0.0.0-0.0.0-max-changeset-10101010101010-20260109191632",
|
|
78
|
+
"@copilotkitnext/shared": "0.0.0-0.0.0-max-changeset-10101010101010-20260109191632",
|
|
79
|
+
"@copilotkitnext/typescript-config": "0.0.0-0.0.0-max-changeset-10101010101010-20260109191632"
|
|
80
|
+
},
|
|
81
|
+
"publishConfig": {
|
|
82
|
+
"access": "public"
|
|
83
|
+
},
|
|
84
|
+
"repository": {
|
|
85
|
+
"type": "git",
|
|
86
|
+
"url": "https://github.com/CopilotKit/CopilotKit.git",
|
|
87
|
+
"directory": "packages/angular"
|
|
88
|
+
},
|
|
89
|
+
"license": "MIT",
|
|
90
|
+
"scripts": {
|
|
91
|
+
"build": "ng-packagr -p ng-package.json && npm run build:css",
|
|
92
|
+
"build:css": "npx @tailwindcss/cli -i ./src/styles/globals.css -o ./dist/styles.css",
|
|
93
|
+
"dev": "concurrently \"ng-packagr -p ng-package.json --watch\" \"npm run dev:css\"",
|
|
94
|
+
"dev:css": "npx @tailwindcss/cli -i ./src/styles/globals.css -o ./dist/styles.css --watch",
|
|
95
|
+
"clean": "rimraf dist",
|
|
96
|
+
"lint": "eslint src --ext .ts",
|
|
97
|
+
"check-types": "tsc --noEmit",
|
|
98
|
+
"test": "vitest run",
|
|
99
|
+
"test:watch": "vitest --watch"
|
|
100
|
+
}
|
|
101
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "@copilotkitnext/typescript-config/base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "./dist",
|
|
5
|
+
"declaration": true,
|
|
6
|
+
"declarationMap": true,
|
|
7
|
+
"sourceMap": true,
|
|
8
|
+
"lib": ["ES2022", "DOM"],
|
|
9
|
+
"target": "ES2022",
|
|
10
|
+
"module": "ES2022",
|
|
11
|
+
"moduleResolution": "node",
|
|
12
|
+
"experimentalDecorators": true,
|
|
13
|
+
"emitDecoratorMetadata": true,
|
|
14
|
+
"strict": true,
|
|
15
|
+
"esModuleInterop": true,
|
|
16
|
+
"skipLibCheck": true,
|
|
17
|
+
"forceConsistentCasingInFileNames": true,
|
|
18
|
+
"importHelpers": true,
|
|
19
|
+
"types": ["node"],
|
|
20
|
+
"paths": {
|
|
21
|
+
"@copilotkitnext/core": ["../core/src/index.ts"],
|
|
22
|
+
"@copilotkitnext/shared": ["../shared/src/index.ts"]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"include": ["src/**/*"],
|
|
26
|
+
"exclude": ["node_modules", "dist", "**/*.spec.ts", "**/*.test.ts"],
|
|
27
|
+
"angularCompilerOptions": {
|
|
28
|
+
"enableI18nLegacyMessageIdFormat": false,
|
|
29
|
+
"strictInjectionParameters": true,
|
|
30
|
+
"strictInputAccessModifiers": true,
|
|
31
|
+
"strictTemplates": true
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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';
|
|
6
|
+
|
|
7
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
8
|
+
const r = (...p: string[]) => resolve(__dirname, ...p);
|
|
9
|
+
|
|
10
|
+
export default defineConfig(({ mode }) => ({
|
|
11
|
+
plugins: [angular()],
|
|
12
|
+
resolve: {
|
|
13
|
+
dedupe: [
|
|
14
|
+
'@angular/core',
|
|
15
|
+
'@angular/common',
|
|
16
|
+
'@angular/platform-browser',
|
|
17
|
+
'@angular/platform-browser-dynamic',
|
|
18
|
+
'@angular/compiler',
|
|
19
|
+
'@angular/core/testing',
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
test: {
|
|
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',
|
|
28
|
+
poolOptions: { threads: { singleThread: true } },
|
|
29
|
+
coverage: {
|
|
30
|
+
provider: 'v8',
|
|
31
|
+
reporter: ['text', 'json', 'html'],
|
|
32
|
+
exclude: [
|
|
33
|
+
'node_modules/',
|
|
34
|
+
'dist/',
|
|
35
|
+
'*.config.*',
|
|
36
|
+
'src/test-setup.ts',
|
|
37
|
+
'src/index.ts',
|
|
38
|
+
'src/public-api.ts',
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
define: {
|
|
43
|
+
'import.meta.vitest': mode !== 'production',
|
|
44
|
+
},
|
|
45
|
+
}));
|