@copilotkit/runtime 1.5.16-next.0 → 1.5.16-next.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 +8 -0
- package/dist/{chunk-D2WLFQS6.mjs → chunk-2OZAGFV3.mjs} +2 -2
- package/dist/{chunk-U3V2BCGI.mjs → chunk-5BIEM2UU.mjs} +2 -2
- package/dist/{chunk-P5J3JGOI.mjs → chunk-DLC2JHVP.mjs} +18 -9
- package/dist/chunk-DLC2JHVP.mjs.map +1 -0
- package/dist/chunk-FHD4JECV.mjs +33 -0
- package/dist/{chunk-PIUZJXE7.mjs → chunk-M7UBXBRI.mjs} +3 -3
- package/dist/{chunk-S3KKBII4.mjs → chunk-OS5YD32G.mjs} +2 -2
- package/dist/{chunk-COJRNPCX.mjs → chunk-PPSNRM2D.mjs} +3 -3
- package/dist/{chunk-HNUNXFTW.mjs → chunk-RTFJTJMA.mjs} +3 -3
- package/dist/{chunk-4TED7LNT.mjs → chunk-X4UE3Q5F.mjs} +3 -3
- package/dist/{copilot-runtime-3e7f1c7b.d.ts → copilot-runtime-084fb9c7.d.ts} +6 -1
- 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 +11 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -9
- package/dist/index.mjs.map +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +11 -2
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +11 -9
- package/dist/lib/integrations/index.d.ts +2 -2
- package/dist/lib/integrations/index.js +11 -2
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +11 -9
- package/dist/lib/integrations/nest/index.d.ts +1 -1
- package/dist/lib/integrations/nest/index.js +9 -2
- 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 +9 -2
- 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 +9 -2
- 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 +9 -1
- package/tsconfig.json +1 -0
- package/dist/chunk-44O2JGUY.mjs +0 -12
- package/dist/chunk-P5J3JGOI.mjs.map +0 -1
- /package/dist/{chunk-D2WLFQS6.mjs.map → chunk-2OZAGFV3.mjs.map} +0 -0
- /package/dist/{chunk-U3V2BCGI.mjs.map → chunk-5BIEM2UU.mjs.map} +0 -0
- /package/dist/{chunk-44O2JGUY.mjs.map → chunk-FHD4JECV.mjs.map} +0 -0
- /package/dist/{chunk-PIUZJXE7.mjs.map → chunk-M7UBXBRI.mjs.map} +0 -0
- /package/dist/{chunk-S3KKBII4.mjs.map → chunk-OS5YD32G.mjs.map} +0 -0
- /package/dist/{chunk-COJRNPCX.mjs.map → chunk-PPSNRM2D.mjs.map} +0 -0
- /package/dist/{chunk-HNUNXFTW.mjs.map → chunk-RTFJTJMA.mjs.map} +0 -0
- /package/dist/{chunk-4TED7LNT.mjs.map → chunk-X4UE3Q5F.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -3,15 +3,16 @@ import {
|
|
|
3
3
|
config,
|
|
4
4
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
5
5
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-M7UBXBRI.mjs";
|
|
7
7
|
import {
|
|
8
8
|
copilotRuntimeNestEndpoint
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-X4UE3Q5F.mjs";
|
|
10
10
|
import {
|
|
11
11
|
copilotRuntimeNodeExpressEndpoint
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PPSNRM2D.mjs";
|
|
13
13
|
import {
|
|
14
14
|
CopilotRuntime,
|
|
15
|
+
addCustomHeaderPlugin,
|
|
15
16
|
buildSchema,
|
|
16
17
|
copilotKitEndpoint,
|
|
17
18
|
copilotRuntimeNodeHttpEndpoint,
|
|
@@ -20,7 +21,7 @@ import {
|
|
|
20
21
|
getCommonConfig,
|
|
21
22
|
langGraphPlatformEndpoint,
|
|
22
23
|
resolveEndpointType
|
|
23
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-DLC2JHVP.mjs";
|
|
24
25
|
import {
|
|
25
26
|
AnthropicAdapter,
|
|
26
27
|
EmptyAdapter,
|
|
@@ -33,15 +34,15 @@ import {
|
|
|
33
34
|
OpenAIAssistantAdapter,
|
|
34
35
|
RemoteChain,
|
|
35
36
|
UnifyAdapter
|
|
36
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-OS5YD32G.mjs";
|
|
37
38
|
import {
|
|
38
39
|
GuardrailsValidationFailureResponse,
|
|
39
40
|
MessageStreamInterruptedResponse,
|
|
40
41
|
UnknownErrorResponse
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-5BIEM2UU.mjs";
|
|
43
|
+
import "./chunk-RTFJTJMA.mjs";
|
|
44
|
+
import "./chunk-2OZAGFV3.mjs";
|
|
45
|
+
import "./chunk-FHD4JECV.mjs";
|
|
45
46
|
|
|
46
47
|
// src/index.ts
|
|
47
48
|
import "reflect-metadata";
|
|
@@ -61,6 +62,7 @@ export {
|
|
|
61
62
|
RemoteChain,
|
|
62
63
|
UnifyAdapter,
|
|
63
64
|
UnknownErrorResponse,
|
|
65
|
+
addCustomHeaderPlugin,
|
|
64
66
|
buildSchema,
|
|
65
67
|
config,
|
|
66
68
|
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 { i as CommonConfig, d as CopilotRequestContextProperties, a as CopilotRuntime, C as CopilotRuntimeConstructorParams, e as CreateCopilotRuntimeServerOptions, G as GraphQLContext, b as addCustomHeaderPlugin, h as buildSchema, c as copilotKitEndpoint, g as createContext, f as flattenToolCallsNoDuplicates, j as getCommonConfig, l as langGraphPlatformEndpoint, r as resolveEndpointType } from '../copilot-runtime-084fb9c7.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.16-next.
|
|
47
|
+
version: "1.5.16-next.1",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -131,6 +131,7 @@ __export(lib_exports, {
|
|
|
131
131
|
OpenAIAdapter: () => OpenAIAdapter,
|
|
132
132
|
OpenAIAssistantAdapter: () => OpenAIAssistantAdapter,
|
|
133
133
|
UnifyAdapter: () => UnifyAdapter,
|
|
134
|
+
addCustomHeaderPlugin: () => addCustomHeaderPlugin,
|
|
134
135
|
buildSchema: () => buildSchema,
|
|
135
136
|
config: () => config,
|
|
136
137
|
copilotKitEndpoint: () => copilotKitEndpoint,
|
|
@@ -5455,7 +5456,13 @@ StateResolver = _ts_decorate22([
|
|
|
5455
5456
|
], StateResolver);
|
|
5456
5457
|
|
|
5457
5458
|
// src/lib/integrations/shared.ts
|
|
5459
|
+
var packageJson2 = __toESM(require_package());
|
|
5458
5460
|
var logger = createLogger();
|
|
5461
|
+
var addCustomHeaderPlugin = {
|
|
5462
|
+
onResponse({ response }) {
|
|
5463
|
+
response.headers.set("X-CopilotKit-Runtime-Version", packageJson2.version);
|
|
5464
|
+
}
|
|
5465
|
+
};
|
|
5459
5466
|
async function createContext(initialContext, copilotKitContext, contextLogger, properties = {}) {
|
|
5460
5467
|
logger.debug({
|
|
5461
5468
|
copilotKitContext
|
|
@@ -5521,7 +5528,8 @@ function getCommonConfig(options) {
|
|
|
5521
5528
|
}),
|
|
5522
5529
|
schema: buildSchema(),
|
|
5523
5530
|
plugins: [
|
|
5524
|
-
(0, import_plugin_defer_stream.useDeferStream)()
|
|
5531
|
+
(0, import_plugin_defer_stream.useDeferStream)(),
|
|
5532
|
+
addCustomHeaderPlugin
|
|
5525
5533
|
],
|
|
5526
5534
|
context: (ctx) => createContext(ctx, options, contextLogger, options.properties)
|
|
5527
5535
|
};
|
|
@@ -5651,6 +5659,7 @@ __name(copilotRuntimeNestEndpoint, "copilotRuntimeNestEndpoint");
|
|
|
5651
5659
|
OpenAIAdapter,
|
|
5652
5660
|
OpenAIAssistantAdapter,
|
|
5653
5661
|
UnifyAdapter,
|
|
5662
|
+
addCustomHeaderPlugin,
|
|
5654
5663
|
buildSchema,
|
|
5655
5664
|
config,
|
|
5656
5665
|
copilotKitEndpoint,
|