@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.
Files changed (2) hide show
  1. package/dist/index.js +13 -9
  2. 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.cyan("Anthropic") + chalk.dim(" (Claude models - Opus, Sonnet, Haiku)"));
634
- console.log(" 2. " + chalk.green("OpenRouter") + chalk.dim(" (Access 100+ models - MiniMax, DeepSeek, etc.)\n"));
635
- const providerChoice = await prompt("Choose (1 or 2): ");
636
- const useOpenRouter = providerChoice === "2";
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("Get yours at https://openrouter.ai/keys\n"));
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\n"));
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.30";
5459
+ var VERSION = "0.1.31";
5456
5460
  function cleanup() {
5457
5461
  if (processManager.hasRunning()) {
5458
5462
  const count = processManager.runningCount();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quantish/agent",
3
- "version": "0.1.30",
3
+ "version": "0.1.31",
4
4
  "description": "AI-powered agent for trading on Polymarket and Kalshi",
5
5
  "type": "module",
6
6
  "bin": {