@copilotkit/runtime 0.0.0-feat-dynamic-copilotcloud-qa-20250117190454
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/.eslintrc.js +7 -0
- package/CHANGELOG.md +913 -0
- package/README.md +46 -0
- package/__snapshots__/schema/schema.graphql +273 -0
- package/dist/chunk-44O2JGUY.mjs +12 -0
- package/dist/chunk-44O2JGUY.mjs.map +1 -0
- package/dist/chunk-BETLEV37.mjs +25 -0
- package/dist/chunk-BETLEV37.mjs.map +1 -0
- package/dist/chunk-CLGKEUOA.mjs +1408 -0
- package/dist/chunk-CLGKEUOA.mjs.map +1 -0
- package/dist/chunk-D2WLFQS6.mjs +43 -0
- package/dist/chunk-D2WLFQS6.mjs.map +1 -0
- package/dist/chunk-DFOKBSIS.mjs +1 -0
- package/dist/chunk-DFOKBSIS.mjs.map +1 -0
- package/dist/chunk-FA5DJ2TZ.mjs +3437 -0
- package/dist/chunk-FA5DJ2TZ.mjs.map +1 -0
- package/dist/chunk-HNUNXFTW.mjs +129 -0
- package/dist/chunk-HNUNXFTW.mjs.map +1 -0
- package/dist/chunk-SFLMY3ES.mjs +80 -0
- package/dist/chunk-SFLMY3ES.mjs.map +1 -0
- package/dist/chunk-U3V2BCGI.mjs +152 -0
- package/dist/chunk-U3V2BCGI.mjs.map +1 -0
- package/dist/chunk-ZCU6UPCY.mjs +25 -0
- package/dist/chunk-ZCU6UPCY.mjs.map +1 -0
- package/dist/copilot-runtime-1a224a0f.d.ts +196 -0
- package/dist/graphql/types/base/index.d.ts +6 -0
- package/dist/graphql/types/base/index.js +63 -0
- package/dist/graphql/types/base/index.js.map +1 -0
- package/dist/graphql/types/base/index.mjs +8 -0
- package/dist/graphql/types/base/index.mjs.map +1 -0
- package/dist/graphql/types/converted/index.d.ts +2 -0
- package/dist/graphql/types/converted/index.js +187 -0
- package/dist/graphql/types/converted/index.js.map +1 -0
- package/dist/graphql/types/converted/index.mjs +17 -0
- package/dist/graphql/types/converted/index.mjs.map +1 -0
- package/dist/groq-adapter-c35c5374.d.ts +281 -0
- package/dist/index-24315d90.d.ts +103 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +5258 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +76 -0
- package/dist/index.mjs.map +1 -0
- package/dist/langserve-a16ef8f4.d.ts +180 -0
- 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 +20 -0
- package/dist/lib/index.js +4906 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/index.mjs +58 -0
- package/dist/lib/index.mjs.map +1 -0
- package/dist/lib/integrations/index.d.ts +33 -0
- package/dist/lib/integrations/index.js +2229 -0
- package/dist/lib/integrations/index.js.map +1 -0
- package/dist/lib/integrations/index.mjs +34 -0
- package/dist/lib/integrations/index.mjs.map +1 -0
- package/dist/lib/integrations/nest/index.d.ts +14 -0
- package/dist/lib/integrations/nest/index.js +2138 -0
- package/dist/lib/integrations/nest/index.js.map +1 -0
- package/dist/lib/integrations/nest/index.mjs +13 -0
- package/dist/lib/integrations/nest/index.mjs.map +1 -0
- package/dist/lib/integrations/node-express/index.d.ts +14 -0
- package/dist/lib/integrations/node-express/index.js +2138 -0
- package/dist/lib/integrations/node-express/index.js.map +1 -0
- package/dist/lib/integrations/node-express/index.mjs +13 -0
- package/dist/lib/integrations/node-express/index.mjs.map +1 -0
- package/dist/lib/integrations/node-http/index.d.ts +14 -0
- package/dist/lib/integrations/node-http/index.js +2124 -0
- package/dist/lib/integrations/node-http/index.js.map +1 -0
- package/dist/lib/integrations/node-http/index.mjs +12 -0
- package/dist/lib/integrations/node-http/index.mjs.map +1 -0
- package/dist/service-adapters/index.d.ts +84 -0
- package/dist/service-adapters/index.js +1448 -0
- package/dist/service-adapters/index.js.map +1 -0
- package/dist/service-adapters/index.mjs +26 -0
- package/dist/service-adapters/index.mjs.map +1 -0
- package/dist/utils/index.d.ts +49 -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/jest.config.js +5 -0
- package/package.json +85 -0
- package/scripts/generate-gql-schema.ts +13 -0
- package/src/agents/langgraph/event-source.ts +287 -0
- package/src/agents/langgraph/events.ts +338 -0
- package/src/graphql/inputs/action.input.ts +16 -0
- package/src/graphql/inputs/agent-session.input.ts +13 -0
- package/src/graphql/inputs/agent-state.input.ts +10 -0
- package/src/graphql/inputs/cloud-guardrails.input.ts +16 -0
- package/src/graphql/inputs/cloud.input.ts +8 -0
- package/src/graphql/inputs/context-property.input.ts +10 -0
- package/src/graphql/inputs/custom-property.input.ts +15 -0
- package/src/graphql/inputs/forwarded-parameters.input.ts +22 -0
- package/src/graphql/inputs/frontend.input.ts +14 -0
- package/src/graphql/inputs/generate-copilot-response.input.ts +47 -0
- package/src/graphql/inputs/message.input.ts +92 -0
- package/src/graphql/resolvers/copilot.resolver.ts +556 -0
- package/src/graphql/types/agents-response.type.ts +22 -0
- package/src/graphql/types/base/index.ts +10 -0
- package/src/graphql/types/converted/index.ts +136 -0
- package/src/graphql/types/copilot-response.type.ts +113 -0
- package/src/graphql/types/enums.ts +37 -0
- package/src/graphql/types/guardrails-result.type.ts +20 -0
- package/src/graphql/types/message-status.type.ts +40 -0
- package/src/graphql/types/response-status.type.ts +66 -0
- package/src/index.ts +4 -0
- package/src/lib/cloud/index.ts +4 -0
- package/src/lib/index.ts +8 -0
- package/src/lib/integrations/index.ts +6 -0
- package/src/lib/integrations/nest/index.ts +17 -0
- package/src/lib/integrations/nextjs/app-router.ts +40 -0
- package/src/lib/integrations/nextjs/pages-router.ts +49 -0
- package/src/lib/integrations/node-express/index.ts +17 -0
- package/src/lib/integrations/node-http/index.ts +34 -0
- package/src/lib/integrations/shared.ts +109 -0
- package/src/lib/logger.ts +28 -0
- package/src/lib/runtime/copilot-runtime.ts +466 -0
- package/src/lib/runtime/remote-action-constructors.ts +304 -0
- package/src/lib/runtime/remote-actions.ts +174 -0
- package/src/lib/runtime/remote-lg-action.ts +657 -0
- package/src/lib/telemetry-client.ts +52 -0
- package/src/service-adapters/anthropic/anthropic-adapter.ts +205 -0
- package/src/service-adapters/anthropic/utils.ts +144 -0
- package/src/service-adapters/conversion.ts +64 -0
- package/src/service-adapters/events.ts +419 -0
- package/src/service-adapters/experimental/empty/empty-adapter.ts +33 -0
- package/src/service-adapters/experimental/ollama/ollama-adapter.ts +79 -0
- package/src/service-adapters/google/google-genai-adapter.ts +39 -0
- package/src/service-adapters/groq/groq-adapter.ts +173 -0
- package/src/service-adapters/index.ts +16 -0
- package/src/service-adapters/langchain/langchain-adapter.ts +99 -0
- package/src/service-adapters/langchain/langserve.ts +87 -0
- package/src/service-adapters/langchain/types.ts +14 -0
- package/src/service-adapters/langchain/utils.ts +306 -0
- package/src/service-adapters/openai/openai-adapter.ts +210 -0
- package/src/service-adapters/openai/openai-assistant-adapter.ts +304 -0
- package/src/service-adapters/openai/utils.ts +161 -0
- package/src/service-adapters/service-adapter.ts +30 -0
- package/src/service-adapters/unify/unify-adapter.ts +145 -0
- package/src/utils/failed-response-status-reasons.ts +48 -0
- package/src/utils/index.ts +1 -0
- package/tsconfig.json +11 -0
- package/tsup.config.ts +16 -0
- package/typedoc.json +4 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import "../chunk-DFOKBSIS.mjs";
|
|
2
|
+
import {
|
|
3
|
+
config,
|
|
4
|
+
copilotRuntimeNextJSAppRouterEndpoint,
|
|
5
|
+
copilotRuntimeNextJSPagesRouterEndpoint
|
|
6
|
+
} from "../chunk-SFLMY3ES.mjs";
|
|
7
|
+
import {
|
|
8
|
+
copilotRuntimeNestEndpoint
|
|
9
|
+
} from "../chunk-BETLEV37.mjs";
|
|
10
|
+
import {
|
|
11
|
+
copilotRuntimeNodeExpressEndpoint
|
|
12
|
+
} from "../chunk-ZCU6UPCY.mjs";
|
|
13
|
+
import {
|
|
14
|
+
CopilotRuntime,
|
|
15
|
+
buildSchema,
|
|
16
|
+
copilotKitEndpoint,
|
|
17
|
+
copilotRuntimeNodeHttpEndpoint,
|
|
18
|
+
createContext,
|
|
19
|
+
flattenToolCallsNoDuplicates,
|
|
20
|
+
getCommonConfig,
|
|
21
|
+
langGraphPlatformEndpoint,
|
|
22
|
+
resolveEndpointType
|
|
23
|
+
} from "../chunk-FA5DJ2TZ.mjs";
|
|
24
|
+
import {
|
|
25
|
+
GoogleGenerativeAIAdapter,
|
|
26
|
+
GroqAdapter,
|
|
27
|
+
LangChainAdapter,
|
|
28
|
+
OpenAIAdapter,
|
|
29
|
+
OpenAIAssistantAdapter,
|
|
30
|
+
UnifyAdapter
|
|
31
|
+
} from "../chunk-CLGKEUOA.mjs";
|
|
32
|
+
import "../chunk-U3V2BCGI.mjs";
|
|
33
|
+
import "../chunk-HNUNXFTW.mjs";
|
|
34
|
+
import "../chunk-D2WLFQS6.mjs";
|
|
35
|
+
import "../chunk-44O2JGUY.mjs";
|
|
36
|
+
export {
|
|
37
|
+
CopilotRuntime,
|
|
38
|
+
GoogleGenerativeAIAdapter,
|
|
39
|
+
GroqAdapter,
|
|
40
|
+
LangChainAdapter,
|
|
41
|
+
OpenAIAdapter,
|
|
42
|
+
OpenAIAssistantAdapter,
|
|
43
|
+
UnifyAdapter,
|
|
44
|
+
buildSchema,
|
|
45
|
+
config,
|
|
46
|
+
copilotKitEndpoint,
|
|
47
|
+
copilotRuntimeNestEndpoint,
|
|
48
|
+
copilotRuntimeNextJSAppRouterEndpoint,
|
|
49
|
+
copilotRuntimeNextJSPagesRouterEndpoint,
|
|
50
|
+
copilotRuntimeNodeExpressEndpoint,
|
|
51
|
+
copilotRuntimeNodeHttpEndpoint,
|
|
52
|
+
createContext,
|
|
53
|
+
flattenToolCallsNoDuplicates,
|
|
54
|
+
getCommonConfig,
|
|
55
|
+
langGraphPlatformEndpoint,
|
|
56
|
+
resolveEndpointType
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { d as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../copilot-runtime-1a224a0f.js';
|
|
2
|
+
export { h as CommonConfig, b as CopilotRequestContextProperties, g as buildSchema, e as createContext, i as getCommonConfig } from '../../copilot-runtime-1a224a0f.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 '@copilotkit/shared';
|
|
9
|
+
import '../../langserve-a16ef8f4.js';
|
|
10
|
+
import '../../index-24315d90.js';
|
|
11
|
+
import '../../graphql/types/base/index.js';
|
|
12
|
+
import 'rxjs';
|
|
13
|
+
import 'graphql';
|
|
14
|
+
import 'pino';
|
|
15
|
+
import '../cloud/index.js';
|
|
16
|
+
|
|
17
|
+
declare function copilotRuntimeNextJSAppRouterEndpoint(options: CreateCopilotRuntimeServerOptions): {
|
|
18
|
+
handleRequest: graphql_yoga.YogaServerInstance<{}, Partial<GraphQLContext>>;
|
|
19
|
+
GET: any;
|
|
20
|
+
POST: any;
|
|
21
|
+
OPTIONS: any;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
declare const config: {
|
|
25
|
+
api: {
|
|
26
|
+
bodyParser: boolean;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
type CopilotRuntimeServerInstance<T> = YogaServerInstance<T, Partial<GraphQLContext>>;
|
|
30
|
+
|
|
31
|
+
declare function copilotRuntimeNextJSPagesRouterEndpoint(options: CreateCopilotRuntimeServerOptions): CopilotRuntimeServerInstance<GraphQLContext>;
|
|
32
|
+
|
|
33
|
+
export { CopilotRuntimeServerInstance, CreateCopilotRuntimeServerOptions, GraphQLContext, config, copilotRuntimeNextJSAppRouterEndpoint, copilotRuntimeNextJSPagesRouterEndpoint };
|