Repository navigation
CatCup Tavern 0.3.2
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.
Added
- Add provider opens a picker whose first entry is Custom provider — "choose its protocol, enter the request URL and API key yourself" — with the four service templates below it under Or start from a service. The custom entry starts with an empty base URL, so the endpoint is typed rather than inherited from a vendor, and the templates stay one-click prefills of name, kind and default URL.
- The provider form asks for a request protocol instead of a vendor.
openai,openrouterandcustomare one protocol — OpenAI Chat Completions — with different defaults, and the label now says so: OpenAI Chat Completions (/chat/completions, SSE), Anthropic Messages (/messages, SSE) and Ollama native (/api/chat, NDJSON), each with a line naming what it covers. Changing the protocol keeps a hand-typed base URL, and a provider still matching its template keeps that template's kind when the protocol it speaks is chosen again. The storedkindvalues are unchanged, so no provider needs a migration. New exports in the shared schema:PROTOCOL_LABELS,PROTOCOL_HINTS,PROVIDER_PROTOCOLS,protocolFor,PROVIDER_TEMPLATES,providerInitials,providerSummary,expectsKey. - Every dropdown in the app is now a CatCup control rather than the operating system's. A native
<select>and a<datalist>draw their own popup, which on Windows arrived as a white system list in the middle of the dark panel and could not be styled.Selectreplaces the select: the same.input-shelltrigger, a portalledrole="listbox"insurfacewithlineborders, an amber mark on the selected row, arrow keys, Home/End, type-ahead, Escape that closes the list without closing the dialog under it, and three sizes (mdform field,smcompact row,xsheader chip).Comboboxreplaces the datalist: a free-text field with filtered suggestions that still accepts a value the list does not carry, for model ids, TTS voices, image samplers and bulk tags. Both are documented indocs/DESIGN.md. - A checked-in Claude Code skill,
novel-to-catcup, that turns a novel or any long text into a pack CatCup imports as-is: one V2 character card per character, one ST-shaped world info book, persona text for a character the user wants to play, and portrait prompts for every card. It carries a pack validator and an offline PNG card writer that stampschara/ccv3metadata into a chosen portrait, plus a script that compares its output with the server's own writer. This is the static, script-backed variant for people working in a checkout; it is distinct from the generated, prompt-only export served atGET /api/distill/skill, which carries no scripts. Seedocs/DEVELOPMENT.md#skills. - The distillation pipeline can leave the app. Distil somewhere else → Skill in the book dialog — and
GET /api/distill/skill— downloads a Claude Skill as a ZIP: the four stages, every prompt verbatim, the JSON Schema for the analysis reply and the draft rows, and a description of SillyTavern's world info and Character Card V2 shapes. It is prompt-only and generated from the same constants a run sends, so a prompt edit changes both the server and the export; a test fails if a bundle ever carries a prompt the runtime no longer uses. It needs no provider, model or uploaded book, and carries no book text, key or secret. - Play as this character. A button in the character library copies a card into a persona —
description,personality,scenarioand example messages — so you can speak as someone from your cast instead of retyping them. The card's opening line is deliberately left behind: that is the assistant's line, and a persona carrying it makes the model greet itself. The persona is a copy, so editing it never touches the card. - A persona can carry a card's voice.
personality,scenarioandmesExamplejoinnameanddescriptionas optional fields. In the prompt the first three are joined into the one persona slot as labelled paragraphs, and the examples are parsed as your turns — never the assistant's. All three default to absent, so an existingsettings.jsonproduces exactly the prompt it always did, and the persona editor shows them behind a disclosure. - Generate a portrait from a card. Portrait in the character editor drafts an image prompt from the card's description and personality — no chat involved, so it works for a card that has never been spoken to — and Use as portrait makes the result the character's picture. A PNG card is rewritten with the same data embedded; a JSON card becomes a PNG card, because a card's picture and its data are one file. The previous picture is not kept, and the confirmation says so. The instruction is editable as Portrait instruction in Settings → Images.
- Drafting an image prompt no longer needs an image backend. Drafting is a chat-model call, so Draft from chat and Draft from card work with image generation disabled, and a Copy button puts the prompt wherever you want it. Only generating and setting a portrait need a backend.
Changed
- A provider row in the library footer and the Providers list names its service and default model through one helper, so a custom provider reads as its protocol rather than as a vendor it does not have.
- Interface copy names what the app does rather than the client its formats came from. The import entry is now Import from another app, its dialog asks for a data folder, and its error, the About tab, the Settings, Memory, Quick Replies and Regex hints, the empty group editor, the Quick Replies format check and the
index.html/package.jsondescriptions no longer name SillyTavern. Attribution stays where it must:NOTICE,docs/REUSE.md, the per-fileDerived fromheaders and the compatibility pages are unchanged, and the data-format and API pages still describe the formats in the ecosystem's terms.
Fixed
- The desktop app opened a console window at startup. The bundled
catcup-nodeis a console-subsystem executable, and Windows allocates a console window for one started by a GUI process; it stayed on screen until Quit. The shell now passesCREATE_NO_WINDOWon Windows, so the child gets a hidden console and nothing is drawn. Its stderr used to be inherited from a console that did not exist, so server errors were lost: both streams now append toshell.login the data directory, rotated toshell.log.1at launch past 4 MB, which is where to look when the installed app will not start. - The Add button beside the model field closed the Providers panel. The panel is one form, and the row that adds a model id was a second
<form>nested inside it — invalid HTML, whose submit reached the panel's save handler and could run a native submission that reloaded the app. The row is adivnow, with atype="button"Add and an Enter handler; it adds the id and touches nothing else.docs/DESIGN.mdrecords the rule. - Sign out was offered when no password was set. An open desktop session has nothing to end, and the action led to a login screen that could only answer "Setup required". The library footer hides it there,
POST /api/auth/logoutanswers409 NO_PASSWORDfor that install so a stale tab cannot reach the dead end, and the client refetches the real status instead of writing a guessed one into its cache. - A portrait has to be a PNG, and the API says so (
IMAGE_PORTRAIT_FORMAT) rather than accepting a JPEG or WebP that cannot hold the card data.