lavish-axi 0.1.90 → 0.1.92

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.
@@ -792,6 +792,7 @@ function replaceExpiredThumbnail(event) {
792
792
  chatLog.addEventListener("error", replaceExpiredThumbnail, true);
793
793
 
794
794
  const DEFAULT_SEND_HINT = "Write a message or annotate an element first.";
795
+ const EMPTY_END_HINT = "Nothing to send. To end without feedback, use End session in the More menu (⋮).";
795
796
 
796
797
  function showSendHint(message = DEFAULT_SEND_HINT, holdMs = 2600, focusInput = true) {
797
798
  sendHint.textContent = message;
@@ -1971,7 +1972,7 @@ function sendQueued(endAfter) {
1971
1972
  const shouldEnd = Boolean(endAfter && !chipsBlocked);
1972
1973
  const preparations = shouldEnd ? [...feedbackPreparations] : [];
1973
1974
  if (!queued.length && preparations.length === 0) {
1974
- if (!chipsBlocked && !sendFailureOwner) showSendHint();
1975
+ if (!chipsBlocked && !sendFailureOwner) showSendHint(endAfter ? EMPTY_END_HINT : DEFAULT_SEND_HINT);
1975
1976
  return;
1976
1977
  }
1977
1978
  if (!sendFailureOwner) hideSendHint(true);
@@ -2021,7 +2022,7 @@ function completeTerminalPreparation(terminal, results) {
2021
2022
  clearPreparationFailure("terminal");
2022
2023
  if (!terminal.prompts.length) {
2023
2024
  releaseTerminalSubmission(terminal);
2024
- if (!sendFailureOwner) showSendHint();
2025
+ if (!sendFailureOwner) showSendHint(EMPTY_END_HINT);
2025
2026
  return;
2026
2027
  }
2027
2028
  // Only make the reservation durable once every preparation has joined the exact
package/dist/cli.mjs CHANGED
@@ -585,7 +585,7 @@ function createDesignOutput() {
585
585
  playbooks: listPlaybooks()
586
586
  },
587
587
  design: {
588
- summary: "Use this Lavish CDN fallback only if (1) the user gave no design direction and (2) you already inspected the project the artifact is about and found no design system or style conventions to match. If you have not checked the subject project yet, check first. Lavish does not auto-inject any design system; artifacts stay portable HTML. Paint an explicit page background and readable text. " + DESIGN_PRIORITY_RULE + " Paste the CDN snippet below into your `<head>`.",
588
+ summary: "Use this Lavish CDN fallback only if (1) the user gave no design direction and (2) you already inspected the project the artifact is about and found no design system or style conventions to match. If you have not checked the subject project yet, check first. Lavish does not auto-inject any design system; artifacts stay portable HTML. Paint an explicit page background and readable text. " + DESIGN_PRIORITY_RULE + " Lavish adds only its SDK script to your file and never wraps a fragment, so start it with `<!doctype html>`: without one the page renders in quirks mode, where `<table>` text stops inheriting the color a wrapper theme sets. Paste the CDN snippet below into your `<head>`.",
589
589
  cdn_snippet: DESIGN_CDN_SNIPPET,
590
590
  cdn_urls: DESIGN_CDN_URLS,
591
591
  versions: { tailwind: TAILWIND_BROWSER_VERSION, daisyui: DAISYUI_VERSION },
@@ -12787,7 +12787,7 @@ var AGENT_REPLY_INPUT_LIMIT_BYTES = AGENT_REPLY_JSON_LIMIT_BYTES - AGENT_REPLY_J
12787
12787
  var AGENT_REPLY_LIMIT_LABEL = "2 MB JSON request limit";
12788
12788
  var POLL_STATE_HEADER = "lavish-poll-state";
12789
12789
  var CODEX_POLL_WAKE_PATH_GUIDANCE = "Codex detected: completed background tasks may not resume Codex automatically, so keep the poll attached to the active turn.";
12790
- var VERSION = "0.1.90";
12790
+ var VERSION = "0.1.92";
12791
12791
  function detectInvokingAgent(env = process.env) {
12792
12792
  return ["CODEX_SANDBOX", "CODEX_THREAD_ID"].some((key) => Object.hasOwn(env, key)) ? "codex" : "generic";
12793
12793
  }
@@ -12954,6 +12954,7 @@ function createHomeOutput({ bin, sessions, includeSessions = true, agent = "gene
12954
12954
  "Run `lavish-axi end <html-file>` to end a session as the agent - ending it this way still allows a plain reopen later. When the user ends it from the browser instead, a later `lavish-axi <html-file>` refuses to reopen it without `--reopen`",
12955
12955
  "Run `lavish-axi export <html-file> [--out <path>]` to write a portable copy of the artifact - one HTML file with its LOCAL assets inlined - so it opens with no Lavish server and no sibling files. Remote CDN/font references are left as links, so it needs network to render those. Users can also export from the browser chrome's overflow menu",
12956
12956
  "Run `lavish-axi share <html-file> [--private | --password <pw>]` to publish the artifact on ht-ml.app (https://ht-ml.app), a third-party hosting service not part of Lavish, and get back a visitable URL. Shares are PUBLIC by default, so anyone with the link can open them. Pass --private to publish a PRIVATE page behind a password Lavish generates and returns - hand the user that password with the URL and say it is a shared secret anyone they give it to can use; --password <pw> uses one you were already given instead. Local assets are inlined; remote refs load over the network. It also returns a secret update_key that can republish or lock the same URL later - run `lavish-axi share --help` before using it. Users can also publish from the browser chrome's overflow menu",
12957
+ "A request under a hostname Lavish does not answer to (a reverse-proxy name, a LAN IP) gets 403 `forbidden host`. Set `LAVISH_AXI_ALLOWED_HOSTS` in the environment that starts the server, running `lavish-axi stop` first if one is already up. See README's Allowed hosts section for the rules",
12957
12958
  "Run `lavish-axi stop` to shut down the background server (it also self-stops when idle or after the last session ends with nothing connected)",
12958
12959
  `Run \`lavish-axi playbook <playbook_id>\` for focused artifact guidance. ${PLAYBOOK_ROUTER_HELP}`,
12959
12960
  DESIGN_SYSTEM_HINT,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lavish-axi",
3
- "version": "0.1.90",
3
+ "version": "0.1.92",
4
4
  "packageManager": "pnpm@11.1.1",
5
5
  "description": "HTML is the new markdown. Lavish is the new editor for your HTML artifacts.",
6
6
  "type": "module",
package/plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "lavish-axi",
4
- "version": "0.1.90",
4
+ "version": "0.1.92",
5
5
  "description": "HTML is the new markdown. Lavish is the new editor for your HTML artifacts.",
6
6
  "author": {
7
7
  "name": "Kun Chen",