@tarcisiopgs/lisa 1.17.0 → 1.17.1

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -23
  2. package/package.json +1 -1
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 hasAnthropic = Boolean(process.env.ANTHROPIC_API_KEY);
1807
- const hasGoogle = Boolean(
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarcisiopgs/lisa",
3
- "version": "1.17.0",
3
+ "version": "1.17.1",
4
4
  "description": "Autonomous issue resolver",
5
5
  "keywords": [
6
6
  "loop",