@quantish/agent 0.1.30 → 0.1.31
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/index.js +13 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -630,15 +630,18 @@ async function runSetup() {
|
|
|
630
630
|
console.log();
|
|
631
631
|
console.log(chalk.bold("Step 1: Choose your LLM Provider"));
|
|
632
632
|
console.log(chalk.dim("The AI that powers the agent.\n"));
|
|
633
|
-
console.log(" 1. " + chalk.
|
|
634
|
-
console.log(" 2. " + chalk.
|
|
635
|
-
|
|
636
|
-
|
|
633
|
+
console.log(" 1. " + chalk.green.bold("OpenRouter") + chalk.green(" (Recommended)") + chalk.dim(" - Uses GLM 4.7, fastest & cheapest"));
|
|
634
|
+
console.log(" 2. " + chalk.cyan("Anthropic") + chalk.dim(" (Claude models - Opus, Sonnet, Haiku)\n"));
|
|
635
|
+
console.log(chalk.dim("OpenRouter gives you access to GLM 4.7 - the best price/performance model available."));
|
|
636
|
+
console.log(chalk.dim("Get started free: ") + chalk.underline.cyan("https://openrouter.ai/keys\n"));
|
|
637
|
+
const providerChoice = await prompt("Choose (1 or 2, default 1): ");
|
|
638
|
+
const useOpenRouter = providerChoice !== "2";
|
|
637
639
|
if (useOpenRouter) {
|
|
638
640
|
config.setProvider("openrouter");
|
|
639
641
|
console.log();
|
|
640
642
|
console.log(chalk.bold("OpenRouter API Key"));
|
|
641
|
-
console.log(chalk.dim("
|
|
643
|
+
console.log(chalk.dim("Sign up and get your key at: ") + chalk.underline.cyan("https://openrouter.ai/keys"));
|
|
644
|
+
console.log(chalk.dim("Default model: GLM 4.7 (fast, accurate, low cost)\n"));
|
|
642
645
|
let openrouterKey = config.getOpenRouterApiKey();
|
|
643
646
|
if (openrouterKey) {
|
|
644
647
|
console.log(chalk.dim(`Current: ${openrouterKey.slice(0, 10)}...`));
|
|
@@ -657,12 +660,13 @@ async function runSetup() {
|
|
|
657
660
|
console.log(chalk.yellow("Warning: Key doesn't look like an OpenRouter key (should start with sk-or-)"));
|
|
658
661
|
}
|
|
659
662
|
config.setOpenRouterApiKey(openrouterKey);
|
|
660
|
-
console.log(chalk.green("\u2713 OpenRouter API key saved
|
|
663
|
+
console.log(chalk.green("\u2713 OpenRouter API key saved"));
|
|
664
|
+
console.log(chalk.dim(" Using model: z-ai/glm-4.7\n"));
|
|
661
665
|
} else {
|
|
662
666
|
config.setProvider("anthropic");
|
|
663
667
|
console.log();
|
|
664
668
|
console.log(chalk.bold("Anthropic API Key"));
|
|
665
|
-
console.log(chalk.dim("Get yours at https://console.anthropic.com/\n"));
|
|
669
|
+
console.log(chalk.dim("Get yours at: ") + chalk.underline.cyan("https://console.anthropic.com/\n"));
|
|
666
670
|
let anthropicKey = config.getAnthropicApiKey();
|
|
667
671
|
if (anthropicKey) {
|
|
668
672
|
console.log(chalk.dim(`Current: ${anthropicKey.slice(0, 10)}...`));
|
|
@@ -4338,7 +4342,7 @@ ${chalk2.yellow(" \u2588\u2588\u2551\u2584\u2584 \u2588\u2588\u2551")}${chalk2.
|
|
|
4338
4342
|
${chalk2.yellow(" \u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D")}${chalk2.hex("#FFD700")("\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D")}${chalk2.hex("#FFC000")("\u2588\u2588\u2551 \u2588\u2588\u2551")}${chalk2.hex("#FFB000")("\u2588\u2588\u2551 \u255A\u2588\u2588\u2588\u2588\u2551")}${chalk2.hex("#FFA000")(" \u2588\u2588\u2551 ")}${chalk2.hex("#FF9000")("\u2588\u2588\u2551")}${chalk2.hex("#FF8000")("\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551")}${chalk2.hex("#FF7000")("\u2588\u2588\u2551 \u2588\u2588\u2551")}
|
|
4339
4343
|
${chalk2.yellow(" \u255A\u2550\u2550\u2580\u2580\u2550\u255D ")}${chalk2.hex("#FFD700")(" \u255A\u2550\u2550\u2550\u2550\u2550\u255D ")}${chalk2.hex("#FFC000")("\u255A\u2550\u255D \u255A\u2550\u255D")}${chalk2.hex("#FFB000")("\u255A\u2550\u255D \u255A\u2550\u2550\u2550\u255D")}${chalk2.hex("#FFA000")(" \u255A\u2550\u255D ")}${chalk2.hex("#FF9000")("\u255A\u2550\u255D")}${chalk2.hex("#FF8000")("\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D")}${chalk2.hex("#FF7000")("\u255A\u2550\u255D \u255A\u2550\u255D")}
|
|
4340
4344
|
`;
|
|
4341
|
-
var TAGLINE = chalk2.dim(" AI-powered trading agent for Polymarket");
|
|
4345
|
+
var TAGLINE = chalk2.dim(" AI-powered trading agent for Polymarket & Kalshi");
|
|
4342
4346
|
function printHeader() {
|
|
4343
4347
|
console.log(BANNER);
|
|
4344
4348
|
console.log(TAGLINE);
|
|
@@ -5452,7 +5456,7 @@ Stopped ${count} background process${count > 1 ? "es" : ""}.`);
|
|
|
5452
5456
|
}
|
|
5453
5457
|
|
|
5454
5458
|
// src/index.ts
|
|
5455
|
-
var VERSION = "0.1.
|
|
5459
|
+
var VERSION = "0.1.31";
|
|
5456
5460
|
function cleanup() {
|
|
5457
5461
|
if (processManager.hasRunning()) {
|
|
5458
5462
|
const count = processManager.runningCount();
|