opencode-quotas 0.0.2-rc3 → 0.0.2

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 (111) hide show
  1. package/dist/interfaces.d.ts +1 -1
  2. package/package.json +3 -2
  3. package/schemas/quotas.schema.json +228 -0
  4. package/dist/src/cli.d.ts +0 -3
  5. package/dist/src/cli.d.ts.map +0 -1
  6. package/dist/src/cli.js +0 -42
  7. package/dist/src/cli.js.map +0 -1
  8. package/dist/src/constants.d.ts +0 -9
  9. package/dist/src/constants.d.ts.map +0 -1
  10. package/dist/src/constants.js +0 -15
  11. package/dist/src/constants.js.map +0 -1
  12. package/dist/src/defaults.d.ts +0 -3
  13. package/dist/src/defaults.d.ts.map +0 -1
  14. package/dist/src/defaults.js +0 -52
  15. package/dist/src/defaults.js.map +0 -1
  16. package/dist/src/index.d.ts +0 -6
  17. package/dist/src/index.d.ts.map +0 -1
  18. package/dist/src/index.js +0 -265
  19. package/dist/src/index.js.map +0 -1
  20. package/dist/src/interfaces.d.ts +0 -197
  21. package/dist/src/interfaces.d.ts.map +0 -1
  22. package/dist/src/interfaces.js +0 -2
  23. package/dist/src/interfaces.js.map +0 -1
  24. package/dist/src/logger.d.ts +0 -14
  25. package/dist/src/logger.d.ts.map +0 -1
  26. package/dist/src/logger.js +0 -44
  27. package/dist/src/logger.js.map +0 -1
  28. package/dist/src/plugin-state.d.ts +0 -20
  29. package/dist/src/plugin-state.d.ts.map +0 -1
  30. package/dist/src/plugin-state.js +0 -53
  31. package/dist/src/plugin-state.js.map +0 -1
  32. package/dist/src/providers/antigravity/auth.d.ts +0 -12
  33. package/dist/src/providers/antigravity/auth.d.ts.map +0 -1
  34. package/dist/src/providers/antigravity/auth.js +0 -109
  35. package/dist/src/providers/antigravity/auth.js.map +0 -1
  36. package/dist/src/providers/antigravity/index.d.ts +0 -2
  37. package/dist/src/providers/antigravity/index.d.ts.map +0 -1
  38. package/dist/src/providers/antigravity/index.js +0 -2
  39. package/dist/src/providers/antigravity/index.js.map +0 -1
  40. package/dist/src/providers/antigravity/provider.d.ts +0 -34
  41. package/dist/src/providers/antigravity/provider.d.ts.map +0 -1
  42. package/dist/src/providers/antigravity/provider.js +0 -216
  43. package/dist/src/providers/antigravity/provider.js.map +0 -1
  44. package/dist/src/providers/codex.d.ts +0 -4
  45. package/dist/src/providers/codex.d.ts.map +0 -1
  46. package/dist/src/providers/codex.js +0 -242
  47. package/dist/src/providers/codex.js.map +0 -1
  48. package/dist/src/providers/github.d.ts +0 -4
  49. package/dist/src/providers/github.d.ts.map +0 -1
  50. package/dist/src/providers/github.js +0 -139
  51. package/dist/src/providers/github.js.map +0 -1
  52. package/dist/src/quota-cache.d.ts +0 -26
  53. package/dist/src/quota-cache.d.ts.map +0 -1
  54. package/dist/src/quota-cache.js +0 -107
  55. package/dist/src/quota-cache.js.map +0 -1
  56. package/dist/src/registry.d.ts +0 -3
  57. package/dist/src/registry.d.ts.map +0 -1
  58. package/dist/src/registry.js +0 -23
  59. package/dist/src/registry.js.map +0 -1
  60. package/dist/src/services/aggregation-service.d.ts +0 -34
  61. package/dist/src/services/aggregation-service.d.ts.map +0 -1
  62. package/dist/src/services/aggregation-service.js +0 -89
  63. package/dist/src/services/aggregation-service.js.map +0 -1
  64. package/dist/src/services/config-loader.d.ts +0 -25
  65. package/dist/src/services/config-loader.d.ts.map +0 -1
  66. package/dist/src/services/config-loader.js +0 -105
  67. package/dist/src/services/config-loader.js.map +0 -1
  68. package/dist/src/services/history-service.d.ts +0 -15
  69. package/dist/src/services/history-service.d.ts.map +0 -1
  70. package/dist/src/services/history-service.js +0 -99
  71. package/dist/src/services/history-service.js.map +0 -1
  72. package/dist/src/services/prediction-engine.d.ts +0 -47
  73. package/dist/src/services/prediction-engine.d.ts.map +0 -1
  74. package/dist/src/services/prediction-engine.js +0 -94
  75. package/dist/src/services/prediction-engine.js.map +0 -1
  76. package/dist/src/services/quota-service.d.ts +0 -41
  77. package/dist/src/services/quota-service.d.ts.map +0 -1
  78. package/dist/src/services/quota-service.js +0 -257
  79. package/dist/src/services/quota-service.js.map +0 -1
  80. package/dist/src/tools/quotas.d.ts +0 -11
  81. package/dist/src/tools/quotas.d.ts.map +0 -1
  82. package/dist/src/tools/quotas.js +0 -62
  83. package/dist/src/tools/quotas.js.map +0 -1
  84. package/dist/src/ui/progress-bar.d.ts +0 -20
  85. package/dist/src/ui/progress-bar.d.ts.map +0 -1
  86. package/dist/src/ui/progress-bar.js +0 -150
  87. package/dist/src/ui/progress-bar.js.map +0 -1
  88. package/dist/src/ui/quota-table.d.ts +0 -15
  89. package/dist/src/ui/quota-table.d.ts.map +0 -1
  90. package/dist/src/ui/quota-table.js +0 -136
  91. package/dist/src/ui/quota-table.js.map +0 -1
  92. package/dist/src/utils/debug.d.ts +0 -1
  93. package/dist/src/utils/debug.d.ts.map +0 -1
  94. package/dist/src/utils/debug.js +0 -3
  95. package/dist/src/utils/debug.js.map +0 -1
  96. package/dist/src/utils/paths.d.ts +0 -7
  97. package/dist/src/utils/paths.d.ts.map +0 -1
  98. package/dist/src/utils/paths.js +0 -37
  99. package/dist/src/utils/paths.js.map +0 -1
  100. package/dist/src/utils/time.d.ts +0 -3
  101. package/dist/src/utils/time.d.ts.map +0 -1
  102. package/dist/src/utils/time.js +0 -38
  103. package/dist/src/utils/time.js.map +0 -1
  104. package/dist/src/utils/validation.d.ts +0 -6
  105. package/dist/src/utils/validation.d.ts.map +0 -1
  106. package/dist/src/utils/validation.js +0 -66
  107. package/dist/src/utils/validation.js.map +0 -1
  108. package/dist/tools/quotas.d.ts +0 -11
  109. package/dist/tools/quotas.d.ts.map +0 -1
  110. package/dist/tools/quotas.js +0 -62
  111. package/dist/tools/quotas.js.map +0 -1
@@ -85,7 +85,7 @@ export interface QuotaConfig {
85
85
  predictionWindowMinutes?: number;
86
86
  /**
87
87
  * Whether to show quotas that did not match any aggregation group.
88
- * Defaults to true.
88
+ * Defaults to false.
89
89
  */
90
90
  showUnaggregated?: boolean;
91
91
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-quotas",
3
- "version": "0.0.2-rc3",
3
+ "version": "0.0.2",
4
4
  "description": "Opencode quota hub plugin for Antigravity and Codex",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,12 +18,13 @@
18
18
  "files": [
19
19
  "dist",
20
20
  "src",
21
+ "schemas",
21
22
  "README.md",
22
23
  "LICENSE"
23
24
  ],
24
25
  "scripts": {
25
26
  "opencode-quotas": "bun src/cli.ts",
26
- "build": "tsc -p tsconfig.build.json",
27
+ "build": "rm -rf dist && tsc -p tsconfig.build.json",
27
28
  "typecheck": "tsc --noEmit"
28
29
  },
29
30
  "engines": {
@@ -0,0 +1,228 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Opencode Quotas Configuration",
4
+ "description": "Configuration schema for the Opencode Quotas plugin.",
5
+ "type": "object",
6
+ "properties": {
7
+ "displayMode": {
8
+ "type": "string",
9
+ "enum": ["simple", "detailed", "hidden"],
10
+ "default": "simple",
11
+ "description": "How to display the quotas."
12
+ },
13
+ "progressBar": {
14
+ "type": "object",
15
+ "description": "Configuration for the ASCII progress bar.",
16
+ "properties": {
17
+ "width": {
18
+ "type": "integer",
19
+ "minimum": 1,
20
+ "description": "Width of the progress bar in characters."
21
+ },
22
+ "filledChar": {
23
+ "type": "string",
24
+ "description": "Character used for the filled portion of the bar."
25
+ },
26
+ "emptyChar": {
27
+ "type": "string",
28
+ "description": "Character used for the empty portion of the bar."
29
+ },
30
+ "show": {
31
+ "type": "string",
32
+ "enum": ["used", "available"],
33
+ "description": "Whether to show used or available percentage."
34
+ },
35
+ "color": {
36
+ "type": "boolean",
37
+ "default": false,
38
+ "description": "Enable ANSI colors."
39
+ },
40
+ "gradients": {
41
+ "type": "array",
42
+ "description": "Color gradients based on usage thresholds.",
43
+ "items": {
44
+ "type": "object",
45
+ "properties": {
46
+ "threshold": {
47
+ "type": "number",
48
+ "minimum": 0,
49
+ "maximum": 1,
50
+ "description": "Threshold (0-1) at which this color applies."
51
+ },
52
+ "color": {
53
+ "type": "string",
54
+ "enum": [
55
+ "red",
56
+ "green",
57
+ "yellow",
58
+ "blue",
59
+ "magenta",
60
+ "cyan",
61
+ "white",
62
+ "gray",
63
+ "bold",
64
+ "dim",
65
+ "reset"
66
+ ],
67
+ "description": "ANSI color code name."
68
+ }
69
+ },
70
+ "required": ["threshold", "color"]
71
+ }
72
+ }
73
+ }
74
+ },
75
+ "table": {
76
+ "type": "object",
77
+ "description": "Configuration for the quota table.",
78
+ "properties": {
79
+ "columns": {
80
+ "type": "array",
81
+ "description": "Columns to display in the table.",
82
+ "items": {
83
+ "type": "string",
84
+ "enum": [
85
+ "name",
86
+ "bar",
87
+ "percent",
88
+ "value",
89
+ "reset",
90
+ "window",
91
+ "info",
92
+ "status",
93
+ "ettl"
94
+ ]
95
+ }
96
+ },
97
+ "header": {
98
+ "type": "boolean",
99
+ "default": true,
100
+ "description": "Whether to render the table header row (column labels)."
101
+ }
102
+ }
103
+ },
104
+ "footer": {
105
+ "type": "boolean",
106
+ "default": true,
107
+ "description": "Whether to show quotas in the chat footer automatically."
108
+ },
109
+ "showFooterTitle": {
110
+ "type": "boolean",
111
+ "default": true,
112
+ "description": "Whether to show the plugin title/header in the footer."
113
+ },
114
+
115
+ "disabled": {
116
+ "type": "array",
117
+ "items": {
118
+ "type": "string"
119
+ },
120
+ "description": "List of quota IDs to hide from display."
121
+ },
122
+ "filterByCurrentModel": {
123
+ "type": "boolean",
124
+ "default": false,
125
+ "description": "Only show quotas relevant to the current model (best-effort matching)."
126
+ },
127
+ "debug": {
128
+ "type": "boolean",
129
+ "default": false,
130
+ "description": "Enable debug logging."
131
+ },
132
+ "enableExperimentalGithub": {
133
+ "type": "boolean",
134
+ "default": false,
135
+ "description": "Enable the experimental GitHub Copilot provider (disabled by default)."
136
+ },
137
+ "aggregatedGroups": {
138
+ "type": "array",
139
+ "description": "Optional aggregation groups to combine multiple quotas.",
140
+ "items": {
141
+ "type": "object",
142
+ "properties": {
143
+ "id": {
144
+ "type": "string",
145
+ "description": "Unique ID for the aggregated group."
146
+ },
147
+ "name": {
148
+ "type": "string",
149
+ "description": "Display name."
150
+ },
151
+ "sources": {
152
+ "type": "array",
153
+ "items": {
154
+ "type": "string"
155
+ },
156
+ "description": "IDs of quotas to aggregate."
157
+ },
158
+ "patterns": {
159
+ "type": "array",
160
+ "items": {
161
+ "type": "string"
162
+ },
163
+ "description": "Patterns to match against raw quota IDs/names"
164
+ },
165
+ "providerId": {
166
+ "type": "string",
167
+ "description": "Limit pattern matching to specific provider"
168
+ },
169
+ "strategy": {
170
+ "type": "string",
171
+ "enum": [
172
+ "most_critical",
173
+ "min",
174
+ "max",
175
+ "mean",
176
+ "median"
177
+ ],
178
+ "default": "most_critical",
179
+ "description": "Strategy for aggregation."
180
+ },
181
+ "predictionWindowMinutes": {
182
+ "type": "number",
183
+ "default": 60,
184
+ "description": "Time window for regression analysis (minutes)."
185
+ },
186
+ "predictionShortWindowMinutes": {
187
+ "type": "number",
188
+ "default": 5,
189
+ "description": "Short time window for capturing spikes (minutes)."
190
+ }
191
+ },
192
+ "required": ["id", "name"]
193
+ }
194
+ },
195
+ "historyMaxAgeHours": {
196
+ "type": "number",
197
+ "default": 24,
198
+ "description": "Max history age in hours."
199
+ },
200
+ "pollingInterval": {
201
+ "type": "number",
202
+ "default": 60000,
203
+ "description": "Polling interval in milliseconds."
204
+ },
205
+ "predictionShortWindowMinutes": {
206
+ "type": "number",
207
+ "default": 5,
208
+ "description": "Short time window for regression to capture spikes (minutes)."
209
+ },
210
+ "predictionWindowMinutes": {
211
+ "type": "number",
212
+ "default": 60,
213
+ "description": "Time window for regression analysis (minutes)."
214
+ },
215
+ "showUnaggregated": {
216
+ "type": "boolean",
217
+ "default": false,
218
+ "description": "Whether to show quotas that did not match any aggregation group."
219
+ },
220
+ "historyResetThreshold": {
221
+ "type": "number",
222
+ "default": 20,
223
+ "minimum": 0,
224
+ "maximum": 100,
225
+ "description": "Threshold for detecting a quota reset (0-100)."
226
+ }
227
+ }
228
+ }
package/dist/src/cli.d.ts DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env bun
2
- export {};
3
- //# sourceMappingURL=cli.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":""}
package/dist/src/cli.js DELETED
@@ -1,42 +0,0 @@
1
- #!/usr/bin/env bun
2
- import { QuotaService } from "./services/quota-service";
3
- import { HistoryService } from "./services/history-service";
4
- import { renderQuotaTable } from "./ui/quota-table";
5
- async function main() {
6
- if (process.argv.includes("--no-color")) {
7
- process.env.OPENCODE_QUOTAS_NO_COLOR = "1";
8
- }
9
- const historyService = new HistoryService();
10
- await historyService.init();
11
- const quotaService = new QuotaService();
12
- await quotaService.init(process.cwd(), historyService);
13
- const config = quotaService.getConfig();
14
- // Parse arguments for provider and model filtering
15
- let providerId;
16
- let modelId;
17
- const providerIdx = process.argv.indexOf("--provider");
18
- if (providerIdx !== -1 && providerIdx + 1 < process.argv.length) {
19
- providerId = process.argv[providerIdx + 1];
20
- }
21
- const modelIdx = process.argv.indexOf("--model");
22
- if (modelIdx !== -1 && modelIdx + 1 < process.argv.length) {
23
- modelId = process.argv[modelIdx + 1];
24
- }
25
- const filteredResults = await quotaService.getQuotas({ providerId, modelId });
26
- if (filteredResults.length === 0) {
27
- console.log("No active quotas found.");
28
- return;
29
- }
30
- console.log(""); // Empty line
31
- console.log("📊 OpenCode Quotas");
32
- console.log("------------------");
33
- renderQuotaTable(filteredResults, {
34
- progressBarConfig: config.progressBar,
35
- tableConfig: config.table,
36
- }).forEach((row) => {
37
- console.log(row.line);
38
- });
39
- console.log(""); // Empty line
40
- }
41
- main().catch(console.error);
42
- //# sourceMappingURL=cli.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,KAAK,UAAU,IAAI;IACf,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC;QACtC,OAAO,CAAC,GAAG,CAAC,wBAAwB,GAAG,GAAG,CAAC;IAC/C,CAAC;IAED,MAAM,cAAc,GAAG,IAAI,cAAc,EAAE,CAAC;IAC5C,MAAM,cAAc,CAAC,IAAI,EAAE,CAAC;IAE5B,MAAM,YAAY,GAAG,IAAI,YAAY,EAAE,CAAC;IACxC,MAAM,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,cAAc,CAAC,CAAC;IAEvD,MAAM,MAAM,GAAG,YAAY,CAAC,SAAS,EAAE,CAAC;IAExC,mDAAmD;IACnD,IAAI,UAA8B,CAAC;IACnC,IAAI,OAA2B,CAAC;IAEhC,MAAM,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACvD,IAAI,WAAW,KAAK,CAAC,CAAC,IAAI,WAAW,GAAG,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QAC9D,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC;IAC/C,CAAC;IAED,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACjD,IAAI,QAAQ,KAAK,CAAC,CAAC,IAAI,QAAQ,GAAG,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QACxD,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC;IACzC,CAAC;IAED,MAAM,eAAe,GAAG,MAAM,YAAY,CAAC,SAAS,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC;IAE9E,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC/B,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;QACvC,OAAO;IACX,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa;IAC9B,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IAClC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IAElC,gBAAgB,CAAC,eAAe,EAAE;QAC9B,iBAAiB,EAAE,MAAM,CAAC,WAAW;QACrC,WAAW,EAAE,MAAM,CAAC,KAAK;KAC5B,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACf,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;IACH,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa;AAClC,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -1,9 +0,0 @@
1
- export declare const PLUGIN_FOOTER_SIGNATURE = "_Opencode Quotas";
2
- export declare const REASONING_PATTERNS: RegExp[];
3
- export declare const DEBUG_LOG_FILENAME = "quotas-debug.log";
4
- export declare const SKIP_REASONS: {
5
- REASONING: string;
6
- SUBAGENT: string;
7
- FOOTER_PRESENT: string;
8
- };
9
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,qBAAqB,CAAC;AAG1D,eAAO,MAAM,kBAAkB,UAI9B,CAAC;AAGF,eAAO,MAAM,kBAAkB,qBAAqB,CAAC;AAErD,eAAO,MAAM,YAAY;;;;CAIxB,CAAC"}
@@ -1,15 +0,0 @@
1
- export const PLUGIN_FOOTER_SIGNATURE = "_Opencode Quotas";
2
- // Heuristic patterns for detecting reasoning/thinking blocks
3
- export const REASONING_PATTERNS = [
4
- /^<thinking>/i,
5
- /^<antThinking>/i,
6
- /^(Thinking|Reasoning|Analysis):\s*(\n|$)/i
7
- ];
8
- // File paths
9
- export const DEBUG_LOG_FILENAME = "quotas-debug.log";
10
- export const SKIP_REASONS = {
11
- REASONING: "skip:reasoning",
12
- SUBAGENT: "skip:subagent",
13
- FOOTER_PRESENT: "skip:footer_present",
14
- };
15
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG,kBAAkB,CAAC;AAE1D,6DAA6D;AAC7D,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,cAAc;IACd,iBAAiB;IACjB,2CAA2C;CAC9C,CAAC;AAEF,aAAa;AACb,MAAM,CAAC,MAAM,kBAAkB,GAAG,kBAAkB,CAAC;AAErD,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,SAAS,EAAE,gBAAgB;IAC3B,QAAQ,EAAE,eAAe;IACzB,cAAc,EAAE,qBAAqB;CACxC,CAAC"}
@@ -1,3 +0,0 @@
1
- import { type QuotaConfig } from "./interfaces";
2
- export declare const DEFAULT_CONFIG: QuotaConfig;
3
- //# sourceMappingURL=defaults.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,eAAO,MAAM,cAAc,EAAE,WAiD5B,CAAC"}
@@ -1,52 +0,0 @@
1
- // Default configuration for quota rendering and grouping
2
- export const DEFAULT_CONFIG = {
3
- displayMode: "simple",
4
- footer: true,
5
- showFooterTitle: true,
6
- debug: false,
7
- progressBar: {
8
- color: false,
9
- gradients: [
10
- { threshold: 0.5, color: "green" },
11
- { threshold: 0.8, color: "yellow" },
12
- { threshold: 1.0, color: "red" },
13
- ],
14
- },
15
- table: {
16
- header: true,
17
- },
18
- filterByCurrentModel: false,
19
- showUnaggregated: false,
20
- aggregatedGroups: [
21
- {
22
- id: "ag-flash",
23
- name: "Antigravity Flash",
24
- patterns: ["flash"],
25
- providerId: "antigravity",
26
- strategy: "most_critical",
27
- },
28
- {
29
- id: "ag-pro",
30
- name: "Antigravity Pro",
31
- patterns: ["pro", "gemini"],
32
- providerId: "antigravity",
33
- strategy: "most_critical",
34
- },
35
- {
36
- id: "ag-premium",
37
- name: "Antigravity Premium",
38
- patterns: ["claude", "gpt", "o1"],
39
- providerId: "antigravity",
40
- strategy: "most_critical",
41
- },
42
- {
43
- id: "codex-smart",
44
- name: "Codex Usage",
45
- sources: ["codex-primary", "codex-secondary"],
46
- strategy: "most_critical",
47
- },
48
- ],
49
- historyMaxAgeHours: 24,
50
- pollingInterval: 60_000,
51
- };
52
- //# sourceMappingURL=defaults.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../src/defaults.ts"],"names":[],"mappings":"AAEA,yDAAyD;AACzD,MAAM,CAAC,MAAM,cAAc,GAAgB;IACvC,WAAW,EAAE,QAAQ;IACrB,MAAM,EAAE,IAAI;IACZ,eAAe,EAAE,IAAI;IACrB,KAAK,EAAE,KAAK;IACZ,WAAW,EAAE;QACT,KAAK,EAAE,KAAK;QACZ,SAAS,EAAE;YACP,EAAE,SAAS,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE;YAClC,EAAE,SAAS,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE;YACnC,EAAE,SAAS,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE;SACnC;KACJ;IACD,KAAK,EAAE;QACH,MAAM,EAAE,IAAI;KACf;IACD,oBAAoB,EAAE,KAAK;IAC3B,gBAAgB,EAAE,KAAK;IACvB,gBAAgB,EAAE;QACd;YACI,EAAE,EAAE,UAAU;YACd,IAAI,EAAE,mBAAmB;YACzB,QAAQ,EAAE,CAAC,OAAO,CAAC;YACnB,UAAU,EAAE,aAAa;YACzB,QAAQ,EAAE,eAAe;SAC5B;QACD;YACI,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,iBAAiB;YACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC;YAC3B,UAAU,EAAE,aAAa;YACzB,QAAQ,EAAE,eAAe;SAC5B;QACD;YACI,EAAE,EAAE,YAAY;YAChB,IAAI,EAAE,qBAAqB;YAC3B,QAAQ,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,CAAC;YACjC,UAAU,EAAE,aAAa;YACzB,QAAQ,EAAE,eAAe;SAC5B;QACD;YACI,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,aAAa;YACnB,OAAO,EAAE,CAAC,eAAe,EAAE,iBAAiB,CAAC;YAC7C,QAAQ,EAAE,eAAe;SAC5B;KACJ;IACD,kBAAkB,EAAE,EAAE;IACtB,eAAe,EAAE,MAAM;CAC1B,CAAC"}
@@ -1,6 +0,0 @@
1
- import { type Plugin } from "@opencode-ai/plugin";
2
- /**
3
- * QuotaHub Plugin for OpenCode.ai
4
- */
5
- export declare const QuotaHubPlugin: Plugin;
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAc,MAAM,qBAAqB,CAAC;AAkC9D;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,MA4S5B,CAAC"}