Explorar o código

fix: correct Gogs domain from .hu to .ai in TypeScript client #24

Updated hardcoded domain references to match actual Gogs API endpoint:
- gogs-helper.ts: Change default baseUrl from git.smartbotics.hu to git.smartbotics.ai
- index.ts: Update fallback SSH URL from git.smartbotics.hu to git.smartbotics.ai

This ensures the TypeScript client uses the correct Gogs API and Git URLs
when derived from the Gogs MCP configuration.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Claude hai 9 meses
pai
achega
c52db01f43
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      client/src/gogs-helper.ts
  2. 1 1
      client/src/index.ts

+ 1 - 1
client/src/gogs-helper.ts

@@ -15,7 +15,7 @@ import { join } from 'path';
 function getGogsConfig(): { baseUrl: string; token: string } {
   // Try to load from environment first
   const token = process.env.GOGS_ACCESS_TOKEN || process.env.GOGS_TOKEN;
-  const baseUrl = process.env.GOGS_BASE_URL || 'https://git.smartbotics.hu';
+  const baseUrl = process.env.GOGS_BASE_URL || 'https://git.smartbotics.ai';
 
   if (!token) {
     throw new Error('GOGS_ACCESS_TOKEN or GOGS_TOKEN environment variable is required');

+ 1 - 1
client/src/index.ts

@@ -83,7 +83,7 @@ if (import.meta.url === `file://${process.argv[1]}`) {
       sshUrl = existingUrl;
     } else {
       // Fallback to default format
-      sshUrl = `ssh://git@git.smartbotics.hu:10022/${owner}/${repo}.git`;
+      sshUrl = `ssh://git@git.smartbotics.ai:10022/${owner}/${repo}.git`;
       console.log(`Using fallback SSH URL: ${sshUrl}`);
     }
   }