@copilotkitnext/shared 0.0.2 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@copilotkitnext/shared",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Shared utilities and types for CopilotKit2",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,23 +0,0 @@
1
-
2
- 
3
- > @copilotkitnext/shared@0.0.1 build /Users/mme/Code/vnext_experimental/packages/shared
4
- > tsup
5
-
6
- CLI Building entry: src/index.ts
7
- CLI Using tsconfig: tsconfig.json
8
- CLI tsup v8.5.0
9
- CLI Using tsup config: /Users/mme/Code/vnext_experimental/packages/shared/tsup.config.ts
10
- CLI Target: es2022
11
- CLI Cleaning output folder
12
- CJS Build start
13
- ESM Build start
14
- CJS dist/index.js 2.17 KB
15
- CJS dist/index.js.map 1.04 KB
16
- CJS ⚡️ Build success in 9ms
17
- ESM dist/index.mjs 466.00 B
18
- ESM dist/index.mjs.map 722.00 B
19
- ESM ⚡️ Build success in 9ms
20
- DTS Build start
21
- DTS ⚡️ Build success in 726ms
22
- DTS dist/index.d.ts 826.00 B
23
- DTS dist/index.d.mts 826.00 B
@@ -1,4 +0,0 @@
1
-
2
- > @copilotkit/shared@0.0.0 check-types /Users/mme/Code/CopilotKit2/packages/shared
3
- > tsc --noEmit
4
-
@@ -1,4 +0,0 @@
1
-
2
- > @copilotkit/shared@0.0.0 lint /Users/mme/Code/CopilotKit2/packages/shared
3
- > eslint . --max-warnings 0
4
-
package/src/constants.ts DELETED
@@ -1 +0,0 @@
1
- export const DEFAULT_AGENT_ID = "default";
package/src/index.ts DELETED
@@ -1,11 +0,0 @@
1
- export {
2
- type MaybePromise,
3
- type NonEmptyRecord,
4
- type AgentDescription,
5
- type RuntimeInfo,
6
- } from "./types";
7
-
8
- export * from "./utils";
9
-
10
- export { logger } from "./logger";
11
- export { DEFAULT_AGENT_ID } from "./constants";
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
- }
package/tsup.config.ts DELETED
@@ -1,11 +0,0 @@
1
- import { defineConfig } from 'tsup';
2
-
3
- export default defineConfig({
4
- entry: ['src/index.ts'],
5
- format: ['cjs', 'esm'],
6
- dts: true,
7
- sourcemap: true,
8
- clean: true,
9
- target: 'es2022',
10
- outDir: 'dist',
11
- });