@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/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__name
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FHD4JECV.mjs";
|
|
4
4
|
|
|
5
5
|
// src/graphql/types/base/index.ts
|
|
6
6
|
import { Field, InputType } from "type-graphql";
|
|
@@ -40,4 +40,4 @@ BaseMessageInput = _ts_decorate([
|
|
|
40
40
|
export {
|
|
41
41
|
BaseMessageInput
|
|
42
42
|
};
|
|
43
|
-
//# sourceMappingURL=chunk-
|
|
43
|
+
//# sourceMappingURL=chunk-2OZAGFV3.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__name
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FHD4JECV.mjs";
|
|
4
4
|
|
|
5
5
|
// src/graphql/types/response-status.type.ts
|
|
6
6
|
import { GraphQLJSON } from "graphql-scalars";
|
|
@@ -149,4 +149,4 @@ export {
|
|
|
149
149
|
MessageStreamInterruptedResponse,
|
|
150
150
|
UnknownErrorResponse
|
|
151
151
|
};
|
|
152
|
-
//# sourceMappingURL=chunk-
|
|
152
|
+
//# sourceMappingURL=chunk-5BIEM2UU.mjs.map
|
|
@@ -2,27 +2,28 @@ import {
|
|
|
2
2
|
EmptyAdapter,
|
|
3
3
|
RemoteChain,
|
|
4
4
|
streamLangChainResponse
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OS5YD32G.mjs";
|
|
6
6
|
import {
|
|
7
7
|
GuardrailsValidationFailureResponse,
|
|
8
8
|
MessageStreamInterruptedResponse,
|
|
9
9
|
ResponseStatusUnion,
|
|
10
10
|
SuccessResponseStatus,
|
|
11
11
|
UnknownErrorResponse
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5BIEM2UU.mjs";
|
|
13
13
|
import {
|
|
14
14
|
ActionExecutionMessage,
|
|
15
15
|
AgentStateMessage,
|
|
16
16
|
ResultMessage,
|
|
17
17
|
TextMessage
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RTFJTJMA.mjs";
|
|
19
19
|
import {
|
|
20
20
|
BaseMessageInput
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-2OZAGFV3.mjs";
|
|
22
22
|
import {
|
|
23
23
|
__commonJS,
|
|
24
|
-
__name
|
|
25
|
-
|
|
24
|
+
__name,
|
|
25
|
+
__toESM
|
|
26
|
+
} from "./chunk-FHD4JECV.mjs";
|
|
26
27
|
|
|
27
28
|
// package.json
|
|
28
29
|
var require_package = __commonJS({
|
|
@@ -38,7 +39,7 @@ var require_package = __commonJS({
|
|
|
38
39
|
publishConfig: {
|
|
39
40
|
access: "public"
|
|
40
41
|
},
|
|
41
|
-
version: "1.5.16-next.
|
|
42
|
+
version: "1.5.16-next.1",
|
|
42
43
|
sideEffects: false,
|
|
43
44
|
main: "./dist/index.js",
|
|
44
45
|
module: "./dist/index.mjs",
|
|
@@ -4065,7 +4066,13 @@ StateResolver = _ts_decorate20([
|
|
|
4065
4066
|
], StateResolver);
|
|
4066
4067
|
|
|
4067
4068
|
// src/lib/integrations/shared.ts
|
|
4069
|
+
var packageJson2 = __toESM(require_package());
|
|
4068
4070
|
var logger = createLogger();
|
|
4071
|
+
var addCustomHeaderPlugin = {
|
|
4072
|
+
onResponse({ response }) {
|
|
4073
|
+
response.headers.set("X-CopilotKit-Runtime-Version", packageJson2.version);
|
|
4074
|
+
}
|
|
4075
|
+
};
|
|
4069
4076
|
async function createContext(initialContext, copilotKitContext, contextLogger, properties = {}) {
|
|
4070
4077
|
logger.debug({
|
|
4071
4078
|
copilotKitContext
|
|
@@ -4131,7 +4138,8 @@ function getCommonConfig(options) {
|
|
|
4131
4138
|
}),
|
|
4132
4139
|
schema: buildSchema(),
|
|
4133
4140
|
plugins: [
|
|
4134
|
-
useDeferStream()
|
|
4141
|
+
useDeferStream(),
|
|
4142
|
+
addCustomHeaderPlugin
|
|
4135
4143
|
],
|
|
4136
4144
|
context: (ctx) => createContext(ctx, options, contextLogger, options.properties)
|
|
4137
4145
|
};
|
|
@@ -4171,9 +4179,10 @@ export {
|
|
|
4171
4179
|
copilotKitEndpoint,
|
|
4172
4180
|
langGraphPlatformEndpoint,
|
|
4173
4181
|
resolveEndpointType,
|
|
4182
|
+
addCustomHeaderPlugin,
|
|
4174
4183
|
createContext,
|
|
4175
4184
|
buildSchema,
|
|
4176
4185
|
getCommonConfig,
|
|
4177
4186
|
copilotRuntimeNodeHttpEndpoint
|
|
4178
4187
|
};
|
|
4179
|
-
//# sourceMappingURL=chunk-
|
|
4188
|
+
//# sourceMappingURL=chunk-DLC2JHVP.mjs.map
|