lavish-axi 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/cli.mjs +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -96,6 +96,7 @@ pnpm link
|
|
|
96
96
|
|
|
97
97
|
- **File-path identity** - Sessions are keyed by the canonical HTML file path, so agents do not need opaque IDs.
|
|
98
98
|
- **Portable artifacts** - The artifact runs in an iframe while Lavish injects a small SDK for annotations, snapshots, and feedback controls. Lavish does not inject any design system, so the saved HTML file renders identically whether you open it through `lavish-axi` or directly in a browser. Run `lavish-axi design` for a copy-pasteable CDN snippet to opt in to Tailwind CSS v4 + DaisyUI v5, or use any other design system (or none).
|
|
99
|
+
- **Local assets** - Copy local images, CSS, fonts, and scripts next to the HTML artifact and reference them with relative paths from that directory; root-prefixed paths such as `/assets/logo.png` will not resolve through Lavish's artifact route.
|
|
99
100
|
- **Live reload** - Lavish watches the HTML artifact file by default. To also reload on sibling asset changes, add `data-lavish-live-reload-root` to the root element or `<meta name="lavish-live-reload" content="root">`.
|
|
100
101
|
- **Feedback controls** - Mark buttons, choices, and other interactive elements with `data-lavish-action` so Lavish does not annotate them, then call `window.lavish.queuePrompt()` or `window.lavish.sendQueuedPrompts()` from the control handler.
|
|
101
102
|
- **Agent presence** - The browser shows when no agent is listening, keeps queued feedback for the next successful `lavish-axi poll` send even across reloads, and only blocks sending while the agent is working on delivered feedback.
|
package/dist/cli.mjs
CHANGED
|
@@ -1389,7 +1389,7 @@ async function serve({ port, stateFile: stateFile2, version = "", debug = false,
|
|
|
1389
1389
|
res.status(403).send("Forbidden");
|
|
1390
1390
|
return;
|
|
1391
1391
|
}
|
|
1392
|
-
res.sendFile(file);
|
|
1392
|
+
res.sendFile(file, { dotfiles: "allow" });
|
|
1393
1393
|
} catch (error) {
|
|
1394
1394
|
next(error);
|
|
1395
1395
|
}
|
|
@@ -1822,7 +1822,7 @@ function normalizePagePath(path5) {
|
|
|
1822
1822
|
// src/cli.js
|
|
1823
1823
|
var COMMANDS = /* @__PURE__ */ new Set(["open", "poll", "end", "server", "playbook", "design"]);
|
|
1824
1824
|
var DESCRIPTION = "Lavish Editor helps agents turn rich HTML artifacts into collaborative human review surfaces. Whenever you are about to give user a complex response that will be easier to understand via a rich / interactive page, consider using Lavish Editor. First generate an interactive HTML artifact according to user request, then run `lavish-axi <html-file>` so the user can visually review it, annotate elements or selected text, queue prompts, and send feedback back through `lavish-axi poll`.";
|
|
1825
|
-
var VERSION = "0.1.
|
|
1825
|
+
var VERSION = "0.1.13";
|
|
1826
1826
|
async function run(argv) {
|
|
1827
1827
|
await ensureStateDir();
|
|
1828
1828
|
const normalizedArgv = normalizeArgv(argv);
|
|
@@ -1912,6 +1912,7 @@ function createHomeOutput({ bin, sessions, includeSessions = true }) {
|
|
|
1912
1912
|
help: [
|
|
1913
1913
|
"Run `lavish-axi <html-file>` to open or resume a Lavish Editor session",
|
|
1914
1914
|
"Unless the user specifies another location, create HTML artifacts in the current working directory under `.lavish/`",
|
|
1915
|
+
"Lavish serves the html file through a local express.js server. If your html needs to reference other filesystem assets such as images, CSS, fonts, and local scripts, copy them into the same directory as the HTML file, then reference them with relative paths from that directory. Never prepend `/` to those asset paths - root paths won't work",
|
|
1915
1916
|
"Run `lavish-axi poll <html-file>` to wait for user feedback",
|
|
1916
1917
|
"Run `lavish-axi end <html-file>` to end a session",
|
|
1917
1918
|
"Run `lavish-axi playbook <playbook_id>` for focused artifact guidance",
|