# v1.17.0 — Your Inventory Sorts Itself, Junk Sells in One Shot

Late-game inventories are a wall of 15-20 items in drop order, with your real loot buried between rusty pipes and stale energy drinks. Now `sq inventory` shows the four item kinds in their own sections, sorted best-to-worst, and `sq sell junk` clears the noise in one command — without ever touching your Rare and up.

---

## 📦 Inventory Grouped by Slot

`sq inventory` (and `sq status`) now lists your items in fixed sections — **Weapons, Armor, Rings, Potions** — each with a count and sorted by **rarity descending, then power descending**. Empty sections are skipped. The 1-to-N numbering stays continuous across sections so you still see your total at a glance.

```
📦 Inventory
────────────────────────────────────────
⚔  Weapons (7)
  1. Pike of Ping (+7) [Uncommon]
  2. Pike of Ping (+6) [Uncommon]
  3. Keyboard of Smiting (+4) [Common]
  4. Tangled Earbuds Whip (+3) [Common]
  5. Thermal Paste Spatula (+2) [Common]
  6. Tangled Earbuds Whip (+1) [Common]
  7. Paperclip of Poking (+1) [Common]
🛡  Armor (4)
  8. Chaps of Caching (+5) [Uncommon]
  ...
💍 Rings (2)
  ...
🧪 Potions (3)
  ...
```

The slot label disappears from each row — the section header carries it now. Item references (`sq equip rusty`, `sq drop pike.2`) still work exactly the same; they were always by name, never by displayed number.

---

## 🧹 `sq sell junk` — One-Shot Sweep

Run it from your home directory and every **Common and Uncommon** item in your inventory turns into gold in one pass. **Rare, Epic, and Legendary are never touched.**

```
$ cd ~ && sq sell junk
💰 Sold 15 junk items for 253 gold.
   Gold: 3483 → 3736
```

If there's nothing to clear:

```
⚠️  No junk in your inventory. Rare and up are kept.
```

Sale prices are the same as single-item `sq sell` (half the shop's buy price), and the same home-directory rule applies — the shop only operates from `$HOME`.

---

**Saves are unchanged. CLI surface is unchanged. No migration needed.**

**Full Changelog**: https://github.com/duysqubix/shellquest/compare/v1.16.0...v1.17.0
