agent-relay 3.1.17 → 3.1.18

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-relay/sdk",
3
- "version": "3.1.17",
3
+ "version": "3.1.18",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -81,7 +81,7 @@
81
81
  "typescript": "^5.7.3"
82
82
  },
83
83
  "dependencies": {
84
- "@agent-relay/config": "3.1.17",
84
+ "@agent-relay/config": "3.1.18",
85
85
  "@relaycast/sdk": "^0.4.0",
86
86
  "yaml": "^2.7.0"
87
87
  }
@@ -84,6 +84,8 @@ export interface SendMessageInput {
84
84
  text: string;
85
85
  from?: string;
86
86
  threadId?: string;
87
+ workspaceId?: string;
88
+ workspaceAlias?: string;
87
89
  priority?: number;
88
90
  data?: Record<string, unknown>;
89
91
  }
@@ -389,6 +391,8 @@ export class AgentRelayClient {
389
391
  text: input.text,
390
392
  from: input.from,
391
393
  thread_id: input.threadId,
394
+ workspace_id: input.workspaceId,
395
+ workspace_alias: input.workspaceAlias,
392
396
  priority: input.priority,
393
397
  data: input.data,
394
398
  });
@@ -28,6 +28,8 @@ export interface AgentSpec {
28
28
  export interface RelayDelivery {
29
29
  delivery_id: string;
30
30
  event_id: string;
31
+ workspace_id?: string;
32
+ workspace_alias?: string;
31
33
  from: string;
32
34
  target: string;
33
35
  body: string;
@@ -58,6 +60,8 @@ export type SdkToBroker =
58
60
  text: string;
59
61
  from?: string;
60
62
  thread_id?: string;
63
+ workspace_id?: string;
64
+ workspace_alias?: string;
61
65
  priority?: number;
62
66
  data?: Record<string, unknown>;
63
67
  };
@@ -2550,18 +2550,26 @@ export class WorkflowRunner {
2550
2550
  resolvedTask,
2551
2551
  timeoutMs
2552
2552
  );
2553
- const ownerStartTime = Date.now();
2554
- const ownerOutput = await this.executor.executeAgentStep(
2555
- ownerStep,
2556
- supervised.owner,
2557
- supervisorTask,
2558
- timeoutMs
2559
- );
2560
- const ownerElapsed = Date.now() - ownerStartTime;
2553
+ // Guard against unhandled rejection if owner fails before specialist settles
2554
+ const specialistSettled = specialistPromise.catch(() => undefined);
2561
2555
 
2562
- this.assertOwnerCompletionMarker(step, ownerOutput, supervisorTask);
2563
- const specialistOutput = await specialistPromise;
2564
- return { specialistOutput, ownerOutput, ownerElapsed };
2556
+ try {
2557
+ const ownerStartTime = Date.now();
2558
+ const ownerOutput = await this.executor.executeAgentStep(
2559
+ ownerStep,
2560
+ supervised.owner,
2561
+ supervisorTask,
2562
+ timeoutMs
2563
+ );
2564
+ const ownerElapsed = Date.now() - ownerStartTime;
2565
+
2566
+ this.assertOwnerCompletionMarker(step, ownerOutput, supervisorTask);
2567
+ const specialistOutput = await specialistPromise;
2568
+ return { specialistOutput, ownerOutput, ownerElapsed };
2569
+ } catch (error) {
2570
+ await specialistSettled;
2571
+ throw error;
2572
+ }
2565
2573
  }
2566
2574
 
2567
2575
  let workerHandle: Agent | undefined;
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "agent-relay-sdk"
7
- version = "3.1.17"
7
+ version = "3.1.18"
8
8
  description = "Python SDK for Agent Relay workflows"
9
9
  readme = "README.md"
10
10
  license = "Apache-2.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-relay/telemetry",
3
- "version": "3.1.17",
3
+ "version": "3.1.18",
4
4
  "description": "Anonymous telemetry for Agent Relay usage analytics",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-relay/trajectory",
3
- "version": "3.1.17",
3
+ "version": "3.1.18",
4
4
  "description": "Trajectory integration utilities (trail/PDERO) for Relay",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -22,7 +22,7 @@
22
22
  "test:watch": "vitest"
23
23
  },
24
24
  "dependencies": {
25
- "@agent-relay/config": "3.1.17"
25
+ "@agent-relay/config": "3.1.18"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.19.3",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-relay/user-directory",
3
- "version": "3.1.17",
3
+ "version": "3.1.18",
4
4
  "description": "User directory service for agent-relay (per-user credential storage)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -22,7 +22,7 @@
22
22
  "test:watch": "vitest"
23
23
  },
24
24
  "dependencies": {
25
- "@agent-relay/utils": "3.1.17"
25
+ "@agent-relay/utils": "3.1.18"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.19.3",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-relay/utils",
3
- "version": "3.1.17",
3
+ "version": "3.1.18",
4
4
  "description": "Shared utilities for agent-relay: logging, name generation, command resolution, update checking",
5
5
  "type": "module",
6
6
  "main": "dist/cjs/index.js",
@@ -112,7 +112,7 @@
112
112
  "vitest": "^3.2.4"
113
113
  },
114
114
  "dependencies": {
115
- "@agent-relay/config": "3.1.17",
115
+ "@agent-relay/config": "3.1.18",
116
116
  "compare-versions": "^6.1.1"
117
117
  },
118
118
  "publishConfig": {
@@ -108,6 +108,18 @@ relay_send(to: "Lead", message: "ACK: Starting on the task.")
108
108
  | Local (same project) | `relay_send(to: "Lead", ...)` | `relay_send(to: "project:lead", ...)` |
109
109
  | Bridge (cross-project) | `relay_send(to: "frontend:Designer", ...)` | N/A |
110
110
 
111
+ ## Multi-Workspace
112
+
113
+ When connected to multiple workspaces, messages include workspace context:
114
+
115
+ ```
116
+ Relay message from Alice [my-team / abc123]: Hello!
117
+ ```
118
+
119
+ - Messages are scoped to the originating workspace
120
+ - Reply within the same workspace context shown in the message header
121
+ - Use `relay_status()` to see which workspaces are connected
122
+
111
123
  ## Checking Status
112
124
 
113
125
  ```