copilotkit 0.0.1
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 +3 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +34 -0
- package/dist/index.mjs +7 -0
- package/package.json +98 -0
- package/react/dist/index.d.ts +11 -0
- package/react/dist/index.js +37 -0
- package/react/dist/index.mjs +11 -0
- package/svelte/dist/index.d.ts +11 -0
- package/svelte/dist/index.js +34 -0
- package/svelte/dist/index.mjs +7 -0
- package/vue/dist/index.d.ts +11 -0
- package/vue/dist/index.js +34 -0
- package/vue/dist/index.mjs +7 -0
package/README.md
ADDED
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// things/index.ts
|
|
21
|
+
var things_exports = {};
|
|
22
|
+
__export(things_exports, {
|
|
23
|
+
Thing: () => Thing
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(things_exports);
|
|
26
|
+
|
|
27
|
+
// things/ai-thing.ts
|
|
28
|
+
function Thing() {
|
|
29
|
+
return "hi";
|
|
30
|
+
}
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
Thing
|
|
34
|
+
});
|
package/dist/index.mjs
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "copilotkit",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.mjs",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist/**/*",
|
|
11
|
+
"react/dist/**/*",
|
|
12
|
+
"svelte/dist/**/*",
|
|
13
|
+
"vue/dist/**/*"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsup",
|
|
17
|
+
"clean": "rm -rf dist && rm -rf react/dist && rm -rf svelte/dist && rm -rf vue/dist",
|
|
18
|
+
"dev": "tsup --watch",
|
|
19
|
+
"lint": "eslint \"./**/*.ts*\"",
|
|
20
|
+
"type-check": "tsc --noEmit",
|
|
21
|
+
"prettier-check": "prettier --check \"./**/*.ts*\"",
|
|
22
|
+
"test": "jest --forceExit --env @edge-runtime/jest-environment .test.ts && jest --forceExit --env node .test.ts"
|
|
23
|
+
},
|
|
24
|
+
"exports": {
|
|
25
|
+
"./package.json": "./package.json",
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"import": "./dist/index.mjs",
|
|
29
|
+
"module": "./dist/index.mjs",
|
|
30
|
+
"require": "./dist/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./react": {
|
|
33
|
+
"types": "./react/dist/index.d.ts",
|
|
34
|
+
"import": "./react/dist/index.mjs",
|
|
35
|
+
"module": "./react/dist/index.mjs",
|
|
36
|
+
"require": "./react/dist/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./svelte": {
|
|
39
|
+
"types": "./svelte/dist/index.d.ts",
|
|
40
|
+
"import": "./svelte/dist/index.mjs",
|
|
41
|
+
"module": "./svelte/dist/index.mjs",
|
|
42
|
+
"require": "./svelte/dist/index.js"
|
|
43
|
+
},
|
|
44
|
+
"./vue": {
|
|
45
|
+
"types": "./vue/dist/index.d.ts",
|
|
46
|
+
"import": "./vue/dist/index.mjs",
|
|
47
|
+
"module": "./vue/dist/index.mjs",
|
|
48
|
+
"require": "./vue/dist/index.js"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"jest": {
|
|
52
|
+
"preset": "ts-jest",
|
|
53
|
+
"testEnvironment": "node"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"eventsource-parser": "1.0.0",
|
|
57
|
+
"nanoid": "^3.3.6",
|
|
58
|
+
"sswr": "^1.10.0",
|
|
59
|
+
"swr": "2.1.5",
|
|
60
|
+
"swrv": "1.0.3"
|
|
61
|
+
},
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"@edge-runtime/jest-environment": "1.1.0-beta.31",
|
|
64
|
+
"@types/jest": "29.2.0",
|
|
65
|
+
"@types/node": "^17.0.12",
|
|
66
|
+
"@types/react": "^18.2.0",
|
|
67
|
+
"@types/react-dom": "^18.2.0",
|
|
68
|
+
"@recursivelyai/copilotkit-tsconfig": "workspace:*",
|
|
69
|
+
"eslint": "^7.32.0",
|
|
70
|
+
"eslint-config-recursivelyai-copilotkit": "workspace:*",
|
|
71
|
+
"jest": "29.2.1",
|
|
72
|
+
"ts-jest": "29.0.3",
|
|
73
|
+
"tsup": "^6.7.0",
|
|
74
|
+
"typescript": "^4.5.3"
|
|
75
|
+
},
|
|
76
|
+
"peerDependencies": {
|
|
77
|
+
"react": "^18.0.0",
|
|
78
|
+
"svelte": "^3.29.0",
|
|
79
|
+
"vue": "^3.3.4"
|
|
80
|
+
},
|
|
81
|
+
"peerDependenciesMeta": {
|
|
82
|
+
"react": {
|
|
83
|
+
"optional": true
|
|
84
|
+
},
|
|
85
|
+
"svelte": {
|
|
86
|
+
"optional": true
|
|
87
|
+
},
|
|
88
|
+
"vue": {
|
|
89
|
+
"optional": true
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"engines": {
|
|
93
|
+
"node": ">=14.6"
|
|
94
|
+
},
|
|
95
|
+
"publishConfig": {
|
|
96
|
+
"access": "public"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared types between the API and UI packages.
|
|
3
|
+
*/
|
|
4
|
+
type CopilotEntrypointOptions = {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
type UseCopilotEntrypointHelpers = {};
|
|
9
|
+
declare function useCopilotEntrypoint({}?: CopilotEntrypointOptions): UseCopilotEntrypointHelpers;
|
|
10
|
+
|
|
11
|
+
export { CopilotEntrypointOptions, UseCopilotEntrypointHelpers, useCopilotEntrypoint };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
"use strict";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// react/index.ts
|
|
22
|
+
var react_exports = {};
|
|
23
|
+
__export(react_exports, {
|
|
24
|
+
useCopilotEntrypoint: () => useCopilotEntrypoint
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(react_exports);
|
|
27
|
+
|
|
28
|
+
// react/use-copilot-entrypoint.ts
|
|
29
|
+
var import_react = require("react");
|
|
30
|
+
function useCopilotEntrypoint({} = {}) {
|
|
31
|
+
const hookId = (0, import_react.useId)();
|
|
32
|
+
return {};
|
|
33
|
+
}
|
|
34
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
35
|
+
0 && (module.exports = {
|
|
36
|
+
useCopilotEntrypoint
|
|
37
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared types between the API and UI packages.
|
|
3
|
+
*/
|
|
4
|
+
type CopilotEntrypointOptions = {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
type UseCopilotEntrypointHelpers = {};
|
|
9
|
+
declare function useCopilotEntrypoint({}?: CopilotEntrypointOptions): UseCopilotEntrypointHelpers;
|
|
10
|
+
|
|
11
|
+
export { CopilotEntrypointOptions, UseCopilotEntrypointHelpers, useCopilotEntrypoint };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// svelte/index.ts
|
|
21
|
+
var svelte_exports = {};
|
|
22
|
+
__export(svelte_exports, {
|
|
23
|
+
useCopilotEntrypoint: () => useCopilotEntrypoint
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(svelte_exports);
|
|
26
|
+
|
|
27
|
+
// svelte/use-copilot-entrypoint.ts
|
|
28
|
+
function useCopilotEntrypoint({} = {}) {
|
|
29
|
+
return {};
|
|
30
|
+
}
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
useCopilotEntrypoint
|
|
34
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared types between the API and UI packages.
|
|
3
|
+
*/
|
|
4
|
+
type CopilotEntrypointOptions = {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
type UseCopilotEntrypointHelpers = {};
|
|
9
|
+
declare function useCopilotEntrypoint({}?: CopilotEntrypointOptions): UseCopilotEntrypointHelpers;
|
|
10
|
+
|
|
11
|
+
export { CopilotEntrypointOptions, UseCopilotEntrypointHelpers, useCopilotEntrypoint };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// vue/index.ts
|
|
21
|
+
var vue_exports = {};
|
|
22
|
+
__export(vue_exports, {
|
|
23
|
+
useCopilotEntrypoint: () => useCopilotEntrypoint
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(vue_exports);
|
|
26
|
+
|
|
27
|
+
// vue/use-copilot-entrypoint.ts
|
|
28
|
+
function useCopilotEntrypoint({} = {}) {
|
|
29
|
+
return {};
|
|
30
|
+
}
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
useCopilotEntrypoint
|
|
34
|
+
});
|