@aggc/or-info 0.1.0 → 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/README.md CHANGED
@@ -13,6 +13,16 @@ to make informed decisions about which model to use.
13
13
 
14
14
  ```bash
15
15
  npm install -g @aggc/or-info
16
+ or-info --version
17
+ ```
18
+
19
+ The npm package is published as `@aggc/or-info`, but the installed executable is
20
+ `or-info`.
21
+
22
+ You can also run it without a global install:
23
+
24
+ ```bash
25
+ npx -y @aggc/or-info models --limit 5
16
26
  ```
17
27
 
18
28
  Requires Node.js 22 or later.
@@ -285,6 +295,36 @@ Additional entry points:
285
295
  - `npm run test:online:smoke` for the live smoke subset used by CI as a non-blocking signal
286
296
  - `npm run test:online` for the full live CLI/MCP suite, including edge cases
287
297
 
298
+ ## Release
299
+
300
+ Releases are published automatically to npm from GitHub Actions when a version tag is pushed.
301
+ The package is public under the `@aggc` npm scope.
302
+
303
+ Release checklist:
304
+
305
+ 1. Update `CHANGELOG.md`.
306
+ 2. Bump `version` in `package.json`.
307
+ 3. Run `npm test`.
308
+ 4. Commit and push to `main`.
309
+ 5. Create and push a matching tag:
310
+
311
+ ```bash
312
+ git tag v0.x.0
313
+ git push origin v0.x.0
314
+ ```
315
+
316
+ The publish workflow runs `npm ci`, `npm run test:local`, then
317
+ `npm publish --provenance --access public`.
318
+
319
+ Repository release requirements:
320
+
321
+ - GitHub secret `NPM_TOKEN` must exist for `jmtrs/or-info`.
322
+ - The token must have npm publish permission for `@aggc/or-info`.
323
+ - `id-token: write` is enabled so npm provenance is attached to published versions.
324
+
325
+ After the initial package bootstrap, prefer migrating to npm Trusted Publishing and then
326
+ remove `NPM_TOKEN` from the repository secrets.
327
+
288
328
  ## Contributing
289
329
 
290
330
  See [CONTRIBUTING.md](CONTRIBUTING.md) — adding new CLI commands or new MCP tools.
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,13 +1,13 @@
1
1
  {
2
2
  "name": "@aggc/or-info",
3
- "version": "0.1.0",
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": {
7
7
  "node": ">=22"
8
8
  },
9
9
  "bin": {
10
- "or-info": "./bin/or-info.mjs"
10
+ "or-info": "bin/or-info.mjs"
11
11
  },
12
12
  "files": [
13
13
  "bin",