holomime 3.3.3 → 3.3.4
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.
- package/dist/cli.js +24 -9
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -3593,11 +3593,12 @@ import { Command } from "commander";
|
|
|
3593
3593
|
// src/ui/branding.ts
|
|
3594
3594
|
import chalk from "chalk";
|
|
3595
3595
|
import gradientString from "gradient-string";
|
|
3596
|
-
var VERSION = "
|
|
3597
|
-
var LOGO = ` _
|
|
3598
|
-
|
|
|
3599
|
-
|
|
|
3600
|
-
|
|
|
3596
|
+
var VERSION = "3.3.4";
|
|
3597
|
+
var LOGO = ` _ _ _
|
|
3598
|
+
| |__ ___ | | ___ _ __ (_)_ __ ___ ___
|
|
3599
|
+
| '_ \\ / _ \\| |/ _ \\| '_ \\| | '_ \` _ \\ / _ \\
|
|
3600
|
+
| | | | (_) | | (_) | | | | | | | | | | __/
|
|
3601
|
+
|_| |_|\\___/|_|\\___/|_| |_|_|_| |_| |_|\\___|`;
|
|
3601
3602
|
var holomimeGradient = gradientString("#00d4ff", "#b347d9");
|
|
3602
3603
|
function printBanner() {
|
|
3603
3604
|
console.log();
|
|
@@ -21854,16 +21855,30 @@ async function configCommand(options) {
|
|
|
21854
21855
|
});
|
|
21855
21856
|
const ask = (question) => new Promise((resolve57) => rl.question(question, resolve57));
|
|
21856
21857
|
try {
|
|
21857
|
-
|
|
21858
|
-
|
|
21859
|
-
|
|
21858
|
+
console.log(chalk49.dim(" 1) anthropic") + chalk49.dim(" enter your sk-ant-... key"));
|
|
21859
|
+
console.log(chalk49.dim(" 2) openai") + chalk49.dim(" enter your sk-... key"));
|
|
21860
|
+
console.log();
|
|
21861
|
+
const providerInput = (await ask(" Select provider (1 or 2): ")).trim();
|
|
21862
|
+
let provider;
|
|
21863
|
+
if (providerInput === "1" || providerInput.toLowerCase() === "anthropic") {
|
|
21864
|
+
provider = "anthropic";
|
|
21865
|
+
} else if (providerInput === "2" || providerInput.toLowerCase() === "openai") {
|
|
21866
|
+
provider = "openai";
|
|
21867
|
+
} else if (providerInput === "") {
|
|
21868
|
+
console.log(chalk49.dim(" Skipped. Run `holomime config` when ready."));
|
|
21869
|
+
rl.close();
|
|
21870
|
+
return;
|
|
21871
|
+
} else {
|
|
21872
|
+
console.log(chalk49.red(` Invalid selection: ${providerInput}`));
|
|
21860
21873
|
rl.close();
|
|
21861
21874
|
return;
|
|
21862
21875
|
}
|
|
21876
|
+
console.log(chalk49.dim(` Selected: ${provider}`));
|
|
21877
|
+
console.log();
|
|
21863
21878
|
const keyHint = provider === "anthropic" ? "sk-ant-..." : "sk-...";
|
|
21864
21879
|
const apiKey = (await ask(` API Key (${keyHint}): `)).trim();
|
|
21865
21880
|
if (!apiKey) {
|
|
21866
|
-
console.log(chalk49.
|
|
21881
|
+
console.log(chalk49.dim(" Skipped. Run `holomime config` when ready."));
|
|
21867
21882
|
rl.close();
|
|
21868
21883
|
return;
|
|
21869
21884
|
}
|