@copilotkit/runtime 1.51.0-next.4 → 1.51.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 +16 -0
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
- package/src/lib/runtime/copilot-runtime.ts +3 -1
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
|
-
"version": "1.51.0
|
|
12
|
+
"version": "1.51.0",
|
|
13
13
|
"sideEffects": false,
|
|
14
14
|
"main": "./dist/index.js",
|
|
15
15
|
"module": "./dist/index.mjs",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"tsup": "^6.7.0",
|
|
47
47
|
"typescript": "^5.2.3",
|
|
48
48
|
"vitest": "^3.2.4",
|
|
49
|
-
"@copilotkit/shared": "1.51.0
|
|
50
|
-
"@copilotkitnext/agent": "1.51.0
|
|
51
|
-
"@copilotkitnext/runtime": "1.51.0
|
|
49
|
+
"@copilotkit/shared": "1.51.0",
|
|
50
|
+
"@copilotkitnext/agent": "1.51.0",
|
|
51
|
+
"@copilotkitnext/runtime": "1.51.0",
|
|
52
52
|
"eslint-config-custom": "1.4.6",
|
|
53
53
|
"tsconfig": "1.4.6"
|
|
54
54
|
},
|
|
@@ -85,9 +85,9 @@
|
|
|
85
85
|
"groq-sdk": ">=0.3.0 <1.0.0",
|
|
86
86
|
"langchain": ">=0.3.3",
|
|
87
87
|
"openai": "^4.85.1",
|
|
88
|
-
"@copilotkit/shared": "1.51.0
|
|
89
|
-
"@copilotkitnext/agent": "1.51.0
|
|
90
|
-
"@copilotkitnext/runtime": "1.51.0
|
|
88
|
+
"@copilotkit/shared": "1.51.0",
|
|
89
|
+
"@copilotkitnext/agent": "1.51.0",
|
|
90
|
+
"@copilotkitnext/runtime": "1.51.0"
|
|
91
91
|
},
|
|
92
92
|
"peerDependenciesMeta": {
|
|
93
93
|
"@anthropic-ai/sdk": {
|
|
@@ -480,7 +480,7 @@ export class CopilotRuntime<const T extends Parameter[] | [] = []> {
|
|
|
480
480
|
// }
|
|
481
481
|
|
|
482
482
|
// TODO: replace hooksParams top argument type with BeforeRequestMiddlewareParameters when exported
|
|
483
|
-
params?.beforeRequestMiddleware?.(hookParams);
|
|
483
|
+
const middlewareResult = await params?.beforeRequestMiddleware?.(hookParams);
|
|
484
484
|
|
|
485
485
|
if (params?.middleware?.onBeforeRequest) {
|
|
486
486
|
const { request, runtime, path } = hookParams;
|
|
@@ -504,6 +504,8 @@ export class CopilotRuntime<const T extends Parameter[] | [] = []> {
|
|
|
504
504
|
url: request.url,
|
|
505
505
|
} satisfies OnBeforeRequestOptions);
|
|
506
506
|
}
|
|
507
|
+
|
|
508
|
+
return middlewareResult;
|
|
507
509
|
};
|
|
508
510
|
}
|
|
509
511
|
|