@quantish/agent 0.1.47 → 0.1.49

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 +4 -25
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2620,20 +2620,6 @@ function resolveModelId(nameOrAlias) {
2620
2620
  return id;
2621
2621
  }
2622
2622
  }
2623
- if (OPENROUTER_MODELS[lower]) {
2624
- return lower;
2625
- }
2626
- if (OPENROUTER_MODEL_ALIASES[lower]) {
2627
- return OPENROUTER_MODEL_ALIASES[lower];
2628
- }
2629
- for (const [id, config] of Object.entries(OPENROUTER_MODELS)) {
2630
- if (config.name.toLowerCase() === lower) {
2631
- return id;
2632
- }
2633
- }
2634
- if (nameOrAlias.includes("/")) {
2635
- return nameOrAlias;
2636
- }
2637
2623
  return null;
2638
2624
  }
2639
2625
  function getModelPricing(modelId) {
@@ -2763,16 +2749,6 @@ var OPENROUTER_MODELS = {
2763
2749
  description: "Alibaba's coding specialist. Excellent for code generation."
2764
2750
  }
2765
2751
  };
2766
- var OPENROUTER_MODEL_ALIASES = {
2767
- "glm": "z-ai/glm-4.7",
2768
- "glm-4.7": "z-ai/glm-4.7",
2769
- "minimax": "minimax/minimax-m2.1",
2770
- "deepseek": "deepseek/deepseek-chat",
2771
- "gemini": "google/gemini-2.0-flash-001",
2772
- "gemini-flash": "google/gemini-2.0-flash-001",
2773
- "qwen": "qwen/qwen-2.5-coder-32b-instruct",
2774
- "qwen-coder": "qwen/qwen-2.5-coder-32b-instruct"
2775
- };
2776
2752
 
2777
2753
  // src/agent/provider.ts
2778
2754
  import Anthropic from "@anthropic-ai/sdk";
@@ -5691,7 +5667,10 @@ Stopped ${count} background process${count > 1 ? "es" : ""}.`);
5691
5667
  }
5692
5668
 
5693
5669
  // src/index.ts
5694
- var VERSION = "0.1.43";
5670
+ import { createRequire } from "module";
5671
+ var require2 = createRequire(import.meta.url);
5672
+ var packageJson = require2("../package.json");
5673
+ var VERSION = packageJson.version;
5695
5674
  function cleanup() {
5696
5675
  if (processManager.hasRunning()) {
5697
5676
  const count = processManager.runningCount();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quantish/agent",
3
- "version": "0.1.47",
3
+ "version": "0.1.49",
4
4
  "description": "AI-powered agent for trading on Polymarket and Kalshi",
5
5
  "type": "module",
6
6
  "bin": {