opencode-usage 0.2.5 → 0.3.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/__tests__/aggregator.test.d.ts +1 -0
- package/dist/__tests__/cli.test.d.ts +1 -0
- package/dist/__tests__/codex-client.test.d.ts +1 -0
- package/dist/__tests__/dashboard-integration.test.d.ts +1 -0
- package/dist/__tests__/loader.perf.test.d.ts +1 -0
- package/dist/__tests__/loader.test.d.ts +1 -0
- package/dist/__tests__/pricing.test.d.ts +1 -0
- package/dist/__tests__/quota-loader.test.d.ts +1 -0
- package/dist/__tests__/quota-panel.test.d.ts +1 -0
- package/dist/__tests__/renderer.test.d.ts +1 -0
- package/dist/__tests__/status-bar.test.d.ts +1 -0
- package/dist/__tests__/usage-table.test.d.ts +1 -0
- package/dist/cli.d.ts +4 -0
- package/dist/codex-client.d.ts +6 -0
- package/dist/config-commands.d.ts +5 -0
- package/dist/config.d.ts +9 -0
- package/dist/dashboard/quota-panel.d.ts +5 -0
- package/dist/dashboard/status-bar.d.ts +9 -0
- package/dist/dashboard/usage-table.d.ts +7 -0
- package/dist/dashboard-solid.d.ts +8 -0
- package/dist/dashboard.d.ts +10 -0
- package/dist/highlights-eq9cgrbb.scm +604 -0
- package/dist/highlights-ghv9g403.scm +205 -0
- package/dist/highlights-hk7bwhj4.scm +284 -0
- package/dist/highlights-r812a2qc.scm +150 -0
- package/dist/highlights-x6tmsnaa.scm +115 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +28756 -60
- package/dist/index.js.map +17 -7
- package/dist/injections-73j83es3.scm +27 -0
- package/dist/loader.d.ts +14 -1
- package/dist/quota-loader.d.ts +12 -0
- package/dist/tree-sitter-javascript-nd0q4pe9.wasm +0 -0
- package/dist/tree-sitter-markdown-411r6y9b.wasm +0 -0
- package/dist/tree-sitter-markdown_inline-j5349f42.wasm +0 -0
- package/dist/tree-sitter-typescript-zxjzwt75.wasm +0 -0
- package/dist/tree-sitter-zig-e78zbjpm.wasm +0 -0
- package/dist/types.d.ts +78 -0
- package/package.json +9 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/cli.d.ts
CHANGED
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration file loader for opencode-usage
|
|
3
|
+
*/
|
|
4
|
+
export type Config = {
|
|
5
|
+
codexToken?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function getConfigPath(): string;
|
|
8
|
+
export declare function loadConfig(): Promise<Config>;
|
|
9
|
+
export declare function saveConfig(config: Config): Promise<void>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Usage table renderer for dashboard (compact version)
|
|
3
|
+
*/
|
|
4
|
+
import type { DailyStats } from "../types.js";
|
|
5
|
+
export type TableWidthTier = "narrow" | "medium" | "wide";
|
|
6
|
+
export declare function getTableWidthTier(width: number): TableWidthTier;
|
|
7
|
+
export declare function renderUsageTable(dailyStats: Map<string, DailyStats>, width?: number): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard orchestrator - unified multi-source usage view
|
|
3
|
+
*/
|
|
4
|
+
export type DashboardOptions = {
|
|
5
|
+
codexToken?: string;
|
|
6
|
+
refreshInterval?: number;
|
|
7
|
+
providerFilter?: string;
|
|
8
|
+
daysFilter?: number;
|
|
9
|
+
};
|
|
10
|
+
export declare function runDashboard(options: DashboardOptions): Promise<void>;
|