What changed, release by release.
Every release's mods API against the one before it: which nouns, verbs, events and types it added, which it removed, and which changed shape, with the lines that moved. A removal is marked breaking; a change that took something out may break a mod; one that only added to a shape is marked extended.
v2.1.319
+9 added · 4 removed · 3 changed · 3 docs only since 2.1.318The engine
- removed
$.ui.backdropverb breakingSets the session's backdrop, drawn behind the conversation by what
ui.renderanswers forBackdrop;undefinedclears this plugin's own. -
The session's one theme: how the app looks behind and around the conversation. One theme stands at a time, the latest set, whichever plugin set it; there is no stack.
-
Clears the session's theme, back to the app's own look.
-
Sets the session's theme from one object of named top-level attributes.
backdropis drawn behind the conversation by whatui.renderanswers forBackdrop: full window on desktop under its frosted panels, full screen on mobile under one veil (tintandopacity, not yetblur). Display only:--resumebrings none back and a plugin that unloads takes its own with it, so set it atsession.start.
Events
-
The argument of
$.theme.clear(). -
The argument of
$.theme.set(attributes): the attributes themselves.
Types
- removed
UiBackdropArgstype breakingThe argument of
$.ui.backdrop;undefinedin its place clears the plugin's own backdrop. - removed
UiBackdropGlasstype breakingHow a surface keeps its text readable over a backdrop: the desktop app frosts its own panels, and the mobile app lays one veil over the backdrop. Each key absent takes the surface's default, so
{}is the default glass. - removed
UiBackdropResulttype breakingWhat
$.ui.backdropresolves to and what aui.backdrophook's{ value }holds. -
What a
command.runhook returns and whatnext(e)and$.command.runresolve to: the command's output text and the notes it leaves the model.export type CommandRunResult = { text?: string; context?: readonly string[]; isTextDisplayOnly?: true; exitCode?: number; ref?: number;}; -
What each call on
$answers (thevalueof its event's result), by event name.'ui.close': void; 'ui.panes': readonly UiPane[]; 'ui.place': UiPlaceResult; 'ui.backdrop': UiBackdropResult; 'theme.set': ThemeResult; 'theme.clear': ThemeResult; 'ui.selection': UiSelection | undefined; 'ui.copy': UiCopyResult; 'ui.view': UiViewResult; -
What a
turn.completehook returns and whatnext(e)resolves to:{ text }; a text other than a main-loop answer's is shown beneath it.export type TurnCompleteResult = { text: string; usage?: TurnUsage; by?: readonly string[];}; -
The
backdropattribute of$.theme.set: what is drawn behind the conversation, and how the surface frosts its panels over it. -
How a surface keeps its text readable over a backdrop: the desktop app frosts its own panels, and the mobile app lays one veil over the backdrop. Each key absent takes the surface's default, so
{}is the default glass. -
What
$.theme.setand$.theme.clearresolve to, and what atheme.setortheme.clearhook's{ value }holds. -
The argument of
$.theme.set: one object of named attributes, so a later attribute is an addition and never a change of the call.
3 docs only: reworded, same shape
PromptDecorationtypeOne styled run a surface paints over the prompt draft:
[start, end)of a text, in UTF-16 code units like PromptBoxcursor. Paint only.RenderComponenttypeEverything
ui.rendercan draw: one name per component that has a render site; a matcher narrows on it.RenderPropsOftypeThe plain-data props of each renderable component, as
ui.rendersees them undere.props; a hook rewrites them withnext({ ...e, props }).
v2.1.318
+0 added · 0 removed · 5 changed · 9 docs only since 2.1.317Types
-
Each surface's primitive tags and their prop types, by
e.surface, for the surfaces the plugin was compiled against.Box: ElementConstructor<BoxProps>; Text: ElementConstructor<TextProps>; Button: ElementConstructor<ButtonProps>; Input: ElementConstructor<InputProps>; Select: ElementConstructor<SelectProps>; Svg: ElementConstructor<SvgProps>; Link: ElementConstructor<LinkProps>; Code: ElementConstructor<CodeProps>; -
What one model call resolves to: the reply when the model answered (
isAnswered), else which of three things left it without text (reason).isAnswered: true; text: string; usage: ModelUsage; effort?: ModelEffort;} | { isAnswered: false; reason: 'api-error'; status: number | null; error: ModelApiError; usage: ModelUsage; effort?: ModelEffort;} | { isAnswered: false; reason: 'empty-reply'; usage: ModelUsage; effort?: ModelEffort;} | { isAnswered: false; reason: 'aborted'; usage: ModelUsage; effort?: ModelEffort;}; -
What
$.model.forktakes.export type ModelForkRequest = { prompt: string; effort?: ModelEffort;}; -
The plain-data props of each renderable component, as
ui.rendersees them undere.props; a hook rewrites them withnext({ ...e, props }).tint?: string; opacity: number; } | false; colorScheme?: 'light' | 'dark'; };}; - changed
UiBackdropArgstype extendedThe argument of
$.ui.backdrop;undefinedin its place clears the plugin's own backdrop.export type UiBackdropArgs = { id: string; glass?: UiBackdropGlass | false; colorScheme?: 'light' | 'dark';};
9 docs only: reworded, same shape
$.command.runverbRuns a slash command as if the person typed
/command args: the eventcommand.run, queued and run once the session is idle.$.model.forkverbRuns one tool-less completion over the session's OWN transcript as the main thread last sent it, so the API serves that prefix from its cache.
$.ui.backdropverbSets the session's backdrop, drawn behind the conversation by what
ui.renderanswers forBackdrop;undefinedclears this plugin's own.ElementOfActtypeThe element each surface-dependent act of a mounted drawing reaches: a handle carries the act only where the surface's table has the element.
ModelForkResulttypeWhat
$.model.forkresolves to: a completion's result (ModelCompleteResult) or that there was nothing to fork yet.ModelUsagetypeWhat one model call cost, as the API counted it: the four token counts in the API's spelling, summed over the call's responses when it made several.
MountedtypeA drawing of component
Cthe test mounted on surfaceP: reads over its description, acts on its elements by key,Clientacts wherePhas one.RenderComponenttypeEverything
ui.rendercan draw: one name per component that has a render site; a matcher narrows on it.UiBackdropGlasstypeHow a surface keeps its text readable over a backdrop: the desktop app frosts its own panels, and the mobile app lays one veil over the backdrop. Each key absent takes the surface's default, so
{}is the default glass.
v2.1.317
+4 added · 0 removed · 3 changed since 2.1.316The engine
- added
$.ui.backdropverbSets the session's backdrop, drawn behind the conversation by what
ui.renderanswers forBackdrop;undefinedclears this plugin's own.
Types
-
What each call on
$answers (thevalueof its event's result), by event name.'ui.close': void; 'ui.panes': readonly UiPane[]; 'ui.place': UiPlaceResult; 'ui.backdrop': UiBackdropResult; 'ui.selection': UiSelection | undefined; 'ui.copy': UiCopyResult; 'ui.view': UiViewResult; -
Everything
ui.rendercan draw: one name per component that has a render site; a matcher narrows on it.export type RenderComponent = 'AskUserQuestion' | 'UserMessage' | 'AssistantMessage' | 'ToolUse' | 'ToolResult' | 'ToolGroup' | 'ToolProgress' | 'CommandOutput' | 'Spinner' | 'TurnDuration' | 'InfoNotice' | 'SessionMode' | 'PromptHint' | 'AbovePrompt' | 'Pane' | 'Placed';export type RenderComponent = 'AskUserQuestion' | 'UserMessage' | 'AssistantMessage' | 'ToolUse' | 'ToolResult' | 'ToolGroup' | 'ToolProgress' | 'CommandOutput' | 'Spinner' | 'TurnDuration' | 'InfoNotice' | 'SessionMode' | 'PromptHint' | 'AbovePrompt' | 'Pane' | 'Placed' | 'Backdrop'; -
The plain-data props of each renderable component, as
ui.rendersees them undere.props; a hook rewrites them withnext({ ...e, props }).plugin: string; onScreen?: OnScreen | null; }; Backdrop: { id: string; plugin: string; glass: { blur: number; tint?: string; opacity: number; } | false; };}; - added
UiBackdropArgstypeThe argument of
$.ui.backdrop;undefinedin its place clears the plugin's own backdrop. - added
UiBackdropGlasstypeHow a surface frosts its own panels over a backdrop: each key absent takes the surface's default, so
{}is the default glass. - added
UiBackdropResulttypeWhat
$.ui.backdropresolves to and what aui.backdrophook's{ value }holds.
v2.1.316
No change to the surface since 2.1.315v2.1.315
+0 added · 0 removed · 0 changed · 9 docs only since 2.1.3149 docs only: reworded, same shape
$.prompt.mediaverbReturns one image or document of the prompt being submitted, by the
ide.attachmentslists it under: its bytes, base64, 4 MiB a call.$.ui.invalidateverbRe-runs an event whose results the engine caches:
ui.renderdraws the instances this plugin may draw again; the others drop the cached answers.prompt.sectioneventFires once per named section of the system prompt, when the engine assembles it;
next(e)resolves to{ text }as core computed it.tool.describeeventFires when the engine first renders the tool's schema in a session;
next(e)resolves to{ description, isDeferred? }.PromptMediatypeWhat
$.prompt.media({ id })answers: one attached item's bytes as the engine would send them now, or why there are none to read.PromptOrigintypeWhere a
prompt.submitsubmission came from, as the engine knows it at the site it was queued from; a closed set, never a text prefix.-
A pasted or attached non-text item of a submitted prompt; its kind, never its bytes, which
$.prompt.mediareads by the item'sid. RenderPropsOftypeThe plain-data props of each renderable component, as
ui.rendersees them undere.props; a hook rewrites them withnext({ ...e, props }).