Merge pull request #351 from PR0M3TH3AN/add-qwen-coder-landing-4500751862979356017

Add Qwen Coder to landing page and platform detection
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-02-19 22:13:20 -05:00
commit 1a534fc746
4 files changed
+24

No files matched your search

+5
View File
@@ -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' },
};
+10
View File
@@ -899,6 +899,14 @@
<p class="agent-desc">Google's multimodal AI model. (CLI Required, needs cronjob)</p>
</div>
<div id="card-qwen" onclick="selectAgent('qwen')" class="agent-card" style="cursor: pointer;">
<div class="agent-header">
<span class="agent-name">Qwen Coder CLI</span>
<span class="agent-status">Active</span>
</div>
<p class="agent-desc">Alibaba's open weights coding model. (CLI Required, needs cronjob)</p>
</div>
<div id="card-antigravity" onclick="selectAgent('antigravity')" class="agent-card" style="cursor: pointer;">
<div class="agent-header">
<span class="agent-name">Antigravity IDE</span>
@@ -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";
}
+1
View File
@@ -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;
}
+8
View File
@@ -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);