What a coding assistant shows beside its words: a generated file, a commit, secrets, previews of markup and pages, a package change, a tool's run, an endpoint, a line to copy.
Artifact
A frame for something generated, with a header of actions.
ArtifactArtifactAction's children are its icon; tooltip shows on hover. ArtifactClose does nothing by itself: the page decides.
area.pyGenerated a moment ago, 7 lines
Run
Copy
Regenerate
importmath
defarea(r):
returnmath.pi*r**2
forrinrange(1,4):
print(f"r={r}: {area(r):.2f}")
Circleschanges the generated code
Last action
nothing yet
Commit
A commit that opens on its header to show the files it touched.
CommitPress the header (or Enter on it) to open and close. The copy button copies the whole hash.
AL
Let a page say which microphone it listens to
9f3c2ab••Ada Lovelace
Copy commit hash
Mcompiler/src/view.rs
+42-9
Akit/ai.mote
+812
Druntime/widgets/old.js
-131
Rdocs/kit/ai.md
+3-3
GH
Starts closed: no open on the root
41d7e55•
MREADME.md
+2
Totals, from the same list
4 files, +857 -143
Timestamps and statusesCommitTimestamp takes milliseconds and says how long ago; the full date is its title. CommitFileStatus has a letter and a colour for each of four words.
20 seconds before now
5 minutes before now
3 hours before now
30 hours before now
6 days before now
35 days before now
4 months before now
400 days before now
3 years before now
Aadded
Mmodified
Ddeleted
Rrenamed
Environment Variables
Values are dots until shown, and are not in the page while hidden.
Composed, with a toggleshowValues lives in the page and goes to the toggle and each value. Three copy buttons per row: the value, the name, an export line.
.env.production
DATABASE_URLRequired
••••••••••••••••••••
Copy value
Copy name
Copy as export
OPENAI_API_KEYRequired
••••••••••••••••••••
Copy value
Copy name
Copy as export
SENTRY_DSN
••••••••••••••••••••
Copy value
Copy name
Copy as export
PORT
••••
Copy value
Copy name
Copy as export
values hidden
Short formGiven name and value, EnvironmentVariable draws both itself, with its children between them. Each takes its own showValues.
NODE_ENVproduction
SESSION_SECRETRequired••••••••••••••••••••
REGION••••••••••
The first is always shown, the second never; the third follows the toggle in the card beside this one.
HTML Preview
The original draws a JSX string as React components. Here the same names preview generated HTML, in a frame of its own with scripts off.
HtmlPreview, streamingThe markup is made here from the two fields. While it streams, tags still open at the end are closed so the half-written page draws.
Place
Degrees4°
The markup so far
479 of 479 characters…km/h</b></li><li>Humidity <b>77%</b></li><li>Sunset <b>15:42</b></li></ul></div></article>
Cut shortThe same ragged markup twice: cut off inside a tag, with a quoted > and a stray <. Streaming closes what is open; not streaming leaves it as written.
An API endpoint: method, path, parameters and bodies, nested as deep as they go.
From dataGiven method and path it draws everything it is handed. Each section opens and closes; {params} in the path are picked out.
POST/v1/projects/{projectId}/deployments/{ref}
Start a deployment of a project at a ref.
Parameters3
projectIdstringpathrequired
The project to deploy.
dryRunbooleanquery
Check the request without deploying.
Authorizationstringheaderrequired
Bearer token.
Request Body
refstringrequired
Branch, tag or commit to deploy.
targetobjectrequired
Where it goes.
environmentstringrequired
production or preview.
regionsarray
Regions to deploy to.
regions[]object
codestringrequired
weightnumber
envarray
Variables for this deployment only.
env[]string
Response
idstringrequired
The deployment's id.
statusstringrequired
queued, building, ready or failed.
urlsarray
urls[]string
Composed by handWithout method and path the root is the frame. AiKitSchemaSection is the opening part the three sections are made of; use it for one of your own.
GET/v1/deployments/{id}
One deployment, by its id.
Parameters0
idstringpathrequired
The deployment's id.
Headers1
Authorizationstringheaderrequired
Bearer token.
Request Body
notestring
A GET sends none; shown for the part.
Response
idstringrequired
targetobject
environmentstringrequired
production or preview.
regionsarray
Regions to deploy to.
regions[]object
codestringrequired
weightnumber
{
"id":"dpl_8fK2",
"status":"queued",
"urls":["https://app-8fk2.example.dev"]
}
SchemaDisplayMethod
GETPOSTPUTPATCHDELETE
Snippet
One line of code with a copy button.
SnippetGiven code it draws the usual row; prefix is the quiet word before it. Without code, compose the parts. The field cannot be edited.
$
Copy
Copy
git
Copy
The first one's code
Web Preview
A page in a frame, with an address bar that keeps history, three widths, full screen, and a console the page fills.
Web PreviewThe pages here are data: addresses the playground writes. Type any address and press Enter; back, forward and reload work the history.
page 1 of 1, desktop, loading
Back
Forward
Reload
Phone
Tablet
Desktop
Full screen
Console2
12:00 AMPage loaded in 142 ms
12:00 AMImage /hero.png has no width or height
Parts aloneAiKitWebFrame is the frame WebPreviewBody draws. A navigation button with no go takes a press of its own. A console with nothing to show says so.
WebPreviewNavigationButtonwith press, and disabled