@quantish/agent 0.1.24 → 0.1.25

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 +7 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2348,9 +2348,13 @@ function calculateCostWithPricing(pricing, inputTokens, outputTokens, cacheCreat
2348
2348
  }
2349
2349
  function formatCost(cost) {
2350
2350
  if (cost < 0.01) {
2351
- return `$${(cost * 100).toFixed(3)}\xA2`;
2351
+ const cents = cost * 100;
2352
+ return `${cents.toFixed(3)}\xA2`;
2352
2353
  }
2353
- return `$${cost.toFixed(4)}`;
2354
+ if (cost < 1) {
2355
+ return `$${cost.toFixed(4)}`;
2356
+ }
2357
+ return `$${cost.toFixed(2)}`;
2354
2358
  }
2355
2359
  function listModels() {
2356
2360
  return Object.values(MODELS);
@@ -5284,7 +5288,7 @@ Stopped ${count} background process${count > 1 ? "es" : ""}.`);
5284
5288
  }
5285
5289
 
5286
5290
  // src/index.ts
5287
- var VERSION = "0.1.24";
5291
+ var VERSION = "0.1.25";
5288
5292
  function cleanup() {
5289
5293
  if (processManager.hasRunning()) {
5290
5294
  const count = processManager.runningCount();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quantish/agent",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "description": "AI-powered agent for building trading bots on Polymarket",
5
5
  "type": "module",
6
6
  "bin": {