copilotkit 0.0.1 → 0.0.3
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 +13 -0
- package/package.json +14 -14
- package/dist/index.d.ts +0 -10
- package/dist/index.js +0 -34
- package/dist/index.mjs +0 -7
- package/react/dist/index.d.ts +0 -11
- package/react/dist/index.js +0 -37
- package/react/dist/index.mjs +0 -11
- package/svelte/dist/index.d.ts +0 -11
- package/svelte/dist/index.js +0 -34
- package/svelte/dist/index.mjs +0 -7
- package/vue/dist/index.d.ts +0 -11
- package/vue/dist/index.js +0 -34
- package/vue/dist/index.mjs +0 -7
package/LICENSE
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Copyright 2023 Recursively.ai
|
|
2
|
+
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "copilotkit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -12,15 +12,6 @@
|
|
|
12
12
|
"svelte/dist/**/*",
|
|
13
13
|
"vue/dist/**/*"
|
|
14
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
15
|
"exports": {
|
|
25
16
|
"./package.json": "./package.json",
|
|
26
17
|
".": {
|
|
@@ -65,13 +56,13 @@
|
|
|
65
56
|
"@types/node": "^17.0.12",
|
|
66
57
|
"@types/react": "^18.2.0",
|
|
67
58
|
"@types/react-dom": "^18.2.0",
|
|
68
|
-
"@recursivelyai/copilotkit-tsconfig": "workspace:*",
|
|
69
59
|
"eslint": "^7.32.0",
|
|
70
|
-
"eslint-config-recursivelyai-copilotkit": "workspace:*",
|
|
71
60
|
"jest": "29.2.1",
|
|
72
61
|
"ts-jest": "29.0.3",
|
|
73
62
|
"tsup": "^6.7.0",
|
|
74
|
-
"typescript": "^4.5.3"
|
|
63
|
+
"typescript": "^4.5.3",
|
|
64
|
+
"@recursivelyai/copilotkit-tsconfig": "0.0.0",
|
|
65
|
+
"eslint-config-recursivelyai-copilotkit": "0.0.0"
|
|
75
66
|
},
|
|
76
67
|
"peerDependencies": {
|
|
77
68
|
"react": "^18.0.0",
|
|
@@ -94,5 +85,14 @@
|
|
|
94
85
|
},
|
|
95
86
|
"publishConfig": {
|
|
96
87
|
"access": "public"
|
|
88
|
+
},
|
|
89
|
+
"scripts": {
|
|
90
|
+
"build": "tsup",
|
|
91
|
+
"clean": "rm -rf dist && rm -rf react/dist && rm -rf svelte/dist && rm -rf vue/dist",
|
|
92
|
+
"dev": "tsup --watch",
|
|
93
|
+
"lint": "eslint \"./**/*.ts*\"",
|
|
94
|
+
"type-check": "tsc --noEmit",
|
|
95
|
+
"prettier-check": "prettier --check \"./**/*.ts*\"",
|
|
96
|
+
"test": "jest --forceExit --env @edge-runtime/jest-environment .test.ts && jest --forceExit --env node .test.ts"
|
|
97
97
|
}
|
|
98
|
-
}
|
|
98
|
+
}
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
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
DELETED
package/react/dist/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
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 };
|
package/react/dist/index.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
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
|
-
});
|
package/react/dist/index.mjs
DELETED
package/svelte/dist/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
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 };
|
package/svelte/dist/index.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
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
|
-
});
|
package/svelte/dist/index.mjs
DELETED
package/vue/dist/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
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 };
|
package/vue/dist/index.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
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
|
-
});
|