@tarcisiopgs/lisa 1.17.0 → 1.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -4
- package/dist/index.js +2 -23
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1803,29 +1803,8 @@ function fetchCursorModels() {
|
|
|
1803
1803
|
function fetchOpenCodeModels() {
|
|
1804
1804
|
try {
|
|
1805
1805
|
const raw = execSync9("opencode models", { encoding: "utf-8", timeout: 1e4 });
|
|
1806
|
-
const
|
|
1807
|
-
|
|
1808
|
-
process.env.GEMINI_API_KEY || process.env.GOOGLE_API_KEY || process.env.GOOGLE_GENERATIVE_AI_API_KEY
|
|
1809
|
-
);
|
|
1810
|
-
const hasOpenAI = Boolean(process.env.OPENAI_API_KEY);
|
|
1811
|
-
const hasCopilot = Boolean(process.env.GITHUB_COPILOT_API_KEY || process.env.GITHUB_TOKEN);
|
|
1812
|
-
const hasGroq = Boolean(process.env.GROQ_API_KEY);
|
|
1813
|
-
const hasMistral = Boolean(process.env.MISTRAL_API_KEY);
|
|
1814
|
-
const hasDeepSeek = Boolean(process.env.DEEPSEEK_API_KEY);
|
|
1815
|
-
return raw.split("\n").map((l) => l.trim()).filter((m) => {
|
|
1816
|
-
if (/^opencode\//.test(m)) return true;
|
|
1817
|
-
if (/^anthropic\/claude-(opus|sonnet|haiku)-4-\d+$/.test(m)) return hasAnthropic;
|
|
1818
|
-
if (/^google\/gemini-(3\.1-pro-preview|3-pro-preview|3-flash-preview|2\.5-(pro|flash|flash-lite))$/.test(
|
|
1819
|
-
m
|
|
1820
|
-
))
|
|
1821
|
-
return hasGoogle;
|
|
1822
|
-
if (/^openai\//.test(m)) return hasOpenAI;
|
|
1823
|
-
if (/^github-copilot\//.test(m)) return hasCopilot;
|
|
1824
|
-
if (/^groq\//.test(m)) return hasGroq;
|
|
1825
|
-
if (/^mistral\//.test(m)) return hasMistral;
|
|
1826
|
-
if (/^deepseek\//.test(m)) return hasDeepSeek;
|
|
1827
|
-
return false;
|
|
1828
|
-
});
|
|
1806
|
+
const clean = raw.replace(/\x1b\[[0-9;]*[mGKHFA-Z]/g, "");
|
|
1807
|
+
return clean.split("\n").map((l) => l.trim()).filter((m) => /^[a-z0-9][\w.-]*\/.+/i.test(m));
|
|
1829
1808
|
} catch {
|
|
1830
1809
|
return [];
|
|
1831
1810
|
}
|