@pikaa-ai/pikaa 0.3.20 → 0.3.21

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/cli.js +13 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -6632,7 +6632,7 @@ function parsePatch(oldSrc, newSrc, contextLines = 3) {
6632
6632
  // package.json
6633
6633
  var package_default = {
6634
6634
  name: "@pikaa-ai/pikaa",
6635
- version: "0.3.20",
6635
+ version: "0.3.21",
6636
6636
  description: "PIKAA CLI - AI coding agent that runs locally in your terminal.",
6637
6637
  main: "./dist/index.js",
6638
6638
  module: "./dist/index.js",
@@ -9074,19 +9074,29 @@ async function handleModelSelection(ctx, modelArg) {
9074
9074
  const headers = {};
9075
9075
  if (apiKey)
9076
9076
  headers["Authorization"] = `Bearer ${apiKey}`;
9077
- const res2 = await fetch(`${baseUrl}/models`, { headers });
9077
+ const controller2 = new AbortController;
9078
+ const timeout = setTimeout(() => controller2.abort(), 1500);
9079
+ const res2 = await fetch(`${baseUrl}/models`, {
9080
+ headers,
9081
+ signal: controller2.signal
9082
+ }).finally(() => clearTimeout(timeout));
9078
9083
  if (res2.ok) {
9079
9084
  const data = await res2.json();
9080
- models = data.data || [];
9085
+ if (Array.isArray(data.data) && data.data.length > 0) {
9086
+ models = data.data;
9087
+ }
9081
9088
  }
9082
9089
  } catch {}
9083
9090
  if (models.length === 0) {
9084
9091
  models = [
9085
9092
  { id: "gemini-2.5-flash", owned_by: "google" },
9093
+ { id: "gemini-2.5-pro", owned_by: "google" },
9086
9094
  { id: "claude-3-5-sonnet", owned_by: "anthropic" },
9087
9095
  { id: "claude-3-7-sonnet", owned_by: "anthropic" },
9088
9096
  { id: "gpt-4o", owned_by: "openai" },
9097
+ { id: "gpt-4o-mini", owned_by: "openai" },
9089
9098
  { id: "deepseek-r1", owned_by: "deepseek" },
9099
+ { id: "deepseek-v3", owned_by: "deepseek" },
9090
9100
  { id: "qwen-2.5-coder", owned_by: "alibaba" }
9091
9101
  ];
9092
9102
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pikaa-ai/pikaa",
3
- "version": "0.3.20",
3
+ "version": "0.3.21",
4
4
  "description": "PIKAA CLI - AI coding agent that runs locally in your terminal.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",