@azumag/opencode-rate-limit-fallback 1.27.0 → 1.30.0

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,7 +1,7 @@
1
1
  /**
2
2
  * Metrics Manager - Handles metrics collection, aggregation, and reporting
3
3
  */
4
- import { RESET_INTERVAL_MS } from './types.js';
4
+ import { RESET_INTERVAL_MS } from '../types/index.js';
5
5
  import { getModelKey } from '../utils/helpers.js';
6
6
  /**
7
7
  * Metrics Manager class for collecting and reporting metrics
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azumag/opencode-rate-limit-fallback",
3
- "version": "1.27.0",
3
+ "version": "1.30.0",
4
4
  "description": "OpenCode plugin that automatically switches to fallback models when rate limited",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,11 +0,0 @@
1
- /**
2
- * Metrics-specific types for the MetricsManager
3
- */
4
- /**
5
- * Reset interval options for metrics
6
- */
7
- export type ResetInterval = "hourly" | "daily" | "weekly";
8
- /**
9
- * Reset interval values in milliseconds
10
- */
11
- export declare const RESET_INTERVAL_MS: Record<ResetInterval, number>;
@@ -1,11 +0,0 @@
1
- /**
2
- * Metrics-specific types for the MetricsManager
3
- */
4
- /**
5
- * Reset interval values in milliseconds
6
- */
7
- export const RESET_INTERVAL_MS = {
8
- hourly: 60 * 60 * 1000,
9
- daily: 24 * 60 * 60 * 1000,
10
- weekly: 7 * 24 * 60 * 60 * 1000,
11
- };