@rk0429/agentic-relay 0.14.0 → 0.14.1

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 +24 -8
  2. package/package.json +1 -1
package/dist/relay.mjs CHANGED
@@ -1322,7 +1322,7 @@ var init_server = __esm({
1322
1322
  this.guard = new RecursionGuard(guardConfig);
1323
1323
  this.backendSelector = new BackendSelector();
1324
1324
  this.server = new McpServer(
1325
- { name: "agentic-relay", version: "0.14.0" },
1325
+ { name: "agentic-relay", version: "0.14.1" },
1326
1326
  createMcpServerOptions()
1327
1327
  );
1328
1328
  this.registerTools(this.server);
@@ -1684,7 +1684,7 @@ var init_server = __esm({
1684
1684
  sessionIdGenerator: () => randomUUID()
1685
1685
  });
1686
1686
  const server = new McpServer(
1687
- { name: "agentic-relay", version: "0.14.0" },
1687
+ { name: "agentic-relay", version: "0.14.1" },
1688
1688
  createMcpServerOptions()
1689
1689
  );
1690
1690
  this.registerTools(server);
@@ -2868,9 +2868,8 @@ var GeminiAdapter = class extends BaseAdapter {
2868
2868
  const authenticated = hasApiKey || hasGoogleAdc;
2869
2869
  if (!authenticated) {
2870
2870
  return {
2871
- // Optimistic fallback: Gemini may still authenticate via ADC at runtime.
2872
- authenticated: true,
2873
- message: "Gemini authentication status unknown - ADC may be available at runtime"
2871
+ authenticated: false,
2872
+ message: "Gemini authentication not configured. Set GEMINI_API_KEY or configure Google ADC."
2874
2873
  };
2875
2874
  }
2876
2875
  return { authenticated };
@@ -2918,6 +2917,20 @@ ${prompt}`;
2918
2917
  }
2919
2918
  return prompt;
2920
2919
  }
2920
+ buildEnv(flags) {
2921
+ const env = {};
2922
+ for (const [key, value] of Object.entries(process.env)) {
2923
+ if (value !== void 0) {
2924
+ env[key] = value;
2925
+ }
2926
+ }
2927
+ if (flags.mcpContext) {
2928
+ env.RELAY_TRACE_ID = flags.mcpContext.traceId;
2929
+ env.RELAY_PARENT_SESSION_ID = flags.mcpContext.parentSessionId;
2930
+ env.RELAY_DEPTH = String(flags.mcpContext.depth);
2931
+ }
2932
+ return env;
2933
+ }
2921
2934
  async execute(flags) {
2922
2935
  if (!flags.prompt) {
2923
2936
  throw new Error("execute requires a prompt (-p flag)");
@@ -2934,7 +2947,10 @@ ${prompt}`;
2934
2947
  args.push("--verbose");
2935
2948
  }
2936
2949
  args.push("-p", effectivePrompt);
2937
- return this.processManager.execute(this.command, args);
2950
+ return this.processManager.execute(this.command, args, {
2951
+ stdinMode: "ignore",
2952
+ env: this.buildEnv(flags)
2953
+ });
2938
2954
  }
2939
2955
  async resumeSession(sessionId, flags) {
2940
2956
  const args = [];
@@ -4658,7 +4674,7 @@ function createVersionCommand(registry2) {
4658
4674
  description: "Show relay and backend versions"
4659
4675
  },
4660
4676
  async run() {
4661
- const relayVersion = "0.14.0";
4677
+ const relayVersion = "0.14.1";
4662
4678
  console.log(`agentic-relay v${relayVersion}`);
4663
4679
  console.log("");
4664
4680
  console.log("Backends:");
@@ -5008,7 +5024,7 @@ void configManager.getConfig().then((config) => {
5008
5024
  var main = defineCommand10({
5009
5025
  meta: {
5010
5026
  name: "relay",
5011
- version: "0.14.0",
5027
+ version: "0.14.1",
5012
5028
  description: "Unified CLI proxy for Claude Code, Codex CLI, and Gemini CLI"
5013
5029
  },
5014
5030
  subCommands: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rk0429/agentic-relay",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
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",