rosession 1.0.0 → 1.1.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.
package/bin/rosession.mjs CHANGED
@@ -11,7 +11,7 @@ import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node
11
11
  import { homedir } from "node:os";
12
12
  import { dirname, join } from "node:path";
13
13
 
14
- const VERSION = "1.0.0";
14
+ const VERSION = "1.1.0";
15
15
  const DEFAULT_URL = "https://rosession.com";
16
16
 
17
17
  // ---------------------------------------------------------------- args
@@ -273,7 +273,11 @@ function inputFor(tool) {
273
273
  const input = {};
274
274
  for (const [k, v] of Object.entries(flags)) if (!["json", "url", "token", "help", "every"].includes(k)) input[k] = v === true ? true : /^\d+$/.test(v) ? Number(v) : v;
275
275
  const [game, extra] = words.slice(1);
276
- if (game !== undefined && tool !== "games") input.game = game;
276
+ // public Roblox stats: the first word is that tool's main input, not one of your games
277
+ const FIRST = { roblox_search: "query", roblox_game: "universe_id", roblox_compare: "universe_ids", roblox_rankings: "list" };
278
+ if (FIRST[tool]) {
279
+ if (game !== undefined) input[FIRST[tool]] = game;
280
+ } else if (game !== undefined && tool !== "games") input.game = game;
277
281
  if (extra !== undefined && REQUIRED[tool]) input[REQUIRED[tool]] = extra;
278
282
  input.tz = -new Date().getTimezoneOffset();
279
283
  return input;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rosession",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Ask your Roblox game: RoSession analytics in your terminal and for AI agents (Claude Code, Codex, Cursor).",
5
5
  "type": "module",
6
6
  "bin": { "rosession": "bin/rosession.mjs" },