@copilotkit/runtime 1.5.16 → 1.5.17
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 +22 -0
- package/dist/chunk-44O2JGUY.mjs +12 -0
- package/dist/{chunk-N6X67FPO.mjs → chunk-CPZLKCKJ.mjs} +3 -3
- package/dist/{chunk-2OZAGFV3.mjs → chunk-D2WLFQS6.mjs} +2 -2
- package/dist/{chunk-HHBTKTJ5.mjs → chunk-HEPCIATE.mjs} +9 -18
- package/dist/chunk-HEPCIATE.mjs.map +1 -0
- package/dist/{chunk-RTFJTJMA.mjs → chunk-HNUNXFTW.mjs} +3 -3
- package/dist/{chunk-OS5YD32G.mjs → chunk-S3KKBII4.mjs} +2 -2
- package/dist/{chunk-FHRPZT3X.mjs → chunk-SPBICTJF.mjs} +3 -3
- package/dist/{chunk-5BIEM2UU.mjs → chunk-U3V2BCGI.mjs} +2 -2
- package/dist/{chunk-TWUMUUCQ.mjs → chunk-UHSPX2BM.mjs} +3 -3
- 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-N6X67FPO.mjs.map → chunk-CPZLKCKJ.mjs.map} +0 -0
- /package/dist/{chunk-2OZAGFV3.mjs.map → chunk-D2WLFQS6.mjs.map} +0 -0
- /package/dist/{chunk-RTFJTJMA.mjs.map → chunk-HNUNXFTW.mjs.map} +0 -0
- /package/dist/{chunk-OS5YD32G.mjs.map → chunk-S3KKBII4.mjs.map} +0 -0
- /package/dist/{chunk-FHRPZT3X.mjs.map → chunk-SPBICTJF.mjs.map} +0 -0
- /package/dist/{chunk-5BIEM2UU.mjs.map → chunk-U3V2BCGI.mjs.map} +0 -0
- /package/dist/{chunk-TWUMUUCQ.mjs.map → chunk-UHSPX2BM.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -3,16 +3,15 @@ import {
|
|
|
3
3
|
config,
|
|
4
4
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
5
5
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UHSPX2BM.mjs";
|
|
7
7
|
import {
|
|
8
8
|
copilotRuntimeNestEndpoint
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CPZLKCKJ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
copilotRuntimeNodeExpressEndpoint
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SPBICTJF.mjs";
|
|
13
13
|
import {
|
|
14
14
|
CopilotRuntime,
|
|
15
|
-
addCustomHeaderPlugin,
|
|
16
15
|
buildSchema,
|
|
17
16
|
copilotKitEndpoint,
|
|
18
17
|
copilotRuntimeNodeHttpEndpoint,
|
|
@@ -21,7 +20,7 @@ import {
|
|
|
21
20
|
getCommonConfig,
|
|
22
21
|
langGraphPlatformEndpoint,
|
|
23
22
|
resolveEndpointType
|
|
24
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-HEPCIATE.mjs";
|
|
25
24
|
import {
|
|
26
25
|
AnthropicAdapter,
|
|
27
26
|
EmptyAdapter,
|
|
@@ -34,15 +33,15 @@ import {
|
|
|
34
33
|
OpenAIAssistantAdapter,
|
|
35
34
|
RemoteChain,
|
|
36
35
|
UnifyAdapter
|
|
37
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-S3KKBII4.mjs";
|
|
38
37
|
import {
|
|
39
38
|
GuardrailsValidationFailureResponse,
|
|
40
39
|
MessageStreamInterruptedResponse,
|
|
41
40
|
UnknownErrorResponse
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
41
|
+
} from "./chunk-U3V2BCGI.mjs";
|
|
42
|
+
import "./chunk-HNUNXFTW.mjs";
|
|
43
|
+
import "./chunk-D2WLFQS6.mjs";
|
|
44
|
+
import "./chunk-44O2JGUY.mjs";
|
|
46
45
|
|
|
47
46
|
// src/index.ts
|
|
48
47
|
import "reflect-metadata";
|
|
@@ -62,7 +61,6 @@ export {
|
|
|
62
61
|
RemoteChain,
|
|
63
62
|
UnifyAdapter,
|
|
64
63
|
UnknownErrorResponse,
|
|
65
|
-
addCustomHeaderPlugin,
|
|
66
64
|
buildSchema,
|
|
67
65
|
config,
|
|
68
66
|
copilotKitEndpoint,
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import \"reflect-metadata\";\nexport * from \"./lib\";\nexport * from \"./utils\";\nexport * from \"./service-adapters\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import \"reflect-metadata\";\nexport * from \"./lib\";\nexport * from \"./utils\";\nexport * from \"./service-adapters\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO;","names":[]}
|
package/dist/lib/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 './integrations/index.js';
|
|
4
4
|
export { copilotRuntimeNodeHttpEndpoint } from './integrations/node-http/index.js';
|
package/dist/lib/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",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -131,7 +131,6 @@ __export(lib_exports, {
|
|
|
131
131
|
OpenAIAdapter: () => OpenAIAdapter,
|
|
132
132
|
OpenAIAssistantAdapter: () => OpenAIAssistantAdapter,
|
|
133
133
|
UnifyAdapter: () => UnifyAdapter,
|
|
134
|
-
addCustomHeaderPlugin: () => addCustomHeaderPlugin,
|
|
135
134
|
buildSchema: () => buildSchema,
|
|
136
135
|
config: () => config,
|
|
137
136
|
copilotKitEndpoint: () => copilotKitEndpoint,
|
|
@@ -5464,13 +5463,7 @@ StateResolver = _ts_decorate22([
|
|
|
5464
5463
|
], StateResolver);
|
|
5465
5464
|
|
|
5466
5465
|
// src/lib/integrations/shared.ts
|
|
5467
|
-
var packageJson2 = __toESM(require_package());
|
|
5468
5466
|
var logger = createLogger();
|
|
5469
|
-
var addCustomHeaderPlugin = {
|
|
5470
|
-
onResponse({ response }) {
|
|
5471
|
-
response.headers.set("X-CopilotKit-Runtime-Version", packageJson2.version);
|
|
5472
|
-
}
|
|
5473
|
-
};
|
|
5474
5467
|
async function createContext(initialContext, copilotKitContext, contextLogger, properties = {}) {
|
|
5475
5468
|
logger.debug({
|
|
5476
5469
|
copilotKitContext
|
|
@@ -5536,8 +5529,7 @@ function getCommonConfig(options) {
|
|
|
5536
5529
|
}),
|
|
5537
5530
|
schema: buildSchema(),
|
|
5538
5531
|
plugins: [
|
|
5539
|
-
(0, import_plugin_defer_stream.useDeferStream)()
|
|
5540
|
-
addCustomHeaderPlugin
|
|
5532
|
+
(0, import_plugin_defer_stream.useDeferStream)()
|
|
5541
5533
|
],
|
|
5542
5534
|
context: (ctx) => createContext(ctx, options, contextLogger, options.properties)
|
|
5543
5535
|
};
|
|
@@ -5667,7 +5659,6 @@ __name(copilotRuntimeNestEndpoint, "copilotRuntimeNestEndpoint");
|
|
|
5667
5659
|
OpenAIAdapter,
|
|
5668
5660
|
OpenAIAssistantAdapter,
|
|
5669
5661
|
UnifyAdapter,
|
|
5670
|
-
addCustomHeaderPlugin,
|
|
5671
5662
|
buildSchema,
|
|
5672
5663
|
config,
|
|
5673
5664
|
copilotKitEndpoint,
|