lavish-axi 0.1.9 → 0.1.10
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/dist/cli.mjs +3 -3
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -1758,7 +1758,7 @@ function normalizePagePath(path5) {
|
|
|
1758
1758
|
// src/cli.js
|
|
1759
1759
|
var COMMANDS = /* @__PURE__ */ new Set(["open", "poll", "end", "server", "playbook", "design"]);
|
|
1760
1760
|
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`.";
|
|
1761
|
-
var VERSION = "0.1.
|
|
1761
|
+
var VERSION = "0.1.10";
|
|
1762
1762
|
async function run(argv) {
|
|
1763
1763
|
await ensureStateDir();
|
|
1764
1764
|
const normalizedArgv = normalizeArgv(argv);
|
|
@@ -1875,7 +1875,7 @@ function createPlaybookOutput(args) {
|
|
|
1875
1875
|
function createOpenOutput({ file, url, status }) {
|
|
1876
1876
|
return {
|
|
1877
1877
|
session: { file, url, status },
|
|
1878
|
-
next_step: `
|
|
1878
|
+
next_step: `Do not respond to the user just yet. Now you must run \`lavish-axi poll ${file}\`. This command long-polls until the user sends feedback or ends the session. Do not pass --timeout-ms during normal agent use. Do not set a short shell timeout; either run it without a timeout or set the shell timeout above 10 minutes. After applying feedback, run \`lavish-axi poll ${file} --agent-reply "<message for the user>"\` without --timeout-ms to show your response in Lavish Editor and wait for more feedback.`
|
|
1879
1879
|
};
|
|
1880
1880
|
}
|
|
1881
1881
|
async function openCommand(args) {
|
|
@@ -1927,7 +1927,7 @@ function createPollOutput({ file, response }) {
|
|
|
1927
1927
|
session: { file, status: "feedback" },
|
|
1928
1928
|
dom_snapshot: response.dom_snapshot || "",
|
|
1929
1929
|
prompts: response.prompts || [],
|
|
1930
|
-
next_step: `Apply the requested changes to ${file}
|
|
1930
|
+
next_step: `Apply the requested changes to ${file}. Do not respond to the user just yet. Now you must run \`lavish-axi poll ${file} --agent-reply "<message for the user>"\` without --timeout-ms unless the user ended the session. The poll command waits until the user sends more feedback or ends the session; do not set a short shell timeout, or set the shell timeout above 10 minutes.`
|
|
1931
1931
|
};
|
|
1932
1932
|
}
|
|
1933
1933
|
if (response.status === "ended") {
|