@quantish/agent 0.1.29 → 0.1.30

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 +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3901,7 +3901,7 @@ ${userMessage}`;
3901
3901
  return this.runWithProvider(userMessage);
3902
3902
  }
3903
3903
  const maxIterations = this.config.maxIterations ?? 15;
3904
- const model = this.config.model ?? "claude-sonnet-4-5-20250929";
3904
+ const model = this.config.model ?? (this.config.provider === "openrouter" ? "z-ai/glm-4.7" : "claude-sonnet-4-5-20250929");
3905
3905
  const maxTokens = this.config.maxTokens ?? 8192;
3906
3906
  const systemPrompt = this.config.systemPrompt ?? DEFAULT_SYSTEM_PROMPT;
3907
3907
  const useStreaming = this.config.streaming ?? true;
@@ -4151,7 +4151,7 @@ ${userMessage}`;
4151
4151
  * Count tokens in current conversation (uses Anthropic's token counting API)
4152
4152
  */
4153
4153
  async countTokens() {
4154
- const model = this.config.model ?? "claude-sonnet-4-5-20250929";
4154
+ const model = this.config.model ?? (this.config.provider === "openrouter" ? "z-ai/glm-4.7" : "claude-sonnet-4-5-20250929");
4155
4155
  const systemPrompt = this.config.systemPrompt ?? DEFAULT_SYSTEM_PROMPT;
4156
4156
  const allTools = await this.getAllTools();
4157
4157
  try {
@@ -5452,7 +5452,7 @@ Stopped ${count} background process${count > 1 ? "es" : ""}.`);
5452
5452
  }
5453
5453
 
5454
5454
  // src/index.ts
5455
- var VERSION = "0.1.29";
5455
+ var VERSION = "0.1.30";
5456
5456
  function cleanup() {
5457
5457
  if (processManager.hasRunning()) {
5458
5458
  const count = processManager.runningCount();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quantish/agent",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
4
4
  "description": "AI-powered agent for trading on Polymarket and Kalshi",
5
5
  "type": "module",
6
6
  "bin": {