agent-relay 3.2.11 → 3.2.13

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.2.11",
3
+ "version": "3.2.13",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -102,7 +102,7 @@
102
102
  "typescript": "^5.7.3"
103
103
  },
104
104
  "dependencies": {
105
- "@agent-relay/config": "3.2.11",
105
+ "@agent-relay/config": "3.2.13",
106
106
  "@relaycast/sdk": "^1.0.0",
107
107
  "@sinclair/typebox": "^0.34.48",
108
108
  "chalk": "^4.1.2",
@@ -995,10 +995,10 @@ agents:
995
995
  expect(args).toEqual(['-p', 'Analyze']);
996
996
  });
997
997
 
998
- it('should build opencode command with --prompt flag', () => {
998
+ it('should build opencode command with run subcommand', () => {
999
999
  const { cmd, args } = WorkflowRunner.buildNonInteractiveCommand('opencode', 'Fix bug');
1000
1000
  expect(cmd).toBe('opencode');
1001
- expect(args).toEqual(['--prompt', 'Fix bug']);
1001
+ expect(args).toEqual(['run', 'Fix bug']);
1002
1002
  });
1003
1003
 
1004
1004
  it('should build droid command with exec subcommand', () => {
@@ -26,6 +26,8 @@ export interface CliDefinition {
26
26
  bypassAliases?: string[];
27
27
  /** Extra install paths to check beyond PATH (resolved relative to $HOME) */
28
28
  searchPaths?: string[];
29
+ /** When true, non-zero exit codes are not treated as failures (some CLIs exit non-zero on success) */
30
+ ignoreExitCode?: boolean;
29
31
  }
30
32
 
31
33
  // ── Well-known install paths ───────────────────────────────────────────────
@@ -75,8 +77,9 @@ const CLI_REGISTRY: Record<AgentCli, CliDefinition> = {
75
77
  },
76
78
  opencode: {
77
79
  binaries: ['opencode'],
78
- nonInteractiveArgs: (task, extra = []) => ['--prompt', task, ...extra],
80
+ nonInteractiveArgs: (task, extra = []) => ['run', task, ...extra],
79
81
  searchPaths: ['~/.opencode/bin'],
82
+ ignoreExitCode: true,
80
83
  },
81
84
  droid: {
82
85
  binaries: ['droid'],
@@ -18,7 +18,7 @@ export function createDefaultEventLogger(level: LogLevel = 'normal'): WorkflowEv
18
18
  // ── Run lifecycle ──
19
19
  case 'run:started':
20
20
  if (level !== 'quiet') {
21
- console.log(chalk.cyan(`[workflow] run ${event.runId.slice(0, 8)}...`));
21
+ console.log(chalk.cyan(`[workflow] run ${event.runId}`));
22
22
  }
23
23
  break;
24
24
 
@@ -4949,7 +4949,8 @@ export class WorkflowRunner {
4949
4949
  return;
4950
4950
  }
4951
4951
 
4952
- if (code !== 0 && code !== null) {
4952
+ const cliDef = getCliDefinition(agentDef.cli);
4953
+ if (code !== 0 && code !== null && !cliDef?.ignoreExitCode) {
4953
4954
  const stderr = stderrChunks.join('');
4954
4955
  reject(
4955
4956
  new SpawnExitError(
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "agent-relay-sdk"
7
- version = "3.2.11"
7
+ version = "3.2.13"
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.2.11",
3
+ "version": "3.2.13",
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.2.11",
3
+ "version": "3.2.13",
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.2.11"
25
+ "@agent-relay/config": "3.2.13"
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.2.11",
3
+ "version": "3.2.13",
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.2.11"
25
+ "@agent-relay/utils": "3.2.13"
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.2.11",
3
+ "version": "3.2.13",
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.2.11",
115
+ "@agent-relay/config": "3.2.13",
116
116
  "compare-versions": "^6.1.1"
117
117
  },
118
118
  "publishConfig": {