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.308
No change to the surface since 2.1.307v2.1.307
+2 added · 1 removed · 4 changed · 4 docs only since 2.1.306Types
- removed
ToolCheckDecidertype breakingWho an ask is put to, where that is not the mode's decider alone:
host, the program that answers a hosted session's asks, or a served call's own session;person, whoever answers for one, and no classifier's allow. -
One noun of the engine's
$: each of its events as the engine calls it,tool.calltyped per tool andui.renderper component,ui.resolveout.export type EngineNoun<N extends keyof EventCalls> = { [V in EngineNounEvent<N>]: `${N}.${V}` extends 'tool.call' | 'ui.render' | 'skill.prompt' ? EventCalls[N][V] : EngineCall<`${N}.${V}` & EventName>; [V in EngineNounEvent<N>]: `${N}.${V}` extends 'tool.call' ? EngineToolCall : `${N}.${V}` extends 'ui.render' | 'skill.prompt' ? EventCalls[N][V] : EngineCall<`${N}.${V}` & EventName>;}; -
What a render hook returns, and what
next(e)resolves to: a plain-data tree of elements (a Box or Text is a StyledElement), strings as children.} | { type: 'Markdown'; props: MarkdownLeafProps; part?: PluginStamp; children?: undefined;} | { type: 'Markdown'; -
The input of
tool.check: the tool, its arguments, the organization's ceiling if it set one, and on a real call its id and the loop'sagentId.tool_use_id?: string; agentId?: string; ceiling?: ToolCheckDecision; approver?: ToolCheckApprover; isReadOnly?: true;}; -
What a
tool.checkhook returns and whatnext(e)resolves to: the verdict, why, and what stands behind it, never who answers it.rule?: string; hook?: string; setting?: string; decider?: ToolCheckDecider; plugin?: string; ceiling?: ToolCheckDecision;}; -
$.tool.callon a test's$: a call as the engine raises one,agentIdthe loop it runs in (a subagent's, a teammate's); left out, the main loop. -
Who answers the asks of a
tool.checkevaluation.
4 docs only: reworded, same shape
tool.checkresult{ decision, reason?, rule?, hook?, setting?, plugin?, ceiling? }.PaneOpenArgstypeThe argument of
$.ui.open: which pane, its title, whether it asks the person's keyboard, its dialog manners, its size: rows inline, columns docked.ToolCheckArgstypetool.check's input as$.tool.checktakes it: the tool and its arguments; the call's id,agentId, ceiling, approver andisReadOnlyare the engine's to set.ToolCheckDecisiontypeThe verdict of
tool.check: run the tool, put it to the mode's decider (the dialog, the auto-mode classifier, a headless host) or, a hook's ask, to a person, or refuse it.
v2.1.306
No change to the surface since 2.1.305v2.1.305
+0 added · 0 removed · 0 changed · 1 docs only since 2.1.3041 docs only: reworded, same shape
ImagePropstypeThe props of
Image, the terminal surface's picture leaf: pixels over a box of cells where the terminal can (kitty and Ghostty, or iTerm2 3.5 and later forpngandrgbabytes under fullscreen rendering), thealtelsewhere.
v2.1.304
+6 added · 0 removed · 7 changed · 7 docs only since 2.1.303The engine
-
Resolves with the settings merged over every source, with one source's settings as loaded (
{ source }), or with the value of one top-level key ({ key }), undefined when the settings hold none.(args?: SettingsReadArgs) => Promise<Settings>SettingsReadOverloads
Events
-
The argument of
$.settings.read({ source }), and the layers the read is made of, which the engine fills; rewritable, deniable.SettingsReadArgsSettingsReadInput
Types
-
One instruction file behind the
claudeMdblock: where it was read, its tier, its text as loaded, and the file that@-imported it if one did.kind: InstructionFileKind; content: string; parent?: string; isUnverified?: true;}; -
The plain-data props of each renderable component, as
ui.rendersees them undere.props; a hook rewrites them withnext({ ...e, props }).isRunning: boolean; isErrored: boolean; isInterrupted: boolean; isExpanded?: boolean; output?: unknown; onScreen?: OnScreen | null; };… tool: string; output: unknown; isErrored: boolean; isExpanded?: boolean; onScreen?: OnScreen | null; }; ToolGroup: { calls: ReadonlyArray<ToolGroupCall>; isActive: boolean; isExpanded: boolean; isCallsOnly?: boolean; onScreen?: OnScreen | null; }; CommandOutput: {… TurnDuration: { word: string; durationMs: number; isExpanded?: boolean; waitingFor?: { agents: ReadonlyArray<{ id: string; agentType: string; tool_use_id?: string; }>; workflows: number; }; onScreen?: OnScreen | null; }; InfoNotice: { -
What a
settings.readcall carries to the host: the one source asked, or none for the settings merged over every source.export type SettingsReadArgs = { source?: SettingsSource; layers?: readonly SettingsLayer[];}; - changed
ToolCheckDecidertype may breakWho an ask is put to, where that is not the mode's decider alone:
host, the program that answers a hosted session's asks, or a served call's own session;person, whoever answers for one, and no classifier's allow.type ToolCheckDecider = 'host';type ToolCheckDecider = 'host' | 'person'; -
The input of
tool.check: the tool, its arguments, the organization's ceiling if it set one, and on a real call its id and the loop'sagentId.tool_use_id?: string; agentId?: string; ceiling?: ToolCheckDecision; isReadOnly?: true;}; -
A read of one key: the key, and optionally the one source asked. It is the read of the object, projected: no event of its own.
-
One layer a settings read is made of: what one source holds, as that source loads. The engine's merge is a fold over the layers.
-
Whose settings one layer of a read holds: a settings source, or
plugin, the base the enabled plugins' own settings make, beneathuser. -
A read of a settings object: the settings merged over every source, or the one source asked. It names no key.
-
The event
settings.readas a hook receives it: what was asked, and the layers the answer is made of. One event, one granularity: the whole read. -
$.settings.readby what it is asked: a key resolves to that key's value, anything else to a settings object.
7 docs only: reworded, same shape
$.agent.spawnverbSpawns a subagent: the event
agent.spawn, the same call the engine makes when the Agent tool starts one; the engine fills the rest.ButtonPropstypeThe props of
Button, every surface's pressable: an address, a label or children, the closure a press runs, and the styles a hover overrides.ElementsinterfaceEach surface's primitive tags and their prop types, by
e.surface, for the surfaces the plugin was compiled against.PromptContextResulttypeWhat a
prompt.contexthook returns: the blocks the conversation carries, in order; one left out is not sent.RenderSurfacetypeThe surface a render event's component is drawn on, by name. Plugins draw into surfaces; they do not provide them.
ToolCheckArgstypetool.check's input as$.tool.checktakes it: the tool and its arguments; the call's id,agentId, ceiling andisReadOnlyare the engine's to set.ToolCheckResulttypeWhat a
tool.checkhook returns and whatnext(e)resolves to: the verdict, why, what stands behind it, and who answers core's ask.