exe-watcher 0.2.48 → 0.2.50

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/cli.js +8 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -194,6 +194,8 @@ function calculateCost(model, inputTokens, outputTokens, cacheCreationTokens, ca
194
194
  function getShortModelName(model) {
195
195
  const canonical = resolveAlias(getCanonicalName(model));
196
196
  const shortNames2 = {
197
+ "claude-fable-5": "Fable 5",
198
+ "claude-opus-4-8": "Opus 4.8",
197
199
  "claude-opus-4-7": "Opus 4.7",
198
200
  "claude-opus-4-6": "Opus 4.6",
199
201
  "claude-opus-4-5": "Opus 4.5",
@@ -277,6 +279,8 @@ var init_models = __esm({
277
279
  GEMINI_LONG_CONTEXT_THRESHOLD_TOKENS = 2e5;
278
280
  DIRECT_PROVIDER_PREFIXES = ["openai/", "anthropic/", "google/", "vertex_ai/", "minimax/"];
279
281
  FALLBACK_PRICING = {
282
+ "claude-fable-5": { inputCostPerToken: 1e-5, outputCostPerToken: 5e-5, cacheWriteCostPerToken: 125e-7, cacheReadCostPerToken: 1e-6, webSearchCostPerRequest: WEB_SEARCH_COST, fastMultiplier: 1 },
283
+ "claude-opus-4-8": { inputCostPerToken: 5e-6, outputCostPerToken: 25e-6, cacheWriteCostPerToken: 625e-8, cacheReadCostPerToken: 5e-7, webSearchCostPerRequest: WEB_SEARCH_COST, fastMultiplier: 1 },
280
284
  "claude-opus-4-7": { inputCostPerToken: 5e-6, outputCostPerToken: 25e-6, cacheWriteCostPerToken: 625e-8, cacheReadCostPerToken: 5e-7, webSearchCostPerRequest: WEB_SEARCH_COST, fastMultiplier: 6 },
281
285
  "claude-opus-4-6": { inputCostPerToken: 5e-6, outputCostPerToken: 25e-6, cacheWriteCostPerToken: 625e-8, cacheReadCostPerToken: 5e-7, webSearchCostPerRequest: WEB_SEARCH_COST, fastMultiplier: 6 },
282
286
  "claude-opus-4-5": { inputCostPerToken: 5e-6, outputCostPerToken: 25e-6, cacheWriteCostPerToken: 625e-8, cacheReadCostPerToken: 5e-7, webSearchCostPerRequest: WEB_SEARCH_COST, fastMultiplier: 1 },
@@ -363,6 +367,8 @@ var init_models = __esm({
363
367
  _pricingLastUpdated = null;
364
368
  STALENESS_WARN_MS = 7 * 24 * 60 * 60 * 1e3;
365
369
  BUILTIN_ALIASES = {
370
+ "anthropic--claude-4.8-opus": "claude-opus-4-8",
371
+ "anthropic--claude-4.7-opus": "claude-opus-4-7",
366
372
  "anthropic--claude-4.6-opus": "claude-opus-4-6",
367
373
  "anthropic--claude-4.6-sonnet": "claude-sonnet-4-6",
368
374
  "anthropic--claude-4.5-opus": "claude-opus-4-5",
@@ -4005,6 +4011,7 @@ function renderStatusBar(projects) {
4005
4011
  // src/menubar-json.ts
4006
4012
  import { readdirSync, readFileSync as readFileSync2 } from "fs";
4007
4013
  import { join as join17, dirname as dirname3 } from "path";
4014
+ init_models();
4008
4015
  import { fileURLToPath } from "url";
4009
4016
  function getCliVersion() {
4010
4017
  try {
@@ -4097,7 +4104,7 @@ function buildTopActivities(categories) {
4097
4104
  }));
4098
4105
  }
4099
4106
  function buildTopModels(models) {
4100
- return models.filter((m) => m.name !== SYNTHETIC_MODEL_NAME).slice(0, TOP_MODELS_LIMIT).map((m) => ({ name: m.name, cost: m.cost, calls: m.calls }));
4107
+ return models.filter((m) => m.name !== SYNTHETIC_MODEL_NAME).slice(0, TOP_MODELS_LIMIT).map((m) => ({ name: getShortModelName(m.name), cost: m.cost, calls: m.calls }));
4101
4108
  }
4102
4109
  function buildOptimize(optimize) {
4103
4110
  if (!optimize || optimize.findings.length === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exe-watcher",
3
- "version": "0.2.48",
3
+ "version": "0.2.50",
4
4
  "description": "The owl watching your AI coding spend — cost, tokens, agents, and projects in your terminal and menu bar",
5
5
  "type": "module",
6
6
  "main": "./dist/cli.js",