austere-axi 0.5.2 → 0.7.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 +96 -101
- package/dist/austere.js +126 -126
- package/dist/catalog.json +1 -1
- package/dist/chrome/chrome.js +5 -5
- package/dist/cli.mjs +837 -462
- package/dist/pack-kit.mjs +23 -23
- package/dist/packs/mermaid/catalog.json +3 -3
- package/dist/packs/mermaid/pack.js +4 -4
- package/dist/packs/shadcn/catalog.json +3 -3
- package/dist/packs/shadcn/pack.js +5 -5
- package/dist/prompt.md +1 -1
- package/package.json +17 -14
- package/skills/austere/SKILL.md +2 -0
- package/types/pack-kit.d.ts +4 -3
- package/types/pack.d.ts +27 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"format": 1,
|
|
3
3
|
"pack": "@austere-axi/pack-mermaid",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.7.0",
|
|
5
5
|
"groups": [
|
|
6
6
|
{
|
|
7
7
|
"name": "Content",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
}
|
|
30
30
|
],
|
|
31
31
|
"api": 1,
|
|
32
|
-
"integrity": "sha384-
|
|
33
|
-
"size":
|
|
32
|
+
"integrity": "sha384-c3XsGZ9+9IzZWNgBgwCk4vcJBPpQ4hhGTqFC2LO2os/Ms7jLl6Hy2Bz3n9Uuko9y",
|
|
33
|
+
"size": 5866,
|
|
34
34
|
"css": true,
|
|
35
35
|
"defs": {
|
|
36
36
|
"Mermaid": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
(()=>{var F=Object.create;var
|
|
2
|
-
`).slice(0,4).join(" ").split(/\s*Expecting /)[0];
|
|
1
|
+
(()=>{var F=Object.create;var M=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var W=Object.getOwnPropertyNames;var K=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty;var p=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}};var U=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of W(r))!O.call(e,i)&&i!==t&&M(e,i,{get:()=>r[i],enumerable:!(a=I(r,i))||a.enumerable});return e};var l=(e,r,t)=>(t=e!=null?F(K(e)):{},U(r||!e||!e.__esModule?M(t,"default",{value:e,enumerable:!0}):t,e));var E=p((te,B)=>{var k=globalThis.__austereHost;if(!k)throw new Error("this austere-axi component pack needs the austere-axi runtime on the page");B.exports=k.React});var P=p((ae,A)=>{var T=globalThis.__austereHost;if(!T)throw new Error("this austere-axi component pack needs the austere-axi runtime on the page");A.exports=T.zod});var w=p((oe,R)=>{var q=globalThis.__austereHost;if(!q)throw new Error("this austere-axi component pack needs the austere-axi runtime on the page");R.exports=q.pack});var b=p((ie,L)=>{var S=globalThis.__austereHost;if(!S)throw new Error("this austere-axi component pack needs the austere-axi runtime on the page");L.exports=S.jsxRuntime});var c=l(E(),1),f=l(P(),1),m=l(w(),1),n=l(b(),1),_="https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.js",y=null,G=0;function v(e){return new Promise((r,t)=>{let a=document.createElement("script");a.src=e,a.async=!0,a.onload=()=>r(),a.onerror=()=>t(new Error(`failed to load ${e}`)),document.head.appendChild(a)})}function J(){if(window.mermaid)return Promise.resolve(z(window.mermaid));if(!y){let e=(0,m.assetUrl)("mermaid.min.js");y=(e?v(e).catch(()=>v(_)):v(_)).then(()=>z(window.mermaid))}return y}var j=!1;function z(e){return j||(j=!0,e.initialize({startOnLoad:!1,securityLevel:"strict",theme:"base",fontFamily:"Inter Variable, Inter, ui-sans-serif, system-ui, sans-serif",themeVariables:{darkMode:!0,background:"#121214",fontSize:"14px",primaryColor:"#202024",primaryTextColor:"#ececef",primaryBorderColor:"#4a4a52",secondaryColor:"#1a1a1e",secondaryTextColor:"#ececef",secondaryBorderColor:"#3a3a40",tertiaryColor:"#18181b",tertiaryTextColor:"#ececef",tertiaryBorderColor:"#3a3a40",lineColor:"#8b8b94",textColor:"#d4d4d8",mainBkg:"#202024",nodeBorder:"#4a4a52",clusterBkg:"#18181b",clusterBorder:"#34343a",edgeLabelBackground:"#121214",noteBkgColor:"#2a2614",noteTextColor:"#ececef",noteBorderColor:"#5c5326",actorBkg:"#202024",actorBorder:"#4a4a52",actorTextColor:"#ececef",signalColor:"#a1a1aa",signalTextColor:"#d4d4d8",labelBoxBkgColor:"#202024",labelBoxBorderColor:"#4a4a52",labelTextColor:"#ececef",loopTextColor:"#d4d4d8",activationBkgColor:"#2a2a30",activationBorderColor:"#5a5a64",sequenceNumberColor:"#121214"},flowchart:{htmlLabels:!1,curve:"basis",padding:12},gantt:{axisFormat:"%m-%d",fontSize:12,barHeight:22}})),e}function Q(e){let r=/^```(?:mermaid)?\s*\n([\s\S]*?)\n?```\s*$/.exec(e);return r?r[1]:e}function H(e){let r=e.querySelectorAll("tspan, div, span, p");return(r.length?Array.from(r,a=>a.children.length?"":a.textContent):[e.textContent]).join(" ").replace(/\s+/g," ").trim()}function X(e){let r=(t,a)=>{a&&t.setAttribute("data-austere-part",a.slice(0,80))};e.querySelectorAll("g.node, g.cluster, g.edgeLabel").forEach(t=>{let a=t.querySelector(".classTitle, .label-group, .er.entityLabel, .name");r(t,H(a||t))}),e.querySelectorAll("text.actor, text.messageText, text.noteText, text.taskText").forEach(t=>r(t,H(t)))}function Y(e){return typeof e=="object"&&e!==null&&"message"in e?e.message:void 0}function Z({props:e,statementId:r}){let t=(0,c.useRef)(null),[a,i]=(0,c.useState)(null),g=String(e.source??"").trim();return(0,c.useEffect)(()=>{let h=!1;if(!g)return;let C=`austere-mmd-${++G}`;return J().then(async d=>{let{svg:u,bindFunctions:$}=await d.render(C,Q(g));if(h||!t.current)return;t.current.innerHTML=u;let o=t.current.querySelector("svg");if(o){o.removeAttribute("height"),o.style.height="auto",o.style.maxWidth||(o.style.maxWidth="100%");let x=o.viewBox&&o.viewBox.baseVal?o.viewBox.baseVal.width:0;x>0&&(o.style.minWidth=`${Math.round(Math.min(x,x*.6))}px`)}X(t.current),$?.(t.current),i(null)}).catch(d=>{if(h)return;let u=String(Y(d)||d).split(`
|
|
2
|
+
`).slice(0,4).join(" ").split(/\s*Expecting /)[0];i(u),(0,m.reportRuntimeError)({source:"mermaid",statementId:r,component:"Mermaid",message:u}),document.getElementById(`d${C}`)?.remove()}),()=>{h=!0}},[g,r]),(0,n.jsxs)("figure",{className:"austere-mermaid",children:[a?(0,n.jsxs)("div",{className:"austere-render-error",children:[(0,n.jsx)("strong",{children:"Diagram failed to render."})," ",a]}):null,(0,n.jsx)("div",{className:"austere-mermaid-svg",ref:t}),e.caption?(0,n.jsx)("figcaption",{children:e.caption}):null]})}var D=(0,m.austereComponent)({name:"Mermaid",group:"Content",props:f.z.object({source:f.z.string(),caption:f.z.string().optional()}),description:"Diagram from Mermaid source (flowchart, sequence, state, class, ER, gantt). source is a raw multi-line string. Keep node labels to a few words; clicked nodes reach the agent by label.",notes:["- Mermaid for sequences, state machines, ER, gantt and quick flowcharts."],renderer:Z,example:`requestPath = Mermaid("flowchart LR
|
|
3
3
|
client[Client] --> api[API]
|
|
4
|
-
api --> pg[(Postgres)]", "Request path")`});var
|
|
4
|
+
api --> pg[(Postgres)]", "Request path")`});var N=`.austere-mermaid {
|
|
5
5
|
margin: 0;
|
|
6
6
|
width: 100%;
|
|
7
7
|
min-width: 0;
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
font-size: 12.5px;
|
|
23
23
|
color: var(--austere-muted);
|
|
24
24
|
}
|
|
25
|
-
`;var s={components:[
|
|
25
|
+
`;var s={components:[D],css:N};var V=l(w());(0,V.registerPack)({name:"@austere-axi/pack-mermaid",version:"0.7.0",api:1,components:[].concat(s&&s.components?s.components:s),css:s&&s.css});})();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"format": 1,
|
|
3
3
|
"pack": "@austere-axi/pack-shadcn",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.7.0",
|
|
5
5
|
"groups": [
|
|
6
6
|
{
|
|
7
7
|
"name": "Data",
|
|
@@ -195,8 +195,8 @@
|
|
|
195
195
|
}
|
|
196
196
|
],
|
|
197
197
|
"api": 1,
|
|
198
|
-
"integrity": "sha384-
|
|
199
|
-
"size":
|
|
198
|
+
"integrity": "sha384-drXkQp3CbyvotiAW64ZuOtePJ3EVmHR03sCMtdaAejdgudYTsHL5Pe337TnaBUNd",
|
|
199
|
+
"size": 16494,
|
|
200
200
|
"css": true,
|
|
201
201
|
"defs": {
|
|
202
202
|
"Progress": {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
(()=>{var
|
|
1
|
+
(()=>{var xe=Object.create;var U=Object.defineProperty;var be=Object.getOwnPropertyDescriptor;var ve=Object.getOwnPropertyNames;var ke=Object.getPrototypeOf,ye=Object.prototype.hasOwnProperty;var C=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(a){throw r=0,a}};var we=(e,r,a,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of ve(r))!ye.call(e,o)&&o!==a&&U(e,o,{get:()=>r[o],enumerable:!(s=be(r,o))||s.enumerable});return e};var t=(e,r,a)=>(a=e!=null?xe(ke(e)):{},we(r||!e||!e.__esModule?U(a,"default",{value:e,enumerable:!0}):a,e));var c=C((Ue,F)=>{var O=globalThis.__austereHost;if(!O)throw new Error("this austere-axi component pack needs the austere-axi runtime on the page");F.exports=O.React});var u=C((Oe,W)=>{var L=globalThis.__austereHost;if(!L)throw new Error("this austere-axi component pack needs the austere-axi runtime on the page");W.exports=L.zod});var l=C((Fe,Z)=>{var q=globalThis.__austereHost;if(!q)throw new Error("this austere-axi component pack needs the austere-axi runtime on the page");Z.exports=q.pack});var n=C((Le,Q)=>{var J=globalThis.__austereHost;if(!J)throw new Error("this austere-axi component pack needs the austere-axi runtime on the page");Q.exports=J.jsxRuntime});var We=t(c(),1),T=t(u(),1),X=t(l(),1),f=t(n(),1);function Ae({props:e}){let r=Number(e.max)>0?Number(e.max):100,a=Math.min(r,Math.max(0,Number(e.value)||0)),s=Math.round(a/r*100);return(0,f.jsxs)("div",{className:"sh-progress",children:[(0,f.jsxs)("div",{className:"sh-progress-head",children:[(0,f.jsx)("span",{children:e.label}),(0,f.jsxs)("span",{className:"sh-muted",children:[s,"%"]})]}),(0,f.jsx)("div",{className:"sh-progress-bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":r,"aria-valuenow":a,children:(0,f.jsx)("div",{className:"sh-progress-fill",style:{width:`${s}%`}})})]})}var ee=(0,X.austereComponent)({name:"Progress",group:"Data",tier:"extended",props:T.z.object({value:T.z.number(),label:T.z.string().optional(),max:T.z.number().optional()}),description:"Progress bar. value counts toward max (default 100); label names what is progressing. Shows a percentage.",renderer:Ae,example:'migration = Progress(64, "Rows migrated")'});var Qe=t(c(),1),x=t(u(),1),B=t(l(),1);function w(e){return typeof e=="object"&&e!==null&&"props"in e&&!!e.props}var h=t(n(),1),Ne=e=>String(e||"?").trim().split(/\s+/).slice(0,2).map(r=>r[0]).join("").toUpperCase()||"?",Te=e=>typeof e=="string"&&/^(https:\/\/|data:image\/)/i.test(e)?e:"";function re({name:e,src:r,size:a}){let s=Te(r);return(0,h.jsx)("span",{className:`sh-avatar sh-avatar-${a==="lg"?"lg":"md"}`,title:e,"data-austere-part":e||void 0,children:s?(0,h.jsx)("img",{src:s,alt:e||""}):(0,h.jsx)("span",{"aria-hidden":"true",children:Ne(e)})})}function Pe({props:e}){return(0,h.jsx)(re,{name:e.name,src:e.src,size:e.size})}var M=(0,B.austereComponent)({name:"Avatar",group:"Data",tier:"extended",props:x.z.object({name:x.z.string(),src:x.z.string().optional(),size:x.z.enum(["md","lg"]).optional()}),description:"Round avatar for a person. Shows the initials of name; src is an optional https image URL.",renderer:Pe,example:'owner = Avatar("Ada Lovelace")'});function Ce({props:e}){let r=(Array.isArray(e.avatars)?e.avatars:[]).filter(w),a=typeof e.max=="number"&&Number.isInteger(e.max)&&e.max>0?e.max:4,s=r.slice(0,a),o=r.length-s.length;return(0,h.jsxs)("span",{className:"sh-avatar-group",children:[s.map((i,S)=>(0,h.jsx)(re,{name:i.props.name,src:i.props.src,size:i.props.size},S)),o>0?(0,h.jsxs)("span",{className:"sh-avatar sh-avatar-md sh-avatar-more",children:["+",o]}):null]})}var te=(0,B.austereComponent)({name:"AvatarGroup",group:"Data",tier:"extended",props:x.z.object({avatars:x.z.array(M.definition.ref),max:x.z.number().int().optional()}),description:"Overlapping Avatars, for reviewers or owners. max (default 4) shows the rest as +N.",renderer:Ce,example:`team = AvatarGroup([ada, grace, linus], 2)
|
|
2
2
|
ada = Avatar("Ada Lovelace")
|
|
3
3
|
grace = Avatar("Grace Hopper")
|
|
4
|
-
linus = Avatar("Linus Torvalds")`});var
|
|
4
|
+
linus = Avatar("Linus Torvalds")`});var tr=t(c(),1),b=t(u(),1),E=t(l(),1),d=t(n(),1);function Re({props:e}){return(0,d.jsxs)("span",{className:"sh-pop sh-tooltip",tabIndex:0,children:[(0,d.jsx)("span",{className:"sh-pop-trigger",children:e.text}),(0,d.jsx)("span",{className:"sh-pop-card",role:"tooltip",children:e.tip})]})}var ae=(0,E.austereComponent)({name:"Tooltip",group:"Content",tier:"extended",props:b.z.object({text:b.z.string(),tip:b.z.string()}),description:"Inline text with a short hint on hover or focus (a term and its definition). Keep tip to one line.",renderer:Re,example:'term = Tooltip("idempotent", "Safe to run twice with the same result.")'});function Se({props:e}){return(0,d.jsxs)("span",{className:"sh-pop sh-hovercard",tabIndex:0,children:[(0,d.jsx)("span",{className:"sh-pop-trigger",children:e.text}),(0,d.jsxs)("span",{className:"sh-pop-card sh-card",role:"tooltip",children:[(0,d.jsx)("strong",{children:e.title}),e.body?(0,d.jsx)("span",{className:"sh-muted",children:e.body}):null]})]})}var se=(0,E.austereComponent)({name:"HoverCard",group:"Content",tier:"extended",props:b.z.object({text:b.z.string(),title:b.z.string(),body:b.z.string().optional()}),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.",renderer:Se,example:'svc = HoverCard("billing-api", "billing-api", "Owns invoices and refunds. On call: payments team.")'});var or=t(c(),1),A=t(u(),1),D=t(l(),1);var v=t(n(),1),ze=()=>null,Ie=e=>typeof e=="string"&&/^(https?:\/\/|\/|#)/i.test(e)?e:"";function Be({props:e}){let r=(Array.isArray(e.items)?e.items:[]).filter(w);return(0,v.jsx)("nav",{className:"sh-breadcrumb","aria-label":"Breadcrumb",children:(0,v.jsx)("ol",{children:r.map((a,s)=>{let o=s===r.length-1,i=Ie(a.props.href);return(0,v.jsxs)("li",{"data-austere-part":a.props.label,children:[i&&!o?(0,v.jsx)("a",{href:i,children:a.props.label}):(0,v.jsx)("span",{"aria-current":o?"page":void 0,children:a.props.label}),o?null:(0,v.jsx)("span",{className:"sh-crumb-sep","aria-hidden":"true",children:"/"})]},s)})})})}var H=(0,D.austereComponent)({name:"BreadcrumbItem",group:"Content",tier:"extended",props:A.z.object({label:A.z.string(),href:A.z.string().optional()}),description:"One step of a Breadcrumb. href is optional; the last item is the current page.",renderer:ze,slots:null,tagged:!1}),oe=(0,D.austereComponent)({name:"Breadcrumb",group:"Content",tier:"extended",props:A.z.object({items:A.z.array(H.definition.ref)}),description:"Path trail such as Repo / Package / File, from BreadcrumbItems. Each item is a click target.",renderer:Be,example:`trail = Breadcrumb([repo, pkg, file])
|
|
5
5
|
repo = BreadcrumbItem("austere-axi")
|
|
6
6
|
pkg = BreadcrumbItem("packs")
|
|
7
|
-
file = BreadcrumbItem("shadcn")`});var
|
|
7
|
+
file = BreadcrumbItem("shadcn")`});var lr=t(c(),1),V=t(u(),1),ne=t(l(),1),Y=t(n(),1);function Me({props:e}){let r=String(e.keys??"").split("+").map(a=>a.trim()).filter(Boolean);return(0,Y.jsx)("span",{className:"sh-kbd-group",children:r.map((a,s)=>(0,Y.jsx)("kbd",{className:"sh-kbd",children:a},s))})}var ie=(0,ne.austereComponent)({name:"Kbd",group:"Content",tier:"extended",props:V.z.object({keys:V.z.string()}),description:'Keyboard shortcut. keys joins keys with "+", e.g. "Ctrl+K"; each key is drawn as a key cap.',renderer:Me,example:'shortcut = Kbd("Ctrl+Shift+P")'});var cr=t(c(),1),R=t(u(),1),pe=t(l(),1),N=t(n(),1);function Ee({props:e}){let r=Math.min(12,Math.max(1,typeof e.lines=="number"&&Number.isInteger(e.lines)?e.lines:3));return(0,N.jsxs)("div",{className:"sh-skeleton","aria-hidden":"true",children:[e.shape==="avatar"?(0,N.jsx)("span",{className:"sh-skel sh-skel-avatar"}):null,(0,N.jsx)("div",{className:"sh-skeleton-lines",children:Array.from({length:r},(a,s)=>(0,N.jsx)("span",{className:"sh-skel",style:{width:s===r-1&&r>1?"60%":"100%"}},s))})]})}var le=(0,pe.austereComponent)({name:"Skeleton",group:"Content",tier:"extended",props:R.z.object({lines:R.z.number().int().optional(),shape:R.z.enum(["lines","avatar"]).optional()}),description:"Grey placeholder block for content not yet written or loaded (default 3 lines). shape avatar adds a round head.",renderer:Ee,example:'pending = Skeleton(3, "avatar")'});var gr=t(c(),1),P=t(u(),1),de=t(l(),1),g=t(n(),1),De=/^(\d{4})-(\d{2})-(\d{2})(?:\s+(.*))?$/,He=["Mo","Tu","We","Th","Fr","Sa","Su"];function Ve(e,r,a){let s=new Map;for(let o of Array.isArray(a)?a:[]){let i=De.exec(String(o).trim());i&&Number(i[1])===e&&Number(i[2])===r&&s.set(Number(i[3]),(i[4]||"").trim())}return s}function Ye({props:e}){let r=/^(\d{4})-(\d{2})/.exec(String(e.month??"")),a=r?Number(r[1]):NaN,s=r?Number(r[2]):NaN;if(!(s>=1&&s<=12))return(0,g.jsx)("div",{className:"austere-render-error",children:'Calendar needs a month like "2026-11".'});let o=new Date(Date.UTC(a,s-1,1)),i=new Date(Date.UTC(a,s,0)).getUTCDate(),S=(o.getUTCDay()+6)%7,_=Ve(a,s,e.highlights),$=o.toLocaleString("en-US",{month:"long",year:"numeric",timeZone:"UTC"}),fe=[...Array(S).fill(null),...Array.from({length:i},(p,z)=>z+1)];return(0,g.jsxs)("div",{className:"sh-calendar",children:[(0,g.jsx)("div",{className:"sh-calendar-title",children:$}),(0,g.jsxs)("div",{className:"sh-calendar-grid",children:[He.map(p=>(0,g.jsx)("span",{className:"sh-calendar-dow",children:p},p)),fe.map((p,z)=>{if(p===null)return(0,g.jsx)("span",{},`b${z}`);let G=_.has(p),I=_.get(p);return(0,g.jsx)("span",{className:`sh-calendar-day${G?" is-marked":""}`,title:I||void 0,"data-austere-part":G?`${$.split(" ")[0]} ${p}${I?`: ${I}`:""}`:void 0,children:p},p)})]})]})}var me=(0,de.austereComponent)({name:"Calendar",group:"Data",tier:"extended",props:P.z.object({month:P.z.string(),highlights:P.z.array(P.z.string()).optional()}),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.',renderer:Ye,example:'window = Calendar("2026-11", ["2026-11-04 Code freeze", "2026-11-12 Release", "2026-11-13"])'});var br=t(c(),1),k=t(u(),1),j=t(l(),1);var m=t(n(),1),je=()=>null,ce=["done","current","upcoming"],Ke=e=>ce.some(r=>r===e);function _e({props:e}){let r=(Array.isArray(e.items)?e.items:[]).filter(w);return(0,m.jsx)("ol",{className:"sh-timeline",children:r.map((a,s)=>{let o=a.props,i=Ke(o.state)?o.state:"done";return(0,m.jsxs)("li",{className:`sh-timeline-item is-${i}`,"data-austere-part":o.title,children:[(0,m.jsx)("span",{className:"sh-timeline-dot","aria-hidden":"true"}),(0,m.jsxs)("div",{className:"sh-timeline-body",children:[(0,m.jsxs)("div",{className:"sh-timeline-head",children:[(0,m.jsx)("strong",{children:o.title}),o.date?(0,m.jsx)("span",{className:"sh-muted",children:o.date}):null]}),o.detail?(0,m.jsx)("div",{className:"sh-muted",children:o.detail}):null]})]},s)})})}var K=(0,j.austereComponent)({name:"TimelineItem",group:"Content",tier:"extended",props:k.z.object({title:k.z.string(),date:k.z.string().optional(),detail:k.z.string().optional(),state:k.z.enum(ce).optional()}),description:"One event in a Timeline. state: done (default), current or upcoming.",renderer:je,slots:null,tagged:!1}),ue=(0,j.austereComponent)({name:"Timeline",group:"Content",tier:"extended",props:k.z.object({items:k.z.array(K.definition.ref)}),description:"Vertical history or schedule of TimelineItems, oldest first. Each item is a click target.",renderer:_e,example:`history = Timeline([found, fixed, rollout])
|
|
8
8
|
found = TimelineItem("Bug found", "Oct 28", "Retries double-charge on timeout.")
|
|
9
9
|
fixed = TimelineItem("Fix merged", "Oct 29", "Idempotency key added.", "current")
|
|
10
|
-
rollout = TimelineItem("Rollout", "Nov 3", "", "upcoming")`});var
|
|
10
|
+
rollout = TimelineItem("Rollout", "Nov 3", "", "upcoming")`});var he=`.sh-muted { color: var(--austere-muted); }
|
|
11
11
|
|
|
12
12
|
/* Progress */
|
|
13
13
|
.sh-progress { width: 100%; }
|
|
@@ -66,4 +66,4 @@ rollout = TimelineItem("Rollout", "Nov 3", "", "upcoming")`});var ue=`.sh-muted
|
|
|
66
66
|
.sh-timeline-item.is-upcoming .sh-timeline-dot { background: transparent; border: 1px solid var(--austere-muted); }
|
|
67
67
|
.sh-timeline-body { min-width: 0; font-size: 13.5px; overflow-wrap: anywhere; }
|
|
68
68
|
.sh-timeline-head { display: flex; flex-wrap: wrap; gap: 4px 12px; }
|
|
69
|
-
`;var y={components:[
|
|
69
|
+
`;var y={components:[ee,M,te,ae,se,oe,H,ie,le,me,ue,K],css:he};var ge=t(l());(0,ge.registerPack)({name:"@austere-axi/pack-shadcn",version:"0.7.0",api:1,components:[].concat(y&&y.components?y.components:y),css:y&&y.css});})();
|
package/dist/prompt.md
CHANGED
|
@@ -185,7 +185,7 @@ Before finishing, walk your output and verify:
|
|
|
185
185
|
2. Every referenced name is defined. Every defined name (other than root) is reachable from root.
|
|
186
186
|
|
|
187
187
|
- Statement names are what the reviewer clicks and what feedback points back to. Name every section, table, chart, diagram, option and risk descriptively in camelCase (rolloutTable, riskCallout, optionB), never s1/s2. Capitalized names read as components.
|
|
188
|
-
- To revise after feedback,
|
|
188
|
+
- To revise after feedback, pipe only the statements the feedback names (and new ones) to `austere-axi patch <file>`; never rewrite the file. Untouched statements keep their state on the reviewer's screen.
|
|
189
189
|
- Pass null to skip an optional argument before one you set: Tag("high", null, "sm", "danger").
|
|
190
190
|
- Strings may span lines (use that for Mermaid, Diff, CodeBlock and long markdown) and accept \n escapes; $ inside strings is literal. Escape " inside double-quoted strings, or use single quotes. Never write </script> inside the program.
|
|
191
191
|
- Artifacts are static: no Query, Mutation or tools, and you never need $variables (omit $binding props).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "austere-axi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Agent-authored review artifacts in OpenUI Lang: a few hundred tokens instead of a whole HTML page, with statement-level annotations fed back to the agent.",
|
|
5
5
|
"mcpName": "io.github.MandalorianBatman/austere-axi",
|
|
6
6
|
"type": "module",
|
|
@@ -31,20 +31,20 @@
|
|
|
31
31
|
"node": ">=22.18"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
|
-
"build": "node scripts/build.
|
|
35
|
-
"pretest": "node scripts/build.
|
|
36
|
-
"test": "node --test test/*.test.
|
|
37
|
-
"test:browser": "node scripts/build.
|
|
38
|
-
"signatures": "node scripts/signatures.
|
|
39
|
-
"gallery": "node scripts/gallery.
|
|
40
|
-
"site": "node scripts/site.
|
|
41
|
-
"shot": "node scripts/shot.
|
|
42
|
-
"demo": "node scripts/demo.
|
|
43
|
-
"social": "node scripts/social.
|
|
34
|
+
"build": "node scripts/build.ts",
|
|
35
|
+
"pretest": "node scripts/build.ts spec",
|
|
36
|
+
"test": "node --test test/*.test.ts",
|
|
37
|
+
"test:browser": "node scripts/build.ts packs runtime mermaid spec chrome && node --test test/browser/*.test.ts",
|
|
38
|
+
"signatures": "node scripts/signatures.ts",
|
|
39
|
+
"gallery": "node scripts/gallery.ts",
|
|
40
|
+
"site": "node scripts/site.ts",
|
|
41
|
+
"shot": "node scripts/shot.ts",
|
|
42
|
+
"demo": "node scripts/demo.ts",
|
|
43
|
+
"social": "node scripts/social.ts",
|
|
44
44
|
"prepublishOnly": "npm run build && npm test",
|
|
45
|
-
"typecheck": "tsc --noEmit -p
|
|
46
|
-
"bench": "node scripts/build.
|
|
47
|
-
"bench:report": "node bench/report.
|
|
45
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
46
|
+
"bench": "node scripts/build.ts && npm --prefix bench ci --no-audit --no-fund && node bench/run.ts",
|
|
47
|
+
"bench:report": "node bench/report.ts"
|
|
48
48
|
},
|
|
49
49
|
"keywords": [
|
|
50
50
|
"axi",
|
|
@@ -66,6 +66,9 @@
|
|
|
66
66
|
"@openuidev/react-lang": "^1.0.1",
|
|
67
67
|
"@openuidev/react-ui": "^0.18.1",
|
|
68
68
|
"@types/node": "^26.6.6",
|
|
69
|
+
"@types/react": "^19.3.0",
|
|
70
|
+
"@types/react-dom": "^19.3.0",
|
|
71
|
+
"@types/react-syntax-highlighter": "^15.5.13",
|
|
69
72
|
"esbuild": "^0.28.2",
|
|
70
73
|
"lucide-react": "^0.575.0",
|
|
71
74
|
"mermaid": "^11.17.2",
|
package/skills/austere/SKILL.md
CHANGED
|
@@ -19,6 +19,8 @@ Do not rely on workflow or component details from this file; installed copies go
|
|
|
19
19
|
|
|
20
20
|
You do not need it installed: run every `austere-axi ...` command it prints as `npx -y austere-axi ...`.
|
|
21
21
|
|
|
22
|
+
The reviewer judges how the page looks. Do not open, screenshot or inspect the page yourself unless the user asks; this overrides general advice to check UI work visually. Render failures come back through `poll`.
|
|
23
|
+
|
|
22
24
|
## Request
|
|
23
25
|
|
|
24
26
|
$ARGUMENTS
|
package/types/pack-kit.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
// Types for the pack kit (src/pack-kit/index.
|
|
1
|
+
// Types for the pack kit (src/pack-kit/index.ts, shipped as dist/pack-kit.mjs).
|
|
2
|
+
import type * as esbuild from "esbuild";
|
|
2
3
|
import type { PackCatalog } from "./catalog.js";
|
|
3
4
|
|
|
4
5
|
export { PACK_API, CONTENT_SLOTS } from "./pack.js";
|
|
@@ -22,8 +23,8 @@ export declare function sri(buffer: Uint8Array): string;
|
|
|
22
23
|
export interface BuildPackOptions {
|
|
23
24
|
/** Pack folder (package.json + entry module). */
|
|
24
25
|
dir: string;
|
|
25
|
-
/** The esbuild module to bundle with. */
|
|
26
|
-
esbuild:
|
|
26
|
+
/** The esbuild module to bundle with (the pack's own). */
|
|
27
|
+
esbuild: Pick<typeof esbuild, "build">;
|
|
27
28
|
/** Default <dir>/dist. */
|
|
28
29
|
outDir?: string;
|
|
29
30
|
/** Default package.json name. */
|
package/types/pack.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Types for "austere-axi/pack": what a component pack imports. Hand-written
|
|
2
|
-
// to match src/runtime/pack-api.
|
|
3
|
-
import type { ZodObject, ZodRawShape, infer as ZodInfer } from "zod";
|
|
2
|
+
// to match src/runtime/pack-api.ts and src/runtime/define.ts.
|
|
3
|
+
import type { core, ZodObject, ZodRawShape, infer as ZodInfer } from "zod";
|
|
4
4
|
|
|
5
5
|
export type { Catalog, CatalogEntry, PackCatalog, Tier } from "./catalog.js";
|
|
6
6
|
|
|
@@ -42,8 +42,30 @@ export interface ComponentSpec<Shape extends ZodRawShape = ZodRawShape> {
|
|
|
42
42
|
tier?: "core" | "extended";
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
/**
|
|
46
|
+
* A sub-component value as another component's renderer receives it: what
|
|
47
|
+
* `z.array(Child.definition.ref)` parses to. `partial` is true while the program streams in.
|
|
48
|
+
*/
|
|
49
|
+
export interface ElementValue<Props> {
|
|
50
|
+
type: "element";
|
|
51
|
+
typeName: string;
|
|
52
|
+
props: Props;
|
|
53
|
+
partial: boolean;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** The OpenUI component definition inside an AustereComponent. */
|
|
57
|
+
export interface ComponentDefinition<Props = unknown> {
|
|
58
|
+
name: string;
|
|
59
|
+
props: core.$ZodObject;
|
|
60
|
+
description: string;
|
|
61
|
+
/** The renderer, as passed to austereComponent(). */
|
|
62
|
+
component: unknown;
|
|
63
|
+
/** Use in another component's props to nest this one: `z.array(Child.definition.ref)`. */
|
|
64
|
+
ref: core.$ZodType<ElementValue<Props>>;
|
|
65
|
+
}
|
|
66
|
+
|
|
45
67
|
/** What austereComponent() returns. Put `definition.ref` in another component's props to nest it. */
|
|
46
|
-
export interface AustereComponent {
|
|
68
|
+
export interface AustereComponent<Props = unknown> {
|
|
47
69
|
name: string;
|
|
48
70
|
group: string;
|
|
49
71
|
notes: string[];
|
|
@@ -52,13 +74,10 @@ export interface AustereComponent {
|
|
|
52
74
|
tier: "core" | "extended";
|
|
53
75
|
example: string[] | null;
|
|
54
76
|
stress: string[] | null;
|
|
55
|
-
definition:
|
|
56
|
-
ref: any;
|
|
57
|
-
[key: string]: any;
|
|
58
|
-
};
|
|
77
|
+
definition: ComponentDefinition<Props>;
|
|
59
78
|
}
|
|
60
79
|
|
|
61
|
-
export declare function austereComponent<Shape extends ZodRawShape>(spec: ComponentSpec<Shape>): AustereComponent
|
|
80
|
+
export declare function austereComponent<Shape extends ZodRawShape>(spec: ComponentSpec<Shape>): AustereComponent<ZodInfer<ZodObject<Shape>>>;
|
|
62
81
|
|
|
63
82
|
/** What a pack's entry module default-exports. */
|
|
64
83
|
export interface PackModule {
|