careervivid 1.12.8 → 1.12.9

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.
@@ -1 +1 @@
1
- {"version":3,"file":"configurator.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/configurator.ts"],"names":[],"mappings":"AAEA,OAAO,EAA0B,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAI3E,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,CAqED"}
1
+ {"version":3,"file":"configurator.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/configurator.ts"],"names":[],"mappings":"AAEA,OAAO,EAA0B,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAI3E,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,CA4ED"}
@@ -162,7 +162,8 @@ export async function promptForAgentModel(options = {}) {
162
162
  __custom__: "custom",
163
163
  };
164
164
  selectedProvider = providerMap[picked] || "openai";
165
- const savedKey = loadConfig().llmApiKey;
165
+ const savedCfg = loadConfig();
166
+ const savedKey = savedCfg.llmApiKey;
166
167
  if (!savedKey) {
167
168
  console.log(chalk.yellow(`\nšŸ”‘ BYO API key needed for ${selectedProvider}.`));
168
169
  console.log(chalk.dim(" Run: cv agent config to save your key permanently.\n"));
@@ -173,17 +174,21 @@ export async function promptForAgentModel(options = {}) {
173
174
  });
174
175
  apiKey = keyAnswer.key.trim();
175
176
  }
176
- const modelAnswer2 = await prompt({
177
- type: "input",
178
- name: "model",
179
- message: "Model name:",
180
- initial: selectedProvider === "openai"
177
+ // Pre-fill with the saved model when provider matches, otherwise use sensible defaults
178
+ const defaultModel = savedCfg.llmProvider === selectedProvider && savedCfg.llmModel
179
+ ? savedCfg.llmModel
180
+ : selectedProvider === "openai"
181
181
  ? "gpt-4o"
182
182
  : selectedProvider === "anthropic"
183
183
  ? "claude-opus-4-5"
184
184
  : selectedProvider === "gemini"
185
185
  ? "gemini-2.5-flash"
186
- : "openai/gpt-4o",
186
+ : "google/gemma-4-31b-it:free";
187
+ const modelAnswer2 = await prompt({
188
+ type: "input",
189
+ name: "model",
190
+ message: "Model name:",
191
+ initial: defaultModel,
187
192
  });
188
193
  selectedModel = modelAnswer2.model.trim();
189
194
  thinkingBudget = 0;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,QAyHpD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,QAwHpD"}
@@ -58,16 +58,14 @@ export function registerAgentCommand(program) {
58
58
  selectedProvider = "careervivid";
59
59
  }
60
60
  else if (options.provider && options.provider !== "careervivid") {
61
- selectedProvider = llmCfg.provider;
62
- selectedModel = llmCfg.model;
63
- thinkingBudget = 0;
64
- }
65
- else if (llmCfg.provider !== "careervivid") {
61
+ // User explicitly passed --provider on the CLI — use it directly, no picker
66
62
  selectedProvider = llmCfg.provider;
67
63
  selectedModel = llmCfg.model;
68
64
  thinkingBudget = 0;
69
65
  }
70
66
  else {
67
+ // Always show the picker. Saved config pre-fills BYO model inputs but does
68
+ // not bypass the prompt. This lets the user choose per-session.
71
69
  const result = await promptForAgentModel(options);
72
70
  selectedProvider = result.selectedProvider;
73
71
  selectedModel = result.selectedModel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "careervivid",
3
- "version": "1.12.8",
3
+ "version": "1.12.9",
4
4
  "description": "Official CLI for CareerVivid — publish articles, diagrams, and portfolio updates from your terminal or AI agent",
5
5
  "type": "module",
6
6
  "bin": {