src/cli.js
Main command router: open, poll, end, stop, server, playbook, design, setup. Normalizes lavish-axi artifact.html into an open command and manages spawned server/session behavior.
src/server.js
Express server, session creation, long-polling, browser/server event stream, artifact serving, SDK injection, file watching, and idle shutdown.
src/artifact-sdk.js
Injected artifact-side SDK used for annotations, DOM snapshots, action controls, queued prompts, and communication with the chrome wrapper.
src/chrome-client.js + src/chrome.css
Browser chrome UI for sessions: composer, annotation cards, queue/send flow, feedback display, reload/copy/end controls.
src/session-store.js
Local state store keyed by canonical file path, preserving sessions and queued feedback under the Lavish state directory.
src/playbooks.js / src/design-reference.js
Agent guidance for generating better artifact forms: diagrams, tables, comparisons, plans, diffs, inputs, and slides; includes design fallback advice.
skills/lavish/SKILL.md
Installable Agent Skills entrypoint. Tells Claude Code/Codex/OpenCode-style agents when to use Lavish and which commands to run.