Skip to content

Optional Add ons

Josh Dionne edited this page Aug 25, 2026 · 1 revision

Generated from the thetowersdk repository. Edits made here are overwritten on the next push — change the source file instead.

Optional Add-ons

Two packages sit alongside this one. Neither is a dependency and neither is bundled — install one when you want what it does, and nothing here changes if you never do.

Package What it adds Install
towerai A knowledge base and an answering layer over this SDK's data npm install towerai
adb-bridge Pulls a save off an Android device to a local page npx adb-bridge

TowerAI answers questions; this package supplies the numbers it answers with. Build a knowledge base by deriving prose from the catalogs rather than typing it, so a game update moves the corpus instead of silently invalidating it:

import { buildTrackerAiCanonicalKbChunks, validateCanonicalKbArray } from 'towerai/kb'
import { LAB_CATALOG } from 'thetowersdk/data'

const mine = LAB_CATALOG.map(lab => ({
  chunk_id: `mine_lab_${lab.name}`,
  disambiguation: 'How many levels this lab has — not what order to research it in.',
  content: `The ${lab.name} lab has ${lab.levels?.length ?? 0} levels.`,
  // …
}))

validateCanonicalKbArray([...buildTrackerAiCanonicalKbChunks(), ...mine])

adb-bridge hands you save bytes over a WebSocket on 127.0.0.1:43781; this package reads them. Gate on the bridge's reported protocol, never its release number — the package was renamed and restarted at 0.x, so a version comparison reports a working bridge as too old.

docs/OPTIONAL_ADD_ONS.md covers both in full.


Clone this wiki locally