austere-axi 0.11.0 → 0.12.0

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
@@ -34,7 +34,9 @@ You click the exact thing you want changed and write a note, the way you would c
34
34
  2. **Click what you want changed and write a note.** Anything on the page works: a section, one cell of a table, one box in a diagram, one line of a code change, or a sentence you select. Where the page offers choices, pick one or fill in the form.
35
35
  3. **Press Send.** The agent gets each note attached to the part you clicked and changes only those parts. The page updates in place and highlights what changed, so you don't have to hunt for it.
36
36
 
37
- Repeat until it is right. When you are done, press **Send & End** and carry on in the chat.
37
+ Repeat until it is right. When you are done, press **Done** (or **Send & finish** with a last note) and carry on in the chat. The agent stops listening; a note you add later waits until an agent checks.
38
+
39
+ **Come back any time.** Open the page and add a note. If it says *Agent not listening*, tell your agent to check your austere notes.
38
40
 
39
41
  ## What people review with it
40
42
 
@@ -52,7 +54,8 @@ Repeat until it is right. When you are done, press **Send & End** and carry on i
52
54
  - **Review from your phone.** The review page has a phone layout. This needs [Tailscale](https://tailscale.com) on your computer and phone. [How it works](docs/how-it-works.md#the-review-loop).
53
55
  - **Send someone a copy.** "Download standalone HTML" in the page's ⋯ menu saves the page as one file that opens in any browser, offline.
54
56
  - **Nothing gets lost.** Every note is saved the moment you send it. If the agent is busy or your computer restarts, the notes are waiting when the agent comes back.
55
- - **Find old reviews.** The hub is always on: `austere-axi hub open` shows a home page that lists every page by project and every note, with search. Archived pages are hidden by default; the Archived link on the home page (or `austere-axi hub list --archived`) shows them. [More on the hub](docs/hub.md).
57
+ - **Let the agent answer on its own.** Click the Agent pill at the top of a review page and turn it on: each note you send starts your coding agent, which patches the page and replies while you watch. Stop and Retry are right there. [More on attach](docs/attach.md).
58
+ - **Find old pages.** Ask your agent to open the austere home page. It lists every page by project, and every note, with search. To put a page away, choose Archive page in its ⋯ menu; the Archived link on the home page shows pages you put away. [More on the home page](docs/hub.md).
56
59
 
57
60
  ## Get started
58
61
 
@@ -115,7 +118,7 @@ The reference material lives in [`docs/`](docs/README.md).
115
118
  |---|---|
116
119
  | [Install and quick start](docs/install.md) | Setup skill, Claude Code plugin, Claude Desktop, Cursor, Codex |
117
120
  | [How it works](docs/how-it-works.md) | What the agent writes, the review loop, how it compares with lavish-axi |
118
- | [CLI reference](docs/cli.md) | Every command, the rules of a review session, settings |
121
+ | [CLI reference](docs/cli.md) | Every command, the review rules, settings |
119
122
  | [Components and packs](docs/components-and-packs.md) | What can go on a page, and how to add more |
120
123
  | [Writing a pack](docs/writing-a-pack.md) | Build and publish your own components |
121
124
  | [Team review](docs/team-review.md) | Invite teammates over your own private network |
package/dist/austere.js CHANGED
@@ -1648,12 +1648,12 @@ dataLane = Group("DATA STORES WITH A HEADING LONGER THAN THE COLUMN IS WIDE", [c
1648
1648
  <button type="button" data-act="queue" class="primary">Queue</button>
1649
1649
  </span>
1650
1650
  </div>
1651
- </div>`,document.body.appendChild(o);let r=o.querySelector(".austere-hover"),n=o.querySelector(".austere-hover-label"),i=o.querySelector(".austere-selbtn"),s=o.querySelector(".austere-pop"),l=o.querySelector(".austere-pop-path"),u=o.querySelector(".austere-pop-quote"),d=o.querySelector("textarea");d.addEventListener("focus",()=>e({type:"writing",on:!0})),d.addEventListener("blur",()=>e({type:"writing",on:!1}));let p=null,f=null,m=0,x=null,v=Y=>Y instanceof Element&&!!Y.closest(`[${yv}]`),w=Y=>Y instanceof Element&&Y.closest("[data-oui-id]")||null;function b(Y,re,ue=4){Y.style.left=`${re.left-ue}px`,Y.style.top=`${re.top-ue}px`,Y.style.width=`${re.width+ue*2}px`,Y.style.height=`${re.height+ue*2}px`}let k=null,S=null,I=null;function C(Y,re){let ue=re?pe(re):kX(Y);r.style.visibility=ue?"":"hidden",ue&&b(r,ue)}function M(Y,re=null,ue=Y&&re?bEt(Y,re):null,xe=vEt(re)){if(k=Y,S=re,I=ue,!Y){r.hidden=!0;return}C(Y,re),n.textContent=`${Y.getAttribute("data-oui-id")} \xB7 ${Y.getAttribute("data-oui-c")}${xe}`,r.hidden=!1}function A(Y){a!=="annotate"||!s.hidden||(x=Y.target,!m&&(m=requestAnimationFrame(()=>{m=0;let re=x;if(!(re instanceof Element)||v(re))return;let ue=w(re);M(ue,ue&&xEt(ue,re))})))}function D(){let Y=window.getSelection();return!!Y&&!Y.isCollapsed&&Y.toString().trim().length>0}function z(Y){if(a!=="annotate"||v(Y.target))return;if(!s.hidden){Y.preventDefault(),Y.stopPropagation();return}if(D())return;let re=Y.target;if(!(re instanceof Element)||!Y.altKey&&re.closest(QDa))return;let ue=w(re);ue&&(Y.preventDefault(),Y.stopPropagation(),H({target:ue,el:re,point:{x:Y.clientX,y:Y.clientY}}))}function T(){if(a!=="annotate"||!s.hidden)return;let Y=window.getSelection();if(!Y||Y.isCollapsed||!Y.rangeCount){i.hidden=!0,f=null;return}let re=Y.toString().trim(),ue=Y.getRangeAt(0),xe=ue.commonAncestorContainer,be=xe instanceof Element?xe:xe.parentElement,We=w(be);if(!re||!be||!We||v(be)){i.hidden=!0,f=null;return}let st=ue.getBoundingClientRect();f={target:We,el:be,selection:Qm(re,600),point:{x:st.left,y:st.bottom}},i.hidden=!1;let ut=i.offsetWidth||140;i.style.left=`${Math.max(8,Math.min(window.innerWidth-ut-8,st.left+st.width/2-ut/2))}px`,i.style.top=`${Math.max(8,Math.min(window.innerHeight-40,st.bottom+8))}px`}let O=0;function B(){clearTimeout(O),O=window.setTimeout(T,120)}i.addEventListener("mousedown",Y=>Y.preventDefault()),i.addEventListener("click",Y=>{Y.preventDefault(),Y.stopPropagation(),f&&H(f),i.hidden=!0});function P(){let Y=p;Y&&(l.textContent="",Y.path.forEach((re,ue)=>{let xe=document.createElement("button");if(xe.type="button",xe.className="austere-chip"+(re.id===Y.targetId?" active":""),xe.textContent=re.id,xe.title=re.component,xe.addEventListener("click",()=>{Y.targetId=re.id,Y.component=re.component;let be=ue===Y.path.length-1;if(!Y.target.isConnected){let st=Y.path[Y.path.length-1].id;Y.target=document.querySelector(`[data-oui-id="${CSS.escape(st)}"]`)??Y.target}let We=`[data-oui-id="${CSS.escape(re.id)}"]`;M(Y.target.closest(We)??document.querySelector(We),be?Y.piece:null,be?Y.relocate:null,be?Y.pieceLabel:""),se(),P(),d.focus()}),l.appendChild(xe),ue<Y.path.length-1){let be=document.createElement("span");be.className="austere-chip-sep",be.textContent="\u203A",l.appendChild(be)}}))}function H({target:Y,el:re,selection:ue,point:xe}){let be=JDa(Y),We=eOa(Y,re),st=SX(Y,re),ut=xEt(Y,re),mt;if(!ue){let ce=st||re;mt=Qm((ce instanceof HTMLElement?ce.innerText:void 0)||ce.textContent,200)||void 0,st&&mt===We?.part&&(mt=void 0)}let vt=kEt(Y);e({type:"focus",id:vt.id}),p={target:Y,piece:ut,relocate:ut&&bEt(Y,ut),pieceLabel:vEt(ut),targetId:vt.id,component:vt.component,path:be,selection:ue||void 0,excerpt:mt,detail:We},P();let ae=ue||mt||We?.part||"";u.textContent=Qm(ae,220),u.hidden=!ae,d.value="",r.hidden=!0,i.hidden=!0,M(Y,ut,p.relocate,p.pieceLabel),r.classList.add("locked"),s.hidden=!1,V(xe),d.focus()}function V(Y){if(window.innerWidth<640){s.classList.add("sheet"),s.style.left=s.style.top="";return}s.classList.remove("sheet");let re=s.offsetWidth||360,ue=s.offsetHeight||200,xe=Y.x+12,be=Y.y+12;xe+re>window.innerWidth-8&&(xe=Math.max(8,Y.x-re-12)),be+ue>window.innerHeight-8&&(be=Math.max(8,Y.y-ue-12)),s.style.left=`${xe}px`,s.style.top=`${be}px`}function W(){document.activeElement===d&&d.blur(),s.hidden=!0,r.classList.remove("locked"),r.hidden=!0,p=null}function Z(){let Y=d.value.trim();if(!p)return;if(!Y&&!p.selection){d.focus(),d.classList.add("shake"),setTimeout(()=>d.classList.remove("shake"),400);return}let re={kind:"annotation",target:p.targetId,component:p.component,path:p.path.map(be=>be.id),note:Y};p.selection&&(re.selection=p.selection),p.excerpt&&!p.selection&&(re.excerpt=p.excerpt),p.detail&&p.targetId===p.path[p.path.length-1].id&&(re.detail=p.detail),e({type:"annotate",item:re});let ue=p.targetId,xe=re.detail?S:null;W(),window.getSelection()?.removeAllRanges(),xe?.isConnected?U(xe,"queued"):Pe([ue],"queued")}s.addEventListener("click",Y=>{let re=Y.target instanceof Element?Y.target.closest("[data-act]")?.getAttribute("data-act"):void 0;re==="cancel"&&W(),re==="queue"&&Z()}),d.addEventListener("keydown",Y=>{Y.key==="Enter"&&!Y.shiftKey&&!Y.isComposing?(Y.preventDefault(),Z()):Y.key==="Escape"&&(Y.preventDefault(),d.value.trim()||W())}),document.addEventListener("mousemove",A,{passive:!0}),document.addEventListener("click",z,!0),document.addEventListener("mouseup",B),document.addEventListener("keyup",Y=>{(Y.shiftKey||Y.key.startsWith("Arrow"))&&B()}),document.addEventListener("selectionchange",()=>{"ontouchstart"in window&&B()}),document.addEventListener("keydown",Y=>{(Y.metaKey||Y.ctrlKey)&&(Y.key==="i"||Y.key==="I")&&(Y.preventDefault(),e({type:"toggle-mode"}))}),window.addEventListener("scroll",()=>{if(!s.hidden)return he();r.hidden=!0,i.hidden=!0},{passive:!0}),document.addEventListener("mouseleave",()=>{s.hidden&&(r.hidden=!0)});function ee(Y,re,ue,xe=new Set){if(xe.has(Y))return[];xe.add(Y);let be=document.querySelectorAll(`[data-oui-id="${CSS.escape(Y)}"]`);return be.length?Array.from(be):!re||!ue?[]:ue(re,Y).flatMap(We=>ee(We,re,ue,xe))}function te(Y,re,ue){let xe=new Set;for(let be of Y)for(let We of ee(be,re,ue))xe.add(We);return Array.from(xe).filter(be=>!Array.from(xe).some(We=>We!==be&&We.contains(be)))}function q(Y,re){let ue=document.createElement("div");return ue.setAttribute(yv,""),ue.className=re,ue.style.left=`${Y.left+window.scrollX-4}px`,ue.style.top=`${Y.top+window.scrollY-4}px`,ue.style.width=`${Y.width+8}px`,ue.style.height=`${Y.height+8}px`,ue}function ie(Y){if(getComputedStyle(Y).display!=="contents")return wX(Y);let[re,ue,xe,be]=[1/0,1/0,-1/0,-1/0],We=ut=>{!ut.width&&!ut.height||([re,ue,xe,be]=[Math.min(re,ut.left),Math.min(ue,ut.top),Math.max(xe,ut.right),Math.max(be,ut.bottom)])},st=ut=>{for(let mt of ut.childNodes)if(mt instanceof Element)getComputedStyle(mt).display==="contents"?st(mt):We(wX(mt));else if(mt.nodeType===Node.TEXT_NODE&&mt.textContent?.trim()){let vt=document.createRange();vt.selectNodeContents(mt),We(vt.getBoundingClientRect())}};return st(Y),{left:re,top:ue,right:xe,bottom:be}}function pe(Y){let{left:re,top:ue,right:xe,bottom:be}=ie(Y),We=xe===re,st=be===ue;if(We&&st)return null;for(let vt=Y.parentElement;vt&&vt!==document.body;vt=vt.parentElement){let ae=getComputedStyle(vt),ce=ae.overflowX!=="visible",_e=ae.overflowY!=="visible";if(!ce&&!_e||ae.display==="contents")continue;let me=vt.getBoundingClientRect();ce&&([re,xe]=[Math.max(re,me.left),Math.min(xe,me.right)]),_e&&([ue,be]=[Math.max(ue,me.top),Math.min(be,me.bottom)])}let ut=We?xe>=re:xe>re,mt=st?be>=ue:be>ue;return ut&&mt?{left:re,top:ue,width:xe-re,height:be-ue}:null}function U(Y,re){let ue=pe(Y);if(!ue)return;let xe=q(ue,`austere-flash ${re}`);document.body.appendChild(xe),setTimeout(()=>xe.remove(),2400)}function Pe(Y,re="changed",ue,xe){let be=te(Y,ue,xe);for(let We of be)U(We,re);return be}function Ge(Y,re,ue){let xe=ee(Y,re,ue);if(!xe.length)return!1;let be=kX(xe[0]),We=be.top+window.scrollY-Math.max(24,(window.innerHeight-be.height)/3);return window.scrollTo({top:Math.max(0,We),behavior:"smooth"}),setTimeout(()=>Pe([Y],"changed",re,ue),350),!0}let Oe=document.createElement("div");Oe.setAttribute(yv,""),o.appendChild(Oe);let Re=null,He=0,Ee=document.createElement("div");Ee.setAttribute(yv,""),o.appendChild(Ee);let ne=[];function Q(){let[Y,re]=Re&&t?t():[],ue=[],xe=[];for(let be of Re?te(Re,Y,re):[]){let We=pe(be);We&&(ue.push(be),xe.push(We))}return Oe.replaceChildren(...xe.map(be=>q(be,"austere-mark"))),ue}function se(){if(!(r.hidden||!k)){if(!k.isConnected){let Y=k.getAttribute("data-oui-id");k=document.querySelector(`[data-oui-id="${CSS.escape(Y)}"]`)}k&&S&&!S.isConnected&&(S=I?.(k)??S),k?C(k,S):r.hidden=!0}}function he(){He||!Re&&r.hidden&&!ne.length||(He=requestAnimationFrame(()=>{He=0,Re&&Q(),ne.length&&Me(),se()}))}window.addEventListener("resize",he,{passive:!0}),new ResizeObserver(he).observe(document.body),new MutationObserver(Y=>{Y.some(re=>!v(re.target.nodeType===1?re.target:re.target.parentElement))&&he()}).observe(document.body,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["class","style","hidden","open","x","y","width","height","d","transform","viewBox"]}),document.addEventListener("scroll",Y=>{Y.target!==document&&he()},{capture:!0,passive:!0});function Ae(Y,re=!1){Re=Y.length?Y:null;let ue=Q();if(re&&ue.length){let xe=ue.map(kX);if(!xe.some(be=>be.bottom>0&&be.top<window.innerHeight)){let be=xe[0],We=be.top+window.scrollY-Math.max(24,(window.innerHeight-be.height)/3);window.scrollTo({top:Math.max(0,We),behavior:"smooth"})}}return ue.length}function Me(){let[Y,re]=ne.length&&t?t():[],ue=new Map;for(let be of ne)ue.set(be.statement,[...ue.get(be.statement)??[],be]);let xe=[];for(let[be,We]of ue){let st=!1;for(let ut of te([be],Y,re)){let mt=pe(ut);if(!mt)continue;let vt=q(mt,"austere-focus");if(vt.style.setProperty("--austere-viewer",We[0].colour),!st){st=!0;let ae=document.createElement("div");ae.className="austere-focus-names";for(let ce of We){let _e=document.createElement("span");_e.textContent=ce.name,_e.style.background=ce.colour,ae.appendChild(_e)}vt.appendChild(ae)}xe.push(vt)}}Ee.replaceChildren(...xe)}function ct(Y){ne=Y,Me()}return{setMode(Y){a=Y==="annotate"?"annotate":"explore",document.documentElement.classList.toggle("austere-annotating",a==="annotate"),a!=="annotate"&&(W(),i.hidden=!0,r.hidden=!0)},flash:Pe,reveal:Ge,highlight:Ae,focus:ct}}var LEt={shadcn:{name:"@austere-axi/pack-shadcn",version:"0.11.0",components:["Progress","Avatar","AvatarGroup","Tooltip","HoverCard","Breadcrumb","BreadcrumbItem","Kbd","Skeleton","Calendar","Timeline","TimelineItem"]}};function tOa(e){let t=e.lastIndexOf("@");return t<=0?{name:e,version:""}:{name:e.slice(0,t),version:e.slice(t+1)}}var aOa=/^(@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$/,oOa=/^\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?$/;function IEt(e){let t=[];for(let a of String(e||"").split(",")){let[o,r]=a.trim().split(/\s+/);if(!o)continue;let{name:n,version:i}=tOa(o);!aOa.test(n)||!oOa.test(i)||t.some(s=>s.name===n)||t.push(r&&/^sha(256|384|512)-[A-Za-z0-9+/=]+$/.test(r)?{name:n,version:i,integrity:r}:{name:n,version:i})}return t}var MEt="https://cdn.jsdelivr.net/npm";function CEt(e=document){let t=e.querySelector('meta[name="austere-packs"]');return t?IEt(t.getAttribute("content")||""):[]}function _Et(e,t){let a=[...t];for(let[o,r]of Object.entries(LEt))a.some(n=>n.name===r.name)||r.components.some(n=>new RegExp(`\\b${n}\\s*\\(`).test(e))&&a.push({name:r.name,version:r.version,bundled:o});return a}function LX(){return/\/__austere\/$/.test(k2)}function rOa(e){if(e.bundled)return{src:B4(`packs/${e.bundled}/pack.js`)||`${MEt}/austere-axi@${e.version}/dist/packs/${e.bundled}/pack.js`};if(LX()){let t=e.integrity?`?integrity=${encodeURIComponent(e.integrity)}`:"";return{src:`${k2}installed-packs/${encodeURIComponent(`${e.name}@${e.version}`)}/pack.js${t}`}}return{src:`${MEt}/${e.name}@${e.version}/dist/pack.js`,integrity:e.integrity}}function nOa(e,t){return new Promise((a,o)=>{let r=document.createElement("script");r.src=e,r.async=!0,t&&(r.integrity=t,r.crossOrigin="anonymous"),r.onload=()=>a(),r.onerror=()=>o(new Error(`could not load ${e}`)),document.head.appendChild(r)})}async function AEt(e,{onError:t}={}){let a=e.filter(o=>!hl().some(r=>r.name===o.name));return await Promise.all(a.map(o=>{let{src:r,integrity:n}=rOa(o);return nOa(r,n).then(()=>{hl().some(i=>i.name===o.name)||t?.(o,new Error(`${r} loaded but did not register pack ${o.name}`))},i=>t?.(o,i))})),hl()}function NEt(e){for(let t of e){if(!t.css)continue;let a=`austere-pack-css-${t.name.replace(/[^a-z0-9]/gi,"-")}`;if(document.getElementById(a))continue;let o=document.createElement("style");o.id=a,o.textContent=t.css,document.head.appendChild(o)}}var iOa=/[A-Za-z_$]/;function sOa(e){let t=[],a=String(e??""),o=0,r=1,n=a.length;for(;o<n;){let i=a[o];if(i===`
1651
+ </div>`,document.body.appendChild(o);let r=o.querySelector(".austere-hover"),n=o.querySelector(".austere-hover-label"),i=o.querySelector(".austere-selbtn"),s=o.querySelector(".austere-pop"),l=o.querySelector(".austere-pop-path"),u=o.querySelector(".austere-pop-quote"),d=o.querySelector("textarea");d.addEventListener("focus",()=>e({type:"writing",on:!0})),d.addEventListener("blur",()=>e({type:"writing",on:!1}));let p=null,f=null,m=0,x=null,v=Y=>Y instanceof Element&&!!Y.closest(`[${yv}]`),w=Y=>Y instanceof Element&&Y.closest("[data-oui-id]")||null;function b(Y,re,ue=4){Y.style.left=`${re.left-ue}px`,Y.style.top=`${re.top-ue}px`,Y.style.width=`${re.width+ue*2}px`,Y.style.height=`${re.height+ue*2}px`}let k=null,S=null,I=null;function C(Y,re){let ue=re?pe(re):kX(Y);r.style.visibility=ue?"":"hidden",ue&&b(r,ue)}function M(Y,re=null,ue=Y&&re?bEt(Y,re):null,xe=vEt(re)){if(k=Y,S=re,I=ue,!Y){r.hidden=!0;return}C(Y,re),n.textContent=`${Y.getAttribute("data-oui-id")} \xB7 ${Y.getAttribute("data-oui-c")}${xe}`,r.hidden=!1}function A(Y){a!=="annotate"||!s.hidden||(x=Y.target,!m&&(m=requestAnimationFrame(()=>{m=0;let re=x;if(!(re instanceof Element)||v(re))return;let ue=w(re);M(ue,ue&&xEt(ue,re))})))}function D(){let Y=window.getSelection();return!!Y&&!Y.isCollapsed&&Y.toString().trim().length>0}function z(Y){if(a!=="annotate"||v(Y.target))return;if(!s.hidden){Y.preventDefault(),Y.stopPropagation();return}if(D())return;let re=Y.target;if(!(re instanceof Element)||!Y.altKey&&re.closest(QDa))return;let ue=w(re);ue&&(Y.preventDefault(),Y.stopPropagation(),H({target:ue,el:re,point:{x:Y.clientX,y:Y.clientY}}))}function T(){if(a!=="annotate"||!s.hidden)return;let Y=window.getSelection();if(!Y||Y.isCollapsed||!Y.rangeCount){i.hidden=!0,f=null;return}let re=Y.toString().trim(),ue=Y.getRangeAt(0),xe=ue.commonAncestorContainer,be=xe instanceof Element?xe:xe.parentElement,We=w(be);if(!re||!be||!We||v(be)){i.hidden=!0,f=null;return}let st=ue.getBoundingClientRect();f={target:We,el:be,selection:Qm(re,600),point:{x:st.left,y:st.bottom}},i.hidden=!1;let ut=i.offsetWidth||140;i.style.left=`${Math.max(8,Math.min(window.innerWidth-ut-8,st.left+st.width/2-ut/2))}px`,i.style.top=`${Math.max(8,Math.min(window.innerHeight-40,st.bottom+8))}px`}let O=0;function B(){clearTimeout(O),O=window.setTimeout(T,120)}i.addEventListener("mousedown",Y=>Y.preventDefault()),i.addEventListener("click",Y=>{Y.preventDefault(),Y.stopPropagation(),f&&H(f),i.hidden=!0});function P(){let Y=p;Y&&(l.textContent="",Y.path.forEach((re,ue)=>{let xe=document.createElement("button");if(xe.type="button",xe.className="austere-chip"+(re.id===Y.targetId?" active":""),xe.textContent=re.id,xe.title=re.component,xe.addEventListener("click",()=>{Y.targetId=re.id,Y.component=re.component;let be=ue===Y.path.length-1;if(!Y.target.isConnected){let st=Y.path[Y.path.length-1].id;Y.target=document.querySelector(`[data-oui-id="${CSS.escape(st)}"]`)??Y.target}let We=`[data-oui-id="${CSS.escape(re.id)}"]`;M(Y.target.closest(We)??document.querySelector(We),be?Y.piece:null,be?Y.relocate:null,be?Y.pieceLabel:""),se(),P(),d.focus()}),l.appendChild(xe),ue<Y.path.length-1){let be=document.createElement("span");be.className="austere-chip-sep",be.textContent="\u203A",l.appendChild(be)}}))}function H({target:Y,el:re,selection:ue,point:xe}){let be=JDa(Y),We=eOa(Y,re),st=SX(Y,re),ut=xEt(Y,re),mt;if(!ue){let ce=st||re;mt=Qm((ce instanceof HTMLElement?ce.innerText:void 0)||ce.textContent,200)||void 0,st&&mt===We?.part&&(mt=void 0)}let vt=kEt(Y);e({type:"focus",id:vt.id}),p={target:Y,piece:ut,relocate:ut&&bEt(Y,ut),pieceLabel:vEt(ut),targetId:vt.id,component:vt.component,path:be,selection:ue||void 0,excerpt:mt,detail:We},P();let ae=ue||mt||We?.part||"";u.textContent=Qm(ae,220),u.hidden=!ae,d.value="",r.hidden=!0,i.hidden=!0,M(Y,ut,p.relocate,p.pieceLabel),r.classList.add("locked"),s.hidden=!1,V(xe),d.focus()}function V(Y){if(window.innerWidth<640){s.classList.add("sheet"),s.style.left=s.style.top="";return}s.classList.remove("sheet");let re=s.offsetWidth||360,ue=s.offsetHeight||200,xe=Y.x+12,be=Y.y+12;xe+re>window.innerWidth-8&&(xe=Math.max(8,Y.x-re-12)),be+ue>window.innerHeight-8&&(be=Math.max(8,Y.y-ue-12)),s.style.left=`${xe}px`,s.style.top=`${be}px`}function W(){document.activeElement===d&&d.blur(),s.hidden=!0,r.classList.remove("locked"),r.hidden=!0,p=null}function Z(){let Y=d.value.trim();if(!p)return;if(!Y&&!p.selection){d.focus(),d.classList.add("shake"),setTimeout(()=>d.classList.remove("shake"),400);return}let re={kind:"annotation",target:p.targetId,component:p.component,path:p.path.map(be=>be.id),note:Y};p.selection&&(re.selection=p.selection),p.excerpt&&!p.selection&&(re.excerpt=p.excerpt),p.detail&&p.targetId===p.path[p.path.length-1].id&&(re.detail=p.detail),e({type:"annotate",item:re});let ue=p.targetId,xe=re.detail?S:null;W(),window.getSelection()?.removeAllRanges(),xe?.isConnected?U(xe,"queued"):Pe([ue],"queued")}s.addEventListener("click",Y=>{let re=Y.target instanceof Element?Y.target.closest("[data-act]")?.getAttribute("data-act"):void 0;re==="cancel"&&W(),re==="queue"&&Z()}),d.addEventListener("keydown",Y=>{Y.key==="Enter"&&!Y.shiftKey&&!Y.isComposing?(Y.preventDefault(),Z()):Y.key==="Escape"&&(Y.preventDefault(),d.value.trim()||W())}),document.addEventListener("mousemove",A,{passive:!0}),document.addEventListener("click",z,!0),document.addEventListener("mouseup",B),document.addEventListener("keyup",Y=>{(Y.shiftKey||Y.key.startsWith("Arrow"))&&B()}),document.addEventListener("selectionchange",()=>{"ontouchstart"in window&&B()}),document.addEventListener("keydown",Y=>{(Y.metaKey||Y.ctrlKey)&&(Y.key==="i"||Y.key==="I")&&(Y.preventDefault(),e({type:"toggle-mode"}))}),window.addEventListener("scroll",()=>{if(!s.hidden)return he();r.hidden=!0,i.hidden=!0},{passive:!0}),document.addEventListener("mouseleave",()=>{s.hidden&&(r.hidden=!0)});function ee(Y,re,ue,xe=new Set){if(xe.has(Y))return[];xe.add(Y);let be=document.querySelectorAll(`[data-oui-id="${CSS.escape(Y)}"]`);return be.length?Array.from(be):!re||!ue?[]:ue(re,Y).flatMap(We=>ee(We,re,ue,xe))}function te(Y,re,ue){let xe=new Set;for(let be of Y)for(let We of ee(be,re,ue))xe.add(We);return Array.from(xe).filter(be=>!Array.from(xe).some(We=>We!==be&&We.contains(be)))}function q(Y,re){let ue=document.createElement("div");return ue.setAttribute(yv,""),ue.className=re,ue.style.left=`${Y.left+window.scrollX-4}px`,ue.style.top=`${Y.top+window.scrollY-4}px`,ue.style.width=`${Y.width+8}px`,ue.style.height=`${Y.height+8}px`,ue}function ie(Y){if(getComputedStyle(Y).display!=="contents")return wX(Y);let[re,ue,xe,be]=[1/0,1/0,-1/0,-1/0],We=ut=>{!ut.width&&!ut.height||([re,ue,xe,be]=[Math.min(re,ut.left),Math.min(ue,ut.top),Math.max(xe,ut.right),Math.max(be,ut.bottom)])},st=ut=>{for(let mt of ut.childNodes)if(mt instanceof Element)getComputedStyle(mt).display==="contents"?st(mt):We(wX(mt));else if(mt.nodeType===Node.TEXT_NODE&&mt.textContent?.trim()){let vt=document.createRange();vt.selectNodeContents(mt),We(vt.getBoundingClientRect())}};return st(Y),{left:re,top:ue,right:xe,bottom:be}}function pe(Y){let{left:re,top:ue,right:xe,bottom:be}=ie(Y),We=xe===re,st=be===ue;if(We&&st)return null;for(let vt=Y.parentElement;vt&&vt!==document.body;vt=vt.parentElement){let ae=getComputedStyle(vt),ce=ae.overflowX!=="visible",_e=ae.overflowY!=="visible";if(!ce&&!_e||ae.display==="contents")continue;let me=vt.getBoundingClientRect();ce&&([re,xe]=[Math.max(re,me.left),Math.min(xe,me.right)]),_e&&([ue,be]=[Math.max(ue,me.top),Math.min(be,me.bottom)])}let ut=We?xe>=re:xe>re,mt=st?be>=ue:be>ue;return ut&&mt?{left:re,top:ue,width:xe-re,height:be-ue}:null}function U(Y,re){let ue=pe(Y);if(!ue)return;let xe=q(ue,`austere-flash ${re}`);document.body.appendChild(xe),setTimeout(()=>xe.remove(),2400)}function Pe(Y,re="changed",ue,xe){let be=te(Y,ue,xe);for(let We of be)U(We,re);return be}function Ge(Y,re,ue){let xe=ee(Y,re,ue);if(!xe.length)return!1;let be=kX(xe[0]),We=be.top+window.scrollY-Math.max(24,(window.innerHeight-be.height)/3);return window.scrollTo({top:Math.max(0,We),behavior:"smooth"}),setTimeout(()=>Pe([Y],"changed",re,ue),350),!0}let Oe=document.createElement("div");Oe.setAttribute(yv,""),o.appendChild(Oe);let Re=null,He=0,Ee=document.createElement("div");Ee.setAttribute(yv,""),o.appendChild(Ee);let ne=[];function Q(){let[Y,re]=Re&&t?t():[],ue=[],xe=[];for(let be of Re?te(Re,Y,re):[]){let We=pe(be);We&&(ue.push(be),xe.push(We))}return Oe.replaceChildren(...xe.map(be=>q(be,"austere-mark"))),ue}function se(){if(!(r.hidden||!k)){if(!k.isConnected){let Y=k.getAttribute("data-oui-id");k=document.querySelector(`[data-oui-id="${CSS.escape(Y)}"]`)}k&&S&&!S.isConnected&&(S=I?.(k)??S),k?C(k,S):r.hidden=!0}}function he(){He||!Re&&r.hidden&&!ne.length||(He=requestAnimationFrame(()=>{He=0,Re&&Q(),ne.length&&Me(),se()}))}window.addEventListener("resize",he,{passive:!0}),new ResizeObserver(he).observe(document.body),new MutationObserver(Y=>{Y.some(re=>!v(re.target.nodeType===1?re.target:re.target.parentElement))&&he()}).observe(document.body,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["class","style","hidden","open","x","y","width","height","d","transform","viewBox"]}),document.addEventListener("scroll",Y=>{Y.target!==document&&he()},{capture:!0,passive:!0});function Ae(Y,re=!1){Re=Y.length?Y:null;let ue=Q();if(re&&ue.length){let xe=ue.map(kX);if(!xe.some(be=>be.bottom>0&&be.top<window.innerHeight)){let be=xe[0],We=be.top+window.scrollY-Math.max(24,(window.innerHeight-be.height)/3);window.scrollTo({top:Math.max(0,We),behavior:"smooth"})}}return ue.length}function Me(){let[Y,re]=ne.length&&t?t():[],ue=new Map;for(let be of ne)ue.set(be.statement,[...ue.get(be.statement)??[],be]);let xe=[];for(let[be,We]of ue){let st=!1;for(let ut of te([be],Y,re)){let mt=pe(ut);if(!mt)continue;let vt=q(mt,"austere-focus");if(vt.style.setProperty("--austere-viewer",We[0].colour),!st){st=!0;let ae=document.createElement("div");ae.className="austere-focus-names";for(let ce of We){let _e=document.createElement("span");_e.textContent=ce.name,_e.style.background=ce.colour,ae.appendChild(_e)}vt.appendChild(ae)}xe.push(vt)}}Ee.replaceChildren(...xe)}function ct(Y){ne=Y,Me()}return{setMode(Y){a=Y==="annotate"?"annotate":"explore",document.documentElement.classList.toggle("austere-annotating",a==="annotate"),a!=="annotate"&&(W(),i.hidden=!0,r.hidden=!0)},flash:Pe,reveal:Ge,highlight:Ae,focus:ct}}var LEt={shadcn:{name:"@austere-axi/pack-shadcn",version:"0.12.0",components:["Progress","Avatar","AvatarGroup","Tooltip","HoverCard","Breadcrumb","BreadcrumbItem","Kbd","Skeleton","Calendar","Timeline","TimelineItem"]}};function tOa(e){let t=e.lastIndexOf("@");return t<=0?{name:e,version:""}:{name:e.slice(0,t),version:e.slice(t+1)}}var aOa=/^(@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$/,oOa=/^\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?$/;function IEt(e){let t=[];for(let a of String(e||"").split(",")){let[o,r]=a.trim().split(/\s+/);if(!o)continue;let{name:n,version:i}=tOa(o);!aOa.test(n)||!oOa.test(i)||t.some(s=>s.name===n)||t.push(r&&/^sha(256|384|512)-[A-Za-z0-9+/=]+$/.test(r)?{name:n,version:i,integrity:r}:{name:n,version:i})}return t}var MEt="https://cdn.jsdelivr.net/npm";function CEt(e=document){let t=e.querySelector('meta[name="austere-packs"]');return t?IEt(t.getAttribute("content")||""):[]}function _Et(e,t){let a=[...t];for(let[o,r]of Object.entries(LEt))a.some(n=>n.name===r.name)||r.components.some(n=>new RegExp(`\\b${n}\\s*\\(`).test(e))&&a.push({name:r.name,version:r.version,bundled:o});return a}function LX(){return/\/__austere\/$/.test(k2)}function rOa(e){if(e.bundled)return{src:B4(`packs/${e.bundled}/pack.js`)||`${MEt}/austere-axi@${e.version}/dist/packs/${e.bundled}/pack.js`};if(LX()){let t=e.integrity?`?integrity=${encodeURIComponent(e.integrity)}`:"";return{src:`${k2}installed-packs/${encodeURIComponent(`${e.name}@${e.version}`)}/pack.js${t}`}}return{src:`${MEt}/${e.name}@${e.version}/dist/pack.js`,integrity:e.integrity}}function nOa(e,t){return new Promise((a,o)=>{let r=document.createElement("script");r.src=e,r.async=!0,t&&(r.integrity=t,r.crossOrigin="anonymous"),r.onload=()=>a(),r.onerror=()=>o(new Error(`could not load ${e}`)),document.head.appendChild(r)})}async function AEt(e,{onError:t}={}){let a=e.filter(o=>!hl().some(r=>r.name===o.name));return await Promise.all(a.map(o=>{let{src:r,integrity:n}=rOa(o);return nOa(r,n).then(()=>{hl().some(i=>i.name===o.name)||t?.(o,new Error(`${r} loaded but did not register pack ${o.name}`))},i=>t?.(o,i))})),hl()}function NEt(e){for(let t of e){if(!t.css)continue;let a=`austere-pack-css-${t.name.replace(/[^a-z0-9]/gi,"-")}`;if(document.getElementById(a))continue;let o=document.createElement("style");o.id=a,o.textContent=t.css,document.head.appendChild(o)}}var iOa=/[A-Za-z_$]/;function sOa(e){let t=[],a=String(e??""),o=0,r=1,n=a.length;for(;o<n;){let i=a[o];if(i===`
1652
1652
  `){r++,o++;continue}if(i===" "||i===" "||i==="\r"){o++;continue}if(i==="#"||i==="/"&&a[o+1]==="/"){for(;o<n&&a[o]!==`
1653
1653
  `;)o++;continue}let s=o,l=r,u=0,d=null,p=!1;for(;o<n;){let x=a[o];if(d){p?p=!1:x==="\\"?p=!0:x===d&&(d=null),x===`
1654
1654
  `&&r++,o++;continue}if(x==='"'||x==="'"){d=x,o++;continue}if(x==="#"||x==="/"&&a[o+1]==="/"){for(;o<n&&a[o]!==`
1655
1655
  `;)o++;continue}if(x==="("||x==="["||x==="{")u++;else if(x===")"||x==="]"||x==="}")u=Math.max(0,u-1);else if(x===`
1656
- `){if(u===0&&!lOa(a,o+1))break;r++}o++}let f=a.slice(s,o).replace(/\s+$/,""),m=/^\s*([A-Za-z_$][\w$]*)\s*=/.exec(f);m&&iOa.test(m[1][0])&&t.push({id:m[1],text:f,line:l,endLine:r})}return t}function lOa(e,t){let a=t;for(;a<e.length&&(e[a]===" "||e[a]===" ");)a++;return e[a]==="?"||e[a]===":"}function Jm(e){let t=new Map;for(let a of sOa(e))t.set(a.id,a);return t}function REt(e,t){let a=Jm(e),o=Jm(t),r=[];for(let[n,i]of o){let s=a.get(n);(!s||TEt(s.text)!==TEt(i.text))&&r.push(n)}return r}function w9(e,t){let a=new RegExp(`(^|[^\\w$])${uOa(t)}(?![\\w$])`),o=[];for(let[r,n]of e){if(r===t)continue;let i=n.text.slice(n.text.indexOf("=")+1);a.test(cOa(i))&&o.push(r)}return o}function cOa(e){return e.replace(/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/gs,'""')}function TEt(e){return e.replace(/\s+/g," ").trim()}function uOa(e){return e.replace(/[$()*+.?[\\\]^{|}]/g,"\\$&")}var vv=oe(Lt(),1),CX="0.11.0",dOa='script[type="text/openui"], script[type="text/openui-lang"]';function pOa(){if(document.getElementById("austere-styles"))return;let e=document.createElement("style");if(e.id="austere-styles",e.textContent=[xre,hre,gre,yre].join(`
1656
+ `){if(u===0&&!lOa(a,o+1))break;r++}o++}let f=a.slice(s,o).replace(/\s+$/,""),m=/^\s*([A-Za-z_$][\w$]*)\s*=/.exec(f);m&&iOa.test(m[1][0])&&t.push({id:m[1],text:f,line:l,endLine:r})}return t}function lOa(e,t){let a=t;for(;a<e.length&&(e[a]===" "||e[a]===" ");)a++;return e[a]==="?"||e[a]===":"}function Jm(e){let t=new Map;for(let a of sOa(e))t.set(a.id,a);return t}function REt(e,t){let a=Jm(e),o=Jm(t),r=[];for(let[n,i]of o){let s=a.get(n);(!s||TEt(s.text)!==TEt(i.text))&&r.push(n)}return r}function w9(e,t){let a=new RegExp(`(^|[^\\w$])${uOa(t)}(?![\\w$])`),o=[];for(let[r,n]of e){if(r===t)continue;let i=n.text.slice(n.text.indexOf("=")+1);a.test(cOa(i))&&o.push(r)}return o}function cOa(e){return e.replace(/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/gs,'""')}function TEt(e){return e.replace(/\s+/g," ").trim()}function uOa(e){return e.replace(/[$()*+.?[\\\]^{|}]/g,"\\$&")}var vv=oe(Lt(),1),CX="0.12.0",dOa='script[type="text/openui"], script[type="text/openui-lang"]';function pOa(){if(document.getElementById("austere-styles"))return;let e=document.createElement("style");if(e.id="austere-styles",e.textContent=[xre,hre,gre,yre].join(`
1657
1657
  `),document.head.appendChild(e),!document.querySelector('meta[name="viewport"]')){let t=document.createElement("meta");t.name="viewport",t.content="width=device-width, initial-scale=1",document.head.appendChild(t)}document.documentElement.classList.add("austere"),document.documentElement.style.colorScheme="dark"}function OEt(e){if(!e||typeof e!="object")return;let t={},a=Object.entries(e);for(let[o,r]of a)if(!o.startsWith("$"))if(r&&typeof r=="object"&&!Array.isArray(r))if("value"in r&&Object.keys(r).length<=3)t[o]=r.value;else{let n=OEt(r);n&&Object.keys(n).length&&(t[o]=n)}else t[o]=r;return Object.keys(t).length?t:void 0}function fOa(e){return!!e&&typeof e=="object"&&"austere"in e&&e.austere===1&&"type"in e&&typeof e.type=="string"}function mOa(){let e=window.parent&&window.parent!==window,t=new Map,a=o=>{e&&window.parent.postMessage({austere:1,...o},"*")};return window.addEventListener("message",o=>{if(o.source!==window.parent)return;let r=o.data;fOa(r)&&t.get(r.type)?.forEach(n=>n(r))}),{framed:e,connected:!1,send:a,on(o,r){let n=r,i=t.get(o)??new Set;return t.set(o,i),i.add(n),()=>{i.delete(n)}}}}function PEt(e,t){e.framed?e.send({type:"open-url",url:t}):window.open(t,"_blank","noopener")}function IX(e){let t=document.createElement("div");t.className="austere-toast",t.setAttribute("data-austere-ui",""),t.textContent=e,document.body.appendChild(t),setTimeout(()=>t.classList.add("out"),2600),setTimeout(()=>t.remove(),3100)}function hOa(e){let t=[e.message];return e.form&&t.push(`form: ${JSON.stringify(e.form)}`),e.context!==void 0&&t.push(`context: ${JSON.stringify(e.context)}`),t.join(`
1658
1658
  `)}var MX=null,BEt=new Set,xv=gv,EEt="";function gOa(e,t){BEt.add(e.name);let a=!e.bundled&&LX()?" (`austere-axi check <file>` says why)":"";Tc({source:"pack",component:e.name,message:`pack ${e.name}@${e.version}: ${t.message}${a}`})}function yOa(){let e=hl(),t=e.map(a=>`${a.name}@${a.version}`).join(",");if(t===EEt)return xv;EEt=t,NEt(e);try{xv=e.length?bX(e.flatMap(a=>a.components),{onSkip:(a,o)=>Tc({source:"pack",component:a.name,message:o})}):gv}catch(a){Tc({source:"pack",message:`packs could not be added (${a.message}); rendering without them`}),xv=gv}return window.__austere.library=xv,xv}async function FEt(e){MX||(MX=CEt());let t=_Et(e,MX).filter(a=>!BEt.has(a.name));return t.some(a=>!hl().some(o=>o.name===a.name))&&await AEt(t,{onError:gOa}),yOa()}function xOa({programRef:e,initialLibrary:t,bridge:a,annotator:o,initialState:r}){let[n,i]=(0,Di.useState)({program:e.current,library:t}),s=n.program,l=(0,Di.useRef)(null);(0,Di.useEffect)(()=>a.on("source",async({program:f})=>{if(typeof f!="string"||f===e.current)return;let m=REt(e.current,f);e.current=f,o?.highlight([]);let x=await FEt(f);e.current===f&&(l.current=m,i({program:f,library:x}))}),[a]),(0,Di.useEffect)(()=>a.on("reveal",({id:f})=>{o?.reveal(f,Jm(e.current),w9)}),[a,o]),(0,Di.useEffect)(()=>{let f=l.current;if(!f)return;l.current=null;let m=setTimeout(()=>{let x=Jm(e.current),v=f.filter(w=>w!=="root");o?.flash(v,"changed",x,w9),a.send({type:"changes",ids:v})},120);return()=>clearTimeout(m)},[s,o,a]);let u=(0,Di.useCallback)(f=>{if(f.type==="open_url"){let v=f.params?.url;typeof v=="string"&&/^(https?:|mailto:)/i.test(v)&&PEt(a,v);return}if(f.type!=="continue_conversation")return;let m={kind:"action",message:f.humanFriendlyMessage||"(button)"},x=OEt(f.formState);if(x&&(m.form=x),f.params?.context!==void 0&&(m.context=f.params.context),a.connected)a.send({type:"action",item:m}),IX("Queued for the agent \u2014 press Send when ready");else{let v=hOa(m);navigator.clipboard?.writeText(v).then(()=>IX("Copied \u2014 paste it to your agent"),()=>IX(v))}},[a]),d=(0,Di.useCallback)(f=>{a.send({type:"errors",errors:(f||[]).map(m=>({source:m.source,code:m.code,statementId:m.statementId,message:m.message,hint:m.hint}))})},[a]),p=(0,Di.useCallback)(f=>a.send({type:"state",state:f}),[a]);return(0,vv.jsx)(mre,{mode:"dark",children:(0,vv.jsx)("main",{className:"austere-page",children:(0,vv.jsx)(x2,{response:s,library:n.library,isStreaming:!1,onAction:u,onError:d,onStateUpdate:p,initialState:r})})})}function zEt(){pOa();let t=document.querySelector(dOa)?.textContent??"",a=document.createElement("div");a.id="austere-root",document.body.appendChild(a);let o=mOa(),r={current:t},n=null,i=null,s=FEt(t),l=f=>i||(i=s.then(m=>(0,DEt.createRoot)(a).render((0,vv.jsx)(xOa,{programRef:r,initialLibrary:m,bridge:o,annotator:n,initialState:f}))));if(!o.framed){l(void 0);return}let u={program:null,map:new Map},p=SEt({post:f=>o.send(f),lookup:()=>(u.program!==r.current&&(u={program:r.current,map:Jm(r.current)}),[u.map,w9])});n=p,o.on("highlight",({ids:f,scroll:m})=>{p.highlight(Array.isArray(f)?f.filter(x=>typeof x=="string"):[],!!m)}),o.on("presence",({marks:f})=>{let m=x=>{let v=x;return!!v&&typeof v.statement=="string"&&typeof v.name=="string"&&typeof v.colour=="string"&&/^#[0-9a-f]{6}$/i.test(v.colour)};p.focus(Array.isArray(f)?f.filter(m).slice(0,50):[])}),document.addEventListener("click",f=>{if(f.defaultPrevented||f.button!==0)return;let m=f.target instanceof Element?f.target.closest("a[href]"):null;if(!(m instanceof HTMLAnchorElement)||!/^(https?|mailto):/i.test(m.href)||m.protocol===location.protocol&&m.host===location.host)return;let x=(m.getAttribute("target")||"").toLowerCase();!x||x==="_self"||(f.preventDefault(),PEt(o,m.href))}),ZQ(f=>o.send({type:"runtime-error",error:f})),o.on("init",async f=>{if(o.connected=!0,p.setMode(f.mode),await l(f.state||void 0),f.scrollY>0){let m=0,x=()=>{window.scrollTo(0,f.scrollY),Math.abs(window.scrollY-f.scrollY)>2&&++m<20&&setTimeout(x,50)};setTimeout(x,30)}o.send({type:"ready",title:document.title,version:CX})}),o.on("mode",f=>p.setMode(f.mode)),window.addEventListener("scroll",()=>o.send({type:"scroll",y:window.scrollY}),{passive:!0}),o.send({type:"hello",title:document.title,version:CX}),setTimeout(()=>l(void 0),600)}window.__austere={version:CX,library:gv,packs:hl};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",zEt,{once:!0}):setTimeout(zEt,0);})();
1659
1659
  }
package/dist/catalog.json CHANGED
@@ -1 +1 @@
1
- {"format":1,"pack":"core","version":"0.11.0","groups":[{"name":"Layout","notes":["- A page is root = Stack([...sections], \"column\", \"l\"). Each section is a Card([CardHeader(title, subtitle), ...content]).","- Side by side: Stack([a, b], \"row\", \"m\", \"stretch\", \"start\", true). Cards in a row share the width.","- Tabs for alternative views, Accordion for detail the reader may skip, Steps for ordered procedures. Several blocks in one Card: label each with InlineHeader.","- Card children must match its list; anything else (Accordion, Tag, a Callout row) can sit in a Stack inside the Card, or directly in root's Stack."]},{"name":"Content","notes":["- MarkDownRenderer for prose, bullet lists and inline code; one statement per paragraph group so each is annotatable.","- Callout for the one thing the reader must not miss: a risk, a decision needed, a caveat.","- CodeBlock for a whole snippet. Image src may be a path relative to the artifact file.","- Architecture for systems: services, stores, queues, trust boundaries. Name every Node, Edge and Group. Over ~15 nodes, use lanes or split the diagram.","- lanes: for systems split by owner, repo or tier. Groups are the columns, left to right as listed; put every node in one, in reading order (plain groups for a heading without a frame). About 4 columns fit a laptop; wider ones scroll (check warns). Phones get the lanes stacked as bands. Pin row only to put boxes side by side or line them up.","- Diff for code changes: show the hunks that matter, not whole files. Hunk counts are recomputed, so only start lines matter."]},{"name":"Data","notes":["- Table is COLUMN-oriented: Table([Col(\"Option\", names), Col(\"Effort\", efforts), Col(\"Risk\", risks)]). Col data may mix strings and components, e.g. [\"n/a\", Tag(\"high\", null, \"sm\", \"danger\")]. Cells are plain text (no markdown) and wrap; Col type \"number\" for figures.","- EntityList for key/value facts; OverviewCardBlock + OverviewCardItem + MetricIndicatorInline for a KPI row.","- EditableTable when the reviewer should correct or fill in values; edits arrive with the next @ToAssistant from its Form.","- Icon names are lucide kebab-case (circle-check, triangle-alert, git-branch)."]},{"name":"Charts","notes":["- Charts take column arrays: BarChart(labels, [Series(\"p50\", [..]), Series(\"p99\", [..])], \"grouped\", \"Week\", \"ms\").","- PieChart(labels, values) with plain number arrays."]},{"name":"Forms","notes":["- Form(name, buttons, fields). Define each FormControl as its own statement. Never nest a Form in a Form.","- To ask the reviewer to decide: OptionCards or RadioGroup inside a Form whose button is Button(\"Send decision\", @ToAssistant(\"Decision: rollout strategy\"), \"primary\"). The values arrive with that message as form: {<formName>: {<fieldName>: value}}; no context needed. Reviewers can always annotate and message, so add a notes field only when it belongs with the decision.","- OptionCards(\"pick\", \"single\", [OptionCard(\"a\", \"Option A\", \"why\", Icon(\"zap\")), OptionCard(\"b\", \"Option B\")], {required: true}, \"a\") — the last argument pre-selects.","- rules: {required: true, minLength: 10, ...}; the renderer shows the messages."]},{"name":"Buttons","notes":["- @ToAssistant(message, context?) queues a message to the agent; @OpenUrl(url) opens a link. A Button with no action sends its label.","- Use buttons for follow-ups the reviewer can pick in one click: \"Go with option B\", \"Split this into two PRs\"."]}],"components":[{"name":"Card","group":"Layout","signature":"Card(children: (TextContent | MarkDownRenderer | CardHeader | Callout | CodeBlock | Image | Separator | HorizontalBarChart | PieChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps | InlineHeader | EntityList | EditableTable | OverviewCardBlock | Tabs | Stack | Architecture | Diff | FileTree | Progress | Avatar | AvatarGroup | Tooltip | HoverCard | Breadcrumb | Kbd | Skeleton | Calendar | Timeline)[], variant?: \"card\" | \"sunk\" | \"clear\", direction?: \"row\" | \"column\", gap?: \"none\" | \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"2xl\", align?: \"start\" | \"center\" | \"end\" | \"stretch\" | \"baseline\", justify?: \"start\" | \"center\" | \"end\" | \"between\" | \"around\" | \"evenly\", wrap?: boolean)","description":"Styled container. variant: \"card\" (default, elevated) | \"sunk\" (recessed) | \"clear\" (transparent). Always full width. Accepts all Stack flex params (default: direction \"column\"). Cards flex to share space in row/wrap layouts.","tier":"core","pack":"core","examples":[]},{"name":"CardHeader","group":"Layout","signature":"CardHeader(title?: string, subtitle?: string)","description":"Header with optional title and subtitle","tier":"core","pack":"core","examples":[]},{"name":"TextContent","group":"Content","signature":"TextContent(text: string, size?: \"small\" | \"default\" | \"large\" | \"small-heavy\" | \"large-heavy\")","description":"Text block. Supports markdown. Optional size: \"small\" | \"default\" | \"large\" | \"small-heavy\" | \"large-heavy\".","tier":"core","pack":"core","examples":[]},{"name":"MarkDownRenderer","group":"Content","signature":"MarkDownRenderer(textMarkdown: string, variant?: \"clear\" | \"card\" | \"sunk\")","description":"Renders markdown text with optional container variant","tier":"core","pack":"core","examples":[]},{"name":"Callout","group":"Content","signature":"Callout(variant: \"info\" | \"warning\" | \"error\" | \"success\" | \"neutral\", title: string, description: string, visible?: $binding<boolean>)","description":"Callout banner. Optional visible is a reactive $boolean — auto-dismisses after 3s by setting $visible to false.","tier":"core","pack":"core","examples":[]},{"name":"Image","group":"Content","signature":"Image(alt: string, src?: string)","description":"Image with alt text and optional URL","tier":"core","pack":"core","examples":[]},{"name":"CodeBlock","group":"Content","signature":"CodeBlock(language: string, codeString: string)","description":"Syntax-highlighted code block","tier":"core","pack":"core","examples":[]},{"name":"InlineHeader","group":"Layout","signature":"InlineHeader(heading: string, description?: string)","description":"Compact section heading with an optional one-line description, for use inside cards.","tier":"core","pack":"core","examples":[]},{"name":"Table","group":"Data","signature":"Table(columns: Col[])","description":"Data table — column-oriented. Each Col holds its own data array.","tier":"core","pack":"core","examples":[]},{"name":"Col","group":"Data","signature":"Col(label: string, data: any, type?: \"string\" | \"number\" | \"action\")","description":"Column definition — holds label + data array","tier":"core","pack":"core","examples":[]},{"name":"EditableTable","group":"Data","signature":"EditableTable(name?: string, columns?: {type: \"text\" | \"number\" | \"date-single\" | \"select\" | \"url\", key?: string, header?: string, width?: number, options?: {value: string, label: string}[]}[], data?: {id: string, values: (string | number)[]}[])","description":"Spreadsheet-like table whose cells the user can edit inline (text, number, url, date, select columns); edits are saved back as a form field","tier":"extended","pack":"core","examples":[]},{"name":"BarChart","group":"Charts","signature":"BarChart(labels: string[], series: Series[], variant?: \"grouped\" | \"stacked\", xLabel?: string, yLabel?: string, height?: number)","description":"Vertical bars; use for comparing values across categories with one or more series","tier":"core","pack":"core","examples":[]},{"name":"LineChart","group":"Charts","signature":"LineChart(labels: string[], series: Series[], variant?: \"linear\" | \"natural\" | \"step\", xLabel?: string, yLabel?: string, height?: number)","description":"Lines over categories; use for trends and continuous data over time","tier":"core","pack":"core","examples":[]},{"name":"AreaChart","group":"Charts","signature":"AreaChart(labels: string[], series: Series[], variant?: \"linear\" | \"natural\" | \"step\", xLabel?: string, yLabel?: string, height?: number)","description":"Filled area under lines; use for cumulative totals or volume trends over time","tier":"extended","pack":"core","examples":[]},{"name":"HorizontalBarChart","group":"Charts","signature":"HorizontalBarChart(labels: string[], series: Series[], variant?: \"grouped\" | \"stacked\", xLabel?: string, yLabel?: string)","description":"Horizontal bars; prefer when category labels are long or for ranked lists","tier":"extended","pack":"core","examples":[]},{"name":"Series","group":"Charts","signature":"Series(category: string, values: number[])","description":"One data series","tier":"core","pack":"core","examples":[]},{"name":"PieChart","group":"Charts","signature":"PieChart(labels: string[], values: number[], variant?: \"pie\" | \"donut\", appearance?: \"circular\" | \"semiCircular\")","description":"Circular slices; use plucked arrays: PieChart(data.categories, data.values)","tier":"core","pack":"core","examples":[]},{"name":"ScatterChart","group":"Charts","signature":"ScatterChart(datasets: ScatterSeries[], xLabel?: string, yLabel?: string)","description":"X/Y scatter plot; use for correlations, distributions, and clustering","tier":"extended","pack":"core","examples":[]},{"name":"ScatterSeries","group":"Charts","signature":"ScatterSeries(name: string, points: Point[])","description":"Named dataset","tier":"extended","pack":"core","examples":[]},{"name":"Point","group":"Charts","signature":"Point(x: number, y: number, z?: number)","description":"Data point with numeric coordinates","tier":"extended","pack":"core","examples":[]},{"name":"Form","group":"Forms","signature":"Form(name: string, buttons: Buttons, fields?: FormControl[])","description":"Form container with fields and explicit action buttons","tier":"core","pack":"core","examples":[]},{"name":"FormControl","group":"Forms","signature":"FormControl(label: string, input: Input | TextArea | Select | Slider | CheckBoxGroup | RadioGroup | Chips | OptionCards, hint?: string)","description":"Field with label, input component, and optional hint text","tier":"core","pack":"core","examples":[]},{"name":"Label","group":"Forms","signature":"Label(text: string)","description":"Text label","tier":"extended","pack":"core","examples":[]},{"name":"Input","group":"Forms","signature":"Input(name: string, placeholder?: string, type?: \"text\" | \"email\" | \"password\" | \"number\" | \"url\", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)","description":"","tier":"core","pack":"core","examples":[]},{"name":"TextArea","group":"Forms","signature":"TextArea(name: string, placeholder?: string, rows?: number, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)","description":"","tier":"core","pack":"core","examples":[]},{"name":"Select","group":"Forms","signature":"Select(name: string, items: SelectItem[], placeholder?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>, size?: \"small\" | \"medium\" | \"large\")","description":"","tier":"core","pack":"core","examples":[]},{"name":"SelectItem","group":"Forms","signature":"SelectItem(value: string, label: string)","description":"Option for Select","tier":"core","pack":"core","examples":[]},{"name":"Slider","group":"Forms","signature":"Slider(name: string, variant: \"continuous\" | \"discrete\", min: number, max: number, step?: number, defaultValue?: number[], label?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<number[]>)","description":"Numeric slider input; supports continuous and discrete (stepped) variants","tier":"extended","pack":"core","examples":[]},{"name":"CheckBoxGroup","group":"Forms","signature":"CheckBoxGroup(name: string, items: CheckBoxItem[], rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<Record<string, boolean>>)","description":"","tier":"extended","pack":"core","examples":[]},{"name":"CheckBoxItem","group":"Forms","signature":"CheckBoxItem(label: string, description: string, name: string, defaultChecked?: boolean)","description":"","tier":"extended","pack":"core","examples":[]},{"name":"RadioGroup","group":"Forms","signature":"RadioGroup(name: string, items: RadioItem[], defaultValue?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)","description":"","tier":"core","pack":"core","examples":[]},{"name":"RadioItem","group":"Forms","signature":"RadioItem(label: string, description: string, value: string)","description":"","tier":"core","pack":"core","examples":[]},{"name":"SwitchGroup","group":"Forms","signature":"SwitchGroup(name: string, items: SwitchItem[], variant?: \"clear\" | \"card\" | \"sunk\", value?: $binding<Record<string, boolean>>)","description":"Group of switch toggles","tier":"extended","pack":"core","examples":[]},{"name":"SwitchItem","group":"Forms","signature":"SwitchItem(label?: string, description?: string, name: string, defaultChecked?: boolean)","description":"Individual switch toggle","tier":"extended","pack":"core","examples":[]},{"name":"ChipItem","group":"Forms","signature":"ChipItem(value: string, label: string, icon?: Icon, disabled?: boolean)","description":"A single selectable chip inside a Chips group, with a value, label and optional icon.","tier":"extended","pack":"core","examples":[]},{"name":"Chips","group":"Forms","signature":"Chips(name: string, type?: \"single\" | \"multiple\", items?: ChipItem[], rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, defaultValue?: string | string[])","description":"A form field of compact selectable chips for choosing one or many short options; the selection is stored under `name`.","tier":"extended","pack":"core","examples":[]},{"name":"OptionCard","group":"Forms","signature":"OptionCard(value: string, title: string, subtitle?: string, topContent?: Icon | Image, disabled?: boolean)","description":"A single selectable card inside an OptionCards group, with a value, title, optional subtitle and an optional Icon or Image on top.","tier":"core","pack":"core","examples":[]},{"name":"OptionCards","group":"Forms","signature":"OptionCards(name: string, type?: \"single\" | \"multiple\", items?: OptionCard[], rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, defaultValue?: string | string[])","description":"A form field of selectable cards (title, optional subtitle, optional icon or image) laid out in a responsive grid for choosing one or many options; the selection is stored under `name`.","tier":"core","pack":"core","examples":[]},{"name":"Button","group":"Buttons","signature":"Button(label: string, action?: ActionExpression, variant?: \"primary\" | \"secondary\" | \"tertiary\", type?: \"normal\" | \"destructive\", size?: \"extra-small\" | \"small\" | \"medium\" | \"large\")","description":"Clickable button","tier":"core","pack":"core","examples":[]},{"name":"Buttons","group":"Buttons","signature":"Buttons(buttons: Button[], direction?: \"row\" | \"column\")","description":"Group of Button components. direction: \"row\" (default) | \"column\".","tier":"core","pack":"core","examples":[]},{"name":"Stack","group":"Layout","signature":"Stack(children: any[], direction?: \"row\" | \"column\", gap?: \"none\" | \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"2xl\", align?: \"start\" | \"center\" | \"end\" | \"stretch\" | \"baseline\", justify?: \"start\" | \"center\" | \"end\" | \"between\" | \"around\" | \"evenly\", wrap?: boolean)","description":"Flex container. direction: \"row\"|\"column\" (default \"column\"). gap: \"none\"|\"xs\"|\"s\"|\"m\"|\"l\"|\"xl\"|\"2xl\" (default \"m\"). align: \"start\"|\"center\"|\"end\"|\"stretch\"|\"baseline\". justify: \"start\"|\"center\"|\"end\"|\"between\"|\"around\"|\"evenly\".","tier":"core","pack":"core","examples":[]},{"name":"Tabs","group":"Layout","signature":"Tabs(items: TabItem[])","description":"Tabbed container","tier":"core","pack":"core","examples":[]},{"name":"TabItem","group":"Layout","signature":"TabItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | CodeBlock | Image | Separator | HorizontalBarChart | PieChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps | InlineHeader | EntityList | EditableTable | OverviewCardBlock | Architecture | Diff | FileTree | Progress | Avatar | AvatarGroup | Tooltip | HoverCard | Breadcrumb | Kbd | Skeleton | Calendar | Timeline)[])","description":"value is unique id, trigger is tab label, content is array of components","tier":"core","pack":"core","examples":[]},{"name":"Accordion","group":"Layout","signature":"Accordion(items: AccordionItem[])","description":"Collapsible sections","tier":"core","pack":"core","examples":[]},{"name":"AccordionItem","group":"Layout","signature":"AccordionItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | CodeBlock | Image | Separator | HorizontalBarChart | PieChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps | InlineHeader | EntityList | EditableTable | OverviewCardBlock | Architecture | Diff | FileTree | Progress | Avatar | AvatarGroup | Tooltip | HoverCard | Breadcrumb | Kbd | Skeleton | Calendar | Timeline)[])","description":"value is unique id, trigger is section title","tier":"core","pack":"core","examples":[]},{"name":"Steps","group":"Layout","signature":"Steps(items: StepsItem[])","description":"Step-by-step guide","tier":"core","pack":"core","examples":[]},{"name":"StepsItem","group":"Layout","signature":"StepsItem(title: string, details: string)","description":"title and details text for one step","tier":"core","pack":"core","examples":[]},{"name":"Separator","group":"Layout","signature":"Separator(orientation?: \"horizontal\" | \"vertical\", decorative?: boolean)","description":"Visual divider between content sections","tier":"core","pack":"core","examples":[]},{"name":"TagBlock","group":"Data","signature":"TagBlock(tags: string[], size?: \"sm\" | \"md\" | \"lg\")","description":"tags is an array of strings; optional size sm | md | lg","tier":"extended","pack":"core","examples":[]},{"name":"Tag","group":"Data","signature":"Tag(text: string, icon?: Icon, size?: \"sm\" | \"md\" | \"lg\", variant?: \"neutral\" | \"info\" | \"success\" | \"warning\" | \"danger\")","description":"Styled tag/badge with optional Icon and variant","tier":"core","pack":"core","examples":[]},{"name":"Icon","group":"Data","signature":"Icon(name: string, category?: string)","description":"A lucide icon by kebab-case name (e.g. 'circle-check'). Optional category picks a topical fallback when the name doesn't resolve.","tier":"core","pack":"core","examples":[]},{"name":"EntityList","group":"Data","signature":"EntityList(rows?: {left: string, right: string, rightVariant?: \"text\" | \"number\"}[], size?: \"small\" | \"default\", header?: {left: string, right: string, rightVariant?: \"text\" | \"number\"}, footer?: {left: string, right: string, rightVariant?: \"text\" | \"number\"})","description":"Two-column key/value rows (left label, right value). size 'default' supports optional header and footer rows; rightVariant 'number' uses tabular numbers.","tier":"core","pack":"core","examples":[]},{"name":"Text","group":"Data","signature":"Text(variant?: \"text\" | \"number\", value: string, subtext?: string, subtextVariant?: \"text\" | \"number\" | \"metric\", size?: \"xs\" | \"sm\" | \"md\" | \"lg\")","description":"Plain text line with optional subtext. variant 'number' uses tabular number styling; subtextVariant 'metric' colors a leading +/- subtext green/red.","tier":"core","pack":"core","examples":[]},{"name":"BoldText","group":"Data","signature":"BoldText(variant?: \"text\" | \"number\", value: string, subtext?: string, subtextVariant?: \"text\" | \"number\" | \"metric\", size?: \"xs\" | \"sm\" | \"md\" | \"lg\")","description":"Emphasized (bold) text line with optional subtext. variant 'number' uses tabular number styling; subtextVariant 'metric' colors a leading +/- subtext green/red.","tier":"extended","pack":"core","examples":[]},{"name":"IconText","group":"Data","signature":"IconText(icon: Icon, iconVariant?: \"neutral\" | \"info\" | \"success\" | \"warning\" | \"danger\" | \"inverted\" | \"filled\" | \"soft\", iconSize?: \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"sm\" | \"md\" | \"lg\", title: string, subtitle?: string, bold?: boolean, layout?: \"horizontal\" | \"vertical\")","description":"An icon badge with a title and optional subtitle, laid out horizontally or vertically. iconVariant sets the badge color.","tier":"extended","pack":"core","examples":[]},{"name":"MetricIndicatorInline","group":"Data","signature":"MetricIndicatorInline(value: string, subtext?: string, trend?: {direction: \"up\" | \"down\", value: number})","description":"Headline metric value with an optional +/- percentage trend and subtext, all on one line.","tier":"core","pack":"core","examples":[]},{"name":"OverviewCardItem","group":"Data","signature":"OverviewCardItem(id?: string, top: IconText | Text, bottom?: MetricIndicatorInline)","description":"One overview card: a heading slot at the top (IconText, ImageText or Text) and an optional MetricIndicatorInline at the bottom.","tier":"core","pack":"core","examples":[]},{"name":"OverviewCardBlock","group":"Data","signature":"OverviewCardBlock(items: OverviewCardItem[], layout?: \"grid\" | \"carousel\", responsive?: boolean, action?: ActionExpression, gap?: number | string)","description":"A grid or horizontal carousel of compact overview cards, each with a heading (icon/image/text) on top and an inline metric below; optionally clickable with a shared action.","tier":"core","pack":"core","examples":[]},{"name":"Architecture","group":"Content","signature":"Architecture(nodes: Node[], edges: Edge[], groups?: Group[], direction?: \"auto\" | \"right\" | \"down\" | \"lanes\")","description":"System diagram laid out automatically: write no coordinates. Every Node, Edge and Group is its own statement and click target. direction auto (default) runs right when that fits the page legibly, else down; lanes makes each top-level Group a column.","tier":"core","pack":"core","examples":["platformMap = Architecture([browser, edge, api, sessions, cache], [toEdge, toApi, readSessions, readCache], [vpc])\nbrowser = Node(\"Browser\", \"external\")\nedge = Node(\"Edge worker\", \"cloud\", \"Cloudflare\")\napi = Node(\"API\", \"backend\", \"Node :8080\")\nsessions = Node(\"Sessions\", \"database\", \"Postgres\", \"new\")\ncache = Node(\"Redis\", \"database\", \"read-through\")\ntoEdge = Edge(browser, edge, \"HTTPS\", \"emphasis\")\ntoApi = Edge(edge, api)\nreadSessions = Edge(api, sessions, \"SQL\")\nreadCache = Edge(api, cache, \"cache\", \"dashed\")\nvpc = Group(\"Platform VPC\", [api, sessions, cache])","ownership = Architecture([web, ordersApi, ledger, ordersDb, billingJob], [placeOrder, writeOrder, readOrders, postLedger], [clients, ordersRepo, billingRepo], \"lanes\")\nweb = Node(\"Web app\", \"frontend\")\nordersApi = Node(\"Orders API\", \"backend\", \"Node :8080\")\nordersDb = Node(\"orders table\", \"database\", \"Postgres\", null, \"success\")\nbillingJob = Node(\"Nightly billing\", \"backend\", \"cron 02:00\")\nledger = Node(\"Ledger\", \"database\", \"append-only\", null, \"info\")\nplaceOrder = Edge(web, ordersApi, \"POST /orders\")\nwriteOrder = Edge(ordersApi, ordersDb, \"insert\")\nreadOrders = Edge(billingJob, ordersDb, \"read unbilled\", null, \"danger\")\npostLedger = Edge(billingJob, ledger, \"post\")\nclients = Group(\"CLIENTS\", [web], \"plain\")\nordersRepo = Group(\"orders-service\", [ordersApi, ordersDb])\nbillingRepo = Group(\"billing\", [billingJob, ledger])"]},{"name":"Node","group":"Content","signature":"Node(label: string, kind?: \"frontend\" | \"backend\" | \"database\" | \"messagebus\" | \"cloud\" | \"security\" | \"external\", detail?: string, tag?: string, tone?: \"info\" | \"success\" | \"warning\" | \"danger\" | \"strong\", row?: number)","description":"A box in an Architecture. kind sets icon and color (default backend); detail is monospace, up to 2 lines (\\n breaks); tag is a small chip such as \"new\"; tone tints it (danger = risk, strong = where it ends); row pins it to a row (1, 2, ...) in lanes.","tier":"core","pack":"core","examples":[]},{"name":"Edge","group":"Content","signature":"Edge(from: Node, to: Node, label?: string, style?: \"solid\" | \"dashed\" | \"emphasis\" | \"security\", tone?: \"info\" | \"success\" | \"warning\" | \"danger\")","description":"An arrow between two Node statements (pass their names, not strings). style: dashed for async, emphasis for the main path, security for auth or trust flows. tone colors it, e.g. danger for a risky write, success for a read.","tier":"core","pack":"core","examples":[]},{"name":"Group","group":"Content","signature":"Group(label: string, members: Node[], kind?: \"region\" | \"security\" | \"plain\")","description":"A boundary around Node statements (a VPC, a cluster, a trust zone); members still sit where their edges put them. A group whose members are a subset of another's is drawn inside it; kind security draws it red, plain draws only its name.","tier":"core","pack":"core","examples":[]},{"name":"Diff","group":"Content","signature":"Diff(patch: string, title?: string)","description":"Unified diff (git diff output, one or more files) with line numbers. patch is a raw multi-line string. Clicked lines reach the agent as file:+line.","tier":"core","pack":"core","examples":["retryPatch = Diff(\"diff --git a/src/retry.ts b/src/retry.ts\n--- a/src/retry.ts\n+++ b/src/retry.ts\n@@ -10,2 +10,3 @@\n- for (let i = 0; i < 3; i++) {\n+ for (let i = 0; i < MAX_ATTEMPTS; i++) {\n+ if (i > 0) await sleep(backoff(i));\")"]},{"name":"FileTree","group":"Data","signature":"FileTree(entries: string[])","description":"File tree, one path per entry, optionally prefixed with a git status code (A new, M modified, D deleted, R old -> new) and suffixed with \" # note\". Folders are inferred. Clicked files and folders reach the agent by path.","tier":"core","pack":"core","examples":["changedFiles = FileTree([\"M src/session/store.ts # read-through to Postgres\", \"A src/session/pg-store.ts\", \"A migrations/0042_sessions.sql # table + expiry index\", \"R src/session/redis.ts -> src/session/redis-cache.ts\", \"D src/session/legacy.ts\", \"M src/config.ts # SESSIONS_PG flag\"])"]},{"name":"Progress","group":"Data","signature":"Progress(value: number, label?: string, max?: number)","description":"Progress bar. value counts toward max (default 100); label names what is progressing. Shows a percentage.","tier":"extended","pack":"@austere-axi/pack-shadcn","examples":["migration = Progress(64, \"Rows migrated\")"]},{"name":"Avatar","group":"Data","signature":"Avatar(name: string, src?: string, size?: \"md\" | \"lg\")","description":"Round avatar for a person. Shows the initials of name; src is an optional https image URL.","tier":"extended","pack":"@austere-axi/pack-shadcn","examples":["owner = Avatar(\"Ada Lovelace\")"]},{"name":"AvatarGroup","group":"Data","signature":"AvatarGroup(avatars: Avatar[], max?: number)","description":"Overlapping Avatars, for reviewers or owners. max (default 4) shows the rest as +N.","tier":"extended","pack":"@austere-axi/pack-shadcn","examples":["team = AvatarGroup([ada, grace, linus], 2)\nada = Avatar(\"Ada Lovelace\")\ngrace = Avatar(\"Grace Hopper\")\nlinus = Avatar(\"Linus Torvalds\")"]},{"name":"Tooltip","group":"Content","signature":"Tooltip(text: string, tip: string)","description":"Inline text with a short hint on hover or focus (a term and its definition). Keep tip to one line.","tier":"extended","pack":"@austere-axi/pack-shadcn","examples":["term = Tooltip(\"idempotent\", \"Safe to run twice with the same result.\")"]},{"name":"HoverCard","group":"Content","signature":"HoverCard(text: string, title: string, body?: string)","description":"Inline text that shows a small card (title and a line or two of body) on hover or focus, e.g. a person or a service.","tier":"extended","pack":"@austere-axi/pack-shadcn","examples":["svc = HoverCard(\"billing-api\", \"billing-api\", \"Owns invoices and refunds. On call: payments team.\")"]},{"name":"Breadcrumb","group":"Content","signature":"Breadcrumb(items: BreadcrumbItem[])","description":"Path trail such as Repo / Package / File, from BreadcrumbItems. Each item is a click target.","tier":"extended","pack":"@austere-axi/pack-shadcn","examples":["trail = Breadcrumb([repo, pkg, file])\nrepo = BreadcrumbItem(\"austere-axi\")\npkg = BreadcrumbItem(\"packs\")\nfile = BreadcrumbItem(\"shadcn\")"]},{"name":"BreadcrumbItem","group":"Content","signature":"BreadcrumbItem(label: string, href?: string)","description":"One step of a Breadcrumb. href is optional; the last item is the current page.","tier":"extended","pack":"@austere-axi/pack-shadcn","examples":[]},{"name":"Kbd","group":"Content","signature":"Kbd(keys: string)","description":"Keyboard shortcut. keys joins keys with \"+\", e.g. \"Ctrl+K\"; each key is drawn as a key cap.","tier":"extended","pack":"@austere-axi/pack-shadcn","examples":["shortcut = Kbd(\"Ctrl+Shift+P\")"]},{"name":"Skeleton","group":"Content","signature":"Skeleton(lines?: number, shape?: \"lines\" | \"avatar\")","description":"Grey placeholder block for content not yet written or loaded (default 3 lines). shape avatar adds a round head.","tier":"extended","pack":"@austere-axi/pack-shadcn","examples":["pending = Skeleton(3, \"avatar\")"]},{"name":"Calendar","group":"Data","signature":"Calendar(month: string, highlights?: string[])","description":"Read-only month grid (not a date picker). month is \"YYYY-MM\"; highlights lists \"YYYY-MM-DD\" or \"YYYY-MM-DD label\" entries to mark, e.g. a freeze or a release. Marked days are click targets.","tier":"extended","pack":"@austere-axi/pack-shadcn","examples":["window = Calendar(\"2026-11\", [\"2026-11-04 Code freeze\", \"2026-11-12 Release\", \"2026-11-13\"])"]},{"name":"Timeline","group":"Content","signature":"Timeline(items: TimelineItem[])","description":"Vertical history or schedule of TimelineItems, oldest first. Each item is a click target.","tier":"extended","pack":"@austere-axi/pack-shadcn","examples":["history = Timeline([found, fixed, rollout])\nfound = TimelineItem(\"Bug found\", \"Oct 28\", \"Retries double-charge on timeout.\")\nfixed = TimelineItem(\"Fix merged\", \"Oct 29\", \"Idempotency key added.\", \"current\")\nrollout = TimelineItem(\"Rollout\", \"Nov 3\", \"\", \"upcoming\")"]},{"name":"TimelineItem","group":"Content","signature":"TimelineItem(title: string, date?: string, detail?: string, state?: \"done\" | \"current\" | \"upcoming\")","description":"One event in a Timeline. state: done (default), current or upcoming.","tier":"extended","pack":"@austere-axi/pack-shadcn","examples":[]}]}
1
+ {"format":1,"pack":"core","version":"0.12.0","groups":[{"name":"Layout","notes":["- A page is root = Stack([...sections], \"column\", \"l\"). Each section is a Card([CardHeader(title, subtitle), ...content]).","- Side by side: Stack([a, b], \"row\", \"m\", \"stretch\", \"start\", true). Cards in a row share the width.","- Tabs for alternative views, Accordion for detail the reader may skip, Steps for ordered procedures. Several blocks in one Card: label each with InlineHeader.","- Card children must match its list; anything else (Accordion, Tag, a Callout row) can sit in a Stack inside the Card, or directly in root's Stack."]},{"name":"Content","notes":["- MarkDownRenderer for prose, bullet lists and inline code; one statement per paragraph group so each is annotatable.","- Callout for the one thing the reader must not miss: a risk, a decision needed, a caveat.","- CodeBlock for a whole snippet. Image src may be a path relative to the artifact file.","- Architecture for systems: services, stores, queues, trust boundaries. Name every Node, Edge and Group. Over ~15 nodes, use lanes or split the diagram.","- lanes: for systems split by owner, repo or tier. Groups are the columns, left to right as listed; put every node in one, in reading order (plain groups for a heading without a frame). About 4 columns fit a laptop; wider ones scroll (check warns). Phones get the lanes stacked as bands. Pin row only to put boxes side by side or line them up.","- Diff for code changes: show the hunks that matter, not whole files. Hunk counts are recomputed, so only start lines matter."]},{"name":"Data","notes":["- Table is COLUMN-oriented: Table([Col(\"Option\", names), Col(\"Effort\", efforts), Col(\"Risk\", risks)]). Col data may mix strings and components, e.g. [\"n/a\", Tag(\"high\", null, \"sm\", \"danger\")]. Cells are plain text (no markdown) and wrap; Col type \"number\" for figures.","- EntityList for key/value facts; OverviewCardBlock + OverviewCardItem + MetricIndicatorInline for a KPI row.","- EditableTable when the reviewer should correct or fill in values; edits arrive with the next @ToAssistant from its Form.","- Icon names are lucide kebab-case (circle-check, triangle-alert, git-branch)."]},{"name":"Charts","notes":["- Charts take column arrays: BarChart(labels, [Series(\"p50\", [..]), Series(\"p99\", [..])], \"grouped\", \"Week\", \"ms\").","- PieChart(labels, values) with plain number arrays."]},{"name":"Forms","notes":["- Form(name, buttons, fields). Define each FormControl as its own statement. Never nest a Form in a Form.","- To ask the reviewer to decide: OptionCards or RadioGroup inside a Form whose button is Button(\"Send decision\", @ToAssistant(\"Decision: rollout strategy\"), \"primary\"). The values arrive with that message as form: {<formName>: {<fieldName>: value}}; no context needed. Reviewers can always annotate and message, so add a notes field only when it belongs with the decision.","- OptionCards(\"pick\", \"single\", [OptionCard(\"a\", \"Option A\", \"why\", Icon(\"zap\")), OptionCard(\"b\", \"Option B\")], {required: true}, \"a\") — the last argument pre-selects.","- rules: {required: true, minLength: 10, ...}; the renderer shows the messages."]},{"name":"Buttons","notes":["- @ToAssistant(message, context?) queues a message to the agent; @OpenUrl(url) opens a link. A Button with no action sends its label.","- Use buttons for follow-ups the reviewer can pick in one click: \"Go with option B\", \"Split this into two PRs\"."]}],"components":[{"name":"Card","group":"Layout","signature":"Card(children: (TextContent | MarkDownRenderer | CardHeader | Callout | CodeBlock | Image | Separator | HorizontalBarChart | PieChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps | InlineHeader | EntityList | EditableTable | OverviewCardBlock | Tabs | Stack | Architecture | Diff | FileTree | Progress | Avatar | AvatarGroup | Tooltip | HoverCard | Breadcrumb | Kbd | Skeleton | Calendar | Timeline)[], variant?: \"card\" | \"sunk\" | \"clear\", direction?: \"row\" | \"column\", gap?: \"none\" | \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"2xl\", align?: \"start\" | \"center\" | \"end\" | \"stretch\" | \"baseline\", justify?: \"start\" | \"center\" | \"end\" | \"between\" | \"around\" | \"evenly\", wrap?: boolean)","description":"Styled container. variant: \"card\" (default, elevated) | \"sunk\" (recessed) | \"clear\" (transparent). Always full width. Accepts all Stack flex params (default: direction \"column\"). Cards flex to share space in row/wrap layouts.","tier":"core","pack":"core","examples":[]},{"name":"CardHeader","group":"Layout","signature":"CardHeader(title?: string, subtitle?: string)","description":"Header with optional title and subtitle","tier":"core","pack":"core","examples":[]},{"name":"TextContent","group":"Content","signature":"TextContent(text: string, size?: \"small\" | \"default\" | \"large\" | \"small-heavy\" | \"large-heavy\")","description":"Text block. Supports markdown. Optional size: \"small\" | \"default\" | \"large\" | \"small-heavy\" | \"large-heavy\".","tier":"core","pack":"core","examples":[]},{"name":"MarkDownRenderer","group":"Content","signature":"MarkDownRenderer(textMarkdown: string, variant?: \"clear\" | \"card\" | \"sunk\")","description":"Renders markdown text with optional container variant","tier":"core","pack":"core","examples":[]},{"name":"Callout","group":"Content","signature":"Callout(variant: \"info\" | \"warning\" | \"error\" | \"success\" | \"neutral\", title: string, description: string, visible?: $binding<boolean>)","description":"Callout banner. Optional visible is a reactive $boolean — auto-dismisses after 3s by setting $visible to false.","tier":"core","pack":"core","examples":[]},{"name":"Image","group":"Content","signature":"Image(alt: string, src?: string)","description":"Image with alt text and optional URL","tier":"core","pack":"core","examples":[]},{"name":"CodeBlock","group":"Content","signature":"CodeBlock(language: string, codeString: string)","description":"Syntax-highlighted code block","tier":"core","pack":"core","examples":[]},{"name":"InlineHeader","group":"Layout","signature":"InlineHeader(heading: string, description?: string)","description":"Compact section heading with an optional one-line description, for use inside cards.","tier":"core","pack":"core","examples":[]},{"name":"Table","group":"Data","signature":"Table(columns: Col[])","description":"Data table — column-oriented. Each Col holds its own data array.","tier":"core","pack":"core","examples":[]},{"name":"Col","group":"Data","signature":"Col(label: string, data: any, type?: \"string\" | \"number\" | \"action\")","description":"Column definition — holds label + data array","tier":"core","pack":"core","examples":[]},{"name":"EditableTable","group":"Data","signature":"EditableTable(name?: string, columns?: {type: \"text\" | \"number\" | \"date-single\" | \"select\" | \"url\", key?: string, header?: string, width?: number, options?: {value: string, label: string}[]}[], data?: {id: string, values: (string | number)[]}[])","description":"Spreadsheet-like table whose cells the user can edit inline (text, number, url, date, select columns); edits are saved back as a form field","tier":"extended","pack":"core","examples":[]},{"name":"BarChart","group":"Charts","signature":"BarChart(labels: string[], series: Series[], variant?: \"grouped\" | \"stacked\", xLabel?: string, yLabel?: string, height?: number)","description":"Vertical bars; use for comparing values across categories with one or more series","tier":"core","pack":"core","examples":[]},{"name":"LineChart","group":"Charts","signature":"LineChart(labels: string[], series: Series[], variant?: \"linear\" | \"natural\" | \"step\", xLabel?: string, yLabel?: string, height?: number)","description":"Lines over categories; use for trends and continuous data over time","tier":"core","pack":"core","examples":[]},{"name":"AreaChart","group":"Charts","signature":"AreaChart(labels: string[], series: Series[], variant?: \"linear\" | \"natural\" | \"step\", xLabel?: string, yLabel?: string, height?: number)","description":"Filled area under lines; use for cumulative totals or volume trends over time","tier":"extended","pack":"core","examples":[]},{"name":"HorizontalBarChart","group":"Charts","signature":"HorizontalBarChart(labels: string[], series: Series[], variant?: \"grouped\" | \"stacked\", xLabel?: string, yLabel?: string)","description":"Horizontal bars; prefer when category labels are long or for ranked lists","tier":"extended","pack":"core","examples":[]},{"name":"Series","group":"Charts","signature":"Series(category: string, values: number[])","description":"One data series","tier":"core","pack":"core","examples":[]},{"name":"PieChart","group":"Charts","signature":"PieChart(labels: string[], values: number[], variant?: \"pie\" | \"donut\", appearance?: \"circular\" | \"semiCircular\")","description":"Circular slices; use plucked arrays: PieChart(data.categories, data.values)","tier":"core","pack":"core","examples":[]},{"name":"ScatterChart","group":"Charts","signature":"ScatterChart(datasets: ScatterSeries[], xLabel?: string, yLabel?: string)","description":"X/Y scatter plot; use for correlations, distributions, and clustering","tier":"extended","pack":"core","examples":[]},{"name":"ScatterSeries","group":"Charts","signature":"ScatterSeries(name: string, points: Point[])","description":"Named dataset","tier":"extended","pack":"core","examples":[]},{"name":"Point","group":"Charts","signature":"Point(x: number, y: number, z?: number)","description":"Data point with numeric coordinates","tier":"extended","pack":"core","examples":[]},{"name":"Form","group":"Forms","signature":"Form(name: string, buttons: Buttons, fields?: FormControl[])","description":"Form container with fields and explicit action buttons","tier":"core","pack":"core","examples":[]},{"name":"FormControl","group":"Forms","signature":"FormControl(label: string, input: Input | TextArea | Select | Slider | CheckBoxGroup | RadioGroup | Chips | OptionCards, hint?: string)","description":"Field with label, input component, and optional hint text","tier":"core","pack":"core","examples":[]},{"name":"Label","group":"Forms","signature":"Label(text: string)","description":"Text label","tier":"extended","pack":"core","examples":[]},{"name":"Input","group":"Forms","signature":"Input(name: string, placeholder?: string, type?: \"text\" | \"email\" | \"password\" | \"number\" | \"url\", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)","description":"","tier":"core","pack":"core","examples":[]},{"name":"TextArea","group":"Forms","signature":"TextArea(name: string, placeholder?: string, rows?: number, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)","description":"","tier":"core","pack":"core","examples":[]},{"name":"Select","group":"Forms","signature":"Select(name: string, items: SelectItem[], placeholder?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>, size?: \"small\" | \"medium\" | \"large\")","description":"","tier":"core","pack":"core","examples":[]},{"name":"SelectItem","group":"Forms","signature":"SelectItem(value: string, label: string)","description":"Option for Select","tier":"core","pack":"core","examples":[]},{"name":"Slider","group":"Forms","signature":"Slider(name: string, variant: \"continuous\" | \"discrete\", min: number, max: number, step?: number, defaultValue?: number[], label?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<number[]>)","description":"Numeric slider input; supports continuous and discrete (stepped) variants","tier":"extended","pack":"core","examples":[]},{"name":"CheckBoxGroup","group":"Forms","signature":"CheckBoxGroup(name: string, items: CheckBoxItem[], rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<Record<string, boolean>>)","description":"","tier":"extended","pack":"core","examples":[]},{"name":"CheckBoxItem","group":"Forms","signature":"CheckBoxItem(label: string, description: string, name: string, defaultChecked?: boolean)","description":"","tier":"extended","pack":"core","examples":[]},{"name":"RadioGroup","group":"Forms","signature":"RadioGroup(name: string, items: RadioItem[], defaultValue?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, value?: $binding<string>)","description":"","tier":"core","pack":"core","examples":[]},{"name":"RadioItem","group":"Forms","signature":"RadioItem(label: string, description: string, value: string)","description":"","tier":"core","pack":"core","examples":[]},{"name":"SwitchGroup","group":"Forms","signature":"SwitchGroup(name: string, items: SwitchItem[], variant?: \"clear\" | \"card\" | \"sunk\", value?: $binding<Record<string, boolean>>)","description":"Group of switch toggles","tier":"extended","pack":"core","examples":[]},{"name":"SwitchItem","group":"Forms","signature":"SwitchItem(label?: string, description?: string, name: string, defaultChecked?: boolean)","description":"Individual switch toggle","tier":"extended","pack":"core","examples":[]},{"name":"ChipItem","group":"Forms","signature":"ChipItem(value: string, label: string, icon?: Icon, disabled?: boolean)","description":"A single selectable chip inside a Chips group, with a value, label and optional icon.","tier":"extended","pack":"core","examples":[]},{"name":"Chips","group":"Forms","signature":"Chips(name: string, type?: \"single\" | \"multiple\", items?: ChipItem[], rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, defaultValue?: string | string[])","description":"A form field of compact selectable chips for choosing one or many short options; the selection is stored under `name`.","tier":"extended","pack":"core","examples":[]},{"name":"OptionCard","group":"Forms","signature":"OptionCard(value: string, title: string, subtitle?: string, topContent?: Icon | Image, disabled?: boolean)","description":"A single selectable card inside an OptionCards group, with a value, title, optional subtitle and an optional Icon or Image on top.","tier":"core","pack":"core","examples":[]},{"name":"OptionCards","group":"Forms","signature":"OptionCards(name: string, type?: \"single\" | \"multiple\", items?: OptionCard[], rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}, defaultValue?: string | string[])","description":"A form field of selectable cards (title, optional subtitle, optional icon or image) laid out in a responsive grid for choosing one or many options; the selection is stored under `name`.","tier":"core","pack":"core","examples":[]},{"name":"Button","group":"Buttons","signature":"Button(label: string, action?: ActionExpression, variant?: \"primary\" | \"secondary\" | \"tertiary\", type?: \"normal\" | \"destructive\", size?: \"extra-small\" | \"small\" | \"medium\" | \"large\")","description":"Clickable button","tier":"core","pack":"core","examples":[]},{"name":"Buttons","group":"Buttons","signature":"Buttons(buttons: Button[], direction?: \"row\" | \"column\")","description":"Group of Button components. direction: \"row\" (default) | \"column\".","tier":"core","pack":"core","examples":[]},{"name":"Stack","group":"Layout","signature":"Stack(children: any[], direction?: \"row\" | \"column\", gap?: \"none\" | \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"2xl\", align?: \"start\" | \"center\" | \"end\" | \"stretch\" | \"baseline\", justify?: \"start\" | \"center\" | \"end\" | \"between\" | \"around\" | \"evenly\", wrap?: boolean)","description":"Flex container. direction: \"row\"|\"column\" (default \"column\"). gap: \"none\"|\"xs\"|\"s\"|\"m\"|\"l\"|\"xl\"|\"2xl\" (default \"m\"). align: \"start\"|\"center\"|\"end\"|\"stretch\"|\"baseline\". justify: \"start\"|\"center\"|\"end\"|\"between\"|\"around\"|\"evenly\".","tier":"core","pack":"core","examples":[]},{"name":"Tabs","group":"Layout","signature":"Tabs(items: TabItem[])","description":"Tabbed container","tier":"core","pack":"core","examples":[]},{"name":"TabItem","group":"Layout","signature":"TabItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | CodeBlock | Image | Separator | HorizontalBarChart | PieChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps | InlineHeader | EntityList | EditableTable | OverviewCardBlock | Architecture | Diff | FileTree | Progress | Avatar | AvatarGroup | Tooltip | HoverCard | Breadcrumb | Kbd | Skeleton | Calendar | Timeline)[])","description":"value is unique id, trigger is tab label, content is array of components","tier":"core","pack":"core","examples":[]},{"name":"Accordion","group":"Layout","signature":"Accordion(items: AccordionItem[])","description":"Collapsible sections","tier":"core","pack":"core","examples":[]},{"name":"AccordionItem","group":"Layout","signature":"AccordionItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Callout | CodeBlock | Image | Separator | HorizontalBarChart | PieChart | ScatterChart | AreaChart | BarChart | LineChart | Table | TagBlock | Form | Buttons | Steps | InlineHeader | EntityList | EditableTable | OverviewCardBlock | Architecture | Diff | FileTree | Progress | Avatar | AvatarGroup | Tooltip | HoverCard | Breadcrumb | Kbd | Skeleton | Calendar | Timeline)[])","description":"value is unique id, trigger is section title","tier":"core","pack":"core","examples":[]},{"name":"Steps","group":"Layout","signature":"Steps(items: StepsItem[])","description":"Step-by-step guide","tier":"core","pack":"core","examples":[]},{"name":"StepsItem","group":"Layout","signature":"StepsItem(title: string, details: string)","description":"title and details text for one step","tier":"core","pack":"core","examples":[]},{"name":"Separator","group":"Layout","signature":"Separator(orientation?: \"horizontal\" | \"vertical\", decorative?: boolean)","description":"Visual divider between content sections","tier":"core","pack":"core","examples":[]},{"name":"TagBlock","group":"Data","signature":"TagBlock(tags: string[], size?: \"sm\" | \"md\" | \"lg\")","description":"tags is an array of strings; optional size sm | md | lg","tier":"extended","pack":"core","examples":[]},{"name":"Tag","group":"Data","signature":"Tag(text: string, icon?: Icon, size?: \"sm\" | \"md\" | \"lg\", variant?: \"neutral\" | \"info\" | \"success\" | \"warning\" | \"danger\")","description":"Styled tag/badge with optional Icon and variant","tier":"core","pack":"core","examples":[]},{"name":"Icon","group":"Data","signature":"Icon(name: string, category?: string)","description":"A lucide icon by kebab-case name (e.g. 'circle-check'). Optional category picks a topical fallback when the name doesn't resolve.","tier":"core","pack":"core","examples":[]},{"name":"EntityList","group":"Data","signature":"EntityList(rows?: {left: string, right: string, rightVariant?: \"text\" | \"number\"}[], size?: \"small\" | \"default\", header?: {left: string, right: string, rightVariant?: \"text\" | \"number\"}, footer?: {left: string, right: string, rightVariant?: \"text\" | \"number\"})","description":"Two-column key/value rows (left label, right value). size 'default' supports optional header and footer rows; rightVariant 'number' uses tabular numbers.","tier":"core","pack":"core","examples":[]},{"name":"Text","group":"Data","signature":"Text(variant?: \"text\" | \"number\", value: string, subtext?: string, subtextVariant?: \"text\" | \"number\" | \"metric\", size?: \"xs\" | \"sm\" | \"md\" | \"lg\")","description":"Plain text line with optional subtext. variant 'number' uses tabular number styling; subtextVariant 'metric' colors a leading +/- subtext green/red.","tier":"core","pack":"core","examples":[]},{"name":"BoldText","group":"Data","signature":"BoldText(variant?: \"text\" | \"number\", value: string, subtext?: string, subtextVariant?: \"text\" | \"number\" | \"metric\", size?: \"xs\" | \"sm\" | \"md\" | \"lg\")","description":"Emphasized (bold) text line with optional subtext. variant 'number' uses tabular number styling; subtextVariant 'metric' colors a leading +/- subtext green/red.","tier":"extended","pack":"core","examples":[]},{"name":"IconText","group":"Data","signature":"IconText(icon: Icon, iconVariant?: \"neutral\" | \"info\" | \"success\" | \"warning\" | \"danger\" | \"inverted\" | \"filled\" | \"soft\", iconSize?: \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"sm\" | \"md\" | \"lg\", title: string, subtitle?: string, bold?: boolean, layout?: \"horizontal\" | \"vertical\")","description":"An icon badge with a title and optional subtitle, laid out horizontally or vertically. iconVariant sets the badge color.","tier":"extended","pack":"core","examples":[]},{"name":"MetricIndicatorInline","group":"Data","signature":"MetricIndicatorInline(value: string, subtext?: string, trend?: {direction: \"up\" | \"down\", value: number})","description":"Headline metric value with an optional +/- percentage trend and subtext, all on one line.","tier":"core","pack":"core","examples":[]},{"name":"OverviewCardItem","group":"Data","signature":"OverviewCardItem(id?: string, top: IconText | Text, bottom?: MetricIndicatorInline)","description":"One overview card: a heading slot at the top (IconText, ImageText or Text) and an optional MetricIndicatorInline at the bottom.","tier":"core","pack":"core","examples":[]},{"name":"OverviewCardBlock","group":"Data","signature":"OverviewCardBlock(items: OverviewCardItem[], layout?: \"grid\" | \"carousel\", responsive?: boolean, action?: ActionExpression, gap?: number | string)","description":"A grid or horizontal carousel of compact overview cards, each with a heading (icon/image/text) on top and an inline metric below; optionally clickable with a shared action.","tier":"core","pack":"core","examples":[]},{"name":"Architecture","group":"Content","signature":"Architecture(nodes: Node[], edges: Edge[], groups?: Group[], direction?: \"auto\" | \"right\" | \"down\" | \"lanes\")","description":"System diagram laid out automatically: write no coordinates. Every Node, Edge and Group is its own statement and click target. direction auto (default) runs right when that fits the page legibly, else down; lanes makes each top-level Group a column.","tier":"core","pack":"core","examples":["platformMap = Architecture([browser, edge, api, sessions, cache], [toEdge, toApi, readSessions, readCache], [vpc])\nbrowser = Node(\"Browser\", \"external\")\nedge = Node(\"Edge worker\", \"cloud\", \"Cloudflare\")\napi = Node(\"API\", \"backend\", \"Node :8080\")\nsessions = Node(\"Sessions\", \"database\", \"Postgres\", \"new\")\ncache = Node(\"Redis\", \"database\", \"read-through\")\ntoEdge = Edge(browser, edge, \"HTTPS\", \"emphasis\")\ntoApi = Edge(edge, api)\nreadSessions = Edge(api, sessions, \"SQL\")\nreadCache = Edge(api, cache, \"cache\", \"dashed\")\nvpc = Group(\"Platform VPC\", [api, sessions, cache])","ownership = Architecture([web, ordersApi, ledger, ordersDb, billingJob], [placeOrder, writeOrder, readOrders, postLedger], [clients, ordersRepo, billingRepo], \"lanes\")\nweb = Node(\"Web app\", \"frontend\")\nordersApi = Node(\"Orders API\", \"backend\", \"Node :8080\")\nordersDb = Node(\"orders table\", \"database\", \"Postgres\", null, \"success\")\nbillingJob = Node(\"Nightly billing\", \"backend\", \"cron 02:00\")\nledger = Node(\"Ledger\", \"database\", \"append-only\", null, \"info\")\nplaceOrder = Edge(web, ordersApi, \"POST /orders\")\nwriteOrder = Edge(ordersApi, ordersDb, \"insert\")\nreadOrders = Edge(billingJob, ordersDb, \"read unbilled\", null, \"danger\")\npostLedger = Edge(billingJob, ledger, \"post\")\nclients = Group(\"CLIENTS\", [web], \"plain\")\nordersRepo = Group(\"orders-service\", [ordersApi, ordersDb])\nbillingRepo = Group(\"billing\", [billingJob, ledger])"]},{"name":"Node","group":"Content","signature":"Node(label: string, kind?: \"frontend\" | \"backend\" | \"database\" | \"messagebus\" | \"cloud\" | \"security\" | \"external\", detail?: string, tag?: string, tone?: \"info\" | \"success\" | \"warning\" | \"danger\" | \"strong\", row?: number)","description":"A box in an Architecture. kind sets icon and color (default backend); detail is monospace, up to 2 lines (\\n breaks); tag is a small chip such as \"new\"; tone tints it (danger = risk, strong = where it ends); row pins it to a row (1, 2, ...) in lanes.","tier":"core","pack":"core","examples":[]},{"name":"Edge","group":"Content","signature":"Edge(from: Node, to: Node, label?: string, style?: \"solid\" | \"dashed\" | \"emphasis\" | \"security\", tone?: \"info\" | \"success\" | \"warning\" | \"danger\")","description":"An arrow between two Node statements (pass their names, not strings). style: dashed for async, emphasis for the main path, security for auth or trust flows. tone colors it, e.g. danger for a risky write, success for a read.","tier":"core","pack":"core","examples":[]},{"name":"Group","group":"Content","signature":"Group(label: string, members: Node[], kind?: \"region\" | \"security\" | \"plain\")","description":"A boundary around Node statements (a VPC, a cluster, a trust zone); members still sit where their edges put them. A group whose members are a subset of another's is drawn inside it; kind security draws it red, plain draws only its name.","tier":"core","pack":"core","examples":[]},{"name":"Diff","group":"Content","signature":"Diff(patch: string, title?: string)","description":"Unified diff (git diff output, one or more files) with line numbers. patch is a raw multi-line string. Clicked lines reach the agent as file:+line.","tier":"core","pack":"core","examples":["retryPatch = Diff(\"diff --git a/src/retry.ts b/src/retry.ts\n--- a/src/retry.ts\n+++ b/src/retry.ts\n@@ -10,2 +10,3 @@\n- for (let i = 0; i < 3; i++) {\n+ for (let i = 0; i < MAX_ATTEMPTS; i++) {\n+ if (i > 0) await sleep(backoff(i));\")"]},{"name":"FileTree","group":"Data","signature":"FileTree(entries: string[])","description":"File tree, one path per entry, optionally prefixed with a git status code (A new, M modified, D deleted, R old -> new) and suffixed with \" # note\". Folders are inferred. Clicked files and folders reach the agent by path.","tier":"core","pack":"core","examples":["changedFiles = FileTree([\"M src/session/store.ts # read-through to Postgres\", \"A src/session/pg-store.ts\", \"A migrations/0042_sessions.sql # table + expiry index\", \"R src/session/redis.ts -> src/session/redis-cache.ts\", \"D src/session/legacy.ts\", \"M src/config.ts # SESSIONS_PG flag\"])"]},{"name":"Progress","group":"Data","signature":"Progress(value: number, label?: string, max?: number)","description":"Progress bar. value counts toward max (default 100); label names what is progressing. Shows a percentage.","tier":"extended","pack":"@austere-axi/pack-shadcn","examples":["migration = Progress(64, \"Rows migrated\")"]},{"name":"Avatar","group":"Data","signature":"Avatar(name: string, src?: string, size?: \"md\" | \"lg\")","description":"Round avatar for a person. Shows the initials of name; src is an optional https image URL.","tier":"extended","pack":"@austere-axi/pack-shadcn","examples":["owner = Avatar(\"Ada Lovelace\")"]},{"name":"AvatarGroup","group":"Data","signature":"AvatarGroup(avatars: Avatar[], max?: number)","description":"Overlapping Avatars, for reviewers or owners. max (default 4) shows the rest as +N.","tier":"extended","pack":"@austere-axi/pack-shadcn","examples":["team = AvatarGroup([ada, grace, linus], 2)\nada = Avatar(\"Ada Lovelace\")\ngrace = Avatar(\"Grace Hopper\")\nlinus = Avatar(\"Linus Torvalds\")"]},{"name":"Tooltip","group":"Content","signature":"Tooltip(text: string, tip: string)","description":"Inline text with a short hint on hover or focus (a term and its definition). Keep tip to one line.","tier":"extended","pack":"@austere-axi/pack-shadcn","examples":["term = Tooltip(\"idempotent\", \"Safe to run twice with the same result.\")"]},{"name":"HoverCard","group":"Content","signature":"HoverCard(text: string, title: string, body?: string)","description":"Inline text that shows a small card (title and a line or two of body) on hover or focus, e.g. a person or a service.","tier":"extended","pack":"@austere-axi/pack-shadcn","examples":["svc = HoverCard(\"billing-api\", \"billing-api\", \"Owns invoices and refunds. On call: payments team.\")"]},{"name":"Breadcrumb","group":"Content","signature":"Breadcrumb(items: BreadcrumbItem[])","description":"Path trail such as Repo / Package / File, from BreadcrumbItems. Each item is a click target.","tier":"extended","pack":"@austere-axi/pack-shadcn","examples":["trail = Breadcrumb([repo, pkg, file])\nrepo = BreadcrumbItem(\"austere-axi\")\npkg = BreadcrumbItem(\"packs\")\nfile = BreadcrumbItem(\"shadcn\")"]},{"name":"BreadcrumbItem","group":"Content","signature":"BreadcrumbItem(label: string, href?: string)","description":"One step of a Breadcrumb. href is optional; the last item is the current page.","tier":"extended","pack":"@austere-axi/pack-shadcn","examples":[]},{"name":"Kbd","group":"Content","signature":"Kbd(keys: string)","description":"Keyboard shortcut. keys joins keys with \"+\", e.g. \"Ctrl+K\"; each key is drawn as a key cap.","tier":"extended","pack":"@austere-axi/pack-shadcn","examples":["shortcut = Kbd(\"Ctrl+Shift+P\")"]},{"name":"Skeleton","group":"Content","signature":"Skeleton(lines?: number, shape?: \"lines\" | \"avatar\")","description":"Grey placeholder block for content not yet written or loaded (default 3 lines). shape avatar adds a round head.","tier":"extended","pack":"@austere-axi/pack-shadcn","examples":["pending = Skeleton(3, \"avatar\")"]},{"name":"Calendar","group":"Data","signature":"Calendar(month: string, highlights?: string[])","description":"Read-only month grid (not a date picker). month is \"YYYY-MM\"; highlights lists \"YYYY-MM-DD\" or \"YYYY-MM-DD label\" entries to mark, e.g. a freeze or a release. Marked days are click targets.","tier":"extended","pack":"@austere-axi/pack-shadcn","examples":["window = Calendar(\"2026-11\", [\"2026-11-04 Code freeze\", \"2026-11-12 Release\", \"2026-11-13\"])"]},{"name":"Timeline","group":"Content","signature":"Timeline(items: TimelineItem[])","description":"Vertical history or schedule of TimelineItems, oldest first. Each item is a click target.","tier":"extended","pack":"@austere-axi/pack-shadcn","examples":["history = Timeline([found, fixed, rollout])\nfound = TimelineItem(\"Bug found\", \"Oct 28\", \"Retries double-charge on timeout.\")\nfixed = TimelineItem(\"Fix merged\", \"Oct 29\", \"Idempotency key added.\", \"current\")\nrollout = TimelineItem(\"Rollout\", \"Nov 3\", \"\", \"upcoming\")"]},{"name":"TimelineItem","group":"Content","signature":"TimelineItem(title: string, date?: string, detail?: string, state?: \"done\" | \"current\" | \"upcoming\")","description":"One event in a Timeline. state: done (default), current or upcoming.","tier":"extended","pack":"@austere-axi/pack-shadcn","examples":[]}]}
@@ -1 +1 @@
1
- :root{--bg: #0b0b0d;--bg-2: #111114;--surface: #17171b;--surface-2: #1e1e23;--line: rgba(255, 255, 255, .08);--line-2: rgba(255, 255, 255, .14);--text: #ececef;--muted: #9d9da6;--faint: #6c6c76;--accent: #8fb0ff;--accent-ink: #0d1220;--green: #74d3a0;--amber: #f2c46d;--red: #f08a8a;--panel-w: 380px;--bar-h: 48px;--dock-h: 52px;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;height:100%;background:var(--bg);color:var(--text);font:14px/1.45 ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Inter,sans-serif;-webkit-font-smoothing:antialiased;overflow:hidden}button{font:inherit;color:inherit}code{font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace;font-size:.92em}.app{display:flex;flex-direction:column;height:100dvh}.bar{flex:none;height:var(--bar-h);display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;padding:0 12px 0 16px;border-bottom:1px solid var(--line);background:var(--bg-2)}.bar-title{display:flex;align-items:baseline;gap:10px;min-width:0}.title{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file{color:var(--faint);font:12px ui-monospace,SF Mono,Menlo,monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bar-mid{display:flex;align-items:center;gap:8px}.bar-right{display:flex;justify-content:flex-end;align-items:center;gap:8px;min-width:0}.seg{display:inline-flex;padding:2px;border-radius:8px;background:var(--surface);border:1px solid var(--line)}.seg button{border:0;background:transparent;padding:5px 12px;border-radius:6px;color:var(--muted);font-size:13px;font-weight:500;cursor:pointer}.seg button.on{background:var(--surface-2);color:var(--text);box-shadow:inset 0 0 0 1px var(--line-2)}.seg button[data-mode=annotate].on{color:var(--accent)}.changes{border:1px solid rgba(242,196,109,.35);background:#f2c46d14;color:var(--amber);border-radius:999px;padding:4px 10px;font-size:12px;font-weight:600;cursor:pointer}.changes[aria-pressed=true]{border-color:var(--amber);background:var(--amber);color:#1a1408}.presence{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;color:var(--muted);white-space:nowrap}.presence:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--faint)}.presence.listening{color:var(--text)}.presence.listening:before{background:var(--green);box-shadow:0 0 0 3px #74d3a02e}.presence.working:before{background:var(--amber);animation:blink 1.2s infinite}.presence.ended:before{background:var(--red)}@keyframes blink{50%{opacity:.35}}.viewers{display:inline-flex;align-items:center}.viewers[hidden]{display:none}.viewer{position:relative;width:24px;height:24px;margin-left:-5px;border:2px solid var(--bg);border-radius:50%;background:var(--viewer);color:#fff;font:600 11px/20px system-ui,sans-serif;text-align:center;padding:0;cursor:pointer}.viewer:first-child{margin-left:0}.viewer:disabled{cursor:default}.viewer.self{cursor:default;box-shadow:0 0 0 1px var(--text);margin-right:6px}.viewer.away{opacity:.45}.viewer.writing:after{content:"";position:absolute;right:-3px;bottom:-3px;width:9px;height:9px;border:2px solid var(--bg);border-radius:50%;background:var(--amber);animation:blink 1.2s infinite}.icon-btn{border:1px solid transparent;background:transparent;color:var(--muted);width:32px;height:32px;border-radius:8px;cursor:pointer;font-size:18px;line-height:1}.icon-btn:hover{background:var(--surface);color:var(--text)}.menu{position:relative}.menu-pop{position:absolute;right:0;top:38px;z-index:20;min-width:220px;padding:6px;border-radius:10px;background:var(--surface);border:1px solid var(--line-2);box-shadow:0 16px 40px #00000080;display:grid}.menu-pop[hidden]{display:none}.menu-pop button,.menu-pop a{text-align:left;border:0;background:transparent;padding:8px 10px;border-radius:6px;color:var(--text);text-decoration:none;font-size:13px;cursor:pointer}.menu-pop button:hover,.menu-pop a:hover{background:var(--surface-2)}.menu-pop .danger{color:var(--red)}.menu-pop button:disabled{color:var(--muted);cursor:progress}.menu-note{max-width:300px;padding:8px 10px;color:var(--muted);font-size:12px;line-height:1.45;cursor:text}.menu-note code{display:block;margin:4px 0;font-size:11px;white-space:nowrap;color:var(--text);user-select:all}.banner{flex:none;display:flex;align-items:center;justify-content:center;gap:12px;padding:8px 16px;background:#2a2414;color:#f3dfae;border-bottom:1px solid rgba(242,196,109,.25);font-size:13px}.banner[hidden]{display:none}.notice{flex:none;padding:6px 16px;background:#1c1a14;color:#d9c79a;border-bottom:1px solid rgba(242,196,109,.18);font-size:12.5px;text-align:center;overflow-wrap:anywhere}.notice[hidden]{display:none}@media(max-width:860px){.notice{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}}.main{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) var(--panel-w)}.stage{min-width:0;min-height:0;position:relative;background:#0a0a0a}.frame{display:block;width:100%;height:100%;border:0;background:#0a0a0a}.scrim{display:none}html.exploring .main{grid-template-columns:minmax(0,1fr);padding-bottom:0}html.exploring .panel,html.exploring .scrim,html.exploring .dock{display:none}.panel{min-height:0;display:flex;flex-direction:column;border-left:1px solid var(--line);background:var(--bg-2)}.panel-head{flex:none;display:flex;align-items:center;justify-content:space-between;padding:12px 16px 8px;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--faint)}.sheet-close{display:none}.log{flex:1;min-height:0;overflow-y:auto;padding:4px 12px 16px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}.empty{margin:8px 4px;padding:14px;border:1px dashed var(--line-2);border-radius:12px;color:var(--muted);font-size:13px}.empty p{margin:0 0 6px}.empty strong{color:var(--text);font-weight:600}.msg{border-radius:12px;padding:10px 12px;border:1px solid var(--line)}.msg .who{font-size:11.5px;color:var(--faint);margin-bottom:6px}.msg.user{background:var(--surface);margin-left:18px}.msg.agent{background:#8fb0ff0f;border-color:#8fb0ff2e;margin-right:18px}.md p{margin:0 0 6px}.md p:last-child{margin-bottom:0}.md ul,.md ol{margin:4px 0 6px;padding-left:20px}.md pre{margin:6px 0;padding:8px 10px;border-radius:8px;background:#0d0d10;overflow-x:auto}.md code{background:#ffffff0f;padding:1px 4px;border-radius:4px}.md pre code{background:none;padding:0}.md a{color:var(--accent)}.item+.item{margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}.anchor{display:inline-flex;align-items:center;gap:6px;max-width:100%;border:0;background:transparent;padding:0;cursor:pointer;text-align:left}.anchor-icon{color:var(--accent);font-size:12px}.anchor-text{font:500 12.5px ui-monospace,SF Mono,Menlo,monospace;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kind-action .anchor-text{font-family:inherit}.anchor-sub{font-size:11px;color:var(--faint)}.anchor:hover .anchor-text{color:var(--accent)}.item blockquote{margin:6px 0 0;padding:2px 0 2px 9px;border-left:2px solid var(--line-2);color:var(--muted);font-size:12.5px;overflow-wrap:anywhere}.note{margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere}textarea.edit{width:100%;margin-top:6px;padding:7px 9px;border-radius:8px;border:1px solid rgba(143,176,255,.5);background:#0f0f12;color:var(--text);font:inherit;resize:vertical}.receipt{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin-top:10px;font-size:11px;color:var(--faint)}.receipt span:before{content:"\25cb "}.receipt span.on{color:var(--green)}.receipt span.on:before{content:"\25cf "}.receipt em{font-style:normal;color:var(--faint);flex-basis:100%}.queued{border:1px dashed rgba(143,176,255,.4);border-radius:12px;padding:10px 12px;background:#8fb0ff08}.queued-head{font-size:11.5px;font-weight:600;color:var(--accent);margin-bottom:8px}.q-actions{display:flex;gap:6px;margin-top:6px}.issues{border:1px solid rgba(240,138,138,.3);background:#f060600f;border-radius:12px;padding:10px 12px}.issues-head{font-size:11.5px;font-weight:600;color:var(--red);margin-bottom:6px}.issue{display:flex;gap:8px;align-items:flex-start;justify-content:space-between;font-size:12.5px;color:#f0caca}.issue+.issue{margin-top:6px}.issue-text{overflow-wrap:anywhere}.load-earlier{align-self:center;margin:0 auto 8px}.ended-note{text-align:center;font-size:12px;color:var(--faint);padding:6px}.btn{border:1px solid var(--line-2);background:var(--surface-2);color:var(--text);border-radius:8px;padding:7px 12px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}.btn:disabled{opacity:.45;cursor:default}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.btn.ghost{background:transparent}.btn.tiny{padding:3px 8px;font-size:11.5px;font-weight:500;border-radius:6px}.composer{flex:none;padding:10px 12px 12px;border-top:1px solid var(--line);background:var(--bg-2)}.composer textarea{width:100%;min-height:44px;max-height:160px;resize:vertical;padding:9px 11px;border-radius:10px;border:1px solid var(--line-2);background:#0f0f12;color:var(--text);font:inherit;outline:none}.composer textarea:focus{border-color:#8fb0ff8c}.composer-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}.composer-hint{font-size:11px;color:var(--faint)}.composer-actions{display:flex;gap:6px}.composer-error{margin-top:8px;font-size:12px;color:var(--red)}.composer-error[hidden]{display:none}.presence.hosted:before{background:var(--accent)}.name-ask,.report-box{flex:none;display:flex;flex-direction:column;gap:6px;padding:10px 12px;border-top:1px solid var(--line);background:var(--surface);font-size:12.5px;color:var(--muted)}.name-ask[hidden],.report-box[hidden]{display:none}.name-row,.report-row{display:flex;align-items:center;gap:6px}.name-ask input,.report-box textarea{flex:1;min-width:0;padding:7px 10px;border-radius:8px;border:1px solid var(--line-2);background:#0f0f12;color:var(--text);font:inherit;font-size:13px;outline:none;resize:vertical}.name-ask input:focus,.report-box textarea:focus{border-color:#8fb0ff8c}.report-status{margin-right:auto;color:var(--red)}.hosted-foot{flex:none;display:flex;align-items:center;gap:6px;padding:7px 14px 9px;border-top:1px solid var(--line);font-size:11.5px;color:var(--faint)}.hosted-foot a,.link-btn{color:var(--muted);text-decoration:none}.hosted-foot a:hover,.link-btn:hover{color:var(--text);text-decoration:underline}.link-btn{padding:0;border:0;background:none;font:inherit;cursor:pointer}.dock{display:none}@media(max-width:860px){.bar{grid-template-columns:minmax(0,1fr) auto;padding:0 6px 0 12px}.bar-mid{order:3}.bar-right{order:4}.bar-title .file,.presence{display:none}.bar{grid-template-columns:minmax(0,1fr) auto auto}.main{grid-template-columns:1fr;padding-bottom:calc(var(--dock-h) + env(safe-area-inset-bottom))}.panel{position:fixed;left:0;right:0;bottom:0;z-index:30;height:min(78dvh,640px);border-left:0;border-top:1px solid var(--line-2);border-radius:16px 16px 0 0;box-shadow:0 -20px 50px #0000008c;transform:translateY(105%);transition:transform .22s ease-out;padding-bottom:env(safe-area-inset-bottom)}html.sheet-open .panel{transform:none}.scrim{display:block;position:fixed;inset:0;z-index:25;background:#00000080;opacity:0;pointer-events:none;transition:opacity .2s}html.sheet-open .scrim{opacity:1;pointer-events:auto}.panel-head{padding-top:14px}.sheet-close{display:inline-block}.composer-hint{display:none}.dock{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:24;height:calc(var(--dock-h) + env(safe-area-inset-bottom));padding:0 16px env(safe-area-inset-bottom);align-items:center;justify-content:center;gap:10px;border:0;border-top:1px solid var(--line-2);background:var(--bg-2);color:var(--text);font-size:13.5px;font-weight:500;cursor:pointer}.dock-grip{position:absolute;top:6px;left:50%;width:36px;height:4px;margin-left:-18px;border-radius:2px;background:var(--line-2)}.dock-presence{width:8px;height:8px;border-radius:50%;background:var(--faint)}.dock-presence.listening{background:var(--green)}.dock-presence.working{background:var(--amber)}.dock-presence.ended{background:var(--red)}.dock.pulse{animation:dockpulse .6s}@keyframes dockpulse{40%{background:#1a2338}}}.receipt.held span:before{content:""}.receipt.held .held-label{color:var(--amber);margin-right:auto}.msg.user.held{border-style:dashed;border-color:#f2c46d73}.held-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;padding:8px 12px;border:1px dashed rgba(242,196,109,.45);border-radius:12px;font-size:12px;color:var(--amber)}.held-bar span{margin-right:auto}
1
+ :root{--bg: #0b0b0d;--bg-2: #111114;--surface: #17171b;--surface-2: #1e1e23;--line: rgba(255, 255, 255, .08);--line-2: rgba(255, 255, 255, .14);--text: #ececef;--muted: #9d9da6;--faint: #6c6c76;--accent: #8fb0ff;--accent-ink: #0d1220;--green: #74d3a0;--amber: #f2c46d;--red: #f08a8a;--panel-w: 380px;--bar-h: 48px;--dock-h: 52px;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;height:100%;background:var(--bg);color:var(--text);font:14px/1.45 ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Inter,sans-serif;-webkit-font-smoothing:antialiased;overflow:hidden}button{font:inherit;color:inherit}code{font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace;font-size:.92em}.app{display:flex;flex-direction:column;height:100dvh}.bar{flex:none;height:var(--bar-h);display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;padding:0 12px 0 16px;border-bottom:1px solid var(--line);background:var(--bg-2)}.bar-title{display:flex;align-items:baseline;gap:10px;min-width:0}.title{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file{color:var(--faint);font:12px ui-monospace,SF Mono,Menlo,monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bar-mid{display:flex;align-items:center;gap:8px}.bar-right{display:flex;justify-content:flex-end;align-items:center;gap:8px;min-width:0}.seg{display:inline-flex;padding:2px;border-radius:8px;background:var(--surface);border:1px solid var(--line)}.seg button{border:0;background:transparent;padding:5px 12px;border-radius:6px;color:var(--muted);font-size:13px;font-weight:500;cursor:pointer}.seg button.on{background:var(--surface-2);color:var(--text);box-shadow:inset 0 0 0 1px var(--line-2)}.seg button[data-mode=annotate].on{color:var(--accent)}.seg button:disabled{color:var(--faint);cursor:not-allowed}.changes{border:1px solid rgba(242,196,109,.35);background:#f2c46d14;color:var(--amber);border-radius:999px;padding:4px 10px;font-size:12px;font-weight:600;cursor:pointer}.changes[aria-pressed=true]{border-color:var(--amber);background:var(--amber);color:#1a1408}.presence{flex-shrink:100;min-width:0;font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.presence:before{content:"";display:inline-block;width:7px;height:7px;margin-right:7px;vertical-align:1px;border-radius:50%;background:var(--faint)}.presence.listening{color:var(--text)}.presence.listening:before{background:var(--green);box-shadow:0 0 0 3px #74d3a02e}.presence.working:before{background:var(--amber);animation:blink 1.2s infinite}.presence.ended:before{background:var(--red)}.presence.stale:before{background:var(--amber)}.presence.attached{display:none}@keyframes blink{50%{opacity:.35}}.viewers{display:inline-flex;align-items:center}.viewers[hidden]{display:none}.viewer{position:relative;width:24px;height:24px;margin-left:-5px;border:2px solid var(--bg);border-radius:50%;background:var(--viewer);color:#fff;font:600 11px/20px system-ui,sans-serif;text-align:center;padding:0;cursor:pointer}.viewer:first-child{margin-left:0}.viewer:disabled{cursor:default}.viewer.self{cursor:default;box-shadow:0 0 0 1px var(--text);margin-right:6px}.viewer.away{opacity:.45}.viewer.writing:after{content:"";position:absolute;right:-3px;bottom:-3px;width:9px;height:9px;border:2px solid var(--bg);border-radius:50%;background:var(--amber);animation:blink 1.2s infinite}.icon-btn{border:1px solid transparent;background:transparent;color:var(--muted);width:32px;height:32px;border-radius:8px;cursor:pointer;font-size:18px;line-height:1}.icon-btn:hover{background:var(--surface);color:var(--text)}.menu{position:relative}.menu-pop{position:absolute;right:0;top:38px;z-index:20;min-width:220px;padding:6px;border-radius:10px;background:var(--surface);border:1px solid var(--line-2);box-shadow:0 16px 40px #00000080;display:grid}.menu-pop[hidden]{display:none}.menu-pop button,.menu-pop a{text-align:left;border:0;background:transparent;padding:8px 10px;border-radius:6px;color:var(--text);text-decoration:none;font-size:13px;cursor:pointer}.menu-pop button:hover,.menu-pop a:hover{background:var(--surface-2)}.menu-pop .danger{color:var(--red)}.menu-pop button:disabled{color:var(--muted);cursor:progress}.menu-note{max-width:300px;padding:8px 10px;color:var(--muted);font-size:12px;line-height:1.45;cursor:text}.menu-note code{display:block;margin:4px 0;font-size:11px;white-space:nowrap;color:var(--text);user-select:all}.attach{position:relative;display:inline-flex;align-items:center;gap:8px;min-width:0}.attach-pill{flex:none;display:inline-flex;align-items:center;gap:7px;min-width:0;max-width:280px;height:28px;padding:0 11px;border:1px solid var(--line-2);border-radius:999px;background:var(--surface);color:var(--muted);font-size:12.5px;cursor:pointer}.attach-pill:hover,.attach-pill[aria-expanded=true]{color:var(--text);border-color:#ffffff3d}.attach-pill.on{color:var(--text);border-color:#74d3a066}.attach-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.attach-short{display:none}.attach-dot{flex:none;width:7px;height:7px;border-radius:50%;background:var(--faint)}.attach-pill.on .attach-dot{background:var(--green)}.attach-pill[data-run=running] .attach-dot,.attach-pill[data-run=queued] .attach-dot,.attach-pill[data-run=waiting_for_session] .attach-dot{background:var(--amber);animation:blink 1.2s infinite}.attach-pill[data-run=failed] .attach-dot{background:var(--red)}.run-state{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--amber);white-space:nowrap}.run-state[hidden]{display:none}.run-state.failed{color:var(--red)}.run-elapsed{font-variant-numeric:tabular-nums}.attach-pop{position:absolute;right:0;top:38px;z-index:20;width:380px;max-height:calc(100dvh - var(--bar-h) - 24px);overflow:auto;padding:12px 14px 14px;border-radius:10px;background:var(--surface);border:1px solid var(--line-2);box-shadow:0 16px 40px #00000080;display:grid;gap:10px;font-size:13px}.attach-pop[hidden]{display:none}.attach-head{display:flex;align-items:center;justify-content:space-between}.attach-close{width:28px;height:28px}.attach-note,.attach-hint{margin:0;color:var(--muted);font-size:12px;line-height:1.45}.attach-state{display:flex}.attach-state button{flex:1 1 auto;padding:5px 8px}.attach-state button.on{color:var(--accent)}.attach-state button:disabled{opacity:.5;cursor:not-allowed}.attach-field{margin:0;padding:0;border:0;display:grid;gap:4px;min-width:0}.attach-field legend{padding:0 0 4px;color:var(--faint);font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.attach-radio{display:flex;align-items:baseline;gap:8px;min-height:28px;padding:4px 6px;border-radius:6px;cursor:pointer}.attach-radio:hover{background:var(--surface-2)}.attach-radio.disabled{color:var(--faint);cursor:not-allowed}.attach-radio input{margin:0;align-self:center}.attach-session small{margin-left:auto;color:var(--muted);font-size:11.5px;text-align:right}.attach-reason{color:var(--amber);font-size:12px}.attach-select,.attach-input{width:100%;min-height:30px;padding:4px 8px;border:1px solid var(--line-2);border-radius:6px;background:var(--bg-2);color:var(--text);font:inherit;font-size:13px}.attach-select:disabled,.attach-input:disabled{color:var(--muted)}.attach-warn{display:grid;gap:6px;padding:8px 10px;border:1px solid rgba(242,196,109,.35);border-radius:8px;background:#f2c46d0f;color:#f3dfae;font-size:12px;line-height:1.45;overflow-wrap:anywhere}.attach-cmd{display:flex;align-items:center;gap:8px;min-width:0}.attach-cmd code{flex:1;min-width:0;padding:4px 6px;border-radius:4px;background:var(--bg);color:var(--text);font-size:11.5px;overflow-wrap:anywhere;user-select:all}.attach-error{color:var(--red);font-size:12.5px}.attach-run-slot:empty{display:none}.attach-run{display:grid;gap:6px;padding-top:10px;border-top:1px solid var(--line)}.attach-run-head{display:flex;align-items:center;gap:6px}.attach-run-head .run-label{margin-right:auto}.attach-run.failed .run-label{color:var(--red)}.attach-run.running .run-label,.attach-run.queued .run-label,.attach-run.waiting_for_session .run-label{color:var(--amber)}.attach-log{margin:0;max-height:220px;overflow:auto;padding:8px;border-radius:6px;background:var(--bg);color:var(--muted);font:11.5px/1.5 ui-monospace,SF Mono,Menlo,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.run-mark{display:flex;align-items:baseline;justify-content:center;gap:8px;padding:2px 8px;color:var(--muted);font-size:12px;text-align:center}.run-mark time{flex:none;color:var(--faint);font-size:11px}.run-mark.failed{color:var(--red)}.run-mark.done{color:var(--green)}.banner{flex:none;display:flex;align-items:center;justify-content:center;gap:12px;padding:8px 16px;background:#2a2414;color:#f3dfae;border-bottom:1px solid rgba(242,196,109,.25);font-size:13px}.banner[hidden]{display:none}.notice{flex:none;padding:6px 16px;background:#1c1a14;color:#d9c79a;border-bottom:1px solid rgba(242,196,109,.18);font-size:12.5px;text-align:center;overflow-wrap:anywhere}.notice[hidden]{display:none}@media(max-width:860px){.notice{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}}.main{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) var(--panel-w)}.stage{min-width:0;min-height:0;position:relative;background:#0a0a0a}.frame{display:block;width:100%;height:100%;border:0;background:#0a0a0a}.scrim{display:none}html.exploring .main{grid-template-columns:minmax(0,1fr);padding-bottom:0}html.exploring .panel,html.exploring .scrim,html.exploring .dock{display:none}.panel{min-height:0;display:flex;flex-direction:column;border-left:1px solid var(--line);background:var(--bg-2)}.panel-head{flex:none;display:flex;align-items:center;justify-content:space-between;padding:12px 16px 8px;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--faint)}.sheet-close{display:none}.log{flex:1;min-height:0;overflow-y:auto;padding:4px 12px 16px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}.empty{margin:8px 4px;padding:14px;border:1px dashed var(--line-2);border-radius:12px;color:var(--muted);font-size:13px}.empty p{margin:0 0 6px}.empty strong{color:var(--text);font-weight:600}.msg{border-radius:12px;padding:10px 12px;border:1px solid var(--line)}.msg .who{font-size:11.5px;color:var(--faint);margin-bottom:6px}.msg.user{background:var(--surface);margin-left:18px}.msg.agent{background:#8fb0ff0f;border-color:#8fb0ff2e;margin-right:18px}.md p{margin:0 0 6px}.md p:last-child{margin-bottom:0}.md ul,.md ol{margin:4px 0 6px;padding-left:20px}.md pre{margin:6px 0;padding:8px 10px;border-radius:8px;background:#0d0d10;overflow-x:auto}.md code{background:#ffffff0f;padding:1px 4px;border-radius:4px}.md pre code{background:none;padding:0}.md a{color:var(--accent)}.item+.item{margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}.anchor{display:inline-flex;align-items:center;gap:6px;max-width:100%;border:0;background:transparent;padding:0;cursor:pointer;text-align:left}.anchor-icon{color:var(--accent);font-size:12px}.anchor-text{font:500 12.5px ui-monospace,SF Mono,Menlo,monospace;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kind-action .anchor-text{font-family:inherit}.anchor-sub{font-size:11px;color:var(--faint)}.anchor:hover .anchor-text{color:var(--accent)}.item blockquote{margin:6px 0 0;padding:2px 0 2px 9px;border-left:2px solid var(--line-2);color:var(--muted);font-size:12.5px;overflow-wrap:anywhere}.note{margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere}textarea.edit{width:100%;margin-top:6px;padding:7px 9px;border-radius:8px;border:1px solid rgba(143,176,255,.5);background:#0f0f12;color:var(--text);font:inherit;resize:vertical}.receipt{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin-top:10px;font-size:11px;color:var(--faint)}.receipt span:before{content:"\25cb "}.receipt span.on{color:var(--green)}.receipt span.on:before{content:"\25cf "}.receipt em{font-style:normal;color:var(--faint);flex-basis:100%}.queued{border:1px dashed rgba(143,176,255,.4);border-radius:12px;padding:10px 12px;background:#8fb0ff08}.queued-head{font-size:11.5px;font-weight:600;color:var(--accent);margin-bottom:8px}.q-actions{display:flex;gap:6px;margin-top:6px}.issues{border:1px solid rgba(240,138,138,.3);background:#f060600f;border-radius:12px;padding:10px 12px}.issues-head{font-size:11.5px;font-weight:600;color:var(--red);margin-bottom:6px}.issue{display:flex;gap:8px;align-items:flex-start;justify-content:space-between;font-size:12.5px;color:#f0caca}.issue+.issue{margin-top:6px}.issue-text{overflow-wrap:anywhere}.load-earlier{align-self:center;margin:0 auto 8px}.archived-note,.final-note{text-align:center;font-size:12px;color:var(--faint);padding:6px}.confirm{width:min(480px,calc(100vw - 32px));box-sizing:border-box;padding:18px 20px;border:1px solid var(--line-2);border-radius:12px;background:var(--surface);color:var(--text)}.confirm::backdrop{background:#0000008c}.confirm h2{margin:0 0 8px;font-size:15px;font-weight:600;overflow-wrap:anywhere}.confirm p,.confirm ul{margin:0 0 8px;color:var(--muted);font-size:13px}.confirm ul{padding-left:18px;color:var(--text);overflow-wrap:anywhere}.confirm-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:14px}.share fieldset{margin:10px 0 0;padding:0;border:0}.share legend{margin-bottom:4px;color:var(--muted);font-size:12px}.share-opt{display:flex;align-items:center;gap:8px;padding:3px 0;font-size:13px}.share input[type=text]{width:100%;box-sizing:border-box;padding:8px 10px;border-radius:8px;border:1px solid var(--line-2);background:#0f0f12;color:var(--text);font:inherit;font-size:13px}.share input[type=text]:focus{outline:none;border-color:#8fb0ff8c}.share-link{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.share .share-error{margin-top:8px;color:#ff9b9b}.btn{border:1px solid var(--line-2);background:var(--surface-2);color:var(--text);border-radius:8px;padding:7px 12px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}.btn:disabled{opacity:.45;cursor:default}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.btn.ghost{background:transparent}.btn.tiny{padding:3px 8px;font-size:11.5px;font-weight:500;border-radius:6px}.composer{flex:none;padding:10px 12px 12px;border-top:1px solid var(--line);background:var(--bg-2)}.composer textarea{width:100%;min-height:44px;max-height:160px;resize:vertical;padding:9px 11px;border-radius:10px;border:1px solid var(--line-2);background:#0f0f12;color:var(--text);font:inherit;outline:none}.composer textarea:focus{border-color:#8fb0ff8c}.composer-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}.composer-hint{font-size:11px;color:var(--faint)}.composer-actions{display:flex;gap:6px}.composer-error{margin-top:8px;font-size:12px;color:var(--red)}.composer-error[hidden]{display:none}.composer-presence{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;font-size:12px;color:var(--muted)}.composer-presence[hidden]{display:none}.composer-presence .btn{flex:none}.presence.hosted:before{background:var(--accent)}.name-ask,.report-box{flex:none;display:flex;flex-direction:column;gap:6px;padding:10px 12px;border-top:1px solid var(--line);background:var(--surface);font-size:12.5px;color:var(--muted)}.name-ask[hidden],.report-box[hidden]{display:none}.name-row,.report-row{display:flex;align-items:center;gap:6px}.name-ask input,.report-box textarea{flex:1;min-width:0;padding:7px 10px;border-radius:8px;border:1px solid var(--line-2);background:#0f0f12;color:var(--text);font:inherit;font-size:13px;outline:none;resize:vertical}.name-ask input:focus,.report-box textarea:focus{border-color:#8fb0ff8c}.report-status{margin-right:auto;color:var(--red)}.hosted-foot{flex:none;display:flex;align-items:center;gap:6px;padding:7px 14px 9px;border-top:1px solid var(--line);font-size:11.5px;color:var(--faint)}.hosted-foot a,.link-btn{color:var(--muted);text-decoration:none}.hosted-foot a:hover,.link-btn:hover{color:var(--text);text-decoration:underline}.link-btn{padding:0;border:0;background:none;font:inherit;cursor:pointer}.dock{display:none}@media(max-width:860px){.bar{grid-template-columns:minmax(0,1fr) auto;padding:0 6px 0 12px}.bar-mid{order:3}.bar-right{order:4}.bar-title .file,.presence,.run-state{display:none}.attach-pill{padding:0 9px}.attach-pill.on .attach-detail{display:none}.attach-pill.on .attach-short{display:inline}.attach-pop{position:fixed;left:8px;right:8px;top:calc(var(--bar-h) + 4px);width:auto;max-height:calc(100dvh - var(--bar-h) - 16px);z-index:40}.bar{grid-template-columns:minmax(0,1fr) auto auto}.main{grid-template-columns:1fr;padding-bottom:calc(var(--dock-h) + env(safe-area-inset-bottom))}.panel{position:fixed;left:0;right:0;bottom:0;z-index:30;height:min(78dvh,640px);border-left:0;border-top:1px solid var(--line-2);border-radius:16px 16px 0 0;box-shadow:0 -20px 50px #0000008c;transform:translateY(105%);transition:transform .22s ease-out;padding-bottom:env(safe-area-inset-bottom)}html.sheet-open .panel{transform:none}.scrim{display:block;position:fixed;inset:0;z-index:25;background:#00000080;opacity:0;pointer-events:none;transition:opacity .2s}html.sheet-open .scrim{opacity:1;pointer-events:auto}.panel-head{padding-top:14px}.sheet-close{display:inline-block}.composer-hint{display:none}.dock{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:24;height:calc(var(--dock-h) + env(safe-area-inset-bottom));padding:0 16px env(safe-area-inset-bottom);align-items:center;justify-content:center;gap:10px;border:0;border-top:1px solid var(--line-2);background:var(--bg-2);color:var(--text);font-size:13.5px;font-weight:500;cursor:pointer}.dock-grip{position:absolute;top:6px;left:50%;width:36px;height:4px;margin-left:-18px;border-radius:2px;background:var(--line-2)}.dock-text{display:flex;flex-direction:column;align-items:center;min-width:0;max-width:100%;line-height:1.3}.dock-presence{display:block;max-width:100%;font-size:11.5px;font-weight:400;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dock-presence:before{content:"";display:inline-block;width:7px;height:7px;margin-right:6px;vertical-align:1px;border-radius:50%;background:var(--faint)}.dock-presence.listening{color:var(--text)}.dock-presence.listening:before{background:var(--green)}.dock-presence.working:before,.dock-presence.stale:before{background:var(--amber)}.dock-presence.ended:before{background:var(--red)}.dock-presence.hosted:before{background:var(--accent)}.dock.pulse{animation:dockpulse .6s}@keyframes dockpulse{40%{background:#1a2338}}}.receipt.held span:before{content:""}.receipt.held .held-label{color:var(--amber);margin-right:auto}.msg.user.held{border-style:dashed;border-color:#f2c46d73}.held-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;padding:8px 12px;border:1px dashed rgba(242,196,109,.45);border-radius:12px;font-size:12px;color:var(--amber)}.held-bar span{margin-right:auto}