@copilotkit/runtime 1.5.16 → 1.5.17-next.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/CHANGELOG.md +11 -0
- package/dist/chunk-44O2JGUY.mjs +12 -0
- package/dist/{chunk-2OZAGFV3.mjs → chunk-D2WLFQS6.mjs} +2 -2
- package/dist/{chunk-TWUMUUCQ.mjs → chunk-F6JB7EXM.mjs} +3 -3
- package/dist/{chunk-RTFJTJMA.mjs → chunk-HNUNXFTW.mjs} +3 -3
- package/dist/{chunk-FHRPZT3X.mjs → chunk-LKSLJZC6.mjs} +3 -3
- package/dist/{chunk-N6X67FPO.mjs → chunk-Q5VYBQBA.mjs} +3 -3
- package/dist/{chunk-OS5YD32G.mjs → chunk-S3KKBII4.mjs} +2 -2
- package/dist/{chunk-5BIEM2UU.mjs → chunk-U3V2BCGI.mjs} +2 -2
- package/dist/{chunk-HHBTKTJ5.mjs → chunk-ZT3RB4JF.mjs} +9 -18
- package/dist/chunk-ZT3RB4JF.mjs.map +1 -0
- package/dist/{copilot-runtime-084fb9c7.d.ts → copilot-runtime-3e7f1c7b.d.ts} +1 -6
- package/dist/graphql/types/base/index.mjs +2 -2
- package/dist/graphql/types/converted/index.mjs +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -11
- package/dist/index.mjs.map +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +2 -11
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +9 -11
- package/dist/lib/integrations/index.d.ts +2 -2
- package/dist/lib/integrations/index.js +2 -11
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +9 -11
- package/dist/lib/integrations/nest/index.d.ts +1 -1
- package/dist/lib/integrations/nest/index.js +2 -9
- package/dist/lib/integrations/nest/index.js.map +1 -1
- package/dist/lib/integrations/nest/index.mjs +7 -7
- package/dist/lib/integrations/node-express/index.d.ts +1 -1
- package/dist/lib/integrations/node-express/index.js +2 -9
- package/dist/lib/integrations/node-express/index.js.map +1 -1
- package/dist/lib/integrations/node-express/index.mjs +7 -7
- package/dist/lib/integrations/node-http/index.d.ts +1 -1
- package/dist/lib/integrations/node-http/index.js +2 -9
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +6 -6
- package/dist/service-adapters/index.mjs +2 -2
- package/dist/utils/index.mjs +2 -2
- package/package.json +2 -2
- package/src/lib/integrations/shared.ts +1 -9
- package/tsconfig.json +0 -1
- package/dist/chunk-FHD4JECV.mjs +0 -33
- package/dist/chunk-HHBTKTJ5.mjs.map +0 -1
- /package/dist/{chunk-FHD4JECV.mjs.map → chunk-44O2JGUY.mjs.map} +0 -0
- /package/dist/{chunk-2OZAGFV3.mjs.map → chunk-D2WLFQS6.mjs.map} +0 -0
- /package/dist/{chunk-TWUMUUCQ.mjs.map → chunk-F6JB7EXM.mjs.map} +0 -0
- /package/dist/{chunk-RTFJTJMA.mjs.map → chunk-HNUNXFTW.mjs.map} +0 -0
- /package/dist/{chunk-FHRPZT3X.mjs.map → chunk-LKSLJZC6.mjs.map} +0 -0
- /package/dist/{chunk-N6X67FPO.mjs.map → chunk-Q5VYBQBA.mjs.map} +0 -0
- /package/dist/{chunk-OS5YD32G.mjs.map → chunk-S3KKBII4.mjs.map} +0 -0
- /package/dist/{chunk-5BIEM2UU.mjs.map → chunk-U3V2BCGI.mjs.map} +0 -0
|
@@ -9,11 +9,6 @@ import { CopilotCloudOptions } from './lib/cloud/index.js';
|
|
|
9
9
|
type LogLevel = "debug" | "info" | "warn" | "error";
|
|
10
10
|
|
|
11
11
|
declare const logger: pino.Logger<never>;
|
|
12
|
-
declare const addCustomHeaderPlugin: {
|
|
13
|
-
onResponse({ response }: {
|
|
14
|
-
response: any;
|
|
15
|
-
}): void;
|
|
16
|
-
};
|
|
17
12
|
type AnyPrimitive = string | boolean | number | null;
|
|
18
13
|
type CopilotRequestContextProperties = Record<string, AnyPrimitive | Record<string, AnyPrimitive>>;
|
|
19
14
|
type GraphQLContext = YogaInitialContext & {
|
|
@@ -215,4 +210,4 @@ declare function copilotKitEndpoint(config: Omit<CopilotKitEndpoint, "type">): C
|
|
|
215
210
|
declare function langGraphPlatformEndpoint(config: Omit<LangGraphPlatformEndpoint, "type">): LangGraphPlatformEndpoint;
|
|
216
211
|
declare function resolveEndpointType(endpoint: EndpointDefinition): EndpointType;
|
|
217
212
|
|
|
218
|
-
export { CopilotRuntimeConstructorParams as C, GraphQLContext as G, CopilotRuntime as a,
|
|
213
|
+
export { CopilotRuntimeConstructorParams as C, GraphQLContext as G, CopilotRuntime as a, CopilotRequestContextProperties as b, copilotKitEndpoint as c, CreateCopilotRuntimeServerOptions as d, createContext as e, flattenToolCallsNoDuplicates as f, buildSchema as g, CommonConfig as h, getCommonConfig as i, langGraphPlatformEndpoint as l, resolveEndpointType as r };
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
Message,
|
|
5
5
|
ResultMessage,
|
|
6
6
|
TextMessage
|
|
7
|
-
} from "../../../chunk-
|
|
8
|
-
import "../../../chunk-
|
|
9
|
-
import "../../../chunk-
|
|
7
|
+
} from "../../../chunk-HNUNXFTW.mjs";
|
|
8
|
+
import "../../../chunk-D2WLFQS6.mjs";
|
|
9
|
+
import "../../../chunk-44O2JGUY.mjs";
|
|
10
10
|
export {
|
|
11
11
|
ActionExecutionMessage,
|
|
12
12
|
AgentStateMessage,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { h as CommonConfig, b as CopilotRequestContextProperties, a as CopilotRuntime, C as CopilotRuntimeConstructorParams, d as CreateCopilotRuntimeServerOptions, G as GraphQLContext, g as buildSchema, c as copilotKitEndpoint, e as createContext, f as flattenToolCallsNoDuplicates, i as getCommonConfig, l as langGraphPlatformEndpoint, r as resolveEndpointType } from './copilot-runtime-3e7f1c7b.js';
|
|
2
2
|
export { G as GoogleGenerativeAIAdapter, f as GroqAdapter, e as GroqAdapterParams, L as LangChainAdapter, a as OpenAIAdapter, O as OpenAIAdapterParams, c as OpenAIAssistantAdapter, b as OpenAIAssistantAdapterParams, d as UnifyAdapter, U as UnifyAdapterParams } from './groq-adapter-3b894689.js';
|
|
3
3
|
export { CopilotRuntimeServerInstance, config, copilotRuntimeNextJSAppRouterEndpoint, copilotRuntimeNextJSPagesRouterEndpoint } from './lib/integrations/index.js';
|
|
4
4
|
export { copilotRuntimeNodeHttpEndpoint } from './lib/integrations/node-http/index.js';
|
package/dist/index.js
CHANGED
|
@@ -44,7 +44,7 @@ var require_package = __commonJS({
|
|
|
44
44
|
publishConfig: {
|
|
45
45
|
access: "public"
|
|
46
46
|
},
|
|
47
|
-
version: "1.5.
|
|
47
|
+
version: "1.5.17-next.0",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -139,7 +139,6 @@ __export(src_exports, {
|
|
|
139
139
|
RemoteChain: () => RemoteChain,
|
|
140
140
|
UnifyAdapter: () => UnifyAdapter,
|
|
141
141
|
UnknownErrorResponse: () => UnknownErrorResponse,
|
|
142
|
-
addCustomHeaderPlugin: () => addCustomHeaderPlugin,
|
|
143
142
|
buildSchema: () => buildSchema,
|
|
144
143
|
config: () => config,
|
|
145
144
|
copilotKitEndpoint: () => copilotKitEndpoint,
|
|
@@ -5800,13 +5799,7 @@ StateResolver = _ts_decorate22([
|
|
|
5800
5799
|
], StateResolver);
|
|
5801
5800
|
|
|
5802
5801
|
// src/lib/integrations/shared.ts
|
|
5803
|
-
var packageJson2 = __toESM(require_package());
|
|
5804
5802
|
var logger = createLogger();
|
|
5805
|
-
var addCustomHeaderPlugin = {
|
|
5806
|
-
onResponse({ response }) {
|
|
5807
|
-
response.headers.set("X-CopilotKit-Runtime-Version", packageJson2.version);
|
|
5808
|
-
}
|
|
5809
|
-
};
|
|
5810
5803
|
async function createContext(initialContext, copilotKitContext, contextLogger, properties = {}) {
|
|
5811
5804
|
logger.debug({
|
|
5812
5805
|
copilotKitContext
|
|
@@ -5872,8 +5865,7 @@ function getCommonConfig(options) {
|
|
|
5872
5865
|
}),
|
|
5873
5866
|
schema: buildSchema(),
|
|
5874
5867
|
plugins: [
|
|
5875
|
-
(0, import_plugin_defer_stream.useDeferStream)()
|
|
5876
|
-
addCustomHeaderPlugin
|
|
5868
|
+
(0, import_plugin_defer_stream.useDeferStream)()
|
|
5877
5869
|
],
|
|
5878
5870
|
context: (ctx) => createContext(ctx, options, contextLogger, options.properties)
|
|
5879
5871
|
};
|
|
@@ -6011,7 +6003,6 @@ __name(copilotRuntimeNestEndpoint, "copilotRuntimeNestEndpoint");
|
|
|
6011
6003
|
RemoteChain,
|
|
6012
6004
|
UnifyAdapter,
|
|
6013
6005
|
UnknownErrorResponse,
|
|
6014
|
-
addCustomHeaderPlugin,
|
|
6015
6006
|
buildSchema,
|
|
6016
6007
|
config,
|
|
6017
6008
|
copilotKitEndpoint,
|