Repository navigation
feat(keep): local Ollama NPC dialogue + neutral ambient events (curated #62) - #67
Merged
Merged
Conversation
Land the backend half of PR #62 verbatim (ollama_service.py, /api/dialogue and /api/ambient-event routes, TestCase-style tests so unittest collects them — 13/13 green) and curate the frontend half: - ollama.ts is now server fns (createServerFn) talking to the Keep HTTP API over loopback with the KEEP_HTTP_URL base, no browser URL, no CORS; internals exported separately for node test runner. - herald getpick: dynamic ambient line from Ollama is tagged category weather, never torchlight, so it never pulses the hall lights. - barks/herald/duty: pickBarkAsync/pickHeraldLineAsync fall back to the rule pools when Ollama or the API is unreachable. Rejected from the original PR: hardcoded :8120 fetch base, browser-local ollama client, torchlight-tagged ambient lines, bun test syntax, /gallery regression.
The #62 import swap made pickBarkAsync the only import; the near-NPC Talk button still called bare pickBark. Route it through pickBarkAsync with the rule-pool fallback so the name is gone everywhere.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Curated landing of #62 — see closing comment there for full accounting.
Rejected from original: hardcoded :8120 fetch base, browser-side ollama client, torchlight-tagged lines, bun test syntax, @google/genai, /gallery regression.
Zero new typecheck errors vs base; build:box green.