agent-relay-runner 0.10.20 → 0.10.21

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.10.20",
3
+ "version": "0.10.21",
4
4
  "description": "Unified provider lifecycle runner for Agent Relay",
5
5
  "type": "module",
6
6
  "bin": {
@@ -20,7 +20,7 @@
20
20
  "directory": "runner"
21
21
  },
22
22
  "dependencies": {
23
- "agent-relay-sdk": "0.2.1"
23
+ "agent-relay-sdk": "0.2.2"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/bun": "latest",
@@ -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.10.20",
4
+ "version": "0.10.21",
5
5
  "agentRelayContracts": {
6
6
  "providerPluginProtocol": 1
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import { existsSync, mkdirSync, readFileSync, symlinkSync, writeFileSync } from "node:fs";
2
2
  import { homedir } from "node:os";
3
3
  import { join, resolve } from "node:path";
4
- import type { RunnerSpawnConfig } from "./adapter";
4
+ import { profileAllowsRelayFeature, type RunnerSpawnConfig } from "./adapter";
5
5
  import { CLAUDE_RELAY_MANUAL } from "./relay-instructions";
6
6
 
7
7
  type ProviderHome = {
@@ -31,7 +31,10 @@ export function prepareClaudeProfileHome(config: RunnerSpawnConfig): ProviderHom
31
31
  if (!profileRequiresIsolatedHome(config)) return undefined;
32
32
  const target = providerHomePath("claude", config);
33
33
  mkdirSync(target, { recursive: true });
34
- writeClaudeRelayManual(target);
34
+ // Only inject the Relay usage manual when the profile actually wants a Relay
35
+ // surface. An isolated-research profile (relay.context disabled) must not get
36
+ // agent-relay communication instructions written into its config home.
37
+ if (profileAllowsRelayFeature(config, "context")) writeClaudeRelayManual(target);
35
38
  const sourceHome = process.env.CLAUDE_CONFIG_DIR || join(homedir(), ".claude");
36
39
  const authLinked = linkExistingAuthItems(sourceHome, target, [".credentials.json", "statsig"]);
37
40
  return { path: target, authLinked };