lavish-axi 0.1.71 → 0.1.72

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 CHANGED
@@ -266,7 +266,7 @@ pnpm link
266
266
  | `lavish-axi setup plugin` | Register the installed package as an [Agent Plugin](https://agent-plugins.org) in VS Code, Cursor, and GitHub Copilot CLI; opt-in, idempotent, no marketplace involved. Reload each client afterward. |
267
267
  | `lavish-axi server` | Run the local Lavish Editor server. |
268
268
 
269
- Known playbook IDs: `diagram`, `table`, `comparison`, `plan`, `code`, `input`, `slides`.
269
+ Known playbook IDs: `diagram`, `table`, `comparison`, `plan`, `code`, `input`, `explanation`, `slides`.
270
270
  One artifact often combines several playbooks, such as a plan that includes a comparison and a diagram, so agents must match against each `use_when` trigger and open every matching playbook before writing HTML.
271
271
  For flows, architecture, state, or sequence diagrams, open the diagram playbook for the recommended tooling and SVG guidance.
272
272
 
package/dist/cli.mjs CHANGED
@@ -249,6 +249,38 @@ var PLAYBOOKS = [
249
249
  "End input paths with an obvious way for the user to send feedback back to the agent."
250
250
  ]
251
251
  },
252
+ {
253
+ id: "explanation",
254
+ use_when: "Explain an existing system, PR, incident, or decision to a reader who was not there - when the goal is understanding what is and why, not choosing a direction or inspecting a plan before implementation",
255
+ choose: [
256
+ "Use this when the reader needs to understand something that already exists: a PR's mechanism, an incident's root cause, an architecture, a past decision.",
257
+ "Use the plan playbook when the reader must inspect and approve an approach before implementation begins; use comparison when they must choose between options.",
258
+ "Combine with diagram for flows or architecture, table for evidence inventories, and code when the mechanism lives in specific lines."
259
+ ],
260
+ structure: [
261
+ "Lead with the one-sentence answer to the question the reader actually has, before any mechanism.",
262
+ "Then show only what changed or how it works - a flow or before/after of the relevant slice, not a diagram of the whole system.",
263
+ "Keep evidence (file paths, line references, links, commands) subordinate to the narrative: cited where a claim needs support, never inlined wholesale.",
264
+ "Make each claim its own section or annotation target so the reader can push back on exactly the part they disagree with.",
265
+ "End with what was deliberately left out and where to look next, not a summary that restates the piece."
266
+ ],
267
+ design_rules: [
268
+ "Define unfamiliar terms at first use; for the reader's starting point, follow the diagram playbook's assume-nothing rule rather than restating it here.",
269
+ "Name the question the explanation answers at the top, so the reader knows whether it is their question.",
270
+ "Put prose beside figures - inline SVG for the flow or before/after, HTML for the reasoning - per the diagram playbook.",
271
+ "Link evidence rather than pasting logs or diffs; inlined evidence buries the narrative and goes stale.",
272
+ "Distinguish verified claims (cited to files, commands, or links) from inference; label uncertain reasoning as a question."
273
+ ],
274
+ pitfalls: [
275
+ "Do not restate the PR body, diff, or ticket file-by-file; the source documents already exist and the reader can open them.",
276
+ "Do not bury the answer under a diagram of the entire system when the question is about one slice of it.",
277
+ "Do not present inferred reasoning as verified fact; cite or label it."
278
+ ],
279
+ lavish_notes: [
280
+ "A Lavish explanation should let the reader annotate the exact claim they doubt or want expanded.",
281
+ "When an explanation surfaces a disagreement, queue prompts that name the claim and the evidence gap."
282
+ ]
283
+ },
252
284
  {
253
285
  id: "slides",
254
286
  use_when: "Create a deliberate presentation when slides are requested",
@@ -11492,7 +11524,7 @@ var AGENT_REPLY_JSON_ENVELOPE_BYTES = Buffer.byteLength(JSON.stringify({ text: "
11492
11524
  var AGENT_REPLY_INPUT_LIMIT_BYTES = AGENT_REPLY_JSON_LIMIT_BYTES - AGENT_REPLY_JSON_ENVELOPE_BYTES;
11493
11525
  var AGENT_REPLY_LIMIT_LABEL = "2 MB JSON request limit";
11494
11526
  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.";
11495
- var VERSION = "0.1.71";
11527
+ var VERSION = "0.1.72";
11496
11528
  function detectInvokingAgent(env = process.env) {
11497
11529
  return ["CODEX_SANDBOX", "CODEX_THREAD_ID"].some((key) => Object.hasOwn(env, key)) ? "codex" : "generic";
11498
11530
  }
@@ -13045,7 +13077,7 @@ Shut down the background Lavish Editor server. The server also stops itself when
13045
13077
  `,
13046
13078
  playbook: `Usage: lavish-axi playbook [playbook_id]
13047
13079
 
13048
- List focused artifact guidance playbooks, or show one playbook by ID. Known IDs: diagram, table, comparison, plan, code, input, slides.
13080
+ List focused artifact guidance playbooks, or show one playbook by ID. Known IDs: diagram, table, comparison, plan, code, input, explanation, slides.
13049
13081
 
13050
13082
  ${PLAYBOOK_ROUTER_HELP}
13051
13083
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lavish-axi",
3
- "version": "0.1.71",
3
+ "version": "0.1.72",
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.71",
4
+ "version": "0.1.72",
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",