agent-relay-runner 0.109.0 → 0.111.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-relay-runner",
3
- "version": "0.109.0",
3
+ "version": "0.111.0",
4
4
  "description": "Unified provider lifecycle runner for Agent Relay",
5
5
  "type": "module",
6
6
  "bin": {
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "agent-relay-providers": "0.104.1",
24
- "agent-relay-sdk": "0.2.94",
24
+ "agent-relay-sdk": "0.2.95",
25
25
  "callmux": "0.23.0"
26
26
  },
27
27
  "devDependencies": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "agent-relay-runner",
3
3
  "description": "Thin Agent Relay runner bridge for Claude Code",
4
- "version": "0.109.0",
4
+ "version": "0.111.0",
5
5
  "agentRelayContracts": {
6
6
  "providerPluginProtocol": 1
7
7
  }
package/src/config.ts CHANGED
@@ -137,6 +137,11 @@ export function spawnRequestIdFromEnv(): string | undefined {
137
137
  return process.env.AGENT_RELAY_SPAWN_REQUEST_ID;
138
138
  }
139
139
 
140
+ export function taskIdFromEnv(): number | undefined {
141
+ const parsed = Number(process.env.AGENT_RELAY_TASK_ID);
142
+ return Number.isSafeInteger(parsed) && parsed > 0 ? parsed : undefined;
143
+ }
144
+
140
145
  export function automationIdFromEnv(): string | undefined {
141
146
  return process.env.AGENT_RELAY_AUTOMATION_ID;
142
147
  }
package/src/index.ts CHANGED
@@ -19,6 +19,7 @@ import {
19
19
  runtimeTokenJtiFromEnv,
20
20
  runtimeTokenProfileFromEnv,
21
21
  spawnRequestIdFromEnv,
22
+ taskIdFromEnv,
22
23
  tmuxSessionFromEnv,
23
24
  workspaceJsonFromEnv,
24
25
  } from "./config";
@@ -117,6 +118,7 @@ export async function main(argv = process.argv): Promise<void> {
117
118
  providerArgs: opts.providerArgs,
118
119
  policyName: policyNameFromEnv(),
119
120
  spawnRequestId: spawnRequestIdFromEnv(),
121
+ taskId: taskIdFromEnv(),
120
122
  automationId: automationIdFromEnv(),
121
123
  automationRunId: automationRunIdFromEnv(),
122
124
  lifecycle: normalizeAgentLifecycle(lifecycleFromEnv()) ?? "persistent",
@@ -96,6 +96,7 @@ interface RunnerOptions {
96
96
  providerArgs: string[];
97
97
  policyName?: string;
98
98
  spawnRequestId?: string;
99
+ taskId?: number;
99
100
  automationId?: string; automationRunId?: string;
100
101
  workspace?: WorkspaceMetadata; lifecycle?: AgentLifecycle;
101
102
  tmuxSession?: string;
@@ -380,6 +381,7 @@ export class AgentRunner {
380
381
  tmuxSocket: providerTerminalSocket(this.process) ?? null,
381
382
  policyName: options.policyName ?? null,
382
383
  spawnRequestId: options.spawnRequestId ?? null,
384
+ taskId: options.taskId ?? null,
383
385
  automationId: options.automationId ?? null,
384
386
  automationRunId: options.automationRunId ?? null,
385
387
  workspace: options.workspace ?? null,
@@ -1906,6 +1908,7 @@ export class AgentRunner {
1906
1908
  tmuxSocket: providerTerminalSocket(this.process) ?? null,
1907
1909
  policyName: this.options.policyName ?? null,
1908
1910
  spawnRequestId: this.options.spawnRequestId ?? null,
1911
+ taskId: this.options.taskId ?? null,
1909
1912
  automationId: this.options.automationId ?? null,
1910
1913
  automationRunId: this.options.automationRunId ?? null,
1911
1914
  workspace: this.options.workspace ?? null,