Repository navigation
Oshi Engine 0.11.0
This release finishes milestone 0.11, Travel. She now knows places, real ones with coordinates and made-up ones on a board, and can work out how long it takes to get from one to another and which way she would go. In novel mode, moving between scenes at different places takes as long as the trip.
- Places are files in
character/places/: a real place has an address and coordinates, a made-up one a position on a board in metres. A place can be her home, her work or a person's home, and a novel scene can say which place it is at (place). Reading places through/v1/placesneedsusers:readas well ascharacter:read, since they say where people live. - The new
oshi-travelcrate holds places, distances, estimates and the MOTIS client. Real trips are looked up on Transitous (travel.router_url, a public MOTIS 2 server), with walking, cycling, driving and public transport in one request. Answers are kept per pair of points, weekday and half hour for 14 days, and lookups stop attravel.max_requests_per_day(300). Without a lookup the trip is guessed from the distance, and her answer says it is rough. - Her new
travel_timetool takes a place name or an address, with an optional start, way and departure time. An address she looks up is saved as a learned place.character.travelsays whether she has a bike, a car, a scooter or a transit pass. She walks when the walk is 15 minutes or less, and otherwise picks the way with the lowest time weighted by effort. Once her home is set, her prompt says where she lives and how she gets around. - Novel mode: the user is on the way until they arrive, and their messages wait until then. With
go_toshe and the user travel together and keep talking. The novel page blurs the scene ahead and counts down, and the scene picker shows about how many minutes away each scene is. Trips undertravel.novel_min_minutes(2) and scenes without a place stay instant, so existing worlds work as before. - The settings UI has a Places view: the list of places, a map for real places (search an address or click to put the pin), a board for made-up places with the distance and walking time between pins, and a route tester that shows what her tool would answer. The Character view has a section for how she gets around, and Settings a travel section.
- CLI:
oshi place list|show|add|scene|removeandoshi travel route|find|usage. API:GET /v1/travel,GET /v1/travel/geocode,POST /v1/travel/route, andtripin the novel state andscene_changed. - Whereabouts notes match places as well as scenes, so "heading to the park" finds a place named Park and the scene at it.
Modules in this release
| Module | Version | Needs core | Builds |
|---|---|---|---|
| telegram | 0.2.4 | 0.2.0 or newer | x86_64, aarch64 |
| settings | 0.11.0 | 0.11.0 or newer | any |
| webchat | 0.10.0 | 0.10.0 or newer | any |
| webchat-themes | 0.5.0 | 0.5.0 or newer | any |
| webchat-stickers | 0.5.0 | 0.5.0 or newer | any |
| webchat-attachments | 0.5.0 | 0.5.0 or newer | any |
| novel | 0.11.0 | 0.10.0 or newer | any |
| browser | 0.7.2 | 0.3.0 or newer | x86_64, aarch64 |
settings and novel are new versions. telegram, webchat, browser and the three webchat extensions are unchanged; the store keeps the artifacts of the release that first shipped them.
Settings 0.11.0 needs core 0.11.0. The Places view reads /v1/places and /v1/travel, its text comes from the engine, and the map needs the engine to allow the tile host, so on an older core the view would fail and show raw string names. Novel 0.11.0 still runs on core 0.10.0: the trip fields are optional, and without them the page shows no trip card and no minutes in the picker, as in 0.10.0.
Upgrading
Run oshi update apply, or in Docker pull the new image. There is no database migration: places are files in character/places/, and kept routes and the day's lookup count go in the existing settings table. With modules.auto_update on (the default), the next module check installs the new module versions. Settings 0.11.0 waits for core 0.11.0: on an older core the store lists it as "needs core 0.11.0" and settings stays on 0.10.0.
The travel feature is off by default, like browser, because each call of her tool can reach an outside server. Turn it on per person with oshi user feature <user> travel on or in the Users view, or for everyone with users.default_features = { travel = true } (env OSHI_USERS__DEFAULT_FEATURES__TRAVEL=true). She also needs places to talk about: add her home in the Places view or with oshi place add --name Home --address "..." --role home, and say how she gets around in the Character view.
Routes and addresses come from Transitous, which allows non-commercial use only. Its routes are built from OpenStreetMap and open timetables; the sources and their attribution are at https://transitous.org/sources/. The engine identifies itself with its version and the repository address and stays under the daily cap. You can run your own MOTIS 2 server instead and point travel.router_url at it (travel.allow_private = true when it is on a private address). travel.enabled = false stops every lookup, including those from the Places view, the CLI and novel trips between real places; trips are then guessed from the distance.
The map in the Places view loads its tiles from OpenStreetMap's tile server (https://tile.openstreetmap.org/{z}/{x}/{y}.png), straight from the browser that has the view open. Set travel.map_tiles_url (env OSHI_TRAVEL__MAP_TILES_URL) to use another tile server, or leave it empty to turn the map off. The settings page only allows images from that one tile host. Made-up places and the board need no network.
Coming from 0.9.0 or earlier, the compose service rename described in the 0.10.0 notes still applies.
Downloads
oshi-x86_64-linux.tar.gzandoshi-aarch64-linux.tar.gzcontain theoshibinary. They need glibc 2.34 or newer.- The module tarballs are named
<id>-<version>-<target>.tar.gz. The telegram, webchat, browser and webchat extension tarballs are rebuilds of unchanged versions. - Each tarball has a
.sha256file, andSHA256SUMScovers all of them.store.jsonholds the store index entries for the modules in this release.
The Docker image is ghcr.io/oshiengine/oshi-engine:0.11.0 (also 0.11, beta, stable and latest) for amd64 and arm64.
Getting started
tar -xzf oshi-x86_64-linux.tar.gz
./oshi init
./oshi serve
With the engine running, ./oshi module install settings and ./oshi module install webchat add the settings and the chat. Open http://127.0.0.1:7420/settings and create the owner login with the setup code from oshi init. Before talking to her, set llm.providers.local.base_url and llm.chat.model in oshi.toml (or the env file) to an OpenAI-compatible server.
With Docker, docker-compose.yml starts the engine with the web chat and its extensions, novel mode and the settings; the setup code is in the log (docker compose logs oshi-engine). docker-compose-full.yml adds every module, SearXNG and the headless Chrome, with SEARXNG_SECRET set in .env.
All changes: v0.10.0...v0.11.0