@copilotkit/runtime 1.8.5-next.2 → 1.8.5-next.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/CHANGELOG.md +7 -0
- package/dist/{chunk-PJX3FQOX.mjs → chunk-2PVUPC44.mjs} +2 -2
- package/dist/{chunk-FZJAYGIR.mjs → chunk-DNI7KA7Y.mjs} +2 -2
- package/dist/chunk-Q6JA6YY3.mjs +1 -0
- package/dist/{chunk-7VNWCLG4.mjs → chunk-TDPCQIMB.mjs} +2 -2
- package/dist/{chunk-A7E5UM7B.mjs → chunk-UOCZJTXN.mjs} +2 -2
- package/dist/{chunk-A4MGCX6X.mjs → chunk-UTUGZIQI.mjs} +165 -10
- package/dist/chunk-UTUGZIQI.mjs.map +1 -0
- package/dist/index.d.ts +8 -8
- package/dist/index.js +2882 -2719
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -6
- package/dist/index.mjs.map +1 -1
- package/dist/lib/index.d.ts +7 -7
- package/dist/lib/index.js +3876 -3713
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +10 -6
- package/dist/lib/integrations/index.d.ts +4 -4
- package/dist/lib/integrations/index.js +1 -1
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +5 -5
- package/dist/lib/integrations/nest/index.d.ts +3 -3
- package/dist/lib/integrations/nest/index.js +1 -1
- package/dist/lib/integrations/nest/index.js.map +1 -1
- package/dist/lib/integrations/nest/index.mjs +3 -3
- package/dist/lib/integrations/node-express/index.d.ts +3 -3
- package/dist/lib/integrations/node-express/index.js +1 -1
- package/dist/lib/integrations/node-express/index.js.map +1 -1
- package/dist/lib/integrations/node-express/index.mjs +3 -3
- package/dist/lib/integrations/node-http/index.d.ts +3 -3
- package/dist/lib/integrations/node-http/index.js +1 -1
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +2 -2
- package/dist/service-adapters/index.mjs +1 -1
- package/dist/{copilot-runtime-9347bd66.d.ts → shared-86ec42e7.d.ts} +130 -45
- package/package.json +2 -2
- package/src/lib/index.ts +2 -1
- package/src/lib/runtime/copilot-runtime.ts +218 -11
- package/src/lib/runtime/mcp-tools-utils.ts +117 -0
- package/dist/chunk-A4MGCX6X.mjs.map +0 -1
- package/dist/chunk-PTC5JN3P.mjs +0 -1
- /package/dist/{chunk-PJX3FQOX.mjs.map → chunk-2PVUPC44.mjs.map} +0 -0
- /package/dist/{chunk-FZJAYGIR.mjs.map → chunk-DNI7KA7Y.mjs.map} +0 -0
- /package/dist/{chunk-PTC5JN3P.mjs.map → chunk-Q6JA6YY3.mjs.map} +0 -0
- /package/dist/{chunk-7VNWCLG4.mjs.map → chunk-TDPCQIMB.mjs.map} +0 -0
- /package/dist/{chunk-A7E5UM7B.mjs.map → chunk-UOCZJTXN.mjs.map} +0 -0
package/dist/lib/index.mjs
CHANGED
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-Q6JA6YY3.mjs";
|
|
2
2
|
import {
|
|
3
3
|
config,
|
|
4
4
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
5
5
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-UOCZJTXN.mjs";
|
|
7
7
|
import {
|
|
8
8
|
copilotRuntimeNestEndpoint
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-TDPCQIMB.mjs";
|
|
10
10
|
import {
|
|
11
11
|
copilotRuntimeNodeExpressEndpoint
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-2PVUPC44.mjs";
|
|
13
13
|
import {
|
|
14
14
|
CopilotRuntime,
|
|
15
15
|
addCustomHeaderPlugin,
|
|
16
16
|
buildSchema,
|
|
17
|
+
convertMCPToolsToActions,
|
|
17
18
|
copilotKitEndpoint,
|
|
18
19
|
copilotRuntimeNodeHttpEndpoint,
|
|
19
20
|
createContext,
|
|
20
21
|
createLogger,
|
|
22
|
+
extractParametersFromSchema,
|
|
21
23
|
flattenToolCallsNoDuplicates,
|
|
22
24
|
getCommonConfig,
|
|
23
25
|
langGraphPlatformEndpoint,
|
|
24
26
|
resolveEndpointType
|
|
25
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-UTUGZIQI.mjs";
|
|
26
28
|
import {
|
|
27
29
|
GoogleGenerativeAIAdapter,
|
|
28
30
|
GroqAdapter,
|
|
@@ -30,7 +32,7 @@ import {
|
|
|
30
32
|
OpenAIAdapter,
|
|
31
33
|
OpenAIAssistantAdapter,
|
|
32
34
|
UnifyAdapter
|
|
33
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-DNI7KA7Y.mjs";
|
|
34
36
|
import "../chunk-5BIEM2UU.mjs";
|
|
35
37
|
import "../chunk-RTFJTJMA.mjs";
|
|
36
38
|
import "../chunk-2OZAGFV3.mjs";
|
|
@@ -46,6 +48,7 @@ export {
|
|
|
46
48
|
addCustomHeaderPlugin,
|
|
47
49
|
buildSchema,
|
|
48
50
|
config,
|
|
51
|
+
convertMCPToolsToActions,
|
|
49
52
|
copilotKitEndpoint,
|
|
50
53
|
copilotRuntimeNestEndpoint,
|
|
51
54
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
@@ -54,6 +57,7 @@ export {
|
|
|
54
57
|
copilotRuntimeNodeHttpEndpoint,
|
|
55
58
|
createContext,
|
|
56
59
|
createLogger,
|
|
60
|
+
extractParametersFromSchema,
|
|
57
61
|
flattenToolCallsNoDuplicates,
|
|
58
62
|
getCommonConfig,
|
|
59
63
|
langGraphPlatformEndpoint,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { b as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../shared-86ec42e7.js';
|
|
2
|
+
export { e as CommonConfig, C as CopilotRequestContextProperties, a as addCustomHeaderPlugin, d as buildSchema, c as createContext, g as getCommonConfig } from '../../shared-86ec42e7.js';
|
|
3
3
|
import * as graphql_yoga from 'graphql-yoga';
|
|
4
4
|
import { YogaServerInstance } from 'graphql-yoga';
|
|
5
5
|
export { copilotRuntimeNodeHttpEndpoint } from './node-http/index.js';
|
|
6
6
|
export { copilotRuntimeNodeExpressEndpoint } from './node-express/index.js';
|
|
7
7
|
export { copilotRuntimeNestEndpoint } from './nest/index.js';
|
|
8
|
+
import 'graphql';
|
|
9
|
+
import 'pino';
|
|
8
10
|
import '@copilotkit/shared';
|
|
9
11
|
import '../../langserve-6f7af8d3.js';
|
|
10
12
|
import '../../index-5bec5424.js';
|
|
11
13
|
import '../../graphql/types/base/index.js';
|
|
12
14
|
import 'rxjs';
|
|
13
|
-
import 'graphql';
|
|
14
|
-
import 'pino';
|
|
15
15
|
import '../cloud/index.js';
|
|
16
16
|
|
|
17
17
|
declare function copilotRuntimeNextJSAppRouterEndpoint(options: CreateCopilotRuntimeServerOptions): {
|