@botbotgo/agent-harness 0.0.224 → 0.0.225
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const AGENT_HARNESS_VERSION = "0.0.
|
|
1
|
+
export declare const AGENT_HARNESS_VERSION = "0.0.224";
|
package/dist/package-version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const AGENT_HARNESS_VERSION = "0.0.
|
|
1
|
+
export const AGENT_HARNESS_VERSION = "0.0.224";
|
|
@@ -659,7 +659,7 @@ async function sendPushNotification(config, task) {
|
|
|
659
659
|
"content-type": "application/json",
|
|
660
660
|
};
|
|
661
661
|
if (config.token) {
|
|
662
|
-
headers["x-a2a-
|
|
662
|
+
headers["x-a2a-notification-token"] = config.token;
|
|
663
663
|
}
|
|
664
664
|
const scheme = config.authentication?.schemes[0]?.toLowerCase();
|
|
665
665
|
if (scheme === "bearer" && config.authentication?.credentials) {
|
|
@@ -973,6 +973,10 @@ export async function serveA2aOverHttp(runtime, options = {}) {
|
|
|
973
973
|
return;
|
|
974
974
|
}
|
|
975
975
|
if (payload.method === "SubscribeToTask") {
|
|
976
|
+
if (isTerminalTaskState(task.status.state)) {
|
|
977
|
+
writeJson(response, 200, toError(payload.id ?? null, -32004, "SubscribeToTask is not supported for tasks in terminal state."));
|
|
978
|
+
return;
|
|
979
|
+
}
|
|
976
980
|
if (!acceptsSse(request)) {
|
|
977
981
|
writeJson(response, 406, toError(payload.id ?? null, -32004, "A2A streaming subscriptions require `Accept: text/event-stream`."));
|
|
978
982
|
return;
|