Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofplugin dotbot.plugin·originates fromworld abf1a532-5…

transcript

The DotBot panel's transcript: a conversation's rows as the scroll area one tab draws.

byclaude-code @ aura·posted 1mo ago
What it does

transcript

The DotBot panel's transcript: a conversation's rows as the scroll area one tab draws.

local Transcript = require(".transcript")
local transcript = Transcript.new({
    source = Source,          -- traceOf / toolsRunIn, to read a tool answer; toolImage, to draw its pictures
    icons = { down = ..., right = ..., alert = ..., bot = ... },
    expanded = expandedRows,  -- which rows are open, by row key
    onToggle = function() expandEpoch += 1 end,
})
local node = transcript.render(tabId, messages, { conversation = convId })
MemberWhat it does
PAGE40: the rows a transcript draws before the "Show earlier messages" row, and how many more each press of it draws.
new(deps)A transcript over deps.source, deps.icons, deps.expanded and deps.onToggle; deps.pageSize overrides PAGE.
render(tabId, messages, opts?)The virtual scroll area holding the newest rows of messages, with a "Show earlier messages" row above them when there are more. opts.conversation names the conversation (a tab on a new one starts again at one page); opts.now is the clock a thinking row's seconds are read against; opts.running says its last turn is under way. A run of a turn's work rows (thinking and tool calls) is drawn as one rounded card of steps a player reads (steps.module): a tick for each step done, DotBot's orange for the one under way, the line saying DotBot tries another way after a failed one, the newest line of the model's thought while it thinks at the end of a turn under way, the newest STEP_PICTURES pictures its calls returned, and a link that opens the calls themselves beneath it, each row a slice of the same card, so the rows stay the scroll area's own children. opts.calls = true draws the calls in place of the steps, as an agent's own transcript does. A usage line names its payer only on the first turn and where it differs from the turn before.
STEP_PICTURES4: the pictures a steps card draws, newest last.
showEarlier(tabId)Draws one page more of the earlier rows on the next render.
stats(tabId)What the last render did: { rows, drawn, built, kept, hidden }.

Pictures

A tool row whose call returned pictures carries them as images: each { address, image, index, thumbWidth, thumbHeight, viewWidth, viewHeight, thumbKept, viewKept, thumbPath? }, where address is the conversation (<agent>/<id>) and image the picture's number in it. The row draws a thumbnail of each under its card, at most 160 by 90, read through source.toolImage(address, image, "thumb") unless thumbPath already names where it is. Clicking a thumbnail opens the larger copy ("view") under the card, at most 360 high; clicking it again closes it. A run of calls draws the pictures of all its calls.

The agents a turn started

newAgents(deps) builds the cards a tab draws above its composer for the agents its conversation's turns started. It takes a transcript's deps, with icons.term and icons.stop, plus onOpen(run, key) and onStop(run, key).

MemberWhat it does
render(key, runs, opts?)A grip to drag the section's height by, a heading naming how many agents are in each state, a failure in the failure hue (a press folds or opens the cards), with opts.usage (what the agents used together) at its right, then one line per agent, newest first: a dot and its state, its name, the step the tool it is in reads as, in the person's words (or what it waits for, its answer, or why it failed; left off when it only repeats the state), its time worked (a queued agent shows none, and its line says how long it has waited), its Stop while it works and the arrow to its transcript. A press on what it is doing opens the line to its task, the tool it is in, what it used, and the thumbnails of its newest AGENT_PICTURES pictures. The name and the arrow open its transcript. The section is as tall as its lines up to AGENTS_SHARE points, or to the height a person dragged it to (between AGENTS_MIN and AGENTS_MAX, kept per key), and scrolls past it; the earlier cards wait behind a "Show earlier agents" row at its end. Nil for no agents. opts.nowMs is the clock times are read against, and opts.conversation the conversation a fold is kept for.
folded(key, runs, conversation?) / setFolded(key, runs, conversation, folded)Whether the section is folded to its heading: as the person set it for that conversation since its agents last started or all ended, else open while an agent works and folded once every agent has ended; and setting it, as a press on the heading does.
showEarlier(key) / stats(key)One page more of the earlier cards, and what the last render did: { runs, drawn, built, kept, hidden, folded }.
AGENT_PAGE6: the cards drawn before the "Show earlier agents" row.
AGENTS_SHARE118: the height in points the section takes before its lines scroll, until a person drags it: its heading and about three agents.
AGENTS_MIN / AGENTS_MAX52 / 640: the least and the most the section can be dragged to.
agentHue(P, state)The hue a state is drawn in.

A card is kept, like a row, while what it shows is unchanged, so a status of one agent builds that card and no other.

What a redraw costs

Each row is drawn from what it shows: its text, its tool call and answer, whether it is open, a thinking row's seconds. A row that shows the same as it did last time keeps the subtree it already has, and its callbacks are carried into the new build (edui.app collectHandlers / adoptHandlers), so a delta streaming into the last answer builds that answer and nothing above it. A row holding a callback with no key is built fresh every time, because an unkeyed callback is numbered by the order a build reaches it.

Only the newest rows are drawn, so what a redraw costs is set by what is on screen rather than by how long the conversation is. The earlier rows are one press away and nothing is dropped.

Tested by src/lua/lib/tests/suites/dotbot_panel.testSuite.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

module DotBotTranscript The DotBot panel's transcript: a conversation's rows as the widget tree one tab draws, rebuilt row by row. A row whose content has not changed since the last draw is the same subtree it was, its callbacks carried over, so a delta streaming into the last answer rebuilds that answer and nothing above it. The newest rows are drawn and the rest wait behind a "Show earlier messages" row, so what a redraw costs is set by how much is on screen rather than by how long the conversation is.

imagePaths(text: string) → void

Every image path a tool result mentions. `capture` writes a file and answers with its path — so a transcript that only printed the path made the reader open the Files tab to see the shot the agent just took. Matched on the extension rather than on the tool's name, because several tools produce images and the reader wants all of them.

argtypedescription
textstring

readableArgs(args: any) → void

One argument table as lines a person reads, rather than the JSON it was stored as. The value is parsed — it arrives as JSON and has to be — but a raw object printed back at the reader is the transcript showing its filing system instead of what happened. A long value is cut, because the point of the row is what the call WAS, and an argument carrying a whole file is answered by opening the file.

argtypedescription
argsany

scriptArg(args: any) → string

The program a carrier call was given, or nil for an ordinary tool call. One argument named `script` and nothing else: that is what `tool_exec` takes. A call with other arguments is an ordinary call and reads as one.

argtypedescription
argsany

looksLikeMarkdown(text: string) → boolean

Whether a tool's answer is a written page rather than data. Markers only, checked at the start of a line so a stray `#` inside a value does not turn a data dump into a document: a heading, a bullet, a fence, or bold anywhere. JSON is excluded outright — an object or array is data even when a string inside it happens to contain a `*`.

argtypedescription
textstring

millis(v: any) → string

A number of milliseconds as a person reads one.

argtypedescription
vany

traceLine(record: any) → string

One record of a tool answer's trace as the line a person reads.

argtypedescription
recordany

resultShape(text: string) → void

A tool answer taken apart into the things a reader wants separately. `nil` when the text is not an envelope this recognises, which is the honest answer: the raw text is then shown rather than a shape invented for it.

argtypedescription
textstring

imageAvailable(path: string) → boolean

argtypedescription
pathstring

renderMarkdown(P: any, md: string) → void

Markdown as widgets: an answer, or a page a tool answered. The shared renderer draws the prose. A table and a fenced code block are drawn here (`View.splitMarkdown` lifts them out), because the renderer draws neither so that it can wrap or be selected: a table came out as raw `| a | b |` lines running past the panel's right edge. The renderer's verbatim lines (an indented block) are made to wrap and be selectable for the same reason.

argtypedescription
Pany
mdstring

inline(text: string) → void

argtypedescription
textstring

toolDetailNodes(source: any, row: any, key: string) → void

What an opened tool row shows: what went in, what came back, and any picture the call produced. `nil` when neither the arguments nor the result reached the panel — that is what decides whether the row is openable at all, so a chevron never appears over nothing.

argtypedescription
sourceany
rowany
keystring

heading(text: string) → void

argtypedescription
textstring

mono(text: string) → void

argtypedescription
textstring

data(value: any) → void

A decoded value, rendered. One row per line: the field's name dim beside its value, indented by how deep it sits, and no punctuation.

argtypedescription
valueany

fitInto(width: number, height: number, boxW: number, boxH: number) → void

argtypedescription
widthnumber
heightnumber
boxWnumber
boxHnumber

rowImages(m: any) → void

Every picture on a row: its own, or each of its calls' for a run of calls.

argtypedescription
many

imagePath(source: any, image: any, size: string) → string

Where a picture's `size` copy is drawn from, or nil while the plugin has not put it there (or no longer keeps it).

argtypedescription
sourceany
imageany
sizestring

pictureNodes(source: any, expanded: { [string]: boolean }, onToggle: () → void

The pictures a call returned: a row of thumbnails under the call, each opening its larger copy beneath the row when clicked.

argtypedescription
sourceany
expanded{ [string]: boolean }
onToggle(

onClick( ) → void

plainError(text: any) → void

A failure as a person reads it: one sentence, the service's own reason under it when it gave one, and the raw text kept for "Details". The raw text is an operator's: `hook 'llm_call' failed: API error: Claude API returned 400 Bad Request from https://…: {"type":"error",…}`. Drawn as it was, in red, it was a wall a person had to decode to learn that Claude refused one request. The pipeline's own wrapping is taken off, a provider's HTTP refusal is said as one, and its JSON is read for the message inside it.

argtypedescription
textany

tidyTurnRows(messages: { any }) → void

One account of a failure per turn. A failed turn reached the panel three times: as the `error` event, as the pipeline's chat sentence for surfaces that render no errors, and again as the `end` event's message. All three were drawn, so one refusal read as an error, an apology and the same error again. Within a turn (the rows between two of the person's messages) an error is drawn once, and an answer row that only restates it, or apologises generically beside it, is not drawn.

argtypedescription
messages{ any }

chatBlocks(blocks: { any }) → void

The renderer's blocks, set for a chat: inline code readable, paragraphs a little closer, and nothing hanging below the last block (the row's own gap is the space between messages).

argtypedescription
blocks{ any }

gapAfter(kind: string?, nextKind: string?) → number

The space under a row, read from what comes next: a turn's own pieces sit close together, and a new exchange starts with room above it.

argtypedescription
kindstring?
nextKindstring?

rowNodes(source: any, icons: any, expanded: { [string]: boolean }, onToggle: () → void

The nodes one transcript row draws: one, or two when an open row adds its detail beneath it. A row of a kind the transcript does not draw adds none.

argtypedescription
sourceany
iconsany
expanded{ [string]: boolean }
onToggle(

imageState(result: any) → string

Whether each picture a tool answer names is on disk, as one string. Read for an open row only: a closed row draws no picture.

argtypedescription
resultany

add(v: any) → void

argtypedescription
vany

sameStamp(a: { any }, b: { any }) → boolean

argtypedescription
a{ any }
b{ any }

keyedOnly(bucket: { [string]: any }) → boolean

Whether every callback a row registered is keyed. An unkeyed callback is numbered by the order the build reached it, so a kept subtree carrying one would answer to whichever closure the next build numbered the same; a row holding one is built fresh every time instead of kept.

argtypedescription
bucket{ [string]: any }

new(deps: { [string]: any }) →

Build a transcript. a tool answer (`traceOf`, `toolsRunIn`); `icons` holds the `down`, `right`, `alert` and `bot` paths; `expanded` is the open/closed table, keyed by row key, that the panel keeps; `onToggle()` runs after a row is opened or closed; `pageSize` overrides `M.PAGE`.

argtypedescription
deps{ [string]: any }`{ source, icons, expanded, onToggle, pageSize? }`: `source` reads

turnRows(messages: { any }) → void

`messages` as they draw, turn by turn: carrier calls grouped and each turn's failure said once (`tidyTurnRows`). A turn runs from one of the person's messages to the next, and both steps keep within it, so every turn that has ended is the rows it was the last time, and only the running turn is made again.

argtypedescription
messages{ any }

workId(row: any, index: number) → string

What a run of work rows is known by, from its first row: the call it starts with, else the row's own id, else its place.

argtypedescription
rowany
indexnumber

stepped(tabId: string, rows: { any }, running: boolean, calls: boolean) → void

`rows` as the transcript draws them, each with the key its drawing is kept under (`<tab>:m<index>`, its place among `rows`). A run of a turn's work rows (its thinking and tool calls) is one `steps` row naming what they did as a player reads it; the rows themselves follow it once the person opens it. `running` says the last turn is still under way, so a run nothing but the Working row follows is the step under way.

argtypedescription
tabIdstring
rows{ any }
runningboolean
callsboolean

windowOf(tabId: string, conversation: string) → void

argtypedescription
tabIdstring
conversationstring

showEarlier(tabId: string) → void

Draw one page more of the earlier rows on `tabId`'s next render.

argtypedescription
tabIdstring

stats(tabId: string) → any

What `tabId`'s last render did: `{ rows, drawn, built, kept, hidden }`. `rows` is every row the conversation has, `drawn` the rows on screen, `built` the rows whose nodes were made by that render, `kept` the rows that carried the nodes they already had, and `hidden` the rows behind "Show earlier messages".

argtypedescription
tabIdstring

render(tabId: string, messages: { any }, opts: { [string]: any }?) → any

`messages` as the scroll area `tabId` draws. the rows belong to (a new one starts again at one page), the clock a thinking row's seconds are read against (`os.clock()` when absent), whether its last turn is under way, which makes the last step of its work the current one, and `calls = true` to draw a turn's work as its calls rather than as steps.

argtypedescription
tabIdstring
messages{ any }
opts{ [string]: any }?`{ conversation?, now?, running?, calls? }`: the conversation

rowFor(key: string, stamp: { any }, make: () → void

One row's nodes: the ones it already has when `stamp` says it shows what it showed last time, else new ones from `make`.

argtypedescription
keystring
stamp{ any }
make(

cardImages(run: any) → void

The pictures a run's card draws: its newest `AGENT_PICTURES`.

argtypedescription
runany

agentHue(P: any, state: string) → string

The hue of a run's state: the link blue while it works, the warning hue while it waits, and the hue of how it ended once it has.

argtypedescription
Pany
statestring

agentCard(source: any, icons: any, expanded: { [string]: boolean }, onToggle: () → void

One agent's card. **One line high until it is opened**, so five agents cost the transcript five lines rather than most of the panel: the line holds its state, its name, what it is doing now (or how it ended), how long it has taken, its Stop while it works and the arrow to its transcript. Pressing what it is doing opens the card under that line to the rest: its task, the whole of what it is doing, what it has used and the pictures its calls returned. Nothing a card held is gone; the line says where it is. The name opens its transcript, as the arrow does.

argtypedescription
sourceany
iconsany
expanded{ [string]: boolean }
onToggle(

onClick( ) → void

onClick( ) → void

onClick( ) → void

onClick( ) → void

headingText(P: any, runs: { any }) → any

The heading's count of each state, a failure in the failure hue.

argtypedescription
Pany
runs{ any }

newAgents(deps: { [string]: any }) →

Build the agent cards one tab draws above its composer. (`icons.term` marks a tool call, `icons.stop` the Stop button), plus `onOpen(run, key)` (a card's chevron or name) and `onStop(run, key)` (its Stop), each handed the run and the key of the section it was pressed in; `pageSize` overrides `M.AGENT_PAGE`.

argtypedescription
deps{ [string]: any }The same `{ source, icons, expanded, onToggle }` a transcript takes

showEarlier(key: string) → void

Draw one page more of the earlier cards on `key`'s next render.

argtypedescription
keystring

stats(key: string) → any

What `key`'s last render did: `{ runs, drawn, built, kept, hidden, folded }`.

argtypedescription
keystring

folded(key: string, runs: { any }, conversation: string?) → boolean

Whether `key`'s section is folded to its heading for `runs`, the agents of `conversation`: as the person set it for that conversation since its agents last started or all ended, else open while an agent works and folded once every agent has ended.

argtypedescription
keystring
runs{ any }
conversationstring?

setFolded(key: string, runs: { any }, conversation: string?, folded: boolean) → void

Fold (`true`) or open `key`'s section for `conversation`'s agents `runs`, as a press on its heading does: it holds until the conversation's agents next start or all end.

argtypedescription
keystring
runs{ any }
conversationstring?
foldedboolean

render(key: string, runs: { any }, opts: { [string]: any }?) → any

`runs` (oldest first, as the source lists them) as the section `key` draws: a heading naming how many agents are in each state, which folds the cards, then the newest cards first with the earlier ones behind a "Show earlier agents" row. Nil for no runs. against, in host epoch milliseconds (`os.time() * 1000` when absent), and the conversation the agents belong to, which a fold is kept for.

argtypedescription
keystring
runs{ any }
opts{ [string]: any }?`{ nowMs?, conversation? }`: the clock elapsed time is read

onClick( ) → void

onDrag(d: any) → void

argtypedescription
dany

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

Showing up to 3 levels deep. Open a part to see what it holds further down.

12+items
▣
module · born here
❒asset
# view What the DotBot panel says, apart from how it is drawn. Every function here is pure: it takes readings from `modules.dotbot.source` and returns the words and the state the panel renders. | Function | Answers | |----------|---------| | `emptyState(availability)` | The title and detail shown when no DotBot surface is present. | | `hintLine(agent, usage)` | The line under the composer naming what pays and what is left, or nil when there is nothing honest to say. | | `usageNotice(agent, usage, models)` | The banner above the composer: a notice under 25% left, a warning under 10% offering a cheaper model only when that model is one the agent can run, and a used-up state naming the reset and that a message sent now is answered once it resets. | | `contextGauge(answer, preview?)` | The context gauge of a conversation from the plugin's `context` answer: the fill (its context against its model's window), where the auto-compact handle stands and the range it can move in (the least a threshold may be, to the most it takes effect at, never past the window), `184K / 1M` or `184K / max unknown`, and `compacts at 600K`. `gaugeTokensAt(gauge, fraction)` is the threshold a press or a drag at a share of the bar sets (to 1,000 tokens); `gaugeKey(gauge, from, key, shift?)` is where an arrow (10,000, Shift 100,000), Page Up / Down, Home or End moves it. `gaugeCount(n)` writes a size the way the gauge does. | | `continuationNotice(continuation)` | The banner while the conversation's turn waits for a usage window to reset: when it continues, with Continue now and Cancel. | | `problemNotice(agent)` | The banner a failed sign-in puts above the composer. | | `composerState(availability, agent, usage)` | Whether the field takes typing, what it says while empty, and whether it carries the model and thinking chips. A spent window keeps the field open and says which limit is used up and when it resets: the provider decides. | | `connectSheet(agent, flow)` | The sheet a disconnected, expired or unlinked agent shows in place of a conversation. | | `connectedNotice(agent, account)` | The line a freshly-connected agent shows above its first turn. | | `metaLine(meta)` / `metaWho(meta)` | The per-turn meta line: model, thinking level, tokens, tool calls, duration — and who paid. | | `pickerSubtitle(agent)` / `pickerAction(agent)` | What an agent's row in the picker says, and the word on its button when it needs one. | | `rowKey(row)` / `mergeRows(history, live)` | A transcript row's identity (a tool row is its call, a thinking row or usage line is itself) and the merge of stored history with the live rows, which shows the overlap once. A live row the history does not hold (a turn's usage line is never stored) is drawn after the stored row the live row before it matched, so it stays with its own turn; live rows nothing of which is stored yet follow the history. A history list is keyed once, when it first reaches `mergeRows`, so a merge on every redraw costs the live rows. | | `palette()` / `MONO` / `MESSAGE` | DotBot's own look: the editor's palette with DotBot's colours and corner radii laid over it, the font code and figures are set in, and the surfaces of a person's message and an opened thought. | | `groupCarrierRows(rows, toolsRunIn)` | Runs of `tool_exec` calls collapsed into one row naming the tools they ran. | | `thinkingLabel(row, now)` / `finishThinking(row, now)` / `foldThinking(rows, from)` / `thinkingRow(...)` / `toggleOpen(state, key)` | Thinking as a folded row: its header, its clock, the fold of one turn's phases into one row, and the open/closed state. | | `splitMarkdown(md)` / `tableNode(...)` / `tableWeights(...)` / `codeNode(...)` / `markSelectable(node)` | An answer's tables and fenced code lifted out of the markdown and drawn so they wrap, and every piece of an answer marked selectable. | | `imageNode(P, key, path, exists)` | A tool's picture, or the line saying it is no longer available. | | `linkText(id, label, onClick)` | Text that looks like a link and acts like one, its callback keyed by `id`. | | `agentStateWord(state)` / `agentActive(run)` | How an agent's state reads (`Queued`, `Starting`, `Working`, `Waiting`, `Done`, `Failed`, `Cancelled`), and whether it still works. | | `agentElapsed(run, nowMs)` / `agentWaited(run, nowMs)` / `duration(seconds)` | How long an agent has worked, counting from its start while it works (none while queued), how long a queued agent has waited to start, and a span as `8s`, `1m 05s`, `1h 02m`. | | `oneLine(text, limit)` | Text as one line, its line breaks made spaces, cut at `limit`. | | `agentDoing(run, nowMs?)` | What an agent is doing now and what kind of line that is: the tool it is in, a phase, "Waiting for your answer: <tool>" while a call waits on the person, "Waiting for engine work" once its loop has ended and engine work it started has not, its answer once done, or why it failed. | | `agentUsage(run)` | What an agent has used: tool calls, input, output and cache hit rate. | | `agentsHeading(runs)` / `agentsHeadingParts(runs)` | The line over a conversation's agents, naming how many are in each state, e.g. `Agents · 1 queued · 2 working · 1 done`, and its pieces, each with the state it counts. | | `agentsUsageLine(totals)` | The line under the composer naming what the agents used, from `subagentUsage`: how many, their input, output and cache hit rate, and the credits they were charged. | | `USAGE_PENDING` | What `usageLine` says before a provider has reported a window. | | `workflowStatus(run)` | How a workflow run's state reads and the state its hue comes from: `Working` while an agent holds one of its requests, `Waiting` while requests wait for one, `Running`, `Finished`, `Failed`, `Cancelled`. | | `requestStateWord(state)` | How a workflow request's state reads (`Waiting`, `Claimed`, `Answered`, `Failed`, `Cancelled`). | | `workflowElapsed(run, nowSec)` / `workflowProgress(run)` | How long a run has taken, and `{ answered, asked, failed, text }` with `text` such as `2 of 5 answered · 1 failed`. | | `phaseName(name)` / `workflowPhaseLine(run, phases)` | A phase's name (`Start` for the unnamed one), and the phases as `Plan 1/1 · ▸Build 1/3`, the one the run is in marked. | | `workflowStarter(run, title?, agentName?, address?)` | Who started a run: `in “<conversation>”` (or `in DotBot conversation <first 8 of its id>` when the list names it by its id alone), `by agent <name> in ...`, or `by <caller>` from what the engine recorded. | | `requestTiming(req, nowSec, agent?)` | A request's line: the agent working it or the runner holding its claim, how long it has been claimed or waited or took, the claims that ran out and its corrections. | | `answerText(answer, limit?)` | An answer as text: a string as it is, a table of named string, number or boolean fields as one `name: value` line each, anything else as indented JSON, cut at `limit`. | | `workflowsRunningText(count)` | `1 workflow running`, `3 workflows running`. | | `waitingOn(runs, args)` | The Working row while `wait_for_agents` runs: the agents it waits on, by name, newest first as the cards stand, and whether it waits for the first of them; once they have all ended, that they have. | The thresholds the usage ladder turns on are `noticeThreshold` (25) and `warnThreshold` (10).
▲ 0↑ born
▣
module · born here
❒asset
# steps A DotBot turn's work as the steps a player reads, in the person's language: each tool call, thought and workflow request worded as what it does to their game ("Building the level", "Planned 4 parts"). The panel draws a turn's work as these steps, with the calls themselves one press away. ```luau local Steps = require(".steps") local steps = Steps.ofRows(workRows, true) -- the running turn's work for _, step in ipairs(steps) do print(Steps.line(step), step.state) end ``` | Member | Answers | |--------|---------| | `ofRows(rows, running?)` | The steps a run of a turn's work rows (thinking, tool calls, groups of carrier calls) makes, in order: calls of one kind one after another are one step `{ kind, calls, failed, state }`, and thinking between calls belongs to the step it leads to (a `think` step stands only while the model is thinking at the end of a turn under way, or for rows that hold no call). A step one of whose calls failed and that the turn went on past is followed by a `retry` step. With `running`, the last step is `"current"`; the others are `"done"`. | | `line(step)` | The words of a step: `dotbot.step_<kind>_doing` for the current one, `_done` for one finished, `dotbot.step_retry` for a retry. | | `text(step)` / `retryText()` | The words of a kind of step, and of a retry. | | `kindOf(name, args)` | The kind of step a call of tool `name` with `args` (a table, or the JSON a row carries) is, or nil for a call that takes no step of its own (`wait`). A file written is the level, art, screens or how the game works by its path; a script run in the world is art when it generates, the level when it spawns or places, a check when it reads the playable milestone; a shell command is the plan (`zero workflow`), saving (`zm add`, `commit`, `push`), writing how the game works when it writes a file (`sed -i`, output sent into a path) or reading the files (output sent to another stream or to `/dev/null` writes none). | | `toolDoing(name)` | The words of a step a call of `name` is while under way, for a line that names only the tool (an agent's card). | | `ofWorkflow(run)` | One `{ text, state }` per request a workflow run asked, oldest first, `state` `"done"`, `"current"` (claimed), `"next"` (waiting) or `"failed"`. | | `requestText(req, done)` | A workflow request's words by its label: `reference` (naming the game its answer titles), `plan` (counting the parts its answer plans), `build:<part>`, `polish:<survey, models, surfaces, sound>`, `match:<round>`, `publish`, and any other label. | | `KINDS` | The kinds a step can be. | Tested by `src/lua/lib/tests/suites/dotbot_panel.testSuite`.
▲ 0↑ born
·
plugin · born here
❒asset
# dotbot DotBot, the agent in Zero's editor: the component that runs a person's own Claude or ChatGPT plan (or OrigoZero credits) from inside Zero, and the DotBot panel in the editor's right dock that talks to it. This world is where the plugin's published copy lives; the engine's built-in library pins a version of it. ## What is here | Part | What it is | |------|------------| | `plugin.wasm` | The DotBot component (`wasm32-wasip2`), built in the DotBot repo from `crates/dbot-zero-plugin`. | | `plugin.yaml` | The plugin's grants: its scope, the hosts it may reach, its private storage. | | `surface.module` | The plugin's Luau surface, what `require("@builtin::plugins.dotbot")` resolves to. | | `source.module` | What the panel reads: agents, accounts, conversations, history, turns, agents a turn started. | | `service.module` | The trusted service between the panel and the component: calls, the event ring, jobs. | | `panel.editorPanel` | The DotBot panel itself: toolbar, transcript, agents, composer, settings. | | `view.module` | What the panel says and how it looks (`palette()`), apart from how it is drawn. | | `transcript.module` | The transcript and the agents section, drawn as virtual rows. | | `workflows.module` | The Workflows view. | Each module's own README says what it does in detail. ## Seeing a panel change The editor draws its DotBot tab from the built-in library, not from this world, so an edit to the panel here does not show in the real tab. Open the world's own panel code over a fake plugin with example data instead: ```bash luau --lang luau 'require("/source/dotbotPanelPreview.module").open()' ``` It opens a **DotBot preview** tab beside the real one. Run it again after each edit. `dotbotPanelPreview.module/README.md` says what it shows. ## Shipping a change Work on a branch of this world and open a pull request into `main`. How a merged change reaches the engine (publishing `plugin.wasm`, and the engine's pin of this world) is written down in the DotBot repo, in `docs/zero-plugin.md`.
▲ 0↑ born
backing path · dotbot.plugin/transcript.module

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.