Repository navigation
Oshi Engine 0.12.0
This release finishes milestone 0.12, Activities. She can now plan things on top of her day plan, like sushi at 8 with someone or a run right now, with the trips there and back. The rest of the engine follows those plans, so while she is out she is slower to answer and says goodbye when she leaves.
- An activity has a title, a kind, a start and an end, an optional place, the people who join and its parts. Trips there and back are parts too. They are worked out once when the activity is made or moved: made-up places need no network, real ones use a kept route or a lookup that gives up after 6 seconds and falls back to the distance guess. One activity runs at a time, and a new one that overlaps is refused with the name of the other one. Two kinds are new,
errandandouting. - While an activity runs, its parts replace the plan blocks, work included. Presence, reply delays, availability windows, goodbyes ("time to leave for sushi"), "Right now", her scene in novel mode and her schedule feed all follow it. Availability is at most 0.35 while she is out and 0.3 with company, so going out ends a phone chat. When it ends, the plan takes over again.
- Her new tools
start_activity,change_activityandactivity_historysit behind a newactivitiesfeature, on by default since they need no network. The first two are offered in private chats only, and a plan made with one person can only be changed in a chat with that person. Her prompt shows the activity in "Right now" and her plans for the next two days. - When she agrees to a plan in words and skips the tool, the appraisal that already runs after each private exchange catches it, with no extra model call. A new plan is kept only when a word of its title and its hour were said; a new time for one of her coming plans moves that plan. These are stored as
caught. - History is kept per day, with plan blocks and activities together and cancelled ones marked. Past activities are deleted after
life.activity_history_days(90 by default, 0 keeps them all). - The schedule feed has one entry per activity, with its parts in the description.
- API:
GETandPOST /v1/activities,GET /v1/activities/history,GET,PATCHandDELETE /v1/activities/{id},activitiesinGET /v1/character/life, and anactivity_changedevent for admins. Reading activities needsusers:readas well ascharacter:read, since they name who joins. CLI:oshi life activities [--date]andoshi life activity add|change|cancel. - The settings UI has an Activities view. The activity running now and the planned ones are cards with their parts as a bar that fills with time; you can move one, change its length, resize or skip a part, call it off or stop it in place. A form with a live preview adds a new one, and her past days are shown one date at a time. The day timeline in the Overview and the Character view shows activities as brackets over the blocks they replace, and "Doing now" shows the activity, the part she is in and its parts bar.
Modules in this release
| Module | Version | Needs core | Builds |
|---|---|---|---|
| telegram | 0.2.4 | 0.2.0 or newer | x86_64, aarch64 |
| settings | 0.12.0 | 0.12.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 is the only new version. telegram, webchat, novel, browser and the three webchat extensions are unchanged; the store keeps the artifacts of the release that first shipped them.
Settings 0.12.0 needs core 0.12.0. The Activities view reads /v1/activities, which an older core answers with 404, and its text comes from the engine, so on core 0.11.0 the view would fail and show raw string names. The unchanged modules work with core 0.12.0 as they are: activity_changed only goes to admins, and the novel page shows her activity in the text field it already has ("sushi · eating").
Upgrading
Run oshi update apply, or in Docker pull the new image. With modules.auto_update on (the default), the next module check installs settings 0.12.0. It waits for core 0.12.0: on an older core the store lists it as "needs core 0.12.0" and settings stays on 0.11.0.
This release has a database migration. Step 7 adds two tables with their indexes: activities (title, kind, start and end, status, who decided it, the person and chat it was made with, and its parts as JSON) and activity_people (who joins each one). It runs by itself the first time 0.12.0 starts, in one transaction, and leaves existing data alone. The updater snapshots the database into the pre-update backup before it replaces the binary. If 0.12.0 fails its health check, the launcher restores that backup, so the rollback undoes the migration too. Restoring the backup by hand later (oshi update restore <dir>) also brings back the 0.11.0 database, and activities made since the update are lost.
The activities feature is on by default, so she can make plans in every private chat. Turn it off per person with oshi user feature <user> activities off or in the Users view, or for everyone with users.default_features = { activities = false } (env OSHI_USERS__DEFAULT_FEATURES__ACTIVITIES=false). life.activity_history_days (env OSHI_LIFE__ACTIVITY_HISTORY_DAYS) sets how long past activities are kept.
If you keep your own core.md in prompts/engine/, it does not have the new line that tells her to put plans in her day with the activity tool. Copy it from assets/prompts/engine/core.md.
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, novel, 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.12.0 (also 0.12, 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.11.0...v0.12.0