diff options
| author | Allen Hutchison <[email protected]> | 2025-06-14 00:00:24 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-14 07:00:24 +0000 |
| commit | 643bdf31d50868e5644a1257afabed612ba317c7 (patch) | |
| tree | 987d7e3600987c32c21a017d1ee1b3b7f14dae6c /packages/core/src | |
| parent | d5c6bb9740a52d87b71d812e698d0e88abf10caa (diff) | |
feat: Add custom URL support for the /bug command (#1017)
Diffstat (limited to 'packages/core/src')
| -rw-r--r-- | packages/core/src/config/config.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/core/src/config/config.ts b/packages/core/src/config/config.ts index ac0fabb0..32c3129d 100644 --- a/packages/core/src/config/config.ts +++ b/packages/core/src/config/config.ts @@ -36,6 +36,10 @@ export interface AccessibilitySettings { disableLoadingPhrases?: boolean; } +export interface BugCommandSettings { + urlTemplate: string; +} + export class MCPServerConfig { constructor( // For stdio transport @@ -87,6 +91,7 @@ export interface ConfigParameters { proxy?: string; cwd: string; fileDiscoveryService?: FileDiscoveryService; + bugCommand?: BugCommandSettings; } export class Config { @@ -121,6 +126,7 @@ export class Config { private readonly checkpoint: boolean; private readonly proxy: string | undefined; private readonly cwd: string; + private readonly bugCommand: BugCommandSettings | undefined; constructor(params: ConfigParameters) { this.sessionId = params.sessionId; @@ -154,6 +160,7 @@ export class Config { this.proxy = params.proxy; this.cwd = params.cwd ?? process.cwd(); this.fileDiscoveryService = params.fileDiscoveryService ?? null; + this.bugCommand = params.bugCommand; if (params.contextFileName) { setGeminiMdFilename(params.contextFileName); @@ -309,6 +316,10 @@ export class Config { return this.cwd; } + getBugCommand(): BugCommandSettings | undefined { + return this.bugCommand; + } + async getFileService(): Promise<FileDiscoveryService> { if (!this.fileDiscoveryService) { this.fileDiscoveryService = new FileDiscoveryService(this.targetDir); |
