@larkup/cli 0.2.24 → 0.2.25

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 +78 -19
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -34,7 +34,7 @@ import { Command } from "commander";
34
34
  // package.json
35
35
  var package_default = {
36
36
  name: "@larkup/cli",
37
- version: "0.2.24",
37
+ version: "0.2.25",
38
38
  publishConfig: {
39
39
  access: "public"
40
40
  },
@@ -671,15 +671,15 @@ var EMBEDDING_MODELS = [
671
671
  id: "google/gemini-embedding-2",
672
672
  label: "gemini-embedding-2",
673
673
  provider: "google",
674
- dimensions: 768,
675
- maxInputTokens: 2048,
674
+ dimensions: 3072,
675
+ maxInputTokens: 8192,
676
676
  description: "Current Gemini embedding model with multilingual retrieval support."
677
677
  },
678
678
  {
679
679
  id: "google/gemini-embedding-001",
680
680
  label: "gemini-embedding-001",
681
681
  provider: "google",
682
- dimensions: 768,
682
+ dimensions: 3072,
683
683
  maxInputTokens: 2048,
684
684
  description: "Gemini embedding 001."
685
685
  },
@@ -828,7 +828,7 @@ function resolveChatModel(config, provider = resolveChatProvider(config)) {
828
828
  }
829
829
  const defaults = {
830
830
  openai: "openai/gpt-4o-mini",
831
- google: "google/gemini-2.5-flash",
831
+ google: "google/gemini-3.6-flash",
832
832
  cohere: "cohere/command-r-plus",
833
833
  mistral: "mistral/mistral-large-latest",
834
834
  deepseek: "deepseek/deepseek-chat",
@@ -4194,9 +4194,7 @@ function getAIModel(config) {
4194
4194
  const explicitApiKey = config.embeddingApiKey?.trim() || "NO_API_KEY_PROVIDED_FROM_UI";
4195
4195
  if (config.embeddingModelId.startsWith("custom:")) {
4196
4196
  const customName = config.embeddingModelId.slice("custom:".length);
4197
- const custom = (config.customEmbeddings ?? []).find(
4198
- (m) => m.modelName === customName
4199
- );
4197
+ const custom = (config.customEmbeddings ?? []).find((m) => m.modelName === customName);
4200
4198
  if (custom) {
4201
4199
  const customProvider = createOpenAICompatible({
4202
4200
  name: "custom_provider",
@@ -4236,10 +4234,15 @@ function getAIModel(config) {
4236
4234
  });
4237
4235
  return gateway.embedding(config.embeddingModelId);
4238
4236
  }
4239
- const openai = createOpenAI({
4240
- apiKey: explicitApiKey
4241
- });
4242
- return openai.embedding(modelName);
4237
+ if (config.embeddingProvider === "openai") {
4238
+ const openai = createOpenAI({
4239
+ apiKey: explicitApiKey
4240
+ });
4241
+ return openai.embedding(modelName);
4242
+ }
4243
+ throw new Error(
4244
+ `Unsupported native embedding provider "${config.embeddingProvider}". Choose Vercel AI Gateway or configure a custom OpenAI-compatible embedding provider.`
4245
+ );
4243
4246
  }
4244
4247
 
4245
4248
  // ../../packages/core/src/indexing/embedder.ts
@@ -6000,6 +6003,64 @@ import { z } from "zod";
6000
6003
  import * as p3 from "@clack/prompts";
6001
6004
 
6002
6005
  // ../../packages/core/src/chat-models/registry.ts
6006
+ var GOOGLE_NATIVE_CHAT_MODELS = [
6007
+ {
6008
+ id: "google/gemini-3.6-flash",
6009
+ name: "Gemini 3.6 Flash",
6010
+ provider: "google",
6011
+ context_window: 1e6,
6012
+ max_tokens: 65536,
6013
+ tags: ["vision", "reasoning", "tool-use", "file-input", "web-search"]
6014
+ },
6015
+ {
6016
+ id: "google/gemini-3.5-flash",
6017
+ name: "Gemini 3.5 Flash",
6018
+ provider: "google",
6019
+ context_window: 1e6,
6020
+ max_tokens: 65536,
6021
+ tags: ["vision", "reasoning", "tool-use", "file-input", "web-search"]
6022
+ },
6023
+ {
6024
+ id: "google/gemini-3.5-flash-lite",
6025
+ name: "Gemini 3.5 Flash-Lite",
6026
+ provider: "google",
6027
+ context_window: 1e6,
6028
+ max_tokens: 65536,
6029
+ tags: ["vision", "reasoning", "tool-use", "file-input"]
6030
+ },
6031
+ {
6032
+ id: "google/gemini-3.1-pro-preview",
6033
+ name: "Gemini 3.1 Pro Preview",
6034
+ provider: "google",
6035
+ context_window: 1e6,
6036
+ max_tokens: 65536,
6037
+ tags: ["vision", "reasoning", "tool-use", "file-input", "web-search"]
6038
+ },
6039
+ {
6040
+ id: "google/gemini-3.1-flash-lite",
6041
+ name: "Gemini 3.1 Flash-Lite",
6042
+ provider: "google",
6043
+ context_window: 1e6,
6044
+ max_tokens: 65536,
6045
+ tags: ["vision", "reasoning", "tool-use", "file-input", "web-search"]
6046
+ },
6047
+ {
6048
+ id: "google/gemini-3-flash-preview",
6049
+ name: "Gemini 3 Flash Preview",
6050
+ provider: "google",
6051
+ context_window: 1e6,
6052
+ max_tokens: 65536,
6053
+ tags: ["vision", "reasoning", "tool-use", "file-input", "web-search"]
6054
+ }
6055
+ ];
6056
+ var DEFAULT_NATIVE_CHAT_MODELS = {
6057
+ openai: "openai/gpt-5",
6058
+ anthropic: "anthropic/claude-sonnet-4",
6059
+ google: "google/gemini-3.6-flash",
6060
+ mistral: "mistral/mistral-large-3",
6061
+ deepseek: "deepseek/deepseek-v3.2",
6062
+ cohere: "cohere/command-a"
6063
+ };
6003
6064
  function toChatDescriptor(m) {
6004
6065
  return {
6005
6066
  id: m.id,
@@ -6013,17 +6074,15 @@ function toChatDescriptor(m) {
6013
6074
  }
6014
6075
  function getChatModelsForProvider(models, provider) {
6015
6076
  if (provider === "vercel_ai_gateway") return models;
6016
- return models.filter((m) => m.provider?.toLowerCase() === provider.toLowerCase());
6077
+ if (provider === "google") return GOOGLE_NATIVE_CHAT_MODELS;
6078
+ return models.filter(
6079
+ (m) => m.provider?.toLowerCase() === provider.toLowerCase() && m.tags?.includes("tool-use")
6080
+ );
6017
6081
  }
6018
6082
  function getDefaultChatModel(models, provider) {
6019
6083
  const forProvider = getChatModelsForProvider(models, provider);
6020
6084
  const defaults = {
6021
- openai: "openai/gpt-5",
6022
- anthropic: "anthropic/claude-3.5-sonnet-latest",
6023
- google: "google/gemini-2.5-pro",
6024
- mistral: "mistral/mistral-large-latest",
6025
- deepseek: "deepseek/deepseek-chat",
6026
- cohere: "cohere/command-r-plus",
6085
+ ...DEFAULT_NATIVE_CHAT_MODELS,
6027
6086
  meta: "meta/llama-4-maverick",
6028
6087
  xai: "xai/grok-3-mini",
6029
6088
  vercel_ai_gateway: "anthropic/claude-3.5-sonnet-latest"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@larkup/cli",
3
- "version": "0.2.24",
3
+ "version": "0.2.25",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -29,9 +29,9 @@
29
29
  "cli-table3": "^0.6.5",
30
30
  "commander": "^15.0.0",
31
31
  "zod": "^4.4.3",
32
- "@larkup/core": "0.4.1",
33
- "@larkup/marketplace": "0.1.24",
34
- "@larkup/vector-stores": "0.1.25"
32
+ "@larkup/core": "0.4.2",
33
+ "@larkup/vector-stores": "0.1.25",
34
+ "@larkup/marketplace": "0.1.25"
35
35
  },
36
36
  "devDependencies": {
37
37
  "tsup": "^8.5.1",