Repository navigation
Caramel 0.23.0
0.23.0 - 2026-11-08
Upgrade notes
- Frappé:
frappe helpprints the commands in groups, from getting started to shipping, one short line for each command or family of subcommands, then examples and where to learn more.frappe help WORDSandfrappe WORDS --helpprint one command's description, usage and examples, or list a family's subcommands (frappe help db branch); a family run without a subcommand, such asfrappe db, lists its subcommands on a terminal and exits 1. A usage error on a terminal ends withRun frappe COMMAND --help for details., or with the family's commands. The commands that change state end with one alignedNext:block.NO_COLORandTERM=dumbturn colour off.frappe completion zsh|bash|fishprints a completion script for commands, subcommands, options and their choices. Output when stdout is not a terminal and every MRDP block keep their format, andfrappe agent-manifestkeeps its format with the newhelp [COMMAND...]andcompletionlines (ADR 0013). A script that read an old one-line hint (Run frappe migrate to apply the new schema.,Next: run frappe migrate and open /PLURAL/new.) reads theNext:block instead. - Frappé:
frappe words [WORD] [--json]prints SweetTalk's vocabulary without an application: every word with its kind and a one-line summary, or one word's usage, each option with the forms it takes, its default and what it does, an example that compiles and its guide section. An unknown word exits 1 naming the nearest. It reads the doc comments and parameters of the macros of the release you run, so it cannot name an option a macro lacks, andscripts/checkfails when a macro has no entry, an example does not compile, or the guide or the skill writes an option no word takes (ADR 0013). - SweetTalk: the skill
frappe make domainwrites no longer says never to add up withSugarORM.sql. It says to prefersumsandgroups, and to useSugarORM.sqlonly for what they cannot state, such as an average, aFloat64orTimekey or several keys, with the tenant predicate written out (ADR 0049). Refresh an application's copy withcp lib/caramel/templates/skills/sweettalk/SKILL.md .claude/skills/sweettalk/. - SugarORM:
field id : UUID, primary: trueis auuidkey with the defaultuuidv7(), minted by the insert changeset when it is built (changeset.id); a UUID-keyed table needs PostgreSQL 18.field id : Int64, primary: truekeeps its identity column, so existing schemas change nothing (ADR 0064). - Frappé:
frappe make resourceandfrappe make tenancynow write UUID keys; pass--int64to keep the Int64 identity key of earlier releases (ADR 0064). - SweetTalk: a domain without a tenant now keys its aggregates and entities by UUID. Add
ids Int64on the line afterinclude SweetTalkto keep existing tables; without itfrappe db diffhalts on the changed key. A domain with a tenant follows the tenant's key type (ADR 0064). The skillfrappe make domainwrites says so; refresh an application's copy withcp lib/caramel/templates/skills/sweettalk/SKILL.md .claude/skills/sweettalk/. - SugarORM:
SugarORM::Page(R)is nowSugarORM::Page(R, K),Kthe schema'sPrimaryKey; update code that names the type (ADR 0064). - SugarORM:
param idon a changeset of an Int64-keyed schema fails compilation; a UUID key takesparam id : UUID, the only way a client supplies an id. An update that changes the id addscannot be changed(errors.key_kept) (ADR 0064). - Tenancy: a UUID tenant's cache and channel prefix is
t+ 25 base-36 characters +:, and its event channels hold at most 36 characters; an Int64 tenant keepst<digits>:and 42 (ADR 0064). - SweetTalk:
within Picking do … endcontinues context Picking, declared before it in the same domain module, in another file. It takes the words a context's body takes and no option, and every check reads every block: the context map joins their text, queries are checked once the program's top level is complete, and the event log and aonce_by:unit work from any block. Awithinof no earlier context, of a kernel or inside a context, apublishesin two blocks of one context, and two borders with one context or outside system fail compilation. The guide's "Split a context across files" gives each context a directory and each aggregate a file; the skillfrappe make domainwrites says so, so refresh an application's copy withcp lib/caramel/templates/skills/sweettalk/SKILL.md .claude/skills/sweettalk/(ADR 0065). - SweetTalk: in
SweetTalk.preview, a unit'sneverandalwayslines no longer end the run. Each that fails adds its sentence to the newpreview.blockers, in the order they ran, and the preview keeps the run's events and changes;preview.refusalis the first blocker, so a screen that hides its confirm button onrefusalstill does. Once the run holds a blocker, a line whose block raises is skipped. A commit and a plain call still refuse with the first line that fails, and a preview with no failing line keeps its fingerprint.SweetTalk.previewnow answers aSweetTalk::Preview::Of(T), aPreviewwhosevalueis what the block returned, nil when the body was refused, andto_jsonaddsblockers(ADR 0060 decision 11). The skillfrappe make domainwrites says a screen that refreshes as a person types loads withfindand calls a calculation instead of previewing; refresh an application's copy withcp lib/caramel/templates/skills/sweettalk/SKILL.md .claude/skills/sweettalk/. - SweetTalk: a
sumsorgroupsthat adds up an entity's attribute takes conditions on each entity inwhere:, under the name of its list, as inwhere: {member: member, state: :placed, lines: {tea: teas}}, andgroups …, of: Line.price, by: :idanswers one total per aggregate, in id order; neither joins.sumsof aMoney::AmountanswersHash(Currency, Amount), one total per currency in code order, in one statement; aMinor(USD)adds up as a number, andgroupswithby:an amount groups by its currency. Agroupsthat adds up anAmount, and asumsorgroupsthat filters a list of entities it does not add up, fail compilation (ADR 0049, ADR 0063 decision 10). Existing queries are unchanged. The skillfrappe make domainwrites says so; refresh an application's copy withcp lib/caramel/templates/skills/sweettalk/SKILL.md .claude/skills/sweettalk/.
Breaking changes
- sugar_orm: key records by a UUIDv7 the application mints, with Int64 as an opt-in (5e54ff4)
Features
- frappe: frappe words prints a SweetTalk word's options (c851910)
- frappe: redesign help, usage errors, next steps, colour and completion (791e75e)
- sweet_talk: continue a context in another file with within (2e72d56)
- sweet_talk: list a unit's failing lines as preview blockers and answer the block's value (ad05c0c)
- sweet_talk: filter an entity's rows, total per aggregate and add up amounts in sums and groups (71cd621)