Skip to content

Caramel 0.23.0

Latest

Choose a tag to compare

@edreesjalili edreesjalili released this 08 Nov 09:52
· 85 commits to main since this release

Caramel 0.23.0

0.23.0 - 2026-11-08

Upgrade notes

  • Frappé: frappe help prints 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 WORDS and frappe WORDS --help print one command's description, usage and examples, or list a family's subcommands (frappe help db branch); a family run without a subcommand, such as frappe db, lists its subcommands on a terminal and exits 1. A usage error on a terminal ends with Run frappe COMMAND --help for details., or with the family's commands. The commands that change state end with one aligned Next: block. NO_COLOR and TERM=dumb turn colour off. frappe completion zsh|bash|fish prints a completion script for commands, subcommands, options and their choices. Output when stdout is not a terminal and every MRDP block keep their format, and frappe agent-manifest keeps its format with the new help [COMMAND...] and completion lines (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 the Next: 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, and scripts/check fails 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 domain writes no longer says never to add up with SugarORM.sql. It says to prefer sums and groups, and to use SugarORM.sql only for what they cannot state, such as an average, a Float64 or Time key or several keys, with the tenant predicate written out (ADR 0049). Refresh an application's copy with cp lib/caramel/templates/skills/sweettalk/SKILL.md .claude/skills/sweettalk/.
  • SugarORM: field id : UUID, primary: true is a uuid key with the default uuidv7(), minted by the insert changeset when it is built (changeset.id); a UUID-keyed table needs PostgreSQL 18. field id : Int64, primary: true keeps its identity column, so existing schemas change nothing (ADR 0064).
  • Frappé: frappe make resource and frappe make tenancy now write UUID keys; pass --int64 to 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 Int64 on the line after include SweetTalk to keep existing tables; without it frappe db diff halts on the changed key. A domain with a tenant follows the tenant's key type (ADR 0064). The skill frappe make domain writes says so; refresh an application's copy with cp lib/caramel/templates/skills/sweettalk/SKILL.md .claude/skills/sweettalk/.
  • SugarORM: SugarORM::Page(R) is now SugarORM::Page(R, K), K the schema's PrimaryKey; update code that names the type (ADR 0064).
  • SugarORM: param id on a changeset of an Int64-keyed schema fails compilation; a UUID key takes param id : UUID, the only way a client supplies an id. An update that changes the id adds cannot 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 keeps t<digits>: and 42 (ADR 0064).
  • SweetTalk: within Picking do … end continues 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 a once_by: unit work from any block. A within of no earlier context, of a kernel or inside a context, a publishes in 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 skill frappe make domain writes says so, so refresh an application's copy with cp lib/caramel/templates/skills/sweettalk/SKILL.md .claude/skills/sweettalk/ (ADR 0065).
  • SweetTalk: in SweetTalk.preview, a unit's never and always lines no longer end the run. Each that fails adds its sentence to the new preview.blockers, in the order they ran, and the preview keeps the run's events and changes; preview.refusal is the first blocker, so a screen that hides its confirm button on refusal still 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.preview now answers a SweetTalk::Preview::Of(T), a Preview whose value is what the block returned, nil when the body was refused, and to_json adds blockers (ADR 0060 decision 11). The skill frappe make domain writes says a screen that refreshes as a person types loads with find and calls a calculation instead of previewing; refresh an application's copy with cp lib/caramel/templates/skills/sweettalk/SKILL.md .claude/skills/sweettalk/.
  • SweetTalk: a sums or groups that adds up an entity's attribute takes conditions on each entity in where:, under the name of its list, as in where: {member: member, state: :placed, lines: {tea: teas}}, and groups …, of: Line.price, by: :id answers one total per aggregate, in id order; neither joins. sums of a Money::Amount answers Hash(Currency, Amount), one total per currency in code order, in one statement; a Minor(USD) adds up as a number, and groups with by: an amount groups by its currency. A groups that adds up an Amount, and a sums or groups that filters a list of entities it does not add up, fail compilation (ADR 0049, ADR 0063 decision 10). Existing queries are unchanged. The skill frappe make domain writes says so; refresh an application's copy with cp 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)