@chenlongapps/opencode-token-usage 0.4.19 → 0.4.21

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.
@@ -1,5 +1,5 @@
1
1
  export declare const GENERATED_PRICE_SNAPSHOT: {
2
- readonly verified: "2026-10-30";
2
+ readonly verified: "2026-11-10";
3
3
  readonly source: "https://models.dev/api.json";
4
4
  readonly entries: readonly [{
5
5
  readonly providerID: "ai21";
@@ -585,6 +585,31 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
585
585
  };
586
586
  }];
587
587
  readonly released: "2026-09-01";
588
+ }, {
589
+ readonly providerID: "anthropic";
590
+ readonly id: "claude-fable-5-2";
591
+ readonly prices: readonly [{
592
+ readonly input: 8;
593
+ readonly output: 40;
594
+ readonly cache: {
595
+ readonly read: 0.2;
596
+ readonly write: 10;
597
+ };
598
+ }];
599
+ readonly released: "2026-11-09";
600
+ }, {
601
+ readonly providerID: "anthropic";
602
+ readonly id: "claude-fable-5-2-fast";
603
+ readonly providers: readonly ["anthropic"];
604
+ readonly prices: readonly [{
605
+ readonly input: 16;
606
+ readonly output: 80;
607
+ readonly cache: {
608
+ readonly read: 0.4;
609
+ readonly write: 20;
610
+ };
611
+ }];
612
+ readonly released: "2026-11-09";
588
613
  }, {
589
614
  readonly providerID: "anthropic";
590
615
  readonly id: "claude-haiku-4-5";
@@ -1199,6 +1224,17 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1199
1224
  };
1200
1225
  }];
1201
1226
  readonly released: "2026-10-13";
1227
+ }, {
1228
+ readonly providerID: "google";
1229
+ readonly id: "gemini-4-carbon";
1230
+ readonly prices: readonly [{
1231
+ readonly input: 2;
1232
+ readonly output: 10;
1233
+ readonly cache: {
1234
+ readonly read: 0.1;
1235
+ };
1236
+ }];
1237
+ readonly released: "2026-11-10";
1202
1238
  }, {
1203
1239
  readonly providerID: "google";
1204
1240
  readonly id: "gemini-flash-latest";
@@ -1308,6 +1344,27 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1308
1344
  };
1309
1345
  }];
1310
1346
  readonly released: "2026-09-25";
1347
+ }, {
1348
+ readonly providerID: "meta";
1349
+ readonly id: "muse-ember-1.0";
1350
+ readonly prices: readonly [{
1351
+ readonly input: 0.1;
1352
+ readonly output: 0.5;
1353
+ readonly cache: {
1354
+ readonly read: 0.004;
1355
+ };
1356
+ }, {
1357
+ readonly input: 0.3;
1358
+ readonly output: 1.5;
1359
+ readonly cache: {
1360
+ readonly read: 0.012;
1361
+ };
1362
+ readonly tier: {
1363
+ readonly type: "context";
1364
+ readonly size: 200000;
1365
+ };
1366
+ }];
1367
+ readonly released: "2026-11-09";
1311
1368
  }, {
1312
1369
  readonly providerID: "meta";
1313
1370
  readonly id: "muse-spark-1.1";
@@ -1,5 +1,5 @@
1
1
  export const GENERATED_PRICE_SNAPSHOT = {
2
- verified: "2026-10-30",
2
+ verified: "2026-11-10",
3
3
  source: "https://models.dev/api.json",
4
4
  entries: [
5
5
  { "providerID": "ai21", "id": "jamba-large", "prices": [{ "input": 2, "output": 8 }], "released": "2025-07-03" },
@@ -50,6 +50,8 @@ export const GENERATED_PRICE_SNAPSHOT = {
50
50
  { "providerID": "alibaba", "id": "qwq-plus", "prices": [{ "input": 0.8, "output": 2.4 }], "released": "2025-03-05" },
51
51
  { "providerID": "anthropic", "id": "claude-fable-5", "prices": [{ "input": 10, "output": 50, "cache": { "read": 1, "write": 12.5 } }], "released": "2026-06-07" },
52
52
  { "providerID": "anthropic", "id": "claude-fable-5-1", "prices": [{ "input": 10, "output": 50, "cache": { "read": 0.25, "write": 12.5 } }], "released": "2026-09-01" },
53
+ { "providerID": "anthropic", "id": "claude-fable-5-2", "prices": [{ "input": 8, "output": 40, "cache": { "read": 0.2, "write": 10 } }], "released": "2026-11-09" },
54
+ { "providerID": "anthropic", "id": "claude-fable-5-2-fast", "providers": ["anthropic"], "prices": [{ "input": 16, "output": 80, "cache": { "read": 0.4, "write": 20 } }], "released": "2026-11-09" },
53
55
  { "providerID": "anthropic", "id": "claude-haiku-4-5", "prices": [{ "input": 1, "output": 5, "cache": { "read": 0.1, "write": 1.25 } }], "released": "2025-10-15" },
54
56
  { "providerID": "anthropic", "id": "claude-haiku-4-5-20251001", "prices": [{ "input": 1, "output": 5, "cache": { "read": 0.1, "write": 1.25 } }], "released": "2025-10-15" },
55
57
  { "providerID": "anthropic", "id": "claude-haiku-5-5", "prices": [{ "input": 0.1, "output": 0.5, "cache": { "read": 0.01, "write": 0.125 } }, { "input": 0.5, "output": 2.5, "cache": { "read": 0.05, "write": 0.625 }, "tier": { "type": "context", "size": 100000 } }], "released": "2026-10-07" },
@@ -101,6 +103,7 @@ export const GENERATED_PRICE_SNAPSHOT = {
101
103
  { "providerID": "google", "id": "gemini-3.7-flash", "prices": [{ "input": 0.75, "output": 3.75, "cache": { "read": 0.075 } }], "released": "2026-08-13" },
102
104
  { "providerID": "google", "id": "gemini-3.8-flash", "prices": [{ "input": 0.75, "output": 3.75, "cache": { "read": 0.075 } }], "released": "2026-09-02" },
103
105
  { "providerID": "google", "id": "gemini-4-argon", "prices": [{ "input": 2, "output": 10, "cache": { "read": 0.1 } }], "released": "2026-10-13" },
106
+ { "providerID": "google", "id": "gemini-4-carbon", "prices": [{ "input": 2, "output": 10, "cache": { "read": 0.1 } }], "released": "2026-11-10" },
104
107
  { "providerID": "google", "id": "gemini-flash-latest", "prices": [{ "input": 0.75, "output": 3.75, "cache": { "read": 0.075 } }], "released": "2026-08-13" },
105
108
  { "providerID": "google", "id": "gemini-flash-lite-latest", "prices": [{ "input": 0.3, "output": 2.5, "cache": { "read": 0.03 } }], "released": "2026-07-21" },
106
109
  { "providerID": "google", "id": "gemini-pro-latest", "prices": [{ "input": 2, "output": 12, "cache": { "read": 0.2 } }, { "input": 4, "output": 18, "cache": { "read": 0.4 }, "tier": { "type": "context", "size": 200000 } }], "released": "2026-02-19" },
@@ -110,6 +113,7 @@ export const GENERATED_PRICE_SNAPSHOT = {
110
113
  { "providerID": "inception", "id": "mercury-edit-2", "prices": [{ "input": 0.25, "output": 0.75, "cache": { "read": 0.025 } }], "released": "2026-03-30" },
111
114
  { "providerID": "longcat", "id": "longcat-2.0", "prices": [{ "input": 0.3, "output": 1.2, "cache": { "read": 0.006 } }], "released": "2026-06-30" },
112
115
  { "providerID": "longcat", "id": "longcat-2.5-preview", "prices": [{ "input": 0.3, "output": 1.2, "cache": { "read": 0.006 } }], "released": "2026-09-25" },
116
+ { "providerID": "meta", "id": "muse-ember-1.0", "prices": [{ "input": 0.1, "output": 0.5, "cache": { "read": 0.004 } }, { "input": 0.3, "output": 1.5, "cache": { "read": 0.012 }, "tier": { "type": "context", "size": 200000 } }], "released": "2026-11-09" },
113
117
  { "providerID": "meta", "id": "muse-spark-1.1", "prices": [{ "input": 1.25, "output": 4.25, "cache": { "read": 0.15 } }], "released": "2026-04-08" },
114
118
  { "providerID": "meta", "id": "muse-spark-1.2", "prices": [{ "input": 1.25, "output": 4.25, "cache": { "read": 0.15 } }], "released": "2026-08-05" },
115
119
  { "providerID": "meta", "id": "muse-spark-1.2-contributor", "prices": [{ "input": 0.1, "output": 0.2, "cache": { "read": 0.002 } }], "released": "2026-08-05" },
package/dist/pricing.d.ts CHANGED
@@ -14,7 +14,7 @@ export interface OfficialPriceEntry {
14
14
  /** Checked-in data: updating prices is explicit, not a network request at
15
15
  * startup, during a refresh, or during an npm build. */
16
16
  export declare const OFFICIAL_PRICE_SNAPSHOT: {
17
- verified: "2026-10-30";
17
+ verified: "2026-11-10";
18
18
  source: "https://models.dev/api.json";
19
19
  entries: OfficialPriceEntry[];
20
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chenlongapps/opencode-token-usage",
3
- "version": "0.4.19",
3
+ "version": "0.4.21",
4
4
  "description": "OpenCode 2 plugin for session-tree token usage, context window monitoring, estimated costs, and performance metrics (TPS, TTFT, run time).",
5
5
  "keywords": [
6
6
  "opencode",