@copilotkit/core 1.55.0-next.7
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 +21 -0
- package/dist/index.cjs +3360 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1374 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +1374 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +3321 -0
- package/dist/index.mjs.map +1 -0
- package/dist/index.umd.js +3535 -0
- package/dist/index.umd.js.map +1 -0
- package/eslint.config.mjs +3 -0
- package/package.json +56 -0
- package/tsdown.config.ts +45 -0
- package/vitest.config.mjs +17 -0
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@copilotkit/core",
|
|
3
|
+
"version": "1.55.0-next.7",
|
|
4
|
+
"description": "Core web utilities for CopilotKit2",
|
|
5
|
+
"main": "./dist/index.cjs",
|
|
6
|
+
"types": "./dist/index.d.cts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.cjs"
|
|
12
|
+
},
|
|
13
|
+
"./package.json": "./package.json"
|
|
14
|
+
},
|
|
15
|
+
"unpkg": "./dist/index.umd.js",
|
|
16
|
+
"jsdelivr": "./dist/index.umd.js",
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@types/node": "^22.15.3",
|
|
22
|
+
"@valibot/to-json-schema": "^1.5.0",
|
|
23
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
24
|
+
"arktype": "^2.1.29",
|
|
25
|
+
"eslint": "^9.30.0",
|
|
26
|
+
"tsdown": "^0.20.3",
|
|
27
|
+
"typescript": "5.8.2",
|
|
28
|
+
"valibot": "^1.2.0",
|
|
29
|
+
"vitest": "^3.2.4",
|
|
30
|
+
"zod": "^3.25.75",
|
|
31
|
+
"@copilotkit/eslint-config": "1.55.0-next.7",
|
|
32
|
+
"@copilotkit/typescript-config": "1.55.0-next.7"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@ag-ui/client": "0.0.48",
|
|
36
|
+
"phoenix": "^1.8.4",
|
|
37
|
+
"rxjs": "7.8.1",
|
|
38
|
+
"zod-to-json-schema": "^3.24.6",
|
|
39
|
+
"@copilotkit/shared": "1.55.0-next.7"
|
|
40
|
+
},
|
|
41
|
+
"engines": {
|
|
42
|
+
"node": ">=18"
|
|
43
|
+
},
|
|
44
|
+
"module": "./dist/index.mjs",
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "tsdown",
|
|
47
|
+
"dev": "tsdown --watch",
|
|
48
|
+
"lint": "eslint .",
|
|
49
|
+
"check-types": "tsc --noEmit",
|
|
50
|
+
"test": "vitest run",
|
|
51
|
+
"test:watch": "vitest",
|
|
52
|
+
"test:coverage": "vitest run --coverage",
|
|
53
|
+
"publint": "publint .",
|
|
54
|
+
"attw": "attw --pack . --profile node16"
|
|
55
|
+
}
|
|
56
|
+
}
|
package/tsdown.config.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineConfig } from "tsdown";
|
|
2
|
+
|
|
3
|
+
export default defineConfig([
|
|
4
|
+
{
|
|
5
|
+
entry: ["src/index.ts"],
|
|
6
|
+
format: ["esm", "cjs"],
|
|
7
|
+
dts: true,
|
|
8
|
+
sourcemap: true,
|
|
9
|
+
target: "es2022",
|
|
10
|
+
outDir: "dist",
|
|
11
|
+
external: ["rxjs"],
|
|
12
|
+
checks: { pluginTimings: false },
|
|
13
|
+
exports: true,
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
entry: ["src/index.ts"],
|
|
17
|
+
format: ["umd"],
|
|
18
|
+
globalName: "CopilotKitCore",
|
|
19
|
+
sourcemap: true,
|
|
20
|
+
target: "es2018",
|
|
21
|
+
outDir: "dist",
|
|
22
|
+
external: [
|
|
23
|
+
"@copilotkit/shared",
|
|
24
|
+
"@ag-ui/client",
|
|
25
|
+
"@ag-ui/core",
|
|
26
|
+
"rxjs",
|
|
27
|
+
"zod",
|
|
28
|
+
],
|
|
29
|
+
codeSplitting: false,
|
|
30
|
+
checks: { pluginTimings: false },
|
|
31
|
+
outputOptions(options) {
|
|
32
|
+
options.entryFileNames = "[name].umd.js";
|
|
33
|
+
options.globals = {
|
|
34
|
+
"@copilotkit/shared": "CopilotKitShared",
|
|
35
|
+
"@ag-ui/client": "AgUIClient",
|
|
36
|
+
"@ag-ui/core": "AgUICore",
|
|
37
|
+
rxjs: "rxjs",
|
|
38
|
+
"rxjs/operators": "rxjs.operators",
|
|
39
|
+
"zod-to-json-schema": "zodToJsonSchema",
|
|
40
|
+
zod: "Zod",
|
|
41
|
+
};
|
|
42
|
+
return options;
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
]);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { defineConfig } from "vitest/config";
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
test: {
|
|
5
|
+
environment: "node",
|
|
6
|
+
globals: true,
|
|
7
|
+
include: ["src/**/__tests__/**/*.{test,spec}.ts"],
|
|
8
|
+
reporters: [["default", { summary: false }]],
|
|
9
|
+
silent: true,
|
|
10
|
+
coverage: {
|
|
11
|
+
reporter: ["text", "lcov", "html"],
|
|
12
|
+
include: ["src/**/*.ts"],
|
|
13
|
+
exclude: ["src/**/*.d.ts", "src/**/index.ts", "src/**/__tests__/**"],
|
|
14
|
+
},
|
|
15
|
+
setupFiles: [],
|
|
16
|
+
},
|
|
17
|
+
});
|