@copilotkitnext/shared 0.0.3 → 0.0.4
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/package.json +1 -1
- package/.turbo/turbo-build.log +0 -23
- package/.turbo/turbo-check-types.log +0 -4
- package/.turbo/turbo-lint.log +0 -4
- package/src/constants.ts +0 -1
- package/src/index.ts +0 -11
- package/src/logger.ts +0 -1
- package/src/types.ts +0 -26
- package/src/utils.ts +0 -14
- package/tsconfig.json +0 -12
- package/tsup.config.ts +0 -11
package/package.json
CHANGED
package/.turbo/turbo-build.log
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
> @copilotkitnext/shared@0.0.3 build /Users/mme/Code/vnext_experimental/packages/shared
|
|
4
|
-
> tsup
|
|
5
|
-
|
|
6
|
-
[34mCLI[39m Building entry: src/index.ts
|
|
7
|
-
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
8
|
-
[34mCLI[39m tsup v8.5.0
|
|
9
|
-
[34mCLI[39m Using tsup config: /Users/mme/Code/vnext_experimental/packages/shared/tsup.config.ts
|
|
10
|
-
[34mCLI[39m Target: es2022
|
|
11
|
-
[34mCLI[39m Cleaning output folder
|
|
12
|
-
[34mCJS[39m Build start
|
|
13
|
-
[34mESM[39m Build start
|
|
14
|
-
[32mCJS[39m [1mdist/index.js [22m[32m2.17 KB[39m
|
|
15
|
-
[32mCJS[39m [1mdist/index.js.map [22m[32m1.04 KB[39m
|
|
16
|
-
[32mCJS[39m ⚡️ Build success in 8ms
|
|
17
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m466.00 B[39m
|
|
18
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[32m722.00 B[39m
|
|
19
|
-
[32mESM[39m ⚡️ Build success in 8ms
|
|
20
|
-
DTS Build start
|
|
21
|
-
DTS ⚡️ Build success in 768ms
|
|
22
|
-
DTS dist/index.d.ts 826.00 B
|
|
23
|
-
DTS dist/index.d.mts 826.00 B
|
package/.turbo/turbo-lint.log
DELETED
package/src/constants.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const DEFAULT_AGENT_ID = "default";
|
package/src/index.ts
DELETED
package/src/logger.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const logger = console;
|
package/src/types.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export type MaybePromise<T> = T | PromiseLike<T>;
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* More specific utility for records with at least one key
|
|
5
|
-
*/
|
|
6
|
-
export type NonEmptyRecord<T> =
|
|
7
|
-
T extends Record<string, unknown>
|
|
8
|
-
? keyof T extends never
|
|
9
|
-
? never
|
|
10
|
-
: T
|
|
11
|
-
: never;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Type representing an agent's basic information
|
|
15
|
-
*/
|
|
16
|
-
export interface AgentDescription {
|
|
17
|
-
name: string;
|
|
18
|
-
className: string;
|
|
19
|
-
description: string;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface RuntimeInfo {
|
|
23
|
-
version: string;
|
|
24
|
-
agents: Record<string, AgentDescription>;
|
|
25
|
-
audioFileTranscriptionEnabled: boolean;
|
|
26
|
-
}
|
package/src/utils.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { v4 as uuidv4 } from "uuid";
|
|
2
|
-
import * as PartialJSON from "partial-json";
|
|
3
|
-
|
|
4
|
-
export function randomUUID() {
|
|
5
|
-
return uuidv4();
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export function partialJSONParse(json: string) {
|
|
9
|
-
try {
|
|
10
|
-
return PartialJSON.parse(json);
|
|
11
|
-
} catch (error) {
|
|
12
|
-
return {};
|
|
13
|
-
}
|
|
14
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@copilotkitnext/typescript-config/base.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"outDir": "dist",
|
|
5
|
-
"rootDir": "src",
|
|
6
|
-
"declaration": true,
|
|
7
|
-
"declarationMap": true,
|
|
8
|
-
"sourceMap": true
|
|
9
|
-
},
|
|
10
|
-
"include": ["src/**/*"],
|
|
11
|
-
"exclude": ["dist", "node_modules"]
|
|
12
|
-
}
|