From a61079b505d7eabba3f2ae995995ca25ccf8475a Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 20 Feb 2026 02:42:08 +0000 Subject: [PATCH] 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 <53631862+PR0M3TH3AN@users.noreply.github.com> --- dashboard/app.js | 5 +++++ landing/index.html | 10 ++++++++++ src/utils.mjs | 1 + test/utils.test.mjs | 8 ++++++++ 4 files changed, 24 insertions(+) diff --git a/dashboard/app.js b/dashboard/app.js index f192425..e7b0d6f 100644 --- a/dashboard/app.js +++ b/dashboard/app.js @@ -398,6 +398,11 @@ const PLATFORM_COLORS = { text: 'text-pink', label: 'Antigravity IDE', }, + qwen: { + bg: 'bg-purple/10', + text: 'text-purple', + label: 'Qwen Coder', + }, unknown: { bg: 'bg-muted/10', text: 'text-muted', label: 'Unknown' }, }; diff --git a/landing/index.html b/landing/index.html index 73049a5..246ea93 100644 --- a/landing/index.html +++ b/landing/index.html @@ -899,6 +899,14 @@

Google's multimodal AI model. (CLI Required, needs cronjob)

+
+
+ Qwen Coder CLI + Active +
+

Alibaba's open weights coding model. (CLI Required, needs cronjob)

+
+
Antigravity IDE @@ -1479,6 +1487,8 @@ npm install https://github.com/PR0M3TH3AN/TORCH/archive/refs/heads/main.tar.gz & promptText = "Hey Claude, can you install and setup TORCH into this repo? Here is the install command:\n\nnpm install https://github.com/PR0M3TH3AN/TORCH/archive/refs/heads/main.tar.gz && npx torch-lock init"; } else if (agent === 'gemini') { promptText = "Hey Gemini, can you install and setup TORCH into this repo? Here is the install command:\n\nnpm install https://github.com/PR0M3TH3AN/TORCH/archive/refs/heads/main.tar.gz && npx torch-lock init"; + } else if (agent === 'qwen') { + promptText = "Hey Qwen, can you install and setup TORCH into this repo? Here is the install command:\n\nnpm install https://github.com/PR0M3TH3AN/TORCH/archive/refs/heads/main.tar.gz && npx torch-lock init"; } else if (agent === 'antigravity') { promptText = "Hey Antigravity, can you install and setup TORCH into this repo? Here is the install command:\n\nnpm install https://github.com/PR0M3TH3AN/TORCH/archive/refs/heads/main.tar.gz && npx torch-lock init"; } diff --git a/src/utils.mjs b/src/utils.mjs index 04f1b33..af844e2 100644 --- a/src/utils.mjs +++ b/src/utils.mjs @@ -38,6 +38,7 @@ export function detectPlatform() { if (process.env.CLAUDE_API_KEY || process.env.ANTHROPIC_API_KEY || process.env.CLAUDE_SESSION_ID) return 'claude'; if (process.env.GEMINI_API_KEY || process.env.GOOGLE_API_KEY) return 'gemini'; if (process.env.ANTIGRAVITY_API_KEY || process.env.ANTIGRAVITY_SESSION_ID) return 'antigravity'; + if (process.env.QWEN_API_KEY || process.env.QWEN_SESSION_ID) return 'qwen'; return null; } diff --git a/test/utils.test.mjs b/test/utils.test.mjs index 0857a9f..b2d2785 100644 --- a/test/utils.test.mjs +++ b/test/utils.test.mjs @@ -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);