holomime 3.3.1 → 3.3.2

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 +15 -14
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -21854,25 +21854,26 @@ async function configCommand(options) {
21854
21854
  });
21855
21855
  const ask = (question) => new Promise((resolve57) => rl.question(question, resolve57));
21856
21856
  try {
21857
- console.log(chalk49.dim(" Providers: anthropic, openai"));
21858
- const provider = (await ask(" Provider [anthropic]: ")).trim() || "anthropic";
21859
- if (provider !== "anthropic" && provider !== "openai") {
21860
- console.log(chalk49.red(` Unsupported provider: ${provider}`));
21861
- rl.close();
21862
- return;
21863
- }
21864
- const keyHint = provider === "anthropic" ? "sk-ant-..." : "sk-...";
21865
- const apiKey = (await ask(` API Key (${keyHint}): `)).trim();
21857
+ const apiKey = (await ask(" API Key: ")).trim();
21866
21858
  if (!apiKey) {
21867
21859
  console.log(chalk49.red(" API key is required."));
21868
21860
  rl.close();
21869
21861
  return;
21870
21862
  }
21871
- if (provider === "anthropic" && !apiKey.startsWith("sk-ant-")) {
21872
- console.log(chalk49.yellow(" Warning: Anthropic keys usually start with sk-ant-"));
21873
- }
21874
- if (provider === "openai" && !apiKey.startsWith("sk-")) {
21875
- console.log(chalk49.yellow(" Warning: OpenAI keys usually start with sk-"));
21863
+ let provider;
21864
+ if (apiKey.startsWith("sk-ant-")) {
21865
+ provider = "anthropic";
21866
+ } else if (apiKey.startsWith("sk-")) {
21867
+ provider = "openai";
21868
+ } else {
21869
+ console.log(chalk49.yellow(" Could not detect provider from key prefix."));
21870
+ const providerInput = (await ask(" Provider (anthropic/openai): ")).trim();
21871
+ if (providerInput !== "anthropic" && providerInput !== "openai") {
21872
+ console.log(chalk49.red(` Unsupported provider: ${providerInput}`));
21873
+ rl.close();
21874
+ return;
21875
+ }
21876
+ provider = providerInput;
21876
21877
  }
21877
21878
  const config = { provider, apiKey };
21878
21879
  saveConfig(config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "holomime",
3
- "version": "3.3.1",
3
+ "version": "3.3.2",
4
4
  "description": "Behavioral therapy infrastructure for AI agents — Big Five psychology, structured treatment, behavioral alignment",
5
5
  "type": "module",
6
6
  "bin": {