@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.223";
1
+ export declare const AGENT_HARNESS_VERSION = "0.0.224";
@@ -1 +1 @@
1
- export const AGENT_HARNESS_VERSION = "0.0.223";
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-push-token"] = config.token;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botbotgo/agent-harness",
3
- "version": "0.0.224",
3
+ "version": "0.0.225",
4
4
  "description": "Workspace runtime for multi-agent applications",
5
5
  "license": "MIT",
6
6
  "type": "module",