@copilotkit/runtime 1.51.3-next.5 → 1.51.3-next.7
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 +17 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
- package/src/lib/runtime/copilot-runtime.ts +6 -2
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
|
-
"version": "1.51.3-next.
|
|
12
|
+
"version": "1.51.3-next.7",
|
|
13
13
|
"sideEffects": false,
|
|
14
14
|
"main": "./dist/index.js",
|
|
15
15
|
"module": "./dist/index.mjs",
|
|
@@ -70,9 +70,9 @@
|
|
|
70
70
|
"rxjs": "7.8.1",
|
|
71
71
|
"type-graphql": "2.0.0-rc.1",
|
|
72
72
|
"zod": "^3.23.3",
|
|
73
|
-
"@copilotkit/shared": "1.51.3-next.
|
|
74
|
-
"@copilotkitnext/agent": "1.51.3-next.
|
|
75
|
-
"@copilotkitnext/runtime": "1.51.3-next.
|
|
73
|
+
"@copilotkit/shared": "1.51.3-next.7",
|
|
74
|
+
"@copilotkitnext/agent": "1.51.3-next.7",
|
|
75
|
+
"@copilotkitnext/runtime": "1.51.3-next.7"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"@anthropic-ai/sdk": "^0.57.0",
|
|
@@ -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.3-next.
|
|
89
|
-
"@copilotkitnext/agent": "1.51.3-next.
|
|
90
|
-
"@copilotkitnext/runtime": "1.51.3-next.
|
|
88
|
+
"@copilotkit/shared": "1.51.3-next.7",
|
|
89
|
+
"@copilotkitnext/agent": "1.51.3-next.7",
|
|
90
|
+
"@copilotkitnext/runtime": "1.51.3-next.7"
|
|
91
91
|
},
|
|
92
92
|
"peerDependenciesMeta": {
|
|
93
93
|
"@anthropic-ai/sdk": {
|
|
@@ -456,7 +456,8 @@ export class CopilotRuntime<const T extends Parameter[] | [] = []> {
|
|
|
456
456
|
// Capture telemetry for copilot request creation
|
|
457
457
|
const publicApiKey = request.headers.get("x-copilotcloud-public-api-key");
|
|
458
458
|
const body = (await readBody(request)) as RunAgentInput;
|
|
459
|
-
|
|
459
|
+
|
|
460
|
+
const forwardedProps = body?.forwardedProps as
|
|
460
461
|
| {
|
|
461
462
|
cloud?: { guardrails?: unknown };
|
|
462
463
|
metadata?: { requestType?: string };
|
|
@@ -474,6 +475,9 @@ export class CopilotRuntime<const T extends Parameter[] | [] = []> {
|
|
|
474
475
|
"cloud.base_url": cloudBaseUrl,
|
|
475
476
|
});
|
|
476
477
|
|
|
478
|
+
// We do not process middleware for the internal GET requests
|
|
479
|
+
if (request.method === "GET" || !body) return;
|
|
480
|
+
|
|
477
481
|
// TODO: get public api key and run with expected data
|
|
478
482
|
// if (this.observability?.enabled && this.params.publicApiKey) {
|
|
479
483
|
// this.logObservabilityBeforeRequest()
|
|
@@ -506,7 +510,7 @@ export class CopilotRuntime<const T extends Parameter[] | [] = []> {
|
|
|
506
510
|
}
|
|
507
511
|
|
|
508
512
|
return middlewareResult;
|
|
509
|
-
}
|
|
513
|
+
};;
|
|
510
514
|
}
|
|
511
515
|
|
|
512
516
|
private createOnAfterRequestHandler(
|