Skip to main content

Preview when users are remote

Craft-style apps write static output (for example dist/) into the session workdir. Digitorn shows that tree in the Preview pane of the UI. Agents can inspect it with the preview module (inspect, snapshot).

There is no tools.modules.web_preview module.

What to put in app YAML

app.yaml
tools:
modules:
filesystem:
config:
workspace: "."
preview: {}
capabilities:
grant:
- module: filesystem
actions: [read, write, edit, glob, grep]
- module: preview
actions: [inspect, snapshot]

ui:
workspace:
render_mode: html
entry_file: dist/index.html
position: right

Optional: agent-started dev servers

If an agent starts Vite / Next on a loopback port via bash, that port is not automatically public. Publishing it is infrastructure around Digitorn (reverse proxy / DNS), not an app-YAML feature.