@copilotkit/runtime 1.5.17 → 1.5.18-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 +8 -0
- package/dist/{chunk-CPZLKCKJ.mjs → chunk-26Q5XHVQ.mjs} +3 -3
- package/dist/{chunk-D2WLFQS6.mjs → chunk-2OZAGFV3.mjs} +2 -2
- package/dist/{chunk-U3V2BCGI.mjs → chunk-5BIEM2UU.mjs} +2 -2
- package/dist/{chunk-SPBICTJF.mjs → chunk-EQFWYZKN.mjs} +3 -3
- package/dist/chunk-FHD4JECV.mjs +33 -0
- package/dist/{chunk-HEPCIATE.mjs → chunk-ODCQ3OFD.mjs} +18 -9
- package/dist/chunk-ODCQ3OFD.mjs.map +1 -0
- package/dist/{chunk-S3KKBII4.mjs → chunk-OS5YD32G.mjs} +2 -2
- package/dist/{chunk-UHSPX2BM.mjs → chunk-QGFYSFTM.mjs} +3 -3
- package/dist/{chunk-HNUNXFTW.mjs → chunk-RTFJTJMA.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-HEPCIATE.mjs.map +0 -1
- /package/dist/{chunk-CPZLKCKJ.mjs.map → chunk-26Q5XHVQ.mjs.map} +0 -0
- /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-SPBICTJF.mjs.map → chunk-EQFWYZKN.mjs.map} +0 -0
- /package/dist/{chunk-44O2JGUY.mjs.map → chunk-FHD4JECV.mjs.map} +0 -0
- /package/dist/{chunk-S3KKBII4.mjs.map → chunk-OS5YD32G.mjs.map} +0 -0
- /package/dist/{chunk-UHSPX2BM.mjs.map → chunk-QGFYSFTM.mjs.map} +0 -0
- /package/dist/{chunk-HNUNXFTW.mjs.map → chunk-RTFJTJMA.mjs.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
copilotRuntimeNodeHttpEndpoint,
|
|
3
3
|
getRuntimeInstanceTelemetryInfo,
|
|
4
4
|
telemetry_client_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ODCQ3OFD.mjs";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FHD4JECV.mjs";
|
|
9
9
|
|
|
10
10
|
// src/lib/integrations/nest/index.ts
|
|
11
11
|
function copilotRuntimeNestEndpoint(options) {
|
|
@@ -22,4 +22,4 @@ __name(copilotRuntimeNestEndpoint, "copilotRuntimeNestEndpoint");
|
|
|
22
22
|
export {
|
|
23
23
|
copilotRuntimeNestEndpoint
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-26Q5XHVQ.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/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,10 +2,10 @@ import {
|
|
|
2
2
|
copilotRuntimeNodeHttpEndpoint,
|
|
3
3
|
getRuntimeInstanceTelemetryInfo,
|
|
4
4
|
telemetry_client_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ODCQ3OFD.mjs";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FHD4JECV.mjs";
|
|
9
9
|
|
|
10
10
|
// src/lib/integrations/node-express/index.ts
|
|
11
11
|
function copilotRuntimeNodeExpressEndpoint(options) {
|
|
@@ -22,4 +22,4 @@ __name(copilotRuntimeNodeExpressEndpoint, "copilotRuntimeNodeExpressEndpoint");
|
|
|
22
22
|
export {
|
|
23
23
|
copilotRuntimeNodeExpressEndpoint
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-EQFWYZKN.mjs.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
|
|
28
|
+
export {
|
|
29
|
+
__name,
|
|
30
|
+
__commonJS,
|
|
31
|
+
__toESM
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=chunk-FHD4JECV.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.
|
|
42
|
+
version: "1.5.18-next.0",
|
|
42
43
|
sideEffects: false,
|
|
43
44
|
main: "./dist/index.js",
|
|
44
45
|
module: "./dist/index.mjs",
|
|
@@ -4073,7 +4074,13 @@ StateResolver = _ts_decorate20([
|
|
|
4073
4074
|
], StateResolver);
|
|
4074
4075
|
|
|
4075
4076
|
// src/lib/integrations/shared.ts
|
|
4077
|
+
var packageJson2 = __toESM(require_package());
|
|
4076
4078
|
var logger = createLogger();
|
|
4079
|
+
var addCustomHeaderPlugin = {
|
|
4080
|
+
onResponse({ response }) {
|
|
4081
|
+
response.headers.set("X-CopilotKit-Runtime-Version", packageJson2.version);
|
|
4082
|
+
}
|
|
4083
|
+
};
|
|
4077
4084
|
async function createContext(initialContext, copilotKitContext, contextLogger, properties = {}) {
|
|
4078
4085
|
logger.debug({
|
|
4079
4086
|
copilotKitContext
|
|
@@ -4139,7 +4146,8 @@ function getCommonConfig(options) {
|
|
|
4139
4146
|
}),
|
|
4140
4147
|
schema: buildSchema(),
|
|
4141
4148
|
plugins: [
|
|
4142
|
-
useDeferStream()
|
|
4149
|
+
useDeferStream(),
|
|
4150
|
+
addCustomHeaderPlugin
|
|
4143
4151
|
],
|
|
4144
4152
|
context: (ctx) => createContext(ctx, options, contextLogger, options.properties)
|
|
4145
4153
|
};
|
|
@@ -4179,9 +4187,10 @@ export {
|
|
|
4179
4187
|
copilotKitEndpoint,
|
|
4180
4188
|
langGraphPlatformEndpoint,
|
|
4181
4189
|
resolveEndpointType,
|
|
4190
|
+
addCustomHeaderPlugin,
|
|
4182
4191
|
createContext,
|
|
4183
4192
|
buildSchema,
|
|
4184
4193
|
getCommonConfig,
|
|
4185
4194
|
copilotRuntimeNodeHttpEndpoint
|
|
4186
4195
|
};
|
|
4187
|
-
//# sourceMappingURL=chunk-
|
|
4196
|
+
//# sourceMappingURL=chunk-ODCQ3OFD.mjs.map
|