@chenlongapps/opencode-token-usage 0.4.21 → 0.4.22

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-11-10";
2
+ readonly verified: "2026-11-13";
3
3
  readonly source: "https://models.dev/api.json";
4
4
  readonly entries: readonly [{
5
5
  readonly providerID: "ai21";
@@ -1031,13 +1031,6 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1031
1031
  readonly prices: readonly [{
1032
1032
  readonly input: 1.25;
1033
1033
  readonly output: 10;
1034
- }, {
1035
- readonly input: 2.5;
1036
- readonly output: 15;
1037
- readonly tier: {
1038
- readonly type: "context";
1039
- readonly size: 200000;
1040
- };
1041
1034
  }];
1042
1035
  readonly released: "2025-10-07";
1043
1036
  }, {
@@ -1235,6 +1228,17 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1235
1228
  };
1236
1229
  }];
1237
1230
  readonly released: "2026-11-10";
1231
+ }, {
1232
+ readonly providerID: "google";
1233
+ readonly id: "gemini-4-hydrogen";
1234
+ readonly prices: readonly [{
1235
+ readonly input: 1.5;
1236
+ readonly output: 7.5;
1237
+ readonly cache: {
1238
+ readonly read: 0.075;
1239
+ };
1240
+ }];
1241
+ readonly released: "2026-11-12";
1238
1242
  }, {
1239
1243
  readonly providerID: "google";
1240
1244
  readonly id: "gemini-flash-latest";
@@ -1278,6 +1282,22 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1278
1282
  };
1279
1283
  }];
1280
1284
  readonly released: "2026-02-19";
1285
+ }, {
1286
+ readonly providerID: "google";
1287
+ readonly id: "gemma-4-26b-a4b-it";
1288
+ readonly prices: readonly [{
1289
+ readonly input: 0;
1290
+ readonly output: 0;
1291
+ }];
1292
+ readonly released: "2026-04-02";
1293
+ }, {
1294
+ readonly providerID: "google";
1295
+ readonly id: "gemma-4-31b-it";
1296
+ readonly prices: readonly [{
1297
+ readonly input: 0;
1298
+ readonly output: 0;
1299
+ }];
1300
+ readonly released: "2026-04-02";
1281
1301
  }, {
1282
1302
  readonly providerID: "inception";
1283
1303
  readonly id: "mercury-2";
@@ -1,5 +1,5 @@
1
1
  export const GENERATED_PRICE_SNAPSHOT = {
2
- verified: "2026-11-10",
2
+ verified: "2026-11-13",
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" },
@@ -88,7 +88,7 @@ export const GENERATED_PRICE_SNAPSHOT = {
88
88
  { "providerID": "deepseek", "id": "deepseek-v4-pro", "prices": [{ "input": 0.66, "output": 1.98, "cache": { "read": 0.022 } }], "released": "2026-08-13" },
89
89
  { "providerID": "google", "id": "deep-research-max-preview-04-2026", "prices": [{ "input": 2, "output": 12, "cache": { "read": 0.2 } }, { "input": 4, "output": 18, "cache": { "read": 0.4 }, "tier": { "type": "context", "size": 200000 } }], "released": "2026-04-21" },
90
90
  { "providerID": "google", "id": "deep-research-preview-04-2026", "prices": [{ "input": 2, "output": 12, "cache": { "read": 0.2 } }, { "input": 4, "output": 18, "cache": { "read": 0.4 }, "tier": { "type": "context", "size": 200000 } }], "released": "2026-04-21" },
91
- { "providerID": "google", "id": "gemini-2.5-computer-use-preview-10-2025", "prices": [{ "input": 1.25, "output": 10 }, { "input": 2.5, "output": 15, "tier": { "type": "context", "size": 200000 } }], "released": "2025-10-07" },
91
+ { "providerID": "google", "id": "gemini-2.5-computer-use-preview-10-2025", "prices": [{ "input": 1.25, "output": 10 }], "released": "2025-10-07" },
92
92
  { "providerID": "google", "id": "gemini-2.5-flash", "prices": [{ "input": 0.3, "output": 2.5, "cache": { "read": 0.03 } }], "released": "2025-06-17" },
93
93
  { "providerID": "google", "id": "gemini-2.5-flash-lite", "prices": [{ "input": 0.1, "output": 0.4, "cache": { "read": 0.01 } }], "released": "2025-06-17" },
94
94
  { "providerID": "google", "id": "gemini-2.5-pro", "prices": [{ "input": 1.25, "output": 10, "cache": { "read": 0.125 } }, { "input": 2.5, "output": 15, "cache": { "read": 0.25 }, "tier": { "type": "context", "size": 200000 } }], "released": "2025-06-17" },
@@ -104,9 +104,12 @@ export const GENERATED_PRICE_SNAPSHOT = {
104
104
  { "providerID": "google", "id": "gemini-3.8-flash", "prices": [{ "input": 0.75, "output": 3.75, "cache": { "read": 0.075 } }], "released": "2026-09-02" },
105
105
  { "providerID": "google", "id": "gemini-4-argon", "prices": [{ "input": 2, "output": 10, "cache": { "read": 0.1 } }], "released": "2026-10-13" },
106
106
  { "providerID": "google", "id": "gemini-4-carbon", "prices": [{ "input": 2, "output": 10, "cache": { "read": 0.1 } }], "released": "2026-11-10" },
107
+ { "providerID": "google", "id": "gemini-4-hydrogen", "prices": [{ "input": 1.5, "output": 7.5, "cache": { "read": 0.075 } }], "released": "2026-11-12" },
107
108
  { "providerID": "google", "id": "gemini-flash-latest", "prices": [{ "input": 0.75, "output": 3.75, "cache": { "read": 0.075 } }], "released": "2026-08-13" },
108
109
  { "providerID": "google", "id": "gemini-flash-lite-latest", "prices": [{ "input": 0.3, "output": 2.5, "cache": { "read": 0.03 } }], "released": "2026-07-21" },
109
110
  { "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" },
111
+ { "providerID": "google", "id": "gemma-4-26b-a4b-it", "prices": [{ "input": 0, "output": 0 }], "released": "2026-04-02" },
112
+ { "providerID": "google", "id": "gemma-4-31b-it", "prices": [{ "input": 0, "output": 0 }], "released": "2026-04-02" },
110
113
  { "providerID": "inception", "id": "mercury-2", "prices": [{ "input": 0.25, "output": 0.75, "cache": { "read": 0.025 } }], "released": "2026-02-24" },
111
114
  { "providerID": "inception", "id": "mercury-2.5", "prices": [{ "input": 0.2, "output": 0.75, "cache": { "read": 0.02 } }], "released": "2026-09-08" },
112
115
  { "providerID": "inception", "id": "mercury-3", "prices": [{ "input": 0.1, "output": 0.35, "cache": { "read": 0.01 } }], "released": "2026-10-16" },
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-11-10";
17
+ verified: "2026-11-13";
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.21",
3
+ "version": "0.4.22",
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",