@rk0429/agentic-relay 0.12.2 → 0.13.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.
Files changed (2) hide show
  1. package/dist/relay.mjs +11 -28
  2. package/package.json +1 -1
package/dist/relay.mjs CHANGED
@@ -179,7 +179,7 @@ var init_recursion_guard = __esm({
179
179
  constructor(config = {
180
180
  maxDepth: 5,
181
181
  maxCallsPerSession: 50,
182
- timeoutSec: 1800
182
+ timeoutSec: 86400
183
183
  }) {
184
184
  this.config = config;
185
185
  }
@@ -667,22 +667,11 @@ ${input.prompt}`;
667
667
  maxDepth: guard.getConfig().maxDepth,
668
668
  traceId: envContext.traceId
669
669
  },
670
- ...mcpServers ? { mcpServers } : {},
671
- ...input.timeoutMs ? { timeoutMs: input.timeoutMs } : {}
670
+ ...mcpServers ? { mcpServers } : {}
672
671
  });
673
672
  }
674
673
  })();
675
- if (input.timeoutMs) {
676
- const timeoutPromise = new Promise(
677
- (_, reject) => setTimeout(
678
- () => reject(new Error(`Agent execution timed out after ${input.timeoutMs}ms`)),
679
- input.timeoutMs
680
- )
681
- );
682
- result = await Promise.race([executePromise, timeoutPromise]);
683
- } else {
684
- result = await executePromise;
685
- }
674
+ result = await executePromise;
686
675
  if (result && "_noSession" in result) {
687
676
  return {
688
677
  sessionId: session.relaySessionId,
@@ -815,7 +804,6 @@ var init_spawn_agent = __esm({
815
804
  taskType: z2.enum(["code-writing", "code-review", "document-writing", "document-review", "research", "mixed"]).optional().describe(
816
805
  "Task type hint for automatic backend selection (priority 3, after preferredBackend and agentType). Mapping: code-writing\u2192codex, code-review\u2192claude, document-writing\u2192claude, document-review\u2192codex, research\u2192codex, mixed\u2192claude."
817
806
  ),
818
- timeoutMs: z2.number().optional().describe("Timeout in milliseconds for agent execution. Default: no timeout."),
819
807
  taskInstructionPath: z2.string().optional().describe(
820
808
  "Path to a file containing task instructions. Content is prepended to the prompt. Path is resolved relative to the project root and validated against path traversal."
821
809
  ),
@@ -1324,7 +1312,7 @@ var init_server = __esm({
1324
1312
  this.guard = new RecursionGuard(guardConfig);
1325
1313
  this.backendSelector = new BackendSelector();
1326
1314
  this.server = new McpServer(
1327
- { name: "agentic-relay", version: "0.12.2" },
1315
+ { name: "agentic-relay", version: "0.13.0" },
1328
1316
  createMcpServerOptions()
1329
1317
  );
1330
1318
  this.registerTools(this.server);
@@ -1499,7 +1487,6 @@ var init_server = __esm({
1499
1487
  })).min(1).describe("Array of failed results with their original input configurations"),
1500
1488
  overrides: z5.object({
1501
1489
  maxTurns: z5.number().optional(),
1502
- timeoutMs: z5.number().optional(),
1503
1490
  preferredBackend: z5.enum(["claude", "codex", "gemini"]).optional()
1504
1491
  }).optional().describe("Parameter overrides applied to all retried agents")
1505
1492
  },
@@ -1509,7 +1496,6 @@ var init_server = __esm({
1509
1496
  const input = { ...r.originalInput };
1510
1497
  if (params.overrides) {
1511
1498
  if (params.overrides.maxTurns !== void 0) input.maxTurns = params.overrides.maxTurns;
1512
- if (params.overrides.timeoutMs !== void 0) input.timeoutMs = params.overrides.timeoutMs;
1513
1499
  if (params.overrides.preferredBackend !== void 0) input.preferredBackend = params.overrides.preferredBackend;
1514
1500
  }
1515
1501
  return input;
@@ -1688,7 +1674,7 @@ var init_server = __esm({
1688
1674
  sessionIdGenerator: () => randomUUID()
1689
1675
  });
1690
1676
  const server = new McpServer(
1691
- { name: "agentic-relay", version: "0.12.2" },
1677
+ { name: "agentic-relay", version: "0.13.0" },
1692
1678
  createMcpServerOptions()
1693
1679
  );
1694
1680
  this.registerTools(server);
@@ -2053,10 +2039,7 @@ var CLAUDE_NESTING_ENV_VARS = [
2053
2039
  "CLAUDE_CODE_SSE_PORT",
2054
2040
  "CLAUDE_CODE_ENTRYPOINT"
2055
2041
  ];
2056
- function resolveClaudeSdkTimeoutMs(flagsTimeoutMs) {
2057
- if (flagsTimeoutMs !== void 0 && flagsTimeoutMs > 0) {
2058
- return flagsTimeoutMs;
2059
- }
2042
+ function resolveClaudeSdkTimeoutMs() {
2060
2043
  const envVal = process.env["RELAY_CLAUDE_TIMEOUT_MS"];
2061
2044
  if (envVal) {
2062
2045
  const parsed = Number(envVal);
@@ -2103,7 +2086,7 @@ var ClaudeAdapter = class extends BaseAdapter {
2103
2086
  }
2104
2087
  const env = this.buildCleanEnv(flags);
2105
2088
  const permissionMode = this.getPermissionMode();
2106
- const timeoutMs = resolveClaudeSdkTimeoutMs(flags.timeoutMs);
2089
+ const timeoutMs = resolveClaudeSdkTimeoutMs();
2107
2090
  const abortController = new AbortController();
2108
2091
  const timer = timeoutMs !== void 0 ? setTimeout(() => abortController.abort(), timeoutMs) : void 0;
2109
2092
  try {
@@ -2182,7 +2165,7 @@ var ClaudeAdapter = class extends BaseAdapter {
2182
2165
  }
2183
2166
  const env = this.buildCleanEnv(flags);
2184
2167
  const permissionMode = this.getPermissionMode();
2185
- const timeoutMs = resolveClaudeSdkTimeoutMs(flags.timeoutMs);
2168
+ const timeoutMs = resolveClaudeSdkTimeoutMs();
2186
2169
  const abortController = new AbortController();
2187
2170
  const timer = timeoutMs !== void 0 ? setTimeout(() => abortController.abort(), timeoutMs) : void 0;
2188
2171
  try {
@@ -4466,7 +4449,7 @@ function createMCPCommand(configManager2, registry2, sessionManager2, hooksEngin
4466
4449
  guardConfig = {
4467
4450
  maxDepth: config.mcpServerMode.maxDepth ?? 5,
4468
4451
  maxCallsPerSession: config.mcpServerMode.maxCallsPerSession ?? 20,
4469
- timeoutSec: config.mcpServerMode.timeoutSec ?? 300
4452
+ timeoutSec: config.mcpServerMode.timeoutSec ?? 86400
4470
4453
  };
4471
4454
  }
4472
4455
  } catch {
@@ -4640,7 +4623,7 @@ function createVersionCommand(registry2) {
4640
4623
  description: "Show relay and backend versions"
4641
4624
  },
4642
4625
  async run() {
4643
- const relayVersion = "0.12.2";
4626
+ const relayVersion = "0.13.0";
4644
4627
  console.log(`agentic-relay v${relayVersion}`);
4645
4628
  console.log("");
4646
4629
  console.log("Backends:");
@@ -4990,7 +4973,7 @@ void configManager.getConfig().then((config) => {
4990
4973
  var main = defineCommand10({
4991
4974
  meta: {
4992
4975
  name: "relay",
4993
- version: "0.12.2",
4976
+ version: "0.13.0",
4994
4977
  description: "Unified CLI proxy for Claude Code, Codex CLI, and Gemini CLI"
4995
4978
  },
4996
4979
  subCommands: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rk0429/agentic-relay",
3
- "version": "0.12.2",
3
+ "version": "0.13.0",
4
4
  "description": "Unified CLI proxy for Claude Code, Codex CLI, and Gemini CLI with MCP-based multi-layer sub-agent orchestration",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",