@copilotkit/runtime 1.10.7-next.0 → 1.50.0-beta.1
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 +0 -6
- package/dist/index.d.ts +1655 -27
- package/dist/index.js +2172 -5049
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5441 -99
- package/dist/index.mjs.map +1 -1
- package/dist/v2/index.d.ts +1 -0
- package/dist/v2/index.js +15 -0
- package/dist/v2/index.js.map +1 -0
- package/dist/v2/index.mjs +4 -0
- package/dist/v2/index.mjs.map +1 -0
- package/package.json +17 -5
- package/src/graphql/message-conversion/agui-to-gql.test.ts +1263 -0
- package/src/graphql/message-conversion/agui-to-gql.ts +333 -0
- package/src/graphql/message-conversion/gql-to-agui.test.ts +1578 -0
- package/src/graphql/message-conversion/gql-to-agui.ts +278 -0
- package/src/graphql/message-conversion/index.ts +2 -0
- package/src/graphql/message-conversion/roundtrip-conversion.test.ts +526 -0
- package/src/graphql/resolvers/copilot.resolver.ts +3 -48
- package/src/graphql/resolvers/state.resolver.ts +3 -2
- package/src/graphql/types/converted/index.ts +32 -6
- package/src/graphql/types/enums.ts +2 -2
- package/src/graphql/types/message-status.type.ts +3 -1
- package/src/lib/index.ts +1 -1
- package/src/lib/integrations/nextjs/app-router.ts +10 -11
- package/src/lib/integrations/nextjs/pages-router.ts +4 -11
- package/src/lib/integrations/node-http/index.ts +64 -5
- package/src/lib/integrations/shared.ts +1 -1
- package/src/lib/observability.ts +87 -0
- package/src/lib/runtime/{langgraph/langgraph-agent.ts → agent-integrations/langgraph.agent.ts} +5 -0
- package/src/lib/runtime/copilot-runtime.ts +346 -1333
- package/src/lib/runtime/types.ts +49 -0
- package/src/lib/runtime/utils.ts +87 -0
- package/src/lib/telemetry-client.ts +6 -5
- package/src/service-adapters/anthropic/anthropic-adapter.ts +5 -1
- package/src/service-adapters/bedrock/bedrock-adapter.ts +6 -1
- package/src/service-adapters/empty/empty-adapter.ts +3 -0
- package/src/service-adapters/events.ts +0 -254
- package/src/service-adapters/experimental/ollama/ollama-adapter.ts +5 -1
- package/src/service-adapters/google/google-genai-adapter.ts +7 -1
- package/src/service-adapters/groq/groq-adapter.ts +5 -1
- package/src/service-adapters/langchain/langchain-adapter.ts +3 -0
- package/src/service-adapters/openai/openai-adapter.ts +5 -1
- package/src/service-adapters/openai/openai-assistant-adapter.ts +4 -0
- package/src/service-adapters/service-adapter.ts +3 -0
- package/src/service-adapters/unify/unify-adapter.ts +6 -1
- package/src/v2/index.ts +2 -0
- package/tsup.config.ts +2 -1
- package/dist/chunk-27JKTS6P.mjs +0 -1704
- package/dist/chunk-27JKTS6P.mjs.map +0 -1
- package/dist/chunk-2OZAGFV3.mjs +0 -43
- package/dist/chunk-2OZAGFV3.mjs.map +0 -1
- package/dist/chunk-5BW5IBTZ.mjs +0 -80
- package/dist/chunk-5BW5IBTZ.mjs.map +0 -1
- package/dist/chunk-AMUJQ6IR.mjs +0 -50
- package/dist/chunk-AMUJQ6IR.mjs.map +0 -1
- package/dist/chunk-BMIYSM5W.mjs +0 -25
- package/dist/chunk-BMIYSM5W.mjs.map +0 -1
- package/dist/chunk-FDTCG47E.mjs +0 -25
- package/dist/chunk-FDTCG47E.mjs.map +0 -1
- package/dist/chunk-FHD4JECV.mjs +0 -33
- package/dist/chunk-FHD4JECV.mjs.map +0 -1
- package/dist/chunk-LRCKLBMO.mjs +0 -6020
- package/dist/chunk-LRCKLBMO.mjs.map +0 -1
- package/dist/chunk-R7RMYEPZ.mjs +0 -175
- package/dist/chunk-R7RMYEPZ.mjs.map +0 -1
- package/dist/chunk-SHBDMA63.mjs +0 -141
- package/dist/chunk-SHBDMA63.mjs.map +0 -1
- package/dist/chunk-XWBDEXDA.mjs +0 -153
- package/dist/chunk-XWBDEXDA.mjs.map +0 -1
- package/dist/graphql/types/base/index.d.ts +0 -6
- package/dist/graphql/types/base/index.js +0 -63
- package/dist/graphql/types/base/index.js.map +0 -1
- package/dist/graphql/types/base/index.mjs +0 -8
- package/dist/graphql/types/base/index.mjs.map +0 -1
- package/dist/graphql/types/converted/index.d.ts +0 -2
- package/dist/graphql/types/converted/index.js +0 -200
- package/dist/graphql/types/converted/index.js.map +0 -1
- package/dist/graphql/types/converted/index.mjs +0 -19
- package/dist/graphql/types/converted/index.mjs.map +0 -1
- package/dist/groq-adapter-c8aec5c5.d.ts +0 -321
- package/dist/index-96b330da.d.ts +0 -119
- package/dist/langserve-0c6100e3.d.ts +0 -257
- package/dist/lib/cloud/index.d.ts +0 -6
- package/dist/lib/cloud/index.js +0 -18
- package/dist/lib/cloud/index.js.map +0 -1
- package/dist/lib/cloud/index.mjs +0 -1
- package/dist/lib/cloud/index.mjs.map +0 -1
- package/dist/lib/index.d.ts +0 -212
- package/dist/lib/index.js +0 -7843
- package/dist/lib/index.js.map +0 -1
- package/dist/lib/index.mjs +0 -76
- package/dist/lib/index.mjs.map +0 -1
- package/dist/lib/integrations/index.d.ts +0 -34
- package/dist/lib/integrations/index.js +0 -3052
- package/dist/lib/integrations/index.js.map +0 -1
- package/dist/lib/integrations/index.mjs +0 -37
- package/dist/lib/integrations/index.mjs.map +0 -1
- package/dist/lib/integrations/nest/index.d.ts +0 -15
- package/dist/lib/integrations/nest/index.js +0 -2959
- package/dist/lib/integrations/nest/index.js.map +0 -1
- package/dist/lib/integrations/nest/index.mjs +0 -14
- package/dist/lib/integrations/nest/index.mjs.map +0 -1
- package/dist/lib/integrations/node-express/index.d.ts +0 -15
- package/dist/lib/integrations/node-express/index.js +0 -2959
- package/dist/lib/integrations/node-express/index.js.map +0 -1
- package/dist/lib/integrations/node-express/index.mjs +0 -14
- package/dist/lib/integrations/node-express/index.mjs.map +0 -1
- package/dist/lib/integrations/node-http/index.d.ts +0 -15
- package/dist/lib/integrations/node-http/index.js +0 -2945
- package/dist/lib/integrations/node-http/index.js.map +0 -1
- package/dist/lib/integrations/node-http/index.mjs +0 -13
- package/dist/lib/integrations/node-http/index.mjs.map +0 -1
- package/dist/service-adapters/index.d.ts +0 -162
- package/dist/service-adapters/index.js +0 -1787
- package/dist/service-adapters/index.js.map +0 -1
- package/dist/service-adapters/index.mjs +0 -34
- package/dist/service-adapters/index.mjs.map +0 -1
- package/dist/service-adapters/shared/index.d.ts +0 -9
- package/dist/service-adapters/shared/index.js +0 -72
- package/dist/service-adapters/shared/index.js.map +0 -1
- package/dist/service-adapters/shared/index.mjs +0 -8
- package/dist/service-adapters/shared/index.mjs.map +0 -1
- package/dist/shared-0a7346ce.d.ts +0 -466
- package/dist/utils/index.d.ts +0 -65
- package/dist/utils/index.js +0 -175
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/index.mjs +0 -12
- package/dist/utils/index.mjs.map +0 -1
- package/src/lib/runtime/__tests__/remote-action-constructors.test.ts +0 -246
- package/src/lib/runtime/agui-action.ts +0 -180
- package/src/lib/runtime/remote-action-constructors.ts +0 -331
- package/src/lib/runtime/remote-actions.ts +0 -217
- package/src/lib/runtime/remote-lg-action.ts +0 -1006
package/dist/lib/index.mjs
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CustomEventNames,
|
|
3
|
-
LangGraphAgent,
|
|
4
|
-
LangGraphHttpAgent
|
|
5
|
-
} from "../chunk-R7RMYEPZ.mjs";
|
|
6
|
-
import {
|
|
7
|
-
config,
|
|
8
|
-
copilotRuntimeNextJSAppRouterEndpoint,
|
|
9
|
-
copilotRuntimeNextJSPagesRouterEndpoint
|
|
10
|
-
} from "../chunk-5BW5IBTZ.mjs";
|
|
11
|
-
import {
|
|
12
|
-
copilotRuntimeNestEndpoint
|
|
13
|
-
} from "../chunk-BMIYSM5W.mjs";
|
|
14
|
-
import {
|
|
15
|
-
copilotRuntimeNodeExpressEndpoint
|
|
16
|
-
} from "../chunk-FDTCG47E.mjs";
|
|
17
|
-
import {
|
|
18
|
-
CopilotRuntime,
|
|
19
|
-
addCustomHeaderPlugin,
|
|
20
|
-
buildSchema,
|
|
21
|
-
convertMCPToolsToActions,
|
|
22
|
-
copilotKitEndpoint,
|
|
23
|
-
copilotRuntimeNodeHttpEndpoint,
|
|
24
|
-
createContext,
|
|
25
|
-
createLogger,
|
|
26
|
-
extractParametersFromSchema,
|
|
27
|
-
flattenToolCallsNoDuplicates,
|
|
28
|
-
generateMcpToolInstructions,
|
|
29
|
-
getCommonConfig,
|
|
30
|
-
langGraphPlatformEndpoint,
|
|
31
|
-
resolveEndpointType
|
|
32
|
-
} from "../chunk-LRCKLBMO.mjs";
|
|
33
|
-
import "../chunk-SHBDMA63.mjs";
|
|
34
|
-
import {
|
|
35
|
-
GoogleGenerativeAIAdapter,
|
|
36
|
-
GroqAdapter,
|
|
37
|
-
LangChainAdapter,
|
|
38
|
-
OpenAIAdapter,
|
|
39
|
-
OpenAIAssistantAdapter,
|
|
40
|
-
UnifyAdapter
|
|
41
|
-
} from "../chunk-27JKTS6P.mjs";
|
|
42
|
-
import "../chunk-XWBDEXDA.mjs";
|
|
43
|
-
import "../chunk-AMUJQ6IR.mjs";
|
|
44
|
-
import "../chunk-2OZAGFV3.mjs";
|
|
45
|
-
import "../chunk-FHD4JECV.mjs";
|
|
46
|
-
export {
|
|
47
|
-
CopilotRuntime,
|
|
48
|
-
CustomEventNames,
|
|
49
|
-
GoogleGenerativeAIAdapter,
|
|
50
|
-
GroqAdapter,
|
|
51
|
-
LangChainAdapter,
|
|
52
|
-
LangGraphAgent,
|
|
53
|
-
LangGraphHttpAgent,
|
|
54
|
-
OpenAIAdapter,
|
|
55
|
-
OpenAIAssistantAdapter,
|
|
56
|
-
UnifyAdapter,
|
|
57
|
-
addCustomHeaderPlugin,
|
|
58
|
-
buildSchema,
|
|
59
|
-
config,
|
|
60
|
-
convertMCPToolsToActions,
|
|
61
|
-
copilotKitEndpoint,
|
|
62
|
-
copilotRuntimeNestEndpoint,
|
|
63
|
-
copilotRuntimeNextJSAppRouterEndpoint,
|
|
64
|
-
copilotRuntimeNextJSPagesRouterEndpoint,
|
|
65
|
-
copilotRuntimeNodeExpressEndpoint,
|
|
66
|
-
copilotRuntimeNodeHttpEndpoint,
|
|
67
|
-
createContext,
|
|
68
|
-
createLogger,
|
|
69
|
-
extractParametersFromSchema,
|
|
70
|
-
flattenToolCallsNoDuplicates,
|
|
71
|
-
generateMcpToolInstructions,
|
|
72
|
-
getCommonConfig,
|
|
73
|
-
langGraphPlatformEndpoint,
|
|
74
|
-
resolveEndpointType
|
|
75
|
-
};
|
|
76
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/lib/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { b as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../shared-0a7346ce.js';
|
|
2
|
-
export { e as CommonConfig, C as CopilotRequestContextProperties, a as addCustomHeaderPlugin, d as buildSchema, c as createContext, g as getCommonConfig } from '../../shared-0a7346ce.js';
|
|
3
|
-
import * as graphql_yoga from 'graphql-yoga';
|
|
4
|
-
import { YogaServerInstance } from 'graphql-yoga';
|
|
5
|
-
export { copilotRuntimeNodeHttpEndpoint } from './node-http/index.js';
|
|
6
|
-
export { copilotRuntimeNodeExpressEndpoint } from './node-express/index.js';
|
|
7
|
-
export { copilotRuntimeNestEndpoint } from './nest/index.js';
|
|
8
|
-
import 'graphql';
|
|
9
|
-
import 'pino';
|
|
10
|
-
import '@copilotkit/shared';
|
|
11
|
-
import '../../langserve-0c6100e3.js';
|
|
12
|
-
import '../../index-96b330da.js';
|
|
13
|
-
import '../../graphql/types/base/index.js';
|
|
14
|
-
import 'rxjs';
|
|
15
|
-
import '../cloud/index.js';
|
|
16
|
-
import '@ag-ui/client';
|
|
17
|
-
|
|
18
|
-
declare function copilotRuntimeNextJSAppRouterEndpoint(options: CreateCopilotRuntimeServerOptions): {
|
|
19
|
-
handleRequest: graphql_yoga.YogaServerInstance<{}, Partial<GraphQLContext>>;
|
|
20
|
-
GET: any;
|
|
21
|
-
POST: any;
|
|
22
|
-
OPTIONS: any;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
declare const config: {
|
|
26
|
-
api: {
|
|
27
|
-
bodyParser: boolean;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
type CopilotRuntimeServerInstance<T> = YogaServerInstance<T, Partial<GraphQLContext>>;
|
|
31
|
-
|
|
32
|
-
declare function copilotRuntimeNextJSPagesRouterEndpoint(options: CreateCopilotRuntimeServerOptions): CopilotRuntimeServerInstance<GraphQLContext>;
|
|
33
|
-
|
|
34
|
-
export { CopilotRuntimeServerInstance, CreateCopilotRuntimeServerOptions, GraphQLContext, config, copilotRuntimeNextJSAppRouterEndpoint, copilotRuntimeNextJSPagesRouterEndpoint };
|