mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-11-06 21:01:54 +00:00
Add Qwen Coder to landing page and platform detection
- Added Qwen Coder CLI to `landing/index.html` agent selector. - Updated `src/utils.mjs` to detect `QWEN_API_KEY` or `QWEN_SESSION_ID` as 'qwen' platform. - Updated `dashboard/app.js` to render Qwen tasks with appropriate badge styling. - Added tests for Qwen platform detection in `test/utils.test.mjs`. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
d3ab513295
commit
a61079b505
4 files changed
+24
No files matched your search
@@ -78,6 +78,8 @@ describe('Platform Utilities', () => {
|
||||
delete process.env.GOOGLE_API_KEY;
|
||||
delete process.env.ANTIGRAVITY_API_KEY;
|
||||
delete process.env.ANTIGRAVITY_SESSION_ID;
|
||||
delete process.env.QWEN_API_KEY;
|
||||
delete process.env.QWEN_SESSION_ID;
|
||||
};
|
||||
|
||||
after(() => {
|
||||
@@ -138,6 +140,12 @@ describe('Platform Utilities', () => {
|
||||
assert.strictEqual(detectPlatform(), 'antigravity');
|
||||
});
|
||||
|
||||
it('detects qwen via QWEN_API_KEY', () => {
|
||||
clearEnv();
|
||||
process.env.QWEN_API_KEY = 'test';
|
||||
assert.strictEqual(detectPlatform(), 'qwen');
|
||||
});
|
||||
|
||||
it('returns null if no platform detected', () => {
|
||||
clearEnv();
|
||||
assert.strictEqual(detectPlatform(), null);
|
||||
|
||||
Reference in new issue
Block a user