What an assistant that writes code has to show: the files it touched, the error it met, what the command printed, and which tests passed. Each takes its data whole, or is composed from its parts.
File Tree
A tree of treeitems. Give it paths and it finds the folders; or write the folders and files yourself.
From a list of pathsArrow keys move, right and left open and close, Home and End, Enter chooses. A path ending in / is an empty folder.
selectedPath
src/app.mote
expanded
src
src/parts
press was handed
nothing yet: choose a file
Composed by handFileTreeFolder and FileTreeFile under a bare FileTree. A folder opens by itself, or follows a list with expanded=. Files may carry actions; the last row is FileTreeIcon and FileTreeName alone.
docs
card.md
Copy the path
chat.md
Copy the path
code.md
icons
lucide.txt
LICENSE
mote.lock
selectedPath
docs/card.md
expanded (the kit folder's list)
docs/kit
copied
nothing yet: press a file's copy button
The four icon kinds:
file
folder
folder-open
folder-either
Stack Trace
A JavaScript error, read from its text: the kind, the message and each frame.
From an error's textChrome, Node, Firefox and Windows shapes are read. Frames from node_modules and node: are dimmed, or left out. Press a path.
An error from
TypeErrorCannot read properties of undefined (reading 'map')
at renderList (:42:18)
at async Promise.all (index 0)
at new Store (:9:11)
at Object.<anonymous> (:14985:18)
at :95:5
press was handed
nothing yet: press a file's path
THE TEXT IT READS (EDIT IT)
Composed by handEvery part reads the same text. Here the frames stand open with no internal ones, under a lower ceiling, with an action of your own.
ErrorENOENT: no such file or directory, open 'dist\index.html'
exit 1
at serve (:27:14)
at eval (eval at run (C:\work\shop\run.js:3:1))
at :5:1
typeReferenceError
messagetotal is not defined
press a path above
Terminal
A command's output, read-only, with its ANSI colours. Dark in both schemes, as a console is. (To type into one, use the terminal element.)
Output that streamsA timer appends to one string. The terminal stays at its end, shows a spinner and a cursor while it streams, and rewrites a line on a carriage return.
mote build
streaming · 0 characters · cleared 0 times
Colours and escapesThe 16 colours, the 256, 24-bit; bold, dim, italic, underline, inverse; carriage return and erase-line. Other escapes are dropped.
ANSI
bolddimitalicunderlined inverse
redgreenyellowbluemagentacyanbright redbright green
256 colours24-bit on red on 256
loading 100%
erased, then written again
TRY SOME: \e IS ESCAPE, \r A CARRIAGE RETURN, \n A NEW LINE
Composed by handThe header, title, status, the console's own buttons, and the text under a ceiling of 132 px. With autoScroll off it stays where you leave it.
access.log
No output yet. Add a line, or start the tail.
Tail the logA line every 450 ms.
autoScrollStay at the end as output arrives.
0 lines
Test Results
A summary, a bar, suites that fold, and each test with its status.
A run, as it happensEach test goes from queued to running to its result; the summary, the bar and each suite's badge are counted from the same list.
finished: 7 passed, 1 failed, 1 skipped
7 passed1 failed1 skipped
520ms
7/9 tests passed78%
auth
2 passed1 failed1 skipped
logs in12ms
logs out40ms
Expected 200, got 500
at logout (auth.test.ts:20:5)
at run (runner.ts:8:3)
resets a password
refreshes a token21ms
parser
3 passed
reads a file3ms
reads a nested block7ms
names the line of an error5ms
build
2 passed
writes index.html310ms
writes a service worker122ms
Composed by handThe header's parts and the bar on numbers of your own, and a test written from TestStatus, TestName and TestDuration, once for every status.
9 passed2 failed1 skipped
1.40s
9/12 tests passed75%
statuses
1 passed1 failed1 skipped
passed12ms
failed40ms
Expected 200, got 500
at logout (auth.test.ts:20:5)
at run (runner.ts:8:3)