careervivid 2.1.32 → 2.1.36

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.
@@ -99,12 +99,12 @@ export class QueryEngine {
99
99
  // Vertex AI mode — uses gcloud Application Default Credentials
100
100
  this.ai = new GoogleGenAI({ vertexai: true, project, location });
101
101
  // Vertex AI uses a different model namespace
102
- this.model = options.model || 'gemini-2.5-flash-preview-04-17';
102
+ this.model = options.model || 'gemini-1.5-flash';
103
103
  }
104
104
  else {
105
105
  // Gemini API mode — requires an API key
106
106
  this.ai = new GoogleGenAI({ apiKey: apiKey || '' });
107
- this.model = options.model || 'gemini-2.5-flash';
107
+ this.model = options.model || 'gemini-1.5-flash';
108
108
  }
109
109
  this.systemInstruction = options.systemInstruction || CODING_AGENT_SYSTEM_PROMPT;
110
110
  this.tools = options.tools || [];
@@ -540,7 +540,7 @@ Example: "Go to https://jobs.example.com/apply and fill out the application form
540
540
  },
541
541
  model: {
542
542
  type: Type.STRING,
543
- description: "Optional. Gemini model to use. Default: gemini-3.1-flash-lite-preview. Use gemini-3.1-pro-preview for extremely complex forms.",
543
+ description: "Optional. Gemini model to use. Default: gemini-1.5-flash. Use gemini-1.5-pro for extremely complex forms.",
544
544
  },
545
545
  },
546
546
  required: ["task"],
@@ -570,7 +570,7 @@ Example: "Go to https://jobs.example.com/apply and fill out the application form
570
570
  // For the agent tool, default to using the active LLM config from cv agent session
571
571
  const llmConfig = {
572
572
  provider: llmCfg.provider,
573
- model: args.model || llmCfg.model || "gemini-3.1-flash-lite-preview",
573
+ model: args.model || llmCfg.model || "gemini-1.5-flash",
574
574
  apiKey: llmCfg.apiKey || cfg.geminiKey || getGeminiKey() || process.env.GEMINI_API_KEY || "",
575
575
  baseUrl: llmCfg.baseUrl,
576
576
  };
@@ -466,7 +466,7 @@ IMPORTANT: Always confirm with the user before calling this tool — applying to
466
466
  },
467
467
  model: {
468
468
  type: Type.STRING,
469
- description: "Optional. Gemini model to use for the browser-use agent. Default: gemini-3.1-flash-lite-preview.",
469
+ description: "Optional. Gemini model to use for the browser-use agent. Default: gemini-1.5-flash.",
470
470
  },
471
471
  },
472
472
  required: ["job_url"],
@@ -558,7 +558,7 @@ FILLING RULES:
558
558
  const sessionBaseUrl = process.env.CV_SESSION_LLM_BASE_URL;
559
559
  const llmConfig = {
560
560
  provider: sessionProvider ?? llmCfg.provider,
561
- model: args.model || sessionModel || llmCfg.model || "gemini-3.1-flash-lite-preview",
561
+ model: args.model || sessionModel || llmCfg.model || "gemini-1.5-flash",
562
562
  apiKey: sessionApiKey || llmCfg.apiKey || cfg.geminiKey || cfg.llmApiKey || getGeminiKey() || process.env.GOOGLE_API_KEY || process.env.GEMINI_API_KEY || "",
563
563
  baseUrl: sessionBaseUrl || llmCfg.baseUrl,
564
564
  };
@@ -1 +1 @@
1
- {"version":3,"file":"configurator.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/configurator.ts"],"names":[],"mappings":"AAEA,OAAO,EAA0D,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAI3G,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAKpD,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;GAyBrB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;GA+BtB,CAAC;AAEF,wBAAsB,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,CAsEpD;AAED,wBAAsB,mBAAmB,CAAC,OAAO,GAAE,GAAQ,GAAG,OAAO,CAAC;IACpE,gBAAgB,EAAE,WAAW,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC,CAiKD"}
1
+ {"version":3,"file":"configurator.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/configurator.ts"],"names":[],"mappings":"AAEA,OAAO,EAA0D,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAI3G,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAIpD,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;GAmBrB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;GA+BtB,CAAC;AAEF,wBAAsB,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,CAsEpD;AAED,wBAAsB,mBAAmB,CAAC,OAAO,GAAE,GAAQ,GAAG,OAAO,CAAC;IACpE,gBAAgB,EAAE,WAAW,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC,CAiKD"}
@@ -3,18 +3,11 @@ import pkg from "enquirer";
3
3
  import { loadConfig, saveConfig, setProviderKey, getProviderKey } from "../../config.js";
4
4
  const { prompt } = pkg;
5
5
  export const MODEL_CREDIT_COST = {
6
- "gemini-3.1-flash-lite-preview": 0.5,
6
+ "gemini-2.5-flash-lite": 0.5,
7
7
  "gemini-2.5-flash": 1,
8
- "gemini-3-flash-preview": 1,
9
- "gemini-3.1-pro-preview": 2,
8
+ "gemini-2.5-pro": 2,
10
9
  };
11
10
  export const CV_MODELS = [
12
- {
13
- name: `⚡ gemini-3.1-flash-lite-preview ${chalk.gray("[0.5 credit/turn — fastest]")}`,
14
- value: "gemini-3.1-flash-lite-preview",
15
- cost: 0.5,
16
- careerVivid: true,
17
- },
18
11
  {
19
12
  name: `⚡ gemini-2.5-flash ${chalk.gray("[1 credit/turn — default]")}`,
20
13
  value: "gemini-2.5-flash",
@@ -22,14 +15,14 @@ export const CV_MODELS = [
22
15
  careerVivid: true,
23
16
  },
24
17
  {
25
- name: `🚀 gemini-3-flash-preview ${chalk.gray("[1 credit/turn — latest flash]")}`,
26
- value: "gemini-3-flash-preview",
27
- cost: 1,
18
+ name: `🚀 gemini-2.5-flash-lite ${chalk.gray("[0.5 credit/turn — fastest]")}`,
19
+ value: "gemini-2.5-flash-lite",
20
+ cost: 0.5,
28
21
  careerVivid: true,
29
22
  },
30
23
  {
31
- name: `🧠 gemini-3.1-pro-preview ${chalk.gray("[2 credits/turn — deep reasoning]")}`,
32
- value: "gemini-3.1-pro-preview",
24
+ name: `🧠 gemini-2.5-pro ${chalk.gray("[2 credits/turn — deep reasoning]")}`,
25
+ value: "gemini-2.5-pro",
33
26
  cost: 2,
34
27
  careerVivid: true,
35
28
  },
@@ -15,8 +15,8 @@ export function registerAgentCommand(program) {
15
15
  .option("--coding", "Enable full coding tool suite (file I/O, shell, search).")
16
16
  .option("--resume", "Add resume tools — load and discuss your CareerVivid resume.")
17
17
  .option("--jobs", "Add job-hunting tools (default — enabled automatically).")
18
- .option("--flash", "Use gemini-3-flash-preview — latest flash model (fast, 1 credit/turn).")
19
- .option("--pro", "Use gemini-3.1-pro-preview with thinking mode (recommended for complex tasks).")
18
+ .option("--flash", "Use gemini-2.5-flash (fast, 1 credit/turn).")
19
+ .option("--pro", "Use gemini-2.5-pro (recommended for complex tasks).")
20
20
  .option("--think <budget>", "Enable Gemini thinking mode with the given token budget (e.g. 8192).", parseInt)
21
21
  .option("--verbose", "Show thinking tokens in the output (requires --think or --pro).")
22
22
  .option("--project <id>", "GCP project ID for Vertex AI mode (uses gcloud ADC, no API key needed).")
@@ -55,12 +55,12 @@ export function registerAgentCommand(program) {
55
55
  let thinkingBudget;
56
56
  let selectedProvider;
57
57
  if (isPro) {
58
- selectedModel = "gemini-3.1-pro-preview";
59
- thinkingBudget = options.think ?? 8192;
58
+ selectedModel = "gemini-2.5-pro";
59
+ thinkingBudget = options.think ?? 0;
60
60
  selectedProvider = "careervivid";
61
61
  }
62
62
  else if (isFlash) {
63
- selectedModel = "gemini-3-flash-preview";
63
+ selectedModel = "gemini-2.5-flash";
64
64
  thinkingBudget = 0;
65
65
  selectedProvider = "careervivid";
66
66
  }
@@ -1 +1 @@
1
- {"version":3,"file":"repl.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/repl.ts"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,iBAAiB,CAAC;AAInD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAUvD,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,KAAK,GAAE,MAAM,GAAG,IAAW,QAoBtF;AA+DD,wBAAsB,OAAO,CAC3B,MAAM,EAAE,WAAW,GAAG,sBAAsB,GAAG,IAAI,EACnD,OAAO,EAAE;IACP,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,EACD,gBAAgB,EAAE,WAAW,EAC7B,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,iBAAiB,EAAE,MAAM,EACzB,KAAK,EAAE,GAAG,EAAE,EACZ,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,IAAI,CAAC,CA4Kf"}
@@ -34,9 +34,7 @@ export function printCreditStatus(remaining, limit = null) {
34
34
  }
35
35
  else if (remaining < 10 || pct < 0.05) {
36
36
  console.log(chalk.yellow(`\n💳 Credits remaining: ${remaining} ⚠️ Running low`));
37
- if (remaining < 20 && limit !== null) {
38
- console.log(chalk.dim(" 💡 Tip: Switch to gemini-3.1-flash-lite-preview (0.5 cr/turn) to stretch your budget."));
39
- }
37
+ console.log(chalk.dim(" 💡 Tip: Switch to gemini-1.5-flash (0.5 cr/turn) to stretch your budget."));
40
38
  }
41
39
  }
42
40
  // ── 401 error handler ─────────────────────────────────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "careervivid",
3
- "version": "2.1.32",
3
+ "version": "2.1.36",
4
4
  "description": "Official CLI for CareerVivid — AI voice interviews, autonomous job applications, resume editing, and portfolio publishing from your terminal",
5
5
  "type": "module",
6
6
  "bin": {