mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
feat(cli): include auth method in /bug (#17569)
Co-authored-by: Erik Staab <estaab@google.com> Co-authored-by: Bryan Morgan <bryanmorgan@google.com>
This commit is contained in:
@@ -92,6 +92,7 @@ describe('bugCommand', () => {
|
|||||||
getHistory: () => [],
|
getHistory: () => [],
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
|
getContentGeneratorConfig: () => ({ authType: 'oauth-personal' }),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@@ -106,6 +107,7 @@ describe('bugCommand', () => {
|
|||||||
* **Operating System:** test-platform v20.0.0
|
* **Operating System:** test-platform v20.0.0
|
||||||
* **Sandbox Environment:** test
|
* **Sandbox Environment:** test
|
||||||
* **Model Version:** gemini-pro
|
* **Model Version:** gemini-pro
|
||||||
|
* **Auth Type:** oauth-personal
|
||||||
* **Memory Usage:** 100 MB
|
* **Memory Usage:** 100 MB
|
||||||
* **Terminal Name:** Test Terminal
|
* **Terminal Name:** Test Terminal
|
||||||
* **Terminal Background:** #000000
|
* **Terminal Background:** #000000
|
||||||
@@ -133,6 +135,7 @@ describe('bugCommand', () => {
|
|||||||
getHistory: () => history,
|
getHistory: () => history,
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
|
getContentGeneratorConfig: () => ({ authType: 'vertex-ai' }),
|
||||||
storage: {
|
storage: {
|
||||||
getProjectTempDir: () => '/tmp/gemini',
|
getProjectTempDir: () => '/tmp/gemini',
|
||||||
},
|
},
|
||||||
@@ -178,6 +181,7 @@ describe('bugCommand', () => {
|
|||||||
getHistory: () => [],
|
getHistory: () => [],
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
|
getContentGeneratorConfig: () => ({ authType: 'vertex-ai' }),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@@ -192,6 +196,7 @@ describe('bugCommand', () => {
|
|||||||
* **Operating System:** test-platform v20.0.0
|
* **Operating System:** test-platform v20.0.0
|
||||||
* **Sandbox Environment:** test
|
* **Sandbox Environment:** test
|
||||||
* **Model Version:** gemini-pro
|
* **Model Version:** gemini-pro
|
||||||
|
* **Auth Type:** vertex-ai
|
||||||
* **Memory Usage:** 100 MB
|
* **Memory Usage:** 100 MB
|
||||||
* **Terminal Name:** Test Terminal
|
* **Terminal Name:** Test Terminal
|
||||||
* **Terminal Background:** #000000
|
* **Terminal Background:** #000000
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ export const bugCommand: SlashCommand = {
|
|||||||
const kittyProtocol = terminalCapabilityManager.isKittyProtocolEnabled()
|
const kittyProtocol = terminalCapabilityManager.isKittyProtocolEnabled()
|
||||||
? 'Supported'
|
? 'Supported'
|
||||||
: 'Unsupported';
|
: 'Unsupported';
|
||||||
|
const authType = config?.getContentGeneratorConfig()?.authType || 'Unknown';
|
||||||
|
|
||||||
let info = `
|
let info = `
|
||||||
* **CLI Version:** ${cliVersion}
|
* **CLI Version:** ${cliVersion}
|
||||||
@@ -62,6 +63,7 @@ export const bugCommand: SlashCommand = {
|
|||||||
* **Operating System:** ${osVersion}
|
* **Operating System:** ${osVersion}
|
||||||
* **Sandbox Environment:** ${sandboxEnv}
|
* **Sandbox Environment:** ${sandboxEnv}
|
||||||
* **Model Version:** ${modelVersion}
|
* **Model Version:** ${modelVersion}
|
||||||
|
* **Auth Type:** ${authType}
|
||||||
* **Memory Usage:** ${memoryUsage}
|
* **Memory Usage:** ${memoryUsage}
|
||||||
* **Terminal Name:** ${terminalName}
|
* **Terminal Name:** ${terminalName}
|
||||||
* **Terminal Background:** ${terminalBgColor}
|
* **Terminal Background:** ${terminalBgColor}
|
||||||
|
|||||||
Reference in New Issue
Block a user