@copilotkit/runtime 0.37.0 → 0.38.0-beta.0
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/.turbo/turbo-build.log +69 -54
- package/CHANGELOG.md +11 -0
- package/__snapshots__/schema/schema.graphql +15 -4
- package/dist/{chunk-2CCVVJDU.mjs → chunk-2PJG3NAC.mjs} +13 -15
- package/dist/chunk-2PJG3NAC.mjs.map +1 -0
- package/dist/{chunk-NFCPM5AM.mjs → chunk-6NZ4UMOD.mjs} +4 -4
- package/dist/chunk-6NZ4UMOD.mjs.map +1 -0
- package/dist/{chunk-XPAUPJMW.mjs → chunk-6YGDE3YI.mjs} +432 -220
- package/dist/chunk-6YGDE3YI.mjs.map +1 -0
- package/dist/chunk-BYB2LNMK.mjs +152 -0
- package/dist/chunk-BYB2LNMK.mjs.map +1 -0
- package/dist/{chunk-7IFP53C6.mjs → chunk-FRK6BXXV.mjs} +49 -11
- package/dist/chunk-FRK6BXXV.mjs.map +1 -0
- package/dist/{chunk-5HGYI6EG.mjs → chunk-JBDOA7MK.mjs} +34 -15
- package/dist/chunk-JBDOA7MK.mjs.map +1 -0
- package/dist/{chunk-4UA4RB4C.mjs → chunk-JIKPSUGQ.mjs} +45 -76
- package/dist/chunk-JIKPSUGQ.mjs.map +1 -0
- package/dist/{chunk-BLTAUVRP.mjs → chunk-OZMCHYYR.mjs} +5 -3
- package/dist/{chunk-BLTAUVRP.mjs.map → chunk-OZMCHYYR.mjs.map} +1 -1
- package/dist/chunk-RHQLCJGG.mjs +7 -0
- package/dist/chunk-RHQLCJGG.mjs.map +1 -0
- package/dist/failed-response-status-reasons-0ab19e06.d.ts +49 -0
- package/dist/graphql/types/base/index.mjs +2 -1
- package/dist/graphql/types/converted/index.mjs +3 -2
- package/dist/{index-f0875df3.d.ts → index-0e75acd2.d.ts} +86 -59
- package/dist/index.d.ts +7 -4
- package/dist/index.js +536 -169
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -13
- package/dist/index.mjs.map +1 -1
- package/dist/{langchain-adapter-9ce103f3.d.ts → langchain-adapter-a02d1d38.d.ts} +4 -4
- package/dist/{langserve-fd5066ee.d.ts → langserve-75ebbc38.d.ts} +25 -9
- package/dist/lib/cloud/index.d.ts +6 -0
- package/dist/lib/cloud/index.js +18 -0
- package/dist/lib/cloud/index.js.map +1 -0
- package/dist/lib/cloud/index.mjs +1 -0
- package/dist/lib/cloud/index.mjs.map +1 -0
- package/dist/lib/index.d.ts +6 -4
- package/dist/lib/index.js +530 -169
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +9 -13
- package/dist/lib/integrations/index.d.ts +5 -3
- package/dist/lib/integrations/index.js +426 -64
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +7 -5
- package/dist/lib/integrations/node-http/index.d.ts +4 -2
- package/dist/lib/integrations/node-http/index.js +416 -52
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +6 -4
- package/dist/pages-router-e81920d5.d.ts +21 -0
- package/dist/service-adapters/index.d.ts +2 -2
- package/dist/service-adapters/index.js +82 -25
- package/dist/service-adapters/index.js.map +1 -1
- package/dist/service-adapters/index.mjs +5 -4
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +174 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/index.mjs +12 -0
- package/dist/utils/index.mjs.map +1 -0
- package/package.json +6 -4
- package/src/graphql/inputs/cloud-guardrails.input.ts +2 -5
- package/src/graphql/inputs/cloud.input.ts +2 -2
- package/src/graphql/resolvers/copilot.resolver.ts +340 -30
- package/src/graphql/types/response-status.type.ts +16 -2
- package/src/index.ts +1 -0
- package/src/lib/cloud/index.ts +4 -0
- package/src/lib/copilot-runtime.ts +116 -70
- package/src/lib/index.ts +0 -1
- package/src/lib/integrations/nextjs/app-router.ts +9 -17
- package/src/lib/integrations/nextjs/pages-router.ts +9 -15
- package/src/lib/integrations/node-http/index.ts +6 -14
- package/src/lib/integrations/shared.ts +38 -18
- package/src/lib/logger.ts +28 -0
- package/src/service-adapters/events.ts +20 -2
- package/src/service-adapters/experimental/groq/groq-adapter.ts +3 -1
- package/src/service-adapters/experimental/ollama/ollama-adapter.ts +3 -1
- package/src/service-adapters/google/google-genai-adapter.ts +6 -1
- package/src/service-adapters/google/utils.ts +1 -1
- package/src/service-adapters/index.ts +1 -1
- package/src/service-adapters/langchain/langchain-adapter.ts +8 -9
- package/src/service-adapters/langchain/langserve.ts +10 -4
- package/src/service-adapters/langchain/utils.ts +58 -9
- package/src/service-adapters/openai/openai-adapter.ts +8 -7
- package/src/service-adapters/openai/openai-assistant-adapter.ts +6 -8
- package/src/service-adapters/service-adapter.ts +1 -2
- package/src/utils/failed-response-status-reasons.ts +48 -0
- package/src/utils/index.ts +1 -0
- package/dist/chunk-2CCVVJDU.mjs.map +0 -1
- package/dist/chunk-4UA4RB4C.mjs.map +0 -1
- package/dist/chunk-5HGYI6EG.mjs.map +0 -1
- package/dist/chunk-7IFP53C6.mjs.map +0 -1
- package/dist/chunk-NFCPM5AM.mjs.map +0 -1
- package/dist/chunk-XPAUPJMW.mjs.map +0 -1
- package/dist/pages-router-b6bc6c60.d.ts +0 -30
- package/src/lib/copilot-cloud.ts +0 -63
- package/src/lib/guardrails.ts +0 -3
package/dist/lib/index.mjs
CHANGED
|
@@ -1,39 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
|
-
CopilotBackend,
|
|
3
|
-
CopilotCloud,
|
|
4
2
|
CopilotRuntime,
|
|
5
|
-
RemoteCopilotCloud,
|
|
6
3
|
flattenToolCallsNoDuplicates
|
|
7
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-JIKPSUGQ.mjs";
|
|
8
5
|
import {
|
|
9
6
|
GoogleGenerativeAIAdapter,
|
|
10
7
|
LangChainAdapter,
|
|
11
8
|
OpenAIAdapter,
|
|
12
9
|
OpenAIAssistantAdapter
|
|
13
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-JBDOA7MK.mjs";
|
|
14
11
|
import {
|
|
15
12
|
config,
|
|
16
13
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
17
14
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
18
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-2PJG3NAC.mjs";
|
|
19
16
|
import {
|
|
20
17
|
buildSchema,
|
|
21
18
|
copilotRuntimeNodeHttpEndpoint,
|
|
22
19
|
createContext,
|
|
23
20
|
getCommonConfig
|
|
24
|
-
} from "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
21
|
+
} from "../chunk-6YGDE3YI.mjs";
|
|
22
|
+
import "../chunk-FRK6BXXV.mjs";
|
|
23
|
+
import "../chunk-BYB2LNMK.mjs";
|
|
24
|
+
import "../chunk-OZMCHYYR.mjs";
|
|
25
|
+
import "../chunk-6NZ4UMOD.mjs";
|
|
26
|
+
import "../chunk-RHQLCJGG.mjs";
|
|
28
27
|
export {
|
|
29
|
-
CopilotBackend,
|
|
30
|
-
CopilotCloud,
|
|
31
28
|
CopilotRuntime,
|
|
32
29
|
GoogleGenerativeAIAdapter,
|
|
33
30
|
LangChainAdapter,
|
|
34
31
|
OpenAIAdapter,
|
|
35
32
|
OpenAIAssistantAdapter,
|
|
36
|
-
RemoteCopilotCloud,
|
|
37
33
|
buildSchema,
|
|
38
34
|
config,
|
|
39
35
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
export { g as CopilotRequestContextProperties,
|
|
2
|
-
export { C as CopilotRuntimeServerInstance, a as config, c as copilotRuntimeNextJSAppRouterEndpoint, b as copilotRuntimeNextJSPagesRouterEndpoint } from '../../pages-router-
|
|
1
|
+
export { g as CommonConfig, b as CopilotRequestContextProperties, c as CreateCopilotRuntimeServerOptions, G as GraphQLContext, e as buildSchema, i as copilotRuntimeNodeHttpEndpoint, d as createContext, h as getCommonConfig } from '../../index-0e75acd2.js';
|
|
2
|
+
export { C as CopilotRuntimeServerInstance, a as config, c as copilotRuntimeNextJSAppRouterEndpoint, b as copilotRuntimeNextJSPagesRouterEndpoint } from '../../pages-router-e81920d5.js';
|
|
3
3
|
import 'graphql-yoga';
|
|
4
4
|
import 'graphql';
|
|
5
|
+
import 'pino';
|
|
5
6
|
import '@copilotkit/shared';
|
|
6
|
-
import '../../langserve-
|
|
7
|
+
import '../../langserve-75ebbc38.js';
|
|
7
8
|
import '../../index-aa091e3c.js';
|
|
8
9
|
import '../../graphql/types/base/index.js';
|
|
9
10
|
import 'rxjs';
|
|
11
|
+
import '../cloud/index.js';
|