lavish-axi 0.1.62 → 0.1.64

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.
@@ -1262,7 +1262,6 @@ async function submitQueuedOnce() {
1262
1262
  markSessionEnded();
1263
1263
  return;
1264
1264
  }
1265
- if (agentPresence === "listening") setAgentPresence("working");
1266
1265
  }
1267
1266
 
1268
1267
  function normalizeLayoutFindings(value) {
package/dist/cli.mjs CHANGED
@@ -9902,7 +9902,7 @@ data: ${JSON.stringify({ state: computePresence(req.params.key, activePolls, del
9902
9902
  });
9903
9903
  app.post("/api/:key/attachments", async (req, res, next) => {
9904
9904
  try {
9905
- if (!isSameOriginRequest(req)) {
9905
+ if (!isSameOriginRequest(req, allowedHostnames, allowAnyHostname)) {
9906
9906
  res.status(403).json({ error: "cross-origin attachment upload rejected" });
9907
9907
  return;
9908
9908
  }
@@ -9947,7 +9947,7 @@ data: ${JSON.stringify({ state: computePresence(req.params.key, activePolls, del
9947
9947
  });
9948
9948
  app.delete("/api/:key/attachments/:id", async (req, res, next) => {
9949
9949
  try {
9950
- if (!isSameOriginRequest(req)) {
9950
+ if (!isSameOriginRequest(req, allowedHostnames, allowAnyHostname)) {
9951
9951
  res.status(403).json({ error: "cross-origin attachment delete rejected" });
9952
9952
  return;
9953
9953
  }
@@ -10389,8 +10389,8 @@ function setPollActive(key, activePolls, deliveredFeedback, events, active) {
10389
10389
  activePolls.delete(key);
10390
10390
  } else {
10391
10391
  activePolls.set(key, nextCount);
10392
- deliveredFeedback.delete(key);
10393
10392
  }
10393
+ if (active && count === 0) deliveredFeedback.delete(key);
10394
10394
  const nextPresence = computePresence(key, activePolls, deliveredFeedback);
10395
10395
  if (nextPresence !== previousPresence) events.emit("agent-presence", key, nextPresence);
10396
10396
  }
@@ -10889,7 +10889,7 @@ var POLL_WAKE_PATH_RULES = Object.freeze([
10889
10889
  ]);
10890
10890
  var POLL_SEND_AND_END_RULE = "`Send & End` ends the session. Its final feedback is still delivered once. After that response, polling stops, and the agent must not reopen the session uninvited.";
10891
10891
  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.";
10892
- var VERSION = "0.1.62";
10892
+ var VERSION = "0.1.64";
10893
10893
  function detectInvokingAgent(env = process.env) {
10894
10894
  return ["CODEX_SANDBOX", "CODEX_THREAD_ID"].some((key) => Object.hasOwn(env, key)) ? "codex" : "generic";
10895
10895
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lavish-axi",
3
- "version": "0.1.62",
3
+ "version": "0.1.64",
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.62",
4
+ "version": "0.1.64",
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",