lavish-axi 0.1.15 → 0.1.17
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 +3 -3
- package/dist/cli.mjs +16 -19
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ Lavish Editor opens agent-generated HTML files in a local browser, lets you pinp
|
|
|
35
35
|
|
|
36
36
|
- **Local only** - Work with your local HTML artifacts with a local CLI. Zero cloud dependency.
|
|
37
37
|
- **Human-AI collaboration** - Annotate elements, selected text ranges, and send messages to the agent without leaving Lavish Editor.
|
|
38
|
-
- **Battery included** - Lavish Editor teaches your agent good visualization for common use cases such as
|
|
38
|
+
- **Battery included** - Lavish Editor teaches your agent good visualization for common use cases such as product or technical plans, design explorations and more out of the box.
|
|
39
39
|
|
|
40
40
|
Lavish Editor is an [AXI](https://axi.md), which means -
|
|
41
41
|
|
|
@@ -48,7 +48,7 @@ Lavish Editor is an [AXI](https://axi.md), which means -
|
|
|
48
48
|
Just tell your agent:
|
|
49
49
|
|
|
50
50
|
```sh
|
|
51
|
-
Use `npx lavish-axi` to write a technical plan for what we discussed.
|
|
51
|
+
Use `npx lavish-axi` to write a product or technical plan for what we discussed.
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
## Install
|
|
@@ -95,7 +95,7 @@ pnpm link
|
|
|
95
95
|
```
|
|
96
96
|
|
|
97
97
|
- **File-path identity** - Sessions are keyed by the canonical HTML file path, so agents do not need opaque IDs.
|
|
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.
|
|
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. Choose a design system in priority order: follow a user-requested look first, match the current project's design system or conventions next, and otherwise run `lavish-axi design` for a copy-pasteable Tailwind CSS v4 + DaisyUI v5 CDN fallback.
|
|
99
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.
|
|
100
100
|
- **Live reload** - Lavish watches the HTML artifact file by default and preserves the artifact iframe scroll position across reloads. 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">`.
|
|
101
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.
|
package/dist/cli.mjs
CHANGED
|
@@ -20,7 +20,7 @@ var DESIGN_CDN_URLS = {
|
|
|
20
20
|
var DESIGN_CDN_SNIPPET = `<link rel="stylesheet" href="${DESIGN_CDN_URLS.daisyui}">
|
|
21
21
|
<link rel="stylesheet" href="${DESIGN_CDN_URLS.daisyuiThemes}">
|
|
22
22
|
<script src="${DESIGN_CDN_URLS.tailwind}"></script>`;
|
|
23
|
-
var DESIGN_SYSTEM_HINT = "Lavish does not auto-inject any design system - artifacts stay portable so they render identically when opened directly without lavish-axi running. Tailwind CSS browser runtime v4
|
|
23
|
+
var DESIGN_SYSTEM_HINT = "Lavish does not auto-inject any design system - artifacts stay portable so they render identically when opened directly without lavish-axi running. Choose a design system in this priority order: (1) if the user asked for a specific look or named design system, follow that; (2) otherwise, if the current project already has a design system or style conventions, match those so the artifact fits in; (3) otherwise, prefer the Lavish-recommended Tailwind CSS browser runtime v4 + DaisyUI v5, available via CDN - run `lavish-axi design` for a copy-pasteable CDN snippet plus component reference. Prefer that CDN snippet over hand-writing styles unless explicitly instructed otherwise by the user.";
|
|
24
24
|
var DAISYUI_THEMES = [
|
|
25
25
|
"light",
|
|
26
26
|
"dark",
|
|
@@ -61,7 +61,7 @@ var DAISYUI_THEMES = [
|
|
|
61
61
|
function createDesignOutput() {
|
|
62
62
|
return {
|
|
63
63
|
design: {
|
|
64
|
-
summary: "Lavish does not auto-inject any design system. Artifacts stay portable HTML.
|
|
64
|
+
summary: "Lavish does not auto-inject any design system. Artifacts stay portable HTML. Choose a design system in this priority order: (1) if the user asked for a specific look or named design system, follow that; (2) otherwise, if the current project already ships a design system or style conventions, match those; (3) otherwise, prefer the Lavish-recommended Tailwind CSS browser runtime v4 + DaisyUI v5 + themes - paste the CDN snippet below into your `<head>`. Prefer this CDN snippet over hand-writing styles unless explicitly instructed otherwise by the user.",
|
|
65
65
|
cdn_snippet: DESIGN_CDN_SNIPPET,
|
|
66
66
|
cdn_urls: DESIGN_CDN_URLS,
|
|
67
67
|
versions: { tailwind: TAILWIND_BROWSER_VERSION, daisyui: DAISYUI_VERSION },
|
|
@@ -577,31 +577,28 @@ var PLAYBOOKS = [
|
|
|
577
577
|
},
|
|
578
578
|
{
|
|
579
579
|
id: "plan",
|
|
580
|
-
use_when: "Explain a technical plan before implementation",
|
|
580
|
+
use_when: "Explain a product or technical plan before implementation",
|
|
581
581
|
choose: [
|
|
582
582
|
"Use this when the user needs to inspect a feature approach before implementation begins.",
|
|
583
|
-
"Use it when
|
|
584
|
-
"Use a lighter comparison or diagram playbook when the plan is only a small design choice."
|
|
583
|
+
"Use it when the user explicitly asked for a PRD, technical design, implementation plan or proposal.",
|
|
584
|
+
"Use a lighter comparison or diagram playbook when the plan is only a single small design choice."
|
|
585
585
|
],
|
|
586
586
|
structure: [
|
|
587
|
-
"Start with the
|
|
588
|
-
"
|
|
589
|
-
"
|
|
587
|
+
"Start with the goal, the current state, and desired behavior.",
|
|
588
|
+
"Then describe a proposed approach, focusing on high level decisions.",
|
|
589
|
+
"At the end, list any risks you see, and open questions you have, and follow the 'comparison' playbook to provide options for the user to choose from."
|
|
590
590
|
],
|
|
591
591
|
design_rules: [
|
|
592
592
|
"Verify each claim against the codebase before presenting it as fact.",
|
|
593
|
-
"
|
|
594
|
-
"
|
|
593
|
+
"When discussing frontend experiences, prefer visually mocking the experience under a consistent design system as the real product over describing it with text.",
|
|
594
|
+
"The plan needs to be self-contained enough that another developer can read it and fully implement the proposal."
|
|
595
595
|
],
|
|
596
596
|
pitfalls: [
|
|
597
|
-
"Do not
|
|
598
|
-
"Do not
|
|
597
|
+
"Do not leave resolved open questions in the artifact. Update existing content to reflect the decision and remove the open question.",
|
|
598
|
+
"Do not only focus on ambiguous decisions and omit the actual proposal.",
|
|
599
599
|
"Do not omit failure modes, migration concerns, or backwards compatibility questions."
|
|
600
600
|
],
|
|
601
|
-
lavish_notes: [
|
|
602
|
-
"A Lavish plan should make uncertainties easy to annotate before code exists.",
|
|
603
|
-
"Use controls for scope choices so the user can queue a precise implementation direction."
|
|
604
|
-
]
|
|
601
|
+
lavish_notes: ["A Lavish plan should make a plan and its uncertainties easy to annotate before code exists."]
|
|
605
602
|
},
|
|
606
603
|
{
|
|
607
604
|
id: "diff",
|
|
@@ -1837,7 +1834,7 @@ function normalizePagePath(path5) {
|
|
|
1837
1834
|
// src/cli.js
|
|
1838
1835
|
var COMMANDS = /* @__PURE__ */ new Set(["open", "poll", "end", "server", "playbook", "design", "setup"]);
|
|
1839
1836
|
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`.";
|
|
1840
|
-
var VERSION = "0.1.
|
|
1837
|
+
var VERSION = "0.1.17";
|
|
1841
1838
|
async function run(argv) {
|
|
1842
1839
|
await ensureStateDir();
|
|
1843
1840
|
const normalizedArgv = normalizeArgv(argv);
|
|
@@ -1932,7 +1929,7 @@ function createHomeOutput({ bin, sessions, includeSessions = true }) {
|
|
|
1932
1929
|
"Run `lavish-axi end <html-file>` to end a session",
|
|
1933
1930
|
"Run `lavish-axi playbook <playbook_id>` for focused artifact guidance",
|
|
1934
1931
|
DESIGN_SYSTEM_HINT,
|
|
1935
|
-
"Use lavish-axi when the user asks for a visual artifact, HTML explainer, interactive prototype, review surface, technical plan, comparison, report, or browser-based feedback loop"
|
|
1932
|
+
"Use lavish-axi when the user asks for a visual artifact, HTML explainer, interactive prototype, review surface, product or technical plan, comparison, report, or browser-based feedback loop"
|
|
1936
1933
|
]
|
|
1937
1934
|
};
|
|
1938
1935
|
}
|
|
@@ -2308,7 +2305,7 @@ Examples:
|
|
|
2308
2305
|
`,
|
|
2309
2306
|
design: `Usage: lavish-axi design
|
|
2310
2307
|
|
|
2311
|
-
Show a copy-pasteable CDN snippet for Tailwind CSS browser runtime v4 + DaisyUI v5 + themes, plus technical reference for DaisyUI components. Lavish artifacts stay portable HTML.
|
|
2308
|
+
Show a copy-pasteable CDN snippet for Tailwind CSS browser runtime v4 + DaisyUI v5 + themes, plus technical reference for DaisyUI components. Lavish artifacts stay portable HTML. Choose a design system in this priority order: (1) if the user asked for a specific look or named design system, follow that; (2) otherwise, if the current project already has a design system or style conventions, match those; (3) otherwise, prefer the Lavish-recommended Tailwind + DaisyUI CDN snippet over hand-writing styles unless explicitly instructed otherwise by the user.
|
|
2312
2309
|
`,
|
|
2313
2310
|
setup: `Usage: lavish-axi setup hooks
|
|
2314
2311
|
|