Skip to content

Finish PR72: MCP/agent tooling, painted-hall UI work, live Ollama+FastMCP fix - #73

Merged
jasandroidx merged 8 commits into
ravenstackfrom
finish-pr72
Sep 22, 2026
Merged

jasandroidx merged 8 commits into
ravenstackfrom
finish-pr72

Conversation

@jasandroidx

Copy link
Copy Markdown
Owner

Summary

Commits the accumulated working-tree changes that had been sitting uncommitted on this branch since PR #72 merged (MCP server additions, ui-v2 gallery/keep-lib updates, docs, skills, farmer, schemas, CI workflow), plus fixes made while getting the live Keep app fully working end-to-end on the box.

Fixes included

  • Ollama endpoint: ui-v2/.env had it bound to the wrong loopback address on this host (AGENTS.md documents the correct one) — chat was silently failing closed.
  • FastMCP bridge: was unconfigured, so the badge always read "unreachable". Pointed it at the already-running reclaw-platform-mcp service.
  • PGLite build bug: scripts/copy-pglite-assets.mjs, wired into build/build:box — Nitro's server bundle was dropping PGLite's data/wasm files next to the bundled JS, so every DB-touching request threw ENOENT in a loop. Verified against a clean rebuild.

Verification

Drove the live ravenstack-keep-ui service with Playwright: FastMCP badge connects, player movement + NPC dialogue work, and a live Ollama-generated reply came back grounded in the real room roster. No console/network errors on load or interaction.

🤖 Generated with Claude Code

…d a live PGLite build fix

Commits the accumulated working-tree changes for this branch (MCP server
additions, ui-v2 gallery/keep-lib updates, docs, skills, farmer, schemas,
CI workflow, misc repo housekeeping) plus fixes made while getting the
live Keep app fully working end-to-end:

- Fix Ollama endpoint box-local misconfiguration (was bound to the wrong
  loopback address; see AGENTS.md for the correct host on this box).
- Point the FastMCP bridge at the already-running reclaw-platform-mcp
  service instead of leaving it unconfigured.
- Add scripts/copy-pglite-assets.mjs and wire it into build/build:box:
  Nitro's server bundle was dropping PGLite's data/wasm files next to
  the bundled JS, so every DB-touching request threw ENOENT in a loop.
  Verified against a clean rebuild.

Verified live via Playwright against the running ravenstack-keep-ui
service: FastMCP badge connects, player movement + NPC dialogue work,
and a live Ollama-generated reply came back grounded in the real room
roster. No console/network errors on load or interaction.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ravenstack-keep Ready Ready Preview Sep 22, 2026 4:48am UTC

Request Review

… first

- Remove the HALL_LIGHTS pointlight sprites in the Great Hall scene. They
  rendered as flat, hard-edged color blobs overlapping the painted
  background instead of a soft torch glow — visually broken, not
  atmospheric. this.hallLights stays permanently empty; the existing
  flicker-update loop and pulseTorch() already no-op safely on an empty
  array, so nothing else needed changing.

- diagnoseMechanicWorkbench (Valerie's Mechanic workbench) called Gemini
  directly, skipping the local-first Ollama path every other agent in
  the Keep uses. Now tries Ollama first and only falls through to
  Gemini (kept for its live googleSearch grounding, which Ollama can't
  do here) when the local model fails.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…l-calling loop

Operator-approved 2026-09-22 (see catalog.ts): Corvid moves from draft to
approved, gaining real external research tools his spec already described
but never had wired up.

- src/lib/keep/corvid-tools.ts (new): keyless web_search (DuckDuckGo HTML +
  Wikipedia opensearch, mirrors skills/lib/free_sources.py's proven
  approach rather than reinventing a weaker one) and browser_render
  (read-only page text via a standalone Playwright subprocess).
- scripts/render-page.mjs (new): the browser_render backend. Deliberately
  a subprocess, not an import from src/ — keeps Playwright and its browser
  binary out of the Nitro server bundle entirely (the same class of
  bundler risk that broke PGLite). `browser-use` was tried first and
  dropped: it's a CDP *client* needing an already-running Chrome with a
  debug port, which nothing on this box provides; standing up a
  persistent Chrome+CDP service was a bigger, separate infra call than
  "wire up a tool".
- src/lib/keep/ai.ts: talkCorvid() — a real Ollama tool-calling loop
  (qwen3:4b; the speced phi4-mini hint tested unreliable at actually
  invoking tools, verified live). Wires web_search, browser_render,
  query_knowledge, and oracle_verify as callable tools, loops on
  tool_calls up to 4 turns, and appends a Sources: line to the final
  reply. Every other persona's path (complete(): Ollama-first, Gemini
  fallback) is unchanged.
- src/lib/keep/fastmcp.ts: added query_knowledge to the typed tool
  allowlist (it was already referenced in corvid's spec but not actually
  callable).
- catalog.ts: corvid status draft -> approved, tools/gates updated to
  match what's now real, localHint corrected to qwen3:4b with the reason
  recorded.

Also: public/hall/painted/talk-valerie.jpg replaced with the operator-
supplied portrait (the placeholder looked wrong in her dialogue panel).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VGSarcwFyzfmiT46Cugans
…acle's talk scene

- public/hall/portraits/valerie.jpg: replaced the low-res sprite crop
  (looked blocky/pixelated upscaled into the 112px dialogue portrait box)
  with the same operator-supplied portrait already used for her talk
  backdrop.
- public/hall/painted/talk-oracle.webp (new) + world.ts: Oracle gets his
  own dedicated talk-scene backdrop and portrait, an operator-supplied
  green-eye-in-chains piece matching his existing in-scene palette
  (#39ff14). He was previously falling back to the shared generic
  talk-scene image (the one depicting Raziel) like every agent except
  Valerie — same root cause the operator flagged this session, now fixed
  for a second agent via the same talkScene mechanism Valerie already
  proved out.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VGSarcwFyzfmiT46Cugans
jasandroidx and others added 2 commits September 22, 2026 04:36
…as broken

Applied the same fix from origin/main to finish-pr72 so PR #73 can deploy.

1. firebase was declared only in the root package.json, never in ui-v2's own.
   Vercel builds ui-v2 as its own project root, so firebase/app could not be
   resolved during the Vercel build.

2. ui-v2/package.json pinned @google/genai to ^0.2.0, whose GenerateContentConfig
   shape lacks the imageConfig field that ai.ts already uses. Bumped to ^2.18.0.

Verified: npm install clean, typecheck passes, lint passes, ui-v2 vite build
(Vercel preset) succeeds with firebase__auth.mjs and @google/genai.mjs present.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Keeps the npm lockfile aligned with ui-v2/package.json so CI's npm ci
installs the same versions that now typecheck and build clean.

Co-Authored-By: Claude Code <noreply@anthropic.com>
… bundle

Vercel build was succeeding then failing with:
  Error: No Output Directory named "dist" found after the Build completed.

Add ui-v2/vercel.json with framework=tanstack-start and
outputDirectory=.vercel/output so Vercel picks up the Nitro Vercel preset
output instead of defaulting to dist.

Also update copy-pglite-assets.mjs to copy pglite.wasm / pglite.data /
initdb.wasm into .vercel/output/functions/__server.func/_libs, which is where
the bundled PGLite JS lands on Vercel. Previously it only copied to the local
node-server preset path (.output/server/_libs) and silently skipped on Vercel.

Verified: clean rm -rf .output .vercel/output && npm run build produces
.vercel/output with the three PGLite assets next to electric-sql__pglite.mjs.

Co-Authored-By: Claude Code <noreply@anthropic.com>
The Vercel project has rootDirectory=null, so it builds from the
repository root. The previous ui-v2/vercel.json was ignored because
Vercel reads vercel.json from the project root, not from a
subdirectory. Move it to the repo root and point outputDirectory at
ui-v2/.vercel/output where Nitro's Vercel preset writes the build.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@jasandroidx
jasandroidx merged commit 221673d into ravenstack Sep 22, 2026
3 checks passed

This branch had an error being deployed

1 failed (outdated) and 1 active deployments
Preview — 647fb298 Deployed Sep 22, 2026 by vercel[bot]
Production — bb3d5fd3 Deployed Sep 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant