@aggc/or-info 0.1.1 → 0.1.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.
package/bin/or-info.mjs CHANGED
@@ -40,7 +40,7 @@ async function apiKey() {
40
40
  program
41
41
  .name('or-info')
42
42
  .description('OpenRouter model info: prices, benchmarks, context and comparisons')
43
- .version('0.1.0')
43
+ .version('0.1.2')
44
44
  .option('--mcp', 'Start MCP server (stdio transport)');
45
45
 
46
46
  // ── models ─────────────────────────────────────────────────────────────────
package/lib/lmarena.mjs CHANGED
@@ -29,7 +29,7 @@ async function fetchPage(offset) {
29
29
  let res;
30
30
  try {
31
31
  res = await fetch(url, {
32
- headers: { 'User-Agent': 'or-info-cli/0.1.0' },
32
+ headers: { 'User-Agent': 'or-info-cli/0.1.2' },
33
33
  signal: AbortSignal.timeout(15_000),
34
34
  });
35
35
  } catch (err) {
@@ -2,7 +2,7 @@ import { get, set, TTL } from './cache.mjs';
2
2
  import { MODELS_CACHE } from './paths.mjs';
3
3
 
4
4
  const OR_BASE = 'https://openrouter.ai/api/v1';
5
- const USER_AGENT = 'or-info-cli/0.1.0 (https://github.com/jmtrs/or-info)';
5
+ const USER_AGENT = 'or-info-cli/0.1.2 (https://github.com/jmtrs/or-info)';
6
6
  const RETRYABLE_STATUSES = new Set([429, 500, 502, 503, 504]);
7
7
  const MAX_FETCH_RETRIES = 2;
8
8
 
package/mcp/server.mjs CHANGED
@@ -183,7 +183,7 @@ async function handleTool(name, args) {
183
183
 
184
184
  export async function startMcp() {
185
185
  const server = new Server(
186
- { name: 'or-info', version: '0.1.0' },
186
+ { name: 'or-info', version: '0.1.2' },
187
187
  { capabilities: { tools: {} } }
188
188
  );
189
189
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aggc/or-info",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "CLI + MCP server for OpenRouter models: prices, benchmarks, context and comparisons",
5
5
  "type": "module",
6
6
  "engines": {