@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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copilotRuntimeNodeHttpEndpoint
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
8
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-DLC2JHVP.mjs";
|
|
4
|
+
import "../../../chunk-OS5YD32G.mjs";
|
|
5
|
+
import "../../../chunk-5BIEM2UU.mjs";
|
|
6
|
+
import "../../../chunk-RTFJTJMA.mjs";
|
|
7
|
+
import "../../../chunk-2OZAGFV3.mjs";
|
|
8
|
+
import "../../../chunk-FHD4JECV.mjs";
|
|
9
9
|
export {
|
|
10
10
|
copilotRuntimeNodeHttpEndpoint
|
|
11
11
|
};
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
OpenAIAssistantAdapter,
|
|
11
11
|
RemoteChain,
|
|
12
12
|
UnifyAdapter
|
|
13
|
-
} from "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
} from "../chunk-OS5YD32G.mjs";
|
|
14
|
+
import "../chunk-FHD4JECV.mjs";
|
|
15
15
|
export {
|
|
16
16
|
AnthropicAdapter,
|
|
17
17
|
EmptyAdapter,
|
package/dist/utils/index.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
GuardrailsValidationFailureResponse,
|
|
3
3
|
MessageStreamInterruptedResponse,
|
|
4
4
|
UnknownErrorResponse
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-5BIEM2UU.mjs";
|
|
6
|
+
import "../chunk-FHD4JECV.mjs";
|
|
7
7
|
export {
|
|
8
8
|
GuardrailsValidationFailureResponse,
|
|
9
9
|
MessageStreamInterruptedResponse,
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
|
-
"version": "1.5.16-next.
|
|
12
|
+
"version": "1.5.16-next.1",
|
|
13
13
|
"sideEffects": false,
|
|
14
14
|
"main": "./dist/index.js",
|
|
15
15
|
"module": "./dist/index.mjs",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"rxjs": "^7.8.1",
|
|
59
59
|
"type-graphql": "2.0.0-rc.1",
|
|
60
60
|
"zod": "^3.23.3",
|
|
61
|
-
"@copilotkit/shared": "1.5.16-next.
|
|
61
|
+
"@copilotkit/shared": "1.5.16-next.1"
|
|
62
62
|
},
|
|
63
63
|
"keywords": [
|
|
64
64
|
"copilotkit",
|
|
@@ -9,9 +9,17 @@ import { LogLevel, createLogger } from "../../lib/logger";
|
|
|
9
9
|
import { createYoga } from "graphql-yoga";
|
|
10
10
|
import telemetry from "../telemetry-client";
|
|
11
11
|
import { StateResolver } from "../../graphql/resolvers/state.resolver";
|
|
12
|
+
import * as packageJson from "../../../package.json";
|
|
12
13
|
|
|
13
14
|
const logger = createLogger();
|
|
14
15
|
|
|
16
|
+
export const addCustomHeaderPlugin = {
|
|
17
|
+
onResponse({ response }) {
|
|
18
|
+
// Set your custom header; adjust the header name and value as needed
|
|
19
|
+
response.headers.set("X-CopilotKit-Runtime-Version", packageJson.version);
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
|
|
15
23
|
type AnyPrimitive = string | boolean | number | null;
|
|
16
24
|
export type CopilotRequestContextProperties = Record<
|
|
17
25
|
string,
|
|
@@ -103,7 +111,7 @@ export function getCommonConfig(options: CreateCopilotRuntimeServerOptions): Com
|
|
|
103
111
|
return {
|
|
104
112
|
logging: createLogger({ component: "Yoga GraphQL", level: logLevel }),
|
|
105
113
|
schema: buildSchema(),
|
|
106
|
-
plugins: [useDeferStream()],
|
|
114
|
+
plugins: [useDeferStream(), addCustomHeaderPlugin],
|
|
107
115
|
context: (ctx: YogaInitialContext): Promise<Partial<GraphQLContext>> =>
|
|
108
116
|
createContext(ctx, options, contextLogger, options.properties),
|
|
109
117
|
};
|
package/tsconfig.json
CHANGED
package/dist/chunk-44O2JGUY.mjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
4
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
5
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
__name,
|
|
10
|
-
__commonJS
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=chunk-44O2JGUY.mjs.map
|