@inferhub/opencode-usage 0.1.0 → 0.1.1

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.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type AccountUsage } from "@inferhub/usage-client";
1
+ import { type AccountUsage } from "@inferhub/usage";
2
2
  type Opts = {
3
3
  apiKey?: string;
4
4
  baseUrl?: string;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { fetchAccountUsage, formatReport, money, normalizeBaseUrl, resolveAuth, } from "@inferhub/usage-client";
1
+ import { fetchAccountUsage, formatReport, money, normalizeBaseUrl, resolveAuth, } from "@inferhub/usage";
2
2
  let lastUsage = null;
3
3
  async function loadUsage(opts = {}) {
4
4
  const auth = opts.apiKey
package/dist/tui.js CHANGED
@@ -9,7 +9,7 @@
9
9
  * Note: TUI plugins require OpenCode's TUI module export (`./tui`). If the
10
10
  * runtime version only supports server plugins, the server tool still works.
11
11
  */
12
- import { fetchAccountUsageAuto, formatStatusLine, money, shortModel, } from "@inferhub/usage-client";
12
+ import { fetchAccountUsageAuto, formatStatusLine, money, shortModel, } from "@inferhub/usage";
13
13
  let cached = null;
14
14
  let sessionCost = null;
15
15
  let sessionModel = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inferhub/opencode-usage",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "OpenCode plugin: InferHub balance, session/day/all-time usage, top model",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "prepublishOnly": "npm run build"
25
25
  },
26
26
  "dependencies": {
27
- "@inferhub/usage-client": "^0.1.0"
27
+ "@inferhub/usage": "^0.1.0"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@opencode-ai/plugin": ">=1.0.0"