mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-11-09 06:12:15 +00:00
feat(dashboard): add support for Goose, Gemini, and Antigravity platforms
- Update `src/utils.mjs` to detect `gemini` and `antigravity` platforms via environment variables. - Update `dashboard/styles.css` with new color utilities for purple and pink themes. - Update `dashboard/app.js` to map Goose, Gemini, and Antigravity platforms to distinct badge colors. - Update `test/utils.test.mjs` to include unit tests for the new platform detection logic. This ensures all active agent platforms are correctly identified and labeled in the TORCH dashboard. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
b956f9f7f6
commit
abb4cc4361
4 files changed
+53
No files matched your search
@@ -74,6 +74,10 @@ describe('Platform Utilities', () => {
|
||||
delete process.env.CLAUDE_SESSION_ID;
|
||||
delete process.env.CLAUDE_API_KEY;
|
||||
delete process.env.ANTHROPIC_API_KEY;
|
||||
delete process.env.GEMINI_API_KEY;
|
||||
delete process.env.GOOGLE_API_KEY;
|
||||
delete process.env.ANTIGRAVITY_API_KEY;
|
||||
delete process.env.ANTIGRAVITY_SESSION_ID;
|
||||
};
|
||||
|
||||
after(() => {
|
||||
@@ -110,6 +114,30 @@ describe('Platform Utilities', () => {
|
||||
assert.strictEqual(detectPlatform(), 'claude');
|
||||
});
|
||||
|
||||
it('detects gemini via GEMINI_API_KEY', () => {
|
||||
clearEnv();
|
||||
process.env.GEMINI_API_KEY = 'test';
|
||||
assert.strictEqual(detectPlatform(), 'gemini');
|
||||
});
|
||||
|
||||
it('detects gemini via GOOGLE_API_KEY', () => {
|
||||
clearEnv();
|
||||
process.env.GOOGLE_API_KEY = 'test';
|
||||
assert.strictEqual(detectPlatform(), 'gemini');
|
||||
});
|
||||
|
||||
it('detects antigravity via ANTIGRAVITY_API_KEY', () => {
|
||||
clearEnv();
|
||||
process.env.ANTIGRAVITY_API_KEY = 'test';
|
||||
assert.strictEqual(detectPlatform(), 'antigravity');
|
||||
});
|
||||
|
||||
it('detects antigravity via ANTIGRAVITY_SESSION_ID', () => {
|
||||
clearEnv();
|
||||
process.env.ANTIGRAVITY_SESSION_ID = 'test';
|
||||
assert.strictEqual(detectPlatform(), 'antigravity');
|
||||
});
|
||||
|
||||
it('returns null if no platform detected', () => {
|
||||
clearEnv();
|
||||
assert.strictEqual(detectPlatform(), null);
|
||||
|
||||
Reference in new issue
Block a user