Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,17 @@ uses [Semantic Versioning](https://semver.org/).

## [Unreleased]

## [0.12.1] — 2026-11-28

### Changed

- **Product matrix refreshed to the 2026-11-28 snapshot.** `devices` and the hardware overlay now read `matrix/2026-11-28/matrix.csv` (155 products). It adds LtAP LTE12 ax (`LtAP-5HaxT2HaxD&EG120K-EA`), and corrects RDS2216-2XG-4S+4XS-2XQ's CPU frequency to 2400 MHz (previously 2000 MHz). The hardware and product-page assessments were re-scraped the same day. FTC21-ups, KNOT Gateway HL9 and KNOT Gateway LR8 now have their own `/hardware` pages, so `routeros_device_lookup` links them instead of reporting them as www-only, and their curated exceptions are gone. Closes the scheduled device-map drift (#252).
- **YouTube transcript cache refreshed to the 2026-11-28 snapshot.** 749 videos (3 new): the LtAP LTE12 ax launch video and the RouterOS 7.24 and 7.25 changelog walkthroughs. All 746 earlier entries are unchanged.
- **MikroTik's new `/hardware` Quick Guides stay out of the device catalog.** The manual added about 120 "Quick Guide - …" pages, one per product that already has a `/hardware` page, plus a TG-LR82 / TG-LR92 user manual. They are documents about devices, not devices, so they claim no matrix row and `hardware_catalog` and `device_aliases` skip them. Otherwise each would show up as a second, unlinked device that competes for the real device's model codes.

### Fixed

- The hardware assessment no longer counts the manual's new tag index pages (`/hardware/tags`, `/hardware/tags/lora` and so on) as hardware pages. They failed to cache, which left every live run partial so its cache was never pruned.
- The README `/app` install steps now cover the storage-disk prerequisite (`/app/setup` or `/app/settings`, with sizing guidance): without a selected disk `/app/add` succeeds but the app sits idle with no error. The steps also note that the inline YAML's inner quotes must stay backslash-escaped. Phase 1 of #245.
- Release OCI images are smoke-tested with a real MCP session on both architectures before any version or floating tag moves. Each release runs `scripts/smoke-oci.ts` (initialize → tools/list → provenance match → search → chained get_page → command_tree → device_lookup) against the pushed image on native amd64 and arm64 Docker, asserting each leg pulled its own architecture; `:latest` / `:next` promote only after both legs pass. Previously only the amd64 image ran, and any non-404 HTTP response passed (#246).

Expand Down Expand Up @@ -967,7 +976,8 @@ Initial public release.
dev / package at `~/.rosetta/`).
- Bun tests for the query planner + schema health.

[Unreleased]: https://github.com/tikoci/rosetta/compare/v0.12.0...HEAD
[Unreleased]: https://github.com/tikoci/rosetta/compare/v0.12.1...HEAD
[0.12.1]: https://github.com/tikoci/rosetta/compare/v0.12.0...v0.12.1
[0.12.0]: https://github.com/tikoci/rosetta/compare/v0.11.3...v0.12.0
[0.11.3]: https://github.com/tikoci/rosetta/compare/v0.11.2...v0.11.3
[0.11.2]: https://github.com/tikoci/rosetta/compare/v0.11.1...v0.11.2
Expand Down
6 changes: 3 additions & 3 deletions DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ This pattern is used across several `tikoci` projects (forum archives, documenta
| Docusaurus manual `/docs` prose | <https://manual.mikrotik.com>, discovered via `sitemap.xml` | Raw Markdown (`{page}.md`; category pages `{category}.md`, falling back to `{category}/index.md`) | Current default prose source (T-0035); 360 in-scope `/docs` pages as of 2026-07-07, matching `llms.txt` exactly |
| Legacy Confluence HTML | `box/latest/ROS/` | 317 HTML files | March 2026 export, frozen; kept only for `make extract-legacy-confluence` historical rebuilds |
| inspect.json | [tikoci/restraml GitHub Pages](https://tikoci.github.io/restraml/) `<version>/extra/inspect.json` | JSON tree per version | Per-version command history; query `command_versions` for the built artifact's range |
| Product matrix | `matrix/2026-10-29/matrix.csv` | CSV, 34 columns | Committed late-October 2026 snapshot; query the built DB for counts |
| Product matrix | `matrix/2026-11-28/matrix.csv` | CSV, 34 columns | Committed late-November 2026 snapshot; query the built DB for counts |
| Product test results | `mikrotik.com/product/<slug>` | HTML (server-rendered) | 144 devices with tests, 127 with block diagrams |
| Changelogs | `https://download.mikrotik.com/routeros/{version}/CHANGELOG` | Plain text per version | All versions in ros_versions |
| YouTube transcripts | `https://www.youtube.com/@MikroTik/videos` via yt-dlp; cached in `transcripts/YYYY-MM-DD/videos.ndjson` | NDJSON cache (one `VideoCacheEntry` per line) | 746 videos, ~2,374 non-empty transcript segments |
| YouTube transcripts | `https://www.youtube.com/@MikroTik/videos` via yt-dlp; cached in `transcripts/YYYY-MM-DD/videos.ndjson` | NDJSON cache (one `VideoCacheEntry` per line) | 749 videos, ~2,399 non-empty transcript segments |
| Agent skills | [tikoci/routeros-skills](https://github.com/tikoci/routeros-skills) | YAML frontmatter + markdown | 18 skills, ~30K words (community content) |

**restraml dependency:** Version discovery uses 1 GitHub API call (`api.github.com/repos/tikoci/restraml/contents/docs`); actual inspect.json files are fetched from GitHub Pages (no rate limit). For offline workflows, `extract-all-versions.ts` accepts a local docs directory and `extract-commands.ts` accepts a local file path.
Expand Down Expand Up @@ -65,7 +65,7 @@ Directional options and the full research trail are recorded in `briefings/B-001

- **Source:** Manual browser export from <https://mikrotik.com/products/matrix>.
- **Format:** UTF-8 BOM CSV, 34 columns. `routeros_stats` reports the built DB's device count.
- **Location:** `matrix/2026-10-29/matrix.csv`; snapshots are date-stamped and committed. The path lives in exactly one place in code — `MATRIX_CSV_RELATIVE_PATH` in `src/paths.ts` — because five entry points read it and must agree; committing a new `matrix/YYYY-MM-DD/` without bumping that constant is a silent no-op.
- **Location:** `matrix/2026-11-28/matrix.csv`; snapshots are date-stamped and committed. The path lives in exactly one place in code — `MATRIX_CSV_RELATIVE_PATH` in `src/paths.ts` — because five entry points read it and must agree; committing a new `matrix/YYYY-MM-DD/` without bumping that constant is a silent no-op.
- **Download path:** Use the site's export/download control, choose **All**, and save to `matrix/<ISODATE>/matrix.csv`.
- **Normalized fields:** RAM and storage are parsed to integer MB columns during extraction for structured filters.
- **Naming caveat:** Product names differ across the matrix, product codes, product-page slugs, and docs. Alias coverage is intentionally iterative rather than treated as solved.
Expand Down
2 changes: 1 addition & 1 deletion MANUAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ The database combines multiple MikroTik data sources into a single SQLite file w

- **Device Benchmarks** — Ethernet bridging/routing and IPSec throughput test results scraped from individual product pages on mikrotik.com (3,177 measurements across 144 devices; 64/512/1518-byte packets, multiple configurations). Also captures block diagram image URLs for 127 devices.

- **YouTube Transcripts** — Auto-generated English transcripts from the official [MikroTik YouTube channel](https://www.youtube.com/@MikroTik/videos) (746 videos, ~2,374 non-empty transcript segments). Split by chapter when available, with timestamps for deep linking. Extracted via yt-dlp, cached as NDJSON in the repo for reproducible CI builds.
- **YouTube Transcripts** — Auto-generated English transcripts from the official [MikroTik YouTube channel](https://www.youtube.com/@MikroTik/videos) (749 videos, ~2,399 non-empty transcript segments). Split by chapter when available, with timestamps for deep linking. Extracted via yt-dlp, cached as NDJSON in the repo for reproducible CI builds.

- **Archived Dude Wiki** — Wayback Machine snapshots cached in `dude/pages/`, exposed through separate Dude tools because the retired GUI docs are not part of current RouterOS v7 help.

Expand Down
15 changes: 0 additions & 15 deletions device-exceptions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ hardware_slug = "rose-data-server"
www_code = "rds2216"
note = "Marketing name; matrix code RDS2216-2XG-4S+4XS-2XQ, www product rds2216."

["FTC21-ups"]
class = "no-hardware-page"
www_code = "ftc21_ups"
note = "www product ftc21_ups exists (was never a fetch candidate); the /hardware/ftc21 page is the non-ups variant, so there is no /hardware page for the -ups SKU."

["R11e-LTE7"]
class = "accessory"
www_code = "r11e_lte7"
Expand All @@ -61,13 +56,3 @@ note = "www product chateau_lte12_2025 exists (maintainer-confirmed 2026-07-11);
class = "no-hardware-page"
www_code = "ltap_lte7_kit"
note = "www product ltap_lte7_kit exists (maintainer-confirmed 2026-07-11); LTE7-kit family absent from /hardware. The base /hardware/ltap page exists; the LTE7 kit SKU does not."

["KNOT Gateway HL9"]
class = "no-hardware-page"
www_code = "knot_gateway_hl"
note = "New in the 2026-10-03 matrix. No /hardware page yet; the www code drops the trailing '9' (knot_gateway_hl, page names HL9/EG800Q), so no rule can reach it. Verified 2026-10-03."

["KNOT Gateway LR8"]
class = "no-hardware-page"
www_code = "knot_gateway_lr8"
note = "New in the 2026-10-03 matrix. No /hardware page yet; www product knot_gateway_lr8 exists (verified 2026-10-03)."
7 changes: 4 additions & 3 deletions device-map.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ CSS610-8P-2S+IN CSS610-8P-2S+IN Switches auto https://manual.mikrotik.com/hardwa
Cube 60Pro ac CubeG-5ac60ay 60 GHz products auto https://manual.mikrotik.com/hardware/wireless-wire-cube-pro-cube-60pro-ac https://mikrotik.com/product/cube_60pro_ac
FiberBox Plus CRS305-1G-4S+OUTr2 Switches auto https://manual.mikrotik.com/hardware/fiberbox-plus https://mikrotik.com/product/fiberboxplus
FTC11XG FTC11XG Accessories auto https://manual.mikrotik.com/hardware/ftc11xg https://mikrotik.com/product/ftc11xg
FTC21-ups FTC21-ups no-hardware-page https://mikrotik.com/product/ftc21_ups no-hardware-page www product ftc21_ups exists (was never a fetch candidate); the /hardware/ftc21 page is the non-ups variant, so there is no /hardware page for the -ups SKU.
FTC21-ups FTC21-ups Accessories auto https://manual.mikrotik.com/hardware/ftc21-ups https://mikrotik.com/product/ftc21_ups
GPEN21 GPEN21 Accessories auto https://manual.mikrotik.com/hardware/gpen21 https://mikrotik.com/product/gpen21
GPERx6 CSS606-1G-2Gi-3S+OUT Switches auto https://manual.mikrotik.com/hardware/gperx6 https://mikrotik.com/product/gperx6
GrooveA 52 RBGrooveA-52HPnr2 Wireless systems auto https://manual.mikrotik.com/hardware/groove-series https://mikrotik.com/product/RBGrooveA-52HPnr2
Expand Down Expand Up @@ -85,8 +85,8 @@ hEX S (2025) E60iUGS Ethernet routers auto https://manual.mikrotik.com/hardware/
KNOT RB924i-2nD-BT5&BG77r2 IoT products auto https://manual.mikrotik.com/hardware/knot https://mikrotik.com/product/knot
KNOT Embedded LTE4 EC25-EU&KNe IoT products auto https://manual.mikrotik.com/hardware/knot-embedded-lte4-ec25-eu-and-kne https://mikrotik.com/product/knot_embedded_lte4
KNOT Embedded LTE4 Global EG25-G&KNe curated-alias https://manual.mikrotik.com/hardware/knot-embedded-lte4-global-eg25-g-and-kne https://mikrotik.com/product/knot_emb_lte4_global Same shared www product as KNOT Embedded LTE4.
KNOT Gateway HL9 L14G-2ax-BT5-HL9&EG800Q no-hardware-page https://mikrotik.com/product/knot_gateway_hl no-hardware-page New in the 2026-10-03 matrix. No /hardware page yet; the www code drops the trailing '9' (knot_gateway_hl, page names HL9/EG800Q), so no rule can reach it. Verified 2026-10-03.
KNOT Gateway LR8 L14G-2ax-BT5-LR8&EG800K no-hardware-page https://mikrotik.com/product/knot_gateway_lr8 no-hardware-page New in the 2026-10-03 matrix. No /hardware page yet; www product knot_gateway_lr8 exists (verified 2026-10-03).
KNOT Gateway HL9 L14G-2ax-BT5-HL9&EG800Q IoT products auto https://manual.mikrotik.com/hardware/l14g-2ax-bt5-hl9-and-eg800q https://mikrotik.com/product/knot_gateway_hl
KNOT Gateway LR8 L14G-2ax-BT5-LR8&EG800K IoT products auto https://manual.mikrotik.com/hardware/l14g-2ax-bt5-lr8-and-eg800k https://mikrotik.com/product/knot_gateway_lr8
KNOT LR8G kit RB924iR-2nD-BT5&BG770A&R11e-LR8G IoT products auto https://manual.mikrotik.com/hardware/knot-lr8g-kit https://mikrotik.com/product/knot_lr8g_kit
KNOT LR9G kit RB924iR-2nD-BT5&BG770A&R11e-LR9G IoT products auto https://manual.mikrotik.com/hardware/knot-lr9g-kit https://mikrotik.com/product/knot_lr9g_kit
L009UiGS-2HaxD-IN L009UiGS-2HaxD-IN Indoor wireless auto https://manual.mikrotik.com/hardware/l009uigs-2haxd-in https://mikrotik.com/product/l009uigs_2haxd_in
Expand All @@ -102,6 +102,7 @@ LHG LTE18 kit LHGGM&EG18-EA LTE products auto https://manual.mikrotik.com/hardwa
LHG XL 5 ax LHG-5axD-XL Wireless systems auto https://manual.mikrotik.com/hardware/lhg-xl-5-ax https://mikrotik.com/product/lhg_5_ax_xl
LHG XL HP5 RBLHG-5HPnD-XL Wireless systems auto https://manual.mikrotik.com/hardware/lhg-xl-hp5 https://mikrotik.com/product/RBLHG-5HPnD-XL
LtAP LTE7 kit LtAP-2HnD&R11e-LTE7r2 no-hardware-page https://mikrotik.com/product/ltap_lte7_kit no-hardware-page www product ltap_lte7_kit exists (maintainer-confirmed 2026-07-11); LTE7-kit family absent from /hardware. The base /hardware/ltap page exists; the LTE7 kit SKU does not.
LtAP LTE12 ax LtAP-5HaxT2HaxD&EG120K-EA LTE products auto https://manual.mikrotik.com/hardware/ltap-lte12-ax https://mikrotik.com/product/ltap_lte12
LtAP mini RB912R-2nD-LTm LTE products auto https://manual.mikrotik.com/hardware/ltap-mini https://mikrotik.com/product/ltap_mini
LtAP mini LTE kit RB912R-2nD-LTm&EC200A-EUr3 LTE products auto https://manual.mikrotik.com/hardware/ltap-mini-kit-series https://mikrotik.com/product/ltap_mini_lte_kit_2024
mANTBox 2 12s RB911G-2HPnD-12Sr2 Wireless systems auto https://manual.mikrotik.com/hardware/mantbox-series https://mikrotik.com/product/mantbox_2_12s
Expand Down
21 changes: 14 additions & 7 deletions fixtures/hardware-catalog/baseline.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"categoryCount": 12,
"uncategorizedPages": 0,
"categoryCount": 13,
"uncategorizedPages": 1,
"coreFieldFrequencyPct": {
"Product code": 100,
"CPU": 83,
"CPU": 82,
"Architecture": 82
},
"matrixCoveragePct": 92,
"www404RatePct": 36,
"aliasCollisions": 99,
"droppedWwwProducts": 81,
"matrixCoveragePct": 94,
"www404RatePct": 34,
"aliasCollisions": 100,
"droppedWwwProducts": 83,
"resolvedDeviceIds": [
"atl-5g-r16",
"atl-lte18-kit",
Expand All @@ -27,6 +27,7 @@
"ccr2116-12g-4s-plus",
"ccr2216-1g-12xs-2xq",
"chateau-5g-r17-ax",
"chateau-lte12-2025",
"chateau-lte18-ax",
"chateau-lte6-us",
"chateau-lte7",
Expand Down Expand Up @@ -67,6 +68,7 @@
"cube-60pro-ac",
"fiberbox-plus",
"ftc11xg",
"ftc21-ups",
"gpen21",
"gperx6",
"groovea-52",
Expand Down Expand Up @@ -95,6 +97,8 @@
"knot",
"knot-embedded-lte4",
"knot-embedded-lte4-global",
"knot-gateway-hl9",
"knot-gateway-lr8",
"knot-lr8g-kit",
"knot-lr9g-kit",
"l009uigs-2haxd-in",
Expand All @@ -109,6 +113,8 @@
"lhg-xl-5-ax",
"lhg-xl-hp5",
"lhgg-lte7-kit",
"ltap-lte12-ax",
"ltap-lte7-kit",
"ltap-mini",
"ltap-mini-lte-kit",
"mantbox-2-12s",
Expand All @@ -127,6 +133,7 @@
"omnitik-5-poe-ac",
"powerbox-pro",
"qrt-5",
"r11e-lte7",
"rb1100ahx4",
"rb1100ahx4-dude-edition",
"rb260gs",
Expand Down
Loading
Loading