Repository navigation
CatCup Tavern 0.6.0
Early-access release. Moves your existing data in and handles single-character and group roleplay end to end. The Windows installer is unsigned, and what works and what does not says exactly where the line is.
A game can be installed as a package and played, and a model can change it. This is the first release of
game mode: a .catcup whose manifest says catcup.game installs after every file and media id it names
has been verified, a run is a folder under the profile with a namespaced state and full-copy
checkpoints, the Games tab draws the pack's own views and completes its tasks, a conversation can be
bound to a run from the conversation itself, and a model changes the state through a sentinel block
with no tool calling anywhere in the path. A game is a file a person installs and carries no code.
Added
- A conversation can be bound to a run from the conversation itself. The engine landed with the binding reachable only through the API, which meant the one step a person actually has to take — "this chat belongs to that run" — needed a curl command. Tools → Game in the chat header now lists the runs, marks the one this chat is already in, and offers Start a new run that creates the run and binds to it without a trip to the Games tab. The header carries a pill naming the bound run once there is one: binding is a low-frequency action, but which run a reply changes is a fact worth seeing. Unbind puts the chat back to an ordinary chat — it keeps its history and loses only the pointer. A run whose pack was uninstalled is listed but cannot be bound to, because binding to it would be a conversation that silently stops changing anything.
- Group chats can be bound too, and change state like a single chat. The first version of the route only knew character chats, so a group could not be bound at all — not even from the API.
PUT /api/groups/:groupId/chats/:chatId/gameis the group's counterpart, androutes/groupGenerate.tsnow runs the same action block a single chat does: stripped before the group trimmer sees the text (a block of tool names is exactly what the trimmer would cut), validated, applied in one write with the checkpoint, and recorded inextra.game. A regenerate and a continue still propose nothing, for the same reason: those replies already have their effects. - The last turn's trace is on screen. The server had been keeping what a model proposed, what was refused and why, and what the state did; nothing showed it. Tools → Trace opens a panel beside the chat with the block's lines, the tools that applied, every rejection with its reason, the state diff, and what a
randomeffect picked. It is the debugger RFC 0006 describes, without the panel around it, and it answers the two questions a pack author actually has: "why did my tool not fire" and "why did that key not change". A chat that has never had a turn says so rather than showing an empty panel.
Changed
- A binding is refused at the point it could not work. Binding a chat to a run whose pack is missing used to succeed and then quietly do nothing on every reply; it now answers with the pack's id and what to install.
A game can be installed as a package and played, and a model can change it.
Added
- A
.catcupwhose manifest sayscatcup.gameinstalls as a game. The container had recognised the format and refused it by name since 0.5.0; it now reads it. Every file the manifest names —state.json,tools.json,views.json, each content file and every media id — is resolved against the archive before anything is written, and a reference that loads cleanly file by file and would then do nothing is refused too: a tool naming a state key nobody declared, an entity requiring a task that is not there, a view pointing at a content file the manifest does not list.game/resolve.tsis that second pass, and the refusal names the file, the field and the reason. Installing is atomic — the archive is unpacked into a sibling staging folder and renamed into place once it has all been read — so a package that fails half way leaves the pack that was already there untouched. A second install of an installed id is refused and names the version that is there unless the request asks to replace it. - The sample game ships with the app.
apps/server/assets/samples/sample-gameis a small pack — two subjects, six tasks of four kinds, one currency, two pictures — that Add the sample game assembles into a.catcupand installs through the same reader a downloaded package goes through. That is deliberate: the writer and the reader prove each other on every first install, and a fresh install has a game to open without a file from anywhere else. It runs with no provider configured at all. - A save is a folder under the profile, and a checkpoint is a full state copy. State is kilobytes, and a copy is simpler to write, simpler to read by hand, and immune to a corrupted chain. Automatic checkpoints keep the newest N and a manual one is never evicted, however many automatic ones pass it; the ordinal in a checkpoint's file name is its identity, because two written in one millisecond tie on their timestamp. A completion records the task, applies its effects and checkpoints — one write, under the save's lock, so a turn that recorded a task and then failed to pay it out cannot happen.
- Games is the library's third tab. Installed packs and the runs started from them sit together, a pack with no run offers Start a new run, and the main pane becomes whichever view the pack declares: entity lists and details, a task runner, progress, gauges, gallery, wardrobe, feed and schedule. The nine view types are the host's; a pack chooses which one and what it reads and supplies no code. A locked subject is a row a person reads rather than a disabled button, and its badge names the task that opens it.
- The task runner completes
instant,duration,timed,counter,sequenceandcomposite. The clock lives in the browser because the person is there; the server enforces the floor, so a completion that claims less time than its task declares is refused and a reload cannot skip the waiting. Dismissing a task applies its cost, records nothing as completed, and leaves it available: "not now", not "never again". - A model can change the game, without tool calling. A chat bound to a save gets the pack's tools in one instruction after the history, and answers with a line-oriented
<<<ACTION>>>block. The block is stripped from the text that is stored, each line is checked against the pack's declarations, and only then are the effects applied — in one write, with the checkpoint. One bad line rejects the whole block: the reply is stored as prose with no actions and no state changes, because a half-applied turn is worse than an ignored one. A truncated stream is not a bad line — the complete lines before the cut still apply, which is why the format is lines rather than JSON.extra.gameon the message records what applied, andGET /api/chats/:characterId/:chatId/game/traceshows the proposed lines, every rejection and the state diff for the last turn — kept in memory only, since a trace holds the model's reading of the player's state. engine.minis enforced at install. A pack written against a newer host is refused by name with both versions, rather than failing later in a way that looks like a bug in the app.
Changed
- A skin's media rules are now every pack's media rules. The content-type table, the index reader that verifies an archive, the declaration that decides what may be served and the 404-on-escape resolution moved into
storage/packMedia.ts;skinAssets.tsis what a skin adds on top — the CSS family name derived from its id. A game pack's media follows the same promise: served read-only from one pack's folder, only the files the install declared, 404 for anything else. - The host's version is no longer a literal.
config.tscarried'0.4.0'through three releases while every package said0.5.1, and nothing read it.engine.minreads it now, so it is derived fromapps/server/package.jsonwith a test holding the two together — the release checklist already bumps that package, and this is the one place that cannot disagree with it. - The interface's game strings are in the message deck in both languages from the first commit, which is what the ratchet in
scripts/check-i18n.mjsasks of a new surface.
Fixed
- Media is a pack's declared id, and the install refuses one it cannot resolve.
entity.media, a view'smediaarray and adirectiveeffect'sassetare keys intomedia/index.json, but the client resolved them as archive paths — so a pack written to the documented convention installed cleanly and then asked the media route for a file that answered 404 for the life of the save.game/resolve.tsnow checks every one of those references at install, naming the file and the field, and the save bundle carries the id→path map so a view builds a URL from an id without knowing the folder layout. The sample pack is written that way too, which is what the format always said it should be. - An archive's entry limit is sized for a game, not a card. The reader capped one archive at 200 entries and 60 MB — generous for a character card and too tight for a pack that carries a picture per entity; a 492-entity pack needed 283 entries and was refused before anything was reviewed. The caps are 512 entries and 256 MB now, and the two upload routes' body limits are derived from the same constant instead of repeating
64 * 1024 * 1024, so the reader can no longer accept a package the upload layer refuses. The per-entry cap stays at 25 MB. - A
progressview honoursgrades, afeedpaces its items, and a grouped list is ordered.gradesnames the content kinds that get a row — it was printed as a caption while the view drew every entity the pack declared, which at a few hundred entities is a page nobody can read.feed.secondswas declared and never read; a feed with a pace now shows one item at a time. AndgroupBy: "tier"returns buckets in a deterministic order — numbers ascending, labels after them, the ungrouped bucket last — rather than in whatever order the content files happened to list entities. - The model is told who it is talking to. The default persona is
{ name, description: '' }, and an empty description meant thepersonaDescriptionslot was skipped entirely — so the only thing that told a model who the user was sat inside the Main Prompt, as{{user}}, and the default name for that slot was the literalYou. A model reading "Continue the scene as 姐姐, replying to You" has no way to tell whether "You" is a name or the person it is being addressed as. In a chat whose opening line was the character offering to configure a prompt, the user's "我帮你配置" was read as help offered to the character rather than by the user, and the reply that followed took over the user's side. ThepersonaDescriptionslot now always carries the person's name —The user's name is …— ahead of whatever description and voice fields the persona has, so the seat is stated in the same place SillyTavern puts a persona rather than left to be inferred from a pronoun. The built-in persona's name isUserinstead ofYou, and a profile whose persona is still literally namedYouis corrected on load because that name was never chosen — a name that is anything else, or a list with more than one persona, is left alone. This is CatCup's own wording in the default prompt list, not a change to the exchange format: a preset that carries its own prompts is untouched, and every file written is still readable by the other clients. Measured against the stored chat that reported it onds-v4-9b-heretic-128k: 5/8 replies handled the roles correctly before, 8/8 after. - Reasoning is folded away by default. A thinking model's reasoning was rendered in an always-open block above every reply, so a turn that took ten paragraphs to think through put ten paragraphs on screen before the two lines of story. The block is now a closed disclosure labelled Reasoning (深度思考 in Chinese) with a chevron that turns to show the state, capped at 16rem and scrollable, so opening it never pushes the reply off the screen. The streaming bubble uses the same control, so a reply does not grow and then re-fold when it is stored.