11 Commits
Author SHA1 Message Date
max bittkerandClaude Fable 5 faebf16f70 MCP: fold sub-package into root and serve live API docs
- @modelcontextprotocol/sdk moves to the root package.json; mcp/ no longer
  carries its own package.json/bun.lock/node_modules (23MB install layer
  and second lockfile gone). Smoke-tested: initialize handshake +
  resources/read both work off root node_modules.
- The two hand-maintained MCP resources (mcp/api/{bot,sdk}.ts) had
  drifted stale (missing the Jul 6 chat APIs) — deleted, and the resource
  now points at the auto-generated sdk/API.md.
- Fixed connect_bot references (tool doesn't exist; bots auto-connect),
  the pre-rename server path in the manual-setup snippet, and install
  instructions in mcp/README.md.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 19:12:15 -04:00
max bittkerandClaude Fable 5 377652f2aa Remove dead files and dependencies; move README art out of vendored content
Dead code/files (zero references, verified):
- server/engine/RuneScriptCompiler.jar (12.7MB) — replaced by
  @lostcityrs/runescript TS package in the 274 upgrade
- server/engine/package-lock.json — bun-only repo; also gitignored so
  vendor syncs don't reintroduce it
- server/engine/.github/ — vendored CI, can never run from a nested path
- server/engine/public/maped/ + view/maped.ejs — unreachable map editor
- server/gateway/{rsbot,run-recorder.ts,bunfig.toml} + bin/cli/login
  package.json entries — all point at files/dirs that no longer exist
- server/webclient/.gitmodules + empty emsdk/tinymidipcm gitlinks —
  submodules never initialized; build uses committed prebuilt wasm
- sdk/package.json — publish manifest for a never-published package
- sdk/test/zanaris-pathfinding.ts — duplicate of zanaris-navigation.ts;
  its unique waypoint folded into the survivor

Dead dependencies (lockfiles regenerated):
- gateway: puppeteer + @anthropic-ai/sdk (~54MB + Chromium download per
  Docker build, zero gateway imports); puppeteer now a root devDependency
  since sdk/test/utils/browser.ts is its real consumer
- engine: @2004scape/rsmod-pathfinder (replaced by in-engine routefinder;
  server/vendor copy is the SDK's), tsx, redundant @jimp direct pins

Also: README art (promo.gif 31MB + svgs) moved from server/content/title/
to docs/media/ so it stops shipping in every Docker image; stale
gateway/agent-state gitignore entry dropped; DEVELOPERS.md stale rows fixed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 19:10:41 -04:00
max bittkerandClaude Fable 5 716a9375f9 Repo cleanup: remove ~3.3GB of cruft, dead code, and stale docs
Disk/data:
- Delete scripts/ entirely: 3.2GB of gitignored Jan-Feb run telemetry
  plus the legacy per-skill script/lab_log layout superseded by bots/
  (tracked files remain recoverable from git history)
- Prune bots/ to the 10 most-used bots (claude46, Codex7, max, codexpl8,
  runepl8, maxbittker, codex53, aaravA, codex_53, multibot) + _template;
  all removed dirs archived to ~/rs-sdk-cleanup-archive-2026-07-13.tgz
  along with stream/ (held live Twitch/bot/Anthropic credentials)
- Remove orphaned sdk/node_modules + sdk/bun.lock (pathfinder is
  vendored in server/vendor; sdk has no deps of its own)

Git hygiene:
- Untrack sdk/collision-data.json (22MB blob per regen; kept on disk,
  regen curl documented in DEVELOPERS.md and .gitignore)
- gitignore backups/, .obsidian/, and engine public/client/*.js (the
  gap that let stale client.js shadow fresh webclient builds return)
- Delete the untracked stale public/client/client.js shadow copy

Dead code/config:
- Drop unused deps: tmi.js, @types/tmi.js, ts-morph
- Drop dead tsconfig globs (stream/, bot_arcs/)
- Remove unused nix toolchain (flake.nix, flake.lock, .envrc)

Docs:
- GEMINI.md/agents.md were byte-identical 4-month-stale copies of
  claude.md; replace with symlinks so all tools read one file
- DEVELOPERS.md: remove abolished copy-client.js-to-engine step and
  nonexistent agent//javaclient sections; document collision regen
- sdk/README.md: fix reference to nonexistent scripts/example-remote.ts
- Remove stale sdk/SDK_DESIGN.md and misleading sdk/test/test_status.md

Also commit the forgotten sdk/test/click-dialog-by-text.test.ts (tests
a shipped API, was never git-added).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 11:48:15 -04:00
max bittkerandClaude Opus 4.6 952f516e44 Add in-process TypeScript type checking to daemon exec
Uses ts-morph to type-check exec code against the real BotActions/BotSDK
types before execution. Type errors are surfaced as warnings in the output
but don't block execution. The ts-morph Project is initialized once at
daemon startup and reused across exec calls.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 19:12:11 -05:00
max bittkerandClaude Opus 4.6 ae7ad86640 use open package for cross-platform browser launching
Replaces hardcoded xdg-open/open/start with the `open` npm package,
which handles macOS, Windows, Linux, and WSL automatically. Falls back
to printing the URL if no browser can be opened.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 14:18:09 -05:00
max bittkerandClaude Sonnet 4.6 d2243665ee add twitch stream system and benchmark updates
Adds stream/ - 24/7 Twitch stream orchestrator with planner/executor
Claude agents, ffmpeg capture, Chromium game client, and exe.dev
deployment scripts (setup-exe.sh, start-exe.sh).

Also adds combat/gold benchmark tooling and fresh_run utility.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-20 17:24:00 -05:00
max bittker 7ea422eed9 nest server files deeper 2026-02-07 13:05:54 -05:00
max bittker 9c16e927ed wasm 2026-01-28 19:27:26 -05:00
max bittker 877a48905e bundle pathfinding into sdk 2026-01-28 15:44:47 -05:00
max bittker 31e7bc65fe fixes 2026-01-21 14:22:12 -05:00
Pazaz 590c168606 feat: Platform-agnostic start scripts 2025-06-05 14:20:38 -04:00